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

 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 z3,aiI,J1p,J1,Zi,r1$,PGG,F0,Vx,ZGp,CG3,N$m,Qx,E7E,B$G,x7,fiG,Fdp,hIG,QEm,xO1,v7M,$Op,dOx,Wd1,UO1,jI,LdG,Zj,lip,NE,ppd,to,EO,mOG,y10,ve,$G,MM$,ajI,jwx,ow,Ij1,Joi,ro$,Zl1,zv7,Dj,Nf1,EGE,AoG,rE,swO,nGd,KXp,FX7,HlE,Je,gG$,zY,OlI,fj0,vGM,$EG,Xex,u0,WX0,dE7,oGm,UEm,DEG,LX$,lj0,mEm,yoG,cop,qOO,aEm,red,ZZ$,P0G,v4,C0G,BE3,gZ$,fEd,KzE,sZG,Fz$,nZ0,$Z,Rvp,W4,oZ,UG,HZ0,DE,Vf1,bZm,hi$,mz,QZ0,SGi,x0E,GYi,vZI,$03,X4p,TE7,l0,Wz3,U0p,q0,RiM,w4$,at,kYx,YG7,LzO,qGM,axx,jtO,Cj7,Jx3,tui,EPE,BO$,O4E,fx0,F9M,Qt3,$LE,
W9p,lxx,K4,w9x,yx0,kNx,QI,Su,xP,Rt,L4,zE3,ryE,Phx,NVi,uX3,jd,Ex1,Jy,rV,PP,ZI,gxG,Ou$,fIG,Ayp,sl7,K60,F60,Hu3,bux,VdG,Ek,uh,Qlm,SkG,iu3,vxG,xRd,Gji,$R1,XP1,Ku,FX,bh,hy,QU,dRx,Sd,ox0,lI3,xx,pPx,wPi,mR$,Gj,yyG,kjI,Mdx,$x,qk$,Tj,jNx,ztG,dV,JzE,ImO,rzm,Ppi,ZBx,CpI,DI,NJ1,tTm,Rl,umG,E83,Lu,lh,pu,wV,BJG,OBI,g8M,m6,Azd,sNp,n87,kx,cP,Yx,qR,aN,jT,KOp,FOG,bBG,ht1,VTE,QNE,ShM,iBd,xMM,v8p,GB3,$M3,XHm,TJ3,IN,dMG,WOI,PH,o8G,tz,Eh,UMm,LOM,lmM,pH$,mM1,yz3,kB0,qhd,et7,aJm,jfm,z2I,IJM,J7O,CEI,Oh,NQ1,tWm,uCd,El1,BQm,
gl0,fJM,ioI,xCG,vl$,XWx,TQI,hz,dCE,UCG,LGi,lJ7,pWI,wWx,mCO,y71,ka1,MWm,YS3,qSm,DC0,e2G,aT7,jhI,z0O,ITG,J2m,r2G,PF0,ZWd,up7,N13,gXM,EX0,B17,A2$,shp,nXE,OWG,FAm,fTG,bWp,LB,h0p,lp,mO,VJO,Sfx,iWd,Ge7,LAp,Xg0,$II,dIG,oX0,T1p,keG,wgI,MJO,c2M,Yf1,qfd,e0E,jLx,aHM,zxd,IH1,JDM,rDp,Z31,NqE,tLG,uwI,Bq$,ESx,VLI,cH,QL1,i3p,xY3,vSG,GZG,$Yx,Tqp,dYI,Wsd,If,J7,oS0,p3I,ZJ,Co,kZx,cDm,Pl3,ES,NMM,t6E,gji,Ejp,BMp,sS,O11,fv1,deG,W5i,ojm,Uex,De3,RZ0,L5d,pyG,wy0,yPx,meM,cP3,SW,vW,qz0,eZG,aZG,j3$,zTx,IZ3,rCd,ZIp,PPi,wQ,yc,
ACM,Yl,bIM,hTd,qC,Q3i,VpE,dVd,WlG,ok7,DVO,pLx,mVd,yC0,kWi,MpE,YnI,eT0,aRd,ze,zX0,rJ3,P9M,Zv0,C9G,tFG,JJi,jO1,N2d,J2,E00,fR7,g00,ZT,sOI,K_7,F_M,Hvi,bvx,uF,hXm,QOG,VFd,Sw0,xm7,g1,W_E,UmG,RX$,lRE,sf,wad,Fp,bF,Hg,MFG,paI,cJp,Q3,aVI,xX,vg,IVm,PaG,CaM,N3E,tH0,Ge,uk0,Xp,EvE,gvm,O6G,fVI,AG0,nv7,d1,Kk1,Fkx,DT,lF,hQG,VHG,QGp,ScG,vv1,G$x,XvI,T30,LkE,lVm,Urm,wv0,mrx,yGE,aL,zZ,IL,Yci,qcM,rq,eQx,a1M,jAd,zF1,J$M,r$G,Pdp,ZL$,I11,Cdx,NY,tli,E2M,tD,uZ3,BFG,NFM,g2x,Ee,f1d,A$O,sAi,n2m,FKE,KKG,HLm,VlM,bLd,SXm,XJ1,dZi,
WKm,UZE,LKM,RFI,DZE,l17,wJG,y$x,mZ3,Ml0,H3,YXI,qXd,eFM,aF3,PIE,rR1,Ztp,CIp,i1,xS,Ne7,uzG,Bed,fFO,s_7,ARI,YS,nAG,EAE,Q_i,itG,x$p,vAx,z9,Gb1,XAI,W8$,D$$,U$M,pAG,wAO,m$d,yRi,MEm,aYG,cR3,q_7,egi,jUM,zY1,JWO,IY1,P8m,rWd,Oz,Z5E,Ngm,txx,gpm,bl,hP,O5G,fY0,V2,KHd,xj,G9,Xn,hYp,T9,Srd,ob,i50,xod,vpx,GgI,Rb,$oG,Xd7,Tg1,WHd,UoO,LH$,pdm,Yj,wdi,moE,yWI,kg3,Mxd,cWx,Yr$,qrm,a3,jXE,zVO,Ia7,Jvp,rv0,PkE,ZH3,CkG,NY7,ttm,ub1,EhI,BYO,CI,VtO,QXd,NV,tC,uP,SMd,iH1,x1M,vh3,Gri,$1E,Xhd,U1O,D1G,RVd,L13,lad,On,AC,sn,nI,bP,hC,
VE,whM,Sp,yvd,iP,krp,Mti,xk,cv0,YMG,qMI,ZMx,Nz$,giG,sQI,A3x,CKM,niG,HMG,WZI,iMG,LZ3,vi$,RwO,lL0,WL,wKx,Un,y3$,kz1,c30,Y87,q8E,aAm,LI,zLp,IA0,Jj7,rjx,PNM,Zw3,CNG,j0G,uJ$,ENG,BdG,pI,nN7,KoM,s0$,Hw3,bwE,VgO,Q0d,hLp,Xlm,dpx,oNO,Dp3,aO,mpx,wlI,Ygx,eL0,atG,j5O,zh1,ItO,Jf3,tJ,B4M,OSm,uT1,tki,gqp,PJI,Afd,iS1,KfI,FfE,HSE,UKG,RhI,oqi,yfG,Wfd,rfG,mKI,nqI,SW0,DKx,ftp,CJ1,ZS3,N40,Eq0,dK3,SF,ZU$,Nid,trE,uF7,EcI,FYE,SNG,iUG,Uw,vcd,XnE,ocM,WY0,DhG,RpM,lc$,wn7,pnG,mhm,Y0,yE7,kIG,cE$,MrO,qm,zkM,jdG,ak$,PmM,Ik7,Zc$,
rQM,CmO,aG,Ns3,BsG,uK1,Esp,Oc3,sd1,JG,Fy0,ns3,HcG,Qdd,S1I,vsx,$AG,C6,Nr,Wyx,os1,tG,ua,UA0,Ec,Bv,DAi,g3,Rkp,Oc,Ly1,lk7,AG,p03,w03,mAd,yQi,k0x,cQ0,M8m,q1M,jvI,ayp,zOm,Iym,Y1M,JI3,ZhG,PgG,ekG,CgG,N0d,ba,tid,EKE,uxE,B0x,gKG,fyM,Oh$,AII,VL,nKO,K3M,sv7,Hhm,bhi,hOG,ihE,GO3,W3p,ROi,QL,pqG,wqG,SH,mlO,Xk,T$,qJ7,G$,oG,eO$,a87,zsi,I8x,rY$,ZnO,CeM,NLG,tQ1,BLp,ssE,f8E,ERd,nRG,K7O,L6,AYG,F7O,w3,Hn$,bn7,hsm,VQp,xSM,Qsd,inm,Xb0,TLm,DSO,US0,l8G,MQm,cYO,qB1,auM,jc1,IuE,JTG,rTx,Zxx,C3$,NcI,EBE,fu7,ATp,Bci,nBE,Fg3,KgG,
scx,Hx$,hCG,VNp,Qc3,StI,ix$,IA,J$,Z1,NZ,G2i,$HG,Tc1,UHI,t$,ud,DHG,EX,lui,prM,wrd,gF,cT7,aoM,zS7,Io3,JH$,rH1,Pni,NZ1,fL,tqG,BZ0,A$,gMG,AHd,sH0,nMm,fo1,VqI,ip$,QH0,xQm,$QG,TZx,Wip,RSE,DQI,wVp,HJ,mQd,yH$,bd,kV0,h$,MqI,cHx,YsI,eSx,qsM,aP1,jRp,znG,IP7,taE,ETx,gTE,BGI,ZRG,r47,fPI,sRM,bRm,hnM,S57,XDO,dkG,id,Wmd,Uk$,Dkp,LmI,mk0,Mam,q5i,en1,aNp,j4p,P_1,zeG,tv1,uN3,EQI,gQm,GX,OE$,AAd,s4G,nQm,Kq$,FqI,HEx,bEi,VvG,Q4$,dF,S93,iEE,vQE,oA,xJ3,$J1,WqG,RA,oQ7,UJO,DJm,lNG,pEE,Re0,mJ3,cAM,Y9d,q9i,y$,eeE,I4d,JXd,Y2,Zem,
rXE,PAI,t$3,uqG,EV3,f47,nV$,so3,AXG,KUE,HeM,be$,ieO,hzx,xgp,GSm,vV7,oV7,Rzm,l4x,wGi,M$p,zcI,JNG,rNG,Nhi,u7G,vA,DF,ANE,Ft0,KtG,b$E,hc3,QJm,V_7,SxO,i$d,R_,OMx,sJ0,H$0,nEm,o_,GsM,$bp,XY0,Th1,dbd,Wt$,oE1,Ubd,Dbx,Rc1,eE,Ltm,lf7,pYp,wYp,mbI,IU,yNM,cN3,qx0,ecx,Pc$,Cc0,NB0,tGG,EF3,BBG,gg,OQE,f5G,AV3,sy$,nFd,KSi,HQm,ho3,QyM,SLx,XUd,G7M,TBG,oFp,Uy3,F4,Dy1,Rod,LSi,wUI,yVG,myI,MGd,YLx,VC,eoi,aOi,qLm,j7x,z3G,Jqp,Pzd,rqp,ZJO,IOm,Czp,NRi,tKI,uop,E3G,BRO,g3M,OJ7,fO7,n37,s7$,Kh7,HJp,FhO,QC,bJx,Q77,v31,h3x,XS0,TRG,
d_I,Whp,D_m,yqi,kG0,cqG,YRm,DY,jD7,rK$,Cr3,RU,EoO,uSG,Br0,p5,go0,ONM,fGd,sD1,no$,KPm,FPp,bNM,hGm,Trm,vox,$sE,WPE,dsx,ooG,Usd,RGM,lGm,wwd,yKE,MPm,dTG,UTm,RR$,LJI,lsG,pc$,wcE,yt0,kl3,YTM,qTd,eRp,ae0,jWd,z1G,Iem,Jc3,ZV1,ucE,IX,Jv,rY,Ph,EIm,N1,gI7,bVO,x5$,SFi,m5x,yc7,ktM,fe3,HVG,nIM,ccp,YFM,qFO,VBx,awd,z6m,JM7,Zd$,CQE,Hh,VK,QK,Odi,ga7,nax,Kbm,xUx,G4d,XsO,TPM,oaG,DU1,UU3,lwp,ws1,q3p,cMi,yMd,Y3E,k47,e6O,IUm,LH,Ee1,NDd,ge0,OOG,Ar3,skm,pH,ned,HO$,hPx,VnO,SjM,Qk3,yK,XIp,et,dnd,WV$,jc,oeG,Un0,DnI,RP1,LV0,lU$,
pI7,wIi,mn0,yr0,kDO,Mn0,cr0,Yjp,qj0,zz,ePO,aXE,j11,zqm,IXi,J0E,r07,PbM,Z0m,CbG,NW0,tjM,J3,Etx,gtx,fX7,nt7,H01,b0G,hq0,Q1m,i03,x8x,vtE,E8,d81,XX0,WBx,otG,U8p,LBM,lX$,pX$,m8G,h3,kqI,HK,c03,Yu0,Va,qux,eqi,a0m,jM0,xi,rLm,ZA0,EJI,u83,gJi,OAx,WK,f0I,ALE,nJ1,Fc3,HAG,hHd,V0M,Kc0,QMM,GvM,diM,Wc$,oQ,oJM,Uim,pMG,DiG,LcG,l00,cLO,mii,YAi,eH0,jm0,zA7,I3$,J53,r5G,PvI,CvG,NjG,uEm,E$I,BjM,OX7,A5G,Ka7,hAO,Sd$,xc3,$cG,wz,XT7,TjE,dcG,Wam,o$M,Dci,RAd,LaG,l37,pT0,wTG,mc$,y5G,kyM,MoI,c5p,qdE,Ydm,jxd,Ihd,ki,JlE,Zfm,PHx,
tep,usd,EO0,gOE,Alp,KjO,nOI,fhp,bfG,HfG,ifE,hy1,a0,QxI,dvO,GfM,$vi,X_d,TT$,Wjp,Uv7,oOG,jg,zQ,mvx,Ry1,w_I,p_$,LjM,lh$,MeM,YCm,eyx,qC$,IbG,zJ3,PMx,ZFG,N6m,ty7,CMG,uR$,B60,E1x,OFE,sP7,tj,n1p,KeE,bFx,iFM,T6i,Eg,Wei,RJE,w5d,p5m,LeM,lbd,Aj,MyG,m4p,y9G,c9I,qpE,Ypm,jC0,zl$,Jd3,rd$,P5G,ZKp,C5$,tR3,uaM,vl,BxM,g6M,sC0,n60,dd,KvG,HK1,G67,Lw,QCO,v6d,SqI,iKM,DBO,Wv$,Rl1,LvI,pw,pQx,wQ$,mB3,lCM,yX,yd3,wd,Yqx,JFp,rFG,PDO,Zyd,CD$,NmG,Bmx,uAG,ECG,twI,Oyp,sei,Fxi,HyM,hfE,Svp,VwI,QeO,iyO,vCd,G_$,$Gi,X1O,Tm$,dGG,oC7,jk,
DGd,lQ0,LxO,w1d,p1O,mGp,yFp,k_1,zd,cFp,Zqd,rO0,tAE,uix,AOI,sSm,nDx,Kp1,Fp0,Hq0,VAd,QSG,SVi,iqG,GFE,$z7,X2$,OW,oD3,WpG,dz1,TAi,Lpx,Dzi,p2x,w27,mz3,yOp,qVp,kFm,MAI,cOm,e4m,adi,j2p,YVd,KS,JS$,rS0,bJ,ZiG,CX0,Nl0,PXm,tU0,uL7,Eb7,Bli,gbM,fd3,ASG,s2m,nbG,Him,F$G,S$0,K$x,hf,iiG,biM,Q21,G1d,$a$,Xi1,Tl1,daG,W$x,obG,Ua0,Da$,RjM,L$7,pip,wi7,maM,k11,cS7,q$7,aBd,ri3,IBO,Jip,zN3,jIx,Pxd,ZPx,UW,t90,uP$,E43,B93,g4x,OP7,KMm,Ai$,fBM,sII,GTd,xtI,n4G,iPd,UtI,DtE,RN3,LMm,lB$,pz0,wz$,mtG,M93,YZi,eNG,jg0,zU0,IpE,Zj0,PsI,
CsE,tOp,Pn,BH0,gnp,Oj1,fp1,CU,Nh,nni,Hj1,ijE,$7O,XO3,THi,d7G,WCi,on$,D7O,LCm,RU1,lp7,wOp,m7E,ysG,kkm,MOO,cs$,ON,YUx,J_7,r_x,jFI,aW$,IWi,zuG,B8O,tbp,g_0,OrG,fWI,A_$,sFI,n_x,KIi,brI,FIi,Hrx,FF,$d7,XFG,T80,ddd,UdE,Ddd,WII,o_0,y_$,MbM,YDp,eu7,jjG,Ilx,ZCm,CCI,Nyi,EH0,uh0,tDI,By1,gHG,flx,Aa7,sjd,nHG,Kwm,FwM,bCO,h_G,VDI,Qjp,SlI,iC$,GPI,$x0,Tym,Wwi,dxO,oHp,GI,Uxx,Dxd,R_I,Lwp,w$3,p$M,kP$,MDx,ql0,a7G,jai,z$d,I77,JUI,rUG,PVm,Z9d,CVp,N_0,uHI,tZI,E93,B_E,g91,O9x,f7G,AU7,sa1,n9m,Kr3,LU,H9E,b97,h$d,VZ1,S0m,xfd,
v97,GC7,$f1,XmG,T_E,Wr0,o9x,Dfd,Lri,pm0,kCG,mfd,wm$,yU3,MZi,cU3,Y0M,ag7,jiM,zr0,Igi,rbO,PTG,ZgI,NKG,CTm,t3E,u2p,EL0,Og7,fgp,Abd,si$,nL1,KF$,bgO,hr7,ad,xXE,vLd,$Xi,dXI,TKm,WFd,oLE,j8,Id,DX7,Rr1,P0,Zk,wN7,LFO,lg3,kKG,M3G,cbp,YQx,j$G,Iz3,JBG,rB$,PU1,Z8i,NUM,thI,urx,EYi,BU$,gYp,O8I,tQ,fzE,AB3,E1,s$7,nYE,K0$,F0I,H8$,b83,O1,fc,hMO,VhM,AQ,Q$7,SEm,i8M,xFG,GwM,$F7,TUM,DFG,UF0,oYI,RM3,L01,kwm,wBG,mF$,pBG,yBx,nc,YEx,qEG,eM$,a_x,j87,I_m,rkx,CZ0,Ew3,t1M,Kc,Nb3,AkI,nw$,K41,F43,Hmd,bm0,V1M,Q8G,S6M,im$,vwI,GMG,$9x,
TbO,d9G,owx,U9d,pxO,l_p,m9G,yk$,q6G,edd,aDM,jr7,JuG,Za$,Qr,S8,Ctx,NSI,tS7,ut7,BSi,gdG,OaG,fDm,Aud,sr7,KNG,ndI,FNG,hK$,Qr0,Sod,ia$,v0,x2m,vd3,Xk3,TSm,G0,$s,odp,d20,RKm,U2O,LNE,pk0,W0,wkG,m2O,MSI,YoE,od,eKI,a9$,jud,z87,I97,Jgm,rgM,Z2m,ujG,Ez1,O2G,BN3,gzI,f91,KWM,AgE,nz3,FWp,H2$,b21,Qux,Sbi,i20,vzG,GE7,ozI,WW$,pt7,ygm,ks,kE1,Sei,MV0,cg0,qbE,jVi,zb$,N5E,tsI,u_G,Ey7,B5d,gyi,frE,AZp,nym,FEp,sVp,KE0,bsG,Hs0,VsE,isp,QV0,x6m,vyI,GiI,$60,Xo3,T5x,WEO,d6$,RbG,poO,LE$,wo$,m6m,yZ0,zO,kim,MsE,JI,Yix,cZd,qiG,eb$,
jqp,zBG,JpM,rpG,Po0,ZTM,Co1,uvI,g50,Apx,fKO,sqM,n5x,HTp,$P$,QqI,Tui,dPG,o5m,UPp,lK$,pux,wuG,mP7,yp3,cpG,YY$,qYd,eBG,a27,j9E,z90,J6$,ZYE,C7I,Nvi,tXM,u$$,EmG,BvG,f2x,OYx,KLp,FLM,HYG,bY$,h97,Q93,VX7,iYp,X7d,UW0,WL$,DW3,R9G,LL7,p77,bg,mWx,vq,kn$,c6p,Y2d,za1,J8x,ZDI,Nkd,t5O,EWp,Bkm,gWG,f60,szd,nW7,FRO,ham,bDE,HD0,Wq,Qzi,V50,SKE,iDd,xDp,vWi,Gup,$Di,XRd,dD3,WRG,oW7,UD7,DDp,Rad,LR7,l6E,pRG,mD0,y8m,j6G,zWi,InE,rnm,PBd,Zk3,t7d,ph,fnx,Anx,s67,nUm,KTO,w0,m3,mG,y5,Ml,ikp,G50,X6I,$jp,YK,TXI,dj$,WT0;
_.aE=function(a,z){if(Error.captureStackTrace)Error.captureStackTrace(this,_.aE);else{var I=Error().stack;I&&(this.stack=I)}a&&(this.message=String(a));z!==void 0&&(this.cause=z)};
z3=function(){throw Error("E");};
aiI=function(a,z){z=String.fromCharCode.apply(null,z);return a==null?z:a+z};
J1p=function(a){var z=!1;z=z===void 0?!1:z;if(jEG){if(z&&(zIO?!a.isWellFormed():/(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])/.test(a)))throw Error("F");a=(Ii3||(Ii3=new TextEncoder)).encode(a)}else{for(var I=0,J=new Uint8Array(3*a.length),r=0;r<a.length;r++){var P=a.charCodeAt(r);if(P<128)J[I++]=P;else{if(P<2048)J[I++]=P>>6|192;else{if(P>=55296&&P<=57343){if(P<=56319&&r<a.length){var N=a.charCodeAt(++r);if(N>=56320&&N<=57343){P=(P-55296)*1024+N-56320+65536;J[I++]=P>>18|
240;J[I++]=P>>12&63|128;J[I++]=P>>6&63|128;J[I++]=P&63|128;continue}else r--}if(z)throw Error("F");P=65533}J[I++]=P>>12|224;J[I++]=P>>6&63|128}J[I++]=P&63|128}}a=I===J.length?J:J.subarray(0,I)}return a};
J1=function(a){_.IE.setTimeout(function(){throw a;},0)};
_.Pp=function(a,z){return a.lastIndexOf(z,0)==0};
Zi=function(a,z){var I=a.length-z.length;return I>=0&&a.indexOf(z,I)==I};
_.NO=function(a){return/^[\s\xa0]*$/.test(a)};
_.t1=function(a,z){return a.indexOf(z)!=-1};
_.uG=function(a,z){return _.t1(a.toLowerCase(),z.toLowerCase())};
_.Om=function(a,z){var I=0;a=g$(String(a)).split(".");z=g$(String(z)).split(".");for(var J=Math.max(a.length,z.length),r=0;I==0&&r<J;r++){var P=a[r]||"",N=z[r]||"";do{P=/(\d*)(\D*)(.*)/.exec(P)||["","","",""];N=/(\d*)(\D*)(.*)/.exec(N)||["","","",""];if(P[0].length==0&&N[0].length==0)break;I=r1$(P[1].length==0?0:parseInt(P[1],10),N[1].length==0?0:parseInt(N[1],10))||r1$(P[2].length==0,N[2].length==0)||r1$(P[2],N[2]);P=P[3];N=N[3]}while(I==0)}return I};
r1$=function(a,z){return a<z?-1:a>z?1:0};
_.fG=function(){var a=_.IE.navigator;return a&&(a=a.userAgent)?a:""};
PGG=function(a){if(!sm||!KG)return!1;for(var z=0;z<KG.brands.length;z++){var I=KG.brands[z].brand;if(I&&_.t1(I,a))return!0}return!1};
F0=function(a){return _.t1(_.fG(),a)};
Vx=function(){return sm?!!KG&&KG.brands.length>0:!1};
ZGp=function(){return Vx()?!1:F0("Opera")};
CG3=function(){return Vx()?!1:F0("Trident")||F0("MSIE")};
N$m=function(){return Vx()?PGG("Microsoft Edge"):F0("Edg/")};
Qx=function(){return F0("Firefox")||F0("FxiOS")};
_.tM0=function(){return F0("Safari")&&!(_.iG()||(Vx()?0:F0("Coast"))||ZGp()||(Vx()?0:F0("Edge"))||N$m()||(Vx()?PGG("Opera"):F0("OPR"))||Qx()||F0("Silk")||F0("Android"))};
_.iG=function(){return Vx()?PGG("Chromium"):(F0("Chrome")||F0("CriOS"))&&!(Vx()?0:F0("Edge"))||F0("Silk")};
_.u0G=function(){return F0("Android")&&!(_.iG()||Qx()||ZGp()||F0("Silk"))};
E7E=function(a){var z={};a.forEach(function(I){z[I[0]]=I[1]});
return function(I){return z[I.find(function(J){return J in z})]||""}};
B$G=function(a){var z=_.fG();if(a==="Internet Explorer"){if(CG3())if((a=/rv: *([\d\.]*)/.exec(z))&&a[1])z=a[1];else{a="";var I=/MSIE +([\d\.]+)/.exec(z);if(I&&I[1])if(z=/Trident\/(\d.\d)/.exec(z),I[1]=="7.0")if(z&&z[1])switch(z[1]){case "4.0":a="8.0";break;case "5.0":a="9.0";break;case "6.0":a="10.0";break;case "7.0":a="11.0"}else a="7.0";else a=I[1];z=a}else z="";return z}var J=RegExp("([A-Z][\\w ]+)/([^\\s]+)\\s*(?:\\((.*?)\\))?","g");I=[];for(var r;r=J.exec(z);)I.push([r[1],r[2],r[3]||void 0]);
z=E7E(I);switch(a){case "Opera":if(ZGp())return z(["Version","Opera"]);if(Vx()?PGG("Opera"):F0("OPR"))return z(["OPR"]);break;case "Microsoft Edge":if(Vx()?0:F0("Edge"))return z(["Edge"]);if(N$m())return z(["Edg"]);break;case "Chromium":if(_.iG())return z(["Chrome","CriOS","HeadlessChrome"])}return a==="Firefox"&&Qx()||a==="Safari"&&_.tM0()||a==="Android Browser"&&_.u0G()||a==="Silk"&&F0("Silk")?(z=I[2])&&z[1]||"":""};
_.g7G=function(a){if(Vx()&&a!=="Silk"){var z=KG.brands.find(function(I){return I.brand===a});
if(!z||!z.version)return NaN;z=z.version.split(".")}else{z=B$G(a);if(z==="")return NaN;z=z.split(".")}return z.length===0?NaN:Number(z[0])};
x7=function(){return sm?!!KG&&!!KG.platform:!1};
_.OGG=function(){return x7()?KG.platform==="Android":F0("Android")};
fiG=function(){return F0("iPhone")&&!F0("iPod")&&!F0("iPad")};
_.vp=function(){return fiG()||F0("iPad")||F0("iPod")};
_.A1i=function(){return x7()?KG.platform==="macOS":F0("Macintosh")};
_.sEp=function(){return x7()?KG.platform==="Windows":F0("Windows")};
_.n7d=function(){return x7()?KG.platform==="Chrome OS":F0("CrOS")};
_.G3=function(a){return a[a.length-1]};
_.X0=function(a,z,I){z=_.Kd7(a,z,I);return z<0?null:typeof a==="string"?a.charAt(z):a[z]};
_.Kd7=function(a,z,I){for(var J=a.length,r=typeof a==="string"?a.split(""):a,P=0;P<J;P++)if(P in r&&z.call(I,r[P],P,a))return P;return-1};
Fdp=function(a){for(var z=_.T3,I=typeof a==="string"?a.split(""):a,J=a.length-1;J>=0;J--)if(J in I&&z.call(void 0,I[J],J,a))return J;return-1};
_.Um=function(a,z){return _.d$(a,z)>=0};
_.HGG=function(a,z){_.Um(a,z)||a.push(z)};
_.Di=function(a,z){z=_.d$(a,z);var I;(I=z>=0)&&_.bGE(a,z);return I};
_.bGE=function(a,z){Array.prototype.splice.call(a,z,1)};
_.RE=function(a){var z=a.length;if(z>0){for(var I=Array(z),J=0;J<z;J++)I[J]=a[J];return I}return[]};
_.pG=function(a,z){for(var I=1;I<arguments.length;I++){var J=arguments[I];if(_.lG(J)){var r=a.length||0,P=J.length||0;a.length=r+P;for(var N=0;N<P;N++)a[r+N]=J[N]}else a.push(J)}};
_.VMG=function(a,z,I,J){Array.prototype.splice.apply(a,hIG(arguments,1))};
hIG=function(a,z,I){return arguments.length<=2?Array.prototype.slice.call(a,z):Array.prototype.slice.call(a,z,I)};
QEm=function(a,z){z=z||a;for(var I=0,J=0,r={};J<a.length;){var P=a[J++],N=_.md(P)?"o"+_.yx(P):(typeof P).charAt(0)+P;Object.prototype.hasOwnProperty.call(r,N)||(r[N]=!0,z[I++]=P)}z.length=I};
_.iGx=function(a,z,I){I=I||_.SmI;for(var J=0,r=a.length,P;J<r;){var N=J+(r-J>>>1);var u=I(z,a[N]);u>0?J=N+1:(r=N,P=!u)}return P?J:-J-1};
_.MO=function(a,z,I){if(!_.lG(a)||!_.lG(z)||a.length!=z.length)return!1;var J=a.length;I=I||xO1;for(var r=0;r<J;r++)if(!I(a[r],z[r]))return!1;return!0};
_.SmI=function(a,z){return a>z?1:a<z?-1:0};
xO1=function(a,z){return a===z};
v7M=function(a,z,I){z=Array.prototype.splice.call(a,z,1);Array.prototype.splice.call(a,I,0,z[0])};
$Op=function(a){return G3E[a]||""};
dOx=function(a){if(!Xp0)return _.cp(a);a=T$3.test(a)?a.replace(T$3,$Op):a;a=atob(a);for(var z=new Uint8Array(a.length),I=0;I<a.length;I++)z[I]=a.charCodeAt(I);return z};
Wd1=function(a,z){a.__closure__error__context__984382||(a.__closure__error__context__984382={});a.__closure__error__context__984382.severity=z};
_.qO=function(a){a=Error(a);Wd1(a,"warning");return a};
UO1=function(a,z){if(a!=null){var I;var J=(I=o70)!=null?I:o70={};I=J[a]||0;I>=z||(J[a]=I+1,a=Error(),Wd1(a,"incident"),J1(a))}};
jI=function(a,z,I){return typeof Symbol==="function"&&typeof Symbol()==="symbol"?(I===void 0?0:I)&&Symbol.for&&a?Symbol.for(a):a!=null?Symbol(a):Symbol():z};
LdG=function(a,z){Jo||_.rf in a||DOO(a,RII);a[_.rf]|=z};
Zj=function(a,z){Jo||_.rf in a||DOO(a,RII);a[_.rf]=z};
lip=function(a){if(4&a)return 512&a?512:1024&a?1024:0};
NE=function(a){LdG(a,34);return a};
ppd=function(a){LdG(a,32);return a};
to=function(){return typeof BigInt==="function"};
EO=function(a,z){return z===void 0?a.copyOnWrite!==uw&&!!(2&(a.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows[_.rf]|0)):!!(2&z)&&a.copyOnWrite!==uw};
_.Qi=function(a,z){if(a!=null)if(typeof a==="string")a=a?new nl(a,ho):_.Vi();else if(a.constructor!==nl)if(wpi&&a!=null&&a instanceof Uint8Array)a=a.length?new nl(new Uint8Array(a),ho):_.Vi();else{if(!z)throw Error();a=void 0}return a};
mOG=function(a,z){if(typeof z!=="number"||z<0||z>=a.length)throw Error();};
y10=function(a,z,I){var J=z&128?0:-1,r=a.length,P;if(P=!!r)P=a[r-1],P=P!=null&&typeof P==="object"&&P.constructor===Object;var N=r+(P?-1:0);for(z=z&128?1:0;z<N;z++)I(z-J,a[z]);if(P){a=a[r-1];for(var u in a)!isNaN(u)&&I(+u,a[u])}};
ve=function(a){return a&128?xG:void 0};
$G=function(a){a.isGuard_doNotManuallySetPrettyPlease=!0;return a};
MM$=function(){var a=k3$;return $G(function(z){for(var I in a)if(z===a[I]&&!/^[0-9]+$/.test(I))return!0;return!1})};
_.X1=function(a){var z=a;if(c1E(z)){if(!/^\s*(?:-?[1-9]\d*|0)?\s*$/.test(z))throw Error(String(z));}else if(YmE(z)&&!Number.isSafeInteger(z))throw Error(String(z));return qmx?BigInt(a):a=eIG(a)?a?"1":"0":c1E(a)?a.trim()||"0":String(a)};
ajI=function(a,z){if(a.length>z.length)return!1;if(a.length<z.length||a===z)return!0;for(var I=0;I<a.length;I++){var J=a[I],r=z[I];if(J>r)return!1;if(J<r)return!0}};
jwx=function(a){var z=a>>>0;df=z;We=(a-z)/4294967296>>>0};
ow=function(a){if(a<0){jwx(-a);var z=_.C(zv7(df,We));a=z.next().value;z=z.next().value;df=a>>>0;We=z>>>0}else jwx(a)};
Ij1=function(a,z){var I=z*4294967296+(a>>>0);return Number.isSafeInteger(I)?I:_.UO(a,z)};
Joi=function(a,z){var I=z&2147483648;I&&(a=~a+1>>>0,z=~z>>>0,a==0&&(z=z+1>>>0));a=Ij1(a,z);return typeof a==="number"?I?-a:a:I?"-"+a:a};
_.UO=function(a,z){z>>>=0;a>>>=0;if(z<=2097151)var I=""+(4294967296*z+a);else to()?I=""+(BigInt(z)<<BigInt(32)|BigInt(a)):(I=(a>>>24|z<<8)&16777215,z=z>>16&65535,a=(a&16777215)+I*6777216+z*6710656,I+=z*8147497,z*=2,a>=1E7&&(I+=a/1E7>>>0,a%=1E7),I>=1E7&&(z+=I/1E7>>>0,I%=1E7),I=z+ro$(I)+ro$(a));return I};
ro$=function(a){a=String(a);return"0000000".slice(a.length)+a};
_.PwG=function(a,z){z&2147483648?to()?a=""+(BigInt(z|0)<<BigInt(32)|BigInt(a>>>0)):(z=_.C(zv7(a,z)),a=z.next().value,z=z.next().value,a="-"+_.UO(a,z)):a=_.UO(a,z);return a};
Zl1=function(a){if(a.length<16)ow(Number(a));else if(to())a=BigInt(a),df=Number(a&BigInt(4294967295))>>>0,We=Number(a>>BigInt(32)&BigInt(4294967295));else{var z=+(a[0]==="-");We=df=0;for(var I=a.length,J=z,r=(I-z)%6+z;r<=I;J=r,r+=6)J=Number(a.slice(J,r)),We*=1E6,df=df*1E6+J,df>=4294967296&&(We+=Math.trunc(df/4294967296),We>>>=0,df>>>=0);z&&(z=_.C(zv7(df,We)),a=z.next().value,z=z.next().value,df=a,We=z)}};
zv7=function(a,z){z=~z;a?a=~a+1:z+=1;return[a,z]};
Dj=function(a){return Array.prototype.slice.call(a)};
_.Rw=function(a,z){throw Error(z===void 0?"unexpected value "+a+"!":z);};
_.lw=function(a){if(a!=null&&typeof a!=="number")throw Error("L`"+typeof a+"`"+a);return a};
_.CwM=function(a){if(a==null||typeof a==="number")return a;if(a==="NaN"||a==="Infinity"||a==="-Infinity")return Number(a)};
Nf1=function(a){if(a!=null&&typeof a!=="boolean")throw Error("M`"+_.pl(a)+"`"+a);return a};
_.tIG=function(a){if(a==null||typeof a==="boolean")return a;if(typeof a==="number")return!!a};
_.mX=function(a){switch(typeof a){case "bigint":return!0;case "number":return wf(a);case "string":return u1$.test(a);default:return!1}};
_.yi=function(a){if(!wf(a))throw _.qO("enum");return a|0};
_.YG=function(a){return a==null?a:wf(a)?a|0:void 0};
EGE=function(a){if(typeof a!=="number")throw _.qO("int32");if(!wf(a))throw _.qO("int32");return a|0};
_.qE=function(a){return a==null?a:EGE(a)};
_.eI=function(a){if(a==null)return a;if(typeof a==="string"&&a)a=+a;else if(typeof a!=="number")return;return wf(a)?a|0:void 0};
_.Bf7=function(a){if(a==null)return a;if(typeof a==="string"&&a)a=+a;else if(typeof a!=="number")return;return wf(a)?a>>>0:void 0};
AoG=function(a){var z=0;z=z===void 0?0:z;if(!_.mX(a))throw _.qO("int64");var I=typeof a;switch(z){case 512:switch(I){case "string":return zY(a);case "bigint":return String(IZ(64,a));default:return gG$(a)}case 1024:switch(I){case "string":return OlI(a);case "bigint":return _.X1(IZ(64,a));default:return fj0(a)}case 0:switch(I){case "string":return zY(a);case "bigint":return _.X1(IZ(64,a));default:return Je(a)}default:return _.Rw(z,"Unknown format requested type for int64")}};
rE=function(a){return a==null?a:AoG(a)};
swO=function(a){if(a[0]==="-")return!1;var z=a.length;return z<20?!0:z===20&&Number(a.substring(0,6))<184467};
nGd=function(a){var z=a.length;return a[0]==="-"?z<20?!0:z===20&&Number(a.substring(0,7))>-922337:z<19?!0:z===19&&Number(a.substring(0,6))<922337};
KXp=function(a){if(a<0){ow(a);var z=_.UO(df,We);a=Number(z);return P4(a)?a:z}z=String(a);if(swO(z))return z;ow(a);return Ij1(df,We)};
FX7=function(a){if(nGd(a))return a;Zl1(a);return _.PwG(df,We)};
HlE=function(a){if(swO(a))return a;Zl1(a);return _.UO(df,We)};
Je=function(a){a=CZ(a);P4(a)||(ow(a),a=Joi(df,We));return a};
_.blp=function(a){a=CZ(a);return a>=0&&P4(a)?a:KXp(a)};
gG$=function(a){a=CZ(a);if(P4(a))a=String(a);else{var z=String(a);nGd(z)?a=z:(ow(a),a=_.PwG(df,We))}return a};
_.hv$=function(a){a=CZ(a);if(a>=0&&P4(a))a=String(a);else{var z=String(a);swO(z)?a=z:(ow(a),a=_.UO(df,We))}return a};
zY=function(a){var z=CZ(Number(a));if(P4(z))return String(z);z=a.indexOf(".");z!==-1&&(a=a.substring(0,z));return FX7(a)};
OlI=function(a){var z=CZ(Number(a));if(P4(z))return _.X1(z);z=a.indexOf(".");z!==-1&&(a=a.substring(0,z));return to()?_.X1(IZ(64,BigInt(a))):_.X1(FX7(a))};
fj0=function(a){return P4(a)?_.X1(Je(a)):_.X1(gG$(a))};
_.VIx=function(a){return P4(a)?_.X1(_.blp(a)):_.X1(_.hv$(a))};
_.QwO=function(a){var z=CZ(Number(a));if(P4(z)&&z>=0)return String(z);z=a.indexOf(".");z!==-1&&(a=a.substring(0,z));return HlE(a)};
_.SO7=function(a){var z=CZ(Number(a));if(P4(z)&&z>=0)return _.X1(z);z=a.indexOf(".");z!==-1&&(a=a.substring(0,z));return to()?_.X1((0,_.N0)(64,BigInt(a))):_.X1(HlE(a))};
_.xEm=function(a){if(a==null)return a;if(typeof a==="bigint")return il1(a)?a=Number(a):(a=IZ(64,a),a=il1(a)?Number(a):String(a)),a;if(_.mX(a))return typeof a==="number"?Je(a):zY(a)};
vGM=function(a,z){z=z===void 0?!1:z;var I=typeof a;if(a==null)return a;if(I==="bigint")return String(IZ(64,a));if(_.mX(a))return I==="string"?zY(a):z?gG$(a):Je(a)};
_.GJO=function(a){var z=typeof a;if(a==null)return a;if(z==="bigint")return _.X1(IZ(64,a));if(_.mX(a))return z==="string"?OlI(a):fj0(a)};
$EG=function(a){if(a==null)return a;var z=typeof a;if(z==="bigint")return String(IZ(64,a));if(_.mX(a)){if(z==="string")return zY(a);if(z==="number")return Je(a)}};
Xex=function(a){if(a==null)return a;var z=typeof a;if(z==="bigint")return String((0,_.N0)(64,a));if(_.mX(a)){if(z==="string")return _.QwO(a);if(z==="number")return _.blp(a)}};
_.te=function(a){if(typeof a!=="string")throw Error();return a};
u0=function(a){if(a!=null&&typeof a!=="string")throw Error();return a};
_.gE=function(a){return a==null||typeof a==="string"?a:void 0};
WX0=function(a,z,I,J){if(a!=null&&a[OG]===Ae)return a;if(!Array.isArray(a))return I?J&2?z[TfE]||(z[TfE]=dE7(z)):new z:void 0;I=a[_.rf]|0;J=I|J&32|J&2;J!==I&&Zj(a,J);return new z(a)};
dE7=function(a){a=new a;NE(a.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows);return a};
oGm=function(a,z,I){a=z?EGE(a):_.eI(a);return a==null?I?0:void 0:a|0};
UEm=function(a){return a};
DEG=function(a){return a};
LX$=function(a,z,I,J,r,P){a=WX0(a,J,I,P);r&&(a=Rvp(a));return a};
lj0=function(a){return[a,this.get(a)]};
mEm=function(){return peM||(peM=new KZ(NE([]),void 0,void 0,void 0,weM))};
yoG=function(a){var z=FM(b0);return z?a[z]:void 0};
cop=function(a,z){var I=I===void 0?!1:I;if(FM(kJO)&&FM(b0)&&void 0===kJO){var J=a.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,r=J[b0];if(!r)return;if(r=r.reviveUnknownFields)try{r(J,z,MIG);return}catch(P){J1(P)}}I&&(a=a.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,(I=FM(b0))&&I in a&&(a=a[I])&&delete a[z])};
qOO=function(a,z){var I=FM(b0),J;Jo&&I&&((J=a[I])==null?void 0:J[z])!=null&&UO1(YOG,3)};
aEm=function(a,z){z<100||UO1(evG,1)};
red=function(a,z,I,J){var r=J!==void 0;J=!!J;var P=FM(b0),N;!r&&Jo&&P&&(N=a[P])&&jZx(N,aEm);P=[];var u=a.length;N=4294967295;var E=!1,O=!!(z&64),f=O?z&128?0:-1:void 0;if(!(z&1)){var A=u&&a[u-1];A!=null&&typeof A==="object"&&A.constructor===Object?(u--,N=u):A=void 0;if(O&&!(z&128)&&!r){E=!0;var n;N=((n=ziE)!=null?n:UEm)(N-f,f,a,A,void 0)+f}}z=void 0;for(n=0;n<u;n++){var F=a[n];if(F!=null&&(F=I(F,J))!=null)if(O&&n>=N){var h=n-f,v=void 0;((v=z)!=null?v:z={})[h]=F}else P[n]=F}if(A)for(var d in A)u=A[d],
u!=null&&(u=I(u,J))!=null&&(n=+d,F=void 0,O&&!Number.isNaN(n)&&(F=n+f)<N?P[F]=u:(n=void 0,((n=z)!=null?n:z={})[d]=u));z&&(E?P.push(z):P[N]=z);r&&FM(b0)&&(a=yoG(a))&&a instanceof IEI&&(P[b0]=Jei(a));return P};
ZZ$=function(a){a[0]=P0G(a[0]);a[1]=P0G(a[1]);return a};
P0G=function(a){switch(typeof a){case "number":return Number.isFinite(a)?a:""+a;case "bigint":return il1(a)?Number(a):""+a;case "boolean":return a?1:0;case "object":if(Array.isArray(a)){var z=a[_.rf]|0;return a.length===0&&z&1?void 0:red(a,z,P0G)}if(a!=null&&a[OG]===Ae)return C0G(a);if(a instanceof nl){z=a.JSC$8777_value_;if(z==null)a="";else if(typeof z==="string")a=z;else{if(Xp0){for(var I="",J=0,r=z.length-10240;J<r;)I+=String.fromCharCode.apply(null,z.subarray(J,J+=10240));I+=String.fromCharCode.apply(null,
J?z.subarray(J):z);z=btoa(I)}else z=_.he(z);a=a.JSC$8777_value_=z}return a}if(a instanceof KZ)return a=a.size!==0?Array.from(i0.prototype.entries.call(a),ZZ$):void 0,a;return}return a};
v4=function(a,z){if(z){ziE=z==null||z===UEm||z[NE$]!==tfO?UEm:z;try{return C0G(a)}finally{ziE=void 0}}return C0G(a)};
C0G=function(a){a=a.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;return red(a,a[_.rf]|0,P0G)};
BE3=function(a){switch(typeof a){case "boolean":return uMp||(uMp=[0,void 0,!0]);case "number":return a>0?void 0:a===0?EZx||(EZx=[0,void 0]):[-a,void 0];case "string":return[0,a];case "object":return a}};
gZ$=function(a,z,I){return a=_.GY(a,z[0],z[1],I?1:2)};
_.GY=function(a,z,I,J){J=J===void 0?0:J;if(a==null){var r=32;I?(a=[I],r|=128):a=[];z&&(r=r&-8380417|(z&1023)<<13)}else{if(!Array.isArray(a))throw Error("O");r=a[_.rf]|0;if(OZx&&1&r)throw Error("P");2048&r&&!(2&r)&&fEd();if(r&256)throw Error("Q");if(r&64)return J!==0||r&2048||Zj(a,r|2048),a;if(I&&(r|=128,I!==a[0]))throw Error("R");a:{I=a;r|=64;var P=I.length;if(P){var N=P-1,u=I[N];if(u!=null&&typeof u==="object"&&u.constructor===Object){z=r&128?0:-1;N-=z;if(N>=1024)throw Error("T");for(var E in u)P=
+E,P<N&&(I[P+z]=u[E],delete u[E]);r=r&-8380417|(N&1023)<<13;break a}}if(z){E=Math.max(z,P-(r&128?0:-1));if(E>1024)throw Error("U");r=r&-8380417|(E&1023)<<13}}}r|=64;J===0&&(r|=2048);Zj(a,r);return a};
fEd=function(){if(OZx)throw Error("S");UO1(AeG,5)};
KzE=function(a,z){if(typeof a!=="object")return a;if(Array.isArray(a)){var I=a[_.rf]|0;return a.length===0&&I&1?void 0:sZG(a,I,z)}if(a!=null&&a[OG]===Ae)return nZ0(a);if(a instanceof KZ){z=a.arrayState;if(z&2)return a;if(!a.size)return;I=NE(Array.from(i0.prototype.entries.call(a)));if(a.valueCtor)for(a=0;a<I.length;a++){var J=I[a],r=J[1];r==null||typeof r!=="object"?r=void 0:r!=null&&r[OG]===Ae?r=nZ0(r):Array.isArray(r)?r=sZG(r,r[_.rf]|0,!!(z&32)):r=void 0;J[1]=r}return I}if(a instanceof nl)return a};
sZG=function(a,z,I){if(z&2)return a;!I||4096&z||16&z?a=$Z(a,z,!1,I&&!(z&16)):(LdG(a,34),z&4&&Object.freeze(a));return a};
Fz$=function(a,z,I){a=new a.constructor(z);I&&(a.copyOnWrite=uw);a.noLegacyNull=uw;return a};
nZ0=function(a){var z=a.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,I=z[_.rf]|0;return EO(a,I)?a:HZ0(a,z,I)?Fz$(a,z):$Z(z,I)};
$Z=function(a,z,I,J){J!=null||(J=!!(34&z));a=red(a,z,KzE,J);J=32;I&&(J|=2);z=z&8380609|J;Zj(a,z);return a};
Rvp=function(a){var z=a.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,I=z[_.rf]|0;return EO(a,I)?HZ0(a,z,I)?Fz$(a,z,!0):new a.constructor($Z(z,I,!1)):a};
W4=function(a){if(a.copyOnWrite!==uw)return!1;var z=a.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;z=$Z(z,z[_.rf]|0);LdG(z,2048);a.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=z;a.copyOnWrite=void 0;a.noLegacyNull=void 0;return!0};
oZ=function(a){if(!W4(a)&&EO(a,a.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows[_.rf]|0))throw Error();};
UG=function(a,z){z===void 0&&(z=a[_.rf]|0);z&32&&!(z&4096)&&Zj(a,z|4096)};
HZ0=function(a,z,I){return I&2?!0:I&32&&!(I&4096)?(Zj(z,I|2),a.copyOnWrite=uw,!0):!1};
DE=function(a,z,I,J,r){var P=I+(r?0:-1),N=a.length-1;if(N>=1+(r?0:-1)&&P>=N){var u=a[N];if(u!=null&&typeof u==="object"&&u.constructor===Object)return u[I]=J,z}if(P<=N)return a[P]=J,z;if(J!==void 0){var E;N=((E=z)!=null?E:z=a[_.rf]|0)>>13&1023||536870912;I>=N?J!=null&&(P={},a[N+(r?0:-1)]=(P[I]=J,P)):a[P]=J}return z};
_.pZ=function(a,z,I,J,r){var P=a.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,N=P[_.rf]|0;J=EO(a,N)?1:J;r=!!r||J===3;J===2&&W4(a)&&(P=a.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,N=P[_.rf]|0);a=bZm(P,z);var u=a===LZ?7:a[_.rf]|0,E=hi$(u,N);var O=4&E?!1:!0;if(O){4&E&&(a=Dj(a),u=0,E=l0(E,N),N=DE(P,N,z,a));for(var f=0,A=0;f<a.length;f++){var n=I(a[f]);n!=null&&(a[A++]=n)}A<f&&(a.length=A);I=(E|4)&-513;E=I&=-1025;E&=-4097}E!==u&&(Zj(a,E),2&E&&Object.freeze(a));return a=Vf1(a,E,P,
N,z,J,O,r)};
Vf1=function(a,z,I,J,r,P,N,u){var E=z;P===1||(P!==4?0:2&z||!(16&z)&&32&J)?mz(z)||(z|=!a.length||N&&!(4096&z)||32&J&&!(4096&z||16&z)?2:256,z!==E&&Zj(a,z),Object.freeze(a)):(P===2&&mz(z)&&(a=Dj(a),E=0,z=l0(z,J),J=DE(I,J,r,a)),mz(z)||(u||(z|=16),z!==E&&Zj(a,z)));2&z||!(4096&z||16&z)||UG(I,J);return a};
bZm=function(a,z,I){a=yV(a,z,I);return Array.isArray(a)?a:LZ};
hi$=function(a,z){2&z&&(a|=2);return a|1};
mz=function(a){return!!(2&a)&&!!(4&a)||!!(256&a)};
QZ0=function(a){return _.Qi(a,!0)};
SGi=function(a,z){var I=a.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,J=I[_.rf]|0;a:{var r=J;J=EO(a,J);!J&&W4(a)&&(I=a.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,r=I[_.rf]|0);var P=yV(I,z);a=!1;if(P==null){if(J){z=mEm();break a}P=[]}else if(P.constructor===KZ)if(P.arrayState&2&&!J)P=Array.from(i0.prototype.entries.call(P));else{z=P;break a}else Array.isArray(P)?a=!!((P[_.rf]|0)&2):P=[];if(J){if(!P.length){z=mEm();break a}a||(a=!0,NE(P))}else if(a){a=!1;J=P;J=Dj(J);for(P=0;P<
J.length;P++){var N=J[P]=Dj(J[P]);Array.isArray(N[1])&&(N[1]=NE(N[1]))}P=J}!a&&r&32&&ppd(P);J=new KZ(P,void 0,oGm,oGm);r=DE(I,r,z,J);a||UG(I,r);z=J}return z};
_.kZ=function(a,z,I,J){oZ(a);var r=a.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,P=r[_.rf]|0;if(I==null)return DE(r,P,z),a;var N=I===LZ?7:I[_.rf]|0,u=N,E=mz(N),O=E||Object.isFrozen(I);E||(N=0);O||(I=Dj(I),u=0,N=l0(N,P),O=!1);N|=5;var f;E=(f=lip(N))!=null?f:0;for(f=0;f<I.length;f++){var A=I[f],n=J(A,E);Object.is(A,n)||(O&&(I=Dj(I),u=0,N=l0(N,P),O=!1),I[f]=n)}N!==u&&(O&&(I=Dj(I),N=l0(N,P)),Zj(I,N));DE(r,P,z,I);return a};
_.M0=function(a,z,I,J,r){oZ(a);var P=a.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;DE(P,P[_.rf]|0,z,(J==="0"?Number(I)===0:I===J)?void 0:I,r);return a};
_.iZG=function(a,z,I){if(z&2)throw Error();var J=ve(z),r=bZm(a,I,J),P=r===LZ?7:r[_.rf]|0,N=hi$(P,z);if(2&N||mz(N)||16&N)r=Dj(r),P=0,N=l0(N,z),DE(a,z,I,r,J);N&=-13;N!==P&&Zj(r,N);return r};
x0E=function(a){if(Jo){var z;return(z=a[c4])!=null?z:a[c4]=new Map}if(c4 in a)return a[c4];z=new Map;Object.defineProperty(a,c4,{value:z});return z};
GYi=function(a,z,I,J,r){var P=x0E(a),N=vZI(P,a,z,I,r);N!==J&&(N&&(z=DE(a,z,N,void 0,r)),P.set(I,J));return z};
vZI=function(a,z,I,J,r){var P=a.get(J);if(P!=null)return P;for(var N=P=0;N<J.length;N++){var u=J[N];yV(z,u,r)!=null&&(P!==0&&(I=DE(z,I,P,void 0,r)),P=u)}a.set(J,P);return P};
$03=function(a,z,I,J,r){var P=!1;J=yV(a,J,r,function(N){var u=WX0(N,I,!1,z);P=u!==N&&u!=null;return u});
if(J!=null)return P&&!EO(J)&&UG(a,z),J};
X4p=function(a,z,I,J,r,P,N,u){var E=EO(a,I);P=E?1:P;N=!!N||P===3;E=u&&!E;(P===2||E)&&W4(a)&&(z=a.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,I=z[_.rf]|0);a=bZm(z,r);var O=a===LZ?7:a[_.rf]|0,f=hi$(O,I);if(u=!(4&f)){var A=a,n=I,F=!!(2&f);F&&(n|=2);for(var h=!F,v=!0,d=0,W=0;d<A.length;d++){var l=WX0(A[d],J,!1,n);if(l instanceof J){if(!F){var q=EO(l);h&&(h=!q);v&&(v=q)}A[W++]=l}}W<d&&(A.length=W);f|=4;f=v?f&-4097:f|4096;f=h?f|8:f&-9}f!==O&&(Zj(a,f),2&f&&Object.freeze(a));if(E&&!(8&f||!a.length&&
(P===1||(P!==4?0:2&f||!(16&f)&&32&I)))){mz(f)&&(a=Dj(a),f=l0(f,I),I=DE(z,I,r,a));J=a;E=f;for(O=0;O<J.length;O++)A=J[O],f=Rvp(A),A!==f&&(J[O]=f);E|=8;f=E=J.length?E|4096:E&-4097;Zj(a,f)}return a=Vf1(a,f,z,I,r,P,u,N)};
TE7=function(a){a==null&&(a=void 0);return a};
l0=function(a,z){return a=(2&z?a|2:a&-3)&-273};
_.d03=function(a,z,I,J,r){oZ(a);z=_.pZ(a,z,r,2,!0);var P;r=(P=lip(z===LZ?7:z[_.rf]|0))!=null?P:0;z.push(I(J,r));return a};
Wz3=function(a,z,I,J,r,P,N){oZ(a);var u=a.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;a=X4p(a,u,u[_.rf]|0,I,z,2,!0);if(P&&N)r!=null||(r=a.length-1),mOG(a,r),a.splice(r,P),a.length||(a[_.rf]&=-4097);else{if(P){if(typeof r!=="number"||r<0||r>a.length)throw Error();}else J=J!=null?J:new I;r!=void 0?a.splice(r,P,J):a.push(J);r=I=a===LZ?7:a[_.rf]|0;(J=EO(J))?(I&=-9,a.length===1&&(I&=-4097)):I|=4096;I!==r&&Zj(a,I);J||UG(u)}};
U0p=function(a,z){if(typeof a==="string")return new YZ(dOx(a),z);if(Array.isArray(a))return new YZ(new Uint8Array(a),z);if(a.constructor===Uint8Array)return new YZ(a,!1);if(a.constructor===ArrayBuffer)return a=new Uint8Array(a),new YZ(a,!1);if(a.constructor===nl)return z=oZ0(a)||new Uint8Array(0),new YZ(z,!0,a);if(a instanceof Uint8Array)return a=a.constructor===Uint8Array?a:new Uint8Array(a.buffer,a.byteOffset,a.byteLength),new YZ(a,!1);throw Error();};
q0=function(){var a=function(){throw Error();};
Object.setPrototypeOf(a,a.prototype);return a};
RiM=function(a,z){var I=I===void 0?D0$:I;return new ef(a,z,I)};
w4$=function(a,z,I,J,r){z=LzO(z,J);z!=null&&(I=_.lE3(a,I),r(z,a),_.p41(a,I))};
at=function(a,z,I,J){var r=J[a];if(r)return r;r={};r.binaryFields=J;r.messageMetadata=BE3(J[0]);var P=J[1],N=1;P&&P.constructor===Object&&(r.extensions=P,P=J[++N],typeof P==="function"&&(r.isMessageSet=!0,m0I!=null||(m0I=P),ye1!=null||(ye1=J[N+1]),P=J[N+=2]));for(var u={};P&&kYx(P);){for(var E=0;E<P.length;E++)u[P[E]]=P;P=J[++N]}for(E=1;P!==void 0;){typeof P==="number"&&(E+=P,P=J[++N]);var O=void 0;if(P instanceof ef)var f=P;else f=MfO,N--;P=void 0;if((P=f)==null?0:P.$$isMsg){P=J[++N];O=J;var A=N;
typeof P==="function"&&(P=P(),O[A]=P);O=P}P=J[++N];A=E+1;typeof P==="number"&&P<0&&(A-=P,P=J[++N]);for(;E<A;E++){var n=u[E];O?I(r,E,f,O,n):z(r,E,f,n)}}return J[a]=r};
kYx=function(a){return Array.isArray(a)&&!!a.length&&typeof a[0]==="number"&&a[0]>0};
YG7=function(a){return Array.isArray(a)?a[0]instanceof ef?a:[ce3,a]:[a,void 0]};
LzO=function(a,z){if(a instanceof _.ju)return a.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;if(Array.isArray(a))return gZ$(a,z,!1)};
qGM=function(a,z,I,J){var r=I.$$binaryReaderFn;a[z]=J?function(P,N,u){return r(P,N,u,J)}:r};
axx=function(a,z,I,J,r){var P=I.$$binaryReaderFn,N,u;a[z]=function(E,O,f){return P(E,O,f,u||(u=at(eiG,qGM,axx,J).messageMetadata),N||(N=jtO(J)),r)}};
jtO=function(a){var z=a[z7M];if(z!=null)return z;var I=at(eiG,qGM,axx,a);z=I.isMessageSet?function(J,r){return m0I(J,r,I)}:function(J,r){for(;Ix7(r)&&r.nextWireType_!=4;){var P=r.nextField_,N=I[P];
if(N==null){var u=I.extensions;u&&(u=u[P])&&(u=Jx3(u),u!=null&&(N=I[P]=u))}if(N==null||!N(r,J,P)){u=r;N=u.fieldCursor_;rx7(u);if(u.discardUnknownFields)var E=void 0;else{var O=u.decoder_.cursor_-N;u.decoder_.cursor_=N;E=PjM(u.decoder_,O)}O=u=N=void 0;var f=J;E&&((N=(u=(O=f[b0])!=null?O:f[b0]=new IEI)[P])!=null?N:u[P]=[]).push(E)}}if(J=yoG(J))J.reviveUnknownFields=I.binaryFields[Z4G];return!0};
a[z7M]=z;a[Z4G]=Cj7.bind(a);return z};
Cj7=function(a,z,I,J){var r=this[eiG],P=this[z7M],N=gZ$(void 0,r.messageMetadata,!1),u=yoG(a);if(u){var E=!1,O=r.extensions;if(O){r=function(h,v,d){if(d.length!==0)if(O[v])for(h=_.C(d),v=h.next();!v.done;v=h.next()){v=NO7(v.value);try{E=!0,P(N,v)}finally{v.free()}}else J==null||J(a,v,d)};
if(z==null)jZx(u,r);else if(u!=null){var f=u[z];f&&r(u,z,f)}if(E){var A=a[_.rf]|0;if(A&2&&A&2048&&(I==null||!I.reviveIntoImmutable))throw Error();var n=ve(A),F=function(h,v){if(yV(a,h,n)!=null)switch(I==null?void 0:I.resolutionBehavior){case 1:return;default:throw Error();}v!=null&&(A=DE(a,A,h,v,n));delete u[h]};
z==null?y10(N,N[_.rf]|0,function(h,v){F(h,v)}):F(z,yV(N,z,n))}}}};
Jx3=function(a){a=YG7(a);var z=a[0].$$binaryReaderFn;if(a=a[1]){var I=jtO(a),J=at(eiG,qGM,axx,a).messageMetadata;return function(r,P,N){return z(r,P,N,J,I)}}return z};
tui=function(a,z,I){a[z]=I.$$binaryWriterFn};
EPE=function(a,z,I,J){var r,P,N=I.$$binaryWriterFn;a[z]=function(u,E,O){return N(u,E,O,P||(P=at(uG3,tui,EPE,J).messageMetadata),r||(r=BO$(J)))}};
BO$=function(a){var z=a[gPG];if(!z){var I=at(uG3,tui,EPE,a);z=function(J,r){return O4E(J,r,I)};
a[gPG]=z}return z};
O4E=function(a,z,I){y10(a,a[_.rf]|0,function(J,r){if(r!=null){var P=fx0(I,J);P?P(z,r,J):J<500||UO1(AxM,3)}});
(a=yoG(a))&&jZx(a,function(J,r,P){zN(z,z.encoder_.end());for(J=0;J<P.length;J++)zN(z,oZ0(P[J])||new Uint8Array(0))})};
fx0=function(a,z){var I=a[z];if(I)return I;if(I=a.extensions)if(I=I[z]){I=YG7(I);var J=I[0].$$binaryWriterFn;if(I=I[1]){var r=BO$(I),P=at(uG3,tui,EPE,I).messageMetadata;I=a.isMessageSet?ye1(P,r):function(N,u,E){return J(N,u,E,P,r)}}else I=J;
return a[z]=I}};
_.stG=function(a,z,I){if(Array.isArray(z)){var J=z[_.rf]|0;if(J&4)return z;for(var r=0,P=0;r<z.length;r++){var N=a(z[r]);N!=null&&(z[P++]=N)}P<r&&(z.length=P);I&&(Zj(z,(J|5)&-1537),J&2&&Object.freeze(z));return z}};
_.It=function(a,z,I){return new ef(a,z,I)};
_.nPM=function(a,z,I){return new ef(a,z,I)};
_.Jx=function(a,z,I){DE(a,a[_.rf]|0,z,I,ve(a[_.rf]|0))};
F9M=function(a,z,I){z=_.CwM(z);z!=null&&(_.rO(a,I,1),a=a.encoder_,I=K9$||(K9$=new DataView(new ArrayBuffer(8))),I.setFloat64(0,+z,!0),df=I.getUint32(0,!0),We=I.getUint32(4,!0),_.Zx(a,df),_.Zx(a,We))};
_.C4=function(a,z,I){z=$EG(z);if(z!=null){switch(typeof z){case "string":H4G(z)}if(z!=null)switch(_.rO(a,I,0),typeof z){case "number":a=a.encoder_;ow(z);b4G(a,df,We);break;case "bigint":I=BigInt.asUintN(64,z);I=new h77(Number(I&BigInt(4294967295)),Number(I>>BigInt(32)));b4G(a.encoder_,I.JSC$8821_lo,I.JSC$8821_hi);break;default:I=H4G(z),b4G(a.encoder_,I.JSC$8821_lo,I.JSC$8821_hi)}}};
Qt3=function(a,z,I){z=_.eI(z);z!=null&&z!=null&&(_.rO(a,I,0),_.Vu3(a.encoder_,z))};
_.i4M=function(a,z,I){SaI(a,I,Xex(z))};
_.xLG=function(a,z,I){z=_.tIG(z);z!=null&&(_.rO(a,I,0),a.encoder_.JSC$8823_buffer_.push(z?1:0))};
_.GN0=function(a,z,I){z=_.gE(z);z!=null&&vPx(a,I,J1p(z))};
$LE=function(a,z,I,J,r){z=LzO(z,J);z!=null&&(I=_.lE3(a,I),r(z,a),_.p41(a,I))};
_.X9M=function(a,z,I){z=z==null||typeof z=="string"||z instanceof nl?z:void 0;z!=null&&vPx(a,I,U0p(z,!0).buffer)};
_.TOm=function(a,z,I){z=_.eI(z);z!=null&&(z=parseInt(z,10),_.rO(a,I,0),_.Vu3(a.encoder_,z))};
_.tx=function(a,z){return function(I,J){var r={treatNewDataAsImmutable:!0};J&&Object.assign(r,J);I=NO7(I,void 0,void 0,r);try{var P=new a,N=P.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;jtO(z)(N,I);var u=P}finally{I.free()}return u}};
_.uj=function(a){return function(z){return dL1(z,a)}};
W9p=function(a){return function(){return dL1(this,a)}};
_.oPx=function(a){return $G(function(z){return z instanceof a&&!EO(z)})};
_.Ea=function(a){return function(z){return UL7(a,z)}};
lxx=function(a,z){return DL3({child:a,origin:z||"https://gamesnacks.com",channelName:"gspc",receiveMessageConstructor:R7M,getPayloadCase:function(I){return I.getPayloadCase()},
createInitMessage:function(I){var J=new B9,r=new L9G;I=_.gO(r,1,I);return _.Oa(J,5,sa,I)}})};
K4=function(a){return{valueOf:a}.valueOf()};
w9x=function(){var a=null;if(!p9G)return a;try{var z=function(I){return I};
a=p9G.createPolicy("goog#html",{createHTML:z,createScript:z,createScriptURL:z})}catch(I){}return a};
yx0=function(){mL7===void 0&&(mL7=w9x());return mL7};
_.H9=function(a){var z=yx0();a=z?z.createScriptURL(a):a;return new FG(a)};
_.bj=function(a){if(a instanceof FG)return a.privateDoNotAccessOrElseWrappedResourceUrl;throw Error("Z");};
_.hx=function(a){return Object.isFrozen(a)&&Object.isFrozen(a.raw)};
kNx=function(a){return a.toString().indexOf("`")===-1};
QI=function(a){return new _.VI(MuE,a)};
Su=function(a){return a instanceof _.VI};
_.ij=function(a){if(Su(a))return a.privateDoNotAccessOrElseWrappedUrl;throw Error("Z");};
xP=function(a){return new cxI(function(z){return z.substr(0,a.length+1).toLowerCase()===a+":"})};
_.GN=function(a,z){z=z===void 0?YaM:z;if(Su(a))return a;for(var I=0;I<z.length;++I){var J=z[I];if(J instanceof cxI&&J.isValid(a))return QI(a)}};
_.XG=function(a,z){z=z===void 0?YaM:z;return _.GN(a,z)||$P};
_.TN=function(a){var z=window;if(typeof MediaSource!=="undefined"&&a instanceof MediaSource||typeof z.ManagedMediaSource!=="undefined"&&a instanceof z.ManagedMediaSource)return QI(URL.createObjectURL(a));z=a.type;z.toLowerCase()==="application/octet-stream"?z=!0:(z=z.match(/^([^;]+)(?:;\w+=(?:\w+|"[\w;,= ]+"))*$/i),z=(z==null?void 0:z.length)===2&&(/^image\/(?:bmp|gif|jpeg|jpg|png|tiff|webp|x-icon|heic|heif|avif|x-ms-bmp)$/i.test(z[1])||/^video\/(?:3gpp|avi|mpeg|mpg|mp4|ogg|webm|x-flv|x-matroska|quicktime|x-ms-wmv)$/i.test(z[1])||
/^audio\/(?:3gpp2|3gpp|aac|amr|L16|midi|mp3|mp4|mpeg|oga|ogg|opus|x-m4a|x-matroska|x-wav|wav|webm)$/i.test(z[1])||/^font\/[\w-]+$/i.test(z[1])));if(!z)throw Error("Z");return QI(URL.createObjectURL(a))};
_.qaM=function(a){for(var z=_.dO.apply(1,arguments),I=[a[0]],J=0;J<z.length;J++)I.push(String(z[J])),I.push(a[J+1]);return QI(I.join(""))};
_.aIp=function(a){if(!e73){a:{var z=document.createElement("a");try{z.href=a}catch(I){a=void 0;break a}a=z.protocol;a=a===":"||a===""?"https:":a}return a}try{z=new URL(a)}catch(I){return"https:"}return z.protocol};
_.W9=function(a){a instanceof _.VI?a=_.ij(a):a=jlG.test(a)?a:void 0;return a};
_.Ua=function(a,z){z=_.W9(z);z!==void 0&&(a.href=z)};
Rt=function(a){var z=yx0();a=z?z.createHTML(a):a;return new Dx(a)};
L4=function(a){if(a instanceof Dx)return a.privateDoNotAccessOrElseWrappedHtml;throw Error("Z");};
_.lj=function(a,z){a.src=_.bj(z).toString()};
zE3=function(a,z){a.setAttribute("sandbox","");for(var I=0;I<z.length;I++)a.sandbox.supports&&!a.sandbox.supports(z[I])||a.sandbox.add(z[I])};
_.JyO=function(a,z,I){a.removeAttribute("srcdoc");switch(z){case 0:if(I instanceof FG)throw new II3("TrustedResourceUrl",0);zE3(a,[]);z=_.W9(I);z!==void 0&&(a.src=z);break;case 1:if(!(I instanceof FG))throw new II3(typeof I,1);zE3(a,"allow-same-origin allow-scripts allow-forms allow-popups allow-popups-to-escape-sandbox allow-storage-access-by-user-activation".split(" "));_.lj(a,I);break;case 2:if(I instanceof FG)throw new II3("TrustedResourceUrl",2);zE3(a,"allow-same-origin allow-scripts allow-forms allow-popups allow-popups-to-escape-sandbox allow-storage-access-by-user-activation".split(" "));
z=_.W9(I);z!==void 0&&(a.src=z);break;default:_.Rw(z)}};
_.wO=function(a,z,I,J){z=_.W9(z);return z!==void 0?a.open(z,I,J):null};
_.m9=function(a){a=a===void 0?document:a;var z,I;a=(I=(z=a).querySelector)==null?void 0:I.call(z,"script[nonce]");return a==null?"":a.nonce||a.getAttribute("nonce")||""};
_.kP=function(a){var z=yx0();a=z?z.createScript(a):a;return new _.yI(a)};
ryE=function(a){if(a instanceof _.yI)return a.privateDoNotAccessOrElseWrappedScript;throw Error("Z");};
Phx=function(a){var z=_.m9(a.ownerDocument);z&&a.setAttribute("nonce",z)};
_.ML=function(a,z){a.textContent=ryE(z);Phx(a)};
_.c9=function(a,z){a.src=_.bj(z);Phx(a)};
_.YP=function(a,z){if(a.nodeType===1&&/^(script|style)$/i.test(a.tagName))throw Error("Z");a.innerHTML=L4(z)};
_.qL=function(a,z,I,J){if(a.length===0)throw Error("Z");a=a.map(function(P){if(P instanceof ZuG)P=P.privateDoNotAccessOrElseWrappedAttributePrefix;else throw Error("Z");return P});
var r=I.toLowerCase();if(a.every(function(P){return r.indexOf(P)!==0}))throw Error("aa`"+I);
z.setAttribute(I,J)};
_.eu=function(a,z,I){if(z instanceof FG)a.href=_.bj(z).toString(),a.rel=I;else{if(Chi.indexOf(I)===-1)throw Error("ba`"+I);z=_.W9(z);z!==void 0&&(a.href=z,a.rel=I)}};
NVi=function(a){if(a instanceof al)return a.privateDoNotAccessOrElseWrappedStyleSheet;throw Error("Z");};
_.tdx=function(a,z){z=_.W9(z);z!==void 0&&(a.href=z)};
uX3=function(a,z){a&&(z=a.indexOf(z),0<=z&&a.splice(z,1))};
jd=function(a){return typeof a==="function"};
Ex1=function(a){return a instanceof Il||a&&"closed"in a&&jd(a.remove)&&jd(a.add)&&jd(a.unsubscribe)};
Jy=function(){};
rV=function(a){BVM(function(){throw a;})};
PP=function(a){return a};
ZI=function(){return gxG(_.dO.apply(0,arguments))};
gxG=function(a){return a.length===0?PP:a.length===1?a[0]:function(z){return a.reduce(function(I,J){return J(I)},z)}};
Ou$=function(a){var z;return(z=a!=null?a:void 0)!=null?z:Promise};
fIG=function(a,z){return new Cu(function(I){var J=0;return z.schedule(function(){J===a.length?I.complete():(I.next(a[J++]),I.closed||this.schedule())})})};
Ayp=function(a,z){if(!a)throw Error("ca");return new Cu(function(I){var J=new Il;J.add(z.schedule(function(){var r=a[Symbol.asyncIterator]();J.add(z.schedule(function(){var P=this;r.next().then(function(N){N.done?I.complete():(I.next(N.value),P.schedule())})}))}));
return J})};
sl7=function(a,z,I){z=z.schedule(function(){try{I.call(this)}catch(J){a.error(J)}},0);
a.add(z)};
K60=function(a,z){return new Cu(function(I){var J;I.add(z.schedule(function(){J=a[nxO]();sl7(I,z,function(){var r=J.next(),P=r.value;r.done?I.complete():(I.next(P),this.schedule())})}));
return function(){var r;return jd((r=J)==null?void 0:r.return)&&J.return()}})};
F60=function(a,z){return new Cu(function(I){var J=new Il;J.add(z.schedule(function(){var r=a[NR]();J.add(r.subscribe({next:function(P){J.add(z.schedule(function(){return I.next(P)}))},
error:function(P){J.add(z.schedule(function(){return I.error(P)}))},
complete:function(){J.add(z.schedule(function(){return I.complete()}))}}))}));
return J})};
Hu3=function(a,z){return new Cu(function(I){return z.schedule(function(){return a.then(function(J){I.add(z.schedule(function(){I.next(J);I.add(z.schedule(function(){return I.complete()}))}))},function(J){I.add(z.schedule(function(){return I.error(J)}))})})})};
bux=function(a){return new TypeError("da`"+(a!==null&&typeof a==="object"?"an invalid object":"'"+a+"'"))};
VdG=function(a,z){if(a!=null){if(jd(a[NR]))return F60(a,z);if(hEd(a))return fIG(a,z);if(jd(a==null?void 0:a.then))return Hu3(a,z);if(Symbol.asyncIterator&&jd(a==null?void 0:a[Symbol.asyncIterator]))return Ayp(a,z);if(jd(a==null?void 0:a[nxO]))return K60(a,z)}throw bux(a);};
Ek=function(a,z){return z?VdG(a,z):uh(a)};
uh=function(a){if(a instanceof Cu)return a;if(a!=null){if(jd(a[NR]))return Qlm(a);if(hEd(a))return SkG(a);if(jd(a==null?void 0:a.then))return iu3(a);if(Symbol.asyncIterator&&jd(a==null?void 0:a[Symbol.asyncIterator]))return xRd(a);if(jd(a==null?void 0:a[nxO]))return vxG(a)}throw bux(a);};
Qlm=function(a){return new Cu(function(z){var I=a[NR]();if(jd(I.subscribe))return I.subscribe(z);throw new TypeError("ea");})};
SkG=function(a){return new Cu(function(z){for(var I=0;I<a.length&&!z.closed;I++)z.next(a[I]);z.complete()})};
iu3=function(a){return new Cu(function(z){a.then(function(I){z.closed||(z.next(I),z.complete())},function(I){return z.error(I)}).then(null,rV)})};
vxG=function(a){return new Cu(function(z){for(var I=a[nxO]();!z.closed;){var J=I.next(),r=J.value;J.done?z.complete():z.next(r)}return function(){return jd(I==null?void 0:I.return)&&I.return()}})};
xRd=function(a){return new Cu(function(z){Gji(a,z).catch(function(I){return z.error(I)})})};
Gji=function(a,z){var I,J,r,P,N,u;return _.t(function(E){switch(E.nextAddress){case 1:_.BP(E,2,3),P=_.gV(a);case 5:return E.yield(P.next(),8);case 8:J=E.yieldResult;if(J.done){E.jumpTo(3);break}N=J.value;z.next(N);E.jumpTo(5);break;case 3:_.Ok(E);_.fu(E,9);if(!J||J.done||!(r=P.return)){E.jumpTo(9);break}return E.yield(r.call(P),9);case 9:_.Ok(E,0,0,1);if(I)throw I.error;_.Ay(E,10,1);break;case 10:_.Ay(E,4);break;case 2:u=_.sk(E);I={error:u};E.jumpTo(3);break;case 4:z.complete(),_.nu(E)}})};
$R1=function(a,z){return z?fIG(a,z):SkG(a)};
XP1=function(a){return jd(a[a.length-1])?a.pop():void 0};
Ku=function(a){var z=a[a.length-1];return z&&jd(z.schedule)?a.pop():void 0};
FX=function(){var a=_.dO.apply(0,arguments),z=Ku(a);return z?fIG(a,z):$R1(a)};
bh=function(a){var z=jd(a)?a:function(){return a};
return new Cu(function(I){return I.error(z())})};
hy=function(a){return function(z){if(jd(z==null?void 0:z.lift))return z.lift(function(I){try{return a(I,this)}catch(J){this.error(J)}});
throw new TypeError("fa");}};
QU=function(){return hy(function(a,z){var I=null;a._refCount++;var J=new VU(z,void 0,void 0,void 0,function(){if(!a||a._refCount<=0||0<--a._refCount)I=null;else{var r=a._connection,P=I;I=null;!r||P&&r!==P||r.unsubscribe();z.unsubscribe()}});
a.subscribe(J);J.closed||(I=a.connect())})};
dRx=function(){var a=TV0;var z=z===void 0?0:z;return hy(function(I,J){J.add(a.schedule(function(){return I.subscribe(J)},z))})};
Sd=function(a){return hy(function(z,I){var J=0;z.subscribe(new VU(I,function(r){I.next(a.call(void 0,r,J++))}))})};
ox0=function(a){return Sd(function(z){return W6G(z)?a.apply(null,_.ih(z)):a(z)})};
lI3=function(a){if(a.length===1){var z=a[0];if(URp(z))return{args:z,keys:null};if(z&&typeof z==="object"&&DRp(z)===RE1)return a=L6I(z),{args:a.map(function(I){return z[I]}),
keys:a}}return{args:a,keys:null}};
xx=function(){var a=_.dO.apply(0,arguments),z=Ku(a),I=XP1(a);a=lI3(a);var J=a.args,r=a.keys;if(J.length===0)return Ek([],z);z=new Cu(pPx(J,z,r?function(P){for(var N={},u=0;u<P.length;u++)N[r[u]]=P[u];return N}:PP));
return I?z.pipe(ox0(I)):z};
pPx=function(a,z,I){I=I===void 0?PP:I;return function(J){wPi(z,function(){for(var r=a.length,P=Array(r),N=r,u=a.map(function(){return!1}),E=!0,O={i$jscomp$216:0};O.i$jscomp$216<r;O={i$jscomp$216:O.i$jscomp$216},O.i$jscomp$216++)wPi(z,function(f){return function(){Ek(a[f.i$jscomp$216],z).subscribe(new vP(J,function(A){P[f.i$jscomp$216]=A;
E&&(u[f.i$jscomp$216]=!0,E=!u.every(PP));E||J.next(I(P.slice()))},function(){return--N===0}))}}(O),J)},J)}};
wPi=function(a,z,I){a?I.add(a.schedule(z)):z()};
mR$=function(a,z,I,J){var r=[],P=0,N=0,u=!1,E=function(O){P++;uh(I(O,N++)).subscribe(new VU(z,function(f){z.next(f)},void 0,function(){P--;
for(var f={};r.length&&P<J;f={bufferedValue:void 0})f.bufferedValue=r.shift(),E(f.bufferedValue);!u||r.length||P||z.complete()}))};
a.subscribe(new VU(z,function(O){return P<J?E(O):r.push(O)},void 0,function(){u=!0;
!u||r.length||P||z.complete()}));
return function(){r=null}};
Gj=function(a,z){var I=I===void 0?Infinity:I;if(jd(z))return Gj(function(J,r){return Sd(function(P,N){return z(J,P,r,N)})(uh(a(J,r)))},I);
typeof z==="number"&&(I=z);return hy(function(J,r){return mR$(J,r,a,I)})};
yyG=function(a){a=a===void 0?Infinity:a;return Gj(PP,a)};
kjI=function(){var a=_.dO.apply(0,arguments);return yyG(1)($R1(a,Ku(a)))};
Mdx=function(a){return new Cu(function(z){uh(a()).subscribe(z)})};
$x=function(a,z,I){if(jd(I)){var J=I;I=void 0}if(J)return $x(a,z,I).pipe(ox0(J));J=_.C(jd(a.addEventListener)&&jd(a.removeEventListener)?cyp.map(function(N){return function(u){return a[N](z,u,I)}}):jd(a.addListener)&&jd(a.removeListener)?Ykd.map(qk$(a,z)):jd(a.on)&&jd(a.off)?eEO.map(qk$(a,z)):[]);
var r=J.next().value,P=J.next().value;return!r&&hEd(a)?Gj(function(N){return $x(N,z,I)})($R1(a)):new Cu(function(N){if(!r)throw new TypeError("ga");
var u=function(){var E=_.dO.apply(0,arguments);return N.next(1<E.length?E:E[0])};
r(u);return function(){return P(u)}})};
qk$=function(a,z){return function(I){return function(J){return a[I](z,J)}}};
Tj=function(){var a=_.dO.apply(0,arguments),z=Ku(a);var I=typeof a[a.length-1]==="number"?a.pop():Infinity;return a.length?a.length===1?uh(a[0]):yyG(I)($R1(a,z)):XX};
jNx=function(a){return a.length===1&&am$(a[0])?a[0]:a};
ztG=function(){var a=jNx(_.dO.apply(0,arguments));return hy(function(z,I){var J=[z].concat(_.ih(a)),r=function(){if(!I.closed)if(J.length>0){try{var P=uh(J.shift())}catch(u){r();return}var N=new VU(I,void 0,Jy,Jy);I.add(P.subscribe(N));N.add(r)}else I.complete()};
r()})};
dV=function(a){return hy(function(z,I){var J=0;z.subscribe(new VU(I,function(r){return a.call(void 0,r,J++)&&I.next(r)}))})};
JzE=function(){var a=_.dO.apply(0,arguments);a=jNx(a);return a.length===1?uh(a[0]):new Cu(ImO(a))};
ImO=function(a){return function(z){for(var I=[],J={i$jscomp$219:0};I&&!z.closed&&J.i$jscomp$219<a.length;J={i$jscomp$219:J.i$jscomp$219},J.i$jscomp$219++)I.push(uh(a[J.i$jscomp$219]).subscribe(new VU(z,function(r){return function(P){if(I){for(var N=0;N<I.length;N++)N!==r.i$jscomp$219&&I[N].unsubscribe();I=null}z.next(P)}}(J))))}};
rzm=function(){var a=_.dO.apply(0,arguments),z=XP1(a),I=jNx(a);return I.length?new Cu(function(J){var r=I.map(function(){return[]}),P=I.map(function(){return!1});
J.add(function(){r=P=null});
for(var N={sourceIndex$jscomp$1:0};!J.closed&&N.sourceIndex$jscomp$1<I.length;N={sourceIndex$jscomp$1:N.sourceIndex$jscomp$1},N.sourceIndex$jscomp$1++)uh(I[N.sourceIndex$jscomp$1]).subscribe(new VU(J,function(u){return function(E){r[u.sourceIndex$jscomp$1].push(E);r.every(function(O){return O.length})&&(E=r.map(function(O){return O.shift()}),J.next(z?z.apply(null,_.ih(E)):E),r.some(function(O,f){return!O.length&&P[f]})&&J.complete())}}(N),void 0,function(u){return function(){P[u.sourceIndex$jscomp$1]=
!0;
!r[u.sourceIndex$jscomp$1].length&&J.complete()}}(N)));
return function(){r=P=null}}):XX};
Ppi=function(a){var z,I,J;return!!a&&typeof a.active==="boolean"&&typeof((z=a.clock)==null?void 0:z.now)==="function"&&((I=a.clock)==null?void 0:I.timeline)!==void 0&&!((J=a.lastMeasurement)==null||!J.timestamp)&&typeof a.equivalentTo==="function"&&typeof a.extrapolateToNow==="function"&&typeof a.extrapolateToTime==="function"&&typeof a.map==="function"&&typeof a.joinWith==="function"};
ZBx=function(a){function z(I){return typeof I==="boolean"||typeof I==="string"||typeof I==="number"||I===void 0||I===null}
return z(a)?!0:Array.isArray(a)?a.every(z):typeof a==="object"?Object.keys(a).every(function(I){return typeof I==="string"})&&Object.values(a).every(function(I){return Array.isArray(I)?I.every(z):z(I)}):!1};
CpI=function(a){if(ZBx(a))return a;if(Ppi(a))return{lastMeasurement:{value:CpI(a.lastMeasurement.value),timestamp:WP(a.lastMeasurement.timestamp,new ol(0,a.lastMeasurement.timestamp.timeline))},active:a.active};try{return JSON.parse(JSON.stringify(a))}catch(z){}return String(a)};
DI=function(a,z){return function(I){return new Cu(function(J){return I.subscribe(function(r){a.timeExecution(z,function(){J.next(r)})()},function(r){a.timeExecution(z,function(){J.error(r)})()},function(){a.timeExecution(z,function(){J.complete()})()})})}};
NJ1=function(a,z){var I=!1;return new Cu(function(J){var r=a.setTimeout(function(){I=!0;J.next(!0);J.complete()},z);
return function(){I||a.clearTimeout(r)}})};
tTm=function(a){a=a.global;if(a.fetchLater)return a.fetchLater.bind(a)};
Rl=function(a){return hy(function(z,I){var J=null,r=!1,P;J=z.subscribe(new VU(I,void 0,function(N){P=uh(a(N,Rl(a)(z)));J?(J.unsubscribe(),J=null,P.subscribe(I)):r=!0}));
r&&(J.unsubscribe(),J=null,P.subscribe(I))})};
umG=function(a,z,I){return function(J,r){var P=I,N=z,u=0;J.subscribe(new VU(r,function(E){var O=u++;N=P?a(N,E,O):(P=!0,E);r.next(N)},void 0,void 0))}};
E83=function(a){a=a===void 0?null:a;return hy(function(z,I){var J=!1;z.subscribe(new VU(I,function(r){J=!0;I.next(r)},void 0,function(){J||I.next(a);
I.complete()}))})};
Lu=function(){return hy(function(a,z){a.subscribe(new VU(z,Jy))})};
lh=function(a){return hy(function(z,I){z.subscribe(new VU(I,function(){return I.next(a)}))})};
pu=function(a){return a<=0?function(){return XX}:hy(function(z,I){var J=0;
z.subscribe(new VU(I,function(r){++J<=a&&(I.next(r),a<=J&&I.complete())}))})};
wV=function(a){var z=z===void 0?PP:z;var I;a=(I=a)!=null?I:BJG;return hy(function(J,r){var P,N=!0;J.subscribe(new VU(r,function(u){var E=z(u);if(N||!a(P,E))N=!1,P=E,r.next(u)}))})};
BJG=function(a,z){return a===z};
OBI=function(a){a=a===void 0?g8M:a;return hy(function(z,I){var J=!1;z.subscribe(new VU(I,function(r){J=!0;I.next(r)},void 0,function(){return J?I.complete():I.error(a())}))})};
g8M=function(){return new fmG};
m6=function(){var a=_.dO.apply(0,arguments);return function(z){return kjI(z,FX.apply(null,_.ih(a)))}};
Azd=function(a){return hy(function(z,I){var J=0;z.subscribe(new VU(I,function(r){a.call(void 0,r,J++,z)||(I.next(!1),I.complete())},void 0,function(){I.next(!0);
I.complete()}))})};
sNp=function(){return hy(function(a,z){var I=[];a.subscribe(new VU(z,function(J){I.push(J);1<I.length&&I.shift()},void 0,function(){for(var J=_.C(I),r=J.next();!r.done;r=J.next())z.next(r.value);
z.complete()},function(){I=null}))})};
n87=function(a,z){var I=arguments.length>=2;return function(J){return J.pipe(a?dV(function(r,P){return a(r,P,J)}):PP,sNp(),I?E83(z):OBI(function(){return new fmG}))}};
kx=function(a){var z=jd(a)?a:function(){return a};
return jd()?hy(function(I,J){var r=z();(void 0)(r).subscribe(J).add(I.subscribe(r))}):function(I){var J=new yU(I,z);
jd(I==null?void 0:I.lift)&&(J.lift=I.lift);J.source=I;J.subjectFactory=z;return J}};
cP=function(a){var z=new MR(a,void 0,void 0);return function(I){return kx(function(){return z})(I)}};
Yx=function(a,z){return hy(umG(a,z,arguments.length>=2))};
qR=function(){var a=_.dO.apply(0,arguments),z=Ku(a);return hy(function(I,J){(z?kjI(a,I,z):kjI(a,I)).subscribe(J)})};
aN=function(a){return hy(function(z,I){var J=null,r=0,P=!1;z.subscribe(new VU(I,function(N){var u;(u=J)==null||u.unsubscribe();u=r++;uh(a(N,u)).subscribe(J=new VU(I,function(E){return I.next(E)},void 0,function(){J=null;
P&&!J&&I.complete()}))},void 0,function(){(P=!0,!J)&&I.complete()}))})};
jT=function(a,z){z=z===void 0?!1:z;return hy(function(I,J){var r=0;I.subscribe(new VU(J,function(P){var N=a(P,r++);(N||z)&&J.next(P);!N&&J.complete()}))})};
KOp=function(a,z,I){var J=jd(a)||z||I?{next:a,error:z,complete:I}:a;return J?hy(function(r,P){r.subscribe(new VU(P,function(N){var u;(u=J.next)==null||u.call(J,N);P.next(N)},function(N){var u;
(u=J.error)==null||u.call(J,N);P.error(N)},function(){var N;
(N=J.complete)==null||N.call(J);P.complete()}))}):PP};
FOG=function(){var a=_.dO.apply(0,arguments),z=XP1(a);return hy(function(I,J){for(var r=a.length,P=Array(r),N=a.map(function(){return!1}),u=!1,E={i$jscomp$229:0};E.i$jscomp$229<r;E={i$jscomp$229:E.i$jscomp$229},E.i$jscomp$229++)uh(a[E.i$jscomp$229]).subscribe(new VU(J,function(O){return function(f){P[O.i$jscomp$229]=f;
u||N[O.i$jscomp$229]||(N[O.i$jscomp$229]=!0,(u=N.every(PP))&&(N=null))}}(E),void 0,Jy));
I.subscribe(new VU(J,function(O){u&&(O=[O].concat(_.ih(P)),J.next(z?z.apply(null,_.ih(O)):O))}))})};
bBG=function(a){try{return!!a&&a.location.href!=null&&HBm(a,"foo")}catch(z){return!1}};
ht1=function(a){var z=[],I=0,J;for(J in a)z[I++]=J;return z};
VTE=function(a,z){for(var I in a)if(a[I]==z)return!0;return!1};
QNE=function(a,z,I){for(var J in a)if(z.call(I,a[J],J,a))return J};
ShM=function(a){if(!a||typeof a!=="object")return a;if(typeof a.clone==="function")return a.clone();if(typeof Map!=="undefined"&&a instanceof Map)return new Map(a);if(typeof Set!=="undefined"&&a instanceof Set)return new Set(a);if(a instanceof Date)return new Date(a.getTime());var z=Array.isArray(a)?[]:typeof ArrayBuffer!=="function"||typeof ArrayBuffer.isView!=="function"||!ArrayBuffer.isView(a)||a instanceof DataView?{}:new a.constructor(a.length),I;for(I in a)z[I]=ShM(a[I]);return z};
iBd=function(a){var z=arguments.length;if(z==1&&Array.isArray(arguments[0]))return iBd.apply(null,arguments[0]);if(z%2)throw Error("ka");for(var I={},J=0;J<z;J+=2)I[arguments[J]]=arguments[J+1];return I};
xMM=function(a){var z=arguments.length;if(z==1&&Array.isArray(arguments[0]))return xMM.apply(null,arguments[0]);for(var I={},J=0;J<z;J++)I[arguments[J]]=!0;return I};
_.zB=function(a){return new ZuG(a[0].toLowerCase())};
v8p=function(a){for(var z=_.dO.apply(1,arguments),I=a[0],J=0;J<a.length-1;J++)I+=String(z[J]),I+=a[J+1];z=document.implementation.createHTMLDocument("");J=z.createElement("style");z.head.appendChild(J);z=J.sheet;z.insertRule(I,0);if(z.cssRules.length===1&&(I=z.cssRules[0],I instanceof CSSStyleRule))return new al(I.cssText.replace(/</g,"\\3C "))};
GB3=function(a){try{return new URL(a,window.document.baseURI)}catch(z){return new URL("about:invalid")}};
$M3=function(a,z){var I=z.createRange();I.selectNode(z.body);a=Rt(a);return I.createContextualFragment(L4(a))};
XHm=function(a){a=a.nodeName;return typeof a==="string"?a:"FORM"};
TJ3=function(a){a=a.nodeType;return a===1||typeof a!=="number"};
IN=function(a,z,I){a.setAttribute(z,I)};
dMG=function(a){return a.parts.map(function(z){var I=z.descriptor;return""+z.url+(I?" "+I:"")}).join(" , ")};
_.Jz=function(a){var z=_.dO.apply(1,arguments);if(z.length===0)return _.H9(a[0]);for(var I=a[0],J=0;J<z.length;J++)I+=encodeURIComponent(z[J])+a[J+1];return _.H9(I)};
_.rJ=function(a,z){a=_.bj(a).toString();var I=a.split(/[?#]/),J=/[?]/.test(a)?"?"+I[1]:"";return WOI(I[0],J,/[#]/.test(a)?"#"+(J?I[2]:I[1]):"",z)};
WOI=function(a,z,I,J){function r(N,u){N!=null&&(Array.isArray(N)?N.forEach(function(E){return r(E,u)}):(z+=P+encodeURIComponent(u)+"="+encodeURIComponent(N),P="&"))}
var P=z.length?"&":"?";J.constructor===Object&&(J=Object.entries(J));Array.isArray(J)?J.forEach(function(N){return r(N[1],N[0])}):J.forEach(r);
return _.H9(a+z+I)};
PH=function(a,z,I,J){this.top=a;this.right=z;this.bottom=I;this.left=J};
o8G=function(a){a=a.global;if(a.PendingGetBeacon)return a.PendingGetBeacon};
tz=function(a){return function(z){return z.pipe(UMm(a,kx(new Zm)))}};
Eh=function(a){return function(z){return z.pipe(UMm(a,cP(1)))}};
UMm=function(a,z){function I(J){return new Cu(function(r){return J.subscribe(function(P){BH(a,function(){return void r.next(P)},3)},function(P){BH(a,function(){return void r.error(P)},3)},function(){BH(a,function(){return void r.complete()},3)})})}
return ZI(I,dRx(),z,QU(),I)};
LOM=function(a){var z=DM$(a);return z===null?new gJ(null):z.pipe(Sd(function(I){I=I.serialize();if(Rt0)I=_.IE.btoa(I);else{for(var J=[],r=0,P=0;P<I.length;P++){var N=I.charCodeAt(P);N>255&&(J[r++]=N&255,N>>=8);J[r++]=N}I=_.he(J)}return I}),pu(1),Eh(a.queue))};
lmM=function(a){var z=z===void 0?{}:z;if(typeof Event==="function")return new Event(a,z);if(typeof document!=="undefined"){var I=document.createEvent("CustomEvent");I.initCustomEvent(a,z.bubbles||!1,z.cancelable||!1,z.detail);return I}throw Error();};
pH$=function(a){return typeof a==="string"?document.getElementById(a):a};
mM1=function(a){var z=!1;z=z===void 0?!1:z;if(a.tagName==="IMG"){if(a.complete&&(!a.naturalWidth||!a.naturalHeight))return!0;var I;if(z&&((I=a.style)==null?void 0:I.display)==="none")return!0}var J,r;return wHE.test((J=a.getAttribute("width"))!=null?J:"")&&wHE.test((r=a.getAttribute("height"))!=null?r:"")};
yz3=function(a,z){if(a.tagName==="IMG")return a.naturalWidth&&a.naturalHeight?!0:!1;try{if(a.readyState)var I=a.readyState;else{var J,r;I=(J=a.contentWindow)==null?void 0:(r=J.document)==null?void 0:r.readyState}return I==="complete"}catch(P){return z===void 0?!1:z}};
kB0=function(a){a||(a=function(z,I,J){z.addEventListener(I,J)});
return a};
qhd=function(a,z){var I=MTG();I=I===void 0?new czG:I;if(a=pH$(a)){var J=kB0(J);for(var r=!1,P=function(d){r||(r=!0,z(d))},N,u=2,E=0;E<YhO.length;++E)if(YhO[E]===a.tagName){u=3;
N=[a];break}N||(N=a.querySelectorAll(YhO.join(",")));var O=0,f=0,A=!0,n=a=!1;E={};for(var F=0;F<N.length;E={isImg:void 0},F++){var h=N[F];if(!mM1(h))if(E.isImg=h.tagName==="IMG",yz3(h,I.crossDomainLoadedDefault))a=!0,E.isImg&&(A=!0);else{O++;var v=function(d){return function(W){O--;!O&&A&&P(u);d.isImg&&(W=W&&W.type==="error",f--,W||(A=!0),!f&&n&&A&&P(u))}}(E);
J(h,"load",v);E.isImg&&(f++,J(h,"error",v))}}f===0&&(A=!0);N=null;N=_.IE.document.readyState==="complete";if(O===0&&!a&&N)u=5;else if(O||!a){J(_.IE,"load",function(){!I.pendingImagesBlockLoad||!f&&A?P(4):n=!0});
return}P(u)}};
et7=function(a,z,I){if(a)for(var J=0;a!=null&&J<500&&!I(a);++J)a=z(a)};
aJm=function(a,z){et7(a,function(I){try{return I===I.parent?null:I.parent}catch(J){}return null},z)};
jfm=function(a,z){if(a.tagName=="IFRAME")z(a);else{a=a.querySelectorAll("IFRAME");for(var I=0;I<a.length&&!z(a[I]);++I);}};
z2I=function(a){return(a=a.ownerDocument)&&(a.parentWindow||a.defaultView)||null};
IJM=function(a,z,I){try{var J=JSON.parse(I.data)}catch(N){}if(typeof J==="object"&&J&&J.type==="creativeLoad"){var r=z2I(a);if(I.source&&r){var P;aJm(I.source,function(N){try{if(N.parent===r)return P=N,!0}catch(u){}});
P&&jfm(a,function(N){if(N.contentWindow===P)return z(J),!0})}}};
J7O=function(a){return typeof a==="string"?document.getElementById(a):a};
CEI=function(){var a={};return a[0]=_.Jz(r70,"current"),a[1]=_.Jz(PEG),a[2]=_.Jz(Zo0),a};
Oh=function(a,z){return a.left===z.left&&a.top===z.top&&a.width===z.width&&a.height===z.height};
NQ1=function(a,z){return{left:Math.max(a.left,z.left),top:Math.max(a.top,z.top),width:Math.max(0,Math.min(a.left+a.width,z.left+z.width)-Math.max(a.left,z.left)),height:Math.max(0,Math.min(a.top+a.height,z.top+z.height)-Math.max(a.top,z.top))}};
tWm=function(a,z){return{left:Math.round(a.left+z.x),top:Math.round(a.top+z.y),width:a.width,height:a.height}};
uCd=function(a,z,I){if(a&&z!==null&&z!=z.top){if(!z.top)return new _.fB(-12245933,-12245933);z=z.top}try{return(I===void 0?0:I)?(new _.fB(z.innerWidth,z.innerHeight)).round():_.Az(z).round()}catch(J){return new _.fB(-12245933,-12245933)}};
El1=function(a,z,I){try{if(a){if(!z.top)return new PH(-12245933,-12245933,-12245933,-12245933);z=z.top}var J=uCd(a,z,I),r=J.height,P=J.width;if(P===-12245933)return new PH(P,P,P,P);var N=sh(nB(z.document)),u=N.x,E=N.y;return new PH(E,u+P,E+r,u)}catch(O){return new PH(-12245933,-12245933,-12245933,-12245933)}};
BQm=function(a){var z;return(z=a.google_tag_data)!=null?z:a.google_tag_data={}};
gl0=function(a){var z,I;return typeof((z=a.navigator)==null?void 0:(I=z.userAgentData)==null?void 0:I.getHighEntropyValues)==="function"};
fJM=function(a){if(!gl0(a))return null;var z=BQm(a);if(z.uach_promise)return z.uach_promise;a=a.navigator.userAgentData.getHighEntropyValues(OoE).then(function(I){z.uach!=null||(z.uach=I);return I});
return z.uach_promise=a};
ioI=function(a){var z;return A7G(sf7(nli(KGG(FGG(Hod(bo0(h2d(VWG(new Qfi,a.architecture||""),a.bitness||""),a.mobile||!1),a.model||""),a.platform||""),a.platformVersion||""),a.uaFullVersion||""),((z=a.fullVersionList)==null?void 0:z.map(function(I){var J=new SS0;J=_.KB(J,1,I.brand);return _.KB(J,2,I.version)}))||[]),a.wow64||!1)};
xCG=function(a){var z,I;return(I=(z=fJM(a))==null?void 0:z.then(function(J){return ioI(J)}))!=null?I:null};
vl$=function(a,z){return new Cu(function(I){var J=!1,r=Array(z.length);r.fill(void 0);var P=new Set,N=new Set,u=function(A,n){a.running?(r[n]=A,P.add(n),J||(J=!0,BH(a,function(){J=!1;I.next(_.RE(r))},1))):I.error(new bp(n))},E=function(A,n){N.add(n);
P.add(n);BH(a,function(){I.error(A)},1)},O=function(A){N.add(A);
BH(a,function(){N.size===z.length&&I.complete()},1)},f=z.map(function(A,n){return A.subscribe(function(F){return void u(F,n)},function(F){return void E(F,n)},function(){return void O(n)})});
return function(){f.forEach(function(A){return void A.unsubscribe()})}})};
XWx=function(a,z,I){function J(){if(z.debugChannel){var d=z.debugChannel,W=d.next;var l={creativeId:z.debugNames.getName(I),requiredSignals:r,signals:Object.assign({},P),hasPrematurelyCompleted:N,errorMessage:u,erroredSignalKey:E};l={specMajor:2,specMinor:0,specPatch:0,timestamp:WP(z.timeProvider.now(),new ol(0,z.timeProvider.timeline)),instanceId:z.debugNames.getName(z.symbol),creativeState:l};W.call(d,l)}}
for(var r=Object.keys(a),P={},N=!1,u=null,E=null,O={},f=new Set,A=[],n=[],F=_.C(r),h=F.next(),v={};!h.done;v={key$jscomp$396:void 0},h=F.next())v.key$jscomp$396=h.value,h=a[v.key$jscomp$396],h instanceof gJ?(O[v.key$jscomp$396]=h.value,f.add(v.key$jscomp$396),z.debugChannel&&(P[String(v.key$jscomp$396)]=CpI(h.value))):(h=h.pipe(wV(function(d,W){return Ppi(d)||Ppi(W)?!1:d===W}),Sd(function(d){return function(W){z.debugChannel&&(P[String(d.key$jscomp$396)]=CpI(W),J());
var l={};return l[d.key$jscomp$396]=W,l}}(v)),Rl(function(d){return function(W){if(W instanceof bp)throw new GaM(String(d.key$jscomp$396));
throw W;}}(v)),KOp(function(d){return function(){f.add(d.key$jscomp$396)}}(v),function(d){return function(W){E=String(d.key$jscomp$396);
u=String(W);J()}}(v),function(d){return function(){f.has(d.key$jscomp$396)||(N=!0,J())}}(v))),n.push(v.key$jscomp$396),A.push(h));
(a=Object.keys(P).length>0)&&J();F=vl$(z.queue,A).pipe(Rl(function(d){if(d instanceof bp)throw new $C1(String(n[d.inputObservableIndex]));throw d;}),Sd(function(d){return Object.freeze(Object.assign.apply(Object,[{},
O].concat(_.ih(d))))}));
return(A=A.length>0)&&a?Tj(FX(Object.freeze(O)),F):A?F:FX(Object.freeze(O))};
TQI=function(a,z,I,J,r){return a.performanceMonitor.timeExecution.bind(a.performanceMonitor)(733,function(){var P={};try{return z.pipe(Rl(function(N){J(Object.assign({},P,{error:N}));return XX}),Gj(function(N){try{var u=I(a,N)}catch(O){return J(Object.assign({},P,{error:O instanceof Error?O:String(O)})),XX}var E={};
return XWx(u,a,N.symbol).pipe(KOp(function(O){E=O}),cP(1),QU()).pipe(r,Rl(function(O){J(Object.assign({},E,{error:O}));
return XX}),m6(void 0),Sd(function(){return!0}))})).pipe(Yx(function(N){return N+1},0),Rl(function(N){J(Object.assign({},P,{error:N}));
return XX}))}catch(N){return J(Object.assign({},P,{error:N})),XX}})()};
hz=function(a){var z=new Map;if(typeof a!=="object"||a===null)return z;Object.values(a).forEach(function(I){I&&typeof I.extrapolateToNow==="function"&&(z.has(I.clock.timeline)||z.set(I.clock.timeline,I.clock.now()))});
return z};
dCE=function(a,z){return typeof a==="string"?encodeURIComponent(a):typeof a==="number"?String(a):Array.isArray(a)?a.map(function(I){return dCE(I,z)}).join(","):a instanceof ol?a.toString():a&&typeof a.extrapolateToNow==="function"?dCE(a.extrapolateUsingTimestampMap(z).value,z):a===!0?"1":a===!1?"0":a===void 0||a===null?null:a instanceof WG1?olm(a):[a.top,
a.left,a.top+a.height,a.left+a.width].join()};
UCG=function(a,z){a=Object.entries(a).map(function(I){var J=_.C(I);I=J.next().value;J=J.next().value;J=dCE(J,z);return J===null?"":I+"="+J}).filter(function(I){return I!==""});
return a.length?a.join("&"):""};
LGi=function(a,z){var I=DC0,J=R2m;z=z===void 0?.01:z;return function(r){z>0&&Math.random()<=z&&(a.global.HTMLFencedFrameElement&&a.global.fence&&typeof a.global.fence.reportEvent==="function"&&a.global.fence.reportEvent({eventType:"active-view-error",eventData:"",destination:["buyer"]}),r=Object.assign({},r,{errorMessage:r.error instanceof Error&&r.error.message?r.error.message:String(r.error),errorStack:r.error instanceof Error&&r.error.stack?String(r.error.stack):null,errorName:r.error instanceof
Error&&r.error.name?String(r.error.name):null,errorContext:String(a.performanceMonitor.timedFunctionContext),errorEscapedQueryId:r.escapedQueryId}),I(Object.assign({},r,{payloadMapper:function(){return function(P){try{return J(Object.assign({},P))}catch(N){return{}}}}(),
urlPrefixes:["https://pagead2.googlesyndication.com/pagead/gen_204?id=av-js&type=error&bin=17"]}),hz(r)).forEach(function(P){a.beaconFactory.makeBeacon(P).sendNow()}))}};
lJ7=function(){var a=_.dO.apply(0,arguments);return function(z){var I=z.pipe(cP(1),QU());z=a.map(function(J){return I.pipe(J,m6(!0))});
return xx(z).pipe(pu(1),Lu())}};
pWI=function(){var a=_.dO.apply(0,arguments);return function(z){var I=z.pipe(cP(1),QU());z=a.map(function(J){return I.pipe(J,m6(!0))});
return Tj.apply(null,_.ih(z)).pipe(pu(1),Lu())}};
wWx=function(a,z){return function(I){var J=I.pipe(cP(1),QU());I=J.pipe(a,m6(!0));J=J.pipe(ZI(z,cP(),QU()),m6(!0));I=xx([I,J]);return JzE(I,J).pipe(pu(1),Lu())}};
mCO=function(a,z,I){I(!0)};
y71=function(a,z){return ZI(aN(function(I){var J=a(I),r=z(I),P={};return J&&r&&P?new Cu(function(N){r(J,P,function(u){N.next(Object.assign({},I,{canEmit:u}));N.complete()});
return function(){}}):V8}),dV(function(I){return I.canEmit}))};
ka1=function(a){var z={attributes:!0,childList:!0,characterData:!0,subtree:!0};return function(I){return I.pipe(aN(function(J){return new Cu(function(r){function P(){u.disconnect();E.unsubscribe()}
var N=a.MutationObserver;if(N&&J.ref!==void 0){var u=new N(function(O){r.next(O)});
u.observe(J.ref,z);var E=J.JSC$9318_released.subscribe(P);return P}})}))}};
MWm=function(a){if(a.measurementDeferralState===3)return null;if(a.timeOnScreenReason!==void 0){var z=a.creativeFound===!1?"n":null;if(z!==null)return z}return a.geometricMeasurementErrors instanceof Q8?"msf":a.contextValidationErrors instanceof ip?"c":a.contextVisibilityKnown===!1?"pv":a.geometricMeasurementErrors||a.contextValidationErrors?"x":null};
YS3=function(a,z){return a.replace(c7$,function(I,J){try{var r=_.x8.get(z,J);if(r==null||r.toString()==null)return I;r=r.toString();if(r==""||!_.NO(r==null?"":String(r)))return encodeURIComponent(r).replace(/%2C/g,",")}catch(P){}return I})};
qSm=function(a,z){var I=Object.assign({},a),J=a.userAgentClientHints;I=(delete I.userAgentClientHints,I);I=a.payloadMapper(I);var r=UCG(I,z);return _.vH(a.urlPrefixes,function(P){var N="";typeof J==="string"&&(N="&"+UCG({uach:J},z));var u={};return YS3(P,(u.VIEWABILITY=r,u))+N})};
DC0=function(a,z){var I=a.payloadMapper(a),J=UCG(I,z);return J?_.vH(a.urlPrefixes,function(r){r=r.indexOf("?")>=0?r:r+"?";r="?&".indexOf(r.slice(-1))>=0?r:r+"&";return r+J}):a.urlPrefixes};
e2G=function(){return ZI(dV(function(a){return a!==void 0}),Sd(function(a){return a}))};
aT7=function(a){return ZI(Sd(function(){return!0}),qR(!1),Eh(a))};
jhI=function(a){return a.length<=0?XX:xx(a.map(function(z){var I=0;return z.pipe(Sd(function(J){return{index:I++,value:J}}))})).pipe(dV(function(z){return z.every(function(I){return I.index===z[0].index})}),Sd(function(z){return z.map(function(I){return I.value})}))};
z0O=function(a,z){a.currentState&&(a.previousState=a.currentState);a.currentState=z;a.previousState&&a.previousState.value?(z=Math.max(0,WP(z.timestamp,a.previousState.timestamp)),a.totalTime+=z,a.consecutiveTime+=z):a.consecutiveTime=0;return a};
ITG=function(){return ZI(Yx(z0O,{totalTime:0,consecutiveTime:0}),Sd(function(a){return a.totalTime}))};
J2m=function(){return ZI(Yx(z0O,{totalTime:0,consecutiveTime:0}),Sd(function(a){return a.consecutiveTime}))};
r2G=function(a,z){return function(I){return jhI(z.map(function(J){return I.pipe(a(J))}))}};
PF0=function(){var a;return ZI(KOp(function(z){return void(a=z.timestamp)}),J2m(),Sd(function(z){return{timestamp:a,
value:Math.round(z)}}))};
ZWd=function(a,z){return Oh(a.topWindowViewportExternalGeometry,z.topWindowViewportExternalGeometry)&&Oh(a.elementGeometry,z.elementGeometry)&&Oh(a.exposedViewportLocalGeometry,z.exposedViewportLocalGeometry)&&Oh(a.intersectionGeometry,z.intersectionGeometry)&&a.elementGeometrySourceName===z.elementGeometrySourceName&&a.measurementRequests===z.measurementRequests&&a.viewportGeometrySourceName===z.viewportGeometrySourceName&&a.viewportLocalAppOffset.x===z.viewportLocalAppOffset.x&&a.viewportLocalAppOffset.y===
z.viewportLocalAppOffset.y};
up7=function(a,z){return function(I){return function(J){var r=J.pipe(kx(new Zm),QU());J=I.element.pipe(wV());r=r.pipe(Sd(function(P){return P.value}));
return xx([J,r,z]).pipe(Sd(function(P){var N=_.C(P);P=N.next().value;var u=N.next().value;N=N.next().value;if(P.ref===void 0)var E={top:0,left:0,width:0,height:0};else{E=P.ref.getBoundingClientRect();var O=P.ref,f=a.global,A=new _.GB(0,0),n=$8(_.Xm(O));if(HBm(n,"parent")){do{if(n==f)var F=_.TB(O);else F=CFp(O),F=new _.GB(F.left,F.top);A.x+=F.x;A.y+=F.y}while(n&&n!=f&&n!=n.parent&&(O=n.frameElement)&&(n=n.parent))}E={top:A.y,left:A.x,width:E.width,height:E.height}}E=tWm(E,u.viewportLocalAppOffset);
f=NQ1(E,u.exposedViewportLocalGeometry);A=a.timeProvider.now();n=Object;O=n.assign;if(N!==2||a.inCrossDomainIframe||f.width<=0||f.height<=0)var h=!1;else try{var v=a.document.elementFromPoint(f.left+f.width/2,f.top+f.height/2);h=v?!N13(v,P):!1}catch(d){h=!1}return{timestamp:A,value:O.call(n,{},u,{elementGeometrySourceName:"geo",intersectionGeometry:h?tJd.intersectionGeometry:f,elementGeometry:E})}}),tz(a.queue))}}};
N13=function(a,z,I){I=I===void 0?0:I;return a.ref===void 0||z.ref===void 0?!1:a.ref===z.ref||_.dJ(z.ref,function(J){return J===a.ref})?!0:z.ref.ownerDocument&&z.ref.ownerDocument.defaultView&&z.ref.ownerDocument.defaultView===z.ref.ownerDocument.defaultView.top?!1:I<10&&z.ref.ownerDocument&&z.ref.ownerDocument.defaultView&&z.ref.ownerDocument.defaultView.frameElement?N13(a,new WH(z.ref.ownerDocument.defaultView.frameElement),I+1):!0};
gXM=function(a){return function(z){return z.pipe(a.ResizeObserver?EX0(a):B17(a),cP(1),QU())}};
EX0=function(a){return function(z){return z.pipe(aN(function(I){var J=a.ResizeObserver;if(!J||I.ref===void 0)return FX(tJd.elementGeometry);var r=(new Cu(function(P){function N(){I.ref!==void 0&&u.unobserve(I.ref);u.disconnect();E.unsubscribe()}
if(I.ref===void 0)return P.complete(),function(){};
var u=new J(function(O){O.forEach(function(f){P.next(f)})});
u.observe(I.ref);var E=I.JSC$9318_released.subscribe(N);return N})).pipe(DI(a.performanceMonitor,736),Sd(function(P){return P.contentRect}));
return Tj(FX(I.ref.getBoundingClientRect()),r)}),wV(Oh))}};
B17=function(a){return function(z){var I=z.pipe(ka1(a)),J=a.onResize;I=Tj(z.pipe(Sd(function(){return lmM("resize")})),I,J);
return xx(z,I).pipe(DI(a.performanceMonitor,737),Sd(function(r){r=_.C(r).next().value;return r.ref===void 0?void 0:r.ref.getBoundingClientRect()}),e2G(),wV(Oh))}};
A2$=function(a,z){var I=OWG(a,z).pipe(cP(1),QU());return function(J){return function(r){r=r.pipe(aN(function(P){return P.element}),wV());
return xx([I,r]).pipe(aN(function(P){var N=_.C(P);P=N.next().value;N=N.next().value;return fTG(a,P.intersectionObserver,gXM(a),P.observations,J,P.flushRecords,N)}),tz(a.queue))}}};
shp=function(a){return Sd(function(z){return z.value.viewportGeometrySourceName!=="nio"?z:Object.assign({},z,{value:Object.assign({},z.value,{exposedViewportLocalGeometry:oN(a,!0),topWindowViewportExternalGeometry:oN(a,!0)})})})};
nXE=function(a,z){return FX(z).pipe(a,Sd(function(){return z}))};
OWG=function(a,z){return a.timeProvider.timeline!==KAO?bh(new Q8(2)):a.MutationObserver?typeof IntersectionObserver==="undefined"?bh(new Q8(0)):(new Cu(function(I){var J=new Zm,r=new Uh(J.next.bind(J),{threshold:[].concat(_.ih(z))});I.next({observations:J.pipe(DI(a.performanceMonitor,735)),intersectionObserver:r,flushRecords:function(P){P=r.takeRecords(P);P.length>0&&J.next(P)}})})).pipe(pu(1),cP(1),QU()):bh(new Q8(1))};
FAm=function(a){return VdG(a.sort(function(z,I){return z.time-I.time}),TV0)};
fTG=function(a,z,I,J,r,P,N){return new Cu(function(u){function E(){h||(h=!0,N.ref!==void 0&&z.unobserve(r,N.ref),f.unsubscribe(),F.unsubscribe(),n.unsubscribe(),v.unsubscribe())}
if(N.ref!==void 0){HWG(z,r);z.observe(r,N.ref);var O=new Dm({timestamp:a.timeProvider.now(),value:Object.assign({},tJd,{viewportGeometrySourceName:"nio",elementGeometrySourceName:"nio"})}),f=J.pipe(Gj(function(d){return FAm(d)}),dV(function(d){return d.target===N.ref}),Sd(function(d){return{timestamp:new ol(d.time,KAO),
value:{viewportGeometrySourceName:"nio",exposedViewportLocalGeometry:d.rootBounds||RN,topWindowViewportExternalGeometry:d.rootBounds||oN(a,!0),measurementRequests:A,elementGeometrySourceName:"nio",intersectionGeometry:d.intersectionRect,elementGeometry:d.boundingClientRect,viewportLocalAppOffset:{x:0,y:0},isIntersecting:d.isIntersecting,isV2Visible:d.isVisible}}}),kx(O),QU()).subscribe(u),A=new Zm,n=A.subscribe(function(){P(r);
u.next({timestamp:a.timeProvider.now(),value:O.value.value});N.ref!==void 0&&(z.unobserve(r,N.ref),z.observe(r,N.ref))}),F=nXE(I,N).subscribe(function(){A.next()}),h=!1,v=N.JSC$9318_released.subscribe(function(){return E()});
return E}})};
bWp=function(a,z){var I=a.getOnBackgrounded().pipe(Sd(function(){return"b"}));
return JzE(z,I).pipe(pu(1),Eh(a.queue))};
LB=function(a){return function(z){var I;return z.pipe(KOp(function(J){return void(I=J.timestamp)}),Sd(function(J){return J.value}),a,Sd(function(J){return{timestamp:I,
value:J}}))}};
h0p=function(a){return a.intersectionGeometry.width*a.intersectionGeometry.height/(a.elementGeometry.width*a.elementGeometry.height)};
lp=function(a,z,I){I=I===void 0?function(J,r){return J===r}:I;
return a.timestamp.equals(z.timestamp)&&I(a.value,z.value)};
mO=function(a,z){return z.pipe(Sd(function(I){return new wJ(a.timeProvider,{timestamp:a.timeProvider.now(),value:I})}))};
VJO=function(a){return function(z){return z.pipe(FOG(a),Sd(function(I){var J=_.C(I);I=J.next().value;J=J.next().value;var r=I.value;return{timestamp:I.timestamp,value:r>=1?!0:r<=0?!1:r>=J}}))}};
Sfx=function(){return ZI(dV(function(a,z){return z>0}),Qhm,qR(-1),wV())};
iWd=function(a,z,I){return a?xx([z,I]).pipe(dV(function(J){var r=_.C(J);J=r.next().value;r=r.next().value;return J.timestamp.equals(r.timestamp)}),Sd(function(J){var r=_.C(J);
J=r.next().value;r=r.next().value;return J.value>r.value?J:r})):z};
Ge7=function(a){return function(z){var I=z.pipe(xIp),J=z.pipe(vXx);return a instanceof Cu?a.pipe(aN(function(r){return iWd(r,I,J)})):iWd(a.value,I,J)}};
LAp=function(a,z,I,J){var r=J.geometryIsOccluded,P=J.exposureThreshold,N=J.wasLargeAdAtRender,u=J.allowLargeAdThreshold,E=J.largeAdExposureThreshold,O=J.mayUseViewportShareExposure,f=J.hasMeasurementStarted;J=J.useIntersectionObserverV2;z=$II(a,I,z);I=Xg0(a,I);J=T1p(z,J);var A=dIG(a,r,O,z),n=A.pipe(Sd(function(M){return M.value}),wV(),Eh(a),Yx(function(M,y){return Math.max(M,y)},0)),F=A.pipe(Sd(function(M){return M.value}),Sfx(),Eh(a)),h=z.pipe(WA3,Sd(function(M){return M.value}),pu(2),wV(),Eh(a));
N=oX0(a,z,N,u);var v=N.pipe(qR(!1),wV(),Sd(function(M){return M?E:P}));
u=A.pipe(VJO(v),wV(),Eh(a));var d=xx([u,z]).pipe(dV(function(M){var y=_.C(M);M=y.next().value;y=y.next().value;return M.timestamp.equals(y.timestamp)}),Sd(function(M){var y=_.C(M);
M=y.next().value;y=y.next().value;return{visible:M.value,geometry:y.value.elementGeometry}}),Yx(function(M,y){return!y.visible&&M.visible?M:y},{visible:!1,
geometry:RN}),Sd(function(M){return M.geometry}),qR(RN),Eh(a),wV(Oh));
O=O instanceof Cu?O.pipe(wV(),lh()):V8;v=xx([O,v]).pipe(lh());var W=z.pipe(dV(function(M){return M.value.viewportGeometrySourceName!=="ns"&&M.value.elementGeometrySourceName!=="ns"}),Yx(function(M){return M+1},0),qR(0),Eh(a)),l=I.pipe(lh(!0),qR(!1),Eh(a));
l=xx([f,l]).pipe(Sd(function(M){var y=_.C(M);M=y.next().value;y=y.next().value;return M&&!y}),Eh(a));
var q=z.pipe(UIp,wV()),m=q.pipe(Sd(function(M){return M.value}),Yx(function(M,y){return Math.max(M,y)},0),wV(),Eh(a));
a=q.pipe(Sd(function(M){return M.value}),Sfx(),Eh(a));
return{shouldResetExposureSignals:O,shouldResetViewabilitySignals:v,geometrySignals:{readyGeometryWithDefault:z,measurementStrategy:z.pipe(DIi),creativePosition:d.pipe(wV(Oh)),visible:u.pipe(wV(lp)),timestampedExposure:A.pipe(wV(lp)),maximumExposure:n,minimumExposure:F,browserSize:z.pipe(R0O,wV(_.MO)),timestampedScreenShare:q,maxScreenShare:m,minScreenShare:a,geometricMeasurementErrors:I,measurementRequests:z.pipe(Sd(function(M){return M.value.measurementRequests})),
isLargeAd:N,geometryIsOccluded:r,hasMeasurementStarted:f,geometryMeasurable:l,validMeasurementCount:W,loadTimeExposure:h,v2VisibilityBitVector:J}}};
Xg0=function(a,z){return z.pipe(dV(function(){return!1}),Sd(function(I){return I}),Rl(function(I){return y8(new gJ(I),a)}))};
$II=function(a,z,I){return z.pipe(ztG(V8),Eh(a)).pipe(wV(function(J,r){return lp(J,r,ZWd)}),qR({timestamp:I.now(),
value:tJd}),Eh(a))};
dIG=function(a,z,I,J){I=J.pipe(Ge7(I),LB(Sd(function(r){return Math.round(r*100)/100})),Eh(a));
return z instanceof gJ?I:xx([I,z]).pipe(Sd(function(r){var P=_.C(r);r=P.next().value;P=P.next().value;return{timestamp:P.timestamp.maximum(r.timestamp),value:P.value?0:r.value}}),wV(lp),Eh(a))};
oX0=function(a,z,I,J){z=[z.pipe(Sd(function(r){return r.value.elementGeometry.width*r.value.elementGeometry.height>=242500}))];
I instanceof Cu&&z.push(I.pipe(Sd(function(r){return!!r})));
I=xx(z);return J?I.pipe(Sd(function(r){return r.some(function(P){return P})}),qR(!1),wV(),Eh(a)):y8(new gJ(!1),a)};
T1p=function(a,z){a=xx([a,z]).pipe(Sd(function(r){var P=_.C(r);r=P.next().value;if(P.next().value&&r.value.isIntersecting)return r.value.isV2Visible}),wV());
var I=a.pipe(Sd(function(r){return r===void 0?!0:r}),Yx(function(r,P){return r||!P},!1)),J=a.pipe(Yx(function(r,P){return P===void 0?r:P?!1:r!=null?r:!0},void 0),Sd(function(r){return!!r}));
return xx([z,rzm(a,I,J)]).pipe(Sd(function(r){var P=_.C(r);r=P.next().value;var N=_.C(P.next().value);P=N.next().value;var u=N.next().value;N=N.next().value;var E=0;if(!r)return 0;if(P===void 0)return 16;P&&(E|=1);P||(E|=2);u&&(E|=4);N&&(E|=8);return E}))};
keG=function(a,z,I,J,r){var P=lTx.timeThresholdMs;var N=N===void 0?new pgE(z,J):N;return(new Cu(function(u){var E=I.pipe(qR(void 0),aN(function(){return wgI(r)})).pipe(Sd(function(O){var f=O.value;
O=O.timestamp;var A=f.visible;f=f.consecutiveViewTime;var n=f>=P;n||!A?mI3(N):(O=Math.max(0,WP(z.now(),O)),y23(N,Math.max(0,P-f-O)));return n}),Yx(function(O,f){return f||O},!1),wV()).subscribe(u);
return function(){N.dispose();E.unsubscribe()}})).pipe(jT(function(u){return!u},!0),Eh(a))};
wgI=function(a){return jhI([a,a.pipe(PF0())]).pipe(Sd(function(z){var I=_.C(z);z=I.next().value;I=I.next().value;return{timestamp:z.timestamp,value:{visible:z.value,consecutiveViewTime:I.value}}}),wV(function(z,I){return lp(z,I,function(J,r){return J.consecutiveViewTime===r.consecutiveViewTime&&J.visible===r.visible})}))};
MJO=function(){return ZI(J2m(),Yx(function(a,z){return Math.max(a,z)},0),Sd(function(a){return Math.round(a)}))};
c2M=function(a){return ZI(VJO(FX(a)),MJO())};
Yf1=function(a,z){return z instanceof Cu?z.pipe(aN(function(I){return(I=I?15:null)?bh(new Q8(I)):a})):(z=z.value?15:null)?bh(new Q8(z)):a};
qfd=function(a){var z=new Q8(13);if(a.length<1)return{chain:XX,capturedErrors:XX};var I=new Zm,J=a[0];return{chain:a.slice(1).reduce(function(r,P){return r.pipe(Rl(function(N){I.next(N);return P}))},J).pipe(Rl(function(r){I.next(r);
return bh(z)}),kx(new Zm),QU()),
capturedErrors:I}};
e0E=function(a,z){var I=a.pipe(kx(new Zm),QU());return aN(function(J){return I.pipe(z(J))})};
jLx=function(a,z){if(a.inCrossDomainIframe)return bh(new Q8(6));var I=new Zm;return Tj(FX({}),z,I).pipe(Sd(function(){return{timestamp:a.timeProvider.now(),value:{viewportGeometrySourceName:"geo",exposedViewportLocalGeometry:aHM(a),topWindowViewportExternalGeometry:oN(a,!0),measurementRequests:I,viewportLocalAppOffset:{x:0,y:0}}}}),tz(a.queue))};
aHM=function(a){var z=oN(a,!1);if(!a.inIframe||!bBG(a.global.parent)||a.global.parent===a.global)return z;var I=new k8(a.global.parent,a.debugChannel);I.beaconFactory=a.beaconFactory;I=aHM(I);a=a.global.frameElement.getBoundingClientRect();return NQ1(tWm(NQ1(I,a),{x:z.left-a.left,y:z.top-a.top}),z)};
zxd=function(a){if(a.prerendering)return 3;var z;return(z={visible:1,hidden:2,prerender:3,preview:4,unloaded:5,"":0}[a.visibilityState||a.webkitVisibilityState||a.mozVisibilityState||""])!=null?z:0};
IH1=function(a){return a.document.JSC$9329_onVisibilityChange.pipe(Sd(function(z){return z==="visible"}),wV(),Eh(a.queue))};
JDM=function(a,z,I){var J;return z.pipe(wV(),aN(function(r){return I.pipe(Sd(function(){if(!J){J=!0;try{r.next()}finally{J=!1}}return!0}))}),qR(!1),Eh(a.queue))};
rDp=function(a){return ZI(LB(Sd(function(z){return z>=1?!0:z<=0?!1:z>=a})),ITG(),Sd(function(z){return Math.round(z)}))};
Z31=function(a,z,I,J,r){var P=P1G;if(P.length>1)for(var N=0;N<P.length-1;N++)if(P[N]<P[N+1])throw Error();N=r.pipe(qR(void 0),aN(function(){return I.pipe(PF0())}),wV(),Eh(a));
r=r.pipe(qR(void 0),aN(function(){return I.pipe(MJO())}),wV(),Eh(a));
return{totalMeasurementTime:J.pipe(qR(void 0),aN(function(){return z.pipe(Sd(function(u){return{timestamp:u.timestamp,value:!0}}),ITG())}),wV(),Eh(a)),
totalUnviewedTime:J.pipe(qR(void 0),aN(function(){return z.pipe(Sd(function(u){return{timestamp:u.timestamp,value:u.value===0}}),ITG())}),wV(),Eh(a)),
maxTimeOnScreen:J.pipe(qR(void 0),aN(function(){return z.pipe(r2G(c2M,P))}),wV(_.MO),Eh(a)),
timeOnScreen:J.pipe(qR(void 0),aN(function(){return z.pipe(r2G(rDp,P),Sd(function(u){return u.map(function(E,O){return O>0?E-u[O-1]:E})}))}),wV(_.MO),Eh(a)),
maxConsecutiveViewTime:r,consecutiveViewTime:N.pipe(wV(lp),Eh(a))}};
NqE=function(a){var z=!0;z=z===void 0?!1:z;return ZI(aN(function(I){return C1p(a.document,I,z)}),Eh(a.queue))};
tLG=function(a,z,I){var J=I.pipe(Sd(function(r){return{value:r,timestamp:a.timeProvider.now()}}),wV(lp));
return z instanceof Cu?z.pipe(wV(),aN(function(r){return r?y8(new gJ({value:!1,timestamp:a.timeProvider.now()}),a.queue):J})):z.value===!1?J:new gJ(!1)};
uwI=function(a,z,I,J,r,P,N){var u=lTx;z=z instanceof Cu?z.pipe(qR(!1),wV()):z;var E=!a.isMobile();I=tLG(a,I,J);a=N.measurableCreative.pipe(aT7(a.queue));return Object.assign({},u,{geometryIsOccluded:I,wasLargeAdAtRender:r,allowLargeAdThreshold:E,mayUseViewportShareExposure:z,hasMeasurementStarted:a,useIntersectionObserverV2:P})};
Bq$=function(a,z,I,J,r,P){var N=1;P=P===void 0?!0:P;N=N===void 0?.01:N;var u=u===void 0?a.timeProvider.intervalObservable(100).pipe(Eh(a.queue)):u;return a.performanceMonitor.timeExecution(916,function(){return ESx(a,z.pipe(tz(a.queue)),I.pipe(tz(a.queue)),J,r,P,N,u)})()};
ESx=function(a,z,I,J,r,P,N,u){var E=IH1(a).pipe(Sd(function(f){return!f})),O=new gSm(a,[new O3I(a,P1G),
new fH3(a,u)]);u=lJ7(ADE,sL3);return TQI(a,z,function(f,A){var n=y8(new gJ(A.element),f.queue).pipe(NqE(f),Eh(f.queue)),F={loadedElement:n,shouldMeasure:n.pipe(lh(!0)),measurableCreative:n.pipe(Sd(function(M){var y=y===void 0?Symbol():y;return Object.freeze({symbol:y,element:y8(new gJ(M),f.queue)})})),
creativeSearchResult:y8(new gJ("mue"),f.queue)},h=new gJ(!1),v=new gJ(!1),d=new gJ(17),W=new gJ(!1),l=new gJ(!1),q=y8(MM,f.queue);h=O.buildGeometrySource(F,{inApp:h,useV2:!1,requestSource:y8(d,f.queue)}).geometrySource;F=uwI(f,W,v,E,l,q,F);v=LAp(f.queue,f.timeProvider,h,F);F=v.geometrySignals;W=v.shouldResetViewabilitySignals;v=Z31(f.queue,F.timestampedExposure,F.visible,v.shouldResetExposureSignals,W);W=keG(f.queue,f.timeProvider,W,F.measurementRequests,F.visible);l=I.pipe(dV(function(M){return M===
A.element.ref}),Sd(function(){return"ur"}));
q=NJ1(f.timeProvider,r).pipe(lh("t"));l=bWp(f,Tj(l,q));q=JDM(f,F.measurementRequests,l.pipe(dV(function(M){return M!==null})));
h=l.pipe(dV(function(M){return M!==null}),Sd(function(){return zxd(f.global.document)===1}));
var m=nS$(f.document);return Object.assign({},{beaconFactory:new gJ(f.beaconFactory),context:new gJ(f),inferredPingId:new gJ("lidar2"),timeOnScreenPingId:new gJ("lidartos"),binaryContext:new gJ(17),binaryVersion:new gJ(J),requestSource:d,contextValidationErrors:new gJ(f.validate()?null:new ip),contextVisibilityKnown:new gJ(m),payloadMapper:new gJ(R2m),endOfSessionReason:l,timeOnScreenReason:l,requestMeasurementOnEndOfSession:q,hasImpressionFired:Ks3,crossDomainIframeState:new gJ(f.inCrossDomainIframe?
1:void 0),inStatefulBeaconExperiment:MM,inFetchLaterBeaconExperiment:MM,isTurtlex:MM,turtlexReportEventData:new gJ(""),reportFencedFrameEvent:V8,isViewableAttributionEnabled:MM,inViewableAttributionExperiment:new gJ(0),fetchBeaconFactory:V8,supportsPendingBeacon:MM,supportsFetchLater:MM,emit:new gJ(mCO),beginToRenderEvent:new gJ(Symbol()),activeViewUnmeasurableEvent:new gJ(Symbol()),activeViewViewableEvent:new gJ(Symbol()),creativeFound:Ks3,immediateUrlPrefixes:new gJ(A.immediateUrls),timeOnScreenUrlPrefixes:new gJ(A.timeOnScreenUrls),
cpmavUrls:V8,viewableRelayUrls:V8,measurementDeferralState:new gJ(2),urlSerializer:new gJ(qSm),viewUrlSerializer:new gJ(Fs0),isCreativeLoaded:n.pipe(aT7(f.queue)),pageVisible:E.pipe(Sd(function(M){return!M})),
eosPageVisible:h,timestampedExposureHistory:F.timestampedExposure.pipe(Yx(function(M,y){M.push(y);return M},[]))},F,{viewable:mO(f,W),
maxTimeOnScreen:mO(f,v.maxTimeOnScreen),timeOnScreen:mO(f,v.timeOnScreen),maxConsecutiveViewTime:mO(f,v.maxConsecutiveViewTime),consecutiveViewTime:v.consecutiveViewTime.pipe(Sd(function(M){return new wJ(f.timeProvider,M)})),
totalMeasurementTime:mO(f,v.totalMeasurementTime),totalUnviewedTime:mO(f,v.totalUnviewedTime),userAgentClientHints:LOM(f),clientOrderPingCounter:new gJ(new WG1)})},LGi(a,N),pWI(P?wWx(u,H3E):wWx(u,b3I),hxm))};
VLI=function(a){var z=_.dO.apply(1,arguments).filter(Boolean).join("&");if(!z)return a;var I=a.match(/[?&]adurl=/);return I?a.slice(0,I.index+1)+z+"&"+a.slice(I.index+1):a+(a.indexOf("?")<0?"?":"&")+z};
cH=function(a,z){return z?"&"+a+"="+encodeURIComponent(z):""};
QL1=function(){try{var a,z;return!!((a=window)==null?0:(z=a.top)==null?0:z.location.href)&&!1}catch(I){return!0}};
_.Y8=function(a){a&&typeof a.dispose=="function"&&a.dispose()};
_.qM=function(a){for(var z=0,I=arguments.length;z<I;++z){var J=arguments[z];_.lG(J)?_.qM.apply(null,J):_.Y8(J)}};
i3p=function(){var a=Sei();a=a===void 0?"bevasrsg":a;return new Promise(function(z){var I=window===window.top?window:QL1()?window:window.top,J=I[a],r;((r=J)==null?0:r.bevasrs)?z(new eT(J.bevasrs)):(J||(J={},J=(J.nqfbel=[],J),I[a]=J),J.nqfbel.push(function(P){z(new eT(P))}))})};
xY3=function(a){var z={c:a.hD,e:a.j9T,mc:a.ob1,me:a.nb1};a.bO&&(z.co={c:a.bO.cV7,a:a.bO.iWQ,s:a.bO.t4X});return z};
vSG=function(a){var z,I,J={hD:a.c,j9T:a.e,ob1:(z=a.mc)!=null?z:!1,nb1:(I=a.me)!=null?I:!1};a.co&&(J.bO={cV7:a.co.c,iWQ:a.co.a,t4X:a.co.s});return J};
GZG=function(a){return function(){var z;return _.t(function(I){if(I.nextAddress==1)return I.yield(a(),2);z=I.yieldResult;return I.return({f:function(){return z.ip5()},
c:function(J){return z.cUO(J)},
m:function(J){return z.o9(vSG(J))},
mws:function(J){return z.fEX(vSG(J))}})})}};
$Yx=function(a,z){var I=Sei();I=I===void 0?"bevasrsg":I;z={s:function(P){var N;return a.snapshot(Object.assign({},P.c&&{hD:P.c},P.s&&{iET:P.s},{yOZ:(N=P.p)!=null?N:!0}))},
e:function(P){var N;return void((N=a.jWX)==null?void 0:N.call(a,P))},
c:function(P,N){return a.ps7(P,N)},
p:a.h8I,l:function(){return a.ncw()},
wpc:z?GZG(z):void 0};var J=window===window.top?window:QL1()?window:window.top,r=J[I];if(r){r.bevasrs=z;if(r.nqfbel!==void 0)for(I=_.C(r.nqfbel),J=I.next();!J.done;J=I.next())J=J.value,J(z);r.nqfbel=void 0}else r={},r=(r.bevasrs=z,r.nqfbel=void 0,r),J[I]=r};
Tqp=function(a){var z=z===void 0?51:z;var I=[];_.af(a,X3d,6,_.jW()).forEach(function(J){_.za(J,2)<=z&&I.push(_.za(J,1))});
return I};
dYI=function(a){var z=z===void 0?51:z;var I=[];_.af(a,X3d,6,_.jW()).forEach(function(J){_.za(J,2)>z&&I.push(_.za(J,1))});
return I};
Wsd=function(a){a.then(function(){},function(){})};
If=function(a){return{fieldType:1,fieldName:a}};
J7=function(a){return{fieldType:2,fieldName:a}};
_.rQ=function(a){return{fieldType:3,fieldName:a}};
oS0=function(){function a(){r[0]=1732584193;r[1]=4023233417;r[2]=2562383102;r[3]=271733878;r[4]=3285377520;f=O=0}
function z(A){for(var n=N,F=0;F<64;F+=4)n[F/4]=A[F]<<24|A[F+1]<<16|A[F+2]<<8|A[F+3];for(F=16;F<80;F++)A=n[F-3]^n[F-8]^n[F-14]^n[F-16],n[F]=(A<<1|A>>>31)&4294967295;A=r[0];var h=r[1],v=r[2],d=r[3],W=r[4];for(F=0;F<80;F++){if(F<40)if(F<20){var l=d^h&(v^d);var q=1518500249}else l=h^v^d,q=1859775393;else F<60?(l=h&v|d&(h|v),q=2400959708):(l=h^v^d,q=3395469782);l=((A<<5|A>>>27)&4294967295)+l+W+q+n[F]&4294967295;W=d;d=v;v=(h<<30|h>>>2)&4294967295;h=A;A=l}r[0]=r[0]+A&4294967295;r[1]=r[1]+h&4294967295;r[2]=
r[2]+v&4294967295;r[3]=r[3]+d&4294967295;r[4]=r[4]+W&4294967295}
function I(A,n){if(typeof A==="string"){A=unescape(encodeURIComponent(A));for(var F=[],h=0,v=A.length;h<v;++h)F.push(A.charCodeAt(h));A=F}n||(n=A.length);F=0;if(O==0)for(;F+64<n;)z(A.slice(F,F+64)),F+=64,f+=64;for(;F<n;)if(P[O++]=A[F++],f++,O==64)for(O=0,z(P);F+64<n;)z(A.slice(F,F+64)),F+=64,f+=64}
function J(){var A=[],n=f*8;O<56?I(u,56-O):I(u,64-(O-56));for(var F=63;F>=56;F--)P[F]=n&255,n>>>=8;z(P);for(F=n=0;F<5;F++)for(var h=24;h>=0;h-=8)A[n++]=r[F]>>h&255;return A}
for(var r=[],P=[],N=[],u=[128],E=1;E<64;++E)u[E]=0;var O,f;a();return{reset:a,update:I,digest:J,digestString:function(){for(var A=J(),n="",F=0;F<A.length;F++)n+="0123456789ABCDEF".charAt(Math.floor(A[F]/16))+"0123456789ABCDEF".charAt(A[F]%16);return n}}};
p3I=function(a,z){z=z===void 0?UY0:z;if(!DY$){var I;a=(I=a.navigator)==null?void 0:I.userAgentData;if(!a||typeof a.getHighEntropyValues!=="function"||a.brands&&typeof a.brands.map!=="function")return Promise.reject(Error("ua"));Rxx((a.brands||[]).map(function(r){var P=new Ls0;P=_.KB(P,1,r.brand);return _.KB(P,2,r.version)}));
typeof a.mobile==="boolean"&&_.PW(lH0,2,a.mobile);DY$=a.getHighEntropyValues(z)}var J=new Set(z);return DY$.then(function(r){var P=lH0.clone();J.has("platform")&&_.KB(P,3,r.platform);J.has("platformVersion")&&_.KB(P,4,r.platformVersion);J.has("architecture")&&_.KB(P,5,r.architecture);J.has("model")&&_.KB(P,6,r.model);J.has("uaFullVersion")&&_.KB(P,7,r.uaFullVersion);return P.serialize()}).catch(function(){return lH0.serialize()})};
ZJ=function(a,z,I,J){this.initialValue_=a;this.maxValue_=z;this.currBaseValue_=this.currValue_=a;this.randomFactor_=I||0;this.backoffFactor_=J||2};
Co=function(a){this.src=a;this.listeners={};this.typeCount_=0};
kZx=function(){for(var a;a=w3O.remove();){try{a.fn.call(a.scope)}catch(z){J1(z)}mYm.put(a)}yDG=!1};
_.ML3=function(a){switch(a){case 200:return 0;case 400:return 3;case 401:return 16;case 403:return 7;case 404:return 5;case 409:return 10;case 412:return 9;case 429:return 8;case 499:return 1;case 500:return 2;case 501:return 12;case 503:return 14;case 504:return 4;default:return 2}};
cDm=function(a){switch(a){case 0:return"OK";case 1:return"CANCELLED";case 2:return"UNKNOWN";case 3:return"INVALID_ARGUMENT";case 4:return"DEADLINE_EXCEEDED";case 5:return"NOT_FOUND";case 6:return"ALREADY_EXISTS";case 7:return"PERMISSION_DENIED";case 16:return"UNAUTHENTICATED";case 8:return"RESOURCE_EXHAUSTED";case 9:return"FAILED_PRECONDITION";case 10:return"ABORTED";case 11:return"OUT_OF_RANGE";case 12:return"UNIMPLEMENTED";case 13:return"INTERNAL";case 14:return"UNAVAILABLE";case 15:return"DATA_LOSS";
default:return""}};
_.Ye1=function(){};
Pl3=function(a,z,I,J){a=qeO(exG(avp(new _.NC(1828,"0"),a),new jb7)).disableWithCredentials();z.length&&zZx(a,Iv0(new JPI,z));J!==void 0&&(a.destinationUrl=J);var r=new rP0(1828,"","",!1,"",a.build());_.t7(r,a);var P=new uE({flush:function(N){try{r.flush(N)}catch(u){I(u)}}});
P.addOnDisposeCallback(function(){setTimeout(function(){try{P.snapshotAndFlush()}finally{r.dispose()}})});
P.invocationLimit=1E5;P.flushInterval=3E4;P.JSC$9745_flushTimer.setInterval(3E4);return P};
ES=function(){var a,z,I;return(I=(a=globalThis.performance)==null?void 0:(z=a.now)==null?void 0:z.call(a))!=null?I:Date.now()};
NMM=function(a,z){if(a.disable)return new Z1x;z=z?Tqp(z):[];a={a3:a.a3,ups:a.oha,l6C:a.csP,destinationUrl:a.destinationUrl,j1T:a.j1T,k2i:a.k2i};z=z===void 0?[]:z;return new Cli(a,z)};
t6E=function(a){if(!a)return null;a=_.gQ(a,2);return a===null||a===void 0?null:Rt(a)};
_.unM=function(a){if(!a)return null;a=_.gQ(a,4);return a===null||a===void 0?null:_.H9(a)};
gji=function(a,z){return z?Ejp(z):a?BMp(a):Promise.resolve()};
Ejp=function(a){return new Promise(function(z,I){var J=_.OS("SCRIPT"),r=_.unM(a);_.c9(J,r);J.onload=function(){_.fo(J);z()};
J.onerror=function(){_.fo(J);I(Error("Fa"))};
(A7("HEAD")[0]||document.documentElement).appendChild(J)})};
BMp=function(a){return new Promise(function(z){var I=_.OS("SCRIPT");if(a){var J=_.gQ(a,6);J=J===null||J===void 0?null:_.kP(J)}else J=null;_.ML(I,J);(A7("HEAD")[0]||document.documentElement).appendChild(I);_.fo(I);z()})};
sS=function(a,z,I){var J,r=new Promise(function(P){J=setTimeout(P,z)});
return Promise.race([a.finally(function(){return void clearTimeout(J)}),
r.then(I)])};
O11=function(a,z){try{return globalThis.sessionStorage.setItem(a,z),!0}catch(I){return!1}};
fv1=function(a,z,I,J){z=z===void 0?0:z;I=I===void 0?a.length:I;var r=0;for(J&&(r=fv1(J));z<I;z++)J=typeof a==="string"?a.charCodeAt(z):a[z],r=TME(31,r)+J|0;return r};
deG=function(a,z){return[fv1(a,0,a.length>>1,z),fv1(a,a.length>>1)]};
W5i=function(a){var z=_.C(deG(a,no));a=z.next().value;z=z.next().value;return a.toString(16)+z.toString(16)};
ojm=function(a,z){var I=deG(z);a=new Uint32Array(a.buffer);z=a[0];var J=_.C(I);I=J.next().value;J=J.next().value;for(var r=1;r<a.length;r+=2){for(var P=z,N=r,u=I,E=J,O=0;O<22;O++)N=N>>>8|N<<24,N+=P|0,N^=u+38293,P=P<<3|P>>>29,P^=N,E=E>>>8|E<<24,E+=u|0,E^=O+38293,u=u<<3|u>>>29,u^=E;P=[P,N];a[r]^=P[0];r+1<a.length&&(a[r+1]^=P[1])}};
Uex=function(a,z,I,J,r){var P=(4-(no.length+I.length)%4)%4,N=new Uint8Array(4+P+no.length+4+I.length),u=new DataView(N.buffer),E=0;u.setUint32(E,Math.random()*4294967295);E=E+4+P;N.set(no,E);E+=no.length;u.setUint32(E,r);N.set(I,E+4);ojm(N,J);return a.insert(z,function(O){return void globalThis.sessionStorage.removeItem(O)})?O11(z,_.he(N))?"s":"t":"i"};
De3=function(a,z){var I=globalThis.sessionStorage.getItem(a);if(!I)return["m"];try{var J=_.cp(I);ojm(J,z)}catch(r){return globalThis.sessionStorage.removeItem(a),["c"]}for(z=4;z<7&&J[z]===0;)z++;for(I=0;I<no.length;I++)if(J[z++]!==no[I])return globalThis.sessionStorage.removeItem(a),["d"];I=(new DataView(J.buffer)).getUint32(z);return Math.floor(Date.now()/1E3)>=I?(globalThis.sessionStorage.removeItem(a),["e"]):["a",new Uint8Array(J.buffer,z+4)]};
RZ0=function(a){return globalThis.TextEncoder?(new TextEncoder).encode(a):_.Ko(a)};
L5d=function(a){var z=a,I;return function(){if(z){var J=z;z=void 0;I=J.apply(this,arguments)}return I}};
pyG=function(a){return $G(function(z){if(z instanceof a)return!0;var I,J,r=z==null?void 0:(I=z.ownerDocument)==null?void 0:(J=I.defaultView)==null?void 0:J[a.name];return lvm(r)&&z instanceof r})};
_.bE=function(a,z,I){_.FC.call(this);this.JSC$9958_listener_=a;this.JSC$9958_interval_=z||0;this.handler_=I;this.callback_=(0,_.HW)(this.JSC$9960_doAction_,this)};
_.h7=function(a){a=wy0(a);return _.H9(a)};
wy0=function(a){return a===null?"null":a===void 0?"undefined":a};
yPx=function(a){if(a&&a.focus)if(a!==document.activeElement)a.focus();else return meM(function(){return _.t(function(z){document.activeElement&&document.activeElement.blur();return z.return(meM(function(){a.focus()}))})})};
_.k91=function(a){var z=z===void 0?5:z;setTimeout(function(){var I;return _.t(function(J){J.nextAddress==1&&(I=document.activeElement);if(J.nextAddress!=5)return(document.activeElement===I||document.activeElement===document.body)&&z>=0&&a?J.yield(yPx(a),5):J.jumpTo(0);if(document.activeElement===a)return J.return();a=a.parentElement;--z;return J.jumpTo(2)})},15)};
meM=function(a){return new Promise(function(z){requestAnimationFrame(function(){z(a())})})};
cP3=function(a){if(_.Vc)a(_.Vc);else{var z;((z=M6M)!=null?z:M6M=[]).push(a)}};
SW=function(){!_.Vc&&_.Qc&&_.YzO(_.Qc());return _.Vc};
_.YzO=function(a){_.Vc=a;var z;(z=M6M)==null||z.forEach(cP3);M6M=void 0};
_.iE=function(a){_.Vc&&_.Vc.beforeLoadModuleCode(a)};
_.xl=function(){_.Vc&&_.Vc.JSC$10945_setLoaded()};
vW=function(a){return il1(a)?Number(a):String(a)};
qz0=function(a){this.action=a;this.wfv=!1};
eZG=function(a,z){qz0.call(this,"set-drive-options");this.appId=a;this.appOrigin=z};
aZG=function(a){qz0.call(this,"visibility");this.visible=a};
j3$=function(a,z,I){Ga.call(this,a,z,I)};
zTx=function(a){$l.call(this,a)};
IZ3=function(a){a=a&&a.getWindow()||window;return a.gadgets&&a.gadgets.rpc};
rCd=function(a,z){var I=z&&z.getWindow()||window;if(IZ3(z))a();else if(JC0)JC0.push(a);else var J=JC0=[a],r=I.setInterval(function(){if(IZ3(z)){I.clearInterval(r);for(var P=0;P<J.length;P++)J[P]();JC0=null}},100)};
ZIp=function(a,z){var I=new dQ(a);_.t7(z,I);var J={passive:!1};z.listen(I,"mousewheel",function(r){return void PPi(a,r)},J).listen(a,"scroll",function(r){return void PPi(a,r)},J)};
PPi=function(a,z){var I;a:{for(I=z.target;I;){if(I.nodeType==1){var J=_.WW(I,"overflowY");if(J=="auto"||J=="scroll")break a}I=I.parentNode}I=null}if(!I||!_.of(a,I)||I.scrollHeight==I.clientHeight||z.deltaY>0&&Math.abs(I.scrollTop-(I.scrollHeight-I.clientHeight))<=1||z.deltaY<0&&I.scrollTop==0)z.preventDefault(),z.stopPropagation()};
wQ=function(a,z,I,J,r,P,N,u,E){u=u===void 0?!1:u;E=E===void 0?!1:E;Ga.call(this,void 0,void 0,void 0);Ga.call(this,P?P+" picker modal-dialog":"picker modal-dialog",!0,I);_.US(a,"protocol");this.iframeManager_=new CPm;this.targetId_=DJ();this.rpcToken_=DJ();a=_.Rf(a);_.Lo(a,"hostId");I=_.Lo(a,"parent");this.useGapi_=!E&&!0||(I==null?void 0:I.includes("onepick.corp.google.com"));u&&_.lE(a,"fv2","true");this.setUrl(a.toString());this.preferredDialogWidth_=J;this.preferredDialogHeight_=r;J!==void 0||
r!==void 0?J=!0:(J=_.Lo(_.Rf(a.toString()),"hostId"),NoE||(NoE=new Set("DocVerse fusiontables geo geowiki gm gmail-gadget gws hotpot jointly presentations pwa sites templates trix trix-copy-sheet webstore".split(" "))),J=!NoE.has(J));this.autoSizeDialog_=J;this.JSC$10148_gadgetsDomHelper_=N||this.JSC$10099_dom_;z&&(N=this.JSC$10148_gadgetsDomHelper_,z=_.Lo(_.Rf(this.JSC$10150_url_),"grugl")=="true"?tp3:uyO,IZ3(N)||(N=N||nB(document),J=N.createElement("SCRIPT"),_.c9(J,z),J.type="text/javascript",N.JSC$9284_document_.body.appendChild(J)));
a=a.toString();z=null;N=a.indexOf("/picker?");N>-1?z=a.substring(0,N+8-1):Zi(a,"/picker")&&(z=a);z&&this.setRelayUrl(z+"/resources/rpc_relay.html");this.escapeToCancel_=!1;this.buttons_=null;this.buttonEl_&&(this.buttons_?(a=this.buttons_,a.JSC$10133_element_=this.buttonEl_,a.render()):_.YP(this.buttonEl_,EkG),_.po(this.buttonEl_,!!this.buttons_))};
_.fZ3=function(a){var z=z===void 0?BoG:z;var I=_.yx(a),J=function(P){P=_.C(P);P.next();P=mG(P);return z(I,P)},r=function(P){var N=_.C(P);
P=N.next().value;N=mG(N);return a.apply(P,N)};
return function(){var P=_.dO.apply(0,arguments),N=this||_.IE,u=gkI.get(N);u||(u={},gkI.set(N,u));return OIx(u,[this].concat(_.ih(P)),r,J)}};
yc=function(a){var z={};a=a.replace(/\r/g,"").split("\n");for(var I=0;I<a.length;I++){var J=a[I],r=J.indexOf(":");r<0||(z[J.substring(0,r)]=J.substring(r+2,J.length))}return z};
ACM=function(a,z,I){I=I===void 0?function(){}:I;
return a?z():I()};
_.nk$=function(a){var z;return((z=s3G.documentOverride)!=null?z:a).__wizdispatcher};
_.MC=function(a){var z=kl;kl=a;return z};
_.FlG=function(a){return a===Kl1||(a==null?void 0:a.name)==="\u0275NotFound"};
_.cW=function(a,z){var I;if((I=a)==null?0:I.isDisposed)throw Error("jb`"+String(a.debugName));for(;a!==void 0;){I=a;if(I.retrieve)return I.retrieve(z,{optional:!0});a=a.parent}return Kl1};
Yl=function(a){return{"\u0275prov":{providedIn:"root",token:Symbol(a),factory:void 0,value:void 0}}};
_.HId=function(a){var z=kl;if(!z){switch(a===void 0?3:a){case 0:a=Error("ib");break;case 1:a=Error("kb");break;case 2:a=Error("lb");break;default:a=Error("mb")}throw a;}return z};
bIM=function(a){var z=_.MC(a);a={};return a[Symbol.dispose]=function(){_.MC(z)},a};
hTd=function(a,z){a.disposables||(a.disposables=[]);a.disposables.push(z)};
qC=function(a){var z=kl;z&&!z.isDisposed&&(hTd(z,a),a.parent=z)};
Q3i=function(a){if(a.disposables){for(var z=_.C(a.disposables),I=z.next();!I.done;I=z.next())I=I.value,typeof I==="function"?I():VpE(I);a.disposables.length=0}};
VpE=function(a){if(!a.isDisposed){a.isDisposed=!0;var z;(z=a[Symbol.dispose])==null||z.call(a);delete a.parent;Q3i(a)}};
dVd=function(a){var z={retrieve:function(I){switch(I.\u0275prov.token){case Snx.\u0275prov.token:var J=a.asyncDeps;break;case _.iIG.\u0275prov.token:J=a.rootElement;break;case xV1.\u0275prov.token:J=a.modelRootElement;break;case vkm.\u0275prov.token:J=a.appContext;break;case GW3.\u0275prov.token:J=a.rendererData;break;case $VI.\u0275prov.token:J=a.injectingConstructor;break;case XLd.\u0275prov.token:J=a.dispatcher}if(J)I=J;else a:{for(J=z.parent;J;){var r=J;if(r.retrieve){I=r.retrieve(I);break a}J=
J.parent}J=I.\u0275prov.token;r=To1[J];r!==void 0?I=r:(r=I.\u0275prov.providedIn,I.\u0275prov.factory?(I=I.\u0275prov.factory(),J&&r==="root"&&(To1[J]=I)):I=Kl1)}return I}};
qC(z);return z};
WlG=function(){var a=_.HId(1),z=_.cW(a,vkm);_.FlG(z)&&(a=_.cW(a,XLd),_.FlG(a)||a.getOptionalAppContext())};
ok7=function(a){if(typeof document!=="undefined"&&document&&document.getElementById&&(a=document.getElementById(a))){var z=a.tagName.toUpperCase();if(z=="SCRIPT"||z=="LINK")return a}return null};
DVO=function(a,z){if((a=a===void 0?"":a)&&z)throw Error("sb");var I="";var J=_.IE._F_jsUrl;(a=z||ok7(a))&&(I=a.src?a.src:a.getAttribute("href"));if(J&&I){if(J!=I)throw Error("tb`"+J+"`"+I);I=J}else I=J||I;if(!UVE(I))throw Error("ub");return I};
pLx=function(){if(!RT0){RT0=!0;try{var a=DVO(_.IE._F_jsUrl?"":"base-js")}catch(J){return}var z=Ll7(lZ1(a)),I=Object.keys(z);I.length!==0&&cP3(function(J){for(var r=_.C(I),P=r.next();!P.done;P=r.next()){P=P.value;for(var N=_.C(Object.keys(z[P])),u=N.next();!u.done;u=N.next())J.addExtraEdge(P,u.value)}})}};
mVd=function(){var a=Object.assign({},wLM);Object.getOwnPropertyNames(wLM).forEach(function(z){eW[z]!==void 0&&(a[z]=eW[z])});
return a};
yC0=function(a,z){if(eW.enablePerformanceTiming){var I,J;(J=(I=performance).mark)==null||J.call(I,a+"Start__"+z)}};
kWi=function(a,z){if(eW.enablePerformanceTiming){var I,J;(J=(I=performance).measure)==null||J.call(I,a+"__"+z,a+"Start__"+z)}};
MpE=function(a,z,I){var J;return a&&z?a+"__"+z:(J=a!=null?a:z)!=null?J:I};
YnI=function(a,z){var I=Object.create(cCd);I.debugName=z;!kl||qC(I);z=_.MC(I);try{a(I)}finally{_.MC(z)}return function(){return void VpE(I)}};
eT0=function(a){return ah(a)&&qn1 in a};
aRd=function(a,z){return Object.is(a,z)};
ze=function(a){var z=jJ;jJ=a;return z};
zX0=function(a){if(Ih)throw Error("Z");if(jJ!==null){var z=jJ.producersTail;if(z===void 0||z.producer!==a){var I=void 0,J=jJ.recomputing;if(J&&(I=z!==void 0?z.nextProducer:jJ.producers,I!==void 0&&I.producer===a)){jJ.producersTail=I;I.lastReadVersion=a.version;return}var r=a.consumersTail,P;if(!(P=r===void 0||r.consumer!==jJ)){if(J){a:{P=jJ;J=P.producersTail;if(J!==void 0){P=P.producers;do{if(P===r){J=!0;break a}if(P===J)break;P=P.nextProducer}while(P!==void 0)}J=!1}J=!J}P=J}P&&(J=J2(jJ),I={producer:a,
consumer:jJ,nextProducer:I,prevConsumer:r,lastReadVersion:a.version,nextConsumer:void 0},jJ.producersTail=I,z!==void 0?z.nextProducer=I:jJ.producers=I,J&&jO1(a,I))}}};
rJ3=function(a){if(!J2(a)||a.dirty)if(a.dirty||a.lastCleanEpoch!==IRi)(a.producerMustRecompute(a)||JJi(a))&&a.producerRecomputeValue(a),a.dirty=!1,a.lastCleanEpoch=IRi};
P9M=function(a){if(a.consumers!==void 0){var z=Ih;Ih=!0;try{for(var I=a.consumers;I!==void 0;I=I.nextConsumer){var J=I.consumer;J.dirty||(a=void 0,J.dirty=!0,P9M(J),(a=J.consumerMarkedDirty)==null||a.call(J,J))}}finally{Ih=z}}};
Zv0=function(){var a;return((a=jJ)==null?void 0:a.consumerAllowSignalWrites)!==!1};
C9G=function(a){a&&(a.producersTail=void 0,a.recomputing=!0);return ze(a)};
tFG=function(a,z){ze(z);if(a){a.recomputing=!1;z=a.producersTail;var I=z!==void 0?z.nextProducer:a.producers;if(I!==void 0){if(J2(a)){do I=N2d(I);while(I!==void 0)}z!==void 0?z.nextProducer=void 0:a.producers=void 0}}};
JJi=function(a){for(a=a.producers;a!==void 0;a=a.nextProducer){var z=a.producer,I=a.lastReadVersion;if(I!==z.version)return!0;rJ3(z);if(I!==z.version)return!0}return!1};
jO1=function(a,z){var I=a.consumersTail,J=J2(a);I!==void 0?(z.nextConsumer=I.nextConsumer,I.nextConsumer=z):(z.nextConsumer=void 0,a.consumers=z);z.prevConsumer=I;a.consumersTail=z;if(!J)for(a=a.producers;a!==void 0;a=a.nextProducer)jO1(a.producer,a)};
N2d=function(a){var z=a.producer,I=a.nextProducer,J=a.nextConsumer,r=a.prevConsumer;a.nextConsumer=void 0;a.prevConsumer=void 0;J!==void 0?J.prevConsumer=r:z.consumersTail=r;if(r!==void 0)r.nextConsumer=J;else if(z.consumers=J,!J2(z))for(a=z.producers;a!==void 0;)a=N2d(a);return I};
J2=function(a){return a.consumerIsAlwaysLive||a.consumers!==void 0};
E00=function(a){var z=Object.create(udp);z.computation=a;a=function(){rJ3(z);zX0(z);if(z.value===r1)throw z.error;return z.value};
a[Pg]=z;return a};
fR7=function(a,z){var I=Object.create(B2x);I.value=a;z!==void 0&&(I.equal=z);a=function(){zX0(I);return I.value};
a[Pg]=I;return[a,function(J){return g00(I,J)},
function(J){Zv0()||Ovx(I);g00(I,J(I.value))}]};
g00=function(a,z){Zv0()||Ovx(a);if(!a.equal(a.value,z)){a.value=z;a.version++;IRi++;P9M(a);var I;(I=AJ1)==null||I(a)}};
ZT=function(a){var z=ze(null);try{return a()}finally{ze(z)}};
_.CW=function(a,z,I){I=I===void 0?"":I;a=fR7(a,z==null?void 0:z.equals);var J=a[0],r=J[Pg];r.debugName=MpE(z==null?void 0:z.debugName,I,"[signal]");if(!eW.enablePerformanceTiming)return a;var P=a[1],N=a[2];return[J,function(u){sOI(function(){return void P(u)},r)},
function(u){sOI(function(){return void N(u)},r)}]};
sOI=function(a,z){yC0("signalSet",z.debugName);try{a()}finally{kWi("signalSet",z.debugName)}};
K_7=function(a,z){var I=_.C(_.CW(a,void 0,"cPpJzc"));a=I.next().value;I=I.next().value;a[n0G]=I;a[NI]=z;return a};
F_M=function(a){return!!a&&typeof a==="object"&&Object.getPrototypeOf(a)===Object.prototype};
Hvi=function(a){return typeof a==="function"&&n0G in a&&typeof a[n0G]==="function"};
bvx=function(a,z){Object.defineProperty(a,NI,{get:function(){return z}})};
uF=function(a,z){if(t2(a)){var I=a.map(function(P){return uF(P,z)});
bvx(I,z);return I}if(F_M(a)){I={};a=_.C(Object.entries(a));for(var J=a.next();!J.done;J=a.next()){var r=_.C(J.value);J=r.next().value;r=r.next().value;I[J]=uF(r,z)}bvx(I,z);return I}return K_7(a,z)};
hXm=function(a){if(t2(a))return a.map(function(r){return hXm(r)});
if(F_M(a)){var z={};a=_.C(Object.entries(a));for(var I=a.next();!I.done;I=a.next()){var J=_.C(I.value);I=J.next().value;J=J.next().value;z[I]=hXm(J)}return z}return Hvi(a)?a():a};
QOG=function(){var a={height:0,width:0};if(!F_M(a))throw Error("Gb");var z=Symbol("Hb");return[uF(a,z),function(I,J){if(I[NI]===z)if(typeof J==="function"){var r=[].concat(_.ih(hXm(I)));J=J(r)||r;VFd(I,[].concat(_.ih(J)))}else VFd(I,J);else throw Error("Ib");}]};
VFd=function(a,z){if(Hvi(a))a[n0G](z);else if(t2(a)&&t2(z))z=uF(z,a[NI]),a.length=0,a.push.apply(a,_.ih(z));else if((F_M(a)||t2(a))&&(t2(z)||typeof z==="object"&&z!==null)){z=_.C(Object.entries(z));for(var I=z.next();!I.done;I=z.next()){var J=_.C(I.value);I=J.next().value;J=J.next().value;var r=a,P=r[I];Object.hasOwn(a,I)?VFd(P,J):r[I]=uF(J,a[NI])}}else throw Error("Jb");};
Sw0=function(a){return Object.create(Object.assign({},Ef,a))};
xm7=function(){var a;return(a=ivi)!=null?a:ivi=Sw0({consumerAllowSignalWrites:!0})};
_.Bg=function(a,z,I){I=I===void 0?"":I;a=E00(a);var J=a[Pg];J.debugName=MpE(z==null?void 0:z.debugName,I,"[computed]");(z==null?void 0:z.equals)!=null&&(J.equal=z.equals);return a};
g1=function(a){var z=ze(v0i);try{a()}finally{ze(z)}};
W_E=function(a){if(!a.isDisposed)switch(a.effectType){case Of:GxG.schedule(a);break;case $mi:Xad.schedule(a);break;case T2$:dm0.schedule(a);break;default:_.Rw(a.effectType)}};
UmG=function(a){o01.push(a);return function(){var z=o01.indexOf(a);z!==-1&&o01.splice(z,1)}};
RX$=function(){if(fW>0)eW.flushRenderEffectsDuringRender&&GxG.flush();else for(var a=_.C(DmE),z=a.next();!z.done;z=a.next())z.value.flush()};
lRE=function(a){A2=!0;try{for(var z=_.C(a),I=z.next();!I.done;I=z.next()){for(var J=I.value,r=[J],P=J;P.parent!==void 0;)P=P.parent,L_O(P)&&a.has(P)&&r.push(P);for(;r.length>0;){var N=r.pop();a.delete(N);N.run()}}}finally{A2=!1}};
sf=function(a){fW--;if(a){a=_.C(DmE);for(var z=a.next();!z.done;z=a.next())z.value.clear()}else fW>0||A2&&!eW.flushRenderEffectsDuringRender||RX$()};
wad=function(a,z,I){var J=paI(a);nW={name:I?J+" ("+I+")":J,isReactive:a.componentType!==KW,parent:nW};a=z();nW=nW.parent;return a};
Fp=function(){var a=nW;return a?a.isReactive:!1};
bF=function(a,z,I){var J=nW;z&&(nW=z);try{return I==null?a():a.call(I)}catch(P){a=P;Hg(a,nW);if(a!==mmM){yJd=nW;z=[];for(I=kl;I;){var r=void 0;z.push((r=I.debugName)!=null?r:"[context]");r=void 0;I=(r=I.parent)!=null?r:null}kx0=z.reverse()}mmM=a;throw a;}finally{nW=J}};
Hg=function(a,z){try{var I=MFG(z);if(I&&!a.componentStack&&(a.componentStack=I,eW.enableComponentStacksInErrorMessages)){var J=a.message+"\n\nComponent stack: "+I;a.stack&&(a.stack=a.stack.replace(a.message,J));a.message=J}}catch(r){}};
MFG=function(a){if(ah(a)&&a.name!==void 0&&a.isReactive!==void 0&&a.parent!==void 0||a===null){for(var z=0,I="";z<20&&a;)I+=a.name+" > ",a=a.parent,z++;a=I.slice(0,-3)}else if(eW.enableContextBasedComponentStacks){a:{for(a=a===void 0?kl:a;a;){if(eT0(a))break a;z=void 0;a=(z=a.parent)!=null?z:null}a=null}a=a.getComponentStack().slice(0,20).join(" > ")}else a="";return a};
paI=function(a){return a.debugName||a.name||"[component]"};
cJp=function(a,z,I){z=Object.create(z);a&&(z.effectFn=a);I&&(z.debugName=I);qC(z);z.componentStack=nW;return z};
_.h2=function(a,z){a=cJp(a,YwO,z);W_E(a)};
_.V3=function(a){var z=kl;if(z){var I=nW;hTd(z,function(){var J=ze(xm7());try{bF(function(){return void a()},I)}catch(r){throw eW.enableContextBasedComponentStacks&&Hg(r),r;
}finally{ze(J)}})}};
Q3=function(a,z){var I={};(z===void 0||z)&&qC(I);z=_.MC(I);try{a(I)}finally{_.MC(z)}return function(){return void VpE(I)}};
_.SJ=function(a){return typeof a==="function"?a():(a==null?0:a[qwG])?a.get():a};
_.iF=function(a,z){a=cJp(a,eXp,z);W_E(a)};
aVI=function(a){if(kl)throw Error("nb");Q3(a,!1)};
xX=function(a,z){a=_.MC(a);try{return ZT(z)}finally{_.MC(a)}};
vg=function(a,z){var I=MFG(yJd),J,r;var P=(r=(J=kx0)==null?void 0:J.slice())!=null?r:[];z={componentStack:I,contextTrace:P,errorSeverity:3,featureFlags:mVd(),tagName:z};return[a,z]};
IVm=function(a,z,I){if(Object.hasOwnProperty.call(jGp,a)&&(a=jGp[a],Object.hasOwnProperty.call(a,z)&&(a=a[z],a instanceof Array))){for(var J=null,r=!1,P=0,N=a.length;P<N;++P){var u=a[P],E=u.contingentAttribute;if(!E)return u.contract;J===null&&(J={});E=Object.hasOwnProperty.call(J,E)?J[E]:J[E]=I(E);if(E===u.requiredValue)return u.contract;E==null&&(r=!0)}if(r)return null}z=zQd[z];return typeof z==="number"?z:null};
PaG=function(a,z,I){var J=null;(a=JGG[a])&&(J=a[z]);return typeof J!=="number"&&((a=JGG["*"])&&(J=a[z]),typeof J!=="number")?!1:!0===rG7[J][String(I).toLowerCase()]};
CaM=function(a,z){z=IVm(a.toLowerCase(),z,function(){var J;(J=eW.handleError)==null||J.call.apply(J,[eW].concat(_.ih(vg(Error("Ob"),a.toLowerCase()))))});
if(z===null)return null;var I;return(I=Z6x[z])!=null?I:null};
N3E=function(a,z,I){if(I===null||I===void 0)return I;z=z.toLowerCase();a=CaM(a,z);return a===null?I:a(z,I)};
tH0=function(){};
Ge=function(a,z){for(;a.length>z;)a.pop()};
uk0=function(a){a=Array(a);Ge(a,0);return a};
Xp=function(a,z,I){if(I==null)a.removeAttribute(z);else{var J;(J=z.lastIndexOf("xml:",0)===0?"http://www.w3.org/XML/1998/namespace":z.lastIndexOf("xlink:",0)===0?"http://www.w3.org/1999/xlink":null)?a.setAttributeNS(J,z,I):a.setAttribute(z,I)}};
EvE=function(a,z,I){a[z]=I};
gvm=function(a,z,I){a=a.style;if(typeof I==="string")a.cssText=I;else{a.cssText="";for(var J in I)if(B3G.call(I,J)){z=a;var r=J,P=I[J];r.indexOf("-")>=0?z.setProperty(r,P):z[r]=P}}};
O6G=function(a,z,I){var J=typeof I;J==="object"||J==="function"?a[z]=I:Xp(a,z,I)};
fVI=function(){var a=new tH0;a[Te.default]=O6G;a.style=gvm;return a};
AG0=function(a,z,I,J){(J[z]||J[Te.default])(a,z,I)};
nv7=function(a,z,I){z=new sG1(z,I);return a.__incrementalDOMData=z};
d1=function(a,z){if(a.__incrementalDOMData)return a.__incrementalDOMData;var I=a.nodeType===1?a.localName:a.nodeName,J=a.nodeType===1?a.getAttribute("key"):null;z=nv7(a,I,a.nodeType===1?J||z:null);if(a.nodeType===1&&(a=a.attributes,I=a.length)){J=z._attrsArr||(z._attrsArr=uk0(I*2));for(var r=0,P=0;r<I;r+=1,P+=2){var N=a[r],u=N.value;J[P]=N.name;J[P+1]=u}}return z};
Kk1=function(a,z,I,J,r){return z==I&&J==r};
Fkx=function(a){for(var z=Uf,I=DT();I!==a;){var J=I.nextSibling;z.removeChild(I);Rh.deleted.push(I);I=J}};
DT=function(){return LW?LW.nextSibling:Uf.firstChild};
lF=function(){LW=DT()};
hQG=function(a,z,I){lF();var J;a:{if(J=LW){do{var r=J,P=a,N=z,u=d1(r,N);if(H6G(r,P,u.nameOrCtor,N,u.key))break a}while(z&&(J=J.nextSibling))}J=null}J||(a==="#text"?(I=pW.createTextNode(""),nv7(I,"#text",null),a=I):(J=pW,r=Uf,typeof a==="function"?J=new a:J=(r=a==="svg"?"http://www.w3.org/2000/svg":a==="math"?"http://www.w3.org/1998/Math/MathML":r==null||d1(r).nameOrCtor==="foreignObject"?null:r.namespaceURI)?J.createElementNS(r,a):J.createElement(a),nv7(J,a,z),a=J,I&&a.setAttribute("nonce",I)),Rh.created.push(a),
J=a);I=J;if(I!==LW){if(b6p.indexOf(I)>=0)for(a=Uf,z=I.nextSibling,J=LW;J!==null&&J!==I;)r=J.nextSibling,a.insertBefore(J,z),J=r;else Uf.insertBefore(I,LW);LW=I}};
VHG=function(a,z,I){hQG(a,z,I);Uf=LW;LW=null;return Uf};
QGp=function(){Fkx(null);LW=Uf;Uf=Uf.parentNode};
ScG=function(){LW=Uf.lastChild};
vv1=function(a,z){z=z===void 0?{}:z;var I=z.matches===void 0?Kk1:z.matches;return function(J,r,P){var N=Rh,u=pW,E=b6p,O=w1,f=mA,A=LW,n=Uf,F=H6G;pW=J.ownerDocument;Rh=new i60(J);H6G=I;w1=[];mA=[];LW=null;var h=Uf=J.parentNode,v,d=xrG.call(J);if((v=d.nodeType===11||d.nodeType===9?d.activeElement:null)&&J.contains(v)){for(d=[];v!==h;)d.push(v),v=v.parentNode||(h?v.host:null);h=d}else h=[];b6p=h;try{return a(J,r,P)}finally{J=Rh,y3&&J.deleted.length>0&&y3(J.deleted),pW=u,Rh=N,H6G=F,w1=O,mA=f,LW=A,Uf=n,
b6p=E}}};
G$x=function(a,z,I,J){kX.push(AG0);kX.push(a);kX.push(z);kX.push(I);kX.push(J)};
XvI=function(a,z,I){var J=mA;z=z._attrsArr||(z._attrsArr=uk0(J.length));for(var r=!z.length||!1,P=0;P<J.length;P+=2){var N=J[P];if(r)z[P]=N;else if(z[P]!==N)break;var u=J[P+1];if(r||z[P+1]!==u)z[P+1]=u,G$x(a,N,u,I)}if(P<J.length||P<z.length){for(P=r=P;P<z.length;P+=2)MI[z[P]]=z[P+1];for(P=r;P<J.length;P+=2)r=J[P],N=J[P+1],MI[r]!==N&&G$x(a,r,N,I),z[P]=r,z[P+1]=N,delete MI[r];Ge(z,J.length);for(var E in MI)G$x(a,E,void 0,I),delete MI[E]}a=$rI;$rI=I=kX.length;for(E=a;E<I;E+=5)(0,kX[E])(kX[E+1],kX[E+
2],kX[E+3],kX[E+4]);$rI=a;Ge(kX,a);Ge(J,0)};
T30=function(a){hQG("#text",null);var z=LW;var I=d1(z);if(I.text!==a){I=I.text=a;for(var J=1;J<arguments.length;J+=1)I=(0,arguments[J])(I);z.data!==I&&(z.data=I)}};
LkE=function(a,z,I){if(I===!1&&drI.has(z))Xp(a,z,null);else if(z!=="idomKey"&&z!=="skip"&&z!=="skipchildren"&&z!=="children"&&z!=="el")if(z.startsWith("on")){if(z[2]!==":")throw Error("Nb`"+z);if(I===void 0||I===null){var J;(J=eW.handleError)==null||J.call.apply(J,[eW].concat(_.ih(vg(Error("Sb`"+z),a.tagName))));a[z]=void 0}else{var r=z.slice(3);J=Fp();if(r==="jsaction"){I=Array.isArray(I)?I:[I];I=_.C(I);for(var P=I.next();!P.done;P=I.next()){P=P.value;if(typeof P!=="object"||P===null||typeof P.selfReg!==
"function")throw Error("Vb`"+z);P.selfReg(0,a,J?_.V3:function(){})}}else{if(typeof I!=="object"||I===null)throw Error("Tb`"+z+"`"+typeof I);
if(typeof I.getFn!=="function")throw Error("Ub`"+z+"`"+Object.keys(I));if(I.selfReg)I.selfReg(0,a,r,J?_.V3:function(){});
else if(J&&a["on"+r]===void 0){var N=I.getFn(0);a.addEventListener(r,N);_.V3(function(){return void a.removeEventListener(r,N)})}else if(J||!WkG.includes(r))a["on"+r]=I.getFn(0)}}}else{if(z.startsWith("data-")&&typeof I==="string")try{I=ovG(I)}catch(u){I="zSoyz"}typeof I!=="function"||a._disposeEffects!=null?((J=z.startsWith("prop:"))&&(z=z.slice(5)),eW.enableAttributeSanitization&&(J&&Urm(a.tagName)||(I=N3E(a.tagName,z,I))),z==="style"?("function"==typeof _.cg&&I instanceof _.cg&&(I=I.toString()),
Drp(a,z,I)):J?a[z]=I:RQM(a,z,I)):(a._signalProps||(a._signalProps=[]),a._signalValues||(a._signalValues=[]),a._signalProps.push(z))}};
lVm=function(a,z,I){I=(I===void 0?{}:I).isReactive;if(z==null?0:z.el){var J=z.el;if(typeof J==="function")J(a);else{var r;(r=J.onRender)==null||r.call(J,a);a._disposeRef||(a._disposeRef=function(){var P;(P=J.onUnmount)==null||P.call(J);delete a._disposeRef},I&&_.V3(function(){var P;
(P=a._disposeRef)==null||P.call(a)}))}}};
Urm=function(a){return a.length>0&&a.includes("-")&&!pvO.includes(a.toLowerCase())};
wv0=function(a){return ah(a)&&YX in a};
mrx=function(a){return wv0(a)?a[YX].flattened:a};
yGE=function(a,z){var I=_.dO.apply(2,arguments),J;z=(J=z)!=null?J:{};J={};return J.type=a,J.props=z,J.children=I,J[qI]=!0,J};
_.eJ=function(a){return a.children};
aL=function(a){var z=k$3!==yGE;k$3=a?MHp:yGE;return z};
_.jL=function(a){return _.md(a)?"nodeType"in a:!1};
zZ=function(){return document.createTextNode("")};
IL=function(a){a=document.createTextNode(String(a));a._isSignalTextNode=!0;return a};
Yci=function(a){return a!=null&&a.contentKind===JD||a instanceof Dx||cGI(a)};
qcM=function(a){var z=document.createElement("div");if(cGI(a)&&t6E(a))_.YP(z,t6E(a));else if(a instanceof Dx)_.YP(z,a);else if(a!=null&&a.contentKind===JD){if(a.contentKind!==JD)throw Error("Rb");a=Rt(a.toString());_.YP(z,a)}a=_.C(z.childNodes);for(var I=a.next();!I.done;I=a.next())I.value._isSafeOrSanitizedHtmlNode=!0;return z};
rq=function(a){a=typeof a;return a==="string"||a==="number"||a==="boolean"};
eQx=function(a){return a instanceof FG||Su(a)||a instanceof al||"function"==typeof _.cg&&a instanceof _.cg};
a1M=function(a,z){var I=a.parentElement;if(!I)return z;I.replaceChild(z,a);return z};
jAd=function(a,z){var I=a[0].parentElement;if(I)if(a[0].previousSibling||a[a.length-1].nextSibling){I.insertBefore(z,a[0]);for(var J=a.length-1;J>=0;J--)I.removeChild(a[J])}else I.textContent="",I.appendChild(z);return z};
zF1=function(a,z){if(a[0].parentElement)for(var I=a[0].parentElement,J=z.length,r=a.length,P=J,N=0,u=0,E=a[r-1].nextSibling,O=null;N<r||u<P;)if(a[N]===z[u])N++,u++;else{for(;a[r-1]===z[P-1];)r--,P--;if(r===N)for(var f=P<J?u?z[u-1].nextSibling:z[P-u]:E;u<P;){var A=z[u++];I.insertBefore(A,f)}else if(P===u)for(;N<r;)f=a[N],O&&O.has(f)||I.removeChild(f),N++;else if(a[N]===z[P-1]&&z[u]===a[r-1])f=a[--r].nextSibling,I.insertBefore(z[u++],a[N++].nextSibling),I.insertBefore(z[--P],f),a[r]=z[P];else{if(!O)for(O=
new Map,f=u;f<P;)O.set(z[f],f++);f=O.get(a[N]);if(f==null)I.removeChild(a[N]),N++;else if(u<f&&f<P){A=N;for(var n=1,F=void 0;++A<r&&A<P&&(F=O.get(a[A]))!=null&&F===f+n;)n++;if(n>f-u)for(A=a[N];u<f;)I.insertBefore(z[u++],A);else I.replaceChild(z[u++],a[N++])}else N++}}return z};
J$M=function(a){if(Array.isArray(a)){if(a.length>1)throw Error("dc`"+a.length+"`"+a.map(I11).join(", "));a=a[0]}if(a==null)return null;if(!(a instanceof _.yI)){var z,I;if((z=window)==null?0:(I=z.trustedTypes)==null?0:I.isScript(a))throw Error("cc");if(String(a).trim().length===0)return null;throw Error("ec`"+I11(a));}return a};
r$G=function(a,z){z=J$M(z);z!==null&&_.ML(a,z)};
Pdp=function(a){if(Array.isArray(a)){if(a.length>1)throw Error("fc`"+a.length+"`"+a.map(I11).join(", "));a=a[0]}if(a==null)return null;if(!(a instanceof al)){if(String(a).trim().length===0)return null;throw Error("gc`"+I11(a));}return a};
ZL$=function(a,z){z=Pdp(z);z!==null&&(a.textContent=NVi(z))};
I11=function(a){return"("+typeof a+") "+(a!=null&&typeof a==="object"?a.constructor.name:typeof a)+" "+a};
Cdx=function(){};
NY=function(a,z){z=z===void 0?{}:z;var I=NFM();eW.legacyTriggerSoyRendererEvents&&WlG();_.iF(function(){P3.setUp();z.isControlFlowComponent&&fW++;var J=I[0],r=I[YX].flattened,P=aL(!0);try{var N=a(),u=tli(J,N,I);Array.isArray(u)||(I[YX].flattened=[u]);var E=I[YX].flattened;if(r&&(!Array.isArray(r)||r.length!==0)){var O=Array.isArray(r)?r[0]:r,f=O[C3],A=O._disposeEffects;O._disposeEffects=void 0;O=Array.isArray(E)?E[0]:E;O[C3]=f;O[C3]&&(O[C3].numNodes=O===E?1:E.length);O._disposeEffects=A}I[0]=u;z.isControlFlowComponent&&
sf(!1)}catch(n){throw z.isControlFlowComponent&&sf(!0),n;}finally{aL(P),P3.tearDown()}},z.debugName);
return I};
tli=function(a,z,I){for(;typeof z==="function";)z=z();if(z!=null&&z[qI]){var J,r,P;(P=eW.handleError)==null||P.call.apply(P,[eW].concat(_.ih(vg(Error("hc`"+((J=z.type)==null?void 0:J.TAG_NAME)),(r=z.type)==null?void 0:r.TAG_NAME))))}if(a==null)return z==null?zZ():rq(z)?IL(z):eQx(z)?IL(z.toString()):_.jL(z)?z:z.length===0?zZ():uZ3(z,I);if(_.jL(a)){if(z==null)return a1M(a,zZ());if(rq(z))return E2M(a,z);if(eQx(z))return E2M(a,z.toString());if(_.jL(z))return a1M(a,z);if(z.length===0)return a1M(a,zZ());
z=uZ3(z,I);zF1([a],I[YX].flattened);return z}a=tD(a);if(z==null)return jAd(a,zZ());if(rq(z))return jAd(a,IL(z));if(eQx(z))return jAd(a,IL(z.toString()));if(_.jL(z))return zF1(a,[z])[0];if(z.length===0)return jAd(a,zZ());z=uZ3(z,I);zF1(a,I[YX].flattened);return z};
E2M=function(a,z){a.nodeType===Node.TEXT_NODE?a.textContent!==String(z)&&(a.textContent=String(z)):a=a1M(a,IL(z));return a};
tD=function(a,z,I){return BFG(a,z!=null?z:[],I===void 0?!1:I)};
uZ3=function(a,z){var I=tD(a,void 0,!0);if(I.length===0)return zZ();z[YX].flattened=I;return a};
BFG=function(a,z,I,J,r){z=z===void 0?[]:z;I=I===void 0?!1:I;r=r===void 0?-1:r;if(a==null)return z;if(a instanceof u1){var P=a.render();return BFG(P,z,I,J,r)}if(_.jL(z)&&z.nodeType===Node.ELEMENT_NODE)switch(z.tagName){case "SCRIPT":r$G(z,a);return;case "STYLE":ZL$(z,a);return}rq(a)&&(a=IL(a),J&&I&&(J[r]=a));if(Yci(a)){I=qcM(a);I=Array.from(I.childNodes);I=_.C(I);for(P=I.next();!P.done;P=I.next())g2x(z,P.value);return z}eQx(a)&&(a=IL(a.toString()),J&&I&&(J[r]=a));if(_.jL(a))return g2x(z,a);if(Array.isArray(a)){for(P=
0;P<a.length;P++)BFG(a[P],z,I,a,P);return z}if(typeof a==="function"){P=NY(function(){var u=a();return u!=null&&!rq(u)&&Yci(u)?(u=qcM(u),Array.from(u.childNodes)):u},{debugName:"qmF2ne",
debugFn:a})[0];if(Array.isArray(P)){I=_.C(P);for(P=I.next();!P.done;P=I.next())g2x(z,P.value);return z}J&&I&&(J[r]=P);return g2x(z,P)}if(a!=null&&a[qI]){J=a;r=aL(!0);var N=k$3;try{P=N.apply(null,[J.type,J.props].concat(_.ih(J.children)))}finally{aL(r)}return BFG(P,z,I)}(N=eW.handleError)==null||N.call.apply(N,[eW].concat(_.ih(vg(Error("ic")))));return z};
NFM=function(a){var z={};z=Object.assign([],(z[YX]={flattened:[]},z));if(!a)return z;z[0]=uZ3(a,z);return z};
g2x=function(a,z){Array.isArray(a)?a.push(z):a.appendChild(z);return a};
Ee=function(a){if(!eW.enableLazyTsx)return a;if(Array.isArray(a)){for(var z=0;z<a.length;z++)a[z]=Ee(a[z]);return a}return a instanceof u1?(a=a.render(),Ee(a)):a};
f1d=function(a,z){var I,J,r=paI(a),P=function(F){J=F;F=aL(!0);var h=ze(B3);yC0("render",r);try{I=Ee(a(z))}finally{kWi("render",r),ze(h),aL(F)}};
P=eW.enableContextPerComponent?YnI(P,r):Q3(P,eW.alwaysTrackContexts||!!kl);eT0(J);if(!z.renderedFromIdom){var N=_.MC(J);try{return OLG(a,z,I),I}finally{_.MC(N)}}!wv0(I)&&Array.isArray(I)&&(I=NFM(I));var u=mrx(I);N=Array.isArray(u)?u[0]:u;var E=!1;if(N){var O,f=(O=z==null?void 0:z.idomKey)!=null?O:a;O=u!==N;N._disposeEffects=P;var A=N[C3]||{},n=wv0(I)?I:A.sourceDynamicRange;Object.assign(A,{key:f,numNodes:O?u.length:1,context:J,higherOrder:!!N[C3],sourceDynamicRange:n});N[C3]=A}else E=!0;(function(){var F=
_.MC(J);try{OLG(a,z,u)}finally{_.MC(F)}})();
E&&P();return I};
A$O=function(a){var z={},I;for(I in a)z={prev$jscomp$23:void 0,next$jscomp$33:void 0},z.prev$jscomp$23=gq[I],z.next$jscomp$33=a[I],gq[I]=function(J){return function(){var r=_.dO.apply(0,arguments);J.prev$jscomp$23.apply(null,_.ih(r));J.next$jscomp$33.apply(null,_.ih(r))}}(z)};
sAi=function(){if(Fp())throw Error("jc");return Oe};
n2m=function(a,z){if(!a.__unmounted&&z){a.__unmounted=!0;try{a.didUnmount()}catch(r){var I,J;(J=eW.handleError)==null||J.call.apply(J,[eW].concat(_.ih(vg(r,(I=a.__type)==null?void 0:I.TAG_NAME))))}gq.didUnmount(a);a.el=null;z.__instance&&delete z.__instance}};
FKE=function(a,z,I){a._signalProps!=null&&a._disposeEffects==null&&((I===void 0?0:I)?a._disposeEffects=Q3(function(){return void KKG(a,z)},eW.alwaysTrackContexts||!!kl):KKG(a,z))};
KKG=function(a,z){_.iF(function(){for(var I=a._signalProps,J=a._signalValues,r=0;r<I.length;r++){var P=I[r],N=z[P]();J[r]!==N&&(J[r]=N,LkE(a,P,N))}},"e3YVbb")};
HLm=function(a,z,I){var J,r=[];a._disposeEffects=Q3(function(){_.iF(function(){var P=I();if(P===null||P===void 0)P="";if(rq(P)||P===null)J!=null||(J=document.createTextNode("")),J.parentNode!==a&&(J._isSignalTextNode=!0,a.insertBefore(J,z)),J.textContent=String(P);else if(Yci(P)){for(var N=r.length>0?r[r.length-1].nextSibling:z,u=_.C(r),E=u.next();!E.done;E=u.next())a.removeChild(E.value);P=qcM(P);r=Array.from(P.childNodes);P=_.C(r);for(u=P.next();!u.done;u=P.next())a.insertBefore(u.value,N)}else throw E=
(u=(N=nW)==null?void 0:N.name)!=null?u:"unknown",Error("Zb`"+E+"`"+typeof P);},"VvDgC")},eW.alwaysTrackContexts||!!kl)};
VlM=function(a,z){var I=_.dO.apply(2,arguments);z!=null||(z={});return!eW.enableLazyTsx||nW!=null&&!Fp()?bLd(a,z,I):new hFx(a,z,I)};
bLd=function(a,z,I){if(a===_.eJ)return I;if(typeof a==="function")return nW&&!Fp()&&(z.renderedFromIdom=!0),wad(a,function(){var P=QAM(a,z,I);if(P)return P;I.length>0&&(z.children=I.length===1?I[0]:I);if(a.componentType===KW){var N;YnI(function(){var u=z;if(a.componentType!==KW)N=!1;else{u||(u={});var E=new f3(u,a),O=ze(B3);try{var f=E.render(u)}finally{ze(O)}f instanceof HTMLElement?(f.__instance=E,E.el=f,E.__type=a,a.TAG_NAME=f.tagName.toLowerCase(),gq.didPatch(E),N=f):N=f}},a.name);
if(N)return N}return f1d(a,z)},z.debugInstance);
var J=SXm(a,z),r;for(r in z)LkE(J,r,z[r]);FKE(J,z);tD(I,J);lVm(J,z,{isReactive:!0});iLG(J,z);return J};
SXm=function(a,z){a=(xZx.has(a.toLowerCase())?0:v2E.has(a.startsWith("svg:")?a.replace("svg:",""):a))?document.createElementNS("http://www.w3.org/2000/svg",a.startsWith("svg:")?a.replace("svg:",""):a):GXM(a,z)||document.createElement(a);a[$ZI]=!0;return a};
XJ1=function(a){if(a){var z;(z=a._disposeRef)==null||z.call(a);var I;(I=a._disposeEffects)==null||I.call(a);a.__instance&&a.__instance instanceof AD&&(z=a.__instance,n2m(z,a),z instanceof f3&&z.disposeEffects());for(z=0;z<a.childNodes.length;z++)XJ1(a.childNodes[z])}};
dZi=function(a){TF$.push(a)===1&&requestAnimationFrame(function(){setTimeout(function(){var z=[].concat(_.ih(TF$));TF$=[];z=_.C(z);for(var I=z.next();!I.done;I=z.next()){I=I.value;try{for(var J=0;J<I.length;J++)XJ1(I[J])}catch(r){J=I=void 0,(J=(I=eW).handleError)==null||J.call.apply(J,[I].concat(_.ih(vg(r))))}}})})};
_.B=function(a,z){return k$3.apply(null,[a,z].concat(_.ih(_.dO.apply(2,arguments))))};
WKm=function(a,z){z=z===void 0?new Map:z;a=_.C(a);for(var I=a.next();!I.done;I=a.next())if(I=I.value,!z.has(I)){for(var J=[],r=I.producers;r!==void 0;r=r.nextProducer)J.push(r.producer);z.set(I,J);WKm(J,z)}return z};
_.g=function(a){var z=a.cond;if(z===void 0)return a.else&&a.else();var I=_.Bg(function(){return!!z()},void 0,"JHVi8"),J=function(){var r=z();
if(!r){var P;(P=eW.handleError)==null||P.call.apply(P,[eW].concat(_.ih(vg(o2x.nonNullableCondIsNull()))))}return r};
return NY(function(){var r=I(),P;Q3(function(){var N=ze(B3);try{P=Ee(r?a.then(J):a.else&&a.else())}finally{ze(N)}},!0);
return P},{debugName:a.debugInstance,
debugFn:a.then,isControlFlowComponent:!0})};
UZE=function(a){return _.g(a)};
_.se=function(a){return a.keyBy==="INDEX"?DZE(a):RFI(a)};
LKM=function(a){a=_.C(a);for(var z=a.next();!z.done;z=a.next()){var I=void 0;(I=z.value)==null||I()}};
RFI=function(a){var z=a.keyBy===void 0||a.keyBy==="REFERENCE",I=z?function(f){return f}:a.keyBy,J=[],r=[],P=[],N=[],u=[],E=[],O=!0;
_.V3(function(){LKM(N)});
return NY(function(){var f=a.each(),A=f.length;if(A===0){if(J.length===0&&!O)return P;LKM(N);J=f;r=[];for(f=0;f<J.length;f++)r.push(I(J[f]));P=[];N=[];u=[];E=[];a.fallback&&(N[0]=l17(function(){P[0]=Ee(a.fallback())}));
O=!1;return P}for(var n=new pJ3,F=J.length-1;F>=0;F--)n.push(r[F],F);F=Array(A);for(var h=Array(A),v=Array(A),d=Array(A),W=Array(z?0:A),l={i$jscomp$445:0};l.i$jscomp$445<A;l={i$jscomp$445:l.i$jscomp$445,item$jscomp$104:void 0,key$jscomp$550:void 0},l.i$jscomp$445++){l.item$jscomp$104=f[l.i$jscomp$445];l.key$jscomp$550=I(l.item$jscomp$104);var q=n.pop(l.key$jscomp$550);q!=null?(v[l.i$jscomp$445]=P[q],h[l.i$jscomp$445]=r[q],F[l.i$jscomp$445]=N[q],d[l.i$jscomp$445]=u[q],z||(W[l.i$jscomp$445]=E[q]),g1(function(m){return function(){d[m.i$jscomp$445](m.i$jscomp$445);
if(!z)W[m.i$jscomp$445](m.item$jscomp$104)}}(l)),delete N[q]):F[l.i$jscomp$445]=l17(function(m){return function(){var M=_.C(_.CW(m.i$jscomp$445,void 0,"Fqk1zd")),y=M.next().value;
M=M.next().value;d[m.i$jscomp$445]=M;h[m.i$jscomp$445]=m.key$jscomp$550;if(z)v[m.i$jscomp$445]=Ee(a.children(m.item$jscomp$104,y));else{var e=_.C(_.CW(m.item$jscomp$104,void 0,"GBj5de"));M=e.next().value;e=e.next().value;W[m.i$jscomp$445]=e;v[m.i$jscomp$445]=Ee(a.children(M,y))}}}(l))}LKM(N);
J=f;r=h;P=v;N=F;u=d;E=W;O=!1;return v},{debugName:a.debugInstance,
debugFn:a.each,isControlFlowComponent:!0})};
DZE=function(a){var z=[],I=[],J=[],r=[],P=!1;_.V3(function(){for(var N=_.C(r),u=N.next();!u.done;u=N.next())u=u.value,u()});
return NY(function(){var N=a.each();P&&N.length>0&&(r.pop()(),z.pop(),P=!1);for(var u=Array(N.length),E={i$jscomp$446:0};E.i$jscomp$446<N.length;E={i$jscomp$446:E.i$jscomp$446},E.i$jscomp$446++)if(E.i$jscomp$446<z.length)z[E.i$jscomp$446]!==N[E.i$jscomp$446]&&(g1(function(f){return function(){return void I[f.i$jscomp$446](N[f.i$jscomp$446])}}(E)),z[E.i$jscomp$446]=N[E.i$jscomp$446]),u[E.i$jscomp$446]=J[E.i$jscomp$446];
else{var O=l17(function(f){return function(){z[f.i$jscomp$446]=N[f.i$jscomp$446];var A=_.C(_.CW(N[f.i$jscomp$446],void 0,"JMMLmd")),n=A.next().value;A=A.next().value;I[f.i$jscomp$446]=A;u[f.i$jscomp$446]=Ee(a.children(n,f.i$jscomp$446))}}(E));
r[E.i$jscomp$446]=O}for(;z.length>N.length;)z.pop(),r.pop()(),I.pop();N.length===0&&!P&&a.fallback&&(E=l17(function(){u[0]=Ee(a.fallback())}),r[0]=E,P=!0);
return J=u},{debugName:a.debugInstance,
isControlFlowComponent:!0})};
l17=function(a){var z=kl;return Q3(function(I){var J=ze(B3);try{I.parent=z,a(I)}finally{ze(J)}},!1)};
_.n3=function(a){return a};
_.K3=function(a){return{isDefault:!0,children:a.children}};
_.Fw=function(a){var z=wJG(a),I=_.Bg(function(){return mZ3(z)},void 0,"F1PF4");
return NY(function(){var J=I(),r;Q3(function(){var P=ze(B3);try{r=Ee(J())}finally{ze(P)}});
return r},{debugName:a.debugInstance,
isControlFlowComponent:!0})};
wJG=function(a){a=a.children;return Array.isArray(a)?a:[a]};
y$x=function(a){var z=a.props;a=a.getChildren()[0];return z.when?{when:z.when,children:a}:{isDefault:!0,children:a}};
mZ3=function(a){var z=function(){return null};
a=_.C(a);for(var I=a.next();!I.done;I=a.next())if(I=I.value,I!=null&&I[qI]&&(I=I.type===_.K3?{isDefault:!0,children:I.children[0]}:{when:I.props.when,children:I.children[0]}),I instanceof u1&&(I=y$x(I)),I.isDefault)z=I.children;else if(I.when())return I.children;return z};
Ml0=function(a){var z=null,I,J={get value(){var P,N;(N=(P=r).validateGetValue)==null||N.call(P);return r.__value},set value(P){var N,u;(u=(N=r).validateSetValue)==null||u.call(N,P);r.__value=P;r.__hasBeenSet=!0}},r=(J.__value=null,J.__hasBeenSet=!1,J.__hasErrored=!1,J.onRender=function(P){if(I&&P!==I){I._disposeRef=void 0;var N;(N=z)==null||N()}I=P;z=a(P)||null},J.onUnmount=function(){var P;
(P=z)==null||P();z=r.value=null},J[_.kXp]=!0,J);
return r};
H3=function(a){return typeof a==="symbol"};
YXI=function(a){var z=sAi();if(z==null)throw _.c$G.PRIMITIVE_INVALID_HOOK_CALL();var I=z.hookCounter++;z.hooks||(z.hooks=[]);var J=z.hooks;J[I]||(J[I]={key:a,host:z});if(a!==J[I].key){if(z.__type){var r;a=(r=z.__type)==null?void 0:r.name}else a=z instanceof f3?paI(z.functionComponent):"<"+z.el.tagName.toLowerCase()+">";throw _.c$G.OUT_OF_ORDER_HOOK_CALL(a);}return J[I]};
qXd=function(a,z){return!a||a.length!==(z==null?void 0:z.length)||a.some(function(I,J){return I!==z[J]})};
eFM=function(a,z){var I=YXI("onChange"),J=sAi();qXd(I.deps,z)&&(I.deps=z,I.pendingEffect=a,J.__syncEffects||(J.__syncEffects=[]),J.__syncEffects.push(I))};
_.b1=function(a,z){var I=I===void 0?{}:I;I=I.appContext;var J=!!eW.legacyTriggerSoyRendererEvents;P3.setUp();try{var r=aF3(a,z,I);J&&(z=I,z==null&&(z=_.nk$(document).getAppContext()),z.get(j_M).JSC$28887_getEventTarget().dispatchEvent(new zg7(IFm,a,JD)));P3.log(a);return r}finally{P3.tearDown()}};
aF3=function(a,z,I){var J=bF(function(){var r=ze(B3);try{return Q3(function(){var P=_.nk$(_.Xm(a)),N;var u=dVd({rootElement:{value:a},appContext:I||(P==null?void 0:(N=P.getOptionalAppContext)==null?void 0:N.call(P)),dispatcher:P});P=_.MC(u);u=aL(!0);fW++;try{tD(z(),a),sf(!1)}catch(E){throw sf(!0),E;}finally{aL(u),_.MC(P)}},!1)}catch(P){throw eW.enableContextBasedComponentStacks&&Hg(P),P;
}finally{ze(r)}});
a[JRi]=!0;return function(){a.textContent="";J();a[JRi]=!1}};
_.hD=function(a){if(L_O(jJ)){var z;(z=eW.handleError)==null||z.call.apply(z,[eW].concat(_.ih(vg(Error("Yb")))))}var I=kl,J=nW;Promise.resolve().then(function(){if(I&&!I.isDisposed){var r=_.MC(I);try{bF(function(){return void a()},J)}catch(P){throw eW.enableContextBasedComponentStacks&&Hg(P),P;
}finally{_.MC(r)}}})};
_.VO=function(a,z){eFM(function(){return ZT(a)},z)};
_.QO=function(a){Fp()?_.hD(function(){ZT(a)}):eFM(function(){return ZT(a)},[])};
PIE=function(a){var z=[].concat(_.ih(a));a.length=0;a=_.C(z);for(z=a.next();!z.done;z=a.next()){z=z.value;rR1(z);var I=z.pendingEffect;z.pendingEffect=null;if(I=I==null?void 0:I())z.pendingCleanup=I}};
rR1=function(a){var z=a.pendingCleanup;a.pendingCleanup=null;z==null||z()};
Ztp=function(a,z){if(Fp())return a();var I=YXI("useMemoInternal");qXd(I.deps,z)&&(I.deps=z,I.value=a());return I.value};
CIp=function(a,z){return Ztp(a,z)};
i1=function(a){return Ztp(a,[])};
xS=function(a){return i1(function(){return{value:a}})};
_.v3=function(a,z){if(!a)return null;a=Object.keys(a);a=_.C(a);for(var I=a.next();!I.done;I=a.next()){I=I.value;var J=I.toLowerCase();if(J.indexOf(z,J.length-z.length)>-1)return I}return null};
_.$S=function(){var a=arguments,z=_.GZ;a.length>1?z[a[0]]=a[1]:a.length===1&&Object.assign(z,a[0])};
_.Xw=function(a,z){return a in _.GZ?_.GZ[a]:z};
_.TZ=function(a,z){return!!_.Xw(a,z)};
Ne7=function(a){var z=_.GZ.EXPERIMENT_FLAGS;return z?z[a]:void 0};
uzG=function(a){tEG.forEach(function(z){return z(a)})};
_.Ue=function(a){return a&&window.yterr?function(){try{return a.apply(this,arguments)}catch(z){_.oL(z)}}:a};
_.oL=function(a){var z=_.DH("yt.logging.errors.log");z?z(a,"ERROR",void 0,void 0,void 0,void 0,void 0):(z=_.Xw("ERRORS",[]),z.push([a,"ERROR",void 0,void 0,void 0,void 0,void 0]),_.$S("ERRORS",z));uzG(a)};
_.RL=function(a,z,I,J,r){var P=_.DH("yt.logging.errors.log");P?P(a,"WARNING",z,I,J,void 0,r):(P=_.Xw("ERRORS",[]),P.push([a,"WARNING",z,I,J,void 0,r]),_.$S("ERRORS",P))};
Bed=function(a,z){z=a.split(z);for(var I={},J=0,r=z.length;J<r;J++){var P=z[J].split("=");if(P.length===1&&P[0]||P.length===2)try{var N=EAE(P[0]||""),u=EAE(P[1]||"");if(N in I){var E=I[N];Array.isArray(E)?_.pG(E,u):I[N]=[E,u]}else I[N]=u}catch(n){var O=n,f=P[0],A=String(Bed);O.args=[{key:f,value:P[1],query:a,method:gAO===A?"unchanged":A}];OtO.hasOwnProperty(f)||_.RL(O)}}return I};
fFO=function(a){var z=[];_.x8.forEach(a,function(I,J){var r=_.L3(J);I=Array.isArray(I)?I:[I];_.l1(I,function(P){P==""?z.push(r):z.push(r+"="+_.L3(P))})});
return z.join("&")};
_.p3=function(a){a.charAt(0)==="?"&&(a=a.substring(1));return Bed(a,"&")};
_.wq=function(a){return a.indexOf("?")!==-1?(a=(a||"").split("#")[0],a=a.split("?",2),_.p3(a.length>1?a[1]:a[0])):{}};
_.ms=function(a,z){return ARI(a,z||{},!0)};
s_7=function(a,z){return ARI(a,z||{},!1)};
ARI=function(a,z,I){var J=a.split("#",2);a=J[0];J=J.length>1?"#"+J[1]:"";var r=a.split("?",2);a=r[0];r=_.p3(r[1]||"");for(var P in z)if(I||!_.x8.containsKey(r,P))r[P]=z[P];return _.yO(a,r)+J};
YS=function(a){if(!z)var z=window.location.href;var I=_.kS(a)[1]||null,J=_.MY(a);return I&&J?c3(a,z):J?_.MY(z)===J&&(Number(_.kS(z)[4]||null)||null)===(Number(_.kS(a)[4]||null)||null):!0};
_.K8m=function(a){a=nAG(a);return a===null?!1:a[0]==="com"&&a[1].match(/^youtube(?:kids|-nocookie)?$/)?!0:!1};
nAG=function(a){a=_.MY(a);return a!==null?a.split(".").reverse():null};
EAE=function(a){return a&&a.match(F8M)?a:qY(a)};
_.eL=function(a){return new HtM(a)};
_.ab=function(){btd||(btd=new hgd);return btd};
Q_i=function(){var a=VE7;return function(){var z=_.ab();z.resolve(_.eL(a))||z.addProvider({provide:a,useClass:a});return z.resolve(a)}};
itG=function(a){var z=_.j6,I,J;_.t(function(r){I=_.ab();return(J=I.resolve(_.eL(z)))?(a(J),r.return(Promise.resolve(J))):r.return(I.resolve(new S_p(z)).then(function(P){a(P);return P}))})};
_.K=function(a){a=z9(a);return typeof a==="string"&&a==="false"?!1:!!a};
_.Ib=function(a,z){a=z9(a);return a===void 0&&z!==void 0?z:Number(a||0)};
x$p=function(a){a=z9(a);return Array.isArray(a)?_.vH(a,function(z){return Number(z||0)}):[Number(a||0)]};
_.rM=function(a){a=z9(a);return a!==void 0?String(a):""};
_.Py=function(a){a=z9(a);return Array.isArray(a)?_.vH(a,function(z){return String(z||"")}):[String(a||"")]};
vAx=function(){return _.Xw("EXPERIMENTS_TOKEN","")};
z9=function(a){return _.Xw("EXPERIMENT_FLAGS",{})[a]};
Gb1=function(){for(var a=[],z=_.Xw("EXPERIMENTS_FORCED_FLAGS",{}),I=_.C(Object.keys(z)),J=I.next();!J.done;J=I.next())J=J.value,a.push({key:J,value:String(z[J])});I=_.Xw("EXPERIMENT_FLAGS",{});J=_.C(Object.keys(I));for(var r=J.next();!r.done;r=J.next())r=r.value,r.startsWith("force_")&&z[r]===void 0&&a.push({key:r,value:String(I[r])});return a};
XAI=function(){if(!$$7)return null;var a=$$7();return"open"in a?a:null};
_.Te3=function(a){switch(_.Zv(a)){case 200:case 201:case 202:case 203:case 204:case 205:case 206:case 304:return!0;default:return!1}};
_.Zv=function(a){return a&&"status"in a?a.status:-1};
_.C1=function(a,z){typeof a==="function"&&(a=_.Ue(a));return window.setTimeout(a,z)};
_.Ne=function(a,z){typeof a==="function"&&(a=_.Ue(a));return window.setInterval(a,z)};
_.tP=function(a){window.clearTimeout(a)};
W8$=function(a){a=_.wq(a);for(var z=_.C(d$d),I=z.next();!I.done;I=z.next())if(a[I.value]!==void 0)return!0;return!1};
D$$=function(a,z,I,J,r,P,N,u,E){I=I===void 0?"GET":I;J=J===void 0?"":J;u=u===void 0?!1:u;var O=XAI();if(!O)return null;var f=function(){(O&&"readyState"in O?O.readyState:0)===4&&z&&_.Ue(z)(O)};
"onloadend"in O?O.addEventListener("loadend",f,!1):O.onreadystatechange=f;_.K("debug_forward_web_query_parameters")&&(a=oAG(a,window.location.search));O.open(I,a,!0);P&&(O.responseType=P);N&&(O.withCredentials=!0);I=I==="POST"&&(window.FormData===void 0||!(J instanceof FormData));if(r=U$M(a,r))for(var A in r)O.setRequestHeader(A,r[A]),"content-type"===A.toLowerCase()&&(I=!1);I&&O.setRequestHeader("Content-Type","application/x-www-form-urlencoded");E&&"onprogress"in O&&(O.onprogress=function(){E(O.responseText)});
if(u&&"setAttributionReporting"in XMLHttpRequest.prototype){a={eventSourceEligible:!0,triggerEligible:!1};try{O.setAttributionReporting(a)}catch(n){_.RL(n)}}O.send(J);return O};
U$M=function(a,z){z=z===void 0?{}:z;var I=YS(a),J=_.Xw("INNERTUBE_CLIENT_NAME"),r=_.K("web_ajax_ignore_global_headers_if_set"),P;for(P in RgM){var N=_.Xw(RgM[P]),u=P==="X-Goog-AuthUser"||P==="X-Goog-PageId";P!=="X-Goog-Visitor-Id"||N||(N=_.Xw("VISITOR_DATA"));var E;if(!(E=!N)){if(!(E=I||(_.MY(a)?!1:!0))){E=a;var O;if(O=_.K("add_auth_headers_to_remarketing_google_dot_com_ping")&&P==="Authorization"&&(J==="TVHTML5"||J==="TVHTML5_UNPLUGGED"||J==="TVHTML5_SIMPLY"))O=nAG(E),O=O===null?!1:O[1]==="google"?
!0:O[2]==="google"?O[0]==="au"&&O[1]==="com"?!0:O[0]==="uk"&&O[1]==="co"?!0:!1:!1;O&&(E=_.ul(E)||"",E=E.split("/"),E="/"+(E.length>1?E[1]:""),O=E==="/pagead");E=O?!0:!1}E=!E}E||r&&z[P]!==void 0||J==="TVHTML5_UNPLUGGED"&&u||(z[P]=N)}"X-Goog-EOM-Visitor-Id"in z&&"X-Goog-Visitor-Id"in z&&delete z["X-Goog-Visitor-Id"];if(I||!_.MY(a))z["X-YouTube-Utc-Offset"]=String(-(new Date).getTimezoneOffset());if(I||!_.MY(a)){try{var f=(new Intl.DateTimeFormat).resolvedOptions().timeZone}catch(A){}f&&(z["X-YouTube-Time-Zone"]=
f)}document.location.hostname.endsWith("youtubeeducation.com")||!I&&_.MY(a)||(z["X-YouTube-Ad-Signals"]=fFO(L87()));return z};
_.lFx=function(a,z){var I=_.MY(a);_.K("debug_handle_relative_url_for_query_forward_killswitch")||!I&&YS(a)&&(I=document.location.hostname);var J=_.ul(a);J=(I=I&&(I.endsWith("youtube.com")||I.endsWith("youtube-nocookie.com")))&&J&&J.startsWith("/api/");if(!I||J)return a;var r=_.p3(z),P={};_.l1(d$d,function(N){r[N]&&(P[N]=r[N])});
return s_7(a,P)};
pAG=function(a,z){z.method="POST";z.postParams||(z.postParams={});return _.Ez(a,z)};
wAO=function(a,z){var I=_.Xw("XSRF_FIELD_NAME"),J;z.headers&&(J=z.headers["Content-Type"]);return!z.excludeXsrf&&(!_.MY(a)||z.withCredentials||_.MY(a)===document.location.hostname)&&z.method==="POST"&&(!J||J==="application/x-www-form-urlencoded")&&!(z.postParams&&z.postParams[I])};
_.Ez=function(a,z){var I=z.format||"JSON";a=m$d(a,z);var J=yRi(a,z),r=!1,P=kbG(a,function(E){if(!r){r=!0;u&&_.tP(u);var O=_.Te3(E),f=null,A=400<=E.status&&E.status<500,n=500<=E.status&&E.status<600;if(O||A||n)f=MEm(a,I,E,z.convertToSafeHtml);O&&(O=cR3(I,E,f));f=f||{};A=z.context||_.IE;O?z.onSuccess&&z.onSuccess.call(A,E,f):z.onError&&z.onError.call(A,E,f);z.onFinish&&z.onFinish.call(A,E,f)}},z.method,J,z.headers,z.responseType,z.withCredentials,!1,z.onProgress);
J=z.timeout||0;if(z.onTimeout&&J>0){var N=z.onTimeout;var u=_.C1(function(){r||(r=!0,P.abort(),_.tP(u),N.call(z.context||_.IE,P))},J)}return P};
m$d=function(a,z){z.includeDomain&&(a=document.location.protocol+"//"+document.location.hostname+(document.location.port?":"+document.location.port:"")+a);var I=_.Xw("XSRF_FIELD_NAME");if(z=z.urlParams)z[I]&&delete z[I],a=_.ms(a,z);return a};
yRi=function(a,z){var I=_.Xw("XSRF_FIELD_NAME"),J=_.Xw("XSRF_TOKEN"),r=z.postBody||"",P=z.postParams;wAO(a,z)&&(P||(P={}),P[I]=J);(_.K("ajax_parse_query_data_only_when_filled")&&P&&Object.keys(P).length>0||P)&&typeof r==="string"&&(r=_.p3(r),_.x8.extend(r,P),r=z.postBodyFormat&&z.postBodyFormat==="JSON"?JSON.stringify(r):_.By(r));P=r||P&&!_.x8.isEmpty(P);!Y_$&&P&&z.method!=="POST"&&(Y_$=!0,_.oL(Error("Ec")));return r};
MEm=function(a,z,I,J){var r=null;switch(z){case "JSON":try{var P=I.responseText}catch(N){throw J=Error("Fc"),J.params=a,_.RL(J),N;}a=I.getResponseHeader("Content-Type")||"";P&&a.indexOf("json")>=0&&(P.substring(0,5)===")]}'\n"&&(P=P.substring(5)),r=JSON.parse(P));break;case "XML":if(a=(a=I.responseXML)?q_7(a):null)r={},_.l1(a.getElementsByTagName("*"),function(N){r[N.tagName]=egi(N)})}J&&aYG(r);
return r};
aYG=function(a){if(_.md(a))for(var z in a)z==="html_content"||Zi(z,"_html")?a[z]=Rt(a[z]):aYG(a[z])};
cR3=function(a,z,I){if(z&&z.status===204)return!0;switch(a){case "JSON":return!!I;case "XML":return Number(I&&I.return_code)===0;case "RAW":return!0;default:return!!I}};
q_7=function(a){return a?(a=("responseXML"in a?a.responseXML:a).getElementsByTagName("root"))&&a.length>0?a[0]:null:null};
egi=function(a){var z="";_.l1(a.childNodes,function(I){z+=I.nodeValue});
return z};
jUM=function(a){if(a.name==="JavaException")return!0;a=a.stack;return a.includes("chrome://")||a.includes("-extension://")||a.includes("webkit-masked-url://")};
zY1=function(a){if(!a.stack)return!0;var z=!a.stack.includes("\n");return z&&a.stack.includes("ErrorType: ")||z&&a.stack.includes("Anonymous function (Unknown script")||a.stack.toLowerCase()==="not available"||a.fileName==="user-script"||a.fileName.startsWith("user-script:")?!0:!1};
_.gM=function(a){_.FC.call(this);this.JSC$10437_key_=1;this.pendingKeys_=[];this.publishDepth_=0;this.subscriptions_=[];this.topics_={};this.async_=!!a};
JWO=function(a,z){var I=a.length,J=0,r=function(){return a.charCodeAt(J++)};
do{var P=IY1(r);if(P===Infinity)break;var N=P>>3;switch(P&7){case 0:P=IY1(r);if(N===z)return P;break;case 1:if(N===z)return;J+=8;break;case 2:P=IY1(r);if(N===z)return a.substr(J,P);J+=P;break;case 5:if(N===z)return;J+=4;break;default:return}}while(J<I)};
IY1=function(a){var z=a(),I=z&127;if(z<128)return I;z=a();I|=(z&127)<<7;if(z<128)return I;z=a();I|=(z&127)<<14;if(z<128)return I;z=a();return z<128?I|(z&127)<<21:Infinity};
P8m=function(a,z,I,J){if(a)if(Array.isArray(a)){var r=J;for(J=0;J<a.length&&!(a[J]&&(r+=rWd(J,a[J],z,I),r>500));J++);J=r}else if(typeof a==="object")for(r in a){if(a[r]){var P=r;var N=a[r],u=z,E=I;P=typeof N!=="string"||P!=="clickTrackingParams"&&P!=="trackingParams"?0:(N=JWO(atob(N.replace(/-/g,"+").replace(/_/g,"/")),2))?rWd(P+".ve",N,u,E):0;J+=P;J+=rWd(r,a[r],z,I);if(J>500)break}}else I[z]=Oz(a),J+=I[z].length;else I[z]=Oz(a),J+=I[z].length;return J};
rWd=function(a,z,I,J){I+="."+a;a=Oz(z);J[I]=a;return I.length+a.length};
Oz=function(a){try{return(typeof a==="string"?a:String(JSON.stringify(a))).substr(0,500)}catch(z){return"unable to serialize "+typeof a+" ("+z.message+")"}};
Z5E=function(a){switch(a){case "DESKTOP":return 1;case "UNKNOWN_PLATFORM":return 0;case "TV":return 2;case "GAME_CONSOLE":return 3;case "MOBILE":return 4;case "TABLET":return 5}};
_.AP=function(a,z,I,J,r){_.f1.set(a,z,{maxAge:I,path:"/",domain:J===void 0?"youtube.com":J,secure:r===void 0?!1:r})};
_.C83=function(a,z,I){_.f1.remove(a,z===void 0?"/":z,I===void 0?"youtube.com":I)};
_.sz=function(){if(_.K("embeds_web_enable_cookie_detection_fix")){if(!_.IE.navigator.cookieEnabled)return!1}else if(!_.f1.isEnabled())return!1;if(!_.f1.isEmpty())return!0;_.K("embeds_web_enable_cookie_detection_fix")?_.f1.set("TESTCOOKIESENABLED","1",{maxAge:60,sameSite:"none",secure:!0}):_.f1.set("TESTCOOKIESENABLED","1",{maxAge:60});if(_.f1.get("TESTCOOKIESENABLED")!=="1")return!1;_.f1.remove("TESTCOOKIESENABLED");return!0};
Ngm=function(){var a=_.IE.navigator;return a?a.connection:void 0};
txx=function(){if(typeof Intl!=="undefined")try{return(new Intl.DateTimeFormat).resolvedOptions().timeZone}catch(a){}};
_.EpI=function(){var a=Ngm();if(a){var z=u43[a.type||"unknown"]||"CONN_UNKNOWN";a=u43[a.effectiveType||"unknown"]||"CONN_UNKNOWN";z==="CONN_CELLULAR_UNKNOWN"&&a!=="CONN_UNKNOWN"&&(z=a);if(z!=="CONN_UNKNOWN")return z;if(a!=="CONN_UNKNOWN")return a}};
gpm=function(){var a=Ngm();if(a!=null&&a.effectiveType)return Bg$.hasOwnProperty(a.effectiveType)?Bg$[a.effectiveType]:"EFFECTIVE_CONNECTION_TYPE_UNKNOWN"};
_.K1=function(){try{return _.n1(),!0}catch(a){return!1}};
_.n1=function(a){if(_.Xw("DATASYNC_ID")!==void 0)return _.Xw("DATASYNC_ID");throw new _.Fn("Datasync ID not set",a===void 0?"unknown":a);};
_.Hy=function(a){this.mechanism=a};
bl=function(a){this.mechanism=a};
hP=function(a){this.storage_=a;this.cachedIsStorageAvailable_=null};
O5G=function(){var a=null;try{a=_.IE.localStorage||null}catch(z){}hP.call(this,a)};
fY0=function(){var a=null;try{a=_.IE.sessionStorage||null}catch(z){}hP.call(this,a)};
V2=function(a,z){this.mechanism_=a;this.JSC$10539_prefix_=z+"::"};
_.AW0=function(a){var z=new O5G;return z.isAvailable()?a?new V2(z,a):z:null};
_.sUd=function(a){var z=new fY0;return z.isAvailable()?a?new V2(z,a):z:null};
KHd=function(){var a;return(a=np7())==null?void 0:a.get("LAST_RESULT_ENTRY_KEY",!0)};
_.il=function(a){FHm||(_.Q2?_.Q2.logError(a):(_.S6.push({type:"ERROR",payload:a}),_.S6.length>10&&_.S6.shift()))};
xj=function(a,z){FHm||(_.Q2?_.Q2.logEvent(a,z):(_.S6.push({type:"EVENT",eventType:a,payload:z}),_.S6.length>10&&_.S6.shift()))};
G9=function(a){if(a.indexOf(":")>=0)throw Error("Mc");};
Xn=function(a){return a.substr(0,a.indexOf(":"))||a};
hYp=function(){return(H5G||b5G)&&T9("applewebkit")&&!T9("version")&&(!T9("safari")||T9("gsa/"))};
T9=function(a){var z=_.fG();return z?z.toLowerCase().indexOf(a)>=0:!1};
Srd=function(a,z,I,J){z=Xn(z);var r=a instanceof Error?a:Error("Nc`"+a);if(r instanceof dM)return r;a={objectStoreNames:I,dbName:z,dbVersion:J};if(r.name==="QuotaExceededError")return new dM("QUOTA_EXCEEDED",a);if(_.Wy&&r.name==="UnknownError")return new dM("QUOTA_MAYBE_EXCEEDED",a);if(r instanceof Vx3)return new dM("MISSING_INDEX",Object.assign({},a,{objectStore:r.objectStore,index:r.index}));if(r.name==="InvalidStateError"&&QUp.some(function(P){return r.message.includes(P)}))return new dM("EXECUTE_TRANSACTION_ON_CLOSED_DB",
a);
if(r.name==="AbortError")return new dM("UNKNOWN_ABORT",a,r.message);r.args=[Object.assign({},a,{name:"IdbError",originalName:r.name})];r.level="WARNING";return r};
ob=function(a,z,I){var J=KHd();return new dM("IDB_NOT_SUPPORTED",{context:{caller:a,publicName:z,version:I,hasSucceededOnce:J==null?void 0:J.hasSucceededOnce}})};
i50=function(a){if(!a)throw Error();throw a;};
xod=function(a){return a};
vpx=function(a,z,I){var J=function(){try{a.removeEventListener("success",r),a.removeEventListener("error",P)}catch(N){}},r=function(){z(a.result);
J()},P=function(){I(a.error);
J()};
a.addEventListener("success",r);a.addEventListener("error",P)};
GgI=function(a){return new Promise(function(z,I){vpx(a,z,I)})};
Rb=function(a){return new Uz(new Dv(function(z,I){vpx(a,z,I)}))};
$oG=function(a,z){return new Uz(new Dv(function(I,J){var r=function(){var P=a?z(a):null;P?P.then(function(N){a=N;r()},J):I()};
r()}))};
Xd7=function(a,z,I){return new Promise(function(J,r){var P=z!==void 0?self.indexedDB.open(a,z):self.indexedDB.open(a);var N=I.blocked,u=I.blocking,E=I.terminated,O=I.upgrade,f=I.closed,A,n=function(){A||(A=new L1(P.result,{closed:f}));return A};
P.addEventListener("upgradeneeded",function(F){try{if(F.newVersion===null)throw Error("Sc");if(P.transaction===null)throw Error("Tc");F.dataLoss&&F.dataLoss!=="none"&&xj("IDB_DATA_CORRUPTED",{reason:F.dataLossMessage||"unknown reason",dbName:Xn(a)});var h=n(),v=new ll(P.transaction);O&&O(h,function(d){return F.oldVersion<d&&F.newVersion>=d},v);
v.done.catch(function(d){r(d)})}catch(d){r(d)}});
P.addEventListener("success",function(){var F=P.result;u&&F.addEventListener("versionchange",function(){u(n())});
F.addEventListener("close",function(){xj("IDB_UNEXPECTEDLY_CLOSED",{dbName:Xn(a),dbVersion:F.version});E&&E()});
J(n())});
P.addEventListener("error",function(){r(P.error)});
N&&P.addEventListener("blocked",function(){N()})})};
Tg1=function(a,z,I){I=I===void 0?{}:I;return Xd7(a,z,I)};
_.wM=function(a,z){z=z===void 0?{}:z;var I,J,r,P;return _.t(function(N){if(N.nextAddress==1)return _.BP(N,2),I=self.indexedDB.deleteDatabase(a),J=z,(r=J.blocked)&&I.addEventListener("blocked",function(){r()}),N.yield(GgI(I),4);
if(N.nextAddress!=2)return _.p1(N,0);P=_.sk(N);throw Srd(P,a,"",-1);})};
WHd=function(a,z){var I;return _.t(function(J){if(J.nextAddress==1)return J.yield(_.m5(do3,z),2);I=J.yieldResult;return J.return(_.y2(I,["databases"],{enableRetries:!0,mode:"readwrite"},function(r){var P=r.objectStore("databases");return P.get(a.actualName).then(function(N){if(N?a.actualName!==N.actualName||a.publicName!==N.publicName||a.userIdentifier!==N.userIdentifier:1)return P.put(a).then(function(){})})}))})};
_.kj=function(a,z){var I;return _.t(function(J){if(J.nextAddress==1)return a?J.yield(_.m5(do3,z),2):J.return();I=J.yieldResult;return J.return(I.delete("databases",a))})};
_.opM=function(a,z){var I,J;return _.t(function(r){return r.nextAddress==1?(I=[],r.yield(_.m5(do3,z),2)):r.nextAddress!=3?(J=r.yieldResult,r.yield(_.y2(J,["databases"],{enableRetries:!0,mode:"readonly"},function(P){I.length=0;return Me(P.objectStore("databases"),{},function(N){a(N.getValue())&&I.push(N.getValue());return N.continue()})}),3)):r.return(I)})};
UoO=function(a,z){return _.opM(function(I){return I.publicName===a&&I.userIdentifier!==void 0},z)};
LH$=function(){var a,z,I,J;return _.t(function(r){switch(r.nextAddress){case 1:a=KHd();if((z=a)==null?0:z.hasSucceededOnce)return r.return(!0);var P;if(P=Do7)P=/WebKit\/([0-9]+)/.exec(_.fG()),P=!!(P&&parseInt(P[1],10)>=600);P&&(P=/WebKit\/([0-9]+)/.exec(_.fG()),P=!(P&&parseInt(P[1],10)>=602));if(P||cy)return r.return(!1);try{if(I=self,!(I.indexedDB&&I.IDBIndex&&I.IDBKeyRange&&I.IDBObjectStore))return r.return(!1)}catch(N){return r.return(!1)}if(!("IDBTransaction"in self&&"objectStoreNames"in IDBTransaction.prototype))return r.return(!1);
_.BP(r,2);J={actualName:"yt-idb-test-do-not-use",publicName:"yt-idb-test-do-not-use",userIdentifier:void 0};return r.yield(WHd(J,RYm),4);case 4:return r.yield(_.kj("yt-idb-test-do-not-use",RYm),5);case 5:return r.return(!0);case 2:return _.sk(r),r.return(!1)}})};
pdm=function(){if(lY0!==void 0)return lY0;FHm=!0;return lY0=LH$().then(function(a){FHm=!1;var z;if((z=np7())!=null&&z.expiringStorage_){var I;z={hasSucceededOnce:((I=KHd())==null?void 0:I.hasSucceededOnce)||a};var J;(J=np7())==null||J.set("LAST_RESULT_ENTRY_KEY",z,2592E3,!0)}return a})};
Yj=function(){return _.DH("ytglobal.idbToken_")||void 0};
_.e6=function(){var a=Yj();return a?Promise.resolve(a):pdm().then(function(z){(z=z?RYm:void 0)&&_.qe("ytglobal.idbToken_",z);return z})};
wdi=function(a){if(!_.K1())throw a=new dM("AUTH_INVALID",{dbName:a}),_.il(a),a;var z=_.n1();return{actualName:a+":"+z,publicName:a,userIdentifier:z}};
moE=function(a,z,I,J){var r,P,N,u,E,O;return _.t(function(f){switch(f.nextAddress){case 1:return P=(r=Error().stack)!=null?r:"",f.yield(_.e6(),2);case 2:N=f.yieldResult;if(!N)throw u=ob("openDbImpl",a,z),_.K("ytidb_async_stack_killswitch")||(u.stack=u.stack+"\n"+P.substring(P.indexOf("\n")+1)),_.il(u),u;G9(a);E=I?{actualName:a,publicName:a,userIdentifier:void 0}:wdi(a);_.BP(f,3);return f.yield(WHd(E,N),5);case 5:return f.yield(Tg1(E.actualName,z,J),6);case 6:return f.return(f.yieldResult);case 3:return O=
_.sk(f),_.BP(f,7),f.yield(_.kj(E.actualName,N),9);case 9:_.p1(f,8);break;case 7:_.sk(f);case 8:throw O;}})};
yWI=function(a,z,I){I=I===void 0?{}:I;return moE(a,z,!1,I)};
kg3=function(a,z,I){I=I===void 0?{}:I;return moE(a,z,!0,I)};
Mxd=function(a,z){z=z===void 0?{}:z;var I,J;return _.t(function(r){if(r.nextAddress==1)return r.yield(_.e6(),2);if(r.nextAddress!=3){I=r.yieldResult;if(!I)return r.return();G9(a);J=wdi(a);return r.yield(_.wM(J.actualName,z),3)}return r.yield(_.kj(J.actualName,I),0)})};
cWx=function(a,z,I){a=a.map(function(J){return _.t(function(r){return r.nextAddress==1?r.yield(_.wM(J.actualName,z),2):r.yield(_.kj(J.actualName,I),0)})});
return Promise.all(a).then(function(){})};
Yr$=function(a){var z=z===void 0?{}:z;var I,J;return _.t(function(r){if(r.nextAddress==1)return r.yield(_.e6(),2);if(r.nextAddress!=3){I=r.yieldResult;if(!I)return r.return();G9(a);return r.yield(UoO(a,I),3)}J=r.yieldResult;return r.yield(cWx(J,z,I),0)})};
qrm=function(a,z){z=z===void 0?{}:z;var I;return _.t(function(J){if(J.nextAddress==1)return J.yield(_.e6(),2);if(J.nextAddress!=3){I=J.yieldResult;if(!I)return J.return();G9(a);return J.yield(_.wM(a,z),3)}return J.yield(_.kj(a,I),0)})};
a3=function(a,z){return eYO(a,z)};
jXE=function(a){return _.m5(aaG(),a)};
zVO=function(a,z,I,J){var r,P,N;return _.t(function(u){switch(u.nextAddress){case 1:return r={config:a,hashData:z,timestamp:J!==void 0?J:(0,_.jp)()},u.yield(jXE(I),2);case 2:return P=u.yieldResult,u.yield(P.clear("hotConfigStore"),3);case 3:return u.yield(P.put("hotConfigStore",r),4);case 4:return N=u.yieldResult,u.return(N)}})};
Ia7=function(a,z,I,J,r){var P,N,u;return _.t(function(E){switch(E.nextAddress){case 1:return P={config:a,hashData:z,configData:I,timestamp:r!==void 0?r:(0,_.jp)()},E.yield(jXE(J),2);case 2:return N=E.yieldResult,E.yield(N.clear("coldConfigStore"),3);case 3:return E.yield(N.put("coldConfigStore",P),4);case 4:return u=E.yieldResult,E.return(u)}})};
Jvp=function(a){var z,I;return _.t(function(J){return J.nextAddress==1?J.yield(jXE(a),2):J.nextAddress!=3?(z=J.yieldResult,I=void 0,J.yield(_.y2(z,["coldConfigStore"],{mode:"readwrite",enableRetries:!0},function(r){return _.zW(r.objectStore("coldConfigStore").index("coldTimestampIndex"),{direction:"prev"},function(P){I=P.getValue()})}),3)):J.return(I)})};
rv0=function(a){var z,I;return _.t(function(J){return J.nextAddress==1?J.yield(jXE(a),2):J.nextAddress!=3?(z=J.yieldResult,I=void 0,J.yield(_.y2(z,["hotConfigStore"],{mode:"readwrite",enableRetries:!0},function(r){return _.zW(r.objectStore("hotConfigStore").index("hotTimestampIndex"),{direction:"prev"},function(P){I=P.getValue()})}),3)):J.return(I)})};
PkE=function(){return _.t(function(a){return a.yield(Yr$("ytGcfConfig"),0)})};
ZH3=function(){return"INNERTUBE_API_KEY"in _.GZ&&"INNERTUBE_API_VERSION"in _.GZ};
_.I3=function(){return{innertubeApiKey:_.Xw("INNERTUBE_API_KEY"),innertubeApiVersion:_.Xw("INNERTUBE_API_VERSION"),innertubeContextClientConfigInfo:_.Xw("INNERTUBE_CONTEXT_CLIENT_CONFIG_INFO"),innertubeContextClientName:_.Xw("INNERTUBE_CONTEXT_CLIENT_NAME","WEB"),innertubeContextClientNameFieldNumber:_.Xw("INNERTUBE_CONTEXT_CLIENT_NAME",1),innertubeContextClientVersion:_.Xw("INNERTUBE_CONTEXT_CLIENT_VERSION"),innertubeContextHostLanguage:_.Xw("INNERTUBE_CONTEXT_HL"),innertubeContextGeoLocation:_.Xw("INNERTUBE_CONTEXT_GL"),
innertubeHostOverride:_.Xw("INNERTUBE_HOST_OVERRIDE")||"",innertubeUseThirdPartyAuth:_.TZ("INNERTUBE_USE_THIRD_PARTY_AUTH",!1),innertubeOmitApiKeyWhenAuthHeaderIsPresent:_.TZ("INNERTUBE_OMIT_API_KEY_WHEN_AUTH_HEADER_IS_PRESENT",!1),appInstallData:_.Xw("SERIALIZED_CLIENT_CONFIG_DATA")}};
_.ghp=function(a){var z={client:{hl:a.innertubeContextHostLanguage,gl:a.innertubeContextGeoLocation,clientName:a.innertubeContextClientName,clientVersion:a.innertubeContextClientVersion,configInfo:a.innertubeContextClientConfigInfo}};navigator.userAgent&&(z.client.userAgent=String(navigator.userAgent));var I=_.IE.devicePixelRatio;I&&I!=1&&(z.client.screenDensityFloat=String(I));I=vAx();I!==""&&(z.client.experimentsToken=I);I=Gb1();I.length>0&&(z.request={internalExperimentFlags:I});CkG(a,void 0,z);
NY7(void 0,z);ttm(void 0,z);ub1(a,void 0,z);EhI(void 0,z);_.K("start_client_gcf")&&BYO(void 0,z);_.Xw("DELEGATED_SESSION_ID")&&!_.K("pageid_as_header_web")&&(z.user={onBehalfOfUser:_.Xw("DELEGATED_SESSION_ID")});!_.K("fill_delegate_context_in_gel_killswitch")&&(a=_.Xw("INNERTUBE_CONTEXT_SERIALIZED_DELEGATION_CONTEXT"))&&(z.user=Object.assign({},z.user,{serializedDelegationContext:a}));a=_.Xw("INNERTUBE_CONTEXT");var J;if(_.K("enable_persistent_device_token")&&(a==null?0:(J=a.client)==null?0:J.rolloutToken)){var r;
z.client.rolloutToken=a==null?void 0:(r=a.client)==null?void 0:r.rolloutToken}J=Object;r=J.assign;a=z.client;I={};for(var P=_.C(Object.entries(_.p3(_.Xw("DEVICE","")))),N=P.next();!N.done;N=P.next()){var u=_.C(N.value);N=u.next().value;u=u.next().value;N==="cbrand"?I.deviceMake=u:N==="cmodel"?I.deviceModel=u:N==="cbr"?I.browserName=u:N==="cbrver"?I.browserVersion=u:N==="cos"?I.osName=u:N==="cosver"?I.osVersion=u:N==="cplatform"&&(I.platform=u)}z.client=r.call(J,a,I);return z};
CkG=function(a,z,I){a=a.innertubeContextClientName;if(a==="WEB"||a==="MWEB"||a===1||a===2)if(z){I=_.JC(z,OHm,96)||new OHm;var J=fa1();J=Object.keys(Avx).indexOf(J);J=J===-1?null:J;J!==null&&_.ro(I,3,J);_.gO(z,96,I)}else I&&(I.client.mainAppWebInfo=(J=I.client.mainAppWebInfo)!=null?J:{},I.client.mainAppWebInfo.webDisplayMode=fa1())};
NY7=function(a,z){var I=_.DH("yt.embedded_player.embed_url");I&&(a?(z=_.JC(a,sXm,7)||new sXm,_.KB(z,4,I),_.gO(a,7,z)):z&&(z.thirdParty={embedUrl:I}))};
ttm=function(a,z){var I;if(_.K("web_log_memory_total_kbytes")&&((I=_.IE.navigator)==null?0:I.deviceMemory)){var J;I=(J=_.IE.navigator)==null?void 0:J.deviceMemory;a?_.PL(a,95,rE(I*1E6)):z&&(z.client.memoryTotalKbytes=""+I*1E6)}};
ub1=function(a,z,I){if(a.appInstallData)if(z){var J;I=(J=_.JC(z,ZZ,62))!=null?J:new ZZ;_.KB(I,6,a.appInstallData);_.gO(z,62,I)}else I&&(I.client.configInfo=I.client.configInfo||{},I.client.configInfo.appInstallData=a.appInstallData)};
EhI=function(a,z){var I=_.EpI();I&&(a?_.ro(a,61,nhM[I]):z&&(z.client.connectionType=I));_.K("web_log_effective_connection_type")&&(I=gpm())&&(a?_.ro(a,94,K1M[I]):z&&(z.client.effectiveConnectionType=I))};
_.bH1=function(a,z,I){I=I===void 0?{}:I;var J={};_.Xw("EOM_VISITOR_DATA")?J={"X-Goog-EOM-Visitor-Id":_.Xw("EOM_VISITOR_DATA")}:J={"X-Goog-Visitor-Id":I.visitorData||_.Xw("VISITOR_DATA","")};if(z&&z.includes("www.youtube-nocookie.com"))return J;z=I.authorization||_.Xw("AUTHORIZATION");z||(a?z="Bearer "+_.DH("gapi.auth.getToken")().access_token:(F1m.instance||(F1m.instance=new F1m),a=HH3(),_.K("pageid_as_header_web")||delete a["X-Goog-PageId"],J=Object.assign({},J,a)));z&&(J.Authorization=z);return J};
BYO=function(a,z){var I=hVE();if(I){var J=I.coldConfigData,r=I.coldHashData;I=I.hotHashData;if(a){var P;z=(P=_.JC(a,ZZ,62))!=null?P:new ZZ;J=_.KB(z,1,J);_.KB(J,3,r).setHotHashData(I);_.gO(a,62,z)}else z&&(z.client.configInfo=z.client.configInfo||{},J&&(z.client.configInfo.coldConfigData=J),r&&(z.client.configInfo.coldHashData=r),I&&(z.client.configInfo.hotHashData=I))}};
CI=function(a){for(var z=a.length;--z>=0;)a[z]=0};
VtO=function(a,z,I,J,r){this.static_tree=a;this.extra_bits=z;this.extra_base=I;this.elems=J;this.max_length=r;this.has_stree=a&&a.length};
QXd=function(a,z){this.dyn_tree=a;this.max_code=0;this.stat_desc=z};
NV=function(a,z){a.pending_buf[a.pending++]=z&255;a.pending_buf[a.pending++]=z>>>8&255};
tC=function(a,z,I){a.bi_valid>16-I?(a.bi_buf|=z<<a.bi_valid&65535,NV(a,a.bi_buf),a.bi_buf=z>>16-a.bi_valid,a.bi_valid+=I-16):(a.bi_buf|=z<<a.bi_valid&65535,a.bi_valid+=I)};
uP=function(a,z,I){tC(a,I[z*2],I[z*2+1])};
SMd=function(a,z){var I=0;do I|=a&1,a>>>=1,I<<=1;while(--z>0);return I>>>1};
iH1=function(a,z,I){var J=Array(16),r=0,P;for(P=1;P<=15;P++)J[P]=r=r+I[P-1]<<1;for(I=0;I<=z;I++)r=a[I*2+1],r!==0&&(a[I*2]=SMd(J[r]++,r))};
x1M=function(a){var z;for(z=0;z<286;z++)a.dyn_ltree[z*2]=0;for(z=0;z<30;z++)a.dyn_dtree[z*2]=0;for(z=0;z<19;z++)a.bl_tree[z*2]=0;a.dyn_ltree[512]=1;a.opt_len=a.static_len=0;a.last_lit=a.matches=0};
vh3=function(a){a.bi_valid>8?NV(a,a.bi_buf):a.bi_valid>0&&(a.pending_buf[a.pending++]=a.bi_buf);a.bi_buf=0;a.bi_valid=0};
Gri=function(a,z,I){vh3(a);NV(a,I);NV(a,~I);En.arraySet(a.pending_buf,a.window,z,I,a.pending);a.pending+=I};
$1E=function(a,z,I,J){var r=z*2,P=I*2;return a[r]<a[P]||a[r]===a[P]&&J[z]<=J[I]};
Xhd=function(a,z,I){for(var J=a.heap[I],r=I<<1;r<=a.heap_len;){r<a.heap_len&&$1E(z,a.heap[r+1],a.heap[r],a.depth)&&r++;if($1E(z,J,a.heap[r],a.depth))break;a.heap[I]=a.heap[r];I=r;r<<=1}a.heap[I]=J};
U1O=function(a,z,I){var J=0;if(a.last_lit!==0){do{var r=a.pending_buf[a.d_buf+J*2]<<8|a.pending_buf[a.d_buf+J*2+1];var P=a.pending_buf[a.l_buf+J];J++;if(r===0)uP(a,P,z);else{var N=BL[P];uP(a,N+256+1,z);var u=TY1[N];u!==0&&(P-=d17[N],tC(a,P,u));r--;N=r<256?go[r]:go[256+(r>>>7)];uP(a,N,I);u=W11[N];u!==0&&(r-=oh3[N],tC(a,r,u))}}while(J<a.last_lit)}uP(a,256,z)};
D1G=function(a,z){var I=z.dyn_tree,J=z.stat_desc.static_tree,r=z.stat_desc.has_stree,P=z.stat_desc.elems,N,u=-1;a.heap_len=0;a.heap_max=573;for(N=0;N<P;N++)I[N*2]!==0?(a.heap[++a.heap_len]=u=N,a.depth[N]=0):I[N*2+1]=0;for(;a.heap_len<2;){var E=a.heap[++a.heap_len]=u<2?++u:0;I[E*2]=1;a.depth[E]=0;a.opt_len--;r&&(a.static_len-=J[E*2+1])}z.max_code=u;for(N=a.heap_len>>1;N>=1;N--)Xhd(a,I,N);E=P;do N=a.heap[1],a.heap[1]=a.heap[a.heap_len--],Xhd(a,I,1),J=a.heap[1],a.heap[--a.heap_max]=N,a.heap[--a.heap_max]=
J,I[E*2]=I[N*2]+I[J*2],a.depth[E]=(a.depth[N]>=a.depth[J]?a.depth[N]:a.depth[J])+1,I[N*2+1]=I[J*2+1]=E,a.heap[1]=E++,Xhd(a,I,1);while(a.heap_len>=2);a.heap[--a.heap_max]=a.heap[1];N=z.dyn_tree;E=z.max_code;J=z.stat_desc.static_tree;r=z.stat_desc.has_stree;P=z.stat_desc.extra_bits;var O=z.stat_desc.extra_base,f=z.stat_desc.max_length,A,n=0;for(A=0;A<=15;A++)a.bl_count[A]=0;N[a.heap[a.heap_max]*2+1]=0;for(z=a.heap_max+1;z<573;z++){var F=a.heap[z];A=N[N[F*2+1]*2+1]+1;A>f&&(A=f,n++);N[F*2+1]=A;if(!(F>
E)){a.bl_count[A]++;var h=0;F>=O&&(h=P[F-O]);var v=N[F*2];a.opt_len+=v*(A+h);r&&(a.static_len+=v*(J[F*2+1]+h))}}if(n!==0){do{for(A=f-1;a.bl_count[A]===0;)A--;a.bl_count[A]--;a.bl_count[A+1]+=2;a.bl_count[f]--;n-=2}while(n>0);for(A=f;A!==0;A--)for(F=a.bl_count[A];F!==0;)J=a.heap[--z],J>E||(N[J*2+1]!==A&&(a.opt_len+=(A-N[J*2+1])*N[J*2],N[J*2+1]=A),F--)}iH1(I,u,a.bl_count)};
RVd=function(a,z,I){var J,r=-1,P=z[1],N=0,u=7,E=4;P===0&&(u=138,E=3);z[(I+1)*2+1]=65535;for(J=0;J<=I;J++){var O=P;P=z[(J+1)*2+1];++N<u&&O===P||(N<E?a.bl_tree[O*2]+=N:O!==0?(O!==r&&a.bl_tree[O*2]++,a.bl_tree[32]++):N<=10?a.bl_tree[34]++:a.bl_tree[36]++,N=0,r=O,P===0?(u=138,E=3):O===P?(u=6,E=3):(u=7,E=4))}};
L13=function(a,z,I){var J,r=-1,P=z[1],N=0,u=7,E=4;P===0&&(u=138,E=3);for(J=0;J<=I;J++){var O=P;P=z[(J+1)*2+1];if(!(++N<u&&O===P)){if(N<E){do uP(a,O,a.bl_tree);while(--N!==0)}else O!==0?(O!==r&&(uP(a,O,a.bl_tree),N--),uP(a,16,a.bl_tree),tC(a,N-3,2)):N<=10?(uP(a,17,a.bl_tree),tC(a,N-3,3)):(uP(a,18,a.bl_tree),tC(a,N-11,7));N=0;r=O;P===0?(u=138,E=3):O===P?(u=6,E=3):(u=7,E=4)}}};
lad=function(a){var z=4093624447,I;for(I=0;I<=31;I++,z>>>=1)if(z&1&&a.dyn_ltree[I*2]!==0)return 0;if(a.dyn_ltree[18]!==0||a.dyn_ltree[20]!==0||a.dyn_ltree[26]!==0)return 1;for(I=32;I<256;I++)if(a.dyn_ltree[I*2]!==0)return 1;return 0};
On=function(a,z,I){a.pending_buf[a.d_buf+a.last_lit*2]=z>>>8&255;a.pending_buf[a.d_buf+a.last_lit*2+1]=z&255;a.pending_buf[a.l_buf+a.last_lit]=I&255;a.last_lit++;z===0?a.dyn_ltree[I*2]++:(a.matches++,z--,a.dyn_ltree[(BL[I]+256+1)*2]++,a.dyn_dtree[(z<256?go[z]:go[256+(z>>>7)])*2]++);return a.last_lit===a.lit_bufsize-1};
AC=function(a,z){a.msg=fI[z];return z};
sn=function(a){for(var z=a.length;--z>=0;)a[z]=0};
nI=function(a){var z=a.state,I=z.pending;I>a.avail_out&&(I=a.avail_out);I!==0&&(En.arraySet(a.output,z.pending_buf,z.pending_out,I,a.next_out),a.next_out+=I,z.pending_out+=I,a.total_out+=I,a.avail_out-=I,z.pending-=I,z.pending===0&&(z.pending_out=0))};
bP=function(a,z){var I=a.block_start>=0?a.block_start:-1,J=a.strstart-a.block_start,r=0;if(a.level>0){a.strm.data_type===2&&(a.strm.data_type=lad(a));D1G(a,a.l_desc);D1G(a,a.d_desc);RVd(a,a.dyn_ltree,a.l_desc.max_code);RVd(a,a.dyn_dtree,a.d_desc.max_code);D1G(a,a.bl_desc);for(r=18;r>=3&&a.bl_tree[phG[r]*2+1]===0;r--);a.opt_len+=3*(r+1)+5+5+4;var P=a.opt_len+3+7>>>3;var N=a.static_len+3+7>>>3;N<=P&&(P=N)}else P=N=J+5;if(J+4<=P&&I!==-1)tC(a,z?1:0,3),Gri(a,I,J);else if(a.strategy===4||N===P)tC(a,2+(z?
1:0),3),U1O(a,KI,Fy);else{tC(a,4+(z?1:0),3);I=a.l_desc.max_code+1;J=a.d_desc.max_code+1;r+=1;tC(a,I-257,5);tC(a,J-1,5);tC(a,r-4,4);for(P=0;P<r;P++)tC(a,a.bl_tree[phG[P]*2+1],3);L13(a,a.dyn_ltree,I-1);L13(a,a.dyn_dtree,J-1);U1O(a,a.dyn_ltree,a.dyn_dtree)}x1M(a);z&&vh3(a);a.block_start=a.strstart;nI(a.strm)};
hC=function(a,z){a.pending_buf[a.pending++]=z};
VE=function(a,z){a.pending_buf[a.pending++]=z>>>8&255;a.pending_buf[a.pending++]=z&255};
whM=function(a,z){var I=a.max_chain_length,J=a.strstart,r=a.prev_length,P=a.nice_match,N=a.strstart>a.w_size-262?a.strstart-(a.w_size-262):0,u=a.window,E=a.w_mask,O=a.prev,f=a.strstart+258,A=u[J+r-1],n=u[J+r];a.prev_length>=a.good_match&&(I>>=2);P>a.lookahead&&(P=a.lookahead);do{var F=z;if(u[F+r]===n&&u[F+r-1]===A&&u[F]===u[J]&&u[++F]===u[J+1]){J+=2;for(F++;u[++J]===u[++F]&&u[++J]===u[++F]&&u[++J]===u[++F]&&u[++J]===u[++F]&&u[++J]===u[++F]&&u[++J]===u[++F]&&u[++J]===u[++F]&&u[++J]===u[++F]&&J<f;);
F=258-(f-J);J=f-258;if(F>r){a.match_start=z;r=F;if(F>=P)break;A=u[J+r-1];n=u[J+r]}}}while((z=O[z&E])>N&&--I!==0);return r<=a.lookahead?r:a.lookahead};
Sp=function(a){var z=a.w_size,I;do{var J=a.window_size-a.lookahead-a.strstart;if(a.strstart>=z+(z-262)){En.arraySet(a.window,a.window,z,z,0);a.match_start-=z;a.strstart-=z;a.block_start-=z;var r=I=a.hash_size;do{var P=a.head[--r];a.head[r]=P>=z?P-z:0}while(--I);r=I=z;do P=a.prev[--r],a.prev[r]=P>=z?P-z:0;while(--I);J+=z}if(a.strm.avail_in===0)break;r=a.strm;I=a.window;P=a.strstart+a.lookahead;var N=r.avail_in;N>J&&(N=J);N===0?I=0:(r.avail_in-=N,En.arraySet(I,r.input,r.next_in,N,P),r.state.wrap===
1?r.adler=m1M(r.adler,I,N,P):r.state.wrap===2&&(r.adler=QE(r.adler,I,N,P)),r.next_in+=N,r.total_in+=N,I=N);a.lookahead+=I;if(a.lookahead+a.insert>=3)for(J=a.strstart-a.insert,a.ins_h=a.window[J],a.ins_h=(a.ins_h<<a.hash_shift^a.window[J+1])&a.hash_mask;a.insert&&!(a.ins_h=(a.ins_h<<a.hash_shift^a.window[J+3-1])&a.hash_mask,a.prev[J&a.w_mask]=a.head[a.ins_h],a.head[a.ins_h]=J,J++,a.insert--,a.lookahead+a.insert<3););}while(a.lookahead<262&&a.strm.avail_in!==0)};
yvd=function(a,z){for(var I;;){if(a.lookahead<262){Sp(a);if(a.lookahead<262&&z===0)return 1;if(a.lookahead===0)break}I=0;a.lookahead>=3&&(a.ins_h=(a.ins_h<<a.hash_shift^a.window[a.strstart+3-1])&a.hash_mask,I=a.prev[a.strstart&a.w_mask]=a.head[a.ins_h],a.head[a.ins_h]=a.strstart);I!==0&&a.strstart-I<=a.w_size-262&&(a.match_length=whM(a,I));if(a.match_length>=3)if(I=On(a,a.strstart-a.match_start,a.match_length-3),a.lookahead-=a.match_length,a.match_length<=a.max_lazy_match&&a.lookahead>=3){a.match_length--;
do a.strstart++,a.ins_h=(a.ins_h<<a.hash_shift^a.window[a.strstart+3-1])&a.hash_mask,a.prev[a.strstart&a.w_mask]=a.head[a.ins_h],a.head[a.ins_h]=a.strstart;while(--a.match_length!==0);a.strstart++}else a.strstart+=a.match_length,a.match_length=0,a.ins_h=a.window[a.strstart],a.ins_h=(a.ins_h<<a.hash_shift^a.window[a.strstart+1])&a.hash_mask;else I=On(a,0,a.window[a.strstart]),a.lookahead--,a.strstart++;if(I&&(bP(a,!1),a.strm.avail_out===0))return 1}a.insert=a.strstart<2?a.strstart:2;return z===4?(bP(a,
!0),a.strm.avail_out===0?3:4):a.last_lit&&(bP(a,!1),a.strm.avail_out===0)?1:2};
iP=function(a,z){for(var I,J;;){if(a.lookahead<262){Sp(a);if(a.lookahead<262&&z===0)return 1;if(a.lookahead===0)break}I=0;a.lookahead>=3&&(a.ins_h=(a.ins_h<<a.hash_shift^a.window[a.strstart+3-1])&a.hash_mask,I=a.prev[a.strstart&a.w_mask]=a.head[a.ins_h],a.head[a.ins_h]=a.strstart);a.prev_length=a.match_length;a.prev_match=a.match_start;a.match_length=2;I!==0&&a.prev_length<a.max_lazy_match&&a.strstart-I<=a.w_size-262&&(a.match_length=whM(a,I),a.match_length<=5&&(a.strategy===1||a.match_length===3&&
a.strstart-a.match_start>4096)&&(a.match_length=2));if(a.prev_length>=3&&a.match_length<=a.prev_length){J=a.strstart+a.lookahead-3;I=On(a,a.strstart-1-a.prev_match,a.prev_length-3);a.lookahead-=a.prev_length-1;a.prev_length-=2;do++a.strstart<=J&&(a.ins_h=(a.ins_h<<a.hash_shift^a.window[a.strstart+3-1])&a.hash_mask,a.prev[a.strstart&a.w_mask]=a.head[a.ins_h],a.head[a.ins_h]=a.strstart);while(--a.prev_length!==0);a.match_available=0;a.match_length=2;a.strstart++;if(I&&(bP(a,!1),a.strm.avail_out===0))return 1}else if(a.match_available){if((I=
On(a,0,a.window[a.strstart-1]))&&bP(a,!1),a.strstart++,a.lookahead--,a.strm.avail_out===0)return 1}else a.match_available=1,a.strstart++,a.lookahead--}a.match_available&&(On(a,0,a.window[a.strstart-1]),a.match_available=0);a.insert=a.strstart<2?a.strstart:2;return z===4?(bP(a,!0),a.strm.avail_out===0?3:4):a.last_lit&&(bP(a,!1),a.strm.avail_out===0)?1:2};
krp=function(a,z){for(var I,J,r,P=a.window;;){if(a.lookahead<=258){Sp(a);if(a.lookahead<=258&&z===0)return 1;if(a.lookahead===0)break}a.match_length=0;if(a.lookahead>=3&&a.strstart>0&&(J=a.strstart-1,I=P[J],I===P[++J]&&I===P[++J]&&I===P[++J])){for(r=a.strstart+258;I===P[++J]&&I===P[++J]&&I===P[++J]&&I===P[++J]&&I===P[++J]&&I===P[++J]&&I===P[++J]&&I===P[++J]&&J<r;);a.match_length=258-(r-J);a.match_length>a.lookahead&&(a.match_length=a.lookahead)}a.match_length>=3?(I=On(a,1,a.match_length-3),a.lookahead-=
a.match_length,a.strstart+=a.match_length,a.match_length=0):(I=On(a,0,a.window[a.strstart]),a.lookahead--,a.strstart++);if(I&&(bP(a,!1),a.strm.avail_out===0))return 1}a.insert=0;return z===4?(bP(a,!0),a.strm.avail_out===0?3:4):a.last_lit&&(bP(a,!1),a.strm.avail_out===0)?1:2};
Mti=function(a,z){for(var I;;){if(a.lookahead===0&&(Sp(a),a.lookahead===0)){if(z===0)return 1;break}a.match_length=0;I=On(a,0,a.window[a.strstart]);a.lookahead--;a.strstart++;if(I&&(bP(a,!1),a.strm.avail_out===0))return 1}a.insert=0;return z===4?(bP(a,!0),a.strm.avail_out===0?3:4):a.last_lit&&(bP(a,!1),a.strm.avail_out===0)?1:2};
xk=function(a,z,I,J,r){this.good_length=a;this.max_lazy=z;this.nice_length=I;this.max_chain=J;this.func=r};
cv0=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 En.Buf16(1146);this.dyn_dtree=new En.Buf16(122);this.bl_tree=new En.Buf16(78);sn(this.dyn_ltree);sn(this.dyn_dtree);sn(this.bl_tree);this.bl_desc=this.d_desc=this.l_desc=null;this.bl_count=new En.Buf16(16);this.heap=new En.Buf16(573);sn(this.heap);this.heap_max=this.heap_len=0;this.depth=new En.Buf16(573);sn(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};
YMG=function(a,z){if(!a||!a.state||z>5||z<0)return a?AC(a,-2):-2;var I=a.state;if(!a.output||!a.input&&a.avail_in!==0||I.status===666&&z!==4)return AC(a,a.avail_out===0?-5:-2);I.strm=a;var J=I.last_flush;I.last_flush=z;if(I.status===42)if(I.wrap===2)a.adler=0,hC(I,31),hC(I,139),hC(I,8),I.gzhead?(hC(I,(I.gzhead.text?1:0)+(I.gzhead.hcrc?2:0)+(I.gzhead.extra?4:0)+(I.gzhead.name?8:0)+(I.gzhead.comment?16:0)),hC(I,I.gzhead.time&255),hC(I,I.gzhead.time>>8&255),hC(I,I.gzhead.time>>16&255),hC(I,I.gzhead.time>>
24&255),hC(I,I.level===9?2:I.strategy>=2||I.level<2?4:0),hC(I,I.gzhead.os&255),I.gzhead.extra&&I.gzhead.extra.length&&(hC(I,I.gzhead.extra.length&255),hC(I,I.gzhead.extra.length>>8&255)),I.gzhead.hcrc&&(a.adler=QE(a.adler,I.pending_buf,I.pending,0)),I.gzindex=0,I.status=69):(hC(I,0),hC(I,0),hC(I,0),hC(I,0),hC(I,0),hC(I,I.level===9?2:I.strategy>=2||I.level<2?4:0),hC(I,3),I.status=113);else{var r=8+(I.w_bits-8<<4)<<8;r|=(I.strategy>=2||I.level<2?0:I.level<6?1:I.level===6?2:3)<<6;I.strstart!==0&&(r|=
32);I.status=113;VE(I,r+(31-r%31));I.strstart!==0&&(VE(I,a.adler>>>16),VE(I,a.adler&65535));a.adler=1}if(I.status===69)if(I.gzhead.extra){for(r=I.pending;I.gzindex<(I.gzhead.extra.length&65535)&&(I.pending!==I.pending_buf_size||(I.gzhead.hcrc&&I.pending>r&&(a.adler=QE(a.adler,I.pending_buf,I.pending-r,r)),nI(a),r=I.pending,I.pending!==I.pending_buf_size));)hC(I,I.gzhead.extra[I.gzindex]&255),I.gzindex++;I.gzhead.hcrc&&I.pending>r&&(a.adler=QE(a.adler,I.pending_buf,I.pending-r,r));I.gzindex===I.gzhead.extra.length&&
(I.gzindex=0,I.status=73)}else I.status=73;if(I.status===73)if(I.gzhead.name){r=I.pending;do{if(I.pending===I.pending_buf_size&&(I.gzhead.hcrc&&I.pending>r&&(a.adler=QE(a.adler,I.pending_buf,I.pending-r,r)),nI(a),r=I.pending,I.pending===I.pending_buf_size)){var P=1;break}P=I.gzindex<I.gzhead.name.length?I.gzhead.name.charCodeAt(I.gzindex++)&255:0;hC(I,P)}while(P!==0);I.gzhead.hcrc&&I.pending>r&&(a.adler=QE(a.adler,I.pending_buf,I.pending-r,r));P===0&&(I.gzindex=0,I.status=91)}else I.status=91;if(I.status===
91)if(I.gzhead.comment){r=I.pending;do{if(I.pending===I.pending_buf_size&&(I.gzhead.hcrc&&I.pending>r&&(a.adler=QE(a.adler,I.pending_buf,I.pending-r,r)),nI(a),r=I.pending,I.pending===I.pending_buf_size)){P=1;break}P=I.gzindex<I.gzhead.comment.length?I.gzhead.comment.charCodeAt(I.gzindex++)&255:0;hC(I,P)}while(P!==0);I.gzhead.hcrc&&I.pending>r&&(a.adler=QE(a.adler,I.pending_buf,I.pending-r,r));P===0&&(I.status=103)}else I.status=103;I.status===103&&(I.gzhead.hcrc?(I.pending+2>I.pending_buf_size&&nI(a),
I.pending+2<=I.pending_buf_size&&(hC(I,a.adler&255),hC(I,a.adler>>8&255),a.adler=0,I.status=113)):I.status=113);if(I.pending!==0){if(nI(a),a.avail_out===0)return I.last_flush=-1,0}else if(a.avail_in===0&&(z<<1)-(z>4?9:0)<=(J<<1)-(J>4?9:0)&&z!==4)return AC(a,-5);if(I.status===666&&a.avail_in!==0)return AC(a,-5);if(a.avail_in!==0||I.lookahead!==0||z!==0&&I.status!==666){J=I.strategy===2?Mti(I,z):I.strategy===3?krp(I,z):vL[I.level].func(I,z);if(J===3||J===4)I.status=666;if(J===1||J===3)return a.avail_out===
0&&(I.last_flush=-1),0;if(J===2&&(z===1?(tC(I,2,3),uP(I,256,KI),I.bi_valid===16?(NV(I,I.bi_buf),I.bi_buf=0,I.bi_valid=0):I.bi_valid>=8&&(I.pending_buf[I.pending++]=I.bi_buf&255,I.bi_buf>>=8,I.bi_valid-=8)):z!==5&&(tC(I,0,3),Gri(I,0,0),z===3&&(sn(I.head),I.lookahead===0&&(I.strstart=0,I.block_start=0,I.insert=0))),nI(a),a.avail_out===0))return I.last_flush=-1,0}if(z!==4)return 0;if(I.wrap<=0)return 1;I.wrap===2?(hC(I,a.adler&255),hC(I,a.adler>>8&255),hC(I,a.adler>>16&255),hC(I,a.adler>>24&255),hC(I,
a.total_in&255),hC(I,a.total_in>>8&255),hC(I,a.total_in>>16&255),hC(I,a.total_in>>24&255)):(VE(I,a.adler>>>16),VE(I,a.adler&65535));nI(a);I.wrap>0&&(I.wrap=-I.wrap);return I.pending!==0?0:1};
qMI=function(a){if(!(this instanceof qMI))return new qMI(a);a=this.options=En.assign({level:-1,method:8,chunkSize:16384,windowBits:15,memLevel:8,strategy:0,to:""},a||{});a.raw&&a.windowBits>0?a.windowBits=-a.windowBits:a.gzip&&a.windowBits>0&&a.windowBits<16&&(a.windowBits+=16);this.err=0;this.msg="";this.ended=!1;this.chunks=[];this.strm=new eVM;this.strm.avail_out=0;var z=this.strm;var I=a.level,J=a.method,r=a.windowBits,P=a.memLevel,N=a.strategy;if(z){var u=1;I===-1&&(I=6);r<0?(u=0,r=-r):r>15&&
(u=2,r-=16);if(P<1||P>9||J!==8||r<8||r>15||I<0||I>9||N<0||N>4)z=AC(z,-2);else{r===8&&(r=9);var E=new cv0;z.state=E;E.strm=z;E.wrap=u;E.gzhead=null;E.w_bits=r;E.w_size=1<<E.w_bits;E.w_mask=E.w_size-1;E.hash_bits=P+7;E.hash_size=1<<E.hash_bits;E.hash_mask=E.hash_size-1;E.hash_shift=~~((E.hash_bits+3-1)/3);E.window=new En.Buf8(E.w_size*2);E.head=new En.Buf16(E.hash_size);E.prev=new En.Buf16(E.w_size);E.lit_bufsize=1<<P+6;E.pending_buf_size=E.lit_bufsize*4;E.pending_buf=new En.Buf8(E.pending_buf_size);
E.d_buf=E.lit_bufsize;E.l_buf=3*E.lit_bufsize;E.level=I;E.strategy=N;E.method=J;if(z&&z.state){z.total_in=z.total_out=0;z.data_type=2;I=z.state;I.pending=0;I.pending_out=0;I.wrap<0&&(I.wrap=-I.wrap);I.status=I.wrap?42:113;z.adler=I.wrap===2?0:1;I.last_flush=0;if(!aLd){J=Array(16);for(P=N=0;P<28;P++)for(d17[P]=N,r=0;r<1<<TY1[P];r++)BL[N++]=P;BL[N-1]=P;for(P=N=0;P<16;P++)for(oh3[P]=N,r=0;r<1<<W11[P];r++)go[N++]=P;for(N>>=7;P<30;P++)for(oh3[P]=N<<7,r=0;r<1<<W11[P]-7;r++)go[256+N++]=P;for(r=0;r<=15;r++)J[r]=
0;for(r=0;r<=143;)KI[r*2+1]=8,r++,J[8]++;for(;r<=255;)KI[r*2+1]=9,r++,J[9]++;for(;r<=279;)KI[r*2+1]=7,r++,J[7]++;for(;r<=287;)KI[r*2+1]=8,r++,J[8]++;iH1(KI,287,J);for(r=0;r<30;r++)Fy[r*2+1]=5,Fy[r*2]=SMd(r,5);jQ3=new VtO(KI,TY1,257,286,15);zwI=new VtO(Fy,W11,0,30,15);ILO=new VtO([],J31,0,19,7);aLd=!0}I.l_desc=new QXd(I.dyn_ltree,jQ3);I.d_desc=new QXd(I.dyn_dtree,zwI);I.bl_desc=new QXd(I.bl_tree,ILO);I.bi_buf=0;I.bi_valid=0;x1M(I);I=0}else I=AC(z,-2);I===0&&(z=z.state,z.window_size=2*z.w_size,sn(z.head),
z.max_lazy_match=vL[z.level].max_lazy,z.good_match=vL[z.level].good_length,z.nice_match=vL[z.level].nice_length,z.max_chain_length=vL[z.level].max_chain,z.strstart=0,z.block_start=0,z.lookahead=0,z.insert=0,z.match_length=z.prev_length=2,z.match_available=0,z.ins_h=0);z=I}}else z=-2;if(z!==0)throw Error(fI[z]);a.header&&(z=this.strm)&&z.state&&z.state.wrap===2&&(z.state.gzhead=a.header);if(a.dictionary){var O;typeof a.dictionary==="string"?O=r3p(a.dictionary):PK7.call(a.dictionary)==="[object ArrayBuffer]"?
O=new Uint8Array(a.dictionary):O=a.dictionary;a=this.strm;P=O;N=P.length;if(a&&a.state)if(O=a.state,z=O.wrap,z===2||z===1&&O.status!==42||O.lookahead)z=-2;else{z===1&&(a.adler=m1M(a.adler,P,N,0));O.wrap=0;N>=O.w_size&&(z===0&&(sn(O.head),O.strstart=0,O.block_start=0,O.insert=0),I=new En.Buf8(O.w_size),En.arraySet(I,P,N-O.w_size,O.w_size,0),P=I,N=O.w_size);I=a.avail_in;J=a.next_in;r=a.input;a.avail_in=N;a.next_in=0;a.input=P;for(Sp(O);O.lookahead>=3;){P=O.strstart;N=O.lookahead-2;do O.ins_h=(O.ins_h<<
O.hash_shift^O.window[P+3-1])&O.hash_mask,O.prev[P&O.w_mask]=O.head[O.ins_h],O.head[O.ins_h]=P,P++;while(--N);O.strstart=P;O.lookahead=2;Sp(O)}O.strstart+=O.lookahead;O.block_start=O.strstart;O.insert=O.lookahead;O.lookahead=0;O.match_length=O.prev_length=2;O.match_available=0;a.next_in=J;a.input=r;a.avail_in=I;O.wrap=z;z=0}else z=-2;if(z!==0)throw Error(fI[z]);this._dict_set=!0}};
ZMx=function(a,z){z=z||{};z.gzip=!0;z=new qMI(z);z.push(a,!0);if(z.err)throw z.msg||fI[z.err];return z.result};
Nz$=function(a,z){var I=CKM();I&&I.publish.call(I,a.toString(),a,z)};
giG=function(a,z,I){var J=CKM();if(!J)return 0;var r=J.subscribe(a.toString(),function(P,N){var u=_.DH("ytPubsub2Pubsub2SkipSubKey");u&&u==r||(u=function(){if(tc1[r])try{if(N&&a instanceof ueE&&a!=P)try{var E=a.dataClass,O=N;if(!O.args||!O.version)throw Error("Vc");try{if(!E.version_){var f=new E;E.version_=f.version}var A=E.version_}catch(n){}if(!A||O.version!=A)throw Error("Wc");try{N=Reflect.construct(E,_.RE(O.args))}catch(n){throw n.message="yt.pubsub2.Data.deserialize(): "+n.message,n;}}catch(n){throw n.message=
"yt.pubsub2.pubsub2 cross-binary conversion error for "+a.toString()+": "+n.message,n;}z.call(I||window,N)}catch(n){_.oL(n)}},Eip[a.toString()]?_.DH("yt.scheduler.instance")?_.GW.addLowPriorityJob(u):_.C1(u,0):u())});
tc1[r]=!0;Bz1[a.toString()]||(Bz1[a.toString()]=[]);Bz1[a.toString()].push(r);return r};
sQI=function(){var a=OMx,z=giG(fLI,function(I){a.apply(void 0,arguments);A3x(z)});
return z};
A3x=function(a){var z=CKM();z&&(typeof a==="number"&&(a=[a]),_.l1(a,function(I){z.unsubscribeByKey(I);delete tc1[I]}))};
CKM=function(){return _.DH("ytPubsub2Pubsub2Instance")};
niG=function(a,z,I){I=I===void 0?{sampleRate:.1}:I;Math.random()<Math.min(.02,I.sampleRate/100)&&Nz$("meta_logging_csi_event",{timerName:a,timelineData:z})};
_.KZm=function(a){return a?(a=a.privateDoNotAccessOrElseSafeScriptWrappedValue)?_.kP(a):null:null};
_.$k=function(a){return a?(a=a.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue)?_.H9(a):null:null};
HMG=function(){FZi||(FZi=_.$k(_.Xw("WORKER_SERIALIZATION_URL")));return FZi||void 0};
_.hwm=function(){var a=HMG();bM$||a===void 0||(bM$=new Worker(_.bj(a),void 0));return bM$};
_.Vci=function(){return typeof Worker==="function"&&HMG()?!0:!1};
_.x33=function(){if(_.Vci()&&!QQ1){var a=function(I){I=I.data;if(I.op==="gzippedGelBatch"){var J=S8O.get(I.key);J&&(iMG(I.gzippedBatch,J.latencyPayload,J.url,J.options,J.sendFn),S8O.delete(I.key))}},z=_.hwm();
z&&(z.addEventListener("message",a),z.onerror=function(){S8O.clear()},QQ1=!0)}};
WZI=function(a,z,I,J,r){r=r===void 0?!1:r;var P={startTime:(0,_.jp)(),ticks:{},infos:{}};if(Xy)try{var N=vi$(z);if(N!=null&&(N>Gz0||N<$3G))J(a,I);else{if(_.K("gzip_gel_with_worker")&&(_.K("initial_gzip_use_main_thread")&&!XK7||!_.K("initial_gzip_use_main_thread"))){QQ1||_.x33();var u=_.hwm();if(u&&!r){S8O.set(Tz$,{latencyPayload:P,url:a,options:I,sendFn:J});u.postMessage({op:"gelBatchToGzip",serializedBatch:z,key:Tz$});Tz$++;return}}var E=ZMx(d3x(z));iMG(E,P,a,I,J)}}catch(O){_.RL(O),J(a,I)}else J(a,
I)};
iMG=function(a,z,I,J,r){XK7=!1;var P=(0,_.jp)();z.ticks.gelc=P;TW++;_.K("disable_compression_due_to_performance_degredation")&&P-z.startTime>=oiG&&(U3G++,_.K("abandon_compression_after_N_slow_zips")?TW===_.Ib("compression_disable_point")&&U3G>D3i&&(Xy=!1):Xy=!1);RwO(z);J.headers||(J.headers={});J.headers["Content-Encoding"]="gzip";J.postBody=a;J.postParams=void 0;r(I,J)};
LZ3=function(a){var z=z===void 0?!1:z;var I=I===void 0?!1:I;var J=(0,_.jp)(),r={startTime:J,ticks:{},infos:{}},P=z?_.DH("yt.logging.gzipForFetch",!1):!0;if(Xy&&P){if(!a.body)return a;try{var N=I?a.body:typeof a.body==="string"?a.body:JSON.stringify(a.body);P=N;if(!I&&typeof N==="string"){var u=vi$(N);if(u!=null&&(u>Gz0||u<$3G))return a;I=z?{level:1}:void 0;P=ZMx(d3x(N),I);var E=(0,_.jp)();r.ticks.gelc=E;if(z){TW++;if((_.K("disable_compression_due_to_performance_degredation")||_.K("disable_compression_due_to_performance_degradation_lr"))&&
E-J>=oiG)if(U3G++,_.K("abandon_compression_after_N_slow_zips")||_.K("abandon_compression_after_N_slow_zips_lr")){z=U3G/TW;var O=D3i/_.Ib("compression_disable_point");TW>0&&TW%_.Ib("compression_disable_point")===0&&z>=O&&(Xy=!1)}else Xy=!1;RwO(r)}}a.headers=Object.assign({},{"Content-Encoding":"gzip"},a.headers||{});a.body=P;return a}catch(f){return _.RL(f),a}}else return a};
vi$=function(a){try{return(new Blob(a.split(""))).size}catch(z){return _.RL(z),null}};
RwO=function(a){_.K("gel_compression_csi_killswitch")||!_.K("log_gel_compression_latency")&&!_.K("log_gel_compression_latency_lr")||niG("gel_compression",a,{sampleRate:.1})};
lL0=function(){this.blockSize=-1};
WL=function(){this.blockSize=-1;this.blockSize=64;this.chain_=[];this.buf_=[];this.W_=[];this.pad_=[];this.pad_[0]=128;for(var a=1;a<this.blockSize;++a)this.pad_[a]=0;this.total_=this.inbuf_=0;this.reset()};
wKx=function(a){a=Object.assign({},a);delete a.Authorization;var z=_.pK$();if(z){var I=new WL;I.update(_.Xw("INNERTUBE_API_KEY"));I.update(z);a.hash=_.he(I.digest(),3)}return a};
Un=function(){m3m||(m3m=new _.o3("yt.innertube"));return m3m};
y3$=function(a,z,I,J){if(J)return null;J=Un().get("nextId",!0)||1;var r=Un().get("requests",!0)||{};r[J]={method:a,request:z,authState:wKx(I),requestTime:Math.round((0,_.jp)())};Un().set("nextId",J+1,86400,!0);Un().set("requests",r,86400,!0);return J};
kz1=function(a){var z=Un().get("requests",!0)||{};delete z[a];Un().set("requests",z,86400,!0)};
c30=function(a){var z=Un().get("requests",!0);if(z){for(var I in z){var J=z[I];if(!(Math.round((0,_.jp)())-J.requestTime<6E4)){var r=J.authState,P=wKx(_.bH1(!1));_.x8.equals(r,P)&&(r=J.request,"requestTimeMs"in r&&(r.requestTimeMs=Math.round((0,_.jp)())),McE(a,J.method,r,{}));delete z[I]}}Un().set("requests",z,86400,!0)}};
Y87=function(a){var z;return(a=a==null?void 0:(z=a.error)==null?void 0:z.code)&&a>=400&&a<=599?!1:!0};
q8E=function(a){var z;a=a==null?void 0:(z=a.error)==null?void 0:z.code;return!(a!==400&&a!==415)};
aAm=function(){if(ewG)return ewG();var a={};ewG=a3("LogsDatabaseV2",{objectStores:(a.LogsRequestsStore={addedAtVersion:2},a),shared:!1,upgrade:function(z,I,J){I(2)&&DZ(z,"LogsRequestsStore",{keyPath:"id",autoIncrement:!0});I(3);I(5)&&(J=J.objectStore("LogsRequestsStore"),J.JSC$10598_wrapped.indexNames.contains("newRequest")&&J.JSC$10598_wrapped.deleteIndex("newRequest"),R3(J,"newRequestV2",["status","interface","timestamp"]));I(7)&&z.JSC$10583_wrapped.objectStoreNames.contains("sapisid")&&z.JSC$10583_wrapped.deleteObjectStore("sapisid");
I(9)&&z.JSC$10583_wrapped.objectStoreNames.contains("SWHealthLog")&&z.JSC$10583_wrapped.deleteObjectStore("SWHealthLog")},
version:9});return ewG()};
LI=function(a){return _.m5(aAm(),a)};
zLp=function(a,z){var I,J,r,P;return _.t(function(N){if(N.nextAddress==1)return I={startTime:(0,_.jp)(),infos:{transactionType:"YT_IDB_TRANSACTION_TYPE_WRITE"},ticks:{}},N.yield(LI(z),2);if(N.nextAddress!=3)return J=N.yieldResult,r=Object.assign({},a,{options:JSON.parse(JSON.stringify(a.options)),interface:_.Xw("INNERTUBE_CONTEXT_CLIENT_NAME",0)}),N.yield(J.put("LogsRequestsStore",r),3);P=N.yieldResult;I.ticks.tc=(0,_.jp)();j0G(I);return N.return(P)})};
IA0=function(a,z){var I,J,r,P,N,u,E,O,f;return _.t(function(A){if(A.nextAddress==1)return I={startTime:(0,_.jp)(),infos:{transactionType:"YT_IDB_TRANSACTION_TYPE_READ"},ticks:{}},A.yield(LI(z),2);if(A.nextAddress!=3)return J=A.yieldResult,r=_.Xw("INNERTUBE_CONTEXT_CLIENT_NAME",0),P=[a,r,0],N=[a,r,(0,_.jp)()],u=IDBKeyRange.bound(P,N),E="prev",_.K("use_fifo_for_networkless")&&(E="next"),O=void 0,f=a==="NEW"?"readwrite":"readonly",_.K("use_readonly_for_get_most_recent_by_status_killswitch")&&(f="readwrite"),
A.yield(_.y2(J,["LogsRequestsStore"],{mode:f,enableRetries:!0},function(n){return _.zW(n.objectStore("LogsRequestsStore").index("newRequestV2"),{query:u,direction:E},function(F){F.getValue()&&(O=F.getValue(),a==="NEW"&&(O.status="QUEUED",F.update(O)))})}),3);
I.ticks.tc=(0,_.jp)();j0G(I);return A.return(O)})};
Jj7=function(a,z){var I;return _.t(function(J){if(J.nextAddress==1)return J.yield(LI(z),2);I=J.yieldResult;return J.return(_.y2(I,["LogsRequestsStore"],{mode:"readwrite",enableRetries:!0},function(r){var P=r.objectStore("LogsRequestsStore");return P.get(a).then(function(N){if(N)return N.status="QUEUED",P.put(N).then(function(){return N})})}))})};
rjx=function(a,z,I,J){I=I===void 0?!0:I;var r;return _.t(function(P){if(P.nextAddress==1)return P.yield(LI(z),2);r=P.yieldResult;return P.return(_.y2(r,["LogsRequestsStore"],{mode:"readwrite",enableRetries:!0},function(N){var u=N.objectStore("LogsRequestsStore");return u.get(a).then(function(E){return E?(E.status="NEW",I&&(E.sendCount+=1),J!==void 0&&(E.options.compress=J),u.put(E).then(function(){return E})):Uz.resolve(void 0)})}))})};
PNM=function(a,z){var I;return _.t(function(J){if(J.nextAddress==1)return J.yield(LI(z),2);I=J.yieldResult;return J.return(I.delete("LogsRequestsStore",a))})};
Zw3=function(a){var z,I;return _.t(function(J){if(J.nextAddress==1)return J.yield(LI(a),2);z=J.yieldResult;I=(0,_.jp)()-2592E6;return J.yield(_.y2(z,["LogsRequestsStore"],{mode:"readwrite",enableRetries:!0},function(r){return Me(r.objectStore("LogsRequestsStore"),{},function(P){if(P.getValue().timestamp<=I)return P.delete().then(function(){return P.continue()})})}),0)})};
CNG=function(){_.t(function(a){return a.yield(Yr$("LogsDatabaseV2"),0)})};
j0G=function(a){_.K("nwl_csi_killswitch")||niG("networkless_performance",a,{sampleRate:1})};
_.tg0=function(a){return _.m5(Ndd(),a)};
uJ$=function(a){var z,I;_.t(function(J){if(J.nextAddress==1)return J.yield(_.tg0(a),2);z=J.yieldResult;I=(0,_.jp)()-2592E6;return J.yield(_.y2(z,["SWHealthLog"],{mode:"readwrite",enableRetries:!0},function(r){return Me(r.objectStore("SWHealthLog"),{},function(P){if(P.getValue().timestamp<=I)return P.delete().then(function(){return P.continue()})})}),0)})};
ENG=function(a){var z;return _.t(function(I){if(I.nextAddress==1)return I.yield(_.tg0(a),2);z=I.yieldResult;return I.yield(z.clear("SWHealthLog"),0)})};
_.lP=function(a,z,I,J,r,P,N){r=r===void 0?"":r;P=P===void 0?!1:P;N=N===void 0?!1:N;if(a)if(I&&!T9("cobalt"))_.RL(new _.Fn("Legacy referrer-scrubbed ping detected")),a&&BdG(a,void 0,{scrubReferrer:!0});else if(r)D$$(a,z,"POST",r,J);else if(_.Xw("USE_NET_AJAX_FOR_PING_TRANSPORT",!1)||J||N)D$$(a,z,"GET","",J,void 0,P,N);else{b:{try{c:{var u=new gN$({url:a});if(u.urlParamValues_.dsh==="1")var E=null;else{var O=u.urlParamValues_.ae;if(O==="1"){var f=u.urlParamValues_.adurl;if(f)try{E={version:3,directUrl:decodeURIComponent(f),
asyncUrl:VLI(u.JSC$9434_url_,"act=1","ri=1",Ow$(u))};break c}catch(h){}}E=O==="2"?{version:4,directUrl:VLI(u.JSC$9434_url_,"dct=1","suid="+u.suid_,""),asyncUrl:VLI(u.JSC$9434_url_,"act=1","ri=1","suid="+u.suid_)}:null}}if(E){var A=_.ul(a);var n=!(!A||!A.endsWith("/aclk")||_.US(a,"ri")!=="1");break b}}catch(h){}n=!1}if(n){b:{try{if(window.navigator&&window.navigator.sendBeacon&&window.navigator.sendBeacon(a,"")){var F=!0;break b}}catch(h){}F=!1}F?(z&&z(),I=!0):I=!1}else I=!1;I||BdG(a,z)}};
BdG=function(a,z,I){I=I===void 0?{}:I;var J=new Image,r=""+fAG++;AjI[r]=J;J.onload=J.onerror=function(){z&&AjI[r]&&z();delete AjI[r]};
I.scrubReferrer&&(J.referrerPolicy="no-referrer");J.src=a};
pI=function(a,z){s0$(a,z==="ATTRIBUTION_SRC_MODE_XHR_OPTION")};
nN7=function(a){var z;return((z=document.featurePolicy)==null?0:z.allowedFeatures().includes("attribution-reporting"))?a+"&nis=6":a+"&nis=5"};
KoM=function(a){if(!a)return!1;try{var z;if(((z=_.p3(a))==null?void 0:z.asm)==="4")return!0}catch(I){_.oL(I)}return!1};
s0$=function(a,z){z?(a=nN7(a),_.lP(a,void 0,void 0,void 0,"",!0,!0)):_.lP(a)};
Hw3=function(){FoG||(FoG=new _.o3("yt.offline"));return FoG};
bwE=function(a){if(_.K("offline_error_handling")){var z=Hw3().get("errors",!0)||{};z[a.message]={name:a.name,stack:a.stack};a.level&&(z[a.message].level=a.level);Hw3().set("errors",z,2592E3,!0)}};
VgO=function(a,z,I,J){J=J===void 0?!1:J;z=_.K("web_fp_via_jspb")?Object.assign({},z):z;_.K("use_cfr_monitor")&&hLp(a,z);if(_.K("use_request_time_ms_header"))z.headers&&YS(a)&&(z.headers["X-Goog-Request-Time"]=JSON.stringify(Math.round((0,_.jp)())));else{var r;if((r=z.postParams)==null?0:r.requestTimeMs)z.postParams.requestTimeMs=Math.round((0,_.jp)())}I&&Object.keys(z).length===0?_.lP(a):z.compress?z.postBody?(typeof z.postBody!=="string"&&(z.postBody=JSON.stringify(z.postBody)),WZI(a,z.postBody,
z,_.Ez,J)):WZI(a,JSON.stringify(z.postParams),z,pAG,J):_.Ez(a,z)};
Q0d=function(a,z){_.K("use_event_time_ms_header")&&YS(a)&&(z.headers||(z.headers={}),z.headers["X-Goog-Event-Time"]=JSON.stringify(Math.round((0,_.jp)())));return z};
_.iwd=function(){Sg7||(Sg7=new _.wo({logOfflineErrors:!0,enablePolling:!0}));return Sg7};
hLp=function(a,z){var I=z.onError?z.onError:function(){};
z.onError=function(r,P){ml().requestComplete(a,!1);I(r,P)};
var J=z.onSuccess?z.onSuccess:function(){};
z.onSuccess=function(r,P){ml().requestComplete(a,!0);J(r,P)}};
_.xpm=function(){return _.MY(document.location.toString())!=="www.youtube-nocookie.com"};
_.$pG=function(){return _.DH("ytNetworklessLoggingInitializationOptions")?_.vNG.isNwlInitialized:_.GQ3};
Xlm=function(a,z){if(_.K("polymer_on_demand_shady_dom")){var I;var J=(I=a.__shady_native_firstElementChild)!=null?I:a.firstElementChild}else J=a.firstElementChild;for(;J;){if(a=z(J)?J:Xlm(J,z))return a;J=J.nextElementSibling}return null};
dpx=function(){var a=document;if("visibilityState"in a)return a.visibilityState;var z=Tdx+"VisibilityState";if(z in a)return a[z]};
_.Wo0=function(a,z){var I;yE(a,function(J){I=z[J];return!!I});
return I};
_.MV=function(a){var z=oNO(a);z?z.focus(void 0):_.kk(a)};
oNO=function(a){return(a=Xlm(a,function(z){return _.cL(z)?Upp(z)&&!!z.offsetParent:!1}))?a:null};
_.kk=function(a,z){a.hasAttribute("tabindex")||a.setAttribute("tabindex","-1");a.focus(z)};
Dp3=function(a,z,I,J){J=J===void 0?{}:J;a.addEventListener&&(z!="mouseenter"||"onmouseenter"in document?z!="mouseleave"||"onmouseenter"in document?z=="mousewheel"&&"MozBoxSizing"in document.documentElement.style&&(z="MozMousePixelScroll"):z="mouseout":z="mouseover");return _.x8.findKey(Yk,function(r){var P=typeof r[4]==="boolean"&&r[4]==!!J,N=_.md(r[4])&&_.md(J)&&_.x8.equals(r[4],J);return!!r.length&&r[0]==a&&r[1]==z&&r[2]==I&&(P||N)})};
_.ep=function(a,z,I,J){J=J===void 0?{}:J;if(!a||!a.addEventListener&&!a.attachEvent)return"";var r=Dp3(a,z,I,J);if(r)return r;r=++RLG.count+"";var P=!(z!="mouseenter"&&z!="mouseleave"||!a.addEventListener||"onmouseenter"in document);var N=P?function(u){u=new qV(u);if(!_.dJ(u.relatedTarget,function(E){return E==a},!0))return u.currentTarget=a,u.type=z,I.call(a,u)}:function(u){u=new qV(u);
u.currentTarget=a;return I.call(a,u)};
N=_.Ue(N);a.addEventListener?(z=="mouseenter"&&P?z="mouseover":z=="mouseleave"&&P?z="mouseout":z=="mousewheel"&&"MozBoxSizing"in document.documentElement.style&&(z="MozMousePixelScroll"),Lod()||typeof J==="boolean"?a.addEventListener(z,N,J):a.addEventListener(z,N,!!J.capture)):a.attachEvent("on"+z,N);Yk[r]=[a,z,I,N,J];return r};
_.plO=function(a,z,I){var J=J===void 0?{}:J;var r=_.ep(a,z,function(){_.lAG(r);I.apply(a,arguments)},J)};
_.lAG=function(a){a&&(typeof a=="string"&&(a=[a]),_.l1(a,function(z){if(z in Yk){var I=Yk[z],J=I[0],r=I[1],P=I[3];I=I[4];J.removeEventListener?Lod()||typeof I==="boolean"?J.removeEventListener(r,P,I):J.removeEventListener(r,P,!!I.capture):J.detachEvent&&J.detachEvent("on"+r,P);delete Yk[z]}}))};
aO=function(a){this.callback_=a;this.position_=null;this.previousTime_=0;this.previousPosition_=null;this.previousVelocity_=0;this.cycles_=[];for(a=0;a<4;a++)this.cycles_.push(0);this.index_=0;this.mouseListenerKey_=_.ep(window,"mousemove",(0,_.HW)(this.onMouseMove_,this));this.timerId_=_.Ne((0,_.HW)(this.checkPosition_,this),25)};
mpx=function(){var a={};var z=a.preferMobileEvents===void 0?!1:a.preferMobileEvents;a=a.enableScrollEventListener===void 0?!0:a.enableScrollEventListener;if(_.DH("_lact",window)==null){var I=parseInt(_.Xw("LACT"),10);I=isFinite(I)?Date.now()-Math.max(I,0):-1;_.qe("_lact",I,window);_.qe("_fact",I,window);I==-1&&_.zx();_.ep(document,"keydown",_.zx);_.ep(document,"keyup",_.zx);_.ep(document,"mousedown",_.zx);_.ep(document,"mouseup",_.zx);z?_.ep(window,"touchmove",function(){wlI("touchmove",200)},{passive:!0}):
(_.ep(window,"resize",function(){wlI("resize",200)}),a&&_.ep(window,"scroll",function(){wlI("scroll",200)}));
new aO(function(){wlI("mouse",100)});
_.ep(document,"touchstart",_.zx,{passive:!0});_.ep(document,"touchend",_.zx,{passive:!0})}};
wlI=function(a,z){yjx[a]||(yjx[a]=!0,_.GW.addLowPriorityJob(function(){_.zx();yjx[a]=!1},z))};
_.zx=function(){_.DH("_lact",window)==null&&mpx();var a=Date.now();_.qe("_lact",a,window);_.DH("_fact",window)==-1&&_.qe("_fact",a,window);(a=_.DH("ytglobal.ytUtilActivityCallback_"))&&a()};
_.IO=function(){var a=_.DH("_lact",window);return a==null?-1:Math.max(Date.now()-a,0)};
_.ZR=function(a,z,I){var J=_.JJ();if(J&&z){var r=J.subscribe(a,function(){var P=arguments,N=function(){r2[r]&&z.apply&&typeof z.apply=="function"&&z.apply(I||window,P)};
try{_.kQm[a]?N():_.C1(N,0)}catch(u){_.oL(u)}},I);
r2[r]=!0;Pa[a]||(Pa[a]=[]);Pa[a].push(r);return r}return 0};
_.MgI=function(a){var z=_.JJ();z&&(typeof a==="number"?a=[a]:typeof a==="string"&&(a=[parseInt(a,10)]),_.l1(a,function(I){z.unsubscribeByKey(I);delete r2[I]}))};
_.cjG=function(a,z){var I=_.JJ();I&&I.publish.apply(I,arguments)};
_.qgm=function(a){var z=_.JJ();if(z)if(z.clear(a),a)Ygx(a);else for(var I in Pa)Ygx(I)};
_.JJ=function(){return _.IE.ytPubsubPubsubInstance};
Ygx=function(a){Pa[a]&&(a=Pa[a],_.l1(a,function(z){r2[z]&&delete r2[z]}),a.length=0)};
eL0=function(){var a,z;return"h5vcc"in Cv&&((a=Cv.h5vcc.traceEvent)==null?0:a.traceBegin)&&((z=Cv.h5vcc.traceEvent)==null?0:z.traceEnd)?1:"performance"in Cv&&Cv.performance.mark&&Cv.performance.measure?2:0};
atG=function(a){var z=eL0();switch(z){case 1:Cv.h5vcc.traceEvent.traceBegin("YTLR",a);break;case 2:Cv.performance.mark(a+"-start");break;case 0:break;default:_.Rw(z,"unknown trace type")}};
j5O=function(a){var z=eL0();switch(z){case 1:Cv.h5vcc.traceEvent.traceEnd("YTLR",a);break;case 2:z=a+"-start";var I=a+"-end";Cv.performance.mark(I);Cv.performance.measure(a,z,I);break;case 0:break;default:_.Rw(z,"unknown trace type")}};
zh1=function(a){var z,I;(I=(z=window).onerror)==null||I.call(z,a.message,"",0,0,a)};
ItO=function(a){if(_.K("web_lifecycle_error_handling_killswitch"))return a();try{return a()}catch(z){zh1(z)}};
Jf3=function(a){return[a.auth===void 0?"undefined":a.auth,a.isJspb===void 0?"undefined":a.isJspb,a.cttAuthInfo===void 0?"undefined":a.cttAuthInfo,a.tier===void 0?"undefined":a.tier].join("/")};
_.H=function(a,z){if(a)return a[z.name]};
tJ=function(){var a=_.DH("yt.logging.ims");a||(a=new Nm,_.qe("yt.logging.ims",a));return a};
B4M=function(a,z){if(a.endpoint==="log_event"){rfG(a);var I=PJI(a),J=ZS3(a.payload)||"",r=CJ1(J),P=200;if(r){if(r.enabled===!1&&!_.K("web_payload_policy_disabled_killswitch"))return;P=N40(r.tier);if(P===400){tki(a,z);return}}u9[I]=!0;I={cttAuthInfo:I,isJspb:!1,tier:P};tJ().storePayload(I,a.payload);uT1(z,!1,I,Eq0(J))}};
OSm=function(a,z,I){if(z.endpoint==="log_event"){rfG(void 0,z);var J=PJI(z,!0),r=CJ1(a),P=200;if(r){if(r.enabled===!1&&!_.K("web_payload_policy_disabled_killswitch"))return;P=N40(r.tier);if(P===400){gqp(a,z,I);return}}u9[J]=!0;J={cttAuthInfo:J,isJspb:!0,tier:P};tJ().storePayload(J,v4(z.payload));uT1(I,!0,J,Eq0(a))}};
uT1=function(a,z,I,J){z=z===void 0?!1:z;J=J===void 0?!1:J;a&&(Ew=new a);a=_.Ib("tvhtml5_logging_max_batch_ads_fork")||_.Ib("tvhtml5_logging_max_batch")||_.Ib("web_logging_max_batch")||100;var r=(0,_.jp)(),P=ftp(z,I.tier),N=P.lastDebounceQueueFromLogTimeMs;J&&(P.useVideoStatsEndPoint=!0);J=0;I&&(J=tJ().getSequenceCount(I));var u=function(){Afd({writeThenSend:!0},z,I.tier)};
J>=1E3?u():J>=a?s5M||(s5M=nqI(function(){u();s5M=void 0},0)):r-N>=10&&(KfI(z,I.tier),P.lastDebounceQueueFromLogTimeMs=r)};
tki=function(a,z){if(a.endpoint==="log_event"){_.K("more_accurate_gel_parser")&&tJ().storePayload({isJspb:!1},a.payload);rfG(a);var I=PJI(a),J=new Map;J.set(I,[a.payload]);var r=ZS3(a.payload)||"";z&&(Ew=new z);return new _.Ba(function(P,N){Ew&&Ew.isReady()?FfE(J,Ew,P,N,{bypassNetworkless:!0},!0,Eq0(r)):P()})}};
gqp=function(a,z,I){if(z.endpoint==="log_event"){rfG(void 0,z);var J=PJI(z,!0),r=new Map;r.set(J,[v4(z.payload)]);I&&(Ew=new I);return new _.Ba(function(P){Ew&&Ew.isReady()?HSE(r,Ew,P,{bypassNetworkless:!0},!0,Eq0(a)):P()})}};
PJI=function(a,z){var I="";if(a.dangerousLogToVisitorSession)I="visitorOnlyApprovedKey";else if(a.cttAuthInfo){if(z===void 0?0:z){z=a.cttAuthInfo.token;I=a.cttAuthInfo;var J=new bSd;I.videoId?J.setVideoId(I.videoId):I.playlistId&&g2(J,2,hh3,u0(I.playlistId));Vkm[z]=J}else z=a.cttAuthInfo,I={},z.videoId?I.videoId=z.videoId:z.playlistId&&(I.playlistId=z.playlistId),Q5$[a.cttAuthInfo.token]=I;I=a.cttAuthInfo.token}return I};
Afd=function(a,z,I){a=a===void 0?{}:a;z=z===void 0?!1:z;new _.Ba(function(J,r){var P=ftp(z,I),N=P.useVideoStatsEndPoint;P.useVideoStatsEndPoint=!1;SW0(P.queueTimer);SW0(P.queueMaxTimer);P.queueMaxTimer=0;Ew&&Ew.isReady()?I===void 0&&_.K("enable_web_tiered_gel")?iS1(J,r,a,z,300,N):iS1(J,r,a,z,I,N):(KfI(z,I),J())})};
iS1=function(a,z,I,J,r,P){var N=Ew;I=I===void 0?{}:I;J=J===void 0?!1:J;r=r===void 0?200:r;P=P===void 0?!1:P;var u=new Map,E=new Map,O={isJspb:J,cttAuthInfo:void 0,tier:r},f={isJspb:J,cttAuthInfo:void 0};if(J){z=_.C(Object.keys(u9));for(r=z.next();!r.done;r=z.next())r=r.value,E=_.K("enable_web_tiered_gel")?tJ().smartExtractMatchingEntries({keys:[O,f],sizeLimit:1E3}):tJ().extractMatchingEntries({isJspb:!0,cttAuthInfo:r}),E.length>0&&u.set(r,E),(_.K("web_fp_via_jspb_and_json")&&I.writeThenSend||!_.K("web_fp_via_jspb_and_json"))&&
delete u9[r];HSE(u,N,a,I,!1,P)}else{u=_.C(Object.keys(u9));for(O=u.next();!O.done;O=u.next())O=O.value,f=_.K("enable_web_tiered_gel")?tJ().smartExtractMatchingEntries({keys:[{isJspb:!1,cttAuthInfo:O,tier:r},{isJspb:!1,cttAuthInfo:O}],sizeLimit:1E3}):tJ().extractMatchingEntries({isJspb:!1,cttAuthInfo:O}),f.length>0&&E.set(O,f),(_.K("web_fp_via_jspb_and_json")&&I.writeThenSend||!_.K("web_fp_via_jspb_and_json"))&&delete u9[O];FfE(E,N,a,z,I,!1,P)}};
KfI=function(a,z){a=a===void 0?!1:a;z=z===void 0?200:z;var I=function(){Afd({writeThenSend:!0},a,z)},J=ftp(a,z),r=J===xKi||J===vqG?5E3:Gdp;
_.K("web_gel_timeout_cap")&&!J.queueMaxTimer&&(r=nqI(function(){I()},r),J.queueMaxTimer=r);
SW0(J.queueTimer);r=_.Xw("LOGGING_BATCH_TIMEOUT",_.Ib("web_gel_debounce_ms",1E4));_.K("shorten_initial_gel_batch_timeout")&&$K7&&(r=X87);r=nqI(function(){_.Ib("gel_min_batch_size")>0?tJ().getSequenceCount({cttAuthInfo:void 0,isJspb:a,tier:z})>=T47&&I():I()},r);
J.queueTimer=r};
FfE=function(a,z,I,J,r,P,N){r=r===void 0?{}:r;var u=Math.round((0,_.jp)()),E=a.size,O=dK3(N);a=_.C(a);var f=a.next();for(N={};!f.done;N={networkFailures:void 0,batchRequest:void 0,dangerousLogToVisitorSession:void 0,onSuccess$jscomp$3:void 0,onError$jscomp$5:void 0},f=a.next()){var A=_.C(f.value);f=A.next().value;A=A.next().value;N.batchRequest=_.x8.unsafeClone({context:_.ghp(z.config_||_.I3())});if(!_.lG(A)&&!_.K("throw_err_when_logevent_malformed_killswitch")){J();break}N.batchRequest.events=A;
(A=Q5$[f])&&Wfd(N.batchRequest,f,A);delete Q5$[f];N.dangerousLogToVisitorSession=f==="visitorOnlyApprovedKey";oqi(N.batchRequest,u,N.dangerousLogToVisitorSession);UKG(r);N.onSuccess$jscomp$3=function(n){_.K("start_client_gcf")&&_.GW.addLowPriorityJob(function(){return _.t(function(F){return F.yield(DKx(n),0)})});
E--;E||I()};
N.networkFailures=0;N.onError$jscomp$5=function(n){return function(){n.networkFailures++;if(r.bypassNetworkless&&n.networkFailures===1)try{McE(z,O,n.batchRequest,RhI({writeThenSend:!0},n.dangerousLogToVisitorSession,n.onSuccess$jscomp$3,n.onError$jscomp$5,P)),$K7=!1}catch(F){_.oL(F),J()}E--;E||I()}}(N);
try{McE(z,O,N.batchRequest,RhI(r,N.dangerousLogToVisitorSession,N.onSuccess$jscomp$3,N.onError$jscomp$5,P)),$K7=!1}catch(n){_.oL(n),J()}}};
HSE=function(a,z,I,J,r,P){J=J===void 0?{}:J;var N=Math.round((0,_.jp)()),u={value:a.size},E=new Map([].concat(_.ih(a)));E=_.C(E);for(var O=E.next();!O.done;O=E.next()){var f=_.C(O.value).next().value,A=a.get(f);O=new LfG;var n=z.config_||_.I3(),F=new Ow,h=new lt3;_.KB(h,1,n.innertubeContextHostLanguage);_.KB(h,2,n.innertubeContextGeoLocation);_.ro(h,16,n.innertubeContextClientNameFieldNumber);_.KB(h,17,n.innertubeContextClientVersion);if(n.innertubeContextClientConfigInfo){var v=n.innertubeContextClientConfigInfo,
d=new ZZ;v.coldConfigData&&_.KB(d,1,v.coldConfigData);v.appInstallData&&_.KB(d,6,v.appInstallData);v.coldHashData&&_.KB(d,3,v.coldHashData);v.hotHashData&&d.setHotHashData(v.hotHashData);_.gO(h,62,d)}(v=_.IE.devicePixelRatio)&&v!=1&&_.PL(h,65,_.lw(v));v=vAx();v!==""&&_.KB(h,54,v);v=Gb1();if(v.length>0){d=new p8m;for(var W=0;W<v.length;W++){var l=new fv;l.setKey(v[W].key);g2(l,2,w8E,u0(v[W].value));AJ(d,15,fv,l)}_.gO(F,5,d)}CkG(n,h);NY7(F);ttm(h);ub1(n,h);EhI(h);_.K("start_client_gcf")&&BYO(h);_.Xw("DELEGATED_SESSION_ID")&&
!_.K("pageid_as_header_web")&&(n=new sw,_.KB(n,3,_.Xw("DELEGATED_SESSION_ID")));!_.K("fill_delegate_context_in_gel_killswitch")&&(v=_.Xw("INNERTUBE_CONTEXT_SERIALIZED_DELEGATION_CONTEXT"))&&(d=_.JC(F,sw,3)||new sw,n=F,v=_.KB(d,18,v),_.gO(n,3,v));n=h;v=_.C(Object.entries(_.p3(_.Xw("DEVICE",""))));for(d=v.next();!d.done;d=v.next())W=_.C(d.value),d=W.next().value,W=W.next().value,d==="cbrand"?_.KB(n,12,W):d==="cmodel"?_.KB(n,13,W):d==="cbr"?_.KB(n,87,W):d==="cbrver"?_.KB(n,88,W):d==="cos"?_.KB(n,18,
W):d==="cosver"?_.KB(n,19,W):d==="cplatform"&&_.ro(n,42,Z5E(W));F.setClient(h);_.gO(O,1,F);if(h=Vkm[f])a:{if(_.gQ(h,nv(h,hh3,1)))F=1;else if(h.getPlaylistId())F=2;else break a;_.gO(O,4,h);h=O.getContext()||new Ow;n=_.JC(h,sw,3)||new sw;v=new Kv;v.setToken(f);_.ro(v,1,F);AJ(n,12,Kv,v);_.gO(h,3,n)}delete Vkm[f];f=f==="visitorOnlyApprovedKey";mKI()||_.Fd(O,2,N);!f&&(F=_.Xw("EVENT_ID"))&&(h=yfG(),n=new kdM,_.KB(n,1,F),_.Fd(n,2,h),_.gO(O,5,n));UKG(J);if(_.K("jspb_serialize_with_worker")&&(F=_.hwm())&&
J.writeThenSend){_.MkI.set(cfE,{client:z,resolve:I,networklessOptions:J,isIsolated:r,useVSSEndpoint:P,dangerousLogToVisitorSession:f,requestsOutstanding:u});F.postMessage({op:"gelBatchToSerialize",batchRequest:v4(O),clientEvents:A,key:cfE});cfE++;break}if(A){F=[];for(h=0;h<A.length;h++)try{F.push(new Ha(A[h]))}catch(q){_.oL(new _.Fn("Transport failed to deserialize "+String(A[h])))}A=F}else A=[];A=_.C(A);for(F=A.next();!F.done;F=A.next())AJ(O,3,Ha,F.value);A={startTime:(0,_.jp)(),ticks:{},infos:{}};
O=O.serialize();A.ticks.geljspc=(0,_.jp)();_.K("log_jspb_serialize_latency")&&niG("gel_jspb_serialize",A,{sampleRate:.1});_.YWE(O,z,I,J,r,P,f,u)}};
_.YWE=function(a,z,I,J,r,P,N,u){J=J===void 0?{}:J;u=u===void 0?{value:0}:u;P=dK3(P);J=RhI(J,N,function(E){_.K("start_client_gcf")&&_.GW.addLowPriorityJob(function(){return _.t(function(O){return O.yield(DKx(E),0)})});
u.value--;u.value||I()},function(){u.value--;
u.value||I()},r);
J.headers["Content-Type"]="application/json+protobuf";J.postBodyFormat="JSPB";J.postBody=a;McE(z,P,"",J);$K7=!1};
UKG=function(a){_.K("always_send_and_write")&&(a.writeThenSend=!1)};
RhI=function(a,z,I,J,r){a={retry:!0,onSuccess:I,onError:J,networklessOptions:a,dangerousLogToVisitorSession:z,bypassMonitoring:!!r,headers:{},postBodyFormat:"",postBody:"",compress:_.K("compress_gel")||_.K("compress_gel_lr")};mKI()&&(a.headers["X-Goog-Request-Time"]=JSON.stringify(Math.round((0,_.jp)())));return a};
oqi=function(a,z,I){mKI()||(a.requestTimeMs=String(z));_.K("unsplit_gel_payloads_in_logs")&&(a.unsplitGelPayloadsInLogs=!0);!I&&(z=_.Xw("EVENT_ID"))&&(I=yfG(),a.serializedClientEventId={serializedEventId:z,clientCounter:String(I)})};
yfG=function(){var a=_.Xw("BATCH_CLIENT_COUNTER")||0;a||(a=Math.floor(Math.random()*65535/2));a++;a>65535&&(a=1);_.$S("BATCH_CLIENT_COUNTER",a);return a};
Wfd=function(a,z,I){if(I.videoId)var J="VIDEO";else if(I.playlistId)J="PLAYLIST";else return;a.credentialTransferTokenTargetId=I;a.context=a.context||{};a.context.user=a.context.user||{};a.context.user.credentialTransferTokens=[{token:z,scope:J}]};
rfG=function(a,z){var I=_.rM("il_payload_scraping")==="enable_il_payload_scraping";if(!_.DH("yt.logging.transport.enableScrapingForTest"))if(I)qWM=[],_.qe("yt.logging.transport.enableScrapingForTest",!0),_.qe("yt.logging.transport.scrapedPayloadsForTesting",qWM),_.qe("yt.logging.transport.payloadToScrape","visualElementShown visualElementHidden visualElementAttached screenCreated visualElementGestured visualElementStateChanged".split(" ")),_.qe("yt.logging.transport.getScrapedPayloadFromClientEventsFunction"),
_.qe("yt.logging.transport.scrapeClientEvent",!0);else return;I=_.DH("yt.logging.transport.scrapedPayloadsForTesting");var J=_.DH("yt.logging.transport.payloadToScrape");z&&(z=_.DH("yt.logging.transport.getScrapedPayloadFromClientEventsFunction").bind(z.payload)())&&I.push(z);z=_.DH("yt.logging.transport.scrapeClientEvent");if(J&&J.length>=1)for(var r=0;r<J.length;r++)if(a&&a.payload[J[r]])if(z)I.push(a.payload);else{var P=void 0;I.push(((P=a)==null?void 0:P.payload)[J[r]])}_.qe("yt.logging.transport.scrapedPayloadsForTesting",
I)};
mKI=function(){return _.K("use_request_time_ms_header")||_.K("lr_use_request_time_ms_header")};
nqI=function(a,z){return _.K("transport_use_scheduler")===!1?_.C1(a,z):_.K("logging_avoid_blocking_during_navigation")||_.K("lr_logging_avoid_blocking_during_navigation")?_.b9(_.GW,function(){if(_.ehO().currentState==="none")a();else{var I={};_.ehO().install((I.none={callback:a},I))}},z):_.b9(_.GW,a,z)};
SW0=function(a){_.K("transport_use_scheduler")?_.GW.cancelJob(a):_.tP(a)};
DKx=function(a){var z,I,J,r,P,N,u,E,O,f;return _.t(function(A){return A.nextAddress==1?(J=(z=a)==null?void 0:(I=z.responseContext)==null?void 0:I.globalConfigGroup,r=_.H(J,acE),N=(P=J)==null?void 0:P.hotHashData,u=_.H(J,jKi),O=(E=J)==null?void 0:E.coldHashData,(f=_.ab().resolve(_.eL(hJ)))?N?r?A.yield(zp1(f,N,r),2):A.yield(zp1(f,N),2):A.jumpTo(2):A.return()):O?u?A.yield(Ic1(f,O,u),0):A.yield(Ic1(f,O),0):A.jumpTo(0)})};
ftp=function(a,z){z=z===void 0?200:z;return a?z===300?xKi:JE3:z===300?vqG:rEd};
CJ1=function(a){if(_.K("enable_web_tiered_gel")){a=Pq0[a||""];var z,I,J,r=_.ab().resolve(_.eL(hJ))==null?void 0:(z=V4())==null?void 0:(I=z.loggingHotConfig)==null?void 0:(J=I.eventLoggingConfig)==null?void 0:J.payloadPolicies;if(r)for(z=0;z<r.length;z++)if(r[z].payloadNumber===a)return r[z]}};
ZS3=function(a){a=Object.keys(a);a=_.C(a);for(var z=a.next();!z.done;z=a.next())if(z=z.value,Pq0[z])return z};
N40=function(a){switch(a){case "DELAYED_EVENT_TIER_UNSPECIFIED":return 0;case "DELAYED_EVENT_TIER_DEFAULT":return 100;case "DELAYED_EVENT_TIER_DISPATCH_TO_EMPTY":return 200;case "DELAYED_EVENT_TIER_FAST":return 300;case "DELAYED_EVENT_TIER_IMMEDIATE":return 400;default:return 200}};
Eq0=function(a){return a==="gelDebuggingEvent"};
dK3=function(a){return(a===void 0?0:a)&&_.K("vss_through_gel_video_stats")?"video_stats":"log_event"};
SF=function(a,z,I,J){J=J===void 0?{}:J;var r={},P=Math.round(J.timestamp||(0,_.jp)());r.eventTimeMs=P<Number.MAX_SAFE_INTEGER?P:0;r[a]=z;a=_.IO();r.context={lastActivityMs:String(J.timestamp||!isFinite(a)?-1:a)};J.sequenceGroup&&!_.K("web_gel_sequence_info_killswitch")&&(a=r.context,z=J.sequenceGroup,z={index:ZU$(z),groupKey:z},a.sequence=z,J.endOfSequence&&delete Q4[J.sequenceGroup]);_.K("web_tag_automated_log_events")&&(r.context.automatedLogEventSource=J.automatedLogEventSource);(J.sendIsolatedPayload?
tki:B4M)({endpoint:"log_event",payload:r,cttAuthInfo:J.cttAuthInfo,dangerousLogToVisitorSession:J.dangerousLogToVisitorSession},I)};
ZU$=function(a){Q4[a]=a in Q4?Q4[a]+1:0;return Q4[a]};
_.x0=function(a,z,I){I=I===void 0?{}:I;var J=i9;_.TZ("ytLoggingEventsDefaultDisabled",!1)&&i9===i9&&(J=null);SF(a,z,J,I)};
_.va=function(){if(_.K("web_fp_via_jspb")){var a=!0;a=a===void 0?!1:a;var z=Cq0;Cq0=[];if(z){z=_.C(z);for(var I=z.next();!I.done;I=z.next())I=I.value,a?SF(I.payloadName,I.payload,i9,I.options):_.x0(I.payloadName,I.payload,I.options)}Afd(void 0,!0);if(!_.K("web_fp_via_jspb_and_json"))return}Afd(void 0,!1)};
Nid=function(a,z){var I;if((I=z)==null?0:I.componentStack)return z;if(a=a.componentStack)z||(z={}),z.componentStack=a;return z};
trE=function(){_.l1(_.Xw("ERRORS")||[],function(a){_.Gx.apply(null,a)});
_.$S("ERRORS",[])};
_.$0=function(a){_.Gx(a)};
_.Xd=function(a){_.Gx(a,"WARNING")};
uF7=function(a){a instanceof Error?_.Gx(a):(a=_.md(a)?JSON.stringify(a):String(a),a=new _.Fn(a),a.name="RejectedPromiseError",_.Xd(a))};
EcI=function(a,z,I,J,r,P){z=z===void 0?"Unknown file":z;I=I===void 0?0:I;var N=!1,u=Ne7("log_window_onerror_fraction");if(u&&Math.random()<u)N=!0;else{u=document.getElementsByTagName("script");for(var E=0,O=u.length;E<O;E++)if(u[E].src.indexOf("/debug-")>0){N=!0;break}}N&&(N=!1,r?N=!0:(typeof a==="string"?u=a:ErrorEvent&&a instanceof ErrorEvent?(N=!0,u=a.message,z=a.filename,I=a.lineno,J=a.colno):(u="Unknown error",z="Unknown file",I=0),r=new _.Fn(u),r.name="UnhandledWindowError",r.message=u,r.fileName=
z,r.lineNumber=I,isNaN(J)?delete r.columnNumber:r.columnNumber=J),_.K("wiz_enable_component_stack_propagation_killswitch")||(P=Nid(r,P)),P&&_.Tx(r,P),N?_.Gx(r):_.Xd(r))};
_.Gx=function(a,z,I,J,r,P,N,u){P=P===void 0?{}:P;P.name=I||_.Xw("INNERTUBE_CONTEXT_CLIENT_NAME",1);P.version=J||_.Xw("INNERTUBE_CONTEXT_CLIENT_VERSION");I=P;z=z===void 0?"ERROR":z;N=N===void 0?!1:N;z=z===void 0?"ERROR":z;N=N===void 0?!1:N;if(a&&(a.hasOwnProperty("level")&&a.level&&(z=a.level),_.K("console_log_js_exceptions")&&(J=[],J.push("Name: "+a.name),J.push("Message: "+a.message),a.hasOwnProperty("params")&&J.push("Error Params: "+JSON.stringify(a.params)),a.hasOwnProperty("args")&&J.push("Error args: "+
JSON.stringify(a.args)),J.push("File name: "+a.fileName),J.push("Stacktrace: "+a.stack),J=J.join("\n"),window.console.log(J,a)),!(Bi$>=5))){J=[];r=_.C(gcG);for(P=r.next();!P.done;P=r.next()){P=P.value;try{P()&&J.push(P())}catch(d){}}J=[].concat(_.ih(OU0),_.ih(J));var E=fcG(a);r=E.message||"Unknown Error";P=E.name||"UnknownError";var O=E.stack||a.stacktrace||"Not available";if(O.startsWith(P+": "+r)){var f=O.split("\n");f.shift();O=f.join("\n")}f=E.lineNumber||"Not available";E=E.fileName||"Not available";
var A=0;if(a.hasOwnProperty("args")&&a.args&&a.args.length)for(var n=0;n<a.args.length&&!(A=P8m(a.args[n],"params."+n,I,A),A>=500);n++);else if(a.hasOwnProperty("params")&&a.params){var F=a.params;if(typeof a.params==="object")for(n in F){if(F[n]){var h="params."+n,v=Oz(F[n]);I[h]=v;A+=h.length+v.length;if(A>500)break}}else I.params=Oz(F)}if(J.length)for(n=0;n<J.length&&!(A=P8m(J[n],"params.context."+n,I,A),A>=500);n++);navigator.vendor&&!I.hasOwnProperty("vendor")&&(I["device.vendor"]=navigator.vendor);
n={message:r,name:P,lineNumber:f,fileName:E,stack:O,params:I,sampleWeight:1};I=Number(a.columnNumber);isNaN(I)||(n.lineNumber=n.lineNumber+":"+I);if(a.level==="IGNORED")a=0;else a:{a=AEO();I=_.C(a.messageWeights);for(J=I.next();!J.done;J=I.next())if(J=J.value,n.message&&n.message.match(J.messageRegExp)){a=J.weight;break a}a=_.C(a.callbackWeights);for(I=a.next();!I.done;I=a.next())if(I=I.value,I.callback(n)){a=I.weight;break a}a=1}n.sampleWeight=a;a=_.C(sK1);for(I=a.next();!I.done;I=a.next())if(I=
I.value,I.patternsForType[n.name])for(r=_.C(I.patternsForType[n.name]),J=r.next();!J.done;J=r.next())if(P=J.value,J=n.message.match(P.regexp)){n.params["params.error.original"]=J[0];r=P.groups;P={};for(f=0;f<r.length;f++)P[r[f]]=J[f+1],n.params["params.error."+r[f]]=J[f+1];n.message=I.messageFn(P);break}n.params||(n.params={});a=AEO();n.params["params.errorServiceSignature"]="msg="+a.messageWeights.length+"&cb="+a.callbackWeights.length;n.params["params.serviceWorker"]="false";_.IE.document&&_.IE.document.querySelectorAll&&
(n.params["params.fscripts"]=String(document.querySelectorAll("script:not([nonce])").length));(new Wa(ncx,"sample")).constructor!==Wa&&(n.params["params.fconst"]="true");window.yterr&&typeof window.yterr==="function"&&window.yterr(n);if(n.sampleWeight!==0&&!KYG.has(n.message)){if(N&&_.K("web_enable_error_204"))FYE(z===void 0?"ERROR":z,n);else{z=z===void 0?"ERROR":z;z==="ERROR"?(HU1.publish("handleError",n),_.K("record_app_crashed_web")&&bUM===0&&n.sampleWeight===1&&(bUM++,N={appCrashType:"APP_CRASH_TYPE_BREAKPAD"},
_.K("report_client_error_with_app_crash_ks")||(N.systemHealth={crashData:{clientError:{logMessage:{message:n.message}}}}),_.x0("appCrashed",N)),hpd++):z==="WARNING"&&HU1.publish("handleWarning",n);if(_.K("kevlar_gel_error_routing")){N=z;u=u===void 0?{}:u;b:{a=_.C(Vrd);for(I=a.next();!I.done;I=a.next())if(T9(I.value.toLowerCase())){a=!0;break b}a=!1}if(a)u=void 0;else{I={stackTrace:n.stack};n.fileName&&(I.filename=n.fileName);a=n.lineNumber&&n.lineNumber.split?n.lineNumber.split(":"):[];a.length!==
0&&(a.length!==1||isNaN(Number(a[0]))?a.length!==2||isNaN(Number(a[0]))||isNaN(Number(a[1]))||(I.lineNumber=Number(a[0]),I.columnNumber=Number(a[1])):I.lineNumber=Number(a[0]));a={level:"ERROR_LEVEL_UNKNOWN",message:n.message,errorClassName:n.name,sampleWeight:n.sampleWeight};N==="ERROR"?a.level="ERROR_LEVEL_ERROR":N==="WARNING"&&(a.level="ERROR_LEVEL_WARNNING");I={isObfuscated:!0,browserStackInfo:I};u.pageUrl=window.location.href;u.kvPairs=[];_.Xw("FEXP_EXPERIMENTS")&&(u.experimentIds=_.Xw("FEXP_EXPERIMENTS"));
J=_.Xw("LATEST_ECATCHER_SERVICE_TRACKING_PARAMS");if(!Ne7("web_disable_gel_stp_ecatcher_killswitch")&&J)for(r=_.C(Object.keys(J)),P=r.next();!P.done;P=r.next())P=P.value,u.kvPairs.push({key:P,value:String(J[P])});if(J=n.params)for(r=_.C(Object.keys(J)),P=r.next();!P.done;P=r.next())P=P.value,u.kvPairs.push({key:"client."+P,value:String(J[P])});J=_.Xw("SERVER_NAME");r=_.Xw("SERVER_VERSION");J&&r&&(u.kvPairs.push({key:"server.name",value:J}),u.kvPairs.push({key:"server.version",value:r}));u={errorMetadata:u,
stackTrace:I,logMessage:a}}u&&(_.x0("clientError",u),(N==="ERROR"||_.K("errors_flush_gel_always_killswitch"))&&_.va())}_.K("suppress_error_204_logging")||FYE(z,n)}try{KYG.add(n.message)}catch(d){}Bi$++}}};
FYE=function(a,z){var I=z.params||{};a={urlParams:{a:"logerror",t:"jserror",type:z.name,msg:z.message.substr(0,250),line:z.lineNumber,level:a,"client.name":I.name},postParams:{url:_.Xw("PAGE_NAME",window.location.href),file:z.fileName},method:"POST"};I.version&&(a["client.version"]=I.version);if(a.postParams){z.stack&&(a.postParams.stack=z.stack);z=_.C(Object.keys(I));for(var J=z.next();!J.done;J=z.next())J=J.value,a.postParams["client."+J]=I[J];if(I=_.Xw("LATEST_ECATCHER_SERVICE_TRACKING_PARAMS"))for(z=
_.C(Object.keys(I)),J=z.next();!J.done;J=z.next())J=J.value,a.postParams[J]=I[J];(I=_.Xw("LAVA_VERSION"))&&(a.postParams["lava.version"]=I);I=_.Xw("SERVER_NAME");z=_.Xw("SERVER_VERSION");I&&z&&(a.postParams["server.name"]=I,a.postParams["server.version"]=z)}_.Ez(_.Xw("ECATCHER_REPORT_HOST","")+"/error_204",a)};
_.QKG=function(a,z){z=z===void 0?"ERROR":z;var I=I===void 0?{}:I;var J=_.DH("ytbin.polymer.shared.lib.tampering.info");J&&(J=J())&&(I["params.tamperingInfo"]=J.sort().join(","));_.Gx(a,z,void 0,void 0,!0,I)};
_.Tx=function(a){var z=_.dO.apply(1,arguments);a.args||(a.args=[]);Array.isArray(a.args)&&a.args.push.apply(a.args,_.ih(z))};
SNG=function(a){a.level="IGNORED"};
iUG=function(a,z){OU0.push(a);z();OU0.pop()};
Uw=function(a,z){for(var I in z)z.hasOwnProperty(I)&&(a=_.oO(a,I,z[I]));return a};
_.xh3=function(a,z,I){I=I===void 0?!1:I;if(!a)return null;if(a.adInfoDialogEndpoint||a.backstageImageUploadEndpoint||a.confirmDialogEndpoint||a.clientActionEndpoint||a.createBackstagePostDialogEndpoint||a.createCommentReplyDialogEndpoint||a.flowEndpoint||a.guideBuilderEndpoint||a.liveChatDialogEndpoint||a.modalEndpoint||a.openPopupAction||a.shareEndpoint||a.shareEntityEndpoint||a.showLiveChatItemEndpoint||a.subscriptionManagerEndpoint||a.unlimitedCreateFamilyEndpoint||a.unlimitedFamilyFlowEndpoint||
a.updateCommentDialogEndpoint||a.updateCommentReplyDialogEndpoint||a.userFeedbackEndpoint||a.videoEditorEndpoint||a.ypcCancelSurveyEndpoint)return z=_.Ib("polymer_report_client_url_requested_rate"),!I&&Math.random()<z&&_.Xd(new _.Fn("urlForEndpoint used on client endpoint",a)),null;var J=_.Ib("polymer_report_missing_web_navigation_endpoint_rate");if(a.liveChatEndpoint||a.liveChatReplayEndpoint)J=0;if(!a.commandMetadata&&!a.clickTrackingParams&&Math.random()<J){var r={},P;for(P in a)r[P]="1";_.Xd(new _.Fn("Missing navigation data",
r))}r="";if(a.commandMetadata&&a.commandMetadata.webCommandMetadata&&a.commandMetadata.webCommandMetadata.url)r=a.commandMetadata.webCommandMetadata.url;else if(a.searchEndpoint)Math.random()<J&&_.Xd(new _.Fn("Should not manually handle search",a)),r="/results?search_query="+encodeURIComponent(a.searchEndpoint.query).replace(/%20/g,"+"),a.searchEndpoint.params&&(r+="&sp="+a.searchEndpoint.params);else if(a.watchEndpoint)Math.random()<J&&_.Xd(new _.Fn("Should not manually handle watch",a)),r="/watch?v="+
a.watchEndpoint.videoId,a.watchEndpoint.playlistId&&(r+="&list="+a.watchEndpoint.playlistId),a.watchEndpoint.index&&(r+="&index="+a.watchEndpoint.index),a.watchEndpoint.startTimeSeconds&&(r+="&t="+a.watchEndpoint.startTimeSeconds);else if(a.browseEndpoint)J=a.browseEndpoint.browseId,(P=a.browseEndpoint.canonicalBaseUrl)?r=P:J&&(r=J.substr(0,2),r=r==="FE"?J==="FEwhat_to_watch"?"/":J==="FEmy_videos"?"/my_videos":"/feed/"+J.substr(2):r==="VL"?"/playlist?list="+J.substr(2):"/channel/"+J),r&&a.browseEndpoint.query&&
(r=Uw(r+"/search",{query:a.browseEndpoint.query})),r&&a.browseEndpoint.params&&(r=Uw(r,{params:a.browseEndpoint.params}));else{if(a.urlEndpoint)return a.urlEndpoint.url;a.signInEndpoint?(r="https://accounts.google.com/ServiceLogin",J={},_.x8.extend(J,z||{},{"continue":window.location.href.split("#")[0],action_handle_signin:!0,passive:!0}),z=J):a.uploadEndpoint?r="//www.youtube.com/upload":a.liveChatEndpoint?(r=a.liveChatEndpoint,J=_.x8.clone(r),_.md(r.continuation)&&(P=Object.keys(r.continuation)[0],
J.continuation=r.continuation[P].continuation),r=Uw("/youtubei/v1/live_chat/get_live_chat",J)):a.liveChatReplayEndpoint?(r=_.x8.clone(a.liveChatReplayEndpoint),r.currentPlayerState&&(_.x8.extend(r,r.currentPlayerState),delete r.currentPlayerState),r=Uw("/youtubei/v1/live_chat/get_live_chat_replay",r)):a.liveChatItemContextMenuEndpoint?r=Uw("/youtubei/v1/live_chat/get_item_context_menu",a.liveChatItemContextMenuEndpoint):a.liveChatPurchaseMessageEndpoint?r=Uw("/youtubei/v1/live_chat/get_live_chat_message_buy_flow",
a.liveChatPurchaseMessageEndpoint):a.openSuperStickerBuyFlowCommand?r=Uw("/youtubei/v1/live_chat/get_live_chat_super_sticker_buy_flow",a.openSuperStickerBuyFlowCommand):a.videoEditEndpoint?r=Uw("/edit",{video_id:a.videoEditEndpoint.videoId}):a.liveDashboardEndpoint?r=a.liveDashboardEndpoint.videoId?Uw("/live_dashboard",{v:a.liveDashboardEndpoint.videoId}):"/live_dashboard":a.signalNavigationEndpoint&&a.signalNavigationEndpoint.signal&&a.signalNavigationEndpoint.signal==="WEBCAM"?r="/webcam":a.getPdgBuyFlowCommand&&
(r=Uw(a.getPdgBuyFlowCommand.buyflowApiPath,{params:a.getPdgBuyFlowCommand.params}))}return r||I?Uw(r,z||{}):(_.Xd(new _.Fn("Error: Can't construct url for endpoint","keys:"+Object.keys(a).sort().join(","),a)),null)};
vcd=function(a){if(a){if(a.browseEndpoint)return!!a.browseEndpoint.nofollow;if(a.watchEndpoint)return!!a.watchEndpoint.nofollow;if(a.urlEndpoint)return!!a.urlEndpoint.nofollow}return!1};
_.$h0=function(a,z){var I=z+a,J=GIE.get(I);if(J)return J;a=z+"-"+a.replace(/([A-Z])/g,"-$1").toLowerCase();GIE.set(I,a);return a};
XnE=function(a){var z=_.v3(a,"action")||_.v3(a,"command")||_.v3(a,"endpoint");if(!z)return null;z=_.$h0(z,"yt");_.H(a,_.DR)&&(z+="-"+_.H(a,_.DR).signal.toLowerCase().replace(/_/g,"-"));return z};
ocM=function(a){try{var z=Object.keys(a)}catch(r){return[]}for(var I=0;I<z.length;I++){var J=z[I];if(Ti7.test(J)||dhp.test(J))return WY0(a[J])}return[]};
WY0=function(a){return a.command?[a.command]:a.onExecutionAction?[a.onExecutionAction]:a.onResponseReceivedCommand?[a.onResponseReceivedCommand]:a.updateFlowCommand?[a.updateFlowCommand]:a.clientActions?a.clientActions:a.action?[a.action]:a.actions||a.commands||a.onResponseReceivedActions||a.onResponseReceivedCommands||a.onResponseReceivedEndpoints||[]};
DhG=function(a,z){z=z===void 0?!1:z;var I=_.ab().resolve(_.eL(l9));I||(I=new Uhx,_.ab().addProvider({provide:l9,useValue:I}));return I&&a&&!_.x8.isEmpty(a)?I.getUrl(a,z):""};
RpM=function(a,z,I){I=I===void 0?"":I;if(z){a.data=z;var J=DhG(z);J?(_.Ua(a,J),vcd(z)||!YS(J)?a.rel="nofollow":a.removeAttribute("rel"),_.H(z,_.pv)&&_.H(z,_.pv).target==="TARGET_NEW_WINDOW"?a.target="_blank":I?a.target=I:a.removeAttribute("target")):(a.removeAttribute("href"),a.removeAttribute("rel"),a.removeAttribute("target"))}};
_.k0=function(a,z){var I=kl;if(Fp())LY7(a,function(){var P=_.dO.apply(0,arguments);xX(I,function(){z.apply(null,_.ih(P))})});
else{var J=_.w2.getInstance(),r=xS(z);eFM(function(){r.value=z});
_.QO(function(){var P={},N=_.m_(J,(P[a]=function(){var u=_.dO.apply(0,arguments);xX(I,function(){r.value.apply(r,_.ih(u))})},P));
return function(){var u={};_.y4(J,(u[a]="",u),N)}})}};
_.Mm=function(a,z){return lc$(a,!1,z)};
_.ca=function(a,z){return lc$(a,!0,z)};
lc$=function(a,z,I){return Fp()?pnG(a,z,I):wn7(a,z,I)};
wn7=function(a,z,I){return i1(function(){return pnG(a,z,I)})};
pnG=function(a,z,I){var J=Ml0(function(r){J.value=r;var P=function(){var N=ze(null);try{return I==null?void 0:I(r)}finally{ze(N)}}();
return function(){P==null||P()}});
J.__expectedTagName=a;J.__optional=z;J.isIdom=!Fp();return J};
mhm=function(a){var z=kl,I=nW;return{getFn:function(){return function(J){z.isDisposed||bF(function(){return ZT(function(){return a(J)})},I)!==!0&&J.stopPropagation()}}}};
Y0=function(a){if(typeof a.children==="function")return a.children(),null;a=_.C(a.children);for(var z=a.next();!z.done;z=a.next())z=z.value,z();return null};
yE7=function(a){var z;return((z=a.prototype)==null?void 0:z.render)===void 0};
kIG=function(a){return a.items.map(a.children)};
cE$=function(a,z,I){I=I===void 0?!1:I;bF(function(){return MrO(a,z,I)})};
MrO=function(a,z,I){var J=null;fW++;I=(I===void 0?0:I)?YNp:qNp;try{J=I(a,function(){qm(z)}),sf(!1)}catch(r){throw sf(!0),r;
}return J===null?a:J};
qm=function(a){if(a!==void 0&&a!==null)if(a instanceof u1)for(var z=Uf;DT()!=null&&$ZI in DT()&&z.contains(DT());)lF();else if(Array.isArray(a))for(z=_.C(a),a=z.next();!a.done;a=z.next())qm(a.value);else if(a instanceof FG||a instanceof al||"function"==typeof _.cg&&a instanceof _.cg)T30(a.toString());else if(_.jL(a)){if(DT()!==a){var I,J;z=(J=(I=nW)==null?void 0:I.name)!=null?J:"unknown";throw Error("bc`"+a.tagName+"`"+z);}lF()}else if(a!=null&&a.contentKind===JD||a instanceof Dx||cGI(a))for(z=qcM(a),
z=Array.from(z.childNodes),z=_.C(z),a=z.next();!a.done;a=z.next())Uf.appendChild(a.value),lF();else if(Su(a)&&(a=a.toString()),I=typeof a,I==="boolean"||I==="number"||I==="string")T30(a);else if(typeof a==="function"){z=Uf;var r=DT();r&&(r._isSignalTextNode||r._isSafeOrSanitizedHtmlNode)||HLm(z,r,a);lF()}else if(a.type===kIG)qm(a.type(Object.assign({},a.props,{children:a.children[0]})));else{gq.beforeVisit(a);if(typeof a.type==="string"){a:{a.__open||VHG(a.type,a.props.idomKey);r=Uf;for(z in a.props)if(a.props[z]!==
epp){var P=a.props[z];I=mA;I.push(z);I.push(P)}z=eW.attributes;z=z===void 0?eF:z;P=Uf;I=d1(P);XvI(P,I,z);FKE(r,a.props,!0);if((a.props.skip||a.props.skipchildren)&&Uf.hasChildNodes())ScG();else{if(a.type==="style"&&Pdp(a.children)===null){ScG();z=void 0;break a}qm(a.children)}QGp();a.__open&&(a.__open=!1);lVm(r,a.props);z=r}return z}if(a.type===_.eJ)qm(a.children);else if(!ak$(a)){z=a;try{jdG(z)}catch(N){a=N,(P=eW.handleError)==null||P.call.apply(P,[eW].concat(_.ih(vg(a,(r=z.type)==null?void 0:r.TAG_NAME))))}z.__open&&
(QGp(),z.__open=!1)}}};
zkM=function(a,z){var I;yE7(a)?I=new f3(z,a):I=new a(z);I.__type=a;I.__updateContext={nextState:I.state,isForced:!1};return I};
jdG=function(a){var z=a.type,I=z.TAG_NAME;if(z===Y0)a.props.children=a.children,z(a.props);else{a.children.length>0&&(a.props.children=a.children);var J;(J=a.props).idomKey||(J.idomKey=z);if(I){var r=VHG(I,a.props.idomKey);a.__open=!0;var P=r.__instance}P||(P=zkM(z,a.props),P.props=null,r&&(r.__instance=P,P.el=r));var N;I=((N=P.__updateContext)!=null?N:{nextState:P.state,isForced:!1}).nextState;P.__updateContext=void 0;z.getDerivedStateFromProps&&(I=z.getDerivedStateFromProps(a.props,I));P.props=
a.props;P.state=I;N=function(){var u=P;gq.beforeRender(u);var E=u.render(u.props);gq.afterRender(u,E);E?(u.props.idomKey&&(E.props.idomKey=u.props.idomKey),u=E):u=void 0;if(E=u)if(E.__open=a.__open,u=qm(E),a.__open=E.__open,!z.TAG_NAME)if(u)z.TAG_NAME=u.tagName.toLowerCase(),u.__instance=P,P.el=u;else{var O;if((O=P.hooks)==null?0:O.length){var f;(f=eW.handleError)==null||f.call.apply(f,[eW].concat(_.ih(vg(Error("id")))))}}P.didPatch();gq.didPatch(P)};
(I=P.functionComponent)?wad(I,N,P.props.debugInstance):N()}};
ak$=function(a){var z=a.type;if(!yE7(z)||z===Y0||z.componentType===KW)return!1;a.props.children=a.children.length>1?a.children:a.children[0];var I,J=(I=a.props.idomKey)!=null?I:a.type,r;if(DT()&&((r=DT()[C3])==null?void 0:r.key)===J){var P=DT(),N=P[C3];if(!N)throw Error("ac`"+P.tagName);var u;(u=N.updateSignalsFromIdomProps)==null||u.call(N,a.props);Ik7(N);return!0}if(JQi.has(z.name))throw u=z.name,z=(N=(P=nW)==null?void 0:P.name)!=null?N:"unknown",Error("$b`"+u+"`"+z);QAM(a.type,a.props,a.children);
a.props.renderedFromIdom=!0;(u=wad(a.type,function(){return f1d(a.type,a.props)},a.props.debugInstance))&&rQM(u);
return!0};
PmM=function(a){for(var z=0;z<tD(a).length;z++)lF()};
Ik7=function(a){var z=Zc$();if(z)PmM(z);else for(var I=0;I<a.numNodes;I++)(z=Zc$())?PmM(z):lF()};
Zc$=function(){var a;return(a=DT()[C3])==null?void 0:a.sourceDynamicRange};
rQM=function(a){a=mrx(a);a=Array.isArray(a)?a:[a];a=_.C(a);for(var z=a.next();!z.done;z=a.next())Uf.insertBefore(z.value,DT()),lF()};
CmO=function(a){var z=sAi(),I=i1(function(){return{value:typeof a==="function"?a():a}});
return[I.value,function(J){if(Oe!==null){var r;(r=eW.handleError)==null||r.call.apply(r,[eW].concat(_.ih(vg(Error("jd")))))}I.value=typeof J==="function"?J(I.value):J;z.__updateContext={nextState:z.state,isForced:!0};J=_.MC(z.effectContext);r=aL(!1);try{if(z.el){var P,N={},u=(N.props=z.props,N.type=z.__type,N.children=(P=z.props.children)!=null?P:[],N[qI]=!0,N);try{cE$(z.el,u,!0)}catch(f){var E,O;(O=eW.handleError)==null||O.call.apply(O,[eW].concat(_.ih(vg(f,(E=z.__type)==null?void 0:E.TAG_NAME))))}}}finally{aL(r),
_.MC(J)}}]};
aG=function(a,z){var I=kl,J=function(r){xX(I,function(){z(r)})};
window.addEventListener(a,J,void 0);_.V3(function(){window.removeEventListener(a,J,void 0)})};
_.z$=function(a){var z=kl;return function(I){var J,r=(J=a.observer)!=null?J:_.ab().resolve(jH);J=Ns3(I);var P=[];a.showOption&&P.push(r.observe(I,function(){xX(z,function(){a.visibilityCallback(!0,I)})},a.showOption));
a.hideOption&&P.push(r.observe(I,function(){xX(z,function(){a.visibilityCallback(!1,I)})},a.hideOption));
a.prescanOption&&a.prescanCallback&&P.push(r.observe(I,function(){xX(z,function(){a.prescanCallback()})},a.prescanOption));
var N;J.visibilityMonitorKeys=((N=J.visibilityMonitorKeys)!=null?N:[]).concat(P)}};
Ns3=function(a){var z;return(z=a.polymerController)!=null?z:a};
_.IG=function(a){a.componentType=KW};
BsG=function(a,z){var I=t80;return _.B(_.eJ,null,ACM(eW.enableLazyTsx,function(){return _.B(uK1,{id:I,value:a,children:z})},function(){var J=Esp(I,a);
qC(J);J=_.MC(J);try{return z()}finally{_.MC(J)}}))};
uK1=function(a){var z=a.children;a=Esp(a.id,a.value);qC(a);a=_.MC(a);try{return _.B(_.eJ,null,Ee(z()))}finally{_.MC(a)}};
Esp=function(a,z){return Object.assign(Object.create(gsd),{id:a,contextValue:z})};
Oc3=function(a){var z,I=kl;_.iF(function(){var J=_.MC(I),r=aL(!z);try{if(z)cE$(z,a.children(),!0);else if(z=Ee(a.children()),!(z instanceof Element))throw Error("kd");}finally{aL(r),_.MC(J)}});
return z};
_.fkm=function(a,z){var I;z=Q3(function(){var J=aL(!0);fW++;try{I=tD(a()),sf(!1)}catch(r){throw sf(!0),r;}finally{aL(J)}},z===void 0?!1:z);
return[I,z]};
sd1=function(a){a=a.buf.charCodeAt(a.pos++);return AQ1[a]};
JG=function(a){var z=0,I=0;do{var J=sd1(a);z|=(J&31)<<I;I+=5}while(J&32);return z<0?z+4294967296:z};
Fy0=function(a,z,I){ns3(a,z);a[z][Ky$].unshift(I)};
ns3=function(a,z){if(!a[z]||!a[z][Ky$]){var I=a[z],J=I?[I]:[];a[z]=function(){for(var r=_.C(J),P=r.next();!P.done;P=r.next())P.value.apply(this,arguments)};
a[z][Ky$]=J}};
HcG=function(a){if(!a)return[];var z=[];a=_.C(a);for(var I=a.next();!I.done;I=a.next())I=I.value,Array.isArray(I)?z.push.apply(z,_.ih(HcG(I))):z.push(I);return z};
_.Pv=function(a,z){if(a&&bcd.test(a)||a==="//")return a;if(hk7===void 0){hk7=!1;try{var I=new URL("b","http://a");I.pathname="c%20d";hk7=I.href==="http://a/c%20d"}catch(J){}}z||(z=document.baseURI||window.location.href);if(hk7)try{return(new URL(a,z)).href}catch(J){return a}r3||(r3=document.implementation.createHTMLDocument("temp"),r3.base=r3.createElement("base"),r3.head.appendChild(r3.base),r3.anchor=r3.createElement("a"),r3.body.appendChild(r3.anchor));r3.base.href=z;r3.anchor.href=a;return r3.anchor.href||
a};
Qdd=function(a,z){return a.replace(V8d,function(I,J,r,P){return J+"'"+_.Pv(r.replace(/["']/g,""),z)+"'"+P})};
S1I=function(a){return a.substring(0,a.lastIndexOf("/")+1)};
vsx=function(){ic$=!1;for(var a=ZV.length,z=0;z<a;z++){var I=ZV[z];if(I)try{I()}catch(J){setTimeout(function(){throw J;})}}ZV.splice(0,a);
xA1+=a};
_._regLog$$module$third_party$javascript$polymer$v2$polymer$lib$utils$telemetry=function(a){console.log("["+a.is+"]: registered")};
$AG=function(a){G0x.push(a)};
C6=function(a){return X0G[a]||(X0G[a]=a.indexOf("-")<0?a:a.replace(TsG,function(z){return z[1].toUpperCase()}))};
Nr=function(a){return X0G[a]||(X0G[a]=a.replace(dA0,"-$1").toLowerCase())};
Wyx=function(a,z){var I=z.parentInfo&&Wyx(a,z.parentInfo);if(I)for(a=I.firstChild,I=0;a;a=a.nextSibling){if(z.parentIndex===I++)return a}else return a};
os1=function(a,z){a=a._methodHost||a;return function(I){if(a[z])a[z](I,I.detail);else console.warn("listener method `"+z+"` not defined")}};
tG=function(a){return a.indexOf(".")>=0};
ua=function(a){var z=a.indexOf(".");return z===-1?a:a.slice(0,z)};
UA0=function(a,z){return a.indexOf(z+".")===0};
Ec=function(a,z){return z.indexOf(a+".")===0};
Bv=function(a,z,I){return z+I.slice(a.length)};
DAi=function(a,z){return a===z||UA0(a,z)||Ec(a,z)};
g3=function(a){if(Array.isArray(a)){for(var z=[],I=0;I<a.length;I++)for(var J=a[I].toString().split("."),r=0;r<J.length;r++)z.push(J[r]);return z.join(".")}return a};
Rkp=function(a){return Array.isArray(a)?g3(a).split("."):a.toString().split(".")};
Oc=function(a,z,I){z=Rkp(z);for(var J=0;J<z.length;J++){if(!a)return;a=a[z[J]]}I&&(I.path=z.join("."));return a};
Ly1=function(a,z,I){var J=Rkp(z),r=J[J.length-1];if(J.length>1){for(z=0;z<J.length-1;z++)if(a=a[J[z]],!a)return;a[r]=I}else a[z]=I;return J.join(".")};
lk7=function(a,z,I){var J=a[z];if(!J)J=a[z]={};else if(!a.hasOwnProperty(z)&&(J=a[z]=Object.create(a[z]),I))for(var r in J)for(a=J[r],z=J[r]=Array(a.length),I=0;I<a.length;I++)z[I]=a[I];return J};
AG=function(a,z,I,J,r,P){if(z){var N=!1,u=f6++,E;for(E in I){var O=r?ua(E):E;if(O=z[O])for(var f=0,A=O.length,n=void 0;f<A&&(n=O[f]);f++)n.info&&n.info.lastRun===u||r&&!p03(E,n.trigger)||(n.info&&(n.info.lastRun=u),n.fn(a,E,I,J,n.info,r,P),N=!0)}return N}return!1};
p03=function(a,z){if(z){var I=z.name;return I==a||!(!z.structured||!UA0(I,a))||!(!z.wildcard||!Ec(I,a))}return!0};
w03=function(a,z,I,J,r){z=typeof r.method==="string"?a[r.method]:r.method;I=r.property;z?z.call(a,a.__data[I],J[I]):r.dynamicFn||console.warn("observer method `"+r.method+"` not defined")};
mAd=function(a,z,I,J){I={value:I,queueProperty:!0};J&&(I.path=J);(0,_.sc)(a).dispatchEvent(new CustomEvent(z,{detail:I}))};
yQi=function(a,z,I,J,r,P){P=(J=(P?ua(z):z)!=z?z:null)?Oc(a,J):a.__data[z];J&&P===void 0&&(P=I[z]);mAd(a,r.eventName,P,J)};
k0x=function(a,z,I,J,r){I=a.__data[z];n6&&(I=n6(I,r.attrName,"attribute",a));a._propertyToAttribute(z,r.attrName,I)};
cQ0=function(a){var z=a.constructor.__orderedComputedDeps;if(!z){z=new Map;for(var I=a.__computeEffects,J=M8m(a),r=J.counts,P=J.ready,N=J.total;J=P.shift();)z.set(J,z.size),(J=I[J])&&J.forEach(function(u){u=u.info.methodInfo;--N;--r[u]===0&&P.push(u)});
N!==0&&console.warn("Computed graph for "+a.localName+" incomplete; circular?");a.constructor.__orderedComputedDeps=z}return z};
M8m=function(a){var z=a.__computeInfo,I={};a=a.__computeEffects;var J=[],r=0,P;for(P in z){var N=z[P];r+=I[P]=N.args.filter(function(E){return!E.literal}).length+(N.dynamicFn?1:0)}for(var u in a)z[u]||J.push(u);
return{counts:I,ready:J,total:r}};
q1M=function(a,z,I,J,r){z=Y1M(a,z,I,J,r);if(z===Fk)return!1;r=r.methodInfo;if(a.__dataHasAccessor&&a.__dataHasAccessor[r])return a._setPendingProperty(r,z,!0);a[r]=z;return!1};
jvI=function(a,z,I,J,r,P,N){I.bindings=I.bindings||[];J={kind:J,target:r,parts:P,literal:N,isCompound:P.length!==1};I.bindings.push(J);J.target&&J.kind!="attribute"&&J.kind!="text"&&!J.isCompound&&J.parts[0].mode==="{"&&(I=J.parts[0],P=I.negate,J.listenerEvent=I.event||Nr(r)+"-changed",J.listenerNegate=P);r=z.nodeInfoList.length;for(I=0;I<J.parts.length;I++){var u=J.parts[I];u.compoundIndex=I;P=a;N=z;var E=J,O=u,f=r;if(!O.literal)if(E.kind==="attribute"&&E.target[0]==="-")console.warn("Cannot set attribute "+
E.target+' because "-" is not a valid attribute starting character');else for(u=O.dependencies,E={index:f,binding:E,part:O,evaluator:P},O=0;O<u.length;O++)f=u[O],typeof f=="string"&&(f=ekG(f),f.wildcard=!0),P._addTemplatePropertyEffect(N,f.rootProperty,{fn:ayp,info:E,trigger:f})}};
ayp=function(a,z,I,J,r,P,N){N=N[r.index];var u=r.binding,E=r.part;P&&E.source&&z.length>E.source.length&&u.kind=="property"&&!u.isCompound&&N.__isPropertyEffectsClient&&N.__dataHasAccessor&&N.__dataHasAccessor[u.target]?(I=I[z],z=Bv(E.source,u.target,z),N._setPendingPropertyOrPath(z,I,!1,!0)&&a._enqueueClient(N)):(z=r.evaluator._evaluateBinding(a,E,z,I,J,P),z!==Fk&&(u.isCompound&&(I=N.__dataCompoundStorage[u.target],I[E.compoundIndex]=z,z=I.join("")),u.kind==="attribute"||u.target!=="textContent"&&
(u.target!=="value"||N.localName!=="input"&&N.localName!=="textarea")||(z=z==void 0?"":z),E=z,n6&&(E=n6(E,u.target,u.kind,N)),u.kind=="attribute"?a._valueToNodeAttribute(N,E,u.target):(u=u.target,N.__isPropertyEffectsClient&&N.__dataHasAccessor&&N.__dataHasAccessor[u]?N.__readOnly&&N.__readOnly[u]||N._setPendingProperty(u,E)&&a._enqueueClient(N):a._setUnmanagedPropertyToNode(N,u,E))))};
zOm=function(a,z,I){if(I.listenerEvent){var J=I.parts[0];a.addEventListener(I.listenerEvent,function(r){var P=I.target,N=J.source,u=J.negate,E=r.detail,O=E&&E.path;O?(N=Bv(P,N,O),r=E&&E.value):r=r.currentTarget[P];z.__readOnly&&z.__readOnly[N]||!z._setPendingPropertyOrPath(N,u?!r:r,!0,!!O)||E&&E.queueProperty||z._invalidateProperties()})}};
Iym=function(a,z,I,J,r,P){P=z.static||P&&(typeof P!=="object"||P[z.methodName]);r={methodName:z.methodName,args:z.args,methodInfo:r,dynamicFn:P};for(var N=0,u=void 0;N<z.args.length&&(u=z.args[N]);N++)u.literal||a._addPropertyEffect(u.rootProperty,I,{fn:J,info:r,trigger:u});P&&a._addPropertyEffect(z.methodName,I,{fn:J,info:r});return r};
Y1M=function(a,z,I,J,r){J=a._methodHost||a;var P=J[r.methodName];if(P)return a=a._marshalArgs(r.args,z,I),a===Fk?Fk:P.apply(J,a);r.dynamicFn||console.warn("method `"+r.methodName+"` not defined")};
JI3=function(a){for(var z="",I=0;I<a.length;I++)z+=a[I].literal||"";return z};
ZhG=function(a){if(a=a.match(/([^\s]+?)\(([\s\S]*)\)/)){var z={methodName:a[1],static:!0,args:rIi};return a[2].trim()?PgG(a[2].replace(/\\,/g,"&comma;").split(","),z):z}return null};
PgG=function(a,z){z.args=a.map(function(I){I=ekG(I);I.literal||(z.static=!1);return I},this);
return z};
ekG=function(a){a=a.trim().replace(/&comma;/g,",").replace(/\\(.)/g,"$1");var z={name:a,value:"",literal:!1},I=a[0];I==="-"&&(I=a[1]);I>="0"&&I<="9"&&(I="#");switch(I){case "'":case '"':z.value=a.slice(1,-1);z.literal=!0;break;case "#":z.value=Number(a),z.literal=!0}z.literal||(z.rootProperty=ua(a),z.structured=tG(a),z.structured&&(z.wildcard=a.slice(-2)==".*",z.wildcard&&(z.name=a.slice(0,-2))));return z};
CgG=function(a,z,I){a=Oc(a,I);a===void 0&&(a=z[I]);return a};
N0d=function(a,z,I,J){J={indexSplices:J};Hv&&!a._overrideLegacyUndefined&&(z.splices=J);a.notifyPath(I+".splices",J);a.notifyPath(I+".length",z.length);Hv&&!a._overrideLegacyUndefined&&(J.indexSplices=[])};
ba=function(a,z,I,J,r,P){N0d(a,z,I,[{index:J,addedCount:r,removed:P,object:z,type:"splice"}])};
tid=function(a){a=Qdd((a.body?a.body:a).textContent,a.baseURI);var z=document.createElement("style");z.textContent=a;return z};
EKE=function(a){a=a.trim().split(/\s+/);for(var z=[],I=0;I<a.length;I++)z.push.apply(z,_.ih(uxE(a[I])));return z};
uxE=function(a){var z=hG.import(a);if(!z)return console.warn("Could not find style data in module named",a),[];if(z._styles===void 0){a=[];a.push.apply(a,_.ih(_._stylesFromModuleImports$$module$third_party$javascript$polymer$v2$polymer$lib$utils$style_gather(z)));var I=z.querySelector("template");I&&a.push.apply(a,_.ih(B0x(I,z.assetpath)));z._styles=a}return z._styles};
B0x=function(a,z){if(!a._styles){for(var I=[],J=a.content.querySelectorAll("style"),r=0;r<J.length;r++){var P=J[r],N=P.getAttribute("include");N&&I.push.apply(I,_.ih(EKE(N).filter(function(u,E,O){return O.indexOf(u)===E})));
z&&(P.textContent=Qdd(P.textContent,z));I.push(P)}a._styles=I}return a._styles};
gKG=function(a){return(a=hG.import(a))?_._stylesFromModuleImports$$module$third_party$javascript$polymer$v2$polymer$lib$utils$style_gather(a):[]};
_._stylesFromModuleImports$$module$third_party$javascript$polymer$v2$polymer$lib$utils$style_gather=function(a){var z=[];a=a.querySelectorAll("link[rel=import][type~=css]");for(var I=0;I<a.length;I++){var J=a[I];if(J.import){var r=J.import;if((J=J.hasAttribute("shady-unscoped"))&&!r._unscopedStyle){var P=tid(r);P.setAttribute("shady-unscoped","");r._unscopedStyle=P}else r._style||(r._style=tid(r));z.push(J?r._unscopedStyle:r._style)}}return z};
fyM=function(a){a=a.trim().split(/\s+/);for(var z="",I=0;I<a.length;I++)z+=Oh$(a[I]);return z};
Oh$=function(a){var z=hG.import(a);if(z&&z._cssText===void 0){var I=_._cssFromModuleImports$$module$third_party$javascript$polymer$v2$polymer$lib$utils$style_gather(z),J=z.querySelector("template");J&&(I+=AII(J,z.assetpath));z._cssText=I||null}z||console.warn("Could not find style data in module named",a);return z&&z._cssText||""};
AII=function(a,z){var I="";a=B0x(a,z);for(z=0;z<a.length;z++){var J=a[z];J.parentNode&&J.parentNode.removeChild(J);I+=J.textContent}return I};
_._cssFromModuleImports$$module$third_party$javascript$polymer$v2$polymer$lib$utils$style_gather=function(a){var z="";a=_._stylesFromModuleImports$$module$third_party$javascript$polymer$v2$polymer$lib$utils$style_gather(a);for(var I=0;I<a.length;I++)z+=a[I].textContent;return z};
VL=function(a,z){return{index:a,removed:[],addedCount:z}};
nKO=function(a,z,I,J){var r=0,P=0,N=0,u=0,E=Math.min(z-r,J-P);if(r==0&&P==0)a:{for(N=0;N<E;N++)if(a[N]!==I[N])break a;N=E}if(z==a.length&&J==I.length){u=a.length;for(var O=I.length,f=0;f<E-N&&sv7(a[--u],I[--O]);)f++;u=f}r+=N;P+=N;z-=u;J-=u;if(z-r==0&&J-P==0)return[];if(r==z){for(z=VL(r,0);P<J;)z.removed.push(I[P++]);return[z]}if(P==J)return[VL(r,z-r)];E=r;N=P;J=J-N+1;u=z-E+1;z=Array(J);for(O=0;O<J;O++)z[O]=Array(u),z[O][0]=O;for(O=0;O<u;O++)z[0][O]=O;for(O=1;O<J;O++)for(f=1;f<u;f++)if(a[E+f-1]===
I[N+O-1])z[O][f]=z[O-1][f-1];else{var A=z[O-1][f]+1,n=z[O][f-1]+1;z[O][f]=A<n?A:n}E=z.length-1;N=z[0].length-1;J=z[E][N];for(a=[];E>0||N>0;)E==0?(a.push(2),N--):N==0?(a.push(3),E--):(u=z[E-1][N-1],O=z[E-1][N],f=z[E][N-1],A=O<f?O<u?O:u:f<u?f:u,A==u?(u==J?a.push(0):(a.push(1),J=u),E--,N--):A==O?(a.push(3),E--,J=O):(a.push(2),N--,J=f));a.reverse();z=void 0;E=[];for(N=0;N<a.length;N++)switch(a[N]){case 0:z&&(E.push(z),z=void 0);r++;P++;break;case 1:z||(z=VL(r,0));z.addedCount++;r++;z.removed.push(I[P]);
P++;break;case 2:z||(z=VL(r,0));z.addedCount++;r++;break;case 3:z||(z=VL(r,0)),z.removed.push(I[P]),P++}z&&E.push(z);return E};
K3M=function(a,z){return nKO(a,a.length,z,z.length)};
sv7=function(a,z){return a===z};
Hhm=function(a){if(a instanceof F33)return a.value;throw Error("Bd`"+a);};
bhi=function(a,z){for(var I in z)I===null?a.style.removeProperty(I):a.style.setProperty(I,z[I])};
hOG=function(a,z){return(a=window.getComputedStyle(a).getPropertyValue(z))?a.trim():""};
ihE=function(a){requestAnimationFrame(function(){Vi3?Vi3(a):(Qv1||(Qv1=new Promise(function(z){SJp=z}),document.readyState==="complete"?SJp():document.addEventListener("readystatechange",function(){document.readyState==="complete"&&SJp()})),Qv1.then(function(){a&&a()}))})};
GO3=function(a){xlI=a&&a.shimcssproperties?!1:vK3||!(navigator.userAgent.match(/AppleWebKit\/601|Edge\/15/)||!window.CSS||!CSS.supports||!CSS.supports("box-shadow","0 0 0 var(--foo)"))};
W3p=function(a){if(!($lx.indexOf(a)>-1)&&a!=="touchend"&&Xq7&&T0M&&dlp)return{passive:!0}};
ROi=function(a){for(var z=oKO?["click"]:$lx,I=0,J;I<z.length;I++)J=z[I],a?(UlE.length=0,document.addEventListener(J,DlM,!0)):document.removeEventListener(J,DlM,!0)};
QL=function(a){var z=a.type;return $lx.indexOf(z)>-1?z==="mousemove"?(z=a.buttons===void 0?1:a.buttons,a instanceof window.MouseEvent&&!L3G&&(z=ly7[a.which]||0),!!(z&1)):(a.button===void 0?0:a.button)===0:!1};
pqG=function(a){if(a.type==="click"){if(a.detail===0)return!0;var z=_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(a);if(!z.nodeType||z.nodeType!==Node.ELEMENT_NODE)return!0;z=z.getBoundingClientRect();var I=a.pageX;a=a.pageY;return!(I>=z.left&&I<=z.right&&a>=z.top&&a<=z.bottom)}return!1};
wqG=function(a,z,I){a.movefn=z;a.upfn=I;document.addEventListener("mousemove",z);document.addEventListener("mouseup",I)};
SH=function(a){document.removeEventListener("mousemove",a.movefn);document.removeEventListener("mouseup",a.upfn);a.movefn=null;a.upfn=null};
mlO=function(a,z){for(var I=document.elementFromPoint(a,z),J=I;J&&J.shadowRoot&&!window.ShadyDOM;){var r=J;J=J.shadowRoot.elementFromPoint(a,z);if(r===J)break;J&&(I=J)}return I};
_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures=function(a){var z=yI$(a);return z.length>0?z[0]:a.target};
_._handleNative$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures=function(a){var z=a.type,I=a.currentTarget.__polymerGestures;if(I&&(I=I[z])){if(!a.__polymerGesturesHandled&&(a.__polymerGesturesHandled={},z.slice(0,5)==="touch")){var J=a.changedTouches[0];z==="touchstart"&&a.touches.length===1&&(kOO=J.identifier);if(kOO!==J.identifier)return;Xq7||(z==="touchstart"||z==="touchmove")&&_._handleTouchAction$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(a)}J=
a.__polymerGesturesHandled;if(!J.skip){for(var r=0,P;r<vv.length;r++)P=vv[r],I[P.name]&&!J[P.name]&&P.flow&&P.flow.start.indexOf(a.type)>-1&&P.reset&&P.reset();for(r=0;r<vv.length;r++)P=vv[r],I[P.name]&&!J[P.name]&&(J[P.name]=!0,P[z](a))}}};
_._handleTouchAction$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures=function(a){var z=a.changedTouches[0],I=a.type;if(I==="touchstart")MiO=z.clientX,cIx=z.clientY,YJ3=!1;else if(I==="touchmove"&&!YJ3){YJ3=!0;I="auto";for(var J=yI$(a),r=0,P;r<J.length;r++)if(P=J[r],P.__polymerGesturesTouchAction){I=P.__polymerGesturesTouchAction;break}J=!1;r=Math.abs(MiO-z.clientX);z=Math.abs(cIx-z.clientY);a.cancelable&&(I==="none"?J=!0:I==="pan-x"?J=z>r:I==="pan-y"&&(J=r>z));J?a.preventDefault():
G$("track")}};
Xk=function(a,z,I){return $v[z]?(_._add$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(a,z,I),!0):!1};
T$=function(a,z,I){return $v[z]?(_._remove$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(a,z,I),!0):!1};
_._add$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures=function(a,z,I){var J=$v[z],r=J.deps,P=J.name,N=a.__polymerGestures;N||(a.__polymerGestures=N={});for(var u=0,E,O;u<r.length;u++)E=r[u],oKO&&$lx.indexOf(E)>-1&&E!=="click"||((O=N[E])||(N[E]=O={_count:0}),O._count===0&&a.addEventListener(E,_._handleNative$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures,W3p(E)),O[P]=(O[P]||0)+1,O._count=(O._count||0)+1);a.addEventListener(z,I);J.touchAction&&_.d3(a,J.touchAction)};
_._remove$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures=function(a,z,I){var J=$v[z],r=J.deps;J=J.name;var P=a.__polymerGestures;if(P)for(var N=0,u,E;N<r.length;N++)u=r[N],(E=P[u])&&E[J]&&(E[J]=(E[J]||1)-1,E._count=(E._count||1)-1,E._count===0&&a.removeEventListener(u,_._handleNative$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures,W3p(u)));a.removeEventListener(z,I)};
qJ7=function(a){vv.push(a);for(var z=0;z<a.emits.length;z++)$v[a.emits[z]]=a};
_._findRecognizerByEvent$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures=function(a){for(var z=0,I;z<vv.length;z++){I=vv[z];for(var J=0,r;J<I.emits.length;J++)if(r=I.emits[J],r===a)return I}return null};
_.d3=function(a,z){Xq7&&a instanceof HTMLElement&&Wv.run(function(){a.style.touchAction=z});
a.__polymerGesturesTouchAction=z};
_._fire$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures=function(a,z,I){z=new Event(z,{bubbles:!0,cancelable:!0,composed:!0});z.detail=I;(0,_.sc)(a).dispatchEvent(z);z.defaultPrevented&&(a=I.preventer||I.sourceEvent)&&a.preventDefault&&a.preventDefault()};
G$=function(a){a=_._findRecognizerByEvent$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(a);a.info&&(a.info.prevent=!0)};
oG=function(a,z,I,J){z&&_._fire$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(z,a,{x:I.clientX,y:I.clientY,sourceEvent:I,preventer:J,prevent:function(r){return G$(r)}})};
eO$=function(a,z,I){if(a.prevent)return!1;if(a.started)return!0;I=Math.abs(a.y-I);return Math.abs(a.x-z)>=5||I>=5};
a87=function(a,z,I){if(z){var J=a.moves[a.moves.length-2],r=a.moves[a.moves.length-1],P=r.x-a.x,N=r.y-a.y,u=0;if(J){var E=r.x-J.x;u=r.y-J.y}_._fire$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(z,"track",{state:a.state,x:I.clientX,y:I.clientY,dx:P,dy:N,ddx:E,ddy:u,sourceEvent:I,hover:function(){return mlO(I.clientX,I.clientY)}})}};
zsi=function(a,z,I){var J=Math.abs(z.clientX-a.x),r=Math.abs(z.clientY-a.y),P=_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(I||z);!P||jsp[P.localName]&&P.hasAttribute("disabled")||!(isNaN(J)||isNaN(r)||J<=25&&r<=25||pqG(z))||a.prevent||_._fire$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(P,"tap",{x:z.clientX,y:z.clientY,sourceEvent:z,preventer:I})};
I8x=function(a,z,I,J,r){var P;r&&(P=typeof I==="object"&&I!==null)&&(J=a.__dataTemp[z]);J=J!==I&&(J===J||I===I);P&&J&&(a.__dataTemp[z]=I);return J};
rY$=function(){if(Uc&&!DV){if(!JY3){JY3=!0;var a=document.createElement("style");a.textContent="dom-bind,dom-if,dom-repeat{display:none;}";document.head.appendChild(a)}return!0}return!1};
ZnO=function(){return PeI};
CeM=function(a,z){PeI=a;Object.setPrototypeOf(a,z.prototype);new z;PeI=null};
NLG=function(a,z){for(var I=0;I<z.length;I++){var J=z[I];if(!!a!=!!J.__hideTemplateChildren__)if(J.nodeType===Node.TEXT_NODE)a?(J.__polymerTextContent__=J.textContent,J.textContent=""):J.textContent=J.__polymerTextContent__;else if(J.localName==="slot")if(a)J.__polymerReplaced__=document.createComment("hidden-slot"),(0,_.sc)((0,_.sc)(J).parentNode).replaceChild(J.__polymerReplaced__,J);else{var r=J.__polymerReplaced__;r&&(0,_.sc)((0,_.sc)(r).parentNode).replaceChild(J,r)}else J.style&&(a?(J.__polymerDisplay__=
J.style.display,J.style.display="none"):J.style.display=J.__polymerDisplay__);J.__hideTemplateChildren__=a;J._showHideChildren&&J._showHideChildren(a)}};
tQ1=function(a){return(a=a.__dataHost)&&a._methodHost||a};
BLp=function(a,z,I){var J=I.mutableData?ugI:RG;L6.mixin&&(J=L6.mixin(J));var r=function(){return J.apply(this,arguments)||this};
_.b(r,J);r.prototype.__templatizeOptions=I;r.prototype._bindTemplate(a);ERd(r,a,z,I);return r};
ssE=function(a,z,I,J){var r=I.forwardHostProp;if(r&&z.hasHostProps){var P=a.localName=="template",N=z.templatizeTemplateClass;if(!N){if(P){var u=I.mutableData?gR3:OnG;N=function(){return u.apply(this,arguments)||this};
_.b(N,u);N=z.templatizeTemplateClass=N}else{var E=a.constructor;N=function(){return E.apply(this,arguments)||this};
_.b(N,E);N=z.templatizeTemplateClass=N}var O=z.hostProps,f;for(f in O)N.prototype._addPropertyEffect("_host_"+f,N.prototype.PROPERTY_EFFECT_TYPES.PROPAGATE,{fn:f8E(r)}),N.prototype._createNotifyingProperty("_host_"+f);la&&J&&AYG(z,I,J)}a.__dataProto&&Object.assign(a.__data,a.__dataProto);if(P)CeM(a,N),a.__dataTemp={},a.__dataPending=null,a.__dataOld=null,a._enableProperties();else{Object.setPrototypeOf(a,N.prototype);z=z.hostProps;for(var A in z)A="_host_"+A,A in a&&(z=a[A],delete a[A],a.__data[A]=
z)}}};
f8E=function(a){return function(z,I,J){a.call(z.__templatizeOwner,I.substring(6),J[I])}};
ERd=function(a,z,I,J){var r=I.hostProps||{},P;for(P in J.instanceProps){delete r[P];var N=J.notifyInstanceProp;N&&a.prototype._addPropertyEffect(P,a.prototype.PROPERTY_EFFECT_TYPES.NOTIFY,{fn:nRG(N)})}if(J.forwardHostProp&&z.__dataHost)for(var u in r)I.hasHostProps||(I.hasHostProps=!0),a.prototype._addPropertyEffect(u,a.prototype.PROPERTY_EFFECT_TYPES.NOTIFY,{fn:K7O()})};
nRG=function(a){return function(z,I,J){a.call(z.__templatizeOwner,z,I,J[I])}};
K7O=function(){return function(a,z,I){a.__dataHost._setPendingPropertyOrPath("_host_"+z,I[z],!0,!0)}};
L6=function(a,z,I){if(p6&&!tQ1(a))throw Error("Hd");I=I||{};if(a.__templatizeOwner)throw Error("Id");a.__templatizeOwner=z;var J=(z?z.constructor:RG)._parseTemplate(a),r=J.templatizeInstanceClass;r||(r=BLp(a,J,I),J.templatizeInstanceClass=r);var P=tQ1(a);ssE(a,J,I,P);I=function(){return r.apply(this,arguments)||this};
_.b(I,r);I.prototype._methodHost=P;I.prototype.__dataHost=a;I.prototype.__templatizeOwner=z;I.prototype.__hostProps=J.hostProps;return I};
AYG=function(a,z,I){I=I.constructor._properties;a=a.propertyEffects;z=z.instanceProps;for(var J in a)if(!(I[J]||z&&z[J]))for(var r=a[J],P=0;P<r.length;P++){var N=r[P].info.part;if(!N.signature||!N.signature.static){console.warn("Property '"+J+"' used in template but not declared in 'properties'; attribute will not be observed.");break}}};
F7O=function(a,z){for(var I;z;)if(I=z.__dataHost?z:z.__templatizeInstance)if(I.__dataHost!=a)z=I.__dataHost;else return I;else z=(0,_.sc)(z).parentNode;return null};
w3=function(a){return a.localName==="slot"};
Hn$=function(){for(var a=mk.prototype,z="cloneNode appendChild insertBefore removeChild replaceChild setAttribute removeAttribute querySelector querySelectorAll attachShadow".split(" "),I={},J=0;J<z.length;I={method$jscomp$33:void 0},J++)I.method$jscomp$33=z[J],a[I.method$jscomp$33]=function(r){return function(){return this.node[r.method$jscomp$33].apply(this.node,arguments)}}(I)};
bn7=function(a,z){for(var I={},J=0;J<z.length;I={name$jscomp$423:void 0},J++)I.name$jscomp$423=z[J],Object.defineProperty(a,I.name$jscomp$423,{get:function(r){return function(){return this.node[r.name$jscomp$423]}}(I),
configurable:!0})};
hsm=function(){for(var a=mk.prototype,z=["textContent","innerHTML","className"],I={},J=0;J<z.length;I={name$jscomp$424:void 0},J++)I.name$jscomp$424=z[J],Object.defineProperty(a,I.name$jscomp$424,{get:function(r){return function(){return this.node[r.name$jscomp$424]}}(I),
set:function(r){return function(P){this.node[r.name$jscomp$424]=P}}(I),
configurable:!0})};
VQp=function(){yL=document.documentElement.getAttribute("dir");yL=document.documentElement.getAttribute("dir");for(var a=0;a<kv.length;a++){var z=kv[a];z.__autoDirOptOut||z.setAttribute("dir",yL)}};
xSM=function(){Mr=!0;requestAnimationFrame(function(){Mr=!1;Qsd(SB7);setTimeout(function(){for(var a=0,z=cv.length;a<z;a++)inm(cv.shift())})})};
Qsd=function(a){for(;a.length;)inm(a.shift())};
inm=function(a){var z=a[0],I=a[1];a=a[2];try{I.apply(z,a)}catch(J){setTimeout(function(){throw J;})}};
_.vRm=function(a,z,I){Mr||xSM();SB7.push([a,z,I])};
_.Yv=function(a,z,I){Mr||xSM();cv.push([a,z,I])};
Xb0=function(a,z){z=z===void 0?!1:z;if(!GLG||!$SE||!GLG.handlesDynamicScoping)return null;var I=$SE.ScopingShim;if(!I)return null;var J=I.scopeForNode(a),r=(0,_.sc)(a).getRootNode(),P=function(N){if((0,_.sc)(N).getRootNode()===r){var u=Array.from(GLG.nativeMethods.querySelectorAll.call(N,"*"));u.push(N);for(N=0;N<u.length;N++){var E=u[N];if((0,_.sc)(E).getRootNode()===r){var O=I.currentScopeForNode(E);O!==J&&(O!==""&&I.unscopeNode(E,O),I.scopeNode(E,J))}}}};
P(a);return z?(z=new MutationObserver(function(N){for(var u=0;u<N.length;u++)for(var E=N[u],O=0;O<E.addedNodes.length;O++){var f=E.addedNodes[O];f.nodeType===Node.ELEMENT_NODE&&P(f)}}),z.observe(a,{childList:!0,
subtree:!0}),z):null};
TLm=function(){document.body.removeAttribute("unresolved")};
DSO=function(a){var z=a=a.replace(dSG,"").replace(W7M,""),I=new oRG;I.start=0;I.end=z.length;for(var J=I,r=0,P=z.length;r<P;r++)if(z[r]==="{"){J.rules||(J.rules=[]);var N=J,u=N.rules[N.rules.length-1]||null;J=new oRG;J.start=r+1;J.parent=N;J.previous=u;N.rules.push(J)}else z[r]==="}"&&(J.end=r+1,J=J.parent||I);return US0(I,a)};
US0=function(a,z){var I=z.substring(a.start,a.end-1);a.parsedCssText=a.cssText=I.trim();a.parent&&(I=z.substring(a.previous?a.previous.end:a.parent.start,a.start-1),I=_._expandUnicodeEscapes$$module$third_party$javascript$polymer$v2$shadycss$src$css_parse(I),I=I.replace(RsG," "),I=I.substring(I.lastIndexOf(";")+1),I=a.parsedSelector=a.selector=I.trim(),a.atRule=I.indexOf("@")===0,a.atRule?I.indexOf("@media")===0?a.type=4:I.match(L71)&&(a.type=7,a.keyframesName=a.selector.split(RsG).pop()):I.indexOf("--")===
0?a.type=1E3:a.type=1);if(I=a.rules)for(var J=0,r=I.length,P=void 0;J<r&&(P=I[J]);J++)US0(P,z);return a};
_._expandUnicodeEscapes$$module$third_party$javascript$polymer$v2$shadycss$src$css_parse=function(a){return a.replace(/\\([0-9a-f]{1,6})\s/gi,function(){for(var z=arguments[1],I=6-z.length;I--;)z="0"+z;return"\\"+z})};
l8G=function(a,z,I){I=I===void 0?"":I;var J="";if(a.cssText||a.rules){var r=a.rules;if(r&&!_._hasMixinRules$$module$third_party$javascript$polymer$v2$shadycss$src$css_parse(r))for(var P=0,N=r.length,u=void 0;P<N&&(u=r[P]);P++)J=l8G(u,z,J);else z?z=a.cssText:(z=a.cssText,z=z.replace(pbI,"").replace(wbd,""),z=z.replace(mSO,"").replace(yYi,"")),(J=z.trim())&&(J="  "+J+"\n")}J&&(a.selector&&(I+=a.selector+" {\n"),I+=J,a.selector&&(I+="}\n\n"));return I};
_._hasMixinRules$$module$third_party$javascript$polymer$v2$shadycss$src$css_parse=function(a){a=a[0];return!!a&&!!a.selector&&a.selector.indexOf("--")===0};
MQm=function(a){if(a=kLE[a])a._applyShimCurrentVersion=a._applyShimCurrentVersion||0,a._applyShimValidatingVersion=a._applyShimValidatingVersion||0,a._applyShimNextVersion=(a._applyShimNextVersion||0)+1};
cYO=function(a){return a._applyShimCurrentVersion===a._applyShimNextVersion};
qB1=function(a){a._applyShimValidatingVersion=a._applyShimNextVersion;a._validating||(a._validating=!0,YBO.then(function(){a._applyShimCurrentVersion=a._applyShimNextVersion;a._validating=!1}))};
auM=function(a){if(!a)return"";typeof a==="string"&&(a=DSO(a));return l8G(a,esx)};
jc1=function(a){!a.__cssRules&&a.textContent&&(a.__cssRules=DSO(a.textContent));return a.__cssRules||null};
IuE=function(a,z,I,J){if(a){var r=!1,P=a.type;if(J&&P===4){var N=a.selector.match(zCm);N&&(window.matchMedia(N[1]).matches||(r=!0))}P===1?z(a):I&&P===7?I(a):P===1E3&&(r=!0);if((a=a.rules)&&!r)for(r=0,P=a.length,N=void 0;r<P&&(N=a[r]);r++)IuE(N,z,I,J)}};
JTG=function(a,z){var I=a.indexOf("var(");if(I===-1)return z(a,"","","");a:{var J=0;var r=I+3;for(var P=a.length;r<P;r++)if(a[r]==="(")J++;else if(a[r]===")"&&--J===0)break a;r=-1}J=a.substring(I+4,r);I=a.substring(0,I);a=JTG(a.substring(r+1),z);P=J.indexOf(",");if(P===-1)return z(I,J.trim(),"",a);r=J.substring(0,P).trim();J=J.substring(P+1).trim();return z(I,r,J,a)};
rTx=function(a){if(qr!==void 0)return qr;if(a.__cssBuild===void 0){var z=a.getAttribute("css-build");if(z)a.__cssBuild=z;else{a:{z=a.localName==="template"?a.content.firstChild:a.firstChild;if(z instanceof Comment&&(z=z.textContent.trim().split(":"),z[0]==="css-build")){z=z[1];break a}z=""}if(z!==""){var I=a.localName==="template"?a.content.firstChild:a.firstChild;I.parentNode.removeChild(I)}a.__cssBuild=z}}return a.__cssBuild||""};
Zxx=function(a,z,I,J){for(var r=z._noAccessors,P=Object.getOwnPropertyNames(z),N=0;N<P.length;N++){var u=P[N];if(!(u in J))if(r)a[u]=z[u];else{var E=Object.getOwnPropertyDescriptor(z,u);E&&(E.configurable=!0,Object.defineProperty(a,u,E))}}for(var O in P3i)z[O]&&(I[O]=I[O]||[],I[O].push(z[O]))};
C3$=function(a,z,I){z=z||[];for(var J=a.length-1;J>=0;J--){var r=a[J];r?Array.isArray(r)?C3$(r,z):z.indexOf(r)<0&&(!I||I.indexOf(r)<0)&&z.unshift(r):console.warn("behavior is null, check for missing or 404 import")}return z};
NcI=function(a,z){for(var I in z){var J=a[I],r=z[I];a[I]=!("value"in r)&&J&&"value"in J?Object.assign({value:J.value},r):r}};
EBE=function(a,z,I){var J={},r=function(){return z.apply(this,arguments)||this};
_.b(r,z);r._finalizeClass=function(){if(this.hasOwnProperty("generatedFrom")){if(N)for(var E=0,O;E<N.length;E++)O=N[E],O.properties&&this.createProperties(O.properties),O.observers&&this.createObservers(O.observers,O.properties);a.properties&&this.createProperties(a.properties);a.observers&&this.createObservers(a.observers,a.properties);this._prepareTemplate()}else z._finalizeClass.call(this)};
r.prototype.created=function(){z.prototype.created.call(this);var E=J.created;if(E)for(var O=0;O<E.length;O++)E[O].call(this)};
r.prototype._registered=function(){var E=r.prototype;if(!E.hasOwnProperty("__hasRegisterFinished")){E.__hasRegisterFinished=!0;z.prototype._registered.call(this);Uc&&u(E);E=Object.getPrototypeOf(this);var O=J.beforeRegister;if(O)for(var f=0;f<O.length;f++)O[f].call(E);if(O=J.registered)for(f=0;f<O.length;f++)O[f].call(E)}};
r.prototype._applyListeners=function(){z.prototype._applyListeners.call(this);var E=J.listeners;if(E)for(var O=0;O<E.length;O++){var f=E[O];if(f)for(var A in f)this._addMethodEventListenerToNode(this,A,f[A])}};
r.prototype._ensureAttributes=function(){var E=J.hostAttributes;if(E)for(var O=E.length-1;O>=0;O--){var f=E[O],A;for(A in f)this._ensureAttribute(A,f[A])}z.prototype._ensureAttributes.call(this)};
r.prototype.ready=function(){z.prototype.ready.call(this);var E=J.ready;if(E)for(var O=0;O<E.length;O++)E[O].call(this)};
r.prototype.attached=function(){z.prototype.attached.call(this);var E=J.attached;if(E)for(var O=0;O<E.length;O++)E[O].call(this)};
r.prototype.detached=function(){z.prototype.detached.call(this);var E=J.detached;if(E)for(var O=0;O<E.length;O++)E[O].call(this)};
r.prototype.attributeChanged=function(E,O,f){z.prototype.attributeChanged.call(this);var A=J.attributeChanged;if(A)for(var n=0;n<A.length;n++)A[n].call(this,E,O,f)};
_.eH.Object.defineProperties(r,{properties:{configurable:!0,enumerable:!0,get:function(){var E={};if(N)for(var O=0;O<N.length;O++)NcI(E,N[O].properties);NcI(E,a.properties);return E}},
observers:{configurable:!0,enumerable:!0,get:function(){var E=[];if(N)for(var O=0,f;O<N.length;O++)f=N[O],f.observers&&(E=E.concat(f.observers));a.observers&&(E=E.concat(a.observers));return E}}});
if(I){Array.isArray(I)||(I=[I]);var P=z.prototype.behaviors;var N=C3$(I,null,P);r.prototype.behaviors=P?P.concat(I):N}var u=function(E){if(N)for(var O=N,f=0;f<O.length;f++)Zxx(E,O[f],J,tNx);Zxx(E,a,J,uO7)};
Uc||u(r.prototype);r.generatedFrom=a;return r};
fu7=function(a){var z=typeof a!=="string"?a:{is:a,notifyObserversOnUndefined:!0};z.fastInit===void 0&&(z.fastInit=!0);return function(I){if(!z.disableInheritanceCheck&&Object.getPrototypeOf(I.prototype).constructor!==_.aA)throw Error("Md");var J=I.prototype;J.is=z.is;Fy0(J,"created",function(){this.hostElement=this;this.polymerController=this});
Bci(J,I,z.fastInit);z.notifyObserversOnUndefined&&(J._overrideLegacyUndefined=!0);if(gB$)for(var r=_.C(Object.getOwnPropertyNames(J)),P=r.next();!P.done;P=r.next()){P=P.value;var N=Object.getOwnPropertyDescriptor(J,P);N.enumerable===!1&&(N.enumerable=!0,Object.defineProperty(J,P,N))}if("template"in I)var u=function(){return I.template};
else z.template!==void 0&&(u=z.template);if(u!==void 0){var E;Object.defineProperty(J,"_template",{get:function(){E===void 0&&(E=u());return E},
set:function(O){E=O},
configurable:!0,enumerable:!0})}Polymer(J);I[Ox3]=J}};
ATp=function(a){a=a===void 0?{}:a;a.fastInit===void 0&&(a.fastInit=!0);return function(z){if(!a.disableInheritanceCheck&&Object.getPrototypeOf(z.prototype).constructor!==jl)throw Error("Nd");Bci(z.prototype,z,a.fastInit)}};
Bci=function(a,z,I){I=I===void 0?!1:I;scx(z);I?Fy0(a,"created",function(){this.disableEnforceFastDefaultValuesCheck||nBE(z,this)}):Fy0(a,"ready",function(){for(var J={},r=_.C(HcG(this.behaviors)),P=r.next();!P.done;P=r.next())P=P.value,P.properties&&Object.assign(J,KgG(this,P.properties));
Object.assign(J,KgG(this,this.properties));nBE(z,this);r=_.C(Object.keys(J));for(P=r.next();!P.done;P=r.next())P=P.value,this[P]=J[P]})};
nBE=function(a,z){if(gB$){a=new a;for(var I=_.C(Object.getOwnPropertyNames(a)),J=I.next();!J.done;J=I.next())J=J.value,z[J]=a[J];for(I=z;I&&I!==Object.prototype;I=Object.getPrototypeOf(I)){J=_.C(Object.getOwnPropertyNames(I));for(var r=J.next();!r.done;r=J.next())r=r.value,a.hasOwnProperty(r)||Object.defineProperty(a,r,Fg3(z,r))}}else a.apply(z)};
Fg3=function(a,z){return{get:function(){var I=a[z];return I instanceof Function?I.bind(a):I},
set:function(I){a[z]=I}}};
KgG=function(a,z){if(!z)return{};for(var I={},J=_.C(Object.keys(z)),r=J.next();!r.done;r=J.next())if(r=r.value,!z[r].readOnly){var P=a[r];P!==void 0&&(I[r]=P)}return I};
scx=function(a){var z=new a;a=a.prototype.properties||{};for(var I=_.C(Object.keys(a)),J=I.next();!J.done;J=I.next())if(J=J.value,z.hasOwnProperty(J)){var r=a[J];typeof r==="function"&&(a[J]=r={type:r});z[J]!=null&&r.type===Object&&(r.type=Hx$(z[J].constructor))}};
Hx$=function(a){for(var z=_.C(bxd),I=z.next();!I.done;I=z.next())if(I=I.value,a===I)return I;return Object};
hCG=function(a){return function(z,I){z.behaviors=z.behaviors||[];z.behaviors.push(a||(window.Reflect!==void 0&&window.Reflect.getMetadata!==void 0?Reflect.getMetadata("design:type",z,I).prototype:void 0));Object.defineProperty(z,I,{get:function(){return this},
enumerable:!0,configurable:!0})}};
VNp=function(a){a=a===void 0?{}:a;return function(z,I){z.properties=z.properties||{};a.type||(window.Reflect!==void 0&&window.Reflect.getMetadata!==void 0?a.type=Hx$(Reflect.getMetadata("design:type",z,I)):a.type=String);var J=a,r=z.properties[I];z.properties[I]=r?Object.assign({},r,J):J}};
Qc3=function(a){return function(z,I){z.listeners=z.listeners||{};z.listeners[a]=I}};
StI=function(){var a=_.dO.apply(0,arguments);if(a.length===0)throw Error("Od");return function(z,I){z.observers=z.observers||[];z.observers.push(I+"("+a.join(",")+")")}};
ix$=function(){var a=_.dO.apply(0,arguments);return function(z,I,J){var r=Object.getOwnPropertyDescriptor(z,I).get,P="__compute__"+I;Object.defineProperty(z,P,{value:r,enumerable:!0});z.properties=z.properties||{};r=z.properties[I];r||(r={},z.properties[I]=r);r.computed=P+"("+a.join(",")+")";J.get=void 0}};
_.zX=function(a,z,I){_.FC.call(this);this.JSC$11212_id_=null;this.usingListeners_=!1;this.JSC$11212_listener_=a;this.handler_=I;this.JSC$11212_win_=z||window;this.callback_=(0,_.HW)(this.JSC$11214_doAction_,this)};
IA=function(a){this.range_=a};
J$=function(a){this.range_=a};
Z1=function(a,z,I){_.FC.call(this);this.constrainScroll_=!1;this.horizontalScrolling_=!0;this.containerNode_=a;this.scrollTimer_=new _.rF(50);this.JSC$11291_eventHandler_=new _.PJ(this);this.scrollDelta_=new _.GB;this.containerIsActuallyContent_=a.tagName==="BODY"||a.tagName==="HTML";this.containerBounds_=xHI(a);this.containerIsActuallyContent_&&(a=_.Az(),this.containerBounds_.height=a.height,this.containerBounds_.width=a.width);this.margin_=z||0;if(z){if(z=this.containerBounds_.clone(),a=this.margin_){var J=
Math.min(a,z.height*.25);z.top+=J;z.height-=2*J;a=Math.min(a,z.width*.25);z.left+=a;z.width-=2*a}}else z=this.containerBounds_;this.scrollBounds_=z;I||this.JSC$11291_eventHandler_.listen(_.Xm(this.containerNode_),"mousemove",this.JSC$11293_onMouseMove);this.JSC$11291_eventHandler_.listen(this.scrollTimer_,"tick",this.JSC$11293_onTick_)};
_.CL=function(a){this.mechanism=a};
NZ=function(a,z){this.JSC$11389_key_=a;this.JSC$11389_value_=z};
G2i=function(a){if(a>=55296&&a<=57343||a>1114111)return"\ufffd";a in vB7&&(a=vB7[a]);var z="";a>65535&&(a-=65536,z+=String.fromCharCode(a>>>10&1023|55296),a=56320|a&1023);return z+=String.fromCharCode(a)};
$HG=function(a,z){return a<z?1:-1};
Tc1=function(){return function(a){return a.charAt(1)==="#"?a.charAt(2)==="X"||a.charAt(2)==="x"?G2i(parseInt(a.substr(3),16)):G2i(parseInt(a.substr(2),10)):XrE[a.slice(1,-1)]}};
UHI=function(a){return a.slice(1,a.length-1).trim().replace(dHx,function(z){return Wg7[z]||" "})};
t$=function(a){return a===32||a===9};
ud=function(a,z){return z<a.length?a.charCodeAt(z):-1};
DHG=function(a){for(;a;){if(a._lastLineBlank)return!0;var z=a.type;if(z==="list"||z==="item")a=a._lastChild;else break}return!1};
EX=function(a){if(RCM.test(a)){var z=1,I=0,J=0;for(a[I]=="|"&&I++;I<a.length;){switch(a[I]){case "|":J=1;break;case " ":break;case "\t":break;default:J&&(J=0,z++)}I++}return Lgm.test(a)?-z:z}return 0};
lui=function(a){return a=="table"||a=="row"||a=="cell"};
prM=function(){return new BJ("document",[[1,1],[0,0]])};
wrd=function(){};
gF=function(){var a={safe:!1};a=a||{};a.softbreak=a.softbreak||"\n";this.disableTags=0;this.lastOut="\n";this.options=a};
cT7=function(a,z){var I="";if(a)if(a=a.toLowerCase(),a===" "||mHi.test(a))I="space";else if(yT7.test(a))I="esc";else if(a.length==1){if(!z||k2m.test(a))I=a}else I=MNO.test(a)?a.replace("arrow",""):a=="multiply"?"*":a;return I};
aoM=function(a,z){var I=a.hasModifiers;if(z.key)I=cT7(z.key,I);else if(z.detail&&z.detail.key)I=cT7(z.detail.key,I);else{I=z.keyIdentifier;var J="";I&&(I in Yt$?J=Yt$[I]:qt3.test(I)?(I=parseInt(I.replace("U+","0x"),16),J=String.fromCharCode(I).toLowerCase()):J=I.toLowerCase());(I=J)||(I=z.keyCode,J="",Number(I)&&(I>=65&&I<=90?J=String.fromCharCode(32+I):I>=112&&I<=123?J="f"+(I-112+1):I>=48&&I<=57?J=String(I-48):I>=96&&I<=105?J=String(I-96):J=eCM[I]),I=J);I=I||""}return I===a.key&&(!a.hasModifiers||
!!z.shiftKey===!!a.shiftKey&&!!z.ctrlKey===!!a.ctrlKey&&!!z.altKey===!!a.altKey&&!!z.metaKey===!!a.metaKey)};
zS7=function(a){return a.length===1?{combo:a,key:a,event:"keydown"}:a.split("+").reduce(function(z,I){var J=I.split(":");I=J[0];J=J[1];I in jH1?(z[jH1[I]]=!0,z.hasModifiers=!0):(z.key=I,z.event=J||"keydown");return z},{combo:a.split(":").shift()})};
Io3=function(a){return a.trim().split(" ").map(function(z){return zS7(z)})};
JH$=function(a,z){if(a&&a.fn){var I=a.fn;a.fn=function(){try{I.apply(this,arguments)}catch(J){if(J instanceof OX)console.warn("Argument '"+J.arg+"'"+(z?" for method '"+z+"'":"")+" was undefined. Ensure it has a default value, or else ensure the method handles the argument being undefined.");else throw J;}}}return a};
rH1=function(){var a=_.dO.apply(0,arguments);return a.length===0?function(z){return z}:a.length===1?a[0]:a.reduce(function(z,I){return function(){return z(I.apply(null,_.ih(_.dO.apply(0,arguments))))}})};
Pni=function(){var a=_.dO.apply(0,arguments);return function(z){return function(I,J){I=z(I,J);var r=function(){throw Error("ye");},P={getState:I.getState,
dispatch:function(N){return r.apply(null,[N].concat(_.ih(_.dO.apply(1,arguments))))}};
J=a.map(function(N){return N(P)});
r=rH1.apply(null,_.ih(J))(I.dispatch);return Object.assign({},I,{dispatch:r})}}};
NZ1=function(a){Object.keys(a).forEach(function(z){var I=a[z];if(typeof I(void 0,{type:ZpG})==="undefined")throw Error("ze`"+z);if(typeof I(void 0,{type:"@@redux/PROBE_UNKNOWN_ACTION"+CnO()})==="undefined")throw Error("Ae`"+z+"`"+ZpG);})};
fL=function(a){for(var z=Object.keys(a),I={},J=0;J<z.length;J++){var r=z[J];typeof a[r]==="function"&&(I[r]=a[r])}var P=Object.keys(I);try{NZ1(I)}catch(u){var N=u}return function(u,E){u=u===void 0?{}:u;if(N)throw N;for(var O=!1,f={},A=0;A<P.length;A++){var n=P[A],F=u[n],h=(0,I[n])(F,E);if(typeof h==="undefined")throw u=E&&E.type,Error("Be`"+(u?'"'+String(u)+'"':"(unknown type)")+"`"+n);f[n]=h;O=O||h!==F}return(O=O||P.length!==Object.keys(u).length)?f:u}};
tqG=function(a,z,I){function J(){if(f)throw Error("Ce");return u}
function r(F){if(typeof F!=="function")throw Error("De`"+typeof F);if(f)throw Error("Ee");var h=!0;O===E&&(O=E.slice());O.push(F);return function(){if(h){if(f)throw Error("Fe");h=!1;O===E&&(O=E.slice());var v=O.indexOf(F);O.splice(v,1);E=null}}}
function P(F){if(typeof F!=="object"||F===null)var h=!1;else{for(h=F;Object.getPrototypeOf(h)!==null;)h=Object.getPrototypeOf(h);h=Object.getPrototypeOf(F)===h}if(!h)throw Error("Ge`"+typeof F);if(typeof F.type==="undefined")throw Error("He");if(f)throw Error("Ie");try{f=!0,u=N(u,F)}finally{f=!1}h=E=O;for(var v=0;v<h.length;v++)(0,h[v])();return F}
if(typeof z==="function"&&typeof I==="function"||typeof I==="function"&&typeof arguments[3]==="function")throw Error("Je");typeof z==="function"&&typeof I==="undefined"&&(I=z,z=void 0);if(typeof I!=="undefined"){if(typeof I!=="function")throw Error("Ke`"+typeof I);return I(tqG)(a,z)}if(typeof a!=="function")throw Error("Le`"+typeof a);var N=a,u=z,E=[],O=E,f=!1;P({type:ZpG});var A={},n=(A.dispatch=P,A.subscribe=r,A.getState=J,A.replaceReducer=function(F){if(typeof F!=="function")throw Error("Me`"+
typeof F);N=F;P({type:uUO});return n},A[EMI]=function(){var F={};
return F.subscribe=function(h){function v(){h.next&&h.next(J())}
if(typeof h!=="object"||h===null)throw new TypeError("Ne`"+typeof h);v();return{unsubscribe:r(v)}},F[EMI]=function(){return this},F},A);
return n};
BZ0=function(a){function z(){r&&(r=!1,a());P&&J()}
function I(){requestAnimationFrame(z)}
function J(){var u=Date.now();if(r){if(u-N<2)return;P=!0}else r=!0,P=!1,setTimeout(I,20);N=u}
var r=!1,P=!1,N=0;return J};
A$=function(a){return typeof a==="number"?a:parseFloat(a)||0};
gMG=function(a){return _.dO.apply(1,arguments).reduce(function(z,I){return z+A$(a["border-"+I+"-width"])},0)};
_.V=function(a,z){z=L4(Rt(z));a.innerHTML=z};
AHd=function(a){var z=OpO;z||(z=fo1(),z=OpO=_.x8.transpose(z));z=z[a];return typeof z==="string"?z:_.sX(a)};
sH0=function(a){a=String(a).toLowerCase();var z=fo1()[a];return typeof z==="string"?z:_.nL(a)};
nMm=function(a){a=a.toLowerCase();a=fo1()[a];return typeof a==="string"?a:null};
fo1=function(){if(!Kix){for(var a=Object.assign({},Fix),z=_.C(Hp1),I=z.next();!I.done;I=z.next())I=I.value,a[I.toLowerCase()]=I;Kix=a}return Kix};
VqI=function(a,z){var I=window.customElements;return I&&I.get(a)||bpI[a]===!0?2:z.name==="HTMLUnknownElement"?1:z.name==="HTMLElement"&&hSi.test(a)?3:0};
ip$=function(a,z){switch(z){case "innerHTML":return QH0(a)===1?2:null;case "textContent":return a=QH0(a),a===1||a===6?1:null;default:var I,J;return(J=(I=Ssp[a.localName])==null?void 0:I[z])!=null?J:null}};
QH0=function(a){var z=a.localName,I=VqI(z,a.constructor);switch(I){case 0:case 1:return xQm(z,a);case 3:case 2:return 1;default:_.Rw(I,"got an unknown element classification")}};
xQm=function(a,z){var I=Object.hasOwnProperty.call(vMd,a)?vMd[a]:null;return I!==null?I:Object.hasOwnProperty.call(GVO,a)&&z instanceof SVGElement?GVO[a]:null};
$QG=function(a,z){return z};
TZx=function(a){return(a=a.split(XVi,2))?{url:a[0],metadata:a[1]}:null};
Wip=function(a){var z=String(a.url).replace(dQp,encodeURIComponent);if(a=a.metadata){dQp.lastIndex=0;if(dQp.test(a))return null;z+=" "+a}return z};
RSE=function(a){function z(O){var f=O.localName;if(!O.getAttribute("is")&&VqI(f,O.constructor)===2){var A;return(A=E)!=null?A:E=document.createElement("polyresinuncustomized")}(O=u[f])||(O=u[f]=document.createElement(f));return O}
var I=a.reportHandler||void 0,J=a.safeTypesBridge||oM0,r=/^$/;if(a=a.allowedIdentifierPrefixes){a=_.C(a);for(var P=a.next();!P.done;P=a.next())r=new RegExp(r.source+"|^"+_.UQO(P.value))}I&&I(!1,"initResin",null);var N=DQI(r,J,I),u={},E=null;return function(O,f,A){var n=O.nodeType;if(n!==Node.ELEMENT_NODE){if(n===Node.TEXT_NODE){f=O.parentElement;A=!f;if(f&&f.nodeType===Node.ELEMENT_NODE){n=f.localName;var F=VqI(n,f.constructor);switch(F){case 0:case 1:f=xQm(n,f);A=f===1||f===6;break;case 3:case 2:A=
!0;break;default:_.Rw(F,"got an unknown element classification")}}if(A)return function(W){return""+J(W,"STRING",W)}}return function(W){if(!W&&W!==document.all)return W;
I&&I(!0,"Failed to sanitize "+(O.parentElement&&O.parentElement.nodeName)+" #text node to value "+W,O.parentElement);return KL}}var h=O.localName;
n=z(O);var v=null;switch(A){case "attribute":if(sH0(f)in n)break;return function(W){return W};
case "property":if(f in n){v=ip$(n,f);break}if((F=nMm(f))&&F in n)break;return function(W){return W};
default:_.Rw(A,"got an unknown resin type, expected either 'property' or 'attribute'")}var d=A==="attribute"?f.toLowerCase():AHd(f);v||(v=IVm(h,d,function(W){var l=O.getAttribute(W);return!l||/[\[\{]/.test(W)?null:l}));
return function(W){var l=FZ,q=null;if(!W&&W!==document.all)return W;if(v!=null){var m=N[v],M=m.safeType;q=m.safeReplacement;M&&(l=J(W,M,FZ));l===FZ&&(m.filterString?(l=String(J(W,"STRING",W)),l=m.filterString(h,d,l)):m.filterRaw&&(l=m.filterRaw(h,d,W,O)),l===q&&(l=FZ))}l===FZ&&(l=q||KL,I&&I(!0,"Failed to sanitize attribute of <"+h+">: <"+h+" "+d+'="'+W+'">',O));return l}}};
DQI=function(a,z,I){return[,{filterRaw:function(J,r,P){return P},
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:LiM,safeType:"URL"},{filterRaw:void 0,filterString:void 0,safeReplacement:LiM,safeType:"RESOURCE_URL"},{filterRaw:void 0,filterString:void 0,safeReplacement:KL,safeType:"STYLE"},,{filterRaw:void 0,filterString:void 0,safeReplacement:lox,safeType:"JAVASCRIPT"},{filterRaw:void 0,filterString:function(J,r,P){P=
String(P).toLowerCase();return PaG(J,r,P)?P:KL},
safeReplacement:KL,safeType:void 0},,{filterRaw:void 0,filterString:function(J,r,P){return a.test(P)?P:KL},
safeReplacement:KL,safeType:"CONSTANT"},{filterRaw:function(J,r,P,N){if(typeof P==="string")var u=(u=P.match(pVI))?u.map(TZx).filter(Boolean):[];else if(Array.isArray(P))u=P;else return LiM;var E=u;u=[];var O=[],f={};if(Array.isArray(E))for(var A=0,n=E.length;A<n;++A){var F=E[A],h=F&&F.url;if(h){var v=z(h,"URL",f);if(v){var d=v!==f;(d?u:O).push({url:d?v:h,metadata:F.metadata})}}}else O.push(E);E=O.length?JSON.stringify(O):null;O=FZ;if(u.length){if(!Array.isArray(u))throw Error();O=u.map(Wip).filter(Boolean).join(" , ")||
FZ}E&&I&&I(!0,"Failed to sanitize attribute value of <"+J+">: <"+J+" "+r+'="'+P+'">: '+E,N);return O===FZ?LiM:O},
filterString:void 0,safeReplacement:void 0,safeType:void 0}]};
wVp=function(a){var z=RSE(a);return function(I,J,r,P){return P||P===document.all?z(I,J,r)(P):P}};
HJ=function(a,z){function I(){function r(u,E,O){for(E=Reflect.getMetadata("parameters",u)||[];E.length<=O;)E.push(null);E[O]=E[O]||[];E[O].push(N);Reflect.defineMetadata(E,u);return u}
var P=_.dO.apply(0,arguments);if(this instanceof I)return J.apply(this,P),this;var N=new (Function.prototype.bind.apply(I,[null].concat(_.ih(P))));r.annotation=N;return r}
var J=mQd(z);I.prototype.toString=function(){return"@"+a};
return I.annotationCls=I};
mQd=function(a){return function(){var z=_.dO.apply(0,arguments),I=this;a.forEach(function(J,r){r=z[r];if(Array.isArray(J))I[J[0]]=r&&r!==void 0?r:J[1];else for(var P in J)I[P]=r&&r[P]!==void 0?r[P]:J[P]})}};
yH$=function(a){return a!==void 0&&a!==null};
bd=function(a){if(typeof a==="string")return a;if(a===void 0||a===null)return""+a;if(a.overriddenName)return a.overriddenName;if(a.name)return a.name;a=a.toString();var z=a.indexOf("\n");return z===-1?a:a.substring(0,z)};
kV0=function(a){a.__forward_ref__=kV0;a.toString=function(){return bd(this())};
return a};
h$=function(a){return typeof a==="function"&&a.hasOwnProperty("__forward_ref__")&&a.__forward_ref__===kV0?a():a};
MqI=function(a){return a?a.map(function(z){return new (Function.prototype.bind.apply(z.type.annotationCls,[null].concat(_.ih(z.args?z.args:[]))))}):[]};
cHx=function(a){for(var z=[],I=0;I<a.length;++I){if(z.indexOf(a[I])>-1){z.push(a[I]);break}z.push(a[I])}return z};
YsI=function(a){return a.length>1?" ("+cHx(a.slice().reverse()).map(function(z){return bd(z.token)}).join(" -> ")+")":""};
eSx=function(a,z,I,J){if(J){var r=Error("Ue``"+(J instanceof Error?J.message:J));r.ngOriginalError=J}else r=Error();r.addKey=qsM;r.keys=[z];r.injectors=[a];r.constructResolvingMessage=I;r.message=r.constructResolvingMessage();r.ngOriginalError=J;return r};
qsM=function(a,z){this.injectors.push(a);this.keys.push(z);this.message=this.constructResolvingMessage()};
aP1=function(a,z){return eSx(a,z,function(){return"No provider for "+bd(this.keys[0].token)+"!"+YsI(this.keys)})};
jRp=function(a,z){return eSx(a,z,function(){return"Cannot instantiate cyclic dependency!"+YsI(this.keys)})};
znG=function(a,z,I){return eSx(a,I,function(){var J=bd(this.keys[0].token);return this.ngOriginalError.message+": Error during instantiation of "+J+"!"+YsI(this.keys)+"."},z)};
IP7=function(a,z){for(var I=[],J=0,r=z.length;J<r;J++){var P=z[J];P&&P.length!=0?I.push(P.map(bd).join(" ")):I.push("?")}return Error("Ye`"+bd(a)+"`"+I.join(", ")+"`"+bd(a))};
taE=function(a){var z=void 0,I=void 0;if(a&&a.useClass!==void 0){z=a.useClass;var J=h$(a.useClass);var r=J4$.factory(J);J=r47(J)}else a&&a.useExisting!==void 0?(r=function(P){return P},J=[PuE(V$.get(h$(a.useExisting)))]):a&&a.useFactory!==void 0?(r=a.useFactory,J=ZRG(a.useFactory,a.deps)):(I=a.useValue,r=function(){return a.useValue},J=Cum);
return new NGm(r,J,z,I)};
ETx=function(a){return new u6d(V$.get(h$(a.provide)),[taE(a)],a.multi)};
gTE=function(a){a=BGI(a,[]).map(ETx);for(var z=new Map,I=0;I<a.length;I++){var J=a[I],r=z.get(J.key.id);if(r){if(J.multiProvider!==r.multiProvider)throw Error("$e`"+r+"`"+J);if(J.multiProvider)for(var P=0;P<J.resolvedFactories.length;P++)r.resolvedFactories.push(J.resolvedFactories[P]);else z.set(J.key.id,J)}else r=void 0,J.multiProvider?r=new u6d(J.key,J.resolvedFactories.slice(),J.multiProvider):r=J,z.set(J.key.id,r)}return Array.from(z.values())};
BGI=function(a,z){a.forEach(function(I){if(I instanceof ORM)z.push({provide:I,useClass:I});else if(I&&typeof I=="object"&&I.provide!==void 0)z.push(I);else if(I instanceof Array)BGI(I,z);else throw Error("Xe`"+I);});
return z};
ZRG=function(a,z){if(z){var I=z.map(function(J){return[J]});
return z.map(function(J){return fPI(a,J,I)})}return r47(a)};
r47=function(a){var z=J4$.parameters(a);if(!z)return[];if(z.some(function(I){return I==null}))throw IP7(a,z);
return z.map(function(I){return fPI(a,I,z)})};
fPI=function(a,z,I){var J=null,r=!1;if(!Array.isArray(z))return z instanceof A4G?sRM(z.token,r,null):sRM(z,r,null);for(var P=null,N=0;N<z.length;++N){var u=z[N];if(u instanceof ORM)J=u;else if(u instanceof A4G)J=u.token;else if(u instanceof nTm)r=!0;else if(u instanceof Kmi||u instanceof Fmd)P=u}J=h$(J);if(J!=null)return sRM(J,r,P);throw IP7(a,I);};
sRM=function(a,z,I){return new HR$(V$.get(h$(a)),z,I)};
bRm=function(a,z){for(var I=Array(a.providers.length),J=0;J<a.providers.length;++J){var r=J;if(J<0||J>=a.providers.length)throw Error("Ze`"+J);I[r]=z(a.providers[J])}return I};
hnM=function(a){return typeof a==="function"&&J4$.parameters(a).every(function(z){return!!z})};
S57=function(a){var z=VaG;QRI.get(a)||QRI.set(a,new z);return QRI.get(a)};
_._hasCachedLockedElement$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager=function(a){return _._lockedElementCache$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager.indexOf(a)>-1};
_._hasCachedUnlockedElement$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager=function(a){return _._unlockedElementCache$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager.indexOf(a)>-1};
_._composedTreeContains$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager=function(a,z){var I,J;if(a.contains(z))return!0;a=_.Q$(a).querySelectorAll("content,slot");for(I=0;I<a.length;++I){var r=_.Q$(a[I]).getDistributedNodes();for(J=0;J<r.length;++J)if(r[J].nodeType===Node.ELEMENT_NODE&&_._composedTreeContains$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager(r[J],z))return!0}return!1};
_._scrollInteractionHandler$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager=function(a){a.cancelable&&_._shouldPreventScrolling$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager(a)&&a.preventDefault();a.targetTouches&&(a=a.targetTouches[0],iRp=a.pageX,xkG=a.pageY)};
_._lockScrollInteractions$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager=function(){_._boundScrollHandler$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager=_._boundScrollHandler$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager||_._scrollInteractionHandler$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager.bind(void 0);
for(var a=0,z=Sl.length;a<z;a++)document.addEventListener(Sl[a],_._boundScrollHandler$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager,{capture:!0,passive:!1})};
_._unlockScrollInteractions$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager=function(){for(var a=0,z=Sl.length;a<z;a++)document.removeEventListener(Sl[a],_._boundScrollHandler$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager,{capture:!0,passive:!1})};
_._shouldPreventScrolling$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager=function(a){var z=_.Q$(a).rootTarget;a.type!=="touchmove"&&vTp!==z&&(vTp=z,GoI=_._getScrollableNodes$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager(_.Q$(a).path));if(!GoI.length)return!0;if(a.type==="touchstart")return!1;a=_._getScrollInfo$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager(a);
return!_._getScrollingNode$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager(GoI,a.deltaX,a.deltaY)};
_._getScrollableNodes$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager=function(a){for(var z=[],I=a.indexOf($k3),J=0;J<=I;J++)if(a[J].nodeType===Node.ELEMENT_NODE){var r=a[J],P=r.style;P.overflow!=="scroll"&&P.overflow!=="auto"&&(P=window.getComputedStyle(r));P.overflow!=="scroll"&&P.overflow!=="auto"||z.push(r)}return z};
_._getScrollingNode$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager=function(a,z,I){if(z||I)for(var J=Math.abs(I)>=Math.abs(z),r=0;r<a.length;r++){var P=a[r];if(J?I<0?P.scrollTop>0:P.scrollTop<P.scrollHeight-P.clientHeight:z<0?P.scrollLeft>0:P.scrollLeft<P.scrollWidth-P.clientWidth)return P}};
_._getScrollInfo$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager=function(a){var z={deltaX:a.deltaX,deltaY:a.deltaY};"deltaX"in a||("wheelDeltaX"in a&&"wheelDeltaY"in a?(z.deltaX=-a.wheelDeltaX,z.deltaY=-a.wheelDeltaY):"wheelDelta"in a?(z.deltaX=0,z.deltaY=-a.wheelDelta):"axis"in a?(z.deltaX=a.axis===1?a.detail:0,z.deltaY=a.axis===2?a.detail:0):a.targetTouches&&(a=a.targetTouches[0],z.deltaX=iRp-a.pageX,z.deltaY=xkG-a.pageY));return z};
XDO=function(a){this.element=a;this.width=this.boundingRect.width;this.height=this.boundingRect.height;this.size=Math.max(this.width,this.height)};
dkG=function(a){this.element=a;this.color=window.getComputedStyle(a).color;this.wave=document.createElement("div");this.waveContainer=document.createElement("div");this.wave.style.backgroundColor=this.color;this.wave.classList.add("wave");this.waveContainer.classList.add("wave-container");_.Q$(this.waveContainer).appendChild(this.wave);TG0(this)};
id=function(a,z){for(var I in a)if(I.toLowerCase()===z.toLowerCase())return a[I]};
Wmd=function(a,z){for(var I in a)if(I.toLowerCase()===z.toLowerCase()){delete a[I];break}};
Uk$=function(a){a=_.x8.clone(a);for(var z=0;z<oTx.length;++z){var I=oTx[z],J=id(a,I);J&&(a["X-Goog-Upload-Header-"+I]=J,Wmd(a,I))}return a};
Dkp=function(a){a=_.x8.clone(a);Wmd(a,"X-Goog-Upload-Status")};
LmI=function(a){return Rn1.some(function(z){return z.test(a)})};
mk0=function(a,z){var I;var J=(I=a.formContent)==null?void 0:I.locale;I=J==null?void 0:J.split("-")[0];J=J&&lPE.includes(J)?J:I&&lPE.includes(I)?I:void 0;J=(J!=null?J:"en").replaceAll("-","_").toLowerCase();var r;a=((r=a.initializationData)==null?0:r.useNightlyRelease)?"nightly":"live";var P;return(z==null?0:(P=z.getEnableAlohaBinarySplit)==null?0:P.call(z))?_.Jz(pDx,a):_.Jz(wDO,a,J)};
Mam=function(a,z,I,J){if(y47&&ko$===z)return y47;ko$=z;var r=mk0(a,J);return y47=z.feedbackV2GlobalObject?Promise.resolve(z.feedbackV2GlobalObject):new Promise(function(P,N){var u=_.OS("SCRIPT");_.c9(u,r);u.onload=function(){z.feedbackV2GlobalObject?P(z.feedbackV2GlobalObject):N(Error("cf"))};
u.onerror=function(){N(Error("df`"+r.toString()))};
I.body.appendChild(u)})};
q5i=function(a,z,I,J){if(c4M&&Y5p===z)return c4M;Y5p=z;var r=mk0(a,J);return c4M=z.feedbackV2GlobalObject?Promise.resolve(z.feedbackV2GlobalObject):new Promise(function(P,N){var u=_.OS("SCRIPT");_.c9(u,r);u.onload=function(){z.feedbackV2GlobalObject?P(z.feedbackV2GlobalObject):N(Error("cf"))};
u.onerror=function(){N(Error("df`"+r.toString()))};
I.body.appendChild(u)})};
en1=function(a,z,I,J,r){r=r===void 0?!0:r;var P,N,u,E,O;return _.t(function(f){switch(f.nextAddress){case 1:return P=Date.now(),f.yield(Mam(a,I,J,z),2);case 2:N=f.yieldResult;if(!(r||((E=a.initializationData)==null?0:E.useNightlyRelease)||((O=a.initializationData)==null?0:O.isLocalServer))){u=N.initializeFeedbackClient(a,P,z);f.jumpTo(3);break}return f.yield(N.initializeFeedbackClientAsync(a,P,z),4);case 4:u=f.yieldResult;case 3:return u.initiateAloha(),f.return(u)}})};
aNp=function(a,z,I,J){var r,P,N;return _.t(function(u){if(u.nextAddress==1)return r=Date.now(),u.yield(q5i(a,I,J.document,z),2);if(u.nextAddress!=3)return P=u.yieldResult,u.yield(P.initializeFeedbackClientAsync(a,r,z,J),3);N=u.yieldResult;N.initiateAloha();return u.return(N)})};
j4p=function(a,z,I){var J=!0;J=J===void 0?!0:J;var r,P,N,u,E,O,f,A,n,F;return _.t(function(h){r=I||_.IE;if((P=z)==null?0:(u=(N=P).getEnableAlohaBinarySplit)==null?0:u.call(N)){E=r;if(E.isFormOpened)throw O=Error("ef"),O.name="DuplicateFormError",O;E.isFormOpened=!0;a.callbacks=a.callbacks||{};f=a.callbacks.onClose||function(){};
a.callbacks.onClose=function(v){E.isFormOpened=!1;f(v)};
try{return h.return(aNp(a,z,E,r))}catch(v){throw E.isFormOpened=!1,v;}}else{A=r;if(A.isFormOpened)throw n=Error("ef"),n.name="DuplicateFormError",n;A.isFormOpened=!0;a.callbacks=a.callbacks||{};F=a.callbacks.onClose||function(){};
a.callbacks.onClose=function(v){A.isFormOpened=!1;F(v)};
try{return h.return(en1(a,z,A,r.document,J))}catch(v){throw A.isFormOpened=!1,v;}}_.nu(h)})};
P_1=function(a,z){return _.t(function(I){return I.return(new Promise(function(J){var r=zeG(z!=null?z:"")+"/aloha_form_properties?productId="+a;INd(r,function(P){P=P.target;var N=null;try{var u=JSON,E=u.stringify;if(P.JSC$9754_xhr_){var O=P.JSC$9754_xhr_.responseText;O.indexOf(")]}'\n")==0&&(O=O.substring(5));var f=(0,_.x2)(O)}else f=void 0;N=UL7(JAm,E.call(u,f))}catch(A){E=new JAm,f=rA3(),f=_.vJ(f,13,!1),f=_.vJ(f,14,!0),f=_.vJ(f,15,!0),f=_.vJ(f,20,!1),N=_.gO(E,1,f)}J(N)},"GET","",{},2E3,!0)}))})};
zeG=function(a){return LmI(a)?a:"https://www.google.com/tools/feedback"};
tv1=function(a){a=a.match(new RegExp(ZEi,"gi"))||[];a=_.C(a);for(var z=a.next();!z.done;z=a.next()){z=z.value;a:{var I=_.C(C_i);for(var J=I.next();!J.done;J=I.next())if(J.value.test(z)){I=!1;break a}I=!0}if(!I)a:{I=_.C(Na3);for(J=I.next();!J.done;J=I.next())if(J.value.test(z)){I=!0;break a}I=!1}if(I)return!0}return!1};
uN3=function(a,z){var I={},J=Object.keys(a);J=_.C(J);for(var r=J.next();!r.done;r=J.next())r=r.value,I[r]=z(r,a[r]);return I};
EQI=function(a){switch(a){case "canary":return"CLIENT_CANARY_STATE_CANARY";case "control":return"CLIENT_CANARY_STATE_CONTROL";case "none":return"CLIENT_CANARY_STATE_NONE";default:return"CLIENT_CANARY_STATE_UNKNOWN"}};
gQm=function(a){if(window.crypto&&window.crypto.getRandomValues)try{var z=Array(a),I=new Uint8Array(a);window.crypto.getRandomValues(I);for(var J=0;J<z.length;J++)z[J]=I[J];return z}catch(P){}z=Array(a);for(I=0;I<a;I++){J=Date.now();for(var r=0;r<J%23;r++)z[I]=Math.random();z[I]=Math.floor(Math.random()*256)}if(BaO)for(I=1,J=0;J<BaO.length;J++)z[I%a]^=z[(I-1)%a]/4^BaO.charCodeAt(J),I++;return z};
GX=function(a){a=gQm(a);for(var z=[],I=0;I<a.length;I++)z.push("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_".charAt(a[I]&63));return z.join("")};
OE$=function(){var a=_.IE.ytLoggingDocDocumentNonce_;a||(a=GX(16),_.qe("ytLoggingDocDocumentNonce_",a));return a};
AAd=function(a){a&&_.x0("foregroundHeartbeatScreenAssociated",{clientDocumentNonce:fN7,clientScreenNonce:a})};
s4G=function(a){return _.Xw("client-screen-nonce-store",{})[a===void 0?0:a]};
nQm=function(a,z){z=z===void 0?0:z;var I=_.Xw("client-screen-nonce-store");I||(I={},_.$S("client-screen-nonce-store",I));I[z]=a};
Kq$=function(a){a=a===void 0?0:a;return a===0?"ROOT_VE_TYPE":"ROOT_VE_TYPE."+a};
FqI=function(a){return _.Xw(Kq$(a===void 0?0:a))};
_.XZ=function(a){return(a=FqI(a===void 0?0:a))?new $2({veType:a,youtubeData:void 0,jspbYoutubeData:void 0}):null};
HEx=function(){var a=_.Xw("csn-to-ctt-auth-info");a||(a={},_.$S("csn-to-ctt-auth-info",a));return a};
bEi=function(){return Object.values(_.Xw("client-screen-nonce-store",{})).filter(function(a){return a!==void 0})};
_.TX=function(a){a=s4G(a===void 0?0:a);if(!a&&!_.TZ("USE_CSN_FALLBACK",!0))return null;a||(a="UNDEFINED_CSN");return a?a:null};
VvG=function(a){for(var z=_.C(Object.values(heE)),I=z.next();!I.done;I=z.next())if(_.TX(I.value)===a)return!0;return!1};
Q4$=function(a,z,I){var J=HEx();(I=_.TX(I))&&delete J[I];z&&(J[a]=z)};
dF=function(a){return HEx()[a]};
_.WJ=function(a,z,I,J){I=I===void 0?0:I;if(a!==s4G(I)||z!==_.Xw(Kq$(I)))if(Q4$(a,J,I),nQm(a,I),_.$S(Kq$(I),z),z=function(){setTimeout(function(){AAd(a)},0)},"requestAnimationFrame"in window)try{window.requestAnimationFrame(z)}catch(r){z()}else z()};
S93=function(a,z){z=z===void 0?"":z;var I=[],J;for(J in a)if(a.hasOwnProperty(J)){var r=z!==""?z+"."+J:J;typeof a[J]==="object"?I.push.apply(I,_.ih(S93(a[J],r))):I.push([r,a[J]])}I.sort();return I};
_.UX=function(a){var z=_.dO.apply(1,arguments);if(!oA(a)||z.some(function(J){return!oA(J)}))throw Error("ff");
z=_.C(z);for(var I=z.next();!I.done;I=z.next())iEE(a,I.value)};
iEE=function(a,z){for(var I in z)if(oA(z[I])){if(I in a&&!oA(a[I]))throw Error("gf");I in a||(a[I]={});iEE(a[I],z[I])}else if(xJ3(z[I])){if(I in a&&!xJ3(a[I]))throw Error("hf");I in a||(a[I]=[]);vQE(a[I],z[I])}else a[I]=z[I];return a};
vQE=function(a,z){z=_.C(z);for(var I=z.next();!I.done;I=z.next())I=I.value,oA(I)?a.push(iEE({},I)):xJ3(I)?a.push(vQE([],I)):a.push(I);return a};
oA=function(a){return typeof a==="object"&&!Array.isArray(a)};
xJ3=function(a){return typeof a==="object"&&Array.isArray(a)};
$J1=function(a){for(var z=_.C(Object.entries(Gp3)),I=z.next();!I.done;I=z.next())if(I=_.C(I.value),I.next(),I=I.next().value,I==="SLI_STATUS_"+a)return I;return"SLI_STATUS_UNKNOWN"};
_.D1=function(a,z,I,J){return XE3(a,z,function(){return new _.TaG(a,z,I,J)})};
_.dJM=function(){return _.D1("SLI_NAME_YOUTUBE_WEB_APP_BOOTS","APP_BOOTS",12E4,"TIMEOUT")};
WqG=function(){return _.D1("SLI_NAME_YOUTUBE_WEB_NETWORK_REQUEST","NETWORK_REQUEST",12E4,"TIMEOUT")};
RA=function(){return _.D1("SLI_NAME_YOUTUBE_WEB_WARM_PAGE_NAVIGATION","WARM_PAGE_NAVIGATION",12E4,"TIMEOUT")};
oQ7=function(){return _.D1("SLI_NAME_YOUTUBE_WEB_YT_INITIAL_DATA_PRESENT","YT_INITIAL_DATA_LOADED",6E4,"FAILURE")};
UJO=function(){return _.D1("SLI_NAME_YOUTUBE_WEB_STFE_GREATER_THAN_ONE_MINUTE","STFE_GREATER_THAN_ONE_MINUTE",6E4,"SUCCESS")};
DJm=function(){return _.D1("SLI_NAME_YOUTUBE_WEB_STFE_GREATER_THAN_TEN_MINUTES","STFE_GREATER_THAN_TEN_MINUTES",6E5,"SUCCESS")};
lNG=function(a){a&&(a.dataset?a.dataset[Re0()]="true":_.qL([_.zB(LqE)],a,"data-loaded","true".toString()))};
pEE=function(a){return a?a.dataset?a.dataset[Re0()]:a.getAttribute("data-loaded"):null};
Re0=function(){return wEI.loaded||(wEI.loaded="loaded".replace(/\-([a-z])/g,function(a,z){return z.toUpperCase()}))};
_.LL=function(a,z,I){mJ3(a,z,I===void 0?null:I)};
_.kpO=function(a,z){a&&z&&(a=""+_.yx(z),(a=yAi[a])&&_.MgI(a))};
mJ3=function(a,z,I){I=I===void 0?null:I;var J=_.Mvd(typeof a==="string"?a:a.toString()),r=document.getElementById(J),P=r&&pEE(r),N=r&&!P;P?z&&z():(z&&(P=_.ZR(J,z),z=""+_.yx(z),yAi[z]=P),N||(r=cAM(a,J,function(){pEE(r)||(lNG(r),_.cjG(J),_.C1(function(){_.qgm(J)},0))},I)))};
cAM=function(a,z,I,J){J=J===void 0?null:J;var r=_.OS("SCRIPT");r.id=z;r.onload=function(){I&&setTimeout(I,0)};
r.onreadystatechange=function(){switch(r.readyState){case "loaded":case "complete":r.onload()}};
J&&r.setAttribute("nonce",J);_.c9(r,typeof a==="string"?_.h7(a):a);a=document.getElementsByTagName("head")[0]||document.body;a.insertBefore(r,a.firstChild);return r};
_.Mvd=function(a){var z=document.createElement("a");_.Ua(z,a);return"js-"+ld(z.href.replace(/^[a-zA-Z]+:\/\//,"//"))};
Y9d=function(a){var z=_.Xw("INNERTUBE_HOST_OVERRIDE");z&&(a=String(z)+String(_.pL(a)));return a};
q9i=function(a){var z={};_.K("json_condensed_response")&&(z.prettyPrint="false");return a=s_7(a,z)};
_.wF=function(a){return YS(a)?"same-origin":"include"};
_.mK=function(a){return YS(a)?"same-origin":"cors"};
y$=function(a,z,I){I=I===void 0?{}:I;a={method:z===void 0?"POST":z,mode:_.mK(a),credentials:_.wF(a)};z={};for(var J=_.C(Object.keys(I)),r=J.next();!r.done;r=J.next())r=r.value,I[r]&&(z[r]=I[r]);Object.keys(z).length>0&&(a.headers=z);return a};
_.k2=function(a,z){z=z===void 0?{}:z;return"service:"+a+"/"+Object.keys(z).sort().map(function(I){return I+":"+z[I]}).join("/")};
eeE=function(a){var z,I,J,r;a=(z=_.H(a,_.MZ))==null?void 0:(I=z.watchEndpointSupportedOnesieConfig)==null?void 0:(J=I.html5PlaybackOnesieConfig)==null?void 0:(r=J.commonConfig)==null?void 0:r.url;if(!a)return[];z=new _.cJ(a);return z.JSC$9989_domain_?["https://"+z.JSC$9989_domain_+"/generate_204"]:[]};
_.zz1=function(){return a4x()||hYp()||jo1&&T9("version/")?!0:_.Xw("EOM_VISITOR_DATA")?!1:!0};
I4d=function(a){var z=a.docid||a.video_id||a.videoId||a.id;if(z)return z;z=a.raw_player_response;z||(a=a.player_response)&&(z=JSON.parse(a));return z&&z.videoDetails&&z.videoDetails.videoId||null};
JXd=function(a){return a.replace(/([a-zA-Z])(?=[A-Z])/g,"$1-").toLowerCase()};
Y2=function(a){return!isNaN(Number(a))&&!_.NO(a)};
_.el=function(a,z,I,J){J=J===void 0?!0:J;var r=_.Xw("VALID_SESSION_TEMPDATA_DOMAINS",[]),P=_.MY(window.location.href);P&&r.push(P);P=_.MY(a);if(_.Um(r,P)||!P&&_.Pp(a,"/"))if(r=document.createElement("a"),_.Ua(r,a),a=r.href)if(a=_.pL(a),a=_.qZ(a))J&&!z.csn&&(z.itct||z.ved)&&(z=Object.assign({csn:_.TX()},z)),I?(I=parseInt(I,10),isFinite(I)&&I>0&&rXE(a,z,I)):rXE(a,z)};
Zem=function(a){var z=_.Xw("VALID_SESSION_TEMPDATA_DOMAINS",[]),I=_.MY(window.location.href);I&&z.push(I);I=_.MY(a);if(!(_.Um(z,I)||!I&&_.Pp(a,"/")))return null;a=_.pL(a);(a=_.qZ(a))?(a=PAI(a),a=(a=_.f1.get(a,void 0)||null)?_.p3(a):{}):a=null;return a};
rXE=function(a,z,I){a=PAI(a);z=z?_.By(z):"";I=I||5;_.zz1()&&_.AP(a,z,I)};
PAI=function(a){for(var z=_.C(CA3),I=z.next();!I.done;I=z.next())a=_.a_(a,I.value);return"ST-"+ld(a).toString(36)};
_.Nn1=function(a){if(a.requestFullscreen)a=a.requestFullscreen(void 0);else if(a.webkitRequestFullscreen)a=a.webkitRequestFullscreen();else if(a.mozRequestFullScreen)a=a.mozRequestFullScreen();else if(a.msRequestFullscreen)a=a.msRequestFullscreen();else if(a.webkitEnterFullscreen)a=a.webkitEnterFullscreen();else return Promise.reject(Error("rf"));return a instanceof Promise?a:Promise.resolve()};
_.zb=function(a){var z;_.Wo0(["fullscreenEnabled","webkitFullscreenEnabled","mozFullScreenEnabled","msFullscreenEnabled"],document)?_.jE()==a&&(z=document):z=a;if(z&&(a=_.Wo0(["exitFullscreen","webkitExitFullscreen","mozCancelFullScreen","msExitFullscreen"],z))){a.call(z)instanceof Promise||Promise.resolve();return}Promise.resolve()};
_.jE=function(){var a=a===void 0?!1:a;var z=_.Wo0(["fullscreenElement","webkitFullscreenElement","mozFullScreenElement","msFullscreenElement"],document);if(a)for(;z&&z.shadowRoot;)z=z.shadowRoot.fullscreenElement;return z?z:null};
_.I_=function(a,z){z=z===void 0?!0:z;a.addEventListener("wheel",t$3);a.overscrollConfig={cooldown:z}};
_.JR=function(a){a.overscrollConfig=void 0;a.removeEventListener("wheel",t$3)};
t$3=function(a){var z=a.deltaY,I=a.target,J=null;if(window.Polymer&&window.Polymer.Element){if(I=a.path||a.composedPath&&a.composedPath()){I=_.C(I);for(var r=I.next();!r.done&&(r=r.value,!uqG(r,z));r=I.next())if(r.overscrollConfig){J=r;break}}}else for(;I&&!uqG(I,z);){if(I.overscrollConfig){J=I;break}I=I.parentElement}J&&(z=J.overscrollConfig,z.cooldown?(J=a.deltaY,I=z.lastDeltaY||0,z.lastDeltaY=J,r=z.lastStopped||0,I&&r&&I>0==J>0?Math.abs(I)>=Math.abs(J)?(J=r+1200,I=!1):(J=r+600,I=!0):(J=Date.now()+
600,I=!0),J>Date.now()&&(a.preventDefault(),I&&(z.lastStopped=Date.now()))):a.preventDefault())};
uqG=function(a,z){return z<0&&a.scrollTop>0||z>0&&a.scrollTop<a.scrollHeight-a.clientHeight-1?(a=getComputedStyle(a).overflowY,a=="auto"||a=="scroll"):!1};
_.PA=function(a,z,I,J){J||(J={bubbles:!0,cancelable:!1,composed:!0});I!==null&&I!==void 0&&(J.detail=I);var r=new CustomEvent(z,J);_.K("untrack_fire_custom_event_killswitch")?a.dispatchEvent(r):ZT(function(){return void a.dispatchEvent(r)});
return r};
EV3=function(a){var z=window,I=function(J){z.removeEventListener("yt-navigate-start",I);return a.call(z,J)};
z.addEventListener("yt-navigate-start",I,void 0)};
_.ZF=function(a,z,I,J){z=new Bn7(z,!(J===void 0||!J),I);_.PA(a,"yt-action",z);return z.returnValue};
_.Ct=function(a,z,I){return _.ZF(a,z,I,!0)};
_.tR=function(a,z,I,J){z&&z.length&&z.forEach(function(r){var P=XnE(r);P&&(_.K("handle_service_request_actions")&&r.commandMetadata&&r.commandMetadata.webCommandMetadata&&r.commandMetadata.webCommandMetadata.sendPost?_.N$(I?I:a,[r]):_.Ct(a,P,[r,I,J]))})};
_.N$=function(a,z){var I=[a];z&&I.push.apply(I,z);z=_.ZF(a,"yt-service-request",I);return z.length>0&&(z=z[0],_.PA(a,"yt-service-request-sent",z),z&&z.ajaxPromise)?(z.ajaxPromise.then(function(J){_.PA(a,"yt-service-request-completed",J)},function(J){_.PA(a,"yt-service-request-error",{error:J,
params:I})},a),z.ajaxPromise):_.uI()};
_.BA=function(a,z){if(_.K("handle_service_request_actions"))_.tR(z,a,z);else{a=_.C(a);for(var I=a.next();!I.done;I=a.next()){I=I.value;var J=void 0;((J=_.H(I,_.E_))==null?0:J.commands)?_.BA(_.H(I,_.E_).commands,z):(J=void 0,((J=_.H(I,_.ge))==null?0:J.actions)?_.BA(_.H(I,_.ge).actions,z):(J=void 0,((J=_.H(I.commandMetadata,_.O_))==null?0:J.sendPost)?_.N$(z,[I]):_.tR(z,[I],z)))}}};
_.OeO=function(a,z,I){z=z===void 0?{}:z;typeof z==="function"&&(z={callback:z});I||z._c&&z._c.jsl&&z._c.jsl.h||_.x8.extend(z,{_c:{jsl:{h:_.Xw("GAPI_HINT_PARAMS")}}});(z.gapiHintOverride||_.Xw("GAPI_HINT_OVERRIDE"))&&(I=_.wq(document.location.href).gapi_jsh)&&_.x8.extend(z,{_c:{jsl:{h:I}}});gV0(a,z)};
_.AR=function(a,z,I){z=z===void 0?{}:z;a=(a=a in ft?ft[a]:I)||"";I={};for(var J in z){I={key$jscomp$818:I.key$jscomp$818};I.key$jscomp$818=J;var r=function(P){return function(){return String(z[P.key$jscomp$818])}}(I);
a=a.replace(new RegExp("\\$\\{"+I.key$jscomp$818+"\\}","gi"),r);a=a.replace(new RegExp("\\$"+I.key$jscomp$818,"gi"),r)}return a};
_.s_=function(a,z){return f47(a in ft?ft[a]:{},z)};
f47=function(a,z){var I=_.Xw("I18N_PLURAL_RULES");I||(I=function(J){return J==1?"one":"other"});
return(a=a["case"+z]||a[I(z)])?a.replace("#",z.toString()):z+""};
nV$=function(a){var z=AXG(a),I=document.getElementById(z),J=I&&pEE(I);J||I&&!J||(I=so3(a,z,function(){if(!pEE(I)){lNG(I);_.cjG(z);var r=_.nt(_.qgm,z);_.C1(r,0)}}))};
so3=function(a,z,I){var J=document.createElement("link");J.id=z;J.onload=function(){I&&setTimeout(I,0)};
a=_.h7(a);_.eu(J,a,"stylesheet");(document.getElementsByTagName("head")[0]||document.body).appendChild(J);return J};
AXG=function(a){var z=_.OS("A");_.Ua(z,QI(a));return"css-"+ld(z.href.replace(/^[a-zA-Z]+:\/\//,"//"))};
_.FUx=function(a){var z=KUE();a!==z&&(z=_.Kt(),!_.K("web_autonav_allow_off_by_default")&&a||_.Fz(0,141,!0),_.Fz(0,140,!a),z.save())};
KUE=function(){var a=_.Kt();return _.K("web_autonav_allow_off_by_default")&&!a.getFlag(141)&&_.Xw("AUTONAV_OFF_BY_DEFAULT")?!1:!a.getFlag(140)};
HeM=function(a,z){var I,J;a=((I=a.watchEndpointSupportedAuthorizationTokenConfig)==null?void 0:(J=I.videoAuthorizationToken)==null?void 0:J.credentialTransferTokens)||[];for(I=0;I<a.length;++I)if(a[I].scope===z)return a[I].token||void 0};
be$=function(a){for(var z=0,I=0;I<a.length;I++)z=z*31+a.charCodeAt(I),I<a.length-1&&(z%=0x800000000000);return z%1E5};
_.HA=function(a){return _.DH("ytcsi."+(a||"")+"data_")||hzx(a)};
_.V$x=function(a){a=_.HA(a);a.metadata||(a.metadata={});return a.metadata};
_.QoI=function(a){a=_.HA(a);a.tick||(a.tick={});return a.tick};
_.bI=function(a){a=_.HA(a);if(a.gel){var z=a.gel;z.gelInfos||(z.gelInfos={});z.gelTicks||(z.gelTicks={})}else a.gel={gelTicks:{},gelInfos:{}};return a.gel};
_.SHO=function(a){a=_.bI(a);a.gelInfos||(a.gelInfos={});return a.gelInfos};
ieO=function(a){var z=_.HA(a).nonce;z||(z=GX(16),_.HA(a).nonce=z);return z};
hzx=function(a){var z={tick:{},info:{}};_.qe("ytcsi."+(a||"")+"data_",z);return z};
xgp=function(){var a=_.DH("ytcsi.debug");a||(a=[],_.qe("ytcsi.debug",a),_.qe("ytcsi.reference",{}));return a};
_.hR=function(a){a=a||"";var z=vV7();if(z[a])return z[a];var I=xgp(),J={timerName:a,info:{},tick:{},span:{},jspbInfo:[]};I.push(J);return z[a]=J};
GSm=function(a){a=a||"";var z=vV7();z[a]&&delete z[a];var I=xgp(),J={timerName:a,info:{},tick:{},span:{},jspbInfo:[]};I.push(J);z[a]=J};
vV7=function(){var a=_.DH("ytcsi.reference");if(a)return a;xgp();return _.DH("ytcsi.reference")};
_.XGM=function(a){return $gE[a]||"LATENCY_ACTION_UNKNOWN"};
oV7=function(a,z,I){I=I===void 0?{}:I;var J=!1;_.TZ("ytLoggingEventsDefaultDisabled",!1)&&(J=!0);J=J?null:i9;I=I===void 0?{}:I;var r=Math.round(I.timestamp||(0,_.jp)());_.Fd(z,1,r<Number.MAX_SAFE_INTEGER?r:0);r=new TnO;if(I.lact)_.Fd(r,1,isFinite(I.lact)?I.lact:-1);else if(I.timestamp)_.Fd(r,1,-1);else{var P=_.IO();_.Fd(r,1,isFinite(P)?P:-1)}if(I.sequenceGroup&&!_.K("web_gel_sequence_info_killswitch")){P=I.sequenceGroup;var N=ZU$(P),u=new dgm;_.Fd(u,2,N);_.KB(u,1,P);_.gO(r,3,u);I.endOfSequence&&delete WUp[I.sequenceGroup]}_.gO(z,
33,r);(I.sendIsolatedPayload?gqp:OSm)(a,{endpoint:"log_event",payload:z,cttAuthInfo:I.cttAuthInfo,dangerousLogToVisitorSession:I.dangerousLogToVisitorSession},J)};
_.Qs=function(){return(_.K("csi_use_time_origin")||_.K("csi_use_time_origin_tvhtml5"))&&_.Vs.timeOrigin?Math.floor(_.Vs.timeOrigin):_.Vs.timing.navigationStart};
_.Ug7=function(a,z){_.SE("_start",a,z)};
_.iI=function(a,z){if(!_.K("web_csi_action_sampling_enabled")||!_.HA(z).actionDisabled){var I=_.hR(z||"");_.UX(I.info,a);a.loadType&&(I=a.loadType,_.V$x(z).loadType=I);_.UX(_.SHO(z),a);I=ieO(z);z=_.HA(z).cttAuthInfo;DgE().info(a,I,z)}};
Rzm=function(){var a,z,I,J;return((J=_.ab().resolve(_.eL(hJ))==null?void 0:(a=V4())==null?void 0:(z=a.loggingHotConfig)==null?void 0:(I=z.csiConfig)==null?void 0:I.debugTicks)!=null?J:[]).map(function(r){return Object.values(r)[0]})};
_.SE=function(a,z,I){if(!_.K("web_csi_action_sampling_enabled")||!_.HA(I).actionDisabled){var J=ieO(I),r;if(r=_.K("web_csi_debug_sample_enabled")&&J){(_.ab().resolve(_.eL(hJ))==null?0:V4())&&!LU$&&(LU$=!0,_.SE("gcfl",(0,_.jp)(),I));var P,N,u;r=(_.ab().resolve(_.eL(hJ))==null?void 0:(P=V4())==null?void 0:(N=P.loggingHotConfig)==null?void 0:(u=N.csiConfig)==null?void 0:u.debugSampleWeight)||0;if(P=r!==0)b:{P=Rzm();if(P.length>0)for(N=0;N<P.length;N++)if(a===P[N]){P=!0;break b}P=!1}P?(r=be$(J)%r!==0,
_.HA(I).debugTicksExcludedLogged||(P={},P.debugTicksExcluded=r,_.iI(P,I)),_.HA(I).debugTicksExcludedLogged=!0):r=!1}if(!r){a[0]!=="_"&&l4x(a,I,z);r=_.hR(I||"");r.tick[a]=z||(0,_.jp)();if(r.callback&&r.callback[a])for(r=_.C(r.callback[a]),P=r.next();!P.done;P=r.next())P=P.value,P();r=_.bI(I);r.gelTicks&&(r.gelTicks[a]=!0);P=_.QoI(I);r=z||(0,_.jp)();_.K("log_repeated_ytcsi_ticks")?a in P||(P[a]=r):P[a]=r;P=_.HA(I).cttAuthInfo;a==="_start"?DgE().baseline(J,z,P):DgE().tick(a,J,z,P);_.pGi(I);return r}}};
l4x=function(a,z,I){if(_.Vs.mark)if(a.startsWith("mark_")||(a="mark_"+a),z&&(a+=" ("+z+")"),I===void 0||_.K("web_csi_disable_alt_time_performance_mark"))_.Vs.mark(a);else{I=_.K("csi_use_performance_navigation_timing")?I-_.Vs.timeOrigin:I-(_.Vs.timeOrigin||_.Vs.timing.navigationStart);try{_.Vs.mark(a,{startTime:I})}catch(J){}}};
wGi=function(){var a,z=(a=_.Vs.getEntriesByType)==null?void 0:a.call(_.Vs,"mark");z&&z.forEach(function(I){if(I.name.startsWith("mark_")){var J;(J=_.Vs.clearMarks)==null||J.call(_.Vs,I.name)}})};
_.mg0=function(){switch(dpx()){case "hidden":return 0;case "visible":return 1;case "prerender":return 2;case "unloaded":return 3;default:return-1}};
_.yXI=function(a){var z={},I=function(P,N,u){N=N.match("_rid")?N.split("_rid")[0]:N;typeof u==="number"&&(u=JSON.stringify(u));P.requestIds?P.requestIds.push({endpoint:N,id:u}):P.requestIds=[{endpoint:N,id:u}]};
a=_.C(Object.entries(a));for(var J=a.next();!J.done;J=a.next()){var r=_.C(J.value);J=r.next().value;r=r.next().value;switch(J){case "GetBrowse_rid":I(z,J,r);break;case "GetGuide_rid":I(z,J,r);break;case "GetHome_rid":I(z,J,r);break;case "GetPlayer_rid":I(z,J,r);break;case "GetSearch_rid":I(z,J,r);break;case "GetSettings_rid":I(z,J,r);break;case "GetTrending_rid":I(z,J,r);break;case "GetWatchNext_rid":I(z,J,r);break;case "yt_red":z.isRedSubscriber=!!r;break;case "yt_ad":z.isMonetized=!!r}}return z};
M$p=function(a,z,I,J,r,P){if(!_.K("web_csi_action_sampling_enabled")||!_.HA(P).actionDisabled){var N=_.bI(P);if(N.gelSpans)N.gelSpans[a]=!0;else{var u={};N.gelSpans=(u[a]=!0,u)}kSx++;a={spanName:a,spanLengthUsec:String(Math.round(z*1E3)),spanNonce:kSx};J&&(a.spanInfo=J);r&&(a.parentSpanNonce=r);I&&(a.spanStartTimeUsec=String(Math.round(I*1E3)));_.hR(P||"").span[String(a.spanName)]=a;I=_.bI(P);I.gelSpans||(I.gelSpans={});_.UX(I.gelSpans,a);I=ieO(P);P=_.HA(P).cttAuthInfo;DgE().span(a,I,P);return a.spanNonce}};
_.cXE=function(a){var z=_.xA("aft",a);if(z)return z;z=_.Xw((a||"")+"TIMING_AFT_KEYS",["ol"]);for(var I=z.length,J=0;J<I;J++){var r=_.xA(z[J],a);if(r)return r}return NaN};
_.YHO=function(a,z){_.qe("ytglobal.timing"+(z||"")+"ready_",a)};
_.xA=function(a,z){if(a=_.QoI(z)[a])return typeof a==="number"?a:a[a.length-1]};
_.pGi=function(a){var z=_.xA("_start",a),I=_.cXE(a),J=!qHi;z&&I&&J&&(Nz$(ezm,new afG(Math.round(I-z),a)),qHi=!0)};
zcI=function(a){hzx(a);jJp();wGi();a||(_.Xw("TIMING_ACTION")&&_.$S("PREVIOUS_ACTION",_.Xw("TIMING_ACTION")),_.$S("TIMING_ACTION",""))};
_.IfM=function(a){a=a===void 0?{}:a;_.Ue(function(){vA();GSm();zcI();_.YHO(!1);a.cttAuthInfo&&(_.HA().cttAuthInfo=a.cttAuthInfo);_.$S("TIMING_AFT_KEYS",[]);a.isHot?_.Gb({loadType:"hot"}):_.Gb({loadType:"warm"});_.$S("TIMING_ACTION","");delete _.Xw("TIMING_INFO",{}).yt_lt;_.Ue(_.Ug7)(a.startTime,void 0)})()};
_.$A=function(a,z,I,J){z=z===void 0?{}:z;_.Ue(function(){var r=I?I:a;JNG(r);var P=z.sampleRate;if(!_.K("web_csi_action_sampling_enabled")||P===void 0||P<=1)P=!1;else{var N=ieO(r);P=be$(N)%P!==0}P&&(_.HA(r).actionDisabled=!0);_.hR(r||"").info.actionType=a;z.cttAuthInfo&&(_.HA(r).cttAuthInfo=z.cttAuthInfo);_.$S(r+"TIMING_ACTION",a);_.Ue(_.Ug7)(z.startTime,r);P={actionType:J||_.XGM(a)};z.logPreviousAction&&(P.previousAction=_.XGM(_.Xw("TIMING_ACTION")));(N=_.TX())&&N!=="UNDEFINED_CSN"&&(P.clientScreenNonce=
N);_.Gb(P,r);_.YHO(!0,r)})()};
JNG=function(a){_.Ue(function(){vA(a);GSm(a);zcI(a)})()};
rNG=function(){_.Ue(function(){var a=[],z;for(z in _.DH("ytcsi.".slice(0,-1)))z.endsWith("data_")&&a.push(z.slice(0,-5));a=_.C(a);for(z=a.next();!z.done;z=a.next())JNG(z.value);vA()})()};
_.Z$1=function(a){return _.Ue(function(){return _.PYM("_start",a)})()};
_.Gb=function(a,z,I){_.Ue(_.iI)(a,z,I===void 0?!1:I)};
_.Xz=function(a,z,I){return _.Ue(_.SE)(a,z,I)};
_.PYM=function(a,z){return _.Ue(function(){var I=_.QoI(z);return a in I})()};
Nhi=function(a){if(!_.K("universal_csi_network_ticks"))return"";a=_.ul(a)||"";for(var z=Object.keys(CY1),I=0;I<z.length;I++){var J=z[I];if(a.includes(J))return J}return""};
u7G=function(a){if(!_.K("universal_csi_network_ticks"))return function(){};
var z=CY1[a];return z?(_.Tb(z),function(){var I=_.K("universal_csi_network_ticks")?(I=t_0[a])?_.Tb(I):!1:!1;return I}):function(){}};
_.Tb=function(a,z,I){return _.Ue(function(){if(_.PYM(a,I))return!1;_.Xz(a,z,I);return!0})()};
_.de=function(a,z,I){_.Ue(function(){if(!_.Z$1(I)||_.PYM(a,I))return!1;_.Xz(a,z,I);return!0})()};
_.WA=function(a){return _.Ue(_.xA)(a,void 0)};
vA=function(a){_.Z$1(a)&&_.Xz("aa",void 0,a)};
_.ffM=function(a,z,I,J,r,P,N,u,E){var O=EEp();u=new $2({veType:z,youtubeData:P,jspbYoutubeData:u});P=o_({},O);r&&(P.cttAuthInfo=r);r={csn:O,pageVe:u.getAsJson()};_.K("expectation_logging")&&E&&E.screenCreatedLoggingExpectations&&(r.screenCreatedLoggingExpectations=E.screenCreatedLoggingExpectations);I&&I.visualElement?(r.implicitGesture={parentCsn:I.clientScreenNonce,gesturedVe:I.visualElement.getAsJson()},N&&(r.implicitGesture.gestureType=N)):I&&_.Xd(new _.Fn("newScreen() parent element does not have a VE - rootVe",
z));J&&(r.cloneCsn=J);a?SF("screenCreated",r,a,P):_.x0("screenCreated",r,P);Nz$(fLI,new Bh0(O));U_.clear();gEm.clear();O$O.clear();return O};
DF=function(a,z,I,J,r,P){P=P===void 0?{}:P;ANE(a,z,I,[J],r===void 0?!1:r,P)};
ANE=function(a,z,I,J,r,P){r=r===void 0?!1:r;P=P===void 0?{}:P;Object.assign(P,o_({cttAuthInfo:dF(z)||void 0},z));for(var N=_.C(J),u=N.next();!u.done;u=N.next()){u=u.value;var E=u.getAsJson();(_.x8.isEmpty(E)||!E.trackingParams&&!E.veType)&&_.Xd(Error("sf"));if(_.K("no_client_ve_attach_unless_shown")){var O=sJ0(u,z);if(E.veType&&!gEm.has(O)&&!O$O.has(O)&&!r){if(!_.K("il_attach_cache_limit")||U_.size<1E3){U_.set(O,[a,z,I,u]);return}_.K("il_attach_cache_limit")&&U_.size>1E3&&_.Xd(new _.Fn("IL Attach cache exceeded limit"))}u=
sJ0(I,z);U_.has(u)?nEm(I,z):O$O.set(u,!0)}}J=J.filter(function(f){f.csn!==z?(f.csn=z,f=!0):f=!1;return f});
I={csn:z,parentVe:I.getAsJson(),childVes:_.vH(J,function(f){return f.getAsJson()})};
z==="UNDEFINED_CSN"?R_("visualElementAttached",P,I):a?SF("visualElementAttached",I,a,P):_.x0("visualElementAttached",I,P)};
Ft0=function(a,z,I,J,r){KtG(a,z,I,r)};
KtG=function(a,z,I,J){H$0(I,z);var r=o_({cttAuthInfo:dF(z)||void 0},z);I={csn:z,ve:I.getAsJson(),eventType:1};J&&(I.clientData=J);z==="UNDEFINED_CSN"?R_("visualElementShown",r,I):a?SF("visualElementShown",I,a,r):_.x0("visualElementShown",I,r)};
b$E=function(a,z,I,J){H$0(I,z);var r=o_({cttAuthInfo:dF(z)||void 0},z);I={csn:z,ve:I.getAsJson(),eventType:4};J&&(I.clientData=J);z==="UNDEFINED_CSN"?R_("visualElementShown",r,I):a?SF("visualElementShown",I,a,r):_.x0("visualElementShown",I,r)};
hc3=function(a,z,I,J,r){var P=(J=J===void 0?!1:J)?16:8;J=o_({cttAuthInfo:dF(z)||void 0,endOfSequence:J},z);I={csn:z,ve:I.getAsJson(),eventType:P};r&&(I.clientData=r);z==="UNDEFINED_CSN"?R_("visualElementHidden",J,I):a?SF("visualElementHidden",I,a,J):_.x0("visualElementHidden",I,J)};
QJm=function(a,z,I,J,r){V_7(a,z,I,void 0,J,r)};
V_7=function(a,z,I,J,r){H$0(I,z);J=J||"INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK";var P=o_({cttAuthInfo:dF(z)||void 0},z);I={csn:z,ve:I.getAsJson(),gestureType:J};r&&(I.clientData=r);z==="UNDEFINED_CSN"?R_("visualElementGestured",P,I):a?SF("visualElementGestured",I,a,P):_.x0("visualElementGestured",I,P)};
SxO=function(a,z,I,J){var r=o_({cttAuthInfo:dF(z)||void 0},z);I={csn:z,ve:I.getAsJson(),clientData:J};z==="UNDEFINED_CSN"?R_("visualElementStateChanged",r,I):a?SF("visualElementStateChanged",I,a,r):_.x0("visualElementStateChanged",I,r)};
i$d=function(){var a=gQm(16);for(var z=[],I=0;I<a.length;I++)z.push("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_".charAt(a[I]&63));return z.join("")};
R_=function(a,z,I){xbx.push({payloadName:a,payload:I,jspbPayload:void 0,options:z});vE0||(vE0=sQI())};
OMx=function(a){if(xbx){for(var z=_.C(xbx),I=z.next();!I.done;I=z.next())I=I.value,I.payload&&(I.payload.csn=a.csn,_.x0(I.payloadName,I.payload,I.options));xbx.length=0}vE0=0};
sJ0=function(a,z){return""+a.getAsJson().veType+a.getAsJson().veCounter+z};
H$0=function(a,z){if(_.K("no_client_ve_attach_unless_shown")){var I=sJ0(a,z);gEm.set(I,!0);nEm(a,z)}};
nEm=function(a,z){a=sJ0(a,z);U_.has(a)&&(z=U_.get(a)||[],DF(z[0],z[1],z[2],z[3],!0),U_.delete(a))};
o_=function(a,z){_.K("log_sequence_info_on_gel_web")&&(a.sequenceGroup=z);return a};
_.Lt=function(a,z,I){_.Ue(DF)(void 0,a,z,I)};
_.lI=function(a,z,I){_.Ue(ANE)(void 0,a,z,I)};
_.pt=function(a,z){_.Ue(Ft0)(void 0,a,z,void 0,void 0,void 0)};
_.we=function(a,z,I){_.Ue(function(){_.l1(z,function(J){b$E(void 0,a,J,I)})})()};
_.m8=function(a,z,I,J){_.Ue(function(){_.l1(z,function(r){hc3(void 0,a,r,I,J)})})()};
_.ys=function(a,z,I){_.Ue(QJm)(void 0,a,z,I,void 0)};
_.kA=function(a,z,I,J){_.Ue(V_7)(void 0,a,z,I,J,void 0)};
_.M$=function(a,z,I){_.Ue(SxO)(void 0,a,z,I,void 0)};
GsM=function(a,z){cA.set(a,z)};
$bp=function(a){YA={sessionId:a.sessionId||"",nextSpanId:0,activeSpan:void 0,processors:[],enabledSpans:a.enabledSpans}};
XY0=function(a){return YA?YA.enabledSpans?!!YA.enabledSpans[a]:!0:!1};
Th1=function(a){if(!YA)throw Error("vf");YA.processors.push(a)};
dbd=function(a){var z;return{id:a.id,traceId:a.traceId,sessionId:a.sessionId,name:a.name,attributes:a.attributes,startTime:a.startTime,endTime:a.endTime,status:a.status,parentId:(z=a.parent)==null?void 0:z.id}};
Wt$=function(a,z){if(a){z=z===void 0?1:z;if(a&&(a.endTime=(0,_.jp)(),z&&(a.status=z),z=YA)){z=_.C(z.processors);for(var I=z.next();!I.done;I=z.next()){var J=void 0,r=void 0;(r=(J=I.value).onSpanEnd)==null||r.call(J,a)}}if(z=YA){a!==z.activeSpan&&_.Xd(Error("wf`"+a.name));var P;z.activeSpan=(P=z.activeSpan)==null?void 0:P.parent}}};
oE1=function(a,z,I){var J;if((J=YA)&&XY0(a)){var r=J.nextSpanId++,P=J.activeSpan;a={id:r,parent:P,name:a,attributes:z,traceId:P?P.traceId:r,sessionId:J.sessionId,startTime:(0,_.jp)(),status:0};if(J.activeSpan){var N;(N=J.activeSpan).children||(N.children=[]);J.activeSpan.children.push(a)}J=_.C(J.processors);for(N=J.next();!N.done;N=J.next())r=z=void 0,(r=(z=N.value).onSpanStart)==null||r.call(z,a);J=a}else J=void 0;a=YA;J=J&&a?a.activeSpan=J:void 0;if(!J)return I();try{var u=I(J);Wt$(J);return u}catch(E){throw Wt$(J,
2),E;}};
Ubd=function(a,z){var I=Object.keys(a);a=new _.Fn("[Command Handler] "+z,{filteredCommandNames:I,originalCommand:a});_.Gx(a)};
Dbx=function(a,z){Ubd(a,z+" was called but not set")};
Rc1=function(a){return function(){return new a}};
eE=function(a){return function(){return _.ab().resolve(a)}};
Ltm=function(a,z){var I=_.H(a,_.DR);if(I&&(I=z[I.signal]))return I();a=_.C(Object.keys(a));for(I=a.next();!I.done;I=a.next())if(I=I.value,z[I]&&(I=z[I]))return I()};
_.aU=function(a,z,I,J){return{browseEndpoint:{browseId:a},commandMetadata:{webCommandMetadata:{url:z,rootVe:I,webPageType:J===void 0?"WEB_PAGE_TYPE_BROWSE":J}}}};
lf7=function(a,z,I){var J=z=z===void 0?0:z;I=I===void 0?0:I;var r=I-J;return _.jx(a,"PPSV",void 0,void 0,(r>600?0:r<60||I<=0||J/I>.9)?0:z)};
_.jx=function(a,z,I,J,r){var P="/watch?v="+a;a={videoId:a};z&&(a.playlistId=z,P+="&list="+z);J&&(P+="&pp="+J);r&&(a.startTimeSeconds=r,P+="&t="+r+"s");z={watchEndpoint:a,commandMetadata:{webCommandMetadata:{url:P,rootVe:3832,webPageType:"WEB_PAGE_TYPE_WATCH"}}};I&&(z.clickTrackingParams=I);J&&(_.H(z,_.MZ).playerParams=J);return z};
pYp=function(a){return{browseEndpoint:{browseId:"VL"+a},commandMetadata:{webCommandMetadata:{url:"/playlist?list="+a,rootVe:5754,webPageType:"WEB_PAGE_TYPE_PLAYLIST"}}}};
wYp=function(a){if(a){var z;if(a){var I=(z=_.H(a.commandMetadata,_.O_))==null?void 0:z.url;z=!(!I||I==="/service_ajax")}else z=!1;if(z)return a;var J;if(a=(J=_.H(a,_.E_))==null?void 0:J.commands)for(J=_.C(a),a=J.next();!a.done;a=J.next())if(a=wYp(a.value))return a}};
_.zg=function(a){return{runs:[{text:a}]}};
mbI=function(a,z){return a&&z?{runs:[{text:a,navigationEndpoint:z}]}:void 0};
IU=function(a){return a?_.zg(a):void 0};
_.JW=function(a){return a?{simpleText:a}:void 0};
_.rg=function(a){var z=a.type;a=a.payload;z={type:z};a!==void 0&&(z.payload=a);return z};
yNM=function(a,z,I){for(var J=Object.assign({},a),r=_.C(Object.keys(z)),P=r.next();!P.done;P=r.next()){P=P.value;var N=a[P],u=z[P];if(u===void 0)delete J[P];else if(N===void 0)J[P]=u;else if(Array.isArray(u)&&Array.isArray(N))J[P]=I?[].concat(_.ih(N),_.ih(u)):u;else if(!Array.isArray(u)&&_.md(u)&&!Array.isArray(N)&&_.md(N))J[P]=yNM(N,u,I);else if(typeof u===typeof N)J[P]=u;else return z=new _.Fn("Attempted to merge fields of differing types.",{name:"DeepMergeError",key:P,originalValue:N,updateValue:u}),
_.Gx(z),a}return J};
cN3=function(a){if(!a.length)return"";try{if(ksO)return ksO.decode(a);if("FetchInternal"in window)return FetchInternal.decodeFromUTF8(a)}catch(N){}for(var z=0,I=[],J=a.length;z<J;){for(var r=0;r<1024&&z<J;){var P=a[z++];if(P<128)M_m[r++]=P;else{if(P<224)P=(P&31)<<6|a[z++]&63;else if(P<240)P=(P&15)<<12|(a[z++]&63)<<6|a[z++]&63;else{if(r+1===1024){--z;break}P=(P&7)<<18|(a[z++]&63)<<12|(a[z++]&63)<<6|a[z++]&63;P-=65536;M_m[r++]=55296|P>>10;P=56320|P&1023}M_m[r++]=P}}P=String.fromCharCode.apply(String,
M_m);r<1024&&(P=P.substring(0,r));I.push(P)}return I.join("")};
qx0=function(a,z){var I;if((I=Yx$)==null?0:I.encodeInto)return z=Yx$.encodeInto(a,z),z.read<a.length?a.length*4:z.written;for(var J=I=0;J<a.length;J++){var r=a.charCodeAt(J);r<128?z[I++]=r:(r<2048?z[I++]=r>>6|192:((r&64512)===55296&&J+1<a.length&&(a.charCodeAt(J+1)&64512)===56320?(r=65536+((r&1023)<<10)+(a.charCodeAt(++J)&1023),z[I++]=r>>18|240,z[I++]=r>>12&63|128):z[I++]=r>>12|224,z[I++]=r>>6&63|128),z[I++]=r&63|128)}return I};
ecx=function(a,z,I){if(z&&I&&I.buffer===z.exports.memory.buffer){var J=z.realloc(I.byteOffset,a);if(J)return new Uint8Array(z.exports.memory.buffer,J,a)}a=z?new Uint8Array(z.exports.memory.buffer,z.malloc(a),a):new Uint8Array(a);I&&a.set(I);return a};
_.ZY=function(a){a=new a5$(new jy3([_.cp(decodeURIComponent(a))]));if(zoM(a,2)){var z=Pd(a);var I=a.pos;var J=a.arrayView;I=I===void 0?0:I;var r=z===void 0?-1:z;I=I===void 0?0:I;r=r===void 0?-1:r;if(J.totalLength&&r){r<0&&(r=J.totalLength-I);J.focus(I);if(!(I-J.arrayPos+r<=J.arrays[J.arrayIdx].length)){var P=J.arrayIdx,N=J.arrayPos;J.focus(I+r-1);N=new Uint8Array(J.arrayPos+J.arrays[J.arrayIdx].length-N);for(var u=0,E=P;E<=J.arrayIdx;E++)N.set(J.arrays[E],u),u+=J.arrays[E].length;J.arrays.splice(P,
J.arrayIdx-P+1,N);J.arrayIdx=0;J.arrayPos=0;J.focus(I)}P=J.arrays[J.arrayIdx];J=new DataView(P.buffer,P.byteOffset+I-J.arrayPos,r)}else J=new DataView(new ArrayBuffer(0));J=new Uint8Array(J.buffer,J.byteOffset,J.byteLength);a.pos+=z;z=J}else z=void 0;z=z?cN3(z):void 0;a=zoM(a,4)?Pd(a):void 0;J=I57[a];if(typeof J==="undefined")throw a=new _.Fn("Failed to recognize field number",{name:"EntityKeyHelperError",fieldNumber:a}),_.Gx(a),a;return{entityTypeFieldNumber:a,entityType:J,entityId:z}};
_.Er=function(a,z,I){I=I===void 0?0:I;var J=new JVm;if(Yx$)a=Yx$.encode(a);else{var r=new Uint8Array(Math.ceil(a.length*1.2)),P=qx0(a,r);r.length<P&&(r=new Uint8Array(P),P=qx0(a,r));r.length>P&&(r=r.subarray(0,P));a=r}a!==void 0&&(tW(J,18),r=a.length,tW(J,r),u8(J,r),J.buf.set(a,J.pos),J.pos+=r);a=rVm[z];if(typeof a==="undefined")throw I=new _.Fn("Failed to recognize entity type",{name:"EntityKeyHelperError",entityType:z}),_.Gx(I),I;a!==void 0&&(tW(J,32),tW(J,a));tW(J,40);tW(J,1);z=new Uint8Array(J.buf.buffer,
J.buf.byteOffset,J.pos);return encodeURIComponent(_.he(z,I))};
Pc$=function(a){a=a.key||a.id;if(!a)throw Error("yf");return a};
Cc0=function(a,z){a=a===void 0?{}:a;return ZQG(a,z)};
NB0=function(a,z,I,J){if(J===void 0)return J=Object.assign({},a[z]||{}),I=(delete J[I],J),J={},Object.assign({},a,(J[z]=I,J));var r={},P={};return Object.assign({},a,(P[z]=Object.assign({},a[z],(r[I]=J,r)),P))};
tGG=function(a,z,I,J,r){var P=a[z];if(P==null||!P[I])return a;J=yNM(P[I],J,r==="REPEATED_FIELDS_MERGE_OPTION_APPEND");r={};P={};return Object.assign({},a,(P[z]=Object.assign({},a[z],(r[I]=J,r)),P))};
_.Bd=function(a,z,I){return a[z]?a[z][I]||null:null};
EF3=function(){if(uu3)return uu3();var a={};uu3=a3("PersistentEntityStoreDb",{objectStores:(a.EntityStore={addedAtVersion:1},a.EntityAssociationStore={addedAtVersion:2},a),shared:!1,upgrade:function(z,I){I(1)&&R3(DZ(z,"EntityStore",{keyPath:"key"}),"entityType","entityType");I(2)&&(z=DZ(z,"EntityAssociationStore",{keyPath:["parentEntityKey","childEntityKey"]}),R3(z,"byParentEntityKey","parentEntityKey"),R3(z,"byChildEntityKey","childEntityKey"))},
version:3});return uu3()};
BBG=function(a){return _.m5(EF3(),a)};
gg=function(a){return window.Int32Array?new Int32Array(a):Array(a)};
OQE=function(a){return _.m5(gFi(),a)};
f5G=function(a){return new Or("WRONG_DATA_TYPE",{encoderVersion:a})};
AV3=function(a){return a instanceof Error?new Or("UNKNOWN_ENCODE_ERROR",{originalMessage:a.message}):new Or("UNKNOWN_ENCODE_ERROR")};
sy$=function(a){return a instanceof Error?new Or("UNKNOWN_DECODE_ERROR",{originalMessage:a.message}):new Or("UNKNOWN_DECODE_ERROR")};
nFd=function(a,z){a=a instanceof Or?a:z(a);_.Gx(a);throw a;};
KSi=function(a){a=(new TextEncoder).encode(a).subarray(0,16);var z=new Uint8Array(16);z.set(a);return z};
HQm=function(a){var z=FS7[a];if(z)return z;_.Xd(new _.Fn("Entity model not found.",{entityType:a}))};
_.f5=function(){bQO||(bQO=ho3());return bQO};
ho3=function(){var a,z,I;return _.t(function(J){if(J.nextAddress==1)return _.BP(J,2),J.yield(_.e6(),4);if(J.nextAddress!=2){a=J.yieldResult;if(!a||!_.K1()||typeof _.IE.BroadcastChannel==="undefined")return J.return();z=new VG0;return J.return(new AW(a,z))}I=_.sk(J);I instanceof Error&&_.Gx(I);return J.return()})};
_.sr=function(a,z){var I;return _.t(function(J){if(J.nextAddress==1){I=a.mutations;if(!I||I.length<=0)return J.return();z&&z.dispatch(_.rg({type:"ENTITY_LOADED",payload:I}));return J.yield(QyM(I),2)}I.length=0;_.nu(J)})};
QyM=function(a){var z;return _.t(function(I){return I.nextAddress==1?I.yield(_.f5(),2):(z=I.yieldResult)?I.yield(_.n5(z,"readwrite",function(J){for(var r={},P=_.C(a),N=P.next(),u={};!N.done;u={mutation$jscomp$4:void 0,mutationEntityType$jscomp$3:void 0},N=P.next())u.mutation$jscomp$4=N.value,u.mutation$jscomp$4.entityKey&&SLx(u.mutation$jscomp$4)&&(u.mutationEntityType$jscomp$3=(0,_.x8.getAnyKey)(u.mutation$jscomp$4.payload),N=void 0,u.mutation$jscomp$4.type==="ENTITY_MUTATION_TYPE_REPLACE"&&(N=function(E){return function(){return _.iQ7(J,
E.mutation$jscomp$4.payload[E.mutationEntityType$jscomp$3],E.mutationEntityType$jscomp$3)}}(u)),u.mutation$jscomp$4.type==="ENTITY_MUTATION_TYPE_DELETE"&&(N=function(E){return function(){return xyE(J,E.mutation$jscomp$4.entityKey)}}(u)),u.mutation$jscomp$4.type==="ENTITY_MUTATION_TYPE_UPDATE"&&(N=function(E){return function(){return vFI(J,E.mutation$jscomp$4.entityKey,E.mutation$jscomp$4.payload[E.mutationEntityType$jscomp$3],E.mutationEntityType$jscomp$3)}}(u)),N&&(r[u.mutation$jscomp$4.entityKey]=
r[u.mutation$jscomp$4.entityKey]?r[u.mutation$jscomp$4.entityKey].then(N):N()));
return Uz.all(Object.values(r))}),0):I.return()})};
SLx=function(a){var z;a=(z=a.options)==null?void 0:z.persistenceOption;return a==="ENTITY_PERSISTENCE_OPTION_PERSIST"||a==="ENTITY_PERSISTENCE_OPTION_INMEMORY_AND_PERSIST"};
XUd=function(a,z){var I,J;_.t(function(r){if(r.nextAddress==1)return r.yield(_.f5(),2);if(r.nextAddress!=3)return(I=r.yieldResult)?r.yield(_.n5(I,"readonly",function(P){var N={},u=Object.keys(z).map(function(E){var O=z[E]?[].concat(_.ih(z[E])):[];return G7M(P,E,O,N)});
return Uz.all(u).then(function(){return N})}),3):r.return();
J=r.yieldResult;Object.keys(J).length>0&&a.dispatch($yd(J));_.nu(r)})};
G7M=function(a,z,I,J){return K5(a,z,I).then(function(r){J[z]=TBG(I,r)})};
TBG=function(a,z){if(z.length!==a.length)throw Error("Bf");return z.reduce(function(I,J,r){I[a[r]]=J;return I},{})};
oFp=function(a){var z=a.filter(function(r){var P;return(r==null?void 0:(P=r.transferEntity)==null?void 0:P.transferState)==="TRANSFER_STATE_COMPLETE"}).length,I=a.filter(function(r){var P;
return(r==null?void 0:(P=r.transferEntity)==null?void 0:P.transferState)==="TRANSFER_STATE_FAILED"}).length,J=a.filter(function(r){var P;
return(r==null?void 0:(P=r.transferEntity)==null?void 0:P.transferState)&&dyO.includes(r.transferEntity.transferState)});
if(!(z||J!=null&&J.length))return 0;z=_.WSE(J)+z;a=a.length-I;return a===0?0:Math.round(z*100/a)/100};
_.WSE=function(a){var z=[];z=z.concat.apply(z,_.ih(a.filter(function(P){return P.streamEntity}).map(function(P){var N=Object.assign({},P.streamEntity),u,E=(u=P.transferEntity)==null?void 0:u.transferState;
N.streamsProgress=N.streamsProgress||[];N.streamsProgress=N.streamsProgress.map(function(O){var f=Object.assign({},O);f.numBytesDownloaded=E==="TRANSFER_STATE_COMPLETE"?O.numTotalBytes:O.numBytesDownloaded;return f});
return N}).map(function(P){return P.streamsProgress})));
var I=a=0;z=_.C(z);for(var J=z.next();!J.done;J=z.next()){var r=J.value;J=Number(r.numBytesDownloaded);r=Number(r.numTotalBytes);I+=isNaN(J)?0:J;a+=isNaN(r)?0:r}return a===0?0:Math.round(I*100/a)/100};
Uy3=function(a){if(!a||!a.expirationTimestamp||!a.action)return!1;var z=(0,_.jp)()/1E3;return Number(a.expirationTimestamp)>=z};
F4=function(a){return a&&a.expirationTimestamp&&a.action?Uy3(a)&&a.action==="OFFLINE_VIDEO_POLICY_ACTION_OK":!1};
_.Hd=function(a){return["TRANSFER_STATE_TRANSFER_IN_QUEUE","TRANSFER_STATE_PAUSED_BY_USER","TRANSFER_STATE_TRANSFERRING"].includes(a||"TRANSFER_STATE_UNKNOWN")};
Dy1=function(a){var z=new JVm;if(a!==void 0){var I=Math.ceil(Math.log2(a.length*4+2)/7);I=I===void 0?2:I;tW(z,10);z.submessagePosStack.push(z.pos);z.submessagePosStack.push(I);z.pos+=I;u8(z,a.length*1.2);I=qx0(a,z.buf.subarray(z.pos));z.pos+I>z.buf.length&&(u8(z,I),I=qx0(a,z.buf.subarray(z.pos)));z.pos+=I;a=z.submessagePosStack.pop();I=z.submessagePosStack.pop();for(var J=z.pos-I-a;a--;){var r=a?128:0;z.view.setUint8(I++,J&127|r);J>>=7}}z=new Uint8Array(z.buf.buffer,z.buf.byteOffset,z.pos);return(new TextDecoder("utf-8")).decode(z)};
_.b8=function(a){var z=0;a=_.C(a);for(var I=a.next(),J={};!I.done;J={transferState$jscomp$3:void 0},I=a.next()){var r=I.value,P=void 0;I=(P=r.streamEntity)!=null?P:{};P=void 0;J.transferState$jscomp$3=(P=r.transferEntity)==null?void 0:P.transferState;P=r=void 0;((r=I)==null?0:(P=r.streamsProgress)==null?0:P.length)&&I.streamsProgress.forEach(function(N){return function(u){u=Number(N.transferState$jscomp$3==="TRANSFER_STATE_COMPLETE"?u.numTotalBytes:u.numBytesDownloaded);isFinite(u)&&(z+=u)}}(J))}return z};
Rod=function(a){return a.some(function(z){var I;if(!(z==null?0:(I=z.transferEntity)==null?0:I.transferState)){var J;return!(z==null?0:(J=z.policyEntity)==null?0:J.action)||z.policyEntity.action==="OFFLINE_VIDEO_POLICY_ACTION_OK"}return dyO.includes(z.transferEntity.transferState)})};
LSi=function(a,z){if(!z)return!1;if(_.K("of_pb_en_po_ks"))return!0;var I;a=(I=_.Bd(a,"offlineVideoPolicy",_.Er(z,"offlineVideoPolicy")))!=null?I:void 0;return!!a&&F4(a)};
_.pUx=function(a){var z=["TRANSFER_STATE_COMPLETE"];z=z===void 0?l5M:z;return a.filter(function(I){var J,r;return z.includes((r=(J=I.transferEntity)==null?void 0:J.transferState)!=null?r:"TRANSFER_STATE_UNKNOWN")})};
wUI=function(a,z){if(z){var I,J=(I=_.Bd(a,"playbackData",_.Er(z,"playbackData")))!=null?I:null,r;I=(r=_.Bd(a,"transfer",_.Er(z,"transfer")))!=null?r:null;var P;r=(P=_.Bd(a,"offlineVideoStreams",_.Er(z,"offlineVideoStreams")))!=null?P:null;var N;a=(N=_.Bd(a,"offlineVideoPolicy",_.Er(z,"offlineVideoPolicy")))!=null?N:null;if(J||I||r||a)return{playbackDataEntity:J,transferEntity:I,streamEntity:r,policyEntity:a}}};
_.hW=function(a){var z=a.playbackData;if(!z)return[];var I=[];z=_.C(Object.keys(z));for(var J=z.next();!J.done;J=z.next()){var r=J.value;if(!myI(a,_.ZY(r).entityId)&&(J=wUI(a,_.ZY(r).entityId))){var P=void 0,N=void 0;r=(N=Number((P=_.Bd(a,"playbackData",r))==null?void 0:P.streamDownloadTimestampSeconds))!=null?N:(0,_.jp)();I.push({entity:J,streamDownloadTimestamp:r})}}return I.sort(function(u,E){var O=u.streamDownloadTimestamp,f=E.streamDownloadTimestamp;return f===O?u.entity.streamEntity&&!E.entity.streamEntity?
1:-1:f-O}).map(function(u){return u.entity})};
yVG=function(a){return _.pUx(_.hW(a))};
_.k7$=function(a){return _.hW(a).filter(function(z){var I;if(((I=z.policyEntity)==null?0:I.action)&&z.policyEntity.action!=="OFFLINE_VIDEO_POLICY_ACTION_OK")return!1;var J;if((J=z.transferEntity)==null?0:J.transferState){var r;return dyO.includes((r=z.transferEntity)==null?void 0:r.transferState)}return!0})};
myI=function(a,z){var I;return((I=_.Bd(a,"downloadStatusEntity",_.Er(z,"downloadStatusEntity")))==null?void 0:I.downloadState)==="DOWNLOAD_STATE_USER_DELETED"?!0:!1};
MGd=function(a){var z;if(a==null?0:(z=a.playbackDataEntity)==null?0:z.key)return _.ZY(a.playbackDataEntity.key).entityId;var I;if(a==null?0:(I=a.transferEntity)==null?0:I.key)return _.ZY(a.transferEntity.key).entityId;var J;if(a==null?0:(J=a.streamEntity)==null?0:J.key)return _.ZY(a.streamEntity.key).entityId;var r;if(a==null?0:(r=a.policyEntity)==null?0:r.key)return _.ZY(a.policyEntity.key).entityId};
YLx=function(a){var z=new Set,I;a=(I=a.mainDownloadsListEntity)==null?void 0:I[cV$];var J;if(!(a==null?0:(J=a.downloads)==null?0:J.length))return z;var r;a==null||(r=a.downloads)==null||r.forEach(function(P){(P==null?0:P.videoItem)&&z.add(P.videoItem)});
return z};
VC=function(a,z){if(z){var I=_.Bd(a,"mainVideoEntity",_.Er(z,"mainVideoEntity")),J=_.Bd(a,"downloadStatusEntity",_.Er(z,"downloadStatusEntity")),r=_.Bd(a,"ytMainChannelEntity",_.Er(z,"ytMainChannelEntity")),P={playbackDataEntity:null,transferEntity:null,streamEntity:null,policyEntity:null};a=wUI(a,z);J=(J==null?void 0:J.downloadState)==="DOWNLOAD_STATE_PENDING_DOWNLOAD"||!_.K("woffle_render_failed_download_state_ks")&&(J==null?void 0:J.downloadState)==="DOWNLOAD_STATE_FAILED";!a&&J&&(a=P);if(a&&I&&
r)return Object.assign({},{videoEntity:I,channelEntity:r},a)}};
eoi=function(a,z){return qLm(a,z)==="TRANSFER_STATE_COMPLETE"&&LSi(a,z)};
aOi=function(a,z){if(!z)return!1;var I;a=(I=_.Bd(a,"playbackData",_.Er(z,"playbackData")))!=null?I:void 0;return!!a&&!!a.playerResponseJson};
qLm=function(a,z){if(!z)return"TRANSFER_STATE_UNKNOWN";var I=_.Bd(a,"transfer",_.Er(z,"transfer"));if(I){var J;return(J=I.transferState)!=null?J:"TRANSFER_STATE_UNKNOWN"}I=_.Bd(a,"offlineOrchestrationActionWrapperEntity",_.Er(z,"offlineOrchestrationActionWrapperEntity"));a=_.Bd(a,"mainVideoEntity",_.Er(z,"mainVideoEntity"));return I||a?"TRANSFER_STATE_TRANSFER_IN_QUEUE":"TRANSFER_STATE_UNKNOWN"};
j7x=function(a,z){if(!z)return"TRANSFER_STATE_UNKNOWN";if(a=_.Bd(a,"transfer",_.Er(z,"transfer"))){var I;return(I=a.transferState)!=null?I:"TRANSFER_STATE_UNKNOWN"}return"TRANSFER_STATE_UNKNOWN"};
z3G=function(a,z){return z&&(a=_.Bd(a,"videoPlaybackPositionEntity",_.Er(z,"videoPlaybackPositionEntity")),a==null?0:a.lastPlaybackPositionSeconds)?Number(a.lastPlaybackPositionSeconds):0};
Jqp=function(a,z){return IOm(a).some(function(I){var J;return(I==null?void 0:(J=I.mainPlaylistEntity)==null?void 0:J.playlistId)===z})};
Pzd=function(a,z,I){var J=rqp(a,z);if(!J.length)return[];z=[];J=_.C(J);for(var r=J.next();!r.done;r=J.next()){r=r.value;var P=VC(a,r);I&&qLm(a,r)!=="TRANSFER_STATE_COMPLETE"||P&&z.push(P)}return z};
rqp=function(a,z){if(!z)return[];var I=_.Er(z,"mainPlaylistEntity"),J;z=(J=a.mainPlaylistEntity)==null?void 0:J[I];J=[];if(z==null||!z.videos)return J;z=_.C(z.videos);for(I=z.next();!I.done;I=z.next()){I=I.value;var r=void 0,P=void 0,N=void 0,u=(r=a)==null?void 0:(P=r.mainPlaylistVideoEntity)==null?void 0:(N=P[I])==null?void 0:N.video;u&&(I=_.ZY(u).entityId)&&J.push(I)}return J};
ZJO=function(a,z){if(z){var I=_.Bd(a,"mainPlaylistEntity",_.Er(z,"mainPlaylistEntity")),J=_.Bd(a,"mainPlaylistDownloadStateEntity",_.Er(z,"mainPlaylistDownloadStateEntity"));a=_.Bd(a,"ytMainChannelEntity",_.Er(z,"ytMainChannelEntity"));if(J&&I)return Object.assign({},{mainPlaylistEntity:I,mainPlaylistDownloadStateEntity:J},!!a&&{channelEntity:a})}};
IOm=function(a){return Czp(a).sort(function(z,I){return I.addedTimestampMillis-z.addedTimestampMillis}).map(function(z){return z.downloadedPlaylistEntities})};
Czp=function(a){var z=a.mainPlaylistDownloadStateEntity,I=[];if(!z)return I;for(var J=_.C(Object.keys(z)),r=J.next();!r.done;r=J.next()){var P=r.value;r=ZJO(a,_.ZY(P).entityId);var N=void 0;P=Number((N=z[P])==null?void 0:N.addedTimestampMillis);N=isNaN(P)?(0,_.jp)():P;r!==void 0&&I.push({downloadedPlaylistEntities:r,addedTimestampMillis:N})}return I};
NRi=function(a){var z,I=(z=a.mainPlaylistVideoEntity)!=null?z:{};return new Set(IOm(a).reduce(function(J,r){J=J===void 0?[]:J;var P,N;r==null||(P=r.mainPlaylistEntity)==null||(N=P.videos)==null||N.forEach(function(u){var E;(u=(E=I[u])==null?void 0:E.video)&&J.push(u)});
return J},[]))};
tKI=function(a){return"downloadedMusicPlaylistEntities"in a};
uop=function(a){return"mainPlaylistEntity"in a&&"mainPlaylistDownloadStateEntity"in a};
E3G=function(a){return"videoEntity"in a&&"channelEntity"in a};
BRO=function(a){var z=a.musicPlaylistDownloadMetadataEntity,I=[];if(!z)return I;for(var J=_.C(Object.keys(z)),r=J.next();!r.done;r=J.next()){r=r.value;a:{var P=a,N=_.ZY(r).entityId;if(N){var u=_.Bd(P,"musicPlaylist",_.Er(N,"musicPlaylist"));P=_.Bd(P,"musicPlaylistDownloadMetadataEntity",_.Er(N,"musicPlaylistDownloadMetadataEntity"));if(u&&P){u={musicPlaylistEntity:u,musicPlaylistDownloadStateEntity:P};break a}}u=void 0}P=void 0;r=Number((P=z[r])==null?void 0:P.addedTimestampMillis);r=isNaN(r)?(0,_.jp)():
r;u!==void 0&&I.push({downloadedMusicPlaylistEntities:u,addedTimestampMillis:r})}return I};
g3M=function(a){var z=new Set;a=_.C(a);for(var I=a.next();!I.done;I=a.next())if(I=I.value,"musicPlaylistEntity"in I&&"musicPlaylistDownloadStateEntity"in I){I=_.C(I.musicPlaylistEntity.tracks);for(var J=I.next();!J.done;J=I.next())z.add(J.value)}return z};
OJ7=function(a,z){if(z){var I=_.Bd(a,"musicTrack",_.Er(z,"musicTrack")),J=_.Bd(a,"musicArtist",_.Er(z,"musicArtist"))||{};if((a=wUI(a,z))&&I&&J)return Object.assign({},{musicTrackEntity:I,musicArtistEntity:J},a)}};
fO7=function(a){var z=a.musicTrackDownloadMetadataEntity,I=[];if(!z)return[];z=_.C(Object.keys(z));for(var J=z.next();!J.done;J=z.next()){var r=J.value;J=OJ7(a,_.ZY(r).entityId);var P=void 0;r=Number((P=_.Bd(a,"musicTrackDownloadMetadataEntity",r))==null?void 0:P.addedTimestampMillis);P=isNaN(r)?(0,_.jp)():r;J!==void 0&&I.push({downloadedMusicEntities:J,addedTimestampMillis:P})}return I};
n37=function(a,z){if(!z)return[];if(Object.values(Aqi).includes(z))return s7$(a,z);z=_.Er(z,"musicPlaylist");var I;a=(I=a.musicPlaylist)==null?void 0:I[z];I=[];if(a==null||!a.tracks)return I;a=_.C(a.tracks);for(z=a.next();!z.done;z=a.next())(z=_.ZY(z.value).entityId)&&I.push(z);return I};
s7$=function(a,z){var I=new Set,J=BRO(a).map(function(P){return P.downloadedMusicPlaylistEntities});
J=g3M(J);J=_.C(J);for(var r=J.next();!r.done;r=J.next())(r=_.ZY(r.value).entityId)&&I.add(r);return Kh7(a).downloadedMusicEntities.filter(function(P){var N;if((N=P.musicTrackEntity)!=null&&N.videoId){P=P.musicTrackEntity;if(N=z==="PPOM"?!0:!I.has(P.videoId))b:switch(P=P.musicVideoType,z){case "PPSE":N=P==="MUSIC_VIDEO_TYPE_PODCAST_EPISODE";break b;default:N=P!=="MUSIC_VIDEO_TYPE_PODCAST_EPISODE"}P=N}else P=!1;return P}).map(function(P){var N;
return(N=P.musicTrackEntity)==null?void 0:N.videoId})};
Kh7=function(a){var z=fO7(a).sort(function(I,J){return J.addedTimestampMillis-I.addedTimestampMillis}).map(function(I){return"downloadedMusicEntities"in I?I.downloadedMusicEntities:tKI(I)?I.downloadedMusicPlaylistEntities:{}});
a=BRO(a).sort(function(I,J){return J.addedTimestampMillis-I.addedTimestampMillis}).map(function(I){return"downloadedMusicEntities"in I?I.downloadedMusicEntities:tKI(I)?I.downloadedMusicPlaylistEntities:{}});
return{downloadedMusicEntities:z,downloadedMusicPlaylistEntities:a}};
HJp=function(a,z){z=_.Xw("INNERTUBE_CLIENT_NAME")==="WEB_REMIX"?n37(a,z):rqp(a,z);if(!z.length)return"TRANSFER_STATE_UNKNOWN";z=z.map(function(I){return j7x(a,I)});
return FhO(z)};
FhO=function(a){var z=new Set(a);if(z.has("TRANSFER_STATE_FAILED")&&z.size===1)return"TRANSFER_STATE_FAILED";z.delete("TRANSFER_STATE_FAILED");if(z.has("TRANSFER_STATE_UNKNOWN")&&z.size===1)return"TRANSFER_STATE_PRE_TRANSFER";z.delete("TRANSFER_STATE_UNKNOWN");if(z.has("TRANSFER_STATE_PRE_TRANSFER")&&z.size===1||z.size===0)return"TRANSFER_STATE_PRE_TRANSFER";a=z.has("TRANSFER_STATE_TRANSFERRING");z=z.has("TRANSFER_STATE_TRANSFER_IN_QUEUE");return a||z?"TRANSFER_STATE_TRANSFERRING":"TRANSFER_STATE_COMPLETE"};
QC=function(a){var z=a.mainVideoDownloadStateEntity,I=[];if(!z)return[];z=_.C(Object.keys(z));for(var J=z.next();!J.done;J=z.next()){var r=J.value;if(!myI(a,_.ZY(r).entityId)){J=VC(a,_.ZY(r).entityId);var P=void 0,N=void 0;r=(N=Number((P=_.Bd(a,"mainVideoDownloadStateEntity",r))==null?void 0:P.addedTimestampMillis))!=null?N:(0,_.jp)();J!==void 0&&I.push({downloadedVideoEntities:J,addedTimestampMillis:r})}}return I};
bJx=function(a){return QC(a).sort(function(z,I){return I.addedTimestampMillis-z.addedTimestampMillis}).map(function(z){return z.downloadedVideoEntities})};
_.VK$=function(a){var z=NRi(a),I=_.Sx(a),J=YLx(a),r=QC(a).filter(function(N){var u,E;if((N==null?void 0:(u=N.downloadedVideoEntities)==null?void 0:(E=u.transferEntity)==null?void 0:E.transferState)!=="TRANSFER_STATE_COMPLETE")return!1;var O,f;N=N==null?void 0:(O=N.downloadedVideoEntities)==null?void 0:(f=O.videoEntity)==null?void 0:f.key;return _.K("kevlar_use_library_entity")?N&&(J.has(N)||I[N]):N&&!z.has(N)}),P=Czp(a).filter(function(N){return HJp(a,N.downloadedPlaylistEntities.mainPlaylistEntity.playlistId)===
"TRANSFER_STATE_COMPLETE"});
return[].concat(_.ih(r),_.ih(P)).sort(function(N,u){return u.addedTimestampMillis-N.addedTimestampMillis}).map(function(N){return h3x(N)})};
Q77=function(a,z){if(z&&LSi(a,z)){var I,J,r=(J=(I=_.Bd(a,"playbackData",_.Er(z,"playbackData")))!=null?I:void 0)==null?void 0:J.playerResponseJson;if(r){try{var P=JSON.parse(r);var N=_.Bd(a,"transfer",_.Er(z,"transfer")),u=z3G(a,z);u&&(P=Object.assign({},P,{playerConfig:Object.assign({},P.playerConfig,{playbackStartConfig:{startPosition:{streamTimeMillis:""+u*1E3}}})}));P.cotn=N==null?void 0:N.cotn}catch(E){}return P}}};
_.iJE=function(a){var z,I,J;a=(J=(I=((z=a.downloadsPageViewConfigurationEntity)!=null?z:{})[_.i8])==null?void 0:I.smartDownloadsOptInBannerVisibility)!=null?J:{};var r;return(r=_.H(a,SRG))!=null?r:{}};
_.Sx=function(a){var z,I,J;a=(J=(I=((z=a.mainDownloadsListEntity)!=null?z:{})[_.x_E])==null?void 0:I.downloads)!=null?J:[];z={};I=_.C(a);for(J=I.next();!J.done;J=I.next())a=void 0,z[(a=J.value.videoItem)!=null?a:""]=!0;return z};
v31=function(a){var z=_.Sx(a);if(Object.keys(z).length===0)return!1;var I=a.mainVideoEntity;if(!I)return!0;I=_.C(Object.keys(I));for(var J=I.next();!J.done;J=I.next()){J=J.value;var r=_.ZY(J).entityId;if(z[J]&&!myI(a,r))return!1}return!0};
_.xp=function(a){var z=_.Sx(a);return QC(a).sort(function(I,J){return I.addedTimestampMillis-J.addedTimestampMillis}).map(function(I){return I.downloadedVideoEntities}).filter(function(I){var J;
return(I=I==null?void 0:(J=I.videoEntity)==null?void 0:J.key)&&!!z[I]})};
_.$_I=function(a){var z,I,J;a=(J=(I=((z=a.downloadsPageViewConfigurationEntity)!=null?z:{})[_.i8])==null?void 0:I.downloadsUpsellBannerVisibility)!=null?J:{};var r;return(r=_.H(a,GGG))!=null?r:{}};
h3x=function(a){return"downloadedVideoEntities"in a?a.downloadedVideoEntities:"downloadedPlaylistEntities"in a?a.downloadedPlaylistEntities:{}};
XS0=function(a){var z=_.Sx(a),I=NRi(a),J=QC(a).filter(function(r){var P,N;return(r=r==null?void 0:(P=r.downloadedVideoEntities)==null?void 0:(N=P.videoEntity)==null?void 0:N.key)&&!z[r]&&!I.has(r)});
a=Czp(a);return[].concat(_.ih(J),_.ih(a)).sort(function(r,P){return P.addedTimestampMillis-r.addedTimestampMillis}).map(function(r){return h3x(r)})};
_.vd=function(a){if(!_.K("kevlar_use_library_entity"))return XS0(a);var z=QC(a).filter(function(J){var r,P;if(r=J=J==null?void 0:(r=J.downloadedVideoEntities)==null?void 0:(P=r.videoEntity)==null?void 0:P.key){var N,u,E;r=((u=(N=a.mainDownloadsListEntity)==null?void 0:N[cV$])==null?0:(E=u.downloads)==null?0:E.length)?YLx(a).has(J):!1}return r}),I=Czp(a);
return[].concat(_.ih(z),_.ih(I)).sort(function(J,r){return r.addedTimestampMillis-J.addedTimestampMillis}).map(function(J){return h3x(J)})};
TRG=function(a){var z=_.Sx(a),I=NRi(a);return bJx(a).filter(function(J){var r;return(J=J==null?void 0:(r=J.videoEntity)==null?void 0:r.key)&&!z[J]&&!I.has(J)})};
d_I=function(a){if(!_.K("kevlar_use_library_entity"))return TRG(a);var z=_.Sx(a),I=YLx(a);return bJx(a).filter(function(J){var r;return(J=J==null?void 0:(r=J.videoEntity)==null?void 0:r.key)&&!z[J]&&I.has(J)})};
Whp=function(a,z){z=_.Er(z,"settingEntity");var I,J,r;return!!((r=(J=((I=a.settingEntity)!=null?I:{})[z])==null?void 0:J.settingOptionValue)!=null?r:{}).boolValue};
_.Gg=function(a){var z=_.xp(a);if(Rod(z))return 0;var I=[];z=_.C(z);for(var J=z.next();!J.done;J=z.next()){J=J.value;var r=void 0,P=void 0;if((r=J)==null?0:(P=r.videoEntity)==null?0:P.key)r=_.ZY(J.videoEntity.key).entityId,J=a,r=_.Er(r,"mainVideoDownloadStateEntity"),J=_.Bd(J,"mainVideoDownloadStateEntity",r),(J=Number(J==null?void 0:J.addedTimestampMillis))&&I.push(J)}return Math.max.apply(Math,_.ih(I))};
_.$p=function(a){return a.ui.richGridMiniMode};
_.X4=function(a){return a.ui.richGridItemsPerRow};
_.o33=function(a){return a.ui.richGridSlimItemsPerRow};
_.U_G=function(a){return a.ui.guideIsExpanded};
_.Tg=function(a){return a.ui.miniplayerIsActive};
D_m=function(a){return a.ui.singleOptionSurveyIsActive};
_.dg=function(a){var z;return((z=a.ui)==null?void 0:z.currentPageType)||"WEB_PAGE_TYPE_UNKNOWN"};
_.R33=function(a){return _.dg(a)==="WEB_PAGE_TYPE_WATCH"};
_.LhG=function(a){return _.dg(a)==="WEB_PAGE_TYPE_SHORTS"};
_.lOI=function(a){return a.ui.inlinePreviewIsActive};
_.pSd=function(a){return a.ui.inlinePreviewIsEnabled};
_.wSM=function(a){return a.ui.miniplayerPlaybackState};
_.Wd=function(a){return a.ui.isOnline};
_.m_1=function(a){return a.ui.frostedGlassMode};
_.oU=function(a,z){return qLm(a.entities,z)};
_.Ur=function(a,z){return HJp(a.entities,z)};
yqi=function(a,z){var I;if(z){var J;a=(J=_.Bd(a.entities,"offlineVideoPolicy",_.Er(z,"offlineVideoPolicy")))==null?void 0:J.action}else a=void 0;return(I=a)!=null?I:"OFFLINE_VIDEO_POLICY_ACTION_UNKNOWN"};
kG0=function(a,z){var I;z?(a=_.Bd(a.entities,"offlineVideoPolicy",_.Er(z,"offlineVideoPolicy")),a=Number(a==null?void 0:a.expirationTimestamp)):a=void 0;return(I=a)!=null?I:0};
_.MKx=function(a){return _.hW(a.entities).length};
cqG=function(a,z){return VC(a.entities,z)};
YRm=function(a,z){return ZJO(a.entities,z)};
DY=function(a,z){return(a=VC(a.entities,z))?_.WSE([a]):0};
_.qR$=function(a,z){var I=_.Xw("INNERTUBE_CLIENT_NAME")==="WEB_REMIX";if(I){var J=a.entities;var r=n37(J,z);if(r.length){var P=[];r=_.C(r);for(var N=r.next();!N.done;N=r.next())(N=OJ7(J,N.value))&&P.push(N);J=P}else J=[]}else J=Pzd(a.entities,z);var u;if(I){var E=a.entities;z?(z=_.Er(z,"musicPlaylist"),E=(u=E.musicPlaylist)==null?void 0:u[z],u=E!=null&&E.tracks?E.tracks.length:0):u=0}else u=a.entities,z?(z=_.Er(z,"mainPlaylistEntity"),u=(E=u.mainPlaylistEntity)==null?void 0:E[z],u=u!=null&&u.videos?
u.videos.length:0):u=0;return J.length!==u?0:J?oFp(J):0};
_.e3$=function(a){return a.download.isLeaderTab};
_.aGi=function(a,z,I){if(!z&&I){var J=a.entities;if(I){var r=Dy1(I),P,N;z=(N=(P=_.Bd(J,"offlineabilityEntity",_.Er(r,"offlineabilityEntity")))==null?void 0:P.addToOfflineButtonState)!=null?N:"ADD_TO_OFFLINE_BUTTON_STATE_ENABLED"}else z="ADD_TO_OFFLINE_BUTTON_STATE_DISABLED"}else P=a.entities,z?(N=Dy1(z),z=(r=(J=_.Bd(P,"offlineabilityEntity",_.Er(N,"offlineabilityEntity")))==null?void 0:J.addToOfflineButtonState)!=null?r:"ADD_TO_OFFLINE_BUTTON_STATE_ENABLED"):z="ADD_TO_OFFLINE_BUTTON_STATE_DISABLED";
return z};
jD7=function(a,z){a=a.entities;if(z){z=Dy1(z);var I,J;z=(J=(I=_.Bd(a,"offlineabilityEntity",_.Er(z,"offlineabilityEntity")))==null?void 0:I.addToOfflineButtonState)!=null?J:"ADD_TO_OFFLINE_BUTTON_STATE_UNKNOWN"}else z="ADD_TO_OFFLINE_BUTTON_STATE_UNKNOWN";return z};
_.zGp=function(a){var z=a.entities;a=_.Wd(a);var I=Whp(z,"SMART_DOWNLOADS_OPT_IN_BANNER_DISMISSED");if(!_.K("kevlar_modern_downloads_page")&&I)var J=!1;else{var r,P;z=(P=(r=((J=z.downloadsPageViewConfigurationEntity)!=null?J:{})[_.i8])==null?void 0:r.smartDownloadsOptInBannerVisibility)!=null?P:{};J=a?!!z.visibleWithConnection:!!z.visibleWithoutConnection}return J};
_.IGm=function(a){return Whp(a.entities,"SMART_DOWNLOADS_ENABLED")};
_.JKx=function(a){return v31(a.entities)};
rK$=function(a){return _.xp(a.entities).every(function(z){var I;return(z==null?void 0:(I=z.transferEntity)==null?void 0:I.transferState)&&!dyO.includes(z.transferEntity.transferState)})};
_.Pr1=function(a){var z,I,J,r=(J=(I=((z=a.entities.downloadsPageViewConfigurationEntity)!=null?z:{})[_.i8])==null?void 0:I.downloadsUpsellBannerVisibility)!=null?J:{};return _.Wd(a)?!!r.visibleWithConnection:!!r.visibleWithoutConnection};
_.ZNM=function(a,z){return myI(a.entities,z)};
Cr3=function(a,z){if(z){var I,J;a=(J=(I=_.Bd(a.entities,"downloadStatusEntity",_.Er(z,"downloadStatusEntity")))==null?void 0:I.downloadState)!=null?J:"DOWNLOAD_STATE_UNKNOWN"}else a="DOWNLOAD_STATE_UNKNOWN";return a};
RU=function(a,z){return z3G(a.entities,z)};
EoO=function(a){a=_.Nr0(a);var z=a.hours===void 0?0:a.hours,I=a.minutes===void 0?0:a.minutes,J=a.seconds===void 0?0:a.seconds,r=z>0;a=[];r&&(z=_.tPM(z),a.push(z));z=r;z=z===void 0?!1:z;I=(["af","be","lt"].includes(_.L5)||z)&&I<10?uSG().format(I):(new Intl.NumberFormat("en-u-nu-latn")).format(I);a.push(I);I=uSG().format(J);a.push(I);I=":";"da fi id si sr sr-Latn".split(" ").includes(_.L5)&&(I=".");return a.join(I)};
_.Nr0=function(a){var z=a.hours||0,I=a.minutes||0,J=a.seconds||0;z=J+I*60+z*3600+(a.days||0)*86400+(a.weeks||0)*604800+(a.months||0)*2629800+(a.years||0)*31557600;if(z<=0)return{hours:0,minutes:0,seconds:0};a=z;z=Math.floor(a/3600);a%=3600;I=Math.floor(a/60);J=Math.floor(a%60);return{hours:z,minutes:I,seconds:J}};
_.tPM=function(a){a=(new Intl.NumberFormat("en-u-nu-latn")).format(a);var z=["fr"],I="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(_.L5)?a.replace(",","\u00a0"):z.includes(_.L5)?a.replace(",","\u202f"):I.includes(_.L5)?a.replace(",","."):a};
uSG=function(){return new Intl.NumberFormat("en-u-nu-latn",{minimumIntegerDigits:2})};
Br0=function(a){try{return(new _.l8(5)).format(a)}catch(z){}};
p5=function(a){return{thumbnailOverlayDownloadingRenderer:{state:a}}};
go0=function(a){if(a=Br0(a))return{thumbnailOverlaySidePanelRenderer:{text:_.zg(a),icon:{iconType:"PLAYLISTS"}}}};
ONM=function(){var a=_.AR("PLAY_ALL",void 0,"Play all");return{thumbnailOverlayHoverTextRenderer:{text:_.zg(a),icon:{iconType:"PLAY_ALL"}}}};
fGd=function(a){a=_.wg(a,2);return _.L5!=="ru"&&_.L5!=="es_419"&&_.L5!=="es-419"&&_.L5!=="es"&&_.L5!=="es_US"&&_.L5!=="es-US"&&_.L5!=="fr"&&_.L5!=="pl"&&_.L5!=="it"&&_.L5!=="nl"&&_.L5!=="uk"&&_.L5!=="fr_CA"&&_.L5!=="fr-CA"||a===""?a:a[0].toLocaleUpperCase()+a.substring(1)};
sD1=function(a){return function(z){var I=a(),J=_.wg(z,I.dateFormat);z=_.wg(z,I.timeFormat);var r=AK$.DATETIMEFORMATS[I.joinerStyle];r=r.replace(/'(?!')/g,"");r=r.replace("{0}",z);r=r.replace("{1}",J);return I.capitalize(r)}};
no$=function(a){return a?typeof a.seconds==="string"&&(a.nanos===void 0||typeof a.nanos==="number"):!1};
KPm=function(a){return new Date(Number(a.seconds)*1E3+(a.nanos||0)*1E-6)};
_.wg=function(a,z){if(typeof a.getTime==="function")a={date:a};else if(no$(a))a={date:KPm(a)};else if(typeof no$(a.timestamp)&&typeof a.i18nInternalSecondsEastOfUtc==="number")a={date:KPm(a.timestamp),timeZone:mH(-a.i18nInternalSecondsEastOfUtc/60)};else throw Error("Cf`"+JSON.stringify(a));var I=a;a=I.date;I=I.timeZone;z=FPp(z).format(a,I);_.L5==="zh-TW"&&(a=I?Number(FPp("H").format(a,I)):a.getHours(),z=a<5?z.replace("\u4e0a\u5348","\u51cc\u6668"):a<8?z.replace("\u4e0a\u5348","\u65e9\u4e0a"):a<12?
z.replace("\u4e0a\u5348","\u4e0a\u5348"):a<13?z.replace("\u4e0b\u5348","\u4e2d\u5348"):a<19?z.replace("\u4e0b\u5348","\u4e0b\u5348"):z.replace("\u4e0b\u5348","\u665a\u4e0a"));return z};
FPp=function(a){if(HNp.has(a))return HNp.get(a);var z=bNM(a);z=hGm(z);VPM!==!0&&(VPM=!0);QDd=!0;QDd=!1;z=new yC(z,AK$);HNp.set(a,z);return z};
bNM=function(a){return(new yC(a,AK$)).patternParts_.map(function(z){return z.type===0?"'"+z.text+"'":z.text}).join("")};
hGm=function(a){return _.L5==="en"||_.L5==="es_US"||_.L5==="es-US"?a:a.replace(/(?:a\s?)?([hK]+)([:.]mm)(?:\s?a)?/g,function(z,I,J){return"H".repeat(I.length)+J})};
Trm=function(a,z){S4E||(_.kp=_.iNG,S4E=new xs0);var I=S4E;a:if(a=vox(a),z=vox(z||new Date),a>z)I=a.getTime()-z.getTime()>6048E5?_.wg(a,1):GcE(a);else{for(var J=0;$sE(a,12*(J+1))<z;)++J;if(J>0)I=I.format(-J,0);else{for(J=0;$sE(a,J+1)<z;)++J;if(J>0)I=I.format(-J,2);else{a=z.getTime()-a.getTime();z=_.C(XwM);for(J=z.next();!J.done;J=z.next()){J=J.value;var r=J.unit,P=Math.floor(a/J.unitDuration);if(P>=(J.threshold===void 0?1:J.threshold)){I=I.format(-P,r);break a}}I=I.format(-0,7)}}}return I};
vox=function(a){if(typeof a.getTime==="function")return a;if(no$(a))return KPm(a);throw Error("Df`"+JSON.stringify(a));};
$sE=function(a,z){for(var I=0,J;;++I)if(J=new Date(a.getFullYear(),a.getMonth()+z,a.getDate()-I,a.getHours(),a.getMinutes(),a.getSeconds()),J.getMonth()===(a.getMonth()+z)%12)return J};
_.Mo=function(a){return{runs:[{text:a}]}};
_.cd=function(a){if(a&&a.simpleText)return a.simpleText;var z="";if(a&&a.runs)for(var I=0;I<a.runs.length;I++)a.runs[I].text&&(z+=a.runs[I].text);return z};
WPE=function(a,z,I,J){return a.videoEntity&&!a.policyEntity&&I!=="DOWNLOAD_STATE_FAILED"?[p5("THUMBNAIL_OVERLAY_DOWNLOADING_RENDERER_STATE_DOWNLOADING")]:F4(a.policyEntity)&&z!=="TRANSFER_STATE_FAILED"&&z!=="TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH"?z==="TRANSFER_STATE_PAUSED_BY_USER"?[p5("THUMBNAIL_OVERLAY_DOWNLOADING_RENDERER_STATE_PAUSED_BY_USER")]:_.Hd(z)?[p5("THUMBNAIL_OVERLAY_DOWNLOADING_RENDERER_STATE_DOWNLOADING")]:a.videoEntity.lengthSeconds?dsx(a.videoEntity.lengthSeconds,J):[]:
[p5("THUMBNAIL_OVERLAY_DOWNLOADING_RENDERER_STATE_FAILED")]};
dsx=function(a,z){var I=[{thumbnailOverlayTimeStatusRenderer:{text:_.zg(EoO({seconds:a})),style:"DEFAULT"}}];z&&(a=z<=0||a<=0?0:z>=a?100:Math.ceil(z*100/a),a>0&&I.push({thumbnailOverlayResumePlaybackRenderer:{percentDurationWatched:a}}));return I};
ooG=function(a,z,I,J,r){if(z==="TRANSFER_STATE_UNKNOWN"||!a)return{};if(_.Hd(z)||z==="TRANSFER_STATE_PRE_TRANSFER")var P=[p5("THUMBNAIL_OVERLAY_DOWNLOADING_RENDERER_STATE_DOWNLOADING")];else{var N,u;if(z==="TRANSFER_STATE_COMPLETE"&&((N=a.mainPlaylistEntity)==null?0:(u=N.videos)==null?0:u.length)){if(_.K("web_modern_collections_v2")){var E;var O=(P=a.mainPlaylistEntity)==null?void 0:(E=P.videos)==null?void 0:E.length;P=(P=Br0(O))?{thumbnailOverlayBottomPanelRenderer:{text:_.zg(P),icon:{iconType:"PLAYLISTS"}}}:
void 0}else{var f;P=go0((O=a.mainPlaylistEntity)==null?void 0:(f=O.videos)==null?void 0:f.length)}var A;P=[ONM(),Object.assign({},(A=P)!=null?A:{})]}else P=[]}A=P;a:if(z==="TRANSFER_STATE_PRE_TRANSFER")I=IU(_.AR("PREPARING_TO_DOWNLOAD",void 0,"Preparing to download..."));else if(z==="TRANSFER_STATE_TRANSFER_IN_QUEUE")I=IU(_.AR("WAITING_TO_DOWNLOAD"));else if(_.Hd(z))I=Math.floor(I*100).toString(),I=IU(_.AR("DOWNLOADING_PERCENT",{percent:I},"Downloading... "+I+"%"));else{if(J&&(_.K("playlist_is_offline_selector_killswitch")&&
(r=_.ab().resolve(_.wo).isNetworkAvailable()),r)){I=mbI(_.AR("VIEW_FULL_PLAYLIST",void 0,"View full playlist"),pYp(J));break a}I=void 0}z=z==="TRANSFER_STATE_COMPLETE"?[{metadataBadgeRenderer:{label:_.AR("DOWNLOADED",void 0,"Downloaded"),style:"BADGE_STYLE_TYPE_SIMPLE"}}]:[];return Object.assign({},A.length?{thumbnailOverlays:A}:{},I?{viewPlaylistText:I}:{viewPlaylistText:_.Mo("")},z.length?{badges:z}:{})};
Usd=function(a,z,I,J,r,P){if(z==="TRANSFER_STATE_UNKNOWN"||!a)return{};if(J==="DOWNLOAD_STATE_USER_DELETED")return{shortViewCountText:void 0,publishedTimeText:void 0,badges:void 0,thumbnailOverlays:void 0};var N=WPE(a,z,J);if(a.videoEntity&&!a.policyEntity&&J!=="DOWNLOAD_STATE_FAILED"){var u=_.AR("WAITING_TO_DOWNLOAD");if(u)return{shortViewCountText:_.Mo(u),publishedTimeText:void 0,thumbnailOverlays:N}}if(!F4(a.policyEntity)){P=a.policyEntity&&!Uy3(a.policyEntity)?_.AR("DOWNLOAD_EXPIRED",{},"Download expired"):
_.AR("TRANSFER_FAILED",{},"Download failed");var E;if((E=a.policyEntity)==null?0:E.shortMessageForDisabledAction)P=a.policyEntity.shortMessageForDisabledAction;return{shortViewCountText:IU(P),publishedTimeText:void 0,thumbnailOverlays:N}}if(z==="TRANSFER_STATE_PAUSED_BY_USER")return{shortViewCountText:_.Mo(_.AR("DOWNLOAD_PAUSED",{},"Download paused")),publishedTimeText:void 0,thumbnailOverlays:N};if(z==="TRANSFER_STATE_FAILED"||z==="TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH")return{shortViewCountText:_.Mo(_.AR("TRANSFER_FAILED",
{},"Download failed")),publishedTimeText:void 0,thumbnailOverlays:N};if(z==="TRANSFER_STATE_TRANSFER_IN_QUEUE"&&(E=_.AR("WAITING_TO_DOWNLOAD"),J==="DOWNLOAD_STATE_PAUSED"&&(E=_.AR("DOWNLOAD_PAUSED",{},"Download paused")),E))return{shortViewCountText:_.Mo(E),publishedTimeText:void 0,thumbnailOverlays:N};if(_.Hd(z))return a=Math.floor(I*100).toString(),{shortViewCountText:_.Mo(_.AR("DOWNLOADING_PERCENT",{percent:a},"Downloading... "+a+"%")),publishedTimeText:void 0,thumbnailOverlays:N};z=void 0;a.videoEntity.publishedTimestampMillis&&
(z=new Date,r&&(z=new Date(r)),z=IU(Trm(new Date(Number(a.videoEntity.publishedTimestampMillis)),z)));r=[];_.K("kevlar_woffle_badge_killswitch")||(r=[{metadataBadgeRenderer:{label:_.AR("DOWNLOADED",void 0,"Downloaded"),style:"BADGE_STYLE_TYPE_SIMPLE"}}]);var O;a=IU((O=a.videoEntity.localizedStrings)==null?void 0:O.viewCount);return Object.assign({},P?{shortViewCountText:void 0}:{shortViewCountText:a},P?{}:{publishedTimeText:z},{badges:r,thumbnailOverlays:N})};
RGM=function(a,z){a=a===void 0?Dsx:a;switch(z.type){case "SET_COLLAB_INVITE_LINK":return{playlistId:z.payload.playlistId,inviteLinkURL:z.payload.inviteLinkUrl};default:return a}};
lGm=function(a,z){a=a===void 0?LPp:a;switch(z.type){case "SET_CURRENT_FORM_ID":return z=z.payload.formId,a.currentFormId===z?a:{currentFormId:z,commandsMap:{}};case "SET_COMMAND_FOR_GROUP_ID":var I=z.payload;z=I.groupId;I=I.command;if(a.currentFormId){var J=Object.assign({},a.commandsMap);J[z]=I;a=Object.assign({},a,{commandsMap:J})}return a;case "RESET_COMMAND_MAP":return Object.assign({},a,{commandsMap:{}});default:return a}};
wwd=function(a,z){a=a===void 0?pwE:a;switch(z.type){case "UPDATE_CANVAS_MODE":return Object.assign({},a,{currentMode:z.payload.currentMode});default:return a}};
yKE=function(a,z){a=a===void 0?msp:a;switch(z.type){case "SET_GUIDE_IS_EXPANDED":return Object.assign({},a,{guideIsExpanded:z.payload});case "SET_SCROLL_AT_TOP":return Object.assign({},a,{scrollAtTop:z.payload});case "SET_GUIDE_IS_VISIBLE_BUT_NOT_PERSISTENT":return Object.assign({},a,{guideIsVisibleButNotPersistent:z.payload});case "SET_MINIPLAYER_IS_ACTIVE":return Object.assign({},a,{miniplayerIsActive:z.payload});case "SET_SINGLE_OPTION_SURVEY_IS_ACTIVE":return Object.assign({},a,{singleOptionSurveyIsActive:z.payload});
case "SET_SLIMLINE_SURVEY_RATING_SELECTED_INDEX":return Object.assign({},a,{slimlineSurveyRatingSelectedIndex:z.payload});case "SET_RICH_GRID_MINI_MODE":return Object.assign({},a,{richGridMiniMode:z.payload});case "SET_RICH_GRID_ITEMS_PER_ROW":return Object.assign({},a,{richGridItemsPerRow:z.payload});case "SET_RICH_GRID_SLIM_ITEMS_PER_ROW":return Object.assign({},a,{richGridSlimItemsPerRow:z.payload});case "SET_RICH_GRID_CONTAINER_WIDTH":return Object.assign({},a,{richGridContainerWidth:z.payload});
case "SET_RICH_GRID_STYLE":return Object.assign({},a,{richGridStyle:z.payload});case "SET_CURRENT_PAGE_TYPE":return Object.assign({},a,{currentPageType:z.payload});case "SET_INLINE_PREVIEW_IS_ACTIVE":return Object.assign({},a,{inlinePreviewIsActive:z.payload});case "SET_INLINE_PREVIEW_IS_ENABLED":return Object.assign({},a,{inlinePreviewIsEnabled:z.payload});case "SET_DARK_MODE_IS_ENABLED":return Object.assign({},a,{darkModeIsEnabled:z.payload});case "SET_MINIPLAYER_PLAYBACK_STATE":return Object.assign({},
a,{miniplayerPlaybackState:z.payload});case "SET_TAB_GESTURES_IS_ACTIVE":return Object.assign({},a,{tabGesturesIsActive:z.payload});case "SET_ONLINE_STATUS":return Object.assign({},a,{isOnline:z.payload});case "SET_CHIP_BAR_IS_STICKY":return Object.assign({},a,{chipBarIsSticky:z.payload});case "SET_FROSTED_GLASS_MODE":return Object.assign({},a,{frostedGlassMode:z.payload});default:return a}};
MPm=function(a,z){a=a===void 0?kc0:a;switch(z.type){case "SET_TRANSCRIPTION_STATE":return Object.assign({},a,{transcription:z.payload});case "SET_OVERLAY_STATE":return Object.assign({},a,{overlay:z.payload});case "RESET_VOICE_SEARCH_STATE":return{};default:return a}};
dTG=function(){return fL(Object.assign({},{continuation:cKI,download:Y4E,canvas:wwd,reportChannelAbuse:q4$,share:xT$,talkToRecs:vuI,ui:yKE,voiceSearch:MPm,watch:GlG,ypc:$T3,shorts:XcI,radioButtonGroup:lGm,collabInviteLink:RGM},T73))};
UTm=function(){return _.K("web_player_entities_middleware")?new Yp(dTG(),[WJd,ou7]):new Yp(dTG(),[WJd])};
_.qo=function(){DT7||(DT7=UTm());return DT7};
RR$=function(a,z,I){if(a.length)return{titleText:_.zg(z!=null?z:_.AR("DOWNLOADS",void 0,"Downloads")),contents:a.map(function(J){var r=J.videoEntity;J={videoId:r.videoId,title:IU(r.title),shortBylineText:IU(J.channelEntity.title),thumbnail:r.thumbnail};var P=r.videoId?RU(_.qo().getState(),r.videoId):0;r.videoId&&I?J.navigationEndpoint=_.jx(r.videoId,I,void 0,void 0,P):r.videoId&&(J.navigationEndpoint=lf7(r.videoId,P,r.lengthSeconds));r.lengthSeconds&&(J.thumbnailOverlays=dsx(r.lengthSeconds,P));return{playlistPanelVideoRenderer:J}}),
totalVideos:a.length}};
LJI=function(a){return(a=(0,_.x8.getValueByKeys)(a,"playlistId"))?{playlistId:a}:null};
lsG=function(){return{}};
pc$=function(a,z){return new _.Ba(function(I,J){a.then(function(r){if(r){if(r=z(r))return I(r);J()}},J)})};
wcE=function(a){var z,I,J,r=(z=a.contents)==null?void 0:(I=z.twoColumnWatchNextResults)==null?void 0:(J=I.autoplay)==null?void 0:J.autoplay,P,N,u;z=(P=a.contents)==null?void 0:(N=P.twoColumnWatchNextResults)==null?void 0:(u=N.playlist)==null?void 0:u.playlist;return r&&z&&z.playlistId?{rawResponse:a,autoplayRenderer:r,playlistPanelRenderer:z,playlistId:z.playlistId}:null};
yt0=function(a){var z=z===void 0?"UNKNOWN_INTERFACE":z;if(a.length===1)return a[0];var I=mTE[z];if(I){I=new RegExp(I);for(var J=_.C(a),r=J.next();!r.done;r=J.next())if(r=r.value,I.exec(r))return r}var P=[];Object.entries(mTE).forEach(function(N){var u=_.C(N);N=u.next().value;u=u.next().value;z!==N&&P.push(u)});
I=new RegExp(P.join("|"));a.sort(function(N,u){return N.length-u.length});
J=_.C(a);for(r=J.next();!r.done;r=J.next())if(r=r.value,!I.exec(r))return r;return a[0]};
_.ex=function(a){return"/youtubei/v1/"+yt0(a)};
_.aX=function(a){return{openPopupAction:{popupType:"TOAST",popup:{notificationActionRenderer:{responseText:a}}}}};
_.jt=function(a){return _.aX(_.Mo(a))};
kl3=function(a,z){var I={mode:"NORMAL"};a&&(I.autoplayVideo=a.navigationEndpoint,I.nextButtonVideo=a.navigationEndpoint);z&&(I.previousButtonVideo=z.navigationEndpoint);return I};
YTM=function(a,z,I){if(!I||!I.sets)return{sets:[kl3(a,z)]};var J=I.sets.find(function(N){return N.mode==="NORMAL"}),r=(0,_.x8.unsafeClone)(I);
if(!J)return r.sets.push(kl3(a,z)),r;if(!a)return I;J=_.x8.getValueByKeys.apply(null,[J].concat(_.ih(MYI)));var P=_.x8.getValueByKeys.apply(null,[a].concat(_.ih(ctp)));if(J===P)return I;r.sets=r.sets.filter(function(N){return N.mode!=="NORMAL"});
r.sets.push(kl3(a,z));return r};
qTd=function(a){return!!a.playlistPanelVideoRenderer&&!a.playlistPanelVideoRenderer.unplayableText};
eRp=function(a){return!!a.playlistPanelVideoRenderer&&!!a.playlistPanelVideoRenderer.title};
ae0=function(a,z){if(z.contents&&!(a>=z.contents.length)&&(a=z.contents.slice(a).find(qTd)))return a.playlistPanelVideoRenderer};
jWd=function(a,z){if(z.contents)return(z=z.contents.find(function(I){return!!I.playlistPanelVideoRenderer&&I.playlistPanelVideoRenderer.videoId===a}))?z.playlistPanelVideoRenderer:void 0};
z1G=function(a,z){return z.contents?z.contents.findIndex(function(I){return!!I.playlistPanelVideoRenderer&&I.playlistPanelVideoRenderer.videoId===a}):-1};
Iem=function(a,z){return z.contents?z.contents.findIndex(function(I){return!!I.playlistPanelVideoRenderer&&I.playlistPanelVideoRenderer.playlistSetVideoId===a}):-1};
Jc3=function(a,z){a.contents&&z!==-1&&a.contents.splice(z,1).length===1&&a.totalVideos!==void 0&&(--a.totalVideos,delete a.videoCountText)};
_.rc7=function(a){var z=[];if(!a||!a.contents)return z;a=_.C(a.contents);for(var I=a.next();!I.done;I=a.next())I=I.value,I.playlistPanelVideoRenderer&&I.playlistPanelVideoRenderer.videoId&&z.push(I.playlistPanelVideoRenderer.videoId);return z};
_.Pf7=function(a){if(a&&a.contents)return(a=a.contents.find(function(z){return!!z.playlistPanelVideoRenderer&&!!z.playlistPanelVideoRenderer.selected})||a.contents[a.currentIndex])?a.playlistPanelVideoRenderer:void 0};
ZV1=function(a,z,I,J,r,P,N){r=r===void 0?!1:r;P=P===void 0?!1:P;N=N===void 0?!1:N;if(a.contents&&a.contents.length!==0){J&&(a.contents=a.contents.filter(J));J=a.contents.length;for(var u=0;u<J;u++){var E=a.contents[u].playlistPanelVideoRenderer;E&&(u===z?(P&&delete E.menu,E.indexText=_.Mo("\u25b6")):r||a.isInfinite||E.indexText===void 0?delete E.indexText:E.indexText=_.Mo((u+1+I).toString()))}a.currentIndex=z+I;N&&(delete a.videoCountText,a.totalVideos=J)}};
_.zr=function(a){a=Cfi(a);if(a){var z=a.length;var I=-37%z;I<0&&(I=z+I);a=a.slice(z-I)+a.slice(0,z-I)}else a="";I="";for(z=0;z<a.length&&a[z]!==NIx;z++)I+=a[z];return I};
_.tB$=function(a,z){var I=document.body;z=z===void 0?function(u){return u}:z;
var J,r=null;a=_.C(a);for(J=a.next();!J.done;J=a.next()){var P=J.value;J="div";P[2]&&(J=z(P[2]));J=document.createElement(J);r||(r=J);var N=P[0];P=P[1];N&&(J.id=z(N));if(P)for(P=_.C(P),N=P.next();!N.done;N=P.next())J.classList.add(z(N.value));I.appendChild(J);I=J}return[r,I]};
ucE=function(a,z){for(var I="",J=0;J<z;J++)I+=a.charAt(Math.floor(Math.random()*a.length));return I};
IX=function(a){return ucE("abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789-_",a)};
Jv=function(a){return ucE("abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789",a)};
rY=function(a){return ucE("0123456789",a)};
Ph=function(){var a=performance.now(),z=new Date;var I="2."+z.getFullYear()+String(z.getMonth()+1).padStart(2,"0")+String(z.getDate()).padStart(2,"0");for(var J,r=Math.floor(Math.random()*11)+15,P=[],N=0;N<r;N++)P.push(Math.floor(Math.random()*26476865)+24547720);J=P.join(",");var u=IX(10),E=IX(100),O=IX(102),f=IX(106),A=IX(108),n=IX(11),F=IX(1140),h=IX(123),v=IX(14),d=IX(16),W=IX(1900),l=IX(23),q=IX(26),m=IX(34),M=IX(397),y=IX(44),e=IX(5),Bp=IX(72),Em=IX(74),nG=IX(75),bG=IX(88),Hp=IX(91),LG="rr4---sn-q4flrney rr2---sn-q4flrne7 rr2---sn-q4fl6n6r rr5---sn-5hne6nsr rr2---sn-4g5lznez rr5---sn-ntqe6n76 rr4---sn-ntq7yned rr1---sn-q4flrnes rr4---sn-q4fl6n6s rr4---sn-q4fl6nsy rr3---sn-q4flrnsd rr5---sn-hgn7rn7k rr3---sn-q4flrnss rr4---sn-5hne6nsz rr4---sn-q4fzen7e rr1---sn-q4flrne7 rr1---sn-aigzrnld rr5---sn-q4fzen7y rr2---sn-q4fzene7 rr2---sn-q4fzen7l".split(" ");
var oE=LG[Math.floor(Math.random()*LG.length)];var Pe=(new Date("2010-01-01")).getTime();var TJ=(new Date(Pe+Math.random()*((new Date).getTime()-Pe))).toISOString().split("T")[0];for(var Be,eM=[],Ao=0;Ao<4;Ao++)eM.push(Math.floor(Math.random()*100));Be=eM.join(".");var gf=Number(rY(5)),GJ=Number(rY(6)),Sf=Number(rY(7)),ce=Number(rY(9)),r$=rY(1),aw=rY(10),Kl=rY(16),EG=rY(19),F1=rY(2),jf=rY(20),zj=rY(21),aZ=rY(3),Cl=rY(4),kG=rY(5),sG=rY(6),SI=rY(7),iw=rY(8),H4=rY(9);var ty=ucE("abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789-_/+",
27352);var fZ=[Jv(5),Jv(5),Jv(5)].join("%2C"),ST=[rY(3),rY(5),rY(5)].join("%2C"),K6=Jv(0),Ll=Jv(1),dE=Jv(10),wE=Jv(108),NL=Jv(11),SL=Jv(12),ed=Jv(13),HL=Jv(14),vy=Jv(15),CB=Jv(16),q$=Jv(17),SM=Jv(18),Wp=Jv(19),w$=Jv(2),sO=Jv(20),B4=Jv(22),v9=Jv(23),VV=Jv(24),bw=Jv(266),He=Jv(3),XM=Jv(30),f4=Jv(34),fl=Jv(35),Fm=Jv(36),XC=Jv(4),ot=Jv(40),$X=Jv(43),d2=Jv(47),DG=Jv(5),HH=Jv(6),AE=Jv(7),kC=Jv(75),k7=Jv(8),nZ=Jv(80),TY=Jv(9),ZE="https://www."+Jv(12)+".com",NM={},pB={},Ta={},Ug={},sN={},N2={},tu={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:J}]},{service:"CSI",params:[{key:"yt_ad",value:"1"},{key:"c",value:"WEB"},{key:"cver",value:I},{key:"yt_li",value:"1"},{key:"GetPlayer_rid",value:"0x"+Jv(16).toLowerCase()}]},{service:"GUIDED_HELP",params:[{key:"logged_in",
value:"1"}]},{service:"ECATCHER",params:[{key:"client.version",value:I},{key:"client.name",value:"WEB"},{key:"client.fexp",value:J}]}],maxAgeSeconds:0,mainAppWebResponseContext:{datasyncId:zj+"||",loggedOut:!1,trackingParam:"kx_fmPxh"+Jv(73)},webResponseContextExtensionData:{hasDecorated:!0}},playabilityStatus:{status:"OK",playableInEmbed:!0,offlineability:{buttonRenderer:{serviceEndpoint:{clickTrackingParams:ot,ypcGetOfflineUpsellEndpoint:{params:nZ}},trackingParams:fl+"="}},miniplayer:{miniplayerRenderer:{playbackMode:"PLAYBACK_MODE_ALLOW"}},
contextParams:"Q0FFU0FnZ0M="},streamingData:{expiresInSeconds:"21540",formats:[{itag:18,url:"https://"+oE+".googlevideo.com/videoplayback?expire="+aw+"&ei="+l+"&ip="+Be+"&id=o-AF"+$X+"&itag=18&source=youtube&requiressl=yes&mh=X6&mm="+ST+"&mn="+fZ+"&ms="+fZ+"&mv="+Ll+"&mvi="+r$+"&pl="+F1+"&initcwndbps="+SI+"&siu="+r$+"&spc="+y+"&vprv="+r$+"&svpuc="+r$+"&mime=video%2Fmp4&ns="+VV+"&cnr="+F1+"&ratebypass=yes&dur="+iw+"&lmt="+Kl+"&mt="+aw+"&fvip=3&c=WEB&txp="+SI+"&n="+d+"&sparams=expire%2Cei%2Cip%2Cid%2Citag%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Ccnr%2Cratebypass%2Cdur%2Clmt&sig="+
A+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+A,mimeType:'video/mp4; codecs="avc1.42001E, mp4a.40.2"',bitrate:GJ,width:640,height:360,lastModified:Kl,quality:"medium",fps:30,qualityLabel:"360p",projectionType:"RECTANGULAR",audioQuality:"AUDIO_QUALITY_LOW",approxDurationMs:SI,audioSampleRate:"44100",audioChannels:2},{itag:22,url:"https://"+oE+".googlevideo.com/videoplayback?expire="+aw+"&ei="+l+"&ip="+Be+"&id=o-AF"+$X+"&itag=22&source=youtube&requiressl=yes&mh=X6&mm="+ST+"&mn="+
fZ+"&ms="+fZ+"&mv="+Ll+"&mvi="+r$+"&pl="+F1+"&initcwndbps="+SI+"&siu="+r$+"&spc="+y+"&vprv="+r$+"&svpuc="+r$+"&mime=video%2Fmp4&ns="+VV+"&cnr="+F1+"&ratebypass=yes&dur="+iw+"&lmt="+Kl+"&mt="+aw+"&fvip=3&c=WEB&txp="+SI+"&n="+d+"&sparams=expire%2Cei%2Cip%2Cid%2Citag%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Ccnr%2Cratebypass%2Cdur%2Clmt&sig="+wE+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+A,mimeType:'video/mp4; codecs="avc1.64001F, mp4a.40.2"',bitrate:GJ,width:1280,
height:720,lastModified:Kl,quality:"hd720",fps:30,qualityLabel:"720p",projectionType:"RECTANGULAR",audioQuality:"AUDIO_QUALITY_MEDIUM",approxDurationMs:SI,audioSampleRate:"44100",audioChannels:2}],adaptiveFormats:[{itag:137,url:"https://"+oE+".googlevideo.com/videoplayback?expire="+aw+"&ei="+l+"&ip="+Be+"&id=o-AF"+$X+"&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="+ST+"&mn="+fZ+"&ms="+
fZ+"&mv="+Ll+"&mvi="+r$+"&pl="+F1+"&initcwndbps="+SI+"&siu="+r$+"&spc="+y+"&vprv="+r$+"&svpuc="+r$+"&mime=video%2Fmp4&ns="+VV+"&gir="+He+"&clen="+H4+"&dur="+iw+"&lmt="+Kl+"&mt="+aw+"&fvip=3&keepalive="+He+"&c=WEB&txp="+SI+"&n="+CB+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+E+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+A,mimeType:'video/mp4; codecs="avc1.640028"',bitrate:Sf,width:1920,height:1080,
initRange:{start:"0",end:"740"},indexRange:{start:aZ,end:Cl},lastModified:Kl,contentLength:H4,quality:"hd1080",fps:30,qualityLabel:"1080p",projectionType:"RECTANGULAR",averageBitrate:Sf,approxDurationMs:SI},{itag:248,url:"https://"+oE+".googlevideo.com/videoplayback?expire="+aw+"&ei="+l+"&ip="+Be+"&id=o-AF"+$X+"&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="+ST+"&mn="+fZ+"&ms="+fZ+"&mv="+
Ll+"&mvi="+r$+"&pl="+F1+"&initcwndbps="+SI+"&siu="+r$+"&spc="+y+"&vprv="+r$+"&svpuc="+r$+"&mime=video%2Fwebm&ns="+VV+"&gir="+He+"&clen="+H4+"&dur="+iw+"&lmt="+Kl+"&mt="+aw+"&fvip=3&keepalive="+He+"&c=WEB&txp="+SI+"&n="+CB+"&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="+A,mimeType:'video/webm; codecs="vp9"',bitrate:Sf,width:1920,height:1080,initRange:{start:"0",
end:"220"},indexRange:{start:aZ,end:Cl},lastModified:Kl,contentLength:H4,quality:"hd1080",fps:30,qualityLabel:"1080p",projectionType:"RECTANGULAR",averageBitrate:Sf,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:SI},{itag:399,url:"https://"+oE+".googlevideo.com/videoplayback?expire="+aw+"&ei="+l+"&ip="+Be+"&id=o-AF"+$X+"&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="+
ST+"&mn="+fZ+"&ms="+fZ+"&mv="+Ll+"&mvi="+r$+"&pl="+F1+"&initcwndbps="+SI+"&siu="+r$+"&spc="+y+"&vprv="+r$+"&svpuc="+r$+"&mime=video%2Fmp4&ns="+VV+"&gir="+He+"&clen="+H4+"&dur="+iw+"&lmt="+Kl+"&mt="+aw+"&fvip=3&keepalive="+He+"&c=WEB&txp="+SI+"&n="+CB+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+E+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+A,mimeType:'video/mp4; codecs="av01.0.08M.08"',bitrate:Sf,
width:1920,height:1080,initRange:{start:"0",end:"699"},indexRange:{start:aZ,end:Cl},lastModified:Kl,contentLength:H4,quality:"hd1080",fps:30,qualityLabel:"1080p",projectionType:"RECTANGULAR",averageBitrate:Sf,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:SI},{itag:136,url:"https://"+oE+".googlevideo.com/videoplayback?expire="+aw+"&ei="+l+"&ip="+Be+"&id=o-AF"+$X+"&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="+
ST+"&mn="+fZ+"&ms="+fZ+"&mv="+Ll+"&mvi="+r$+"&pl="+F1+"&initcwndbps="+SI+"&siu="+r$+"&spc="+y+"&vprv="+r$+"&svpuc="+r$+"&mime=video%2Fmp4&ns="+VV+"&gir="+He+"&clen="+H4+"&dur="+iw+"&lmt="+Kl+"&mt="+aw+"&fvip=3&keepalive="+He+"&c=WEB&txp="+SI+"&n="+CB+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+A+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+A,mimeType:'video/mp4; codecs="avc1.4d401f"',bitrate:Sf,
width:1280,height:720,initRange:{start:"0",end:"738"},indexRange:{start:aZ,end:Cl},lastModified:Kl,contentLength:H4,quality:"hd720",fps:30,qualityLabel:"720p",projectionType:"RECTANGULAR",averageBitrate:GJ,approxDurationMs:SI},{itag:247,url:"https://"+oE+".googlevideo.com/videoplayback?expire="+aw+"&ei="+l+"&ip="+Be+"&id=o-AF"+$X+"&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="+ST+"&mn="+
fZ+"&ms="+fZ+"&mv="+Ll+"&mvi="+r$+"&pl="+F1+"&initcwndbps="+SI+"&siu="+r$+"&spc="+y+"&vprv="+r$+"&svpuc="+r$+"&mime=video%2Fwebm&ns="+VV+"&gir="+He+"&clen="+H4+"&dur="+iw+"&lmt="+Kl+"&mt="+aw+"&fvip=3&keepalive="+He+"&c=WEB&txp="+SI+"&n="+CB+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+A+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+A,mimeType:'video/webm; codecs="vp9"',bitrate:Sf,width:1280,
height:720,initRange:{start:"0",end:"219"},indexRange:{start:aZ,end:Cl},lastModified:Kl,contentLength:H4,quality:"hd720",fps:30,qualityLabel:"720p",projectionType:"RECTANGULAR",averageBitrate:GJ,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:SI},{itag:398,url:"https://"+oE+".googlevideo.com/videoplayback?expire="+aw+"&ei="+l+"&ip="+Be+"&id=o-AF"+$X+"&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="+
ST+"&mn="+fZ+"&ms="+fZ+"&mv="+Ll+"&mvi="+r$+"&pl="+F1+"&initcwndbps="+SI+"&siu="+r$+"&spc="+y+"&vprv="+r$+"&svpuc="+r$+"&mime=video%2Fmp4&ns="+VV+"&gir="+He+"&clen="+H4+"&dur="+iw+"&lmt="+Kl+"&mt="+aw+"&fvip=3&keepalive="+He+"&c=WEB&txp="+SI+"&n="+CB+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+A+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+A,mimeType:'video/mp4; codecs="av01.0.05M.08"',bitrate:Sf,
width:1280,height:720,initRange:{start:"0",end:"699"},indexRange:{start:aZ,end:Cl},lastModified:Kl,contentLength:H4,quality:"hd720",fps:30,qualityLabel:"720p",projectionType:"RECTANGULAR",averageBitrate:GJ,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:SI},{itag:135,url:"https://"+oE+".googlevideo.com/videoplayback?expire="+aw+"&ei="+l+"&ip="+Be+"&id=o-AF"+$X+"&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="+
ST+"&mn="+fZ+"&ms="+fZ+"&mv="+Ll+"&mvi="+r$+"&pl="+F1+"&initcwndbps="+SI+"&siu="+r$+"&spc="+y+"&vprv="+r$+"&svpuc="+r$+"&mime=video%2Fmp4&ns="+VV+"&gir="+He+"&clen="+iw+"&dur="+iw+"&lmt="+Kl+"&mt="+aw+"&fvip=3&keepalive="+He+"&c=WEB&txp="+SI+"&n="+CB+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+A+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+A,mimeType:'video/mp4; codecs="avc1.4d401f"',bitrate:GJ,
width:854,height:480,initRange:{start:"0",end:"738"},indexRange:{start:aZ,end:Cl},lastModified:Kl,contentLength:iw,quality:"large",fps:30,qualityLabel:"480p",projectionType:"RECTANGULAR",averageBitrate:GJ,approxDurationMs:SI},{itag:244,url:"https://"+oE+".googlevideo.com/videoplayback?expire="+aw+"&ei="+l+"&ip="+Be+"&id=o-AF"+$X+"&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="+ST+"&mn="+
fZ+"&ms="+fZ+"&mv="+Ll+"&mvi="+r$+"&pl="+F1+"&initcwndbps="+SI+"&siu="+r$+"&spc="+y+"&vprv="+r$+"&svpuc="+r$+"&mime=video%2Fwebm&ns="+VV+"&gir="+He+"&clen="+iw+"&dur="+iw+"&lmt="+Kl+"&mt="+aw+"&fvip=3&keepalive="+He+"&c=WEB&txp="+SI+"&n="+CB+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+wE+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+A,mimeType:'video/webm; codecs="vp9"',bitrate:GJ,width:854,
height:480,initRange:{start:"0",end:"219"},indexRange:{start:aZ,end:Cl},lastModified:Kl,contentLength:iw,quality:"large",fps:30,qualityLabel:"480p",projectionType:"RECTANGULAR",averageBitrate:GJ,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:SI},{itag:397,url:"https://"+oE+".googlevideo.com/videoplayback?expire="+aw+"&ei="+l+"&ip="+Be+"&id=o-AF"+$X+"&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="+
ST+"&mn="+fZ+"&ms="+fZ+"&mv="+Ll+"&mvi="+r$+"&pl="+F1+"&initcwndbps="+SI+"&siu="+r$+"&spc="+y+"&vprv="+r$+"&svpuc="+r$+"&mime=video%2Fmp4&ns="+VV+"&gir="+He+"&clen="+iw+"&dur="+iw+"&lmt="+Kl+"&mt="+aw+"&fvip=3&keepalive="+He+"&c=WEB&txp="+SI+"&n="+CB+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+E+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+A,mimeType:'video/mp4; codecs="av01.0.04M.08"',bitrate:GJ,
width:854,height:480,initRange:{start:"0",end:"699"},indexRange:{start:aZ,end:Cl},lastModified:Kl,contentLength:iw,quality:"large",fps:30,qualityLabel:"480p",projectionType:"RECTANGULAR",averageBitrate:GJ,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:SI},{itag:134,url:"https://"+oE+".googlevideo.com/videoplayback?expire="+aw+"&ei="+l+"&ip="+Be+"&id=o-AF"+$X+"&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="+
ST+"&mn="+fZ+"&ms="+fZ+"&mv="+Ll+"&mvi="+r$+"&pl="+F1+"&initcwndbps="+SI+"&siu="+r$+"&spc="+y+"&vprv="+r$+"&svpuc="+r$+"&mime=video%2Fmp4&ns="+VV+"&gir="+He+"&clen="+iw+"&dur="+iw+"&lmt="+Kl+"&mt="+aw+"&fvip=3&keepalive="+He+"&c=WEB&txp="+SI+"&n="+CB+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+A+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+A,mimeType:'video/mp4; codecs="avc1.4d401e"',bitrate:GJ,
width:640,height:360,initRange:{start:"0",end:"738"},indexRange:{start:aZ,end:Cl},lastModified:Kl,contentLength:iw,quality:"medium",fps:30,qualityLabel:"360p",projectionType:"RECTANGULAR",averageBitrate:GJ,highReplication:!0,approxDurationMs:SI},{itag:243,url:"https://"+oE+".googlevideo.com/videoplayback?expire="+aw+"&ei="+l+"&ip="+Be+"&id=o-AF"+$X+"&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="+
ST+"&mn="+fZ+"&ms="+fZ+"&mv="+Ll+"&mvi="+r$+"&pl="+F1+"&initcwndbps="+SI+"&siu="+r$+"&spc="+y+"&vprv="+r$+"&svpuc="+r$+"&mime=video%2Fwebm&ns="+VV+"&gir="+He+"&clen="+iw+"&dur="+iw+"&lmt="+Kl+"&mt="+aw+"&fvip=3&keepalive="+He+"&c=WEB&txp="+SI+"&n="+CB+"&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="+A,mimeType:'video/webm; codecs="vp9"',bitrate:GJ,
width:640,height:360,initRange:{start:"0",end:"219"},indexRange:{start:aZ,end:Cl},lastModified:Kl,contentLength:iw,quality:"medium",fps:30,qualityLabel:"360p",projectionType:"RECTANGULAR",averageBitrate:GJ,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:SI},{itag:396,url:"https://"+oE+".googlevideo.com/videoplayback?expire="+aw+"&ei="+l+"&ip="+Be+"&id=o-AF"+$X+"&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="+
ST+"&mn="+fZ+"&ms="+fZ+"&mv="+Ll+"&mvi="+r$+"&pl="+F1+"&initcwndbps="+SI+"&siu="+r$+"&spc="+y+"&vprv="+r$+"&svpuc="+r$+"&mime=video%2Fmp4&ns="+VV+"&gir="+He+"&clen="+iw+"&dur="+iw+"&lmt="+Kl+"&mt="+aw+"&fvip=3&keepalive="+He+"&c=WEB&txp="+SI+"&n="+CB+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+A+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+A,mimeType:'video/mp4; codecs="av01.0.01M.08"',bitrate:GJ,
width:640,height:360,initRange:{start:"0",end:"699"},indexRange:{start:aZ,end:Cl},lastModified:Kl,contentLength:iw,quality:"medium",fps:30,qualityLabel:"360p",projectionType:"RECTANGULAR",averageBitrate:GJ,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:SI},{itag:133,url:"https://"+oE+".googlevideo.com/videoplayback?expire="+aw+"&ei="+l+"&ip="+Be+"&id=o-AF"+$X+"&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="+
ST+"&mn="+fZ+"&ms="+fZ+"&mv="+Ll+"&mvi="+r$+"&pl="+F1+"&initcwndbps="+SI+"&siu="+r$+"&spc="+y+"&vprv="+r$+"&svpuc="+r$+"&mime=video%2Fmp4&ns="+VV+"&gir="+He+"&clen="+iw+"&dur="+iw+"&lmt="+Kl+"&mt="+aw+"&fvip=3&keepalive="+He+"&c=WEB&txp="+SI+"&n="+CB+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+A+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+A,mimeType:'video/mp4; codecs="avc1.4d4015"',bitrate:GJ,
width:426,height:240,initRange:{start:"0",end:"738"},indexRange:{start:aZ,end:Cl},lastModified:Kl,contentLength:iw,quality:"small",fps:30,qualityLabel:"240p",projectionType:"RECTANGULAR",averageBitrate:GJ,approxDurationMs:SI},{itag:242,url:"https://"+oE+".googlevideo.com/videoplayback?expire="+aw+"&ei="+l+"&ip="+Be+"&id=o-AF"+$X+"&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="+ST+"&mn="+
fZ+"&ms="+fZ+"&mv="+Ll+"&mvi="+r$+"&pl="+F1+"&initcwndbps="+SI+"&siu="+r$+"&spc="+y+"&vprv="+r$+"&svpuc="+r$+"&mime=video%2Fwebm&ns="+VV+"&gir="+He+"&clen="+iw+"&dur="+iw+"&lmt="+Kl+"&mt="+aw+"&fvip=3&keepalive="+He+"&c=WEB&txp="+SI+"&n="+CB+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+A+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+A,mimeType:'video/webm; codecs="vp9"',bitrate:GJ,width:426,
height:240,initRange:{start:"0",end:"218"},indexRange:{start:aZ,end:Cl},lastModified:Kl,contentLength:iw,quality:"small",fps:30,qualityLabel:"240p",projectionType:"RECTANGULAR",averageBitrate:GJ,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:SI},{itag:395,url:"https://"+oE+".googlevideo.com/videoplayback?expire="+aw+"&ei="+l+"&ip="+Be+"&id=o-AF"+$X+"&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="+
ST+"&mn="+fZ+"&ms="+fZ+"&mv="+Ll+"&mvi="+r$+"&pl="+F1+"&initcwndbps="+SI+"&siu="+r$+"&spc="+y+"&vprv="+r$+"&svpuc="+r$+"&mime=video%2Fmp4&ns="+VV+"&gir="+He+"&clen="+iw+"&dur="+iw+"&lmt="+Kl+"&mt="+aw+"&fvip=3&keepalive="+He+"&c=WEB&txp="+SI+"&n="+CB+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+A+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+A,mimeType:'video/mp4; codecs="av01.0.00M.08"',bitrate:GJ,
width:426,height:240,initRange:{start:"0",end:"699"},indexRange:{start:aZ,end:Cl},lastModified:Kl,contentLength:iw,quality:"small",fps:30,qualityLabel:"240p",projectionType:"RECTANGULAR",averageBitrate:GJ,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:SI},{itag:160,url:"https://"+oE+".googlevideo.com/videoplayback?expire="+aw+"&ei="+l+"&ip="+Be+"&id=o-AF"+$X+"&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="+
ST+"&mn="+fZ+"&ms="+fZ+"&mv="+Ll+"&mvi="+r$+"&pl="+F1+"&initcwndbps="+SI+"&siu="+r$+"&spc="+y+"&vprv="+r$+"&svpuc="+r$+"&mime=video%2Fmp4&ns="+VV+"&gir="+He+"&clen="+iw+"&dur="+iw+"&lmt="+Kl+"&mt="+aw+"&fvip=3&keepalive="+He+"&c=WEB&txp="+SI+"&n="+CB+"&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="+A,mimeType:'video/mp4; codecs="avc1.4d400c"',bitrate:GJ,
width:256,height:144,initRange:{start:"0",end:"737"},indexRange:{start:aZ,end:Cl},lastModified:Kl,contentLength:iw,quality:"tiny",fps:30,qualityLabel:"144p",projectionType:"RECTANGULAR",averageBitrate:gf,approxDurationMs:SI},{itag:278,url:"https://"+oE+".googlevideo.com/videoplayback?expire="+aw+"&ei="+l+"&ip="+Be+"&id=o-AF"+$X+"&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="+ST+"&mn="+
fZ+"&ms="+fZ+"&mv="+Ll+"&mvi="+r$+"&pl="+F1+"&initcwndbps="+SI+"&siu="+r$+"&spc="+y+"&vprv="+r$+"&svpuc="+r$+"&mime=video%2Fwebm&ns="+VV+"&gir="+He+"&clen="+iw+"&dur="+iw+"&lmt="+Kl+"&mt="+aw+"&fvip=3&keepalive="+He+"&c=WEB&txp="+SI+"&n="+CB+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+A+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+A,mimeType:'video/webm; codecs="vp9"',bitrate:GJ,width:256,
height:144,initRange:{start:"0",end:"218"},indexRange:{start:aZ,end:Cl},lastModified:Kl,contentLength:iw,quality:"tiny",fps:30,qualityLabel:"144p",projectionType:"RECTANGULAR",averageBitrate:gf,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:SI},{itag:394,url:"https://"+oE+".googlevideo.com/videoplayback?expire="+aw+"&ei="+l+"&ip="+Be+"&id=o-AF"+$X+"&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="+
ST+"&mn="+fZ+"&ms="+fZ+"&mv="+Ll+"&mvi="+r$+"&pl="+F1+"&initcwndbps="+SI+"&siu="+r$+"&spc="+y+"&vprv="+r$+"&svpuc="+r$+"&mime=video%2Fmp4&ns="+VV+"&gir="+He+"&clen="+iw+"&dur="+iw+"&lmt="+Kl+"&mt="+aw+"&fvip=3&keepalive="+He+"&c=WEB&txp="+SI+"&n="+CB+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+E+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+A,mimeType:'video/mp4; codecs="av01.0.00M.08"',bitrate:gf,
width:256,height:144,initRange:{start:"0",end:"699"},indexRange:{start:aZ,end:Cl},lastModified:Kl,contentLength:iw,quality:"tiny",fps:30,qualityLabel:"144p",projectionType:"RECTANGULAR",averageBitrate:gf,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:SI},{itag:140,url:"https://"+oE+".googlevideo.com/videoplayback?expire="+aw+"&ei="+l+"&ip="+Be+"&id=o-AF"+$X+"&itag=140&source=youtube&requiressl=yes&mh=X6&mm="+
ST+"&mn="+fZ+"&ms="+fZ+"&mv="+Ll+"&mvi="+r$+"&pl="+F1+"&initcwndbps="+SI+"&siu="+r$+"&spc="+y+"&vprv="+r$+"&svpuc="+r$+"&mime=audio%2Fmp4&ns="+VV+"&gir="+He+"&clen="+iw+"&dur="+iw+"&lmt="+Kl+"&mt="+aw+"&fvip=3&keepalive="+He+"&c=WEB&txp="+SI+"&n="+CB+"&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="+A,mimeType:'audio/mp4; codecs="mp4a.40.2"',bitrate:GJ,
initRange:{start:"0",end:"631"},indexRange:{start:aZ,end:Cl},lastModified:Kl,contentLength:iw,quality:"tiny",projectionType:"RECTANGULAR",averageBitrate:GJ,highReplication:!0,audioQuality:"AUDIO_QUALITY_MEDIUM",approxDurationMs:SI,audioSampleRate:"44100",audioChannels:2,loudnessDb:-3.7800007},{itag:249,url:"https://"+oE+".googlevideo.com/videoplayback?expire="+aw+"&ei="+l+"&ip="+Be+"&id=o-AF"+$X+"&itag=249&source=youtube&requiressl=yes&mh=X6&mm="+ST+"&mn="+fZ+"&ms="+fZ+"&mv="+Ll+"&mvi="+r$+"&pl="+
F1+"&initcwndbps="+SI+"&siu="+r$+"&spc="+y+"&vprv="+r$+"&svpuc="+r$+"&mime=audio%2Fwebm&ns="+VV+"&gir="+He+"&clen="+SI+"&dur="+iw+"&lmt="+Kl+"&mt="+aw+"&fvip=3&keepalive="+He+"&c=WEB&txp="+SI+"&n="+CB+"&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="+A,mimeType:'audio/webm; codecs="opus"',bitrate:gf,initRange:{start:"0",end:"265"},indexRange:{start:aZ,
end:Cl},lastModified:Kl,contentLength:SI,quality:"tiny",projectionType:"RECTANGULAR",averageBitrate:gf,audioQuality:"AUDIO_QUALITY_LOW",approxDurationMs:SI,audioSampleRate:"48000",audioChannels:2,loudnessDb:-3.7800007},{itag:250,url:"https://"+oE+".googlevideo.com/videoplayback?expire="+aw+"&ei="+l+"&ip="+Be+"&id=o-AF"+$X+"&itag=250&source=youtube&requiressl=yes&mh=X6&mm="+ST+"&mn="+fZ+"&ms="+fZ+"&mv="+Ll+"&mvi="+r$+"&pl="+F1+"&initcwndbps="+SI+"&siu="+r$+"&spc="+y+"&vprv="+r$+"&svpuc="+r$+"&mime=audio%2Fwebm&ns="+
VV+"&gir="+He+"&clen="+SI+"&dur="+iw+"&lmt="+Kl+"&mt="+aw+"&fvip=3&keepalive="+He+"&c=WEB&txp="+SI+"&n="+CB+"&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="+A,mimeType:'audio/webm; codecs="opus"',bitrate:gf,initRange:{start:"0",end:"265"},indexRange:{start:aZ,end:Cl},lastModified:Kl,contentLength:SI,quality:"tiny",projectionType:"RECTANGULAR",averageBitrate:gf,
audioQuality:"AUDIO_QUALITY_LOW",approxDurationMs:SI,audioSampleRate:"48000",audioChannels:2,loudnessDb:-3.7800007},{itag:251,url:"https://"+oE+".googlevideo.com/videoplayback?expire="+aw+"&ei="+l+"&ip="+Be+"&id=o-AF"+$X+"&itag=251&source=youtube&requiressl=yes&mh=X6&mm="+ST+"&mn="+fZ+"&ms="+fZ+"&mv="+Ll+"&mvi="+r$+"&pl="+F1+"&initcwndbps="+SI+"&siu="+r$+"&spc="+y+"&vprv="+r$+"&svpuc="+r$+"&mime=audio%2Fwebm&ns="+VV+"&gir="+He+"&clen="+iw+"&dur="+iw+"&lmt="+Kl+"&mt="+aw+"&fvip=3&keepalive="+He+"&c=WEB&txp="+
SI+"&n="+CB+"&sparams=expire%2Cei%2Cip%2Cid%2Citag%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+E+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+A,mimeType:'audio/webm; codecs="opus"',bitrate:GJ,initRange:{start:"0",end:"265"},indexRange:{start:aZ,end:Cl},lastModified:Kl,contentLength:iw,quality:"tiny",projectionType:"RECTANGULAR",averageBitrate:GJ,audioQuality:"AUDIO_QUALITY_MEDIUM",approxDurationMs:SI,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="+H4+"&docid="+n+"&ei="+l+"&feature="+u+"&fexp="+K6+"&ns="+w$+"&plid="+d+"&referrer=https%3A%2F%2Fwww.youtube.com%2F&sdetail=p%3A%2F&sourceid="+Ll+"&el="+dE+"&len="+Cl+"&of="+B4+
"&uga="+F1+"&vm="+bw},videostatsDelayplayUrl:{baseUrl:"https://s.youtube.com/api/stats/delayplay?cl="+H4+"&docid="+n+"&ei="+l+"&feature="+u+"&fexp="+K6+"&ns="+w$+"&plid="+d+"&referrer=https%3A%2F%2Fwww.youtube.com%2F&sdetail=p%3A%2F&sourceid="+Ll+"&el="+dE+"&len="+Cl+"&of="+B4+"&uga="+F1+"&vm="+bw},videostatsWatchtimeUrl:{baseUrl:"https://s.youtube.com/api/stats/watchtime?cl="+H4+"&docid="+n+"&ei="+l+"&feature="+u+"&fexp="+K6+"&ns="+w$+"&plid="+d+"&referrer=https%3A%2F%2Fwww.youtube.com%2F&sdetail=p%3A%2F&sourceid="+
Ll+"&el="+dE+"&len="+Cl+"&of="+B4+"&uga="+F1+"&vm="+bw},ptrackingUrl:{baseUrl:"https://www.youtube.com/ptracking?ei="+l+"&m="+bG+"&oid="+B4+"&plid="+d+"&pltype="+AE+"&ptchn="+B4+"&ptk="+v+"&video_id="+n},qoeUrl:{baseUrl:"https://s.youtube.com/api/stats/qoe?cl="+H4+"&docid="+n+"&ei="+l+"&event="+HL+"&feature="+u+"&fexp="+K6+"&ns="+w$+"&plid="+d+"&referrer=https%3A%2F%2Fwww.youtube.com%2F&sdetail=p%3A%2F&sourceid="+Ll},atrUrl:{baseUrl:"https://s.youtube.com/api/stats/atr?docid="+n+"&ei="+l+"&feature="+
u+"&len="+Cl+"&ns="+w$+"&plid="+d+"&ver="+r$,elapsedMediaTimeSeconds:5},videostatsScheduledFlushWalltimeSeconds:[10,20,30],videostatsDefaultFlushIntervalSeconds:40},captions:{playerCaptionsTracklistRenderer:{captionTracks:[{baseUrl:"https://www.youtube.com/api/timedtext?v="+n+"&caps="+He+"&opi="+H4+"&xoaf="+r$+"&hl="+w$+"&ip="+Be+"&ipbits="+r$+"&expire="+aw+"&sparams=ip,ipbits,expire,v,caps,opi,xoaf&signature="+Be+"&key="+He+"&lang="+e,name:{simpleText:HH},vssId:".en-US",languageCode:"en-US",isTranslatable:!0,
trackName:""},{baseUrl:"https://www.youtube.com/api/timedtext?v="+n+"&caps="+He+"&opi="+H4+"&xoaf="+r$+"&hl="+w$+"&ip="+Be+"&ipbits="+r$+"&expire="+aw+"&sparams=ip,ipbits,expire,v,caps,opi,xoaf&signature="+Be+"&key="+He+"&kind="+He+"&lang="+w$,name:{simpleText:SL},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:NL,title:k7,lengthSeconds:"1155",keywords:[TY,AE,SL,vy],
channelId:VV,isOwnerViewing:!1,shortDescription:TY,isCrawlable:!0,thumbnail:{thumbnails:[{url:"https://i.ytimg.com/vi/"+n+"/hqdefault.jpg?sqp=-oaymwE"+Fm+"G&rs="+f4,width:168,height:94},{url:"https://i.ytimg.com/vi/"+n+"/hqdefault.jpg?sqp=-oaymwE"+Fm+"G&rs="+f4,width:196,height:110},{url:"https://i.ytimg.com/vi/"+n+"/hqdefault.jpg?sqp=-oaymwE"+Fm+"G&rs="+m,width:246,height:138},{url:"https://i.ytimg.com/vi/"+n+"/hqdefault.jpg?sqp=-oaymwE"+Fm+"G&rs="+m,width:336,height:188},{url:"https://i.ytimg.com/vi/"+
n+"/maxresdefault.jpg",width:1920,height:1080}]},allowRatings:!0,viewCount:SI,author:ed,isPrivate:!1,isUnpluggedCorpus:!1,isLiveContent:!1},annotations:[{playerAnnotationsExpandedRenderer:{featuredChannel:{startTimeMs:"0",endTimeMs:SI,watermark:{thumbnails:[{url:"https://i.ytimg.com/an/"+B4+"/featured_channel.jpg?v="+k7,width:40,height:40}]},trackingParams:fl+"=",navigationEndpoint:{clickTrackingParams:ot,commandMetadata:{webCommandMetadata:{url:"/channel/"+VV,webPageType:"WEB_PAGE_TYPE_CHANNEL",
rootVe:3611,apiUrl:"/youtubei/v1/browse"}},browseEndpoint:{browseId:VV}},channelName:ed,subscribeButton:{subscribeButtonRenderer:{buttonText:{runs:[{text:DG}]},subscribed:!1,enabled:!0,type:"FREE",channelId:VV,showPreferences:!1,subscribedButtonText:{runs:[{text:SM}]},unsubscribedButtonText:{runs:[{text:CB}]},trackingParams:fl+"=",unsubscribeButtonText:{runs:[{text:ed}]},serviceEndpoints:[{clickTrackingParams:ot,commandMetadata:{webCommandMetadata:{sendPost:!0,apiUrl:"/youtubei/v1/subscription/subscribe"}},
subscribeEndpoint:{channelIds:[VV],params:k7}},{clickTrackingParams:ot,commandMetadata:{webCommandMetadata:{sendPost:!0}},signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{clickTrackingParams:ot,openPopupAction:{popup:{confirmDialogRenderer:{trackingParams:fl+"=",dialogMessages:[{runs:[{text:DG},{text:NL},{text:TY}]}],confirmButton:{buttonRenderer:{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",isDisabled:!1,text:{runs:[{text:XC}]},serviceEndpoint:{clickTrackingParams:ot,commandMetadata:{webCommandMetadata:{sendPost:!0,
apiUrl:"/youtubei/v1/subscription/unsubscribe"}},unsubscribeEndpoint:{channelIds:[VV],params:k7}},accessibility:{label:k7},trackingParams:fl+"="}},cancelButton:{buttonRenderer:{style:"STYLE_TEXT",size:"SIZE_DEFAULT",isDisabled:!1,text:{runs:[{text:vy}]},accessibility:{label:SM},trackingParams:fl+"="}},primaryIsCancel:!1}},popupType:"DIALOG"}}]}}],subscribeAccessibility:{accessibilityData:{label:NL}},unsubscribeAccessibility:{accessibilityData:{label:ed}}}}},allowSwipeDismiss:!0,annotationId:"632ce843-0000-20d6-ace4-3c286d423086"}}],
playerConfig:{audioConfig:{loudnessDb:-3.7800007,perceptualLoudnessDb:-17.78,enablePerFormatLoudness:!0},streamSelectionConfig:{maxBitrate:iw},mediaCommonConfig:{dynamicReadaheadConfig:{maxReadAheadMediaTimeMs:12E4,minReadAheadMediaTimeMs:15E3,readAheadGrowthRateMs:1E3}},webPlayerConfig:{useCobaltTvosDash:!0,webPlayerActionsPorting:{getSharePanelCommand:{clickTrackingParams:ot,commandMetadata:{webCommandMetadata:{sendPost:!0,apiUrl:"/youtubei/v1/share/get_web_player_share_panel"}},webPlayerShareEntityServiceEndpoint:{serializedShareEntity:"CgtndjNsdkt5X1dENA%3D%3D"}},
subscribeCommand:{clickTrackingParams:ot,commandMetadata:{webCommandMetadata:{sendPost:!0,apiUrl:"/youtubei/v1/subscription/subscribe"}},subscribeEndpoint:{channelIds:[VV],params:k7}},unsubscribeCommand:{clickTrackingParams:ot,commandMetadata:{webCommandMetadata:{sendPost:!0,apiUrl:"/youtubei/v1/subscription/unsubscribe"}},unsubscribeEndpoint:{channelIds:[VV],params:k7}},addToWatchLaterCommand:{clickTrackingParams:ot,commandMetadata:{webCommandMetadata:{sendPost:!0,apiUrl:"/youtubei/v1/browse/edit_playlist"}},
playlistEditEndpoint:{playlistId:"WL",actions:[{addedVideoId:NL,action:"ACTION_ADD_VIDEO"}]}},removeFromWatchLaterCommand:{clickTrackingParams:ot,commandMetadata:{webCommandMetadata:{sendPost:!0,apiUrl:"/youtubei/v1/browse/edit_playlist"}},playlistEditEndpoint:{playlistId:"WL",actions:[{action:"ACTION_REMOVE_VIDEO_BY_VIDEO_ID",removedVideoId:NL}]}}}}},storyboards:{playerStoryboardSpecRenderer:{spec:"https://i.ytimg.com/sb/"+n+"/storyboard3_L$L/$N.jpg?sqp=-oaymwE"+Fm+"G",recommendedLevel:2}},microformat:{playerMicroformatRenderer:{thumbnail:{thumbnails:[{url:"https://i.ytimg.com/vi/"+
n+"/maxresdefault.jpg",width:1280,height:720}]},embed:{iframeUrl:"https://www.youtube.com/embed/"+NL,width:1280,height:720},title:{simpleText:AE},description:{simpleText:dE},lengthSeconds:"1156",ownerProfileUrl:"http://www.youtube.com/@"+sO,externalChannelId:VV,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:SI,category:"Travel & Events",publishDate:TJ,ownerChannelName:ed,uploadDate:TJ}},cards:{cardCollectionRenderer:{cards:[{cardRenderer:{teaser:{simpleCardTeaserRenderer:{message:{simpleText:SM},trackingParams:fl+"=",prominent:!0,logVisibilityUpdates:!0,onTapCommand:{clickTrackingParams:ot,changeEngagementPanelVisibilityAction:{targetId:"engagement-panel-error-corrections",visibility:"ENGAGEMENT_PANEL_VISIBILITY_EXPANDED"}}}},cueRanges:[{startCardActiveMs:"0",
endCardActiveMs:"5000",teaserDurationMs:"6000",iconAfterTeaserMs:"5000"}],trackingParams:fl+"="}}],headerText:{simpleText:CB},icon:{infoCardIconRenderer:{trackingParams:fl+"="}},closeButton:{infoCardIconRenderer:{trackingParams:fl+"="}},trackingParams:fl+"=",allowTeaserDismiss:!0,logIconVisibilityUpdates:!0}},trackingParams:fl+"=",attestation:{playerAttestationRenderer:{challenge:"a=6&a2=1&b=fTFKUEAUxxmXFgD-AByAUN6WwsY&c=1696917232&d=1&e="+NL+"&c1a=1&c6a=1&c6b=1&x4=1&hh=mbNf63Xfb0v-wi6-05i_8N3EUGCwK7F0b4rqZoUv9mY",
botguardData:{program:ty,interpreterSafeUrl:(NM.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue="//www.google.com/js/th/"+XM+".js",NM),serverEnvironment:1}}},videoQualityPromoSupportedRenderers:{videoQualityPromoRenderer:{triggerCriteria:{connectionWhitelist:["WIFI"],joinLatencySeconds:15,rebufferTimeSeconds:10,watchTimeWindowSeconds:180,refractorySeconds:2592E3},text:{runs:[{text:XC},{text:sO,bold:!0}]},endpoint:{clickTrackingParams:ot,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:fl+"=",snackbar:{notificationActionRenderer:{responseText:{runs:[{text:XC}]},actionButton:{buttonRenderer:{text:{runs:[{text:TY}]},navigationEndpoint:{clickTrackingParams:ot,commandMetadata:{webCommandMetadata:{url:"https://www.google.com/get/videoqualityreport/?v="+n,webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.google.com/get/videoqualityreport/?v="+
n,target:"TARGET_NEW_WINDOW"}},trackingParams:fl+"="}},trackingParams:fl+"="}}}},endscreen:{endscreenRenderer:{elements:[{endscreenElementRenderer:{style:"CHANNEL",image:{thumbnails:[{url:"https://yt3.ggpht.com/"+Bp+"=s250-c-k-c0x00ffffff-no-rj",width:250,height:250},{url:"https://yt3.ggpht.com/"+Bp+"=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:SI,endMs:SI,title:{accessibility:{accessibilityData:{label:Wp}},simpleText:q$},metadata:{simpleText:SL},callToAction:{simpleText:ed},dismiss:{simpleText:HH},endpoint:{clickTrackingParams:ot,commandMetadata:{webCommandMetadata:{url:"/channel/"+VV,webPageType:"WEB_PAGE_TYPE_CHANNEL",rootVe:3611,apiUrl:"/youtubei/v1/browse"}},browseEndpoint:{browseId:VV}},hovercardButton:{subscribeButtonRenderer:{buttonText:{runs:[{text:DG}]},subscribed:!1,enabled:!0,type:"FREE",channelId:VV,showPreferences:!1,
subscribedButtonText:{runs:[{text:AE}]},unsubscribedButtonText:{runs:[{text:sO}]},trackingParams:fl+"=",unsubscribeButtonText:{runs:[{text:q$}]},serviceEndpoints:[{clickTrackingParams:ot,commandMetadata:{webCommandMetadata:{sendPost:!0,apiUrl:"/youtubei/v1/subscription/subscribe"}},subscribeEndpoint:{channelIds:[VV],params:k7}},{clickTrackingParams:ot,commandMetadata:{webCommandMetadata:{sendPost:!0}},signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{clickTrackingParams:ot,openPopupAction:{popup:{confirmDialogRenderer:{trackingParams:fl+
"=",dialogMessages:[{runs:[{text:vy},{text:AE},{text:k7}]}],confirmButton:{buttonRenderer:{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",isDisabled:!1,text:{runs:[{text:ed}]},serviceEndpoint:{clickTrackingParams:ot,commandMetadata:{webCommandMetadata:{sendPost:!0,apiUrl:"/youtubei/v1/subscription/unsubscribe"}},unsubscribeEndpoint:{channelIds:[VV],params:k7}},accessibility:{label:SL},trackingParams:fl+"="}},cancelButton:{buttonRenderer:{style:"STYLE_TEXT",size:"SIZE_DEFAULT",isDisabled:!1,text:{runs:[{text:sO}]},
accessibility:{label:q$},trackingParams:fl+"="}},primaryIsCancel:!1}},popupType:"DIALOG"}}]}}],subscribeAccessibility:{accessibilityData:{label:sO}},unsubscribeAccessibility:{accessibilityData:{label:NL}}}},trackingParams:fl+"=",isSubscribe:!0,id:jf}},{endscreenElementRenderer:{style:"VIDEO",image:{thumbnails:[{url:"https://i.ytimg.com/vi/"+n+"/hqdefault.jpg?sqp=-oaymwE"+Fm+"G&rs="+m,width:168,height:94},{url:"https://i.ytimg.com/vi/"+n+"/hqdefault.jpg?sqp=-oaymwE"+Fm+"G&rs="+f4,width:196,height:110},
{url:"https://i.ytimg.com/vi/"+n+"/hqdefault.jpg?sqp=-oaymwE"+Fm+"G&rs="+m,width:246,height:138},{url:"https://i.ytimg.com/vi/"+n+"/hqdefault.jpg?sqp=-oaymwE"+Fm+"G&rs="+m,width:336,height:188},{url:"https://i.ytimg.com/vi/"+n+"/maxresdefault.jpg",width:1920,height:1080}]},left:.654386,width:.322807,top:.32769307,aspectRatio:1.7777778,startMs:SI,endMs:SI,title:{accessibility:{accessibilityData:{label:XC}},simpleText:q$},metadata:{simpleText:CB},endpoint:{clickTrackingParams:ot,commandMetadata:{webCommandMetadata:{url:"/watch?v="+
NL,webPageType:"WEB_PAGE_TYPE_WATCH",rootVe:3832},interactionLoggingCommandMetadata:{loggingExpectations:{screenCreatedLoggingExpectations:{expectedParentScreens:[{screenVeType:3832}]}}}},watchEndpoint:{videoId:NL,watchEndpointSupportedOnesieConfig:{html5PlaybackOnesieConfig:{commonConfig:{url:"https://"+oE+".googlevideo.com/videoplayback?source=youtube&oeis="+r$+"&c=WEB&oad="+Cl+"&ovd="+Cl+"&oaad="+kG+"&oavd="+kG+"&ocs="+aZ+"&oewis="+r$+"&oputc="+r$+"&ofpcc="+r$+"&siu="+r$+"&msp="+r$+"&odepv="+r$+
"&id=o-AF"+$X+"&ip="+Be+"&initcwndbps="+SI+"&mt="+aw+"&oweuc="+K6}}}}},trackingParams:fl+"=",id:jf,thumbnailOverlays:[{thumbnailOverlayTimeStatusRenderer:{text:{accessibility:{accessibilityData:{label:Wp}},simpleText:sO},style:"DEFAULT"}}]}}],startMs:SI,trackingParams:fl+"="}},adPlacements:[{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_START",adTimeOffset:{offsetStartMilliseconds:r$,offsetEndMilliseconds:kG},hideCueRangeMarker:!0}},renderer:{linearAdSequenceRenderer:{linearAds:[{instreamVideoAdRenderer:{skipOffsetMilliseconds:5E3,
pings:{impressionPings:[{baseUrl:"https://ad.doubleclick.net/ddm/trackimp/N444803.2428500DBMSITEID/B30029229.368252041;dc_trk_aid="+H4+";dc_trk_cid="+H4+";dc_dbm_token="+A+";ord="+aw+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+r$+";dc_rui="+r$+";dc_exteid="+jf+";dc_av="+aZ+";dc_sk="+r$+";dc_ctype="+F1+";dc_ref=http://www.youtube.com/video/"+NL+";dc_pubid="+r$+";dc_btype=23?gclid="+Hp+"&ase=2",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"},{baseUrl:"https://www.youtube.com/pagead/adview?ai=C"+
F+"____________"+h+"AxAA&sigh="+NL+"&cid="+q+"&ad_cpn=[AD_CPN]&lact=[LACT]"},{baseUrl:"https://www.youtube.com/api/stats/ads?ver="+r$+"&ns="+r$+"&event="+r$+"&device="+r$+"&content_v="+n+"&el="+dE+"&ei="+l+"&devicever="+I+"&bti="+SI+"&format="+sG+"&break_type="+r$+"&conn=[CONN]&cpn=[CPN]&lact=[LACT]&m_pos="+r$+"&mt=[MT]&p_h=[P_H]&p_w=[P_W]&rwt=[RWT]&sdkv="+Be+"&slot_pos="+r$+"&slot_len="+r$+"&vis=[VIS]&vol=[VOL]&wt=[WT]&ad_cpn=[AD_CPN]&ad_id="+ST+"&ad_len="+kG+"&ad_mt=[AD_MT]&ad_sys=YT%3AAdSense-Viral%2CAdSense-Viral&ad_v="+
NL+"&aqi="+l+"&ad_rmp="+r$+"&sli="+r$}],errorPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+F+"____________"+h+"AxAA&sigh="+n+"&cid="+q+"&label=videoplayfailed[ERRORCODE]"}],mutePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+F+"____________"+h+"AxAA&sigh="+n+"&cid="+q+"&label=admute&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+r$+";dc_exteid="+jf+";met="+r$+";ecn"+r$+"="+r$+
";etm1="+r$+";eid1="+F1+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],unmutePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+F+"____________"+h+"AxAA&sigh="+n+"&cid="+q+"&label=adunmute&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+r$+";dc_exteid="+jf+";met="+r$+";ecn"+r$+"="+r$+";etm1="+r$+";eid1="+sG+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],pausePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+
F+"____________"+h+"AxAA&sigh="+n+"&cid="+q+"&label=adpause&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+r$+";dc_exteid="+jf+";met="+r$+";ecn"+r$+"="+r$+";etm1="+r$+";eid1="+F1+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],rewindPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+F+"____________"+h+"AxAA&sigh="+n+"&cid="+q+"&label=adrewind&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"}],
resumePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+F+"____________"+h+"AxAA&sigh="+n+"&cid="+q+"&label=adresume&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+r$+";dc_exteid="+jf+";met="+r$+";ecn"+r$+"="+r$+";etm1="+r$+";eid1="+F1+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],skipPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+F+"____________"+h+"AxAA&sigh="+n+"&cid="+q+
"&label=videoskipped&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+r$+";dc_exteid="+jf+";met="+r$+";ecn"+r$+"="+r$+";etm1="+r$+";eid1="+SI+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],closePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+F+"____________"+h+"AxAA&sigh="+n+"&cid="+q+"&label=adclose&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"}],progressPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+
F+"____________"+h+"AxAA&sigh="+n+"&cid="+q+"&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"+F+"____________"+h+"AxAA&ase=2&num="+r$+"&cid="+q+"&ad_cpn=%5BAD_CPN%5D&sig="+m+"&adurl="+ZE+"&ctype="+aZ+"&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"+
F+"____________"+h+"AxAA&ase=2&num="+r$+"&cid="+q+"&ad_cpn=%5BAD_CPN%5D&sig="+m+"&adurl="+ZE+"&label=video_engaged_view&ctype="+aZ+"&ms=[CLICK_MS]",offsetMilliseconds:15E3,attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+r$+";dc_exteid="+jf+";met="+r$+";ecn"+r$+"="+r$+";etm1="+r$+";eid1="+sG+";?",offsetMilliseconds:15E3}],clickthroughPings:[{baseUrl:"https://ad.doubleclick.net/ddm/trackclk/N444803.2428500DBMSITEID/B30029229.368252041;dc_trk_aid="+
H4+";dc_trk_cid="+H4+";dc_dbm_token="+A+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+r$+";ord="+H4+";dc_rui="+r$+";dc_exteid="+EG+";dc_av="+r$+";dc_sk="+r$+";dc_ctype="+F1+";dc_pubid="+r$+";dc_btype=3?gclid="+Hp+"&ase=2",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}],fullscreenPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+F+"____________"+h+"AxAA&sigh="+n+"&cid="+q+"&label=adfullscreen&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},
{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+r$+";dc_exteid="+jf+";met="+r$+";ecn"+r$+"="+r$+";etm1="+r$+";eid1="+F1+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],activeViewViewablePings:[{baseUrl:"https://www.youtube.com/pcs/activeview?xai="+O+"&sig="+v9+"&ad_cpn=[AD_CPN]&id="+HH+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://pagead2.googlesyndication.com/activeview_ext?id="+HH+"&dc_pubid="+r$+"&dc_exteid="+jf+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]?"}],
endFullscreenPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+F+"____________"+h+"AxAA&sigh="+n+"&cid="+q+"&label=vast_exit_fullscreen&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"}],activeViewMeasurablePings:[{baseUrl:"https://www.youtube.com/pcs/activeview?xai="+O+"&sig="+v9+"&ad_cpn=[AD_CPN]&id="+HH+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]&avm="+r$},{baseUrl:"https://pagead2.googlesyndication.com/activeview_ext?id="+HH+"&avm="+r$+"&dc_pubid="+r$+"&dc_exteid="+
jf+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]?"}],abandonPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+F+"____________"+h+"AxAA&sigh="+n+"&cid="+q+"&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="+r$+";dc_exteid="+jf+";met="+r$+";ecn"+r$+"="+r$+";etm1="+r$+";eid1="+F1+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],activeViewFullyViewableAudibleHalfDurationPings:[{baseUrl:"https://www.youtube.com/pcs/activeview?xai="+
O+"&sig="+v9+"&ad_cpn=[AD_CPN]&id="+HH+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]&avgm="+r$},{baseUrl:"https://pagead2.googlesyndication.com/activeview_ext?id="+HH+"&dc_pubid="+r$+"&dc_exteid="+jf+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]?"}],startPings:[{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+r$+";dc_exteid="+jf+";met="+r$+";ecn"+r$+"="+r$+";etm1="+r$+";eid1="+F1+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],firstQuartilePings:[{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+
r$+";dc_exteid="+jf+";met="+r$+";ecn"+r$+"="+r$+";etm1="+r$+";eid1="+sG+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],secondQuartilePings:[{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+r$+";dc_exteid="+jf+";met="+r$+";ecn"+r$+"="+r$+";etm1="+r$+";eid1="+F1+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],thirdQuartilePings:[{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+r$+";dc_exteid="+jf+";met="+r$+";ecn"+r$+"="+r$+";etm1="+r$+";eid1="+sG+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],
completePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+F+"____________"+h+"AxAA&sigh="+n+"&cid="+q+"&label=videoplaytime100&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+r$+";dc_exteid="+jf+";met="+r$+";ecn"+r$+"="+r$+";etm1="+r$+";eid1="+F1+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],activeViewTracking:{trafficType:"ACTIVE_VIEW_TRAFFIC_TYPE_VIDEO"}},clickthroughEndpoint:{clickTrackingParams:ot,
commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+F+"____________"+h+"AxAA&ase=2&num="+r$+"&cid="+q+"&ad_cpn=%5BAD_CPN%5D&sig="+m+"&adurl="+ZE+"&label=video_click_to_advertiser_site&ctype="+aZ+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+F+"____________"+h+"AxAA&ase=2&num="+r$+"&cid="+q+"&ad_cpn=%5BAD_CPN%5D&sig="+m+"&adurl="+ZE+"&label=video_click_to_advertiser_site&ctype="+
aZ+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},csiParameters:[{key:"ad_at",value:"15_2_1"}],playerVars:"suppress_creator_endscreen=1&is_trueview_action=1&length_seconds=15",playerOverlay:{instreamAdPlayerOverlayRenderer:{skipOrPreviewRenderer:{skipAdRenderer:{preskipRenderer:{adPreviewRenderer:{thumbnail:{thumbnail:{thumbnails:[{url:"https://i.ytimg.com/vi/"+n+"/mqdefault.jpg",width:320,height:180}]},trackingParams:fl+"="},trackingParams:fl+
"=",templatedCountdown:{templatedAdText:{text:HH,isTemplated:!0,trackingParams:fl+"="}},durationMilliseconds:5E3}},skippableRenderer:{skipButtonRenderer:{message:{text:SL,isTemplated:!1,trackingParams:fl+"="},trackingParams:fl+"="}},trackingParams:fl+"=",skipOffsetMilliseconds:5E3}},trackingParams:fl+"=",visitAdvertiserRenderer:{buttonRenderer:{style:"STYLE_UNKNOWN",text:{simpleText:vy},icon:{iconType:"OPEN_IN_NEW"},navigationEndpoint:{clickTrackingParams:ot,commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+
F+"____________"+h+"AxAA&ase=2&num="+r$+"&cid="+q+"&ad_cpn=%5BAD_CPN%5D&sig="+m+"&adurl="+ZE+"&label=video_click_to_advertiser_site&ctype="+aZ+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+F+"____________"+h+"AxAA&ase=2&num="+r$+"&cid="+q+"&ad_cpn=%5BAD_CPN%5D&sig="+m+"&adurl="+ZE+"&label=video_click_to_advertiser_site&ctype="+aZ+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},
trackingParams:fl+"="}},adBadgeRenderer:{simpleAdBadgeRenderer:{text:{text:HH,isTemplated:!1,trackingParams:fl+"="},trackingParams:fl+"="}},adDurationRemaining:{adDurationRemainingRenderer:{templatedCountdown:{templatedAdText:{text:NL,isTemplated:!0,trackingParams:fl+"="}},trackingParams:fl+"="}},adInfoRenderer:{adHoverTextButtonRenderer:{button:{buttonRenderer:{style:"STYLE_UNKNOWN",size:"SIZE_DEFAULT",isDisabled:!1,serviceEndpoint:{clickTrackingParams:ot,openPopupAction:{popup:{aboutThisAdRenderer:{url:(pB.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue=
"https://www.youtube.com/aboutthisad?pf=web&source=youtube&reasons=A"+W+"&hl="+w$+"&origin=www.youtube.com&ata_theme="+XC,pB),trackingParams:fl+"="}},popupType:"DIALOG"}},icon:{iconType:"INFO_OUTLINE"},trackingParams:fl+"="}},hoverText:{runs:[{text:ed}]},trackingParams:fl+"="}},flyoutCtaRenderer:{flyoutCtaRenderer:{image:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/ytc/"+d2+"=s176-c-k-c0x00ffffff-no-rj"}]},trackingParams:fl+"="},headline:{text:Wp,isTemplated:!1,trackingParams:fl+"="},description:{text:SL,
trackingParams:fl+"="},actionButton:{buttonRenderer:{text:{simpleText:dE},navigationEndpoint:{clickTrackingParams:ot,loggingUrls:[{baseUrl:"https://ad.doubleclick.net/ddm/trackclk/N444803.2428500DBMSITEID/B30029229.368252041;dc_trk_aid="+H4+";dc_trk_cid="+H4+";dc_dbm_token="+A+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+r$+";ord="+H4+";dc_rui="+r$+";dc_exteid="+jf+";dc_av="+r$+";dc_sk="+r$+";dc_ctype="+F1+";dc_pubid="+r$+";dc_btype=3?gclid="+Hp+"&ase=2"}],commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+
F+"____________"+h+"AxAA&ase=2&num="+r$+"&cid="+q+"&ad_cpn=%5BAD_CPN%5D&sig="+m+"&adurl="+ZE+"&label=video_click_to_advertiser_site&ctype="+aZ+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+F+"____________"+h+"AxAA&ase=2&num="+r$+"&cid="+q+"&ad_cpn=%5BAD_CPN%5D&sig="+m+"&adurl="+ZE+"&label=video_click_to_advertiser_site&ctype="+aZ+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},
trackingParams:fl+"="}},startMs:r$,trackingParams:fl+"="}},adLayoutLoggingData:{serializedAdServingDataEntry:ed},elementId:CB}},elementId:HL,trackingParams:fl+"=",legacyInfoCardVastExtension:SM,sodarExtensionData:{siub:k7,bgub:ed,scs:q$,bgp:vy},externalVideoId:NL,adLayoutLoggingData:{serializedAdServingDataEntry:Wp},layoutId:"ZI7I3u4qvI4LVKlq"}},{adActionInterstitialRenderer:{image:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/ytc/"+d2+"=s176-c-k-c0x00ffffff-no-rj"}]},trackingParams:fl+"="},
headline:{text:Wp,isTemplated:!1,trackingParams:fl+"="},description:{text:k7,isTemplated:!1,trackingParams:fl+"="},actionButton:{buttonRenderer:{style:"STYLE_PRIMARY",text:{simpleText:vy},navigationEndpoint:{clickTrackingParams:ot,loggingUrls:[{baseUrl:"https://ad.doubleclick.net/ddm/trackclk/N444803.2428500DBMSITEID/B30029229.368252041;dc_trk_aid="+H4+";dc_trk_cid="+H4+";dc_dbm_token="+A+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+r$+";ord="+H4+";dc_rui="+r$+";dc_exteid="+
jf+";dc_av="+r$+";dc_sk="+r$+";dc_ctype="+F1+";dc_pubid="+r$+";dc_btype=3?gclid="+Hp+"&ase=2"}],commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+F+"____________"+h+"AxAA&ase=2&num="+r$+"&cid="+q+"&ad_cpn=%5BAD_CPN%5D&sig="+m+"&adurl="+ZE+"&label=video_click_to_advertiser_site&ctype="+aZ+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+F+"____________"+h+"AxAA&ase=2&num="+
r$+"&cid="+q+"&ad_cpn=%5BAD_CPN%5D&sig="+m+"&adurl="+ZE+"&label=video_click_to_advertiser_site&ctype="+aZ+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},trackingParams:fl+"="}},durationMilliseconds:7E3,countdownRenderer:{timedPieCountdownRenderer:{trackingParams:fl+"="}},navigationEndpoint:{clickTrackingParams:ot,loggingUrls:[{baseUrl:"https://ad.doubleclick.net/ddm/trackclk/N444803.2428500DBMSITEID/B30029229.368252041;dc_trk_aid="+H4+";dc_trk_cid="+
H4+";dc_dbm_token="+A+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+r$+";ord="+H4+";dc_rui="+r$+";dc_exteid="+jf+";dc_av="+r$+";dc_sk="+r$+";dc_ctype="+F1+";dc_pubid="+r$+";dc_btype=3?gclid="+Hp+"&ase=2"},{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+F+"____________"+h+"AxAA&sigh="+n+"&cid="+q+"&label=video_card_endcap_action_headline_click"}],commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+F+"____________"+
h+"AxAA&ase=2&num="+r$+"&cid="+q+"&ad_cpn=%5BAD_CPN%5D&sig="+m+"&adurl="+ZE+"&label=video_click_to_advertiser_site&ctype="+aZ+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+F+"____________"+h+"AxAA&ase=2&num="+r$+"&cid="+q+"&ad_cpn=%5BAD_CPN%5D&sig="+m+"&adurl="+ZE+"&label=video_click_to_advertiser_site&ctype="+aZ+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},
trackingParams:fl+"=",backgroundImage:{thumbnail:{thumbnails:[{url:""}]},trackingParams:fl+"="},abandonCommands:{commands:[{clickTrackingParams:ot,loggingUrls:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+F+"____________"+h+"AxAA&sigh="+n+"&cid="+q+"&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="+r$+";dc_exteid="+jf+";met="+r$+";ecn"+
r$+"="+r$+";etm1="+r$+";eid1="+F1+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],pingingEndpoint:{hack:!0}}]},adRendererCommands:{impressionCommand:{clickTrackingParams:ot,commandExecutorCommand:{commands:[{clickTrackingParams:ot,loggingUrls:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+F+"____________"+h+"AxAA&sigh="+n+"&cid="+q+"&label=video_card_endcap_impression"}],pingingEndpoint:{hack:!0}}]}}},skipButton:{skipButtonRenderer:{message:{text:NL,isTemplated:!1,trackingParams:fl+
"="},trackingParams:fl+"="}},adLayoutLoggingData:{serializedAdServingDataEntry:Wp},skipPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+F+"____________"+h+"AxAA&sigh="+n+"&cid="+q+"&label=videoskipped&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+r$+";dc_exteid="+jf+";met="+r$+";ecn"+r$+"="+r$+";etm1="+r$+";eid1="+SI+";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="+H4+";dc_trk_cid="+H4+";ord="+aw+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+r$+";dc_rui="+r$+";dc_exteid="+jf+";dc_av="+aZ+";dc_sk="+r$+";dc_ctype="+F1+";dc_ref=http://www.youtube.com/video/"+NL+";dc_pubid="+r$+";dc_btype=23?gclid="+Hp+"&ase=2",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"},
{baseUrl:"https://www.youtube.com/pagead/adview?ai=C"+F+"____________"+h+"AxAA&sigh="+NL+"&cid="+q+"&ad_cpn=[AD_CPN]&lact=[LACT]"},{baseUrl:"https://www.youtube.com/api/stats/ads?ver="+r$+"&ns="+r$+"&event="+r$+"&device="+r$+"&content_v="+n+"&el="+dE+"&ei="+l+"&devicever="+I+"&bti="+SI+"&format="+sG+"&break_type="+r$+"&conn=[CONN]&cpn=[CPN]&lact=[LACT]&m_pos="+r$+"&mt=[MT]&p_h=[P_H]&p_w=[P_W]&rwt=[RWT]&sdkv="+Be+"&slot_pos="+r$+"&slot_len="+r$+"&vis=[VIS]&vol=[VOL]&wt=[WT]&ad_cpn=[AD_CPN]&ad_id="+
ST+"&ad_len="+kG+"&ad_mt=[AD_MT]&ad_sys=YT%3AAdSense-Viral%2CAdSense-Viral&ad_v="+NL+"&aqi="+l+"&ad_rmp="+r$+"&sli="+r$}],errorPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+F+"____________"+h+"AxAA&sigh="+NL+"&cid="+q+"&label=videoplayfailed[ERRORCODE]"}],mutePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+F+"____________"+h+"AxAA&sigh="+NL+"&cid="+q+"&label=admute&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+
r$+";dc_exteid="+jf+";met="+r$+";ecn"+r$+"="+r$+";etm1="+r$+";eid1="+F1+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],unmutePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+F+"____________"+h+"AxAA&sigh="+NL+"&cid="+q+"&label=adunmute&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+r$+";dc_exteid="+jf+";met="+r$+";ecn"+r$+"="+r$+";etm1="+r$+";eid1="+sG+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],
pausePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+F+"____________"+h+"AxAA&sigh="+NL+"&cid="+q+"&label=adpause&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+r$+";dc_exteid="+jf+";met="+r$+";ecn"+r$+"="+r$+";etm1="+r$+";eid1="+F1+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],rewindPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+F+"____________"+h+"AxAA&sigh="+NL+"&cid="+
q+"&label=adrewind&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"}],resumePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+F+"____________"+h+"AxAA&sigh="+NL+"&cid="+q+"&label=adresume&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+r$+";dc_exteid="+jf+";met="+r$+";ecn"+r$+"="+r$+";etm1="+r$+";eid1="+F1+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],skipPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+
F+"____________"+h+"AxAA&sigh="+NL+"&cid="+q+"&label=videoskipped&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+r$+";dc_exteid="+jf+";met="+r$+";ecn"+r$+"="+r$+";etm1="+r$+";eid1="+SI+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],closePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+F+"____________"+h+"AxAA&sigh="+NL+"&cid="+q+"&label=adclose&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"}],
progressPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+F+"____________"+h+"AxAA&sigh="+NL+"&cid="+q+"&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"+F+"____________"+h+"AxAA&ase=2&num="+r$+"&cid="+q+"&ad_cpn=%5BAD_CPN%5D&sig="+m+"&adurl="+ZE+"&ctype="+aZ+"&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"+F+"____________"+h+"AxAA&ase=2&num="+r$+"&cid="+q+"&ad_cpn=%5BAD_CPN%5D&sig="+m+"&adurl="+ZE+"&label=video_engaged_view&ctype="+aZ+"&ms=[CLICK_MS]",offsetMilliseconds:15E3,attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+r$+";dc_exteid="+jf+";met="+r$+";ecn"+r$+"="+r$+";etm1="+r$+";eid1="+sG+";?",offsetMilliseconds:15E3}],
fullscreenPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+F+"____________"+h+"AxAA&sigh="+NL+"&cid="+q+"&label=adfullscreen&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+r$+";dc_exteid="+jf+";met="+r$+";ecn"+r$+"="+r$+";etm1="+r$+";eid1="+F1+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],activeViewViewablePings:[{baseUrl:"https://www.youtube.com/pcs/activeview?xai="+O+"&sig="+v9+"&ad_cpn=[AD_CPN]&id="+
HH+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://pagead2.googlesyndication.com/activeview_ext?id="+HH+"&dc_pubid="+r$+"&dc_exteid="+jf+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]?"}],endFullscreenPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+F+"____________"+h+"AxAA&sigh="+NL+"&cid="+q+"&label=vast_exit_fullscreen&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"}],activeViewMeasurablePings:[{baseUrl:"https://www.youtube.com/pcs/activeview?xai="+O+
"&sig="+v9+"&ad_cpn=[AD_CPN]&id="+HH+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]&avm="+r$},{baseUrl:"https://pagead2.googlesyndication.com/activeview_ext?id="+HH+"&avm="+r$+"&dc_pubid="+r$+"&dc_exteid="+jf+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]?"}],abandonPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+F+"____________"+h+"AxAA&sigh="+NL+"&cid="+q+"&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="+r$+";dc_exteid="+jf+";met="+r$+";ecn"+r$+"="+r$+";etm1="+r$+";eid1="+F1+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],activeViewFullyViewableAudibleHalfDurationPings:[{baseUrl:"https://www.youtube.com/pcs/activeview?xai="+O+"&sig="+v9+"&ad_cpn=[AD_CPN]&id="+HH+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]&avgm="+r$},{baseUrl:"https://pagead2.googlesyndication.com/activeview_ext?id="+HH+"&dc_pubid="+r$+"&dc_exteid="+jf+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]?"}],
startPings:[{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+r$+";dc_exteid="+jf+";met="+r$+";ecn"+r$+"="+r$+";etm1="+r$+";eid1="+F1+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],firstQuartilePings:[{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+r$+";dc_exteid="+jf+";met="+r$+";ecn"+r$+"="+r$+";etm1="+r$+";eid1="+sG+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],secondQuartilePings:[{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+
r$+";dc_exteid="+jf+";met="+r$+";ecn"+r$+"="+r$+";etm1="+r$+";eid1="+F1+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],thirdQuartilePings:[{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+r$+";dc_exteid="+jf+";met="+r$+";ecn"+r$+"="+r$+";etm1="+r$+";eid1="+sG+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],completePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+F+"____________"+h+"AxAA&sigh="+NL+"&cid="+q+"&label=videoplaytime100&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},
{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+r$+";dc_exteid="+jf+";met="+r$+";ecn"+r$+"="+r$+";etm1="+r$+";eid1="+F1+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],activeViewTracking:{trafficType:"ACTIVE_VIEW_TRAFFIC_TYPE_VIDEO"}},clickthroughEndpoint:{clickTrackingParams:ot,commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+F+"____________"+h+"AxAA&ase=2&num="+r$+"&cid="+q+"&ad_cpn=%5BAD_CPN%5D&sig="+m+"&adurl="+ZE+"&label=video_click_to_advertiser_site&ctype="+
aZ+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+F+"____________"+h+"AxAA&ase=2&num="+r$+"&cid="+q+"&ad_cpn=%5BAD_CPN%5D&sig="+m+"&adurl="+ZE+"&label=video_click_to_advertiser_site&ctype="+aZ+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},csiParameters:[{key:"ad_at",value:"15_2_1"}],playerVars:"suppress_creator_endscreen=1&is_trueview_action=1&length_seconds=15",
playerOverlay:{instreamAdPlayerOverlayRenderer:{skipOrPreviewRenderer:{skipAdRenderer:{preskipRenderer:{adPreviewRenderer:{thumbnail:{thumbnail:{thumbnails:[{url:"https://i.ytimg.com/vi/"+n+"/mqdefault.jpg",width:320,height:180}]},trackingParams:fl+"="},trackingParams:fl+"=",templatedCountdown:{templatedAdText:{text:dE,isTemplated:!0,trackingParams:fl+"="}},durationMilliseconds:5E3}},skippableRenderer:{skipButtonRenderer:{message:{text:HL,isTemplated:!1,trackingParams:fl+"="},trackingParams:fl+"="}},
trackingParams:fl+"=",skipOffsetMilliseconds:5E3}},trackingParams:fl+"=",visitAdvertiserRenderer:{buttonRenderer:{style:"STYLE_UNKNOWN",text:{simpleText:Wp},icon:{iconType:"OPEN_IN_NEW"},navigationEndpoint:{clickTrackingParams:ot,commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+F+"____________"+h+"AxAA&ase=2&num="+r$+"&cid="+q+"&ad_cpn=%5BAD_CPN%5D&sig="+m+"&adurl="+ZE+"&label=video_click_to_advertiser_site&ctype="+aZ+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",
rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+F+"____________"+h+"AxAA&ase=2&num="+r$+"&cid="+q+"&ad_cpn=%5BAD_CPN%5D&sig="+m+"&adurl="+ZE+"&label=video_click_to_advertiser_site&ctype="+aZ+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},trackingParams:fl+"="}},adBadgeRenderer:{simpleAdBadgeRenderer:{text:{text:ed,isTemplated:!1,trackingParams:fl+"="},trackingParams:fl+"="}},adDurationRemaining:{adDurationRemainingRenderer:{templatedCountdown:{templatedAdText:{text:AE,
isTemplated:!0,trackingParams:fl+"="}},trackingParams:fl+"="}},adInfoRenderer:{adHoverTextButtonRenderer:{button:{buttonRenderer:{style:"STYLE_UNKNOWN",size:"SIZE_DEFAULT",isDisabled:!1,serviceEndpoint:{clickTrackingParams:ot,openPopupAction:{popup:{aboutThisAdRenderer:{url:(Ta.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue="https://www.youtube.com/aboutthisad?pf=web&source=youtube&reasons=A"+W+"&hl="+w$+"&origin=www.youtube.com&ata_theme="+XC,Ta),trackingParams:fl+"="}},popupType:"DIALOG"}},
icon:{iconType:"INFO_OUTLINE"},trackingParams:fl+"="}},hoverText:{runs:[{text:HL}]},trackingParams:fl+"="}},flyoutCtaRenderer:{flyoutCtaRenderer:{image:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/"+Em+"=s176-c-k-c0x00ffffff-no-rj"}]},trackingParams:fl+"="},headline:{text:SM,isTemplated:!1,trackingParams:fl+"="},description:{text:XC,trackingParams:fl+"="},actionButton:{buttonRenderer:{text:{simpleText:dE},navigationEndpoint:{clickTrackingParams:ot,commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+
F+"____________"+h+"AxAA&ase=2&num="+r$+"&cid="+q+"&ad_cpn=%5BAD_CPN%5D&sig="+m+"&adurl="+ZE+"&label=video_click_to_advertiser_site&ctype="+aZ+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+F+"____________"+h+"AxAA&ase=2&num="+r$+"&cid="+q+"&ad_cpn=%5BAD_CPN%5D&sig="+m+"&adurl="+ZE+"&label=video_click_to_advertiser_site&ctype="+aZ+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},
trackingParams:fl+"="}},startMs:r$,trackingParams:fl+"="}},adLayoutLoggingData:{serializedAdServingDataEntry:k7},elementId:TY}},elementId:NL,trackingParams:fl+"=",legacyInfoCardVastExtension:HH,sodarExtensionData:{siub:Wp,bgub:XC,scs:k7,bgp:XC},externalVideoId:NL,adLayoutLoggingData:{serializedAdServingDataEntry:XC},layoutId:"OTH1kH5dWmSpUnNw"}},{adActionInterstitialRenderer:{image:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/"+Em+"=s176-c-k-c0x00ffffff-no-rj"}]},trackingParams:fl+"="},headline:{text:AE,
isTemplated:!1,trackingParams:fl+"="},description:{text:SL,isTemplated:!1,trackingParams:fl+"="},actionButton:{buttonRenderer:{style:"STYLE_PRIMARY",text:{simpleText:dE},navigationEndpoint:{clickTrackingParams:ot,commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+F+"____________"+h+"AxAA&ase=2&num="+r$+"&cid="+q+"&ad_cpn=%5BAD_CPN%5D&sig="+m+"&adurl="+ZE+"&label=video_click_to_advertiser_site&ctype="+aZ+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",
rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+F+"____________"+h+"AxAA&ase=2&num="+r$+"&cid="+q+"&ad_cpn=%5BAD_CPN%5D&sig="+m+"&adurl="+ZE+"&label=video_click_to_advertiser_site&ctype="+aZ+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},trackingParams:fl+"="}},durationMilliseconds:7E3,countdownRenderer:{timedPieCountdownRenderer:{trackingParams:fl+"="}},navigationEndpoint:{clickTrackingParams:ot,loggingUrls:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+
F+"____________"+h+"AxAA&sigh="+NL+"&cid="+q+"&label=video_card_endcap_action_headline_click"}],commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+F+"____________"+h+"AxAA&ase=2&num="+r$+"&cid="+q+"&ad_cpn=%5BAD_CPN%5D&sig="+m+"&adurl="+ZE+"&label=video_click_to_advertiser_site&ctype="+aZ+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+F+"____________"+h+"AxAA&ase=2&num="+
r$+"&cid="+q+"&ad_cpn=%5BAD_CPN%5D&sig="+m+"&adurl="+ZE+"&label=video_click_to_advertiser_site&ctype="+aZ+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},trackingParams:fl+"=",backgroundImage:{thumbnail:{thumbnails:[{url:""}]},trackingParams:fl+"="},abandonCommands:{commands:[{clickTrackingParams:ot,loggingUrls:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+F+"____________"+h+"AxAA&sigh="+NL+"&cid="+q+"&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="+r$+";dc_exteid="+jf+";met="+r$+";ecn"+r$+"="+r$+";etm1="+r$+";eid1="+F1+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],pingingEndpoint:{hack:!0}}]},adRendererCommands:{impressionCommand:{clickTrackingParams:ot,commandExecutorCommand:{commands:[{clickTrackingParams:ot,loggingUrls:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+F+"____________"+h+"AxAA&sigh="+NL+"&cid="+q+"&label=video_card_endcap_impression"}],pingingEndpoint:{hack:!0}}]}}},
skipButton:{skipButtonRenderer:{message:{text:XC,isTemplated:!1,trackingParams:fl+"="},trackingParams:fl+"="}},adLayoutLoggingData:{serializedAdServingDataEntry:dE},skipPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+F+"____________"+h+"AxAA&sigh="+NL+"&cid="+q+"&label=videoskipped&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+r$+";dc_exteid="+jf+";met="+r$+";ecn"+r$+"="+r$+";etm1="+r$+";eid1="+
SI+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],layoutId:"x0nw3inGkAJNdtYU"}}],adLayoutMetadata:{layoutId:"kaF8SbSZynKvp81K",layoutType:"LAYOUT_TYPE_COMPOSITE_PLAYER_BYTES",adLayoutLoggingData:{serializedAdServingDataEntry:sO}}}},adSlotLoggingData:{serializedSlotAdServingDataEntry:SL}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_MILLISECONDS",adTimeOffset:{offsetStartMilliseconds:kG,offsetEndMilliseconds:sG},hideCueRangeMarker:!0}},renderer:{adBreakServiceRenderer:{prefetchMilliseconds:"10000",
getAdBreakUrl:"https://www.youtube.com/get_midroll_info?ei="+l+"&m_pos="+F1+"&token=ALHj"+M+"&index="+r$+"&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="+I+"&m_pos_ms="+kG}},adSlotLoggingData:{serializedSlotAdServingDataEntry:CB}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_MILLISECONDS",
adTimeOffset:{offsetStartMilliseconds:sG,offsetEndMilliseconds:sG},hideCueRangeMarker:!0}},renderer:{adBreakServiceRenderer:{prefetchMilliseconds:"10000",getAdBreakUrl:"https://www.youtube.com/get_midroll_info?ei="+l+"&m_pos="+aZ+"&token=ALHj"+M+"&index="+r$+"&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="+
I+"&m_pos_ms="+sG}},adSlotLoggingData:{serializedSlotAdServingDataEntry:XC}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_MILLISECONDS",adTimeOffset:{offsetStartMilliseconds:sG,offsetEndMilliseconds:sG},hideCueRangeMarker:!0}},renderer:{adBreakServiceRenderer:{prefetchMilliseconds:"10000",getAdBreakUrl:"https://www.youtube.com/get_midroll_info?ei="+l+"&m_pos="+aZ+"&token=ALHj"+M+"&index="+r$+"&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="+
I+"&m_pos_ms="+sG}},adSlotLoggingData:{serializedSlotAdServingDataEntry:HL}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_MILLISECONDS",adTimeOffset:{offsetStartMilliseconds:sG,offsetEndMilliseconds:sG},hideCueRangeMarker:!0}},renderer:{adBreakServiceRenderer:{prefetchMilliseconds:"10000",getAdBreakUrl:"https://www.youtube.com/get_midroll_info?ei="+l+"&m_pos="+aZ+"&token=ALHj"+M+"&index="+r$+"&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="+
I+"&m_pos_ms="+sG}},adSlotLoggingData:{serializedSlotAdServingDataEntry:q$}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_MILLISECONDS",adTimeOffset:{offsetStartMilliseconds:sG,offsetEndMilliseconds:F1},hideCueRangeMarker:!0}},renderer:{adBreakServiceRenderer:{prefetchMilliseconds:"10000",getAdBreakUrl:"https://www.youtube.com/get_midroll_info?ei="+l+"&m_pos="+aZ+"&token=ALHj"+M+"&index="+r$+"&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="+
I+"&m_pos_ms="+sG}},adSlotLoggingData:{serializedSlotAdServingDataEntry:sO}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_END",adTimeOffset:{offsetStartMilliseconds:F1,offsetEndMilliseconds:F1},hideCueRangeMarker:!0}},renderer:{adBreakServiceRenderer:{prefetchMilliseconds:"10000",getAdBreakUrl:"https://www.youtube.com/get_midroll_info?ei="+l+"&m_pos="+F1+"&token=ALHj"+M+"&index="+r$+"&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="+
I+"&m_pos_ms="+F1}},adSlotLoggingData:{serializedSlotAdServingDataEntry:Wp}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_SELF_START"}},renderer:{actionCompanionAdRenderer:{headline:{text:dE,isTemplated:!1,trackingParams:fl+"="},description:{text:TY,isTemplated:!1,trackingParams:fl+"="},actionButton:{buttonRenderer:{text:{simpleText:HH},navigationEndpoint:{clickTrackingParams:ot,loggingUrls:[{baseUrl:"https://ad.doubleclick.net/ddm/trackclk/N444803.2428500DBMSITEID/B30029229.368252041;dc_trk_aid="+
H4+";dc_trk_cid="+H4+";dc_dbm_token="+A+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+r$+";ord="+H4+";dc_rui="+r$+";dc_exteid="+jf+";dc_av="+r$+";dc_sk="+r$+";dc_ctype="+F1+";dc_pubid="+r$+";dc_btype=3?gclid="+Hp+"&ase=2"}],commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+F+"____________"+h+"AxAA&ase=2&num="+r$+"&cid="+q+"&ad_cpn=%5BAD_CPN%5D&sig="+m+"&adurl="+ZE+"&label=video_click_to_advertiser_site&ctype="+aZ+"&ms=[CLICK_MS]",
webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+F+"____________"+h+"AxAA&ase=2&num="+r$+"&cid="+q+"&ad_cpn=%5BAD_CPN%5D&sig="+m+"&adurl="+ZE+"&label=video_click_to_advertiser_site&ctype="+aZ+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},trackingParams:fl+"="}},iconImage:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/ytc/"+d2+"=s88-c-k-c0x00ffffff-no-rj",width:48,
height:48}]},trackingParams:fl+"="},bannerImage:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/"+nG+"=w1060-fcrop64=1,00005a57ffffa5a8-k-c0xffffffff-no-nd-rj",width:384,height:80}]},trackingParams:fl+"="},navigationEndpoint:{clickTrackingParams:ot,loggingUrls:[{baseUrl:"https://ad.doubleclick.net/ddm/trackclk/N444803.2428500DBMSITEID/B30029229.368252041;dc_trk_aid="+H4+";dc_trk_cid="+H4+";dc_dbm_token="+A+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+r$+";ord="+H4+
";dc_rui="+r$+";dc_exteid="+jf+";dc_av="+r$+";dc_sk="+r$+";dc_ctype="+F1+";dc_pubid="+r$+";dc_btype=3?gclid="+Hp+"&ase=2"}],commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+F+"____________"+h+"AxAA&ase=2&num="+r$+"&cid="+q+"&ad_cpn=%5BAD_CPN%5D&sig="+m+"&adurl="+ZE+"&label=video_click_to_advertiser_site&ctype="+aZ+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+
F+"____________"+h+"AxAA&ase=2&num="+r$+"&cid="+q+"&ad_cpn=%5BAD_CPN%5D&sig="+m+"&adurl="+ZE+"&label=video_click_to_advertiser_site&ctype="+aZ+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},trackingParams:fl+"=",adInfoRenderer:{adHoverTextButtonRenderer:{button:{buttonRenderer:{style:"STYLE_UNKNOWN",size:"SIZE_DEFAULT",isDisabled:!1,icon:{iconType:"INFO_OUTLINE"},navigationEndpoint:{clickTrackingParams:ot,openPopupAction:{popup:{aboutThisAdRenderer:{url:(Ug.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue=
"https://www.youtube.com/aboutthisad?pf=web&source=youtube&reasons=A"+W+"&hl="+w$+"&origin=www.youtube.com&ata_theme="+XC,Ug),trackingParams:fl+"="}},popupType:"DIALOG"}},trackingParams:fl+"="}},hoverText:{runs:[{text:XC}]},trackingParams:fl+"="}},adVideoId:NL,impressionPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+F+"____________"+h+"AxAA&sigh="+n+"&cid="+q+"&label=video_companion_impression_tracking"}],adLayoutLoggingData:{serializedAdServingDataEntry:SM},associatedCompositePlayerBytesLayoutId:CB}},
adSlotLoggingData:{serializedSlotAdServingDataEntry:XC}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_SELF_START"}},renderer:{actionCompanionAdRenderer:{headline:{text:dE,isTemplated:!1,trackingParams:fl+"="},description:{text:dE,isTemplated:!1,trackingParams:fl+"="},actionButton:{buttonRenderer:{text:{simpleText:Wp},navigationEndpoint:{clickTrackingParams:ot,commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+F+"____________"+
h+"AxAA&ase=2&num="+r$+"&cid="+q+"&ad_cpn=%5BAD_CPN%5D&sig="+m+"&adurl="+ZE+"&label=video_click_to_advertiser_site&ctype="+aZ+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+F+"____________"+h+"AxAA&ase=2&num="+r$+"&cid="+q+"&ad_cpn=%5BAD_CPN%5D&sig="+m+"&adurl="+ZE+"&label=video_click_to_advertiser_site&ctype="+aZ+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},
trackingParams:fl+"="}},iconImage:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/"+Em+"=s88-c-k-c0x00ffffff-no-rj",width:48,height:48}]},trackingParams:fl+"="},bannerImage:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/"+kC+"=w1060-fcrop64=1,00005a57ffffa5a8-k-c0xffffffff-no-nd-rj",width:384,height:80}]},trackingParams:fl+"="},navigationEndpoint:{clickTrackingParams:ot,commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+F+"____________"+h+"AxAA&ase=2&num="+
r$+"&cid="+q+"&ad_cpn=%5BAD_CPN%5D&sig="+m+"&adurl="+ZE+"&label=video_click_to_advertiser_site&ctype="+aZ+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+F+"____________"+h+"AxAA&ase=2&num="+r$+"&cid="+q+"&ad_cpn=%5BAD_CPN%5D&sig="+m+"&adurl="+ZE+"&label=video_click_to_advertiser_site&ctype="+aZ+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},trackingParams:fl+
"=",adInfoRenderer:{adHoverTextButtonRenderer:{button:{buttonRenderer:{style:"STYLE_UNKNOWN",size:"SIZE_DEFAULT",isDisabled:!1,icon:{iconType:"INFO_OUTLINE"},navigationEndpoint:{clickTrackingParams:ot,openPopupAction:{popup:{aboutThisAdRenderer:{url:(sN.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue="https://www.youtube.com/aboutthisad?pf=web&source=youtube&reasons=A"+W+"&hl="+w$+"&origin=www.youtube.com&ata_theme="+XC,sN),trackingParams:fl+"="}},popupType:"DIALOG"}},trackingParams:fl+"="}},
hoverText:{runs:[{text:SM}]},trackingParams:fl+"="}},adVideoId:NL,impressionPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+F+"____________"+h+"AxAA&sigh="+NL+"&cid="+q+"&label=video_companion_impression_tracking"}],adLayoutLoggingData:{serializedAdServingDataEntry:Wp},associatedCompositePlayerBytesLayoutId:CB}},adSlotLoggingData:{serializedSlotAdServingDataEntry:NL}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_SELF_START"}},renderer:{actionCompanionAdRenderer:{headline:{text:HL,
isTemplated:!1,trackingParams:fl+"="},description:{text:vy,isTemplated:!1,trackingParams:fl+"="},actionButton:{buttonRenderer:{text:{simpleText:HL},navigationEndpoint:{clickTrackingParams:ot,loggingUrls:[{baseUrl:"https://ad.doubleclick.net/ddm/trackclk/N444803.2428500DBMSITEID/B30029229.368252041;dc_trk_aid="+H4+";dc_trk_cid="+H4+";dc_dbm_token="+A+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+r$+";ord="+H4+";dc_rui="+r$+";dc_exteid="+jf+";dc_av="+r$+";dc_sk="+r$+";dc_ctype="+
F1+";dc_pubid="+r$+";dc_btype=3?gclid="+Hp+"&ase=2"}],commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+F+"____________"+h+"AxAA&ase=2&num="+r$+"&cid="+q+"&ad_cpn=%5BAD_CPN%5D&sig="+m+"&adurl="+ZE+"&label=video_click_to_advertiser_site&ctype="+aZ+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+F+"____________"+h+"AxAA&ase=2&num="+r$+"&cid="+q+"&ad_cpn=%5BAD_CPN%5D&sig="+
m+"&adurl="+ZE+"&label=video_click_to_advertiser_site&ctype="+aZ+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},trackingParams:fl+"="}},iconImage:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/ytc/"+d2+"=s88-c-k-c0x00ffffff-no-rj",width:48,height:48}]},trackingParams:fl+"="},bannerImage:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/"+nG+"=w1060-fcrop64=1,00005a57ffffa5a8-k-c0xffffffff-no-nd-rj",width:384,height:80}]},trackingParams:fl+
"="},navigationEndpoint:{clickTrackingParams:ot,loggingUrls:[{baseUrl:"https://ad.doubleclick.net/ddm/trackclk/N444803.2428500DBMSITEID/B30029229.368252041;dc_trk_aid="+H4+";dc_trk_cid="+H4+";dc_dbm_token="+A+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+r$+";ord="+H4+";dc_rui="+r$+";dc_exteid="+jf+";dc_av="+r$+";dc_sk="+r$+";dc_ctype="+F1+";dc_pubid="+r$+";dc_btype=3?gclid="+Hp+"&ase=2"}],commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+
F+"____________"+h+"AxAA&ase=2&num="+r$+"&cid="+q+"&ad_cpn=%5BAD_CPN%5D&sig="+m+"&adurl="+ZE+"&label=video_click_to_advertiser_site&ctype="+aZ+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+F+"____________"+h+"AxAA&ase=2&num="+r$+"&cid="+q+"&ad_cpn=%5BAD_CPN%5D&sig="+m+"&adurl="+ZE+"&label=video_click_to_advertiser_site&ctype="+aZ+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},
trackingParams:fl+"=",adInfoRenderer:{adHoverTextButtonRenderer:{button:{buttonRenderer:{style:"STYLE_UNKNOWN",size:"SIZE_DEFAULT",isDisabled:!1,icon:{iconType:"INFO_OUTLINE"},navigationEndpoint:{clickTrackingParams:ot,openPopupAction:{popup:{aboutThisAdRenderer:{url:(N2.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue="https://www.youtube.com/aboutthisad?pf=web&source=youtube&reasons=A"+W+"&hl="+w$+"&origin=www.youtube.com&ata_theme="+XC,N2),trackingParams:fl+"="}},popupType:"DIALOG"}},trackingParams:fl+
"="}},hoverText:{runs:[{text:SM}]},trackingParams:fl+"="}},adVideoId:NL,impressionPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+F+"____________"+h+"AxAA&sigh="+n+"&cid="+q+"&label=video_companion_reshow_tracking"}],adLayoutLoggingData:{serializedAdServingDataEntry:sO},isContentVideoCompanion:!0,associatedCompositePlayerBytesLayoutId:CB}},adSlotLoggingData:{serializedSlotAdServingDataEntry:AE}}}],adBreakHeartbeatParams:"Q0FBJTNE",frameworkUpdates:{entityBatchUpdate:{mutations:[{entityKey:XM,
type:"ENTITY_MUTATION_TYPE_REPLACE",payload:{offlineabilityEntity:{key:XM,command:{innertubeCommand:{clickTrackingParams:ot,ypcGetOfflineUpsellEndpoint:{params:nZ}}},addToOfflineButtonState:"ADD_TO_OFFLINE_BUTTON_STATE_ENABLED",contentCheckOk:!1,racyCheckOk:!1,loggingDirectives:{trackingParams:fl+"=",visibility:{types:"4"},enableDisplayloggerExperiment:!0}}}}],timestamp:{seconds:aw,nanos:ce}}}},oB$=JSON.stringify(tu),ut=performance.now()-a;return{objectRepresentation:tu,jsonRepresentation:oB$,generationTime:ut}};
EIm=function(a,z){if(a===z)return!0;if(!a||!z||typeof a!==typeof z)return!1;if(a instanceof Array&&z instanceof Array){if(a.length!==z.length)return!1;for(var I=0;I<a.length;I++)if(!EIm(a[I],z[I]))return!1;return!0}if(typeof a==="object"&&typeof z==="object"&&a&&z){for(I in a)if(!(I in z&&EIm(a[I],z[I])))return!1;for(var J in z)if(!(J in a))return!1;return!0}return!1};
_.CH=function(){if(!Za){Za=new uE(new BIx);var a=_.Ib("client_streamz_web_flush_count",-1);a!==-1&&(Za.invocationLimit=a)}return Za};
N1=function(a,z,I,J){if(a===z)return!0;if(Array.isArray(a)&&Array.isArray(z)){if(a.length!==z.length)return!1;for(var r=0;r<a.length;r++)if(!N1(a[r],z[r],I,J))return!1;return!0}if(a instanceof Set||z instanceof Set){if(a instanceof Set&&z instanceof Set){if(a.size!==z.size)return!1;J=_.C(a.values());for(r=J.next();!r.done;r=J.next())if(!z.has(r.value))return!1;return!0}return!1}if(a instanceof Function){if(J)return!0;a.name===""&&_.Gx(Error("Hf"),"ERROR");return!1}if(a instanceof Date&&z instanceof
Date)return a.getTime()===z.getTime();if(a instanceof Object&&z instanceof Object){if(gI7(a)&&gI7(z))try{return a.equals(z)}catch(N){_.Gx(Error("If`"+N),"ERROR")}r=Object.getOwnPropertyNames(a).filter(function(N){return I?a[N]!==void 0:!0});
var P=Object.getOwnPropertyNames(z).filter(function(N){return I?z[N]!==void 0:!0});
if(r.length!==P.length)return!1;r=_.C(r);for(P=r.next();!P.done;P=r.next())if(P=P.value,!N1(a[P],z[P],I,J))return!1;return!0}return!1};
gI7=function(a){a=Object.getPrototypeOf(a).equals;return a instanceof Function&&a.length===1};
_.Acp=function(){return _.t(function(a){if(a.nextAddress==1)return OVG!==2?a.jumpTo(2):a.yield(fe3(),3);a.nextAddress!=2&&(OVG=a.yieldResult);return a.return(OVG)})};
_.KDi=function(){return _.t(function(a){if(a.nextAddress==1)return _.K("ab_pl_man")?sW3!==2?a.jumpTo(2):a.yield(nIM(),3):a.return(1);a.nextAddress!=2&&(sW3=a.yieldResult);return a.return(sW3)})};
bVO=function(){return _.t(function(a){if(a.nextAddress==1)return _.K("ab_fk_sk_cl")?FD3!==2?a.jumpTo(2):a.yield(HVG(),3):a.return(1);a.nextAddress!=2&&(FD3=a.yieldResult);return a.return(FD3)})};
_.QWI=function(){return _.t(function(a){if(a.nextAddress==1)return _.K("ab_det_apb_b")?h1G!==2?a.jumpTo(2):a.yield(VBx(),3):a.return(1);a.nextAddress!=2&&(h1G=a.yieldResult);return a.return(h1G)})};
x5$=function(){var a;return _.t(function(z){if(z.nextAddress==1)return z.yield(Promise.all([_.Acp(),_.QWI(),_.KDi(),bVO()]),2);if(z.nextAddress!=3)return SFi()?z.return(!0):z.yield(_.iV7(),3);a=z.yieldResult;return z.return(a===0)})};
SFi=function(){var a=!1,z=function(I,J){vI3.increment(J,I);I===0&&(a=!0)};
z(_.GtO(),"j.s_");z(OVG,"f.i_");z(h1G,"a.b_");z(sW3,"p.m_");z(FD3,"i.f_");$5$===2&&($5$=_.XZG(TI0));z($5$,"e.h_");_.K("ks_det_gpbl")||z(_.d5m(),"p.i_");_.K("ks_get_o_pp")||z(_.WDE(),"g.o_");_.K("ab_deg_unex_thr")||z(_.oIG(),"a.o_");z(U5p,"s.t_");_.K("ab_det_sc_inj_enf")&&z(_.D5M(),"s.i_");z(R1p,"d.p_");z(_.LDp(_.tv),"o.p_");z(_.led()===0?0:_.pZm(),"o.a_");return _.K("debug_sk_em_precheck")?!0:a};
m5x=function(){var a=[].concat(_.ih(wZE));try{var z=Ph();a.push({jsonRepresentation:z.jsonRepresentation,objectRepresentation:z.objectRepresentation})}catch(I){a=[].concat(_.ih(wZE))}return a};
yc7=function(){var a=["adPlacements","adSlots"];try{return a.filter(function(){return!0}).length!==a.length?0:1}catch(z){return 0}};
_.WDE=function(){if(yc7()===0)return 0;var a=Ph(),z=a.objectRepresentation,I=(0,_.x8.unsafeClone)(z),J=[];if(z&&typeof z==="object")for(var r in z)J.push(r);else return 4;a=a.objectRepresentation.adPlacements;if(!(a&&a.length>0))return 4;try{if(!EIm(J,Object.getOwnPropertyNames(z)))return 0}catch(P){return 0}return EIm(I,z)?1:0};
_.LDp=function(a){if(!a||!a.length||typeof a==="string")return 0;for(var z=Object.getOwnPropertyNames(Object.prototype),I=0;I<a.length;I++)for(var J=_.zr(a[I]),r=_.C(z),P=r.next();!P.done;P=r.next())if(J===P.value)return 0;return 1};
ktM=function(a){var z=_.zr(a[1]);if(a[0]===null)return z;a=a[0];for(var I={},J=0;J<a.length;J++){var r=_.zr(a[J]);if(J===0)I[r]=z;else{var P={};P[r]=I;I=P}}return I};
_.led=function(){for(var a=_.uk,z=0;z<a.length;z++){var I=ktM(a[z]),J=[];J.push(I);if(J.length===0)return 0}return 1};
_.pZm=function(){for(var a=_.uk,z={},I=0;I<a.length;z={fIg:void 0},I++){var J=[ktM(a[I])];z.fIg=[];J.forEach(function(r){return function(P){r.fIg[r.fIg.length]=P}}(z));
if(z.fIg.length===0)return 0}return 1};
_.GtO=function(){for(var a=_.C(m5x()),z=a.next();!z.done;z=a.next()){var I=z.value;z=I.jsonRepresentation;I=I.objectRepresentation;try{var J=JSON.parse(z);if(!N1(J,I,!1,!1))return 0}catch(r){return 0}}return 1};
_.D5M=function(){try{var a=_.Py("ab_det_sc_inj_val");a.length===1&&a[0]===""&&(a=['json=JSON.parse(text);for(k of["playerAds","adPlacements","adSlots"])']);for(var z=document.querySelectorAll("script"),I=_.C(z),J=I.next();!J.done;J=I.next())for(var r=J.value,P=_.C(a),N=P.next();!N.done;N=P.next()){var u=N.value;z=void 0;if((z=r.textContent)==null?0:z.includes(u))return 0}}catch(E){return 4}return 1};
_.iV7=function(){var a,z,I,J,r,P,N;return _.t(function(u){switch(u.nextAddress){case 1:_.BP(u,2),a=_.C(wZE),z=a.next();case 4:if(z.done)return u.return(1);J=I=z.value;r=J.jsonRepresentation;P=J.objectRepresentation;return u.yield((new Response(r,{status:200})).json(),7);case 7:N=u.yieldResult;if(!N1(N,P,!1,!1))return u.return(0);z=a.next();u.jumpTo(4);break;case 2:return _.sk(u),u.return(4)}})};
_.oIG=function(){try{btoa("abc")}catch(a){return 0}return 1};
fe3=function(){var a,z,I,J,r,P,N,u,E,O,f;return _.t(function(A){switch(A.nextAddress){case 1:_.BP(A,2),a=_.C(m5x()),z=a.next();case 4:if(z.done)return A.return(1);J=I=z.value;r=J.jsonRepresentation;P=J.objectRepresentation;N=btoa(r);u="data:application/json;base64,"+N;E=new Request(u);Object.defineProperty(E,"url",{get:function(){return"https://www.youtube.com/youtubei/v1/player?key=AIzaSyAO_FJ2SlqU8Q4STEHLGCilw_Y9_11qcW8&prettyPrint=false"}});
Object.defineProperty(E,"method",{get:function(){return"POST"}});
Object.defineProperty(E,"bodyUsed",{get:function(){return!0}});
Object.defineProperty(E,"mode",{get:function(){return"same-origin"}});
Object.defineProperty(E,"body",{get:function(){return new ReadableStream}});
return A.yield(fetch(E),7);case 7:return O=A.yieldResult,A.yield(O.json(),8);case 8:f=A.yieldResult;if(!N1(f,P,!1,!1))return A.return(0);z=a.next();A.jumpTo(4);break;case 2:return _.sk(A),A.return(4)}})};
_.XZG=function(a){if(!a||!a.length||typeof a==="string")return 0;for(var z=function(r){return _.zr(r)},I=2,J=0;J<a.length&&(I=_.MBm(_.tB$(a[J],z)),I!==0);J++);
return I};
_.MBm=function(a){var z=_.C(a);a=z.next().value;z=z.next().value;try{var I=document.createElement("div");document.body.appendChild(I);var J=getComputedStyle(I).display;document.body.removeChild(I);if(J==="none")return 4;var r=getComputedStyle(z).display==="none"?0:1;document.body.removeChild(a);return r}catch(P){return 4}};
HVG=function(){var a,z,I;return _.t(function(J){a=new _.EM;z=document.createElement("button");z.classList.add("ytp-ad-skip-button");z.style.opacity="0";z.style.height="0px";z.style.width="0px";z.style.padding="0px";z.style.border="none";I=function(){z.parentElement&&z.parentElement.removeChild(z)};
z.onclick=function(){a.resolve(0);I()};
document.body.appendChild(z);setTimeout(function(){I();a.resolve(1)},50);
return J.return(a.promise)})};
nIM=function(){var a,z,I,J,r,P,N;return _.t(function(u){a=new _.EM;z=document.createElement("ytd-player");try{document.body.prepend(z)}catch(E){return u.return(4)}I=function(){z.parentElement&&z.parentElement.removeChild(z)};
z.getElementsByTagName("div").length>0?J=z.getElementsByTagName("div")[0]:(J=document.createElement("div"),z.appendChild(J));r=document.createElement("div");J.appendChild(r);P=document.createElement("video");N=new Blob([new Uint8Array([26,69,223,163,159,66,134,129,1,66,247,129,1,66,242,129,4,66,243,129,8,66,130,132,119,101,98,109,66,135,129,4,66,133,129,2,24,83,128,103,1,255,255,255,255,255,255,255,21,73,169,102,153,42,215,177,131,15,66,64,77,128,134,67,104,114,111,109,101,87,65,134,67,104,114,111,
109,101,22,84,174,107,169,174,167,215,129,1,115,197,135,207,96,156,234,24,157,175,131,129,1,85,238,129,1,134,133,86,95,86,80,56,224,138,176,129,1,186,129,1,83,192,129,1,31,67,182,117,1,255,255,255,255,255,255,255,231,129,0,160,204,161,162,129,0,0,0,16,2,0,157,1,42,1,0,1,0,11,199,8,133,133,136,153,132,136,63,130,0,12,13,96,0,254,229,106,0,117,161,165,166,163,238,129,1,165,158,16,2,0,157,1,42,1,0,1,0,11,199,8,133,133,136,153,132,136,63,130,0,12,13,96,0,254,232,120,0,160,187,161,152,129,3,233,0,177,
1,0,47,17,252,0,24,0,48,63,244,12,0,0,0,254,229,106,0,117,161,155,166,153,238,129,1,165,148,177,1,0,47,17,252,0,24,0,48,63,244,12,0,0,0,254,232,120,0,251,129,0,160,188,161,152,129,7,208,0,177,1,0,47,17,252,0,24,0,48,63,244,12,0,0,0,254,229,106,0,117,161,155,166,153,238,129,1,165,148,177,1,0,47,17,252,0,24,0,48,63,244,12,0,0,0,254,232,120,0,251,130,3,233])],{type:"video/webm"});P.src=_.ij(_.TN(N));P.ontimeupdate=function(){I();a.resolve(0)};
r.appendChild(P);P.classList.add("html5-main-video");setTimeout(function(){r.classList.add("ad-interrupting")},200);
setTimeout(function(){I();a.resolve(1)},5E3);
return u.return(a.promise)})};
ccp=function(a,z){var I,J;return _.t(function(r){switch(r.nextAddress){case 1:I=[],J=0;case 2:if(!(J<3)){r.jumpTo(4);break}return r.yield(fetch(a,{cache:"no-store",method:z}).then(function(P){I.push(P.status)}).catch(function(){I.push(-1)}),3);
case 3:J++;r.jumpTo(2);break;case 4:return r.return(I)}})};
YFM=function(a){return a.domainLookupStart===0&&a.domainLookupEnd===0&&a.connectStart===0&&a.connectEnd===0};
qFO=function(a,z,I){I=I===void 0?"GET":I;var J,r,P,N,u,E,O,f,A,n;return _.t(function(F){if(F.nextAddress==1)return F.yield(Promise.all([ccp(a,I),ccp(z,I)]),2);J=F.yieldResult;r=_.C(J);P=r.next().value;N=r.next().value;u=P;E=N;if(Math.min.apply(Math,_.ih(E))!==Math.max.apply(Math,_.ih(E))||Math.min.apply(Math,_.ih(u))!==Math.max.apply(Math,_.ih(u)))return F.return(2);if(Math.min.apply(Math,_.ih(E))===Math.min.apply(Math,_.ih(u)))return F.return(1);f=(O=performance.getEntriesByName(a))==null?void 0:
O[0];n=(A=performance.getEntriesByName(z))==null?void 0:A[0];return f&&n?YFM(n)?F.return(1):YFM(f)?F.return(0):F.return(1):F.return(2)})};
VBx=function(){var a;return _.t(function(z){var I=[];var J;var r,P,N;(r=J=(r=Ph().objectRepresentation.streamingData)==null?void 0:(P=r.formats)==null?void 0:(N=P[0])==null?void 0:N.url)&&r&&!J.match(/&pfa=|yt_premiere_broadcast|yt_live_broadcast/)?(r=r.replace("initcwndbps","ctier=L&initcwndbps"),r=r.replace("%2Crequiressl%2C","%2Crequiressl%2Cctier%2C"),J={testUrl:r,baseUrl:J,method:"GET"}):J=void 0;J&&I.push(J);_.K("ab_net_tp_e")&&I.push({testUrl:_.IE.location.origin+"/ad_companion",baseUrl:_.IE.location.origin+
"/generate_204",method:"OPTIONS"});if(_.K("ad_net_pb_ab")){var u;b:{J=/api\/stats\/ads/;var E,O,f,A;r=(u=Ph().objectRepresentation.adPlacements)==null?void 0:(E=u[0])==null?void 0:(O=E.adPlacementRenderer)==null?void 0:(f=O.renderer)==null?void 0:(A=f.linearAdSequenceRenderer)==null?void 0:A.linearAds;if(r!=null&&r.length&&(u=_.H(r[0],e1E))&&(u=u.pings,u!=null&&u.impressionPings))for(E=[].concat(_.ih(u.impressionPings)),u.progressPings&&(E=[].concat(_.ih(E),_.ih(u.progressPings))),u=_.C(E),E=u.next();!E.done;E=
u.next())if(E=E.value,E.baseUrl&&J.test(E.baseUrl)){u=E.baseUrl.replace("https://www.youtube.com","");break b}u=void 0}u&&I.push({testUrl:_.IE.location.origin+u,baseUrl:_.IE.location.origin+"/feed/download",method:"GET"})}if(_.K("ad_net_pb_pbp")){var n;b:{u=/api\/stats\/qoe/;if(E=Ph().objectRepresentation.playbackTracking){O=[];O.push(E==null?void 0:(n=E.videostatsPlaybackUrl)==null?void 0:n.baseUrl);var F;O.push(E==null?void 0:(F=E.videostatsDelayplayUrl)==null?void 0:F.baseUrl);var h;O.push(E==
null?void 0:(h=E.videostatsWatchtimeUrl)==null?void 0:h.baseUrl);var v;O.push(E==null?void 0:(v=E.ptrackingUrl)==null?void 0:v.baseUrl);var d;O.push(E==null?void 0:(d=E.qoeUrl)==null?void 0:d.baseUrl);var W;O.push(E==null?void 0:(W=E.atrUrl)==null?void 0:W.baseUrl);n=_.C(O);for(F=n.next();!F.done;F=n.next())if((F=F.value)&&u.test(F)){n=F.replace("https://www.youtube.com","").replace("https://s.youtube.com","");break b}}n=void 0}n&&I.push({testUrl:_.IE.location.origin+n,baseUrl:_.IE.location.origin+
"/feed/download",method:"GET"})}I=I.length!==0?I[Math.floor(Math.random()*I.length)]:void 0;return(a=I)?z.return(qFO(a.testUrl,a.baseUrl,a.method)):z.return(4)})};
_.d5m=function(){if(_.IE.vew===void 0||_.IE.vew===null||typeof _.IE.vew!=="function")return 2;try{return _.IE.vew()===!0?0:1}catch(a){return 0}};
awd=function(a){switch(a){case 2:return 0;case 1:return 2;case 0:return 3;case 4:case 3:return 1;default:_.Rw(a,"unknown result type")}};
_.jp1=function(a,z){var I=Number(_.Xw("CATSTAT",0));if(z.mmy===void 0)return I;z=z.mmy;a=awd(a);return I&~(3<<z)|a<<z};
z6m=function(a){var z,I;if((a=(z=a.auxiliaryUi)==null?void 0:(I=z.messageRenderers)==null?void 0:I.bkaEnforcementMessageViewModel)&&a.displayType==="ENFORCEMENT_MESSAGE_VIEW_MODEL_DISPLAY_TYPE_PLAYER")return a};
JM7=function(){for(var a=_.C(Object.values(_.IwG)),z=a.next();!z.done;z=a.next())z=z.value,z.isAsync&&z.mmy&&_.$S("CATSTAT",_.jp1(2,z))};
_.Av=function(a,z){a=_.Bh("FLOW_EVENT_NAMESPACE_ADBLOCK_ENFORCEMENT",a);(z===void 0?0:z)?_.rMi(a,"FLOW_TYPE_ADBLOCK_ENFORCEMENT"):_.OM(_.fH(),a,"FLOW_TYPE_ADBLOCK_ENFORCEMENT")};
Zd$=function(){if(!PQ$){if(Polymer.Base){var a=Polymer.Base.createdCallback;Polymer.Base.createdCallback=function(){try{a.apply(this,arguments)}catch(A){_.oL(A)}};
var z=Polymer.Base.attachedCallback;Polymer.Base.attachedCallback=function(){try{z.apply(this,arguments)}catch(A){_.oL(A)}};
var I=Polymer.Base.detachedCallback;Polymer.Base.detachedCallback=function(){try{I.apply(this,arguments)}catch(A){_.oL(A)}};
var J=Polymer.Base.attributeChangedCallback;Polymer.Base.attributeChangedCallback=function(){try{J.apply(this,arguments)}catch(A){_.oL(A)}};
var r=Polymer.Base._listen,P=new WeakMap;Polymer.Base._listen=function(A,n,F){var h=function(){try{F.apply(this,arguments)}catch(v){_.oL(v)}};
P.set(F,h);r.call(this,A,n,h)};
var N=Polymer.Base._unlisten;Polymer.Base._unlisten=function(A,n,F){N.call(this,A,n,P.get(F))}}if(Polymer.Async){var u=Polymer.Async,E=u._atEndOfMicrotask;
u._atEndOfMicrotask=function(){try{E.apply(u,arguments)}catch(A){_.oL(A)}}}if(Polymer.RenderStatus){var O=Polymer.RenderStatus,f=O.afterNextRender;
O.afterNextRender=function(A,n,F){f.call(O,A,function(){try{n.apply(this,arguments)}catch(h){_.oL(h)}},F)}}PQ$=!0}};
_.sM=function(a){var z=a?_.ul(a):"";if(z){if(z.indexOf("/channel/UCrpQ4p1Ql_hG8rKXIKM1MOQ")===0)return"fashion";if(z.indexOf("/channel/UC4R8DWoMoI7CAwX8_LjQHig")===0)return"live";if(z.indexOf("/channel/UCEgdi0XIXXZ-qJOFPf4JSKw")===0)return"sports";if(z.indexOf("/channel/UCYfdidRxbB8Qhf0Nx7ioOYw")===0)return"news";if(z.indexOf("/channel/UCtFRv9O2AHqOZjjynzrv-xg")===0)return _.K("web_browse_enable_learning_journey")?"learning_journey_browse":"learning";if(z.indexOf("/channel/UC-9-kyTW8ZkZNDHQJ6FgpwQ")===
0)return"music";z=z.toLowerCase();if(z==="/")return"home";if(z==="/channel_memberships")return"channel-memberships-shopfront";if(z.indexOf("/feed/trending")===0)return"trending";if(z.indexOf("/feed/explore")===0)return"explore";if(z.indexOf("/live")===0)return"live";if(z.indexOf("/results")===0)return"search";if(z.indexOf("/sports")===0)return"sports";if(z.indexOf("/fashion")===0||z.indexOf("/feed/fashion_destination")===0)return"fashion";if(/^\/(news)|(feed\/news_destination)|(@news)(\/.*)?$/.test(z))return"news";
if(/^\/(learning)|(@learning)(\/.*)?$/.test(z))return _.K("web_browse_enable_learning_journey")?"learning_journey_browse":"learning";if(z.indexOf("/channel/")===0||z.indexOf("/user/")===0||z.indexOf("/gaming")===0||z.indexOf("/post/")===0)return"channel";if(CQE(a))return"show";if(z==="/playlist"||z.indexOf("/playlist/")===0||z==="/view_play_list"||z.indexOf("/view_play_list/")===0||z.indexOf("/show/")===0)return"playlist";if(z==="/feed/history"||z.indexOf("/feed/history/")===0)return"history";if(z===
"/new")return"labs";if(z==="/feed/subscriptions")return"subscriptions";if(z.indexOf("/feed/subscriptions/")===0)return"filteredsubscriptions";if(z==="/history_controls")return"standalone";if(z.indexOf("/account")===0||z==="/gaia_link")return"WEB_PAGE_TYPE_SETTINGS";if(z.indexOf("/paid_memberships")===0||z.indexOf("/refund")===0||z.indexOf("/purchases")===0||z.indexOf("/feed/purchases")===0)return"memberships-and-purchases";if(z.indexOf("/product")===0)return"yts-products";if(z.indexOf("/premium")===
0||z.indexOf("/musicpremium")===0)return z.indexOf("/premium/offers")===0||z.indexOf("/musicpremium/offers")===0?"ypc-offers":"red";if(z==="/cart/checkout"||z==="/cart")return"ypc-checkout";if(z.indexOf("/feed/downloads")===0||z.indexOf("/redeem")===0||z.indexOf("/reporthistory")===0)return"browse";if(z.indexOf("/hashtag")===0)return"hashtag-landing-page";if(z.indexOf("/handle")===0)return"handle";if(z.indexOf("/source")===0)return"audio-pivot";if(z.search(RegExp("^/playables/(?!saved)."))===0)return"mini_app";
if(z.indexOf("/playables")===0)return"playables";if(z.indexOf("/create/live/join")===0)return"open-in-app";if(z.indexOf("/shorts")===0)return"shorts";if(z.indexOf("/feed/channels")===0)return"subscriptions-channels";(z=a?_.ul(a):"")&&z.indexOf("/watch")===0&&_.K("web_watch_enable_learning_journey")?(a=_.wq(a),a=!!a.list&&a.list.indexOf("LJPP")===0):a=!1;if(a)return"learning_journey_watch"}};
_.nH=function(a){var z,I;(a=(I=_.H(a==null?void 0:a.commandMetadata,_.O_))==null?void 0:I.url)&&(z=_.sM(a));return z};
CQE=function(a){var z=a?_.ul(a):"";if(!z)return!1;z=z.toLowerCase();return z.indexOf("/show/")===0||z.indexOf("/playlist")===0&&(a=_.wq(a),a.list&&a.list.indexOf("EL")===0)?!0:!1};
Hh=function(a){var z="unknown",I;var J=((I=_.H(a==null?void 0:a.commandMetadata,_.O_))==null?void 0:I.webPageType)||"";J?(I=J.toLowerCase(),I.startsWith("web_page_type_")&&(I=I.slice(14))):I=J;I&&NP7[I.toUpperCase()]?z=NP7[I.toUpperCase()]:_.H(a,_.KH)||_.H(a,tzG)?z="browse":_.H(a,_.Fb)?z="search":_.H(a,_.MZ)&&(z="watch");z==="watch"&&_.nH(a||null)==="learning_journey_watch"&&(z="learning_journey_watch");z==="unknown"&&_.Xd(Error("Kf`"+JSON.stringify({clickTrackingParams:a==null?void 0:a.clickTrackingParams,
commandMetadata:a==null?void 0:a.commandMetadata,allEndpointKeys:Object.keys(a||[])})));return z};
_.bk=function(a){if(!_.u3G||a)_.u3G=_.Az();return _.u3G};
_.EaG=function(a){return!!_.H(a,_.MZ)||!!_.H(a,_.hv)&&_.K("kevlar_enable_shorts_prefetch")};
_.BPd=function(a,z){a=_.H(a,_.MZ)||_.H(a,_.hv);return"v"+a.videoId+(a.playlistId?"-pl"+a.playlistId:"")+(z?"-an1":"")+(a.params?"-pr"+a.params:"")};
VK=function(a){return function(){return new a}};
QK=function(a){var z=_.ab();return function(){return z.resolve(a)}};
Odi=function(a){var z=_.Ib("web_pbj_log_warning_rate",0);z=z>0&&Math.random()<z;if(!_.H(a,_.hv))return z&&_.Xd(Error("Nf")),!1;var I;return _.K("shorts_controller_retrieve_seedless_sequence_v2")&&((I=_.H(a,_.hv))==null?void 0:I.inputType)==="REEL_WATCH_INPUT_TYPE_SEEDLESS"?!0:ga7(a)?!0:(z&&_.Xd(Error("Of")),!1)};
ga7=function(a){var z=(_.H(a,_.MZ)||_.H(a,_.hv)).videoId;if(!z||!fwx.test(z))return!1;var I;return(a=(I=_.H(a.commandMetadata,_.O_))==null?void 0:I.url)&&(a.includes(z)||a.startsWith("/clip"))?!0:!1};
_.spM=function(){var a=_.Kt();return a.getFlag(192)?a.getFlag(190):!(_.K("web_watch_cinematics_disabled_by_default")||_.K("web_watch_cinematics_preferred_reduced_motion_default_disabled")&&AMG())};
_.St=function(a,z,I){var J={};J.currentUrl=z;J.vis=a.vis!==void 0?a.vis:0;J.splay=!1;z=_.Kt();J.autoCaptionsDefaultOn=z.getFlag(66);z.getFlag(141)?z.getFlag(140)?J.autonavState="STATE_OFF":J.autonavState="STATE_ON":J.autonavState="STATE_NONE";J.html5Preference="HTML5_PREF_WANTS";isNaN(_.Xw("STS"))||(J.signatureTimestamp=_.Xw("STS"));a.autonav&&(J.autoplay=!0,J.autonav=!0);a.mutedAutoplay&&(J.autoplay=!0,J.mutedAutoplay=!0);a.inlinePlayback&&(J.autoplay=!0,J.autonav=!1,J.isInlineUnmutedPlayback=!!a.inlineUnmuted);
J.referer=I;J.lactMilliseconds=a.lact!==void 0?a.lact.toString():"-1";_.K("enable_unknown_lact_fix_on_html5")&&J.lactMilliseconds==="-1"&&_.Xd(new _.Fn("Unknown LACT is set in playbackContext.",{"lact in tempData":a.lact||"undefined",autonav:a.autonav||"undefined"}));a={};z.getFlag(194)&&(a.hasShownAmbientMode=!0);z.getFlag(192)&&(a.hasToggledOffAmbientMode=!0);_.spM()&&(a.watchAmbientModeEnabled=!0);J.watchAmbientModeContext=a;return J};
nax=function(a){var z={},I=a.pbis||0;I&&(z.playbackBeginsInSeconds=I);a.prefetch_reason&&a.prefetch_reason==="hc_pbis"&&(z.prefetchReason="PREFETCH_REASON_HINT_CONFIG_PLAYBACK_BEGINS_IN_SECONDS");return z};
_.xh=function(a){a=a===void 0?!1:a;var z=_.Kt(),I="USER_INTERFACE_THEME_LIGHT";z.getFlag(165)?I="USER_INTERFACE_THEME_DARK":z.getFlag(174)?I="USER_INTERFACE_THEME_LIGHT":_.ik()&&(I="USER_INTERFACE_THEME_DARK");return a?I:Kbm()||I};
_.Fb3=function(){return!_.K("kevlar_legacy_browsers")&&window.matchMedia&&window.matchMedia("(prefers-color-scheme)").matches};
_.ik=function(){return _.Fb3()&&window.matchMedia("(prefers-color-scheme: dark)").matches};
_.vh=function(){var a=_.Kt();return _.Fb3()&&!a.getFlag(165)&&!a.getFlag(174)};
Kbm=function(){var a=a===void 0?window.location.href:a;if(_.K("kevlar_disable_theme_param"))return null;var z=_.ul(a);if(_.HdG(z))return"USER_INTERFACE_THEME_DARK";try{var I=_.wq(a).theme;return bdx.get(I)||null}catch(J){}return null};
_.HdG=function(a){return _.K("enable_dark_theme_only_on_shorts")?!(a==null||!a.startsWith("/shorts/")):!1};
_.QpM=function(a,z,I,J,r){z=z===void 0?!1:z;I=I===void 0?!1:I;var P=_.Xw("INNERTUBE_CONTEXT");if(!P)return _.Gx(Error("Rf")),{};P=(0,_.x8.unsafeClone)(P);_.K("web_no_tracking_params_in_shell_killswitch")||delete P.clickTracking;P.client||(P.client={});var N=P.client;N.clientName==="MWEB"&&N.clientFormFactor!=="AUTOMOTIVE_FORM_FACTOR"&&(N.clientFormFactor=_.Xw("IS_TABLET")?"LARGE_FORM_FACTOR":"SMALL_FORM_FACTOR");N.screenWidthPoints=window.innerWidth;N.screenHeightPoints=window.innerHeight;N.screenPixelDensity=
Math.round(window.devicePixelRatio||1);N.screenDensityFloat=window.devicePixelRatio||1;N.utcOffsetMinutes=-Math.floor((new Date).getTimezoneOffset());N.userInterfaceTheme=_.xh();if(!z){var u=_.EpI();u&&(N.connectionType=u);_.K("web_log_effective_connection_type")&&(u=gpm())&&(P.client.effectiveConnectionType=u)}var E;if(_.K("web_log_memory_total_kbytes")&&((E=_.IE.navigator)==null?0:E.deviceMemory)){var O;E=(O=_.IE.navigator)==null?void 0:O.deviceMemory;P.client.memoryTotalKbytes=""+E*1E6}z&&J&&!_.K("web_it_context_set_original_url_ks")&&
(N.originalUrl=h6G(_.IE.location.href,J).toString());_.K("web_gcf_hashes_innertube")&&(u=hVE())&&(O=u.coldConfigData,E=u.coldHashData,u=u.hotHashData,P.client.configInfo=P.client.configInfo||{},O&&(P.client.configInfo.coldConfigData=O),E&&(P.client.configInfo.coldHashData=E),u&&(P.client.configInfo.hotHashData=u));O=_.wq(_.IE.location.href);!_.K("web_populate_internal_geo_killswitch")&&O.internalcountrycode&&(N.internalGeo=O.internalcountrycode);!_.K("web_populate_client_screen_killswitch")&&r&&(N.clientScreen=
r);N.clientName==="MWEB"||N.clientName==="WEB"?(N.mainAppWebInfo||(N.mainAppWebInfo={}),N.mainAppWebInfo.graftUrl=J||_.IE.location.href,_.K("kevlar_woffle")&&_.Gr.instance&&(J=_.Gr.instance,N.mainAppWebInfo.pwaInstallabilityStatus=!J.appInstalledEventFired&&J.deferredInstallPrompt?"PWA_INSTALLABILITY_STATUS_CAN_BE_INSTALLED":"PWA_INSTALLABILITY_STATUS_UNKNOWN"),N.mainAppWebInfo.webDisplayMode=fa1(),N.mainAppWebInfo.isWebNativeShareAvailable=navigator&&navigator.share!==void 0):N.clientName==="TVHTML5"&&
(!_.K("web_lr_app_quality_killswitch")&&(J=_.Xw("LIVING_ROOM_APP_QUALITY"))&&(N.tvAppInfo=Object.assign(N.tvAppInfo||{},{appQuality:J})),J=_.Xw("LIVING_ROOM_CERTIFICATION_SCOPE"))&&(N.tvAppInfo=Object.assign(N.tvAppInfo||{},{certificationScope:J}));!_.K("web_populate_time_zone_itc_killswitch")&&(J=txx())&&(N.timeZone=J);(J=vAx())?N.experimentsToken=J:delete N.experimentsToken;N=Gb1();J=_.Vzd();J=(0,_.x8.getValues)(J.tokenJars);P.request=Object.assign({},P.request,{internalExperimentFlags:N,consistencyTokenJars:J});
!_.K("web_prequest_context_killswitch")&&(N=_.Xw("INNERTUBE_CONTEXT_PREQUEST_CONTEXT"))&&(P.request.externalPrequestContext=N);J=_.Kt();N=J.getFlag(58);J=J.get("gsml","");P.user=Object.assign({},P.user);N&&(P.user.enableSafetyMode=N);J&&(P.user.lockedSafetyMode=!0);_.K("warm_op_csn_cleanup")?I&&(z=_.TX())&&(P.clientScreenNonce=z):!z&&(z=_.TX())&&(P.clientScreenNonce=z);a&&(P.clickTracking={clickTrackingParams:a});if(a=_.DH("yt.mdx.remote.remoteClient_"))P.remoteClient=a;_.$h.getInstance().setLocationOnInnerTubeContext(P);
try{var f=L87(),A=f.bid;delete f.bid;P.adSignalsInfo={params:[],bid:A};for(var n=_.C(Object.entries(f)),F=n.next();!F.done;F=n.next()){var h=_.C(F.value),v=h.next().value,d=h.next().value;f=v;A=d;a=void 0;(a=P.adSignalsInfo.params)==null||a.push({key:f,value:""+A})}var W,l;if(((W=P.client)==null?void 0:W.clientName)==="TVHTML5"||((l=P.client)==null?void 0:l.clientName)==="TVHTML5_UNPLUGGED"){var q=_.Xw("INNERTUBE_CONTEXT");q.adSignalsInfo&&(P.adSignalsInfo.advertisingId=q.adSignalsInfo.advertisingId,
P.adSignalsInfo.advertisingIdSignalType="DEVICE_ID_TYPE_CONNECTED_TV_IFA",P.adSignalsInfo.limitAdTracking=q.adSignalsInfo.limitAdTracking)}}catch(m){_.Gx(m)}return P};
_.S3i=function(a){var z=new Xb(_.Xw("ONE_PICK_URL",""));z.urlParamMap_.set("hostId",a);(a=_.Xw("GAPI_LOCALE"))&&z.urlParamMap_.set("hl",a);(a=_.Xw("SESSION_INDEX"))&&z.urlParamMap_.set("authuser",a);(a=_.Xw("DELEGATED_SESSION_ID"))&&z.urlParamMap_.set("groupId",a);return z};
xUx=function(){var a=_.ab(),z=a.resolve(_.Tr);a=a.resolve(_.dY);return new idG(z,a)};
G4d=function(a){if(window.IntersectionObserver)return new va7(a,400);throw new TypeError("Yf");};
XsO=function(){var a=Hammer.TouchAction,z=a.prototype.preventDefaults;a.prototype.preventDefaults=function(I){var J=this.actions.indexOf("pan-down")>-1;if(!J)return z.call(this,I);if(!$UI){var r=I.srcEvent;I=I.direction;var P;if((P=this.manager)==null?0:P.session.prevented)r.preventDefault();else if(J&&I&Hammer.DIRECTION_DOWN)return this.preventSrc(r)}}};
TPM=function(a){if(!a||a.size===0)return Hammer.DIRECTION_ALL;if(a.size===2){if(a.has("up")&&a.has("down"))return Hammer.DIRECTION_VERTICAL;if(a.has("right")&&a.has("left"))return Hammer.DIRECTION_HORIZONTAL}if(a.size===1){if(a.has("up"))return Hammer.DIRECTION_UP;if(a.has("down"))return Hammer.DIRECTION_DOWN;if(a.has("right"))return Hammer.DIRECTION_RIGHT;if(a.has("left"))return Hammer.DIRECTION_LEFT}return Hammer.DIRECTION_ALL};
_.WbI=function(){return dU$?Promise.resolve(dU$):new Promise(function(a,z){var I=self.indexedDB.open("swpushnotificationsdb");I.onerror=z;I.onsuccess=function(){var J=I.result;if(J.objectStoreNames.contains("swpushnotificationsstore"))dU$=J,a(dU$);else return self.indexedDB.deleteDatabase("swpushnotificationsdb"),_.WbI()};
I.onupgradeneeded=oaG})};
oaG=function(a){a=a.target.result;a.objectStoreNames.contains("swpushnotificationsstore")&&a.deleteObjectStore("swpushnotificationsstore");a.createObjectStore("swpushnotificationsstore",{keyPath:"key"})};
DU1=function(a){var z=UU3(),I;return _.t(function(J){switch(J.nextAddress){case 1:return _.BP(J,2),J.yield(a.match(z,{cacheName:"yt-appshell-assets"}),4);case 4:I=J.yieldResult;_.p1(J,3);break;case 2:_.sk(J);case 3:return J.return(I)}})};
UU3=function(){var a=typeof ServiceWorkerGlobalScope!=="undefined"&&self instanceof ServiceWorkerGlobalScope?R6G.registration.scope:Lbm;a.endsWith("/")&&(a=a.slice(0,-1));return a+"/app_shell_home"};
lwp=function(a){a.map(function(z){return z.source}).join("|")};
_.ps$=function(a){return _.t(function(z){return z.return(DU1(a))})};
ws1=function(){var a=window.caches,z;return _.t(function(I){if(I.nextAddress==1)return I.yield(_.ps$(a),2);z=I.yieldResult;return I.return(!!z)})};
q3p=function(){_.t(function(a){if(a.nextAddress==1){if(mUm)return a.jumpTo(0);mUm=!0;if(_.K("enable_system_health_primes_monitoring"))return _.Ne(yMd,3E4),k47(),a.return();if(!(Math.random()<_.Ib("web_system_health_fraction")))return a.jumpTo(0);Mz1={heightPixels:screen.height,widthPixels:screen.width};Wh&&!isNaN(Wh.jsHeapSizeLimit)&&(Mz1.memoryTotalKbytes=String(Math.round(Wh.jsHeapSizeLimit/1E3)));window.devicePixelRatio&&(Mz1.devicePixelRatio=window.devicePixelRatio);return a.yield(cMi(),4)}_.Ne(yMd,
3E4);return a.yield(Y3E(),0)})};
cMi=function(){return _.t(function(a){if(a.nextAddress==1)return oX.intersectionObserverPresent="IntersectionObserver"in window,oX.serviceWorkerPresent="serviceWorker"in navigator,oX.webSharePresent="share"in navigator,oX.fullScreenApiPresent="exitFullscreen"in document||"webkitExitFullscreen"in document,oX.cacheStoragePresent="caches"in window,oX.storageEstimatePresent="storage"in navigator&&"estimate"in navigator.storage,oX.storagePersistPresent="storage"in navigator&&"persist"in navigator.storage,
oX.webkitTemporaryStoragePresent="webkitTemporaryStorage"in UM&&UM.webkitTemporaryStorage&&"queryUsageAndQuota"in UM.webkitTemporaryStorage,oX.promiseRejectionEventPresent=typeof PromiseRejectionEvent!=="undefined",a.yield(pdm(),2);oX.indexedDbPresent=a.yieldResult;oX.subtleCryptoPresent="crypto"in window&&"subtle"in window.crypto&&"importKey"in window.crypto.subtle;oX.broadcastChannelPresent="BroadcastChannel"in window;oX.webLocksApiPresent="locks"in navigator;window.matchMedia&&window.matchMedia("(color-gamut)").matches&&
(oX.supportsP3Color=window.matchMedia("(color-gamut: p3)").matches,oX.supportsRec2020Color=window.matchMedia("(color-gamut: rec2020)").matches);_.nu(a)})};
yMd=function(){var a=9E4+Math.random()*2E3;_.IO()>a||(_.K("enable_system_health_primes_monitoring")?k47():Y3E())};
Y3E=function(){var a;return _.t(function(z){if(z.nextAddress==1)return z.yield(e6O(),2);a=z.yieldResult;_.x0("systemHealthCaptured",a);_.nu(z)})};
k47=function(){var a={metric:{}},z=aUI();z.networkEvents.length&&(a.metric.networkEvents=jk0(z));_.x0("systemHealthCaptured",a)};
e6O=function(){var a,z,I,J,r,P,N,u,E,O;return _.t(function(f){switch(f.nextAddress){case 1:a={viewportHeightPixels:Math.max(document.documentElement?document.documentElement.clientHeight||0:0,window.innerHeight||0),viewportWidthPixels:Math.max(document.documentElement?document.documentElement.clientWidth||0:0,window.innerWidth||0)};z=window.screen;_.K("enable_is_extended_monitoring")&&z&&"isExtended"in z&&(a.isExtended=!!z.isExtended);I={metric:{staticContext:Mz1,dynamicContext:a,webMetric:zPM,webApiSupport:oX}};
if(J=_.TX())I.csn=J;Wh&&(I.metric.webMetric.currentHeapKbytes=Math.round(Wh.usedJSHeapSize/1E3));window.matchMedia&&(I.metric.dynamicContext.hasHoverSupport=window.matchMedia("(any-hover: hover)").matches,I.metric.dynamicContext.hasFinePointer=window.matchMedia("(any-pointer: fine)").matches,I.metric.dynamicContext.hasCoarsePointer=window.matchMedia("(any-pointer: coarse)").matches);if(!("getBattery"in UM&&typeof UM.getBattery==="function")){f.jumpTo(2);break}return f.yield(UM.getBattery(),3);case 3:if(r=
f.yieldResult)I.metric.dynamicContext.chargingStatus=r.charging?"CHARGING_AC":"CHARGING_INACTIVE";case 2:"onLine"in navigator&&(I.metric.dynamicContext.networkCoarseState=navigator.onLine?0:2);if(oX.storageEstimatePresent)return f.yield(navigator.storage.estimate(),8);if(!oX.webkitTemporaryStoragePresent){f.jumpTo(5);break}return f.yield(IUm(),7);case 7:P=f.yieldResult;f.jumpTo(5);break;case 8:P=f.yieldResult;case 5:return I.metric.dynamicContext.deviceStorageQuotaMbytes=((N=P)==null?0:N.quota)?String(Math.round(P.quota/
1048576/10)*10):"-1",I.metric.dynamicContext.deviceStorageUsageMbytes=((u=P)==null?0:u.usage)?String(Math.round(P.usage/1048576/10)*10):"-1",E=I.metric.dynamicContext,f.yield(ws1(),9);case 9:return E.hasAppShell=f.yieldResult,O=aUI(),O.networkEvents.length&&(I.metric.networkEvents=jk0(O)),f.return(I)}})};
IUm=function(){return new Promise(function(a){var z;oX.webkitTemporaryStoragePresent&&(z=UM.webkitTemporaryStorage)!=null&&z.queryUsageAndQuota?UM.webkitTemporaryStorage.queryUsageAndQuota(function(I,J){a({usage:I,quota:J})}):a(void 0)})};
_.Da=function(a){a&=16777215;a=[(a&16711680)>>16,(a&65280)>>8,a&255];return Jrm(a[0],a[1],a[2])};
_.RX=function(a){a=[(a&16711680)>>>16,(a&65280)>>>8,a&255,(a&4278190080)>>>24];var z=_.rrp(a,function(I){return I==(I&255)});
a[3]=(a[3]/255).toFixed(3);if(!z)throw Error("Zf`"+a.join(","));return"rgba("+a.join(",")+")"};
_.POG=function(a){return[(a&16711680)>>>16,(a&65280)>>>8,a&255]};
_.ZOi=function(a){a=a.map(function(z){z/=255;return z<=.03928?z/12.92:Math.pow((z+.05)/1.05,2.4)});
return a[0]*.2126+a[1]*.7152+a[2]*.0722};
LH=function(a,z){a=_.POG(a);return"rgba("+a[0]+", "+a[1]+", "+a[2]+", "+z+")"};
_.COx=function(){try{return!!self.localStorage}catch(a){return!1}};
Ee1=function(){if(NDd())_.Xd(Error("$f"));else{var a=document.createElement("iframe");a.style.display="none";var z=z===void 0?window.location.href:z;var I=_.$k(_.Xw("PERSIST_IDENTITY_IFRAME_URL"));z=I?I:(new URL(z)).host.indexOf("studio")===0?_.Jz(tn$,"persist_identity"):_.Jz(uDG,"persist_identity");_.JyO(a,1,z);a.id="persist_identity";var J;(J=document.body)==null||J.appendChild(a)}};
NDd=function(){var a=BDx;a||(a=document.querySelector("#persist_identity"));return a};
ge0=function(){var a=!1;try{a=!!window.sessionStorage.getItem("session_logininfo")}catch(z){a=!0}return(_.Xw("INNERTUBE_CLIENT_NAME")==="WEB"||_.Xw("INNERTUBE_CLIENT_NAME")==="WEB_CREATOR")&&a};
OOG=function(a,z){if(!ge0())return!1;z||(z=_.Xw("LOGIN_INFO"));return z?(a.session_logininfo=z,!0):!1};
Ar3=function(a,z){a=a===void 0?!1:a;if((z===void 0||!z)&&fU3!=="IDENTITY_STICKINESS_INITIAL_STATE_ENUM_UNKNOWN")if(window.sessionStorage.getItem("from_switch_account"))window.sessionStorage.removeItem("from_switch_account");else if(_.TZ("LOG_STICKINESS",!1)){z=_.TX();var I=_.XZ(),J={identityStickinessData:{initialState:fU3}};z&&I&&_.M$(z,I,J)}if(z=NDd())if(I=z.src?(new URL(z.src)).origin:"*",a){var r;(r=z.contentWindow)==null||r.postMessage({action:"clear"},I)}else if(!(Number(window.sessionStorage.getItem("stickiness_reload"))>=
2)&&(a=window.sessionStorage.getItem("session_logininfo"))){var P;(P=z.contentWindow)==null||P.postMessage({loginInfo:a},I)}};
_.lk=function(a){a=a===void 0?!0:a;try{window.sessionStorage.removeItem("stickiness_reload"),window.sessionStorage.removeItem("session_logininfo"),_.$S("LOGIN_INFO",""),a&&window.sessionStorage.setItem("from_switch_account","1"),Ar3(!0,a)}catch(z){}};
skm=function(a){a&&(a.startsWith("https://accounts.google.com/AddSession")?_.lk():a.startsWith("https://accounts.google.com/ServiceLogin")?_.lk():a.startsWith("https://myaccount.google.com")&&_.Rf(a).getPath().endsWith("/youtubeoptions")&&_.lk())};
pH=function(a,z){skm(a);if(_.TZ("LOGGED_IN",!0)&&ge0()){var I=Zem(a);I==null&&(I={});OOG(I,z)&&_.el(a,I)}};
ned=function(){function a(z){for(z=z.target;z&&z.nodeName!=="A";)if(z=z.parentNode,!(z&&z instanceof HTMLElement))return;if(z&&!z.hasAttribute("download")&&z.getAttribute("rel")!=="external"&&z.href)return z.href}
document.addEventListener("mousedown",function(z){z.button!==0&&(z=a(z))&&pH(z)});
document.addEventListener("click",function(z){(z=a(z))&&pH(z)})};
HO$=function(){var a=new KVx;try{if(_.TZ("LOGGED_IN",!0)){try{window.sessionStorage.setItem("canUseSessionStorage","true"),window.sessionStorage.removeItem("canUseSessionStorage")}catch(u){a.increment(5,!1);return}if(_.Xw("LOGIN_INFO")){var z=FVM?FVM:window.location;_.Xw("INNERTUBE_CLIENT_NAME")==="WEB_CREATOR"&&Ee1();var I=Zem(z.href);I==null&&(I={});var J=I.session_logininfo,r=Number(window.sessionStorage.getItem("stickiness_reload")),P=J===_.Xw("LOGIN_INFO");if(!window.sessionStorage.getItem("session_logininfo")||
r>=2||P)r>=2?a.increment(2,P):P?a.increment(7,P):window.sessionStorage.getItem("session_logininfo")||(a.increment(3,P),fU3="IDENTITY_STICKINESS_INITIAL_STATE_ENUM_NEW_TAB"),window.sessionStorage.setItem("session_logininfo",_.Xw("LOGIN_INFO")),window.sessionStorage.removeItem("stickiness_reload");else if(window.sessionStorage.getItem("session_logininfo"))if(_.Xw("LOGIN_INFO")===window.sessionStorage.getItem("session_logininfo"))a.increment(4,P),window.sessionStorage.removeItem("stickiness_reload");
else if(r<2){window.sessionStorage.setItem("stickiness_reload",String(r+1));var N=z.href;N=_.a_(N,"sttick");pH(N,window.sessionStorage.getItem("session_logininfo"));N=_.ms(N,{sttick:r});a.increment(r,P);_.tdx(z,N)}}else a.increment(6,!1)}else _.lk(!1)}catch(u){}};
_.wY=function(a,z,I,J,r){z=z===void 0?{}:z;I=I===void 0?"":I;J=J===void 0?window:J;a=_.yO(a,z);pH(a);I=_.XG(a+I,r);_.tdx(J.location,I)};
_.bOE=function(a,z,I,J,r){r=r===void 0?!1:r;I&&_.el(a,I);I=_.XG(a);var P=_.ij(I);a!=P&&_.RL(Error("ag`"+a));a=P;z=z||ld(a).toString(36);try{if(r)return r=a,r=nN7(r),pH(r),_.wO(window,r,z,"attributionsrc")}catch(N){_.oL(N)}pH(a);return _.wO(window,I,z,J)};
hPx=function(a){if(a.urlEndpoint){if(a=_.wq(a.urlEndpoint.url),a.adurl)return qY(a.adurl)}else if(a.watchEndpoint)return"//www.youtube.com/watch?v="+a.watchEndpoint.videoId;return null};
VnO=function(a){if(!a||!a.reportingPings)return null;var z={};a.reportingPings.forEach(function(I){I.pingType in z?z[I.pingType].push(I.url):z[I.pingType]=[I.url]});
return{adpings:fFO(z)}};
_.m1=function(){return{isShellLoad:_.TZ("IS_SHELL_LOAD",!1)}};
SjM=function(){navigator.serviceWorker.getRegistrations().then(function(a){a.forEach(Qk3)})};
Qk3=function(a){a&&_.iOi(xnx,a.scope)};
_.iOi=function(a,z){z={scope:z||_.rM("service_worker_scope")||"/"};return navigator.serviceWorker.register(_.bj(a),z)};
yK=function(a,z,I,J){if(z&&z.serializedYpcCujLoggingParams){if(I){var r={};r.transactionErrorType=I;J&&(r.errorMessage=J);z.ypcCujLoggingClientPayload={ypcAcquisitionCujLoggingClientPayload:{ypcAcquisitionDebugLoggingParams:r}}}I={};I.ypcCujContext=z;a=_.Bh("FLOW_EVENT_NAMESPACE_YPC_ACQUISITION",a,I);_.OM(_.fH(),a,"FLOW_TYPE_YPC_ACQUISITION")}};
_.veO=function(a,z,I,J){var r={};r.serializedTransactionFlowLoggingParams=z;I&&(r.errorType=I);J&&(r.errorMessage=J);_.x0(a,r);_.va()};
_.GD3=function(a){a&&_.veO("transactionFlowStarted",a)};
_.$n3=function(a){a&&_.veO("transactionFlowCancelled",a)};
_.kh=function(a,z,I){z&&_.veO("transactionFlowFailed",z,a,I)};
XIp=function(a){var z=document.querySelector("ytd-app")||document.querySelector("ytmusic-app");z&&(z.inert=a)};
_.M1=function(){this.megabloxUrl_=null};
_.ch=function(a){try{var z=TDi==null?void 0:TDi.composedPath(a)}catch(I){z=a.composedPath?a.composedPath():[]}return z&&z.length>0?z:a.composedPath?a.composedPath():[]};
_.Yh=function(a){return _.ch(a)[0]};
_.q1=function(a){if(!(a instanceof Element))return null;a=a.classList?Array.from(a.classList):void 0;if(!a)return null;var z=a.indexOf("style-scope");return z>-1&&z+1<a.length?a[z+1]:null};
et=function(a){if(!(a instanceof HTMLElement))return null;var z=a&&(a.$$||a.polymerController)?a.tagName.toLowerCase():null;return z?z:_.q1(a)};
dnd=function(a,z){return a.replace(/[^a-z]*[^\s]+/g,function(I){return I+".style-scope."+z})};
WV$=function(a,z){return z?a.split(",").map(function(I){return dnd(I.trim(),z)}).join(", "):a};
_.aQ=function(a){var z,I,J,r;return(r=(J=(I=(z=a.root)!=null?z:a.shadowRoot)!=null?I:a.__shady_native_shadowRoot)!=null?J:a.__shady_shadowRoot)!=null?r:a};
jc=function(a){return a instanceof ShadowRoot?ShadowRoot:a instanceof DocumentFragment?DocumentFragment:a instanceof Document?Document:HTMLElement};
oeG=function(a){var z,I,J;return(J=(I=(z=a.parentElement)!=null?z:a.__shady_native_parentElement)!=null?I:a.__shady_parentElement)!=null?J:null};
Un0=function(a){var z,I,J;return(J=(I=(z=a.parentNode)!=null?z:a.__shady_native_parentNode)!=null?I:a.__shady_parentNode)!=null?J:null};
DnI=function(a){var z,I,J;return(J=(I=(z=a.__shady_parentNode)!=null?z:a.__shady_native_parentNode)!=null?I:a.parentNode)!=null?J:null};
RP1=function(a){var z,I;return(I=(z=Un0(a))!=null?z:a.host)!=null?I:null};
LV0=function(a){var z,I,J;return(J=(I=(z=a.nextSibling)!=null?z:a.__shady_native_nextSibling)!=null?I:a.__shady_nextSibling)!=null?J:null};
lU$=function(a){var z,I,J;return(J=(I=(z=a.previousSibling)!=null?z:a.__shady_native_previousSibling)!=null?I:a.__shady_previousSibling)!=null?J:null};
pI7=function(a){var z,I,J;return(J=(I=(z=a.nextElementSibling)!=null?z:a.__shady_native_nextElementSibling)!=null?I:a.__shady_nextElementSibling)!=null?J:null};
wIi=function(a){var z,I,J;return(J=(I=(z=a.previousElementSibling)!=null?z:a.__shady_native_previousElementSibling)!=null?I:a.__shady_previousElementSibling)!=null?J:null};
mn0=function(a){var z,I,J;return new Set([].concat(_.ih((z=a.children)!=null?z:[]),_.ih((I=a.__shady_native_children)!=null?I:[]),_.ih((J=a.__shady_children)!=null?J:[])))};
yr0=function(a){var z,I,J;return new Set([].concat(_.ih((z=a.childNodes)!=null?z:[]),_.ih((I=a.__shady_native_childNodes)!=null?I:[]),_.ih((J=a.__shady_childNodes)!=null?J:[])))};
kDO=function(a){if(!a)return null;var z=_.q1(a);if(!z){var I;return(I=Node.prototype.getRootNode)==null?void 0:I.call(a)}z=z.toUpperCase();for(a=oeG(a);a&&a.tagName!==z;)a=oeG(a);return a?_.aQ(a):null};
Mn0=function(a){for(;a&&!(a instanceof HTMLElement);)a=RP1(a);return a};
cr0=function(a){var z=Mn0(a);return a===z?_.q1(a):z?et(z):null};
Yjp=function(a){return(a=Mn0(a))?et(a):null};
qj0=function(a){if(a instanceof Comment)return!1;if(a instanceof Text){var z,I;if(((I=(z=a.textContent)==null?void 0:z.trim())!=null?I:"")==="")return!1}return!0};
zz=function(a,z,I){var J=z(a);for(I=I===void 0?Yjp(a):I;J&&(cr0(J)!==I||!qj0(J));)a=J,J=z(a);return J};
ePO=function(a,z,I){if(!z)return null;a=Yjp(a);return cr0(z)===a&&qj0(z)?z:zz(z,I,a)};
aXE=function(a){return zz(a,DnI,_.q1(a))};
j11=function(a){return zz(a,pI7)};
zqm=function(a){return zz(a,LV0)};
IXi=function(a){return zz(a,wIi)};
J0E=function(a){return zz(a,lU$)};
r07=function(a){return ePO(a,a.firstChild||a.__shady_native_firstChild||a.__shady_firstChild||null,LV0)};
PbM=function(a){var z,I,J;var r=(J=(I=(z=a.firstElementChild)!=null?z:a.__shady_native_firstElementChild)!=null?I:a.__shady_firstElementChild)!=null?J:null;return ePO(a,r,pI7)};
Z0m=function(a){var z,I,J;var r=(J=(I=(z=a.lastChild)!=null?z:a.__shady_native_lastChild)!=null?I:a.__shady_lastChild)!=null?J:null;return ePO(a,r,lU$)};
CbG=function(a){var z,I,J;var r=(J=(I=(z=a.lastElementChild)!=null?z:a.__shady_native_lastElementChild)!=null?I:a.__shady_lastElementChild)!=null?J:null;return ePO(a,r,wIi)};
NW0=function(a){var z=Yjp(a);return Array.from(yr0(a)).filter(function(I){return cr0(I)===z})};
tjM=function(a){var z=et(a);return Array.from(mn0(a)).filter(function(I){return _.q1(I)===z})};
_.IQ=function(a,z,I){if(a instanceof HTMLElement&&_.q1(a)===I){var J=Array.from(a.classList).indexOf("style-scope");if(J===-1)a.classList.add("style-scope"),a.classList.add(z);else if(!(J+1>=a.classList.length)){J=a.classList[J+1];var r,P;a==null||(r=a.classList)==null||(P=r.replace)==null||P.call(r,J,z)}}if(a instanceof HTMLElement||a instanceof DocumentFragment)for(r=_.C(mn0(a)),P=r.next();!P.done;P=r.next())_.IQ(P.value,z,I);return a};
J3=function(a,z){if(a instanceof HTMLElement&&_.q1(a)===z){var I=Array.from(a.classList).indexOf("style-scope");I===-1||I+1>=a.classList.length||a.classList.remove("style-scope",a.classList[I+1])}if(a instanceof HTMLElement||a instanceof DocumentFragment){I=_.C(a.children);for(var J=I.next();!J.done;J=I.next())J3(J.value,z)}return a};
_.uQ0=function(a,z){return jc(a).prototype.appendChild.call(a,z)};
Etx=function(a,z){if(a===z)return!0;a=yr0(a);return Array.from(a).some(function(I){return Etx(I,z)})};
_.PK=function(a,z){if(a instanceof rz)return a;(z==null?0:z.ignoreOwnerDocument)&&!Object.getOwnPropertyDescriptor(a,"ownerDocument")&&Object.defineProperty(a,"ownerDocument",{get:function(){return window.document}});
return new rz(a)};
gtx=function(){var a=rz.prototype,z=[].concat(_.ih(BWx?[]:["getRootNode"]),["setAttribute","removeAttribute"]);z=_.C(z);for(var I=z.next(),J={};!I.done;J={method$jscomp$51:void 0},I=z.next())J.method$jscomp$51=I.value,a[J.method$jscomp$51]=function(r){return function(){return this.host[r.method$jscomp$51].apply(this.host,arguments)}}(J)};
fX7=function(){var a=rz.prototype,z=[].concat(_.ih(BWx?[]:"cloneNode contains appendChild insertBefore removeChild replaceChild".split(" ")),_.ih(O01?[]:["querySelector","querySelectorAll"]));z=_.C(z);for(var I=z.next(),J={};!I.done;J={method$jscomp$52:void 0},I=z.next())J.method$jscomp$52=I.value,a[J.method$jscomp$52]=function(r){return function(){return this.root[r.method$jscomp$52].apply(this.root,arguments)}}(J)};
nt7=function(){var a=rz.prototype,z=[].concat(_.ih(A0x?[]:["nextSibling","previousSibling","nextElementSibling","previousElementSibling"]),_.ih(s1$?[]:["parentNode"]));z=_.C(z);for(var I=z.next(),J={};!I.done;J={prop$jscomp$62:void 0},I=z.next())J.prop$jscomp$62=I.value,Object.defineProperty(a,J.prop$jscomp$62,{get:function(r){return function(){return this.host[r.prop$jscomp$62]}}(J),
configurable:!0})};
H01=function(){var a=rz.prototype,z=["activeElement"].concat(_.ih(A0x?[]:["firstChild","firstElementChild","lastElementChild","childNodes"]),_.ih(KBI?[]:["children"]),_.ih(FBM?[]:["lastChild"]));z=_.C(z);for(var I=z.next(),J={};!I.done;J={prop$jscomp$63:void 0},I=z.next())J.prop$jscomp$63=I.value,Object.defineProperty(a,J.prop$jscomp$63,{get:function(r){return function(){return this.root[r.prop$jscomp$63]}}(J),
configurable:!0})};
b0G=function(){for(var a=rz.prototype,z=_.C(["innerHTML","textContent"]),I=z.next(),J={};!I.done;J={prop$jscomp$64:void 0},I=z.next())J.prop$jscomp$64=I.value,Object.defineProperty(a,J.prop$jscomp$64,{get:function(r){return function(){return this.root[r.prop$jscomp$64]}}(J),
set:function(r){return function(P){this.root[r.prop$jscomp$64]=P}}(J),
configurable:!0})};
hq0=function(a){var z=rz.prototype;a=_.C(Object.entries(a));for(var I=a.next(),J={};!I.done;J={fn$jscomp$392:void 0},I=a.next()){var r=_.C(I.value);I=r.next().value;r=r.next().value;J.fn$jscomp$392=r;z[I]=function(P){return function(){return P.fn$jscomp$392.apply(null,[this.host.node||this.host].concat(_.ih(arguments)))}}(J)}};
Q1m=function(){for(var a=rz.prototype,z=_.C(Object.entries(VjG)),I=z.next(),J={};!I.done;J={fn$jscomp$393:void 0},I=z.next()){var r=_.C(I.value);I=r.next().value;r=r.next().value;J.fn$jscomp$393=r;Object.defineProperty(a,I,{get:function(P){return function(){return P.fn$jscomp$393.apply(null,[this.host.node||this.host].concat(_.ih(arguments)))}}(J),
configurable:!0})}};
_.ZL=function(a){return a instanceof SuG||a instanceof Document?a:new SuG(a)};
i03=function(){for(var a=SuG.prototype,z=_.C("setAttribute removeAttribute cloneNode contains appendChild insertBefore getRootNode removeChild replaceChild querySelector querySelectorAll".split(" ")),I=z.next(),J={};!I.done;J={method$jscomp$53:void 0},I=z.next())J.method$jscomp$53=I.value,a[J.method$jscomp$53]=function(r){return function(){return HTMLElement.prototype[r.method$jscomp$53].call.apply(HTMLElement.prototype[r.method$jscomp$53],[this.node].concat(_.ih(arguments)))}}(J)};
x8x=function(){for(var a=SuG.prototype,z=_.C("firstChild lastChild firstElementChild lastElementChild childNodes children parentNode nextSibling previousSibling nextElementSibling previousElementSibling classList innerHTML textContent".split(" ")),I=z.next(),J={};!I.done;J={prop$jscomp$65:void 0},I=z.next())J.prop$jscomp$65=I.value,Object.defineProperty(a,J.prop$jscomp$65,{get:function(r){return function(){var P;return(P=this.node["__shady_native_"+r.prop$jscomp$65])!=null?P:this.node[r.prop$jscomp$65]}}(J),
configurable:!0})};
_.CM=function(a,z,I){I===void 0&&(I=!a.classList.contains(z));I?a.classList.add(z):a.classList.remove(z)};
_.N3=function(a,z,I){I===void 0&&(I=!a.hasAttribute(z));if(z==="class")throw Error("eg");I?_.ZL(a).setAttribute(z,""):_.ZL(a).removeAttribute(z)};
vtE=function(a){return(a.localName!=="slot"?[]:(0,_.t3)(a).assignedNodes({flatten:!0})).filter(function(z){return z.nodeType===Node.ELEMENT_NODE})};
_.GqI=function(a){return(a=_.PK(a).querySelector("slot"))&&a.localName==="slot"?vtE(a):[]};
_.uK=function(a,z){window.ShadyCSS&&window.ShadyCSS.styleSubtree(a,z)};
E8=function(a,z){var I=z.bind(a);return function(J){I(J,J.detail)}};
_.BK=function(a,z){var I=$8G.get(a);I||(I=new WeakMap,$8G.set(a,I));if(I.has(z))return I.get(z);if(_.K("web_fi_listen_disable_bound_fn_helper")){var J=z.bind(a);a=function(r){J(r,r==null?void 0:r.detail)}}else a=E8(a,z);
I.set(z,a);return a};
d81=function(a,z){XX0(a);a.created[TW7].push(z)};
XX0=function(a){if(!a.created||!a.created[TW7]){var z=a.created,I=z?[z]:[];a.created=function(){for(var J=_.C(I),r=J.next();!r.done;r=J.next())r.value.apply(this)};
a.created[TW7]=I}};
WBx=function(a){return function(){var z=_.dO.apply(0,arguments);return function(I,J,r){a.apply(null,_.ih(z))(I,J,r)}}};
otG=function(){return function(){var a=_.dO.apply(0,arguments);return function(z,I,J){hCG.apply(null,_.ih(a))(z,I,J)}}};
_.Q=function(a){return otG()(a)};
_.S=function(){return WBx(ix$).apply(null,_.ih(_.dO.apply(0,arguments)))};
_.gz=function(a){return _.K("pbcm_fi_listen_decorators")?U8p(a):WBx(Qc3)(a)};
U8p=function(a){return function(z,I){d81(z,function(){var J=this[I],r=_.K("web_fi_listen_disable_bound_fn_helper")?function(P){J(P,P.detail)}.bind(this):E8(this,J);
D87.has(a)?Xk(this.hostElement,a,r):this.hostElement.addEventListener(a,r)})}};
_.O8=function(){return WBx(StI).apply(null,_.ih(_.dO.apply(0,arguments)))};
_.x=function(a){a=a===void 0?{}:a;return WBx(VNp)(a)};
_.fM=function(a){if(a.hostElement&&a!==a.hostElement){var z=_.Q$(a.hostElement);z=a.renderIdom?z:z.shadowRoot}z||(a=a.root,z=a instanceof Node?_.Q$(a):null);return z};
_.A3=function(a){return Rq7?LBM(a):function(z,I){Object.defineProperty(z,I,{get:function(){var J;return(J=_.fM(this))==null?void 0:J.querySelector(a)},
enumerable:!0,configurable:!0})}};
LBM=function(a){return function(z,I){Object.defineProperty(z,I,{get:function(){var J,r=(J=_.PK(this.hostElement))==null?void 0:J.querySelector(a);if(r)return r;var P;return(P=_.fM(this))==null?void 0:P.querySelector(a)},
enumerable:!0,configurable:!0})}};
_.s8=function(a){return Rq7?lX$(a):function(z,I){Object.defineProperty(z,I,{get:function(){var J;return(J=_.fM(this))==null?void 0:J.querySelectorAll(a)},
enumerable:!0,configurable:!0})}};
lX$=function(a){return function(z,I){Object.defineProperty(z,I,{get:function(){var J,r=(J=_.PK(this.hostElement))==null?void 0:J.querySelectorAll(a);if(r==null?0:r.length)return r;var P;return(P=_.fM(this))==null?void 0:P.querySelectorAll(a)},
enumerable:!0,configurable:!0})}};
pX$=function(a){return function(z){if(![_.aA,_.G].includes(Object.getPrototypeOf(z.prototype).constructor))throw Error("fg");fu7(Object.assign({},typeof a!=="string"?a:{is:a,notifyObserversOnUndefined:!0},{disableInheritanceCheck:!0,disableEnforceFastDefaultValuesCheck:!0}))(z)}};
_.KM=function(){var a=a===void 0?{}:a;return function(z){if(![jl,_.nM].includes(Object.getPrototypeOf(z.prototype).constructor))throw Error("gg");ATp(Object.assign({},a,{disableInheritanceCheck:!0}))(z)}};
m8G=function(a,z){wXI[a]!=null||(wXI[a]=new Set);wXI[a].add(z)};
_.Fe=function(){var a=_.O8.apply(null,_.ih(_.dO.apply(0,arguments)));return function(z,I){m8G(z.is,I);a(z,I)}};
h3=function(a,z,I){if(HK(a)&&!y00.has(z)){z=z.replace(/^JSC\$[\d]+_/,"");z=z.replace(/\.\d+(\.|$)/g,function(P,N){return".#"+N});
bK[a]!=null||(bK[a]={});var J,r;(J=bK[a])[r=z]!=null||(J[r]=new Set);bK[a][z].has(I)||(bK[a][z].add(I),_.x0("polymerPropertyAccessEvent",{componentName:a,propertyName:z,accessType:I}))}};
kqI=function(){return _.K("polymer_property_access_logging_debug")||_.K("polymer_enable_property_access_logging")};
HK=function(a){if(_.K("polymer_property_access_logging_debug"))return!0;if(!_.K("polymer_enable_property_access_logging"))return!1;Mjp||(Mjp=Date.now());return(ld(a)+Mjp)%100<_.Ib("polymer_property_access_logging_percent")};
c03=function(a,z){return HK(z)&&a.hostElement.loggingStatus?new Proxy(a,{get:function(I,J,r){if(I.hostElement.loggingStatus.bypassProxyController)return I[J];I.hostElement.loggingStatus.isExternalGet=!0;var P=I[J];I.hostElement.loggingStatus.isExternalGet=!1;if(P instanceof Function)return function(){var N=_.dO.apply(0,arguments);try{return I.hostElement.loggingStatus.currentExternalCall=J,h3(z,J,"PROPERTY_ACCESS_CALL_EXTERNAL_CONTROLLER"),P.apply(this===r?I:this,N)}finally{I.hostElement.loggingStatus.currentExternalCall=
void 0}};
h3(z,J,"PROPERTY_ACCESS_GET_EXTERNAL_CONTROLLER");return P},
set:function(I,J,r){if(I.hostElement.loggingStatus.bypassProxyController)return I[J]=r,!0;I.hostElement.loggingStatus.isRendererStamper?h3(z,J,"PROPERTY_ACCESS_SET_EXTERNAL_DECLARATIVE"):I.hostElement.loggingStatus.isDeclarativeExternal||h3(z,J,"PROPERTY_ACCESS_SET_EXTERNAL_CONTROLLER_IMPERATIVE");try{I.hostElement.loggingStatus.currentExternalSet=J,I[J]=r}finally{I.hostElement.loggingStatus.currentExternalSet=void 0}return!0}}):a};
Yu0=function(a,z){a&&a.loggingStatus&&!a.loggingStatus.isDeclarativeExternal&&!a.loggingStatus.isExternalGet&&a.loggingStatus.currentExternalSet!==z&&h3(a.tagName.toLowerCase(),z,"PROPERTY_ACCESS_GET_INTERNAL")};
Va=function(a,z,I){a&&(I||a.loggingStatus&&!a.loggingStatus.isInitializing&&!a.loggingStatus.isDefiningPropertyAccessor&&a.loggingStatus.currentExternalSet!==z)&&h3(a.tagName.toLowerCase(),z,"PROPERTY_ACCESS_SET_INTERNAL")};
qux=function(){return{_definePropertyAccessor:function(a,z){var I=this,J=I.hostElement.loggingStatus;J&&(J.isDefiningPropertyAccessor=!0);var r=I[a];r!==void 0&&(I.__data?I._setPendingProperty(a,r):(I.__dataProto!=null||(I.__dataProto={}),I.__dataProto[a]=r));J&&(J.isDefiningPropertyAccessor=!1);Object.defineProperty(this,a,{get:function(){Yu0(I.hostElement,a);return this.__data[a]},
set:function(P){z||this._setPendingProperty(a,P,!0)&&this._invalidateProperties()}})},
created:function(){var a=this._setPendingProperty.bind(this);this._setPendingProperty=function(z,I,J){Va(this.hostElement,z);return a.apply(this,[z,I,J])}}}};
eqi=function(a){kqI()&&_.Q(Qa.prototype)(a.prototype,"__templateBindingLoggingBehavior")};
a0m=function(a,z){if(z.resolvedFactories.length!==a.resolvedFactories.length)return!0;z=_.C(z.resolvedFactories.entries());for(var I=z.next();!I.done;I=z.next()){var J=_.C(I.value);I=J.next().value;J=J.next().value;if(J.providerClass){if(J.providerClass!==a.resolvedFactories[I].providerClass)return!0}else if(J.providerValue){if(J.providerValue!==a.resolvedFactories[I].providerValue)return!0}else if(J.factory!==a.resolvedFactories[I].factory)return!0}return!1};
jM0=function(a,z){a=_.C(a);for(var I=a.next();!I.done;I=a.next())if(I=I.value,I.constructor===Array)jM0(I,z);else{var J=z;J.has(I)||(I.inject&&J.add(I),I.behaviors&&jM0(I.behaviors,J))}};
xi=function(a,z){var I=a[z];a[z]=function(){var J=_.dO.apply(0,arguments);this.initializeInjection&&this.initializeInjection();if(I)return I.apply(this,J)}};
rLm=function(){_.vK.Class=function(I,J){I=zH1(I,J);xi(I.prototype,"created");return I};
xi(Gz.prototype,"_initializeProperties");xi(_.$i.prototype,"_initializeProperties");if(I0M)xi(JLm,"created");else{var a=function(){xi(customElements.get("tp-yt-iron-list").prototype,"_initializeProperties")};
if(customElements.get("tp-yt-iron-list"))a();else{var z=customElements.define;customElements.define=function(I,J,r){z.call(customElements,I,J,r);I==="tp-yt-iron-list"&&(a(),customElements.define=z)}}}};
ZA0=function(a,z){a.prototype.behaviors=a.prototype.behaviors||[];a.prototype.behaviors.unshift(P$E.InjectBehavior);a.prototype.provide=z};
_.dz=function(a){return function(z){if(!a.disableElementRegistration){a.noInjection||ZA0(z,a.providers);var I=z.prototype;I.__templateHelpers||hCG(Xe.prototype)(I,"__templateHelpers");I=a.is;C$m||(C$m=Date.now());(ld(I)+C$m)%100<_.Ib("polymer_log_prop_change_observer_percent")&&hCG(Tz.prototype)(z.prototype,"__propertyObserverObserver");z.prototype.behaviors=z.prototype.behaviors||[];z.prototype.behaviors.unshift(_.NtI.YtHostElementBehavior);eqi(z);pX$({is:a.is,notifyObserversOnUndefined:a.notifyObserversOnUndefined!==
!1,fastInit:a.fastInit,template:a.template,disableEnforceFastDefaultValuesCheck:!0})(z)}}};
_.U=function(a){return _.dz({is:a.is,template:a.template,disableElementRegistration:a.disableElementRegistration,cssBuildOptOut:a.cssBuildOptOut,notifyObserversOnUndefined:!1,noInjection:!0})};
EJI=function(a,z){if(t0d){a=new a;for(var I=_.C(Object.getOwnPropertyNames(a)),J=I.next();!J.done;J=I.next())J=J.value,z[J]=a[J];for(I=z;I&&I!==Object.prototype;I=Object.getPrototypeOf(I)){J=_.C(Object.getOwnPropertyNames(I));for(var r=J.next();!r.done;r=J.next())r=r.value,a.hasOwnProperty(r)||Object.defineProperty(a,r,u83(z,r))}}else a.apply(z)};
u83=function(a,z){return{get:function(){var I=a[z];return I instanceof Function?I.bind(a):I},
set:function(I){a[z]=I}}};
gJi=function(a,z){for(var I=a._noAccessors,J=_.C(Object.getOwnPropertyNames(a)),r=J.next();!r.done;r=J.next())if(r=r.value,!BtO.has(r))if(I)z[r]=a[r];else{var P=Object.getOwnPropertyDescriptor(a,r);P&&(P.configurable=!0,Object.defineProperty(z,r,P))}};
OAx=function(a,z,I){return function(J){if(I){var r=I();J.model=r}if(a[z])a[z](J,J.detail)}};
WK=function(a){var z=[];if(typeof a==="string")a.length>0&&z.push.apply(z,_.ih(a.split(".")));else{a=_.C(a);for(var I=a.next();!I.done;I=a.next())I=I.value,typeof I==="string"?z.push.apply(z,_.ih(I.split("."))):z.push(I)}return z};
f0I=function(a,z){if(z[z.length-1]!=="*"&&z[z.length-1]!=="splices"){for(var I=0;I<z.length;I++){if(!a)return;a=a[z[I]]}return a}};
ALE=function(a,z){if(a.length>z.length)return!1;for(var I=0;I<a.length;I++)if(a[I]!==z[I])return!1;return!0};
nJ1=function(a,z,I){if(z.type==="compute"){var J=z.getter.bind(I);var r=z.args}else J=function(){return I[z.method.methodName].apply(I,_.ih(_.dO.apply(0,arguments)))},r=z.method.args;
sM7(a,z.propertyKey,J,r,z.value)};
Fc3=function(a,z){if(z.readOnly){var I=Object.getOwnPropertyDescriptor(a.model,z.propertyKey);Object.defineProperty(a.model,z.propertyKey,{get:I.get,set:function(){}});
a.model[Kc0(z.propertyKey)]=I.set}};
HAG=function(a,z,I){if(I){var J=z.propertyKey,r=z.selector;z=[{type:"path",path:"reduxPropertiesRecomputeTrigger"}].concat(_.ih(z.selectorArgs.map(function(P){return{type:"path",path:P}})));
sM7(a,J,function(P){var N=_.dO.apply(1,arguments);return r.apply(null,[I.getState()].concat(_.ih(N)))},z)}};
hHd=function(a,z,I){var J=_.sX(z.propertyKey)+"-changed";bAE(a,function(r){var P={value:r.value,queueProperty:!0};r.path.split(".").length>1&&(P.path=r.path);I.dispatchEvent(new CustomEvent(J,{detail:P}))},[{type:"wildcard",
path:z.propertyKey}])};
V0M=function(a,z,I){bAE(a,function(){I[z.method.methodName].apply(I,_.ih(_.dO.apply(0,arguments)))},z.method.args)};
Kc0=function(a){return"_set"+(a.charAt(0).toUpperCase()+a.slice(1))};
QMM=function(){var a,z=Q3(function(I){a=I},!1);
return[a,z]};
GvM=function(a){a=a.trim().replace(SAi,",").replace(iAm,"$1");var z=a[0];z==="-"&&(z=a[1]);if(z>="0"&&z<="9")return{type:"literal",value:Number(a)};if(z==="'"||z==='"')return{type:"literal",value:a.slice(1,-1)};if(z=a.match(xiI)){z=z[1];var I=vJE[z];if(I)return{type:I,path:a.slice(0,-(z.length+1))}}return{type:"path",path:a}};
diM=function(a){var z=a.match($iG);if(z)return a={methodName:z[1],args:XM1},z[2].trim()&&(z=z[2].replace(Tt1,"&comma;").split(","),a.args=z.map(GvM)),a};
Wc$=function(a,z,I,J){J=J===void 0?!1:J;z=_.sX(z);var r=n6;r&&(I=r(I,z,"attribute",a));oQ(a,I,z,J)};
oQ=function(a,z,I,J){z=oJM(z,J===void 0?!1:J);z===void 0?a.removeAttribute(I):a.setAttribute(I,z)};
oJM=function(a,z){switch(typeof a){case "object":case "function":if(a instanceof Date)return a.toString();if(a){if((z===void 0?0:z)&&!_.K("polymer_reflect_objects_as_boolean_killswitch"))return a?"":void 0;z=window.trustedTypes?window.trustedTypes.isHTML(a)||window.trustedTypes.isScript(a)||window.trustedTypes.isScriptURL(a):void 0;if(z)return a;try{return JSON.stringify(a)}catch(I){_.Xd(Error("Cg`"+a))}}break;case "boolean":return a?"":void 0;default:return a!==null&&a!==void 0?a.toString():void 0}};
Uim=function(a){if(a===void 0)throw Error("Dg");return a};
pMG=function(a,z,I,J){var r=DiG(J);if(r.length){J=I;var P="property";RH1.test(I)?P="attribute":I[I.length-1]==="$"&&(I=I.slice(0,-1),P="attribute");var N=LcG(r);N&&P==="attribute"&&(I==="class"&&a.hasAttribute("class")&&(N+=" "+a.getAttribute(I)),oQ(a,N,I));P==="attribute"&&J==="disable-upgrade$"&&a.setAttribute("disable-upgrade","");a.localName==="input"&&J==="value"&&a.setAttribute("value","");a.removeAttribute(J);P==="property"&&(I=_.nL(I));z=Uim(z);l00(z,P,I,r);return!0}return I.slice(0,3)===
"on-"?(a.removeAttribute(I),(P=z).events!=null||(P.events=[]),z.events.push({name:I.slice(3),value:J}),!0):I==="id"?(z.id=J,!0):!1};
DiG=function(a){for(var z=[],I=0,J;(J=wMd.exec(a))!==null;){J.index>I&&z.push({type:"literal",value:a.slice(I,J.index)});var r=J[1][0];I=!!J[2];J=J[3].trim();if(r==="{")throw Error("Eg");(r=diM(J))?z.push({type:"method",negate:I,signature:r}):z.push({type:"path",negate:I,path:J});I=wMd.lastIndex}I&&I<a.length&&(a=a.substring(I))&&z.push({type:"literal",value:a});return z};
LcG=function(a){for(var z="",I=0;I<a.length;I++){var J=a[I];J.type==="literal"&&(z+=J.value)}return z};
l00=function(a,z,I,J){a.bindings!=null||(a.bindings=[]);a.bindings.push({kind:z,target:I,parts:J})};
cLO=function(a,z,I){var J=!1;if(a.localName==="template"){J=I;var r=z.stripWhitespace;r=mii(a,r===void 0?!1:r);var P=a.content.ownerDocument.createDocumentFragment();r.content=P;P.appendChild(a.content);J&&(J.templateInfo=r);J=!0}else a.localName==="slot"&&(z.hasInsertionPoint=!0);if(a.firstChild&&(r=I,a.localName!=="script"&&a.localName!=="style")){P=0;for(var N=a.firstChild;N;){var u=N;if(u.localName==="template"){var E=u.getAttribute("is");if((N=E==="dom-if")||E==="dom-repeat"){u.removeAttribute("is");
E=u.ownerDocument.createElement("ps-"+E);u.parentNode.replaceChild(E,u);E.appendChild(u);var O=Array.from(u.attributes);O=_.C(O);for(var f=O.next();!f.done;f=O.next())f=f.value,N?yLi.has(f.name)&&oQ(E,f.value,f.name):kvI.has(f.name)?oQ(E,f.value,f.name):M0i.has(f.name),u.removeAttribute(f.name);N=E}else N=u}if(N.nodeType===Node.TEXT_NODE){u=void 0;E=a;for(O=N;((u=O.nextSibling)==null?void 0:u.nodeType)===Node.TEXT_NODE;)f=void 0,(f=O).textContent!=null||(f.textContent=""),O.nextSibling.textContent&&
(O.textContent+=O.nextSibling.textContent),E.removeChild(O.nextSibling);if(z.stripWhitespace&&N.textContent&&!N.textContent.trim()){a.removeChild(N);N=N.nextSibling;continue}}cLO(N,z,{parentIndex:P,parentInfo:r});N.parentNode&&P++;N=N.nextSibling}}var A;if((A=a.hasAttributes)==null?0:A.call(a)){A=I=Uim(I);r=!1;P=Array.from(a.attributes);P=_.C(P);for(u=P.next();!u.done;u=P.next())u=u.value,r=pMG(a,A,u.name,u.value)||r;J=r||J}a.nodeType===Node.TEXT_NODE&&(A=DiG(a.textContent),A.length&&(a.textContent=
LcG(A)||" ",I=Uim(I),l00(I,"text","textContent",A),J=!0));I&&J&&(I.infoIndex=z.nodeInfoList.push(I)-1)};
mii=function(a,z){z={nodeInfoList:[],stripWhitespace:(z===void 0?!1:z)||a.hasAttribute("strip-whitespace")};cLO(a.content,z);return z};
YAi=function(a){Object.assign(a,{_disposeEffects:void 0,_signalProps:void 0,_signalValues:void 0})};
eH0=function(a,z,I){z.signalCache!=null||(z.signalCache={});var J=z.signalCache[I];if(!J){var r=I.split(".");J=!qAG(a,r[0]);if(r.length>1&&J){var P=a.getPathMutationSignal(r);J=function(){var N=xX(a.owner,function(){return a.getWithPath([r[0]])}),u,E=(u=P())==null?void 0:u.value;
return{rootWasDefined:N!==void 0,value:E}}}else J=function(){var N=a.getWithPath(r);
return{rootWasDefined:N!==void 0,value:N}};
z.signalCache[I]=J}return J()};
jm0=function(a,z,I,J,r){z=z.parts.map(function(N,u){if(N.type==="literal"){I.partWasDefined!=null||(I.partWasDefined=[]);var E;(E=I.partWasDefined)[u]||(E[u]=N.value!==void 0);return N.value}var O;if(N.type==="method"){var f,A=(f=(O=I.partWasDefined)==null?void 0:O[u])!=null?f:!1;A||(A=N.signature.args.every(function(h){return h.type==="literal"}));
var n=!1,F=!0;O=N.signature.args.map(function(h){if(h.type==="literal")return h.value;if(h.type!=="path")throw Error("Fg`"+h.type);var v=eH0(a,I,h.path);h=v.value;v=v.rootWasDefined;n||(n=v);F&&(F=v);return h});
A||(A=r===1?F:n);I.partWasDefined!=null||(I.partWasDefined={});I.partWasDefined[u]=A;if(!A)return;O=(u=eH0(a,I,N.signature.methodName).value)&&typeof u==="function"?u.apply(J,O):void 0}else f=eH0(a,I,N.path),O=f.value,I.partWasDefined!=null||(I.partWasDefined={}),(A=I.partWasDefined)[u]||(A[u]=O!==void 0||f.rootWasDefined);N.negate&&(O=!O);return O});
if(z.length===1){var P;return((P=I.partWasDefined)==null?0:P[0])?z[0]:a3m}return z.join("")};
zA7=function(a){return typeof a==="object"&&!!a&&"notifyPath"in a&&"canNotifyPath"in a};
I3$=function(a){return typeof a==="object"&&!!a&&"notifyPath"in a};
J53=function(a){return"polymerController"in a};
r5G=function(a,z){z=""+WK(z)[0];if(zA7(a))return a.canNotifyPath(z);if(J53(a)&&zA7(a.polymerController))return a.polymerController.canNotifyPath(z);if(I3$(a)){var I;return!((I=a.properties)==null||!I[z])}if(J53(a)&&I3$(a.polymerController)){var J;return!((J=a.polymerController.properties)==null||!J[z])}return!1};
PvI=function(a,z,I){zA7(a)||I3$(a)?a.notifyPath(z,I):J53(a)&&(zA7(a.polymerController)||I3$(a.polymerController))&&a.polymerController.notifyPath(z,I)};
CvG=function(a,z,I){if(I!==a3m){a.kind==="attribute"||a.target!=="textContent"&&(a.target!=="value"||z.localName!=="input"&&z.localName!=="textarea")||(I=I===void 0?"":I);var J,r=(J=ZX0.Polymer)==null?void 0:J.sanitizeDOMValue;r&&(I=r(I,a.target,a.kind,z));if(a.kind==="attribute"){a=a.target;if(a==="class"||a==="name"||a==="slot")z=(0,_.t3)(z);oQ(z,I,a)}else if(a=a.target,I!==z[a]||typeof I==="object")z.loggingStatus&&(z.loggingStatus.isDeclarativeExternal=!0,h3(z.localName,a,"PROPERTY_ACCESS_SET_EXTERNAL_DECLARATIVE")),
z[a]=I,z.loggingStatus&&(z.loggingStatus.isDeclarativeExternal=!1)}};
NjG=function(a,z,I,J){var r=z.parts[0];if(z.parts.length!==1||r.type!=="path"||!r5G(I,z.target))return!1;var P=_.C(r.path.split(".")),N=P.next().value,u=mG(P);if(qAG(a,N))return!1;J.signalCache!=null||(J.signalCache={});P=J.signalCache[r.path];var E;P=(E=P)==null?void 0:E().value;if((P==null?void 0:P.path)!==void 0){J=WK(P.path);var O=WK(r.path);J=[z.target].concat(_.ih(J.slice(O.length-1)));PvI(I,J,r.negate?!P.value:P.value);return!0}var f=U8(a,N);var A=f.getChangeRecordSignal(u),n=!1;P=function(){if(!n){var h=
xX(a.owner,function(){return f.getWithPath([])});
n||(n=h!==void 0)}return{value:A(),rootWasDefined:n}};
J.signalCache[r.path]=P;J.partWasDefined!=null||(J.partWasDefined={});P=P();(O=J.partWasDefined)[0]||(O[0]=P.rootWasDefined);var F=xX(a.owner,function(){return f.getWithPath(u)});
J.partWasDefined[0]&&xX(a.owner,function(){return void CvG(z,I,r.negate?!F:F)});
return!0};
uEm=function(a,z,I,J,r,P){if(!NjG(a,z,I,J)){var N=jm0(a,z,J,r,P);xX(a.owner,function(){return void CvG(z,I,N)})}};
E$I=function(a,z,I,J,r,P){I=_.C(I);for(var N=I.next(),u={};!N.done;u={infoIndex:void 0},N=I.next()){N=N.value;var E=N.bindings;u.infoIndex=N.infoIndex;N=N.parentInfo;if(E){E=_.C(E);for(var O=E.next(),f={};!O.done;f={b$jscomp$253:void 0,bindingCtx$jscomp$4:void 0},O=E.next()){f.b$jscomp$253=O.value;if(u.infoIndex===void 0)throw Error("Gg");f.bindingCtx$jscomp$4={};a.effect(function(A,n){return function(){r&&!r()||uEm(a,A.b$jscomp$253,z[n.infoIndex],A.bindingCtx$jscomp$4,J,P)}}(f,u))}}N&&E$I(a,z,[N],
J,r,P)}};
BjM=function(a,z){a=(z.parentInfo?BjM(a,z.parentInfo):a).firstChild;for(var I=0;a;a=a.nextSibling)if(z.parentIndex===I++)return a;throw Error("Hg");};
OX7=function(a,z,I,J){a=document.importNode(a.content,!0);a.__noInsertionPoint=!(J==null?0:J.hasInsertionPoint);for(var r=Array(z.length),P={},N=0;N<z.length;N++){var u=z[N],E=BjM(a,u);r[N]=E;u.id&&(P[u.id]=E);if(u.templateInfo){var O=E.parentElement;O&&(O.templateInfo=u.templateInfo,O.parentSignalProxy=I,O.eventListenerHost=J.eventListenerHost,O.stampingEnabled=J.enabledSignal)}O=void 0;if((O=u.events)==null?0:O.length)for(O=0;O<u.events.length;O++){var f=u.events[O];g$d(J.eventListenerHost,E,f.name,
f.value,J.getModel)}}E$I(I,r,z,J.thisCtx,J.enabledSignal,J.methodInvocationRequirement);return{root:a,nodes:r,nodesById:P}};
A5G=function(a,z){a=a();var I;(I=f3m.ShadyCSS)==null||I.prepareTemplate(a,z);z=mii(a);return{template:a,nodeInfoList:z.nodeInfoList,hasInsertionPoint:z.hasInsertionPoint}};
Ka7=function(){smG=!1;for(var a=DL.length,z=0;z<a;z++){var I=DL[z];if(I)try{I()}catch(J){Promise.resolve().then(function(){throw J;})}}DL.splice(0,a);
n$I+=a};
hAO=function(a){smG||(smG=!0,FaI.textContent=(HX7++).toString());DL.push(a);return bXG++};
_.lK=function(a,z,I){RQ++;a=z?new Vod(RQ,a,z,I):new QmI(RQ,a);LM.set(RQ,a);return RQ};
Sd$=function(a){(a=LM.get(a))&&a.cancel()};
xc3=function(a,z){a=iXd.get(a);return a?(z=a.get(z))?z:null:null};
_.pM=function(a,z,I,J){var r=xc3(a,z);if(!r){r=new v$0;var P=iXd.get(a);P||(P=new Map,iXd.set(a,P));P.set(z,r)}a=I.bind(a);r.run(a,J,void 0)};
_.GyG=function(a,z){var I;(I=xc3(a,z))==null||I.cancel()};
$cG=function(a){var z;(z=xc3(a,"doRender"))==null||z.flush()};
wz=function(a){var z;return(z=a.hostElement)!=null?z:a};
XT7=function(a){var z=a.indexOf(".");return z===-1?a:a.slice(0,z)};
TjE=function(a,z,I,J,r,P){P=(r=(J=P?XT7(z):z)?z:null)?a.get(r):a.__data[z];r&&P===void 0&&(P=I[z]);_.PA(a.hostElement,JXd(J)+"-changed",{value:P,queueProperty:!0,path:r!=null?r:void 0},{bubbles:!1,composed:!1})};
dcG=function(a,z){a.__isReflecting=!0;Wc$(a.hostElement,z,a.__data[z]);a.__isReflecting=!1};
Wam=function(a){if(a._onIronRequestResizeNotifications){var z=a._onIronRequestResizeNotifications.bind(a);a._onIronRequestResizeNotifications=function(I){_.Yh(I)!==a.hostElement&&z(I)}}a._ariaActiveAttributeChanged&&(a._ariaActiveAttributeChanged=a._ariaActiveAttributeChanged.bind(a.hostElement));
a._activeChanged&&(a._activeChanged=function(I){a.toggles?oQ(a.hostElement,I?"true":"false",a.ariaActiveAttribute):a.hostElement.removeAttribute(a.ariaActiveAttribute);a._changedButtonState()});
a._asyncClick&&(a._asyncClick=function(){_.lK(function(){a.hostElement.click()},1)});
!a.keyEventTarget||a.keyEventTarget instanceof EventTarget||(a.keyEventTarget=wz(a.keyEventTarget));a._disabledChanged&&(a._disabledChanged=a._disabledChanged.bind(a.hostElement));a._observeItems&&(a._observeItems=function(I){var J=wz(I);return _.Q$(J).observeNodes(function(r){a._updateItems();a._updateSelected();_.PA(J,"iron-items-changed",r,{bubbles:!1,cancelable:!1})})});
a._updateItems&&a._updateItems===_.mZ._updateItems&&(a._updateItems=function(){var I=_.Q$(a.hostElement).queryDistributedElements(a.selectable||"*");I=Array.prototype.filter.call(I,a._bindFilterItem);a._setItems(I)});
a._computeKeyboardClass&&(a._computeKeyboardClass=function(I){_.CM(a.hostElement,"keyboard-focus",I)});
a.ensureRipple&&(a.ensureRipple=function(I){if(a.hasRipple&&!a.hasRipple()){if(!a._createRipple)return;a._ripple=a._createRipple();a._ripple.noink=a.noink;var J=a._rippleContainer||a.hostElement;J&&_.PK(J).appendChild(a._ripple)}var r;if(I&&((r=a._ripple)==null?0:r.uiDownAction)){J=_.PK(a._rippleContainer||a.hostElement);var P;r=(P=I.composedPath())==null?void 0:P[0];J.contains(r)&&a._ripple.uiDownAction(I)}});
a._updateMultiselectable&&(a._updateMultiselectable=function(I){I?a.hostElement.setAttribute("aria-multiselectable","true"):a.hostElement.removeAttribute("aria-multiselectable")})};
o$M=function(a,z,I){I=_.C(I);for(var J=I.next();!J.done;J=I.next())EJI(J.value.constructor,a);EJI(z.constructor,a)};
Dci=function(a,z){a=_.C(a);for(var I=a.next();!I.done;I=a.next())if(I=I.value,I.type==="signal"){var J=I.propertyKey;if(z.hasOwnProperty(J)&&z[J]!=null&&I.attributeType===Object){a:{J=z[J].constructor;for(var r=_.C(Uc1),P=r.next();!P.done;P=r.next())if(P=P.value,J===P){J=P;break a}J=Object}I.attributeType=J}}};
RAd=function(){};
LaG=function(a){var z;return(z=a.hostElement)!=null?z:a};
l37=function(){throw Error("Lg");};
pT0=function(a,z){a.constructor.prototype.useSignals=!0;var I=new a.constructor;o$M(I,a,z.behaviors);Dci(z.reactiveSchemas,I);I={};for(var J=_.C(z.reactiveSchemas),r=J.next();!r.done;r=J.next())r=r.value,r.type==="signal"&&(I[r.propertyKey]=r.attributeType);var P={copyPropertiesToProto:l37,didRegister:!1,typesForSignals:I},N=["disable-upgrade"].concat(_.ih(z.observedAttributes)),u=function(E){ya.call(this,a,z,P,E)};
_.b(u,ya);_.eH.Object.defineProperties(u,{observedAttributes:{configurable:!0,enumerable:!0,get:function(){return N}}});
P.copyPropertiesToProto=function(){for(var E=0;E<z.behaviors.length;E++)gJi(z.behaviors[E],u.prototype);gJi(a,u.prototype)};
z.legacyOptimizations||P.copyPropertiesToProto();u.prototype.is=a.is;return u};
wTG=function(a,z){if(Object.getPrototypeOf(z.prototype).constructor!==_.G)throw Error("Mg");z.prototype.is=a.is;return pT0(z.prototype,a)};
mc$=function(a){return a.type==="compute"||a.type==="computeWithMethod"};
y5G=function(a){for(var z=a.reactiveSchemas.filter(mc$),I=new Map,J=new Map,r=new Map,P=_.C(z),N=P.next();!N.done;N=P.next())N=N.value,I.set(N.propertyKey,N),J.set(N.propertyKey,[]),r.set(N.propertyKey,0);P=0;z=_.C(z);for(N=z.next();!N.done;N=z.next()){N=N.value;for(var u=_.C(N.type==="computeWithMethod"?N.method.args:N.args),E=u.next();!E.done;E=u.next())E=E.value,E.type!=="literal"&&(E=E.path.split(".")[0],J.has(E)&&(J.get(E).push(N.propertyKey),r.set(N.propertyKey,r.get(N.propertyKey)+1),P++))}N=
[].concat(_.ih(J.keys())).filter(function(O){return r.get(O)===0});
for(z=[];N.length;)for(u=N.shift(),z.push(I.get(u)),u=_.C(J.get(u)),E=u.next();!E.done;E=u.next())E=E.value,r.set(E,r.get(E)-1),P--,r.get(E)===0&&N.push(E);I=a.reactiveSchemas.filter(function(O){return!mc$(O)});
a.reactiveSchemas=[].concat(_.ih(I),_.ih(z))};
kyM=function(a,z){if(z.properties)for(var I=_.C(Object.entries(z.properties)),J=I.next();!J.done;J=I.next()){var r=_.C(J.value);J=r.next().value;r=r.next().value;a.properties[J]=typeof r==="function"?{type:r}:r}z.observers&&a.observers.push.apply(a.observers,_.ih(z.observers));z.disabledPolySiReactions&&a.disabledPolySiReactions.push.apply(a.disabledPolySiReactions,_.ih(z.disabledPolySiReactions))};
MoI=function(a,z){for(var I=z.length-1;I>=0;I--){var J=z[I];Array.isArray(J)?MoI(a,J):a.indexOf(J)<0&&a.unshift(J)}};
c5p=function(a,z){a.reactiveSchemas=a.reactiveSchemas.filter(function(I){return I.type==="observe"&&z.includes(I.method.methodName)||mc$(I)&&z.includes(I.propertyKey)?!1:!0})};
qdE=function(a,z){var I=z.prototype,J,r,P={is:a.is,reactiveSchemas:[],observedAttributes:[],behaviors:[P$E.InjectBehavior,Xe.prototype],disableElementRegistration:a.disableElementRegistration,provide:(J=a.providers)!=null?J:[],reactivityMode:a.reactivityMode,signalProperties:(r=I.signalProperties)!=null?r:[]};"template"in z?P.templateGetter=function(){return z.template}:a.getTemplate&&(P.templateGetter=a.getTemplate);
I.behaviors&&MoI(P.behaviors,I.behaviors);Ydm(P,z);return P};
Ydm=function(a,z){for(var I=z.prototype,J={properties:{},observers:[],disabledPolySiReactions:[]},r=_.C(a.behaviors),P=r.next();!P.done;P=r.next())kyM(J,P.value);kyM(J,I);if(a.signalProperties)for(I=_.C(a.signalProperties),r=I.next();!r.done;r=I.next())delete J.properties[r.value];I=_.C(Object.entries(J.properties));for(r=I.next();!r.done;r=I.next()){P=_.C(r.value);r=P.next().value;P=P.next().value;var N=void 0;if((N=a.signalProperties)==null||!N.includes(r)){N=void 0;var u=a,E=P.type;if(!E)if(window.Reflect!==
void 0&&window.Reflect.getMetadata!==void 0)a:{E=Reflect.getMetadata("design:type",z,r);for(var O=_.C(eAp),f=O.next();!f.done;f=O.next())if(f=f.value,E===f){E=f;break a}E=Object}else E=String;P.computed||P.selector||(u.reactiveSchemas.push({type:"signal",propertyKey:r,value:P.value,attributeType:E,readOnly:P.readOnly}),u.observedAttributes.push(_.sX(r)));P.reflectToAttribute&&u.reactiveSchemas.push({type:"reflect",propertyKey:r});if(P.computed){E=diM(P.computed);if(!E)throw Error("Ng");u.reactiveSchemas.push({type:"computeWithMethod",
propertyKey:r,method:E,value:P.value})}P.observer&&u.reactiveSchemas.push({type:"observe",method:{methodName:P.observer,args:[{type:"path",path:r}]}});P.notify&&u.reactiveSchemas.push({type:"notify",propertyKey:r});P.selector&&u.reactiveSchemas.push({type:"redux",propertyKey:r,selector:P.selector,selectorArgs:(N=P.selectorArgs)!=null?N:[]})}}ah7&&y5G(a);z=_.C(J.observers);for(r=z.next();!r.done;r=z.next())I=a,r=r.value,(P=diM(r))?I.reactiveSchemas.push({type:"observe",method:P}):console.log('Warning: unable to parse observe declaration: "'+
r+'"');c5p(a,J.disabledPolySiReactions)};
jxd=function(a,z){for(var I=0;I<z.length;I++){var J=z[I],r=void 0;(r=J).showHideApi!=null||(r.showHideApi={});r=void 0;!!a!==!((r=J.showHideApi)==null||!r.hideTemplateChildren)&&(J.nodeType===Node.TEXT_NODE?a?(J.showHideApi.polymerTextContent=J.textContent,J.textContent=""):(r=void 0,J.textContent=(r=J.showHideApi.polymerTextContent)!=null?r:null):J instanceof Element&&J.localName==="slot"?a?(J.showHideApi.polymerReplaced=document.createComment("hidden-slot"),(0,_.t3)((0,_.t3)(J).parentNode).replaceChild(J.showHideApi.polymerReplaced,
J)):(r=J.showHideApi.polymerReplaced)&&(0,_.t3)((0,_.t3)(r).parentNode).replaceChild(J,r):J instanceof HTMLElement&&J.style&&(a?(J.showHideApi.polymerDisplay=J.style.display,J.style.display="none"):J.style.display=J.showHideApi.polymerDisplay));J.showHideApi.hideTemplateChildren=a;J.showHideChildren&&J.showHideChildren(a)}};
Ihd=function(){if(!zyi){var a=document.createElement("style");a.innerText="ps-dom-if,ps-dom-repeat{display:none;}";document.head.appendChild(a);zyi=!0}};
ki=function(){return _.K("disable_hidden_dom_if_using_stamper")};
JlE=function(a,z){var I=_.M3().getState();return z?a.apply(null,[I].concat(_.ih(z))):a(I)};
Zfm=function(){if(rl7)return rl7;var a=_.C(_.CW(0,void 0,"MB1Hb")),z=a.next().value;a.next();var I=a.next().value;_.M3().subscribe(function(){PHx(I)});
return rl7=z};
PHx=function(a){CH0||(CH0=!0,Promise.resolve().then(function(){a(function(z){return z+1});
CH0=!1}))};
_.M3=function(){return NTG.getAppStore()};
tep=function(a,z){return NTG.getSelectFn()(a,z)};
_.cK=function(a){NTG.getDispatchFn()(a)};
usd=function(a,z){var I={},J;for(J in a)I[J]=z(a[J],J);return I};
_.Yi=function(a,z){return function(){var I;return(I=_.SJ(a))!=null?I:z}};
_.q3=function(a,z){var I=Object.assign({},a),J;for(J in z)z.hasOwnProperty(J)&&(I[J]=_.Yi(a[J],z[J]));return I};
EO0=function(a,z,I){a instanceof Element&&(I.debugName||(I.debugName="<"+a.tagName.toLowerCase()+(a.tagName.includes("-")?">":"."+a.className+">")),_.K("ytwiz_enable_debug_component_props")&&(a.debugProps||(a.debugProps=usd(z,function(J){return function(){return J()}}))))};
gOE=function(a){var z;if(!(z=BTG.value.traceAllComponents)){var I;z=(I=YA)==null?void 0:I.activeSpan;z=(z==null?void 0:z.name)!=="ytComponent"}return z?oE1("ytComponent",{},a):a()};
_.ec=function(a,z){var I=function(J){return gOE(function(r){var P=OfG={};var N;if(((N=I)==null?0:N.idomCompat)&&J.renderedFromIdom){var u;N=typeof I.idomCompat==="object"?(u=I)==null?void 0:u.idomCompat.callbacks:{};N=_.C(fhp(J,N,I.debugName));u=N.next().value;N.next();N=N.next().value;var E=Alp(a,u);P.privateValue=E;OfG=void 0;EO0(E,u,I);P={debugName:I.debugName};r&&P&&Object.assign(r.attributes,P);r=mrx(E);r=Array.isArray(r)?r[0]:r;r[C3]||(r[C3]={});r[C3].updateSignalsFromIdomProps=N;sx$(u,E);return E}N=
usd(J,nOI);u=Alp(a,N);P.privateValue=u;OfG=void 0;EO0(u,N,I);P={debugName:I.debugName};r&&P&&Object.assign(r.attributes,P);sx$(N,u);return u})};
I.debugName=z===void 0?"":z;return I};
Alp=function(a,z){a=a(z);return Ee(a)};
KjO=function(a,z){a[z]||(a=new _.Fn("IDOM interop setter undefined. Key:",z),_.Gx(a))};
nOI=function(a,z){return z==="children"||z==="ref"||typeof a==="function"||a===void 0?a:function(){return _.SJ(a)}};
fhp=function(a,z,I){var J={},r={},P={},N={},u;for(u in a){N={key$jscomp$925:N.key$jscomp$925};N.key$jscomp$925=u;var E=a[N.key$jscomp$925];if(N.key$jscomp$925==="children"||N.key$jscomp$925==="ref")J[N.key$jscomp$925]=E;else if(typeof E==="function")N.key$jscomp$925 in z||E.length>0?(P[N.key$jscomp$925]=E,J[N.key$jscomp$925]=function(f){return function(){return P[f.key$jscomp$925].apply(P,_.ih(_.dO.apply(0,arguments)))}}(N)):J[N.key$jscomp$925]=E;
else if(!(a[N.key$jscomp$925]===void 0&&N.key$jscomp$925 in z)){var O=_.C(_.CW(a[N.key$jscomp$925],{debugName:N.key$jscomp$925+":cwis:"+I},"rvrjQe"));E=O.next().value;O=O.next().value;J[N.key$jscomp$925]=E;r[N.key$jscomp$925]=O}}return[J,r,function(f){var A={},n;for(n in f)A={key$jscomp$926:A.key$jscomp$926,val$jscomp$121:void 0},A.key$jscomp$926=n,A.val$jscomp$121=f[A.key$jscomp$926],A.key$jscomp$926!=="children"&&A.key$jscomp$926!=="ref"&&(typeof A.val$jscomp$121==="function"?A.key$jscomp$926 in
z?P[A.key$jscomp$926]=A.val$jscomp$121:A.val$jscomp$121.length>0&&(P[A.key$jscomp$926]=A.val$jscomp$121,_.Xd(new _.Fn("Callback detected that was not set in the idomCompat callbacks map. Key:",A.key$jscomp$926))):A.key$jscomp$926 in z&&A.val$jscomp$121===void 0||(KjO(r,A.key$jscomp$926),g1(function(F){return function(){r[F.key$jscomp$926](F.val$jscomp$121)}}(A))))}]};
bfG=function(a,z,I){var J=EBE(a.prototype,Fjx,a.prototype.behaviors);J.prototype.is=z;J.prototype.localName=z;I&&HfG(J,I);return function(r){r&&(J.prototype.hostElement=r);var P=new J;P.root=P;P.hostElement=r;return P}};
HfG=function(a,z){var I;Object.defineProperty(a.prototype,"_template",{get:function(){I===void 0&&(I=z());return I},
set:function(J){I=J},
configurable:!0,enumerable:!0})};
ifE=function(a,z,I,J){function r(){if(!F){for(var h=new Set,v=_.C(f),d=v.next();!d.done;d=v.next()){d=d.value;for(var W=_.C(Object.getOwnPropertyNames(d)),l=W.next();!l.done;l=W.next()){l=l.value;var q=void 0,m=(q=Object.getOwnPropertyDescriptor(d,l))==null?void 0:q.value;m&&m instanceof Function&&!a0(l)&&(!u[l]||_.K("polymer_forward_method_killswitch"))&&h.add(l)}}v=_.C(Object.entries(Object.getOwnPropertyDescriptors(a.prototype)));for(d=v.next();!d.done;d=v.next())W=_.C(d.value),d=W.next().value,
W=W.next().value,W.value instanceof Function&&!a0(d)&&h.add(d);F=h}return F}
hy1(a,z,J==null?void 0:J.providers);Bci(a.prototype,a,!0);var P=bfG(a,z,I),N,u=(N=a.prototype.properties)!=null?N:{},E,O,f=(O=(E=a.prototype.behaviors)==null?void 0:E.flat(Infinity))!=null?O:[];I=_.C(f);for(N=I.next();!N.done;N=I.next())u=Object.assign({},N.value.properties,u);var A=[].concat(_.ih(Vem),_.ih(Object.keys(u).map(function(h){return _.sX(h)}))),n=!1,F;
return{ctor:function(h,v){var d=P(h),W,l;h=[].concat(_.ih((W=J==null?void 0:J.allowedProps)!=null?W:[]),_.ih((l=J==null?void 0:J.allowedPropsFromBehaviors)!=null?l:[]));d.allowedProps=h.length>0?h:void 0;W={};l=_.C(A);for(h=l.next();!h.done;h=l.next())h=h.value,W[h]=_.nL(h);d.__dataAttributes=W;var q=d.ready.bind(d);d.ready=function(){v.beforeReady();q();if(HK(z)&&!n){var m=d.__templateInfo;if(m==null?0:m.hostProps){m=_.C(Object.keys(m.hostProps));for(var M=m.next();!M.done;M=m.next())h3(z,M.value,
"PROPERTY_ACCESS_GET_INTERNAL")}n=!0}};
d._overrideLegacyUndefined=!0;return d},
props:u,observedAttributes:A,getInitialMethods:r,getPropsToForwardBeforeRegister:function(){for(var h=[],v=new Set,d=_.C(Object.keys(u)),W=d.next();!W.done;W=d.next())W=W.value,h.push([W,u[W].readOnly]),v.add(W);d=r();W=_.C(Object.keys(Object.getOwnPropertyDescriptors(a.prototype)));for(var l=W.next();!l.done;l=W.next())l=l.value,!QxI(l)||d.has(l)||v.has(l)||(h.push([l,!1]),v.add(l));v=_.C(SCM);for(d=v.next();!d.done;d=v.next())h.push([d.value,!0]);return h},
getPropsToForwardBeforeReady:function(h){for(var v=[],d=_.C(Object.entries(h)),W=d.next();!W.done;W=d.next()){var l=_.C(W.value);W=l.next().value;l=l.next().value;if(QxI(W)&&!(l instanceof Function)&&(v.push([W,!1]),HK(z))){var q=l=void 0;(q=(l=h)._createPropertyAccessor)==null||q.call(l,W)}}return v},
shouldForwardProp:QxI,shouldLog:HK}};
hy1=function(a,z,I){ZA0(a,I);a.prototype.behaviors.unshift(xvM);if(kqI()){if(HK(z)){var J;(J=a.prototype).behaviors!=null||(J.behaviors=[]);a.prototype.behaviors.unshift(qux())}eqi(a)}_.Q(Xe.prototype)(a.prototype,"__templateHelpers")};
a0=function(a){return vO7.has(a)||a.startsWith("__compute__")};
QxI=function(a){return!a0(a)&&!a.startsWith("_")&&!a.endsWith("_")};
dvO=function(a,z){function I(){var n=E();n=_.C(n);for(var F=n.next();!F.done;F=n.next()){var h=_.C(F.value);F=h.next().value;h=h.next().value;GfM(A.prototype,F,h)}J=!0}
var J=!1,r=a.ctor,P=a.getInitialMethods,N=a.observedAttributes,u=a.getPropsToForwardBeforeReady,E=a.getPropsToForwardBeforeRegister,O=a.shouldForwardProp,f=a.shouldLog,A=function(){var n=HTMLElement.call(this)||this;n.didForwardDynamicProps=!1;n.loggingStatus={};J||I();n.inst=r(n,{beforeReady:function(){n.didForwardDynamicProps||(n.forwardDynamicProps(),n.didForwardDynamicProps=!0)}});
n.controllerProxy=c03(n.inst,z);n.forwardMethods();return n};
_.b(A,HTMLElement);A.prototype.forwardMethods=function(){for(var n=this,F=_.C(this.inst.getExtraMethodsToForward()),h=F.next(),v={};!h.done;v={method$jscomp$63:void 0},h=F.next()){var d=_.C(h.value);h=d.next().value;d=d.next().value;v.method$jscomp$63=d;this[h]=function(W){return function(){return W.method$jscomp$63.call.apply(W.method$jscomp$63,[n.inst].concat(_.ih(_.dO.apply(0,arguments))))}}(v)}F=_.C(P());
for(v=F.next();!v.done;v=F.next())v=v.value,O(v)&&$vi(this,v),f(z)&&!a0(v)&&X_d(this.inst,v)};
A.prototype.forwardDynamicProps=function(){var n=u(this.inst);n=_.C(n);for(var F=n.next();!F.done;F=n.next()){var h=_.C(F.value);F=h.next().value;h=h.next().value;GfM(this,F,h);f(z)&&!a0(F)&&TT$(this.inst,F)}};
A.prototype.connectedCallback=function(){this.inst.connectedCallback();this.inst.isConnected=!0};
A.prototype.disconnectedCallback=function(){this.inst.disconnectedCallback();this.inst.isConnected=!1};
A.prototype.attributeChangedCallback=function(n,F,h){this.inst.attributeChangedCallbackWrapper(n,F,h)};
_.eH.Object.defineProperties(A.prototype,{is:{configurable:!0,enumerable:!0,get:function(){return z}},
polymerController:{configurable:!0,enumerable:!0,get:function(){return this.controllerProxy}}});
_.eH.Object.defineProperties(A,{observedAttributes:{configurable:!0,enumerable:!0,get:function(){return N}}});
customElements.define(z,A)};
GfM=function(a,z,I){a.hasOwnProperty(z)||Object.defineProperty(a,z,{get:function(){var J,r=((J=a.is)!=null?J:a.tagName).toLowerCase();if(this.polymerController)return this.loggingStatus.isDeclarativeExternal||h3(r,z,"PROPERTY_ACCESS_GET_EXTERNAL"),this.loggingStatus.isExternalGet=!0,this.loggingStatus.bypassProxyController=!0,J=this.polymerController[z],this.loggingStatus.isExternalGet=!1,this.loggingStatus.bypassProxyController=!1,J},
set:function(J){if(!I){var r,P=((r=a.is)!=null?r:a.tagName).toLowerCase();this.polymerController&&(this.loggingStatus.isDeclarativeExternal||h3(P,z,"PROPERTY_ACCESS_SET_EXTERNAL_IMPERATIVE"),this.loggingStatus.currentExternalSet=z,this.loggingStatus.bypassProxyController=!0,this.polymerController[z]!==J&&(r={},this.polymerController.setProperties((r[z]=J,r)),this.loggingStatus.currentExternalSet=void 0,this.loggingStatus.bypassProxyController=!1))}}})};
$vi=function(a,z,I){var J=a.polymerController;a[z]=function(){var r=_.dO.apply(0,arguments);a.loggingStatus.currentExternalCall=z;a.loggingStatus.bypassProxyController=!0;var P,N=((P=a.is)!=null?P:a.tagName).toLowerCase();h3(N,z,"PROPERTY_ACCESS_CALL_EXTERNAL");var u;P=(u=I!=null?I:J[z])==null?void 0:u.call.apply(u,[J].concat(_.ih(r)));a.loggingStatus.currentExternalCall=void 0;a.loggingStatus.bypassProxyController=!1;return P}};
X_d=function(a,z){var I=a.hostElement,J=a[z];a[z]=function(){var r=_.dO.apply(0,arguments);if(I.loggingStatus.currentExternalCall!==z){var P,N=((P=I.is)!=null?P:I.tagName).toLowerCase();h3(N,z,"PROPERTY_ACCESS_CALL_INTERNAL")}return J==null?void 0:J.apply(a,r)}};
TT$=function(a,z){var I=Object.getOwnPropertyDescriptor(a,z);I&&!I.get&&Object.defineProperty(a,z,{get:function(){Yu0(a.hostElement,z);return I.value},
set:function(J){Va(a.hostElement,z);I.value=J}})};
Wjp=function(a){return _.K("poly_si_dom_repeat_detached_fix_killswitch")||a.tagName!=="PS-DOM-REPEAT"?a.tagName==="DOM-REPEAT":!0};
Uv7=function(a,z){var I=oOG(a);a instanceof Element&&I.unshift(a);a=_.C(I.filter(Wjp));for(var J=a.next();!J.done;J=a.next()){var r=void 0;J=_.C((r=J.value.__instances)!=null?r:[]);for(r=J.next();!r.done;r=J.next())if(r=r.value,r.root){r=Array.from(r.root.children);r=_.C(r);for(var P=r.next();!P.done;P=r.next())I.push.apply(I,_.ih(Uv7(P.value,z)))}}return I.filter(function(N){return N.usePatchedLifecycles&&N.lifecycleIsConnected===z})};
oOG=function(a){var z=null;a instanceof Element?z=Element.prototype.querySelectorAll:a instanceof DocumentFragment&&(z=DocumentFragment.prototype.querySelectorAll);return z?Array.from(z.call(a,"*")):[]};
jg=function(a){ZT(function(){for(var z=_.C(Uv7(a,!1)),I=z.next();!I.done;I=z.next()){I=I.value;I.lifecycleIsConnected=!0;try{var J=void 0,r=void 0,P=void 0,N=void 0;(J=(N=I.polymerController)!=null?N:I)==null||(P=(r=J).connectedCallback)==null||P.call(r)}catch(u){_.Gx(u)}}})};
zQ=function(a){ZT(function(){for(var z=_.C(Uv7(a,!0)),I=z.next();!I.done;I=z.next()){I=I.value;I.lifecycleIsConnected=!1;try{var J=void 0,r=void 0,P=void 0,N=void 0;(J=(N=I.polymerController)!=null?N:I)==null||(P=(r=J).disconnectedCallback)==null||P.call(r)}catch(u){_.Gx(u)}}})};
mvx=function(){if(!Dv1){Dv1=!0;var a=[Node];I0&&a.push(I0.Wrapper);var z=Node.prototype.insertBefore,I=Node.prototype.removeChild;a=_.C(a);for(var J=a.next(),r={};!J.done;r={nativeInsertBefore:void 0,nativeAppendChild:void 0,nativeRemoveChild:void 0,nativeReplaceChild:void 0},J=a.next())J=J.value,r.nativeInsertBefore=J.prototype.insertBefore,J.prototype.insertBefore=function(N){return function(u,E){if(u instanceof DocumentFragment){var O=Array.from(u.children);u=N.nativeInsertBefore.call(this,u,E);
if(this.isConnected&&N.nativeInsertBefore===z)for(E=_.C(O),O=E.next();!O.done;O=E.next())jg(O.value);return u}O=u instanceof Element&&u.isConnected;E=N.nativeInsertBefore.call(this,u,E);O&&zQ(u);this.isConnected&&jg(u);return E}}(r),r.nativeAppendChild=J.prototype.appendChild,J.prototype.appendChild=function(N){return function(u){if(u instanceof DocumentFragment){var E=Array.from(u.children);
u=N.nativeAppendChild.call(this,u);if(this.isConnected){E=_.C(E);for(var O=E.next();!O.done;O=E.next())jg(O.value)}return u}E=u instanceof Element&&u.isConnected;O=N.nativeAppendChild.call(this,u);E&&zQ(u);this.isConnected&&jg(u);return O}}(r),r.nativeRemoveChild=J.prototype.removeChild,J.prototype.removeChild=function(N){return function(u){var E=u instanceof Element&&u.isConnected,O=N.nativeRemoveChild.call(this,u);
E&&I===N.nativeRemoveChild&&zQ(u);return O}}(r),r.nativeReplaceChild=J.prototype.replaceChild,J.prototype.replaceChild=function(N){return function(u,E){if(u instanceof DocumentFragment){var O=Array.from(u.children);
u=N.nativeReplaceChild.call(this,u,E);if(this.isConnected)for(zQ(E),E=_.C(O),O=E.next();!O.done;O=E.next())jg(O.value);return u}O=u instanceof Element&&u.isConnected;var f=this.isConnected,A=N.nativeReplaceChild.call(this,u,E);f&&zQ(E);O&&zQ(u);f&&jg(u);return A}}(r);
a=[Element];I0&&a.push(I0.Wrapper);a=_.C(a);J=a.next();for(r={};!J.done;r={nativeReplaceWith:void 0,nativeRemove:void 0,nativeInsertAdjacentElement:void 0,nativeSetAttribute:void 0,nativeRemoveAttribute:void 0,nativeToggleAttribute:void 0},J=a.next())J=J.value,J.prototype.before=Ry1(J.prototype.before),J.prototype.after=Ry1(J.prototype.after),r.nativeReplaceWith=J.prototype.replaceWith,J.prototype.replaceWith=function(N){return function(){var u=_.dO.apply(0,arguments),E=_.C(LjM(u)),O=E.next().value,
f=E.next().value;E=this.isConnected;N.nativeReplaceWith.apply(this,u);u=_.C(f);for(f=u.next();!f.done;f=u.next())zQ(f.value);if(E)for(zQ(this),O=_.C(O),E=O.next();!E.done;E=O.next())E=E.value,E instanceof Element&&jg(E)}}(r),r.nativeRemove=J.prototype.remove,J.prototype.remove=function(N){return function(){var u=this.isConnected;
N.nativeRemove.call(this);u&&zQ(this)}}(r),r.nativeInsertAdjacentElement=J.prototype.insertAdjacentElement,J.prototype.insertAdjacentElement=function(N){return function(u,E){var O=E.isConnected;
u=N.nativeInsertAdjacentElement.call(this,u,E);O&&zQ(E);u.isConnected&&jg(u);return u}}(r),r.nativeSetAttribute=J.prototype.setAttribute,J.prototype.setAttribute=function(N){return function(u,E){var O=lh$(this);
if(!O.usePatchedLifecycles)return N.nativeSetAttribute.call(this,u,E);var f=this.getAttribute(u);N.nativeSetAttribute.call(this,u,E);E=this.getAttribute(u);p_$(O,u,f,E)}}(r),r.nativeRemoveAttribute=J.prototype.removeAttribute,J.prototype.removeAttribute=function(N){return function(u){var E=lh$(this);
if(!E.usePatchedLifecycles)return N.nativeRemoveAttribute.call(this,u);var O=this.getAttribute(u);N.nativeRemoveAttribute.call(this,u);O!==null&&p_$(E,u,O,null)}}(r),r.nativeToggleAttribute=J.prototype.toggleAttribute,J.prototype.toggleAttribute=function(N){return function(u,E){var O=lh$(this);
if(!this.usePatchedLifecycles)return N.nativeToggleAttribute.call(this,u,E);var f=this.getAttribute(u),A=f!==null;E=N.nativeToggleAttribute.call(this,u,E);E!==A&&p_$(O,u,f,E?"":null);return E}}(r);
a=[Document,DocumentFragment,Element,ShadowRoot];I0&&a.push(I0.Wrapper);a=_.C(a);for(r=a.next();!r.done;r=a.next())r=r.value,r.prototype.prepend=Ry1(r.prototype.prepend),r.prototype.append=Ry1(r.prototype.append);(I0==null?void 0:I0.noPatch)===!0&&w_I();document.readyState==="complete"?jg(document.body):document.addEventListener("readystatechange",function(){document.readyState==="complete"&&jg(document.body)});
var P=Object.getOwnPropertyDescriptor(HTMLElement.prototype,"innerText");P&&P.get&&P.set&&Object.defineProperty(HTMLElement.prototype,"innerText",{enumerable:P.enumerable,configurable:!0,get:P.get,set:function(N){N||zQ(this);P.set.call(this,N);return N}})}};
Ry1=function(a){return function(){var z=_.dO.apply(0,arguments),I=_.C(LjM(z)),J=I.next().value;I=I.next().value;a.apply(this,z);z=_.C(I);for(I=z.next();!I.done;I=z.next())zQ(I.value);if(this.isConnected)for(J=_.C(J),z=J.next();!z.done;z=J.next())z=z.value,z instanceof Element&&jg(z)}};
w_I=function(){for(var a=_.C(yl1),z=a.next();!z.done;z=a.next()){z=z.value.prototype;for(var I=_.C(kfm),J=I.next();!J.done;J=I.next()){J=J.value;var r=Object.getOwnPropertyDescriptor(z,J);r&&Object.defineProperty(z,"__shady_native_"+J,r)}}};
p_$=function(a,z,I,J){var r,P;if((r=a.polymerController)==null?0:(P=r.observedAttributes)==null?0:P.includes(z))if(a=a.polymerController,a.attributeChangedCallbackWrapper)a.attributeChangedCallbackWrapper.call(a,z,I,J);else{var N;(N=a.attributeChangedCallback)==null||N.call(a,z,I,J)}};
LjM=function(a){var z=[],I=[];a=_.C(a);for(var J=a.next();!J.done;J=a.next())J=J.value,J instanceof Element&&J.isConnected&&I.push(J),J instanceof DocumentFragment?z.push.apply(z,_.ih(Array.from(J.children))):z.push(J);return[z,I]};
lh$=function(a){return!(a instanceof Element)&&a.node instanceof Element?a.node:a};
MeM=function(a,z){var I=z?["children"].concat(_.ih(z)):["children"];z=[];I=_.C(I);for(var J=I.next();!J.done;J=I.next()){var r=J.value;if(a.hasOwnProperty(r)){J=a[r];J=typeof J==="function"?J():J;J=Array.isArray(J)?J:[J];J=Ee(J).flat();if(r!=="children"){r=JXd(r);for(var P=_.C(J),N=P.next();!N.done;N=P.next())N=N.value,N instanceof Element&&N.setAttribute("slot",r)}z.push(J)}}z.length===0?a=[]:(a=Ee(_.B("div",null,z)),a=Array.from(a.childNodes));return a};
YCm=function(a,z,I){var J={};_.iF(function(){var r={},P;for(P in z)if(z.hasOwnProperty(P)){var N=void 0,u=void 0;if(!(((N=I.slotProps)==null?0:N.includes(P))||P==="children"||((u=I.callbackProps)==null?0:u.includes(P))||P==="ref")&&(N=_.SJ(z[P]),J[P]!==N)){J[P]=N;u=void 0;var E=(u=a.hostElement)!=null?u:a;clx.has(P)&&(E[P]=N);r[P]=N}}g1(function(){if(a.setProperties)a.setProperties(r);else for(var O=_.C(Object.entries(r)),f=O.next();!f.done;f=O.next()){var A=_.C(f.value);f=A.next().value;A=A.next().value;
a[f]=A}})})};
eyx=function(a,z,I,J){var r=MeM(I,J.slotProps),P=(0,_.t3)(a);r=_.C(r);for(var N=r.next();!N.done;N=r.next())P.appendChild(N.value);YCm(z,I,J);J=_.C(J.callbackProps||[]);r=J.next();for(P={};!r.done;P={kebabEventName:void 0,eventListener:void 0},r=J.next())N=r=r.value,String(r).substring(0,2)==="on"&&I[N]?(P.kebabEventName=JXd(String(r).substring(2)),P.eventListener=I[N],a.addEventListener(P.kebabEventName,P.eventListener),_.V3(function(f){return function(){a.removeEventListener(f.kebabEventName,f.eventListener)}}(P))):
z[N]=I[N];
if(I.ref){I=_.C(qC$(I.ref));var u=I.next().value,E=I.next().value,O=z.attached.bind(z);z.attached=function(){u(a);O()};
_.V3(function(){E()})}};
qC$=function(a){if(typeof a==="function"){var z;return[function(I){z=a(I)},
function(){var I;(I=z)==null||I()}]}if(!a.onRender||!a.onUnmount)throw Error("Rg");
return[a.onRender,a.onUnmount]};
IbG=function(a,z,I,J,r){J=J===void 0?{}:J;var P=abd,N=!1;P?(N=!0,abd=void 0):(jPE=z,P=document.createElement(z),jPE=void 0);var u=P;u.usePatchedLifecycles=!0;u.lifecycleIsConnected=!1;P.loggingStatus={};var E=zJ3(a,z,P,J,r);_.V3(function(){u.lifecycleIsConnected&&(u.lifecycleIsConnected=!1,E.disconnectedCallback())});
N||(_.K("sink_wrapper_disable_runtime_shadycss")&&(P.__noInsertionPoint=!0),eyx(P,E,I,J));return P};
zJ3=function(a,z,I,J,r){r=r===void 0?ifE:r;J93[z]!=null||(J93[z]=r(a,z,J==null?void 0:J.getTemplate,J));var P=J93[z],N=P.ctor;r=P.getInitialMethods;var u=P.getPropsToForwardBeforeReady;a=P.getPropsToForwardBeforeRegister;J=P.shouldForwardProp;var E=P.observedAttributes,O=P.shouldLog,f=N(I,{beforeReady:function(){var A=f;A._takeAttributes?A._takeAttributes():A.setPropertiesFromInitialAttributeValues&&A.setPropertiesFromInitialAttributeValues();A=_.C(u(I.polymerController));for(var n=A.next();!n.done;n=
A.next()){var F=_.C(n.value);n=F.next().value;F=F.next().value;GfM(I,n,F);O(z)&&!a0(n)&&TT$(I.polymerController,n)}I.polymerController=c03(f,z)}});
I.polymerController=f;I.polymerController.observedAttributes=E;P=_.C(f.getExtraMethodsToForward());for(N=P.next();!N.done;N=P.next())E=_.C(N.value),N=E.next().value,E=E.next().value,$vi(I,N,E);r=_.C(r());for(P=r.next();!P.done;P=r.next())P=P.value,J(P)&&$vi(I,P),O(z)&&!a0(P)&&X_d(f,P);a=_.C(a());for(J=a.next();!J.done;J=a.next())r=_.C(J.value),J=r.next().value,r=r.next().value,GfM(I,J,r);return f};
PMx=function(a,z){return Jj===z?(a.isInert=!0,Jj="",!0):r9d===z?(a.isInert=!0,r9d="",!0):!1};
ZFG=function(a){var z=rd;rd=a;return z};
N6m=function(a){if(Pl.has(a))r9d=a;else if(ZA.has(a)&&rd&&CMG(rd)===a){var z;(z=rd)._numRenders!=null||(z._numRenders=0);rd._numRenders++;if(rd._numRenders>1)throw Error("Sg");return rd}};
ty7=function(a){Pl.has(CMG(a))?r9d=CMG(a):ZA.has(CMG(a))&&rd!==a&&(a._isInert=!0)};
CMG=function(a){var z;return(z=a==null?void 0:a.tagName.toLowerCase())!=null?z:""};
uR$=function(a,z){if(a.componentType===KW)throw Error("Tg");ZA.add(z);var I=function(){var J=HTMLElement.call(this)||this;J.is=z;if(jPE===z)return J.isInert=!0,J;J.createElement();return J};
_.b(I,HTMLElement);I.prototype.createElement=function(){if(!this.isInert){abd=this;var J=_.C(_.fkm(function(){return _.B(a,null)})).next().value;
abd=void 0;YAi(this);return J}};
customElements.define(z,I)};
B60=function(a,z,I,J,r){a.prototype.is=z;(J==null?0:J.useSink)?E1x(a,z,I,J,r):(I=ifE(a,z,I,J),dvO(I,z));return a};
E1x=function(a,z,I,J,r){mvx();var P=_.ec(function(N){return IbG(a,z,N,Object.assign({},J,{getTemplate:I}),r)},"a");
P.debugName=z+" (CoW wrapped)";uR$(P,z);return P};
OFE=function(a){return!g1i.has(a)};
sP7=function(a,z,I,J){function r(){if(!A){for(var n=new Set(fbm),F=_.C(P.behaviors),h=F.next();!h.done;h=F.next()){h=h.value;for(var v=_.C(Object.getOwnPropertyNames(h)),d=v.next();!d.done;d=v.next()){d=d.value;var W=void 0,l=(W=Object.getOwnPropertyDescriptor(h,d))==null?void 0:W.value;l&&l instanceof Function&&(!O[d]||_.K("polymer_forward_method_killswitch"))&&n.add(d)}}F=_.C(Object.entries(Object.getOwnPropertyDescriptors(a.prototype)));for(h=F.next();!h.done;h=F.next())v=_.C(h.value),h=v.next().value,
v=v.next().value,v.value instanceof Function&&n.add(h);A=n}return A}
var P=qdE({is:z,disableElementRegistration:!1,getTemplate:I,providers:J==null?void 0:J.providers,reactivityMode:J==null?void 0:J.reactivityMode},a);if((J==null?0:J.allowedProps)||(J==null?0:J.allowedPropsFromBehaviors)){var N,u;P.allowedProps=[].concat(_.ih((N=J.allowedProps)!=null?N:[]),_.ih((u=J.allowedPropsFromBehaviors)!=null?u:[]))}var E=wTG(P,a);z=E.observedAttributes;var O={};I=_.C(P.reactiveSchemas);for(J=I.next();!J.done;J=I.next())if(J=J.value,J.type==="signal")O[J.propertyKey]={readOnly:J.readOnly},
J.readOnly&&(O[Kc0(J.propertyKey)]={readOnly:!0});else if(J.type==="compute"||J.type==="computeWithMethod"||J.type==="redux")O[J.propertyKey]={readOnly:!0};var f=P.reactiveSchemas.length,A;return{ctor:function(n,F){n=new E(n);n.beforeReady=F.beforeReady;return n},
props:O,observedAttributes:z,getInitialMethods:r,getPropsToForwardBeforeRegister:function(){for(var n=[],F=new Set,h=_.C(A9d),v=h.next();!v.done;v=h.next())v=v.value,n.push([v,v!=="observers"&&v!=="properties"]),F.add(v);h=_.C(Object.keys(O));for(v=h.next();!v.done;v=h.next())v=v.value,n.push([v,O[v].readOnly]),F.add(v);h=r();v=_.C(Object.keys(Object.getOwnPropertyDescriptors(a.prototype)));for(var d=v.next();!d.done;d=v.next())d=d.value,!OFE(d)||h.has(d)||F.has(d)||(n.push([d,!1]),F.add(d));n.push(["allowedProps",
!0]);return n},
getPropsToForwardBeforeReady:function(n){var F=[];n=_.C(Object.keys(n));for(var h=n.next();!h.done;h=n.next()){h=h.value;var v=r();OFE(h)&&!v.has(h)&&F.push([h,!1])}n=_.C(P.reactiveSchemas.slice(f));for(h=n.next();!h.done;h=n.next())h=h.value,h.type!=="compute"&&h.type!=="computeWithMethod"&&h.type!=="redux"&&h.type!=="signal"||F.push([h.propertyKey,h.type==="signal"?h.readOnly:!0]);return F},
shouldForwardProp:OFE,shouldLog:HK}};
_.D=function(a,z,I,J){var r,P,N=(P=(r=J)==null?void 0:r.mode)!=null?P:0;J!=null||(J={});var u;(u=J).reactivityMode!=null||(u.reactivityMode=0);N===1&&_.Py("creator_poly_si_disable_list").includes(z)&&(N=2);return N===1?B60(a,z,I,Object.assign({},J,{useSink:!0}),sP7):B60(a,z,I,Object.assign({},J,{useSink:N===2}))};
_.Cw=function(){return function(a,z,I,J){var r,P,N=(P=(r=J)==null?void 0:r.mode)!=null?P:2;J!=null||(J={});var u;(u=J).reactivityMode!=null||(u.reactivityMode=0);if(N===0)throw Error("Ug`"+N);return E1x(a,z,I,J,N===1?sP7:void 0)}};
_.Np=function(a){return _.K("creator_poly_si_killswitch")?!1:_.K("force_all_poly_si_batches")&&(a==="poly_si_all_on_test_check"||a==="creator_poly_si_batch_050"?0:a)||document.documentElement.hasAttribute("use-signals")?!0:!a||_.K(a+"_holdback_enabled")&&_.K("kevlar_polysi_holdback")?!1:_.K(a)};
tj=function(a){return a?a.icon?a.icon.iconType.toLowerCase():a.customThumbnail?"member":"":""};
n1p=function(a){if(!a)return"";a=_.C(a);for(var z=a.next();!z.done;z=a.next())if((z=z.value)&&z.liveChatAuthorBadgeRenderer&&(z=tj(z.liveChatAuthorBadgeRenderer))&&z!=="verified")return z;return""};
KeE=function(a,z){if(!a)return null;var I;return((I=a.find(function(J){return J&&J.liveChatAuthorBadgeRenderer?tj(J.liveChatAuthorBadgeRenderer)===z:!1}))==null?void 0:I.liveChatAuthorBadgeRenderer)||null};
_.QPd=function(a){var z=getComputedStyle(document.querySelector("yt-live-chat-renderer")).backgroundColor;a=FeG(a);z=FeG(z);var I=HFp(a.hex);z=HFp(z.hex);var J=z[0]/255;var r=z[1]/255,P=z[2]/255,N=Math.max(J,r,P),u=Math.min(J,r,P),E=0,O=0,f=.5*(N+u);N!=u&&(N==J?E=60*(r-P)/(N-u):N==r?E=60*(P-J)/(N-u)+120:N==P&&(E=60*(J-r)/(N-u)+240),O=0<f&&f<=.5?(N-u)/(2*f):(N-u)/(2-2*f));J=[Math.round(E+360)%360,O,f];I=bFx(I,z);for(a=hJG(a.hex);I<4.5;){a=J[2]>=.5?a.darker((4.5-I)/2):a.brighter((4.5-I)/2);I=a.toString();
r=VyM(I);if(!r.length)throw Error("Qd`"+I);I=r;I=bFx(I,z)}return a.hex()};
bFx=function(a,z){a=_.ZOi(a);z=_.ZOi(z);return(Math.max(a,z)+.05)/(Math.min(a,z)+.05)};
_.uN=function(a){return"#"+("000000"+(a&16777215).toString(16)).slice(-6)};
_.Spx=function(a){for(var z=0,I=0;I<a.length;I++)z=a.charCodeAt(I)+((z<<5)-z);a="#";for(I=0;I<3;I++)a+=("00"+(z>>I*8&255).toString(16)).slice(-2);return a};
iFM=function(a){a=(a||"").split(":");a.length===1&&a.unshift("yt-icons");a[1]=a[1].toLowerCase();return a};
T6i=function(a,z){var I=(z=z===void 0?!1:z)?x4x:v1d,J=z?GUi:$4O;a.getIconNames().forEach(function(r){r=z?r:r.substring(r.indexOf(":")+1);a.name==="yt-icons"?X50.add(r):r.includes("-filled")?I.add(r):J.add(r)})};
Eg=function(a,z,I,J){I=I===void 0?!1:I;J=J===void 0?!1:J;var r,P,N;return _.t(function(u){if(u.nextAddress==1)return u.yield(d40,2);if(J)return u.return(X50.has(a));r=I?x4x:v1d;P=I?GUi:$4O;return z?(N=a.includes("-filled")?a:a.concat("-filled"),u.return(r.has(N))):u.return(P.has(a))})};
_.U4G=function(a){if(Wei(a))return a;var z=a=a.toLowerCase();(a=o1x.get(a))&&(z=a);return z};
_.Bl=function(a){if(Wei(a))return a.toString();var z=D41.get(a);if(z)return z;z=a.toLowerCase();var I="yt-icons",J=z.replace(/_/g,"-");switch(a){case "MY_CHANNEL":z="account_circle";break;case "ADD_TO_LIBRARY":z="add";break;case "ALERT_WARN_RED":z="warning";break;case "ARTIST":case "ARTIST_ANALYTICS":z="person_music";break;case "BLOCK_USER":z="block";break;case "CAPTIONS":z="closed_caption";break;case "CLOSED_CAPTION":I="av";z="closed-caption";break;case "COLLECTION":I="maps";z="layers";break;case "CONTACT":I=
"icons";z="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":I="ytcp-icons";z=J.split("creator-studio-")[1];break;case "DISMISSAL":z="close";break;case "DO_NOT_DISTURB":z="block";break;case "DOGFOOD":I="icons";z="pets";break;case "DRAFT":z="paper_corner_folded";break;
case "EMPTY_LIKE":z="like_outline";break;case "EXIT_APP":z="exit_to_app";break;case "EXPAND_MORE":case "EXPAND_LESS":z=J;break;case "GAMES":I="ytg";z="my-games";break;case "GO_TO_PAGE":z="arrow-forward";break;case "GROUP":I="social";break;case "HIDE":z="not_interested";break;case "INPUT_COMPONENT":I="icons";z="settings-input-component";break;case "KIDS_BLOCK":z="block";break;case "MEMBERSHIP_LIMITED_PRE_PURCHASE":case "MEMBERSHIP_OFFER":I="ytg";z="membership-pre-purchase";break;case "MEMBERSHIP_LIMITED_POST_PURCHASE":I=
"ytg";z="membership-post-purchase";break;case "MULTIVIEW":z="screen_multi_view";break;case "MY_LOCATION":I="maps";z=J;break;case "NOTIFICATIONS_INBOX":z="NOTIFICATIONS";break;case "NEXT":z="chevron_right";break;case "OFFLINE":z="power-settings-new";break;case "PAUSE":I="miniplayer";break;case "PAYMENT":I="icons";break;case "PHONE_DOWNLOAD":z="phone_download";break;case "PREMIUM_STANDALONE":I="yt-logos";z="premium_standalone";break;case "PREMIUM_STANDALONE_CAIRO":I="yt-logos";z="premium_standalone_cairo";
break;case "QUESTION_ANSWER":z="question_answer";break;case "REDEEM":I="icons";z="redeem";break;case "REMOVE":case "REMOVE_FROM_HISTORY":case "REMOVE_FROM_PLAYLIST":z="remove-circle-outline";break;case "SAVE_PLAYLIST":case "LIBRARY_ADD":z="library_add";break;case "SCHOOL":I="yt-sys-icons";z="creator_academy";break;case "SETTINGS_LIGHT":z="settings_applications";break;case "SETTINGS_MATERIAL":z="settings";break;case "SEARCH_HISTORY":z="watch_history";break;case "SHOPPING_BAG":z="bag";break;case "SOCIAL":case "PEOPLE":I=
"yt-icons";z="people";break;case "STAFF_PICK":I="ytg";z="spotlight";break;case "START_DVR":z="add";break;case "STOP_DVR":I="av";z="stop";break;case "TAB_LIKED":z="like";break;case "TAB_INBOX":z="mail";break;case "TERMS_OF_SERVICE":I="icons";z="description";break;case "TRENDING":z="fire";break;case "UNBLOCK_USER":z="remove";break;case "UNPLUGGED_DARK_THEME":I="image";z="brightness-3";break;case "UNPLUGGED_LIVE_GUIDE":case "LIVE":z="live";break;case "UNPLUGGED_SPORTS":I="ytu";z="visibility-off";break;
case "VIDEOS":I="av";z="play-circle-filled";break;case "YOUTUBE":I="yt-logos";z="lozenge";break;case "YOUTUBE_RED_LOGO":case "YOUTUBE_PREMIUM_LOGO":I="yt-logos-ext";z="yt-logo-red-updated";break;case "YOUTUBE_LOGO":I="yt-logos-ext";z="yt-logo-updated";break;case "OFFLINE_NO_CONTENT":I="offline-no-content";break;case "SHORTS_COMMENT":case "SHORTS_DISLIKE":case "SHORTS_LIKE":case "SHORTS_SHARE":I="shorts";z=J;break;case "OUTLINE_YOUTUBE_IMPROVE_TV":I="yt-sys-icons";z="youtube_improve_tv";break;case "OUTLINE_BAG":I=
"yt-sys-icons";z="bag";break;case "QUEUE_PLAY_LAST":I="yt-sys-icons";z="list_queue_last";break;case "SLASH_CIRCLE_LEFT":z="slash_circle_left";break;case "SPEED_1_POINT_2X":z="1_point_2x";break;case "SPEED_1_POINT_5X":z="1_point_5x";break;case "SPEED_1_POINT_8X":z="1_point_8x";break;case "SPEED_POINT_2X":z="point_2x";break;case "SPEED_POINT_5X":z="point_5x";break;case "SPEED_POINT_8X":z="point_8x";break;case "SPEED_1X":z="1x";break;case "SPEED_2X":z="2x";break;case "TAB_BOOKMARK":z="bookmark";break;
case "OUTLINE_CLOCK_HALF_CIRCLE":I="yt-sys-icons";z="clock_half_circle";break;case "YOUTUBE_SHORTS_FILL_NO_TRIANGLE_RED_16":case "YOUTUBE_SHORTS_FILL_NO_TRIANGLE_WHITE_16":I="yt-sys-icons";z="youtube_shorts_no_triangle-filled";break;case "PLAYABLES_LOGO":I="yt-sys-icons",z="tic_tac_toe"}z=I+":"+z;D41.set(a,z);return z};
Wei=function(a){var z;_.K("kevlar_use_wil_icons")?z=!!_.ab().resolve(_.gd).resolveIcon({iconName:a.toString()}):z=!1;return z};
_.fw=function(a,z,I,J){I=I===void 0?{}:I;J=J===void 0?!1:J;I===null&&(I={});var r=_.Py("kevlar_command_handler_command_banlist");r=_.C(r);for(var P=r.next();!P.done;P=r.next())if(P=a?a.hasOwnProperty(P.value):void 0,P)return!1;r=_.H(a.commandMetadata,_.O_);return J&&r!=null&&r.url?!1:!z.disableCommandHandlerOverride&&_.Og.instance?(J=_.Og.instance,I.form||(I.form={element:z}),I.form.element||(I.form.element=z),!I.clickedVisualElement&&z.visualElement&&(I.clickedVisualElement=z.visualElement),J.resolveCommand(a,
I),!0):!1};
RJE=function(a,z){a=Aj(a);for(var I=_.C(a.visibilityMonitorKeys||[]),J=I.next();!J.done;J=I.next())z.unobserveByKey(J.value);a.visibilityMonitorKeys=void 0};
w5d=function(a,z){if(_.TX()){if(_.K("kevlar_vimio_use_shared_monitor"))LeM(a,z.data);else if(!LeM(a,z.data))return;var I=z.data,J=lbd(I);if(_.K("enable_client_ve_spec_logging"))RJE(a,z.observer);else{var r=Aj(a);r.trackedParams&&r.trackedParams!==J&&RJE(a,z.observer)}r=Aj(a);!I||r.data&&r.data===I||(r.data=I);p5m(a,z);r.trackedParams=J}};
p5m=function(a,z){var I=z.observer;if(!I&&_.K("web_skip_missing_vimio_observer")){var J,r;_.Xd(new _.Fn("VisibilityObserver is not defined.",a.tagName,a.trackedParams,(J=z.data)==null?void 0:J.trackingParams,(r=z.data)==null?void 0:r.loggingDirectives))}else{var P=z.layer,N=z.visibilityCallback||function(){},u=z.prescanCallback,E=Aj(a);
J=[];z.showOption&&J.push(I.observe(a,function(){z.skipLogging&&z.skipLogging()||_.sg().reportShown(E,void 0,P);N(!0)},z.showOption));
z.hideOption&&J.push(I.observe(a,function(){_.sg().reportHidden(E,void 0,P);N(!1)},z.hideOption));
z.prescanOption&&u&&J.push(I.observe(a,function(){u()},z.prescanOption));
E.visibilityMonitorKeys=J}};
LeM=function(a,z){a=Aj(a);if(a.visualElement&&!z)return!0;if(!z)return!1;var I=!1;if(_.K("enable_client_ve_spec_logging")){var J,r;I=!!((J=z.loggingDirectives)==null?0:(r=J.clientVeSpec)==null?0:r.uiType)}J=lbd(z);if(!J&&!I)return!1;_.K("mweb_component_visibility_logging")&&(a.veContainer||(a.veContainer={}),a.veContainer.trackingParams=J);if(a.trackedParams&&a.trackedParams===J)return!1;var P;if(_.K("enable_client_ve_spec_logging")&&((P=a.visualElement)==null?0:P.isClientVe())){var N;P=(N=a.visualElement)==
null?void 0:N.getAsJspb();var u,E,O,f;if(_.za(P,2)===((u=z.loggingDirectives)==null?void 0:(E=u.clientVeSpec)==null?void 0:E.uiType)&&_.za(P,3,-1)===((O=z.loggingDirectives)==null?void 0:(f=O.clientVeSpec)==null?void 0:f.elementIndex))return!1}if(_.K("enable_client_ve_spec_logging")){var A,n;!a.visualElement&&((A=z.loggingDirectives)==null?0:(n=A.clientVeSpec)==null?0:n.uiType)&&(u=z.loggingDirectives.clientVeSpec,z=u.uiType,N=u.elementIndex,u=u.clientYoutubeData,a.visualElement=_.nw(_.Kw(),{veType:z,
elementIndex:N,clientYouTubeData:u}))}return!0};
lbd=function(a){if(a==null?0:a.rendererContext){var z=_.H(a.rendererContext,_.FJ);if(z==null?0:z.loggingDirectives)return z.loggingDirectives.trackingParams}return(a==null?0:a.loggingDirectives)?a.loggingDirectives.trackingParams:a==null?void 0:a.trackingParams};
Aj=function(a){var z;return(z=a.polymerController)!=null?z:a};
MyG=function(a){_.sg();if(_.Ue(Hl().JSC$12463_elementShouldLogGesture).bind(Hl())(a,4)){m4p(a);var z=y9G(a);kU1.set(a,z)}};
m4p=function(a){kU1.has(a)&&(kU1.get(a).cancel("untrack hover element"),kU1.delete(a))};
y9G=function(a){var z,I=[],J=!1,r=new _.Ba(function(P,N){bN(a,"mouseenter",_.Ue(function(){var u,E,O;return _.t(function(f){if(f.nextAddress==1)return z=(0,_.jp)(),u=c9I(a),I.push(u),E=Ypm(a,function(){J=!0;N(Error("Vg"))}),f.yield(u,2);
if(f.nextAddress!=3)return E&&hj(E),O=qpE(a),I.push(O),f.yield(O,3);P();_.nu(f)})}))});
r.then(function(){var P=(0,_.jp)()-z;P=Math.round(P);if(!(500>P||6E5<=P)){var N=a.getScreenLayer?a.getScreenLayer():void 0;N=_.TX(N)||"";var u=eJ0(_.sg(),a);_.kA(N,a.visualElement?a.visualElement:_.VX(u),"INTERACTION_LOGGING_GESTURE_TYPE_HOVER",{hoverData:{durationHoveredMs:P}})}MyG(a)},function(){QX&&(QX(),QX=null);
J&&(m4p(a),MyG(a))});
return r};
c9I=function(a){var z;return(new _.Ba(function(I,J){QX=function(){J(Error("Wg"))};
z=_.GW.debounce(_.Ue(function(){hj(r);I()}),1,100);
var r=_.Sg(a,"mousemove",z)})).thenCatch(function(){var I=_.GW.cancelDebouncedJobMap.get(z);
I&&_.GW.cancelJob(I)})};
qpE=function(a){var z;return(new _.Ba(function(I,J){QX=function(){J(Error("Xg"))};
z=bN(a,"mouseleave",_.Ue(function(){I()}))})).thenCatch(function(){hj(z)})};
Ypm=function(a,z){return bN(a,"mouseleave",_.Ue(z))};
jC0=function(a){aCx&&_.iN.cancel(aCx);aCx=_.iN.run(function(){_.PA(a,"yt-visibility-refresh");aCx=0})};
zl$=function(a){a=Number(a);return"rgba("+[a>>16&255,a>>8&255,a&255,(a>>24&255)/255].join()+")"};
Jd3=function(a){if(!a)return!1;if(_.H(a,_.IC0))return!0;var z;if(a=(z=_.H(a,_.E_))==null?void 0:z.commands)for(z=_.C(a),a=z.next();!a.done;a=z.next())if(_.H(a.value,_.IC0))return!0;return!1};
rd$=function(a){var z=!0;z=z===void 0?!0:z;if(!a.useSignals&&!a.experimentalPropertiesChanged||_.K("experimental_templating_behavior_nopatch_killswitch")){var I=a._propertiesChanged;a._propertiesChanged=function(J,r,P){z?a.debounceRender():a.doRender();I&&I.call(a,J,r,P)}}};
P5G=function(a,z){if(a.useSignals||a.experimentalPropertiesChanged)if(_.K("experimental_templating_behavior_nopatch_killswitch"))a.experimentalPropertiesChanged=function(){};
else return;var I=new Set,J=[a].concat(_.ih(a.behaviors));J=_.C(J);for(var r=J.next();!r.done;r=J.next()){r=r.value;for(var P in r.properties)I.has(P)||(a._addPropertyEffect(P,"function",z),I.add(P))}};
ZKp=function(){var a=Polymer.Element,z=a._prepareTemplate;a._prepareTemplate=function(){z.call(this);var I=this.prototype;if(I.experimentalTemplatingInUse&&I.experimentalTemplatingInUse()&&I.switchTemplateAtRegistration&&this.template!==void 0)if(typeof this.template==="string")_.Gx(Error("Yg"));else{I=this.template.content.childNodes;for(var J=I.length-1;J>=0;J--){var r=I[J];r.nodeName!=="STYLE"&&r.nodeName!=="LINK"&&r.nodeName!=="SCRIPT"&&r.nodeName!=="#comment"&&r.remove()}}}};
C5$=function(a){var z=!0;z=z===void 0?!0:z;ZKp();var I=a.ready;a.ready=function(){this._template=null;I.call(this)};
P5G(a,z?a.debounceRender:a.doRender)};
tR3=function(a,z,I){if(I===null||I===void 0)return I;var J=IVm(a.tagName.toLowerCase(),z,function(){throw Error("Ob");});
if(J===null)return I;J=NxG[J];var r;if((r=J.isUnwrappable)==null?0:r.call(J,I)){if(J.unwrap)return J.unwrap(I);throw Error("ah");}return J.filterString?J.filterString(a.tagName,z,String(I)):I};
uaM=function(a,z,I){var J=z[z.length-1]!=="$",r=tR3(a,z,I);if(J)if(typeof r==="function"&&z.startsWith("reactiveon")&&z===z.toLowerCase()){var P=kl;EvE(a,z.slice(8),function(N){xX(P,function(){r(N)})})}else a[z]=r;
else I=r==null?null:String(r),Xp(a,z.slice(0,-1),I)};
vl=function(a){E61.length===0&&requestAnimationFrame(function(){setTimeout(function(){var z=E61.slice();E61.length=0;z=_.C(z);for(var I=z.next();!I.done;I=z.next()){I=I.value;try{I()}catch(J){_.xN(J)}}})});
E61.push(a)};
BxM=function(a){if(a){var z=a.component;if(z){var I;z==null||(I=z.events)==null||I.publish("DISCONNECTED");var J;z==null||(J=z.onDisconnected)==null||J.call(z)}var r,P;(r=a.__spec)==null||(P=r.didUnmount)==null||P.call(r);for(z=0;z<a.childNodes.length;z++)BxM(a.childNodes[z])}};
g6M=function(a,z,I){var J=z&&z.key,r=w1;r[0]=a;r[1]=J;r[2]=void 0;for(var P in z)z.hasOwnProperty(P)&&(a=z[P],J=mA,J.push(P),J.push(a));z=w1;a:{if(P=w1[2])for(a=0;a<P.length;a+=2)if(P[a]==="nonce"){P=P[a+1];break a}P=""}P=VHG(z[0],z[1],P);a=d1(P);J=z[2];if(!a.staticsApplied&&(a.staticsApplied=!0,J&&J.length))if((r=a._attrsArr)&&r.length){for(r=0;r<J.length;r+=2)GQ[J[r]]=r+1;r=a._attrsArr||(a._attrsArr=uk0(0));for(var N=0,u=0;u<r.length;u+=2){var E=r[u],O=r[u+1],f=GQ[E];f?J[f]===O&&delete GQ[E]:(r[N]=
E,r[N+1]=O,N+=2)}Ge(r,N);for(var A in GQ)AG0(P,A,J[GQ[A]],eF),delete GQ[A]}else for(A=0;A<J.length;A+=2)AG0(P,J[A],J[A+1],eF);XvI(P,a,eF);Ge(z,0);I&&I(Uf);QGp()};
_.$N=function(a,z,I){I===void 0?delete a[z.name]:a[z.name]=I};
_.XJ=function(a){var z={androidIncludeFontPadding:!1},I=0,J=[],r=[],P=[];if(a.simpleText)return z.content=a.simpleText,z;if(a.runs===void 0)return z.content="",z;a=_.C(a.runs);for(var N=a.next();!N.done;N=a.next()){N=N.value;var u=N.text,E=void 0,O=(E=u)==null?void 0:E.length;if(u&&O){J.push(u);if(N.bold||N.italics||N.strikethrough||N.underline||N.textColor!=null&&N.textColor!==0||N.deemphasize){u=r;E=u.push;var f={startIndex:I,length:O};N.bold&&(f.weightLabel="FONT_WEIGHT_MEDIUM");N.italics&&(f.italic=
!0);N.strikethrough&&(f.strikethrough="LINE_STYLE_SINGLE");N.underline&&(f.underline="LINE_STYLE_SINGLE");N.textColor!=null&&N.textColor!==0?document.documentElement.hasAttribute("dark")?f.fontColor=N.darkModeTextColor||N.textColor:f.fontColor=N.textColor:N.deemphasize&&(document.documentElement.hasAttribute("dark")?f.fontColor=parseInt("ff"+OKG("#aaa").substring(1),16):f.fontColor=parseInt("ff"+OKG("#606060").substring(1),16));E.call(u,f)}N.navigationEndpoint&&(u=P,E=u.push,f={startIndex:I,length:O,
onTap:{innertubeCommand:N.navigationEndpoint}},N.loggingDirectives&&_.$N(f,fCm,N.loggingDirectives),E.call(u,f));I+=O}}z.content=J.join("");z.styleRuns=r.length?r:void 0;z.commandRuns=P.length?P:void 0;return z};
sC0=function(a){if(a==null||!a.runs)return!0;a=_.C(a.runs);for(var z=a.next();!z.done;z=a.next())if(z=z.value,z.bracket||z.errorUnderline||z.deemphasize||_.H(z,TQ)||_.H(z,AdM))return!1;return!0};
n60=function(a,z){return function(I){var J=z.unit;if(J!==I)throw Error("dh`"+a+"`"+J+"`"+I);return z}};
dd=function(a){if(!((a==null?0:a.value)&&(a==null?0:a.unit)))return"";switch(a.unit){case "DIMENSION_UNIT_FRACTION":var z="%";break;default:z="px"}a=a.value;z==="%"&&(a*=100);return""+a+z};
KvG=function(a){try{return a()}catch(z){_.Xd(z)}};
_.o0=function(a){var z=_.H(a,_.Wl);if(z)return z;if((z=_.H(a,FvG))&&z.commands)return HK1(z.commands);if((z=_.H(a,bKp))&&z.commands)return HK1(z.commands);if((a=_.H(a,hl1))&&a.identifier&&a.command&&(VRx||(VRx=[]),!VRx.includes(a.identifier)))return VRx.push(a.identifier),_.H(a.command,_.Wl)};
HK1=function(a){if(a.length!==0){var z=[];a=_.C(a);for(var I=a.next();!I.done;I=a.next())(I=_.o0(I.value))&&z.push(I);return{commandExecutorCommand:{commands:z}}}};
_.R0=function(a){var z=a.defaultTarget,I=a.elementConfig,J=a.elementsCommand,r=a.skipOnClick,P=a.forceNewState,N=a.additionalCommandArgs,u=a.innertubeCommand||_.o0(J);if(u){a={};var E=QCO(u);J=E.navigatingCommand;E=E.href;J&&E?(a.href$=E,SqI(a,J,E,z),_.K("web_atagconfig_pointerdown")&&iKM(a,J),P&&(a["force-new-state$"]=!0)):(a.role$="button",a.href$="javascript:void(0);");_.H(u,xB0)&&(a["aria-haspopup$"]=!0);r||(a.onclick=function(O){var f={};if(v6d(O)){var A=(N==null?void 0:N.clickedVisualElement)||
(N==null?void 0:N.getClickedVisualElement)&&N.getClickedVisualElement();A&&(f={clickedVisualElement:A});f=Object.assign({},{form:{element:O.target,event:O,createScreenConfig:f}},N);O.preventDefault();_.DA(u,f)}});
return Object.assign({},I,a)}};
G67=function(a){if(a.length){if(a.length===1)return a[0];var z={};_.$N(z,_.E_,{commands:a});return z}};
Lw=function(a){return a&&a.href$!=="javascript:void(0);"};
QCO=function(a){var z,I=((z=_.H(a,_.E_))==null?void 0:z.commands)||[a];a=_.C(I);for(z=a.next();!z.done;z=a.next()){z=z.value;var J=void 0,r=void 0;I=(r=_.H((J=z)==null?void 0:J.commandMetadata,_.O_))==null?void 0:r.url;_.K("web_remove_web_navigation_endpoint_data")||(J=void 0,I=I||((J=_.H(z,$B1))==null?void 0:J.url));if(I&&I!=="/service_ajax"){if(J=_.GN(I,XQG))return a=_.ij(J),{navigatingCommand:z,href:a};_.Xd(new _.Fn("AttributedString URL could not be sanitized",I))}}return{}};
v6d=function(a){return a.button!==void 0?a.button===0&&!(a.shiftKey||a.altKey||a.metaKey||a.ctrlKey):!(a.shiftKey||a.altKey||a.metaKey||a.ctrlKey)};
SqI=function(a,z,I,J){I=!YS(I);var r,P,N;if((r=_.H(z,_.KH))!=null&&r.nofollow||(P=_.H(z,_.MZ))!=null&&P.nofollow||(N=_.H(z,_.pv))!=null&&N.nofollow||I)a.rel$="nofollow";var u;z=((u=_.H(z,_.pv))==null?void 0:u.target)==="TARGET_NEW_WINDOW"?"_blank":J===void 0?"":J;a.target$=z};
iKM=function(a,z){z.clickTrackingParams&&(a.params={itct:z.clickTrackingParams});a.onpointerdown=function(I){_.TxG(I)};
a._data=z};
_.dB0=function(a){(a.loggingUrls||[]).forEach(function(z){pI(z.baseUrl,z.attributionSrcMode)})};
_.TxG=function(a){var z=a.currentTarget;a=KvG(function(){return z.href});
var I=z.params;a&&_.el(a,I||{},8,!0)};
_.lN=function(a,z){(a=_.o0(a))&&_.DA(a,z)};
_.DA=function(a,z){itG(function(I){z?I.resolveCommand(a,z):I.resolveCommand(a)})};
DBO=function(a,z){var I=["yt-core-attributed-string__link"];z!=null&&z.noLinkColor||((z==null?0:z.isOverlay)?I.push("yt-core-attributed-string__link--overlay-call-to-action-color"):I.push("yt-core-attributed-string__link--call-to-action-color"),(z==null?0:z.linkInheritColor)&&I.push("yt-core-attributed-string--link-inherit-color"));I={className:I.join(" "),tabindex$:"0"};var J=a.onTap||a.onLongPress;if(!J)return I;var r=Wv$(a);r&&(I["aria-label$"]=r);z=_.R0({elementsCommand:J,elementConfig:I,skipOnClick:!(z==
null||!z.skipOnClick),forceNewState:!0});a.onLongPress&&(J=new o6m(function(){var P=_.o0(a.onLongPress);P&&_.ab().resolve(_.j6).resolveCommand(P)}),z&&UB3(J,z));
return z||I};
Wv$=function(a){var z,I;return(z=a.onTapOptions)==null?void 0:(I=z.accessibilityInfo)==null?void 0:I.accessibilityLabel};
Rl1=function(a){var z=a;a<=16777215&&(z+=parseInt("ff000000",16));return _.RX(z)};
LvI=function(a){var z=a.isDarkTheme;var I=a.extension;a=a.runColor;var J=void 0;if(I=I==null?void 0:I.colorMap){z=z?"USER_INTERFACE_THEME_DARK":"USER_INTERFACE_THEME_LIGHT";I=_.C(I);for(var r=I.next();!r.done;r=I.next())if(r=r.value,z===r.key){J=r.value;break}}J==null&&a&&(J=a);if(J)return Rl1(J)};
pw=function(a){var z=a.config;var I=a.image;var J=a.imageConfig;var r=a.imageWrapperConfig;var P=a.run;var N=a.tag;var u=a.textLength;var E=a.startIndex===void 0?0:a.startIndex;a=a.length;E===void 0&&(E=0);P={run:P,startIndex:E,endIndex:a!==void 0?E+a:u,tag:N};I&&(P.image=I);J&&(P.imageConfig=J);r&&(P.imageWrapperConfig=r);z&&(P.config=z);return P};
pQx=function(a,z){var I=[];I.push("yt-core-attributed-string");(z==null?0:z.className)&&I.push(z==null?void 0:z.className);(z==null?0:z.ellipsisTruncate)?I.push("yt-core-attributed-string--ellipsis-truncate"):(z==null?0:z.noWrap)?I.push("yt-core-attributed-string--white-space-no-wrap"):(z==null?0:z.noPreWrap)||I.push("yt-core-attributed-string--white-space-pre-wrap");(z==null?0:z.linkInheritColor)&&I.push("yt-core-attributed-string--link-inherit-color");a.alignment&&I.push(lCM(a.alignment));a.lineBreakMode&&
I.push("yt-core-attributed-string--word-wrapping");return I.join(" ")};
wQ$=function(a,z){if(a.weight)return a.weight;switch(a.weightLabel){case "FONT_WEIGHT_THIN":return 100;case "FONT_WEIGHT_EXTRA_LIGHT":return 200;case "FONT_WEIGHT_LIGHT":return 300;case "FONT_WEIGHT_MEDIUM":return 500;case "FONT_WEIGHT_SEMI_BOLD":return 600;case "FONT_WEIGHT_BOLD":return z?900:700;case "FONT_WEIGHT_EXTRA_BOLD":return 800;case "FONT_WEIGHT_BLACK":return 900;default:return 400}};
mB3=function(a){switch(a){case "LINE_STYLE_DOT":return"yt-core-attributed-string--line-style-dot";case "LINE_STYLE_NONE":return"yt-core-attributed-string--line-style-none";default:return"yt-core-attributed-string--line-style-single"}};
lCM=function(a){switch(a){case "TEXT_ALIGNMENT_LEFT":return"yt-core-attributed-string--text-alignment-left";case "TEXT_ALIGNMENT_RIGHT":return"yt-core-attributed-string--text-alignment-right";case "TEXT_ALIGNMENT_CENTER":return"yt-core-attributed-string--text-alignment-center";case "TEXT_ALIGNMENT_JUSTIFIED":return"yt-core-attributed-string--text-alignment-justified";case "TEXT_ALIGNMENT_LAYOUT_START":return"yt-core-attributed-string--text-alignment-layout-start";default:return"yt-core-attributed-string--text-alignment-unknown"}};
yX=function(a,z,I){var J=z;a.content&&I&&(I=a.content.indexOf("\n"),I!==-1&&(J=Math.min(z,I)));if(!a.content||a.content.length<=J)z=a;else if(a.attachmentRuns||a.commandRuns||a.decorationRuns||a.styleRuns||a.paragraphStyleRuns){z=wd(a.content,J);I=J;var r=a.attachmentRuns;if(r){var P=[];r=_.C(r);for(var N=r.next();!N.done;N=r.next())N=Object.assign({},N.value),N.startIndex===void 0||N.startIndex>=I||(N.length||(N.length=0),N.length+N.startIndex>I&&(N.length=I-N.startIndex),P.push(N));I=P}else I=void 0;
P=yd3(J,a.commandRuns);r=J;var u=a.decorationRuns;if(u){N=[];u=_.C(u);for(var E=u.next();!E.done;E=u.next()){E=E.value;var O=_.H(E.textDecorator,mo);if(O&&O.startIndex!==void 0&&!(O.startIndex>=r)){E=Object.assign({},E,{textDecorator:{highlightTextDecorator:Object.assign({},O)}});O=_.H(E.textDecorator,mo);if(!O.length||O.length+O.startIndex>r)O.length=r-O.startIndex;N.push(E)}}r=N}else r=void 0;N=yd3(J,a.styleRuns);if(u=a.paragraphStyleRuns)for(a=[],u=_.C(u),E=u.next();!E.done;E=u.next()){var f=E.value;
E=Object.assign({},f);if(!(E.startIndex===void 0||E.startIndex>=J)){if(!E.length||E.length+E.startIndex>J)E.length=J-E.startIndex;O=[];var A=void 0,n=void 0;if((A=f)==null?0:(n=A.listGroup)==null?0:n.listItems)for(f=_.C(f.listGroup.listItems),A=f.next();!A.done;A=f.next())if(A=Object.assign({},A.value),!(A.startIndex===void 0||A.startIndex>=J)){if(!A.length||A.length+A.startIndex>J)A.length=J-A.startIndex;O.push(A)}O.length>0&&(E.listGroup||(E.listGroup={}),E.listGroup=Object.assign({},E.listGroup,
{listItems:O}));a.push(E)}}else a=void 0;z={content:z,attachmentRuns:I,commandRuns:P,decorationRuns:r,styleRuns:N,paragraphStyleRuns:a}}else z=Object.assign({},a,{content:wd(a.content,J)});return z};
yd3=function(a,z){if(z){var I=[];z=_.C(z);for(var J=z.next();!J.done;J=z.next())if(J=Object.assign({},J.value),!(J.startIndex===void 0||J.startIndex>=a)){if(!J.length||J.length+J.startIndex>a)J.length=a-J.startIndex;I.push(J)}return I}};
wd=function(a,z){var I=z,J;if(J=I>0)J=a.charCodeAt(I-1),J=J>=55296&&J<=56319;J&&(I=a.charCodeAt(I),J=I>=56320&&I<=57343);J&&--z;return a.substring(0,z)};
Yqx=function(a,z,I){I=I===void 0?k6m:I;if(a){var J=_.ab().resolve(jH);J||_.K("mweb_no_observer_killswitch")?w5d(a,{data:z,observer:J,visibilityCallback:I,hideOption:MRG,showOption:cdG,layer:a.layer}):_.Xd(new _.Fn("Warning: monitorVisibility called with null observer",a.tagName,z==null?void 0:z.loggingDirectives,z==null?void 0:z.trackingParams))}else _.Xd(new _.Fn("Warning: monitorVisibility called with null element",z==null?void 0:z.loggingDirectives,z==null?void 0:z.trackingParams,z==null?void 0:
z.rendererContext))};
JFp=function(a,z){var I=[],J=a.content.length,r,P=(r=_.ab().resolve(_.eL(_.kN)))==null?void 0:r();if(a.paragraphStyleRuns){r=_.C(a.paragraphStyleRuns);for(var N=r.next();!N.done;N=r.next()){var u=I.push,E=u.apply;var O=void 0;N=N.value;if((O=N.listGroup)!=null&&O.listItems){O=[];b:switch(N.listGroup.listType){case "LIST_TYPE_BULLET":var f="ul";break b;default:f="span"}O.push(pw({run:N,textLength:J,tag:f,config:{className:"yt-core-attributed-string__list-group"},startIndex:N.startIndex,length:N.length}));
f=_.C(N.listGroup.listItems);for(var A=f.next();!A.done;A=f.next()){A=A.value;b:switch(N.listGroup.listType){case "LIST_TYPE_BULLET":var n="li";break b;default:n="span"}O.push(pw({run:N,textLength:J,tag:n,startIndex:A.startIndex,length:A.length}))}N=O}else N=[];E.call(u,I,_.ih(N))}}if(a.styleRuns&&(z==null||!z.noStyleRuns))for(r=_.C(a.styleRuns),u=r.next();!u.done;u=r.next()){N=u=u.value;O=P;E=z;O=LvI({extension:_.H(N.styleRunExtensions,qqp),isDarkTheme:O===void 0?!1:O,runColor:N.fontColor});A=N;
f=[];O&&f.push("yt-core-attributed-string--link-inherit-color");A.italic&&f.push("yt-core-attributed-string--italicized");A.underline&&A.strikethrough?f.push("yt-core-attributed-string--underline-strikethrough",mB3(A.underline)):A.underline?f.push("yt-core-attributed-string--underlined",mB3(A.underline)):A.strikethrough&&f.push("yt-core-attributed-string--strikethrough",mB3(A.strikethrough));if(A.baselineOffset){a:switch(A.baselineOffset){case "BASELINE_OFFSET_SUBSCRIPT":A="yt-core-attributed-string--baseline-offset-subscript";
break a;case "BASELINE_OFFSET_SUPERSCRIPT":A="yt-core-attributed-string--baseline-offset-superscript";break a;default:A="yt-core-attributed-string--baseline-offset-unknown"}f.push(A)}f=f.join(" ");A={};if(N.weight||N.weightLabel)A.fontWeight=wQ$(N,E==null?void 0:E.isHeadline).toString();O&&(A.color=O);I.push(pw({run:u,textLength:J,tag:"span",config:{className:f,style:A},startIndex:u.startIndex,length:u.length}))}if(a.decorationRuns)for(r=_.C(a.decorationRuns),u=r.next();!u.done;u=r.next())u=u.value,
E={},u.textDecorator&&(f=u.textDecorator,N=P===void 0?!1:P,A=[],O=_.H(f,mo),f=_.H(f,elx),O?(f=A,A=f.concat,n=[],(N=LvI({extension:_.H(O.highlightTextDecoratorExtensions,aQd),isDarkTheme:N,runColor:O.backgroundColor}))&&n.push("background-color: "+N+";"),O.backgroundCornerRadius!==void 0&&n.push("border-radius: "+O.backgroundCornerRadius+"px;"),O.leftPadding!==void 0&&n.push("padding-left: "+O.leftPadding+"px;"),O.rightPadding!==void 0&&n.push("padding-right: "+O.rightPadding+"px;"),O.topPadding!==
void 0&&n.push("padding-top: "+O.topPadding+"px;"),O.bottomPadding!==void 0&&n.push("padding-bottom: "+O.bottomPadding+"px;"),A=A.call(f,n)):f&&(O=A,A=O.concat,N=N?"#2ba640":"#107516",N=f.color?Rl1(f.color):N,N=["padding: 2px;","border-top: solid "+N+" 2px;","border-bottom: solid "+N+" 2px;","background: linear-gradient(135deg, "+N+" 3px, rgba(0, 0, 0, 0) 3px),\n      linear-gradient(315deg, "+N+" 3px, rgba(0, 0, 0, 0) 3px);"],A=A.call(O,N)),N=A.join(" "),E.style$=N,N=u.textDecorator,O=[],f=_.H(N,
elx),_.H(N,mo)?O.push("yt-core-attributed-string--highlight-text-decorator"):f&&O.push("yt-core-attributed-string--bracket-text-decorator"),N=O.join(" "),E.className=N,E.dir="auto"),N=_.H(u.textDecorator,mo),O=_.H(u.textDecorator,elx),f=_.H(u.textDecorator,mo),A=_.H(u.textDecorator,elx),I.push(pw({run:u,textLength:J,tag:"span",config:E,startIndex:(N==null?void 0:N.startIndex)||(O==null?void 0:O.startIndex)||0,length:(f==null?void 0:f.length)||(A==null?void 0:A.length)||0}));if(a.commandRuns&&(z==
null||!z.noEndpoints))for(P=_.C(a.commandRuns),r=P.next();!r.done;r=P.next())r=r.value,u=DBO(r,z),I.push(pw({run:r,textLength:J,tag:"a",config:u,startIndex:r.startIndex,length:r.length}));if(a.attachmentRuns)for(a=_.C(a.attachmentRuns),P=a.next();!P.done;P=a.next()){P=P.value;E=u=void 0;r={className:"yt-core-attributed-string--inline-block-mod"};if((E=P.element)==null?0:E.properties){E=(u=P.element)==null?void 0:u.properties;u=[];E=_.H(E,jeG);if(E==null?0:E.margin)E=E.margin,E.left&&u.push("margin-left: "+
dd(E.left)+";"),E.right&&u.push("margin-right: "+dd(E.right)+";"),E.top&&u.push("margin-top: "+dd(E.top)+";"),E.bottom&&u.push("margin-bottom: "+dd(E.bottom)+";");u=u.length!==0?u.join(" "):void 0;r.style$=u}N=void 0;u={alt:"",preserveHeight:!0,preserveWidth:!0};E=["yt-core-attributed-string__image-element"];if(P.alignment){a:switch(P.alignment){case "ALIGNMENT_BASELINE":O="yt-core-attributed-string__image-element--image-alignment-baseline";break a;case "ALIGNMENT_VERTICAL_CENTER":O="yt-core-attributed-string__image-element--image-alignment-vertical-center";
break a;default:O="yt-core-attributed-string__image-element--image-alignment-bottom"}E.push(O)}if((N=P.element)==null?0:N.properties)N=[],O=_.H(P.element.properties,jeG),(O==null?0:O.height)&&N.push("height: "+dd(O.height)+";"),(O==null?0:O.width)&&N.push("width: "+dd(O.width)+";"),N=N.length!==0?N.join(" "):void 0,u.style$=N,O=void 0,N=((O=_.H(P.element.properties,zf1))==null?void 0:O.label)||"",u.alt=N;u.className=E.join(" ");E=void 0;f=O=void 0;N=((f=P.element)==null?0:f.type)?(O=_.H(P.element.type,
IQi))==null?void 0:O.image:void 0;I.push(pw({run:P,textLength:J,tag:"img",image:N,imageConfig:u,imageWrapperConfig:r,startIndex:P.startIndex,length:(E=P.length)!=null?E:0}))}if(z==null?0:z.headerRuns)for(z=_.C(z.headerRuns),a=z.next();!a.done;a=z.next())if(a=a.value,a.headerMapping&&["ATTRIBUTED_STRING_HEADER_MAPPING_HEADING_1","ATTRIBUTED_STRING_HEADER_MAPPING_HEADING_2","ATTRIBUTED_STRING_HEADER_MAPPING_HEADING_3"].includes(a.headerMapping)){a:{switch(a.headerMapping){case "ATTRIBUTED_STRING_HEADER_MAPPING_HEADING_1":P=
"yt-core-attributed-string--heading-1";break a;case "ATTRIBUTED_STRING_HEADER_MAPPING_HEADING_2":P="yt-core-attributed-string--heading-2";break a;case "ATTRIBUTED_STRING_HEADER_MAPPING_HEADING_3":P="yt-core-attributed-string--heading-3";break a}P=void 0}I.push(pw({run:a,textLength:J,tag:"span",config:P?{className:P}:void 0,startIndex:a.startIndex,length:a.length}))}return I};
_.Mp=function(a){return(a==null?void 0:a.content)!==void 0};
rFG=function(a){return _.Mp(a)?a:_.XJ(a)};
PDO=function(a){return a.image!==void 0&&a.imageConfig!==void 0};
Zyd=function(a,z){if(z==null?0:z.userInput)for(a=_.C(a),z=a.next();!z.done;z=a.next())if(z=z.value,z.tag!=="a"&&z.tag!=="li"){var I=void 0;(I=z).config||(I.config={});z.config.dir=z.tag==="ul"?_.ab().resolve(_.cl):"auto"}};
CD$=function(a){return function(z){var I=a.run;(I.onTap!==void 0||I.onLongPress!==void 0)&&_.H(I,fCm)&&Yqx(z,{loggingDirectives:_.H(I,fCm)})}};
NmG=function(a){return function(z){for(var I in a)(eF[I]||eF[Te["default"]])(z,I,a[I])}};
Bmx=function(a,z){twI(z);var I={data:null,start:0,end:a.length,parts:[]};z=_.C(z);for(var J=z.next();!J.done;J=z.next())J=J.value,uAG(I,J.startIndex,J.endIndex,J);ECG(a,I);return I};
uAG=function(a,z,I,J){for(var r=_.C(a.parts),P=r.next();!P.done;P=r.next()){P=P.value;if(typeof P==="string")throw Error("fh");if(P.start<=z&&I<=P.end){uAG(P,z,I,J);return}}a.parts.push({data:J,parts:[],start:z,end:I})};
ECG=function(a,z){for(var I=z.parts.length;I>=0;I--){var J=z.parts[I],r=z.parts[I-1],P=I===z.parts.length?z.end:J.start;r=I===0?z.start:r.end;P!==r&&z.parts.splice(I,0,a.slice(r,P));J&&ECG(a,J)}};
twI=function(a){a.sort(function(z,I){if(z.startIndex<I.startIndex)return-1;if(I.startIndex<z.startIndex)return 1;z=z.endIndex-z.startIndex;I=I.endIndex-I.startIndex;return z>I?-1:I>z?1:0})};
_.gC1=function(a){var z=a.thumbnails;if(z){a={sources:[]};z=_.C(z);for(var I=z.next();!I.done;I=z.next()){I=I.value;var J={};J.url=I.url;J.width=I.width;J.height=I.height;a.sources.push(J)}return a}};
Oyp=function(a,z,I,J){if(!z)return a.length>=1?a[a.length-1]:null;if(J)for(var r=_.C(a),P=r.next();!P.done;P=r.next()){P=P.value;var N=void 0,u=(N=P.url)==null?void 0:N.indexOf(J);if(u!==void 0&&u>=0)return P}J=_.C(a);for(r=J.next();!r.done;r=J.next())if(r=r.value,r.width&&r.height&&(I&&r.width>=z||!I&&r.height>=z))return r;for(z=a.length-1;z>=0;z--)if(I&&a[z].width||!I&&a[z].height)return a[z];return a[0]};
_.fQ0=function(a){var z;return(a=(z=a.sources)==null?void 0:z[0])?a.width/a.height:0};
_.AFp=function(a){if(a.sources){a=_.C(a.sources);for(var z=a.next();!z.done;z=a.next()){z=z.value;var I=void 0;if((I=z.clientResource)==null?0:I.imageName)return z}}};
sei=function(a){var z;if((z=a.clientResource)!=null&&z.imageColor)return _.RX(a.clientResource.imageColor)};
_.KxM=function(a,z,I,J,r,P,N){if(!z||z.length===0||z[0].clientResource)return null;if(I&&z[0].url)return z[0].url;J===void 0&&(J=!0);if(J){var u;a=nCm*(r||(a==null?void 0:(u=a.getBoundingClientRect())==null?void 0:u.width)||0)}else{var E;a=nCm*(P||(a==null?void 0:(E=a.getBoundingClientRect())==null?void 0:E.height)||0)}z=Oyp(z,a,J,N);return(z==null?0:z.url)?z.url:(z==null?0:z.imageData)?z.imageData:null};
Fxi=function(a,z,I){I=I?[I]:[];a.opacity&&I.push("opacity: "+a.opacity+";");z&&a.placeholderColor?(a=_.RX(a.placeholderColor),I.push("background-color: "+a+";")):I.push("background-color: transparent;");return I.join(" ")};
HyM=function(a,z,I,J,r){var P=["yt-core-image"];z&&P.push(z);I||P.push("yt-core-image--fill-parent-height");J||P.push("yt-core-image--fill-parent-width");switch(a.contentMode){case "CONTENT_MODE_SCALE_ASPECT_FIT":P.push("yt-core-image--content-mode-scale-aspect-fit");break;case "CONTENT_MODE_SCALE_ASPECT_FILL":P.push("yt-core-image--content-mode-scale-aspect-fill");break;case "CONTENT_MODE_CENTER":P.push("yt-core-image--content-mode-center");break;default:P.push("yt-core-image--content-mode-scale-to-fill")}a.flipForRtlLayout&&
P.push("yt-core-image--flip-rtl");switch(r){case "TOP_START":var N;P.push(((N=document.body)==null?void 0:N.getAttribute("dir"))==="rtl"?"yt-core-image--object-position-top-right":"yt-core-image--object-position-top-left")}return P.join(" ")};
hfE=function(a){var z;if(a==null?0:(z=a.clientResource)==null?0:z.imageName){var I;a=(I=a.clientResource)==null?void 0:I.imageName;a:{switch(a){case "yt_premium_wordmark_header_light":case "yt_premium_wordmark_header_dark":I="yt-logos-ext:yt-logo-red-updated";break a;case "yt_wordmark_header_light":case "yt_wordmark_header_dark":I="yt-logos-ext:yt-logo-updated";break a}I=void 0}return I||byp.get(a)||a}};
Svp=function(a){return _.K("mweb_wiz_skip_render")?VwI(a):QeO(a)};
VwI=function(a){return function(z){var I=VHG("wink-root");ScG();QGp();cE$(I,_.B(a,z))}};
QeO=function(a){var z=z===void 0?!1:z;return function(I){if(!z||!_.K("mweb_skip_keto_to_c3_if_no_data")||I.data!==void 0){var J=aL(!1);try{var r=I.children;_.K("mweb_render_outside_patch_killswitch")||Uf?r?qm(_.B(a,I,r)):qm(_.B(a,I)):_.Xd(new _.Fn("ketoToC3 called outside of a patch",{tagName:a.TAG_NAME}))}finally{aL(J)}}}};
iyO=function(){return window.matchMedia&&window.matchMedia("(orientation: landscape)").matches};
vCd=function(a,z){a.onViewportEntered=z;xGx.observe(a)};
G_$=function(){var a={rootMargin:"10%",threshold:.01};_.K("mweb_enable_set_io_root_to_null_safari")?a.root=null:_.K("mweb_enable_set_io_root_to_body_safari")&&(a.root=document.body);return new IntersectionObserver(function(z,I){z.filter(function(J){return J.intersectionRect.height>0}).forEach(function(J){J=J.target;
if(!_.K("mweb_enable_only_update_image_when_connected")||J.isConnected!==!1){var r;(r=J.onViewportEntered)==null||r.call(J);I.unobserve(J)}})},a)};
$Gi=function(a,z,I,J,r){function P(){if(J){var u=J.loadedClass,E=J.notifyOnUnloaded;u&&_.YN(a,u);E&&a.dispatchEvent(new Event("image-unloaded",{bubbles:!0,composed:!0}))}}
function N(){var u=I(z,a);u&&a.getAttribute("src")!==u&&(_.K("mweb_enable_only_update_image_when_connected")&&a.isConnected===!1||u===a.src||(a.src=u),P())}
r=r===void 0?!0:r;a.removeAttribute("src");P();z&&(r?vCd(a,N):N())};
X1O=function(a,z,I){if(!z)return!1;z=I(z,a);I=a.getAttribute("src");return z&&z===I&&a.complete};
Tm$=function(a,z){for(var I in z)I==="className"?a.className=z[I]:(eF[I]||eF[Te.default])(a,I,z[I])};
dGG=function(a,z,I,J){Svp(_.qp)({contentMode:z.contentMode,loadedClass:z.loadedClass,isPreloaded:z.isPreloaded,notifyOnLoaded:z.notifyOnLoaded,notifyOnUnloaded:z.notifyOnUnloaded,preferredThumbnail:z.preferredThumbnail,preserveHeight:z.preserveHeight,preserveWidth:z.preserveWidth,objectPosition:z.objectPosition,targetWidth:z.targetWidth,targetHeight:z.targetHeight,shouldShowPlaceholder:z.shouldShowPlaceholder,useWidth:z.useWidth,isToggled:z.isToggled,alt:z.alt,className:z.className,onerror:z.onerror,
onload:z.onload,style$:z.style$,color:z.color,width:z.width,height:z.height,"aria-hidden$":z["aria-hidden$"],draggable:z.draggable,"data-disabled$":z["data-disabled$"],data:a,callback:I,renderLazy:J===void 0?!0:J,hideOn404:!1})};
oC7=function(a,z,I){I=I===void 0?!1:I;var J=a.sources!==void 0?a:_.gC1(a);if(J){var r=z.onload;z.onload=function(E){var O=E.target;I&&O.naturalWidth===120||_.eg(O,"yt-core-image--loaded");z.notifyOnLoaded&&O.dispatchEvent(new Event("image-loaded",{bubbles:!0,composed:!0}));r==null||r(E)};
z.targetWidth&&z.preserveWidth&&(z.width=z.targetWidth);z.targetHeight&&z.preserveHeight&&(z.height=z.targetHeight);var P=_.AFp(J),N=P&&hfE(P);if(N)return(a=sei(P))&&(z.color=a),{type:"icon",iconName:N,config:Object.assign({},z,z.alt?{}:{"aria-hidden$":"true"},{"aria-label$":z.alt,role:"img"})};if(a.sources===void 0){z.alt=a.accessibility&&a.accessibility.accessibilityData&&a.accessibility.accessibilityData.label||z.alt;z.style$=Fxi(a,z.shouldShowPlaceholder,z.style$);var u;z.isPreloaded=!((u=_.H(a,
Wx0))==null||!u.isPreloaded)}z.contentMode&&!J.contentMode&&(J.contentMode=z.contentMode);z.className=HyM(J,z.className,z.preserveHeight,z.preserveWidth,z.objectPosition);z.loadedClass="yt-core-image--loaded";return{type:"image",image:J,config:z}}};
_.a5=function(){var a=_.dO.apply(0,arguments);return _.ca(UGE,function(z){var I=a.map(function(J){return J==null?void 0:J(z)});
return function(){return void I.forEach(function(J){return void(J==null?void 0:J())})}})};
jk=function(a,z){var I=z==null?void 0:z.initial;return _.Bg(function(){_.SJ(!0);return I=a(I)},{equals:z==null?void 0:z.isEqual},"rSlKsc")};
DGd=function(a,z){if(a===z)return!0;if(a===void 0||z===void 0)return!1;var I,J,r,P,N,u,E,O;return a.content===z.content&&((I=a.styleRuns)==null?void 0:I.length)===((J=z.styleRuns)==null?void 0:J.length)&&((r=a.commandRuns)==null?void 0:r.length)===((P=z.commandRuns)==null?void 0:P.length)&&((N=a.attachmentRuns)==null?void 0:N.length)===((u=z.attachmentRuns)==null?void 0:u.length)&&((E=a.decorationRuns)==null?void 0:E.length)===((O=z.decorationRuns)==null?void 0:O.length)};
lQ0=function(a,z){if(a){var I=rFG(a);if(I!=null&&I.content)if(_.K("attr_string_reactive"))Svp(RfE)({text:a,config:z});else{var J=!(z==null||!z.ariaLabel)||!(I.commandRuns&&I.commandRuns.length!==0||I.paragraphStyleRuns&&I.paragraphStyleRuns.length!==0);a=J?z==null?void 0:z.ariaLabel:null;J=J?"text":null;g6M("span",{className:pQx(I,z),dir$:(z==null?0:z.userInput)?"auto":void 0,"aria-label$":a,role$:J},function(){if(I.styleRuns||I.commandRuns||I.attachmentRuns||I.decorationRuns||I.paragraphStyleRuns){var r=
JFp(I,z);Zyd(r,z);r=Bmx(I.content,r);r=_.C(r.parts);for(var P=r.next();!P.done;P=r.next())LxO(P.value)}else T30(I.content)})}}};
LxO=function(a){typeof a==="string"?T30(a):PDO(a.data)?g6M("span",a.data.imageWrapperConfig,function(){dGG(a.data.image,a.data.imageConfig)}):g6M(a.data.tag,a.data.config,function(z){CD$(a.data)(z);
z=_.C(a.parts);for(var I=z.next();!I.done;I=z.next())LxO(I.value)})};
w1d=function(a){return a.parts.map(p1O)};
p1O=function(a){if(typeof a==="string")return a;a=PDO(a.data)?_.B("span",{el:_.a5(NmG(a.data.imageWrapperConfig))},_.B(_.qp,Object.assign({},{data:a.data.image},a.data.imageConfig))):_.B(a.data.tag,{el:_.a5(CD$(a.data),NmG(a.data.config))},a.parts.map(p1O));return Ee(a)};
mGp=function(a,z){return a===z?!0:a===void 0||z===void 0?!1:a.noStyleRuns===z.noStyleRuns&&a.noLinkColor===z.noLinkColor&&a.noEndpoints===z.noEndpoints&&a.headerRuns===z.headerRuns&&a.isOverlay===z.isOverlay&&a.linkInheritColor===z.linkInheritColor&&a.userInput===z.userInput&&a.isHeadline===z.isHeadline};
yFp=function(a){return function(){var z,I,J,r,P,N,u,E,O,f,A,n,F,h,v;return{ariaLabel:(z=a.ariaLabel)==null?void 0:z.call(a),className:(I=a.className)==null?void 0:I.call(a),ellipsisTruncate:(J=a.ellipsisTruncate)==null?void 0:J.call(a),isOverlay:(r=a.isOverlay)==null?void 0:r.call(a),linkInheritColor:(P=a.linkInheritColor)==null?void 0:P.call(a),noEndpoints:(N=a.noEndpoints)==null?void 0:N.call(a),noStyleRuns:(u=a.noStyleRuns)==null?void 0:u.call(a),noLinkColor:(E=a.noLinkColor)==null?void 0:E.call(a),
noPreWrap:(O=a.noPreWrap)==null?void 0:O.call(a),noWrap:(f=a.noWrap)==null?void 0:f.call(a),skipOnClick:(A=a.skipOnClick)==null?void 0:A.call(a),stopPropagation:(n=a.stopPropagation)==null?void 0:n.call(a),userInput:(F=a.userInput)==null?void 0:F.call(a),headerRuns:(h=a.headerRuns)==null?void 0:h.call(a),isHeadline:(v=a.isHeadline)==null?void 0:v.call(a)}}};
k_1=function(a){return a.value===""||a.value==="true"?!0:a.value==="false"?!1:isNaN(Number(a.value))?a.value:Number(a.value)};
zd=function(a,z){a=new Mw0(a,z);_.Gx(a);throw a;};
cFp=function(a,z,I){var J=ZFG(a);a._numRenders=0;try{var r=_.fkm(function(){return _.B(z,Object.assign({},I))})}catch(N){var P=function(u){u.args||(u.args=[]);
u.args.push("Error in web component wrapper");u.args.push(a.tagName.toLowerCase());return u};
_.$0(N instanceof Error?P(N):new Mw0("Wiz rendering error",a.tagName.toLowerCase()));throw N;}finally{ZFG(J)}return r};
_.Jf=function(a,z,I){function J(f){var A={};f=_.C(f);for(var n=f.next();!n.done;n=f.next()){n=n.value;var F=void 0,h=void 0,v=void 0,d=_.nL((v=(h=(F=n).getAttribute)==null?void 0:h.call(F,"slot"))!=null?v:"children");if(F=A[d])F.push(n);else if(d in P||d==="children")A[d]=[n]}f=_.C(Object.keys(A));d=f.next();for(n={};!d.done;n={content$jscomp$57:void 0},d=f.next())d=d.value,d!=="children"&&(n.content$jscomp$57=A[d],A[d]=function(W){return function(){return W.content$jscomp$57}}(n));
return A}
I=I===void 0?{}:I;a.componentType!==KW||zd("Components must be marked reactive to be used from web component wrapper.",z);Pl.has(z)&&zd("Do not register a Wiz component to be rendered with boththe deprecated wrapper and the signals based wrapper.",z);var r,P=(r=I.props)!=null?r:{};ZA.add(z);var N=YvG();r=function(){var f=N.apply(this,arguments)||this;f.rawProps={};f.queuingRender=!1;f.dispose=function(){};
f.isWebComponentWrapper=!0;f.isReparenting=!1;f.hasRendered=!1;return f};
_.b(r,N);r.prototype.render=function(){this.hasRendered=!0;for(var f=_.C([].concat(_.ih(this.attributes))),A=f.next();!A.done;A=f.next())A=A.value,A.name!=="slot"&&A.name!=="hidden"&&this.removeAttribute(A.name);f=Object.assign({},this.componentProps,this.slotProps);A=_.C(cFp(this,a,f));f=A.next().value;A=A.next().value;!(f[0]instanceof Element)||f.length>1?zd("Wrapped Wiz components must return a single root element.",z):(f=f[0].tagName.toLowerCase(),f!==z&&zd("Wrapped Wiz components must have the same host tag name as the web component. Expected tag '"+
(f+" !== '"+z),z),this.dispose=A)};
r.prototype.setUpProps=function(){for(var f=this.rawProps,A=this.attributes,n=_.C(Object.keys(P)),F=n.next();!F.done;F=n.next()){F=F.value;var h=void 0;((h=this)==null?0:h[F])&&this[F]!==qvE&&f[F]===void 0&&(f[F]=this[F],(h=Object.getOwnPropertyDescriptor(this.constructor.prototype,F))&&Object.defineProperty(this,F,h))}n=_.C(A);for(F=n.next();!F.done;F=n.next()){h=F.value;F=_.nL(h.name);var v=F==="class"&&!A.getNamedItem("class-name");if(F in P||v)h=k_1(h),F!=="class"||f.className?f[F]=h:f.className=
h}A={};for(var d in P)P[d]!==_.I5&&P[d]!==ef1&&(f[d]instanceof Function&&zd("Function props must be configured as STATIC, not SIGNAL.",z),F=_.C(_.CW(f[d],void 0,"Ri8MSe")),n=F.next().value,F=F.next().value,A[d]=F,f[d]=n);f=_.C([f,A]);this.componentProps=f.next().value;this.setters=f.next().value;this.slotProps=J(this.childNodes)};
r.prototype.connectedCallback=function(){Jj===z&&(this._isInert=!0);this._isInert||(this.isReparenting?this.isReparenting=!1:(this.queuingRender="data"in P&&!this.rawProps.data&&!this.getAttribute("data"),this.hasRendered||this.queuingRender||this.setUpProps(),this.queuingRender||this.render()))};
r.prototype.disconnectedCallback=function(){if(!this._isInert){var f;a:{if(_.aMM)for(f=this;f;){if(_.jSp.has(f)){f=!0;break a}f=f.parentElement}f=!1}if(f)this.isReparenting=!0;else{this.dispose();if(!this.queuingRender){f=_.C([].concat(_.ih(this.attributes)));for(var A=f.next();!A.done;A=f.next()){A=A.value;var n=void 0;A.name==="slot"||A.name==="hidden"&&((n=I.unsafeExternallySettableAttributes)==null?0:n.has("hidden"))||this.removeAttribute(A.name)}}this.innerText="";YAi(this)}}};
r.prototype._setPendingPropertyOrPath=function(){};
r.prototype.notifyPath=function(){};
_.eH.Object.defineProperties(r.prototype,{__isPropertyEffectsClient:{configurable:!0,enumerable:!0,get:function(){return!1}},
__dataHasAccessor:{configurable:!0,enumerable:!0,get:function(){}}});
for(var u=_.C(Object.keys(P)),E=u.next(),O={};!E.done;O={prop$jscomp$104:void 0},E=u.next())O.prop$jscomp$104=E.value,E=void 0,((E=I.legacyPolymer)==null?0:E.forwardHostProps)&&clx.has(O.prop$jscomp$104)||Object.defineProperty(r.prototype,O.prop$jscomp$104,{set:function(f){return function(A){var n=this;this._isInert||(this.setters?g1(function(){var F,h;return void((h=(F=n.setters)[f.prop$jscomp$104])==null?void 0:h.call(F,A))}):(this.rawProps[f.prop$jscomp$104]=A,this.queuingRender&&f.prop$jscomp$104===
"data"&&A!=null&&(this.queuingRender=!1,this.setUpProps(),this.render())))}}(O),
get:z4m.has(O.prop$jscomp$104)?void 0:function(){return qvE}});
customElements.define(z,r)};
_.IM7=function(a,z){return(a=_.r4(a,z))?_.ij(_.XG(a)):null};
_.P8=function(a){if(a=_.r4(a,Number.MAX_VALUE,void 0,"width"))return _.XG(a)};
_.r4=function(a,z,I,J){J=J===void 0?"width":J;if(!a||!a.length)return null;if(_.K("kevlar_tuner_should_always_use_device_pixel_ratio")){var r=window.devicePixelRatio;_.K("kevlar_tuner_should_clamp_device_pixel_ratio")?r=Math.min(r,_.Ib("kevlar_tuner_clamp_device_pixel_ratio")):_.K("kevlar_tuner_should_use_thumbnail_factor")&&(r=_.Ib("kevlar_tuner_thumbnail_factor"));JOm=r}else JOm||(JOm=window.devicePixelRatio);r=JOm;_.K("kevlar_tuner_should_always_use_device_pixel_ratio")?z*=r:r>1&&(z*=r);if(_.K("kevlar_tuner_min_thumbnail_quality"))return a[0].url||
null;r=a.length;if(_.K("kevlar_tuner_max_thumbnail_quality"))return a[r-1].url||null;if(I)for(var P=0;P<r;P++)if(a[P].url.indexOf(I)>=0)return a[P].url||null;for(I=0;I<r;I++)if(a[I][J]>=z)return a[I].url||null;for(z=r-1;z>0;z--)if(a[z][J])return a[z].url||null;return a[0].url||null};
Zqd=function(){Zt.size?setTimeout(function(){CS(rO0)},0):PWi=0};
rO0=function(){var a=(0,_.jp)(),z=null,I=!1;Zt.forEach(function(r){r.loaded=!0;r.loadTime=a;r.pendingPaint=!1;var P=CW1.get(r);P&&P.resolve(a);z=r;I||!r.ftlEligible&&r.tagName!=="YT-THUMBNAIL-VIEW-MODEL"||(I=!0)});
var J;((J=z)==null?0:J.markDirty)&&z.markDirty();Zt.clear();PWi=0;I&&NA7(a)};
tAE=function(a){Zt.add(a);a.pendingPaint=!0;PWi||(PWi=_.NK(_.GW,Zqd))};
uix=function(a){a.loaded=!1;a.loadTime=Infinity;var z=CW1.get(a);z&&(z.reject(Error("lh")),CW1.delete(a));a.pendingPaint&&(Zt.delete(a),a.pendingPaint=!1)};
_.EDx=function(a){var z=a.indexOf(":");return z===-1?{originalName:a}:{originalName:a.substring(0,z),datasyncId:a.substring(z+1)}};
_.gDG=function(){return _.t(function(a){if(BAM!==void 0)return a.return(BAM);BAM=new Promise(function(z){var I;return _.t(function(J){switch(J.nextAddress){case 1:return _.BP(J,2),J.yield(_.tf.open("test-only"),4);case 4:return J.yield(_.tf.delete("test-only"),5);case 5:_.p1(J,3);break;case 2:if(I=_.sk(J),I instanceof Error&&I.name==="SecurityError")return z(!1),J.return();case 3:z("caches"in window),_.nu(J)}})});
return a.return(BAM)})};
AOI=function(){return _.t(function(a){if(a.nextAddress==1)return a.yield(_.gDG(),2);if(!a.yieldResult)return a.return(void 0);OqG||(OqG=new fMi);return a.return(OqG)})};
sSm=function(a){var z,I,J,r;return _.t(function(P){switch(P.nextAddress){case 1:return P.yield(AOI(),2);case 2:z=P.yieldResult;if(!z)throw Error("nh");return P.yield(z.open("yt-player-local-img"),3);case 3:return I=P.yieldResult,P.yield(I.match(a),4);case 4:J=P.yieldResult;if(!J)throw Error("oh");return P.yield(J.blob(),5);case 5:return r=P.yieldResult,P.return(r)}})};
nDx=function(a,z){for(var I in a)if(a.hasOwnProperty(I)&&z[I])return I;return null};
Kp1=function(a){return"stamp"+a.replace("-","_")+"_"};
Fp0=function(a){var z=a.match(/\[\[([\w\.]+)\]\]/);if(z&&z.length>1)return z[1];_.Gx(Error("qh`"+a));return null};
Hq0=function(a){return a===void 0?_.TZ("REUSE_COMPONENTS",!1):a||!1};
VAd=function(a,z,I){I&&(z.is?(bqM.has(z)&&(a=bqM.get(z),I=a.listener,delete z[a.property],I.type==="element"&&z.removeEventListener(I.eventName,I.handler),bqM.delete(z)),h4x(z)):z.__proto__==HTMLElement.prototype&&(z=new _.Fn("Rendererstamper removed a non custom element","Stamper: "+a+" element: "+(z&&z.nodeName)),_.Xd(z)))};
QSG=function(a,z,I,J){var r=z.node?z.node:z;_.PK(I).parentNode===r&&(z.removeChild(I),VAd(a,I,J));if(a=uJ.get(I))uJ.delete(I),_.GW.cancelJob(a);I.hidden=!1};
SVi=function(a,z,I,J){if(z&&z.children&&(I=z.children[I]))if(_.TZ("DEFERRED_DETACH"))for(;I&&!uJ.has(I);){var r=a,P=z,N=I,u=J;N.hidden=!0;r=_.b9(_.GW,QSG.bind(null,r,P,N,u),0);uJ.set(N,r);I=I.nextElementSibling}else for(;(N=z.lastElementChild)&&(z.removeChild(N),VAd(a,N,J),N!=I););};
iqG=function(a){var z=_.Mm("__slot-el");_.QO(function(){for(var I=_.C(a.slotContent),J=I.next();!J.done;J=I.next())z.value.appendChild(J.value)});
return _.B("__slot-el",{el:z,skip:!0})};
_.EW=function(a,z,I){I=I===void 0?xz$:I;Pl.add(z);var J;(J=I).propNames!=null||(J.propNames=[]);var r=new Set(I.propNames),P=YvG();J=function(){var O=P.call(this)||this;O.props={};O.isUpdating=!1;O.hasAttached=!1;O.isInert=!1;O.updateQueued=!1;O.initialClasses=[];PMx(O,z);return O};
_.b(J,P);J.prototype.forwardKebabCaseProp=function(O,f){O=_.nL(O);if(r.has(O)||O==="children")this.props[O]=f};
J.prototype.afterFirstPatch=function(){this.isUpdating=!0;for(var O=_.C(this.initialClasses),f=O.next();!f.done;f=O.next())(f=f.value)&&this.classList.add(f);this.initialClasses.length>0&&(this.initialClasses.length=0);this.isUpdating=!1};
J.prototype.handleSlottedContent=function(){for(var O=new Map,f=_.C(this.children),A=f.next();!A.done;A=f.next()){A=A.value;var n=void 0,F=(n=A.getAttribute("slot"))!=null?n:"children";(n=O.get(F))?n.push(A):O.set(F,[A]);if(!A.getAttribute("key")){var h=void 0,v=void 0;A.setAttribute("key",F+"_"+((v=(h=n)==null?void 0:h.length)!=null?v:0))}}O=_.C(O);for(f=O.next();!f.done;f=O.next())A=_.C(f.value),f=A.next().value,A=A.next().value,this.forwardKebabCaseProp(f,_.B(iqG,{slotContent:A}))};
J.prototype.connectedCallback=function(){var O=this;if(!PMx(this,z)&&!this.isInert)if(this.hasAttached)this.enqueueUpdate();else{for(var f=_.C(this.attributes),A=f.next();!A.done;A=f.next())A=A.value,this.forwardKebabCaseProp(A.name,k_1(A));this.handleSlottedContent();I.synchronous?(this.update(),this.afterFirstPatch()):this.enqueueUpdate().then(function(){O.afterFirstPatch()});
this.hasAttached=!0}};
J.prototype.attributeChangedCallback=function(O,f,A){this.isInert||this.isUpdating||this.isConnected||O!=="class"||this.initialClasses.push.apply(this.initialClasses,_.ih(A.split(" ")))};
J.prototype.disconnectedCallback=function(){XJ1(this)};
J.prototype.update=function(){if(!this.isInert){this.isUpdating=!0;try{var O,f;cE$(this,_.B(a,Object.assign({},this.props,{idomKey:(f=(O=this.__incrementalDOMData)==null?void 0:O.key)!=null?f:z})),!0)}catch(n){var A=n instanceof Error?n:new _.Fn("Wiz rendering error");A.args||(A.args=[]);A.args.push("Error in deprecated web component wrapper");A.args.push(z.toLowerCase());_.Gx(A);throw n;}finally{this.updateQueued=this.isUpdating=!1}}};
J.prototype.enqueueUpdate=function(){var O=this;return _.t(function(f){if(I.synchronous)return O.update(),f.return();if(O.updateQueued)return f.return();O.updateQueued=!0;return f.return(Promise.resolve().then(function(){O.update()}))})};
J.prototype.notifyPath=function(){I.enableUnsafeRenderOnNotifyPath&&this.enqueueUpdate()};
_.eH.Object.defineProperties(J,{observedAttributes:{configurable:!0,enumerable:!0,get:function(){return["class"]}}});
for(var N=_.C(I.propNames),u=N.next(),E={};!u.done;E={prop$jscomp$106:void 0},u=N.next())E.prop$jscomp$106=u.value,Object.defineProperty(J.prototype,E.prop$jscomp$106,{set:function(O){return function(f){this.isInert||f===this.props[O.prop$jscomp$106]||(this.props[O.prop$jscomp$106]=f,this.hasAttached&&!this.isUpdating&&this.enqueueUpdate())}}(E)});
customElements.define(z,J)};
_.B8=function(){for(var a=_.dO.apply(0,arguments),z=!0,I=_.C(a),J=I.next();!J.done;J=I.next())if(typeof J.value!=="string"){z=!1;break}return z?a.join(" ").trim()||void 0:function(){for(var r="",P=_.C(a),N=P.next();!N.done;N=P.next())if(N=N.value,typeof N==="function"&&(N=N()),N)if(typeof N==="string")r+=" "+N;else for(var u in N)if(N.hasOwnProperty(u)){var E=N[u];typeof E==="function"&&(E=E());E&&(r+=" "+u)}r=r.trim()||void 0;return _.SJ(r)}};
GFE=function(a){var z;return(z=vDi[a])!=null?z:"EVENT_SPAN_TYPE_UNKNOWN"};
$z7=function(a){var z=a.nodeName;if(a.id)return z+="#"+a.id;if(a.classList)for(var I=_.C(a.classList),J=I.next();!J.done;J=I.next())z+="."+J.value;a.parentElement&&(z=$z7(a.parentElement)+" > "+z);return z};
X2$=function(a){return function(z){var I=GFE(z.type);return I==="EVENT_SPAN_TYPE_UNKNOWN"?a(z):oE1("event",{type:I,nodepath:z.target instanceof Element?$z7(z.target):void 0},function(){return a(z)})}};
_.g4=function(a){a&&XY0("event")&&(a=X2$(a));return mhm(function(z){var I,J=(I=a)==null?void 0:I(z);return typeof J==="boolean"?J:!0})};
OW=function(a){return function(){return a()?a():void 0}};
oD3=function(a){var z=_.Mm("animated-rolling-character"),I=xS(),J=Y2(a.character)||Y2(a.previousCharacter);eFM(function(){if(a.marginMultiplier){var r;(r=I.value)==null||r.cancel();J?(r=a.previousCharacter?Number(a.previousCharacter)+10:a.rollUp?0:30,a.shouldAnimate||(r-=TAi(a,r))):(r=a.rollUp?0:2,a.shouldAnimate||(r-=a.rollUp?-1:1));z.value.style.marginTop="-"+r*a.marginMultiplier+"px";a.shouldAnimate?I.value=dz1(z.value,a,r,J):z.value.style.display=a.character?"":"none"}});
return _.B("animated-rolling-character",{el:z,class:"animated-rolling-character-wiz"},ACM(J,function(){for(var r=[],P=1;P<30;P++)r.push(_.B("div",null,P%10));return _.B(_.eJ,null,_.B("div",null,"\u00a0"),r,_.B("div",null,"\u00a0"))},function(){return WpG(a.character)}))};
WpG=function(a){return _.B(_.eJ,null,_.B("div",null,"\u00a0"),_.B(_.eJ,null,ACM(!a||_.NO(a),function(){return _.B("div",null,"\u00a0")},function(){return _.B("div",null,a)})),_.B("div",null,"\u00a0"))};
dz1=function(a,z,I,J){I=new Animation(new KeyframeEffect(a,[{transform:"translateY(0px)"},{transform:"translateY("+(J?TAi(z,I):z.rollUp?-1:1)*z.marginMultiplier+"px)"}],UzG),document.timeline);z.character?(a.style.display="",I.onfinish=null):I.onfinish=function(){a.style.display="none"};
I.play();return I};
TAi=function(a,z){var I=Number(a.character)+10;if(a.previousCharacter)if(a.character){var J=Number(a.character),r=Number(a.previousCharacter);a=a.rollUp?r<J?I:I+10:r<J?I-10:I}else a=a.rollUp?30:0;else a=a.character==="0"?I:a.rollUp?I-10:I+10;return z-a};
_.fS=function(a){return function(z){var I={},J;for(J in z){var r=void 0,P=void 0;((r=void 0)==null?0:(P=r.callbacks)==null?0:P[J])||(I[J]=z[J])}return _.B(Oc3,null,function(){for(var N in I)z[N]=_.SJ(I[N]);z.disableReactiveLogging=!0;return _.B(a,Object.assign({},z))})}};
Lpx=function(a,z,I,J,r,P,N){I=new Animation(new KeyframeEffect(a,[{transform:"translateY(0px)"},{transform:"translateY("+(P?Dzi(z,I,J,r):J?-1:1)*N+"px)"}],R4O),document.timeline);z?(a.style.display="",I.onfinish=null):I.onfinish=function(){a.style.display="none"};
I.play();return I};
Dzi=function(a,z,I,J){var r=Number(a)+10;z?a?(a=Number(a),z=Number(z),I=I?z<a?r:r+10:z<a?r-10:r):I=I?30:0:I=a==="0"?r:I?r-10:r+10;return J-I};
p2x=function(a){var z=xS(),I=xS();_.VO(function(){z.value=a.numberText;I.value=a.numberValue},[a.numberText]);
var J=a.fontSizeMultiplier?a.heightPx*a.fontSizeMultiplier:a.heightPx,r=CIp(function(){if(a.numberText){var N=a.numberText;var u=a.forceRollUp||!I.value||!a.numberValue||I.value<a.numberValue;var E=!!a.shouldAnimate,O=z.value,f=[],A=0,n=0,F=(O?O.replace(/\D/g,"").length:0)-(N?N.replace(/\D/g,"").length:0);O=O?O.split(/(\d)/).filter(Boolean):[];for(N=N.split(/(\d)/).filter(Boolean);F<0;){var h=N[n];f.push({character:h,rollUp:u,marginMultiplier:J,shouldAnimate:E});n++;Y2(h)&&F++}for(;A<F;)h=O[A],f.push({previousCharacter:h,
rollUp:u,marginMultiplier:J,shouldAnimate:E}),A++,Y2(h)||F++;for(;n<N.length;)F=N[n],h=O[A],Y2(F)===Y2(h)?(n++,A++):Y2(F)?(A++,F=void 0):Y2(h)&&(n++,h=void 0),f.push({character:F,previousCharacter:h,rollUp:u,marginMultiplier:J,shouldAnimate:E});u=f}else u=[];return u},[a.numberText]),P=a.numberText?["height: "+J+"px;",
"line-height: "+a.heightPx+"px;"].join(" "):"";return _.B("yt-animated-rolling-number",{class:"animated-rolling-number-wiz",style:P,dir:"ltr","aria-hidden":"true"},r.map(function(N){return _.B(lMM,Object.assign({},N))}))};
w27=function(a){return new KeyframeEffect(a,[{offset:0,opacity:.1,easing:"cubic-bezier(0.05, 0.00, 0.00, 1.00)"},{offset:1,opacity:0}],{duration:400})};
mz3=function(a){return new KeyframeEffect(a,[{offset:0,opacity:.2,easing:"cubic-bezier(0.20, 0.00, 0.60, 1.00)"},{offset:1,opacity:0}],{duration:400})};
_.Af=function(a){var z=jk(function(I){I=I?ZT(I[0]):void 0;return _.CW(a(I),void 0,"AwTxXe")},{isEqual:function(I,J){return ZT(I[0])===ZT(J[0])}});
return[function(){return z()[0]()},
function(I){return void z()[1](I)}]};
_.sW=function(a){return function(){var z="",I;for(I in a){for(var J=a[I];typeof J==="function";)J=J();J!==void 0&&J!==null&&(z+="; "+I+": "+J)}return z.length>0?_.SJ(z.slice(2)):_.SJ()}};
yOp=function(a){switch(a){case 2:return"yt-spec-touch-feedback-shape--touch-response-inverse";case 3:return"yt-spec-touch-feedback-shape--overlay-touch-response";case 4:return"yt-spec-touch-feedback-shape--overlay-touch-response-inverse";default:return"yt-spec-touch-feedback-shape--touch-response"}};
qVp=function(a,z,I,J,r,P,N){var u=kFm(a),E=u.disabled,O=u.iconPosition,f=u.style,A=u.focused,n=function(){return!!v()&&O()==="icon-only"},F=function(){return!!v()&&O()==="icon-only-40"},h=function(){return!!v()&&O()==="icon-with-label"},v=function(){return!!z||!(J==null||!J())};
return{type:function(){return f()==="call-to-action-inverse"?"text":f()==="overlay-dark"&&a().type!=="filled"&&a().type!=="tonal"?"tonal":a().type},
shouldFocus:function(){return(A()||(P==null?void 0:P()))&&!E()},
hasIconLeading:function(){return!!v()&&O()==="leading"},
hasIconTrailing:function(){return!!v()&&O()==="trailing"},
hasIconLeadingTrailing:function(){return!!v()&&!!(I||r!=null&&r())&&O()==="leading-trailing"},
hasIconOnly:n,hasIconOnly40:F,hasIconWithLabel:h,iconButton:function(){return n()||F()||h()},
visiblyDisabled:function(){return(E()?"disabled":a().state)==="disabled"||E()},
overrideSmallSizeIcon:function(){return!a().ignoreIconSizeOverride&&MAI(a(),v())},
iconToRender:z?z:function(){return _.B(_.nS,{icon:J,size:function(){return cOm(a(),!0,a().ignoreIconSizeOverride)},
active:function(){return a().toggled},
iconFilter:function(){return YVd(a())},
animateIcon:N})},
secondaryIconToRender:I?I:function(){return _.B(_.nS,{icon:r,size:function(){return cOm(a(),!0,a().ignoreIconSizeOverride)},
active:function(){return a().toggled},
iconFilter:function(){return YVd(a())}})}}};
kFm=function(a){return{size:function(){return a().size},
style:function(){return a().style},
focused:function(){return a().focused},
disabled:function(){return a().disabled},
onTap:function(z){var I,J;return(J=(I=a()).onTap)==null?void 0:J.call(I,z)},
alignByText:function(){return a().alignByText},
aTagConfig:function(){return a().aTagConfig},
customColors:function(){return a().customColors},
segmentedPosition:function(){return a().segmentedPosition},
toggled:function(){return a().toggled},
toggleable:function(){return a().toggleable},
accessibilityLabel:function(){return a().accessibilityLabel},
onToggle:function(z){var I,J;return(J=(I=a()).onToggle)==null?void 0:J.call(I,z)},
iconPosition:function(){return a().iconPosition},
oneOffCustomTextWrap:function(){return a().oneOffCustomTextWrap},
disableTextEllipsis:function(){return a().disableTextEllipsis},
disableBackdropFilter:function(){return a().disableBackdropFilter},
tooltipText:function(){return a().tooltipText},
ariaHidden:function(){return a().ariaHidden},
tabIndex:function(){return a().tabIndex},
buttonText:function(){return a().buttonText},
formattedButtonText:function(){return a().formattedButtonText},
animatedTextProps:function(){return a().animatedTextProps}}};
MAI=function(a,z){z=(a.iconPosition==="icon-only"||a.iconPosition==="icon-only-40"||a.iconPosition==="icon-with-label")&&z;return!a.segmentedPosition&&z&&a.size==="S"};
cOm=function(a,z,I){switch(a.size){case "XS":return 16;case "S":return!I&&MAI(a,z)?24:16;default:return 24}};
e4m=function(a){switch(a){case "filled":return"yt-spec-button-shape-next--filled";case "outline":return"yt-spec-button-shape-next--outline";case "tonal":return"yt-spec-button-shape-next--tonal";default:return"yt-spec-button-shape-next--text"}};
adi=function(a){switch(a){case "call-to-action":return"yt-spec-button-shape-next--call-to-action";case "call-to-action-overlay":return"yt-spec-button-shape-next--call-to-action-overlay";case "mono":return"yt-spec-button-shape-next--mono";case "overlay":return"yt-spec-button-shape-next--overlay";case "overlay-dark":return"yt-spec-button-shape-next--overlay-dark";case "call-to-action-inverse":return"yt-spec-button-shape-next--call-to-action-inverse";case "mono-inverse":return"yt-spec-button-shape-next--mono-inverse";
case "brand-gradient":return"yt-spec-button-shape-next--brand-gradient";case "gen-ai-gradient":return"yt-spec-button-shape-next--gen-ai-gradient";default:return"yt-spec-button-shape-next--mono"}};
j2p=function(a){switch(a){case "XS":return"yt-spec-button-shape-next--size-xs";case "S":return"yt-spec-button-shape-next--size-s";case "L":return"yt-spec-button-shape-next--size-l";case "XL":return"yt-spec-button-shape-next--size-xl";default:return"yt-spec-button-shape-next--size-m"}};
YVd=function(a){if(a.style==="overlay-dark"&&a.type==="tonal")return"drop-shadow(0px 1px 4px rgba(0, 0, 0, 0.3))"};
KS=function(a){return a&&a.endsWith("px")?Number(a.slice(0,-2)):0};
JS$=function(a){var z=z===void 0?{}:z;a=_.C(_.Af(a));var I=a.next().value;return[function(J){var r=_.Bg(function(){var u,E,O,f;return{text:(u=I())!=null?u:"",location:(E=z.location)!=null?E:"bottom",offset:(O=z.offset)!=null?O:16,delay:(f=z.delay)!=null?f:1}},void 0,"MgTrkc");
_.h2(function(){var u=r();ZT(function(){_.GW.addJob(function(){FT.notify(J,u)},4)})},"WlsgZc");
var P=function(){zji(J,r())},N=function(){Id7()};
J.addEventListener("mouseenter",P);J.addEventListener("focus",P);J.addEventListener("mouseleave",N);J.addEventListener("blur",N);J.addEventListener("tap",N);_.V3(function(){J.removeEventListener("mouseenter",P);J.removeEventListener("mouseleave",N);J.removeEventListener("focus",P);J.removeEventListener("blur",N);J.removeEventListener("tap",N);Id7()})},
a.next().value]};
rS0=function(a,z){if(!kl){var I;aVI(function(){return I=BsG(a,z)});
return I}a.parent=_.H8();return BsG(a,z)};
_.H8=function(){var a=_.cW(kl||void 0,t80);return _.FlG(a)?void 0:a};
bJ=function(a,z){_.DA(a,Object.assign({},z,{forceClickLogging:!0}))};
ZiG=function(a,z){var I=_.o0(a==null?void 0:a.onTap),J={};I&&(J.getClickedVisualElement=function(){var r;return PXm(a,I,z==null?void 0:(r=z.value)==null?void 0:r.visualElement)});
J=_.R0({elementsCommand:a.onTap,forceNewState:!0,additionalCommandArgs:J});return Lw(J)?J:void 0};
CX0=function(a,z,I,J){bJ(a,Object.assign({},{form:{element:z,event:I}},J))};
Nl0=function(a,z,I,J,r){var P=void 0;return function(N){var u=_.o0(I?a==null?void 0:a.onDisabledTap:a==null?void 0:a.onTap);if(u){var E;P=(E=P)!=null?E:z==null?void 0:z.value;if(u)if(_.K("web_button_vm_click_client_ve_killswitch"))CX0(u,P,N);else{var O;E=PXm(a,u,(O=P)==null?void 0:O.visualElement);if(r){CX0(u,r,N,{clickedVisualElement:E,form:{element:r}});return}CX0(u,P,N,{clickedVisualElement:E})}}J&&J(N)}};
PXm=function(a,z,I){z=z==null?void 0:z.clickTrackingParams;var J,r;a=a==null?void 0:(J=a.loggingDirectives)==null?void 0:(r=J.clientVeSpec)==null?void 0:r.uiType;if(I&&a&&!z)return I};
tU0=function(a){switch(a){case "BUTTON_VIEW_MODEL_STYLE_CTA":return"call-to-action";case "BUTTON_VIEW_MODEL_STYLE_MONO":case "BUTTON_VIEW_MODEL_STYLE_BRAND":return"mono";case "BUTTON_VIEW_MODEL_STYLE_OVERLAY":return"overlay";case "BUTTON_VIEW_MODEL_STYLE_OVERLAY_DARK":return"overlay-dark";case "BUTTON_VIEW_MODEL_STYLE_BRAND_GRADIENT":return"brand-gradient";case "BUTTON_VIEW_MODEL_STYLE_BRAND_AI":return"gen-ai-gradient";default:return"mono"}};
uL7=function(a){switch(a){case "BUTTON_VIEW_MODEL_TYPE_FILLED":return"filled";case "BUTTON_VIEW_MODEL_TYPE_OUTLINE":return"outline";case "BUTTON_VIEW_MODEL_TYPE_TEXT":return"text";case "BUTTON_VIEW_MODEL_TYPE_TONAL":return"tonal";default:return"text"}};
Eb7=function(a){switch(a){case "BUTTON_VIEW_MODEL_STATE_ACTIVE":return"active";case "BUTTON_VIEW_MODEL_STATE_INACTIVE":return"disabled";case "BUTTON_VIEW_MODEL_STATE_DISABLED":return"disabled";default:return"active"}};
Bli=function(a){switch(a){case "BUTTON_VIEW_MODEL_SIZE_XSMALL":return"XS";case "BUTTON_VIEW_MODEL_SIZE_COMPACT":return"S";case "BUTTON_VIEW_MODEL_SIZE_DEFAULT":return"M";case "BUTTON_VIEW_MODEL_SIZE_LARGE":return"L";case "BUTTON_VIEW_MODEL_SIZE_XLARGE":return"XL";default:return"M"}};
gbM=function(a,z){return _.Bd(a.entities,"engagementToolbarStateEntityPayload",z)};
fd3=function(a){(a=_.VX(a))&&_.OiG(a)};
_.OiG=function(a){var z=_.TX();z&&_.pt(z,a)};
ASG=function(a,z,I){_.ZF(a,"yt-open-popup-action",[z,I||a])};
s2m=function(a,z){var I=_.v3(a,"endpoint"),J=_.v3(a,"action");return(I=J?J:I)&&z&&(I=z.navigationEndpointPopupMap[I])&&(a=_.DH(I,a),(I=_.v3(a,"renderer"))&&z.supportedPopups.hasOwnProperty(I))?{openPopupAction:{popupType:z.popupTypeMap[I],popup:a}}:null};
nbG=function(a,z,I,J){if(J){var r;I=I==null?void 0:(r=I.data)==null?void 0:r.contents;(r=I instanceof Array&&I.length?I[0]:I)&&(I=_.v3(r,"renderer"))&&J.supportedPopups.hasOwnProperty(I)&&(z.stopPropagation(),ASG(a,{openPopupAction:{popupType:J.popupTypeMap[I],popup:r}}))}};
Him=function(a,z,I,J){J=J===void 0?!1:J;var r=K$x(z);if(r){r.href&&pH(r.href);var P=z.button;P=P!==void 0?P===0&&!hf(z):!hf(z);r.data&&P&&F$G(a,r,z,I,J)}};
F$G=function(a,z,I,J,r){r=r===void 0?!1:r;var P=_.Ib("pbj_navigate_limit",-1)===0;biM(z);_.ab().resolve(_.eL(l9));var N=z.data;if(Object.keys(N).length!==0)if(!_.K("unplugged_web_disable_actions_for_cec_endpoint")&&_.H(N,_.E_))_.K("endpoint_behavior_command_executor_fix_killswitch")||(I.preventDefault(),I.stopPropagation()),_.tR(a,[N],a);else if(J=s2m(N,J))N.loggingUrls&&N.loggingUrls.forEach(function(E){E.baseUrl&&_.lP(E.baseUrl)}),I.preventDefault(),I.stopPropagation(),ASG(a,J,z);
else{var u=hjG(0,z.data,I);if(a=z.getForm)a=a(),u.tempData=u.tempData||{},u.tempData=Object.assign({},u.tempData,a);a=_.ch(I);if(J=a.find(function(E){return!!E.visualElement}))u.createScreenConfig=u.createScreenConfig||{},u.createScreenConfig.clickedVisualElement=J.visualElement;
if(!P)if(I.preventDefault(),I.stopPropagation(),_.H(N,_.VUd)&&!r&&_.Og.instance)_.Og.instance.resolveCommand(N,u);else if(_.K("kevlar_command_handler_formatted_string")&&!r&&_.Og.instance&&Q21(N))r=a.find(function(E){return!!E.is})||I.target,I={form:Object.assign({},u,{event:I,
element:r,originatingNode:z})},_.Og.instance.resolveCommand(N,I);else{N=_.ch(I);I=[];for(r=0;r<N.length;r++)(P=N[r].is)&&I.push(P);iUG({parents:I.join(","),text:z.innerText},function(){_.PA(z,"yt-navigate",u)})}}};
S$0=function(a){if(a=K$x(a))biM(a),skm(a.href)};
K$x=function(a){a=_.ch(a);for(var z,I=0;I<a.length;I++)if(z=a[I],z.tagName==="A"&&z.classList.contains("yt-simple-endpoint")){if(!z.data)break;return z}return null};
hf=function(a){return a.shiftKey||a.altKey||a.metaKey||a.ctrlKey};
iiG=function(a,z){var I={itct:z.clickTrackingParams};_.K("kevlar_client_side_screens")&&(!_.H(z,_.hv)||_.K("kevlar_exclude_endpoint_killswitch"))&&(I.endpoint=JSON.stringify(z));_.K("enable_unknown_lact_fix_on_html5")&&_.ab().resolve(_.eL(_.V7))&&(I.lact=_.IO());OOG(I);_.el(a,I)};
biM=function(a){a.href&&Object.keys(a.data).length!==0&&iiG(a.href,a.data)};
Q21=function(a){for(var z=_.C(xa1),I=z.next();!I.done;I=z.next())if(a[I.value])return!1;return!0};
_.vb1=function(a,z){return _.Bd(a.entities,"markersEngagementPanelSyncEntity",z)};
G1d=function(a,z){return _.Bd(a.entities,"fantasyWinProbabilityEntity",z)};
$a$=function(a,z){return _.Bd(a.entities,"fantasyTeamEntity",z)};
Xi1=function(a,z){return _.Bd(a.entities,"fantasyPlayerEntity",z)};
Tl1=function(a,z){return _.Bd(a.entities,"booleanEntity",z)};
daG=function(a,z){return _.Bd(a.entities,"qrCodeEntity",z)};
W$x=function(a){return _.Bd(a.entities,"likeButtonAnimationEntity","EhxsaWtlX2J1dHRvbl9hbmltYXRpb25fZW50aXR5ILcEKAE%3D")};
obG=function(){if(Q7)return Q7;if(window.lottie)return Q7=Promise.resolve(window.lottie);var a=_.$k(_.Xw("LOTTIE_URL"));return a?Q7=new Promise(function(z,I){var J=document.createElement("script");J.addEventListener("load",function(){z(lottie)});
J.addEventListener("error",function(r){var P="Lottie library failed to load.";r?r.message&&(P+=" Original description: "+r.message,_.Tx(r,P)):r=Error(P);_.Xd(r);I(r)});
J.setAttribute("async","");_.c9(J,a);document.head.appendChild(J)}):Promise.reject(Error("rh"))};
Ua0=function(){return Q7?Q7:obG()};
Da$=function(a){if(a)switch(a){case "yt-icons:like":case "LIKE":case "LIKE_SELECTED":if(_.K("kevlar_use_wil_icons"))return a=(a=W$x(_.qo().getState()))&&a.animationLightUrl&&a.animationDarkUrl?{name:"custom_animated_like_icon",nameDarkTheme:"custom_animated_like_icon_dark",path:a.animationLightUrl,pathDarkTheme:a.animationDarkUrl,lottiePlayerProps:{animationConfig:{loop:!1,autoplay:!1}},type:"CUSTOM_LIKE",totalFrames:120,lazyLoad:!0}:void 0,a?a:Sk.get("LIKE");break;case "LIKE_DELHI_PLAYER":return Sk.get("LIKE_DELHI_PLAYER")}};
RjM=function(a){var z=Da$(a);if(z)return z;switch(a){case "FACE_FILLED_HAPPY":case "FACE_OUTLINED_HAPPY":return Sk.get("FACE_HAPPY");case "FACE_FILLED_MEH":case "FACE_OUTLINED_MEH":return Sk.get("FACE_MEH");case "FACE_FILLED_SAD":case "FACE_OUTLINED_SAD":return Sk.get("FACE_SAD");case "FACE_FILLED_UNHAPPY":case "FACE_OUTLINED_UNHAPPY":return Sk.get("FACE_UNHAPPY");case "FACE_FILLED_VERY_HAPPY":case "FACE_OUTLINED_VERY_HAPPY":return Sk.get("FACE_VERY_HAPPY");case "NOTIFICATIONS_NONE":return Sk.get("NOTIFICATION_BELL")}};
L$7=function(a,z){if(!a.closest)return!1;z=!!Da$(z);return _.Xw("ID_TOKEN")&&z?!!a.closest("segmented-like-dislike-button-view-model")||!!a.closest("yt-player-quick-action-buttons"):!1};
pip=function(a,z){if(!a||ld3)z=!1;else{var I;if(!(I=L$7(a,z)))if(a.closest)if(I=!_.Xw("ID_TOKEN"),a=a.closest("ytd-subscription-notification-toggle-button-renderer-next"),I||!a)I=!1;else{var J;I=((J=a.data)==null?void 0:J.targetId)==="notification-bell"&&z!=="EXPAND_MORE"}else I=!1;z=I}return z};
wi7=function(a){var z,I;return _.t(function(J){switch(J.nextAddress){case 1:return _.BP(J,2),J.yield(fetch(a),4);case 4:return z=J.yieldResult,J.yield(z.json(),5);case 5:return J.return(J.yieldResult);case 2:I=_.sk(J),_.Xd(I),_.nu(J)}})};
maM=function(a,z){var I,J,r;return _.t(function(P){if(P.nextAddress==1)return(I=z?a.pathDarkTheme:a.path)?P.yield(Promise.all([wi7(I),obG()]),2):P.return();J=P.yieldResult;r=J[0];iJ.set(I,r);_.nu(P)})};
k11=function(a,z,I,J){function r(N,u){if(z.value===u&&a!=null&&a.value){for(;a.value.firstChild;)a.value.removeChild(a.value.firstChild);a.value.classList.add("yt-spec-icon-shape");N(a.value,J)}}
I=_.yS0(_.ab().resolve(_.gd),I);if(typeof I==="function")z.value=null,r(I,null);else{var P=new _.Ba(I.then,I);z.value=P;P.then(function(N){r(N,P)})}};
cS7=function(a,z){var I=document.createElement("div"),J=_.b1(I,function(){return _.B(_.g,{cond:a,then:function(r){return _.B(MUO,{data:r,options:z})}})});
return[I,J]};
_.xq=function(a,z){if(z){var I={};Y$E.forEach(function(J){J=q$7(z,J,"--yt-lightsource-");Object.assign(I,J)});
ejm.forEach(function(J){J=q$7(z,J,"--yt-basic-");Object.assign(I,J)});
_.uK(a,I)}};
q$7=function(a,z,I){var J={};J[I+_.sX(z)]=a&&a[z]?_.RX(a[z]):"";return J};
_.$q=function(a,z,I){Gd[a]||(Gd[a]={});Gd[a][z]=I};
_.XT=function(a){Gd[a]||(Gd[a]={});return Gd[a]};
aBd=function(a){if(!a)return{};var z=a.foregroundTitleColor,I=a.backgroundColor;a=a.borderColor;var J="text";a?J="outline":I&&(J="filled");return{type:J,customColors:{color:z?_.RX(z):void 0,backgroundColor:I?_.RX(I):void 0,borderColor:a?_.RX(a):void 0}}};
ri3=function(a){var z=a.renderer;var I=a.element;var J=a.commandController;var r=a.onTapCallback;var P=a.skipCommandHandling;var N=a.overrides;var u=a.forceIcon;var E=a.forceModernIconButton;var O=a.forceDisabled;var f=a.isSubscribe===void 0?!1:a.isSubscribe;var A=a.isPressed===void 0?!1:a.isPressed;var n=a.useButtonSize===void 0?!1:a.useButtonSize;a=jIx(z);f&&(a.style="mono",a.type="filled");u=!z.icon||!u&&z.text?z.icon?z.iconPosition==="BUTTON_ICON_POSITION_TYPE_RIGHT_OF_TEXT"?"trailing":"leading":
void 0:E?"icon-only":"icon-only-40";u==="icon-only-40"&&(a.type="text");var F;E=Object;f=E.assign;n=zN3(z,n);A=!!z.isSelected||!_.K("web_propagate_is_pressed_killswitch")&&!!A;var h=z.isSelected!==void 0;O=O===void 0?z.isDisabled:O;var v=z.text?_.XJ(z.text):void 0;var d,W,l,q=((d=z.accessibilityData)==null?void 0:(W=d.accessibilityData)==null?void 0:W.label)||((l=z.accessibility)==null?void 0:l.label);d=q?q:_.cd(z.text);I=IBO(z,I,J,r,P);J=Jip(z);J!=null&&J.length?(J=_.R0({innertubeCommand:G67(J),
forceNewState:!0}),J=Lw(J)?J:void 0):J=void 0;return f.call(E,{},a,n,{iconPosition:u},N,{focused:!1,toggled:A,toggleable:h,disabled:O,formattedButtonText:v,accessibilityLabel:d,onTap:I,aTagConfig:J},aBd((F=z.colorData)==null?void 0:F.basicColorPaletteData),{oneOffCustomTextWrap:z.oneOffCustomTextWrap})};
IBO=function(a,z,I,J,r){return function(P){var N=Jip(a);J(N,P);if(!r){N=_.C(N);for(var u=N.next();!u.done;u=N.next())bJ(u.value,{form:{element:z,event:P},commandController:I})}}};
Jip=function(a){var z=[];a.command&&z.push(a.command);a.serviceEndpoint&&z.push(a.serviceEndpoint);a.navigationEndpoint&&z.push(a.navigationEndpoint);return z};
zN3=function(a,z){if(z)switch(a.size){case "SIZE_SMALL":return{size:"S"};case "SIZE_LARGE":return{size:"L"};case "SIZE_XLARGE":return{size:"XL"};case "SIZE_XSMALL":return{size:"XS"};default:return{size:"M"}}switch(a.style){case "STYLE_COMPACT_GRAY":return{size:"S"};default:return{size:"M"}}};
jIx=function(a){switch(a.style){case "STYLE_VISIBLY_DISABLED":return{style:"call-to-action",type:"text",state:"disabled"};case "STYLE_PRIMARY":case "STYLE_PAYMENT":case "STYLE_CALL_TO_ACTION_FILLED":return{style:"call-to-action",type:"filled",state:"active"};case "STYLE_OUTLINE":case "STYLE_SUGGESTIVE":case "STYLE_SUGGESTED_ACTION":return{style:"call-to-action",type:"outline",state:"active"};case "STYLE_BLUE_TEXT":case "STYLE_ALERT_INFO":return{style:"call-to-action",type:"text",state:"active"};case "STYLE_OVERLAY":return{style:"overlay",
type:"filled",state:"active"};case "STYLE_WHITE_WITH_BORDER":return{style:"overlay",type:"outline",state:"active"};case "STYLE_LIGHT_TEXT":return{style:"overlay",type:"text",state:"active"};case "STYLE_MONO_FILLED_OVERLAY":return{style:"overlay",type:"filled",state:"active"};case "STYLE_MONO_TONAL_OVERLAY":case "STYLE_DARK_ON_BLACK":return{style:"overlay",type:"tonal",state:"active"};case "STYLE_OVERLAY_PROTECTED":return{style:"overlay-dark",type:"tonal",state:"active"};case "STYLE_MONO_FILLED":case "STYLE_DESTRUCTIVE":return{style:"mono",
type:"filled",state:"active"};case "STYLE_DEFAULT":case "STYLE_COMPACT_GRAY":case "STYLE_MONO_TONAL":return{style:"mono",type:"tonal",state:"active"};case "STYLE_INACTIVE_OUTLINE":case "STYLE_MONO_OUTLINE":return{style:"mono",type:"outline",state:"active"};case "STYLE_BLUE_TEXT_WITH_INVERSE_THEME":return{style:"call-to-action-inverse",type:"text",state:"active"};case "STYLE_BRAND_GRADIENT":return{style:"brand-gradient",type:"filled",state:"active"};case "STYLE_GENERATIVE_GRADIENT":return{style:"gen-ai-gradient",
type:"filled",state:"active"};default:return{style:"mono",type:"text",state:"active"}}};
Pxd=function(a,z){return typeof a!=="object"||a===null?!1:Object.keys(z).every(function(I){return I in a})};
ZPx=function(a,z,I){return uN3(I,function(J,r){return function(P){var N=_.dO.apply(1,arguments);return Pxd(P,a)?r.apply(null,[P[z]].concat(_.ih(N))):r.apply(null,[P].concat(_.ih(N)))}})};
_.Td=function(a){return a!=null&&a.watch?a.watch.isTheaterMode:!1};
_.d4=function(a){return a!=null&&a.watch?a.watch.isWatchFullscreen:!1};
_.W8=function(a){a=_.CxI(a);return _.K("web_watch_enable_single_column_grid_view")?a:!1};
_.CxI=function(a){return a.watch.isWatchNarrowWidth};
_.N9E=function(a){return a.watch.openEngagementPanels};
_.o5=function(a){return _.Bg(function(){Zfm()();return tep(a)},{debugName:"d8B62c"},"wfRQAb")};
UW=function(a,z){return _.Bd(a.entities,"likeStatusEntity",z)};
t90=function(a,z){return _.Bd(a.entities,"likeCountEntity",z)};
_.Dt=function(a,z){return _.Bd(a.entities,"stringEntity",z)};
uP$=function(a,z){if(!a)return!1;var I,J=(I=_.H(a,_.ge))==null?void 0:I.signal;if(J&&z.signalEndpointMap)return!!z.signalEndpointMap[J];var r;if((I=(r=_.H(a,_.R5))==null?void 0:r.request)&&z.continuationEndpointMap)return!!z.continuationEndpointMap[I];for(var P in a)if(z.commandEndpointMap[P])return!0;return!1};
E43=function(a,z){if(z.streamingEndpointMap)for(var I in a)if(z.streamingEndpointMap[I]&&(a=z.streamingEndpointMap[I]))return a()};
B93=function(a,z){var I,J=(I=_.H(a,_.ge))==null?void 0:I.signal;if(J&&z.signalEndpointMap&&(I=z.signalEndpointMap[J]))return I();var r;if((I=(r=_.H(a,_.R5))==null?void 0:r.request)&&z.continuationEndpointMap&&(r=z.continuationEndpointMap[I]))return r();for(var P in a)if(z.commandEndpointMap[P]&&(a=z.commandEndpointMap[P]))return a()};
g4x=function(a){var z={"Content-Type":"application/json"};_.Xw("EOM_VISITOR_DATA")?z["X-Goog-EOM-Visitor-Id"]=_.Xw("EOM_VISITOR_DATA"):_.Xw("VISITOR_DATA")&&(z["X-Goog-Visitor-Id"]=_.Xw("VISITOR_DATA"));z["X-Youtube-Bootstrap-Logged-In"]=_.Xw("LOGGED_IN",!1);_.Xw("DEBUG_SETTINGS_METADATA")&&(z["X-Debug-Settings-Metadata"]=_.Xw("DEBUG_SETTINGS_METADATA"));a!=="cors"&&((a=_.Xw("INNERTUBE_CONTEXT_CLIENT_NAME"))&&(z["X-Youtube-Client-Name"]=a),(a=_.Xw("INNERTUBE_CONTEXT_CLIENT_VERSION"))&&(z["X-Youtube-Client-Version"]=
a),(a=_.Xw("CHROME_CONNECTED_HEADER"))&&(z["X-Youtube-Chrome-Connected"]=a),(a=_.Xw("DOMAIN_ADMIN_STATE"))&&(z["X-Youtube-Domain-Admin-State"]=a),_.TZ("ENABLE_LAVA_HEADER_ON_IT_EXPANSION")&&(a=_.Xw("SERIALIZED_LAVA_DEVICE_CONTEXT"))&&(z["X-YouTube-Lava-Device-Context"]=a));return z};
OP7=function(a,z){z.watchNextResponse||z.reelItemWatchResponse?z.watchNextResponse?a.content=z.watchNextResponse:a.content=z.reelItemWatchResponse:z.playerResponse?a.player=z.playerResponse:z.reelWatchSequenceResponse&&(a.reelSequence=z.reelWatchSequenceResponse)};
_.LS=function(a){if(!a)return null;for(var z=[],I=0;I<a.textSegments.length;I++){var J=a.textSegments[I];J.text?z.push(J):J.emojiId&&z.push({emoji_id:J.emojiId})}return{text_segments:z}};
KMm=function(a,z,I,J,r,P,N){P=P===void 0?[]:P;var u=new _.lJ;u.endpoint=I;if(!I)return _.$0(new _.Fn("handle undefined endpoint",z.tagName)),u;var E=ocM(I);E.length&&(_.tR(a,E,z,J),u.actions=E);I.loggingUrls&&I.loggingUrls.forEach(function(f){f.baseUrl&&pI(f.baseUrl,f.attributionSrcMode)});
E=!_.K("web_skip_impression_click_killswitch")&&J&&J.impression;if(I.clickTrackingParams&&!fBM(I)&&!Ai$(z)&&!E&&(E=_.Kw(),!_.pS(E,z))){var O=z.getScreenLayer&&z.getScreenLayer();O?E.clickCommand(I,null,O):E.clickCommand(I,null)}E=!1;for(O=0;O<P.length;O++)if((0,P[O])(z,I,J)){E=!0;break}!E&&sII(I)&&(u.ajaxPromise=n4G(a,z,I,J,r,N));return u};
Ai$=function(a){var z;return(a=(z=a.data)==null?void 0:z.navigationEndpoint)&&!!a.clickTrackingParams};
fBM=function(a){var z=_.H(a,_.ge);if(z&&(z=z.signal)&&FMm.indexOf(z)>=0)return!0;for(var I in a)if(HP3.indexOf(I)>=0)return!0;return!1};
sII=function(a){var z;if(((z=_.H(a,_.ge))==null?void 0:z.signal)==="CLIENT_SIGNAL")return!1;for(var I in a)if(bPd.indexOf(I)>=0)return!1;a=Object.keys(a);return a.length===1&&a[0]==="loggingUrls"?!1:!0};
GTd=function(a,z,I,J,r,P,N){var u=_.w4.instance;if(u&&_.mf(u,J))var E=_.y7(u,J,r).then(function(f){return(f==null?0:f.data)?f:{data:f}});
else E=a.requestDataForServiceEndpoint(J,r),_.H(J,hNG)||_.H(J,V91)||_.H(J,_.QId)||_.H(J,SZm)||_.Xd(new _.Fn("No RequestBuilder for endpoint",J));var O=_.kq();O.promise.thenCatch(function(){var f=_.v3(J,"action")||_.v3(J,"command")||_.v3(J,"endpoint");f&&(f=J[f],f.hasOwnProperty("onFailureAction")?_.tR(z,[f.onFailureAction],I):f.hasOwnProperty("onFailureCommand")&&_.tR(z,f.onFailureCommand,I));E.cancel("Resolver promise rejected")});
E.then(function(f){if(f){var A=f.error;if(A){if(P&&P.onServerError)P.onServerError(J,f);O.reject(new _.Fn("Response error",J,A))}else if(f=f.data)if(A=f.error){if(P&&P.onServerError)P.onServerError(J,f);O.reject(new _.Fn("Returned error",J,A))}else{iPd(z,I,f,J);xtI(f);if(A=WY0(f))for(var n=_.C(A),F=n.next();!F.done;F=n.next()){F=F.value;var h=_.ab().resolve(_.eL(v4G))||MK;if(!_.w4.instance||!h.some(function(d){return!!_.H(J,d)})||_.K("kevlar_response_processor_allowlist_killswitch")){var v=h=void 0;
((v=_.H((h=F)==null?void 0:h.commandMetadata,_.O_))==null?0:v.sendPost)?_.N$(z,[F]):_.tR(z,[F],I)}}(n=_.H(f==null?void 0:f.frameworkUpdates,c8))&&N&&N(n);if(P&&P.onSuccess)P.onSuccess(J,f);O.resolve(new _.Yq(f,A))}}else O.reject(new _.Fn("Invalid service endpoint provided",J))},function(f){O.reject(f)});
return O.promise};
xtI=function(a){var z;(a=(z=_.H(a==null?void 0:a.onResponseReceivedCommand,_.$tI))==null?void 0:z.continuationItems)&&(a==null?void 0:a.length)===1&&_.H(a[0],Xz0)&&_.Xz("so_r",void 0,"search_overview_answer")};
n4G=function(a,z,I,J,r,P){var N;return(N=z.getNetworkManager&&z.getNetworkManager()?z.getNetworkManager():_.ab().resolve(_.eL(_.Tr)))?GTd(N,a,z,I,J,r,P):_.xN("No network manager.")};
iPd=function(a,z,I,J){if(I=I.trackingParams||I.loggingDirectives&&I.loggingDirectives.trackingParams){var r;(_.H(J,T9m)||_.H(J,dti)||_.H(J,WMp))&&J.clickTrackingParams?r=_.VX(J.clickTrackingParams):_.K("web_graft_to_parent_command")&&J.clickTrackingParams&&(r=_.VX(J.clickTrackingParams));var P;J=(P=z.getScreenLayer)==null?void 0:P.call(z);z=_.Kw().graftServerVe(I,r,J);_.Ct(a,"yt-store-grafted-ve-action",[z])}};
_.o4d=function(a){var z=new Image;return new _.Ba(function(I,J){z.addEventListener("load",function(){I()});
z.addEventListener("error",function(){J()});
z.src=a})};
UtI=function(a){return!!a};
DtE=function(a){return!!a};
RN3=function(a,z,I){var J=a.rowIndex;J!==void 0&&_.Ct(a.hostElement,"yt-section-reactive-dismissal",[J,z,I])};
_.qK=function(a,z,I){a=_.C(a);for(var J=a.next();!J.done;J=a.next()){J=J.value;if(J===z)break;for(var r=_.C(I),P=r.next();!P.done;P=r.next())if(P=P.value,J.tagName===P||!_.K("web_event_button_role_check_killswitch")&&J.role==="button"&&P==="BUTTON")return!0}return!1};
_.ek=function(a,z,I){a=_.C(a);for(var J=a.next();!J.done;J=a.next()){J=J.value;if(J===z)break;for(var r=_.C(I),P=r.next();!P.done;P=r.next())if(J.id===P.value)return!0}return!1};
LMm=function(a){switch(a){case 0:return 16/9;case 1:return 2/3;case 2:return.75;case 3:return 1;case 4:return.5625;default:return 0}};
lB$=function(a,z){if(!a&&!z)return"medium";a=Math.max(a||0,z||0);return a>=256?"large":a>=96?"medium":"small"};
pz0=function(a){switch(a){case 1:return 2/3;case 4:return.5625;case 3:return 1;default:return 16/9}};
_.zI=function(){var a=_.ab().resolve(_.eL(_.aK));return a?(a=a.getCurrentPage())?_.jr(a):null:null};
_.IK=function(){var a=_.zI();if(!a){var z=_.ab().resolve(_.eL(_.aK)),I=z?typeof z:"no page manager";z=z?z.getCurrentPage():null;I=new _.Fn("Player is missing when requested.",I,z?z.tagName:"no page");_.Gx(I)}return a};
_.jr=function(a){return a&&a.getPlayer?a.getPlayer():null};
wz$=function(a,z){a={args:{raw_player_response:a}};z&&(a.args=Object.assign({},a.args,z));return a};
mtG=function(a){if(a.args){if(a.args.raw_player_response)return a.args.raw_player_response;if(a.args.player_response)return JSON.parse(a.args.player_response)}};
_.yiG=function(a,z){var I={url:"/watch?v="+a.videoId,webPageType:"WEB_PAGE_TYPE_WATCH",rootVe:3832};a.playlistId&&(I.url+="&list="+a.playlistId);a.playerParams&&(I.url+="&pp="+a.playerParams);a={watchEndpoint:a,commandMetadata:{webCommandMetadata:I}};z&&(a.clickTrackingParams=z);return a};
M93=function(){return kT3||!!_.DH("yt.player.Application")};
YZi=function(){return ciM||!!document.querySelector("link#player-css")};
eNG=function(){function a(){kT3=!0;qZG.resolve()}
var z,I;return _.t(function(J){qZG||(qZG=new _.EM,M93()?a():(z=document.createElement("script"),z.addEventListener("load",a),I=_.h7(_.Xw("PLAYER_JS_URL")),_.c9(z,I),document.head.appendChild(z)));return J.return(qZG.promise)})};
jg0=function(){function a(){ciM=!0;apG.resolve()}
if(!apG)if(apG=new _.EM,YZi())a();else{var z=document.createElement("link");z.id="player-css";z.addEventListener("load",a);var I=_.h7(_.Xw("PLAYER_CSS_URL"));_.eu(z,I,"stylesheet");document.head.appendChild(z)}return apG.promise};
zU0=function(){return M93()&&YZi()?Promise.resolve([]):Promise.all([eNG(),jg0()])};
IpE=function(a,z,I){var J={args:{}};a&&(J.args.raw_player_response=a);z&&(J.args.raw_watch_next_response=z);I&&(J.args=Object.assign({},J.args,I));return J};
Zj0=function(a,z,I){var J=!1;J=J===void 0?!0:J;a=typeof a==="string"?_.JE(document,a):a;var r=Jsx+"_"+_.yx(a),P=rsm[r];if(P&&J)return PsI(z,I)?P.api.loadVideoByPlayerVars(z.args||null):P.loadNewVideoConfig(z),P.api;P=new ri(a,r,z,I,void 0);rsm[r]=P;P.addOnDisposeCallback(function(){delete rsm[P.getId()]});
return P.api};
PsI=function(a,z){return z&&z.serializedExperimentFlags?z.serializedExperimentFlags.includes("web_player_remove_playerproxy=true"):a&&a.args&&a.args.fflags?a.args.fflags.includes("web_player_remove_playerproxy=true"):!1};
CsE=function(){var a=new _.EM;a.resolved=!1;var z=a.resolve;a.resolve=function(I){a.resolved=!0;z(I)};
return a};
tOp=function(a){var z={};NHE().install((z.document_disposed={callback:a},z))};
Pn=function(a,z){if(!a&&Math.random()<=_.Ib("kevlar_unified_player_logging_threshold")){a=Error("th`"+(z?z:"Unspecified error"));if(_.K("kevlar_unified_player_throw_errors"))throw a;_.Xd(a)}};
_.ufI=function(){var a=_.DH("ytDebugData.callbacks");a||(a={},_.qe("ytDebugData.callbacks",a));return a};
BH0=function(a,z){var I=_.ufI();if(_.K("web_dd_iu")||En7.includes(a))I[a]=z};
gnp=function(){return _.t(function(a){return a.return({isLeader:_.e3$(_.qo().getState()),c:_.Xw("INNERTUBE_CONTEXT_CLIENT_NAME"),cver:_.Xw("INNERTUBE_CONTEXT_CLIENT_VERSION")})})};
Oj1=function(){var a;_.t(function(z){if(z.nextAddress==1)return BH0("APP_STATE",gnp),z.yield(_.ab().resolve(_.Zc),2);a=z.yieldResult;BH0("PI",function(){return _.t(function(I){return I.return(a.getVideoStats())})});
_.nu(z)})};
fp1=function(a){var z=_.qZ(_.pL(_.IE.location.href));a=_.qZ(_.pL(a));return _.K("kevlar_clear_non_displayable_url_params")?z==CU(a):CU(z)==CU(a)};
CU=function(a){var z=_.AsM(a);a=a.slice(0);var I=["frags"];_.K("kevlar_hide_pp_url_param")&&I.push("pp");_.K("kevlar_hide_time_continue_url_param")&&I.push("time_continue");I=_.C(I);for(var J=I.next();!J.done;J=I.next())J=J.value,a=_.a_(_.qZ(a),J);return _.qZ(a)+(z?"#"+z:"")};
Nh=function(a,z){z=Number(z)*1E3;var I=Math.round((0,_.jp)()),J=I.toString();a={innertubeResponse:a,serverDateTimestampMs:J,lastModifiedTimestampMs:J,expireTimestampMs:(I+z).toString()};if(z=_.Xw("INNERTUBE_CONTEXT_CLIENT_NAME"))a.clientName=z;return a};
nni=function(){return window&&window.performance&&window.performance.now?window.performance.now():Date&&Date.now?Date.now():++sgm};
_.KCi=function(){var a=_.XZ(),z=_.TX();z&&a&&_.m8(z,[a],!0)};
Hj1=function(a){return a&&FCO.some(function(z){return a.includes(z)})};
ijE=function(a){var z=_.H(a,_.pv);if(!z)return!1;var I=z.url,J=z.attributionSrcMode==="ATTRIBUTION_SRC_MODE_LABEL_CHROME";if(!I)return _.Gx(Error("yh")),!1;if(z.target==="TARGET_NEW_WINDOW"){var r={};_.K("resolve_url_parent_tracking_params")&&(!_.MY(I)||c3(window.location.href,I))&&(r={endpoint:a,itct:a.clickTrackingParams});OOG(r);a=null;try{if(J)return a=_.bOE(I,"_blank",r,void 0,J),bj$(_.ab().resolve(hUO),a,I),!0}catch(n){_.Gx(n)}_.el(I,r);z={target:"_blank",noopener:_.K("set_window_noopener_ks")&&
!z.allowOpener};a=window;J=Su(I)?I:_.XG(typeof I.href!="undefined"?I.href:String(I));r=self.crossOriginIsolated!==void 0;var P="strict-origin-when-cross-origin";window.Request&&(P=(new Request("/")).referrerPolicy);var N=z.noreferrer;if(r&&N&&P==="unsafe-url")throw Error("oe");P=N&&!r;N=z.target||I.target;var u=[],E=[],O=!1;for(A in z){var f=z[A];switch(A){case "width":case "height":case "top":case "left":u.push(A+"="+f);break;case "target":break;case "noopener":case "noreferrer":f?E.push(A):(O=!0,
E.push(A+"=false"));break;case "attributionsrc":u.push(A+(f?"="+f:""));break;default:u.push(A+"="+(f?1:0))}}var A=N!==void 0&&!["_blank","_self","_top","_parent",""].includes(N);A=Qx()&&A;VO$&&r&&u.length===0&&E.length>0&&!A&&!O?(E.length===2&&(E=["noreferrer"]),_.wO(a,J,N,E[0]),a=QgO()):(A=u.join(","),_.vp()&&a.navigator&&a.navigator.standalone&&N&&N!="_self"?(A=_.OS("A"),_.Ua(A,J),A.target=N,P&&(A.rel="noreferrer"),((z=z.attributionsrc)||z==="")&&A.setAttribute("attributionsrc",z),z=document.createEvent("MouseEvent"),
z.initMouseEvent("click",!0,!0,a,1),A.dispatchEvent(z),a=QgO()):P?(a=_.wO(a,"",N,A),z=_.ij(J),a&&(a.opener=null,z===""&&(z="javascript:''"),z='<meta name="referrer" content="no-referrer"><meta http-equiv="refresh" content="0; url='+tE(z)+'">',z=Rt(z),(J=a.document)&&J.write&&(J.write(L4(z)),J.close()))):((a=_.wO(a,J,N,A))&&z.noopener&&(a.opener=null),a&&z.noreferrer&&(a.opener=null)));bj$(_.ab().resolve(hUO),a,I);return!0}z=_.ul(I);z=Hj1(z)||I==="https://studio.youtube.com/";J=!(!_.MY(I)||c3(window.location.href,
I));A=I.indexOf("disable_polymer=1")>=0;if(J||A||z)pH(I),vA(),_.wY(I,void 0,void 0,window.top,SUE);else return _.Xd(new _.Fn("UrlEndpoint should not be used for same origin navigations. Use a better typed command instead",a)),!1;return!0};
_.GkO=function(a,z){z=z===void 0?0:z;if(!(_.H(a,x7G)||_.H(a,vnI)||_.H(a,_.pv)&&_.H(a,_.pv).url))return!1;var I,J=(I=_.H(a,_.pv))==null?void 0:I.url;I=J?{externalLinkData:{url:J}}:null;return _.Kw().clickCommand(a,I,z)};
$7O=function(a,z){return _.Bd(a.entities,"subscriptionStateEntity",z)};
XO3=function(a,z){return _.Bd(a.entities,"subscriptionNotificationStateEntity",z)};
THi=function(a,z){return _.Bd(a.entities,"upcomingEventReminderStateEntity",z)};
d7G=function(a,z){return _.Bd(a.entities,"engagementToolbarSurfaceEntityPayload",z)};
WCi=function(a,z){return _.Bd(a.entities,"triStateButtonStateEntityPayload",z)};
on$=function(a,z){return _.Bd(a.entities,"commerceCartCheckoutButtonEntity",z)};
_.U7d=function(a,z){return _.Bd(a.entities,"playlistLoopStateEntity",z)};
D7O=function(a,z){return _.Bd(a.entities,"commandEntity",z)};
LCm=function(a,z,I,J,r){r=r===void 0?{}:r;return function(P){var N,u;var E=((N=a.loggingDirectives)==null?0:(u=N.clientVeSpec)==null?0:u.uiType)?_.uq(a.loggingDirectives.clientVeSpec.uiType):void 0;r.clickedVisualElement||(r.clickedVisualElement=E);E=RU1(a,z);I(E,P);E=_.C(E);for(N=E.next();!N.done;N=E.next()){N=N.value;u=J;var O=P,f=r;f.form?f.form.event=O:f.form={element:u,event:O};bJ(N,f)}}};
RU1=function(a,z){var I=[];z?(a.toggledCommand&&I.push(a.toggledCommand),a.toggledServiceEndpoint&&I.push(a.toggledServiceEndpoint)):(a.defaultCommand&&I.push(a.defaultCommand),a.defaultServiceEndpoint&&I.push(a.defaultServiceEndpoint),a.defaultNavigationEndpoint&&I.push(a.defaultNavigationEndpoint));return I};
lp7=function(a,z){var I=a.toggledStyle||a.style,J;switch((J=z?I:a.style)==null?void 0:J.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"}}};
_.EN=function(){return _.t(function(a){return a.nextAddress==1?a.yield(_.ab().resolve(_.Zc),2):a.return(_.ab().resolve(pOO)())})};
_.Bn=function(){return _.ab().resolve(pOO)()};
_.gi=function(){return i1(function(){return{lottieEl:void 0}})};
wOp=function(a,z){return a.startsWith(z.uniqueId)};
m7E=function(a){var z,I;_.t(function(J){if(J.nextAddress==1)return J.yield(_.EN(),2);z=J.yieldResult;if((I=z)==null||!I.addEventListener)return ON(),J.return();z.addEventListener("onCueRangeEnter",a);_.nu(J)})};
ysG=function(a){var z,I;_.t(function(J){if(J.nextAddress==1)return J.yield(_.EN(),2);z=J.yieldResult;if((I=z)==null||!I.removeEventListener)return ON(),J.return();z.removeEventListener("onCueRangeEnter",a);_.nu(J)})};
kkm=function(a){var z,I,J,r,P;_.t(function(N){if(N.nextAddress==1)return N.yield(_.EN(),2);z=N.yieldResult;if((I=z)==null||!I.addCueRange)return ON(),N.return();J=_.C(a.timings);for(r=J.next();!r.done;r=J.next())P=r.value,z.addCueRange(a.uniqueId+"-"+P,P/1E3,(P+100)/1E3);_.nu(N)})};
MOO=function(a){var z,I,J,r,P;_.t(function(N){if(N.nextAddress==1)return N.yield(_.EN(),2);z=N.yieldResult;if((I=z)==null||!I.removeCueRange)return ON(),N.return();J=_.C(a.timings);for(r=J.next();!r.done;r=J.next())P=r.value,z.removeCueRange(a.uniqueId+"-"+P);_.nu(N)})};
cs$=function(){var a,z,I;return _.t(function(J){if(J.nextAddress==1)return J.yield(_.EN(),2);a=J.yieldResult;if((z=a)==null||!z.getPlayerState)return ON(),J.return();I=a.getPlayerState();return J.return(I===2)})};
ON=function(){_.Xd(new _.Fn("Smartimation player does not exist or is corrupted"))};
YUx=function(){try{var a;return(a=window.CSS)!=null&&a.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(z){return _.Xd(new _.Fn("Smartimation CSS.supports threw an error")),!1}};
J_7=function(a,z,I,J,r){var P=a.playlistId?qUG:eUM;z=z();I=I();r=!!a.videoId&&r()==="ADD_TO_OFFLINE_BUTTON_STATE_DISABLED";if(_.Hd(z))return aW$({data:a,actionType:P,disabled:r},I);if(a.videoId&&J())return jFI({data:a,actionType:P,disabled:r});switch(z){case "TRANSFER_STATE_UNKNOWN":return jFI({data:a,actionType:P,disabled:r});case "TRANSFER_STATE_FAILED":return a.videoId?zuG({data:a,actionType:P,disabled:r}):IWi({data:a,actionType:P,disabled:r});case "TRANSFER_STATE_COMPLETE":return IWi({data:a,
actionType:P,disabled:r});case "TRANSFER_STATE_PRE_TRANSFER":case "TRANSFER_STATE_TRANSFER_IN_QUEUE":case "TRANSFER_STATE_TRANSFERRING":return aW$({data:a,actionType:P,disabled:r},I);case "TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH":return a.videoId?zuG({data:a,actionType:P,disabled:r}):jFI({data:a,actionType:P,disabled:r});default:return jFI({data:a,actionType:P,disabled:r})}};
r_x=function(a,z){var I=a.onTapCommand,J=_.o0(I);if(a.videoId&&_.H(J,_.fU))return _.H(J,_.fU).action=z,I;a.playlistId&&_.H(J,_.nU)&&(_.H(J,_.nU).action=z);return I};
jFI=function(a){var z=a.data;var I=a.actionType;a=a.disabled;return{text:Pii,iconType:"OFFLINE_DOWNLOAD",onTap:r_x(z,I.ACTION_ADD),disabled:a}};
aW$=function(a,z){var I=a.data;var J=a.actionType;a=a.disabled;var r="OFFLINE_DOWNLOAD";z>=0&&z<=.1?r="OFFLINE_DOWNLOADING_ZERO":z>.1&&z<=.3?r="OFFLINE_DOWNLOADING_TWENTY":z>.3&&z<=.5?r="OFFLINE_DOWNLOADING_FORTY":z>.5&&z<=.7?r="OFFLINE_DOWNLOADING_SIXTY":z>.7&&z<1?r="OFFLINE_DOWNLOADING_EIGHTY":z===1&&(r="OFFLINE_PIN");return{text:Zrd,iconType:r,onTap:r_x(I,J.ACTION_REMOVE_WITH_PROMPT),disabled:a}};
IWi=function(a){var z=a.data;var I=a.actionType;a=a.disabled;return{text:Ci3,iconType:"OFFLINE_PIN",onTap:r_x(z,I.ACTION_REMOVE_WITH_PROMPT),disabled:a}};
zuG=function(a){var z=a.data;var I=a.actionType;a=a.disabled;return{text:N8p,iconType:"OFFLINE_DOWNLOAD",onTap:r_x(z,I.ACTION_RETRY),disabled:a}};
B8O=function(a){var z=tbp;uB1.push(a);E_M||(z(function(){for(var I=_.C(uB1),J=I.next();!J.done;J=I.next())J=J.value,J();uB1.length=0;E_M=!1}),E_M=!0)};
tbp=function(a){Promise.resolve().then(a)};
g_0=function(a){a=_.C(CmO(a));var z=a.next().value,I=a.next().value,J=!1;_.QO(function(){return function(){J=!0}});
return[z,function(r){B8O(function(){J&&!_.K("cow_prevent_state_setter_after_cleanup_killswitch")||I(r)})}]};
_.KU=function(a,z){var I=Zfm();return _.Bg(function(){I();return tep(a,[_.SJ(z)||""])},{debugName:"LUZslf"},"qYSKAc")};
OrG=function(a){var z=_.KU(_.oU,function(){return a().videoId}),I=_.KU(_.Ur,function(){return a().playlistId});
return function(){return a().videoId?z:a().playlistId?I:_.C(_.CW("TRANSFER_STATE_UNKNOWN",void 0,"Qibycf")).next().value}};
fWI=function(a){var z=_.KU(DY,function(){return a().videoId}),I=_.KU(_.qR$,function(){return a().playlistId});
return function(){return a().videoId?z:a().playlistId?I:_.C(_.CW(0,void 0,"K4tgOc")).next().value}};
A_$=function(a){var z=_.KU(_.ZNM,function(){return a().videoId});
return function(){return a().videoId?z:_.C(_.CW(!1,void 0,"Oaxwcf")).next().value}};
sFI=function(a){var z=_.KU(jD7,function(){return a().videoId});
return function(){return a().videoId?z:_.C(_.CW("ADD_TO_OFFLINE_BUTTON_STATE_UNKNOWN",void 0,"MsSpJc")).next().value}};
n_x=function(){return{}};
_.hum=function(a,z,I){return{submitForm:function(){var J;return _.t(function(r){if(r.nextAddress==1){J=KIi(a());if(!J)return r.return();if(J.onSubmit)return J.onSubmit(),r.return();if(!J.submitConfig||!J.formData)return r.jumpTo(0);J.disableDuringSubmission&&FIi(a(),!0);Hrx(z);return r.yield(brI(J.submitConfig,J.formData()),3)}Hrx(I);J.disableDuringSubmission&&FIi(a(),!1);return r.return()})},
isValid:function(){var J=KIi(a());if(J){var r;return!((r=J.isValid)==null||!r.call(J))}return!0},
isSubmitting:function(){var J,r;return!!((J=KIi(a()))==null?0:(r=J.isSubmitting)==null?0:r.call(J))}}};
_.SDd=function(){if(!Vb0){var a=_.C(_.CW(new Map,void 0,"yE61ae"));Vb0=a.next().value;QFm=a.next().value}return Vb0};
_.irM=function(a){QFm(new Map(a))};
KIi=function(a){if(a)return _.SDd()().get(a)};
brI=function(a,z){var I;return _.t(function(J){return z?(I=_.ab().resolve(_.eL(xd0)))&&a.submitId?J.yield(I.submitForm(a.submitId,z,v_i,a.params,a.clickTrackingParams),0):J.return():J.return()})};
FIi=function(a,z){if(a){var I=_.SDd();I().set(a,Object.assign({},I().get(a),{isSubmitting:function(){return z}}));
_.irM(I())}};
Hrx=function(a){if(a){var z=_.ab().resolve(_.j6);z&&(a=_.o0(a()))&&z.resolveCommand(a)}};
FF=function(){return _.ab().resolve(_.eL(GhO))||{}};
$d7=function(a,z){z=z===void 0?{shouldPersist:!0}:z;return{useUpdatableData:function(I,J){var r=[],P=_.C(_.Af(function(){var O=I();if(J!=null&&J.length&&r){var f=r.length>0;for(var A=!1,n=0;n<J.length;n++){var F=J[n]();f&&F!==r[n]&&(A=!0);r[n]=F}f=A}else f=!1;if(f)_.Hn.remove(E());else if(f=_.Hn.get(E()))return f;return O})),N=P.next().value,u=P.next().value,E=_.Bg(function(){return a(I())},void 0,"VFraLb");
_.h2(function(){if(E()!=null){bq.set(E(),[N,u,!1]);var O=E();_.V3(function(){bq.delete(O)})}},"Fdafud");
return[N,function(O){u(O);z.shouldPersist&&_.Hn.set(E(),O)}]},
getData:function(I){var J;return(J=bq.get(a(I)))==null?void 0:J[0]()},
updateData:function(I,J){I=a(I);var r=bq.get(I);if(!r)return!1;var P=_.C(r);r=P.next().value;P=P.next().value;J=J(r());P(J);z.shouldPersist&&_.Hn.set(I,J);return!0},
useUpdatableDataIdom:function(I,J){var r=a(I),P=_.Hn.get(r),N=_.C(g_0(P!=null?P:I)),u=N.next().value,E=N.next().value,O=xS(P!=null?P:I);_.VO(function(){if(r!=null)return bq.set(r,[function(){return O.value},
function(f){E(f);O.value=f},
bq.has(r)]),_.GW.addJob(function(){_.hE(_.GW,function(){var f=bq.get(r);f&&(f[2]=!1)},0)},8),function(){var f;
((f=bq.get(r))==null?0:f[2])||bq.delete(r)}},[r]);
_.VO(function(){u!==I&&(E(I),O.value=I)},J?[].concat(_.ih(J),[r]):[r]);
return[u,E]}}};
XFG=function(a){return typeof a==="function"};
T80=function(a){var z=_.C(_.CW(!0,void 0,"bKtO6d")),I=z.next().value;z.next();return function(){var J=Ee(a.children());return _.B(_.g,{cond:I,then:function(){return J},
else:a.fallback})}()};
_.V0=function(a){var z=ddd(a),I=z.data,J=z.mapping,r=z.wrapper;z=z.pendingFallback;var P=function(){return WII(_.SJ(I))},N=function(){var u=P(),E=[];
u=_.C(u);for(var O=u.next();!O.done;O=u.next()){var f=void 0;O=O.value;var A=void 0;for(f in O)if(!(!O).hasOwnProperty(f)){A=f;break}(f=A)&&E.push(f)}return E};
return a.data?_.B(T80,{fallback:z},function(){return _.B(_.se,{each:N},function(u,E){var O=r?function(A){return r(function(){return J[u](A,E)},f,E)}:function(A){return J[u](A,E)};
O.debugName||(O.debugName=String(u));if(!J[String(u)])return document.createComment("");O.componentType!==KW&&o_0(String(u));var f=UdE(P,u,E);return _.B(O,{data:f})})}):_.B(_.eJ,null)};
ddd=function(a){var z=a.targetId||Ddd(a.children);if(!a.data||!z||_.K("mweb_new_replaceables_killswitch"))return Object.assign({},a,{mapping:a.children,wrapper:void 0});var I="stamper-"+RuG++,J=function(){var u;return(u=typeof a.targetId==="function"?a.targetId(I):a.targetId)!=null?u:I};
z=_.C(LIE(function(){var u=WII(a.data());u.targetId=J;return u})).next().value;
var r=Object.assign({},FF().replaceableMapping,a.children);if(a.replacementWrapper){var P=r.notificationTextRenderer,N=r.notificationMultiActionRenderer;P&&(r.notificationTextRenderer=function(u,E){return a.replacementWrapper(P({data:u.data},E))});
N&&(r.notificationMultiActionRenderer=function(u,E){return a.replacementWrapper(N({data:u.data},E))})}return Object.assign({},a,{data:z,
mapping:r,wrapper:function(u,E,O){return rS0({targetId:J,stamperIndex:O},u)}})};
UdE=function(a,z,I){var J;return _.Bg(function(){var r=a()[I()];if(r)J=r[z];else return _.Xd(new _.Fn("Stamper failed to find "+String(z)+" at index "+I()+" of data array of length "+(a().length+" (b/365643359). Did you access a signal after a component has been cleaned up?"))),J;return r[z]},void 0,"wgRPHd")};
Ddd=function(a){a=_.C(Object.keys(a));for(var z=a.next();!z.done;z=a.next())if(z=z.value,lWG.includes(z)||pF1.includes(z)||wFp.includes(z))return!0;return!1};
WII=function(a){return a?Array.isArray(a)?a:[a]:[]};
o_0=function(a){if(_.K("web_enable_renderer_logger")){var z;(z=_.ab().resolve(_.eL(mdm)))!=null&&z.loggingEnabled&&!z.ids.has(a)&&z.ids.add(a)}};
y_$=function(){var a,z;return(z=(a=_.ab().resolve(_.eL(_.kN)))==null?void 0:a())!=null?z:!1};
MbM=function(a,z){a=a===void 0?khd:a;switch(z.type){case "SET_IS_BOTTOM_SHEET_OPEN_STATE":return Object.assign({},a,{isOpen:z.payload});default:return a}};
YDp=function(a,z){a=a===void 0?c_p:a;switch(z.type){case "SET_CINEMATIC_SETTING_STATE":return Object.assign({},a,{isAllowed:z.payload});default:return a}};
eu7=function(a,z){a=a===void 0?qDd:a;switch(z.type){case "SET_ERROR_MESSAGE_CREATE_PLAYLIST_STATE":return Object.assign({},a,{errorMessage:z.payload});case "SET_TITLE_CREATE_PLAYLIST_STATE":return Object.assign({},a,{title:z.payload});case "SET_PRIVACY_CREATE_PLAYLIST_STATE":return Object.assign({},a,{privacy:z.payload});case "SET_IS_DISABLED_CREATE_PLAYLIST_STATE":return Object.assign({},a,{isDisabled:z.payload});default:return a}};
jjG=function(a,z){a=a===void 0?alG:a;switch(z.type){case "SET_IS_DRAWER_LAYOUT_OPEN_STATE":return Object.assign({},a,{isOpen:z.payload});default:return a}};
Ilx=function(a,z){a=a===void 0?z_G:a;switch(z.type){case "SET_IS_FULLSCREEN_STATE":return Object.assign({},a,{isFullscreen:z.payload});case "SET_NAVIGATION_BUTTON":var I=z.payload.targetId,J=Object.assign({},a.navigationButtons);J[I]=z.payload.button;return Object.assign({},a,{navigationButtons:J});case "SET_TOP_PANEL_ID_STATE":return Object.assign({},a,{topPanelId:z.payload});case "SET_SECONDARY_HEADER":return I=z.payload.panelId,J=Object.assign({},a.secondaryHeader),J[I]=z.payload.secondaryHeader,
Object.assign({},a,{secondaryHeader:J});default:return a}};
ZCm=function(){return fL(Object.assign({},{voiceSearch:MPm,engagementPanel:Ilx,bottomSheet:MbM,cinematicSetting:YDp,shorts:XcI,drawerLayout:jjG,createPlaylist:eu7,locationCollection:Ja1,reportChannel:raM,reportForm:PC7},T73))};
CCI=function(a,z){_.GW.addLowPriorityJob(function(){var I,J,r;return _.t(function(P){switch(P.nextAddress){case 1:return _.BP(P,2),P.yield(obG(),4);case 4:return P.yield(fetch(a),5);case 5:return I=P.yieldResult,P.yield(I.json(),6);case 6:J=P.yieldResult;iJ.set(a,J);requestAnimationFrame(function(){z(J)});
_.p1(P,0);break;case 2:r=_.sk(P),_.Xd(r),_.nu(P)}})})};
Nyi=function(a){var z={animationConfig:{},listeners:{}},I=function(){a(!0)};
z.listeners.data_failed=I;z.listeners.error=I;z.listeners.data_ready=function(){a(!1)};
return z};
EH0=function(a){var z=a.model;var I=a.subscribed;var J=a.isOverlay;var r=a.element;var P=a.commandController;var N=a.notificationState;if(I){var u,E;var O=(z==null?void 0:(u=z.buttonStyle)==null?void 0:u.subscribedStateStyle)==="SUBSCRIBE_BUTTON_VIEW_MODEL_SUBSCRIBED_STATE_STYLE_DROPDOWN_COMPACT"?void 0:z==null?void 0:(E=z.unsubscribeButtonContent)==null?void 0:E.buttonText}else{var f;O=z==null?void 0:(f=z.subscribeButtonContent)==null?void 0:f.buttonText}a:{var A;switch(z==null?void 0:(A=z.buttonStyle)==
null?void 0:A.buttonSize){case "SUBSCRIBE_BUTTON_VIEW_MODEL_SIZE_XSMALL":u="S";break a;default:u="M"}}a:if(J)J="overlay";else switch(z.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":J="overlay";break a;default:J="mono"}a:if(I)var n="tonal";else switch((n=z.buttonStyle)==
null?void 0:n.unsubscribedStateStyle){case "SUBSCRIBE_BUTTON_VIEW_MODEL_UNSUBSCRIBED_STATE_STYLE_SECONDARY":n="tonal";break a;default:n="filled"}return{style:J,type:n,state:z.disableSubscribeButton?"disabled":"active",size:u,focused:a.focused,toggled:I,accessibilityLabel:tDI(z,I,N),buttonText:O,iconPosition:z.disableNotificationBell?"none":"leading-trailing",onTap:uh0(z,I,r,P),disableTextEllipsis:!!a.disableTextEllipsis}};
uh0=function(a,z,I,J){return function(r){if(z){var P;var N=a.disableNotificationBell?_.o0(a==null?void 0:(P=a.unsubscribeButtonContent)==null?void 0:P.onTapCommand):_.o0(a==null?void 0:a.onShowSubscriptionOptions)}else{var u;N=_.o0(a==null?void 0:(u=a.subscribeButtonContent)==null?void 0:u.onTapCommand)}N&&bJ(N,{form:{element:I==null?void 0:I.value},commandController:J});r.stopPropagation()}};
tDI=function(a,z,I){if(z){if(a==null?0:a.disableNotificationBell){var J;return a==null?void 0:(J=a.unsubscribeButtonContent)==null?void 0:J.accessibilityText}switch(I){case "SUBSCRIPTION_NOTIFICATION_STATE_OCCASIONAL":var r;return a==null?void 0:(r=a.bellAccessibilityData)==null?void 0:r.occasionalLabel;case "SUBSCRIPTION_NOTIFICATION_STATE_ALL":var P;return a==null?void 0:(P=a.bellAccessibilityData)==null?void 0:P.allLabel;case "SUBSCRIPTION_NOTIFICATION_STATE_OFF":var N;return a==null?void 0:(N=
a.bellAccessibilityData)==null?void 0:N.offLabel;case "SUBSCRIPTION_NOTIFICATION_STATE_DISABLED":var u;return a==null?void 0:(u=a.bellAccessibilityData)==null?void 0:u.disabledLabel;default:var E;return a==null?void 0:(E=a.unsubscribeButtonContent)==null?void 0:E.accessibilityText}}else{var O;return a==null?void 0:(O=a.subscribeButtonContent)==null?void 0:O.accessibilityText}};
By1=function(a){if(a){switch(a){case "SUBSCRIPTION_NOTIFICATION_STATE_ALL":a="NOTIFICATIONS_ACTIVE";break;case "SUBSCRIPTION_NOTIFICATION_STATE_OFF":case "SUBSCRIPTION_NOTIFICATION_STATE_DISABLED":a="NOTIFICATIONS_OFF";break;default:a="NOTIFICATIONS_NONE"}return a}};
gHG=function(a,z,I){I.subscribed!==z&&((I=I.key)&&_.cK(_.Q0("subscriptionStateEntity",I,{key:I,subscribed:z})),a.dispatchEvent(new CustomEvent("yt-subscription-changed",{bubbles:!0,detail:z})),z||_.ZF(a,"yt-unsubscribe-action"))};
flx=function(a){a=_.H(_.o0(a),_.Sr);var z,I,J,r;return(r=_.H(a==null?void 0:(z=a.panelLoadingStrategy)==null?void 0:(I=z.inlineContent)==null?void 0:(J=I.sheetViewModel)==null?void 0:J.content,OCI))==null?void 0:r.listItems};
Aa7=function(a,z){if(a.onShowSubscriptionOptions&&z&&(a=flx(a.onShowSubscriptionOptions),a!=null&&a.length)){var I=By1(z);a.forEach(function(J){J=_.H(J,_.iq);var r,P,N,u,E=J==null?void 0:(r=J.leadingImage)==null?void 0:(P=r.sources)==null?void 0:(N=P[0])==null?void 0:(u=N.clientResource)==null?void 0:u.imageName;J&&E&&(J.isSelected=E===I)})}};
sjd=function(a,z,I,J){z&&I?a.style.width=I+"px":!z&&J&&(a.style.width=J+"px")};
nHG=function(a,z,I){var J;(J=a.lottieEl)==null||J.goToAndPlay(0);var r;(r=z.lottieEl)==null||r.goToAndPlay(0);_.xc(_.GW,function(){var P;(P=I.lottieEl)==null||P.goToAndPlay(0)},300)};
Kwm=function(a){return!(a==null||!a.iconName||(a==null?0:a.title))};
FwM=function(a,z,I,J){I&&_.GW.cancelJob(I);I=_.GW.addLowPriorityJob(function(){J(void 0)},5E3);
J(I);z&&a!==(z.likeStatus==="LIKE")&&z.key&&_.cK(_.Q0("likeStatusEntity",z.key,{key:z.key,likeStatus:a?"LIKE":"INDIFFERENT",hadUserInteraction:a}))};
_.HC7=function(a,z){return _.Bd(a.entities,"accountLinkStatusEntity",z)};
bCO=function(a,z){return _.Bd(a.entities,"hatsSurveyEntity",z)};
h_G=function(a,z){return _.Bd(a.entities,"hatsSurveyStateEntity",z)};
VDI=function(a,z){return _.Bd(a.entities,"quantityIncrementerEntity",z)};
Qjp=function(a){switch(a){case "BADGE_STYLE_TYPE_MEMBERS_ONLY":return 8;case "BADGE_STYLE_TYPE_PREMIUM":return 6;case "BADGE_STYLE_TYPE_AD":return 2;case "BADGE_STYLE_TYPE_YPC":return 9;case "BADGE_STYLE_TYPE_FEATURED":return 5;case "BADGE_STYLE_TYPE_THUMBNAIL_OVERLAY_SPECIAL":return 19;default:return 0}};
SlI=function(a){switch(a){case "BADGE_STYLE_TYPE_YPC_GREEN":return 3;case "BADGE_STYLE_TYPE_BR_RATING_SMALL_GREEN_SQUARE":return 3;case "BADGE_STYLE_TYPE_BR_RATING_SMALL_BLUE_SQUARE":return 4;case "BADGE_STYLE_TYPE_BR_RATING_SMALL_YELLOW_SQUARE":return 6;case "BADGE_STYLE_TYPE_BR_RATING_SMALL_ORANGE_SQUARE":return 8;case "BADGE_STYLE_TYPE_BR_RATING_SMALL_RED_SQUARE":return 10;case "BADGE_STYLE_TYPE_BR_RATING_SMALL_BLACK_SQUARE":return 12;case "BADGE_STYLE_TYPE_BR_RATING_LARGE_RED_SQUARE":return 11;
case "BADGE_STYLE_TYPE_BR_RATING_LARGE_BLUE_SQUARE":return 5;case "BADGE_STYLE_TYPE_BR_RATING_LARGE_YELLOW_SQUARE":return 7;case "BADGE_STYLE_TYPE_BR_RATING_LARGE_ORANGE_SQUARE":return 9;case "BADGE_STYLE_TYPE_BR_RATING_LARGE_BLACK_SQUARE":return 13}};
iC$=function(a){switch(a){case 2:return"badge-shape-wiz--ad";case 1:return"badge-shape-wiz--media";case 3:return"badge-shape-wiz--promoted";case 4:return"badge-shape-wiz--promoted-inverted";case 5:return"badge-shape-wiz--timely";case 6:return"badge-shape-wiz--premium";case 7:return"badge-shape-wiz--sale";case 8:return"badge-shape-wiz--membership";case 9:return"badge-shape-wiz--commerce";case 11:return"badge-shape-wiz--live";case 12:return"badge-shape-wiz--status-new";case 13:return"badge-shape-wiz--status-complete";
case 14:return"badge-shape-wiz--status-warning";case 15:return"badge-shape-wiz--status-error";case 16:return"badge-shape-wiz--status-default";case 17:return"badge-shape-wiz--thumbnail-default";case 18:return"badge-shape-wiz--thumbnail-live";case 19:return"badge-shape-wiz--thumbnail-special";default:return"badge-shape-wiz--default"}};
_.vH3=function(a){var z=_.Ib("web_generic_client_event_wait_period ",0);z||(z=3E5);var I=xxx.get(a);!_.K("enable_web_client_experiment_event_timeout_killswitch")&&I&&(0,_.jp)()-I<z||(xxx.set(a,(0,_.jp)()),_.x0("genericClientExperimentEvent",{eventType:a}))};
GPI=function(a){switch(a){case "small":return"collections-stack-wiz__collection-stack1--small";case "medium":return"collections-stack-wiz__collection-stack1--medium";case "large":return"collections-stack-wiz__collection-stack1--large";default:return""}};
$x0=function(a){if(!a)return"";var z,I=(z=_.ab().resolve(_.eL(_.kN)))==null?void 0:z(),J;if(!I&&((J=a.vibrantColorPalette)==null?0:J.iconInactiveColor))return LH(a.vibrantColorPalette.iconInactiveColor,"1");var r;return I&&((r=a.darkColorPalette)==null?0:r.iconInactiveColor)?LH(a.darkColorPalette.iconInactiveColor,"1"):a.color?LH(a.color,"1"):a.sampledThumbnailColor?(a=a.sampledThumbnailColor,"rgba("+a.red+","+a.green+","+a.blue+");"):""};
_.vn=function(a,z){if(!a.includes("DATE_PLACEHOLDER"))return a;var I=new Date(0);I.setUTCSeconds(z);return a.replace("DATE_PLACEHOLDER",X$7(I))};
Tym=function(a,z,I){return function(J){var r=a.command;r&&(bJ(r,{form:{element:I}}),z([r],J))}};
Wwi=function(a,z,I,J,r){return function(P){var N=dxO(a,z);N&&bJ(N,{form:{element:I},commandController:J});r&&P.stopPropagation()}};
dxO=function(a,z){if(a.signInEndpoint&&!_.K("web_subscribe_sign_in_endpoint_killswitch"))return a.signInEndpoint;if(z){if(a.serviceEndpoints)return a.serviceEndpoints[1];if(a.onUnsubscribeEndpoints)return a.onUnsubscribeEndpoints[0]}else{if(a.serviceEndpoints)return a.serviceEndpoints[0];if(a.onSubscribeEndpoints)return a.onSubscribeEndpoints[0]}};
oHp=function(a,z){var I,J,r,P;z=z&&((I=a.unsubscribeAccessibility)==null?void 0:(J=I.accessibilityData)==null?void 0:J.label)||((r=a.subscribeAccessibility)==null?void 0:(P=r.accessibilityData)==null?void 0:P.label);return a.longSubscriberCountText?[z,_.cd(a.longSubscriberCountText)].filter(function(N){return N}).join(" "):z};
GI=function(a,z){return z||(a==null?0:a.isChannelDelegate)?"disabled":"active"};
Uxx=function(a,z){var I;switch((I=a.style)==null?void 0:I.styleType){case "COMPACT_GRAY":return{style:"mono",type:"tonal",state:GI(a)};case "MEDIUM_GRAY":return{style:"mono",type:"tonal",state:GI(a)};case "VISIBLY_DISABLED":return{style:"mono",type:"text",state:GI(a,!0)};case "OVERLAY":return z?{style:"overlay",type:"tonal",state:GI(a)}:{style:"overlay",type:"filled",state:GI(a)};default:return z?{style:"mono",type:"tonal",state:GI(a)}:{style:"mono",type:"filled",state:GI(a)}}};
_.$c=function(){for(var a=[],z=_.C(_.dO.apply(0,arguments)),I=z.next();!I.done;I=z.next())if(I=I.value)if(typeof I==="string")a.push(I);else{I=_.C(Object.entries(I));for(var J=I.next();!J.done;J=I.next()){var r=_.C(J.value);J=r.next().value;(r=r.next().value)&&a.push(J)}}return a.join(" ")};
Dxd=function(a){switch(a){case "small":return"ytThumbnailOverlayProgressBarHostSmall";case "medium":return"ytThumbnailOverlayProgressBarHostMedium";case "large":return"ytThumbnailOverlayProgressBarHostLarge";default:return"ytThumbnailOverlayProgressBarHostMedium"}};
R_I=function(a){switch(a){case "small":return"ytThumbnailBottomOverlayViewModelBadgeContainerSmall";case "medium":return"ytThumbnailBottomOverlayViewModelBadgeContainerMedium";case "large":return"ytThumbnailBottomOverlayViewModelBadgeContainerLarge";default:return"ytThumbnailBottomOverlayViewModelBadgeContainerMedium"}};
Lwp=function(a,z){var I=a.map(function(J){return J.toString()});
return _.g4(function(J){if(I.includes(J.key)){z&&J.preventDefault();var r;(r=J.currentTarget)==null||r.click()}})};
_.XF=function(){return Lwp(["Enter"])};
_.ll$=function(){return Lwp(["Enter"," "],!0)};
_.TI=function(a){if(a.composedPath)return a.composedPath();if(!a.__composedPath){for(var z=[],I=a.target;I;)z.push(I),I=I.parentNode;z.push(window);a.__composedPath=z}return a.__composedPath};
_.di=function(a,z,I){a=_.C(a);for(var J=a.next();!J.done;J=a.next()){J=J.value;if(J===z)break;for(var r=_.C(I),P=r.next();!P.done;P=r.next())if(P=P.value,J.tagName===P||J.role==="button"&&P==="BUTTON")return!0}return!1};
w$3=function(a,z){var I,J=(I=z.observer)!=null?I:_.ab().resolve(jH);if(a){I=p$M(a);var r=[];z.showOption&&r.push(J.observe(a,function(){z.visibilityCallback(!0,a)},z.showOption));
z.hideOption&&r.push(J.observe(a,function(){z.visibilityCallback(!1,a)},z.hideOption));
z.prescanOption&&z.prescanCallback&&r.push(J.observe(a,function(){z.prescanCallback()},z.prescanOption));
var P;I.visibilityMonitorKeys=((P=I.visibilityMonitorKeys)!=null?P:[]).concat(r)}};
p$M=function(a){var z;return(z=a.polymerController)!=null?z:a};
_.oK=function(a){return!!_.Wn(a)};
_.UN=function(a,z,I,J,r){return function(P){var N=_.H8();_.h2(function(){if(P){_.mxx(P,a(),r);var u=_.yax(P,a(),z,I,J,N);_.V3(u)}},"nr377e")}};
_.mxx=function(a,z,I){var J=kP$(z),r=MDx(z);z=J&&caG;var P=r&&Ylm;(J||r)&&w$3(a,{visibilityCallback:function(N){var u=_.ab().resolve(_.j6);N&&J?u.resolveCommand(J,{form:{element:I?a:void 0},disableClickTracking:!0}):!N&&r&&u.resolveCommand(r,{form:{element:I?a:void 0},disableClickTracking:!0})},
showOption:z,hideOption:P})};
_.yax=function(a,z,I,J,r,P){var N=new Map;if(z=_.Wn(z)){var u;a=(J==null?void 0:(u=J.onTap)==null?void 0:u.value)||a;I=ql0(z,a,I==null?void 0:I.onTap,r,P);a.addEventListener("click",I);N.set("click",I)}return function(){for(var E=_.C(N),O=E.next();!O.done;O=E.next()){var f=_.C(O.value);O=f.next().value;f=f.next().value;a.removeEventListener(O,f)}}};
_.Wn=function(a){var z;return(a=(z=_.H(a,e_m))==null?void 0:z.onTap)&&_.o0(a)};
kP$=function(a){var z;return(a=(z=_.H(a,e_m))==null?void 0:z.onVisible)&&_.o0(a)};
MDx=function(a){var z;return(a=(z=_.H(a,e_m))==null?void 0:z.onHidden)&&_.o0(a)};
ql0=function(a,z,I,J,r){var P=function(u){_.ab().resolve(_.j6).resolveCommand(a,u)},N=function(u){J&&_.di(_.TI(u),z,J)||P(u.target?{form:{element:u.target,
sourceData:a,mutationContext:r}}:void 0)};
I&&(N=function(u){I(u,P)});
return N};
a7G=function(a){switch(a){case "tiny":return 16;case "extra-small":return 24;case "small":return 32;case "medium":return 36;case "48":return 48;case "large":return 56;case "extra-large":return 72;case "extra-extra-large":return 72;case "giant":return 72;default:return 0}};
jai=function(a){var z=a.numAvatarsInCluster;switch(a.clusterSize){case "small":return z===2?22:18;case "40":return z===2?24:22;default:return z===2?24:20}};
z$d=function(a,z){return function(I){var J=Object.keys(z);_.h2(function(){if(a!=null&&a()){for(var r=_.C(J),P=r.next();!P.done;P=r.next())P=P.value,I.addEventListener(P,z[P]);_.V3(function(){for(var N=_.C(J),u=N.next();!u.done;u=N.next())u=u.value,I.removeEventListener(u,z[u])})}},"bXZGfe")}};
I77=function(a){switch(jai(a)){case 18:return"yt-spec-avatar-shape--avatar-in-cluster-size-18";case 20:return"yt-spec-avatar-shape--avatar-in-cluster-size-20";case 22:return"yt-spec-avatar-shape--avatar-in-cluster-size-22";case 24:return"yt-spec-avatar-shape--avatar-in-cluster-size-24";default:return""}};
JUI=function(a){switch(a){case "tiny":return"yt-spec-avatar-shape--avatar-size-tiny";case "extra-small":return"yt-spec-avatar-shape--avatar-size-extra-small";case "small":return"yt-spec-avatar-shape--avatar-size-small";case "medium":return"yt-spec-avatar-shape--avatar-size-medium";case "48":return"yt-spec-avatar-shape--avatar-size-48";case "large":return"yt-spec-avatar-shape--avatar-size-large";case "extra-large":return"yt-spec-avatar-shape--avatar-size-extra-large";case "extra-extra-large":return"yt-spec-avatar-shape--avatar-size-extra-extra-large";
case "giant":return"yt-spec-avatar-shape--avatar-size-giant";case "responsive":return"yt-spec-avatar-shape--avatar-size-responsive";default:return""}};
rUG=function(a){switch(jai(a)){case 18:return"yt-spec-avatar-shape__button--button-in-cluster-size-18";case 20:return"yt-spec-avatar-shape__button--button-in-cluster-size-20";case 22:return"yt-spec-avatar-shape__button--button-in-cluster-size-22";case 24:return"yt-spec-avatar-shape__button--button-in-cluster-size-24";default:return""}};
PVm=function(a){switch(a){case "tiny":return"yt-spec-avatar-shape__button--button-tiny";case "extra-small":return"yt-spec-avatar-shape__button--button-extra-small";case "small":return"yt-spec-avatar-shape__button--button-small";case "medium":return"yt-spec-avatar-shape__button--button-medium";case "48":return"yt-spec-avatar-shape__button--button-48";case "large":return"yt-spec-avatar-shape__button--button-large";case "extra-large":return"yt-spec-avatar-shape__button--button-extra-large";case "extra-extra-large":return"yt-spec-avatar-shape__button--button-extra-extra-large";
case "giant":return"yt-spec-avatar-shape__button--button-giant";case "responsive":return"yt-spec-avatar-shape__button--button-responsive";default:return""}};
Z9d=function(a){switch(a){case "tiny":return 16;case "extra-small":return 24;case "small":return 32;case "medium":return 36;case "48":return 48;case "large":return 56;case "extra-large":return 72;case "extra-extra-large":return 120;case "giant":return 160;default:return 0}};
CVp=function(a){return a==="medium"||a==="48"||a==="large"||a==="extra-large"||a==="extra-extra-large"||a==="giant"};
N_0=function(a){return!!((a==null?0:a.includes(3))||(a==null?0:a.includes(5)))};
uHI=function(a){return{size:tZI(a.data.avatarImageSize),onTap:a.onTap,decorations:a.decorations||[],badgeText:a.badgeText,accessibilityText:a.accessibilityText,avatarButtonCustomClassName:a.avatarButtonCustomClassName,clusterLayoutConfig:a.clusterLayoutConfig}};
tZI=function(a){switch(a){case "AVATAR_SIZE_XXS":return"tiny";case "AVATAR_SIZE_XS":return"extra-small";case "AVATAR_SIZE_S":return"small";case "AVATAR_SIZE_M":return"medium";case "AVATAR_SIZE_L":return"large";case "AVATAR_SIZE_XL":return"extra-large";case "AVATAR_SIZE_XXL":return"extra-extra-large";case "AVATAR_SIZE_XXXL":return"giant";case "AVATAR_SIZE_RESPONSIVE":return"responsive";case "AVATAR_SIZE_40":return"40";case "AVATAR_SIZE_48":return"48";default:return"medium"}};
E93=function(a){switch(a){case "AVATAR_SIZE_XXS":return 16;case "AVATAR_SIZE_XS":return 24;case "AVATAR_SIZE_S":return 32;case "AVATAR_SIZE_M":return 36;case "AVATAR_SIZE_40":return 40;case "AVATAR_SIZE_48":return 48;case "AVATAR_SIZE_L":return 56;case "AVATAR_SIZE_XL":return 72;case "AVATAR_SIZE_XXL":return 120;case "AVATAR_SIZE_XXXL":return 160;default:return 0}};
B_E=function(a){switch(a){case "AVATAR_SIZE_XS":return"yt-avatar-stack-view-model-wiz__avatar--avatar-size-extra-small";case "AVATAR_SIZE_S":return"yt-avatar-stack-view-model-wiz__avatar--avatar-size-small";case "AVATAR_SIZE_M":return"yt-avatar-stack-view-model-wiz__avatar--avatar-size-medium";case "AVATAR_SIZE_48":return"yt-avatar-stack-view-model-wiz__avatar--avatar-size-48";case "AVATAR_SIZE_L":return"yt-avatar-stack-view-model-wiz__avatar--avatar-size-large";case "AVATAR_SIZE_XL":return"yt-avatar-stack-view-model-wiz__avatar--avatar-size-extra-large";
case "AVATAR_SIZE_XXL":return"yt-avatar-stack-view-model-wiz__avatar--avatar-size-extra-extra-large";case "AVATAR_SIZE_XXXL":return"yt-avatar-stack-view-model-wiz__avatar--avatar-size-giant";default:return""}};
g91=function(a){var z=a.layoutType==="AVATAR_STACK_LAYOUT_CLUSTER",I,J=a.avatars&&a.avatars.length>0?(I=_.H(a.avatars[0],_.Dc))==null?void 0:I.avatarImageSize:"AVATAR_SIZE_UNKNOWN";I=E93(J)||0;if(z){var r,P=(r=a.avatarClusterSize)!=null?r:"AVATAR_SIZE_M";z=E93(P);var N,u,E=Math.min((u=(N=a.avatars)==null?void 0:N.length)!=null?u:0,4),O;return{avatars:((O=a.avatars)==null?void 0:O.slice(0,4))||[],avatarSizeInPx:I,avatarStackStyle:{width:z+"px",height:z+"px",position:"relative"},avatarStyle:function(A){var n=
jai({clusterSize:tZI(P),numAvatarsInCluster:E,avatarIndex:A});var F=E93(P);E===3&&A===2?(F=(F-n)/2,F=(_.Xw("HTML_DIR")==="rtl"||document.body.getAttribute("dir")==="rtl"?-1:1)*F):F=void 0;return{position:"absolute",top:E===2&&A===1||E===3&&A===2||E===4&&A>=2?"0":void 0,bottom:E===2&&A===0||E>2&&A<2?"0":void 0,left:E===2&&A===1||E>2&&(A===1||A===3)?"0":void 0,right:E<=3&&A===0||E===4&&(A===0||A===2)?"0":void 0,transform:F?"translateX("+F+"px)":void 0,width:n+"px",height:n+"px"}},
avatarStackClass:void 0,avatarClass:void 0,clusterLayoutConfig:function(A){return{clusterSize:tZI(a.avatarClusterSize),numAvatarsInCluster:E,avatarIndex:A}},
avatarButtonCustomClassName:void 0}}var f;return{avatars:((f=a.avatars)==null?void 0:f.slice())||[],avatarSizeInPx:I,avatarStackClass:"yt-avatar-stack-view-model-wiz__avatars",avatarClass:B_E(J),avatarStyle:function(){return{}},
avatarStackStyle:{},clusterLayoutConfig:void 0,avatarButtonCustomClassName:"yt-avatar-stack-view-model-wiz__avatar-button"}};
O9x=function(a,z,I){return function(){bJ(a,{form:{element:z},commandController:I})}};
f7G=function(a){switch(a){case "small":return"ytThumbnailOverlayAvatarStackViewModelavatarStackSmall";case "medium":return"ytThumbnailOverlayAvatarStackViewModelavatarStackMedium";case "large":return"ytThumbnailOverlayAvatarStackViewModelavatarStackLarge";default:return"ytThumbnailOverlayAvatarStackViewModelavatarStackMedium"}};
AU7=function(a){switch(a){case "small":return"yt-thumbnail-overlay-badge-view-model-wiz--small";case "medium":return"yt-thumbnail-overlay-badge-view-model-wiz--medium";case "large":return"yt-thumbnail-overlay-badge-view-model-wiz--large";default:return"yt-thumbnail-overlay-badge-view-model-wiz--medium"}};
sa1=function(a){var z=a.data;a=a.hidden===void 0?!1:a.hidden;var I={};a={class:_.$c("yt-page-indicator-view-model",(I["yt-page-indicator-view-model__indicator--hidden"]=!z.indicatorCount,I)),hidden:a};if(z.indicatorCount){I=[];for(var J=0;J<z.indicatorCount;J++){var r={};r=_.$c("yt-page-indicator-view-model__indicator",(r["yt-page-indicator-view-model__indicator--selected"]=z.selectedIndex===J,r));I.push(_.B("div",{class:r}))}z=_.B(_.eJ,null,I)}else z=_.B(_.eJ,null);return _.B("yt-page-indicator-view-model",
a,z)};
n9m=function(a){if("accessibilityText"in a)return a.accessibilityText||"";if("title"in a){var z,I,J;return((z=a.title)==null?void 0:(I=z.accessibility)==null?void 0:(J=I.accessibilityData)==null?void 0:J.label)||""}if("accessibility"in a){var r,P;return((r=a.accessibility)==null?void 0:(P=r.accessibilityData)==null?void 0:P.label)||""}return""};
Kr3=function(a){return"inlinePlayerData"in a};
LU=function(a){return new FrI(a)};
H9E=function(a){var z=a.data;a=_.g4(function(){var r=_.H(z.onTap,_.Wl);r&&_.ab().resolve(_.j6).resolveCommand(r);return!1});
var I={sources:[{url:z.thumbnailUrl,width:120,height:90}]},J=z.rating&&z.ratingA11yLabel&&z.reviewsCount&&z.reviewsCountA11yLabel;return _.B("place-data-view-model",null,z.placeName&&z.placeCategory?_.B("div",{class:"yt-spec-place-data-view-model-shape","on:click":a},_.B(_.qp,{data:I,alt:"",targetWidth:120,targetHeight:90,className:"yt-spec-place-data-view-model-shape__thumbnail"}),_.B(_.lq,{className:"yt-spec-place-data-view-model-shape__place-link",command:z.onTap},_.B("h3",{class:"yt-spec-place-data-view-model-shape__name",
title:z.placeName},z.placeName)),_.B("div",{class:"yt-spec-place-data-view-model-shape__metadata"},J?_.B("div",{class:"yt-spec-place-data-view-model-shape__metadata-row yt-spec-place-data-view-model-shape__metadata-row-ratings"},_.B("span",{class:"score",title:z.ratingA11yLabel},z.rating),_.B("span",{class:"yt-spec-place-data-view-model-shape__metadata-row-star-icon"},_.B(_.nS,{icon:"STAR",active:!0,style:"width: 14px; height: 14px; color: #fabb05"})),_.B("span",{class:"yt-spec-place-data-view-model-shape__metadata-row-reviews",
title:z.reviewsCountA11yLabel},z.reviewsCount)):_.B("div",{class:"yt-spec-place-data-view-model-shape__metadata-row yt-spec-place-data-view-model-shape__metadata-row-ratings"}),_.B("div",{class:"yt-spec-place-data-view-model-shape__metadata-row yt-spec-place-data-view-model-shape__metadata-row-categories"},_.B("span",{class:"category",title:z.placeCategory},z.placeCategory)))):null)};
b97=function(a){return function(z){a&&(a.thumbnailElRef=z.thumbnailElRef,a.thumbnail=z.thumbnail,a.thumbnailOverlays=z.thumbnailOverlays,a.thumbnailSize=z.thumbnailSize)}};
h$d=function(a){var z;return(z=a.sharedUi)==null?void 0:z.animatedThumbnailEnabled};
VZ1=function(a){var z;return(z=a.sharedUi)==null?void 0:z.inlinePreviewEnabled};
_.QaG=function(a){var z;return(z=a.sharedUi)==null?void 0:z.currentPageSubType};
S0m=function(a){switch(a){case 1:return"yt-thumbnail-view-model--aspect-ratio-2-by-3";case 4:return"yt-thumbnail-view-model--shorts-aspect-ratio-9-by-16";case 3:return"yt-thumbnail-view-model--aspect-ratio-1-by-1";default:return"yt-thumbnail-view-model--aspect-ratio-16-by-9"}};
xfd=function(a){var z=_.C(_.CW(!1,void 0,"RIOonf")),I=z.next().value,J=z.next().value;_.QO(function(){var r=a==null?void 0:a();if(r){var P=_.ab().resolve(_.eL(i9G));if(P){var N={triggeringElement:r,onDwellTriggeredFn:function(){J(!0)},
onDwellEndFn:function(){J(!1)}};
P.registerElement(N);_.V3(function(){_.pU(P,N)})}}});
return I};
v97=function(a,z,I){I?I(z):_.lN(z,a.target?{form:{element:a.target}}:void 0)};
_.wi=function(a,z,I){return function(J){_.h2(function(){var r=new Map,P,N=(P=a())==null?void 0:P.onTap;N&&(P=function(u){a:{var E=u.composedPath();E=_.C(E);for(var O=E.next();!O.done;O=E.next()){O=O.value;if(O===J)break;if(O.className.indexOf("HostIsClickableAdComponent")>=0||O.tagName==="A".toString()||O.tagName==="BUTTON".toString()){E=!0;break a}}E=!1}E||v97(u,N,z)},(I==null?0:I())||_.K("enable_web_home_top_landscape_image_layout_level_click")?(J.addEventListener("tap",P),r.set("tap",P)):(J.addEventListener("click",
P),r.set("click",P)));
_.V3(function(){for(var u=_.C(r),E=u.next();!E.done;E=u.next()){var O=_.C(E.value);E=O.next().value;O=O.next().value;J.removeEventListener(E,O)}})},"NMyqj")}};
GC7=function(a,z){var I,J=(I=a.interaction)==null?void 0:I.onTap;if(a=_.R0({elementsCommand:J,forceNewState:!0,skipOnClick:!0}))return a.onclick=function(r){v6d(r)&&(r.preventDefault(),J&&v97(r,J,z))},Lw(a)?a:void 0};
$f1=function(a){switch(a){case "AD_BUTTON_SIZE_COMPACT":return"S";case "AD_BUTTON_SIZE_DEFAULT":return"M";case "AD_BUTTON_SIZE_LARGE":return"L";default:return"M"}};
XmG=function(a){switch(a){case "AD_BUTTON_STYLE_OVERLAY":case "AD_BUTTON_STYLE_OVERLAY_TONAL":case "AD_BUTTON_STYLE_OVERLAY_TEXT":return"overlay";case "AD_BUTTON_STYLE_TRANSPARENT":case "AD_BUTTON_STYLE_MONO_FILLED":case "AD_BUTTON_STYLE_MONO_TONAL":case "AD_BUTTON_STYLE_MONO_OUTLINE":return"mono";case "AD_BUTTON_STYLE_OVERLAY_FILLED":return"call-to-action-overlay";default:return"call-to-action"}};
T_E=function(a){switch(a){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"}};
_.df7=function(a){return _.K("rich_grid_enable_dynamic_offset")&&a?Math.max(Math.round((a-_.Ib("rich_grid_dynamic_offset_anchor_width",1300))/100*_.Ib("rich_grid_dynamic_offset_offset_per_100",10)),_.Ib("rich_grid_dynamic_offset_lower_bound",-60)):0};
Wr0=function(a,z){switch(z){case 4:return 16;case 1:return a<528?16:a<1024?32:48;case 2:return(a>=528?16:8)/2;case 3:return(a<528?16:a<1024?32:48)+(a>=528?16:8)/2;default:return 0}};
o9x=function(a){var z=a.originalContainerWidth;var I=a.sizing;var J=a.standardUnit;if(a.isCompactList&&z<528)return 1;switch(I){case "STANDARD":return J;case "COMPACT":return J+1;case "EXTRA_COMPACT":return _.K("web_responsive_extra_compact_2x")?J*2:_.K("web_responsive_current")?J===1?2:J%2===0?J/2*3:J+2:J<4?J*2:Math.ceil(J*3/2);case "MINI":return J>1?J*2:3;default:return J}};
Dfd=function(a){var z=a.containerWidth;var I=a.peek;var J=a.gutter;var r=a.numItems;a=a.ignoreMaxWidthLimit;z=I?Math.max((z-I-J*r)/r,0):Math.max((z-J*(r-1))/r,0);return a?z:Math.min(z,Ufp)};
_.mY=function(a){var z=a.containerWidth;var I=a.hasPeek;var J=a.sizing;var r=a.marginSettings;var P=a.isCompactList;var N=a.enableFullBleedForSingleCol;var u=a.standardUnitMinWidth;J=J||"STANDARD";I=!!I;a=z>=528?16:8;var E=I?z>=528?48:24:0;r=Wr0(z,r);var O=Math.max(z-r*2,0);u=_.K("kevlar_disable_min_width_override")?void 0:u;u=Math.min(Math.max(Math.floor((O-E+a)/((u!=null?u:R$E)+_.df7(z)+a)),1),6);var f=(N=!!N&&u===1)||u===1&&J!=="STANDARD";I=I||f?O:Math.min(O,(Ufp+a)*u-a);J=o9x({originalContainerWidth:z,
sizing:J,standardUnit:u,isCompactList:P});return{itemWidth:Dfd({containerWidth:I,peek:E,gutter:a,numItems:J,ignoreMaxWidthLimit:f}),gutter:a,maxContainerWidth:I,numItems:J,margin:N?0:r,contentMargin:Wr0(z,1),typographyBump:Dfd({containerWidth:I,peek:E,gutter:a,numItems:u,ignoreMaxWidthLimit:f})>400&&!(P&&z<528),standardUnit:u}};
Lri=function(a){switch(a){case "RESPONSIVE_SIZE_COMPACT":return"COMPACT";case "RESPONSIVE_SIZE_EXTRA_COMPACT":return"EXTRA_COMPACT";case "RESPONSIVE_SIZE_TINY":return"MINI";default:return"STANDARD"}};
_.l7$=function(a){if(a){var z;if((z=a.responsiveContainerConfiguration)==null?0:z.responsiveSize)return Lri(a.responsiveContainerConfiguration.responsiveSize);if(a.layoutSizing)switch(a.layoutSizing){case "RICH_GRID_LAYOUT_SIZING_COMPACT":return"COMPACT";case "RICH_GRID_LAYOUT_SIZING_EXTRA_COMPACT":return"EXTRA_COMPACT";case "RICH_GRID_LAYOUT_SIZING_TINY":return"MINI";default:return"STANDARD"}}};
pm0=function(a){if(a.fullbleed)return 1;switch(a.containerType){case "CONTAINER_TYPE_VERTICAL_LIST":return 3;case "CONTAINER_TYPE_GRID":return 2;case "CONTAINER_TYPE_HORIZONTAL_LIST":return 4;default:return 3}};
kCG=function(a,z,I,J,r,P,N,u){a:if(a===4&&J==="LOCKUP_CONTENT_TYPE_SOURCE")var E=1;else switch(a){case 3:E=1;break a;default:E=0}a:switch(a){case 4:P=!!(P&&P<100);break a;default:P=!1}a:switch(a){case 3:case 4:var O=J==="LOCKUP_CONTENT_TYPE_CHANNEL"||J==="LOCKUP_CONTENT_TYPE_SOURCE";break a;default:O=!1}a:switch(a){case 5:var f=!0;break a;case 4:f=!1;break a;default:f=!1}return{isOverlay:f,isCard:wm$(J,N),sizing:z!=null?z:"STANDARD",typographyBump:I!=null?I:!1,isTiny:P,isCentered:O,isCollection:mfd(J),
arrangement:E,addMarginForFullbleed:a===1&&J!=="LOCKUP_CONTENT_TYPE_VIDEO",fullbleed:a===1&&J==="LOCKUP_CONTENT_TYPE_VIDEO",aspectRatio:yU3(J,r,u),disableRounding:a===5||wm$(J,N)||a===1&&J==="LOCKUP_CONTENT_TYPE_VIDEO",collectionStackNumber:mfd(J)?2:0,useLegacyTypography:!(u==null||!u.useLegacyTypography),useRichGridLegacyTypography:!(u==null||!u.useRichGridLegacyTypography)&&!_.K("web_enable_typography_bump"),compactMetadata:E===0&&J==="LOCKUP_CONTENT_TYPE_VIDEO"}};
mfd=function(a){switch(a){case "LOCKUP_CONTENT_TYPE_PLAYLIST":case "LOCKUP_CONTENT_TYPE_ALBUM":case "LOCKUP_CONTENT_TYPE_PODCAST":case "LOCKUP_CONTENT_TYPE_SHOPPING_COLLECTION":return!0;default:return!1}};
wm$=function(a,z){if(z&&a==="LOCKUP_CONTENT_TYPE_VIDEO")return!0;switch(a){case "LOCKUP_CONTENT_TYPE_SOURCE":return!0;default:return!1}};
yU3=function(a,z,I){if(z&&(I==null||!I.alwaysRespectPodcastShowAspectRatio||a!=="LOCKUP_CONTENT_TYPE_PODCAST"))return 0;switch(a){case "LOCKUP_CONTENT_TYPE_SHORT":return 4;case "LOCKUP_CONTENT_TYPE_GAME":case "LOCKUP_CONTENT_TYPE_MOVIE":return 1;case "LOCKUP_CONTENT_TYPE_ALBUM":case "LOCKUP_CONTENT_TYPE_PRODUCT":case "LOCKUP_CONTENT_TYPE_PODCAST":case "LOCKUP_CONTENT_TYPE_SOURCE":case "LOCKUP_CONTENT_TYPE_SHOPPING_COLLECTION":return 3;default:return 0}};
MZi=function(a){switch(a){case 0:return"ytBrNzBadgeShapeBadgeStyleTypeNzRatingGreenCircle";case 1:return"ytBrNzBadgeShapeBadgeStyleTypeNzRatingYellowCircle";case 2:return"ytBrNzBadgeShapeBadgeStyleTypeNzRatingRedSquare";case 3:return"ytBrNzBadgeShapeBadgeStyleTypeBrRatingSmallGreenSquare";case 4:return"ytBrNzBadgeShapeBadgeStyleTypeBrRatingSmallBlueSquare";case 5:return"ytBrNzBadgeShapeBadgeStyleTypeBrRatingLargeBlueSquare";case 6:return"ytBrNzBadgeShapeBadgeStyleTypeBrRatingSmallYellowSquare";case 7:return"ytBrNzBadgeShapeBadgeStyleTypeBrRatingLargeYellowSquare";
case 8:return"ytBrNzBadgeShapeBadgeStyleTypeBrRatingSmallOrangeSquare";case 9:return"ytBrNzBadgeShapeBadgeStyleTypeBrRatingLargeOrangeSquare";case 10:return"ytBrNzBadgeShapeBadgeStyleTypeBrRatingSmallRedSquare";case 11:return"ytBrNzBadgeShapeBadgeStyleTypeBrRatingLargeRedSquare";case 12:return"ytBrNzBadgeShapeBadgeStyleTypeBrRatingSmallBlackSquare";case 13:return"ytBrNzBadgeShapeBadgeStyleTypeBrRatingLargeBlackSquare"}};
cU3=function(a){switch(a){case "BADGE_COMMERCE":case "BADGE_MEMBERS_ONLY":return 9;case "BADGE_STATUS_NEW":return 12;case "BADGE_PREMIUM":return 6;case "BADGE_PROMOTED":return 3;case "BADGE_PROMOTED_INVERTED":return 4;default:return 0}};
Y0M=function(a){switch(a){case "BADGE_NZ_RATING_GREEN_CIRCLE":return 0;case "BADGE_NZ_RATING_YELLOW_CIRCLE":return 1;case "BADGE_NZ_RATING_RED_SQUARE":return 2;case "BADGE_BR_RATING_SMALL_GREEN_SQUARE":return 3;case "BADGE_BR_RATING_SMALL_BLUE_SQUARE":return 4;case "BADGE_BR_RATING_LARGE_BLUE_SQUARE":return 5;case "BADGE_BR_RATING_SMALL_YELLOW_SQUARE":return 6;case "BADGE_BR_RATING_LARGE_YELLOW_SQUARE":return 7;case "BADGE_BR_RATING_SMALL_ORANGE_SQUARE":return 8;case "BADGE_BR_RATING_LARGE_ORANGE_SQUARE":return 9;
case "BADGE_BR_RATING_SMALL_RED_SQUARE":return 10;case "BADGE_BR_RATING_LARGE_RED_SQUARE":return 11;case "BADGE_BR_RATING_SMALL_BLACK_SQUARE":return 12;case "BADGE_BR_RATING_LARGE_BLACK_SQUARE":return 13}};
_.y0=function(a){if(a){var z;return((z=_.ab().resolve(_.eL(_.kN)))==null?0:z())?a.darkThemeImage:a.image}};
ag7=function(a,z,I,J,r,P){if(r&&P&&z==="CONTENT_PREVIEW_IMAGE_LAYOUT_MODE_EXPLICIT_SIZING")return{width:r,height:P};if(!I)return{};r=I.size;I=I.allowFullWidth;if(z==="CONTENT_PREVIEW_IMAGE_LAYOUT_MODE_FULL_WIDTH"&&I)return{fullWidth:!0};if(r===void 0)return{};switch(a){case "CONTENT_PREVIEW_IMAGE_STYLE_SQUARE":case "CONTENT_PREVIEW_IMAGE_STYLE_CIRCLE":return{width:r,height:r};case "CONTENT_PREVIEW_IMAGE_STYLE_VERTICAL_RECTANGLE_2_BY_3":return{width:r,height:1/q03*r};case "CONTENT_PREVIEW_IMAGE_STYLE_HORIZONTAL_RECTANGLE_16_BY_9":return{width:r*
e$G,height:r};default:return(J==null?0:J.height)&&(J==null?0:J.width)?J.width/J.height>1?{maxWidth:r*e$G}:{maxWidth:r}:{maxWidth:r}}};
jiM=function(a){var z;return a&&((z=_.y0(a.themedImage))!=null?z:a.image)};
zr0=function(a){var z;return a==null?void 0:(z=a.sources)==null?void 0:z[0]};
Igi=function(a){switch(a){case 0:return"yt-content-metadata-view-model-wiz__metadata-text-max-lines-0";case 1:return"yt-content-metadata-view-model-wiz__metadata-text";case 2:return"yt-content-metadata-view-model-wiz__metadata-text-max-lines-2";case 3:return"yt-content-metadata-view-model-wiz__metadata-text-max-lines-3";default:return"yt-content-metadata-view-model-wiz__metadata-text-max-lines-4"}};
_.JbG=function(a){if(a)return"content-id-"+a};
rbO=function(a){switch(a.style){case "STYLE_VISIBLY_DISABLED":return{style:"BUTTON_VIEW_MODEL_STYLE_CTA",type:"BUTTON_VIEW_MODEL_TYPE_TEXT",state:"BUTTON_VIEW_MODEL_STATE_DISABLED"};case "STYLE_PRIMARY":case "STYLE_PAYMENT":case "STYLE_CALL_TO_ACTION_FILLED":return{style:"BUTTON_VIEW_MODEL_STYLE_CTA",type:"BUTTON_VIEW_MODEL_TYPE_FILLED",state:"BUTTON_VIEW_MODEL_STATE_ACTIVE"};case "STYLE_SUGGESTIVE":case "STYLE_SUGGESTED_ACTION":return{style:"BUTTON_VIEW_MODEL_STYLE_CTA",type:"BUTTON_VIEW_MODEL_TYPE_OUTLINE",
state:"BUTTON_VIEW_MODEL_STATE_ACTIVE"};case "STYLE_BLUE_TEXT":case "STYLE_ALERT_INFO":return{style:"BUTTON_VIEW_MODEL_STYLE_CTA",type:"BUTTON_VIEW_MODEL_TYPE_TEXT",state:"BUTTON_VIEW_MODEL_STATE_ACTIVE"};case "STYLE_OVERLAY":return{style:"BUTTON_VIEW_MODEL_STYLE_OVERLAY",type:"BUTTON_VIEW_MODEL_TYPE_FILLED",state:"BUTTON_VIEW_MODEL_STATE_ACTIVE"};case "STYLE_WHITE_WITH_BORDER":return{style:"BUTTON_VIEW_MODEL_STYLE_OVERLAY",type:"BUTTON_VIEW_MODEL_TYPE_OUTLINE",state:"BUTTON_VIEW_MODEL_STATE_ACTIVE"};
case "STYLE_LIGHT_TEXT":return{style:"BUTTON_VIEW_MODEL_STYLE_OVERLAY",type:"BUTTON_VIEW_MODEL_TYPE_TEXT",state:"BUTTON_VIEW_MODEL_STATE_ACTIVE"};case "STYLE_MONO_FILLED_OVERLAY":return{style:"BUTTON_VIEW_MODEL_STYLE_OVERLAY",type:"BUTTON_VIEW_MODEL_TYPE_FILLED",state:"BUTTON_VIEW_MODEL_STATE_ACTIVE"};case "STYLE_MONO_TONAL_OVERLAY":return{style:"BUTTON_VIEW_MODEL_STYLE_OVERLAY",type:"BUTTON_VIEW_MODEL_TYPE_TONAL",state:"BUTTON_VIEW_MODEL_STATE_ACTIVE"};case "STYLE_MONO_FILLED":case "STYLE_DESTRUCTIVE":return{style:"BUTTON_VIEW_MODEL_STYLE_MONO",
type:"BUTTON_VIEW_MODEL_TYPE_FILLED",state:"BUTTON_VIEW_MODEL_STATE_ACTIVE"};case "STYLE_DEFAULT":case "STYLE_COMPACT_GRAY":case "STYLE_MONO_TONAL":return{style:"BUTTON_VIEW_MODEL_STYLE_MONO",type:"BUTTON_VIEW_MODEL_TYPE_TONAL",state:"BUTTON_VIEW_MODEL_STATE_ACTIVE"};case "STYLE_INACTIVE_OUTLINE":case "STYLE_MONO_OUTLINE":return{style:"BUTTON_VIEW_MODEL_STYLE_MONO",type:"BUTTON_VIEW_MODEL_TYPE_OUTLINE",state:"BUTTON_VIEW_MODEL_STATE_ACTIVE"};case "STYLE_DARK_ON_BLACK":return{style:"BUTTON_VIEW_MODEL_STYLE_OVERLAY",
type:"BUTTON_VIEW_MODEL_TYPE_TONAL",state:"BUTTON_VIEW_MODEL_STATE_ACTIVE"};default:return{style:"BUTTON_VIEW_MODEL_STYLE_MONO",type:"BUTTON_VIEW_MODEL_TYPE_TEXT",state:"BUTTON_VIEW_MODEL_STATE_ACTIVE"}}};
PTG=function(a){var z=_.QaG(_.M3().getState())||"";return a?a+z:""};
ZgI=function(a){switch(a){case 1:return"ytDismissibleItemAspectRatio2By3";case 2:return"ytDismissibleItemAspectRatio3By4";case 4:return"ytDismissibleItemShortsAspectRatio9By16";case 3:return"ytDismissibleItemAspectRatio1By1";case 0:return"ytDismissibleItemAspectRatio16By9"}};
NKG=function(a){var z=["YT-EXPANDABLE-METADATA-VIEW-MODEL"],I=_.C(_.CW(void 0,void 0,"JrqNsb")),J=I.next().value,r=I.next().value,P=_.C(_.CW(void 0,void 0,"rWytse"));I=P.next().value;var N=P.next().value;P=_.C(_.CW(void 0,void 0,"DHRqxe"));var u=P.next().value,E=P.next().value;return{touchFeedbackEvents:{pointerUpEvent:J,pointerDownEvent:I,pointerLeaveEvent:u},touchFeedbackOnPointerUp:_.g4(function(O){CTm(_.TI(O),z)||(r(O),N(void 0),E(void 0))}),
touchFeedbackOnPointerDown:_.g4(function(O){a==null||a(O);CTm(_.TI(O),z)||(N(O),r(void 0),E(void 0))}),
touchFeedbackOnPointerLeave:_.g4(function(O){CTm(_.TI(O),z)||(E(O),N(void 0),r(void 0))})}};
CTm=function(a,z){z=z===void 0?[]:z;z=[].concat(_.ih(z),["BUTTON".toString()]);a=_.C(a);for(var I=a.next();!I.done;I=a.next()){I=I.value;for(var J=_.C(z),r=J.next();!r.done;r=J.next())if(I.tagName===r.value)return!0}return!1};
t3E=function(a){switch(a){case "AD_AVATAR_SIZE_XXS":return"tiny";case "AD_AVATAR_SIZE_XS":return"extra-small";case "AD_AVATAR_SIZE_S":return"small";case "AD_AVATAR_SIZE_M":return"medium";case "AD_AVATAR_SIZE_MPLUS":return"48";case "AD_AVATAR_SIZE_L":return"large";case "AD_AVATAR_SIZE_XL":return"extra-large";default:return"medium"}};
u2p=function(a){return a.scrollHeight-a.offsetHeight>1};
EL0=function(a,z){var I;return yX(a,((I=a.content)==null?void 0:I.length)||0,!z)};
Og7=function(a,z,I,J,r,P){if(!z||BKE){var N;return yX(a,((N=a.content)==null?void 0:N.length)||0,!0)}z=J.value;if(!I.value||!z||!a.content)return a;I=0;J=a.content.length;N=0;gLp||(gLp=Number(window.getComputedStyle(document.documentElement).getPropertyValue("font-size").replace("px","")));var u=gLp;for(r=r*P*u;I<=J;)P=Math.floor(I+(J-I)/2),u=yX(a,P)||a,z.firstChild&&(z.firstChild.textContent=u.content),z.scrollHeight>r?J=P-1:(N=P,I=P+1);return yX(a,N)};
fgp=function(a,z){var I,J;return(((I=a.content)==null?void 0:I.length)||0)>(((J=z.content)==null?void 0:J.length)||0)};
Abd=function(a,z,I,J,r,P){var N=_.Mm("truncated-text-content"),u=_.Mm("truncated-text-content"),E=_.Mm("button"),O=_.Mm("button"),f=_.Mm("button"),A=_.ab().resolve(_.cl),n=_.C(_.Af(function(){return EL0(a(),r())})),F=n.next().value,h=n.next().value;
n=_.C(_.Af(function(){return fgp(a(),F())}));
var v=n.next().value,d=n.next().value,W=null;_.h2(function(){function l(){if(N.value&&E.value&&f.value){var M=P()?a():Og7(a(),r(),N,u,z(),I());h(M);requestAnimationFrame(function(){if(N.value&&E.value&&f.value){var y=u2p(N.value)||fgp(a(),M);d(y);if(!J()){var e=u2p(N.value),Bp=I(),Em=N.value,nG=E.value,bG=f.value,Hp=A==="rtl";if(Em&&nG){var LG=nG.offsetLeft;Hp&&(LG=Em.offsetWidth-nG.offsetWidth-nG.offsetLeft);if(y){y=nG.offsetWidth;nG=Em.offsetWidth;var oE=e?nG-y-70:LG-70;Bp="linear-gradient(\n      to top, transparent 0%,\n      transparent "+
Bp+"rem,\n      #000 "+Bp+"rem,\n      #000 100%), linear-gradient(\n      to "+((Hp?"left":"right")+",\n      #000 0px,\n      #000 "+oE+"px,\n      transparent "+(e?nG-y:oE+70)+"px)");Em.style.setProperty("-webkit-mask-image",Bp);Em.style.setProperty("mask-image",Bp)}else Em.style.setProperty("-webkit-mask-image",""),Em.style.setProperty("mask-image","");e?Hp?(bG.style.setProperty("left","0"),bG.style.setProperty("right","unset")):(bG.style.setProperty("left",""),bG.style.setProperty("right","0")):
Hp?(bG.style.setProperty("left","unset"),bG.style.setProperty("right",LG+"px")):(bG.style.setProperty("left",LG+"px"),bG.style.setProperty("right","unset"))}}}})}}
var q,m;(q=W)==null||(m=q.stop)==null||m.call(q);q=new _.kc(l,17);l();W=q},"sZ7lhf");
_.QO(function(){h(EL0(a(),r()));d(fgp(a(),F()));var l=function(){gLp=void 0;var m,M;(m=W)==null||(M=m.fire)==null||M.call(m)};
if(window.ResizeObserver){var q=new ResizeObserver(l);q.observe(N.value);_.V3(function(){var m,M;(m=W)==null||(M=m.stop)==null||M.call(m);q.disconnect()})}else window.addEventListener("resize",l),_.V3(function(){var m,M;
(m=W)==null||(M=m.stop)==null||M.call(m);window.removeEventListener("resize",l)})});
return{isTruncated:v,displayText:F,contentRef:N,hiddenRef:u,placeholderTruncationTextRef:E,hiddenTruncationTextRef:O,truncationTextRef:f}};
si$=function(a){return{content:a!=null?a:""}};
nL1=function(a){return _.o0(a.onTap)||_.Wn(a.rendererContext)};
KF$=function(a){return{iconPosition:"icon-only",state:"active",style:"overlay",type:"text",size:"S",accessibilityLabel:a.overflowMenuA11yLabel,onTap:function(z){z.preventDefault();z.stopPropagation();if(a.overflowMenuOnTap){var I=_.R0({elementsCommand:a.overflowMenuOnTap,forceNewState:!0});if(I==null?0:I.onclick)I.onclick(z)}}}};
_.Mh=function(a,z,I,J,r){J=J===void 0?{}:J;if(!r||Math.random()<5E-4){z=z||null;I=I||null;a=a instanceof Error?a:new _.Fn(a);if(a.args)for(var P=_.C(a.args),N=P.next();!N.done;N=P.next())N=N.value,N instanceof Object&&(J=Object.assign({},N,J));J.category="H5 Ads Control Flow";z&&(J.slot=z?"slot:  "+z.slotType:"");I&&(J.layout=I?"layout:  "+I.layoutType:"",J.layoutId=I.layoutId);r&&(J.known_error_aggressively_sampled=!0);a.args=[J];_.Xd(a)}};
_.FFO=function(a,z){_.ZF(a,"yt-open-popup-action",[_.aX(z),a])};
_.cn=function(a,z){_.FFO(a,_.Mo(z))};
bgO=function(a){if(!a)return"";if(Hgp[a])return Hgp[a];Yc||(Yc=_.OS("A"));Yc.href!==a&&_.Ua(Yc,a);var z=Yc.pathname;Hgp[a]=z.startsWith("/")?z:"/"+z;return Hgp[a]};
hr7=function(){var a=bgO(window.location.href);if(a==="/")return"home";if(a.startsWith("/results"))return"search";if(a.startsWith("/watch"))return"watch";if(a.startsWith("/shorts"))return"shorts";if(a.startsWith("/hashtag"))return"hashtag";if(a.startsWith("/create_channel"))return"create_channel";if(a.startsWith("/@")||a.startsWith("/user/")||a.startsWith("/channel/"))return"channel";if(a.startsWith("/experiments"))return"experiments";if(a.startsWith("/sponsor_channel"))return"sponsorship";if(a.startsWith("/select_site"))return"settings";
if(a.startsWith("/locate"))return"locate";if(a.startsWith("/redeem"))return"redeem";if(a.startsWith("/musicpremium")||a.startsWith("/premium")||a.startsWith("/red"))return"premium";if(a.startsWith("/paid_memberships"))return"paid_memberships";if(a.startsWith("/oops"))return"oops";if(a.startsWith("/clip"))return"clip";var z;return(qh==null?void 0:(z=qh.response)==null?void 0:z.page)==="404"?"404":a.startsWith("/feed/history")?"history":a.startsWith("/feed/library")?"library":a.startsWith("/feed/subscriptions")?
"subscriptions":a.startsWith("/feed/trending")?"trending":a.startsWith("/feed/news_destination")?"news":a.startsWith("/playlist")?"playlist":a.startsWith("/minor_moment")?"minor_moment":a.startsWith("/playable/")||a.match("^/playables/(?!saved).")?"mini_app":a.startsWith("/playables")?"playables":a.startsWith("/create/live/join")?"open_in_app":a.startsWith("/feed/explore")?"explore":"browse"};
_.igG=function(){var a=qh==null?void 0:qh.response,z=a==null?void 0:a.endpoint;if(!z)return(a==null?void 0:a.page)==="watch"?"watch":hr7();var I;a=(I=_.H(z==null?void 0:z.commandMetadata,_.O_))==null?void 0:I.webPageType;I=!1;if(a&&!V3x.includes(a))switch(a){case "WEB_PAGE_TYPE_SEARCH":return"search";case "WEB_PAGE_TYPE_SHORTS":return"shorts";case "WEB_PAGE_TYPE_CHANNEL":return"channel";case "WEB_PAGE_TYPE_SETTINGS":return"settings";case "WEB_PAGE_TYPE_PLAYLIST":return"playlist";case "WEB_PAGE_TYPE_OPEN_IN_APP":return"open_in_app";
case "WEB_PAGE_TYPE_MINI_APP":return"mini_app";case "WEB_PAGE_TYPE_WATCH":var J;return((J=_.H(z==null?void 0:z.commandMetadata,_.O_))==null?0:J.url)&&bgO(_.H(z.commandMetadata,_.O_).url).startsWith("/clip")?"clip":"watch";case "WEB_PAGE_TYPE_BROWSE":var r;return(z=(r=_.H(z,_.KH))==null?void 0:r.browseId)?Qi7[z]||"browse":"browse";default:I=!0}if(_.H(z,_.er)||_.H(z,SQI))return"sponsorship";r=bgO(window.location.href);if(r.startsWith("/experiments"))return"experiments";if(r.startsWith("/create_channel"))return"create_channel";
if(_.H(z,_.pv)&&r.startsWith("/shorts"))return"shorts";if(_.H(z,_.pv)&&r.startsWith("/watch"))return"watch";I&&(z=new _.Fn("Unsupported mWeb page type",{pathname:r,webPageType:a}),_.Gx(z));return"browse"};
ad=function(a,z,I,J){return a&&z?a!==I||z!==J?(_.Mh(Error("Hh"),void 0,void 0,{"stored-slot":a,"stored-layout":z,"latest-slot":I,"latest-layout":J}),!1):!0:!1};
xXE=function(a,z,I){return a({targetId:z},function(J){return I.slot==="RELOAD_CONTINUATION_SLOT_HEADER"?Object.assign({},J,{header:I.continuationItems?I.continuationItems[0]:void 0}):Object.assign({},J,{contents:I.continuationItems?I.continuationItems:[]})})};
vLd=function(a,z,I,J){if(z=z.trackingParams){var r,P=(r=I.getScreenLayer)==null?void 0:r.call(I);I=_.TX(P);r=_.XZ(P);if(I&&r){var N=_.VX(z);_.K("combine_ve_grafts")?a.graftServerVe(z,r,P):_.Lt(I,r,N);J==null||J(N)}}};
$Xi=function(a){var z;return((z=GKG.get(a))==null?void 0:z.successEvent)||"ADS_CLIENT_EVENT_TYPE_UNSPECIFIED"};
dXI=function(a,z){var I={type:z.slotType,controlFlowManagerLayer:XN1.get(z.managerLayer)||"CONTROL_FLOW_MANAGER_LAYER_UNSPECIFIED"};z.slotEntryTrigger&&(I.entryTriggerType=z.slotEntryTrigger.triggerType);z.slotPhysicalPosition!==1&&(I.slotPhysicalPosition=z.slotPhysicalPosition);if(a){I.debugData={slotId:z.slotId};if(a=z.slotEntryTrigger)I.debugData.slotEntryTriggerData=TKm(a);a=z.slotFulfillmentTriggers;I.debugData.fulfillmentTriggerData=[];a=_.C(a);for(var J=a.next();!J.done;J=a.next())I.debugData.fulfillmentTriggerData.push(TKm(J.value));
z=z.slotExpirationTriggers;I.debugData.expirationTriggerData=[];z=_.C(z);for(a=z.next();!a.done;a=z.next())I.debugData.expirationTriggerData.push(TKm(a.value))}return I};
TKm=function(a,z){var I={type:a.triggerType};z!=null&&(I.category=z);a.triggeringSlotId!=null&&(I.triggerSourceData||(I.triggerSourceData={}),I.triggerSourceData.associatedSlotId=a.triggeringSlotId);a.triggeringLayoutId!=null&&(I.triggerSourceData||(I.triggerSourceData={}),I.triggerSourceData.associatedLayoutId=a.triggeringLayoutId);return I};
WFd=function(a,z,I,J){z={opportunityType:z};a&&(J||I)&&(J=_.vH(J||[],function(r){return dXI(a,r)}),z.debugData=Object.assign({},I&&I.length>0?{associatedSlotId:I}:{},J.length>0?{slots:J}:{}));
return z};
oLE=function(a){return j8(a.opportunityAdapterMap).concat(j8(a.triggerAdapterMap)).concat(j8(a.fulfillmentAdapterFactoryMap)).concat(j8(a.slotAdapterFactoryMap)).concat(j8(a.layoutRenderingAdapterFactoryMap))};
j8=function(a){var z=[];a=_.C(a.values());for(var I=a.next();!I.done;I=a.next())I=I.value,I.isAdsControlFlowEventListener&&z.push(I);return z};
Id=function(a){var z=a.slotId,I=a.slotType,J=a.slotPhysicalPosition;return z===void 0?new z0("Cannot construct a slot due to the missing id.",{adSlotMetadata:a}):I===void 0?new z0("Cannot construct a slot due to the missing type.",{adSlotMetadata:a}):J===void 0?new z0("Cannot construct a slot due to the missing physical position.",{adSlotMetadata:a}):{slotId:z,slotType:I,slotPhysicalPosition:J,managerLayer:"external",adSlotLoggingData:a.adSlotLoggingData,slotEntryTrigger:void 0,slotFulfillmentTriggers:[],
slotExpirationTriggers:[],clientMetadata:new UXp}};
DX7=function(a){var z=a.layoutId,I=a.layoutType;return z===void 0?new JQ("Cannot construct a layout due to the missing id.",{adLayoutMetadata:a}):I===void 0?new JQ("Cannot construct a layout due to the missing type.",{adLayoutMetadata:a}):{layoutId:z,layoutType:I,managerLayer:"external",adLayoutLoggingData:a.adLayoutLoggingData,trackingPings:new Map,layoutExitNormalTriggers:[],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],layoutExitUserCancelledTriggers:[],
clientMetadata:new UXp,interactionLoggingAdsClientData:{}}};
Rr1=function(a){if(a.querySelector("img")){var z=a.querySelector("img");z.addEventListener("error",function(){sSm(z.src).then(function(I){(I=_.TN(I).toString())?z.src=I:z.removeAttribute("src")}).catch(function(){z.src="data:image/gif;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAQAAAC1HAwCAAAAC0lEQVR42mN8XA8AAksBZG7LpHYAAAAASUVORK5CYII="})})}};
P0=function(a,z){if(z&&(LFO(z.viewableCommand)||LFO(z.endOfSessionCommand))){var I=lg3(z==null?void 0:z.viewableCommand);z=lg3(z==null?void 0:z.endOfSessionCommand);if(!rs){var J=_.Ib("custom_active_view_tos_timeout_ms");rs=J>0&&J!==36E5?new pNG(wN7(),J):new pNG(wN7())}mX3(rs,a);ybm(rs,a,I,z)}};
Zk=function(a){rs&&mX3(rs,a)};
wN7=function(){var a=_.Xw("INNERTUBE_CONTEXT_CLIENT_VERSION","").match(/^\d+\.(\d{8})/);return(a==null?void 0:a.length)===2?a[1]:null};
LFO=function(a){a=_.o0(a);return!(a==null||!a.loggingUrls)&&a.loggingUrls.length>0};
lg3=function(a){if(!a)return[];var z=[],I,J;((J=(I=_.o0(a))==null?void 0:I.loggingUrls)!=null?J:[]).forEach(function(r){r.baseUrl&&z.push(r.baseUrl)});
return z};
kKG=function(a){if(_.K("stop_av_measurement_on_detach"))return function(){Zk(a)}};
M3G=function(a){return function(){_.K("stop_av_measurement_on_detach")&&Zk(a)}};
cbp=function(a){if(_.K("stop_av_measurement_on_detach"))return function(){Zk(a)}};
YQx=function(a){return a.shorts.isDesktopSmallWidth};
_.qQx=function(a){return a.shorts.isShortsActive};
_.eri=function(a){return a.shorts.isWatchWhileMode};
_.Cc=function(a){return a.shorts.isFullscreen};
_.NA=function(a){return a.shorts.isShortsPipActive};
j$G=function(a){var z,I;if(a=(z=_.H(a.reelsAdCardButtoned,azE))==null?void 0:(I=z.animatedRenderingConfig)==null?void 0:I.easeOutSeconds)return a+"s"};
Iz3=function(a,z,I){return _.t(function(J){return J.return(new Promise(function(r){var P=new Image;P.onload=function(){r(new zM7(a,z,I,P.naturalWidth,P.naturalHeight))};
P.src=I.toString()}))})};
JBG=function(a,z){return Math.round(a/1E-5)===Math.round(z/1E-5)};
rB$=function(a,z){return Math.round(a/1E-5)===Math.round(z/1E-5)};
PU1=function(a,z){return a.year===z.year&&a.month===z.month&&a.day===z.day};
Z8i=function(a,z){return a.year!==z.year?a.year<z.year:a.month!==z.month?a.month<z.month:a.day<z.day};
NUM=function(a){return a.day===CU7(a.year,a.month)?a.month===11?{year:a.year+1,month:0,day:1}:{year:a.year,month:a.month+1,day:1}:{year:a.year,month:a.month,day:a.day+1}};
thI=function(){var a=new Date,z={year:a.getFullYear(),month:a.getMonth(),day:a.getDate()};return{start:z,end:{year:a.getFullYear()+2,month:a.getMonth(),day:a.getDate()},selectedDate:NUM(z)}};
urx=function(a){return(new yC(2)).format(new Date(a.year,a.month,a.day))};
EYi=function(a){return{year:a.getFullYear(),month:a.getMonth(),day:a.getDate()}};
BU$=function(a,z){a=(a+(Number(z.utcOffsetSec)+(new Date(a*1E3)).getTimezoneOffset()*60))*1E3;z=EYi(new Date(a));return{date:z,secondsSinceMidnight:Math.floor((a-(new Date(z.year,z.month,z.day)).getTime())/1E3)}};
gYp=function(a,z){z=z.months.findIndex(function(I){return I.year===a.year&&I.month===a.month});
return z>=0?z:void 0};
O8I=function(a){if(!a)return!1;try{if(a.host&&a.host.tagName==="YT-FORMATTED-STRING"&&a.host.id==="contenteditable-textarea"||a.nodeType===Node.ELEMENT_NODE&&a.tagName==="YTD-COMMENTBOX")return!0}catch(z){return!1}return O8I(a.parentNode)};
tQ=function(a){return a?!(a.tagName!=="A"||!a.href||!a.classList.contains("yt-simple-endpoint")):!1};
fzE=function(a){return a?a.tagName==="IMG"&&a.classList.contains("emoji"):!1};
AB3=function(a,z,I){if(!a)return null;var J=tQ(a);if(J&&I)return z=a.pathname.substring(a.pathname.indexOf("/channel/")+9),document.createTextNode("@"+z);if(J&&!I)return document.createTextNode("");if(fzE(a))return I=a.alt,a=a.dataset.emojiId,!a&&z&&(z=_.um(z,I))&&z.isCustomEmoji&&(a=z.emojiId),a?document.createTextNode("<URehb0Lc5mi4S0dpuLG8:"+a+">"):document.createTextNode(I);J=a.cloneNode(!1);for(var r=0;r<a.childNodes.length;++r){var P=AB3(a.childNodes[r],z,I);P&&J.appendChild(P)}return J};
E1=function(a){return a?tQ(a)?a:E1(a.lastChild):null};
s$7=function(a){return a?tQ(a)?a:s$7(a.firstChild):null};
nYE=function(a){if(!a)return null;for(var z=a.previousSibling;z;)if(z.nodeType===Node.ELEMENT_NODE&&z.nodeName==="BR")z=z.previousSibling;else if(z.nodeType===Node.TEXT_NODE&&/\s+/.test(z.textContent))z=z.previousSibling;else break;(z=E1(z))?a=z:a=(a=a.parentNode)?E1(a.previousElementSibling):null;return a};
K0$=function(a){if(!a)return null;for(var z=a.nextSibling;z;)if(z.nodeType===Node.ELEMENT_NODE&&z.nodeName==="BR")z=z.nextSibling;else if(z.nodeType===Node.TEXT_NODE&&/\s+/.test(z.textContent))z=z.nextSibling;else break;return(z=s$7(z))?z:K0$(a.parentNode)};
F0I=function(a){var z=_.B0(),I=z.JSC$11245_getStartNode();if(!O8I(I.parentNode))return null;z=z.JSC$11245_getStartOffset();if(I.nodeType===Node.TEXT_NODE){var J=_.dJ(I,tQ);if(J){if(a&&z===0||!a&&z===I.length)return J}else{if(a&&z===I.length)return!I||I.nodeName==="BR"||I.nextElementSibling&&_.gs(I.nextElementSibling,"display")==="block"?null:s$7(I.nextElementSibling);if(!a&&z===0)return I?E1(I.previousElementSibling):null}}if(I.nodeType===Node.ELEMENT_NODE)if(a){if(0<=z&&z<I.childNodes.length)return s$7(I.childNodes[z])}else if(0<
z&&z<=I.childNodes.length)return E1(I.childNodes[z-1]);return null};
H8$=function(a,z,I){if(!a)return null;if(a.nodeType===Node.TEXT_NODE)if(I){var J=nYE(a);if(J&&!/^\s+\S/.test(a.wholeText.substr(0,z)))return J}else if((J=K0$(a))&&!/\S\s+/.test(a.wholeText.substr(z,a.wholeText.length)))return J;return a.nodeType===Node.ELEMENT_NODE?I?nYE(a.childNodes[z]):K0$(a.childNodes[z]):H8$(a.parentNode,z,I)};
b83=function(a){if(a.hasChildNodes())switch(a.tagName){case "DIV":case "A":case "SPAN":var z="";for(a=a.firstChild;a;a=a.nextSibling)z+=b83(a);return z;default:return""}else switch(a.nodeType){case 3:return a.textContent;default:return""}};
O1=function(a,z){return a.year===z.year&&a.month===z.month&&a.day===z.day};
fc=function(a,z){return a.year!==z.year?a.year<z.year:a.month!==z.month?a.month<z.month:a.day<z.day};
hMO=function(a){return{year:a.getFullYear(),month:a.getMonth(),day:a.getDate()}};
VhM=function(a){var z=fGd;z=z===void 0?fGd:z;z(new Date(a.year,a.month,a.day))};
AQ=function(a){return hMO(new Date(Number(a.seconds)*1E3))};
Q$7=function(a){return a.year!==void 0&&a.month!==void 0&&a.day!==void 0};
SEm=function(a){return a.start!==void 0&&a.end!==void 0};
i8M=function(a){return SEm(a)?a.start:a};
xFG=function(a){return SEm(a)?a.end:void 0};
GwM=function(a,z){for(var I=[],J=new Date(a.start.year,a.start.month);J.getFullYear()<a.end.year||J.getFullYear()===a.end.year&&J.getMonth()<=a.end.month;){var r=I,P=r.push,N=J.getFullYear(),u=J.getMonth(),E=a,O=z,f=void 0,A=[],n=Object.freeze({extraCssClass:"invisible"}),F=new Date(N,u),h=hMO(F);F=F.getDay();for(var v=hMO(new Date);h.month===u;){F!==vYx&&f||(f=Array.from({length:7}).fill(n),A.push(f));var d={date:{year:N,month:u,day:h.day},extraCssClass:"",debugClass:""};d.extraCssClass=O(d.date,
h,v,E).trim();f[(F-vYx+7)%7]=d;h=h.day===CU7(h.year,h.month)?h.month===11?{year:h.year+1,month:0,day:1}:{year:h.year,month:h.month+1,day:1}:{year:h.year,month:h.month,day:h.day+1};F=(F+1)%7}P.call(r,{weeks:A,monthLabel:s1.SHORTMONTHS[u]+" "+N,year:N,month:u,monthLabelExtraCssClass:A[0][2]===n?"shift-down-label":""});J.setMonth(J.getMonth()+1)}return I};
$F7=function(a,z){z=z.months.findIndex(function(I){return I.year===a.year&&I.month===a.month});
return z>=0?z:void 0};
TUM=function(a,z){a:{var I=I===void 0?[2,3]:I;I=_.C(I);for(var J=I.next();!J.done;J=I.next()){var r=new Date;if((new XBm(J.value)).parse(z,r,{validate:!0})){r.setHours(0,0,0,0);z=r;break a}}z=null}if(!z)return{isValid:!1,value:void 0};z=hMO(z);I=a.end;return fc(z,a.start)||fc(I,z)?{isValid:!1,value:void 0}:{isValid:!0,value:z}};
DFG=function(a){var z=dFx;z=z===void 0?W0i:z;var I=a.columnsToShow||[],J=oYI(a.columnDimensions,a.columnsToShow,a.leftFloatingColumns,z);return I.map(function(r,P){var N=a.columns[r];if(N===void 0)throw Error("Nh");var u=J?J[P]:"";var E=a.getCustomTooltip?a.getCustomTooltip(r,N.headerTooltipParagraphs):N.headerTooltipParagraphs;var O=UF0(a,r);return{type:r,index:P,style:u,classes:O,headerName:N.headerName||"",headerIcon:N.headerIcon,headerTooltipParagraphs:E||[],headerTooltipHelpContext:N.headerTooltipHelpContext,
sortOrders:N.sortOrders||[],selectionState:N.isSelectionCheckbox?a.selectionState:void 0}})};
UF0=function(a,z){var I=["DEFAULTS","FLOATING","RIGHT_ALIGN","SORTING"],J=a.columns[z];if(J===void 0)return"";var r=I.includes("DEFAULTS")&&J.cssClass?[J.cssClass]:[];if(I.includes("SORTING")){J.sortOrders&&J.sortOrders.length&&r.push("sortable");if(a.sorting&&a.sorting.columnType===z)a:switch(a.sorting.sortOrder){case "ASCENDING":case "DESCENDING":var P="column-sorted";break a;default:P=""}else P="";P&&r.push(P)}I.includes("FLOATING")&&(z=a.columnsToShow.indexOf(z),a.leftFloatingColumns&&z<a.leftFloatingColumns&&
r.push("floating-column"),a.leftFloatingColumns&&z===a.leftFloatingColumns-1&&r.push("last-floating-column"));I.includes("RIGHT_ALIGN")&&J.rightAlignHeader&&r.push("right-align");return r.filter(function(N){return N}).join(" ")};
oYI=function(a,z,I,J){I=I===void 0?0:I;J=J===void 0?W0i:J;if(a){var r=[],P=0;RM3(a,z,J).forEach(function(N,u){var E="min-width:"+N.minWidth+"px;padding-left:"+N.paddingLeft+"px;padding-right:"+N.paddingRight+"px;flex:"+N.flexGrow+" 0 "+N.minWidth+"px;";N.maxWidth!==Infinity&&(E=[E,"max-width:"+N.maxWidth+"px;"].join(""));P>0&&u<I&&(E=[E,"left:"+P+"px;"].join(""));r.push(E);P+=N.minWidth+N.paddingLeft+N.paddingRight});
return r}};
RM3=function(a,z,I){I=I===void 0?W0i:I;return z.map(function(J,r){J=a&&a[J]||{};var P=r===0?I.paddingLeftFirstColumn:I.padding;J.paddingLeft!==void 0&&(P=J.paddingLeft);r=r===z.length-1?I.paddingRightLastColumn:I.padding;J.paddingRight!==void 0&&(r=J.paddingRight);return{paddingLeft:P,paddingRight:r,minWidth:J.minWidth!==void 0?J.minWidth:I.minWidth,maxWidth:J.maxWidth!==void 0?J.maxWidth:I.maxWidth,flexGrow:J.flexGrow!==void 0?J.flexGrow:I.flexGrow}})};
L01=function(a){var z=a.reduce(function(J,r){var P=r.columnId,N={};r.headerText&&(N.headerName=_.cd(r.headerText));r.rightAlignHeader&&(N.rightAlignHeader=r.rightAlignHeader);var u;if((u=r.headerIcon)==null?0:u.iconType)N.headerIcon=_.Bl(r.headerIcon.iconType);J[P]=N;return J},{}),I=a.filter(function(J){return!J.hideColumn}).map(function(J){return J.columnId});
a=a.filter(function(J){return!!J.dimensions}).reduce(function(J,r){J[r.columnId]=r.dimensions;
return J},{});
return{columns:z,columnsToShow:I,columnDimensions:a}};
_.lz3=function(a){return a?a.simpleText?a.simpleText:a.runs?a.runs.map(function(z){return z.text}).join(""):"":""};
kwm=function(a){var z=a.data;var I=a.onTap;var J=a.isSelected;var r=a.onFocusIn;if(!z)return{};a=pBG(z);J===void 0&&(J=z==null?void 0:z.isSelected);var P;return{text:wBG(z,a),startIcon:(P=z.icon)==null?void 0:P.iconType,state:J?0:2,type:0,onTap:mF$(z,I),accessibilityLabel:yBx(z,a),onFocusIn:function(){return r==null?void 0:r()}}};
wBG=function(a,z){if(!z)return a.text?_.lz3(a.text):void 0};
mF$=function(a,z){return function(I){z==null||z(I,a)}};
pBG=function(a){a=a.style&&a.style.styleType;return!BKE&&a==="STYLE_EXPLORE_LAUNCHER_CHIP"};
yBx=function(a,z){if(z){var I,J,r;return(r=(I=a.accessibilityData)==null?void 0:(J=I.accessibilityData)==null?void 0:J.label)!=null?r:wBG(a,!1)}};
nc=function(a){return{signalAction:{signal:a}}};
YEx=function(){return _.Xw("INNERTUBE_CLIENT_NAME")==="WEB_REMIX"?MhE:_.cBO};
qEG=function(a,z){a=a===void 0?"SOFT_RELOAD_PAGE":a;z=z===void 0?49504:z;return{style:"STYLE_OVERLAY",size:"SIZE_DEFAULT",text:_.zg(_.AR("RETRY",void 0,"Retry")),loggingDirectives:{clientVeSpec:{uiType:z}},serviceEndpoint:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{signalAction:{signal:a}}]}}}};
eM$=function(){return{style:"STYLE_SUGGESTIVE",size:"SIZE_SMALL",text:_.zg(_.AR("GO_TO_DOWNLOADS",void 0,"Go to downloads")),loggingDirectives:{clientVeSpec:{uiType:49503}},navigationEndpoint:YEx()}};
a_x=function(){return{style:"STYLE_LIGHT_TEXT",size:"SIZE_DEFAULT",text:_.zg(_.AR("VIEW_DOWNLOADS",void 0,"View")),loggingDirectives:{clientVeSpec:{uiType:98970}},navigationEndpoint:YEx()}};
j87=function(a,z){var I=_.zg(_.AR("CONNECT_TO_THE_INTERNET",void 0,"Connect to the internet")),J=_.zg(_.AR("OFFLINE_CHECK_CONNECTION",void 0,"You're offline. Check your connection.")),r={style:"STYLE_SUGGESTIVE",size:"SIZE_SMALL",text:_.zg(_.AR("RETRY",void 0,"Retry")),loggingDirectives:{clientVeSpec:{uiType:49504}}};r.serviceEndpoint=a?a:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[nc("SOFT_RELOAD_PAGE")]}};return{title:I,bodyText:J,icon:{iconType:"OFFLINE_NO_CONTENT"},ctaButton:{reloadPageButtonRenderer:r},
style:{value:z!=null?z:"BACKGROUND_PROMO_STYLE_TYPE_FULL_HEIGHT"},loggingDirectives:{clientVeSpec:{uiType:22233}}}};
I_m=function(a){a=a===void 0?{}:a;return{title:_.zg(a.localizedZeroStateTitleText===void 0?"":a.localizedZeroStateTitleText),bodyText:_.zg(a.localizedZeroStateMessage===void 0?"":a.localizedZeroStateMessage),ctaButton:{toggleButtonRenderer:{style:{styleType:"STYLE_PRIMARY"},size:{sizeType:"SIZE_DEFAULT"},defaultText:_.zg(a.localizedZeroStateButtonText===void 0?"":a.localizedZeroStateButtonText),isDisabled:!1,defaultServiceEndpoint:{updateLocalAppSettingCommand:{settingItemId:"SMART_DOWNLOADS_ENABLED",
boolValue:!0}},loggingDirectives:{clientVeSpec:{uiType:127983}}}},thumbnail:{thumbnails:[zdM]},style:{value:"BACKGROUND_PROMO_STYLE_TYPE_ADAPTIVE_FULL_HEIGHT"},loggingDirectives:{clientVeSpec:{uiType:127982}}}};
rkx=function(a){a=a===void 0?{}:a;return{title:_.zg(a.localizedOptInBannerTitleText===void 0?"":a.localizedOptInBannerTitleText),titleLength:19,subtitle:_.zg(a.localizedOptInMessage===void 0?"":a.localizedOptInMessage),primaryButton:{toggleButtonRenderer:{style:{styleType:"STYLE_BLUE_TEXT"},size:{sizeType:"SIZE_DEFAULT"},defaultText:_.zg(_.AR("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:_.zg(_.AR("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:[JkE]},
loggingDirectives:{clientVeSpec:{uiType:127982}}}};
CZ0=function(a,z){var I=z=z===void 0?{}:z;z=I.offlineTitleText===void 0?"":I.offlineTitleText;var J=I.offlineDescriptionText===void 0?"":I.offlineDescriptionText,r=I.formattedSupplementalText,P=I.actionButtonText===void 0?"":I.actionButtonText,N=I.titleText===void 0?"":I.titleText;I=I.descriptionText===void 0?"":I.descriptionText;var u={title:P,accessibilityText:P,style:"BUTTON_VIEW_MODEL_STYLE_CTA",type:"BUTTON_VIEW_MODEL_TYPE_FILLED",state:"BUTTON_VIEW_MODEL_STATE_ACTIVE",buttonSize:"BUTTON_VIEW_MODEL_SIZE_DEFAULT",
loggingDirectives:{clientVeSpec:{uiType:266213}},onTap:{innertubeCommand:{urlEndpoint:{url:"https://www.youtube.com/premium"},commandMetadata:{webCommandMetadata:{url:"https://www.youtube.com/premium",webPageType:"WEB_PAGE_TYPE_PROMO"}}}}};a||(N=z,I=J,u={title:P,accessibilityText:P,style:"BUTTON_VIEW_MODEL_STYLE_MONO",type:"BUTTON_VIEW_MODEL_TYPE_OUTLINE",state:"BUTTON_VIEW_MODEL_STATE_DISABLED",buttonSize:"BUTTON_VIEW_MODEL_SIZE_DEFAULT",loggingDirectives:{clientVeSpec:{uiType:266213}}});return{title:_.zg(N),
titleLength:N.length,overrideTitleMaxFontSize:30,subtitle:_.zg(I),supplementalText:r,primaryButton:{buttonViewModel:u},lightColorData:{basicColorData:{backgroundColor:0}},darkColorData:{basicColorData:{backgroundColor:4279176975}},tileImage:{thumbnails:[PZ0]},darkTileImage:{thumbnails:[Zm0]},loggingDirectives:{clientVeSpec:{uiType:266212}}}};
_.ulE=function(a,z,I,J,r,P,N,u,E,O,f){r=r===void 0?!1:r;P=P===void 0?!1:P;N=N===void 0?0:N;u=u===void 0?-Infinity:u;E=E===void 0?!1:E;O=O===void 0?!1:O;f=f===void 0?!1:f;var A=[],n=_.zg(_.AR("SMART_DOWNLOADS",void 0,"Smart downloads")),F=_.zg(Nb3(N,u,a.length));u=N=void 0;O?N={statementBannerRenderer:CZ0(f,J)}:r?a.length>0?u=t1M(a,"RICH_SHELF_ENTITY_SELECTOR_TYPE_DOWNLOADS_PAGE_SMART_DOWNLOADS",_.K("kevlar_manual_downloads_above"),n,F):E?u={alertBannerViewModel:{heading:{content:I.localizedOptInBannerTitleText===
void 0?"":I.localizedOptInBannerTitleText},body:{content:I.localizedPromptMessage===void 0?"":I.localizedPromptMessage},type:"ALERT_BANNER_TYPE_INFORMATIONAL",hideIcon:!0,actionButton:{buttonViewModel:{title:_.AR("UPDATE_SMART_DOWNLOADS_NOW",void 0,"Update now"),accessibilityText:_.AR("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:_.x_E}]}}}}},rendererContext:{loggingContext:{loggingDirectives:{clientVeSpec:{uiType:129729}}}}}}:P&&(u={backgroundPromoRenderer:{bodyText:_.zg(_.AR("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"}}}):
P&&(u={alertBannerViewModel:{heading:{content:I.localizedOptInBannerTitleText===void 0?"":I.localizedOptInBannerTitleText},body:{content:I.localizedOptInMessage===void 0?"":I.localizedOptInMessage},type:"ALERT_BANNER_TYPE_INFORMATIONAL",hideIcon:!0,actionButton:{buttonViewModel:{title:_.AR("TURN_ON",void 0,"Turn on"),accessibilityText:_.AR("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}}}}}});I=_.zg(_.AR("YOUR_DOWNLOADS",void 0,"Your downloads"));J=void 0;z.length>0?(J=void 0,_.K("kevlar_display_downloads_numbers")&&(J=_.zg(_.s_("VIDEO_COUNT",z.length))),J=t1M(z,"RICH_SHELF_ENTITY_SELECTOR_TYPE_DOWNLOADS_PAGE_MANUAL_DOWNLOADS",!0,I,J)):r||a.length||
O||(J={backgroundPromoRenderer:{bodyText:_.zg(_.AR("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}}}});N?A.push({richSectionRenderer:{content:N}}):u&&!_.K("kevlar_manual_downloads_above")&&A.push({richSectionRenderer:{content:u,loggingDirectives:{clientVeSpec:{uiType:139572}}}});
J&&A.push({richSectionRenderer:{content:J,loggingDirectives:{clientVeSpec:{uiType:51721}}}});u&&_.K("kevlar_manual_downloads_above")&&A.push({richSectionRenderer:{content:u,loggingDirectives:{clientVeSpec:{uiType:139572}}}});(z.length>0||r&&a.length>0&&!O)&&A.push({richSectionRenderer:{content:{messageRenderer:{subtext:{messageSubtextRenderer:{text:_.zg(_.AR("DOWNLOADS_AVAILABILITY",void 0,"Downloads remain available as long as your device has an active internet connection for 30 days. This process happens automatically and does not re-download the video."))}},
loggingDirectives:{clientVeSpec:{uiType:133683}}}}}});return{contents:A}};
_.Bb0=function(a){return Ew3(a,"RICH_SHELF_ENTITY_SELECTOR_TYPE_SMART_DOWNLOADS_PAGE")};
_.gwM=function(a){return Ew3(a,"RICH_SHELF_ENTITY_SELECTOR_TYPE_OFFLINE_HOME_PAGE")};
Ew3=function(a,z){var I=[];a=t1M(a,z,!0);I.push({richSectionRenderer:{content:a}});return{contents:I}};
t1M=function(a,z,I,J,r){I=I===void 0?!1:I;var P="RESPONSIVE_SIZE_STANDARD";_.K("kevlar_modern_downloads_compact")?P="RESPONSIVE_SIZE_COMPACT":_.K("kevlar_modern_downloads_extra_compact")&&(P="RESPONSIVE_SIZE_EXTRA_COMPACT");a={isExpanded:I,contents:Kc(a),entitySelectorType:z,responsiveContainerConfiguration:{responsiveSize:P}};J&&(a.title=J);r&&(a.subtitle=r);I||(_.K("kevlar_smart_downloads_show_more_button")?(a.showMoreButton={buttonRenderer:{accessibility:{label:_.AR("SHOW_MORE",void 0,"Show more")},
icon:{iconType:"EXPAND"},style:"STYLE_OPACITY",size:"SIZE_DEFAULT",loggingDirectives:{clientVeSpec:{uiType:192921}},text:_.zg(_.AR("SHOW_MORE",void 0,"Show more"))}},a.showLessButton={buttonRenderer:{accessibility:{label:_.AR("SHOW_LESS",void 0,"Show less")},icon:{iconType:"COLLAPSE"},style:"STYLE_OPACITY",size:"SIZE_DEFAULT",text:_.zg(_.AR("SHOW_LESS",void 0,"Show less"))}}):(a.previousButton={buttonViewModel:{iconName:"CHEVRON_LEFT",accessibilityText:_.AR("HORIZONTAL_LIST_PREVIOUS_LABEL",void 0,
"Previous"),style:"BUTTON_VIEW_MODEL_STYLE_MONO",type:"BUTTON_VIEW_MODEL_TYPE_OUTLINE",state:"BUTTON_VIEW_MODEL_STATE_ACTIVE",buttonSize:"BUTTON_VIEW_MODEL_SIZE_DEFAULT",loggingDirectives:{clientVeSpec:{uiType:11760}}}},a.nextButton={buttonViewModel:{iconName:"CHEVRON_RIGHT",accessibilityText:_.AR("HORIZONTAL_LIST_NEXT_LABEL",void 0,"Next"),style:"BUTTON_VIEW_MODEL_STYLE_MONO",type:"BUTTON_VIEW_MODEL_TYPE_OUTLINE",state:"BUTTON_VIEW_MODEL_STATE_ACTIVE",buttonSize:"BUTTON_VIEW_MODEL_SIZE_DEFAULT",
loggingDirectives:{clientVeSpec:{uiType:11760}}}},a.menu={menuRenderer:{topLevelButtons:[{buttonViewModel:{title:_.AR("VIEW_ALL",void 0,"View all"),accessibilityText:_.AR("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:_.aU("FEsmart_downloads","/feed/smart_downloads",248381)}}}]}}));return{richShelfRenderer:a}};
Kc=function(a){var z=[];a=_.C(a);for(var I=a.next();!I.done;I=a.next())if(I=I.value,E3G(I)){var J=z,r=J.push;var P=void 0;if(I==null?0:(P=I.videoEntity)==null?0:P.videoId){P=RU(_.qo().getState(),I.videoEntity.videoId);var N=_.qo().getState();var u=_.Er(I.videoEntity.videoId,"mainVideoEntity");N=!!_.Sx(N.entities)[u];N={videoId:I.videoEntity.videoId,title:IU(I.videoEntity.title),shortBylineText:IU(I.channelEntity.title),thumbnail:I.videoEntity.thumbnail,loggingDirectives:{clientVeSpec:{uiType:N&&_.K("kevlar_modern_downloads_page")?
129218:42356}},navigationEndpoint:lf7(I.videoEntity.videoId,P,I.videoEntity.lengthSeconds),badges:[{metadataBadgeRenderer:{label:_.AR("DOWNLOADED",void 0,"Downloaded"),style:"BADGE_STYLE_TYPE_SIMPLE"}}]};I.videoEntity.lengthSeconds&&(N.thumbnailOverlays=dsx(I.videoEntity.lengthSeconds,P));N.isWatched=P>0;_.K("kevlar_modern_downloads_page")&&(N.menu={menuRenderer:{items:[{menuServiceItemDownloadRenderer:{serviceEndpoint:{offlineVideoEndpoint:{videoId:I.videoEntity.videoId}}}}],accessibility:{accessibilityData:{label:_.AR("VIDEO_ACTION_MENU",
void 0,"Action menu")}}}},N.badges=void 0);I=N}else I={};r.call(J,{richItemRenderer:{content:{videoRenderer:I},entitySelectorType:"RICH_ITEM_ENTITY_SELECTOR_TYPE_VIDEO"}})}else if(uop(I)){J=z;r=J.push;var E=u=P=void 0,O=void 0,f=void 0,A=void 0,n=void 0,F=void 0,h=void 0,v=void 0,d=void 0,W=void 0;N=I.mainPlaylistEntity.playlistId;var l=I==null?void 0:(W=I.mainPlaylistEntity)==null?void 0:(d=W.thumbnailStyleData)==null?void 0:(v=d[0])==null?void 0:(h=v.value)==null?void 0:(F=h.collageThumbnail)==
null?void 0:F.coverThumbnail;if(N&&l){F=pYp(N);!_.K("enable_offline_playlist_page")&&(I==null?0:(n=I.mainPlaylistEntity)==null?0:n.videos)&&(n=I==null?void 0:(A=I.mainPlaylistEntity)==null?void 0:(f=A.videos)==null?void 0:f[0],f=_.ZY(n).entityId,f=JSON.parse(f).videoId,f!==void 0&&(A=RU(_.qo().getState(),f),F=_.jx(f,N,void 0,void 0,A)));f=[];if(I==null?0:(O=I.mainPlaylistEntity)==null?0:(E=O.videos)==null?0:E.length)f=[ONM(),Object.assign({},(u=go0(I==null?void 0:I.mainPlaylistEntity.videos.length))!=
null?u:{})];I={playlistId:N,thumbnailRenderer:{playlistVideoThumbnailRenderer:{thumbnail:l}},navigationEndpoint:F,loggingDirectives:{clientVeSpec:{uiType:42357}},thumbnailOverlays:f,title:IU(I.mainPlaylistEntity.title),shortBylineText:IU(I==null?void 0:(P=I.channelEntity)==null?void 0:P.title),badges:[{metadataBadgeRenderer:{label:_.AR("DOWNLOADED",void 0,"Downloaded"),style:"BADGE_STYLE_TYPE_SIMPLE"}}]};_.K("kevlar_modern_downloads_page")&&(I.menu={menuRenderer:{items:[{menuServiceItemRenderer:{text:Om7,
icon:{iconType:"DELETE"},serviceEndpoint:{offlinePlaylistEndpoint:{playlistId:N,action:"ACTION_REMOVE_WITH_PROMPT"}}}}],accessibility:{accessibilityData:{label:_.AR("VIDEO_ACTION_MENU",void 0,"Action menu")}}}},I.badges=void 0)}else I=void 0;r.call(J,{richItemRenderer:{content:{playlistRenderer:I},entitySelectorType:"RICH_ITEM_ENTITY_SELECTOR_TYPE_PLAYLIST"}})}return z};
Nb3=function(a,z,I){a=a?f_G(a):"";z!==void 0&&isFinite(z)?z===0?z=_.AR("UPDATING",void 0,"Updating..."):(z=Trm(new Date(z),new Date),z=_.AR("UPDATED_TIME",{relative_time:z},"Updated "+z)):z="";var J="";a&&z&&(J=" \u2022 ");if(I&&_.K("kevlar_display_downloads_numbers")){I=_.s_("VIDEO_COUNT",I);if(a||z)J=" \u2022 ";return I+J+a+J+z}return a+J+z};
AkI=function(a){return IOm(a.entities).length};
_.s8$=function(a,z){var I=Lri(a.responsiveSize),J;a=!((J=a.responsiveMap)==null||!J.some(function(r){return r.containerSize==="CONTAINER_SIZE_NARROW"&&r.containerType==="CONTAINER_TYPE_VERTICAL_LIST"}));
return{marginSettings:2,containerWidth:z,sizing:I,enableFullBleedForSingleCol:!1,isCompactList:I==="COMPACT"&&a}};
nw$=function(a,z){return _.Bd(a.entities,"votingEntity",z)};
K41=function(a){if(a){var z;return((z=_.ab().resolve(_.eL(_.kN)))==null?0:z())?a.darkTheme:a.lightTheme}};
F43=function(a,z){if(a.simpleText)return Object.assign({},a,{simpleText:wd(a.simpleText,z)});if(!a.runs)return a;for(var I=Object.assign({},a,{runs:[]}),J=0,r=_.C(a.runs),P=r.next();!P.done;P=r.next())if(P=P.value,P.text)if(J+P.text.length<=z)I.runs.push(P),J+=P.text.length;else return I.runs.push(Object.assign({},P,{text:wd(P.text,z-J)})),I;return a};
Hmd=function(a,z){return _.Bd(a.entities,"chipBarStateEntity",z)};
bm0=function(a,z){return _.Bd(a.entities,"chipEntity",z)};
V1M=function(a,z,I,J){return function(){var r=hdi.has(a.displayType)&&a.selected,P=r&&a.deselectCommand?a.deselectCommand:a.tapCommand;!P||r&&J||_.lN(P,{form:{element:z==null?void 0:z.value}});I==null||I()}};
Q8G=function(a){switch(a){case "DIVIDER_STYLE_FULL_BLEED_4_PX":return"divider-view-model-wiz__base-divider--full-bleed-4px";case "DIVIDER_STYLE_FULL_BLEED_THICK":return"divider-view-model-wiz__base-divider--full-bleed-thick";case "DIVIDER_STYLE_FULL_BLEED_8_PX":return"divider-view-model-wiz__base-divider--full-bleed-8px";case "DIVIDER_STYLE_FULL_BLEED_12_PX":return"divider-view-model-wiz__base-divider--full-bleed-12px";default:return""}};
S6M=function(a,z){return{triggeringElement:a,onDwellTriggeredFn:function(){var I={triggeringElement:a,loadVideoPreviewEventData:z},J=document.querySelector(".video-preview");J&&J.dispatchEvent(new CustomEvent("yt-load-video-preview",{detail:I}))},
onDwellEndFn:function(){var I=document.querySelector(".video-preview");I&&I.dispatchEvent(new CustomEvent("yt-end-video-preview"))}}};
im$=function(a,z){var I=_.ab().resolve(_.eL(i9G)),J=function(){var r=z();return I&&r?S6M(a.value,r):null};
_.h2(function(){var r=J();I&&r&&Promise.resolve().then(function(){I.registerElement(r)});
_.V3(function(){I&&r&&Promise.resolve().then(function(){_.pU(I,r)})})},"csPUge")};
vwI=function(a){var z=a.dataset.resizeObserverId;if(z)return z;z=""+x9x++;return a.dataset.resizeObserverId=z};
GMG=function(a,z){var I=vwI(a);FK.has(I)||FK.set(I,new Set);FK.get(I).add(z);H0.has(I)&&z(Object.assign({},{target:a},H0.get(I)))};
$9x=function(a){a=_.C(a);for(var z=a.next();!z.done;z=a.next()){z=z.value;var I=vwI(z.target),J=Object.assign({},{target:z.target},H0.get(I));if(J!=null&&J.contentRect?J.contentRect.width!==z.contentRect.width||J.contentRect.height!==z.contentRect.height:1)for(H0.set(I,{borderBoxSize:z.borderBoxSize,contentBoxSize:z.contentBoxSize,contentRect:z.contentRect,devicePixelContentBoxSize:z.devicePixelContentBoxSize}),I=_.C(FK.get(I)||[]),J=I.next();!J.done;J=I.next())J=J.value,J(z)}};
TbO=function(){return bm?bm:bm=new XxG($9x)};
d9G=function(a,z){var I=vwI(a);FK.has(I)&&(FK.get(I).delete(z),FK.get(I).size===0&&(FK.delete(I),H0.delete(I),bm.unobserve(a),delete a.dataset.resizeObserverId));FK.size===0&&bm&&(bm.disconnect(),bm=void 0)};
owx=function(a,z){var I=_.ab().resolve(jH);return W4M.map(function(J){return I.observe(a,z,J)})};
U9d=function(a){var z=_.ab().resolve(jH);a.forEach(function(I){z.unobserveByKey(I)})};
_.L4p=function(a,z){var I=Object.assign({},D9m,z);z=_.C(QOG());var J=z.next().value,r=z.next().value,P=function(N){var u=N.contentRect.height;if((N=N.contentRect.width)||u||I.canHaveZeroSize)J.width()===N&&J.height()===u||r(J,{height:u,width:N})};
_.QO(function(){var N=a instanceof HTMLElement?a:a.value,u=Rd3(P,I.throttleMs),E=[];I.useVisibilityObserver&&(E=owx(N,function(O,f){requestAnimationFrame(function(){f==="visible"?(GMG(N,u),TbO().observe(N)):d9G(N,u)})}));
E.length||(GMG(N,u),TbO().observe(N));_.V3(function(){E.length&&(U9d(E),E.length=0);d9G(N,u)})});
return J};
pxO=function(a,z,I,J,r){a=z?a.switchOffCommand:a.switchOnCommand;if(J&&r)l_p(a,I,r);else{var P,N;(P=_.R0({elementsCommand:a}))==null||(N=P.onclick)==null||N.call(P,I)}};
l_p=function(a,z,I){a=_.R0({elementsCommand:a,additionalCommandArgs:{commandController:{onSuccess:function(){I(!1)},
onServerError:function(){I(!1)}}}});
if(a==null?0:a.onclick)a.onclick(z),I(!0)};
m9G=function(a){if(a)return _.H(a,wxp)};
yk$=function(a,z){if(!((z==null?0:z.entitySelectorType)&&(z==null?0:z.entityKey)))return{};switch(z.entitySelectorType){case "LIST_ITEM_VIEW_MODEL_ENTITY_SELECTOR_TYPE_CAPTION_LANGUAGE_SELECTION_TEXT":return a=_.Dt(a,z.entityKey),a=a==null?void 0:a.value,z=!1,a==="CAPTIONS_UNAVAILABLE"&&(z=!0,a=""),Object.assign({},!!a&&{selectionText:{content:a}},!!a&&{leadingImage:{sources:[{clientResource:{imageName:"CLOSED_CAPTION_SELECTED"}}]}},{isDisabled:z});case "LIST_ITEM_VIEW_MODEL_ENTITY_SELECTOR_TYPE_AUDIO_TRACK_SELECTION_TEXT":return _.K("web_shorts_audio_track_picker")?
(a=_.Dt(a,z.entityKey),a=a==null?void 0:a.value,z=!1,a==="ALTERNATE_AUDIO_TRACK_UNAVAILABLE"&&(z=!0,a=""),Object.assign({},!z&&!!a&&{selectionText:{content:a}},!z&&!!a&&{leadingImage:{sources:[{clientResource:{imageName:"PERSON_RADAR_FILLED"}}]}},{isDisabled:z})):{};default:return{}}};
q6G=function(a,z,I){if(z)return[kMI];switch(a){case "TRANSFER_STATE_TRANSFER_IN_QUEUE":case "TRANSFER_STATE_COMPLETE":return[hQ];case "TRANSFER_STATE_PRE_TRANSFER":case "TRANSFER_STATE_TRANSFERRING":return I?[hQ]:[M13,hQ];case "TRANSFER_STATE_PAUSED_BY_USER":return[ckx,hQ];case "TRANSFER_STATE_FAILED":case "TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH":return[Y67,hQ];default:return[kMI]}};
edd=function(a,z,I,J){return q6G(a,z,J).map(function(r){var P=r.text,N=r.iconType,u=r.videoAction;r=r.playlistAction;P=P?{content:P}:void 0;N=N&&{sources:[{clientResource:{imageName:N}}]};var E=(0,_.x8.unsafeClone)(I);if(E){var O=_.H(E,_.fU),f=_.H(E,_.nU);O&&u?O.action=u:f&&r&&(f.action=r)}return{title:P,leadingImage:N,rendererContext:E&&{commandContext:{onTap:{innertubeCommand:E}}}}})};
aDM=function(a){a=_.Wn(a.rendererContext);var z;return(z=_.H(a,_.nU))==null?void 0:z.playlistId};
jr7=function(a){var z;return(z=a.listItems)==null?void 0:z.some(function(I){var J;return _.oK((J=_.H(I,_.iq))==null?void 0:J.rendererContext)})};
JuG=function(a){var z;return(z=a.listItems)==null?void 0:z.some(function(I){var J,r,P=(r=(J=_.H(I,zK3))==null?void 0:J.defaultListItem)!=null?r:I;I=_.H(P,_.iq);return!!_.H(I==null?void 0:I.leadingAccessory,ID0)})};
Za$=function(a){var z=a.element;var I=a.veType;var J=a.storedVisualElement===void 0?null:a.storedVisualElement;var r=a.elementIndex===void 0?0:a.elementIndex;a=a.clientYouTubeData;var P=_.TX();P!==ruO&&(Ptd.clear(),ruO=P);if(z.visualElement&&Ptd.has(z.visualElement))return null;if(J&&Ptd.has(J))return z.visualElement=J,null;I=_.nw(_.Kw(),{veType:I,elementIndex:r,clientYouTubeData:a});if(!I)return null;z.visualElement=I;Ptd.add(I);return I};
_.Vr=function(a,z,I,J){I=I===void 0?null:I;J=J===void 0?k6m:J;var r=r===void 0?null:r;vl(function(){if(z){I instanceof Function&&(I=I());var P=Za$({element:z,veType:a,storedVisualElement:I,clientYouTubeData:void 0});P&&(Yqx(z,r),J(P))}})};
Qr=function(a,z){if(a){switch(z){case 0:a=a.primaryTitleColor;break;case 1:a=a.secondaryTitleColor;break;case 2:a=a.surgeColor;break;case 3:a=a.section2Color;break;case 4:a=a.section3Color;break;default:return}if(a)return _.Da(a)}};
S8=function(a,z){if(a){switch(z){case 0:a=a.primaryTitleColor;break;case 1:a=a.secondaryTitleColor;break;case 2:a=a.surgeColor;break;case 3:a=a.section2Color;break;case 4:a=a.section3Color;break;default:return}if(a)return _.Da(a)}};
Ctx=function(a){return a?_.RX(a):""};
NSI=function(a){return(a==null?void 0:a.contentType)==="LOCKUP_CONTENT_TYPE_SOURCE"?64:void 0};
tS7=function(a,z){var I;return"linear-gradient(to bottom, "+((I=z==null?void 0:z.map(function(J){var r=a?J.darkThemeColor:J.lightThemeColor;return r?_.RX(r)+" "+((J==null?void 0:J.startLocation)||0)*100+"%":"transparent"}))==null?void 0:I.join(", "))+")"};
ut7=function(a,z,I,J,r){if(!((J==null?0:J.height)&&(J==null?0:J.width)))return{size:0};var P=J.width;J=J.height;if(r)return z==="CONTENT_PREVIEW_IMAGE_STYLE_HORIZONTAL_RECTANGLE_16_BY_9"||z==="CONTENT_PREVIEW_IMAGE_STYLE_CUSTOM_ASPECT_RATIO"&&P>J?{size:312/e$G}:z==="CONTENT_PREVIEW_IMAGE_STYLE_VERTICAL_RECTANGLE_2_BY_3"?{size:160}:{size:312};if(!(I!=="CONTENT_PREVIEW_IMAGE_LAYOUT_MODE_FULL_WIDTH"||a!==1&&a!==2||z!=="CONTENT_PREVIEW_IMAGE_STYLE_SQUARE"&&z!=="CONTENT_PREVIEW_IMAGE_STYLE_CIRCLE"&&z!==
"CONTENT_PREVIEW_IMAGE_STYLE_HORIZONTAL_RECTANGLE_16_BY_9"))return{allowFullWidth:!0};if(z==="CONTENT_PREVIEW_IMAGE_STYLE_SQUARE"||z==="CONTENT_PREVIEW_IMAGE_STYLE_CIRCLE"||J===P)switch(a){case 1:return{size:208};case 2:case 3:return{size:240};default:return{size:360}}if(z==="CONTENT_PREVIEW_IMAGE_STYLE_VERTICAL_RECTANGLE_2_BY_3"||J>P)switch(a){case 1:case 3:return{size:240*q03};default:return{size:360*q03}}switch(a){case 1:case 2:return{size:1/e$G*(window.innerWidth-32)};case 3:return{size:160};
default:return{size:240}}};
_.Ed1=function(a){if(!("matchMedia"in window))return _.RL(Error("Oh")),function(){return!1};
var z=window.matchMedia(a);a=_.C(_.CW(z.matches,void 0,"jLJc8e"));var I=a.next().value,J=a.next().value,r=function(P){J(P.matches)};
z.addEventListener?(z.addEventListener("change",r),_.V3(function(){z.removeEventListener("change",r)})):z.addListener&&(z.addListener(r),_.V3(function(){z.removeListener(r)}));
return I};
BSi=function(a){return a==="IMAGE_BANNER_STYLE_INSET"||a==="IMAGE_BANNER_STYLE_UNKNOWN"};
gdG=function(){if(!("matchMedia"in window))return _.RL(Error("Oh")),function(){return 0};
var a=i1(function(){return window.matchMedia("(max-width: 527.9px)")}),z=i1(function(){return window.matchMedia("(min-width: 528px) and (max-width: 839.9px)")}),I=i1(function(){return window.matchMedia("(min-width: 840px) and (max-width: 1023.9px)")}),J=i1(function(){return window.matchMedia("(min-width: 1024px)")}),r=_.C(_.CW(a.matches,void 0,"og9kEc")),P=r.next().value,N=r.next().value;
r=_.C(_.CW(z.matches,void 0,"ybDWCb"));var u=r.next().value,E=r.next().value;r=_.C(_.CW(I.matches,void 0,"o0Gfh"));var O=r.next().value,f=r.next().value;r=_.C(_.CW(J.matches,void 0,"yqUUgd"));var A=r.next().value,n=r.next().value,F=i1(function(){return function(W){N(W.matches)}}),h=i1(function(){return function(W){E(W.matches)}}),v=i1(function(){return function(W){f(W.matches)}}),d=i1(function(){return function(W){n(W.matches)}});
_.QO(function(){a.addEventListener?(a.addEventListener("change",F),z.addEventListener("change",h),I.addEventListener("change",v),J.addEventListener("change",d)):a.addListener&&(a.addListener(F),z.addListener(h),I.addListener(v),J.addListener(d));_.V3(function(){a.removeEventListener?(a.removeEventListener("change",F),z.removeEventListener("change",h),I.removeEventListener("change",v),J.removeEventListener("change",d)):a.removeListener&&(a.removeListener(F),z.removeListener(h),I.removeListener(v),
J.removeListener(d))})});
return function(){return P()?1:u()?2:O()?3:A()?4:0}};
OaG=function(a){var z=0;a=_.C([a.title,a.metadata,a.actions,a.description,a.attribution]);for(var I=a.next();!I.done;I=a.next())I.value&&z++;return z};
fDm=function(a){return a===1||a===2?1:0};
_.im=function(a){Object.keys(a);var z=function(I,J){var r=z.mapping||a;if(!I)return _.B(_.eJ,null);if(Array.isArray(I)&&(I=Aud(r,z,I),Array.isArray(I))){if(!I.length)return _.B(_.eJ,null);if(I.length>1){for(var P=!1,N=!1,u=[],E={},O=0;O<I.length;E={data$jscomp$2531:void 0},O++)if(E.data$jscomp$2531=I[O],E.data$jscomp$2531){var f=sr7(E.data$jscomp$2531,r),A=f.mappingEntry;f=f.rendererName;A&&f&&(A&&(!XFG(A)&&ndI(A)&&(N=!0),!XFG(A)&&A.asyncId||(P=!0)),u.push(KNG(E.data$jscomp$2531,A,f,z,J)))}return N&&
!P?_.B(_.eJ,null,FNG()):_.B(_.eJ,null,u)}I=I[0]}if(!I)return _.B(_.eJ,null);I=Aud(r,z,[I])[0];if(!I)return _.B(_.eJ,null);P=sr7(I,r);r=P.mappingEntry;P=P.rendererName;return r&&P?_.B(_.eJ,null,KNG(I,r,P,z,J)):_.B(_.eJ,null)};
z.mapping=a;return z};
_.HaG=function(a){var z=void 0,I;for(I in a)if(a.hasOwnProperty(I)){z=I;break}return z};
Aud=function(a,z,I){var J,r=(J=FF().preProcessOptions)==null?void 0:J.idomOptions;if(!r)return I;FF();return r.preProcessPropsIdom(a,I,z.triggerRerender)};
sr7=function(a,z){return(a=_.HaG(a))?{mappingEntry:z[a],rendererName:a}:{mappingEntry:void 0,rendererName:void 0}};
KNG=function(a,z,I,J,r){if(!z)return _.B(_.eJ,null);var P={};r&&r[I]&&(P=Object.assign({},r[I]));a[I]!==void 0&&(P.data=a[I]);if(XFG(z))return z.debugName||(z.debugName=I),_.B(z,P);z.asyncId&&(J.pendingIdsMap=J.pendingIdsMap||{},J.pendingIdsMap[I]=z.asyncId);return z.templateFn?z.templateFn(P):ndI(z)?FNG():_.B(_.eJ,null)};
ndI=function(a){var z;return(z=a.showPlaceholder)!=null?z:FF().defaultShowPlaceholder};
FNG=function(){var a=FF().placeholder;return a()};
hK$=function(a){var z,I=((z=_.ab().resolve(_.eL(_.kN)))==null?0:z())&&a.data.darkThemeImage?a.data.darkThemeImage:a.data.image;z=_.B("div",{class:"ytwSearchFrictionViewModelHostImageAndMenuWrapper"},_.B("div",{class:"ytwSearchFrictionViewModelHostImageContainer"},I?_.B(_.qp,{data:I,alt:"",className:"ytwSearchFrictionViewModelHostImage"}):null),bad(a.data.overflowMenuButton,{buttonViewModel:{className:"ytwSearchFrictionViewModelHostMenuButton"}}));I=_.B(_.xs,{text:a.data.title,className:"ytwSearchFrictionViewModelHostTitle"});
var J=a.data;if(J.bodyText){var r=[];J=_.C(J.bodyText);for(var P=J.next();!P.done;P=J.next())r.push(_.B(_.xs,{text:P.value,className:"ytwSearchFrictionViewModelHostBodyText"}))}else r=_.B(_.eJ,null);return _.B("ytw-search-friction-view-model",{class:"ytwSearchFrictionViewModelHost"},z,I,r,bad(a.data.actions,{buttonViewModel:{className:"ytwSearchFrictionViewModelHostButton"}}),_.B(_.xs,{text:a.data.disclaimer,className:"ytwSearchFrictionViewModelHostDisclaimer"}),_.B(_.xs,{text:a.data.attribution,
className:"ytwSearchFrictionViewModelHostAttribution"}))};
Qr0=function(a){a=(new VS0).parse(a);return(new gF).render(a).replace(/\b(?:\d{1,2}:)?(?:\d{1,2}:)\d{1,2}\b/g,function(z){var I=z.split(":").map(Number),J=0,r=0;if(I.length===3)I=_.C(I),J=I.next().value,r=I.next().value,I=I.next().value;else if(I.length===2)I=_.C(I),r=I.next().value,I=I.next().value;else if(I.length===1)I=_.C(I).next().value;else throw Error("Ph");return'<span class="ytwMarkdownDivTimestamp" data-time="'+(J*3600+r*60+I)+'" role="button">'+z+"</span>"})};
Sod=function(a){a=_.C(a.getElementsByClassName("ytwMarkdownDivTimestamp"));for(var z=a.next(),I={};!z.done;I={clickHandler$jscomp$4:void 0},z=a.next()){z=z.value;I.clickHandler$jscomp$4=function(r){r=Number(r.target.getAttribute("data-time"));if(isNaN(r))throw Error("Qh");var P;(P=_.Bn())==null||P.seekTo(r,!0)};
var J=function(r){return function(P){P.key!=="Enter"&&P.key!=="Space"||(0,r.clickHandler$jscomp$4)(P)}}(I);
z.setAttribute("tabindex","0");z.removeEventListener("click",I.clickHandler$jscomp$4);z.removeEventListener("keydown",J);z.addEventListener("click",I.clickHandler$jscomp$4);z.addEventListener("keydown",J)}};
ia$=function(){return _.B("overview-answer-ghost-card",{class:"ytwOverviewAnswerGhostCardHost"},_.B(v0,{percentWidth:100}),_.B(v0,{animationDelay:200}),_.B(v0,{animationDelay:400}),_.B(v0,{animationDelay:600}),_.B(v0,{animationDelay:800,percentWidth:60}),_.B("div",{class:"ytwOverviewAnswerGhostCardLineBreak"}),_.B(v0,{percentWidth:100}),_.B(v0,{animationDelay:200}),_.B(v0,{animationDelay:400}),_.B(v0,{animationDelay:600,percentWidth:50}))};
v0=function(a){return _.B("div",{class:"ytwOverviewAnswerGhostCardGhostLine",style:"max-width:"+(a.percentWidth===void 0?100:a.percentWidth)+"%"},_.B("div",{class:"ytwOverviewAnswerGhostCardSlider",style:"animation-delay:"+(a.animationDelay===void 0?0:a.animationDelay)+"ms"}))};
x2m=function(){var a=_.C(_.CW(function(){return""},void 0,"v2wS5e")),z=a.next().value;
return[function(){return z()()},
a.next().value]};
vd3=function(a,z){a=a?f_G(a):"";z!==void 0&&isFinite(z)?z===0?z=_.AR("UPDATING",void 0,"Updating..."):(z=Trm(new Date(z),new Date),z=_.AR("UPDATED_TIME",{relative_time:z},"Updated "+z)):z="";var I="";a&&z&&(I=" \u2022 ");return _.zg(a+I+z)};
Xk3=function(a,z,I,J,r,P){z=z===void 0?0:z;var N=Gmx[z],u=N.title,E=N.iconType,O=N.topButtonRenderer,f=N.sectionClientVE;N=N.videoClientVE;var A;if(z!==1||a.length){I=[];a=_.C(a);for(J=a.next();!J.done;J=a.next()){var n=J.value;if(E3G(n))I.push({downloadedVideoGridVideoRenderer:{renderer:{gridVideoRenderer:{videoId:n.videoEntity.videoId,title:IU(n.videoEntity.title),shortBylineText:IU(n.channelEntity.title),thumbnail:n.videoEntity.thumbnail,menu:{menuRenderer:{items:[{menuServiceItemDownloadRenderer:{serviceEndpoint:{offlineVideoEndpoint:{videoId:n.videoEntity.videoId}}}}],
accessibility:{accessibilityData:{label:_.AR("VIDEO_ACTION_MENU",void 0,"Action menu")}}}},loggingDirectives:{clientVeSpec:{uiType:N}}}}}});else if(uop(n)){J=I;var F=J.push;var h=void 0,v=void 0,d=void 0,W=void 0,l=void 0,q=void 0,m=void 0,M=void 0,y=n.mainPlaylistEntity.playlistId,e=n==null?void 0:(M=n.mainPlaylistEntity)==null?void 0:(m=M.thumbnailStyleData)==null?void 0:(q=m[0])==null?void 0:(l=q.value)==null?void 0:(W=l.collageThumbnail)==null?void 0:W.coverThumbnail;W=pYp(y);if(!_.K("enable_offline_playlist_page")&&
(n==null?0:(d=n.mainPlaylistEntity)==null?0:d.videos)){b:{d=n==null?void 0:(v=n.mainPlaylistEntity)==null?void 0:v.videos;v=_.qo().getState().entities;if(d!=null&&d.length&&v)for(d=_.C(d),l=d.next();!l.done;l=d.next())if(l=_.ZY(l.value).entityId,(l=JSON.parse(l).videoId)&&j7x(v,l)==="TRANSFER_STATE_COMPLETE"){v=l;break b}v=""}v!==void 0&&(W=RU(_.qo().getState(),v),W=_.jx(v,y,void 0,void 0,W))}v=mbI(_.AR("VIEW_FULL_PLAYLIST",void 0,"View full playlist"),pYp(y));n=y&&e&&v?{playlistId:y,navigationEndpoint:W,
viewPlaylistText:v,thumbnailRenderer:{playlistVideoThumbnailRenderer:{thumbnail:e}},title:IU(n.mainPlaylistEntity.title),shortBylineText:IU(n==null?void 0:(h=n.channelEntity)==null?void 0:h.title),menu:{menuRenderer:{items:[{menuServiceItemRenderer:{text:$21,icon:{iconType:"DELETE"},serviceEndpoint:{offlinePlaylistEndpoint:{playlistId:y,action:"ACTION_REMOVE_WITH_PROMPT"}}}}],accessibility:{accessibilityData:{label:_.AR("VIDEO_ACTION_MENU",void 0,"Action menu")}}}},loggingDirectives:{clientVeSpec:{uiType:N}}}:
void 0;F.call(J,{gridPlaylistRenderer:n})}}N={gridRenderer:{items:I}};z===1&&(A=vd3(r,P))}else if(J){var Bp=_.zg((F=I==null?void 0:I.localizedPromptMessage)!=null?F:"");N={horizontalListRenderer:{items:[{toggleButtonRenderer:{style:{styleType:"STYLE_PRIMARY"},size:{sizeType:"SIZE_DEFAULT"},defaultText:_.zg(_.AR("UPDATE_SMART_DOWNLOADS_NOW",void 0,"Update now")),isDisabled:!1,defaultServiceEndpoint:{offlineOrchestrationActionCommand:{actions:[{actionType:"OFFLINE_ORCHESTRATION_ACTION_TYPE_REFRESH",
entityKey:_.x_E}]}},loggingDirectives:{clientVeSpec:{uiType:129730}}}},{toggleButtonRenderer:{style:{styleType:"STYLE_BLUE_TEXT"},size:{sizeType:"SIZE_DEFAULT"},defaultText:_.zg(_.AR("TURN_OFF",void 0,"Turn off")),isDisabled:!1,defaultServiceEndpoint:{updateLocalAppSettingCommand:{settingItemId:"SMART_DOWNLOADS_ENABLED",boolValue:!1}},loggingDirectives:{clientVeSpec:{uiType:129731}}}}],loggingDirectives:{clientVeSpec:{uiType:129729}}}};A=vd3(r,P)}else Bp=_.zg(_.AR("WAITING_TO_DOWNLOAD",void 0,"Waiting to download...")),
N={};return{contents:[{shelfRenderer:{title:u,titleAnnotation:A,icon:{iconType:E},subtitle:Bp,content:N,menu:{menuRenderer:{topLevelButtons:[{buttonRenderer:O}]}}}}],loggingDirectives:{clientVeSpec:{uiType:f}}}};
TSm=function(a,z,I,J,r,P,N,u,E,O,f){I=I===void 0?{}:I;J=J===void 0?{}:J;r=r===void 0?!1:r;P=P===void 0?!1:P;N=N===void 0?!1:N;u=u===void 0?!1:u;E=E===void 0?!1:E;O=O===void 0?0:O;f=f===void 0?-Infinity:f;if(!(z.length||a.length||r||u))return P?[{itemSectionRenderer:{contents:[{backgroundPromoRenderer:I_m(I)}]}}]:[{itemSectionRenderer:{contents:[{backgroundPromoRenderer:{title:_.zg(_.AR("DO_NOT_HAVE_DOWNLOADS",void 0,"You do not have any downloads")),icon:{iconType:"OFFLINE_NO_CONTENT"},style:{value:"BACKGROUND_PROMO_STYLE_TYPE_FULL_HEIGHT"},
loggingDirectives:{clientVeSpec:{uiType:21411}}}}]}}];var A=[];a.length&&A.push(Xk3(a,0));u?A.push({contents:[{statementBannerRenderer:CZ0(E,J)}]}):r?A.push(Xk3(z,1,I,N,O,f)):P&&A.push({contents:[{statementBannerRenderer:rkx(I)}]});(r&&z.length||a.length)&&A.push({contents:[{messageRenderer:{subtext:{messageSubtextRenderer:{text:_.zg(_.AR("DOWNLOADS_AVAILABILITY",void 0,"Downloads remain available as long as your device has an active internet connection for 30 days. This process happens automatically and does not re-download the video."))}}}}]});
return A.map(function(n){return{itemSectionRenderer:n}})};
G0=function(a,z){if(typeof a!=="object")return null;a=_.C(Object.entries(a));for(var I=a.next();!I.done;I=a.next()){var J=_.C(I.value);I=J.next().value;J=J.next().value;if(I===z)return I;if(J=G0(J,z))return I+"."+J}return null};
$s=function(a){var z=a.content;return(a=a.styleRuns)&&z?{runs:a.map(function(I){var J={text:z.slice(I.startIndex,I.startIndex+I.length)};I.fontColor&&(J.textColor=I.fontColor);return J})}:{simpleText:z}};
odp=function(a,z,I,J){var r=d20;J&&(a.quantity=J);if(!a.quantity||!a.maxQuantity)return{};J=a.minusButton;var P=a.plusButton,N,u,E,O;return{value:a.quantity,maxValue:a.maxQuantity,onChangeCallback:function(f){r(a,f)},
minusLabel:(N=_.H(J,WNM))==null?void 0:N.label,minimumReachedLabel:(u=_.H(J,WNM))==null?void 0:u.limitReachedLabel,plusLabel:(E=_.H(P,WNM))==null?void 0:E.label,maximumReachedLabel:(O=_.H(P,WNM))==null?void 0:O.limitReachedLabel,disabled:z,onRemoveCommand:I}};
d20=function(a,z){var I=a.quantityIncrementerEntityKey;if(I){var J={};J.quantity=z;_.cK(_.XK("quantityIncrementerEntity",I,J));a.onChangeCommand&&_.lN(a.onChangeCommand)}};
RKm=function(a,z){(a=U2O(a))&&((_.K("enable_mini_app_command_handler_mweb_fix")?0:z)?D2p.push({command:a,sourceData:{},commandContext:void 0}):_.ab().resolve(_.j6).resolveCommand(a))};
U2O=function(a){return _.H(a,_.Wl)};
LNE=function(){var a=window.performance.timeOrigin+window.performance.now(),z=(new _.T0).setSeconds(a/1E9);return _.M0(z,2,_.qE(a%1E9),0)};
pk0=function(a,z){var I;a=(I=_.H(_.H(a,_.Wl),lDG))==null?void 0:I.methodName;var J,r;(I=window.youtubewebview||((J=window.webkit)==null?void 0:(r=J.messageHandlers)==null?void 0:r.youtubewebview))&&a&&(J=new ds,a=_.KB(J,1,a),a=_.he(a.JSC$12288_serializeBinary()),z=_.he(z),I.postMessage(a+","+z))};
W0=function(a,z){var I=_.H(_.H(a,_.Wl),lDG);I&&(z&&(I.serializedAdditionalMetadata=_.he(z)),RKm(a,!0))};
wkG=function(a){switch(a){case 2:return"MINI_APP_AD_TRIGGER_TYPE_WITHIN";case 3:return"MINI_APP_AD_TRIGGER_TYPE_REWARD";case 1:return"MINI_APP_AD_TRIGGER_TYPE_BEFORE";default:return"MINI_APP_AD_TRIGGER_TYPE_UNSPECIFIED"}};
m2O=function(){return!!_.Xw("ID_TOKEN")};
MSI=function(a){return a instanceof Error&&a.cause instanceof yu1&&a.cause.rpcErrorCode!==void 0?!kmx.includes(a.cause.rpcErrorCode):!0};
YoE=function(){return _.yO(cuG,{authuser:""+(_.Xw("SESSION_INDEX")||0)})};
od=function(a,z,I,J){I=I===void 0?"MINI_APP_SDK_API_UNSPECIFIED":I;J=J===void 0?"":J;var r=new _.Fn;I={source:"MINI_APP_ERROR_SOURCE_PLAYABLE_CONTAINER",sdkVersion:J,sdkApi:I};a instanceof Error&&(r.message=a.message,r.name=a.name,a.cause instanceof yu1&&a.cause.rpcErrorCode!==void 0&&(I.rpcErrorCode=a.cause.rpcErrorCode));var P;(P=z.onError)==null||P.call(z,{loggingError:r,metadata:I})};
eKI=function(a,z,I,J){switch(a){case "MINI_APP_SOURCE_GAMESNACKS":return new U1(z,I,J);default:return new qo7(z,I,J)}};
a9$=function(a){switch(a){case 1:return"MINI_APP_ERROR_SOURCE_CONSOLE";case 2:return"MINI_APP_ERROR_SOURCE_UNCAUGHT";case 3:return"MINI_APP_ERROR_SOURCE_SDK";case 4:return"MINI_APP_ERROR_SOURCE_SDK_INTERNAL";case 5:return"MINI_APP_ERROR_SOURCE_SDK_SERVER";default:return"MINI_APP_ERROR_SOURCE_UNSPECIFIED"}};
jud=function(a){switch(a){case 1:return"MINI_APP_SDK_ERROR_TYPE_API_UNAVAILABLE";case 2:return"MINI_APP_SDK_ERROR_TYPE_INVALID_PARAMS";case 3:return"MINI_APP_SDK_ERROR_TYPE_SIZE_LIMIT_EXCEEDED";default:return"MINI_APP_SDK_ERROR_TYPE_UNSPECIFIED"}};
z87=function(a){switch(a){case 1:return"MINI_APP_SDK_API_FIRST_FRAME_READY";case 9:return"MINI_APP_SDK_API_GAME_READY";case 2:return"MINI_APP_SDK_API_LOAD_DATA";case 3:return"MINI_APP_SDK_API_SAVE_DATA";case 4:return"MINI_APP_SDK_API_SEND_SCORE";case 5:return"MINI_APP_SDK_API_ON_AUDIO_ENABLED_CHANGE";case 6:return"MINI_APP_SDK_API_ON_PAUSE";case 7:return"MINI_APP_SDK_API_ON_RESUME";case 8:return"MINI_APP_SDK_API_GET_LANGUAGE";case 10:return"MINI_APP_SDK_API_IS_AUDIO_ENABLED";case 12:return"MINI_APP_SDK_API_SHARE_INVITE_CODE";
case 13:return"MINI_APP_SDK_API_ON_GAME_DATA_AVAILABLE";default:return"MINI_APP_SDK_API_UNSPECIFIED"}};
I97=function(){return Math.floor(Math.random()*4)+1};
Jgm=function(a,z,I,J){a=_.C(Object.entries(a));for(var r=a.next(),P={};!r.done;P={message$jscomp$990:void 0},r=a.next()){var N=_.C(r.value);r=N.next().value;N=N.next().value;P.message$jscomp$990=N;z.push(setTimeout(function(u){return function(){J(!1);I(u.message$jscomp$990.text)}}(P),P.message$jscomp$990.delayMs));
Number(r)>0&&z.push(setTimeout(function(){J(!0)},P.message$jscomp$990.delayMs-400))}};
rgM=function(a,z){var I=I===void 0?k6m:I;_.K("mweb_fix_monitor_visibility_after_render")?a&&vl(function(){Yqx(a,z,I)}):vl(function(){Yqx(a,z,I)})};
Z2m=function(a){var z=a.data;var I=a.uniqueId;a=a.overrides;var J,r=((J=z.timedAnimationData)==null?void 0:J.animationTiming)||[];return _.B("timed-animation-button-renderer",{class:"ytwTimedAnimationButtonRendererHost"},_.B(Dk,{settings:{uniqueId:I,timings:r,experimentEnabled:r.length>0,enabled:r.length>0}},PyE(z.buttonRenderer,{buttonRenderer:{buttonOverrides:a}})))};
ujG=function(a){Cyp||(Cyp=NNm(new _.l8(1,void 0,void 0,tVI),0));var z=Cyp.format(Math.floor(a));z=_.L5==="be"||_.L5==="bg"||_.L5==="es"||_.L5==="et"||_.L5==="hu"||_.L5==="ka"||_.L5==="lv"||_.L5==="pl"||_.L5==="pt-PT"||_.L5==="sq"?z.replace(new RegExp("^(\\d)"+tVI.GROUP_SEP.replace(".","\\.")+"(\\d+("+tVI.DECIMAL_SEP.replace(".","\\.")+"\\d+)?\\D*)$"),"$1$2"):z;return a>=1E3&&a<=9999&&z[1]==="."&&(_.L5==="sl"||_.L5==="it")?z.replace(".",""):z};
Ez1=function(a,z){g6M("ytd-button-renderer",{data:a,className:z?z.className:"",overrides:z==null?void 0:z.buttonOverrides},ScG)};
O2G=function(a,z,I,J){if(a)return J=J||a.likeStatus,z?{style:{styleType:"STYLE_TEXT"},toggledStyle:{styleType:"STYLE_DEFAULT_ACTIVE"},isToggled:J==="LIKE",isDisabled:!a.likesAllowed,defaultIcon:{iconType:I},defaultText:J==="LIKE"?a.likeCountWithUnlikeText:a.likeCountText,toggledText:J==="LIKE"?a.likeCountText:a.likeCountWithLikeText,defaultNavigationEndpoint:BN3(a,"LIKE"),defaultServiceEndpoint:gzI(a,"LIKE"),toggledServiceEndpoint:gzI(a,"INDIFFERENT"),defaultTooltip:_.cd(a.likeCountTooltipText),toggledTooltip:_.cd(a.likeCountTooltipText),
targetId:a.targetId}:{style:{styleType:"STYLE_TEXT"},toggledStyle:{styleType:"STYLE_DEFAULT_ACTIVE"},isToggled:J==="DISLIKE",isDisabled:!a.likesAllowed,defaultIcon:{iconType:I},defaultText:J==="DISLIKE"?a.dislikeCountWithUndislikeText:a.dislikeCountText,toggledText:J==="DISLIKE"?a.dislikeCountText:a.dislikeCountWithDislikeText,defaultNavigationEndpoint:BN3(a,"DISLIKE"),defaultServiceEndpoint:gzI(a,"DISLIKE"),toggledServiceEndpoint:gzI(a,"INDIFFERENT"),defaultTooltip:_.cd(a.dislikeCountTooltipText),
toggledTooltip:_.cd(a.dislikeCountTooltipText)}};
BN3=function(a,z){if(z==="LIKE")return a.likeCommand;if(z==="DISLIKE")return a.dislikeNavigationEndpoint};
gzI=function(a,z){var I;return(I=a.serviceEndpoints)==null?void 0:I.find(function(J){var r;return((r=_.H(J,_.Rd))==null?void 0:r.status)===z})};
_.suE=function(a,z,I){return window.spf&&!_.K("web_disable_spfjs_client")?f91(a,z,I):AgE(a,z)};
f91=function(a,z,I){var J=null,r=(new _.Ba(function(P,N){var u={};if(z){u.method=z.method;var E=z.postParams||{};wAO(a,z)&&(E[_.Xw("XSRF_FIELD_NAME")]=_.Xw("XSRF_TOKEN"));u.postData=_.By(E);z.type&&(u.type=z.type);E=z.headers}u.headers=U$M(a,E);_.K("debug_forward_web_query_parameters")&&(a=_.lFx(a,window.location.search));u.experimental_headers=u.headers;u.onError=function(O){O.err&&O.xhr&&(O.err.params={url:O.xhr.responseURL,response:O.xhr.responseText.substr(0,64)});N(O.err)};
u.onPartDone=function(O){I&&I.call(null,O.part)};
u.onDone=function(O){var f=nz3(O.response,"xsrf_token");c3(window.location.href,a)&&f&&_.$S("XSRF_TOKEN",f);if(f=nz3(O.response,"service_worker_killswitch"))_.$S("SERVICE_WORKER_KILLSWITCH",f),SjM();P(O.response)};
J=spf.request(a,u)})).then(KWM);
r.thenCatch(function(P){var N=P instanceof _.Lc,u=P&&P.hasOwnProperty("params")&&P.params.response?P.params.response:"";P instanceof Error&&(u?N?SNG(P):u===')]}\'\n{"reload":"now"}'?SNG(P):(FWp(P,a,u),H2$(P,u)?_.Xd(P):_.Gx(P)):SNG(P));J&&J.abort()});
return r};
KWM=function(a){if(a.type==="multipart"){var z=a.timing;a=a.parts.reduce(function(I,J){Object.assign(I,J);return I},{});
a.timing=a.timing||{};Object.assign(a.timing,z);a.type="reduced"}return a};
AgE=function(a,z){z=z===void 0?{}:z;var I=null,J=new _.Ba(function(r,P){z.onFinish=function(N){if(N.readyState===XMLHttpRequest.DONE)if(N.status===200){if(N.responseType!=="json"){var u=N.response;u.substring(0,5)===")]}'\n"&&(u=u.substring(5));try{var E=JSON.parse(u)}catch(O){E=O}}else E=N.response;E instanceof Error?P(E):(u=nz3(E,"xsrf_token"),c3(window.location.href,a)&&u&&_.$S("XSRF_TOKEN",u),N=N.responseURL,window.performance&&window.performance.getEntriesByName?(u=window.performance.getEntriesByName(N).pop())?
N={responseStart:(0,_.jp)()-(u.responseEnd-u.responseStart)}:(Math.random()<.01&&(u=Error("bi"),u.params=N,_.Xd(u)),N={responseStart:-1}):N={responseStart:0},E.timing=E.timing||{},Object.assign(E.timing,N),r(E))}else P(Error("ai`"+N.status))};
(I=_.Ez(a,z))||P(Error("ai`"+I.status))});
J.thenCatch(function(r){r instanceof Error&&(FWp(r,a),H2$(r)&&(r.level="WARNING"))});
_.K("cancel_pending_navs")&&J.thenCatch(function(){I.abort()});
return J};
nz3=function(a,z){var I=a[z],J=a.parts;a.type==="multipart"&&J&&(I=(a=J.find(function(r){return z in r}))&&a[z]);
return I};
FWp=function(a,z,I){var J=a.message||"";z={original:J,url:z};if(I)if(J=J.match(/position:?\s*(\d+)/)){J=J&&Number(J[1])?Number(J[1]):0;var r=Math.max(J-25,0);z.position=J;z.response=I.substring(r,J+25)}else z.response=I.substring(0,50);_.Tx(a,z);try{a.message="JSON parse error"}catch(P){}};
H2$=function(a,z){a=a.message||"";a=!!(a.indexOf("<")>=0||a.indexOf("end of ")>=0||a.indexOf("Unterminated string")>=0||a.indexOf("Unexpected EOF"));if(!a&&z)for(var I=z.length,J=!1,r=0;r<I;r++)if(J&&z[r]==="\\")r++;else if(z[r]==='"')J=!J;else if(z[r]==="<"&&!J){a=!0;break}return a};
b21=function(){return document.documentElement.hasAttribute("dark")};
_.h8I=function(a,z){if(a!=="GFEEDBACK"&&a!=="GUIDED_HELP")_.oL(Error("ci`"+a));else{var I=_.ab().resolve(_.eL(_.aK));if(I&&(I=I.getCurrentPage())&&I.getServiceTrackingParams&&(I=I.getServiceTrackingParams()))for(var J=0,r;r=I[J++];)if(r.service===a){if(a=r.params)for(I=0;J=a[I++];)z[J.key]=J.value;break}}};
_.VV0=function(a){var z=_.zI();z&&(z=z.getPlayer())&&(z.pauseVideo(),a.playback_id=z.getVideoData().cpn,a.eid=z.getVideoData().eventId,Object.assign(a,z.getFeedbackProductData()))};
Qux=function(){var a={abuseLink:"https://support.google.com/youtube/bin/answer.py?answer=140536",customZIndex:"2000000005",allowNonLoggedInFeedback:!0};_.Xw("GOOGLE_FEEDBACK_FORCE_ANONYMOUS")&&(a.enableAnonymousFeedback=!0);_.Xw("SESSION_INDEX")&&(a.authuser=String(_.Xw("SESSION_INDEX")));_.K("enable_pageid_for_feedback")&&_.Xw("DELEGATED_SESSION_ID")&&(a.pageId=String(_.Xw("DELEGATED_SESSION_ID")));return a};
_.lm=function(a){_.K("enable_ypc_spinners")&&_.ZF(a,"yt-open-popup-action",[{openPopupAction:{popupType:"FULLSCREEN_OVERLAY",properties:{noCancelOnOutsideClick:!0,noAutoFocus:!0},popup:{loadingRenderer:{hack:!0}}}},a])};
_.pc=function(a){_.K("enable_ypc_spinners")&&_.ZF(a,"yt-close-popup-action",["yt-loading-renderer"])};
Sbi=function(a){return new Promise(function(z,I){_.DA({verifyCommand:{recaptchaToken:a.recaptchaResponse}},{commandController:{onSuccess:function(J,r){r||I("ChallengeService did not return a response.");var P;z({challengeCompleted:(P=r.verified)!=null?P:!1})},
onServerError:function(J,r){I(r)}}})})};
i20=function(a,z,I,J){z({recaptchaResponse:J}).then(function(r){r.challengeCompleted?_.sz()?(I(3),_.ab().resolve(_.j6).resolveCommand({signalAction:{signal:"RELOAD_PAGE"}},{form:{element:a}})):I(2):I(4)},function(){I(4)})};
vzG=function(a,z,I){_.LL(_.Jz(xq1,_.Xw("HL")),function(){var J;(J=window.grecaptcha)==null||J.ready(function(){var r=window.grecaptcha;r?(I(r.render(a,{sitekey:"6Lf39AMTAAAAALPbLZdcrWDa8Ygmgk_fmGmrlRog",callback:i20.bind(null,a,Sbi,z)})),z(1)):z(4)})})};
GE7=function(a,z){return function(){switch(z()){case 0:return a().captchaLoadingMessage;case 1:return a().challengeReason;case 3:return a().captchaSuccessfulMessage;case 2:return a().captchaCookieSetFailureMessage;case 4:return a().captchaFailedMessage;default:return a().challengeReason}}()};
_.ws=function(){if(!$qM){var a=document.querySelector("#player.skeleton");a&&(_.fo(a),$qM=!0)}};
_.TNE=function(){return XtM=SFi()};
ozI=function(){return _.t(function(a){return dqG!==void 0?a.return():a.yield(WW$(),0)})};
WW$=function(){return _.t(function(a){if(a.nextAddress==1)return a.yield(x5$(),2);XtM=a.yieldResult;dqG=_.GW.addLowPriorityJob(WW$,5E3);_.nu(a)})};
pt7=function(a){var z=z===void 0?Uq1:z;var I,J,r=(I=a.responseContext)==null?void 0:(J=I.mainAppWebResponseContext)==null?void 0:J.trackingParam;if(!r){z.increment("MISSING");var P,N,u,E,O,f;_.Xd(new _.Fn("282054944_a",{uKo:!!((P=a.responseContext)==null?0:(N=P.mainAppWebResponseContext)==null?0:N.loggedOut),azL:((u=a.responseContext)==null?void 0:u.mainAppWebResponseContext)===void 0,uSp:a.responseContext===void 0,cp:(E=a.playabilityStatus)==null?void 0:E.contextParams,yaW:(((O=a.streamingData)==
null?void 0:O.formats)||[]).length>0,sq5:(((f=a.streamingData)==null?void 0:f.adaptiveFormats)||[]).length>0,os:!!a.offlineState,cotn:a.cotn}));return 2}I="";try{I=DqE(r)}catch(F){return z.increment("C_ERROR"),_.Gx(F),2}try{var A=_.R8E(I);var n=LW7(A)}catch(F){return z.increment("P_ERROR"),_.Gx(F),2}n=_.af(n,l9O,1,_.jW());r=[];n=_.C(n);for(A=n.next();!A.done;A=n.next())J=A.value,A=J.getPath(),I=(0,_.x8.getValueByKeys)(a,A.split(".")),I=String(I===void 0||I===null?"":I),J=J.getValue()||"",P=/[+\-\/_]/g,
I.replace(P,"")!==J.replace(P,"")&&(z.increment("MISMATCH"),_.K("ab_mis_log_err")&&(I=new _.Fn("282054944_p",{mUA:A,g:String(I),e:String(J)}),_.Gx(I)),["auxiliaryUi.messageRenderers.enforcementMessageViewModel.displayType"].includes(A)||(A.match(/enforcementMessageViewModel/i)?r.push(3):r.push(2)));if(r.length>0)return Math.max.apply(Math,_.ih(r));z.increment("SUCCESS");return 1};
ygm=function(a){var z=new my;if(a.interpreterJavascript){var I=_.KZm(a.interpreterJavascript);I=ryE(I).toString();var J=new wt3;_.KB(J,6,I);_.gO(z,1,J,xG)}else a.interpreterUrl&&(I=_.$k(a.interpreterUrl),I=_.bj(I).toString(),J=new _.mq7,_.KB(J,4,I),_.gO(z,2,J,xG));a.interpreterHash&&_.yr(z,3,a.interpreterHash,xG);a.program&&_.yr(z,4,a.program,xG);a.globalName&&_.yr(z,5,a.globalName,xG);a.clientExperimentsStateBlob&&_.yr(z,7,a.clientExperimentsStateBlob,xG);return z};
ks=function(a){var z={};a=_.C(a.split("&"));for(var I=a.next();!I.done;I=a.next())I=I.value.split("="),I.length===2&&(z[I[0]]=I[1]);return z};
kE1=function(a){return Number(a.t)||7200};
Sei=function(){if(_.K("bg_st_hr"))return"havuokmhhs-0";var a,z=((a=performance)==null?void 0:a.timeOrigin)||0;return"havuokmhhs-"+Math.floor(z)};
MV0=function(){return new Promise(function(a){var z=window;z.ntpevasrs!==void 0?a(new MA(z.ntpevasrs)):(z.ntpqfbel===void 0&&(z.ntpqfbel=[]),z.ntpqfbel.push(function(I){a(new MA(I))}))})};
cg0=function(a){var z=a.jEg.bind(a);_.qe("yt.aba.att",z);a=a.eEz.bind(a);_.qe("yt.aba.att2",a)};
qbE=function(a){switch(_.ul(a.input)){case _.ex(Yb7):var z={};return z.encryptedVideoId=a.innerTubeRequest.externalVideoId,z}return{}};
jVi=function(a){switch(_.ul(a.input)){case _.ex(Yb7):if(_.K("web_generate_att_data_for_get_transcript_request"))return"ENGAGEMENT_TYPE_VIDEO_TRANSCRIPT_REQUEST";break;case _.ex(e8m):if(_.K("enable_att_for_share_on_web_client"))return"ENGAGEMENT_TYPE_SHARE";break;case _.ex(c0):if(_.K("PremiumClientSharedConfig__enable_att_for_get_premium_on_web_client")&&a.innerTubeRequest.browseId==="SPunlimited")return"ENGAGEMENT_TYPE_YPC_GET_PREMIUM_PAGE";break;case _.ex(arG):var z,I;if(_.K("PremiumClientSharedConfig__enable_att_for_get_download_action_on_web_client")&&
((I=_.H((z=a.config)==null?void 0:z.command,T9m))==null?0:I.requiresAttestationResponse))return"ENGAGEMENT_TYPE_YPC_GET_DOWNLOAD_ACTION"}return null};
_.Ir3=function(a){var z;if(a.playlistVideoRenderer&&((z=a.playlistVideoRenderer)==null?0:z.engagementBar))return zb$(a.playlistVideoRenderer.engagementBar);if(_.H(a,Ys)){var I;if(a=(I=_.H(a,Ys))==null?void 0:I.engagementBar)return zb$(a)}return""};
zb$=function(a){if(!a)return"";a=_.H(a,_.JZ$);if(a==null||!a.actions)return"";a=_.C(a.actions);for(a=a.next();!a.done;a=a.next()){a=_.H(a.value,_.rZ0);var z=void 0;if((z=a)==null||!z.itemId)break;return a.itemId}return""};
_.P6d=function(a){var z;if(a.playlistVideoRenderer&&((z=a.playlistVideoRenderer)==null?0:z.videoId))return a.playlistVideoRenderer.videoId;if(_.H(a,Ys)){var I,J;if(a=(I=_.H(a,Ys))==null?void 0:(J=I.playlistItemData)==null?void 0:J.videoId)return a}return""};
_.Zs$=function(a){var z;if(a.playlistVideoRenderer&&((z=a.playlistVideoRenderer)==null?0:z.voteCount))return a.playlistVideoRenderer.voteCount;if(_.H(a,Ys)){var I,J;if(a=(I=_.H(a,Ys))==null?void 0:(J=I.playlistItemData)==null?void 0:J.voteCount)return a}return 0};
_.qA=function(a,z){return _.Bd(a.entities,"flowStateEntity",z)};
N5E=function(a,z,I,J){var r=void 0;a=_.C(a[z.iconName]||[]);for(var P=a.next();!P.done;P=a.next()){P=P.value;var N=z.iconSize;var u=z.iconStyle;N=!N||N===P[2];var E=C6M[P[0]];J&&J!==P[1]||!N||u&&u!==E?u=!1:r?(u=C6M[P[0]],u=!!z.iconStyle||u==="youtube_outline",N=r.version<=P[1],u=(!!z.iconSize||P[2]===24)&&u&&N):u=!0;u&&(r={name:z.iconName,style:C6M[P[0]],size:P[2],version:P[1],allowMirroring:!!P[3],url:I(z.iconName,P)})}return r};
tsI=function(a,z,I,J){return a+(""+C6M[I[0]]+((J===void 0?0:J)?"_experimental":"")+"/"+z+"/v"+I[1]+"/")+(I[2]+"px.svg")};
u_G=function(a){return _.Xw("INNERTUBE_CLIENT_NAME")!=="WEB_REMIX"?"bookmark":a};
Ey7=function(a,z){return tsI("https://fonts.gstatic.com/s/i/",a,z)};
B5d=function(a,z){return tsI("https://fonts.gstatic.com/s/i/",a,z,!0)};
gyi=function(a,z){return tsI("https://www.gstatic.com/youtube/img/icons/web/",a,z)};
frE=function(a){var z=a.enabled;var I=a.itemPlaybackModel;var J=a.thumbnailElRef;var r=a.containerElRef;var P=a.options;var N;_.h2(function(){var u=r==null?void 0:r.value;var E,O=(E=J())==null?void 0:E.value;E=I();var f=P();if(z&&E&&u&&O&&(f==null?0:f.thumbnail)){var A={data:E,hostElement:u},n,F,h=_.K("web_explore_hub_on_hover")||_.K("web_client_explore_hub_on_hover")?[].concat(_.ih((n=f.thumbnailOverlays)!=null?n:[]),_.ih((F=E.overlays)!=null?F:[])):f.thumbnailOverlays||[],v,d;u={mediaRenderer:A,
lockupElement:u,thumbnailElement:O,videoPreviewOpts:{videoPreviewData:{inlinePlaybackEndpoint:_.o0((v=E.inlinePlayerData)==null?void 0:v.onVisible),navigationEndpoint:_.o0((d=E.inlinePlayerData)==null?void 0:d.onSelect),thumbnail:f.thumbnail,thumbnailOverlays:h,accessibilityText:f.accessibilityText||""},thumbnailSize:f.thumbnailSize,enableRounding:f.enableRounding}}}else u=void 0;if(v=u){var W;(W=N)==null||e8(W);N=LU(v);var l,q;((l=I())==null?0:(q=l.inlinePlayerData)==null?0:q.forceImpAutoplay)&&
Os1(N)}},"B33dEc");
_.V3(function(){var u;(u=N)==null||e8(u)})};
AZp=function(a){a=atob(a);for(var z=[],I=0;I<a.length;I++)z.push(a.charCodeAt(I));return new Blob([new Uint8Array(z)],{type:"image/png"})};
nym=function(a,z,I,J){J=J===void 0?"INSERTION_POSITION_UNSPECIFIED":J;return a({targetId:z},function(r){var P,N=(P=r.contents)!=null?P:[];P=I!=null?I:[];var u=sVp(N);switch(J){case "INSERTION_POSITION_UNSPECIFIED":return Object.assign({},r,{contents:[].concat(_.ih(N.slice(0,u)),_.ih(P),_.ih(N.slice(u+1)))});case "INSERTION_POSITION_FIRST":return Object.assign({},r,{contents:[].concat(_.ih(P),_.ih(N))});case "INSERTION_POSITION_LAST":return Object.assign({},r,{contents:[].concat(_.ih(N),_.ih(P))});
default:return r}})};
FEp=function(a,z,I,J,r){r=r===void 0?"RELATIVE_INSERTION_POSITION_AFTER":r;return a({targetId:z},function(P){var N,u=(N=P.contents)!=null?N:[];N=KE0(u,I);if(N<0)return P;N=r==="RELATIVE_INSERTION_POSITION_BEFORE"?N:N+1;return Object.assign({},P,{contents:[].concat(_.ih(u.slice(0,N)),_.ih(J),_.ih(u.slice(N)))})})};
sVp=function(a){var z=a.findIndex(function(I){return _.H(I,_.av)});
return z>=0?z:a.length};
KE0=function(a,z){return a.findIndex(function(I){a:{I=_.C(Object.values(I));for(var J=I.next();!J.done;J=I.next())if((J=J.value)&&J.targetId){I=J.targetId;break a}I=""}return I===z})};
bsG=function(a,z,I){return a({targetId:z},function(J){var r,P=(r=J.contents)!=null?r:[];return Object.assign({},J,{contents:Hs0(P,I)})})};
Hs0=function(a,z){return a.filter(function(I){var J=z.includes;a:{I=_.C(Object.values(I));for(var r=I.next();!r.done;r=I.next())if((r=r.value)&&r.targetId){I=r.targetId;break a}I=""}return!J.call(z,I||"")})};
_.hbx=function(a,z){return{engagementPanelSectionListRenderer:{panelIdentifier:a,identifier:z,visibility:"ENGAGEMENT_PANEL_VISIBILITY_EXPANDED",content:{contentLoadingRenderer:{useSpinner:!0}}}}};
VsE=function(a,z){a=a.getAvailableAudioTracks();if(a.length)return a==null?void 0:a.find(function(I){var J;return(I==null?void 0:(J=I.getLanguageInfo())==null?void 0:J.getId())===z})};
_.Si0=function(a){var z,I=(z=a.getOption("captions","tracklist",{includeAsr:!0}))!=null?z:[];return I=QV0(I,a)};
isp=function(a){return a.getOption("captions","translationLanguages",{includeAsr:!0})||[]};
QV0=function(a,z){z=isp(z);if(z==null||!z.length)return a;var I=z.filter(function(N){return N});
z=a.filter(function(N){return N.languageCode.startsWith("en")});
I=_.C(I);for(var J=I.next();!J.done;J=I.next())if(J=J.value,z.length){var r=z[0],P=Object.assign({},r);r.languageCode!==J.languageCode&&(P.displayName=r.languageName+" >> "+J.languageName,P.translationLanguage=J,a.push(P))}return a};
x6m=function(a,z,I){a=_.Si0(a);if(a.length)return I?a.find(function(J){if(typeof(J==null?void 0:J.translationLanguage)==="object"){var r;return((r=J.translationLanguage)==null?void 0:r.languageCode)===z}return!1}):a==null?void 0:a.find(function(J){return J.languageCode===z})};
vyI=function(a){return a.getOption("captions","tracklist",{includeAsr:!0})};
GiI=function(a){var z=a.getAvailableAudioTracks();if(z!=null&&z.length){var I=a.getAudioTrack();return{showSheetCommand:{panelLoadingStrategy:{inlineContent:{sheetViewModel:{content:{listViewModel:{listItems:[].concat(_.ih(z.map(function(J){return{listItemViewModel:{title:{content:J.getLanguageInfo().getName()},isSelected:J.getLanguageInfo().getId()===(I==null?void 0:I.getLanguageInfo().getId()),selectionStyle:"LIST_ITEM_SELECTION_STYLE_DEFAULT",rendererContext:{commandContext:{onTap:{innertubeCommand:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",
actions:[{audioTrackSelectActionCommand:{languageCode:J.getLanguageInfo().getId()}}]}}}}}}}}))),
visibleElementCount:5}}}}}}}}};
$60=function(a){return a.getOption("captions","tracklist",{includeAsr:!0})};
Xo3=function(a){var z=$60(a);if(z==null?0:z.length)return z;a.loadModule("captions");return $60(a)};
T5x=function(a){var z=a.getOption("captions","track");if(z)return z;a.loadModule("captions");return a.getOption("captions","track")};
WEO=function(a){var z=Xo3(a);if(z!=null&&z.length){var I=T5x(a),J;return{showSheetCommand:{panelLoadingStrategy:{inlineContent:{sheetViewModel:{content:{listViewModel:{listItems:[{listItemViewModel:{title:{content:_.AR("PLAYER_CAPTION_OFF",void 0,"Off")},isSelected:!(I==null?0:I.languageCode),selectionStyle:"LIST_ITEM_SELECTION_STYLE_DEFAULT",rendererContext:{commandContext:{onTap:{innertubeCommand:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{captionLanguageSelectActionCommand:{languageCode:""}}]}}}}}}}].concat(_.ih(z.map(function(r){return{listItemViewModel:{title:{content:r.displayName},
isSelected:r.displayName===(I==null?void 0:I.displayName),selectionStyle:"LIST_ITEM_SELECTION_STYLE_DEFAULT",rendererContext:{commandContext:{onTap:{innertubeCommand:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{captionLanguageSelectActionCommand:{languageCode:r.languageCode}}]}}}}}}}})),[{listItemViewModel:Object.assign({},{title:{content:_.AR("AUTO_TRANSLATE",void 0,"Auto-translate")},
isSelected:!!I.translationLanguage,selectionStyle:"LIST_ITEM_SELECTION_STYLE_DEFAULT"},!!I.translationLanguage&&{selectionText:{content:(I==null?void 0:(J=I.translationLanguage)==null?void 0:J.languageName)||""}},{rendererContext:{commandContext:{onTap:{innertubeCommand:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[d6$(a)]}}}}}})}]),visibleElementCount:5}}}}}}}}};
d6$=function(a){var z=isp(a);if(z==null||!z.length)throw Error("Bi");var I=T5x(a);a=z.filter(function(J){return!J.languageCode.startsWith("en")});
return{showSheetCommand:{panelLoadingStrategy:{inlineContent:{sheetViewModel:{content:{listViewModel:{listItems:[].concat(_.ih(a.map(function(J){var r;return{listItemViewModel:{title:{content:J.languageName},isSelected:J.languageName===(I==null?void 0:(r=I.translationLanguage)==null?void 0:r.languageName),selectionStyle:"LIST_ITEM_SELECTION_STYLE_DEFAULT",rendererContext:{commandContext:{onTap:{innertubeCommand:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{captionLanguageSelectActionCommand:{languageCode:J.languageCode,
isAutoTranslated:!0}}]}}}}}}}}))),
visibleElementCount:5}}}}}}}};
RbG=function(a){return new Promise(function(z,I){if(a===void 0)_.Gx(Error("Fi"),"ERROR"),I(Error("Fi"));else{I=new _.oy0;var J=_.U6E();I=I.init();var r=_.D6G(_.Xw("YPC_MB_URL"),!0);Promise.all([I,r]).then(function(){var P=payments.business.integration.ClientTokenFactory.createClientToken(a,J);z(P)})}})};
poO=function(a,z,I,J,r,P,N){var u=_.kq();I=I.replace(/-/g,"+").replace(/_/g,"/");var E=_.Kt().get("hl"),O=_.ji(_.M1),f=z==null?void 0:z.element;f&&_.lm(f);LE$(z,!0);_.lr7(O,I,u.resolve,function(){f&&_.pc(f)},function(A){f&&_.pc(f);
u.reject(A)},E,J?function(A){J&&_.y7(a,J,{backend_analytics:A})}:void 0,u.resolve,r,P,N);
return u.promise};
LE$=function(a,z){!(a=a==null?void 0:a.element)||a.tagName!=="YT-BUTTON-RENDERER"&&a.tagName!=="YTD-BUTTON-RENDERER"||(a.disabled=z)};
wo$=function(){var a=_.AR("DOWNLOADED",void 0,"Downloaded");return{popup:{notificationActionRenderer:{responseText:_.zg(a),actionButton:{buttonRenderer:a_x()}}},popupType:"TOAST"}};
m6m=function(){var a=_.AR("UNAVAILABLE_OFFLINE",void 0,"Unavailable offline");return{popup:{notificationActionRenderer:{responseText:_.zg(a),loggingDirectives:{clientVeSpec:{uiType:135356}}}},popupType:"TOAST"}};
yZ0=function(a){return{itemSectionRenderer:{contents:[{backgroundPromoRenderer:a}]}}};
zO=function(a,z,I,J){var r;return _.t(function(P){if(P.nextAddress==1)return _.BP(P,2),P.yield(a,4);if(P.nextAddress!=2)return(r=_.hW(z.getState().entities).length>0)?P.return({title:_.zg(_.AR("YOU_ARE_OFFLINE",void 0,"You are offline")),bodyText:_.zg(_.AR("CHECK_CONNECTION_OR_DOWNLOADS",void 0,"Please check your connection or watch your downloaded videos.")),icon:{iconType:"OFFLINE_NO_CONTENT"},ctaButton:{buttonRenderer:eM$()},style:{value:"BACKGROUND_PROMO_STYLE_TYPE_FULL_HEIGHT"},loggingDirectives:{clientVeSpec:{uiType:22233}}}):
P.return(j87(I,J));_.sk(P);return P.return(j87(I,J))})};
kim=function(a,z){return z?z==="PPSV"||Jqp(a,z):!1};
MsE=function(a){a.responseContext||(a.responseContext={});a.responseContext.maxAgeSeconds=0;return a};
JI=function(a){var z;return _.t(function(I){return I.nextAddress==1?I.yield(cZd(a,"service:topbar:fallback"),2):(z=I.yieldResult)&&_.Iv(z)?I.return(MsE(_.Iv(z))):I.return()})};
Yix=function(a){var z;return _.t(function(I){return I.nextAddress==1?I.yield(cZd(a,"service:downloads_settings:fallback"),2):(z=I.yieldResult)&&_.Iv(z)?I.return(z):I.return()})};
cZd=function(a,z){var I;return _.t(function(J){if(J.nextAddress==1)return a?J.yield(a.get(z),2):J.return();I=J.yieldResult;return!I||!_.Iv(I)||!isNaN(Number(I.data.expireTimestampMs))&&I.isExpired()?J.return():J.return(I)})};
qiG=function(a){var z=_.ab().resolve(r0).getState().entities;return a.playlistId?kim(z,a.playlistId):!1};
eb$=function(a,z){var I;if(z==null?0:(I=z.requestTemplate)==null?0:I.panelId)a.panelId=z.requestTemplate.panelId;var J;if(z==null?0:(J=z.requestTemplate)==null?0:J.params)a.params=z.requestTemplate.params};
jqp=function(){if(aKM)return aKM();var a=!_.K("idb_response_store_auth_killswitch"),z={};aKM=a3("yt-it-response-store",{objectStores:(z.ResponseStore={addedAtVersion:1},z),shared:!a,upgrade:function(I,J){J(1)&&(I=DZ(I,"ResponseStore",{keyPath:["key","clientName"]}),R3(I,"byExpiration","expireTimestampMs"),R3(I,"byInterface","clientName"))},
version:1});return aKM()};
zBG=function(a){return _.m5(jqp(),a)};
JpM=function(a,z){var I;return _.t(function(J){return J.nextAddress==1?J.yield(_.e6(),2):(I=J.yieldResult)?J.return(new IK7(a,z,I)):J.return()})};
rpG=function(a){var z=Object.keys(a)[0];if(z)return a.screenExit&&(z=z+";"+a.screenExit.screen),z};
Po0=function(a){var z=new Map;a=_.C(a);for(var I=a.next();!I.done;I=a.next())I=I.value,I!=null&&(z.has(I.taskType)||z.set(I.taskType,[]),z.get(I.taskType).push(I));return z};
ZTM=function(a){return!isNaN(a)&&a>0};
Co1=function(a){a=[].concat(_.ih(a)).sort(function(I,J){return I-J});
var z=Math.floor(a.length/2);return a.length%2?a[z]:(a[z-1]+a[z])/2};
uvI=function(a,z){a=a===void 0?EcI:a;z=z===void 0?{}:z;_.qe("yt.logging.errors.log",_.Gx);trE();NuE(AEO(),z);window.onerror=a;t4I=uF7;window.addEventListener("unhandledrejection",function(I){if(I.reason instanceof Error){var J=I.reason;_.Tx(J,{source:"unhandledrejection"});J.name==="AbortError"&&(J.level="WARNING")}uF7(I.reason);I.preventDefault()})};
_.E5M=function(a){return a.a11y.ephemeralAction||null};
_.Bux=function(a){var z,I,J,r,P,N,u,E,O,f,A,n,F,h,v,d,W,l,q,m,M,y,e,Bp,Em,nG,bG,Hp,LG,oE,Pe,TJ,Be,eM,Ao,gf,GJ,Sf,ce,r$;return _.t(function(aw){if(aw.nextAddress==1)return aw.yield(_.n5(a,{mode:"readonly",enableRetries:!0},function(Kl){return K5(Kl,"playbackData").then(function(EG){var F1=EG.map(function(Cl){return Cl.transfer}).filter(function(Cl){return!!Cl}),jf=EG.map(function(Cl){return Cl.offlineVideoPolicy}).filter(function(Cl){return!!Cl}),zj=EG.filter(function(Cl){return!!Cl.key}).map(function(Cl){return _.Er(_.ZY(Cl.key).entityId,
"downloadStatusEntity")});
F1=K5(Kl,"transfer",F1);jf=K5(Kl,"offlineVideoPolicy",jf);zj=K5(Kl,"downloadStatusEntity",zj);var aZ=F1.then(function(Cl){Cl=Cl.reduce(function(kG,sG){(sG==null?0:sG.offlineVideoStreams)&&kG.push.apply(kG,_.ih(sG.offlineVideoStreams));return kG},[]).filter(function(kG){return!!kG});
return K5(Kl,"offlineVideoStreams",Cl)});
return Uz.all([F1,jf,aZ,zj]).then(function(Cl){var kG=_.C(Cl);Cl=kG.next().value;var sG=kG.next().value;var SI=kG.next().value;kG=kG.next().value;return[EG,Cl,sG,SI,kG]})})}),2);
if(aw.nextAddress!=3)return z=aw.yieldResult,aw.yield(_.n5(a,{mode:"readonly",enableRetries:!0},function(Kl){return K5(Kl,"mainDownloadsListEntity").then(function(EG){var F1,jf;return(jf=(F1=EG[0])==null?void 0:F1.downloads)!=null?jf:[]})}),3);
I=aw.yieldResult;J=_.C(z);r=J.next().value;P=J.next().value;N=J.next().value;u=J.next().value;E=J.next().value;O=r;f=P;A=N;n=u;F=E;h={};v={};d={};W={};l={};q=[];m=_.C(f);for(M=m.next();!M.done;M=m.next())(y=M.value)&&(h[y.key]=y);e=_.C(A);for(Bp=e.next();!Bp.done;Bp=e.next())(Em=Bp.value)&&(v[Em.key]=Em);nG=_.C(F);for(bG=nG.next();!bG.done;bG=nG.next())(Hp=bG.value)&&(d[Hp.key]=Hp);LG=_.C(n);for(oE=LG.next();!oE.done;oE=LG.next())(Pe=oE.value)&&(W[Pe.key]=Pe);TJ=_.C(I);for(Be=TJ.next();!Be.done;Be=
TJ.next())eM=Be.value,Ao=void 0,l[(Ao=eM.videoItem)!=null?Ao:""]=!0,eM.videoItem&&(GJ=gf=void 0,Sf=(GJ=(gf=_.ZY(eM.videoItem))==null?void 0:gf.entityId)!=null?GJ:"",q.push({externalVideoId:Sf}));ce=O.filter(function(Kl){if(!Kl||!Kl.key||!Kl.offlineVideoPolicy)return!1;Kl=_.ZY(Kl.key).entityId;Kl=_.Er(Kl,"downloadStatusEntity");var EG;return!(Kl&&((EG=d[Kl])==null?void 0:EG.downloadState)==="DOWNLOAD_STATE_USER_DELETED")});
r$=ce.map(function(Kl){var EG=h[Kl.transfer],F1=[];if(EG==null?0:EG.offlineVideoStreams)for(var jf=_.C(EG.offlineVideoStreams),zj=jf.next();!zj.done;zj=jf.next())(zj=W[zj.value])&&F1.push(zj);jf=v[Kl.offlineVideoPolicy];zj=l;var aZ=Kl==null?void 0:Kl.playerResponseTimestamp,Cl=_.ZY(jf.key).entityId;Kl=_.Er(Cl,"mainVideoEntity");if(jf.action==="OFFLINE_VIDEO_POLICY_ACTION_DISABLE"){var kG="OFFLINE_VIDEO_STATE_DISABLED";jf.expirationTimestamp&&Number(jf.expirationTimestamp)<Date.now()/1E3&&(kG="OFFLINE_VIDEO_STATE_EXPIRED")}else if(jf.action===
"OFFLINE_VIDEO_POLICY_ACTION_DOWNLOAD_FAILED")kG="OFFLINE_VIDEO_STATE_OFFLINE_FAILED";else{switch(EG==null?void 0:EG.transferState){case "TRANSFER_STATE_TRANSFER_IN_QUEUE":kG="OFFLINE_VIDEO_STATE_PENDING";break;case "TRANSFER_STATE_TRANSFERRING":kG="OFFLINE_VIDEO_STATE_TRANSFERRING";break;case "TRANSFER_STATE_PAUSED_BY_USER":kG="OFFLINE_VIDEO_STATE_PAUSED_TRANSFER";break;case "TRANSFER_STATE_FAILED":kG="OFFLINE_VIDEO_STATE_OFFLINE_FAILED";break;case "TRANSFER_STATE_COMPLETE":kG="OFFLINE_VIDEO_STATE_PLAYABLE";
break;case "TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH":kG="OFFLINE_VIDEO_STATE_STREAMS_OUT_OF_DATE";break;default:kG="OFFLINE_VIDEO_STATE_UNKNOWN"}if(kG==="OFFLINE_VIDEO_STATE_OFFLINE_FAILED")switch(EG==null?void 0:EG.failureReason){case "TRANSFER_FAILURE_REASON_EXTERNAL_FILESYSTEM_WRITE":case "TRANSFER_FAILURE_REASON_FILESYSTEM_WRITE":kG="OFFLINE_VIDEO_STATE_OUT_OF_STORAGE_ERROR";break;case "TRANSFER_FAILURE_REASON_STREAM_MISSING":kG="OFFLINE_VIDEO_STATE_STREAMS_MISSING";break;case "TRANSFER_FAILURE_REASON_NETWORK":case "TRANSFER_FAILURE_REASON_NETWORK_LOST":kG=
"OFFLINE_VIDEO_STATE_NETWORK_ERROR"}}Cl={id:Cl,videoState:kG};if(EG==null?0:EG.cotn)Cl.cotn=EG.cotn;if(EG==null?0:EG.maximumDownloadQuality)Cl.selectedVideoQuality=EG==null?void 0:EG.maximumDownloadQuality;if(EG==null?0:EG.lastProgressTimeMs)Cl.lastProgressTimeMs=EG.lastProgressTimeMs;aZ&&(Cl.playerResponseSavedTimeMs=String(Number(aZ)*1E3));EG=String;aZ=0;F1=_.C(F1);for(kG=F1.next();!kG.done;kG=F1.next())if(kG=kG.value,kG.streamsProgress){kG=_.C(kG.streamsProgress);for(var sG=kG.next();!sG.done;sG=
kG.next()){var SI=void 0;aZ+=Number((SI=sG.value.numBytesDownloaded)!=null?SI:0)}}Cl.downloadedBytes=EG(aZ);Cl.selectedOfflineMode=zj[Kl]?"OFFLINE_MODE_TYPE_AUTO_OFFLINE":"OFFLINE_NOW";jf.action==="OFFLINE_VIDEO_POLICY_ACTION_DISABLE"&&(Cl.offlinePlaybackDisabledReason=jf.offlinePlaybackDisabledReason);return Cl});
return aw.return({offlineVideos:r$,additionalOfflineClientState:{mainAppAdditionalOfflineClientState:{smartDownloadVideos:q}}})})};
g50=function(){var a;return _.t(function(z){return z.nextAddress==1?z.yield(_.f5(),2):(a=z.yieldResult)?z.return(_.Bux(a)):z.return({state:"PES Unavailable"})})};
Apx=function(){var a,z,I,J;return _.t(function(r){if(r.nextAddress==1)return r.yield(_.f5(),2);if(r.nextAddress!=3)return(a=r.yieldResult)?r.yield(OT3(a),3):r.return({state:"PES Unavailable"});z=r.yieldResult;I={};J=z.reduce(function(P,N){P[N.key]=N;return P},I);
return r.return(fKO(J))})};
fKO=function(a){for(var z={},I=[],J=_.C(Object.keys(a)),r=J.next();!r.done;r=J.next()){var P=r.value;r=a[P];var N=void 0;if(((N=r)==null?void 0:N.entityType)==="mainVideoEntity"){delete a[P];var u=r.data;r={};if(u){var E=void 0;N=(E=u.videoId)!=null?E:"vid-"+P;P=a;r.video=u;delete r.video.formattedDescription;delete r.video.thumbnail;u.owner&&(E=P[u.owner],E==null?0:E.data)&&(delete P[E.key],r.video.owner=E.data,delete r.video.owner.avatar);if(u=u.downloadState)if(E=P[u],E==null?0:E.data)if(delete P[u],
u=E.data.playbackData)if(E=P[u],E!=null&&E.data){delete P[u];u=E.data;delete u.playerResponseJson;r.playbackData=u;if(u.transfer&&(E=P[u.transfer],E==null?0:E.data)){delete P[E.key];var O=E.data;r.transfer=O;E=[];O=_.C(O.offlineVideoStreams||[]);for(var f=O.next();!f.done;f=O.next())if(f=P[f.value])delete P[f.key],E.push(f.data);E&&(r.streams=E)}(u=u.offlineVideoPolicy)&&(u=P[u])&&u.data&&(delete P[u.key],r.offlineVideoPolicy=u.data)}z[N]=r}}else r&&r.entityType==="offlineOrchestrationActionWrapperEntity"&&
r.data&&(delete a[r.key],N=r.data,P=void 0,I.push({id:N.rootActionId,type:((P=N.actionProto)==null?void 0:P.actionType)||"",entity:r}))}z.wrapperEntities=I;Object.keys(a).length>0&&(z.unknownKeys=a);return z};
sqM=function(){var a,z,I,J,r,P,N,u,E;return _.t(function(O){if(O.nextAddress==1)return a=!!(new _.o3("")).expiringStorage_,J=!!((z=_.IE.crypto)==null?0:(I=z.subtle)==null?0:I.importKey),r=!!_.IE.BroadcastChannel,P=!!_.IE.navigator.locks,O.yield(pdm(),2);N=O.yieldResult;u=a&&J&&r&&P&&N;E={isSupported:u};if(u)return O.return(E);E.missingBrowserFeatures=[];N||E.missingBrowserFeatures.push("OFFLINE_WEB_CLIENT_BROWSER_FEATURE_INDEXED_DB");a||E.missingBrowserFeatures.push("OFFLINE_WEB_CLIENT_BROWSER_FEATURE_LOCALSTORAGE");
J||E.missingBrowserFeatures.push("OFFLINE_WEB_CLIENT_BROWSER_FEATURE_CRYPTO_EXTENSION");r||E.missingBrowserFeatures.push("OFFLINE_WEB_CLIENT_BROWSER_FEATURE_BROADCAST_CHANNEL");P||E.missingBrowserFeatures.push("OFFLINE_WEB_CLIENT_BROWSER_FEATURE_WEB_LOCKS_API");return O.return(E)})};
n5x=function(){var a;return!((a=Pq?Pq:null)==null||!a.window)};
_.FuI=function(a){if(_.iG()&&_.g7G("Chromium")>=120){var z=_.Kux().mediaSession;try{z.setActionHandler("enterpictureinpicture",function(){a()})}catch(I){}}};
HTp=function(a){for(var z=[],I=_.C(document.styleSheets),J=I.next(),r={};!J.done;r={node$jscomp$727:void 0},J=I.next())r.node$jscomp$727=J.value.ownerNode,r.node$jscomp$727&&(r.node$jscomp$727 instanceof HTMLStyleElement||r.node$jscomp$727 instanceof HTMLLinkElement)&&z.push(new Promise(function(P){return function(N){var u=P.node$jscomp$727.cloneNode(!0);u.onload=function(){N()};
u.onerror=function(){_.Xd(Error("hj"));N()};
a.document.head.appendChild(u)}}(r)));
return Promise.all(z)};
$P$=function(a){var z=[_.zB(bTm),_.zB(hBd),_.zB(V4O)];QqI(window.document.documentElement,a.document.documentElement,[_.zB(SYm),_.zB(iTG),_.zB(xP7),_.zB(v5O),_.zB(GHG)]);QqI(window.document.body,a.document.body,z)};
QqI=function(a,z,I){a=_.C(a.attributes);for(var J=a.next();!J.done;J=a.next())if(J=J.value)try{_.qL(I,z,J.name,J.value)}catch(r){}};
Tui=function(a,z){a=new _.Zy(a.document.documentElement);a.start(Xux,z);return a};
dPG=function(a){var z=a.document.documentElement;z.addEventListener("click",function(I){Him(z,I)});
z.addEventListener("touchstart",function(I){S$0(I)});
z.addEventListener("mousedown",function(I){S$0(I)})};
o5m=function(a,z,I,J){J=J===void 0?!1:J;z=new Wup(z||a,I||a);return{x:a.x+((J===void 0?0:J)?z.lengthX*-1:z.lengthX)*.2,y:a.y+((J===void 0?0:J)?z.lengthY*-1:z.lengthY)*.2}};
UPp=function(a){if(!a)return!1;var z=a.status==="OK"||a.status==="LIVE_STREAM_OFFLINE",I,J,r,P=(r=(I=a.errorScreen)==null?void 0:I.playerLegacyDesktopYpcTrailerRenderer)!=null?r:(J=a.errorScreen)==null?void 0:J.ypcTrailerRenderer;return!!z||!!P};
_.DPi=function(a,z){if(!a)return!1;var I,J=(I=a.errorScreen)==null?void 0:I.playerLegacyDesktopYpcOfferRenderer,r;z=!!(z==null?0:(r=z.playerOverlayRenderer)==null?0:r.gatedActionsOverlayRenderer);return!!UPp(a)||!!J||!!z};
lK$=function(a){return RB3(a,0,"gclid",a.search(Lui))>=0||RB3(a,0,"gad_source",a.search(Lui))>=0};
pux=function(a){var z=[],I=0;return{clear:function(){I=z.length=0},
push:function(J){z[I]=J;I=(I+1)%a},
iterate:function(){return function r(){var P,N,u,E;return _.Ch(r,function(O){switch(O.nextAddress){case 1:_.fu(O,2),P=z.length,N=0;case 4:if(!(N<P)){O.jumpTo(2);break}u=I+N;E=_.Nl;return O.yield(z[u%P],7);case 7:E(O.yieldResult);N++;O.jumpTo(4);break;case 2:_.Ok(O),_.Ay(O,0)}})}()}}};
wuG=function(a){a.eventsToIgnore||(a.eventsToIgnore=[]);var z=a.eventsToIgnore.map(GFE),I=new Set(z),J=pux(a.bufferSize);return{flush:function(){var r=Array.from(J.iterate());J.clear();r=r.map(function(P){return{name:P.name,timestamp:P.startTime,attributes:P.attributes}});
return JSON.stringify(r)},
onSpanStart:function(r){r.name==="event"&&I.has(r.attributes.type)||J.push(r)}}};
mP7=function(a){a=wuG(a);var z=a.flush;Th1({onSpanStart:a.onSpanStart});HU1.subscribe("handleError",function(I){try{I.params.breadcrumbs=z()}catch(J){_.Gx(J,"WARNING")}})};
yp3=function(a,z,I){var J=a.endTime;if(J==null)throw Error("jj");var r=a.name,P={};J-=a.startTime;var N=a.startTime;P={webTracing:(P[r]=a.attributes,P)};I=_.Ue(M$p)(r,J,N,P,I,z);if(a.children)for(a=_.C(a.children),r=a.next();!r.done;r=a.next())yp3(r.value,z,I)};
cpG=function(){for(var a=BTG.value,z={},I=_.C(a.enabledSpansArray),J=I.next();!J.done;J=I.next())z[J.value]=!0;(a.exportToCsi||a.exportBreadcrumbs)&&$bp({sessionId:OE$(),enabledSpans:z});a.exportBreadcrumbs&&mP7({eventsToIgnore:kH$,bufferSize:a.bufferSize});a.exportToCsi&&Th1(M4d);if(a.exportToDevTools){var r=[];Th1({onSpanEnd:function(P){r.push(P)===1&&setTimeout(function(){var N=r.map(dbd);r.length=0;window.postMessage({type:"telemetry",spans:N},"*")},1E3)}})}};
YY$=function(a){return new Promise(function(z){window.setTimeout(z,a)})};
qYd=function(a){var z={bicf:function(P){a.hVC=P},
blc:function(){return a.getLatestChallengeResponse()},
bcr:function(P){a.tKU.push(P)}},I=window;
I.ntpevasrs=z;if(I.ntpqfbel!==void 0)for(var J=_.C(I.ntpqfbel),r=J.next();!r.done;r=J.next())r=r.value,r(z);I.ntpqfbel=void 0};
eBG=function(a){return _.t(function(z){if(z.nextAddress==1)return _.BP(z,2),z.yield(a.ip5(),4);if(z.nextAddress!=2)return _.p1(z,0);_.sk(z);_.nu(z)})};
a27=function(a){var z,I;(z=a.ytcsi)==null||(I=z.tick)==null||I.call(z,"pot_ist")};
j9E=function(a){if(a instanceof Error){var z=_.DH("yt.logging.errors.log");z&&z(a,"WARNING")}};
z90=function(a){try{var z=JSON.parse(a);if(z.bgChallenge)return z}catch(I){}};
J6$=function(){var a=window,z={networkStatusManagerPromise:_.ab().resolve(new S_p(_.wo)),initialChallengeSli:_.K("wpo_att_sli")?new _.TaG("SLI_NAME_YOUTUBE_WEB_INITIAL_ATTESTATION_CHALLENGE","",3E3,"TIMEOUT"):void 0};a=a===void 0?window:a;var I=a.ytAtR,J;z==null||(J=z.initialChallengeSli)==null||_.tI(J);if(I){if(I=z90(I)){var r;z==null||(r=z.initialChallengeSli)==null||_.ug(r,"SUCCESS");I2p(I,z)}a.ytAtR=void 0}else a.ytAtRC=function(P){if(P=z90(P)){var N;z==null||(N=z.initialChallengeSli)==null||
_.ug(N,"SUCCESS");I2p(P,z);a.ytAtRC=void 0}}};
ZYE=function(){if(r6m)return r6m;try{var a=_.OS("IFRAME");_.lj(a,_.Jz(P7m));a.sandbox.add("allow-same-origin");a.style.display="none";document.body.appendChild(a);return r6m=a}catch(z){a=new _.Fn("Failed to create sandbox iframe"),_.Gx(a)}};
C7I=function(a){var z,I;return(I=a==null?void 0:(z=a.contentWindow)==null?void 0:z.fetch)!=null?I:window.fetch};
Nvi=function(a){var z,I;return(I=a==null?void 0:(z=a.contentWindow)==null?void 0:z.JSON.parse)!=null?I:JSON.parse};
tXM=function(a){var z,I;return(I=a==null?void 0:(z=a.contentWindow)==null?void 0:z.Request)!=null?I:window.Request};
u$$=function(a){var z,I;return(I=a==null?void 0:(z=a.contentWindow)==null?void 0:z.TextDecoder)!=null?I:window.TextDecoder};
EmG=function(){return function(a,z){_.Xw("LATEST_ECATCHER_SERVICE_TRACKING_PARAMS")[a]=z}};
BvG=function(){return function(a,z){var I={};I[a]=z;a=_.Ue(_.yXI)(I);Object.keys(a).length>0&&_.Gb(a)}};
f2x=function(){if(dpx()==="hidden")var a="FOREGROUND_HEARTBEAT_TRIGGER_ON_BACKGROUND";else dpx()==="visible"&&(a="FOREGROUND_HEARTBEAT_TRIGGER_ON_FOREGROUND",gm7=null);a&&OYx(a)};
OYx=function(a){if(a==="FOREGROUND_HEARTBEAT_TRIGGER_ON_BACKGROUND"||a==="FOREGROUND_HEARTBEAT_TRIGGER_ON_FOREGROUND"){if(A6x===a)return;A6x=a}var z=9E4+Math.random()*2E3;if(a!=="FOREGROUND_HEARTBEAT_TRIGGER_ON_INTERVAL"||!(_.IO()>z)&&dpx()==="visible"){z=-1;gm7&&(z=Math.round((0,_.jp)()-gm7));var I=String;var J=_.DH("_fact",window);J=J==null||J==-1?-1:Math.max(Date.now()-J,0);_.x0("foregroundHeartbeat",{firstActivityMs:I(J),clientDocumentNonce:fN7,index:String(s9E),lastEventDeltaMs:String(z),trigger:a});
_.qe("_fact",-1,window);s9E++;gm7=(0,_.jp)()}};
_.nm0=function(){try{return!!self.sessionStorage}catch(a){return!1}};
KLp=function(){var a=navigator;return new Promise(function(z,I){var J;(J=a.webkitTemporaryStorage)!=null&&J.queryUsageAndQuota?a.webkitTemporaryStorage.queryUsageAndQuota(function(r,P){z({usage:r,quota:P})},function(r){I(r)}):I(Error("sj"))})};
FLM=function(a,z){var I={errorSeverity:z.errorSeverity.toString(),wizFeatureFlags:Object.entries(z.featureFlags).join("\n")};Nid(z,I);z=z.errorSeverity;z===3?_.Gx(a,"ERROR",void 0,void 0,void 0,I):z===2&&_.Gx(a,"WARNING",void 0,void 0,void 0,I);_.K("cow_if_errors_in_popup")&&z===3&&a.message.indexOf("<If>")!==-1&&window.alert(a.message)};
HYG=function(a,z){var I=cA.get(a)||{layerNode:z};I.layerNode=z;GsM(a,I);a.getScreenLayer=function(){return EJ(I.layerNode)}};
bY$=function(a){var z;a=a.parentNode;for(var I;a&&((z=cA.get(a))==null||!z.isRenderer)&&!((I=a.polymerController)!=null?I:a).isRenderer_;)a=a.parentNode||a.host;if(z=a)return cA.get(z)};
h97=function(a){if(a){cA.delete(a);var z=_.ab().resolve(jH);RJE(a,z)}};
Q93=function(a,z,I){if(I===void 0?0:I){if(I=a.getAttribute("client-ve-type"),z.data&&!z.disableReactiveLogging||I)_.iF(function(){VX7(a,_.SJ(z.data))}),_.V3(function(){return void h97(a)})}else typeof z.data!=="function"&&VX7(a,z.data)};
VX7=function(a,z){S23++;iYp(a,z)&&_.GW.addJob(function(){_.hE(_.GW,function(){if(iYp(a,z)&&a.ownerDocument.documentElement===document.documentElement&&a){var I;if(a.getAttribute("layer")){var J=I=Number(a.getAttribute("layer")),r=cA.get(a);r?r.layerNode.layer=J:HYG(a,new xWO(J));(J=bY$(a))&&(r=cA.get(a))!=null&&(r.layerNode.parent=J.layerNode)}else if(I=cA.get(a))I=EJ(I.layerNode);else{I=EJ;J=new xWO;if(r=bY$(a))J.parent=r.layerNode;HYG(a,J);I=I(J)}I!=null||(I=0);J=a.getAttribute("client-ve-type");
r=Number(J);var P=!1;J=!1;var N=cA.get(a),u;if((u=N)&&!(u=N[vm1]!==z)&&(u=r)){var E;u=((E=cA.get(a))==null?void 0:E.clientVeType)===void 0}u&&(N[vm1]=z,P=J=N.isRenderer=!0);cA.has(a)&&(cA.get(a).clientVeType=r);a.visualElement&&(J=!0);if(_.K("wiz_next_ld_fix_client_ve_spec")){var O;E=((O=_.H(z==null?void 0:z.rendererContext,_.FJ))==null?void 0:O.loggingDirectives)||(z==null?void 0:z.loggingDirectives)}else E=z==null?void 0:z.loggingDirectives;E&&E.clientVeSpec&&(O=Gnm(_.sg(),a),O=_.$Wi(_.Kw(),E,O||
void 0,I))&&(a.visualElement=O);!a.visualElement&&r&&P&&(a.veType=r,O=void 0,_.K("wiz_next_client_ve_parent_fix")&&(O=Gnm(_.sg(),a)),O=_.nw(_.Kw(),a,O,I),a.visualElement=O);J&&(O=_.ab().resolve(jH),w5d(a,{data:z,observer:O,layer:I,showOption:{calledOnce:!1,state:"visible"},hideOption:{calledOnce:!1,state:"hidden"}}))}},0)},8)};
iYp=function(a,z){return(z==null?0:z.trackingParams)||(z==null?0:z.loggingDirectives)||_.H(z==null?void 0:z.rendererContext,_.FJ)||a.getAttribute("client-ve-type")?!0:!1};
X7d=function(a,z,I){a.componentType!==KW&&I instanceof HTMLElement&&z&&!_.K("cow_logging_in_component_wrapper")&&Q93(I,z,!0)};
UW0=function(){if(!TvG){TvG=!0;var a=Object.assign({},{flushRenderEffectsDuringRender:!0},{handleError:FLM,enableComponentStacksInErrorMessages:!1});Object.assign(eW,a);QAM=dWI;WL$();GXM=N6m;iLG=ty7;_.K("ytwiz_enable_debug_component_props")&&(a=document.body.firstElementChild,window.ng||a.__ngContext__||(a.__ngContext__={},a.setAttribute("ng-version","0.0.0-PLACEHOLDER"),window.ng=omI))}};
WL$=function(){_.K("cow_logging_in_component_wrapper")?(sx$=function(a,z){z instanceof HTMLElement&&Q93(z,a,!0)},OLG=function(){}):(sx$=function(){},OLG=X7d)};
DW3=function(a,z,I){z=z===void 0?{}:z;var J,r=(J=_.H(a.commandMetadata,_.O_))==null?void 0:J.url;J=z.form||{};!I||J.element||J.skipDefaultElement||(z.form=z.form||{},z.form.element=I);if(r&&r!=="/service_ajax")return{type:0,command:a,form:z.form};if(_.K("kevlar_service_command_check")){if(_.mf(_.ab().resolve(_.dY),a))return Object.assign({},{type:1,command:a},z)}else{var P;if((P=_.H(a.commandMetadata,_.O_))==null?0:P.apiUrl)return Object.assign({},{type:1,command:a},z)}return{type:2,command:a,form:z.form}};
R9G=function(a){if(a.form){var z=a.form,I=Object.assign({},z);z=z.element;I=(delete I.element,I);if(z)return[_.N$(z,[a.command,I,a.commandController])]}return[]};
LL7=function(a){if(a.form){var z=a.form,I=Object.assign({},z);z=z.element;I=(delete I.element,I);z&&_.tR(z,[a.command],z,I)}};
p77=function(a,z,I){var J=new l2x(a,z),r=new Bq(a,z,I);a={"/youtubei/v1/browse":new g0(a,z,I),"/youtubei/v1/player":J,"/youtubei/v1/navigation/resolve_url":new OJ,"/youtubei/v1/next":r,"/youtubei/v1/guide":new fh(I),"/youtubei/v1/search":new AI(a,z,I),"/youtubei/v1/reel/reel_item_watch":new sJ(a,z,I),"/youtubei/v1/get_watch":new nh(J,r)};a["/youtubei/v1/account/account_menu"]=new Kh;a["/youtubei/v1/notification/get_notification_menu"]=new Fx;return a};
bg=function(){var a=_.ab().resolve(Hq);return Promise.resolve(w7$(a,_.IE.location.href,{},document.referrer,function(){return 0},function(){return!1}))};
mWx=function(a){return a&&(a=_.hI(_.AsM(a)))?(new URLSearchParams(a)).get("service"):null};
vq=function(a,z){_.NK(_.ig(),function(){_.Xz("adl")});
_.ab().resolve(y6p)(z);a=a.root;a.loadData&&a.loadData(z);(z==null?0:z.response)?_.ug(oQ7(),"SUCCESS"):_.Xd(new _.Fn("Lifecycle: No response in data",_.TZ("IS_SHELL_LOAD"),z?z.page:"NO_PAGE",z?z.endpoint:"NO_ENDPOINT"));a.polymerController.$["page-manager"].lazyPrepareCriticalPages((z==null?void 0:z.page)||"",z.endpoint);var I,J;((J=_.H(z==null?void 0:(I=z.endpoint)==null?void 0:I.commandMetadata,_.O_))==null?0:J.webPageType)&&_.qo().dispatch(_.xK(_.H(z.endpoint.commandMetadata,_.O_).webPageType))};
kn$=function(){var a,z;return _.t(function(I){switch(I.nextAddress){case 1:a=window;if(!a.getDataPromise){I.jumpTo(2);break}_.BP(I,3);return I.yield(a.getDataPromise(),5);case 5:return I.return(I.yieldResult);case 3:return _.sk(I),I.yield(bg(),6);case 6:return I.return(I.yieldResult);case 2:if(a.getInitialData)return z=a.getInitialData(),a.getInitialData=void 0,I.return(z);throw Error("uj`"+_.IE.location.href);}})};
c6p=function(){_.$S("CSI_SERVICE_NAME","youtube");_.Gb({loadType:"cold"});_.K("kevlar_log_lcp")&&MXd(function(a){_.Xz("lcp",a.value)})};
Y2d=function(){var a=_.US(document.location.href,"enable");a&&a.indexOf("scraper")>-1&&_.$S("ADD_SCRAPER_ATTRIBUTES",!0)};
za1=function(a){var z=a.root;a=[q2E,e9G,_.GO];_.K("web_feedback_endpoint_autolog_allowlist_killswitch")&&a.push(_.$K,a6m);jzp(function(I,J){return DW3(I,J,z)},function(I){if(!I.command)return[];
var J;((J=I.form)==null?0:J.element)?I.form.element.dispatchEvent(new CustomEvent("yt-navigate",{bubbles:!0,composed:!0,detail:Object.assign({},I.form,{endpoint:I.command})})):z.handleNavigate(I);return[]},a);
_.ab().addProvider({provide:_.j6,useValue:_.Og.instance})};
J8x=function(){var a={},z={},I;for(I in I6p){var J=_.C(_.CW(I6p[I],void 0,"IAtZ7"));a[I]=J.next().value;z[I]=J.next().value}return[a,function(r){for(var P in r){var N=void 0;(N=z[P])==null||N(r[P])}}]};
_.Xx=function(a,z,I){z=z===void 0?!1:z;var J=_.x8.getValueByKeys(a,"contents","twoColumnWatchNextResults","results","results","contents"),r=_.x8.getValueByKeys(a,"contents","twoColumnWatchNextResults","playlist","playlist")||null;z&&(r=null);var P=z=null;if(r)z=_.x8.getValueByKeys(r,"titleText"),P=_.x8.unsafeClone(_.x8.getValueByKeys(r,"longBylineText")),J="",P&&(J=_.cd(P)),P=_.Mo(J);else if(J){J=_.C(J);for(var N=J.next();!N.done;N=J.next())N=N.value,N.videoPrimaryInfoRenderer&&(z=_.x8.getValueByKeys.apply(_.x8,
[N].concat(_.ih(r8G)))),N.videoSecondaryInfoRenderer&&(P=_.x8.getValueByKeys.apply(_.x8,[N].concat(_.ih(PL$))))}else _.RL(Error("zj"));var u;a.currentVideoEndpoint?u=a.currentVideoEndpoint:_.RL(Error("Aj"));var E;I&&(E=_.x8.getValueByKeys(I,"playabilityStatus","miniplayer","miniplayerRenderer"));a={miniplayerTitle:z,miniplayerSubtitle:P,watchEndpoint:u,playlistData:r};E&&(a.miniplayerRenderer=E);return a};
ZDI=function(a){if(a)return _.XJ(a)};
_.CLO=function(){return{isFullscreen:function(){throw Error("Bj");},
toggleFullscreen:function(){throw Error("Cj");},
exitFullscreen:function(){throw Error("Dj");},
isAutonavEnabled:function(){throw Error("Ej");},
setAutonavEnabled:function(){throw Error("Fj");},
isAutoplaySetExplicitly:function(){throw Error("Gj");}}};
Nkd=function(a){return a.videoDuration?a.numTaps>1&&a.tapDirection!==0?_.TO(a.draggedTime/a.videoDuration,0,1):_.TO((a.playedTime||0)/a.videoDuration,0,1):0};
t5O=function(a){return a.videoDuration?a.isDragging||a.numTaps>1&&a.tapDirection!==0?_.TO(a.draggedTime/a.videoDuration,0,1):_.TO((a.playedTime||0)/a.videoDuration,0,1):0};
EWp=function(a){var z,I,J;return _.H(a==null?void 0:(z=a.markersMap)==null?void 0:(I=z.find(function(r){return r.key==="HEATSEEKER"}))==null?void 0:(J=I.value)==null?void 0:J.heatmap,uYG)};
Bkm=function(a){var z,I;return(I=(z=EWp(a))==null?void 0:z.heatMarkersDecorations)!=null?I:[]};
gWG=function(a){if(_.K("mweb_supported_chapters_killswitch"))return!0;var z;return!!(a==null?0:(z=a.markersMap)==null?0:z.find(function(I){return["DESCRIPTION_CHAPTERS","AUTO_CHAPTERS"].includes(I.key)}))};
_.ODG=function(a){var z=Object,I=z.assign,J;a={isDragging:!1,draggedTime:0,isHovering:!1,hoveredTime:0,percentLoaded:0,playerState:(J=a==null?void 0:a.getPlayerState())!=null?J:-1,videoDuration:0,playedTime:0,wasPlaying:!1};return I.call(z,{},{isLive:!1,isPlaylist:!1,playerType:1,isProbablyAScreenreaderUser:!1,videoId:void 0,captionsEnabled:!1,captionsAvailable:!1,volume:0,volumeMuted:!0,draggedYDistance:0,isLooping:!1,isLongPressSpeedup:!1},{enabledFullscreenControlsGesture:!1,expandedFullscreenControls:!1,
isFullscreen:!1,numTaps:0,tapDirection:0},{autonavCanceled:!1,autonavEnabled:!1,autonavPaused:!1,autonavCountdown:0,showAutonavMessage:!1},a,{playbackRate:1},{controlsVisible:!1,shouldWaitToHideControls:!1,isOverlayHidden:!1},{fineScrubbingActiveState:"off",storyboardInterval:0,filmStripXDistance:0,fineScrubbingEnteredTime:0})};
f60=function(a){return function(z){var I=a(),J,r=(J=I.playerApi)==null?void 0:J.getPlayerState();z&&z!==I.playerState&&(z===1||z===2)&&I.setState({playerState:r})}};
szd=function(a){return function(z){var I=a(),J=I.playerApi;J&&(z==null?void 0:z.type)==="newdata"&&(A8M&&(clearTimeout(A8M),A8M=void 0),_.K("web_shorts_use_progress_state_for_gapless")?(z=J==null?void 0:J.getProgressState(z==null?void 0:z.playertype),z=z.seekableEnd-z.seekableStart):z=J==null?void 0:J.getDuration(z==null?void 0:z.playertype),I.setState({playedTime:0,videoDuration:z}))}};
nW7=function(a){return function(z){var I=a(),J=I.playerApi;if(J){var r=J.getPresentingPlayerType();_.K("web_shorts_use_progress_state_for_gapless")?(J=J.getProgressState(r),J=J.seekableEnd-J.seekableStart):J=J.getDuration(r);I.setState({playedTime:z,videoDuration:J})}}};
FRO=function(a){_.Vr(112394,a,function(){return KRE},function(z){KRE=z})};
ham=function(a,z){if(!a)return[];var I,J,r;a=((I=a.markersMap)==null?void 0:(J=I.find(function(P){return["DESCRIPTION_CHAPTERS","AUTO_CHAPTERS"].includes(P.key)}))==null?void 0:(r=J.value)==null?void 0:r.chapters)||[];
!HD0(a)||(z==null?0:z.ignoreStub)||(a=[bDE()].concat(_.ih(a)));return a};
bDE=function(){return{chapterRenderer:{timeRangeStartMillis:0}}};
HD0=function(a){if(a.length===0)return!1;var z;return((z=_.H(a[0],d0))==null?void 0:z.timeRangeStartMillis)!==0};
Wq=function(a){return a?a.timeRangeStartMillis||0:0};
Qzi=function(a,z){if(a.isDragging&&z)return a=V50(a,z),a===-1?bDE():ham(z)[a]};
V50=function(a,z){return a.isDragging&&z?ham(z,{ignoreStub:!0}).findIndex(function(I,J,r){I=SKE(a);return iDd(I,r,J).scrubberHovering}):-1};
SKE=function(a){return Object.assign({},a,{videoDuration:a.videoDuration*1E3,playedTime:a.playedTime*1E3,draggedTime:a.draggedTime*1E3})};
iDd=function(a,z,I){var J=Wq(_.H(z[I],d0));z=Wq(_.H(z[I+1],d0))||a.videoDuration;I=a.isDragging;var r;if(r=a.isDragging)r=a.draggedTime,r=r!==null&&r>=J&&r<z;var P=a.playedTime;return P!==null&&P>=J&&P<z?{videoPosition:"active",isScrubbing:I,scrubberHovering:r}:a.playedTime<J?{videoPosition:"pending",isScrubbing:I,scrubberHovering:r}:{videoPosition:"seen",isScrubbing:I,scrubberHovering:r}};
xDp=function(a,z){return a.videoPosition==="seen"||(z===void 0?0:z)>0};
vWi=function(a,z,I){z=a/z.storyboardInterval;var J=ham(I);if(!J.length)return-z*72;I=0;J=_.C(J);for(var r=J.next();!r.done;r=J.next())if(Wq(_.H(r.value,d0))/1E3<a)I++;else break;return-(z*72)-I*56};
Gup=function(a){return a?a.width/a.columns:0};
$Di=function(a){return a.isHovering?a.hoveredTime:a.draggedTime};
XRd=function(a,z){a=a.draggedTime*1E3;return a>=z.visibleTimeRangeStartMillis&&a<=z.visibleTimeRangeEndMillis};
_.Tkm=function(a){if(a===void 0||Number.isNaN(a))return"--:--";var z=Math.abs(Math.floor(a)),I=Math.floor(z/86400),J=Math.floor(z%86400/3600),r=Math.floor(z%3600/60);z=Math.floor(z%60);var P="";I>0&&(P+=I+":",J<10&&(P+="0"));if(I>0||J>0)P+=J+":",r<10&&(P+="0");P+=r+":";z<10&&(P+="0");P+=z;return a>=0?P:"-"+P};
dD3=function(a,z){return function(){var I=$Di(a());var J=z();var r=a().playerApi;if(r&&r.getNumberOfStoryboardLevels()!==0){var P=r.getStoryboardFrameIndex(I,1);P!==-1?J=r.getStoryboardFrame(P,1):(I=r.getStoryboardFrameIndex(I,0),r=r.getStoryboardFrame(I,0),J&&r&&(r.height*=3,r.width*=3),J=r)}else J=null;if(!J)return null;z()&&(J.width=90*J.columns,J.height=160*J.rows);return J}};
_.ov=function(a){if(!a||a.getVideoData)return a};
WRG=function(){var a;return{playerApi:(a=_.Bn())!=null?a:void 0}};
oW7=function(a){var z;_.t(function(I){if(I.nextAddress==1)return I.yield(_.EN(),2);if(z=I.yieldResult)z.unMute(!0),z.setVolume(a,!0);_.nu(I)})};
UD7=function(a,z){a&&(a.value=""+z,a.style.setProperty("--gradient-percent",z+"%"))};
DDp=function(a){var z;return(z=a==null?void 0:a.value)!=null?z:0};
Rad=function(){var a;_.t(function(z){if(z.nextAddress==1)return z.yield(_.EN(),2);a=z.yieldResult;if(!a)return z.return();a.isMuted()?a.unMute(!0):a.mute(!0);_.nu(z)})};
LR7=function(a){var z=_.ab().resolve(_.UJ).getPlayerElement();z&&a&&(a===1?z.pause():z.play())};
l6E=function(a){_.Ct(a,"yt-miniplayer-navigate-shorts",["REEL_NAVIGATION_DESTINATION_PREV"])};
pRG=function(a){_.Ct(a,"yt-miniplayer-navigate-shorts",["REEL_NAVIGATION_DESTINATION_NEXT"])};
mD0=function(a){return _.b1(a.document.body,function(){return _.B(wRI,null)})};
y8m=function(){var a=window.performance.getEntriesByType("navigation");return a?a.map(function(z){return z.type}).includes("reload"):!1};
j6G=function(){Dy(Dy(Dy(Dy(Dy(Dy(Dy(_.ab().resolve(_.Rv),_.kuG),_.M5O),_.c8d),_.YKx),_.qKm),_.eaM),_.anO)};
zWi=function(a,z){z=z===void 0?!1:z;var I,J,r,P;return _.t(function(N){if(N.nextAddress==1)return z||!_.K("kevlar_shorts_seedless_retry_initial_load")||(I=window,J=!(!I.getDataPromise&&!I.getInitialData),J)?N.yield(kn$(),2):(setTimeout(zWi.bind(window,a,!0),1E3),N.return());if(N.nextAddress!=3)return r=N.yieldResult,N.yield(InE(r),3);P=N.yieldResult;vq(a,P);_.nu(N)})};
InE=function(a){var z;if((z=a.response)==null||!z.replacementEndpoint)return _.uI(a);z=_.ab().resolve(Hq);a=a.response;_.H(a.replacementEndpoint,_.hv)&&a.sequenceContinuation&&(_.H(a.replacementEndpoint,_.hv).sequenceParams=a.sequenceContinuation);return Lh(z,a.replacementEndpoint,{},_.IE.location.href,"shorts",function(){},function(){return!1})};
rnm=function(a){var z=_.ab().resolve(Jnd);a.playerResponse&&z.handleResponse(a.playerResponse);a.response&&z.handleResponse(a.response)};
PBd=function(a){var z=_.qo(),I,J=_.H((I=a.response)==null?void 0:I.frameworkUpdates,c8),r;I=_.H((r=a.playerResponse)==null?void 0:r.frameworkUpdates,c8);var P;a=_.H((P=a.reelWatchSequenceResponse)==null?void 0:P.frameworkUpdates,c8);J&&_.sr(J,z);I&&_.sr(I,z);a&&_.sr(a,z)};
Zk3=function(a){var z;_.K("enable_redirect_linking_for_desktop_web_client")&&((z=window.location.hash)==null?0:z.includes("redirect_state"))&&a.url&&(a.url=a.url.toString()+window.location.hash)};
t7d=function(a){var z=_.ab(),I=z.resolve(Hq);z=z.resolve(_.CBd);a.endpoint&&(I=NX0(I,a.endpoint),I.content&&a.response&&_.lg(z,a.response,I.content),I.player&&a.playerResponse&&_.lg(z,a.playerResponse,I.player),I.reelSequence&&a.reelWatchSequenceResponse&&_.lg(z,a.reelWatchSequenceResponse,I.reelSequence))};
ph=function(a,z){_.K("web_service_params_response_processor")&&rnm(z);PBd(z);var I;(z==null?0:z.url)&&((I=window.location.hash)==null?0:I.includes("redirect_state"))&&(Zk3(z),(I=mWx(z.url))&&_.ZF(a.root,"yt-initialize-third-party",[I,z]));t7d(z);I=_.ab();var J=I.resolve(uI0);z.playerResponse&&I.resolve(EUd).handleResponse(z.playerResponse);if(z.playerResponse){I=void 0;if(_.K("ab_v_vid_sig")&&z.endpoint){var r,P=(r=_.H(z.endpoint,_.MZ))!=null?r:_.H(z.endpoint,_.hv);P&&(I=P.videoId)}BXG(J,z.playerResponse,
I)}z.playerResponse&&z6m(z.playerResponse)&&_.K("web_enable_ab_rsp_cl")?ozI().then(function(){gU$(J,z.playerResponse);vq(a,z)}):vq(a,z)};
fnx=function(a){if(a=a.root.data){var z=_.ab().resolve(OkM);a.endpoint&&(a.response&&z.handleResponse(a.response,void 0,document.querySelector("ytd-app")),a.playerResponse&&z.handleResponse(a.playerResponse),a.reelWatchSequenceResponse&&z.handleResponse(a.reelWatchSequenceResponse))}};
Anx=function(a){var z,I,J,r,P,N;return _.t(function(u){switch(u.nextAddress){case 1:z=window;if(!z.getDataPromise){u.jumpTo(2);break}_.BP(u,3);return u.yield(z.getDataPromise(),5);case 5:I=u.yieldResult;ph(a,I);_.p1(u,4);break;case 3:return _.sk(u),u.yield(bg(),6);case 6:J=u.yieldResult,vq(a,J);case 4:return u.return();case 2:if(!_.K("sw_nav_preload_pbj")){u.jumpTo(7);break}z.fetchInitialData=function(){var E;return _.t(function(O){if(O.nextAddress==1)return O.yield(bg(),2);E=O.yieldResult;vq(a,E);
_.nu(O)})};
if(z.getInitialData){z.loadInitialData=function(E){ph(a,E)};
r=z.getInitialData();z.getInitialData=void 0;ph(a,r);u.jumpTo(8);break}z.fetchInitialData=void 0;return u.yield(bg(),9);case 9:P=u.yieldResult,vq(a,P);case 8:return u.return();case 7:z.getInitialData?(N=z.getInitialData(),z.getInitialData=void 0,ph(a,N)):z.loadInitialData=function(E){ph(a,E)},_.nu(u)}})};
s67=function(a){var z=0;return function(){return z<a.length?{done:!1,value:a[z++]}:{done:!0}}};
nUm=typeof Object.defineProperties=="function"?Object.defineProperty:function(a,z,I){if(a==Array.prototype||a==Object.prototype)return a;a[z]=I.value;return a};
KTO=function(a){a=["object"==typeof globalThis&&globalThis,a,"object"==typeof window&&window,"object"==typeof self&&self,"object"==typeof global&&global];for(var z=0;z<a.length;++z){var I=a[z];if(I&&I.Math==Math)return I}throw Error("a");};
_.eH=KTO(this);w0=function(a,z){if(z)a:{var I=_.eH;a=a.split(".");for(var J=0;J<a.length-1;J++){var r=a[J];if(!(r in I))break a;I=I[r]}a=a[a.length-1];J=I[a];z=z(J);z!=J&&z!=null&&nUm(I,a,{configurable:!0,writable:!0,value:z})}};
w0("Symbol",function(a){if(a)return a;var z=function(P,N){this.$jscomp$symbol$id_=P;nUm(this,"description",{configurable:!0,writable:!0,value:N})};
z.prototype.toString=function(){return this.$jscomp$symbol$id_};
var I="jscomp_symbol_"+(Math.random()*1E9>>>0)+"_",J=0,r=function(P){if(this instanceof r)throw new TypeError("b");return new z(I+(P||"")+"_"+J++,P)};
return r});
w0("Symbol.iterator",function(a){if(a)return a;a=Symbol("c");for(var z="Array Int8Array Uint8Array Uint8ClampedArray Int16Array Uint16Array Int32Array Uint32Array Float32Array Float64Array".split(" "),I=0;I<z.length;I++){var J=_.eH[z[I]];typeof J==="function"&&typeof J.prototype[a]!="function"&&nUm(J.prototype,a,{configurable:!0,writable:!0,value:function(){return FTG(s67(this))}})}return a});
w0("Symbol.asyncIterator",function(a){return a?a:Symbol("d")});
var FTG=function(a){a={next:a};a[Symbol.iterator]=function(){return this};
return a},HkE=typeof Object.create=="function"?Object.create:function(a){var z=function(){};
z.prototype=a;return new z},bk1=function(){function a(){function I(){}
new I;Reflect.construct(I,[],function(){});
return new I instanceof I}
if(typeof Reflect!="undefined"&&Reflect.construct){if(a())return Reflect.construct;var z=Reflect.construct;return function(I,J,r){I=z(I,J);r&&Reflect.setPrototypeOf(I,r.prototype);return I}}return function(I,J,r){r===void 0&&(r=I);
r=HkE(r.prototype||Object.prototype);return Function.prototype.apply.call(I,r,J)||r}}(),hW3;
if(typeof Object.setPrototypeOf=="function")hW3=Object.setPrototypeOf;else{var V7d;a:{var Q6d={a:!0},Sy$={};try{Sy$.__proto__=Q6d;V7d=Sy$.a;break a}catch(a){}V7d=!1}hW3=V7d?function(a,z){a.__proto__=z;if(a.__proto__!==z)throw new TypeError("e`"+a);return a}:null}m3=hW3;
_.b=function(a,z){a.prototype=HkE(z.prototype);a.prototype.constructor=a;if(m3)m3(a,z);else for(var I in z)if(I!="prototype")if(Object.defineProperties){var J=Object.getOwnPropertyDescriptor(z,I);J&&Object.defineProperty(a,I,J)}else a[I]=z[I];a.superClass_=z.prototype};
_.C=function(a){var z=typeof Symbol!="undefined"&&Symbol.iterator&&a[Symbol.iterator];if(z)return z.call(a);if(typeof a.length=="number")return{next:s67(a)};throw Error("f`"+String(a));};
mG=function(a){for(var z,I=[];!(z=a.next()).done;)I.push(z.value);return I};
_.ih=function(a){return a instanceof Array?a:mG(_.C(a))};
_.kK=function(a){return y5(a,a)};
y5=function(a,z){a.raw=z;Object.freeze&&(Object.freeze(a),Object.freeze(z));return a};
Ml=function(a,z){return Object.prototype.hasOwnProperty.call(a,z)};
ikp=typeof Object.assign=="function"?Object.assign:function(a,z){for(var I=1;I<arguments.length;I++){var J=arguments[I];if(J)for(var r in J)Ml(J,r)&&(a[r]=J[r])}return a};
w0("Object.assign",function(a){return a||ikp});
var cq=function(){this.isRunning_=!1;this.yieldAllIterator_=null;this.yieldResult=void 0;this.nextAddress=1;this.finallyAddress_=this.catchAddress_=0;this.finallyContexts_=this.abruptCompletion_=null},xjx=function(a){if(a.isRunning_)throw new TypeError("h");
a.isRunning_=!0};
cq.prototype.JSC$8686_next_=function(a){this.yieldResult=a};
var vUi=function(a,z){a.abruptCompletion_={exception:z,isException:!0};a.nextAddress=a.catchAddress_||a.finallyAddress_};
cq.prototype.return=function(a){this.abruptCompletion_={return:a};this.nextAddress=this.finallyAddress_};
cq.prototype.yield=function(a,z){this.nextAddress=z;return{value:a}};
cq.prototype.jumpTo=function(a){this.nextAddress=a};
_.nu=function(a){a.nextAddress=0};
_.BP=function(a,z,I){a.catchAddress_=z;I!=void 0&&(a.finallyAddress_=I)};
_.fu=function(a,z){a.catchAddress_=0;a.finallyAddress_=z||0};
_.p1=function(a,z,I){a.nextAddress=z;a.catchAddress_=I||0};
_.sk=function(a,z){a.catchAddress_=z||0;z=a.abruptCompletion_.exception;a.abruptCompletion_=null;return z};
_.Ok=function(a,z,I,J){J?a.finallyContexts_[J]=a.abruptCompletion_:a.finallyContexts_=[a.abruptCompletion_];a.catchAddress_=z||0;a.finallyAddress_=I||0};
_.Ay=function(a,z,I){I=a.finallyContexts_.splice(I||0)[0];(I=a.abruptCompletion_=a.abruptCompletion_||I)?I.isException?a.nextAddress=a.catchAddress_||a.finallyAddress_:I.jumpTo!=void 0&&a.finallyAddress_<I.jumpTo?(a.nextAddress=I.jumpTo,a.abruptCompletion_=null):a.nextAddress=a.finallyAddress_:a.nextAddress=z};
G50=function(a){this.JSC$8691_context_=new cq;this.program_=a};
X6I=function(a,z){xjx(a.JSC$8691_context_);var I=a.JSC$8691_context_.yieldAllIterator_;if(I)return $jp(a,"return"in I?I["return"]:function(J){return{value:J,done:!0}},z,a.JSC$8691_context_.return);
a.JSC$8691_context_.return(z);return YK(a)};
$jp=function(a,z,I,J){try{var r=z.call(a.JSC$8691_context_.yieldAllIterator_,I);if(!(r instanceof Object))throw new TypeError("g`"+r);if(!r.done)return a.JSC$8691_context_.isRunning_=!1,r;var P=r.value}catch(N){return a.JSC$8691_context_.yieldAllIterator_=null,vUi(a.JSC$8691_context_,N),YK(a)}a.JSC$8691_context_.yieldAllIterator_=null;J.call(a.JSC$8691_context_,P);return YK(a)};
YK=function(a){for(;a.JSC$8691_context_.nextAddress;)try{var z=a.program_(a.JSC$8691_context_);if(z)return a.JSC$8691_context_.isRunning_=!1,{value:z.value,done:!1}}catch(I){a.JSC$8691_context_.yieldResult=void 0,vUi(a.JSC$8691_context_,I)}a.JSC$8691_context_.isRunning_=!1;if(a.JSC$8691_context_.abruptCompletion_){z=a.JSC$8691_context_.abruptCompletion_;a.JSC$8691_context_.abruptCompletion_=null;if(z.isException)throw z.exception;return{value:z.return,done:!0}}return{value:void 0,done:!0}};
TXI=function(a){this.next=function(z){xjx(a.JSC$8691_context_);a.JSC$8691_context_.yieldAllIterator_?z=$jp(a,a.JSC$8691_context_.yieldAllIterator_.next,z,a.JSC$8691_context_.JSC$8686_next_):(a.JSC$8691_context_.JSC$8686_next_(z),z=YK(a));return z};
this.throw=function(z){xjx(a.JSC$8691_context_);a.JSC$8691_context_.yieldAllIterator_?z=$jp(a,a.JSC$8691_context_.yieldAllIterator_["throw"],z,a.JSC$8691_context_.JSC$8686_next_):(vUi(a.JSC$8691_context_,z),z=YK(a));return z};
this.return=function(z){return X6I(a,z)};
this[Symbol.iterator]=function(){return this}};
_.Ch=function(a,z){z=new TXI(new G50(z));m3&&a.prototype&&m3(z,a.prototype);return z};
dj$=function(a){function z(J){return a.next(J)}
function I(J){return a.throw(J)}
return new Promise(function(J,r){function P(N){N.done?J(N.value):Promise.resolve(N.value).then(z,I).then(P,r)}
P(a.next())})};
_.t=function(a){return dj$(new TXI(new G50(a)))};
_.gV=function(a){var z=a[Symbol.asyncIterator];return z!==void 0?z.call(a):new WT0(_.C(a))};
WT0=function(a){this[Symbol.asyncIterator]=function(){return this};
this[Symbol.iterator]=function(){return a};
this.next=function(z){return Promise.resolve(a.next(z))};
this["throw"]=function(z){return new Promise(function(I,J){var r=a["throw"];r!==void 0?I(r.call(a,z)):(I=a["return"],I!==void 0&&I.call(a),J(new TypeError("i")))})};
a["return"]!==void 0&&(this["return"]=function(z){return Promise.resolve(a["return"](z))})};
_.dO=function(){for(var a=Number(this),z=[],I=a;I<arguments.length;I++)z[I-a]=arguments[I];return z};
_.Nl=function(a){return a};
w0("globalThis",function(a){return a||_.eH});
w0("Reflect",function(a){return a?a:{}});
w0("Reflect.construct",function(){return bk1});
w0("Reflect.setPrototypeOf",function(a){return a?a:m3?function(z,I){try{return m3(z,I),!0}catch(J){return!1}}:null});
w0("Promise",function(a){function z(){this.batch_=null}
function I(N){return N instanceof r?N:new r(function(u){u(N)})}
if(a&&(typeof _.eH.PromiseRejectionEvent!=="undefined"||!_.eH.Promise||_.eH.Promise.toString().indexOf("[native code]")===-1))return a;z.prototype.asyncExecute=function(N){if(this.batch_==null){this.batch_=[];var u=this;this.asyncExecuteFunction(function(){u.executeBatch_()})}this.batch_.push(N)};
var J=_.eH.setTimeout;z.prototype.asyncExecuteFunction=function(N){J(N,0)};
z.prototype.executeBatch_=function(){for(;this.batch_&&this.batch_.length;){var N=this.batch_;this.batch_=[];for(var u=0;u<N.length;++u){var E=N[u];N[u]=null;try{E()}catch(O){this.asyncThrow_(O)}}}this.batch_=null};
z.prototype.asyncThrow_=function(N){this.asyncExecuteFunction(function(){throw N;})};
var r=function(N){this.state_=0;this.result_=void 0;this.onSettledCallbacks_=[];this.isRejectionHandled_=!1;var u=this.createResolveAndReject_();try{N(u.resolve,u.reject)}catch(E){u.reject(E)}};
r.prototype.createResolveAndReject_=function(){function N(O){return function(f){E||(E=!0,O.call(u,f))}}
var u=this,E=!1;return{resolve:N(this.resolveTo_),reject:N(this.JSC$8719_reject_)}};
r.prototype.resolveTo_=function(N){if(N===this)this.JSC$8719_reject_(new TypeError("m"));else if(N instanceof r)this.settleSameAsPromise_(N);else{a:switch(typeof N){case "object":var u=N!=null;break a;case "function":u=!0;break a;default:u=!1}u?this.resolveToNonPromiseObj_(N):this.fulfill_(N)}};
r.prototype.resolveToNonPromiseObj_=function(N){var u=void 0;try{u=N.then}catch(E){this.JSC$8719_reject_(E);return}typeof u=="function"?this.settleSameAsThenable_(u,N):this.fulfill_(N)};
r.prototype.JSC$8719_reject_=function(N){this.settle_(2,N)};
r.prototype.fulfill_=function(N){this.settle_(1,N)};
r.prototype.settle_=function(N,u){if(this.state_!=0)throw Error("n`"+N+"`"+u+"`"+this.state_);this.state_=N;this.result_=u;this.state_===2&&this.scheduleUnhandledRejectionCheck_();this.executeOnSettledCallbacks_()};
r.prototype.scheduleUnhandledRejectionCheck_=function(){var N=this;J(function(){if(N.notifyUnhandledRejection_()){var u=_.eH.console;typeof u!=="undefined"&&u.error(N.result_)}},1)};
r.prototype.notifyUnhandledRejection_=function(){if(this.isRejectionHandled_)return!1;var N=_.eH.CustomEvent,u=_.eH.Event,E=_.eH.dispatchEvent;if(typeof E==="undefined")return!0;typeof N==="function"?N=new N("unhandledrejection",{cancelable:!0}):typeof u==="function"?N=new u("unhandledrejection",{cancelable:!0}):(N=_.eH.document.createEvent("CustomEvent"),N.initCustomEvent("unhandledrejection",!1,!0,N));N.promise=this;N.reason=this.result_;return E(N)};
r.prototype.executeOnSettledCallbacks_=function(){if(this.onSettledCallbacks_!=null){for(var N=0;N<this.onSettledCallbacks_.length;++N)P.asyncExecute(this.onSettledCallbacks_[N]);this.onSettledCallbacks_=null}};
var P=new z;r.prototype.settleSameAsPromise_=function(N){var u=this.createResolveAndReject_();N.callWhenSettled_(u.resolve,u.reject)};
r.prototype.settleSameAsThenable_=function(N,u){var E=this.createResolveAndReject_();try{N.call(u,E.resolve,E.reject)}catch(O){E.reject(O)}};
r.prototype.then=function(N,u){function E(n,F){return typeof n=="function"?function(h){try{O(n(h))}catch(v){f(v)}}:F}
var O,f,A=new r(function(n,F){O=n;f=F});
this.callWhenSettled_(E(N,O),E(u,f));return A};
r.prototype.catch=function(N){return this.then(void 0,N)};
r.prototype.callWhenSettled_=function(N,u){function E(){switch(O.state_){case 1:N(O.result_);break;case 2:u(O.result_);break;default:throw Error("o`"+O.state_);}}
var O=this;this.onSettledCallbacks_==null?P.asyncExecute(E):this.onSettledCallbacks_.push(E);this.isRejectionHandled_=!0};
r.resolve=I;r.reject=function(N){return new r(function(u,E){E(N)})};
r.race=function(N){return new r(function(u,E){for(var O=_.C(N),f=O.next();!f.done;f=O.next())I(f.value).callWhenSettled_(u,E)})};
r.all=function(N){var u=_.C(N),E=u.next();return E.done?I([]):new r(function(O,f){function A(h){return function(v){n[h]=v;F--;F==0&&O(n)}}
var n=[],F=0;do n.push(void 0),F++,I(E.value).callWhenSettled_(A(n.length-1),f),E=u.next();while(!E.done)})};
return r});
var ql=function(a,z,I){if(a==null)throw new TypeError("p`"+I);if(z instanceof RegExp)throw new TypeError("q`"+I);return a+""};
w0("String.prototype.startsWith",function(a){return a?a:function(z,I){var J=ql(this,z,"startsWith"),r=J.length,P=z.length;I=Math.max(0,Math.min(I|0,J.length));for(var N=0;N<P&&I<r;)if(J[I++]!=z[N++])return!1;return N>=P}});
w0("Object.setPrototypeOf",function(a){return a||m3});
w0("Symbol.dispose",function(a){return a?a:Symbol("r")});
w0("SuppressedError",function(a){function z(I,J,r){if(!(this instanceof z))return new z(I,J,r);r=Error(r);"stack"in r&&(this.stack=r.stack);this.message=r.message;this.error=I;this.suppressed=J}
if(a)return a;_.b(z,Error);z.prototype.name="SuppressedError";return z});
var oUx=function(a,z,I){a instanceof String&&(a=String(a));for(var J=a.length,r=0;r<J;r++){var P=a[r];if(z.call(I,P,r,a))return{i:r,v:P}}return{i:-1,v:void 0}};
w0("Array.prototype.find",function(a){return a?a:function(z,I){return oUx(this,z,I).v}});
w0("WeakMap",function(a){function z(){}
function I(E){var O=typeof E;return O==="object"&&E!==null||O==="function"}
function J(E){if(!Ml(E,P)){var O=new z;nUm(E,P,{value:O})}}
function r(E){var O=Object[E];O&&(Object[E]=function(f){if(f instanceof z)return f;Object.isExtensible(f)&&J(f);return O(f)})}
if(function(){if(!a||!Object.seal)return!1;try{var E=Object.seal({}),O=Object.seal({}),f=new a([[E,2],[O,3]]);if(f.get(E)!=2||f.get(O)!=3)return!1;f.delete(E);f.set(O,4);return!f.has(E)&&f.get(O)==4}catch(A){return!1}}())return a;
var P="$jscomp_hidden_"+Math.random();r("freeze");r("preventExtensions");r("seal");var N=0,u=function(E){this.JSC$8726_id_=(N+=Math.random()+1).toString();if(E){E=_.C(E);for(var O;!(O=E.next()).done;)O=O.value,this.set(O[0],O[1])}};
u.prototype.set=function(E,O){if(!I(E))throw Error("s");J(E);if(!Ml(E,P))throw Error("t`"+E);E[P][this.JSC$8726_id_]=O;return this};
u.prototype.get=function(E){return I(E)&&Ml(E,P)?E[P][this.JSC$8726_id_]:void 0};
u.prototype.has=function(E){return I(E)&&Ml(E,P)&&Ml(E[P],this.JSC$8726_id_)};
u.prototype.delete=function(E){return I(E)&&Ml(E,P)&&Ml(E[P],this.JSC$8726_id_)?delete E[P][this.JSC$8726_id_]:!1};
return u});
w0("Map",function(a){if(function(){if(!a||typeof a!="function"||!a.prototype.entries||typeof Object.seal!="function")return!1;try{var u=Object.seal({x:4}),E=new a(_.C([[u,"s"]]));if(E.get(u)!="s"||E.size!=1||E.get({x:4})||E.set({x:4},"t")!=E||E.size!=2)return!1;var O=E.entries(),f=O.next();if(f.done||f.value[0]!=u||f.value[1]!="s")return!1;f=O.next();return f.done||f.value[0].x!=4||f.value[1]!="t"||!O.next().done?!1:!0}catch(A){return!1}}())return a;
var z=new WeakMap,I=function(u){this[0]={};this[1]=P();this.size=0;if(u){u=_.C(u);for(var E;!(E=u.next()).done;)E=E.value,this.set(E[0],E[1])}};
I.prototype.set=function(u,E){u=u===0?0:u;var O=J(this,u);O.list||(O.list=this[0][O.id]=[]);O.entry?O.entry.value=E:(O.entry={next:this[1],previous:this[1].previous,head:this[1],key:u,value:E},O.list.push(O.entry),this[1].previous.next=O.entry,this[1].previous=O.entry,this.size++);return this};
I.prototype.delete=function(u){u=J(this,u);return u.entry&&u.list?(u.list.splice(u.index,1),u.list.length||delete this[0][u.id],u.entry.previous.next=u.entry.next,u.entry.next.previous=u.entry.previous,u.entry.head=null,this.size--,!0):!1};
I.prototype.clear=function(){this[0]={};this[1]=this[1].previous=P();this.size=0};
I.prototype.has=function(u){return!!J(this,u).entry};
I.prototype.get=function(u){return(u=J(this,u).entry)&&u.value};
I.prototype.entries=function(){return r(this,function(u){return[u.key,u.value]})};
I.prototype.keys=function(){return r(this,function(u){return u.key})};
I.prototype.values=function(){return r(this,function(u){return u.value})};
I.prototype.forEach=function(u,E){for(var O=this.entries(),f;!(f=O.next()).done;)f=f.value,u.call(E,f[1],f[0],this)};
I.prototype[Symbol.iterator]=I.prototype.entries;var J=function(u,E){var O=E&&typeof E;O=="object"||O=="function"?z.has(E)?O=z.get(E):(O=""+ ++N,z.set(E,O)):O="p_"+E;var f=u[0][O];if(f&&Ml(u[0],O))for(u=0;u<f.length;u++){var A=f[u];if(E!==E&&A.key!==A.key||E===A.key)return{id:O,list:f,index:u,entry:A}}return{id:O,list:f,index:-1,entry:void 0}},r=function(u,E){var O=u[1];
return FTG(function(){if(O){for(;O.head!=u[1];)O=O.previous;for(;O.next!=O.head;)return O=O.next,{done:!1,value:E(O)};O=null}return{done:!0,value:void 0}})},P=function(){var u={};
return u.previous=u.next=u.head=u},N=0;
return I});
w0("Set",function(a){if(function(){if(!a||typeof a!="function"||!a.prototype.entries||typeof Object.seal!="function")return!1;try{var I=Object.seal({x:4}),J=new a(_.C([I]));if(!J.has(I)||J.size!=1||J.add(I)!=J||J.size!=1||J.add({x:4})!=J||J.size!=2)return!1;var r=J.entries(),P=r.next();if(P.done||P.value[0]!=I||P.value[1]!=I)return!1;P=r.next();return P.done||P.value[0]==I||P.value[0].x!=4||P.value[1]!=P.value[0]?!1:r.next().done}catch(N){return!1}}())return a;
var z=function(I){this.JSC$8740_map_=new Map;if(I){I=_.C(I);for(var J;!(J=I.next()).done;)this.add(J.value)}this.size=this.JSC$8740_map_.size};
z.prototype.add=function(I){I=I===0?0:I;this.JSC$8740_map_.set(I,I);this.size=this.JSC$8740_map_.size;return this};
z.prototype.delete=function(I){I=this.JSC$8740_map_.delete(I);this.size=this.JSC$8740_map_.size;return I};
z.prototype.clear=function(){this.JSC$8740_map_.clear();this.size=0};
z.prototype.has=function(I){return this.JSC$8740_map_.has(I)};
z.prototype.entries=function(){return this.JSC$8740_map_.entries()};
z.prototype.values=function(){return this.JSC$8740_map_.values()};
z.prototype.keys=z.prototype.values;z.prototype[Symbol.iterator]=z.prototype.values;z.prototype.forEach=function(I,J){var r=this;this.JSC$8740_map_.forEach(function(P){return I.call(J,P,P,r)})};
return z});
w0("Math.log2",function(a){return a?a:function(z){return Math.log(z)/Math.LN2}});
w0("Object.values",function(a){return a?a:function(z){var I=[],J;for(J in z)Ml(z,J)&&I.push(z[J]);return I}});
w0("Object.is",function(a){return a?a:function(z,I){return z===I?z!==0||1/z===1/I:z!==z&&I!==I}});
w0("Array.prototype.includes",function(a){return a?a:function(z,I){var J=this;J instanceof String&&(J=String(J));var r=J.length;I=I||0;for(I<0&&(I=Math.max(I+r,0));I<r;I++){var P=J[I];if(P===z||Object.is(P,z))return!0}return!1}});
w0("String.prototype.includes",function(a){return a?a:function(z,I){return ql(this,z,"includes").indexOf(z,I||0)!==-1}});
w0("Array.from",function(a){return a?a:function(z,I,J){I=I!=null?I:function(u){return u};
var r=[],P=typeof Symbol!="undefined"&&Symbol.iterator&&z[Symbol.iterator];if(typeof P=="function"){z=P.call(z);for(var N=0;!(P=z.next()).done;)r.push(I.call(J,P.value,N++))}else for(P=z.length,N=0;N<P;N++)r.push(I.call(J,z[N],N));return r}});
w0("Object.entries",function(a){return a?a:function(z){var I=[],J;for(J in z)Ml(z,J)&&I.push([J,z[J]]);return I}});
w0("Number.isFinite",function(a){return a?a:function(z){return typeof z!=="number"?!1:!isNaN(z)&&z!==Infinity&&z!==-Infinity}});
w0("Number.MAX_SAFE_INTEGER",function(){return 9007199254740991});
w0("Number.MIN_SAFE_INTEGER",function(){return-9007199254740991});
w0("Number.isInteger",function(a){return a?a:function(z){return Number.isFinite(z)?z===Math.floor(z):!1}});
w0("Number.isSafeInteger",function(a){return a?a:function(z){return Number.isInteger(z)&&Math.abs(z)<=Number.MAX_SAFE_INTEGER}});
w0("String.prototype.endsWith",function(a){return a?a:function(z,I){var J=ql(this,z,"endsWith");I===void 0&&(I=J.length);I=Math.max(0,Math.min(I|0,J.length));for(var r=z.length;r>0&&I>0;)if(J[--I]!=z[--r])return!1;return r<=0}});
var Ujm=function(a,z){a instanceof String&&(a+="");var I=0,J=!1,r={next:function(){if(!J&&I<a.length){var P=I++;return{value:z(P,a[P]),done:!1}}J=!0;return{done:!0,value:void 0}}};
r[Symbol.iterator]=function(){return r};
return r};
w0("Array.prototype.entries",function(a){return a?a:function(){return Ujm(this,function(z,I){return[z,I]})}});
w0("Math.trunc",function(a){return a?a:function(z){z=Number(z);if(isNaN(z)||z===Infinity||z===-Infinity||z===0)return z;var I=Math.floor(Math.abs(z));return z<0?-I:I}});
w0("Number.isNaN",function(a){return a?a:function(z){return typeof z==="number"&&isNaN(z)}});
w0("Array.prototype.keys",function(a){return a?a:function(){return Ujm(this,function(z){return z})}});
w0("Array.prototype.values",function(a){return a?a:function(){return Ujm(this,function(z,I){return I})}});
w0("Array.prototype.fill",function(a){return a?a:function(z,I,J){var r=this.length||0;I<0&&(I=Math.max(0,r+I));if(J==null||J>r)J=r;J=Number(J);J<0&&(J=Math.max(0,r+J));for(I=Number(I||0);I<J;I++)this[I]=z;return this}});
var ei=function(a){return a?a:Array.prototype.fill};
w0("Int8Array.prototype.fill",ei);w0("Uint8Array.prototype.fill",ei);w0("Uint8ClampedArray.prototype.fill",ei);w0("Int16Array.prototype.fill",ei);w0("Uint16Array.prototype.fill",ei);w0("Int32Array.prototype.fill",ei);w0("Uint32Array.prototype.fill",ei);w0("Float32Array.prototype.fill",ei);w0("Float64Array.prototype.fill",ei);
w0("Object.fromEntries",function(a){return a?a:function(z){var I={};if(!(Symbol.iterator in z))throw new TypeError("u`"+z);z=z[Symbol.iterator].call(z);for(var J=z.next();!J.done;J=z.next()){J=J.value;if(Object(J)!==J)throw new TypeError("v");I[J[0]]=J[1]}return I}});
w0("String.prototype.replaceAll",function(a){return a?a:function(z,I){if(z instanceof RegExp&&!z.global)throw new TypeError("w");return z instanceof RegExp?this.replace(z,I):this.replace(new RegExp(String(z).replace(/([-()\[\]{}+?*.$\^|,:#<!\\])/g,"\\$1").replace(/\x08/g,"\\x08"),"g"),I)}});
w0("Object.getOwnPropertySymbols",function(a){return a?a:function(){return[]}});
w0("String.prototype.repeat",function(a){return a?a:function(z){var I=ql(this,null,"repeat");if(z<0||z>1342177279)throw new RangeError("x");z|=0;for(var J="";z;)if(z&1&&(J+=I),z>>>=1)I+=I;return J}});
w0("Array.prototype.findIndex",function(a){return a?a:function(z,I){return oUx(this,z,I).i}});
w0("Array.prototype.flatMap",function(a){return a?a:function(z,I){var J=[];Array.prototype.forEach.call(this,function(r,P){r=z.call(I,r,P,this);Array.isArray(r)?J.push.apply(J,r):J.push(r)});
return J}});
w0("String.prototype.codePointAt",function(a){return a?a:function(z){var I=ql(this,null,"codePointAt"),J=I.length;z=Number(z)||0;if(z>=0&&z<J){z|=0;var r=I.charCodeAt(z);if(r<55296||r>56319||z+1===J)return r;z=I.charCodeAt(z+1);return z<56320||z>57343?r:(r-55296)*1024+z+9216}}});
w0("String.fromCodePoint",function(a){return a?a:function(z){for(var I="",J=0;J<arguments.length;J++){var r=Number(arguments[J]);if(r<0||r>1114111||r!==Math.floor(r))throw new RangeError("y`"+r);r<=65535?I+=String.fromCharCode(r):(r-=65536,I+=String.fromCharCode(r>>>10&1023|55296),I+=String.fromCharCode(r&1023|56320))}return I}});
w0("String.prototype.trimLeft",function(a){function z(){return this.replace(/^[\s\xa0]+/,"")}
return a||z});
w0("String.prototype.trimStart",function(a){return a||String.prototype.trimLeft});
w0("String.prototype.padStart",function(a){return a?a:function(z,I){var J=ql(this,null,"padStart");z-=J.length;I=I!==void 0?String(I):" ";return(z>0&&I?I.repeat(Math.ceil(z/I.length)).substring(0,z):"")+J}});
w0("Promise.prototype.finally",function(a){return a?a:function(z){return this.then(function(I){return Promise.resolve(z()).then(function(){return I})},function(I){return Promise.resolve(z()).then(function(){throw I;
})})}});
w0("Math.imul",function(a){return a?a:function(z,I){z=Number(z);I=Number(I);var J=z&65535,r=I&65535;return J*r+((z>>>16&65535)*r+J*(I>>>16&65535)<<16>>>0)|0}});
w0("Object.hasOwn",function(a){return a?a:function(z,I){return Object.prototype.hasOwnProperty.call(z,I)}});
w0("Math.sign",function(a){return a?a:function(z){z=Number(z);return z===0||isNaN(z)?z:z>0?1:-1}});
w0("Array.prototype.flat",function(a){return a?a:function(z){z=z===void 0?1:z;var I=[];Array.prototype.forEach.call(this,function(J){Array.isArray(J)&&z>0?(J=Array.prototype.flat.call(J,z-1),I.push.apply(I,J)):I.push(J)});
return I}});
w0("String.raw",function(a){return a?a:function(z,I){if(z==null)throw new TypeError("z");for(var J=z.raw,r=J.length,P="",N=0;N<r;++N)P+=J[N],N+1<r&&N+1<arguments.length&&(P+=String(arguments[N+1]));return P}});
w0("Reflect.ownKeys",function(a){return a?a:function(z){var I=[],J=Object.getOwnPropertyNames(z);z=Object.getOwnPropertySymbols(z);for(var r=0;r<J.length;r++)(J[r].substring(0,14)=="jscomp_symbol_"?z:I).push(J[r]);return I.concat(z)}});
w0("Object.getOwnPropertyDescriptors",function(a){return a?a:function(z){for(var I={},J=Reflect.ownKeys(z),r=0;r<J.length;r++)I[J[r]]=Object.getOwnPropertyDescriptor(z,J[r]);return I}});
w0("WeakSet",function(a){if(function(){if(!a||!Object.seal)return!1;try{var I=Object.seal({}),J=Object.seal({}),r=new a([I]);if(!r.has(I)||r.has(J))return!1;r.delete(I);r.add(J);return!r.has(I)&&r.has(J)}catch(P){return!1}}())return a;
var z=function(I){this.JSC$8747_map_=new WeakMap;if(I){I=_.C(I);for(var J;!(J=I.next()).done;)this.add(J.value)}};
z.prototype.add=function(I){this.JSC$8747_map_.set(I,!0);return this};
z.prototype.has=function(I){return this.JSC$8747_map_.has(I)};
z.prototype.delete=function(I){return this.JSC$8747_map_.delete(I)};
return z});
w0("Promise.allSettled",function(a){function z(J){return{status:"fulfilled",value:J}}
function I(J){return{status:"rejected",reason:J}}
return a?a:function(J){var r=this;J=Array.from(J,function(P){return r.resolve(P).then(z,I)});
return r.all(J)}});
w0("Number.parseInt",function(a){return a||parseInt});
_._DumpException=window._DumpException||function(a){throw a;};
window._DumpException=_._DumpException;var Dj7=window.ytcsi;Dj7&&typeof Dj7.tick==="function"&&Dj7.tick("rses_dpj");var RW$,as,jQ,zL,LT3,lnG,p6I,w6G,FM,mjG;RW$=RW$||{};_.IE=this||self;_.qe=function(a,z,I){a=a.split(".");I=I||_.IE;for(var J;a.length&&(J=a.shift());)a.length||z===void 0?I[J]&&I[J]!==Object.prototype[J]?I=I[J]:I=I[J]={}:I[J]=z};
as=function(a,z){var I=_.DH("WIZ_global_data.oxN3nb");a=I&&I[a];return a!=null?a:z};
jQ=_.IE._F_toggles_default_kevlar_base||[];zL=function(){};
zL.get=function(){return null};
_.DH=function(a,z){a=a.split(".");z=z||_.IE;for(var I=0;I<a.length;I++)if(z=z[a[I]],z==null)return null;return z};
_.Is=function(a){a.instance_=void 0;a.getInstance=function(){return a.instance_?a.instance_:a.instance_=new a}};
_.pl=function(a){var z=typeof a;return z!="object"?z:a?Array.isArray(a)?"array":z:"null"};
_.lG=function(a){var z=_.pl(a);return z=="array"||z=="object"&&typeof a.length=="number"};
_.md=function(a){var z=typeof a;return z=="object"&&a!=null||z=="function"};
_.yx=function(a){return Object.prototype.hasOwnProperty.call(a,LT3)&&a[LT3]||(a[LT3]=++lnG)};
LT3="closure_uid_"+(Math.random()*1E9>>>0);lnG=0;p6I=function(a,z,I){return a.call.apply(a.bind,arguments)};
w6G=function(a,z,I){if(!a)throw Error();if(arguments.length>2){var J=Array.prototype.slice.call(arguments,2);return function(){var r=Array.prototype.slice.call(arguments);Array.prototype.unshift.apply(r,J);return a.apply(z,r)}}return function(){return a.apply(z,arguments)}};
_.HW=function(a,z,I){_.HW=Function.prototype.bind&&Function.prototype.bind.toString().indexOf("native code")!=-1?p6I:w6G;return _.HW.apply(null,arguments)};
_.nt=function(a,z){var I=Array.prototype.slice.call(arguments,1);return function(){var J=I.slice();J.push.apply(J,arguments);return a.apply(this,J)}};
_.JY=function(){return Date.now()};
FM=function(a){return a};
_.rL=function(a,z){function I(){}
I.prototype=z.prototype;a.superClass_=z.prototype;a.prototype=new I;a.prototype.constructor=a;a.base=function(J,r,P){for(var N=Array(arguments.length-2),u=2;u<arguments.length;u++)N[u-2]=arguments[u];return z.prototype[r].apply(J,N)}};
mjG=function(a){return a};var yn$,k5p;_.L=function(a,z,I,J){var r=arguments.length,P=r<3?z:J===null?J=Object.getOwnPropertyDescriptor(z,I):J,N;if(Reflect&&typeof Reflect==="object"&&typeof Reflect.decorate==="function")P=Reflect.decorate(a,z,I,J);else for(var u=a.length-1;u>=0;u--)if(N=a[u])P=(r<3?N(P):r>3?N(z,I,P):N(z,I))||P;r>3&&P&&Object.defineProperty(z,I,P)};
_.p=function(a,z){if(Reflect&&typeof Reflect==="object"&&typeof Reflect.metadata==="function")return Reflect.metadata(a,z)};
yn$=function(a,z){if(z!==null&&z!==void 0){if(typeof z!=="object"&&typeof z!=="function")throw new TypeError("A");if(I===void 0){if(!Symbol.dispose)throw new TypeError("C");var I=z[Symbol.dispose]}if(typeof I!=="function")throw new TypeError("D");a.stack.push({value:z,dispose:I,async:!1})}return z};
k5p=function(a){function z(P){a.error=a.hasError?new SuppressedError(P,a.error,"An error was suppressed during disposal."):P;a.hasError=!0}
function I(){for(;J=a.stack.pop();)try{if(!J.async&&r===1)return r=0,a.stack.push(J),Promise.resolve().then(I);if(J.dispose){var P=J.dispose.call(J.value);if(J.async)return r|=2,Promise.resolve(P).then(I,function(N){z(N);return I()})}else r|=1}catch(N){z(N)}if(r===1)return a.hasError?Promise.reject(a.error):Promise.resolve();
if(a.hasError)throw a.error;}
var J,r=0;I()};_.rL(_.aE,Error);_.aE.prototype.name="CustomError";var M7G;var cn7=void 0,YyO,qyx=typeof TextDecoder!=="undefined",Ii3,zIO=typeof String.prototype.isWellFormed==="function",jEG=typeof TextEncoder!=="undefined";var eWm;_.Ko=function(a){for(var z=[],I=0,J=0;J<a.length;J++){var r=a.charCodeAt(J);r<128?z[I++]=r:(r<2048?z[I++]=r>>6|192:((r&64512)==55296&&J+1<a.length&&(a.charCodeAt(J+1)&64512)==56320?(r=65536+((r&1023)<<10)+(a.charCodeAt(++J)&1023),z[I++]=r>>18|240,z[I++]=r>>12&63|128):z[I++]=r>>12|224,z[I++]=r>>6&63|128),z[I++]=r&63|128)}return z};
eWm=function(a){for(var z=[],I=0,J=0;I<a.length;){var r=a[I++];if(r<128)z[J++]=String.fromCharCode(r);else if(r>191&&r<224){var P=a[I++];z[J++]=String.fromCharCode((r&31)<<6|P&63)}else if(r>239&&r<365){P=a[I++];var N=a[I++],u=a[I++];r=((r&7)<<18|(P&63)<<12|(N&63)<<6|u&63)-65536;z[J++]=String.fromCharCode(55296+(r>>10));z[J++]=String.fromCharCode(56320+(r&1023))}else P=a[I++],N=a[I++],z[J++]=String.fromCharCode((r&15)<<12|(P&63)<<6|N&63)}return z.join("")};var g$=String.prototype.trim?function(a){return a.trim()}:function(a){return/^[\s\xa0]*([\s\S]*?)[\s\xa0]*$/.exec(a)[1]},aSI=/&/g,jYi=/</g,z57=/>/g,IS7=/"/g,JmG=/'/g,rmI=/\x00/g,PS7=/[\x00&<>"']/;var Pb=!!(jQ[0]>>15&1),Z7M=!!(jQ[0]&1024),CSx=!!(jQ[0]>>16&1),NCG=!!(jQ[0]&8),t20=!!(jQ[0]&2),u9M=!!(jQ[0]&4),Eg3=!!(jQ[0]&16),BCi=!!(jQ[0]&128);var ggi=as(1,!0),sm=Pb?CSx:as(610401301,!1),O7i=Pb?NCG:as(772657768,!1),fSi=Pb?t20:as(513659523,!1),AmG=Pb?Z7M||!u9M:as(568333945,!0),VO$=Pb?Eg3:as(1331761403,!1),OZx=Pb?Z7M||!BCi:as(748402147,ggi);var KG,sYM=_.IE.navigator;KG=sYM?sYM.userAgentData||null:null;var yE;_.d$=function(a,z){return Array.prototype.indexOf.call(a,z,void 0)};
_.l1=function(a,z,I){Array.prototype.forEach.call(a,z,I)};
_.Z8=function(a,z,I){return Array.prototype.filter.call(a,z,I)};
_.vH=function(a,z,I){return Array.prototype.map.call(a,z,I)};
yE=function(a,z,I){return Array.prototype.some.call(a,z,I)};
_.rrp=function(a,z,I){return Array.prototype.every.call(a,z,I)};var Cn=function(a){Cn[" "](a);return a};
Cn[" "]=function(){};
var HBm=function(a,z){try{return Cn(a[z]),!0}catch(I){}return!1},OIx=function(a,z,I,J){J=J?J(z):z;
return Object.prototype.hasOwnProperty.call(a,J)?a[J]:a[J]=I(z)};var ng0,cy,KQ7,FQ3,b7O,h5x,jo1,V2G,QYI,SIp,BKE,xw7,vgm,TC$,dwG,WQi;_.Kux=function(){return _.IE.navigator||null};
ng0=ZGp();_.NS=CG3();cy=F0("Edge");KQ7=cy||_.NS;_.tY=F0("Gecko")&&!(_.uG(_.fG(),"WebKit")&&!F0("Edge"))&&!(F0("Trident")||F0("MSIE"))&&!F0("Edge");_.ue=_.uG(_.fG(),"WebKit")&&!F0("Edge");FQ3=_.ue&&F0("Mobile");_.H7x=_.A1i();b7O=_.sEp();h5x=(x7()?KG.platform==="Linux":F0("Linux"))||_.n7d();jo1=_.OGG();V2G=fiG();QYI=F0("iPad");SIp=F0("iPod");_.i7E=_.vp();BKE=_.uG(_.fG(),"KaiOS");xw7=function(){var a=_.IE.document;return a?a.documentMode:void 0};
a:{var G80="",$wx=function(){var a=_.fG();if(_.tY)return/rv:([^\);]+)(\)|;)/.exec(a);if(cy)return/Edge\/([\d\.]+)/.exec(a);if(_.NS)return/\b(?:MSIE|rv)[: ]([^\);]+)(\)|;)/.exec(a);if(_.ue)return/WebKit\/(\S+)/.exec(a);if(ng0)return/(?:Version)[ \/]?(\S+)/.exec(a)}();
$wx&&(G80=$wx?$wx[1]:"");if(_.NS){var XCd=xw7();if(XCd!=null&&XCd>parseFloat(G80)){vgm=String(XCd);break a}}vgm=G80}TC$=vgm;dwG={};_.EB=function(a){return OIx(dwG,a,function(){return _.Om(TC$,a)>=0})};
if(_.IE.document&&_.NS){var og7=xw7();WQi=og7?og7:parseInt(TC$,10)||void 0}else WQi=void 0;_.Uw3=WQi;var H5G,b5G,DwM;_.Bb=Qx();H5G=fiG()||F0("iPod");b5G=F0("iPad");DwM=_.u0G();_.gL=_.iG();_.Wy=_.tM0()&&!_.vp();var R5x,OB,Rt0,Cfi,lS1,LQ7;R5x={};OB=null;Rt0=_.tY||_.ue||typeof _.IE.btoa=="function";_.he=function(a,z){z===void 0&&(z=0);LQ7();z=R5x[z];for(var I=Array(Math.floor(a.length/3)),J=z[64]||"",r=0,P=0;r<a.length-2;r+=3){var N=a[r],u=a[r+1],E=a[r+2],O=z[N>>2];N=z[(N&3)<<4|u>>4];u=z[(u&15)<<2|E>>6];E=z[E&63];I[P++]=O+N+u+E}O=0;E=J;switch(a.length-r){case 2:O=a[r+1],E=z[(O&15)<<2]||J;case 1:a=a[r],I[P]=z[a>>2]+z[(a&3)<<4|O>>4]+E+J}return I.join("")};
Cfi=function(a){var z="";lS1(a,function(I){z+=String.fromCharCode(I)});
return z};
_.R8E=function(a){var z=[];lS1(a,function(I){z.push(I)});
return z};
_.cp=function(a){var z=a.length,I=z*3/4;I%3?I=Math.floor(I):_.t1("=.",a[z-1])&&(I=_.t1("=.",a[z-2])?I-2:I-1);var J=new Uint8Array(I),r=0;lS1(a,function(P){J[r++]=P});
return r!==I?J.subarray(0,r):J};
lS1=function(a,z){function I(E){for(;J<a.length;){var O=a.charAt(J++),f=OB[O];if(f!=null)return f;if(!_.NO(O))throw Error("H`"+O);}return E}
LQ7();for(var J=0;;){var r=I(-1),P=I(0),N=I(64),u=I(64);if(u===64&&r===-1)break;z(r<<2|P>>4);N!=64&&(z(P<<4&240|N>>2),u!=64&&z(N<<6&192|u))}};
LQ7=function(){if(!OB){OB={};for(var a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789".split(""),z=["+/=","+/","-_=","-_.","-_"],I=0;I<5;I++){var J=a.concat(z[I].split(""));R5x[I]=J;for(var r=0;r<J.length;r++){var P=J[r];OB[P]===void 0&&(OB[P]=r)}}}};var wpi=typeof Uint8Array!=="undefined",Xp0=!_.NS&&typeof btoa==="function",T$3=/[-_.]/g,G3E={"-":"+",_:"/",".":"="},ho={};var nl,wC1;nl=function(a,z){if(z!==ho)throw Error("J");this.JSC$8777_value_=a;if(a!=null&&a.length===0)throw Error("I");};
_.Vi=function(){return pC3||(pC3=new nl(null,ho))};
wC1=function(a){return new Uint8Array(oZ0(a)||0)};
nl.prototype.isEmpty=function(){return this.JSC$8777_value_==null};
nl.prototype.sizeBytes=function(){var a=oZ0(this);return a?a.length:0};
var oZ0=function(a){if(ho!==ho)throw Error("J");var z=a.JSC$8777_value_;z==null||wpi&&z!=null&&z instanceof Uint8Array||(typeof z==="string"?z=dOx(z):(_.pl(z),z=null));return z==null?z:a.JSC$8777_value_=z},pC3;var o70=void 0;var Jo=typeof Symbol==="function"&&typeof Symbol()==="symbol",mw$=jI("jas",void 0,!0),TfE=jI(void 0,"0di"),c4=jI(void 0,"1oa"),b0=jI(void 0,Symbol()),YOG=jI(void 0,"0ub"),evG=jI(void 0,"0ubs"),AxM=jI(void 0,"0ubsb"),AeG=jI(void 0,"0actk"),OG=jI("m_m","messagePrototypeMarker",!0),NE$=jI(void 0,"vps"),kJO=jI();var RII,DOO,LZ,ymO;RII={internalArrayState:{value:0,configurable:!0,writable:!0,enumerable:!1}};DOO=Object.defineProperties;_.rf=Jo?mw$:"internalArrayState";ymO=[];Zj(ymO,7);LZ=Object.freeze(ymO);var Ae={},uw={},k8O=function(a,z,I){this.iterable=a;this.mapper=z;this.thisArg=I};
k8O.prototype.next=function(){var a=this.iterable.next();a.done||(a.value=this.mapper.call(this.thisArg,a.value));return a};
k8O.prototype[Symbol.iterator]=function(){return this};
var M2d=Object.freeze({}),xG={};_.cm3=$G(function(a){return a!==null&&a!==void 0});var YmE=$G(function(a){return typeof a==="number"}),c1E=$G(function(a){return typeof a==="string"}),eIG=$G(function(a){return typeof a==="boolean"}),YIi=$G(function(a){return a!=null&&typeof a==="object"&&typeof a.then==="function"}),lvm=$G(function(a){return typeof a==="function"}),ah=$G(function(a){return!!a&&(typeof a==="object"||typeof a==="function")});var qmx=typeof _.IE.BigInt==="function"&&typeof _.IE.BigInt(0)==="bigint";var il1=$G(function(a){return qmx?a>=qIm&&a<=e5E:a[0]==="-"?ajI(a,a$O):ajI(a,jB1)}),a$O=Number.MIN_SAFE_INTEGER.toString(),qIm=qmx?BigInt(Number.MIN_SAFE_INTEGER):void 0,jB1=Number.MAX_SAFE_INTEGER.toString(),e5E=qmx?BigInt(Number.MAX_SAFE_INTEGER):void 0;var zm$=typeof Uint8Array.prototype.slice==="function",df=0,We=0,K9$;var IZ,P4,wf,CZ,u1$;IZ=typeof BigInt==="function"?BigInt.asIntN:void 0;_.N0=typeof BigInt==="function"?BigInt.asUintN:void 0;P4=Number.isSafeInteger;wf=Number.isFinite;CZ=Math.trunc;u1$=/^-?([1-9][0-9]*|0)(\.[0-9]+)?$/;var tfO={};var weM={},I$m=function(){try{var a=function(){return bk1(Map,[],this.constructor)};
_.b(a,Map);Cn(new a);return!1}catch(z){return!0}}(),fn=function(){this.JSC$8797_map_=new Map};
_.Z=fn.prototype;_.Z.get=function(a){return this.JSC$8797_map_.get(a)};
_.Z.set=function(a,z){this.JSC$8797_map_.set(a,z);this.size=this.JSC$8797_map_.size;return this};
_.Z.delete=function(a){a=this.JSC$8797_map_.delete(a);this.size=this.JSC$8797_map_.size;return a};
_.Z.clear=function(){this.JSC$8797_map_.clear();this.size=this.JSC$8797_map_.size};
_.Z.has=function(a){return this.JSC$8797_map_.has(a)};
_.Z.entries=function(){return this.JSC$8797_map_.entries()};
_.Z.keys=function(){return this.JSC$8797_map_.keys()};
_.Z.values=function(){return this.JSC$8797_map_.values()};
_.Z.forEach=function(a,z){return this.JSC$8797_map_.forEach(a,z)};
fn.prototype[Symbol.iterator]=function(){return this.entries()};
var i0=function(){if(I$m)return Object.setPrototypeOf(fn.prototype,Map.prototype),Object.defineProperties(fn.prototype,{size:{value:0,configurable:!0,enumerable:!0,writable:!0}}),fn;var a=function(){return bk1(Map,[],this.constructor)};
_.b(a,Map);return a}(),KZ=function(a,z,I,J){I=I===void 0?DEG:I;
J=J===void 0?DEG:J;var r=i0.call(this)||this;r.arrayState=a[_.rf]|0;r.valueCtor=z;r.keyToApi=I;r.valueToApi=r.valueCtor?LX$:J;for(var P=0;P<a.length;P++){var N=a[P],u=I(N[0],!1,!0),E=N[1];z?E===void 0&&(E=null):E=J(N[1],!1,!0,void 0,void 0,r.arrayState);i0.prototype.set.call(r,u,E)}return r};
_.b(KZ,i0);var JwO=function(a){if(a.arrayState&2)throw Error("N");};
_.Z=KZ.prototype;_.Z.clear=function(){JwO(this);i0.prototype.clear.call(this)};
_.Z.delete=function(a){JwO(this);return i0.prototype.delete.call(this,this.keyToApi(a,!0,!1))};
_.Z.entries=function(){if(this.valueCtor){var a=i0.prototype.keys.call(this);a=new k8O(a,lj0,this)}else a=i0.prototype.entries.call(this);return a};
_.Z.values=function(){if(this.valueCtor){var a=i0.prototype.keys.call(this);a=new k8O(a,KZ.prototype.get,this)}else a=i0.prototype.values.call(this);return a};
_.Z.forEach=function(a,z){this.valueCtor?i0.prototype.forEach.call(this,function(I,J,r){a.call(z,r.get(J),J,r)}):i0.prototype.forEach.call(this,a,z)};
_.Z.set=function(a,z){JwO(this);a=this.keyToApi(a,!0,!1);return a==null?this:z==null?(i0.prototype.delete.call(this,a),this):i0.prototype.set.call(this,a,this.valueToApi(z,!0,!0,this.valueCtor,!1,this.arrayState))};
_.Z.has=function(a){return i0.prototype.has.call(this,this.keyToApi(a,!1,!1))};
_.Z.get=function(a){a=this.keyToApi(a,!1,!1);var z=i0.prototype.get.call(this,a);if(z!==void 0){var I=this.valueCtor;return I?(I=this.valueToApi(z,!1,!0,I,this.callToMutableOnAccess,this.arrayState),I!==z&&i0.prototype.set.call(this,a,I),I):z}};
KZ.prototype[Symbol.iterator]=function(){return this.entries()};
KZ.prototype.toJSON=void 0;var peM;var IEI=function(){},jZx=function(a,z){for(var I in a)!isNaN(I)&&z(a,+I,a[I])},Jei=function(a){var z=new IEI;
jZx(a,function(I,J,r){z[J]=Dj(r)});
z.reviveUnknownFields=a.reviveUnknownFields;return z},MIG={reviveIntoImmutable:!0};var ziE;var uMp,EZx;var rwE,yV,g2,nv,PR3,hY,AJ,Zb0,CR1,ie,Npx,xR,$R,Xg;rwE=_.X1(0);_.AY={};_.sB=function(a,z,I,J,r){z=yV(a.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,z,I,r);if(z!==null||J&&a.noLegacyNull!==uw)return z};
yV=function(a,z,I,J){if(z===-1)return null;var r=z+(I?0:-1),P=a.length-1;if(!(P<1+(I?0:-1))){if(r>=P){var N=a[P];if(N!=null&&typeof N==="object"&&N.constructor===Object){I=N[z];var u=!0}else if(r===P)I=N;else return}else I=a[r];if(J&&I!=null){J=J(I);if(J==null)return J;if(!Object.is(J,I))return u?N[z]=J:a[r]=J,J}return I}};
_.PL=function(a,z,I,J){oZ(a);var r=a.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;DE(r,r[_.rf]|0,z,I,J);return a};
_.nn=function(a,z,I){a=a.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;return $03(a,a[_.rf]|0,z,I)!==void 0};
_.Kn=function(a,z,I,J){var r=a.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;return $03(r,r[_.rf]|0,z,nv(a,J,I))!==void 0};
_.jW=function(a){return a===M2d?2:4};
_.Fg=function(a,z){a=_.sB(a,z,void 0,void 0,QZ0);return a==null?_.Vi():a};
g2=function(a,z,I,J){oZ(a);var r=a.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,P=r[_.rf]|0;if(J==null){var N=x0E(r);if(vZI(N,r,P,I)===z)N.set(I,0);else return a}else P=GYi(r,P,I,z);DE(r,P,z,J);return a};
_.Hb=function(a,z,I,J){var r=a[_.rf]|0,P=ve(r);r=GYi(a,r,I,z,P);DE(a,r,z,J,P)};
nv=function(a,z,I){return _.be(a,z)===I?I:-1};
_.be=function(a,z){a=a.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;return vZI(x0E(a),a,void 0,z,void 0)};
PR3=function(a,z,I){var J=a[_.rf]|0,r=ve(J),P=yV(a,I,r);if(P!=null&&P[OG]===Ae){if(!EO(P))return W4(P),P.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;var N=P.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows}else Array.isArray(P)&&(N=P);if(N){var u=N[_.rf]|0;u&2&&(N=$Z(N,u))}N=gZ$(N,z,!0);N!==P&&DE(a,J,I,N,r);return N};
_.JC=function(a,z,I,J){var r=a.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,P=r[_.rf]|0;z=$03(r,P,z,I,J);if(z==null)return z;P=r[_.rf]|0;if(!EO(a,P)){var N=Rvp(z);N!==z&&(W4(a)&&(r=a.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,P=r[_.rf]|0),z=N,P=DE(r,P,I,z,J),UG(r,P))}return z};
_.af=function(a,z,I,J){var r=a.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;return X4p(a,r,r[_.rf]|0,z,I,J,!1,!0)};
_.gO=function(a,z,I,J){I=TE7(I);_.PL(a,z,I,J);I&&!EO(I)&&UG(a.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows);return a};
_.Oa=function(a,z,I,J){J=TE7(J);g2(a,z,I,J);J&&!EO(J)&&UG(a.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows);return a};
hY=function(a,z,I){oZ(a);var J=a.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,r=J[_.rf]|0;if(I==null)return DE(J,r,z),a;for(var P=I===LZ?7:I[_.rf]|0,N=P,u=mz(P),E=u||Object.isFrozen(I),O=!0,f=!0,A=0;A<I.length;A++){var n=I[A];u||(n=EO(n),O&&(O=!n),f&&(f=n))}u||(P=O?13:5,P=f?P&-4097:P|4096);E&&P===N||(I=Dj(I),N=0,P=l0(P,r));P!==N&&Zj(I,P);r=DE(J,r,z,I);2&P||!(4096&P||16&P)||UG(J,r);return a};
AJ=function(a,z,I,J){Wz3(a,z,I,J);return a};
Zb0=function(a,z,I){Wz3(a,z,Vg,void 0,I,1,!0);return a};
_.Qg=function(a,z,I){a=_.sB(a,z,void 0,I);z=typeof a;a=a==null?a:z==="bigint"?_.X1((0,_.N0)(64,a)):_.mX(a)?z==="string"?_.SO7(a):_.VIx(a):void 0;return a};
_.SQ=function(a,z){var I=I===void 0?!1:I;var J;return(J=_.tIG(_.sB(a,z)))!=null?J:I};
_.za=function(a,z,I){I=I===void 0?0:I;var J;return(J=_.eI(_.sB(a,z)))!=null?J:I};
CR1=function(a,z){var I=I===void 0?0:I;a=_.Bf7(_.sB(a,z));return a!=null?a:I};
ie=function(a,z,I){I=I===void 0?rwE:I;var J;return(J=_.GJO(_.sB(a,z)))!=null?J:I};
Npx=function(a){var z=z===void 0?rwE:z;var I;return(I=_.Qg(a,23))!=null?I:z};
xR=function(a,z){var I=I===void 0?0:I;var J;return(J=_.sB(a,z,void 0,void 0,_.CwM))!=null?J:I};
_.vb=function(a,z,I,J){I=I===void 0?"":I;var r;return(r=_.gE(_.sB(a,z,J)))!=null?r:I};
_.GL=function(a,z){var I=I===void 0?0:I;var J;return(J=_.YG(_.sB(a,z)))!=null?J:I};
$R=function(a,z){var I=I===void 0?"0":I;a=vGM(_.sB(a,z),!0);return a!=null?a:I};
Xg=function(a,z,I){return _.vb(a,nv(a,I,z))};
_.TL=function(a,z,I,J){return _.JC(a,z,nv(a,J,I),void 0)};
_.gQ=function(a,z){return _.gE(_.sB(a,z,void 0,_.AY))};
_.PW=function(a,z,I){return _.PL(a,z,Nf1(I))};
_.vJ=function(a,z,I){return _.M0(a,z,Nf1(I),!1)};
_.dL=function(a,z,I){return _.PL(a,z,_.qE(I))};
_.Fd=function(a,z,I){return _.PL(a,z,rE(I))};
_.KB=function(a,z,I){return _.PL(a,z,u0(I))};
_.yr=function(a,z,I,J){return _.M0(a,z,u0(I),"",J)};
_.ro=function(a,z,I){return _.PL(a,z,I==null?I:_.yi(I))};
_.Wb=function(a,z,I){return _.M0(a,z,I==null?I:_.yi(I),0)};var YZ=function(a,z,I){this.buffer=a;if(I&&!z)throw Error();this.JSC$8809_isImmutable=z};var tC0=function(a,z,I,J){this.bytes_=null;this.bytesAreImmutable_=!1;this.cursor_=this.end_=this.JSC$8812_start_=0;this.init(a,z,I,J)},UB,Efm,BpG,Obi,PjM,uV$;
_.Z=tC0.prototype;_.Z.init=function(a,z,I,J){var r=J===void 0?{}:J;J=r.aliasBytesFields===void 0?!1:r.aliasBytesFields;r=r.treatNewDataAsImmutable===void 0?!1:r.treatNewDataAsImmutable;this.aliasBytesFields=J;this.treatNewDataAsImmutable=r;a&&(a=U0p(a,this.treatNewDataAsImmutable),this.bytes_=a.buffer,this.bytesAreImmutable_=a.JSC$8809_isImmutable,this.JSC$8812_start_=z||0,this.end_=I!==void 0?this.JSC$8812_start_+I:this.bytes_.length,this.cursor_=this.JSC$8812_start_)};
_.Z.free=function(){this.clear();uV$.length<100&&uV$.push(this)};
_.Z.clear=function(){this.bytes_=null;this.bytesAreImmutable_=!1;this.cursor_=this.end_=this.JSC$8812_start_=0;this.aliasBytesFields=!1};
_.Z.reset=function(){this.cursor_=this.JSC$8812_start_};
_.Z.atEnd=function(){return this.cursor_==this.end_};
_.D8=function(a,z){var I=0,J=0,r=0,P=a.bytes_,N=a.cursor_;do{var u=P[N++];I|=(u&127)<<r;r+=7}while(r<32&&u&128);if(r>32)for(J|=(u&127)>>4,r=3;r<32&&u&128;r+=7)u=P[N++],J|=(u&127)<<r;UB(a,N);if(!(u&128))return z(I>>>0,J>>>0);throw Error();};
UB=function(a,z){a.cursor_=z;if(z>a.end_)throw Error();};
_.Rs=function(a){var z=a.bytes_,I=a.cursor_,J=z[I++],r=J&127;if(J&128&&(J=z[I++],r|=(J&127)<<7,J&128&&(J=z[I++],r|=(J&127)<<14,J&128&&(J=z[I++],r|=(J&127)<<21,J&128&&(J=z[I++],r|=J<<28,J&128&&z[I++]&128&&z[I++]&128&&z[I++]&128&&z[I++]&128&&z[I++]&128)))))throw Error();UB(a,I);return r};
_.Ln=function(a){var z=a.bytes_,I=a.cursor_,J=z[I],r=z[I+1],P=z[I+2];z=z[I+3];UB(a,a.cursor_+4);return(J<<0|r<<8|P<<16|z<<24)>>>0};
Efm=function(a){var z=_.Ln(a);a=_.Ln(a);return Ij1(z,a)};
BpG=function(a){var z=_.Ln(a),I=_.Ln(a);a=(I>>31)*2+1;var J=I>>>20&2047;z=4294967296*(I&1048575)+z;return J==2047?z?NaN:a*Infinity:J==0?a*4.9E-324*z:a*Math.pow(2,J-1075)*(z+4503599627370496)};
_.gfp=function(a){for(var z=0,I=a.cursor_,J=I+10,r=a.bytes_;I<J;){var P=r[I++];z|=P;if((P&128)===0)return UB(a,I),!!(z&127)}throw Error();};
Obi=function(a,z){if(z<0)throw Error();var I=a.cursor_;z=I+z;if(z>a.end_)throw Error();a.cursor_=z;return I};
PjM=function(a,z){if(z==0)return _.Vi();var I=Obi(a,z);a.aliasBytesFields&&a.bytesAreImmutable_?I=a.bytes_.subarray(I,I+z):(a=a.bytes_,z=I+z,I=I===z?new Uint8Array(0):zm$?a.slice(I,z):new Uint8Array(a.subarray(I,z)));return I.length==0?_.Vi():new nl(I,ho)};
uV$=[];var AwM=function(a,z,I,J){if(uV$.length){var r=uV$.pop();r.init(a,z,I,J);a=r}else a=new tC0(a,z,I,J);this.decoder_=a;this.fieldCursor_=this.decoder_.cursor_;this.nextWireType_=this.nextField_=-1;f$$(this,J)},f$$=function(a,z){z=z===void 0?{}:z;
a.discardUnknownFields=z.discardUnknownFields===void 0?!1:z.discardUnknownFields},NO7=function(a,z,I,J){if(sBG.length){var r=sBG.pop();
f$$(r,J);r.decoder_.init(a,z,I,J);return r}return new AwM(a,z,I,J)},Ix7,rx7,nfG,sBG;
AwM.prototype.free=function(){this.decoder_.clear();this.nextWireType_=this.nextField_=-1;sBG.length<100&&sBG.push(this)};
AwM.prototype.reset=function(){this.decoder_.reset();this.fieldCursor_=this.decoder_.cursor_;this.nextWireType_=this.nextField_=-1};
Ix7=function(a){if(a.decoder_.atEnd())return!1;a.fieldCursor_=a.decoder_.cursor_;var z=_.Rs(a.decoder_)>>>0,I=z>>>3;z&=7;if(!(z>=0&&z<=5))throw Error();if(I<1)throw Error();a.nextField_=I;a.nextWireType_=z;return!0};
rx7=function(a){switch(a.nextWireType_){case 0:a.nextWireType_!=0?rx7(a):_.gfp(a.decoder_);break;case 1:a=a.decoder_;UB(a,a.cursor_+8);break;case 2:if(a.nextWireType_!=2)rx7(a);else{var z=_.Rs(a.decoder_)>>>0;a=a.decoder_;UB(a,a.cursor_+z)}break;case 5:a=a.decoder_;UB(a,a.cursor_+4);break;case 3:z=a.nextField_;do{if(!Ix7(a))throw Error();if(a.nextWireType_==4){if(a.nextField_!=z)throw Error();break}rx7(a)}while(1);break;default:throw Error();}};
nfG=function(a,z,I){var J=a.decoder_.end_,r=_.Rs(a.decoder_)>>>0;r=a.decoder_.cursor_+r;var P=r-J;P<=0&&(a.decoder_.end_=r,I(z,a,void 0,void 0,void 0),P=r-a.decoder_.cursor_);if(P)throw Error();a.decoder_.cursor_=r;a.decoder_.end_=J};
_.KnG=function(a){var z=_.Rs(a.decoder_)>>>0;a=a.decoder_;var I=Obi(a,z);a=a.bytes_;if(qyx){var J=a,r;(r=YyO)||(r=YyO=new TextDecoder("utf-8",{fatal:!0}));z=I+z;J=I===0&&z===J.length?J:J.subarray(I,z);try{var P=r.decode(J)}catch(O){if(cn7===void 0){try{r.decode(new Uint8Array([128]))}catch(f){}try{r.decode(new Uint8Array([97])),cn7=!0}catch(f){cn7=!1}}!cn7&&(YyO=void 0);throw O;}}else{P=I;z=P+z;I=[];for(var N=null,u,E;P<z;)u=a[P++],u<128?I.push(u):u<224?P>=z?z3():(E=a[P++],u<194||(E&192)!==128?(P--,
z3()):I.push((u&31)<<6|E&63)):u<240?P>=z-1?z3():(E=a[P++],(E&192)!==128||u===224&&E<160||u===237&&E>=160||((r=a[P++])&192)!==128?(P--,z3()):I.push((u&15)<<12|(E&63)<<6|r&63)):u<=244?P>=z-2?z3():(E=a[P++],(E&192)!==128||(u<<28)+(E-144)>>30!==0||((r=a[P++])&192)!==128||((J=a[P++])&192)!==128?(P--,z3()):(u=(u&7)<<18|(E&63)<<12|(r&63)<<6|J&63,u-=65536,I.push((u>>10&1023)+55296,(u&1023)+56320))):z3(),I.length>=8192&&(N=aiI(N,I),I.length=0);P=aiI(N,I)}return P};
_.Fnp=function(a){var z=_.Rs(a.decoder_)>>>0;return PjM(a.decoder_,z)};
_.Hbd=function(a,z,I){var J=_.Rs(a.decoder_)>>>0;for(J=a.decoder_.cursor_+J;a.decoder_.cursor_<J;)I.push(z(a.decoder_))};
sBG=[];var bbp=function(a,z){this.JSC$8819_lo=a>>>0;this.JSC$8819_hi=z>>>0},VC7=function(a){if(!a)return hmd||(hmd=new bbp(0,0));
if(!/^\d+$/.test(a))return null;Zl1(a);return new bbp(df,We)},hmd,h77=function(a,z){this.JSC$8821_lo=a>>>0;
this.JSC$8821_hi=z>>>0},H4G=function(a){if(!a)return QB$||(QB$=new h77(0,0));
if(!/^-?\d+$/.test(a))return null;Zl1(a);return new h77(df,We)},QB$;var le=function(){this.JSC$8823_buffer_=[]},b4G,S7x;
le.prototype.length=function(){return this.JSC$8823_buffer_.length};
le.prototype.end=function(){var a=this.JSC$8823_buffer_;this.JSC$8823_buffer_=[];return a};
b4G=function(a,z,I){for(;I>0||z>127;)a.JSC$8823_buffer_.push(z&127|128),z=(z>>>7|I<<25)>>>0,I>>>=7;a.JSC$8823_buffer_.push(z)};
S7x=function(a,z){for(;z>127;)a.JSC$8823_buffer_.push(z&127|128),z>>>=7;a.JSC$8823_buffer_.push(z)};
_.Vu3=function(a,z){if(z>=0)S7x(a,z);else{for(var I=0;I<9;I++)a.JSC$8823_buffer_.push(z&127|128),z>>=7;a.JSC$8823_buffer_.push(1)}};
le.prototype.writeUint8=function(a){this.JSC$8823_buffer_.push(a>>>0&255)};
_.Zx=function(a,z){a.JSC$8823_buffer_.push(z>>>0&255);a.JSC$8823_buffer_.push(z>>>8&255);a.JSC$8823_buffer_.push(z>>>16&255);a.JSC$8823_buffer_.push(z>>>24&255)};
le.prototype.writeInt8=function(a){this.JSC$8823_buffer_.push(a>>>0&255)};var ibM,zN,SaI,vPx;ibM=function(){this.blocks_=[];this.totalLength_=0;this.encoder_=new le};
zN=function(a,z){z.length!==0&&(a.blocks_.push(z),a.totalLength_+=z.length)};
_.lE3=function(a,z){_.rO(a,z,2);z=a.encoder_.end();zN(a,z);z.push(a.totalLength_);return z};
_.p41=function(a,z){var I=z.pop();for(I=a.totalLength_+a.encoder_.length()-I;I>127;)z.push(I&127|128),I>>>=7,a.totalLength_++;z.push(I);a.totalLength_++};
_.rO=function(a,z,I){S7x(a.encoder_,z*8+I)};
SaI=function(a,z,I){if(I!=null){switch(typeof I){case "string":VC7(I)}_.rO(a,z,1);switch(typeof I){case "number":a=a.encoder_;jwx(I);_.Zx(a,df);_.Zx(a,We);break;case "bigint":I=BigInt.asUintN(64,I);I=new bbp(Number(I&BigInt(4294967295)),Number(I>>BigInt(32)));a=a.encoder_;z=I.JSC$8819_hi;_.Zx(a,I.JSC$8819_lo);_.Zx(a,z);break;default:I=VC7(I),a=a.encoder_,z=I.JSC$8819_hi,_.Zx(a,I.JSC$8819_lo),_.Zx(a,z)}}};
vPx=function(a,z,I){_.rO(a,z,2);S7x(a.encoder_,I.length);zN(a,a.encoder_.end());zN(a,I)};var D0$,GRE,$u0,duG,Wnm;D0$=q0();_.xuO=q0();_.vfG=q0();GRE=q0();$u0=q0();_.Xfd=q0();_.pn=q0();_.Tp3=q0();duG=q0();Wnm=q0();_.ofd=q0();_.Uu0=q0();_.ju=function(a,z,I){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.GY(a,z,I)};
_.ju.prototype.toJSON=function(){return v4(this)};
_.ju.prototype.serialize=function(a){return JSON.stringify(v4(this,a))};
var UL7=function(a,z){if(z==null||z=="")return new a;z=JSON.parse(z);if(!Array.isArray(z))throw Error("V");return new a(ppd(z))};
_.ju.prototype.getExtension=function(a){qOO(this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,a.fieldIndex);cop(this,a.fieldIndex);return a.ctor?a.isRepeated?a.getExtensionFn(this,a.ctor,a.fieldIndex,_.jW(),a.JSC$8834_hasMessageId):a.getExtensionFn(this,a.ctor,a.fieldIndex,a.JSC$8834_hasMessageId):a.isRepeated?a.getExtensionFn(this,a.fieldIndex,_.jW(),a.JSC$8834_hasMessageId):a.getExtensionFn(this,a.fieldIndex,a.defaultValue,a.JSC$8834_hasMessageId)};
_.ju.prototype.clone=function(){var a=this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,z=a[_.rf]|0;return HZ0(this,a,z)?Fz$(this,a,!0):new this.constructor($Z(a,z,!1))};
_.ju.prototype[OG]=Ae;_.ju.prototype.toString=function(){return this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows.toString()};var ef=function(a,z,I){this.$$binaryReaderFn=a;this.$$binaryWriterFn=z;a=FM(D0$);this.$$isMsg=!!a&&I===a||!1},MfO=RiM(function(a,z,I,J,r){if(a.nextWireType_!==2)return!1;
nfG(a,PR3(z,J,I),r);return!0},w4$),ce3=RiM(function(a,z,I,J,r){if(a.nextWireType_!==2)return!1;
nfG(a,PR3(z,J,I),r);return!0},w4$),uG3=Symbol(),eiG=Symbol(),z7M=Symbol(),gPG=Symbol(),Z4G=Symbol(),m0I,ye1;var dL1,Du0,Rmx,LnO,l$M,pfE,wf7,muE,ywd,kRd,MC3,Y7O,q73,aq7,jn$;dL1=function(a,z){var I=new ibM;O4E(a.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,I,at(uG3,tui,EPE,z));zN(I,I.encoder_.end());a=new Uint8Array(I.totalLength_);z=I.blocks_;for(var J=z.length,r=0,P=0;P<J;P++){var N=z[P];a.set(N,r);r+=N.length}I.blocks_=[a];return a};
Du0=_.It(function(a,z,I){if(a.nextWireType_!==1)return!1;_.Jx(z,I,BpG(a.decoder_));return!0},F9M,Wnm);
Rmx=_.It(function(a,z,I,J){if(a.nextWireType_!==1)return!1;_.Hb(z,I,J,BpG(a.decoder_));return!0},F9M,Wnm);
LnO=_.It(function(a,z,I,J){if(a.nextWireType_!==5)return!1;var r=_.Ln(a.decoder_);a=(r>>31)*2+1;var P=r>>>23&255;r&=8388607;_.Hb(z,I,J,P==255?r?NaN:a*Infinity:P==0?a*1.401298464324817E-45*r:a*Math.pow(2,P-150)*(r+8388608));return!0},function(a,z,I){z=_.CwM(z);
z!=null&&(_.rO(a,I,5),a=a.encoder_,I=K9$||(K9$=new DataView(new ArrayBuffer(8))),I.setFloat32(0,+z,!0),We=0,df=I.getUint32(0,!0),_.Zx(a,df))},duG);
_.wL=_.It(function(a,z,I){if(a.nextWireType_!==0)return!1;_.Jx(z,I,_.D8(a.decoder_,Joi));return!0},_.C4,_.pn);
l$M=_.It(function(a,z,I){if(a.nextWireType_!==0)return!1;a=_.D8(a.decoder_,Joi);_.Jx(z,I,a===0?void 0:a);return!0},_.C4,_.pn);
pfE=_.It(function(a,z,I,J){if(a.nextWireType_!==0)return!1;_.Hb(z,I,J,_.D8(a.decoder_,Joi));return!0},_.C4,_.pn);
_.m7=_.It(function(a,z,I){if(a.nextWireType_!==0)return!1;_.Jx(z,I,_.Rs(a.decoder_));return!0},Qt3,GRE);
wf7=_.It(function(a,z,I){if(a.nextWireType_!==0)return!1;a=_.Rs(a.decoder_);_.Jx(z,I,a===0?void 0:a);return!0},Qt3,GRE);
muE=_.It(function(a,z,I,J){if(a.nextWireType_!==0)return!1;_.Hb(z,I,J,_.Rs(a.decoder_));return!0},Qt3,GRE);
ywd=_.It(function(a,z,I){if(a.nextWireType_!==1)return!1;_.Jx(z,I,Efm(a.decoder_));return!0},_.i4M,_.Tp3);
kRd=_.nPM(function(a,z,I){if(a.nextWireType_!==1&&a.nextWireType_!==2)return!1;z=_.iZG(z,z[_.rf]|0,I);a.nextWireType_==2?_.Hbd(a,Efm,z):z.push(Efm(a.decoder_));return!0},function(a,z,I){z=_.stG(Xex,z,!1);
if(z!=null)for(var J=0;J<z.length;J++)SaI(a,I,z[J])},_.Tp3);
_.yg=_.It(function(a,z,I){if(a.nextWireType_!==0)return!1;_.Jx(z,I,_.gfp(a.decoder_));return!0},_.xLG,_.xuO);
MC3=_.It(function(a,z,I,J){if(a.nextWireType_!==0)return!1;_.Hb(z,I,J,_.gfp(a.decoder_));return!0},_.xLG,_.xuO);
_.kR=_.It(function(a,z,I){if(a.nextWireType_!==2)return!1;_.Jx(z,I,_.KnG(a));return!0},_.GN0,_.vfG);
_.cwp=_.It(function(a,z,I,J){if(a.nextWireType_!==2)return!1;_.Hb(z,I,J,_.KnG(a));return!0},_.GN0,_.vfG);
Y7O=_.nPM(function(a,z,I){if(a.nextWireType_!==2)return!1;a=_.KnG(a);_.iZG(z,z[_.rf]|0,I).push(a);return!0},function(a,z,I){z=_.stG(_.gE,z,!0);
if(z!=null)for(var J=0;J<z.length;J++){var r=a,P=I,N=z[J];N!=null&&vPx(r,P,J1p(N))}},_.vfG);
q73=void 0;q73=q73===void 0?D0$:q73;_.MS=new ef(function(a,z,I,J,r){if(a.nextWireType_!==2)return!1;J=gZ$(void 0,J,!0);_.iZG(z,z[_.rf]|0,I).push(J);nfG(a,J,r);return!0},function(a,z,I,J,r){if(Array.isArray(z))for(var P=0;P<z.length;P++)$LE(a,z[P],I,J,r)},q73);
_.cb=RiM(function(a,z,I,J,r,P){if(a.nextWireType_!==2)return!1;var N=z[_.rf]|0;GYi(z,N,P,I,ve(N));z=PR3(z,J,I);nfG(a,z,r);return!0},$LE);
_.emd=_.It(function(a,z,I){if(a.nextWireType_!==2)return!1;_.Jx(z,I,_.Fnp(a));return!0},_.X9M,_.ofd);
aq7=_.It(function(a,z,I,J){if(a.nextWireType_!==2)return!1;_.Hb(z,I,J,_.Fnp(a));return!0},_.X9M,_.ofd);
jn$=_.It(function(a,z,I,J){if(a.nextWireType_!==0)return!1;_.Hb(z,I,J,_.Rs(a.decoder_)>>>0);return!0},function(a,z,I){z=_.Bf7(z);
z!=null&&z!=null&&(_.rO(a,I,0),S7x(a.encoder_,z))},$u0);
_.YR=_.It(function(a,z,I){if(a.nextWireType_!==0)return!1;_.Jx(z,I,_.Rs(a.decoder_));return!0},_.TOm,_.Uu0);var Jh$=function(){var a=zDp,z=Iqx;this.fieldIndex=175237375;this.ctor=z;this.isRepeated=0;this.getExtensionFn=_.JC;this.defaultValue=void 0;this.JSC$8834_hasMessageId=a.messageId!=null?xG:void 0};
Jh$.prototype.register=function(){Cn(this)};var rhI=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.GY(a)};
_.b(rhI,_.ju);var P2G=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.GY(a)};
_.b(P2G,_.ju);var L9G=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.GY(a)};
_.b(L9G,_.ju);var ZzO=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.GY(a)};
_.b(ZzO,_.ju);var C2i=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.GY(a)};
_.b(C2i,_.ju);var Nwx=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.GY(a)};
_.b(Nwx,_.ju);var tmI=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.GY(a)};
_.b(tmI,_.ju);tmI.prototype.getData=function(){return _.Fg(this,2)};var u5G=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.GY(a)};
_.b(u5G,_.ju);var Er1=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.GY(a)};
_.b(Er1,_.ju);Er1.prototype.getStyle=function(){return _.JC(this,rhI,1)};var B9=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.GY(a)};
_.b(B9,_.ju);B9.prototype.getPayloadCase=function(){return _.be(this,sa)};
B9.prototype.getStyle=function(){return _.TL(this,Er1,6,sa)};
var BwE=function(){var a=new B9,z=new C2i;return _.Oa(a,7,sa,z)},grE=function(){var a=new B9,z=new Nwx;
return _.Oa(a,8,sa,z)},sa=[1,
2,3,4,5,6,7,8];var Oz1=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.GY(a)};
_.b(Oz1,_.ju);var fqm=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.GY(a)};
_.b(fqm,_.ju);var Ahx=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.GY(a)};
_.b(Ahx,_.ju);var snE=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.GY(a)};
_.b(snE,_.ju);var nrE=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.GY(a)};
_.b(nrE,_.ju);var K2M=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.GY(a)};
_.b(K2M,_.ju);var F2p=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.GY(a)};
_.b(F2p,_.ju);var Hz1=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.GY(a)};
_.b(Hz1,_.ju);Hz1.prototype.getData=function(){return _.Fg(this,2)};var bzG=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.GY(a)};
_.b(bzG,_.ju);var R7M=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.GY(a)};
_.b(R7M,_.ju);R7M.prototype.getPayloadCase=function(){return _.be(this,qS)};
var qS=[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15];var eQ=function(a,z){a=Error.call(this,a);this.message=a.message;"stack"in a&&(this.stack=a.stack);this.code=z===void 0?2:z};
_.b(eQ,Error);var hDi=Promise;var VmG=function(a){this.channelPromise=a};
VmG.prototype.send=function(a,z,I){this.channelPromise.then(function(J){J.send(a,z,I)})};var Qn0=function(a,z){this.data=a;this.channel=z};
Qn0.prototype.reply=function(a,z,I){this.channel.send(a,z,I)};var SPI=function(a){this.JSC$8900_port_=a};
SPI.prototype.send=function(a,z,I){I=I===void 0?[]:I;var J=new MessageChannel;izd(J.port1,z);this.JSC$8900_port_.postMessage(a,[J.port2].concat(I))};
var xNG=function(a,z){izd(a,z);return new SPI(a)},izd=function(a,z){z&&(a.onmessage=function(I){z(new Qn0(I.data,xNG(I.ports[0])))})};var vrd=function(a){this.verifier_=a};
vrd.prototype.verify=function(a){return this.verifier_(a)};
var GAd=function(a){var z=Object.create(null);(typeof a==="string"?[a]:a).forEach(function(I){if(I==="null")throw Error("X");z[I]=!0});
return function(I){return z[I]===!0}};_.$Nx=function(){if(!_.IE.addEventListener||!Object.defineProperty)return!1;var a=!1,z=Object.defineProperty({},"passive",{get:function(){a=!0}});
try{var I=function(){};
_.IE.addEventListener("test",I,z);_.IE.removeEventListener("test",I,z)}catch(J){}return a}();var XjG;_.ac=function(a){var z=a.destination;var I=a.iframe;var J=a.origin;var r=a.channelName===void 0?"ZNWN1d":a.channelName;var P=a.onMessage===void 0?void 0:a.onMessage;a=a.onEstablished===void 0?void 0:a.onEstablished;return XjG({destination:z,getSource:function(){return I.contentWindow},
originVerifier:J instanceof vrd?J:typeof J==="function"?new vrd(J):new vrd(GAd(J)),channelName:r,onMessage:P,onEstablished:a})};
XjG=function(a){var z=a.destination;var I=a.getSource;var J=a.originVerifier;var r=a.token===void 0?void 0:a.token;var P=a.channelName;var N=a.onMessage===void 0?void 0:a.onMessage;var u=a.onEstablished===void 0?void 0:a.onEstablished;return new VmG(new hDi(function(E,O){var f=function(A){A.source&&A.source===I()&&J.verify(A.origin)&&(A.data.n||A.data)===P&&(z.removeEventListener("message",f,!1),r&&A.data.t!==r?O(Error("Y`"+P+"`"+r+"`"+A.data.t)):(E(xNG(A.ports[0],N)),u&&u(A)))};
z.addEventListener("message",f,!1)}))};var TwO=function(a){try{a()}catch(z){J1(z)}};var W2m=function(a){var z=this;var I=a.getMessageType;var J=a.onUnregisteredMessage===void 0?function(){}:a.onUnregisteredMessage;
var r=a.onBeforeRegisteredMessage===void 0?function(){}:a.onBeforeRegisteredMessage;
a=a.onAfterRegisteredMessage===void 0?function(){}:a.onAfterRegisteredMessage;
this.registry_=new Map;this.getMessageType_=I;this.onUnregisteredMessage_=J;this.onBeforeRegisteredMessage_=r;this.onAfterRegisteredMessage_=a;this.onMessage=function(P){return dN0(z,P)}};
W2m.prototype.register=function(a,z){this.registry_.set(a,z);return this};
var dN0=function(a,z){var I=a.getMessageType_(z.data),J=a.registry_.get(I);J?(TwO(function(){return a.onBeforeRegisteredMessage_(z,I)}),TwO(function(){return J(z)}),TwO(function(){return a.onAfterRegisteredMessage_(z,I)})):TwO(function(){return a.onUnregisteredMessage_(z,I)})};var or$=function(a){this.JSC$8917_channel_=a},DNi,RDx;
or$.prototype.send=function(a,z,I){this.JSC$8917_channel_.send(v4(a),z,I)};
_.UN0=function(a,z){return function(I){var J=new a(I.data);return z(new Qn0(J,I.channel))}};
DNi=function(a){return function(z){return a(new Qn0(z.data,new or$(z.channel)))}};
RDx=function(a,z){return DNi(_.UN0(a,z))};var L2I=function(a,z,I,J){this.registry=a;this.delegate=z;this.receiveMessageConstructor=I;this.createInitMessage=J;this.initialised=!1;this.registry.register.bind(this.registry);this.features=new Set},DL3=function(a){var z=new W2m({getMessageType:a.getPayloadCase});
return new L2I(z,new or$(_.ac({iframe:a.child,destination:window,origin:a.origin,channelName:a.channelName,onMessage:RDx(a.receiveMessageConstructor,z.onMessage)})),a.receiveMessageConstructor,a.createInitMessage)},lqG=function(a,z){a.createInitMessage=z};
L2I.prototype.send=function(a){if(!this.initialised)throw new eQ("Attempted to send a message before initialisation.");this.delegate.send(a)};
var pjp=function(a,z){return _.t(function(I){if(!a.initialised)throw new eQ("Attempted to send a message before initialisation.");return I.return(new Promise(function(J){a.delegate.send(z,RDx(a.receiveMessageConstructor,J))}))})};
L2I.prototype.init=function(){var a=this;return _.t(function(z){if(a.initialised)throw new eQ("Attempted to initialise twice. The SDK can only be initialised once.");if(a.createInitMessage!==void 0){var I=a.delegate,J=I.send,r=a.createInitMessage;var P=new P2G;var N=[].concat(_.ih(a.features));P=_.kZ(P,1,N,_.yi);J.call(I,r.call(a,P))}a.initialised=!0;_.nu(z)})};
var jN=function(a,z){if(a.initialised)throw new eQ('Attempted to set up API "'+z+'" after initialisation. All APIs must be set up before initialising the SDK.');a.features.add(z);return a.registry};
_.eH.Object.defineProperties(L2I.prototype,{isInitialised:{configurable:!0,enumerable:!0,get:function(){return this.initialised}}});var wjI=function(a){this.channel=a;this.registered=!1};
wjI.prototype.update=function(a){if(this.channel.isInitialised){if(!this.registered)throw new eQ("Using unregistered Audio Feature. Please call audio.update() before init() to indicate usage of the Audio Api.");var z=new B9;var I=new ZzO;I=_.PW(I,1,a);z=_.Oa(z,2,sa,I);this.channel.send(z)}else this.register();this.JSC$8931_audioEnabled=a};
wjI.prototype.register=function(){jN(this.channel,1);this.registered=!0};
wjI.prototype.isAudioEnabled=function(){return this.JSC$8931_audioEnabled};var mN$=function(a){this.channel=a};
_.Z=mN$.prototype;_.Z.onFirstFrameReady=function(a){jN(this.channel,2).register(11,function(z){z=_.TL(z.data,Oz1,11,qS);if(!z)throw new eQ("Unexpectedly nonexistent GameFirstFrameReadyEvent");a(_.vb(z,1))})};
_.Z.onReady=function(a){jN(this.channel,2).register(4,function(z){z=_.TL(z.data,Ahx,4,qS);if(!z)throw new eQ("Unexpectedly nonexistent GameReadyEvent");a(_.vb(z,1))})};
_.Z.onLevelComplete=function(a){jN(this.channel,2).register(5,function(z){z=_.TL(z.data,snE,5,qS);if(!z)throw new eQ("Unexpectedly nonexistent LevelCompleteEvent");a(_.vb(z,1),_.za(z,2))})};
_.Z.onGameOver=function(a){jN(this.channel,2).register(6,function(z){z=_.TL(z.data,fqm,6,qS);if(!z)throw new eQ("Unexpectedly nonexistent GameOverEvent");a(_.vb(z,1))})};
_.Z.pause=function(){var a=this;if(!this.channel.isInitialised)return jN(this.channel,2),Promise.resolve();if(!this.channel.features.has(2))throw new eQ("Using unregistered Game Feature: pause.");var z=BwE();return new Promise(function(I){return _.t(function(J){if(J.nextAddress==1)return J.yield(pjp(a.channel,z),2);I();_.nu(J)})})};
_.Z.resume=function(){var a=this;if(!this.channel.isInitialised)return jN(this.channel,2),Promise.resolve();if(!this.channel.features.has(2))throw new eQ("Using unregistered Game Feature: resume.");var z=grE();return new Promise(function(I){return _.t(function(J){if(J.nextAddress==1)return J.yield(pjp(a.channel,z),2);I();_.nu(J)})})};var yh1=function(a){this.channel=a};
yh1.prototype.onReady=function(a){jN(this.channel,5).register(8,function(z){if(!_.TL(z.data,nrE,8,qS))throw new eQ("Unexpectedly nonexistent PageReadyEvent");a()})};var kA$=function(a){this.channel=a};
kA$.prototype.onChange=function(a){jN(this.channel,3).register(7,function(z){z=_.TL(z.data,K2M,7,qS);if(!z)throw new eQ("Unexpectedly nonexistent ScoreEvent");a(_.vb(z,1),_.za(z,2))})};var MmE={load:function(){throw new eQ("Storage used, but storage.onLoad() listener not set!");},
save:function(){throw new eQ("Storage used, but storage.onSave() listener not set!");}},ch1=function(a){this.channel=a;
this.saveRegistered=this.loadRegistered=this.initialSetupDone=!1},YPI=function(a){jN(a.channel,4).register(2,MmE.load).register(3,MmE.save);
a.initialSetupDone=!0};
ch1.prototype.onLoad=function(a){this.initialSetupDone||YPI(this);this.loadRegistered||(this.loadRegistered=!0,jN(this.channel,4).register(2,function(z){var I,J,r;return _.t(function(P){if(P.nextAddress==1){I=_.TL(z.data,F2p,2,qS);if(!I)throw new eQ("Unexpectedly nonexistent StorageLoad");J=_.vb(I,1);return P.yield(a(J),2)}r=P.yieldResult;var N=z.reply,u=new B9;var E=new tmI;E=_.KB(E,1,J);E=_.PL(E,2,_.Qi(r,!1));u=_.Oa(u,3,sa,E);N.call(z,u);_.nu(P)})}))};
ch1.prototype.onSave=function(a){this.initialSetupDone||YPI(this);this.saveRegistered||(this.saveRegistered=!0,jN(this.channel,4).register(3,function(z){var I,J,r;return _.t(function(P){if(P.nextAddress==1){I=_.TL(z.data,Hz1,3,qS);if(!I)throw new eQ("Unexpectedly nonexistent StorageSave");J=_.vb(I,1);r=wC1(I.getData());return P.yield(a(J,r),2)}var N=z.reply,u=new B9;var E=new u5G;E=_.KB(E,1,J);u=_.Oa(u,4,sa,E);N.call(z,u);_.nu(P)})}))};var qPO=function(a){this.channel=a};
qPO.prototype.update=function(a){if(!this.channel.features.has(6))throw new eQ("Using unregistered Style Feature. Please call style.register() before init() to indicate usage of the Style Api.");var z=new B9,I=new Er1;a=_.gO(I,1,a);z=_.Oa(z,6,sa,a);this.channel.send(z)};
qPO.prototype.register=function(){jN(this.channel,6)};var eD3=function(a){this.channel=a;this.userActivityLoggingIntervalMs=0};
eD3.prototype.onUserActivity=function(a,z){this.userActivityLoggingIntervalMs=z;jN(this.channel,7).register(9,function(I){if(!_.TL(I.data,bzG,9,qS))throw new eQ("Unexpectedly nonexistent ClickEvent");a()})};var aiv=function(a){var z=this;this.channel=a;this.init=this.channel.init.bind(this.channel);this.page=new yh1(this.channel);this.game=new mN$(this.channel);this.audio=new wjI(this.channel);this.score=new kA$(this.channel);this.storage=new ch1(this.channel);this.style=new qPO(this.channel);this.userActivity=new eD3(this.channel);lqG(this.channel,function(I){var J=new L9G;I=_.gO(J,1,I);I=_.dL(I,3,z.userActivity.userActivityLoggingIntervalMs);J=z.audio.isAudioEnabled();J!==void 0&&_.PW(I,2,J);J=new B9;
return _.Oa(J,5,sa,I)})};var jEl=function(){this.timedFunctionContext=0};
jEl.prototype.timeExecution=function(a,z){var I=this;return function(){var J=_.dO.apply(0,arguments);I.timedFunctionContext=a;return z.apply(null,_.ih(J))}};var zIE=function(){var a={};this.priorityTasks=(a[3]=[],a[2]=[],a[1]=[],a);this.isFlushing=!1},BH=function(a,z,I){var J=IiJ(a,I);
a.priorityTasks[I].push(z);J&&a.priorityTasks[I].length===1&&a.flush()},IiJ=function(a,z){return Object.keys(a.priorityTasks).map(function(I){return Number(I)}).filter(function(I){return!isNaN(I)&&I>z}).every(function(I){return a.priorityTasks[I].length===0})};
zIE.prototype.flush=function(){if(!this.isFlushing){this.isFlushing=!0;try{for(;Object.values(this.priorityTasks).some(function(a){return a.length>0});)J1e(this,3),J1e(this,2),J1e(this,1)}catch(a){throw Object.values(this.priorityTasks).forEach(function(z){return void z.splice(0,z.length)}),a;
}finally{this.isFlushing=!1}}};
var J1e=function(a,z){for(;IiJ(a,z)&&a.priorityTasks[z].length>0;)a.priorityTasks[z][0](),a.priorityTasks[z].shift()};
_.eH.Object.defineProperties(zIE.prototype,{running:{configurable:!0,enumerable:!0,get:function(){return Object.values(this.priorityTasks).some(function(a){return a.length>0})}}});var MuE={};var r1f=globalThis.trustedTypes,p9G=r1f,mL7;var FG=function(a){this.privateDoNotAccessOrElseWrappedResourceUrl=a};
FG.prototype.toString=function(){return this.privateDoNotAccessOrElseWrappedResourceUrl+""};var PGw,ZGe,CGJ,N$O,tM1,u0l,E7w,B$w;PGw=_.kK([""]);ZGe=y5(["\x00"],["\\0"]);CGJ=y5(["\n"],["\\n"]);N$O=y5(["\x00"],["\\u0000"]);tM1=_.kK([""]);u0l=y5(["\x00"],["\\0"]);E7w=y5(["\n"],["\\n"]);B$w=y5(["\x00"],["\\u0000"]);_.g7w=kNx(function(a){return a(PGw)})||kNx(function(a){return a(ZGe)})||kNx(function(a){return a(CGJ)})||kNx(function(a){return a(N$O)});
_.OGw=_.hx(tM1)&&_.hx(u0l)&&_.hx(E7w)&&_.hx(B$w);var $P;_.VI=function(a,z){this.privateDoNotAccessOrElseWrappedUrl=z};
_.VI.prototype.toString=function(){return this.privateDoNotAccessOrElseWrappedUrl};
_.fiw=QI("about:blank");$P=QI("about:invalid#zClosurez");var cxI=function(a){this.isValid=a},A1j=new cxI(function(a){return/^[^:]*([/?#]|$)/.test(a)}),sEe=xP("data"),n7X=xP("http"),KdG=xP("https"),Fde=xP("ftp"),HGl=xP("mailto"),bGw=xP("intent"),hIw=xP("vnd.youtube"),YaM=[sEe,
n7X,KdG,HGl,Fde,A1j],e73=K4(function(){return typeof URL==="function"}),VMw=["data:",
"http:","https:","mailto:","ftp:"],jlG=/^\s*(?!javascript:)(?:[\w+.-]+:|[^:/?#]*(?:[/?#]|$))/i;var Dx=function(a){this.privateDoNotAccessOrElseWrappedHtml=a};
Dx.prototype.toString=function(){return this.privateDoNotAccessOrElseWrappedHtml+""};
var EkG=K4(function(){return new Dx(r1f?r1f.emptyHTML:"")});var QEO={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"},II3=function(a,z){var I=Error.call(this,a+" cannot be used with intent "+QEO[z]);this.message=I.message;"stack"in I&&(this.stack=I.stack);this.type=a;this.intent=z;this.name="TypeCannotBeUsedWithIframeIntentError"};
_.b(II3,Error);_.yI=function(a){this.privateDoNotAccessOrElseWrappedScript=a};
_.yI.prototype.toString=function(){return this.privateDoNotAccessOrElseWrappedScript+""};var ZuG=function(a){this.privateDoNotAccessOrElseWrappedAttributePrefix=a};
ZuG.prototype.toString=function(){return this.privateDoNotAccessOrElseWrappedAttributePrefix};var Chi="alternate author bookmark canonical cite help icon license modulepreload next prefetch dns-prefetch prerender preconnect preload prev search subresource".split(" ");var al=function(a){this.privateDoNotAccessOrElseWrappedStyleSheet=a};
al.prototype.toString=function(){return this.privateDoNotAccessOrElseWrappedStyleSheet};var fcG=function(a){var z=_.DH("window.location.href");a==null&&(a='Unknown Error of type "null/undefined"');if(typeof a==="string")return{message:a,name:"Unknown error",lineNumber:"Not available",fileName:z,stack:"Not available"};var I=!1;try{var J=a.lineNumber||a.line||"Not available"}catch(N){J="Not available",I=!0}try{var r=a.fileName||a.filename||a.sourceURL||_.IE.$googDebugFname||z}catch(N){r="Not available",I=!0}z=Smv(a);if(!(!I&&a.lineNumber&&a.fileName&&a.stack&&a.message&&a.name)){I=a.message;
if(I==null){if(a.constructor&&a.constructor instanceof Function){if(a.constructor.name)I=a.constructor.name;else if(I=a.constructor,z2[I])I=z2[I];else{I=String(I);if(!z2[I]){var P=/function\s+([^\(]+)/m.exec(I);z2[I]=P?P[1]:"[Anonymous]"}I=z2[I]}I='Unknown Error of type "'+I+'"'}else I="Unknown Error of unknown type";typeof a.toString==="function"&&Object.prototype.toString!==a.toString&&(I+=": "+a.toString())}return{message:I,name:a.name||"UnknownError",lineNumber:J,fileName:r,stack:z||"Not available"}}return{message:a.message,
name:a.name,lineNumber:a.lineNumber,fileName:a.fileName,stack:z}},Smv=function(a,z){z||(z={});
z[iGi(a)]=!0;var I=a.stack||"",J=a.cause;J&&!z[iGi(J)]&&(I+="\nCaused by: ",J.stack&&J.stack.indexOf(J.toString())==0||(I+=typeof J==="string"?J:J.message+"\n"),I+=Smv(J,z));a=a.errors;if(Array.isArray(a)){J=1;var r;for(r=0;r<a.length&&!(J>4);r++)z[iGi(a[r])]||(I+="\nInner error "+J++ +": ",a[r].stack&&a[r].stack.indexOf(a[r].toString())==0||(I+=typeof a[r]==="string"?a[r]:a[r].message+"\n"),I+=Smv(a[r],z));r<a.length&&(I+="\n... "+(a.length-r)+" more inner errors")}return I},iGi=function(a){var z=
"";
typeof a.toString==="function"&&(z=""+a);return z+a.stack},z2={};var xOo,qY,tE,G3w,$Oe,v7I,DJ,ld,T$J;xOo=function(a,z){for(var I=a.split("%s"),J="",r=Array.prototype.slice.call(arguments,1);r.length&&I.length>1;)J+=I.shift()+r.shift();return J+I.join("%s")};
_.L3=function(a){return encodeURIComponent(String(a))};
qY=function(a){return decodeURIComponent(a.replace(/\+/g," "))};
tE=function(a){PS7.test(a)&&(a.indexOf("&")!=-1&&(a=a.replace(aSI,"&amp;")),a.indexOf("<")!=-1&&(a=a.replace(jYi,"&lt;")),a.indexOf(">")!=-1&&(a=a.replace(z57,"&gt;")),a.indexOf('"')!=-1&&(a=a.replace(IS7,"&quot;")),a.indexOf("'")!=-1&&(a=a.replace(JmG,"&#39;")),a.indexOf("\x00")!=-1&&(a=a.replace(rmI,"&#0;")));return a};
G3w=function(a){var z={"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"'};var I=_.IE.document.createElement("div");return a.replace(v7I,function(J,r){var P=z[J];if(P)return P;r.charAt(0)=="#"&&(r=Number("0"+r.slice(1)),isNaN(r)||(P=String.fromCharCode(r)));P||(_.YP(I,Rt(J+" ")),P=I.firstChild.nodeValue.slice(0,-1));return z[J]=P})};
$Oe=function(a){return a.replace(/&([^;]+);/g,function(z,I){switch(I){case "amp":return"&";case "lt":return"<";case "gt":return">";case "quot":return'"';default:return I.charAt(0)!="#"||(I=Number("0"+I.slice(1)),isNaN(I))?z:String.fromCharCode(I)}})};
v7I=/&([^;\s<&]+);?/g;_.UQO=function(a){return String(a).replace(/([-()\[\]{}+?*.$\^|,:#<!\\])/g,"\\$1").replace(/\x08/g,"\\x08")};
_.Xp1=String.prototype.repeat?function(a,z){return a.repeat(z)}:function(a,z){return Array(z+1).join(a)};
_.Ic=function(a,z){if(!Number.isFinite(a))return String(a);a=String(a);var I=a.indexOf(".");I===-1&&(I=a.length);var J=a[0]==="-"?"-":"";J&&(a=a.substring(1));return J+(0,_.Xp1)("0",Math.max(0,z-I))+a};
DJ=function(){return Math.floor(Math.random()*2147483648).toString(36)+Math.abs(Math.floor(Math.random()*2147483648)^_.JY()).toString(36)};
ld=function(a){for(var z=0,I=0;I<a.length;++I)z=31*z+a.charCodeAt(I)>>>0;return z};
_.nL=function(a){return String(a).replace(/\-([a-z])/g,function(z,I){return I.toUpperCase()})};
_.sX=function(a){return String(a).replace(/([A-Z])/g,"-$1").toLowerCase()};
T$J=function(a){return a.replace(RegExp("(^|[\\s]+)([a-z])","g"),function(z,I,J){return I+J.toUpperCase()})};var dOi=function(){this.names=new Map};
dOi.prototype.getName=function(a){var z=this.names.get(a);if(z)return z;var I;z=(I=a.description)!=null?I:DJ();this.names.set(a,z);return z};var Wdo=function(a){var z=Error.call(this,a?a.length+" errors occurred during unsubscription:\n"+a.map(function(I,J){return J+1+") "+I.toString()}).join("\n  "):"");
this.message=z.message;"stack"in z&&(this.stack=z.stack);this.errors=a;Object.setPrototypeOf(this,this.constructor.prototype);this.name="UnsubscriptionError"};
_.b(Wdo,Error);var Il=function(a){this.initialTeardown=a;this.closed=!1;this._teardowns=this._parentage=null};
_.Z=Il.prototype;
_.Z.unsubscribe=function(){if(!this.closed){this.closed=!0;var a=this._parentage;if(Array.isArray(a))for(var z=_.C(a),I=z.next();!I.done;I=z.next())I.value.remove(this);else a==null||a.remove(this);z=this.initialTeardown;if(jd(z))try{z()}catch(P){var J=P instanceof Wdo?P.errors:[P]}var r=this._teardowns;if(r)for(this._teardowns=null,z=_.C(r),I=z.next();!I.done;I=z.next()){I=I.value;try{jd(I)?I():I.unsubscribe()}catch(P){I=void 0,J=(I=J)!=null?I:[],P instanceof Wdo?J=[].concat(_.ih(J),_.ih(P.errors)):
J.push(P)}}if(J)throw new Wdo(J);}};
_.Z.add=function(a){if(a&&a!==this)if(this.closed)jd(a)?a():a.unsubscribe();else{if(a instanceof Il){if(a.closed||a._hasParent(this))return;a._addParent(this)}var z;(this._teardowns=(z=this._teardowns)!=null?z:[]).push(a)}};
_.Z._hasParent=function(a){var z=this._parentage;return z===a||Array.isArray(z)&&z.includes(a)};
_.Z._addParent=function(a){var z=this._parentage;this._parentage=Array.isArray(z)?(z.push(a),z):z?[z,a]:a};
_.Z._removeParent=function(a){var z=this._parentage;z===a?this._parentage=null:Array.isArray(z)&&uX3(z,a)};
_.Z.remove=function(a){var z=this._teardowns;z&&uX3(z,a);a instanceof Il&&a._removeParent(this)};
var o71=new Il;o71.closed=!0;Il.JSC$9027_EMPTY=o71;var BVM=function(){setTimeout.apply(null,_.ih(_.dO.apply(0,arguments)))};var JT=function(a){Il.call(this);this.JSC$9032_isStopped=!1;this.destination=a instanceof JT?a:new rc(!a||jd(a)?{next:a!=null?a:void 0}:a);Ex1(a)&&a.add(this)};
_.b(JT,Il);JT.JSC$9027_EMPTY=Il.JSC$9027_EMPTY;JT.create=function(a,z,I){return new Pr(a,z,I)};
_.Z=JT.prototype;_.Z.next=function(a){this.JSC$9032_isStopped||this._next(a)};
_.Z.error=function(a){this.JSC$9032_isStopped||(this.JSC$9032_isStopped=!0,this._error(a))};
_.Z.complete=function(){this.JSC$9032_isStopped||(this.JSC$9032_isStopped=!0,this._complete())};
_.Z.unsubscribe=function(){this.closed||(this.JSC$9032_isStopped=!0,Il.prototype.unsubscribe.call(this))};
_.Z._next=function(a){this.destination.next(a)};
_.Z._error=function(a){this.destination.error(a);this.unsubscribe()};
_.Z._complete=function(){this.destination.complete();this.unsubscribe()};
var rc=function(a){this.partialObserver=a};
rc.prototype.next=function(a){var z=this.partialObserver;if(z.next)try{z.next(a)}catch(I){rV(I)}};
rc.prototype.error=function(a){var z=this.partialObserver;if(z.error)try{z.error(a)}catch(I){rV(I)}else rV(a)};
rc.prototype.complete=function(){var a=this.partialObserver;if(a.complete)try{a.complete()}catch(z){rV(z)}};
var Pr=function(a,z,I){JT.call(this);var J;jd(a)||!a?J={next:a!=null?a:void 0,error:z!=null?z:void 0,complete:I!=null?I:void 0}:J=a;this.destination=new rc(J)};
_.b(Pr,JT);Pr.JSC$9027_EMPTY=JT.JSC$9027_EMPTY;Pr.create=JT.create;var NR=typeof Symbol==="function"&&Symbol.observable||"@@observable";var Cu=function(a){a&&(this._subscribe=a)};
_.Z=Cu.prototype;_.Z.lift=function(a){var z=new Cu;z.source=this;z.operator=a;return z};
_.Z.subscribe=function(a,z,I){a=a&&a instanceof JT||a&&jd(a.next)&&jd(a.error)&&jd(a.complete)&&Ex1(a)?a:new Pr(a,z,I);z=this.operator;I=this.source;a.add(z?z.call(a,I):I?this._subscribe(a):this._trySubscribe(a));return a};
_.Z._trySubscribe=function(a){try{return this._subscribe(a)}catch(z){a.error(z)}};
_.Z.forEach=function(a,z){var I=this;z=Ou$(z);return new z(function(J,r){var P=I.subscribe(function(N){try{a(N)}catch(u){r(u),P==null||P.unsubscribe()}},r,J)})};
_.Z._subscribe=function(a){var z;return(z=this.source)==null?void 0:z.subscribe(a)};
Cu.prototype[NR]=function(){return this};
Cu.prototype.pipe=function(){var a=_.dO.apply(0,arguments);return a.length?gxG(a)(this):this};
Cu.create=function(a){return new Cu(a)};var UOo=function(){var a=Error.call(this,"object unsubscribed");this.message=a.message;"stack"in a&&(this.stack=a.stack);Object.setPrototypeOf(this,this.constructor.prototype);this.name="ObjectUnsubscribedError"};
_.b(UOo,Error);var Zm=function(){this.observers=[];this.hasError=this.JSC$9048_isStopped=this.closed=!1;this.thrownError=null};
_.b(Zm,Cu);_.Z=Zm.prototype;_.Z.lift=function(a){var z=new Zu(this,this);z.operator=a;return z};
_.Z._throwIfClosed=function(){if(this.closed)throw new UOo;};
_.Z.next=function(a){this._throwIfClosed();if(!this.JSC$9048_isStopped){var z=this.observers.slice();z=_.C(z);for(var I=z.next();!I.done;I=z.next())I.value.next(a)}};
_.Z.error=function(a){this._throwIfClosed();if(!this.JSC$9048_isStopped){this.hasError=this.JSC$9048_isStopped=!0;this.thrownError=a;for(var z=this.observers;z.length;)z.shift().error(a)}};
_.Z.complete=function(){this._throwIfClosed();if(!this.JSC$9048_isStopped){this.JSC$9048_isStopped=!0;for(var a=this.observers;a.length;)a.shift().complete()}};
_.Z.unsubscribe=function(){this.JSC$9048_isStopped=this.closed=!0;this.observers=null};
_.Z._trySubscribe=function(a){this._throwIfClosed();return Cu.prototype._trySubscribe.call(this,a)};
_.Z._subscribe=function(a){this._throwIfClosed();this._checkFinalizedStatuses(a);return this._innerSubscribe(a)};
_.Z._innerSubscribe=function(a){var z=this,I=this.JSC$9048_isStopped,J=this.observers;return this.hasError||I?Il.JSC$9027_EMPTY:(J.push(a),new Il(function(){return uX3(z.observers,a)}))};
_.Z._checkFinalizedStatuses=function(a){var z=this.thrownError,I=this.JSC$9048_isStopped;this.hasError?a.error(z):I&&a.complete()};
Zm.create=function(a,z){return new Zu(a,z)};
var Zu=function(a,z){Zm.call(this);this.destination=a;this.source=z};
_.b(Zu,Zm);Zu.create=Zm.create;Zu.prototype.next=function(a){var z,I;(z=this.destination)==null||(I=z.next)==null||I.call(z,a)};
Zu.prototype.error=function(a){var z,I;(z=this.destination)==null||(I=z.error)==null||I.call(z,a)};
Zu.prototype.complete=function(){var a,z;(a=this.destination)==null||(z=a.complete)==null||z.call(a)};
Zu.prototype._subscribe=function(a){var z,I;return(I=(z=this.source)==null?void 0:z.subscribe(a))!=null?I:Il.JSC$9027_EMPTY};var Dm=function(a){Zm.call(this);this._value=a};
_.b(Dm,Zm);Dm.create=Zm.create;Dm.prototype._subscribe=function(a){var z=Zm.prototype._subscribe.call(this,a);!z.closed&&a.next(this._value);return z};
Dm.prototype.getValue=function(){var a=this.thrownError,z=this._value;if(this.hasError)throw a;this._throwIfClosed();return z};
Dm.prototype.next=function(a){Zm.prototype.next.call(this,this._value=a)};
_.eH.Object.defineProperties(Dm.prototype,{value:{configurable:!0,enumerable:!0,get:function(){return this.getValue()}}});var XX=new Cu(function(a){return a.complete()});var nxO=typeof Symbol==="function"&&Symbol.iterator?Symbol.iterator:"@@iterator";var hEd=function(a){return a&&typeof a.length==="number"&&typeof a!=="function"};var DOE={now:function(){return(DOE.delegate||Date).now()},
delegate:void 0};var MR=function(a,z,I){a=a===void 0?Infinity:a;z=z===void 0?Infinity:z;I=I===void 0?DOE:I;Zm.call(this);this.bufferSize=a;this.windowTime=z;this.timestampProvider=I;this.buffer=[];this.infiniteTimeWindow=!0;this.infiniteTimeWindow=z===Infinity;this.bufferSize=Math.max(1,a);this.windowTime=Math.max(1,z)};
_.b(MR,Zm);MR.create=Zm.create;MR.prototype.next=function(a){var z=this.buffer,I=this.infiniteTimeWindow,J=this.timestampProvider,r=this.windowTime;this.JSC$9048_isStopped||(z.push(a),!I&&z.push(J.now()+r));RIv(this);Zm.prototype.next.call(this,a)};
MR.prototype._subscribe=function(a){this._throwIfClosed();RIv(this);for(var z=this._innerSubscribe(a),I=this.infiniteTimeWindow,J=this.buffer.slice(),r=0;r<J.length&&!a.closed;r+=I?1:2)a.next(J[r]);this._checkFinalizedStatuses(a);return z};
var RIv=function(a){var z=a.bufferSize,I=a.timestampProvider,J=a.buffer;a=a.infiniteTimeWindow;var r=(a?1:2)*z;z<Infinity&&r<J.length&&J.splice(0,J.length-r);if(!a){z=I.now();I=0;for(a=1;a<J.length&&J[a]<=z;a+=2)I=a;I&&J.splice(0,I+1)}};var lie=function(a,z){z=z===void 0?Ldw:z;this.schedulerActionCtor=a;this.now=z};
lie.prototype.schedule=function(a,z,I){z=z===void 0?0:z;return(new this.schedulerActionCtor(this,a)).schedule(I,z)};
var Ldw=DOE.now;var fmG=function(){var a=Error.call(this,"no elements in sequence");this.message=a.message;"stack"in a&&(this.stack=a.stack);Object.setPrototypeOf(this,this.constructor.prototype);this.name="EmptyError"};
_.b(fmG,Error);var VU=function(a,z,I,J,r){JT.call(this,a);this.onUnsubscribe=r;z&&(this._next=function(P){try{z(P)}catch(N){this.destination.error(N)}});
I&&(this._error=function(P){try{I(P)}catch(N){this.destination.error(N)}this.unsubscribe()});
J&&(this._complete=function(){try{J()}catch(P){this.destination.error(P)}this.unsubscribe()})};
_.b(VU,JT);VU.JSC$9027_EMPTY=JT.JSC$9027_EMPTY;VU.create=JT.create;VU.prototype.unsubscribe=function(){var a;this.closed||(a=this.onUnsubscribe)!=null&&a.call(this);JT.prototype.unsubscribe.call(this)};var yU=function(a,z){this.source=a;this.subjectFactory=z;this._subject=null;this._refCount=0;this._connection=null};
_.b(yU,Cu);yU.create=Cu.create;yU.prototype._subscribe=function(a){return ppX(this).subscribe(a)};
var ppX=function(a){var z=a._subject;if(!z||z.JSC$9048_isStopped)a._subject=a.subjectFactory();return a._subject};
yU.prototype._teardown=function(){this._refCount=0;var a=this._connection;this._subject=this._connection=null;a==null||a.unsubscribe()};
yU.prototype.connect=function(){var a=this,z=this._connection;if(!z){z=this._connection=new Il;var I=ppX(this);z.add(this.source.subscribe(new VU(I,void 0,function(J){a._teardown();I.error(J)},function(){a._teardown();
I.complete()},function(){return a._teardown()})));
z.closed&&(this._connection=null,z=Il.JSC$9027_EMPTY)}return z};var W6G=Array.isArray;var URp=Array.isArray,wpj=Object,DRp=wpj.getPrototypeOf,RE1=wpj.prototype,L6I=wpj.keys;var vP=function(a,z,I){JT.call(this,a);this._next=z;this.shouldComplete=I};
_.b(vP,JT);vP.JSC$9027_EMPTY=JT.JSC$9027_EMPTY;vP.create=JT.create;vP.prototype._complete=function(){this.shouldComplete()?JT.prototype._complete.call(this):this.unsubscribe()};var Ykd=["addListener","removeListener"],cyp=["addEventListener","removeEventListener"],eEO=["on","off"];var Cx=function(){Il.call(this)};
_.b(Cx,Il);Cx.JSC$9027_EMPTY=Il.JSC$9027_EMPTY;Cx.prototype.schedule=function(){return this};var mOl=function(a,z){return setInterval.apply(null,[a,z].concat(_.ih(_.dO.apply(2,arguments))))};var NH=function(a,z){Il.call(this);this.scheduler=a;this.work=z;this.pending=!1};
_.b(NH,Cx);NH.JSC$9027_EMPTY=Cx.JSC$9027_EMPTY;NH.prototype.schedule=function(a,z){z=z===void 0?0:z;if(this.closed)return this;this.state=a;a=this.id;var I=this.scheduler;a!=null&&(this.id=y11(this,a,z));this.pending=!0;this.delay=z;this.id=this.id||this.requestAsyncId(I,this.id,z);return this};
NH.prototype.requestAsyncId=function(a,z,I){I=I===void 0?0:I;return mOl(a.flush.bind(a,this),I)};
var y11=function(a,z,I){I=I===void 0?0:I;if(I!=null&&a.delay===I&&a.pending===!1)return z;clearInterval(z)};
NH.prototype.execute=function(a,z){if(this.closed)return Error("ha");this.pending=!1;if(a=this._execute(a,z))return a;this.pending===!1&&this.id!=null&&(this.id=y11(this,this.id,null))};
NH.prototype._execute=function(a){var z=!1;try{this.work(a)}catch(J){z=!0;var I=!!J&&J||Error(J)}if(z)return this.unsubscribe(),I};
NH.prototype.unsubscribe=function(){if(!this.closed){var a=this.id,z=this.scheduler.actions;this.work=this.state=this.scheduler=null;this.pending=!1;uX3(z,this);a!=null&&(this.id=y11(this,a,null));this.delay=null;Cx.prototype.unsubscribe.call(this)}};var k3f=function(a,z){z=z===void 0?Ldw:z;lie.call(this,a,z);this.actions=[];this.active=!1;this.scheduled=void 0};
_.b(k3f,lie);k3f.prototype.flush=function(a){var z=this.actions;if(this.active)z.push(a);else{var I;this.active=!0;do if(I=a.execute(a.state,a.delay))break;while(a=z.shift());this.active=!1;if(I){for(;a=z.shift();)a.unsubscribe();throw I;}}};var V8=new Cu(Jy);var am$=Array.isArray;var tT=function(a,z){NH.call(this,a,z);this.scheduler=a;this.work=z};
_.b(tT,NH);tT.JSC$9027_EMPTY=NH.JSC$9027_EMPTY;tT.prototype.schedule=function(a,z){z=z===void 0?0:z;if(z>0)return NH.prototype.schedule.call(this,a,z);this.delay=z;this.state=a;this.scheduler.flush(this);return this};
tT.prototype.execute=function(a,z){return z>0||this.closed?NH.prototype.execute.call(this,a,z):this._execute(a,z)};
tT.prototype.requestAsyncId=function(a,z,I){I=I===void 0?0:I;return I!=null&&I>0||I==null&&this.delay>0?NH.prototype.requestAsyncId.call(this,a,z,I):a.flush(this)};var MMf=function(){k3f.apply(this,arguments)};
_.b(MMf,k3f);var TV0=new MMf(tT);var c1w=function(){this.performanceMonitor=new jEl;this.queue=new zIE;this.internalSymbol=Symbol();this.debugNames=new dOi};
c1w.prototype.getOnBackgrounded=function(){return V8};
_.eH.Object.defineProperties(c1w.prototype,{symbol:{configurable:!0,enumerable:!0,get:function(){return this.internalSymbol}}});var u3=function(a,z){z=Error.call(this,z?a+": "+z:String(a));this.message=z.message;"stack"in z&&(this.stack=z.stack);this.code=a;this.__proto__=u3.prototype;this.name=String(a)};
_.b(u3,Error);var Q8=function(a){u3.call(this,1E3,'sfr:"'+a+'"');this.measurementStrategyFailureReason=a;this.__proto__=Q8.prototype};
_.b(Q8,u3);var ip=function(){u3.call(this,1003);this.__proto__=ip.prototype};
_.b(ip,u3);var Et=function(){u3.call(this,1009);this.__proto__=Et.prototype};
_.b(Et,u3);var Ymw=function(){u3.call(this,1011);this.__proto__=Ymw.prototype};
_.b(Ymw,u3);var qmi=function(){u3.call(this,1007);this.__proto__=ip.prototype};
_.b(qmi,u3);var bp=function(a){u3.call(this,1004,String(a));this.inputObservableIndex=a;this.__proto__=bp.prototype};
_.b(bp,u3);var GaM=function(a){u3.call(this,1010,a);this.__proto__=$C1.prototype};
_.b(GaM,u3);var $C1=function(a){u3.call(this,1005,a);this.__proto__=$C1.prototype};
_.b($C1,u3);var eIl=function(a){var z=_.dO.apply(1,arguments),I=this;this.orderedFactories=[];this.orderedFactories.push(a);z.forEach(function(J){I.orderedFactories.push(J)})};
eIl.prototype.isSupported=function(a){return this.orderedFactories.some(function(z){return z.isSupported(a)})};
eIl.prototype.makeBeacon=function(a,z){for(var I=0;I<this.orderedFactories.length;I++)if(this.orderedFactories[I].isSupported(z))return this.orderedFactories[I].makeBeacon(a,z);throw new Et;};var KAO=Symbol("ia"),ajv=Symbol("ja"),ol=function(a,z){this.value=a;this.timeline=z},WP=function(a,z){if(z.timeline!==a.timeline)throw new qmi;
return a.value-z.value};
_.Z=ol.prototype;_.Z.equals=function(a){return WP(this,a)===0};
_.Z.maximum=function(a){if(a.timeline!==this.timeline)throw new qmi;return this.value>=a.value?this:a};
_.Z.round=function(){return new ol(Math.round(this.value),this.timeline)};
_.Z.add=function(a){return new ol(this.value+a,this.timeline)};
_.Z.toString=function(){return String(this.value)};var Ot=function(a,z){this.context=a;this.JSC$9154_pinger=z};
Ot.prototype.isSupported=function(a){return this.JSC$9154_pinger.isSupported(a)};
Ot.prototype.makeBeacon=function(a,z){if(!this.isSupported(z))throw new Et;return new fx(this.context,this.JSC$9154_pinger,z!=null?z:void 0,a)};
var fx=function(a,z,I,J){var r=this;this.JSC$9160_pinger=z;this.properties=I;this.url=J;this.internalIsPending=!0;this.customHeaders=new Map;this.body=void 0;var P;this.method=(P=I==null?void 0:I.beaconMethod)!=null?P:"GET";this.backgroundedSubscription=a.getOnBackgrounded().subscribe(function(){r.sendNow()})};
fx.prototype.deactivate=function(){this.internalIsPending=!1};
fx.prototype.sendNow=function(){if(this.internalIsPending)if(this.backgroundedSubscription.unsubscribe(),this.JSC$9160_pinger.isSupported(this.properties))try{if(this.customHeaders.size>0||this.body!==void 0){var a,z;this.JSC$9160_pinger.pingWithHeadersAndBody((a=this.properties)!=null?a:{},this.customHeaders,(z=this.body)!=null?z:"",this.url)}else this.JSC$9160_pinger.ping(this.url);this.internalIsPending=!1}catch(I){}else this.internalIsPending=!1};
fx.prototype.setHeader=function(a,z){this.customHeaders.set(a,z)};
_.eH.Object.defineProperties(fx.prototype,{isPending:{configurable:!0,enumerable:!0,get:function(){return this.internalIsPending}}});var zvG=function(){for(var a=_.C(_.dO.apply(0,arguments)),z=a.next();!z.done;z=a.next())if(z=z.value,z.available()){this.timeProvider=z;return}this.timeProvider=new jwi};
_.Z=zvG.prototype;_.Z.available=function(){return this.timeProvider.available()};
_.Z.now=function(){return this.timeProvider.now()};
_.Z.setTimeout=function(a,z){return this.timeProvider.setTimeout(a,z)};
_.Z.clearTimeout=function(a){this.timeProvider.clearTimeout(a)};
_.Z.interval=function(a,z){var I=this.intervalObservable(a).subscribe(z);return function(){return void I.unsubscribe()}};
_.Z.intervalObservable=function(a){return this.timeProvider.intervalObservable(a)};
_.eH.Object.defineProperties(zvG.prototype,{timeline:{configurable:!0,enumerable:!0,get:function(){return this.timeProvider.timeline}}});
var jwi=function(){this.timeline=Symbol()};
_.Z=jwi.prototype;_.Z.available=function(){return!1};
_.Z.now=function(){return new ol(0,this.timeline)};
_.Z.setTimeout=function(){return 0};
_.Z.clearTimeout=function(){};
_.Z.interval=function(){return function(){}};
_.Z.intervalObservable=function(){return V8};var AT=function(a,z){this.intrinsicFunctionNamespace=a;this.performanceMonitor=z};
_.Z=AT.prototype;_.Z.setTimeout=function(a,z){return this.intrinsicFunctionNamespace.setTimeout(this.performanceMonitor.timeExecution(734,a),z)};
_.Z.clearTimeout=function(a){this.intrinsicFunctionNamespace.clearTimeout(a)};
_.Z.interval=function(a,z){var I=this.intervalObservable(a).subscribe(z);return function(){return void I.unsubscribe()}};
_.Z.intervalObservable=function(a){var z=this;return new Cu(function(I){var J=0,r=z.intrinsicFunctionNamespace.setInterval(function(){I.next(J++)},a);
return function(){z.intrinsicFunctionNamespace.clearInterval(r)}})};
_.Z.available=function(){return!!this.intrinsicFunctionNamespace.clearTimeout&&"setTimeout"in this.intrinsicFunctionNamespace&&"setInterval"in this.intrinsicFunctionNamespace&&!!this.intrinsicFunctionNamespace.clearInterval};var Ijo=function(a,z){AT.call(this,a,z);this.timeline=ajv};
_.b(Ijo,AT);Ijo.prototype.now=function(){return new ol(this.intrinsicFunctionNamespace.Date.now(),this.timeline)};
Ijo.prototype.available=function(){return!!this.intrinsicFunctionNamespace.Date&&!!this.intrinsicFunctionNamespace.Date.now&&AT.prototype.available.call(this)};var Joj=function(a,z){AT.call(this,a,z);this.timeline=KAO};
_.b(Joj,AT);Joj.prototype.now=function(){return new ol(this.intrinsicFunctionNamespace.performance.now(),this.timeline)};
Joj.prototype.available=function(){return!!this.intrinsicFunctionNamespace.performance&&!!this.intrinsicFunctionNamespace.performance.now&&AT.prototype.available.call(this)};var Pww=function(a){this.context=a;if(rof===void 0)a:{var z,I,J=(z=a.global)==null?void 0:(I=z.document)==null?void 0:I.createElement("meta");if(J)try{J.httpEquiv="origin-trial";J.content="AxjhRadLCARYRJawRjMjq4U8V8okQvSnrBIJWdMajuEkN3/DfVAcLcFhMVrUWnOXagwlI8dQD84FwJDGj9ohqAYAAABveyJvcmlnaW4iOiJodHRwczovL2dvb2dsZWFkc2VydmljZXMuY29tOjQ0MyIsImZlYXR1cmUiOiJGZXRjaExhdGVyQVBJIiwiZXhwaXJ5IjoxNzI1NDA3OTk5LCJpc1RoaXJkUGFydHkiOnRydWV9";a.global.document.head.append(J);rof=J;break a}catch(r){}rof=void 0}},
rof;
Pww.prototype.isSupported=function(a){return tTm(this.context)!==void 0&&!(a==null||!a.endOfSession)&&!st(this.context)&&!(a==null?0:a.attributionEnabled)&&!(a==null?0:a.customHeaders)&&!(a==null?0:a.customBody)};
Pww.prototype.makeBeacon=function(a,z){if(!this.isSupported(z))throw new Et;return new nx(this.context,a,z)};
var nx=function(a,z,I){this.context=a;this.properties=I;this.JSC$9187_urlWithoutToken=z;var J;this.beaconMethod=(J=I==null?void 0:I.beaconMethod)!=null?J:"GET";a=tTm(this.context);if(a===void 0)throw Error();this.fetchLater=a;Zlo(this,CwI(this))},Zlo=function(a,z){a.beaconResult&&a.beaconResult.activated||(a.beaconAbort=new AbortController,a.beaconResult=a.fetchLater(z,{method:a.beaconMethod,
cache:"no-cache",mode:"no-cors",signal:a.beaconAbort.signal,activateAfter:96E4}))},CwI=function(a){a=a.JSC$9187_urlWithoutToken;
return(a.slice(-1)[0]==="&"?a:a+"&")+"flapi=1"};
nx.prototype.deactivate=function(){this.beaconResult&&!this.beaconResult.activated&&this.beaconAbort&&(this.beaconAbort.abort(),this.beaconResult=void 0)};
nx.prototype.sendNow=function(){};
nx.prototype.setHeader=function(){};
_.eH.Object.defineProperties(nx.prototype,{url:{configurable:!0,enumerable:!0,get:function(){return this.JSC$9187_urlWithoutToken},
set:function(a){this.JSC$9187_urlWithoutToken=a;a=CwI(this);this.beaconResult&&this.beaconResult.activated||!this.beaconAbort||(this.beaconAbort.abort(),this.beaconResult=void 0);Zlo(this,a)}},
method:{configurable:!0,enumerable:!0,get:function(){return this.beaconMethod}},
isPending:{configurable:!0,enumerable:!0,get:function(){return this.beaconResult?!this.beaconResult.activated:!1}}});var Nfo=function(a){this.context=a};
Nfo.prototype.isSupported=function(){return!st(this.context)&&!!this.context.global.fetch};
Nfo.prototype.ping=function(){var a=this;return Tj.apply(null,_.ih(_.dO.apply(0,arguments).map(function(z){return Ek(a.context.global.fetch(z,{method:"GET",cache:"no-cache",keepalive:!0,mode:"no-cors"})).pipe(Sd(function(I){return I.status===200}))}))).pipe(Azd(function(z){return z}),n87())};
Nfo.prototype.pingWithHeadersAndBody=function(a,z,I){for(var J=_.dO.apply(3,arguments),r=this,P=new Headers,N=_.C(z.entries()),u=N.next();!u.done;u=N.next()){var E=_.C(u.value);u=E.next().value;E=E.next().value;P.set(u,E)}var O,f=(O=a.keepAlive)!=null?O:!1;Tj.apply(null,_.ih(J.map(function(A){return Ek(r.context.global.fetch(A,Object.assign({},{method:String(a.beaconMethod),cache:"no-cache"},f?{keepalive:!0}:{},{mode:"no-cors",headers:P,body:I}))).pipe(Sd(function(n){return n.status===200}))}))).pipe(Azd(function(A){return A}),
n87())};var tIl,Rd3;_.Kx=function(){};
_.T3=function(a){return a};
tIl=function(a){var z=z||0;return function(){return a.apply(this,Array.prototype.slice.call(arguments,0,z))}};
_.FO=function(a){var z=!1,I;return function(){z||(I=a(),z=!0);return I}};
_.Hr=function(a,z){var I=0;return function(J){_.IE.clearTimeout(I);var r=arguments;I=_.IE.setTimeout(function(){a.apply(void 0,r)},z)}};
Rd3=function(a,z){var I=0,J=!1,r=[],P=function(){I=0;J&&(J=!1,N())},N=function(){I=_.IE.setTimeout(P,z);
var u=r;r=[];a.apply(void 0,u)};
return function(u){r=arguments;I?J=!0:N()}};var EGw=function(){return sm&&KG?KG.mobile:!u1f()&&(F0("iPod")||F0("iPhone")||F0("Android")||F0("IEMobile"))},u1f=function(){return sm&&KG?!KG.mobile&&(F0("iPad")||F0("Android")||F0("Silk")):F0("iPad")||F0("Android")&&!F0("Mobile")||F0("Silk")};var BfG;_.x8={};BfG="constructor hasOwnProperty isPrototypeOf propertyIsEnumerable toLocaleString toString valueOf".split(" ");_.x8.add=function(a,z,I){if(a!==null&&z in a)throw Error("la`"+z);a[z]=I};
_.x8.clear=function(a){for(var z in a)delete a[z]};
_.x8.clone=function(a){var z={},I;for(I in a)z[I]=a[I];return z};
_.x8.contains=function(a,z){return VTE(a,z)};
_.x8.containsKey=function(a,z){return a!==null&&z in a};
_.x8.containsValue=VTE;_.x8.create=iBd;_.x8.createImmutableView=function(a){var z=a;Object.isFrozen&&!Object.isFrozen(a)&&(z=Object.create(a),Object.freeze(z));return z};
_.x8.createSet=xMM;_.x8.equals=function(a,z){for(var I in a)if(!(I in z)||a[I]!==z[I])return!1;for(var J in z)if(!(J in a))return!1;return!0};
_.x8.every=function(a,z,I){for(var J in a)if(!z.call(I,a[J],J,a))return!1;return!0};
_.x8.extend=function(a,z){for(var I,J,r=1;r<arguments.length;r++){J=arguments[r];for(I in J)a[I]=J[I];for(var P=0;P<BfG.length;P++)I=BfG[P],Object.prototype.hasOwnProperty.call(J,I)&&(a[I]=J[I])}};
_.x8.filter=function(a,z,I){var J={},r;for(r in a)z.call(I,a[r],r,a)&&(J[r]=a[r]);return J};
_.x8.findKey=QNE;_.x8.findValue=function(a,z,I){return(z=QNE(a,z,I))&&a[z]};
_.x8.forEach=function(a,z,I){for(var J in a)z.call(I,a[J],J,a)};
_.x8.get=function(a,z,I){return a!==null&&z in a?a[z]:I};
_.x8.getAllPropertyNames=function(a,z,I){if(!a)return[];if(!Object.getOwnPropertyNames||!Object.getPrototypeOf)return ht1(a);for(var J={};a&&(a!==Object.prototype||z)&&(a!==Function.prototype||I);){for(var r=Object.getOwnPropertyNames(a),P=0;P<r.length;P++)J[r[P]]=!0;a=Object.getPrototypeOf(a)}return ht1(J)};
_.x8.getAnyKey=function(a){for(var z in a)return z};
_.x8.getAnyValue=function(a){for(var z in a)return a[z]};
_.x8.getCount=function(a){var z=0,I;for(I in a)z++;return z};
_.x8.getKeys=ht1;_.x8.getSuperClass=function(a){return(a=Object.getPrototypeOf(a.prototype))&&a.constructor};
_.x8.getValueByKeys=function(a,z){var I=_.lG(z),J=I?z:arguments;for(I=I?0:1;I<J.length;I++){if(a==null)return;a=a[J[I]]}return a};
_.x8.getValues=function(a){var z=[],I=0,J;for(J in a)z[I++]=a[J];return z};
_.x8.isEmpty=function(a){for(var z in a)return!1;return!0};
_.x8.isImmutableView=function(a){return!!Object.isFrozen&&Object.isFrozen(a)};
_.x8.map=function(a,z,I){var J={},r;for(r in a)J[r]=z.call(I,a[r],r,a);return J};
_.x8.remove=function(a,z){var I;(I=z in a)&&delete a[z];return I};
_.x8.set=function(a,z,I){a[z]=I};
_.x8.setIfUndefined=function(a,z,I){return z in a?a[z]:a[z]=I};
_.x8.setWithReturnValueIfNotSet=function(a,z,I){if(z in a)return a[z];I=I();return a[z]=I};
_.x8.some=function(a,z,I){for(var J in a)if(z.call(I,a[J],J,a))return!0;return!1};
_.x8.transpose=function(a){var z={},I;for(I in a)z[a[I]]=I;return z};
_.x8.unsafeClone=ShM;var b3=function(a,z,I,J,r){this.allowedElements=a;this.elementPolicies=z;this.allowedGlobalAttributes=I;this.globalAttributePolicies=J;this.globallyAllowedAttributePrefixes=r},gGf=function(a,z,I){I=a.elementPolicies.get(I);
return(I==null?0:I.has(z))?I.get(z):a.allowedGlobalAttributes.has(z)?{policyAction:1}:(I=a.globalAttributePolicies.get(z))?I:a.globallyAllowedAttributePrefixes&&[].concat(_.ih(a.globallyAllowedAttributePrefixes)).some(function(J){return z.indexOf(J)===0})?{policyAction:1}:{policyAction:0}};var Olv="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(" "),
fj1=[["A",new Map([["href",{policyAction:7}]])],["AREA",new Map([["href",{policyAction:7}]])],["LINK",new Map([["href",{policyAction:5,conditions:new Map([["rel",new Set("alternate author bookmark canonical cite help icon license next prefetch dns-prefetch prerender preconnect preload prev search subresource".split(" "))]])}]])],["SOURCE",new Map([["src",{policyAction:5}],["srcset",{policyAction:6}]])],["IMG",new Map([["src",{policyAction:5}],["srcset",{policyAction:6}]])],["VIDEO",new Map([["src",
{policyAction:5}]])],["AUDIO",new Map([["src",{policyAction:5}]])]],Aol="title aria-atomic aria-autocomplete aria-busy aria-checked aria-current aria-disabled aria-dropeffect aria-expanded aria-haspopup aria-hidden aria-invalid aria-label aria-level aria-live aria-multiline aria-multiselectable aria-orientation aria-posinset aria-pressed aria-readonly aria-relevant aria-required aria-selected aria-setsize aria-sort aria-valuemax aria-valuemin aria-valuenow aria-valuetext alt align autocapitalize autocomplete autocorrect autofocus autoplay bgcolor border cellpadding cellspacing checked cite color cols colspan controls controlslist coords crossorigin datetime disabled download draggable enctype face formenctype frameborder height hreflang hidden inert ismap label lang loop max maxlength media minlength min multiple muted nonce open playsinline placeholder poster preload rel required reversed role rows rowspan selected shape size sizes slot span spellcheck start step summary translate type usemap valign value width wrap itemscope itemtype itemid itemprop itemref".split(" "),
swE=[["dir",{policyAction:3,conditions:K4(function(){return new Map([["dir",new Set(["auto","ltr","rtl"])]])})}],
["async",{policyAction:3,conditions:K4(function(){return new Map([["async",new Set(["async"])]])})}],
["loading",{policyAction:3,conditions:K4(function(){return new Map([["loading",new Set(["eager","lazy"])]])})}],
["target",{policyAction:3,conditions:K4(function(){return new Map([["target",new Set(["_self","_blank"])]])})}]],nGX=new b3(new Set(Olv),new Map(fj1),new Set(Aol),new Map(swE)),KXe=new b3(new Set(Olv.concat(["BUTTON",
"INPUT"])),new Map(fj1),new Set(K4(function(){return Aol.concat(["class","id","name"])})),new Map(K4(function(){return swE.concat([["style",
{policyAction:1}]])})));var FXG,Hlw,hvf;FXG=function(a,z,I,J,r){this.JSC$9247_sanitizerTable=a;this.styleElementSanitizer=z;this.styleAttributeSanitizer=I;this.JSC$9247_resourceUrlPolicy=J;this.JSC$9247_navigationUrlPolicy=r;this.changes=[]};
_.ble=function(a,z){var I=document.implementation.createHTMLDocument("");a=Hlw(a,z,I);I=I.body;I.appendChild(a);I=(new XMLSerializer).serializeToString(I);I=I.slice(I.indexOf(">")+1,I.lastIndexOf("</"));return Rt(I)};
Hlw=function(a,z,I){z=$M3(z,I);z=document.createTreeWalker(z,5,function(u){if(u.nodeType===3)u=1;else if(TJ3(u))if(u=XHm(u),u===null)u=2;else{var E=a.JSC$9247_sanitizerTable;u=u!=="FORM"&&(E.allowedElements.has(u)||E.elementPolicies.has(u))?1:2}else u=2;return u});
for(var J=z.nextNode(),r=I.createDocumentFragment(),P=r;J!==null;){var N=void 0;if(J.nodeType===3)a.styleElementSanitizer&&P.nodeName==="STYLE"?(J=a.styleElementSanitizer(J.data),N=a.createTextNode(J)):N=a.createTextNode(J.data);else if(TJ3(J))N=hvf(a,J,I);else throw Error("Z");P.appendChild(N);if(J=z.firstChild())P=N;else for(;!(J=z.nextSibling())&&(J=z.parentNode());)P=P.parentNode}return r};
FXG.prototype.createTextNode=function(a){return document.createTextNode(a)};
hvf=function(a,z,I){var J,r=XHm(z);I=I.createElement(r);z=z.attributes;for(var P=_.C(z),N=P.next();!N.done;N=P.next()){var u=N.value;N=u.name;u=u.value;var E=gGf(a.JSC$9247_sanitizerTable,N,r);a:{if(J=E.conditions){J=_.C(J);for(var O=J.next();!O.done;O=J.next()){var f=_.C(O.value);O=f.next().value;f=f.next().value;var A=void 0;if((O=(A=z.getNamedItem(O))==null?void 0:A.value)&&!f.has(O)){J=!1;break a}}}J=!0}if(J)switch(E.policyAction){case 1:IN(I,N,u);break;case 2:throw Error();case 3:IN(I,N,u.toLowerCase());
break;case 4:a.styleAttributeSanitizer?(u=a.styleAttributeSanitizer(u),IN(I,N,u)):IN(I,N,u);break;case 5:a.JSC$9247_resourceUrlPolicy?(E={type:2,attributeName:N,elementName:r},u=GB3(u),(u=a.JSC$9247_resourceUrlPolicy(u,E))&&IN(I,N,u.toString())):IN(I,N,u);break;case 6:if(a.JSC$9247_resourceUrlPolicy){E={type:2,attributeName:N,elementName:r};J=[];u=_.C(u.split(","));for(O=u.next();!O.done;O=u.next())f=_.C(O.value.trim().split(/\s+/,2)),O=f.next().value,f=f.next().value,J.push({url:O,descriptor:f});
u={parts:[]};J=_.C(J);for(O=J.next();!O.done;O=J.next())O=O.value,f=GB3(O.url),(f=a.JSC$9247_resourceUrlPolicy(f,E))&&u.parts.push({url:f.toString(),descriptor:O.descriptor});IN(I,N,dMG(u))}else IN(I,N,u);break;case 7:E=u;if(a.JSC$9247_navigationUrlPolicy){E={type:2,attributeName:N,elementName:r};u=GB3(u);u=a.JSC$9247_navigationUrlPolicy(u,E);if(u===null)break;E=u.toString()}u=E;E=_.aIp(u);E=E!==void 0&&VMw.indexOf(E.toLowerCase())!==-1?u:"about:invalid#zClosurez";IN(I,N,E)}}return I};
_.VIi=K4(function(){return new FXG(nGX)});
_.QwE=K4(function(){return new FXG(KXe)});var SOG=function(){this.calledBuild=!1;this.JSC$9259_sanitizerTable=nGX},ilo=function(){SOG.apply(this,arguments)};
_.b(ilo,SOG);ilo.prototype.build=function(){if(this.calledBuild)throw Error("na");this.calledBuild=!0;return new FXG(this.JSC$9259_sanitizerTable,void 0,void 0,this.JSC$9259_resourceUrlPolicy,this.JSC$9259_navigationUrlPolicy)};var xEO=/[^#]*/;var GJE=function(a){var z=vGI;if(z)for(var I in z)Object.prototype.hasOwnProperty.call(z,I)&&a(z[I],I,z)},$El=function(){var a=[];
GJE(function(z){a.push(z)});
return a},vGI={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"},Xei=_.FO(function(){return $El()}),dEG=function(){var a=Tfw("IFRAME"),
z={};
_.l1(Xei(),function(I){a.sandbox&&a.sandbox.supports&&a.sandbox.supports(I)&&(z[I]=!0)});
return z},Tfw=function(a,z){z=z===void 0?document:z;
return z.createElement(String(a).toLowerCase())};var hT;_.TO=function(a,z,I){return Math.min(Math.max(a,z),I)};
hT=function(a,z,I){return a+I*(z-a)};_.GB=function(a,z){this.x=a!==void 0?a:0;this.y=z!==void 0?z:0};
_.Z=_.GB.prototype;_.Z.clone=function(){return new _.GB(this.x,this.y)};
_.Z.equals=function(a){return a instanceof _.GB&&(this==a?!0:this&&a?this.x==a.x&&this.y==a.y:!1)};
_.Z.ceil=function(){this.x=Math.ceil(this.x);this.y=Math.ceil(this.y);return this};
_.Z.floor=function(){this.x=Math.floor(this.x);this.y=Math.floor(this.y);return this};
_.Z.round=function(){this.x=Math.round(this.x);this.y=Math.round(this.y);return this};
_.Z.translate=function(a,z){a instanceof _.GB?(this.x+=a.x,this.y+=a.y):(this.x+=Number(a),typeof z==="number"&&(this.y+=z));return this};
_.Z.scale=function(a,z){this.x*=a;this.y*=typeof z==="number"?z:a;return this};_.fB=function(a,z){this.width=a;this.height=z};
_.Z=_.fB.prototype;_.Z.clone=function(){return new _.fB(this.width,this.height)};
_.Z.area=function(){return this.width*this.height};
_.Z.aspectRatio=function(){return this.width/this.height};
_.Z.isEmpty=function(){return!this.area()};
_.Z.ceil=function(){this.width=Math.ceil(this.width);this.height=Math.ceil(this.height);return this};
_.Z.floor=function(){this.width=Math.floor(this.width);this.height=Math.floor(this.height);return this};
_.Z.round=function(){this.width=Math.round(this.width);this.height=Math.round(this.height);return this};
_.Z.scale=function(a,z){this.width*=a;this.height*=typeof z==="number"?z:a;return this};var Wa=function(a,z){this.stringConstValueWithSecurityContract__googStringSecurityPrivate_=a===ncx&&z||"";this.STRING_CONST_TYPE_MARKER__GOOG_STRING_SECURITY_PRIVATE_=WX1};
Wa.prototype.toString=function(){return this.stringConstValueWithSecurityContract__googStringSecurityPrivate_};
var oGO=function(a){return a instanceof Wa&&a.constructor===Wa&&a.STRING_CONST_TYPE_MARKER__GOOG_STRING_SECURITY_PRIVATE_===WX1?a.stringConstValueWithSecurityContract__googStringSecurityPrivate_:"type_error:Const"},WX1={},ncx={};
new Wa(ncx,"");var nB,A7,Qj,UEO,LXf,Rve,$8,peI,mEO,weI,vr,yol,aEO,evl,qOE,jZi,ziw,IEv,Jej,Upp,reX,ZZf,C0w,P0l,Vj;nB=function(a){return a?new Vj(_.Xm(a)):M7G||(M7G=new Vj)};
_.JE=function(a,z){return typeof z==="string"?a.getElementById(z):z};
A7=function(a,z){return(z||document).getElementsByTagName(String(a))};
_.DEw=function(a){return UEO("yt-formatted-string","paper-input-input",a)};
Qj=function(a,z,I,J){a=J||a;return(z=z&&z!="*"?String(z).toUpperCase():"")||I?a.querySelectorAll(z+(I?"."+I:"")):a.getElementsByTagName("*")};
UEO=function(a,z,I){var J=document,r=a&&a!="*"?String(a).toUpperCase():"";return r||z?(I||J).querySelector(r+(z?"."+z:"")):Qj(J,a,z,I)[0]||null};
LXf=function(a,z){_.x8.forEach(z,function(I,J){J=="style"?a.style.cssText=I:J=="class"?a.className=I:J=="for"?a.htmlFor=I:Rve.hasOwnProperty(J)?a.setAttribute(Rve[J],I):_.Pp(J,"aria-")||_.Pp(J,"data-")?a.setAttribute(J,I):a[J]=I})};
Rve={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"};_.Az=function(a){a=(a||window).document;a=a.compatMode=="CSS1Compat"?a.documentElement:a.body;return new _.fB(a.clientWidth,a.clientHeight)};
_.lj1=function(a){var z=_.SN(a);a=a.defaultView;return new _.GB(a.pageXOffset||z.scrollLeft,a.pageYOffset||z.scrollTop)};
_.SN=function(a){return a.scrollingElement?a.scrollingElement:_.ue||a.compatMode!="CSS1Compat"?a.body||a.documentElement:a.documentElement};
$8=function(a){return a?a.defaultView:window};
_.i3=function(a,z,I){return peI(document,arguments)};
peI=function(a,z){var I=z[1],J=weI(a,String(z[0]));I&&(typeof I==="string"?J.className=I:Array.isArray(I)?J.className=I.join(" "):LXf(J,I));z.length>2&&mEO(a,J,z,2);return J};
mEO=function(a,z,I,J){function r(u){u&&z.appendChild(typeof u==="string"?a.createTextNode(u):u)}
for(;J<I.length;J++){var P=I[J];if(!_.lG(P)||_.md(P)&&P.nodeType>0)r(P);else{a:{if(P&&typeof P.length=="number"){if(_.md(P)){var N=typeof P.item=="function"||typeof P.item=="string";break a}if(typeof P==="function"){N=typeof P.item=="function";break a}}N=!1}_.l1(N?_.RE(P):P,r)}}};
_.OS=function(a){return weI(document,a)};
weI=function(a,z){z=String(z);a.contentType==="application/xhtml+xml"&&(z=z.toLowerCase());return a.createElement(z)};
_.xB=function(){return document.createTextNode("\n")};
vr=function(a){if(a.nodeType!=1)return!1;switch(a.tagName){case "APPLET":case "AREA":case "BASE":case "BR":case "COL":case "COMMAND":case "EMBED":case "FRAME":case "HR":case "IMG":case "INPUT":case "IFRAME":case "ISINDEX":case "KEYGEN":case "LINK":case "NOFRAMES":case "NOSCRIPT":case "META":case "OBJECT":case "PARAM":case "SCRIPT":case "SOURCE":case "STYLE":case "TRACK":case "WBR":return!1}return!0};
yol=function(a,z){mEO(_.Xm(a),a,arguments,1)};
_.G2=function(a){for(var z;z=a.firstChild;)a.removeChild(z)};
_.$B=function(a,z){z.parentNode&&z.parentNode.insertBefore(a,z)};
_.XO=function(a,z){z.parentNode&&z.parentNode.insertBefore(a,z.nextSibling)};
_.fo=function(a){return a&&a.parentNode?a.parentNode.removeChild(a):null};
_.kJE=function(a,z){var I=z.parentNode;I&&I.replaceChild(a,z)};
_.MIw=function(a){var z,I=a.parentNode;if(I&&I.nodeType!=11)if(a.removeNode)a.removeNode(!1);else{for(;z=a.firstChild;)I.insertBefore(z,a);_.fo(a)}};
_.T2=function(a){return a.children!=void 0?a.children:Array.prototype.filter.call(a.childNodes,function(z){return z.nodeType==1})};
_.YOw=function(a){return a.nextElementSibling!==void 0?a.nextElementSibling:_.coe(a.nextSibling,!0)};
_.coe=function(a,z){for(;a&&a.nodeType!=1;)a=z?a.nextSibling:a.previousSibling;return a};
_.cL=function(a){return _.md(a)&&a.nodeType==1};
_.of=function(a,z){if(!a||!z)return!1;if(a.contains&&z.nodeType==1)return a==z||a.contains(z);if(typeof a.compareDocumentPosition!="undefined")return a==z||!!(a.compareDocumentPosition(z)&16);for(;z&&a!=z;)z=z.parentNode;return z==a};
aEO=function(a,z){if(a==z)return 0;if(a.compareDocumentPosition)return a.compareDocumentPosition(z)&2?1:-1;if("sourceIndex"in a||a.parentNode&&"sourceIndex"in a.parentNode){var I=a.nodeType==1,J=z.nodeType==1;if(I&&J)return a.sourceIndex-z.sourceIndex;var r=a.parentNode,P=z.parentNode;return r==P?qOE(a,z):!I&&_.of(r,z)?-1*evl(a,z):!J&&_.of(P,a)?evl(z,a):(I?a.sourceIndex:r.sourceIndex)-(J?z.sourceIndex:P.sourceIndex)}J=_.Xm(a);I=J.createRange();I.selectNode(a);I.collapse(!0);a=J.createRange();a.selectNode(z);
a.collapse(!0);return I.compareBoundaryPoints(_.IE.Range.START_TO_END,a)};
evl=function(a,z){var I=a.parentNode;if(I==z)return-1;for(;z.parentNode!=I;)z=z.parentNode;return qOE(z,a)};
qOE=function(a,z){for(;z=z.previousSibling;)if(z==a)return-1;return 1};
jZi=function(a){var z,I=arguments.length;if(!I)return null;if(I==1)return arguments[0];var J=[],r=Infinity;for(z=0;z<I;z++){for(var P=[],N=arguments[z];N;)P.unshift(N),N=N.parentNode;J.push(P);r=Math.min(r,P.length)}P=null;for(z=0;z<r;z++){N=J[0][z];for(var u=1;u<I;u++)if(N!=J[u][z])return P;P=N}return P};
_.Xm=function(a){return a.nodeType==9?a:a.ownerDocument||a.document};
ziw=function(a){return a.contentDocument||a.contentWindow.document};
_.dc=function(a,z){if("textContent"in a)a.textContent=z;else if(a.nodeType==3)a.data=String(z);else if(a.firstChild&&a.firstChild.nodeType==3){for(;a.lastChild!=a.firstChild;)a.removeChild(a.lastChild);a.firstChild.data=String(z)}else _.G2(a),a.appendChild(_.Xm(a).createTextNode(String(z)))};
IEv={SCRIPT:1,STYLE:1,HEAD:1,IFRAME:1,OBJECT:1};Jej={IMG:" ",BR:"\n"};Upp=function(a){var z;a.tagName=="A"&&a.hasAttribute("href")||a.tagName=="INPUT"||a.tagName=="TEXTAREA"||a.tagName=="SELECT"||a.tagName=="BUTTON"?z=!a.disabled&&(!a.hasAttribute("tabindex")||reX(a)):z=a.hasAttribute("tabindex")&&reX(a);return z};
reX=function(a){a=a.tabIndex;return typeof a==="number"&&a>=0&&a<32768};
ZZf=function(a){var z=[];P0l(a,z,!0);a=z.join("");a=a.replace(/ \xAD /g," ").replace(/\xAD/g,"");a=a.replace(/\u200B/g,"");a=a.replace(/ +/g," ");a!=" "&&(a=a.replace(/^\s*/,""));return a};
C0w=function(a){var z=[];P0l(a,z,!1);return z.join("")};
P0l=function(a,z,I){if(!(a.nodeName in IEv))if(a.nodeType==3)I?z.push(String(a.nodeValue).replace(/(\r\n|\r|\n)/g,"")):z.push(a.nodeValue);else if(a.nodeName in Jej)z.push(Jej[a.nodeName]);else for(a=a.firstChild;a;)P0l(a,z,I),a=a.nextSibling};
_.NEf=function(a,z,I){if(!z&&!I)return null;var J=z?String(z).toUpperCase():null;return _.dJ(a,function(r){return(!J||r.nodeName==J)&&(!I||typeof r.className==="string"&&_.Um(r.className.split(/\s+/),I))},!0)};
_.dJ=function(a,z,I){a&&!I&&(a=a.parentNode);for(I=0;a;){if(z(a))return a;a=a.parentNode;I++}return null};
Vj=function(a){this.JSC$9284_document_=a||_.IE.document||document};
_.Z=Vj.prototype;_.Z.getElement=function(a){return _.JE(this.JSC$9284_document_,a)};
_.Z.$=Vj.prototype.getElement;_.Z.getElementsByTagName=function(a,z){return(z||this.JSC$9284_document_).getElementsByTagName(String(a))};
_.Z.getElementsByTagNameAndClass=function(a,z,I){return Qj(this.JSC$9284_document_,a,z,I)};
_.Z.$$=Vj.prototype.getElementsByTagNameAndClass;_.Z.setProperties=LXf;_.Z.JSC$9286_createDom=function(a,z,I){return peI(this.JSC$9284_document_,arguments)};
_.Z.createElement=function(a){return weI(this.JSC$9284_document_,a)};
_.Z.createTextNode=function(a){return this.JSC$9284_document_.createTextNode(String(a))};
_.Z.getWindow=function(){return this.JSC$9284_document_.defaultView};
var sh=function(a){return _.lj1(a.JSC$9284_document_)};
_.Z=Vj.prototype;_.Z.appendChild=function(a,z){a.appendChild(z)};
_.Z.append=yol;_.Z.canHaveChildren=vr;_.Z.removeNode=_.fo;_.Z.getChildren=_.T2;_.Z.contains=_.of;_.Z=PH.prototype;_.Z.getWidth=function(){return this.right-this.left};
_.Z.getHeight=function(){return this.bottom-this.top};
_.Z.clone=function(){return new PH(this.top,this.right,this.bottom,this.left)};
_.Z.contains=function(a){return this&&a?a instanceof PH?a.left>=this.left&&a.right<=this.right&&a.top>=this.top&&a.bottom<=this.bottom:a.x>=this.left&&a.x<=this.right&&a.y>=this.top&&a.y<=this.bottom:!1};
_.Z.expand=function(a,z,I,J){_.md(a)?(this.top-=a.top,this.right+=a.right,this.bottom+=a.bottom,this.left-=a.left):(this.top-=a,this.right+=Number(z),this.bottom+=Number(I),this.left-=Number(J));return this};
_.Z.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};
_.Z.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};
_.Z.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};
_.Z.translate=function(a,z){a instanceof _.GB?(this.left+=a.x,this.right+=a.x,this.top+=a.y,this.bottom+=a.y):(this.left+=a,this.right+=a,typeof z==="number"&&(this.top+=z,this.bottom+=z));return this};
_.Z.scale=function(a,z){z=typeof z==="number"?z:a;this.left*=a;this.right*=a;this.top*=z;this.bottom*=z;return this};var Wr=function(a,z,I,J){this.left=a;this.top=z;this.width=I;this.height=J};
_.Z=Wr.prototype;_.Z.clone=function(){return new Wr(this.left,this.top,this.width,this.height)};
_.Z.boundingRect=function(a){var z=Math.max(this.left+this.width,a.left+a.width),I=Math.max(this.top+this.height,a.top+a.height);this.left=Math.min(this.left,a.left);this.top=Math.min(this.top,a.top);this.width=z-this.left;this.height=I-this.top};
_.Z.contains=function(a){return a instanceof _.GB?a.x>=this.left&&a.x<=this.left+this.width&&a.y>=this.top&&a.y<=this.top+this.height:this.left<=a.left&&this.left+this.width>=a.left+a.width&&this.top<=a.top&&this.top+this.height>=a.top+a.height};
_.Z.distance=function(a){var z=a.x<this.left?this.left-a.x:Math.max(a.x-(this.left+this.width),0);a=a.y<this.top?this.top-a.y:Math.max(a.y-(this.top+this.height),0);return Math.sqrt(z*z+a*a)};
_.Z.getSize=function(){return new _.fB(this.width,this.height)};
_.Z.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};
_.Z.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};
_.Z.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};
_.Z.translate=function(a,z){a instanceof _.GB?(this.left+=a.x,this.top+=a.y):(this.left+=a,typeof z==="number"&&(this.top+=z));return this};
_.Z.scale=function(a,z){z=typeof z==="number"?z:a;this.left*=a;this.width*=a;this.top*=z;this.height*=z;return this};var uMe,Du,CFp,Ut,OZi,gZf,fEX,xHI,Ael,nZ1;_.oc=function(a,z,I){if(typeof z==="string")(z=_.tfE(a,z))&&(a.style[z]=I);else for(var J in z){I=a;var r=z[J],P=_.tfE(I,J);P&&(I.style[P]=r)}};
uMe={};_.tfE=function(a,z){var I=uMe[z];if(!I){var J=_.nL(z);I=J;a.style[J]===void 0&&(J=(_.ue?"Webkit":_.tY?"Moz":null)+T$J(J),a.style[J]!==void 0&&(I=J));uMe[z]=I}return I};
_.gs=function(a,z){var I=_.Xm(a);return I.defaultView&&I.defaultView.getComputedStyle&&(a=I.defaultView.getComputedStyle(a,null))?a[z]||a.getPropertyValue(z)||"":""};
_.WW=function(a,z){return _.gs(a,z)||(a.currentStyle?a.currentStyle[z]:null)||a.style&&a.style[z]};
_.EZi=function(a){return _.WW(a,"position")};
Du=function(a,z,I){if(z instanceof _.GB){var J=z.x;z=z.y}else J=z,z=I;a.style.left=Ut(J,!1);a.style.top=Ut(z,!1)};
CFp=function(a){try{return a.getBoundingClientRect()}catch(z){return{left:0,top:0,right:0,bottom:0}}};
_.TB=function(a){var z=_.Xm(a),I=new _.GB(0,0);if(a==(z?_.Xm(z):document).documentElement)return I;a=CFp(a);z=sh(nB(z));I.x=a.left+z.x;I.y=a.top+z.y;return I};
_.BEJ=function(a,z,I){if(z instanceof _.fB)I=z.height,z=z.width;else if(I==void 0)throw Error("oa");a.style.width=Ut(z,!0);a.style.height=Ut(I,!0)};
Ut=function(a,z){typeof a=="number"&&(a=(z?Math.round(a):a)+"px");return a};
OZi=function(a){return gZf(a)};
gZf=function(a){var z=fEX;if(_.WW(a,"display")!="none")return z(a);var I=a.style,J=I.display,r=I.visibility,P=I.position;I.visibility="hidden";I.position="absolute";I.display="inline";a=z(a);I.display=J;I.position=P;I.visibility=r;return a};
fEX=function(a){var z=a.offsetWidth,I=a.offsetHeight,J=_.ue&&!z&&!I;return(z===void 0||J)&&a.getBoundingClientRect?(a=CFp(a),new _.fB(a.right-a.left,a.bottom-a.top)):new _.fB(z,I)};
xHI=function(a){var z=_.TB(a);a=gZf(a);return new Wr(z.x,z.y,a.width,a.height)};
Ael=function(a,z){a=a.style;"opacity"in a?a.opacity=z:"MozOpacity"in a?a.MozOpacity=z:"filter"in a&&(a.filter=z===""?"":"alpha(opacity="+Number(z)*100+")")};
_.po=function(a,z){a.style.display=z?"":"none"};
_.sZw=function(a){return"rtl"==_.WW(a,"direction")};
nZ1=function(a){var z=_.gs(a,"marginLeft"),I=_.gs(a,"marginRight"),J=_.gs(a,"marginTop");a=_.gs(a,"marginBottom");return new PH(parseFloat(J),parseFloat(I),parseFloat(a),parseFloat(z))};
_.Kzw=function(a){var z=_.gs(a,"borderLeftWidth"),I=_.gs(a,"borderRightWidth"),J=_.gs(a,"borderTopWidth");a=_.gs(a,"borderBottomWidth");return new PH(parseFloat(J),parseFloat(I),parseFloat(a),parseFloat(z))};var Rc=function(a){this.context=a};
Rc.prototype.isSupported=function(a){return(a==null?0:a.attributionEnabled)||(a==null?void 0:a.beaconMethod)==="POST"||(a==null?0:a.customHeaders)||(a==null?0:a.customBody)||(a==null?0:a.keepAlive)?!1:!st(this.context)};
Rc.prototype.ping=function(){var a=this;return FX(_.dO.apply(0,arguments).map(function(z){try{var I=a.context.global,J=!1;J=J===void 0?!1:J;I.google_image_requests||(I.google_image_requests=[]);var r=Tfw("IMG",I.document);J&&(r.attributionSrc="");r.src=z;I.google_image_requests.push(r);return!0}catch(P){return!1}}).every(function(z){return z}))};
Rc.prototype.pingWithHeadersAndBody=function(a,z,I){this.ping.apply(this,_.ih(_.dO.apply(3,arguments)))};var Fzf=function(a){this.context=a};
Fzf.prototype.isSupported=function(a){return HZ1&&!st(this.context)&&o8G(this.context)!==void 0&&!(a==null?0:a.attributionEnabled)&&(a==null?void 0:a.beaconMethod)!=="POST"&&!(a==null?0:a.customHeaders)&&!(a==null?0:a.customBody)};
Fzf.prototype.makeBeacon=function(a,z){if(!this.isSupported(z))throw new Et;return new Lx(this.context,a)};
var HZ1=!1,Lx=function(a,z){this.context=a;this.JSC$9305_urlWithoutToken=z;a=o8G(this.context);if(a===void 0)throw Error();this.wrappedBeacon=new a(bZO(this),{})},bZO=function(a){a=a.JSC$9305_urlWithoutToken;
return(a.slice(-1)[0]==="&"?a:a+"&")+"pbapi=1"};
Lx.prototype.deactivate=function(){this.wrappedBeacon.deactivate()};
Lx.prototype.sendNow=function(){this.wrappedBeacon.sendNow()};
Lx.prototype.setHeader=function(){};
_.eH.Object.defineProperties(Lx.prototype,{url:{configurable:!0,enumerable:!0,get:function(){return this.JSC$9305_urlWithoutToken},
set:function(a){this.JSC$9305_urlWithoutToken=a;this.wrappedBeacon.setURL(bZO(this))}},
method:{configurable:!0,enumerable:!0,get:function(){return"GET"},
set:function(a){if(a!=="GET")throw new Et;}},
isPending:{configurable:!0,enumerable:!0,get:function(){return this.wrappedBeacon.pending}}});var hif=function(a){this.context=a};
hif.prototype.isSupported=function(a){if((a==null?0:a.attributionEnabled)||(a==null?void 0:a.beaconMethod)==="GET"||(a==null?0:a.customHeaders)||(a==null?0:a.customBody)||(a==null?0:a.keepAlive))return!1;var z;return!st(this.context)&&((z=this.context.global.navigator)==null?void 0:z.sendBeacon)!==void 0};
hif.prototype.ping=function(){var a=this;return FX(_.dO.apply(0,arguments).map(function(z){var I;return(I=a.context.global.navigator)==null?void 0:I.sendBeacon(z)}).every(function(z){return z}))};
hif.prototype.pingWithHeadersAndBody=function(a,z,I){this.ping.apply(this,_.ih(_.dO.apply(3,arguments)))};var gJ=function(a){this.value=a},y8=function(a,z){return FX(a.value).pipe(Eh(z))},MM=new gJ(!1),Ks3=new gJ(!0);var WH=function(a){this.value=a;this.releasedSubject=new Zm};
WH.prototype.release=function(){this.releasedSubject.next();this.releasedSubject.complete();this.value=void 0};
_.eH.Object.defineProperties(WH.prototype,{ref:{configurable:!0,enumerable:!0,get:function(){return this.value}},
JSC$9318_released:{configurable:!0,enumerable:!0,get:function(){return this.releasedSubject}}});var YhO=["FRAME","IMG","IFRAME"],wHE=/^[01](px)?$/,czG=function(){this.pendingImagesBlockLoad=this.crossDomainLoadedDefault=!1},MTG=function(){var a=new czG;
a.crossDomainLoadedDefault=!0;a.pendingImagesBlockLoad=!0;return a};var Vfo=function(a,z){var I=J7O(a);if(I)if(I.onCreativeLoad)I.onCreativeLoad(z);else{var J=z?[z]:[],r=function(P){for(var N=0;N<J.length;++N)try{J[N](1,P)}catch(u){}J={push:function(u){u(1,P)}}};
I.onCreativeLoad=function(P){J.push(P)};
I.setAttribute("data-creative-load-listener","");I.addEventListener("creativeLoad",function(P){r(P.detail)});
_.IE.addEventListener("message",function(P){IJM(I,r,P)})}};var l3=function(a,z){var I=this;this.global=a;this.parentContext=z;this.JSC$9329_onVisibilityChange=this.document?Tj(FX(!0),$x(this.document,"visibilitychange")).pipe(DI(this.parentContext.performanceMonitor,748),Sd(function(){return I.getVisibilityState()}),wV()):FX("visible");
this.document?$x(this.document,"DOMContentLoaded").pipe(DI(this.parentContext.performanceMonitor,739),pu(1)):FX(lmM("DOMContentLoaded"))},nS$=function(a){return a.document!==null&&a.document.visibilityState!==void 0};
l3.prototype.getVisibilityState=function(){return this.document?this.document.visibilityState:"visible"};
l3.prototype.querySelector=function(a){return this.document?this.document.querySelector(a):null};
l3.prototype.querySelectorAll=function(a){return this.document?_.RE(this.document.querySelectorAll(a)):[]};
l3.prototype.elementFromPoint=function(a,z){if(!this.document||this.document===null||typeof this.document.elementFromPoint!=="function")return null;a=this.document.elementFromPoint(a,z);return a===null?null:new WH(a)};
var C1p=function(a,z,I){I=I===void 0?!1:I;if(z.ref===void 0||!a.document)return FX(z).pipe(DI(a.parentContext.performanceMonitor,749));var J=new MR(1),r=function(){J.next(z)};
I||Vfo(z.ref,r);qhd(z.ref,r);return J.pipe(DI(a.parentContext.performanceMonitor,749),pu(1))};
_.eH.Object.defineProperties(l3.prototype,{document:{configurable:!0,enumerable:!0,get:function(){return HBm(this.global,"document")?this.global.document||null:null}}});var r70=_.kK(["https://www.googleadservices.com/pagead/managed/js/activeview/","/reach_worklet.html"]),PEG=_.kK(["./reach_worklet.js"]),Zo0=_.kK(["./reach_worklet.js"]),QZ1=_.kK(["./reach_worklet.html"]),SGj=_.kK(["./reach_worklet.js"]),iZw=_.kK(["./reach_worklet.js"]);_.Jz(QZ1);_.Jz(SGj);_.Jz(iZw);var RN={left:0,top:0,width:0,height:0};var x0w,vZv,GYj,$0J,c3,TEG,d0J,WzJ,RB3,Lui,D0f,RiI;x0w=function(a,z,I,J,r,P,N){var u="";a&&(u+=a+":");I&&(u+="//",z&&(u+=z+"@"),u+=I,J&&(u+=":"+J));r&&(u+=r);P&&(u+="?"+P);N&&(u+="#"+N);return u};
vZv=RegExp("^(?:([^:/?#.]+):)?(?://(?:([^\\\\/?#]*)@)?([^\\\\/?#]*?)(?::([0-9]+))?(?=[\\\\/?#]|$))?([^?#]+)?(?:\\?([^#]*))?(?:#([\\s\\S]*))?$");_.kS=function(a){return a.match(vZv)};
_.hI=function(a,z){return a?z?decodeURI(a):decodeURIComponent(a):a};
GYj=function(a){a=_.kS(a)[1]||null;!a&&_.IE.self&&_.IE.self.location&&(a=_.IE.self.location.protocol.slice(0,-1));return a?a.toLowerCase():""};
_.MY=function(a){return _.hI(_.kS(a)[3]||null,!0)};
_.ul=function(a){return _.hI(_.kS(a)[5]||null,!0)};
_.AsM=function(a){var z=a.indexOf("#");return z<0?null:a.slice(z+1)};
$0J=function(a){a=_.kS(a);return x0w(a[1],a[2],a[3],a[4])};
_.X4e=function(a){a=_.kS(a);return x0w(a[1],null,a[3],a[4])};
_.pL=function(a){a=_.kS(a);return x0w(null,null,null,null,a[5],a[6],a[7])};
_.qZ=function(a){var z=a.indexOf("#");return z<0?a:a.slice(0,z)};
c3=function(a,z){a=_.kS(a);z=_.kS(z);return a[3]==z[3]&&a[1]==z[1]&&a[4]==z[4]};
TEG=function(a,z){if(a){a=a.split("&");for(var I=0;I<a.length;I++){var J=a[I].indexOf("="),r=null;if(J>=0){var P=a[I].substring(0,J);r=a[I].substring(J+1)}else P=a[I];z(P,r?qY(r):"")}}};
d0J=function(a){var z=a.indexOf("#");z<0&&(z=a.length);var I=a.indexOf("?");if(I<0||I>z){I=z;var J=""}else J=a.substring(I+1,z);return[a.slice(0,I),J,a.slice(z)]};
WzJ=function(a,z){return z?a?a+"&"+z:z:a};
_.oZ1=function(a,z){if(!z)return a;a=d0J(a);a[1]=WzJ(a[1],z);return a[0]+(a[1]?"?"+a[1]:"")+a[2]};
_.U0e=function(a,z,I){if(Array.isArray(z))for(var J=0;J<z.length;J++)_.U0e(a,String(z[J]),I);else z!=null&&I.push(a+(z===""?"":"="+_.L3(z)))};
_.By=function(a){var z=[],I;for(I in a)_.U0e(I,a[I],z);return z.join("&")};
_.yO=function(a,z){z=_.By(z);return _.oZ1(a,z)};
_.px=function(a,z,I){I=I!=null?"="+_.L3(I):"";return _.oZ1(a,z+I)};
RB3=function(a,z,I,J){for(var r=I.length;(z=a.indexOf(I,z))>=0&&z<J;){var P=a.charCodeAt(z-1);if(P==38||P==63)if(P=a.charCodeAt(z+r),!P||P==61||P==38||P==35)return z;z+=r+1}return-1};
Lui=/#|$/;_.US=function(a,z){var I=a.search(Lui),J=RB3(a,0,z,I);if(J<0)return null;var r=a.indexOf("&",J);if(r<0||r>I)r=I;J+=z.length+1;return qY(a.slice(J,r!==-1?r:0))};
D0f=/[?&]($|#)/;_.a_=function(a,z){for(var I=a.search(Lui),J=0,r,P=[];(r=RB3(a,J,z,I))>=0;)P.push(a.substring(J,r)),J=Math.min(a.indexOf("&",r)+1||I,I);P.push(a.slice(J));return P.join("").replace(D0f,"$1")};
_.oO=function(a,z,I){return _.px(_.a_(a,z),z,I)};
RiI=function(a){var z=d0J(window.location.href),I=z[1],J=[];I&&I.split("&").forEach(function(r){var P=r.indexOf("=");P=P>=0?r.slice(0,P):r;a.hasOwnProperty(P)||J.push(r)});
z[1]=WzJ(J.join("&"),_.By(a));return z[0]+(z[1]?"?"+z[1]:"")+z[2]};var SS0=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.GY(a)};
_.b(SS0,_.ju);SS0.prototype.getVersion=function(){return _.vb(this,2)};var Qfi=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.GY(a)};
_.b(Qfi,_.ju);var KGG=function(a,z){return _.KB(a,2,z)},VWG=function(a,z){return _.KB(a,3,z)};
Qfi.prototype.getModel=function(){return _.vb(this,4)};
var Hod=function(a,z){return _.KB(a,4,z)},nli=function(a,z){return _.KB(a,5,z)},h2d=function(a,z){return _.KB(a,9,z)},sf7=function(a,z){return hY(a,10,z)},A7G=function(a,z){return _.PW(a,11,z)},FGG=function(a,z){return _.KB(a,1,z)},bo0=function(a,z){return _.PW(a,7,z)};var OoE="platform platformVersion architecture model uaFullVersion bitness fullVersionList wow64".split(" ");var k8=function(a,z,I,J){a=a===void 0?window:a;z=z===void 0?null:z;I=I===void 0?new jEl:I;J=J===void 0?CEI():J;c1w.call(this);var r=this;this.global=a;this.debugChannel=z;this.performanceMonitor=I;this.onPageHide=Mdx(function(){return $x(r.global,"pagehide")}).pipe(DI(this.performanceMonitor,941));
this.onLoad=Mdx(function(){return $x(r.global,"load")}).pipe(DI(this.performanceMonitor,738),pu(1));
this.onResize=Mdx(function(){return $x(r.global,"resize")}).pipe(DI(this.performanceMonitor,741));
this.onMessage=Mdx(function(){return $x(r.global,"message")}).pipe(DI(this.performanceMonitor,740));
this.document=new l3(this.global,this);this.timeProvider=new zvG(new Joj(this.intrinsicFunctionNamespace,this.performanceMonitor),new Ijo(this.intrinsicFunctionNamespace,this.performanceMonitor));this.beaconFactory=new eIl(new Pww(this),new Fzf(this),new Ot(this,new Nfo(this)),new Ot(this,new hif(this)),new Ot(this,new Rc(this)))};
_.b(k8,c1w);var st=function(a){var z=a.global;return!!a.global.HTMLFencedFrameElement&&!!z.fence&&typeof z.fence.reportEvent==="function"};
_.Z=k8.prototype;_.Z.reportFencedFrameEvent=function(a){st(this)&&this.global.fence.reportEvent(a)};
_.Z.getOnBackgrounded=function(){return this.onPageHide.pipe(DI(this.performanceMonitor,942),Eh(this.queue),Sd(function(){}))};
_.Z.postMessage=function(a,z,I){I=I===void 0?[]:I;this.global.postMessage(a,z,I)};
_.Z.getWidth=function(){return bBG(this.global)?this.global.width:0};
_.Z.getHeight=function(){return bBG(this.global)?this.global.height:0};
_.Z.isMobile=function(){return u1f()||EGw()};
var oN=function(a,z){try{var I=El1(z,a.global,a.isMobile());return{left:I.left,top:I.top,width:I.getWidth(),height:I.getHeight()}}catch(J){return RN}};
k8.prototype.validate=function(){var a=this.beaconFactory.isSupported()||st(this);return this.global&&this.timeProvider.available()&&a};
var DM$=function(a){return(a=xCG(a.global))?Ek(a):null};
_.eH.Object.defineProperties(k8.prototype,{sharedStorage:{configurable:!0,enumerable:!0,get:function(){try{return this.global.sharedStorage}catch(a){}}},
intrinsicFunctionNamespace:{configurable:!0,enumerable:!0,get:function(){return window}},
inCrossDomainIframe:{configurable:!0,enumerable:!0,get:function(){return!bBG(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}}});_.LzE=!_.NS&&!_.tM0();var Fs0=function(a){return a};var b3I=function(a){return a.pipe(dV(function(z){var I=z.endOfSessionReason;var J;return((J=z.viewable)==null?void 0:J.extrapolateToNow().value)||I!=void 0}),pu(1),Lu())};var WG1=function(){this.startTime=Math.floor(Date.now()/1E3-1704067200);this.sequenceNumber=0},olm=function(a){var z=a.sequenceNumber.toString(10).padStart(2,"0");
z=""+a.startTime+z;a.sequenceNumber<99&&a.sequenceNumber++;return z};var sL3=ZI(jT(function(a){return a.endOfSessionReason===void 0}),Sd(function(a){return Object.assign({},a,{timestamps:hz(a)})}),dV(function(a){var z=a.viewable;
a=a.timestamps;var I;return(I=z==null?void 0:z.extrapolateUsingTimestampMap(a).value)!=null?I:!1}),Sd(function(a){var z=a.beaconFactory;
var I=a.timestampedExposureHistory;var J=a.timeOnScreen;var r=a.binaryContext;a=a.timestamps;if(z===void 0||I===void 0||J===void 0||r===void 0)return!1;if(J.extrapolateUsingTimestampMap(a).value.every(function(P){return P>=0}))return!0;
I=I.map(function(P){return P.timestamp+":"+P.value}).join(",");
J=UCG({bin:r,tos:J},a);z.makeBeacon("https://pagead2.googlesyndication.com/pagead/gen_204?id=av-js&type=dv&"+J+("&eh="+I)).sendNow();return!0}),jT(function(a){return!a}),Lu());var R2m=function(a){return{id:a.pingId,mcvt:a.maxConsecutiveViewTime,p:a.creativePosition,asp:a.adSpeedPosition,tm:a.totalMeasurementTime,tu:a.totalUnviewedTime,mtos:a.maxTimeOnScreen,tos:a.timeOnScreen,v:a.binaryVersion,bin:a.binaryContext,avms:a.measurementStrategy,bs:a.browserSize,mc:a.maximumExposure,"if":a.crossDomainIframeState,vu:a.delayedImpressionJsState,app:a.inApp,mse:a.mraidError,mtop:a.mraidSituation,itpl:a.injectedTemplateId,adk:a.adKey,exk:a.awbidKey,rs:a.requestSource,la:a.isLargeAd,
cr:a.isContentRecommendationAd,uach:a.userAgentClientHints,vs:a.viewState,r:a.reasonCode,pay:a.hasCpmavUrl,co:a.clientPingOrderCounter,rst:a.adRenderStartTime,rpt:a.adRenderPeriodTime,isd:a.initialScrollDepth,lsd:a.loadedScrollDepth,context:a.errorContext,msg:a.errorMessage,stack:a.errorStack,name:a.errorName,ec:a.hasElementChanged,sfr:a.strategyFailureReasons,met:a.creativeSearchResult,wmsd:a.webMeasurementStartDiagnostic,pv:a.pageVisible,epv:a.eosPageVisible,pbe:a.inStatefulBeaconExperiment,fle:a.inFetchLaterBeaconExperiment,
vae:a.inViewableAttributionExperiment,spb:a.supportsPendingBeacon,sfl:a.supportsFetchLater,ffslot:a.isFencedFrameSlotTurtlex,reach:a.sharedStorageReachMode,io2:a.v2VisibilityBitVector,rxdbg:a.rxDebugger,omida:a.omidAppId,omidp:a.omidPartner,omidpv:a.omidPartnerVersion,omidor:a.omidOcclusionReasons,omidv:a.omidVersion,omids:a.omidSessionType,omidam:a.omidAccessMode,omidct:a.omidCreativeType,omidia:a.omidInApp,omiddc:a.omidDeviceCategory,omidlat:a.omidLastActivity,omiddit:a.omidDeviceIdleTime,qid:a.errorEscapedQueryId}};var H3E=function(a){var z=[];return a.pipe(Sd(function(I){var J=I.beaconFactory,r=I.fetchBeaconFactory,P=I.timeOnScreen,N=I.timeOnScreenUrlPrefixes,u=I.payloadMapper,E=I.timeOnScreenPingId,O=I.timeOnScreenReason,f=I.urlSerializer,A=I.viewable,n=I.hasImpressionFired,F=I.inStatefulBeaconExperiment,h=I.supportsPendingBeacon,v=I.supportsFetchLater,d=I.turtlexReportEventData;if(!I.geometryMeasurable||!n||I.maxTimeOnScreen===void 0||P===void 0||N===void 0||u===void 0||E===void 0||f===void 0||J===void 0)return!1;
if(I.isTurtlex){if(O===void 0)return!1;N=I.reportFencedFrameEvent;if(!N)return!1;N({eventType:"active-view-time-on-screen",eventData:d!=null?d:"",destination:["buyer"]});return!0}if(!(F||v||O))return!1;d=hz(I);var W;A=(W=A==null?void 0:A.extrapolateUsingTimestampMap(d).value)!=null?W:!1;W=f(Object.assign({},I,{pingId:E,viewState:A?4:3,reasonCode:O!=null?O:"u",payloadMapper:u,urlPrefixes:N}),d);if(F){for(;z.length>N.length;)I=void 0,(I=z.shift())==null||I.deactivate();W.forEach(function(q,m){m>=z.length?
z.push(J.makeBeacon(q)):z[m].url=q});
return h&&r&&O!==void 0?(W.forEach(function(q){r.makeBeacon(q).sendNow()}),!0):O!==void 0}if(h&&r&&O!==void 0)return W.forEach(function(q){r.makeBeacon(q).sendNow()}),!0;
if(v&&r){for(;z.length>N.length;)h=void 0,(h=z.shift())==null||h.deactivate();var l=f(Object.assign({},I,{pingId:E,viewState:A?4:3,reasonCode:O!=null?O:"u",payloadMapper:u,urlPrefixes:["https://pagead2.googlesyndication.com/pagead/gen_204?id=av-js&type=fetch&later&lidartos"]}),d)[0];W.forEach(function(q,m){m>=z.length?z.push(J.makeBeacon(l,{endOfSession:!0})):z[m].url=l});
return O!==void 0?(W.forEach(function(q){r.makeBeacon(q).sendNow()}),!0):O!==void 0}return O!==void 0?(W.forEach(function(q){J.makeBeacon(q).sendNow()}),!0):!1}),jT(function(I){return!I}),Lu())};var hxm=ZI(dV(function(a){return a.immediateUrlPrefixes!==void 0&&a.payloadMapper!==void 0&&a.urlSerializer!==void 0&&a.inferredPingId!==void 0&&a.beaconFactory!==void 0}),dV(function(a){return MWm(a)!==null}),y71(function(a){return a.activeViewUnmeasurableEvent},function(a){return a.emit}),Sd(function(a){if(a.isTurtlex){var z=a.reportFencedFrameEvent;
if(z){var I;z({eventType:"active-view-unmeasurable",eventData:(I=a.turtlexReportEventData)!=null?I:"",destination:["buyer"]})}}else{I=void 0;var J=MWm(a);if(J==="x"){var r,P=(r=a.geometricMeasurementErrors)!=null?r:a.contextValidationErrors;P&&(z=P.stack,I=P.message)}a.urlSerializer(Object.assign({},a,{urlPrefixes:a.immediateUrlPrefixes,payloadMapper:a.payloadMapper,pingId:a.inferredPingId,viewState:2,reasonCode:J,errorMessage:I,errorStack:z}),hz(a)).forEach(function(N){a.beaconFactory.makeBeacon(N).sendNow()})}}),
pu(1),Lu());var c7$=/(?:\[|%5B)([a-zA-Z0-9_]+)(?:\]|%5D)/g;var ADE=ZI(dV(function(a){return a.payloadMapper!==void 0&&a.immediateUrlPrefixes!==void 0&&a.urlSerializer!==void 0&&a.inferredPingId!==void 0&&a.beaconFactory!==void 0}),Sd(function(a){return Object.assign({},a,{timestamps:hz(a)})}),dV(function(a){var z=a.viewable;
var I=a.hasImpressionFired;a=a.timestamps;var J;return!!I&&((J=z==null?void 0:z.extrapolateUsingTimestampMap(a).value)!=null?J:!1)}),y71(function(a){return a.activeViewViewableEvent},function(a){return a.emit}),Sd(function(a){var z=a.beaconFactory,I=a.turtlexReportEventData;
if(a.isTurtlex){var J=a.reportFencedFrameEvent;if(!J)return!1;J({eventType:"active-view-viewable",eventData:I!=null?I:"",destination:["buyer"]});return!0}I=a.urlSerializer(Object.assign({},a,{urlPrefixes:a.immediateUrlPrefixes,payloadMapper:a.payloadMapper,pingId:a.inferredPingId,viewState:4,reasonCode:"v"}),a.timestamps);(J=a.cpmavUrls)&&J.length>0&&a.viewUrlSerializer&&a.viewUrlSerializer(J,a).forEach(function(r){z.makeBeacon(r).sendNow()});
(J=a.viewableRelayUrls)&&J.length>0&&a.viewUrlSerializer&&a.viewUrlSerializer(J,a).forEach(function(r){z.makeBeacon(r).sendNow()});
I.forEach(function(r){z.makeBeacon(r,{attributionEnabled:a.isViewableAttributionEnabled}).sendNow()});
return!0}),jT(function(a){return!a}),Lu());var R0O=Sd(function(a){return[a.value.topWindowViewportExternalGeometry.width,a.value.topWindowViewportExternalGeometry.height]});var Uh=function(a,z){this.callback=a;this.options=z;this.intersectionObserverV2=this.intersectionObserverV1=null},HWG=function(a,z){z?a.intersectionObserverV2||(z=Object.assign({},a.options,{delay:100,
trackVisibility:!0}),a.intersectionObserverV2=new IntersectionObserver(a.callback,z)):a.intersectionObserverV1||(a.intersectionObserverV1=new IntersectionObserver(a.callback,a.options))},lEJ=function(a,z){a=z?a.intersectionObserverV2:a.intersectionObserverV1;
if(!a)throw new Ymw;return a};
Uh.prototype.observe=function(a,z){lEJ(this,a).observe(z)};
Uh.prototype.unobserve=function(a,z){lEJ(this,a).unobserve(z)};
Uh.prototype.disconnect=function(a){lEJ(this,a).disconnect()};
Uh.prototype.takeRecords=function(a){return lEJ(this,a).takeRecords()};var tJd={viewportGeometrySourceName:"ns",exposedViewportLocalGeometry:RN,topWindowViewportExternalGeometry:RN,measurementRequests:new Zm,elementGeometrySourceName:"ns",elementGeometry:RN,intersectionGeometry:RN,viewportLocalAppOffset:{x:0,y:0}};var xIp=LB(ZI(Sd(function(a){var z;return(z=a.exposureOverride)!=null?z:h0p(a)}),Sd(function(a){return isFinite(a)?a:0}))),WA3=LB(ZI(Sd(function(a){var z;
return(z=a.exposureOverride)!=null?z:h0p(a)}),Sd(function(a){return isFinite(a)?a:-1})));var wc=function(a,z){this.a=a;this.b=z;if(a.clock.timeline!==z.clock.timeline)throw Error();};
wc.prototype.equivalentTo=function(a){return a instanceof wc?this.a.equivalentTo(a.a)&&this.b.equivalentTo(a.b):!1};
wc.prototype.extrapolateToTime=function(a){var z=this.a.extrapolateToTime(a).value,I=this.b.extrapolateToTime(a).value;return{timestamp:a,value:[z,I]}};
_.eH.Object.defineProperties(wc.prototype,{active:{configurable:!0,enumerable:!0,get:function(){return this.a.active||this.b.active}},
clock:{configurable:!0,enumerable:!0,get:function(){return this.a.clock}},
lastMeasurement:{configurable:!0,enumerable:!0,get:function(){var a=this.a.lastMeasurement.timestamp.maximum(this.b.lastMeasurement.timestamp),z=this.a.lastMeasurement.timestamp.equals(a)?this.a.lastMeasurement.value:this.a.extrapolateToTime(a).value,I=this.b.lastMeasurement.timestamp.equals(a)?this.b.lastMeasurement.value:this.b.extrapolateToTime(a).value;return{timestamp:a,value:[z,I]}}}});var mg=function(a,z){this.input=a;this.mapFunction=z;this.lastMeasurement={timestamp:this.input.lastMeasurement.timestamp,value:this.mapFunction(this.input.lastMeasurement.value)}};
mg.prototype.equivalentTo=function(a){return a instanceof mg?this.input.equivalentTo(a.input)&&this.mapFunction===a.mapFunction:!1};
mg.prototype.extrapolateToTime=function(a){a=this.input.extrapolateToTime(a);return{timestamp:a.timestamp,value:this.mapFunction(a.value)}};
_.eH.Object.defineProperties(mg.prototype,{active:{configurable:!0,enumerable:!0,get:function(){return this.input.active}},
clock:{configurable:!0,enumerable:!0,get:function(){return this.input.clock}}});var yj=function(){};
yj.prototype.extrapolateToNow=function(){return this.extrapolateToTime(this.clock.now())};
yj.prototype.extrapolateUsingTimestampMap=function(a){var z=this.clock.timeline,I,J=(I=a.get(z))!=null?I:this.clock.now();a.set(z,J);return this.extrapolateToTime(J)};
yj.prototype.map=function(a){return new p4o(this,a)};
yj.prototype.joinWith=function(a){return new w4f(this,a)};
var w4f=function(){wc.apply(this,arguments);this.map=yj.prototype.map;this.joinWith=yj.prototype.joinWith;this.extrapolateToNow=yj.prototype.extrapolateToNow;this.extrapolateUsingTimestampMap=yj.prototype.extrapolateUsingTimestampMap};
_.b(w4f,wc);var p4o=function(){mg.apply(this,arguments);this.map=yj.prototype.map;this.joinWith=yj.prototype.joinWith;this.extrapolateToNow=yj.prototype.extrapolateToNow;this.extrapolateUsingTimestampMap=yj.prototype.extrapolateUsingTimestampMap};
_.b(p4o,mg);var wJ=function(a,z){this.lastMeasurement=z;this.extrapolateToNow=yj.prototype.extrapolateToNow;this.extrapolateUsingTimestampMap=yj.prototype.extrapolateUsingTimestampMap;this.map=yj.prototype.map;this.joinWith=yj.prototype.joinWith;this.clock=a};
wJ.prototype.equivalentTo=function(a){return a.active};
wJ.prototype.extrapolateToTime=function(){return this.lastMeasurement};
_.eH.Object.defineProperties(wJ.prototype,{active:{configurable:!0,enumerable:!0,get:function(){return!1}}});var DIi=Sd(function(a){if(a.value.viewportGeometrySourceName==="omid"){if(a.value.elementGeometrySourceName==="nio")return"omio";if(a.value.elementGeometrySourceName==="geo")return"omgeo"}return a.value.elementGeometrySourceName==="geo"||a.value.elementGeometrySourceName==="nio"?a.value.viewportGeometrySourceName:a.value.elementGeometrySourceName});var Qhm=ZI(dV(function(a){return!isNaN(a)}),Yx(function(a,z){return isNaN(a)?z:Math.min(a,z)},NaN),wV());var vXx=LB(ZI(Sd(function(a){return a.intersectionGeometry.width*a.intersectionGeometry.height/(a.exposedViewportLocalGeometry.width*a.exposedViewportLocalGeometry.height)}),Sd(function(a){return isFinite(a)?Math.min(1,a):0})));var UIp=ZI(LB(Sd(function(a){a=a.exposureOverride?a.elementGeometry.width*a.elementGeometry.height*a.exposureOverride/(a.topWindowViewportExternalGeometry.width*a.topWindowViewportExternalGeometry.height):a.intersectionGeometry.width*a.intersectionGeometry.height/(a.topWindowViewportExternalGeometry.width*a.topWindowViewportExternalGeometry.height);return isFinite(a)?a:0})));var pgE=function(a,z){var I=this;this.timeProvider=a;this.measurementRequestObserver=this.lastMeasurementRequest=null;this.requestSubscription=z.pipe(wV()).subscribe(function(J){mI3(I);I.measurementRequestObserver=J})},y23=function(a,z){mI3(a);
a.lastMeasurementRequest=a.timeProvider.setTimeout(function(){var I;return void((I=a.measurementRequestObserver)==null?void 0:I.next())},z)},mI3=function(a){a.lastMeasurementRequest!==null&&a.timeProvider.clearTimeout(a.lastMeasurementRequest);
a.lastMeasurementRequest=null};
pgE.prototype.dispose=function(){mI3(this);this.requestSubscription.unsubscribe();this.measurementRequestObserver=null};var m0v=function(){};var gSm=function(a,z){this.context=a;this.strategies=z};
_.b(gSm,m0v);gSm.prototype.buildGeometrySource=function(a,z){var I=this.strategies.map(function(P){return P.buildGeometrySource(a,z)}),J=qfd(I.map(function(P){return P.geometrySource})),r=J.capturedErrors.pipe(yeo());
return{geometrySource:J.chain.pipe(Eh(this.context.queue)),additionalOutputs:Object.assign.apply(Object,[{strategyFailureReasons:r,strategyErrors:J.capturedErrors}].concat(_.ih(I.map(function(P){return P.additionalOutputs}))))}};
var yeo=function(){return Yx(function(a,z){z instanceof Q8?a.push(z.measurementStrategyFailureReason):a.push(-1);return a},[])};var fH3=function(a,z){this.context=a;this.poller=z};
_.b(fH3,m0v);fH3.prototype.buildGeometrySource=function(a,z){var I=e0E(jLx(this.context,this.poller),up7(this.context,z.requestSource));return{geometrySource:Yf1(a.measurableCreative.pipe(I),z.inApp),additionalOutputs:{}}};var O3I=function(a,z,I){I=I===void 0?A2$(a,z):I;this.context=a;this.intersectionObserverStrategy=I};
_.b(O3I,m0v);O3I.prototype.buildGeometrySource=function(a,z){var I=this.intersectionObserverStrategy(z.useV2);return{geometrySource:Yf1(a.measurableCreative.pipe(I,shp(this.context)),z.inApp),additionalOutputs:{}}};var kYi=function(a,z,I){var J=J===void 0?Symbol():J;this.element=a;this.immediateUrls=z;this.timeOnScreenUrls=I;this.symbol=J};var lTx=Object.freeze({timeThresholdMs:1E3,exposureThreshold:.5,largeAdExposureThreshold:.3}),P1G=Object.freeze([1,.75,lTx.exposureThreshold,lTx.largeAdExposureThreshold,0]);var pNG=function(a,z){z=z===void 0?36E5:z;var I=I===void 0?!0:I;this.creatives=new Zm;this.elementsToUnregister=new Zm;this.elementMap=new Map;var J=new k8(window,null);J.beaconFactory=new Ot(J,new Rc(J));Bq$(J,this.creatives,this.elementsToUnregister,a,z,I).subscribe()},ybm=function(a,z,I,J){if(!a.elementMap.has(z)){var r=new WH(z);
a.elementMap.set(z,r);a.creatives.next(new kYi(r,I,J))}},mX3=function(a,z){a.elementsToUnregister.next(z);
var I=a.elementMap.get(z);I!==void 0&&(I.release(),a.elementMap.delete(z))};var gN$=function(a){var z=a.url;a=a.uaDataValues;this.JSC$9434_url_=z;this.uaDataValues_=a;this.suid_=(new Date).getTime()-17040672E5;this.urlParamValues_={};for(var I=/[?&]([^&=]+)=([^&]*)/g;a=I.exec(z);)this.urlParamValues_[a[1]]=a[2]},Ow$=function(a){a=a.uaDataValues_;
if(!a)return"";var z=cH("uap",a.platform)+cH("uapv",a.platformVersion)+cH("uafv",a.uaFullVersion)+cH("uaa",a.architecture)+cH("uam",a.model)+cH("uab",a.bitness);a.fullVersionList&&(z+="&uafvl="+encodeURIComponent(a.fullVersionList.map(function(I){return encodeURIComponent(I.brand)+";"+encodeURIComponent(I.version)}).join("|")));
a.wow64!=null&&(z+="&uaw="+Number(a.wow64));return z.slice(1)};var MfE=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.GY(a)};
_.b(MfE,_.ju);MfE.prototype.getId=function(){return _.vb(this,1)};var kB=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.GY(a)};
_.b(kB,_.ju);kB.prototype.getSeconds=function(){return ie(this,1)};
kB.prototype.setSeconds=function(a){return _.M0(this,1,rE(a),"0")};_.T0=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.GY(a)};
_.b(_.T0,_.ju);_.T0.prototype.getSeconds=function(){return ie(this,1)};
_.T0.prototype.setSeconds=function(a){return _.M0(this,1,rE(a),"0")};
_.ceJ=function(a){var z=Number($R(a,1));a=_.za(a,2);return new Date(z*1E3+a/1E6)};var MH=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.GY(a)};
_.b(MH,_.ju);MH.prototype.getUrl=function(){return _.vb(this,1)};
MH.prototype.setUrl=function(a){return _.yr(this,1,a)};
MH.prototype.getHeight=function(){return _.za(this,2)};
MH.prototype.getWidth=function(){return _.za(this,3)};var cr=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.GY(a)};
_.b(cr,_.ju);cr.prototype.getAspectRatio=function(){return xR(this,1)};
cr.prototype.getDuration=function(){return _.JC(this,kB,2)};var YGG=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.GY(a)};
_.b(YGG,_.ju);var qGI=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.GY(a)};
_.b(qGI,_.ju);var eil=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.GY(a)};
_.b(eil,_.ju);var axi=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.GY(a)};
_.b(axi,_.ju);var jtE=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.GY(a)};
_.b(jtE,_.ju);var z7I=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.GY(a)};
_.b(z7I,_.ju);var IxG=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.GY(a)};
_.b(IxG,_.ju);var JxJ=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.GY(a)};
_.b(JxJ,_.ju);var rxG=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.GY(a)};
_.b(rxG,_.ju);var YB=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.GY(a)};
_.b(YB,_.ju);var qH=[2,4,5,6,7];var PjI=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.GY(a)};
_.b(PjI,_.ju);var Vg=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.GY(a)};
_.b(Vg,_.ju);_.Z=Vg.prototype;_.Z.getId=function(){return _.JC(this,MfE,1)};
_.Z.getName=function(){return _.vb(this,2)};
_.Z.setDescription=function(a){return _.yr(this,3,a)};
_.Z.getUrl=function(){return _.vb(this,8)};
_.Z.setUrl=function(a){return _.yr(this,8,a)};
var eN=function(a){return _.af(a,MH,10,_.jW())};
Vg.prototype.getOwner=function(a){var z=_.pZ(this,40,_.gE,3,!0);mOG(z,a);return z[a]};
Vg.prototype.getVersion=function(){return ie(this,45)};
var aH=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.GY(a)};
_.b(aH,_.ju);_.Z4w=[0,l$M,wf7];_.CjG=[0,l$M,wf7];var NOG=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.GY(a)};
_.b(NOG,_.ju);var jq=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.GY(a)};
_.b(jq,_.ju);jq.prototype.getStatus=function(){return _.GL(this,1)};
jq.prototype.removeItem=function(a){return Zb0(this,2,a)};var tuj=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.GY(a)};
_.b(tuj,_.ju);tuj.prototype.getName=function(){return _.vb(this,8)};var zV=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.GY(a)};
_.b(zV,_.ju);zV.prototype.getCommand=function(){return _.GL(this,1)};
zV.prototype.getSource=function(){return _.JC(this,tuj,2)};
zV.prototype.setVisible=function(a){return _.vJ(this,5,a)};
zV.prototype.removeItem=function(a){return Zb0(this,7,a)};var uGJ=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.GY(a)};
_.b(uGJ,_.ju);uGJ.prototype.getCommand=function(){return _.GL(this,1)};
uGJ.prototype.removeItem=function(a){return Zb0(this,4,a)};
var EPw=_.Ea(uGJ);var IH=function(a,z,I){I=I===void 0?Error():I;var J=Error.call(this);this.message=J.message;"stack"in J&&(this.stack=J.stack);this.code=a;z+=":";I instanceof Error?(this.message=z+I.message,this.stack=I.stack||""):(this.message=z+String(I),this.stack="");Object.setPrototypeOf(this,this.constructor.prototype)};
_.b(IH,Error);_.FC=function(){this.JSC$9492_disposed_=this.JSC$9492_disposed_;this.onDisposeCallbacks_=this.onDisposeCallbacks_};
_.FC.prototype.JSC$9492_disposed_=!1;_.FC.prototype.isDisposed=function(){return this.JSC$9492_disposed_};
_.FC.prototype.dispose=function(){this.JSC$9492_disposed_||(this.JSC$9492_disposed_=!0,this.disposeInternal())};
_.FC.prototype[Symbol.dispose]=function(){this.dispose()};
_.t7=function(a,z){a.addOnDisposeCallback(_.nt(_.Y8,z))};
_.FC.prototype.addOnDisposeCallback=function(a,z){this.JSC$9492_disposed_?z!==void 0?a.call(z):a():(this.onDisposeCallbacks_||(this.onDisposeCallbacks_=[]),z&&(a=a.bind(z)),this.onDisposeCallbacks_.push(a))};
_.FC.prototype.disposeInternal=function(){if(this.onDisposeCallbacks_)for(;this.onDisposeCallbacks_.length;)this.onDisposeCallbacks_.shift()()};var JH=function(a){_.FC.call(this);this.wpc=a};
_.b(JH,_.FC);JH.prototype.ip5=function(){return this.wpc.f()};
JH.prototype.cUO=function(a){return this.wpc.c(a)};
JH.prototype.o9=function(a){return this.wpc.m(xY3(a))};
JH.prototype.fEX=function(a){return this.wpc.mws(xY3(a))};
var eT=function(a){_.FC.call(this);var z=this;this.vm=a;this.dkk="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.zoH=void 0;this.h8I=this.vm.p;this.pFy=this.jWX.bind(this);this.addOnDisposeCallback(function(){return void BOf(z)})};
_.b(eT,_.FC);var gPw=function(a){var z;return _.t(function(I){if(I.nextAddress==1){if(!a.vm.wpc)throw new IH(30,"NWA");return a.yqE?I.return(a.yqE):I.yield(a.vm.wpc(),2)}z=I.yieldResult;a.yqE=new JH(z);return I.return(a.yqE)})};
eT.prototype.snapshot=function(a){return this.vm.s(Object.assign({},a.hD&&{c:a.hD},a.iET&&{s:a.iET},a.suC!==void 0&&{p:a.suC}))};
eT.prototype.jWX=function(a){this.vm.e(a)};
eT.prototype.ps7=function(a,z){return this.vm.c(a,z,!1)};
var BOf=function(a){a.zoH!==void 0&&(a.dkk.forEach(function(z){var I;(I=a.zoH)==null||I.removeEventListener(z,a.pFy)}),a.zoH=void 0)};
eT.prototype.ncw=function(){return this.vm.l()};var rZ=function(){_.FC.apply(this,arguments);this.xoF=1};
_.b(rZ,_.FC);rZ.prototype.share=function(){if(this.isDisposed())throw Error("pa");this.xoF++;return this};
rZ.prototype.dispose=function(){--this.xoF||_.FC.prototype.dispose.call(this)};var O4w=function(a){this.cZF=a;a.addNewEventMetric("/client_streamz/bg/frs",_.rQ("mk"))};
O4w.prototype.record=function(a,z){this.cZF.record("/client_streamz/bg/frs",a,z)};
var fx1=function(a){this.j0s=a;a.addNewEventMetric("/client_streamz/bg/wrl",_.rQ("mn"),J7("ac"),J7("sc"),_.rQ("rk"),_.rQ("mk"))};
fx1.prototype.record=function(a,z,I,J,r,P){this.j0s.record("/client_streamz/bg/wrl",a,z,I,J,r,P)};
var AxI=function(a){this.q2Y=a;a.addNewCounter("/client_streamz/bg/ec",_.rQ("en"),_.rQ("mk"))};
AxI.prototype.increment=function(a,z){this.q2Y.JSC$9745_incrementCounter("/client_streamz/bg/ec",a,z)};
var stw=function(a){this.s0P=a;a.addNewEventMetric("/client_streamz/bg/el",_.rQ("en"),_.rQ("mk"))};
stw.prototype.record=function(a,z,I){this.s0P.record("/client_streamz/bg/el",a,z,I)};
var nPI=function(a){this.yZ8=a;a.addNewCounter("/client_streamz/bg/cec",J7("ec"),_.rQ("mk"))};
nPI.prototype.increment=function(a,z){this.yZ8.JSC$9745_incrementCounter("/client_streamz/bg/cec",a,z)};
var K9f=function(a){this.bJD=a;a.addNewCounter("/client_streamz/bg/po/csc",J7("cs"),_.rQ("mk"))};
K9f.prototype.increment=function(a,z){this.bJD.JSC$9745_incrementCounter("/client_streamz/bg/po/csc",a,z)};
var F9I=function(a){this.gSP=a;a.addNewCounter("/client_streamz/bg/po/ctav",_.rQ("av"),_.rQ("mk"))};
F9I.prototype.increment=function(a,z){this.gSP.JSC$9745_incrementCounter("/client_streamz/bg/po/ctav",a,z)};
var H4l=function(a){this.zDE=a;a.addNewCounter("/client_streamz/bg/po/cwsc",_.rQ("su"),_.rQ("mk"))};
H4l.prototype.increment=function(a,z){this.zDE.JSC$9745_incrementCounter("/client_streamz/bg/po/cwsc",a,z)};var JPI=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.GY(a)};
_.b(JPI,_.ju);var Iv0=function(a,z){return _.kZ(a,3,z,EGE)};var b4l=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.GY(a)};
_.b(b4l,_.ju);var h7G=[1,2,3];var VuJ=[0,h7G,_.cwp,muE,MC3];var QtJ=[0,_.MS,[0,Du0,_.wL]];var Sav=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.GY(a)};
_.b(Sav,_.ju);var i4I=[1,2,3];var xLl=[0,i4I,pfE,Rmx,_.cb,QtJ];var vPi=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.GY(a)};
_.b(vPi,_.ju);var GN1=[0,_.MS,VuJ,xLl];var $Lw=[0,_.kR];var X9I=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.GY(a)};
_.b(X9I,_.ju);var TOO=[0,_.kR,-1,_.yg];var dLo=[0,_.kR,-1,_.m7,_.yg];var W9e=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.GY(a)};
_.b(W9e,_.ju);var oPi=[1,2,3];var ULG=[0,oPi,_.cb,TOO,_.cb,dLo,_.cb,$Lw];var DLJ=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.GY(a)};
_.b(DLJ,_.ju);DLJ.prototype.JSC$9565_serializeBinary=W9p([0,_.kR,ULG,Y7O,_.MS,GN1,ywd,kRd]);var R7I=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.GY(a)};
_.b(R7I,_.ju);var p9w=function(a){var z=new DLJ;z=_.KB(z,1,a.JSC$9681_metricName);var I=L9w(a);z=_.kZ(z,3,I,_.te);I=[];for(var J=[],r=_.C(a.cellMap.keys()),P=r.next();!P.done;P=r.next())J.push(P.value.split(","));for(r=0;r<J.length;r++){P=J[r];for(var N=a.cellType,u=a.getCells(P)||[],E=[],O=0;O<u.length;O++){var f=u[O],A=f&&f.cellValue;f=new Sav;switch(N){case 3:A=Number(A);Number.isFinite(A)&&g2(f,1,i4I,rE(A));break;case 2:g2(f,2,i4I,_.lw(Number(A)))}E.push(f)}N=E;for(u=0;u<N.length;u++){E=N[u];O=new vPi;E=_.gO(O,
2,E);O=[];f=lxi(a);for(A=0;A<f.length;A++){var n=f[A],F=P[A],h=new b4l;switch(n){case 3:g2(h,1,h7G,u0(String(F)));break;case 2:n=Number(F);Number.isFinite(n)&&g2(h,2,h7G,_.qE(n));break;case 1:g2(h,3,h7G,Nf1(F==="true"))}O.push(h)}hY(E,1,O);I.push(E)}}hY(z,4,I);return z};var w9i=function(a){if(!a)return"";if(/^about:(?:blank|srcdoc)$/.test(a))return window.origin||"";a.indexOf("blob:")===0&&(a=a.substring(5));a=a.split("#")[0].split("?")[0];a=a.toLowerCase();a.indexOf("//")==0&&(a=window.location.protocol+a);/^[\w\-]*:\/\//.test(a)||(a=window.location.href);var z=a.substring(a.indexOf("://")+3),I=z.indexOf("/");I!=-1&&(z=z.substring(0,I));I=a.substring(0,a.indexOf("://"));if(!I)throw Error("qa`"+a);if(I!=="http"&&I!=="https"&&I!=="chrome-extension"&&I!=="moz-extension"&&
I!=="file"&&I!=="android-app"&&I!=="chrome-search"&&I!=="chrome-untrusted"&&I!=="chrome"&&I!=="app"&&I!=="devtools")throw Error("ra`"+I);a="";var J=z.indexOf(":");if(J!=-1){var r=z.substring(J+1);z=z.substring(0,J);if(I==="http"&&r!=="80"||I==="https"&&r!=="443")a=":"+r}return I+"://"+z+a};var yx1=function(a,z,I){var J=String(_.IE.location.href);return J&&a&&z?[z,mLG(w9i(J),a,I||null)].join(" "):null},mLG=function(a,z,I){var J=[],r=[];
if((Array.isArray(I)?2:1)==1)return r=[z,a],_.l1(J,function(u){r.push(u)}),kNi(r.join(" "));
var P=[],N=[];_.l1(I,function(u){N.push(u.key);P.push(u.value)});
I=Math.floor((new Date).getTime()/1E3);r=P.length==0?[I,z,a]:[P.join(":"),I,z,a];_.l1(J,function(u){r.push(u)});
a=kNi(r.join(" "));a=[I,a];N.length==0||a.push(N.join(""));return a.join("_")},kNi=function(a){var z=oS0();
z.update(a);return z.digestString().toLowerCase()};var PV=function(a){this.JSC$9576_document_=a||{cookie:""}},Muw;
_.Z=PV.prototype;_.Z.isEnabled=function(){if(!_.IE.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};
_.Z.set=function(a,z,I){var J=!1;if(typeof I==="object"){var r=I.sameSite;J=I.secure||!1;var P=I.domain||void 0;var N=I.path||void 0;var u=I.maxAge}if(/[;=\s]/.test(a))throw Error("sa`"+a);if(/[;\r\n]/.test(z))throw Error("ta`"+z);u===void 0&&(u=-1);I=P?";domain="+P:"";N=N?";path="+N:"";J=J?";secure":"";u=u<0?"":u==0?";expires="+(new Date(1970,1,1)).toUTCString():";expires="+(new Date(Date.now()+u*1E3)).toUTCString();this.JSC$9576_document_.cookie=a+"="+z+I+N+u+J+(r!=null?";samesite="+r:"")};
_.Z.get=function(a,z){for(var I=a+"=",J=(this.JSC$9576_document_.cookie||"").split(";"),r=0,P;r<J.length;r++){P=g$(J[r]);if(P.lastIndexOf(I,0)==0)return P.slice(I.length);if(P==a)return""}return z};
_.Z.remove=function(a,z,I){var J=this.containsKey(a);this.set(a,"",{maxAge:0,path:z,domain:I});return J};
_.Z.getKeys=function(){return Muw(this).keys};
_.Z.getValues=function(){return Muw(this).values};
_.Z.isEmpty=function(){return!this.JSC$9576_document_.cookie};
_.Z.getCount=function(){return this.JSC$9576_document_.cookie?(this.JSC$9576_document_.cookie||"").split(";").length:0};
_.Z.containsKey=function(a){return this.get(a)!==void 0};
_.Z.containsValue=function(a){for(var z=Muw(this).values,I=0;I<z.length;I++)if(z[I]==a)return!0;return!1};
_.Z.clear=function(){for(var a=Muw(this).keys,z=a.length-1;z>=0;z--)this.remove(a[z])};
Muw=function(a){a=(a.JSC$9576_document_.cookie||"").split(";");for(var z=[],I=[],J,r,P=0;P<a.length;P++)r=g$(a[P]),J=r.indexOf("="),J==-1?(z.push(""),I.push(r)):(z.push(r.substring(0,J)),I.push(r.substring(J+1)));return{keys:z,values:I}};
_.f1=new PV(typeof document=="undefined"?null:document);var a4x,cxv;a4x=function(){var a=_.IE.__SAPISID||_.IE.__APISID||_.IE.__3PSAPISID||_.IE.__1PSAPISID||_.IE.__OVERRIDE_SID;if(a)return!0;typeof document!=="undefined"&&(a=new PV(document),a=a.get("SAPISID")||a.get("APISID")||a.get("__Secure-3PAPISID")||a.get("__Secure-1PAPISID"));return!!a};
cxv=function(a,z,I,J){(a=_.IE[a])||typeof document==="undefined"||(a=(new PV(document)).get(z));return a?yx1(a,I,J):null};
_.pK$=function(a){var z=w9i(_.IE==null?void 0:_.IE.location.href),I=[];if(a4x()){z=z.indexOf("https:")==0||z.indexOf("chrome-extension:")==0||z.indexOf("chrome-untrusted://new-tab-page")==0||z.indexOf("moz-extension:")==0;var J=z?_.IE.__SAPISID:_.IE.__APISID;J||typeof document==="undefined"||(J=new PV(document),J=J.get(z?"SAPISID":"APISID")||J.get("__Secure-3PAPISID"));(J=J?yx1(J,z?"SAPISIDHASH":"APISIDHASH",a):null)&&I.push(J);z&&((z=cxv("__1PSAPISID","__Secure-1PAPISID","SAPISID1PHASH",a))&&I.push(z),
(a=cxv("__3PSAPISID","__Secure-3PAPISID","SAPISID3PHASH",a))&&I.push(a))}return I.length==0?null:I.join(" ")};var YaI=function(){this.minSize=1024};
YaI.prototype.compress=function(a){var z,I,J,r;return _.t(function(P){switch(P.nextAddress){case 1:return z=new CompressionStream("gzip"),I=(new Response(z.readable)).arrayBuffer(),J=z.writable.getWriter(),P.yield(J.write((new TextEncoder).encode(a)),2);case 2:return P.yield(J.close(),3);case 3:return r=Uint8Array,P.yield(I,4);case 4:return P.return(new r(P.yieldResult))}})};
YaI.prototype.isSupported=function(a){return a<this.minSize?!1:typeof CompressionStream!=="undefined"};var qaI=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.GY(a)};
_.b(qaI,_.ju);var Zo=function(a,z){this.intervalMs=a;this.callback=z;this.enabled=!1;this.nowFn=function(){return _.JY()};
this.lastTimeMs=this.nowFn()};
Zo.prototype.setInterval=function(a){this.intervalMs=a;this.timer&&this.enabled?(this.stop(),this.start()):this.timer&&this.stop()};
Zo.prototype.start=function(){var a=this;this.enabled=!0;this.timer||(this.timer=setTimeout(function(){a.tick()},this.intervalMs),this.lastTimeMs=this.nowFn())};
Zo.prototype.stop=function(){this.enabled=!1;this.timer&&(clearTimeout(this.timer),this.timer=void 0)};
Zo.prototype.tick=function(){var a=this;if(this.enabled){var z=Math.max(this.nowFn()-this.lastTimeMs,0);z<this.intervalMs*.8?this.timer=setTimeout(function(){a.tick()},this.intervalMs-z):(this.timer&&(clearTimeout(this.timer),this.timer=void 0),this.callback(),this.enabled&&(this.stop(),this.start()))}else this.timer=void 0};var e7J=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.GY(a)};
_.b(e7J,_.ju);var aIe=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.GY(a)};
_.b(aIe,_.ju);var jll=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.GY(a)};
_.b(jll,_.ju);jll.prototype.getTransmissionType=function(){return _.GL(this,1)};var Ls0=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.GY(a)};
_.b(Ls0,_.ju);Ls0.prototype.getVersion=function(){return _.vb(this,2)};var Cp=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.GY(a)};
_.b(Cp,_.ju);var Rxx=function(a){hY(lH0,1,a)};
Cp.prototype.getModel=function(){return _.vb(this,6)};
var zEJ=_.Ea(Cp);var IIJ=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.GY(a)};
_.b(IIJ,_.ju);var UY0=["platform","platformVersion","architecture","model","uaFullVersion"],lH0=new Cp,DY$=null;var NQ=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.GY(a)};
_.b(NQ,_.ju);var JyE=function(a){return _.ro(a,1,1)};var ryw=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.GY(a,4)};
_.b(ryw,_.ju);_.tH=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.GY(a,36)};
_.b(_.tH,_.ju);_.tH.prototype.getExperimentIds=function(){return _.JC(this,qaI,16)};var Phi=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.GY(a,19)};
_.b(Phi,_.ju);Phi.prototype.setLogSource=function(a){return _.ro(this,2,a)};
Phi.prototype.setScheduler=function(a){return _.ro(this,10,a)};var Chj=function(a,z){this.isServiceWorkerScope=z=z===void 0?!1:z;this.uach=this.locale=null;this.transmissionType=0;this.isFinal=!1;this.logRequest=new Phi;Number.isInteger(a)&&this.logRequest.setLogSource(a);z||(this.locale=document.documentElement.getAttribute("lang"));Zul(this,new NQ)};
Chj.prototype.setLogSource=function(a){this.logRequest.setLogSource(a);return this};
var Zul=function(a,z){_.gO(a.logRequest,1,z);_.GL(z,1)||JyE(z);a.isServiceWorkerScope||(z=un(a),_.vb(z,5)||_.KB(z,5,a.locale));a.uach&&(z=un(a),_.JC(z,Cp,9)||_.gO(z,9,a.uach))},NVj=function(a,z){a.transmissionType=z},tdi=function(a){var z=z===void 0?UY0:z;
var I=a.isServiceWorkerScope?void 0:$8();I?p3I(I,z).then(function(J){a.uach=zEJ(J!=null?J:"[]");J=un(a);_.gO(J,9,a.uach);return!0}).catch(function(){return!1}):Promise.resolve(!1)},un=function(a){var z=_.JC(a.logRequest,NQ,1);
z||(z=new NQ,Zul(a,z));a=z;z=_.JC(a,IIJ,11);z||(z=new IIJ,_.gO(a,11,z));return z};
Chj.prototype.build=function(a,z,I,J,r,P){z=z===void 0?0:z;I=I===void 0?0:I;J=J===void 0?null:J;r=r===void 0?0:r;P=P===void 0?0:P;if(!this.isServiceWorkerScope){var N=un(this);var u=new jll;u=_.ro(u,1,this.transmissionType);u=_.PW(u,2,this.isFinal);I=_.dL(u,3,I>0?I:void 0);I=_.dL(I,4,r>0?r:void 0);I=_.dL(I,5,P>0?P:void 0);r=I.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;P=r[_.rf]|0;I=EO(I,P)?I:HZ0(I,r,P)?Fz$(I,r):new I.constructor($Z(r,P,!0));_.gO(N,10,I)}N=this.logRequest.clone();I=Date.now().toString();
N=_.PL(N,4,rE(I));a=a.slice();a=hY(N,3,a);J&&(N=new e7J,J=_.dL(N,13,J),N=new aIe,J=_.gO(N,2,J),N=new ryw,J=_.gO(N,1,J),J=_.ro(J,2,9),_.gO(a,18,J));z&&_.Fd(a,14,z);return a};ZJ.prototype.currBackoffCount_=0;ZJ.prototype.reset=function(){this.currBaseValue_=this.currValue_=this.initialValue_;this.currBackoffCount_=0};
ZJ.prototype.getValue=function(){return this.currValue_};
var uXJ=function(a){a.currBaseValue_=Math.min(a.maxValue_,a.currBaseValue_*a.backoffFactor_);a.currValue_=Math.min(a.maxValue_,a.currBaseValue_+(a.randomFactor_?Math.round(a.randomFactor_*(Math.random()-.5)*2*a.currBaseValue_):0));a.currBackoffCount_++};var zDp=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.GY(a,8)};
_.b(zDp,_.ju);var Exo=_.Ea(zDp);var Iqx=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.GY(a)};
_.b(Iqx,_.ju);var Es;Es=new Jh$;var BV=function(a){_.FC.call(this);var z=this;this.componentId="";this.pendingEvents=[];this.lastFailedAuth="";this.pageId=null;this.noFlushUntilMs=this.startWaitingMs=-1;this.JSC$9654_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$9654_sendBeaconApiEnabled=!1;this.logSource=a.logSource;this.getAuthHeaderValue=
a.getAuthHeaderValue||function(){};
this.logRequestBuilder=new Chj(a.logSource,a.isServiceWorkerScope);this.network=a.network||null;this.productID=a.productID||null;this.bufferSize=1E3;this.clearcutUrl=a.urlOverride||null;this.sessionIndex=a.sessionIndex||null;this.disableAutomaticFlush=a.disableAutomaticFlush||!1;this.withCredentials=!a.disableWithCredentials;this.isServiceWorkerScope=a.isServiceWorkerScope||!1;this.isSendBeaconSupported=!this.isServiceWorkerScope&&!!$8()&&!!$8().navigator&&$8().navigator.sendBeacon!==void 0;this.isBrowserSupported=
typeof URLSearchParams!=="undefined"&&!!(new URL(BVI())).searchParams&&!!(new URL(BVI())).searchParams.set;var I=JyE(new NQ);Zul(this.logRequestBuilder,I);this.flushBackoff=new ZJ(1E4,3E5,.1);a=gxl(this,a.backgroundJobDeferrer);this.JSC$9654_flushTimer=new Zo(this.flushBackoff.getValue(),a);this.backupTimer=new Zo(6E5,a);this.disableAutomaticFlush||this.backupTimer.start();this.isServiceWorkerScope||(document.addEventListener("visibilitychange",function(){if(document.visibilityState==="hidden"){Ouf(z);
var J;(J=z.metalogService)==null||J.flush()}}),document.addEventListener("pagehide",function(){Ouf(z);
var J;(J=z.metalogService)==null||J.flush()}))};
_.b(BV,_.FC);var gxl=function(a,z){return a.isBrowserSupported?z?function(){z().then(function(){a.flush()})}:function(){a.flush()}:function(){}};
BV.prototype.disposeInternal=function(){Ouf(this);this.JSC$9654_flushTimer.stop();this.backupTimer.stop();_.FC.prototype.disposeInternal.call(this)};
var fIl=function(a){a.clearcutUrl||(a.clearcutUrl=BVI());try{return(new URL(a.clearcutUrl)).toString()}catch(z){return(new URL(a.clearcutUrl,$8().location.origin)).toString()}};
BV.prototype.dispatch=function(a){if(a instanceof _.tH)this.log(a);else try{var z=new _.tH,I=a.serialize();var J=_.KB(z,8,I);this.log(J)}catch(r){gZ(this,4,1)}};
var gZ=function(a,z,I){a.metalogService&&a.metalogService.increment(z,I)};
BV.prototype.log=function(a){gZ(this,2,1);if(this.isBrowserSupported){a=a.clone();var z=this.sequencePosition++;a=_.Fd(a,21,z);this.componentId&&_.KB(a,26,this.componentId);z=a;if(vGM(_.sB(z,1))==null){var I=Date.now();I=Number.isFinite(I)?I.toString():"0";_.PL(z,1,rE(I))}_.xEm(_.sB(z,15))!=null||_.Fd(z,15,(new Date).getTimezoneOffset()*60);this.experimentIds&&(I=this.experimentIds.clone(),_.gO(z,16,I));gZ(this,1,1);z=this.pendingEvents.length-this.bufferSize+1;z>0&&(this.pendingEvents.splice(0,z),
this.numLogsDroppedSinceLastFlush+=z,gZ(this,3,z));this.pendingEvents.push(a);this.disableAutomaticFlush||this.JSC$9654_flushTimer.enabled||this.JSC$9654_flushTimer.start()}};
BV.prototype.flush=function(a,z){var I=this;if(this.pendingEvents.length===0)a&&a();else if(this.JSC$9654_sendBeaconApiEnabled&&this.isSendBeaconSupported)this.logRequestBuilder.transmissionType=3,Aye(this);else{var J=Date.now();if(this.noFlushUntilMs>J&&this.startWaitingMs<J)z&&z("throttled");else{this.network&&(typeof this.network.getTransmissionType==="function"?NVj(this.logRequestBuilder,this.network.getTransmissionType()):this.logRequestBuilder.transmissionType=0);var r=this.pendingEvents.length,
P=this.logRequestBuilder.build(this.pendingEvents,this.numLogsDroppedSinceLastFlush,this.numRetriesSinceLastSuccessfulFlush,this.productID,this.persistedLogRecoveredCount,this.persistedLogExpiredCount),N=this.getAuthHeaderValue();if(N&&this.lastFailedAuth===N)z&&z("stale-auth-token");else{this.pendingEvents=[];this.JSC$9654_flushTimer.enabled&&this.JSC$9654_flushTimer.stop();this.numLogsDroppedSinceLastFlush=0;J=P.serialize();var u;this.JSC$9654_compressor&&this.JSC$9654_compressor.isSupported(J.length)&&
(u=this.JSC$9654_compressor.compress(J));var E=slG(this,J,N),O=function(n){I.flushBackoff.reset();I.JSC$9654_flushTimer.setInterval(I.flushBackoff.getValue());if(n){var F=null;try{var h=JSON.stringify(JSON.parse(n.replace(")]}'\n","")));F=Exo(h)}catch(v){}F&&(n=Number(ie(F,1,_.X1("-1"))),n>0&&(I.startWaitingMs=Date.now(),I.noFlushUntilMs=I.startWaitingMs+n),qOO(F.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,Es.fieldIndex),cop(F,Es.fieldIndex),F=Es.ctor?Es.getExtensionFn(F,Es.ctor,Es.fieldIndex,
Es.JSC$8834_hasMessageId):Es.getExtensionFn(F,Es.fieldIndex,null,Es.JSC$8834_hasMessageId),F=F===null?void 0:F)&&(F=_.za(F,1,-1),F!==-1&&(I.flushBackoff=new ZJ(F<1?1:F,3E5,.1),I.JSC$9654_flushTimer.setInterval(I.flushBackoff.getValue())))}a&&a();I.numRetriesSinceLastSuccessfulFlush=0},f=function(n,F){var h=_.af(P,_.tH,3,_.jW());
var v=Number(ie(P,14));uXJ(I.flushBackoff);I.JSC$9654_flushTimer.setInterval(I.flushBackoff.getValue());n===401&&N&&(I.lastFailedAuth=N);v&&(I.numLogsDroppedSinceLastFlush+=v);F===void 0&&(F=I.isRetryable(n));F&&(I.pendingEvents=h.concat(I.pendingEvents),I.disableAutomaticFlush||I.JSC$9654_flushTimer.enabled||I.JSC$9654_flushTimer.start());gZ(I,7,1);z&&z("net-send-failed",n);++I.numRetriesSinceLastSuccessfulFlush},A=function(){I.network&&I.network.send(E,O,f)};
u?u.then(function(n){gZ(I,5,r);E.requestHeaders["Content-Encoding"]="gzip";E.requestHeaders["Content-Type"]="application/binary";E.body=n;E.bodyType=2;A()},function(){gZ(I,6,r);
A()}):A()}}}};
var slG=function(a,z,I){I=I===void 0?null:I;var J=J===void 0?a.withCredentials:J;var r={},P=new URL(fIl(a));I&&(r.Authorization=I);a.sessionIndex&&(r["X-Goog-AuthUser"]=a.sessionIndex,P.searchParams.set("authuser",a.sessionIndex));a.pageId&&(Object.defineProperty(r,"X-Goog-PageId",{value:a.pageId}),P.searchParams.set("pageId",a.pageId));return{url:P.toString(),body:z,bodyType:1,requestHeaders:r,requestType:"POST",withCredentials:J,timeoutMillis:a.timeoutMillis}},Ouf=function(a){a.logRequestBuilder.isFinal=
!0;
a.flush();a.logRequestBuilder.isFinal=!1},Aye=function(a){nxE(a,function(z,I){z=new URL(z);
z.searchParams.set("format","json");var J=!1;try{J=$8().navigator.sendBeacon(z.toString(),I.serialize())}catch(r){}J||(a.isSendBeaconSupported=!1);return J})},nxE=function(a,z){if(a.pendingEvents.length!==0){var I=new URL(fIl(a));
I.searchParams.delete("format");var J=a.getAuthHeaderValue();J&&I.searchParams.set("auth",J);I.searchParams.set("authuser",a.sessionIndex||"0");for(J=0;J<10&&a.pendingEvents.length;++J){var r=a.pendingEvents.slice(0,32),P=a.logRequestBuilder.build(r,a.numLogsDroppedSinceLastFlush,a.numRetriesSinceLastSuccessfulFlush,a.productID,a.persistedLogRecoveredCount,a.persistedLogExpiredCount);if(!z(I.toString(),P)){++a.numRetriesSinceLastSuccessfulFlush;break}a.numLogsDroppedSinceLastFlush=0;a.numRetriesSinceLastSuccessfulFlush=
0;a.persistedLogRecoveredCount=0;a.persistedLogExpiredCount=0;a.pendingEvents=a.pendingEvents.slice(r.length)}a.JSC$9654_flushTimer.enabled&&a.JSC$9654_flushTimer.stop()}};
BV.prototype.isRetryable=function(a){return 500<=a&&a<600||a===401||a===0};
var BVI=function(){return"https://play.google.com/log?format=json&hasfast=true"};var K61=function(){this.abortSupported=typeof AbortController!=="undefined"};
K61.prototype.send=function(a,z,I){var J=this,r,P,N,u,E,O,f,A,n,F;return _.t(function(h){switch(h.nextAddress){case 1:return P=(r=J.abortSupported?new AbortController:void 0)?setTimeout(function(){r.abort()},a.timeoutMillis):void 0,_.BP(h,2,3),N=Object.assign({},{method:a.requestType,
headers:Object.assign({},a.requestHeaders)},a.body&&{body:a.body},a.withCredentials&&{credentials:"include"},{signal:a.timeoutMillis&&r?r.signal:null}),h.yield(fetch(a.url,N),5);case 5:u=h.yieldResult;if(u.status!==200){(E=I)==null||E(u.status);h.jumpTo(3);break}if((O=z)==null){h.jumpTo(7);break}return h.yield(u.text(),8);case 8:O(h.yieldResult);case 7:case 3:_.Ok(h);clearTimeout(P);_.Ay(h,0);break;case 2:f=_.sk(h);switch((A=f)==null?void 0:A.name){case "AbortError":(n=I)==null||n(408);break;default:(F=
I)==null||F(400)}h.jumpTo(3)}})};
K61.prototype.getTransmissionType=function(){return 4};_.NC=function(a,z){z=z===void 0?"0":z;_.FC.call(this);this.logSource=a;this.sessionIndex=z;this.destinationUrl="https://play.google.com/log?format=json&hasfast=true";this.buildLabel=null;this.serviceWorkerScopeEnabled=!1;this.network=null;this.componentId="";this.JSC$9672_clearExperimentIds=this.productID=null;this.JSC$9672_sendBeaconApiEnabled=!1;this.pageId=null;this.bufferSize=void 0};
_.b(_.NC,_.FC);var avp=function(a,z){a.buildLabel=z;return a},exG=function(a,z){a.network=z;
return a},zZx=function(a,z){a.JSC$9672_clearExperimentIds=z},qeO=function(a){a.JSC$9672_sendBeaconApiEnabled=!0;
return a};
_.NC.prototype.disableWithCredentials=function(){this.withCredentialsDisabled=!0;return this};
_.NC.prototype.build=function(){this.network||(this.network=new K61);var a=new BV({logSource:this.logSource,getAuthHeaderValue:this.getAuthHeaderValue?this.getAuthHeaderValue:_.pK$,sessionIndex:this.sessionIndex,urlOverride:this.destinationUrl,isServiceWorkerScope:this.serviceWorkerScopeEnabled,disableAutomaticFlush:!1,disableWithCredentials:this.withCredentialsDisabled,backgroundJobDeferrer:this.backgroundJobDeferrer,network:this.network});_.t7(this,a);if(this.buildLabel){var z=this.buildLabel,I=
un(a.logRequestBuilder);_.KB(I,7,z)}a.JSC$9654_compressor=new YaI;this.componentId&&(a.componentId=this.componentId);this.productID&&(a.productID=this.productID);this.pageId&&(a.pageId=this.pageId);this.JSC$9672_clearExperimentIds&&((I=this.JSC$9672_clearExperimentIds)?(a.experimentIds||(a.experimentIds=new qaI),z=a.experimentIds,I=I.serialize(),_.KB(z,4,I)):a.experimentIds&&_.PL(a.experimentIds,4));this.JSC$9672_sendBeaconApiEnabled&&(a.JSC$9654_sendBeaconApiEnabled=a.isSendBeaconSupported);tdi(a.logRequestBuilder);
this.bufferSize&&(a.bufferSize=this.bufferSize);this.network.setLogSource&&this.network.setLogSource(this.logSource);this.network.setTransportReferenceAndAttemptFlush&&this.network.setTransportReferenceAndAttemptFlush(a);return a};var rP0=function(a,z,I,J,r,P,N){a=a===void 0?-1:a;z=z===void 0?"":z;I=I===void 0?"":I;J=J===void 0?!1:J;r=r===void 0?"":r;_.FC.call(this);this.logSource=a;this.componentId=z;P?z=P:(a=new _.NC(a,"0"),a.componentId=z,_.t7(this,a),I!==""&&(a.destinationUrl=I),J&&(a.serviceWorkerScopeEnabled=!0),r&&avp(a,r),N&&exG(a,N),z=a.build());this.JSC$9676_transport=z};
_.b(rP0,_.FC);rP0.prototype.flush=function(a){a=a||[];if(a.length){for(var z=new R7I,I=[],J=0;J<a.length;J++){var r=a[J],P=p9w(r);I.push(P);r.clear()}hY(z,1,I);this.JSC$9676_transport.dispatch(z);this.JSC$9676_transport.flush()}};var F61=function(a){this.cellValue=a};var Os=function(a,z,I){this.JSC$9681_metricName=a;this.cellType=z;this.fields=I||[];this.cellMap=new Map},lxi=function(a){return a.fields.map(function(z){return z.fieldType})},L9w=function(a){return a.fields.map(function(z){return z.fieldName})};
_.Z=Os.prototype;_.Z.addCell=function(a){var z=_.dO.apply(1,arguments),I=this.getCells(z);I?I.push(new F61(a)):this.JSC$9681_setCell(a,z)};
_.Z.JSC$9681_setCell=function(a){var z=this.JSC$9681_getKey(_.dO.apply(1,arguments));this.cellMap.set(z,[new F61(a)])};
_.Z.getCells=function(){var a=this.JSC$9681_getKey(_.dO.apply(0,arguments));return this.cellMap.has(a)?this.cellMap.get(a):void 0};
_.Z.getCell=function(){var a=this.getCells(_.dO.apply(0,arguments));return a&&a.length?a[0]:void 0};
_.Z.clear=function(){this.cellMap.clear()};
_.Z.JSC$9681_getKey=function(){var a=_.dO.apply(0,arguments);return a?a.join(","):"key"};var HuJ=function(a,z){Os.call(this,a,3,z)};
_.b(HuJ,Os);HuJ.prototype.JSC$9684_incrementCounterBy=function(a){var z=_.dO.apply(1,arguments),I=0,J=this.getCell(z);J&&(I=J.cellValue);this.JSC$9681_setCell(I+a,z)};var bui=function(a,z){Os.call(this,a,2,z)};
_.b(bui,Os);bui.prototype.record=function(a){this.addCell(a,_.dO.apply(1,arguments))};_.fp=function(a){this.id=a};
_.fp.prototype.toString=function(){return this.id};_.AH=function(a,z){this.type=a instanceof _.fp?String(a):a;this.currentTarget=this.target=z;this.defaultPrevented=this.propagationStopped_=!1};
_.AH.prototype.stopPropagation=function(){this.propagationStopped_=!0};
_.AH.prototype.preventDefault=function(){this.defaultPrevented=!0};_.ss=function(a,z){_.AH.call(this,a?a.type:"");this.relatedTarget=this.currentTarget=this.target=null;this.button=this.screenY=this.screenX=this.clientY=this.clientX=this.offsetY=this.offsetX=0;this.key="";this.charCode=this.keyCode=0;this.metaKey=this.shiftKey=this.altKey=this.ctrlKey=!1;this.state=null;this.pointerId=0;this.pointerType="";this.timeStamp=0;this.event_=null;a&&this.init(a,z)};
_.rL(_.ss,_.AH);
_.ss.prototype.init=function(a,z){var I=this.type=a.type,J=a.changedTouches&&a.changedTouches.length?a.changedTouches[0]:null;this.target=a.target||a.srcElement;this.currentTarget=z;z=a.relatedTarget;z||(I=="mouseover"?z=a.fromElement:I=="mouseout"&&(z=a.toElement));this.relatedTarget=z;J?(this.clientX=J.clientX!==void 0?J.clientX:J.pageX,this.clientY=J.clientY!==void 0?J.clientY:J.pageY,this.screenX=J.screenX||0,this.screenY=J.screenY||0):(this.offsetX=_.ue||a.offsetX!==void 0?a.offsetX:a.layerX,
this.offsetY=_.ue||a.offsetY!==void 0?a.offsetY:a.layerY,this.clientX=a.clientX!==void 0?a.clientX:a.pageX,this.clientY=a.clientY!==void 0?a.clientY:a.pageY,this.screenX=a.screenX||0,this.screenY=a.screenY||0);this.button=a.button;this.keyCode=a.keyCode||0;this.key=a.key||"";this.charCode=a.charCode||(I=="keypress"?a.keyCode:0);this.ctrlKey=a.ctrlKey;this.altKey=a.altKey;this.shiftKey=a.shiftKey;this.metaKey=a.metaKey;this.pointerId=a.pointerId||0;this.pointerType=a.pointerType;this.state=a.state;
this.timeStamp=a.timeStamp;this.event_=a;a.defaultPrevented&&_.ss.superClass_.preventDefault.call(this)};
_.ss.prototype.stopPropagation=function(){_.ss.superClass_.stopPropagation.call(this);this.event_.stopPropagation?this.event_.stopPropagation():this.event_.cancelBubble=!0};
_.ss.prototype.preventDefault=function(){_.ss.superClass_.preventDefault.call(this);var a=this.event_;a.preventDefault?a.preventDefault():a.returnValue=!1};var hEX="closure_listenable_"+(Math.random()*1E6|0),np=function(a){return!(!a||!a[hEX])};var Vdl=0;var QlO=function(a,z,I,J,r){this.listener=a;this.proxy=null;this.src=z;this.type=I;this.capture=!!J;this.handler=r;this.key=++Vdl;this.removed=this.callOnce=!1},Skl=function(a){a.removed=!0;
a.listener=null;a.proxy=null;a.src=null;a.handler=null};Co.prototype.add=function(a,z,I,J,r){var P=a.toString();a=this.listeners[P];a||(a=this.listeners[P]=[],this.typeCount_++);var N=iuJ(a,z,J,r);N>-1?(z=a[N],I||(z.callOnce=!1)):(z=new QlO(z,this.src,P,!!J,r),z.callOnce=I,a.push(z));return z};
Co.prototype.remove=function(a,z,I,J){a=a.toString();if(!(a in this.listeners))return!1;var r=this.listeners[a];z=iuJ(r,z,I,J);return z>-1?(Skl(r[z]),_.bGE(r,z),r.length==0&&(delete this.listeners[a],this.typeCount_--),!0):!1};
var xRX=function(a,z){var I=z.type;if(!(I in a.listeners))return!1;var J=_.Di(a.listeners[I],z);J&&(Skl(z),a.listeners[I].length==0&&(delete a.listeners[I],a.typeCount_--));return J};
Co.prototype.removeAll=function(a){a=a&&a.toString();var z=0,I;for(I in this.listeners)if(!a||I==a){for(var J=this.listeners[I],r=0;r<J.length;r++)++z,Skl(J[r]);delete this.listeners[I];this.typeCount_--}return z};
Co.prototype.getListener=function(a,z,I,J){a=this.listeners[a.toString()];var r=-1;a&&(r=iuJ(a,z,I,J));return r>-1?a[r]:null};
Co.prototype.hasListener=function(a,z){var I=a!==void 0,J=I?a.toString():"",r=z!==void 0;return _.x8.some(this.listeners,function(P){for(var N=0;N<P.length;++N)if(!(I&&P[N].type!=J||r&&P[N].capture!=z))return!0;return!1})};
var iuJ=function(a,z,I,J){for(var r=0;r<a.length;++r){var P=a[r];if(!P.removed&&P.listener==z&&P.capture==!!I&&P.handler==J)return r}return-1};var vxw,Gjj,$Ro,TV1,dRi,bN,hj,URe,W6l,ox1,Kp,DRe,XPo;vxw="closure_lm_"+(Math.random()*1E6|0);Gjj={};$Ro=0;_.Sg=function(a,z,I,J,r){if(J&&J.once)return bN(a,z,I,J,r);if(Array.isArray(z)){for(var P=0;P<z.length;P++)_.Sg(a,z[P],I,J,r);return null}I=XPo(I);return np(a)?a.listen(z,I,_.md(J)?!!J.capture:!!J,r):TV1(a,z,I,!1,J,r)};
TV1=function(a,z,I,J,r,P){if(!z)throw Error("va");var N=_.md(r)?!!r.capture:!!r,u=Kp(a);u||(a[vxw]=u=new Co(a));I=u.add(z,I,J,N,P);if(I.proxy)return I;J=dRi();I.proxy=J;J.src=a;J.listener=I;if(a.addEventListener)_.$Nx||(r=N),r===void 0&&(r=!1),a.addEventListener(z.toString(),J,r);else if(a.attachEvent)a.attachEvent(W6l(z.toString()),J);else if(a.addListener&&a.removeListener)a.addListener(J);else throw Error("wa");$Ro++;return I};
dRi=function(){var a=ox1,z=function(I){return a.call(z.src,z.listener,I)};
return z};
bN=function(a,z,I,J,r){if(Array.isArray(z)){for(var P=0;P<z.length;P++)bN(a,z[P],I,J,r);return null}I=XPo(I);return np(a)?a.listenOnce(z,I,_.md(J)?!!J.capture:!!J,r):TV1(a,z,I,!0,J,r)};
_.FU=function(a,z,I,J,r){if(Array.isArray(z))for(var P=0;P<z.length;P++)_.FU(a,z[P],I,J,r);else J=_.md(J)?!!J.capture:!!J,I=XPo(I),np(a)?a.unlisten(z,I,J,r):a&&(a=Kp(a))&&(z=a.getListener(z,I,J,r))&&hj(z)};
hj=function(a){if(typeof a==="number"||!a||a.removed)return!1;var z=a.src;if(np(z))return xRX(z.eventTargetListeners_,a);var I=a.type,J=a.proxy;z.removeEventListener?z.removeEventListener(I,J,a.capture):z.detachEvent?z.detachEvent(W6l(I),J):z.addListener&&z.removeListener&&z.removeListener(J);$Ro--;(I=Kp(z))?(xRX(I,a),I.typeCount_==0&&(I.src=null,z[vxw]=null)):Skl(a);return!0};
URe=function(a,z,I,J,r){I=XPo(I);J=!!J;return np(a)?a.getListener(z,I,J,r):a?(a=Kp(a))?a.getListener(z,I,J,r):null:null};
W6l=function(a){return a in Gjj?Gjj[a]:Gjj[a]="on"+a};
ox1=function(a,z){if(a.removed)a=!0;else{z=new _.ss(z,this);var I=a.listener,J=a.handler||a.src;a.callOnce&&hj(a);a=I.call(J,z)}return a};
Kp=function(a){a=a[vxw];return a instanceof Co?a:null};
DRe="__closure_events_fn_"+(Math.random()*1E9>>>0);XPo=function(a){if(typeof a==="function")return a;a[DRe]||(a[DRe]=function(z){return a.handleEvent(z)});
return a[DRe]};_.HV=function(){_.FC.call(this);this.eventTargetListeners_=new Co(this);this.actualEventTarget_=this;this.parentEventTarget_=null};
_.rL(_.HV,_.FC);_.HV.prototype[hEX]=!0;_.Z=_.HV.prototype;_.Z.setParentEventTarget=function(a){this.parentEventTarget_=a};
_.Z.addEventListener=function(a,z,I,J){_.Sg(this,a,z,I,J)};
_.Z.removeEventListener=function(a,z,I,J){_.FU(this,a,z,I,J)};
_.Z.dispatchEvent=function(a){var z,I=this.parentEventTarget_;if(I)for(z=[];I;I=I.parentEventTarget_)z.push(I);I=this.actualEventTarget_;var J=a.type||a;if(typeof a==="string")a=new _.AH(a,I);else if(a instanceof _.AH)a.target=a.target||I;else{var r=a;a=new _.AH(J,I);_.x8.extend(a,r)}r=!0;var P;if(z)for(P=z.length-1;!a.propagationStopped_&&P>=0;P--){var N=a.currentTarget=z[P];r=REo(N,J,!0,a)&&r}a.propagationStopped_||(N=a.currentTarget=I,r=REo(N,J,!0,a)&&r,a.propagationStopped_||(r=REo(N,J,!1,a)&&
r));if(z)for(P=0;!a.propagationStopped_&&P<z.length;P++)N=a.currentTarget=z[P],r=REo(N,J,!1,a)&&r;return r};
_.Z.disposeInternal=function(){_.HV.superClass_.disposeInternal.call(this);this.removeAllListeners();this.parentEventTarget_=null};
_.Z.listen=function(a,z,I,J){return this.eventTargetListeners_.add(String(a),z,!1,I,J)};
_.Z.listenOnce=function(a,z,I,J){return this.eventTargetListeners_.add(String(a),z,!0,I,J)};
_.Z.unlisten=function(a,z,I,J){return this.eventTargetListeners_.remove(String(a),z,I,J)};
_.Z.removeAllListeners=function(a){return this.eventTargetListeners_?this.eventTargetListeners_.removeAll(a):0};
var REo=function(a,z,I,J){z=a.eventTargetListeners_.listeners[String(z)];if(!z)return!0;z=z.concat();for(var r=!0,P=0;P<z.length;++P){var N=z[P];if(N&&!N.removed&&N.capture==I){var u=N.listener,E=N.handler||N.src;N.callOnce&&xRX(a.eventTargetListeners_,N);r=u.call(E,J)!==!1&&r}}return r&&!J.defaultPrevented};
_.HV.prototype.getListener=function(a,z,I,J){return this.eventTargetListeners_.getListener(String(a),z,I,J)};
_.HV.prototype.hasListener=function(a,z){return this.eventTargetListeners_.hasListener(a!==void 0?String(a):void 0,z)};var bn=typeof AsyncContext!=="undefined"&&typeof AsyncContext.Snapshot==="function"?function(a){return a&&AsyncContext.Snapshot.wrap(a)}:function(a){return a};var L6v=function(a,z){this.create_=a;this.reset_=z;this.occupants_=0;this.JSC$9716_head_=null};
L6v.prototype.get=function(){if(this.occupants_>0){this.occupants_--;var a=this.JSC$9716_head_;this.JSC$9716_head_=a.next;a.next=null}else a=this.create_();return a};
L6v.prototype.put=function(a){this.reset_(a);this.occupants_<100&&(this.occupants_++,a.next=this.JSC$9716_head_,this.JSC$9716_head_=a)};var lIJ=function(){this.workTail_=this.workHead_=null};
lIJ.prototype.add=function(a,z){var I=mYm.get();I.set(a,z);this.workTail_?this.workTail_.next=I:this.workHead_=I;this.workTail_=I};
lIJ.prototype.remove=function(){var a=null;this.workHead_&&(a=this.workHead_,this.workHead_=this.workHead_.next,this.workHead_||(this.workTail_=null),a.next=null);return a};
var mYm=new L6v(function(){return new pPi},function(a){return a.reset()}),pPi=function(){this.next=this.scope=this.fn=null};
pPi.prototype.set=function(a,z){this.fn=a;this.scope=z;this.next=null};
pPi.prototype.reset=function(){this.next=this.scope=this.fn=null};var wPj,yDG,w3O,mRf;yDG=!1;w3O=new lIJ;_.hH=function(a,z){wPj||mRf();yDG||(wPj(),yDG=!0);w3O.add(a,z)};
mRf=function(){var a=Promise.resolve(void 0);wPj=function(){a.then(kZx)}};var yyw=function(a){a.prototype.$goog_Thenable=!0},kjv=function(a){if(!a)return!1;
try{return!!a.$goog_Thenable}catch(z){return!1}};var Mdi,cye,YkX,eEE,amf,jNi,rzO,Cpv,E8J,tTO,t4I;_.Ba=function(a,z){this.state_=0;this.result_=void 0;this.callbackEntriesTail_=this.callbackEntries_=this.parent_=null;this.hadUnhandledRejection_=this.executing_=!1;if(a!=_.Kx)try{var I=this;a.call(z,function(J){I.resolve_(2,J)},function(J){I.resolve_(3,J)})}catch(J){this.resolve_(3,J)}};
Mdi=function(){this.next=this.context=this.JSC$9727_onRejected=this.JSC$9727_onFulfilled=this.child=null;this.always=!1};
Mdi.prototype.reset=function(){this.context=this.JSC$9727_onRejected=this.JSC$9727_onFulfilled=this.child=null;this.always=!1};
cye=new L6v(function(){return new Mdi},function(a){a.reset()});
YkX=function(a,z,I){var J=cye.get();J.JSC$9727_onFulfilled=a;J.JSC$9727_onRejected=z;J.context=I;return J};
_.uI=function(a){if(a instanceof _.Ba)return a;var z=new _.Ba(_.Kx);z.resolve_(2,a);return z};
_.xN=function(a){return new _.Ba(function(z,I){I(a)})};
eEE=function(a,z,I){qkf(a,z,I,null)||_.hH(_.nt(z,a))};
_.VD=function(a){return new _.Ba(function(z,I){var J=a.length,r=[];if(J)for(var P=function(O,f){J--;r[O]=f;J==0&&z(r)},N=function(O){I(O)},u,E=0;E<a.length;E++)u=a[E],eEE(u,_.nt(P,E),N);
else z(r)})};
amf=function(a){return new _.Ba(function(z){var I=a.length,J=[];if(I)for(var r=function(u,E,O){I--;J[u]=E?{fulfilled:!0,value:O}:{fulfilled:!1,reason:O};I==0&&z(J)},P,N=0;N<a.length;N++)P=a[N],eEE(P,_.nt(r,N,!0),_.nt(r,N,!1));
else z(J)})};
jNi=function(a){return new _.Ba(function(z,I){var J=a.length,r=[];if(J)for(var P=function(O){z(O)},N=function(O,f){J--;
r[O]=f;J==0&&I(r)},u,E=0;E<a.length;E++)u=a[E],eEE(u,P,_.nt(N,E));
else z(void 0)})};
_.kq=function(){var a,z,I=new _.Ba(function(J,r){a=J;z=r});
return new ztw(I,a,z)};
_.Ba.prototype.then=function(a,z,I){return ImE(this,bn(typeof a==="function"?a:null),bn(typeof z==="function"?z:null),I)};
yyw(_.Ba);rzO=function(a,z,I,J){Jzw(a,YkX(z||_.Kx,I||null,J))};
_.QD=function(a,z){z=bn(z);z=YkX(z,z);z.always=!0;Jzw(a,z);return a};
_.Ba.prototype.finally=function(a){var z=this;a=bn(a);return new _.Ba(function(I,J){rzO(z,function(r){a();I(r)},function(r){a();
J(r)})})};
_.Ba.prototype.thenCatch=function(a,z){return ImE(this,null,bn(a),z)};
_.Ba.prototype.catch=_.Ba.prototype.thenCatch;_.Ba.prototype.cancel=function(a){if(this.state_==0){var z=new _.Lc(a);_.hH(function(){Ppj(this,z)},this)}};
var Ppj=function(a,z){if(a.state_==0)if(a.parent_){var I=a.parent_;if(I.callbackEntries_){for(var J=0,r=null,P=null,N=I.callbackEntries_;N&&(N.always||(J++,N.child==a&&(r=N),!(r&&J>1)));N=N.next)r||(P=N);r&&(I.state_==0&&J==1?Ppj(I,z):(P?(J=P,J.next==I.callbackEntriesTail_&&(I.callbackEntriesTail_=J),J.next=J.next.next):ZBi(I),Cpv(I,r,3,z)))}a.parent_=null}else a.resolve_(3,z)},Jzw=function(a,z){a.callbackEntries_||a.state_!=2&&a.state_!=3||NJo(a);
a.callbackEntriesTail_?a.callbackEntriesTail_.next=z:a.callbackEntries_=z;a.callbackEntriesTail_=z},ImE=function(a,z,I,J){var r=YkX(null,null,null);
r.child=new _.Ba(function(P,N){r.JSC$9727_onFulfilled=z?function(u){try{var E=z.call(J,u);P(E)}catch(O){N(O)}}:P;
r.JSC$9727_onRejected=I?function(u){try{var E=I.call(J,u);E===void 0&&u instanceof _.Lc?N(u):P(E)}catch(O){N(O)}}:N});
r.child.parent_=a;Jzw(a,r);return r.child};
_.Ba.prototype.unblockAndFulfill_=function(a){this.state_=0;this.resolve_(2,a)};
_.Ba.prototype.unblockAndReject_=function(a){this.state_=0;this.resolve_(3,a)};
_.Ba.prototype.resolve_=function(a,z){this.state_==0&&(this===z&&(a=3,z=new TypeError("xa")),this.state_=1,qkf(z,this.unblockAndFulfill_,this.unblockAndReject_,this)||(this.result_=z,this.state_=a,this.parent_=null,NJo(this),a!=3||z instanceof _.Lc||tTO(this,z)))};
var qkf=function(a,z,I,J){if(a instanceof _.Ba)return rzO(a,z,I,J),!0;if(kjv(a))return a.then(z,I,J),!0;if(_.md(a))try{var r=a.then;if(typeof r==="function")return uml(a,r,z,I,J),!0}catch(P){return I.call(J,P),!0}return!1},uml=function(a,z,I,J,r){var P=!1,N=function(E){P||(P=!0,I.call(r,E))},u=function(E){P||(P=!0,J.call(r,E))};
try{z.call(a,N,u)}catch(E){u(E)}},NJo=function(a){a.executing_||(a.executing_=!0,_.hH(a.executeCallbacks_,a))},ZBi=function(a){var z=null;
a.callbackEntries_&&(z=a.callbackEntries_,a.callbackEntries_=z.next,z.next=null);a.callbackEntries_||(a.callbackEntriesTail_=null);return z};
_.Ba.prototype.executeCallbacks_=function(){for(var a;a=ZBi(this);)Cpv(this,a,this.state_,this.result_);this.executing_=!1};
Cpv=function(a,z,I,J){if(I==3&&z.JSC$9727_onRejected&&!z.always)for(;a&&a.hadUnhandledRejection_;a=a.parent_)a.hadUnhandledRejection_=!1;if(z.child)z.child.parent_=null,E8J(z,I,J);else try{z.always?z.JSC$9727_onFulfilled.call(z.context):E8J(z,I,J)}catch(r){t4I.call(null,r)}cye.put(z)};
E8J=function(a,z,I){z==2?a.JSC$9727_onFulfilled.call(a.context,I):a.JSC$9727_onRejected&&a.JSC$9727_onRejected.call(a.context,I)};
tTO=function(a,z){a.hadUnhandledRejection_=!0;_.hH(function(){a.hadUnhandledRejection_&&t4I.call(null,z)})};
t4I=J1;_.Lc=function(a){_.aE.call(this,a)};
_.rL(_.Lc,_.aE);_.Lc.prototype.name="cancel";var ztw=function(a,z,I){this.promise=a;this.resolve=z;this.reject=I};var Sq;_.rF=function(a,z){_.HV.call(this);this.JSC$9739_interval_=a||1;this.timerObject_=z||_.IE;this.boundTick_=(0,_.HW)(this.tick_,this);this.last_=_.JY()};
_.rL(_.rF,_.HV);_.Z=_.rF.prototype;_.Z.enabled=!1;_.Z.JSC$9741_timer_=null;_.Z.setInterval=function(a){this.JSC$9739_interval_=a;this.JSC$9741_timer_&&this.enabled?(this.stop(),this.start()):this.JSC$9741_timer_&&this.stop()};
_.Z.tick_=function(){if(this.enabled){var a=_.JY()-this.last_;a>0&&a<this.JSC$9739_interval_*.8?this.JSC$9741_timer_=this.timerObject_.setTimeout(this.boundTick_,this.JSC$9739_interval_-a):(this.JSC$9741_timer_&&(this.timerObject_.clearTimeout(this.JSC$9741_timer_),this.JSC$9741_timer_=null),this.dispatchEvent("tick"),this.enabled&&(this.stop(),this.start()))}};
_.Z.start=function(){this.enabled=!0;this.JSC$9741_timer_||(this.JSC$9741_timer_=this.timerObject_.setTimeout(this.boundTick_,this.JSC$9739_interval_),this.last_=_.JY())};
_.Z.stop=function(){this.enabled=!1;this.JSC$9741_timer_&&(this.timerObject_.clearTimeout(this.JSC$9741_timer_),this.JSC$9741_timer_=null)};
_.Z.disposeInternal=function(){_.rF.superClass_.disposeInternal.call(this);this.stop();delete this.timerObject_};
Sq=function(a,z,I){if(typeof a==="function")I&&(a=(0,_.HW)(a,I));else if(a&&typeof a.handleEvent=="function")a=(0,_.HW)(a.handleEvent,a);else throw Error("ya");return Number(z)>2147483647?-1:_.IE.setTimeout(a,z||0)};
_.BJl=function(a){var z=null;return(new _.Ba(function(I,J){z=Sq(function(){I(void 0)},a);
z==-1&&J(Error("za"))})).thenCatch(function(I){_.IE.clearTimeout(z);
throw I;})};var uE=function(a){_.FC.call(this);this.streamzLogger=a;this.invocationCount=0;this.invocationLimit=100;this.shouldSendIsolatedPayload=!1;this.metricMap=new Map;this.disabledMetrics=new Set;this.flushInterval=3E4;this.JSC$9745_flushTimer=new _.rF(this.flushInterval);this.JSC$9745_flushTimer.listen("tick",this.snapshotAndFlush,!1,this);_.t7(this,this.JSC$9745_flushTimer)};
_.b(uE,_.FC);uE.prototype.sendIsolatedPayload=function(a){this.shouldSendIsolatedPayload=a;this.invocationLimit=1};
var g8I=function(a){a.JSC$9745_flushTimer.enabled||a.JSC$9745_flushTimer.start();a.invocationCount++;a.invocationCount>=a.invocationLimit&&a.snapshotAndFlush()};
uE.prototype.snapshotAndFlush=function(){var a=this.metricMap.values();a=[].concat(_.ih(a)).filter(function(z){return z.cellMap.size});
a.length&&this.streamzLogger.flush(a,this.shouldSendIsolatedPayload);OBv(a);this.invocationCount=0;this.JSC$9745_flushTimer.enabled&&this.JSC$9745_flushTimer.stop()};
uE.prototype.addNewCounter=function(a){var z=_.dO.apply(1,arguments);this.metricMap.has(a)||this.metricMap.set(a,new HuJ(a,z))};
uE.prototype.addNewEventMetric=function(a){var z=_.dO.apply(1,arguments);this.metricMap.has(a)||this.metricMap.set(a,new bui(a,z))};
var fmw=function(a,z){return a.disabledMetrics.has(z)?void 0:a.metricMap.get(z)};
uE.prototype.JSC$9745_incrementCounter=function(a){this.JSC$9745_incrementCounterBy(a,1,_.dO.apply(1,arguments))};
uE.prototype.JSC$9745_incrementCounterBy=function(a,z){var I=_.dO.apply(2,arguments),J=fmw(this,a);J&&J instanceof HuJ&&(J.JSC$9684_incrementCounterBy(z,I),g8I(this))};
uE.prototype.record=function(a,z){var I=_.dO.apply(2,arguments),J=fmw(this,a);J&&J instanceof bui&&(J.record(z,I),g8I(this))};
var OBv=function(a){for(var z=0;z<a.length;z++)a[z].clear()};_.xM=function(a,z,I){I=I===void 0?{}:I;z=Error.call(this,z);this.message=z.message;"stack"in z&&(this.stack=z.stack);this.code=a;this.metadata=I;this.name="RpcError";Object.setPrototypeOf(this,this.constructor.prototype)};
_.b(_.xM,Error);_.xM.prototype.toString=function(){var a="RpcError("+(cDm(this.code)||String(this.code))+")";this.message&&(a+=": "+this.message);return a};_.AzX=_.IE.JSON.parse;_.vV=_.IE.JSON.stringify;_.x2=_.IE.JSON.parse;_.sNe=function(a){switch(a){case 0:return"No Error";case 1:return"Access denied to content document";case 2:return"File not found";case 3:return"Firefox silently errored";case 4:return"Application custom error";case 5:return"An exception occurred";case 6:return"Http response at 400 or 500 level";case 7:return"Request was aborted";case 8:return"Request timed out";case 9:return"The resource is not available offline";default:return"Unrecognized error code"}};var n8G=function(a){switch(a){case 200:case 201:case 202:case 204:case 206:case 304:case 1223:return!0;default:return!1}};var KOe,FOl=function(){};
_.rL(FOl,_.Ye1);FOl.prototype.createInstance=function(){return new XMLHttpRequest};
KOe=new FOl;_.GV=function(a){_.HV.call(this);this.headers=new Map;this.JSC$9754_xmlHttpFactory_=a||null;this.JSC$9754_active_=!1;this.JSC$9754_xhr_=null;this.JSC$9754_lastUri_="";this.JSC$9754_lastErrorCode_=0;this.JSC$9754_lastError_="";this.inAbort_=this.inOpen_=this.inSend_=this.errorDispatched_=!1;this.timeoutInterval_=0;this.JSC$9754_timeoutId_=null;this.responseType_="";this.JSC$9754_withCredentials_=!1};
_.rL(_.GV,_.HV);var HBO=/^https?$/i,bBw=["POST","PUT"],hto=[],INd=function(a,z,I,J,r,P,N){var u=new _.GV;hto.push(u);z&&u.listen("complete",z);u.listenOnce("ready",u.cleanupSend_);P&&(u.timeoutInterval_=Math.max(0,P));N&&(u.JSC$9754_withCredentials_=N);u.send(a,I,J,r)};
_.GV.prototype.cleanupSend_=function(){this.dispose();_.Di(hto,this)};
_.GV.prototype.send=function(a,z,I,J){if(this.JSC$9754_xhr_)throw Error("Aa`"+this.JSC$9754_lastUri_+"`"+a);z=z?z.toUpperCase():"GET";this.JSC$9754_lastUri_=a;this.JSC$9754_lastError_="";this.JSC$9754_lastErrorCode_=0;this.errorDispatched_=!1;this.JSC$9754_active_=!0;this.JSC$9754_xhr_=this.createXhr();this.JSC$9754_xhr_.onreadystatechange=bn((0,_.HW)(this.onReadyStateChange_,this));try{this.inOpen_=!0,this.JSC$9754_xhr_.open(z,String(a),!0),this.inOpen_=!1}catch(N){VTw(this,N);return}a=I||"";I=new Map(this.headers);
if(J)if(Object.getPrototypeOf(J)===Object.prototype)for(var r in J)I.set(r,J[r]);else if(typeof J.keys==="function"&&typeof J.get==="function"){r=_.C(J.keys());for(var P=r.next();!P.done;P=r.next())P=P.value,I.set(P,J.get(P))}else throw Error("Ba`"+String(J));J=Array.from(I.keys()).find(function(N){return"content-type"==N.toLowerCase()});
r=_.IE.FormData&&a instanceof _.IE.FormData;!_.Um(bBw,z)||J||r||I.set("Content-Type","application/x-www-form-urlencoded;charset=utf-8");z=_.C(I);for(J=z.next();!J.done;J=z.next())I=_.C(J.value),J=I.next().value,I=I.next().value,this.JSC$9754_xhr_.setRequestHeader(J,I);this.responseType_&&(this.JSC$9754_xhr_.responseType=this.responseType_);"withCredentials"in this.JSC$9754_xhr_&&this.JSC$9754_xhr_.withCredentials!==this.JSC$9754_withCredentials_&&(this.JSC$9754_xhr_.withCredentials=this.JSC$9754_withCredentials_);
try{this.JSC$9754_timeoutId_&&(clearTimeout(this.JSC$9754_timeoutId_),this.JSC$9754_timeoutId_=null),this.timeoutInterval_>0&&(this.JSC$9754_timeoutId_=setTimeout(this.timeout_.bind(this),this.timeoutInterval_)),this.inSend_=!0,this.JSC$9754_xhr_.send(a),this.inSend_=!1}catch(N){VTw(this,N)}};
_.GV.prototype.createXhr=function(){return this.JSC$9754_xmlHttpFactory_?this.JSC$9754_xmlHttpFactory_.createInstance():KOe.createInstance()};
_.GV.prototype.timeout_=function(){typeof RW$!="undefined"&&this.JSC$9754_xhr_&&(this.JSC$9754_lastError_="Timed out after "+this.timeoutInterval_+"ms, aborting",this.JSC$9754_lastErrorCode_=8,this.dispatchEvent("timeout"),this.abort(8))};
var VTw=function(a,z){a.JSC$9754_active_=!1;a.JSC$9754_xhr_&&(a.inAbort_=!0,a.JSC$9754_xhr_.abort(),a.inAbort_=!1);a.JSC$9754_lastError_=z;a.JSC$9754_lastErrorCode_=5;QNw(a);ShI(a)},QNw=function(a){a.errorDispatched_||(a.errorDispatched_=!0,a.dispatchEvent("complete"),a.dispatchEvent("error"))};
_.GV.prototype.abort=function(a){this.JSC$9754_xhr_&&this.JSC$9754_active_&&(this.JSC$9754_active_=!1,this.inAbort_=!0,this.JSC$9754_xhr_.abort(),this.inAbort_=!1,this.JSC$9754_lastErrorCode_=a||7,this.dispatchEvent("complete"),this.dispatchEvent("abort"),ShI(this))};
_.GV.prototype.disposeInternal=function(){this.JSC$9754_xhr_&&(this.JSC$9754_active_&&(this.JSC$9754_active_=!1,this.inAbort_=!0,this.JSC$9754_xhr_.abort(),this.inAbort_=!1),ShI(this,!0));_.GV.superClass_.disposeInternal.call(this)};
_.GV.prototype.onReadyStateChange_=function(){if(!this.isDisposed())if(this.inOpen_||this.inSend_||this.inAbort_)iBX(this);else this.onReadyStateChangeEntryPoint_()};
_.GV.prototype.onReadyStateChangeEntryPoint_=function(){iBX(this)};
var iBX=function(a){if(a.JSC$9754_active_&&typeof RW$!="undefined")if(a.inSend_&&_.$M(a)==4)setTimeout(a.onReadyStateChange_.bind(a),0);else if(a.dispatchEvent("readystatechange"),a.isComplete()){a.JSC$9754_active_=!1;try{if(a.isSuccess())a.dispatchEvent("complete"),a.dispatchEvent("success");else{a.JSC$9754_lastErrorCode_=6;try{var z=_.$M(a)>2?a.JSC$9754_xhr_.statusText:""}catch(I){z=""}a.JSC$9754_lastError_=z+" ["+a.getStatus()+"]";QNw(a)}}finally{ShI(a)}}},ShI=function(a,z){if(a.JSC$9754_xhr_){a.JSC$9754_timeoutId_&&
(clearTimeout(a.JSC$9754_timeoutId_),a.JSC$9754_timeoutId_=null);
var I=a.JSC$9754_xhr_;a.JSC$9754_xhr_=null;z||a.dispatchEvent("ready");try{I.onreadystatechange=null}catch(J){}}};
_.GV.prototype.isActive=function(){return!!this.JSC$9754_xhr_};
_.GV.prototype.isComplete=function(){return _.$M(this)==4};
_.GV.prototype.isSuccess=function(){var a=this.getStatus(),z;if(!(z=n8G(a))){if(a=a===0)a=GYj(String(this.JSC$9754_lastUri_)),a=!HBO.test(a);z=a}return z};
_.$M=function(a){return a.JSC$9754_xhr_?a.JSC$9754_xhr_.readyState:0};
_.Z=_.GV.prototype;_.Z.getStatus=function(){try{return _.$M(this)>2?this.JSC$9754_xhr_.status:-1}catch(a){return-1}};
_.Z.getResponseText=function(){try{return this.JSC$9754_xhr_?this.JSC$9754_xhr_.responseText:""}catch(a){return""}};
_.Z.getResponse=function(){try{if(!this.JSC$9754_xhr_)return null;if("response"in this.JSC$9754_xhr_)return this.JSC$9754_xhr_.response;switch(this.responseType_){case "":case "text":return this.JSC$9754_xhr_.responseText;case "arraybuffer":if("mozResponseArrayBuffer"in this.JSC$9754_xhr_)return this.JSC$9754_xhr_.mozResponseArrayBuffer}return null}catch(a){return null}};
_.Z.getAllResponseHeaders=function(){return this.JSC$9754_xhr_&&_.$M(this)>=2?this.JSC$9754_xhr_.getAllResponseHeaders()||"":""};
_.Z.getLastError=function(){return typeof this.JSC$9754_lastError_==="string"?this.JSC$9754_lastError_:String(this.JSC$9754_lastError_)};var jb7=function(){};
jb7.prototype.send=function(a,z,I){z=z===void 0?function(){}:z;
I=I===void 0?function(){}:I;
INd(a.url,function(J){J=J.target;J.isSuccess()?z(J.getResponseText()):I(J.getStatus())},a.requestType,a.body,a.requestHeaders,a.timeoutMillis,a.withCredentials)};
jb7.prototype.getTransmissionType=function(){return 1};var xMI=function(a,z){this.aSX=a;this.event=z;this.startTime=ES()},Z1x;
xMI.prototype.done=function(){this.aSX.cN(this.event,ES()-this.startTime)};
var XU=function(){rZ.apply(this,arguments);this.TEST_ONLY={getExperimentIds:function(){return[]}}};
_.b(XU,rZ);_.TV=function(a,z,I){var J=ES();z=z();a.cN(I,ES()-J);return z};
Z1x=function(){XU.apply(this,arguments)};
_.b(Z1x,XU);_.Z=Z1x.prototype;_.Z.w03=function(){};
_.Z.t6=function(){};
_.Z.cN=function(){};
_.Z.logError=function(){};
_.Z.mh=function(){};
_.Z.rY7=function(){};
_.Z.uqg=function(){};
_.Z.mOg=function(){};
var v8e=function(a){XU.call(this);var z=this;this.tw=a;this.TEST_ONLY={ytg:function(){return z.tw},
getExperimentIds:function(){return z.tw.TEST_ONLY.getExperimentIds()}};
this.addOnDisposeCallback(function(){return void z.tw.dispose()})};
_.b(v8e,XU);_.Z=v8e.prototype;_.Z.update=function(a){this.tw.dispose();this.tw=a};
_.Z.t6=function(a){this.tw.t6(a)};
_.Z.cN=function(a,z){this.tw.cN(a,z)};
_.Z.logError=function(a){this.tw.logError(a)};
_.Z.mh=function(){this.tw.mh()};
_.Z.rY7=function(a){this.tw.rY7(a)};
_.Z.uqg=function(a){this.tw.uqg(a)};
_.Z.mOg=function(a){this.tw.mOg(a)};
_.Z.w03=function(a){this.tw.w03(a)};
var GBJ=function(a,z){_.FC.call(this);var I=this;this.callback=a;this.jEk=z;this.fTb=-z;this.addOnDisposeCallback(function(){return void clearTimeout(I.timer)})};
_.b(GBJ,_.FC);var $MJ=function(a){if(a.timer===void 0){var z=Math.max(0,a.fTb+a.jEk-ES());a.timer=setTimeout(function(){try{a.callback()}finally{a.fTb=ES(),a.timer=void 0}},z)}},XHO=function(a,z){XU.call(this);
this.metrics=a;this.a3=z};
_.b(XHO,XU);_.Z=XHO.prototype;_.Z.w03=function(a){this.metrics.mQK.record(a,this.a3)};
_.Z.t6=function(a){this.metrics.eventCount.increment(a,this.a3)};
_.Z.cN=function(a,z){this.metrics.y5k.record(z,a,this.a3)};
_.Z.logError=function(a){this.metrics.errorCount.increment(a,this.a3)};
_.Z.rY7=function(a){this.metrics.iF5.increment(a,this.a3)};
_.Z.uqg=function(a){this.metrics.aGp.increment(a,this.a3)};
_.Z.mOg=function(a){this.metrics.aU8.increment(a,this.a3)};
var Cli=function(a,z){z=z===void 0?[]:z;var I={a3:a.a3||"_",ups:a.ups||[],l6C:a.l6C|0,destinationUrl:a.destinationUrl,j1T:a.j1T||function(){},
k2i:a.k2i||function(P,N){return Pl3(P,N,I.j1T,I.destinationUrl)}},J=I.k2i("51",I.ups.concat(z));
XHO.call(this,{mQK:new O4w(J),errorCount:new nPI(J),eventCount:new AxI(J),y5k:new stw(J),t15:new fx1(J),iF5:new K9f(J),aGp:new F9I(J),aU8:new H4l(J)},I.a3);var r=this;this.TEST_ONLY={getExperimentIds:function(){return r.options.ups.concat(r.qIP).sort(function(P,N){return P-N})}};
this.options=I;this.service=J;this.cea=!a.k2i;this.flushDebouncer=new GBJ(function(){return void r.service.snapshotAndFlush()},I.l6C);
this.addOnDisposeCallback(function(){r.flushDebouncer.dispose();r.cea&&r.service.dispose()});
(this.qIP=z.slice()).sort(_.SmI)};
_.b(Cli,XHO);Cli.prototype.mh=function(){$MJ(this.flushDebouncer)};var wt3=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.GY(a)};
_.b(wt3,_.ju);_.mq7=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.GY(a)};
_.b(_.mq7,_.ju);var my=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.GY(a,0,my.messageId)};
_.b(my,_.ju);var TJJ=_.oPx(my);my.messageId="bfkj";var X3d=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.GY(a)};
_.b(X3d,_.ju);var dMl=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.GY(a)};
_.b(dMl,_.ju);var WOv=_.Ea(dMl);_.EM=function(){var a=this;this.promise=new Promise(function(z,I){a.resolve=z;a.reject=I})};_.dZ=function(a){_.FC.call(this);var z=this;this.v6Q=Math.floor(Math.random()*200);this.twI=new dMl;if("challenge"in a&&TJJ(a.challenge)){var I=_.vb(a.challenge,4,void 0,xG);var J=_.vb(a.challenge,5,void 0,xG);_.vb(a.challenge,7,void 0,xG)&&(this.twI=WOv(_.vb(a.challenge,7,void 0,xG)))}else I=a.program,J=a.globalName;this.addOnDisposeCallback(function(){var h,v,d;return _.t(function(W){if(W.nextAddress==1)return W.yield(z.uAg,2);h=W.yieldResult;v=h.g4W;(d=v)==null||d();_.nu(W)})});
this.v6=NMM(a.tys||{},this.twI);_.t7(this,this.v6);var r=new _.EM;this.uAg=r.promise;this.v6.t6("t");var P=this.v6.share(),N=new xMI(P,"t"),u=function(h,v,d,W){if(!z.v6.isDisposed()){var l="k";v?l="h":d&&(l="u");l!=="k"?W!==0&&(z.v6.t6(l),z.v6.cN(l,h)):z.v6Q<=0?(z.v6.t6(l),z.v6.cN(l,h),z.v6Q=Math.floor(Math.random()*200)):z.v6Q--}},E=function(h,v,d,W){Promise.resolve().then(function(){N.done();
P.mh();P.dispose();r.resolve({wi6:h,g4W:v,iwK:d,yQp:W})})};
if(!_.IE[J])throw this.v6.logError(25),Error("Ca");if(!_.IE[J].a)throw this.v6.logError(26),Error("Da");try{var O=_.IE[J].a;J=[];for(var f=[],A=Tqp(this.twI),n=0;n<A.length;n++)J.push(A[n]),f.push(1);var F=dYI(this.twI);for(A=0;A<F.length;A++)J.push(F[A]),f.push(2);this.fV8=_.C(O(I,E,!0,a.ayE,u,[J,f],_.vb(this.twI,5))).next().value;this.h8I=r.promise.then(function(){})}catch(h){throw this.v6.logError(28),h;
}};
_.b(_.dZ,_.FC);_.dZ.prototype.snapshot=function(a){if(this.isDisposed())throw Error("Ea");this.v6.t6("n");var z=this.v6.share();return this.uAg.then(function(I){var J=I.wi6;return new Promise(function(r){var P=new xMI(z,"n");J(function(N){P.done();z.w03(N.length);z.mh();z.dispose();r(N)},[a.hD,
a.iET,a.yIP,a.suC])})})};
_.dZ.prototype.jWX=function(a){this.uAg.then(function(z){var I;(I=z.iwK)==null||I(a)})};
_.dZ.prototype.ps7=function(a,z){return this.uAg.then(function(I){var J;return(J=I.yQp)==null?void 0:J(a,z,!1)})};
_.dZ.prototype.ncw=function(){return this.v6.share()};var o8w=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.GY(a)};
_.b(o8w,_.ju);var cGI=_.oPx(o8w);var UMO=function(){this.promises={};this.mAQ=null},DMf=function(){UMO.instance||(UMO.instance=new UMO);
return UMO.instance},LOI=function(a,z){return Rt1(a,_.JC(z,wt3,1,xG),_.JC(z,_.mq7,2,xG),_.vb(z,3,void 0,xG))},Rt1=function(a,z,I,J){if(!z&&!I)return Promise.resolve();
if(!J)return gji(z,I);var r;(r=a.promises)[J]||(r[J]=new Promise(function(P,N){gji(z,I).then(function(){a.mAQ=J;P()},function(u){delete a.promises[J];
N(u)})}));
return a.promises[J]};var lmI=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.GY(a)};
_.b(lmI,_.ju);var pHf=function(a,z){return _.yr(a,1,z)},wHw=function(a,z){return _.yr(a,2,z)};var WV=function(a){_.FC.call(this);var z=this;this.options=a;this.jst=new _.EM;this.h8I=this.jst.promise;this.xpi=new _.EM;this.wQ5=1;this.sNt=new _.EM;this.vVs=[];this.lI3=a.lI3||function(){};
this.zYT=new v8e(NMM(a.tys||{}));mMo(this,a.fS,a.gGP,a.jqZ,a.k8X,Object.assign({},yzJ,a.tQT||{}));this.addOnDisposeCallback(function(){return void kB1(z)})};
_.b(WV,_.FC);WV.prototype.snapshot=function(a){var z=this;return _.t(function(I){switch(I.nextAddress){case 1:if(z.isDisposed())throw Error("Ea");if(z.kU||z.uQT){I.jumpTo(2);break}return I.yield(z.xpi.promise,2);case 2:if(!z.kU){I.jumpTo(4);break}return I.yield(z.kU.snapshot(a),5);case 5:return I.return(I.yieldResult);case 4:throw z.uQT;}})};
var MTw=function(a){var z;return _.t(function(I){if(a.isDisposed())throw Error("Ea");(z=a.lS)!=null&&(z.endTimeMs=0,z.resolver(1));return I.yield(a.sNt.promise,0)})},kB1=function(a){a.uQT=Error("Ga");
a.xpi.resolve();Wsd(a.jst.promise);a.jst.reject(Error("Ga"));a.zYT.dispose();Promise.all(a.vVs).then(function(){var I;return _.t(function(J){(I=a.kU)==null||I.dispose();a.kU=void 0;_.nu(J)})});
a.vVs=[];var z;(z=a.lS)!=null&&(z.endTimeMs=0,z.resolver(1));Wsd(a.sNt.promise);a.sNt.reject(Error("Ga"))};
WV.prototype.jWX=function(a){var z,I;(z=this.kU)==null||(I=z.jWX)==null||I.call(z,a)};
WV.prototype.ps7=function(a,z){var I,J,r;return(r=(I=this.kU)==null?void 0:(J=I.ps7)==null?void 0:J.call(I,a,z))!=null?r:Promise.resolve()};
var czw=function(a,z){var I=a.lI3;a.lI3=function(){I();z()}},YhE=function(a,z){a.isDisposed()||(a.kU=z,a.zYT.update(z.ncw()),a.xpi.resolve(),a.jst.resolve(void 0),a.lI3())};
WV.prototype.handleError=function(a){if(!this.isDisposed()){this.uQT=a;this.xpi.resolve();var z,I;(I=(z=this.options).lE2)==null||I.call(z,a)}};
var qhX=function(a,z){z&&(Promise.all(a.vVs).then(function(){return void z.dispose()}),a.vVs=[])},oH=function(a,z){a.wQ5=z;
var I,J;(J=(I=a.options).nof)==null||J.call(I,z)},etG=function(a){a.isDisposed()||(a.sNt.resolve(),a.sNt=new _.EM)},mMo=function(a,z,I,J,r,P){J=J===void 0?DMf():J;
r=r===void 0?Promise.resolve(void 0):r;var N,u,E,O,f,A,n,F,h,v,d,W;_.t(function(l){switch(l.nextAddress){case 1:return l.yield(0,3);case 3:u=null;if(!N){l.jumpTo(6);break}oH(a,7);_.BP(l,7);return l.yield(sS(N.snapshot({}),P.tZX,function(){return Promise.resolve("E:CTO")}),9);
case 9:u=l.yieldResult;_.p1(l,6);break;case 7:_.sk(l),u="E:UCE";case 6:E=void 0,O=N?P.tup:P.fWX,f=new ZJ(O,P.pJa,P.c5E,P.xRF),A=1;case 10:if(!(A<=P.maxAttempts)){l.jumpTo(12);break}if(A===1){l.jumpTo(13);break}oH(a,0);a.lS=new aJO(f.getValue(),P.gbL,P.ria);return l.yield(a.lS.promise,14);case 14:n=l.yieldResult,a.lS=void 0,n===1?(A=1,f.reset()):uXJ(f);case 13:_.BP(l,15);F=void 0;if(I){F=I;l.jumpTo(17);break}oH(a,5);h=J.mAQ;return l.yield(sS(jfO(z,h,u),P.cKX,function(){return Promise.reject(Error("Ha"))}),
18);
case 18:F=l.yieldResult;case 17:return oH(a,3),l.yield(sS(LOI(J,F),P.t98,function(){return Promise.reject(Error("Ia"))}),19);
case 19:return oH(a,8),l.yield(r,20);case 20:return v=new _.dZ({challenge:F,tys:a.options.tys,ayE:a.options.ayE}),l.yield(sS(v.h8I,P.crg,function(){return Promise.reject(Error("Ja"))}),21);
case 21:E=v;l.jumpTo(12);break;case 15:d=_.sk(l),a.handleError(d),etG(a);case 11:A++;l.jumpTo(10);break;case 12:if(a.isDisposed()){l.jumpTo(5);break}E&&(I=void 0,qhX(a,N),N=E,YhE(a,E),etG(a));oH(a,2);a.lS=new aJO(P.tEs,P.gbL,P.ria);return l.yield(a.lS.promise,22);case 22:a.lS=void 0;if(a.isDisposed()){l.jumpTo(5);break}l.jumpTo(3);break;case 5:(W=N)==null||W.dispose(),_.nu(l)}})};
WV.prototype.ncw=function(){return this.zYT.share()};
var yzJ={tEs:432E5,gbL:3E5,ria:10,tZX:1E4,cKX:3E4,t98:3E4,crg:6E4,fWX:1E3,tup:6E4,pJa:6E5,c5E:.25,xRF:2,maxAttempts:10},aJO=function(a,z,I){var J=this;this.endTimeMs=Date.now()+a;this.promise=new Promise(function(P){J.resolver=P});
var r=function(){var P=J.endTimeMs-Date.now();P<=I?J.resolver(0):setTimeout(r,Math.min(P,z))};
r()};var z2v,TME=(z2v=Math.imul)!=null?z2v:function(a,z){return a*z|0},no=[196,
200,224,18],Us=function(a,z,I){I=I===void 0?[]:I;this.maxItems=a;this.mI=z===void 0?0:z;this.oc=I},IJI=function(a){var z=globalThis.sessionStorage.getItem("iU5q-!O9@$");
if(!z)return new Us(a);var I=z.split(",");if(I.length<2)return globalThis.sessionStorage.removeItem("iU5q-!O9@$"),new Us(a);z=I.slice(1);z.length===1&&z[0]===""&&(z=[]);I=Number(I[0]);return isNaN(I)||I<0||I>z.length?(globalThis.sessionStorage.removeItem("iU5q-!O9@$"),new Us(a)):new Us(a,I,z)};
Us.prototype.serialize=function(){return String(this.mI)+","+this.oc.join()};
Us.prototype.insert=function(a,z){var I=void 0;if(this.oc[this.mI]!==a){var J=this.oc.indexOf(a);J!==-1?(this.oc.splice(J,1),J<this.mI&&this.mI--,this.oc.splice(this.mI,0,a)):(I=this.oc[this.mI],this.oc[this.mI]=a)}this.mI=(this.mI+1)%this.maxItems;a=O11("iU5q-!O9@$",this.serialize());I&&a&&z(I);return a};
var J7E=function(a,z){this.eQw=z;try{var I=globalThis.sessionStorage&&!!globalThis.sessionStorage.getItem&&!!globalThis.sessionStorage.setItem&&!!globalThis.sessionStorage.removeItem}catch(J){I=!1}I&&(this.index=IJI(a))},r71=function(a,z,I,J,r){var P=a.index?_.TV(a.eQw,function(){return Uex(a.index,W5i(z),I,J,r)},"W"):"u";
a.eQw.mOg(P)},PEl=function(a,z,I){var J=_.C(a.index?_.TV(a.eQw,function(){return De3(W5i(z),I)},"R"):["u"]),r=J.next().value;
J=J.next().value;a.eQw.uqg(r);return J};var Zo1={toString:function(a){var z=[],I=0;a-=-2147483648;z[I++]="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ".charAt(a%52);for(a=Math.floor(a/52);a>0;)z[I++]="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789".charAt(a%62),a=Math.floor(a/62);return z.join("")}};var tWO=function(a){a=CEv(a);for(var z=2654435769,I=2654435769,J=314159265,r=a.length,P=r,N=0,u=function(){z-=I;z-=J;z^=J>>>13;I-=J;I-=z;I^=z<<8;J-=z;J-=I;J^=I>>>13;z-=I;z-=J;z^=J>>>12;I-=J;I-=z;I^=z<<16;J-=z;J-=I;J^=I>>>5;z-=I;z-=J;z^=J>>>3;I-=J;I-=z;I^=z<<10;J-=z;J-=I;J^=I>>>15};P>=12;P-=12,N+=12)z+=NQo(a,N),I+=NQo(a,N+4),J+=NQo(a,N+8),u();
J+=r;switch(P){case 11:J+=a[N+10]<<24;case 10:J+=a[N+9]<<16;case 9:J+=a[N+8]<<8;case 8:I+=a[N+7]<<24;case 7:I+=a[N+6]<<16;case 6:I+=a[N+5]<<8;case 5:I+=a[N+4];case 4:z+=a[N+3]<<24;case 3:z+=a[N+2]<<16;case 2:z+=a[N+1]<<8;case 1:z+=a[N]}u();return Zo1.toString(J)},CEv=function(a){for(var z=[],I=0;I<a.length;I++)z.push(a.charCodeAt(I));
return z},NQo=function(a,z){return a[z]+(a[z+1]<<8)+(a[z+2]<<16)+(a[z+3]<<24)};var Do=function(a){_.FC.call(this);this.e3=a;this.e0C=new _.EM};
_.b(Do,_.FC);var uCX=function(a,z){var I=setTimeout(function(){a.e0C.resolve()},z);
a.addOnDisposeCallback(function(){return void clearTimeout(I)})};
Do.prototype.fEX=function(a,z){var I=this.o9(a);z==null||z(I);return _.TV(this.e3,function(){return _.he(I,2)},this.mey)};
var Elo=function(a,z,I,J){return _.TV(a.e3,function(){return I?a.fEX(z,J):a.o9(z,J)},a.pts)},BQO=function(a,z,I,J){Do.call(this,a);
this.yss=z;this.gTY=I;this.pts="m";this.mey="x";this.btF=0;uCX(this,J)};
_.b(BQO,Do);BQO.prototype.o9=function(a,z){var I=this;this.e3.t6(this.pts);++this.btF>=this.gTY&&this.e0C.resolve();var J=a();a=_.TV(this.e3,function(){return I.yss(J)},"C");
if(a===void 0)throw new IH(17,"YNJ:Undefined");if(!(a instanceof Uint8Array))throw new IH(18,"ODM:Invalid");z==null||z(a);return a};
var gl1=function(a,z,I){Do.call(this,a);this.tGk=z;this.pts="f";this.mey="z";uCX(this,I)};
_.b(gl1,Do);gl1.prototype.o9=function(){return this.tGk};
var Oow=function(a,z,I){Do.call(this,a);this.bBs=z;this.pts="w";this.mey="z";uCX(this,I)};
_.b(Oow,Do);Oow.prototype.o9=function(){var a=this;return _.TV(this.e3,function(){return _.cp(a.bBs)},"d")};
Oow.prototype.fEX=function(){return this.bBs};
var fJI=function(a,z){Do.call(this,a);this.error=z;this.pts="e";this.mey="y"};
_.b(fJI,Do);var A7w=function(a,z){var I=(z(a.error.message)+":"+z(a.error.stack)).substring(0,2048);z=I.length+1;I=RZ0(I);var J=new Uint8Array(4+I.length);J.set([42,z&127|128,z>>7,a.error.code]);J.set(I,4);return J};
fJI.prototype.o9=function(){if(this.dDO)return this.dDO;this.dDO=A7w(this,function(a){return"_"+tWO(a)});
return A7w(this,function(a){return a})};
var sfG=function(a,z,I){Do.call(this,a);this.azY=z;this.clientState=I;this.pts="S";this.mey="q"};
_.b(sfG,Do);sfG.prototype.o9=function(){var a=Math.floor(Date.now()/1E3),z=[Math.random()*255,Math.random()*255],I=z.concat([this.azY&255,this.clientState],[a>>24&255,a>>16&255,a>>8&255,a&255]);a=new Uint8Array(2+I.length);a[0]=34;a[1]=I.length;a.set(I,2);I=a.subarray(2);for(var J=z=z.length;J<I.length;++J)I[J]^=I[J%z];this.e3.rY7(this.clientState);return a};var nlj={qz8:3E4,rkW:2E4},RH=function(a){_.FC.call(this);var z=this;this.dzT=new _.EM;this.eIb=0;this.pS=void 0;this.state=2;this.vm=a.vm;this.fS=a.fS;this.tQT=Object.assign({},nlj,a.tQT||{});this.hh=a.vm.ncw();var I;this.onError=(I=a.onError)!=null?I:function(){};
this.dMb=a.dMb||!1;if(KGl(a)){var J=this.vm;this.gSM=function(){return MTw(J).catch(function(N){N=z.reportError(new IH(z.f5?20:32,"TRG:Disposed",N));z.pS=N;var u;(u=z.f5)==null||u.dispose();z.f5=void 0;z.dzT.reject(N)})};
czw(J,function(){return void FGw(z)});
J.wQ5===2&&FGw(this)}else this.gSM=a.u7p,FGw(this);var r=this.hh.share();r.t6("o");var P=new xMI(r,"o");this.dzT.promise.then(function(){P.done();r.mh();r.dispose()},function(){return void r.dispose()});
this.addOnDisposeCallback(function(){z.f5?(z.f5.dispose(),z.f5=void 0):z.pS?z.hh.mh():(z.pS=z.reportError(new IH(32,"TNP:Disposed")),z.hh.mh(),z.dzT.reject(z.pS))});
_.t7(this,this.hh)};
_.b(RH,_.FC);RH.prototype.ip5=function(){return this.dzT.promise};
var HoX=function(a,z){if(!(z instanceof IH))if(z instanceof _.xM){var I=Error(z.toString());I.stack=z.stack;z=new IH(11,"EBH:Error",I)}else z=new IH(12,"BSO:Unknown",z);return a.reportError(z)},FGw=function(a){var z,I,J,r,P,N,u,E,O,f,A,n,F,h,v;
return _.t(function(d){switch(d.nextAddress){case 1:z=void 0;a.eIb++;I=new _.EM;a.vm instanceof WV&&a.vm.vVs.push(I.promise);if(!a.dMb){d.jumpTo(2);break}J=new _.EM;setTimeout(function(){return void J.resolve()});
return d.yield(J.promise,2);case 2:return r=a.hh.share(),_.BP(d,4,5),a.state=5,P={},N=[],d.yield(sS(a.vm.snapshot({hD:P,yIP:N}),a.tQT.rkW,function(){return Promise.reject(new IH(15,"MDA:Timeout"))}),7);
case 7:u=d.yieldResult;if(a.isDisposed())throw new IH(a.f5?20:32,"MDA:Disposed");E=N[0];a.state=6;return d.yield(sS(bo1(a.fS,u),a.tQT.qz8,function(){return Promise.reject(new IH(10,"BWB:Timeout"))}),8);
case 8:O=d.yieldResult;if(a.isDisposed())throw new IH(a.f5?20:32,"BWB:Disposed");a.state=7;z=_.TV(r,function(){var l=h2X(a,O,I,E);l.e0C.promise.then(function(){return void a.gSM()});
return l},"i");
case 5:_.Ok(d);r.dispose();_.Ay(d,6);break;case 4:f=_.sk(d);(A=z)==null||A.dispose();if(!a.pS){n=HoX(a,f);I.resolve();var W;if(W=a.vm instanceof WV&&a.eIb<2)a:if(f instanceof IH)W=f.code!==32&&f.code!==20&&f.code!==10;else{if(f instanceof _.xM)switch(f.code){case 2:case 13:case 14:case 4:break;default:W=!1;break a}W=!0}if(W)return F=(1+Math.random()*.25)*(a.f5?6E4:1E3),h=setTimeout(function(){return void a.gSM()},F),a.addOnDisposeCallback(function(){return void clearTimeout(h)}),d.return();
a.pS=n}r.logError(a.f5?13:14);a.dzT.reject(a.pS);return d.return();case 6:a.state=8,a.eIb=0,(v=a.f5)==null||v.dispose(),a.f5=z,a.dzT.resolve(),_.nu(d)}})},h2X=function(a,z,I,J){var r=CR1(z,2)*1E3;
if(r<=0)throw new IH(31,"TTM:Invalid");if(_.vb(z,4))return new Oow(a.hh,_.vb(z,4),r);if(!CR1(z,3))return new gl1(a.hh,wC1(_.Fg(z,1)),r);if(!J)throw new IH(4,"PMD:Undefined");J=J(wC1(_.Fg(z,1)));if(!(J instanceof Function))throw new IH(16,"APF:Failed");a.tBP=Math.floor((Date.now()+r)/1E3);a=new BQO(a.hh,J,CR1(z,3),r);a.addOnDisposeCallback(function(){return void I.resolve()});
return a};
RH.prototype.o9=function(a){return VWw(this,Object.assign({},a),!1)};
RH.prototype.fEX=function(a){return VWw(this,Object.assign({},a),!0)};
RH.prototype.cUO=function(a){if(a>150)return!1;try{return this.cache=new J7E(a,this.hh),!0}catch(z){return this.reportError(new IH(22,"GBJ:init",z)),!1}};
RH.prototype.reportError=function(a){this.hh.logError(a.code);this.onError(a);return a};
var Qfj=function(a,z){z=z instanceof IH?z:new IH(5,"TVD:error",z);return a.reportError(z)},VWw=function(a,z,I){try{if(a.isDisposed())throw new IH(21,"BNT:disposed");
if(!a.f5&&a.pS)throw a.pS;var J,r;return(r=(J=SS1(a,z,I))!=null?J:iov(a,z,I))!=null?r:xCw(a,z,I)}catch(P){if(!z.nb1)throw Qfj(a,P);return vlf(a,I,P)}},SS1=function(a,z,I){var J;
return(J=a.f5)==null?void 0:Elo(J,function(){return GaI(a,z)},I,function(r){var P;
if(a.f5 instanceof BQO&&((P=z.bO)==null?0:P.t4X))try{var N;(N=a.cache)==null||r71(N,GaI(a,z),r,z.bO.cV7,a.tBP-120)}catch(u){a.reportError(new IH(24,"ELX:write",u))}})},iov=function(a,z,I){var J;
if((J=z.bO)!=null&&J.iWQ)try{var r,P=(r=a.cache)==null?void 0:PEl(r,GaI(a,z),z.bO.cV7);return P?I?_.TV(a.hh,function(){return _.he(P,2)},"a"):P:void 0}catch(N){a.reportError(new IH(23,"RXO:read",N))}},xCw=function(a,z,I){var J={stack:[],
error:void 0,hasError:!1};try{if(!z.ob1)throw new IH(29,"SDF:notready");return Elo(yn$(J,new sfG(a.hh,0,a.state)),function(){return GaI(a,z)},I)}catch(r){J.error=r,J.hasError=!0}finally{k5p(J)}},vlf=function(a,z,I){var J={stack:[],
error:void 0,hasError:!1};try{var r=Qfj(a,I);return Elo(yn$(J,new fJI(a.hh,r)),function(){return[]},z)}catch(P){J.error=P,J.hasError=!0}finally{k5p(J)}},GaI=function(a,z){return z.j9T?z.j9T:z.hD?_.TV(a.hh,function(){return z.j9T=RZ0(z.hD)},"c"):[]},KGl=function(a){return $G(function(z){if(!ah(z))return!1;
for(var I=_.C(Object.entries(a)),J=I.next();!J.done;J=I.next()){var r=_.C(J.value);J=r.next().value;r=r.next().value;if(!(J in z)){if(r.isOptionalGuard_doNotManuallySetPrettyPlease===!0)continue;return!1}if(!r(z[J]))return!1}return!0})}({vm:function(a){return $G(function(z){return z instanceof a})}(WV)},"");var $Co=function(){var a=_.CH();this.JSC$9872_streamzService=a;a.addNewCounter("/client_streamz/youtube/web/debug/browser_cookie_setting",If("cookie_enabled"),If("cookie_3p_enabled"),_.rQ("browser"))};
$Co.prototype.increment=function(a,z,I){this.JSC$9872_streamzService.JSC$9745_incrementCounter("/client_streamz/youtube/web/debug/browser_cookie_setting",a,z,I)};
var KVx=function(){var a=_.CH();this.JSC$9896_streamzService=a;a.addNewCounter("/client_streamz/youtube/identity/stickiness/reload",J7("tick"),If("from_st_cookie"))};
KVx.prototype.increment=function(a,z){this.JSC$9896_streamzService.JSC$9745_incrementCounter("/client_streamz/youtube/identity/stickiness/reload",a,z)};
var XWi=function(){var a=_.CH();this.JSC$9902_streamzService=a;a.addNewCounter("/client_streamz/youtube/identity/high_frequency_cookie_rotation",_.rQ("status"))};
XWi.prototype.increment=function(a){this.JSC$9902_streamzService.JSC$9745_incrementCounter("/client_streamz/youtube/identity/high_frequency_cookie_rotation",a)};
var TQv=function(){var a=_.CH();this.JSC$9905_streamzService=a;a.addNewCounter("/client_streamz/youtube/ads/desktop_masthead",_.rQ("stage"),If("is_using_ytd_player"),If("has_expandable_tiles"))};
TQv.prototype.increment=function(a,z,I){this.JSC$9905_streamzService.JSC$9745_incrementCounter("/client_streamz/youtube/ads/desktop_masthead",a,z,I)};
var dCw=function(){var a=_.CH();this.JSC$9908_streamzService=a;a.addNewCounter("/client_streamz/youtube/web/response_signature",_.rQ("check_status"))};
dCw.prototype.increment=function(a){this.JSC$9908_streamzService.JSC$9745_incrementCounter("/client_streamz/youtube/web/response_signature",a)};
var WGo=function(){var a=_.CH();this.JSC$9911_streamzService=a;a.addNewCounter("/client_streamz/youtube/web/e_sig_log",_.rQ("sig"),J7("de"))};
WGo.prototype.increment=function(a,z){this.JSC$9911_streamzService.JSC$9745_incrementCounter("/client_streamz/youtube/web/e_sig_log",a,z)};
var olO=function(){var a=_.CH();this.JSC$9914_streamzService=a;a.addNewCounter("/client_streamz/youtube/web/e_sig_en",_.rQ("sig"),J7("de"))};
olO.prototype.increment=function(a,z){this.JSC$9914_streamzService.JSC$9745_incrementCounter("/client_streamz/youtube/web/e_sig_en",a,z)};
_.UCl=function(){var a=_.CH();this.JSC$9917_streamzService=a;a.addNewCounter("/client_streamz/youtube/web/enforcement_intent",_.rQ("action"))};
_.UCl.prototype.increment=function(a){this.JSC$9917_streamzService.JSC$9745_incrementCounter("/client_streamz/youtube/web/enforcement_intent",a)};var Lp=window;var DC1=(new Date).getTime();_.x8.createSet("area","base","br","col","command","embed","hr","img","input","keygen","link","meta","param","source","track","wbr");_.x8.createSet("action","cite","data","formaction","href","manifest","poster","src");var R2O=function(a){this.servicePromise_=a;a.then((0,_.HW)(function(){},this),function(){},this)},LGj=function(a,z,I){a.servicePromise_.then(function(J){var r=J[z];
if(!r)throw Error("Ka`"+z);return r.apply(J,I)})},wWi=function(a,z,I){for(var J=Array(arguments.length-2),r=2;r<arguments.length;r++)J[r-2]=arguments[r];
r=lJG(a,z).then(function(P){return P.apply(null,J)},function(P){P=Error("La`"+z+"`"+a,{cause:P});
delete pWv[z];return _.xN(P)});
return new R2O(r)},pWv={},lJG=function(a,z){var I=pWv[z];
if(I)return I;I=(I=_.DH(z))?_.uI(I):(new _.Ba(function(J,r){var P=(new Vj(document)).createElement("SCRIPT");P.async=!0;_.c9(P,_.H9(oGO(a)));P.onload=P.onreadystatechange=function(){P.readyState&&P.readyState!="loaded"&&P.readyState!="complete"||J()};
P.onerror=function(N){r(Error("Ma`"+z+"`"+a,{cause:N}))};
(document.head||document.getElementsByTagName("head")[0]).appendChild(P)})).then(function(){var J=_.DH(z);
if(!J)throw Error("Na`"+z+"`"+a);return J});
return pWv[z]=I};var mCE={GOOGLE:"https://www.google.com",SUPPORT:"https://support.google.com",PLAY:"https://play.google.com"},kao=function(){var a=this;this.rsaForList=[];this.rsaForPromises=[];this.initialize=L5d(function(){return _.t(function(z){if(z.nextAddress==1)return typeof document==="undefined"||document.requestStorageAccessFor===void 0||navigator.permissions===void 0||navigator.permissions.query===void 0||location.hostname.match(".+\\.google\\.com$")?z.return(Promise.resolve()):z.yield(y7o(a),2);a.rsaForList.length>
0&&document.addEventListener("click",a.requestAccessForHelpPanel);_.nu(z)})});
this.requestAccessForHelpPanel=function(){if(!(a.rsaForPromises.length>0)){for(var z=_.C(a.rsaForList),I=z.next();!I.done;I=z.next()){I=I.value;try{a.rsaForPromises.push(document.requestStorageAccessFor(I))}catch(J){}}Promise.all(a.rsaForPromises).then(function(){}).catch(function(){}).finally(function(){a.reset()})}}};
kao.prototype.reset=function(){document.removeEventListener("click",this.requestAccessForHelpPanel)};
var y7o=function(a){var z,I,J,r;return _.t(function(P){switch(P.nextAddress){case 1:z=_.C(Object.values(mCE)),I=z.next();case 2:if(I.done){P.jumpTo(0);break}J=I.value;_.BP(P,5);return P.yield(navigator.permissions.query({name:"top-level-storage-access",requestedOrigin:J}),7);case 7:r=P.yieldResult;r.state!=="granted"&&a.rsaForList.push(J);_.p1(P,3);break;case 5:_.sk(P);P.jumpTo(0);break;case 3:I=z.next(),P.jumpTo(2)}})};(new kao).initialize();var MWO=function(a){this.JSC$9931_loader_=a};
MWO.prototype.startHelp=function(a){LGj(this.JSC$9931_loader_,"startHelp",arguments)};
MWO.prototype.JSC$9933_loadChatSupport=function(a){LGj(this.JSC$9931_loader_,"loadChatSupport",arguments)};
var YSJ=function(a,z){z=z||{};a=wWi(c7f,"help.service.Lazy.create",a,{apiKey:z.apiKey||z.apiKey,asxUiUri:z.asxUiUri||z.asxUiUri,environment:z.environment||z.environment,flow:z.flow||z.flow,frdProductData:z.frdProductData||z.frdProductData,frdProductDataSerializedJspb:z.frdProductDataSerializedJspb||z.frdProductDataSerializedJspb,helpCenterPath:z.helpCenterPath||z.helpCenterPath,locale:z.locale||z.locale||"en-US".replace(/-/g,"_"),nonce:z.nonce||z.nonce,productData:z.productData||z.productData,receiverUri:z.receiverUri||
z.receiverUri,renderApiUri:z.renderApiUri||z.renderApiUri,theme:z.theme||z.theme,window:z.window||z.window});return new MWO(a)},c7f=new Wa(ncx,"https://www.gstatic.com/feedback/js/help/prod/service/lazy.min.js");var qSO=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.GY(a)};
_.b(qSO,_.ju);var e2w=_.Ea(qSO);_.aTG=new function(a,z,I,J){this.configType=a;this.flagName=I;this.defaultValue=J;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 z0E=function(){this.retriever=_.ab().resolve(jhv)};pyG(Node);pyG(Element);var ITl=pyG(HTMLElement);pyG(SVGElement);var J2O,r2w,wZ,PF1;J2O=function(a){return typeof a.className=="string"?a.className:a.getAttribute&&a.getAttribute("class")||""};
r2w=function(a){return a.classList?a.classList:J2O(a).match(/\S+/g)||[]};
_.ln=function(a,z){typeof a.className=="string"?a.className=z:a.setAttribute&&a.setAttribute("class",z)};
_.pp=function(a,z){return a.classList?a.classList.contains(z):_.Um(r2w(a),z)};
_.eg=function(a,z){if(a.classList)a.classList.add(z);else if(!_.pp(a,z)){var I=J2O(a);_.ln(a,I+(I.length>0?" "+z:z))}};
wZ=function(a,z){if(a.classList)Array.prototype.forEach.call(z,function(r){_.eg(a,r)});
else{var I={};Array.prototype.forEach.call(r2w(a),function(r){I[r]=!0});
Array.prototype.forEach.call(z,function(r){I[r]=!0});
z="";for(var J in I)z+=z.length>0?" "+J:J;_.ln(a,z)}};
_.YN=function(a,z){a.classList?a.classList.remove(z):_.pp(a,z)&&_.ln(a,Array.prototype.filter.call(r2w(a),function(I){return I!=z}).join(" "))};
PF1=function(a,z){a.classList?Array.prototype.forEach.call(z,function(I){_.YN(a,I)}):_.ln(a,Array.prototype.filter.call(r2w(a),function(I){return!_.Um(z,I)}).join(" "))};var ZWX=function(a){this.previouslyFocusedElement=this.focusChangeHandler=null;this.document=a.document},tJX=function(a,z){CFe(a);
var I=document.createElement("div"),J;(J=z.parentNode)==null||J.insertBefore(I,z);I.tabIndex=0;I.id="fc-focus-trap-pre-div";I=document.createElement("div");var r;(r=z.parentNode)==null||r.insertBefore(I,z.nextSibling);I.tabIndex=0;I.id="fc-focus-trap-post-div";var P=N1J(a,z),N=N1J(a,z,!0);P&&N&&(a.focusChangeHandler=function(){var u=a.document.activeElement;if(u)if(_.of(z,u))a.previouslyFocusedElement=u;else if(u===a.document.activeElement)switch(a.previouslyFocusedElement){case P:N.focus();a.previouslyFocusedElement=
N;break;default:P.focus(),a.previouslyFocusedElement=P}},a.document.addEventListener("focus",a.focusChangeHandler,!0),a.document.addEventListener("focusin",a.focusChangeHandler))},CFe=function(a){a.focusChangeHandler&&(document.removeEventListener("focus",a.focusChangeHandler,!0),document.removeEventListener("focusin",a.focusChangeHandler),a.focusChangeHandler=null);
var z;(z=document.getElementById("fc-focus-trap-pre-div"))==null||z.remove();var I;(I=document.getElementById("fc-focus-trap-post-div"))==null||I.remove()},upG=function(a,z,I,J,r){I=I===void 0?!0:I;
var P;r=(P=r===void 0?null:r)!=null?P:N1J(a,z,J===void 0?!1:J);r!==null&&(r.focus(),I&&tJX(a,z))};
ZWX.prototype.disableButton=function(a,z){z=z===void 0?null:z;a.disabled=!0;z&&_.eg(a,z)};
var N1J=function(a,z,I){I=I===void 0?!1:I;if(Upp(z)&&!I)return z;var J=I?[].slice.call(z.children,0).reverse():z.children;J=_.C(J);for(var r=J.next();!r.done;r=J.next())if(r=r.value,ITl(r)&&(r=N1J(a,r,I)))return r;return Upp(z)&&I?z:null};var EX1=function(a){this.originalBodyOverflow="";this.JSC$9957_domHelper=nB(a)};
EX1.prototype.enableScrolling=function(){this.JSC$9957_domHelper.JSC$9284_document_.body.style.overflow=this.originalBodyOverflow};_.rL(_.bE,_.FC);_.Z=_.bE.prototype;_.Z.JSC$9960_id_=0;_.Z.disposeInternal=function(){_.bE.superClass_.disposeInternal.call(this);this.stop();delete this.JSC$9958_listener_;delete this.handler_};
_.Z.start=function(a){this.stop();this.JSC$9960_id_=Sq(this.callback_,a!==void 0?a:this.JSC$9958_interval_)};
_.Z.stop=function(){this.isActive()&&_.IE.clearTimeout(this.JSC$9960_id_);this.JSC$9960_id_=0};
_.Z.fire=function(){this.stop();this.JSC$9960_doAction_()};
_.Z.isActive=function(){return this.JSC$9960_id_!=0};
_.Z.JSC$9960_doAction_=function(){this.JSC$9960_id_=0;this.JSC$9958_listener_&&this.JSC$9958_listener_.call(this.handler_)};_.PJ=function(a){_.FC.call(this);this.handler_=a;this.JSC$9961_keys_={}};
_.rL(_.PJ,_.FC);var B1G=[];_.PJ.prototype.listen=function(a,z,I,J){Array.isArray(z)||(z&&(B1G[0]=z.toString()),z=B1G);for(var r=0;r<z.length;r++){var P=_.Sg(a,z[r],I||this.handleEvent,J||!1,this.handler_||this);if(!P)break;this.JSC$9961_keys_[P.key]=P}return this};
_.PJ.prototype.listenOnce=function(a,z,I,J){return gXI(this,a,z,I,J)};
var gXI=function(a,z,I,J,r,P){if(Array.isArray(I))for(var N=0;N<I.length;N++)gXI(a,z,I[N],J,r,P);else{z=bN(z,I,J||a.handleEvent,r,P||a.handler_||a);if(!z)return a;a.JSC$9961_keys_[z.key]=z}return a};
_.PJ.prototype.unlisten=function(a,z,I,J,r){if(Array.isArray(z))for(var P=0;P<z.length;P++)this.unlisten(a,z[P],I,J,r);else if(a=URe(a,z,I||this.handleEvent,_.md(J)?!!J.capture:!!J,r||this.handler_||this))hj(a),delete this.JSC$9961_keys_[a.key];return this};
_.PJ.prototype.removeAll=function(){_.x8.forEach(this.JSC$9961_keys_,function(a,z){this.JSC$9961_keys_.hasOwnProperty(z)&&hj(a)},this);
this.JSC$9961_keys_={}};
_.PJ.prototype.disposeInternal=function(){_.PJ.superClass_.disposeInternal.call(this);this.removeAll()};
_.PJ.prototype.handleEvent=function(){throw Error("Oa");};var mi=function(){_.FC.call(this);this.services_={}};
_.rL(mi,_.FC);mi.prototype.connect=function(a){a&&a()};
mi.prototype.isConnected=function(){return!0};
mi.prototype.registerService=function(a,z,I){this.services_[a]={callback:z,objectPayload:!!I}};
mi.prototype.getService=function(a,z){var I=this.services_[a];return I?I:this.defaultService_?{callback:_.nt(this.defaultService_,a),objectPayload:_.md(z)}:null};
var OWl=function(a,z){if(z&&typeof a==="string")try{return JSON.parse(a)}catch(I){return null}else if(!z&&typeof a!=="string")return(0,_.vV)(a);return a};
mi.prototype.disposeInternal=function(){mi.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 yD=function(a,z){this.sequence_=[];this.onCancelFunction_=a;this.defaultScope_=z||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};
yD.prototype.cancel=function(a){if(this.fired_)this.result_ instanceof yD&&this.result_.cancel();else{if(this.parent_){var z=this.parent_;delete this.parent_;a?z.cancel(a):(z.branches_--,z.branches_<=0&&z.cancel())}this.onCancelFunction_?this.onCancelFunction_.call(this.defaultScope_,this):this.silentlyCanceled_=!0;this.fired_||this.errback(new kM(this))}};
yD.prototype.continue_=function(a,z){this.blocked_=!1;fTl(this,a,z)};
var fTl=function(a,z,I){a.fired_=!0;a.result_=I;a.hadError_=!z;A2f(a)},nXw=function(a){if(a.fired_){if(!a.silentlyCanceled_)throw new she(a);
a.silentlyCanceled_=!1}};
yD.prototype.callback=function(a){nXw(this);fTl(this,!0,a)};
yD.prototype.errback=function(a){nXw(this);fTl(this,!1,a)};
var KAE=function(a,z,I){MQ(a,z,null,I)};
yD.prototype.finally=function(a){var z=this;return FAO(new Promise(function(I,J){MQ(z,function(r){a();I(r)},function(r){a();
J(r)})}))};
var MQ=function(a,z,I,J){var r=a.fired_;r||(z===I?z=I=bn(z):(z=bn(z),I=bn(I)));a.sequence_.push([z,I,J]);r&&A2f(a)};
yD.prototype.then=function(a,z,I){var J,r,P=new _.Ba(function(N,u){r=N;J=u});
MQ(this,r,function(N){N instanceof kM?P.cancel():J(N);return HWl},this);
return P.then(a,z,I)};
yyw(yD);var bWe=function(a,z){z instanceof yD?KAE(a,(0,_.HW)(z.branch,z)):KAE(a,function(){return z})};
yD.prototype.branch=function(a){var z=new yD;MQ(this,z.callback,z.errback,z);a&&(z.parent_=this,this.branches_++);return z};
yD.prototype.isError=function(a){return a instanceof Error};
var h0e=function(a){return yE(a.sequence_,function(z){return typeof z[1]==="function"})},HWl={},A2f=function(a){if(a.unhandledErrorId_&&a.fired_&&h0e(a)){var z=a.unhandledErrorId_,I=VJE[z];
I&&(_.IE.clearTimeout(I.JSC$9978_id_),delete VJE[z]);a.unhandledErrorId_=0}a.parent_&&(a.parent_.branches_--,delete a.parent_);z=a.result_;for(var J=I=!1;a.sequence_.length&&!a.blocked_;){var r=a.sequence_.shift(),P=r[0],N=r[1];r=r[2];if(P=a.hadError_?N:P)try{var u=P.call(r||a.defaultScope_,z);u===HWl&&(u=void 0);u!==void 0&&(a.hadError_=a.hadError_&&(u==z||a.isError(u)),a.result_=z=u);if(kjv(z)||typeof _.IE.Promise==="function"&&z instanceof _.IE.Promise)J=!0,a.blocked_=!0}catch(E){z=E,a.hadError_=
!0,h0e(a)||(I=!0)}}a.result_=z;J&&(u=(0,_.HW)(a.continue_,a,!0),J=(0,_.HW)(a.continue_,a,!1),z instanceof yD?(MQ(z,u,J),z.blocking_=!0):z.then(u,J));I&&(z=new QhO(z),VJE[z.JSC$9978_id_]=z,a.unhandledErrorId_=z.JSC$9978_id_)},FAO=function(a){var z=new yD;
a.then(function(I){z.callback(I)},function(I){z.errback(I)});
return z},she=function(){_.aE.call(this)};
_.rL(she,_.aE);she.prototype.message="Deferred has already fired";she.prototype.name="AlreadyCalledError";var kM=function(){_.aE.call(this)};
_.rL(kM,_.aE);kM.prototype.message="Deferred was canceled";kM.prototype.name="CanceledError";var QhO=function(a){this.JSC$9978_id_=_.IE.setTimeout((0,_.HW)(this.throwError,this),0);this.JSC$9978_error_=a};
QhO.prototype.throwError=function(){delete VJE[this.JSC$9978_id_];throw this.JSC$9978_error_;};
var VJE={};var Sfi={1:"NativeMessagingTransport"},iWX=["pu","lru","pru","lpu","ppu"],vXi=function(){for(var a=10,z=xIe,I=z.length,J="";a-- >0;)J+=z.charAt(Math.floor(Math.random()*I));return J},xIe="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789";var cV=function(a){_.FC.call(this);this.JSC$9981_domHelper_=a||nB()};
_.rL(cV,_.FC);cV.prototype.transportType=0;cV.prototype.getWindow=function(){return this.JSC$9981_domHelper_.getWindow()};
cV.prototype.getName=function(){return Sfi[String(this.transportType)]||""};var YM=function(a,z,I,J,r){cV.call(this,I);this.JSC$9984_channel_=a;this.protocolVersion_=r||2;this.peerHostname_=z||"*";this.JSC$9984_eventHandler_=new _.PJ(this);this.maybeAttemptToConnectTimer_=new _.rF(100,this.getWindow());this.oneSidedHandshake_=!!J;this.setupAckReceived_=new yD;this.setupAckSent_=new yD;this.JSC$9984_connected_=new yD;this.endpointId_=vXi();this.peerEndpointId_=null;this.oneSidedHandshake_?GeG(this.JSC$9984_channel_)==1?bWe(this.JSC$9984_connected_,this.setupAckReceived_):
bWe(this.JSC$9984_connected_,this.setupAckSent_):(bWe(this.JSC$9984_connected_,this.setupAckReceived_),this.protocolVersion_==2&&bWe(this.JSC$9984_connected_,this.setupAckSent_));KAE(this.JSC$9984_connected_,this.notifyConnected_,this);this.JSC$9984_connected_.callback(!0);this.JSC$9984_eventHandler_.listen(this.maybeAttemptToConnectTimer_,"tick",this.maybeAttemptToConnect_)};
_.rL(YM,cV);YM.prototype.peerProtocolVersion_=null;YM.prototype.initialized_=!1;YM.prototype.transportType=1;var $Iv={};YM.prototype.sendTimerId_=0;
var dIw=function(a){var z=a.event_.data;if(typeof z!=="string")return!1;var I=z.indexOf("|"),J=z.indexOf(":");if(I==-1||J==-1)return!1;var r=z.substring(0,I);I=z.substring(I+1,J);z=z.substring(J+1);if(J=qQ[r])return J.xpcDeliver(I,z,a.event_.origin),!0;J=Xg1(z)[0];for(var P in qQ){var N=qQ[P];if(GeG(N)==1&&!N.isConnected()&&I=="tp"&&(J=="SETUP"||J=="SETUP_NTPV2")&&T1e(N,a.event_.origin))return delete qQ[N.name],N.name=r,qQ[r]=N,N.xpcDeliver(I,z),!0}return!1},WAJ=function(a){a.protocolVersion_!=2||
a.peerProtocolVersion_!=null&&a.peerProtocolVersion_!=2||a.send("tp","SETUP_NTPV2,"+a.endpointId_);
a.peerProtocolVersion_!=null&&a.peerProtocolVersion_!=1||a.send("tp","SETUP")},oX1=function(a,z){if(a.protocolVersion_!=2||a.peerProtocolVersion_!=null&&a.peerProtocolVersion_!=2||z!=2){if(a.peerProtocolVersion_!=null&&a.peerProtocolVersion_!=1||z!=1)return;
a.send("tp","SETUP_ACK")}else a.send("tp","SETUP_ACK_NTPV2");a.setupAckSent_.fired_||a.setupAckSent_.callback(!0)},UIe=function(a,z){z>a.peerProtocolVersion_&&(a.peerProtocolVersion_=z);
a.peerProtocolVersion_==1&&(a.setupAckSent_.fired_||a.oneSidedHandshake_||a.setupAckSent_.callback(!0),a.peerEndpointId_=null)};
_.Z=YM.prototype;_.Z.connect=function(){var a=this.getWindow(),z=_.yx(a),I=$Iv[z];typeof I!=="number"&&(I=0);I==0&&_.Sg(a.postMessage?a:a.document,"message",dIw,!1,YM);$Iv[z]=I+1;this.initialized_=!0;this.maybeAttemptToConnect_()};
_.Z.maybeAttemptToConnect_=function(){var a=GeG(this.JSC$9984_channel_)==0;this.oneSidedHandshake_&&a||this.JSC$9984_channel_.isConnected()||this.isDisposed()?this.maybeAttemptToConnectTimer_.stop():(this.maybeAttemptToConnectTimer_.start(),WAJ(this))};
_.Z.send=function(a,z){var I=this.JSC$9984_channel_.peerWindowObject_;I&&(this.send=function(J,r){var P=this,N=this.JSC$9984_channel_.name;this.sendTimerId_=Sq(function(){P.sendTimerId_=0;try{var u=I.postMessage?I:I.document;u.postMessage&&u.postMessage(N+"|"+J+":"+r,P.peerHostname_)}catch(E){}},0)},this.send(a,z))};
_.Z.notifyConnected_=function(){var a=this.JSC$9984_channel_,z=this.protocolVersion_==1||this.peerProtocolVersion_==1?200:void 0;a.isConnected()||a.connectionDelay_&&a.connectionDelay_.isActive()||(a.state_=2,_.Y8(a.connectionDelay_),z!==void 0?(a.connectionDelay_=new _.bE(a.connectCb_,z),a.connectionDelay_.start()):(a.connectionDelay_=null,a.connectCb_()))};
_.Z.disposeInternal=function(){if(this.initialized_){var a=this.getWindow(),z=_.yx(a),I=$Iv[z];$Iv[z]=I-1;I==1&&_.FU(a.postMessage?a:a.document,"message",dIw,!1,YM)}this.sendTimerId_&&(_.IE.clearTimeout(this.sendTimerId_),this.sendTimerId_=0);_.Y8(this.JSC$9984_eventHandler_);delete this.JSC$9984_eventHandler_;_.Y8(this.maybeAttemptToConnectTimer_);delete this.maybeAttemptToConnectTimer_;this.setupAckReceived_.cancel();delete this.setupAckReceived_;this.setupAckSent_.cancel();delete this.setupAckSent_;
this.JSC$9984_connected_.cancel();delete this.JSC$9984_connected_;delete this.send;YM.superClass_.disposeInternal.call(this)};
var Xg1=function(a){a=a.split(",");a[1]=a[1]||null;return a};var R0E;_.eq=function(a){if(a.getValues&&typeof a.getValues=="function")return a.getValues();if(typeof Map!=="undefined"&&a instanceof Map||typeof Set!=="undefined"&&a instanceof Set)return Array.from(a.values());if(typeof a==="string")return a.split("");if(_.lG(a)){for(var z=[],I=a.length,J=0;J<I;J++)z.push(a[J]);return z}return _.x8.getValues(a)};
_.DIj=function(a){if(a.getKeys&&typeof a.getKeys=="function")return a.getKeys();if(!a.getValues||typeof a.getValues!="function"){if(typeof Map!=="undefined"&&a instanceof Map)return Array.from(a.keys());if(!(typeof Set!=="undefined"&&a instanceof Set)){if(_.lG(a)||typeof a==="string"){var z=[];a=a.length;for(var I=0;I<a;I++)z.push(I);return z}return _.x8.getKeys(a)}}};
R0E=function(a,z,I){if(a.forEach&&typeof a.forEach=="function")a.forEach(z,I);else if(_.lG(a)||typeof a==="string")Array.prototype.forEach.call(a,z,I);else for(var J=_.DIj(a),r=_.eq(a),P=r.length,N=0;N<P;N++)z.call(I,r[N],J&&J[N],a)};var h6G,PD,CR,kew,LAe,pgw,lTi,y2J,wgv;
_.cJ=function(a,z){this.JSC$9989_domain_=this.userInfo_=this.scheme_="";this.JSC$9989_port_=null;this.fragment_=this.JSC$9989_path_="";this.JSC$9989_ignoreCase_=!1;var I;a instanceof _.cJ?(this.JSC$9989_ignoreCase_=z!==void 0?z:a.JSC$9989_ignoreCase_,_.aR(this,a.scheme_),this.userInfo_=a.userInfo_,_.ja(this,a.JSC$9989_domain_),_.zo(this,a.JSC$9989_port_),_.IR(this,a.getPath()),_.J4(this,a.JSC$9989_queryData_.clone()),_.rG(this,a.fragment_)):a&&(I=_.kS(String(a)))?(this.JSC$9989_ignoreCase_=!!z,_.aR(this,
I[1]||"",!0),this.userInfo_=PD(I[2]||""),_.ja(this,I[3]||"",!0),_.zo(this,I[4]),_.IR(this,I[5]||"",!0),_.J4(this,I[6]||"",!0),_.rG(this,I[7]||"",!0)):(this.JSC$9989_ignoreCase_=!!z,this.JSC$9989_queryData_=new _.ZP(null,this.JSC$9989_ignoreCase_))};
_.cJ.prototype.toString=function(){var a=[],z=this.scheme_;z&&a.push(CR(z,LAe,!0),":");var I=this.JSC$9989_domain_;if(I||z=="file")a.push("//"),(z=this.userInfo_)&&a.push(CR(z,LAe,!0),"@"),a.push(_.L3(I).replace(/%25([0-9a-fA-F]{2})/g,"%$1")),I=this.JSC$9989_port_,I!=null&&a.push(":",String(I));if(I=this.getPath())this.JSC$9989_domain_&&I.charAt(0)!="/"&&a.push("/"),a.push(CR(I,I.charAt(0)=="/"?lTi:pgw,!0));(I=this.JSC$9989_queryData_.toString())&&a.push("?",I);(I=this.fragment_)&&a.push("#",CR(I,
wgv));return a.join("")};
_.cJ.prototype.resolve=function(a){var z=this.clone(),I=!!a.scheme_;I?_.aR(z,a.scheme_):I=!!a.userInfo_;I?z.userInfo_=a.userInfo_:I=!!a.JSC$9989_domain_;I?_.ja(z,a.JSC$9989_domain_):I=a.JSC$9989_port_!=null;var J=a.getPath();if(I)_.zo(z,a.JSC$9989_port_);else if(I=!!a.JSC$9989_path_){if(J.charAt(0)!="/")if(this.JSC$9989_domain_&&!this.JSC$9989_path_)J="/"+J;else{var r=z.getPath().lastIndexOf("/");r!=-1&&(J=z.getPath().slice(0,r+1)+J)}r=J;if(r==".."||r==".")J="";else if(_.t1(r,"./")||_.t1(r,"/.")){J=
_.Pp(r,"/");r=r.split("/");for(var P=[],N=0;N<r.length;){var u=r[N++];u=="."?J&&N==r.length&&P.push(""):u==".."?((P.length>1||P.length==1&&P[0]!="")&&P.pop(),J&&N==r.length&&P.push("")):(P.push(u),J=!0)}J=P.join("/")}else J=r}I?_.IR(z,J):I=a.JSC$9989_queryData_.toString()!=="";I?_.J4(z,a.JSC$9989_queryData_.clone()):I=!!a.fragment_;I&&_.rG(z,a.fragment_);return z};
_.cJ.prototype.clone=function(){return new _.cJ(this)};
_.aR=function(a,z,I){a.scheme_=I?PD(z,!0):z;a.scheme_&&(a.scheme_=a.scheme_.replace(/:$/,""));return a};
_.ja=function(a,z,I){a.JSC$9989_domain_=I?PD(z,!0):z;return a};
_.zo=function(a,z){if(z){z=Number(z);if(isNaN(z)||z<0)throw Error("Pa`"+z);a.JSC$9989_port_=z}else a.JSC$9989_port_=null;return a};
_.cJ.prototype.getPath=function(){return this.JSC$9989_path_};
_.IR=function(a,z,I){a.JSC$9989_path_=I?PD(z,!0):z;return a};
_.J4=function(a,z,I){z instanceof _.ZP?(a.JSC$9989_queryData_=z,mIJ(a.JSC$9989_queryData_,a.JSC$9989_ignoreCase_)):(I||(z=CR(z,y2J)),a.JSC$9989_queryData_=new _.ZP(z,a.JSC$9989_ignoreCase_));return a};
_.lE=function(a,z,I){a.JSC$9989_queryData_.set(z,I);return a};
_.Lo=function(a,z){return a.JSC$9989_queryData_.get(z)};
_.rG=function(a,z,I){a.fragment_=I?PD(z):z;return a};
_.Nk=function(a){_.lE(a,"zx",DJ());return a};
_.Rf=function(a,z){return a instanceof _.cJ?a.clone():new _.cJ(a,z)};
h6G=function(a,z){a instanceof _.cJ||(a=_.Rf(a));z instanceof _.cJ||(z=_.Rf(z));return a.resolve(z)};
PD=function(a,z){return a?z?decodeURI(a.replace(/%25/g,"%2525")):decodeURIComponent(a):""};
CR=function(a,z,I){return typeof a==="string"?(a=encodeURI(a).replace(z,kew),I&&(a=a.replace(/%25([0-9a-fA-F]{2})/g,"%$1")),a):null};
kew=function(a){a=a.charCodeAt(0);return"%"+(a>>4&15).toString(16)+(a&15).toString(16)};
LAe=/[#\/\?@]/g;pgw=/[#\?:]/g;lTi=/[#\?]/g;y2J=/[#\?@]/g;wgv=/#/g;_.ZP=function(a,z){this.count_=this.keyMap_=null;this.encodedQuery_=a||null;this.JSC$9990_ignoreCase_=!!z};
_.t4=function(a){a.keyMap_||(a.keyMap_=new Map,a.count_=0,a.encodedQuery_&&TEG(a.encodedQuery_,function(z,I){a.add(qY(z),I)}))};
_.Z=_.ZP.prototype;_.Z.getCount=function(){_.t4(this);return this.count_};
_.Z.add=function(a,z){_.t4(this);this.encodedQuery_=null;a=uu(this,a);var I=this.keyMap_.get(a);I||this.keyMap_.set(a,I=[]);I.push(z);this.count_+=1;return this};
_.Z.remove=function(a){_.t4(this);a=uu(this,a);return this.keyMap_.has(a)?(this.encodedQuery_=null,this.count_-=this.keyMap_.get(a).length,this.keyMap_.delete(a)):!1};
_.Z.clear=function(){this.keyMap_=this.encodedQuery_=null;this.count_=0};
_.Z.isEmpty=function(){_.t4(this);return this.count_==0};
_.Z.containsKey=function(a){_.t4(this);a=uu(this,a);return this.keyMap_.has(a)};
_.Z.containsValue=function(a){var z=this.getValues();return _.Um(z,a)};
_.Z.forEach=function(a,z){_.t4(this);this.keyMap_.forEach(function(I,J){I.forEach(function(r){a.call(z,r,J,this)},this)},this)};
_.Z.getKeys=function(){_.t4(this);for(var a=Array.from(this.keyMap_.values()),z=Array.from(this.keyMap_.keys()),I=[],J=0;J<z.length;J++)for(var r=a[J],P=0;P<r.length;P++)I.push(z[J]);return I};
_.Z.getValues=function(a){_.t4(this);var z=[];if(typeof a==="string")this.containsKey(a)&&(z=z.concat(this.keyMap_.get(uu(this,a))));else{a=Array.from(this.keyMap_.values());for(var I=0;I<a.length;I++)z=z.concat(a[I])}return z};
_.Z.set=function(a,z){_.t4(this);this.encodedQuery_=null;a=uu(this,a);this.containsKey(a)&&(this.count_-=this.keyMap_.get(a).length);this.keyMap_.set(a,[z]);this.count_+=1;return this};
_.Z.get=function(a,z){if(!a)return z;a=this.getValues(a);return a.length>0?String(a[0]):z};
_.MJE=function(a,z,I){a.remove(z);I.length>0&&(a.encodedQuery_=null,a.keyMap_.set(uu(a,z),_.RE(I)),a.count_+=I.length)};
_.ZP.prototype.toString=function(){if(this.encodedQuery_)return this.encodedQuery_;if(!this.keyMap_)return"";for(var a=[],z=Array.from(this.keyMap_.keys()),I=0;I<z.length;I++){var J=z[I],r=_.L3(J);J=this.getValues(J);for(var P=0;P<J.length;P++){var N=r;J[P]!==""&&(N+="="+_.L3(J[P]));a.push(N)}}return this.encodedQuery_=a.join("&")};
_.ZP.prototype.clone=function(){var a=new _.ZP;a.encodedQuery_=this.encodedQuery_;this.keyMap_&&(a.keyMap_=new Map(this.keyMap_),a.count_=this.count_);return a};
var uu=function(a,z){z=String(z);a.JSC$9990_ignoreCase_&&(z=z.toLowerCase());return z},mIJ=function(a,z){z&&!a.JSC$9990_ignoreCase_&&(_.t4(a),a.encodedQuery_=null,a.keyMap_.forEach(function(I,J){var r=J.toLowerCase();
J!=r&&(this.remove(J),_.MJE(this,r,I))},a));
a.JSC$9990_ignoreCase_=z};
_.ZP.prototype.extend=function(a){for(var z=0;z<arguments.length;z++)R0E(arguments[z],function(I,J){this.add(J,I)},this)};var E5=function(a,z){mi.call(this);for(var I=0,J;J=iWX[I];I++)if(J in a&&!/^https?:\/\//.test(a[J]))throw Error("Ra`"+a[J]+"`"+J);this.cfg_=a;this.name=this.cfg_.cn||vXi();this.JSC$9985_domHelper_=z||nB();this.deferredDeliveries_=[];this.peerLoadHandler_=new _.PJ(this);a.lpu=a.lpu||$0J(this.JSC$9985_domHelper_.getWindow().location.href)+"/robots.txt";a.ppu=a.ppu||$0J(a.pu||"")+"/robots.txt";qQ[this.name]=this;URe(window,"unload",c2I)||bN(window,"unload",c2I)};
_.rL(E5,mi);var Yfo=RegExp("^%*tp$"),qfX=RegExp("^%+tp$");_.Z=E5.prototype;_.Z.connectionDelay_=null;_.Z.peerWindowDeferred_=null;_.Z.transport_=null;_.Z.state_=1;_.Z.isConnected=function(){return this.state_==2};
_.Z.peerWindowObject_=null;_.Z.iframeElement_=null;_.Z.connect=function(a){this.connectCb_=a||_.Kx;this.state_==3&&(this.state_=1);this.peerWindowDeferred_?KAE(this.peerWindowDeferred_,this.continueConnection_):this.continueConnection_()};
_.Z.continueConnection_=function(){this.peerWindowDeferred_=null;this.cfg_.ifrid&&(this.iframeElement_=this.JSC$9985_domHelper_.getElement(this.cfg_.ifrid));if(this.iframeElement_){var a=this.iframeElement_.contentWindow;a||(a=window.frames[this.cfg_.ifrid]);this.peerWindowObject_=a}if(!this.peerWindowObject_){if(window==window.top)throw Error("Ta");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$9985_domHelper_);else switch(this.cfg_.tp){case 1:this.transport_=new YM(this,this.cfg_.ph,this.JSC$9985_domHelper_,!!this.cfg_.osh,this.cfg_.nativeProtocolVersion||2)}if(!this.transport_)throw Error("Sa");}for(this.transport_.connect();this.deferredDeliveries_.length>0;)this.deferredDeliveries_.shift()()};
_.Z.close=function(){this.peerWindowDeferred_&&(this.peerWindowDeferred_.cancel(),this.peerWindowDeferred_=null);this.deferredDeliveries_.length=0;this.peerLoadHandler_.removeAll();this.state_=3;_.Y8(this.transport_);this.connectCb_=this.transport_=null;_.Y8(this.connectionDelay_);this.connectionDelay_=null};
_.Z.send=function(a,z){if(this.isConnected()){try{var I=!!this.peerWindowObject_&&!this.peerWindowObject_.closed}catch(r){I=!1}if(I){_.md(z)&&(z=(0,_.vV)(z));I=this.transport_;var J=I.send;Yfo.test(a)&&(a="%"+a);a=a.replace(/[%:|]/g,encodeURIComponent);J.call(I,a,z)}else this.close()}};
_.Z.xpcDeliver=function(a,z,I){if(this.peerWindowDeferred_)this.deferredDeliveries_.push((0,_.HW)(this.xpcDeliver,this,a,z,I));else if(T1e(this,I)&&!this.isDisposed()&&this.state_!=3)if(a&&a!="tp")this.isConnected()&&(a=a.replace(/%[0-9a-f]{2}/gi,decodeURIComponent),a=qfX.test(a)?a.substring(1):a,a=this.getService(a,z))&&(z=OWl(z,a.objectPayload),z!=null&&a.callback(z));else switch(a=this.transport_,I=Xg1(z),z=I[1],I[0]){case "SETUP_ACK":UIe(a,1);a.setupAckReceived_.fired_||a.setupAckReceived_.callback(!0);
break;case "SETUP_ACK_NTPV2":a.protocolVersion_==2&&(UIe(a,2),a.setupAckReceived_.fired_||a.setupAckReceived_.callback(!0));break;case "SETUP":UIe(a,1);oX1(a,1);break;case "SETUP_NTPV2":a.protocolVersion_==2&&(I=a.peerProtocolVersion_,UIe(a,2),oX1(a,2),I!=1&&a.peerEndpointId_==null||a.peerEndpointId_==z||WAJ(a),a.peerEndpointId_=z)}};
var GeG=function(a){var z=a.cfg_.role;return typeof z==="number"?z:window.parent==a.peerWindowObject_?1:0},T1e=function(a,z){var I=a.cfg_.ph;
return _.NO(z==null?"":String(z))||_.NO(I==null?"":String(I))||z==a.cfg_.ph};
E5.prototype.disposeInternal=function(){this.close();this.iframeElement_=this.peerWindowObject_=null;delete qQ[this.name];_.Y8(this.peerLoadHandler_);delete this.peerLoadHandler_;E5.superClass_.disposeInternal.call(this)};
var c2I=function(){for(var a in qQ)_.Y8(qQ[a])},qQ={};var aHI=function(a,z){this.JSC$9999_win=a;this.allowAdsHttpEndpoint=z;this.wallElement=this.allowAdsCrossPageChannel=this.allowAdsPopup=null;this.JSC$9999_domHelper=nB(a);this.scrollManager=new EX1(a);this.accessibilityManager=new ZWX(a);e0w(this)},e0w=function(a){var z=function(){a.allowAdsPopup&&a.allowAdsPopup.style.setProperty("display","none","important");
a.wallElement.style.setProperty("display","","important");CFe(a.accessibilityManager);upG(a.accessibilityManager,a.wallElement.querySelector(".fc-dialog-container"),!1,!1,a.wallElement.querySelector(".fc-button-whitelist"));a.scrollManager.enableScrolling()};
a.allowAdsPopup=a.JSC$9999_domHelper.JSC$9286_createDom("DIV",{"class":"fc-whitelist-root"});a.allowAdsPopup.style.setProperty("display","none","important");a.JSC$9999_domHelper.appendChild(a.JSC$9999_domHelper.JSC$9284_document_.body,a.allowAdsPopup);var I=a.JSC$9999_domHelper.JSC$9286_createDom("DIV",{"class":"fc-dialog-overlay"});a.JSC$9999_domHelper.appendChild(a.allowAdsPopup,I);var J=a.JSC$9999_domHelper.JSC$9286_createDom("DIV",{"class":"fc-whitelist-dialog-wrapper",onclick:z});a.JSC$9999_domHelper.appendChild(a.allowAdsPopup,
J);I=a.JSC$9999_domHelper.JSC$9286_createDom("IFRAME");I.className="fc-whitelist-dialog";I.frameBorder="0";I.id="fc-whitelist-iframe";I.tabIndex="0";_.lj(I,a.allowAdsHttpEndpoint);a.JSC$9999_domHelper.appendChild(J,I);J={};J.pu=_.bj(a.allowAdsHttpEndpoint).toString();J.tp=1;J.cn="fc-whitelist-channel";J.ifrid=I.id;J.osh=!0;a.allowAdsCrossPageChannel=new E5(J);a.allowAdsCrossPageChannel.registerService("close",z);a.allowAdsCrossPageChannel.registerService("refresh",function(){a.JSC$9999_win.location.reload()});
a.allowAdsCrossPageChannel.registerService("resize",function(r){if(r){var P=a.allowAdsPopup.querySelector(".fc-whitelist-dialog");r.width&&P.style.setProperty("width",r.width,"important");r.height&&P.style.setProperty("height",r.height,"important")}},!0);
a.allowAdsCrossPageChannel.connect()};
aHI.prototype.tearDown=function(){this.allowAdsPopup&&(this.JSC$9999_domHelper.removeNode(this.allowAdsPopup),this.allowAdsPopup=null);this.allowAdsCrossPageChannel&&this.allowAdsCrossPageChannel.close()};/*
 gapi.loader.OBJECT_CREATE_TEST_OVERRIDE &&*/
var BD=window,O5=document,jLi=BD.location,zxX=function(){},IHo=/\[native code\]/,fR=function(a,z,I){return a[z]=a[z]||I},JDI=function(a){a=a.sort();
for(var z=[],I=void 0,J=0;J<a.length;J++){var r=a[J];r!=I&&z.push(r);I=r}return z},A4=function(){var a;
if((a=Object.create)&&IHo.test(a))a=a(null);else{a={};for(var z in a)a[z]=void 0}return a},s5=fR(BD,"gapi",{});var nR={};nR=fR(BD,"___jsl",A4());fR(nR,"I",0);fR(nR,"hel",10);var rDe=function(){var a=jLi.href;if(nR.dpo)var z=nR.h;else{z=nR.h;var I=RegExp("([#].*&|[#])jsh=([^&#]*)","g"),J=RegExp("([?#].*&|[?#])jsh=([^&#]*)","g");if(a=a&&(I.exec(a)||J.exec(a)))try{z=decodeURIComponent(a[2])}catch(r){}}return z},P1w=function(a){var z=fR(nR,"PQ",[]);
nR.PQ=[];var I=z.length;if(I===0)a();else for(var J=0,r=function(){++J===I&&a()},P=0;P<I;P++)z[P](r)},Z3o=function(a){return fR(fR(nR,"H",A4()),a,A4())};var KR=function(a){this.JSC$10001_obj_=a};
KR.prototype.value=function(){return this.JSC$10001_obj_};
KR.prototype.getWidth=function(){return this.JSC$10001_obj_.width};
KR.prototype.getHeight=function(){return this.JSC$10001_obj_.height};
KR.prototype.getStyle=function(){return this.JSC$10001_obj_.style};var C1e=function(a){this.JSC$10004_obj_=a||{}};
_.Z=C1e.prototype;_.Z.value=function(){return this.JSC$10004_obj_};
_.Z.setUrl=function(a){this.JSC$10004_obj_.url=a;return this};
_.Z.getUrl=function(){return this.JSC$10004_obj_.url};
_.Z.getStyle=function(){return this.JSC$10004_obj_.style};
_.Z.getId=function(){return this.JSC$10004_obj_.id};
_.Z.getContext=function(){return this.JSC$10004_obj_.context};
var Nqw=function(a){a.JSC$10004_obj_.attributes=a.JSC$10004_obj_.attributes||{};return new KR(a.JSC$10004_obj_.attributes)};var tLw=function(){C1e.apply(this,arguments)};
_.b(tLw,C1e);var uwv=fR(nR,"perf",A4());fR(uwv,"g",A4());var ESi=fR(uwv,"i",A4());fR(uwv,"r",[]);A4();A4();var gSO=function(a,z,I){z&&z.length>0&&(z=Bqf(z),I&&I.length>0&&(z+="___"+Bqf(I)),z.length>28&&(z=z.substr(0,28)+(z.length-28)),I=z,z=fR(ESi,"_p",A4()),fR(z,I,A4())[a]=(new Date).getTime(),z=uwv.r,typeof z==="function"?z(a,"_p",I):z.push([a,"_p",I]))},Bqf=function(a){return a.join("__").replace(/\./g,"_").replace(/\-/g,"_").replace(/,/g,"_")};var O3v=A4(),fHJ=[],F6=function(a){throw Error("Ua`"+a);};
fHJ.push(["jsl",function(a){for(var z in a)if(Object.prototype.hasOwnProperty.call(a,z)){var I=a[z];typeof I=="object"?nR[z]=fR(nR,z,[]).concat(I):fR(nR,z,I)}if(z=a.u)a=fR(nR,"us",[]),a.push(z),(z=/^https:(.*)$/.exec(z))&&a.push("http:"+z[1])}]);
var ADw=/^(\/[a-zA-Z0-9_\-]+)+$/,sLJ=[/\/amp\//,/\/amp$/,/^\/amp$/],nSf=/^[a-zA-Z0-9\-_\.,!]+$/,KsJ=/^gapi\.loaded_[0-9]+$/,Fs1=/^[a-zA-Z0-9,._-]+$/,VLv=function(a,z,I,J,r){var P=a.split(";"),N=P.shift(),u=O3v[N],E=null;u?E=u(P,z,I,J):F6("no hint processor for: "+N);E||F6("failed to generate load url");z=E;I=z.match(H3w);(J=z.match(b3v))&&J.length===1&&hxO.test(z)&&I&&I.length===1||F6("failed sanity: "+a);try{a="?";if(r&&r.length>0){QEm(r);var O=r.join(",");E=E+"?le="+O;a="&"}if(nR.rol){var f=nR.ol;
f&&f.length&&(E=""+E+a+"ol="+f.length)}}catch(A){}return E},i3e=function(a,z,I,J){a=QLo(a);
KsJ.test(I)||F6("invalid_callback");z=Sej(z);J=J&&J.length?Sej(J):null;var r=function(P){return encodeURIComponent(P).replace(/%2C/g,",")};
return[encodeURIComponent(a.pathPrefix).replace(/%2C/g,",").replace(/%2F/g,"/"),"/k=",r(a.version),"/m=",r(z),J?"/exm="+r(J):"","/rt=j/sv=1/d=1/ed=1",a.activeMods?"/am="+r(a.activeMods):"",a.resourceSig?"/rs="+r(a.resourceSig):"",a.zcms?"/t="+r(a.zcms):"","/cb=",r(I)].join("")},QLo=function(a){a.charAt(0)!=="/"&&F6("relative path");
for(var z=a.substring(1).split("/"),I=[];z.length;){a=z.shift();if(!a.length||a.indexOf(".")==0)F6("empty/relative directory");else if(a.indexOf("=")>0){z.unshift(a);break}I.push(a)}a={};for(var J=0,r=z.length;J<r;++J){var P=z[J].split("="),N=decodeURIComponent(P[0]),u=decodeURIComponent(P[1]);P.length==2&&N&&u&&(a[N]=a[N]||u)}z="/"+I.join("/");ADw.test(z)||F6("invalid_prefix");I=0;for(J=sLJ.length;I<J;++I)sLJ[I].test(z)&&F6("invalid_prefix");I=xYJ(a,"k",!0);J=xYJ(a,"am");r=xYJ(a,"rs");a=xYJ(a,"t");
return{pathPrefix:z,version:I,activeMods:J,resourceSig:r,zcms:a}},Sej=function(a){for(var z=[],I=0,J=a.length;I<J;++I){var r=a[I].replace(/\./g,"_").replace(/-/g,"_");
Fs1.test(r)&&z.push(r)}return z.join(",")},xYJ=function(a,z,I){a=a[z];
!a&&I&&F6("missing: "+z);if(a){if(nSf.test(a))return a;F6("invalid: "+z)}return null},hxO=/^https?:\/\/[a-z0-9_.-]+\.google(rs)?\.com(:\d+)?\/[a-zA-Z0-9_.,!=\-\/]+$/,b3v=/\/cb=/g,H3w=/\/\//g;
O3v.m=function(a,z,I,J){(a=a[0])||F6("missing_hint");return"https://apis.google.com"+i3e(a,z,I,J)};
var vSl=decodeURI("%73cript"),GZw=/^[-+_0-9\/A-Za-z]+={0,2}$/,$Yi=function(a,z){for(var I=[],J=0;J<a.length;++J){var r=a[J],P;if(P=r){a:{for(P=0;P<z.length;P++)if(z[P]===r)break a;P=-1}P=P<0}P&&I.push(r)}return I},X3X=function(){var a=nR.nonce;
return a!==void 0?a&&a===String(a)&&a.match(GZw)?a:nR.nonce=null:O5.querySelector?(a=O5.querySelector("script[nonce]"))?(a=a.nonce||a.getAttribute("nonce")||"",a&&a===String(a)&&a.match(GZw)?nR.nonce=a:nR.nonce=null):null:null},WsX=function(a){if(O5.readyState!="loading")Tqe(a);
else{var z=X3X(),I="";z!==null&&(I=' nonce="'+z+'"');a="<"+vSl+' src="'+encodeURI(a)+'"'+I+"></"+vSl+">";O5.write(dYv?dYv.createHTML(a):a)}},Tqe=function(a){var z=O5.createElement(vSl);
z.setAttribute("src",dYv?dYv.createScriptURL(a):a);a=X3X();a!==null&&z.setAttribute("nonce",a);z.async="true";(a=O5.getElementsByTagName(vSl)[0])?a.parentNode.insertBefore(z,a):(O5.head||O5.body||O5.documentElement).appendChild(z)},UY1=function(a,z,I){oS1(function(){var J=z===rDe()?fR(s5,"_",A4()):A4();
J=fR(Z3o(z),"_",J);a(J)},I)},gV0=function(a,z){var I=z||{};
typeof z=="function"&&(I={},I.callback=z);var J=(z=I)&&z._c;if(J)for(var r=0;r<fHJ.length;r++){var P=fHJ[r][0],N=fHJ[r][1];N&&Object.prototype.hasOwnProperty.call(J,P)&&N(J[P],a,z)}z=[];a?z=a.split(":"):I.features&&(z=I.features);if(!(a=I.h)&&(a=rDe(),!a))throw Error("Va");DYf(z||[],I,a)},DYf=function(a,z,I){a=JDI(a)||[];
var J=z.callback,r=z.config,P=z.timeout,N=z.ontimeout,u=z.onerror,E=void 0;typeof u=="function"&&(E=u);var O=null,f=!1;if(P&&!N||!P&&N)throw"Timeout requires both the timeout parameter and ontimeout parameter to be set";u=fR(Z3o(I),"r",[]).sort();var A=fR(Z3o(I),"L",[]).sort(),n=nR.le||[],F=[].concat(u),h=function(q,m){if(f)return 0;BD.clearTimeout(O);A.push.apply(A,v);var M=((s5||{}).config||{}).update;M?M(r):r&&fR(nR,"cu",[]).push(r);if(m){gSO("me0",q,F);try{UY1(m,I,E)}finally{gSO("me1",q,F)}}return 1};
P>0&&(O=BD.setTimeout(function(){f=!0;N()},P));
var v=$Yi(a,A);if(v.length){v=$Yi(a,u);var d=fR(nR,"CP",[]),W=d.length;d[W]=function(q){if(!q)return 0;gSO("ml1",v,F);var m=function(y){d[W]=null;h(v,q)&&P1w(function(){J&&J();y()})},M=function(){var y=d[W+1];
y&&y()};
W>0&&d[W-1]?d[W]=function(){m(M)}:m(M)};
if(v.length){var l="loaded_"+nR.I++;s5[l]=function(q){d[W](q);s5[l]=null};
a=VLv(I,v,"gapi."+l,u,n);u.push.apply(u,v);gSO("ml0",v,F);z.sync||BD.___gapisync?WsX(a):Tqe(a)}else d[W](zxX)}else h(v)&&J&&J()},Rxi;
var Ls1=null,lH1=_.IE.trustedTypes;if(lH1&&lH1.createPolicy){try{Ls1=lH1.createPolicy("goog#gapi",{createHTML:mjG,createScript:mjG,createScriptURL:mjG})}catch(a){_.IE.console&&_.IE.console.error(a.message)}Rxi=Ls1}else Rxi=Ls1;var dYv=Rxi,oS1=function(a,z){if(nR.hee&&nR.hel>0)try{return a()}catch(I){z&&z(I),nR.hel--,gV0("debug_error",function(){try{window.___jsl.hefn(I)}catch(J){throw I;}})}else try{return a()}catch(I){throw z&&z(I),I;
}},p3v=s5.load;
p3v&&fR(nR,"ol",[]).push(p3v);s5.load=function(a,z){return oS1(function(){return gV0(a,z)})};var M6M;var mYO=function(a,z){var I=I||[];this.serviceId_=a;this.moduleId_=z||null;this.dependencies_=[];w3E(this,I)};
mYO.prototype.toString=function(){return this.serviceId_};
mYO.prototype.getModuleId=function(){return this.moduleId_};
var w3E=function(a,z){var I=!1;I=I===void 0?!1:I;a.dependencies_=a.dependencies_.concat(z);if(I){if(!a.moduleId_)throw Error("Wa`"+a.serviceId_);z.map(function(J){return J.getModuleId()}).forEach(function(J){cP3(function(r){r.addExtraEdge(a.moduleId_,J)})})}};var j_M=new mYO("MpJwZc","MpJwZc");var IFm=new _.fp("a"),zg7=function(a,z,I){_.AH.call(this,a,z);this.node=z;this.kind=I};
_.b(zg7,_.AH);var yDl=function(){this.JSC$10017_keys_={};this.urlPrefix_="";this.JSC$10017_queryData_={}};
yDl.prototype.toString=function(){var a=this.urlPrefix_+kZi(this),z=_.By(this.JSC$10017_queryData_),I="";z!=""&&(I="?"+z);return a+I};
var MLJ=function(a){a=HD(a,"md");return!!a&&a!=="0"},kZi=function(a){var z=[],I=(0,_.HW)(function(J){this.JSC$10017_keys_[J]!==void 0&&z.push(J+"="+this.JSC$10017_keys_[J])},a);
MLJ(a)?(I("md"),I("k"),I("ck"),I("am"),I("rs"),I("gssmodulesetproto"),I("slk"),I("dti")):(I("sdch"),I("k"),I("ck"),I("am"),I("rt"),"d"in a.JSC$10017_keys_||bu(a,"d","0"),I("d"),I("exm"),I("excm"),(a.JSC$10017_keys_.excm||a.JSC$10017_keys_.exm)&&z.push("ed=1"),I("im"),I("dg"),I("sm"),HD(a,"br")!="1"&&HD(a,"br")!="0"||I("br"),I("br-d"),HD(a,"rb")=="1"&&I("rb"),HD(a,"zs")!=="0"&&I("zs"),cDO(a)!==""&&I("wt"),I("gssmodulesetproto"),I("ujg"),I("sp"),I("rs"),I("cb"),I("ee"),I("slk"),I("dti"),I("m"));return z.join("/")},
HD=function(a,z){return a.JSC$10017_keys_[z]?a.JSC$10017_keys_[z]:null},bu=function(a,z,I){I?a.JSC$10017_keys_[z]=I:delete a.JSC$10017_keys_[z]},Yeo=function(a,z){a.urlPrefix_=z},qeE=function(a,z){z&&z.length>0?(z.sort(),bu(a,"exm",z.join(","))):bu(a,"exm",null)},exw=function(a,z){z&&z.length>0?(z.sort(),bu(a,"excm",z.join(","))):bu(a,"excm",null)},ave=function(a){return(a=HD(a,"m"))?a.split(","):[]},cDO=function(a){switch(HD(a,"wt")){case "0":return"0";
case "1":return"1";case "2":return"2";default:return""}},jbG=function(a,z){var I=Object.keys(z).filter(function(J){return!!Object.keys(z[J]).length}).map(function(J){var r=Object.keys(z[J]);
r.length>1&&r.sort();return J+":"+r.join(",")});
I.sort();bu(a,"ee",I.join(";"))},Ll7=function(a){var z=HD(a,"ee");
if(!z)return{};a={};z=_.C(z.split(";"));for(var I=z.next();!I.done;I=z.next()){var J=_.C(I.value.split(":"));I=J.next().value;J=J.next().value;a[I]={};J=_.C(J.split(","));for(var r=J.next();!r.done;r=J.next())a[I][r.value]=!0}return a},zZi=function(a){delete a.JSC$10017_keys_.m;
delete a.JSC$10017_keys_.exm;delete a.JSC$10017_keys_.ed};
yDl.prototype.clone=function(){var a=new yDl;a.JSC$10017_keys_=Object.assign({},this.JSC$10017_keys_);a.urlPrefix_=this.urlPrefix_;a.JSC$10017_queryData_=Object.assign({},this.JSC$10017_queryData_);return a};
var lZ1=function(a,z){z=z===void 0?!0:z;var I=Iv1(a),J=new yDl,r=_.kS(I)[5];_.x8.forEach(JPv,function(N){var u=r.match("/"+N+"=([^/]+)");u&&bu(J,N,u[1])});
var P="";P=a.indexOf("_/ss/")!=-1?"_/ss/":"_/js/";Yeo(J,a.substr(0,a.indexOf(P)+P.length));if(!z)return J;(a=_.kS(I)[6]||null)&&TEG(a,function(N,u){J.JSC$10017_queryData_[N]=u});
return J},UVE=function(a){a=_.ul(Iv1(a));
return a===null?!1:RegExp("(/_/js/)|(/_/ss/)","g").test(a)?/\/k=/.test(a):!1},Iv1=function(a){return a.startsWith("https://uberproxy-pen-redirect.corp.google.com/uberproxy/pen?url=")?a.substr(65):a},JPv={ROW_KEY:"k",
CSS_ROW_KEY:"ck",MODULES:"m",EXCLUDED_MODULES:"exm",EXCLUDED_CSS_MODULES:"excm",ACTIVE_MODS:"am",MASKED_MODS:"mm",RESPONSE_TYPE:"rt",INCLUDE_DEPS:"d",EXCLUDED_DEPS:"ed",SPEC_VERSION:"sv",DEOBFUSCATION_VERSION:"deob",CALLBACK:"cb",SIGNATURE:"rs",SDCH:"sdch",INSERT_MARKERS:"im",DEPENDENCY_GRAPH:"dg",ENABLE_BROTLI_ENCODING:"br",ENABLE_BROTLI_DICTIONARY_ENCODING:"br-d",ENABLE_RBROTLI_ENCODING:"rb",ZSTD_LEVEL:"zs",WRAP_IN_TRY:"wt",EXTRA_EDGES:"ee",SOURCE_MAP:"sm",METADATA:"md",GSS_MODULE_SET_PROTO:"gssmodulesetproto",
USE_JS_GRAPH_FOR_COMBINED_REQUESTS:"ujg",USE_INSTALL_CSS_PROTO:"sp",SIDELOADING_ROWKEY:"slk",DISABLE_TOGGLES_INIT:"dti"},rP1=RegExp("^loaded_(g|h)?[_\\d]+$");_.h4=function(a){this.JSC$10029_id_=a;this.opts={}};
_.h4.prototype.JSC$10031_setLabel=function(a){this.label_=a||void 0;return this};
_.h4.prototype.addUploadMetadata=function(a,z){var I=this.opts.data||{};I[a]=z;this.opts.data=I;return this};
var PlJ=function(a){var z=_.x8.filter(a.opts,function(I){return I!==null});
z=_.x8.isEmpty(z)?null:z;a=[a.JSC$10029_id_,a.label_,z];z=Fdp(a);return a=a.slice(0,z+1)};
_.h4.prototype.toString=function(){var a=PlJ(this);return"("+_.vH(a,function(z){return JSON.stringify(z)}).join(",")+")"};
_.h4.prototype.getId=function(){return this.JSC$10029_id_};
_.h4.prototype.getOptions=function(){return _.x8.clone(this.opts)};var VB=function(){_.h4.call(this,"image-search")};
_.b(VB,_.h4);VB.prototype.setSize=function(a){this.opts.imgsz=a;return this};
VB.prototype.JSC$10031_setLabel=function(a){_.h4.prototype.JSC$10031_setLabel.call(this,a);return this};
VB.prototype.addUploadMetadata=function(a,z){_.h4.prototype.addUploadMetadata.call(this,a,z);return this};var QB=function(){_.h4.call(this,"maps")};
_.b(QB,_.h4);QB.prototype.setZoom=function(a){this.opts.zoom=a;return this};
QB.prototype.JSC$10031_setLabel=function(a){_.h4.prototype.JSC$10031_setLabel.call(this,a);return this};
QB.prototype.addUploadMetadata=function(a,z){_.h4.prototype.addUploadMetadata.call(this,a,z);return this};_.Sa=function(){_.h4.call(this,"photos")};
_.b(_.Sa,_.h4);_.Sa.prototype.JSC$10031_setLabel=function(a){_.h4.prototype.JSC$10031_setLabel.call(this,a);return this};
_.Sa.prototype.addUploadMetadata=function(a,z){_.h4.prototype.addUploadMetadata.call(this,a,z);return this};var iu=function(){_.h4.call(this,"url")};
_.b(iu,_.h4);var Z1i=function(){var a=new iu;a.opts.type="video";a.opts.site="youtube.com";return a};
iu.prototype.JSC$10031_setLabel=function(a){_.h4.prototype.JSC$10031_setLabel.call(this,a);return this};
iu.prototype.addUploadMetadata=function(a,z){_.h4.prototype.addUploadMetadata.call(this,a,z);return this};var xT=function(){_.h4.call(this,"video-search")};
_.b(xT,_.h4);var Clj=function(){var a=new xT;a.opts.site="youtube.com";return a};
xT.prototype.JSC$10031_setLabel=function(a){_.h4.prototype.JSC$10031_setLabel.call(this,a);return this};
xT.prototype.addUploadMetadata=function(a,z){_.h4.prototype.addUploadMetadata.call(this,a,z);return this};var NMI=function(){_.h4.call(this,"web")};
_.b(NMI,_.h4);NMI.prototype.JSC$10031_setLabel=function(a){_.h4.prototype.JSC$10031_setLabel.call(this,a);return this};
NMI.prototype.addUploadMetadata=function(a,z){_.h4.prototype.addUploadMetadata.call(this,a,z);return this};var vD=function(){this.items_=[];this.opts={}},t6w=function(a){switch(a){case "image-search":return new VB;
case "maps":return new QB;case "photos":return new _.Sa;case "url":return new iu;case "video-search":return new xT;case "web":return new NMI}return new _.h4(a)};
vD.prototype.addView=function(a){this.items_.push(typeof a==="string"?t6w(a):a);return this};
var unI=function(a){return"("+_.vH(a.items_,function(z){return z.toString()}).join(",")+")"};
vD.prototype.toString=function(){return unI(this)};
vD.prototype.getViews=function(a,z){z=z===void 0?[]:z;for(var I=this.items_,J=0;J<I.length;J++){var r=I[J];r instanceof vD?r.getViews(a,z):r.getId()==a&&z.push(r)}return z};
vD.prototype.getOptions=function(){return _.x8.clone(this.opts)};var $l=function(a){this.basePickerUrl_=a||"https://docs.google.com/picker";this.nav_=new vD};
$l.prototype.nav_=null;$l.prototype.addView=function(a){this.nav_.addView(a);return this};
$l.prototype.getBaseUrl=function(){return this.basePickerUrl_};
$l.prototype.getViews=function(a){return this.nav_.getViews(a)};
_.Eje=function(a,z){a.callback_=z;return a};var BMe=new Map;BMe.set("application/vnd.google-apps.document","application/vnd.google-gsuite.document-blob");BMe.set("application/vnd.google-apps.spreadsheet","application/vnd.google-gsuite.spreadsheet-blob");BMe.set("application/vnd.google-apps.presentation","application/vnd.google-gsuite.presentation-blob");var gjj=new Set;gjj.add("application/vnd.google-apps.kix");gjj.add("application/vnd.google-apps.ritz");gjj.add("application/vnd.google-apps.punch");var QbO=function(a,z,I){var J=I&&_.vb(I,1);I=O1o(I);var r=a[0].getId();switch(_.GL(r,2)){case 13:return fvo(a,z,J,I);case 3:return APG(a,z,J,I);case 10:return sbf(a,z,J,I);case 27:return sbf(a,z,J,I);case 12:return njj(a,z);case 2:return K5I(a,z,J,I);case 5:return F5o(a,z,J,I);case 9:return H1w(a,z,J,I);case 6:return b1J(a,z,J,I);case 25:return hZf(a,z,J,I);case 1:return _.nn(a[0],YGG,26)?V6f(a,z,J,I):sbf(a,z,J,I);default:return{}}},b1J=function(a,z,I,J){a=a.map(function(r){return{id:r.getId().getId(),
serviceId:"youtube",name:r.getName(),description:_.vb(r,3),type:Go(r),lastEditedUtc:_.ceJ(_.JC(r,_.T0,16)).getTime(),iconUrl:"https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png",url:r.getUrl(),embedUrl:_.vb(r,13),thumbnails:$T(eN(r))}});
return{action:z,docs:a,viewToken:J,view:I||"youtube",v2Translated:!0}},K5I=function(a,z,I,J){var r=a.map(function(P){var N=P.getId().getId(),u=_.vb(P,7),E=P.getName(),O=Go(P),f=_.ceJ(_.JC(P,_.T0,12)).getTime(),A=P.getUrl(),n=Number(Npx(P)),F=_.vb(P,3),h=_.vb(P,11),v=$T(eN(P));
var d=_.JC(P,aH,21);d=_.SQ(d,1);var W=_.JC(P,aH,21);W=_.vb(W,10);var l=_.vb(P,13);var q=_.JC(P,aH,21);q=_.SQ(q,9);var m=_.JC(P,aH,21);m=_.vb(m,11);N={id:N,serviceId:"docs",mimeType:u,name:E,type:O,lastEditedUtc:f,url:A,sizeBytes:n,description:F,iconUrl:h,thumbnails:v,isShared:d,downloadUrl:W,embedUrl:l,copyable:q,resourceKey:m};u=_.JC(P,aH,21);_.SQ(u,12)&&(N.uploadState="success",N.isNew=!0);u=_.JC(P,aH,21);_.nn(u,cr,3)&&(P=_.JC(P,aH,21),P=_.JC(P,cr,3),_.nn(P,kB,2)&&(u=vW(P.getDuration().getSeconds()),
E=P.getDuration(),E=_.za(E,2),N.duration=u+E/1E9),N.aspectRatio=P.getAspectRatio());return N});
return{action:z,docs:r,viewToken:J,view:I||"all",extraUserInputs:Szv(a),v2Translated:!0}},F5o=function(a,z,I,J){a=a.map(function(r){var P=_.JC(r,PjI,15);
P=_.JC(P,MH,1);AJ(r,10,MH,P);return{id:r.getId().getId(),serviceId:"web",mimeType:_.vb(r,7),name:r.getName(),type:Go(r),url:r.getUrl(),description:_.vb(r,3),iconUrl:"https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png",thumbnails:$T(eN(r))}});
return{action:z,docs:a,viewToken:J,view:I||"image-search",v2Translated:!0}},H1w=function(a,z,I,J){a=a.map(function(r){return{serviceId:"url",
name:eN(r)[0].getUrl().split("/").pop(),type:Go(r),mimeType:_.vb(r,7),url:r.getUrl(),description:_.vb(r,3),iconUrl:"https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png",thumbnails:$T(eN(r))}});
return{action:z,docs:a,viewToken:J,view:I||"url",v2Translated:!0}},V6f=function(a,z,I,J){a=a.map(function(r){return{id:r.getId().getId(),
serviceId:"picasa",name:r.getName(),type:Go(r),description:_.vb(r,3),iconUrl:"https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png",thumbnails:$T(eN(r))}});
return{action:z,docs:a,viewToken:J,view:I||"webcam",v2Translated:!0}},sbf=function(a,z,I,J){return{action:z,
docs:a.map(i1o),viewToken:J,view:xef(I||"upload",a),extraUserInputs:Szv(a),v2Translated:!0}},xef=function(a,z){return z.some(function(I){var J;
return((J=_.JC(I,YB,30))==null?void 0:_.GL(J,3))===9})?a+"/gmailphotos":a},APG=function(a,z,I,J){var r=a.map(function(P){var N={id:P.getId().getId(),
serviceId:"picasa",mimeType:_.vb(P,7),name:P.getName(),type:Go(P),lastEditedUtc:_.ceJ(_.JC(P,_.T0,12)).getTime(),url:P.getUrl(),sizeBytes:Number(Npx(P)),description:_.vb(P,3),iconUrl:"https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png",thumbnails:$T(eN(P)),mediaKey:P.getId().getId(),parentId:_.vb(P,4)},u,E=(u=_.JC(P,axi,18))==null?void 0:_.JC(u,eil,3);E&&(N.latitude=xR(E,1),N.longitude=xR(E,2));var O;P=(O=_.JC(P,axi,18))==null?void 0:ie(O,6);O=P!=null?vW(P):void 0;O&&(N.version=
O);return N});
return{action:z,docs:r,viewToken:J,view:I||"photos",extraUserInputs:Szv(a),v2Translated:!0}},fvo=function(a,z,I,J){a=a.map(function(r){return{id:r.getId().getId(),
serviceId:"et",name:eN(r)[0].getUrl().split("/").pop(),description:_.vb(r,3),type:"et",iconUrl:"https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png",thumbnails:$T(eN(r),"etjpg")}});
return{action:z,docs:a,viewToken:J,view:I||"et",v2Translated:!0}},hZf=function(a,z,I,J){a=a.map(function(r){var P=r.getId().getId(),N=J["2"];
return{id:P,serviceId:N.type!=="gmail_themes"&&N.parent==="6226252643674576769"?"picasa":"static_themes",name:r.getName(),mimeType:_.vb(r,7),type:Go(r),description:_.vb(r,3),iconUrl:"https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png",url:r.getUrl(),embedUrl:r.getUrl(),thumbnails:$T(eN(r))}});
return{action:z,docs:a,viewToken:J,view:I||"photos",v2Translated:!0}},njj=function(a,z){a=a.map(function(I){var J=_.JC(I,qGI,27);
J=_.pZ(J,1,_.gE,_.jW())[0];return{id:I.getId().getId(),serviceId:"contacts",mimeType:_.vb(I,7),name:I.getName(),description:_.vb(I,3),url:"mailto:"+J,thumbnail:[{url:_.vb(I,11)}],email:J}});
return{action:z,docs:a,view:"contacts",v2Translated:!0}},O1o=function(a){if(!a)return{};
var z=_.vb(a,3);z=z&&JSON.parse(z)||{};return{0:_.vb(a,1),1:_.vb(a,2),2:z}},$T=function(a,z){z=z===void 0?"":z;
if(!a.length)return null;z=="etjpg"&&(a=a.filter(function(I){return I.getUrl().includes("w1200-h300")}));
return a.map(function(I){return{url:I.getUrl(),height:I.getHeight(),width:I.getWidth(),type:z}})},Szv=function(a){return{isAttachment:a.some(function(z){return _.SQ(z,31)})}},i1o=function(a){var z,I={id:(z=a.getId())==null?void 0:z.getId(),
serviceId:vjO(a),mimeType:_.vb(a,7),name:a.getName(),type:Go(a),sizeBytes:Number(Npx(a)),description:_.vb(a,3),iconUrl:"https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png",thumbnails:$T(eN(a)),isNew:!0};if(z=_.JC(a,YB,30)){I.dataUrl=_.vb(z,1)||null;a:{var J=_.JC(a,YB,30);switch(_.GL(J,3)){case 9:J=_.TL(J,JxJ,2,qH);J={remoteRefs:J&&_.vb(J,1)};break a;case 10:case 15:J=_.TL(J,IxG,4,qH);var r=eN(a);J={photo_id:J&&_.vb(J,1),media_key:a.getId().getId(),media_type:_.GL(a,6)===1?1:2,image_url:r&&
r[0].getUrl(),width:r&&String(r[0].getWidth()),height:r&&String(r[0].getHeight())};break a}J=null}I.uploadMetadata=J;I.uploadId=_.vb(z,9)||null;I.uploadState=G9O(z)||null}(J=z&&_.TL(z,IxG,4,qH))&&(I.id=_.vb(J,1));(J=z&&_.TL(z,rxG,5,qH))&&(I.contentId=_.vb(J,1));(J=z&&_.TL(z,jtE,7,qH))&&(I.contentId=_.vb(J,1));(J=z&&_.TL(z,z7I,6,qH))&&(I.contentId=_.vb(J,1));(z==null?void 0:_.GL(z,3))===1&&(I.mediaKey=a.getId().getId());return I},vjO=function(a){var z;
switch(((z=_.JC(a,YB,30))==null?void 0:_.GL(z,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},Go=function(a){switch(_.GL(a,6)){case 1:case 21:return"photo";
case 2:return"video";case 6:return"folder";case 13:return"calendar";case 14:return"album";case 19:return"contact";case 3:case 4:case 5:case 7:case 12:return _.vb(a,7).startsWith("application/vnd.google-apps.")?"document":"file";default:return"file"}},G9O=function(a){switch(a==null?void 0:_.GL(a,8)){case 0:return"default";
case 1:return"canceled";case 2:return"error";case 3:return"running";case 4:return"scheduled";case 5:return"success"}return null};var dew,$eI,XyI,TMw;_.W5j=function(a,z){var I=z||{};z=I.document||document;var J=_.bj(a).toString(),r=(new Vj(z)).createElement("SCRIPT"),P={script_:r,timeout_:void 0},N=new yD($eI,P),u=null,E=I.timeout!=null?I.timeout:5E3;E>0&&(u=window.setTimeout(function(){XyI(r,!0);N.errback(new TMw(1,"Timeout reached for loading script "+J))},E),P.timeout_=u);
r.onload=r.onreadystatechange=function(){r.readyState&&r.readyState!="loaded"&&r.readyState!="complete"||(XyI(r,I.cleanupWhenDone||!1,u),N.callback(null))};
r.onerror=function(){XyI(r,!0,u);N.errback(new TMw(0,"Error while loading script "+J))};
P=I.attributes||{};_.x8.extend(P,{type:"text/javascript",charset:"UTF-8"});LXf(r,P);_.c9(r,a);dew(z).appendChild(r);return N};
dew=function(a){var z=A7("HEAD",a);return z&&z.length!==0?z[0]:a.documentElement};
$eI=function(){if(this&&this.script_){var a=this.script_;a&&a.tagName=="SCRIPT"&&XyI(a,!0,this.timeout_)}};
XyI=function(a,z,I){I!=null&&_.IE.clearTimeout(I);a.onload=function(){};
a.onerror=function(){};
a.onreadystatechange=function(){};
z&&window.setTimeout(function(){_.fo(a)},0)};
TMw=function(a,z){var I="Jsloader error (code #"+a+")";z&&(I+=": "+z);_.aE.call(this,I);this.code=a};
_.rL(TMw,_.aE);var ojO=_.kK(["https://apis.google.com/js/api.js"]),Uei=_.Jz(ojO),lvO=function(a,z){var I=!1,J=DeJ(a,z).then(function(P){I=!0;return P}),r=_.BJl(5E3).then(function(){return I?DeJ(a,z):RZ1(z).then(function(P){return L5X(P,a)})});
return jNi([J,r])},DeJ=function(a,z){return pyl(z).then(function(I){return L5X(I,a)})},L5X=function(a,z){var I=_.Pp(z,"gapi.")?z.slice(5):z;
return a[I]?_.uI(a[I]):new _.Ba(function(J,r){var P=Sq(function(){r(Error("Ya"))},3E4);
a.load(z,{callback:function(){_.IE.clearTimeout(P);J(a[I])},
onerror:function(N){_.IE.clearTimeout(P);r(N)}})})},pyl=function(a){return a.gapi&&a.gapi.load?_.uI(a.gapi):RZ1(a)},RZ1=function(a){return _.W5j(Uei,{document:a.document}).then(function(){return a.gapi})},wy1=function(){};
wy1.prototype.load=function(a,z){z=z===void 0?window:z;var I=Date.now();return lvO(a,z).then(function(J){var r=Date.now();return{library:J,loadStartMs:I,loadEndMs:r}},function(J){throw J instanceof Error?J:Error(String(J));
})};var CPm=function(){_.FC.call(this);this.gapiLoader_=new wy1;this.origin_=null;this.gapiPickerIframeResolver_=_.kq();this.gapiIframesResolver_=_.kq();this.gapiIframesResolver_.promise.then(null,function(){});
this.gapiPickerIframeResolver_.promise.then(null,function(){});
this.hostMessageHandlerInternal_={}};
_.b(CPm,_.FC);var meI=function(a,z){var I=_.DH("gapi.iframes",z);return I?(a=Date.now(),_.uI({library:I,loadStartMs:a,loadEndMs:a})):a.gapiLoader_.load("gapi.iframes",z)},yPi=function(a,z,I,J,r,P){var N=!1;
N=N===void 0?!1:N;meI(a,$8(z.ownerDocument)).then(function(u){var E=u.library;a.gapiIframesResolver_.resolve(E);u=a.gapiPickerIframeResolver_;var O=u.resolve,f=N;f=f===void 0?!1:f;var A={};A["host-message-handler"]=I;a.hostMessageHandlerInternal_=A;var n=_.Rf(J);n=_.Rf(n);n=_.zo(_.ja(_.aR(new _.cJ,n.scheme_),n.JSC$9989_domain_),n.JSC$9989_port_).toString();a.origin_=n;n=(new tLw).setUrl(J);n.JSC$10004_obj_.where=z;n.JSC$10004_obj_.allowPost=f;n.JSC$10004_obj_.messageHandlers=A;f=_.DH("makeWhiteListIframesFilter",
E)([a.origin_]);n.JSC$10004_obj_.messageHandlersFilter=f;r!=null&&(n.JSC$10004_obj_.id=r);P!=null&&(n.JSC$10004_obj_.rpctoken=P);f=Nqw(n);f.JSC$10001_obj_.style={display:"block","min-width":"100%",width:"1px"};f.JSC$10001_obj_.height="100%";Nqw(n).value().allow="camera 'src' "+a.origin_;E=E.getContext().openChild(n.value());O.call(u,E)},function(u){a.gapiIframesResolver_.reject(u);
a.gapiPickerIframeResolver_.reject(u)});
return a.gapiPickerIframeResolver_.promise},k9o=function(a,z){return _.VD([a.gapiIframesResolver_.promise,
a.gapiPickerIframeResolver_.promise]).then(function(I){var J=_.C(I);I=J.next().value;return(J=J.next().value)?J.send("picker-message-handler",z,void 0,_.DH("makeWhiteListIframesFilter",I)([a.origin_])):_.xN(Error("Za"))})};
CPm.prototype.disposeInternal=function(){M6I(this);_.FC.prototype.disposeInternal.call(this)};
var M6I=function(a){a.gapiPickerIframeResolver_.promise.then(function(z){z&&(z.unregister("host-message-handler"),delete a.hostMessageHandlerInternal_["host-message-handler"])})};var cPJ=function(){this.JSC$10091_nextId=0};var qz1=function(a,z){switch(a.action){case "select-contacts":a=YzE(a.contacts);break;case "visibility":a=a.visible;var I=new zV;a=_.Wb(I,1,7).setVisible(a);I={};I["iframe-command"]=a.serialize();a=I;break;default:a=null}return a?k9o(z,a):_.uI()},YzE=function(a){if(!a||a.length==0)return null;
var z=new zV;_.Wb(z,1,11);var I=new cPJ;a.forEach(function(J){if(J.email){var r=new Vg;r=_.yr(r,2,J.name?J.name:J.email);var P=new qGI;J=_.d03(P,1,_.te,J.email,_.gE);J=_.gO(r,27,J);r=new MfE;P=":"+(I.JSC$10091_nextId++).toString(36);r=_.yr(r,1,P);r=_.Wb(r,2,12);J=_.gO(J,1,r)}else J=null;J&&AJ(z,7,Vg,J)});
a={};a["iframe-command"]=z.serialize();return a};_.eZl=function(){if(b7O){var a=/Windows NT ([0-9.]+)/;return(a=a.exec(_.fG()))?a[1]:"0"}return _.H7x?(a=/1[0|1][_.][0-9_.]+/,(a=a.exec(_.fG()))?a[0].replace(/_/g,"."):"10"):jo1?(a=/Android\s+([^\);]+)(\)|;)/,(a=a.exec(_.fG()))?a[1]:""):V2G||QYI||SIp?(a=/(?:iPhone|CPU)\s+OS\s+(\S+)/,(a=a.exec(_.fG()))?a[1].replace(/_/g,"."):""):""}();var X6;X6=function(a){return(a=a.exec(_.fG()))?a[1]:""};
_.aZw=function(){if(_.Bb)return X6(/Firefox\/([0-9.]+)/);if(_.NS||cy||ng0)return TC$;if(_.gL){if(_.vp()||_.A1i()){var a=X6(/CriOS\/([0-9.]+)/);if(a)return a}return X6(/Chrome\/([0-9.]+)/)}if(_.Wy&&!_.vp())return X6(/Version\/([0-9.]+)/);if(H5G||b5G){if(a=/Version\/(\S+).*Mobile\/(\S+)/.exec(_.fG()))return a[1]+"."+a[2]}else if(DwM)return(a=X6(/Android\s+([0-9.]+)/))?a:X6(/Version\/([0-9.]+)/);return""}();var j3f=function(){};
_.Is(j3f);j3f.prototype.nextId_=0;_.To=function(a){return":"+(a.nextId_++).toString(36)};var dG=function(a){_.HV.call(this);this.JSC$10099_dom_=a||nB();this.JSC$10099_id_=null;this.inDocument_=!1;this.JSC$10099_element_=null;this.googUiComponentHandler_=void 0;this.childIndex_=this.children_=this.parent_=this.model_=null;this.wasDecorated_=!1};
_.rL(dG,_.HV);dG.prototype.idGenerator_=j3f.getInstance();dG.prototype.getId=function(){return this.JSC$10099_id_||(this.JSC$10099_id_=_.To(this.idGenerator_))};
dG.prototype.getElement=function(){return this.JSC$10099_element_};
var WD=function(a){a.googUiComponentHandler_||(a.googUiComponentHandler_=new _.PJ(a));return a.googUiComponentHandler_},zTi=function(a,z){if(a==z)throw Error("$a");
var I;if(I=z&&a.parent_&&a.JSC$10099_id_){I=a.parent_;var J=a.JSC$10099_id_;I=I.childIndex_&&J?_.x8.get(I.childIndex_,J)||null:null}if(I&&a.parent_!=z)throw Error("$a");a.parent_=z;dG.superClass_.setParentEventTarget.call(a,z)};
dG.prototype.setParentEventTarget=function(a){if(this.parent_&&this.parent_!=a)throw Error("ab");dG.superClass_.setParentEventTarget.call(this,a)};
dG.prototype.JSC$10101_createDom=function(){this.JSC$10099_element_=this.JSC$10099_dom_.createElement("DIV")};
dG.prototype.render=function(a){IZJ(this,a)};
var IZJ=function(a,z,I){if(a.inDocument_)throw Error("bb");a.JSC$10099_element_||a.JSC$10101_createDom();z?z.insertBefore(a.JSC$10099_element_,I||null):a.JSC$10099_dom_.JSC$9284_document_.body.appendChild(a.JSC$10099_element_);a.parent_&&!a.parent_.inDocument_||a.enterDocument()};
_.Z=dG.prototype;_.Z.decorate=function(a){if(this.inDocument_)throw Error("bb");if(a&&this.canDecorate(a)){this.wasDecorated_=!0;var z=_.Xm(a);this.JSC$10099_dom_&&this.JSC$10099_dom_.JSC$9284_document_==z||(this.JSC$10099_dom_=nB(a));this.decorateInternal(a);this.enterDocument()}else throw Error("cb");};
_.Z.canDecorate=function(){return!0};
_.Z.decorateInternal=function(a){this.JSC$10099_element_=a};
_.Z.enterDocument=function(){this.inDocument_=!0;JC1(this,function(a){!a.inDocument_&&a.getElement()&&a.enterDocument()})};
_.Z.exitDocument=function(){JC1(this,function(a){a.inDocument_&&a.exitDocument()});
this.googUiComponentHandler_&&this.googUiComponentHandler_.removeAll();this.inDocument_=!1};
_.Z.disposeInternal=function(){this.inDocument_&&this.exitDocument();this.googUiComponentHandler_&&(this.googUiComponentHandler_.dispose(),delete this.googUiComponentHandler_);JC1(this,function(a){a.dispose()});
!this.wasDecorated_&&this.JSC$10099_element_&&_.fo(this.JSC$10099_element_);this.parent_=this.model_=this.JSC$10099_element_=this.childIndex_=this.children_=null;dG.superClass_.disposeInternal.call(this)};
_.Z.getModel=function(){return this.model_};
_.Z.addChild=function(a,z){var I=this.children_?this.children_.length:0;if(a.inDocument_&&(z||!this.inDocument_))throw Error("bb");if(I<0||I>(this.children_?this.children_.length:0))throw Error("db");this.childIndex_&&this.children_||(this.childIndex_={},this.children_=[]);a.parent_==this?(_.x8.set(this.childIndex_,a.getId(),a),_.Di(this.children_,a)):_.x8.add(this.childIndex_,a.getId(),a);zTi(a,this);_.VMG(this.children_,I,0,a);a.inDocument_&&this.inDocument_&&a.parent_==this?(z=this.getContentElement(),
(z.childNodes[I]||null)!=a.getElement()&&(a.getElement().parentElement==z&&z.removeChild(a.getElement()),I=z.childNodes[I]||null,z.insertBefore(a.getElement(),I))):z?(this.JSC$10099_element_||this.JSC$10101_createDom(),I=this.children_?this.children_[I+1]||null:null,IZJ(a,this.getContentElement(),I?I.JSC$10099_element_:null)):this.inDocument_&&!a.inDocument_&&a.JSC$10099_element_&&a.JSC$10099_element_.parentNode&&a.JSC$10099_element_.parentNode.nodeType==1&&a.enterDocument()};
_.Z.getContentElement=function(){return this.JSC$10099_element_};
var JC1=function(a,z){a.children_&&a.children_.forEach(z,void 0)};
dG.prototype.removeChild=function(a,z){if(a){var I=typeof a==="string"?a:a.getId();a=this.childIndex_&&I?_.x8.get(this.childIndex_,I)||null:null;I&&a&&(_.x8.remove(this.childIndex_,I),_.Di(this.children_,a),z&&(a.exitDocument(),a.JSC$10099_element_&&_.fo(a.JSC$10099_element_)),zTi(a,null))}if(!a)throw Error("eb");return a};_.rL(eZG,qz0);_.rL(aZG,qz0);var rCX;_.x8.createSet("A AREA BUTTON HEAD INPUT LINK MENU META OPTGROUP OPTION PROGRESS STYLE SELECT SOURCE TEXTAREA TITLE TRACK".split(" "));var PPj=function(a,z){z?a.setAttribute("role",z):a.removeAttribute("role")},oR=function(a,z,I){Array.isArray(I)&&(I=I.join(" "));
var J="aria-"+z;I===""||I==void 0?(rCX||(I={},rCX=(I.atomic=!1,I.autocomplete="none",I.dropeffect="none",I.haspopup=!1,I.live="off",I.multiline=!1,I.multiselectable=!1,I.orientation="vertical",I.readonly=!1,I.relevant="additions text",I.required=!1,I.sort="none",I.busy=!1,I.disabled=!1,I.hidden=!1,I.invalid="false",I)),I=rCX,z in I?a.setAttribute(J,I[z]):a.removeAttribute(J)):a.setAttribute(J,I)};var ZIe;_.U5=function(a,z,I){_.HV.call(this);this.target=a;this.handle=z||a;this.limits=I||new Wr(NaN,NaN,NaN,NaN);this.JSC$10104_document_=_.Xm(a);this.JSC$10104_eventHandler_=new _.PJ(this);_.t7(this,this.JSC$10104_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;_.Sg(this.handle,["touchstart","mousedown"],this.startDrag,!1,this);this.useSetCapture_=ZIe};
_.rL(_.U5,_.HV);ZIe=_.IE.document&&_.IE.document.documentElement&&!!_.IE.document.documentElement.setCapture&&!!_.IE.document.releaseCapture;_.CPO=function(a,z){a.hysteresisDistanceSquared_=Math.pow(z,2)};
_.Z=_.U5.prototype;_.Z.setEnabled=function(a){this.enabled_=a};
_.Z.disposeInternal=function(){_.U5.superClass_.disposeInternal.call(this);_.FU(this.handle,["touchstart","mousedown"],this.startDrag,!1,this);this.JSC$10104_eventHandler_.removeAll();this.useSetCapture_&&this.JSC$10104_document_.releaseCapture();this.handle=this.target=null};
_.Z.startDrag=function(a){var z=a.type=="mousedown";if(!this.enabled_||this.dragging_||z&&(a.event_.button!=0||_.H7x&&a.ctrlKey))this.dispatchEvent("earlycancel");else{if(this.hysteresisDistanceSquared_==0)if(this.dispatchEvent(new DP("start",this,a.clientX,a.clientY,a)))this.dragging_=!0,z&&a.preventDefault();else return;else z&&a.preventDefault();z=this.JSC$10104_document_;var I=z.documentElement,J=!this.useSetCapture_;this.JSC$10104_eventHandler_.listen(z,["touchmove","mousemove"],this.handleMove_,
{capture:J,passive:!1});this.JSC$10104_eventHandler_.listen(z,["touchend","mouseup"],this.endDrag,J);this.useSetCapture_?(I.setCapture(!1),this.JSC$10104_eventHandler_.listen(I,"losecapture",this.endDrag)):this.JSC$10104_eventHandler_.listen($8(z),"blur",this.endDrag);this.scrollTarget_&&this.JSC$10104_eventHandler_.listen(this.scrollTarget_,"scroll",this.onScroll_,J);this.clientX=this.startX=a.clientX;this.clientY=this.startY=a.clientY;this.screenX=a.screenX;this.screenY=a.screenY;this.deltaX=this.target.offsetLeft;
this.deltaY=this.target.offsetTop;this.pageScroll=sh(nB(this.JSC$10104_document_))}};
_.Z.endDrag=function(a,z){this.JSC$10104_eventHandler_.removeAll();this.useSetCapture_&&this.JSC$10104_document_.releaseCapture();this.dragging_?(this.dragging_=!1,this.dispatchEvent(new DP("end",this,a.clientX,a.clientY,a,Now(this,this.deltaX),tpJ(this,this.deltaY),z||a.type=="touchcancel"))):this.dispatchEvent("earlycancel")};
_.Z.handleMove_=function(a){if(this.enabled_){var z=a.clientX-this.clientX,I=a.clientY-this.clientY;this.clientX=a.clientX;this.clientY=a.clientY;this.screenX=a.screenX;this.screenY=a.screenY;if(!this.dragging_){var J=this.startX-this.clientX,r=this.startY-this.clientY;if(J*J+r*r>this.hysteresisDistanceSquared_)if(this.dispatchEvent(new DP("start",this,a.clientX,a.clientY,a)))this.dragging_=!0;else{this.isDisposed()||this.endDrag(a);return}}I=uyE(this,z,I);z=I.x;I=I.y;this.dragging_&&this.dispatchEvent(new DP("beforedrag",
this,a.clientX,a.clientY,a,z,I))&&(Ekl(this,a,z,I),a.preventDefault())}};
var uyE=function(a,z,I){var J=sh(nB(a.JSC$10104_document_));z+=J.x-a.pageScroll.x;I+=J.y-a.pageScroll.y;a.pageScroll=J;a.deltaX+=z;a.deltaY+=I;return new _.GB(Now(a,a.deltaX),tpJ(a,a.deltaY))};
_.U5.prototype.onScroll_=function(a){var z=uyE(this,0,0);a.clientX=this.clientX;a.clientY=this.clientY;Ekl(this,a,z.x,z.y)};
var Ekl=function(a,z,I,J){a.target.style.left=I+"px";a.target.style.top=J+"px";a.dispatchEvent(new DP("drag",a,z.clientX,z.clientY,z,I,J))},Now=function(a,z){var I=a.limits;
a=isNaN(I.left)?null:I.left;I=isNaN(I.width)?0:I.width;return Math.min(a!=null?a+I:Infinity,Math.max(a!=null?a:-Infinity,z))},tpJ=function(a,z){var I=a.limits;
a=isNaN(I.top)?null:I.top;I=isNaN(I.height)?0:I.height;return Math.min(a!=null?a+I:Infinity,Math.max(a!=null?a:-Infinity,z))};
_.U5.prototype.isDragging=function(){return this.dragging_};
var DP=function(a,z,I,J,r,P,N){_.AH.call(this,a);this.clientX=I;this.clientY=J;this.browserEvent=r;this.left=P!==void 0?P:z.deltaX;this.top=N!==void 0?N:z.deltaY};
_.rL(DP,_.AH);var RR=function(a){this.JSC$10111_map_=new Map;var z=arguments.length;if(z>1){if(z%2)throw Error("ka");for(var I=0;I<z;I+=2)this.set(arguments[I],arguments[I+1])}else a&&this.addAll(a)};
_.Z=RR.prototype;_.Z.getCount=function(){return this.JSC$10111_map_.size};
_.Z.getValues=function(){return Array.from(this.JSC$10111_map_.values())};
_.Z.getKeys=function(){return Array.from(this.JSC$10111_map_.keys())};
_.Z.containsKey=function(a){return this.JSC$10111_map_.has(a)};
_.Z.containsValue=function(a){return this.getValues().some(function(z){return z==a})};
_.Z.equals=function(a,z){var I=this;z=z===void 0?function(J,r){return J===r}:z;
return this===a?!0:this.JSC$10111_map_.size!=a.getCount()?!1:this.getKeys().every(function(J){return z(I.JSC$10111_map_.get(J),a.get(J))})};
_.Z.isEmpty=function(){return this.JSC$10111_map_.size==0};
_.Z.clear=function(){this.JSC$10111_map_.clear()};
_.Z.remove=function(a){return this.JSC$10111_map_.delete(a)};
_.Z.get=function(a,z){return this.JSC$10111_map_.has(a)?this.JSC$10111_map_.get(a):z};
_.Z.set=function(a,z){this.JSC$10111_map_.set(a,z);return this};
_.Z.addAll=function(a){if(a instanceof RR){a=_.C(a.JSC$10111_map_);for(var z=a.next();!z.done;z=a.next()){var I=_.C(z.value);z=I.next().value;I=I.next().value;this.JSC$10111_map_.set(z,I)}}else if(a)for(a=_.C(Object.entries(a)),z=a.next();!z.done;z=a.next())I=_.C(z.value),z=I.next().value,I=I.next().value,this.JSC$10111_map_.set(z,I)};
_.Z.forEach=function(a,z){var I=this;z=z===void 0?this:z;this.JSC$10111_map_.forEach(function(J,r){return a.call(z,J,r,I)})};
_.Z.clone=function(){return new RR(this)};(function(){for(var a=["ms","moz","webkit","o"],z,I=0;z=a[I]&&!_.IE.requestAnimationFrame;++I)_.IE.requestAnimationFrame=_.IE[z+"RequestAnimationFrame"],_.IE.cancelAnimationFrame=_.IE[z+"CancelAnimationFrame"]||_.IE[z+"CancelRequestAnimationFrame"];if(!_.IE.requestAnimationFrame){var J=0;_.IE.requestAnimationFrame=function(r){var P=(new Date).getTime(),N=Math.max(0,16-(P-J));J=P+N;return _.IE.setTimeout(function(){r(P+N)},N)};
_.IE.cancelAnimationFrame||(_.IE.cancelAnimationFrame=function(r){clearTimeout(r)})}})();
var Bol=[[],[]],gkv=0,OIi=!1,fZJ=0,s3l=function(a,z){var I=fZJ++,J={measureTask:{id:I,fn:a.measure,context:z},mutateTask:{id:I,fn:a.mutate,context:z},state:{},args:void 0,isScheduled:!1};return function(){arguments.length>0?(J.args||(J.args=[]),J.args.length=0,J.args.push.apply(J.args,arguments),J.args.push(J.state)):J.args&&J.args.length!=0?(J.args[0]=J.state,J.args.length=1):J.args=[J.state];J.isScheduled||(J.isScheduled=!0,Bol[gkv].push(J));OIi||(OIi=!0,window.requestAnimationFrame(ACI))}},ACI=
function(){OIi=!1;
var a=Bol[gkv],z=a.length;gkv=(gkv+1)%2;for(var I,J=0;J<z;++J){I=a[J];var r=I.measureTask;I.isScheduled=!1;r.fn&&r.fn.apply(r.context,I.args)}for(J=0;J<z;++J)I=a[J],r=I.mutateTask,I.isScheduled=!1,r.fn&&r.fn.apply(r.context,I.args),I.state={};a.length=0};var nkf=_.kK(["about:blank"]),Klo=_.kK(["javascript:undefined"]),Flw=_.Jz(nkf);_.bj(Flw);var HIX=_.Jz(Klo);_.bj(HIX);var LR=function(a){_.HV.call(this);this.JSC$10117_element_=a;this.listenKeyIn_=_.Sg(this.JSC$10117_element_,"focus",this,!0);this.listenKeyOut_=_.Sg(this.JSC$10117_element_,"blur",this,!0)};
_.rL(LR,_.HV);LR.prototype.handleEvent=function(a){var z=new _.ss(a.event_);z.type=a.type=="focusin"||a.type=="focus"?"focusin":"focusout";this.dispatchEvent(z)};
LR.prototype.disposeInternal=function(){LR.superClass_.disposeInternal.call(this);hj(this.listenKeyIn_);hj(this.listenKeyOut_);delete this.JSC$10117_element_};var bII=function(a,z){this.JSC$10120_element_=a;this.JSC$10120_dom_=z};var lu=function(a,z){dG.call(this,z);this.useIframeMask_=!!a;this.lastFocus_=null;this.resizeBackgroundTask_=s3l({mutate:this.resizeBackground_},this);s3l({mutate:this.updateModalAndBackground_},this)};
_.rL(lu,dG);_.Z=lu.prototype;_.Z.focusHandler_=null;_.Z.visible_=!1;_.Z.bgEl_=null;_.Z.bgIframeEl_=null;_.Z.tabCatcherElement_=null;_.Z.backwardTabWrapInProgress_=!1;_.Z.getCssClass=function(){return"goog-modalpopup"};
_.Z.getBackgroundElement=function(){return this.bgEl_};
_.Z.JSC$10101_createDom=function(){lu.superClass_.JSC$10101_createDom.call(this);var a=this.getElement(),z=g$(this.getCssClass()).split(" ");wZ(a,z);a.tabIndex=0;_.po(a,!1);hTX(this);Vpw(this)};
var hTX=function(a){if(a.useIframeMask_&&!a.bgIframeEl_){var z=a.JSC$10099_dom_.JSC$9286_createDom("IFRAME",{frameborder:0,style:"border:0;vertical-align:bottom;"});_.lj(z,Flw);a.bgIframeEl_=z;a.bgIframeEl_.className=a.getCssClass()+"-bg";_.po(a.bgIframeEl_,!1);Ael(a.bgIframeEl_,0)}a.bgEl_||(a.bgEl_=a.JSC$10099_dom_.JSC$9286_createDom("DIV",a.getCssClass()+"-bg"),_.po(a.bgEl_,!1))},Vpw=function(a){a.tabCatcherElement_||(a.tabCatcherElement_=a.JSC$10099_dom_.createElement("SPAN"),_.po(a.tabCatcherElement_,
!1),a.tabCatcherElement_.tabIndex=0,a.tabCatcherElement_.style.position="absolute")};
_.Z=lu.prototype;_.Z.resetBackwardTabWrap_=function(){this.backwardTabWrapInProgress_=!1};
_.Z.canDecorate=function(a){return!!a&&a.tagName=="DIV"};
_.Z.decorateInternal=function(a){lu.superClass_.decorateInternal.call(this,a);a=g$(this.getCssClass()).split(" ");wZ(this.getElement(),a);hTX(this);Vpw(this);this.getElement().tabIndex=0;_.po(this.getElement(),!1)};
_.Z.enterDocument=function(){this.bgIframeEl_&&_.$B(this.bgIframeEl_,this.getElement());_.$B(this.bgEl_,this.getElement());lu.superClass_.enterDocument.call(this);_.XO(this.tabCatcherElement_,this.getElement());this.focusHandler_=new LR(this.JSC$10099_dom_.JSC$9284_document_);WD(this).listen(this.focusHandler_,"focusin",this.onFocus);Q3j(this,!1)};
_.Z.exitDocument=function(){this.isVisible()&&this.setVisible(!1);_.Y8(this.focusHandler_);lu.superClass_.exitDocument.call(this);_.fo(this.bgIframeEl_);_.fo(this.bgEl_);_.fo(this.tabCatcherElement_)};
_.Z.setVisible=function(a){if(a!=this.visible_)if(this.popupShowTransition_&&this.popupShowTransition_.stop(),this.bgShowTransition_&&this.bgShowTransition_.stop(),this.popupHideTransition_&&this.popupHideTransition_.stop(),this.bgHideTransition_&&this.bgHideTransition_.stop(),this.inDocument_&&Q3j(this,a),a){if(this.dispatchEvent("beforeshow")){try{this.lastFocus_=this.JSC$10099_dom_.JSC$9284_document_.activeElement}catch(r){}this.updateModalAndBackground_();WD(this).listen(this.JSC$10099_dom_.getWindow(),
"resize",this.resizeBackground_).listen(this.JSC$10099_dom_.getWindow(),"orientationchange",this.resizeBackgroundTask_);Sni(this,!0);this.focus();this.visible_=!0;if(this.popupShowTransition_&&this.bgShowTransition_)bN(this.popupShowTransition_,"end",this.onShow,!1,this),this.bgShowTransition_.play(),this.popupShowTransition_.play();else this.onShow()}}else if(this.dispatchEvent("beforehide")){WD(this).unlisten(this.JSC$10099_dom_.getWindow(),"resize",this.resizeBackground_).unlisten(this.JSC$10099_dom_.getWindow(),
"orientationchange",this.resizeBackgroundTask_);this.visible_=!1;if(this.popupHideTransition_&&this.bgHideTransition_)bN(this.popupHideTransition_,"end",this.onHide,!1,this),this.bgHideTransition_.play(),this.popupHideTransition_.play();else this.onHide();a:{try{var z=this.JSC$10099_dom_,I=z.JSC$9284_document_.body,J=z.JSC$9284_document_.activeElement||I;if(!this.lastFocus_||this.lastFocus_==I){this.lastFocus_=null;break a}(J==I||z.contains(this.getElement(),J))&&this.lastFocus_.focus()}catch(r){}this.lastFocus_=
null}}};
var Q3j=function(a,z){a.modalAriaVisibilityHelper_||(a.modalAriaVisibilityHelper_=new bII(a.JSC$10099_element_,a.JSC$10099_dom_));a=a.modalAriaVisibilityHelper_;if(z){a.hiddenElements_||(a.hiddenElements_=[]);z=a.JSC$10120_dom_.getChildren(a.JSC$10120_dom_.JSC$9284_document_.body);for(var I=0;I<z.length;I++){var J=z[I],r;if(r=J!=a.JSC$10120_element_)r=J.getAttribute("aria-hidden"),r=!(r==null||r==void 0?0:String(r));r&&(oR(J,"hidden",!0),a.hiddenElements_.push(J))}}else if(a.hiddenElements_){for(z=
0;z<a.hiddenElements_.length;z++)a.hiddenElements_[z].removeAttribute("aria-hidden");a.hiddenElements_=null}};
lu.prototype.updateModalAndBackground_=function(){this.resizeBackground_();this.reposition()};
var Sni=function(a,z){a.bgIframeEl_&&_.po(a.bgIframeEl_,z);a.bgEl_&&_.po(a.bgEl_,z);_.po(a.getElement(),z);_.po(a.tabCatcherElement_,z)};
_.Z=lu.prototype;_.Z.onShow=function(){this.dispatchEvent("show")};
_.Z.onHide=function(){Sni(this,!1);this.dispatchEvent("hide")};
_.Z.isVisible=function(){return this.visible_};
_.Z.focus=function(){this.focusElement_()};
_.Z.resizeBackground_=function(){this.bgIframeEl_&&_.po(this.bgIframeEl_,!1);this.bgEl_&&_.po(this.bgEl_,!1);var a=this.JSC$10099_dom_.JSC$9284_document_;var z=_.Az($8(this.JSC$10099_dom_.JSC$9284_document_)||window);var I=Math.max(z.width,Math.max(a.body.scrollWidth,a.documentElement.scrollWidth));a=Math.max(z.height,Math.max(a.body.scrollHeight,a.documentElement.scrollHeight));this.bgIframeEl_&&(_.po(this.bgIframeEl_,!0),_.BEJ(this.bgIframeEl_,I,a));this.bgEl_&&(_.po(this.bgEl_,!0),_.BEJ(this.bgEl_,
I,a))};
_.Z.reposition=function(){var a;if(_.EZi(this.getElement())=="fixed")var z=a=0;else z=sh(this.JSC$10099_dom_),a=z.x,z=z.y;var I=OZi(this.getElement());var J=_.Az($8(this.JSC$10099_dom_.JSC$9284_document_)||window);a=Math.max(a+J.width/2-I.width/2,0);z=Math.max(z+J.height/2-I.height/2,0);Du(this.getElement(),a,z);Du(this.tabCatcherElement_,a,z)};
_.Z.onFocus=function(a){this.backwardTabWrapInProgress_?this.resetBackwardTabWrap_():a.target==this.tabCatcherElement_&&Sq(this.focusElement_,0,this)};
_.Z.focusElement_=function(){try{this.getElement().focus()}catch(a){}};
_.Z.disposeInternal=function(){_.Y8(this.popupShowTransition_);this.popupShowTransition_=null;_.Y8(this.popupHideTransition_);this.popupHideTransition_=null;_.Y8(this.bgShowTransition_);this.bgShowTransition_=null;_.Y8(this.bgHideTransition_);this.bgHideTransition_=null;lu.superClass_.disposeInternal.call(this)};var Ga=function(a,z,I){lu.call(this,z,I);this.JSC$10130_class_=a||"modal-dialog";this.buttons_=(new pR).addButton(iIl,!0).addButton(xVo,!1,!0)};
_.rL(Ga,lu);_.Z=Ga.prototype;_.Z.escapeToCancel_=!0;_.Z.hasTitleCloseButton_=!0;_.Z.modal_=!0;_.Z.draggable_=!0;_.Z.backgroundElementOpacity_=.5;_.Z.title_="";_.Z.JSC$10132_dragger_=null;_.Z.JSC$10132_disposeOnHide_=!1;_.Z.titleEl_=null;_.Z.titleTextEl_=null;_.Z.titleTextId_=null;_.Z.titleCloseEl_=null;_.Z.contentEl_=null;_.Z.buttonEl_=null;_.Z.getCssClass=function(){return this.JSC$10130_class_};
_.Z.setTitle=function(a){this.title_=a;this.titleTextEl_&&_.dc(this.titleTextEl_,a)};
_.Z.getTitle=function(){return this.title_};
_.Z.getContent=function(){return""};
_.Z.getContentElement=function(){this.getElement()||this.render();return this.contentEl_};
var vkO=function(a){a.getElement()||a.render();return a.getElement()};
Ga.prototype.getBackgroundElement=function(){this.getElement()||this.render();return Ga.superClass_.getBackgroundElement.call(this)};
var GWJ=function(a,z){a.backgroundElementOpacity_=z;a.getElement()&&(z=a.getBackgroundElement())&&Ael(z,a.backgroundElementOpacity_)};
Ga.prototype.setDraggable=function(a){this.draggable_=a;$Vv(this,a&&this.inDocument_)};
Ga.prototype.handleDrag=function(){};
var $Vv=function(a,z){var I=g$(a.JSC$10130_class_+"-title-draggable").split(" ");a.getElement()&&(z?wZ(a.titleEl_,I):PF1(a.titleEl_,I));z&&!a.JSC$10132_dragger_?(z=new _.U5(a.getElement(),a.titleEl_),a.JSC$10132_dragger_=z,wZ(a.titleEl_,I),_.Sg(a.JSC$10132_dragger_,"start",a.setDraggerLimits_,!1,a),_.Sg(a.JSC$10132_dragger_,"drag",a.handleDrag,!1,a)):!z&&a.JSC$10132_dragger_&&(a.JSC$10132_dragger_.dispose(),a.JSC$10132_dragger_=null)};
_.Z=Ga.prototype;
_.Z.JSC$10101_createDom=function(){Ga.superClass_.JSC$10101_createDom.call(this);var a=this.getElement(),z=this.JSC$10099_dom_;this.titleTextId_=this.getId();var I=this.getId()+".contentEl";this.titleEl_=z.JSC$9286_createDom("DIV",this.JSC$10130_class_+"-title",this.titleTextEl_=z.JSC$9286_createDom("SPAN",{className:this.JSC$10130_class_+"-title-text",id:this.titleTextId_},this.title_),this.titleCloseEl_=z.JSC$9286_createDom("SPAN",this.JSC$10130_class_+"-title-close"));yol(a,this.titleEl_,this.contentEl_=
z.JSC$9286_createDom("DIV",{className:this.JSC$10130_class_+"-content",id:I}),this.buttonEl_=z.JSC$9286_createDom("DIV",this.JSC$10130_class_+"-buttons"));PPj(this.titleTextEl_,"heading");PPj(this.titleCloseEl_,"button");this.titleCloseEl_.tabIndex=0;oR(this.titleCloseEl_,"label","Close");PPj(a,"dialog");oR(a,"labelledby",this.titleTextId_||"");_.po(this.titleCloseEl_,this.hasTitleCloseButton_);this.buttons_&&(a=this.buttons_,a.JSC$10133_element_=this.buttonEl_,a.render());_.po(this.buttonEl_,!!this.buttons_);
GWJ(this,this.backgroundElementOpacity_)};
_.Z.decorateInternal=function(a){Ga.superClass_.decorateInternal.call(this,a);a=this.getElement();var z=this.JSC$10130_class_+"-content";this.contentEl_=Qj(document,null,z,a)[0];this.contentEl_||(this.contentEl_=this.JSC$10099_dom_.JSC$9286_createDom("DIV",z),a.appendChild(this.contentEl_));z=this.JSC$10130_class_+"-title";var I=this.JSC$10130_class_+"-title-text",J=this.JSC$10130_class_+"-title-close";(this.titleEl_=Qj(document,null,z,a)[0])?(this.titleTextEl_=Qj(document,null,I,this.titleEl_)[0],
this.titleCloseEl_=Qj(document,null,J,this.titleEl_)[0]):(this.titleEl_=this.JSC$10099_dom_.JSC$9286_createDom("DIV",z),a.insertBefore(this.titleEl_,this.contentEl_));this.titleTextEl_?(this.title_=ZZf(this.titleTextEl_),this.titleTextEl_.id||(this.titleTextEl_.id=this.getId())):(this.titleTextEl_=_.i3("SPAN",{className:I,id:this.getId()}),this.titleEl_.appendChild(this.titleTextEl_));this.titleTextId_=this.titleTextEl_.id;oR(a,"labelledby",this.titleTextId_||"");this.titleCloseEl_||(this.titleCloseEl_=
this.JSC$10099_dom_.JSC$9286_createDom("SPAN",J),this.titleEl_.appendChild(this.titleCloseEl_));_.po(this.titleCloseEl_,this.hasTitleCloseButton_);z=this.JSC$10130_class_+"-buttons";(this.buttonEl_=Qj(document,null,z,a)[0])?(this.buttons_=new pR(this.JSC$10099_dom_),this.buttons_.decorate(this.buttonEl_)):(this.buttonEl_=this.JSC$10099_dom_.JSC$9286_createDom("DIV",z),a.appendChild(this.buttonEl_),this.buttons_&&(a=this.buttons_,a.JSC$10133_element_=this.buttonEl_,a.render()),_.po(this.buttonEl_,
!!this.buttons_));GWJ(this,this.backgroundElementOpacity_)};
_.Z.enterDocument=function(){Ga.superClass_.enterDocument.call(this);WD(this).listen(this.getElement(),"keydown",this.onKey_).listen(this.getElement(),"keypress",this.onKey_);WD(this).listen(this.buttonEl_,"click",this.onButtonClick_);$Vv(this,this.draggable_);WD(this).listen(this.titleCloseEl_,"click",this.onTitleCloseClick_);var a=this.getElement();PPj(a,"dialog");this.titleTextEl_.id!==""&&oR(a,"labelledby",this.titleTextEl_.id);if(!this.modal_){this.modal_=!1;if(this.inDocument_){a=this.JSC$10099_dom_;
var z=this.getBackgroundElement();a.removeNode(this.bgIframeEl_);a.removeNode(z)}this.isVisible()&&Q3j(this,!1)}};
_.Z.exitDocument=function(){this.isVisible()&&this.setVisible(!1);$Vv(this,!1);Ga.superClass_.exitDocument.call(this)};
_.Z.setVisible=function(a){a!=this.isVisible()&&(this.inDocument_||this.render(),Ga.superClass_.setVisible.call(this,a))};
_.Z.onShow=function(){Ga.superClass_.onShow.call(this);this.dispatchEvent("aftershow")};
_.Z.onHide=function(){Ga.superClass_.onHide.call(this);this.dispatchEvent("afterhide");this.JSC$10132_disposeOnHide_&&this.dispose()};
_.Z.setDraggerLimits_=function(){var a=this.JSC$10099_dom_.JSC$9284_document_,z=_.Az($8(a)||window),I=Math.max(a.body.scrollWidth,z.width);a=Math.max(a.body.scrollHeight,z.height);var J=OZi(this.getElement());_.EZi(this.getElement())=="fixed"?this.JSC$10132_dragger_.limits=new Wr(0,0,Math.max(0,z.width-J.width),Math.max(0,z.height-J.height)):this.JSC$10132_dragger_.limits=new Wr(0,0,I-J.width,a-J.height)};
_.Z.onTitleCloseClick_=function(){XLX(this)};
var XLX=function(a){if(a.hasTitleCloseButton_){var z=a.buttons_,I=z&&z.cancelButton_;I?(z=z.get(I),a.dispatchEvent(new wG(I,z))&&a.setVisible(!1)):a.setVisible(!1)}},Too=function(a){a.hasTitleCloseButton_=!1;
a.titleCloseEl_&&_.po(a.titleCloseEl_,a.hasTitleCloseButton_)};
Ga.prototype.disposeInternal=function(){this.buttonEl_=this.titleCloseEl_=null;Ga.superClass_.disposeInternal.call(this)};
Ga.prototype.onButtonClick_=function(a){a:{for(a=a.target;a!=null&&a!=this.buttonEl_;){if(a.tagName=="BUTTON")break a;a=a.parentNode}a=null}if(a&&!a.disabled){a=a.name;var z=this.buttons_.get(a);this.dispatchEvent(new wG(a,z))&&this.setVisible(!1)}};
Ga.prototype.onKey_=function(a){var z=!1,I=!1,J=this.buttons_,r=a.target;if(a.type=="keydown")if(this.escapeToCancel_&&a.keyCode==27){var P=J&&J.cancelButton_;r=r.tagName=="SELECT"&&!r.disabled;P&&!r?(I=!0,z=J.get(P),z=this.dispatchEvent(new wG(P,z))):r||(z=!0)}else{if(a.keyCode==9&&a.shiftKey&&r==this.getElement()){this.backwardTabWrapInProgress_=!0;try{this.tabCatcherElement_.focus()}catch(f){}Sq(this.resetBackwardTabWrap_,0,this)}}else if(a.keyCode==13){if(r.tagName=="BUTTON"&&!r.disabled)P=r.name;
else if(r==this.titleCloseEl_)XLX(this);else if(J){var N=J.defaultButton_,u;if(u=N)a:{u=A7("BUTTON",J.JSC$10133_element_);for(var E,O=0;E=u[O];O++)if(E.name==N||E.id==N){u=E;break a}u=null}r=(r.tagName=="TEXTAREA"||r.tagName=="SELECT"||r.tagName=="A")&&!r.disabled;!u||u.disabled||r||(P=N)}P&&J&&(I=!0,z=this.dispatchEvent(new wG(P,String(J.get(P)))))}else r!=this.titleCloseEl_||a.keyCode!=32&&a.key!=" "||XLX(this);if(z||I)a.stopPropagation(),a.preventDefault();z&&this.setVisible(!1)};
var wG=function(a,z){this.type="dialogselect";this.key=a;this.caption=z};
_.rL(wG,_.AH);var pR=function(a){RR.call(this);a||nB();this.cancelButton_=this.JSC$10133_element_=this.defaultButton_=null};
_.rL(pR,RR);_.Z=pR.prototype;_.Z.clear=function(){RR.prototype.clear.call(this);this.defaultButton_=this.cancelButton_=null};
_.Z.set=function(a,z,I,J){RR.prototype.set.call(this,a,z);I&&(this.defaultButton_=a);J&&(this.cancelButton_=a);return this};
_.Z.addButton=function(a,z,I){return this.set(a.key,a.caption,z,I)};
_.Z.render=function(){if(this.JSC$10133_element_){_.YP(this.JSC$10133_element_,EkG);var a=nB(this.JSC$10133_element_);this.forEach(function(z,I){z=a.JSC$9286_createDom("BUTTON",{name:I},z);I==this.defaultButton_&&(z.className="goog-buttonset-default");this.JSC$10133_element_.appendChild(z)},this)}};
_.Z.decorate=function(a){if(a&&a.nodeType==1){this.JSC$10133_element_=a;a=A7("BUTTON",this.JSC$10133_element_);for(var z,I,J,r=0;z=a[r];r++)if(I=z.name||z.id,J=ZZf(z)||z.value,I){var P=r==0;this.set(I,J,P,z.name=="cancel");P&&_.eg(z,"goog-buttonset-default")}}};
_.Z.getElement=function(){return this.JSC$10133_element_};
var iIl={key:"ok",caption:"OK"},xVo={key:"cancel",caption:"Cancel"},dVX={key:"yes",caption:"Yes"},Wll={key:"no",caption:"No"},okG={key:"save",caption:"Save"},UVw={key:"continue",caption:"Continue"};typeof document!="undefined"&&((new pR).addButton(iIl,!0,!0),(new pR).addButton(iIl,!0).addButton(xVo,!1,!0),(new pR).addButton(dVX,!0).addButton(Wll,!1,!0),(new pR).addButton(dVX).addButton(Wll,!0).addButton(xVo,!1,!0),(new pR).addButton(UVw).addButton(okG).addButton(xVo,!0,!0));_.rL(j3$,Ga);_.rL(zTx,$l);var DVE=_.kK(["//www-onepick-opensocial.googleusercontent.com/gadgets/js/rpc.js?c=1&container=onepick"]),RT1=_.kK(["//apis.google.com/js/rpc.js"]),uyO=_.Jz(DVE),tp3=_.Jz(RT1),JC0=null;var dQ=function(a,z){_.HV.call(this);this.JSC$10142_element_=a;a=_.cL(this.JSC$10142_element_)?this.JSC$10142_element_:this.JSC$10142_element_?this.JSC$10142_element_.body:null;this.isRtl_=!!a&&_.sZw(a);this.listenKey_=_.Sg(this.JSC$10142_element_,_.tY?"DOMMouseScroll":"mousewheel",this,z)};
_.rL(dQ,_.HV);dQ.prototype.handleEvent=function(a){var z=0,I=0,J=a.event_;J.type=="mousewheel"?(a=LlG(-J.wheelDelta),J.wheelDeltaX!==void 0?(z=LlG(-J.wheelDeltaX),I=LlG(-J.wheelDeltaY)):I=a):(a=J.detail,a>100?a=3:a<-100&&(a=-3),J.axis!==void 0&&J.axis===J.HORIZONTAL_AXIS?z=a:I=a);typeof this.maxDeltaX_==="number"&&(z=_.TO(z,-this.maxDeltaX_,this.maxDeltaX_));typeof this.maxDeltaY_==="number"&&(I=_.TO(I,-this.maxDeltaY_,this.maxDeltaY_));this.isRtl_&&(z=-z);z=new lZo(a,J,z,I);this.dispatchEvent(z)};
var LlG=function(a){return _.ue&&(_.H7x||h5x)&&a%40!=0?a:a/40};
dQ.prototype.disposeInternal=function(){dQ.superClass_.disposeInternal.call(this);hj(this.listenKey_);this.listenKey_=null};
var lZo=function(a,z,I,J){_.ss.call(this,z);this.type="mousewheel";this.detail=a;this.deltaX=I;this.deltaY=J};
_.rL(lZo,_.ss);_.ji=function(a){var z="instance_";if(a.instance_&&a.hasOwnProperty(z))return a.instance_;z=new a;return a.instance_=z};var NoE;var pLi=_.kK(["https://about:blank"]),wLI=_.kK(['javascript:""']),mVX=_.kK(["about:blank"]);_.rL(wQ,j3$);_.Z=wQ.prototype;_.Z.JSC$10150_url_="";_.Z.JSC$10150_iframe_=null;_.Z.iframeLoaded_=!1;_.Z.loadedFired_=!1;_.Z.callback_=function(){};
_.Z.enterDocument=function(){wQ.superClass_.enterDocument.call(this);ZIp(this.getBackgroundElement(),WD(this))};
_.Z.render=function(a){var z=this;wQ.superClass_.render.call(this,a);this.useGapi_?meI(this.iframeManager_,window).then(function(){return yC1(z)}).then(null,function(){z.callback_({action:"error"})}):kWj(this)};
var yC1=function(a){var z=a.JSC$10099_dom_.JSC$9286_createDom("div",["picker-dialog-content","picker-frame"]);_.po(z,!1);a.getContentElement().appendChild(z);return yPi(a.iframeManager_,z,function(I){var J=EPw(I["iframe-command"]);switch(J.getCommand()){case 1:I=a.callback_;J=_.JC(J,jq,2);var r="";switch(J.getStatus()){case 2:r="cancel";break;case 1:r="picked";break;case 3:r="error"}var P=_.af(J,Vg,2,_.jW(M2d));J=P.length===0?{action:r}:QbO(P,r,_.JC(J,NOG,7));I.call(a,J);a.setVisible(!1);break;case 4:Too(a);
a.callback_({action:"loaded"});break;case 7:case 8:I=a.callback_;a:{r=J.getCommand();P=_.JC(J,jq,2);switch(r){case 7:r="uploadScheduled";break;case 8:r="uploadStateChange";break;default:J={};break a}J=_.af(P,Vg,2,_.jW(M2d));if(J.length===0)J={action:r};else{var N=_.JC(P,NOG,7);P=N&&_.vb(N,1);N=O1o(N);J=sbf(J,r,P,N)}}I.call(a,J)}},a.JSC$10150_url_,a.targetId_,a.rpcToken_).then(function(I){a.JSC$10150_iframe_=I.getIframeEl();
Mpw(a);_.po(a.JSC$10150_iframe_.parentElement,!0);_.eg(a.getElement(),"picker-dialog");cCX(a);return I})},kWj=function(a){a.JSC$10150_iframe_=a.JSC$10099_dom_.JSC$9286_createDom("IFRAME",{id:a.targetId_,
name:a.targetId_,"class":"picker-frame",frameBorder:"0",allow:"camera"});_.lj(a.JSC$10150_iframe_,Ynv(a));_.eg(a.getElement(),"picker-dialog");a.getContentElement().appendChild(a.JSC$10150_iframe_);WD(a).listen(a.JSC$10150_iframe_,"load",function(){return void Mpw(a)});
a.JSC$10150_iframe_.src=a.JSC$10150_url_;cCX(a)},eT1=function(a){qno(a,(0,_.HW)(function(z){z.setAuthToken(this.targetId_,this.rpcToken_)},a))},cCX=function(a){var z=_.Lo(_.Rf(a.JSC$10150_url_),"title");
z&&a.setTitle(z)},Ynv=function(a){return _.g7G("Internet Explorer")>=7&&_.Pp(a.JSC$10150_url_,"https")?_.Jz(pLi):_.NS?_.Jz(wLI):_.Jz(mVX)},Mpw=function(a){eT1(a);
a.iframeLoaded_=!0;a.JSC$10150_iframe_.tabIndex=0;a.isVisible()&&a.focus()};
wQ.prototype.handleKeydown_=function(a){a.keyCode==27&&(this.setVisible(!1),this.callback_({action:"cancel"}),a.stopPropagation(),a.preventDefault())};
var qno=function(a,z){var I=a.JSC$10148_gadgetsDomHelper_;rCd(function(){z(I.getWindow().gadgets.rpc)},I)};
wQ.prototype.setUrl=function(a){a=_.lE(new _.cJ(a),"rpcService",this.targetId_);_.lE(a,"rpctoken",this.rpcToken_);_.rG(a,"rpctoken="+this.rpcToken_);_.aR(a,"https");this.JSC$10150_url_=a.toString();this.JSC$10150_iframe_&&(this.JSC$10150_iframe_.src=this.JSC$10150_url_)};
var aRX=function(a,z){a.callback_=z;qno(a,(0,_.HW)(function(I){I.register(this.targetId_,(0,_.HW)(this.handlePickerAction_,this))},a))};
wQ.prototype.handlePickerAction_=function(a){var z=a.action;z=="loaded"&&(this.loadedFired_=!0,jOo(this,new aZG(this.isVisible())),zX1(this),Too(this),WD(this).unlisten(this.JSC$10099_dom_.getWindow(),"keydown",this.handleKeydown_),this.JSC$10150_iframe_.tabIndex=0);z!="picked"&&z!="cancel"||this.setVisible(!1);this.callback_(a)};
var zX1=function(a){a.JSC$10150_appId_&&jOo(a,new eZG(a.JSC$10150_appId_,window.location.protocol+"//"+window.location.host))};
wQ.prototype.setRelayUrl=function(a){qno(this,(0,_.HW)(function(z){z.setRelayUrl(this.targetId_,a)},this))};
var jOo=function(a,z){a.useGapi_&&qz1(z,a.iframeManager_).then(null,function(){a.callback_({action:"error"})});
qno(a,(0,_.HW)(function(I){I.call(this.targetId_,"picker",null,z)},a))};
wQ.prototype.resizePicker_=function(){var a=$8(this.JSC$10099_dom_.JSC$9284_document_)||window;if(_.Lo(_.Rf(this.JSC$10150_url_),"ignoreLimits")=="true")a=new _.fB(this.preferredDialogWidth_,this.preferredDialogHeight_);else if(_.Lo(_.Rf(this.JSC$10150_url_),"shadeDialog")=="true"){var z=vkO(this);z=nZ1(z);var I=_.Az(a);a=I.width-80;I=I.height-40;z&&(a-=z.left?z.left:0,a-=z.right?z.right:0,I-=z.top?z.top:0,I-=z.bottom?z.bottom:0);a=new _.fB(a>0?a:0,I>0?I:0)}else(z=this.preferredDialogWidth_)?(z=Math.max(320,
Math.min(1051,z)),(I=this.preferredDialogHeight_)||(I=_.Az(a).height*.85),I=Math.max(480,Math.min(650,I))):(z=_.Az(a),I=z.width*.618,I=I<z.height?Math.round(Math.max(480,Math.min(650,I*.85))):Math.round(Math.max(480,Math.min(650,z.height*.85))),z=Math.round(I/.618)),a=_.Az(a),z=Math.min(z,Math.max(a.width,320)),I=Math.min(I,Math.max(a.height,480)),a=new _.fB(z,I);_.BEJ(this.getContentElement(),a);this.reposition()};
wQ.prototype.reposition=function(){if(_.Lo(_.Rf(this.JSC$10150_url_),"shadeDialog")=="true"){var a=OZi(this.getElement()),z=_.Az(this.JSC$10099_dom_.getWindow());a=Math.floor(z.width/2-a.width/2);z=vkO(this);if(z=nZ1(z)){var I=z.left?z.left:0;I+=z.right?z.right:0;a=Math.floor(a-I/2)}a=a>0?a:0;z=sh(this.JSC$10099_dom_).y;Du(this.getElement(),a,z)}else wQ.superClass_.reposition.call(this)};
wQ.prototype.setVisible=function(a){if(a!=this.isVisible()&&this.autoSizeDialog_){var z=this.JSC$10099_dom_.getWindow();a?(this.resizePicker_(),WD(this).listen(z,"resize",this.resizePicker_),this.iframeLoaded_||WD(this).listen(z,"keydown",this.handleKeydown_)):(WD(this).unlisten(z,"resize",this.resizePicker_),this.iframeLoaded_||WD(this).unlisten(z,"keydown",this.handleKeydown_))}wQ.superClass_.setVisible.call(this,a);jOo(this,new aZG(a))};
wQ.prototype.focus=function(){wQ.superClass_.focus.call(this);if(this.JSC$10150_iframe_&&this.iframeLoaded_&&this.loadedFired_)try{this.JSC$10150_iframe_.focus()}catch(a){}};var Xb=function(a,z){z=z===void 0?wQ:z;$l.call(this,a);this.pickerConstructor=z;this.urlParamMap_=new Map;this.urlParamMap_.set("protocol","gadgets");(a=window.location.origin)||(a=window.location.protocol+"//"+window.location.host);a&&this.urlParamMap_.set("origin",a);this.postProcessors_=[]};
_.b(Xb,zTx);Xb.prototype.JSC$10155_disposeOnHide_=!1;
Xb.prototype.build=function(){this.JSC$10056_appId_&&this.urlParamMap_.has("oauth_token")&&this.urlParamMap_.set("appId",this.JSC$10056_appId_);this.getRelayUrl()||this.setRelayUrl(_.IR(_.rG(_.J4(_.Rf(window.location.href)),""),"/favicon.ico").toString());this.urlParamMap_.set("ifls",Date.now());if(this.urlParamMap_.get("minimal"))throw Error("fb");var a=new this.pickerConstructor(IRj(this).toString(),!0,null,this.dialogWidth_,this.dialogHeight_,"",void 0,!1,!1);a.JSC$10132_disposeOnHide_=this.JSC$10155_disposeOnHide_;
a.JSC$10150_appId_=this.JSC$10056_appId_;a.loadedFired_&&zX1(a);aRX(a,this.callback_);return a};
var JJj=function(a){a.urlParamMap_.set("multiselectEnabled","true");return a};
_.Z=Xb.prototype;_.Z.getHeight=function(){return this.dialogHeight_};
_.Z.getProtocol=function(){return this.urlParamMap_.get("protocol")};
_.Z.getRelayUrl=function(){return this.urlParamMap_.get("parent")};
_.Z.getTitle=function(){return this.urlParamMap_.get("title")};
_.Z.getWidth=function(){return this.dialogWidth_};
var rJJ=function(a){a.JSC$10155_disposeOnHide_=void 0;return a};
Xb.prototype.setRelayUrl=function(a){this.urlParamMap_.set("parent",a);return this};
var P9I=function(a,z){a.urlParamMap_.set("selectButtonLabel",z);return a};
Xb.prototype.setSize=function(a,z){this.dialogWidth_=a;this.dialogHeight_=z;return this};
Xb.prototype.setTitle=function(a){this.urlParamMap_.set("title",a);return this};
var IRj=function(a){a.postProcessors_.length&&a.urlParamMap_.set("pp",JSON.stringify(a.postProcessors_));a.urlParamMap_.set("nav",unI(a.nav_));var z=new _.cJ(a.getBaseUrl());a.urlParamMap_.forEach(function(I,J){_.lE(z,J,I)});
return z};var N2X=function(a,z){a.name!==void 0?(this.name=a.name,this.code=Zv1[a.name]):(this.code=a=a.code,this.name=C9w(a));_.aE.call(this,xOo("%s %s",this.name,z))};
_.rL(N2X,_.aE);var C9w=function(a){var z=_.x8.findKey(Zv1,function(I){return a==I});
if(z===void 0)throw Error("hb`"+a);return z},mm={},Zv1=(mm.AbortError=3,mm.EncodingError=5,mm.InvalidModificationError=9,mm.InvalidStateError=7,mm.NotFoundError=1,mm.NotReadableError=4,mm.NoModificationAllowedError=6,mm.PathExistsError=12,mm.QuotaExceededError=10,mm.SecurityError=2,mm.SyntaxError=8,mm.TypeMismatchError=11,mm);var tFw=function(a,z){_.AH.call(this,a.type,z);this.event_=a};
_.rL(tFw,_.AH);var ude=function(a,z,I){I===void 0&&(I=a.size);return a.slice?a.slice(z,I):null};var gkI=new WeakMap,BoG=function(a,z){a=[a];for(var I=z.length-1;I>=0;--I)a.push(typeof z[I],z[I]);return a.join("\v")};_.fZ3(function(){if(!_.IE.Blob)return!1;var a=new Uint8Array(100);try{var z=new Blob([a])}catch(I){return!1}return z.size!=100?!1:!0});
var E01=_.fZ3(function(){if(!_.IE.Blob)return!1;var a=new Uint8Array(100);try{var z=new Blob([a])}catch(I){return!1}return ude(z,0,1)===null?!1:!0});_.IE.U3bHHf!=null||(_.IE.U3bHHf=0);_.IE.U3bHHf++;_.B2i=new WeakMap;_.g01=new WeakMap;var s3G={};var kl=void 0;var Kl1=Symbol("pb");var XLd=Yl("WizInjectionContext_Dispatcher");var qI=Symbol("qb");var u1,AD;u1=function(){this.afterRenderCallbacks=null};
_.kXp=Symbol("rb");AD=function(a){this.props=a;this.__unmounted=!1};
AD.prototype.didPatch=function(){};
AD.prototype.didMount=function(){};
AD.prototype.didUnmount=function(){};
AD.prototype.didUpdate=function(){};_.iIG=Yl("WizInjectionContext_RootElement");var vkm=Yl("WizInjectionContext_AppContext"),xV1=Yl("WizInjectionContext_ModelRootElement"),GW3=Yl("WizInjectionContext_RendererData"),$VI=Yl("WizInjectionContext_InjectingConstructor"),Snx=Yl("WizInjectionContext_AsyncDeps"),To1={};var RT0=!1;var wLM={enableAttributeSanitization:!0,enableComponentStacksInErrorMessages:!0,enableContextBasedComponentStacks:!1,enableContextPerComponent:fSi,enableLazyTsx:AmG,enablePerformanceTiming:!1,enablePerformanceTracing:!1,alwaysTrackContexts:!1,enableClientOnlyWizVeLogging:!0,enableQueueEffectAndOnInitInitialRuns:O7i,disableSoyJsRenderEvents:!1,flushRenderEffectsDuringRender:!1,legacyTriggerSoyRendererEvents:!1};var eW=Object.assign({},{attributes:{},handleError:function(a){throw a;}},wLM);var Ovi=Symbol("vb"),Of=Symbol("wb"),T2$=Symbol("xb"),$mi=Symbol("yb"),L_O=$G(function(a){return ah(a)&&Ovi in a});var qn1=Symbol("zb"),yB={},cCd=(yB[qn1]=!0,yB.debugName="[component]",yB.getComponentStack=function(){for(var a=[],z=this;z;)eT0(z)&&a.push(z.debugName),z=z.parent;return a},yB.registerSignal=function(){},yB.registerEffect=function(){},yB);var jJ=null,Ih=!1,IRi=1,Pg=Symbol("Ab"),Ef={version:0,lastCleanEpoch:0,dirty:!1,producers:void 0,producersTail:void 0,consumers:void 0,consumersTail:void 0,recomputing:!1,consumerAllowSignalWrites:!1,consumerIsAlwaysLive:!1,kind:"unknown",producerMustRecompute:function(){return!1},
producerRecomputeValue:function(){},
consumerMarkedDirty:function(){},
consumerOnSignalRead:function(){}};var kT=Symbol("Bb"),Mk=Symbol("Cb"),r1=Symbol("Db"),udp=Object.assign({},Ef,{value:kT,dirty:!0,error:null,equal:aRd,kind:"computed",producerMustRecompute:function(a){return a.value===kT||a.value===Mk},
producerRecomputeValue:function(a){if(a.value===Mk)throw Error("Z");var z=a.value;a.value=Mk;var I=C9G(a),J=!1;try{var r=a.computation();ze(null);J=z!==kT&&z!==r1&&r!==r1&&a.equal(z,r)}catch(P){r=r1,a.error=P}finally{tFG(a,I)}J?a.value=z:(a.value=r,a.version++)}});var Ovx=function(){throw Error();};var AJ1=null,B2x=Object.assign({},Ef,{equal:aRd,value:void 0,kind:"signal"});Object.assign({},Ef,{value:kT,dirty:!0,error:null,equal:aRd,kind:"linkedSignal",producerMustRecompute:function(a){return a.value===kT||a.value===Mk},
producerRecomputeValue:function(a){if(a.value===Mk)throw Error("Z");var z=a.value;a.value=Mk;var I=C9G(a);try{var J=a.source();var r=a.computation(J,z===kT||z===r1?void 0:{source:a.sourceValue,value:z});a.sourceValue=J}catch(P){r=r1,a.error=P}finally{tFG(a,I)}z!==kT&&r!==r1&&a.equal(z,r)?a.value=z:(a.value=r,a.version++)}});Object.assign({},Ef,{consumerIsAlwaysLive:!0,consumerAllowSignalWrites:!1,consumerMarkedDirty:function(a){a.schedule!==null&&a.schedule(a.ref)},
hasRun:!1,cleanupFn:function(){}});var n0G=Symbol("Eb"),NI=Symbol("Fb");var t2=Array.isArray;var ivi;var fRG={},v0i=Sw0(Object.assign({},{consumerAllowSignalWrites:!0},fRG)),B3=Sw0(Object.assign({},{consumerAllowSignalWrites:!0},fRG));var fW=0,A2=!1,cD=function(){this.queue=new Set};
cD.prototype.remove=function(a){this.queue.delete(a)};
cD.prototype.clear=function(){this.queue.clear()};
var AJo=function(){cD.apply(this,arguments)};
_.b(AJo,cD);AJo.prototype.schedule=function(a){this.queue.add(a)};
AJo.prototype.flush=function(){if(this.queue.size){A2=!0;try{for(var a=_.C(this.queue),z=a.next();!z.done;z=a.next()){var I=z.value;this.queue.delete(I);try{I.run()}catch(J){sOv(J)}}}finally{A2=!1}}};
var n0w=new AJo,qk=function(){cD.apply(this,arguments)};
_.b(qk,cD);var K_G=function(){qk.apply(this,arguments)};
_.b(K_G,qk);K_G.prototype.schedule=function(a){a.hasRun?this.queue.add(a):a.run()};
K_G.prototype.flush=function(){if(this.queue.size)if(eW.flushRenderEffectsDuringRender){var a=this.queue;this.queue=new Set;lRE(a)}else lRE(this.queue)};
var GxG=new K_G,F_I=function(){qk.apply(this,arguments)};
_.b(F_I,qk);F_I.prototype.schedule=function(a){var z=this;return _.t(function(I){if(I.nextAddress==1)return a.hasRun?I.jumpTo(2):I.yield(Promise.resolve(),3);if(I.nextAddress!=2)return a.run(),I.return();z.queue.add(a);_.nu(I)})};
F_I.prototype.flush=function(){var a=this;return _.t(function(z){if(z.nextAddress==1)return a.queue.size?z.yield(Promise.resolve(),2):z.return();lRE(a.queue);_.nu(z)})};
var dm0=new F_I,Hvj=function(){qk.apply(this,arguments)};
_.b(Hvj,qk);Hvj.prototype.schedule=function(a){this.queue.add(a)};
Hvj.prototype.flush=function(){this.queue.size&&lRE(this.queue)};
var Xad=new Hvj,DmE=[GxG,n0w,Xad,dm0],bvi=[GxG,Xad,dm0],o01=[];AJ1=function(){RX$();for(var a=_.C(o01),z=a.next();!z.done;z=a.next())z=z.value,z()};
var sOv=J1;var KW=Symbol("Kb");var nW=null,mmM,yJd=null,kx0;var ea={},hXO=Object.assign({},Ef,(ea[Ovi]=!0,ea.effectType=Of,ea.isResettableContext=!0,ea.hasRun=!1,ea.effectFn=null,ea.consumerIsAlwaysLive=!0,ea.consumerAllowSignalWrites=!0,ea.consumerMarkedDirty=W_E,ea.kind="effect",ea.run=function(){if(this.effectFn!==null&&!this.isDisposed){if(Ih)throw Error("Lb");this.dirty=!1;if(!this.hasRun||JJi(this)){this.hasRun=!0;Q3i(this);var a=_.MC(this),z=C9G(this);yC0("effectRun",this.debugName);try{bF(this.effectFn,this.componentStack,this)}catch(I){throw eW.enableContextBasedComponentStacks&&
Hg(I),I;}finally{kWi("effectRun",this.debugName),tFG(this,z),_.MC(a)}}}},ea.componentStack=void 0,ea.debugName="[effect]",ea[Symbol.dispose]=function(){if(J2(this))for(var a=this.producers;a!==void 0;)a=N2d(a);
this.consumersTail=this.consumers=this.producersTail=this.producers=void 0;a=_.C(bvi);for(var z=a.next();!z.done;z=a.next())z.value.remove(this);VpE(this)},ea));var YwO=Object.assign({},hXO,{effectType:T2$});var qwG=Symbol("Mb");var eXp=Object.assign({},hXO,{effectType:Of});var drI=new Set("allowfullscreen allowtransparency async autofocus autoplay checked controls default defer disabled disableremoteplayback formnovalidate hidden inert ismap itemscope jsshadow jsslot loop multiple muted nomodule novalidate open playsinline readonly required reversed scoped seamless selected spellcheck sortable typemustmatch".split(" "));var zQd={align:1,alt:1,"aria-activedescendant":10,"aria-atomic":1,"aria-autocomplete":1,"aria-busy":1,"aria-checked":1,"aria-controls":10,"aria-current":1,"aria-describedby":10,"aria-disabled":1,"aria-dropeffect":1,"aria-expanded":1,"aria-haspopup":1,"aria-hidden":1,"aria-invalid":1,"aria-label":1,"aria-labelledby":10,"aria-level":1,"aria-live":1,"aria-multiline":1,"aria-multiselectable":1,"aria-orientation":1,"aria-owns":10,"aria-posinset":1,"aria-pressed":1,"aria-readonly":1,"aria-relevant":1,"aria-required":1,
"aria-selected":1,"aria-setsize":1,"aria-sort":1,"aria-valuemax":1,"aria-valuemin":1,"aria-valuenow":1,"aria-valuetext":1,async:8,autocapitalize:1,autocomplete:1,autocorrect:1,autofocus:1,autoplay:1,bgcolor:1,border:1,cellpadding:1,cellspacing:1,checked:1,cite:1,"class":1,color:1,cols:1,colspan:1,contenteditable:1,controls:1,controlslist:1,coords:1,crossorigin:1,datetime:1,dir:8,disabled:1,download:1,draggable:1,enctype:1,face:1,"for":10,formenctype:1,frameborder:1,height:1,hidden:1,href:4,hreflang:1,
id:10,inert:1,ismap:1,itemid:1,itemprop:1,itemref:1,itemscope:1,itemtype:1,label:1,lang:1,list:10,loading:8,loop:1,max:1,maxlength:1,media:1,min:1,minlength:1,multiple:1,muted:1,name:10,nonce:1,open:1,placeholder:1,playsinline:1,poster:1,preload:1,rel:1,required:1,reversed:1,role:1,rows:1,rowspan:1,selected:1,shape:1,size:1,sizes:1,slot:1,span:1,spellcheck:1,src:4,srcset:12,start:1,step:1,style:5,summary:1,tabindex:1,target:8,title:1,translate:1,type:1,usemap:1,valign:1,value:1,width:1,wrap:1},jGp=
{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}]}},vMd={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},rG7=[{auto:!0,ltr:!0,rtl:!0},{async:!0},{eager:!0,lazy:!0},{_self:!0,_blank:!0}],JGG={"*":{async:1,dir:0,loading:2,target:3}};var VFX=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:\/?#]*(?:[\/?#]|$))/i,a4={},Z6x=(a4[1]=null,a4[2]=function(a,z){return z instanceof Dx?L4(z):$P.toString()},a4[3]=function(a,z){return Su(z)?_.ij(z):VFX.test(String(z))?String(z):$P.toString()},a4[4]=function(a,z){return z instanceof FG?_.bj(z):$P.toString()},a4[5]=function(a,z){return String(z)},a4[7]=null,a4[8]=null,a4[10]=null,a4);var epp=Symbol("Pb");var f_G=function(a){var z=QOw,I=a,J="",r="",P=1;a<0&&(a=-a);if(a===Infinity)a=(Infinity*Math.sign(I)).toString();else{for(var N=0;N<Sw1.length;N++){var u=Sw1[N];P=z[u];if(a>=P||P<=1&&a>.1*P){J=u;break}}J?(J+="B",r=" "):P=1;a=Math.round(I/P*10)/10+r+J}return a},Sw1="Y Z E P T G M K  m u n".split(" "),QOw={"":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};_.ivj=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 JD={};RegExp.prototype.hasOwnProperty("sticky");var ovG=function(a){a=String(a);for(var z=function(J,r,P){for(var N=Math.min(r.length-P,J.length),u=0;u<N;u++){var E=r[P+u];if(J[u]!==("A"<=E&&E<="Z"?E.toLowerCase():E))return!1}return!0},I=0;(I=a.indexOf("<",I))!=-1;){if(z("\x3c/script",a,I)||z("\x3c!--",a,I))return"zSoyz";
I+=1}return a};var Te={default:"__default"};var B3G=Object.prototype.hasOwnProperty;tH0.prototype=Object.create(null);var eF=fVI();var y3=null;var i60=function(a){this.created=[];this.deleted=[];this.node=a};var xrG=typeof Node!=="undefined"&&Node.prototype.getRootNode||function(){for(var a=this,z=a;a;)z=a,a=a.parentNode;return z};var sG1=function(a,z){this._attrsArr=null;this.staticsApplied=!1;this.nameOrCtor=a;this.key=z;this.text=void 0};var Rh=null,LW=null,Uf=null,pW=null,b6p=[],H6G=Kk1,w1=[],mA=[],qNp=function(a){return vv1(function(z,I,J){Uf=LW=z;LW=null;I(J);Fkx(null);LW=Uf;Uf=Uf.parentNode;return z},a)}(),YNp=function(a){return vv1(function(z,I,J){var r={nextSibling:z};
LW=r;I(J);Uf&&Fkx(z.nextSibling);return r===LW?null:LW},a)}();var kX=[],$rI=0;var MI=new tH0;var GQ=new tH0;var xmG=fVI(),RQM=xmG[Te.default],Drp=xmG.style,WkG=["focusin","focusout"],pvO="annotation-xml color-profile font-face font-face-src font-face-uri font-face-format font-face-name missing-glyph".split(" ");var QAM=function(){},OLG=function(){},GXM=function(){},iLG=function(){};var YX=Symbol("Wb");var MHp,k$3=yGE;var C3=Symbol("Xb");var v2E=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(" ")),
xZx=new Set(["a","font","script","style","title"]);var P3={setUp:Cdx,tearDown:Cdx,log:Cdx,logNodeRange:Cdx,graft:function(a,z){z()}};var gq={afterOpen:function(){},
onElementDeleted:function(){},
beforeVisit:function(){},
beforeRender:function(){},
afterRender:function(){},
didMount:function(){},
didPatch:function(){},
didUnmount:function(){},
didUpdate:function(){}};var Oe=null,f3=function(a,z){AD.call(this,a);var I=this;this.functionComponent=z;this.hooks=[];this.hookCounter=0;this.disposeEffects=Q3(function(J){I.effectContext=J;_.V3(function(){n2m(I,I.el)})},eW.alwaysTrackContexts||!!kl)};
_.b(f3,AD);f3.prototype.render=function(a){var z=Oe;Oe=this;this.hookCounter=0;var I=ze(B3),J=_.MC(this.effectContext);try{return yC0("render",this.componentName),this.functionComponent(a)}finally{kWi("render",this.componentName),_.MC(J),ze(I),Oe=z}};
_.eH.Object.defineProperties(f3.prototype,{componentName:{configurable:!0,enumerable:!0,get:function(){return paI(this.functionComponent)}}});var $ZI=Symbol("kc"),hFx=function(a,z,I){this.afterRenderCallbacks=null;this.kind=a;this.props=z;this.children=I};
_.b(hFx,u1);hFx.prototype.render=function(){var a=bLd(this.kind,this.props,this.children);if(this.afterRenderCallbacks!=null)for(var z=_.C(this.afterRenderCallbacks),I=z.next();!I.done;I=z.next())I=I.value,a=I(a);return a};
hFx.prototype.getChildren=function(){return this.children};var TF$=[];Ovx=function(a){throw Error("ob`"+a.debugName);};
(function(){var a=y3;y3=function(z){a==null||a(z);dZi(z)}})();var v0j=new WeakMap,Gxl=0;var $mj=void 0,XaX={},T2f=new WeakMap,omI={getComponent:function(a){if(a.hasAttribute("ng-version"))return XaX;if(!a.__wizComponent)return null;a=a.__wizComponent;T2f.set(a.propsAndState,a);return a.propsAndState},
getDirectiveMetadata:function(a){if(a===XaX)return{framework:"wiz",name:"<Root>",props:{}};a=T2f.get(a);if(!a)throw Error("lc");return{framework:"wiz",name:a.name,props:Object.fromEntries(Object.keys(a.props).map(function(z){return[z,z]}))}},
"\u0275setProfiler":function(a){var z;(z=$mj)==null||z();$mj=UmG(function(){a(2)})},
getInjector:function(a){return a.__wizComponent},
"\u0275getSignalGraph":function(a){var z;a=(z=a.effects)!=null?z:[];var I=WKm(a),J=Array.from(I.keys());z=[];a=[];for(var r=new Map,P=0;P<J.length;P++)r.set(J[P],P);I=_.C(I.entries());for(J=I.next();!J.done;J=I.next()){P=_.C(J.value);J=P.next().value;var N=P.next().value;P=J;J=r.get(P);var u=v0j.get(P);u||(u=Gxl.toString(),v0j.set(P,u),Gxl++);var E=void 0,O=((E=P.debugName)!=null?E:"").replace(/@.+/,"");if(P.kind==="computed"){E=P.computation;var f=void 0;z.push({label:O,value:P.value,kind:P.kind,
epoch:P.version,debuggableFn:(f=E.userFn)!=null?f:E,id:u})}else if(P.kind==="signal")z.push({label:O,value:P.value,kind:P.kind,epoch:P.version,debuggableFn:P.debugFn,id:u});else if(P.kind==="effect"){f=void 0;E=(f=P.effectFn)!=null?f:void 0;var A=f=void 0;z.push({label:O,kind:P.kind,epoch:P.version,debuggableFn:(A=(f=E)==null?void 0:f.userFn)!=null?A:E,id:u})}else z.push({label:O,kind:P.kind,epoch:P.version,id:u});P=_.C(N);for(N=P.next();!N.done;N=P.next())a.push({consumer:J,producer:r.get(N.value)})}return{nodes:z,
edges:a}},
isSignal:function(a){return typeof a==="function"&&a[Pg]!==void 0}};Object.assign({},hXO,{effectType:Of,hasRun:!0,elementRef:null,attributes:null,effectFn:function(){var a=this.elementRef;var z;a.element!=null||(a.element=(z=a.document.getElementById(a.value))!=null?z:void 0);a=a.element;for(z=this.attributes;z;){var I=z.signal();I!==z.prevValue&&(z.prevValue=I,z.namespace===1?a[z.name]=I:drI.has(z.name)?Xp(a,z.name,I?"":null):Xp(a,z.name,I));z=z.next}}});Object.assign({},hXO,{effectType:Of,hasRun:!0});_.g.debugName="RlDudd";var o2x={nonNullableCondIsNull:function(){return Error("pc")}};var pJ3=function(){this.map=new Map};
pJ3.prototype.push=function(a,z){var I=this.map;I.has(a)&&(this.multi||(this.multi=new Map),this.multi.set(z,I.get(a)));I.set(a,z)};
pJ3.prototype.pop=function(a){var z=this.map,I=z.get(a),J;I!==void 0&&((J=this.multi)==null?0:J.has(I))?(z.set(a,this.multi.get(I)),this.multi.delete(I)):z.delete(a);return I};_.se.debugName="nsTGHd";_.n3.debugName="tbhMcf";_.K3.debugName="zyMFzb";_.Fw.debugName="vI1rtf";_.c$G={OUT_OF_ORDER_HOOK_CALL:function(a){return Error("qc`"+a)},
PRIMITIVE_INVALID_HOOK_CALL:function(){return Error("rc")},
RETURNING_CLEANUP_FUNCTION_FROM_ONINIT:function(){return Error("sc")},
SIGNAL_INVALID_HOOK_CALL:function(){return Error("tc")},
USE_ELEMENT_ACCESSED_DURING_RENDER:function(a,z){return Error("uc`"+((z===void 0?0:z)?"IDOM":"Reactive")+"`"+(H3(a)?a.description:a))},
USE_ELEMENT_UNEXPECTED_ELEMENT:function(a,z){return Error("vc`"+(H3(a)?a.description:a)+"`"+z)},
USE_ELEMENT_MULTIPLE_ASSIGNMENTS:function(a){return Error("wc`"+(H3(a)?a.description:a))},
USE_ELEMENT_NOT_ASSIGNED:function(a){return Error("xc`"+(H3(a)?a.description:a))},
USE_ELEMENT_NOT_ASSIGNED_CONTROL_FLOW:function(a){return Error("yc`"+(H3(a)?a.description:a))}};MHp=VlM;var JRi=Symbol("zc");A$O({beforeRender:function(a){var z=_.MC(a.effectContext);try{var I;((I=a.__syncEffects)==null?0:I.length)&&PIE(a.__syncEffects)}finally{_.MC(z)}},
didPatch:function(a){var z=_.MC(a.effectContext);try{var I;((I=a.__syncEffects)==null?0:I.length)&&PIE(a.__syncEffects)}finally{_.MC(z)}},
didUnmount:function(a){var z;((z=a.hooks)==null?0:z.length)&&a.hooks.forEach(rR1)}});var dm1,W_w,o0o;dm1=_.IE.window;_.GZ=(dm1==null?void 0:(W_w=dm1.yt)==null?void 0:W_w.config_)||(dm1==null?void 0:(o0o=dm1.ytcfg)==null?void 0:o0o.data_)||{};_.qe("yt.config_",_.GZ);var Umw={},tEG=[];_.Fn=function(a){var z=_.dO.apply(1,arguments);var I=Error.call(this,a);this.message=I.message;"stack"in I&&(this.stack=I.stack);this.args=[].concat(_.ih(z));Object.setPrototypeOf(this,this.constructor.prototype)};
_.b(_.Fn,Error);var Bn7=function(a,z,I){this.actionName=a;this.optionalAction=z===void 0?!1:z;this.args=I===void 0?null:I;this.returnValue=[]};_.jv=function(a){this.name=a};_.DR=new _.jv("signalAction");var F8M=/^[\w.]*$/,OtO={q:!0,search_query:!0},gAO=String(Bed);var zp;zp=Symbol("Ac");_.I4=function(a){this.name=a};
_.I4.prototype.toString=function(){return"InjectionToken("+this.name+")"};
var HtM=function(a){this.key=a},S_p=function(a){this.deferredKey=a},hgd=function(){var a=this;
this.providers=new Map;this.JSC$10407_deferred=new Map;this.cachedValues=new Map;this.TEST_ONLY={getInjectionSnapshot:function(){return new Map(a.providers)}}};
hgd.prototype.addProvider=function(a){this.providers.set(a.provide,a);var z=this.JSC$10407_deferred.get(a.provide);if(z)try{z.resolver(this.resolve(a.provide))}catch(I){z.rejector(I)}};
hgd.prototype.resolve=function(a){return a instanceof S_p?Dmw(this,a):a instanceof HtM?RXf(this,a.key,[],!0):RXf(this,a,[])};
var Dmw=function(a,z){z=z.deferredKey;if(a.JSC$10407_deferred.has(z))return a.JSC$10407_deferred.get(z).promise;var I={};I.promise=new Promise(function(J,r){I.resolver=J;I.rejector=r});
a.JSC$10407_deferred.set(z,I);return I.promise},RXf=function(a,z,I,J){J=J===void 0?!1:J;
if(I.indexOf(z)>-1)throw Error("Bc`"+z);if(a.cachedValues.has(z))return a.cachedValues.get(z);if(!a.providers.has(z)){if(J)return;throw Error("Cc`"+z);}J=a.providers.get(z);I.push(z);if(J.useValue!==void 0)var r=J.useValue;else if(J.useFactory)r=J[zp]?L_E(a,J[zp],I):[],r=J.useFactory.apply(J,_.ih(r));else if(J.useClass){r=J.useClass;var P=r[zp]?L_E(a,r[zp],I):[];r=new (Function.prototype.bind.apply(r,[null].concat(_.ih(P))))}else throw Error("Dc`"+z);I.pop();J.skipCache||a.cachedValues.set(z,r);return r},
L_E=function(a,z,I){return z?z.map(function(J){return J instanceof HtM?RXf(a,J.key,I,!0):RXf(a,J,I)}):[]};var btd;var l9=new _.I4("ENDPOINT_HANDLER_TOKEN");_.pv=new _.jv("urlEndpoint");var lRw=function(){this.data=[];this.cachedPackedInt52=-1};
lRw.prototype.set=function(a,z){z=z===void 0?!0:z;0<=a&&a<52&&Number.isInteger(a)&&this.data[a]!==z&&(this.data[a]=z,this.cachedPackedInt52=-1)};
lRw.prototype.get=function(a){return!!this.data[a]};
var pav=function(a){a.cachedPackedInt52===-1&&(a.cachedPackedInt52=a.data.reduce(function(z,I,J){return z+(I?Math.pow(2,J):0)},0));
return a.cachedPackedInt52};var L87=function(a){var z=waX;a=a===void 0?_.DH("yt.ads.biscotti.lastId_")||"":a;var I=Object,J=I.assign,r={};r.dt=DC1;r.flash="0";a:{try{var P=z.JSC$10413_win_.top.location.href}catch(e){P=2;break a}P=P?P===z.doc_.location.href?0:1:2}r=(r.frm=P,r);try{r.u_tz=-(new Date).getTimezoneOffset();try{var N=Lp.history.length}catch(e){N=0}r.u_his=N;var u;r.u_h=(u=Lp.screen)==null?void 0:u.height;var E;r.u_w=(E=Lp.screen)==null?void 0:E.width;var O;r.u_ah=(O=Lp.screen)==null?void 0:O.availHeight;var f;r.u_aw=
(f=Lp.screen)==null?void 0:f.availWidth;var A;r.u_cd=(A=Lp.screen)==null?void 0:A.colorDepth}catch(e){}N=z.JSC$10413_win_;try{var n=N.screenX;var F=N.screenY}catch(e){}try{var h=N.outerWidth;var v=N.outerHeight}catch(e){}try{var d=N.innerWidth;var W=N.innerHeight}catch(e){}try{var l=N.screenLeft;var q=N.screenTop}catch(e){}try{d=N.innerWidth,W=N.innerHeight}catch(e){}try{var m=N.screen.availWidth;var M=N.screen.availTop}catch(e){}n=[l,q,n,F,m,M,h,v,d,W];F=uCd(!1,z.JSC$10413_win_.top);h={};var y=y===
void 0?_.IE:y;v=new lRw;"SVGElement"in y&&"createElementNS"in y.document&&v.set(0);d=dEG();d["allow-top-navigation-by-user-activation"]&&v.set(1);d["allow-popups-to-escape-sandbox"]&&v.set(2);y.crypto&&y.crypto.subtle&&v.set(3);"TextDecoder"in y&&"TextEncoder"in y&&v.set(4);y=pav(v);z=(h.bc=y,h.bih=F.height,h.biw=F.width,h.brdim=n.join(),h.vis=zxd(z.doc_),h.wgl=!!Lp.WebGLRenderingContext,h);I=J.call(I,r,z);I.ca_type="image";a&&(I.bid=a);return I},waX=new function(){var a=window.document;
this.JSC$10413_win_=window;this.doc_=a};
_.qe("yt.ads_.signals_.getAdSignalsString",function(a){return fFO(L87(a))});_.JY();navigator.userAgent.indexOf(" (CrKey ");var $$7="XMLHttpRequest"in _.IE?function(){return new XMLHttpRequest}:null;var mmI="client_dev_domain client_dev_expflag client_dev_regex_map client_dev_root_url client_rollout_override expflag forcedCapability jsfeat jsmode mods".split(" "),yJX=[].concat(_.ih(mmI),["client_dev_set_cookie"]);var RgM={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"},d$d="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(_.ih(mmI)),Y_$=!1,oAG=_.lFx,kbG=D$$;var sK1=[{messageFn:function(a){return"Cannot read property '"+a.key+"'"},
patternsForType:{Error:[{regexp:/(Permission denied) to access property "([^']+)"/,groups:["reason","key"]}],TypeError:[{regexp:/Cannot read property '([^']+)' of (null|undefined)/,groups:["key","value"]},{regexp:/\u65e0\u6cd5\u83b7\u53d6\u672a\u5b9a\u4e49\u6216 (null|undefined) \u5f15\u7528\u7684\u5c5e\u6027\u201c([^\u201d]+)\u201d/,groups:["value","key"]},{regexp:/\uc815\uc758\ub418\uc9c0 \uc54a\uc74c \ub610\ub294 (null|undefined) \ucc38\uc870\uc778 '([^']+)' \uc18d\uc131\uc744 \uac00\uc838\uc62c \uc218 \uc5c6\uc2b5\ub2c8\ub2e4./,
groups:["value","key"]},{regexp:/No se puede obtener la propiedad '([^']+)' de referencia nula o sin definir/,groups:["key"]},{regexp:/Unable to get property '([^']+)' of (undefined or null) reference/,groups:["key","value"]},{regexp:/(null) is not an object \(evaluating '(?:([^.]+)\.)?([^']+)'\)/,groups:["value","base","key"]}]}},{messageFn:function(a){return"Cannot call '"+a.key+"'"},
patternsForType:{TypeError:[{regexp:/(?:([^ ]+)?\.)?([^ ]+) is not a function/,groups:["base","key"]},{regexp:/([^ ]+) called on (null or undefined)/,groups:["key","value"]},{regexp:/Object (.*) has no method '([^ ]+)'/,groups:["base","key"]},{regexp:/Object doesn't support property or method '([^ ]+)'/,groups:["key"]},{regexp:/\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u306f '([^']+)' \u30d7\u30ed\u30d1\u30c6\u30a3\u307e\u305f\u306f\u30e1\u30bd\u30c3\u30c9\u3092\u30b5\u30dd\u30fc\u30c8\u3057\u3066\u3044\u307e\u305b\u3093/,
groups:["key"]},{regexp:/\uac1c\uccb4\uac00 '([^']+)' \uc18d\uc131\uc774\ub098 \uba54\uc11c\ub4dc\ub97c \uc9c0\uc6d0\ud558\uc9c0 \uc54a\uc2b5\ub2c8\ub2e4./,groups:["key"]}]}},{messageFn:function(a){return a.key+" is not defined"},
patternsForType:{ReferenceError:[{regexp:/(.*) is not defined/,groups:["key"]},{regexp:/Can't find variable: (.*)/,groups:["key"]}]}}];var kx1={messageWeights:[],callbackWeights:[{callback:jUM,weight:500},{callback:zY1,weight:500}]};var MFw=function(){this.callbackWeights=[];this.messageWeights=[]},cJe,AEO=function(){if(!cJe){var a=cJe=new MFw;
a.messageWeights.length=0;a.callbackWeights.length=0;NuE(a,kx1)}return cJe},NuE=function(a,z){z.messageWeights&&a.messageWeights.push.apply(a.messageWeights,z.messageWeights);
z.callbackWeights&&a.callbackWeights.push.apply(a.callbackWeights,z.callbackWeights)};_.rL(_.gM,_.FC);_.gM.prototype.subscribe=function(a,z,I){var J=this.topics_[a];J||(J=this.topics_[a]=[]);var r=this.JSC$10437_key_;this.subscriptions_[r]=a;this.subscriptions_[r+1]=z;this.subscriptions_[r+2]=I;this.JSC$10437_key_=r+3;J.push(r);return r};
var YwE=function(a){var z=HU1,I=!1,J=z.subscribe("handleError",function(r){I||(I=!0,this.unsubscribeByKey(J),a.apply(void 0,arguments))},z)};
_.gM.prototype.unsubscribe=function(a,z,I){if(a=this.topics_[a]){var J=this.subscriptions_;if(a=a.find(function(r){return J[r+1]==z&&J[r+2]==I}))return this.unsubscribeByKey(a)}return!1};
_.gM.prototype.unsubscribeByKey=function(a){var z=this.subscriptions_[a];if(z){var I=this.topics_[z];this.publishDepth_!=0?(this.pendingKeys_.push(a),this.subscriptions_[a+1]=function(){}):(I&&_.Di(I,a),delete this.subscriptions_[a],delete this.subscriptions_[a+1],delete this.subscriptions_[a+2])}return!!z};
_.gM.prototype.publish=function(a,z){var I=this.topics_[a];if(I){var J=Array(arguments.length-1),r=arguments.length,P;for(P=1;P<r;P++)J[P-1]=arguments[P];if(this.async_)for(P=0;P<I.length;P++)r=I[P],qwl(this.subscriptions_[r+1],this.subscriptions_[r+2],J);else{this.publishDepth_++;try{for(P=0,r=I.length;P<r&&!this.isDisposed();P++){var N=I[P];this.subscriptions_[N+1].apply(this.subscriptions_[N+2],J)}}finally{if(this.publishDepth_--,this.pendingKeys_.length>0&&this.publishDepth_==0)for(;I=this.pendingKeys_.pop();)this.unsubscribeByKey(I)}}return P!=
0}return!1};
var qwl=function(a,z,I){_.hH(function(){a.apply(z,I)})};
_.gM.prototype.clear=function(a){if(a){var z=this.topics_[a];z&&(z.forEach(this.unsubscribeByKey,this),delete this.topics_[a])}else this.subscriptions_.length=0,this.topics_={}};
_.gM.prototype.getCount=function(a){if(a){var z=this.topics_[a];return z?z.length:0}a=0;for(z in this.topics_)a+=this.getCount(z);return a};
_.gM.prototype.disposeInternal=function(){_.gM.superClass_.disposeInternal.call(this);this.clear();this.pendingKeys_.length=0};var HU1=new _.gM;var ZZ=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.GY(a)};
_.b(ZZ,_.ju);ZZ.prototype.getColdHashData=function(){return _.vb(this,3)};
ZZ.prototype.getHotHashData=function(){return _.vb(this,5)};
ZZ.prototype.setHotHashData=function(a){return _.KB(this,5,a)};var OHm=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.GY(a)};
_.b(OHm,_.ju);var lt3=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.GY(a)};
_.b(lt3,_.ju);_.Z=lt3.prototype;_.Z.getDeviceId=function(){return _.vb(this,6)};
_.Z.getExperimentIds=function(a){var z=_.pZ(this,9,_.eI,3,!0);mOG(z,a);return z[a]};
_.Z.getPlayerType=function(){return _.GL(this,36)};
_.Z.setHomeGroupInfo=function(a){return _.gO(this,81,a)};
_.Z.clearLocationPlayabilityToken=function(){return _.PL(this,89)};var fv=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.GY(a)};
_.b(fv,_.ju);fv.prototype.setKey=function(a){return _.KB(this,1,a)};
fv.prototype.getValue=function(){return Xg(this,2,w8E)};
var w8E=[2,3,4,5,6];var eXe=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.GY(a)};
_.b(eXe,_.ju);eXe.prototype.setTrackingParams=function(a){return _.PL(this,1,_.Qi(a,!1))};var p8m=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.GY(a)};
_.b(p8m,_.ju);var sXm=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.GY(a)};
_.b(sXm,_.ju);sXm.prototype.getExperimentIds=function(a){var z=_.pZ(this,5,_.Bf7,3,!0);mOG(z,a);return z[a]};var Kv=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.GY(a)};
_.b(Kv,_.ju);Kv.prototype.getToken=function(){return _.gQ(this,2)};
Kv.prototype.setToken=function(a){return _.KB(this,2,a)};var sw=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.GY(a)};
_.b(sw,_.ju);sw.prototype.setSafetyMode=function(a){return _.ro(this,5,a)};var Ow=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.GY(a)};
_.b(Ow,_.ju);Ow.prototype.setClient=function(a){return _.gO(this,1,a)};var Avx={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 fa1;_.Gr=function(){var a=this;this.deferredInstallPrompt=void 0;this.appInstalledEventFired=!1;_.IE.addEventListener("beforeinstallprompt",function(z){z.preventDefault();a.deferredInstallPrompt=z});
_.IE.addEventListener("appinstalled",function(){a.appInstalledEventFired=!0},{once:!0})};
fa1=function(){if(!_.IE.matchMedia)return"WEB_DISPLAY_MODE_UNKNOWN";try{return _.IE.matchMedia("(display-mode: standalone)").matches?"WEB_DISPLAY_MODE_STANDALONE":_.IE.matchMedia("(display-mode: minimal-ui)").matches?"WEB_DISPLAY_MODE_MINIMAL_UI":_.IE.matchMedia("(display-mode: fullscreen)").matches?"WEB_DISPLAY_MODE_FULLSCREEN":_.IE.matchMedia("(display-mode: browser)").matches?"WEB_DISPLAY_MODE_BROWSER":"WEB_DISPLAY_MODE_UNKNOWN"}catch(a){return"WEB_DISPLAY_MODE_UNKNOWN"}};var F1m=function(){this.syncHeaders=!0},HH3=function(a){var z={},I=[];
"USER_SESSION_ID"in _.GZ&&I.push({key:"u",value:_.Xw("USER_SESSION_ID")});if(I=_.pK$(I))z.Authorization=I,I=a=a==null?void 0:a.sessionIndex,I===void 0&&(I=Number(_.Xw("SESSION_INDEX",0)),I=isNaN(I)?0:I),_.K("voice_search_auth_header_removal")||(z["X-Goog-AuthUser"]=I.toString()),"INNERTUBE_HOST_OVERRIDE"in _.GZ||(z["X-Origin"]=window.location.origin),a===void 0&&"DELEGATED_SESSION_ID"in _.GZ&&(z["X-Goog-PageId"]=_.Xw("DELEGATED_SESSION_ID"));return z};var aVv={identityType:"UNAUTHENTICATED_IDENTITY_TYPE_UNKNOWN"};var JA=_.DH("ytglobal.prefsUserPrefsPrefs_")||{},jGe;_.qe("ytglobal.prefsUserPrefsPrefs_",JA);_.ra=function(){this.cookieName=_.Xw("ALT_PREF_COOKIE_NAME","PREF");this.cookieDomain=_.Xw("ALT_PREF_COOKIE_DOMAIN","youtube.com");var a=_.f1.get(this.cookieName,void 0);a&&this.parse(a)};
_.Kt=function(){jGe||(jGe=new _.ra);return jGe};
_.ra.prototype.get=function(a,z){zQX(a);IVO(a);a=JA[a]!==void 0?JA[a].toString():null;return a!=null?a:z?z:""};
_.ra.prototype.set=function(a,z){zQX(a);IVO(a);if(z==null)throw Error("Gc");JA[a]=z.toString()};
_.ra.prototype.getFlag=function(a){return!!((JGw("f"+(Math.floor(a/31)+1))||0)&1<<a%31)};
_.Fz=function(a,z,I){a="f"+(Math.floor(z/31)+1);z=1<<z%31;var J=JGw(a)||0;J=I?J|z:J&~z;J===0?delete JA[a]:(I=J.toString(16),JA[a]=I.toString())};
_.ra.prototype.remove=function(a){zQX(a);IVO(a);delete JA[a]};
_.ra.prototype.save=function(){var a=!0;_.K("web_secure_pref_cookie_killswitch")&&(a=!1);_.AP(this.cookieName,this.dump(),63072E3,this.cookieDomain,a)};
_.ra.prototype.clear=function(){_.x8.clear(JA)};
_.ra.prototype.dump=function(){var a=[],z;for(z in JA)JA.hasOwnProperty(z)&&a.push(z+"="+encodeURIComponent(String(JA[z])));return a.join("&")};
var IVO=function(a){if(/^f([1-9][0-9]*)$/.test(a))throw Error("Hc`"+a);},zQX=function(a){if(!/^\w+$/.test(a))throw Error("Ic`"+a);
},JGw=function(a){a=JA[a]!==void 0?JA[a].toString():null;
return a!=null&&/^[A-Fa-f0-9]+$/.test(a)?parseInt(a,16):null};
_.ra.prototype.parse=function(a){a=decodeURIComponent(a).split("&");for(var z=0;z<a.length;z++){var I=a[z].split("="),J=I[0];(I=I[1])&&(JA[J]=I.toString())}};var u43={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"},nhM={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},K1M={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},Bg$={"slow-2g":"EFFECTIVE_CONNECTION_TYPE_SLOW_2G","2g":"EFFECTIVE_CONNECTION_TYPE_2G","3g":"EFFECTIVE_CONNECTION_TYPE_3G","4g":"EFFECTIVE_CONNECTION_TYPE_4G"};var CS;_.PE=function(){this.cancelDebouncedJobMap=new WeakMap;this.cancelThrottledJobMap=new WeakMap};
_.b9=function(a,z,I){return a.addJob(z,0,I)};
_.PE.prototype.addLowPriorityJob=function(a,z){return this.addJob(a,1,z)};
_.xc=function(a,z,I){return a.addJob(z,2,I)};
_.hE=function(a,z,I){return a.addJob(z,3,I)};
_.NK=function(a,z,I){return a.addJob(z,4,I)};
CS=function(a){var z=_.DH("yt.scheduler.instance.addImmediateJob");z?z(a):a()};
_.PE.prototype.debounce=function(a,z,I){var J=this,r=0,P=function(){r&&J.cancelJob(r);r=J.addJob(a,z,I);J.cancelDebouncedJobMap.set(P,r)};
return P};
_.PE.prototype.cancelThrottle=function(a){(a=this.cancelThrottledJobMap.get(a))&&a()};var ZN=function(){_.PE.apply(this,arguments)};
_.b(ZN,_.PE);_.ig=function(){ZN.instance||(ZN.instance=new ZN);return ZN.instance};
ZN.prototype.addJob=function(a,z,I){I!==void 0&&Number.isNaN(Number(I))&&(I=void 0);var J=_.DH("yt.scheduler.instance.addJob");return J?J(a,z,I):I===void 0?(a(),NaN):_.C1(a,I||0)};
ZN.prototype.cancelJob=function(a){if(a===void 0||!Number.isNaN(Number(a))){var z=_.DH("yt.scheduler.instance.cancelJob");z?z(a):_.tP(a)}};
ZN.prototype.start=function(){var a=_.DH("yt.scheduler.instance.start");a&&a()};
ZN.prototype.pause=function(){var a=_.DH("yt.scheduler.instance.pause");a&&a()};
_.GW=_.ig();_.Hy.prototype.set=function(a,z){z===void 0?this.mechanism.remove(a):this.mechanism.set(a,(0,_.vV)(z))};
_.Hy.prototype.get=function(a){try{var z=this.mechanism.get(a)}catch(I){return}if(z!==null)try{return JSON.parse(z)}catch(I){throw"Storage: Invalid value was encountered";}};
_.Hy.prototype.remove=function(a){this.mechanism.remove(a)};var CE=function(a){this.mechanism=a};
_.rL(CE,_.Hy);var rGG=function(a){this.data=a},Paw=function(a){return a===void 0||a instanceof rGG?a:new rGG(a)};
CE.prototype.set=function(a,z){CE.superClass_.set.call(this,a,Paw(z))};
CE.prototype.getWrapper=function(a){a=CE.superClass_.get.call(this,a);if(a===void 0||a instanceof Object)return a;throw"Storage: Invalid value was encountered";};
CE.prototype.get=function(a){if(a=this.getWrapper(a)){if(a=a.data,a===void 0)throw"Storage: Invalid value was encountered";}else a=void 0;return a};_.rL(bl,CE);_.Z6i=function(a){var z=a.creation;a=a.expiration;return!!a&&a<_.JY()||!!z&&z>_.JY()};
bl.prototype.set=function(a,z,I){if(z=Paw(z)){if(I){if(I<_.JY()){bl.prototype.remove.call(this,a);return}z.expiration=I}z.creation=_.JY()}bl.superClass_.set.call(this,a,z)};
bl.prototype.getWrapper=function(a,z){var I=bl.superClass_.getWrapper.call(this,a);if(I)if(!z&&_.Z6i(I))bl.prototype.remove.call(this,a);else return I};var NJ=function(){};
NJ.prototype.next=function(){return tA};
var tA={done:!0,value:void 0},u_=function(a){return{value:a,done:!1}};
NJ.prototype.__iterator__=function(){return this};
_.CaI=function(a){if(a instanceof NJ)return a;if(typeof a.__iterator__=="function")return a.__iterator__(!1);if(_.lG(a)){var z=0,I=new NJ;I.next=function(){for(;;){if(z>=a.length)return tA;if(z in a)return u_(a[z++]);z++}};
return I}throw Error("Jc");};var N3w=function(a){if(a instanceof E9||a instanceof BE||a instanceof O9)return a;if(typeof a.next=="function")return new E9(function(){return a});
if(typeof a[Symbol.iterator]=="function")return new E9(function(){return a[Symbol.iterator]()});
if(typeof a.__iterator__=="function")return new E9(function(){return a.__iterator__()});
throw Error("Kc");},E9=function(a){this.func_=a};
E9.prototype.__iterator__=function(){return new BE(this.func_())};
E9.prototype[Symbol.iterator]=function(){return new O9(this.func_())};
E9.prototype.toEs6=function(){return new O9(this.func_())};
var BE=function(a){this.JSC$10521_iter_=a};
_.b(BE,NJ);BE.prototype.next=function(){return this.JSC$10521_iter_.next()};
BE.prototype[Symbol.iterator]=function(){return new O9(this.JSC$10521_iter_)};
BE.prototype.toEs6=function(){return new O9(this.JSC$10521_iter_)};
var O9=function(a){E9.call(this,function(){return a});
this.JSC$10524_iter_=a};
_.b(O9,E9);O9.prototype.next=function(){return this.JSC$10524_iter_.next()};var tH1=function(){};var fE=function(){};
_.rL(fE,tH1);fE.prototype.getCount=function(){for(var a=0,z=_.C(this),I=z.next();!I.done;I=z.next())a++;return a};
fE.prototype[Symbol.iterator]=function(){return N3w(this.__iterator__(!0)).toEs6()};
fE.prototype.clear=function(){var a=Array.from(this);a=_.C(a);for(var z=a.next();!z.done;z=a.next())this.remove(z.value)};_.rL(hP,fE);_.Z=hP.prototype;_.Z.isAvailable=function(){if(this.cachedIsStorageAvailable_===null){var a=this.storage_;if(a)try{a.setItem("__sak","1");a.removeItem("__sak");var z=!0}catch(I){z=I instanceof DOMException&&(I.name==="QuotaExceededError"||I.code===22||I.code===1014||I.name==="NS_ERROR_DOM_QUOTA_REACHED")&&a&&a.length!==0}else z=!1;this.cachedIsStorageAvailable_=z}return this.cachedIsStorageAvailable_};
_.Z.set=function(a,z){AA(this);try{this.storage_.setItem(a,z)}catch(I){if(this.storage_.length==0)throw"Storage mechanism: Storage disabled";throw"Storage mechanism: Quota exceeded";}};
_.Z.get=function(a){AA(this);a=this.storage_.getItem(a);if(typeof a!=="string"&&a!==null)throw"Storage mechanism: Invalid value was encountered";return a};
_.Z.remove=function(a){AA(this);this.storage_.removeItem(a)};
_.Z.getCount=function(){AA(this);return this.storage_.length};
_.Z.__iterator__=function(a){AA(this);var z=0,I=this.storage_,J=new NJ;J.next=function(){if(z>=I.length)return tA;var r=I.key(z++);if(a)return u_(r);r=I.getItem(r);if(typeof r!=="string")throw"Storage mechanism: Invalid value was encountered";return u_(r)};
return J};
_.Z.clear=function(){AA(this);this.storage_.clear()};
_.Z.key=function(a){AA(this);return this.storage_.key(a)};
var AA=function(a){if(a.storage_==null)throw Error("Lc");a.isAvailable()||J1(Error("Lc"))};_.rL(O5G,hP);_.rL(fY0,hP);_.rL(V2,fE);V2.prototype.set=function(a,z){this.mechanism_.set(this.JSC$10539_prefix_+a,z)};
V2.prototype.get=function(a){return this.mechanism_.get(this.JSC$10539_prefix_+a)};
V2.prototype.remove=function(a){this.mechanism_.remove(this.JSC$10539_prefix_+a)};
V2.prototype.__iterator__=function(a){var z=this.mechanism_[Symbol.iterator](),I=this,J=new NJ;J.next=function(){var r=z.next();if(r.done)return r;for(r=r.value;r.slice(0,I.JSC$10539_prefix_.length)!=I.JSC$10539_prefix_;){r=z.next();if(r.done)return r;r=r.value}return u_(a?r.slice(I.JSC$10539_prefix_.length):I.mechanism_.get(r))};
return J};_.o3=function(a){this.expiringStorage_=(a=_.AW0(a))?new bl(a):null;this.JSC$10543_domain_=document.domain||window.location.hostname};
_.o3.prototype.set=function(a,z,I,J){I=I||31104E3;this.remove(a);if(this.expiringStorage_)try{this.expiringStorage_.set(a,z,Date.now()+I*1E3);return}catch(P){}var r="";if(J)try{r=escape((0,_.vV)(z))}catch(P){return}else r=escape(z);_.AP(a,r,I,this.JSC$10543_domain_)};
_.o3.prototype.get=function(a,z){var I=void 0,J=!this.expiringStorage_;if(!J)try{I=this.expiringStorage_.get(a)}catch(r){J=!0}if(J&&(I=_.f1.get(a,void 0))&&(I=unescape(I),z))try{I=JSON.parse(I)}catch(r){this.remove(a),I=void 0}return I};
_.o3.prototype.remove=function(a){this.expiringStorage_&&this.expiringStorage_.remove(a);_.C83(a,"/",this.JSC$10543_domain_)};
_.o3.prototype.getCreationTime=function(a){return this.expiringStorage_&&(a=(this.expiringStorage_.getWrapper(a)||{}).creation,typeof a==="number")?a:null};var np7=function(){var a;return function(){a||(a=new _.o3("ytidb"));return a}}();var FHm;_.S6=[];FHm=!1;var Do7=H5G||b5G;var s9={},uk1=(s9.AUTH_INVALID="No user identifier specified.",s9.EXPLICIT_ABORT="Transaction was explicitly aborted.",s9.IDB_NOT_SUPPORTED="IndexedDB is not supported.",s9.MISSING_INDEX="Index not created.",s9.MISSING_OBJECT_STORES="Object stores not created.",s9.DB_DELETED_BY_MISSING_OBJECT_STORES="Database is deleted because expected object stores were not created.",s9.DB_REOPENED_BY_MISSING_OBJECT_STORES="Database is reopened because expected object stores were not created.",s9.UNKNOWN_ABORT=
"Transaction was aborted for unknown reasons.",s9.QUOTA_EXCEEDED="The current transaction exceeded its quota limitations.",s9.QUOTA_MAYBE_EXCEEDED="The current transaction may have failed because of exceeding quota limitations.",s9.EXECUTE_TRANSACTION_ON_CLOSED_DB="Can't start a transaction on a closed database",s9.INCOMPATIBLE_DB_VERSION="The binary is incompatible with the database version",s9),nE={},Evw=(nE.AUTH_INVALID="ERROR",nE.EXECUTE_TRANSACTION_ON_CLOSED_DB="WARNING",nE.EXPLICIT_ABORT="IGNORED",
nE.IDB_NOT_SUPPORTED="ERROR",nE.MISSING_INDEX="WARNING",nE.MISSING_OBJECT_STORES="ERROR",nE.DB_DELETED_BY_MISSING_OBJECT_STORES="WARNING",nE.DB_REOPENED_BY_MISSING_OBJECT_STORES="WARNING",nE.QUOTA_EXCEEDED="WARNING",nE.QUOTA_MAYBE_EXCEEDED="WARNING",nE.UNKNOWN_ABORT="WARNING",nE.INCOMPATIBLE_DB_VERSION="WARNING",nE),KE={},B3w=(KE.AUTH_INVALID=!1,KE.EXECUTE_TRANSACTION_ON_CLOSED_DB=!1,KE.EXPLICIT_ABORT=!1,KE.IDB_NOT_SUPPORTED=!1,KE.MISSING_INDEX=!1,KE.MISSING_OBJECT_STORES=!1,KE.DB_DELETED_BY_MISSING_OBJECT_STORES=
!1,KE.DB_REOPENED_BY_MISSING_OBJECT_STORES=!1,KE.QUOTA_EXCEEDED=!1,KE.QUOTA_MAYBE_EXCEEDED=!0,KE.UNKNOWN_ABORT=!0,KE.INCOMPATIBLE_DB_VERSION=!1,KE),dM=function(a,z,I,J,r){z=z===void 0?{}:z;I=I===void 0?uk1[a]:I;J=J===void 0?Evw[a]:J;r=r===void 0?B3w[a]:r;_.Fn.call(this,I,Object.assign({},{name:"YtIdbKnownError",isSw:self.document===void 0,isIframe:self!==self.top,type:a},z));this.type=a;this.message=I;this.level=J;this.retryable=r;Object.setPrototypeOf(this,dM.prototype)};
_.b(dM,_.Fn);var gvO=function(a,z){dM.call(this,"MISSING_OBJECT_STORES",{expectedObjectStores:z,foundObjectStores:a},uk1.MISSING_OBJECT_STORES);Object.setPrototypeOf(this,gvO.prototype)};
_.b(gvO,dM);var Vx3=function(a,z){var I=Error.call(this);this.message=I.message;"stack"in I&&(this.stack=I.stack);this.index=a;this.objectStore=z;Object.setPrototypeOf(this,Vx3.prototype)};
_.b(Vx3,Error);var QUp=["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 Dv=function(a){this.executor=a},Uz=function(a){var z=this;
this.state={status:"PENDING"};this.JSC$10571_onFulfilled=[];this.JSC$10571_onRejected=[];a=a.executor;var I=function(r){if(z.state.status==="PENDING"){z.state={status:"FULFILLED",value:r};r=_.C(z.JSC$10571_onFulfilled);for(var P=r.next();!P.done;P=r.next())P=P.value,P()}},J=function(r){if(z.state.status==="PENDING"){z.state={status:"REJECTED",
reason:r};r=_.C(z.JSC$10571_onRejected);for(var P=r.next();!P.done;P=r.next())P=P.value,P()}};
try{a(I,J)}catch(r){J(r)}};
Uz.all=function(a){return new Uz(new Dv(function(z,I){var J=[],r=a.length;r===0&&z(J);for(var P={i$jscomp$463:0};P.i$jscomp$463<a.length;P={i$jscomp$463:P.i$jscomp$463},++P.i$jscomp$463)Uz.resolve(a[P.i$jscomp$463]).then(function(N){return function(u){J[N.i$jscomp$463]=u;r--;r===0&&z(J)}}(P)).catch(function(N){I(N)})}))};
Uz.resolve=function(a){return new Uz(new Dv(function(z,I){a instanceof Uz?a.then(z,I):z(a)}))};
Uz.reject=function(a){return new Uz(new Dv(function(z,I){I(a)}))};
Uz.prototype.then=function(a,z){var I=this,J=a!=null?a:xod,r=z!=null?z:i50;return new Uz(new Dv(function(P,N){I.state.status==="PENDING"?(I.JSC$10571_onFulfilled.push(function(){O6w(I,I,J,P,N)}),I.JSC$10571_onRejected.push(function(){fVv(I,I,r,P,N)})):I.state.status==="FULFILLED"?O6w(I,I,J,P,N):I.state.status==="REJECTED"&&fVv(I,I,r,P,N)}))};
Uz.prototype.catch=function(a){return this.then(void 0,a)};
var O6w=function(a,z,I,J,r){try{if(a.state.status!=="FULFILLED")throw Error("Oc");var P=I(a.state.value);P instanceof Uz?AG1(a,z,P,J,r):J(P)}catch(N){r(N)}},fVv=function(a,z,I,J,r){try{if(a.state.status!=="REJECTED")throw Error("Pc");
var P=I(a.state.reason);P instanceof Uz?AG1(a,z,P,J,r):J(P)}catch(N){r(N)}},AG1=function(a,z,I,J,r){z===I?r(new TypeError("Qc")):I.then(function(P){P instanceof Uz?AG1(a,z,P,J,r):J(P)},function(P){r(P)})};var FN;FN=window;_.jp=FN.ytcsi&&FN.ytcsi.now?FN.ytcsi.now:FN.performance&&FN.performance.timing&&FN.performance.now&&FN.performance.timing.navigationStart?function(){return FN.performance.timing.navigationStart+FN.performance.now()}:function(){return(new Date).getTime()};var L1=function(a,z){this.JSC$10583_wrapped=a;this.options=z;this.transactionCount=0;this.startedMs=Math.round((0,_.jp)());this.hasUnknownAbortedTransaction=!1},HE=function(){return _.K("idb_immediate_commit")},Kko,Fki,VP,hQw;
L1.prototype.add=function(a,z,I){return _.y2(this,[a],{mode:"readwrite",enableRetries:!0,commit:HE()},function(J){return J.objectStore(a).add(z,I)})};
L1.prototype.clear=function(a){return _.y2(this,[a],{mode:"readwrite",enableRetries:!0},function(z){return z.objectStore(a).clear()})};
L1.prototype.close=function(){this.JSC$10583_wrapped.close();var a;((a=this.options)==null?0:a.closed)&&this.options.closed()};
L1.prototype.count=function(a,z){return _.y2(this,[a],{mode:"readonly",enableRetries:!0,commit:HE()},function(I){return I.objectStore(a).count(z)})};
var DZ=function(a,z,I){a=a.JSC$10583_wrapped.createObjectStore(z,I);return new b_(a)};
L1.prototype.delete=function(a,z){return _.y2(this,[a],{mode:"readwrite",enableRetries:!0,commit:HE()&&!(z instanceof IDBKeyRange)},function(I){return I.objectStore(a).delete(z)})};
var sGo=function(a,z){return _.y2(a,["ResponseStore"],{mode:"readwrite",enableRetries:!0},function(I){return I.objectStore("ResponseStore").index("byInterface").delete(z)})};
L1.prototype.get=function(a,z){return _.y2(this,[a],{mode:"readonly",enableRetries:!0,commit:HE()},function(I){return I.objectStore(a).get(z)})};
L1.prototype.getAll=function(a,z,I){return _.y2(this,[a],{mode:"readonly",enableRetries:!0},function(J){return J.objectStore(a).getAll(z,I)})};
L1.prototype.put=function(a,z,I){return _.y2(this,[a],{mode:"readwrite",enableRetries:!0,commit:HE()},function(J){return J.objectStore(a).put(z,I)})};
L1.prototype.objectStoreNames=function(){return Array.from(this.JSC$10583_wrapped.objectStoreNames)};
_.y2=function(a,z,I,J){var r,P,N,u,E,O,f,A,n,F,h,v;return _.t(function(d){switch(d.nextAddress){case 1:var W={mode:"readonly",enableRetries:!1,tag:"IDB_TRANSACTION_TAG_UNKNOWN"};typeof I==="string"?W.mode=I:Object.assign(W,I);r=W;a.transactionCount++;P=r.enableRetries?3:1;N=0;case 2:if(u){d.jumpTo(4);break}N++;E=Math.round((0,_.jp)());_.BP(d,5);O=a.JSC$10583_wrapped.transaction(z,r.mode);W=d.yield;var l=!!r.commit;var q=new ll(O);l=nvG(q,J,l);return W.call(d,l,7);case 7:return f=d.yieldResult,A=Math.round((0,_.jp)()),
Kko(a,E,A,N,void 0,z.join(),r),d.return(f);case 5:n=_.sk(d);F=Math.round((0,_.jp)());h=Srd(n,a.JSC$10583_wrapped.name,z.join(),a.JSC$10583_wrapped.version);if((v=h instanceof dM&&!h.retryable)||N>=P)Kko(a,E,F,N,h,z.join(),r),u=h;d.jumpTo(2);break;case 4:return d.return(Promise.reject(u))}})};
Kko=function(a,z,I,J,r,P,N){z=I-z;r?(r instanceof dM&&(r.type==="QUOTA_EXCEEDED"||r.type==="QUOTA_MAYBE_EXCEEDED")&&xj("QUOTA_EXCEEDED",{dbName:Xn(a.JSC$10583_wrapped.name),objectStoreNames:P,transactionCount:a.transactionCount,transactionMode:N.mode}),r instanceof dM&&r.type==="UNKNOWN_ABORT"&&(I-=a.startedMs,I<0&&I>=2147483648&&(I=0),xj("TRANSACTION_UNEXPECTEDLY_ABORTED",{objectStoreNames:P,transactionDuration:z,transactionCount:a.transactionCount,dbDuration:I}),a.hasUnknownAbortedTransaction=!0),
Fki(a,!1,J,P,z,N.tag),_.il(r)):Fki(a,!0,J,P,z,N.tag)};
Fki=function(a,z,I,J,r,P){xj("TRANSACTION_ENDED",{objectStoreNames:J,connectionHasUnknownAbortedTransaction:a.hasUnknownAbortedTransaction,duration:r,isSuccessful:z,tryCount:I,tag:P===void 0?"IDB_TRANSACTION_TAG_UNKNOWN":P})};
L1.prototype.getVersion=function(){return this.JSC$10583_wrapped.version};
L1.prototype.getName=function(){return this.JSC$10583_wrapped.name};
var b_=function(a){this.JSC$10598_wrapped=a};
b_.prototype.add=function(a,z){return Rb(this.JSC$10598_wrapped.add(a,z))};
b_.prototype.autoIncrement=function(){return this.JSC$10598_wrapped.autoIncrement};
b_.prototype.clear=function(){return Rb(this.JSC$10598_wrapped.clear()).then(function(){})};
var R3=function(a,z,I){a.JSC$10598_wrapped.createIndex(z,I,{unique:!1})};
b_.prototype.count=function(a){return Rb(this.JSC$10598_wrapped.count(a))};
var H6l=function(a,z){return Me(a,{query:z},function(I){return I.delete().then(function(){return I.continue()})}).then(function(){})};
b_.prototype.delete=function(a){return a instanceof IDBKeyRange?H6l(this,a):Rb(this.JSC$10598_wrapped.delete(a))};
b_.prototype.get=function(a){return Rb(this.JSC$10598_wrapped.get(a))};
b_.prototype.getAll=function(a,z){return"getAll"in IDBObjectStore.prototype?Rb(this.JSC$10598_wrapped.getAll(a,z)):b6e(this,a,z)};
var b6e=function(a,z,I){var J=[];return Me(a,{query:z},function(r){if(!(I!==void 0&&J.length>=I))return J.push(r.getValue()),r.continue()}).then(function(){return J})};
b_.prototype.index=function(a){try{return new hA(this.JSC$10598_wrapped.index(a))}catch(z){if(z instanceof Error&&z.name==="NotFoundError")throw new Vx3(a,this.JSC$10598_wrapped.name);throw z;}};
b_.prototype.getName=function(){return this.JSC$10598_wrapped.name};
b_.prototype.keyPath=function(){return this.JSC$10598_wrapped.keyPath};
b_.prototype.put=function(a,z){return Rb(this.JSC$10598_wrapped.put(a,z))};
var Me=function(a,z,I){a=a.JSC$10598_wrapped.openCursor(z.query,z.direction);return hQw(a).then(function(J){return $oG(J,I)})},ll=function(a){var z=this;
this.JSC$10606_wrapped=a;this.objectStoreCache=new Map;this.aborted=!1;this.done=new Promise(function(I,J){z.JSC$10606_wrapped.addEventListener("complete",function(){I()});
z.JSC$10606_wrapped.addEventListener("error",function(r){r.currentTarget===r.target&&J(z.JSC$10606_wrapped.error)});
z.JSC$10606_wrapped.addEventListener("abort",function(){var r=z.JSC$10606_wrapped.error;if(r)J(r);else if(!z.aborted){r=dM;for(var P=z.JSC$10606_wrapped.objectStoreNames,N=[],u=0;u<P.length;u++){var E=P.item(u);if(E===null)throw Error("Rc");N.push(E)}r=new r("UNKNOWN_ABORT",{objectStoreNames:N.join(),dbName:z.JSC$10606_wrapped.db.name,mode:z.JSC$10606_wrapped.mode});J(r)}})})},nvG=function(a,z,I){var J=new Promise(function(r,P){try{var N=z(a);
I&&a.commit();N.then(function(u){r(u)}).catch(P)}catch(u){P(u),a.abort()}});
return Promise.all([J,a.done]).then(function(r){return _.C(r).next().value})};
ll.prototype.abort=function(){this.JSC$10606_wrapped.abort();this.aborted=!0;throw new dM("EXPLICIT_ABORT");};
ll.prototype.commit=function(){if(!this.aborted){var a,z;(z=(a=this.JSC$10606_wrapped).commit)==null||z.call(a)}};
ll.prototype.objectStore=function(a){a=this.JSC$10606_wrapped.objectStore(a);var z=this.objectStoreCache.get(a);z||(z=new b_(a),this.objectStoreCache.set(a,z));return z};
var hA=function(a){this.JSC$10608_wrapped=a};
hA.prototype.count=function(a){return Rb(this.JSC$10608_wrapped.count(a))};
hA.prototype.delete=function(a){return _.zW(this,{query:a},function(z){return z.delete().then(function(){return z.continue()})})};
hA.prototype.get=function(a){return Rb(this.JSC$10608_wrapped.get(a))};
hA.prototype.getAll=function(a,z){return"getAll"in IDBIndex.prototype?Rb(this.JSC$10608_wrapped.getAll(a,z)):VHw(this,a,z)};
var VHw=function(a,z,I){var J=[];return _.zW(a,{query:z},function(r){if(!(I!==void 0&&J.length>=I))return J.push(r.getValue()),r.continue()}).then(function(){return J})};
hA.prototype.keyPath=function(){return this.JSC$10608_wrapped.keyPath};
hA.prototype.unique=function(){return this.JSC$10608_wrapped.unique};
_.zW=function(a,z,I){a=a.JSC$10608_wrapped.openCursor(z.query===void 0?null:z.query,z.direction===void 0?"next":z.direction);return hQw(a).then(function(J){return $oG(J,I)})};
VP=function(a,z){this.request=a;this.cursor=z};
hQw=function(a){return Rb(a).then(function(z){return z?new VP(a,z):null})};
VP.prototype.continue=function(a){this.cursor.continue(a);return hQw(this.request)};
VP.prototype.delete=function(){return Rb(this.cursor.delete()).then(function(){})};
VP.prototype.getValue=function(){return this.cursor.value};
VP.prototype.update=function(a){return Rb(this.cursor.update(a))};var QP=function(a,z){this.name=a;this.options=z;this.isCompatible=!0;this.timesReopenedToFixMissingObjectStore=this.timesDeletedToFixMissingObjectStore=0},QGe;
QP.prototype.openDb=function(a,z,I){I=I===void 0?{}:I;return Tg1(a,z,I)};
QP.prototype.delete=function(a){a=a===void 0?{}:a;return _.wM(this.name,a)};
QGe=function(a,z){return new dM("INCOMPATIBLE_DB_VERSION",{dbName:a.name,oldVersion:a.options.version,newVersion:z})};
_.m5=function(a,z){if(!z)throw ob("openWithToken",Xn(a.name));return a.open()};
QP.prototype.open=function(){var a=this;if(!this.isCompatible)throw QGe(this);if(this.connectionPromise)return this.connectionPromise;var z,I=function(){a.connectionPromise===z&&(a.connectionPromise=void 0)},J={blocking:function(P){P.close()},
closed:I,terminated:I,upgrade:this.options.upgrade},r=function(){var P,N,u,E,O,f,A,n,F,h;return _.t(function(v){switch(v.nextAddress){case 1:return N=(P=Error().stack)!=null?P:"",_.BP(v,2),v.yield(a.openDb(a.name,a.options.version,J),4);case 4:for(var d=u=v.yieldResult,W=a.options,l=[],q=_.C(Object.keys(W.objectStores)),m=q.next();!m.done;m=q.next()){m=m.value;var M=W.objectStores[m],y=M.removedAtVersion===void 0?Number.MAX_VALUE:M.removedAtVersion;!(d.JSC$10583_wrapped.version>=M.addedAtVersion)||
d.JSC$10583_wrapped.version>=y||d.JSC$10583_wrapped.objectStoreNames.contains(m)||l.push(m)}E=l;if(E.length===0){v.jumpTo(5);break}O=Object.keys(a.options.objectStores);f=u.objectStoreNames();if(a.timesReopenedToFixMissingObjectStore<_.Ib("ytidb_reopen_db_retries",0))return a.timesReopenedToFixMissingObjectStore++,u.close(),_.il(new dM("DB_REOPENED_BY_MISSING_OBJECT_STORES",{dbName:a.name,expectedObjectStores:O,foundObjectStores:f})),v.return(r());if(!(a.timesDeletedToFixMissingObjectStore<_.Ib("ytidb_remake_db_retries",
1))){v.jumpTo(6);break}a.timesDeletedToFixMissingObjectStore++;return v.yield(a.delete(),7);case 7:return _.il(new dM("DB_DELETED_BY_MISSING_OBJECT_STORES",{dbName:a.name,expectedObjectStores:O,foundObjectStores:f})),v.return(r());case 6:throw new gvO(f,O);case 5:return v.return(u);case 2:A=_.sk(v);if(A instanceof DOMException?A.name!=="VersionError":"DOMError"in self&&A instanceof DOMError?A.name!=="VersionError":!(A instanceof Object&&"message"in A)||A.message!=="An attempt was made to open a database using a lower version than the existing version."){v.jumpTo(8);
break}return v.yield(a.openDb(a.name,void 0,Object.assign({},J,{upgrade:void 0})),9);case 9:n=v.yieldResult;F=n.getVersion();if(a.options.version!==void 0&&F>a.options.version+1)throw n.close(),a.isCompatible=!1,QGe(a,F);return v.return(n);case 8:throw I(),A instanceof Error&&!_.K("ytidb_async_stack_killswitch")&&(A.stack=A.stack+"\n"+N.substring(N.indexOf("\n")+1)),Srd(A,a.name,"",(h=a.options.version)!=null?h:-1);}})};
return this.connectionPromise=z=r()};var do3=new QP("YtIdbMeta",{objectStores:{databases:{addedAtVersion:1}},upgrade:function(a,z){z(1)&&DZ(a,"databases",{keyPath:"actualName"})}});var lY0,RYm=new function(){}(new function(){});new _.EM;var Scl=function(a,z){QP.call(this,a,z);this.options=z;G9(a)};
_.b(Scl,QP);var eYO=function(a,z){var I;return function(){I||(I=new Scl(a,z));return I}};
Scl.prototype.openDb=function(a,z,I){I=I===void 0?{}:I;return(this.options.shared?kg3:yWI)(a,z,Object.assign({},I))};
Scl.prototype.delete=function(a){a=a===void 0?{}:a;return(this.options.shared?qrm:Mxd)(this.name,a)};var i61={},aaG=a3("ytGcfConfig",{objectStores:(i61.coldConfigStore={addedAtVersion:1},i61.hotConfigStore={addedAtVersion:1},i61),shared:!1,upgrade:function(a,z){z(1)&&(R3(DZ(a,"hotConfigStore",{keyPath:"key",autoIncrement:!0}),"hotTimestampIndex","timestamp"),R3(DZ(a,"coldConfigStore",{keyPath:"key",autoIncrement:!0}),"coldTimestampIndex","timestamp"))},
version:1});var xrl=function(){_.FC.call(this);this.localHotConfigJobQueue=[];this.sharedHotConfigJobQueue=[];var a=_.DH("yt.gcf.config.hotUpdateCallbacks");a?(this.localHotConfigJobQueue=[].concat(_.ih(a)),this.sharedHotConfigJobQueue=a):(this.sharedHotConfigJobQueue=[],_.qe("yt.gcf.config.hotUpdateCallbacks",this.sharedHotConfigJobQueue))};
_.b(xrl,_.FC);xrl.prototype.disposeInternal=function(){for(var a=_.C(this.localHotConfigJobQueue),z=a.next();!z.done;z=a.next()){var I=this.sharedHotConfigJobQueue;z=I.indexOf(z.value);z>=0&&I.splice(z,1)}this.localHotConfigJobQueue.length=0;_.FC.prototype.disposeInternal.call(this)};var hJ=function(){var a=this;this.isConfigDbInitialized=!1;this.debounceTimer=this.initJob=0;this.configUpdateService=new xrl;this.TEST_ONLY={initializeConfigDb:function(){a.isConfigDbInitialized=!0},
getColdConfigGroup:function(){return a.coldGlobalConfigGroup},
setHotConfigGroup:function(z){vvo(a,z)},
setHotHashData:function(z){a.setHotHashData(z)},
setColdConfigGroup:function(z){G$i(a,z)},
getColdHashData:function(){return a.coldHashData},
getHotHashData:function(){return a.hotHashData},
getHotConfigGroup:function(){return a.hotGlobalConfigGroup},
getExportedColdConfigGroup:function(){return $rv()},
getExportedHotConfigGroup:function(){return Sv()},
getExportedColdHashData:function(){return _.DH("yt.gcf.config.coldHashData")},
getExportedHotHashData:function(){return _.DH("yt.gcf.config.hotHashData")},
triggerScheduleConfigs:function(){Xvv(a)},
resetInstance:function(){a.setHotHashData(void 0);T31(a);delete hJ.instance},
setDebounceTimer:function(z){a.debounceTimer=z},
getDebounceTimer:function(){return a.debounceTimer}}},drv=function(){if(!hJ.instance){var a=new hJ;
hJ.instance=a}return hJ.instance},UrO=function(a){var z;
_.t(function(I){if(I.nextAddress==1)return _.K("start_client_gcf")||_.K("delete_gcf_config_db")?_.K("start_client_gcf")?I.yield(_.e6(),3):I.jumpTo(2):I.return();I.nextAddress!=2&&((z=I.yieldResult)&&_.K1()&&!_.K("delete_gcf_config_db")?(a.isConfigDbInitialized=!0,Xvv(a)):(Wkl(a),ovl(a)));return _.K("delete_gcf_config_db")?I.yield(PkE(),0):I.jumpTo(0)})},V4=function(){var a;
return(a=Sv())!=null?a:_.Xw("RAW_HOT_CONFIG_GROUP")},Dre=function(a){var z,I,J,r,P,N;
return _.t(function(u){switch(u.nextAddress){case 1:if(a.hotGlobalConfigGroup)return u.return(Sv());if(!a.isConfigDbInitialized)return z=ob("getHotConfig IDB not initialized"),_.RL(z),u.return(Promise.reject(z));I=Yj();J=_.Xw("TIME_CREATED_MS");if(!I){r=ob("getHotConfig token error");_.RL(r);u.jumpTo(2);break}return u.yield(rv0(I),3);case 3:if((P=u.yieldResult)&&P.timestamp>J)return vvo(a,P.config),a.setHotHashData(P.hashData),u.return(Sv());case 2:ovl(a);if(!(I&&a.hotGlobalConfigGroup&&a.hotHashData)){u.jumpTo(4);
break}return u.yield(zVO(a.hotGlobalConfigGroup,a.hotHashData,I,J),4);case 4:return a.hotGlobalConfigGroup?u.return(Sv()):(N=new _.Fn("Config not available in ytConfig"),_.RL(N),u.return(Promise.reject(N)))}})},Lkw=function(a){var z,I,J,r,P,N;
return _.t(function(u){switch(u.nextAddress){case 1:if(a.coldGlobalConfigGroup)return u.return($rv());if(!a.isConfigDbInitialized)return z=ob("getColdConfig IDB not initialized"),_.RL(z),u.return(Promise.reject(z));I=Yj();J=_.Xw("TIME_CREATED_MS");if(!I){r=ob("getColdConfig");_.RL(r);u.jumpTo(2);break}return u.yield(Jvp(I),3);case 3:if((P=u.yieldResult)&&P.timestamp>J)return G$i(a,P.config),RQI(a,P.configData),T31(a,P.hashData),u.return($rv());case 2:Wkl(a);if(!(I&&a.coldGlobalConfigGroup&&a.coldHashData&&
a.configData)){u.jumpTo(4);break}return u.yield(Ia7(a.coldGlobalConfigGroup,a.coldHashData,a.configData,I,J),4);case 4:return a.coldGlobalConfigGroup?u.return($rv()):(N=new _.Fn("Config not available in ytConfig"),_.RL(N),u.return(Promise.reject(N)))}})},Xvv=function(a){if(!a.hotGlobalConfigGroup||!a.coldGlobalConfigGroup){if(!Yj()){var z=ob("scheduleGetConfigs");
_.RL(z)}a.initJob||(a.initJob=_.GW.addLowPriorityJob(function(){return _.t(function(I){switch(I.nextAddress){case 1:return _.BP(I,2),I.yield(Dre(a),4);case 4:_.p1(I,3);break;case 2:_.sk(I);case 3:return _.BP(I,5),I.yield(Lkw(a),7);case 7:_.p1(I,6);break;case 5:_.sk(I);case 6:a.initJob&&(a.initJob=0),_.nu(I)}})},100))}},zp1=function(a,z,I){var J,r,P;
return _.t(function(N){switch(N.nextAddress){case 1:if(!_.K("start_client_gcf")){N.jumpTo(0);break}I&&vvo(a,I);a.setHotHashData(z);J=Yj();if(!J){N.jumpTo(3);break}if(I){N.jumpTo(4);break}return N.yield(rv0(J),5);case 5:r=N.yieldResult,I=(P=r)==null?void 0:P.config;case 4:return N.yield(zVO(I,z,J),3);case 3:if(I)for(var u=I,E=_.C(a.configUpdateService.sharedHotConfigJobQueue),O=E.next();!O.done;O=E.next())O=O.value,O(u);_.nu(N)}})},Ic1=function(a,z,I){var J,r,P,N;
return _.t(function(u){if(u.nextAddress==1){if(!_.K("start_client_gcf"))return u.jumpTo(0);T31(a,z);return(J=Yj())?I?u.jumpTo(4):u.yield(Jvp(J),5):u.jumpTo(0)}u.nextAddress!=4&&(r=u.yieldResult,I=(P=r)==null?void 0:P.config);if(!I)return u.jumpTo(0);N=I.configData;return u.yield(Ia7(I,z,N,J),0)})},hVE=function(){var a=drv(),z=(0,_.jp)()-a.debounceTimer;
if(!(a.debounceTimer!==0&&z<_.Ib("send_config_hash_timer"))){z=_.DH("yt.gcf.config.coldConfigData");var I=_.DH("yt.gcf.config.hotHashData"),J=_.DH("yt.gcf.config.coldHashData");z&&I&&J&&(a.debounceTimer=(0,_.jp)());return{coldConfigData:z,hotHashData:I,coldHashData:J}}},Wkl=function(a){G$i(a,_.Xw("RAW_COLD_CONFIG_GROUP"));
T31(a,_.Xw("SERIALIZED_COLD_HASH_DATA"));var z;RQI(a,(z=a.coldGlobalConfigGroup)==null?void 0:z.configData)},ovl=function(a){vvo(a,_.Xw("RAW_HOT_CONFIG_GROUP"));
a.setHotHashData(_.Xw("SERIALIZED_HOT_HASH_DATA"))},vvo=function(a,z){a.hotGlobalConfigGroup=z;
_.qe("yt.gcf.config.hotConfigGroup",a.hotGlobalConfigGroup||null)},G$i=function(a,z){a.coldGlobalConfigGroup=z;
_.qe("yt.gcf.config.coldConfigGroup",a.coldGlobalConfigGroup||null)};
hJ.prototype.setHotHashData=function(a){this.hotHashData=a;_.qe("yt.gcf.config.hotHashData",this.hotHashData||null)};
var T31=function(a,z){a.coldHashData=z;_.qe("yt.gcf.config.coldHashData",a.coldHashData||null)},RQI=function(a,z){a.configData=z;
_.qe("yt.gcf.config.coldConfigData",a.configData||null)},Sv=function(){return _.DH("yt.gcf.config.hotConfigGroup")},$rv=function(){return _.DH("yt.gcf.config.coldConfigGroup")};var En={},lVO=typeof Uint8Array!=="undefined"&&typeof Uint16Array!=="undefined"&&typeof Int32Array!=="undefined";En.assign=function(a){for(var z=Array.prototype.slice.call(arguments,1);z.length;){var I=z.shift();if(I){if(typeof I!=="object")throw new TypeError("Uc`"+I);for(var J in I)Object.prototype.hasOwnProperty.call(I,J)&&(a[J]=I[J])}}return a};
En.shrinkBuf=function(a,z){if(a.length===z)return a;if(a.subarray)return a.subarray(0,z);a.length=z;return a};
var pvE={arraySet:function(a,z,I,J,r){if(z.subarray&&a.subarray)a.set(z.subarray(I,I+J),r);else for(var P=0;P<J;P++)a[r+P]=z[I+P]},
flattenChunks:function(a){var z,I;var J=I=0;for(z=a.length;J<z;J++)I+=a[J].length;var r=new Uint8Array(I);J=I=0;for(z=a.length;J<z;J++){var P=a[J];r.set(P,I);I+=P.length}return r}},wv1={arraySet:function(a,z,I,J,r){for(var P=0;P<J;P++)a[r+P]=z[I+P]},
flattenChunks:function(a){return[].concat.apply([],a)}};
En.setTyped=function(){lVO?(En.Buf8=Uint8Array,En.Buf16=Uint16Array,En.Buf32=Int32Array,En.assign(En,pvE)):(En.Buf8=Array,En.Buf16=Array,En.Buf32=Array,En.assign(En,wv1))};
En.setTyped();var mri=!0;try{new Uint8Array(1)}catch(a){mri=!1}
var r3p=function(a){var z,I,J=a.length,r=0;for(z=0;z<J;z++){var P=a.charCodeAt(z);if((P&64512)===55296&&z+1<J){var N=a.charCodeAt(z+1);(N&64512)===56320&&(P=65536+(P-55296<<10)+(N-56320),z++)}r+=P<128?1:P<2048?2:P<65536?3:4}var u=new En.Buf8(r);for(z=I=0;I<r;z++)P=a.charCodeAt(z),(P&64512)===55296&&z+1<J&&(N=a.charCodeAt(z+1),(N&64512)===56320&&(P=65536+(P-55296<<10)+(N-56320),z++)),P<128?u[I++]=P:(P<2048?u[I++]=192|P>>>6:(P<65536?u[I++]=224|P>>>12:(u[I++]=240|P>>>18,u[I++]=128|P>>>12&63),u[I++]=
128|P>>>6&63),u[I++]=128|P&63);return u};var m1M={};m1M=function(a,z,I,J){var r=a&65535|0;a=a>>>16&65535|0;for(var P;I!==0;){P=I>2E3?2E3:I;I-=P;do r=r+z[J++]|0,a=a+r|0;while(--P);r%=65521;a%=65521}return r|a<<16|0};for(var QE={},i_,yGw=[],k$J=0;k$J<256;k$J++){i_=k$J;for(var MHe=0;MHe<8;MHe++)i_=i_&1?3988292384^i_>>>1:i_>>>1;yGw[k$J]=i_}QE=function(a,z,I,J){I=J+I;for(a^=-1;J<I;J++)a=a>>>8^yGw[(a^z[J])&255];return a^-1};var fI={};fI={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 TY1=[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],W11=[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],J31=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],phG=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],KI=Array(576);CI(KI);var Fy=Array(60);CI(Fy);var go=Array(512);CI(go);var BL=Array(256);CI(BL);var d17=Array(29);CI(d17);var oh3=Array(30);CI(oh3);var jQ3,zwI,ILO,aLd=!1;var vL;
vL=[new xk(0,0,0,0,function(a,z){var I=65535;for(I>a.pending_buf_size-5&&(I=a.pending_buf_size-5);;){if(a.lookahead<=1){Sp(a);if(a.lookahead===0&&z===0)return 1;if(a.lookahead===0)break}a.strstart+=a.lookahead;a.lookahead=0;var J=a.block_start+I;if(a.strstart===0||a.strstart>=J)if(a.lookahead=a.strstart-J,a.strstart=J,bP(a,!1),a.strm.avail_out===0)return 1;if(a.strstart-a.block_start>=a.w_size-262&&(bP(a,!1),a.strm.avail_out===0))return 1}a.insert=0;if(z===4)return bP(a,!0),a.strm.avail_out===0?3:
4;a.strstart>a.block_start&&bP(a,!1);return 1}),
new xk(4,4,8,4,yvd),new xk(4,5,16,8,yvd),new xk(4,6,32,32,yvd),new xk(4,4,16,16,iP),new xk(8,16,32,32,iP),new xk(8,16,128,128,iP),new xk(8,32,128,256,iP),new xk(32,128,258,1024,iP),new xk(32,258,258,4096,iP)];var eVM={};eVM=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 PK7=Object.prototype.toString;
qMI.prototype.push=function(a,z){var I=this.strm,J=this.options.chunkSize;if(this.ended)return!1;var r=z===~~z?z:z===!0?4:0;typeof a==="string"?I.input=r3p(a):PK7.call(a)==="[object ArrayBuffer]"?I.input=new Uint8Array(a):I.input=a;I.next_in=0;I.avail_in=I.input.length;do{I.avail_out===0&&(I.output=new En.Buf8(J),I.next_out=0,I.avail_out=J);a=YMG(I,r);if(a!==1&&a!==0)return cGv(this,a),this.ended=!0,!1;if(I.avail_out===0||I.avail_in===0&&(r===4||r===2))if(this.options.to==="string"){var P=En.shrinkBuf(I.output,
I.next_out);z=P;P=P.length;if(P<65537&&(z.subarray&&mri||!z.subarray))z=String.fromCharCode.apply(null,En.shrinkBuf(z,P));else{for(var N="",u=0;u<P;u++)N+=String.fromCharCode(z[u]);z=N}this.chunks.push(z)}else z=En.shrinkBuf(I.output,I.next_out),this.chunks.push(z)}while((I.avail_in>0||I.avail_out===0)&&a!==1);if(r===4)return(I=this.strm)&&I.state?(J=I.state.status,J!==42&&J!==69&&J!==73&&J!==91&&J!==103&&J!==113&&J!==666?a=AC(I,-2):(I.state=null,a=J===113?AC(I,-3):0)):a=-2,cGv(this,a),this.ended=
!0,a===0;r===2&&(cGv(this,0),I.avail_out=0);return!0};
var cGv=function(a,z){z===0&&(a.result=a.options.to==="string"?a.chunks.join(""):En.flattenChunks(a.chunks));a.chunks=[];a.err=z;a.msg=a.strm.msg};var Ycj=typeof TextEncoder!=="undefined"?new TextEncoder:null,d3x=Ycj?function(a){return Ycj.encode(a)}:function(a){a=_.Ko(a);
for(var z=new Uint8Array(a.length),I=0;I<z.length;I++)z[I]=a[I];return z};var CY1={next:"wn_s",browse:"br_s",search:"sr_s",reel:"r_wrs",player:"ps_s"},t_0={next:"wn_r",browse:"br_r",search:"sr_r",reel:"r_wrr",player:"ps_r"};var xQ=function(a,z){this.version=a;this.args=z};
xQ.prototype.serialize=function(){return{version:this.version,args:this.args}};var ueE=function(a,z){this.topic=a;this.dataClass=z};
ueE.prototype.toString=function(){return this.topic};var qcI=_.DH("ytPubsub2Pubsub2Instance")||new _.gM;_.gM.prototype.subscribe=_.gM.prototype.subscribe;_.gM.prototype.unsubscribeByKey=_.gM.prototype.unsubscribeByKey;_.gM.prototype.publish=_.gM.prototype.publish;_.gM.prototype.clear=_.gM.prototype.clear;_.qe("ytPubsub2Pubsub2Instance",qcI);var tc1=_.DH("ytPubsub2Pubsub2SubscribedKeys")||{};_.qe("ytPubsub2Pubsub2SubscribedKeys",tc1);var Bz1=_.DH("ytPubsub2Pubsub2TopicToKeys")||{};_.qe("ytPubsub2Pubsub2TopicToKeys",Bz1);
var Eip=_.DH("ytPubsub2Pubsub2IsAsync")||{};_.qe("ytPubsub2Pubsub2IsAsync",Eip);_.qe("ytPubsub2Pubsub2SkipSubKey",null);var bM$=void 0,FZi=void 0;var Gz0=_.Ib("max_body_size_to_compress",5E5),$3G=_.Ib("min_body_size_to_compress",500),Xy=!0,U3G=0,TW=0,oiG=_.Ib("compression_performance_threshold_lr",250),D3i=_.Ib("slow_compressions_before_abandon_count",4),QQ1=!1,S8O=new Map,Tz$=1,XK7=!0;_.rL(WL,lL0);WL.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 eQi=function(a,z,I){I||(I=0);var J=a.W_;if(typeof z==="string")for(var r=0;r<16;r++)J[r]=z.charCodeAt(I)<<24|z.charCodeAt(I+1)<<16|z.charCodeAt(I+2)<<8|z.charCodeAt(I+3),I+=4;else for(r=0;r<16;r++)J[r]=z[I]<<24|z[I+1]<<16|z[I+2]<<8|z[I+3],I+=4;for(z=16;z<80;z++)I=J[z-3]^J[z-8]^J[z-14]^J[z-16],J[z]=(I<<1|I>>>31)&4294967295;z=a.chain_[0];I=a.chain_[1];r=a.chain_[2];for(var P=a.chain_[3],N=a.chain_[4],u,E,O=0;O<80;O++)O<40?O<20?(u=P^I&(r^P),E=1518500249):(u=I^r^P,E=1859775393):O<60?(u=I&r|P&(I|r),
E=2400959708):(u=I^r^P,E=3395469782),u=(z<<5|z>>>27)+u+N+E+J[O]&4294967295,N=P,P=r,r=(I<<30|I>>>2)&4294967295,I=z,z=u;a.chain_[0]=a.chain_[0]+z&4294967295;a.chain_[1]=a.chain_[1]+I&4294967295;a.chain_[2]=a.chain_[2]+r&4294967295;a.chain_[3]=a.chain_[3]+P&4294967295;a.chain_[4]=a.chain_[4]+N&4294967295};
WL.prototype.update=function(a,z){if(a!=null){z===void 0&&(z=a.length);for(var I=z-this.blockSize,J=0,r=this.buf_,P=this.inbuf_;J<z;){if(P==0)for(;J<=I;)eQi(this,a,J),J+=this.blockSize;if(typeof a==="string")for(;J<z;){if(r[P]=a.charCodeAt(J),++P,++J,P==this.blockSize){eQi(this,r);P=0;break}}else for(;J<z;)if(r[P]=a[J],++P,++J,P==this.blockSize){eQi(this,r);P=0;break}}this.inbuf_=P;this.total_+=z}};
WL.prototype.digest=function(){var a=[],z=this.total_*8;this.inbuf_<56?this.update(this.pad_,56-this.inbuf_):this.update(this.pad_,this.blockSize-(this.inbuf_-56));for(var I=this.blockSize-1;I>=56;I--)this.buf_[I]=z&255,z/=256;eQi(this,this.buf_);for(I=z=0;I<5;I++)for(var J=24;J>=0;J-=8)a[z]=this.chain_[I]>>J&255,++z;return a};var m3m;var Gp=function(a){var z=this;this.bypassDbTokenDependency=this.initialized=!1;this.potentialEsfErrorCounter=this.intervalJob=0;this.handleError=function(){};
this.handleWarning=function(){};
this.now=Date.now;this.disableYtIdbTransactions=!1;this.TEST_ONLY={setDbToken:function(f){z.databaseToken=f},
triggerThrottle:function(){z.throttledSend()},
cancelThrottle:function(){z.cancelThrottledSend()},
immediateSend:function(f){return _.t(function(A){return A.yield(z.immediateSend(f),0)})},
requestWithinAgeLimit:function(f,A){return z.requestWithinAgeLimit(f,A)},
retryQueuedRequests:function(){z.retryQueuedRequests()}};
var I;this.throttleTimeout=(I=a.throttleTimeout)!=null?I:100;var J;this.retryMaxAttempts=(J=a.retryMaxAttempts)!=null?J:1;var r;this.requestAgeLimitMs=(r=a.requestAgeLimitMs)!=null?r:2592E6;var P;this.queuedRequestAgeLimitMs=(P=a.queuedRequestAgeLimitMs)!=null?P:12E4;var N;this.retryDelayMs=(N=a.retryDelayMs)!=null?N:5E3;var u;this.databaseToken=(u=a.databaseToken)!=null?u:void 0;this.enableCleaning=!!a.enableCleaning;var E;this.cleaningRate=(E=a.cleaningRate)!=null?E:.1;var O;this.potentialEsfErrorLimit=
(O=a.potentialEsfErrorLimit)!=null?O:10;a.handleError&&(this.handleError=a.handleError);a.handleWarning&&(this.handleWarning=a.handleWarning);a.disableYtIdbTransactions&&(this.disableYtIdbTransactions=a.disableYtIdbTransactions);a.bypassDbTokenDependency&&(this.bypassDbTokenDependency=a.bypassDbTokenDependency);this.getBooleanFlag=a.getBooleanFlag;this.jobManager=a.jobManager;this.logsStore=a.logsStore;this.networkManager=a.networkManager;this.sendFn=a.sendFn;this.onlineEvent=a.onlineEvent;this.offlineEvent=
a.offlineEvent;vE(this)&&(!this.getBooleanFlag||this.getBooleanFlag("networkless_logging"))&&a1I(this)},a1I=function(a){vE(a)&&!a.disableYtIdbTransactions&&(a.initialized=!0,a.enableCleaning&&Math.random()<=a.cleaningRate&&a.logsStore.cleanLogsStore(a.databaseToken),a.retryQueuedRequests(),a.networkManager.isNetworkAvailable()&&a.throttledSend(),a.networkManager.listen(a.onlineEvent,a.throttledSend.bind(a)),a.networkManager.listen(a.offlineEvent,a.cancelThrottledSend.bind(a)))};
_.Z=Gp.prototype;_.Z.writeThenSend=function(a,z){var I=this;z=z===void 0?{}:z;if(vE(this)&&this.initialized){var J={url:a,options:z,timestamp:this.now(),status:"NEW",sendCount:0};this.logsStore.set(J,this.databaseToken).then(function(r){J.id=r;I.networkManager.isNetworkAvailable()&&I.immediateSend(J)}).catch(function(r){I.immediateSend(J);
jAX(I,r)})}else this.sendFn(a,z)};
_.Z.sendThenWrite=function(a,z,I){var J=this;z=z===void 0?{}:z;if(vE(this)&&this.initialized){var r={url:a,options:z,timestamp:this.now(),status:"NEW",sendCount:0};this.getBooleanFlag&&this.getBooleanFlag("nwl_skip_retry")&&(r.skipRetry=I);if(this.networkManager.isNetworkAvailable()||this.getBooleanFlag&&this.getBooleanFlag("nwl_aggressive_send_then_write")&&!r.skipRetry){if(!r.skipRetry){var P=z.onError?z.onError:function(){};
z.onError=function(N,u){return _.t(function(E){if(E.nextAddress==1)return E.yield(J.logsStore.set(r,J.databaseToken).catch(function(O){jAX(J,O)}),2);
P(N,u);_.nu(E)})}}this.sendFn(a,z,r.skipRetry)}else this.logsStore.set(r,this.databaseToken).catch(function(N){J.sendFn(a,z,r.skipRetry);
jAX(J,N)})}else this.sendFn(a,z,this.getBooleanFlag&&this.getBooleanFlag("nwl_skip_retry")&&I)};
_.Z.sendAndWrite=function(a,z){var I=this;z=z===void 0?{}:z;if(vE(this)&&this.initialized){var J={url:a,options:z,timestamp:this.now(),status:"NEW",sendCount:0},r=!1,P=z.onSuccess?z.onSuccess:function(){};
J.options.onSuccess=function(N,u){J.id!==void 0?I.logsStore.deleteRequest(J.id,I.databaseToken):r=!0;I.networkManager.networkStatusHint&&I.getBooleanFlag&&I.getBooleanFlag("vss_network_hint")&&I.networkManager.networkStatusHint(!0);P(N,u)};
this.sendFn(J.url,J.options,void 0,!0);this.logsStore.set(J,this.databaseToken).then(function(N){J.id=N;r&&I.logsStore.deleteRequest(J.id,I.databaseToken)}).catch(function(N){jAX(I,N)})}else this.sendFn(a,z,void 0,!0)};
_.Z.throttledSend=function(){var a=this;if(!vE(this))throw Error("Xc");this.intervalJob||(this.intervalJob=this.jobManager.addLowPriorityJob(function(){var z;return _.t(function(I){if(I.nextAddress==1)return I.yield(a.logsStore.getMostRecentByStatus("NEW",a.databaseToken),2);if(I.nextAddress!=3)return z=I.yieldResult,z?I.yield(a.immediateSend(z),3):(a.cancelThrottledSend(),I.return());a.intervalJob&&(a.intervalJob=0,a.throttledSend());_.nu(I)})},this.throttleTimeout))};
_.Z.cancelThrottledSend=function(){this.jobManager.cancelJob(this.intervalJob);this.intervalJob=0};
_.Z.immediateSend=function(a){var z=this,I;return _.t(function(J){switch(J.nextAddress){case 1:if(!vE(z))throw Error("Yc");if(a.id===void 0){J.jumpTo(2);break}return J.yield(z.logsStore.markAsQueued(a.id,z.databaseToken),3);case 3:(I=J.yieldResult)||z.handleWarning(Error("Zc"));case 2:if(z.requestWithinAgeLimit(a,z.requestAgeLimitMs)){J.jumpTo(4);break}z.handleWarning(Error("$c"));if(a.id===void 0){J.jumpTo(5);break}return J.yield(z.logsStore.deleteRequest(a.id,z.databaseToken),5);case 5:return J.return();
case 4:a.skipRetry||(a=zFo(z,a));if(!a){J.jumpTo(0);break}if(!a.skipRetry||a.id===void 0){J.jumpTo(8);break}return J.yield(z.logsStore.deleteRequest(a.id,z.databaseToken),8);case 8:z.sendFn(a.url,a.options,!!a.skipRetry),_.nu(J)}})};
var zFo=function(a,z){if(!vE(a))throw Error("ad");var I=z.options.onError?z.options.onError:function(){};
z.options.onError=function(r,P){var N,u,E,O;return _.t(function(f){switch(f.nextAddress){case 1:N=Y87(P);(u=q8E(P))&&a.getBooleanFlag&&a.getBooleanFlag("web_enable_error_204")&&a.handleError(Error("bd"),z.url,P);if(!(a.getBooleanFlag&&a.getBooleanFlag("nwl_consider_error_code")&&N||a.getBooleanFlag&&!a.getBooleanFlag("nwl_consider_error_code")&&a.potentialEsfErrorCounter<=a.potentialEsfErrorLimit)){f.jumpTo(2);break}if(!a.networkManager.sendNetworkCheckRequest){f.jumpTo(3);break}return f.yield(a.networkManager.sendNetworkCheckRequest(),
3);case 3:if(a.networkManager.isNetworkAvailable()){f.jumpTo(2);break}I(r,P);if(!a.getBooleanFlag||!a.getBooleanFlag("nwl_consider_error_code")||((E=z)==null?void 0:E.id)===void 0){f.jumpTo(6);break}return f.yield(a.logsStore.resetRequest(z.id,a.databaseToken,!1),6);case 6:return f.return();case 2:if(a.getBooleanFlag&&a.getBooleanFlag("nwl_consider_error_code")&&!N&&a.potentialEsfErrorCounter>a.potentialEsfErrorLimit)return f.return();a.potentialEsfErrorCounter++;if(((O=z)==null?void 0:O.id)===void 0){f.jumpTo(8);
break}return z.sendCount<a.retryMaxAttempts?f.yield(a.logsStore.resetRequest(z.id,a.databaseToken,!0,u?!1:void 0),12):f.yield(a.logsStore.deleteRequest(z.id,a.databaseToken),8);case 12:a.jobManager.addLowPriorityJob(function(){a.networkManager.isNetworkAvailable()&&a.throttledSend()},a.retryDelayMs);
case 8:I(r,P),_.nu(f)}})};
var J=z.options.onSuccess?z.options.onSuccess:function(){};
z.options.onSuccess=function(r,P){var N;return _.t(function(u){if(u.nextAddress==1)return((N=z)==null?void 0:N.id)===void 0?u.jumpTo(2):u.yield(a.logsStore.deleteRequest(z.id,a.databaseToken),2);a.networkManager.networkStatusHint&&a.getBooleanFlag&&a.getBooleanFlag("vss_network_hint")&&a.networkManager.networkStatusHint(!0);J(r,P);_.nu(u)})};
return z};
Gp.prototype.requestWithinAgeLimit=function(a,z){a=a.timestamp;return this.now()-a>=z?!1:!0};
Gp.prototype.retryQueuedRequests=function(){var a=this;if(!vE(this))throw Error("cd");this.logsStore.getMostRecentByStatus("QUEUED",this.databaseToken).then(function(z){z&&!a.requestWithinAgeLimit(z,a.queuedRequestAgeLimitMs)?a.jobManager.addLowPriorityJob(function(){return _.t(function(I){if(I.nextAddress==1)return z.id===void 0?I.jumpTo(2):I.yield(a.logsStore.resetRequest(z.id,a.databaseToken),2);a.retryQueuedRequests();_.nu(I)})}):a.networkManager.isNetworkAvailable()&&a.throttledSend()})};
var jAX=function(a,z){a.writeError&&!a.networkManager.isNetworkAvailable()?a.writeError(z):a.handleError(z)},vE=function(a){return!!a.databaseToken||a.bypassDbTokenDependency};var ewG;var Pq0={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,producerMediaServicesResetDetails:522,tvhtml5ShowClockEvent:455,deviceCapabilityCheckMetrics:456,youtubeClearcutEvent:461,offlineBrowseFallbackEvent:463,getCtvTokenEvent:464,
startupDroppedFramesSummary:466,screenshotEvent:468,miniAppPlayEvent:469,elementsDebugCounters:470,fontLoadEvent:471,webKillswitchReceived:473,webKillswitchExecuted:474,cameraOpenEvent:475,manualSmoothnessMeasurement:476,tvhtml5AppQualityEvent:477,polymerPropertyAccessEvent:479,miniAppSdkUsage:480,cobaltTelemetryEvent:481,crossDevicePlayback:482,channelCreatedWithObakeImage:484,channelEditedWithObakeImage:485,offlineDeleteEvent:486,crossDeviceNotificationTransfer:487,androidIntentEvent:488,unpluggedAmbientInterludesCounterfactualEvent:489,
keyPlaysPlayback:490,shortsCreationFallbackEvent:493,vssData:491,castMatch:494,miniAppPerformanceMetrics:495,userFeedbackEvent:496,kidsGuestSessionMismatch:498,musicSideloadedPlaylistMigrationEvent:499,sleepTimerSessionFinishEvent:500,watchEpPromoConflict:503,innertubeResponseCacheMetrics:505,miniAppAdEvent:506,dataPlanUpsellEvent:507,producerProjectRenamed:508,producerMediaSelectionEvent:511,embedsAutoplayStatusChanged:512,remoteConnectEvent:513,connectedSessionMisattributionEvent:514,producerProjectElementModified:515,
adsSeenClientLogging:517,producerEvent:518,tvhtml5CleanStart:519,deviceAccountMetricsEvent:520,derpLogEvent:521,playablesPortalEvent:523,ipValidationStarted:524,ipValidationReceived:525,reelsSequenceMutationEvent:527};var I1o={},Ndd=a3("ServiceWorkerLogsDatabase",{objectStores:(I1o.SWHealthLog={addedAtVersion:1},I1o),shared:!0,upgrade:function(a,z){z(1)&&R3(DZ(a,"SWHealthLog",{keyPath:"id",autoIncrement:!0}),"swHealthNewRequest",["interface","timestamp"])},
version:1});var AjI={},fAG=0;var FoG;var $Q=function(){this.requestMap=new Map;this.anyRequestHasSucceeded=!1},ml=function(){if(!$Q.instance){var a=_.DH("yt.networkRequestMonitor.instance")||new $Q;
_.qe("yt.networkRequestMonitor.instance",a);$Q.instance=a}return $Q.instance};
$Q.prototype.requestComplete=function(a,z){z&&(this.anyRequestHasSucceeded=!0);a=this.removeParams(a);this.requestMap.get(a)||this.requestMap.set(a,z)};
$Q.prototype.isEndpointCFR=function(a){a=this.removeParams(a);return(a=this.requestMap.get(a))?!1:a===!1&&this.anyRequestHasSucceeded?!0:null};
$Q.prototype.removeParams=function(a){return a.split("?")[0]};
$Q.prototype.removeParams=$Q.prototype.removeParams;$Q.prototype.isEndpointCFR=$Q.prototype.isEndpointCFR;$Q.prototype.requestComplete=$Q.prototype.requestComplete;$Q.getInstance=ml;var XN=function(a){_.HV.call(this);var z=this;this.pollingJob=this.abortTimeoutKey=0;this.jobManager=a!=null?a:{addLowPriorityJob:function(r,P){return setTimeout(r,P)},
cancelJob:function(r){clearTimeout(r)}};
var I,J;this.isOnline=(J=(I=window.navigator)==null?void 0:I.onLine)!=null?J:!0;this.onNavigatorChange=function(){return _.t(function(r){return r.yield(J$I(z),0)})};
window.addEventListener("offline",this.onNavigatorChange);window.addEventListener("online",this.onNavigatorChange);this.pollingJob||r$w(this)};
_.b(XN,_.HV);XN.prototype.dispose=function(){window.removeEventListener("offline",this.onNavigatorChange);window.removeEventListener("online",this.onNavigatorChange);this.jobManager.cancelJob(this.pollingJob);delete XN.instance};
XN.prototype.isNetworkAvailable=function(){return this.isOnline};
var r$w=function(a){a.pollingJob=a.jobManager.addLowPriorityJob(function(){var z;return _.t(function(I){if(I.nextAddress==1)return a.isOnline?((z=window.navigator)==null?0:z.onLine)?I.jumpTo(3):I.yield(J$I(a),3):I.yield(J$I(a),3);r$w(a);_.nu(I)})},3E4)},J$I=function(a,z){return a.networkRequestPromise?a.networkRequestPromise:a.networkRequestPromise=new Promise(function(I){var J,r,P,N;
return _.t(function(u){switch(u.nextAddress){case 1:return J=window.AbortController?new window.AbortController:void 0,P=(r=J)==null?void 0:r.signal,N=!1,_.BP(u,2,3),J&&(a.abortTimeoutKey=a.jobManager.addLowPriorityJob(function(){J.abort()},z||2E4)),u.yield(fetch("/generate_204",{method:"HEAD",
signal:P}),5);case 5:N=!0;case 3:_.Ok(u);a.networkRequestPromise=void 0;a.abortTimeoutKey&&(a.jobManager.cancelJob(a.abortTimeoutKey),a.abortTimeoutKey=0);N!==a.isOnline&&(a.isOnline=N,a.isOnline?a.dispatchEvent("networkstatus-online"):a.dispatchEvent("networkstatus-offline"));I(N);_.Ay(u,0);break;case 2:_.sk(u),N=!1,u.jumpTo(3)}})})};var Tp=function(){_.HV.call(this);var a=this;this.shouldFlushErrors=!1;XN.instance||(XN.instance=new XN(_.GW));this.sharedNetworkStatusManager=XN.instance;this.sharedNetworkStatusManager.listen("networkstatus-online",function(){if(a.shouldFlushErrors&&_.K("offline_error_handling")){var z=Hw3().get("errors",!0);if(z){for(var I in z)if(z[I]){var J=new _.Fn(I,"sent via offline_errors");J.name=z[I].name;J.stack=z[I].stack;J.level=z[I].level;_.oL(J)}Hw3().set("errors",{},2592E3,!0)}}})};
_.b(Tp,_.HV);var Pde=function(){if(!Tp.instance){var a=_.DH("yt.networkStatusManager.instance")||new Tp;_.qe("yt.networkStatusManager.instance",a);Tp.instance=a}return Tp.instance};
_.Z=Tp.prototype;_.Z.isNetworkAvailable=function(){return this.sharedNetworkStatusManager.isNetworkAvailable()};
_.Z.networkStatusHint=function(a){this.sharedNetworkStatusManager.isOnline=a};
_.Z.getWindowStatus=function(){var a=window.navigator.onLine;return a===void 0?!0:a};
_.Z.enableErrorFlushing=function(){this.shouldFlushErrors=!0};
_.Z.listen=function(a,z){return this.sharedNetworkStatusManager.listen(a,z)};
_.Z.sendNetworkCheckRequest=function(a){a=J$I(this.sharedNetworkStatusManager,a);a.then(function(z){_.K("use_cfr_monitor")&&ml().requestComplete("generate_204",z)});
return a};
Tp.prototype.sendNetworkCheckRequest=Tp.prototype.sendNetworkCheckRequest;Tp.prototype.listen=Tp.prototype.listen;Tp.prototype.enableErrorFlushing=Tp.prototype.enableErrorFlushing;Tp.prototype.getWindowStatus=Tp.prototype.getWindowStatus;Tp.prototype.networkStatusHint=Tp.prototype.networkStatusHint;Tp.prototype.isNetworkAvailable=Tp.prototype.isNetworkAvailable;Tp.getInstance=Pde;_.wo=function(a){a=a===void 0?{}:a;_.HV.call(this);var z=this;this.lastJobTime=this.schedulerJob=0;this.nsmInstance=Pde();var I=_.DH("yt.networkStatusManager.instance.listen").bind(this.nsmInstance);I&&(a.rateLimit?(this.rateLimit=a.rateLimit,I("networkstatus-online",function(){ZLf(z,"publicytnetworkstatus-online")}),I("networkstatus-offline",function(){ZLf(z,"publicytnetworkstatus-offline")})):(I("networkstatus-online",function(){z.dispatchEvent("publicytnetworkstatus-online")}),I("networkstatus-offline",
function(){z.dispatchEvent("publicytnetworkstatus-offline")})))};
_.b(_.wo,_.HV);_.wo.prototype.isNetworkAvailable=function(){var a=_.DH("yt.networkStatusManager.instance.isNetworkAvailable");return a?a.bind(this.nsmInstance)():!0};
_.wo.prototype.networkStatusHint=function(a){var z=_.DH("yt.networkStatusManager.instance.networkStatusHint").bind(this.nsmInstance);z&&z(a)};
_.wo.prototype.sendNetworkCheckRequest=function(a){var z=this,I;return _.t(function(J){I=_.DH("yt.networkStatusManager.instance.sendNetworkCheckRequest").bind(z.nsmInstance);return _.K("skip_network_check_if_cfr")&&ml().isEndpointCFR("generate_204")?J.return(new Promise(function(r){var P;z.networkStatusHint(((P=window.navigator)==null?void 0:P.onLine)||!0);r(z.isNetworkAvailable())})):I?J.return(I(a)):J.return(!0)})};
var ZLf=function(a,z){a.rateLimit?a.lastJobTime?(_.GW.cancelJob(a.schedulerJob),a.schedulerJob=_.GW.addLowPriorityJob(function(){a.lastPublicSignalSent!==z&&(a.dispatchEvent(z),a.lastPublicSignalSent=z,a.lastJobTime=(0,_.jp)())},a.rateLimit-((0,_.jp)()-a.lastJobTime))):(a.dispatchEvent(z),a.lastPublicSignalSent=z,a.lastJobTime=(0,_.jp)()):a.dispatchEvent(z)};var Sg7,da=function(){Gp.call(this,{logsStore:{cleanLogsStore:Zw3,deleteRequest:PNM,getMostRecentByStatus:IA0,markAsQueued:Jj7,resetRequest:rjx,set:zLp},networkManager:_.iwd(),handleError:function(a,z,I){var J,r=I==null?void 0:(J=I.error)==null?void 0:J.code;if(r===400||r===415){var P;a=new _.Fn(a.message,z,I==null?void 0:(P=I.error)==null?void 0:P.code);_.RL(a,void 0,void 0,void 0,!0)}else _.oL(a)},
handleWarning:_.RL,sendFn:VgO,now:_.jp,writeError:bwE,jobManager:_.ig(),onlineEvent:"publicytnetworkstatus-online",offlineEvent:"publicytnetworkstatus-offline",enableCleaning:!0,cleaningRate:.1,potentialEsfErrorLimit:_.Ib("potential_esf_error_limit",10),getBooleanFlag:_.K,disableYtIdbTransactions:!(_.K1()&&_.xpm())});this.initializationPromise=new _.EM;_.K("networkless_immediately_drop_all_requests")&&CNG();qrm("LogsDatabaseV2")};
_.b(da,Gp);_.NFI=function(){var a=_.DH("yt.networklessRequestController.instance");a||(a=new da,_.qe("yt.networklessRequestController.instance",a),_.K("networkless_logging")&&_.e6().then(function(z){a.databaseToken=z;a1I(a);a.initializationPromise.resolve();a.enableCleaning&&Math.random()<=a.cleaningRate&&a.databaseToken&&uJ$(a.databaseToken);_.K("networkless_immediately_drop_sw_health_store")&&Cdi(a)}));
return a};
da.prototype.writeThenSend=function(a,z){z||(z={});z=Q0d(a,z);_.K1()||(this.initialized=!1);Gp.prototype.writeThenSend.call(this,a,z)};
da.prototype.sendThenWrite=function(a,z,I){z||(z={});z=Q0d(a,z);_.K1()||(this.initialized=!1);Gp.prototype.sendThenWrite.call(this,a,z,I)};
da.prototype.sendAndWrite=function(a,z){z||(z={});z=Q0d(a,z);_.K1()||(this.initialized=!1);Gp.prototype.sendAndWrite.call(this,a,z)};
da.prototype.awaitInitialization=function(){return this.initializationPromise.promise};
var Cdi=function(a){var z;_.t(function(I){if(!a.databaseToken)throw z=ob("clearSWHealthLogsDb"),z;return I.return(ENG(a.databaseToken).catch(function(J){a.handleError(J)}))})};_.GQ3=!1;_.vNG=_.IE.ytNetworklessLoggingInitializationOptions||{isNwlInitialized:_.GQ3};_.qe("ytNetworklessLoggingInitializationOptions",_.vNG);var i9=function(a){var z=this;this.config_=null;a?this.config_=a:ZH3()&&(this.config_=_.I3());_.b9(_.GW,function(){c30(z)},5E3)};
i9.prototype.isReady=function(){!this.config_&&ZH3()&&(this.config_=_.I3());return!!this.config_};
var McE=function(a,z,I,J){!_.Xw("VISITOR_DATA")&&z!=="visitor_id"&&Math.random()<.01&&_.RL(new _.Fn("Missing VISITOR_DATA when sending innertube request.",z,I,J));if(!a.isReady()){var r=new _.Fn("innertube xhrclient not ready",z,I,J);_.oL(r);throw r;}var P={headers:J.headers||{},method:"POST",postParams:I,postBody:J.postBody,postBodyFormat:J.postBodyFormat||"JSON",onTimeout:function(){J.onTimeout()},
onFetchTimeout:J.onTimeout,onSuccess:function(A,n){if(J.onSuccess)J.onSuccess(n)},
onFetchSuccess:function(A){if(J.onSuccess)J.onSuccess(A)},
onProgress:function(A){if(J.onProgress)J.onProgress(A)},
onError:function(A,n){if(J.onError)J.onError(n)},
onFetchError:function(A){if(J.onError)J.onError(A)},
timeout:J.timeout,withCredentials:!0,compress:J.compress};P.headers["Content-Type"]||(P.headers["Content-Type"]="application/json");var N="";(r=a.config_.innertubeHostOverride)&&(N=r);var u=a.config_.innertubeUseThirdPartyAuth||!1,E=_.bH1(u,N,J);Object.assign(P.headers,E);P.headers.Authorization&&!N&&u&&(P.headers["x-origin"]=window.location.origin);var O=_.ms(N+("/youtubei/"+a.config_.innertubeApiVersion+"/"+z),{alt:"json"}),f=function(A){A=A===void 0?!1:A;var n;if(J.retry&&N!="www.youtube-nocookie.com"&&
(A||_.K("skip_ls_gel_retry")||P.headers["Content-Type"]!=="application/json"||(n=y3$(z,I,E,u)),n)){var F=P.onSuccess,h=P.onFetchSuccess;P.onSuccess=function(W,l){kz1(n);F(W,l)};
I.onFetchSuccess=function(W,l){kz1(n);h(W,l)}}try{if(A&&J.retry&&!J.networklessOptions.bypassNetworkless)P.method="POST",J.networklessOptions.writeThenSend?_.NFI().writeThenSend(O,P):_.NFI().sendAndWrite(O,P);
else if(J.compress){var v=!J.networklessOptions.writeThenSend;if(P.postBody){var d=P.postBody;typeof d!=="string"&&(d=JSON.stringify(P.postBody));WZI(O,d,P,_.Ez,v)}else WZI(O,JSON.stringify(P.postParams),P,pAG,v)}else _.K("web_all_payloads_via_jspb")?_.Ez(O,P):pAG(O,P)}catch(W){if(W.name==="InvalidAccessError")n&&(kz1(n),n=0),_.RL(Error("dd"));else throw W;}n&&_.b9(_.GW,function(){c30(a)},5E3)};
_.$pG()?pdm().then(function(A){f(A)}):f(!1)};var dgm=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.GY(a)};
_.b(dgm,_.ju);var tlj=0,Tdx=_.ue?"webkit":_.tY?"moz":_.NS?"ms":ng0?"o":"";_.qe("ytDomDomGetNextId",_.DH("ytDomDomGetNextId")||function(){return++tlj});var uZJ={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},qV=function(a){this.type="";this.state=this.source=this.data=this.currentTarget=this.relatedTarget=this.target=null;this.charCode=this.keyCode=0;this.metaKey=this.shiftKey=this.ctrlKey=this.altKey=!1;this.rotation=this.clientY=this.clientX=0;this.scale=1;this.changedTouches=this.touches=null;try{if(a=
a||window.event){this.event=a;for(var z in a)z in uZJ||(this[z]=a[z]);this.scale=a.scale;this.rotation=a.rotation;var I=a.target||a.srcElement;I&&I.nodeType==3&&(I=I.parentNode);this.target=I;var J=a.relatedTarget;if(J)try{J=J.nodeName?J:null}catch(r){J=null}else this.type=="mouseover"?J=a.fromElement:this.type=="mouseout"&&(J=a.toElement);this.relatedTarget=J;this.clientX=a.clientX!=void 0?a.clientX:a.pageX;this.clientY=a.clientY!=void 0?a.clientY:a.pageY;this.keyCode=a.keyCode?a.keyCode:a.which;
this.charCode=a.charCode||(this.type=="keypress"?this.keyCode:0);this.altKey=a.altKey;this.ctrlKey=a.ctrlKey;this.shiftKey=a.shiftKey;this.metaKey=a.metaKey;this.pageX_=a.pageX;this.pageY_=a.pageY}}catch(r){}},E2I=function(a){if(document.body&&document.documentElement){var z=document.body.scrollTop+document.documentElement.scrollTop;
a.pageX_=a.clientX+(document.body.scrollLeft+document.documentElement.scrollLeft);a.pageY_=a.clientY+z}};
qV.prototype.preventDefault=function(){this.event&&(this.event.returnValue=!1,this.event.preventDefault&&this.event.preventDefault())};
qV.prototype.stopPropagation=function(){this.event&&(this.event.cancelBubble=!0,this.event.stopPropagation&&this.event.stopPropagation())};
qV.prototype.stopImmediatePropagation=function(){this.event&&(this.event.cancelBubble=!0,this.event.stopImmediatePropagation&&this.event.stopImmediatePropagation())};var Yk=_.IE.ytEventsEventsListeners||{};_.qe("ytEventsEventsListeners",Yk);var RLG=_.IE.ytEventsEventsCounter||{count:0};_.qe("ytEventsEventsCounter",RLG);var Lod=_.FO(function(){var a=!1;try{var z=Object.defineProperty({},"capture",{get:function(){a=!0}});
window.addEventListener("test",null,z)}catch(I){}return a});_.rL(aO,_.FC);aO.prototype.onMouseMove_=function(a){a.pageX_===void 0&&E2I(a);var z=a.pageX_;a.pageY_===void 0&&E2I(a);this.position_=new _.GB(z,a.pageY_)};
aO.prototype.checkPosition_=function(){if(this.position_){var a=(0,_.jp)();if(this.previousTime_!=0){var z=this.previousPosition_,I=this.position_,J=z.x-I.x;z=z.y-I.y;J=Math.sqrt(J*J+z*z)/(a-this.previousTime_);this.cycles_[this.index_]=Math.abs((J-this.previousVelocity_)/this.previousVelocity_)>.5?1:0;for(I=z=0;I<4;I++)z+=this.cycles_[I]||0;z>=3&&this.callback_();this.previousVelocity_=J}this.previousTime_=a;this.previousPosition_=this.position_;this.index_=(this.index_+1)%4}};
aO.prototype.disposeInternal=function(){window.clearInterval(this.timerId_);_.lAG(this.mouseListenerKey_)};var yjx={};var jKi=new _.jv("rawColdConfigGroup");var acE=new _.jv("rawHotConfigGroup");var BFl=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.GY(a)};
_.b(BFl,_.ju);var TnO=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.GY(a)};
_.b(TnO,_.ju);var Ha=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.GY(a,500)};
_.b(Ha,_.ju);Ha.prototype.getPayloadCase=function(){return _.be(this,g2i)};
Ha.prototype.getContext=function(){return _.JC(this,TnO,33)};
var g2i=[2,3,5,6,7,11,13,20,21,22,23,24,28,32,37,45,59,72,73,74,76,78,79,80,85,91,97,100,102,105,111,117,119,126,127,136,146,148,151,156,157,158,159,163,164,168,176,177,178,179,184,188,189,190,191,193,194,195,196,197,198,199,200,201,202,203,204,205,206,208,209,215,219,222,225,226,227,229,232,233,234,240,241,244,247,248,249,251,254,255,256,257,258,259,260,261,266,270,272,278,288,291,293,300,304,308,309,310,311,313,314,319,320,321,323,324,327,328,330,331,332,334,337,338,340,344,348,350,351,352,353,
354,355,356,357,358,361,363,364,368,369,370,373,374,375,378,380,381,383,388,389,399,402,403,410,411,412,413,414,415,416,417,418,423,424,425,426,427,429,430,431,439,441,444,448,458,469,471,473,474,480,481,482,484,485,486,491,495,496,506,507,509,511,512,513,514,515,516,517,518,519,520,522,523,524,525,527];var kdM=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.GY(a)};
_.b(kdM,_.ju);var bSd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.GY(a)};
_.b(bSd,_.ju);bSd.prototype.setVideoId=function(a){return g2(this,1,hh3,u0(a))};
bSd.prototype.getPlaylistId=function(){return _.gQ(this,nv(this,hh3,2))};
var hh3=[1,2];var LfG=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.GY(a)};
_.b(LfG,_.ju);LfG.prototype.getContext=function(){return _.JC(this,Ow,1)};
LfG.prototype.getTier=function(){return _.GL(this,7)};var OLl,r2,Pa;OLl=_.IE.ytPubsubPubsubInstance||new _.gM;r2=_.IE.ytPubsubPubsubSubscribedKeys||{};Pa=_.IE.ytPubsubPubsubTopicToKeys||{};_.kQm=_.IE.ytPubsubPubsubIsSynchronous||{};_.gM.prototype.subscribe=_.gM.prototype.subscribe;_.gM.prototype.unsubscribeByKey=_.gM.prototype.unsubscribeByKey;_.gM.prototype.publish=_.gM.prototype.publish;_.gM.prototype.clear=_.gM.prototype.clear;_.qe("ytPubsubPubsubInstance",OLl);_.qe("ytPubsubPubsubTopicToKeys",Pa);_.qe("ytPubsubPubsubIsSynchronous",_.kQm);
_.qe("ytPubsubPubsubSubscribedKeys",r2);var Cv=window;var WE=_.K("web_enable_lifecycle_monitoring")&&eL0()!==0,f1X=_.K("web_enable_lifecycle_monitoring");var A$E=function(a){var z=this;var I=I===void 0?0:I;var J=J===void 0?_.ig():J;this.JSC$10805_defaultPriority=I;this.scheduler=J;this.completedResolver=new _.EM;this.scheduledPayloads=a;for(a={i$jscomp$487:0};a.i$jscomp$487<this.scheduledPayloads.length;a={payload$jscomp$19:void 0,i$jscomp$487:a.i$jscomp$487},a.i$jscomp$487++)a.payload$jscomp$19=this.scheduledPayloads[a.i$jscomp$487],I=function(r){return function(){r.payload$jscomp$19.job();z.scheduledPayloads[r.i$jscomp$487].processed=!0;z.scheduledPayloads.every(function(P){return P.processed===
!0})&&z.completedResolver.resolve()}}(a),J=this.getPriority(a.payload$jscomp$19),J=this.scheduler.addJob(I,J),this.scheduledPayloads[a.i$jscomp$487]=Object.assign({},a.payload$jscomp$19,{job:I,
jobId:J})};
A$E.prototype.flushJobs=function(){var a=this,z=Array.from(this.scheduledPayloads.keys()).sort(function(J,r){return a.getPriority(a.scheduledPayloads[r])-a.getPriority(a.scheduledPayloads[J])});
z=_.C(z);for(var I=z.next();!I.done;I=z.next())I=this.scheduledPayloads[I.value],I.jobId===void 0||I.processed||(this.scheduler.cancelJob(I.jobId),this.scheduler.addJob(I.job,10))};
A$E.prototype.cancel=function(){for(var a=_.C(this.scheduledPayloads),z=a.next();!z.done;z=a.next())z=z.value,z.jobId===void 0||z.processed||this.scheduler.cancelJob(z.jobId),z.processed=!0;this.completedResolver.resolve()};
A$E.prototype.getPriority=function(a){var z;return(z=a.priority)!=null?z:this.JSC$10805_defaultPriority};var o4=function(a){this.state=a;this.plugins=[];this.overridePriority=void 0;this.processPluginOptions={};WE&&atG(this.state)};
o4.prototype.install=function(a){this.plugins.push(a);return this};
o4.prototype.uninstall=function(){var a=this;_.dO.apply(0,arguments).forEach(function(z){z=a.plugins.indexOf(z);z>-1&&a.plugins.splice(z,1)})};
o4.prototype.transition=function(a,z){var I=this;WE&&j5O(this.state);var J=this.transitions.find(function(P){return Array.isArray(P.from)?P.from.find(function(N){return N===I.state&&P.to===a}):P.from===I.state&&P.to===a});
if(J){this.jobSet&&(this.jobSet.flushJobs(),this.jobSet=void 0);sAj(this,a,z);this.state=a;WE&&atG(this.state);J=J.action.bind(this);var r=this.plugins.filter(function(P){return P[a]}).map(function(P){return P[a]});
J(n2O(this,r),z)}else throw Error("ed`"+this.state+"`"+a);};
var n2O=function(a,z){var I=z.filter(function(r){return KKl(a,r)===10}),J=z.filter(function(r){return KKl(a,r)!==10});
return a.processPluginOptions.shouldWaitOnAsyncImmediate?function(){var r=_.dO.apply(0,arguments);return _.t(function(P){if(P.nextAddress==1)return P.yield(a.runImmediateJobsAsync.apply(a,[I].concat(_.ih(r))),2);a.setJobSetWithScheduledJobs.apply(a,[J].concat(_.ih(r)));_.nu(P)})}:function(){var r=_.dO.apply(0,arguments);
a.runImmediateJobsSync.apply(a,[I].concat(_.ih(r)));a.setJobSetWithScheduledJobs.apply(a,[J].concat(_.ih(r)))}};
o4.prototype.runImmediateJobsSync=function(a){var z=_.dO.apply(1,arguments);_.ig();for(var I=_.C(a),J=I.next(),r={};!J.done;r={lifecycle$jscomp$2:void 0},J=I.next())r.lifecycle$jscomp$2=J.value,CS(function(P){return function(){FKw(P.lifecycle$jscomp$2.name);ItO(function(){return P.lifecycle$jscomp$2.callback.apply(P.lifecycle$jscomp$2,_.ih(z))});
U9(P.lifecycle$jscomp$2.name)}}(r))};
o4.prototype.runImmediateJobsAsync=function(a){var z=_.dO.apply(1,arguments),I,J,r,P;return _.t(function(N){N.nextAddress==1&&(_.ig(),I=_.C(a),J=I.next(),r={});if(N.nextAddress!=3){if(J.done)return N.jumpTo(0);r.lifecycle$jscomp$3=J.value;r.asyncJobCompletion=void 0;P=function(u){return function(){FKw(u.lifecycle$jscomp$3.name);var E=ItO(function(){return u.lifecycle$jscomp$3.callback.apply(u.lifecycle$jscomp$3,_.ih(z))});
YIi(E)?u.asyncJobCompletion=_.K("web_lifecycle_error_handling_killswitch")?E.then(function(){U9(u.lifecycle$jscomp$3.name)}):E.then(function(){U9(u.lifecycle$jscomp$3.name)},function(O){zh1(O);
U9(u.lifecycle$jscomp$3.name)}):U9(u.lifecycle$jscomp$3.name)}}(r);
CS(P);return r.asyncJobCompletion?N.yield(r.asyncJobCompletion,3):N.jumpTo(3)}r={lifecycle$jscomp$3:void 0,asyncJobCompletion:void 0};J=I.next();return N.jumpTo(2)})};
o4.prototype.setJobSetWithScheduledJobs=function(a){var z=_.dO.apply(1,arguments),I=this,J=a.map(function(r){return{job:function(){FKw(r.name);ItO(function(){return r.callback.apply(r,_.ih(z))});
U9(r.name)},
priority:KKl(I,r)}});
J.length&&(this.jobSet=new A$E(J))};
var KKl=function(a,z){var I,J;return(J=(I=a.overridePriority)!=null?I:z.priority)!=null?J:0},FKw=function(a){WE&&a&&atG(a)},U9=function(a){WE&&a&&j5O(a)},sAj=function(a,z,I){f1X&&console.groupCollapsed&&console.groupEnd&&(console.groupCollapsed("["+a.constructor.name+"] '"+a.state+"' to '"+z+"'"),console.log("with message: ",I),console.groupEnd())};
_.eH.Object.defineProperties(o4.prototype,{currentState:{configurable:!0,enumerable:!0,get:function(){return this.state}}});var HLO=function(a){o4.call(this,a===void 0?"none":a);this.navigationTimer=null;this.overridePriority=10;this.transitions=[{from:"none",to:"application_navigating",action:this.runApplicationNavigationBegin},{from:"application_navigating",to:"none",action:this.runApplicationNavigationEnd},{from:"application_navigating",to:"application_navigating",action:function(){}},
{from:"none",to:"none",action:function(){}}]},bLX;
_.b(HLO,o4);HLO.prototype.runApplicationNavigationBegin=function(a,z){var I=this;this.navigationTimer=_.b9(_.GW,function(){I.currentState==="application_navigating"&&I.transition("none")},5E3);
a(z==null?void 0:z.event)};
HLO.prototype.runApplicationNavigationEnd=function(a,z){this.navigationTimer&&(_.GW.cancelJob(this.navigationTimer),this.navigationTimer=null);a(z==null?void 0:z.event)};
_.ehO=function(){bLX||(bLX=new HLO);return bLX};var qWM=[];_.qe("yt.logging.transport.getScrapedGelPayloads",function(){return qWM});var Nm=function(){var a=this;this.store={};this.totalEntries=0;this.memoizedKeySequences={};this.TEST_ONLY={getEntriesCount:function(){return a.totalEntries}}};
Nm.prototype.storePayload=function(a,z){a=Jf3(a);this.store[a]?this.store[a].push(z):(this.memoizedKeySequences={},this.store[a]=[z]);this.totalEntries++;_.K("more_accurate_gel_parser")&&(z=new CustomEvent("TRANSPORTING_NEW_EVENT"),window.dispatchEvent(z));return a};
Nm.prototype.smartExtractMatchingEntries=function(a){if(!a.keys.length)return[];for(var z=hFi(this,a.keys.splice(0,1)[0]),I=[],J=0;J<z.length;J++)this.store[z[J]]&&a.sizeLimit&&(this.store[z[J]].length<=a.sizeLimit?(I.push.apply(I,_.ih(this.store[z[J]])),delete this.store[z[J]]):I.push.apply(I,_.ih(this.store[z[J]].splice(0,a.sizeLimit))));this.totalEntries-=I.length;(a==null?0:a.sizeLimit)&&I.length<(a==null?void 0:a.sizeLimit)&&(a.sizeLimit-=I.length,I.push.apply(I,_.ih(this.smartExtractMatchingEntries(a))));
return I};
Nm.prototype.extractMatchingEntries=function(a){a=hFi(this,a);for(var z=[],I=0;I<a.length;I++)this.store[a[I]]&&(z.push.apply(z,_.ih(this.store[a[I]])),delete this.store[a[I]]);this.totalEntries-=z.length;return z};
Nm.prototype.getSequenceCount=function(a){a=hFi(this,a);for(var z=0,I=0;I<a.length;I++){var J=void 0;z+=((J=this.store[a[I]])==null?void 0:J.length)||0}return z};
var hFi=function(a,z){var I=Jf3(z);if(a.memoizedKeySequences[I])return a.memoizedKeySequences[I];var J=Object.keys(a.store)||[];if(J.length<=1&&Jf3(z)===J[0])return J;for(var r=[],P=0;P<J.length;P++){var N=J[P].split("/");if(VlI(z.auth,N[0])){var u=z.isJspb;VlI(u===void 0?"undefined":u?"true":"false",N[1])&&VlI(z.cttAuthInfo,N[2])&&(u=z.tier,u=u===void 0?"undefined":JSON.stringify(u),VlI(u,N[3])&&r.push(J[P]))}}return a.memoizedKeySequences[I]=r},VlI=function(a,z){return a===void 0||a==="undefined"?
!0:a===z};
Nm.prototype.getSequenceCount=Nm.prototype.getSequenceCount;Nm.prototype.extractMatchingEntries=Nm.prototype.extractMatchingEntries;Nm.prototype.smartExtractMatchingEntries=Nm.prototype.smartExtractMatchingEntries;Nm.prototype.storePayload=Nm.prototype.storePayload;var X87,Gdp,T47,Ew,QAI,rEd,JE3,vqG,xKi,s5M,$K7,cfE,Q5$;X87=_.Ib("initial_gel_batch_timeout",2E3);Gdp=_.Ib("gel_queue_timeout_max_ms",6E4);T47=_.Ib("gel_min_batch_size",5);Ew=void 0;QAI=function(){this.lastDebounceQueueFromLogTimeMs=this.queueMaxTimer=this.queueTimer=0;this.useVideoStatsEndPoint=!1};
rEd=new QAI;JE3=new QAI;vqG=new QAI;xKi=new QAI;$K7=!0;cfE=1;_.MkI=new Map;Q5$=_.IE.ytLoggingTransportTokensToCttTargetIds_||{};_.qe("ytLoggingTransportTokensToCttTargetIds_",Q5$);var Vkm=_.IE.ytLoggingTransportTokensToJspbCttTargetIds_||{};_.qe("ytLoggingTransportTokensToJspbCttTargetIds_",Vkm);var u9={};var Q4=_.IE.ytLoggingGelSequenceIdObj_||{};_.qe("ytLoggingGelSequenceIdObj_",Q4);var Cq0=[];var KYG=new Set,Bi$=0,hpd=0,bUM=0,OU0=[],gcG=[],Vrd=["PhantomJS","Googlebot","TO STOP THIS SECURITY SCAN go/scan"];var Uhx=function(){};
Uhx.prototype.getUrl=function(a,z){z=z===void 0?!1:z;return a.hasOwnProperty("shareEndpoint")?null:_.xh3(a,null,z)};
var hjG=function(a,z,I){a={endpoint:z,actions:[]};I=(I.path?I.path[0]:I.target).icon||"";z=I.indexOf(":");z>0&&(I=I.substr(z+1));I&&a.actions.push(I);return a};var dhp=/Command$/,Ti7=/Endpoint$/,GIE=new Map;var SXO,iLw;SXO=1;_.w2=function(){this.actionRoutingMap=new Map};
_.w2.prototype.triggerAction=function(a){var z=new Bn7(a,!1,_.dO.apply(1,arguments));this.handleAction(z);return z.returnValue};
_.w2.prototype.triggerOptionalAction=function(a){var z=new Bn7(a,!0,_.dO.apply(1,arguments));this.handleAction(z);return z.returnValue};
_.DN=function(a,z,I){z.forEach(function(J){var r=XnE(J);r&&a.triggerOptionalAction(r,J,I,void 0)})};
_.w2.prototype.handleAction=function(a){var z=this.actionRoutingMap.get(a.actionName);z&&iLw(a,z);a.optionalAction||a.returnValue.length!==0||(a=new _.Fn("Unhandled action",a.actionName),_.RL(a))};
iLw=function(a,z){z.forEach(function(I){var J=null;I?J=I.apply(null,a.args):(I=Error("fd"),I.params=a.actionName,_.oL(I));a.returnValue.push(J)})};
_.m_=function(a,z,I){I||(I=SXO++);for(var J=_.C(Object.keys(z)),r=J.next();!r.done;r=J.next()){r=r.value;var P=a.actionRoutingMap.get(r);P||(P=new Map,a.actionRoutingMap.set(r,P));a.registerActionHandler(I,r,z[r],P)}return I};
_.w2.prototype.registerActionHandler=function(a,z,I,J){J.set(a,_.Ue(I))};
_.y4=function(a,z,I){z=_.C(Object.keys(z));for(var J=z.next();!J.done;J=z.next())(J=a.actionRoutingMap.get(J.value))&&J.delete(I)};
_.Is(_.w2);var LY7=function(a,z){var I=_.w2.getInstance();_.QO(function(){var J={},r=_.m_(I,(J[a]=z,J));_.V3(function(){var P={};_.y4(I,(P[a]="",P),r)})})};var UGE=Symbol("hd");MHp=VlM;var JQi=new Set(["For","If","Match","Watch"]),xZi={},v2w=(xZi[Te.default]=function(){return LkE},xZi.style=function(){return LkE},xZi),GXI;
for(GXI in v2w)eW.attributes[GXI]=v2w[GXI](eW.attributes[GXI]);var jH=new _.I4("VISIBILITY_OBSERVER");var gsd={retrieve:function(a){return this.id.\u0275prov.token===a.\u0275prov.token?this.contextValue:this?_.cW(this,this.id):Kl1}};var dWI=function(a,z,I){if(a!==Y0)return!1;a=qNp(document.createElement("div"),function(){var J=aL(!1);try{I[0]()}finally{aL(J)}});
a=Array.from(a.childNodes);a.length===1&&(a=a[0]);return a};var $Zv=function(a){a=a.clone();zZi(a);bu(a,"dg",null);bu(a,"d","0");qeE(a,null);exw(a,null);return a},XJo=!0,TFf=function(a,z,I){var J=I===void 0?{}:I;
I=J.cssRowKey===void 0?void 0:J.cssRowKey;var r=J.combinedSignature===void 0?void 0:J.combinedSignature;var P=J.extraEdges===void 0?void 0:J.extraEdges;J=J.callback===void 0?void 0:J.callback;bu(a,"m",z.join(","));P&&jbG(a,P);I&&(bu(a,"ck",I),r?bu(a,"rs",r):XJo&&(XJo=!1));if(J){if(J!=null&&!rP1.test(J))throw Error("Xa`"+J);bu(a,"cb",J)}a=a.toString();_.Pp(a,"/")&&(a=$0J(document.location.href)+a);return _.H9(a)};var WKO=function(a){return dZj(a).then(function(z){return JSON.parse(z.responseText)})},dZj=function(a){var z={},I=z.xmlHttpFactory?z.xmlHttpFactory.createInstance():KOe.createInstance();
return(new _.Ba(function(J,r){var P;try{I.open("GET",a,!0)}catch(E){r(new R4("Error opening XHR: "+E.message,a,I))}I.onreadystatechange=function(){if(I.readyState==4){_.IE.clearTimeout(P);var E;!(E=n8G(I.status))&&(E=I.status===0)&&(E=GYj(a),E=!(E=="http"||E=="https"||E==""));E?J(I):r(new o2i(I.status,a,I))}};
I.onerror=function(){r(new R4("Network error",a,I))};
if(z.headers)for(var N in z.headers){var u=z.headers[N];u!=null&&I.setRequestHeader(N,u)}z.withCredentials&&(I.withCredentials=z.withCredentials);z.responseType&&(I.responseType=z.responseType);z.mimeType&&I.overrideMimeType(z.mimeType);z.timeoutMs>0&&(P=_.IE.setTimeout(function(){I.onreadystatechange=function(){};
I.abort();r(new UZw(a,I))},z.timeoutMs));
try{I.send(null)}catch(E){I.onreadystatechange=function(){},_.IE.clearTimeout(P),r(new R4("Error sending XHR: "+E.message,a,I))}})).thenCatch(function(J){J instanceof _.Lc&&I.abort();
throw J;})},R4=function(a,z,I){_.aE.call(this,a+", url="+z);
this.url=z;this.xhr=I};
_.rL(R4,_.aE);R4.prototype.name="XhrError";var o2i=function(a,z,I){R4.call(this,"Request Failed, status="+a,z,I);this.status=a};
_.rL(o2i,R4);o2i.prototype.name="XhrHttpError";var UZw=function(a,z){R4.call(this,"Request timed out",a,z)};
_.rL(UZw,R4);UZw.prototype.name="XhrTimeoutError";zL=zL||{};var LE=function(){_.FC.call(this)};
_.rL(LE,_.FC);LE.prototype.initialize=function(){};var DZw=function(a,z){this.fn_=a;this.handler_=z};
DZw.prototype.execute=function(a){this.fn_&&(this.fn_.call(this.handler_||null,a),this.fn_=this.handler_=null)};
DZw.prototype.abort=function(){this.handler_=this.fn_=null};var l_=function(a,z){_.FC.call(this);this.deps_=a;this.JSC$10932_id_=z;this.onloadCallbacks_=[];this.JSC$10932_onErrorCallbacks_=[];this.earlyOnloadCallbacks_=[]};
_.rL(l_,_.FC);l_.prototype.moduleConstructor_=LE;l_.prototype.module_=null;l_.prototype.getId=function(){return this.JSC$10932_id_};
l_.prototype.registerCallback=function(a,z){return RFv(this.onloadCallbacks_,a,z)};
var LKI=function(a,z){RFv(a.JSC$10932_onErrorCallbacks_,z)},RFv=function(a,z,I){z=new DZw(z,I);
a.push(z);return z};
l_.prototype.isLoaded=function(){return!!this.module_};
l_.prototype.onLoad=function(a){var z=new this.moduleConstructor_;z.initialize(a());this.module_=z;z=(z=l1G(this.earlyOnloadCallbacks_,a()))||l1G(this.onloadCallbacks_,a());z||(this.JSC$10932_onErrorCallbacks_.length=0);return z};
l_.prototype.onError=function(a){(a=l1G(this.JSC$10932_onErrorCallbacks_,a))&&J1(Error("ld`"+a));this.earlyOnloadCallbacks_.length=0;this.onloadCallbacks_.length=0};
var l1G=function(a,z){for(var I=[],J=0;J<a.length;J++)try{a[J].execute(z)}catch(r){J1(r),I.push(r)}a.length=0;return I.length?I:null};
l_.prototype.disposeInternal=function(){l_.superClass_.disposeInternal.call(this);_.Y8(this.module_)};var pJJ,c$l,kXe,Ml1,mZJ,y$i,j_I,eFI,aFJ;
_.wa=function(a,z,I,J,r){J=J===void 0?!1:J;r=r===void 0?!1:r;var P=P===void 0?!0:P;this.scsReferenceUrl_=lZ1(_.bj(a).toString(),P);this.cssRowKey_=z;this.combinedSignature_=I;this.useNegativeLoading_=J;this.requestedModuleMap_={};this.JSC$10935_moduleInfoMap_={};this.requestedModuleList_=[];this.requestedModuleListSorted_=!0;this.loadedCssModuleList_=(a=HD(this.scsReferenceUrl_,"excm"))?a.split(","):[];this.shouldScanForCss_=r;this.useCors_=!1;this.corsMode_="anonymous";this.urlMaxLength=4043;this.insertPos=
document.head||document.documentElement;this.pendingModuleGraphUpdate_=this.lastScript_=null;this.supportsExtraEdges=!0;pLx();_.pE(this,ave(this.scsReferenceUrl_));this.fetchPriority=void 0;this.enableFallbackFetch=!1;this.maybeSetAdditionalFields()};
pJJ=function(a,z){if(z.href||z.getAttribute("data-href"))if(z=z.href||z.getAttribute("data-href"),UVE(z)&&!lZ1(z).urlPrefix_.endsWith("_/js/")){z=ave(lZ1(z));z=_.C(z);for(var I=z.next();!I.done;I=z.next())I=I.value,a.loadedCssModuleList_.includes(I)||a.loadedCssModuleList_.push(I)}};
_.wa.prototype.JSC$10937_loadModules=function(a,z,I){var J=I===void 0?{}:I;I=J.extraEdges;var r=J.onError;var P=J.onSuccess;J=J.forceReload;this.JSC$10935_moduleInfoMap_=z;if(!a)throw Error("md");if(this.shouldScanForCss_){z=_.C(document.getElementsByTagName("style"));for(var N=z.next();!N.done;N=z.next())pJJ(this,N.value);z=_.C(document.getElementsByTagName("link"));for(N=z.next();!N.done;N=z.next())pJJ(this,N.value)}wJw(this,mZJ(this,a),I,r,P,J)};
var wJw=function(a,z,I,J,r,P){J=J===void 0?function(){}:J;
r=r===void 0?function(){}:r;
P=P===void 0?!1:P;y$i(a,z,function(N,u,E){E=E===void 0?u:E;a.enableFallbackFetch&&P?a.loadWithFetch(N,u,J,r,E):a.load(N,u,J,r,E,I)},I)||J(-1)};
_.wa.prototype.loadWithFetch=function(){_.t(function(){throw Error("nd");})};
_.wa.prototype.maybeSetAdditionalFields=function(){};
c$l=function(a,z,I){if(a.useNegativeLoading_){var J=a.scsReferenceUrl_;a={cssRowKey:a.cssRowKey_,combinedSignature:a.combinedSignature_,extraEdges:I,requestedModuleIds:kXe(a),requestedCssModuleIds:Ml1(a)};var r=a===void 0?{}:a;a=r.requestedModuleIds===void 0?[]:r.requestedModuleIds;I=r.requestedCssModuleIds===void 0?[]:r.requestedCssModuleIds;var P=r.cssRowKey===void 0?void 0:r.cssRowKey;var N=r.combinedSignature===void 0?void 0:r.combinedSignature;var u=r.extraEdges===void 0?void 0:r.extraEdges;
r=r.callback===void 0?void 0:r.callback;J=$Zv(J);bu(J,"d","1");qeE(J,a);exw(J,I);z=TFf(J,z,{cssRowKey:P,combinedSignature:N,extraEdges:u,callback:r})}else J=a.scsReferenceUrl_,a={cssRowKey:a.cssRowKey_,combinedSignature:a.combinedSignature_,requestedModuleIds:kXe(a),requestedCssModuleIds:Ml1(a)},u=a===void 0?{}:a,a=u.requestedCssModuleIds===void 0?[]:u.requestedCssModuleIds,I=u.cssRowKey===void 0?void 0:u.cssRowKey,P=u.combinedSignature===void 0?void 0:u.combinedSignature,N=u.extraEdges===void 0?
void 0:u.extraEdges,u=u.callback===void 0?void 0:u.callback,J=$Zv(J),exw(J,a),z=TFf(J,z,{cssRowKey:I,combinedSignature:P,extraEdges:N,callback:u});return z};
_.pE=function(a,z){for(var I=!1,J=[],r=0;r<z.length;++r){var P=z[r];a.requestedModuleMap_[P]||(a.requestedModuleMap_[P]=!0,a.requestedModuleList_.push(P),I=!0,J.push(P))}I&&(a.requestedModuleListSorted_=!1)};
_.mq=function(a,z){for(var I=[],J=0;J<z.length;++J){var r=z[J];a.requestedModuleMap_[r]&&(delete a.requestedModuleMap_[r],_.Di(a.requestedModuleList_,r),I.push(r))}};
_.wa.prototype.load=function(a,z,I,J,r){r=r===void 0?z:r;_.bj(a);var P=this.useCors_,N=this.corsMode_,u=this.fetchPriority,E=_.OS("SCRIPT");_.c9(E,a);P&&(E.crossOrigin=N);E.async=!1;u&&E.setAttribute("fetchpriority",u);_.pE(this,z);_.YXv(this,a,E,z,I,J,r)};
_.YXv=function(a,z,I,J,r,P,N){N=N===void 0?J:N;a.lastScript_=I;a.insertPos.insertBefore(I,a.insertPos.firstChild);_.qXX(I,J,function(){I.parentElement.removeChild(I);a.lastScript_==I&&(a.lastScript_=null);var u=new Set;J.map(function(O){return u.add(O)});
for(var E in a.JSC$10935_moduleInfoMap_)a.JSC$10935_moduleInfoMap_[E].isLoaded()&&u.add(E);Array.from(u);P()},function(u){I.parentElement.removeChild(I);
a.lastScript_==I&&(a.lastScript_=null);_.mq(a,u);a.pendingModuleGraphUpdate_?a.pendingModuleGraphUpdate_.then(function(){r(-1,z)}):r(-1,z)},N)};
_.qXX=function(a,z,I,J,r){r=r===void 0?z:r;var P=z.length,N=function(){P=0;a.onload=null;a.onerror=null;u=function(){}},u=function(){N();
var O=r.filter(function(f){return!SW().getModuleInfo(f).isLoaded()});
O.length!==0?J(O,"Response was successful but was missing module(s) "+O+"."):I()},E=function(){P--;
P==0&&u()};
z.forEach(function(O){O=SW().getModuleInfo(O);O.isLoaded()?E():(RFv(O.earlyOnloadCallbacks_,E),LKI(O,E))});
a.onload=function(){return u()};
a.onerror=function(){N();J(z)}};
kXe=function(a){a.requestedModuleListSorted_||(a.requestedModuleListSorted_=!0,a.requestedModuleList_.sort());return a.requestedModuleList_};
Ml1=function(a){a=a.loadedCssModuleList_;a.sort();return a};
mZJ=function(a,z){return z.filter(function(I){return!a.requestedModuleMap_[I]})};
y$i=function(a,z,I,J){if(a.pendingModuleGraphUpdate_)return a.pendingModuleGraphUpdate_.then(function(){y$i(a,z,I,J)}),!0;
if(!a.useNegativeLoading_){var r=[],P=Object.assign({},a.requestedModuleMap_);eFI(a,z,function(f){r.push(f.getId())},J,function(f){return!f.isLoaded()},P);
z=r}for(P=0;P<z.length;){for(var N=z.length-P,u=P==0?z:z.slice(P,z.length),E=c$l(a,u,J),O=_.bj(E).toString();O.length>a.urlMaxLength;)if(N>1)N-=Math.ceil((O.length-a.urlMaxLength)/6),N=Math.max(N,1),u=z.slice(P,P+N),E=c$l(a,u,J),O=_.bj(E).toString();else return a.useNegativeLoading_?(a.useNegativeLoading_=!1,a.pendingModuleGraphUpdate_=aFJ(a).then(function(f){j_I(a,f,J)}),y$i(a,z.slice(P),I,J)):!1;
P+=N;a.useNegativeLoading_?I(E,u):I(E,u,P===z.length?z:[])}return!0};
j_I=function(a,z,I){SW().setAllModuleInfoString((z||{}).moduleGraph);eFI(a,kXe(a),function(J){_.pE(a,[J.getId()])},I);
a.pendingModuleGraphUpdate_=null};
eFI=function(a,z,I,J,r,P){P=P===void 0?{}:P;var N=SW();z=_.C(z);for(var u=z.next();!u.done;u=z.next()){u=u.value;var E=N.getModuleInfo(u);if(!(P[u]||r&&!r(E))){P[u]=!0;var O=E.deps_||[];if(J){var f=[];J[u]&&(f=Object.keys(J[u]));O=O.concat(f)}eFI(a,O,I,J,r,P);I(E)}}};
aFJ=function(a){a=a.scsReferenceUrl_.clone();zZi(a);bu(a,"dg",null);bu(a,"md","1");return WKO(a.toString())};var AQ1=new Uint8Array(123);var zgG=[];var IFO=function(){this.JSC$10011_loader_=null};
_.Z=IFO.prototype;_.Z.setBatchModeEnabled=function(){};
_.Z.setAllModuleInfoString=function(){};
_.Z.addExtraEdge=function(){throw Error("od");};
_.Z.removeExtraEdge=function(){throw Error("pd");};
_.Z.getModuleContext=function(){return null};
_.Z.isActive=function(){return!1};
_.Z.isUserActive=function(){return!1};
_.Z.registerCallback=function(){};var yP=function(a,z,I,J,r){var P=Error.call(this);this.message=P.message;"stack"in P&&(this.stack=P.stack);this.name="ModuleLoadFailure";this.type=a;this.status=z;this.requestedModuleIds=I;this.url=J;this.cause=r;this.message=this.toString()};
_.b(yP,Error);yP.prototype.toString=function(){return JRj(this)+" ("+(this.status!=void 0?this.status:"?")+")"};
var JRj=function(a){switch(a.type){case yP.Type.UNAUTHORIZED:return"Unauthorized";case yP.Type.CONSECUTIVE_FAILURES:return"Consecutive load failures";case yP.Type.TIMEOUT:return"Timed out";case yP.Type.OLD_CODE_GONE:return"Out of date module id";case yP.Type.INIT_ERROR:return"Init error";default:return"Unknown failure type "+a.type}};
zL.ModuleLoadFailure=yP;zL.ModuleLoadFailure.Type={UNAUTHORIZED:0,CONSECUTIVE_FAILURES:1,TIMEOUT:2,OLD_CODE_GONE:3,INIT_ERROR:4};var kQ=function(){this.moduleIds_=this.JSC$10011_loader_=null;this.moduleInfoMap={};this.loadingModuleIds_=[];this.requestedLoadingModuleIds_=[];this.requestedModuleIds_=[];this.requestedModuleIdsQueue_=[];this.userInitiatedLoadingModuleIds_=[];this.JSC$10950_extraEdges_={};this.JSC$10950_callbackMap_={};this.JSC$10950_currentlyLoadingModule_=this.baseModuleInfo_=new l_([],"");this.lastInitialModuleId_=null;this.initialModulesLoaded_=new yD;this.batchModeEnabled_=!1;this.consecutiveFailures_=0;this.isDisposed_=
this.userLastActive_=this.lastActive_=!1};
_.rL(kQ,IFO);var rRo=function(a,z){_.aE.call(this,"Error loading "+a+": "+z)};
_.rL(rRo,_.aE);kQ.prototype.setBatchModeEnabled=function(a){this.batchModeEnabled_=a};
kQ.prototype.setAllModuleInfoString=function(a,z){if(!(this instanceof kQ))this.setAllModuleInfoString(a,z);else if(typeof a==="string"){if(a.startsWith("d$")){a=a.substring(2);for(var I=[],J=0,r=a.indexOf("/"),P=0,N=!1,u=0;;){var E=N?a.substring(P):a.substring(P,r);if(E.length===0)J++,P="sy"+J.toString(36),E=[];else{var O=E.indexOf(":");if(O<0)P=E,E=[];else if(O===E.length-1)P=E.substring(0,O),E=Array(I[u-1]);else{P=E.substring(0,O);E=E.substring(O+1).split(",");O=u;for(var f=0;f<E.length;f++)O-=
E[f].length===0?1:Number(E[f]),E[f]=I[O]}O=0;if(P.length===0)O=1;else if(P.charAt(0)==="+"||P.charAt(0)==="-")O=Number(P);O!==0&&(J+=O,P="sy"+J.toString(36))}I.push(P);PIw(this,P,E);if(N)break;P=r+1;r=a.indexOf("/",P);r===-1&&(N=!0);u++}this.moduleIds_=I}else if(a.startsWith("p$"))Zte(this,a);else{a=a.split("/");I=[];for(J=0;J<a.length;J++){u=a[J].split(":");r=u[0];N=[];if(u[1])for(N=u[1].split(","),u=0;u<N.length;u++)N[u]=I[parseInt(N[u],36)];I.push(r);PIw(this,r,N)}this.moduleIds_=I}z&&z.length?
(_.pG(this.loadingModuleIds_,z),this.lastInitialModuleId_=_.G3(z)):this.initialModulesLoaded_.fired_||this.initialModulesLoaded_.callback();Object.freeze(this.moduleIds_);this.JSC$10950_currentlyLoadingModule_==this.baseModuleInfo_&&(this.JSC$10950_currentlyLoadingModule_=null,(z=this.baseModuleInfo_.onLoad((0,_.HW)(this.getModuleContext,this)))&&z.length&&CIe(this,new zL.ModuleLoadFailure(zL.ModuleLoadFailure.Type.INIT_ERROR,void 0,void 0,void 0,z[0])),MJ(this))}};
var Zte=function(a,z){var I=z.substring(2);for(z=0;z<64;z++)AQ1["ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_".charCodeAt(z)]=z;var J={buf:I,pos:0};JG(J);var r=JG(J),P=JG(J)+1;z=Array(r);var N=Array(r),u=Array(r);P=Array(P);var E=0,O=0,f=J.pos,A=J.buf.indexOf("|",J.pos);J.pos=A+1;for(A=0;A<r;A++){var n=JG(J),F=n&2,h=n&1;n>>>=2;h?(E+=n>>>1^-(n&1),n="sy"+E.toString(36)):(h=f,f+=n,n=I.substring(h,f));z[A]=n;F&&(P[O++]=n)}P[O]="";J.pos++;O=r&-2;I=r&1;for(E=0;E<O;E+=2)f=sd1(J),u[E]=
f&7,u[E+1]=f>>>3&7;I&&(I=sd1(J),u[O]=I&7);J.pos++;for(O=0;O<r;O++)u[O]===7&&(u[O]=JG(J));J.pos++;for(I=O=0;I<r;I++){E=u[I];f=E===0?zgG:Array(E);N[I]=f;A=O;for(F=0;F<E;F++)A-=JG(J),f[F]=P[A];P[O]===z[I]&&O++}for(J=0;J<z.length;J++)PIw(a,z[J],N[J]);a.moduleIds_=z};
_.Z=kQ.prototype;_.Z.getModuleInfo=function(a){return this.moduleInfoMap[a]};
_.Z.addExtraEdge=function(a,z){var I=this.getModuleInfo(a);I&&I.isLoaded()?this.load(z):(this.JSC$10950_extraEdges_[a]||(this.JSC$10950_extraEdges_[a]={}),this.JSC$10950_extraEdges_[a][z]=!0)};
_.Z.removeExtraEdge=function(a,z){if(this.JSC$10950_extraEdges_[a]){delete this.JSC$10950_extraEdges_[a][z];for(var I in this.JSC$10950_extraEdges_[a])return;delete this.JSC$10950_extraEdges_[a]}};
_.Z.isActive=function(){return this.loadingModuleIds_.length>0};
_.Z.isUserActive=function(){return this.userInitiatedLoadingModuleIds_.length>0};
var MJ=function(a){var z=a.lastActive_,I=a.isActive();I!=z&&(a.executeCallbacks_(I?"active":"idle"),a.lastActive_=I);z=a.isUserActive();z!=a.userLastActive_&&(a.executeCallbacks_(z?"userActive":"userIdle"),a.userLastActive_=z)},PIw=function(a,z,I){a.moduleInfoMap[z]?(a=a.moduleInfoMap[z].deps_,a!=I&&a.splice.apply(a,[0,
a.length].concat(_.ih(I)))):a.moduleInfoMap[z]=new l_(I,z)},tEw=function(a,z,I){var J=[];
QEm(z,J);z=[];for(var r={},P=0;P<J.length;P++){var N=J[P],u=a.getModuleInfo(N);if(!u)throw Error("qd`"+N);var E=new yD;r[N]=E;u.isLoaded()?E.callback(null):(NeG(a,N,u,!!I,E),a.isModuleLoading(N)||z.push(N))}z.length>0&&(a.loadingModuleIds_.length===0?a.loadModules_(z):(a.requestedModuleIdsQueue_.push(z),MJ(a)));return r},NeG=function(a,z,I,J,r){I.registerCallback(r.callback,r);
LKI(I,function(P){r.errback(new rRo(z,P))});
a.isModuleLoading(z)?J&&(uzw(a,z),MJ(a)):J&&uzw(a,z)};
kQ.prototype.loadModules_=function(a,z,I){var J=this;z||(this.consecutiveFailures_=0);var r=EAw(this,a);this.loadingModuleIds_=r;this.requestedLoadingModuleIds_=this.batchModeEnabled_?a:_.RE(r);MJ(this);if(r.length!==0){this.requestedModuleIds_.push.apply(this.requestedModuleIds_,r);if(Object.keys(this.JSC$10950_extraEdges_).length>0&&!this.JSC$10011_loader_.supportsExtraEdges)throw Error("rd");a=(0,_.HW)(this.JSC$10011_loader_.JSC$10937_loadModules,this.JSC$10011_loader_,_.RE(r),this.moduleInfoMap,
{extraEdges:this.JSC$10950_extraEdges_,forceReload:!!I,onError:function(P,N){var u=J.requestedLoadingModuleIds_;P=P!=null?P:void 0;J.consecutiveFailures_++;var E=_.RE(r);J.requestedLoadingModuleIds_=u;r.forEach(_.nt(_.Di,J.requestedModuleIds_),J);P==401?(CIe(J,new zL.ModuleLoadFailure(zL.ModuleLoadFailure.Type.UNAUTHORIZED,P)),J.requestedModuleIdsQueue_.length=0):P==410?(BeX(J,new zL.ModuleLoadFailure(zL.ModuleLoadFailure.Type.OLD_CODE_GONE,P)),gAE(J)):J.consecutiveFailures_>=3?(BeX(J,new zL.ModuleLoadFailure(zL.ModuleLoadFailure.Type.CONSECUTIVE_FAILURES,
P,E,N)),gAE(J)):J.loadModules_(J.requestedLoadingModuleIds_,!0,P==8001||!1)},
onTimeout:(0,_.HW)(this.handleLoadTimeout_,this)});(z=Math.pow(this.consecutiveFailures_,2)*5E3)?_.IE.setTimeout(a,z):a()}};
var EAw=function(a,z){z=z.filter(function(r){return a.moduleInfoMap[r].isLoaded()?(_.IE.setTimeout(function(){return Error("sd`"+r)},0),!1):!0});
for(var I=[],J=0;J<z.length;J++)I=I.concat(OtE(a,z[J]));QEm(I);return!a.batchModeEnabled_&&I.length>1?(z=I.shift(),a.requestedModuleIdsQueue_=I.map(function(r){return[r]}).concat(a.requestedModuleIdsQueue_),[z]):I},OtE=function(a,z){var I=_.x8.createSet(a.requestedModuleIds_),J=[];
I[z]||J.push(z);z=[z];for(var r=0;r<z.length;r++)for(var P=a.getModuleInfo(z[r]).deps_,N=P.length-1;N>=0;N--){var u=P[N];a.getModuleInfo(u).isLoaded()||I[u]||(J.push(u),z.push(u))}J.reverse();QEm(J);return J};
kQ.prototype.JSC$10945_setLoaded=function(){if(this.JSC$10950_currentlyLoadingModule_){var a=this.JSC$10950_currentlyLoadingModule_.getId(),z=[];if(this.JSC$10950_extraEdges_[a]){for(var I=_.C(Object.keys(this.JSC$10950_extraEdges_[a])),J=I.next();!J.done;J=I.next()){J=J.value;var r=this.getModuleInfo(J);r&&!r.isLoaded()&&(this.removeExtraEdge(a,J),z.push(J))}this.loadMultiple(z)}this.isDisposed()||((z=this.moduleInfoMap[a].onLoad((0,_.HW)(this.getModuleContext,this)))&&z.length&&CIe(this,new zL.ModuleLoadFailure(zL.ModuleLoadFailure.Type.INIT_ERROR,
void 0,void 0,void 0,z[0])),_.Di(this.userInitiatedLoadingModuleIds_,a),_.Di(this.loadingModuleIds_,a),this.loadingModuleIds_.length===0&&gAE(this),this.lastInitialModuleId_&&a==this.lastInitialModuleId_&&(this.initialModulesLoaded_.fired_||this.initialModulesLoaded_.callback()),MJ(this),this.JSC$10950_currentlyLoadingModule_=null)}};
kQ.prototype.isModuleLoading=function(a){if(_.Um(this.loadingModuleIds_,a))return!0;for(var z=0;z<this.requestedModuleIdsQueue_.length;z++)if(_.Um(this.requestedModuleIdsQueue_[z],a))return!0;return!1};
kQ.prototype.load=function(a,z){return tEw(this,[a],z)[a]};
kQ.prototype.loadMultiple=function(a){return tEw(this,a)};
var uzw=function(a,z){_.Um(a.userInitiatedLoadingModuleIds_,z)||a.userInitiatedLoadingModuleIds_.push(z)};
kQ.prototype.beforeLoadModuleCode=function(a){var z=this;this.JSC$10950_currentlyLoadingModule_&&this.JSC$10950_currentlyLoadingModule_.getId()==="synthetic_module_overhead"&&(this.JSC$10945_setLoaded(),delete this.moduleInfoMap.synthetic_module_overhead);this.moduleInfoMap[a]&&fFE(this,this.moduleInfoMap[a].deps_||[],function(I){I.module_=new LE;_.Di(z.loadingModuleIds_,I.getId())},function(I){return!I.isLoaded()});
this.JSC$10950_currentlyLoadingModule_=this.getModuleInfo(a)};
kQ.prototype.handleLoadTimeout_=function(){BeX(this,new zL.ModuleLoadFailure(zL.ModuleLoadFailure.Type.TIMEOUT));gAE(this)};
var BeX=function(a,z){a.requestedLoadingModuleIds_.length>1?a.requestedModuleIdsQueue_=a.requestedLoadingModuleIds_.map(function(I){return[I]}).concat(a.requestedModuleIdsQueue_):CIe(a,z)},CIe=function(a,z){var I=a.requestedLoadingModuleIds_;
a.loadingModuleIds_.length=0;for(var J=[],r=0;r<a.requestedModuleIdsQueue_.length;r++){var P=a.requestedModuleIdsQueue_[r].filter(function(E){var O=OtE(this,E);return yE(I,function(f){return _.Um(O,f)})},a);
_.pG(J,P)}for(r=0;r<I.length;r++)_.HGG(J,I[r]);for(r=0;r<J.length;r++){for(P=0;P<a.requestedModuleIdsQueue_.length;P++)_.Di(a.requestedModuleIdsQueue_[P],J[r]);_.Di(a.userInitiatedLoadingModuleIds_,J[r])}if(r=a.JSC$10950_callbackMap_.error)for(P=0;P<r.length;P++)for(var N=r[P],u=0;u<J.length;u++)N("error",J[u],z);for(J=0;J<I.length;J++)if(a.moduleInfoMap[I[J]])a.moduleInfoMap[I[J]].onError(z);a.requestedLoadingModuleIds_.length=0;MJ(a)},gAE=function(a){for(;a.requestedModuleIdsQueue_.length;){var z=
a.requestedModuleIdsQueue_.shift().filter(function(I){return!this.getModuleInfo(I).isLoaded()},a);
if(z.length>0){a.loadModules_(z);return}}MJ(a)};
kQ.prototype.registerCallback=function(a,z){Array.isArray(a)||(a=[a]);for(var I=0;I<a.length;I++){var J=a[I],r=z,P=this.JSC$10950_callbackMap_;P[J]||(P[J]=[]);P[J].push(r)}};
kQ.prototype.executeCallbacks_=function(a){for(var z=this.JSC$10950_callbackMap_[a],I=0;z&&I<z.length;I++)z[I](a)};
var fFE=function(a,z,I,J,r){J=J===void 0?function(){return!0}:J;
r=r===void 0?{}:r;z=_.C(z);for(var P=z.next();!P.done;P=z.next()){P=P.value;var N=a.getModuleInfo(P);!r[P]&&J(N)&&(r[P]=!0,fFE(a,N.deps_||[],I,J,r),I(N))}};
kQ.prototype.dispose=function(){_.qM(_.x8.getValues(this.moduleInfoMap),this.baseModuleInfo_);this.moduleInfoMap={};this.loadingModuleIds_=[];this.requestedLoadingModuleIds_=[];this.userInitiatedLoadingModuleIds_=[];this.requestedModuleIdsQueue_=[];this.JSC$10950_callbackMap_={};this.isDisposed_=!0};
kQ.prototype.isDisposed=function(){return this.isDisposed_};
_.Qc=function(){return new kQ};var ARv=[5E3,2E4],s_G=function(){this.JSC$10011_loader_=null;this.JSC$10958_moduleInfoMap_=Object.create(null);this.loadingModules_=Object.create(null);this.activeLoads_=0;this.JSC$10958_queue_=[];this.JSC$10958_extraEdges_=Object.create(null);this.JSC$10958_currentlyLoadingModule_=this.getModuleInfo("{base}")};
_.b(s_G,IFO);_.Z=s_G.prototype;_.Z.setAllModuleInfoString=function(){this.JSC$10958_currentlyLoadingModule_&&this.JSC$10958_currentlyLoadingModule_.getId()=="{base}"&&this.JSC$10945_setLoaded()};
_.Z.getModuleInfo=function(a){var z=this.JSC$10958_moduleInfoMap_[a];z||(z=new l_([],a),this.JSC$10958_moduleInfoMap_[a]=z);return z};
_.Z.addExtraEdge=function(a,z){this.getModuleInfo(a).isLoaded()?this.load(z):(this.JSC$10958_extraEdges_[a]||(this.JSC$10958_extraEdges_[a]={}),this.JSC$10958_extraEdges_[a][z]=!0)};
_.Z.removeExtraEdge=function(a,z){if(this.JSC$10958_extraEdges_[a]){delete this.JSC$10958_extraEdges_[a][z];for(var I in this.JSC$10958_extraEdges_[a])return;delete this.JSC$10958_extraEdges_[a]}};
_.Z.isModuleLoading=function(a){return!!this.loadingModules_[a]};
_.Z.load=function(a){nAw(this,[a]);return K8O(this,a)};
_.Z.loadMultiple=function(a){var z=this,I=Object.create(null),J=[];a.forEach(function(r){I[r]||(I[r]=K8O(z,r),J.push(r))});
nAw(this,J);return I};
_.Z.beforeLoadModuleCode=function(a){var z;((z=this.JSC$10958_currentlyLoadingModule_)==null?void 0:z.getId())==="synthetic_module_overhead"&&this.JSC$10945_setLoaded();var I,J;F8I(this,(J=(I=this.JSC$10958_moduleInfoMap_[a])==null?void 0:I.deps_)!=null?J:[],function(r){r.module_=new LE},function(r){return!r.isLoaded()});
this.JSC$10958_currentlyLoadingModule_=this.getModuleInfo(a)};
_.Z.JSC$10945_setLoaded=function(){if(this.JSC$10958_currentlyLoadingModule_){var a=this.JSC$10958_currentlyLoadingModule_.getId(),z=[];if(this.JSC$10958_extraEdges_[a]){for(var I=_.C(Object.keys(this.JSC$10958_extraEdges_[a])),J=I.next();!J.done;J=I.next())J=J.value,this.getModuleInfo(J).isLoaded()||(this.removeExtraEdge(a,J),z.push(J));this.loadMultiple(z)}this.JSC$10958_currentlyLoadingModule_.onLoad(function(){return null});
this.JSC$10958_currentlyLoadingModule_=null;(!this.isModuleLoading(a)&&/^sy[0-9a-z]{0,4}$/.test(a)||a==="synthetic_module_overhead")&&delete this.JSC$10958_moduleInfoMap_[a];this.unsetModulesAsLoading(a)}};
_.Z.setModulesAsLoading=function(){var a=this;_.dO.apply(0,arguments).forEach(function(z){a.loadingModules_[z]=!0})};
_.Z.unsetModulesAsLoading=function(){var a=this;_.dO.apply(0,arguments).forEach(function(z){delete a.loadingModules_[z]})};
var K8O=function(a,z){return new _.Ba(function(I,J){var r=a.getModuleInfo(z);r.isLoaded()?I(null):(r.registerCallback(function(){I(null)}),LKI(r,function(P){var N="Error loading "+z+": "+P;
P instanceof zL.ModuleLoadFailure&&P.url&&(N=N+", requested url: "+P.url.toString());J(Error(N))}))})},nAw=function(a,z){z=z.filter(function(I){return!a.isModuleLoading(I)&&!a.getModuleInfo(I).isLoaded()});
z.length>0&&(a.setModulesAsLoading.apply(a,_.ih(z)),a.JSC$10958_queue_.push(z),HtI(a))},HtI=function(a){for(var z={};a.activeLoads_<Infinity&&a.JSC$10958_queue_.length>0;z={finishLoad:void 0,
ids$jscomp$36:void 0,attempt$jscomp$6:void 0,load$jscomp$1:void 0})z.ids$jscomp$36=a.JSC$10958_queue_.shift().filter(function(I){return!a.getModuleInfo(I).isLoaded()}),z.ids$jscomp$36.length>0&&(a.activeLoads_++,z.finishLoad=function(I){return function(){a.activeLoads_--;
HtI(a);I.finishLoad=function(){}}}(z),_.VD(z.ids$jscomp$36.map(function(I){return K8O(a,I)})).then(function(I){return function(){(0,I.finishLoad)()}}(z)),z.attempt$jscomp$6=0,z.load$jscomp$1=function(I){return function(){if(Object.keys(a.JSC$10958_extraEdges_).length>0&&!a.JSC$10011_loader_.supportsExtraEdges)throw Error("rd");
a.JSC$10011_loader_.JSC$10937_loadModules(I.ids$jscomp$36,a.JSC$10958_moduleInfoMap_,{extraEdges:a.JSC$10958_extraEdges_,onError:function(J,r){var P=ARv[I.attempt$jscomp$6++];P!==void 0?setTimeout(function(){(0,I.load$jscomp$1)()},P):(a.unsetModulesAsLoading.apply(a,_.ih(I.ids$jscomp$36)),(0,I.finishLoad)(),I.ids$jscomp$36.forEach(function(N){N=a.getModuleInfo(N);
if(!N.isLoaded())N.onError(new zL.ModuleLoadFailure(zL.ModuleLoadFailure.Type.CONSECUTIVE_FAILURES,J,I.ids$jscomp$36,r))}))}})}}(z),(0,z.load$jscomp$1)())},F8I=function(a,z,I,J,r){J=J===void 0?function(){return!0}:J;
r=r===void 0?{}:r;z=_.C(z);for(var P=z.next();!P.done;P=z.next()){P=P.value;var N=a.getModuleInfo(P);!r[P]&&J(N)&&(r[P]=!0,F8I(a,N.deps_||[],I,J,r),I(N))}};var btX=!/^\s*class\s*\{\s*\}\s*$/.test(function(){}.toString());var Ky$=Symbol("ud");window.JSCompiler_renameProperty=function(a){return a};/*

 Copyright 2016 Google LLC
 SPDX-License-Identifier: BSD-3-Clause
*/
var hgX=!btX||HTMLElement.es5Shimmed||_.IE.Reflect===void 0||_.IE.customElements===void 0||_.IE.customElements.polyfillWrapFlushCallback||!1,VEG,YvG=function(){var a=HTMLElement;if(hgX)return a;if(VEG!==void 0)return VEG;var z=_.IE.Reflect,I=function(){return z.construct(a,[],this.constructor)};
I.prototype=a.prototype;I.prototype.constructor=I;I.es5Shimmed=!0;Object.setPrototypeOf(I,a);return VEG=I},Q_j=!1;hgX||Q_j||(Q_j=!0,_.IE.HTMLElement=YvG());/*

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 V8d=/(url\()([^)]*)(\))/g,bcd=/(^\/[^\/])|(^#)|(^[\w-\d]*:)/,hk7,r3;var DV=!window.ShadyDOM||!window.ShadyDOM.inUse,S_e=!(window.ShadyCSS&&!window.ShadyCSS.nativeCss),itw=!window.customElements.polyfillWrapFlushCallback,x$e;if(x$e=DV&&"adoptedStyleSheets"in Document.prototype&&"replaceSync"in CSSStyleSheet.prototype)try{var vAi=new CSSStyleSheet;vAi.replaceSync("");var Gbo=document.createElement("div");Gbo.attachShadow({mode:"open"});Gbo.shadowRoot.adoptedStyleSheets=[vAi];x$e=Gbo.shadowRoot.adoptedStyleSheets[0]===vAi}catch(a){x$e=!1}
var $$G=x$e,XAv=window.Polymer&&window.Polymer.rootPath||S1I(document.baseURI||window.location.href),n6=window.Polymer&&window.Polymer.sanitizeDOMValue||void 0,dlp=window.Polymer&&window.Polymer.setPassiveTouchGestures||!1,p6=window.Polymer&&window.Polymer.strictTemplatePolicy||!1,TeJ=window.Polymer&&window.Polymer.allowTemplateFromDomModule||!1,Uc=window.Polymer&&window.Polymer.legacyOptimizations||!1,la=window.Polymer&&window.Polymer.legacyWarnings||!1,d$X=window.Polymer&&window.Polymer.syncInitialRender||
!1,Hv=window.Polymer&&window.Polymer.legacyUndefined||!1,W8f=window.Polymer&&window.Polymer.orderedComputed||!1,cE=window.Polymer&&window.Polymer.removeNestedTemplates||!1,YQ=window.Polymer&&window.Polymer.fastDomIf||!1,qJ=window.Polymer&&window.Polymer.suppressTemplateNotifications||!1,oAl=window.Polymer&&window.Polymer.legacyNoObservedAttributes||!1,U$I=window.Polymer&&window.Polymer.useAdoptedStyleSheetsWithBuiltCSS||!1;var ev={},D$f={},hG=function(){return HTMLElement.apply(this,arguments)||this};
_.b(hG,HTMLElement);hG.import=function(a,z){return a?(a=ev[a]||D$f[a.toLowerCase()])&&z?a.querySelector(z):a:null};
hG.prototype.attributeChangedCallback=function(a,z,I){z!==I&&this.register()};
hG.prototype.register=function(a){if(a=a||this.id){if(p6&&(ev[a]||D$f[a.toLowerCase()])!==void 0)throw ev[a]=D$f[a.toLowerCase()]=null,Error("vd`"+a);this.id=a;ev[a]=D$f[a.toLowerCase()]=this;this.querySelector("style")&&console.warn("dom-module %s has style outside template",this.id)}};
_.eH.Object.defineProperties(hG.prototype,{assetpath:{configurable:!0,enumerable:!0,get:function(){if(!this.__assetpath){var a=window.HTMLImports&&HTMLImports.importForElement?HTMLImports.importForElement(this)||document:this.ownerDocument;a=_.Pv(this.getAttribute("assetpath")||"",a.baseURI);this.__assetpath=S1I(a)}return this.__assetpath}}});
_.eH.Object.defineProperties(hG,{observedAttributes:{configurable:!0,enumerable:!0,get:function(){return["id"]}}});
hG["import"]=hG.import;hG.prototype.modules=ev;customElements.define("dom-module",hG);var RgI=0,xA1=0,ZV=[],L8G=0,ic$=!1,lFi=document.createTextNode(""),pAl,Wv;(new window.MutationObserver(vsx)).observe(lFi,{characterData:!0});_.ao={after:function(a){return{run:function(z){return window.setTimeout(z,a)},
cancel:function(z){window.clearTimeout(z)}}},
run:function(a,z){return window.setTimeout(a,z)},
cancel:function(a){window.clearTimeout(a)}};
_.iN={run:function(a){return window.requestAnimationFrame(a)},
cancel:function(a){window.cancelAnimationFrame(a)}};
pAl={run:function(a){return window.requestIdleCallback?window.requestIdleCallback(a):window.setTimeout(a,16)},
cancel:function(a){window.cancelIdleCallback?window.cancelIdleCallback(a):window.clearTimeout(a)}};
Wv={run:function(a){ic$||(ic$=!0,lFi.textContent=L8G++);ZV.push(a);return RgI++},
cancel:function(a){var z=a-xA1;if(z>=0){if(!ZV[z])throw Error("wd`"+a);ZV[z]=null}}};var wAE=0,j$=function(a){var z=a.__mixinApplications;z||(z=new WeakMap,a.__mixinApplications=z);var I=wAE++;return function(J){var r=J.__mixinSet;if(r&&r[I])return J;var P=z,N=P.get(J);N||(N=a(J),P.set(J,N),J=Object.create(N.__mixinSet||r||null),J[I]=!0,N.__mixinSet=J);return N}};_.sc=window.ShadyDOM&&window.ShadyDOM.noPatch&&window.ShadyDOM.wrap?window.ShadyDOM.wrap:window.ShadyDOM?function(a){return ShadyDOM.patch(a)}:function(a){return a};var m$X=j$(function(a){var z=function(){var I=a.call(this)||this;I.__dataEnabled=!1;I.__dataReady=!1;I.__dataInvalid=!1;I.__data={};I.__dataPending=null;I.__dataOld=null;I.__dataInstanceProps=null;I.__dataCounter=0;I.__serializing=!1;I._initializeProperties();return I};
_.b(z,a);z.createProperties=function(I){var J=this.prototype,r;for(r in I)r in J||J._createPropertyAccessor(r)};
z.attributeNameForProperty=function(I){return I.toLowerCase()};
z.typeForProperty=function(){};
z.prototype._createPropertyAccessor=function(I,J){this._addPropertyToAttributeMap(I);this.hasOwnProperty("__dataHasAccessor")||(this.__dataHasAccessor=Object.assign({},this.__dataHasAccessor));this.__dataHasAccessor[I]||(this.__dataHasAccessor[I]=!0,this._definePropertyAccessor(I,J))};
z.prototype._addPropertyToAttributeMap=function(I){this.hasOwnProperty("__dataAttributes")||(this.__dataAttributes=Object.assign({},this.__dataAttributes));var J=this.__dataAttributes[I];J||(J=this.constructor.attributeNameForProperty(I),this.__dataAttributes[J]=I);return J};
z.prototype._definePropertyAccessor=function(I,J){Object.defineProperty(this,I,{get:function(){return this.__data[I]},
set:J?function(){}:function(r){this._setPendingProperty(I,r,!0)&&this._invalidateProperties()}})};
z.prototype.ready=function(){this.__dataReady=!0;this._flushProperties()};
z.prototype._initializeProperties=function(){for(var I in this.__dataHasAccessor)this.hasOwnProperty(I)&&(this.__dataInstanceProps=this.__dataInstanceProps||{},this.__dataInstanceProps[I]=this[I],delete this[I])};
z.prototype._initializeInstanceProperties=function(I){Object.assign(this,I)};
z.prototype._setProperty=function(I,J){this._setPendingProperty(I,J)&&this._invalidateProperties()};
z.prototype._getProperty=function(I){return this.__data[I]};
z.prototype._setPendingProperty=function(I,J){var r=this.__data[I],P=this._shouldPropertyChange(I,J,r);P&&(this.__dataPending||(this.__dataPending={},this.__dataOld={}),!this.__dataOld||I in this.__dataOld||(this.__dataOld[I]=r),this.__data[I]=J,this.__dataPending[I]=J);return P};
z.prototype._isPropertyPending=function(I){return!(!this.__dataPending||!this.__dataPending.hasOwnProperty(I))};
z.prototype._invalidateProperties=function(){var I=this;!this.__dataInvalid&&this.__dataReady&&(this.__dataInvalid=!0,Wv.run(function(){I.__dataInvalid&&(I.__dataInvalid=!1,I._flushProperties())}))};
z.prototype._enableProperties=function(){this.__dataEnabled||(this.__dataEnabled=!0,this.__dataInstanceProps&&(this._initializeInstanceProperties(this.__dataInstanceProps),this.__dataInstanceProps=null),this.ready())};
z.prototype._flushProperties=function(){this.__dataCounter++;var I=this.__data,J=this.__dataPending,r=this.__dataOld;this._shouldPropertiesChange(I,J,r)&&(this.__dataOld=this.__dataPending=null,this._propertiesChanged(I,J,r));this.__dataCounter--};
z.prototype._shouldPropertiesChange=function(I,J){return!!J};
z.prototype._propertiesChanged=function(){};
z.prototype._shouldPropertyChange=function(I,J,r){return r!==J&&(r===r||J===J)};
z.prototype.attributeChangedCallback=function(I,J,r,P){J!==r&&this._attributeToProperty(I,r);a.prototype.attributeChangedCallback&&a.prototype.attributeChangedCallback.call(this,I,J,r,P)};
z.prototype._attributeToProperty=function(I,J,r){if(!this.__serializing){var P=this.__dataAttributes;I=P&&P[I]||I;this[I]=this._deserializeValue(J,r||this.constructor.typeForProperty(I))}};
z.prototype._propertyToAttribute=function(I,J,r){this.__serializing=!0;r=arguments.length<3?this[I]:r;this._valueToNodeAttribute(this,r,J||this.constructor.attributeNameForProperty(I));this.__serializing=!1};
z.prototype._valueToNodeAttribute=function(I,J,r){J=this._serializeValue(J);if(r==="class"||r==="name"||r==="slot")I=(0,_.sc)(I);J===void 0?I.removeAttribute(r):I.setAttribute(r,J===""&&window.trustedTypes?window.trustedTypes.emptyScript:J)};
z.prototype._serializeValue=function(I){switch(typeof I){case "boolean":return I?"":void 0;default:return I!=null?I.toString():void 0}};
z.prototype._deserializeValue=function(I,J){switch(J){case Boolean:return I!==null;case Number:return Number(I);default:return I}};
return z});var yRj=0,G0x=[];var kbl=j$(function(a){function z(P){P=Object.getPrototypeOf(P);return P.prototype instanceof r?P:null}
function I(P){if(!P.hasOwnProperty("__ownProperties")){var N=null;if(P.hasOwnProperty("properties")){var u=P.properties;if(u){N={};for(var E in u){var O=u[E];N[E]=typeof O==="function"?{type:O}:O}}}P.__ownProperties=N}return P.__ownProperties}
var J=m$X(a),r=function(){return J.apply(this,arguments)||this};
_.b(r,J);r.finalize=function(){if(!this.hasOwnProperty("__finalized")){var P=z(this);P&&P.finalize();this.__finalized=!0;this._finalizeClass()}};
r._finalizeClass=function(){var P=I(this);P&&this.createProperties(P)};
r.typeForProperty=function(P){return(P=this._properties[P])&&P.type};
r.prototype._initializeProperties=function(){yRj++;this.constructor.finalize();J.prototype._initializeProperties.call(this)};
r.prototype.connectedCallback=function(){J.prototype.connectedCallback&&J.prototype.connectedCallback.call(this);this._enableProperties()};
r.prototype.disconnectedCallback=function(){J.prototype.disconnectedCallback&&J.prototype.disconnectedCallback.call(this)};
_.eH.Object.defineProperties(r,{observedAttributes:{configurable:!0,enumerable:!0,get:function(){var P=this;if(!this.hasOwnProperty("__observedAttributes")){$AG(this.prototype);var N=this._properties;this.__observedAttributes=N?Object.keys(N).map(function(u){return P.prototype._addPropertyToAttributeMap(u)}):[]}return this.__observedAttributes}},
_properties:{configurable:!0,enumerable:!0,get:function(){if(!this.hasOwnProperty("__properties")){var P=z(this);this.__properties=Object.assign({},P&&P._properties,I(this))}return this.__properties}}});
return r});var X0G={},TsG=/-[a-z]/g,dA0=/([A-Z])/g;for(var MEO={},cRJ=HTMLElement.prototype;cRJ;){for(var Y_f=Object.getOwnPropertyNames(cRJ),q_G=0;q_G<Y_f.length;q_G++)MEO[Y_f[q_G]]=!0;cRJ=Object.getPrototypeOf(cRJ)}var egj=window.trustedTypes?function(a){return trustedTypes.isHTML(a)||trustedTypes.isScript(a)||trustedTypes.isScriptURL(a)}:function(){return!1},aYw=j$(function(a){var z=m$X(a);
a=function(){return z.apply(this,arguments)||this};
_.b(a,z);a.createPropertiesForAttributes=function(){for(var I=this.observedAttributes,J=0;J<I.length;J++)this.prototype._createPropertyAccessor(C6(I[J]))};
a.attributeNameForProperty=function(I){return Nr(I)};
a.prototype._initializeProperties=function(){this.__dataProto&&(this._initializeProtoProperties(this.__dataProto),this.__dataProto=null);z.prototype._initializeProperties.call(this)};
a.prototype._initializeProtoProperties=function(I){for(var J in I)this._setProperty(J,I[J])};
a.prototype._ensureAttribute=function(I,J){this.hasAttribute(I)||this._valueToNodeAttribute(this,J,I)};
a.prototype._serializeValue=function(I){switch(typeof I){case "object":if(I instanceof Date)return I.toString();if(I){if(egj(I))return I;try{return JSON.stringify(I)}catch(J){return""}}default:return z.prototype._serializeValue.call(this,I)}};
a.prototype._deserializeValue=function(I,J){switch(J){case Object:try{var r=JSON.parse(I)}catch(P){r=I}break;case Array:try{r=JSON.parse(I)}catch(P){r=null,console.warn("Polymer::Attributes: couldn't decode Array as JSON: "+I)}break;case Date:r=isNaN(I)?String(I):Number(I);r=new Date(r);break;default:r=z.prototype._deserializeValue.call(this,I,J)}return r};
a.prototype._definePropertyAccessor=function(I,J){if(!MEO[I]){var r=this[I];r!==void 0&&(this.__data?this._setPendingProperty(I,r):(this.__dataProto?this.hasOwnProperty("__dataProto")||(this.__dataProto=Object.create(this.__dataProto)):this.__dataProto={},this.__dataProto[I]=r))}z.prototype._definePropertyAccessor.call(this,I,J)};
a.prototype._hasAccessor=function(I){return this.__dataHasAccessor&&this.__dataHasAccessor[I]};
a.prototype._isPropertyPending=function(I){return!!(this.__dataPending&&I in this.__dataPending)};
return a});var jUI={"dom-if":!0,"dom-repeat":!0},zYo=!1,IYo=!1,JWE=function(){var a=window.trustedTypes&&window.trustedTypes.createPolicy("polymer-template-event-attribute-policy",{createScript:function(z){return z}});
return function(z,I,J){I=I.getAttribute(J);a&&J.startsWith("on-")?z.setAttribute(J,a.createScript(I,J)):z.setAttribute(J,I)}}(),rWX=j$(function(a){var z=function(){return a.apply(this,arguments)||this};
_.b(z,a);z._parseTemplate=function(I,J){if(!I._templateInfo){var r=I._templateInfo={};r.nodeInfoList=[];r.nestedTemplate=!!J;r.stripWhiteSpace=J&&J.stripWhiteSpace||I.hasAttribute&&I.hasAttribute("strip-whitespace");this._parseTemplateContent(I,r,{parent:null})}return I._templateInfo};
z._parseTemplateContent=function(I,J,r){return this._parseTemplateNode(I.content,J,r)};
z._parseTemplateNode=function(I,J,r){var P=!1;I.localName!="template"||I.hasAttribute("preserve-content")?I.localName==="slot"&&(J.hasInsertionPoint=!0):P=this._parseTemplateNestedTemplate(I,J,r)||P;if(!zYo){zYo=!0;var N=document.createElement("textarea");N.placeholder="a";IYo=N.placeholder===N.textContent}IYo&&I.localName==="textarea"&&I.placeholder&&I.placeholder===I.textContent&&(I.textContent=null);I.firstChild&&this._parseTemplateChildNodes(I,J,r);I.hasAttributes&&I.hasAttributes()&&(P=this._parseTemplateNodeAttributes(I,
J,r)||P);return P||r.noted};
z._parseTemplateChildNodes=function(I,J,r){if(I.localName!=="script"&&I.localName!=="style")for(var P=I.firstChild,N=0,u;P;P=u){if(P.localName=="template"){var E=P.getAttribute("is");if(E&&jUI[E])for(u=P,u.removeAttribute("is"),P=u.ownerDocument.createElement(E),u.parentNode.replaceChild(P,u),P.appendChild(u);u.attributes.length;)E=u.attributes[0].name,JWE(P,u,E),u.removeAttribute(E)}u=P.nextSibling;if(P.nodeType===Node.TEXT_NODE){for(E=u;E&&E.nodeType===Node.TEXT_NODE;)P.textContent+=E.textContent,
u=E.nextSibling,I.removeChild(E),E=u;if(J.stripWhiteSpace&&!P.textContent.trim()){I.removeChild(P);continue}}E={parentIndex:N,parentInfo:r};this._parseTemplateNode(P,J,E)&&(E.infoIndex=J.nodeInfoList.push(E)-1);P.parentNode&&N++}};
z._parseTemplateNestedTemplate=function(I,J,r){J=this._parseTemplate(I,J);(J.content=I.content.ownerDocument.createDocumentFragment()).appendChild(I.content);r.templateInfo=J;return!0};
z._parseTemplateNodeAttributes=function(I,J,r){for(var P=!1,N=Array.from(I.attributes),u=N.length-1,E;E=N[u];u--)P=this._parseTemplateNodeAttribute(I,J,r,E.name,E.value)||P;return P};
z._parseTemplateNodeAttribute=function(I,J,r,P,N){return P.slice(0,3)==="on-"?(I.removeAttribute(P),r.events=r.events||[],r.events.push({name:P.slice(3),value:N}),!0):P==="id"?(r.id=N,!0):!1};
z._contentForTemplate=function(I){var J=I._templateInfo;return J&&J.content||I.content};
z.prototype._stampTemplate=function(I,J){I&&!I.content&&window.HTMLTemplateElement&&HTMLTemplateElement.decorate&&HTMLTemplateElement.decorate(I);J=J||this.constructor._parseTemplate(I);var r=J.nodeInfoList;I=document.importNode(J.content||I.content,!0);I.__noInsertionPoint=!J.hasInsertionPoint;var P=I.nodeList=Array(r.length);I.$={};for(var N=0,u=r.length,E=void 0;N<u&&(E=r[N]);N++){var O=P[N]=Wyx(I,E);E.id&&(I.$[E.id]=O);var f=O,A=E,n=J;A.templateInfo&&(f._templateInfo=A.templateInfo,f._parentTemplateInfo=
n);if(E.events&&E.events.length)for(f=0,A=E.events,n=void 0;f<A.length&&(n=A[f]);f++)this._addMethodEventListenerToNode(O,n.name,n.value,this)}return I};
z.prototype._addMethodEventListenerToNode=function(I,J,r,P){r=os1(P||I,r);this._addEventListenerToNode(I,J,r);return r};
z.prototype._addEventListenerToNode=function(I,J,r){I.addEventListener(J,r)};
z.prototype._removeEventListenerFromNode=function(I,J,r){I.removeEventListener(J,r)};
return z});var f6=0,Fk=[],P8O={COMPUTE:"__computeEffects",REFLECT:"__reflectEffects",NOTIFY:"__notifyEffects",PROPAGATE:"__propagateEffects",OBSERVE:"__observeEffects",READ_ONLY:"__readOnly"},Z5w=/[A-Z]/,C8J=function(a,z,I,J,r){var P=r?ua(a):a;if(z=z[P])for(P=0;P<z.length;P++){var N=z[P];if(N.info.lastRun!==f6&&(!r||p03(a,N.trigger))){N.info.lastRun=f6;N=N.info;for(var u=I,E=J,O=0,f=u.length-1,A=-1;O<=f;){var n=O+f>>1,F=E.get(u[n].methodInfo)-E.get(N.methodInfo);if(F<0)O=n+1;else if(F>0)f=n-1;else{A=n;break}}A<
0&&(A=f+1);u.splice(A,0,N)}}},rIi=[],NgO=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"),Io=j$(function(a){var z=rWX(aYw(a));
a=function(){var I=z.call(this)||this;I.__isPropertyEffectsClient=!0;return I};
_.b(a,z);a.prototype._initializeProperties=function(){z.prototype._initializeProperties.call(this);this._registerHost();this.__dataClientsReady=!1;this.__dataLinkedPaths=this.__dataToNotify=this.__dataPendingClients=null;this.__dataHasPaths=!1;this.__dataCompoundStorage=this.__dataCompoundStorage||null;this.__dataHost=this.__dataHost||null;this.__dataTemp={};this.__dataClientsInitialized=!1};
a.prototype._registerHost=function(){if(zS.length){var I=zS[zS.length-1];I._enqueueClient(this);this.__dataHost=I}};
a.prototype._initializeProtoProperties=function(I){this.__data=Object.create(I);this.__dataPending=Object.create(I);this.__dataOld={}};
a.prototype._initializeInstanceProperties=function(I){var J=this.__readOnly,r;for(r in I)J&&J[r]||(this.__dataPending=this.__dataPending||{},this.__dataOld=this.__dataOld||{},this.__data[r]=this.__dataPending[r]=I[r])};
a.prototype._addPropertyEffect=function(I,J,r){this._createPropertyAccessor(I,J=="__readOnly");var P=lk7(this,J,!0)[I];P||(P=this[J][I]=[]);P.push(r)};
a.prototype._removePropertyEffect=function(I,J,r){I=lk7(this,J,!0)[I];r=I.indexOf(r);r>=0&&I.splice(r,1)};
a.prototype._hasPropertyEffect=function(I,J){J=this[J];return!(!J||!J[I])};
a.prototype._hasReadOnlyEffect=function(I){return this._hasPropertyEffect(I,"__readOnly")};
a.prototype._hasNotifyEffect=function(I){return this._hasPropertyEffect(I,"__notifyEffects")};
a.prototype._hasReflectEffect=function(I){return this._hasPropertyEffect(I,"__reflectEffects")};
a.prototype._hasComputedEffect=function(I){return this._hasPropertyEffect(I,"__computeEffects")};
a.prototype._setPendingPropertyOrPath=function(I,J,r,P){if(P||ua(Array.isArray(I)?I[0]:I)!==I){if(!P&&(P=Oc(this,I),I=Ly1(this,I,J),!I||!z.prototype._shouldPropertyChange.call(this,I,J,P)))return!1;this.__dataHasPaths=!0;if(this._setPendingProperty(I,J,r)){if(r=this.__dataLinkedPaths)for(var N in r)P=r[N],Ec(N,I)?(P=Bv(N,P,I),this._setPendingPropertyOrPath(P,J,!0,!0)):Ec(P,I)&&(P=Bv(P,N,I),this._setPendingPropertyOrPath(P,J,!0,!0));return!0}}else{if(this.__dataHasAccessor&&this.__dataHasAccessor[I])return this._setPendingProperty(I,
J,r);this[I]=J}return!1};
a.prototype._setUnmanagedPropertyToNode=function(I,J,r){if(r!==I[J]||typeof r=="object")J==="className"&&(I=(0,_.sc)(I)),I[J]=r};
a.prototype._setPendingProperty=function(I,J,r){var P=this.__dataHasPaths&&tG(I);if(this._shouldPropertyChange(I,J,(P?this.__dataTemp:this.__data)[I])){this.__dataPending||(this.__dataPending={},this.__dataOld={});I in this.__dataOld||(this.__dataOld[I]=this.__data[I]);P?this.__dataTemp[I]=J:this.__data[I]=J;this.__dataPending[I]=J;if(P||this.__notifyEffects&&this.__notifyEffects[I])this.__dataToNotify=this.__dataToNotify||{},this.__dataToNotify[I]=r;return!0}return!1};
a.prototype._setProperty=function(I,J){this._setPendingProperty(I,J,!0)&&this._invalidateProperties()};
a.prototype._invalidateProperties=function(){this.__dataReady&&this._flushProperties()};
a.prototype._enqueueClient=function(I){this.__dataPendingClients=this.__dataPendingClients||[];I!==this&&this.__dataPendingClients.push(I)};
a.prototype._flushClients=function(){this.__dataClientsReady?this.__enableOrFlushClients():(this.__dataClientsReady=!0,this._readyClients(),this.__dataReady=!0)};
a.prototype.__enableOrFlushClients=function(){var I=this.__dataPendingClients;if(I){this.__dataPendingClients=null;for(var J=0;J<I.length;J++){var r=I[J];r.__dataEnabled?r.__dataPending&&r._flushProperties():r._enableProperties()}}};
a.prototype._readyClients=function(){this.__enableOrFlushClients()};
a.prototype.setProperties=function(I,J){for(var r in I)!J&&this.__readOnly&&this.__readOnly[r]||this._setPendingPropertyOrPath(r,I[r],!0);this._invalidateProperties()};
a.prototype.ready=function(){this._flushProperties();this.__dataClientsReady||this._flushClients();this.__dataPending&&this._flushProperties()};
a.prototype._propertiesChanged=function(I,J,r){I=this.__dataHasPaths;this.__dataHasPaths=!1;var P;if(P=this.__computeEffects)if(W8f){f6++;var N=cQ0(this),u=[],E;for(E in J)C8J(E,P,u,N,I);for(;E=u.shift();)q1M(this,"",J,r,E)&&C8J(E.methodInfo,P,u,N,I);Object.assign(r,this.__dataOld);Object.assign(J,this.__dataPending);this.__dataPending=null}else for(N=J;AG(this,P,N,r,I);)Object.assign(r,this.__dataOld),Object.assign(J,this.__dataPending),N=this.__dataPending,this.__dataPending=null;P=this.__dataToNotify;
this.__dataToNotify=null;this._propagatePropertyChanges(J,r,I);this._flushClients();AG(this,this.__reflectEffects,J,r,I);AG(this,this.__observeEffects,J,r,I);if(P){N=this.__notifyEffects;u=f6++;for(var O in P)if(P[O]){if(E=N){var f=N;E=u;var A=O,n=J,F=r,h=I,v=!1,d=h?ua(A):A;if(f=f[d]){d=0;for(var W=f.length,l=void 0;d<W&&(l=f[d]);d++)l.info&&l.info.lastRun===E||h&&!p03(A,l.trigger)||(l.info&&(l.info.lastRun=E),l.fn(this,A,n,F,l.info,h,void 0),v=!0)}E=v}if(E)var q=!0;else{if(E=I)E=O,A=J,n=ua(E),n!==
E?(n=Nr(n)+"-changed",mAd(this,n,A[E],E),E=!0):E=!1;E&&(q=!0)}}var m;q&&(m=this.__dataHost)&&m._invalidateProperties&&m._invalidateProperties()}this.__dataCounter==1&&(this.__dataTemp={})};
a.prototype._propagatePropertyChanges=function(I,J,r){this.__propagateEffects&&AG(this,this.__propagateEffects,I,J,r);this.__templateInfo&&this._runEffectsForTemplate(this.__templateInfo,I,J,r)};
a.prototype._runEffectsForTemplate=function(I,J,r,P){var N=this,u=function(E,O){AG(N,I.propertyEffects,E,r,O,I.nodeList);for(var f=I.firstChild;f;f=f.nextSibling)N._runEffectsForTemplate(f,E,r,O)};
I.runEffects?I.runEffects(u,J,P):u(J,P)};
a.prototype.linkPaths=function(I,J){I=g3(I);J=g3(J);this.__dataLinkedPaths=this.__dataLinkedPaths||{};this.__dataLinkedPaths[I]=J};
a.prototype.unlinkPaths=function(I){I=g3(I);this.__dataLinkedPaths&&delete this.__dataLinkedPaths[I]};
a.prototype.notifySplices=function(I,J){var r={path:""};I=Oc(this,I,r);N0d(this,I,r.path,J)};
a.prototype.get=function(I,J){return Oc(J||this,I)};
a.prototype.set=function(I,J,r){r?Ly1(r,I,J):this.__readOnly&&this.__readOnly[I]||this._setPendingPropertyOrPath(I,J,!0)&&this._invalidateProperties()};
a.prototype.push=function(I){var J=_.dO.apply(1,arguments),r={path:""},P=Oc(this,I,r),N=P.length,u=P.push.apply(P,_.ih(J));J.length&&ba(this,P,r.path,N,J.length,[]);return u};
a.prototype.pop=function(I){var J={path:""};I=Oc(this,I,J);var r=!!I.length,P=I.pop();r&&ba(this,I,J.path,I.length,0,[P]);return P};
a.prototype.splice=function(I,J,r){var P=_.dO.apply(3,arguments),N={path:""},u=Oc(this,I,N);J<0?J=u.length-Math.floor(-J):J&&(J=Math.floor(J));var E=arguments.length===2?u.splice(J):u.splice.apply(u,[J,r].concat(_.ih(P)));(P.length||E.length)&&ba(this,u,N.path,J,P.length,E);return E};
a.prototype.shift=function(I){var J={path:""};I=Oc(this,I,J);var r=!!I.length,P=I.shift();r&&ba(this,I,J.path,0,0,[P]);return P};
a.prototype.unshift=function(I){var J=_.dO.apply(1,arguments),r={path:""},P=Oc(this,I,r),N=P.unshift.apply(P,_.ih(J));J.length&&ba(this,P,r.path,0,J.length,[]);return N};
a.prototype.notifyPath=function(I,J){if(arguments.length==1){var r={path:""};J=Oc(this,I,r);r=r.path}else r=Array.isArray(I)?g3(I):I;this._setPendingPropertyOrPath(r,J,!0,!0)&&this._invalidateProperties()};
a.prototype._createReadOnlyProperty=function(I,J){this._addPropertyEffect(I,"__readOnly");J&&(this["_set"+(I[0].toUpperCase()+I.substring(1))]=function(r){this._setProperty(I,r)})};
a.prototype._createPropertyObserver=function(I,J,r){var P={property:I,method:J,dynamicFn:!!r};this._addPropertyEffect(I,"__observeEffects",{fn:w03,info:P,trigger:{name:I}});r&&this._addPropertyEffect(J,"__observeEffects",{fn:w03,info:P,trigger:{name:J}})};
a.prototype._createMethodObserver=function(I,J){var r=ZhG(I);if(!r)throw Error("xd`"+I);Iym(this,r,"__observeEffects",Y1M,null,J)};
a.prototype._createNotifyingProperty=function(I){this._addPropertyEffect(I,"__notifyEffects",{fn:yQi,info:{eventName:Nr(I)+"-changed",property:I}})};
a.prototype._createReflectedProperty=function(I){var J=this.constructor.attributeNameForProperty(I);J[0]==="-"?console.warn("Property "+I+" cannot be reflected to attribute "+J+' because "-" is not a valid starting attribute name. Use a lowercase first letter for the property instead.'):this._addPropertyEffect(I,"__reflectEffects",{fn:k0x,info:{attrName:J}})};
a.prototype._createComputedProperty=function(I,J,r){var P=ZhG(J);if(!P)throw Error("yd`"+J);J=Iym(this,P,"__computeEffects",q1M,I,r);lk7(this,"__computeInfo")[I]=J};
a.prototype._marshalArgs=function(I,J,r){for(var P=this.__data,N=[],u=0,E=I.length;u<E;u++){var O=I[u],f=O.name,A=O.structured,n=O.wildcard,F=O.value;O.literal||(n?(O=Ec(f,J),A=CgG(P,r,O?J:f),F={path:O?J:f,value:A,base:O?Oc(P,f):A}):F=A?CgG(P,r,f):P[f]);if(Hv&&!this._overrideLegacyUndefined&&F===void 0&&I.length>1)return Fk;N[u]=F}return N};
a.addPropertyEffect=function(I,J,r){this.prototype._addPropertyEffect(I,J,r)};
a.createPropertyObserver=function(I,J,r){this.prototype._createPropertyObserver(I,J,r)};
a.createMethodObserver=function(I,J){this.prototype._createMethodObserver(I,J)};
a.createNotifyingProperty=function(I){this.prototype._createNotifyingProperty(I)};
a.createReadOnlyProperty=function(I,J){this.prototype._createReadOnlyProperty(I,J)};
a.createReflectedProperty=function(I){this.prototype._createReflectedProperty(I)};
a.createComputedProperty=function(I,J,r){this.prototype._createComputedProperty(I,J,r)};
a.bindTemplate=function(I){return this.prototype._bindTemplate(I)};
a.prototype._bindTemplate=function(I,J){var r=this.constructor._parseTemplate(I),P=this.__preBoundTemplateInfo==r;if(!P)for(var N in r.propertyEffects)this._createPropertyAccessor(N);J?(r=Object.create(r),r.wasPreBound=P,this.__templateInfo?(I=I._parentTemplateInfo||this.__templateInfo,J=I.lastChild,r.parent=I,I.lastChild=r,(r.previousSibling=J)?J.nextSibling=r:I.firstChild=r):this.__templateInfo=r):this.__preBoundTemplateInfo=r;return r};
a._addTemplatePropertyEffect=function(I,J,r){(I.hostProps=I.hostProps||{})[J]=!0;I=I.propertyEffects=I.propertyEffects||{};(I[J]=I[J]||[]).push(r)};
a.prototype._stampTemplate=function(I,J){J=J||this._bindTemplate(I,!0);zS.push(this);I=z.prototype._stampTemplate.call(this,I,J);zS.pop();J.nodeList=I.nodeList;if(!J.wasPreBound)for(var r=J.childNodes=[],P=I.firstChild;P;P=P.nextSibling)r.push(P);I.templateInfo=J;r=J.nodeList;P=J.nodeInfoList;if(P.length)for(var N=0;N<P.length;N++){var u=r[N],E=P[N].bindings;if(E)for(var O=0;O<E.length;O++){var f=E[O],A=u,n=f;if(n.isCompound){for(var F=A.__dataCompoundStorage||(A.__dataCompoundStorage={}),h=n.parts,
v=Array(h.length),d=0;d<h.length;d++)v[d]=h[d].literal;h=n.target;F[h]=v;n.literal&&n.kind=="property"&&(h==="className"&&(A=(0,_.sc)(A)),A[h]=n.literal)}zOm(u,this,f)}u.__dataHost=this}this.__dataClientsReady&&(this._runEffectsForTemplate(J,this.__data,null,!1),this._flushClients());return I};
a.prototype._removeBoundDom=function(I){I=I.templateInfo;var J=I.previousSibling,r=I.nextSibling,P=I.parent;J?J.nextSibling=r:P&&(P.firstChild=r);r?r.previousSibling=J:P&&(P.lastChild=J);I.nextSibling=I.previousSibling=null;I=I.childNodes;for(J=0;J<I.length;J++)r=I[J],(0,_.sc)((0,_.sc)(r).parentNode).removeChild(r)};
a._parseTemplateNode=function(I,J,r){var P=z._parseTemplateNode.call(this,I,J,r);if(I.nodeType===Node.TEXT_NODE){var N=this._parseBindings(I.textContent,J);N&&(I.textContent=JI3(N)||" ",jvI(this,J,r,"text","textContent",N),P=!0)}return P};
a._parseTemplateNodeAttribute=function(I,J,r,P,N){var u=this._parseBindings(N,J);if(u){N=P;var E="property";Z5w.test(P)?E="attribute":P[P.length-1]=="$"&&(P=P.slice(0,-1),E="attribute");var O=JI3(u);O&&E=="attribute"&&(P=="class"&&I.hasAttribute("class")&&(O+=" "+I.getAttribute(P)),I.setAttribute(P,O));E=="attribute"&&N=="disable-upgrade$"&&I.setAttribute(P,"");I.localName==="input"&&N==="value"&&I.setAttribute(N,"");I.removeAttribute(N);E==="property"&&(P=C6(P));jvI(this,J,r,E,P,u,O);return!0}return z._parseTemplateNodeAttribute.call(this,
I,J,r,P,N)};
a._parseTemplateNestedTemplate=function(I,J,r){var P=z._parseTemplateNestedTemplate.call(this,I,J,r),N=I.parentNode,u=r.templateInfo,E=N.localName==="dom-if",O=N.localName==="dom-repeat";cE&&(E||O)&&(N.removeChild(I),r=r.parentInfo,r.templateInfo=u,r.noted=!0,P=!1);I=u.hostProps;if(YQ&&E)I&&(J.hostProps=Object.assign(J.hostProps||{},I),cE||(r.parentInfo.noted=!0));else for(var f in I)jvI(this,J,r,"property","_host_"+f,[{mode:"{",source:f,dependencies:[f],hostProp:!0}]);return P};
a._parseBindings=function(I,J){for(var r=[],P=0,N;(N=NgO.exec(I))!==null;){N.index>P&&r.push({literal:I.slice(P,N.index)});P=N[1][0];var u=!!N[2];N=N[3].trim();var E=!1,O="",f=-1;P=="{"&&(f=N.indexOf("::"))>0&&(O=N.substring(f+2),N=N.substring(0,f),E=!0);f=ZhG(N);var A=[];if(f){var n=f,F=n.args;n=n.methodName;for(var h=0;h<F.length;h++){var v=F[h];v.literal||A.push(v)}if((F=J.dynamicFns)&&F[n]||f.static)A.push(n),f.dynamicFn=!0}else A.push(N);r.push({source:N,mode:P,negate:u,customEvent:E,signature:f,
dependencies:A,event:O});P=NgO.lastIndex}P&&P<I.length&&(I=I.substring(P))&&r.push({literal:I});return r.length?r:null};
a._evaluateBinding=function(I,J,r,P,N,u){I=J.signature?Y1M(I,r,P,N,J.signature):r!=J.source?Oc(I,J.source):u&&tG(r)?Oc(I,r):I.__data[r];J.negate&&(I=!I);return I};
_.eH.Object.defineProperties(a.prototype,{PROPERTY_EFFECT_TYPES:{configurable:!0,enumerable:!0,get:function(){return P8O}}});
return a}),zS=[];var txi=window.ShadyCSS&&window.ShadyCSS.cssBuild,JX=j$(function(a){function z(J,r,P,N){if(!txi){for(var u=r.content.querySelectorAll("style"),E=B0x(r),O=gKG(P),f=r.content.firstElementChild,A=0;A<O.length;A++){var n=O[A];n.textContent=J._processStyleText(n.textContent,N);r.content.insertBefore(n,f)}for(f=O=0;f<E.length;f++)A=E[f],n=u[O],n!==A?(A=A.cloneNode(!0),n.parentNode.insertBefore(A,n)):O++,A.textContent=J._processStyleText(A.textContent,N)}window.ShadyCSS&&window.ShadyCSS.prepareTemplate(r,
P);if(U$I&&txi&&$$G&&(r=r.content.querySelectorAll("style"))){var F="";Array.from(r).forEach(function(h){F+=h.textContent;h.parentNode.removeChild(h)});
J._styleSheet=new CSSStyleSheet;J._styleSheet.replaceSync(F)}}
var I=kbl(Io(a));a=function(){return I.call(this)||this};
_.b(a,I);a._finalizeClass=function(){I._finalizeClass.call(this);var J;this.hasOwnProperty("__ownObservers")||(this.__ownObservers=this.hasOwnProperty("observers")?this.observers:null);(J=this.__ownObservers)&&this.createObservers(J,this._properties);this._prepareTemplate()};
a._prepareTemplate=function(){var J=this.template;J&&(typeof J==="string"?(console.error("template getter must return HTMLTemplateElement"),J=null):Uc||(J=J.cloneNode(!0)));this.prototype._template=J};
a.createProperties=function(J){for(var r in J){var P=this.prototype,N=r,u=J[r],E=J;u.computed&&(u.readOnly=!0);u.computed&&(P._hasReadOnlyEffect(N)?console.warn("Cannot redefine computed property '"+N+"'."):P._createComputedProperty(N,u.computed,E));u.readOnly&&!P._hasReadOnlyEffect(N)?P._createReadOnlyProperty(N,!u.computed):u.readOnly===!1&&P._hasReadOnlyEffect(N)&&console.warn("Cannot make readOnly property '"+N+"' non-readOnly.");u.reflectToAttribute&&!P._hasReflectEffect(N)?P._createReflectedProperty(N):
u.reflectToAttribute===!1&&P._hasReflectEffect(N)&&console.warn("Cannot make reflected property '"+N+"' non-reflected.");u.notify&&!P._hasNotifyEffect(N)?P._createNotifyingProperty(N):u.notify===!1&&P._hasNotifyEffect(N)&&console.warn("Cannot make notify property '"+N+"' non-notify.");u.observer&&P._createPropertyObserver(N,u.observer,E[u.observer]);P._addPropertyToAttributeMap(N)}};
a.createObservers=function(J,r){for(var P=this.prototype,N=0;N<J.length;N++)P._createMethodObserver(J[N],r)};
a.prototype._initializeProperties=function(){this.constructor.finalize();this.constructor._finalizeTemplate(this.localName);I.prototype._initializeProperties.call(this);this.rootPath=XAv;this.importPath=this.constructor.importPath;var J=this.constructor;if(!J.hasOwnProperty("__propertyDefaults")){J.__propertyDefaults=null;var r=J._properties,P;for(P in r){var N=r[P];"value"in N&&(J.__propertyDefaults=J.__propertyDefaults||{},J.__propertyDefaults[P]=N)}}if(J=J.__propertyDefaults)for(var u in J)r=J[u],
this._canApplyPropertyDefault(u)&&(r=typeof r.value=="function"?r.value.call(this):r.value,this._hasAccessor(u)?this._setPendingProperty(u,r,!0):this[u]=r)};
a.prototype._canApplyPropertyDefault=function(J){return!this.hasOwnProperty(J)};
a._processStyleText=function(J,r){return Qdd(J,r)};
a._finalizeTemplate=function(J){var r=this.prototype._template;if(r&&!r.__polymerFinalized){r.__polymerFinalized=!0;var P=this.importPath;P=P?_.Pv(P):"";z(this,r,J,P);this.prototype._bindTemplate(r)}};
a.prototype.connectedCallback=function(){window.ShadyCSS&&this._template&&window.ShadyCSS.styleElement(this);I.prototype.connectedCallback.call(this)};
a.prototype.ready=function(){this._template&&(this.root=this._stampTemplate(this._template),this.$=this.root.$);I.prototype.ready.call(this)};
a.prototype._readyClients=function(){this._template&&(this.root=this._attachDom(this.root));I.prototype._readyClients.call(this)};
a.prototype._attachDom=function(J){var r=(0,_.sc)(this);if(r.attachShadow)return J?(r.shadowRoot||(r.attachShadow({mode:"open",shadyUpgradeFragment:J}),r.shadowRoot.appendChild(J),this.constructor._styleSheet&&(r.shadowRoot.adoptedStyleSheets=[this.constructor._styleSheet])),d$X&&window.ShadyDOM&&window.ShadyDOM.flushInitial(r.shadowRoot),r.shadowRoot):null;throw Error("Ad");};
a.prototype.updateStyles=function(J){window.ShadyCSS&&window.ShadyCSS.styleSubtree(this,J)};
a.prototype.resolveUrl=function(J,r){!r&&this.importPath&&(r=_.Pv(this.importPath));return _.Pv(J,r)};
a._parseTemplateContent=function(J,r,P){r.dynamicFns=r.dynamicFns||this._properties;return I._parseTemplateContent.call(this,J,r,P)};
a._addTemplatePropertyEffect=function(J,r,P){!la||r in this._properties||P.info.part.signature&&P.info.part.signature.static||P.info.part.hostProp||J.nestedTemplate||console.warn("Property '"+r+"' used in template but not declared in 'properties'; attribute will not be observed.");return I._addTemplatePropertyEffect.call(this,J,r,P)};
_.eH.Object.defineProperties(a,{template:{configurable:!0,enumerable:!0,get:function(){if(!this.hasOwnProperty("_template")){var J=this.prototype.hasOwnProperty("_template")?this.prototype._template:void 0;typeof J==="function"&&(J=J());if(J===void 0){if(J=this.hasOwnProperty("is")){J=this.is;var r=null;if(J&&(!p6||TeJ)&&(r=hG.import(J,"template"),p6&&!r))throw Error("zd`"+J);J=r}J=J||Object.getPrototypeOf(this.prototype).constructor.template}this._template=J}return this._template},
set:function(J){this._template=J}},
importPath:{configurable:!0,enumerable:!0,get:function(){if(!this.hasOwnProperty("_importPath")){var J=this.importMeta;J?this._importPath=S1I(J.url):this._importPath=(J=hG.import(this.is))&&J.assetpath||Object.getPrototypeOf(this.prototype).constructor.importPath}return this._importPath}}});
return a});var u4J=window.trustedTypes&&trustedTypes.createPolicy("polymer-html-literal",{createHTML:function(a){return a}}),F33=function(a,z){Epv(a,z);
this.value=z.reduce(function(I,J,r){return I+Hhm(J)+a[r+1]},a[0]).toString()},Epv;
F33.prototype.toString=function(){return this.value};
_.Bgf=function(a){var z=_.dO.apply(1,arguments);Epv(a,z);var I=document.createElement("template");z=z.reduce(function(J,r,P){if(r instanceof HTMLTemplateElement)r=r.innerHTML;else if(r instanceof F33)r=Hhm(r);else throw Error("Cd`"+r);return J+r+a[P+1]},a[0]);
u4J&&(z=u4J.createHTML(z));I.innerHTML=z;return I};
Epv=function(a,z){if(!Array.isArray(a)||!Array.isArray(a.raw)||z.length!==a.length-1)throw new TypeError("Dd");};var rn=JX(HTMLElement);var gpO=j$(function(a){var z=JX(a);a=function(){var I=z.call(this)||this;I.__lastItems=null;I.__lastMulti=null;I.__selectedMap=null;return I};
_.b(a,z);a.prototype.__updateSelection=function(I,J){var r=J.path;r=="items"?(J=J.base||[],r=this.__lastItems,I!==this.__lastMulti&&this.clearSelection(),r&&(r=K3M(J,r),this.__applySplices(r)),this.__lastItems=J,this.__lastMulti=I):J.path=="items.splices"?this.__applySplices(J.value.indexSplices):(I=r.slice(6),J=parseInt(I,10),I.indexOf(".")<0&&I==J&&this.__deselectChangedIdx(J))};
a.prototype.__applySplices=function(I){for(var J=this,r=this.__selectedMap,P={},N=0;N<I.length;P={s$jscomp$108:void 0},N++){P.s$jscomp$108=I[N];r.forEach(function(f){return function(A,n){A<f.s$jscomp$108.index||(A>=f.s$jscomp$108.index+f.s$jscomp$108.removed.length?r.set(n,A+f.s$jscomp$108.addedCount-f.s$jscomp$108.removed.length):r.set(n,-1))}}(P));
for(var u=0;u<P.s$jscomp$108.addedCount;u++){var E=P.s$jscomp$108.index+u;r.has(this.items[E])&&r.set(this.items[E],E)}}this.__updateLinks();var O=0;r.forEach(function(f,A){f<0?(J.multi?J.splice("selected",O,1):J.selected=J.selectedItem=null,r.delete(A)):O++})};
a.prototype.__updateLinks=function(){var I=this;this.__dataLinkedPaths={};if(this.multi){var J=0;this.__selectedMap.forEach(function(r){r>=0&&I.linkPaths("items."+r,"selected."+J++)})}else this.__selectedMap.forEach(function(r){I.linkPaths("selected","items."+r);
I.linkPaths("selectedItem","items."+r)})};
a.prototype.clearSelection=function(){this.__dataLinkedPaths={};this.__selectedMap=new Map;this.selected=this.multi?[]:null;this.selectedItem=null};
a.prototype.isSelected=function(I){return this.__selectedMap.has(I)};
a.prototype.isIndexSelected=function(I){return this.isSelected(this.items[I])};
a.prototype.__deselectChangedIdx=function(I){var J=this,r=this.__selectedIndexForItemIndex(I);if(r>=0){var P=0;this.__selectedMap.forEach(function(N,u){r==P++&&J.deselect(u)})}};
a.prototype.__selectedIndexForItemIndex=function(I){if(I=this.__dataLinkedPaths["items."+I])return parseInt(I.slice(9),10)};
a.prototype.deselect=function(I){var J=this.__selectedMap.get(I);if(J>=0){this.__selectedMap.delete(I);var r;this.multi&&(r=this.__selectedIndexForItemIndex(J));this.__updateLinks();this.multi?this.splice("selected",r,1):this.selected=this.selectedItem=null}};
a.prototype.deselectIndex=function(I){this.deselect(this.items[I])};
a.prototype.select=function(I){this.selectIndex(this.items.indexOf(I))};
a.prototype.selectIndex=function(I){var J=this.items[I];this.isSelected(J)?this.toggle&&this.deselectIndex(I):(this.multi||this.__selectedMap.clear(),this.__selectedMap.set(J,I),this.__updateLinks(),this.multi?this.push("selected",J):this.selected=this.selectedItem=J)};
_.eH.Object.defineProperties(a,{properties:{configurable:!0,enumerable:!0,get:function(){return{items:{type:Array},multi:{type:Boolean,value:!1},selected:{type:Object,notify:!0},selectedItem:{type:Object,notify:!0},toggle:{type:Boolean,value:!1}}}},
observers:{configurable:!0,enumerable:!0,get:function(){return["__updateSelection(multi, items.*)"]}}});
return a}),O5l=gpO(rn),PG=function(){return O5l.apply(this,arguments)||this};
_.b(PG,O5l);_.eH.Object.defineProperties(PG,{is:{configurable:!0,enumerable:!0,get:function(){return"array-selector"}},
template:{configurable:!0,enumerable:!0,get:function(){return null}}});
customElements.define(PG.is,PG);var fY1=window.Polymer;window.Polymer=function(a){return window.Polymer._polymerFn(a)};
fY1&&Object.assign(Polymer,fY1);Polymer._polymerFn=function(){throw Error("Ed");};/*

Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
This code may only be used under the BSD style license found at
http://polymer.github.io/LICENSE.txt The complete set of authors may be found at
http://polymer.github.io/AUTHORS.txt The complete set of contributors may be
found at http://polymer.github.io/CONTRIBUTORS.txt Code distributed by Google as
part of the polymer project is also subject to an additional IP rights grant
found at http://polymer.github.io/PATENTS.txt
*/
Polymer.ResolveUrl={resolveCss:Qdd,resolveUrl:_.Pv,pathFromUrl:S1I};Polymer.DomModule=hG;Polymer.Async={timeOut:_.ao,animationFrame:_.iN,idlePeriod:pAl,microTask:Wv};Polymer.dedupingMixin=j$;Polymer.wrap=_.sc;Polymer.PropertiesChanged=m$X;Polymer.telemetry={instanceCount:yRj,incrementInstanceCount:function(){yRj++},
registrations:G0x,register:$AG,dumpRegistrations:function(){G0x.forEach(_._regLog$$module$third_party$javascript$polymer$v2$polymer$lib$utils$telemetry)}};Polymer.PropertiesMixin=kbl;Polymer.CaseMap={dashToCamelCase:C6,camelToDashCase:Nr};Polymer.PropertyAccessors=aYw;Polymer.TemplateStamp=rWX;Polymer.Path={isPath:tG,root:ua,isAncestor:UA0,isDescendant:Ec,translate:Bv,matches:DAi,normalize:g3,split:Rkp,get:Oc,set:Ly1,isDeep:tG};Polymer.Settings={useShadow:DV,useNativeCSSProperties:S_e,useNativeCustomElements:itw,get rootPath(){return XAv},setRootPath:function(a){XAv=a},
get sanitizeDOMValue(){return n6},setSanitizeDOMValue:function(a){n6=a},
get passiveTouchGestures(){return dlp},setPassiveTouchGestures:function(a){dlp=a},
get strictTemplatePolicy(){return p6},setStrictTemplatePolicy:function(a){p6=a},
get allowTemplateFromDomModule(){return TeJ},setAllowTemplateFromDomModule:function(a){TeJ=a},
get legacyOptimizations(){return Uc},setLegacyOptimizations:function(a){Uc=a},
get syncInitialRender(){return d$X},setSyncInitialRender:function(a){d$X=a},
get legacyUndefined(){return Hv},setLegacyUndefined:function(a){Hv=a},
get legacyWarnings(){return la},setLegacyWarnings:function(a){la=a},
get orderedComputed(){return W8f},setOrderedComputed:function(a){W8f=a},
get fastDomIf(){return YQ},setFastDomIf:function(a){YQ=a},
get removeNestedTemplates(){return cE},setRemoveNestedTemplates:function(a){cE=a},
get suppressTemplateNotifications(){return qJ},setSuppressTemplateNotifications:qJ};Polymer.rootPath!==void 0&&(XAv=Polymer.rootPath);Polymer.sanitizeDOMValue!==void 0&&(n6=Polymer.sanitizeDOMValue);Polymer.passiveTouchGestures!==void 0&&(dlp=Polymer.passiveTouchGestures);Polymer.strictTemplatePolicy!==void 0&&(p6=Polymer.strictTemplatePolicy);TeJ=Polymer.allowTemplateFromDomModule!==void 0?Polymer.allowTemplateFromDomModule:!0;Polymer.legacyOptimizations!==void 0&&(Uc=Polymer.legacyOptimizations);
Polymer.syncInitialRender!==void 0&&(d$X=Polymer.syncInitialRender);Polymer.legacyUndefined!==void 0&&(Hv=Polymer.legacyUndefined);Polymer.legacyWarnings!==void 0&&(la=Polymer.legacyWarnings);Polymer.orderedComputed!==void 0&&(W8f=Polymer.orderedComputed);Polymer.fastDomIf!==void 0&&(YQ=Polymer.fastDomIf);Polymer.removeNestedTemplates!==void 0&&(cE=Polymer.removeNestedTemplates);Polymer.suppressTemplateNotifications!==void 0&&(qJ=Polymer.suppressTemplateNotifications);
Object.defineProperty(Polymer,"sanitizeDOMValue",{get:function(){return n6},
set:function(a){n6=a}});Polymer.PropertyEffects=Io;Polymer.StyleGather={stylesFromModules:EKE,stylesFromModule:uxE,stylesFromTemplate:B0x,stylesFromModuleImports:gKG,cssFromModules:fyM,cssFromModule:Oh$,cssFromTemplate:AII,cssFromModuleImports:function(a){return(a=hG.import(a))?_._cssFromModuleImports$$module$third_party$javascript$polymer$v2$polymer$lib$utils$style_gather(a):""}};Polymer.ElementMixin=JX;Polymer.updateStyles=function(a){window.ShadyCSS&&window.ShadyCSS.styleDocument(a)};
Polymer.version="3.5.0";Polymer.ArraySplice={calculateSplices:K3M};Polymer.html=_.Bgf;Polymer.htmlLiteral=function(a){return new F33(a,_.dO.apply(1,arguments))};Polymer.Element=rn;Polymer.ArraySelectorMixin=gpO;Polymer.ArraySelector=PG;var AW1=/(?:^|[;\s{]\s*)(--[\w-]*?)\s*:\s*(?:((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};{])+)|\{([^}]*)\}(?:(?=[;\s}])|$))/gi,sUX=/(?:^|\W+)@apply\s*\(?([^);\n]*)\)?/gi,zCm=/@media\s(.*)/;var Qv1=null,Vi3=window.HTMLImports&&window.HTMLImports.whenReady||null,SJp;var npG=null,Z4=null,Ce=function(){this.customStyles=[];this.enqueued=!1;ihE(function(){window.ShadyCSS.flushCustomStyles&&window.ShadyCSS.flushCustomStyles()})},KHX=function(a){!a.enqueued&&Z4&&(a.enqueued=!0,ihE(Z4))};
Ce.prototype.addCustomStyle=function(a){a.__seenByShadyCSS||(a.__seenByShadyCSS=!0,this.customStyles.push(a),KHX(this))};
Ce.prototype.getStyleForCustomStyle=function(a){if(a.__shadyCSSCachedStyle)return a.__shadyCSSCachedStyle;var z;a.getStyle?z=a.getStyle():z=a;return z};
Ce.prototype.processStyles=function(){for(var a=this.customStyles,z=0;z<a.length;z++){var I=a[z];if(!I.__shadyCSSCachedStyle){var J=this.getStyleForCustomStyle(I);J&&(J=J.__appliedElement||J,npG&&npG(J),I.__shadyCSSCachedStyle=J)}}return a};
Ce.prototype.addCustomStyle=Ce.prototype.addCustomStyle;Ce.prototype.getStyleForCustomStyle=Ce.prototype.getStyleForCustomStyle;Ce.prototype.processStyles=Ce.prototype.processStyles;Object.defineProperties(Ce.prototype,{transformCallback:{get:function(){return npG},
set:function(a){npG=a}},
validateCallback:{get:function(){return Z4},
set:function(a){var z=!1;Z4||(z=!0);Z4=a;z&&KHX(this)}}});var vK3=!(window.ShadyDOM&&window.ShadyDOM.inUse),xlI,qr;window.ShadyCSS&&window.ShadyCSS.cssBuild!==void 0&&(qr=window.ShadyCSS.cssBuild);var FHO=!(!window.ShadyCSS||!window.ShadyCSS.disableRuntime);window.ShadyCSS&&window.ShadyCSS.nativeCss!==void 0?xlI=window.ShadyCSS.nativeCss:window.ShadyCSS?(GO3(window.ShadyCSS),window.ShadyCSS=void 0):GO3(window.WebComponents&&window.WebComponents.flags);var esx=xlI;var H5w=new Ce;window.ShadyCSS||(window.ShadyCSS={prepareTemplate:function(){},
prepareTemplateDom:function(){},
prepareTemplateStyles:function(){},
styleSubtree:function(a,z){H5w.processStyles();bhi(a,z)},
styleElement:function(){H5w.processStyles()},
styleDocument:function(a){H5w.processStyles();bhi(document.body,a)},
getComputedStyleValue:function(a,z){return hOG(a,z)},
flushCustomStyles:function(){},
nativeCss:esx,nativeShadow:vK3,cssBuild:qr,disableRuntime:FHO});window.ShadyCSS.CustomStyleInterface=H5w;var b5l=window.ShadyCSS.CustomStyleInterface,Ng=function(){var a=HTMLElement.call(this)||this;a._style=null;b5l.addCustomStyle(a);return a};
_.b(Ng,HTMLElement);Ng.prototype.getStyle=function(){if(this._style)return this._style;var a=this.querySelector("style");if(!a)return null;this._style=a;var z=a.getAttribute("include");z&&(a.removeAttribute("include"),a.textContent=fyM(z)+a.textContent);this.ownerDocument!==window.document&&window.document.head.appendChild(this);return this._style};
Ng.prototype.getStyle=Ng.prototype.getStyle;window.customElements.define("custom-style",Ng);Polymer.CustomStyle=Ng;var tX=function(){this._timer=this._callback=this._asyncModule=null},uA,VxJ;
tX.prototype.setConfig=function(a,z){var I=this;this._asyncModule=a;this._callback=z;this._timer=this._asyncModule.run(function(){I._timer=null;uA.delete(I);I._callback()})};
tX.prototype.cancel=function(){this.isActive()&&(hYe(this),uA.delete(this))};
var hYe=function(a){a.isActive()&&(a._asyncModule.cancel(a._timer),a._timer=null)};
tX.prototype.flush=function(){this.isActive()&&(this.cancel(),this._callback())};
tX.prototype.isActive=function(){return this._timer!=null};
_.EH=function(a,z,I){a instanceof tX?hYe(a):a=new tX;a.setConfig(z,I);return a};
uA=new Set;_.BG=function(a){uA.add(a)};
VxJ=function(){var a=!!uA.size;uA.forEach(function(z){try{z.flush()}catch(I){setTimeout(function(){throw I;})}});
return a};var Xq7=typeof document.head.style.touchAction==="string",$lx=["mousedown","mousemove","mouseup","click"],ly7=[0,1,4,2],QUe;try{QUe=(new MouseEvent("test",{buttons:1})).buttons===1}catch(a){QUe=!1}var L3G=QUe,T0M=!1;(function(){try{var a=Object.defineProperty({},"passive",{get:function(){T0M=!0}});
window.addEventListener("test",null,a);window.removeEventListener("test",null,a)}catch(z){}})();
var oKO=navigator.userAgent.match(/iP(?:[oa]d|hone)|Android/),UlE=[],SrX={button:!0,input:!0,keygen:!0,meter:!0,output:!0,textarea:!0,progress:!0,select:!0},jsp={button:!0,command:!0,fieldset:!0,input:!0,keygen:!0,optgroup:!0,option:!0,select:!0,textarea:!0},DlM=function(a){var z=a.sourceCapabilities;if(!z||z.firesTouchEvents)if(a.__polymerGesturesHandled={skip:!0},a.type==="click"){z=!1;for(var I=yI$(a),J=0;J<I.length;J++){if(I[J].nodeType===Node.ELEMENT_NODE)if(I[J].localName==="label")UlE.push(I[J]);
else if(SrX[I[J].localName]){var r=I[J];var P=Array.prototype.slice.call(r.labels||[]);if(!P.length){P=[];try{var N=r.getRootNode();if(r.id){var u=N.querySelectorAll("label[for = '"+r.id+"']");for(r=0;r<u.length;r++)P.push(u[r])}}catch(E){}}for(r=0;r<P.length;r++)z=z||UlE.indexOf(P[r])>-1}if(I[J]===i51)return}z||(a.preventDefault(),a.stopPropagation())}},i51=null,gn=null,MiO=0,cIx=0,kOO=-1,YJ3=!1;
document.addEventListener("touchend",function(a){gn||ROi(!0);i51=yI$(a)[0];gn=_.EH(gn,_.ao.after(2500),function(){ROi();gn=i51=null})},T0M?{passive:!0}:!1);
var yI$=window.ShadyDOM&&window.ShadyDOM.noPatch?window.ShadyDOM.composedPath:function(a){return a.composedPath&&a.composedPath()||[]},$v={},vv=[];
qJ7({name:"downup",deps:["mousedown","touchstart","touchend"],flow:{start:["mousedown","touchstart"],end:["mouseup","touchend"]},emits:["down","up"],info:{movefn:null,upfn:null},reset:function(){SH(this.info)},
mousedown:function(a){if(QL(a)){var z=_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(a),I=this;wqG(this.info,function(J){QL(J)||(oG("up",z,J),SH(I.info))},function(J){QL(J)&&oG("up",z,J);
SH(I.info)});
oG("down",z,a)}},
touchstart:function(a){oG("down",_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(a),a.changedTouches[0],a)},
touchend:function(a){oG("up",_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(a),a.changedTouches[0],a)}});
qJ7({name:"track",touchAction:"none",deps:["mousedown","touchstart","touchmove","touchend"],flow:{start:["mousedown","touchstart"],end:["mouseup","touchend"]},emits:["track"],info:{x:0,y:0,state:"start",started:!1,moves:[],addMove:function(a){this.moves.length>2&&this.moves.shift();this.moves.push(a)},
movefn:null,upfn:null,prevent:!1},reset:function(){this.info.state="start";this.info.started=!1;this.info.moves=[];this.info.x=0;this.info.y=0;this.info.prevent=!1;SH(this.info)},
mousedown:function(a){if(QL(a)){var z=_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(a),I=this,J=function(r){var P=r.clientX,N=r.clientY;eO$(I.info,P,N)&&(I.info.state=I.info.started?r.type==="mouseup"?"end":"track":"start",I.info.state==="start"&&G$("tap"),I.info.addMove({x:P,y:N}),QL(r)||(I.info.state="end",SH(I.info)),z&&a87(I.info,z,r),I.info.started=!0)};
wqG(this.info,J,function(r){I.info.started&&J(r);SH(I.info)});
this.info.x=a.clientX;this.info.y=a.clientY}},
touchstart:function(a){a=a.changedTouches[0];this.info.x=a.clientX;this.info.y=a.clientY},
touchmove:function(a){var z=_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(a);a=a.changedTouches[0];var I=a.clientX,J=a.clientY;eO$(this.info,I,J)&&(this.info.state==="start"&&G$("tap"),this.info.addMove({x:I,y:J}),a87(this.info,z,a),this.info.state="track",this.info.started=!0)},
touchend:function(a){var z=_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(a);a=a.changedTouches[0];this.info.started&&(this.info.state="end",this.info.addMove({x:a.clientX,y:a.clientY}),a87(this.info,z,a))}});
qJ7({name:"tap",deps:["mousedown","click","touchstart","touchend"],flow:{start:["mousedown","touchstart"],end:["click","touchend"]},emits:["tap"],info:{x:NaN,y:NaN,prevent:!1},reset:function(){this.info.x=NaN;this.info.y=NaN;this.info.prevent=!1},
mousedown:function(a){QL(a)&&(this.info.x=a.clientX,this.info.y=a.clientY)},
click:function(a){QL(a)&&zsi(this.info,a)},
touchstart:function(a){a=a.changedTouches[0];this.info.x=a.clientX;this.info.y=a.clientY},
touchend:function(a){zsi(this.info,a.changedTouches[0],a)}});var xoX=j$(function(a){var z=function(){return a.apply(this,arguments)||this};
_.b(z,a);z.prototype._addEventListenerToNode=function(I,J,r){Xk(I,J,r)||a.prototype._addEventListenerToNode.call(this,I,J,r)};
z.prototype._removeEventListenerFromNode=function(I,J,r){T$(I,J,r)||a.prototype._removeEventListenerFromNode.call(this,I,J,r)};
return z});var OH=j$(function(a){var z=function(){return a.apply(this,arguments)||this};
_.b(z,a);z.prototype._shouldPropertyChange=function(I,J,r){return I8x(this,I,J,r,!0)};
return z}),vpi=j$(function(a){var z=function(){return a.apply(this,arguments)||this};
_.b(z,a);z.prototype._shouldPropertyChange=function(I,J,r){return I8x(this,I,J,r,this.mutableData)};
_.eH.Object.defineProperties(z,{properties:{configurable:!0,enumerable:!0,get:function(){return{mutableData:Boolean}}}});
return z});
OH._mutablePropertyChange=I8x;var JY3=!1;var Ggv=xoX(vpi(Io(HTMLElement))),fe=function(){var a=Ggv.call(this)||this;if(p6)throw Error("Fd");a.root=null;a.$=null;a.__children=null;return a};
_.b(fe,Ggv);_.Z=fe.prototype;_.Z.attributeChangedCallback=function(){this.mutableData=!0};
_.Z.connectedCallback=function(){rY$()||(this.style.display="none");this.render()};
_.Z.disconnectedCallback=function(){this.__removeChildren()};
_.Z.__insertChildren=function(){(0,_.sc)((0,_.sc)(this).parentNode).insertBefore(this.root,this)};
_.Z.__removeChildren=function(){if(this.__children)for(var a=0;a<this.__children.length;a++)this.root.appendChild(this.__children[a])};
_.Z.render=function(){var a=this;if(!this.__children){var z=z||this.querySelector("template");if(!z){var I=new MutationObserver(function(){if(z=a.querySelector("template"))I.disconnect(),a.render();else throw Error("Gd");});
I.observe(this,{childList:!0});return}this.root=this._stampTemplate(z);this.$=this.root.$;this.__children=[];for(var J=this.root.firstChild;J;J=J.nextSibling)this.__children[this.__children.length]=J;this._enableProperties()}this.__insertChildren();this.dispatchEvent(new CustomEvent("dom-change",{bubbles:!0,composed:!0}))};
_.eH.Object.defineProperties(fe,{observedAttributes:{configurable:!0,enumerable:!0,get:function(){return["mutable-data"]}}});
customElements.define("dom-bind",fe);Polymer.Debouncer=tX;Polymer.Gestures={gestures:$v,recognizers:vv,deepTargetFind:mlO,addListener:Xk,removeListener:T$,register:qJ7,setTouchAction:_.d3,prevent:G$,resetMouseCanceller:function(){gn&&gn.flush()},
findOriginalTarget:_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures,add:Xk,remove:T$};Polymer.GestureEventListeners=xoX;Polymer.MutableData=OH;Polymer.OptionalMutableData=vpi;Polymer.DomBind=fe;_.AX=function(){do{var a=window.ShadyDOM&&ShadyDOM.flush();window.ShadyCSS&&window.ShadyCSS.ScopingShim&&window.ShadyCSS.ScopingShim.flush();var z=VxJ()}while(a||z)};var PeI=null;ZnO.prototype=Object.create(HTMLTemplateElement.prototype,{constructor:{value:ZnO,writable:!0}});var OnG=Io(ZnO),gR3=OH(OnG),$ol=Io(function(){}),RG=function(a){var z=$ol.call(this)||this;
z._configureProperties(a);z.root=z._stampTemplate(z.__dataHost);var I=[];z.children=I;for(var J=z.root.firstChild;J;J=J.nextSibling)I.push(J),J.__templatizeInstance=z;z.__templatizeOwner&&z.__templatizeOwner.__hideTemplateChildren__&&z._showHideChildren(!0);I=z.__templatizeOptions;(a&&I.instanceProps||!I.instanceProps)&&z._enableProperties();return z};
_.b(RG,$ol);_.Z=RG.prototype;_.Z._configureProperties=function(a){if(this.__templatizeOptions.forwardHostProp)for(var z in this.__hostProps)this._setPendingProperty(z,this.__dataHost["_host_"+z]);for(var I in a)this._setPendingProperty(I,a[I])};
_.Z.forwardHostProp=function(a,z){this._setPendingPropertyOrPath(a,z,!1,!0)&&this.__dataHost._enqueueClient(this)};
_.Z._addEventListenerToNode=function(a,z,I){var J=this;if(this._methodHost&&this.__templatizeOptions.parentModel)this._methodHost._addEventListenerToNode(a,z,function(P){P.model=J;I(P)});
else{var r=this.__dataHost.__dataHost;r&&r._addEventListenerToNode(a,z,I)}};
_.Z._showHideChildren=function(a){NLG(a,this.children)};
_.Z._setUnmanagedPropertyToNode=function(a,z,I){a.__hideTemplateChildren__&&a.nodeType==Node.TEXT_NODE&&z=="textContent"?a.__polymerTextContent__=I:$ol.prototype._setUnmanagedPropertyToNode.call(this,a,z,I)};
_.Z.dispatchEvent=function(){return!0};
_.eH.Object.defineProperties(RG.prototype,{parentModel:{configurable:!0,enumerable:!0,get:function(){var a=this.__parentModel;if(!a){var z;a=this;do a=a.__dataHost.__dataHost;while((z=a.__templatizeOptions)&&!z.parentModel);this.__parentModel=a}return a}}});
var ugI=OH(RG);var sH=function(){var a=rn.call(this)||this;a.__renderDebouncer=null;a._lastIf=!1;a.__hideTemplateChildren__=!1;return a};
_.b(sH,rn);_.Z=sH.prototype;_.Z.__debounceRender=function(){var a=this;this.__renderDebouncer=_.EH(this.__renderDebouncer,Wv,function(){return a.__render()});
_.BG(this.__renderDebouncer)};
_.Z.disconnectedCallback=function(){rn.prototype.disconnectedCallback.call(this);var a=(0,_.sc)(this).parentNode;a&&(a.nodeType!=Node.DOCUMENT_FRAGMENT_NODE||(0,_.sc)(a).host)||this.__teardownInstance()};
_.Z.connectedCallback=function(){rn.prototype.connectedCallback.call(this);rY$()||(this.style.display="none");this.if&&this.__debounceRender()};
_.Z.__ensureTemplate=function(){var a=this;if(!this.__template){var z=this._templateInfo?this:(0,_.sc)(this).querySelector("template");if(!z){var I=new MutationObserver(function(){if((0,_.sc)(a).querySelector("template"))I.disconnect(),a.__render();else throw Error("Jd");});
I.observe(this,{childList:!0});return!1}this.__template=z}return!0};
_.Z.__ensureInstance=function(){var a=(0,_.sc)(this).parentNode;if(this.__hasInstance()){var z=this.__getInstanceNodes();if(z&&z.length&&(0,_.sc)(this).previousSibling!==z[z.length-1])for(var I=0,J=void 0;I<z.length&&(J=z[I]);I++)(0,_.sc)(a).insertBefore(J,this)}else{if(!a||!this.__ensureTemplate())return!1;this.__createAndInsertInstance(a)}return!0};
_.Z.render=function(){_.AX()};
_.Z.__render=function(){if(this.if){if(!this.__ensureInstance())return}else this.restamp&&this.__teardownInstance();this._showHideChildren();qJ&&!this.notifyDomChange||this.if==this._lastIf||(this.dispatchEvent(new CustomEvent("dom-change",{bubbles:!0,composed:!0})),this._lastIf=this.if)};
_.Z.__hasInstance=function(){};
_.Z.__getInstanceNodes=function(){};
_.Z.__createAndInsertInstance=function(){};
_.Z.__teardownInstance=function(){};
_.Z._showHideChildren=function(){};
_.eH.Object.defineProperties(sH,{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:sH.prototype.__debounceRender},restamp:{type:Boolean,observer:sH.prototype.__debounceRender},notifyDomChange:{type:Boolean}}}}});
var XdG=function(){var a=sH.call(this)||this;a.__instance=null;a.__syncInfo=null;return a};
_.b(XdG,sH);_.Z=XdG.prototype;_.Z.__hasInstance=function(){return!!this.__instance};
_.Z.__getInstanceNodes=function(){return this.__instance.templateInfo.childNodes};
_.Z.__createAndInsertInstance=function(a){var z=this,I=this.__dataHost||this;if(p6&&!this.__dataHost)throw Error("Hd");var J=I._bindTemplate(this.__template,!0);J.runEffects=function(r,P,N){var u=z.__syncInfo;if(z.if)u&&(z.__syncInfo=null,z._showHideChildren(),P=Object.assign(u.changedProps,P)),r(P,N);else if(z.__instance)if(u||(u=z.__syncInfo={runEffects:r,changedProps:{}}),N)for(var E in P)r=ua(E),u.changedProps[r]=z.__dataHost[r];else Object.assign(u.changedProps,P)};
this.__instance=I._stampTemplate(this.__template,J);(0,_.sc)(a).insertBefore(this.__instance,this)};
_.Z.__syncHostProperties=function(){var a=this.__syncInfo;a&&(this.__syncInfo=null,a.runEffects(a.changedProps,!1))};
_.Z.__teardownInstance=function(){var a=this.__dataHost||this;this.__instance&&(a._removeBoundDom(this.__instance),this.__syncInfo=this.__instance=null)};
_.Z._showHideChildren=function(){var a=this.__hideTemplateChildren__||!this.if;this.__instance&&!!this.__instance.__hidden!==a&&(this.__instance.__hidden=a,NLG(a,this.__instance.templateInfo.childNodes));a||this.__syncHostProperties()};
var Tgo=function(){var a=sH.call(this)||this;a.__ctor=null;a.__instance=null;a.__invalidProps=null;return a};
_.b(Tgo,sH);_.Z=Tgo.prototype;_.Z.__hasInstance=function(){return!!this.__instance};
_.Z.__getInstanceNodes=function(){return this.__instance.children};
_.Z.__createAndInsertInstance=function(a){this.__ctor||(this.__ctor=L6(this.__template,this,{mutableData:!0,forwardHostProp:function(z,I){this.__instance&&(this.if?this.__instance.forwardHostProp(z,I):(this.__invalidProps=this.__invalidProps||Object.create(null),this.__invalidProps[ua(z)]=!0))}}));
this.__instance=new this.__ctor;(0,_.sc)(a).insertBefore(this.__instance.root,this)};
_.Z.__teardownInstance=function(){if(this.__instance){var a=this.__instance.children;if(a&&a.length){var z=(0,_.sc)(a[0]).parentNode;if(z){z=(0,_.sc)(z);for(var I=0,J=void 0;I<a.length&&(J=a[I]);I++)z.removeChild(J)}}this.__instance=this.__invalidProps=null}};
_.Z.__syncHostProperties=function(){var a=this.__invalidProps;if(a){this.__invalidProps=null;for(var z in a)this.__instance._setPendingProperty(z,this.__dataHost[z]);this.__instance._flushProperties()}};
_.Z._showHideChildren=function(){var a=this.__hideTemplateChildren__||!this.if;this.__instance&&!!this.__instance.__hidden!==a&&(this.__instance.__hidden=a,this.__instance._showHideChildren(a));a||this.__syncHostProperties()};
_.$i=YQ?XdG:Tgo;customElements.define(_.$i.is,_.$i);Polymer.enqueueDebouncer=_.BG;Polymer.flush=_.AX;Polymer.Templatize={templatize:L6,modelForElement:F7O};Polymer.TemplateInstanceBase=RG;Polymer.DomIf=_.$i;var doJ=vpi(rn),Gz=function(){var a=doJ.call(this)||this;a.__instances=[];a.__renderDebouncer=null;a.__itemsIdxToInstIdx={};a.__chunkCount=null;a.__renderStartTime=null;a.__itemsArrayChanged=!1;a.__shouldMeasureChunk=!1;a.__shouldContinueChunking=!1;a.__chunkingId=0;a.__sortFn=null;a.__filterFn=null;a.__observePaths=null;a.__ctor=null;a.__isDetached=!0;a.template=null;return a};
_.b(Gz,doJ);_.Z=Gz.prototype;_.Z.disconnectedCallback=function(){doJ.prototype.disconnectedCallback.call(this);this.__isDetached=!0;for(var a=0;a<this.__instances.length;a++)this.__detachInstance(a);this.__chunkingId&&cancelAnimationFrame(this.__chunkingId)};
_.Z.connectedCallback=function(){doJ.prototype.connectedCallback.call(this);rY$()||(this.style.display="none");if(this.__isDetached){this.__isDetached=!1;for(var a=(0,_.sc)((0,_.sc)(this).parentNode),z=0;z<this.__instances.length;z++)this.__attachInstance(z,a);this.__chunkingId&&this.__render()}};
_.Z.__ensureTemplatized=function(){var a=this;if(!this.__ctor){var z=this.template=this._templateInfo?this:this.querySelector("template");if(!z){var I=new MutationObserver(function(){if(a.querySelector("template"))I.disconnect(),a.__render();else throw Error("Kd");});
I.observe(this,{childList:!0});return!1}var J={};J[this.as]=!0;J[this.indexAs]=!0;J[this.itemsIndexAs]=!0;this.__ctor=L6(z,this,{mutableData:this.mutableData,parentModel:!0,instanceProps:J,forwardHostProp:function(r,P){for(var N=this.__instances,u=0,E=void 0;u<N.length&&(E=N[u]);u++)E.forwardHostProp(r,P)},
notifyInstanceProp:function(r,P,N){DAi(this.as,P)&&(r=r[this.itemsIndexAs],P==this.as&&(this.items[r]=N),P=Bv(this.as,"items."+r,P),this.notifyPath(P,N))}})}return!0};
_.Z.__getMethodHost=function(){return this.__dataHost._methodHost||this.__dataHost};
_.Z.__functionFromPropertyValue=function(a){if(typeof a==="string"){var z=this.__getMethodHost();return function(){return z[a].apply(z,arguments)}}return a};
_.Z.__sortChanged=function(a){this.__sortFn=this.__functionFromPropertyValue(a);this.items&&this.__debounceRender(this.__render)};
_.Z.__filterChanged=function(a){this.__filterFn=this.__functionFromPropertyValue(a);this.items&&this.__debounceRender(this.__render)};
_.Z.__computeFrameTime=function(a){return Math.ceil(1E3/a)};
_.Z.__observeChanged=function(){this.__observePaths=this.observe&&this.observe.replace(".*",".").split(" ")};
_.Z.__handleObservedPaths=function(a){if(this.__sortFn||this.__filterFn)if(!a)this.__debounceRender(this.__render,this.delay);else if(this.__observePaths)for(var z=this.__observePaths,I=0;I<z.length;I++)a.indexOf(z[I])===0&&this.__debounceRender(this.__render,this.delay)};
_.Z.__itemsChanged=function(a){this.items&&!Array.isArray(this.items)&&console.warn("dom-repeat expected array for `items`, found",this.items);this.__handleItemPath(a.path,a.value)||(a.path==="items"&&(this.__itemsArrayChanged=!0),this.__debounceRender(this.__render))};
_.Z.__debounceRender=function(a,z){z=z===void 0?0:z;this.__renderDebouncer=_.EH(this.__renderDebouncer,z>0?_.ao.after(z):Wv,a.bind(this));_.BG(this.__renderDebouncer)};
_.Z.render=function(){this.__debounceRender(this.__render);_.AX()};
_.Z.__render=function(){var a=this;if(this.__ensureTemplatized()){var z=this.items||[],I=this.__sortAndFilterItems(z),J=this.__calculateLimit(I.length);this.__updateInstances(z,J,I);this.initialCount&&(this.__shouldMeasureChunk||this.__shouldContinueChunking)&&(cancelAnimationFrame(this.__chunkingId),this.__chunkingId=requestAnimationFrame(function(){a.__chunkingId=null;a.__continueChunking()}));
this._setRenderedItemCount(this.__instances.length);qJ&&!this.notifyDomChange||this.dispatchEvent(new CustomEvent("dom-change",{bubbles:!0,composed:!0}))}};
_.Z.__sortAndFilterItems=function(a){for(var z=this,I=Array(a.length),J=0;J<a.length;J++)I[J]=J;this.__filterFn&&(I=I.filter(function(r,P,N){return z.__filterFn(a[r],P,N)}));
this.__sortFn&&I.sort(function(r,P){return z.__sortFn(a[r],a[P])});
return I};
_.Z.__calculateLimit=function(a){var z=a,I=this.__instances.length;if(this.initialCount){var J;!this.__chunkCount||this.__itemsArrayChanged&&!this.reuseChunkedInstances?(z=Math.min(a,this.initialCount),this.__chunkCount=(J=Math.max(z-I,0))||1):(J=Math.min(Math.max(a-I,0),this.__chunkCount),z=Math.min(I+J,a));this.__shouldMeasureChunk=J===this.__chunkCount;this.__shouldContinueChunking=z<a;this.__renderStartTime=performance.now()}this.__itemsArrayChanged=!1;return z};
_.Z.__continueChunking=function(){if(this.__shouldMeasureChunk){var a=performance.now()-this.__renderStartTime;this.__chunkCount=Math.round(this._targetFrameTime/a*this.__chunkCount)||1}this.__shouldContinueChunking&&this.__debounceRender(this.__render)};
_.Z.__updateInstances=function(a,z,I){var J=this.__itemsIdxToInstIdx={},r;for(r=0;r<z;r++){var P=this.__instances[r],N=I[r],u=a[N];J[N]=r;P?(P._setPendingProperty(this.as,u),P._setPendingProperty(this.indexAs,r),P._setPendingProperty(this.itemsIndexAs,N),P._flushProperties()):this.__insertInstance(u,r,N)}for(a=this.__instances.length-1;a>=r;a--)this.__detachAndRemoveInstance(a)};
_.Z.__detachInstance=function(a){a=this.__instances[a];for(var z=(0,_.sc)(a.root),I=0;I<a.children.length;I++)z.appendChild(a.children[I]);return a};
_.Z.__attachInstance=function(a,z){z.insertBefore(this.__instances[a].root,this)};
_.Z.__detachAndRemoveInstance=function(a){this.__detachInstance(a);this.__instances.splice(a,1)};
_.Z.__stampInstance=function(a,z,I){var J={};J[this.as]=a;J[this.indexAs]=z;J[this.itemsIndexAs]=I;return new this.__ctor(J)};
_.Z.__insertInstance=function(a,z,I){a=this.__stampInstance(a,z,I);I=(I=this.__instances[z+1])?I.children[0]:this;(0,_.sc)((0,_.sc)(this).parentNode).insertBefore(a.root,I);return this.__instances[z]=a};
_.Z._showHideChildren=function(a){for(var z=0;z<this.__instances.length;z++)this.__instances[z]._showHideChildren(a)};
_.Z.__handleItemPath=function(a,z){var I=a.slice(6),J=I.indexOf(".");a=J<0?I:I.substring(0,J);if(a==parseInt(a,10)){I=J<0?"":I.substring(J+1);this.__handleObservedPaths(I);if(a=this.__instances[this.__itemsIdxToInstIdx[a]])a._setPendingPropertyOrPath(this.as+(I?"."+I:""),z,!1,!0),a._flushProperties();return!0}};
_.Z.itemForElement=function(a){return(a=this.modelForElement(a))&&a[this.as]};
_.Z.indexForElement=function(a){return(a=this.modelForElement(a))&&a[this.indexAs]};
_.Z.modelForElement=function(a){return F7O(this.template,a)};
_.eH.Object.defineProperties(Gz,{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:Gz.prototype.__sortChanged},filter:{type:Function,observer:Gz.prototype.__filterChanged},observe:{type:String,observer:Gz.prototype.__observeChanged},delay:Number,renderedItemCount:{type:Number,notify:!qJ,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.*)"]}}});
Gz.prototype._setRenderedItemCount=function(){};
customElements.define(Gz.is,Gz);Polymer.DomRepeat=Gz;var WHX=function(a,z){var I=this;this._nativeChildrenObserver=this._shadyChildrenObserver=null;this._connected=!1;this._target=a;this.callback=z;this._effectiveNodes=[];this._observer=null;this._scheduled=!1;this._boundSchedule=function(){I._schedule()};
this.connect();this._schedule()},opI=function(a){var z=(0,_.sc)(a);
if(w3(a))return z.assignedNodes({flatten:!0});a=[];for(var I=0;I<z.childNodes.length;I++){var J=z.childNodes[I];w3(J)?a.push.apply(a,_.ih((0,_.sc)(J).assignedNodes({flatten:!0}))):a.push(J)}return a};
_.Z=WHX.prototype;_.Z.connect=function(){var a=this;w3(this._target)?this._listenSlots([this._target]):(0,_.sc)(this._target).children&&(this._listenSlots((0,_.sc)(this._target).children),window.ShadyDOM?this._shadyChildrenObserver=window.ShadyDOM.observeChildren(this._target,function(z){a._processMutations(z)}):(this._nativeChildrenObserver=new MutationObserver(function(z){a._processMutations(z)}),this._nativeChildrenObserver.observe(this._target,{childList:!0})));
this._connected=!0};
_.Z.disconnect=function(){w3(this._target)?this._unlistenSlots([this._target]):(0,_.sc)(this._target).children&&(this._unlistenSlots((0,_.sc)(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};
_.Z._schedule=function(){var a=this;this._scheduled||(this._scheduled=!0,Wv.run(function(){return a.flush()}))};
_.Z._processMutations=function(a){this._processSlotMutations(a);this.flush()};
_.Z._processSlotMutations=function(a){if(a)for(var z=0;z<a.length;z++){var I=a[z];I.addedNodes&&this._listenSlots(I.addedNodes);I.removedNodes&&this._unlistenSlots(I.removedNodes)}};
_.Z.flush=function(){if(!this._connected)return!1;window.ShadyDOM&&ShadyDOM.flush();this._nativeChildrenObserver?this._processSlotMutations(this._nativeChildrenObserver.takeRecords()):this._shadyChildrenObserver&&this._processSlotMutations(this._shadyChildrenObserver.takeRecords());this._scheduled=!1;for(var a={target:this._target,addedNodes:[],removedNodes:[]},z=opI(this._target),I=K3M(z,this._effectiveNodes),J=0,r=void 0;J<I.length&&(r=I[J]);J++)for(var P=0,N=void 0;P<r.removed.length&&(N=r.removed[P]);P++)a.removedNodes.push(N);
J=0;for(r=void 0;J<I.length&&(r=I[J]);J++)for(P=r.index;P<r.index+r.addedCount;P++)a.addedNodes.push(z[P]);this._effectiveNodes=z;z=!1;if(a.addedNodes.length||a.removedNodes.length)z=!0,this.callback.call(this._target,a);return z};
_.Z._listenSlots=function(a){for(var z=0;z<a.length;z++){var I=a[z];w3(I)&&I.addEventListener("slotchange",this._boundSchedule)}};
_.Z._unlistenSlots=function(a){for(var z=0;z<a.length;z++){var I=a[z];w3(I)&&I.removeEventListener("slotchange",this._boundSchedule)}};var ne=Element.prototype,UoE=ne.matches||ne.matchesSelector||ne.mozMatchesSelector||ne.msMatchesSelector||ne.oMatchesSelector||ne.webkitMatchesSelector,DoG=function(a,z){return UoE.call(a,z)},mk=function(a){window.ShadyDOM&&window.ShadyDOM.inUse&&window.ShadyDOM.patch(a);
this.node=a},pdO;
_.Z=mk.prototype;_.Z.observeNodes=function(a){return new WHX(this.node,a)};
_.Z.unobserveNodes=function(a){a.disconnect()};
_.Z.notifyObserver=function(){};
_.Z.deepContains=function(a){if((0,_.sc)(this.node).contains(a))return!0;var z=a;for(a=a.ownerDocument;z&&z!==a&&z!==this.node;)z=(0,_.sc)(z).parentNode||(0,_.sc)(z).host;return z===this.node};
_.Z.getOwnerRoot=function(){return(0,_.sc)(this.node).getRootNode()};
_.Z.getDistributedNodes=function(){return this.node.localName==="slot"?(0,_.sc)(this.node).assignedNodes({flatten:!0}):[]};
_.Z.getDestinationInsertionPoints=function(){for(var a=[],z=(0,_.sc)(this.node).assignedSlot;z;)a.push(z),z=(0,_.sc)(z).assignedSlot;return a};
_.Z.importNode=function(a,z){return(0,_.sc)(this.node instanceof Document?this.node:this.node.ownerDocument).importNode(a,z)};
_.Z.getEffectiveChildNodes=function(){return opI(this.node)};
_.Z.queryDistributedElements=function(a){for(var z=this.getEffectiveChildNodes(),I=[],J=0,r=z.length,P=void 0;J<r&&(P=z[J]);J++)P.nodeType===Node.ELEMENT_NODE&&DoG(P,a)&&I.push(P);return I};
_.eH.Object.defineProperties(mk.prototype,{activeElement:{configurable:!0,enumerable:!0,get:function(){var a=this.node;return a._activeElement!==void 0?a._activeElement:a.activeElement}}});
var Ke=function(a){this.event=a};
_.eH.Object.defineProperties(Ke.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 RYO=mk;if(window.ShadyDOM&&window.ShadyDOM.inUse&&window.ShadyDOM.noPatch&&window.ShadyDOM.Wrapper){var LHf=window.ShadyDOM.Wrapper,lY1=function(){return LHf.apply(this,arguments)||this};
_.b(lY1,LHf);Object.getOwnPropertyNames(mk.prototype).forEach(function(a){a!="activeElement"&&a!="constructor"&&(lY1.prototype[a]=mk.prototype[a])});
bn7(lY1.prototype,["classList"]);RYO=lY1;Object.defineProperties(Ke.prototype,{localTarget:{get:function(){var a=this.event.currentTarget;a=a&&_.Q$(a).getOwnerRoot();for(var z=this.path,I=0;I<z.length;I++){var J=z[I];if(_.Q$(J).getOwnerRoot()===a)return J}},
configurable:!0},path:{get:function(){return window.ShadyDOM.composedPath(this.event)},
configurable:!0}})}else Hn$(),bn7(mk.prototype,"parentNode firstChild lastChild nextSibling previousSibling firstElementChild lastElementChild nextElementSibling previousElementSibling childNodes children classList shadowRoot".split(" ")),hsm();pdO=RYO;_.Q$=function(a){a=a||document;if(a instanceof RYO)return a;if(a instanceof Ke)return a;var z=a.__domApi;z||(a instanceof Event?z=new Ke(a):z=new RYO(a),a.__domApi=z);return z};var wdj=/:host\(:dir\((ltr|rtl)\)\)/g,mow=/([\s\w-#\.\[\]\*]*):dir\((ltr|rtl)\)/g,yWv=/:dir\((?:ltr|rtl)\)/,kgJ=!(!window.ShadyDOM||!window.ShadyDOM.inUse),kv=[],Fq=null,yL="",MxX=j$(function(a){kgJ||Fq||(yL=document.documentElement.getAttribute("dir"),Fq=new MutationObserver(VQp),Fq.observe(document.documentElement,{attributes:!0,attributeFilter:["dir"]}));var z=aYw(a);a=function(){var I=z.call(this)||this;I.__autoDirOptOut=!1;return I};
_.b(a,z);a._processStyleText=function(I,J){I=z._processStyleText.call(this,I,J);!kgJ&&yWv.test(I)&&(I=this._replaceDirInCssText(I),this.__activateDir=!0);return I};
a._replaceDirInCssText=function(I){I=I.replace(wdj,':host([dir="$1"])');return I=I.replace(mow,':host([dir="$2"]) $1')};
a.prototype.ready=function(){z.prototype.ready.call(this);this.__autoDirOptOut=this.hasAttribute("dir")};
a.prototype.connectedCallback=function(){z.prototype.connectedCallback&&z.prototype.connectedCallback.call(this);this.constructor.__activateDir&&(Fq&&Fq.takeRecords().length&&VQp(),kv.push(this),this.__autoDirOptOut||this.setAttribute("dir",yL))};
a.prototype.disconnectedCallback=function(){z.prototype.disconnectedCallback&&z.prototype.disconnectedCallback.call(this);if(this.constructor.__activateDir){var I=kv.indexOf(this);I>-1&&kv.splice(I,1)}};
a.__activateDir=!1;return a});var cWi=function(a){for(;a;){var z=Object.getOwnPropertyDescriptor(a,"observedAttributes");if(z)return z.get;a=Object.getPrototypeOf(a.prototype).constructor}return function(){return[]}};
j$(function(a){var z=JX(a),I=cWi(z);a=function(){return z.call(this)||this};
_.b(a,z);a.prototype._initializeProperties=function(){this.hasAttribute("disable-upgrade")?this.__isUpgradeDisabled=!0:z.prototype._initializeProperties.call(this)};
a.prototype._enableProperties=function(){this.__isUpgradeDisabled||z.prototype._enableProperties.call(this)};
a.prototype._canApplyPropertyDefault=function(J){return z.prototype._canApplyPropertyDefault.call(this,J)&&!(this.__isUpgradeDisabled&&this._isPropertyPending(J))};
a.prototype.attributeChangedCallback=function(J,r,P,N){J=="disable-upgrade"?this.__isUpgradeDisabled&&P==null&&(z.prototype._initializeProperties.call(this),this.__isUpgradeDisabled=!1,(0,_.sc)(this).isConnected&&z.prototype.connectedCallback.call(this)):z.prototype.attributeChangedCallback.call(this,J,r,P,N)};
a.prototype.connectedCallback=function(){this.__isUpgradeDisabled||z.prototype.connectedCallback.call(this)};
a.prototype.disconnectedCallback=function(){this.__isUpgradeDisabled||z.prototype.disconnectedCallback.call(this)};
_.eH.Object.defineProperties(a,{observedAttributes:{configurable:!0,enumerable:!0,get:function(){return I.call(this).concat("disable-upgrade")}}});
return a});var Mr=!1,SB7=[],cv=[];var GLG=window.ShadyDOM,$SE=window.ShadyCSS;window.WebComponents?window.addEventListener("WebComponentsReady",TLm):document.readyState==="interactive"||document.readyState==="complete"?TLm():window.addEventListener("DOMContentLoaded",TLm);var oRG=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=""},dSG=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//gim,W7M=/@import[^;]*;/gim,pbI=/(?:^[^;\-\s}]+)?--[^;{}]*?:[^{};]*?(?:[;\n]|$)/gim,wbd=/(?:^[^;\-\s}]+)?--[^;{}]*?:[^{};]*?{[^}]*?}(?:[;\n]|$)?/gim,mSO=/@apply\s*\(?[^);]*\)?\s*(?:[;\n]|$)?/gim,yYi=/[^;:]*?:[^;]*?var\([^;]*\)(?:[;\n]|$)?/gim,L71=/^@[^\s]*keyframes/,
RsG=/\s+/g;var kLE={};var YBO=Promise.resolve();var Yrf=new Set;var qrO=/;\s*/m,eYE=/^\s*(initial)|(inherit)\s*$/,aaw=/\s*!important/,jXw=function(){this._map={}};
jXw.prototype.set=function(a,z){a=a.trim();this._map[a]={properties:z,dependants:{}}};
jXw.prototype.get=function(a){a=a.trim();return this._map[a]||null};
var zVE=null,HG=function(){this._measureElement=this._currentElement=null;this._map=new jXw};
_.Z=HG.prototype;_.Z.detectMixin=function(a){a=sUX.test(a)||AW1.test(a);sUX.lastIndex=0;AW1.lastIndex=0;return a};
_.Z.transformTemplate=function(a,z){if(a._gatheredStyle===void 0){var I=[];for(var J=a.content.querySelectorAll("style"),r=0;r<J.length;r++){var P=J[r];if(P.hasAttribute("shady-unscoped")){if(!vK3){var N=P.textContent;if(!Yrf.has(N)){Yrf.add(N);var u=document.createElement("style");u.setAttribute("shady-unscoped","");u.textContent=N;document.head.appendChild(u)}P.parentNode.removeChild(P)}}else I.push(P.textContent),P.parentNode.removeChild(P)}(I=I.join("").trim())?(J=document.createElement("style"),
J.textContent=I,a.content.insertBefore(J,a.content.firstChild),I=J):I=null;a._gatheredStyle=I}return(a=a._gatheredStyle)?this.JSC$11163_transformStyle(a,z):null};
_.Z.JSC$11163_transformStyle=function(a,z){z=z===void 0?"":z;var I=jc1(a);this.transformRules(I,z);a.textContent=auM(I);return I};
_.Z.transformCustomStyle=function(a){var z=this,I=jc1(a);IuE(I,function(J){J.selector===":root"&&(J.selector="html");z.transformRule(J)});
a.textContent=auM(I);return I};
_.Z.transformRules=function(a,z){var I=this;this._currentElement=z;IuE(a,function(J){I.transformRule(J)});
this._currentElement=null};
_.Z.transformRule=function(a){a.cssText=IaG(this,a.parsedCssText,a);a.selector===":root"&&(a.selector=":host > *")};
var IaG=function(a,z,I){z=z.replace(AW1,function(J,r,P,N){return a._produceCssProperties(J,r,P,N,I)});
return a._consumeCssProperties(z,I)};
_.Z=HG.prototype;_.Z._getInitialValueForProperty=function(a){this._measureElement||(this._measureElement=document.createElement("meta"),this._measureElement.setAttribute("apply-shim-measure",""),this._measureElement.style.all="initial",document.head.appendChild(this._measureElement));return window.getComputedStyle(this._measureElement).getPropertyValue(a)};
_.Z._fallbacksFromPreviousRules=function(a){for(var z=this,I=a;I.parent;)I=I.parent;var J={},r=!1;IuE(I,function(P){(r=r||P===a)||P.selector===a.selector&&Object.assign(J,z._cssTextToMap(P.parsedCssText))});
return J};
_.Z._consumeCssProperties=function(a,z){for(var I;I=sUX.exec(a);){var J=I[0],r=I[1];I=I.index;var P=I+J.indexOf("@apply"),N=I+J.length;J=a.slice(0,P);a=a.slice(N);P=z?this._fallbacksFromPreviousRules(z):{};Object.assign(P,this._cssTextToMap(J));r=this._atApplyToCssProperties(r,P);a=J+r+a;sUX.lastIndex=I+r.length}return a};
_.Z._atApplyToCssProperties=function(a,z){a=a.replace(qrO,"");var I=[],J=this._map.get(a);J||(this._map.set(a,{}),J=this._map.get(a));if(J){this._currentElement&&(J.dependants[this._currentElement]=!0);var r,P=J.properties;for(r in P){var N=z&&z[r];J=[r,": var(",a,"_-_",r];N&&J.push(",",N.replace(aaw,""));J.push(")");aaw.test(P[r])&&J.push(" !important");I.push(J.join(""))}}return I.join("; ")};
_.Z._replaceInitialOrInherit=function(a,z){var I=eYE.exec(z);I&&(z=I[1]?this._getInitialValueForProperty(a):"apply-shim-inherit");return z};
_.Z._cssTextToMap=function(a,z){z=z===void 0?!1:z;a=a.split(";");for(var I,J,r={},P=0;P<a.length;P++)if(I=a[P])J=I.split(":"),J.length>1&&(I=J[0].trim(),J=J.slice(1).join(":"),z&&(J=this._replaceInitialOrInherit(I,J)),r[I]=J);return r};
_.Z._invalidateMixinEntry=function(a){if(zVE)for(var z in a.dependants)z!==this._currentElement&&zVE(z)};
_.Z._produceCssProperties=function(a,z,I,J,r){var P=this;I&&JTG(I,function(h,v){v&&P._map.get(v)&&(J="@apply "+v+";")});
if(!J)return a;var N=this._consumeCssProperties(""+J,r);r=a.slice(0,a.indexOf("--"));var u=N=this._cssTextToMap(N,!0),E=this._map.get(z),O=E&&E.properties;O?u=Object.assign(Object.create(O),N):this._map.set(z,u);var f=[],A,n=!1;for(A in u){var F=N[A];F===void 0&&(F="initial");!O||A in O||(n=!0);f.push(z+"_-_"+A+": "+F)}n&&this._invalidateMixinEntry(E);E&&(E.properties=u);I&&(r=a+";"+r);return r+f.join("; ")+";"};
HG.prototype.detectMixin=HG.prototype.detectMixin;HG.prototype.transformStyle=HG.prototype.JSC$11163_transformStyle;HG.prototype.transformCustomStyle=HG.prototype.transformCustomStyle;HG.prototype.transformRules=HG.prototype.transformRules;HG.prototype.transformRule=HG.prototype.transformRule;HG.prototype.transformTemplate=HG.prototype.transformTemplate;HG.prototype._separator="_-_";Object.defineProperty(HG.prototype,"invalidCallback",{get:function(){return zVE},
set:function(a){zVE=a}});var bA=new HG,Jve=function(){this.customStyleInterface=null;bA.invalidCallback=MQm},hX=function(a){!a.customStyleInterface&&window.ShadyCSS.CustomStyleInterface&&(a.customStyleInterface=window.ShadyCSS.CustomStyleInterface,a.customStyleInterface.transformCallback=function(z){bA.transformCustomStyle(z)},a.customStyleInterface.validateCallback=function(){requestAnimationFrame(function(){a.customStyleInterface.enqueued&&a.flushCustomStyles()})})};
_.Z=Jve.prototype;_.Z.prepareTemplate=function(a,z){hX(this);rTx(a)===""&&(kLE[z]=a,z=bA.transformTemplate(a,z),a._styleAst=z)};
_.Z.flushCustomStyles=function(){hX(this);if(this.customStyleInterface){var a=this.customStyleInterface.processStyles();if(this.customStyleInterface.enqueued){for(var z=0;z<a.length;z++){var I=this.customStyleInterface.getStyleForCustomStyle(a[z]);I&&bA.transformCustomStyle(I)}this.customStyleInterface.enqueued=!1}}};
_.Z.styleSubtree=function(a,z){hX(this);z&&bhi(a,z);if(a.shadowRoot)for(this.styleElement(a),a=a.shadowRoot.children||a.shadowRoot.childNodes,z=0;z<a.length;z++)this.styleSubtree(a[z]);else for(a=a.children||a.childNodes,z=0;z<a.length;z++)this.styleSubtree(a[z])};
_.Z.styleElement=function(a){hX(this);var z=a.localName,I;z?z.indexOf("-")>-1?I=z:I=a.getAttribute&&a.getAttribute("is")||"":I=a.is;z=kLE[I];if(!(z&&rTx(z)!==""||!z||cYO(z))){if(cYO(z)||z._applyShimValidatingVersion!==z._applyShimNextVersion)this.prepareTemplate(z,I),qB1(z);if(a=a.shadowRoot)if(a=a.querySelector("style"))a.__cssRules=z._styleAst,a.textContent=auM(z._styleAst)}};
_.Z.styleDocument=function(a){hX(this);this.styleSubtree(document.body,a)};
if(!window.ShadyCSS||!window.ShadyCSS.ScopingShim){var V1=new Jve,rv1=window.ShadyCSS&&window.ShadyCSS.CustomStyleInterface;window.ShadyCSS={prepareTemplate:function(a,z){V1.flushCustomStyles();V1.prepareTemplate(a,z)},
prepareTemplateStyles:function(a,z,I){window.ShadyCSS.prepareTemplate(a,z,I)},
prepareTemplateDom:function(){},
styleSubtree:function(a,z){V1.flushCustomStyles();V1.styleSubtree(a,z)},
styleElement:function(a){V1.flushCustomStyles();V1.styleElement(a)},
styleDocument:function(a){V1.flushCustomStyles();V1.styleDocument(a)},
getComputedStyleValue:function(a,z){return hOG(a,z)},
flushCustomStyles:function(){V1.flushCustomStyles()},
nativeCss:esx,nativeShadow:vK3,cssBuild:qr,disableRuntime:FHO};rv1&&(window.ShadyCSS.CustomStyleInterface=rv1)}window.ShadyCSS.ApplyShim=bA;var Pkw;Pkw=window.ShadyCSS;_.Q1=j$(function(a){a=xoX(JX(a));var z=txi?a:MxX(a),I=cWi(z),J={x:"pan-x",y:"pan-y",none:"none",all:"auto"};a=function(){return z.call(this)||this};
_.b(a,z);a.prototype.created=function(){};
a.prototype.__attributeReaction=function(r,P,N){(this.__dataAttributes&&this.__dataAttributes[r]||r==="disable-upgrade")&&this.attributeChangedCallback(r,P,N,null)};
a.prototype.setAttribute=function(r,P){if(oAl&&!this._legacyForceObservedAttributes){var N=this.getAttribute(r);z.prototype.setAttribute.call(this,r,P);this.__attributeReaction(r,N,String(P))}else z.prototype.setAttribute.call(this,r,P)};
a.prototype.removeAttribute=function(r){if(oAl&&!this._legacyForceObservedAttributes){var P=this.getAttribute(r);z.prototype.removeAttribute.call(this,r);this.__attributeReaction(r,P,null)}else z.prototype.removeAttribute.call(this,r)};
a.prototype._enableProperties=function(){this.__isUpgradeDisabled||z.prototype._enableProperties.call(this)};
a.prototype._canApplyPropertyDefault=function(r){return z.prototype._canApplyPropertyDefault.call(this,r)&&!(this.__isUpgradeDisabled&&this._isPropertyPending(r))};
a.prototype.connectedCallback=function(){this.__needsAttributesAtConnected&&this._takeAttributes();this.__isUpgradeDisabled||(z.prototype.connectedCallback.call(this),this.isAttached=!0,this.attached())};
a.prototype.attached=function(){};
a.prototype.disconnectedCallback=function(){this.__isUpgradeDisabled||(z.prototype.disconnectedCallback.call(this),this.isAttached=!1,this.detached())};
a.prototype.detached=function(){};
a.prototype.attributeChangedCallback=function(r,P,N,u){P!==N&&(r=="disable-upgrade"?this.__isUpgradeDisabled&&N==null&&(this._initializeProperties(),this.__isUpgradeDisabled=!1,(0,_.sc)(this).isConnected&&this.connectedCallback()):(z.prototype.attributeChangedCallback.call(this,r,P,N,u),this.attributeChanged(r,P,N)))};
a.prototype.attributeChanged=function(){};
a.prototype._initializeProperties=function(){if(Uc&&this.hasAttribute("disable-upgrade"))this.__isUpgradeDisabled=!0;else{var r=Object.getPrototypeOf(this);r.hasOwnProperty("__hasRegisterFinished")||(this._registered(),r.__hasRegisterFinished=!0);z.prototype._initializeProperties.call(this);this.root=this;this.created();oAl&&!this._legacyForceObservedAttributes&&(this.hasAttributes()?this._takeAttributes():this.parentNode||(this.__needsAttributesAtConnected=!0));this._applyListeners()}};
a.prototype._takeAttributes=function(){for(var r=this.attributes,P=0,N=r.length;P<N;P++){var u=r[P];this.__attributeReaction(u.name,null,u.value)}};
a.prototype._registered=function(){};
a.prototype.ready=function(){this._ensureAttributes();z.prototype.ready.call(this)};
a.prototype._ensureAttributes=function(){};
a.prototype._applyListeners=function(){};
a.prototype.serialize=function(r){return this._serializeValue(r)};
a.prototype.deserialize=function(r,P){return this._deserializeValue(r,P)};
a.prototype.reflectPropertyToAttribute=function(r,P,N){this._propertyToAttribute(r,P,N)};
a.prototype.serializeValueToAttribute=function(r,P,N){this._valueToNodeAttribute(N||this,r,P)};
a.prototype.extend=function(r,P){if(!r||!P)return r||P;for(var N=Object.getOwnPropertyNames(P),u=0,E=void 0;u<N.length&&(E=N[u]);u++){var O=Object.getOwnPropertyDescriptor(P,E);O&&Object.defineProperty(r,E,O)}return r};
a.prototype.mixin=function(r,P){for(var N in P)r[N]=P[N];return r};
a.prototype.chainObject=function(r,P){r&&P&&r!==P&&(r.__proto__=P);return r};
a.prototype.instanceTemplate=function(r){r=this.constructor._contentForTemplate(r);return document.importNode(r,!0)};
a.prototype.fire=function(r,P,N){N=N||{};P=P===null||P===void 0?{}:P;r=new Event(r,{bubbles:N.bubbles===void 0?!0:N.bubbles,cancelable:!!N.cancelable,composed:N.composed===void 0?!0:N.composed});r.detail=P;(0,_.sc)(N.node||this).dispatchEvent(r);return r};
a.prototype.listen=function(r,P,N){r=r||this;var u=this.__boundListeners||(this.__boundListeners=new WeakMap),E=u.get(r);E||(E={},u.set(r,E));u=P+N;E[u]||(E[u]=this._addMethodEventListenerToNode(r,P,N,this))};
a.prototype.unlisten=function(r,P,N){r=r||this;var u=this.__boundListeners&&this.__boundListeners.get(r);N=P+N;var E=u&&u[N];E&&(this._removeEventListenerFromNode(r,P,E),u[N]=null)};
a.prototype.setScrollDirection=function(r,P){_.d3(P||this,J[r]||"auto")};
a.prototype.$$=function(r){return this.root.querySelector(r)};
a.prototype.distributeContent=function(){var r=_.Q$(this);window.ShadyDOM&&r.shadowRoot&&ShadyDOM.flush()};
a.prototype.getEffectiveChildNodes=function(){return _.Q$(this).getEffectiveChildNodes()};
a.prototype.queryDistributedElements=function(r){return _.Q$(this).queryDistributedElements(r)};
a.prototype.getEffectiveChildren=function(){return this.getEffectiveChildNodes().filter(function(r){return r.nodeType===Node.ELEMENT_NODE})};
a.prototype.getEffectiveTextContent=function(){for(var r=this.getEffectiveChildNodes(),P=[],N=0,u;u=r[N];N++)u.nodeType!==Node.COMMENT_NODE&&P.push(u.textContent);return P.join("")};
a.prototype.queryEffectiveChildren=function(r){return(r=this.queryDistributedElements(r))&&r[0]};
a.prototype.queryAllEffectiveChildren=function(r){return this.queryDistributedElements(r)};
a.prototype.getContentChildNodes=function(r){return(r=this.root.querySelector(r||"slot"))?_.Q$(r).getDistributedNodes():[]};
a.prototype.getContentChildren=function(r){return this.getContentChildNodes(r).filter(function(P){return P.nodeType===Node.ELEMENT_NODE})};
a.prototype.isLightDescendant=function(r){return this!==r&&(0,_.sc)(this).contains(r)&&(0,_.sc)(this).getRootNode()===(0,_.sc)(r).getRootNode()};
a.prototype.isLocalDescendant=function(r){return this.root===(0,_.sc)(r).getRootNode()};
a.prototype.scopeSubtree=function(r,P){return Xb0(r,P===void 0?!1:P)};
a.prototype.getComputedStyleValue=function(r){return Pkw.getComputedStyleValue(this,r)};
a.prototype.debounce=function(r,P,N){this._debouncers=this._debouncers||{};return this._debouncers[r]=_.EH(this._debouncers[r],N>0?_.ao.after(N):Wv,P.bind(this))};
a.prototype.isDebouncerActive=function(r){this._debouncers=this._debouncers||{};r=this._debouncers[r];return!(!r||!r.isActive())};
a.prototype.flushDebouncer=function(r){this._debouncers=this._debouncers||{};(r=this._debouncers[r])&&r.flush()};
a.prototype.cancelDebouncer=function(r){this._debouncers=this._debouncers||{};(r=this._debouncers[r])&&r.cancel()};
a.prototype.async=function(r,P){return P>0?_.ao.run(r.bind(this),P):~Wv.run(r.bind(this))};
a.prototype.cancelAsync=function(r){r<0?Wv.cancel(~r):_.ao.cancel(r)};
a.prototype.create=function(r,P){r=document.createElement(r);if(P)if(r.setProperties)r.setProperties(P);else for(var N in P)r[N]=P[N];return r};
a.prototype.elementMatches=function(r,P){return DoG(P||this,r)};
a.prototype.toggleAttribute=function(r,P){var N=this;arguments.length===3&&(N=arguments[2]);arguments.length==1&&(P=!N.hasAttribute(r));if(P)return(0,_.sc)(N).setAttribute(r,""),!0;(0,_.sc)(N).removeAttribute(r);return!1};
a.prototype.toggleClass=function(r,P,N){N=N||this;arguments.length==1&&(P=!N.classList.contains(r));P?N.classList.add(r):N.classList.remove(r)};
a.prototype.transform=function(r,P){P=P||this;P.style.webkitTransform=r;P.style.transform=r};
a.prototype.translate3d=function(r,P,N,u){this.transform("translate3d("+r+","+P+","+N+")",u||this)};
a.prototype.arrayDelete=function(r,P){if(Array.isArray(r)){if(P=r.indexOf(P),P>=0)return r.splice(P,1)}else if(P=Oc(this,r).indexOf(P),P>=0)return this.splice(r,P,1);return null};
a.prototype._logger=function(r,P){Array.isArray(P)&&P.length===1&&Array.isArray(P[0])&&(P=P[0]);switch(r){case "log":case "warn":case "error":console[r].apply(console,_.ih(P))}};
a.prototype._log=function(){this._logger("log",_.dO.apply(0,arguments))};
a.prototype._warn=function(){this._logger("warn",_.dO.apply(0,arguments))};
a.prototype._error=function(){this._logger("error",_.dO.apply(0,arguments))};
a.prototype._logf=function(r){return["[%s::%s]",this.is,r].concat(_.ih(_.dO.apply(1,arguments)))};
_.eH.Object.defineProperties(a.prototype,{domHost:{configurable:!0,enumerable:!0,get:function(){var r=(0,_.sc)(this).getRootNode();return r instanceof DocumentFragment?r.host:r}}});
_.eH.Object.defineProperties(a,{importMeta:{configurable:!0,enumerable:!0,get:function(){return this.prototype.importMeta}},
observedAttributes:{configurable:!0,enumerable:!0,get:function(){return oAl&&!this.prototype._legacyForceObservedAttributes?(this.hasOwnProperty("__observedAttributes")||(this.__observedAttributes=[],$AG(this.prototype)),this.__observedAttributes):I.call(this).concat("disable-upgrade")}}});
a.prototype.is="";return a});Polymer.FlattenedNodesObserver=WHX;Polymer.DomApi=pdO;Polymer.EventApi=Ke;Polymer.dom=_.Q$;Polymer.dom.matchesSelector=DoG;Polymer.dom.flush=_.AX;Polymer.dom.addDebouncer=_.BG;Polymer.DirMixin=MxX;Polymer.RenderStatus={beforeNextRender:_.vRm,afterNextRender:_.Yv,flush:function(){for(;SB7.length||cv.length;)Qsd(SB7),Qsd(cv);Mr=!1}};Polymer.LegacyElementMixin=_.Q1;var ZHJ;ZHJ=OH._mutablePropertyChange;var Ckw={properties:{mutableData:Boolean},_shouldPropertyChange:function(a,z,I){return ZHJ(this,a,z,I,this.mutableData)}};Polymer.MutableDataBehavior={_shouldPropertyChange:function(a,z,I){return ZHJ(this,a,z,I,!0)}};
Polymer.OptionalMutableDataBehavior=Ckw;var P3i={attached:!0,detached:!0,ready:!0,created:!0,beforeRegister:!0,registered:!0,attributeChanged:!0,listeners:!0,hostAttributes:!0},uO7={attached:!0,detached:!0,ready:!0,created:!0,beforeRegister:!0,registered:!0,attributeChanged:!0,behaviors:!0,_noAccessors:!0},tNx=Object.assign({listeners:!0,hostAttributes:!0,properties:!0,observers:!0},uO7),NYG=(0,_.Q1)(HTMLElement),zH1=function(a,z){a||console.warn("Polymer.Class requires `info` argument");z=z?z(NYG):NYG;z=EBE(a,z,a.behaviors);z.is=z.prototype.is=
a.is;return z};Polymer.Class=zH1;Polymer.mixinBehaviors=function(a,z){return EBE({},(0,_.Q1)(z),a)};
Polymer.GenerateClassFromInfo=EBE;_.vK=function(a){var z=typeof a==="function"?a:_.vK.Class(a);a._legacyForceObservedAttributes&&(z.prototype._legacyForceObservedAttributes=a._legacyForceObservedAttributes);customElements.define(z.is,z);return z};
_.vK.Class=zH1;Polymer._polymerFn=_.vK;var ttO=window.onLegacyPolymerFunctionDefinedCallback;ttO&&ttO();var JLm={templatize:function(a,z){this._templatizerTemplate=a;this.ctor=L6(a,this,{mutableData:!!z,parentModel:this._parentModel,instanceProps:this._instanceProps,forwardHostProp:this._forwardHostPropV2,notifyInstanceProp:this._notifyInstancePropV2})},
stamp:function(a){return new this.ctor(a)},
modelForElement:function(a){return F7O(this._templatizerTemplate,a)}};Polymer.Templatizer=JLm;_.S$=(0,_.Q1)(HTMLElement).prototype;Polymer.Base=_.S$;var gB$=/\bclass\b/.test(function(){}.toString());
window.PolymerFakeBaseClass=function(){};
_.aA=function(){return PolymerFakeBaseClass.apply(this,arguments)||this};
_.b(_.aA,PolymerFakeBaseClass);var jl=function(){return PolymerFakeBaseClass.apply(this,arguments)||this};
_.b(jl,PolymerFakeBaseClass);var Ox3=Symbol("Ld"),bxd=[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 ubo=ubo||{id:"third_party/javascript/node_modules/reflect_decorators/Reflect.closure.js"},Ehv;(function(a){function z(m,M,y){var e=q.get(m);if(!e){if(!y)return;e=new W;q.set(m,e)}m=e.get(M);if(!m){if(!y)return;m=new W;e.set(M,m)}return m}
function I(m,M,y){if(J(m,M,y))return!0;M=n(M);return M!==null?I(m,M,y):!1}
function J(m,M,y){M=z(M,y,!1);return M===void 0?!1:!!M.has(m)}
function r(m,M,y){if(J(m,M,y))return P(m,M,y);M=n(M);if(M!==null)return r(m,M,y)}
function P(m,M,y){M=z(M,y,!1);if(M!==void 0)return M.get(m)}
function N(m,M){var y=u(m,M);m=n(m);if(m===null)return y;var e=N(m,M);if(e.length<=0)return y;if(y.length<=0)return e;M=new l;m=[];y=_.C(y);for(var Bp=y.next();!Bp.done;Bp=y.next())Bp=Bp.value,M.has(Bp)||(M.add(Bp),m.push(Bp));y=_.C(e);for(e=y.next();!e.done;e=y.next())e=e.value,M.has(e)||(M.add(e),m.push(e));return m}
function u(m,M){m=z(m,M,!1);var y=[];m&&m.forEach(function(e,Bp){return y.push(Bp)});
return y}
function E(m){return m===void 0}
function O(m){return typeof m==="object"?m!==null:typeof m==="function"}
function f(m){return typeof m==="function"}
function A(m){return typeof m==="symbol"?m:String(m)}
function n(m){var M=Object.getPrototypeOf(m);if(typeof m!=="function"||m===d||M!==d)return M;var y=Object.getPrototypeOf(m.prototype);if(y==null||y===Object.prototype)return M;y=y.constructor;return typeof y!=="function"||y===m?M:y}
function F(){function m(){this._keys=[];this._values=[];this._cache=M}
var M={};m.prototype={get size(){return this._keys.length},has:function(y){return y===this._cache?!0:this._find(y)>=0?(this._cache=y,!0):!1},
get:function(y){var e=this._find(y);if(e>=0)return this._cache=y,this._values[e]},
set:function(y,e){this.delete(y);this._keys.push(y);this._values.push(e);this._cache=y;return this},
delete:function(y){y=this._find(y);return y>=0?(this._keys.splice(y,1),this._values.splice(y,1),this._cache=M,!0):!1},
clear:function(){this._keys.length=0;this._values.length=0;this._cache=M},
forEach:function(y){for(var e=this.size,Bp=0;Bp<e;++Bp){var Em=this._keys[Bp],nG=this._values[Bp];this._cache=Em;y.call(this,nG,Em,this)}},
_find:function(y){for(var e=this._keys,Bp=e.length,Em=0;Em<Bp;++Em)if(e[Em]===y)return Em;return-1}};
return m}
function h(){function m(){this._map=new W}
m.prototype={get size(){return this._map.length},has:function(M){return this._map.has(M)},
add:function(M){this._map.set(M,M);return this},
delete:function(M){return this._map.delete(M)},
clear:function(){this._map.clear()},
forEach:function(M,y){this._map.forEach(M,y)}};
return m}
function v(){function m(){this._key=y()}
function M(Hp,LG){for(var oE=0;oE<LG;++oE)Hp[oE]=Math.random()*255|0}
function y(){do{if(Bp)var Hp=Bp.randomBytes(16);else typeof Uint8Array==="function"?(Hp=new Uint8Array(16),typeof crypto!=="undefined"?crypto.getRandomValues(Hp):M(Hp,16)):(Hp=Array(16),M(Hp,16));Hp[6]=Hp[6]&79|64;Hp[8]=Hp[8]&191|128;for(var LG="",oE=0;oE<16;++oE){var Pe=Hp[oE];if(oE===4||oE===6||oE===8)LG+="-";Pe<16&&(LG+="0");LG+=Pe.toString(16).toLowerCase()}Hp="@@WeakMap@@"+LG}while(Em.call(nG,Hp));nG[Hp]=!0;return Hp}
function e(Hp,LG){if(!Em.call(Hp,bG)){if(!LG)return;Object.defineProperty(Hp,bG,{value:Object.create(null)})}return Hp[bG]}
var Bp=typeof global!=="undefined"&&typeof ubo==="object"&&typeof require==="function"&&require("crypto"),Em=Object.prototype.hasOwnProperty,nG={},bG=y();m.prototype={has:function(Hp){return(Hp=e(Hp,!1))?this._key in Hp:!1},
get:function(Hp){if(Hp=e(Hp,!1))return Hp[this._key]},
set:function(Hp,LG){e(Hp,!0)[this._key]=LG;return this},
delete:function(Hp){return(Hp=e(Hp,!1))&&this._key in Hp?delete Hp[this._key]:!1},
clear:function(){this._key=y()}};
return m}
var d=Object.getPrototypeOf(Function),W=typeof Map==="function"?Map:F(),l=typeof Set==="function"?Set:h(),q=new (typeof WeakMap==="function"?WeakMap:v());a.decorate=function(m,M,y,e){if(E(e)){if(E(y)){if(!Array.isArray(m))throw new TypeError;if(!f(M))throw new TypeError;for(y=m.length-1;y>=0;--y)if(e=(0,m[y])(M),!E(e)){if(!f(e))throw new TypeError;M=e}return M}if(!Array.isArray(m))throw new TypeError;if(!O(M))throw new TypeError;y=A(y);for(e=m.length-1;e>=0;--e)(0,m[e])(M,y)}else{if(Array.isArray(m))if(O(M)){if(E(y))throw new TypeError;
if(!O(e))throw new TypeError;}else throw new TypeError;else throw new TypeError;y=A(y);for(var Bp=m.length-1;Bp>=0;--Bp){var Em=(0,m[Bp])(M,y,e);if(!E(Em)){if(!O(Em))throw new TypeError;e=Em}}return e}};
a.metadata=function(m,M){return function(y,e){if(E(e)){if(!f(y))throw new TypeError;z(y,void 0,!0).set(m,M)}else{if(!O(y))throw new TypeError;e=A(e);z(y,e,!0).set(m,M)}}};
a.defineMetadata=function(m,M){var y;if(O(M))E(y)||(y=A(y));else throw new TypeError;z(M,y,!0).set("parameters",m)};
a.hasMetadata=function(m,M,y){if(O(M))E(y)||(y=A(y));else throw new TypeError;return I(m,M,y)};
a.hasOwnMetadata=function(m,M,y){if(O(M))E(y)||(y=A(y));else throw new TypeError;return J(m,M,y)};
a.getMetadata=function(m,M,y){if(O(M))E(y)||(y=A(y));else throw new TypeError;return r(m,M,y)};
a.getOwnMetadata=function(m,M,y){if(O(M))E(y)||(y=A(y));else throw new TypeError;return P(m,M,y)};
a.getMetadataKeys=function(m,M){if(O(m))E(M)||(M=A(M));else throw new TypeError;return N(m,M)};
a.getOwnMetadataKeys=function(m,M){if(O(m))E(M)||(M=A(M));else throw new TypeError;return u(m,M)};
a.deleteMetadata=function(m,M,y){if(O(M))E(y)||(y=A(y));else throw new TypeError;var e=z(M,y,!1);if(!E(e)){if(!e.delete(m))return!1;if(e.size>0)return!0;m=q.get(M);m.delete(y);if(m.size>0)return!0;q.delete(M);return!0}};
(function(m){if(typeof m.Reflect!=="undefined"){if(m.Reflect!==a)for(var M in a)m.Reflect[M]=a[M]}else m.Reflect=a})(typeof window!=="undefined"?window:typeof WorkerGlobalScope!=="undefined"?self:typeof global!=="undefined"?global:globalThis)})(Ehv||(Ehv={}));var BYE=function(){this.aborted=!1;this.onabort=null;this.target=document.createDocumentFragment?document.createDocumentFragment():document.createElement("div")};
BYE.prototype.addEventListener=function(a,z,I){this.target.addEventListener(a,z,I)};
BYE.prototype.removeEventListener=function(a,z,I){this.target.removeEventListener(a,z,I)};
BYE.prototype.dispatchEvent=function(a){if(this.onabort&&a.type==="abort")this.onabort(a);return this.target.dispatchEvent(a)};var ghe=function(){this.signal=new BYE};
ghe.prototype.abort=function(){if(!this.signal.aborted){this.signal.aborted=!0;var a=document.createEvent("Event");a.initEvent("abort",!1,!1);this.signal.dispatchEvent(a)}};var R6G=self;var OHO=[0,_.m7,_.kR,_.m7];var fao=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.GY(a)};
_.b(fao,_.ju);var Avi=_.tx(fao,[0,_.emd,_.MS,OHO,_.kR,_.YR]);_.rL(_.zX,_.FC);_.Z=_.zX.prototype;_.Z.start=function(){this.stop();this.usingListeners_=!1;var a=sXO(this),z=nhI(this);a&&!z&&this.JSC$11212_win_.mozRequestAnimationFrame?(this.JSC$11212_id_=_.Sg(this.JSC$11212_win_,"MozBeforePaint",this.callback_),this.JSC$11212_win_.mozRequestAnimationFrame(null),this.usingListeners_=!0):this.JSC$11212_id_=a&&z?a.call(this.JSC$11212_win_,this.callback_):this.JSC$11212_win_.setTimeout(tIl(this.callback_),20)};
_.Z.stop=function(){if(this.isActive()){var a=sXO(this),z=nhI(this);a&&!z&&this.JSC$11212_win_.mozRequestAnimationFrame?hj(this.JSC$11212_id_):a&&z?z.call(this.JSC$11212_win_,this.JSC$11212_id_):this.JSC$11212_win_.clearTimeout(this.JSC$11212_id_)}this.JSC$11212_id_=null};
_.Z.fire=function(){this.stop();this.JSC$11214_doAction_()};
_.Z.isActive=function(){return this.JSC$11212_id_!=null};
_.Z.JSC$11214_doAction_=function(){this.usingListeners_&&this.JSC$11212_id_&&hj(this.JSC$11212_id_);this.JSC$11212_id_=null;this.JSC$11212_listener_.call(this.handler_,_.JY())};
_.Z.disposeInternal=function(){this.stop();_.zX.superClass_.disposeInternal.call(this)};
var sXO=function(a){a=a.JSC$11212_win_;return a.requestAnimationFrame||a.webkitRequestAnimationFrame||a.mozRequestAnimationFrame||a.oRequestAnimationFrame||a.msRequestAnimationFrame||null},nhI=function(a){a=a.JSC$11212_win_;
return a.cancelAnimationFrame||a.cancelRequestAnimationFrame||a.webkitCancelRequestAnimationFrame||a.mozCancelRequestAnimationFrame||a.oCancelRequestAnimationFrame||a.msCancelRequestAnimationFrame||null};_.kc=function(a,z,I){_.FC.call(this);this.JSC$11215_listener_=I!=null?a.bind(I):a;this.JSC$11215_interval_=z;this.args_=null;this.shouldFire_=!1;this.pauseCount_=0;this.JSC$11215_timer_=null};
_.b(_.kc,_.FC);_.Z=_.kc.prototype;_.Z.fire=function(a){this.args_=arguments;this.JSC$11215_timer_||this.pauseCount_?this.shouldFire_=!0:K1I(this)};
_.Z.stop=function(){this.JSC$11215_timer_&&(_.IE.clearTimeout(this.JSC$11215_timer_),this.JSC$11215_timer_=null,this.shouldFire_=!1,this.args_=null)};
_.Z.pause=function(){this.pauseCount_++};
_.Z.resume=function(){this.pauseCount_--;this.pauseCount_||!this.shouldFire_||this.JSC$11215_timer_||(this.shouldFire_=!1,K1I(this))};
_.Z.disposeInternal=function(){_.FC.prototype.disposeInternal.call(this);this.stop()};
var K1I=function(a){a.JSC$11215_timer_=Sq(function(){a.JSC$11215_timer_=null;a.shouldFire_&&!a.pauseCount_&&(a.shouldFire_=!1,K1I(a))},a.JSC$11215_interval_);
var z=a.args_;a.args_=null;a.JSC$11215_listener_.apply(null,z)};var F1O=function(a,z){this.childIterator_=a[_.IE.Symbol.iterator]();this.mapFn_=z};
F1O.prototype[Symbol.iterator]=function(){return this};
F1O.prototype.next=function(){var a=this.childIterator_.next();return{value:a.done?void 0:this.mapFn_.call(void 0,a.value),done:a.done}};
var HHJ=function(a,z){return new F1O(a,z)};var bHo={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 FeG=function(a){var z=hVw(a);if(!z)throw Error("Pd`"+a);return z},hVw=function(a){var z={};
a=String(a);var I=a.charAt(0)=="#"?a:"#"+a;if(VtE.test(I))return z.hex=OKG(I),z.type="hex",z;I=VyM(a);return I.length?(z.hex=Jrm(I[0],I[1],I[2]),z.type="rgb",z):bHo&&(a=bHo[a.toLowerCase()])?(z.hex=a,z.type="named",z):null},QXX=/#(.)(.)(.)/,OKG=function(a){if(!VtE.test(a))throw Error("Rd`"+a);
a.length==4&&(a=a.replace(QXX,"#$1$1$2$2$3$3"));return a.toLowerCase()},HFp=function(a){a=OKG(a);
a=parseInt(a.slice(1),16);return[a>>16,a>>8&255,a&255]},Jrm=function(a,z,I){a=Number(a);
z=Number(z);I=Number(I);if(a!=(a&255)||z!=(z&255)||I!=(I&255))throw Error("Sd`"+a+"`"+z+"`"+I);z=a<<16|z<<8|I;return a<16?"#"+(16777216|z).toString(16).slice(1):"#"+z.toString(16)},VtE=/^#(?:[0-9a-f]{3}){1,2}$/i,SMX=/^(?:rgb)?\((0|[1-9]\d{0,2}),\s?(0|[1-9]\d{0,2}),\s?(0|[1-9]\d{0,2})\)$/i,VyM=function(a){var z=a.match(SMX);
if(z){a=Number(z[1]);var I=Number(z[2]);z=Number(z[3]);if(a>=0&&a<=255&&I>=0&&I<=255&&z>=0&&z<=255)return[a,I,z]}return[]};var iHo={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},s1=iHo;s1=iHo;var CU7,x1I,vhJ;CU7=function(a,z){switch(z){case 1:return a%4!=0||a%100==0&&a%400!=0?28:29;case 5:case 8:case 10:case 3:return 30}return 31};
x1I=function(a,z,I,J,r){a=new Date(a,z,I);r=r||0;return a.valueOf()+(((J!==void 0?J:3)-r+7)%7-((a.getDay()+6)%7-r+7)%7)*864E5};
_.iA=function(a,z,I){typeof a==="number"?(this.date=vhJ(a,z||0,I||1),Grj(this,I||1)):_.md(a)?(this.date=vhJ(a.getFullYear(),a.getMonth(),a.getDate()),Grj(this,a.getDate())):(this.date=new Date(_.JY()),a=this.date.getDate(),this.date.setHours(0),this.date.setMinutes(0),this.date.setSeconds(0),this.date.setMilliseconds(0),Grj(this,a))};
vhJ=function(a,z,I){z=new Date(a,z,I);a>=0&&a<100&&z.setFullYear(z.getFullYear()-1900);return z};
_.Z=_.iA.prototype;_.Z.firstDayOfWeek_=s1.FIRSTDAYOFWEEK;_.Z.firstWeekCutOffDay_=s1.FIRSTWEEKCUTOFFDAY;_.Z.clone=function(){var a=new _.iA(this.date);a.firstDayOfWeek_=this.firstDayOfWeek_;a.firstWeekCutOffDay_=this.firstWeekCutOffDay_;return a};
_.Z.getFullYear=function(){return this.date.getFullYear()};
_.Z.getYear=function(){return this.getFullYear()};
_.Z.getMonth=function(){return this.date.getMonth()};
_.Z.getDate=function(){return this.date.getDate()};
_.Z.getTime=function(){return this.date.getTime()};
_.Z.getDay=function(){return this.date.getDay()};
_.Z.getUTCFullYear=function(){return this.date.getUTCFullYear()};
_.Z.getUTCMonth=function(){return this.date.getUTCMonth()};
_.Z.getUTCDate=function(){return this.date.getUTCDate()};
_.Z.getUTCDay=function(){return this.date.getDay()};
_.Z.getUTCHours=function(){return this.date.getUTCHours()};
_.Z.getUTCMinutes=function(){return this.date.getUTCMinutes()};
_.Z.getTimezoneOffset=function(){return this.date.getTimezoneOffset()};
_.Z.set=function(a){this.date=new Date(a.getFullYear(),a.getMonth(),a.getDate())};
_.Z.setFullYear=function(a){this.date.setFullYear(a)};
_.Z.setYear=function(a){this.setFullYear(a)};
_.Z.setMonth=function(a){this.date.setMonth(a)};
_.Z.setDate=function(a){this.date.setDate(a)};
_.Z.setTime=function(a){this.date.setTime(a)};
_.Z.setUTCFullYear=function(a){this.date.setUTCFullYear(a)};
_.Z.setUTCMonth=function(a){this.date.setUTCMonth(a)};
_.Z.setUTCDate=function(a){this.date.setUTCDate(a)};
_.Z.add=function(a){if(a.years||a.months){var z=this.getMonth()+a.months+a.years*12,I=this.getYear()+Math.floor(z/12);z%=12;z<0&&(z+=12);var J=Math.min(CU7(I,z),this.getDate());this.setDate(1);this.setFullYear(I);this.setMonth(z);this.setDate(J)}a.days&&(I=this.getYear(),z=I>=0&&I<=99?-1900:0,a=new Date((new Date(I,this.getMonth(),this.getDate(),12)).getTime()+a.days*864E5),this.setDate(1),this.setFullYear(a.getFullYear()+z),this.setMonth(a.getMonth()),this.setDate(a.getDate()),Grj(this,a.getDate()))};
_.Z.JSC$11228_toIsoString=function(a){var z=this.getFullYear(),I=z<0?"-":z>=1E4?"+":"";return[I+_.Ic(Math.abs(z),I?6:4),_.Ic(this.getMonth()+1,2),_.Ic(this.getDate(),2)].join(a?"-":"")};
_.Z.equals=function(a){return!(!a||this.getYear()!=a.getYear()||this.getMonth()!=a.getMonth()||this.getDate()!=a.getDate())};
_.Z.toString=function(){return this.JSC$11228_toIsoString()};
var Grj=function(a,z){a.getDate()!=z&&a.date.setUTCHours(a.date.getUTCHours()+(a.getDate()<z?1:-1))};
_.iA.prototype.valueOf=function(){return this.date.valueOf()};var vG=function(a,z,I,J,r){this.reversed=!!z;this.node=null;this.tagType=0;this.started_=!1;this.constrained=!I;a&&xV(this,a,J);this.depth=r!=void 0?r:this.tagType||0;this.reversed&&(this.depth*=-1)};
_.rL(vG,NJ);var xV=function(a,z,I,J){if(a.node=z)a.tagType=typeof I==="number"?I:a.node.nodeType!=1?0:a.reversed?-1:1;typeof J==="number"&&(a.depth=J)};
_.Z=vG.prototype;_.Z.JSC$11243_copyFrom=function(a){this.node=a.node;this.tagType=a.tagType;this.depth=a.depth;this.reversed=a.reversed;this.constrained=a.constrained};
_.Z.clone=function(){return new vG(this.node,this.reversed,!this.constrained,this.tagType,this.depth)};
_.Z.next=function(){if(this.started_){if(!this.node||this.constrained&&this.depth==0)return tA;var a=this.node;var z=this.reversed?-1:1;if(this.tagType==z){var I=this.reversed?a.lastChild:a.firstChild;I?xV(this,I):xV(this,a,z*-1)}else(I=this.reversed?a.previousSibling:a.nextSibling)?xV(this,I):xV(this,a.parentNode,z*-1);this.depth+=this.tagType*(this.reversed?-1:1)}else this.started_=!0;return(a=this.node)?u_(a):tA};
_.Z.equals=function(a){return a.node==this.node&&(!this.node||a.tagType==this.tagType)};
_.Z.splice=function(a){var z=this.node,I=this.reversed?1:-1;this.tagType==I&&(this.tagType=I*-1,this.depth+=this.tagType*(this.reversed?-1:1));this.reversed=!this.reversed;vG.prototype.next.call(this);this.reversed=!this.reversed;I=_.lG(arguments[0])?arguments[0]:arguments;for(var J=I.length-1;J>=0;J--)_.XO(I[J],z);_.fo(z)};var $1w=function(){},GS=function(a){for(var z=[],I=a.getTextRangeCount(),J=0;J<I;J++)z.push(a.getTextRange(J));
return z};
$1w.prototype.isReversed=function(){return!1};
$1w.prototype.getWindow=function(){return $8(_.Xm(this.JSC$11245_getStartNode()))};
var XhX=function(a,z){vG.call(this,a,z,!0)};
_.rL(XhX,vG);var $V=function(a,z,I,J,r){this.endNode_=this.startNode_=null;this.endOffset_=this.startOffset_=0;this.isReversed_=!!r;if(a){this.startNode_=a;this.startOffset_=z;this.endNode_=I;this.endOffset_=J;if(a.nodeType==1&&a.tagName!="BR")if(a=a.childNodes,z=a[z])this.startNode_=z,this.startOffset_=0;else{a.length&&(this.startNode_=_.G3(a));var P=!0}I.nodeType==1&&((this.endNode_=I.childNodes[J])?this.endOffset_=0:this.endNode_=I)}vG.call(this,this.isReversed_?this.endNode_:this.startNode_,this.isReversed_,
!0);P&&this.next()};
_.rL($V,XhX);_.Z=$V.prototype;_.Z.JSC$11251_getStartNode=function(){return this.startNode_};
_.Z.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)};
_.Z.next=function(){return this.isLast()?tA:$V.superClass_.next.call(this)};
_.Z.JSC$11243_copyFrom=function(a){this.startNode_=a.startNode_;this.endNode_=a.endNode_;this.startOffset_=a.startOffset_;this.endOffset_=a.endOffset_;this.isReversed_=a.isReversed_;$V.superClass_.JSC$11243_copyFrom.call(this,a)};
_.Z.clone=function(){var a=new $V(this.startNode_,this.startOffset_,this.endNode_,this.endOffset_,this.isReversed_);a.JSC$11243_copyFrom(this);return a};var TYo=function(){};
TYo.prototype.__iterator__=function(){return new $V(this.range_.startContainer,this.range_.startOffset,this.range_.endContainer,this.range_.endOffset)};var Xq=function(a){this.range_=a};
_.rL(Xq,TYo);var d1G=function(a){var z=_.Xm(a).createRange();if(a.nodeType==3)z.setStart(a,0),z.setEnd(a,a.length);else if(vr(a)||a.nodeType==3){for(var I,J=a;(I=J.firstChild)&&(vr(I)||I.nodeType==3);)J=I;z.setStart(J,0);for(J=a;(I=J.lastChild)&&(vr(I)||I.nodeType==3);)J=I;z.setEnd(J,J.nodeType==1?J.childNodes.length:J.length)}else I=a.parentNode,a=Array.prototype.indexOf.call(I.childNodes,a),z.setStart(I,a),z.setEnd(I,a+1);return z},W1o=function(a,z,I,J){var r=_.Xm(a).createRange();
r.setStart(a,z);r.setEnd(I,J);return r};
_.Z=Xq.prototype;_.Z.clone=function(){return new this.constructor(this.range_.cloneRange())};
_.Z.getContainer=function(){return this.range_.commonAncestorContainer};
_.Z.compareBrowserRangeEndpoints=function(a,z,I){return this.range_.compareBoundaryPoints(I==1?z==1?_.IE.Range.START_TO_START:_.IE.Range.START_TO_END:z==1?_.IE.Range.END_TO_START:_.IE.Range.END_TO_END,a)};
_.Z.isCollapsed=function(){return this.range_.collapsed};
_.Z.select=function(a){this.selectInternal($8(_.Xm(this.range_.startContainer)).getSelection(),a)};
_.Z.selectInternal=function(a){a.removeAllRanges();a.addRange(this.range_)};
_.Z.insertNode=function(a,z){var I=this.range_.cloneRange();I.collapse(z);I.insertNode(a);I.detach();return a};
_.Z.collapse=function(a){this.range_.collapse(a)};_.rL(IA,Xq);IA.prototype.selectInternal=function(a,z){!z||this.isCollapsed()?IA.superClass_.selectInternal.call(this,a,z):(a.collapse(this.range_.endContainer,this.range_.endOffset),a.extend(this.range_.startContainer,this.range_.startOffset))};_.rL(J$,Xq);J$.prototype.compareBrowserRangeEndpoints=function(a,z,I){return J$.superClass_.compareBrowserRangeEndpoints.call(this,a,z,I)};
J$.prototype.selectInternal=function(a,z){z?a.setBaseAndExtent(this.range_.endContainer,this.range_.endOffset,this.range_.startContainer,this.range_.startOffset):a.setBaseAndExtent(this.range_.startContainer,this.range_.startOffset,this.range_.endContainer,this.range_.endOffset)};var ohJ=function(a){return _.ue?new J$(a):_.tY?new IA(a):new Xq(a)};var TS=function(){this.endOffset_=this.endNode_=this.startOffset_=this.startNode_=this.browserRangeWrapper_=null;this.isReversed_=!1},U1E;
_.rL(TS,$1w);U1E=function(a,z){var I=new TS;I.browserRangeWrapper_=a;I.isReversed_=!!z;return I};
_.D1l=function(a){a=_.ue?new J$(d1G(a)):_.tY?new IA(d1G(a)):new Xq(d1G(a));return U1E(a)};
_.dn=function(a,z,I,J){var r=new TS;r.isReversed_=RVX(a,z,I,J);if(_.cL(a)&&!vr(a)){var P=a.parentNode;z=Array.prototype.indexOf.call(P.childNodes,a);a=P}_.cL(I)&&!vr(I)&&(P=I.parentNode,J=Array.prototype.indexOf.call(P.childNodes,I),I=P);r.isReversed_?(r.startNode_=I,r.startOffset_=J,r.endNode_=a,r.endOffset_=z):(r.startNode_=a,r.startOffset_=z,r.endNode_=I,r.endOffset_=J);return r};
_.Z=TS.prototype;_.Z.clone=function(){var a=new TS;a.browserRangeWrapper_=this.browserRangeWrapper_&&this.browserRangeWrapper_.clone();a.startNode_=this.startNode_;a.startOffset_=this.startOffset_;a.endNode_=this.endNode_;a.endOffset_=this.endOffset_;a.isReversed_=this.isReversed_;return a};
_.Z.JSC$11245_getType=function(){return"text"};
_.Z.getBrowserRangeObject=function(){return WG(this).range_};
_.Z.getTextRangeCount=function(){return 1};
_.Z.getTextRange=function(){return this};
var WG=function(a){var z;if(!(z=a.browserRangeWrapper_)){z=a.JSC$11245_getStartNode();var I=a.JSC$11245_getStartOffset(),J=a.JSC$11245_getEndNode(),r=a.JSC$11245_getEndOffset();z=_.ue?new J$(W1o(z,I,J,r)):_.tY?new IA(W1o(z,I,J,r)):new Xq(W1o(z,I,J,r));z=a.browserRangeWrapper_=z}return z};
_.Z=TS.prototype;_.Z.getContainer=function(){return WG(this).getContainer()};
_.Z.JSC$11245_getStartNode=function(){return this.startNode_||(this.startNode_=WG(this).range_.startContainer)};
_.Z.JSC$11245_getStartOffset=function(){return this.startOffset_!=null?this.startOffset_:this.startOffset_=WG(this).range_.startOffset};
_.Z.JSC$11245_getEndNode=function(){return this.endNode_||(this.endNode_=WG(this).range_.endContainer)};
_.Z.JSC$11245_getEndOffset=function(){return this.endOffset_!=null?this.endOffset_:this.endOffset_=WG(this).range_.endOffset};
_.Z.isReversed=function(){return this.isReversed_};
_.Z.JSC$11245_containsRange=function(a,z){if(a.JSC$11245_getType()=="text"){var I=WG(this);a=WG(a);z=z&&!a.isCollapsed();a=a.range_;I=z?I.compareBrowserRangeEndpoints(a,0,1)>=0&&I.compareBrowserRangeEndpoints(a,1,0)<=0:I.compareBrowserRangeEndpoints(a,0,0)>=0&&I.compareBrowserRangeEndpoints(a,1,1)<=0}else I=!1;return I};
_.Z.isCollapsed=function(){return WG(this).isCollapsed()};
_.Z.JSC$11245_getText=function(){return WG(this).range_.toString()};
_.Z.__iterator__=function(){return new $V(this.JSC$11245_getStartNode(),this.JSC$11245_getStartOffset(),this.JSC$11245_getEndNode(),this.JSC$11245_getEndOffset())};
_.Z.select=function(){WG(this).select(this.isReversed_)};
_.Z.JSC$11245_removeContents=function(){var a=WG(this).range_;a.extractContents();if(a.startContainer.hasChildNodes()&&(a=a.startContainer.childNodes[a.startOffset])){var z=a.previousSibling;C0w(a)==""&&_.fo(a);z&&C0w(z)==""&&_.fo(z)}this.startNode_=this.startOffset_=this.endNode_=this.endOffset_=null};
_.Z.insertNode=function(a,z){a=WG(this).insertNode(a,z);this.startNode_=this.startOffset_=this.endNode_=this.endOffset_=null;return a};
_.Z.collapse=function(a){a=this.isReversed()?!a:a;this.browserRangeWrapper_&&this.browserRangeWrapper_.collapse(a);a?(this.endNode_=this.startNode_,this.endOffset_=this.startOffset_):(this.startNode_=this.endNode_,this.startOffset_=this.endOffset_);this.isReversed_=!1};var L1J=function(){};
_.rL(L1J,$1w);L1J.prototype.JSC$11245_containsRange=function(a,z){var I=GS(this);a=GS(a);return(z?yE:_.rrp)(a,function(J){return yE(I,function(r){return r.JSC$11245_containsRange(J,z)})})};
L1J.prototype.insertNode=function(a,z){z?_.$B(a,this.JSC$11245_getStartNode()):_.XO(a,this.JSC$11245_getEndNode());return a};var laX,phl=nB().JSC$9284_document_.documentElement;laX=phl.requestFullscreen?"fullscreenchange":phl.webkitRequestFullscreen?"webkitfullscreenchange":phl.mozRequestFullScreen?"mozfullscreenchange":phl.msRequestFullscreen?"MSFullscreenChange":"fullscreenchange";var whI=function(){var a=nB().JSC$9284_document_;return!!(a.webkitIsFullScreen||a.mozFullScreen||a.msFullscreenElement||a.fullscreenElement)};var oo=function(){this.browserRanges_=[];this.ranges_=[];this.container_=this.sortedRanges_=null};
_.rL(oo,L1J);_.Z=oo.prototype;_.Z.clone=function(){var a=new oo;a.browserRanges_=_.RE(this.browserRanges_);return a};
_.Z.JSC$11245_getType=function(){return"mutli"};
_.Z.getBrowserRangeObject=function(){return this.browserRanges_[0]};
_.Z.getTextRangeCount=function(){return this.browserRanges_.length};
_.Z.getTextRange=function(a){this.ranges_[a]||(this.ranges_[a]=U1E(ohJ(this.browserRanges_[a])));return this.ranges_[a]};
_.Z.getContainer=function(){if(!this.container_){for(var a=[],z=this.getTextRangeCount(),I=0;I<z;I++)a.push(this.getTextRange(I).getContainer());this.container_=jZi.apply(null,a)}return this.container_};
var UH=function(a){a.sortedRanges_||(a.sortedRanges_=GS(a),a.sortedRanges_.sort(function(z,I){var J=z.JSC$11245_getStartNode();z=z.JSC$11245_getStartOffset();var r=I.JSC$11245_getStartNode();I=I.JSC$11245_getStartOffset();return J==r&&z==I?0:RVX(J,z,r,I)?1:-1}));
return a.sortedRanges_};
_.Z=oo.prototype;_.Z.JSC$11245_getStartNode=function(){return UH(this)[0].JSC$11245_getStartNode()};
_.Z.JSC$11245_getStartOffset=function(){return UH(this)[0].JSC$11245_getStartOffset()};
_.Z.JSC$11245_getEndNode=function(){return _.G3(UH(this)).JSC$11245_getEndNode()};
_.Z.JSC$11245_getEndOffset=function(){return _.G3(UH(this)).JSC$11245_getEndOffset()};
_.Z.isCollapsed=function(){return this.browserRanges_.length==0||this.browserRanges_.length==1&&this.getTextRange(0).isCollapsed()};
_.Z.JSC$11245_getText=function(){return GS(this).map(function(a){return a.JSC$11245_getText()}).join("")};
_.Z.__iterator__=function(){return new D4(this)};
_.Z.select=function(){var a=this.getWindow().getSelection();a.removeAllRanges();for(var z=this.getTextRangeCount(),I=0;I<z;I++)a.addRange(this.getTextRange(I).getBrowserRangeObject())};
_.Z.JSC$11245_removeContents=function(){GS(this).forEach(function(a){a.JSC$11245_removeContents()})};
_.Z.collapse=function(a){if(!this.isCollapsed()){var z=a?this.getTextRange(0):this.getTextRange(this.getTextRangeCount()-1);this.ranges_=[];this.container_=this.sortedRanges_=null;z.collapse(a);this.ranges_=[z];this.sortedRanges_=[z];this.browserRanges_=[z.getBrowserRangeObject()]}};
var D4=function(a){this.iterators_=null;this.currentIdx_=0;a&&(this.iterators_=UH(a).map(function(z){return _.CaI(z)}));
vG.call(this,a?this.JSC$11251_getStartNode():null,!1,!0)};
_.rL(D4,XhX);_.Z=D4.prototype;_.Z.JSC$11251_getStartNode=function(){return this.iterators_[0].JSC$11251_getStartNode()};
_.Z.isLast=function(){return this.iterators_[this.currentIdx_].isLast()};
_.Z.next=function(){for(;this.currentIdx_<this.iterators_.length;){var a=this.iterators_[this.currentIdx_],z=a.next();if(z.done)this.currentIdx_++;else return xV(this,a.node,a.tagType,a.depth),z}return tA};
_.Z.JSC$11243_copyFrom=function(a){this.iterators_=_.RE(a.iterators_);D4.superClass_.JSC$11243_copyFrom.call(this,a)};
_.Z.clone=function(){var a=new D4(null);a.JSC$11243_copyFrom(this);return a};var m1I,RVX;_.B0=function(){var a=window.getSelection();return a&&m1I(a)};
m1I=function(a){var z=!1;if(a.createRange)try{var I=a.createRange()}catch(r){return null}else if(a.rangeCount){if(a.rangeCount>1){I=new oo;z=a.rangeCount;for(var J=0;J<z;J++)I.browserRanges_.push(a.getRangeAt(J));return I}I=a.getRangeAt(0);z=RVX(a.anchorNode,a.anchorOffset,a.focusNode,a.focusOffset)}else return null;return U1E(ohJ(I),z)};
_.Ro=function(a,z){return _.dn(a,z,a,z)};
_.Le=function(a,z,I,J){return _.dn(a,z,I,J)};
RVX=function(a,z,I,J){if(a==I)return J<z;var r;if(a.nodeType==1&&z)if(r=a.childNodes[z])a=r,z=0;else if(_.of(a,I))return!0;if(I.nodeType==1&&J)if(r=I.childNodes[J])I=r,J=0;else if(_.of(I,a))return!1;return(aEO(a,I)||z-J)>0};var lA=function(){_.HV.call(this);this.reader_=new FileReader;this.reader_.onloadstart=(0,_.HW)(this.dispatchProgressEvent_,this);this.reader_.onprogress=(0,_.HW)(this.dispatchProgressEvent_,this);this.reader_.onload=(0,_.HW)(this.dispatchProgressEvent_,this);this.reader_.onabort=(0,_.HW)(this.dispatchProgressEvent_,this);this.reader_.onerror=(0,_.HW)(this.dispatchProgressEvent_,this);this.reader_.onloadend=(0,_.HW)(this.dispatchProgressEvent_,this)};
_.rL(lA,_.HV);lA.prototype.abort=function(){try{this.reader_.abort()}catch(a){throw new N2X(a,"aborting read");}};
lA.prototype.getError=function(){return this.reader_.error&&new N2X(this.reader_.error,"reading file")};
lA.prototype.dispatchProgressEvent_=function(a){this.dispatchEvent(new tFw(a,this))};
lA.prototype.disposeInternal=function(){lA.superClass_.disposeInternal.call(this);delete this.reader_};
var kre=function(a){var z=new lA,I=yvX(z);z.reader_.readAsArrayBuffer(a);return I},Mtj=function(a){var z=new lA,I=yvX(z);
z.reader_.readAsDataURL(a);return I},yvX=function(a){var z=new yD;
a.listen("loadend",_.nt(function(I,J){var r=J.reader_.result,P=J.getError();r==null||P?I.errback(P):I.callback(r);J.dispose()},z,a));
return z};var pe=function(){_.HV.call(this);this.hysteresisDistance_=0;this.dragLists_=[];this.dragItems_=[];this.dragItemForHandle_={};this.JSC$11285_eventHandler_=new _.PJ(this);this.JSC$11285_isInitialized_=!1};
_.rL(pe,_.HV);var cv1=new _.fp("d"),YMw=new _.fp("beforedragstart"),qMv=new _.fp("dragstart"),eVI=new _.fp("beforedragmove"),aLX=new _.fp("dragmove"),jQJ=new _.fp("beforedragend"),zwv=new _.fp("dragend"),ILE=new _.fp("e");pe.prototype.isDragging=function(){return!!this.JSC$11285_dragger_};
var J3o=function(a,z){z.dlgGrowthDirection_=0;z.dlgDragHoverClass_=void 0;z.dlgDragPermission=0;a.dragLists_.push(z)},r3e=function(a,z){a.getHandleForDragItem_=z};
pe.prototype.init=function(){if(!this.JSC$11285_isInitialized_){for(var a=this.dragLists_.length,z=0;z<a;z++)for(var I=_.T2(this.dragLists_[z]),J=I.length,r=0;r<J;++r){var P=I[r],N=this.getHandleForDragItem_(P),u=_.yx(N);this.dragItemForHandle_[u]=P;this.dragItemHoverClasses_&&(this.JSC$11285_eventHandler_.listen(P,"mouseover",this.handleDragItemMouseover_),this.JSC$11285_eventHandler_.listen(P,"mouseout",this.handleDragItemMouseout_));this.dragItemHandleHoverClasses_&&(this.JSC$11285_eventHandler_.listen(N,
"mouseover",this.handleDragItemHandleMouseover_),this.JSC$11285_eventHandler_.listen(N,"mouseout",this.handleDragItemHandleMouseout_));this.dragItems_.push(P);this.JSC$11285_eventHandler_.listen(N,["mousedown","touchstart"],this.handlePotentialDragStart_)}this.JSC$11285_isInitialized_=!0}};
pe.prototype.disposeInternal=function(){this.JSC$11285_eventHandler_.dispose();for(var a=this.dragLists_.length,z=0;z<a;z++){var I=this.dragLists_[z];I.dlgGrowthDirection_=void 0;I.dlgDragHoverClass_=void 0}this.dragLists_.length=0;this.dragItems_.length=0;this.dragItemForHandle_=null;PKG(this);pe.superClass_.disposeInternal.call(this)};
var ZMi=function(a,z){for(var I=a.dragLists_.length,J=0;J<I;J++){var r=a.dragLists_[J];r.dlgBounds_=xHI(r)}I=a.dragItems_.length;for(J=0;J<I;J++)r=a.dragItems_[J],r!=z&&(r.dlgBounds_=xHI(r))};
_.Z=pe.prototype;
_.Z.handlePotentialDragStart_=function(a){var z=_.yx(a.currentTarget);z=this.dragItemForHandle_[z];if(z.parentElement.dlgDragPermission!=2){this.currDragItem_=z;a:{z=this.currDragItem_;for(var I=z.cloneNode(!0),J=A7("TEXTAREA",z),r=A7("TEXTAREA",I),P=0;P<J.length;P++)r[P].value=J[P].value;switch(z.tagName){case "TR":z=_.i3("TABLE",null,_.i3("TBODY",null,I));break a;case "TD":case "TH":z=_.i3("TABLE",null,_.i3("TBODY",null,_.i3("TR",null,I)));break a;case "TEXTAREA":I.value=z.value;default:z=I;break a}z=
void 0}this.draggerEl_=z;this.draggerElClasses_&&wZ(this.draggerEl_,this.draggerElClasses_||[]);this.draggerEl_.style.margin="0";this.draggerEl_.style.position="absolute";this.draggerEl_.style.visibility="hidden";_.Xm(this.currDragItem_).body.appendChild(this.draggerEl_);I=_.TB(this.currDragItem_);z=this.draggerEl_;J=_.TB(z);if(I instanceof _.GB){var N=I.y;I=I.x}Du(z,z.offsetLeft+(I-J.x),z.offsetTop+(Number(N)-J.y));this.JSC$11285_dragger_=new _.U5(this.draggerEl_);_.CPO(this.JSC$11285_dragger_,this.hysteresisDistance_);
_.Sg(this.JSC$11285_dragger_,"start",this.handleDragStart_,!1,this);_.Sg(this.JSC$11285_dragger_,"end",this.handleDragEnd_,!1,this);_.Sg(this.JSC$11285_dragger_,"earlycancel",this.JSC$11287_cleanup_,!1,this);this.dispatchEvent(new wn(cv1,this,a,this.currDragItem_,this.draggerEl_,this.JSC$11285_dragger_));this.JSC$11285_dragger_.startDrag(a)}};
_.Z.handleDragStart_=function(a){if(this.dispatchEvent(new wn(YMw,this,a.browserEvent,this.currDragItem_,null,null))){this.origList_=this.currDragItem_.parentNode;this.origNextItem_=_.YOw(this.currDragItem_);this.currHoverList_=this.origList_;this.currDragItemClasses_?wZ(this.currDragItem_,this.currDragItemClasses_||[]):this.currDragItem_.style.visibility="hidden";var z=gZf(this.draggerEl_);this.draggerEl_.halfWidth=z.width/2;this.draggerEl_.halfHeight=z.height/2;z=this.draggerEl_.getBoundingClientRect();
var I=a.clientY,J=Now(this.JSC$11285_dragger_,a.clientX);if(J>z.right){var r=this.currDragItem_.getBoundingClientRect();this.JSC$11285_dragger_.deltaX=J-(J-r.left)/r.width*z.width}I=tpJ(this.JSC$11285_dragger_,I);I>z.bottom&&(this.JSC$11285_dragger_.deltaY+=I-z.bottom);this.draggerEl_.style.visibility="";this.currDragItem_.style.display="none";ZMi(this,this.currDragItem_);this.currDragItem_.style.display="";_.Sg(this.JSC$11285_dragger_,"drag",this.handleDragMove_,!1,this);this.dispatchEvent(new wn(qMv,
this,a.browserEvent,this.currDragItem_,this.draggerEl_,this.JSC$11285_dragger_))}else a.preventDefault(),this.JSC$11287_cleanup_()};
_.Z.handleDragMove_=function(a){var z=_.TB(this.draggerEl_);z=new _.GB(z.x+this.draggerEl_.halfWidth,z.y+this.draggerEl_.halfHeight);a:{var I=null;if(this.currDragItem_.style.display!="none"){I=this.currDragItem_.parentNode;var J=xHI(I);if(CKI(z,J))break a}J=this.dragLists_.length;for(var r=0;r<J;r++){var P=this.dragLists_[r];if(P!=I&&CKI(z,P.dlgBounds_)){I=P;break a}}I=null}if(I){if(I==null)throw Error("Td");J=0;r=!1;P=void 0;switch(I.dlgGrowthDirection_){case 0:J=z.y;var N=Nzf;var u=tco;break;case 4:r=
!0;case 2:J=z.x;N=uew;u=tco;break;case 5:r=!0;case 3:J=z.x,N=Eie,u=Bzo}for(var E=null,O,f=_.T2(I),A=f.length,n=0;n<A;n++){var F=f[n];if(F!=this.currDragItem_){var h=N(F.dlgBounds_);if(r){var v=gil(F,z);P===void 0&&(P=v);u(J,h)&&(O==void 0||v<P||v==P&&(u(h,O)||h==O))&&(E=F,O=h);v<P&&(P=v)}else u(J,h)&&(O==void 0||u(h,O))&&(E=F,O=h)}}N=E!==null&&gil(E,z)>P?null:E}else N=null;if(!this.dispatchEvent(new wn(eVI,this,a,this.currDragItem_,this.draggerEl_,this.JSC$11285_dragger_,z,I,N)))return!1;if(I&&I.dlgDragPermission!=
1)this.currDragItem_.parentNode==I&&_.YOw(this.currDragItem_)==N||I.insertBefore(this.currDragItem_,N),this.currDragItem_.style.display="",I.dlgDragHoverClass_&&_.eg(I,I.dlgDragHoverClass_);else for(this.currDragItem_.style.display="none",u=this.dragLists_.length,O=0;O<u;O++)J=this.dragLists_[O],J.dlgDragHoverClass_&&_.YN(J,J.dlgDragHoverClass_);I!=this.currHoverList_&&(this.currHoverList_=I,ZMi(this,this.currDragItem_));this.dispatchEvent(new wn(aLX,this,a,this.currDragItem_,this.draggerEl_,this.JSC$11285_dragger_,
z,I,N));return!1};
_.Z.JSC$11287_cleanup_=function(){PKG(this);this.JSC$11285_dragger_=this.draggerEl_=this.origNextItem_=this.origList_=this.currHoverList_=this.currDragItem_=null;for(var a=this.dragLists_.length,z=0;z<a;z++)this.dragLists_[z].dlgBounds_=null;a=this.dragItems_.length;for(z=0;z<a;z++)this.dragItems_[z].dlgBounds_=null};
_.Z.handleDragEnd_=function(a){if(!this.dispatchEvent(new wn(jQJ,this,a,this.currDragItem_,this.draggerEl_,this.JSC$11285_dragger_)))return!1;PKG(this);this.dispatchEvent(new wn(zwv,this,a,this.currDragItem_,this.draggerEl_,this.JSC$11285_dragger_));this.JSC$11287_cleanup_();return!0};
var PKG=function(a){_.Y8(a.JSC$11285_dragger_);var z=a.draggerEl_&&a.draggerEl_.parentElement;a.draggerEl_&&_.fo(a.draggerEl_);a.currDragItem_&&a.currDragItem_.style.display=="none"&&(a.origList_.insertBefore(a.currDragItem_,a.origNextItem_),a.currDragItem_.style.display="");a.currDragItemClasses_&&a.currDragItem_?PF1(a.currDragItem_,a.currDragItemClasses_||[]):a.currDragItem_&&(a.currDragItem_.style.visibility="");for(var I=a.dragLists_.length,J=0;J<I;J++){var r=a.dragLists_[J];r.dlgDragHoverClass_&&
_.YN(r,r.dlgDragHoverClass_)}z&&a.dispatchEvent(new wn(ILE,a,null,a.currDragItem_,a.draggerEl_,a.JSC$11285_dragger_))};
_.Z=pe.prototype;_.Z.getHandleForDragItem_=function(a){return a};
_.Z.handleDragItemMouseover_=function(a){wZ(a.currentTarget,this.dragItemHoverClasses_||[])};
_.Z.handleDragItemMouseout_=function(a){PF1(a.currentTarget,this.dragItemHoverClasses_||[])};
_.Z.handleDragItemHandleMouseover_=function(a){wZ(a.currentTarget,this.dragItemHandleHoverClasses_||[])};
_.Z.handleDragItemHandleMouseout_=function(a){PF1(a.currentTarget,this.dragItemHandleHoverClasses_||[])};
var CKI=function(a,z){return a.x>z.left&&a.x<z.left+z.width&&a.y>z.top&&a.y<z.top+z.height},gil=function(a,z){a=a.dlgBounds_;
return Math.abs(z.y-(a.top+(a.height-1)/2))},Nzf=function(a){return a.top+a.height-1},uew=function(a){return a.left+a.width-1},Eie=function(a){return a.left||0},tco=function(a,z){return a<z},Bzo=function(a,z){return a>z},wn=function(a,z,I,J,r,P){_.AH.call(this,a);
this.event=I;this.currDragItem=J;this.draggerEl=r;this.JSC$11289_dragger=P};
_.rL(wn,_.AH);_.rL(Z1,_.FC);var OMi=new _.GB(0,0);Z1.prototype.JSC$11293_onTick_=function(){this.containerNode_.scrollTop+=this.scrollDelta_.y;this.containerNode_.scrollLeft+=this.scrollDelta_.x};
Z1.prototype.JSC$11293_onMouseMove=function(a){var z=this.containerIsActuallyContent_?OMi:sh(nB(this.containerNode_)),I=this.horizontalScrolling_?this.calculateScrollDelta(a.clientX+z.x,this.scrollBounds_.left,this.scrollBounds_.width):0,J=this.calculateScrollDelta(a.clientY+z.y,this.scrollBounds_.top,this.scrollBounds_.height);this.scrollDelta_.x=I;this.scrollDelta_.y=J;!(I=!I&&!J)&&(I=this.constrainScroll_)&&(I=a.clientX+z.x,a=a.clientY+z.y,z=this.containerBounds_,I=!(z.left<=I&&z.left+z.width>=
I&&z.top<=a&&z.top+z.height>=a));I?this.scrollTimer_.stop():this.scrollTimer_.enabled||this.scrollTimer_.start()};
Z1.prototype.calculateScrollDelta=function(a,z,I){var J=0;a<z?J=-8:a>z+I&&(J=8);return J};
Z1.prototype.disposeInternal=function(){Z1.superClass_.disposeInternal.call(this);this.JSC$11291_eventHandler_.dispose();this.scrollTimer_.dispose()};var fLv={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"}}},mU=fLv;mU=fLv;var y1={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 A3i=function(){},mH=function(a){if(typeof a=="number"){var z=new A3i;
z.standardOffset_=a;var I=a;if(I==0)I="Etc/GMT";else{var J=["Etc/GMT",I<0?"-":"+"];I=Math.abs(I);J.push(Math.floor(I/60)%100);I%=60;I!=0&&J.push(":",_.Ic(I,2));I=J.join("")}z.timeZoneId_=I;I=a;I==0?I="UTC":(J=["UTC",I<0?"+":"-"],I=Math.abs(I),J.push(Math.floor(I/60)%100),I%=60,I!=0&&J.push(":",I),I=J.join(""));a=sQv(a);z.tzNames_=[I,I];z.tzNamesExt_={STD_LONG_NAME_GMT:a,STD_GENERIC_LOCATION:a};z.transitions_=[];return z}z=new A3i;z.timeZoneId_=a.id;z.standardOffset_=-a.std_offset;z.tzNames_=a.names;
z.tzNamesExt_=a.names_ext;z.transitions_=a.transitions;return z},sQv=function(a){var z=["GMT"];
z.push(a<=0?"+":"-");a=Math.abs(a);z.push(_.Ic(Math.floor(a/60)%100,2),":",_.Ic(a%60,2));return z.join("")},nil=function(a,z){z=Date.UTC(z.getUTCFullYear(),z.getUTCMonth(),z.getUTCDate(),z.getUTCHours(),z.getUTCMinutes())/36E5;
for(var I=0;I<a.transitions_.length&&z>=a.transitions_[I];)I+=2;return I==0?0:a.transitions_[I-1]},KZO=function(a,z){a=a.standardOffset_-nil(a,z);
return a===-1440?0:a};var yC=function(a,z){this.patternParts_=[];this.JSC$11304_dateTimeSymbols_=z||s1;typeof a=="number"?FZj(this,a):HMl(this,a)},bMf=[/^'(?:[^']|'')*('|$)/,
/^(?: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]+/],kV=function(a){return a.getHours?a.getHours():0},HMl=function(a,z){for(QDd&&(z=z.replace(/\u200f/g,""));z;){for(var I=z,J=0;J<bMf.length;++J){var r=z.match(bMf[J]);
if(r){var P=r[0];z=z.substring(P.length);J==0&&(P=="''"?P="'":(P=P.substring(1,r[1]=="'"?P.length-1:P.length),P=P.replace(/''/g,"'")));a.patternParts_.push({text:P,type:J});break}}if(I===z)throw Error("Ud`"+z);}};
yC.prototype.format=function(a,z){if(!a)throw Error("Vd");var I=z?(a.getTimezoneOffset()-KZO(z,a))*6E4:0,J=I?new Date(a.getTime()+I):a,r=J;z&&J.getTimezoneOffset()!=a.getTimezoneOffset()&&(J=new Date(J.getTime()+(J.getTimezoneOffset()-a.getTimezoneOffset())*6E4),r=new Date(a.getTime()+(I+(I>0?-864E5:864E5))));I=[];for(var P=0;P<this.patternParts_.length;++P){var N=this.patternParts_[P].text;1==this.patternParts_[P].type?I.push(hwO(this,N,a,J,r,z)):I.push(N)}return I.join("")};
var FZj=function(a,z){if(z<4)var I=a.JSC$11304_dateTimeSymbols_.DATEFORMATS[z];else if(z<8)I=a.JSC$11304_dateTimeSymbols_.TIMEFORMATS[z-4];else if(z<12)I=a.JSC$11304_dateTimeSymbols_.DATETIMEFORMATS[z-8],I=I.replace("{1}",a.JSC$11304_dateTimeSymbols_.DATEFORMATS[z-8]),I=I.replace("{0}",a.JSC$11304_dateTimeSymbols_.TIMEFORMATS[z-8]);else if(z===12)I=a.JSC$11304_dateTimeSymbols_.DATEFORMATS[0].replace(/[^EMd]*yy*[^EMd]*/,"");else if(z===13)I=a.JSC$11304_dateTimeSymbols_.DATEFORMATS[2].replace(/[^EMd]*yy*[^EMd]*/,
"");else{FZj(a,10);return}HMl(a,I)},Mg=function(a,z){z=String(z);
a=a.JSC$11304_dateTimeSymbols_||s1;if(a.ZERODIGIT!==void 0&&!VPM){for(var I=[],J=0;J<z.length;J++){var r=z.charCodeAt(J);I.push(48<=r&&r<=57?String.fromCharCode(a.ZERODIGIT+r-48):z.charAt(J))}z=I.join("")}return z},VPM=!1,QDd=!1,QQo=function(a,z,I,J){I=I.getFullYear();
I<=0&&J&&(I=1-I);return Mg(a,Vcj(I,z))},Vcj=function(a,z){z==2&&(a%=100);
a<0&&z++;return _.Ic(a,z)},cG=function(a){if(!(a.getHours&&a.getSeconds&&a.getMinutes))throw Error("Wd");
},S8E=function(a,z){cG(z);
z=kV(z);return a.JSC$11304_dateTimeSymbols_.AMPMS[z>=12&&z<24?1:0]},hwO=function(a,z,I,J,r,P){var N=z.length;
switch(z.charAt(0)){case "G":return I=J.getFullYear()>0?1:0,N>=4?a.JSC$11304_dateTimeSymbols_.ERANAMES[I]:a.JSC$11304_dateTimeSymbols_.ERAS[I];case "y":return QQo(a,N,J,!0);case "Y":return I=(new Date(x1I(J.getFullYear(),J.getMonth(),J.getDate(),a.JSC$11304_dateTimeSymbols_.FIRSTWEEKCUTOFFDAY,a.JSC$11304_dateTimeSymbols_.FIRSTDAYOFWEEK))).getFullYear(),N==2&&(I%=100),Mg(a,Vcj(I,N));case "u":return QQo(a,N,J,!1);case "M":a:switch(I=J.getMonth(),N){case 5:N=a.JSC$11304_dateTimeSymbols_.NARROWMONTHS[I];
break a;case 4:N=a.JSC$11304_dateTimeSymbols_.MONTHS[I];break a;case 3:N=a.JSC$11304_dateTimeSymbols_.SHORTMONTHS[I];break a;default:N=Mg(a,_.Ic(I+1,N))}return N;case "k":return cG(r),Mg(a,_.Ic(kV(r)||24,N));case "S":return Mg(a,(r.getMilliseconds()/1E3).toFixed(Math.min(3,N)).slice(2)+(N>3?_.Ic(0,N-3):""));case "E":return I=J.getDay(),N>=4?a.JSC$11304_dateTimeSymbols_.WEEKDAYS[I]:a.JSC$11304_dateTimeSymbols_.SHORTWEEKDAYS[I];case "a":return S8E(a,r);case "b":return S8E(a,r);case "B":return S8E(a,
r);case "h":return cG(r),Mg(a,_.Ic(kV(r)%12||12,N));case "K":return cG(r),Mg(a,_.Ic(kV(r)%12,N));case "H":return cG(r),Mg(a,_.Ic(kV(r),N));case "c":a:switch(I=J.getDay(),N){case 5:N=a.JSC$11304_dateTimeSymbols_.STANDALONENARROWWEEKDAYS[I];break a;case 4:N=a.JSC$11304_dateTimeSymbols_.STANDALONEWEEKDAYS[I];break a;case 3:N=a.JSC$11304_dateTimeSymbols_.STANDALONESHORTWEEKDAYS[I];break a;default:N=Mg(a,_.Ic(I,1))}return N;case "L":a:switch(I=J.getMonth(),N){case 5:N=a.JSC$11304_dateTimeSymbols_.STANDALONENARROWMONTHS[I];
break a;case 4:N=a.JSC$11304_dateTimeSymbols_.STANDALONEMONTHS[I];break a;case 3:N=a.JSC$11304_dateTimeSymbols_.STANDALONESHORTMONTHS[I];break a;default:N=Mg(a,_.Ic(I+1,N))}return N;case "Q":return I=Math.floor(J.getMonth()/3),N<4?a.JSC$11304_dateTimeSymbols_.SHORTQUARTERS[I]:a.JSC$11304_dateTimeSymbols_.QUARTERS[I];case "d":return Mg(a,_.Ic(J.getDate(),N));case "m":return cG(r),Mg(a,_.Ic(r.getMinutes?r.getMinutes():0,N));case "s":return cG(r),Mg(a,_.Ic(r.getSeconds(),N));case "v":return(P||mH(I.getTimezoneOffset())).timeZoneId_;
case "V":return a=P||mH(I.getTimezoneOffset()),N<=2?a.timeZoneId_:nil(a,I)>0?a.tzNamesExt_.DST_GENERIC_LOCATION!==void 0?a.tzNamesExt_.DST_GENERIC_LOCATION:a.tzNamesExt_.DST_GENERIC_LOCATION:a.tzNamesExt_.STD_GENERIC_LOCATION!==void 0?a.tzNamesExt_.STD_GENERIC_LOCATION:a.tzNamesExt_.STD_GENERIC_LOCATION;case "w":return I=x1I(r.getFullYear(),r.getMonth(),r.getDate(),a.JSC$11304_dateTimeSymbols_.FIRSTWEEKCUTOFFDAY,a.JSC$11304_dateTimeSymbols_.FIRSTDAYOFWEEK),Mg(a,_.Ic(Math.floor(Math.round((I-(new Date((new Date(I)).getFullYear(),
0,1)).valueOf())/864E5)/7)+1,N));case "z":return a=P||mH(I.getTimezoneOffset()),N<4?a.tzNames_[nil(a,I)>0?2:0]:a.tzNames_[nil(a,I)>0?3:1];case "Z":return z=P||mH(I.getTimezoneOffset()),N<4?(N=-KZO(z,I),a=[N<0?"-":"+"],N=Math.abs(N),a.push(_.Ic(Math.floor(N/60)%100,2),_.Ic(N%60,2)),N=a.join("")):N=Mg(a,sQv(KZO(z,I))),N;default:return""}};var iMw=/^[ \t\xA0\u1680\u180e\u2000-\u200a\u202f\u205f\u3000]/,x3J=/^[\s\xA0\u1680\u180e\u2000-\u200a\u202f\u205f\u3000]+/,XBm=function(a){this.patternParts_=[];this.JSC$11313_dateTimeSymbols_=s1;if(typeof a=="number"){a>11&&(a=10);if(a<4)var z=this.JSC$11313_dateTimeSymbols_.DATEFORMATS[a];else a<8?z=this.JSC$11313_dateTimeSymbols_.TIMEFORMATS[a-4]:(z=this.JSC$11313_dateTimeSymbols_.DATETIMEFORMATS[a-8],z=z.replace("{1}",this.JSC$11313_dateTimeSymbols_.DATEFORMATS[a-8]),z=z.replace("{0}",this.JSC$11313_dateTimeSymbols_.TIMEFORMATS[a-
8]));vif(this,z)}else vif(this,a)},vif=function(a,z){for(var I=!1,J="",r=0;r<z.length;r++){var P=z.charAt(r);
if(iMw.test(P))for(J.length>0&&(a.patternParts_.push({text:J,count:0,abutStart:!1,numeric:!1}),J=""),a.patternParts_.push({text:" ",count:0,abutStart:!1,numeric:!1});r<z.length-1&&z.charAt(r+1)==" ";)r++;else if(I)P=="'"?r+1<z.length&&z.charAt(r+1)=="'"?(J+="'",r++):I=!1:J+=P;else if("GyMdkHmsSEDabBhKzZvQL".indexOf(P)>=0){J.length>0&&(a.patternParts_.push({text:J,count:0,abutStart:!1,numeric:!1}),J="");for(var N=z.charAt(r),u=r+1;u<z.length&&z.charAt(u)==N;)u++;N=u-r;N<=0?u=!1:(u="MydhHmsSDkK".indexOf(P),
u=u>0||u==0&&N<3);a.patternParts_.push({text:P,count:N,abutStart:!1,numeric:u});r+=N-1}else P=="'"?r+1<z.length&&z.charAt(r+1)=="'"?(J+="'",r++):I=!0:J+=P}J.length>0&&a.patternParts_.push({text:J,count:0,abutStart:!1,numeric:!1});z=!1;for(I=0;I<a.patternParts_.length;I++)a.patternParts_[I].numeric?!z&&I+1<a.patternParts_.length&&a.patternParts_[I+1].numeric&&(z=!0,a.patternParts_[I].abutStart=!0):z=!1};
XBm.prototype.parse=function(a,z,I){var J=!1,r=!1;I&&(J=I.predictive||!1,r=I.validate||!1);if(J)for(I=0;I<this.patternParts_.length;I++){var P=this.patternParts_[I];if(P.count>0&&("abBhHkKm".indexOf(P.text.charAt(0))<0||P.count>2||P.abutStart))throw Error("Xd`"+P.text.charAt(0));}P=new Gz1;I=[0];P.dayPeriodIndex=-1;for(var N=0;N<this.patternParts_.length&&!(J&&I[0]>=a.length);N++){if(this.patternParts_[N].count==0){a:{var u=a;var E=I,O=this.patternParts_[N],f=J;if(O.text.match(iMw)!=null){if(O=E[0],
$3w(u,E),E[0]>O){u=!0;break a}}else{if(u.indexOf(O.text,E[0])==E[0]){E[0]+=O.text.length;u=!0;break a}if(f&&O.text.indexOf(u.substring(E[0]))==0){E[0]+=u.length-E[0];u=!0;break a}}u=!1}if(u)continue;return 0}if(this.patternParts_[N].abutStart){a:{E=a;O=I;f=N;var A=O[0],n=0;for(u=f;u<this.patternParts_.length;u++){var F=this.patternParts_[u],h=F.count;if(h===0)break;if(u==f&&(h-=n,n++,h==0)){u=0;break a}var v=u>f&&F.numeric,d=O[0];if(!XKG(this,E,O,F,h,P,!1)||v&&O[0]-d<h)u=f-1,O[0]=A}u-=f}if(u<=0)return 0;
N+=u-1}else if(!XKG(this,a,I,this.patternParts_[N],0,P,J))return 0}a:{a=r;if(z==null)throw Error("Yd");P.era!=void 0&&P.year!=void 0&&P.era==0&&P.year>0&&(P.year=-(P.year-1));P.year!=void 0&&z.setFullYear(P.year);J=z.getDate();z.setDate(1);P.month!=void 0&&z.setMonth(P.month);P.day!=void 0?z.setDate(P.day):(r=CU7(z.getFullYear(),z.getMonth()),z.setDate(J>r?r:J));typeof z.setHours==="function"&&(P.hours==void 0&&(P.hours=z.getHours()),P.hours<12&&(P.ampm!=void 0&&P.ampm>0?P.hours+=12:P.dayPeriodName!==
void 0&&("isPm noon afternoon1 afternoon2 evening1 evening2".split(" ").includes(P.dayPeriodName)||["night1","night2"].includes(P.dayPeriodName)&&P.hours>=6)&&(P.hours+=12)),z.setHours(P.hours));typeof z.setMinutes==="function"&&P.minutes!=void 0&&z.setMinutes(P.minutes);typeof z.setSeconds==="function"&&P.seconds!=void 0&&z.setSeconds(P.seconds);typeof z.setMilliseconds==="function"&&P.milliseconds!=void 0&&z.setMilliseconds(P.milliseconds);if(a&&(P.year&&P.year!=z.getFullYear()||P.month&&P.month!=
z.getMonth()||P.day&&P.day!=z.getDate()||P.hours&&P.hours>=24||P.minutes&&P.minutes>=60||P.seconds&&P.seconds>=60||P.milliseconds&&P.milliseconds>=1E3))z=!1;else{P.tzOffset!=void 0&&z.setTime(z.getTime()+(P.tzOffset-z.getTimezoneOffset())*60*1E3);P.ambiguousYear&&(a=new Date,a.setFullYear(a.getFullYear()-80),z.getTime()<a.getTime()&&z.setFullYear(a.getFullYear()+100));if(P.dayOfWeek!=void 0)if(P.day==void 0)P=(7+P.dayOfWeek-z.getDay())%7,P>3&&(P-=7),a=z.getMonth(),z.setDate(z.getDate()+P),z.getMonth()!=
a&&z.setDate(z.getDate()+(P>0?-7:7));else if(P.dayOfWeek!=z.getDay()){z=!1;break a}z=!0}}return z?I[0]:0};
var XKG=function(a,z,I,J,r,P,N){$3w(z,I);if(J.numeric&&r>0&&I[0]+r>z.length)return!1;switch(J.text.charAt(0)){case "G":return YV(z,I,[a.JSC$11313_dateTimeSymbols_.ERAS],function(u){return P.era=u}),!0;
case "M":case "L":return Tzf(a,z,I,r,J,P);case "E":return YV(z,I,[a.JSC$11313_dateTimeSymbols_.WEEKDAYS,a.JSC$11313_dateTimeSymbols_.SHORTWEEKDAYS],function(u){return P.dayOfWeek=u});
case "B":case "b":return r=[],a=[[].concat(a.JSC$11313_dateTimeSymbols_.AMPMS)],r.push("isAm"),r.push("isPm"),z=YV(z,I,a,function(u){return P.dayPeriodIndex=u},N),P.dayPeriodName=r[P.dayPeriodIndex],N?z:!0;
case "a":return z=YV(z,I,[a.JSC$11313_dateTimeSymbols_.AMPMS],function(u){return P.ampm=u},N),N?z:!0;
case "y":return d3i(a,z,I,J,r,P);case "Q":return YV(z,I,[a.JSC$11313_dateTimeSymbols_.QUARTERS,a.JSC$11313_dateTimeSymbols_.SHORTQUARTERS],function(u){P.month=u*3;P.day=1});
case "d":return qg(a,z,I,J,r,function(u){P.day=u}),!0;
case "S":return WZv(a,z,I,r,P);case "h":case "K":case "H":case "k":return z=qg(a,z,I,J,r,function(u){P.hours=J.text.charAt(0)==="h"&&u===12?0:u},N),N?z:!0;
case "m":return z=qg(a,z,I,J,r,function(u){P.minutes=u},N),N?z:!0;
case "s":return qg(a,z,I,J,r,function(u){P.seconds=u}),!0;
case "z":case "Z":case "v":return oiw(a,z,I,P);default:return!1}},d3i=function(a,z,I,J,r,P){var N=I[0];
r=e$(a,z,I,r);r===null&&(r=e$(a,z,I,0,!0));if(r===null)return!1;r>=0&&I[0]-N==2&&J.count==2?(a=r,z=(new Date).getFullYear()-80,I=z%100,P.ambiguousYear=a==I,a+=Math.floor(z/100)*100+(a<I?100:0),P.year=a):P.year=r;return!0},Tzf=function(a,z,I,J,r,P){return r.numeric&&qg(a,z,I,r,J,function(N){P.month=N-1})?!0:YV(z,I,[a.JSC$11313_dateTimeSymbols_.MONTHS,
a.JSC$11313_dateTimeSymbols_.STANDALONEMONTHS,a.JSC$11313_dateTimeSymbols_.SHORTMONTHS,a.JSC$11313_dateTimeSymbols_.STANDALONESHORTMONTHS],function(N){P.month=N})},WZv=function(a,z,I,J,r){var P=I[0];
a=e$(a,z,I,J);if(a===null)return!1;I=I[0]-P;r.milliseconds=I<3?a*Math.pow(10,3-I):Math.round(a/Math.pow(10,I-3));return!0},oiw=function(a,z,I,J){z.indexOf("GMT",I[0])==I[0]&&(I[0]+=3);
if(I[0]>=z.length)return J.tzOffset=0,!0;var r=I[0],P=e$(a,z,I,0,!0);if(P===null)return!1;if(I[0]<z.length&&z.charAt(I[0])==":"){var N=P*60;I[0]++;P=e$(a,z,I,0);if(P===null)return!1;N+=P}else N=P,N=N<24&&I[0]-r<=3?N*60:N%100+N/100*60;J.tzOffset=-N;return!0},qg=function(a,z,I,J,r,P,N){N=N||!1;
var u=I[0];a=e$(a,z,I,r);if(a===null)return!1;if(N&&I[0]-u<J.count){if(I[0]<z.length)return!1;a*=Math.pow(10,J.count-(I[0]-u))}P(a);return!0},YV=function(a,z,I,J,r){r=r||!1;
for(var P,N=0;N<I.length;N++){P=z;for(var u=I[N],E=r,O=0,f=null,A=a.substring(P[0]).toLowerCase(),n=0;n<u.length;n++){var F=u[n].toLowerCase();if(E&&F.indexOf(A)==0){O=A.length;f=n;break}u[n].length>O&&A.indexOf(F)==0&&(O=u[n].length,f=n)}f!==null&&(P[0]+=O);P=f;if(P!==null)return J(P),!0}return!1},$3w=function(a,z){(a=a.substring(z[0]).match(x3J))&&(z[0]+=a[0].length)},e$=function(a,z,I,J,r){z=J>0?z.substring(0,I[0]+J):z;
r=r||!1;if(a.JSC$11313_dateTimeSymbols_.ZERODIGIT){J=[];for(var P=I[0];P<z.length;P++){var N=z.charCodeAt(P)-a.JSC$11313_dateTimeSymbols_.ZERODIGIT;J.push(0<=N&&N<=9?String.fromCharCode(N+48):z.charAt(P))}z=J.join("")}else z=z.substring(I[0]);a=z.match(new RegExp("^"+(r?"[+-]?":"")+"\\d+"));if(!a)return null;I[0]+=a[0].length;return parseInt(a[0],10)},Gz1=function(){};
Gz1.prototype.ambiguousYear=!1;_.U3l={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 D3j={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"},RwE=D3j,LZJ=D3j;LZJ=RwE=D3j;var pKf,aJ,zs,NNm,j_,lL1;
_.l8=function(a,z,I,J){var r;if(r=z){a:if(z&&z.length===3){for(r=0;r<3;r++){var P=z[r];if(P<"A"||P>"Z"&&P<"a"||P>"z"){r=!1;break a}}r=!0}else r=!1;r=!r}if(r)throw new TypeError("Zd");this.intlCurrencyCode_=z?z.toUpperCase():null;this.currencyStyle_=I||0;this.overrideNumberFormatSymbols_=J||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_=aJ(this).MINUS_SIGN;this.negativeSuffix_="";this.multiplier_=1;this.negativePercentSignExpected_=!1;this.groupingArray_=[];this.useExponentialNotation_=this.decimalSeparatorAlwaysShown_=!1;this.compactStyle_=0;if(typeof a==="number")switch(a){case 1:j_(this,aJ(this).DECIMAL_PATTERN);break;case 2:j_(this,aJ(this).SCIENTIFIC_PATTERN);break;case 3:j_(this,aJ(this).PERCENT_PATTERN);break;case 4:a=aJ(this).CURRENCY_PATTERN;z=["0"];if(I=
y1[zs(this)]){I=I[0]&7;if(I>0)for(z.push("."),J=0;J<I;J++)z.push("0");a=a.replace(/0.00/g,z.join(""))}j_(this,a);break;case 5:lL1(this,1);break;case 6:lL1(this,2);break;default:throw Error("be");}else j_(this,a)};
pKf=!1;aJ=function(a){return a.overrideNumberFormatSymbols_||(pKf?LZJ:RwE)};
zs=function(a){return a.intlCurrencyCode_||aJ(a).DEF_CURRENCY_CODE};
NNm=function(a,z){if(z>308)throw Error("ae`"+z);a.maximumFractionDigits_=z;return a};
j_=function(a,z){var I=[0];a.positivePrefix_=wKi(a,z,I);for(var J=I[0],r=-1,P=0,N=0,u=0,E=-1,O=z.length,f=!0;I[0]<O&&f;I[0]++)switch(z.charAt(I[0])){case "#":N>0?u++:P++;E>=0&&r<0&&E++;break;case "0":if(u>0)throw Error("he`"+z);N++;E>=0&&r<0&&E++;break;case ",":E>0&&a.groupingArray_.push(E);E=0;break;case ".":if(r>=0)throw Error("ie`"+z);r=P+N+u;break;case "E":if(a.useExponentialNotation_)throw Error("je`"+z);a.useExponentialNotation_=!0;a.minExponentDigits_=0;I[0]+1<O&&z.charAt(I[0]+1)=="+"&&(I[0]++,
a.useSignForPositiveExponent_=!0);for(;I[0]+1<O&&z.charAt(I[0]+1)=="0";)I[0]++,a.minExponentDigits_++;if(P+N<1||a.minExponentDigits_<1)throw Error("ke`"+z);f=!1;break;default:I[0]--,f=!1}N==0&&P>0&&r>=0&&(N=r,N==0&&N++,u=P-N,P=N-1,N=1);if(r<0&&u>0||r>=0&&(r<P||r>P+N)||E==0)throw Error("le`"+z);u=P+N+u;a.maximumFractionDigits_=r>=0?u-r:0;r>=0&&(a.minimumFractionDigits_=P+N-r,a.minimumFractionDigits_<0&&(a.minimumFractionDigits_=0));a.minimumIntegerDigits_=(r>=0?r:u)-P;a.useExponentialNotation_&&(a.maximumIntegerDigits_=
P+a.minimumIntegerDigits_,a.maximumFractionDigits_==0&&a.minimumIntegerDigits_==0&&(a.minimumIntegerDigits_=1));a.groupingArray_.push(Math.max(0,E));a.decimalSeparatorAlwaysShown_=r==0||r==u;J=I[0]-J;a.positiveSuffix_=wKi(a,z,I);I[0]<z.length&&z.charAt(I[0])==";"?(I[0]++,a.multiplier_!=1&&(a.negativePercentSignExpected_=!0),a.negativePrefix_=wKi(a,z,I),I[0]+=J,a.negativeSuffix_=wKi(a,z,I)):(a.negativePrefix_+=a.positivePrefix_,a.negativeSuffix_+=a.positiveSuffix_)};
lL1=function(a,z){a.compactStyle_=z;j_(a,aJ(a).DECIMAL_PATTERN);a.minimumFractionDigits_=0;NNm(a,2);if(a.minimumFractionDigits_>0)throw Error("$d");a.significantDigits_=2};
_.l8.prototype.parse=function(a,z){z=z||[0];if(this.compactStyle_!==0)throw Error("ce");a=a.replace(/ |\u202f/g,"\u00a0");var I=a.indexOf(this.positivePrefix_,z[0])==z[0],J=a.indexOf(this.negativePrefix_,z[0])==z[0];I&&J&&(this.positivePrefix_.length>this.negativePrefix_.length?J=!1:this.positivePrefix_.length<this.negativePrefix_.length&&(I=!1));I?z[0]+=this.positivePrefix_.length:J&&(z[0]+=this.negativePrefix_.length);if(a.indexOf(aJ(this).INFINITY,z[0])==z[0]){z[0]+=aJ(this).INFINITY.length;var r=
Infinity}else{r=a;var P=!1,N=!1,u=!1,E=-1,O=1,f=aJ(this).DECIMAL_SEP,A=aJ(this).GROUP_SEP,n=aJ(this).EXP_SYMBOL;if(this.compactStyle_!=0)throw Error("de");A=A.replace(/\u202f/g,"\u00a0");for(var F="";z[0]<r.length;z[0]++){var h=r.charAt(z[0]),v=m3O(this,h);if(v>=0&&v<=9)F+=v,u=!0;else if(h==f.charAt(0)){if(P||N)break;F+=".";P=!0}else if(h==A.charAt(0)&&("\u00a0"!=A.charAt(0)||z[0]+1<r.length&&m3O(this,r.charAt(z[0]+1))>=0)){if(P||N)break}else if(h==n.charAt(0)){if(N)break;F+="E";N=!0;E=z[0]}else if(h==
"+"||h=="-"){if(u&&E!=z[0]-1)break;F+=h}else if(this.multiplier_==1&&h==aJ(this).PERCENT.charAt(0)){if(O!=1)break;O=100;if(u){z[0]++;break}}else if(this.multiplier_==1&&h==aJ(this).PERMILL.charAt(0)){if(O!=1)break;O=1E3;if(u){z[0]++;break}}else break}this.multiplier_!=1&&(O=this.multiplier_);r=parseFloat(F)/O}if(I){if(a.indexOf(this.positiveSuffix_,z[0])!=z[0])return NaN;z[0]+=this.positiveSuffix_.length}else if(J){if(a.indexOf(this.negativeSuffix_,z[0])!=z[0])return NaN;z[0]+=this.negativeSuffix_.length}return J?
-r:r};
_.l8.prototype.format=function(a){if(this.minimumFractionDigits_>this.maximumFractionDigits_)throw Error("ee");if(isNaN(a))return aJ(this).NAN;var z=[];var I=a;if(this.compactStyle_==0)I=IJ;else{I=Math.abs(I);var J=y3f(this,I<=1?0:kzo(I)).divisorBase;I=y3f(this,J+kzo(Mcw(this,JN(I,-J)).intValue))}a=JN(a,-I.divisorBase);(J=a<0||a==0&&1/a<0)?I.negative_prefix?z.push(I.negative_prefix):(z.push(I.prefix),z.push(this.negativePrefix_)):(z.push(I.prefix),z.push(this.positivePrefix_));if(isFinite(a))if(a*=
J?-1:1,a*=this.multiplier_,this.useExponentialNotation_){var r=a;if(r==0)c31(this,r,this.minimumIntegerDigits_,z),Y8G(this,0,z);else{var P=Math.floor(Math.log(r)/Math.log(10)+2E-15);r=JN(r,-P);var N=this.minimumIntegerDigits_;this.maximumIntegerDigits_>1&&this.maximumIntegerDigits_>this.minimumIntegerDigits_?(N=P%this.maximumIntegerDigits_,N<0&&(N=this.maximumIntegerDigits_+N),r=JN(r,N),P-=N,N=1):this.minimumIntegerDigits_<1?(P++,r=JN(r,-1)):(P-=this.minimumIntegerDigits_-1,r=JN(r,this.minimumIntegerDigits_-
1));c31(this,r,N,z);Y8G(this,P,z)}}else c31(this,a,this.minimumIntegerDigits_,z);else z.push(aJ(this).INFINITY);J?I.negative_suffix?z.push(I.negative_suffix):(isFinite(a)&&z.push(I.suffix),z.push(this.negativeSuffix_)):(isFinite(a)&&z.push(I.suffix),z.push(this.positiveSuffix_));return z.join("")};
var Mcw=function(a,z){var I=JN(z,a.maximumFractionDigits_);a.significantDigits_>0&&(I=q8w(I,a.significantDigits_,a.maximumFractionDigits_));I=Math.round(I);if(isFinite(I)){var J=Math.floor(JN(I,-a.maximumFractionDigits_));I=Math.floor(I-JN(J,a.maximumFractionDigits_));if(I<0||I>=JN(1,a.maximumFractionDigits_))J=Math.round(z),I=0}else J=z,I=0;return{intValue:J,fracValue:I}},c31=function(a,z,I,J){if(a.minimumFractionDigits_>a.maximumFractionDigits_)throw Error("ee");
J||(J=[]);z=Mcw(a,z);var r=z.intValue,P=z.fracValue,N=a.minimumFractionDigits_>0||P>0||!1;z=a.minimumFractionDigits_;N&&(z=a.minimumFractionDigits_);for(var u="",E=r;E>1E20;)u="0"+u,E=Math.round(JN(E,-1));u=E+u;var O=aJ(a).DECIMAL_SEP;E=aJ(a).ZERO_DIGIT.codePointAt(0);var f=u.length,A=0;if(r>0||I>0){for(r=f;r<I;r++)J.push(String.fromCodePoint(E));if(a.groupingArray_.length>=2)for(I=1;I<a.groupingArray_.length;I++)A+=a.groupingArray_[I];I=f-A;if(I>0){r=a.groupingArray_;A=f=0;for(var n,F=aJ(a).GROUP_SEP,
h=u.length,v=0;v<h;v++)if(J.push(String.fromCodePoint(E+Number(u.charAt(v)))),h-v>1)if(n=r[A],v<I){var d=I-v;(n===1||n>0&&d%n===1)&&J.push(F)}else A<r.length&&(v===I?A+=1:n===v-I-f+1&&(J.push(F),f+=n,A+=1))}else{I=u;u=a.groupingArray_;r=aJ(a).GROUP_SEP;n=I.length;F=[];for(f=u.length-1;f>=0&&n>0;f--){A=u[f];for(h=0;h<A&&n-h-1>=0;h++)F.push(String.fromCodePoint(E+Number(I.charAt(n-h-1))));n-=A;n>0&&F.push(r)}J.push.apply(J,F.reverse())}}else N||J.push(String.fromCodePoint(E));(a.decimalSeparatorAlwaysShown_||
N)&&J.push(O);P=String(P);N=P.split("e+");N.length==2&&(P=String(q8w(parseFloat(N[0]),a.significantDigits_,1)),P=P.replace(".",""),P+=(0,_.Xp1)("0",parseInt(N[1],10)-P.length+1));a.maximumFractionDigits_+1>P.length&&(P="1"+(0,_.Xp1)("0",a.maximumFractionDigits_-P.length)+P);for(a=P.length;P.charAt(a-1)=="0"&&a>z+1;)a--;for(z=1;z<a;z++)J.push(String.fromCodePoint(E+Number(P.charAt(z))))},Y8G=function(a,z,I){I.push(aJ(a).EXP_SYMBOL);
z<0?(z=-z,I.push(aJ(a).MINUS_SIGN)):a.useSignForPositiveExponent_&&I.push(aJ(a).PLUS_SIGN);z=""+z;for(var J=aJ(a).ZERO_DIGIT,r=z.length;r<a.minExponentDigits_;r++)I.push(J);a=J.codePointAt(0)-ewl;for(J=0;J<z.length;J++)I.push(String.fromCodePoint(a+z.codePointAt(J)))},m3O=function(a,z){z=z.codePointAt(0);
if(48<=z&&z<58)return z-48;a=aJ(a).ZERO_DIGIT.codePointAt(0);return a<=z&&z<a+10?z-a:-1},ewl="0".codePointAt(0),wKi=function(a,z,I){for(var J="",r=!1,P=z.length;I[0]<P;I[0]++){var N=z.charAt(I[0]);
if(N=="'")I[0]+1<P&&z.charAt(I[0]+1)=="'"?(I[0]++,J+="'"):r=!r;else if(r)J+=N;else switch(N){case "#":case "0":case ",":case ".":case ";":return J;case "\u00a4":if(I[0]+1<P&&z.charAt(I[0]+1)=="\u00a4")I[0]++,J+=zs(a);else switch(a.currencyStyle_){case 0:N=zs(a);J+=N in y1?y1[N][1]:N;break;case 2:N=zs(a);var u=y1[N];J+=u?N==u[1]?N:N+" "+u[1]:N;break;case 1:N=zs(a),J+=N in y1?y1[N][2]:N}break;case "%":if(!a.negativePercentSignExpected_&&a.multiplier_!=1)throw Error("fe");if(a.negativePercentSignExpected_&&
a.multiplier_!=100)throw Error("ge");a.multiplier_=100;a.negativePercentSignExpected_=!1;J+=aJ(a).PERCENT;break;case "\u2030":if(!a.negativePercentSignExpected_&&a.multiplier_!=1)throw Error("fe");if(a.negativePercentSignExpected_&&a.multiplier_!=1E3)throw Error("ge");a.multiplier_=1E3;a.negativePercentSignExpected_=!1;J+=aJ(a).PERMILL;break;default:J+=N}}return J},IJ={divisorBase:0,
negative_prefix:"",negative_suffix:"",prefix:"",suffix:""},y3f=function(a,z){a=a.compactStyle_==1?mU.COMPACT_DECIMAL_SHORT_PATTERN:mU.COMPACT_DECIMAL_LONG_PATTERN;a==null&&(a=mU.COMPACT_DECIMAL_SHORT_PATTERN);if(z<3)return IJ;z=Math.min(14,z);var I=a[JN(1,z)];for(--z;!I&&z>=3;)I=a[JN(1,z)],z--;if(!I)return IJ;I=I.other;var J=a="",r=I.indexOf(";");r>=0&&(I=I.substring(0,r),r=I.substring(r+1))&&(J=/([^0]*)(0+)(.*)/.exec(r),a=J[1],J=J[3]);return I&&I!="0"?(I=/([^0]*)(0+)(.*)/.exec(I))?{divisorBase:z+
1-(I[2].length-1),negative_prefix:a,negative_suffix:J,prefix:I[1],suffix:I[3]}:IJ:IJ},kzo=function(a){if(!isFinite(a))return a>0?a:0;
for(var z=0;(a/=10)>=1;)z++;return z},JN=function(a,z){if(!a||!isFinite(a)||z==0)return a;
a=String(a).split("e");return parseFloat(a[0]+"e"+(parseInt(a[1]||0,10)+z))},aAO=function(a,z){return a&&isFinite(a)?JN(Math.round(JN(a,z)),-z):a},q8w=function(a,z,I){if(!a)return a;
z=z-kzo(a)-1;return z<-I?aAO(a,-I):aAO(a,z)};var j0w=function(a){return a%10==1&&a%100!=11?"one":a%10==2&&a%100!=12?"two":a%10==3&&a%100!=13?"few":"other"},zLe=j0w;
zLe=j0w;var IA1;IA1=function(a,z){var I=a|0;if(void 0===z){z=Math;var J=z.min,r=a+"",P=r.indexOf(".");z=J.call(z,P===-1?0:r.length-P-1,3)}J=Math.pow(10,z);a={v:z,f:(a*J|0)%J};return I==1&&a.v==0?"one":"other"};
_.kp=IA1;_.kp=IA1;var JjG,rji,PNI,CNw,NdX;_.ZwJ=function(a){this.JSC$11356_pattern_=a;this.parsedPattern_=this.literals_=this.initialLiterals_=null;a=RwE;var z=mU;if(JjG!==a||rji!==z)JjG=a,rji=z,PNI=new _.l8(1);this.numberFormatter_=PNI};
JjG=null;rji=null;PNI=null;CNw=RegExp("'([{}#].*?)'","g");NdX=RegExp("''","g");
_.ZwJ.prototype.format=function(a){if(this.JSC$11356_pattern_){this.initialLiterals_=[];var z=tg1(this,this.JSC$11356_pattern_);this.parsedPattern_=uJf(this,z);this.JSC$11356_pattern_=null}if(this.parsedPattern_&&this.parsedPattern_.length!=0)for(this.literals_=_.RE(this.initialLiterals_),z=[],ENw(this,this.parsedPattern_,a,!1,z),a=z.join("");this.literals_.length>0;)a=a.replace(this.buildPlaceholder_(this.literals_),String(this.literals_.pop()).replace("$","$$$$"));else a="";return a};
var ENw=function(a,z,I,J,r){for(var P=0;P<z.length;P++)switch(z[P].type){case 4:r.push(z[P].value);break;case 3:var N=z[P].value;var u=a,E=r,O=I[N];O===void 0?E.push("Undefined parameter - "+N):(u.literals_.push(O),E.push(u.buildPlaceholder_(u.literals_)));break;case 2:N=z[P].value;u=a;E=I;O=J;var f=r,A=N.argumentIndex;E[A]===void 0?f.push("Undefined parameter - "+A):(A=N[E[A]],A===void 0&&(A=N.other),ENw(u,A,E,O,f));break;case 0:N=z[P].value;Bdl(a,N,I,_.kp,J,r);break;case 1:N=z[P].value,Bdl(a,N,
I,zLe,J,r)}},Bdl=function(a,z,I,J,r,P){var N=z.argumentIndex,u=z.argumentOffset,E=+I[N];
isNaN(E)?P.push("Undefined or invalid parameter - "+N):(u=E-u,N=z[I[N]],N===void 0&&(J=J(Math.abs(u)),N=z[J],N===void 0&&(N=z.other)),z=[],ENw(a,N,I,r,z),I=z.join(""),r?P.push(I):(a=a.numberFormatter_.format(u),P.push(I.replace(/#/g,a))))},tg1=function(a,z){var I=a.initialLiterals_,J=a.buildPlaceholder_.bind(a);
z=z.replace(NdX,function(){I.push("'");return J(I)});
return z=z.replace(CNw,function(r,P){I.push(P);return J(I)})},gNf=function(a){var z=0,I=[],J=[],r=/[{}]/g;
r.lastIndex=0;for(var P;P=r.exec(a);){var N=P.index;P[0]=="}"?(I.pop(),I.length==0&&(P={type:1},P.value=a.substring(z,N),J.push(P),z=N+1)):(I.length==0&&(z=a.substring(z,N),z!=""&&J.push({type:0,value:z}),z=N+1),I.push("{"))}a=a.substring(z);a!=""&&J.push({type:0,value:a});return J},Owf=/^\s*(\w+)\s*,\s*plural\s*,(?:\s*offset:(\d+))?/,fAl=/^\s*(\w+)\s*,\s*selectordinal\s*,/,Ajv=/^\s*(\w+)\s*,\s*select\s*,/,uJf=function(a,z){var I=[];
z=gNf(z);for(var J=0;J<z.length;J++){var r={};if(0==z[J].type)r.type=4,r.value=z[J].value;else if(1==z[J].type){var P=z[J].value;switch(Owf.test(P)?0:fAl.test(P)?1:Ajv.test(P)?2:/^\s*\w+\s*/.test(P)?3:5){case 2:r.type=2;r.value=s0f(a,z[J].value);break;case 0:r.type=0;r.value=nNG(a,z[J].value);break;case 1:r.type=1;r.value=KoI(a,z[J].value);break;case 3:r.type=3,r.value=z[J].value}}I.push(r)}return I},s0f=function(a,z){var I="";
z=z.replace(Ajv,function(u,E){I=E;return""});
var J={};J.argumentIndex=I;z=gNf(z);for(var r=0;r<z.length;){var P=z[r].value;r++;var N=void 0;1==z[r].type&&(N=uJf(a,z[r].value));J[P.replace(/\s/g,"")]=N;r++}return J},nNG=function(a,z){var I="",J=0;
z=z.replace(Owf,function(E,O,f){I=O;f&&(J=parseInt(f,10));return""});
var r={};r.argumentIndex=I;r.argumentOffset=J;z=gNf(z);for(var P=0;P<z.length;){var N=z[P].value;P++;var u=void 0;1==z[P].type&&(u=uJf(a,z[P].value));r[N.replace(/\s*(?:=)?(\w+)\s*/,"$1")]=u;P++}return r},KoI=function(a,z){var I="";
z=z.replace(fAl,function(u,E){I=E;return""});
var J={};J.argumentIndex=I;J.argumentOffset=0;z=gNf(z);for(var r=0;r<z.length;){var P=z[r].value;r++;var N=void 0;1==z[r].type&&(N=uJf(a,z[r].value));J[P.replace(/\s*(?:=)?(\w+)\s*/,"$1")]=N;r++}return J};
_.ZwJ.prototype.buildPlaceholder_=function(a){return"\ufddf_"+(a.length-1).toString(10)+"_"};var Fow;
Fow={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 xs0=function(){this.rdtfSymbols_=HwJ||Fow;this.alwaysNumeric_=this.alwaysNumeric_=!0;this.style_=0};
xs0.prototype.format=function(a,z){a:{z=bww(this,z);switch(this.style_){case 2:if(z.NARROW!=void 0){z=z.NARROW;break a}case 1:if(z.SHORT!=void 0){z=z.SHORT;break a}default:z=z.LONG;break a}z=void 0}if(!this.alwaysNumeric_&&z&&z.R&&z.R[""+a])a=z.R[""+a];else if(z){var I=Math.abs(a);a=(new _.ZwJ("{N,plural,"+(a>0||a==0&&1/a==Infinity?z.F:z.P)+"}")).format({N:I})}else a="";return a};
var bww=function(a,z){switch(z){default:case 0:return a.rdtfSymbols_.YEAR;case 1:return a.rdtfSymbols_.QUARTER;case 2:return a.rdtfSymbols_.MONTH;case 3:return a.rdtfSymbols_.WEEK;case 4:return a.rdtfSymbols_.DAY;case 5:return a.rdtfSymbols_.HOUR;case 6:return a.rdtfSymbols_.MINUTE;case 7:return a.rdtfSymbols_.SECOND}};var hLe=function(a,z,I,J,r,P,N,u){this.x0=a;this.y0=z;this.x1=I;this.y1=J;this.x2=r;this.y2=P;this.x3=N;this.y3=u};
hLe.prototype.clone=function(){return new hLe(this.x0,this.y0,this.x1,this.y1,this.x2,this.y2,this.x3,this.y3)};
hLe.prototype.equals=function(a){return this.x0==a.x0&&this.y0==a.y0&&this.x1==a.x1&&this.y1==a.y1&&this.x2==a.x2&&this.y2==a.y2&&this.x3==a.x3&&this.y3==a.y3};
var VgE=function(a,z){if(z==0)return a.x0;if(z==1)return a.x3;var I=hT(a.x0,a.x1,z),J=hT(a.x1,a.x2,z);a=hT(a.x2,a.x3,z);I=hT(I,J,z);J=hT(J,a,z);return hT(I,J,z)},Q0X=function(a,z){var I=(z-a.x0)/(a.x3-a.x0);
if(I<=0)return 0;if(I>=1)return 1;for(var J=0,r=1,P=0,N=0;N<8;N++){P=VgE(a,I);var u=(VgE(a,I+1E-6)-P)/1E-6;if(Math.abs(P-z)<1E-6)return I;if(Math.abs(u)<1E-6)break;else P<z?J=I:r=I,I-=(P-z)/u}for(N=0;Math.abs(P-z)>1E-6&&N<8;N++)P<z?(J=I,I=(I+r)/2):(r=I,I=(I+J)/2),P=VgE(a,I);return I};var rh=function(){_.HV.call(this);this.JSC$11377_name_="closure_frame"+SgG++;this.iframesForDisposal_=[];iwX[this.JSC$11377_name_]=this},PY;
_.rL(rh,_.HV);var iwX={},SgG=0,xpO=function(a,z){var I=nB(a);R0E(z,function(J,r){Array.isArray(J)||(J=[J]);_.l1(J,function(P){P=I.JSC$9286_createDom("INPUT",{type:"hidden",name:r,value:P});a.appendChild(P)})})};
_.Z=rh.prototype;_.Z.JSC$11379_form_=null;_.Z.JSC$11379_iframe_=null;_.Z.iframeName_=null;_.Z.nextIframeId_=0;_.Z.JSC$11379_active_=!1;_.Z.complete_=!1;_.Z.success_=!1;_.Z.lastContent_=null;_.Z.JSC$11379_lastErrorCode_=0;_.Z.iframeDisposalTimer_=null;
_.Z.send=function(a,z,I,J){if(this.JSC$11379_active_)throw Error("me");a=new _.cJ(a);z=z?z.toUpperCase():"GET";I&&_.Nk(a);PY||(PY=_.i3("FORM"),PY.acceptCharset="utf-8",I=PY.style,I.position="absolute",I.visibility="hidden",I.top=I.left="-10px",I.width=I.height="10px",I.overflow="hidden",document.body.appendChild(PY));this.JSC$11379_form_=PY;z=="GET"&&xpO(this.JSC$11379_form_,a.JSC$9989_queryData_);J&&xpO(this.JSC$11379_form_,J);I=a.toString();I=wy0(I);J=this.JSC$11379_form_;I=_.W9(QI(I));I!==void 0&&
(J.action=I);this.JSC$11379_form_.method=z;vNl(this);GQJ(this)};
_.Z.abort=function(a){if(this.JSC$11379_active_){var z=Zf(this);if(z)if(np(z))z.removeAllListeners(void 0);else if(z=Kp(z)){var I=0,J;for(J in z.listeners)for(var r=z.listeners[J].concat(),P=0;P<r.length;++P)hj(r[P])&&++I}this.success_=this.JSC$11379_active_=this.complete_=!1;this.JSC$11379_lastErrorCode_=a||7;this.dispatchEvent("abort");$pw(this)}};
_.Z.disposeInternal=function(){this.JSC$11379_active_&&this.abort();rh.superClass_.disposeInternal.call(this);this.JSC$11379_iframe_&&XlO(this);GQJ(this);this.JSC$11379_form_=null;delete this.errorChecker_;this.lastContent_=this.JSC$11379_form_=null;this.JSC$11379_lastErrorCode_=0;delete iwX[this.JSC$11377_name_]};
_.Z.isComplete=function(){return this.complete_};
_.Z.isSuccess=function(){return this.success_};
_.Z.isActive=function(){return this.JSC$11379_active_};
_.Z.getResponseText=function(){return this.lastContent_};
_.Z.getLastError=function(){return _.sNe(this.JSC$11379_lastErrorCode_)};
var vNl=function(a){a.JSC$11379_active_=!0;a.complete_=!1;a.JSC$11379_lastErrorCode_=0;a.iframeName_=a.JSC$11377_name_+"_"+(a.nextIframeId_++).toString(36);a.JSC$11379_iframe_=nB(a.JSC$11379_form_).JSC$9286_createDom("IFRAME",{name:a.iframeName_,id:a.iframeName_});var z=a.JSC$11379_iframe_.style;z.visibility="hidden";z.width=z.height="10px";z.display="none";_.ue?z.marginTop=z.marginLeft="-10px":(z.position="absolute",z.top=z.left="-10px");nB(a.JSC$11379_form_).JSC$9284_document_.body.appendChild(a.JSC$11379_iframe_);
z=a.iframeName_+"_inner";var I=ziw(a.JSC$11379_iframe_);if(document.baseURI){var J=tE(z);J='<head><base href="'+tE(document.baseURI)+'"></head><body><iframe id="'+J+'" name="'+J+'"></iframe>';J=Rt(J)}else J=tE(z),J=Rt('<body><iframe id="'+J+'" name="'+J+'"></iframe>');I.write(L4(J));_.Sg(I.getElementById(z),"load",a.onIframeLoaded_,!1,a);J=A7("TEXTAREA",a.JSC$11379_form_);for(var r=0,P=J.length;r<P;r++){var N=J[r].value;C0w(J[r])!=N&&(_.dc(J[r],N),J[r].value=N)}J=I.importNode(a.JSC$11379_form_,!0);
J.target=z;J.action=a.JSC$11379_form_.action;I.body.appendChild(J);r=A7("SELECT",a.JSC$11379_form_);P=A7("SELECT",J);N=0;for(var u=r.length;N<u;N++)for(var E=A7("OPTION",r[N]),O=A7("OPTION",P[N]),f=0,A=E.length;f<A;f++)O[f].selected=E[f].selected;r=A7("INPUT",a.JSC$11379_form_);P=A7("INPUT",J);N=0;for(u=r.length;N<u;N++)if(r[N].type=="file"&&r[N].value!=P[N].value){a.JSC$11379_form_.target=z;J=a.JSC$11379_form_;break}try{a.errorHandled_=!1,J.submit(),I.close(),_.tY&&setTimeout(a.testForFirefoxSilentError_.bind(a),
250)}catch(n){_.FU(I.getElementById(z),"load",a.onIframeLoaded_,!1,a),I.close(),C$(a,2)}};
rh.prototype.onIframeLoaded_=function(){_.FU(Zf(this),"load",this.onIframeLoaded_,!1,this);try{var a=this.JSC$11379_iframe_?ziw(Zf(this)):null;this.complete_=!0;this.JSC$11379_active_=!1;try{var z=a.body;this.lastContent_=z.textContent||z.innerText}catch(r){var I=1}var J;I||typeof this.errorChecker_!="function"||(J=this.errorChecker_(a))&&(I=4);I?C$(this,I):(this.success_=!0,this.JSC$11379_lastErrorCode_=0,this.dispatchEvent("complete"),this.dispatchEvent("success"),$pw(this))}catch(r){C$(this,1)}};
var C$=function(a,z){a.errorHandled_||(a.success_=!1,a.JSC$11379_active_=!1,a.complete_=!0,a.JSC$11379_lastErrorCode_=z,a.dispatchEvent("complete"),a.dispatchEvent("error"),$pw(a),a.errorHandled_=!0)},$pw=function(a){XlO(a);
GQJ(a);a.JSC$11379_form_=null;a.dispatchEvent("ready")},XlO=function(a){var z=a.JSC$11379_iframe_;
z&&(z.onreadystatechange=null,z.onload=null,z.onerror=null,a.iframesForDisposal_.push(z));a.iframeDisposalTimer_&&(clearTimeout(a.iframeDisposalTimer_),a.iframeDisposalTimer_=null);_.tY?a.iframeDisposalTimer_=setTimeout(a.disposeIframes_.bind(a),2E3):a.disposeIframes_();a.JSC$11379_iframe_=null;a.iframeName_=null};
rh.prototype.disposeIframes_=function(){this.iframeDisposalTimer_&&(clearTimeout(this.iframeDisposalTimer_),this.iframeDisposalTimer_=null);for(;this.iframesForDisposal_.length!=0;){var a=this.iframesForDisposal_.pop();_.fo(a)}};
var GQJ=function(a){a.JSC$11379_form_&&a.JSC$11379_form_==PY&&_.G2(a.JSC$11379_form_)},Zf=function(a){return a.JSC$11379_iframe_?ziw(a.JSC$11379_iframe_).getElementById(a.iframeName_+"_inner"):null};
rh.prototype.testForFirefoxSilentError_=function(){if(this.JSC$11379_active_){var a=this.JSC$11379_iframe_?ziw(Zf(this)):null;a&&!HBm(a,"documentUri")?(_.FU(Zf(this),"load",this.onIframeLoaded_,!1,this),navigator.onLine?C$(this,3):C$(this,9)):setTimeout(this.testForFirefoxSilentError_.bind(this),250)}};_.Nb=function(a){return a=="\r"||a=="\n"||a==" "||a=="\t"};var Tdi;_.tN=function(a){this.errorMessage_=null;this.result_=[];this.JSC$11381_buffer_="";this.stack_=[];this.JSC$11381_pos_=this.depth_=0;this.slashed_=!1;this.unicodeCount_=0;this.stringInputPattern_=/[\\"]/g;this.state_=this.streamState_=0;this.deliverMessageAsRawString_=!(!a||!a.deliverMessageAsRawString)};
Tdi={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};_.tN.prototype.isInputValid=function(){return this.streamState_!=3};
_.tN.prototype.done=function(){return this.streamState_===2};
var uY=function(a,z,I){a.streamState_=3;a.errorMessage_="The stream is broken @"+a.JSC$11381_pos_+"/"+I+". With input:\n"+z;throw Error(a.errorMessage_);};
_.tN.prototype.acceptsBinaryInput=function(){return!1};
_.tN.prototype.parse=function(a){function z(){for(;n<a.length;)if(_.Nb(a[n]))n++,P.JSC$11381_pos_++;else break;return n<O}
function I(){for(var h;;){h=a[n++];if(!h)break;P.JSC$11381_pos_++;switch(P.state_){case E.INIT:h==="{"?P.state_=E.OBJECT_OPEN:h==="["?P.state_=E.ARRAY_OPEN:_.Nb(h)||uY(P,a,n);continue;case E.KEY_START:case E.OBJECT_OPEN:if(_.Nb(h))continue;if(P.state_===E.KEY_START)N.push(E.KEY_END);else if(h==="}"){r("{}");P.state_=J();continue}else N.push(E.OBJECT_END);h==='"'?P.state_=E.STRING:uY(P,a,n);continue;case E.KEY_END:case E.OBJECT_END:if(_.Nb(h))continue;h===":"?(P.state_===E.OBJECT_END&&(N.push(E.OBJECT_END),
P.depth_++),P.state_=E.VALUE):h==="}"?(P.depth_--,r(),P.state_=J()):h===","?(P.state_===E.OBJECT_END&&N.push(E.OBJECT_END),P.state_=E.KEY_START):uY(P,a,n);continue;case E.ARRAY_OPEN:case E.VALUE:if(_.Nb(h))continue;if(P.state_===E.ARRAY_OPEN)if(P.depth_++,P.state_=E.VALUE,h==="]"){P.depth_--;if(P.depth_===0){P.state_=E.ARRAY_END;return}r("[]");P.state_=J();continue}else N.push(E.ARRAY_END);h==='"'?P.state_=E.STRING:h==="{"?P.state_=E.OBJECT_OPEN:h==="["?P.state_=E.ARRAY_OPEN:h==="t"?P.state_=E.TRUE1:
h==="f"?P.state_=E.FALSE1:h==="n"?P.state_=E.NULL1:h!=="-"&&("0123456789".indexOf(h)!==-1?P.state_=E.NUM_DIGIT:uY(P,a,n));continue;case E.ARRAY_END:if(h===",")N.push(E.ARRAY_END),P.state_=E.VALUE,P.depth_===1&&(A=n);else if(h==="]"){P.depth_--;if(P.depth_===0)return;r();P.state_=J()}else if(_.Nb(h))continue;else uY(P,a,n);continue;case E.STRING:var v=n;a:for(;;){for(;P.unicodeCount_>0;)if(h=a[n++],P.unicodeCount_===4?P.unicodeCount_=0:P.unicodeCount_++,!h)break a;if(h==='"'&&!P.slashed_){P.state_=
J();break}if(h==="\\"&&!P.slashed_&&(P.slashed_=!0,h=a[n++],!h))break;if(P.slashed_)if(P.slashed_=!1,h==="u"&&(P.unicodeCount_=1),h=a[n++])continue;else break;u.lastIndex=n;h=u.exec(a);if(!h){n=a.length+1;break}n=h.index+1;h=a[h.index];if(!h)break}P.JSC$11381_pos_+=n-v;continue;case E.TRUE1:if(!h)continue;h==="r"?P.state_=E.TRUE2:uY(P,a,n);continue;case E.TRUE2:if(!h)continue;h==="u"?P.state_=E.TRUE3:uY(P,a,n);continue;case E.TRUE3:if(!h)continue;h==="e"?P.state_=J():uY(P,a,n);continue;case E.FALSE1:if(!h)continue;
h==="a"?P.state_=E.FALSE2:uY(P,a,n);continue;case E.FALSE2:if(!h)continue;h==="l"?P.state_=E.FALSE3:uY(P,a,n);continue;case E.FALSE3:if(!h)continue;h==="s"?P.state_=E.FALSE4:uY(P,a,n);continue;case E.FALSE4:if(!h)continue;h==="e"?P.state_=J():uY(P,a,n);continue;case E.NULL1:if(!h)continue;h==="u"?P.state_=E.NULL2:uY(P,a,n);continue;case E.NULL2:if(!h)continue;h==="l"?P.state_=E.NULL3:uY(P,a,n);continue;case E.NULL3:if(!h)continue;h==="l"?P.state_=J():uY(P,a,n);continue;case E.NUM_DECIMAL_POINT:h===
"."?P.state_=E.NUM_DIGIT:uY(P,a,n);continue;case E.NUM_DIGIT:if("0123456789.eE+-".indexOf(h)!==-1)continue;else n--,P.JSC$11381_pos_--,P.state_=J();continue;default:uY(P,a,n)}}}
function J(){var h=N.pop();return h!=null?h:E.VALUE}
function r(h){P.depth_>1||(h||(h=A===-1?P.JSC$11381_buffer_+a.substring(f,n):a.substring(A,n)),P.deliverMessageAsRawString_?P.result_.push(h):P.result_.push(JSON.parse(h)),A=n)}
for(var P=this,N=P.stack_,u=P.stringInputPattern_,E=Tdi,O=a.length,f=0,A=-1,n=0;n<O;)switch(P.streamState_){case 3:return uY(P,a,n),null;case 2:return z()&&uY(P,a,n),null;case 0:if(z()){var F=a[n++];P.JSC$11381_pos_++;if(F==="["){P.streamState_=1;f=n;P.state_=E.ARRAY_OPEN;continue}else uY(P,a,n)}return null;case 1:return I(),P.depth_===0&&P.state_==E.ARRAY_END?(P.streamState_=2,P.JSC$11381_buffer_=a.substring(n)):P.JSC$11381_buffer_=A===-1?P.JSC$11381_buffer_+a.substring(f):a.substring(A),P.result_.length>
0?(F=P.result_,P.result_=[],F):null}return null};_.rL(_.CL,bl);NZ.prototype.getValue=function(){return this.JSC$11389_value_};
NZ.prototype.clone=function(){return new NZ(this.JSC$11389_key_,this.JSC$11389_value_)};var Ex=function(a){this.nodes_=[];if(a)a:{if(a instanceof Ex){var z=a.getKeys();a=a.getValues();if(this.getCount()<=0){for(var I=this.nodes_,J=0;J<z.length;J++)I.push(new NZ(z[J],a[J]));break a}}else z=_.x8.getKeys(a),a=_.x8.getValues(a);for(I=0;I<z.length;I++)this.insert(z[I],a[I])}};
_.Z=Ex.prototype;_.Z.insert=function(a,z){var I=this.nodes_;I.push(new NZ(a,z));a=I.length-1;z=this.nodes_;for(I=z[a];a>0;){var J=a-1>>1;if(z[J].JSC$11389_key_>I.JSC$11389_key_)z[a]=z[J],a=J;else break}z[a]=I};
_.Z.remove=function(){var a=this.nodes_,z=a.length,I=a[0];if(!(z<=0)){if(z==1)a.length=0;else{a[0]=a.pop();a=0;z=this.nodes_;for(var J=z.length,r=z[a];a<J>>1;){var P=a*2+1,N=a*2+2;P=N<J&&z[N].JSC$11389_key_<z[P].JSC$11389_key_?N:P;if(z[P].JSC$11389_key_>r.JSC$11389_key_)break;z[a]=z[P];a=P}z[a]=r}return I.getValue()}};
_.Z.peek=function(){var a=this.nodes_;if(a.length!=0)return a[0].getValue()};
_.Z.getValues=function(){for(var a=this.nodes_,z=[],I=a.length,J=0;J<I;J++)z.push(a[J].getValue());return z};
_.Z.getKeys=function(){for(var a=this.nodes_,z=[],I=a.length,J=0;J<I;J++)z.push(a[J].JSC$11389_key_);return z};
_.Z.containsValue=function(a){return this.nodes_.some(function(z){return z.getValue()==a})};
_.Z.containsKey=function(a){return this.nodes_.some(function(z){return z.JSC$11389_key_==a})};
_.Z.clone=function(){return new Ex(this)};
_.Z.getCount=function(){return this.nodes_.length};
_.Z.isEmpty=function(){return this.nodes_.length===0};
_.Z.clear=function(){this.nodes_.length=0};_.BY=function(a,z){this.JSC$11395_map_={};this.JSC$11395_keys_=[];this.version_=this.size=0;var I=arguments.length;if(I>1){if(I%2)throw Error("ka");for(var J=0;J<I;J+=2)this.set(arguments[J],arguments[J+1])}else a&&this.addAll(a)};
_.Z=_.BY.prototype;_.Z.getCount=function(){return this.size};
_.Z.getValues=function(){gh(this);for(var a=[],z=0;z<this.JSC$11395_keys_.length;z++)a.push(this.JSC$11395_map_[this.JSC$11395_keys_[z]]);return a};
_.Z.getKeys=function(){gh(this);return this.JSC$11395_keys_.concat()};
_.Z.containsKey=function(a){return this.has(a)};
_.Z.has=function(a){return Ox(this.JSC$11395_map_,a)};
_.Z.containsValue=function(a){for(var z=0;z<this.JSC$11395_keys_.length;z++){var I=this.JSC$11395_keys_[z];if(Ox(this.JSC$11395_map_,I)&&this.JSC$11395_map_[I]==a)return!0}return!1};
_.Z.equals=function(a,z){if(this===a)return!0;if(this.size!=a.getCount())return!1;z=z||dpi;gh(this);for(var I,J=0;I=this.JSC$11395_keys_[J];J++)if(!z(this.get(I),a.get(I)))return!1;return!0};
var dpi=function(a,z){return a===z};
_.BY.prototype.isEmpty=function(){return this.size==0};
_.BY.prototype.clear=function(){this.JSC$11395_map_={};this.version_=this.size=this.JSC$11395_keys_.length=0};
_.BY.prototype.remove=function(a){return this.delete(a)};
_.BY.prototype.delete=function(a){return Ox(this.JSC$11395_map_,a)?(delete this.JSC$11395_map_[a],--this.size,this.version_++,this.JSC$11395_keys_.length>2*this.size&&gh(this),!0):!1};
var gh=function(a){if(a.size!=a.JSC$11395_keys_.length){for(var z=0,I=0;z<a.JSC$11395_keys_.length;){var J=a.JSC$11395_keys_[z];Ox(a.JSC$11395_map_,J)&&(a.JSC$11395_keys_[I++]=J);z++}a.JSC$11395_keys_.length=I}if(a.size!=a.JSC$11395_keys_.length){z={};for(J=I=0;I<a.JSC$11395_keys_.length;){var r=a.JSC$11395_keys_[I];Ox(z,r)||(a.JSC$11395_keys_[J++]=r,z[r]=1);I++}a.JSC$11395_keys_.length=J}};
_.Z=_.BY.prototype;_.Z.get=function(a,z){return Ox(this.JSC$11395_map_,a)?this.JSC$11395_map_[a]:z};
_.Z.set=function(a,z){Ox(this.JSC$11395_map_,a)||(this.size+=1,this.JSC$11395_keys_.push(a),this.version_++);this.JSC$11395_map_[a]=z};
_.Z.addAll=function(a){if(a instanceof _.BY)for(var z=a.getKeys(),I=0;I<z.length;I++)this.set(z[I],a.get(z[I]));else for(z in a)this.set(z,a[z])};
_.Z.forEach=function(a,z){for(var I=this.getKeys(),J=0;J<I.length;J++){var r=I[J],P=this.get(r);a.call(z,P,r,this)}};
_.Z.clone=function(){return new _.BY(this)};
_.Z.transpose=function(){for(var a=new _.BY,z=0;z<this.JSC$11395_keys_.length;z++){var I=this.JSC$11395_keys_[z];a.set(this.JSC$11395_map_[I],I)}return a};
_.Z.keys=function(){return N3w(this.__iterator__(!0)).toEs6()};
_.Z.values=function(){return N3w(this.__iterator__(!1)).toEs6()};
_.Z.entries=function(){var a=this;return HHJ(this.keys(),function(z){return[z,a.get(z)]})};
_.Z.__iterator__=function(a){gh(this);var z=0,I=this.version_,J=this,r=new NJ;r.next=function(){if(I!=J.version_)throw Error("ne");if(z>=J.JSC$11395_keys_.length)return tA;var P=J.JSC$11395_keys_[z++];return u_(a?P:J.JSC$11395_map_[P])};
return r};
var Ox=function(a,z){return Object.prototype.hasOwnProperty.call(a,z)};var oNE=function(){this.JSC$11398_map_=new _.BY;this.JSC$11398_head_=new Wo1("");this.JSC$11398_head_.next=this.JSC$11398_head_.prev=this.JSC$11398_head_},Upe=function(a,z){if(z=a.JSC$11398_map_.get(z))z.remove(),a.insert_(z);
return z};
_.Z=oNE.prototype;_.Z.get=function(a,z){return(a=Upe(this,a))?a.value:z};
_.Z.set=function(a,z){var I=Upe(this,a);I?I.value=z:(I=new Wo1(a,z),this.JSC$11398_map_.set(a,I),this.insert_(I))};
_.Z.peek=function(){return this.JSC$11398_head_.next.value};
_.Z.shift=function(){return DpJ(this,this.JSC$11398_head_.next)};
_.Z.pop=function(){return DpJ(this,this.JSC$11398_head_.prev)};
_.Z.remove=function(a){return(a=this.JSC$11398_map_.get(a))?(this.removeNode(a),!0):!1};
_.Z.removeNode=function(a){a.remove();this.JSC$11398_map_.remove(a.key)};
_.Z.getCount=function(){return this.JSC$11398_map_.getCount()};
_.Z.isEmpty=function(){return this.JSC$11398_map_.isEmpty()};
_.Z.getKeys=function(){return this.map(function(a,z){return z})};
_.Z.getValues=function(){return this.map(function(a){return a})};
_.Z.contains=function(a){return this.some(function(z){return z==a})};
_.Z.containsKey=function(a){return this.JSC$11398_map_.containsKey(a)};
_.Z.clear=function(){for(;this.getCount()>0;)this.removeNode(this.JSC$11398_head_.prev)};
_.Z.forEach=function(a,z){for(var I=this.JSC$11398_head_.next;I!=this.JSC$11398_head_;I=I.next)a.call(z,I.value,I.key,this)};
_.Z.map=function(a,z){for(var I=[],J=this.JSC$11398_head_.next;J!=this.JSC$11398_head_;J=J.next)I.push(a.call(z,J.value,J.key,this));return I};
_.Z.some=function(a,z){for(var I=this.JSC$11398_head_.next;I!=this.JSC$11398_head_;I=I.next)if(a.call(z,I.value,I.key,this))return!0;return!1};
_.Z.every=function(a,z){for(var I=this.JSC$11398_head_.next;I!=this.JSC$11398_head_;I=I.next)if(!a.call(z,I.value,I.key,this))return!1;return!0};
_.Z.insert_=function(a){a.next=this.JSC$11398_head_.next;a.prev=this.JSC$11398_head_;this.JSC$11398_head_.next=a;for(a.next.prev=a;this.getCount()>100;)this.removeNode(this.JSC$11398_head_.prev)};
var DpJ=function(a,z){a.JSC$11398_head_!=z&&a.removeNode(z);return z.value},Wo1=function(a,z){this.key=a;
this.value=z};
Wo1.prototype.remove=function(){this.prev.next=this.next;this.next.prev=this.prev;delete this.prev;delete this.next};var RLl=function(){Ex.apply(this,arguments)};
_.b(RLl,Ex);RLl.prototype.enqueue=function(a,z){this.insert(a,z)};var LoX=function(){var a=Error();a.name="SecurityError";throw a;},QgO=function(){return{get opener(){return null},
get closed(){return!0},get location(){LoX()},get document(){LoX()},postMessage:function(){},
close:function(){},
focus:function(){}}};var vB7={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 XrE={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 lAl={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(XrE).join("|");var plE=function(){function a(u){u.substr(-1)!==";"&&(u+=";");return N(u)}
for(var z=Object.keys(lAl).sort($HG),I=Object.keys(XrE).sort($HG),J=0,r=0;J<I.length;J++)z[r]===I[J]?(I[J]+=";?",r++):I[J]+=";";var P=new RegExp("&(?:"+I.join("|")+"|#[xX][\\da-fA-F]+;?|#\\d+;?)","g"),N=Tc1();return function(u){return String(u).replace(P,a)}}();/*

 Copyright (c) 2015 Vitaly Puzrin, Alex Kocharin.

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

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

 THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
 EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
 OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
 NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
 HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
 WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
 FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
 OTHER DEALINGS IN THE SOFTWARE.
*/
var wlv={};var mpi=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"),yji=/[\\&]/,kQO=RegExp("\\\\[!\"#$%&'()*+,./:;<=>?@[\\\\\\]^_`{|}~-]|&(?:#x[a-f0-9]{1,8}|#[0-9]{1,8}|[a-z][a-z0-9]{1,31});","gi"),Mgv=RegExp('[&<>"]',"g"),cjw=RegExp('&(?:#x[a-f0-9]{1,8}|#[0-9]{1,8}|[a-z][a-z0-9]{1,31});|[&<>"]',
"gi"),Ygi=function(a){return a.charCodeAt(0)===92?a.charAt(1):plE(a)},qgO=function(a){return yji.test(a)?a.replace(kQO,Ygi):a},eL1=function(a){try{var z,I="";
if(typeof r!=="string"){var J=r;var r=";/?:@&=+$,-_.!~*'()#"}typeof J==="undefined"&&(J=!0);var P,N=wlv[r];if(N)var u=N;else{N=wlv[r]=[];for(P=0;P<128;P++){var E=String.fromCharCode(P);/^[0-9a-z]$/i.test(E)?N.push(E):N.push("%"+("0"+P.toString(16).toUpperCase()).slice(-2))}for(P=0;P<r.length;P++)N[r.charCodeAt(P)]=r[P];u=N}var O=0;for(z=a.length;O<z;O++){var f=a.charCodeAt(O);if(J&&f===37&&O+2<z&&/^[0-9a-f]{2}$/i.test(a.slice(O+1,O+3)))I+=a.slice(O,O+3),O+=2;else if(f<128)I+=u[f];else if(f>=55296&&
f<=57343){if(f>=55296&&f<=56319&&O+1<z){var A=a.charCodeAt(O+1);if(A>=56320&&A<=57343){I+=encodeURIComponent(a[O]+a[O+1]);O++;continue}}I+="%EF%BF%BD"}else I+=encodeURIComponent(a[O])}return I}catch(n){return a}},atl=function(a){switch(a){case "&":return"&amp;";
case "<":return"&lt;";case ">":return"&gt;";case '"':return"&quot;";default:return a}},f$=function(a,z){return Mgv.test(a)?z?a.replace(cjw,atl):a.replace(Mgv,atl):a};/*

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

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

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

 THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
 EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
 MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
 NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
 LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
 OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
 WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
 http://mths.be/fromcodepoint v0.2.1 by @mathias */
var AN;if(String.fromCodePoint)AN=function(a){try{return String.fromCodePoint(a)}catch(z){if(z instanceof RangeError)return String.fromCharCode(65533);throw z;}};
else{var j5E=String.fromCharCode,zho=Math.floor;AN=function(){var a=[],z=-1,I=arguments.length;if(!I)return"";for(var J="";++z<I;){var r=Number(arguments[z]);if(!isFinite(r)||r<0||r>1114111||zho(r)!==r)return String.fromCharCode(65533);if(r<=65535)a.push(r);else{r-=65536;var P=(r>>10)+55296;r=r%1024+56320;a.push(P,r)}if(z+1===I||a.length>16384)J+=j5E.apply(null,a),a.length=0}return J}};var ItE=function(a){this.root=this.current=a;this.entering=!0};
ItE.prototype.next=function(){var a=this.current,z=this.entering;if(a===null)return null;a:switch(a._type){case "document":case "block_quote":case "list":case "item":case "paragraph":case "heading":case "emph":case "strong":case "link":case "image":case "custom_inline":case "custom_block":case "table":case "row":case "th":case "td":var I=!0;break a;default:I=!1}z&&I?a._firstChild?(this.current=a._firstChild,this.entering=!0):this.entering=!1:a===this.root?this.current=null:a._next===null?(this.current=
a._parent,this.entering=!1):(this.current=a._next,this.entering=!0);return{entering:z,node:a}};
var BJ=function(a,z){this._type=a;this._next=this._prev=this._lastChild=this._firstChild=this._parent=null;this._sourcepos=z;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};
BJ.prototype.appendChild=function(a){a.unlink();a._parent=this;this._lastChild?(this._lastChild._next=a,a._prev=this._lastChild):this._firstChild=a;this._lastChild=a};
BJ.prototype.unlink=function(){this._prev?this._prev._next=this._next:this._parent&&(this._parent._firstChild=this._next);this._next?this._next._prev=this._prev:this._parent&&(this._parent._lastChild=this._prev);this._prev=this._next=this._parent=null};
var JfJ=function(a,z){z.unlink();z._next=a._next;z._next&&(z._next._prev=z);z._prev=a;a._next=z;z._parent=a._parent;z._next||(z._parent._lastChild=z)};
BJ.prototype.insertBefore=function(a){a.unlink();a._prev=this._prev;a._prev&&(a._prev._next=a);a._next=this;this._prev=a;a._parent=this._parent;a._prev||(a._parent._firstChild=a)};
_.eH.Object.defineProperties(BJ.prototype,{type:{configurable:!0,enumerable:!0,get:function(){return this._type}},
firstChild:{configurable:!0,enumerable:!0,get:function(){return this._firstChild}},
lastChild:{configurable:!0,enumerable:!0,get:function(){return this._lastChild}},
next:{configurable:!0,enumerable:!0,get:function(){return this._next}},
prev:{configurable:!0,enumerable:!0,get:function(){return this._prev}},
parent:{configurable:!0,enumerable:!0,get:function(){return this._parent}},
sourcepos:{configurable:!0,enumerable:!0,get:function(){return this._sourcepos}},
literal:{configurable:!0,enumerable:!0,get:function(){return this._literal},
set:function(a){this._literal=a}},
destination:{configurable:!0,enumerable:!0,get:function(){return this._destination},
set:function(a){this._destination=a}},
title:{configurable:!0,enumerable:!0,get:function(){return this._title},
set:function(a){this._title=a}},
info:{configurable:!0,enumerable:!0,get:function(){return this._info},
set:function(a){this._info=a}},
level:{configurable:!0,enumerable:!0,get:function(){return this._level},
set:function(a){this._level=a}},
listType:{configurable:!0,enumerable:!0,get:function(){return this._listData.type},
set:function(a){this._listData.type=a}},
listTight:{configurable:!0,enumerable:!0,get:function(){return this._listData.tight},
set:function(a){this._listData.tight=a}},
listStart:{configurable:!0,enumerable:!0,get:function(){return this._listData.start},
set:function(a){this._listData.start=a}},
onEnter:{configurable:!0,enumerable:!0,get:function(){return this._onEnter},
set:function(a){this._onEnter=a}},
onExit:{configurable:!0,enumerable:!0,get:function(){return this._onExit},
set:function(a){this._onExit=a}}});var dHx=/[ \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,
Wg7={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 rfw=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]/),
PJv=RegExp("^(?:\"(\\\\[!\"#$%&'()*+,./:;<=>?@[\\\\\\]^_`{|}~-]|[^\"\\x00])*\"|'(\\\\[!\"#$%&'()*+,./:;<=>?@[\\\\\\]^_`{|}~-]|[^'\\x00])*'|\\((\\\\[!\"#$%&'()*+,./:;<=>?@[\\\\\\]^_`{|}~-]|[^)\\x00])*\\))"),ZSJ=RegExp("^(?:[<](?:[^ <>\\t\\n\\\\\\x00]|\\\\[!\"#$%&'()*+,./:;<=>?@[\\\\\\]^_`{|}~-]|\\\\)*[>])"),CJo=RegExp("^[!\"#$%&'()*+,./:;<=>?@[\\\\\\]^_`{|}~-]"),N41=RegExp("^&(?:#x[a-f0-9]{1,8}|#[0-9]{1,8}|[a-z][a-z0-9]{1,31});","i"),tkj=/`+/,uTo=/^`+/,Eq1=/\.\.\./g,B4I=/--+/g,gqe=/^<([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])?)*)>/,
OSO=/^<[A-Za-z][A-Za-z0-9.+-]{1,31}:[^<>\x00-\x20]*>/i,fte=/^ *(?:\n *)?/,AfX=/^[ \t\n\x0b\x0c\x0d]/,s5I=/[ \t\n\x0b\x0c\x0d]+/g,nqv=/^\s/,Kfv=/ *$/,Ffw=/^ */,HSw=/^ *(?:\n|$)/,bSX=RegExp("^\\[(?:[^\\\\\\[\\]]|\\\\[!\"#$%&'()*+,./:;<=>?@[\\\\\\]^_`{|}~-]|\\\\){0,1000}\\]"),hhJ=/^[^\n`\[\]\\!<&*_'"]+/m,sx=function(a){var z=new BJ("text");z._literal=a;return z},n$=function(a){this.subject="";
this.brackets=this.delimiters=null;this.pos=0;this.refmap={};this.options=a||{}};
n$.prototype.match=function(a){a=a.exec(this.subject.slice(this.pos));if(a===null)return null;this.pos+=a.index+a[0].length;return a[0]};
n$.prototype.peek=function(){return this.pos<this.subject.length?this.subject.charCodeAt(this.pos):-1};
var K$=function(a){a.match(fte);return!0},VkO=function(a,z,I){var J=0;
var r=a.pos;if(z===39||z===34)J++,a.pos++;else for(;a.peek()===z;)J++,a.pos++;if(J===0)J=null;else{var P=r===0?"\n":a.subject.charAt(r-1);var N=a.peek();N=N===-1?"\n":AN(N);var u=nqv.test(N);N=rfw.test(N);var E=nqv.test(P);var O=rfw.test(P);P=!u&&!(N&&!E&&!O);u=!E&&!(O&&!u&&!N);z===95?(E=P&&(!u||O),N=u&&(!P||N)):(E=z===39||z===34?P&&!u:P,N=u);a.pos=r;J={numdelims:J,can_open:E,can_close:N}}if(!J)return!1;r=J.numdelims;N=a.pos;a.pos+=r;N=z===39?"\u2019":z===34?"\u201c":a.subject.slice(N,a.pos);N=sx(N);
I.appendChild(N);a.delimiters={cc:z,numdelims:r,origdelims:r,node:N,previous:a.delimiters,next:null,can_open:J.can_open,can_close:J.can_close};a.delimiters.previous!==null&&(a.delimiters.previous.next=a.delimiters);return!0},Q5f=function(a,z){z.previous!==null&&(z.previous.next=z.next);
z.next===null?a.delimiters=z.previous:z.next.previous=z.previous},SW1=function(a,z){var I,J,r=[],P=!1;
r[95]=z;r[42]=z;r[39]=z;r[34]=z;for(I=a.delimiters;I!==null&&I.previous!==z;)I=I.previous;for(;I!==null;){var N=I.cc;if(I.can_close){var u=I.previous;for(J=!1;u!==null&&u!==z&&u!==r[N];){P=(I.can_open||u.can_close)&&(u.origdelims+I.origdelims)%3===0;if(u.cc===I.cc&&u.can_open&&!P){J=!0;break}u=u.previous}var E=I;if(N===42||N===95)if(J){var O=I.numdelims>=2&&u.numdelims>=2?2:1;var f=u.node;var A=I.node;u.numdelims-=O;I.numdelims-=O;f._literal=f._literal.slice(0,f._literal.length-O);A._literal=A._literal.slice(0,
A._literal.length-O);var n=new BJ(O===1?"emph":"strong");for(O=f._next;O&&O!==A;){var F=O._next;O.unlink();n.appendChild(O);O=F}JfJ(f,n);O=u;F=I;O.next!==F&&(O.next=F,F.previous=O);u.numdelims===0&&(f.unlink(),Q5f(a,u));I.numdelims===0&&(A.unlink(),u=I.next,Q5f(a,I),I=u)}else I=I.next;else N===39?(I.node._literal="\u2019",J&&(u.node._literal="\u2018"),I=I.next):N===34&&(I.node._literal="\u201d",J&&(u.node.literal="\u201c"),I=I.next);J||P||(r[N]=E.previous,E.can_open||Q5f(a,E))}else I=I.next}for(;a.delimiters!==
null&&a.delimiters!==z;)Q5f(a,a.delimiters)},iSo=function(a){a=a.match(PJv);
return a===null?null:qgO(a.substr(1,a.length-2))},xKj=function(a){var z=a.match(ZSJ);
if(z===null){z=a.pos;for(var I=0,J;(J=a.peek())!==-1;)if(J===92)a.pos+=1,a.peek()!==-1&&(a.pos+=1);else if(J===40)a.pos+=1,I+=1;else if(J===41)if(I<1)break;else a.pos+=1,--I;else if(AfX.exec(AN(J))!==null)break;else a.pos+=1;z=a.subject.substr(z,a.pos-z);return eL1(qgO(z))}return eL1(qgO(z.substr(1,z.length-2)))},vql=function(a){a=a.match(bSX);
return a===null||a.length>1001?0:a.length},Gde=function(a,z,I,J){a.brackets!==null&&(a.brackets.bracketAfter=!0);
a.brackets={node:z,previous:a.brackets,previousDelimiter:a.delimiters,index:I,image:J,active:!0}},$KG=function(a,z){var I;
return(I=a.match(hhJ))?(a.options.smart?z.appendChild(sx(I.replace(Eq1,"\u2026").replace(B4I,function(J){var r=0,P=0;J.length%3===0?P=J.length/3:J.length%2===0?r=J.length/2:J.length%3===2?(r=1,P=(J.length-2)/3):(r=2,P=(J.length-4)/3);J="";var N;for(N=0;N<P;N++)J+="\u2014";for(N=0;N<r;N++)J+="\u2013";return J}))):z.appendChild(sx(I)),!0):!1},X8G=function(a,z,I){a.subject=z;
a.pos=0;z=a.pos;var J=vql(a);if(J===0)return 0;var r=a.subject.substr(0,J);if(a.peek()===58)a.pos++;else return a.pos=z,0;K$(a);J=xKj(a);if(J===null||J.length===0)return a.pos=z,0;var P=a.pos;K$(a);var N=iSo(a);N===null&&(N="",a.pos=P);var u=!0;a.match(HSw)===null&&(N===""?u=!1:(N="",a.pos=P,u=a.match(HSw)!==null));if(!u)return a.pos=z,0;r=UHI(r);if(r==="")return a.pos=z,0;I[r]||(I[r]={destination:J,title:N});return a.pos-z},T4G=function(a,z){var I,J=a.peek();
if(J===-1)return!1;switch(J){case 10:a.pos+=1;if((I=z._lastChild)&&I.type==="text"&&I._literal[I._literal.length-1]===" "){var r=I._literal[I._literal.length-2]===" ";I._literal=I._literal.replace(Kfv,"");z.appendChild(new BJ(r?"linebreak":"softbreak"))}else z.appendChild(new BJ("softbreak"));a.match(Ffw);I=!0;break;case 92:I=a.subject;a.pos+=1;a.peek()===10?(a.pos+=1,I=new BJ("linebreak"),z.appendChild(I)):CJo.test(I.charAt(a.pos))?(z.appendChild(sx(I.charAt(a.pos))),a.pos+=1):z.appendChild(sx("\\"));
I=!0;break;case 96:a:if(I=a.match(uTo),I===null)I=!1;else{r=a.pos;for(var P;(P=a.match(tkj))!==null;)if(P===I){P=new BJ("code");P._literal=a.subject.slice(r,a.pos-I.length).trim().replace(s5I," ");z.appendChild(P);I=!0;break a}a.pos=r;z.appendChild(sx(I));I=!0}break;case 42:case 95:I=VkO(a,J,z);break;case 39:case 34:I=a.options.smart&&VkO(a,J,z);break;case 91:I=a.pos;a.pos+=1;r=sx("[");z.appendChild(r);Gde(a,r,I,!1);I=!0;break;case 33:I=a.pos;a.pos+=1;a.peek()===91?(a.pos+=1,r=sx("!["),z.appendChild(r),
Gde(a,r,I+1,!0)):z.appendChild(sx("!"));I=!0;break;case 93:var N,u=!1,E;a.pos+=1;var O=a.pos;r=a.brackets;if(r===null)z.appendChild(sx("]"));else if(r.active){I=r.image;var f=a.pos;a.peek()===40&&(a.pos++,K$(a)&&(P=xKj(a))!==null&&K$(a)&&(AfX.test(a.subject.charAt(a.pos-1))&&(N=iSo(a)),1)&&K$(a)&&a.peek()===41?(a.pos+=1,u=!0):a.pos=f);if(!u){var A=a.pos,n=vql(a);n>2?E=a.subject.slice(A,A+n):r.bracketAfter||(E=a.subject.slice(r.index,O));n===0&&(a.pos=f);E&&(E=a.refmap[UHI(E)])&&(P=E.destination,N=
E.title,u=!0)}if(u){O=new BJ(I?"image":"link");O._destination=P;O._title=N||"";for(P=r.node._next;P;)N=P._next,P.unlink(),O.appendChild(P),P=N;z.appendChild(O);SW1(a,r.previousDelimiter);a.brackets=a.brackets.previous;r.node.unlink();if(!I)for(r=a.brackets;r!==null;)r.image||(r.active=!1),r=r.previous}else a.brackets=a.brackets.previous,a.pos=O,z.appendChild(sx("]"))}else z.appendChild(sx("]")),a.brackets=a.brackets.previous;I=!0;break;case 60:(I=a.match(gqe))?(I=I.slice(1,I.length-1),r=new BJ("link"),
r._destination=eL1("mailto:"+I),r._title="",r.appendChild(sx(I)),z.appendChild(r),I=!0):(I=a.match(OSO))?(I=I.slice(1,I.length-1),r=new BJ("link"),r._destination=eL1(I),r._title="",r.appendChild(sx(I)),z.appendChild(r),I=!0):I=!1;I||(I=a.match(mpi),I===null?I=!1:(r=new BJ("html_inline"),r._literal=I,z.appendChild(r),I=!0));break;case 38:(I=a.match(N41))?(z.appendChild(sx(plE(I))),I=!0):I=!1;break;default:I=$KG(a,z)}I||(a.pos+=1,z.appendChild(sx(AN(J))));return!0};
n$.prototype.parseInlines=function(a){this.subject=a._string_content.trim();this.pos=0;for(this.brackets=this.delimiters=null;T4G(this,a););a._string_content=null;SW1(this,null)};
n$.prototype.parse=n$.prototype.parseInlines;var dKJ=[/./,/^<(?: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")],WfX=[/./,/<\/(?:script|pre|style)>/i,/--\x3e/,/\?>/,/>/,/\]\]>/],oqj=/^(?:(?:\*[ \t]*){3,}|(?:_[ \t]*){3,}|(?:-[ \t]*){3,})[ \t]*$/,UKw=/^[#`~*+_=<>0-9-\|]|\|/,DKi=/[^ \t\f\v\r\n]/,Rhv=/^[*+-]/,Lfw=/^(\d{1,9})([.)])/,ltJ=/^#{1,6}(?:[ \t]+|$)/,p8O=/^`{3,}(?!.*`)|^~{3,}(?!.*~)/,w8w=/^(?:`{3,}|~{3,})(?= *$)/,mKv=/^(?:=+|-+)[ \t]*$/,yfl=/\r\n|\n|\r/,RCM=/(^\|?[^\|]+(\|[^\|]+)+\|?)|(\|.*\|)/,Lgm=/(^\|?\s*:?---+:?\s*(\|\s*:?---+:?\s*)+\|?)|(^\s*\|\s*:?---+:?\s*\|$)/,kdI={document:{continue:function(){return 0},
finalize:function(){},
canContain:function(a){return a!=="item"},
acceptsLines:!1},list:{continue:function(){return 0},
finalize:function(a,z){for(a=z._firstChild;a;){if(DHG(a)&&a._next){z._listData.tight=!1;break}for(var I=a._firstChild;I;){if(DHG(I)&&(a._next||I._next)){z._listData.tight=!1;break}I=I._next}a=a._next}},
canContain:function(a){return a==="item"},
acceptsLines:!1},block_quote:{continue:function(a){var z=a.currentLine;if(a.indented||ud(z,a.nextNonspace)!==62)return 1;F7(a);HY(a,1,!1);t$(ud(z,a.offset))&&HY(a,1,!0);return 0},
finalize:function(){},
canContain:function(a){return a!=="item"},
acceptsLines:!1},item:{continue:function(a,z){if(a.blank){if(z._firstChild==null)return 1;F7(a)}else if(a.indent>=z._listData.markerOffset+z._listData.padding)HY(a,z._listData.markerOffset+z._listData.padding,!0);else return 1;return 0},
finalize:function(){},
canContain:function(a){return a!=="item"&&!lui(a)},
acceptsLines:!1},heading:{continue:function(){return 1},
finalize:function(){},
canContain:function(){return!1},
acceptsLines:!1},thematic_break:{continue:function(){return 1},
finalize:function(){},
canContain:function(){return!1},
acceptsLines:!1},code_block:{continue:function(a,z){var I=a.currentLine,J=a.indent;if(z._isFenced){if((J=J<=3&&I.charAt(a.nextNonspace)===z._fenceChar&&I.slice(a.nextNonspace).match(w8w))&&J[0].length>=z._fenceLength)return a.finalize(z,a.lineNumber),2;for(z=z._fenceOffset;z>0&&t$(ud(I,a.offset));)HY(a,1,!0),z--}else if(J>=4)HY(a,4,!0);else if(a.blank)F7(a);else return 1;return 0},
finalize:function(a,z){if(z._isFenced){var I=z._string_content,J=I.indexOf("\n");a=I.slice(0,J);I=I.slice(J+1);z.info=qgO(a.trim());z._literal=I}else z._literal=z._string_content.replace(/(\n *)+$/,"\n");z._string_content=null},
canContain:function(){return!1},
acceptsLines:!0},html_block:{continue:function(a,z){return!a.blank||z._htmlBlockType!==6&&z._htmlBlockType!==7?0:1},
finalize:function(a,z){z._literal=z._string_content.replace(/(\n *)+$/,"");z._string_content=null},
canContain:function(){return!1},
acceptsLines:!0},paragraph:{continue:function(a){return a.blank?1:0},
finalize:function(a,z){for(var I,J=!1;ud(z._string_content,0)===91&&(I=X8G(a.inlineParser,z._string_content,a.refmap));)z._string_content=z._string_content.slice(I),J=!0;J&&!DKi.test(z._string_content)&&z.unlink()},
canContain:function(){return!1},
acceptsLines:!0},table:{continue:function(a){return EX(a.currentLine)!==0?0:1},
finalize:function(){},
canContain:function(a){return a=="row"},
acceptsLines:!1},row:{continue:function(){return 1},
finalize:function(a,z){if(!z._rowIsDelimiter){a=z._isHeader?"th":"td";for(var I=z._parent._tableColumns,J=z._string_content,r=0,P="",N,u=z._sourcepos[0][0];r<J.length;){switch(J[r]){case "|":N&&(N._string_content=P.trim(),P="",N=null,I--,I<=0&&(r=J.length));break;default:if(!N){N=new BJ(a,[[u,r],[u,r]]);var E=z._parent._columnAlignment,O=z._parent._tableColumns-I;E&&O<=E.length&&O>=0&&(N._alignment=E[O]);z.appendChild(N)}P+=J[r];N._sourcepos[1][1]=r}r++}N&&(N._string_content=P.trim());z._string_content=
""}},
canContain:function(a){return a!=="row"},
acceptsLines:!1}},Mkv=[function(a){if(a.indented||ud(a.currentLine,a.nextNonspace)!==62)return 0;F7(a);HY(a,1,!1);t$(ud(a.currentLine,a.offset))&&HY(a,1,!0);bY(a);a.addChild("block_quote",a.nextNonspace);return 1},
function(a){var z;if(!a.indented&&(z=a.currentLine.slice(a.nextNonspace).match(ltJ))){F7(a);HY(a,z[0].length,!1);bY(a);var I=a.addChild("heading",a.nextNonspace);I.level=z[0].trim().length;I._string_content=a.currentLine.slice(a.offset).replace(/^ *#+ *$/,"").replace(/ +#+ *$/,"");HY(a,a.currentLine.length-a.offset);return 2}return 0},
function(a){var z;if(!a.indented&&(z=a.currentLine.slice(a.nextNonspace).match(p8O))){var I=z[0].length;bY(a);var J=a.addChild("code_block",a.nextNonspace);J._isFenced=!0;J._fenceLength=I;J._fenceChar=z[0][0];J._fenceOffset=a.indent;F7(a);HY(a,I,!1);return 2}return 0},
function(a,z){if(!a.indented&&ud(a.currentLine,a.nextNonspace)===60){var I=a.currentLine.slice(a.nextNonspace),J;for(J=1;J<=7;J++)if(dKJ[J].test(I)&&(J<7||z.type!=="paragraph"))return bY(a),a.addChild("html_block",a.offset)._htmlBlockType=J,2}return 0},
function(a,z){var I;if(!a.indented&&z.type==="paragraph"&&(I=a.currentLine.slice(a.nextNonspace).match(mKv))){bY(a);var J=new BJ("heading",z.sourcepos);J.level=I[0][0]==="="?1:2;J._string_content=z._string_content;JfJ(z,J);z.unlink();a.tip=J;HY(a,a.currentLine.length-a.offset,!1);return 2}return 0},
function(a){return!a.indented&&oqj.test(a.currentLine.slice(a.nextNonspace))?(bY(a),a.addChild("thematic_break",a.nextNonspace),HY(a,a.currentLine.length-a.offset,!1),2):0},
function(a,z){var I,J;if(!(J=a.indented&&z.type!=="list")){a:{var r=z,P=a.currentLine.slice(a.nextNonspace);J={type:null,tight:!0,bulletChar:null,start:null,delimiter:null,padding:null,markerOffset:a.indent};if(I=P.match(Rhv))J.type="bullet",J.bulletChar=I[0][0];else{if(!(I=P.match(Lfw))||r.type==="paragraph"&&I[1]!=="1"){I=null;break a}J.type="ordered";J.start=parseInt(I[1],10);J.delimiter=I[2]}var N=ud(a.currentLine,a.nextNonspace+I[0].length);if(N!==-1&&N!==9&&N!==32||r.type==="paragraph"&&!a.currentLine.slice(a.nextNonspace+
I[0].length).match(DKi))I=null;else{F7(a);HY(a,I[0].length,!0);r=a.column;P=a.offset;do HY(a,1,!0),N=ud(a.currentLine,a.offset);while(a.column-r<5&&t$(N));N=ud(a.currentLine,a.offset)===-1;var u=a.column-r;u>=5||u<1||N?(J.padding=I[0].length+1,a.column=r,a.offset=P,t$(ud(a.currentLine,a.offset))&&HY(a,1,!0)):J.padding=I[0].length+u;I=J}}J=!I}if(J)return 0;bY(a);(J=a.tip.type!=="list")||(z=z._listData,J=!(z.type===I.type&&z.delimiter===I.delimiter&&z.bulletChar===I.bulletChar));J&&(z=a.addChild("list",
a.nextNonspace),z._listData=I);z=a.addChild("item",a.nextNonspace);z._listData=I;return 1},
function(a){var z;return((z=a.options.shouldParseIndentAsCodeBlock)!=null?z:1)&&a.indented&&a.tip.type!=="paragraph"&&!a.blank?(HY(a,4,!0),bY(a),a.addChild("code_block",a.offset),2):0},
function(a,z){var I=EX(a.currentLine),J=EX(a.lookahead);if(I!==0&&J<0&&Math.abs(I)==Math.abs(J)&&!lui(z.type)){bY(a);z=a.addChild("table",a.nextNonspace);z._tableRows=1;z._tableColumns=Math.abs(I);I=a.lookahead;if(Lgm.test(I)){J=[];for(var r=0,P=!1,N=0,u=void 0;r<I.length;){var E=N>=3;switch(I[r]){case "-":N++;break;case "|":P&&(J.push(u),u=void 0,N=0);P=!0;break;case ":":u||E||(u="left"),!u&&E&&(u="right"),u==="left"&&E&&(u="center")}r++}I=J}else I=void 0;z._columnAlignment=I;z=a.addChild("row",
a.nextNonspace);z._isHeader=!0;HY(a,a.currentLine.length-a.offset,!1);z._string_content=a.currentLine;return 1}return 0},
function(a,z){if(z.type=="table"&&EX(a.currentLine)!==0){bY(a);var I=z;z=a.addChild("row",a.nextNonspace);EX(a.currentLine)<0?z._rowIsDelimiter=!0:I._tableRows+=1;HY(a,a.currentLine.length-a.offset,!1);z._string_content=a.currentLine;return 2}return 0}],VS0=function(){var a={shouldParseIndentAsCodeBlock:!1};
a=a===void 0?{}:a;this.lastMatchedContainer=this.doc=prM();this.refmap={};this.lastLineLength=0;this.inlineParser=new n$(a);this.options=a;this.oldtip=this.tip=this.doc;this.lookahead=this.currentLine="";this.indent=this.nextNonspaceColumn=this.nextNonspace=this.column=this.offset=this.lineNumber=0;this.partiallyConsumedTab=this.blank=this.indented=!1;this.allClosed=!0;this.blocks=kdI;this.blockStarts=Mkv},cfw=function(a){a.partiallyConsumedTab&&(a.offset+=1,a.tip._string_content+=" ".repeat(4-a.column%
4));
a.tip._string_content+=a.currentLine.slice(a.offset)+"\n"};
VS0.prototype.addChild=function(a,z){for(;!this.blocks[this.tip.type].canContain(a);)this.finalize(this.tip,this.lineNumber-1);a=new BJ(a,[[this.lineNumber,z+1],[0,0]]);a._string_content="";this.tip.appendChild(a);return this.tip=a};
var bY=function(a){if(!a.allClosed){for(;a.oldtip!==a.lastMatchedContainer;){var z=a.oldtip._parent;a.finalize(a.oldtip,a.lineNumber-1);a.oldtip=z}a.allClosed=!0}},HY=function(a,z,I){for(var J=a.currentLine,r,P;z>0&&(P=J[a.offset]);)P==="\t"?(r=4-a.column%4,I?(a.partiallyConsumedTab=r>z,r=r>z?z:r,a.column+=r,a.offset+=a.partiallyConsumedTab?0:1,z-=r):(a.partiallyConsumedTab=!1,a.column+=r,a.offset+=1,--z)):(a.partiallyConsumedTab=!1,a.offset+=1,a.column+=1,--z)},F7=function(a){a.offset=a.nextNonspace;
a.column=a.nextNonspaceColumn;a.partiallyConsumedTab=!1},YWw=function(a){for(var z=a.currentLine,I=a.offset,J=a.column,r;(r=z.charAt(I))!=="";)if(r===" ")I++,J++;
else if(r==="\t")I++,J+=4-J%4;else break;a.blank=r==="\n"||r==="\r"||r==="";a.nextNonspace=I;a.nextNonspaceColumn=J;a.indent=a.nextNonspaceColumn-a.column;a.indented=a.indent>=4};
VS0.prototype.finalize=function(a,z){var I=a._parent;a._open=!1;a.sourcepos[1]=[z,this.lastLineLength];this.blocks[a.type].finalize(this,a);this.tip=I};
VS0.prototype.parse=function(a){this.tip=this.doc=prM();this.refmap={};this.column=this.offset=this.lastLineLength=this.lineNumber=0;this.lastMatchedContainer=this.doc;this.currentLine="";if(!a)return this.doc;this.options.time&&console.time("preparing input");var z=a.split(yfl),I=z.length;a.charCodeAt(a.length-1)===10&&--I;this.options.time&&console.timeEnd("preparing input");this.options.time&&console.time("block parsing");for(a=0;a<I;a++)a:{var J=void 0,r=z[a],P=z[a+1],N=!0,u=this.doc;this.oldtip=
this.tip;this.column=this.offset=0;this.partiallyConsumedTab=this.blank=!1;this.lineNumber+=1;r.indexOf("\x00")!==-1&&(r=r.replace(/\0/g,"\ufffd"));this.currentLine=r;for(this.lookahead=P;(J=u._lastChild)&&J._open;){u=J;YWw(this);switch(this.blocks[u.type].continue(this,u)){case 0:break;case 1:N=!1;break;case 2:this.lastLineLength=r.length;break a;default:throw"continue returned illegal value, must be 0, 1, or 2";}if(!N){u=u._parent;break}}this.allClosed=u===this.oldtip;this.lastMatchedContainer=
u;J=u.type!=="paragraph"&&kdI[u.type].acceptsLines;P=this.blockStarts;for(N=P.length;!J;){YWw(this);if(!this.indented&&!UKw.test(r.slice(this.nextNonspace))){F7(this);break}for(var E=0;E<N;){var O=P[E](this,u);if(O===1){u=this.tip;break}else if(O===2){u=this.tip;J=!0;break}else E++}if(E===N){F7(this);break}}if(this.allClosed||this.blank||this.tip.type!=="paragraph"){bY(this);this.blank&&u.lastChild&&(u.lastChild._lastLineBlank=!0);J=u.type;P=this.blank&&!(J==="block_quote"||J==="code_block"&&u._isFenced||
J==="item"&&!u._firstChild&&u.sourcepos[0][0]===this.lineNumber);for(N=u;N;)N._lastLineBlank=P,N=N._parent;this.blocks[J].acceptsLines?(cfw(this),J==="html_block"&&u._htmlBlockType>=1&&u._htmlBlockType<=5&&WfX[u._htmlBlockType].test(this.currentLine.slice(this.offset))&&this.finalize(u,this.lineNumber)):this.offset<r.length&&!this.blank&&(this.addChild("paragraph",this.offset),F7(this),cfw(this))}else cfw(this);this.lastLineLength=r.length}for(;this.tip;)this.finalize(this.tip,I);this.options.time&&
console.timeEnd("block parsing");this.options.time&&console.time("inline parsing");r=new ItE(this.doc);this.inlineParser.refmap=this.refmap;for(this.inlineParser.options=this.options;I=r.next();)z=I.node,a=z.type,I.entering||a!=="paragraph"&&a!=="heading"&&a!=="th"&&a!="td"||this.inlineParser.parse(z);this.options.time&&console.timeEnd("inline parsing");return this.doc};wrd.prototype.render=function(a){a=new ItE(a);var z;this.buffer="";for(this.lastOut="\n";z=a.next();){var I=z.node.type;if(this[I])this[I](z.node,z.entering)}return this.buffer};
wrd.prototype.out=function(a){hN(this,a)};
var hN=function(a,z){a.buffer+=z;a.lastOut=z};
wrd.prototype.cr=function(){this.lastOut!=="\n"&&hN(this,"\n")};var qWI=/^javascript:|vbscript:|file:|data:/i,ehE=/^data:image\/(?:png|gif|jpeg|webp)/i,acw=function(a){return qWI.test(a)&&!ehE.test(a)};
gF.prototype=Object.create(wrd.prototype);_.Z=gF.prototype;_.Z.text=function(a){this.out(a.literal)};
_.Z.html_inline=function(a){this.options.safe?hN(this,"\x3c!-- raw HTML omitted --\x3e"):hN(this,a.literal)};
_.Z.html_block=function(a){this.cr();this.options.safe?hN(this,"\x3c!-- raw HTML omitted --\x3e"):hN(this,a.literal);this.cr()};
_.Z.softbreak=function(){hN(this,this.options.softbreak)};
_.Z.linebreak=function(){this.tag("br",[],!0);this.cr()};
_.Z.link=function(a,z){var I=this.attrs(a);z?(this.options.safe&&acw(a.destination)||I.push(["href",f$(a.destination,!0)]),a.title&&I.push(["title",f$(a.title,!0)]),this.tag("a",I)):this.tag("/a")};
_.Z.image=function(a,z){z?(this.disableTags===0&&(this.options.safe&&acw(a.destination)?hN(this,'<img src="" alt="'):hN(this,'<img src="'+f$(a.destination,!0)+'" alt="')),this.disableTags+=1):(--this.disableTags,this.disableTags===0&&(a.title&&hN(this,'" title="'+f$(a.title,!0)),hN(this,'" />')))};
_.Z.emph=function(a,z){this.tag(z?"em":"/em")};
_.Z.strong=function(a,z){this.tag(z?"strong":"/strong")};
_.Z.paragraph=function(a,z){var I=a.parent.parent;a=this.attrs(a);I!==null&&I.type==="list"&&I.listTight||(z?(this.cr(),this.tag("p",a)):(this.tag("/p"),this.cr()))};
_.Z.heading=function(a,z){var I="h"+a.level;a=this.attrs(a);z?(this.cr(),this.tag(I,a)):(this.tag("/"+I),this.cr())};
_.Z.code=function(a){this.tag("code");this.out(a.literal);this.tag("/code")};
_.Z.code_block=function(a){var z=a.info?a.info.split(/\s+/):[],I=this.attrs(a);z.length>0&&z[0].length>0&&I.push(["class","language-"+f$(z[0],!0)]);this.cr();this.tag("pre");this.tag("code",I);this.out(a.literal);this.tag("/code");this.tag("/pre");this.cr()};
_.Z.thematic_break=function(a){a=this.attrs(a);this.cr();this.tag("hr",a,!0);this.cr()};
_.Z.block_quote=function(a,z){a=this.attrs(a);z?(this.cr(),this.tag("blockquote",a)):(this.cr(),this.tag("/blockquote"));this.cr()};
_.Z.list=function(a,z){var I=a.listType==="bullet"?"ul":"ol",J=this.attrs(a);z?(a=a.listStart,a!==null&&a!==1&&J.push(["start",a.toString()]),this.cr(),this.tag(I,J)):(this.cr(),this.tag("/"+I));this.cr()};
_.Z.item=function(a,z){a=this.attrs(a);z?this.tag("li",a):(this.tag("/li"),this.cr())};
_.Z.custom_inline=function(a,z){z&&a.onEnter?hN(this,a.onEnter):!z&&a.onExit&&hN(this,a.onExit)};
_.Z.custom_block=function(a,z){this.cr();z&&a.onEnter?hN(this,a.onEnter):!z&&a.onExit&&hN(this,a.onExit);this.cr()};
_.Z.table=function(a,z){a=this.attrs(a);z?(this.cr(),this.tag("table",a)):(this.tag("/table"),this.cr())};
_.Z.row=function(a,z){a._rowIsDelimiter||(a=this.attrs(a),z?this.tag("tr",a):this.tag("/tr"))};
_.Z.td=function(a,z){var I=this.attrs(a);a._alignment&&I.push(["align",a._alignment]);z?this.tag("td",I):this.tag("/td")};
_.Z.th=function(a,z){var I=this.attrs(a);a._alignment&&I.push(["align",a._alignment]);z?this.tag("th",I):this.tag("/th")};
_.Z.out=function(a){hN(this,f$(a,!1))};
_.Z.tag=function(a,z,I){if(!(this.disableTags>0)){this.buffer+="<"+a;if(z&&z.length>0){a=0;for(var J;(J=z[a])!==void 0;)this.buffer+=" "+J[0]+'="'+J[1]+'"',a++}I&&(this.buffer+=" /");this.buffer+=">";this.lastOut=">"}};
_.Z.attrs=function(a){var z=[];this.options.sourcepos&&(a=a.sourcepos)&&z.push(["data-sourcepos",String(a[0][0])+":"+String(a[0][1])+"-"+String(a[1][0])+":"+String(a[1][1])]);return z};
gF.prototype.text=gF.prototype.text;gF.prototype.html_inline=gF.prototype.html_inline;gF.prototype.html_block=gF.prototype.html_block;gF.prototype.softbreak=gF.prototype.softbreak;gF.prototype.linebreak=gF.prototype.linebreak;gF.prototype.link=gF.prototype.link;gF.prototype.image=gF.prototype.image;gF.prototype.emph=gF.prototype.emph;gF.prototype.strong=gF.prototype.strong;gF.prototype.paragraph=gF.prototype.paragraph;gF.prototype.heading=gF.prototype.heading;gF.prototype.code=gF.prototype.code;
gF.prototype.code_block=gF.prototype.code_block;gF.prototype.thematic_break=gF.prototype.thematic_break;gF.prototype.block_quote=gF.prototype.block_quote;gF.prototype.list=gF.prototype.list;gF.prototype.item=gF.prototype.item;gF.prototype.custom_inline=gF.prototype.custom_inline;gF.prototype.custom_block=gF.prototype.custom_block;gF.prototype.table=gF.prototype.table;gF.prototype.row=gF.prototype.row;gF.prototype.td=gF.prototype.td;gF.prototype.th=gF.prototype.th;gF.prototype.out=gF.prototype.out;
gF.prototype.tag=gF.prototype.tag;gF.prototype.attrs=gF.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 jKj,zpo,hJG;(function(){function a(T,X){return T<X?-1:T>X?1:T>=X?0:NaN}
function z(T){return function(X,R){return a(T(X),R)}}
function I(){for(var T=0,X=arguments.length,R={},jM;T<X;++T){if(!(jM=arguments[T]+"")||jM in R)throw Error("pe`"+jM);R[jM]=[]}return new J(R)}
function J(T){this._=T}
function r(T,X){return T.trim().split(/^|\s+/).map(function(R){var jM="",CG=R.indexOf(".");CG>=0&&(jM=R.slice(CG+1),R=R.slice(0,CG));if(R&&!X.hasOwnProperty(R))throw Error("qe`"+R);return{type:R,name:jM}})}
function P(T,X,R){for(var jM=0,CG=T.length;jM<CG;++jM)if(T[jM].name===X){T[jM]=EE4;T=T.slice(0,jM).concat(T.slice(jM+1));break}R!=null&&T.push({name:X,value:R});return T}
function N(T){var X=T,R=X.indexOf(":");R>=0&&(X=T.slice(0,R))!=="xmlns"&&(T=T.slice(R+1));return V5.hasOwnProperty(X)?{space:V5[X],local:T}:T}
function u(T){return function(){var X=this.ownerDocument,R=this.namespaceURI;return R==="http://www.w3.org/1999/xhtml"&&X.documentElement.namespaceURI==="http://www.w3.org/1999/xhtml"?X.createElement(T):X.createElementNS(R,T)}}
function E(T){return function(){return this.ownerDocument.createElementNS(T.space,T.local)}}
function O(T){T=N(T);return(T.local?E:u)(T)}
function f(){}
function A(T){return T==null?f:function(){return this.querySelector(T)}}
function n(T){return Array(T.length)}
function F(T,X){this.ownerDocument=T.ownerDocument;this.namespaceURI=T.namespaceURI;this._next=null;this._parent=T;this.__data__=X}
function h(T){return function(){return T}}
function v(T,X,R,jM,CG,A1){for(var h1=0,$7,zJ=X.length,Y7=A1.length;h1<Y7;++h1)($7=X[h1])?($7.__data__=A1[h1],jM[h1]=$7):R[h1]=new F(T,A1[h1]);for(;h1<zJ;++h1)if($7=X[h1])CG[h1]=$7}
function d(T,X,R,jM,CG,A1,h1){var $7,zJ,Y7={},Iw=X.length,OO=A1.length,ME=Array(Iw),QV;for($7=0;$7<Iw;++$7)if(zJ=X[$7])ME[$7]=QV="$"+h1.call(zJ,zJ.__data__,$7,X),QV in Y7?CG[$7]=zJ:Y7[QV]=zJ;for($7=0;$7<OO;++$7)QV="$"+h1.call(T,A1[$7],$7,A1),(zJ=Y7[QV])?(jM[$7]=zJ,zJ.__data__=A1[$7],Y7[QV]=null):R[$7]=new F(T,A1[$7]);for($7=0;$7<Iw;++$7)(zJ=X[$7])&&Y7[ME[$7]]===zJ&&(CG[$7]=zJ)}
function W(T,X){return T<X?-1:T>X?1:T>=X?0:NaN}
function l(T){return function(){this.removeAttribute(T)}}
function q(T){return function(){this.removeAttributeNS(T.space,T.local)}}
function m(T,X){return function(){this.setAttribute(T,X)}}
function M(T,X){return function(){this.setAttributeNS(T.space,T.local,X)}}
function y(T,X){return function(){var R=X.apply(this,arguments);R==null?this.removeAttribute(T):this.setAttribute(T,R)}}
function e(T,X){return function(){var R=X.apply(this,arguments);R==null?this.removeAttributeNS(T.space,T.local):this.setAttributeNS(T.space,T.local,R)}}
function Bp(T){return function(){this.style.removeProperty(T)}}
function Em(T,X,R){return function(){this.style.setProperty(T,X,R)}}
function nG(T,X,R){return function(){var jM=X.apply(this,arguments);jM==null?this.style.removeProperty(T):this.style.setProperty(T,jM,R)}}
function bG(T,X){return T.style.getPropertyValue(X)||(T.ownerDocument&&T.ownerDocument.defaultView||T.document&&T||T.defaultView).getComputedStyle(T,null).getPropertyValue(X)}
function Hp(T){return function(){delete this[T]}}
function LG(T,X){return function(){this[T]=X}}
function oE(T,X){return function(){var R=X.apply(this,arguments);R==null?delete this[T]:this[T]=R}}
function Pe(){this.textContent=""}
function TJ(T){return function(){this.textContent=T}}
function Be(T){return function(){var X=T.apply(this,arguments);this.textContent=X==null?"":X}}
function eM(){this.innerHTML=""}
function Ao(T){return function(){this.innerHTML=T}}
function gf(T){return function(){var X=T.apply(this,arguments);this.innerHTML=X==null?"":X}}
function GJ(){return null}
function Sf(){var T=this.parentNode;T&&T.removeChild(this)}
function ce(){return this.parentNode.insertBefore(this.cloneNode(!1),this.nextSibling)}
function r$(){return this.parentNode.insertBefore(this.cloneNode(!0),this.nextSibling)}
function aw(T,X,R){T=Kl(T,X,R);return function(jM){var CG=jM.relatedTarget;CG&&(CG===this||CG.compareDocumentPosition(this)&8)||T.call(this,jM)}}
function Kl(T,X,R){return function(){T.call(this,this.__data__,X,R)}}
function EG(T){return T.trim().split(/^|\s+/).map(function(X){var R="",jM=X.indexOf(".");jM>=0&&(R=X.slice(jM+1),X=X.slice(0,jM));return{type:X,name:R}})}
function F1(T){return function(){var X=this.__on;if(X){for(var R=0,jM=-1,CG=X.length,A1;R<CG;++R)(A1=X[R],T.type&&A1.type!==T.type||A1.name!==T.name)?X[++jM]=A1:this.removeEventListener(A1.type,A1.listener,A1.capture);++jM?X.length=jM:delete this.__on}}}
function jf(T,X,R){var jM=U_w.hasOwnProperty(T.type)?aw:Kl;return function(CG,A1,h1){CG=this.__on;var $7;A1=jM(X,A1,h1);if(CG){h1=0;for(var zJ=CG.length;h1<zJ;++h1)if(($7=CG[h1]).type===T.type&&$7.name===T.name){this.removeEventListener($7.type,$7.listener,$7.capture);this.addEventListener($7.type,$7.listener=A1,$7.capture=R);$7.value=X;return}}this.addEventListener(T.type,A1,R);$7={type:T.type,name:T.name,value:X,listener:A1,capture:R};CG?CG.push($7):this.__on=[$7]}}
function zj(T,X,R){var jM=T.ownerDocument&&T.ownerDocument.defaultView||T.document&&T||T.defaultView,CG=jM.CustomEvent;typeof CG==="function"?CG=new CG(X,R):(CG=jM.document.createEvent("Event"),R?(CG.initEvent(X,R.bubbles,R.cancelable),CG.detail=R.detail):CG.initEvent(X,!1,!1));T.dispatchEvent(CG)}
function aZ(T,X){return function(){return zj(this,T,X)}}
function Cl(T,X){return function(){return zj(this,T,X.apply(this,arguments))}}
function kG(T,X){this._groups=T;this._parents=X}
function sG(){return new kG([[document.documentElement]],BhM)}
function SI(){this._="@"+(++gEG).toString(36)}
function iw(T,X,R){T.prototype=X.prototype=R;R.constructor=T}
function H4(T,X){T=Object.create(T.prototype);for(var R in X)T[R]=X[R];return T}
function ty(){}
function fZ(T){var X;T=(T+"").trim().toLowerCase();return(X=O$0.exec(T))?(X=parseInt(X[1],16),new wE(X>>8&15|X>>4&240,X>>4&15|X&240,(X&15)<<4|X&15,1)):(X=fff.exec(T))?ST(parseInt(X[1],16)):(X=ANZ.exec(T))?new wE(X[1],X[2],X[3],1):(X=sJM.exec(T))?new wE(X[1]*255/100,X[2]*255/100,X[3]*255/100,1):(X=nEG.exec(T))?K6(X[1],X[2],X[3],X[4]):(X=Kt0.exec(T))?K6(X[1]*255/100,X[2]*255/100,X[3]*255/100,X[4]):(X=FtM.exec(T))?SL(X[1],X[2]/100,X[3]/100,1):(X=H$M.exec(T))?SL(X[1],X[2]/100,X[3]/100,X[4]):D_O.hasOwnProperty(T)?
ST(D_O[T]):T==="transparent"?new wE(NaN,NaN,NaN,0):null}
function ST(T){return new wE(T>>16&255,T>>8&255,T&255,1)}
function K6(T,X,R,jM){jM<=0&&(T=X=R=NaN);return new wE(T,X,R,jM)}
function Ll(T){T instanceof ty||(T=fZ(T));if(!T)return new wE;T=T.rgb();return new wE(T.r,T.g,T.b,T.opacity)}
function dE(T,X,R,jM){return arguments.length===1?Ll(T):new wE(T,X,R,jM==null?1:jM)}
function wE(T,X,R,jM){this.r=+T;this.g=+X;this.b=+R;this.opacity=+jM}
function NL(T){T=Math.max(0,Math.min(255,Math.round(T)||0));return(T<16?"0":"")+T.toString(16)}
function SL(T,X,R,jM){jM<=0?T=X=R=NaN:R<=0||R>=1?T=X=NaN:X<=0&&(T=NaN);return new vy(T,X,R,jM)}
function ed(T){if(T instanceof vy)return new vy(T.h,T.s,T.l,T.opacity);T instanceof ty||(T=fZ(T));if(!T)return new vy;if(T instanceof vy)return T;T=T.rgb();var X=T.r/255,R=T.g/255,jM=T.b/255,CG=Math.min(X,R,jM),A1=Math.max(X,R,jM),h1=NaN,$7=A1-CG,zJ=(A1+CG)/2;$7?(h1=X===A1?(R-jM)/$7+(R<jM)*6:R===A1?(jM-X)/$7+2:(X-R)/$7+4,$7/=zJ<.5?A1+CG:2-A1-CG,h1*=60):$7=zJ>0&&zJ<1?0:h1;return new vy(h1,$7,zJ,T.opacity)}
function HL(T,X,R,jM){return arguments.length===1?ed(T):new vy(T,X,R,jM==null?1:jM)}
function vy(T,X,R,jM){this.h=+T;this.s=+X;this.l=+R;this.opacity=+jM}
function CB(T,X,R){return(T<60?X+(R-X)*T/60:T<180?R:T<240?X+(R-X)*(240-T)/60:X)*255}
function q$(T){if(T instanceof SM)return new SM(T.l,T.a,T.b,T.opacity);if(T instanceof bw){if(isNaN(T.h))return new SM(T.l,0,0,T.opacity);var X=T.h*R3J;return new SM(T.l,Math.cos(X)*T.c,Math.sin(X)*T.c,T.opacity)}T instanceof wE||(T=Ll(T));var R=B4(T.r),jM=B4(T.g),CG=B4(T.b);X=Wp(.2225045*R+.7168786*jM+.0606169*CG);if(R===jM&&jM===CG)var A1=R=X;else A1=Wp((.4360747*R+.3850649*jM+.1430804*CG)/.96422),R=Wp((.0139322*R+.0971045*jM+.7141733*CG)/.82521);return new SM(116*X-16,500*(A1-X),200*(X-R),T.opacity)}
function SM(T,X,R,jM){this.l=+T;this.a=+X;this.b=+R;this.opacity=+jM}
function Wp(T){return T>b$Z?Math.pow(T,1/3):T/Lhl+lOv}
function w$(T){return T>ci?T*T*T:Lhl*(T-lOv)}
function sO(T){return 255*(T<=.0031308?12.92*T:1.055*Math.pow(T,1/2.4)-.055)}
function B4(T){return(T/=255)<=.04045?T/12.92:Math.pow((T+.055)/1.055,2.4)}
function v9(T){if(T instanceof bw)return new bw(T.h,T.c,T.l,T.opacity);T instanceof SM||(T=q$(T));if(T.a===0&&T.b===0)return new bw(NaN,0,T.l,T.opacity);var X=Math.atan2(T.b,T.a)*pSX;return new bw(X<0?X+360:X,Math.sqrt(T.a*T.a+T.b*T.b),T.l,T.opacity)}
function VV(T,X,R,jM){return arguments.length===1?v9(T):new bw(T,X,R,jM==null?1:jM)}
function bw(T,X,R,jM){this.h=+T;this.c=+X;this.l=+R;this.opacity=+jM}
function He(T,X,R,jM){if(arguments.length===1){var CG=T;if(CG instanceof XM)CG=new XM(CG.h,CG.s,CG.l,CG.opacity);else{CG instanceof wE||(CG=Ll(CG));var A1=CG.g/255,h1=CG.b/255,$7=(wSI*h1+CG.r/255*-1.7884503806-3.5172982438*A1)/(wSI+-1.7884503806-3.5172982438);h1-=$7;var zJ=(1.97294*(A1-$7)- -.29227*h1)/-.90649;h1=(A1=Math.sqrt(zJ*zJ+h1*h1)/(1.97294*$7*(1-$7)))?Math.atan2(zJ,h1)*pSX-120:NaN;CG=new XM(h1<0?h1+360:h1,A1,$7,CG.opacity)}}else CG=new XM(T,X,R,jM==null?1:jM);return CG}
function XM(T,X,R,jM){this.h=+T;this.s=+X;this.l=+R;this.opacity=+jM}
function f4(T,X,R,jM,CG){var A1=T*T,h1=A1*T;return((1-3*T+3*A1-h1)*X+(4-6*A1+3*h1)*R+(1+3*T+3*A1-3*h1)*jM+h1*CG)/6}
function fl(T){return function(){return T}}
function Fm(T,X){return function(R){return T+R*X}}
function XC(T,X,R){return T=Math.pow(T,R),X=Math.pow(X,R)-T,R=1/R,function(jM){return Math.pow(T+jM*X,R)}}
function ot(T,X){var R=X-T;return R?Fm(T,R>180||R<-180?R-360*Math.round(R/360):R):fl(isNaN(T)?X:T)}
function $X(T){return(T=+T)===1?d2:function(X,R){return R-X?XC(X,R,T):fl(isNaN(X)?R:X)}}
function d2(T,X){var R=X-T;return R?Fm(T,R):fl(isNaN(T)?X:T)}
function DG(T){return function(X){var R=X.length,jM=Array(R),CG=Array(R),A1=Array(R),h1;for(h1=0;h1<R;++h1){var $7=dE(X[h1]);jM[h1]=$7.r||0;CG[h1]=$7.g||0;A1[h1]=$7.b||0}jM=T(jM);CG=T(CG);A1=T(A1);$7.opacity=1;return function(zJ){$7.r=jM(zJ);$7.g=CG(zJ);$7.b=A1(zJ);return $7+""}}}
function HH(T,X){return T=+T,X-=T,function(R){return T+X*R}}
function AE(T){return function(){return T}}
function kC(T){return function(X){return T(X)+""}}
function k7(T,X){var R=eGG.lastIndex=asp.lastIndex=0,jM,CG,A1,h1=-1,$7=[],zJ=[];T+="";for(X+="";(jM=eGG.exec(T))&&(CG=asp.exec(X));)(A1=CG.index)>R&&(A1=X.slice(R,A1),$7[h1]?$7[h1]+=A1:$7[++h1]=A1),(jM=jM[0])===(CG=CG[0])?$7[h1]?$7[h1]+=CG:$7[++h1]=CG:($7[++h1]=null,zJ.push({i:h1,x:HH(jM,CG)})),R=asp.lastIndex;R<X.length&&(A1=X.slice(R),$7[h1]?$7[h1]+=A1:$7[++h1]=A1);return $7.length<2?zJ[0]?kC(zJ[0].x):AE(X):(X=zJ.length,function(Y7){for(var Iw=0,OO;Iw<X;++Iw)$7[(OO=zJ[Iw]).i]=OO.x(Y7);return $7.join("")})}
function nZ(T,X,R,jM,CG,A1){var h1,$7,zJ;if(h1=Math.sqrt(T*T+X*X))T/=h1,X/=h1;if(zJ=T*R+X*jM)R-=T*zJ,jM-=X*zJ;if($7=Math.sqrt(R*R+jM*jM))R/=$7,jM/=$7,zJ/=$7;T*jM<X*R&&(T=-T,X=-X,zJ=-zJ,h1=-h1);return{translateX:CG,translateY:A1,rotate:Math.atan2(X,T)*m_o,skewX:Math.atan(zJ)*m_o,scaleX:h1,scaleY:$7}}
function TY(T,X,R,jM){function CG(Y7){return Y7.length?Y7.pop()+" ":""}
function A1(Y7,Iw,OO,ME,QV,n4){Y7!==OO||Iw!==ME?(QV=QV.push("translate(",null,X,null,R),n4.push({i:QV-4,x:HH(Y7,OO)},{i:QV-2,x:HH(Iw,ME)})):(OO||ME)&&QV.push("translate("+OO+X+ME+R)}
function h1(Y7,Iw,OO,ME){Y7!==Iw?(Y7-Iw>180?Iw+=360:Iw-Y7>180&&(Y7+=360),ME.push({i:OO.push(CG(OO)+"rotate(",null,jM)-2,x:HH(Y7,Iw)})):Iw&&OO.push(CG(OO)+"rotate("+Iw+jM)}
function $7(Y7,Iw,OO,ME){Y7!==Iw?ME.push({i:OO.push(CG(OO)+"skewX(",null,jM)-2,x:HH(Y7,Iw)}):Iw&&OO.push(CG(OO)+"skewX("+Iw+jM)}
function zJ(Y7,Iw,OO,ME,QV,n4){Y7!==OO||Iw!==ME?(QV=QV.push(CG(QV)+"scale(",null,",",null,")"),n4.push({i:QV-4,x:HH(Y7,OO)},{i:QV-2,x:HH(Iw,ME)})):OO===1&&ME===1||QV.push(CG(QV)+"scale("+OO+","+ME+")")}
return function(Y7,Iw){var OO=[],ME=[];Y7=T(Y7);Iw=T(Iw);A1(Y7.translateX,Y7.translateY,Iw.translateX,Iw.translateY,OO,ME);h1(Y7.rotate,Iw.rotate,OO,ME);$7(Y7.skewX,Iw.skewX,OO,ME);zJ(Y7.scaleX,Y7.scaleY,Iw.scaleX,Iw.scaleY,OO,ME);Y7=Iw=null;return function(QV){for(var n4=-1,Uk=ME.length,HP;++n4<Uk;)OO[(HP=ME[n4]).i]=HP.x(QV);return OO.join("")}}}
function ZE(T){return function(X,R){var jM=T((X=HL(X)).h,(R=HL(R)).h),CG=d2(X.s,R.s),A1=d2(X.l,R.l),h1=d2(X.opacity,R.opacity);return function($7){X.h=jM($7);X.s=CG($7);X.l=A1($7);X.opacity=h1($7);return X+""}}}
function NM(T){return function(X,R){var jM=T((X=VV(X)).h,(R=VV(R)).h),CG=d2(X.c,R.c),A1=d2(X.l,R.l),h1=d2(X.opacity,R.opacity);return function($7){X.h=jM($7);X.c=CG($7);X.l=A1($7);X.opacity=h1($7);return X+""}}}
function pB(T){return function jM(R){function CG(A1,h1){var $7=T((A1=He(A1)).h,(h1=He(h1)).h),zJ=d2(A1.s,h1.s),Y7=d2(A1.l,h1.l),Iw=d2(A1.opacity,h1.opacity);return function(OO){A1.h=$7(OO);A1.s=zJ(OO);A1.l=Y7(Math.pow(OO,R));A1.opacity=Iw(OO);return A1+""}}
R=+R;CG.gamma=jM;return CG}(1)}
function Ta(){return vM||(yqj(Ug),vM=fT.now()+AP7)}
function Ug(){vM=0}
function sN(){this._call=this._time=this._next=null}
function N2(T,X,R){var jM=new sN;jM.restart(T,X,R);return jM}
function tu(){vM=(sb$=fT.now())+AP7;Yb=Ap=0;try{Ta();++Yb;for(var T=nji,X;T;)(X=vM-T._time)>=0&&T._call.call(null,X),T=T._next;--Yb}finally{Yb=0;T=nji;for(var R=Infinity;T;)if(T._call){R>T._time&&(R=T._time);var jM=T;T=T._next}else X=T._next,T._next=null,T=jM?jM._next=X:nji=X;sY=jM;ut(R);vM=0}}
function oB$(){var T=fT.now(),X=T-sb$;X>1E3&&(AP7-=X,sb$=T)}
function ut(T){Yb||(Ap&&(Ap=clearTimeout(Ap)),T-vM>24?(T<Infinity&&(Ap=setTimeout(tu,T-fT.now()-AP7)),nT&&(nT=clearInterval(nT))):(nT||(sb$=fT.now(),nT=setInterval(oB$,1E3)),Yb=1,yqj(tu)))}
function kG1(T,X,R){var jM=new sN;X=X==null?0:+X;jM.restart(function(CG){jM.stop();T(CG+X)},X,R);
return jM}
function jTd(T,X,R,jM,CG,A1){var h1=T.__transition;if(!h1)T.__transition={};else if(R in h1)return;hcY(T,R,{name:X,index:jM,group:CG,on:V_Z,tween:QJG,time:A1.time,delay:A1.delay,duration:A1.duration,ease:A1.ease,timer:null,state:0})}
function zR7(T,X){T=gG(T,X);if(T.state>0)throw Error("re");return T}
function Gv(T,X){T=gG(T,X);if(T.state>2)throw Error("se");return T}
function gG(T,X){T=T.__transition;if(!T||!(T=T[X]))throw Error("te");return T}
function hcY(T,X,R){function jM(zJ){var Y7,Iw;if(R.state!==1)return A1();for(ME in h1){var OO=h1[ME];if(OO.name===R.name){if(OO.state===3)return kG1(jM);OO.state===4?(OO.state=6,OO.timer.stop(),OO.on.call("interrupt",T,T.__data__,OO.index,OO.group),delete h1[ME]):+ME<X&&(OO.state=6,OO.timer.stop(),delete h1[ME])}}kG1(function(){R.state===3&&(R.state=4,R.timer.restart(CG,R.delay,R.time),CG(zJ))});
R.state=2;R.on.call("start",T,T.__data__,R.index,R.group);if(R.state===2){R.state=3;$7=Array(Iw=R.tween.length);var ME=0;for(Y7=-1;ME<Iw;++ME)if(OO=R.tween[ME].value.call(T,T.__data__,R.index,R.group))$7[++Y7]=OO;$7.length=Y7+1}}
function CG(zJ){zJ=zJ<R.duration?R.ease.call(null,zJ/R.duration):(R.timer.restart(A1),R.state=5,1);for(var Y7=-1,Iw=$7.length;++Y7<Iw;)$7[Y7].call(null,zJ);R.state===5&&(R.on.call("end",T,T.__data__,R.index,R.group),A1())}
function A1(){R.state=6;R.timer.stop();delete h1[X];for(var zJ in h1)return;delete T.__transition}
var h1=T.__transition,$7;h1[X]=R;R.timer=N2(function(zJ){R.state=1;R.timer.restart(jM,R.delay,R.time);R.delay<=zJ&&jM(zJ-R.delay)},0,R.time)}
function Sx0(T,X){var R,jM;return function(){var CG=Gv(this,T),A1=CG.tween;if(A1!==R){jM=R=A1;A1=0;for(var h1=jM.length;A1<h1;++A1)if(jM[A1].name===X){jM=jM.slice();jM.splice(A1,1);break}}CG.tween=jM}}
function i$z(T,X,R){var jM,CG;if(typeof R!=="function")throw Error();return function(){var A1=Gv(this,T),h1=A1.tween;if(h1!==jM){CG=(jM=h1).slice();h1={name:X,value:R};for(var $7=0,zJ=CG.length;$7<zJ;++$7)if(CG[$7].name===X){CG[$7]=h1;break}$7===zJ&&CG.push(h1)}A1.tween=CG}}
function Is$(T,X,R){var jM=T._id;T.each(function(){var CG=Gv(this,jM);(CG.value||(CG.value={}))[X]=R.apply(this,arguments)});
return function(CG){return gG(CG,jM).value[X]}}
function MKi(T,X){var R;return(typeof X==="number"?HH:X instanceof fZ?cqw:(R=fZ(X))?(X=R,cqw):k7)(T,X)}
function xbV(T){return function(){this.removeAttribute(T)}}
function vEM(T){return function(){this.removeAttributeNS(T.space,T.local)}}
function Gsf(T,X,R){var jM,CG;return function(){var A1=this.getAttribute(T);return A1===R?null:A1===jM?CG:CG=X(jM=A1,R)}}
function $b4(T,X,R){var jM,CG;return function(){var A1=this.getAttributeNS(T.space,T.local);return A1===R?null:A1===jM?CG:CG=X(jM=A1,R)}}
function XYM(T,X,R){var jM,CG,A1;return function(){var h1=R(this);if(h1==null)return void this.removeAttribute(T);var $7=this.getAttribute(T);return $7===h1?null:$7===jM&&h1===CG?A1:A1=X(jM=$7,CG=h1)}}
function The(T,X,R){var jM,CG,A1;return function(){var h1=R(this);if(h1==null)return void this.removeAttributeNS(T.space,T.local);var $7=this.getAttributeNS(T.space,T.local);return $7===h1?null:$7===jM&&h1===CG?A1:A1=X(jM=$7,CG=h1)}}
function dbz(T,X){function R(){var jM=this,CG=X.apply(jM,arguments);return CG&&function(A1){jM.setAttributeNS(T.space,T.local,CG(A1))}}
R._value=X;return R}
function WtE(T,X){function R(){var jM=this,CG=X.apply(jM,arguments);return CG&&function(A1){jM.setAttribute(T,CG(A1))}}
R._value=X;return R}
function oEe(T,X){return function(){zR7(this,T).delay=+X.apply(this,arguments)}}
function Ubz(T,X){return X=+X,function(){zR7(this,T).delay=X}}
function DbV(T,X){return function(){Gv(this,T).duration=+X.apply(this,arguments)}}
function Rce(T,X){return X=+X,function(){Gv(this,T).duration=X}}
function LtG(T,X){if(typeof X!=="function")throw Error();return function(){Gv(this,T).ease=X}}
function lfZ(T){return(T+"").trim().split(/^|\s+/).every(function(X){var R=X.indexOf(".");R>=0&&(X=X.slice(0,R));return!X||X==="start"})}
function pY4(T,X,R){var jM,CG,A1=lfZ(X)?zR7:Gv;return function(){var h1=A1(this,T),$7=h1.on;if($7!==jM)(CG=(jM=$7).copy()).on(X,R);h1.on=CG}}
function wY4(T){return function(){var X=this.parentNode,R;for(R in this.__transition)if(+R!==T)return;X&&X.removeChild(this)}}
function mbi(T,X){var R,jM,CG;return function(){var A1=bG(this,T),h1=(this.style.removeProperty(T),bG(this,T));return A1===h1?null:A1===R&&h1===jM?CG:CG=X(R=A1,jM=h1)}}
function yNf(T){return function(){this.style.removeProperty(T)}}
function ks0(T,X,R){var jM,CG;return function(){var A1=bG(this,T);return A1===R?null:A1===jM?CG:CG=X(jM=A1,R)}}
function M_G(T,X,R){var jM,CG,A1;return function(){var h1=bG(this,T),$7=R(this);$7==null&&($7=(this.style.removeProperty(T),bG(this,T)));return h1===$7?null:h1===jM&&$7===CG?A1:A1=X(jM=h1,CG=$7)}}
function cNY(T,X,R){function jM(){var CG=this,A1=X.apply(CG,arguments);return A1&&function(h1){CG.style.setProperty(T,A1(h1),R)}}
jM._value=X;return jM}
function YxE(T){return function(){this.textContent=T}}
function qxM(T){return function(){var X=T(this);this.textContent=X==null?"":X}}
function XW(T,X,R,jM){this._groups=T;this._parents=X;this._name=R;this._id=jM}
function Jtx(T){return{type:T}}
function rtM(){this._x0=this._y0=this._x1=this._y1=null;this._=""}
function K5M(){}
function YRO(T,X){var R=new K5M;if(T instanceof K5M)T.each(function(h1,$7){R.set($7,h1)});
else if(Array.isArray(T)){var jM=-1,CG=T.length,A1;if(X==null)for(;++jM<CG;)R.set(jM,T[jM]);else for(;++jM<CG;)R.set(X(A1=T[jM],jM,T),A1)}else if(T)for(jM in T)R.set(jM,T[jM]);return R}
function F51(){}
function qRf(T){return function(X){for(var R={},jM=0;jM<T.length;jM++)R[T[jM]]=X[jM]||"";return R}}
function ecV(T,X){var R=qRf(T);return function(jM,CG){return X(R(jM),CG,T)}}
function a5E(T){var X=Object.create(null),R=[];T.forEach(function(jM){for(var CG in jM)CG in X||R.push(X[CG]=CG)});
return R}
function e3f(T){function X(h1,$7){function zJ(){if(n4)return P4I;if(Uk)return Uk=!1,aGj;var RO,Wg=OO,C5;if(h1.charCodeAt(Wg)===34){for(;OO++<Iw&&h1.charCodeAt(OO)!==34||h1.charCodeAt(++OO)===34;);(RO=OO)>=Iw?n4=!0:(C5=h1.charCodeAt(OO++))===10?Uk=!0:C5===13&&(Uk=!0,h1.charCodeAt(OO)===10&&++OO);return h1.slice(Wg+1,RO-1).replace(/""/g,'"')}for(;OO<Iw;){if((C5=h1.charCodeAt(RO=OO++))===10)Uk=!0;else if(C5===13)Uk=!0,h1.charCodeAt(OO)===10&&++OO;else if(C5!==A1)continue;return h1.slice(Wg,RO)}return n4=
!0,h1.slice(Wg,Iw)}
var Y7=[],Iw=h1.length,OO=0,ME=0,QV,n4=Iw<=0,Uk=!1;h1.charCodeAt(Iw-1)===10&&--Iw;for(h1.charCodeAt(Iw-1)===13&&--Iw;(QV=zJ())!==P4I;){for(var HP=[];QV!==aGj&&QV!==P4I;)HP.push(QV),QV=zJ();$7&&(HP=$7(HP,ME++))==null||Y7.push(HP)}return Y7}
function R(h1){return h1.map(jM).join(T)}
function jM(h1){return h1==null?"":CG.test(h1)?'"'+h1.replace(/"/g,'""')+'"':h1}
var CG=new RegExp('["'+T+"\n\r]"),A1=T.charCodeAt(0);return{parse:function(h1,$7){var zJ,Y7;h1=X(h1,function(Iw,OO){if(zJ)return zJ(Iw,OO-1);Y7=Iw;zJ=$7?ecV(Iw,$7):qRf(Iw)});
h1.columns=Y7||[];return h1},
parseRows:X,format:function(h1,$7){$7==null&&($7=a5E(h1));return[$7.map(jM).join(T)].concat(h1.map(function(zJ){return $7.map(function(Y7){return jM(zJ[Y7])}).join(T)})).join("\n")},
formatRows:function(h1){return h1.map(R).join("\n")}}}
function jyY(T){if(!T.ok)throw Error("ue`"+T.status+"`"+T.statusText);return T.text()}
function jDG(T){return function(X,R,jM){arguments.length===2&&typeof R==="function"&&(jM=R,R=void 0);return fetch(X,R).then(jyY).then(function(CG){return T(CG,jM)})}}
function zGe(T,X,R,jM){if(isNaN(X)||isNaN(R))return T;var CG,A1=T._root;jM={data:jM};var h1=T._x0,$7=T._y0,zJ=T._x1,Y7=T._y1,Iw,OO,ME,QV,n4;if(!A1)return T._root=jM,T;for(;A1.length;)if((ME=X>=(Iw=(h1+zJ)/2))?h1=Iw:zJ=Iw,(QV=R>=(OO=($7+Y7)/2))?$7=OO:Y7=OO,CG=A1,!(A1=A1[n4=QV<<1|ME]))return CG[n4]=jM,T;var Uk=+T._x.call(null,A1.data);var HP=+T._y.call(null,A1.data);if(X===Uk&&R===HP)return jM.next=A1,CG?CG[n4]=jM:T._root=jM,T;do CG=CG?CG[n4]=Array(4):T._root=Array(4),(ME=X>=(Iw=(h1+zJ)/2))?h1=Iw:zJ=
Iw,(QV=R>=(OO=($7+Y7)/2))?$7=OO:Y7=OO;while((n4=QV<<1|ME)===(ME=(HP>=OO)<<1|Uk>=Iw));return CG[ME]=A1,CG[n4]=jM,T}
function Sc(T,X,R,jM,CG){this.node=T;this.x0=X;this.y0=R;this.x1=jM;this.y1=CG}
function zof(T){return T[0]}
function I5Z(T){return T[1]}
function Z_E(T,X,R,jM,CG,A1){this._x=T;this._y=X;this._x0=R;this._y0=jM;this._x1=CG;this._y1=A1;this._root=void 0}
function IGO(T){for(var X={data:T.data},R=X;T=T.next;)R=R.next={data:T.data};return X}
function H1E(T,X){if((X=(T=X?T.toExponential(X-1):T.toExponential()).indexOf("e"))<0)return null;var R=T.slice(0,X);return[R.length>1?R[0]+R.slice(2):R,+T.slice(X+1)]}
function JVG(T){return T=H1E(Math.abs(T)),T?T[1]:NaN}
function rVG(T,X){return function(R,jM){for(var CG=R.length,A1=[],h1=0,$7=T[0],zJ=0;CG>0&&$7>0;){zJ+$7+1>jM&&($7=Math.max(1,jM-zJ));A1.push(R.substring(CG-=$7,CG+$7));if((zJ+=$7+1)>jM)break;$7=T[h1=(h1+1)%T.length]}return A1.reverse().join(X)}}
function PcE(T){return function(X){return X.replace(/[0-9]/g,function(R){return T[+R]})}}
function C4m(T){return new N7d(T)}
function N7d(T){if(!(X=ZQZ.exec(T)))throw Error("ve`"+T);var X;this.fill=X[1]||" ";this.align=X[2]||">";this.sign=X[3]||"-";this.symbol=X[4]||"";this.zero=!!X[5];this.width=X[6]&&+X[6];this.comma=!!X[7];this.precision=X[8]&&+X[8].slice(1);this.trim=!!X[9];this.type=X[10]||""}
function JKi(T,X){X=H1E(T,X);if(!X)return T+"";T=X[0];X=X[1];return X<0?"0."+Array(-X).join("0")+T:T.length>X+1?T.slice(0,X+1)+"."+T.slice(X+1):T+Array(X-T.length+2).join("0")}
function rKf(T){return T}
function CcM(T){function X($7){function zJ(p4){var jF=C5,RZ=RK,Ax,P9;if(Wg==="c")RZ=oh(p4)+RZ,p4="";else{p4=+p4;var xZ=p4<0;p4=oh(Math.abs(p4),HP);if(RO){var dq=p4.length,ia=1,Lv=-1;a:for(;ia<dq;++ia)switch(p4[ia]){case ".":Lv=Ax=ia;break;case "0":Lv===0&&(Lv=ia);Ax=ia;break;default:if(!+p4[ia])break a;Lv>0&&(Lv=0)}p4=Lv>0?p4.slice(0,Lv)+p4.slice(Ax+1):p4}xZ&&+p4===0&&(xZ=!1);jF=(xZ?OO==="("?OO:"-":OO==="-"||OO==="("?"":OO)+jF;RZ=(Wg==="s"?Pro[8+ZNI/3]:"")+RZ+(xZ&&OO==="("?")":"");if(BW)for(xZ=-1,
Ax=p4.length;++xZ<Ax;)if(P9=p4.charCodeAt(xZ),48>P9||P9>57){RZ=(P9===46?CG+p4.slice(xZ+1):p4.slice(xZ))+RZ;p4=p4.slice(0,xZ);break}}Uk&&!QV&&(p4=R(p4,Infinity));P9=jF.length+p4.length+RZ.length;xZ=P9<n4?Array(n4-P9+1).join(Y7):"";Uk&&QV&&(p4=R(xZ+p4,xZ.length?n4-RZ.length:Infinity),xZ="");switch(Iw){case "<":p4=jF+p4+RZ+xZ;break;case "=":p4=jF+xZ+p4+RZ;break;case "^":p4=xZ.slice(0,P9=xZ.length>>1)+jF+p4+RZ+xZ.slice(P9);break;default:p4=xZ+jF+p4+RZ}return A1(p4)}
$7=C4m($7);var Y7=$7.fill,Iw=$7.align,OO=$7.sign,ME=$7.symbol,QV=$7.zero,n4=$7.width,Uk=$7.comma,HP=$7.precision,RO=$7.trim,Wg=$7.type;Wg==="n"?(Uk=!0,Wg="g"):CrJ[Wg]||(HP==null&&(HP=12),RO=!0,Wg="g");if(QV||Y7==="0"&&Iw==="=")QV=!0,Y7="0",Iw="=";var C5=ME==="$"?jM[0]:ME==="#"&&/[boxX]/.test(Wg)?"0"+Wg.toLowerCase():"",RK=ME==="$"?jM[1]:/[%p]/.test(Wg)?h1:"",oh=CrJ[Wg],BW=/[defgprs%]/.test(Wg);HP=HP==null?6:/[gprs]/.test(Wg)?Math.max(1,Math.min(21,HP)):Math.max(0,Math.min(20,HP));zJ.toString=function(){return $7+
""};
return zJ}
var R=T.grouping&&T.thousands?rVG(T.grouping,T.thousands):rKf,jM=T.currency,CG=T.decimal,A1=T.numerals?PcE(T.numerals):rKf,h1=T.percent||"%";return{format:X,formatPrefix:function($7,zJ){var Y7=X(($7=C4m($7),$7.type="f",$7));$7=Math.max(-8,Math.min(8,Math.floor(JVG(zJ)/3)))*3;var Iw=Math.pow(10,-$7),OO=Pro[8+$7/3];return function(ME){return Y7(Iw*ME)+OO}}}}
function Br(){this.reset()}
function Nr1(T,X,R){var jM=T.s=X+R,CG=jM-X;T.t=X-(jM-CG)+(R-CG)}
function b13(T){return T>1?Q5:T<-1?-Q5:Math.asin(T)}
function NBM(){}
function tPI(T){var X=T[0];T=T[1];var R=Si(T);return[R*Si(X),R*gY(X),gY(T)]}
function uSl(T,X){return[T[1]*X[2]-T[2]*X[1],T[2]*X[0]-T[0]*X[2],T[0]*X[1]-T[1]*X[0]]}
function EoE(T){var X=hZ$(T[0]*T[0]+T[1]*T[1]+T[2]*T[2]);T[0]/=X;T[1]/=X;T[2]/=X}
function tGZ(){var T=[],X;return{point:function(R,jM){X.push([R,jM])},
lineStart:function(){T.push(X=[])},
lineEnd:NBM,rejoin:function(){T.length>1&&T.push(T.pop().concat(T.shift()))},
result:function(){var R=T;T=[];X=null;return R}}}
function V6$(T,X,R,jM){this.x=T;this.z=X;this.o=R;this.e=jM;this.v=!1;this.n=this.p=null}
function uuY(T,X,R,jM,CG){var A1=[],h1=[];T.forEach(function(OO){if(!((ME=OO.length-1)<=0)){var ME,QV=OO[0],n4=OO[ME],Uk=QV;if(Tl(Uk[0]-n4[0])<1E-6&&Tl(Uk[1]-n4[1])<1E-6){CG.lineStart();for($7=0;$7<ME;++$7)CG.point((QV=OO[$7])[0],QV[1]);CG.lineEnd()}else A1.push(ME=new V6$(QV,OO,null,!0)),h1.push(ME.o=new V6$(QV,null,ME,!1)),A1.push(ME=new V6$(n4,OO,null,!1)),h1.push(ME.o=new V6$(n4,null,ME,!0))}});
if(A1.length){h1.sort(X);Br1(A1);Br1(h1);var $7=0;for(T=h1.length;$7<T;++$7)h1[$7].e=R=!R;R=A1[0];for(var zJ;;){for(var Y7=R,Iw=!0;Y7.v;)if((Y7=Y7.n)===R)return;X=Y7.z;CG.lineStart();do{Y7.v=Y7.o.v=!0;if(Y7.e){if(Iw)for($7=0,T=X.length;$7<T;++$7)CG.point((zJ=X[$7])[0],zJ[1]);else jM(Y7.x,Y7.n.x,1,CG);Y7=Y7.n}else{if(Iw)for(X=Y7.p.z,$7=X.length-1;$7>=0;--$7)CG.point((zJ=X[$7])[0],zJ[1]);else jM(Y7.x,Y7.p.x,-1,CG);Y7=Y7.p}Y7=Y7.o;X=Y7.z;Iw=!Iw}while(!Y7.v);CG.lineEnd()}}}
function Br1(T){if(X=T.length){for(var X,R=0,jM=T[0],CG;++R<X;)jM.n=CG=T[R],CG.p=jM,jM=CG;jM.n=CG=T[0];CG.p=jM}}
function EFY(T){return T.length>1}
function BBZ(T,X){return((T=T.x)[0]<0?T[1]-Q5-1E-6:Q5-T[1])-((X=X.x)[0]<0?X[1]-Q5-1E-6:Q5-X[1])}
function tY1(){}
function go1(T){return function(X,R){var jM=Si(X),CG=Si(R);jM=T(jM*CG);return[jM*CG*gY(X),jM*gY(R)]}}
function KT(T){return function(X,R){var jM=hZ$(X*X+R*R),CG=T(jM),A1=gY(CG);CG=Si(CG);return[ONI(X*A1,jM*CG),b13(jM&&R*A1/jM)]}}
function gFE(T){var X=0,R=T.children,jM=R&&R.length;if(jM)for(;--jM>=0;)X+=R[jM].value;else X=1;T.value=X}
function fGX(T,X){var R=new Fv(T);T=+T.value&&(R.value=T.value);var jM,CG=[R],A1,h1,$7,zJ;for(X==null&&(X=OQZ);jM=CG.pop();)if(T&&(jM.value=+jM.data.value),(h1=X(jM.data))&&(zJ=h1.length))for(jM.children=Array(zJ),$7=zJ-1;$7>=0;--$7)CG.push(A1=jM.children[$7]=new Fv(h1[$7])),A1.parent=jM,A1.depth=jM.depth+1;return R.eachBefore(f50)}
function OQZ(T){return T.children}
function AVY(T){T.data=T.data.data}
function f50(T){var X=0;do T.height=X;while((T=T.parent)&&T.height<++X)}
function Fv(T){this.data=T;this.depth=this.height=0;this.parent=null}
function re(T,X,R,jM){function CG(A1){return T(A1=new Date(+A1)),A1}
CG.floor=CG;CG.ceil=function(A1){return T(A1=new Date(A1-1)),X(A1,1),T(A1),A1};
CG.round=function(A1){var h1=CG(A1),$7=CG.ceil(A1);return A1-h1<$7-A1?h1:$7};
CG.offset=function(A1,h1){return X(A1=new Date(+A1),h1==null?1:Math.floor(h1)),A1};
CG.range=function(A1,h1,$7){var zJ=[],Y7;A1=CG.ceil(A1);$7=$7==null?1:Math.floor($7);if(!(A1<h1&&$7>0))return zJ;do zJ.push(Y7=new Date(+A1)),X(A1,$7),T(A1);while(Y7<A1&&A1<h1);return zJ};
CG.filter=function(A1){return re(function(h1){if(h1>=h1)for(;T(h1),!A1(h1);)h1.setTime(h1-1)},function(h1,$7){if(h1>=h1)if($7<0)for(;++$7<=0;)for(;X(h1,-1),!A1(h1););
else for(;--$7>=0;)for(;X(h1,1),!A1(h1););})};
R&&(CG.count=function(A1,h1){uW$.setTime(+A1);EuG.setTime(+h1);T(uW$);T(EuG);return Math.floor(R(uW$,EuG))},CG.every=function(A1){A1=Math.floor(A1);
return isFinite(A1)&&A1>0?A1>1?CG.filter(jM?function(h1){return jM(h1)%A1===0}:function(h1){return CG.count(0,h1)%A1===0}):CG:null});
return CG}
function $J(T){return re(function(X){X.setDate(X.getDate()-(X.getDay()+7-T)%7);X.setHours(0,0,0,0)},function(X,R){X.setDate(X.getDate()+R*7)},function(X,R){return(R-X-(R.getTimezoneOffset()-X.getTimezoneOffset())*6E4)/6048E5})}
function X8(T){return re(function(X){X.setUTCDate(X.getUTCDate()-(X.getUTCDay()+7-T)%7);X.setUTCHours(0,0,0,0)},function(X,R){X.setUTCDate(X.getUTCDate()+R*7)},function(X,R){return(R-X)/6048E5})}
function syE(T){if(0<=T.y&&T.y<100){var X=new Date(-1,T.m,T.d,T.H,T.M,T.S,T.L);X.setFullYear(T.y);return X}return new Date(T.y,T.m,T.d,T.H,T.M,T.S,T.L)}
function Qbm(T){if(0<=T.y&&T.y<100){var X=new Date(Date.UTC(-1,T.m,T.d,T.H,T.M,T.S,T.L));X.setUTCFullYear(T.y);return X}return new Date(Date.UTC(T.y,T.m,T.d,T.H,T.M,T.S,T.L))}
function Hu(T){return{y:T,m:0,d:1,H:0,M:0,S:0,L:0}}
function nFz(T){function X(RZ,Ax){return function(P9){var xZ=[],dq=-1,ia=0,Lv=RZ.length,JP,YE;for(P9 instanceof Date||(P9=new Date(+P9));++dq<Lv;)if(RZ.charCodeAt(dq)===37){xZ.push(RZ.slice(ia,dq));(ia=AKf[JP=RZ.charAt(++dq)])!=null?JP=RZ.charAt(++dq):ia=JP==="e"?" ":"0";if(YE=Ax[JP])JP=YE(P9,ia);xZ.push(JP);ia=dq+1}xZ.push(RZ.slice(ia,dq));return xZ.join("")}}
function R(RZ,Ax){return function(P9){var xZ=Hu(1900);if(jM(xZ,RZ,P9,0)!=P9.length)return null;if("Q"in xZ)return new Date(xZ.Q);"p"in xZ&&(xZ.H=xZ.H%12+xZ.p*12);if("V"in xZ){if(xZ.V<1||xZ.V>53)return null;"w"in xZ||(xZ.w=1);if("Z"in xZ){P9=Qbm(Hu(xZ.y));var dq=P9.getUTCDay();P9=dq>4||dq===0?B73.ceil(P9):B73(P9);P9=sDo.offset(P9,(xZ.V-1)*7);xZ.y=P9.getUTCFullYear();xZ.m=P9.getUTCMonth();xZ.d=P9.getUTCDate()+(xZ.w+6)%7}else P9=Ax(Hu(xZ.y)),dq=P9.getDay(),P9=dq>4||dq===0?guE.ceil(P9):guE(P9),P9=nof.offset(P9,
(xZ.V-1)*7),xZ.y=P9.getFullYear(),xZ.m=P9.getMonth(),xZ.d=P9.getDate()+(xZ.w+6)%7}else if("W"in xZ||"U"in xZ)"w"in xZ||(xZ.w="u"in xZ?xZ.u%7:"W"in xZ?1:0),dq="Z"in xZ?Qbm(Hu(xZ.y)).getUTCDay():Ax(Hu(xZ.y)).getDay(),xZ.m=0,xZ.d="W"in xZ?(xZ.w+6)%7+xZ.W*7-(dq+5)%7:xZ.w+xZ.U*7-(dq+6)%7;return"Z"in xZ?(xZ.H+=xZ.Z/100|0,xZ.M+=xZ.Z%100,Qbm(xZ)):Ax(xZ)}}
function jM(RZ,Ax,P9,xZ){for(var dq=0,ia=Ax.length,Lv=P9.length,JP;dq<ia;){if(xZ>=Lv)return-1;JP=Ax.charCodeAt(dq++);if(JP===37){if(JP=Ax.charAt(dq++),JP=jF[JP in AKf?Ax.charAt(dq++):JP],!JP||(xZ=JP(RZ,P9,xZ))<0)return-1}else if(JP!=P9.charCodeAt(xZ++))return-1}return xZ}
var CG=T.dateTime,A1=T.date,h1=T.time,$7=T.periods,zJ=T.days,Y7=T.shortDays,Iw=T.months,OO=T.shortMonths,ME=bo($7),QV=hp($7),n4=bo(zJ),Uk=hp(zJ),HP=bo(Y7),RO=hp(Y7),Wg=bo(Iw),C5=hp(Iw),RK=bo(OO),oh=hp(OO),BW={a:function(RZ){return Y7[RZ.getDay()]},
A:function(RZ){return zJ[RZ.getDay()]},
b:function(RZ){return OO[RZ.getMonth()]},
B:function(RZ){return Iw[RZ.getMonth()]},
c:null,d:KPO,e:KPO,f:KSE,H:FSZ,I:HQG,j:bQ0,L:FPe,m:hoY,M:VGM,p:function(RZ){return $7[+(RZ.getHours()>=12)]},
Q:HNe,s:bNI,S:Qyf,u:SLV,U:iQZ,V:xyZ,w:vFi,W:G7f,x:null,X:null,y:$yz,Y:XUz,Z:TB0,"%":hGO},p4={a:function(RZ){return Y7[RZ.getUTCDay()]},
A:function(RZ){return zJ[RZ.getUTCDay()]},
b:function(RZ){return OO[RZ.getUTCMonth()]},
B:function(RZ){return Iw[RZ.getUTCMonth()]},
c:null,d:VPI,e:VPI,f:dy0,H:WSZ,I:oF4,j:UyY,L:QDX,m:Dye,M:Roz,p:function(RZ){return $7[+(RZ.getUTCHours()>=12)]},
Q:HNe,s:bNI,S:LSE,u:l5f,U:pUV,V:wUi,w:myi,W:yVZ,x:null,X:null,y:k7E,Y:MGz,Z:cVE,"%":hGO},jF={a:function(RZ,Ax,P9){return(Ax=HP.exec(Ax.slice(P9)))?(RZ.w=RO[Ax[0].toLowerCase()],P9+Ax[0].length):-1},
A:function(RZ,Ax,P9){return(Ax=n4.exec(Ax.slice(P9)))?(RZ.w=Uk[Ax[0].toLowerCase()],P9+Ax[0].length):-1},
b:function(RZ,Ax,P9){return(Ax=RK.exec(Ax.slice(P9)))?(RZ.m=oh[Ax[0].toLowerCase()],P9+Ax[0].length):-1},
B:function(RZ,Ax,P9){return(Ax=Wg.exec(Ax.slice(P9)))?(RZ.m=C5[Ax[0].toLowerCase()],P9+Ax[0].length):-1},
c:function(RZ,Ax,P9){return jM(RZ,CG,Ax,P9)},
d:S4w,e:S4w,f:YLV,H:iNw,I:iNw,j:qLG,L:eoE,m:aOE,M:j7V,p:function(RZ,Ax,P9){return(Ax=ME.exec(Ax.slice(P9)))?(RZ.p=QV[Ax[0].toLowerCase()],P9+Ax[0].length):-1},
Q:z3Z,s:IOG,S:Jq4,u:rq4,U:Pzz,V:ZJ0,w:Cz4,W:NRE,x:function(RZ,Ax,P9){return jM(RZ,A1,Ax,P9)},
X:function(RZ,Ax,P9){return jM(RZ,h1,Ax,P9)},
y:tKi,Y:uo4,Z:E3Z,"%":BR0};BW.x=X(A1,BW);BW.X=X(h1,BW);BW.c=X(CG,BW);p4.x=X(A1,p4);p4.X=X(h1,p4);p4.c=X(CG,p4);return{format:function(RZ){var Ax=X(RZ,BW);Ax.toString=function(){return RZ};
return Ax},
parse:function(RZ){var Ax=R(RZ,syE);Ax.toString=function(){return RZ};
return Ax},
utcFormat:function(RZ){var Ax=X(RZ,p4);Ax.toString=function(){return RZ};
return Ax},
utcParse:function(RZ){var Ax=R(RZ,Qbm);Ax.toString=function(){return RZ};
return Ax}}}
function ZH(T,X,R){var jM=T<0?"-":"";T=(jM?-T:T)+"";var CG=T.length;return jM+(CG<R?Array(R-CG+1).join(X)+T:T)}
function g3f(T){return T.replace(OJZ,"\\$&")}
function bo(T){return new RegExp("^(?:"+T.map(g3f).join("|")+")","i")}
function hp(T){for(var X={},R=-1,jM=T.length;++R<jM;)X[T[R].toLowerCase()]=R;return X}
function Cz4(T,X,R){return(X=No.exec(X.slice(R,R+1)))?(T.w=+X[0],R+X[0].length):-1}
function rq4(T,X,R){return(X=No.exec(X.slice(R,R+1)))?(T.u=+X[0],R+X[0].length):-1}
function Pzz(T,X,R){return(X=No.exec(X.slice(R,R+2)))?(T.U=+X[0],R+X[0].length):-1}
function ZJ0(T,X,R){return(X=No.exec(X.slice(R,R+2)))?(T.V=+X[0],R+X[0].length):-1}
function NRE(T,X,R){return(X=No.exec(X.slice(R,R+2)))?(T.W=+X[0],R+X[0].length):-1}
function uo4(T,X,R){return(X=No.exec(X.slice(R,R+4)))?(T.y=+X[0],R+X[0].length):-1}
function tKi(T,X,R){return(X=No.exec(X.slice(R,R+2)))?(T.y=+X[0]+(+X[0]>68?1900:2E3),R+X[0].length):-1}
function E3Z(T,X,R){return(X=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(X.slice(R,R+6)))?(T.Z=X[1]?0:-(X[2]+(X[3]||"00")),R+X[0].length):-1}
function aOE(T,X,R){return(X=No.exec(X.slice(R,R+2)))?(T.m=X[0]-1,R+X[0].length):-1}
function S4w(T,X,R){return(X=No.exec(X.slice(R,R+2)))?(T.d=+X[0],R+X[0].length):-1}
function qLG(T,X,R){return(X=No.exec(X.slice(R,R+3)))?(T.m=0,T.d=+X[0],R+X[0].length):-1}
function iNw(T,X,R){return(X=No.exec(X.slice(R,R+2)))?(T.H=+X[0],R+X[0].length):-1}
function j7V(T,X,R){return(X=No.exec(X.slice(R,R+2)))?(T.M=+X[0],R+X[0].length):-1}
function Jq4(T,X,R){return(X=No.exec(X.slice(R,R+2)))?(T.S=+X[0],R+X[0].length):-1}
function eoE(T,X,R){return(X=No.exec(X.slice(R,R+3)))?(T.L=+X[0],R+X[0].length):-1}
function YLV(T,X,R){return(X=No.exec(X.slice(R,R+6)))?(T.L=Math.floor(X[0]/1E3),R+X[0].length):-1}
function BR0(T,X,R){return(T=fOZ.exec(X.slice(R,R+1)))?R+T[0].length:-1}
function z3Z(T,X,R){return(X=No.exec(X.slice(R)))?(T.Q=+X[0],R+X[0].length):-1}
function IOG(T,X,R){return(X=No.exec(X.slice(R)))?(T.Q=+X[0]*1E3,R+X[0].length):-1}
function KPO(T,X){return ZH(T.getDate(),X,2)}
function FSZ(T,X){return ZH(T.getHours(),X,2)}
function HQG(T,X){return ZH(T.getHours()%12||12,X,2)}
function bQ0(T,X){return ZH(1+nof.count(qa(T),T),X,3)}
function FPe(T,X){return ZH(T.getMilliseconds(),X,3)}
function KSE(T,X){return FPe(T,X)+"000"}
function hoY(T,X){return ZH(T.getMonth()+1,X,2)}
function VGM(T,X){return ZH(T.getMinutes(),X,2)}
function Qyf(T,X){return ZH(T.getSeconds(),X,2)}
function SLV(T){T=T.getDay();return T===0?7:T}
function iQZ(T,X){return ZH(AqE.count(qa(T),T),X,2)}
function xyZ(T,X){var R=T.getDay();T=R>=4||R===0?O_$(T):O_$.ceil(T);return ZH(O_$.count(qa(T),T)+(qa(T).getDay()===4),X,2)}
function vFi(T){return T.getDay()}
function G7f(T,X){return ZH(guE.count(qa(T),T),X,2)}
function $yz(T,X){return ZH(T.getFullYear()%100,X,2)}
function XUz(T,X){return ZH(T.getFullYear()%1E4,X,4)}
function TB0(T){T=T.getTimezoneOffset();return(T>0?"-":(T*=-1,"+"))+ZH(T/60|0,"0",2)+ZH(T%60,"0",2)}
function VPI(T,X){return ZH(T.getUTCDate(),X,2)}
function WSZ(T,X){return ZH(T.getUTCHours(),X,2)}
function oF4(T,X){return ZH(T.getUTCHours()%12||12,X,2)}
function UyY(T,X){return ZH(1+sDo.count(eU(T),T),X,3)}
function QDX(T,X){return ZH(T.getUTCMilliseconds(),X,3)}
function dy0(T,X){return QDX(T,X)+"000"}
function Dye(T,X){return ZH(T.getUTCMonth()+1,X,2)}
function Roz(T,X){return ZH(T.getUTCMinutes(),X,2)}
function LSE(T,X){return ZH(T.getUTCSeconds(),X,2)}
function l5f(T){T=T.getUTCDay();return T===0?7:T}
function pUV(T,X){return ZH(s7E.count(eU(T),T),X,2)}
function wUi(T,X){var R=T.getUTCDay();T=R>=4||R===0?fsm(T):fsm.ceil(T);return ZH(fsm.count(eU(T),T)+(eU(T).getUTCDay()===4),X,2)}
function myi(T){return T.getUTCDay()}
function yVZ(T,X){return ZH(B73.count(eU(T),T),X,2)}
function k7E(T,X){return ZH(T.getUTCFullYear()%100,X,2)}
function MGz(T,X){return ZH(T.getUTCFullYear()%1E4,X,4)}
function cVE(){return"+0000"}
function hGO(){return"%"}
function HNe(T){return+T}
function bNI(T){return Math.floor(+T/1E3)}
function up(T){for(var X=T.length/6|0,R=Array(X),jM=0;jM<X;)R[jM]="#"+T.slice(jM*6,++jM*6);return R}
function W3(T){return n3Z(T[T.length-1])}
function SzI(T){var X=T.length;return function(R){return T[Math.max(0,Math.min(X-1,Math.floor(R*X)))]}}
function xs1(T){this._context=T}
function voi(T){this._curve=T}
function Gcw(T,X,R){var jM=T._x1-T._x0;X-=T._x1;var CG=(T._y1-T._y0)/(jM||X<0&&-0);T=(R-T._y1)/(X||jM<0&&-0);return((CG<0?-1:1)+(T<0?-1:1))*Math.min(Math.abs(CG),Math.abs(T),.5*Math.abs((CG*X+T*jM)/(jM+X)))||0}
function $sw(T,X){var R=T._x1-T._x0;return R?(3*(T._y1-T._y0)/R-X)/2:X}
function AtI(T,X,R){var jM=T._x0,CG=T._x1,A1=T._y1,h1=(CG-jM)/3;T._context.bezierCurveTo(jM+h1,T._y0+h1*X,CG-h1,A1-h1*R,CG,A1)}
function sT3(T){this._context=T}
function XwI(T){this._context=T}
function VR(T,X,R){this.k=T;this.x=X;this.y=R}
(function(T){T.length===1&&(T=z(T));return{left:function(X,R,jM,CG){jM==null&&(jM=0);CG==null&&(CG=X.length);for(;jM<CG;){var A1=jM+CG>>>1;T(X[A1],R)<0?jM=A1+1:CG=A1}return jM},
right:function(X,R,jM,CG){jM==null&&(jM=0);CG==null&&(CG=X.length);for(;jM<CG;){var A1=jM+CG>>>1;T(X[A1],R)>0?CG=A1:jM=A1+1}return jM}}})(a);
var EE4={value:function(){}};
J.prototype=I.prototype={constructor:J,on:function(T,X){var R=this._,jM=r(T+"",R),CG,A1=-1,h1=jM.length;if(arguments.length<2)for(;++A1<h1;){var $7;if($7=CG=(T=jM[A1]).type){a:{$7=R[CG];for(var zJ=0,Y7=$7.length;zJ<Y7;++zJ)if((CG=$7[zJ]).name===T.name){CG=CG.value;break a}CG=void 0}$7=CG}if($7)return CG}else{if(X!=null&&typeof X!=="function")throw Error("we`"+X);for(;++A1<h1;)if(CG=(T=jM[A1]).type)R[CG]=P(R[CG],T.name,X);else if(X==null)for(CG in R)R[CG]=P(R[CG],T.name,null);return this}},
copy:function(){var T={},X=this._,R;for(R in X)T[R]=X[R].slice();return new J(T)},
call:function(T,X){if((CG=arguments.length-2)>0)for(var R=Array(CG),jM=0,CG,A1;jM<CG;++jM)R[jM]=arguments[jM+2];if(!this._.hasOwnProperty(T))throw Error("qe`"+T);A1=this._[T];jM=0;for(CG=A1.length;jM<CG;++jM)A1[jM].value.apply(X,R)},
apply:function(T,X,R){if(!this._.hasOwnProperty(T))throw Error("qe`"+T);T=this._[T];for(var jM=0,CG=T.length;jM<CG;++jM)T[jM].value.apply(X,R)}};
var V5={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/"},TrO=function(T){return function(){return this.matches(T)}};
if(typeof document!=="undefined"){var QR=document.documentElement;if(!QR.matches){var KhZ=QR.webkitMatchesSelector||QR.msMatchesSelector||QR.mozMatchesSelector||QR.oMatchesSelector;TrO=function(T){return function(){return KhZ.call(this,T)}}}}var dsi=TrO;
F.prototype={constructor:F,appendChild:function(T){return this._parent.insertBefore(T,this._next)},
insertBefore:function(T,X){return this._parent.insertBefore(T,X)},
querySelector:function(T){return this._parent.querySelector(T)},
querySelectorAll:function(T){return this._parent.querySelectorAll(T)}};
var U_w={};typeof document!=="undefined"&&("onmouseenter"in document.documentElement||(U_w={mouseenter:"mouseover",mouseleave:"mouseout"}));var BhM=[null];kG.prototype=sG.prototype={constructor:kG,select:function(T){typeof T!=="function"&&(T=A(T));for(var X=this._groups,R=X.length,jM=Array(R),CG=0;CG<R;++CG)for(var A1=X[CG],h1=A1.length,$7=jM[CG]=Array(h1),zJ,Y7,Iw=0;Iw<h1;++Iw)(zJ=A1[Iw])&&(Y7=T.call(zJ,zJ.__data__,Iw,A1))&&("__data__"in zJ&&(Y7.__data__=zJ.__data__),$7[Iw]=Y7);return new kG(jM,
this._parents)},
filter:function(T){typeof T!=="function"&&(T=dsi(T));for(var X=this._groups,R=X.length,jM=Array(R),CG=0;CG<R;++CG)for(var A1=X[CG],h1=A1.length,$7=jM[CG]=[],zJ,Y7=0;Y7<h1;++Y7)(zJ=A1[Y7])&&T.call(zJ,zJ.__data__,Y7,A1)&&$7.push(zJ);return new kG(jM,this._parents)},
data:function(T,X){if(!T)return QV=Array(this.size()),Y7=-1,this.each(function(Wg){QV[++Y7]=Wg}),QV;
var R=X?d:v,jM=this._parents,CG=this._groups;typeof T!=="function"&&(T=h(T));for(var A1=CG.length,h1=Array(A1),$7=Array(A1),zJ=Array(A1),Y7=0;Y7<A1;++Y7){var Iw=jM[Y7],OO=CG[Y7],ME=OO.length,QV=T.call(Iw,Iw&&Iw.__data__,Y7,jM),n4=QV.length,Uk=$7[Y7]=Array(n4),HP=h1[Y7]=Array(n4);ME=zJ[Y7]=Array(ME);R(Iw,OO,Uk,HP,ME,QV,X);OO=Iw=0;for(var RO;Iw<n4;++Iw)if(ME=Uk[Iw]){for(Iw>=OO&&(OO=Iw+1);!(RO=HP[OO])&&++OO<n4;);ME._next=RO||null}}h1=new kG(h1,jM);h1._enter=$7;h1._exit=zJ;return h1},
enter:function(){return new kG(this._enter||this._groups.map(n),this._parents)},
exit:function(){return new kG(this._exit||this._groups.map(n),this._parents)},
merge:function(T){var X=this._groups;T=T._groups;for(var R=X.length,jM=Math.min(R,T.length),CG=Array(R),A1=0;A1<jM;++A1)for(var h1=X[A1],$7=T[A1],zJ=h1.length,Y7=CG[A1]=Array(zJ),Iw,OO=0;OO<zJ;++OO)if(Iw=h1[OO]||$7[OO])Y7[OO]=Iw;for(;A1<R;++A1)CG[A1]=X[A1];return new kG(CG,this._parents)},
order:function(){for(var T=this._groups,X=-1,R=T.length;++X<R;)for(var jM=T[X],CG=jM.length-1,A1=jM[CG],h1;--CG>=0;)if(h1=jM[CG])A1&&A1!==h1.nextSibling&&A1.parentNode.insertBefore(h1,A1),A1=h1;return this},
sort:function(T){function X(OO,ME){return OO&&ME?T(OO.__data__,ME.__data__):!OO-!ME}
T||(T=W);for(var R=this._groups,jM=R.length,CG=Array(jM),A1=0;A1<jM;++A1){for(var h1=R[A1],$7=h1.length,zJ=CG[A1]=Array($7),Y7,Iw=0;Iw<$7;++Iw)if(Y7=h1[Iw])zJ[Iw]=Y7;zJ.sort(X)}return(new kG(CG,this._parents)).order()},
call:function(){var T=arguments[0];arguments[0]=this;T.apply(null,arguments);return this},
nodes:function(){var T=Array(this.size()),X=-1;this.each(function(){T[++X]=this});
return T},
node:function(){for(var T=this._groups,X=0,R=T.length;X<R;++X)for(var jM=T[X],CG=0,A1=jM.length;CG<A1;++CG){var h1=jM[CG];if(h1)return h1}return null},
size:function(){var T=0;this.each(function(){++T});
return T},
empty:function(){return!this.node()},
each:function(T){for(var X=this._groups,R=0,jM=X.length;R<jM;++R)for(var CG=X[R],A1=0,h1=CG.length,$7;A1<h1;++A1)($7=CG[A1])&&T.call($7,$7.__data__,A1,CG);return this},
attr:function(T,X){var R=N(T);if(arguments.length<2){var jM=this.node();return R.local?jM.getAttributeNS(R.space,R.local):jM.getAttribute(R)}return this.each((X==null?R.local?q:l:typeof X==="function"?R.local?e:y:R.local?M:m)(R,X))},
style:function(T,X,R){return arguments.length>1?this.each((X==null?Bp:typeof X==="function"?nG:Em)(T,X,R==null?"":R)):bG(this.node(),T)},
property:function(T,X){return arguments.length>1?this.each((X==null?Hp:typeof X==="function"?oE:LG)(T,X)):this.node()[T]},
text:function(T){return arguments.length?this.each(T==null?Pe:(typeof T==="function"?Be:TJ)(T)):this.node().textContent},
html:function(T){return arguments.length?this.each(T==null?eM:(typeof T==="function"?gf:Ao)(T)):this.node().innerHTML},
append:function(T){var X=typeof T==="function"?T:O(T);return this.select(function(){return this.appendChild(X.apply(this,arguments))})},
insert:function(T,X){var R=typeof T==="function"?T:O(T),jM=X==null?GJ:typeof X==="function"?X:A(X);return this.select(function(){return this.insertBefore(R.apply(this,arguments),jM.apply(this,arguments)||null)})},
remove:function(){return this.each(Sf)},
clone:function(T){return this.select(T?r$:ce)},
datum:function(T){return arguments.length?this.property("__data__",T):this.node().__data__},
on:function(T,X,R){var jM=EG(T+""),CG=jM.length,A1;if(arguments.length<2){var h1=this.node().__on;if(h1)for(var $7=0,zJ=h1.length,Y7;$7<zJ;++$7){var Iw=0;for(Y7=h1[$7];Iw<CG;++Iw)if((A1=jM[Iw]).type===Y7.type&&A1.name===Y7.name)return Y7.value}}else{h1=X?jf:F1;R==null&&(R=!1);for(Iw=0;Iw<CG;++Iw)this.each(h1(jM[Iw],X,R));return this}},
dispatch:function(T,X){return this.each((typeof X==="function"?Cl:aZ)(T,X))}};
var gEG=0;SI.prototype=function(){return new SI}.prototype={constructor:SI,
get:function(T){for(var X=this._;!(X in T);)if(!(T=T.parentNode))return;return T[X]},
set:function(T,X){return T[this._]=X},
remove:function(T){return this._ in T&&delete T[this._]},
toString:function(){return this._}};
var aI=1/.7,O$0=/^#([0-9a-f]{3})$/,fff=/^#([0-9a-f]{6})$/,ANZ=RegExp("^rgb\\(\\s*([+-]?\\d+)\\s*,\\s*([+-]?\\d+)\\s*,\\s*([+-]?\\d+)\\s*\\)$"),sJM=RegExp("^rgb\\(\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*,\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*,\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*\\)$"),nEG=RegExp("^rgba\\(\\s*([+-]?\\d+)\\s*,\\s*([+-]?\\d+)\\s*,\\s*([+-]?\\d+)\\s*,\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*\\)$"),Kt0=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*\\)$"),
FtM=RegExp("^hsl\\(\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*,\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*,\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*\\)$"),H$M=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*\\)$"),D_O={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};
iw(ty,fZ,{displayable:function(){return this.rgb().displayable()},
hex:function(){return this.rgb().hex()},
toString:function(){return this.rgb()+""}});
iw(wE,dE,H4(ty,{brighter:function(T){T=T==null?aI:Math.pow(aI,T);return new wE(this.r*T,this.g*T,this.b*T,this.opacity)},
darker:function(T){T=T==null?.7:Math.pow(.7,T);return new wE(this.r*T,this.g*T,this.b*T,this.opacity)},
rgb:function(){return this},
displayable:function(){return 0<=this.r&&this.r<=255&&0<=this.g&&this.g<=255&&0<=this.b&&this.b<=255&&0<=this.opacity&&this.opacity<=1},
hex:function(){return"#"+NL(this.r)+NL(this.g)+NL(this.b)},
toString:function(){var T=this.opacity;T=isNaN(T)?1:Math.max(0,Math.min(1,T));return(T===1?"rgb(":"rgba(")+Math.max(0,Math.min(255,Math.round(this.r)||0))+", "+Math.max(0,Math.min(255,Math.round(this.g)||0))+", "+Math.max(0,Math.min(255,Math.round(this.b)||0))+(T===1?")":", "+T+")")}}));
iw(vy,HL,H4(ty,{brighter:function(T){T=T==null?aI:Math.pow(aI,T);return new vy(this.h,this.s,this.l*T,this.opacity)},
darker:function(T){T=T==null?.7:Math.pow(.7,T);return new vy(this.h,this.s,this.l*T,this.opacity)},
rgb:function(){var T=this.h%360+(this.h<0)*360,X=this.l,R=X+(X<.5?X:1-X)*(isNaN(T)||isNaN(this.s)?0:this.s);X=2*X-R;return new wE(CB(T>=240?T-240:T+120,X,R),CB(T,X,R),CB(T<120?T+240:T-120,X,R),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 R3J=Math.PI/180,pSX=180/Math.PI,lOv=4/29,ci=6/29,Lhl=3*ci*ci,b$Z=ci*ci*ci;iw(SM,function(T,X,R,jM){return arguments.length===1?q$(T):new SM(T,X,R,jM==null?1:jM)},H4(ty,{brighter:function(T){return new SM(this.l+18*(T==null?1:T),this.a,this.b,this.opacity)},
darker:function(T){return new SM(this.l-18*(T==null?1:T),this.a,this.b,this.opacity)},
rgb:function(){var T=(this.l+16)/116,X=isNaN(this.a)?T:T+this.a/500,R=isNaN(this.b)?T:T-this.b/200;X=.96422*w$(X);T=1*w$(T);R=.82521*w$(R);return new wE(sO(3.1338561*X-1.6168667*T-.4906146*R),sO(-.9787684*X+1.9161415*T+.033454*R),sO(.0719453*X-.2289914*T+1.4052427*R),this.opacity)}}));
iw(bw,VV,H4(ty,{brighter:function(T){return new bw(this.h,this.c,this.l+18*(T==null?1:T),this.opacity)},
darker:function(T){return new bw(this.h,this.c,this.l-18*(T==null?1:T),this.opacity)},
rgb:function(){return q$(this).rgb()}}));
var wSI=1.78277*-.29227-.1347134789;iw(XM,He,H4(ty,{brighter:function(T){T=T==null?aI:Math.pow(aI,T);return new XM(this.h,this.s,this.l*T,this.opacity)},
darker:function(T){T=T==null?.7:Math.pow(.7,T);return new XM(this.h,this.s,this.l*T,this.opacity)},
rgb:function(){var T=isNaN(this.h)?0:(this.h+120)*R3J,X=+this.l,R=isNaN(this.s)?0:this.s*X*(1-X),jM=Math.cos(T);T=Math.sin(T);return new wE(255*(X+R*(-.14861*jM+1.78277*T)),255*(X+R*(-.29227*jM+-.90649*T)),255*(X+1.97294*jM*R),this.opacity)}}));
var cqw=function R(X){function jM(A1,h1){var $7=CG((A1=dE(A1)).r,(h1=dE(h1)).r),zJ=CG(A1.g,h1.g),Y7=CG(A1.b,h1.b),Iw=d2(A1.opacity,h1.opacity);return function(OO){A1.r=$7(OO);A1.g=zJ(OO);A1.b=Y7(OO);A1.opacity=Iw(OO);return A1+""}}
var CG=$X(X);jM.gamma=R;return jM}(1),n3Z=DG(function(X){var R=X.length-1;
return function(jM){var CG=jM<=0?jM=0:jM>=1?(jM=1,R-1):Math.floor(jM*R),A1=X[CG],h1=X[CG+1];return f4((jM-CG/R)*R,CG>0?X[CG-1]:2*A1-h1,A1,h1,CG<R-1?X[CG+2]:2*h1-A1)}});
DG(function(X){var R=X.length;return function(jM){var CG=Math.floor(((jM%=1)<0?++jM:jM)*R);return f4((jM-CG/R)*R,X[(CG+R-1)%R],X[CG%R],X[(CG+1)%R],X[(CG+2)%R])}});
var eGG=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,asp=new RegExp(eGG.source,"g"),m_o=180/Math.PI,nui={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1},S4,KJG,WPw,i11,Fh0=TY(function(X){if(X==="none")return nui;S4||(S4=document.createElement("DIV"),KJG=document.documentElement,WPw=document.defaultView);S4.style.transform=X;X=WPw.getComputedStyle(KJG.appendChild(S4),null).getPropertyValue("transform");KJG.removeChild(S4);X=X.slice(7,-1).split(",");return nZ(+X[0],+X[1],+X[2],+X[3],
+X[4],+X[5])},"px, ","px)","deg)"),HJ4=TY(function(X){if(X==null)return nui;
i11||(i11=document.createElementNS("http://www.w3.org/2000/svg","g"));i11.setAttribute("transform",X);if(!(X=i11.transform.baseVal.consolidate()))return nui;X=X.matrix;return nZ(X.a,X.b,X.c,X.d,X.e,X.f)},", ",")",")");
ZE(ot);ZE(d2);NM(ot);NM(d2);pB(ot);var FJm=pB(d2),Yb=0,Ap=0,nT=0,nji,sY,sb$=0,vM=0,AP7=0,fT=typeof performance==="object"&&performance.now?performance:Date,yqj=typeof window==="object"&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(X){setTimeout(X,17)};
sN.prototype=N2.prototype={constructor:sN,restart:function(X,R,jM){if(typeof X!=="function")throw new TypeError("xe");jM=(jM==null?Ta():+jM)+(R==null?0:+R);this._next||sY===this||(sY?sY._next=this:nji=this,sY=this);this._call=X;this._time=jM;ut()},
stop:function(){this._call&&(this._call=null,this._time=Infinity,ut())}};
var V_Z=I("start","end","interrupt"),QJG=[],bJV=sG.prototype.constructor,oow=0,j9=sG.prototype;XW.prototype=function(X){return sG().transition(X)}.prototype={constructor:XW,
select:function(X){var R=this._name,jM=this._id;typeof X!=="function"&&(X=A(X));for(var CG=this._groups,A1=CG.length,h1=Array(A1),$7=0;$7<A1;++$7)for(var zJ=CG[$7],Y7=zJ.length,Iw=h1[$7]=Array(Y7),OO,ME,QV=0;QV<Y7;++QV)(OO=zJ[QV])&&(ME=X.call(OO,OO.__data__,QV,zJ))&&("__data__"in OO&&(ME.__data__=OO.__data__),Iw[QV]=ME,jTd(Iw[QV],R,jM,QV,Iw,gG(OO,jM)));return new XW(h1,this._parents,R,jM)},
filter:function(X){typeof X!=="function"&&(X=dsi(X));for(var R=this._groups,jM=R.length,CG=Array(jM),A1=0;A1<jM;++A1)for(var h1=R[A1],$7=h1.length,zJ=CG[A1]=[],Y7,Iw=0;Iw<$7;++Iw)(Y7=h1[Iw])&&X.call(Y7,Y7.__data__,Iw,h1)&&zJ.push(Y7);return new XW(CG,this._parents,this._name,this._id)},
merge:function(X){if(X._id!==this._id)throw Error();var R=this._groups;X=X._groups;for(var jM=R.length,CG=Math.min(jM,X.length),A1=Array(jM),h1=0;h1<CG;++h1)for(var $7=R[h1],zJ=X[h1],Y7=$7.length,Iw=A1[h1]=Array(Y7),OO,ME=0;ME<Y7;++ME)if(OO=$7[ME]||zJ[ME])Iw[ME]=OO;for(;h1<jM;++h1)A1[h1]=R[h1];return new XW(A1,this._parents,this._name,this._id)},
selection:function(){return new bJV(this._groups,this._parents)},
transition:function(){for(var X=this._name,R=this._id,jM=++oow,CG=this._groups,A1=CG.length,h1=0;h1<A1;++h1)for(var $7=CG[h1],zJ=$7.length,Y7,Iw=0;Iw<zJ;++Iw)if(Y7=$7[Iw]){var OO=gG(Y7,R);jTd(Y7,X,jM,Iw,$7,{time:OO.time+OO.delay+OO.duration,delay:0,duration:OO.duration,ease:OO.ease})}return new XW(CG,this._parents,X,jM)},
call:j9.call,nodes:j9.nodes,node:j9.node,size:j9.size,empty:j9.empty,each:j9.each,on:function(X,R){var jM=this._id;return arguments.length<2?gG(this.node(),jM).on.on(X):this.each(pY4(jM,X,R))},
attr:function(X,R){var jM=N(X),CG=jM==="transform"?HJ4:MKi;return this.attrTween(X,typeof R==="function"?(jM.local?The:XYM)(jM,CG,Is$(this,"attr."+X,R)):R==null?(jM.local?vEM:xbV)(jM):(jM.local?$b4:Gsf)(jM,CG,R+""))},
attrTween:function(X,R){var jM="attr."+X;if(arguments.length<2)return(jM=this.tween(jM))&&jM._value;if(R==null)return this.tween(jM,null);if(typeof R!=="function")throw Error();var CG=N(X);return this.tween(jM,(CG.local?dbz:WtE)(CG,R))},
style:function(X,R,jM){var CG=X==="transform"?Fh0:MKi;return R==null?this.styleTween(X,mbi(X,CG)).on("end.style."+X,yNf(X)):this.styleTween(X,typeof R==="function"?M_G(X,CG,Is$(this,"style."+X,R)):ks0(X,CG,R+""),jM)},
styleTween:function(X,R,jM){var CG="style."+X;if(arguments.length<2)return(CG=this.tween(CG))&&CG._value;if(R==null)return this.tween(CG,null);if(typeof R!=="function")throw Error();return this.tween(CG,cNY(X,R,jM==null?"":jM))},
text:function(X){return this.tween("text",typeof X==="function"?qxM(Is$(this,"text",X)):YxE(X==null?"":X+""))},
remove:function(){return this.on("end.remove",wY4(this._id))},
tween:function(X,R){var jM=this._id;if(arguments.length<2){jM=gG(this.node(),jM).tween;for(var CG=0,A1=jM.length,h1;CG<A1;++CG)if((h1=jM[CG]).name===X)return h1.value;return null}return this.each((R==null?Sx0:i$z)(jM,X,R))},
delay:function(X){var R=this._id;return arguments.length?this.each((typeof X==="function"?oEe:Ubz)(R,X)):gG(this.node(),R).delay},
duration:function(X){var R=this._id;return arguments.length?this.each((typeof X==="function"?DbV:Rce)(R,X)):gG(this.node(),R).duration},
ease:function(X){var R=this._id;return arguments.length?this.each(LtG(R,X)):gG(this.node(),R).ease}};
var H_M={time:null,delay:0,duration:250,ease:function(X){return((X*=2)<=1?X*X*X:(X-=2)*X*X+2)/2}};
sG.prototype.transition=function(X){var R;if(X instanceof XW){var jM=X._id;X=X._name}else jM=++oow,(R=H_M).time=Ta(),X=X==null?null:X+"";for(var CG=this._groups,A1=CG.length,h1=0;h1<A1;++h1)for(var $7=CG[h1],zJ=$7.length,Y7,Iw=0;Iw<zJ;++Iw)if(Y7=$7[Iw]){var OO=Y7,ME=X,QV=jM,n4=Iw,Uk=$7,HP;if(!(HP=R))a:{HP=void 0;for(var RO=jM;!(HP=Y7.__transition)||!(HP=HP[RO]);)if(!(Y7=Y7.parentNode)){HP=(H_M.time=Ta(),H_M);break a}}jTd(OO,ME,QV,n4,Uk,HP)}return new XW(CG,this._parents,X,jM)};
["e","w"].map(Jtx);["n","s"].map(Jtx);"n e s w nw ne se sw".split(" ").map(Jtx);rtM.prototype=function(){return new rtM}.prototype={constructor:rtM,
moveTo:function(X,R){this._+="M"+(this._x0=this._x1=+X)+","+(this._y0=this._y1=+R)},
closePath:function(){this._x1!==null&&(this._x1=this._x0,this._y1=this._y0,this._+="Z")},
lineTo:function(X,R){this._+="L"+(this._x1=+X)+","+(this._y1=+R)},
bezierCurveTo:function(X,R,jM,CG,A1,h1){this._+="C"+ +X+","+ +R+","+ +jM+","+ +CG+","+(this._x1=+A1)+","+(this._y1=+h1)},
rect:function(X,R,jM,CG){this._+="M"+(this._x0=this._x1=+X)+","+(this._y0=this._y1=+R)+"h"+ +jM+"v"+ +CG+"h"+-jM+"Z"},
toString:function(){return this._}};
K5M.prototype=YRO.prototype={constructor:K5M,has:function(X){return" "+X in this},
get:function(X){return this[" "+X]},
set:function(X,R){this[" "+X]=R;return this},
remove:function(X){X=" "+X;return X in this&&delete this[X]},
clear:function(){for(var X in this)X[0]===" "&&delete this[X]},
keys:function(){var X=[],R;for(R in this)R[0]===" "&&X.push(R.slice(1));return X},
values:function(){var X=[],R;for(R in this)R[0]===" "&&X.push(this[R]);return X},
entries:function(){var X=[],R;for(R in this)R[0]===" "&&X.push({key:R.slice(1),value:this[R]});return X},
size:function(){var X=0,R;for(R in this)R[0]===" "&&++X;return X},
empty:function(){for(var X in this)if(X[0]===" ")return!1;return!0},
each:function(X){for(var R in this)R[0]===" "&&X(this[R],R.slice(1),this)}};
var Tv=YRO.prototype;F51.prototype=function(X,R){var jM=new F51;if(X instanceof F51)X.each(function(h1){jM.add(h1)});
else if(X){var CG=-1,A1=X.length;if(R==null)for(;++CG<A1;)jM.add(X[CG]);else for(;++CG<A1;)jM.add(R(X[CG],CG,X))}return jM}.prototype={constructor:F51,
has:Tv.has,add:function(X){this[" "+X]=X;return this},
remove:Tv.remove,clear:Tv.clear,values:Tv.keys,size:Tv.size,empty:Tv.empty,each:Tv.each};var aGj={},P4I={},h3V=e3f(",").parse,VKE=e3f("\t").parse;jDG(h3V);jDG(VKE);var iK=function(X,R,jM){R=new Z_E(R==null?zof:R,jM==null?I5Z:jM,NaN,NaN,NaN,NaN);return X==null?R:R.addAll(X)}.prototype=Z_E.prototype;
iK.copy=function(){var X=new Z_E(this._x,this._y,this._x0,this._y0,this._x1,this._y1),R=this._root,jM,CG;if(!R)return X;if(!R.length)return X._root=IGO(R),X;for(jM=[{source:R,target:X._root=Array(4)}];R=jM.pop();)for(var A1=0;A1<4;++A1)if(CG=R.source[A1])CG.length?jM.push({source:CG,target:R.target[A1]=Array(4)}):R.target[A1]=IGO(CG);return X};
iK.add=function(X){var R=+this._x.call(null,X),jM=+this._y.call(null,X);return zGe(this.cover(R,jM),R,jM,X)};
iK.addAll=function(X){var R,jM,CG=X.length,A1,h1,$7=Array(CG),zJ=Array(CG),Y7=Infinity,Iw=Infinity,OO=-Infinity,ME=-Infinity;for(jM=0;jM<CG;++jM)isNaN(A1=+this._x.call(null,R=X[jM]))||isNaN(h1=+this._y.call(null,R))||($7[jM]=A1,zJ[jM]=h1,A1<Y7&&(Y7=A1),A1>OO&&(OO=A1),h1<Iw&&(Iw=h1),h1>ME&&(ME=h1));OO<Y7&&(Y7=this._x0,OO=this._x1);ME<Iw&&(Iw=this._y0,ME=this._y1);this.cover(Y7,Iw).cover(OO,ME);for(jM=0;jM<CG;++jM)zGe(this,$7[jM],zJ[jM],X[jM]);return this};
iK.cover=function(X,R){if(isNaN(X=+X)||isNaN(R=+R))return this;var jM=this._x0,CG=this._y0,A1=this._x1,h1=this._y1;if(isNaN(jM))A1=(jM=Math.floor(X))+1,h1=(CG=Math.floor(R))+1;else if(jM>X||X>A1||CG>R||R>h1){var $7=A1-jM,zJ=this._root,Y7;switch(Y7=(R<(CG+h1)/2)<<1|X<(jM+A1)/2){case 0:do{var Iw=Array(4);Iw[Y7]=zJ;zJ=Iw}while($7*=2,A1=jM+$7,h1=CG+$7,X>A1||R>h1);break;case 1:do Iw=Array(4),Iw[Y7]=zJ,zJ=Iw;while($7*=2,jM=A1-$7,h1=CG+$7,jM>X||R>h1);break;case 2:do Iw=Array(4),Iw[Y7]=zJ,zJ=Iw;while($7*=
2,A1=jM+$7,CG=h1-$7,X>A1||CG>R);break;case 3:do Iw=Array(4),Iw[Y7]=zJ,zJ=Iw;while($7*=2,jM=A1-$7,CG=h1-$7,jM>X||CG>R)}this._root&&this._root.length&&(this._root=zJ)}else return this;this._x0=jM;this._y0=CG;this._x1=A1;this._y1=h1;return this};
iK.data=function(){var X=[];this.visit(function(R){if(!R.length){do X.push(R.data);while(R=R.next)}});
return X};
iK.extent=function(X){return arguments.length?this.cover(+X[0][0],+X[0][1]).cover(+X[1][0],+X[1][1]):isNaN(this._x0)?void 0:[[this._x0,this._y0],[this._x1,this._y1]]};
iK.find=function(X,R,jM){var CG=this._x0,A1=this._y0,h1,$7,zJ,Y7,Iw=this._x1,OO=this._y1,ME=[],QV=this._root,n4;QV&&ME.push(new Sc(QV,CG,A1,Iw,OO));jM==null?jM=Infinity:(CG=X-jM,A1=R-jM,Iw=X+jM,OO=R+jM,jM*=jM);for(;n4=ME.pop();)if(!(!(QV=n4.node)||(h1=n4.x0)>Iw||($7=n4.y0)>OO||(zJ=n4.x1)<CG||(Y7=n4.y1)<A1))if(QV.length){n4=(h1+zJ)/2;var Uk=($7+Y7)/2;ME.push(new Sc(QV[3],n4,Uk,zJ,Y7),new Sc(QV[2],h1,Uk,n4,Y7),new Sc(QV[1],n4,$7,zJ,Uk),new Sc(QV[0],h1,$7,n4,Uk));if(QV=(R>=Uk)<<1|X>=n4)n4=ME[ME.length-
1],ME[ME.length-1]=ME[ME.length-1-QV],ME[ME.length-1-QV]=n4}else if(n4=X-+this._x.call(null,QV.data),Uk=R-+this._y.call(null,QV.data),n4=n4*n4+Uk*Uk,n4<jM){var HP=Math.sqrt(jM=n4);CG=X-HP;A1=R-HP;Iw=X+HP;OO=R+HP;HP=QV.data}return HP};
iK.remove=function(X){if(isNaN(Y7=+this._x.call(null,X))||isNaN(Iw=+this._y.call(null,X)))return this;var R,jM=this._root,CG,A1=this._x0,h1=this._y0,$7=this._x1,zJ=this._y1,Y7,Iw,OO,ME,QV,n4,Uk;if(!jM)return this;if(jM.length)for(;;){(QV=Y7>=(OO=(A1+$7)/2))?A1=OO:$7=OO;(n4=Iw>=(ME=(h1+zJ)/2))?h1=ME:zJ=ME;if(!(R=jM,jM=jM[Uk=n4<<1|QV]))return this;if(!jM.length)break;if(R[Uk+1&3]||R[Uk+2&3]||R[Uk+3&3]){var HP=R;var RO=Uk}}for(;jM.data!==X;)if(!(CG=jM,jM=jM.next))return this;(X=jM.next)&&delete jM.next;
if(CG)return X?CG.next=X:delete CG.next,this;if(!R)return this._root=X,this;X?R[Uk]=X:delete R[Uk];(jM=R[0]||R[1]||R[2]||R[3])&&jM===(R[3]||R[2]||R[1]||R[0])&&!jM.length&&(HP?HP[RO]=jM:this._root=jM);return this};
iK.removeAll=function(X){for(var R=0,jM=X.length;R<jM;++R)this.remove(X[R]);return this};
iK.root=function(){return this._root};
iK.size=function(){var X=0;this.visit(function(R){if(!R.length){do++X;while(R=R.next)}});
return X};
iK.visit=function(X){var R=[],jM,CG=this._root,A1,h1,$7,zJ,Y7;for(CG&&R.push(new Sc(CG,this._x0,this._y0,this._x1,this._y1));jM=R.pop();)if(!X(CG=jM.node,h1=jM.x0,$7=jM.y0,zJ=jM.x1,Y7=jM.y1)&&CG.length){jM=(h1+zJ)/2;var Iw=($7+Y7)/2;(A1=CG[3])&&R.push(new Sc(A1,jM,Iw,zJ,Y7));(A1=CG[2])&&R.push(new Sc(A1,h1,Iw,jM,Y7));(A1=CG[1])&&R.push(new Sc(A1,jM,$7,zJ,Iw));(A1=CG[0])&&R.push(new Sc(A1,h1,$7,jM,Iw))}};
iK.visitAfter=function(X){var R=[],jM=[],CG;for(this._root&&R.push(new Sc(this._root,this._x0,this._y0,this._x1,this._y1));CG=R.pop();){var A1=CG.node;if(A1.length){var h1,$7=CG.x0,zJ=CG.y0,Y7=CG.x1,Iw=CG.y1,OO=($7+Y7)/2,ME=(zJ+Iw)/2;(h1=A1[0])&&R.push(new Sc(h1,$7,zJ,OO,ME));(h1=A1[1])&&R.push(new Sc(h1,OO,zJ,Y7,ME));(h1=A1[2])&&R.push(new Sc(h1,$7,ME,OO,Iw));(h1=A1[3])&&R.push(new Sc(h1,OO,ME,Y7,Iw))}jM.push(CG)}for(;CG=jM.pop();)X(CG.node,CG.x0,CG.y0,CG.x1,CG.y1);return this};
iK.x=function(X){return arguments.length?(this._x=X,this):this._x};
iK.y=function(X){return arguments.length?(this._y=X,this):this._y};
var ZQZ=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;C4m.prototype=N7d.prototype;N7d.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 ZNI,CrJ={"%":function(X,R){return(X*100).toFixed(R)},
b:function(X){return Math.round(X).toString(2)},
c:function(X){return X+""},
d:function(X){return Math.round(X).toString(10)},
e:function(X,R){return X.toExponential(R)},
f:function(X,R){return X.toFixed(R)},
g:function(X,R){return X.toPrecision(R)},
o:function(X){return Math.round(X).toString(8)},
p:function(X,R){return JKi(X*100,R)},
r:JKi,s:function(X,R){var jM=H1E(X,R);if(!jM)return X+"";var CG=jM[0];jM=jM[1];jM=jM-(ZNI=Math.max(-8,Math.min(8,Math.floor(jM/3)))*3)+1;var A1=CG.length;return jM===A1?CG:jM>A1?CG+Array(jM-A1+1).join("0"):jM>0?CG.slice(0,jM)+"."+CG.slice(jM):"0."+Array(1-jM).join("0")+H1E(X,Math.max(0,R+jM-1))[0]},
X:function(X){return Math.round(X).toString(16).toUpperCase()},
x:function(X){return Math.round(X).toString(16)}},Pro="y z a f p n \u00b5 m  k M G T P E Z Y".split(" "),Q7Z;
(function(X){return Q7Z=CcM(X)})({decimal:".",
thousands:",",grouping:[3],currency:["$",""]});Br.prototype={constructor:Br,reset:function(){this.s=this.t=0},
add:function(X){Nr1(xe$,X,this.t);Nr1(this,xe$.s,this.s);this.s?this.t+=xe$.t:this.s=xe$.t},
valueOf:function(){return this.s}};
var xe$=new Br,xv=Math.PI,Q5=xv/2,UsX=xv/4,SRZ=xv*2,b_E=xv/180,Tl=Math.abs,hRx=Math.atan,ONI=Math.atan2,Si=Math.cos,gY=Math.sin,hZ$=Math.sqrt;new Br;new Br;new Br;var VYG=new Br;(function(X,R,jM,CG){return function(A1){function h1(oh,BW){X(oh,BW)&&A1.point(oh,BW)}
function $7(oh,BW){QV.point(oh,BW)}
function zJ(){RK.point=$7;QV.lineStart()}
function Y7(){RK.point=h1;QV.lineEnd()}
function Iw(oh,BW){C5.push([oh,BW]);Uk.point(oh,BW)}
function OO(){Uk.lineStart();C5=[]}
function ME(){Iw(C5[0][0],C5[0][1]);Uk.lineEnd();var oh=Uk.clean(),BW=n4.result(),p4=BW.length,jF;C5.pop();RO.push(C5);C5=null;if(p4)if(oh&1){if(p4=BW[0],(BW=p4.length-1)>0){HP||(A1.polygonStart(),HP=!0);A1.lineStart();for(oh=0;oh<BW;++oh)A1.point((jF=p4[oh])[0],jF[1]);A1.lineEnd()}}else p4>1&&oh&2&&BW.push(BW.pop().concat(BW.shift())),Wg.push(BW.filter(EFY))}
var QV=R(A1),n4=tGZ(),Uk=R(n4),HP=!1,RO,Wg,C5,RK={point:h1,lineStart:zJ,lineEnd:Y7,polygonStart:function(){RK.point=Iw;RK.lineStart=OO;RK.lineEnd=ME;Wg=[];RO=[]},
polygonEnd:function(){RK.point=h1;RK.lineStart=zJ;RK.lineEnd=Y7;var oh=Wg,BW=oh.length;var p4=-1;for(var jF=0,RZ,Ax;++p4<BW;)jF+=oh[p4].length;for(RZ=Array(jF);--BW>=0;)for(Ax=oh[BW],p4=Ax.length;--p4>=0;)RZ[--jF]=Ax[p4];Wg=RZ;oh=RO;BW=CG[0];jF=CG[1];var P9=gY(jF);p4=[gY(BW),-Si(BW),0];Ax=RZ=0;VYG.reset();P9===1?jF=Q5+1E-6:P9===-1&&(jF=-Q5-1E-6);P9=0;for(var xZ=oh.length;P9<xZ;++P9)if(ia=(dq=oh[P9]).length){var dq,ia,Lv=dq[ia-1],JP=Lv[0],YE=Lv[1]/2+UsX,vjm=gY(YE),Dsi=Si(YE);for(YE=0;YE<ia;++YE,JP=
QT0,vjm=RGI,Dsi=io,Lv=G9m){var G9m=dq[YE],QT0=G9m[0];io=G9m[1]/2+UsX;var RGI=gY(io),io=Si(io),zT=QT0-JP,ST$=zT>=0?1:-1,i_3=ST$*zT,$eM=i_3>xv;vjm*=RGI;VYG.add(ONI(vjm*ST$*gY(i_3),Dsi*io+vjm*Si(i_3)));RZ+=$eM?zT+ST$*SRZ:zT;$eM^JP>=BW^QT0>=BW&&(Lv=uSl(tPI(Lv),tPI(G9m)),EoE(Lv),JP=uSl(p4,Lv),EoE(JP),JP=($eM^zT>=0?-1:1)*b13(JP[2]),jF>JP||jF===JP&&(Lv[0]||Lv[1]))&&(Ax+=$eM^zT>=0?1:-1)}}oh=(RZ<-1E-6||RZ<1E-6&&VYG<-1E-6)^Ax&1;Wg.length?(HP||(A1.polygonStart(),HP=!0),uuY(Wg,BBZ,oh,jM,A1)):oh&&(HP||(A1.polygonStart(),
HP=!0),A1.lineStart(),jM(null,null,1,A1),A1.lineEnd());HP&&(A1.polygonEnd(),HP=!1);Wg=RO=null},
sphere:function(){A1.polygonStart();A1.lineStart();jM(null,null,1,A1);A1.lineEnd();A1.polygonEnd()}};
return RK}})(function(){return!0},function(X){var R=NaN,jM=NaN,CG=NaN,A1;
return{lineStart:function(){X.lineStart();A1=1},
point:function(h1,$7){var zJ=h1>0?xv:-xv,Y7=Tl(h1-R);if(Tl(Y7-xv)<1E-6)X.point(R,jM=(jM+$7)/2>0?Q5:-Q5),X.point(CG,jM),X.lineEnd(),X.lineStart(),X.point(zJ,jM),X.point(h1,jM),A1=0;else if(CG!==zJ&&Y7>=xv){Tl(R-CG)<1E-6&&(R-=CG*1E-6);Tl(h1-zJ)<1E-6&&(h1-=zJ*1E-6);Y7=R;var Iw=jM,OO=h1,ME,QV,n4=gY(Y7-OO);jM=Tl(n4)>1E-6?hRx((gY(Iw)*(QV=Si($7))*gY(OO)-gY($7)*(ME=Si(Iw))*gY(Y7))/(ME*QV*n4)):(Iw+$7)/2;X.point(CG,jM);X.lineEnd();X.lineStart();X.point(zJ,jM);A1=0}X.point(R=h1,jM=$7);CG=zJ},
lineEnd:function(){X.lineEnd();R=jM=NaN},
clean:function(){return 2-A1}}},function(X,R,jM,CG){X==null?(jM*=Q5,CG.point(-xv,jM),CG.point(0,jM),CG.point(xv,jM),CG.point(xv,0),CG.point(xv,-jM),CG.point(0,-jM),CG.point(-xv,-jM),CG.point(-xv,0),CG.point(-xv,jM)):Tl(X[0]-R[0])>1E-6?(X=X[0]<R[0]?xv:-xv,jM=jM*X/2,CG.point(-X,jM),CG.point(0,jM),CG.point(X,jM)):CG.point(R[0],R[1])},[-xv,
-Q5]);new Br;new Br;new Br;new Br;tY1.prototype={constructor:tY1,point:function(X,R){this.stream.point(X,R)},
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()}};
Si(30*b_E);(function(X){return function(R){var jM=new tY1,CG;for(CG in X)jM[CG]=X[CG];jM.stream=R;return jM}})({point:function(X,R){this.stream.point(X*b_E,R*b_E)}});
go1(function(X){return hZ$(2/(1+X))}).invert=KT(function(X){return 2*b13(X/2)});
go1(function(X){return(X=X>1?0:X<-1?xv:Math.acos(X))&&X/gY(X)}).invert=KT(function(X){return X});
hZ$(3);KT(hRx);KT(b13);KT(function(X){return 2*hRx(X)});
Fv.prototype=fGX.prototype={constructor:Fv,count:function(){return this.eachAfter(gFE)},
each:function(X){var R,jM=[this],CG;do{var A1=jM.reverse();for(jM=[];R=A1.pop();)if(X(R),R=R.children){var h1=0;for(CG=R.length;h1<CG;++h1)jM.push(R[h1])}}while(jM.length);return this},
eachAfter:function(X){for(var R,jM=[this],CG=[],A1,h1;R=jM.pop();)if(CG.push(R),R=R.children)for(A1=0,h1=R.length;A1<h1;++A1)jM.push(R[A1]);for(;R=CG.pop();)X(R);return this},
eachBefore:function(X){for(var R,jM=[this],CG;R=jM.pop();)if(X(R),R=R.children)for(CG=R.length-1;CG>=0;--CG)jM.push(R[CG]);return this},
sum:function(X){return this.eachAfter(function(R){for(var jM=+X(R.data)||0,CG=R.children,A1=CG&&CG.length;--A1>=0;)jM+=CG[A1].value;R.value=jM})},
sort:function(X){return this.eachBefore(function(R){R.children&&R.children.sort(X)})},
path:function(X){var R=this;var jM=R;var CG=X;if(jM!==CG){var A1=jM.ancestors(),h1=CG.ancestors(),$7=null;jM=A1.pop();for(CG=h1.pop();jM===CG;)$7=jM,jM=A1.pop(),CG=h1.pop();jM=$7}for(CG=[R];R!==jM;)R=R.parent,CG.push(R);for(R=CG.length;X!==jM;)CG.splice(R,0,X),X=X.parent;return CG},
ancestors:function(){for(var X=this,R=[X];X=X.parent;)R.push(X);return R},
links:function(){var X=this,R=[];X.each(function(jM){jM!==X&&R.push({source:jM.parent,target:jM})});
return R},
copy:function(){return fGX(this).eachBefore(AVY)}};
(function(X,R){this._=X;this.A=this.children=this.parent=null;this.a=this;this.s=this.c=this.m=this.z=0;this.t=null;this.i=R}).prototype=Object.create(Fv.prototype);
var uW$=new Date,EuG=new Date,LPe=re(function(){},function(X,R){X.setTime(+X+R)},function(X,R){return R-X});
LPe.every=function(X){X=Math.floor(X);return isFinite(X)&&X>0?X>1?re(function(R){R.setTime(Math.floor(R/X)*X)},function(R,jM){R.setTime(+R+jM*X)},function(R,jM){return(jM-R)/X}):LPe:null};
re(function(X){X.setTime(Math.floor(X/1E3)*1E3)},function(X,R){X.setTime(+X+R*1E3)},function(X,R){return(R-X)/1E3},function(X){return X.getUTCSeconds()});
re(function(X){X.setTime(Math.floor(X/6E4)*6E4)},function(X,R){X.setTime(+X+R*6E4)},function(X,R){return(R-X)/6E4},function(X){return X.getMinutes()});
re(function(X){var R=X.getTimezoneOffset()*6E4%36E5;R<0&&(R+=36E5);X.setTime(Math.floor((+X-R)/36E5)*36E5+R)},function(X,R){X.setTime(+X+R*36E5)},function(X,R){return(R-X)/36E5},function(X){return X.getHours()});
var nof=re(function(X){X.setHours(0,0,0,0)},function(X,R){X.setDate(X.getDate()+R)},function(X,R){return(R-X-(R.getTimezoneOffset()-X.getTimezoneOffset())*6E4)/864E5},function(X){return X.getDate()-1}),AqE=$J(0),guE=$J(1);
$J(2);$J(3);var O_$=$J(4);$J(5);$J(6);re(function(X){X.setDate(1);X.setHours(0,0,0,0)},function(X,R){X.setMonth(X.getMonth()+R)},function(X,R){return R.getMonth()-X.getMonth()+(R.getFullYear()-X.getFullYear())*12},function(X){return X.getMonth()});
var qa=re(function(X){X.setMonth(0,1);X.setHours(0,0,0,0)},function(X,R){X.setFullYear(X.getFullYear()+R)},function(X,R){return R.getFullYear()-X.getFullYear()},function(X){return X.getFullYear()});
qa.every=function(X){return isFinite(X=Math.floor(X))&&X>0?re(function(R){R.setFullYear(Math.floor(R.getFullYear()/X)*X);R.setMonth(0,1);R.setHours(0,0,0,0)},function(R,jM){R.setFullYear(R.getFullYear()+jM*X)}):null};
re(function(X){X.setUTCSeconds(0,0)},function(X,R){X.setTime(+X+R*6E4)},function(X,R){return(R-X)/6E4},function(X){return X.getUTCMinutes()});
re(function(X){X.setUTCMinutes(0,0,0)},function(X,R){X.setTime(+X+R*36E5)},function(X,R){return(R-X)/36E5},function(X){return X.getUTCHours()});
var sDo=re(function(X){X.setUTCHours(0,0,0,0)},function(X,R){X.setUTCDate(X.getUTCDate()+R)},function(X,R){return(R-X)/864E5},function(X){return X.getUTCDate()-1}),s7E=X8(0),B73=X8(1);
X8(2);X8(3);var fsm=X8(4);X8(5);X8(6);re(function(X){X.setUTCDate(1);X.setUTCHours(0,0,0,0)},function(X,R){X.setUTCMonth(X.getUTCMonth()+R)},function(X,R){return R.getUTCMonth()-X.getUTCMonth()+(R.getUTCFullYear()-X.getUTCFullYear())*12},function(X){return X.getUTCMonth()});
var eU=re(function(X){X.setUTCMonth(0,1);X.setUTCHours(0,0,0,0)},function(X,R){X.setUTCFullYear(X.getUTCFullYear()+R)},function(X,R){return R.getUTCFullYear()-X.getUTCFullYear()},function(X){return X.getUTCFullYear()});
eU.every=function(X){return isFinite(X=Math.floor(X))&&X>0?re(function(R){R.setUTCFullYear(Math.floor(R.getUTCFullYear()/X)*X);R.setUTCMonth(0,1);R.setUTCHours(0,0,0,0)},function(R,jM){R.setUTCFullYear(R.getUTCFullYear()+jM*X)}):null};
var AKf={"-":"",_:" ",0:"0"},No=/^\s*\d+/,fOZ=/^%/,OJZ=/[\\^$*+?|[\]().{}]/g,XyM;(function(X){XyM=nFz(X);jKj=XyM.utcFormat;zpo=XyM.utcParse;return XyM})({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||jKj("%Y-%m-%dT%H:%M:%S.%LZ");+new Date("2000-01-01T00:00:00.000Z")||zpo("%Y-%m-%dT%H:%M:%S.%LZ");up("1f77b4ff7f0e2ca02cd627289467bd8c564be377c27f7f7fbcbd2217becf");
up("393b795254a36b6ecf9c9ede6379398ca252b5cf6bcedb9c8c6d31bd9e39e7ba52e7cb94843c39ad494ad6616be7969c7b4173a55194ce6dbdde9ed6");up("3182bd6baed69ecae1c6dbefe6550dfd8d3cfdae6bfdd0a231a35474c476a1d99bc7e9c0756bb19e9ac8bcbddcdadaeb636363969696bdbdbdd9d9d9");up("1f77b4aec7e8ff7f0effbb782ca02c98df8ad62728ff98969467bdc5b0d58c564bc49c94e377c2f7b6d27f7f7fc7c7c7bcbd22dbdb8d17becf9edae5");up("7fc97fbeaed4fdc086ffff99386cb0f0027fbf5b17666666");up("1b9e77d95f027570b3e7298a66a61ee6ab02a6761d666666");up("a6cee31f78b4b2df8a33a02cfb9a99e31a1cfdbf6fff7f00cab2d66a3d9affff99b15928");
up("fbb4aeb3cde3ccebc5decbe4fed9a6ffffcce5d8bdfddaecf2f2f2");up("b3e2cdfdcdaccbd5e8f4cae4e6f5c9fff2aef1e2cccccccc");up("e41a1c377eb84daf4a984ea3ff7f00ffff33a65628f781bf999999");up("66c2a5fc8d628da0cbe78ac3a6d854ffd92fe5c494b3b3b3");up("8dd3c7ffffb3bebadafb807280b1d3fdb462b3de69fccde5d9d9d9bc80bdccebc5ffed6f");var iJZ=Array(3).concat("d8b365f5f5f55ab4ac","a6611adfc27d80cdc1018571","a6611adfc27df5f5f580cdc1018571","8c510ad8b365f6e8c3c7eae55ab4ac01665e","8c510ad8b365f6e8c3f5f5f5c7eae55ab4ac01665e","8c510abf812ddfc27df6e8c3c7eae580cdc135978f01665e",
"8c510abf812ddfc27df6e8c3f5f5f5c7eae580cdc135978f01665e","5430058c510abf812ddfc27df6e8c3c7eae580cdc135978f01665e003c30","5430058c510abf812ddfc27df6e8c3f5f5f5c7eae580cdc135978f01665e003c30").map(up);W3(iJZ);var x_Z=Array(3).concat("af8dc3f7f7f77fbf7b","7b3294c2a5cfa6dba0008837","7b3294c2a5cff7f7f7a6dba0008837","762a83af8dc3e7d4e8d9f0d37fbf7b1b7837","762a83af8dc3e7d4e8f7f7f7d9f0d37fbf7b1b7837","762a839970abc2a5cfe7d4e8d9f0d3a6dba05aae611b7837","762a839970abc2a5cfe7d4e8f7f7f7d9f0d3a6dba05aae611b7837",
"40004b762a839970abc2a5cfe7d4e8d9f0d3a6dba05aae611b783700441b","40004b762a839970abc2a5cfe7d4e8f7f7f7d9f0d3a6dba05aae611b783700441b").map(up);W3(x_Z);var v3e=Array(3).concat("e9a3c9f7f7f7a1d76a","d01c8bf1b6dab8e1864dac26","d01c8bf1b6daf7f7f7b8e1864dac26","c51b7de9a3c9fde0efe6f5d0a1d76a4d9221","c51b7de9a3c9fde0eff7f7f7e6f5d0a1d76a4d9221","c51b7dde77aef1b6dafde0efe6f5d0b8e1867fbc414d9221","c51b7dde77aef1b6dafde0eff7f7f7e6f5d0b8e1867fbc414d9221","8e0152c51b7dde77aef1b6dafde0efe6f5d0b8e1867fbc414d9221276419",
"8e0152c51b7dde77aef1b6dafde0eff7f7f7e6f5d0b8e1867fbc414d9221276419").map(up);W3(v3e);var GG0=Array(3).concat("998ec3f7f7f7f1a340","5e3c99b2abd2fdb863e66101","5e3c99b2abd2f7f7f7fdb863e66101","542788998ec3d8daebfee0b6f1a340b35806","542788998ec3d8daebf7f7f7fee0b6f1a340b35806","5427888073acb2abd2d8daebfee0b6fdb863e08214b35806","5427888073acb2abd2d8daebf7f7f7fee0b6fdb863e08214b35806","2d004b5427888073acb2abd2d8daebfee0b6fdb863e08214b358067f3b08","2d004b5427888073acb2abd2d8daebf7f7f7fee0b6fdb863e08214b358067f3b08").map(up);
W3(GG0);var $_i=Array(3).concat("ef8a62f7f7f767a9cf","ca0020f4a58292c5de0571b0","ca0020f4a582f7f7f792c5de0571b0","b2182bef8a62fddbc7d1e5f067a9cf2166ac","b2182bef8a62fddbc7f7f7f7d1e5f067a9cf2166ac","b2182bd6604df4a582fddbc7d1e5f092c5de4393c32166ac","b2182bd6604df4a582fddbc7f7f7f7d1e5f092c5de4393c32166ac","67001fb2182bd6604df4a582fddbc7d1e5f092c5de4393c32166ac053061","67001fb2182bd6604df4a582fddbc7f7f7f7d1e5f092c5de4393c32166ac053061").map(up);W3($_i);var XSM=Array(3).concat("ef8a62ffffff999999","ca0020f4a582bababa404040",
"ca0020f4a582ffffffbababa404040","b2182bef8a62fddbc7e0e0e09999994d4d4d","b2182bef8a62fddbc7ffffffe0e0e09999994d4d4d","b2182bd6604df4a582fddbc7e0e0e0bababa8787874d4d4d","b2182bd6604df4a582fddbc7ffffffe0e0e0bababa8787874d4d4d","67001fb2182bd6604df4a582fddbc7e0e0e0bababa8787874d4d4d1a1a1a","67001fb2182bd6604df4a582fddbc7ffffffe0e0e0bababa8787874d4d4d1a1a1a").map(up);W3(XSM);var TRZ=Array(3).concat("fc8d59ffffbf91bfdb","d7191cfdae61abd9e92c7bb6","d7191cfdae61ffffbfabd9e92c7bb6","d73027fc8d59fee090e0f3f891bfdb4575b4",
"d73027fc8d59fee090ffffbfe0f3f891bfdb4575b4","d73027f46d43fdae61fee090e0f3f8abd9e974add14575b4","d73027f46d43fdae61fee090ffffbfe0f3f8abd9e974add14575b4","a50026d73027f46d43fdae61fee090e0f3f8abd9e974add14575b4313695","a50026d73027f46d43fdae61fee090ffffbfe0f3f8abd9e974add14575b4313695").map(up);W3(TRZ);var d_i=Array(3).concat("fc8d59ffffbf91cf60","d7191cfdae61a6d96a1a9641","d7191cfdae61ffffbfa6d96a1a9641","d73027fc8d59fee08bd9ef8b91cf601a9850","d73027fc8d59fee08bffffbfd9ef8b91cf601a9850","d73027f46d43fdae61fee08bd9ef8ba6d96a66bd631a9850",
"d73027f46d43fdae61fee08bffffbfd9ef8ba6d96a66bd631a9850","a50026d73027f46d43fdae61fee08bd9ef8ba6d96a66bd631a9850006837","a50026d73027f46d43fdae61fee08bffffbfd9ef8ba6d96a66bd631a9850006837").map(up);W3(d_i);var Wh4=Array(3).concat("fc8d59ffffbf99d594","d7191cfdae61abdda42b83ba","d7191cfdae61ffffbfabdda42b83ba","d53e4ffc8d59fee08be6f59899d5943288bd","d53e4ffc8d59fee08bffffbfe6f59899d5943288bd","d53e4ff46d43fdae61fee08be6f598abdda466c2a53288bd","d53e4ff46d43fdae61fee08bffffbfe6f598abdda466c2a53288bd",
"9e0142d53e4ff46d43fdae61fee08be6f598abdda466c2a53288bd5e4fa2","9e0142d53e4ff46d43fdae61fee08bffffbfe6f598abdda466c2a53288bd5e4fa2").map(up);W3(Wh4);var o3Y=Array(3).concat("e5f5f999d8c92ca25f","edf8fbb2e2e266c2a4238b45","edf8fbb2e2e266c2a42ca25f006d2c","edf8fbccece699d8c966c2a42ca25f006d2c","edf8fbccece699d8c966c2a441ae76238b45005824","f7fcfde5f5f9ccece699d8c966c2a441ae76238b45005824","f7fcfde5f5f9ccece699d8c966c2a441ae76238b45006d2c00441b").map(up);W3(o3Y);var U_0=Array(3).concat("e0ecf49ebcda8856a7",
"edf8fbb3cde38c96c688419d","edf8fbb3cde38c96c68856a7810f7c","edf8fbbfd3e69ebcda8c96c68856a7810f7c","edf8fbbfd3e69ebcda8c96c68c6bb188419d6e016b","f7fcfde0ecf4bfd3e69ebcda8c96c68c6bb188419d6e016b","f7fcfde0ecf4bfd3e69ebcda8c96c68c6bb188419d810f7c4d004b").map(up);W3(U_0);var D_G=Array(3).concat("e0f3dba8ddb543a2ca","f0f9e8bae4bc7bccc42b8cbe","f0f9e8bae4bc7bccc443a2ca0868ac","f0f9e8ccebc5a8ddb57bccc443a2ca0868ac","f0f9e8ccebc5a8ddb57bccc44eb3d32b8cbe08589e","f7fcf0e0f3dbccebc5a8ddb57bccc44eb3d32b8cbe08589e",
"f7fcf0e0f3dbccebc5a8ddb57bccc44eb3d32b8cbe0868ac084081").map(up);W3(D_G);var R3Y=Array(3).concat("fee8c8fdbb84e34a33","fef0d9fdcc8afc8d59d7301f","fef0d9fdcc8afc8d59e34a33b30000","fef0d9fdd49efdbb84fc8d59e34a33b30000","fef0d9fdd49efdbb84fc8d59ef6548d7301f990000","fff7ecfee8c8fdd49efdbb84fc8d59ef6548d7301f990000","fff7ecfee8c8fdd49efdbb84fc8d59ef6548d7301fb300007f0000").map(up);W3(R3Y);var LhZ=Array(3).concat("ece2f0a6bddb1c9099","f6eff7bdc9e167a9cf02818a","f6eff7bdc9e167a9cf1c9099016c59","f6eff7d0d1e6a6bddb67a9cf1c9099016c59",
"f6eff7d0d1e6a6bddb67a9cf3690c002818a016450","fff7fbece2f0d0d1e6a6bddb67a9cf3690c002818a016450","fff7fbece2f0d0d1e6a6bddb67a9cf3690c002818a016c59014636").map(up);W3(LhZ);var lOi=Array(3).concat("ece7f2a6bddb2b8cbe","f1eef6bdc9e174a9cf0570b0","f1eef6bdc9e174a9cf2b8cbe045a8d","f1eef6d0d1e6a6bddb74a9cf2b8cbe045a8d","f1eef6d0d1e6a6bddb74a9cf3690c00570b0034e7b","fff7fbece7f2d0d1e6a6bddb74a9cf3690c00570b0034e7b","fff7fbece7f2d0d1e6a6bddb74a9cf3690c00570b0045a8d023858").map(up);W3(lOi);var pSz=Array(3).concat("e7e1efc994c7dd1c77",
"f1eef6d7b5d8df65b0ce1256","f1eef6d7b5d8df65b0dd1c77980043","f1eef6d4b9dac994c7df65b0dd1c77980043","f1eef6d4b9dac994c7df65b0e7298ace125691003f","f7f4f9e7e1efd4b9dac994c7df65b0e7298ace125691003f","f7f4f9e7e1efd4b9dac994c7df65b0e7298ace125698004367001f").map(up);W3(pSz);var wSf=Array(3).concat("fde0ddfa9fb5c51b8a","feebe2fbb4b9f768a1ae017e","feebe2fbb4b9f768a1c51b8a7a0177","feebe2fcc5c0fa9fb5f768a1c51b8a7a0177","feebe2fcc5c0fa9fb5f768a1dd3497ae017e7a0177","fff7f3fde0ddfcc5c0fa9fb5f768a1dd3497ae017e7a0177",
"fff7f3fde0ddfcc5c0fa9fb5f768a1dd3497ae017e7a017749006a").map(up);W3(wSf);var m_e=Array(3).concat("edf8b17fcdbb2c7fb8","ffffcca1dab441b6c4225ea8","ffffcca1dab441b6c42c7fb8253494","ffffccc7e9b47fcdbb41b6c42c7fb8253494","ffffccc7e9b47fcdbb41b6c41d91c0225ea80c2c84","ffffd9edf8b1c7e9b47fcdbb41b6c41d91c0225ea80c2c84","ffffd9edf8b1c7e9b47fcdbb41b6c41d91c0225ea8253494081d58").map(up);W3(m_e);var yqE=Array(3).concat("f7fcb9addd8e31a354","ffffccc2e69978c679238443","ffffccc2e69978c67931a354006837","ffffccd9f0a3addd8e78c67931a354006837",
"ffffccd9f0a3addd8e78c67941ab5d238443005a32","ffffe5f7fcb9d9f0a3addd8e78c67941ab5d238443005a32","ffffe5f7fcb9d9f0a3addd8e78c67941ab5d238443006837004529").map(up);W3(yqE);var kGM=Array(3).concat("fff7bcfec44fd95f0e","ffffd4fed98efe9929cc4c02","ffffd4fed98efe9929d95f0e993404","ffffd4fee391fec44ffe9929d95f0e993404","ffffd4fee391fec44ffe9929ec7014cc4c028c2d04","ffffe5fff7bcfee391fec44ffe9929ec7014cc4c028c2d04","ffffe5fff7bcfee391fec44ffe9929ec7014cc4c02993404662506").map(up);W3(kGM);var MKV=Array(3).concat("ffeda0feb24cf03b20",
"ffffb2fecc5cfd8d3ce31a1c","ffffb2fecc5cfd8d3cf03b20bd0026","ffffb2fed976feb24cfd8d3cf03b20bd0026","ffffb2fed976feb24cfd8d3cfc4e2ae31a1cb10026","ffffccffeda0fed976feb24cfd8d3cfc4e2ae31a1cb10026","ffffccffeda0fed976feb24cfd8d3cfc4e2ae31a1cbd0026800026").map(up);W3(MKV);var cq0=Array(3).concat("deebf79ecae13182bd","eff3ffbdd7e76baed62171b5","eff3ffbdd7e76baed63182bd08519c","eff3ffc6dbef9ecae16baed63182bd08519c","eff3ffc6dbef9ecae16baed64292c62171b5084594","f7fbffdeebf7c6dbef9ecae16baed64292c62171b5084594",
"f7fbffdeebf7c6dbef9ecae16baed64292c62171b508519c08306b").map(up);W3(cq0);var YRG=Array(3).concat("e5f5e0a1d99b31a354","edf8e9bae4b374c476238b45","edf8e9bae4b374c47631a354006d2c","edf8e9c7e9c0a1d99b74c47631a354006d2c","edf8e9c7e9c0a1d99b74c47641ab5d238b45005a32","f7fcf5e5f5e0c7e9c0a1d99b74c47641ab5d238b45005a32","f7fcf5e5f5e0c7e9c0a1d99b74c47641ab5d238b45006d2c00441b").map(up);W3(YRG);var qRE=Array(3).concat("f0f0f0bdbdbd636363","f7f7f7cccccc969696525252","f7f7f7cccccc969696636363252525","f7f7f7d9d9d9bdbdbd969696636363252525",
"f7f7f7d9d9d9bdbdbd969696737373525252252525","fffffff0f0f0d9d9d9bdbdbd969696737373525252252525","fffffff0f0f0d9d9d9bdbdbd969696737373525252252525000000").map(up);W3(qRE);var e3E=Array(3).concat("efedf5bcbddc756bb1","f2f0f7cbc9e29e9ac86a51a3","f2f0f7cbc9e29e9ac8756bb154278f","f2f0f7dadaebbcbddc9e9ac8756bb154278f","f2f0f7dadaebbcbddc9e9ac8807dba6a51a34a1486","fcfbfdefedf5dadaebbcbddc9e9ac8807dba6a51a34a1486","fcfbfdefedf5dadaebbcbddc9e9ac8807dba6a51a354278f3f007d").map(up);W3(e3E);var aGE=Array(3).concat("fee0d2fc9272de2d26",
"fee5d9fcae91fb6a4acb181d","fee5d9fcae91fb6a4ade2d26a50f15","fee5d9fcbba1fc9272fb6a4ade2d26a50f15","fee5d9fcbba1fc9272fb6a4aef3b2ccb181d99000d","fff5f0fee0d2fcbba1fc9272fb6a4aef3b2ccb181d99000d","fff5f0fee0d2fcbba1fc9272fb6a4aef3b2ccb181da50f1567000d").map(up);W3(aGE);var jDZ=Array(3).concat("fee6cefdae6be6550d","feeddefdbe85fd8d3cd94701","feeddefdbe85fd8d3ce6550da63603","feeddefdd0a2fdae6bfd8d3ce6550da63603","feeddefdd0a2fdae6bfd8d3cf16913d948018c2d04","fff5ebfee6cefdd0a2fdae6bfd8d3cf16913d948018c2d04",
"fff5ebfee6cefdd0a2fdae6bfd8d3cf16913d94801a636037f2704").map(up);W3(jDZ);FJm(He(300,.5,0),He(-240,.5,1));FJm(He(-100,.75,.35),He(80,1.5,.8));FJm(He(260,.75,.35),He(80,1.5,.8));He();dE();SzI(up("44015444025645045745055946075a46085c460a5d460b5e470d60470e6147106347116447136548146748166848176948186a481a6c481b6d481c6e481d6f481f70482071482173482374482475482576482677482878482979472a7a472c7a472d7b472e7c472f7d46307e46327e46337f463480453581453781453882443983443a83443b84433d84433e85423f854240864241864142874144874045884046883f47883f48893e49893e4a893e4c8a3d4d8a3d4e8a3c4f8a3c508b3b518b3b528b3a538b3a548c39558c39568c38588c38598c375a8c375b8d365c8d365d8d355e8d355f8d34608d34618d33628d33638d32648e32658e31668e31678e31688e30698e306a8e2f6b8e2f6c8e2e6d8e2e6e8e2e6f8e2d708e2d718e2c718e2c728e2c738e2b748e2b758e2a768e2a778e2a788e29798e297a8e297b8e287c8e287d8e277e8e277f8e27808e26818e26828e26828e25838e25848e25858e24868e24878e23888e23898e238a8d228b8d228c8d228d8d218e8d218f8d21908d21918c20928c20928c20938c1f948c1f958b1f968b1f978b1f988b1f998a1f9a8a1e9b8a1e9c891e9d891f9e891f9f881fa0881fa1881fa1871fa28720a38620a48621a58521a68522a78522a88423a98324aa8325ab8225ac8226ad8127ad8128ae8029af7f2ab07f2cb17e2db27d2eb37c2fb47c31b57b32b67a34b67935b77937b87838b9773aba763bbb753dbc743fbc7340bd7242be7144bf7046c06f48c16e4ac16d4cc26c4ec36b50c46a52c56954c56856c66758c7655ac8645cc8635ec96260ca6063cb5f65cb5e67cc5c69cd5b6ccd5a6ece5870cf5773d05675d05477d1537ad1517cd2507fd34e81d34d84d44b86d54989d5488bd6468ed64590d74393d74195d84098d83e9bd93c9dd93ba0da39a2da37a5db36a8db34aadc32addc30b0dd2fb2dd2db5de2bb8de29bade28bddf26c0df25c2df23c5e021c8e020cae11fcde11dd0e11cd2e21bd5e21ad8e219dae319dde318dfe318e2e418e5e419e7e419eae51aece51befe51cf1e51df4e61ef6e620f8e621fbe723fde725"));
SzI(up("00000401000501010601010802010902020b02020d03030f03031204041405041606051806051a07061c08071e0907200a08220b09240c09260d0a290e0b2b100b2d110c2f120d31130d34140e36150e38160f3b180f3d19103f1a10421c10441d11471e114920114b21114e22115024125325125527125829115a2a115c2c115f2d11612f116331116533106734106936106b38106c390f6e3b0f703d0f713f0f72400f74420f75440f764510774710784910784a10794c117a4e117b4f127b51127c52137c54137d56147d57157e59157e5a167e5c167f5d177f5f187f601880621980641a80651a80671b80681c816a1c816b1d816d1d816e1e81701f81721f817320817521817621817822817922827b23827c23827e24828025828125818326818426818627818827818928818b29818c29818e2a81902a81912b81932b80942c80962c80982d80992d809b2e7f9c2e7f9e2f7fa02f7fa1307ea3307ea5317ea6317da8327daa337dab337cad347cae347bb0357bb2357bb3367ab5367ab73779b83779ba3878bc3978bd3977bf3a77c03a76c23b75c43c75c53c74c73d73c83e73ca3e72cc3f71cd4071cf4070d0416fd2426fd3436ed5446dd6456cd8456cd9466bdb476adc4869de4968df4a68e04c67e24d66e34e65e44f64e55064e75263e85362e95462ea5661eb5760ec5860ed5a5fee5b5eef5d5ef05f5ef1605df2625df2645cf3655cf4675cf4695cf56b5cf66c5cf66e5cf7705cf7725cf8745cf8765cf9785df9795df97b5dfa7d5efa7f5efa815ffb835ffb8560fb8761fc8961fc8a62fc8c63fc8e64fc9065fd9266fd9467fd9668fd9869fd9a6afd9b6bfe9d6cfe9f6dfea16efea36ffea571fea772fea973feaa74feac76feae77feb078feb27afeb47bfeb67cfeb77efeb97ffebb81febd82febf84fec185fec287fec488fec68afec88cfeca8dfecc8ffecd90fecf92fed194fed395fed597fed799fed89afdda9cfddc9efddea0fde0a1fde2a3fde3a5fde5a7fde7a9fde9aafdebacfcecaefceeb0fcf0b2fcf2b4fcf4b6fcf6b8fcf7b9fcf9bbfcfbbdfcfdbf"));
SzI(up("00000401000501010601010802010a02020c02020e03021004031204031405041706041907051b08051d09061f0a07220b07240c08260d08290e092b10092d110a30120a32140b34150b37160b39180c3c190c3e1b0c411c0c431e0c451f0c48210c4a230c4c240c4f260c51280b53290b552b0b572d0b592f0a5b310a5c320a5e340a5f3609613809623909633b09643d09653e0966400a67420a68440a68450a69470b6a490b6a4a0c6b4c0c6b4d0d6c4f0d6c510e6c520e6d540f6d550f6d57106e59106e5a116e5c126e5d126e5f136e61136e62146e64156e65156e67166e69166e6a176e6c186e6d186e6f196e71196e721a6e741a6e751b6e771c6d781c6d7a1d6d7c1d6d7d1e6d7f1e6c801f6c82206c84206b85216b87216b88226a8a226a8c23698d23698f24699025689225689326679526679727669827669a28659b29649d29649f2a63a02a63a22b62a32c61a52c60a62d60a82e5fa92e5eab2f5ead305dae305cb0315bb1325ab3325ab43359b63458b73557b93556ba3655bc3754bd3853bf3952c03a51c13a50c33b4fc43c4ec63d4dc73e4cc83f4bca404acb4149cc4248ce4347cf4446d04545d24644d34743d44842d54a41d74b3fd84c3ed94d3dda4e3cdb503bdd513ade5238df5337e05536e15635e25734e35933e45a31e55c30e65d2fe75e2ee8602de9612bea632aeb6429eb6628ec6726ed6925ee6a24ef6c23ef6e21f06f20f1711ff1731df2741cf3761bf37819f47918f57b17f57d15f67e14f68013f78212f78410f8850ff8870ef8890cf98b0bf98c0af98e09fa9008fa9207fa9407fb9606fb9706fb9906fb9b06fb9d07fc9f07fca108fca309fca50afca60cfca80dfcaa0ffcac11fcae12fcb014fcb216fcb418fbb61afbb81dfbba1ffbbc21fbbe23fac026fac228fac42afac62df9c72ff9c932f9cb35f8cd37f8cf3af7d13df7d340f6d543f6d746f5d949f5db4cf4dd4ff4df53f4e156f3e35af3e55df2e661f2e865f2ea69f1ec6df1ed71f1ef75f1f179f2f27df2f482f3f586f3f68af4f88ef5f992f6fa96f8fb9af9fc9dfafda1fcffa4"));
SzI(up("0d088710078813078916078a19068c1b068d1d068e20068f2206902406912605912805922a05932c05942e05952f059631059733059735049837049938049a3a049a3c049b3e049c3f049c41049d43039e44039e46039f48039f4903a04b03a14c02a14e02a25002a25102a35302a35502a45601a45801a45901a55b01a55c01a65e01a66001a66100a76300a76400a76600a76700a86900a86a00a86c00a86e00a86f00a87100a87201a87401a87501a87701a87801a87a02a87b02a87d03a87e03a88004a88104a78305a78405a78606a68707a68808a68a09a58b0aa58d0ba58e0ca48f0da4910ea3920fa39410a29511a19613a19814a099159f9a169f9c179e9d189d9e199da01a9ca11b9ba21d9aa31e9aa51f99a62098a72197a82296aa2395ab2494ac2694ad2793ae2892b02991b12a90b22b8fb32c8eb42e8db52f8cb6308bb7318ab83289ba3388bb3488bc3587bd3786be3885bf3984c03a83c13b82c23c81c33d80c43e7fc5407ec6417dc7427cc8437bc9447aca457acb4679cc4778cc4977cd4a76ce4b75cf4c74d04d73d14e72d24f71d35171d45270d5536fd5546ed6556dd7566cd8576bd9586ada5a6ada5b69db5c68dc5d67dd5e66de5f65de6164df6263e06363e16462e26561e26660e3685fe4695ee56a5de56b5de66c5ce76e5be76f5ae87059e97158e97257ea7457eb7556eb7655ec7754ed7953ed7a52ee7b51ef7c51ef7e50f07f4ff0804ef1814df1834cf2844bf3854bf3874af48849f48948f58b47f58c46f68d45f68f44f79044f79143f79342f89441f89540f9973ff9983ef99a3efa9b3dfa9c3cfa9e3bfb9f3afba139fba238fca338fca537fca636fca835fca934fdab33fdac33fdae32fdaf31fdb130fdb22ffdb42ffdb52efeb72dfeb82cfeba2cfebb2bfebd2afebe2afec029fdc229fdc328fdc527fdc627fdc827fdca26fdcb26fccd25fcce25fcd025fcd225fbd324fbd524fbd724fad824fada24f9dc24f9dd25f8df25f8e125f7e225f7e425f6e626f6e826f5e926f5eb27f4ed27f3ee27f3f027f2f227f1f426f1f525f0f724f0f921"));
xs1.prototype={lineStart:function(){this._point=0},
lineEnd:function(){(this._line||this._line!==0&&this._point===1)&&this._context.closePath();this._line=1-this._line},
point:function(X,R){X=+X;R=+R;switch(this._point){case 0:this._point=1;this._line?this._context.lineTo(X,R):this._context.moveTo(X,R);break;case 1:this._point=2;default:this._context.lineTo(X,R)}}};
(function(X){function R(jM){return new voi(X(jM))}
R._curve=X;return R})(function(X){return new xs1(X)});
voi.prototype={lineStart:function(){this._curve.lineStart()},
lineEnd:function(){this._curve.lineEnd()},
point:function(X,R){this._curve.point(R*Math.sin(X),R*-Math.cos(X))}};
sT3.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:AtI(this,this._t0,$sw(this,this._t0))}(this._line||this._line!==0&&this._point===1)&&this._context.closePath();this._line=1-this._line},
point:function(X,R){var jM=NaN;X=+X;R=+R;if(X!==this._x1||R!==this._y1){switch(this._point){case 0:this._point=1;this._line?this._context.lineTo(X,R):this._context.moveTo(X,R);break;case 1:this._point=2;break;case 2:this._point=3;AtI(this,$sw(this,jM=Gcw(this,X,R)),jM);break;default:AtI(this,this._t0,jM=Gcw(this,X,R))}this._x0=this._x1;this._x1=X;this._y0=this._y1;this._y1=R;this._t0=jM}}};
(function(X){this._context=new XwI(X)}.prototype=Object.create(sT3.prototype)).point=function(X,R){sT3.prototype.point.call(this,R,X)};
XwI.prototype={moveTo:function(X,R){this._context.moveTo(R,X)},
closePath:function(){this._context.closePath()},
lineTo:function(X,R){this._context.lineTo(R,X)},
bezierCurveTo:function(X,R,jM,CG,A1,h1){this._context.bezierCurveTo(R,X,CG,jM,h1,A1)}};
VR.prototype={constructor:VR,scale:function(X){return X===1?this:new VR(this.k*X,this.x,this.y)},
translate:function(X,R){return X===0&R===0?this:new VR(this.k,this.x+this.k*X,this.y+this.k*R)},
apply:function(X){return[X[0]*this.k+this.x,X[1]*this.k+this.y]},
invert:function(X){return[(X[0]-this.x)/this.k,(X[1]-this.y)/this.k]},
toString:function(){return"translate("+this.x+","+this.y+") scale("+this.k+")"}};
new VR(1,0,0);hJG=fZ;V5.svg=V5.svg;V5.xhtml=V5.xhtml;V5.xlink=V5.xlink;V5.xml=V5.xml;V5.xmlns=V5.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 Ico="hammer_"+(Math.random()*1E6|0),JEJ=function(){var a=document||document;if(!a[Ico]){var z=function(){(function(I,J,r,P){function N(SM,Wp,w$){return setTimeout(n(SM,w$),Wp)}
function u(SM,Wp,w$){return Array.isArray(SM)?(E(SM,w$[Wp],w$),!0):!1}
function E(SM,Wp,w$){var sO;if(SM)if(SM.forEach)SM.forEach(Wp,w$);else if(SM.length!==P){var B4=0;for(sO=SM.length;B4<sO;B4++)Wp.call(w$,SM[B4],B4,SM)}else for(B4 in SM)SM.hasOwnProperty(B4)&&Wp.call(w$,SM[B4],B4,SM)}
function O(SM,Wp,w$){for(var sO=Object.keys(Wp),B4=0,v9=sO.length;B4<v9;B4++)if(!w$||w$&&SM[sO[B4]]===P)SM[sO[B4]]=Wp[sO[B4]];return SM}
function f(SM,Wp){return O(SM,Wp,!0)}
function A(SM,Wp,w$){Wp=Wp.prototype;var sO=SM.prototype=Object.create(Wp);sO.constructor=SM;sO._super=Wp;w$&&O(sO,w$)}
function n(SM,Wp){return function(){return SM.apply(Wp,arguments)}}
function F(SM,Wp){return typeof SM=="function"?SM.apply(Wp?Wp[0]||P:P,Wp):SM}
function h(SM,Wp,w$){E(d(Wp),function(sO){SM.addEventListener(sO,w$,!1)})}
function v(SM,Wp,w$){E(d(Wp),function(sO){SM.removeEventListener(sO,w$,!1)})}
function d(SM){return SM.trim().split(/\s+/g)}
function W(SM,Wp,w$){if(SM.indexOf&&!w$)return SM.indexOf(Wp);for(var sO=0,B4=SM.length;sO<B4;sO++)if(w$&&SM[sO][w$]==Wp||!w$&&SM[sO]===Wp)return sO;return-1}
function l(SM,Wp,w$){for(var sO=[],B4=[],v9=0,VV=SM.length;v9<VV;v9++){var bw=Wp?SM[v9][Wp]:SM[v9];W(B4,bw)<0&&sO.push(SM[v9]);B4[v9]=bw}w$&&(sO=Wp?sO.sort(function(He,XM){return He[Wp]>XM[Wp]}):sO.sort());
return sO}
function q(SM,Wp){for(var w$,sO=Wp[0].toUpperCase()+Wp.slice(1),B4=0,v9=Cl.length;B4<v9;B4++)if(w$=(w$=Cl[B4])?w$+sO:Wp,w$ in SM)return w$;return P}
function m(SM,Wp){var w$=this;this.manager=SM;this.callback=Wp;this.element=SM.element;this.target=SM.options.inputTarget;this.domHandler=function(sO){F(SM.options.enable,[SM])&&w$.handler(sO)};
this.evEl&&h(this.element,this.evEl,this.domHandler);this.evTarget&&h(this.target,this.evTarget,this.domHandler);this.evWin&&h(I,this.evWin,this.domHandler)}
function M(SM){var Wp;ST?Wp=LG:K6?Wp=oE:fZ?Wp=Pe:Wp=Hp;return new Wp(SM,y)}
function y(SM,Wp,w$){var sO=w$.pointers.length,B4=w$.changedPointers.length,v9=Wp&1&&sO-B4===0;w$.isFirst=!!v9;w$.isFinal=!!(Wp&12&&sO-B4===0);v9&&(SM.session={});w$.eventType=Wp;Wp=SM.session;sO=w$.pointers;B4=sO.length;Wp.firstInput||(Wp.firstInput=e(w$));B4>1&&!Wp.firstMultiple?Wp.firstMultiple=e(w$):B4===1&&(Wp.firstMultiple=!1);v9=Wp.firstInput;var VV=(B4=Wp.firstMultiple)?B4.center:v9.center,bw=w$.center=Bp(sO);w$.timeStamp=iw();w$.deltaTime=w$.timeStamp-v9.timeStamp;w$.angle=bG(VV,bw);w$.distance=
nG(VV,bw);v9=w$.center;VV=Wp.offsetDelta||{};bw=Wp.prevDelta||{};var He=Wp.prevInput||{};if(w$.eventType===1||He.eventType===4)bw=Wp.prevDelta={x:He.deltaX||0,y:He.deltaY||0},VV=Wp.offsetDelta={x:v9.x,y:v9.y};w$.deltaX=bw.x+(v9.x-VV.x);w$.deltaY=bw.y+(v9.y-VV.y);w$.offsetDirection=Em(w$.deltaX,w$.deltaY);B4?(v9=B4.pointers,v9=nG(sO[0],sO[1],dE)/nG(v9[0],v9[1],dE)):v9=1;w$.scale=v9;B4?(B4=B4.pointers,sO=bG(sO[1],sO[0],dE)-bG(B4[1],B4[0],dE)):sO=0;w$.rotation=sO;VV=Wp.lastInterval||w$;sO=w$.timeStamp-
VV.timeStamp;w$.eventType!=8&&(sO>25||VV.velocity===P)?(v9=VV.deltaX-w$.deltaX,VV=VV.deltaY-w$.deltaY,bw=v9/sO||0,He=VV/sO||0,sO=bw,B4=He,bw=SI(bw)>SI(He)?bw:He,v9=Em(v9,VV),Wp.lastInterval=w$):(bw=VV.velocity,sO=VV.velocityX,B4=VV.velocityY,v9=VV.direction);w$.velocity=bw;w$.velocityX=sO;w$.velocityY=B4;w$.direction=v9;Wp=SM.element;a:{for(sO=w$.srcEvent.target;sO;){if(sO==Wp){sO=!0;break a}sO=sO.parentNode}sO=!1}sO&&(Wp=w$.srcEvent.target);w$.target=Wp;SM.emit("hammer.input",w$);SM.recognize(w$);
SM.session.prevInput=w$}
function e(SM){for(var Wp=[],w$=0;w$<SM.pointers.length;w$++)Wp[w$]={clientX:sG(SM.pointers[w$].clientX),clientY:sG(SM.pointers[w$].clientY)};return{timeStamp:iw(),pointers:Wp,center:Bp(Wp),deltaX:SM.deltaX,deltaY:SM.deltaY}}
function Bp(SM){var Wp=SM.length;if(Wp===1)return{x:sG(SM[0].clientX),y:sG(SM[0].clientY)};for(var w$=0,sO=0,B4=0;B4<Wp;B4++)w$+=SM[B4].clientX,sO+=SM[B4].clientY;return{x:sG(w$/Wp),y:sG(sO/Wp)}}
function Em(SM,Wp){return SM===Wp?1:SI(SM)>=SI(Wp)?SM>0?2:4:Wp>0?8:16}
function nG(SM,Wp,w$){w$||(w$=Ll);var sO=Wp[w$[0]]-SM[w$[0]];SM=Wp[w$[1]]-SM[w$[1]];return Math.sqrt(sO*sO+SM*SM)}
function bG(SM,Wp,w$){w$||(w$=Ll);return Math.atan2(Wp[w$[1]]-SM[w$[1]],Wp[w$[0]]-SM[w$[0]])*180/Math.PI}
function Hp(){this.evEl="mousedown";this.evWin="mousemove mouseup";this.allow=!0;this.pressed=!1;m.apply(this,arguments)}
function LG(){this.evEl=ed;this.evWin=HL;m.apply(this,arguments);this.store=this.manager.session.pointerEvents=[]}
function oE(){this.evTarget="touchstart touchmove touchend touchcancel";this.targetIds={};m.apply(this,arguments)}
function Pe(){m.apply(this,arguments);var SM=n(this.handler,this);this.touch=new oE(this.manager,SM);this.mouse=new Hp(this.manager,SM)}
function TJ(SM,Wp){this.manager=SM;this.set(Wp)}
function Be(SM){if(SM.indexOf("none")>-1)return"none";var Wp=SM.indexOf("pan-x")>-1,w$=SM.indexOf("pan-y")>-1;return Wp&&w$?"pan-x pan-y":Wp||w$?Wp?"pan-x":"pan-y":SM.indexOf("manipulation")>-1?"manipulation":"auto"}
function eM(SM){this.id=H4++;this.manager=null;this.options=f(SM||{},this.defaults);SM=this.options.enable;this.options.enable=SM===P?!0:SM;this.state=1;this.simultaneous={};this.requireFail=[]}
function Ao(SM){return SM==16?"down":SM==8?"up":SM==2?"left":SM==4?"right":""}
function gf(SM,Wp){return(Wp=Wp.manager)?Wp.get(SM):SM}
function GJ(){eM.apply(this,arguments)}
function Sf(){GJ.apply(this,arguments);this.pY=this.pX=null}
function ce(){GJ.apply(this,arguments)}
function r$(){eM.apply(this,arguments);this._input=this._timer=null}
function aw(){GJ.apply(this,arguments)}
function Kl(){GJ.apply(this,arguments)}
function EG(){eM.apply(this,arguments);this.pCenter=this.pTime=!1;this._input=this._timer=null;this.count=0}
function F1(SM,Wp){Wp=Wp||{};var w$=Wp.recognizers;Wp.recognizers=w$===P?F1.defaults.preset:w$;return new jf(SM,Wp)}
function jf(SM,Wp){Wp=Wp||{};this.options=f(Wp,F1.defaults);this.options.inputTarget=this.options.inputTarget||SM;this.handlers={};this.session={};this.recognizers=[];this.element=SM;this.input=M(this);this.touchAction=new TJ(this,this.options.touchAction);zj(this,!0);E(Wp.recognizers,function(w$){var sO=this.add(new w$[0](w$[1]));w$[2]&&sO.recognizeWith(w$[2]);w$[3]&&sO.requireFailure(w$[2])},this)}
function zj(SM,Wp){var w$=SM.element;E(SM.options.cssProps,function(sO,B4){w$.style[q(w$.style,B4)]=Wp?sO:""})}
function aZ(SM,Wp){var w$=J.createEvent("Event");w$.initEvent(SM,!0,!0);w$.gesture=Wp;Wp.target.dispatchEvent(w$)}
var Cl=" webkit moz MS ms o".split(" "),kG=J.createElement("div"),sG=Math.round,SI=Math.abs,iw=Date.now,H4=1,ty=/mobile|tablet|ip(ad|hone|od)|android/i,fZ="ontouchstart"in I,ST=q(I,"PointerEvent")!==P,K6=fZ&&ty.test(navigator.userAgent),Ll=["x","y"],dE=["clientX","clientY"];m.prototype={handler:function(){},
destroy:function(){this.evEl&&v(this.element,this.evEl,this.domHandler);this.evTarget&&v(this.target,this.evTarget,this.domHandler);this.evWin&&v(I,this.evWin,this.domHandler)}};
var wE={mousedown:1,mousemove:2,mouseup:4};A(Hp,m,{handler:function(SM){var Wp=wE[SM.type];Wp&1&&SM.button===0&&(this.pressed=!0);Wp&2&&SM.which!==1&&(Wp=4);this.pressed&&this.allow&&(Wp&4&&(this.pressed=!1),this.callback(this.manager,Wp,{pointers:[SM],changedPointers:[SM],pointerType:"mouse",srcEvent:SM}))}});
var NL={pointerdown:1,pointermove:2,pointerup:4,pointercancel:8,pointerout:8},SL={2:"touch",3:"pen",4:"mouse",5:"kinect"},ed="pointerdown",HL="pointermove pointerup pointercancel";I.MSPointerEvent&&(ed="MSPointerDown",HL="MSPointerMove MSPointerUp MSPointerCancel");A(LG,m,{handler:function(SM){var Wp=this.store,w$=!1,sO=SM.type.toLowerCase().replace("ms","");sO=NL[sO];var B4=SL[SM.pointerType]||SM.pointerType;sO&1&&(SM.button===0||B4=="touch")?Wp.push(SM):sO&12&&(w$=!0);var v9=W(Wp,SM.pointerId,"pointerId");
v9<0||(Wp[v9]=SM,this.callback(this.manager,sO,{pointers:Wp,changedPointers:[SM],pointerType:B4,srcEvent:SM}),w$&&Wp.splice(v9,1))}});
var vy={touchstart:1,touchmove:2,touchend:4,touchcancel:8};A(oE,m,{handler:function(SM){var Wp=vy[SM.type];var w$=Array.prototype.slice.call(SM.touches,0);var sO=this.targetIds;if(Wp&3&&w$.length===1)sO[w$[0].identifier]=!0,sO=[w$,w$];else{var B4,v9=Array.prototype.slice.call(SM.targetTouches,0),VV=Array.prototype.slice.call(SM.changedTouches,0),bw=[];if(Wp===1)for(w$=0,B4=v9.length;w$<B4;w$++)sO[v9[w$].identifier]=!0;w$=0;for(B4=VV.length;w$<B4;w$++)sO[VV[w$].identifier]&&bw.push(VV[w$]),Wp&12&&
delete sO[VV[w$].identifier];sO=bw.length?[l(v9.concat(bw),"identifier",!0),bw]:void 0}sO&&this.callback(this.manager,Wp,{pointers:sO[0],changedPointers:sO[1],pointerType:"touch",srcEvent:SM})}});
A(Pe,m,{handler:function(SM,Wp,w$){var sO=w$.pointerType=="mouse";if(w$.pointerType=="touch")this.mouse.allow=!1;else if(sO&&!this.mouse.allow)return;Wp&12&&(this.mouse.allow=!0);this.callback(SM,Wp,w$)},
destroy:function(){this.touch.destroy();this.mouse.destroy()}});
var CB=q(kG.style,"touchAction"),q$=CB!==P;TJ.prototype={set:function(SM){SM=="compute"&&(SM=this.compute());q$&&(this.manager.element.style[CB]=SM);this.actions=SM.toLowerCase().trim()},
update:function(){this.set(this.manager.options.touchAction)},
compute:function(){var SM=[];E(this.manager.recognizers,function(Wp){F(Wp.options.enable,[Wp])&&(SM=SM.concat(Wp.getTouchAction()))});
return Be(SM.join(" "))},
preventDefaults:function(SM){if(!q$){var Wp=SM.srcEvent;SM=SM.offsetDirection;if(this.manager.session.prevented)Wp.preventDefault();else{var w$=this.actions,sO=w$.indexOf("none")>-1,B4=w$.indexOf("pan-y")>-1;w$=w$.indexOf("pan-x")>-1;if(sO||B4&&w$||B4&&SM&6||w$&&SM&24)return this.preventSrc(Wp)}}},
preventSrc:function(SM){this.manager.session.prevented=!0;SM.preventDefault()}};
eM.prototype={defaults:{},set:function(SM){O(this.options,SM);this.manager&&this.manager.touchAction.update();return this},
recognizeWith:function(SM){if(u(SM,"recognizeWith",this))return this;var Wp=this.simultaneous;SM=gf(SM,this);Wp[SM.id]||(Wp[SM.id]=SM,SM.recognizeWith(this));return this},
dropRecognizeWith:function(SM){if(u(SM,"dropRecognizeWith",this))return this;SM=gf(SM,this);delete this.simultaneous[SM.id];return this},
requireFailure:function(SM){if(u(SM,"requireFailure",this))return this;var Wp=this.requireFail;SM=gf(SM,this);W(Wp,SM)===-1&&(Wp.push(SM),SM.requireFailure(this));return this},
dropRequireFailure:function(SM){if(u(SM,"dropRequireFailure",this))return this;SM=gf(SM,this);SM=W(this.requireFail,SM);SM>-1&&this.requireFail.splice(SM,1);return this},
hasRequireFailures:function(){return this.requireFail.length>0},
canRecognizeWith:function(SM){return!!this.simultaneous[SM.id]},
emit:function(SM){function Wp(B4){w$.manager.emit(w$.options.event+(B4?sO&16?"cancel":sO&8?"end":sO&4?"move":sO&2?"start":"":""),SM)}
var w$=this,sO=this.state;sO<8&&Wp(!0);Wp();sO>=8&&Wp(!0)},
tryEmit:function(SM){if(this.canEmit())return this.emit(SM);this.state=32},
canEmit:function(){for(var SM=0;SM<this.requireFail.length;SM++)if(!(this.requireFail[SM].state&33))return!1;return!0},
recognize:function(SM){SM=O({},SM);F(this.options.enable,[this,SM])?(this.state&56&&(this.state=1),this.state=this.process(SM),this.state&30&&this.tryEmit(SM)):(this.reset(),this.state=32)},
process:function(){},
getTouchAction:function(){},
reset:function(){}};
A(GJ,eM,{defaults:{pointers:1},attrTest:function(SM){var Wp=this.options.pointers;return Wp===0||SM.pointers.length===Wp},
process:function(SM){var Wp=this.state,w$=SM.eventType,sO=Wp&6;SM=this.attrTest(SM);return sO&&(w$&8||!SM)?Wp|16:sO||SM?w$&4?Wp|8:Wp&2?Wp|4:2:32}});
A(Sf,GJ,{defaults:{event:"pan",threshold:10,pointers:1,direction:30},getTouchAction:function(){var SM=this.options.direction;if(SM===30)return["none"];var Wp=[];SM&6&&Wp.push("pan-y");SM&24&&Wp.push("pan-x");return Wp},
directionTest:function(SM){var Wp=this.options,w$=!0,sO=SM.distance,B4=SM.direction,v9=SM.deltaX,VV=SM.deltaY;B4&Wp.direction||(Wp.direction&6?(B4=v9===0?1:v9<0?2:4,w$=v9!=this.pX,sO=Math.abs(SM.deltaX)):(B4=VV===0?1:VV<0?8:16,w$=VV!=this.pY,sO=Math.abs(SM.deltaY)));SM.direction=B4;return w$&&sO>Wp.threshold&&B4&Wp.direction},
attrTest:function(SM){return GJ.prototype.attrTest.call(this,SM)&&(this.state&2||!(this.state&2)&&this.directionTest(SM))},
emit:function(SM){this.pX=SM.deltaX;this.pY=SM.deltaY;var Wp=Ao(SM.direction);Wp&&this.manager.emit(this.options.event+Wp,SM);this._super.emit.call(this,SM)}});
A(ce,GJ,{defaults:{event:"pinch",threshold:0,pointers:2},getTouchAction:function(){return["none"]},
attrTest:function(SM){return this._super.attrTest.call(this,SM)&&(Math.abs(SM.scale-1)>this.options.threshold||this.state&2)},
emit:function(SM){this._super.emit.call(this,SM);SM.scale!==1&&this.manager.emit(this.options.event+(SM.scale<1?"in":"out"),SM)}});
A(r$,eM,{defaults:{event:"press",pointers:1,time:500,threshold:5},getTouchAction:function(){return["auto"]},
process:function(SM){var Wp=this.options,w$=SM.pointers.length===Wp.pointers,sO=SM.distance<Wp.threshold,B4=SM.deltaTime>Wp.time;this._input=SM;if(!sO||!w$||SM.eventType&12&&!B4)this.reset();else if(SM.eventType&1)this.reset(),this._timer=N(function(){this.state=8;this.tryEmit()},Wp.time,this);
else if(SM.eventType&4)return 8;return 32},
reset:function(){clearTimeout(this._timer)},
emit:function(SM){this.state===8&&(SM&&SM.eventType&4?this.manager.emit(this.options.event+"up",SM):(this._input.timeStamp=iw(),this.manager.emit(this.options.event,this._input)))}});
A(aw,GJ,{defaults:{event:"rotate",threshold:0,pointers:2},getTouchAction:function(){return["none"]},
attrTest:function(SM){return this._super.attrTest.call(this,SM)&&(Math.abs(SM.rotation)>this.options.threshold||this.state&2)}});
A(Kl,GJ,{defaults:{event:"swipe",threshold:10,velocity:.65,direction:30,pointers:1},getTouchAction:function(){return Sf.prototype.getTouchAction.call(this)},
attrTest:function(SM){var Wp=this.options.direction;if(Wp&30)var w$=SM.velocity;else Wp&6?w$=SM.velocityX:Wp&24&&(w$=SM.velocityY);return this._super.attrTest.call(this,SM)&&Wp&SM.direction&&SI(w$)>this.options.velocity&&SM.eventType&4},
emit:function(SM){var Wp=Ao(SM.direction);Wp&&this.manager.emit(this.options.event+Wp,SM);this.manager.emit(this.options.event,SM)}});
A(EG,eM,{defaults:{event:"tap",pointers:1,taps:1,interval:300,time:250,threshold:2,posThreshold:10},getTouchAction:function(){return["manipulation"]},
process:function(SM){var Wp=this.options,w$=SM.pointers.length===Wp.pointers,sO=SM.distance<Wp.threshold,B4=SM.deltaTime<Wp.time;this.reset();if(SM.eventType&1&&this.count===0)return this.failTimeout();if(sO&&B4&&w$){if(SM.eventType!=4)return this.failTimeout();w$=this.pTime?SM.timeStamp-this.pTime<Wp.interval:!0;sO=!this.pCenter||nG(this.pCenter,SM.center)<Wp.posThreshold;this.pTime=SM.timeStamp;this.pCenter=SM.center;sO&&w$?this.count+=1:this.count=1;this._input=SM;if(this.count%Wp.taps===0)return this.hasRequireFailures()?
(this._timer=N(function(){this.state=8;this.tryEmit()},Wp.interval,this),2):8}return 32},
failTimeout:function(){this._timer=N(function(){this.state=32},this.options.interval,this);
return 32},
reset:function(){clearTimeout(this._timer)},
emit:function(){this.state==8&&(this._input.tapCount=this.count,this.manager.emit(this.options.event,this._input))}});
F1.VERSION="2.0.2";F1.defaults={domEvents:!1,touchAction:"compute",inputTarget:null,enable:!0,preset:[[aw,{enable:!1}],[ce,{enable:!1},["rotate"]],[Kl,{direction:6}],[Sf,{direction:6},["swipe"]],[EG],[EG,{event:"doubletap",taps:2},["tap"]],[r$]],cssProps:{userSelect:"none",touchSelect:"none",touchCallout:"none",contentZooming:"none",userDrag:"none",tapHighlightColor:"rgba(0,0,0,0)"}};jf.prototype={set:function(SM){O(this.options,SM);return this},
stop:function(SM){this.session.stopped=SM?2:1},
recognize:function(SM){var Wp=this.session;if(!Wp.stopped){this.touchAction.preventDefaults(SM);var w$=this.recognizers,sO=Wp.curRecognizer;if(!sO||sO&&sO.state&8)sO=Wp.curRecognizer=null;for(var B4=0,v9=w$.length;B4<v9;B4++){var VV=w$[B4];Wp.stopped===2||sO&&VV!=sO&&!VV.canRecognizeWith(sO)?VV.reset():VV.recognize(SM);!sO&&VV.state&14&&(sO=Wp.curRecognizer=VV)}}},
get:function(SM){if(SM instanceof eM)return SM;for(var Wp=this.recognizers,w$=0;w$<Wp.length;w$++)if(Wp[w$].options.event==SM)return Wp[w$];return null},
add:function(SM){if(u(SM,"add",this))return this;var Wp=this.get(SM.options.event);Wp&&this.remove(Wp);this.recognizers.push(SM);SM.manager=this;this.touchAction.update();return SM},
remove:function(SM){if(u(SM,"remove",this))return this;var Wp=this.recognizers;SM=this.get(SM);Wp.splice(W(Wp,SM),1);this.touchAction.update();return this},
on:function(SM,Wp){var w$=this.handlers;E(d(SM),function(sO){w$[sO]=w$[sO]||[];w$[sO].push(Wp)});
return this},
off:function(SM,Wp){var w$=this.handlers;E(d(SM),function(sO){Wp?w$[sO].splice(W(w$[sO],Wp),1):delete w$[sO]});
return this},
emit:function(SM,Wp){this.options.domEvents&&aZ(SM,Wp);var w$=this.handlers[SM]&&this.handlers[SM].slice();if(w$&&w$.length){Wp.type=SM;Wp.preventDefault=function(){Wp.srcEvent.preventDefault()};
SM=0;for(var sO=w$.length;SM<sO;SM++)w$[SM](Wp)}},
destroy:function(){this.element&&zj(this,!1);this.handlers={};this.session={};this.input.destroy();this.element=null}};
O(F1,{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:jf,Input:m,TouchAction:TJ,Recognizer:eM,AttrRecognizer:GJ,Tap:EG,Pan:Sf,Swipe:Kl,Pinch:ce,Rotate:aw,Press:r$,on:h,off:v,each:E,merge:f,extend:O,inherit:A,bindFn:n,prefixed:q});
I[r]=F1})(window,document,"Hammer");
return window.Hammer}.call({});
z.DOCUMENT=a;a[Ico]=z}return a[Ico]};/*

 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 rEX=function(a,z){if(a.length!==z.length)return!1;for(var I=0;I<a.length;++I)if(a[I]!==z[I])return!1;return!0};if(!window.polymerSkipLoadingFontRoboto)for(var Pq1=_.C(["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"]),ZUf=Pq1.next();!ZUf.done;ZUf=Pq1.next()){var Cq1=ZUf.value,NiX=document.createElement("link");NiX.rel="stylesheet";NiX.href=Cq1;document.head.appendChild(NiX)};var Yt$,eCM,jH1,k2m,qt3,MNO,mHi,yT7;Yt$={"U+0008":"backspace","U+0009":"tab","U+001B":"esc","U+0020":"space","U+007F":"del"};eCM={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:"*"};jH1={shift:"shiftKey",ctrl:"ctrlKey",alt:"altKey",meta:"metaKey"};k2m=/[a-z0-9*]/;qt3=/U\+/;MNO=/^arrow/;mHi=/^space(bar)?/;yT7=/^escape$/;_.V_={properties:{keyEventTarget:{type:Object,value:function(){return this}},
stopKeyboardEventPropagation:{type:Boolean,value:!1},_boundKeyHandlers:{type:Array,value:function(){return[]}},
_imperativeKeyBindings:{type:Object,value:function(){return{}}}},
observers:["_resetKeyEventListeners(keyEventTarget, _boundKeyHandlers)"],keyBindings:{},registered:function(){this._prepKeyBindings()},
attached:function(){this._listenKeyEventListeners()},
detached:function(){this._unlistenKeyEventListeners()},
addOwnKeyBinding:function(a,z){this._imperativeKeyBindings[a]=z;this._prepKeyBindings();this._resetKeyEventListeners()},
removeOwnKeyBindings:function(){this._imperativeKeyBindings={};this._prepKeyBindings();this._resetKeyEventListeners()},
keyboardEventMatchesKeys:function(a,z){z=Io3(z);for(var I=0;I<z.length;++I)if(aoM(z[I],a))return!0;return!1},
_collectKeyBindings:function(){var a=this.behaviors.map(function(z){return z.keyBindings});
a.indexOf(this.keyBindings)===-1&&a.push(this.keyBindings);return a},
_prepKeyBindings:function(){this._keyBindings={};this._collectKeyBindings().forEach(function(I){for(var J in I)this._addKeyBinding(J,I[J])},this);
for(var a in this._imperativeKeyBindings)this._addKeyBinding(a,this._imperativeKeyBindings[a]);for(var z in this._keyBindings)this._keyBindings[z].sort(function(I,J){I=I[0].hasModifiers;return I===J[0].hasModifiers?0:I?-1:1})},
_addKeyBinding:function(a,z){Io3(a).forEach(function(I){this._keyBindings[I.event]=this._keyBindings[I.event]||[];this._keyBindings[I.event].push([I,z])},this)},
_resetKeyEventListeners:function(){this._unlistenKeyEventListeners();this.isAttached&&this._listenKeyEventListeners()},
_listenKeyEventListeners:function(){this.keyEventTarget&&this._keyBindings&&Object.keys(this._keyBindings).forEach(function(a){var z=this._onKeyBindingEvent.bind(this,this._keyBindings[a]);this._boundKeyHandlers.push([this.keyEventTarget,a,z]);this.keyEventTarget.addEventListener(a,z)},this)},
_unlistenKeyEventListeners:function(){for(var a,z,I;this._boundKeyHandlers.length;)a=this._boundKeyHandlers.pop(),z=a[0],I=a[1],a=a[2],z.removeEventListener(I,a)},
_onKeyBindingEvent:function(a,z){this.stopKeyboardEventPropagation&&z.stopPropagation();if(!z.defaultPrevented)for(var I=0;I<a.length;I++){var J=a[I][0],r=a[I][1];if(aoM(J,z)&&(this._triggerKeyHandler(J,r,z),z.defaultPrevented))break}},
_triggerKeyHandler:function(a,z,I){var J=Object.create(a);J.keyboardEvent=I;a=new CustomEvent(a.event,{detail:J,cancelable:!0});this[z].call(this,a);a.defaultPrevented&&I.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
*/
_.vK({is:"iron-a11y-keys",_template:null,behaviors:[_.V_],properties:{target:{type:Object,observer:"_targetChanged"},keys:{type:String,reflectToAttribute:!0,observer:"_keysChanged"}},attached:function(){this.target||(this.target=this.parentNode)},
_targetChanged:function(a){this.keyEventTarget=a},
_keysChanged:function(){this.removeOwnKeyBindings();this.addOwnKeyBinding(this.keys,"_fireKeysPressed")},
_fireKeysPressed:function(a){this.fire("keys-pressed",a.detail,{})}});_.Q_={properties:{focused:{type:Boolean,value:!1,notify:!0,readOnly:!0,reflectToAttribute:!0},disabled:{type:Boolean,value:!1,notify:!0,observer:"_disabledChanged",reflectToAttribute:!0},_oldTabIndex:{type:String},_boundFocusBlurHandler:{type:Function,value:function(){return this._focusBlurHandler.bind(this)}}},
observers:["_changedControlState(focused, disabled)"],ready:function(){this.addEventListener("focus",this._boundFocusBlurHandler,!0);this.addEventListener("blur",this._boundFocusBlurHandler,!0)},
_focusBlurHandler:function(a){this._setFocused(a.type==="focus")},
_disabledChanged:function(a){this.setAttribute("aria-disabled",a?"true":"false");this.style.pointerEvents=a?"none":"";a?(this._oldTabIndex=this.getAttribute("tabindex"),this._setFocused(!1),this.tabIndex=-1,this.blur()):this._oldTabIndex!==void 0&&(this._oldTabIndex===null?this.removeAttribute("tabindex"):this.setAttribute("tabindex",this._oldTabIndex))},
_changedControlState:function(){this._controlStateChanged&&this._controlStateChanged()}};var S_={properties:{pressed:{type:Boolean,readOnly:!0,value:!1,reflectToAttribute:!0,observer:"_pressedChanged"},toggles:{type:Boolean,value:!1,reflectToAttribute:!0},active:{type:Boolean,value:!1,notify:!0,reflectToAttribute:!0},pointerDown:{type:Boolean,readOnly:!0,value:!1},receivedFocusFromKeyboard:{type:Boolean,readOnly:!0},ariaActiveAttribute:{type:String,value:"aria-pressed",observer:"_ariaActiveAttributeChanged"}},listeners:{down:"_downHandler",mouseup:"_upHandler",tap:"_tapHandler"},observers:["_focusChanged(focused)",
"_activeChanged(active, ariaActiveAttribute)"],keyBindings:{"enter:keydown":"_asyncClick","space:keydown":"_spaceKeyDownHandler","space:keyup":"_spaceKeyUpHandler"},_mouseEventRe:/^mouse/,_tapHandler:function(){this.toggles?this._userActivate(!this.active):this.active=!1},
_focusChanged:function(a){this._detectKeyboardFocus(a);a||this._setPressed(!1)},
_detectKeyboardFocus:function(a){this._setReceivedFocusFromKeyboard(!this.pointerDown&&a)},
_userActivate:function(a){this.active!==a&&(this.active=a,this.fire("change"))},
_downHandler:function(){this._setPointerDown(!0);this._setPressed(!0);this._setReceivedFocusFromKeyboard(!1)},
_upHandler:function(){this._setPointerDown(!1);this._setPressed(!1)},
_spaceKeyDownHandler:function(a){a=a.detail.keyboardEvent;var z=_.Q$(a).localTarget;this.isLightDescendant(z)||(a.preventDefault(),a.stopImmediatePropagation(),this._setPressed(!0))},
_spaceKeyUpHandler:function(a){a=_.Q$(a.detail.keyboardEvent).localTarget;this.isLightDescendant(a)||(this.pressed&&this._asyncClick(),this._setPressed(!1))},
_asyncClick:function(){this.async(function(){this.click()},1)},
_pressedChanged:function(){this._changedButtonState()},
_ariaActiveAttributeChanged:function(a,z){z&&z!=a&&this.hasAttribute(z)&&this.removeAttribute(z)},
_activeChanged:function(a){this.toggles?this.setAttribute(this.ariaActiveAttribute,a?"true":"false"):this.removeAttribute(this.ariaActiveAttribute);this._changedButtonState()},
_controlStateChanged:function(){this.disabled?this._setPressed(!1):this._changedButtonState()},
_changedButtonState:function(){this._buttonStateChanged&&this._buttonStateChanged()}},trw=[_.V_,
S_];_.iY={IronButtonState:trw,IronButtonStateImpl:S_};_.xE={properties:{name:{type:String},value:{notify:!0,type:String},required:{type:Boolean,value:!1}},attached:function(){},
detached:function(){}};_.vY=function(a){_.vY[" "](a);this.type=a&&a.type||"default";this.key=a&&a.key;a&&"value"in a&&(this.value=a.value)};
_.vY.prototype.byKey=function(a){this.key=a;return this.value};
_.eH.Object.defineProperties(_.vY.prototype,{value:{configurable:!0,enumerable:!0,get:function(){var a=this.type,z=this.key;if(a&&z)return Gs[a]&&Gs[a][z]},
set:function(a){var z=this.type,I=this.key;z&&I&&(z=Gs[z]=Gs[z]||{},a==null?delete z[I]:z[I]=a)}},
list:{configurable:!0,enumerable:!0,get:function(){if(!this.type)return[];var a=Gs[this.type];return a?Object.keys(a).map(function(z){return Gs[this.type][z]},this):[]}}});
_.vY[" "]=function(){};
var Gs={};_.vK({is:"iron-meta",_template:null,properties:{type:{type:String,value:"default"},key:{type:String},value:{type:String,notify:!0},self:{type:Boolean,observer:"_selfChanged"},__meta:{type:Boolean,computed:"__computeMeta(type, key, value)"}},hostAttributes:{hidden:!0},__computeMeta:function(a,z,I){a=new _.vY({type:a,key:z});I!==void 0&&I!==a.value?a.value=I:this.value!==a.value&&(this.value=a.value);return a},
get list(){return this.__meta&&this.__meta.list},_selfChanged:function(a){a&&(this.value=this)},
byKey:function(a){return(new _.vY({type:this.type,key:a})).value}});var uFG;uFG=null;_.$E={properties:{validator:{type:String},invalid:{notify:!0,reflectToAttribute:!0,type:Boolean,value:!1,observer:"_invalidChanged"}},registered:function(){uFG=new _.vY({type:"validator"})},
_invalidChanged:function(){this.invalid?this.setAttribute("aria-invalid","true"):this.removeAttribute("aria-invalid")},
get _validator(){return uFG&&uFG.byKey(this.validator)},hasValidator:function(){return this._validator!=null},
validate:function(a){this.invalid=a===void 0&&this.value!==void 0?!this._getValidity(this.value):!this._getValidity(a);return!this.invalid},
_getValidity:function(a){return this.hasValidator()?this._validator.validate(a):!0}};var Ecv={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"}},Bif=[_.xE,
_.$E,Ecv];_.vK({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 _.vY({type:"iconset",key:null,value:null})},
attached:function(){this.style.display="none"},
getIconNames:function(){this._icons=this._createIconMap();return Object.keys(this._icons).map(function(a){return this.name+":"+a},this)},
applyIcon:function(a,z){this.removeIcon(a);if(z=this._cloneIcon(z,this.rtlMirroring&&this._targetIsRTL(a))){var I=_.Q$(a.root||a);I.insertBefore(z,I.childNodes[0]);return a._svgIcon=z}return null},
removeIcon:function(a){a._svgIcon&&(_.Q$(a.root||a).removeChild(a._svgIcon),a._svgIcon=null)},
_targetIsRTL:function(a){this.__targetIsRTL==null&&(this.useGlobalRtlAttribute?this.__targetIsRTL=(document.body&&document.body.hasAttribute("dir")?document.body:document.documentElement).getAttribute("dir")==="rtl":(a&&a.nodeType!==Node.ELEMENT_NODE&&(a=a.host),this.__targetIsRTL=a&&window.getComputedStyle(a).direction==="rtl"));return this.__targetIsRTL},
_nameChanged:function(){this._meta.value=null;this._meta.key=this.name;this._meta.value=this;this.async(function(){this.fire("iron-iconset-added",this,{node:window})})},
_createIconMap:function(){var a=Object.create(null);_.Q$(this).querySelectorAll("[id]").forEach(function(z){a[z.id]=z});
return a},
_cloneIcon:function(a,z){this._icons=this._icons||this._createIconMap();return this._prepareSvgClone(this._icons[a],this.size,z)},
_prepareSvgClone:function(a,z,I){if(a){a=a.cloneNode(!0);var J=document.createElementNS("http://www.w3.org/2000/svg","svg");z=a.getAttribute("viewBox")||"0 0 "+z+" "+z;var r="pointer-events: none; display: block; width: 100%; height: 100%;";I&&a.hasAttribute("mirror-in-rtl")&&(r+="-webkit-transform:scale(-1,1);transform:scale(-1,1);transform-origin:center;");J.setAttribute("viewBox",z);J.setAttribute("preserveAspectRatio","xMidYMid meet");J.setAttribute("focusable","false");J.style&&(J.style.cssText=
r);J.appendChild(a).removeAttribute("id");return J}return null}});var gcl=function(a){this.multi=!1;this.selection=[];this.selectCallback=a};
_.Z=gcl.prototype;_.Z.get=function(){return this.multi?this.selection.slice():this.selection[0]};
_.Z.clear=function(a){this.selection.slice().forEach(function(z){(!a||a.indexOf(z)<0)&&this.setItemSelected(z,!1)},this)};
_.Z.isSelected=function(a){return this.selection.indexOf(a)>=0};
_.Z.setItemSelected=function(a,z){if(a!=null&&z!==this.isSelected(a)){if(z)this.selection.push(a);else{var I=this.selection.indexOf(a);I>=0&&this.selection.splice(I,1)}this.selectCallback&&this.selectCallback(a,z)}};
_.Z.select=function(a){this.multi?this.toggle(a):this.get()!==a&&(this.setItemSelected(this.get(),!1),this.setItemSelected(a,!0))};
_.Z.toggle=function(a){this.setItemSelected(a,!this.isSelected(a))};_.mZ={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 gcl(this._applySelection.bind(this))},
attached:function(){this._observer=this._observeItems(this);this._addListener(this.activateEvent)},
detached:function(){this._observer&&_.Q$(this).unobserveNodes(this._observer);this._removeListener(this.activateEvent)},
indexOf:function(a){return this.items?this.items.indexOf(a):-1},
select:function(a){this.selected=a},
selectPrevious:function(){var a=this.items.length,z=a-1;this.selected!==void 0&&(z=(Number(this._valueToIndex(this.selected))-1+a)%a);this.selected=this._indexToValue(z)},
selectNext:function(){var a=0;this.selected!==void 0&&(a=(Number(this._valueToIndex(this.selected))+1)%this.items.length);this.selected=this._indexToValue(a)},
selectIndex:function(a){this.select(this._indexToValue(a))},
forceSynchronousItemUpdate:function(){this._observer&&typeof this._observer.flush==="function"?this._observer.flush():this._updateItems()},
get _shouldUpdateSelection(){return this.selected!=null},_checkFallback:function(){this._updateSelected()},
_addListener:function(a){this.listen(this,a,"_activateHandler")},
_removeListener:function(a){this.unlisten(this,a,"_activateHandler")},
_activateEventChanged:function(a,z){this._removeListener(z);this._addListener(a)},
_updateItems:function(){var a=_.Q$(this).queryDistributedElements(this.selectable||"*");a=Array.prototype.filter.call(a,this._bindFilterItem);this._setItems(a)},
_updateAttrForSelected:function(){this.selectedItem&&(this.selected=this._valueForItem(this.selectedItem))},
_updateSelected:function(){this._selectSelected(this.selected)},
_selectSelected:function(){if(this.items){var a=this._valueToItem(this.selected);a?this._selection.select(a):this._selection.clear();this.fallbackSelection&&this.items.length&&this._selection.get()===void 0&&(this.selected=this.fallbackSelection)}},
_filterItem:function(a){return!this._excludedLocalNames[a.localName]},
_valueToItem:function(a){return a==null?null:this.items[this._valueToIndex(a)]},
_valueToIndex:function(a){if(this.attrForSelected)for(var z=0,I;I=this.items[z];z++){if(this._valueForItem(I)==a)return z}else return Number(a)},
_indexToValue:function(a){if(this.attrForSelected){if(a=this.items[a])return this._valueForItem(a)}else return a},
_valueForItem:function(a){if(!a)return null;if(!this.attrForSelected)return a=this.indexOf(a),a===-1?null:a;var z=a[C6(this.attrForSelected)];return z!=void 0?z:a.getAttribute(this.attrForSelected)},
_applySelection:function(a,z){this.selectedClass&&this.toggleClass(this.selectedClass,z,a);this.selectedAttribute&&this.toggleAttribute.call(a,this.selectedAttribute,z);this._selectionChange();this.fire("iron-"+(z?"select":"deselect"),{item:a})},
_selectionChange:function(){this._setSelectedItem(this._selection.get())},
_observeItems:function(a){return _.Q$(a).observeNodes(function(z){this._updateItems();this._updateSelected();this.fire("iron-items-changed",z,{bubbles:!1,cancelable:!1})})},
_activateHandler:function(a){a=a.target;for(var z=this.items;a&&a!=this;){var I=z.indexOf(a);if(I>=0){z=this._indexToValue(I);this._itemActivate(z,a);break}a=a.parentNode}},
_itemActivate:function(a,z){this.fire("iron-activate",{selected:a,item:z},{cancelable:!0}).defaultPrevented||this.select(a)}};var OU1={properties:{multi:{type:Boolean,value:!1,observer:"multiChanged"},selectedValues:{type:Array,notify:!0,value:function(){return[]}},
selectedItems:{type:Array,readOnly:!0,notify:!0,value:function(){return[]}}},
observers:["_updateSelected(selectedValues.splices)"],select:function(a){this.multi?this._toggleSelected(a):this.selected=a},
multiChanged:function(a){this._selection.multi=a;this._updateSelected()},
get _shouldUpdateSelection(){return this.selected!=null||this.selectedValues!=null&&this.selectedValues.length},_updateAttrForSelected:function(){this.multi?this.selectedItems&&this.selectedItems.length>0&&(this.selectedValues=this.selectedItems.map(function(a){return this._indexToValue(this.indexOf(a))},this).filter(function(a){return a!=null},this)):_.mZ._updateAttrForSelected.apply(this)},
_updateSelected:function(){this.multi?this._selectMulti(this.selectedValues):this._selectSelected(this.selected)},
_selectMulti:function(a){a=a||[];a=(this._valuesToItems(a)||[]).filter(function(I){return I!==null&&I!==void 0});
this._selection.clear(a);for(var z=0;z<a.length;z++)this._selection.setItemSelected(a[z],!0);this.fallbackSelection&&!this._selection.get().length&&this._valueToItem(this.fallbackSelection)&&this.select(this.fallbackSelection)},
_selectionChange:function(){var a=this._selection.get();this.multi?(this._setSelectedItems(a),this._setSelectedItem(a.length?a[0]:null)):a!==null&&a!==void 0?(this._setSelectedItems([a]),this._setSelectedItem(a)):(this._setSelectedItems([]),this._setSelectedItem(null))},
_toggleSelected:function(a){var z=this.selectedValues.indexOf(a);z<0?this.push("selectedValues",a):this.splice("selectedValues",z,1)},
_valuesToItems:function(a){return a==null?null:a.map(function(z){return this._valueToItem(z)},this)}},fcl=[_.mZ,
OU1];var AEE;
_.X7={properties:{focusedItem:{observer:"_focusedItemChanged",readOnly:!0,type:Object},attrForItemTitle:{type:String},disabled:{type:Boolean,value:!1,observer:"_disabledChanged"}},_MODIFIER_KEYS:"Alt AltGraph CapsLock Control Fn FnLock Hyper Meta NumLock OS ScrollLock Shift Super Symbol SymbolLock".split(" "),_SEARCH_RESET_TIMEOUT_MS:1E3,_previousTabIndex:0,hostAttributes:{role:"menu"},observers:["_updateMultiselectable(multi)"],listeners:{focus:"_onFocus",keydown:"_onKeydown","iron-items-changed":"_onIronItemsChanged"},keyBindings:{up:"_onUpKey",
down:"_onDownKey",esc:"_onEscKey","shift+tab:keydown":"_onShiftTabDown"},attached:function(){this._resetTabindices()},
select:function(a){this._defaultFocusAsync&&(this.cancelAsync(this._defaultFocusAsync),this._defaultFocusAsync=null);var z=this._valueToItem(a);z&&z.hasAttribute("disabled")||(this._setFocusedItem(z),OU1.select.apply(this,arguments))},
_resetTabindices:function(){var a=this.multi?this.selectedItems&&this.selectedItems[0]:this.selectedItem;this.items.forEach(function(z){z.setAttribute("tabindex",z===a?"0":"-1");z.setAttribute("aria-selected",this._selection.isSelected(z))},this)},
_updateMultiselectable:function(a){a?this.setAttribute("aria-multiselectable","true"):this.removeAttribute("aria-multiselectable")},
_focusWithKeyboardEvent:function(a){if(this._MODIFIER_KEYS.indexOf(a.key)===-1){this.cancelDebouncer("_clearSearchText");var z=this._searchText||"";z+=(a.key&&a.key.length==1?a.key:String.fromCharCode(a.keyCode)).toLocaleLowerCase();a=z.length;for(var I=0,J;J=this.items[I];I++)if(!J.hasAttribute("disabled")){var r=this.attrForItemTitle||"textContent";r=(J[r]||J.getAttribute(r)||"").trim();if(!(r.length<a)&&r.slice(0,a).toLocaleLowerCase()==z){this._setFocusedItem(J);break}}this._searchText=z;this.debounce("_clearSearchText",
this._clearSearchText,this._SEARCH_RESET_TIMEOUT_MS)}},
_clearSearchText:function(){this._searchText=""},
_focusPrevious:function(){for(var a=this.items.length,z=Number(this.indexOf(this.focusedItem)),I=1;I<a+1;I++){var J=this.items[(z-I+a)%a];if(!J.hasAttribute("disabled")){var r=_.Q$(J).getOwnerRoot()||document;this._setFocusedItem(J);if(_.Q$(r).activeElement==J)break}}},
_focusNext:function(){for(var a=this.items.length,z=Number(this.indexOf(this.focusedItem)),I=1;I<a+1;I++){var J=this.items[(z+I)%a];if(!J.hasAttribute("disabled")){var r=_.Q$(J).getOwnerRoot()||document;this._setFocusedItem(J);if(_.Q$(r).activeElement==J)break}}},
_applySelection:function(a,z){z?a.setAttribute("aria-selected","true"):a.setAttribute("aria-selected","false");_.mZ._applySelection.apply(this,arguments)},
_focusedItemChanged:function(a,z){z&&z.setAttribute("tabindex","-1");!a||a.hasAttribute("disabled")||this.disabled||(a.setAttribute("tabindex","0"),a.focus())},
_onIronItemsChanged:function(a){a.detail.addedNodes.length&&this._resetTabindices()},
_onShiftTabDown:function(){var a=this.getAttribute("tabindex");_.X7._shiftTabPressed=!0;this._setFocusedItem(null);this.setAttribute("tabindex","-1");this.async(function(){this.setAttribute("tabindex",a);_.X7._shiftTabPressed=!1},1)},
_onFocus:function(a){!_.X7._shiftTabPressed&&(a=_.Q$(a).rootTarget,a===this||typeof a.tabIndex==="undefined"||this.isLightDescendant(a))&&(this._defaultFocusAsync=this.async(function(){var z=this.multi?this.selectedItems&&this.selectedItems[0]:this.selectedItem;this._setFocusedItem(null);z?this._setFocusedItem(z):this.items[0]&&this._focusNext()}))},
_onUpKey:function(a){this._focusPrevious();a.detail.keyboardEvent.preventDefault()},
_onDownKey:function(a){this._focusNext();a.detail.keyboardEvent.preventDefault()},
_onEscKey:function(){var a=this.focusedItem;a&&a.blur()},
_onKeydown:function(a){this.keyboardEventMatchesKeys(a,"up down esc")||this._focusWithKeyboardEvent(a);a.stopPropagation()},
_activateHandler:function(a){_.mZ._activateHandler.call(this,a);a.stopPropagation()},
_disabledChanged:function(a){a?(this._previousTabIndex=this.hasAttribute("tabindex")?this.tabIndex:0,this.removeAttribute("tabindex")):this.hasAttribute("tabindex")||this.setAttribute("tabindex",this._previousTabIndex)},
_shiftTabPressed:!1};AEE=[fcl,_.V_,_.X7];_.sKo={hostAttributes:{role:"menubar"},keyBindings:{left:"_onLeftKey",right:"_onRightKey"},_onUpKey:function(a){this.focusedItem&&(this.focusedItem.click(),a.detail.keyboardEvent.preventDefault())},
_onDownKey:function(a){this.focusedItem&&(this.focusedItem.click(),a.detail.keyboardEvent.preventDefault())},
get _isRTL(){return window.getComputedStyle(this).direction==="rtl"},_isSpecialKey:function(a){return a.ctrlKey||a.shiftKey||a.altKey||a.metaKey},
_onLeftKey:function(a){this._isSpecialKey(a.detail.keyboardEvent)||(this._isRTL?this._focusNext():this._focusPrevious(),a.detail.keyboardEvent.preventDefault())},
_onRightKey:function(a){this._isSpecialKey(a.detail.keyboardEvent)||(this._isRTL?this._focusPrevious():this._focusNext(),a.detail.keyboardEvent.preventDefault())},
_onKeydown:function(a){this.keyboardEventMatchesKeys(a,"up down left right esc")||this._focusWithKeyboardEvent(a)}};
_.nci=[AEE,_.sKo];var KYw;KYw=new Set;_.Ts={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):(KYw.delete(this),window.removeEventListener("resize",this._boundNotifyResize));this._parentResizable=null},
notifyResize:function(){this.isAttached&&(this._interestedResizables.forEach(function(a){this.resizerShouldNotify(a)&&this._notifyDescendant(a)},this),this._fireResize())},
assignParentResizable:function(a){this._parentResizable&&this._parentResizable.stopResizeNotificationsFor(this);(this._parentResizable=a)&&a._interestedResizables.indexOf(this)===-1&&(a._interestedResizables.push(this),a._subscribeIronResize(this))},
stopResizeNotificationsFor:function(a){var z=this._interestedResizables.indexOf(a);z>-1&&(this._interestedResizables.splice(z,1),this._unsubscribeIronResize(a))},
_subscribeIronResize:function(a){a.addEventListener("iron-resize",this._boundOnDescendantIronResize)},
_unsubscribeIronResize:function(a){a.removeEventListener("iron-resize",this._boundOnDescendantIronResize)},
resizerShouldNotify:function(){return!0},
_onDescendantIronResize:function(a){this._notifyingDescendant?a.stopPropagation():DV||this._fireResize()},
_fireResize:function(){this.fire("iron-resize",null,{node:this,bubbles:!1})},
_onIronRequestResizeNotifications:function(a){var z=_.Q$(a).rootTarget;z!==this&&(z.assignParentResizable(this),this._notifyDescendant(z),a.stopPropagation())},
_parentResizableChanged:function(a){a&&window.removeEventListener("resize",this._boundNotifyResize)},
_notifyDescendant:function(a){this.isAttached&&(this._notifyingDescendant=!0,a.notifyResize(),this._notifyingDescendant=!1)},
_requestResizeNotifications:function(){if(this.isAttached)if(document.readyState==="loading"){var a=this._requestResizeNotifications.bind(this);document.addEventListener("readystatechange",function I(){document.removeEventListener("readystatechange",I);a()})}else this._findParent(),this._parentResizable?this._parentResizable._interestedResizables.forEach(function(z){z!==this&&z._findParent()},this):(KYw.forEach(function(z){z!==this&&z._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?KYw.delete(this):KYw.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
*/
_.FYw={properties:{scrollTarget:{type:HTMLElement,value:function(){return this._defaultScrollTarget}}},
observers:["_scrollTargetChanged(scrollTarget, isAttached)"],_shouldHaveListener:!0,_scrollTargetChanged:function(a,z){this._oldScrollTarget&&(this._toggleScrollListener(!1,this._oldScrollTarget),this._oldScrollTarget=null);z&&(a==="document"?this.scrollTarget=this._doc:typeof a==="string"?this.scrollTarget=(z=this.domHost)&&z.$?z.$[a]:_.Q$(this.ownerDocument).querySelector("#"+a):this._isValidScrollTarget()&&(this._oldScrollTarget=a,this._toggleScrollListener(this._shouldHaveListener,a)))},
_scrollHandler:function(){},
get _defaultScrollTarget(){return this._doc},get _doc(){return this.ownerDocument.documentElement},get _scrollTop(){return this._isValidScrollTarget()?this.scrollTarget===this._doc?window.pageYOffset:this.scrollTarget.scrollTop:0},get _scrollLeft(){return this._isValidScrollTarget()?this.scrollTarget===this._doc?window.pageXOffset:this.scrollTarget.scrollLeft:0},set _scrollTop(a){this.scrollTarget===this._doc?window.scrollTo(window.pageXOffset,a):this._isValidScrollTarget()&&(this.scrollTarget.scrollTop=
a)},set _scrollLeft(a){this.scrollTarget===this._doc?window.scrollTo(a,window.pageYOffset):this._isValidScrollTarget()&&(this.scrollTarget.scrollLeft=a)},scroll:function(a,z){if(typeof a==="object"){var I=a.left;z=a.top}else I=a;I=I||0;z=z||0;this.scrollTarget===this._doc?window.scrollTo(I,z):this._isValidScrollTarget()&&(this.scrollTarget.scrollLeft=I,this.scrollTarget.scrollTop=z)},
get _scrollTargetWidth(){return this._isValidScrollTarget()?this.scrollTarget===this._doc?window.innerWidth:this.scrollTarget.offsetWidth:0},get _scrollTargetHeight(){return this._isValidScrollTarget()?this.scrollTarget===this._doc?window.innerHeight:this.scrollTarget.offsetHeight:0},_isValidScrollTarget:function(){return this.scrollTarget instanceof HTMLElement},
_toggleScrollListener:function(a,z){z=z===this._doc?window:z;a?this._boundScrollHandler||(this._boundScrollHandler=this._scrollHandler.bind(this),z.addEventListener("scroll",this._boundScrollHandler)):this._boundScrollHandler&&(z.removeEventListener("scroll",this._boundScrollHandler),this._boundScrollHandler=null)},
toggleScrollListener:function(a){this._shouldHaveListener=a;this._toggleScrollListener(a,this.scrollTarget)}};_.vK({is:"iron-selector",_template:null,behaviors:[fcl]});var dh={properties:{animationTiming:{type:Object,value:function(){return{duration:500,easing:"cubic-bezier(0.4, 0, 0.2, 1)",fill:"both"}}}},
isNeonAnimation:!0,created:function(){document.body.animate||console.warn("No web animations detected. This element will not function without a web animations polyfill.")},
timingFromConfig:function(a){if(a.timing)for(var z in a.timing)this.animationTiming[z]=a.timing[z];return this.animationTiming},
setPrefixedProperty:function(a,z,I){for(var J={transform:["webkitTransform"],transformOrigin:["mozTransformOrigin","webkitTransformOrigin"]}[z],r,P=0;r=J[P];P++)a.style[r]=I;a.style[z]=I},
complete:function(){}};_.vK({is:"fade-in-animation",_template:null,behaviors:[dh],configure:function(a){return this._effect=new KeyframeEffect(a.node,[{opacity:"0"},{opacity:"1"}],this.timingFromConfig(a))}});_.vK({is:"fade-out-animation",_template:null,behaviors:[dh],configure:function(a){return this._effect=new KeyframeEffect(a.node,[{opacity:"1"},{opacity:"0"}],this.timingFromConfig(a))}});var HUo=[{properties:{animationConfig:{type:Object},entryAnimation:{observer:"_entryAnimationChanged",type:String},exitAnimation:{observer:"_exitAnimationChanged",type:String}},_entryAnimationChanged:function(){this.animationConfig=this.animationConfig||{};this.animationConfig.entry=[{name:this.entryAnimation,node:this}]},
_exitAnimationChanged:function(){this.animationConfig=this.animationConfig||{};this.animationConfig.exit=[{name:this.exitAnimation,node:this}]},
_copyProperties:function(a,z){for(var I in z)a[I]=z[I]},
_cloneConfig:function(a){var z={isClone:!0};this._copyProperties(z,a);return z},
_getAnimationConfigRecursive:function(a,z,I){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 J=a?this.animationConfig[a]:this.animationConfig;Array.isArray(J)||(J=[J]);if(J)for(var r,P=0;r=J[P];P++)if(r.animatable)r.animatable._getAnimationConfigRecursive(r.type||a,z,I);else if(r.id){var N=z[r.id];
N?(N.isClone||(z[r.id]=this._cloneConfig(N),N=z[r.id]),this._copyProperties(N,r)):z[r.id]=r}else I.push(r)}},
getAnimationConfig:function(a){var z={},I=[];this._getAnimationConfigRecursive(a,z,I);for(var J in z)I.push(z[J]);return I}},
{_configureAnimations:function(a){var z=[],I=[];if(a.length>0)for(var J,r=0;J=a[r];r++){var P=document.createElement(J.name);if(P.isNeonAnimation){var N=null;P.configure||(P.configure=function(){return null});
N=P.configure(J);I.push({result:N,config:J})}else console.warn(this.is+":",J.name,"not found!")}for(a=0;a<I.length;a++){N=I[a].result;J=I[a].config;try{typeof N.cancel!="function"&&(N=document.timeline.play(N))}catch(u){N=null,console.warn("Couldnt play","(",J.name,").",u)}N&&z.push({neonAnimation:P,config:J,animation:N})}return z},
_shouldComplete:function(a){for(var z=!0,I=0;I<a.length;I++)if(a[I].animation.playState!="finished"){z=!1;break}return z},
_complete:function(a){for(var z=0;z<a.length;z++)a[z].neonAnimation.complete(a[z].config);for(z=0;z<a.length;z++)a[z].animation.cancel()},
playAnimation:function(a,z){var I=this.getAnimationConfig(a);if(I){this._active=this._active||{};this._active[a]&&(this._complete(this._active[a]),delete this._active[a]);var J=this._configureAnimations(I);if(J.length==0)this.fire("neon-animation-finish",z,{bubbles:!1});else for(this._active[a]=J,I=0;I<J.length;I++)J[I].animation.onfinish=function(){this._shouldComplete(J)&&(this._complete(J),delete this._active[a],this.fire("neon-animation-finish",z,{bubbles:!1}))}.bind(this)}},
cancelAnimation:function(){for(var a in this._active){var z=this._active[a],I;for(I in z)z[I].animation&&z[I].animation.cancel&&z[I].animation.cancel()}this._active={}}}];var OX=function(a,z){a=Error.call(this,a);this.message=a.message;"stack"in a&&(this.stack=a.stack);this.arg=z;this.name=this.constructor.name;this.constructor=OX;this.__proto__=OX.prototype};
_.b(OX,Error);var bUI=j$(function(a){var z=function(){return a.apply(this,arguments)||this};
_.b(z,a);z.prototype._marshalArgs=function(I,J,r){J=a.prototype._marshalArgs.call(this,I,J,r);if(this._legacyUndefinedCheck&&J.length>1)for(r=0;r<J.length;r++)if(J[r]===void 0||I[r].wildcard&&J[r].base===void 0)throw I=I[r].name,new OX("Argument '"+I+"' is undefined.",I);return J};
z.prototype._addPropertyEffect=function(I,J,r){return a.prototype._addPropertyEffect.call(this,I,J,JH$(r,r&&r.info&&r.info.methodName))};
z._addTemplatePropertyEffect=function(I,J,r){return a._addTemplatePropertyEffect.call(this,I,J,JH$(r))};
return z}),hpX=_.vK.Class;
_.vK.Class=function(a,z){return hpX(a,function(I){return z?z(bUI(I)):bUI(I)})};
var VrX=j$(function(a){var z=bUI(a);a=function(){return z.apply(this,arguments)||this};
_.b(a,z);_.eH.Object.defineProperties(a.prototype,{_legacyUndefinedCheck:{configurable:!0,enumerable:!0,get:function(){return this._methodHost&&this._methodHost._legacyUndefinedCheck}}});
return a}),QKw=L6.mixin;
L6.mixin=QKw?function(a){return VrX(QKw(a))}:VrX;
console.info("LegacyDataMixin will be applied to all legacy elements.\nSet `_legacyUndefinedCheck: true` on element class to enable.");_.WY=_.iY.IronButtonState;var I0M=Uc;/*

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

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
*/
_.vK({_template:function(){if(icf!==void 0)return icf;var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:tp-yt-iron-autogrow-textarea--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,third_party.javascript.youtube_components.tp_yt_iron_autogrow_textarea.tp.yt.iron.autogrow.textarea.css.js--\x3e\n\n<div id="mirror" class="mirror-text style-scope tp-yt-iron-autogrow-textarea" aria-hidden="true" style-target="textarea">\u00a0</div>\n\n\n<div class="textarea-container fit style-scope tp-yt-iron-autogrow-textarea">\n  <textarea id="textarea" name$="[[name]]" aria-label$="[[label]]" autocomplete$="[[autocomplete]]" autofocus$="[[autofocus]]" autocapitalize$="[[autocapitalize]]" inputmode$="[[inputmode]]" placeholder$="[[placeholder]]" readonly$="[[readonly]]" required$="[[required]]" disabled$="[[disabled]]" rows$="[[rows]]" minlength$="[[minlength]]" maxlength$="[[maxlength]]" style-target="textarea" class="style-scope tp-yt-iron-autogrow-textarea"></textarea>\n</div>\n');
a.content.insertBefore(_.w().content.cloneNode(!0),a.content.firstChild);var z=a.content,I=z.insertBefore;S1v===void 0&&(S1v=document.createElement("template"));var J=S1v;I.call(z,J.content.cloneNode(!0),a.content.firstChild);return icf=a},
is:"tp-yt-iron-autogrow-textarea",behaviors:[_.$E,_.Q_],properties:{value:{observer:"_valueChanged",type:String,notify:!0},bindValue:{observer:"_bindValueChanged",type:String,notify:!0},rows:{type:Number,value:1,observer:"_updateCached"},maxRows:{type:Number,value:0,observer:"_updateCached"},autocomplete:{type:String,value:"off"},autofocus:{type:Boolean,value:!1},autocapitalize:{type:String,value:"none"},inputmode:{type:String},placeholder:{type:String},readonly:{type:String},required:{type:Boolean},
minlength:{type:Number},maxlength:{type:Number},label:{type:String}},listeners:{input:"_onInput"},get textarea(){return this.$.textarea},get selectionStart(){return this.$.textarea.selectionStart},get selectionEnd(){return this.$.textarea.selectionEnd},set selectionStart(a){this.$.textarea.selectionStart=a},set selectionEnd(a){this.$.textarea.selectionEnd=a},attached:function(){navigator.userAgent.match(/iP(?:[oa]d|hone)/)&&!navigator.userAgent.match(/OS 1[3456789]/)&&(this.$.textarea.style.marginLeft=
"-3px")},
validate:function(){var a=this.$.textarea.validity.valid;a&&(this.required&&this.value===""?a=!1:this.hasValidator()&&(a=_.$E.validate.call(this,this.value)));this.invalid=!a;this.fire("iron-input-validate");return a},
_bindValueChanged:function(a){this.value=a},
_valueChanged:function(a){var z=this.textarea;z&&(z.value!==a&&(z.value=a||a===0?a:""),this.bindValue=a,this.$.mirror.textContent=this._valueForMirror(),this.fire("bind-value-changed",{value:this.bindValue}))},
_onInput:function(a){var z=_.Q$(a).path;this.value=z?z[0].value:a.target.value},
_constrain:function(a){var z;a=a||[""];for(z=this.maxRows>0&&a.length>this.maxRows?a.slice(0,this.maxRows):a.slice(0);this.rows>0&&z.length<this.rows;)z.push("");return z.join("\n")+"\u00a0"},
_valueForMirror:function(){var a=this.textarea;if(a)return this.tokens=a&&a.value?a.value.split("\n"):[""],this._constrain(this.tokens)},
_updateCached:function(){this.$.mirror.textContent=this._constrain(this.tokens)}});var xAo;var vsi;_.vK({_template:function(){if(vsi!==void 0)return vsi;var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:tp-yt-iron-collapse--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,third_party.javascript.youtube_components.tp_yt_iron_collapse.tp.yt.iron.collapse.css.js--\x3e<slot class="style-scope tp-yt-iron-collapse"></slot>\n');a.content.insertBefore(_.w().content.cloneNode(!0),a.content.firstChild);
var z=a.content,I=z.insertBefore;xAo===void 0&&(xAo=document.createElement("template"));var J=xAo;I.call(z,J.content.cloneNode(!0),a.content.firstChild);return vsi=a},
is:"tp-yt-iron-collapse",behaviors:[_.Ts],properties:{horizontal:{type:Boolean,value:!1,observer:"_horizontalChanged"},opened:{type:Boolean,value:!1,notify:!0,observer:"_openedChanged"},transitioning:{type:Boolean,notify:!0,readOnly:!0},noAnimation:{type:Boolean},_desiredSize:{type:String,value:""}},get dimension(){return this.horizontal?"width":"height"},get _dimensionMax(){return this.horizontal?"maxWidth":"maxHeight"},get _dimensionMaxCss(){return this.horizontal?"max-width":"max-height"},hostAttributes:{role:"group",
"aria-hidden":"true"},listeners:{transitionend:"_onTransitionEnd"},toggle:function(){this.opened=!this.opened},
show:function(){this.opened=!0},
hide:function(){this.opened=!1},
updateSize:function(a,z){a=a==="auto"?"":a;z=z&&!this.noAnimation&&this.isAttached&&this._desiredSize!==a;this._desiredSize=a;this._updateTransition(!1);z&&(z=this._calcSize(),a===""&&(this.style[this._dimensionMax]="",a=this._calcSize()),this.style[this._dimensionMax]=z,this.scrollTop=this.scrollTop,this._updateTransition(!0),z=a!==z);this.style[this._dimensionMax]=a;z||this._transitionEnd()},
enableTransition:function(a){_.S$._warn("`enableTransition()` is deprecated, use `noAnimation` instead.");this.noAnimation=!a},
_updateTransition:function(a){this.style.transitionDuration=a&&!this.noAnimation?"":"0s"},
_horizontalChanged:function(){this.style.transitionProperty=this._dimensionMaxCss;this.style[this._dimensionMax==="maxWidth"?"maxHeight":"maxWidth"]="";this.updateSize(this.opened?"auto":"0px",!1)},
_openedChanged:function(){this.setAttribute("aria-hidden",!this.opened);this._setTransitioning(!0);this.toggleClass("iron-collapse-closed",!1);this.toggleClass("iron-collapse-opened",!1);this.updateSize(this.opened?"auto":"0px",!0);this.opened&&this.focus()},
_transitionEnd:function(){this.style[this._dimensionMax]=this._desiredSize;this.toggleClass("iron-collapse-closed",!this.opened);this.toggleClass("iron-collapse-opened",this.opened);this._updateTransition(!1);this.notifyResize();this._setTransitioning(!1)},
_onTransitionEnd:function(a){_.Q$(a).rootTarget===this&&this._transitionEnd()},
_calcSize:function(){return this.getBoundingClientRect()[this.dimension]+"px"}});var G0i;var $Al;var X0l=void 0,Tsl={properties:{sizingTarget:{type:Object,value:function(){var a;return(a=this.hostElement)!=null?a:this}},
fitInto:{type:Object,value:window},noOverlap:{type:Boolean},positionTarget:{type:Element},horizontalAlign:{type:String},verticalAlign:{type:String},dynamicAlign:{type:Boolean},horizontalOffset:{type:Number,value:0,notify:!0},verticalOffset:{type:Number,value:0,notify:!0},autoFitOnAttach:{type:Boolean,value:!1},expandSizingTargetForScrollbars:{type:Boolean,value:!1},_fitInfo:{type:Object},avoidOuterEdge:{type:Boolean,value:!1}},get _defaultPositionTarget(){var a,z=_.Q$((a=this.hostElement)!=null?a:
this).parentNode;z&&z.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&(z=z.host);return z},get _localeHorizontalAlign(){if(this._isRTL){if(this.horizontalAlign==="right")return"left";if(this.horizontalAlign==="left")return"right"}return this.horizontalAlign},get __shouldPosition(){return(this.horizontalAlign||this.verticalAlign)&&this.positionTarget},get _isRTL(){if(typeof this._memoizedIsRTL==="undefined"){var a;this._memoizedIsRTL=window.getComputedStyle((a=this.hostElement)!=null?a:this).direction=="rtl"}return this._memoizedIsRTL},
attached:function(){this.positionTarget=this.positionTarget||this._defaultPositionTarget;if(this.autoFitOnAttach){var a;window.getComputedStyle((a=this.hostElement)!=null?a:this).display==="none"?setTimeout(function(){this.fit()}.bind(this)):(window.ShadyDOM&&ShadyDOM.flush(),this.fit())}},
detached:function(){},
fit:function(){this.position();this.constrain();this.center()},
_discoverInfo:function(){if(!this._fitInfo){var a,z=window.getComputedStyle((a=this.hostElement)!=null?a:this);a=window.getComputedStyle(this.sizingTarget);var I,J,r;this._fitInfo={inlineStyle:{top:((I=this.hostElement)!=null?I:this).style.top||"",left:((J=this.hostElement)!=null?J:this).style.left||"",position:((r=this.hostElement)!=null?r:this).style.position||""},sizerInlineStyle:{maxWidth:this.sizingTarget.style.maxWidth||"",maxHeight:this.sizingTarget.style.maxHeight||"",boxSizing:this.sizingTarget.style.boxSizing||
""},positionedBy:{vertically:z.top!=="auto"?"top":z.bottom!=="auto"?"bottom":null,horizontally:z.left!=="auto"?"left":z.right!=="auto"?"right":null},sizedBy:{height:a.maxHeight!=="none",width:a.maxWidth!=="none",minWidth:parseInt(a.minWidth,10)||0,minHeight:parseInt(a.minHeight,10)||0},margin:{top:parseInt(z.marginTop,10)||0,right:parseInt(z.marginRight,10)||0,bottom:parseInt(z.marginBottom,10)||0,left:parseInt(z.marginLeft,10)||0}}}},
resetFit:function(){var a=this._fitInfo||{},z;for(z in a.sizerInlineStyle)this.sizingTarget.style[z]=a.sizerInlineStyle[z];for(z in a.inlineStyle){var I=void 0;((I=this.hostElement)!=null?I:this).style[z]=a.inlineStyle[z]}this._fitInfo=null},
refit:function(){var a=this.sizingTarget.scrollLeft,z=this.sizingTarget.scrollTop;this.resetFit();this.fit();this.sizingTarget.scrollLeft=a;this.sizingTarget.scrollTop=z},
position:function(){if(this.__shouldPosition){this._discoverInfo();window.ShadyDOM&&window.ShadyDOM.flush();var a;((a=this.hostElement)!=null?a:this).style.position="fixed";this.sizingTarget.style.boxSizing="border-box";var z;((z=this.hostElement)!=null?z:this).style.left="0px";var I;((I=this.hostElement)!=null?I:this).style.top="0px";var J,r=((J=this.hostElement)!=null?J:this).getBoundingClientRect();z=this.__getNormalizedRect(this.positionTarget);J=this.__getNormalizedRect(this.fitInto);this.avoidOuterEdge&&
(J={left:J.left+24,right:J.right-24,top:J.top+24,bottom:J.bottom-24});if(this.expandSizingTargetForScrollbars){var P=this.sizingTarget.offsetWidth;var N=this.sizingTarget.offsetHeight;var u=this.sizingTarget.clientWidth;var E=this.sizingTarget.clientHeight}a=this._fitInfo.margin;z=this.__getPosition(this._localeHorizontalAlign,this.verticalAlign,{width:r.width+a.left+a.right,height:r.height+a.top+a.bottom},r,z,J);var O=z.left+a.left,f=z.top+a.top;I=Math.min(J.right-a.right,O+r.width);var A=Math.min(J.bottom-
a.bottom,f+r.height);O=Math.max(J.left+a.left,Math.min(O,I-this._fitInfo.sizedBy.minWidth));f=Math.max(J.top+a.top,Math.min(f,A-this._fitInfo.sizedBy.minHeight));I=Math.max(I-O,this._fitInfo.sizedBy.minWidth);A=Math.max(A-f,this._fitInfo.sizedBy.minHeight);this.sizingTarget.style.maxWidth=I+"px";this.sizingTarget.style.maxHeight=A+"px";O-=r.left;r=f-r.top;var n;((n=this.hostElement)!=null?n:this).style.left=O+"px";var F;((F=this.hostElement)!=null?F:this).style.top=r+"px";if(this.expandSizingTargetForScrollbars){n=
this.sizingTarget.offsetHeight;N=n-this.sizingTarget.clientHeight-(N-E);if(N>0){this.sizingTarget.style.maxHeight=Math.min(J.height-a.top-a.bottom,A+N)+"px";N=this.sizingTarget.offsetHeight;E=N-n;var h;z.verticalAlign==="top"?h=r:z.verticalAlign==="middle"?h=r-E/2:z.verticalAlign==="bottom"&&(h=r-E);h=Math.max(J.top+a.top,Math.min(h,J.bottom-a.bottom-N));var v;((v=this.hostElement)!=null?v:this).style.top=h+"px"}h=this.sizingTarget.offsetWidth;P=h-this.sizingTarget.clientWidth-(P-u);if(P>0){X0l!==
void 0?u=X0l:(u=document.createElement("div"),Object.assign(u.style,{overflow:"auto",position:"fixed",left:"0px",top:"0px",maxWidth:"100px",maxHeight:"100px"}),v=document.createElement("div"),v.style.width="200px",v.style.height="200px",u.appendChild(v),document.body.appendChild(u),X0l=Math.abs(u.offsetWidth-100)>1?u.offsetWidth-u.clientWidth:0,document.body.removeChild(u),u=X0l);this.sizingTarget.style.maxWidth=Math.min(J.width-a.left-a.right,I+P-u)+"px";P=this.sizingTarget.offsetWidth+u;u=P-h;var d;
z.horizontalAlign==="left"?d=O:z.horizontalAlign==="center"?d=O-u/2:z.horizontalAlign==="right"&&(d=O-u);d=Math.max(J.left+a.left,Math.min(d,J.right-a.right-P));var W;((W=this.hostElement)!=null?W:this).style.left=d+"px"}}}},
constrain:function(){if(!this.__shouldPosition){this._discoverInfo();var a=this._fitInfo;if(!a.positionedBy.vertically){var z;((z=this.hostElement)!=null?z:this).style.position="fixed";var I;((I=this.hostElement)!=null?I:this).style.top="0px"}if(!a.positionedBy.horizontally){var J;((J=this.hostElement)!=null?J:this).style.position="fixed";var r;((r=this.hostElement)!=null?r:this).style.left="0px"}this.sizingTarget.style.boxSizing="border-box";var P;z=((P=this.hostElement)!=null?P:this).getBoundingClientRect();
a.sizedBy.height||this.__sizeDimension(z,a.positionedBy.vertically,"top","bottom","Height");a.sizedBy.width||this.__sizeDimension(z,a.positionedBy.horizontally,"left","right","Width")}},
_sizeDimension:function(a,z,I,J,r){this.__sizeDimension(a,z,I,J,r)},
__sizeDimension:function(a,z,I,J,r){var P=this._fitInfo,N=this.__getNormalizedRect(this.fitInto);N=r==="Width"?N.width:N.height;a=(z=z===J)?N-a[J]:a[I];I=P.margin[z?I:J];J="offset"+r;var u;P=((u=this.hostElement)!=null?u:this)[J]-this.sizingTarget[J];this.sizingTarget.style["max"+r]=N-I-a-P+"px"},
center:function(){if(!this.__shouldPosition){this._discoverInfo();var a=this._fitInfo.positionedBy;if(!a.vertically||!a.horizontally){var z;((z=this.hostElement)!=null?z:this).style.position="fixed";if(!a.vertically){var I;((I=this.hostElement)!=null?I:this).style.top="0px"}if(!a.horizontally){var J;((J=this.hostElement)!=null?J:this).style.left="0px"}var r;z=((r=this.hostElement)!=null?r:this).getBoundingClientRect();r=this.__getNormalizedRect(this.fitInto);if(!a.vertically){I=r.top-z.top+(r.height-
z.height)/2;var P;((P=this.hostElement)!=null?P:this).style.top=I+"px"}if(!a.horizontally){a=r.left-z.left+(r.width-z.width)/2;var N;((N=this.hostElement)!=null?N:this).style.left=a+"px"}}}},
__getNormalizedRect:function(a){return a===document.documentElement||a===window?{top:0,left:0,width:window.innerWidth,height:window.innerHeight,right:window.innerWidth,bottom:window.innerHeight}:a.getBoundingClientRect()},
__getOffscreenArea:function(a,z,I){return Math.abs(Math.min(0,a.top)+Math.min(0,I.bottom-(a.top+z.height)))*z.width+Math.abs(Math.min(0,a.left)+Math.min(0,I.right-(a.left+z.width)))*z.height},
__getPosition:function(a,z,I,J,r,P){var N=[{verticalAlign:"top",horizontalAlign:"left",top:r.top+this.verticalOffset,left:r.left+this.horizontalOffset},{verticalAlign:"top",horizontalAlign:"right",top:r.top+this.verticalOffset,left:r.right-I.width-this.horizontalOffset},{verticalAlign:"bottom",horizontalAlign:"left",top:r.bottom-I.height-this.verticalOffset,left:r.left+this.horizontalOffset},{verticalAlign:"bottom",horizontalAlign:"right",top:r.bottom-I.height-this.verticalOffset,left:r.right-I.width-
this.horizontalOffset}];if(this.noOverlap){for(var u=0,E=N.length;u<E;u++){var O={},f;for(f in N[u])O[f]=N[u][f];N.push(O)}N[0].top=N[1].top+=r.height;N[2].top=N[3].top-=r.height;N[4].left=N[6].left+=r.width;N[5].left=N[7].left-=r.width}z=z==="auto"?null:z;a=a==="auto"?null:a;a&&a!=="center"||(N.push({verticalAlign:"top",horizontalAlign:"center",top:r.top+this.verticalOffset+(this.noOverlap?r.height:0),left:r.left-J.width/2+r.width/2+this.horizontalOffset}),N.push({verticalAlign:"bottom",horizontalAlign:"center",
top:r.bottom-I.height-this.verticalOffset-(this.noOverlap?r.height:0),left:r.left-J.width/2+r.width/2+this.horizontalOffset}));z&&z!=="middle"||(N.push({verticalAlign:"middle",horizontalAlign:"left",top:r.top-J.height/2+r.height/2+this.verticalOffset,left:r.left+this.horizontalOffset+(this.noOverlap?r.width:0)}),N.push({verticalAlign:"middle",horizontalAlign:"right",top:r.top-J.height/2+r.height/2+this.verticalOffset,left:r.right-I.width-this.horizontalOffset-(this.noOverlap?r.width:0)}));z==="middle"&&
a==="center"&&N.push({verticalAlign:"middle",horizontalAlign:"center",top:r.top-J.height/2+r.height/2+this.verticalOffset,left:r.left-J.width/2+r.width/2+this.horizontalOffset});for(u=0;u<N.length;u++){J=N[u];r=J.verticalAlign===z;E=J.horizontalAlign===a;if(!this.dynamicAlign&&!this.noOverlap&&r&&E){var A=J;break}O=(!z||r)&&(!a||E);if(this.dynamicAlign||O){J.offscreenArea=this.__getOffscreenArea(J,I,P);if(J.offscreenArea===0&&O){A=J;break}J.alignsOk=r+E;A=A||J;r=J.offscreenArea-A.offscreenArea;if(r<
0||r===0&&J.alignsOk>A.alignsOk)A=J}}return A}};/*

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 wh,dA1,Wyi;wh=Element.prototype;dA1=wh.matches||wh.matchesSelector||wh.mozMatchesSelector||wh.msMatchesSelector||wh.oMatchesSelector||wh.webkitMatchesSelector;Wyi=function(){};
_.UA1=function(a){var z=oso,I=[];return z._collectTabbableNodes(a,I)?z._sortByTabIndex(I):I};
_.Z=Wyi.prototype;_.Z._normalizedTabIndex=function(a){return(dA1.call(a,"input, select, textarea, button, object")?dA1.call(a,":not([disabled])"):dA1.call(a,"a[href], area[href], iframe, [tabindex], [contentEditable]"))?(a=a.getAttribute("tabindex")||0,Number(a)):-1};
_.Z._collectTabbableNodes=function(a,z){if(a.nodeType!==Node.ELEMENT_NODE||!this._isVisible(a))return!1;var I=this._normalizedTabIndex(a),J=I>0;I>=0&&z.push(a);if(a.localName==="content"||a.localName==="slot")I=_.Q$(a).getDistributedNodes();else{var r;I=((r=_.Q$(a).shadowRoot)!=null?r:_.Q$(a.root||a)).children}for(a=0;a<I.length;a++)J=this._collectTabbableNodes(I[a],z)||J;return J};
_.Z._isVisible=function(a){var z=a.style;return z.visibility!=="hidden"&&z.display!=="none"?(z=window.getComputedStyle(a),z.visibility!=="hidden"&&z.display!=="none"):!1};
_.Z._sortByTabIndex=function(a){var z=a.length;if(z<2)return a;var I=Math.ceil(z/2);z=this._sortByTabIndex(a.slice(0,I));a=this._sortByTabIndex(a.slice(I));return this._mergeSortByTabIndex(z,a)};
_.Z._mergeSortByTabIndex=function(a,z){for(var I=[];a.length>0&&z.length>0;)this._hasLowerTabOrder(a[0],z[0])?I.push(z.shift()):I.push(a.shift());return I.concat(a,z)};
_.Z._hasLowerTabOrder=function(a,z){a=Math.max(a.tabIndex,0);z=Math.max(z.tabIndex,0);return a===0||z===0?z>a:a>z};
var oso=new Wyi;var DAj;var Rke;_.vK({_template:function(){if(Rke!==void 0)return Rke;var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:tp-yt-iron-overlay-backdrop--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,third_party.javascript.youtube_components.tp_yt_iron_overlay_backdrop.tp.yt.iron.overlay.backdrop.css.js--\x3e<slot class="style-scope tp-yt-iron-overlay-backdrop"></slot>\n');a.content.insertBefore(_.w().content.cloneNode(!0),
a.content.firstChild);var z=a.content,I=z.insertBefore;DAj===void 0&&(DAj=document.createElement("template"));var J=DAj;I.call(z,J.content.cloneNode(!0),a.content.firstChild);return Rke=a},
is:"tp-yt-iron-overlay-backdrop",properties:{opened:{reflectToAttribute:!0,type:Boolean,value:!1,observer:"_openedChanged"}},listeners:{transitionend:"_onTransitionend"},created:function(){this.__openedRaf=null},
attached:function(){this.opened&&this._openedChanged(this.opened)},
prepare:function(){this.opened&&!this.parentNode&&_.Q$(document.body).appendChild(this)},
open:function(){this.opened=!0},
close:function(){this.opened=!1},
complete:function(){this.opened||this.parentNode!==document.body||_.Q$(this.parentNode).removeChild(this)},
_onTransitionend:function(a){a&&a.target===this&&this.complete()},
_openedChanged:function(a){a?this.prepare():(a=window.getComputedStyle(this),a.transitionDuration!=="0s"&&a.opacity!=0||this.complete());this.isAttached&&(this.__openedRaf&&(window.cancelAnimationFrame(this.__openedRaf),this.__openedRaf=null),this.scrollTop=this.scrollTop,this.__openedRaf=window.requestAnimationFrame(function(){this.__openedRaf=null;this.toggleClass("opened",this.opened)}.bind(this)))}});var mt=function(){this._overlays=[];this._minimumZ=101;this._backdropElement=null;Xk(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)};
mt.prototype._bringOverlayAtIndexToFront=function(a){var z=this._overlays[a];if(z){var I=this._overlays.length-1,J=this._overlays[I];J&&this._shouldBeBehindOverlay(z,J)&&I--;if(!(a>=I)){J=Math.max(this._getZ(_.Lyo(this)),this._minimumZ);for(this._getZ(z)<=J&&this._applyOverlayZ(z,J);a<I;)this._overlays[a]=this._overlays[a+1],a++;this._overlays[I]=z}}};
mt.prototype.addOverlay=function(a){var z=this._overlays.indexOf(a);if(z>=0)this._bringOverlayAtIndexToFront(z);else{z=this._overlays.length;var I=this._overlays[z-1],J=Math.max(this._getZ(I),this._minimumZ),r=this._getZ(a);I&&this._shouldBeBehindOverlay(a,I)&&(this._applyOverlayZ(I,J),z--,J=Math.max(this._getZ(this._overlays[z-1]),this._minimumZ));r<=J&&this._applyOverlayZ(a,J);this._overlays.splice(z,0,a)}this.trackBackdrop()};
mt.prototype.removeOverlay=function(a){a=this._overlays.indexOf(a);a!==-1&&(this._overlays.splice(a,1),this.trackBackdrop())};
_.Lyo=function(a){return a._overlays[a._overlays.length-1]};
_.Z=mt.prototype;_.Z.trackBackdrop=function(){var a=this._overlayWithBackdrop();if(a||this._backdropElement)this.backdropElement.style.zIndex=this._getZ(a)-1,this.backdropElement.opened=!!a,this.backdropElement.prepare()};
_.Z._overlayWithBackdrop=function(){for(var a=this._overlays.length-1;a>=0;a--)if(this._overlays[a].withBackdrop)return this._overlays[a]};
_.Z._getZ=function(a){var z=this._minimumZ;if(a){var I,J,r=Number(((I=a.hostElement)!=null?I:a).style.zIndex||window.getComputedStyle((J=a.hostElement)!=null?J:a).zIndex);r===r&&(z=r)}return z};
_.Z._setZ=function(a,z){var I;((I=a.hostElement)!=null?I:a).style.zIndex=z};
_.Z._applyOverlayZ=function(a,z){this._setZ(a,z+2)};
_.Z._overlayInPath=function(a){a=a||[];for(var z=0;z<a.length;z++){var I=void 0;if(((I=a[z].polymerController)!=null?I:a[z])._manager===this)return a[z]}};
_.Z._onCaptureClick=function(a){var z=this._overlays.length-1;if(z!==-1)for(var I=_.Q$(a).path,J,r;(J=this._overlays[z])&&this._overlayInPath(I)!==((r=J.hostElement)!=null?r:J);)if(J._onCaptureClick(a),J.allowClickThrough)z--;else break};
_.Z._onCaptureFocus=function(a){var z=_.Lyo(this);z&&z._onCaptureFocus(a)};
_.Z._onCaptureKeyDown=function(a){var z=_.Lyo(this);z&&(_.V_.keyboardEventMatchesKeys(a,"esc")?z._onCaptureEsc(a):_.V_.keyboardEventMatchesKeys(a,"tab")&&z._onCaptureTab(a))};
_.Z._shouldBeBehindOverlay=function(a,z){return!a.alwaysOnTop&&z.alwaysOnTop&&!z.contains(a)};
_.eH.Object.defineProperties(mt.prototype,{backdropElement:{configurable:!0,enumerable:!0,get:function(){this._backdropElement||(this._backdropElement=document.createElement("tp-yt-iron-overlay-backdrop"));return this._backdropElement}},
deepActiveElement:{configurable:!0,enumerable:!0,get:function(){var a=document.activeElement;a&&a instanceof Element!==!1||(a=document.body);for(;a.root&&_.Q$(a.root).activeElement;)a=_.Q$(a.root).activeElement;return a}}});
_.y_=new mt;var iRp=0,xkG=0,vTp=null,GoI=[],Sl=["wheel","mousewheel","DOMMouseScroll"],$k3;_.K("web_no_lock_on_touchstart_killswitch")&&(Sl.push("touchstart"),Sl.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;_.kE={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:_.y_},_focusedChild:{type:Object}},listeners:{"iron-resize":"_onIronResize"},observers:["__updateScrollObservers(isAttached, opened, scrollAction)"],get backdropElement(){return this._manager.backdropElement},get _focusNode(){var a;return this._focusedChild||_.Q$((a=this.hostElement)!=null?a:this).querySelector("[autofocus]")||this.hostElement||this},get _focusableNodes(){var a;return _.UA1((a=this.hostElement)!=null?a:this)},ready:function(){this.__shouldRemoveTabIndex=
this.__isAnimating=!1;this.__firstFocusableNode=this.__lastFocusableNode=null;this.__rafs={};this.__scrollTop=this.__scrollLeft=this.__restoreFocusNode=null;this.__onCaptureScroll=this.__onCaptureScroll.bind(this);this.__rootNodes=null;this._ensureSetup()},
attached:function(){this.opened&&this._openedChanged(this.opened);var a;this._observer=_.Q$((a=this.hostElement)!=null?a:this).observeNodes(this._onNodesChange)},
detached:function(){if(this._observer){var a;_.Q$((a=this.hostElement)!=null?a:this).unobserveNodes(this._observer)}this._observer=null;for(var z in this.__rafs)this.__rafs[z]!==null&&cancelAnimationFrame(this.__rafs[z]);this.__rafs={};this._manager.removeOverlay(this);this.__isAnimating&&(this.opened?this._finishRenderOpened():(this._applyFocus(),this._finishRenderClosed()))},
toggle:function(){this._setCanceled(!1);this.opened=!this.opened},
open:function(){this._setCanceled(!1);this.opened=!0},
close:function(){this._setCanceled(!1);this.opened=!1},
cancel:function(a){this.fire("iron-overlay-canceled",a,{cancelable:!0}).defaultPrevented||(this._setCanceled(!0),this.opened=!1)},
invalidateTabbables:function(){this.__firstFocusableNode=this.__lastFocusableNode=null},
_ensureSetup:function(){if(!this._overlaySetup){this._overlaySetup=!0;var a;((a=this.hostElement)!=null?a:this).style.outline="none";var z;((z=this.hostElement)!=null?z:this).style.display="none"}},
_openedChanged:function(a){if(a){var z;((z=this.hostElement)!=null?z:this).removeAttribute("aria-hidden")}else{var I;((I=this.hostElement)!=null?I:this).setAttribute("aria-hidden","true")}this.isAttached&&(this.__isAnimating=!0,this.__deraf("__openedChanged",this.__openedChanged))},
_canceledChanged:function(){this.closingReason=this.closingReason||{};this.closingReason.canceled=this.canceled},
_withBackdropChanged:function(){var a;if(this.withBackdrop&&!((a=this.hostElement)!=null?a:this).hasAttribute("tabindex")){var z;((z=this.hostElement)!=null?z:this).setAttribute("tabindex","-1");this.__shouldRemoveTabIndex=!0}else if(this.__shouldRemoveTabIndex){var I;((I=this.hostElement)!=null?I:this).removeAttribute("tabindex");this.__shouldRemoveTabIndex=!1}this.opened&&this.isAttached&&this._manager.trackBackdrop()},
_prepareRenderOpened:function(){this.__restoreFocusNode=this._manager.deepActiveElement;this._preparePositioning();this.refit();this._finishPositioning();this.noAutoFocus&&document.activeElement===this._focusNode&&(this._focusNode.blur(),this.__restoreFocusNode.focus())},
_renderOpened:function(){this._finishRenderOpened()},
_renderClosed:function(){this._finishRenderClosed()},
_finishRenderOpened:function(){this.notifyResize();this.__isAnimating=!1;this.fire("iron-overlay-opened")},
_finishRenderClosed:function(){var a;((a=this.hostElement)!=null?a:this).style.display="none";var z;((z=this.hostElement)!=null?z:this).style.zIndex="";this.notifyResize();this.__isAnimating=!1;this.fire("iron-overlay-closed",this.closingReason)},
_preparePositioning:function(){var a,z;((a=this.hostElement)!=null?a:this).style.transition=((z=this.hostElement)!=null?z:this).style.webkitTransition="none";var I,J;((I=this.hostElement)!=null?I:this).style.transform=((J=this.hostElement)!=null?J:this).style.webkitTransform="none";var r;((r=this.hostElement)!=null?r:this).style.display=""},
_finishPositioning:function(){var a;((a=this.hostElement)!=null?a:this).style.display="none";this.scrollTop=this.scrollTop;var z,I;((z=this.hostElement)!=null?z:this).style.transition=((I=this.hostElement)!=null?I:this).style.webkitTransition="";var J,r;((J=this.hostElement)!=null?J:this).style.transform=((r=this.hostElement)!=null?r:this).style.webkitTransform="";var P;((P=this.hostElement)!=null?P:this).style.display="";this.scrollTop=this.scrollTop},
_applyFocus:function(){if(this.opened)this.noAutoFocus||this._focusNode.focus();else{if(this.restoreFocusOnClose&&this.__restoreFocusNode){var a=this._manager.deepActiveElement,z;if(!(z=a===document.body))a:{for(;a;a=a.assignedSlot||a.parentNode||a.host)if(a===this){z=!0;break a}z=!1}z&&this.__restoreFocusNode.focus()}this.__restoreFocusNode=null;this._focusNode.blur();this._focusedChild=null}},
_onCaptureClick:function(a){this.noCancelOnOutsideClick||this.cancel(a)},
_onCaptureFocus:function(a){if(this.withBackdrop){var z=_.Q$(a).path;z.indexOf(this)===-1?(a.stopPropagation(),this._applyFocus()):this._focusedChild=z[0]}},
_onCaptureEsc:function(a){this.noCancelOnEscKey||this.cancel(a)},
_onCaptureTab:function(a){if(this.withBackdrop){this.__ensureFirstLastFocusables();var z=a.shiftKey,I=z?this.__firstFocusableNode:this.__lastFocusableNode;z=z?this.__lastFocusableNode:this.__firstFocusableNode;if(I===z)I=!0;else{var J=this._manager.deepActiveElement;I=J===I||J===this}I&&(a.preventDefault(),this._focusedChild=z,this._applyFocus())}},
_onIronResize:function(){this.opened&&!this.__isAnimating&&this.__deraf("refit",this.refit)},
_onNodesChange:function(){this.opened&&!this.__isAnimating&&(this.invalidateTabbables(),this.notifyResize())},
__ensureFirstLastFocusables:function(){var a=this._focusableNodes;this.__firstFocusableNode=a[0];this.__lastFocusableNode=a[a.length-1]},
__openedChanged:function(){this.opened?(this._prepareRenderOpened(),this._manager.addOverlay(this),this._applyFocus(),this._renderOpened()):(this._manager.removeOverlay(this),this._applyFocus(),this._renderClosed())},
__deraf:function(a,z){var I=this.__rafs;I[a]!==null&&cancelAnimationFrame(I[a]);I[a]=requestAnimationFrame(function(){I[a]=null;z.call(this)}.bind(this))},
__updateScrollObservers:function(a,z,I){a&&z&&this.__isValidScrollAction(I)?(I==="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),$k3=_._lockingElements$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager[_._lockingElements$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager.length-1],_._lockedElementCache$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager=
[],_._unlockedElementCache$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager=[])),this.__addScrollListeners()):(a=_._lockingElements$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager.indexOf(this),a!==-1&&(_._lockingElements$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager.splice(a,1),$k3=_._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(DV)for(var a=this;a;)a.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&a.host&&this.__rootNodes.push(a),a=a.host||a.assignedSlot||a.parentNode;this.__rootNodes.push(document)}this.__rootNodes.forEach(function(z){z.addEventListener("scroll",this.__onCaptureScroll,{capture:!0,passive:!0})},this)},
__removeScrollListeners:function(){this.__rootNodes&&this.__rootNodes.forEach(function(a){a.removeEventListener("scroll",this.__onCaptureScroll,{capture:!0,passive:!0})},this);
this.isAttached||(this.__rootNodes=null)},
__isValidScrollAction:function(a){return a==="lock"||a==="refit"||a==="cancel"},
__onCaptureScroll:function(a){if(!(this.__isAnimating||_.Q$(a).path.indexOf(this)>=0))switch(this.scrollAction){case "lock":this.__restoreScrollPosition();break;case "refit":this.__deraf("refit",this.refit);break;case "cancel":this.cancel(a)}},
__saveScrollPosition:function(){document.scrollingElement?(this.__scrollTop=document.scrollingElement.scrollTop,this.__scrollLeft=document.scrollingElement.scrollLeft):(this.__scrollTop=Math.max(document.documentElement.scrollTop,document.body.scrollTop),this.__scrollLeft=Math.max(document.documentElement.scrollLeft,document.body.scrollLeft))},
__restoreScrollPosition:function(){document.scrollingElement?(document.scrollingElement.scrollTop=this.__scrollTop,document.scrollingElement.scrollLeft=this.__scrollLeft):(document.documentElement.scrollTop=document.body.scrollTop=this.__scrollTop,document.documentElement.scrollLeft=document.body.scrollLeft=this.__scrollLeft)}};
_.Mb=[Tsl,_.Ts,_.kE];_.vK({_template:function(){if($Al!==void 0)return $Al;var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:tp-yt-iron-dropdown--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,third_party.javascript.youtube_components.tp_yt_iron_dropdown.tp.yt.iron.dropdown.css.js--\x3e<div id="contentWrapper" class="style-scope tp-yt-iron-dropdown">\n  <slot id="content" name="dropdown-content" class="style-scope tp-yt-iron-dropdown"></slot>\n</div>\n');
a.content.insertBefore(_.w().content.cloneNode(!0),a.content.firstChild);var z=a.content,I=z.insertBefore;G0i===void 0&&(G0i=document.createElement("template"));var J=G0i;I.call(z,J.content.cloneNode(!0),a.content.firstChild);return $Al=a},
is:"tp-yt-iron-dropdown",behaviors:[_.Q_,_.V_,_.Mb,HUo],properties:{horizontalAlign:{type:String,value:"left",reflectToAttribute:!0},verticalAlign:{type:String,value:"top",reflectToAttribute:!0},openAnimationConfig:{type:Object},closeAnimationConfig:{type:Object},focusTarget:{type:Object},noAnimations:{type:Boolean,value:!1},allowOutsideScroll:{type:Boolean,value:!1,observer:"_allowOutsideScrollChanged"}},listeners:{"neon-animation-finish":"_onNeonAnimationFinish"},observers:["_updateOverlayPosition(positionTarget, verticalAlign, horizontalAlign, verticalOffset, horizontalOffset)"],
get containedElement(){for(var a=_.Q$(this.$.content).getDistributedNodes(),z=0,I=a.length;z<I;z++)if(a[z].nodeType===Node.ELEMENT_NODE)return a[z]},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(),_.kE._openedChanged.apply(this,arguments))},
_renderOpened:function(){!this.noAnimations&&this.animationConfig.open?(this.$.contentWrapper.classList.add("animating"),this.playAnimation("open")):_.kE._renderOpened.apply(this,arguments)},
_renderClosed:function(){!this.noAnimations&&this.animationConfig.close?(this.$.contentWrapper.classList.add("animating"),this.playAnimation("close")):_.kE._renderClosed.apply(this,arguments)},
_onNeonAnimationFinish:function(){this.$.contentWrapper.classList.remove("animating");this.opened?this._finishRenderOpened():this._finishRenderClosed()},
_updateAnimationConfig:function(){for(var a=this.containedElement,z=[].concat(this.openAnimationConfig||[],this.closeAnimationConfig||[]),I=0;I<z.length;I++)z[I].node=a;this.animationConfig={open:this.openAnimationConfig,close:this.closeAnimationConfig}},
_updateOverlayPosition:function(){this.isAttached&&this.notifyResize()},
_allowOutsideScrollChanged:function(a){this._readied&&(a?this.scrollAction&&this.scrollAction!=="lock"||(this.scrollAction="refit"):this.scrollAction="lock")},
_applyFocus:function(){var a=this.focusTarget||this.containedElement;a&&this.opened&&!this.noAutoFocus?a.focus():_.kE._applyFocus.apply(this,arguments)}});var lkG;var p0J;/*

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 w0J=new _.vY({type:"iconset"});
_.vK({_template:function(){if(p0J!==void 0)return p0J;var a=document.createElement("template");_.V(a,"\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:tp-yt-iron-icon--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,third_party.javascript.youtube_components.tp_yt_iron_icon.tp.yt.iron.icon.css.js--\x3e\n");a.content.insertBefore(_.w().content.cloneNode(!0),a.content.firstChild);var z=a.content,I=z.insertBefore;lkG===void 0&&(lkG=document.createElement("template"));
var J=lkG;I.call(z,J.content.cloneNode(!0),a.content.firstChild);return p0J=a},
is:"tp-yt-iron-icon",properties:{icon:{type:String},theme:{type:String},src:{type:String}},observers:["_updateIcon(isAttached)","_updateIcon(theme, isAttached)","_srcChanged(src, isAttached)","_iconChanged(icon, isAttached)"],_DEFAULT_ICONSET:"icons",_iconChanged:function(a){a=(a||"").split(":");this._iconName=a.pop();this._iconsetName=a.pop()||this._DEFAULT_ICONSET;this._updateIcon()},
_srcChanged:function(){this._updateIcon()},
_usesIconset:function(){return this.icon||!this.src},
_updateIcon:function(){if(this._usesIconset())if(this._img&&this._img.parentNode&&_.Q$(this.root).removeChild(this._img),this._iconName==="")this._iconset&&this._iconset.removeIcon(this);else{if(this._iconsetName)if(this._iconset=w0J.byKey(this._iconsetName)){var a=this._iconset.applyIcon(this,this._iconName,this.theme);a&&a.setAttribute("aria-hidden","true");this.unlisten(window,"iron-iconset-added","_updateIcon")}else this.listen(window,"iron-iconset-added","_updateIcon")}else this._iconset&&this._iconset.removeIcon(this),
this._img||(this._img=document.createElement("img"),this._img.style.width="100%",this._img.style.height="100%",this._img.draggable=!1),this._img.src=this.src,_.Q$(this.root).appendChild(this._img)}});var mAX;var yQj;_.vK({_template:function(){if(yQj!==void 0)return yQj;var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:tp-yt-iron-input--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,third_party.javascript.youtube_components.tp_yt_iron_input.tp.yt.iron.input.css.js--\x3e<slot id="content" class="style-scope tp-yt-iron-input"></slot>\n');a.content.insertBefore(_.w().content.cloneNode(!0),a.content.firstChild);
var z=a.content,I=z.insertBefore;mAX===void 0&&(mAX=document.createElement("template"));var J=mAX;I.call(z,J.content.cloneNode(!0),a.content.firstChild);return yQj=a},
is:"tp-yt-iron-input",behaviors:[_.$E],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(){_.p$.requestAvailability();this._previousValidInput="";this._patternAlreadyChecked=!1},
attached:function(){this._observer=_.Q$(this).observeNodes(function(){this._initSlottedInput()}.bind(this))},
detached:function(){this._observer&&(_.Q$(this).unobserveNodes(this._observer),this._observer=null)},
get inputElement(){return this._inputElement},_initSlottedInput:function(){this._inputElement=this.getEffectiveChildren()[0];this.inputElement&&this.inputElement.value&&(this.bindValue=this.inputElement.value);this.fire("iron-input-ready")},
get _patternRegExp(){if(this.allowedPattern)var a=new RegExp(this.allowedPattern);else switch(this.inputElement.type){case "number":a=/[0-9.,e-]/}return a},_bindValueChanged:function(a,z){z&&(a===void 0?z.value=null:a!==z.value&&(this.inputElement.value=a),this.autoValidate&&this.validate(),this.fire("bind-value-changed",{value:a}))},
_onInput:function(){!this.allowedPattern||this._patternAlreadyChecked||this._checkPatternValidity()||(this._announceInvalidCharacter("Invalid string of characters not entered."),this.inputElement.value=this._previousValidInput);this.bindValue=this._previousValidInput=this.inputElement.value;this._patternAlreadyChecked=!1},
_isPrintable:function(a){var z=a.keyCode==19||a.keyCode==20||a.keyCode==45||a.keyCode==46||a.keyCode==144||a.keyCode==145||a.keyCode>32&&a.keyCode<41||a.keyCode>111&&a.keyCode<124;return!(a.keyCode==8||a.keyCode==9||a.keyCode==13||a.keyCode==27)&&!(a.charCode==0&&z)},
_onKeypress:function(a){if(this.allowedPattern||this.inputElement.type==="number"){var z=this._patternRegExp;if(z&&!(a.metaKey||a.ctrlKey||a.altKey)){this._patternAlreadyChecked=!0;var I=String.fromCharCode(a.charCode);this._isPrintable(a)&&!z.test(I)&&(a.preventDefault(),this._announceInvalidCharacter("Invalid character "+I+" not entered."))}}},
_checkPatternValidity:function(){var a=this._patternRegExp;if(!a)return!0;for(var z=0;z<this.inputElement.value.length;z++)if(!a.test(this.inputElement.value[z]))return!1;return!0},
validate:function(){if(!this.inputElement)return this.invalid=!1,!0;var a=this.inputElement.checkValidity();a&&(this.required&&this.bindValue===""?a=!1:this.hasValidator()&&(a=_.$E.validate.call(this,this.bindValue)));this.invalid=!a;this.fire("iron-input-validate");return a},
_announceInvalidCharacter:function(a){this.fire("iron-announce",{text:a})},
_computeValue:function(a){return a}});var k0i;var M8O;var cQ1=navigator.userAgent.match(/iP(?:hone|ad;(?: U;)? CPU) OS (\d+)/),Y1I=cQ1&&cQ1[1]>=8;
_.vK({_template:function(){if(M8O!==void 0)return M8O;var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:tp-yt-iron-list--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,third_party.javascript.youtube_components.tp_yt_iron_list.tp.yt.iron.list.css.js--\x3e<array-selector id="selector" items="{{items}}" selected="{{selectedItems}}" selected-item="{{selectedItem}}" class="style-scope tp-yt-iron-list"></array-selector>\n\n<div id="items" class="style-scope tp-yt-iron-list">\n  <slot class="style-scope tp-yt-iron-list"></slot>\n</div>\n');a.content.insertBefore(_.w().content.cloneNode(!0),
a.content.firstChild);var z=a.content,I=z.insertBefore;k0i===void 0&&(k0i=document.createElement("template"));var J=k0i;I.call(z,J.content.cloneNode(!0),a.content.firstChild);return M8O=a},
is:"tp-yt-iron-list",properties:{items:{type:Array},as:{type:String,value:"item"},indexAs:{type:String,value:"index"},selectedAs:{type:String,value:"selected"},grid:{type:Boolean,value:!1,reflectToAttribute:!0,observer:"_gridChanged"},selectionEnabled:{type:Boolean,value:!1},selectedItem:{type:Object,notify:!0},selectedItems:{type:Object,notify:!0},multiSelection:{type:Boolean,value:!1},scrollOffset:{type:Number,value:0}},observers:["_itemsChanged(items.*)","_selectionEnabledChanged(selectionEnabled)",
"_multiSelectionChanged(multiSelection)","_setOverflow(scrollTarget, scrollOffset)"],behaviors:[JLm,_.Ts,_.FYw,Ckw],_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 _.Q$(_.Q$(this._userTemplate).parentNode)},get _maxScrollTop(){return this._estScrollHeight-
this._viewportHeight+this._scrollOffset},get _maxVirtualStart(){var a=this._convertIndexToCompleteRow(this._virtualCount);return Math.max(0,a-this._physicalCount)},set _virtualStart(a){a=this._clamp(a,0,this._maxVirtualStart);this.grid&&(a-=a%this._itemsPerRow);this._virtualStartVal=a},get _virtualStart(){return this._virtualStartVal||0},set _physicalStart(a){a%=this._physicalCount;a<0&&(a=this._physicalCount+a);this.grid&&(a-=a%this._itemsPerRow);this._physicalStartVal=a},get _physicalStart(){return this._physicalStartVal||
0},get _physicalEnd(){return(this._physicalStart+this._physicalCount-1)%this._physicalCount},set _physicalCount(a){this._physicalCountVal=a},get _physicalCount(){return this._physicalCountVal||0},get _optPhysicalSize(){return this._viewportHeight===0?Infinity:this._viewportHeight*this._maxPages},get _isVisible(){return!(!this.offsetWidth&&!this.offsetHeight)},get firstVisibleIndex(){var a=this._firstVisibleIndexVal;if(a==null){var z=this._physicalTop+this._scrollOffset;this._firstVisibleIndexVal=
a=this._iterateItems(function(I,J){z+=this._getPhysicalSizeIncrement(I);if(z>this._scrollPosition)return this.grid?J-J%this._itemsPerRow:J;if(this.grid&&this._virtualCount-1===J)return J-J%this._itemsPerRow})||0}return a},
get lastVisibleIndex(){var a=this._lastVisibleIndexVal;if(a==null){if(this.grid)a=Math.min(this._virtualCount,this.firstVisibleIndex+this._estRowsInView*this._itemsPerRow-1);else{var z=this._physicalTop+this._scrollOffset;this._iterateItems(function(I,J){z<this._scrollBottom&&(a=J);z+=this._getPhysicalSizeIncrement(I)})}this._lastVisibleIndexVal=a}return a},
get _defaultScrollTarget(){return this},get _virtualRowCount(){return Math.ceil(this._virtualCount/this._itemsPerRow)},get _estRowsInView(){return Math.ceil(this._viewportHeight/this._rowHeight)},get _physicalRows(){return Math.ceil(this._physicalCount/this._itemsPerRow)},get _scrollOffset(){return this._scrollerPaddingTop+this.scrollOffset},ready:function(){this.addEventListener("focus",this._didFocus.bind(this),!0)},
attached:function(){this._debounce("_render",this._render,_.iN);this.listen(this,"iron-resize","_resizeHandler");this.listen(this,"keydown","_keydownHandler")},
detached:function(){this.unlisten(this,"iron-resize","_resizeHandler");this.unlisten(this,"keydown","_keydownHandler")},
_setOverflow:function(a){this.style.webkitOverflowScrolling=a===this?"touch":"";this.style.overflowY=a===this?"auto":"";this._firstVisibleIndexVal=this._lastVisibleIndexVal=null;this._debounce("_render",this._render,_.iN)},
updateViewportBoundaries:function(){var a=window.getComputedStyle(this);this._scrollerPaddingTop=this.scrollTarget===this?0:parseInt(a["padding-top"],10);this._isRTL=a.direction==="rtl";this._viewportWidth=this.$.items.offsetWidth;this._viewportHeight=this._scrollTargetHeight;this.grid&&this._updateGridMetrics()},
_scrollHandler:function(){var a=Math.max(0,Math.min(this._maxScrollTop,this._scrollTop)),z=a-this._scrollPosition,I=z>=0;this._scrollPosition=a;this._lastVisibleIndexVal=this._firstVisibleIndexVal=null;Math.abs(z)>this._physicalSize&&this._physicalSize>0?(z-=this._scrollOffset,I=Math.round(z/this._physicalAverage)*this._itemsPerRow,this._virtualStart+=I,this._physicalStart+=I,this._physicalTop=Math.min(Math.floor(this._virtualStart/this._itemsPerRow)*this._physicalAverage,this._scrollPosition),this._update()):
this._physicalCount>0&&(a=this._getReusables(I),I?(this._physicalTop=a.physicalTop,this._virtualStart+=a.indexes.length,this._physicalStart+=a.indexes.length):(this._virtualStart=this._virtualStart-a.indexes.length,this._physicalStart=this._physicalStart-a.indexes.length),this._update(a.indexes,I?null:a.indexes),this._debounce("_increasePoolIfNeeded",this._increasePoolIfNeeded.bind(this,0),Wv))},
_getReusables:function(a){var z=[],I=this._hiddenContentSize*this._ratio,J=this._virtualStart,r=this._virtualEnd,P=this._physicalCount,N=this._physicalTop+this._scrollOffset;var u=this._physicalBottom+this._scrollOffset;var E=this._scrollPosition,O=this._scrollBottom;if(a){var f=this._physicalStart;u=E-N}else f=this._physicalEnd,u-=O;for(;;){var A=this._getPhysicalSizeIncrement(f);u-=A;if(z.length>=P||u<=I)break;if(a){if(r+z.length+1>=this._virtualCount)break;if(N+A>=E-this._scrollOffset)break;z.push(f);
N+=A;f=(f+1)%P}else{if(J-z.length<=0)break;if(N+this._physicalSize-A<=O)break;z.push(f);N-=A;f=f===0?P-1:f-1}}return{indexes:z,physicalTop:N-this._scrollOffset}},
_update:function(a,z){if(!(a&&a.length===0||this._physicalCount===0)){this._manageFocus();this._assignModels(a);this._updateMetrics(a);if(z)for(;z.length;)a=z.pop(),this._physicalTop-=this._getPhysicalSizeIncrement(a);this._positionItems();this._updateScrollerSize()}},
_createPool:function(a){this._ensureTemplatized();var z,I=Array(a);for(z=0;z<a;z++){var J=this.stamp(null);I[z]=J.root.querySelector("*");this._itemsParent.appendChild(J.root)}return I},
_isClientFull:function(){return this._scrollBottom!=0&&this._physicalBottom-1>=this._scrollBottom&&this._physicalTop<=this._scrollPosition},
_increasePoolIfNeeded:function(a){a=this._clamp(this._physicalCount+a,3,this._virtualCount-this._virtualStart);a=this._convertIndexToCompleteRow(a);if(this.grid){var z=a%this._itemsPerRow;z&&a-z<=this._physicalCount&&(a+=this._itemsPerRow);a-=z}a-=this._physicalCount;z=Math.round(this._physicalCount*.5);if(!(a<0)){if(a>0){z=window.performance.now();[].push.apply(this._physicalItems,this._createPool(a));for(var I=0;I<a;I++)this._physicalSizes.push(0);this._physicalCount+=a;this._physicalStart>this._physicalEnd&&
this._isIndexRendered(this._focusedVirtualIndex)&&this._getPhysicalIndex(this._focusedVirtualIndex)<this._physicalEnd&&(this._physicalStart+=a);this._update();this._templateCost=(window.performance.now()-z)/a;z=Math.round(this._physicalCount*.5)}this._virtualEnd>=this._virtualCount-1||z===0||(this._isClientFull()?this._physicalSize<this._optPhysicalSize&&this._debounce("_increasePoolIfNeeded",this._increasePoolIfNeeded.bind(this,this._clamp(Math.round(50/this._templateCost),1,z)),pAl):this._debounce("_increasePoolIfNeeded",
this._increasePoolIfNeeded.bind(this,z),Wv))}},
_render:function(){if(this.isAttached&&this._isVisible)if(this._physicalCount!==0){var a=this._getReusables(!0);this._physicalTop=a.physicalTop;this._virtualStart+=a.indexes.length;this._physicalStart+=a.indexes.length;this._update(a.indexes);this._update();this._increasePoolIfNeeded(0)}else this._virtualCount>0&&(this.updateViewportBoundaries(),this._increasePoolIfNeeded(3))},
_ensureTemplatized:function(){if(!this.ctor){(this._userTemplate=this.queryEffectiveChildren("template"))||console.warn("iron-list requires a template to be provided in light-dom");var a={__key__:!0};a[this.as]=!0;a[this.indexAs]=!0;a[this.selectedAs]=!0;a.tabIndex=!0;this._instanceProps=a;this.templatize(this._userTemplate,this.mutableData)}},
_gridChanged:function(a,z){typeof z!=="undefined"&&(this.notifyResize(),_.AX(),a&&this._updateGridMetrics())},
_itemsChanged:function(a){if(a.path==="items")this._physicalTop=this._virtualStart=0,this._virtualCount=this.items?this.items.length:0,this._physicalIndexForKey={},this._lastVisibleIndexVal=this._firstVisibleIndexVal=null,this._physicalCount=this._physicalCount||0,this._physicalItems=this._physicalItems||[],this._physicalSizes=this._physicalSizes||[],this._physicalStart=0,this._scrollTop>this._scrollOffset&&this._resetScrollPosition(0),this._removeFocusedItem(),this._debounce("_render",this._render,
_.iN);else if(a.path==="items.splices"){this._adjustVirtualIndex(a.value.indexSplices);this._virtualCount=this.items?this.items.length:0;if(a.value.indexSplices.some(function(I){return I.addedCount>0||I.removed.length>0})){var z=this._getActiveElement();
this.contains(z)&&z.blur()}a=a.value.indexSplices.some(function(I){return I.index+I.addedCount>=this._virtualStart&&I.index<=this._virtualEnd},this);
this._isClientFull()&&!a||this._debounce("_render",this._render,_.iN)}else a.path!=="items.length"&&this._forwardItemPath(a.path,a.value)},
_forwardItemPath:function(a,z){a=a.slice(6);var I=a.indexOf(".");I===-1&&(I=a.length);var J,r=this.modelForElement(this._offscreenFocusedItem),P=parseInt(a.substring(0,I),10);if(J=this._isIndexRendered(P)){var N=this._getPhysicalIndex(P);var u=this.modelForElement(this._physicalItems[N])}else r&&(u=r);u&&u[this.indexAs]===P&&(a=a.substring(I+1),a=this.as+(a?"."+a:""),u._setPendingPropertyOrPath(a,z,!1,!0),u._flushProperties&&u._flushProperties(),J&&(this._updateMetrics([N]),this._positionItems(),
this._updateScrollerSize()))},
_adjustVirtualIndex:function(a){a.forEach(function(z){z.removed.forEach(this._removeItem,this);z.index<this._virtualStart&&(z=Math.max(z.addedCount-z.removed.length,z.index-this._virtualStart),this._virtualStart+=z,this._focusedVirtualIndex>=0&&(this._focusedVirtualIndex+=z))},this)},
_removeItem:function(a){this.$.selector.deselect(a);this._focusedItem&&this.modelForElement(this._focusedItem)[this.as]===a&&this._removeFocusedItem()},
_iterateItems:function(a,z){var I,J;if(arguments.length===2&&z)for(J=0;J<z.length;J++){var r=z[J];var P=this._computeVidx(r);if((I=a.call(this,r,P))!=null)return I}else{r=this._physicalStart;for(P=this._virtualStart;r<this._physicalCount;r++,P++)if((I=a.call(this,r,P))!=null)return I;for(r=0;r<this._physicalStart;r++,P++)if((I=a.call(this,r,P))!=null)return I}},
_computeVidx:function(a){return a>=this._physicalStart?this._virtualStart+(a-this._physicalStart):this._virtualStart+(this._physicalCount-this._physicalStart)+a},
_assignModels:function(a){this._iterateItems(function(z,I){var J=this._physicalItems[z],r=this.items&&this.items[I];if(r!=null){var P=this.modelForElement(J);P.__key__=null;this._forwardProperty(P,this.as,r);this._forwardProperty(P,this.selectedAs,this.$.selector.isSelected(r));this._forwardProperty(P,this.indexAs,I);this._forwardProperty(P,"tabIndex",this._focusedVirtualIndex===I?0:-1);this._physicalIndexForKey[P.__key__]=z;P._flushProperties&&P._flushProperties(!0);J.removeAttribute("hidden")}else J.setAttribute("hidden",
"")},a)},
_updateMetrics:function(a){_.AX();var z=0,I=0,J=this._physicalAverageCount,r=this._physicalAverage;this._iterateItems(function(P){I+=this._physicalSizes[P];this._physicalSizes[P]=this._physicalItems[P].offsetHeight;z+=this._physicalSizes[P];this._physicalAverageCount+=this._physicalSizes[P]?1:0},a);
this.grid?(this._updateGridMetrics(),this._physicalSize=Math.ceil(this._physicalCount/this._itemsPerRow)*this._rowHeight):(I=this._itemsPerRow===1?I:Math.ceil(this._physicalCount/this._itemsPerRow)*this._rowHeight,this._physicalSize=this._physicalSize+z-I,this._itemsPerRow=1);this._physicalAverageCount!==J&&(this._physicalAverage=Math.round((r*J+z)/this._physicalAverageCount))},
_updateGridMetrics:function(){this._itemWidth=this._physicalCount>0?this._physicalItems[0].getBoundingClientRect().width:200;this._rowHeight=this._physicalCount>0?this._physicalItems[0].offsetHeight:200;this._itemsPerRow=this._itemWidth?Math.floor(this._viewportWidth/this._itemWidth):this._itemsPerRow},
_positionItems:function(){this._adjustScrollPosition();var a=this._physicalTop;if(this.grid){var z=(this._viewportWidth-this._itemsPerRow*this._itemWidth)/2;this._iterateItems(function(I,J){var r=Math.floor(J%this._itemsPerRow*this._itemWidth+z);this._isRTL&&(r*=-1);this.translate3d(r+"px",a+"px",0,this._physicalItems[I]);this._shouldRenderNextRow(J)&&(a+=this._rowHeight)})}else this._iterateItems(function(I){this.translate3d(0,a+"px",0,this._physicalItems[I]);
a+=this._physicalSizes[I]})},
_getPhysicalSizeIncrement:function(a){return this.grid?this._computeVidx(a)%this._itemsPerRow!==this._itemsPerRow-1?0:this._rowHeight:this._physicalSizes[a]},
_shouldRenderNextRow:function(a){return a%this._itemsPerRow===this._itemsPerRow-1},
_adjustScrollPosition:function(){var a=this._virtualStart===0?this._physicalTop:Math.min(this._scrollPosition+this._physicalTop,0);if(a!==0){this._physicalTop=this._physicalTop-a;var z=this._scrollPosition;!Y1I&&z>0&&this._resetScrollPosition(z-a)}},
_resetScrollPosition:function(a){this.scrollTarget&&a>=0&&(this._scrollPosition=this._scrollTop=a)},
_updateScrollerSize:function(a){this.grid?this._estScrollHeight=this._virtualRowCount*this._rowHeight:this._estScrollHeight=this._physicalBottom+Math.max(this._virtualCount-this._physicalCount-this._virtualStart,0)*this._physicalAverage;if((a=(a=(a=a||this._scrollHeight===0)||this._scrollPosition>=this._estScrollHeight-this._physicalSize)||this.grid&&this.$.items.style.height<this._estScrollHeight)||Math.abs(this._estScrollHeight-this._scrollHeight)>=this._viewportHeight)this.$.items.style.height=
this._estScrollHeight+"px",this._scrollHeight=this._estScrollHeight},
scrollToItem:function(a){return this.scrollToIndex(this.items.indexOf(a))},
scrollToIndex:function(a){if(!(typeof a!=="number"||a<0||a>this.items.length-1)&&(_.AX(),this._physicalCount!==0)){a=this._clamp(a,0,this._virtualCount-1);if(!this._isIndexRendered(a)||a>=this._maxVirtualStart)this._virtualStart=this.grid?a-this._itemsPerRow*2:a-1;this._manageFocus();this._assignModels();this._updateMetrics();this._physicalTop=Math.floor(this._virtualStart/this._itemsPerRow)*this._physicalAverage;for(var z=this._physicalStart,I=this._virtualStart,J=0,r=this._hiddenContentSize;I<a&&
J<=r;)J+=this._getPhysicalSizeIncrement(z),z=(z+1)%this._physicalCount,I++;this._updateScrollerSize(!0);this._positionItems();this._resetScrollPosition(this._physicalTop+this._scrollOffset+J);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)},_.iN)},
selectItem:function(a){return this.selectIndex(this.items.indexOf(a))},
selectIndex:function(a){if(!(a<0||a>=this._virtualCount)){!this.multiSelection&&this.selectedItem&&this.clearSelection();if(this._isIndexRendered(a)){var z=this.modelForElement(this._physicalItems[this._getPhysicalIndex(a)]);z&&(z[this.selectedAs]=!0);this.updateSizeForIndex(a)}this.$.selector.selectIndex(a)}},
deselectItem:function(a){return this.deselectIndex(this.items.indexOf(a))},
deselectIndex:function(a){a<0||a>=this._virtualCount||(this._isIndexRendered(a)&&(this.modelForElement(this._physicalItems[this._getPhysicalIndex(a)])[this.selectedAs]=!1,this.updateSizeForIndex(a)),this.$.selector.deselectIndex(a))},
toggleSelectionForItem:function(a){return this.toggleSelectionForIndex(this.items.indexOf(a))},
toggleSelectionForIndex:function(a){(this.$.selector.isIndexSelected?this.$.selector.isIndexSelected(a):this.$.selector.isSelected(this.items[a]))?this.deselectIndex(a):this.selectIndex(a)},
clearSelection:function(){this._iterateItems(function(a){this.modelForElement(this._physicalItems[a])[this.selectedAs]=!1});
this.$.selector.clearSelection()},
_selectionEnabledChanged:function(a){(a?this.listen:this.unlisten).call(this,this,"tap","_selectionHandler")},
_selectionHandler:function(a){var z=this.modelForElement(a.target);if(z){var I=_.Q$(a).path[0];a=this._getActiveElement();var J=this._physicalItems[this._getPhysicalIndex(z[this.indexAs])];if(I.localName!=="input"&&I.localName!=="button"&&I.localName!=="select"){I=z.tabIndex;z.tabIndex=-100;var r=a?a.tabIndex:-1;z.tabIndex=I;a&&J!==a&&J.contains(a)&&r!==-100||this.toggleSelectionForItem(z[this.as])}}},
_multiSelectionChanged:function(a){this.clearSelection();this.$.selector.multi=a},
updateSizeForItem:function(a){return this.updateSizeForIndex(this.items.indexOf(a))},
updateSizeForIndex:function(a){if(!this._isIndexRendered(a))return null;this._updateMetrics([this._getPhysicalIndex(a)]);this._positionItems();return null},
_manageFocus:function(){var a=this._focusedVirtualIndex;a>=0&&a<this._virtualCount?this._isIndexRendered(a)?this._restoreFocusedItem():this._createFocusBackfillItem():this._virtualCount>0&&this._physicalCount>0&&(this._focusedPhysicalIndex=this._physicalStart,this._focusedVirtualIndex=this._virtualStart,this._focusedItem=this._physicalItems[this._physicalStart])},
_convertIndexToCompleteRow:function(a){this._itemsPerRow=this._itemsPerRow||1;return this.grid?Math.ceil(a/this._itemsPerRow)*this._itemsPerRow:a},
_isIndexRendered:function(a){return a>=this._virtualStart&&a<=this._virtualEnd},
_isIndexVisible:function(a){return a>=this.firstVisibleIndex&&a<=this.lastVisibleIndex},
_getPhysicalIndex:function(a){return(this._physicalStart+(a-this._virtualStart))%this._physicalCount},
focusItem:function(a){this._focusPhysicalItem(a)},
_focusPhysicalItem:function(a){if(!(a<0||a>=this._virtualCount)){this._restoreFocusedItem();this._isIndexRendered(a)||this.scrollToIndex(a);var z=this._physicalItems[this._getPhysicalIndex(a)],I=this.modelForElement(z),J;I.tabIndex=-100;z.tabIndex===-100&&(J=z);J||(J=_.Q$(z).querySelector('[tabindex="-100"]'));I.tabIndex=0;this._focusedVirtualIndex=a;J&&J.focus()}},
_removeFocusedItem:function(){this._offscreenFocusedItem&&this._itemsParent.removeChild(this._offscreenFocusedItem);this._focusedItem=this._focusBackfillItem=this._offscreenFocusedItem=null;this._focusedPhysicalIndex=this._focusedVirtualIndex=-1},
_createFocusBackfillItem:function(){var a=this._focusedPhysicalIndex;if(!(this._offscreenFocusedItem||this._focusedVirtualIndex<0)){if(!this._focusBackfillItem){var z=this.stamp(null);this._focusBackfillItem=z.root.querySelector("*");this._itemsParent.appendChild(z.root)}this._offscreenFocusedItem=this._physicalItems[a];this.modelForElement(this._offscreenFocusedItem).tabIndex=0;this._physicalItems[a]=this._focusBackfillItem;this._focusedPhysicalIndex=a;this.translate3d(0,"-10000px",0,this._offscreenFocusedItem)}},
_restoreFocusedItem:function(){if(this._offscreenFocusedItem&&!(this._focusedVirtualIndex<0)){this._assignModels();var a=this._focusedPhysicalIndex=this._getPhysicalIndex(this._focusedVirtualIndex),z=this._physicalItems[a];if(z){var I=this.modelForElement(z),J=this.modelForElement(this._offscreenFocusedItem);I[this.as]===J[this.as]?(this._focusBackfillItem=z,I.tabIndex=-1,this._physicalItems[a]=this._offscreenFocusedItem,this.translate3d(0,"-10000px",0,this._focusBackfillItem)):(this._removeFocusedItem(),
this._focusBackfillItem=null);this._offscreenFocusedItem=null}}},
_didFocus:function(a){a=this.modelForElement(a.target);var z=this.modelForElement(this._focusedItem),I=this._offscreenFocusedItem!==null,J=this._focusedVirtualIndex;a&&(z===a?this._isIndexVisible(J)||this.scrollToIndex(J):(this._restoreFocusedItem(),z&&(z.tabIndex=-1),a.tabIndex=0,this._focusedVirtualIndex=J=a[this.indexAs],this._focusedPhysicalIndex=this._getPhysicalIndex(J),this._focusedItem=this._physicalItems[this._focusedPhysicalIndex],I&&!this._offscreenFocusedItem&&this._update()))},
_keydownHandler:function(a){switch(a.keyCode){case 40:this._focusedVirtualIndex<this._virtualCount-1&&a.preventDefault();this._focusPhysicalItem(this._focusedVirtualIndex+(this.grid?this._itemsPerRow:1));break;case 39:this.grid&&this._focusPhysicalItem(this._focusedVirtualIndex+(this._isRTL?-1:1));break;case 38:this._focusedVirtualIndex>0&&a.preventDefault();this._focusPhysicalItem(this._focusedVirtualIndex-(this.grid?this._itemsPerRow:1));break;case 37:this.grid&&this._focusPhysicalItem(this._focusedVirtualIndex+
(this._isRTL?1:-1));break;case 13:this._focusPhysicalItem(this._focusedVirtualIndex),this.selectionEnabled&&this._selectionHandler(a)}},
_clamp:function(a,z,I){return Math.min(I,Math.max(z,a))},
_debounce:function(a,z,I){this._debouncers=this._debouncers||{};this._debouncers[a]=_.EH(this._debouncers[a],I,z.bind(this));_.BG(this._debouncers[a])},
_forwardProperty:function(a,z,I){a._setPendingProperty(z,I)},
_forwardHostPropV2:function(a,z){(this._physicalItems||[]).concat([this._offscreenFocusedItem,this._focusBackfillItem]).forEach(function(I){I&&this.modelForElement(I).forwardHostProp(a,z)},this)},
_notifyInstancePropV2:function(a,z,I){DAi(this.as,z)&&(a=a[this.indexAs],z==this.as&&(this.items[a]=I),this.notifyPath(Bv(this.as,"items."+a,z),I))},
_getStampedChildren:function(){return this._physicalItems},
_forwardInstancePath:function(a,z,I){z.indexOf(this.as+".")===0&&this.notifyPath("items."+a.__key__+"."+z.slice(this.as.length+1),I)},
_forwardParentPath:function(a,z){(this._physicalItems||[]).concat([this._offscreenFocusedItem,this._focusBackfillItem]).forEach(function(I){I&&this.modelForElement(I).notifyPath(a,z)},this)},
_forwardParentProp:function(a,z){(this._physicalItems||[]).concat([this._offscreenFocusedItem,this._focusBackfillItem]).forEach(function(I){I&&(this.modelForElement(I)[a]=z)},this)},
_getActiveElement:function(){var a=this._itemsParent.node.domHost;return _.Q$(a?a.root:document).activeElement},
_scrollTargetChanged:function(a,z){this._oldScrollTarget&&(this._toggleScrollListener(!1,this._oldScrollTarget),this._oldScrollTarget=null);if(z)if(a==="document")this.scrollTarget=this._doc;else if(typeof a==="string"){var I,J;this.scrollTarget=(z=(J=(I=this.domHost)==null?void 0:I.polymerController)!=null?J:this.domHost)&&z.$?z.$[a]:_.Q$(this.ownerDocument).querySelector("#"+a)}else this._isValidScrollTarget()&&(this._oldScrollTarget=a,this._toggleScrollListener(this._shouldHaveListener,a))}});var q1I;var ekl;var aye=function(a,z,I,J){a-=I;z-=J;return Math.sqrt(a*a+z*z)},jvv=window.performance&&window.performance.now?window.performance.now.bind(window.performance):Date.now;
XDO.prototype={get boundingRect(){return this.element.getBoundingClientRect()}};var TG0=function(a){a.maxRadius=0;a.mouseDownStart=0;a.mouseUpStart=0;a.xStart=0;a.yStart=0;a.xEnd=0;a.yEnd=0;a.containerMetrics=new XDO(a.element)};
dkG.prototype={get recenters(){return this.element.recenters},get center(){return this.element.center},get mouseDownElapsed(){if(!this.mouseDownStart)return 0;var a=jvv()-this.mouseDownStart;this.mouseUpStart&&(a-=this.mouseUpElapsed);return a},get mouseUpElapsed(){return this.mouseUpStart?jvv()-this.mouseUpStart:0},get mouseDownElapsedSeconds(){return this.mouseDownElapsed/1E3},get mouseUpElapsedSeconds(){return this.mouseUpElapsed/1E3},get mouseInteractionSeconds(){return this.mouseDownElapsedSeconds+
this.mouseUpElapsedSeconds},get initialOpacity(){return this.element.initialOpacity},get opacityDecayVelocity(){return this.element.opacityDecayVelocity},get radius(){var a=Math.min(Math.sqrt(this.containerMetrics.width*this.containerMetrics.width+this.containerMetrics.height*this.containerMetrics.height),300)*1.1+5;return Math.min(Math.abs(a*(1-Math.pow(80,-(this.mouseInteractionSeconds/(1.1-a/300*.2))))),this.maxRadius,300)},get opacity(){return this.mouseUpStart?Math.max(0,this.initialOpacity-
this.mouseUpElapsedSeconds*this.opacityDecayVelocity):this.initialOpacity},get outerOpacity(){return Math.max(0,Math.min(this.mouseUpElapsedSeconds*.3,this.opacity))},get isOpacityFullyDecayed(){return this.opacity===0&&this.radius>=Math.min(this.maxRadius,300)},get isRestingAtMaxRadius(){return this.opacity>=this.initialOpacity&&this.radius>=Math.min(this.maxRadius,300)},get isAnimationComplete(){return this.mouseUpStart?this.isOpacityFullyDecayed:this.isRestingAtMaxRadius},get translationFraction(){return Math.min(1,
this.radius/this.containerMetrics.size*2/Math.sqrt(2))},get xNow(){return this.xEnd?this.xStart+this.translationFraction*(this.xEnd-this.xStart):this.xStart},get yNow(){return this.yEnd?this.yStart+this.translationFraction*(this.yEnd-this.yStart):this.yStart},get isMouseDown(){return this.mouseDownStart&&!this.mouseUpStart},draw:function(){this.wave.style.opacity=this.opacity;var a=this.radius/(this.containerMetrics.size/2);var z=this.xNow-this.containerMetrics.width/2;var I=this.yNow-this.containerMetrics.height/
2;this.waveContainer.style.webkitTransform="translate("+z+"px, "+I+"px)";this.waveContainer.style.transform="translate3d("+z+"px, "+I+"px, 0)";this.wave.style.webkitTransform="scale("+a+","+a+")";this.wave.style.transform="scale3d("+a+","+a+",1)"},
downAction:function(a){var z=this.containerMetrics.width/2,I=this.containerMetrics.height/2;TG0(this);this.mouseDownStart=jvv();this.center?(this.xStart=z,this.yStart=I):(this.xStart=a?a.detail.x-this.containerMetrics.boundingRect.left:this.containerMetrics.width/2,this.yStart=a?a.detail.y-this.containerMetrics.boundingRect.top:this.containerMetrics.height/2);this.recenters&&(this.xEnd=z,this.yEnd=I);a=this.containerMetrics;z=this.xStart;I=this.yStart;this.maxRadius=Math.max(aye(z,I,0,0),aye(z,I,
a.width,0),aye(z,I,0,a.height),aye(z,I,a.width,a.height));this.waveContainer.style.top=(this.containerMetrics.height-this.containerMetrics.size)/2+"px";this.waveContainer.style.left=(this.containerMetrics.width-this.containerMetrics.size)/2+"px";this.waveContainer.style.width=this.containerMetrics.size+"px";this.waveContainer.style.height=this.containerMetrics.size+"px"},
upAction:function(){this.isMouseDown&&(this.mouseUpStart=jvv())},
remove:function(){_.Q$(_.Q$(this.waveContainer).parentNode).removeChild(this.waveContainer)}};
_.vK({_template:function(){if(ekl!==void 0)return ekl;var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:tp-yt-paper-ripple--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,third_party.javascript.youtube_components.tp_yt_paper_ripple.tp.yt.paper.ripple.css.js--\x3e<div id="background" class="style-scope tp-yt-paper-ripple"></div>\n<div id="waves" class="style-scope tp-yt-paper-ripple"></div>\n');
a.content.insertBefore(_.w().content.cloneNode(!0),a.content.firstChild);var z=a.content,I=z.insertBefore;q1I===void 0&&(q1I=document.createElement("template"));var J=q1I;I.call(z,J.content.cloneNode(!0),a.content.firstChild);return ekl=a},
is:"tp-yt-paper-ripple",behaviors:[_.V_],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(){_.Q$(this).parentNode.nodeType==11?this.keyEventTarget=_.Q$(this).getOwnerRoot().host:this.keyEventTarget=_.Q$(this).parentNode;var a=this.keyEventTarget;this.listen(a,"up","uiUpAction");this.listen(a,"down","uiDownAction")},
detached:function(){this.unlisten(this.keyEventTarget,"up","uiUpAction");this.unlisten(this.keyEventTarget,"down","uiDownAction");this.keyEventTarget=null;this.ripples.forEach(function(a){a.remove()});
this.ripples.length=0;this._setAnimating(!1)},
get shouldKeepAnimating(){for(var a=0;a<this.ripples.length;++a)if(!this.ripples[a].isAnimationComplete)return!0;return!1},simulatedRipple:function(){this.downAction(null);this.async(function(){this.upAction()},1)},
uiDownAction:function(a){this.noink||this.downAction(a)},
downAction:function(a){this.holdDown&&this.ripples.length>0||(this.addRipple().downAction(a),this._animating||(this._animating=!0,this.animate()))},
uiUpAction:function(a){this.noink||this.upAction(a)},
upAction:function(a){this.holdDown||(this.ripples.forEach(function(z){z.upAction(a)}),this._animating=!0,this.animate())},
onAnimationComplete:function(){for(var a=0;a<this.ripples.length;++a){var z=this.ripples[a];z.isOpacityFullyDecayed&&!z.isRestingAtMaxRadius&&this.removeRipple(z)}this._animating=!1;this.$.background.style.backgroundColor="";this.fire("transitionend")},
addRipple:function(){var a=new dkG(this);_.Q$(this.$.waves).appendChild(a.waveContainer);this.$.background.style.backgroundColor=a.color;this.ripples.push(a);this._setAnimating(!0);return a},
removeRipple:function(a){var z=this.ripples.indexOf(a);z<0||(this.ripples.splice(z,1),a.remove(),this.ripples.length||this._setAnimating(!1))},
animate:function(){if(this._animating){var a;for(a=0;a<this.ripples.length;++a){var z=this.ripples[a];z.draw();this.$.background.style.opacity=z.outerOpacity;z.isOpacityFullyDecayed&&!z.isRestingAtMaxRadius&&this.removeRipple(z)}if(this.shouldKeepAnimating)window.requestAnimationFrame(this._boundAnimate);else this.onAnimationComplete()}},
animateRipple:function(){return this.animate()},
_onEnterKeydown:function(){this.uiDownAction();this.async(this.uiUpAction,1)},
_onSpaceKeydown:function(){this.uiDownAction()},
_onSpaceKeyup:function(){this.uiUpAction()},
_holdDownChanged:function(a,z){z!==void 0&&(a?this.downAction():this.upAction())}});var cY={properties:{noink:{type:Boolean,observer:"_noinkChanged"},_rippleContainer:{type:Object},_ripple:{type:Object}},_buttonStateChanged:function(){this.focused&&this.ensureRipple()},
_downHandler:function(a){S_._downHandler.call(this,a);this.pressed&&this.ensureRipple(a)},
ensureRipple:function(a){if(!this.hasRipple()){this._ripple=this._createRipple();this._ripple.noink=this.noink;var z=this._rippleContainer||this.root;z&&_.Q$(z).appendChild(this._ripple);if(a){z=_.Q$(this._rippleContainer||this);var I=_.Q$(a).rootTarget;z.deepContains(I)&&this._ripple.uiDownAction(a)}}},
getRipple:function(){this.ensureRipple();return this._ripple},
hasRipple:function(){return!!this._ripple},
_createRipple:function(){return document.createElement("tp-yt-paper-ripple")},
_noinkChanged:function(a){this.hasRipple()&&(this._ripple.noink=a)}};var zOO={properties:{elevation:{type:Number,reflectToAttribute:!0,readOnly:!0}},observers:["_calculateElevation(focused, disabled, active, pressed, receivedFocusFromKeyboard)","_computeKeyboardClass(receivedFocusFromKeyboard)"],hostAttributes:{role:"button",tabindex:"0",animated:!0},_calculateElevation:function(){var a=1;this.disabled?a=0:this.active||this.pressed?a=4:this.receivedFocusFromKeyboard&&(a=3);this._setElevation(a)},
_computeKeyboardClass:function(a){this.toggleClass("keyboard-focus",a)},
_spaceKeyDownHandler:function(a){S_._spaceKeyDownHandler.call(this,a);this.hasRipple()&&this.getRipple().ripples.length<1&&this._ripple.uiDownAction()},
_spaceKeyUpHandler:function(a){S_._spaceKeyUpHandler.call(this,a);this.hasRipple()&&this._ripple.uiUpAction()}},IyO=[trw,
_.Q_,cY,zOO];_.JIJ={observers:["_focusedChanged(receivedFocusFromKeyboard)"],_focusedChanged:function(a){a&&this.ensureRipple();this.hasRipple()&&(this._ripple.holdDown=a)},
_createRipple:function(){var a=cY._createRipple();a.id="ink";a.setAttribute("center","");a.classList.add("circle");return a}};
_.rIj=[trw,_.Q_,cY,_.JIJ];_.Pgw=[_.rIj,Bif,{_checkedChanged:function(){Ecv._checkedChanged.call(this);this.hasRipple()&&(this.checked?this._ripple.setAttribute("checked",""):this._ripple.removeAttribute("checked"))},
_buttonStateChanged:function(){cY._buttonStateChanged.call(this);!this.disabled&&this.isAttached&&(this.checked=this.active)}}];var Zhl;var Cgl;var N0X=function(){};
_.Z=N0X.prototype;_.Z.registered=function(){};
_.Z.addOwnKeyBinding=function(){};
_.Z.removeOwnKeyBindings=function(){};
_.Z.keyboardEventMatchesKeys=function(){};
_.Z._collectKeyBindings=function(){};
_.Z._prepKeyBindings=function(){};
_.Z._addKeyBinding=function(){};
_.Z._resetKeyEventListeners=function(){};
_.Z._listenKeyEventListeners=function(){};
_.Z._unlistenKeyEventListeners=function(){};
_.Z._onKeyBindingEvent=function(){};
_.Z._triggerKeyHandler=function(){};
_.Z._tapHandler=function(){};
_.Z._focusChanged=function(){};
_.Z._detectKeyboardFocus=function(){};
_.Z._userActivate=function(){};
_.Z._upHandler=function(){};
_.Z._asyncClick=function(){};
_.Z._pressedChanged=function(){};
_.Z._ariaActiveAttributeChanged=function(){};
_.Z._activeChanged=function(){};
_.Z._controlStateChanged=function(){};
_.Z._changedButtonState=function(){};
_.Z._focusBlurHandler=function(){};
_.Z._disabledChanged=function(){};
_.Z._changedControlState=function(){};
_.Z._buttonStateChanged=function(){};
_.Z._downHandler=function(){};
_.Z.ensureRipple=function(){};
_.Z.getRipple=function(){};
_.Z.hasRipple=function(){};
_.Z._createRipple=function(){};
_.Z._noinkChanged=function(){};
_.Z._computeKeyboardClass=function(){};
_.Z._spaceKeyDownHandler=function(){};
_.Z._spaceKeyUpHandler=function(){};
_.Z._setPressed=function(){};
_.Z._setPointerDown=function(){};
_.Z._setReceivedFocusFromKeyboard=function(){};
_.Z._setFocused=function(){};
_.Z._setElevation=function(){};
N0X=_.vK({_template:function(){if(Cgl!==void 0)return Cgl;var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:tp-yt-paper-button--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,third_party.javascript.youtube_components.tp_yt_paper_button.tp.yt.paper.button.css.js--\x3e<slot class="style-scope tp-yt-paper-button"></slot>\n');a.content.insertBefore(_.w().content.cloneNode(!0),a.content.firstChild);
var z=a.content,I=z.insertBefore;Zhl===void 0&&(Zhl=document.createElement("template"));var J=Zhl;I.call(z,J.content.cloneNode(!0),a.content.firstChild);return Cgl=a},
is:"tp-yt-paper-button",hostAttributes:{"style-target":"host"},behaviors:[IyO],properties:{raised:{type:Boolean,reflectToAttribute:!0,value:!1,observer:"_calculateElevation"}},_calculateElevation:function(){this.raised?zOO._calculateElevation.apply(this):this._setElevation(0)}});var tiX;var uxw;var EKw={hostAttributes:{role:"dialog",tabindex:"-1"},properties:{modal:{type:Boolean,value:!1},modern:{type:Boolean,value:!1,reflectToAttribute:!0},isAriaModal:{type:Boolean,value:!1},__readied:{type:Boolean,value:!1}},observers:["_modalChanged(modal, __readied)","isAriaModalChanged(isAriaModal)"],listeners:{tap:"_onDialogTap",click:"_onDialogClickWrapped"},_onDialogTap:function(a){_.K("dialog_behavior_no_tap_killswitch")&&this._onDialogClick(a)},
_onDialogClickWrapped:function(a){_.K("dialog_behavior_no_tap_killswitch")||this._onDialogClick(a)},
ready:function(){this.__prevNoCancelOnOutsideClick=this.noCancelOnOutsideClick;this.__prevNoCancelOnEscKey=this.noCancelOnEscKey;this.__prevWithBackdrop=this.withBackdrop;this.__readied=!0},
_modalChanged:function(a,z){z&&(a?(this.__prevNoCancelOnOutsideClick=this.noCancelOnOutsideClick,this.__prevNoCancelOnEscKey=this.noCancelOnEscKey,this.__prevWithBackdrop=this.withBackdrop,this.withBackdrop=this.noCancelOnEscKey=this.noCancelOnOutsideClick=!0,this.setAttribute("aria-modal","true")):(this.noCancelOnOutsideClick=this.noCancelOnOutsideClick&&this.__prevNoCancelOnOutsideClick,this.noCancelOnEscKey=this.noCancelOnEscKey&&this.__prevNoCancelOnEscKey,this.withBackdrop=this.withBackdrop&&
this.__prevWithBackdrop))},
isAriaModalChanged:function(a){if(a){var z;((z=this.hostElement)!=null?z:this).setAttribute("aria-modal","true")}else{var I;((I=this.hostElement)!=null?I:this).removeAttribute("aria-modal")}},
_updateClosingReasonConfirmed:function(a){this.closingReason=this.closingReason||{};this.closingReason.confirmed=a},
_onDialogClick:function(a){for(var z=_.Q$(a).path,I=0,J,r=z.indexOf((J=this.hostElement)!=null?J:this);I<r;I++)if(J=z[I],J.hasAttribute&&(J.hasAttribute("dialog-dismiss")||J.hasAttribute("dialog-confirm"))){this._updateClosingReasonConfirmed(J.hasAttribute("dialog-confirm"));this.close();a.stopPropagation();break}}},B0i=[_.Mb,
EKw];var gKl=document.createElement("template");_.V(gKl,'<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(gKl.content);var Ohf=document.createElement("template");_.V(Ohf,'<custom-style><style is="custom-style"></style></custom-style>');document.head.appendChild(Ohf.content);_.vK({_template:function(){if(uxw!==void 0)return uxw;var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:tp-yt-paper-dialog--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,third_party.javascript.youtube_components.tp_yt_paper_dialog.tp.yt.paper.dialog.css.js--\x3e<slot class="style-scope tp-yt-paper-dialog"></slot>\n');a.content.insertBefore(_.w().content.cloneNode(!0),a.content.firstChild);
var z=a.content,I=z.insertBefore;tiX===void 0&&(tiX=document.createElement("template"));var J=tiX;I.call(z,J.content.cloneNode(!0),a.content.firstChild);return uxw=a},
is:"tp-yt-paper-dialog",hostAttributes:{"style-target":"host"},behaviors:[B0i,HUo],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 fyI;var AIv;_.vK({_template:function(){if(AIv!==void 0)return AIv;var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:tp-yt-paper-dialog-scrollable--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,third_party.javascript.youtube_components.tp_yt_paper_dialog_scrollable.tp.yt.paper.dialog.scrollable.css.js--\x3e<div id="scrollable" class="scrollable style-scope tp-yt-paper-dialog-scrollable" on-scroll="updateScrollState">\n  <slot class="style-scope tp-yt-paper-dialog-scrollable"></slot>\n</div>\n');
a.content.insertBefore(_.w().content.cloneNode(!0),a.content.firstChild);var z=a.content,I=z.insertBefore;fyI===void 0&&(fyI=document.createElement("template"));var J=fyI;I.call(z,J.content.cloneNode(!0),a.content.firstChild);return AIv=a},
is:"tp-yt-paper-dialog-scrollable",properties:{dialogElement:{type:Object}},get scrollTarget(){return this.$.scrollable},ready:function(){this._ensureTarget();this.classList.add("no-padding")},
attached:function(){this._ensureTarget();requestAnimationFrame(this.updateScrollState.bind(this))},
updateScrollState:function(){this.toggleClass("is-scrolled",this.scrollTarget.scrollTop>0);this.toggleClass("can-scroll",this.scrollTarget.offsetHeight<this.scrollTarget.scrollHeight);this.toggleClass("scrolled-to-bottom",this.scrollTarget.scrollTop+this.scrollTarget.offsetHeight>=this.scrollTarget.scrollHeight)},
_ensureTarget:function(){var a,z,I;if(((a=window.ShadyDOM)==null?void 0:a.noPatch)!==!0&&((z=window.ShadyDOM)==null?void 0:z.noPatch)!=="on-demand"||((I=this.__shady_parentNode)==null?void 0:I.nodeName)!=="#document-fragment")this.dialogElement=this.dialogElement||this.parentElement;this.dialogElement&&this.dialogElement.behaviors&&this.dialogElement.behaviors.indexOf(EKw)>=0?(this.dialogElement.sizingTarget=this.scrollTarget,this.scrollTarget.classList.remove("fit")):this.dialogElement&&this.scrollTarget.classList.add("fit")}});var svG=_.kK(['<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>']),nKE=_.Bgf(svG);nKE.setAttribute("style","display: none;");document.head.appendChild(nKE.content);var K3I;var F3J;var HhO;var bhj;_.vK({is:"tp-yt-paper-menu-grow-height-animation",_template:null,behaviors:[dh],configure:function(a){var z=a.node,I=z.getBoundingClientRect().height;return this._effect=new KeyframeEffect(z,[{height:I/2+"px"},{height:I+"px"}],this.timingFromConfig(a))}});
_.vK({is:"tp-yt-paper-menu-grow-width-animation",_template:null,behaviors:[dh],configure:function(a){var z=a.node,I=z.getBoundingClientRect().width;return this._effect=new KeyframeEffect(z,[{width:I/2+"px"},{width:I+"px"}],this.timingFromConfig(a))}});
_.vK({is:"tp-yt-paper-menu-shrink-width-animation",_template:null,behaviors:[dh],configure:function(a){var z=a.node,I=z.getBoundingClientRect().width;return this._effect=new KeyframeEffect(z,[{width:I+"px"},{width:I-I/20+"px"}],this.timingFromConfig(a))}});
_.vK({is:"tp-yt-paper-menu-shrink-height-animation",_template:null,behaviors:[dh],configure:function(a){var z=a.node,I=z.getBoundingClientRect().height;this.setPrefixedProperty(z,"transformOrigin","0 0");return this._effect=new KeyframeEffect(z,[{height:I+"px",transform:"translateY(0)"},{height:I/2+"px",transform:"translateY(-20px)"}],this.timingFromConfig(a))}});var qb={ANIMATION_CUBIC_BEZIER:"cubic-bezier(.3,.95,.5,1)",MAX_ANIMATION_TIME_MS:400},hOl=function(){};
_.Z=hOl.prototype;_.Z.registered=function(){};
_.Z.addOwnKeyBinding=function(){};
_.Z.removeOwnKeyBindings=function(){};
_.Z.keyboardEventMatchesKeys=function(){};
_.Z._collectKeyBindings=function(){};
_.Z._prepKeyBindings=function(){};
_.Z._addKeyBinding=function(){};
_.Z._resetKeyEventListeners=function(){};
_.Z._listenKeyEventListeners=function(){};
_.Z._unlistenKeyEventListeners=function(){};
_.Z._onKeyBindingEvent=function(){};
_.Z._triggerKeyHandler=function(){};
_.Z._focusBlurHandler=function(){};
_.Z._changedControlState=function(){};
_.Z._setFocused=function(){};
hOl=_.vK({_template:function(){if(bhj!==void 0)return bhj;var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:tp-yt-paper-menu-button--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,third_party.javascript.youtube_components.tp_yt_paper_menu_button.tp.yt.paper.menu.button.css.js--\x3e<div id="trigger" on-tap="toggle" class="style-scope tp-yt-paper-menu-button">\n  <slot name="dropdown-trigger" class="style-scope tp-yt-paper-menu-button"></slot>\n</div>\n\n<tp-yt-iron-dropdown id="dropdown" opened="{{opened}}" horizontal-align="[[horizontalAlign]]" vertical-align="[[verticalAlign]]" dynamic-align="[[dynamicAlign]]" horizontal-offset="[[horizontalOffset]]" vertical-offset="[[verticalOffset]]" no-overlap="[[noOverlap]]" open-animation-config="[[openAnimationConfig]]" close-animation-config="[[closeAnimationConfig]]" no-animations="[[noAnimations]]" focus-target="[[_dropdownContent]]" allow-outside-scroll="[[allowOutsideScroll]]" restore-focus-on-close="[[restoreFocusOnClose]]" on-iron-overlay-canceled="__onIronOverlayCanceled" expand-sizing-target-for-scrollbars="[[expandSizingTargetForScrollbars]]" 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');
a.content.insertBefore(_.w().content.cloneNode(!0),a.content.firstChild);var z=a.content,I=z.insertBefore;HhO===void 0&&(HhO=document.createElement("template"));var J=HhO;I.call(z,J.content.cloneNode(!0),a.content.firstChild);return bhj=a},
is:"tp-yt-paper-menu-button",behaviors:[_.V_,_.Q_],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:qb.ANIMATION_CUBIC_BEZIER}},{name:"tp-yt-paper-menu-grow-height-animation",timing:{delay:100,duration:275,easing:qb.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:qb.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 a=_.Q$(this.$.content).getDistributedNodes(),z=0,I=a.length;z<I;z++)if(a[z].nodeType===Node.ELEMENT_NODE)return a[z]},toggle:function(){this.opened?
this.close():this.open()},
open:function(){this.disabled||this.$.dropdown.open()},
close:function(){this.$.dropdown.close()},
_onIronSelect:function(){this.ignoreSelect||this.close()},
_onIronActivate:function(){this.closeOnActivate&&this.close()},
_openedChanged:function(a,z){a?(this._dropdownContent=this.contentElement,this.fire("paper-dropdown-open")):z!=null&&this.fire("paper-dropdown-close")},
_disabledChanged:function(a){_.Q_._disabledChanged.apply(this,arguments);a&&this.opened&&this.close()},
__onIronOverlayCanceled:function(a){var z=this.$.trigger;_.Q$(a.detail).path.indexOf(z)>-1&&a.preventDefault()}});
Object.keys(qb).forEach(function(a){hOl[a]=qb[a]});var ViJ=_.iY.IronButtonState,Qvo=(0,_.Q1)(HTMLElement);
_.vK({_template:function(){if(F3J!==void 0)return F3J;var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:tp-yt-paper-dropdown-menu-light--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,third_party.javascript.youtube_components.tp_yt_paper_dropdown_menu_light.tp.yt.paper.dropdown.menu.light.css.js--\x3e<tp-yt-paper-menu-button id="menuButton" vertical-align="[[verticalAlign]]" horizontal-align="[[horizontalAlign]]" vertical-offset="[[_computeMenuVerticalOffset(noLabelFloat, verticalOffset)]]" disabled="[[disabled]]" no-animations="[[noAnimations]]" on-iron-select="_onIronSelect" on-iron-deselect="_onIronDeselect" opened="{{opened}}" close-on-activate="" allow-outside-scroll="[[allowOutsideScroll]]" class="style-scope tp-yt-paper-dropdown-menu-light">\n  \n  <div id="dropdown-trigger" class="dropdown-trigger style-scope tp-yt-paper-dropdown-menu-light" slot="dropdown-trigger" role="button" tabindex="0" aria-haspopup="listbox">\n    <label class$="[[_computeLabelClass(noLabelFloat,alwaysFloatLabel,hasContent)]] style-scope tp-yt-paper-dropdown-menu-light" style-target="label">\n      [[label]]\n    </label>\n    <div id="input" tabindex="-1" style-target="input" class="style-scope tp-yt-paper-dropdown-menu-light">\u00a0</div>\n    <tp-yt-iron-icon icon="paper-dropdown-menu:arrow-drop-down" class="style-scope tp-yt-paper-dropdown-menu-light"></tp-yt-iron-icon>\n    <span class="error style-scope tp-yt-paper-dropdown-menu-light">[[errorMessage]]</span>\n  </div>\n  <slot id="content" name="dropdown-content" slot="dropdown-content" class="style-scope tp-yt-paper-dropdown-menu-light"></slot>\n</tp-yt-paper-menu-button>\n');a.content.insertBefore(_.w().content.cloneNode(!0),
a.content.firstChild);var z=a.content,I=z.insertBefore;K3I===void 0&&(K3I=document.createElement("template"));var J=K3I;I.call(z,J.content.cloneNode(!0),a.content.firstChild);return F3J=a},
is:"tp-yt-paper-dropdown-menu-light",hostAttributes:{"style-target":"host"},behaviors:[ViJ,_.Q_,cY,_.xE,_.$E],properties:{selectedItemLabel:{type:String,notify:!0,readOnly:!0},selectedItem:{type:Object,notify:!0,readOnly:!0},value:{type:String,notify:!0,observer:"_valueChanged"},label:{type:String},placeholder:{type:String},opened:{type:Boolean,notify:!0,value:!1,observer:"_openedChanged"},allowOutsideScroll:{type:Boolean,value:!1},noLabelFloat:{type:Boolean,value:!1,reflectToAttribute:!0},alwaysFloatLabel:{type:Boolean,
value:!1},noAnimations:{type:Boolean,value:!1},horizontalAlign:{type:String,value:"right"},verticalAlign:{type:String,value:"top"},verticalOffset:Number,hasContent:{type:Boolean,readOnly:!0}},listeners:{tap:"_onTap"},keyBindings:{"up down":"open",esc:"close"},observers:["_selectedItemChanged(selectedItem)"],_attachDom:function(a){var z=(0,_.sc)(this);z.attachShadow({mode:"open",delegatesFocus:!0,shadyUpgradeFragment:a});z.shadowRoot.appendChild(a);return Qvo.prototype._attachDom.call(this,a)},
focus:function(){this.$["dropdown-trigger"].focus()},
attached:function(){var a=this.contentElement;a&&a.selectedItem&&this._setSelectedItem(a.selectedItem)},
get contentElement(){for(var a=_.Q$(this.$.content).getDistributedNodes(),z=0,I=a.length;z<I;z++)if(a[z].nodeType===Node.ELEMENT_NODE)return a[z]},open:function(){this.$.menuButton.open()},
close:function(){this.$.menuButton.close()},
_onIronSelect:function(a){this._setSelectedItem(a.detail.item)},
_onIronDeselect:function(){this._setSelectedItem(null)},
_onTap:function(a){_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(a)===this&&this.open()},
_selectedItemChanged:function(a){var z="";a?z=a.label||a.getAttribute("label")||a.textContent.trim():z="";this.value=z;this._setSelectedItemLabel(z)},
_computeMenuVerticalOffset:function(a,z){return z?z:a?-4:8},
_getValidity:function(){return this.disabled||!this.required||this.required&&!!this.value},
_openedChanged:function(){var a=this.opened?"true":"false",z=this.contentElement;z&&z.setAttribute("aria-expanded",a)},
_computeLabelClass:function(a,z,I){var J="label";if(a)I&&(J+=" label-is-hidden");else if(I||z)J+=" label-is-floating";return J},
_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 SJe;var ihw;_.vK({is:"tp-yt-paper-icon-button",_template:function(){if(ihw!==void 0)return ihw;var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:tp-yt-paper-icon-button--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,third_party.javascript.youtube_components.tp_yt_paper_icon_button.tp.yt.paper.icon.button.css.js--\x3e<tp-yt-iron-icon id="icon" src="[[src]]" icon="[[icon]]" alt$="[[alt]]" class="style-scope tp-yt-paper-icon-button"></tp-yt-iron-icon>\n');
a.content.insertBefore(_.w().content.cloneNode(!0),a.content.firstChild);var z=a.content,I=z.insertBefore;SJe===void 0&&(SJe=document.createElement("template"));var J=SJe;I.call(z,J.content.cloneNode(!0),a.content.firstChild);return ihw=a},
hostAttributes:{role:"button",tabindex:"0","style-target":"host"},behaviors:[_.rIj],properties:{src:{type:String},icon:{type:String},alt:{type:String,observer:"_altChanged"}},_altChanged:function(a,z){var I=this.getAttribute("aria-label");I&&z!=I||this.setAttribute("aria-label",a)}});var xlv;var vKJ;_.e_=[trw,_.Q_,{hostAttributes:{role:"option",tabindex:"0"}}];_.vK({_template:function(){if(vKJ!==void 0)return vKJ;var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:tp-yt-paper-icon-item--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,third_party.javascript.youtube_components.tp_yt_paper_icon_item.tp.yt.paper.icon.item.css.js--\x3e<div id="contentIcon" class="content-icon style-scope tp-yt-paper-icon-item">\n  <slot name="item-icon" class="style-scope tp-yt-paper-icon-item"></slot>\n</div>\n<slot class="style-scope tp-yt-paper-icon-item"></slot>\n');
a.content.insertBefore(_.w().content.cloneNode(!0),a.content.firstChild);var z=a.content,I=z.insertBefore;xlv===void 0&&(xlv=document.createElement("template"));var J=xlv;I.call(z,J.content.cloneNode(!0),a.content.firstChild);return vKJ=a},
is:"tp-yt-paper-icon-item",hostAttributes:{"style-target":"host"},behaviors:[_.e_]});var GOJ;var $li;var XqG={attached:function(){this.fire("addon-attached")},
update:function(){}};var T0I=1,dle=1,W3e=1,oKE=[_.Q_,_.V_,{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();!rn&&this.inputElement&&this._typesThatHaveText.indexOf(this.inputElement.type)!==-1&&(this.alwaysFloatLabel=!0)},
_appendStringWithSpace:function(a,z){a?a=a+" "+z:a=z;return a},
_onAddonAttached:function(a){a=_.Q$(a).rootTarget;if(a.id)this._ariaDescribedBy=this._appendStringWithSpace(this._ariaDescribedBy,a.id);else{var z="paper-input-add-on-"+dle++;a.id=z;this._ariaDescribedBy=this._appendStringWithSpace(this._ariaDescribedBy,z)}},
validate:function(){return this.inputElement.validate()},
_focusBlurHandler:function(a){_.Q_._focusBlurHandler.call(this,a);this.focused&&!this._shiftTabPressed&&this._focusableElement&&this._focusableElement.focus()},
_onShiftTabDown:function(){var a=this.getAttribute("tabindex");this._shiftTabPressed=!0;this.setAttribute("tabindex","-1");this.async(function(){this.setAttribute("tabindex",a);this._shiftTabPressed=!1},1)},
_handleAutoValidate:function(){this.autoValidate&&this.validate()},
updateValueAndPreserveCaret:function(a){try{var z=this.inputElement.selectionStart;this.value=a;this.inputElement.selectionStart=z;this.inputElement.selectionEnd=z}catch(I){this.value=a}},
_computeAlwaysFloatLabel:function(a,z){return z||a},
_updateAriaLabelledBy:function(){var a=_.Q$(this.root).querySelector("label");if(a){if(a.id)var z=a.id;else z="paper-input-label-"+T0I++,a.id=z;this._ariaLabelledBy=z}else this._ariaLabelledBy=""},
_generateInputId:function(){this._inputId&&this._inputId!==""||(this._inputId="input-"+W3e++)},
_onChange:function(a){this.shadowRoot&&this.fire(a.type,{sourceEvent:a},{node:this,bubbles:a.bubbles,cancelable:a.cancelable})},
_autofocusChanged:function(){if(this.autofocus&&this._focusableElement){var a=document.activeElement;a instanceof HTMLElement&&a!==document.body&&a!==document.documentElement||this._focusableElement.focus()}}}];var Ulw;var DlI;_.vK({_template:function(){if(DlI!==void 0)return DlI;var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:tp-yt-paper-input-char-counter--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,third_party.javascript.youtube_components.tp_yt_paper_input_char_counter.tp.yt.paper.input.char.counter.css.js--\x3e<span class="style-scope tp-yt-paper-input-char-counter">[[_charCounterStr]]</span>\n');
a.content.insertBefore(_.w().content.cloneNode(!0),a.content.firstChild);var z=a.content,I=z.insertBefore;Ulw===void 0&&(Ulw=document.createElement("template"));var J=Ulw;I.call(z,J.content.cloneNode(!0),a.content.firstChild);return DlI=a},
is:"tp-yt-paper-input-char-counter",hostAttributes:{"style-target":"host"},behaviors:[XqG],properties:{_charCounterStr:{type:String,value:"0"}},update:function(a){if(a.inputElement){a.value=a.value||"";var z=a.value.toString().length.toString();a.inputElement.hasAttribute("maxlength")&&(z+="/"+a.inputElement.getAttribute("maxlength"));this._charCounterStr=z}}});var ROj;var L3w;_.vK({_template:function(){if(L3w!==void 0)return L3w;var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:tp-yt-paper-input-container--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,third_party.javascript.youtube_components.tp_yt_paper_input_container.tp.yt.paper.input.container.css.js--\x3e<div class="floated-label-placeholder style-scope tp-yt-paper-input-container" aria-hidden="true" hidden="[[noLabelFloat]]">\n  \u00a0\n</div>\n\n<div class="input-wrapper style-scope tp-yt-paper-input-container">\n  <span class="prefix style-scope tp-yt-paper-input-container"><slot name="prefix" class="style-scope tp-yt-paper-input-container"></slot></span>\n\n  <div class$="[[_computeInputContentClass(noLabelFloat,alwaysFloatLabel,focused,invalid,_inputHasContent)]] style-scope tp-yt-paper-input-container" id="labelAndInputContainer">\n    <slot name="label" class="style-scope tp-yt-paper-input-container"></slot>\n    <slot name="input" on-slotchange="onInputSlotChanged" class="style-scope tp-yt-paper-input-container"></slot><slot name="after-input" class="style-scope tp-yt-paper-input-container"></slot>\n  </div>\n\n  <span class="suffix style-scope tp-yt-paper-input-container"><slot name="suffix" class="style-scope tp-yt-paper-input-container"></slot></span>\n</div>\n\n<div class$="[[_computeUnderlineClass(focused,invalid)]] style-scope tp-yt-paper-input-container">\n  <div class="unfocused-line style-scope tp-yt-paper-input-container"></div>\n  <div class="focused-line style-scope tp-yt-paper-input-container"></div>\n</div>\n\n<div class$="[[_computeAddOnContentClass(focused,invalid)]] style-scope tp-yt-paper-input-container">\n  <slot name="add-on" class="style-scope tp-yt-paper-input-container"></slot>\n</div>\n');
a.content.insertBefore(_.w().content.cloneNode(!0),a.content.firstChild);var z=a.content,I=z.insertBefore;ROj===void 0&&(ROj=document.createElement("template"));var J=ROj;I.call(z,J.content.cloneNode(!0),a.content.firstChild);return L3w=a},
is:"tp-yt-paper-input-container",hostAttributes:{"style-target":"host"},properties:{noLabelFloat:{type:Boolean,value:!1},alwaysFloatLabel:{type:Boolean,value:!1},attrForValue:{type:String,value:"bind-value"},autoValidate:{type:Boolean,value:!1},invalid:{observer:"_invalidChanged",type:Boolean,value:!1},focused:{readOnly:!0,type:Boolean,value:!1,notify:!0},noUnfloatedLabelError:{type:Boolean,value:!1},_addons:{type:Array},_inputHasContent:{type:Boolean,value:!1},_inputSelector:{type:String,value:"input,tp-yt-iron-input,textarea,.paper-input-input"},
_boundOnFocus:{type:Function,value:function(){return this._onFocus.bind(this)}},
_boundOnBlur:{type:Function,value:function(){return this._onBlur.bind(this)}},
_boundOnInput:{type:Function,value:function(){return this._onInput.bind(this)}},
_boundValueChanged:{type:Function,value:function(){return this._onValueChanged.bind(this)}}},
listeners:{"addon-attached":"_onAddonAttached","iron-input-validate":"_onIronInputValidate"},get _valueChangedEvent(){return this.attrForValue+"-changed"},get _propertyForValue(){return C6(this.attrForValue)},get _inputElement(){return _.Q$(this).querySelector(this._inputSelector)},get _inputElementValue(){return this._inputElement[this._propertyForValue]||this._inputElement.value},ready:function(){this.__isFirstValueUpdate=!0;this._addons||(this._addons=[]);this.addEventListener("focus",this._boundOnFocus,
!0);this.addEventListener("blur",this._boundOnBlur,!0)},
attached:function(){this.attrForValue||this.addEventListener("input",this._onInput);this.initializeInput()},
onInputSlotChanged:function(){this._addons||(this._addons=[]);this.attrForValue&&this._inputElement.addEventListener(this._valueChangedEvent,this._boundValueChanged);this.initializeInput()},
initializeInput:function(){this._inputElement&&(this._inputElementValue&&this._inputElementValue!=""?this._handleValueAndAutoValidate(this._inputElement):this._handleValue(this._inputElement))},
_onAddonAttached:function(a){this._addons||(this._addons=[]);a=a.target;this._addons.indexOf(a)===-1&&(this._addons.push(a),this.isAttached&&this._handleValue(this._inputElement))},
_onFocus:function(){this._setFocused(!0)},
_onBlur:function(){this._setFocused(!1);this._handleValueAndAutoValidate(this._inputElement)},
_onInput:function(a){this._handleValueAndAutoValidate(a.target)},
_onValueChanged:function(a){var z=a.target;if(this.__isFirstValueUpdate&&(this.__isFirstValueUpdate=!1,z.value===void 0||z.value===""))return;this._handleValueAndAutoValidate(a.target)},
_handleValue:function(a){var z=this._inputElementValue;z||z===0||a.type==="number"&&!a.checkValidity()?this._inputHasContent=!0:this._inputHasContent=!1;this.updateAddons({inputElement:a,value:z,invalid:this.invalid})},
_handleValueAndAutoValidate:function(a){this.autoValidate&&a&&(this.invalid=!(a.validate?a.validate(this._inputElementValue):a.checkValidity()));this._handleValue(a)},
_onIronInputValidate:function(){this.invalid=this._inputElement.invalid},
_invalidChanged:function(){this._addons&&this.updateAddons({invalid:this.invalid})},
updateAddons:function(a){if(this._addons)for(var z,I=0;z=this._addons[I];I++)z.update(a)},
_computeInputContentClass:function(a,z,I,J,r){var P="input-content";a?(r&&(P+=" label-is-hidden"),J&&!this.noUnfloatedLabelError&&(P+=" is-invalid")):(a=this.querySelector("label"),z||r?(P+=" label-is-floating",this.$.labelAndInputContainer.style.position="static",J?P+=" is-invalid":I&&(P+=" label-is-highlighted")):(a&&(this.$.labelAndInputContainer.style.position="relative"),J&&!this.noUnfloatedLabelError&&(P+=" is-invalid")));I&&(P+=" focused");return P},
_computeUnderlineClass:function(a,z){var I="underline";z?I+=" is-invalid":a&&(I+=" is-highlighted");return I},
_computeAddOnContentClass:function(a,z){var I="add-on-content";z?I+=" is-invalid":a&&(I+=" is-highlighted");return I}});var lyG;var pql;_.vK({_template:function(){if(pql!==void 0)return pql;var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:tp-yt-paper-input-error--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,third_party.javascript.youtube_components.tp_yt_paper_input_error.tp.yt.paper.input.error.css.js--\x3e\n<div id="a11yWrapper" class="style-scope tp-yt-paper-input-error">\n  <slot class="style-scope tp-yt-paper-input-error"></slot>\n</div>\n');
a.content.insertBefore(_.w().content.cloneNode(!0),a.content.firstChild);var z=a.content,I=z.insertBefore;lyG===void 0&&(lyG=document.createElement("template"));var J=lyG;I.call(z,J.content.cloneNode(!0),a.content.firstChild);return pql=a},
is:"tp-yt-paper-input-error",hostAttributes:{"style-target":"host"},behaviors:[XqG],properties:{invalid:{readOnly:!0,reflectToAttribute:!0,type:Boolean}},update:function(a){this._setInvalid(a.invalid)}});_.vK({is:"tp-yt-paper-input",_template:function(){if($li!==void 0)return $li;var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:tp-yt-paper-input--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,third_party.javascript.youtube_components.tp_yt_paper_input.tp.yt.paper.input.css.js--\x3e<tp-yt-paper-input-container id="container" no-label-float="[[noLabelFloat]]" always-float-label="[[_computeAlwaysFloatLabel(alwaysFloatLabel,placeholder)]]" auto-validate$="[[autoValidate]]" disabled$="[[disabled]]" invalid="[[invalid]]" no-unfloated-label-error="[[noUnfloatedLabelError]]" class="style-scope tp-yt-paper-input">\n  <slot name="prefix" slot="prefix" class="style-scope tp-yt-paper-input"></slot>\n\n  <label hidden$="[[!label]]" aria-hidden="true" for$="[[_inputId]]" slot="label" class="style-scope tp-yt-paper-input">[[label]]</label>\n\n  \n  <tp-yt-iron-input bind-value="{{value}}" slot="input" class="input-element style-scope tp-yt-paper-input" id$="[[_inputId]]" maxlength$="[[maxlength]]" allowed-pattern="[[allowedPattern]]" invalid="{{invalid}}" validator="[[validator]]">\n    <input aria-labelledby$="[[_ariaLabelledBy]]" aria-describedby$="[[_ariaDescribedBy]]" disabled$="[[disabled]]" title$="[[title]]" type$="[[type]]" pattern$="[[pattern]]" required$="[[required]]" autocomplete$="[[autocomplete]]" autofocus$="[[autofocus]]" inputmode$="[[inputmode]]" minlength$="[[minlength]]" maxlength$="[[maxlength]]" min$="[[min]]" max$="[[max]]" step$="[[step]]" name$="[[name]]" placeholder$="[[placeholder]]" readonly$="[[readonly]]" list$="[[list]]" size$="[[size]]" autocapitalize$="[[autocapitalize]]" autocorrect$="[[autocorrect]]" on-change="_onChange" tabindex$="[[tabIndex]]" autosave$="[[autosave]]" results$="[[results]]" accept$="[[accept]]" multiple$="[[multiple]]" role$="[[inputRole]]" aria-haspopup$="[[inputAriaHaspopup]]" dir$="[[inputDir]]" class="style-scope tp-yt-paper-input">\n  </tp-yt-iron-input>\n\n  <slot name="suffix" slot="suffix" class="style-scope tp-yt-paper-input"></slot>\n\n  <template is="dom-if" if="[[errorMessage]]" class="style-scope tp-yt-paper-input">\n    <tp-yt-paper-input-error aria-live="assertive" slot="add-on" class="style-scope tp-yt-paper-input">[[errorMessage]]</tp-yt-paper-input-error>\n  </template>\n\n  <template is="dom-if" if="[[charCounter]]" class="style-scope tp-yt-paper-input">\n    <tp-yt-paper-input-char-counter slot="add-on" class="style-scope tp-yt-paper-input"></tp-yt-paper-input-char-counter>\n  </template>\n</tp-yt-paper-input-container>\n');
a.content.insertBefore(_.w().content.cloneNode(!0),a.content.firstChild);var z=a.content,I=z.insertBefore;GOJ===void 0&&(GOJ=document.createElement("template"));var J=GOJ;I.call(z,J.content.cloneNode(!0),a.content.firstChild);return $li=a},
behaviors:[oKE,_.xE],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 wqw;var mlE;_.vK({_template:function(){if(mlE!==void 0)return mlE;var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:tp-yt-paper-item--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,third_party.javascript.youtube_components.tp_yt_paper_item.tp.yt.paper.item.css.js--\x3e<slot class="style-scope tp-yt-paper-item"></slot>\n');a.content.insertBefore(_.w().content.cloneNode(!0),a.content.firstChild);var z=
a.content,I=z.insertBefore;wqw===void 0&&(wqw=document.createElement("template"));var J=wqw;I.call(z,J.content.cloneNode(!0),a.content.firstChild);return mlE=a},
is:"tp-yt-paper-item",hostAttributes:{"style-target":"host"},behaviors:[_.e_]});var yIf;var kOE;_.vK({_template:function(){if(kOE!==void 0)return kOE;var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:tp-yt-paper-item-body--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,third_party.javascript.youtube_components.tp_yt_paper_item_body.tp.yt.paper.item.body.css.js--\x3e<slot class="style-scope tp-yt-paper-item-body"></slot>\n');a.content.insertBefore(_.w().content.cloneNode(!0),a.content.firstChild);
var z=a.content,I=z.insertBefore;yIf===void 0&&(yIf=document.createElement("template"));var J=yIf;I.call(z,J.content.cloneNode(!0),a.content.firstChild);return kOE=a},
is:"tp-yt-paper-item-body"});var MiE;var cIi;var YJJ=function(){};
_.Z=YJJ.prototype;_.Z.indexOf=function(){};
_.Z.selectPrevious=function(){};
_.Z.selectNext=function(){};
_.Z.selectIndex=function(){};
_.Z.forceSynchronousItemUpdate=function(){};
_.Z._checkFallback=function(){};
_.Z._addListener=function(){};
_.Z._removeListener=function(){};
_.Z._activateEventChanged=function(){};
_.Z._updateItems=function(){};
_.Z._selectSelected=function(){};
_.Z._filterItem=function(){};
_.Z._valueToItem=function(){};
_.Z._valueToIndex=function(){};
_.Z._indexToValue=function(){};
_.Z._valueForItem=function(){};
_.Z._observeItems=function(){};
_.Z._itemActivate=function(){};
_.Z.multiChanged=function(){};
_.Z._updateAttrForSelected=function(){};
_.Z._updateSelected=function(){};
_.Z._selectMulti=function(){};
_.Z._selectionChange=function(){};
_.Z._toggleSelected=function(){};
_.Z._valuesToItems=function(){};
_.Z.registered=function(){};
_.Z.addOwnKeyBinding=function(){};
_.Z.removeOwnKeyBindings=function(){};
_.Z.keyboardEventMatchesKeys=function(){};
_.Z._collectKeyBindings=function(){};
_.Z._prepKeyBindings=function(){};
_.Z._addKeyBinding=function(){};
_.Z._resetKeyEventListeners=function(){};
_.Z._listenKeyEventListeners=function(){};
_.Z._unlistenKeyEventListeners=function(){};
_.Z._onKeyBindingEvent=function(){};
_.Z._triggerKeyHandler=function(){};
_.Z.select=function(){};
_.Z._resetTabindices=function(){};
_.Z._updateMultiselectable=function(){};
_.Z._focusWithKeyboardEvent=function(){};
_.Z._clearSearchText=function(){};
_.Z._focusPrevious=function(){};
_.Z._focusNext=function(){};
_.Z._applySelection=function(){};
_.Z._focusedItemChanged=function(){};
_.Z._onIronItemsChanged=function(){};
_.Z._onShiftTabDown=function(){};
_.Z._onFocus=function(){};
_.Z._onUpKey=function(){};
_.Z._onDownKey=function(){};
_.Z._onEscKey=function(){};
_.Z._onKeydown=function(){};
_.Z._activateHandler=function(){};
_.Z._disabledChanged=function(){};
_.Z._setSelectedItem=function(){};
_.Z._setItems=function(){};
_.Z._setSelectedItems=function(){};
_.Z._setFocusedItem=function(){};
YJJ=_.vK({_template:function(){if(cIi!==void 0)return cIi;var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:tp-yt-paper-listbox--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,third_party.javascript.youtube_components.tp_yt_paper_listbox.tp.yt.paper.listbox.css.js--\x3e<slot class="style-scope tp-yt-paper-listbox"></slot>\n');a.content.insertBefore(_.w().content.cloneNode(!0),a.content.firstChild);
var z=a.content,I=z.insertBefore;MiE===void 0&&(MiE=document.createElement("template"));var J=MiE;I.call(z,J.content.cloneNode(!0),a.content.firstChild);return cIi=a},
is:"tp-yt-paper-listbox",behaviors:[AEE],hostAttributes:{role:"listbox"}});var qJG;var eOf;var a8G={properties:{active:{type:Boolean,value:!1,reflectToAttribute:!0,observer:"__activeChanged"},alt:{type:String,value:"loading",observer:"__altChanged"},__coolingDown:{type:Boolean,value:!1}},__computeContainerClasses:function(a,z){return[a||z?"active":"",z?"cooldown":""].join(" ")},
__activeChanged:function(a,z){this.__setAriaHidden(!a);this.__coolingDown=!a&&z},
__altChanged:function(a){this.setAttribute("aria-label",a||"loading")},
__setAriaHidden:function(a){a?this.setAttribute("aria-hidden","true"):this.removeAttribute("aria-hidden")},
__reset:function(){this.__coolingDown=this.active=!1}};_.vK({_template:function(){if(eOf!==void 0)return eOf;var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:tp-yt-paper-spinner--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,third_party.javascript.youtube_components.tp_yt_paper_spinner.tp.yt.paper.spinner.css.js--\x3e<div id="spinnerContainer" class-name="[[__computeContainerClasses(active, __coolingDown)]]" on-animationend="__reset" on-webkit-animation-end="__reset" class="style-scope tp-yt-paper-spinner">\n  <div class="spinner-layer layer-1 style-scope tp-yt-paper-spinner">\n    <div class="circle-clipper left style-scope tp-yt-paper-spinner">\n      <div class="circle style-scope tp-yt-paper-spinner"></div>\n    </div>\n    <div class="circle-clipper right style-scope tp-yt-paper-spinner">\n      <div class="circle style-scope tp-yt-paper-spinner"></div>\n    </div>\n  </div>\n\n  <div class="spinner-layer layer-2 style-scope tp-yt-paper-spinner">\n    <div class="circle-clipper left style-scope tp-yt-paper-spinner">\n      <div class="circle style-scope tp-yt-paper-spinner"></div>\n    </div>\n    <div class="circle-clipper right style-scope tp-yt-paper-spinner">\n      <div class="circle style-scope tp-yt-paper-spinner"></div>\n    </div>\n  </div>\n\n  <div class="spinner-layer layer-3 style-scope tp-yt-paper-spinner">\n    <div class="circle-clipper left style-scope tp-yt-paper-spinner">\n      <div class="circle style-scope tp-yt-paper-spinner"></div>\n    </div>\n    <div class="circle-clipper right style-scope tp-yt-paper-spinner">\n      <div class="circle style-scope tp-yt-paper-spinner"></div>\n    </div>\n  </div>\n\n  <div class="spinner-layer layer-4 style-scope tp-yt-paper-spinner">\n    <div class="circle-clipper left style-scope tp-yt-paper-spinner">\n      <div class="circle style-scope tp-yt-paper-spinner"></div>\n    </div>\n    <div class="circle-clipper right style-scope tp-yt-paper-spinner">\n      <div class="circle style-scope tp-yt-paper-spinner"></div>\n    </div>\n  </div>\n</div>\n');
a.content.insertBefore(_.w().content.cloneNode(!0),a.content.firstChild);var z=a.content,I=z.insertBefore;qJG===void 0&&(qJG=document.createElement("template"));var J=qJG;I.call(z,J.content.cloneNode(!0),a.content.firstChild);return eOf=a},
is:"tp-yt-paper-spinner",behaviors:[a8G]});var jse;var zsj;_.vK({_template:function(){if(zsj!==void 0)return zsj;var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:tp-yt-paper-spinner-lite--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,third_party.javascript.youtube_components.tp_yt_paper_spinner_lite.tp.yt.paper.spinner.lite.css.js--\x3e<div id="spinnerContainer" class-name="[[__computeContainerClasses(active, __coolingDown)]]" on-animationend="__reset" on-webkit-animation-end="__reset" class="style-scope tp-yt-paper-spinner-lite">\n  <div class="spinner-layer style-scope tp-yt-paper-spinner-lite">\n    <div class="circle-clipper left style-scope tp-yt-paper-spinner-lite">\n      <div class="circle style-scope tp-yt-paper-spinner-lite"></div>\n    </div>\n    <div class="circle-clipper right style-scope tp-yt-paper-spinner-lite">\n      <div class="circle style-scope tp-yt-paper-spinner-lite"></div>\n    </div>\n  </div>\n</div>\n');
a.content.insertBefore(_.w().content.cloneNode(!0),a.content.firstChild);var z=a.content,I=z.insertBefore;jse===void 0&&(jse=document.createElement("template"));var J=jse;I.call(z,J.content.cloneNode(!0),a.content.firstChild);return zsj=a},
is:"tp-yt-paper-spinner-lite",behaviors:[a8G]});var I8i;var JYJ;_.vK({_template:function(){if(JYJ!==void 0)return JYJ;var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:tp-yt-paper-tab--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,third_party.javascript.youtube_components.tp_yt_paper_tab.tp.yt.paper.tab.css.js--\x3e<div class="tab-content style-scope tp-yt-paper-tab" style-target="tab-content">\n  <slot class="style-scope tp-yt-paper-tab"></slot>\n</div>\n');
a.content.insertBefore(_.w().content.cloneNode(!0),a.content.firstChild);var z=a.content,I=z.insertBefore;I8i===void 0&&(I8i=document.createElement("template"));var J=I8i;I.call(z,J.content.cloneNode(!0),a.content.firstChild);return JYJ=a},
is:"tp-yt-paper-tab",behaviors:[_.Q_,_.iY.IronButtonState,cY],properties:{link:{type:Boolean,value:!1,reflectToAttribute:!0},noBoldOnFocus:{type:Boolean,value:!1,reflectToAttribute:!0}},hostAttributes:{role:"tab","style-target":"host"},listeners:{down:"_updateNoink",tap:"_onTap"},attached:function(){this._updateNoink()},
get _parentNoink(){var a=_.Q$(this).parentNode;return!!a&&!!a.noink},_updateNoink:function(){this.noink=!!this.noink||!!this._parentNoink},
_onTap:function(a){if(this.link){var z=this.queryEffectiveChildren("a");z&&a.target!==z&&z.click()}}});var rYf;var Pev;var ZnE=_.kK(['<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>']),CeI=_.Bgf(ZnE);document.head.appendChild(CeI.content);_.vK({_template:function(){if(Pev!==void 0)return Pev;var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:tp-yt-paper-tabs--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,third_party.javascript.youtube_components.tp_yt_paper_tabs.tp.yt.paper.tabs.css.js--\x3e<tp-yt-paper-icon-button id="left" icon="paper-tabs:chevron-left" alt="[[altPrevious]]" class$="[[_computeScrollButtonClass(_leftHidden, scrollable, hideScrollButtons, removeIdleScrollButtons)]] style-scope tp-yt-paper-tabs" on-up="_onScrollButtonUp" on-down="_onLeftScrollButtonDown" tabindex="-1" disabled="[[_leftHidden]]"></tp-yt-paper-icon-button>\n\n<div id="tabsContainer" on-track="_scroll" on-down="_down" class="style-scope tp-yt-paper-tabs">\n  <div id="tabsContent" style-target="content" class$="[[_computeTabsContentClass(scrollable, fitContainer)]] style-scope tp-yt-paper-tabs">\n    <div id="selectionBar" style-target="selection-bar" class$="[[_computeSelectionBarClass(noBar, alignBottom)]] style-scope tp-yt-paper-tabs" on-transitionend="_onBarTransitionEnd"></div>\n    <slot class="style-scope tp-yt-paper-tabs"></slot>\n  </div>\n</div>\n\n<tp-yt-paper-icon-button id="right" icon="paper-tabs:chevron-right" alt="[[altNext]]" class$="[[_computeScrollButtonClass(_rightHidden, scrollable, hideScrollButtons, removeIdleScrollButtons)]] style-scope tp-yt-paper-tabs" on-up="_onScrollButtonUp" on-down="_onRightScrollButtonDown" tabindex="-1" disabled="[[_rightHidden]]"></tp-yt-paper-icon-button>\n');
a.content.insertBefore(_.w().content.cloneNode(!0),a.content.firstChild);var z=a.content,I=z.insertBefore;rYf===void 0&&(rYf=document.createElement("template"));var J=rYf;I.call(z,J.content.cloneNode(!0),a.content.firstChild);return Pev=a},
is:"tp-yt-paper-tabs",behaviors:[_.Ts,_.nci],properties:{noink:{type:Boolean,value:!1,observer:"_noinkChanged"},noBar:{type:Boolean,value:!1},noSlide:{type:Boolean,value:!1},scrollable:{type:Boolean,value:!1},fitContainer:{type:Boolean,value:!1},disableDrag:{type:Boolean,value:!1},hideScrollButtons:{type:Boolean,value:!1},removeIdleScrollButtons:{type:Boolean,value:!1},alignBottom:{type:Boolean,value:!1},selectable:{type:String,value:"tp-yt-paper-tab"},autoselect:{type:Boolean,value:!1},autoselectDelay:{type:Number,
value:0},altNext:{type:String,value:""},altPrevious:{type:String,value:""},_step:{type:Number,value:10},_holdDelay:{type:Number,value:1},_leftHidden:{type:Boolean,value:!1},_rightHidden:{type:Boolean,value:!1},_previousTab:{type:Object}},hostAttributes:{role:"tablist"},listeners:{"iron-resize":"_onTabSizingChanged","iron-items-changed":"_onTabSizingChanged","iron-select":"_onIronSelect","iron-deselect":"_onIronDeselect"},keyBindings:{"left:keyup right:keyup":"_onArrowKeyup"},created:function(){this._holdJob=
null;this._pendingActivationTimeout=this._pendingActivationItem=void 0;this._bindDelayedActivationHandler=this._delayedActivationHandler.bind(this);this.addEventListener("blur",this._onBlurCapture.bind(this),!0);this._rightHidden=this._leftHidden=this.hideScrollButtons},
ready:function(){this.setScrollDirection("y",this.$.tabsContainer)},
detached:function(){this._cancelPendingActivation()},
_noinkChanged:function(a){_.Q$(this).querySelectorAll("tp-yt-paper-tab").forEach(a?this._setNoinkAttribute:this._removeNoinkAttribute)},
_setNoinkAttribute:function(a){a.setAttribute("noink","")},
_removeNoinkAttribute:function(a){a.removeAttribute("noink")},
_computeScrollButtonClass:function(a,z,I,J){return!z||I?"hidden":a?J?"hidden":"not-visible":""},
_computeTabsContentClass:function(a,z){var I="tabs-content";a&&(I+=" scrollable");if(!a||z)I+=" fit-container";return I},
_computeSelectionBarClass:function(a,z){var I="selection-bar";a?I+=" hidden":z&&(I+=" align-bottom");return I},
_onTabSizingChanged:function(){this.debounce("_onTabSizingChanged",function(){this._scroll();this._tabChanged(this.selectedItem)},10)},
_makeString:function(a){return""+a},
_onIronSelect:function(a){this._tabChanged(a.detail.item,this._previousTab);this._previousTab=a.detail.item;this.cancelDebouncer("tab-changed")},
_onIronDeselect:function(){this.debounce("tab-changed",function(){this._tabChanged(null,this._previousTab);this._previousTab=null},1)},
_activateHandler:function(){this._cancelPendingActivation();_.X7._activateHandler.apply(this,arguments)},
_scheduleActivation:function(a,z){this._pendingActivationItem=a;this._pendingActivationTimeout=this.async(this._bindDelayedActivationHandler,z)},
_delayedActivationHandler:function(){var a=this._pendingActivationItem;this._pendingActivationTimeout=this._pendingActivationItem=void 0;a.fire(this.activateEvent,null,{bubbles:!0,cancelable:!0})},
_cancelPendingActivation:function(){this._pendingActivationTimeout!==void 0&&(this.cancelAsync(this._pendingActivationTimeout),this._pendingActivationTimeout=this._pendingActivationItem=void 0)},
_onArrowKeyup:function(){this.autoselect&&this._scheduleActivation(this.focusedItem,this.autoselectDelay)},
_onBlurCapture:function(a){a.target===this._pendingActivationItem&&this._cancelPendingActivation()},
get _tabContainerScrollSize(){return Math.max(0,this.$.tabsContainer.scrollWidth-this.$.tabsContainer.offsetWidth)},_scroll:function(a,z){this.scrollable&&this._affectScroll(z&&-z.ddx||0)},
_down:function(){this.async(function(){this._defaultFocusAsync&&(this.cancelAsync(this._defaultFocusAsync),this._defaultFocusAsync=null)},1)},
_affectScroll:function(a){this.$.tabsContainer.scrollLeft+=a;a=this.$.tabsContainer.scrollLeft;this._leftHidden=a===0||this.hideScrollButtons;this._rightHidden=a===this._tabContainerScrollSize||this.hideScrollButtons},
_onLeftScrollButtonDown:function(){this._scrollToLeft();this._holdJob=setInterval(this._scrollToLeft.bind(this),this._holdDelay)},
_onRightScrollButtonDown:function(){this._scrollToRight();this._holdJob=setInterval(this._scrollToRight.bind(this),this._holdDelay)},
_onScrollButtonUp:function(){clearInterval(this._holdJob);this._holdJob=null},
_scrollToLeft:function(){this._affectScroll(-this._step)},
_scrollToRight:function(){this._affectScroll(this._step)},
_tabChanged:function(a,z){if(a){var I=this.$.tabsContent.getBoundingClientRect(),J=I.width,r=a.getBoundingClientRect();I=r.left-I.left;this._pos={width:this._calcPercent(r.width,J),left:this._calcPercent(I,J)};if(this.noSlide||z==null)this.$.selectionBar.classList.remove("expand"),this.$.selectionBar.classList.remove("contract"),this._positionBar(this._pos.width,this._pos.left);else{var P=z.getBoundingClientRect();z=this.items.indexOf(z);a=this.items.indexOf(a);this.$.selectionBar.classList.add("expand");
a=z<a;this._isRTL&&(a=!a);a?this._positionBar(this._calcPercent(r.left+r.width-P.left,J)-5,this._left):this._positionBar(this._calcPercent(P.left+P.width-r.left,J)-5,this._calcPercent(I,J)+5);this.scrollable&&this._scrollToSelectedIfNeeded(r.width,I)}}else this.$.selectionBar.classList.remove("expand"),this.$.selectionBar.classList.remove("contract"),this._positionBar(0,0)},
_scrollToSelectedIfNeeded:function(a,z){z-=this.$.tabsContainer.scrollLeft;z<0?this.$.tabsContainer.scrollLeft+=z:(z+=a-this.$.tabsContainer.offsetWidth,z>0&&(this.$.tabsContainer.scrollLeft+=z))},
_calcPercent:function(a,z){return 100*a/z},
_positionBar:function(a,z){a=a||0;z=z||0;this._width=a;this._left=z;this.transform("translateX("+z+"%) scaleX("+a/100+")",this.$.selectionBar)},
_onBarTransitionEnd:function(){var a=this.$.selectionBar.classList;a.contains("expand")?(a.remove("expand"),a.add("contract"),this._positionBar(this._pos.width,this._pos.left)):a.contains("contract")&&a.remove("contract")}});var NLl;var tQo;_.vK({_template:function(){if(tQo!==void 0)return tQo;var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:tp-yt-paper-textarea--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,third_party.javascript.youtube_components.tp_yt_paper_textarea.tp.yt.paper.textarea.css.js--\x3e<tp-yt-paper-input-container no-label-float$="[[noLabelFloat]]" always-float-label="[[_computeAlwaysFloatLabel(alwaysFloatLabel,placeholder)]]" auto-validate$="[[autoValidate]]" disabled$="[[disabled]]" invalid="[[invalid]]" no-unfloated-label-error="[[noUnfloatedLabelError]]" class="style-scope tp-yt-paper-textarea">\n  <label hidden$="[[!label]]" aria-hidden="true" for$="[[_inputId]]" slot="label" class="style-scope tp-yt-paper-textarea">[[label]]</label>\n\n  <tp-yt-iron-autogrow-textarea class="paper-input-input style-scope tp-yt-paper-textarea" slot="input" id$="[[_inputId]]" aria-labelledby$="[[_ariaLabelledBy]]" aria-describedby$="[[_ariaDescribedBy]]" bind-value="{{value}}" invalid="{{invalid}}" validator$="[[validator]]" disabled$="[[disabled]]" autocomplete$="[[autocomplete]]" autofocus$="[[autofocus]]" inputmode$="[[inputmode]]" name$="[[name]]" placeholder$="[[placeholder]]" readonly$="[[readonly]]" required$="[[required]]" minlength$="[[minlength]]" maxlength$="[[maxlength]]" autocapitalize$="[[autocapitalize]]" rows$="[[rows]]" max-rows$="[[maxRows]]" on-change="_onChange"></tp-yt-iron-autogrow-textarea>\n\n  <template is="dom-if" if="[[errorMessage]]" class="style-scope tp-yt-paper-textarea">\n    <tp-yt-paper-input-error aria-live="assertive" slot="add-on" class="style-scope tp-yt-paper-textarea">[[errorMessage]]</tp-yt-paper-input-error>\n  </template>\n\n  <template is="dom-if" if="[[charCounter]]" class="style-scope tp-yt-paper-textarea">\n    <tp-yt-paper-input-char-counter slot="add-on" class="style-scope tp-yt-paper-textarea"></tp-yt-paper-input-char-counter>\n  </template>\n</tp-yt-paper-input-container>\n');
a.content.insertBefore(_.w().content.cloneNode(!0),a.content.firstChild);var z=a.content,I=z.insertBefore;NLl===void 0&&(NLl=document.createElement("template"));var J=NLl;I.call(z,J.content.cloneNode(!0),a.content.firstChild);return tQo=a},
is:"tp-yt-paper-textarea",behaviors:[oKE,_.xE],properties:{_ariaLabelledBy:{observer:"_ariaLabelledByChanged",type:String},_ariaDescribedBy:{observer:"_ariaDescribedByChanged",type:String},value:{type:String},rows:{type:Number,value:1},maxRows:{type:Number,value:0},noUnfloatedLabelError:{type:Boolean,value:!1}},get selectionStart(){return this.$.input.textarea.selectionStart},set selectionStart(a){this.$.input.textarea.selectionStart=a},get selectionEnd(){return this.$.input.textarea.selectionEnd},
set selectionEnd(a){this.$.input.textarea.selectionEnd=a},_ariaLabelledByChanged:function(a){this._focusableElement.setAttribute("aria-labelledby",a)},
_ariaDescribedByChanged:function(a){this._focusableElement.setAttribute("aria-describedby",a)},
get _focusableElement(){return this.inputElement.textarea}});var ugv;var ERX;/*

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 BLe=function(){};
_.Z=BLe.prototype;_.Z.addOwnKeyBinding=function(){};
_.Z.removeOwnKeyBindings=function(){};
_.Z.keyboardEventMatchesKeys=function(){};
_.Z._collectKeyBindings=function(){};
_.Z._prepKeyBindings=function(){};
_.Z._addKeyBinding=function(){};
_.Z._resetKeyEventListeners=function(){};
_.Z._listenKeyEventListeners=function(){};
_.Z._unlistenKeyEventListeners=function(){};
_.Z._onKeyBindingEvent=function(){};
_.Z._triggerKeyHandler=function(){};
_.Z._tapHandler=function(){};
_.Z._focusChanged=function(){};
_.Z._detectKeyboardFocus=function(){};
_.Z._userActivate=function(){};
_.Z._upHandler=function(){};
_.Z._spaceKeyDownHandler=function(){};
_.Z._spaceKeyUpHandler=function(){};
_.Z._asyncClick=function(){};
_.Z._pressedChanged=function(){};
_.Z._ariaActiveAttributeChanged=function(){};
_.Z._activeChanged=function(){};
_.Z._controlStateChanged=function(){};
_.Z._changedButtonState=function(){};
_.Z._focusBlurHandler=function(){};
_.Z._disabledChanged=function(){};
_.Z._changedControlState=function(){};
_.Z._downHandler=function(){};
_.Z.ensureRipple=function(){};
_.Z.getRipple=function(){};
_.Z.hasRipple=function(){};
_.Z._noinkChanged=function(){};
_.Z._focusedChanged=function(){};
_.Z.registered=function(){};
_.Z._invalidChanged=function(){};
_.Z.hasValidator=function(){};
_.Z.validate=function(){};
_.Z._getValidity=function(){};
_.Z._requiredChanged=function(){};
_.Z._valueChanged=function(){};
_.Z._checkedChanged=function(){};
_.Z._buttonStateChanged=function(){};
_.Z._setPressed=function(){};
_.Z._setPointerDown=function(){};
_.Z._setReceivedFocusFromKeyboard=function(){};
_.Z._setFocused=function(){};
BLe=_.vK({is:"tp-yt-paper-toggle-button",_template:function(){if(ERX!==void 0)return ERX;var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:tp-yt-paper-toggle-button--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,third_party.javascript.youtube_components.tp_yt_paper_toggle_button.tp.yt.paper.toggle.button.css.js--\x3e<div class="toggle-container style-scope tp-yt-paper-toggle-button">\n  <div id="toggleBar" class="toggle-bar style-scope tp-yt-paper-toggle-button"></div>\n  <div id="toggleButton" class="toggle-button style-scope tp-yt-paper-toggle-button"></div>\n</div>\n\n<div class="toggle-label style-scope tp-yt-paper-toggle-button"><slot class="style-scope tp-yt-paper-toggle-button"></slot></div>\n');
a.content.insertBefore(_.w().content.cloneNode(!0),a.content.firstChild);var z=a.content,I=z.insertBefore;ugv===void 0&&(ugv=document.createElement("template"));var J=ugv;I.call(z,J.content.cloneNode(!0),a.content.firstChild);return ERX=a},
behaviors:[_.Pgw],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");_.Yv(this,function(){_.d3(this,"pan-y")})},
_ontrack:function(a){a=a.detail;a.state==="start"?this._trackStart(a):a.state==="track"?this._trackMove(a):a.state==="end"&&this._trackEnd(a)},
_trackStart:function(){this._isRtl=this.__calculateIsRtl();this._width=this.$.toggleBar.offsetWidth/2;this._trackChecked=this.checked;this.$.toggleButton.classList.add("dragging")},
_trackMove:function(a){a=a.dx;this._x=this._isRtl?Math.max(-this._width,Math.min(0,this._trackChecked?-this._width+a:a)):Math.min(this._width,Math.max(0,this._trackChecked?this._width+a:a));this.translate3d(this._x+"px",0,0,this.$.toggleButton);this._isRtl?this._userActivate(this._x<-this._width/2):this._userActivate(this._x>this._width/2)},
_trackEnd:function(){this.$.toggleButton.classList.remove("dragging");this.transform("",this.$.toggleButton)},
_createRipple:function(){this._rippleContainer=this.$.toggleButton;var a=cY._createRipple();a.id="ink";a.setAttribute("recenters","");a.classList.add("circle","toggle-ink");return a}});var gRJ;var Onl;_.vK({_template:function(){if(Onl!==void 0)return Onl;var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:tp-yt-paper-tooltip--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,third_party.javascript.youtube_components.tp_yt_paper_tooltip.tp.yt.paper.tooltip.css.js--\x3e<div id="tooltip" class="hidden style-scope tp-yt-paper-tooltip" style-target="tooltip">\n  <slot class="style-scope tp-yt-paper-tooltip"></slot>\n</div>\n');
a.content.insertBefore(_.w().content.cloneNode(!0),a.content.firstChild);var z=a.content,I=z.insertBefore;gRJ===void 0&&(gRJ=document.createElement("template"));var J=gRJ;I.call(z,J.content.cloneNode(!0),a.content.firstChild);return Onl=a},
is:"tp-yt-paper-tooltip",hostAttributes:{role:"tooltip",tabindex:-1,"aria-label":"tooltip"},properties:{for:{type:String,observer:"_findTarget"},manualMode:{type:Boolean,value:!1,observer:"_manualModeChanged"},position:{type:String,value:"bottom"},fitToVisibleBounds:{type:Boolean,value:!1},offset:{type:Number,value:14},marginTop:{type:Number,value:14},alwaysDisplay:{type:Boolean,value:!1},animationDelay:{type:Number,value:500,observer:"_delayChange"},animationEntry:{type:String,value:""},animationExit:{type:String,
value:""},animationConfig:{type:Object,value:function(){return{entry:[{name:"fade-in-animation",node:this,timing:{delay:0}}],exit:[{name:"fade-out-animation",node:this}]}}},
_showing:{type:Boolean,value:!1}},listeners:{webkitAnimationEnd:"_onAnimationEnd"},get target(){var a=_.Q$(this).parentNode,z=_.Q$(this).getOwnerRoot(),I;this.for?I=_.Q$(z).querySelector("#"+this.for):I=a.nodeType==Node.DOCUMENT_FRAGMENT_NODE?z.host:a;return I},attached:function(){this._findTarget()},
detached:function(){this.manualMode||this._removeListeners()},
playAnimation:function(a){a==="entry"?this.show():a==="exit"&&this.hide()},
cancelAnimation:function(){this.$.tooltip.classList.add("cancel-animation")},
show:function(){if(!this._showing){if(!this.alwaysDisplay&&_.Q$(this).textContent.trim()===""){for(var a=!0,z=_.Q$(this).getEffectiveChildNodes(),I=0;I<z.length;I++)if(z[I].textContent.trim()!==""){a=!1;break}if(a)return}this._showing=!0;this.$.tooltip.classList.remove("hidden");this.$.tooltip.classList.remove("cancel-animation");this.$.tooltip.classList.remove(this._getAnimationType("exit"));this.updatePosition();this._animationPlaying=!0;this.$.tooltip.classList.add(this._getAnimationType("entry"))}},
hide:function(){this._showing&&(this._animationPlaying?(this._showing=!1,this._cancelAnimation()):(this._onAnimationFinish(),this._showing=!1,this._animationPlaying=!0))},
updatePosition:function(){if(this._target&&this.offsetParent){var a=this.offset;this.marginTop!=14&&this.offset==14&&(a=this.marginTop);var z=this.offsetParent.getBoundingClientRect(),I=this._target.getBoundingClientRect(),J=this.getBoundingClientRect(),r=(I.width-J.width)/2,P=(I.height-J.height)/2,N=I.left-z.left,u=I.top-z.top;switch(this.position){case "top":var E=N+r;var O=u-J.height-a;break;case "bottom":E=N+r;O=u+I.height+a;break;case "left":E=N-J.width-a;O=u+P;break;case "right":E=N+I.width+
a,O=u+P}this.fitToVisibleBounds?(z.left+E+J.width>window.innerWidth?(this.style.right="0px",this.style.left="auto"):(this.style.left=Math.max(0,E)+"px",this.style.right="auto"),z.top+O+J.height>window.innerHeight?(this.style.bottom=z.height+"px",this.style.top="auto"):(this.style.top=Math.max(-z.top,O)+"px",this.style.bottom="auto")):(this.style.left=E+"px",this.style.top=O+"px")}},
_addListeners:function(){this._target&&(this.listen(this._target,"mouseenter","show"),this.listen(this._target,"focus","show"),this.listen(this._target,"mouseleave","hide"),this.listen(this._target,"blur","hide"),this.listen(this._target,"tap","hide"));this.listen(this.$.tooltip,"animationend","_onAnimationEnd");this.listen(this,"mouseenter","hide")},
_findTarget:function(){this.manualMode||this._removeListeners();this._target=this.target;this.manualMode||this._addListeners()},
_delayChange:function(a){a!==500&&this.updateStyles({"--paper-tooltip-delay-in":a+"ms"})},
_manualModeChanged:function(){this.manualMode?this._removeListeners():this._addListeners()},
_cancelAnimation:function(){this.$.tooltip.classList.remove(this._getAnimationType("entry"));this.$.tooltip.classList.remove(this._getAnimationType("exit"));this.$.tooltip.classList.remove("cancel-animation");this.$.tooltip.classList.add("hidden")},
_onAnimationFinish:function(){this._showing&&(this.$.tooltip.classList.remove(this._getAnimationType("entry")),this.$.tooltip.classList.remove("cancel-animation"),this.$.tooltip.classList.add(this._getAnimationType("exit")))},
_onAnimationEnd:function(){this._animationPlaying=!1;this._showing||(this.$.tooltip.classList.remove(this._getAnimationType("exit")),this.$.tooltip.classList.add("hidden"))},
_getAnimationType:function(a){if(a==="entry"&&this.animationEntry!=="")return this.animationEntry;if(a==="exit"&&this.animationExit!=="")return this.animationExit;if(this.animationConfig[a]&&typeof this.animationConfig[a][0].name==="string"){if(this.animationConfig[a][0].timing&&this.animationConfig[a][0].timing.delay&&this.animationConfig[a][0].timing.delay!==0){var z=this.animationConfig[a][0].timing.delay;a==="entry"?this.updateStyles({"--paper-tooltip-delay-in":z+"ms"}):a==="exit"&&this.updateStyles({"--paper-tooltip-delay-out":z+
"ms"})}return this.animationConfig[a][0].name}},
_removeListeners:function(){this._target&&(this.unlisten(this._target,"mouseenter","show"),this.unlisten(this._target,"focus","show"),this.unlisten(this._target,"mouseleave","hide"),this.unlisten(this._target,"blur","hide"),this.unlisten(this._target,"tap","hide"));this.unlisten(this.$.tooltip,"animationend","_onAnimationEnd");this.unlisten(this,"mouseenter","hide")}});var f8w=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.GY(a)};
_.b(f8w,_.ju);var AYw=_.tx(f8w,[0,_.YR]);var ay=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.GY(a)};
_.b(ay,_.ju);var ssw=[3,4],nRl=[5,6];var K7E=[0,ssw,nRl,_.Z4w,-1,_.cb,_.CjG,-1,aq7,jn$];var F7E=_.tx(ay,K7E),Hnf=_.uj(K7E);var bnG=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.GY(a)};
_.b(bnG,_.ju);var hsO=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.GY(a)};
_.b(hsO,_.ju);var VQe=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.GY(a)};
_.b(VQe,_.ju);var QsX=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.GY(a)};
_.b(QsX,_.ju);var SBG=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.GY(a)};
_.b(SBG,_.ju);var jG=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.GY(a)};
_.b(jG,_.ju);jG.prototype.getSource=function(){return _.GL(this,1)};
jG.prototype.getMessage=function(){return _.vb(this,4)};
jG.prototype.getData=function(){return _.JC(this,SBG,8)};var inO=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.GY(a)};
_.b(inO,_.ju);var z7=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.GY(a)};
_.b(z7,_.ju);var Iy=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.GY(a)};
_.b(Iy,_.ju);var JV=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.GY(a)};
_.b(JV,_.ju);JV.prototype.getUrl=function(){return _.vb(this,1)};
JV.prototype.setUrl=function(a){return _.KB(this,1,a)};
JV.prototype.hasUrl=function(){return _.gE(_.sB(this,1))!=null};var xSI=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.GY(a)};
_.b(xSI,_.ju);var vRO=[3];var GLl=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.GY(a)};
_.b(GLl,_.ju);var rB=function(a){var z=new GLl;return _.ro(z,2,a)};
GLl.prototype.getLanguage=function(){return Xg(this,4,PU)};
var $Sw=function(a){var z=rB(1);return _.Oa(z,6,PU,a)},PU=[3,
4,5,6];var Xb1=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.GY(a)};
_.b(Xb1,_.ju);var Z5=function(a){var z=new Xb1;return _.ro(z,1,a)},CQ=function(a,z){return _.Oa(a,2,TLO,z)},TLO=[2,
3,4,5];var dSl=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.GY(a)};
_.b(dSl,_.ju);var Ny=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.GY(a)};
_.b(Ny,_.ju);var W7I=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.GY(a)};
_.b(W7I,_.ju);var oRl=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.GY(a)};
_.b(oRl,_.ju);var US1=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.GY(a)};
_.b(US1,_.ju);var DSE=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.GY(a)};
_.b(DSE,_.ju);var Rsw=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.GY(a)};
_.b(Rsw,_.ju);var tV=function(a){return _.JC(a,Iy,5)};var L7o=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.GY(a)};
_.b(L7o,_.ju);L7o.prototype.getValue=function(){return ie(this,1)};var l8l=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.GY(a)};
_.b(l8l,_.ju);var uc=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.GY(a)};
_.b(uc,_.ju);uc.prototype.getMetadata=function(){return _.TL(this,US1,7,EL)};
uc.prototype.hasMetadata=function(){return _.Kn(this,US1,7,EL)};
var pbv=_.oPx(uc),EL=[2,3,4,5,6,7,8,9,10,11,12,13,14,15];var BU=function(a){this.JSC$11920_name_=a;this.files_=[];this.directories_=[];this.directoryMap_={}};
BU.prototype.getName=function(){return this.JSC$11920_name_};var OL=function(a,z){this.callback_=z;this.hasError_=!1;this.unscannedDirectories_=[];this.fileOps_=this.directoryOps_=0;this.rootDirectory_=new BU("");wbX(this,a,this.rootDirectory_);gB(this)},wbX=function(a,z,I){for(var J=0;J<z.length;J++){var r=z[J];
r.isFile?(a.fileOps_++,r.file((0,_.HW)(a.handleFileSuccess_,a,I),(0,_.HW)(a.handleFileError_,a))):a.unscannedDirectories_.push(new mSE(r,I))}},gB=function(a){if(a.unscannedDirectories_.length>0&&a.directoryOps_<5&&!a.hasError_){a.directoryOps_++;
var z=a.unscannedDirectories_.shift(),I=z.entry,J=new BU(I.name);z=z.parent;z.directoryMap_[J.getName()]=J;z.directories_.push(J);I=I.createReader();I.readEntries((0,_.HW)(a.handleDirectorySuccess_,a,I,J),(0,_.HW)(a.handleDirectoryError_,a))}a.directoryOps_!=0||a.fileOps_!=0||a.unscannedDirectories_.length!=0&&!a.hasError_||a.callback_(a.rootDirectory_.files_,a.rootDirectory_.directories_,a.hasError_)};
OL.prototype.handleDirectorySuccess_=function(a,z,I){wbX(this,I,z);I.length==0?(this.directoryOps_--,gB(this)):a.readEntries((0,_.HW)(this.handleDirectorySuccess_,this,a,z),(0,_.HW)(this.handleDirectoryError_,this))};
OL.prototype.handleDirectoryError_=function(){this.hasError_=!0;this.directoryOps_--;gB(this)};
OL.prototype.handleFileSuccess_=function(a,z){a.files_.push(z);this.fileOps_--;gB(this)};
OL.prototype.handleFileError_=function(){this.hasError_=!0;this.fileOps_--;gB(this)};
var mSE=function(a,z){this.entry=a;this.parent=z};var fQ=function(a){_.HV.call(this);_.Sg(a,"drop",this.onObjectsDropped_,!1,this);_.Sg(a,"dragenter",this.onFilesDragged_,!1,this);_.Sg(a,"dragover",this.onFilesDragged_,!1,this);_.Sg(a,"dragleave",this.onDragLeave_,!1,this);_.Sg(a,"dragend",this.onDragLeave_,!1,this)};
_.rL(fQ,_.HV);var yYj=function(a,z){_.AH.call(this,"f");this.files=a;this.directories=z};
_.rL(yYj,_.AH);var kLw=function(){_.AH.call(this,"h")};
_.rL(kLw,_.AH);var MQO=function(){_.AH.call(this,"i")};
_.rL(MQO,_.AH);var cYE=function(){_.AH.call(this,"g")};
_.rL(cYE,_.AH);fQ.prototype.onObjectsDropped_=function(a){var z=this;a.preventDefault();var I=a.event_.dataTransfer;if((a=I&&I.items)&&a.length>0&&a[0].webkitGetAsEntry){I=[];for(var J=[],r=0;r<a.length;r++){var P=a[r].webkitGetAsEntry();P?I.push(P):J.push(a[r])}new OL(I,function(N,u,E){E?z.dispatchEvent(new cYE("Error occurred while reading from the file system.")):z.dispatchEvent(new yYj(N,u,J))})}else(a=I&&I.files)&&this.dispatchEvent(new yYj(Array.from(a),[]))};
fQ.prototype.onFilesDragged_=function(a){a.type==="dragenter"&&this.dispatchEvent(new kLw);a.preventDefault()};
fQ.prototype.onDragLeave_=function(){this.dispatchEvent(new MQO)};var YBE=function(a,z){this.JSC$11943_name_=a;this.inputElement_=z};
YBE.prototype.getName=function(){return this.JSC$11943_name_};
YBE.prototype.getInputElement=function(){return this.inputElement_};var AV=function(a,z,I){z=z===void 0?"single_file":z;I=I===void 0?[]:I;_.HV.call(this);this.overlayTarget_=a;this.parentOverlay_=a!=null?a.parentNode:_.OS("scotty-overlay-parent");this.selectorType_=z;this.acceptTypes_=I;this.overlay_=qBo(this,this.overlayTarget_,this.selectorType_,this.acceptTypes_)};
_.b(AV,_.HV);
var qBo=function(a,z,I,J){var r=document.createElement("input");r.setAttribute("type","file");r.setAttribute("name","Filedata");_.Sg(r,"change",a.onFilesSelected_,!1,a);I==="multiple_file"&&(r.multiple="true");I==="single_directory"&&(r.webkitdirectory="true");J.length>0&&r.setAttribute("accept",J.join(","));r.style.position="absolute";r.style.overflow="hidden";r.style.height="0px";r.style.width="0px";r.style.opacity="0";r.setAttribute("aria-hidden","true");r.setAttribute("tabIndex",-1);if(a.overlayTarget_!=
null)return r.style.height=z.offsetHeight+"px",r.style.width=z.offsetWidth+"px",a.parentOverlay_&&(a.parentOverlay_.style.position="relative"),_.XO(r,z),Du(r,new _.GB(z.offsetLeft,z.offsetTop)),r;a.parentOverlay_.appendChild(r);return r};
AV.prototype.click=function(){this.overlay_.click()};
AV.prototype.onFilesSelected_=function(a){a:{try{var z=(new XMLHttpRequest).upload!==void 0;break a}catch(O){}z=!1}if(z){var I;a=Array.from((I=a.target.files)!=null?I:[]);I=[];if(this.selectorType_==="single_directory"&&(_.ue||cy||_.tY)){I=new BU("");if(File.prototype.hasOwnProperty("webkitRelativePath"))for(z=0;z<a.length;z++)for(var J=a[z],r=J.webkitRelativePath.split("/"),P=I,N=0;N<r.length;N++){var u=r[N];if(N==r.length-1){u!="."&&P.files_.push(J);break}var E=P.directoryMap_[u];E==void 0&&(u=
E=new BU(u),P.directoryMap_[u.getName()]=u,P.directories_.push(u));P=E}I=I.directories_}this.dispatchEvent(new esi(a,I,null))}else a=a.target.value,a.match(/^c:\\fakepath\\/i)&&(a=a.substring(12)),this.dispatchEvent(new esi([],[],new YBE(a,this.overlay_)));this.parentOverlay_.removeChild(this.overlay_);this.overlay_=qBo(this,this.overlayTarget_,this.selectorType_,this.acceptTypes_)};
var esi=function(a,z){_.AH.call(this,"j");this.files=a;this.directories=z};
_.b(esi,_.AH);var auI=function(a){this.uploadUrl_=a};var jco=function(){_.HV.call(this)};
_.rL(jco,_.HV);var sL=function(a){_.AH.call(this,a)};
_.rL(sL,_.AH);var nQ=function(a){_.AH.call(this,a)};
_.rL(nQ,_.AH);var zCO=function(a,z,I,J,r){_.HV.call(this);I=document.createElement("form");I.setAttribute("method",z);I.setAttribute("enctype","multipart/form-data");I.setAttribute("encoding","multipart/form-data");z=document.createElement("input");z.setAttribute("type","hidden");z.setAttribute("name","metadata");z.setAttribute("value",r);I.appendChild(z);I.appendChild(J);this.JSC$11960_form_=I;a=new _.cJ(a);_.lE(a,"upload_protocol","multipart");this.JSC$11960_url_=a.toString();this.JSC$11960_request_=new rh;this.state_=
"Ready";this.JSC$11960_errorDescription_=null;this.JSC$11960_eventHandler_=new _.PJ(this);_.t7(this,this.JSC$11960_eventHandler_);this.JSC$11960_eventHandler_.listen(this.JSC$11960_request_,"success",this.onTransferSuccess_);this.JSC$11960_eventHandler_.listen(this.JSC$11960_request_,"error",this.onTransferError_)};
_.b(zCO,jco);_.Z=zCO.prototype;_.Z.run=function(){this.state_="Transferring";var a=this.JSC$11960_request_,z=this.JSC$11960_form_;if(a.JSC$11379_active_)throw Error("me");var I=new _.cJ(this.JSC$11960_url_||z.action);a.JSC$11379_form_=z;z=a.JSC$11379_form_;I=_.W9(I.toString());I!==void 0&&(z.action=I);vNl(a)};
_.Z.getResponseCode=function(){return null};
_.Z.getResponseText=function(){return this.JSC$11960_request_&&this.JSC$11960_request_.getResponseText()||null};
_.Z.JSC$29293_getErrorDescription=function(){return this.JSC$11960_errorDescription_};
_.Z.cancel=function(){this.JSC$11960_request_&&this.JSC$11960_request_.abort();this.state_="Cancelled";this.dispatchEvent(new sL("o"))};
_.Z.pause=function(){};
_.Z.onTransferSuccess_=function(){this.state_="Complete";this.dispatchEvent(new sL("l"))};
_.Z.onTransferError_=function(){this.JSC$11960_errorDescription_="Transfer failed.";this.state_="Error";this.dispatchEvent(new sL("n"))};var KQ=function(){_.GV.call(this)};
_.b(KQ,_.GV);KQ.prototype.createXhr=function(){var a=_.GV.prototype.createXhr.call(this);a.upload&&(a.upload.onprogress=(0,_.HW)(this.onProgress_,this));return a};
KQ.prototype.onProgress_=function(a){this.dispatchEvent(a)};var Iuw=function(){this.attempt_=-1;this.delayCallId_=null;this.maxDelayMs_=6E4;this.maxAttempts_=-1},rTi=function(a,z){var I=a.attempt_+1;
if(a.maxAttempts_>0&&I>a.maxAttempts_)return!1;I==0?z():a.delayCallId_=Sq(function(){a.delayCallId_=null;z()},JTw(a),a);
a.attempt_=I;return!0};
Iuw.prototype.reset=function(){this.delayCallId_&&_.IE.clearTimeout(this.delayCallId_);this.attempt_=-1};
var JTw=function(a){var z=250*Math.pow(2,a.attempt_);a.maxDelayMs_>=0&&(z=Math.min(z,a.maxDelayMs_));return z};var oTx=["Content-Length","Content-Type","Content-Encoding","Transfer-Encoding"];var Fu=function(){_.HV.call(this);this.JSC$11970_request_=this.state_=null;this.JSC$11970_withCredentials_=!1;this.transferHandle_=null;this.offset_=this.JSC$11970_bytesTransferred_=0;this.retryIterator_=new Iuw;this.retryIterator_.maxAttempts_=6;this.retryIterator_.maxDelayMs_=6E4;this.JSC$11970_errorDescription_=null;this.JSC$11970_eventHandler_=new _.PJ(this);_.t7(this,this.JSC$11970_eventHandler_);this.JSC$11970_url_=this.blob_=null;this.JSC$11970_method_=void 0;this.chunkSize_=this.JSC$11970_metadata_=
this.JSC$11970_headers_=null;this.requireUploadRequestModification_=!1;this.originalBlobSize_=0;this.detectCorruptedBlobEnabled_=!1;this.lastCommandResponseCode_=this.JSC$11970_responseText_=this.JSC$11970_responseCode_=null;this.pauseRequested_=!1;this.stateAfterUnpausing_=null};
_.rL(Fu,jco);_.Z=Fu.prototype;_.Z.run=function(){HU(this)};
_.Z.getResponseCode=function(){return this.JSC$11970_responseCode_};
_.Z.getResponseText=function(){return this.JSC$11970_responseText_};
_.Z.JSC$29293_getErrorDescription=function(){return this.JSC$11970_errorDescription_};
_.Z.cancel=function(){if(this.state_!="Response received"&&this.state_!="Error"){this.JSC$11970_eventHandler_.removeAll();this.JSC$11970_request_&&this.JSC$11970_request_.abort();this.retryIterator_.reset();var a=this.state_==="Paused"?this.stateAfterUnpausing_:this.state_;if(a==="Upload"||a==="Query")a=new KQ,a.JSC$9754_withCredentials_=this.JSC$11970_withCredentials_,a.send(this.transferHandle_.uploadUrl_,"POST","",{"X-Goog-Upload-Command":"cancel"});this.state_="Cancel";this.JSC$11970_bytesTransferred_=
0;this.dispatchEvent(new sL("o"))}};
_.Z.pause=function(){this.pauseRequested_=!0};
var HU=function(a){var z=a.state_;a.pauseRequested_?(a.pauseRequested_=!1,a.stateAfterUnpausing_=z,a.state_="Paused"):rTi(a.retryIterator_,function(){switch(a.state_){case "Start":a.JSC$11970_request_=new KQ;var I=_.x8.clone(a.JSC$11970_headers_);a.blob_.size!=null&&(I["Content-Length"]=a.blob_.size);I=Uk$(I);I["X-Goog-Upload-Protocol"]="resumable";I["X-Goog-Upload-Command"]="start";a.JSC$11970_eventHandler_.removeAll();a.JSC$11970_eventHandler_.listen(a.JSC$11970_request_,"complete",a.onStartComplete_);
a.JSC$11970_request_.JSC$9754_withCredentials_=a.JSC$11970_withCredentials_;a.JSC$11970_request_.send(a.JSC$11970_url_,a.JSC$11970_method_,a.JSC$11970_metadata_,I);a.lastCommandResponseCode_=null;a.dispatchEvent(new nQ("q"));break;case "Upload":I=a.transferHandle_.uploadUrl_;var J=a.blob_.size;if(E01()){var r=a.chunkSize_;var P=a.offset_+r>=J;J=ude(a.blob_,a.offset_,P?J:a.offset_+r)}else a.offset_=0,J=a.blob_,P=!0;a.JSC$11970_request_=new KQ;a.JSC$11970_request_.JSC$9754_withCredentials_=a.JSC$11970_withCredentials_;
a.JSC$11970_eventHandler_.removeAll();a.JSC$11970_eventHandler_.listen(a.JSC$11970_request_,"progress",a.onUploadProgress_);r=(0,_.HW)(a.JSC$11972_onUploadComplete_,a,a.offset_+J.size,P);a.JSC$11970_eventHandler_.listen(a.JSC$11970_request_,"complete",r);a.lastCommandResponseCode_=null;a.dispatchEvent(new nQ("q"));P=Object.assign({},a.JSC$11970_headers_||{},{"X-Goog-Upload-Command":"upload"+(P?", finalize":""),"X-Goog-Upload-Offset":a.offset_});a.JSC$11970_request_.send(I,"POST",J,P);break;case "Query":a.JSC$11970_request_=
new KQ;a.JSC$11970_eventHandler_.removeAll();a.JSC$11970_eventHandler_.listen(a.JSC$11970_request_,"complete",a.onQueryComplete_);I=Object.assign({},a.JSC$11970_headers_||{},{"X-Goog-Upload-Command":"query"});a.JSC$11970_request_.send(a.transferHandle_.uploadUrl_,"POST","",I);a.lastCommandResponseCode_=null;a.dispatchEvent(new nQ("q"));break;default:throw Error("bf");}})||bc(a,"Transfer encountered too many consecutive failures.")},bc=function(a,z){a.state_="Error";
a.JSC$11970_errorDescription_=z;a.dispatchEvent(new sL("n"))};
Fu.prototype.onStartComplete_=function(a){var z=a.target;this.lastCommandResponseCode_=z.getStatus();this.dispatchEvent(new nQ("r"));if(P3j(z))Zxi(this,z);else if(C3f(z)){a=yc(a.target.getAllResponseHeaders());for(var I in a)_.Pp(I.toLowerCase(),"x-goog-upload-header-");this.dispatchEvent(new sL("m"));I=id(a,"X-Goog-Upload-URL");a=(a=id(a,"X-Goog-Upload-Chunk-Granularity"))?parseInt(a,10):1;I===void 0||isNaN(a)||a<=0?bc(this,"Server returned invalid headers."):(this.chunkSize_=Math.floor(1073741824/
a)*a,this.transferHandle_=new auI(I),this.dispatchEvent(new sL("p")),this.state_="Upload",this.retryIterator_.reset(),HU(this))}else HU(this)};
Fu.prototype.onUploadProgress_=function(a){this.JSC$11970_bytesTransferred_=this.offset_+a.loaded;this.dispatchEvent(new sL("k"))};
Fu.prototype.JSC$11972_onUploadComplete_=function(a,z,I){var J=this,r,P;return _.t(function(N){switch(N.nextAddress){case 1:r=I.target;J.lastCommandResponseCode_=r.getStatus();J.dispatchEvent(new nQ("r"));if(Ncv(r)||r.getStatus()==404)return J.JSC$11970_bytesTransferred_=a,Zxi(J,r),N.return();if(C3f(r)){N.jumpTo(2);break}if(!(P=J.detectCorruptedBlobEnabled_)){N.jumpTo(3);break}return N.yield(tNi(J),4);case 4:P=N.yieldResult;case 3:if(P)return bc(J,"Blob has been modified or corrupted."),N.return();
J.requireUploadRequestModification_=r.getStatus()==400;J.state_="Query";HU(J);return N.return();case 2:if(z)return bc(J,"Got a non-final success response after issuing a finalize command."),N.return();J.JSC$11970_bytesTransferred_=a;J.offset_=a;J.retryIterator_.reset();HU(J);return N.return()}})};
Fu.prototype.onQueryComplete_=function(a){var z=a.target;this.lastCommandResponseCode_=z.getStatus();this.dispatchEvent(new nQ("r"));P3j(z)?(z.getStatus()===200&&(this.JSC$11970_bytesTransferred_=this.blob_.size),Zxi(this,z)):C3f(z)?(a=yc(a.target.getAllResponseHeaders()),a=parseInt(id(a,"X-Goog-Upload-Size-Received"),10),isNaN(a)?bc(this,"Server did not respond with current offset."):a<this.offset_?bc(this,"Server lost bytes! Expected an offset of at least "+this.offset_+", but got an offset of "+
a+"."):this.requireUploadRequestModification_&&this.offset_===a?bc(this,"Server returned the same offset as the last failed upload attempt."):(this.requireUploadRequestModification_=!1,this.offset_<a&&this.retryIterator_.reset(),this.offset_=this.JSC$11970_bytesTransferred_=a,this.state_="Upload",HU(this))):HU(this)};
var Zxi=function(a,z){a.JSC$11970_responseCode_=z.getStatus();var I=yc(z.getAllResponseHeaders());Dkp(I);a.JSC$11970_responseText_=z.getResponseText();a.state_="Response received";a.dispatchEvent(new sL("l"))},C3f=function(a){var z=a.getStatus();
a=yc(a.getAllResponseHeaders());a=id(a,"X-Goog-Upload-Status");return z===200&&a==="active"},Ncv=function(a){a=yc(a.getAllResponseHeaders());
return id(a,"X-Goog-Upload-Status")==="final"},P3j=function(a){if(Ncv(a))return!0;
a=a.getStatus();return a>=400&&a<500},tNi=function(a){var z;
return _.t(function(I){if(I.nextAddress==1){if(!a.blob_||a.originalBlobSize_<=0)return I.return(!1);if(a.blob_.size!==a.originalBlobSize_)return I.return(!0);_.BP(I,2);if(z=ude(a.blob_,0,1)){var J=I.yield,r=new lA,P=yvX(r);r.reader_.readAsBinaryString(z);I=J.call(I,P,4)}else I=I.return(!0);return I}if(I.nextAddress!=2)return I.return(a.blob_.size!==a.originalBlobSize_);_.sk(I);return I.return(!0)})};var uOG=function(a,z,I,J,r,P){_.HV.call(this);this.payload_=J;this.JSC$11973_url_=a;this.JSC$11973_method_=z;this.JSC$11973_headers_=I;this.JSC$11973_metadata_=r;this.encoding_=P||"binary";a=new _.iA;this.boundary_="uploader-"+DJ()+"-"+a.JSC$11228_toIsoString();this.JSC$11973_responseText_=this.JSC$11973_responseCode_=this.transferRequest_=null;this.state_="Ready";this.JSC$11973_errorDescription_=null;this.JSC$11973_eventHandler_=new _.PJ(this);_.t7(this,this.JSC$11973_eventHandler_)};
_.b(uOG,jco);_.Z=uOG.prototype;
_.Z.run=function(){var a=_.x8.clone(this.JSC$11973_headers_);this.payload_.length!=null&&(a["Content-Length"]=this.payload_.length);a=Uk$(a);a["X-Goog-Upload-Protocol"]="multipart";a["Content-Type"]="multipart/related; boundary="+this.boundary_;this.state_="Transferring";this.transferRequest_=new KQ;this.JSC$11973_eventHandler_.removeAll();this.JSC$11973_eventHandler_.listen(this.transferRequest_,"progress",this.onTransferProgress_);this.JSC$11973_eventHandler_.listen(this.transferRequest_,"complete",
this.onTransferComplete_);this.transferRequest_.send(this.JSC$11973_url_,this.JSC$11973_method_,"--"+this.boundary_+'\r\nContent-Disposition: form-data; name="metadata"\r\n\r\n'+(this.JSC$11973_metadata_+"\r\n--")+this.boundary_+'\r\nContent-Disposition: form-data; name="Filedata"\r\nContent-Transfer-Encoding: '+(this.encoding_+"\r\n\r\n")+this.payload_+"\r\n--"+this.boundary_+"--\r\n",a)};
_.Z.getResponseCode=function(){return this.JSC$11973_responseCode_};
_.Z.getResponseText=function(){return this.JSC$11973_responseText_};
_.Z.JSC$29293_getErrorDescription=function(){return this.JSC$11973_errorDescription_};
_.Z.cancel=function(){this.state_!="Complete"&&this.state_!="Error"&&(this.JSC$11973_eventHandler_.removeAll(),this.transferRequest_&&this.transferRequest_.abort(),this.state_="Cancel",this.dispatchEvent(new sL("o")))};
_.Z.pause=function(){};
_.Z.onTransferProgress_=function(){this.dispatchEvent(new sL("k"))};
_.Z.onTransferComplete_=function(a){var z=a.target.getStatus();z===void 0||z===-1?(this.JSC$11973_errorDescription_="Connection broken before response was received.",this.state_="Error",this.dispatchEvent(new sL("n"))):(this.JSC$11973_responseCode_=z,a=a.target,z=yc(a.getAllResponseHeaders()),Dkp(z),this.JSC$11973_responseText_=a.getResponseText(),this.state_="Complete",this.dispatchEvent(new sL("l")))};_.EBw=function(a,z,I,J){J=J===void 0?!1:J;if(I instanceof YBE)return new zCO(a,"POST",z,I.getInputElement(),"");if(typeof I==="string"||I instanceof String)return new uOG(a,"POST",z,I,"");var r=new Fu(void 0);r.JSC$11970_url_=a;r.JSC$11970_method_="POST";r.JSC$11970_headers_=z;r.blob_=I;r.originalBlobSize_=I.size;r.JSC$11970_metadata_="";J&&(r.JSC$11970_withCredentials_=J);r.state_="Start";return r};var hV=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.GY(a)};
_.b(hV,_.ju);_.Z=hV.prototype;_.Z.getEnableSsEngine=function(){return _.SQ(this,2)};
_.Z.getEnableAwr=function(){return _.SQ(this,3)};
_.Z.getAlohaAutoGaRollout=function(){return _.SQ(this,5)};
_.Z.getEnableConfigurator=function(){return _.SQ(this,6)};
_.Z.getEnableMweb=function(){return _.SQ(this,7)};
var gBf=function(){var a=Bcj();return _.vJ(a,7,!0)};
hV.prototype.getEnableCtlConsentCheckbox=function(){return _.SQ(this,8)};
hV.prototype.getEnableIframe=function(){return _.SQ(this,9)};
var Bcj=function(){var a=new hV;a=_.vJ(a,5,!0);a=_.vJ(a,2,!0);a=_.vJ(a,4,!1);a=_.vJ(a,8,!0);return _.vJ(a,9,!0)};
hV.prototype.getEnableScreenshotNudge=function(){return _.SQ(this,10)};
var OxJ=function(){var a=gBf();return _.vJ(a,10,!0)};
hV.prototype.getEnableWebStartupConfigEndpoint=function(){return _.SQ(this,11)};
hV.prototype.getEnableJunkNudge=function(){return _.SQ(this,12)};
var rA3=function(){var a=OxJ();return _.vJ(a,12,!0)};
_.Z=hV.prototype;_.Z.getEnableConfiguratorLocale=function(){return _.SQ(this,13)};
_.Z.getEnableTinyNoPointer=function(){return _.SQ(this,14)};
_.Z.getEnableSupportSessionLogging=function(){return _.SQ(this,15)};
_.Z.getEnableFileUploadForScreenshot=function(){return _.SQ(this,16)};
_.Z.getEnableDirectDeflectionForSingleCategory=function(){return _.SQ(this,17)};
_.Z.getEnableImageSanitization=function(){return _.SQ(this,18)};
_.Z.getEnableAlohaBinarySplit=function(){return _.SQ(this,19)};
_.Z.getEnableDbFeedbackIntents=function(){return _.SQ(this,20)};
_.Z.getEnableMarkMandatoryFieldsWithRequired=function(){return _.SQ(this,21)};
_.Z.getEnableFeedbackCategoryCustomUi=function(){return _.SQ(this,22)};
_.Z.getEnableRealtimeCtl=function(){return _.SQ(this,23)};var JAm=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.GY(a)};
_.b(JAm,_.ju);var Rn1=[/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 lPE="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 pDx=_.kK(["https://www.gstatic.com/uservoice/feedback/client/web/","/main_light_binary.js"]),wDO=_.kK(["https://www.gstatic.com/uservoice/feedback/client/web/","/main_binary__",".js"]);var y47,c4M,ko$,Y5p;var fuG,ATe;
fuG=function(a,z,I){a.timeOfStartCall=(new Date).getTime();var J=I||_.IE,r=J.document,P=a.nonce||_.m9(J.document);P&&!a.nonce&&(a.nonce=P);if(a.flow=="help"){var N=_.DH("document.location.href",J);!a.helpCenterContext&&N&&(a.helpCenterContext=N.substring(0,1200));N=!0;if(z&&JSON&&JSON.stringify){var u=JSON.stringify(z);(N=u.length<=1200)&&(a.psdJson=u)}N||(z={invalidPsd:!0})}z=[a,z,I];J.GOOGLE_FEEDBACK_START_ARGUMENTS=z;I=a.feedbackServerUri||"//www.google.com/tools/feedback";if(N=J.GOOGLE_FEEDBACK_START)N.apply(J,z);
else{J=I+"/load.js?";for(var E in a)z=a[E],z==null||_.md(z)||(J+=encodeURIComponent(E)+"="+encodeURIComponent(z)+"&");a=nB(r).createElement("SCRIPT");P&&a.setAttribute("nonce",P);_.c9(a,_.H9(J));r.body.appendChild(a)}};
ATe=function(a,z,I,J){var r,P;_.t(function(N){r=I||_.IE;var u=a.serverEnvironment==="DEV",E=I||_.IE;E=a.nonce||_.m9(E.document);u={integrationKeys:{productId:a.productId,feedbackBucket:a.bucket,triggerId:a.triggerId},callbacks:{onClose:a.callback,onLoad:a.onLoadCallback},formContent:{locale:a.locale,disableScreenshot:a.disableScreenshotting,productDisplayName:void 0,announcement:void 0,issueCategories:void 0,includeSeveritySelection:void 0,customImageSrc:void 0,thankYouMessage:void 0,userEmail:void 0,
defaultFormInputValues:void 0,defaultFormInputValuesString:void 0,abuseLink:a.abuseLink,additionalDataConsent:a.additionalDataConsent},initializationData:{isLocalServer:u,nonce:E,useNightlyRelease:u,feedbackJsUrl:void 0,feedbackCssUrl:void 0,feedbackJsUrlSerialized:void 0,feedbackCssUrlSerialized:void 0,submissionServerUri:a.feedbackServerUri,colorScheme:a.colorScheme},extraData:{productVersion:a.productVersion,authUser:a.authuser,configuratorId:a.configuratorId,customZIndex:a.customZIndex,tinyNoPointer:a.tinyNoPointer,
allowNonLoggedInFeedback:a.allowNonLoggedInFeedback,enableAnonymousFeedback:a.enableAnonymousFeedback}};z&&(E=new Map(Object.entries(z)),u.extraData.productSpecificData=E);P=u;return N.yield(j4p(P,J,r),0)})};
_.sci=function(a,z,I){try{if(a.flow==="help"){var J=a.helpCenterPath.replace(/^\//,"");_.wO(I||window,"https://support.google.com/"+J)}else a.flow==="submit"?fuG(a,z,I):P_1(a.productId,a.feedbackServerUri).then(function(r){r=_.JC(r,hV,1);var P=!FQ3||(r==null?void 0:r.getEnableMweb()),N=!a.tinyNoPointer||(r==null?void 0:r.getEnableTinyNoPointer());!r||r.getAlohaAutoGaRollout()&&P&&N?ATe(a,z,I,r):fuG(a,z,I)},function(r){r&&r.name!=="DuplicateFormError"&&fuG(a,z,I)})}catch(r){ATe(a,z,I,null)}};
_.qe("userfeedback.api.startFeedback",_.sci);var ZEi=/https?:\/\/\S+\.\S+/,C_i=[/^https?:\/\/[0-9a-zA-Z_.-]+\.youtube\.com(?:\/[^\?#]*)?(?:\?[^#]*)?(?:#.*)?$/i,/^https?:\/\/youtube\.com(?:\/[^\?#]*)?(?:\?[^#]*)?(?:#.*)?$/i,/^https?:\/\/youtu\.be(?:\/[^\?#]*)?(?:\?[^#]*)?(?:#.*)?$/i],Na3=[/^[https?:\/\/]*[0-9a-zA-Z_.-]*youtube\.com[\/]+redirect\?.*$/i,/^[https?:\/\/]*[0-9a-zA-Z_.-]*youtu.be[\/]+redirect\?.*$/i];var DqE=function(a){var z=a.split(""),I=[-263237435,15,z,function(J,r,P){var N=r.length;P.forEach(function(u,E,O){this.push(O[E]=r[(r.indexOf(u)-r.indexOf(this[E])+E+N--)%r.length])},J.split(""))},
function(J,r){J=(J%r.length+r.length)%r.length;r.splice(-J).reverse().forEach(function(P){r.unshift(P)})},
"response",function(){for(var J=64,r=[];++J-r.length-32;){switch(J){case 58:J-=14;case 91:case 92:case 93:continue;case 123:J=47;case 94:case 95:case 96:continue;case 46:J=95}r.push(String.fromCharCode(J))}return r},
null,12,1540023973,65941107,null,z,function(J,r){for(J=(J%r.length+r.length)%r.length;J--;)r.unshift(r.pop())},
695603893,function(J){for(var r=J.length;r;)J.push(J.splice(--r,1)[0])},
"'[;'[(",function(J,r){J.push(r)},
null,function(J,r,P,N,u){return r(P,N,u)},
"continuation",z,function(J,r){if(J.length!=0){r=(r%J.length+J.length)%J.length;var P=J[0];J[0]=J[r];J[r]=P}},
function(){for(var J=64,r=[];++J-r.length-32;){switch(J){case 91:J=44;continue;case 123:J=65;break;case 65:J-=18;continue;case 58:J=96;continue;case 46:J=95}r.push(String.fromCharCode(J))}return r},
'"),/]];'];I[7]=I;I[11]=I;I[18]=I;try{(((0,I[15])(I[21]),I[22])(I[11],I[9]),I[22])(I[new Date("1970-01-01T04:30:12.000+04:30")/1E3],I[1]),((0,I[22])(I[11],I[23]),I[4])(I[10],I[18]),(0,I[20])(I[21],I[14])<<(0,I[17])(I[18],I[1]),(0,I[4])(I[8],I[21]),(0,I[19])((0,I[19])((0,I[17])(I[7],I[9]),I[3],I[20],(0,I[6])(),I[2]),I[3],I[5],(0,I[15])(),I[2])}catch(J){return"aTlOUOubTO4AP____8P_"+a}return z.join("")};_.nBw=new _.jv("runAttestationCommand");var Kgw=new _.jv("verifyCommand");_.Vw=new _.jv("accessibilityContext");var FgJ=new _.jv("accessibilityData");var Hxf=new _.jv("profileCardCommand");var vnI=new _.jv("signInEndpoint");var x7G=new _.jv("signOutEndpoint");var hCw;_.bxX=new _.jv("accountItemSectionRenderer");hCw=new _.jv("accountItemRenderer");_.VNe=new _.jv("saveCommandToSessionStorageAction");var QcJ=new _.jv("crossAccountChannelTransferEndpoint");var V91=new _.jv("getAccountMenuEndpoint");_.QId=new _.jv("getAccountSwitcherEndpoint");var hNG=new _.jv("getAccountsListEndpoint");var Stv=new _.jv("getAccountsListInnertubeEndpoint");_.Qw=new _.jv("addToToastAction");var ixf=new _.jv("hideEnclosingAction");_.SG=new _.jv("replaceEnclosingAction");var xHv=new _.jv("buttonRefreshAction");var vBG=new _.jv("adsControlFlowOpportunityReceivedCommand");var G2j=new _.jv("openAdAllowlistInstructionCommand");var $Hl=new _.jv("videoMastheadAdPrimaryVideoRenderer");var Xrw=new _.jv("displayAdRenderer");var e1E=new _.jv("instreamVideoAdRenderer");_.Tco=new _.jv("inFeedAdLayoutRenderer");var dHi=new _.jv("sequenceItemInPlayerAdLayoutRenderer");_.WgG=new _.jv("adSlotRenderer");var oBf=new _.jv("adAvatarViewModel");var UHv=new _.jv("adBadgeViewModel");var DHl=new _.jv("adImageViewModel");var azE=new _.jv("reelsAdCardButtonedViewModel");var RCI=new _.jv("reelsPlayerOverlayLayoutViewModel");var LgO=new _.jv("showSchedulingPanelCommand");var luj=new _.jv("backstageCommentsRenderer");var prI=new _.jv("backstageImageRenderer");var wrX=new _.jv("backstagePostRenderer");var mHj=new _.jv("backstageZeroStateRenderer");var yTG=new _.jv("postRenderer");var k2O=new _.jv("sharedPostRenderer");var MNE=new _.jv("createBackstagePostEndpoint");var cTG=new _.jv("getPostVideoPreviewEndpoint");var Ytf=new _.jv("updateBackstagePostEndpoint");var qtJ=new _.jv("filterChipTransformCommand");var eCI=new _.jv("insertRichSectionCommand");var e9G=new _.jv("talkToRecsDeselectCommand");var aoI=new _.jv("talkToRecsNextCommand");var q2E=new _.jv("talkToRecsSelectCommand");var jHo=new _.jv("talkToRecsUpdateTextCommand");_.KH=new _.jv("browseEndpoint");_.zSG=new _.jv("confirmDialogEndpoint");var IoJ=new _.jv("expandOnHoverCardRenderer");var JHf=new _.jv("lumiereShelfDetailsRenderer");var rHo=new _.jv("revealBusinessEmailCommand");var Pnj=new _.jv("validateChannelHandleCommand");var Zpl=new _.jv("channelCreationFormEndpoint");var CnE=new _.jv("aboutChannelViewModel");var NZo=new _.jv("channelThumbnailWithLinkRenderer");var tql=new _.jv("channelCreationServiceEndpoint");var uUE=new _.jv("updateChannelPageSettingsEndpoint");var ic=function(a){this.delegate=a},xF=function(){ic.apply(this,arguments)};
_.b(xF,ic);_.eH.Object.defineProperties(xF.prototype,{entityMetadata:{configurable:!0,enumerable:!0,get:function(){return this.delegate.entityMetadata},
set:function(a){this.delegate.entityMetadata=a}}});var EMv=function(){xF.apply(this,arguments)};
_.b(EMv,xF);EMv.prototype.getAssociations=function(){return[]};
EMv.prototype.getTypeName=function(){return"channelHandle"};var Wx0=new _.jv("webThumbnailDetailsExtensionData");var e_m=new _.jv("commandContext");var BZ1=new _.jv("addVideoLinkAction");var gMw=new _.jv("banAuthorAction");var OpE=new _.jv("createCommentAction");var foo=new _.jv("createCommentReplyAction");var AHX=new _.jv("createPollAction");var sH1=new _.jv("hideIdentityChipAction");var nMO=new _.jv("openUpdateCommentDialogAction");var Kii=new _.jv("pinCommentAction");var Fii=new _.jv("removeCommentAction");var Hpo=new _.jv("unpinCommentAction");var vU=new _.jv("updateBackstagePollAction");var bpv=new _.jv("updateCommentVoteAction");var hSj=new _.jv("commentThreadRenderer");var Vqv=function(){xF.apply(this,arguments)};
_.b(Vqv,xF);Vqv.prototype.getAssociations=function(){return[]};
Vqv.prototype.getTypeName=function(){return"contextNoteFeedEntityPayload"};var QH1=function(){xF.apply(this,arguments)};
_.b(QH1,xF);QH1.prototype.getAssociations=function(){return[]};
QH1.prototype.getTypeName=function(){return"contextNoteUserRatingEntityPayload"};_.Sse=new _.jv("commentDialogRenderer");var ipf=new _.jv("reloadCommentsCommand");var xQO=new _.jv("updateCommentsSettingsEndpoint");var vMX=new _.jv("commentViewModel");var GVE=new _.jv("triStateButtonViewModel");var $Qw=new _.jv("voiceReplyContainerViewModel");_.E_=new _.jv("commandExecutorCommand");var TQ=new _.jv("emoji");var XVj=new _.jv("updateCreatorChannelInnertubeCommand");_.TZi=new _.jv("appendContinuationItemsAction");_.dQe=new _.jv("changeEngagementPanelVisibilityAction");_.R5=new _.jv("continuationCommand");var Wie=new _.jv("hideReportedCommentAction");var oM1=new _.jv("listMutationCommand");_.G7=new _.jv("openPopupAction");var UQE=new _.jv("persistSubscriptionsDisplayPreferencesCommand");var yHf;_.DQv=new _.jv("playlistRemoveVideosAction");_.RSw=new _.jv("updatePlaylistAction");_.LiI=new _.jv("addToPlaylistCommand");_.loi=new _.jv("endPlaylistCommand");_.pVv=new _.jv("recoverPlaylistCommand");_.wVe=new _.jv("refreshPlaylistCommand");_.mQX=new _.jv("refreshFormCommand");yHf=new _.jv("openOnePickAddVideoModalCommand");_.$tI=new _.jv("reloadContinuationItemsCommand");_.kV1=new _.jv("scrollToEngagementPanelCommand");var Mqv=new _.jv("selectCountryCommand");var cHi=new _.jv("showReloadUiCommand");var Ysv=new _.jv("undoFeedbackAction");var qsI=new _.jv("updateButtonAction");var eSi=new _.jv("updateSubscribeButtonAction");var aPo=new _.jv("updateToggleAction");var jRe=new _.jv("webNativeShareCommand");_.O_=new _.jv("webCommandMetadata");_.$F=new _.jv("webHandleServiceEndpointExtension");var $B1=new _.jv("webNavigationEndpointData");var znl=new _.jv("backgroundAudioPlaybackCommand");var IPG=new _.jv("copyLinkCommand");var J4f=new _.jv("playlistVotingRefreshPopupCommand");var r4G=new _.jv("selectChipCommand");var Puw=new _.jv("setCookieCommand");var ZRw=new _.jv("setLocalStorageCommand");var CuO=new _.jv("setPrefStorageEntryCommand");var ETi;_.NGO=new _.jv("settingsUpdateCheckboxCommand");_.taw=new _.jv("settingsUpdateTextCommand");_.u6X=new _.jv("settingsUpdateOptionsCommand");ETi=new _.jv("settingsUpdateSwitchCommand");_.BGv=new _.jv("settingsUpdateConnectedAppRendererCommand");var gTw=new _.jv("updateTextInputFormFieldRendererCommand");var ORI=new _.jv("updateToggleButtonStateCommand");var fPv=new _.jv("updateUrlParamCommand");var A4w=new _.jv("webSubmitFormCommand");var sRI=new _.jv("channelSwitcherPageRenderer"),nTO=new _.jv("updateChannelSwitcherPageAction");_.av=new _.jv("continuationItemRenderer");_.Xu=new _.jv("richItemRenderer");var Kmj=new _.jv("richSectionRenderer");_.FmX=new _.jv("richShelfRenderer");_.HRf=new _.jv("metadataBadgeRenderer");_.bRO=new _.jv("multiPageMenuNotificationSectionRenderer");_.hnI=new _.jv("playlistLoopButtonStateRenderer");var Vaw=new _.jv("claimLegacyYoutubeChannelEndpoint");var QRv=new _.jv("getNotificationMenuEndpoint");var S5G=new _.jv("getSearchInVideoCommand");_.iRe=new _.jv("getTranscriptEndpoint");_.ge=new _.jv("signalServiceEndpoint");var xkl=new _.jv("verifyAgeEndpoint");var l9O=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.GY(a)};
_.b(l9O,_.ju);l9O.prototype.getPath=function(){return _.vb(this,1)};
l9O.prototype.getValue=function(){return _.vb(this,2)};var vTe=[0,_.kR,-1];var Gov=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.GY(a)};
_.b(Gov,_.ju);var LW7=_.tx(Gov,[0,_.MS,vTe]);var $kJ=new _.jv("dismissalEndpoint");var XDE=new _.jv("elementsCommand");_.Wl=new _.jv("innertubeCommand");var TG1=new _.jv("multipleInlinePlaybackCommand");var fCm=new _.jv("loggingDirectives");var dkl=new _.jv("acknowledgeChannelTouStrikeCommand");var WmX=function(){xF.apply(this,arguments)};
_.b(WmX,xF);WmX.prototype.getAssociations=function(){return[]};
WmX.prototype.getTypeName=function(){return"booleanEntity"};var oTi=function(){xF.apply(this,arguments)};
_.b(oTi,xF);oTi.prototype.getAssociations=function(){return[]};
oTi.prototype.getTypeName=function(){return"stringEntity"};var c8=new _.jv("entityBatchUpdate");_.Ukf=new _.jv("entityUpdateCommand");var Dke=function(){xF.apply(this,arguments)};
_.b(Dke,xF);Dke.prototype.getAssociations=function(){var a=[];this.delegate.alternateChannel&&a.push(this.delegate.alternateChannel);this.delegate.alternateChannelList&&a.push.apply(a,_.ih(this.delegate.alternateChannelList));this.delegate.oneofChannelEntity&&a.push(this.delegate.oneofChannelEntity);return[].concat(_.ih(new Set(a)))};
Dke.prototype.getTypeName=function(){return"fakeChannel"};var Rno=function(){xF.apply(this,arguments)};
_.b(Rno,xF);Rno.prototype.getAssociations=function(){var a=[];this.delegate.entryCollection&&a.push(this.delegate.entryCollection);return[].concat(_.ih(new Set(a)))};
Rno.prototype.getTypeName=function(){return"fakePlaylist"};
var Lmv=function(){xF.apply(this,arguments)};
_.b(Lmv,xF);Lmv.prototype.getAssociations=function(){var a=[];this.delegate.parentPlaylist&&a.push(this.delegate.parentPlaylist);if(this.delegate.entries)for(var z=_.C(this.delegate.entries),I=z.next();!I.done;I=z.next())a.push.apply(a,_.ih((new lPw(I.value)).getAssociations()));return[].concat(_.ih(new Set(a)))};
Lmv.prototype.getTypeName=function(){return"fakePlaylistEntryCollection"};
var lPw=function(){ic.apply(this,arguments)};
_.b(lPw,ic);lPw.prototype.getAssociations=function(){var a=[];this.delegate.video&&a.push(this.delegate.video);return[].concat(_.ih(new Set(a)))};var pDi=function(){xF.apply(this,arguments)};
_.b(pDi,xF);pDi.prototype.getAssociations=function(){var a=[];this.delegate.descriptionEntity&&a.push(this.delegate.descriptionEntity);this.delegate.creators&&a.push.apply(a,_.ih(this.delegate.creators));this.delegate.theBiggestFan&&a.push(this.delegate.theBiggestFan);return[].concat(_.ih(new Set(a)))};
pDi.prototype.getTypeName=function(){return"fakeVideo"};
var wDE=function(){xF.apply(this,arguments)};
_.b(wDE,xF);wDE.prototype.getAssociations=function(){return[]};
wDE.prototype.getTypeName=function(){return"fakeVideoDescription"};var mk1=new _.jv("fantasyRosterViewModel");var y4G=new _.jv("addFollowUpSurveyCommand");var kof=new _.jv("getSurveyCommand");var MaO=new _.jv("ratingSurveyOptionRenderer");_.$K=new _.jv("feedbackEndpoint");var c4I=new _.jv("reportHistoryTableCellRenderer"),Y5e=new _.jv("reportHistoryTableTextCellRenderer"),q5j=new _.jv("reportHistoryTableReasonCellRenderer");_.eno=new _.jv("flagEndpoint");var aNe=new _.jv("getFlowCommand");var j4e=new _.jv("submitFormWithValidationFlowCommand");var zew=function(){xF.apply(this,arguments)};
_.b(zew,xF);zew.prototype.getAssociations=function(){return[]};
zew.prototype.getTypeName=function(){return"flowStateEntity"};var INX=new _.jv("flowFormState");var JAO=new _.jv("gameCardRenderer");var rAJ=new _.jv("accountLinkingStateChangedCommand");var P_o=function(){xF.apply(this,arguments)};
_.b(P_o,xF);P_o.prototype.getAssociations=function(){return[]};
P_o.prototype.getTypeName=function(){return"accountLinkStatusEntity"};var ZEj=new _.jv("changeMiniAppPlayStateCommand");var C_j=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.GY(a)};
_.b(C_j,_.ju);var T7=[1,2,3];var NaJ=[0,T7,MC3,_.cwp,LnO];var tvo=_.tx(C_j,NaJ),uNJ=_.uj(NaJ);var EQv=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.GY(a)};
_.b(EQv,_.ju);var BaE=[0,_.wL,_.kR];var gQO=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.GY(a)};
_.b(gQO,_.ju);var OEf=[0,_.kR,_.wL,-1];var dB=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.GY(a)};
_.b(dB,_.ju);var fNG=_.uj([0,1,BaE,_.YR,OEf]);var AAX=new _.jv("miniAppScoreChallengeViewModel");var s4l=new _.jv("miniGameCardViewModel");var nQO=new _.jv("teaserCardViewModel");var Kqf=function(){xF.apply(this,arguments)};
_.b(Kqf,xF);Kqf.prototype.getAssociations=function(){return[]};
Kqf.prototype.getTypeName=function(){return"logoEntity"};_.Fqv=new _.jv("feedbackItemRenderer");var HEi=function(){xF.apply(this,arguments)};
_.b(HEi,xF);HEi.prototype.getAssociations=function(){return[]};
HEi.prototype.getTypeName=function(){return"interstitialInteractionStateEntity"};_.bEj=new _.jv("playerInterstitialRenderer");var hew=new _.jv("getKidsBlocklistPickerCommand");_.Vvl=new _.jv("updateKidsBlacklistEndpoint");var Q4f=new _.jv("learningJourneyCanvasCommand");_.Rd=new _.jv("likeEndpoint");var S9J,iEw,xJJ;S9J=new _.jv("addChatItemAction");iEw=new _.jv("removeChatItemAction");xJJ=new _.jv("markChatItemAsDeletedAction");_.vQw=new _.jv("setLiveChatCollapsedStateAction");var GpJ=function(){xF.apply(this,arguments)};
_.b(GpJ,xF);GpJ.prototype.getAssociations=function(){return[]};
GpJ.prototype.getTypeName=function(){return"liveChatPollStateEntity"};var $Jo=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.GY(a)};
_.b($Jo,_.ju);var XEJ=_.tx($Jo,[0,1,_.wL]);var Taw=new _.jv("liveChatEndpoint");var dJI=new _.jv("liveChatItemContextMenuEndpoint");var Wqw=new _.jv("liveChatReplayEndpoint");_.oQG=new _.jv("emojiPickerRenderer");var UJE=new _.jv("liveChatAuthorBadgeViewModel");var DJO=new _.jv("deleteLiveChatMessageCommand");var Re1=new _.jv("liveChatActionEndpoint");var Lqw=new _.jv("createLiveChatPollEndpoint");var lNw=new _.jv("manageLiveChatUserEndpoint");var pEw=new _.jv("moderateLiveChatEndpoint");_.wEv=new _.jv("sendLiveChatMessageEndpoint");var mJJ=new _.jv("sendLiveChatVoteEndpoint");var yAj=new _.jv("clearLocationCommand");var kpE=new _.jv("resolveLocationCommand");var MvX=new _.jv("interactionLoggingCommandMetadata");var cAI=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.GY(a)};
_.b(cAI,_.ju);var Y9X=function(a,z){return _.PW(a,1,z)};var q9j=[0,_.yg];var eew=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.GY(a)};
_.b(eew,_.ju);var a4i=function(a,z){return AJ(a,1,cAI,z)};eew.prototype.JSC$12067_serializeBinary=W9p([0,_.MS,q9j]);var Gp3={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 joo={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"},
zzo={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 k3$={GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_UNKNOWN:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_UNKNOWN",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_FOR_TESTING:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_FOR_TESTING",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_RESUME_TO_HOME_TTL:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_RESUME_TO_HOME_TTL",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_START_TO_SHORTS_ANALYSIS_SLICE:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_START_TO_SHORTS_ANALYSIS_SLICE",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_DEVICE_LAYER_SLICE:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_DEVICE_LAYER_SLICE",
GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_UNIFIED_LAYER_SLICE:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_UNIFIED_LAYER_SLICE",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_VISITOR_LAYER_SLICE:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_VISITOR_LAYER_SLICE",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_SHOW_SHEET_COMMAND_HANDLER_BLOCK:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_SHOW_SHEET_COMMAND_HANDLER_BLOCK",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_WIZ_NEXT_MIGRATED_COMPONENT:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_WIZ_NEXT_MIGRATED_COMPONENT",
GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_WIZ_NEXT_CHANNEL_NAME_TOOLTIP:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_WIZ_NEXT_CHANNEL_NAME_TOOLTIP",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_ROTATION_LOCK_SUPPORTED:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_ROTATION_LOCK_SUPPORTED",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_THEATER_MODE_ENABLED:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_THEATER_MODE_ENABLED",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_WOULD_SHOW_PIN_SUGGESTION:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_WOULD_SHOW_PIN_SUGGESTION",
GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_WOULD_SHOW_LONG_PRESS_EDU_TOAST:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_WOULD_SHOW_LONG_PRESS_EDU_TOAST",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_WOULD_SHOW_AMBIENT:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_WOULD_SHOW_AMBIENT",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_TIME_WATCHED_PANEL:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_TIME_WATCHED_PANEL",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_SEARCH_FROM_SEARCH_BAR_OVERLAY:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_SEARCH_FROM_SEARCH_BAR_OVERLAY",
GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_WOULD_SHOW_VOICE_SEARCH_EDU_TOAST:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_WOULD_SHOW_VOICE_SEARCH_EDU_TOAST",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_SUGGESTED_LANGUAGE_SELECTED:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_SUGGESTED_LANGUAGE_SELECTED",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_WOULD_TRIGGER_SHORTS_PIP:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_WOULD_TRIGGER_SHORTS_PIP",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_IN_ZP_VOICE_CRASHY_SET:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_IN_ZP_VOICE_CRASHY_SET",
GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_REEL_FAST_SWIPE_SUPPRESSED:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_REEL_FAST_SWIPE_SUPPRESSED",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_REEL_FAST_SWIPE_ALLOWED:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_REEL_FAST_SWIPE_ALLOWED",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_REEL_PULL_TO_REFRESH_ATTEMPT:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_REEL_PULL_TO_REFRESH_ATTEMPT",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_WOULD_BLOCK_KABUKI:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_WOULD_BLOCK_KABUKI",
GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_REEL_TALL_SCREEN:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_REEL_TALL_SCREEN",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_REEL_NORMAL_SCREEN:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_REEL_NORMAL_SCREEN",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_ACCESSIBILITY_MODE_ENABLED:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_ACCESSIBILITY_MODE_ENABLED",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_ACCESSIBILITY_MODE_DISABLED:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_ACCESSIBILITY_MODE_DISABLED",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_AUTOPLAY_ENABLED:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_AUTOPLAY_ENABLED",
GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_CAST_MATCH_OCCURRED:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_CAST_MATCH_OCCURRED",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_EMC3DS_ELIGIBLE:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_EMC3DS_ELIGIBLE",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_ENDSCREEN_TRIGGERED:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_ENDSCREEN_TRIGGERED",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_POSTPLAY_TRIGGERED:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_POSTPLAY_TRIGGERED",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_POSTPLAY_LACT_THRESHOLD_EXCEEDED:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_POSTPLAY_LACT_THRESHOLD_EXCEEDED",
GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_IDENTITIES_STATE_MATCHED_ON_REMOTE_CONNECTION:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_IDENTITIES_STATE_MATCHED_ON_REMOTE_CONNECTION",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_IDENTITIES_STATE_SWITCHABLE_ON_REMOTE_CONNECTION:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_IDENTITIES_STATE_SWITCHABLE_ON_REMOTE_CONNECTION",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_IDENTITIES_STATE_MISATTRIBUTED_ON_REMOTE_CONNECTION:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_IDENTITIES_STATE_MISATTRIBUTED_ON_REMOTE_CONNECTION",
GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_IDENTITIES_TV_IS_SIGNED_IN_ON_REMOTE_CONNECTION:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_IDENTITIES_TV_IS_SIGNED_IN_ON_REMOTE_CONNECTION",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_TV_START_TYPE_COLD_ON_REMOTE_CONNECTION:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_TV_START_TYPE_COLD_ON_REMOTE_CONNECTION",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_TV_START_TYPE_NON_COLD_ON_REMOTE_CONNECTION:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_TV_START_TYPE_NON_COLD_ON_REMOTE_CONNECTION",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_ON_REMOTE_CONNECTION:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_ON_REMOTE_CONNECTION",
GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_COBALT_PERSISTENT_SETTINGS_TEST_VALID:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_COBALT_PERSISTENT_SETTINGS_TEST_VALID",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_COBALT_PERSISTENT_SETTINGS_TEST_INVALID:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_COBALT_PERSISTENT_SETTINGS_TEST_INVALID",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_COBALT_PERSISTENT_SETTINGS_TEST_UNDEFINED:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_COBALT_PERSISTENT_SETTINGS_TEST_UNDEFINED",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_COBALT_PERSISTENT_SETTINGS_TEST_DEFINED:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_COBALT_PERSISTENT_SETTINGS_TEST_DEFINED",
GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_LACT_THRESHOLD_EXCEEDED:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_LACT_THRESHOLD_EXCEEDED",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_ROUND_TRIP_HANDLING_ON_REMOTE_CONNECTION:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_ROUND_TRIP_HANDLING_ON_REMOTE_CONNECTION",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_IDENTITIES_STATE_SWITCHED_ON_REMOTE_CONNECTION_BEFORE_APP_RELOAD:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_IDENTITIES_STATE_SWITCHED_ON_REMOTE_CONNECTION_BEFORE_APP_RELOAD",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_IDENTITIES_STATE_SWITCHED_ON_REMOTE_CONNECTION_AFTER_APP_RELOAD:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_IDENTITIES_STATE_SWITCHED_ON_REMOTE_CONNECTION_AFTER_APP_RELOAD",
GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_EMC3DS_INELIGIBLE:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_EMC3DS_INELIGIBLE",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_TVHTML5_MID_ROLL_THRESHOLD_REACHED:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_TVHTML5_MID_ROLL_THRESHOLD_REACHED",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_EXP_COBALT_HTTP3_CONFIG_PENDING:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_EXP_COBALT_HTTP3_CONFIG_PENDING",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_EXP_COBALT_HTTP3_CONFIG_ACTIVATED:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_EXP_COBALT_HTTP3_CONFIG_ACTIVATED",
GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_EMC3DS_M2_ELIGIBLE:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_EMC3DS_M2_ELIGIBLE",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_ROTATE_DEVICE_TO_LANDSCAPE:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_ROTATE_DEVICE_TO_LANDSCAPE",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_ROTATE_DEVICE_TO_PORTRAIT:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_ROTATE_DEVICE_TO_PORTRAIT",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_EMBEDS_FACEOFF_UI_EVENT:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_EMBEDS_FACEOFF_UI_EVENT",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_EXP_COBALT_HTTP3_CONFIG_RECEIVED:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_EXP_COBALT_HTTP3_CONFIG_RECEIVED",
GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_ELIGIBLE_TO_SUPPRESS_TRANSPORT_CONTROLS_BUTTONS:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_ELIGIBLE_TO_SUPPRESS_TRANSPORT_CONTROLS_BUTTONS",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_USER_HAS_THEATER_MODE_COOKIE_ENABLED:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_USER_HAS_THEATER_MODE_COOKIE_ENABLED",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_DOCUMENT_PICTURE_IN_PICTURE_SUPPORTED:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_DOCUMENT_PICTURE_IN_PICTURE_SUPPORTED",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_SHORTS_NON_DEFAULT_ASPECT_RATIO:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_SHORTS_NON_DEFAULT_ASPECT_RATIO",
GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_PLAYER_IN_SQUEEZEBACK:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_PLAYER_IN_SQUEEZEBACK",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_LIVE_CREATOR_AR_GIFT_RECEIVED:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_LIVE_CREATOR_AR_GIFT_RECEIVED",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_RETURNED_TO_VIDEO_AFTER_FAILED_ATTEMPT_TO_BACKGROUND:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_RETURNED_TO_VIDEO_AFTER_FAILED_ATTEMPT_TO_BACKGROUND"};_.IC0=new _.jv("logFlowLoggingEventCommand");_.FJ=new _.jv("loggingContext");var I4X=new _.jv("audioTrackSelectActionCommand");var JXX=new _.jv("captionLanguageSelectActionCommand");var rXw=new _.jv("showAudioTrackPickerActionCommand");var PAv=new _.jv("showCaptionLanguageSelectActionCommand");var ZeO=new _.jv("dismissDialogEndpoint");var CAJ=new _.jv("dismissPlayerOverlayCommand");var Nno=new _.jv("hideItemSectionVideosByIdCommand");var t$J=new _.jv("showMiniplayerCommand");var uql=function(){xF.apply(this,arguments)};
_.b(uql,xF);uql.prototype.getAssociations=function(){return[]};
uql.prototype.getTypeName=function(){return"downloadQualityPickerEntity"};var EVJ=function(){xF.apply(this,arguments)};
_.b(EVJ,xF);EVJ.prototype.getAssociations=function(){return[]};
EVJ.prototype.getTypeName=function(){return"downloadStatusEntity"};var BnG=function(){xF.apply(this,arguments)};
_.b(BnG,xF);BnG.prototype.getAssociations=function(){return[]};
BnG.prototype.getTypeName=function(){return"downloadsPageRefreshTokenEntity"};var gV1=function(){xF.apply(this,arguments)};
_.b(gV1,xF);gV1.prototype.getAssociations=function(){var a=[];this.delegate.downloadsList&&a.push(this.delegate.downloadsList);this.delegate.smartDownloadsList&&a.push(this.delegate.smartDownloadsList);this.delegate.recommendedDownloadsList&&a.push(this.delegate.recommendedDownloadsList);this.delegate.refresh&&a.push(this.delegate.refresh);return[].concat(_.ih(new Set(a)))};
gV1.prototype.getTypeName=function(){return"mainDownloadsLibraryEntity"};var OeE=function(){xF.apply(this,arguments)};
_.b(OeE,xF);OeE.prototype.getAssociations=function(){var a=[];this.delegate.refresh&&a.push(this.delegate.refresh);if(this.delegate.downloads)for(var z=_.C(this.delegate.downloads),I=z.next();!I.done;I=z.next())a.push.apply(a,_.ih((new f4G(I.value)).getAssociations()));return[].concat(_.ih(new Set(a)))};
OeE.prototype.getTypeName=function(){return"mainDownloadsListEntity"};
var f4G=function(){ic.apply(this,arguments)};
_.b(f4G,ic);f4G.prototype.getAssociations=function(){var a=[];this.delegate.video&&a.push(this.delegate.video);this.delegate.playlist&&a.push(this.delegate.playlist);this.delegate.videoItem&&a.push(this.delegate.videoItem);this.delegate.playlistItem&&a.push(this.delegate.playlistItem);return[].concat(_.ih(new Set(a)))};var AXw=function(){xF.apply(this,arguments)};
_.b(AXw,xF);AXw.prototype.getAssociations=function(){var a=[];this.delegate.localImageEntities&&a.push.apply(a,_.ih(this.delegate.localImageEntities));return[].concat(_.ih(new Set(a)))};
AXw.prototype.getTypeName=function(){return"mainPlaylistDownloadStateEntity"};var soJ=function(){xF.apply(this,arguments)};
_.b(soJ,xF);soJ.prototype.getAssociations=function(){var a=[];this.delegate.playbackData&&a.push(this.delegate.playbackData);this.delegate.localImageEntities&&a.push.apply(a,_.ih(this.delegate.localImageEntities));this.delegate.videoDownloadContextEntity&&a.push(this.delegate.videoDownloadContextEntity);return[].concat(_.ih(new Set(a)))};
soJ.prototype.getTypeName=function(){return"mainVideoDownloadStateEntity"};var nVf=function(){xF.apply(this,arguments)};
_.b(nVf,xF);nVf.prototype.getAssociations=function(){return[]};
nVf.prototype.getTypeName=function(){return"offlineabilityEntity"};var KUw=function(){xF.apply(this,arguments)};
_.b(KUw,xF);KUw.prototype.getAssociations=function(){var a=[];this.delegate.fakeChildren&&a.push.apply(a,_.ih(this.delegate.fakeChildren));return[].concat(_.ih(new Set(a)))};
KUw.prototype.getTypeName=function(){return"orchestrationWebSamplingEntity"};var FUi=function(){xF.apply(this,arguments)};
_.b(FUi,xF);FUi.prototype.getAssociations=function(){var a=[];this.delegate.video&&a.push(this.delegate.video);this.delegate.playbackData&&a.push(this.delegate.playbackData);this.delegate.offlineVideoPolicy&&a.push(this.delegate.offlineVideoPolicy);return[].concat(_.ih(new Set(a)))};
FUi.prototype.getTypeName=function(){return"ytMainDownloadedVideoEntity"};var HeI=function(){xF.apply(this,arguments)};
_.b(HeI,xF);HeI.prototype.getAssociations=function(){return[]};
HeI.prototype.getTypeName=function(){return"continuationTokenEntity"};var bef=function(){xF.apply(this,arguments)};
_.b(bef,xF);bef.prototype.getAssociations=function(){var a=[];this.delegate.channelOwner&&a.push(this.delegate.channelOwner);this.delegate.videos&&a.push.apply(a,_.ih(this.delegate.videos));this.delegate.collaboratorChannels&&a.push.apply(a,_.ih(this.delegate.collaboratorChannels));this.delegate.downloadState&&a.push(this.delegate.downloadState);this.delegate.refresh&&a.push(this.delegate.refresh);return[].concat(_.ih(new Set(a)))};
bef.prototype.getTypeName=function(){return"mainPlaylistEntity"};var hzi=function(){xF.apply(this,arguments)};
_.b(hzi,xF);hzi.prototype.getAssociations=function(){var a=[];this.delegate.video&&a.push(this.delegate.video);this.delegate.channelContributor&&a.push(this.delegate.channelContributor);return[].concat(_.ih(new Set(a)))};
hzi.prototype.getTypeName=function(){return"mainPlaylistVideoEntity"};var V$i=function(){ic.apply(this,arguments)};
_.b(V$i,ic);V$i.prototype.getAssociations=function(){var a=[];this.delegate.recommendedVideoMetadata&&a.push.apply(a,_.ih((new Qov(this.delegate.recommendedVideoMetadata)).getAssociations()));return[].concat(_.ih(new Set(a)))};
var Qov=function(){ic.apply(this,arguments)};
_.b(Qov,ic);Qov.prototype.getAssociations=function(){var a=[];this.delegate.localImageEntities&&a.push.apply(a,_.ih(this.delegate.localImageEntities));this.delegate.videoDownloadContextEntity&&a.push(this.delegate.videoDownloadContextEntity);return[].concat(_.ih(new Set(a)))};var SHE=function(){ic.apply(this,arguments)};
_.b(SHE,ic);SHE.prototype.getAssociations=function(){var a=[];this.delegate.playbackPosition&&a.push(this.delegate.playbackPosition);return[].concat(_.ih(new Set(a)))};var ieE=function(){xF.apply(this,arguments)};
_.b(ieE,xF);ieE.prototype.getAssociations=function(){var a=[];this.delegate.owner&&a.push(this.delegate.owner);this.delegate.downloadState&&a.push(this.delegate.downloadState);this.delegate.userState&&a.push.apply(a,_.ih((new SHE(this.delegate.userState)).getAssociations()));this.delegate.additionalMetadata&&a.push.apply(a,_.ih((new V$i(this.delegate.additionalMetadata)).getAssociations()));return[].concat(_.ih(new Set(a)))};
ieE.prototype.getTypeName=function(){return"mainVideoEntity"};var xge=function(){xF.apply(this,arguments)};
_.b(xge,xF);xge.prototype.getAssociations=function(){var a=[];this.delegate.userChannelDetails&&a.push(this.delegate.userChannelDetails);return[].concat(_.ih(new Set(a)))};
xge.prototype.getTypeName=function(){return"ytMainChannelEntity"};var vVG=function(){xF.apply(this,arguments)};
_.b(vVG,xF);vVG.prototype.getAssociations=function(){var a=[];this.delegate.channelOwner&&a.push(this.delegate.channelOwner);this.delegate.playbackPosition&&a.push(this.delegate.playbackPosition);this.delegate.localImageEntities&&a.push.apply(a,_.ih(this.delegate.localImageEntities));this.delegate.downloadStatus&&a.push(this.delegate.downloadStatus);return[].concat(_.ih(new Set(a)))};
vVG.prototype.getTypeName=function(){return"ytMainVideoEntity"};var SRG=new _.jv("downloadsPageSmartDownloadsOptInBannerParams");var GGG=new _.jv("downloadsPageUpsellBannerParams");var GSO=function(){xF.apply(this,arguments)};
_.b(GSO,xF);GSO.prototype.getAssociations=function(){return[]};
GSO.prototype.getTypeName=function(){return"downloadsPageViewConfigurationEntity"};var $gw=function(){xF.apply(this,arguments)};
_.b($gw,xF);$gw.prototype.getAssociations=function(){return[]};
$gw.prototype.getTypeName=function(){return"likeButtonAnimationEntity"};var XGI=function(){xF.apply(this,arguments)};
_.b(XGI,xF);XGI.prototype.getAssociations=function(){return[]};
XGI.prototype.getTypeName=function(){return"macroMarkerEntity"};var TnE=function(){xF.apply(this,arguments)};
_.b(TnE,xF);TnE.prototype.getAssociations=function(){return[]};
TnE.prototype.getTypeName=function(){return"markersEngagementPanelSyncEntity"};var dgO=function(){xF.apply(this,arguments)};
_.b(dgO,xF);dgO.prototype.getAssociations=function(){return[]};
dgO.prototype.getTypeName=function(){return"markersVisibilityOverrideEntity"};var WUe=function(){xF.apply(this,arguments)};
_.b(WUe,xF);WUe.prototype.getAssociations=function(){return[]};
WUe.prototype.getTypeName=function(){return"playerStateEntity"};var oVG=function(){xF.apply(this,arguments)};
_.b(oVG,xF);oVG.prototype.getAssociations=function(){return[]};
oVG.prototype.getTypeName=function(){return"selectedChipIndexEntityPayload"};var UgG=function(){xF.apply(this,arguments)};
_.b(UgG,xF);UgG.prototype.getAssociations=function(){return[]};
UgG.prototype.getTypeName=function(){return"suggestedFeedbackChipStateEntity"};var Dgw=function(){xF.apply(this,arguments)};
_.b(Dgw,xF);Dgw.prototype.getAssociations=function(){return[]};
Dgw.prototype.getTypeName=function(){return"youchatPendingResponseEntity"};_.WU=new _.jv("dislikeButtonViewModel");_.oy=new _.jv("likeButtonViewModel");var RzO=new _.jv("videoSummaryContentViewModel");var LUf=new _.jv("videoSummaryParagraphViewModel");var l4i=new _.jv("changeTimelyActionVisibilityCommand");var pGj=new _.jv("hideEngagementPanelEndpoint");var wGj=new _.jv("refreshPanelEndpoint");var mg1=new _.jv("scrollToSectionEndpoint");var yXv=new _.jv("seekToVideoTimestampCommand");_.GO=new _.jv("showEngagementPanelEndpoint");var kSi=new _.jv("showTransientPlayerScrimOverlayCommand");var M$e=new _.jv("toggleEngagementPanelCommand");_.cXw=new _.jv("createBroadcastCommand");var YHE=new _.jv("metadataUpdateCommand");var qHj=function(){xF.apply(this,arguments)};
_.b(qHj,xF);qHj.prototype.getAssociations=function(){return[]};
qHj.prototype.getTypeName=function(){return"featuredProductsEntity"};var ezO=function(){xF.apply(this,arguments)};
_.b(ezO,xF);ezO.prototype.getAssociations=function(){return[]};
ezO.prototype.getTypeName=function(){return"pinnedProductEntity"};var afl=function(){xF.apply(this,arguments)};
_.b(afl,xF);afl.prototype.getAssociations=function(){return[]};
afl.prototype.getTypeName=function(){return"trendingOfferEntity"};_.jJe=new _.jv("merchandiseShelfRenderer");var zcv=new _.jv("gridMovieRenderer");_.IfI=new _.jv("movieRenderer");var JNw=function(){xF.apply(this,arguments)};
_.b(JNw,xF);JNw.prototype.getAssociations=function(){var a=[];this.delegate.trackDownloadMetadatas&&a.push.apply(a,_.ih(this.delegate.trackDownloadMetadatas));return[].concat(_.ih(new Set(a)))};
JNw.prototype.getTypeName=function(){return"musicAlbumReleaseDownloadMetadataEntity"};var rNw=function(){xF.apply(this,arguments)};
_.b(rNw,xF);
rNw.prototype.getAssociations=function(){var a=[];this.delegate.downloadedTracks&&a.push.apply(a,_.ih(this.delegate.downloadedTracks));this.delegate.smartDownloadedTracks&&a.push.apply(a,_.ih(this.delegate.smartDownloadedTracks));this.delegate.downloadedEpisodes&&a.push.apply(a,_.ih(this.delegate.downloadedEpisodes));this.delegate.downloadedAlbumReleases&&a.push.apply(a,_.ih(this.delegate.downloadedAlbumReleases));this.delegate.smartDownloadedAlbumReleases&&a.push.apply(a,_.ih(this.delegate.smartDownloadedAlbumReleases));this.delegate.downloadedPlaylists&&
a.push.apply(a,_.ih(this.delegate.downloadedPlaylists));this.delegate.smartDownloadedPlaylists&&a.push.apply(a,_.ih(this.delegate.smartDownloadedPlaylists));this.delegate.metadataOnlyTracks&&a.push.apply(a,_.ih(this.delegate.metadataOnlyTracks));return[].concat(_.ih(new Set(a)))};
rNw.prototype.getTypeName=function(){return"musicDownloadsLibraryEntity"};var PYI=function(){xF.apply(this,arguments)};
_.b(PYI,xF);PYI.prototype.getAssociations=function(){var a=[];this.delegate.trackDownloadMetadatas&&a.push.apply(a,_.ih(this.delegate.trackDownloadMetadatas));return[].concat(_.ih(new Set(a)))};
PYI.prototype.getTypeName=function(){return"musicPlaylistDownloadMetadataEntity"};var Z$o=function(){xF.apply(this,arguments)};
_.b(Z$o,xF);Z$o.prototype.getAssociations=function(){var a=[];this.delegate.playbackData&&a.push(this.delegate.playbackData);this.delegate.localImageEntities&&a.push.apply(a,_.ih(this.delegate.localImageEntities));this.delegate.videoDownloadContextEntity&&a.push(this.delegate.videoDownloadContextEntity);return[].concat(_.ih(new Set(a)))};
Z$o.prototype.getTypeName=function(){return"musicTrackDownloadMetadataEntity"};var CYo=function(){xF.apply(this,arguments)};
_.b(CYo,xF);
CYo.prototype.getAssociations=function(){var a=[];this.delegate.musicLibraryStatusEntity&&a.push(this.delegate.musicLibraryStatusEntity);this.delegate.primaryArtists&&a.push.apply(a,_.ih(this.delegate.primaryArtists));this.delegate.details&&a.push(this.delegate.details);this.delegate.userDetails&&a.push(this.delegate.userDetails);this.delegate.tracks&&a.push.apply(a,_.ih(this.delegate.tracks));this.delegate.share&&a.push(this.delegate.share);this.delegate.downloadMetadata&&a.push(this.delegate.downloadMetadata);this.delegate.refresh&&
a.push(this.delegate.refresh);return[].concat(_.ih(new Set(a)))};
CYo.prototype.getTypeName=function(){return"musicAlbumRelease"};
var Nhj=function(){xF.apply(this,arguments)};
_.b(Nhj,xF);Nhj.prototype.getAssociations=function(){var a=[];this.delegate.albumRelease&&a.push(this.delegate.albumRelease);this.delegate.tracks&&a.push.apply(a,_.ih(this.delegate.tracks));return[].concat(_.ih(new Set(a)))};
Nhj.prototype.getTypeName=function(){return"musicAlbumReleaseDetail"};
var t_1=function(){xF.apply(this,arguments)};
_.b(t_1,xF);t_1.prototype.getAssociations=function(){var a=[];this.delegate.albumRelease&&a.push(this.delegate.albumRelease);return[].concat(_.ih(new Set(a)))};
t_1.prototype.getTypeName=function(){return"musicAlbumReleaseUserDetail"};var u7l=function(){xF.apply(this,arguments)};
_.b(u7l,xF);u7l.prototype.getAssociations=function(){var a=[];this.delegate.details&&a.push(this.delegate.details);this.delegate.userDetails&&a.push(this.delegate.userDetails);return[].concat(_.ih(new Set(a)))};
u7l.prototype.getTypeName=function(){return"musicArtist"};
var EEe=function(){xF.apply(this,arguments)};
_.b(EEe,xF);EEe.prototype.getAssociations=function(){var a=[];this.delegate.parentArtist&&a.push(this.delegate.parentArtist);return[].concat(_.ih(new Set(a)))};
EEe.prototype.getTypeName=function(){return"musicArtistDetail"};
var Bh1=function(){xF.apply(this,arguments)};
_.b(Bh1,xF);Bh1.prototype.getAssociations=function(){var a=[];this.delegate.parentArtist&&a.push(this.delegate.parentArtist);return[].concat(_.ih(new Set(a)))};
Bh1.prototype.getTypeName=function(){return"musicArtistUserDetail"};var gEO=function(){xF.apply(this,arguments)};
_.b(gEO,xF);gEO.prototype.getAssociations=function(){return[]};
gEO.prototype.getTypeName=function(){return"musicLibraryEdit"};var O$E=function(){xF.apply(this,arguments)};
_.b(O$E,xF);O$E.prototype.getAssociations=function(){return[]};
O$E.prototype.getTypeName=function(){return"musicLibraryStatusEntity"};var ffI=function(){xF.apply(this,arguments)};
_.b(ffI,xF);
ffI.prototype.getAssociations=function(){var a=[];this.delegate.tracks&&a.push.apply(a,_.ih(this.delegate.tracks));this.delegate.refresh&&a.push(this.delegate.refresh);this.delegate.musicLibraryStatusEntity&&a.push(this.delegate.musicLibraryStatusEntity);this.delegate.details&&a.push(this.delegate.details);this.delegate.downloadMetadata&&a.push(this.delegate.downloadMetadata);this.delegate.sideloadMetadata&&a.push(this.delegate.sideloadMetadata);this.delegate.userDetails&&a.push(this.delegate.userDetails);this.delegate.entryCollection&&
a.push(this.delegate.entryCollection);this.delegate.share&&a.push(this.delegate.share);this.delegate.podcastShowAdditionalMetadata&&a.push.apply(a,_.ih((new ANw(this.delegate.podcastShowAdditionalMetadata)).getAssociations()));return[].concat(_.ih(new Set(a)))};
ffI.prototype.getTypeName=function(){return"musicPlaylist"};
var ANw=function(){ic.apply(this,arguments)};
_.b(ANw,ic);ANw.prototype.getAssociations=function(){var a=[];this.delegate.creatorEntity&&a.push(this.delegate.creatorEntity);return[].concat(_.ih(new Set(a)))};var sJ1=function(){xF.apply(this,arguments)};
_.b(sJ1,xF);sJ1.prototype.getAssociations=function(){return[]};
sJ1.prototype.getTypeName=function(){return"musicShare"};var nEO=function(){xF.apply(this,arguments)};
_.b(nEO,xF);
nEO.prototype.getAssociations=function(){var a=[];this.delegate.musicLibraryStatusEntity&&a.push(this.delegate.musicLibraryStatusEntity);this.delegate.artists&&a.push.apply(a,_.ih(this.delegate.artists));this.delegate.audioModeVersion&&a.push(this.delegate.audioModeVersion);this.delegate.videoModeVersion&&a.push(this.delegate.videoModeVersion);this.delegate.userDetails&&a.push(this.delegate.userDetails);this.delegate.details&&a.push(this.delegate.details);this.delegate.albumRelease&&a.push(this.delegate.albumRelease);this.delegate.share&&
a.push(this.delegate.share);this.delegate.libraryEdit&&a.push(this.delegate.libraryEdit);this.delegate.downloadMetadata&&a.push(this.delegate.downloadMetadata);this.delegate.playbackPosition&&a.push(this.delegate.playbackPosition);this.delegate.lyrics&&a.push(this.delegate.lyrics);return[].concat(_.ih(new Set(a)))};
nEO.prototype.getTypeName=function(){return"musicTrack"};
var Ktw=function(){xF.apply(this,arguments)};
_.b(Ktw,xF);Ktw.prototype.getAssociations=function(){var a=[];this.delegate.parentTrack&&a.push(this.delegate.parentTrack);return[].concat(_.ih(new Set(a)))};
Ktw.prototype.getTypeName=function(){return"musicTrackDetail"};
var Ft1=function(){xF.apply(this,arguments)};
_.b(Ft1,xF);Ft1.prototype.getAssociations=function(){var a=[];this.delegate.parentTrack&&a.push(this.delegate.parentTrack);return[].concat(_.ih(new Set(a)))};
Ft1.prototype.getTypeName=function(){return"musicTrackUserDetail"};var Ys=new _.jv("musicResponsiveListItemRenderer");var WMp=new _.jv("addToPlaylistEndpoint");var H$1=new _.jv("captionPickerEndpoint");var b$w=new _.jv("suggestStats");var hcJ=new _.jv("backstageImageUploadEndpoint");var V_G=new _.jv("createBackstagePostDialogEndpoint");_.QJO=new _.jv("createCommentReplyDialogEndpoint");_.SxE=new _.jv("updateCommentDialogEndpoint");_.i$X=new _.jv("updateCommentReplyDialogEndpoint");var xbi=new _.jv("menuEndpoint");var xB0=new _.jv("modalEndpoint");var vE1=new _.jv("playlistEditorEndpoint");var GsI=new _.jv("copyTextEndpoint");var $be,XY1;$be=new _.jv("shareEndpoint");XY1=new _.jv("shareEntityEndpoint");_.Tho=new _.jv("shareEntityServiceEndpoint");_.VUd=new _.jv("userFeedbackEndpoint");_.MZ=new _.jv("watchEndpoint");var tzG=new _.jv("watchPlaylistEndpoint");var dbX=new _.jv("addUpcomingEventReminderEndpoint");_.UL=new _.jv("getCommentsFromInboxCommand");var Wtf=new _.jv("notificationOptOutEndpoint");var oEo=new _.jv("recordNotificationInteractionsEndpoint");var UbX=new _.jv("removeUpcomingEventReminderEndpoint");var T9m=new _.jv("getDownloadActionCommand");_.Dbi=new _.jv("offlineOrchestrationActionCommand");var Rco=function(){xF.apply(this,arguments)};
_.b(Rco,xF);Rco.prototype.getAssociations=function(){return[]};
Rco.prototype.getTypeName=function(){return"captionTrack"};var LtO=function(){xF.apply(this,arguments)};
_.b(LtO,xF);LtO.prototype.getAssociations=function(){return[]};
LtO.prototype.getTypeName=function(){return"offlineOrchestrationActionWrapperEntity"};var lfG=function(){xF.apply(this,arguments)};
_.b(lfG,xF);lfG.prototype.getAssociations=function(){return[]};
lfG.prototype.getTypeName=function(){return"offlineVideoPolicy"};var pYe=function(){xF.apply(this,arguments)};
_.b(pYe,xF);pYe.prototype.getAssociations=function(){return[]};
pYe.prototype.getTypeName=function(){return"offlineVideoStreams"};var wYe=function(){xF.apply(this,arguments)};
_.b(wYe,xF);wYe.prototype.getAssociations=function(){var a=[];this.delegate.transfer&&a.push(this.delegate.transfer);this.delegate.adsPlaybackData&&a.push.apply(a,_.ih(this.delegate.adsPlaybackData));this.delegate.drmLicense&&a.push(this.delegate.drmLicense);this.delegate.offlineVideoPolicy&&a.push(this.delegate.offlineVideoPolicy);this.delegate.videoDownloadContextEntity&&a.push(this.delegate.videoDownloadContextEntity);return[].concat(_.ih(new Set(a)))};
wYe.prototype.getTypeName=function(){return"playbackData"};var mbv=function(){xF.apply(this,arguments)};
_.b(mbv,xF);mbv.prototype.getAssociations=function(){return[]};
mbv.prototype.getTypeName=function(){return"refresh"};var yNI=function(){xF.apply(this,arguments)};
_.b(yNI,xF);yNI.prototype.getAssociations=function(){var a=[];this.delegate.offlineVideoStreams&&a.push.apply(a,_.ih(this.delegate.offlineVideoStreams));this.delegate.captionTrack&&a.push.apply(a,_.ih(this.delegate.captionTrack));return[].concat(_.ih(new Set(a)))};
yNI.prototype.getTypeName=function(){return"transfer"};var ksE=function(){xF.apply(this,arguments)};
_.b(ksE,xF);ksE.prototype.getAssociations=function(){return[]};
ksE.prototype.getTypeName=function(){return"videoDownloadContextEntity"};var M_O=new _.jv("showMoreDrawerCommand");var cNJ=new _.jv("updateEngagementPanelContentCommand");var Yxf=new _.jv("getPdgBuyFlowCommand");var qx1=new _.jv("liveChatPurchaseMessageEndpoint");var eci=new _.jv("openSuperStickerBuyFlowCommand");var a5f=new _.jv("updatePdgFeatureEnablementCommand");var jyJ=function(){xF.apply(this,arguments)};
_.b(jyJ,xF);jyJ.prototype.getAssociations=function(){return[]};
jyJ.prototype.getTypeName=function(){return"liveViewerLeaderboardChatEntryPointStateEntity"};var zoI=function(){xF.apply(this,arguments)};
_.b(zoI,xF);zoI.prototype.getAssociations=function(){return[]};
zoI.prototype.getTypeName=function(){return"liveViewerLeaderboardPointsEntity"};_.I5G=new _.jv("pdgCommentChipRenderer");_.JVO=new _.jv("permissionRoleBottomBarRenderer");_.rVO=new _.jv("updatePermissionRoleCommand");var Pcf=new _.jv("prefetchWatchCommand");var ZQl=new _.jv("updatePlayerErrorMessageCommand");var SZm=new _.jv("toggleCaptionsVisibilityCommand");_.Cc1=new _.jv("quickActionsViewModel");var NB1=new _.jv("playerResponse");var tGl=new _.jv("playlistRenderer");_.uuJ=new _.jv("playlistVideoListRenderer");_.D5=new _.jv("playlistEditEndpoint");var EFJ=new _.jv("createImagePollCommand");var BBl=new _.jv("createQuizCommand");var gFj=new _.jv("quizRenderer");var OQw=new _.jv("uploadedVideoRenderer");var f5w=new _.jv("decorateMessageEndpoint");var AVJ=new _.jv("lpOfferCardOptionViewModel");var syf=new _.jv("sfvAudioItemPlaybackCommand");var nFX=function(){xF.apply(this,arguments)};
_.b(nFX,xF);nFX.prototype.getAssociations=function(){return[]};
nFX.prototype.getTypeName=function(){return"sfvAudioItemCurrentlyPlayingEntity"};_.Ry=new _.jv("reelNonVideoContentEndpoint");_.hv=new _.jv("reelWatchEndpoint");_.LQ=new _.jv("reelItemRenderer");_.KSj=new _.jv("reelMetapanelViewModel");_.FSG=new _.jv("reelNonVideoContentRenderer");_.HQO=new _.jv("reelPlayerOverlayRenderer");var bQE=new _.jv("shortsLockupViewModel");var hoJ=new _.jv("sponsorButtonViewModel");var VG1=new _.jv("reelItemWatchResponse");var QyI=new _.jv("textBadgeRenderer");_.lc=new _.jv("buttonRenderer");_.pQ=new _.jv("toggleButtonRenderer");var wxp=new _.jv("switchButtonViewModel");_.SLi=new _.jv("confirmDialogRenderer");var iQG;iQG=new _.jv("menuRenderer");_.xyw=new _.jv("menuFlexibleItemRenderer");var vFv=new _.jv("pollRenderer");_.G7I=new _.jv("backgroundPromoRenderer");var XUX;_.$yX=new _.jv("chipCloudRenderer");XUX=new _.jv("chipCloudChipRenderer");var TBw=new _.jv("dropdownRenderer");var dyE=new _.jv("gridVideoRenderer");_.WSw=new _.jv("itemSectionRenderer");_.oFe=new _.jv("messageRenderer");var UyJ=new _.jv("sortFilterHeaderRenderer");_.wB=new _.jv("videoRenderer");var Dyo=new _.jv("resolveUrlCommandMetadata");var RoX=function(){xF.apply(this,arguments)};
_.b(RoX,xF);RoX.prototype.getAssociations=function(){return[]};
RoX.prototype.getTypeName=function(){return"saveToPlaylistListEntity"};_.LSj=new _.jv("getAnswerCommand");_.Fb=new _.jv("searchEndpoint");var l5I=new _.jv("genAiRichTextViewModel");var Xz0=new _.jv("overviewAnswerViewModel");var pUi=new _.jv("addToPlaylistServiceEndpoint");var wUv=new _.jv("clearSearchHistoryEndpoint");var myv=new _.jv("clearWatchHistoryEndpoint");var yVl=new _.jv("webSerializedServiceEndpointExtension");_.k7f=new _.jv("createCommentEndpoint");var MGX=new _.jv("createCommentReplyEndpoint");var cVf=new _.jv("performCommentActionEndpoint");var YLi=new _.jv("updateCommentEndpoint");var qLO=new _.jv("updateCommentReplyEndpoint");_.mS=new _.jv("createPlaylistServiceEndpoint");var eoj=new _.jv("deletePlaylistEndpoint");var aOj=new _.jv("deleteVideoEndpoint");var dti=new _.jv("getReportFormEndpoint");var j7i=new _.jv("modifyChannelNotificationPreferenceEndpoint");var qUG;_.nU=new _.jv("offlinePlaylistEndpoint");qUG={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 eUM;_.fU=new _.jv("offlineVideoEndpoint");eUM={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 z3l=new _.jv("pingingEndpoint");_.IOO=new _.jv("selectActiveIdentityEndpoint");var Jqe=new _.jv("setSettingEndpoint");var a6m=new _.jv("undoFeedbackEndpoint");var rqe=new _.jv("unsubscribeEndpoint");_.PzX=new _.jv("updatedMetadataEndpoint");var ZJE=function(){xF.apply(this,arguments)};
_.b(ZJE,xF);ZJE.prototype.getAssociations=function(){return[]};
ZJE.prototype.getTypeName=function(){return"settingEntity"};_.Cze=new _.jv("updateLocalAppSettingCommand");var NRj=new _.jv("saveImageToDeviceEndpoint");var tKv=new _.jv("shareImageCommand");var uoe=new _.jv("sharingProviderDataCommand");var E3l=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.GY(a)};
_.b(E3l,_.ju);var BRE=[0,_.kR,-1];E3l.prototype.JSC$12268_serializeBinary=W9p(BRE);var g3I=_.uj(BRE);var OJG=new _.jv("userMentionSuggestionRenderer");var fOG=new _.jv("liveChatTunnelCommand");var Aqj=new _.jv("showSponsorshipsGiftOfferDialogCommand");var s7f=new _.jv("sponsorshipsScrollableShelfViewModel");var n3G=new _.jv("updateUpcomingEventReminderButtonStateCommand");var KhG=new _.jv("upcomingEventReminderButtonStateRenderer");var FhE=new _.jv("subscribeEndpoint");var HJe=new _.jv("registerTasksCommand");var bJi=new _.jv("hideSnackbarCommand");var h3i=new _.jv("showDialogCommand");_.Sr=new _.jv("showSheetCommand");var VKf=new _.jv("showSnackbarCommand");var Q7G=function(){xF.apply(this,arguments)};
_.b(Q7G,xF);Q7G.prototype.getAssociations=function(){return[]};
Q7G.prototype.getTypeName=function(){return"chipEntity"};var SRl=function(){xF.apply(this,arguments)};
_.b(SRl,xF);SRl.prototype.getAssociations=function(){return[]};
SRl.prototype.getTypeName=function(){return"dismissState"};_.Dc=new _.jv("avatarViewModel");var iJw=new _.jv("badgeViewModel");_.yw=new _.jv("buttonViewModel");_.kF=new _.jv("chipViewModel");var ID0=new _.jv("collectionThumbnailViewModel");var x_w=new _.jv("contentPreviewImageViewModel");var v3o=new _.jv("decoratedAvatarViewModel");_.JZ$=new _.jv("engagementBarViewModel");_.GGw=new _.jv("imageBannerViewModel");var $_v=new _.jv("lockupContentMetadataRowExtension");_.XS1=new _.jv("lockupMetadataViewModel");_.TRl=new _.jv("lockupViewModel");var d_v=new _.jv("avatarStackViewModel");_.Whe=new _.jv("contentMetadataViewModel");var o3J=function(){xF.apply(this,arguments)};
_.b(o3J,xF);o3J.prototype.getAssociations=function(){return[]};
o3J.prototype.getTypeName=function(){return"pageHeaderEntity"};_.lGO=new _.jv("pageHeaderViewModel");var pww=new _.jv("snackbarViewModel");var wwX=new _.jv("thumbnailHoverOverlayToggleActionsViewModel");_.My=new _.jv("toggleButtonViewModel");var mse=function(){xF.apply(this,arguments)};
_.b(mse,xF);mse.prototype.getAssociations=function(){return[]};
mse.prototype.getTypeName=function(){return"votingEntity"};_.rZ0=new _.jv("votingViewModel");var yKw=new _.jv("sectionHeaderViewModel");var kc1=new _.jv("notifyDropdownOptionSelectedCommand");var OCI=new _.jv("listViewModel");_.iq=new _.jv("listItemViewModel");var zK3=new _.jv("toggleableListItemViewModel");var MPO=new _.jv("dialogHeaderViewModel");var cKv=function(){xF.apply(this,arguments)};
_.b(cKv,xF);cKv.prototype.getAssociations=function(){return[]};
cKv.prototype.getTypeName=function(){return"emojiCustomizationSetEntity"};var Y4w=function(){xF.apply(this,arguments)};
_.b(Y4w,xF);Y4w.prototype.getAssociations=function(){return[]};
Y4w.prototype.getTypeName=function(){return"emojiFountainDataEntity"};var q4f=function(){xF.apply(this,arguments)};
_.b(q4f,xF);q4f.prototype.getAssociations=function(){return[]};
q4f.prototype.getTypeName=function(){return"liveReactionsDataEntity"};_.eGw=new _.jv("transcriptSubmitCaptionCorrectionCommand");var ase=function(){xF.apply(this,arguments)};
_.b(ase,xF);ase.prototype.getAssociations=function(){return[]};
ase.prototype.getTypeName=function(){return"buttonEntity"};var AdM=new _.jv("unpluggedStringRunImage");var jTX=new _.jv("tabViewModel");var zRG=new _.jv("tabbedViewModel");var Isf=function(){xF.apply(this,arguments)};
_.b(Isf,xF);Isf.prototype.getAssociations=function(){return[]};
Isf.prototype.getTypeName=function(){return"videoPlaybackPositionEntity"};_.Jti=new _.jv("updateDescriptionAction");var rtI=new _.jv("updateToggleButtonTextAction");_.P4v=new _.jv("autoplaySwitchButtonRenderer");var d0;_.Z_w=new _.jv("multiMarkersPlayerBarRenderer");d0=new _.jv("chapterRenderer");var C4O=new _.jv("heatMarkerRenderer");var uYG=new _.jv("heatmapRenderer");var N7X=new _.jv("smartSkipPlayerScrimOverlayRenderer");var tYo=new _.jv("timedMarkerDecorationRenderer");var lDG=new _.jv("postWebToNativeMessageCommand");var ds=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.GY(a)};
_.b(ds,_.ju);ds.prototype.getMethodName=function(){return _.vb(this,1)};var uWf=[0,_.kR,-2];ds.prototype.JSC$12288_serializeBinary=W9p(uWf);var Eul=_.tx(ds,uWf);var B7J=new _.jv("whitelistEditEndpoint");var guw=new _.jv("clearUrlParamCommand");var O_f=new _.jv("commerceActionCommand");_.fsO=new _.jv("getPaymentInstrumentsParamsCommand");var Atv=new _.jv("getPaymentsClientTokenCommand");var sTJ=new _.jv("googlePaymentBillingCommand");var nuj=new _.jv("googlePaymentPurchaseManagerCommand");_.KJw=new _.jv("logGtmCommand");var FJO=new _.jv("updateCardItemOnClickCommand");_.H_I=new _.jv("ypcPauseSubscriptionCommand");_.b_w=new _.jv("ypcResumeSubscriptionCommand");var hRi=function(){xF.apply(this,arguments)};
_.b(hRi,xF);hRi.prototype.getAssociations=function(){return[]};
hRi.prototype.getTypeName=function(){return"commerceAcquisitionClientPayloadEntity"};var VYw=function(){xF.apply(this,arguments)};
_.b(VYw,xF);VYw.prototype.getAssociations=function(){return[]};
VYw.prototype.getTypeName=function(){return"commerceCartListEntity"};var QT1=function(){xF.apply(this,arguments)};
_.b(QT1,xF);QT1.prototype.getAssociations=function(){return[]};
QT1.prototype.getTypeName=function(){return"iconBadgeEntity"};var STf=function(){xF.apply(this,arguments)};
_.b(STf,xF);STf.prototype.getAssociations=function(){return[]};
STf.prototype.getTypeName=function(){return"pdpStateEntity"};var i_J=function(){xF.apply(this,arguments)};
_.b(i_J,xF);i_J.prototype.getAssociations=function(){return[]};
i_J.prototype.getTypeName=function(){return"quantityIncrementerEntity"};var SQI=new _.jv("ypcOffersEndpoint");var xTf=new _.jv("cardItemRenderer"),vuv=new _.jv("cardItemTextRenderer");var Gll=new _.jv("commerceCartItemQuantityPickerRenderer");var $TJ=new _.jv("linkCardRenderer");var WNM=new _.jv("quantityIncrementerButtonViewModel");var Xcv=new _.jv("quantityIncrementerViewModel");var T7J=new _.jv("themedImageViewModel");_.dTw=new _.jv("ypcCancelRecurrenceEndpoint");var WJX=new _.jv("ypcCompleteTransactionEndpoint");_.ouG=new _.jv("ypcGetCartEndpoint");_.er=new _.jv("ypcGetOffersEndpoint");_.cU=new _.jv("ypcHandleTransactionEndpoint");var UTO=new _.jv("ypcLogWalletAnalyticDataEndpoint");_.DTG=new _.jv("ypcRedeemCodeEndpoint");var RRf=new _.jv("ypcUpdateFopEndpoint");CQ(Z5(1),rB(4));xNG((new MessageChannel).port2);var LJv=function(){this.register=new Map},XE3=function(a,z,I){a=a+"_"+z;
YF.register.has(a)?I=YF.register.get(a):(I=I(),YF.register.set(a,I));return I},lsl=function(a){a=_.C(a.register.values());
for(var z=a.next();!z.done;z=a.next())_.ug(z.value,"ABORTED")};
LJv.prototype.clear=function(){lsl(this);this.register.clear()};
var YF=new LJv;var BaO=Date.now().toString();var fN7=OE$();var heE={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 pcf,$2;pcf=1;$2=function(a){this.veData=a};
_.VX=function(a){return new $2({trackingParams:a})};
_.uq=function(a,z,I,J,r,P){var N=pcf++;return new $2({veType:a,veCounter:N,elementIndex:I,dataElement:z,youtubeData:J,jspbYoutubeData:r,loggingDirectives:P})};
_.Z=$2.prototype;
_.Z.getAsJson=function(){var a={};this.veData.trackingParams!==void 0?a.trackingParams=this.veData.trackingParams:(a.veType=this.veData.veType,this.veData.veCounter!==void 0&&(a.veCounter=this.veData.veCounter),this.veData.elementIndex!==void 0&&(a.elementIndex=this.veData.elementIndex));this.veData.dataElement!==void 0&&(a.dataElement=this.veData.dataElement.getAsJson());this.veData.youtubeData!==void 0&&(a.youtubeData=this.veData.youtubeData);this.veData.isCounterfactual&&(a.isCounterfactual=!0);
return a};
_.Z.getAsJspb=function(){var a=new eXe;this.veData.trackingParams!==void 0?a.setTrackingParams(this.veData.trackingParams):(this.veData.veType!==void 0&&_.dL(a,2,this.veData.veType),this.veData.veCounter!==void 0&&_.dL(a,6,this.veData.veCounter),this.veData.elementIndex!==void 0&&_.dL(a,3,this.veData.elementIndex),this.veData.isCounterfactual&&_.PW(a,5,!0));if(this.veData.dataElement!==void 0){var z=this.veData.dataElement.getAsJspb();_.gO(a,7,z)}this.veData.youtubeData!==void 0&&_.gO(a,8,this.veData.jspbYoutubeData);
return a};
_.Z.toString=function(){return JSON.stringify(this.getAsJson())};
_.Z.isClientVe=function(){return!this.veData.trackingParams&&!!this.veData.veType};
_.Z.getLoggingDirectives=function(){return this.veData.loggingDirectives};_.qe("yt_logging_screen.getRootVeType",FqI);_.qe("yt_logging_screen.getCurrentCsn",_.TX);_.qe("yt_logging_screen.getCttAuthInfo",dF);_.qe("yt_logging_screen.setCurrentScreen",_.WJ);var wcw=function(){this.events=new Map},mTw=function(a){var z=[];
a=_.C(a.events.values());for(var I=a.next();!I.done;I=a.next())z.push(I.value);return z};
wcw.prototype.clear=function(){this.events.clear()};var klJ=function(){this.logTransport=new yt1;this.loggedEventRegister=new wcw;this.unloggedEventRegister=new wcw;this.eventsCount=0;this.flushInterval=3E4;this.JSC$12325_flushTimer=new _.rF(this.flushInterval);this.JSC$12325_flushTimer.listen("tick",this.flush,!1,this)};
klJ.prototype.flush=function(){if(this.eventsCount){var a={loggedEvents:mTw(this.loggedEventRegister),unloggedEvents:mTw(this.unloggedEventRegister)};if(_.K("export_player_version_to_ytconfig")){var z;(z=_.Xw("PLAYER_CLIENT_VERSION"))?(z=z.split("-")[0].replace(/\./g,""),z=isNaN(Number(z))?"0":z):z="";var I=_.Xw("PLAYER_CLIENT_VERSION");if(I){I=I.split("-");var J="";I.length>1&&(J=I[I.length-1]);I=EQI(J.startsWith("canary_experiment")?"canary":J.startsWith("canary_control")?"control":"none")}else I=
"CLIENT_CANARY_STATE_UNKNOWN";a.dimensions={playerClientVersion:z,playerCanaryState:I}}this.logTransport.flush(a);this.loggedEventRegister.clear();this.unloggedEventRegister.clear();this.eventsCount=0;this.JSC$12325_flushTimer.enabled&&this.JSC$12325_flushTimer.stop()}};
var MYv=function(a){qy==null&&(qy=new klJ);var z=qy;var I=z.loggedEventRegister;a.dimensions=a.dimensions||{};a.dimensions.csn=_.TX()||"";var J=S93(a.dimensions).join(";");if(a.records!=null)if(I.events.has(J)){var r;(r=I.events.get(J).records)==null||r.push.apply(r,_.ih(a.records))}else I.events.set(J,a);z.JSC$12325_flushTimer.enabled||z.JSC$12325_flushTimer.start();z.eventsCount++;z.eventsCount>=100&&z.flush()};var yt1=function(){};
yt1.prototype.flush=function(a,z){_.K("enable_client_sli_logging")&&_.x0("sliEventBatch",a,{sendIsolatedPayload:!!z})};var qy;var YTI;YTI=function(a){var z=cte;a=a===void 0?{}:a;z=z.name;var I=$J1("SUCCESS");MYv({dimensions:a,records:[{name:z,state:"SLI_STATE_END",status:I}]})};
_.TaG=function(a,z,I,J){this.name=a;this.sliId=z;this.timeoutMs=I;this.statusOnTimeout=J;this.logSliId="";this.timeoutHandle=-1;this.ongoing=!1;this.dimensions={}};
_.TaG.prototype.getId=function(){return this.sliId};
_.tI=function(a,z){z=z===void 0?{}:z;a.ongoing||(a.ongoing=!0,a.dimensions=z,a.logSliId=iUl(),MYv({dimensions:a.dimensions,records:[{name:a.name,state:"SLI_STATE_START",sliId:a.logSliId}]}),a.timeoutMs>0&&(a.timeoutHandle=setTimeout(function(){_.ug(a,a.statusOnTimeout)},a.timeoutMs)))};
_.ug=function(a,z){a.ongoing&&(a.timeoutMs>0&&clearTimeout(a.timeoutHandle),a.ongoing=!1,z={dimensions:a.dimensions,records:[{name:a.name,status:$J1(z),state:"SLI_STATE_END",sliId:a.logSliId}]},YF.register.delete(a.name+"_"+a.sliId),MYv(z))};var cte=new function(){this.name="SLI_NAME_YOUTUBE_WEB_SESSION_PARTITION"};var qTX=function(){xF.apply(this,arguments)};
_.b(qTX,xF);qTX.prototype.getAssociations=function(){return[]};
qTX.prototype.getTypeName=function(){return"videoOverviewAsyncDataEntity"};var aQd=new _.jv("highlightTextDecoratorColorMapExtension");var qqp=new _.jv("styleRunColorMapExtension");var LqE=_.kK(["data-"]),wEI={};var yAi={};var eG=function(a){this.wrappedPromise_=a===void 0?null:a;this.state_=0;this.JSC$12357_value_=null};
eG.prototype.then=function(a,z,I){return this.wrappedPromise_?this.wrappedPromise_.then(a,z,I):this.state_===1&&a?(a=a.call(I,this.JSC$12357_value_))&&typeof a.then==="function"?a:_.a7(a):this.state_===2&&z?(a=z.call(I,this.JSC$12357_value_))&&typeof a.then==="function"?a:_.eRe(a):this};
eG.prototype.getValue=function(){return this.JSC$12357_value_};
eG.prototype.isRejected=function(){return this.state_==2};
yyw(eG);_.eRe=function(a){var z=new eG;a=a===void 0?null:a;z.state_=2;z.JSC$12357_value_=a===void 0?null:a;return z};
_.a7=function(a){var z=new eG;a=a===void 0?null:a;z.state_=1;z.JSC$12357_value_=a===void 0?null:a;return z};var CA3="absolute_experiments app conditional_experiments debugcss debugjs expflag forced_experiments pbj pbjreload sbb spf spfreload sr_bns_address sttick".split(" ");var ae1=["load","abort","error"],jK=function(a,z,I){this.transformedData=null;this.invalidAspectRatio=this.cropped=!1;this.JSC$12377_maxAspectRatio_=a;this.disableAnimation_=z===void 0?!1:z;this.disableExifRotation_=I===void 0?!1:I;this.JSC$12377_image_=new Image;this.angle_=this.dataUrl_=this.mime_=this.JSC$12377_reject_=this.resolve_=null};
jK.prototype.transform=function(a){var z=this;this.mime_=a.type;MQ(Mtj(a),this.dataUrlRead_,this.readError_,this);MQ(kre(a.slice(0,65536)),this.exifRead_,this.readError_,this);return new Promise(function(I,J){z.resolve_=I;z.JSC$12377_reject_=J})};
jK.prototype.dataUrlRead_=function(a){this.dataUrl_=a;this.angle_!=null&&jWX(this)};
jK.prototype.exifRead_=function(a){if(this.disableExifRotation_)this.angle_=0;else{a:if(a=new DataView(a),a.byteLength<2||a.getUint16(0)!==65496)a=-2;else{for(var z=2,I=a.byteLength;z<I;){var J=a.getUint16(z),r=a.getUint16(z+2);if(J===65505){z+=4;J=a.getUint32(z);r=a.getUint16(z+4);if(J!==1165519206||r!==0)break;z+=6;J=a.getUint16(z)===18761;z+=a.getUint32(z+4,J);r=a.getUint16(z,J);z+=2;for(var P=0;P<r;P++){if(a.getUint16(z,J)===274){z+=8;a=a.getUint16(z,J);break a}z+=12}}else if(J>>8!==255)break;
else z+=r+2}a=-1}switch(a){case 8:this.angle_=270;break;case 3:this.angle_=180;break;case 6:this.angle_=90;break;default:this.angle_=0}}this.dataUrl_!=null&&jWX(this)};
jK.prototype.readError_=function(){this.JSC$12377_reject_()};
var jWX=function(a){bN(a.JSC$12377_image_,ae1,a.completeTransform_,!1,a);a.JSC$12377_image_.src=_.XG(a.dataUrl_).toString();a.JSC$12377_image_.src!=$P.toString()&&a.JSC$12377_image_.src.substr(0,11)==="data:image/"||a.JSC$12377_reject_()};
jK.prototype.completeTransform_=function(){if(this.JSC$12377_image_.src!=$P.toString()){var a=_.XG(this.dataUrl_),z=this.JSC$12377_image_.naturalHeight?this.JSC$12377_image_.naturalWidth/this.JSC$12377_image_.naturalHeight:null;this.invalidAspectRatio=z>this.JSC$12377_maxAspectRatio_||z<1/this.JSC$12377_maxAspectRatio_;if(this.mime_!=="image/gif"||this.disableAnimation_){var I=this.JSC$12377_image_.naturalWidth,J=this.JSC$12377_image_.naturalHeight,r=z=0,P=this.JSC$12377_image_.naturalHeight?this.JSC$12377_image_.naturalWidth/
this.JSC$12377_image_.naturalHeight:null;P>this.JSC$12377_maxAspectRatio_?(I=this.JSC$12377_maxAspectRatio_*J,z=(I-this.JSC$12377_image_.naturalWidth)/2,this.cropped=!0):P<1/this.JSC$12377_maxAspectRatio_?(J=this.JSC$12377_maxAspectRatio_*I,r=(J-this.JSC$12377_image_.naturalHeight)/2,this.cropped=!0):this.mime_==="image/gif"&&this.disableAnimation_&&(this.cropped=!0);if(this.angle_==90||this.angle_==270)P=I,I=J,J=P,P=z,z=r,r=P;switch(this.angle_){case 90:r-=I;break;case 180:z-=I;r-=J;break;case 270:z-=
J}this.cropped||this.angle_%360!==0?(a=document.createElement("canvas"),a.width=I||1,a.height=J||1,this.JSC$12377_image_.naturalWidth&&this.JSC$12377_image_.naturalHeight&&(I=a.getContext("2d"),I.rotate(Math.PI/180*this.angle_),I.drawImage(this.JSC$12377_image_,z,r,this.JSC$12377_image_.naturalWidth,this.JSC$12377_image_.naturalHeight)),this.transformedData=_.XG(a.toDataURL(this.mime_))):this.transformedData=a}else this.transformedData=a;this.resolve_(this)}};var zG=function(a,z){_.AH.call(this,a);this.value=z};
_.b(zG,_.AH);
var I7=function(a,z,I,J,r,P,N){N=N===void 0?!1:N;_.HV.call(this);var u=this;this.JSC$12382_url_=a;this.channelId_=z;this.maxFileSizeMb_=I;this.JSC$12382_maxAspectRatio_=J;this.dropZoneEl_=r;this.rejectInvalidAspectRatio_=N;this.selectButtonEl_=P;this.JSC$12382_reject_=this.resolve_=this.uploadPromise_=null;this.dropZoneOverlay_=new fQ(this.dropZoneEl_);this.selectOverlay_=new AV(this.selectButtonEl_);this.selectButtonEl_.nextSibling.tagName=="INPUT"&&this.selectButtonEl_.nextSibling.setAttribute("accept","image/*");
this.JSC$12382_image_=this.transfer_=null;this.handler_=new _.PJ(this);_.t7(this,this.handler_);this.handler_.listen(this.dropZoneOverlay_,"f",this.onChange_).listen(this.dropZoneEl_,"dragover",this.onHover_).listen(this.dropZoneEl_,"dragleave",this.onHover_).listen(P,"click",function(){u.selectOverlay_.click()}).listen(this.selectOverlay_,"j",this.onChange_)};
_.b(I7,_.HV);I7.prototype.disposeInternal=function(){for(var a=this.selectButtonEl_.nextSibling;a&&a.parentNode&&a.tagName=="INPUT";)a.parentNode.removeChild(a),a=this.selectButtonEl_.nextSibling;this.cancel();_.HV.prototype.disposeInternal.call(this)};
I7.prototype.uploadPromise=function(){if(this.JSC$12382_image_==null)return null;this.uploadPromise_||z1l(this);return this.uploadPromise_};
I7.prototype.cancel=function(){IeO(this);this.JSC$12382_image_=null};
var IeO=function(a){a.transfer_&&a.transfer_.cancel();a.transfer_=null;a.uploadPromise_=null;a.resolve_=null;a.JSC$12382_reject_=null},z1l=function(a){IeO(a);
a.transfer_=_.EBw(a.JSC$12382_url_,{"X-YouTube-ChannelId":a.channelId_},a.JSC$12382_image_);a.handler_.listenOnce(a.transfer_,"l",a.JSC$12384_onUploadComplete_);a.handler_.listenOnce(a.transfer_,"n",a.onUploadError_);a.transfer_.run();a.uploadPromise_=new Promise(function(z,I){a.resolve_=z;a.JSC$12382_reject_=I})};
_.Z=I7.prototype;_.Z.onChange_=function(a){a.files.length&&(this.JSC$12382_image_=a.files[0],this.JSC$12382_image_.size>1048576*this.maxFileSizeMb_?(this.JSC$12382_image_=null,this.dispatchEvent(new zG("yt.comments.ImageUploadOverlay.FILE_TOO_LARGE_EVENT"))):(z1l(this),(new jK(this.JSC$12382_maxAspectRatio_)).transform(this.JSC$12382_image_).then((0,_.HW)(this.onPreview_,this),(0,_.HW)(this.onPreviewError_,this))))};
_.Z.onPreview_=function(a){if(a.invalidAspectRatio&&(this.rejectInvalidAspectRatio_&&(this.JSC$12382_image_=null),this.dispatchEvent(new zG("yt.comments.ImageUploadOverlay.FILE_INVALID_ASPECT_RATIO_EVENT")),this.rejectInvalidAspectRatio_))return;a.cropped&&this.dispatchEvent(new zG("yt.comments.ImageUploadOverlay.CROPPED_EVENT"));this.dispatchEvent(new zG("yt.comments.ImageUploadOverlay.CHANGE_EVENT",a.transformedData))};
_.Z.onPreviewError_=function(){this.JSC$12382_image_=null;this.dispatchEvent(new zG("yt.comments.ImageUploadOverlay.INVALID_EVENT"))};
_.Z.onHover_=function(a){a.stopPropagation();a.preventDefault();if(a.type==="dragover")a=!0;else if(a.type==="dragleave")a=!1;else return;this.dispatchEvent(new zG("yt.comments.ImageUploadOverlay.HOVER_EVENT",a))};
_.Z.JSC$12384_onUploadComplete_=function(){var a=(0,_.AzX)(this.transfer_.getResponseText());this.resolve_(a.encryptedBlobId)};
_.Z.onUploadError_=function(){this.JSC$12382_reject_();IeO(this)};var JcJ=function(a){a=a||{};var z={},I={};this.url=a.url||"";this.args=a.args||_.x8.clone(z);this.assets=a.assets||{};this.attrs=a.attrs||_.x8.clone(I);this.fallback=a.fallback||null;this.fallbackMessage=a.fallbackMessage||null;this.html5=!!a.html5;this.disable=a.disable||{};this.loaded=!!a.loaded;this.messages=a.messages||{}};
JcJ.prototype.clone=function(){var a=new JcJ,z;for(z in this)if(this.hasOwnProperty(z)){var I=this[z];_.pl(I)=="object"?a[z]=_.x8.clone(I):a[z]=I}return a};var rcG,PfG,ZVo,c0,NIi,tBf,ucw,EIO,BIi,gIG,OVw,feJ,Ace,sWJ,nII,KDj,FDJ,HVw,bVE,h1w,VBi,QWv,SFj,iVG,x5f,vIJ,GtE,$5f,XZw,arG,TI1,d5O,WDw,oIw,U5e,D5I,R1e,LDe,leX,pZO,e8m,wZw,m5i,ycG,ktI,MBO,cce,YFI,qFE,e1w,awX,jpo,z6O,Iww,JMG,rMj,Jq,PQf,Zdf,CQw,NPG,tzl,u3w,Eal,BPX,gaG,Odj,fwi,AMw,spI,nai,KbO,FbJ,Hdw,bdi,h6w,Yb7,VzX,QpI,S3j,idl,xUi,vaG,G4X,$Uv,XsE,TPI,dUf,Wbv,oal,UUJ,DUo,R6w,LbO,lwe,psf,wso,mUO,yMX,k4G,Mzo,cMj;rcG=["account/accounts_list"];PfG=["acknowledge_channel_tou_strike"];ZVo=["notification/add_upcoming_event_reminder"];
_.Cfj=["att/get"];c0=["browse","music/browse","unplugged/browse"];NIi=["channel/claim_legacy_youtube_channel"];tBf=["history/clear_search_history"];ucw=["history/clear_watch_history"];EIO=["comment/perform_comment_action"];BIi=["comment/get_comment_replies"];gIG=["ypc/commerce_action"];OVw=["backstage/create_post"];feJ=["live/create_broadcast"];Ace=["channel/create_channel"];sWJ=["comment/create_comment_reply"];nII=["comment/create_comment"];KDj=["live_chat/create_poll"];FDJ=["playlist/create"];
HVw=["decorate_message"];bVE=["live_chat/delete_message"];h1w=["playlist/delete"];VBi=["video/delete"];QWv=["like/dislike"];SFj=["dismissal/dismiss"];iVG=["flag/flag"];x5f=["flow"];vIJ=["account/account_menu"];GtE=["playlist/get_add_to_playlist"];$5f=["get_answer"];XZw=["channel/get_channel_creation_form"];arG=["offline/get_download_action"];TI1=["kids/get_kids_blocklist_picker"];d5O=["live_chat/get_item_context_menu"];WDw=["live_chat/get_live_chat_message_buy_flow"];oIw=["live_chat/get_live_chat_replay"];
U5e=["live_chat/get_live_chat","live_chat/get_live_interactivity","live_chat/get_streaming_live_chat"];D5I=["live_chat/get_live_chat_super_sticker_buy_flow"];R1e=["notification/get_notification_menu"];LDe=["playlist/get_settings_editor"];leX=["backstage/get_post_video_preview"];pZO=["account/get_profile_card"];e8m=["share/get_share_panel"];wZw=["share/get_sharing_provider_data"];m5i=["get_survey"];ycG=["notification/get_unseen_count"];ktI=["get_user_mention_suggestions"];MBO=["get_watch"];cce=["guide"];
YFI=["feedback"];qFE=["kids/update_blacklist"];e1w=["like/like"];awX=["live_chat/live_chat_action"];jpo=["live_chat/manage_user"];z6O=["video_manager/metadata_update"];Iww=["live_chat/moderate"];JMG=["notification/modify_channel_preference"];rMj=["notification/opt_out"];Jq=["get_panel","get_posts_by_host_panel"];PQf=["player"];Zdf=["browse/edit_playlist"];CQw=["notification/record_interactions"];NPG=["reel/reel_item_watch"];tzl=["reel/reel_watch_sequence"];u3w=["like/removelike"];Eal=["notification/remove_upcoming_event_reminder"];
BPX=["flag/get_form"];gaG=["miniapp/report_value"];Odj=["navigation/resolve_url"];fwi=["channel/reveal_business_email"];AMw=["in_video/search"];spI=["search","sfv/search","unplugged/search"];nai=["live_chat/send_message"];KbO=["live_chat/send_live_chat_vote"];FbJ=["account/set_setting"];Hdw=["submit_caption_correction"];bdi=["submit_form"];h6w=["subscription/subscribe"];Yb7=["get_transcript"];VzX=["resolve_location","unplugged/resolve_location"];QpI=["subscription/unsubscribe"];S3j=["backstage/update_post"];
idl=["channel_edit/update_channel_page_settings"];xUi=["comment/update_comment_reply"];vaG=["comment/update_comment"];G4X=["comment/update_comments_settings"];$Uv=["creator/update_creator_channel"];XsE=["pdg/update_enablement"];TPI=["updated_metadata"];dUf=["channel_edit/validate_channel_handle"];Wbv=["verify_age"];oal=["next","unplugged/watch_next"];UUJ=["whitelist/edit"];DUo=["ypc/cancel_recurrence"];R6w=["ypc/complete_transaction"];LbO=["ypc/get_cart"];lwe=["ypc/get_fix_instrument_params"];
psf=["ypc/get_offers"];wso=["ypc/get_payment_instruments_params"];mUO=["ypc/handle_transaction"];yMX=["ypc/log_payment_server_analytics"];k4G=["ypc/pause_subscription"];Mzo=["ypc/redeem_code"];cMj=["ypc/resume_subscription"];var Y3w=[3611,27686,221058,85013,23462,241187,157557,42016,26926,51236,79148,50160,77504,153587,87907,18630,177018,177023,54445,80935,152172,184553,105675,150723,37521,147285,47786,231255,231254,231258,231259,98349,237299,168271,168954,168277,168273,168270,123695,272018,226987,226990,226988,6827,29434,255010,171388,244189,236208,7282,124448,196088,250897,198104,32276,195115,195114,76278,200635,230594,147868,147869,93911,106531,257234,252598,252597,252600,252599,252596,225031,177843,27259,27262,27263,
21759,160866,204249,222900,204250,180626,177959,177957,180628,205716,197878,171243,160789,171244,171241,171245,171242,225560,180627,177960,231589,177958,180629,205717,197879,177565,212573,210709,230684,229801,230685,197337,209010,197336,197338,198618,175492,198052,198051,197852,197976,175493,175494,175495,189254,175496,175497,38408,175498,175503,175504,175505,175506,175507,175508,80637,68727,206933,207944,206934,206929,221575,68728,221576,80353,80356,249107,180635,74610,45707,83962,83970,46713,166591,
89711,74612,213809,179607,245006,155792,93265,74611,131380,128979,139311,128978,131391,105350,139312,134800,131392,113533,229298,93252,99357,94521,114252,113532,94522,94583,202371,88E3,139580,93253,93254,94387,94388,93255,97424,72502,219868,212991,110111,76019,117092,117093,89431,191831,110466,231346,77240,60508,186091,148123,148124,137401,137402,137046,73393,246776,113534,92098,131381,84517,83759,230676,249183,230679,230678,230677,230681,230680,162711,235234,162712,80357,243315,86113,72598,168413,
72733,107349,124275,118203,200410,133275,160157,152569,156651,133274,160159,160158,133272,133273,133276,144507,143247,175994,156652,143248,143249,143250,143251,189892,189894,189893,156653,214236,144401,117431,133797,225137,222612,222613,153964,201133,201134,201135,201136,201137,128572,200411,200412,190337,133405,117429,117430,177950,174734,177951,201138,201139,201140,201141,201142,117432,173996,173995,174953,173994,173997,120080,117259,178546,197891,156655,156654,121692,211414,211411,211412,211413,
211403,184846,185993,145656,156656,145655,145653,145654,145657,132972,133051,133658,132971,97615,181262,190762,250344,254027,143359,143356,143361,143358,143360,143357,142303,143353,172859,143354,144479,143355,31402,181590,133624,146477,133623,133622,133621,192418,84774,197993,241460,160801,197995,95117,172721,150497,98930,98931,98932,153320,153321,43347,249295,210016,210017,262686,211851,211852,211853,129889,197888,197889,149123,221959,221627,221958,45474,100352,98443,117985,74613,155911,74614,64502,
136032,74615,74616,122224,74617,77820,74618,262988,262989,226981,93278,93274,93275,93276,200688,200686,200687,199841,22110,29433,133798,132295,120541,222112,82047,113550,75836,75837,192409,203221,42352,84512,76065,75989,205911,205912,252649,205913,252650,252651,51879,16623,32594,27240,32633,74858,271884,222932,271886,213915,225216,251244,258251,218674,251266,258250,251265,251245,271885,156999,3945,16989,45520,25488,25492,25494,232113,55760,14057,18451,57204,57203,17897,18198,17898,17909,43980,221053,
195529,189660,46220,11721,147994,49954,96369,3854,217640,151633,56251,205192,216797,159108,181568,25624,152036,16906,99999,68172,47973,72773,26970,26971,96805,17752,73233,205923,109512,22256,14115,22696,234409,234408,89278,89277,195745,109513,43278,43459,43464,89279,43717,55764,22255,147912,89281,40963,43277,43442,91824,120137,186350,186351,256690,264349,264351,264350,264352,211026,250896,96367,36850,72694,37414,36851,124863,121343,73491,54473,166861,43375,46674,242528,143815,139095,144402,149968,
149969,32473,72901,72906,50612,50613,50942,84938,84943,84939,84941,84944,84940,84942,35585,51926,79983,18921,57893,41182,135732,33424,22207,36229,22206,22205,44763,33427,67793,22182,37091,34650,50617,22287,25144,97917,220122,62397,150871,150874,125598,137935,36961,108035,27426,27857,27846,27854,69692,61411,39299,38696,62520,36382,108701,192682,50663,36387,14908,37533,105443,61635,62274,161670,133818,182119,65702,65703,65701,76256,263843,196075,194768,252201,194769,191885,233634,265810,194770,195350,
195349,194771,166382,37671,49953,220669,249229,213774,204572,191389,253830,253831,253832,272252,253833,253834,204574,187917,191390,179556,191402,238596,212661,191392,197826,191393,204573,36216,28237,241212,272049,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,270560,30709,30707,30711,30710,30708,185213,185273,146143,63648,63649,221056,264490,211189,111059,211188,5754,264491,20445,233471,151308,151152,228067,130975,
130976,247244,271622,271813,261210,210815,246127,245256,244950,191925,167637,234545,197196,214295,110386,221054,113746,268886,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,271673,139723,139722,121258,253789,253787,253786,253788,253790,107598,127991,96639,107536,130169,216522,96661,145188,213904,269342,96658,116646,159428,168611,168612,121122,219862,96660,127738,127083,155281,162959,220886,227356,248007,163566,186641,147842,217932,104443,96659,147595,106442,247162,231493,213427,246575,182423,162776,228908,134840,63667,63668,63669,130686,248381,147036,239094,262743,189810,239095,78314,147799,237146,174049,148649,55761,127098,134841,
96368,67374,48992,146176,176105,233035,49956,267645,190190,225739,31961,26388,23811,5E4,126250,96370,210549,47355,47356,37935,45521,21760,83769,49977,49974,93497,93498,34325,140759,115803,123707,100081,35309,237706,68314,25602,100339,170873,143516,178921,268574,254884,258232,59018,18248,50625,9729,37168,37169,21667,16749,18635,39305,18046,221057,269990,53969,8213,93926,221055,210542,212552,102852,110099,22678,69076,137575,139224,100856,235770,154430,235861,209757,17736,3832,147111,55759,64031,234746,
93044,93045,170701,170702,194796,34388,167841,170419,17657,17655,39579,39578,170412,77448,8196,11357,69877,8197,168501,156512,161613,156509,208274,161612,161614,267692,267851,267577,267693,267694,267578,262801,271218,266131,266132,267977,267579,262800,262799,262802,267580,262798,267695,267581,82039];var ft=window.yt&&window.yt.msgs_||window.ytcfg&&window.ytcfg.msgs||{};_.qe("yt.msgs_",ft);var rR=new _.I4("ACTION_ROUTER_TOKEN");_.PS=function(){this.autonavState_=_.K("kevlar_is_pupi_enabled")?2:KUE()?2:1;this.disabledAutonavPauseReason_=this.autonavPauseReason_=void 0;this.autoplayChangedByUser=!1};
_.PS.prototype.getState=function(){return this.autonavState_};
_.PS.prototype.pause=function(a){this.autonavState_==2?(this.setState(3,!1,!1),this.autonavPauseReason_=a):this.autonavState_==1&&(this.disabledAutonavPauseReason_=a)};
_.PS.prototype.setState=function(a,z,I){z&&(this.autoplayChangedByUser=!0);z=this.autonavState_===3||a===3;this.autonavState_!=a&&(this.autonavState_=a,a!=3&&_.FUx(a==2),a=_.K("kevlar_is_pupi_enabled")?I||z:!0,_.w2.getInstance().triggerOptionalAction("yt-autonav-state-changed-action",this.autonavState_,a,I))};
_.PS.prototype.isAutoplaySetExplicitly=function(){return this.autoplayChangedByUser};
_.Is(_.PS);var ZO=function(){this.hasRun=!1};var CJ={},$gE=(CJ.auto_search="LATENCY_ACTION_AUTO_SEARCH",CJ.ad_to_ad="LATENCY_ACTION_AD_TO_AD",CJ.ad_to_video="LATENCY_ACTION_AD_TO_VIDEO",CJ.app_startup="LATENCY_ACTION_APP_STARTUP",CJ.browse="LATENCY_ACTION_BROWSE",CJ.cast_splash="LATENCY_ACTION_CAST_SPLASH",CJ.channel_activity="LATENCY_ACTION_KIDS_CHANNEL_ACTIVITY",CJ.channels="LATENCY_ACTION_CHANNELS",CJ.chips="LATENCY_ACTION_CHIPS",CJ.commerce_transaction="LATENCY_ACTION_COMMERCE_TRANSACTION",CJ.direct_playback="LATENCY_ACTION_DIRECT_PLAYBACK",
CJ.editor="LATENCY_ACTION_EDITOR",CJ.embed="LATENCY_ACTION_EMBED",CJ.embed_no_video="LATENCY_ACTION_EMBED_NO_VIDEO",CJ.entity_key_serialization_perf="LATENCY_ACTION_ENTITY_KEY_SERIALIZATION_PERF",CJ.entity_key_deserialization_perf="LATENCY_ACTION_ENTITY_KEY_DESERIALIZATION_PERF",CJ.explore="LATENCY_ACTION_EXPLORE",CJ.favorites="LATENCY_ACTION_FAVORITES",CJ.home="LATENCY_ACTION_HOME",CJ.inboarding="LATENCY_ACTION_INBOARDING",CJ.landing="LATENCY_ACTION_LANDING",CJ.learning="LATENCY_ACTION_LEARNING",
CJ.learning_journey_browse="LATENCY_ACTION_LEARNING_JOURNEY_BROWSE",CJ.learning_journey_watch="LATENCY_ACTION_LEARNING_JOURNEY_WATCH",CJ.library="LATENCY_ACTION_LIBRARY",CJ.live="LATENCY_ACTION_LIVE",CJ.live_pagination="LATENCY_ACTION_LIVE_PAGINATION",CJ.management="LATENCY_ACTION_MANAGEMENT",CJ.mini_app="LATENCY_ACTION_MINI_APP_PLAY",CJ.notification_settings="LATENCY_ACTION_KIDS_NOTIFICATION_SETTINGS",CJ.onboarding="LATENCY_ACTION_ONBOARDING",CJ.parent_profile_settings="LATENCY_ACTION_KIDS_PARENT_PROFILE_SETTINGS",
CJ.parent_tools_collection="LATENCY_ACTION_PARENT_TOOLS_COLLECTION",CJ.parent_tools_dashboard="LATENCY_ACTION_PARENT_TOOLS_DASHBOARD",CJ.player_att="LATENCY_ACTION_PLAYER_ATTESTATION",CJ.prebuffer="LATENCY_ACTION_PREBUFFER",CJ.prefetch="LATENCY_ACTION_PREFETCH",CJ.profile_settings="LATENCY_ACTION_KIDS_PROFILE_SETTINGS",CJ.profile_switcher="LATENCY_ACTION_LOGIN",CJ.projects="LATENCY_ACTION_PROJECTS",CJ.reel_watch="LATENCY_ACTION_REEL_WATCH",CJ.results="LATENCY_ACTION_RESULTS",CJ.red="LATENCY_ACTION_PREMIUM_PAGE_GET_BROWSE",
CJ.premium="LATENCY_ACTION_PREMIUM_PAGE_GET_BROWSE",CJ.privacy_policy="LATENCY_ACTION_KIDS_PRIVACY_POLICY",CJ.review="LATENCY_ACTION_REVIEW",CJ.search_overview_answer="LATENCY_ACTION_SEARCH_OVERVIEW_ANSWER",CJ.search_ui="LATENCY_ACTION_SEARCH_UI",CJ.search_suggest="LATENCY_ACTION_SUGGEST",CJ.search_zero_state="LATENCY_ACTION_SEARCH_ZERO_STATE",CJ.secret_code="LATENCY_ACTION_KIDS_SECRET_CODE",CJ.seek="LATENCY_ACTION_PLAYER_SEEK",CJ.settings="LATENCY_ACTION_SETTINGS",CJ.store="LATENCY_ACTION_STORE",
CJ.supervision_dashboard="LATENCY_ACTION_KIDS_SUPERVISION_DASHBOARD",CJ.tenx="LATENCY_ACTION_TENX",CJ.video_preview="LATENCY_ACTION_VIDEO_PREVIEW",CJ.video_to_ad="LATENCY_ACTION_VIDEO_TO_AD",CJ.watch="LATENCY_ACTION_WATCH",CJ.watch_it_again="LATENCY_ACTION_KIDS_WATCH_IT_AGAIN",CJ["watch,watch7"]="LATENCY_ACTION_WATCH",CJ["watch,watch7_html5"]="LATENCY_ACTION_WATCH",CJ["watch,watch7ad"]="LATENCY_ACTION_WATCH",CJ["watch,watch7ad_html5"]="LATENCY_ACTION_WATCH",CJ.wn_comments="LATENCY_ACTION_LOAD_COMMENTS",
CJ.ww_rqs="LATENCY_ACTION_WHO_IS_WATCHING",CJ.voice_assistant="LATENCY_ACTION_VOICE_ASSISTANT",CJ.cast_load_by_entity_to_watch="LATENCY_ACTION_CAST_LOAD_BY_ENTITY_TO_WATCH",CJ.networkless_performance="LATENCY_ACTION_NETWORKLESS_PERFORMANCE",CJ.gel_compression="LATENCY_ACTION_GEL_COMPRESSION",CJ.gel_jspb_serialize="LATENCY_ACTION_GEL_JSPB_SERIALIZE",CJ.attestation_challenge_fetch="LATENCY_ACTION_ATTESTATION_CHALLENGE_FETCH",CJ),kSx=0;var afG=function(a,z){xQ.call(this,1,arguments);this.timer=z};
_.b(afG,xQ);var ezm=new ueE("aft-recorded",afG);var WUp=_.IE.ytLoggingGelSequenceIdObj_||{};_.qe("ytLoggingGelSequenceIdObj_",WUp);var N_=_.IE.ytLoggingLatencyUsageStats_||{};_.qe("ytLoggingLatencyUsageStats_",N_);var tq=function(){this.cleanupJob=0},DgE=function(){tq.instance||(tq.instance=new tq);
return tq.instance};
_.Z=tq.prototype;_.Z.baseline=function(a,z,I){uz(this,"baseline_"+a)||_.x0("latencyActionBaselined",{clientActionNonce:a},{timestamp:z,cttAuthInfo:I})};
_.Z.tick=function(a,z,I,J){uz(this,"tick_"+a+"_"+z)||_.x0("latencyActionTicked",{tickName:a,clientActionNonce:z},{timestamp:I,cttAuthInfo:J})};
_.Z.info=function(a,z,I){var J=Object.keys(a).join("");uz(this,"info_"+J+"_"+z)||(a=Object.assign({},a),a.clientActionNonce=z,_.x0("latencyActionInfo",a,{cttAuthInfo:I}))};
_.Z.jspbInfo=function(a,z,I){for(var J="",r=0;r<v4(a).length;r++)v4(a)[r]!==void 0&&(J=r===0?J.concat(""+r):J.concat("_"+r));uz(this,"info_"+J+"_"+z)||(_.KB(a,2,z),z={cttAuthInfo:I},I=_.K("jspb_sparse_encoded_pivot")?new Ha([{}]):new Ha,_.Oa(I,7,g2i,a),oV7("latencyActionInfo",I,z))};
_.Z.span=function(a,z,I){var J=Object.keys(a).join("");uz(this,"span_"+J+"_"+z)||(a.clientActionNonce=z,_.x0("latencyActionSpan",a,{cttAuthInfo:I}))};
var uz=function(a,z){N_[z]=N_[z]||{count:0};var I=N_[z];I.count++;I.time=(0,_.jp)();a.cleanupJob||(a.cleanupJob=_.b9(_.GW,function(){var J=(0,_.jp)(),r;for(r in N_)N_[r]&&J-N_[r].time>6E4&&delete N_[r];a&&(a.cleanupJob=0)},5E3));
return I.count>5?(I.count===6&&Math.random()*1E5<1&&(I=new _.Fn("CSI data exceeded logging limit with key",z.split("_")),z.indexOf("plev")>=0||_.Xd(I)),!0):!1};var q3e,e6E;q3e=window;e6E=function(){this.timing={};this.clearResourceTimings=function(){};
this.webkitClearResourceTimings=function(){};
this.mozClearResourceTimings=function(){};
this.msClearResourceTimings=function(){};
this.oClearResourceTimings=function(){}};
_.Vs=q3e.performance||q3e.mozPerformance||q3e.msPerformance||q3e.webkitPerformance||new e6E;var qHi=!1,LU$=!1,jJp=(0,_.HW)(_.Vs.clearResourceTimings||_.Vs.webkitClearResourceTimings||_.Vs.mozClearResourceTimings||_.Vs.msClearResourceTimings||_.Vs.oClearResourceTimings||_.Kx,_.Vs);var aUv=window;aUv.ytcsi&&(aUv.ytcsi.infoGel=_.Gb,aUv.ytcsi.tick=_.Xz);var Bh0=function(a){xQ.call(this,1,arguments);this.csn=a};
_.b(Bh0,xQ);var fLI=new ueE("screen-created",Bh0),xbx=[],EEp=i$d,vE0=0,U_=new Map,gEm=new Map,O$O=new Map;var vm1=Symbol("tf"),cA=new WeakMap;var ER=function(){this.shownElements=new Set;this.hiddenElements=new Set;this.visibleState=new Map;this.client=void 0;this.csn=null},Hl=function(){ER.instance||(ER.instance=new ER);
return ER.instance};
_.Z=ER.prototype;_.Z.setClient=function(a){this.client=a};
_.Z.JSC$12463_newScreen=function(){this.clear();this.csn=_.TX()};
_.Z.clear=function(){this.shownElements.clear();this.hiddenElements.clear();this.visibleState.clear();this.csn=null};
_.Z.reportShown=function(a,z,I){var J=this.JSC$12463_getTrackingParams(a),r=a.visualElement?a.visualElement:J;z=this.shownElements.has(r);var P=this.visibleState.get(r);this.shownElements.add(r);this.visibleState.set(r,!0);a.impressionLog&&!z&&a.impressionLog();if(J||a.visualElement)if(I=jk1(this,a,I))if(r=zPI(this,a),BS(this,a)||r){J=a.visualElement?a.visualElement:_.VX(J);var N=a.interactionLoggingClientData;r||z?BS(this,a)&4?P||b$E(this.client,I,J,N):BS(this,a)&1&&!z&&KtG(this.client,I,J,N):KtG(this.client,
I,J,N)}};
_.Z.reportHidden=function(a,z,I){var J=this.JSC$12463_getTrackingParams(a),r=a.visualElement?a.visualElement:J;z=this.hiddenElements.has(r);var P=this.visibleState.get(r);this.hiddenElements.add(r);this.visibleState.set(r,!1);if(P===!1)return!0;if(!J&&!a.visualElement)return!1;I=jk1(this,a,I);if(!I||!BS(this,a)&&zPI(this,a))return!1;J=a.visualElement?a.visualElement:_.VX(J);BS(this,a)&8?hc3(this.client,I,J):BS(this,a)&2&&!z&&(a=this.client,z=o_({cttAuthInfo:dF(I)||void 0},I),J={csn:I,ve:J.getAsJson(),
eventType:2},I==="UNDEFINED_CSN"?R_("visualElementHidden",z,J):a?SF("visualElementHidden",J,a,z):_.x0("visualElementHidden",J,z));return!0};
_.Z.JSC$12463_getTrackingParams=function(a){var z=this.getData(a),I,J;if(_.K("il_use_view_model_logging_context")&&(z==null?0:(I=z.context)==null?0:(J=I.loggingContext)==null?0:J.loggingDirectives))return z.context.loggingContext.loggingDirectives.trackingParams||"";var r,P;if(z==null?0:(r=z.rendererContext)==null?0:(P=r.loggingContext)==null?0:P.loggingDirectives)return z.rendererContext.loggingContext.loggingDirectives.trackingParams||"";if(z==null?0:z.loggingDirectives)return z.loggingDirectives.trackingParams||
"";var N;return((N=a.veContainer)==null?0:N.trackingParams)?a.veContainer.trackingParams:(z==null?void 0:z.trackingParams)||""};
_.Z.JSC$12463_elementShouldLogGesture=function(a,z){a=this.getData(a);return!!((Math.floor(Number(a&&a.loggingDirectives&&a.loggingDirectives.gestures&&a.loggingDirectives.gestures.types||""))||0)&z)};
_.Z.JSC$12463_getNearestParentVe=function(a){var z=this.JSC$12463_getTrackingParams(a);return a.visualElement?a.visualElement:z?_.VX(z):a.parentElement?this.JSC$12463_getNearestParentVe(a.parentElement):null};
var jk1=function(a,z,I){var J=_.TX(I);return a.csn===null||J===a.csn||I?J:(a=new _.Fn("VisibilityLogger called before newScreen",{caller:z.tagName,previous_csn:a.csn,current_csn:J}),_.Xd(a),null)};
ER.prototype.getData=function(a){var z,I=a.data||((z=a.props)==null?void 0:z.data);if(!I||a.isWebComponentWrapper){var J;I=(J=cA.get(a))==null?void 0:J[vm1]}return I};
var zPI=function(a,z){var I;return!((I=a.getData(z))==null||!I.loggingDirectives)},BS=function(a,z){a=a.getData(z);
return Math.floor(Number(a&&a.loggingDirectives&&a.loggingDirectives.visibility&&a.loggingDirectives.visibility.types||""))||1};var gR;gR=function(){};
_.sg=function(){gR.instance||(gR.instance=new gR);return gR.instance};
gR.prototype.setClient=function(a){_.Ue(Hl().setClient).bind(Hl())(a)};
_.IUO=function(){_.sg();_.Ue(Hl().JSC$12463_newScreen).bind(Hl())()};
gR.prototype.clear=function(){_.Ue(Hl().clear).bind(Hl())()};
gR.prototype.reportShown=function(a,z,I){_.Ue(Hl().reportShown).bind(Hl())(a,z,I)};
gR.prototype.reportHidden=function(a,z,I){return _.Ue(Hl().reportHidden).bind(Hl())(a,z,I)};
var eJ0=function(a,z){return _.Ue(Hl().JSC$12463_getTrackingParams).bind(Hl())(z)},Gnm=function(a,z){return _.Ue(Hl().JSC$12463_getNearestParentVe).bind(Hl())(z)};var OR,JrO;OR=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};
_.Kw=function(){OR.instance||(OR.instance=new OR);return OR.instance};
OR.prototype.setClient=function(a){this.client=a};
JrO=function(a,z,I){I=I===void 0?{}:I;_.Ue(function(){var J,r,P,N=((J=_.H(z==null?void 0:z.commandMetadata,_.O_))==null?void 0:J.rootVe)||((r=_.H(z==null?void 0:z.commandMetadata,MvX))==null?void 0:(P=r.screenVisualElement)==null?void 0:P.uiType);if(N){J=_.H(z==null?void 0:z.commandMetadata,Dyo);if(J==null?0:J.parentTrackingParams){var u=_.VX(J.parentTrackingParams);if(J.parentCsn)var E=J.parentCsn}else I.clickedVisualElement?u=I.clickedVisualElement:z.clickTrackingParams&&(u=_.VX(z.clickTrackingParams));
a:{J=_.H(z,_.MZ);r=_.H(z,tzG);if(J){if(r=HeM(J,"VIDEO")){J={token:r,videoId:J.videoId};break a}}else if(r&&(J=HeM(r,"PLAYLIST"))){J={token:J,playlistId:r.playlistId};break a}J=void 0}I=Object.assign({},{cttAuthInfo:J,parentCsn:E},I);if(_.K("expectation_logging")){var O;I.loggingExpectations=((O=_.H(z==null?void 0:z.commandMetadata,MvX))==null?void 0:O.loggingExpectations)||void 0}_.fJ(a,N,u,I)}else _.Xd(new _.Fn("Error: Trying to create a new screen without a rootVeType",z))})()};
_.fJ=function(a,z,I,J){J=J===void 0?{}:J;_.Ue(function(){Y3w.includes(z)||(_.Xd(new _.Fn("createClientScreen() called with a non-page VE",z)),z=83769);J.isHistoryNavigation||(a.forwardHistoryStack=[],a.backHistoryStack.push({rootVe:z,key:J.key||""}));a.graftQueue=[];a.stateChangedQueue=[];J.dataPromises?rre(a,z,I,J):POl(a,z,I,J)})()};
_.ZOj=function(a,z,I){I=I===void 0?0:I;_.Ue(function(){z.then(function(J){a.pendingScreenCreation.has(I)&&a.pendingScreenFn&&a.pendingScreenFn();var r=_.TX(I),P=_.XZ(I);if(r&&P){var N={automatedLogEventSource:3},u;(J==null?0:(u=J.response)==null?0:u.trackingParams)&&DF(a.client,r,P,_.VX(J.response.trackingParams),!1,N);var E;(J==null?0:(E=J.playerResponse)==null?0:E.trackingParams)&&DF(a.client,r,P,_.VX(J.playerResponse.trackingParams),!1,N)}})})()};
OR.prototype.graftServerVe=function(a,z,I){var J=this;return _.Ue(function(){var r=_.VX(a);_.Aq(J,r,z,I);return r})()};
_.$Wi=function(a,z,I,J){return _.K("enable_client_ve_spec")&&z.clientVeSpec?(z=_.uq(z.clientVeSpec.uiType,void 0,z.clientVeSpec.elementIndex,z.clientVeSpec.clientYoutubeData,void 0,z),_.Aq(a,z,I,J)?z:null):z.trackingParams?a.graftServerVe(z.trackingParams,I,J):null};
_.nw=function(a,z,I,J){return _.Ue(function(){if(!z.veType)return _.$0(new _.Fn("Error: Trying to graft a client VE without a veType.")),null;if(z.visibilityTypes){var r=z.visibilityTypes.reduce(function(P,N){return P|N});
r={visibility:{types:String(r)}}}r=_.uq(z.veType,z.visualElement,z.elementIndex,z.clientYouTubeData,void 0,r);return _.Aq(a,r,I,J)?r:null})()};
_.Aq=function(a,z,I,J){J=J===void 0?0:J;return _.Ue(function(){if(a.pendingScreenCreation.has(J))return a.graftQueue.push([z,I]),!0;var r=_.TX(J),P=I||_.XZ(J);if(r&&P){if(_.K("combine_ve_grafts")){var N=a.cachedVisualElements.get(P.toString());N?N.push(z):(a.cachedRootVisualElements.set(P.toString(),P),a.cachedVisualElements.set(P.toString(),[z]));a.attachTimeout||(a.attachTimeout=_.b9(_.GW,function(){COi(a,r)},1200))}else DF(a.client,r,P,z);
return!0}return!1})()};
_.sR=function(a,z,I){I=I===void 0?0:I;var J=a.recurringGrafts.get(I)||new Map;if(_.K("smarter_ve_dedupping"))for(var r=Array.from(J.keys()),P=0;P<r.length;P++){var N=void 0,u=void 0;var E=z;var O=r[P];O.isClientVe()&&E.isClientVe()?(N=E.getAsJson(),u=O.getAsJson(),E=N.veType!==u.veType||N.elementIndex!==u.elementIndex||N.dataElement!==u.dataElement||E.getLoggingDirectives()!==O.getLoggingDirectives()?!1:!0):E=O.veData.trackingParams!==void 0&&E.veData.trackingParams!==void 0?((u=E.veData)==null?void 0:
u.trackingParams)===((N=O.veData)==null?void 0:N.trackingParams):!1;if(E)return}else if(J.has(z))return;J.set(z,void 0);a.recurringGrafts.set(I,J);_.TX(I)==="UNDEFINED_CSN"||a.pendingScreenCreation.has(I)||_.Aq(a,z,void 0,I)};
_.nJ=function(a,z,I,J){J=_.TX(J===void 0?0:J);if(!J)return!1;QJm(a.client,J,z,I);return!0};
_.KJ=function(a,z,I,J){if(!z)return!1;J=_.TX(J===void 0?0:J);if(!J)return!1;QJm(a.client,J,_.VX(z),I);return!0};
_.pS=function(a,z){var I=z.getScreenLayer&&z.getScreenLayer();if(z.visualElement)return _.nJ(a,z.visualElement,void 0,I);z=eJ0(_.sg(),z);return _.KJ(a,z,void 0,I)};
OR.prototype.clickCommand=function(a,z,I){return _.KJ(this,a.clickTrackingParams,z,I===void 0?0:I)};
OR.prototype.stateChanged=function(a,z,I){this.visualElementStateChanged(_.VX(a),z,I===void 0?0:I)};
OR.prototype.visualElementStateChanged=function(a,z,I){I=I===void 0?0:I;I===0&&this.pendingScreenCreation.has(I)?this.stateChangedQueue.push([a,z]):this.logStateChanged(a,z,I)};
OR.prototype.logStateChanged=function(a,z,I){I=I===void 0?0:I;var J=_.TX(I);a=a||_.XZ(I);return J&&a?(SxO(this.client,J,a,z),!0):!1};
var rre=function(a,z,I,J){J=J===void 0?{}:J;a.pendingScreenCreation.add(J.layer||0);a.pendingScreenFn=function(){POl(a,z,I,J);var N=_.XZ(J.layer);if(N){for(var u=_.C(a.graftQueue),E=u.next();!E.done;E=u.next())E=E.value,_.Aq(a,E[0],E[1]||N,J.layer);N=_.C(a.stateChangedQueue);for(u=N.next();!u.done;u=N.next())u=u.value,a.logStateChanged(u[0],u[1])}};
I||_.TX(J.layer)||a.pendingScreenFn();if(J.dataPromises)for(var r=_.C(J.dataPromises),P=r.next();!P.done;P=r.next())_.ZOj(a,P.value,J.layer);else _.Gx(Error("uf"))},POl=function(a,z,I,J){J=J===void 0?{}:J;
var r=void 0;J.layer||(J.layer=0);r=J.parentLayer!==void 0?J.parentLayer:J.layer;var P=_.TX(r);r=_.XZ(r);var N=I||r,u;N&&(J.parentCsn!==void 0?u={clientScreenNonce:J.parentCsn,visualElement:N}:P&&P!=="UNDEFINED_CSN"&&(u={clientScreenNonce:P,visualElement:N}));var E,O=_.Xw("EVENT_ID");P==="UNDEFINED_CSN"&&O&&(E={servletData:{serializedServletEventId:O}});_.K("combine_ve_grafts")&&P&&COi(a,P);_.K("no_client_ve_attach_unless_shown")&&N&&P&&nEm(N,P);try{var f=_.ffM(a.client,z,u,J.csnToClone,J.cttAuthInfo,
E,J.implicitGestureType,void 0,J.loggingExpectations)}catch(F){_.Tx(F,{rootVeType:z,rootVe:r,parentVisualElement:I,currentCsn:P,parentEl:u,csnToClone:J.csnToClone});_.Gx(F);return}_.WJ(f,z,J.layer,J.cttAuthInfo);P&&P!=="UNDEFINED_CSN"&&r&&!VvG(P)&&hc3(a.client,P,r,!0);a.backHistoryStack[a.backHistoryStack.length-1]&&!a.backHistoryStack[a.backHistoryStack.length-1].csn&&(a.backHistoryStack[a.backHistoryStack.length-1].csn=f||"");_.Gb({clientScreenNonce:f});_.IUO();var A=_.XZ(J.layer);P&&P!=="UNDEFINED_CSN"&&
A&&(_.K("web_mark_root_visible")||_.K("music_web_mark_root_visible"))&&_.pt(f,A);a.pendingScreenCreation.delete(J.layer||0);a.pendingScreenFn=void 0;var n;(n=a.recurringGrafts.get(J.layer))==null||n.forEach(function(F,h){F?_.Aq(a,h,F,J.layer):A&&_.Aq(a,h,A,J.layer)});
NDX(a)},NDX=function(a){for(var z=0;z<a.afterNewScreenOneOffJobs.length;z++){var I=a.afterNewScreenOneOffJobs[z];
try{I()}catch(J){_.Gx(J)}}for(z=a.afterNewScreenOneOffJobs.length=0;z<a.afterNewScreenRecurringJobs.length;z++){I=a.afterNewScreenRecurringJobs[z];try{I()}catch(J){_.Gx(J)}}},COi=function(a,z){if(z===void 0)for(var I=bEi(),J=0;J<I.length;J++)I[J]!==void 0&&COi(a,I[J]);
else a.cachedVisualElements.forEach(function(r,P){(P=a.cachedRootVisualElements.get(P))&&ANE(a.client,z,P,r)}),a.cachedVisualElements.clear(),a.cachedRootVisualElements.clear(),a.attachTimeout=void 0};var Fo=function(a){a=a===void 0?{layer:0}:a;this.hasRun=!1;this.createScreenConfig=a;a={};this.kyy=(a.response=!1,a.playerResponse=!1,a)};
_.b(Fo,ZO);Fo.prototype.validate=function(a){return!(!a.data||!a.data.response&&!a.data.playerResponse)};
Fo.prototype.handle=function(a){var z=_.Kw(),I=this.createScreenConfig.layer;a.data.response&&a.data.response.trackingParams&&!this.kyy.response&&(z.graftServerVe(a.data.response.trackingParams,void 0,I),this.kyy.response=!0);a.data.playerResponse&&a.data.playerResponse.trackingParams&&!this.kyy.playerResponse&&(z.graftServerVe(a.data.playerResponse.trackingParams,void 0,I),this.kyy.playerResponse=!0)};var HS=function(){this.kC=_.kq();this.sJ=[];this.k0w=0};
HS.prototype.processChunk=function(a){if(a){for(var z=_.C(this.sJ),I=z.next();!I.done;I=z.next())I=I.value,I.validate(a)&&(I.handle(a),I.hasRun=!0);_.Xz("np"+this.k0w);this.k0w++}};var YA;var tnf=function(){var a={traceAllComponents:_.K("web_tracing_all_components"),exportToCsi:_.K("web_tracing_export_to_csi"),exportBreadcrumbs:_.K("web_enable_tracing"),bufferSize:_.Ib("web_max_tracing_events"),enabledSpansArray:_.Py("web_tracing_enabled_spans"),exportToDevTools:_.K("web_tracing_export_to_devtools")};this.observers=[];this.value=a};
_.Z=tnf.prototype;_.Z.subscribe=function(a){var z=this;if(a.idx!=null)throw Error("xf");a.idx=this.observers.length;this.observers.push(a);return function(){var I=z.observers[z.observers.length-1];z.observers[a.idx]=I;I.idx=a.idx;z.observers.pop()}};
_.Z.update=function(a){this.value=a(this.value);this.notify()};
_.Z.mutate=function(a){a(this.value);this.notify()};
_.Z.set=function(a){this.value=a;this.notify()};
_.Z.notify=function(){for(var a=_.C(this.observers),z=a.next();!z.done;z=a.next()){z=z.value;try{z(this.value)}catch(I){}}};var jzp,uDw,ge1;_.Og=function(a,z,I,J,r,P,N){N=N===void 0?[]:N;this.buildCommandPayload=a;this.navigate=z;this.handleServiceRequest=I;this.sendAction=J;this.JSC$12511_screenManager=r;this.commandResolverMap=P;this.autoLogResolverAllowlist=N;this.pendingCommands=new Set;this.isTracingEnabled=!1;uDw(this)};
jzp=function(a,z,I){var J=R9G,r=LL7,P=_.Kw(),N=Eeo;I=I===void 0?[]:I;_.Og.instance=new _.Og(a,z,J,r,P,N,I)};
uDw=function(a){if(!a.isTracingEnabled&&XY0("command")){var z=a.resolveCommand;a.resolveCommand=function(I,J){a:{for(r in I)if(Object.prototype.hasOwnProperty.call(I,r)){var r={commandType:r};break a}r={}}return oE1("command",r,z.bind(this,I,J))};
a.isTracingEnabled=!0}};
ge1=function(a,z,I){if(!a.commandResolverMap)return!1;var J=Ltm(z,a.commandResolverMap);return J?((a.autoLogResolverAllowlist.some(function(r){return!!_.H(z,r)})||(I==null?0:I.forceClickLogging))&&BDi(a,z,I),J instanceof Promise?J.then(function(r){r.resolve(z,I)}):J.resolve(z,I),!0):!1};
_.Og.prototype.resolveCommand=function(a,z){var I=this,J=OOl(a);if(ge1(this,a,z))return!0;if(J)return fUJ(this,a,z);if(!this.buildCommandPayload)return Ubd(a,"Unhandled command by buildCommandPayload"),!1;var r=this.buildCommandPayload(a,z);if(z==null?0:z.commandController)r.commandController=z.commandController;if(r.type===0){if(!this.navigate)return Dbx(a,"navigate"),!1;if(!ArJ(r.command))return Ubd(a,"Page requests need to specify a url"),!1;_.K("logging_avoid_blocking_during_navigation")&&_.ehO().transition("application_navigating");
a=this.navigate(r)||[];amf(a).then(function(){I.pendingCommands.delete(r.command)});
return!0}if(r.type===1){if(!this.handleServiceRequest)return Dbx(a,"handleServiceRequest"),!1;(z==null?0:z.forceClickLogging)&&BDi(this,r.command,z);a=this.handleServiceRequest(r);amf(a).then(function(){I.pendingCommands.delete(r.command)});
return!0}if(r.type===2){if(!this.sendAction)return Dbx(a,"sendAction"),!1;BDi(this,r.command,z);this.sendAction(r);return!0}return!1};
var BDi=function(a,z,I){if((I==null||!I.disableClickTracking)&&a.JSC$12511_screenManager)if(z.clickTrackingParams&&_.K("log_click_with_layer_from_element_in_command_handler")){var J;I=I==null?void 0:(J=I.form)==null?void 0:J.element;a.JSC$12511_screenManager.clickCommand(z,null,I&&I.getScreenLayer&&I.getScreenLayer())}else z.clickTrackingParams?a.JSC$12511_screenManager.clickCommand(z):!_.K("disable_clicked_visual_element_in_command_handler")&&(I==null?0:I.clickedVisualElement)&&_.nJ(a.JSC$12511_screenManager,
I.clickedVisualElement)},OOl=function(a){var z=!!_.H(a,_.E_),I;
a=((I=_.H(a,_.ge))==null?void 0:I.signal)==="CLIENT_SIGNAL";return z||a},fUJ=function(a,z,I){var J=_.H(z,_.E_);
if(J)var r=(J==null?void 0:J.commands)||[];else{var P;if(((P=_.H(z,_.ge))==null?void 0:P.signal)==="CLIENT_SIGNAL"){var N;r=((N=_.H(z,_.ge))==null?void 0:N.actions)||[]}}if(r){z=_.C(r);for(r=z.next();!r.done;r=z.next()){r=r.value;try{a.resolveCommand(r,I)}catch(u){u instanceof Error&&_.Gx(u)}}return!0}Ubd(z,"Could not handle the meta command");return!1},ArJ=function(a){var z;
return!((z=_.H(a==null?void 0:a.commandMetadata,_.O_))==null||!z.url)};var bz=function(){ZO.apply(this,arguments)};
_.b(bz,ZO);bz.prototype.validate=function(a){var z,I;return!this.hasRun&&!!((z=a.data.response)==null?0:(I=z.onResponseReceivedEndpoints)==null?0:I.length)};
bz.prototype.handle=function(a){var z=_.Og.instance;a=_.C(a.data.response.onResponseReceivedEndpoints);for(var I=a.next();!I.done;I=a.next())z.resolveCommand(I.value)};var skO,neX,KVi;
skO=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=_.uI();this.navigatingAwayFromWatchDeletedVideo=!1;this.currentEndpoint=null;
this.isVideoPlaying=!1};
_.hq=function(){neX||(neX=new skO);return neX};
KVi=function(){var a=_.hq();a.miniplayerButtonActivation=!1;a.userActivation=!1;a.playlistWatchPageActivation=!1;a.productDetailsPageActivation=!1;a.miniAppPageActivation=!1;a.playablesDestPageActivation=!1;a.lockupActivation=!1;a.showMiniplayerCommandActivation=!1;a.playlistSuggestionsShelfActivation=!1;a.mediaSessionPipActivation=!1;a.watchPipActivation=!1;a.watchWhileActivation=!1;a.shortsPipActivation=!1};
_.FVI=function(){var a=_.hq(),z=a.mediaSessionPipActivation,I=a.watchPipActivation,J=a.watchWhileActivation,r=a.playlistWatchPageActivation,P=a.lockupActivation,N=a.showMiniplayerCommandActivation,u=a.navigatingAwayFromWatchDeletedVideo,E=a.shortsPipActivation,O=a.playlistSuggestionsShelfActivation,f=a.productDetailsPageActivation,A=a.miniAppPageActivation,n=a.playablesDestPageActivation;return!a.miniplayerButtonActivation&&!r&&!O&&!f&&!A&&!n&&!P&&!N&&!z&&!I&&!J&&!E||u};var MhE;_.VT=_.aU("FEwhat_to_watch","/",3854);_.cBO=_.aU("FEdownloads","/feed/downloads",42352);MhE=_.aU("FEmusic_offline","browse/FEmusic_offline",42352);var Yp=function(a,z){z=z===void 0?[]:z;var I=I===void 0?[]:I;z=rH1.apply(null,[Pni.apply(null,_.ih(z))].concat(_.ih(I)));this.store=tqG(a,void 0,z)};
Yp.prototype.getState=function(){return this.store.getState()};
Yp.prototype.dispatch=function(a){return this.store.dispatch(a)};
Yp.prototype.subscribe=function(a){return this.store.subscribe(a)};
Yp.prototype.replaceReducer=function(a){return this.store.replaceReducer(a)};
Yp.prototype[Symbol.observable]=function(){return this.store[Symbol.observable]()};
_.QT=function(a,z,I){var J=z(a.getState());return a.subscribe(function(){var r=z(a.getState());if(r!==J){var P=J;J=r;I(r,P)}})};var $yd;_.Q0=function(a,z,I){return _.rg({type:"REPLACE_ENTITY",payload:{entityPayload:I,entityType:a,key:z}})};
$yd=function(a){return _.rg({type:"REPLACE_ENTITIES",payload:a})};
_.XK=function(a,z,I,J){return _.rg({type:"UPDATE_ENTITY",payload:{entityPayload:I,entityType:a,key:z,mergeOption:J}})};var jy3=function(a){var z=this;a=a===void 0?[]:a;this.arrays=[];this.totalLength=this.arrayPos=this.arrayIdx=0;a.forEach(function(I){z.append(I)})};
_.Z=jy3.prototype;_.Z.getLength=function(){return this.totalLength};
_.Z.append=function(a){var z=this.arrays.length===0?!1:(z=this.arrays[this.arrays.length-1])&&z.buffer===a.buffer&&z.byteOffset+z.length===a.byteOffset;z?(z=this.arrays[this.arrays.length-1],this.arrays[this.arrays.length-1]=new Uint8Array(z.buffer,z.byteOffset,z.length+a.length),this.arrayPos=this.arrayIdx=0):this.arrays.push(a);this.totalLength+=a.length};
_.Z.split=function(a){for(var z=new jy3,I=new jy3,J=_.C(this.arrays),r=J.next();!r.done;r=J.next())r=r.value,a>=r.length?(z.append(r),a-=r.length):a?(z.append(new Uint8Array(r.buffer,r.byteOffset,a)),I.append(new Uint8Array(r.buffer,r.byteOffset+a,r.length-a)),a=0):I.append(r);return{headView:z,tailView:I}};
_.Z.extract=function(a,z){return this.split(a).tailView.split(z).headView};
_.Z.isFocused=function(a){return a>=this.arrayPos&&a<this.arrayPos+this.arrays[this.arrayIdx].length};
_.Z.focus=function(a){if(!this.isFocused(a))for(a<this.arrayPos&&(this.arrayPos=this.arrayIdx=0);this.arrayPos+this.arrays[this.arrayIdx].length<=a&&this.arrayIdx<this.arrays.length;)this.arrayPos+=this.arrays[this.arrayIdx].length,this.arrayIdx+=1};
var HOf=function(a,z){a.focus(z);return a.arrays[a.arrayIdx][z-a.arrayPos]};(function(){var a=function(J){return new Uint8Array(J)},z=function(J){for(var r=new Uint8Array(J.length),P=0;P<J.length;P++)r[P]=J[P];
return r},I=new Uint8Array([1]);
return I.length===1&&I[0]===1?a:z})();
var M_m=Array(1024),ksO=window.TextDecoder?new TextDecoder:void 0,Yx$=window.TextEncoder?new TextEncoder:void 0;var a5$=function(a){this.arrayView=a;this.pos=0;this.pendingTagAndType=-1},Pd=function(a){var z=HOf(a.arrayView,a.pos);
++a.pos;if(z<128)return z;for(var I=z&127,J=1;z>=128;)z=HOf(a.arrayView,a.pos),++a.pos,J*=128,I+=(z&127)*J;return I},zoM=function(a,z){var I=a.pendingTagAndType;
for(a.pendingTagAndType=-1;a.pos+1<=a.arrayView.totalLength;){I<0&&(I=Pd(a));var J=I>>3,r=I&7;if(J===z)return!0;if(J>z){a.pendingTagAndType=I;break}I=-1;switch(r){case 0:Pd(a);break;case 1:a.pos+=8;break;case 2:J=Pd(a);a.pos+=J;break;case 5:a.pos+=4}}return!1};var JVm=function(){this.wasm=void 0;this.pos=0;this.submessagePosStack=[];this.buf=ecx(4096);this.view=new DataView(this.buf.buffer,this.buf.byteOffset,this.buf.byteLength)},u8=function(a,z){z=a.pos+z;
if(!(a.buf.length>=z)){for(var I=a.buf.length*2;I<z;)I*=2;a.buf=ecx(I,a.wasm,a.buf.subarray(0,a.pos));a.view=new DataView(a.buf.buffer,a.buf.byteOffset,a.buf.byteLength)}},tW=function(a,z){if(z>268435455){u8(a,4);
for(var I=z&1073741823,J=0;J<4;J++)a.view.setUint8(a.pos,I&127|128),I>>=7,a.pos+=1;z=Math.floor(z/268435456)}for(u8(a,4);z>127;)a.view.setUint8(a.pos,z&127|128),z>>=7,a.pos+=1;a.view.setUint8(a.pos,z);a.pos+=1};for(var rVm={accountLinkStatusEntity:122,booleanEntity:307,buttonEntity:358,captionTrack:225,channelHandle:275,chipEntity:498,commerceAcquisitionClientPayloadEntity:276,commerceCartListEntity:236,contextNoteFeedEntityPayload:483,contextNoteUserRatingEntityPayload:576,continuationTokenEntity:406,downloadQualityPickerEntity:202,downloadsPageRefreshTokenEntity:299,downloadsPageViewConfigurationEntity:264,downloadStatusEntity:141,dismissState:540,sfvAudioItemCurrentlyPlayingEntity:186,emojiFountainDataEntity:393,
emojiCustomizationSetEntity:496,fakeChannel:2,fakePlaylist:279,fakePlaylistEntryCollection:280,fakeVideo:182,fakeVideoDescription:278,featuredProductsEntity:392,flowStateEntity:252,iconBadgeEntity:229,interstitialInteractionStateEntity:443,likeButtonAnimationEntity:567,liveChatPollStateEntity:217,liveViewerLeaderboardChatEntryPointStateEntity:563,liveViewerLeaderboardPointsEntity:564,liveReactionsDataEntity:503,logoEntity:245,macroMarkerEntity:329,mainDownloadsLibraryEntity:158,mainDownloadsListEntity:164,
mainPlaylistDownloadStateEntity:373,mainPlaylistEntity:306,mainPlaylistVideoEntity:368,mainVideoDownloadStateEntity:262,mainVideoEntity:261,markersEngagementPanelSyncEntity:196,markersVisibilityOverrideEntity:312,musicAlbumReleaseDetail:18,musicAlbumReleaseDownloadMetadataEntity:259,musicAlbumRelease:17,musicAlbumReleaseUserDetail:19,musicArtistDetail:21,musicArtist:20,musicArtistUserDetail:22,musicDownloadsLibraryEntity:257,musicLibraryEdit:121,musicLibraryStatusEntity:318,musicPlaylist:24,musicPlaylistDownloadMetadataEntity:248,
musicShare:100,musicTrackDetail:29,musicTrackDownloadMetadataEntity:234,musicTrack:28,musicTrackUserDetail:30,offlineOrchestrationActionWrapperEntity:169,offlineVideoPolicy:130,offlineVideoStreams:198,offlineabilityEntity:246,orchestrationWebSamplingEntity:242,pageHeaderEntity:495,pdpStateEntity:524,pinnedProductEntity:273,playbackData:119,quantityIncrementerEntity:356,playerStateEntity:323,refresh:148,saveToPlaylistListEntity:231,selectedChipIndexEntityPayload:479,settingEntity:297,stringEntity:382,
suggestedFeedbackChipStateEntity:485,transfer:120,trendingOfferEntity:469,videoDownloadContextEntity:461,videoOverviewAsyncDataEntity:545,videoPlaybackPositionEntity:76,votingEntity:561,ytMainChannelEntity:152,youchatPendingResponseEntity:553,ytMainDownloadedVideoEntity:155,ytMainVideoEntity:151},I57={},bOw=_.C(Object.entries(rVm)),hPi=bOw.next();!hPi.done;hPi=bOw.next()){var VnE=_.C(hPi.value),QkJ=VnE.next().value,SjI=VnE.next().value,iOj=QkJ,xni=SjI;xni&&(I57[xni]=iOj)};var ZQG=function(a,z){a=a===void 0?{}:a;switch(z.type){case "ENTITY_LOADED":return z.payload.reduce(function(J,r){var P,N=(P=r.options)==null?void 0:P.persistenceOption;if(N&&N!=="ENTITY_PERSISTENCE_OPTION_UNKNOWN"&&N!=="ENTITY_PERSISTENCE_OPTION_INMEMORY_AND_PERSIST")return J;if(!r.entityKey)return _.Gx(Error("zf")),J;if(r.type==="ENTITY_MUTATION_TYPE_REPLACE"){if(!r.payload)return r=new _.Fn("REPLACE entity mutation is missing a payload",{entityKey:r.entityKey}),_.Gx(r),J;var u=(0,_.x8.getAnyKey)(r.payload);
return NB0(J,u,r.entityKey,r.payload[u])}if(r.type==="ENTITY_MUTATION_TYPE_DELETE"){a:{r=r.entityKey;try{var E=_.ZY(r).entityType;u=NB0(J,E,r);break a}catch(A){if(A instanceof Error){r=new _.Fn("Failed to deserialize entity key",{entityKey:r,originalMessage:A.message});_.Gx(r);u=J;break a}throw A;}u=void 0}return u}if(r.type==="ENTITY_MUTATION_TYPE_UPDATE"){if(!r.payload)return r=new _.Fn("UPDATE entity mutation is missing a payload",{entityKey:r.entityKey}),_.Gx(r),J;u=(0,_.x8.getAnyKey)(r.payload);
var O,f;return tGG(J,u,r.entityKey,r.payload[u],(O=r.fieldMask)==null?void 0:(f=O.mergeOptions)==null?void 0:f.repeatedFieldsMergeOption)}return J},a);
case "REPLACE_ENTITY":var I=z.payload;return NB0(a,I.entityType,I.key,I.entityPayload);case "REPLACE_ENTITIES":return Object.keys(z.payload).reduce(function(J,r){var P=z.payload[r];return Object.keys(P).reduce(function(N,u){return NB0(N,r,u,P[u])},J)},a);
case "UPDATE_ENTITY":return I=z.payload,tGG(a,I.entityType,I.key,I.entityPayload,I.mergeOption);default:return a}};var uu3;var veE=!1,SK,iz,x3,vS,GG,GDJ=function(a){_.FC.call(this);this.counter=[0,0,0,0];this.cipherBlock=new Uint8Array(16);this.blockOffset=16;if(!veE){var z,I=new Uint8Array(256),J=new Uint8Array(256);var r=1;for(z=0;z<256;z++)I[r]=z,J[z]=r,r^=r<<1^(r>>7&&283);SK=new Uint8Array(256);iz=gg(256);x3=gg(256);vS=gg(256);GG=gg(256);for(var P=0;P<256;P++){r=P?J[255^I[P]]:0;r^=r<<1^r<<2^r<<3^r<<4;r=r&255^r>>>8^99;SK[P]=r;z=r<<1^(r>>7&&283);var N=z^r;iz[P]=z<<24|r<<16|r<<8|N;x3[P]=N<<24|iz[P]>>>8;vS[P]=r<<24|x3[P]>>>
8;GG[P]=r<<24|vS[P]>>>8}veE=!0}r=gg(44);for(I=0;I<4;I++)r[I]=a[4*I]<<24|a[4*I+1]<<16|a[4*I+2]<<8|a[4*I+3];for(J=1;I<44;I++)a=r[I-1],I%4||(a=(SK[a>>16&255]^J)<<24|SK[a>>8&255]<<16|SK[a&255]<<8|SK[a>>>24],J=J<<1^(J>>7&&283)),r[I]=r[I-4]^a;this.key=r};
_.b(GDJ,_.FC);
GDJ.prototype.encrypt=function(a){var z=a.length;a=new Uint8Array(a.buffer.slice(a.byteOffset,a.byteOffset+z));for(var I=this.cipherBlock,J=0;J<z&&this.blockOffset<16;)a[J++]^=I[this.blockOffset++];for(var r=z-(z-J)%16;J<r;)$nJ(this),a[J++]^=I[0],a[J++]^=I[1],a[J++]^=I[2],a[J++]^=I[3],a[J++]^=I[4],a[J++]^=I[5],a[J++]^=I[6],a[J++]^=I[7],a[J++]^=I[8],a[J++]^=I[9],a[J++]^=I[10],a[J++]^=I[11],a[J++]^=I[12],a[J++]^=I[13],a[J++]^=I[14],a[J++]^=I[15];if(J<z)for($nJ(this),this.blockOffset=0;J<z;)a[J++]^=
I[this.blockOffset++];return a};
var $nJ=function(a){for(var z=a.key,I=a.counter[0]^z[0],J=a.counter[1]^z[1],r=a.counter[2]^z[2],P=a.counter[3]^z[3],N=3;N>=0&&!(a.counter[N]=-~a.counter[N]);N--);for(var u,E,O=4;O<40;)N=iz[I>>>24]^x3[J>>16&255]^vS[r>>8&255]^GG[P&255]^z[O++],u=iz[J>>>24]^x3[r>>16&255]^vS[P>>8&255]^GG[I&255]^z[O++],E=iz[r>>>24]^x3[P>>16&255]^vS[I>>8&255]^GG[J&255]^z[O++],P=iz[P>>>24]^x3[I>>16&255]^vS[J>>8&255]^GG[r&255]^z[O++],I=N,J=u,r=E;a=a.cipherBlock;N=z[40];a[0]=SK[I>>>24]^N>>>24;a[1]=SK[J>>16&255]^N>>16&255;a[2]=
SK[r>>8&255]^N>>8&255;a[3]=SK[P&255]^N&255;N=z[41];a[4]=SK[J>>>24]^N>>>24;a[5]=SK[r>>16&255]^N>>16&255;a[6]=SK[P>>8&255]^N>>8&255;a[7]=SK[I&255]^N&255;N=z[42];a[8]=SK[r>>>24]^N>>>24;a[9]=SK[P>>16&255]^N>>16&255;a[10]=SK[I>>8&255]^N>>8&255;a[11]=SK[J&255]^N&255;N=z[43];a[12]=SK[P>>>24]^N>>>24;a[13]=SK[I>>16&255]^N>>16&255;a[14]=SK[J>>8&255]^N>>8&255;a[15]=SK[r&255]^N&255};var XIe=!1;(function(){var a=function(J){return new Uint8Array(J)},z=function(J){for(var r=new Uint8Array(J.length),P=0;P<J.length;P++)r[P]=J[P];
return r},I=new Uint8Array([1]);
return I.length===1&&I[0]===1?a:z})();
var $3;var WVf=function(a){a:{if(!XIe&&!cy){if($3){var z=$3;break a}$3=(z=window.crypto)==null?void 0:z.subtle;var I,J,r;if(((I=$3)==null?0:I.importKey)&&((J=$3)==null?0:J.sign)&&((r=$3)==null?0:r.encrypt)){z=$3;break a}$3=void 0}z=void 0}z&&(this.nativeEncryptor=new TDj(a,z));this.encryptorPolyfill=new dnX(a)};
WVf.prototype.encrypt=function(a,z){var I=this,J;return _.t(function(r){switch(r.nextAddress){case 1:if(!I.nativeEncryptor){r.jumpTo(2);break}_.BP(r,3);return r.yield(I.nativeEncryptor.encrypt(a,z),5);case 5:return r.return(r.yieldResult);case 3:J=_.sk(r),_.Xd(J),XIe=!0,I.nativeEncryptor=void 0;case 2:return r.return(I.encryptorPolyfill.encrypt(a,z))}})};
WVf.prototype.decrypt=function(a,z){return this.encrypt(a,z)};
var TDj=function(a,z){this.JSC$12584_aesKey=a;this.subtleCrypto=z};
TDj.prototype.encrypt=function(a,z){var I=this,J;return _.t(function(r){if(r.nextAddress==1)return _.BP(r,2),r.yield(oel(I,a,z),4);if(r.nextAddress!=2)return r.return(r.yieldResult);J=_.sk(r);_.Xd(J);XIe=!0;throw J;})};
var oel=function(a,z,I){var J,r;return _.t(function(P){switch(P.nextAddress){case 1:if(a.cryptoKey){P.jumpTo(2);break}return P.yield(a.subtleCrypto.importKey("raw",a.JSC$12584_aesKey,{name:"AES-CTR"},!1,["encrypt"]),3);case 3:a.cryptoKey=P.yieldResult;case 2:return J={name:"AES-CTR",counter:I,length:128},P.yield(a.subtleCrypto.encrypt(J,a.cryptoKey,z),4);case 4:return r=P.yieldResult,P.return(new Uint8Array(r))}})},dnX=function(a){this.JSC$12587_aesKey=a};
dnX.prototype.encrypt=function(a,z){this.encryptor||(this.encryptor=new GDJ(this.JSC$12587_aesKey));for(var I=this.encryptor,J=0;J<4;J++)I.counter[J]=z[J*4]<<24|z[J*4+1]<<16|z[J*4+2]<<8|z[J*4+3];I.blockOffset=16;return this.encryptor.encrypt(a)};
dnX.prototype.decrypt=function(a,z){return this.encrypt(a,z)};var Un1={},gFi=a3("yt-idb-pref-storage",{objectStores:(Un1.prefs={addedAtVersion:1},Un1),shared:!1,upgrade:function(a,z){z(1)&&R3(DZ(a,"prefs",{keyPath:"key"}),"byExpiration","expirationTimestampMs")},
version:1});_.Xo=function(a){this.token=a};
_.Xo.getInstance=function(){return _.t(function(a){return a.return(new Promise(function(z){_.e6().then(function(I){I?(_.Xo.instance||(_.Xo.instance=new _.Xo(I)),z(_.Xo.instance)):z(void 0)})}))})};
_.Xo.prototype.get=function(a){var z=this,I,J,r;return _.t(function(P){if(P.nextAddress==1)return P.yield(OQE(z.token),2);if(P.nextAddress!=3)return I=P.yieldResult,P.yield(I.get("prefs",a),3);J=P.yieldResult;if(!J)return P.return();r=(0,_.jp)();return J.expirationTimestampMs<=r?P.return():P.return(J.value)})};
_.Xo.prototype.set=function(a,z,I){I=I===void 0?31536E3:I;var J=this,r,P,N;return _.t(function(u){if(u.nextAddress==1)return r=(0,_.jp)(),P={key:a,value:z,expirationTimestampMs:r+I*1E3},u.yield(OQE(J.token),2);N=u.yieldResult;return u.yield(N.put("prefs",P),0)})};
_.Xo.prototype.remove=function(a){var z=this,I;return _.t(function(J){if(J.nextAddress==1)return J.yield(OQE(z.token),2);I=J.yieldResult;return J.yield(I.delete("prefs",a),0)})};var TG={},Dnv=(TG.INVALID_ENCODER_VERSION="Invalid encoder version",TG.KEY_CREATION_FAILED="Failed to create encoder key",TG.UNKNOWN_DECODE_ERROR="Failed to decode PES data",TG.UNKNOWN_ENCODE_ERROR="Failed to encode PES data",TG.WRONG_DATA_TYPE="Encoder cannot process the data type",TG),Or=function(a,z){z=z===void 0?{}:z;_.Fn.call(this,Dnv[a],Object.assign({},{name:"PESEncoderError",type:a},z));this.type=a;this.level="WARNING";Object.setPrototypeOf(this,Or.prototype)};
_.b(Or,_.Fn);var dR=function(){};
dR.prototype.encode=function(a,z){try{return this.encodeImpl(a,z)}catch(I){nFd(I,AV3)}};
dR.prototype.decode=function(a,z){try{return this.decodeImpl(a,z)}catch(I){nFd(I,sy$)}};
var RPo=function(a,z,I){var J;return _.t(function(r){if(r.nextAddress==1)return _.BP(r,2),r.yield(a.decodeAsyncImpl(z,I),4);if(r.nextAddress!=2)return r.return(r.yieldResult);J=_.sk(r);nFd(J,sy$);_.nu(r)})};
dR.prototype.decodeAsyncImpl=function(a,z){return Promise.resolve(this.decodeImpl(a,z))};var WS=function(a,z){this.aesEncryptor=a;this.aesEncryptorAsync=z};
_.b(WS,dR);WS.prototype.encodeImpl=function(a,z){z=KSi(z);a=(new TextEncoder).encode(JSON.stringify(a));return this.aesEncryptor.encrypt(a,z)};
WS.prototype.decodeImpl=function(a,z){if(!(a instanceof Uint8Array))throw f5G(1);var I=new TextDecoder;z=KSi(z);a=this.aesEncryptor.decrypt(a,z);return JSON.parse(I.decode(a))};
WS.prototype.decodeAsyncImpl=function(a,z){var I=this,J,r,P;return _.t(function(N){if(N.nextAddress==1){if(!(a instanceof Uint8Array))throw f5G(1);J=new TextDecoder;r=KSi(z);return N.yield(I.aesEncryptorAsync.decrypt(a,r),2)}P=N.yieldResult;return N.return(JSON.parse(J.decode(P)))})};var FS7={accountLinkStatusEntity:P_o,booleanEntity:WmX,buttonEntity:ase,captionTrack:Rco,channelHandle:EMv,chipEntity:Q7G,commerceAcquisitionClientPayloadEntity:hRi,commerceCartListEntity:VYw,contextNoteFeedEntityPayload:Vqv,contextNoteUserRatingEntityPayload:QH1,continuationTokenEntity:HeI,downloadQualityPickerEntity:uql,downloadsPageRefreshTokenEntity:BnG,downloadsPageViewConfigurationEntity:GSO,downloadStatusEntity:EVJ,dismissState:SRl,sfvAudioItemCurrentlyPlayingEntity:nFX,emojiFountainDataEntity:Y4w,
emojiCustomizationSetEntity:cKv,fakeChannel:Dke,fakePlaylist:Rno,fakePlaylistEntryCollection:Lmv,fakeVideo:pDi,fakeVideoDescription:wDE,featuredProductsEntity:qHj,flowStateEntity:zew,iconBadgeEntity:QT1,interstitialInteractionStateEntity:HEi,likeButtonAnimationEntity:$gw,liveChatPollStateEntity:GpJ,liveViewerLeaderboardChatEntryPointStateEntity:jyJ,liveViewerLeaderboardPointsEntity:zoI,liveReactionsDataEntity:q4f,logoEntity:Kqf,macroMarkerEntity:XGI,mainDownloadsLibraryEntity:gV1,mainDownloadsListEntity:OeE,
mainPlaylistDownloadStateEntity:AXw,mainPlaylistEntity:bef,mainPlaylistVideoEntity:hzi,mainVideoDownloadStateEntity:soJ,mainVideoEntity:ieE,markersEngagementPanelSyncEntity:TnE,markersVisibilityOverrideEntity:dgO,musicAlbumReleaseDetail:Nhj,musicAlbumReleaseDownloadMetadataEntity:JNw,musicAlbumRelease:CYo,musicAlbumReleaseUserDetail:t_1,musicArtistDetail:EEe,musicArtist:u7l,musicArtistUserDetail:Bh1,musicDownloadsLibraryEntity:rNw,musicLibraryEdit:gEO,musicLibraryStatusEntity:O$E,musicPlaylist:ffI,
musicPlaylistDownloadMetadataEntity:PYI,musicShare:sJ1,musicTrackDetail:Ktw,musicTrackDownloadMetadataEntity:Z$o,musicTrack:nEO,musicTrackUserDetail:Ft1,offlineOrchestrationActionWrapperEntity:LtO,offlineVideoPolicy:lfG,offlineVideoStreams:pYe,offlineabilityEntity:nVf,orchestrationWebSamplingEntity:KUw,pageHeaderEntity:o3J,pdpStateEntity:STf,pinnedProductEntity:ezO,playbackData:wYe,playerStateEntity:WUe,quantityIncrementerEntity:i_J,refresh:mbv,saveToPlaylistListEntity:RoX,selectedChipIndexEntityPayload:oVG,
settingEntity:ZJE,stringEntity:oTi,suggestedFeedbackChipStateEntity:UgG,transfer:yNI,trendingOfferEntity:afl,videoDownloadContextEntity:ksE,videoOverviewAsyncDataEntity:qTX,videoPlaybackPositionEntity:Isf,votingEntity:mse,ytMainChannelEntity:xge,youchatPendingResponseEntity:Dgw,ytMainDownloadedVideoEntity:FUi,ytMainVideoEntity:vVG};var LV1,pIG,K5,xyE,vFI,yr1,Mn1,kDE,mn1;LV1=function(a,z){this.JSC$12606_wrapped=a;this.JSC$12606_encoderRegistry=z;this.changedKeys={}};
pIG=function(a,z){return lUf(a.JSC$12606_encoderRegistry,z.version).decode(z.data,z.key)};
_.wIj=function(a,z,I){return a.JSC$12606_wrapped.objectStore("EntityStore").get(z).then(function(J){if(J){if(I&&J.entityType!==I)throw Error("Af");return pIG(a,J)}})};
K5=function(a,z,I){return I?(I=I.map(function(J){return _.wIj(a,J,z)}),Uz.all(I)):a.JSC$12606_wrapped.objectStore("EntityStore").index("entityType").getAll(IDBKeyRange.only(z)).then(function(J){return J.map(function(r){return pIG(a,r)})})};
_.iQ7=function(a,z,I){var J=Pc$(z),r=lUf(a.JSC$12606_encoderRegistry,1),P=Object.assign({},z);return a.JSC$12606_wrapped.objectStore("EntityStore").get(J).then(function(N){if(N){if(N.entityType!==I)throw Error("Af");P.entityMetadata||(N=pIG(a,N),P.entityMetadata=N.entityMetadata)}}).then(function(){var N={key:J,
entityType:I,data:r.encode(P,J),version:1};return Uz.all([a.JSC$12606_wrapped.objectStore("EntityStore").put(N),mn1(a,P,I)])}).then(function(){yr1(a,J,I);
return J})};
xyE=function(a,z){var I=_.ZY(z).entityType;return Uz.all([a.JSC$12606_wrapped.objectStore("EntityStore").delete(z),kDE(a,z)]).then(function(){yr1(a,z,I)})};
vFI=function(a,z,I,J){var r=lUf(a.JSC$12606_encoderRegistry,1);return _.wIj(a,z,J).then(function(P){if(P){P=yNM(P,I);var N={key:z,entityType:J,data:r.encode(P,z),version:1};return Uz.all([a.JSC$12606_wrapped.objectStore("EntityStore").put(N),mn1(a,P,J)])}}).then(function(){yr1(a,z,J);
return z})};
yr1=function(a,z,I){var J=a.changedKeys[I];J||(J=new Set,a.changedKeys[I]=J);J.add(z)};
Mn1=function(a,z,I){var J=Pc$(z);I=HQm(I);if(!I)return Uz.resolve([]);I=new I(z);a=a.JSC$12606_wrapped.objectStore("EntityAssociationStore");z=[];I=_.C(I.getAssociations());for(var r=I.next();!r.done;r=I.next())z.push(a.put({parentEntityKey:J,childEntityKey:r.value}));return Uz.all(z).then(function(P){return P.map(function(N){return N[1]})})};
kDE=function(a,z){return a.JSC$12606_wrapped.objectStore("EntityAssociationStore").index("byParentEntityKey").delete(IDBKeyRange.only(z))};
mn1=function(a,z,I){var J=Pc$(z);return kDE(a,J).then(function(){return Mn1(a,z,I)})};var cr1=function(){};
_.b(cr1,dR);cr1.prototype.encodeImpl=function(a){return a};
cr1.prototype.decodeImpl=function(a){if(a instanceof Uint8Array)throw f5G(0);return a};var VG0=function(){this.cacheMap={};this.cacheMap[0]=new cr1;if(!_.K("aes_pes_encoder_killswitch")){var a=this.cacheMap;try{var z=_.n1();var I=KSi(z);var J=new WS(new dnX(I),new WVf(I))}catch(r){throw a=r instanceof Error?new Or("KEY_CREATION_FAILED",{originalMessage:r.message}):new Or("KEY_CREATION_FAILED"),_.Gx(a),a;}a[1]=J}},lUf=function(a,z){z=z===void 0?0:z;
a=a.cacheMap[z];if(!a)throw z=new Or("INVALID_ENCODER_VERSION",{encoderVersion:z}),_.Gx(z),z;return a};var AW=function(a,z){_.FC.call(this);this.token=a;this.JSC$12620_encoderRegistry=z;this.observers=[];a=new _.IE.BroadcastChannel("PERSISTENT_ENTITY_STORE_SYNC:"+_.n1());a.onmessage=this.handleMessage.bind(this);this.channel=a};
_.b(AW,_.FC);_.n5=function(a,z,I){var J,r,P,N;return _.t(function(u){if(u.nextAddress==1)return u.yield(BBG(a.token),2);if(u.nextAddress!=3)return J=u.yieldResult,u.yield(_.y2(J,["EntityStore","EntityAssociationStore"],z,function(E){r=new LV1(E,a.JSC$12620_encoderRegistry);return I(r)}),3);
P=u.yieldResult;r&&(N=r.changedKeys,Object.keys(N).length>0&&(a.channel.postMessage(N),Yje(a,N)));return u.return(P)})};
AW.prototype.observe=function(a){var z=this;this.observers.push(a);return function(){var I=z.observers.indexOf(a);I>=0&&z.observers.splice(I,1)}};
var OT3=function(a){var z;return _.t(function(I){if(I.nextAddress==1)return I.yield(_.n5(a,{mode:"readonly",enableRetries:!0},function(J){return J.JSC$12606_wrapped.objectStore("EntityStore").getAll()}),2);
z=I.yieldResult;return I.return(Promise.all(z.filter(function(J){return!!J}).map(function(J){var r,P;
return _.t(function(N){if(N.nextAddress==1){r=J.key;P=J.entityType;var u=N.yield;var E=RPo(lUf(a.JSC$12620_encoderRegistry,J.version),J.data,J.key);return u.call(N,E,2)}return N.return({key:r,entityType:P,data:N.yieldResult})})})))})};
AW.prototype.handleMessage=function(a){Yje(this,a.data)};
var Yje=function(a,z){a=_.C(a.observers);for(var I=a.next();!I.done;I=a.next())I=I.value,I(z)};
AW.prototype.disposeInternal=function(){this.channel.close()};
var bQO;var o7,ePE,cV$;o7={};_.qj1=(o7.mainVideoEntity="mainVideoEntityActionMetadata",o7.mainPlaylistEntity="mainPlaylistEntityActionMetadata",o7.musicTrack="musicTrackEntityActionMetadata",o7.musicPlaylist="musicPlaylistEntityActionMetadata",o7);ePE=new _.I4("DOWNLOADS_ENTITY_TYPE_MAP");_.i8=_.Er("","downloadsPageViewConfigurationEntity");cV$=_.Er("DOWNLOADS_LIST_ENTITY_ID_MANUAL_DOWNLOADS","mainDownloadsListEntity");_.x_E=_.Er("DOWNLOADS_LIST_ENTITY_ID_SMART_DOWNLOADS","mainDownloadsListEntity");
_.Er("DOWNLOADS_LIST_ENTITY_ID_SMART_DOWNLOADS","refresh");_.Er("SMART_DOWNLOADS_ENABLED","settingEntity");_.Er("SMART_DOWNLOADS_OPT_IN_BANNER_DISMISSED","settingEntity");var dyO=["TRANSFER_STATE_TRANSFER_IN_QUEUE","TRANSFER_STATE_TRANSFERRING"];var l5M=["TRANSFER_STATE_COMPLETE","TRANSFER_STATE_FAILED","TRANSFER_STATE_TRANSFER_IN_QUEUE","TRANSFER_STATE_PAUSED_BY_USER","TRANSFER_STATE_TRANSFERRING"];var Aqi={ALL_DOWNLOADS:"PPAD",DOWNLOADS_PAGE:"PPDP",OFFLINE_PLAYLIST:"PPOM",RECOMMENDED_VIDEOS:"PPRC",SAVED_PODCAST_EPISODES:"PPSE",SAVED_VIDEOS:"PPSV"};var UR,AK$,HwJ,tVI;UR=window;_.L5=UR.YT_I18N_FORMATTING_GOOG_LOCALE||"en-US";_.iNG=UR.YT_I18N_FORMATTING_PLURAL_RULES_SELECT||_.kp;AK$=UR.YT_I18N_FORMATTING_DATE_TIME_SYMBOLS||s1;HwJ=UR.YT_I18N_FORMATTING_RELATIVE_DATE_TIME_SYMBOLS||Fow;_.aXw=UR.YT_I18N_FORMATTING_DURATION_TIME_SYMBOLS||_.U3l;tVI=UR.YT_I18N_FORMATTING_NUMBER_FORMAT_SYMBOLS||LZJ;mH({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 GcE=sD1(function(){return{dateFormat:1,timeFormat:7,joinerStyle:1,capitalize:function(a){return a}}}),X$7=sD1(function(){return{dateFormat:3,
timeFormat:7,joinerStyle:3,capitalize:function(a){return a}}}),HNp=new Map;var XwM=[{unitDuration:6048E5,unit:3,threshold:2},{unitDuration:864E5,unit:4},{unitDuration:36E5,unit:5},{unitDuration:6E4,unit:6},{unitDuration:1E3,unit:7}],S4E;var j1o=function(a){return _.rg({type:"SET_EPHEMERAL_ACTION",payload:a})};var zqO={ephemeralAction:null};var IXj={animatedThumbnailEnabled:!1,inlinePreviewEnabled:!1,currentPageType:"",currentPageSubType:""};var T73={sharedUi:function(a,z){a=a===void 0?IXj:a;switch(z.type){case "SET_SHARED_ANIMATED_THUMBNAIL_ENABLED":return Object.assign({},a,{animatedThumbnailEnabled:z.payload});case "SET_SHARED_INLINE_PREVIEW_ENABLED":return Object.assign({},a,{inlinePreviewEnabled:z.payload});case "SET_SHARED_CURRENT_PAGE_TYPE":return Object.assign({},a,{currentPageType:z.payload});case "SET_SHARED_CURRENT_PAGE_SUB_TYPE":return Object.assign({},a,{currentPageSubType:z.payload});default:return a}},
a11y:fL({ephemeralAction:function(a,z){a=a===void 0?zqO.ephemeralAction:a;switch(z.type){case "SET_EPHEMERAL_ACTION":return z.payload;default:return a}}}),
entities:Cc0};var Dsx={playlistId:"",inviteLinkURL:""};var J0w={};var cKI=fL({continuationCommand:function(a,z){a=a===void 0?J0w:a;switch(z.type){case "SET_CONTINUATION_COMMAND":return z.payload.continuationCommand;default:return a}}});var LPp={currentFormId:"",commandsMap:{}};var Y4E=fL({isLeaderTab:function(a,z){a=a===void 0?!0:a;switch(z.type){case "SET_IS_LEADER_TAB":var I,J;return(J=z==null?void 0:(I=z.payload)==null?void 0:I.isLeaderTab)!=null?J:a;default:return a}}});var PbI;_.r0G=function(a){return _.rg({type:"SET_IS_FULLSCREEN",payload:{isFullscreen:a}})};
PbI=function(a){return _.rg({type:"SET_IS_SHORTS_PIP_ACTIVE",payload:{isShortsPipActive:a}})};var XcI=fL({isDesktopSmallWidth:function(a,z){switch(z.type){case "SET_IS_DESKTOP_SMALL_WIDTH":return z.payload.isDesktopSmallWidth;default:return a===void 0?!1:a}},
isShortsActive:function(a,z){switch(z.type){case "SET_IS_SHORTS_ACTIVE":return z.payload.isShortsActive;default:return a===void 0?!1:a}},
isWatchWhileMode:function(a,z){switch(z.type){case "SET_IS_WATCH_WHILE_MODE":return z.payload.isWatchWhileMode;default:return a===void 0?!1:a}},
playerState:function(a,z){switch(z.type){case "SET_PLAYER_STATE":return z.payload.playerState;default:return a===void 0?-1:a}},
isFullscreen:function(a,z){switch(z.type){case "SET_IS_FULLSCREEN":return z.payload.isFullscreen;default:return a===void 0?!1:a}},
isSmallScreenSqueezeback:function(a,z){switch(z.type){case "SET_IS_SMALL_SCREEN_SQUEEZEBACK":return z.payload.isSmallScreenSqueezeback;default:return a===void 0?!1:a}},
isShortsPipActive:function(a,z){switch(z.type){case "SET_IS_SHORTS_PIP_ACTIVE":return z.payload.isShortsPipActive;default:return a===void 0?!1:a}},
isPlaybackStarted:function(a,z){switch(z.type){case "SET_IS_PLAYBACK_STARTED":return z.payload.isPlaybackStarted;default:return a===void 0?!1:a}}});var pwE={currentMode:"canvas-hidden"};var WJd=function(){return function(a){return function(z){var I=a(z);_.ZF(document.documentElement,"yt-forward-redux-action-to-live-chat-iframe",[z],!0);return I}}};var Z0O,pOO;Z0O=new _.EM;_.Zc=new _.I4("WATCH_PLAYER_PROMISE_TOKEN");_.Cbl=new _.EM;_.NW1=new _.I4("SHORTS_PLAYER_PROMISE_TOKEN");pOO=new _.I4("GET_SHORTS_PLAYER_FUNCTION_TOKEN");var ou7=function(){return function(a){return function(z){z.type==="ENTITY_LOADED"&&_.ab().resolve(_.Zc).then(function(I){var J;(J=I.dispatchReduxAction)==null||J.call(I,z)});
return a(z)}}};var tjI={};var q4$=fL({additionalContext:function(a,z){switch(z.type){case "CHANNEL_REPORT_RESET":return"";case "ADDITIONAL_CONTEXT_UPDATED":var I;return(I=z.payload)!=null?I:"";default:return a===void 0?"":a}},
impersonatedChannelUrl:function(a,z){switch(z.type){case "CHANNEL_REPORT_RESET":return"";case "IMPERSONATED_CHANNEL_URL_UPDATED":var I;return(I=z.payload)!=null?I:"";default:return a===void 0?"":a}},
selectedVideoIds:function(a,z){a=a===void 0?tjI:a;switch(z.type){case "CHANNEL_REPORT_RESET":return{};case "VIDEO_SELECTED":var I={};return Object.assign({},a,(I[z.payload]=!0,I));case "VIDEO_UNSELECTED":return z=z.payload,a=Object.assign({},a),delete a[z],a;default:return a}}});var xT$=fL({parentClickTrackingParams:function(a,z){switch(z.type){case "SET_PARENT_CLICK_TRACKING_PARAMS":return z.payload.parentClickTrackingParams;case "CLEAR_PARENT_CLICK_TRACKING_PARAMS":return"";default:return a===void 0?"":a}}});var uQ1=function(a){return _.rg({type:"TALK_TO_RECS_UPDATE_SELECTION",payload:a})};var Eti={};var vuI=fL({stepStates:function(a,z){a=a===void 0?Eti:a;switch(z.type){case "TALK_TO_RECS_RESET_STEP_STATES":return{};case "TALK_TO_RECS_UPDATE_SELECTION":var I=a,J=z.payload,r,P,N;a={};z={selectionStates:Object.assign({},(N=(r=I[J.stepId])==null?void 0:r.selectionStates)!=null?N:{},(a[J.token]={isSelected:J.isSelected},a)),userQuery:(P=I[J.stepId])==null?void 0:P.userQuery};r={};return Object.assign({},I,(r[J.stepId]=z,r));case "TALK_TO_RECS_UPDATE_USER_QUERY":return r=a,P=z.payload,N={selectionStates:Object.assign({},
(J=(I=r[P.stepId])==null?void 0:I.selectionStates)!=null?J:{}),userQuery:{userQuery:P.userQuery,token:P.userQueryToken}},I={},Object.assign({},r,(I[P.stepId]=N,I));default:return a}}});var BWi,gti,fXG;BWi=function(a){return _.rg({type:"SET_SLIMLINE_SURVEY_RATING_SELECTED_INDEX",payload:a})};
gti=function(a){return _.rg({type:"SET_MINIPLAYER_PLAYBACK_STATE",payload:a})};
_.xK=function(a){return _.rg({type:"SET_CURRENT_PAGE_TYPE",payload:a})};
_.O0o=function(a){return _.rg({type:"SET_INLINE_PREVIEW_IS_ENABLED",payload:a})};
fXG=function(a){return _.rg({type:"SET_CHIP_BAR_IS_STICKY",payload:a})};var msp={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"};_.A0i=function(a){return _.rg({type:"SET_PLAYER_STATE",payload:{playerState:a}})};var s1f=[],ntG={width:0,height:0};var GlG=fL({isTheaterMode:function(a,z){a=a===void 0?_.K("kevlar_disable_theater_mode_persistence")?!1:_.TZ("START_IN_THEATER_MODE"):a;switch(z.type){case "SET_IS_THEATER_MODE":return z.payload.isTheaterMode;default:return a}},
isWatchActive:function(a,z){switch(z.type){case "SET_IS_WATCH_ACTIVE":return z.payload.isWatchActive;default:return a===void 0?!1:a}},
isLearningJourneyActive:function(a,z){switch(z.type){case "SET_IS_LEARNING_JOURNEY_ACTIVE":return z.payload.isLearningJourneyActive;default:return a===void 0?!1:a}},
isWatchFullscreen:function(a,z){switch(z.type){case "SET_IS_WATCH_FULLSCREEN":return z.payload.isWatchFullscreen;default:return a===void 0?!1:a}},
isWatchNarrowWidth:function(a,z){switch(z.type){case "SET_IS_WATCH_NARROW_WIDTH":return z.payload.isWatchNarrowWidth;default:return a===void 0?!1:a}},
isWatchRetroMode:function(a,z){switch(z.type){case "SET_IS_WATCH_RETRO_MODE":return z.payload.isWatchRetroMode;default:return a===void 0?!1:a}},
isLiveChatCollapsed:function(a,z){switch(z.type){case "SET_IS_LIVE_CHAT_COLLAPSED":return z.payload.isLiveChatCollapsed;default:return a===void 0?!1:a}},
openEngagementPanels:function(a,z){a=a===void 0?s1f:a;var I=[].concat(_.ih(a));switch(z.type){case "ADD_OPEN_ENGAGEMENT_PANEL":return I.push(z.payload.panelToAdd),I;case "REMOVE_OPEN_ENGAGEMENT_PANEL":return I.splice(I.indexOf(z.payload.panelToRemove),1),I;default:return a}},
playerState:function(a,z){switch(z.type){case "SET_PLAYER_STATE":return z.payload.playerState;default:return a===void 0?-1:a}},
watchScrollTop:function(a,z){switch(z.type){case "SET_WATCH_SCROLL_TOP":return z.payload.watchScrollTop;default:return a===void 0?0:a}},
watchWindowSize:function(a,z){a=a===void 0?ntG:a;switch(z.type){case "SET_WATCH_WINDOW_SIZE":return z.payload.watchWindowSize;default:return a}}});var KBv={feedbackTokens:[]};var $T3=fL({surveyFeedbackData:function(a,z){a=a===void 0?KBv:a;switch(z.type){case "YPC_UPDATE_SURVEY_FEEDBACK_DATA":return z.payload;case "YPC_UPDATE_PARTIAL_SURVEY_FEEDBACK_DATA":return Object.assign({},a,z.payload);default:return a}}});var kc0={};var DT7=void 0;_.K("web_enable_redux_store_on_demand")||(DT7=UTm());var FBI=function(a,z,I){var J=this;this.listId=a;this.JSC$12756_updateCallback=z;this.isOfflineVideoCallback=I;_.qo().subscribe(function(){J.handleUpdate()})};
FBI.prototype.getPlaylistData=function(){var a=_.qo().getState().entities;if(this.listId&&this.listId!=="PPSV"){var z=Pzd(a,this.listId,!0),I=_.Er(this.listId,"mainPlaylistEntity"),J,r;a=a==null?void 0:(J=a.mainPlaylistEntity)==null?void 0:(r=J[I])==null?void 0:r.title;return RR$(z,a,this.listId)}z=_.pUx(d_I(a));a=_.pUx(_.xp(a));a=z.concat(a);return RR$(a)};
FBI.prototype.getPlaylistId=function(){return this.listId};
FBI.prototype.handleUpdate=function(){this.isOfflineVideoCallback()&&this.JSC$12756_updateCallback(this.listId,this.getPlaylistData(),{})};var DO=function(a,z,I,J){J=J===void 0?[]:J;this.JSC$12759_playlistNetworkManager=a;this.listId=z;this.JSC$12759_updateCallback=I;this.videoIds=J;this.pendingUpdates=[];this.currentIndex=0};
DO.prototype.JSC$12759_setCurrentIndex=function(a){this.currentIndex=a};
DO.prototype.setListId=function(a){this.listId=a};
var H0o=function(a,z){a.currentCreateRequest&&a.currentCreateRequest.cancel(z);a.currentUpdateRequest&&a.currentUpdateRequest.cancel(z);a.currentRefreshRequest&&a.currentRefreshRequest.cancel(z)};
DO.prototype.delete=function(){H0o(this,"PROXY DELETED")};
DO.prototype.addVideos=function(a,z,I){var J=this;I!==void 0?this.videoIds.splice.apply(this.videoIds,[I,0].concat(_.ih(a))):this.videoIds.push.apply(this.videoIds,_.ih(a));this.listId||this.currentCreateRequest?(a.forEach(function(r,P){r={addedVideoId:r,action:"ACTION_ADD_VIDEO"};I&&(r.addedVideoPosition=I+P);J.pendingUpdates.push(r)}),R7(this)):b0w(this,z.onCreateListCommand)};
var hq1=function(a,z,I,J,r){v7M(a.videoIds,z,I);z>a.currentIndex&&I<=a.currentIndex?a.JSC$12759_setCurrentIndex(a.currentIndex+1):z===a.currentIndex?a.JSC$12759_setCurrentIndex(I):z<a.currentIndex&&I>=a.currentIndex&&a.JSC$12759_setCurrentIndex(a.currentIndex-1);a.pendingUpdates.push({action:"ACTION_MOVE_VIDEO_AFTER",setVideoId:J,movedSetVideoIdPredecessor:r});R7(a)},b0w=function(a,z){H0o(a,"OBSOLETE");
a.currentCreateRequest=Vjl(a.JSC$12759_playlistNetworkManager,z,a.videoIds);_.QD(a.currentCreateRequest,function(){a.currentCreateRequest=void 0}).then(function(I){a.setListId(I.playlistId);
a.pendingUpdates.length>0?R7(a):Q1O(a)})},R7=function(a){if(a.pendingUpdates.length!==0&&(a.currentRefreshRequest&&a.currentRefreshRequest.cancel("OBSOLETE"),!a.currentUpdateRequest&&!a.currentCreateRequest)){var z=a.pendingUpdates.splice(0,a.pendingUpdates.length);
a.currentUpdateRequest=a.JSC$12759_playlistNetworkManager.updatePlaylist(a.listId,z);_.QD(a.currentUpdateRequest,function(){a.currentUpdateRequest=void 0}).then(function(){a.pendingUpdates.length>0?R7(a):Q1O(a)}).thenCatch(function(){a.pendingUpdates.unshift.apply(a.pendingUpdates,_.ih(z))})}},Q1O=function(a){a.currentRefreshRequest=_.Suw(a.JSC$12759_playlistNetworkManager,a.listId,a.currentIndex,a.videoIds[a.currentIndex]);
_.QD(a.currentRefreshRequest,function(){a.currentRefreshRequest=void 0}).then(function(z){a.JSC$12759_updateCallback(z.playlistId,z.playlistPanelRenderer,z.autoplayRenderer)})};
DO.prototype.size=function(){return this.videoIds.length};var i0J=function(a,z,I,J){J=J===void 0?[]:J;DO.call(this,a,z,I,J);this.JSC$12759_playlistNetworkManager=a;this.listId=z;this.JSC$12759_updateCallback=I;this.videoIds=J};
_.b(i0J,DO);_.LJ=function(a,z,I,J,r,P,N){r=r===void 0?[]:r;N=N===void 0?PV:N;DO.call(this,a,z,I,r);this.JSC$12759_playlistNetworkManager=a;this.listId=z;this.JSC$12759_updateCallback=I;this.onAuthChange=J;this.videoIds=r;this.storage=P;this.cookieReader=N;this.queueSapisId="";this.queueSapisIdJob=0;this.attributionData=new Map;this.queueSapisId=(new this.cookieReader(window.document)).get("SAPISID","");this.queueSapisIdJob=_.NK(_.GW,this.checkLoggedInStatusChange.bind(this),1E3)};
_.b(_.LJ,DO);_.Z=_.LJ.prototype;_.Z.checkLoggedInStatusChange=function(){(new this.cookieReader(window.document)).get("SAPISID","")!==this.queueSapisId?(this.onAuthChange(),this.storage&&this.storage.clear()):this.queueSapisIdJob=_.NK(_.GW,this.checkLoggedInStatusChange.bind(this),1E3)};
_.Z.JSC$12759_setCurrentIndex=function(a){DO.prototype.JSC$12759_setCurrentIndex.call(this,a);this.store()};
_.Z.delete=function(){_.GW.cancelJob(this.queueSapisIdJob);DO.prototype.delete.call(this)};
_.Z.setListId=function(a){DO.prototype.setListId.call(this,a);this.store()};
_.Z.store=function(){this.storage&&this.listId&&this.currentIndex!==void 0&&this.storage.store(this.listId,this.currentIndex)};var x8i=["response","contents","twoColumnWatchNextResults","autoplay","autoplay"],vtw=["playerResponse","videoDetails"],Gqv=["response","currentVideoEndpoint","watchEndpoint","videoId"],$8w=["response","currentVideoEndpoint","watchEndpoint","playlistId"],XX1=["response","playerOverlays","playerOverlayRenderer","endScreen","watchNextEndScreenRenderer"],TWG=["response","contents","twoColumnWatchNextResults","playlist","playlist"],d8o=["response","webWatchNextResponseExtensionData","relatedVideoArgs"],
WBi=["response","contents","twoColumnWatchNextResults"];var lz={},mTE=(lz.WEB_UNPLUGGED="^unplugged/",lz.WEB_UNPLUGGED_ONBOARDING="^unplugged/",lz.WEB_UNPLUGGED_OPS="^unplugged/",lz.WEB_UNPLUGGED_PUBLIC="^unplugged/",lz.WEB_CREATOR="^creator/",lz.WEB_KIDS="^kids/",lz.WEB_EXPERIMENTS="^experiments/",lz.WEB_MUSIC="^music/",lz.WEB_REMIX="^music/",lz.WEB_MUSIC_EMBEDDED_PLAYER="^music/",lz.WEB_MUSIC_EMBEDDED_PLAYER="^main_app/|^sfv/",lz);var idG,Vjl;idG=function(a,z){this.networkManager=a;this.innertubeTransportService=z};
Vjl=function(a,z,I){if(!_.H(z,_.mS))return _.xN(Error("Ef"));_.H(z,_.mS).videoIds=I;I={create_playlist_title:_.AR("QUEUE",void 0,"Queue")};return pc$(_.y7(a.innertubeTransportService,z,I),LJI)};
_.Suw=function(a,z,I,J){z={videoId:J,playlistId:z,playlistIndex:I};I=_.ex(oal);return pc$(_.pJ(a.innertubeTransportService,z,I),wcE)};
idG.prototype.updatePlaylist=function(a,z){return pc$(_.y7(this.innertubeTransportService,{commandMetadata:{webCommandMetadata:{apiUrl:"/youtubei/v1/browse/edit_playlist",sendPost:!0}},playlistEditEndpoint:{playlistId:a,actions:z}}),lsG)};var otl=function(a){this.storage=a},U8e;
otl.prototype.store=function(a,z){z=z===void 0?0:z;if(this.storage&&a.startsWith("TLPQ"))try{this.storage.set("TLPQplaylist",a),this.storage.set("TLPQindex",String(z)),this.storage.set("TLPQtimestamp",String(Date.now()))}catch(I){}};
otl.prototype.clear=function(){this.storage&&(this.storage.remove("TLPQtimestamp"),this.storage.remove("TLPQplaylist"),this.storage.remove("TLPQindex"))};
otl.prototype.getPlaylistId=function(){if(!this.storage)return null;var a=null;try{a=this.storage.get("TLPQplaylist")}catch(z){}return a};var ctp=["navigationEndpoint","watchEndpoint","videoId"],MYI=["nextButtonVideo","watchEndpoint","videoId"];_.Tr=new _.I4("NETWORK_TOKEN");_.aK=new _.I4("PAGE_TOKEN");_.wR=new _.I4("PLAYLIST_TOKEN");var D8G;D8G=new _.I4("ASYNC_INNERTUBE_TRANSPORT_TOKEN");_.dY=new _.I4("INNERTUBE_TRANSPORT_TOKEN");var RqG,mh,lXf,pXf,m8l,y01;RqG=new Set(["ci","cr","carml"]);mh=function(){this.signals=[];this.compoundSignals=new Map;this.inProgressSignals=new Set;this.JSC$12806_parkedJobs=new Map;this.parkedProcessors=new Map};
_.yT=function(){mh.instance||(mh.instance=new mh);return mh.instance};
mh.prototype.onAny=function(a){return _.LBI(this,a,2)};
mh.prototype.parkOrScheduleJob=function(a,z,I,J,r){_.k3(this,I)?_.ig().addJob(a,z,J):(r&&(a=lXf(a),pXf(this,a,z,I,r)),r=this.JSC$12806_parkedJobs.get(I),r||(this.JSC$12806_parkedJobs.set(I,[]),r=this.JSC$12806_parkedJobs.get(I)),r.push({job:a,priority:z,delay:J}))};
mh.prototype.addListener=function(a,z,I){I&&(z=lXf(z),pXf(this,z,0,a,I));I=this.parkedProcessors.get(a);I||(this.parkedProcessors.set(a,[]),I=this.parkedProcessors.get(a));I.push(z)};
mh.prototype.processSignal=function(a){if(!_.k3(this,a)){this.inProgressSignals.add(a);var z=this.JSC$12806_parkedJobs.get(a);if(z){z=_.C(z);for(var I=z.next();!I.done;I=z.next())I=I.value,_.ig().addJob(I.job,I.priority,I.delay);this.JSC$12806_parkedJobs.delete(a)}if(z=this.parkedProcessors.get(a)){z=_.C(z);for(I=z.next();!I.done;I=z.next())I=I.value,I();this.parkedProcessors.delete(a)}this.signals.push(a);this.inProgressSignals.delete(a)}};
_.k3=function(a,z){return RqG.has(z)||_.TZ("IS_HOMEPAGE_COLD")||_.TZ("IS_RESULTS_PAGE_COLD")||_.TZ("IS_WATCH_PAGE_COLD")?a.signals.indexOf(z)>=0:!0};
lXf=function(a){var z=!1;return function(){z||(z=!0,a())}};
pXf=function(a,z,I,J,r){if(wXv.has(J))_.ig().addJob(z,I,r);else{var P=a.compoundSignals.get(J);P&&_.ig().addJob(function(){_.k3(a,J)||(P.isTimeoutConditionSatisfied?_.ig().addJob(z,I):P.timeoutConditionObservers.push(function(){_.ig().addJob(z,I)}))},I,r)}};
_.LBI=function(a,z,I){if(z.length>1){var J=[],r=Object.create(null);z=_.C(z);for(var P=z.next();!P.done;P=z.next())P=P.value,r[P]||(J.push(P),r[P]=!0);z=J}if(z.length===1)return z[0];P=z;J="";r=I===2?"|":"&";P.sort();P=_.C(P);for(var N=P.next();!N.done;N=P.next())J+=N.value+r;if(!a.compoundSignals.get(J)){r=0;P=[];N=_.C(z);for(var u=N.next();!u.done;u=N.next())u=u.value,r++,_.k3(a,u)||P.push(u);(I=I===2)&&r>P.length||!I&&!P.length?a.signals.push(J):m8l(a,J,I,z,P)}return J};
m8l=function(a,z,I,J,r){var P=r.length,N=function(){I||--P===0?a.processSignal(z):y01(a,z)};
r=_.C(r);for(var u=r.next();!u.done;u=r.next())a.addListener(u.value,N);a.compoundSignals.set(z,{signals:J,isOnAny:I,isInitialized:!1,isTimeoutConditionSatisfied:!1,timeoutConditionObservers:[]});y01(a,z)};
y01=function(a,z){if(!_.k3(a,z)){var I=a.compoundSignals.get(z);if(I&&!I.isTimeoutConditionSatisfied){for(var J=!1,r=0,P=0,N=_.C(I.signals),u=N.next();!u.done;u=N.next()){var E=u.value;u=!_.k3(a,E);wXv.has(E)?J=!0:(E=a.compoundSignals.get(E))?u&&!E.isTimeoutConditionSatisfied&&(P++,I.isInitialized||E.timeoutConditionObservers.push(function(){y01(a,z)})):u&&r++}I.isInitialized=!0;
I.isOnAny?J&&(I.isTimeoutConditionSatisfied=!0):r===0&&P===0&&(I.isTimeoutConditionSatisfied=!0);if(I.isTimeoutConditionSatisfied)for(I=_.C(I.timeoutConditionObservers),J=I.next();!J.done;J=I.next())J=J.value,J()}}};
mh.prototype.processSignal=mh.prototype.processSignal;mh.prototype.parkOrScheduleJob=mh.prototype.parkOrScheduleJob;mh.prototype.onAny=mh.prototype.onAny;_.qe("ytsignals.getInstance",_.yT);mh.prototype.onAny=mh.prototype.onAny;mh.prototype.parkOrScheduleJob=mh.prototype.parkOrScheduleJob;mh.prototype.processSignal=mh.prototype.processSignal;var wXv=new Set(["eop","eocs","dl","pcl"]);_.UJ=new _.I4("MINIPLAYER_SERVICE");var M_,kqv,Mje;M_=function(a,z,I){var J=_.w2.getInstance();if(!U8e){var r=new fY0;var P=void 0,N=_.Xw("ID_TOKEN");N&&r.isAvailable()&&(P=new V2(r,"yt-queue"+N));U8e=new otl(P)}r=U8e;P=_.yT();this.JSC$12813_actionRouter=J;this.pageManager=a;this.playlistManager=z;this.JSC$12813_playlistNetworkManager=I;this.storage=r;this.signals=P;this.responsePlaylistData=this.response=this.index=this.listId=void 0;this.temporaryItems=[];this.downloadPlaylistProxy=this.playlistProxy=this.queueProxy=void 0};
_.cS=function(){if(!kqv){var a=_.ab(),z=a.resolve(_.eL(_.aK)),I=a.resolve(_.eL(_.Tr)),J=a.resolve(_.eL(_.wR));a=a.resolve(_.dY);kqv=new M_(z,J,new idG(I,a))}return kqv};
Mje=function(a,z,I){if(I){var J;if(((J=a.responsePlaylistData)==null?void 0:J.playlistId)!==I)return}a.responsePlaylistData&&(I=z1G(z,a.responsePlaylistData),a.responsePlaylistData=(0,_.x8.unsafeClone)(a.responsePlaylistData),Jc3(a.responsePlaylistData,I));I=a.temporaryItems.findIndex(function(r){return r.videoId===z});
I>-1&&a.temporaryItems.splice(I,1);_.Y3(a,_.q_(a,a.response?a.response.autoplayRenderer:void 0))};
_.c0J=function(a,z){if(a.responsePlaylistData){var I=Iem(z,a.responsePlaylistData);Jc3(a.responsePlaylistData,I);if(a.queueProxy){var J=a.queueProxy;I<0||(J.videoIds.splice(I,1),I<J.currentIndex&&J.JSC$12759_setCurrentIndex(J.currentIndex-1),J.pendingUpdates.push({action:"ACTION_REMOVE_VIDEO",setVideoId:z}),R7(J))}}_.Y3(a,_.q_(a,a.response?a.response.autoplayRenderer:void 0))};
M_.prototype.clearQueue=function(){this.temporaryItems=[];this.storage.clear();this.queueProxy&&(this.queueProxy.delete(),this.responsePlaylistData=this.queueProxy=void 0);this.response&&_.Y3(this,{autoplayRenderer:this.response.autoplayRenderer,playerData:{}})};
M_.prototype.setPlaylistData=function(a,z,I){this.temporaryItems=[];this.listId=a;this.responsePlaylistData=z;_.Y3(this,_.q_(this,I))};
var Yu1=function(a){return(a==null?0:a.playlistId)?a.playlistId:"PPSV"},qui=function(a){return a&&a.playlistId?a.playlistId==="PPSV"?!0:Jqp(_.qo().getState().entities,a.playlistId):!1};
M_.prototype.isPlayingOfflineVideo=function(){return this.response?qui(this.response):!1};
M_.prototype.closeMiniplayer=function(a){var z=this.queueProxy&&this.queueProxy.size()<=1,I=_.ab().resolve(_.UJ);if(!this.queueProxy||z)this.queueProxy&&this.clearQueue(),I.close(!0);else{I.pipController.getWindow()&&window.focus();z=this.responsePlaylistData;var J=this.temporaryItems.length+(z&&z.contents?z.contents.length:0);z=_.AR("QUEUE_CLEARED_UNPLURALIZED")||_.s_("QUEUE_CLEARED",J);z=_.jt(z);I=_.AR("QUEUE_CLOSE_MINIPLAYER_CONFIRM_TITLE",void 0,"Close the queue");J=_.AR("QUEUE_CLOSE_MINIPLAYER_CONFIRM_BODY_TEXT")||
_.s_("QUEUE_CLOSE_MINIPLAYER_CONFIRM_TEXT",J);var r=_.AR("MINIPLAYER_CLOSE",void 0,"Close"),P=_.AR("CANCEL",void 0,"Cancel");_.DN(this.JSC$12813_actionRouter,[{openPopupAction:{popupType:"DIALOG",popup:{confirmDialogRenderer:{title:_.Mo(I),dialogMessages:[_.Mo(J)],confirmButton:{buttonRenderer:{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:_.Mo(r),serviceEndpoint:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{endPlaylistCommand:{closeMiniplayer:!0,listType:"PLAYLIST_EDIT_LIST_TYPE_QUEUE"}},
z]}}}},cancelButton:{buttonRenderer:{style:"STYLE_TEXT",size:"SIZE_DEFAULT",text:_.Mo(P)}}}}}}],a)}};
_.q_=function(a,z){var I={},J=a.response;I.autoplayRenderer=z;if(!a.responsePlaylistData&&!a.temporaryItems.length)return!J||!J.hasRelatedVideoData&&_.K("kevlar_prefetch_data_augments_network_data")||(I.playerData={rvs:J.relatedVideoArgs,endScreenRenderer:J.endScreenRenderer}),I;I.playerData={};if(a.index===void 0)return _.Gx(Error("Gf")),I;I.panel=a.responsePlaylistData?(0,_.x8.unsafeClone)(a.responsePlaylistData):{titleText:_.Mo(_.AR("QUEUE",void 0,"Queue")),currentIndex:0,totalVideos:1,contents:[]};
z=I.panel;if(z.contents)for(var r=_.C(a.temporaryItems),P=r.next();!P.done;P=r.next())z.contents.push({playlistPanelVideoRenderer:P.value});a.queueProxy&&J&&J.playingVideo&&J.playingVideoId&&!jWd(J.playingVideoId,I.panel)&&(z=J.playingVideo,r=I.panel,P=a.index,r.contents&&r.contents.splice(P===void 0?0:P,0,{playlistPanelVideoRenderer:z}));J&&J.playingVideoId&&(z=a.index,r=I.panel,z=!r.contents||z>=r.contents.length?void 0:r.contents[z].playlistPanelVideoRenderer,z&&z.videoId===J.playingVideoId||(z=
z1G(J.playingVideoId,I.panel),a.index=z!==-1?z:a.index?a.index-1:0));z=ae0(a.index+1,I.panel);r=void 0;a.index>0&&(r=ae0(a.index-1,I.panel));if(r||z)I.autoplayRenderer=YTM(z,r,I.autoplayRenderer);!z&&(J==null?0:J.relatedVideoArgs)&&(I.playerData.rvs=J.relatedVideoArgs);J=J?J.playlistIndexOffset:0;a.queueProxy?ZV1(I.panel,a.index,J,eRp,!0,!0,!0):ZV1(I.panel,a.index,J);I.playerData.playlistPanelRenderer=I.panel;return I};
M_.prototype.openToast=function(a){_.ab().resolve(_.UJ).openToast(a,_.AR("ADDED_TO_QUEUE",void 0,"Added to queue"))};
M_.prototype.isMiniplayerActive=function(){return _.ab().resolve(_.UJ).isMiniplayerActive()};
_.Y3=function(a,z){a.playlistManager.setAutoplayRenderer(z.autoplayRenderer||null);a.playlistManager.setPlaylistData(z.panel||null);z.playerData&&a.playlistManager.setPlayerPlaybackControlData(z.playerData)};var NIx="#";var eqj={},a0O={},jM1={},zHo={},I0I={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:(eqj.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue="ap",eqj),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:(a0O.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue="as",a0O),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:(jM1.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue="zx",jM1),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:(zHo.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue="po",zHo),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 wZE=[{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:I0I},{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:I0I}}];var TI0;_.uk=[[["ejMza2luZCN2anNjbzVjanM=","MnZhbHVlI2ljazJhN3hiZWhs"],"a0FEX1BMQUNFTUVOVF9LSU5EX1NUQVJUI3ZzbWc0ajd5a2ho"]];
TI0=[[["bWFyeSM0dWJlNzV5eDYzanZwcmk=",null,null],[null,["LWJyb3dzZS1yZXN1bHRzLXJlbmRlcmVyI20wdWsxaHBlZzNqOHl0ZC10d28tY29sdW1u","I283YjBoaDJwMHpzcnN0eWxlLXNjb3Bl"],null],["I2Q4ZTdvMDZrOHltc21hc3RoZWFkLWFk",["cmp5dGQtcmljaC1ncmlkLXJlbmRlcmVyI3IzbDZ2NWZ1aDk="],null],[null,["OG15dGQtcmljaC1ncmlkLXJlbmRlcmVyI3VzbmgwZWFhcmU=","I3RlMGZlZXN3aXJnYXN0eWxlLXNjb3Bl"],null],[null,["dGQtYmFubmVyLXByb21vLXJlbmRlcmVyIzVvZzYxbHB6N251Y3k=","I2Fwa3kyNGVlNW03NnN0eWxlLXNjb3Bl"],null],[null,["ZmNudnB5dGQtYWQtc2xvdC1yZW5kZXJlciNqdW93cm8="],
null]],[["cyNoajhhaTV1Znc4eGlwbGF5ZXItYWQ=",null,null]]];_.tv=["aWUxanFycWYyZ2xvYmFsQ2FsbGJhY2tzI3hncQ==","bno0b25BYm5vcm1hbGl0eURldGVjdGVkIzRjZDR1cWUydw==","a2lwI2RraHl1aGo1ZmhnbW9uQWRT","cmNpeGpyYXdfcGxheWVyX3Jlc3BvbnNlI2RvZjQxbms=","bG90cyM0YWxjNWo0ZzY0anlhZFM="];_.eK="aWUxanFycWYyZ2xvYmFsQ2FsbGJhY2tzI3hncQ== bno0b25BYm5vcm1hbGl0eURldGVjdGVkIzRjZDR1cWUydw== a2lwI2RraHl1aGo1ZmhnbW9uQWRT cmNpeGpyYXdfcGxheWVyX3Jlc3BvbnNlI2RvZjQxbms= X3F1ZXVlX211bHRpcGxlX3NraXBzX2tzI3JlYWZlbzdudmw1OXdlYl9wbGF5bGlzdA== X2VmI2Z6Z2hmNzNna2YwOGFiX3Nh bG90cyM0YWxjNWo0ZzY0anlhZFM=".split(" ");var aD;aD=function(a,z,I){this.iyw=a;this.isAsync=z;this.mmy=I};
_.IwG=[new aD("b.f_",!1,0),new aD("j.s_",!1,2),new aD("r.s_",!1,4),new aD("e.h_",!1,6),new aD("i.s_",!0,8),new aD("s.t_",!1,10),new aD("p.h_",!1,12),new aD("s.i_",!1,14),new aD("f.i_",!1,16),new aD("a.b_",!1,18),new aD("a.o_",!1),new aD("g.o_",!1,22),new aD("p.i_",!1,24),new aD("p.m_",!1),new aD("n.k_",!0,20),new aD("i.f_",!1),new aD("a.s_",!0),new aD("m.c_",!1),new aD("n.h_",!1,26),new aD("o.p_",!1),new aD("m.p_",!0,28),new aD("o.a_",!1),new aD("d.p_",!1),new aD("e.i_",!1)].reduce(function(a,z){a[z.iyw]=
z;return a},{});var JLO=function(){};
JLO.prototype.flush=function(a,z){a=a===void 0?[]:a;z=z===void 0?!1:z;if(_.K("enable_client_streamz_web")){a=_.C(a);for(var I=a.next();!I.done;I=a.next())I=p9w(I.value),this.rootSpec&&_.gO(I,2,this.rootSpec),I={serializedIncrementBatch:_.he(I.JSC$9565_serializeBinary())},_.x0("streamzIncremented",I,{sendIsolatedPayload:z})}};
var BIx=function(){};
_.b(BIx,JLO);var rLO=function(a){var z=new W9e;var I=new X9I;I=_.KB(I,1,"botguard");a=_.KB(I,2,a);this.rootSpec=_.Oa(z,1,oPi,a)};
_.b(rLO,JLO);var Za,P$w=new Map;var U5p,OVG,h1G,sW3,FD3,$5$,R1p,vI3;U5p=2;OVG=2;h1G=2;sW3=2;FD3=2;$5$=2;R1p=2;vI3=new olO;var C$O,Ntv,t0X;C$O=function(){this.ongoingFlowNonces=new Map};
_.fH=function(){Ntv||(Ntv=new C$O);return Ntv};
_.Bh=function(a,z,I){return{eventType:{flowEventNamespace:a,flowEventType:z},metadata:I,statusCode:void 0,csn:void 0,can:void 0}};
_.rMi=function(a,z){var I=_.fH(),J=t0X(I,z,!0);_.OM(I,a,z,J)};
_.OM=function(a,z,I,J){a={flowNonce:J||t0X(a,I),flowType:I,flowEventType:z.eventType};z.metadata&&(a.flowMetadata=z.metadata);z.statusCode!==void 0&&(a.flowEventStatus=z.statusCode);z.csn&&(a.csn=z.csn);z.can&&(a.can=z.can);_.x0("flowEvent",a,void 0)};
t0X=function(a,z,I){I=I===void 0?!1:I;var J=a.ongoingFlowNonces.get(z);if(!J||I)J=GX(16),a.ongoingFlowNonces.set(z,J);return J};_.u8J=new WGo;var NP7={UNKNOWN:"unknown",BROWSE:"browse",WATCH:"watch",SEARCH:"search",ACCOUNTS:"accounts",SETTINGS:"settings",WELCOME:"welcome",ACCOUNT_SELECTOR:"account_selector",CHANNEL:"channel",PLAYLIST:"playlist",SIGN_IN_IDENTIFIER_ENTRY:"sign_in_identifier_entry",SIGN_IN_PASSWORD_ENTRY:"sign_in_password_entry",SIGN_IN_DEVICE_PROMPT_CHALLENGE:"sign_in_device_prompt_challenge",SHORTS:"shorts",PROMO:"promo",CALL_TO_CAST:"call_to_cast",AMBIENT_INTERLUDES:"ambient_interludes",PRIVACY:"privacy",NO_OP:"noop",MINI_APP:"mini_app",
MINI_APP_EMBED:"mini_app",OPEN_IN_APP:"open_in_app",LEARNING:"learning",LEARNING_JOURNEY_WATCH:"learning_journey_watch"};var jP=function(a,z,I,J,r,P,N){I=I===void 0?!1:I;J=J===void 0?!1:J;P=P===void 0?_.cS():P;this.hasRun=!1;this.qqt=a;this.ao5=z;this.qWL=I;this.fromHistory=J;this.previousVideoId=r;this.sNE=P;this.tempData=N;this.jND=new _.UCl};
_.b(jP,ZO);jP.prototype.validate=function(a){return!(!a.data.playerResponse||a.data.page!=="watch"&&a.data.page!=="learning_journey_watch"&&a.data.page!=="shorts"||this.hasRun)};
jP.prototype.handle=function(a){var z=this,I=_.H(a.endpoint,_.MZ),J=_.H(a.endpoint,_.hv);if(_.K("kevlar_continue_playback_without_player_response")&&(I==null?0:I.videoId)&&this.previousVideoId&&(I==null?void 0:I.videoId)===this.previousVideoId&&(I==null?0:I.continuePlayback)&&!this.fromHistory)this.qqt.resolve();else{var r={};I?r.watch_endpoint=I:J&&(r.watch_endpoint=J,J.endTimeSeconds&&(r.end=J.endTimeSeconds));a.data.page==="watch"?(a.data.filler||this.qWL||(_.Tb("cfg"),_.w2.getInstance().triggerAction("yt-start-loading-watch")),
Object.assign(r,EJv(this,a.endpoint)),_.K("enable_masthead_quartile_ping_fix")&&Object.assign(r,BtE(this)),Object.assign(r,void 0),a.data.forceExternalPlaylist&&(r.external_list=!0)):a.data.page==="shorts"?_.w2.getInstance().triggerAction("yt-start-loading-shorts"):a.data.page==="learning_journey_watch"&&_.w2.getInstance().triggerAction("yt-start-loading-learning-journey");if(I=this.ao5()){try{I.loadVideoWithPlayerResponse(a.data.playerResponse,r),I.getPlayerPromise().then(this.qqt.resolve)}catch(P){_.Gx(P),
this.qqt.resolve()}this.hasRun=!0;I.getPlayerPromise().then(function(P){P.addEventListener("onAbnormalityDetected",function(){var N=a.data.playerResponse,u=P.getVideoData().cpn;R1p=0;_.ZA1=u;if(u=z6m(N))z.jND.increment("IN_PLAYER"),_.Av(5),_.K("ab_st_vid_ks")?P.pauseVideo(!0):P.stopVideo(),N.playabilityStatus=Object.assign({},N.playabilityStatus,{status:"ERROR",errorScreen:{enforcementMessageViewModel:u}}),N.videoDetails=void 0,_.w2.getInstance().triggerOptionalAction("yt-updated-playability-status",
N.playabilityStatus)})})}else _.Xd(Error("Jf"))}};
var EJv=function(a,z){var I=_.H(z,_.MZ);if(z&&I&&I.playlistId&&I.videoId&&(a=a.sNE,a.queueProxy?(a=a.queueProxy,I=a.listId===I.playlistId?a.attributionData.get(I.videoId):void 0):I=void 0,I))return{queue_info:I}},BtE=function(a){var z;
if((z=a.tempData)==null?0:z.adpings)return{adpings:a.tempData.adpings}};var zc=function(a,z,I){this.hasRun=!1;this.yhy=a;this.xoK=z;this.b5k=I};
_.b(zc,ZO);zc.prototype.validate=function(a){return!!_.x8.getValueByKeys.apply(null,[a.data].concat(_.ih(WBi)))};
zc.prototype.handle=function(a){var z=this;this.yhy.promise.then(function(){var I=a.data;var J=_.x8.getValueByKeys.apply(null,[I].concat(_.ih(x8i))),r=_.x8.getValueByKeys.apply(null,[I].concat(_.ih(TWG))),P=_.x8.getValueByKeys.apply(null,[I].concat(_.ih(Gqv)));var N=(N=_.x8.getValueByKeys.apply(null,[I].concat(_.ih(vtw))))?{videoId:N.videoId,thumbnail:N.thumbnail,title:N.title?_.Mo(N.title):void 0,shortBylineText:N.author?_.Mo(N.author):void 0}:void 0;var u=void 0;_.K("web_get_playlist_id_from_current_endpoint_ks")||
(u=_.x8.getValueByKeys.apply(null,[I].concat(_.ih($8w))));var E=_.x8.getValueByKeys.apply(null,[I].concat(_.ih(d8o))),O=_.x8.getValueByKeys.apply(null,[I].concat(_.ih(XX1))),f=!!E||!!O&&!!O.results&&O.results.length>0,A=0;r&&r.currentIndex&&r.localCurrentIndex&&(A=r.currentIndex-r.localCurrentIndex);r&&r.playlistId&&(u=r.playlistId);I={rawResponse:I,autoplayRenderer:J,hasRelatedVideoData:f,playingVideo:N,playingVideoId:P,playlistPanelRenderer:r,playlistId:u,playlistIndex:r&&r.currentIndex,relatedVideoArgs:E,
endScreenRenderer:O,playlistIndexOffset:A};a:{J=z.b5k;r=z.xoK;J.response=I;if(qui(I))J.downloadPlaylistProxy&&J.downloadPlaylistProxy.getPlaylistId()===Yu1(I)||(J.downloadPlaylistProxy=new FBI(Yu1(I),J.setPlaylistData.bind(J),J.isPlayingOfflineVideo.bind(J))),J.responsePlaylistData=J.downloadPlaylistProxy.getPlaylistData(),J.listId=Yu1(I),J.index=0;else if(I.playlistPanelRenderer&&I.playlistId&&I.autoplayRenderer)I.playlistId.startsWith("TLPQ")?J.queueProxy?J.listId===I.playlistId?(J.index=I.playlistIndex,
J.responsePlaylistData=I.playlistPanelRenderer,J.queueProxy.JSC$12759_setCurrentIndex(J.index)):I.playingVideoId&&J.index!==void 0&&r.clientParams.autoSaveToQueue&&(J.index+=1,J.queueProxy.JSC$12759_setCurrentIndex(J.index),J.queueProxy.addVideos([I.playingVideoId],{},J.index)):(J.queueProxy=new _.LJ(J.JSC$12813_playlistNetworkManager,I.playlistId,J.setPlaylistData.bind(J),J.clearQueue.bind(J),_.rc7(I.playlistPanelRenderer),J.storage),J.responsePlaylistData=I.playlistPanelRenderer,J.listId=I.playlistId,
J.index=I.playlistIndex):(J.index=I.playlistIndex,J.listId!==I.playlistId&&J.clearQueue(),J.responsePlaylistData=I.playlistPanelRenderer,J.listId=I.playlistId,J.playlistProxy=new i0J(J.JSC$12813_playlistNetworkManager,I.playlistId,J.setPlaylistData.bind(J),_.rc7(I.playlistPanelRenderer)));else if(!J.queueProxy)J.responsePlaylistData=void 0;else if(I.playingVideoId&&r.clientParams.autoSaveToQueue){if(J.index===void 0){_.Gx(Error("Ff"));J.clearQueue();break a}J.queueProxy.videoIds.includes(I.playingVideoId)||
(J.index+=1,J.queueProxy.JSC$12759_setCurrentIndex(J.index),J.queueProxy.addVideos([I.playingVideoId],{},J.index))}_.Y3(J,_.q_(J,J.response.autoplayRenderer))}})};var gJj=function(a,z){z=z===void 0?_.cS():z;HS.call(this);this.sJ.push(new zc(this.kC,{clientParams:{miniplayer:!1,autoSaveToQueue:!1}},z));this.sJ.push(new jP(this.kC,a,!1,!1));_.K("web_response_commands_chunk_processor")&&this.sJ.push(new bz)};
_.b(gJj,HS);gJj.prototype.processChunk=function(a){a&&a.data.player===void 0&&this.kC.resolve();HS.prototype.processChunk.call(this,a)};var ID=function(a,z){a=a===void 0?{layer:0}:a;this.hasRun=!1;this.createScreenConfig=a;this.ikE=z};
_.b(ID,ZO);ID.prototype.validate=function(a){return!(this.hasRun||!a.endpoint)};
ID.prototype.handle=function(a){var z=_.Kw(),I,J,r=(J=_.H((I=a.endpoint)==null?void 0:I.commandMetadata,_.O_))==null?void 0:J.rootVe;this.ikE&&r?_.fJ(z,r,this.ikE,this.createScreenConfig):JrO(z,a.endpoint,this.createScreenConfig);this.hasRun=!0};var JK=function(a,z){this.hasRun=!1;this.g9y=a;this.previousVideoId=z};
_.b(JK,ZO);JK.prototype.validate=function(a){return _.K("kevlar_continue_playback_without_player_response")&&(a=_.H(a.endpoint,_.MZ),(a==null?0:a.videoId)&&this.previousVideoId&&(a==null?void 0:a.videoId)===this.previousVideoId&&(a==null?0:a.continuePlayback))?!1:this.g9y.k0w===0};
JK.prototype.handle=function(a){_.w2.getInstance().triggerAction("yt-stop-old-player",a.data,!0)};var OAi=function(a){a=a===void 0?{layer:0}:a;HS.call(this);this.sJ.push(new JK(this));this.sJ.push(new ID(a));this.sJ.push(new Fo(a))};
_.b(OAi,HS);var f0v=function(){this.hasRun=this.hasRun=!1};
_.b(f0v,ZO);f0v.prototype.validate=function(a){return!this.hasRun&&!(!a.data.csn||!a.data.rootVe)};
f0v.prototype.handle=function(a){this.hasRun=!0;_.WJ(a.data.csn,a.data.rootVe,3)};var ALw=function(){ZO.apply(this,arguments)};
_.b(ALw,ZO);ALw.prototype.validate=function(a){return!!a.data.preconnect};
ALw.prototype.handle=function(a){_.Xz("bc");a=_.C(a.data.preconnect);for(var z=a.next();!z.done;z=a.next())z=z.value,(new Image).src=z};var sMG=function(a,z,I){I=I===void 0?{layer:0}:I;HS.call(this);this.sJ.push(new jP(this.kC,a));this.sJ.push(new ID(I));this.sJ.push(new Fo(I))};
_.b(sMG,HS);var nJo=function(a,z,I,J,r){I=I===void 0?{layer:0}:I;J=J===void 0?_.cS():J;HS.call(this);var P=!!z&&!!z.clientParams&&!!z.clientParams.miniplayer;P&&this.sJ.push(new f0v);this.sJ.push(new zc(this.kC,z,J));this.sJ.push(new ALw);var N,u;this.sJ.push(new jP(this.kC,a,P,!((N=z.clientParams)==null||!N.fromHistory),(u=z.clientParams)==null?void 0:u.previousVideoId,J,z.tempData));var E;this.sJ.push(new JK(this,(E=z.clientParams)==null?void 0:E.previousVideoId));var O;(O=z.clientParams)!=null&&O.fromHistory||
(I.layer||(I=Object.assign({},I,{layer:P?3:0})),this.sJ.push(new ID(I,r)),this.sJ.push(new Fo(I)));_.K("web_response_commands_chunk_processor")&&this.sJ.push(new bz)};
_.b(nJo,HS);var rr,HAl;rr={};
_.Kc1=(rr["subs-guide-item"]={bodyText:"SUBS_GUIDE_ITEM_EDU_TEXT",position:"OPEN_POPUP_POSITION_RIGHT"},rr["subs-filter-by-channel"]={bodyText:"SUBS_FILTER_EDU_TEXT",position:"OPEN_POPUP_POSITION_RIGHT",setKey:"subs-filter-by-channel-set"},rr["subs-filtered-by-channel"]={bodyText:"SUBS_FILTER_EDU_CHANNEL_TEXT",position:"OPEN_POPUP_POSITION_RIGHT",setKey:"subs-filter-by-channel-set"},rr["membership-join"]={titleText:"JOIN_MEMBERSHIP_EDU_TITLE",bodyText:"JOIN_MEMBERSHIP_EDU_TEXT",position:"OPEN_POPUP_POSITION_LEFT"},rr["membership-freebie-join"]=
{bodyText:"FREEBIE_JOIN_MEMBERSHIP_EDU_TEXT",position:"OPEN_POPUP_POSITION_LEFT"},rr["membership-manage"]={bodyText:"MANAGE_MEMBERSHIP_EDU_TEXT",position:"OPEN_POPUP_POSITION_LEFT"},rr["library-guide-item"]={titleText:"LIBRARY_GUIDE_ITEM_EDU_TITLE",bodyText:"LIBRARY_GUIDE_ITEM_EDU_TEXT",position:"OPEN_POPUP_POSITION_RIGHT"},rr);_.Pw=new _.o3("yt-edu");_.FcJ=function(){this.JSC$12914_eduDisplayedThisLoad_={}};
HAl=function(a){var z=_.FcJ.getInstance();var I=_.Ib("kevlar_tooltip_impression_cap");z=I&&parseInt(_.Pw.get(a+"-impression")||0,10)>=I||_.Pw.get(a+"-dismissed")?!1:(I=_.Kc1[a])&&!z.JSC$12914_eduDisplayedThisLoad_[I.setKey||a]&&(I.titleText&&_.AR(I.titleText)||I.bodyText&&_.AR(I.bodyText))?!0:!1;if(!z)return null;z=_.Kc1[a];if(!z)return null;I=z.bodyText?_.AR(z.bodyText):void 0;var J=z.titleText?_.AR(z.titleText):void 0;return[{openPopupAction:{popupType:"HINT",position:z.position,popup:{bubbleHintRenderer:{text:J?
_.Mo(J):void 0,detailsText:I?_.Mo(I):void 0,style:"BUBBLE_HINT_STYLE_BLUE_TOOLTIP",confirmButton:{buttonRenderer:{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:_.Mo(_.AR("EDU_GOT_IT")),serviceEndpoint:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{eduDismissAction:{key:a}}]}}}}}}}},{eduImpressionAction:{key:a}}]};
_.Is(_.FcJ);var PQ$=!1;for(var bAw="WEB_PAGE_TYPE_SETTINGS red playlist labs handle ypc-offers show ypc-checkout".split(" "),hHX=[],ZG=6;ZG>=1;ZG--)hHX.push({columnCount:ZG,query:ZG==1?0:ZG*2*107-4+32,className:"grid-"+ZG+"-columns",width:ZG*2*107+"px"});_.QMI=function(a){this.actionRouter_=a=a===void 0?_.w2.getInstance():a;this.documentWidth_=document.body.clientWidth;this.currentSnapState_=_.V0I(this);this.miniGuideVisible_=this.guidePersistentAndVisible_=!1};
_.V0I=function(a){var z=a.miniGuideVisible_?72:0,I=a.documentWidth_-(a.guidePersistentAndVisible_?240:z);return hHX.find(function(J){return I>J.query})};
_.Is(_.QMI);var SAj=function(){var a=this;this.JSC$12926_keyboardInUse=!1;document.addEventListener("keydown",function(){a.onKeydown()});
document.addEventListener("mousedown",function(){a.JSC$12926_keyboardInUse=!1})},iAO;
SAj.prototype.isKeyBoardInUse=function(){return this.JSC$12926_keyboardInUse};
SAj.prototype.onKeydown=function(){this.JSC$12926_keyboardInUse=!0};var xiv,tK;_.CN=new _.o3("yt-mentions");_.Ns=function(){};
xiv=function(a,z){return tK(z,"drag-to-reorder-edu-displayed")};
tK=function(a,z,I,J,r,P){I=I===void 0?"OPEN_POPUP_POSITION_TOP":I;if(z){if(_.CN.get(z))return;_.CN.set(z,!0,J)}if(r&&P!==void 0){z=Number(_.CN.get(r)||0);if(z>=P)return;_.CN.set(r,z+1)}return[{openPopupAction:{popupType:"HINT",position:I,popup:{bubbleHintRenderer:{detailsText:a,style:"BUBBLE_HINT_STYLE_BLUE_TOOLTIP"}}}}]};
_.Is(_.Ns);var vJw,GvI,$iw;vJw=function(a,z,I,J){this.JSC$12936_taskManager_=a;this.onFulfilled_=typeof z==="function"?z:null;this.onRejected_=typeof I==="function"?I:null;this.JSC$12936_context_=J};
GvI=function(a,z){a.onFulfilled_&&_.xc(a.JSC$12936_taskManager_,function(){a.onFulfilled_.call(a.JSC$12936_context_,z)})};
$iw=function(a,z){a.onRejected_&&_.xc(a.JSC$12936_taskManager_,function(){a.onRejected_.call(a.JSC$12936_context_,z)})};
_.ur=function(a){this.JSC$12939_taskManager_=a;this.callbacks_=[]};
_.ur.prototype.then=function(a,z,I){this.callbacks_.push(new vJw(this.JSC$12939_taskManager_,a,z,I));return this};
_.ur.prototype.onSuccess=function(a){this.callbacks_.forEach(function(z){GvI(z,a)})};
_.ur.prototype.onFailure=function(a){this.callbacks_.forEach(function(z){$iw(z,a)})};
_.ur.prototype.cancel=function(){this.callbacks_.length=0};
yyw(_.ur);_.u3G=null;_.V7=new _.I4("ACTIVITY_TOKEN");var E4=function(a,z){this.serviceId=new mYO(a,z)};
E4.prototype.toString=function(){return this.serviceId.toString()};var XMo=function(){this.internalMap={}};
_.Z=XMo.prototype;_.Z.contains=function(a){return Object.prototype.hasOwnProperty.call(this.internalMap,a)};
_.Z.get=function(a){if(this.contains(a))return this.internalMap[a]};
_.Z.set=function(a,z){this.internalMap[a]=z};
_.Z.getKeys=function(){return Object.keys(this.internalMap)};
_.Z.remove=function(a){delete this.internalMap[a]};var Bw=function(){this.mappings=new XMo;this.errorCallbacks=new Set};
Bw.prototype.getModuleId=function(a){return a.serviceId.getModuleId()};
Bw.prototype.get=function(a){var z=this.mappings.get(a.toString());return Tto(this,z,a)};
Bw.prototype.getMultipleAsync=function(){var a=_.dO.apply(0,arguments),z=this,I=a.map(function(E){return z.getModuleId(E)}),J=a.map(function(E){return z.mappings.get(E.toString())}).filter(function(E){return E});
if(J.length===a.length)return _.uI(J.map(function(E,O){return Tto(z,E,a[O])}));
var r=SW().loadMultiple(I);J=_.VD(I.map(function(E){return r[E]}));
var P=document.hidden,N=-1,u=_.Ib("get_async_timeout_ms",-1);u>-1&&(N=setTimeout(function(){_.Xd(new _.Fn("Module timeout.",I,P,document.hidden))},u));
return _.QD(J.then(function(){return a.map(function(E){return Tto(z,z.mappings.get(E.toString()),E)})}).thenCatch(function(E){for(var O=_.C(z.errorCallbacks),f=O.next();!f.done;f=O.next())f=f.value,f(E);
throw E;}),function(){clearTimeout(N)})};
Bw.prototype.registerService=function(a,z){this.mappings.set(a.toString(),{type:"mapping",value:z});return a};
var Tto=function(a,z,I){switch(z.type){case "mapping":return z.value;case "factory":return z=z.value(),a.mappings.set(I.toString(),{type:"mapping",value:z}),z;default:return _.Rw(z)}};
Bw.prototype.onLoadError=function(a){var z=this;this.errorCallbacks.add(a);return function(){z.errorCallbacks.delete(a)}};
_.gr=new Bw;var fwx=/^[a-zA-Z0-9_\-]{11}$/;var AMG=_.FO(function(){var a,z;return(z=(a=window).matchMedia)==null?void 0:z.call(a,"(prefers-reduced-motion: reduce)").matches});var diI=_.FO(function(){if(window.MediaSource&&typeof window.MediaSource.isTypeSupported==="function")return window.MediaSource.isTypeSupported('video/webm; codecs="vp09.00.51.08.01.01.01.01.00"');if(window.ManagedMediaSource&&typeof window.ManagedMediaSource.isTypeSupported==="function")return window.ManagedMediaSource.isTypeSupported('video/webm; codecs="vp09.00.51.08.01.01.01.01.00"');var a=_.DH("yt.web.contrib.innertube.requests.watch_ui.utils.videoElement_");a||(a=_.OS("VIDEO"),_.qe("yt.web.contrib.innertube.requests.watch_ui.utils.videoElement_",
a));return!!(a&&a.canPlayType&&a.canPlayType('video/webm; codecs="vp09.00.51.08.01.01.01.01.00"'))});var bdx=new Map([["dark","USER_INTERFACE_THEME_DARK"],["light","USER_INTERFACE_THEME_LIGHT"]]);var O4;O4=function(){this.tokenJars={};if(this.cookiesEnabled=_.sz()){var a=_.f1.get("CONSISTENCY",void 0);a&&Wcf(this,{encryptedTokenJarContents:a})}};
_.Vzd=function(){O4.instance||(O4.instance=new O4);return O4.instance};
O4.prototype.handleResponse=function(a,z){if(!z)throw Error("Pf");var I,J;z=((I=z.innerTubeRequest.context)==null?void 0:(J=I.request)==null?void 0:J.consistencyTokenJars)||[];var r;(a=(r=a.responseContext)==null?void 0:r.consistencyTokenJar)&&this.replace(z,a)};
O4.prototype.replace=function(a,z){a=_.C(a);for(var I=a.next();!I.done;I=a.next())delete this.tokenJars[I.value.encryptedTokenJarContents];Wcf(this,z)};
var Wcf=function(a,z){if(z.encryptedTokenJarContents&&(a.tokenJars[z.encryptedTokenJarContents]=z,typeof z.expirationSeconds==="string")){var I=Number(z.expirationSeconds);setTimeout(function(){delete a.tokenJars[z.encryptedTokenJarContents]},I*1E3);
a.cookiesEnabled&&_.AP("CONSISTENCY",z.encryptedTokenJarContents,I,void 0,!0)}};var oJI,fN;oJI=window.location.hostname.split(".").slice(-2).join(".");_.$h=function(){this.remoteLocationPlayabilityTokenTimeoutID=-1;var a=_.Xw("LOCATION_PLAYABILITY_TOKEN");_.Xw("INNERTUBE_CLIENT_NAME")==="TVHTML5"&&(this.localStorage=UiO(this))&&(a=this.localStorage.get("yt-location-playability-token"));a&&(this.locationPlayabilityToken=a,this.mostRecentPosition=void 0)};
_.$h.getInstance=function(){fN=_.DH("yt.clientLocationService.instance");fN||(fN=new _.$h,_.qe("yt.clientLocationService.instance",fN));return fN};
_.$h.prototype.setLocationOnInnerTubeContext=function(a){a.client||(a.client={});if(this.mostRecentPosition)a.client.locationInfo||(a.client.locationInfo={}),a.client.locationInfo.latitudeE7=Math.floor(this.mostRecentPosition.coords.latitude*1E7),a.client.locationInfo.longitudeE7=Math.floor(this.mostRecentPosition.coords.longitude*1E7),a.client.locationInfo.horizontalAccuracyMeters=Math.round(this.mostRecentPosition.coords.accuracy),a.client.locationInfo.forceLocationPlayabilityTokenRefresh=!0;else if(this.remoteLocationPlayabilityToken||
this.locationPlayabilityToken)a.client.locationPlayabilityToken=this.remoteLocationPlayabilityToken||this.locationPlayabilityToken};
_.$h.prototype.handleResponse=function(a){var z;a=(z=a.responseContext)==null?void 0:z.locationPlayabilityToken;a!==void 0&&(this.locationPlayabilityToken=a,this.mostRecentPosition=void 0,_.Xw("INNERTUBE_CLIENT_NAME")==="TVHTML5"?(this.localStorage=UiO(this))&&this.localStorage.set("yt-location-playability-token",a,15552E3):_.AP("YT_CL",JSON.stringify({loctok:a}),15552E3,oJI,!0))};
var UiO=function(a){return a.localStorage===void 0?new _.o3("yt-client-location"):a.localStorage};
_.$h.prototype.clearLocationPlayabilityToken=function(a){a==="TVHTML5"?(this.localStorage=UiO(this))&&this.localStorage.remove("yt-location-playability-token"):_.C83("YT_CL");this.remoteLocationPlayabilityToken=void 0;this.remoteLocationPlayabilityTokenTimeoutID!==-1&&(clearTimeout(this.remoteLocationPlayabilityTokenTimeoutID),this.remoteLocationPlayabilityTokenTimeoutID=-1)};
_.$h.prototype.getCurrentPositionFromGeolocation=function(){var a=this;if(!(navigator&&navigator.geolocation&&navigator.geolocation.getCurrentPosition))return Promise.reject(Error("Qf"));var z=!1,I=1E4;_.Xw("INNERTUBE_CLIENT_NAME")==="MWEB"&&(z=!0,I=15E3);return new Promise(function(J,r){navigator.geolocation.getCurrentPosition(function(P){a.mostRecentPosition=P;J(P)},function(P){r(P)},{enableHighAccuracy:z,
maximumAge:0,timeout:I})})};
_.$h.prototype.createUnpluggedLocationInfo=function(a){var z={};a=a.coords;if(a==null?0:a.latitude)z.latitudeE7=Math.floor(a.latitude*1E7);if(a==null?0:a.longitude)z.longitudeE7=Math.floor(a.longitude*1E7);if(a==null?0:a.accuracy)z.locationRadiusMeters=Math.round(a.accuracy);return z};
_.$h.prototype.createLocationInfo=function(a){var z={};a=a.coords;if(a==null?0:a.latitude)z.latitudeE7=Math.floor(a.latitude*1E7);if(a==null?0:a.longitude)z.longitudeE7=Math.floor(a.longitude*1E7);return z};var Diw=function(){};
_.Z=Diw.prototype;
_.Z.JSC$13006_getRequest=function(a,z,I){z=z===void 0?{}:z;I=I===void 0?aVv:I;var J=z;if(this.isNavigationCommand()){var r,P=(r=_.H(a==null?void 0:a.commandMetadata,_.O_))==null?void 0:r.url;J=_.QpM(a.clickTrackingParams,!0,!1,P,this.JSC$13006_getClientScreen(J))}else J=_.QpM(a.clickTrackingParams,!1,this.includeCsn);J={context:J};if(r=this.getExtension(a))return this.JSC$13006_buildRequest(J,r,z),r=this.getApiUrl(a),P=Object.assign({},{command:a},this.getRequestConfig(a,z)),J={input:r,requestShell:y$(r),
innerTubeRequest:J,config:P},J.config.authStrategy?J.config.authStrategy.identity=I:J.config.authStrategy={identity:I},(a=this.JSC$13006_getRequestKey(a,z))&&!J.config.requestKey&&(J.config.requestKey=a),J;a=new _.Fn("Error: Failed to create Request from Command.",a);_.Gx(a)};
_.Z.getApiUrl=function(a){var z=_.ex(this.getApiPaths(a)),I;(a=(I=_.H(a.commandMetadata,_.O_))==null?void 0:I.apiUrl)&&(z=a);return q9i(Y9d(z))};
_.Z.isNavigationCommand=function(){return!1};
_.Z.JSC$13006_getClientScreen=function(){};
_.Z.JSC$13006_getRequestKey=function(){};
_.Z.getRequestConfig=function(){};
_.eH.Object.defineProperties(Diw.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!1}}});
var AK=function(){};
_.b(AK,Diw);AK.prototype.JSC$13013_getStoreKey=function(){};
AK.prototype.JSC$13006_getRequestKey=function(a,z){z=z===void 0?{}:z;return this.JSC$13013_getStoreKey(a,z)};var Lcl;_.s4=function(a,z,I){var J=I&&I>0?I:0;I=J?Date.now()+J*1E3:0;if((J=J?(0,_.RHo)():Lcl())&&window.JSON){typeof z!=="string"&&(z=JSON.stringify(z,void 0));try{J.set(a,z,I)}catch(r){J.remove(a)}}};
_.nN=function(a){var z=Lcl(),I=(0,_.RHo)();if(!z&&!I||!window.JSON)return null;try{var J=z.get(a)}catch(r){}if(typeof J!=="string")try{J=I.get(a)}catch(r){}if(typeof J!=="string")return null;try{J=JSON.parse(J,void 0)}catch(r){}return J};
_.KN=function(a){try{var z=Lcl(),I=(0,_.RHo)();z&&z.remove(a);I&&I.remove(a)}catch(J){}};
_.RHo=_.FO(function(){try{var a=new O5G;var z=a.isAvailable()?a:null}catch(I){return null}return z?new _.CL(z):null});
Lcl=_.FO(function(){var a=new fY0;return a.isAvailable()?new _.CL(a):null});var r0=new _.I4("ENTITY_STATE_TOKEN"),FS=new _.I4("PERSISTENT_ENTITY_STORE_ACCESSOR_TOKEN");var l01=XMLHttpRequest.prototype.fetch,pMw=l01&&l01.length===3?!0:typeof window.fetch==="function"&&window.ReadableStream&&window.AbortController&&!cy?!0:!1;var Hw=function(a){this.JSC$13018_storeWithEntities=a};
_.b(Hw,AK);_.Z=Hw.prototype;_.Z.getApiPaths=function(){return PQf};
_.Z.getExtension=function(a){return _.H(a,_.MZ)||_.H(a,_.hv)||_.H(a,Pcf)};
_.Z.isNavigationCommand=function(){return!0};
_.Z.JSC$13013_getStoreKey=function(a){if((_.K("kevlar_cache_on_ttl_player")||_.K("mweb_enable_shorts_innertube_player_prefetch")||_.K("mweb_use_new_history_manager")||_.K("web_shorts_prefetch_service_enabled"))&&(a=this.getExtension(a))&&a.videoId){var z={videoId:a.videoId};a.playlistId&&(z.playlistId=a.playlistId);a.playerParams&&(z.params=a.playerParams);return _.k2("player",z)}};
_.Z.JSC$13006_getClientScreen=function(a){var z;return((z=a.contentPlaybackContext)==null?void 0:z.vis)===2?"WATCH_FULL_SCREEN":"WATCH"};
_.Z.JSC$13006_buildRequest=function(a,z,I){if(_.K("enable_interstitial_entity_check")){var J=this.JSC$13018_storeWithEntities;if(z.videoId)for(var r=_.C(["CONTENT_CHECK_REQUIRED","AGE_CHECK_REQUIRED"]),P=r.next();!P.done;P=r.next()){P=P.value;var N;var u=void 0,E=void 0,O=z.videoId,f=P;(N=J)?(O=_.Er(O+f,"interstitialInteractionStateEntity"),N=(u=(E=_.Bd(N.getState().entities,"interstitialInteractionStateEntity",O))==null?void 0:E.primaryButtonClicked)!=null?u:!1):N=!1;if(N)switch(P){case "CONTENT_CHECK_REQUIRED":z.contentCheckOk=
!0;break;case "AGE_CHECK_REQUIRED":z.racyCheckOk=!0}}}z.videoId&&(a.videoId=z.videoId);z.playlistId&&(a.playlistId=z.playlistId);z.index!==void 0&&(a.playlistIndex=z.index+1);z.playerParams&&(a.params=z.playerParams);"startTimeSeconds"in z&&z.startTimeSeconds&&(_.K("enable_player_request_builder_start_time_floor")?a.startTimeSecs=Math.floor(z.startTimeSeconds):a.startTimeSecs=z.startTimeSeconds);I.contentPlaybackContext&&(a.playbackContext={contentPlaybackContext:I.contentPlaybackContext});I.prefetchPlaybackContext&&
(a.playbackContext=Object.assign({},a.playbackContext,{prefetchPlaybackContext:I.prefetchPlaybackContext}),a.context.request||(a.context.request={}),a.context.request.isPrefetch=!0);a.playbackContext||(a.playbackContext={});J=diI();a.playbackContext.devicePlaybackCapabilities={supportsVp9Encoding:!!J,supportXhr:pMw};I.overrideMutedAtStart&&(a.overrideMutedAtStart=I.overrideMutedAtStart);a.racyCheckOk=!!z.racyCheckOk;a.contentCheckOk=!!z.contentCheckOk;!_.K("captions_prefs_killswitch")&&(I=(I=_.nN("yt-player-caption-language-preferences"))?
I:[],I==null?0:I.length)&&(a.captionParams={viewerSelectedCaptionLangs:I})};
_.Z.getRequestConfig=function(a){a=this.JSC$13013_getStoreKey(a);var z;a&&(z={storeStrategy:{storeKey:a}});_.K("web_log_player_watch_next_ticks")&&(z=z||{},z.requestTick="ps_s",z.responseTick="ps_r");return z};
Hw[zp]=[r0];var br=function(){};
_.b(br,AK);_.Z=br.prototype;_.Z.getApiPaths=function(){return oal};
_.Z.getExtension=function(a){return _.H(a,_.MZ)};
_.Z.isNavigationCommand=function(){return!0};
_.Z.JSC$13013_getStoreKey=function(a){if((a=this.getExtension(a))&&a.videoId){var z={videoId:a.videoId};a.playlistId&&(z.playlistId=a.playlistId);a.index&&(z.index=a.index);a.params&&(z.params=a.params);return _.k2("next",z)}};
_.Z.JSC$13006_getClientScreen=function(a){var z;return((z=a.contentPlaybackContext)==null?void 0:z.vis)===2?"WATCH_FULL_SCREEN":"WATCH"};
_.Z.JSC$13006_buildRequest=function(a,z,I){z.videoId&&(a.videoId=z.videoId);z.playlistId&&(a.playlistId=z.playlistId);z.params&&(a.params=z.params);z.index!==void 0&&(a.playlistIndex=z.index);a.racyCheckOk=!(!I.racyCheckOk&&!z.racyCheckOk);a.contentCheckOk=!!z.contentCheckOk;I.contentPlaybackContext&&(a.autonavState=I.contentPlaybackContext.autonavState,a.playbackContext={vis:I.contentPlaybackContext.vis,lactMilliseconds:I.contentPlaybackContext.lactMilliseconds});I.prefetchPlaybackContext&&(a.context.request||
(a.context.request={}),a.context.request.isPrefetch=!0);_.K("captions_hats_killswitch")||(z=_.Kt().getFlag(65),z=z!=null?!z:!1,I=!!_.nN("yt-player-sticky-caption"),a.captionsRequested=z&&I)};
_.Z.getRequestConfig=function(a){a=this.JSC$13013_getStoreKey(a);var z;a&&(z={storeStrategy:{storeKey:a}});_.K("web_log_player_watch_next_ticks")&&(z=z||{},z.requestTick="wn_s",z.responseTick="wn_r");return z};
var hK=function(){};
_.b(hK,AK);hK.prototype.getApiPaths=function(){return oal};
hK.prototype.getExtension=function(a){return _.H(a,_.R5)};
hK.prototype.JSC$13006_buildRequest=function(a,z){z.token&&(a.continuation=z.token)};var Vb=function(a,z){this.playerRequestBuilder=a;this.watchNextRequestBuilder=z};
_.b(Vb,AK);Vb.prototype.getApiPaths=function(){return MBO};
Vb.prototype.getExtension=function(a){return _.H(a,_.MZ)};
Vb.prototype.isNavigationCommand=function(){return!0};
Vb.prototype.JSC$13006_buildRequest=function(a,z,I){a.playerRequest={};this.playerRequestBuilder.JSC$13006_buildRequest(a.playerRequest,z,I);_.K("web_streaming_watch")&&(a.watchNextRequest={},this.watchNextRequestBuilder.JSC$13006_buildRequest(a.watchNextRequest,z,I))};
Vb[zp]=[Hw,br];var wMX;_.Qb=new _.I4("SHORTS_CONTROLLER_TOKEN");wMX=new _.I4("SHORTS_STATE_STORE_TOKEN");var SP=function(a,z){var I=_.dO.apply(2,arguments);a=a===void 0?0:a;_.Fn.call(this,z,I);this.errorType=a;Object.setPrototypeOf(this,this.constructor.prototype)};
_.b(SP,_.Fn);var mij,yLj,M0j,w7$,Lh,NX0,eH1,qAl,r5w,zAG,jm1;mij=new RegExp("jct sld rapt cid channel_creation_token force_ad_format ex_ads extra_kw".split(" ").map(function(a){return a+"="}).join("|"));
yLj=RegExp(".*\\?.*playnext=1.*");_.ir=function(a,z,I,J){this.watchEndpointMap=a;this.reelWatchEndpointMap=z;this.innerTubeTransportService=I;this.fetchPbj=J};
M0j=function(a,z,I){var J=_.ab().resolve(_.eL(kvv));_.ir.instance=new _.ir(a,z,I,J)};
_.cLE=function(a,z){var I=_.Ib("web_pbj_log_warning_rate",0);I=I>0&&Math.random()<I;var J;if((J=_.H(z.commandMetadata,_.O_))==null||!J.rootVe)return I&&_.Xd(Error("Sf")),!1;var r;J=(r=_.H(z.commandMetadata,_.O_))==null?void 0:r.url;if(!J)return I&&_.Xd(Error("Tf")),!1;if(yLj.test(J))return!0;if(mij.test(J))return I&&_.Xd(Error("Uf`"+J)),!1;if(_.H(z,_.MZ)){if(!(a.watchEndpointMap.watchNext&&a.watchEndpointMap.player||_.K("kevlar_fetch_initial_data_op_watch_client")))return I&&_.Xd(Error("Lf")),!1;
a=_.Ib("web_pbj_log_warning_rate",0);a=a>0&&Math.random()<a;_.H(z,_.MZ)?ga7(z)?z=!0:(a&&_.Xd(Error("Mf")),z=!1):(a&&_.Xd(Error("Lf")),z=!1);return z}if(_.H(z,_.hv))return Odi(z);if(_.H(z,_.Ry))return!0;a=_.mf(a.innerTubeTransportService,z);!a&&I&&_.Gx(Error("Vf"),"WARNING",void 0,void 0,void 0,{command:JSON.stringify(z)});return a};
w7$=function(a,z,I,J,r,P){z={url:z};if(I==null?0:I.itct)z.parentTrackingParams=I.itct;var N=_.ex(Odj);return _.pJ(a.innerTubeTransportService,z,N).then(function(u){(u=u.endpoint)||(u=_.VT);(I==null?0:I.itct)&&u&&!u.trackingParams&&(u.trackingParams=I.itct);var E=Hh(u);return Lh(a,u,I,J,E,r,P)})};
Lh=function(a,z,I,J,r,P,N,u){u=u===void 0?{}:u;if(a.fetchPbj&&!_.cLE(a,z)&&!_.K("force_one_platform")){u=a.fetchPbj(z);var E=_.uI(u.then(function(m){if(!m)throw Error("Wf");N(E)||P(z,m);return m}));
return E}var O,f,A={rootVe:(O=_.H(z.commandMetadata,_.O_))==null?void 0:O.rootVe,url:(f=_.H(z.commandMetadata,_.O_))==null?void 0:f.url,endpoint:z,page:r};if(_.H(z,_.MZ)){var n,F={contentPlaybackContext:_.St(I,(n=_.H(z.commandMetadata,_.O_))==null?void 0:n.url,J)},h=_.kq();_.K("web_streaming_watch")&&window.TextDecoderStream?(u=YAj(a.innerTubeTransportService,z,F,function(m){!A.response&&m.content&&(A.response=m.content);!A.playerResponse&&m.player&&(A.playerResponse=m.player);P(z,A)}),O=eeE(z),O.length&&
(A.preconnect=O,P(z,A)),qAl(u,h,A).catch(function(m){m instanceof SP&&m.errorType===2&&eH1(a,z,F,A,P,N,h)})):eH1(a,z,F,A,P,N,h);
return h.promise}if(_.H(z,_.hv)){var v;if(((v=_.H(z,_.hv))==null?void 0:v.inputType)==="REEL_WATCH_INPUT_TYPE_SEEDLESS"){var d=_.kq();_.a3O(_.ab().resolve(_.Qb),z).then(function(m){jm1(a,I,J,r,P,d,m)});
return d.promise}u=_.uI();var W;O={contentPlaybackContext:_.St(I,(W=_.H(z.commandMetadata,_.O_))==null?void 0:W.url,J)};(W=a.reelWatchEndpointMap.player)&&(W=W().JSC$13006_getRequest(z,O))&&(u=_.pJ(a.innerTubeTransportService,W.innerTubeRequest,W.input,z.clickTrackingParams,W.config));W=_.uI();(f=a.reelWatchEndpointMap.reelItemWatch)&&(f=f().JSC$13006_getRequest(z))&&(W=_.pJ(a.innerTubeTransportService,f.innerTubeRequest,f.input,z.clickTrackingParams,f.config));f=_.uI();_.K("web_enable_delay_shorts_sequence_call_new")||
(n=a.reelWatchEndpointMap.reelWatchSequence)&&_.H(z,_.hv).sequenceParams&&(O=n().JSC$13006_getRequest(z,O))&&(f=_.pJ(a.innerTubeTransportService,O.innerTubeRequest,O.input,z.clickTrackingParams,O.config));O=_.uI(A);n=_.kq();zAG(z,O,u,W,f,P,N,n);return n.promise}var l;if(_.H(z,tzG)&&((l=_.H(z.commandMetadata,_.O_))==null?0:l.url))return u=h6G(_.Rf($8().location.href),_.Rf(_.H(z.commandMetadata,_.O_).url)).toString(),w7$(a,u,I,J,P,function(){return!1});
if(_.H(z,_.Ry))return P(z,A),_.uI(A);if(_.mf(a.innerTubeTransportService,z)){u=Object.assign({},{tempData:I,disableCache:I.disableCache},u);var q=_.y7(a.innerTubeTransportService,z,u).then(function(m){A.response=m;N(q)||P(z,A);return A});
return q}return _.uI(A)};
_.J5J=function(a,z,I,J){if(_.H(z,_.MZ)||_.H(z,_.hv)&&(_.K("mweb_enable_shorts_innertube_player_prefetch")||_.K("kevlar_enable_shorts_prefetch_in_sequence"))||_.H(z,Pcf)&&_.K("web_enable_prefetching_videos_on_home")){var r,P={contentPlaybackContext:_.St(I,(r=_.H(z.commandMetadata,_.O_))==null?void 0:r.url,J),prefetchPlaybackContext:nax(I)},N,u,E;if(((N=_.H(z,_.MZ))==null?void 0:(u=N.watchEndpointSupportedPrefetchConfig)==null?void 0:(E=u.prefetchHintConfig)==null?void 0:E.prefetchType)==="PREFETCH_TYPE_WATCH_NEXT"){if(I=
a.watchEndpointMap.watchNext)if(P=I().JSC$13006_getRequest(z,P))return Promise.resolve(_.pJ(a.innerTubeTransportService,P.innerTubeRequest,P.input,void 0,P.config).then(function(A){return A}))}else if(I=a.watchEndpointMap.player)if(P=I().JSC$13006_getRequest(z,P))return Promise.resolve(_.pJ(a.innerTubeTransportService,P.innerTubeRequest,P.input,void 0,P.config).then(function(A){return A}))}else if(_.mf(a.innerTubeTransportService,z)){var O={tempData:I},f=I3f(a.innerTubeTransportService,z);
return f?new Promise(function(A,n){var F,h;return _.t(function(v){if(v.nextAddress==1)return v.yield(f,2);if(v.nextAddress!=4)return F=v.yieldResult,F.JSC$13013_getStoreKey(z,O)?v.yield(_.y7(a.innerTubeTransportService,z,O),4):(n(new _.Fn("Prefetching request builder with no store key.",z)),v.jumpTo(0));h=v.yieldResult;A(h);_.nu(v)})}):Promise.reject(new _.Fn("Prefetching unregistered request builder.",z))}return Promise.reject(new _.Fn("No request builder available to prefetch endpoint.",z))};
NX0=function(a,z){var I,J,r;if(_.H(z,_.MZ)){var P=a.watchEndpointMap.watchNext;P&&(I=P());(a=a.watchEndpointMap.player)&&(J=a())}else if(_.H(z,_.hv))(P=a.reelWatchEndpointMap.reelItemWatch)&&(I=P()),(P=a.reelWatchEndpointMap.player)&&(J=P()),(a=a.reelWatchEndpointMap.reelWatchSequence)&&(r=a());else{a:{a=B93(z,a.innerTubeTransportService.endpointMap);if(a!==void 0)if(typeof a.then==="function")_.Gx(new _.Fn("Attempted to get deferred RequestBuilder that is unresolved or still wrapped.",z));else break a;
a=void 0}a&&(I=a)}var N,u,E;return{content:(N=I)==null?void 0:N.JSC$13013_getStoreKey(z),player:(u=J)==null?void 0:u.JSC$13013_getStoreKey(z),reelSequence:(E=r)==null?void 0:E.JSC$13013_getStoreKey(z)}};
eH1=function(a,z,I,J,r,P,N){var u=_.uI(),E=a.watchEndpointMap.player;_.K("web_streaming_player")&&(E=QK(Vb));E&&(E=E().JSC$13006_getRequest(z,I))&&(u=_.pJ(a.innerTubeTransportService,E.innerTubeRequest,E.input,z.clickTrackingParams,E.config));E=_.uI();var O=a.watchEndpointMap.watchNext;O&&(I=O().JSC$13006_getRequest(z,I))&&(E=_.pJ(a.innerTubeTransportService,I.innerTubeRequest,I.input,z.clickTrackingParams,I.config));a=_.uI(J);r5w(z,a,u,E,r,P,N)};
qAl=function(a,z,I){return _.t(function(J){if(J.nextAddress==1)return J.yield(a,2);z.resolve(I);_.nu(J)})};
r5w=function(a,z,I,J,r,P,N){var u,E,O,f,A;_.t(function(n){switch(n.nextAddress){case 1:return n.yield(z,2);case 2:u=n.yieldResult;if(P(N.promise))return N.resolve(u),n.return();r(a,u);E=eeE(a);if(!E.length){n.jumpTo(3);break}return n.yield(z,4);case 4:u.preconnect=E,r(a,u);case 3:return _.BP(n,5),n.yield(I,7);case 7:O=n.yieldResult;_.p1(n,6);break;case 5:return f=_.sk(n),N.reject(f),n.return();case 6:if(O===void 0)return u.reload=!0,r(a,u),N.resolve(u),n.return();if(P(N.promise))return N.resolve(u),
n.return();u.playerResponse=O;r(a,u);_.BP(n,8);return n.yield(J,10);case 10:A=n.yieldResult;_.p1(n,9);break;case 8:_.sk(n);case 9:if(A===void 0)return u.response={responseContext:{}},N.resolve(u),n.return();if(P(N.promise))return N.resolve(u),n.return();u.response=A;r(a,u);N.resolve(u);_.nu(n)}})};
zAG=function(a,z,I,J,r,P,N,u){var E,O,f,A,n,F;_.t(function(h){switch(h.nextAddress){case 1:return h.yield(z,2);case 2:E=h.yieldResult;if(N(u.promise))return u.resolve(E),h.return();P(a,E);O=eeE(a);if(!O.length){h.jumpTo(3);break}return h.yield(z,4);case 4:E.preconnect=O,P(a,E);case 3:return _.BP(h,5),h.yield(I,7);case 7:f=h.yieldResult;_.p1(h,6);break;case 5:return A=_.sk(h),u.reject(A),h.return();case 6:if(f===void 0)return E.reload=!0,P(a,E),u.resolve(E),h.return();if(N(u.promise))return u.resolve(E),
h.return();E.playerResponse=f;P(a,E);_.BP(h,8);return h.yield(J,10);case 10:n=h.yieldResult;_.p1(h,9);break;case 8:_.sk(h);case 9:if(n===void 0)return E.response={responseContext:{}},u.resolve(E),h.return();if(N(u.promise))return u.resolve(E),h.return();E.response=n;P(a,E);_.BP(h,11);return h.yield(r,13);case 13:F=h.yieldResult;_.p1(h,12);break;case 11:_.sk(h);case 12:if(N(u.promise))return u.resolve(E),h.return();F&&(E.reelWatchSequenceResponse=F);P(a,E);u.resolve(E);_.nu(h)}})};
jm1=function(a,z,I,J,r,P,N){var u,E,O,f,A,n;_.t(function(F){if((u=N)==null||!u.replacementEndpoint)return P.reject(),F.return();E=N.replacementEndpoint;(O=_.H(E,_.hv))?(N.sequenceContinuation&&(O.sequenceParams=N.sequenceContinuation),f=_.ab().resolve(_.Qb),A=O.sequenceParams,Pvv(f,E)&&delete O.sequenceParams,n=Lh(a,E,z,I,J,r,function(){return!1}),n.then(function(h){return _.t(function(v){if(v.nextAddress==1)return ZX1(f,{reelWatchEndpoint:{sequenceParams:A}},h),v.yield(0,2);
P.resolve(h);_.nu(v)})})):P.reject();
_.nu(F)})};_.Cvw=function(a){if(a.validatedFragments_.length==0)return null;if(!a.mergedPrefetchedData_){for(var z=[],I=_.C(a.validatedFragments_),J=I.next();!J.done;J=I.next()){J=_.C(a.fragmentConfiguration_[J.value].graftedKeys);for(var r=J.next();!r.done;r=J.next())(r=a.prefetchedData_[r.value].trackingParams)&&z.push(r)}a.mergedPrefetchedData_={};Object.assign(a.mergedPrefetchedData_,a.prefetchedData_,{clientSideGrafts:z})}return a.mergedPrefetchedData_};var Njl;_.xo=function(){this.prefetchCache_=new Map;this.pendingPrefetchJob_=null};
Njl=function(a,z,I){if(_.EaG(z))return a.prefetchCache_.get(_.BPd(z,I))};_.vw=new _.I4("NAVIGATION_TOKEN");var toe=function(a){var z=this;var I=I===void 0?xUx():I;var J=J===void 0?_.ab().resolve(_.vw):J;this.onePickCommand=a;this.JSC$13116_playlistNetworkManager=I;this.navigationManager=J;this.videoPickerBuilder=_.S3i("yt-addtoplaylist");_.Eje(rJJ(P9I(JJj(this.videoPickerBuilder.setTitle(a.modalTitle).setSize(1E3).addView(Clj()).addView(Z1i())).addView("youtube"),a.selectButtonLabel)),function(r){z.handleAction(r)})};
toe.prototype.show=function(){this.videoPickerBuilder.build().setVisible(!0)};
toe.prototype.handleAction=function(a){var z=this;if(a&&this.onePickCommand.listId&&a.action==="picked"&&a.docs){var I=[];a.docs.forEach(function(J){I.push({addedVideoId:J.id,action:"ACTION_ADD_VIDEO"})});
this.JSC$13116_playlistNetworkManager.updatePlaylist(this.onePickCommand.listId,I).then(function(){_.K("playlist_add_video_hard_reload_killswitch")?z.navigationManager.reload():uEO(z.navigationManager)})}};var E$v=function(){if(this.constructor===E$v)throw new TypeError("Xf");};
_.Z=E$v.prototype;_.Z.dispose=function(){};
_.Z.disconnect=function(){};
_.Z.reconnect=function(){};
_.Z.observe=function(a,z,I){return{element:a,option:I}};
_.Z.unobserveByKey=function(){};var va7=function(a,z){z=z===void 0?0:z;E$v.call(this);this.viewroot=a;this.defaultPrescanHeight=z;this.isConnected=!0;this.pauseObservingUntilReconnect=!1;this.observer=new IntersectionObserver(this.handleObserveEvent.bind(this),a?{root:a,rootMargin:"-0.1px"}:{rootMargin:"-0.1px"});this.prescanObservers=new Map;this.handlers=new Map};
_.b(va7,E$v);_.Z=va7.prototype;_.Z.dispose=function(){this.disconnect();this.handlers.clear()};
_.Z.disconnect=function(a){this.isConnected=!1;this.pauseObservingUntilReconnect=a===void 0?!1:a;this.observer.disconnect();a=_.C(this.prescanObservers.values());for(var z=a.next();!z.done;z=a.next())z.value.disconnect()};
_.Z.reconnect=function(){if(!this.isConnected){this.isConnected=!0;this.pauseObservingUntilReconnect=!1;for(var a=_.C(this.handlers),z=a.next();!z.done;z=a.next()){var I=_.C(z.value);z=I.next().value;var J=I.next().value;I=!1;J=_.C(J.keys());for(var r=J.next();!r.done;r=J.next())if((r=r.value)&&r.state==="prescan"){I=!0;break}I&&BjI(this,z).observe(z);this.observer.observe(z)}}};
_.Z.handleObserveEvent=function(a){a=_.C(a);for(var z=a.next();!z.done;z=a.next()){z=z.value;var I=this.handlers.get(z.target);if(I){var J=z.isIntersecting;I=_.C(I);for(var r=I.next();!r.done;r=I.next()){var P=_.C(r.value);r=P.next().value;P=P.next().value;r&&(r.state==="visible"&&J||r.state==="hidden"&&!J)&&(P(z.target,r.state),r.calledOnce&&this.unobserveByKey({element:z.target,option:r}))}}}};
_.Z.handlePrescanEvent=function(a){a=_.C(a);for(var z=a.next();!z.done;z=a.next()){z=z.value;var I=this.handlers.get(z.target);if(I&&z.isIntersecting){I=_.C(I);for(var J=I.next();!J.done;J=I.next()){var r=_.C(J.value);J=r.next().value;r=r.next().value;J&&J.state==="prescan"&&(r(z.target,J.state),J.calledOnce&&this.unobserveByKey({element:z.target,option:J}))}}}};
_.Z.observe=function(a,z,I){var J=(J=this.handlers.get(a))&&J.has(I)?{element:a,option:I}:void 0;if(J)return J;J={element:a,option:I};this.handlers.has(a)||this.handlers.set(a,new Map);var r=this.handlers.get(a);r&&!r.has(I)&&r.set(I,z);this.pauseObservingUntilReconnect||(I.state==="prescan"&&BjI(this,a).observe(a),this.observer.observe(a));return J};
_.Z.unobserveByKey=function(a){var z=this.handlers.get(a.element);if(z&&z.has(a.option)){z.delete(a.option);if(a&&a.option.state==="prescan")for(var I=_.C(this.prescanObservers.values()),J=I.next();!J.done;J=I.next())J.value.unobserve(a.element);z.size===0&&(this.handlers.delete(a.element),this.observer.unobserve(a.element))}};
var BjI=function(a,z){var I=a.defaultPrescanHeight;z.hasAttribute("prescan-height")&&(z=Number(z.getAttribute("prescan-height")),isNaN(z)||(I=z));if(a.prescanObservers.has(I))return a.prescanObservers.get(I);z="-0.1px -0.1px "+I+"px -0.1px";z=new IntersectionObserver(a.handlePrescanEvent.bind(a),a.viewroot?{root:a.viewroot,rootMargin:z}:{rootMargin:z});a.prescanObservers.set(I,z);return z};var g$X=["browse-video-menu-button","unified-verified-badge","topbar-guide-menu"],OXG=function(){var a,z=this;this.JSC$13133_actionRouter=a=a===void 0?_.w2.getInstance():a;this.targetMap=new Map;this.targetedElements=new WeakMap;this.triggeredTargets=new Set;this.TEST_ONLY={getVisibilityObserver:function(){return z.visibilityObserver},
getVisibilityObservedElementHandlerKeys:function(){return z.visibilityObservedElementHandlerKeys}}},f3O,smw,Fav;
OXG.prototype.initVisibilityObserver=function(){!this.visibilityObserver&&_.K("kevlar_use_vimio_behavior")&&_.Xw("INNERTUBE_CLIENT_NAME")!=="WEB_REMIX"&&(this.visibilityObserver=G4d())};
OXG.prototype.dispose=function(){this.visibilityMonitor&&_.FU(this.visibilityMonitor,"yt-visibility-monitor-refreshed",this.handleVisibilityRefreshed,!1,this);this.visibilityObserver&&this.visibilityObserver.dispose()};
OXG.prototype.handleVisibilityRefreshed=function(){for(var a=_.C(this.targetMap.entries()),z=a.next();!z.done;z=a.next()){var I=_.C(z.value);z=I.next().value;I=I.next().value;_.A5w(this,z,I)}};
_.KaG=function(a,z,I){smw(a,I);var J=_.n$v(a,z);J.element=I;a.targetedElements.set(I,z);_.A5w(a,z,J)};
smw=function(a,z){var I=a.targetedElements.get(z);if(I){var J=a.targetMap.get(I);J&&(delete J.element,a.targetMap.set(I,J));a.targetedElements.delete(z);a.visibilityObserver&&a.visibilityObservedElementHandlerKeys&&(I=a.visibilityObservedElementHandlerKeys.get(z))&&(a.visibilityObserver.unobserveByKey(I),a.visibilityObservedElementHandlerKeys.delete(z))}};
_.A5w=function(a,z,I){var J=I.action,r=I.element;r&&J&&(g$X.includes(z)||_.Xw("INNERTUBE_CLIENT_NAME")==="WEB_REMIX"||a.visibilityMonitor&&a.visibilityMonitor.isNodeVisible(r)?Fav(a,z,I):a.visibilityObserver&&(a.visibilityObservedElementHandlerKeys||(a.visibilityObservedElementHandlerKeys=new WeakMap),J=a.visibilityObserver.observe(r,function(){Fav(a,z,I);a.visibilityObservedElementHandlerKeys.delete(r)},{calledOnce:!0,
state:"visible"}),a.visibilityObservedElementHandlerKeys.set(r,J)))};
Fav=function(a,z,I){var J=I.action;(I=I.element)&&J&&(_.DN(a.JSC$13133_actionRouter,[J],I),a.targetMap.delete(z),a.targetedElements.delete(I),a.triggeredTargets.add(z))};
_.n$v=function(a,z){var I=a.targetMap.get(z);I||(I={},a.targetMap.set(z,I));return I};
_.Gc=function(){f3O||(f3O=new OXG);return f3O};var HXG=document.createElement("div");HXG.style.touchAction="pan-down";var $UI=HXG.style.touchAction==="pan-down";var bXl,hAE;bXl=function(){this.hammerFn=JEJ();this.JSC$13141_screenManager=_.Kw();this.lastPinchTime=NaN;this.nodeManagerMapping=new Map;this.ve=_.uq(83615);_.sR(this.JSC$13141_screenManager,this.ve);XsO()};
_.$o=function(){hAE||(hAE=new bXl);return hAE};
bXl.prototype.registerTouchEvents=function(a,z,I){var J=_.dO.apply(3,arguments),r=this.hammerFn(a,{cssProps:{},recognizers:[[Hammer.Rotate,{enable:!1}],[Hammer.Pinch,{enable:!1},["rotate"]],[Hammer.Swipe,{enable:!1,direction:Hammer.DIRECTION_HORIZONTAL}],[Hammer.Pan,{enable:!1,direction:Hammer.DIRECTION_HORIZONTAL},["swipe"]],[Hammer.Tap,{enable:!1}],[Hammer.Tap,{enable:!1,event:"doubletap",taps:2},["tap"]],[Hammer.Press,{enable:!1}]]});I&&r.set({touchAction:I});this.nodeManagerMapping.set(a,r);var P=
TPM(z);J=_.C(J);for(var N=J.next();!N.done;N=J.next()){N=N.value;if(N.includes("swipe")||N.includes("pinch")||N.includes("pan"))N.includes("swipe")?r.get("swipe").set({enable:!0,direction:P,velocity:.2}):N.includes("pinch")?r.get("pinch").set({enable:!0}):N.includes("pan")&&(r.get("pan").set({enable:!0,direction:P}),r.get("swipe").set({enable:!0,direction:P,velocity:.2}),r.get("swipe").recognizeWith("pan"));VoX(this,a,r,N)}};
var VoX=function(a,z,I,J){I.on(J,function(r){if(J.includes("pinch"))a.lastPinchTime=Date.now();else if(J.includes("swipe")&&Date.now()-a.lastPinchTime<400)return;r.pointerType!=="mouse"&&(r=J==="doubletap"?{coordinates:r.center}:J.includes("pan")?r:J.includes("swipe")?{target:r.target}:{},z.dispatchEvent(new CustomEvent(J,{bubbles:!0,composed:!0,detail:r})))})};
bXl.prototype.unregisterTouchEvents=function(a){var z=_.dO.apply(1,arguments),I=this.nodeManagerMapping.get(a);if(I){z=_.C(z);for(var J=z.next();!J.done;J=z.next())I.off(J.value);this.nodeManagerMapping.delete(a);a.style.touchAction="unset"}};var Qmv=window.matchMedia&&window.matchMedia("(any-pointer: coarse)").matches;var dU$=null;var Sdf=function(){this.networkEvents=[];this.index=Math.floor(Math.random()*1E5)},aUI=function(){Sdf.instance||(Sdf.instance=new Sdf);
return Sdf.instance},jk0=function(a){var z=a.networkEvents;
a.networkEvents=[];return _.K("enable_network_monitoring")?z:[]};var iXX;iXX={};_.xcJ=a3("yt-serviceworker-metadata",{objectStores:(iXX.auth={addedAtVersion:1},iXX["resource-manifest-assets"]={addedAtVersion:2},iXX),shared:!0,upgrade:function(a,z){z(1)&&DZ(a,"resource-manifest-assets");z(2)&&DZ(a,"auth")},
version:2});var Lbm=self.location.origin+"/";lwp([/\.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\//]);lwp([/purge_shell=1/]);var v$1=void 0;v$1=v$1===void 0?[]:v$1;for(var Gyl=[],$cw=_.C(yJX),XTG=$cw.next();!XTG.done;XTG=$cw.next())Gyl.push({key:XTG.value});for(var Tjw=_.C(v$1),dcl=Tjw.next();!dcl.done;dcl=Tjw.next())Gyl.push(dcl.value);var WaO,Wh=_.IE==null?void 0:(WaO=_.IE.performance)==null?void 0:WaO.memory,mUm=!1,zPM={},Mz1={},oX={},UM=navigator;var XS=function(a){this.JSC$13185_expiringStorage=new bl(a)};
XS.prototype.set=function(a,z,I){I=I!==void 0?Date.now()+I:void 0;this.JSC$13185_expiringStorage.set(a,z,I)};
XS.prototype.get=function(a){return this.JSC$13185_expiringStorage.get(a)};
XS.prototype.remove=function(a){this.JSC$13185_expiringStorage.remove(a)};var tn$=_.kK(["https://www.youtube.com/",""]),uDG=_.kK(["https://studio.youtube.com/",""]),fU3="IDENTITY_STICKINESS_INITIAL_STATE_ENUM_UNKNOWN",BDx=null,FVM;var o$I=_.kK(["https://www.youtube.com/iframe_api"]),Tc=function(){this.playerResolver_=_.kq();this.playerPromise_=this.playerResolver_.promise;this.playerVars_=null;this.playbackEndedCallback_=_.Kx;this.playbackDurationSeconds_=0},Uco=function(a){var z=function(){return window.YT&&typeof window.YT.ready==="function"};
if(z())return _.uI(window.YT);var I=_.kq(),J=_.OS("SCRIPT");J.onload=J.onreadystatechange=function(){J.readyState&&J.readyState!="loaded"&&J.readyState!="complete"||(J.onload=_.Kx,J.onreadystatechange=_.Kx,J.onerror=_.Kx,z()?I.resolve(window.YT):I.reject(new _.Fn("Failed to load the iframe player library","script.onload",J.readyState,typeof window.YT,window.YT?typeof window.YT.ready:"YT.ready() missing",window.yt?typeof window.yt.ready:"yt.ready() missing")))};
J.onerror=function(r){J.onload=_.Kx;J.onreadystatechange=_.Kx;J.onerror=_.Kx;I.reject(new _.Fn("Failed to load the iframe player library","script.onerror",r&&r.target&&r.target.src))};
_.c9(J,_.Jz(o$I));a.insertBefore(J,a.firstChild);return I.promise},Dcj=function(a,z,I){var J,r;
_.t(function(P){switch(P.nextAddress){case 1:return a.playbackEndedCallback_=I,_.BP(P,2),P.yield(Uco(z.parentElement||null),4);case 4:J=P.yieldResult;_.p1(P,3);break;case 2:return r=_.sk(P),r instanceof _.Fn&&r.args&&r.args[0]=="script.onerror"?_.Xd(r):_.Gx(r),P.return();case 3:J.ready(function(){return new J.Player(z,{playerVars:{controls:0,enablejsapi:1,iv_load_policy:3,modestbranding:1,mute:1,rel:0,showinfo:0},events:{onReady:a.onPlayerReady_.bind(a),onStateChange:a.onPlayerStateChange_.bind(a),
onCueRangeExit:a.onCueRangeExit_.bind(a)}})}),_.nu(P)}})};
_.Z=Tc.prototype;_.Z.getPlayerPromise=function(){return this.playerPromise_};
_.Z.onPlayerReady_=function(a){this.playerResolver_.resolve(a.target)};
_.Z.onPlayerStateChange_=function(a){if(a.data==YT.PlayerState.PLAYING){a=a.target;var z=a.getCurrentTime();a.addCueRange("playback",z,z+this.playbackDurationSeconds_)}};
_.Z.onCueRangeExit_=function(a){a.data=="playback"&&(a.target.stopVideo(),this.playbackEndedCallback_())};
_.Z.stopVideo=function(){this.playerPromise_.then(function(a){a.stopVideo()})};
var RAX=function(a){a.playerVars_&&a.playerPromise_.then(function(z){typeof z.cueVideoByPlayerVars!="function"?_.Xd(new _.Fn("vmh: player API not ready","cueVideoByPlayerVars",typeof z.cueVideoByPlayerVars)):z.cueVideoByPlayerVars(a.playerVars_)})};
Tc.prototype.playVideo=function(){var a=this;this.playerVars_&&this.playerPromise_.then(function(z){typeof z.loadVideoByPlayerVars!="function"?(z=new _.Fn("vmh: player API not ready","loadVideoByPlayerVars",typeof z.loadVideoByPlayerVars),_.Gx(z)):z.loadVideoByPlayerVars(a.playerVars_)})};
var Law=function(a,z,I,J,r){z&&(I===void 0&&(I=0),J===void 0&&(J=0),a.playbackDurationSeconds_=J/1E3,a.playerVars_={adformat:"17_8",videoId:z,suggestedQuality:"hd720",startSeconds:I/1E3,player_params:r})};
Tc.prototype.mute=function(){this.playerPromise_.then(function(a){a.mute()})};
Tc.prototype.unMute=function(){this.playerPromise_.then(function(a){a.unMute()})};var l3G=function(a,z){var I=RA();a||(a="unknown");z||(z="unknown");a="MAIN_APP_WEB_PAGE_TYPE_"+a.toUpperCase();a in joo||(a="MAIN_APP_WEB_PAGE_TYPE_UNKNOWN");z="MAIN_APP_WEB_REQUEST_TYPE_"+z.toUpperCase();z in zzo||(z="MAIN_APP_WEB_REQUEST_TYPE_UNKNOWN");_.tI(I,{mainAppWeb:{pageType:a,requestType:z,isShellLoad:_.TZ("IS_SHELL_LOAD",!1)}})},pT1={start:function(){_.tI(WqG(),{mainAppWeb:_.m1()})},
success:function(){_.ug(WqG(),"SUCCESS")},
failure:function(){_.ug(WqG(),"FAILURE")},
cancelled:function(){_.ug(WqG(),"CANCELLED")}};var wTw,mcf,xnx;wTw=_.kK(["/sw.js"]);mcf=_.kK(["/sw.js?0"]);_.y5l=_.Jz(wTw);xnx=_.Jz(mcf);var kyI=function(){var a=Error.apply(this,arguments);this.message=a.message;"stack"in a&&(this.stack=a.stack)};
_.b(kyI,Error);_.M1.prototype.load=function(a){this.megabloxUrl_=_.Xw("YPC_MB_URL");_.LL(this.megabloxUrl_,(0,_.HW)(function(){a&&a()},this))};
_.lr7=function(a,z,I,J,r,P,N,u,E,O,f){_.GD3(E);a.load((0,_.HW)(function(){try{var A=P?P:_.Xw("HL"),n=_.Xw("SESSION_INDEX");_.OeO("client",function(){YSJ("59",{helpCenterPath:"/youtube",locale:A,window:window}).JSC$9933_loadChatSupport({authuser:String(n)})})}catch(F){throw yK(10,f,"TRANSACTION_ERROR_TYPE_LOAD_FAILURE","GAPI_LOAD_ERROR"),r&&r(F),_.Gx(F),F;
}Mov(this,z,I,J,r,P,N,u,E,O,f)},a))};
_.M1.prototype.openFixFlowDialog=function(a,z,I,J){this.load((0,_.HW)(function(){try{c5e(this,_.DH("payments.business.integration")).forWidget().fixInstrument().withEncryptedParameters(a).withIntegratorCallback(z).load(I,J)}catch(r){throw _.Gx(r),r;}},this))};
var c5e=function(a,z,I,J){var r=z.mashupMode.popup("buyFlowDivId").usingDraggableDialog().usingPreferredWidth(600);_.K("enable_window_constrained_buy_flow_dialog")&&(r=r.usingPopupStyle(_.DH("payments.business.integration").PopupStyle.WINDOW_CONSTRAINED));J&&(r=r.usingCloseCallback(J));z.bootstrap.fromPaymentsUrl(a.megabloxUrl_);a=z.bootstrap.asMashupMode(r);I=I?I:_.Xw("HL");a.usingGaiaIndex(_.Xw("SESSION_INDEX")).usingLocale(I).usingDefaultActivityStatusChangeHandler().usingBaseZIndex(2E9);_.K("enable_google_payments_buyflow_material2_style_web")?
a.usingStyle(":m2;pc=#444;ac=#065fd4"):a.usingStyle(":md;pc=#444;ac=#065fd4");return a},Mov=function(a,z,I,J,r,P,N,u,E,O,f){try{var A=_.DH("payments.business.integration");
if(!A)throw new kyI("payments.business.integration is undefined");var n=A.standaloneContextAuthId.forUserId(),F=c5e(a,A,P,function(){XIp(!1);u&&u()});
N&&F.usingServerAnalyticsEventHandler(N);var h=F.inStandaloneContext(n).buyFlow(function(v){if(v&&(!v.integratorData||v.integratorData===""||v.error))if(v.error!=null)if(String(v.error)==="-1")_.$n3(E);else{var d=String(v.error)==="132"?"TRANSACTION_ERROR_TYPE_YPC_BUYFLOW_LEGAL_ADDRESS_RESTRICTION_VIOLATION":"TRANSACTION_ERROR_TYPE_YPC_BUYFLOW_COMPLETE_FAILURE";yK(10,f,d,v.debugCode);_.kh(d,E,v.debugCode);d=new _.Fn("PAYMENT_ERROR_MESSAGE::"+v.userVisibleErrorMessage,"PAYMENT_ERROR_DETAILS::"+v.internalErrorDetails);
_.Gx(d)}else yK(10,f,"TRANSACTION_ERROR_TYPE_YPC_BUYFLOW_COMPLETE_EMPTY","EMPTY_INTEGRATOR_DATA"),_.kh("TRANSACTION_ERROR_TYPE_YPC_BUYFLOW_COMPLETE_EMPTY",E,"EMPTY_INTEGRATOR_DATA"),_.Gx(Error("bg"));I&&(XIp(!1),I(v))}).withEncryptedParameters(z);
O&&h.withClientParameters(eWm(_.R8E(O)));h.load(function(){yK(24,f);_.de("ttc",void 0,"commerce_transaction");JNG("commerce_transaction");J&&(J(),XIp(!0))},function(v){if(v==null?0:v.debugCode)var d=v==null?void 0:v.debugCode;
else if(!v||(v==null?0:v.debugCode))d="EMPTY_LOAD_FAILURE_ERROR",_.Gx(Error(d));else{d="EMPTY_LOAD_FAILURE_DEBUG_CODE";var W=new _.Fn("LOAD_FAILURE:"+v.message," DEBUG_CODE:"+d);_.Gx(W)}yK(10,f,"TRANSACTION_ERROR_TYPE_LOAD_FAILURE",d);_.kh("TRANSACTION_ERROR_TYPE_LOAD_FAILURE",E,d);_.Gx(v);r&&r(v)})}catch(v){throw v instanceof kyI&&(yK(10,f,"TRANSACTION_ERROR_TYPE_LOAD_FAILURE","ERROR_BEFORE_BUY_FLOW_LOAD"),r&&r(v)),_.Gx(v),v;
}};var YdO;YdO=/^(?:https:)?\/\/[0-9a-z-.]+\.(google|youtube)\.com\//;_.D6G=function(a,z){z=z===void 0?!1:z;a=YdO.test(a)?_.H9(a):null;!z&&window.payments||!a?(a=_.kq(),z=a.promise,a.resolve()):z=_.W5j(a,{attributes:{"data-payments-main":"",id:"payment-lib"}});return z};var qdw;qdw=_.kK(["//www.googletagmanager.com/gtm.js?id=",""]);_.dr=function(a,z){_.JE(document,"gtm")||(window.dataLayer=window.dataLayer||[],window.dataLayer.push({event:"user_consent",country_code:z}),window.dataLayer.push({"gtm.start":(new Date).getTime(),event:"gtm.js",geo:_.Xw("GL")}),z=_.OS("SCRIPT"),z.async=!0,_.c9(z,_.Jz(qdw,a)),z.id="gtm",a=document.getElementsByTagName("script"),a.length==0?document.head.appendChild(z):(a=a[0],a.parentNode.insertBefore(z,a)))};
_.Ww=function(a){if(a=JSON.parse(a))window.dataLayer=window.dataLayer||[],window.dataLayer.push(a)};var eAe,ahG;eAe=_.kK(["https://clients2.google.com/gr/gr_sync.js"]);_.oy0=function(){};
_.oy0.prototype.init=function(){if(ahG()){var a=_.kq();a.resolve();return a.promise}return _.W5j(_.Jz(eAe)).then(function(){if(!ahG())throw Error("cg");},function(){throw Error("dg");
})};
_.U6E=function(){if(!ahG())return"";var a=window.google.gr;a.init({async:{schedule:"sync"},merchantId:"youtube"});a.start();a=a.finish();return a==null?"":a};
ahG=function(){return window.google!=null&&window.google.gr!=null};window.PolymerFakeBaseClassWithoutHtml=function(){};
_.G=function(){return PolymerFakeBaseClassWithoutHtml.apply(this,arguments)||this};
_.b(_.G,PolymerFakeBaseClassWithoutHtml);_.nM=function(){return PolymerFakeBaseClassWithoutHtml.apply(this,arguments)||this};
_.b(_.nM,PolymerFakeBaseClassWithoutHtml);var TDi=window.ShadyDOM;var O01,BWx,A0x,s1$,KBI,FBM,oD,rz;O01=_.K("enable_shadydom_free_scoped_query_methods");BWx=_.K("enable_shadydom_free_scoped_node_methods");A0x=_.K("enable_shadydom_free_scoped_readonly_properties_batch_one");s1$=_.K("enable_shadydom_free_parent_node");KBI=_.K("enable_shadydom_free_children");FBM=_.K("enable_shadydom_free_last_child");oD=window.ShadyDOM;_.t3=oD&&oD.noPatch&&oD.wrap?oD.wrap:oD?function(a){return oD.patch(a)}:function(a){return a};
rz=function(a){if(a instanceof ShadowRoot)this.host=(0,_.t3)(a.host),this.root=a;else if(a.$$){this.host=(0,_.t3)(a);var z;this.root=(z=a.root)!=null?z:this.host}else if(a.polymerController){this.host=(0,_.t3)(a);var I;this.root=(I=this.host.shadowRoot)!=null?I:this.host}else this.root=this.host=(0,_.t3)(a)};
gtx();fX7();H01();b0G();nt7();var jxX={querySelector:function(a,z){z=WV$(z,et(a));a=_.aQ(a);return jc(a).prototype.querySelector.call(a,z)},
querySelectorAll:function(a,z){z=WV$(z,et(a));a=_.aQ(a);return jc(a).prototype.querySelectorAll.call(a,z)}},zyj={appendChild:function(a,z){var I=et(a),J=_.q1(z);
return _.uQ0(_.aQ(a),I?_.IQ(z,I,J):z)},
cloneNode:function(a,z){var I=_.q1(a);a=_.aQ(a);z=jc(a).prototype.cloneNode.call(a,z);return I?J3(z,I):z},
contains:function(a,z){var I=et(a),J=_.q1(z);return I!==J?!1:Etx(a,z)},
insertBefore:function(a,z,I){var J=et(a),r=_.q1(z);a=_.aQ(a);z=J?_.IQ(z,J,r):z;return jc(a).prototype.insertBefore.call(a,z,I)},
removeChild:function(a,z){var I=et(a);a=_.aQ(a);z=I?J3(z,I):z;return jc(a).prototype.removeChild.call(a,z)},
replaceChild:function(a,z,I){var J=et(a),r=_.q1(z);z=J?_.IQ(z,J,r):r?J3(z,r):z;I=J?J3(I,J):I;a=_.aQ(a);return jc(a).prototype.replaceChild.call(a,z,I)},
getRootNode:function(a,z){z=z===void 0?{composed:!0}:z;var I;if(((I=z)!=null?I:{}).composed)a=kDO(a);else{z=a;for(a=Un0(a);a;)z=a,a=RP1(a);a=z}return a}},VjG=A0x?{firstChild:r07,
nextSibling:zqm,previousSibling:J0E,firstElementChild:PbM,lastElementChild:CbG,nextElementSibling:j11,previousElementSibling:IXi,childNodes:NW0}:{};s1$&&(VjG.parentNode=aXE);KBI&&(VjG.children=tjM);FBM&&(VjG.lastChild=Z0m);O01&&hq0(jxX);BWx&&hq0(zyj);Q1m();var SuG=function(a){this.node=a instanceof ShadowRoot?a.host:a};
i03();x8x();var $8G=new WeakMap;var TW7=Symbol("ud");var D87=new Set(["tap","track","down","up"]),Rq7=_.K("pbcm_fi_query_decorators");var U4=function(){return _.nM.apply(this,arguments)||this};
_.b(U4,_.nM);_.Z=U4.prototype;_.Z.getState=function(){return this.store.getState()};
_.Z.dispatch=function(a){this.store.dispatch(a)};
_.Z.beforeRegister=function(){if(this&&typeof this==="object"){var a;var z=!!this.useSignals||!((a=this.polymerController)==null||!a.useSignals)}else z=!1;if(!z&&this.properties)for(z=_.C(Object.keys(this.properties)),a=z.next();!a.done;a=z.next()){var I=a.value;a=this.properties[I];if(a.selector){if(a.computed)throw Error("jg");I=["reduxPropertiesRecomputeTrigger",'"'+I+'"'].concat(_.ih(a.selectorArgs||[])).join(",");a.computed="recomputeReduxSelector("+I+")"}}};
_.Z.attached=function(){var a=this;this.reduxPropertiesRecomputeTrigger=0;this.activeStoreSubscription||(this.activeStoreSubscription=this.store.subscribe(function(){a.reduxPropertiesRecomputeTrigger++}));
_.K("redux_disable_update_on_attached_killswitch")&&this.reduxPropertiesRecomputeTrigger++};
_.Z.detached=function(){this.activeStoreSubscription&&(this.activeStoreSubscription(),this.activeStoreSubscription=void 0)};
_.Z.recomputeReduxSelector=function(a,z){var I=_.dO.apply(2,arguments),J=this.properties[z].selector;if(!J)throw Error("hg`"+z);return J.apply(null,[this.store.getState()].concat(_.ih(I)))};
_.Z.select=function(a){var z=_.dO.apply(1,arguments);this.reduxPropertiesRecomputeTrigger;return a.apply(null,[this.store.getState()].concat(_.ih(z)))};
_.eH.Object.defineProperties(U4.prototype,{store:{configurable:!0,enumerable:!0,get:function(){throw Error("ig");}}});
U4.prototype.recomputeReduxSelector=U4.prototype.recomputeReduxSelector;_.L([_.x(),_.p("design:type",Number)],U4.prototype,"reduxPropertiesRecomputeTrigger",void 0);_.L([_.KM()],U4);var RD=[],wXI={},Tz=function(){return jl.apply(this,arguments)||this};
_.b(Tz,jl);Tz.prototype._addPropertyEffect=function(a,z,I){if(z==="__observeEffects"&&I){var J,r=(J=I.info.method)!=null?J:I.info.methodName;if(r){var P=this[r];this[r]=function(){RD.push(r);try{P==null||P.apply(this,arguments)}finally{RD.pop()}}}}_.S$._addPropertyEffect.apply(this,[a,
z,I])};
Tz.prototype._setPendingProperty=function(a,z,I){if(RD.length){var J=RD[RD.length-1],r;(r=wXI[this.is])!=null&&r.has(J)||(m8G(this.is,J),_.x0("polymerPropertyChangedInObserver",{componentName:this.is,observerName:J}))}return _.S$._setPendingProperty.apply(this,[a,z,I])};
_.L([ATp()],Tz);var y00=new Set(["allowedProps","_definePropertyAccessor","_setPendingProperty","_setUnmanagedPropertyToNode"]),Mjp,bK={};_.K("polymer_property_access_logging_debug")&&(window.PROPERTY_ACCESS_MAP=bK);var Qa=function(){return _.nM.apply(this,arguments)||this};
_.b(Qa,_.nM);Qa.prototype._setUnmanagedPropertyToNode=function(a,z,I){a.loggingStatus&&(a.loggingStatus.isDeclarativeExternal=!0);if(I!==a[z]||typeof I==="object")a[z]=I;a.is&&a.polymerController&&a.polymerController!==a&&h3(a.is,z,"PROPERTY_ACCESS_SET_EXTERNAL_DECLARATIVE");a.loggingStatus&&(a.loggingStatus.isDeclarativeExternal=!1)};
_.L([_.KM()],Qa);kqI()&&(RG.prototype._setUnmanagedPropertyToNode=(new Qa)._setUnmanagedPropertyToNode);_.NtI={YtHostElementBehavior:[{get hostElement(){return this},get polymerController(){return this},set hostElement(a){},set polymerController(a){}}]};var Xe=function(){var a=jl.apply(this,arguments)||this;a.json=function(){};
return a};
_.b(Xe,jl);Xe.prototype.equals=function(a,z){return a===z};
Xe.prototype.isEmpty=function(a){var z;(z=!a)||(z=_.lG(a)&&a.length===0);return z};
_.L([ATp()],Xe);var IhX=function(a){a=gTE(a);L$.call(this,a)};
_.b(IhX,L$);IhX.prototype.addProvider=function(a){a=a.key?a:gTE([a])[0];var z=this.keyIdToIndex.get(a.key.id);if(z){if(a0m(a,this.providers[z]))throw Error("kg`"+a.key.displayName);}else L$.prototype.addProvider.call(this,a)};
var Jlw=new IhX([]);var rlG=!1;var P$E={};rlG||(rLm(),rlG=!0);
P$E.InjectBehavior={initializeInjection:function(){var a=this.provide;try{if((a=a!=null?a:[])&&a.length>0)for(var z=gTE(a),I=_.C(z),J=I.next();!J.done;J=I.next())Jlw.addProvider(J.value);var r=new Set;jM0(this.behaviors||[],r);z={};for(var P=_.C(r),N=P.next();!N.done;N=P.next()){var u=N.value;u.inject&&Object.assign(z,u.inject)}this.inject&&Object.assign(z,this.inject);for(var E=_.C(Object.keys(z)),O=E.next();!O.done;O=E.next()){var f=O.value,A=z[f];try{this[f]=Jlw.resolve(A)}catch(n){throw n;}}}catch(n){throw Error(n.message);
}}};var C$m;var t0d=/\bclass\b/.test(function(){}.toString()),BtO=new Set("_noAccessors attached beforeRegister constructor created detached ready registered properties observers".split(" "));var PHi=function(a){this.wasDefined=!0;Array.isArray(a)||a instanceof Array?(this.JSC$13314_getImpl=a[0],this.JSC$13314_setImpl=a[1]):this.JSC$13314_getImpl=a};
_.Z=PHi.prototype;_.Z.getWithPath=function(a){return f0I(this.JSC$13314_getImpl(),a)};
_.Z.setWithPath=function(a,z){var I=this;if(a.length)throw Error("lg");if(!this.JSC$13314_setImpl)throw Error("mg");g1(function(){I.JSC$13314_setImpl(z)})};
_.Z.notifyPath=function(){throw Error("ng");};
_.Z.notifySplices=function(){throw Error("og");};
_.Z.getChangeRecordSignal=function(a,z){var I=this;if(a.length)throw Error("pg");return function(){var J=I.getWithPath(a);return{path:z!=null?z:"",base:J,value:J}}};
_.Z.getSplicesSignal=function(){throw Error("qg");};
_.Z.getPathMutationSignal=function(){throw Error("rg");};
_.Z.pop=function(){throw Error("sg");};
_.Z.push=function(){throw Error("tg");};
_.Z.splice=function(){throw Error("ug");};
_.Z.unshift=function(){throw Error("vg");};var LN=function(a){var z=this;this.observedPath={pathComponents:[],data:void 0,subPaths:{}};this.mutationIndex=0;Array.isArray(a)||a instanceof Array?(this.JSC$13319_getImpl=a[0],this.JSC$13319_setImpl=a[1]):this.JSC$13319_getImpl=a;this.wasDefined=!1;ZT(function(){z.wasDefined=z.JSC$13319_getImpl()!==void 0})};
LN.prototype.getWithPath=function(a){return f0I(this.JSC$13319_getImpl(),a)};
LN.prototype.setWithPath=function(a,z){var I=this;if(a[a.length-1]!=="*"&&a[a.length-1]!=="splices"){var J=ZT(function(){return I.getWithPath([])});
if(a.length===0){if(!this.JSC$13319_setImpl)throw Error("wg");if(J===z)return;this.wasDefined||(this.wasDefined=z!==void 0);g1(function(){I.JSC$13319_setImpl(z)})}else{for(var r=0;r<a.length-1;r++){if(!J)return;
J=J[a[r]]}r=a[a.length-1];J&&(J[r]=z);this.wasDefined||(this.wasDefined=a.length>1||z!==void 0)}ZfO(this,a,{pathComponents:a,value:z})}};
LN.prototype.notifyPath=function(a,z){a.length===0?z&&this.setWithPath(a,z.value):ZfO(this,a,{pathComponents:a,value:z==null?void 0:z.value,fallbackWhenUndefined:z==null?void 0:z.value})};
var ZfO=function(a,z,I,J){if(a.setMutationSignal){var r=++a.mutationIndex,P=[a.observedPath],N=a.observedPath,u;z.length===0&&(u=N);for(var E=0;E<z.length;E++){var O=N.subPaths[z[E]];if(!O)break;P.push(O);N=O;E===z.length-1&&(u=O)}for(z=!1;P.length;)N=P.shift(),N.data={index:r,mutation:I,spliceMutationIndex:J},z||(z=N===u),z&&P.push.apply(P,_.ih(Object.values(N.subPaths)));g1(function(){a.setMutationSignal(r)})}};
LN.prototype.notifySplices=function(a,z){var I=this,J=ZT(function(){return I.getWithPath(a)}),r=[].concat(_.ih(a),["splices"]);
ZfO(this,r,{pathComponents:r,value:{indexSplices:z}});if(J==null?0:J.length)z=this.mutationIndex,r=[].concat(_.ih(a),["length"]),ZfO(this,r,{pathComponents:r,value:J.length},z)};
var CH1=function(a,z,I,J,r,P){a.notifySplices(I,[{index:J,addedCount:r,removed:P,object:z,type:"splice"}])},NTl=function(a,z){a=a.observedPath;
for(var I=0;I<z.length;I++){var J=z[I],r=a.subPaths[J];r||(r={pathComponents:z.slice(0,I+1),subPaths:{}},a.subPaths[J]=r);a=r}},usX=function(a,z,I){NTl(a,z);
if(!a.getMutationSignal){var J=_.C(_.CW(a.mutationIndex,void 0,"sNBMCd"));a.getMutationSignal=J.next().value;a.setMutationSignal=J.next().value}var r=a.getMutationSignal;return _.Bg(function(){r();return I(tee(a,z))},void 0,"zvsXEd")};
LN.prototype.getChangeRecordSignal=function(a,z){var I=this,J=this.mutationIndex,r;return usX(this,a,function(P){if(P&&P.index>J){var N=P.mutation;J=P.index;r=void 0}P=ZT(function(){return I.getWithPath(a)});
if(N){var u=N.pathComponents[N.pathComponents.length-1],E=[].concat(_.ih(N.pathComponents));if(u==="splices"||u==="length")return{base:P,path:(z?[z].concat(_.ih(E)):E).join("."),value:N.value};var O=a.length>E.length?a:E,f;return{base:P!=null?P:N.fallbackWhenUndefined,path:(z?[z].concat(_.ih(O)):O).join("."),value:(f=ZT(function(){return I.getWithPath(O)}))!=null?f:N.fallbackWhenUndefined}}r||(r={base:P,
path:(z?[z].concat(_.ih(a)):a).join("."),value:P});return r})};
LN.prototype.getSplicesSignal=function(a){var z=this.mutationIndex,I;return usX(this,a,function(J){if(J&&J.index>z&&J.spliceMutationIndex!==z){var r=J.mutation;z=J.index;I=void 0}return r&&r.pathComponents[r.pathComponents.length-1]==="splices"?I=J=r.value:I})};
LN.prototype.getPathMutationSignal=function(a){var z=this;NTl(this,a);if(!this.getMutationSignal){var I=_.C(_.CW(this.mutationIndex,void 0,"ugyMh"));this.getMutationSignal=I.next().value;this.setMutationSignal=I.next().value}var J=this.getMutationSignal,r=this.mutationIndex,P;return _.Bg(function(){J();var N=tee(z,a);if(N&&N.index>r&&N.mutation&&ALE(N.mutation.pathComponents,a)){var u=N.mutation;r=N.index}if(!P||r!==P.index){var E,O;N=(O=ZT(function(){return z.getWithPath(a)}))!=null?O:(E=u)==null?
void 0:E.fallbackWhenUndefined;
P={index:r,value:N}}return P},void 0,"RXYC9b")};
var tee=function(a,z){a=a.observedPath;z=_.C(z);for(var I=z.next();!I.done;I=z.next())a=a.subPaths[I.value];return a.data};
LN.prototype.pop=function(a){var z=this,I=ZT(function(){return z.getWithPath(a)});
if(!(I instanceof Array))throw Error("xg");var J=I.length>0,r=I.pop();J&&CH1(this,I,a,I.length,0,[r]);return r};
LN.prototype.push=function(a){var z=_.dO.apply(1,arguments),I=this,J=ZT(function(){return I.getWithPath(a)});
if(!(J instanceof Array))throw Error("yg");var r=J.length,P=J.push.apply(J,_.ih(z));z.length&&CH1(this,J,a,r,z.length,[]);return P};
LN.prototype.splice=function(a,z,I){var J=_.dO.apply(3,arguments),r=this,P=ZT(function(){return r.getWithPath(a)});
if(!(P instanceof Array))throw Error("zg");z<0?z=P.length-Math.floor(-z):z&&(z=Math.floor(z));var N=P.splice.apply(P,[z,I].concat(_.ih(J)));(J.length||N.length)&&CH1(this,P,a,z,J.length,N);return N};
LN.prototype.unshift=function(a){var z=_.dO.apply(1,arguments),I=this,J=ZT(function(){return I.getWithPath(a)});
if(!(J instanceof Array))throw Error("Ag");var r=J.unshift.apply(J,_.ih(z));z.length&&CH1(this,J,a,0,z.length,[]);return r};var lr=function(a,z,I){this.model=a;this.unknownSignalResolver=z;this.options=I;this.signalCache={};this.isDisposed=!1;this.childSignalProxies=[];z=_.C(QMM());a=z.next().value;z=z.next().value;this.owner=a;this.disposeImpl=z};
lr.prototype.dispose=function(){if(!this.isDisposed){for(var a=_.C(this.childSignalProxies),z=a.next();!z.done;z=a.next())z.value.dispose();this.disposeImpl();this.childSignalProxies=[];this.isDisposed=!0}};
var EO1=function(a,z){a=_.MC(a.owner);try{z()}finally{_.MC(a)}};
lr.prototype.effect=function(a){EO1(this,function(){_.iF(a)})};
var BTl=function(a,z){a.options!=null||(a.options={});var I;(I=a.options).immutableProps!=null||(I.immutableProps=new Set);a.options.immutableProps.add(z)},qAG=function(a,z){z=""+z;
gOw(a,z);var I,J;if((I=a.options)==null?0:(J=I.immutableProps)==null?0:J.has(z))return!0;var r;if((r=a.model.__signalCache)==null?0:r.has(z))I=a.model.__signalCache.get(z),Array.isArray(I)&&BTl(a,z);var P,N,u;return(u=(P=a.options)==null?void 0:(N=P.immutableProps)==null?void 0:N.has(z))!=null?u:!1},Ofl=function(a,z){var I;
a.unknownSignalResolver&&(I=a.unknownSignalResolver(z));var J,r;((J=a.options)==null?0:(r=J.immutableProps)==null?0:r.has(z))?I!=null||(I=new PHi(_.CW(a.model[z],void 0,"By5iP"))):I!=null||(I=new LN(_.CW(a.model[z],void 0,"CXghNc")));var P=a.model.hostElement;Object.defineProperty(a.model,z,{get:function(){Yu0(P,z);return I.getWithPath([])},
set:function(N){Va(P,z);a.setWithPath([z],N)},
configurable:!0});return I},gOw=function(a,z){var I,J,r;
((I=a.model.__signalCache)==null||!I.has(z))&&((J=a.options)==null?0:(r=J.externalSignalProps)==null?0:r.has(z))&&a.model[z]},U8=function(a,z){z=""+z;
var I=a.signalCache[z];if(I!==void 0)return I;I=!1;gOw(a,z);var J;if((J=a.model.__signalCache)==null?0:J.has(z))if(I=a.model.__signalCache.get(z),Array.isArray(I))I=!0,BTl(a,z);else return a.signalCache[z]=a.model.__signalCache.get(z).signal,a.signalCache[z];var r,P;J=(P=(r=a.options)==null?void 0:r.reactivityMode)!=null?P:0;var N,u;if(!((N=a.options)==null?0:(u=N.reactiveProps)==null?0:u.has(z))&&!I&&J===1)throw Error("Bg`"+z);r=I?fhe(a,z):Ofl(a,z);return a.signalCache[z]=r},fhe=function(a,z){var I=
Object.getOwnPropertyDescriptor(a.model.constructor.prototype,z),J=function(){return a.model[z]};
return new PHi(I&&I.get&&!I.set?J:[J,function(r){a.model[z]=r}])};
lr.prototype.getWithPath=function(a){var z=_.C(a);a=z.next().value;z=mG(z);Yu0(this.model.hostElement,""+a);return U8(this,a).getWithPath(z)};
lr.prototype.setWithPath=function(a,z){if(a.length){Va(this.model.hostElement,a.join("."));var I=_.C(a);a=I.next().value;I=mG(I);U8(this,a).setWithPath(I,z)}};
lr.prototype.getPathMutationSignal=function(a){var z=_.C(a);a=z.next().value;z=mG(z);return U8(this,a).getPathMutationSignal(z)};
lr.prototype.notifyPath=function(a,z){var I=_.C(a);a=I.next().value;I=mG(I);U8(this,a).notifyPath(I,z)};
var Ale=function(a,z){if(z.type==="literal")return function(){return{rootWasDefined:!0,value:z.value}};
var I=WK(z.path),J=_.C(I),r=J.next().value;J=mG(J);var P,N;if(z.type==="path"&&(I.length===1||((P=a.options)==null?0:(N=P.immutableProps)==null?0:N.has(r))))return function(){var A=a.getWithPath(I.slice(0,1));A=f0I(A,I.slice(1));return{rootWasDefined:U8(a,I[0]).wasDefined,value:A}};
var u=U8(a,r);if(z.type==="path"){var E=u.getPathMutationSignal(J);return function(){var A,n=(A=E())==null?void 0:A.value;return{rootWasDefined:u.wasDefined,value:n}}}if(z.type==="splices"){var O=u.getSplicesSignal(J);
return function(){var A=O();return{rootWasDefined:u.wasDefined,value:A}}}var f=u.getChangeRecordSignal(J,""+r);
return function(){var A=f();return{rootWasDefined:u.wasDefined,value:A}}},bAE=function(a,z,I){var J=I.map(function(u){return Ale(a,u)}),r=I.length===0,P=[],N=I.length!==1||I[0].type!=="path"?!1:!0;
a.effect(function(){for(var u=J.length,E=[],O=!!P.length,f=0;f<u;f++){var A=J[f](),n=A.rootWasDefined;A=A.value;r||(r=n);E[f]=A;N&&(E[f+u]=O?P[f]:E[f],P[f]=A)}r&&xX(a.owner,function(){return void z.apply(null,_.ih(E))})})},sM7=function(a,z,I,J,r){var P=U8(a,z);
r!==void 0&&P.setWithPath([],r);bAE(a,function(){var N=_.dO.apply(0,arguments);Va(a.model.hostElement,z,!0);P.setWithPath([],I.apply(null,_.ih(N)))},J)};
lr.prototype.arrayPush=function(a){var z=_.dO.apply(1,arguments),I=_.C(a),J=I.next().value;I=mG(I);J=U8(this,J);return J.push.apply(J,[I].concat(_.ih(z)))};
lr.prototype.arraySplice=function(a,z,I){var J=_.dO.apply(3,arguments),r=_.C(a),P=r.next().value;r=mG(r);P=U8(this,P);return P.splice.apply(P,[r,z,I].concat(_.ih(J)))};
lr.prototype.arrayUnshift=function(a){var z=_.dO.apply(1,arguments),I=_.C(a),J=I.next().value;I=mG(I);J=U8(this,J);return J.unshift.apply(J,[I].concat(_.ih(z)))};
lr.prototype.notifySplices=function(a,z){var I=_.C(a);a=I.next().value;I=mG(I);U8(this,a).notifySplices(I,z)};var sxf=!0,nOv=!1,ah7=!1,KjE=!1,Fji=0;KjE=!1;Fji=0;sxf=!0;nOv=ah7=!1;var $iG=/([^\s]+?)\(([\s\S]*)\)/,xiI=/\.([^.]+)$/,Tt1=/\\,/g,SAi=/&comma;/g,iAm=/\\(.)/g,XM1=[],vJE={"*":"wildcard",splices:"splices"};var wMd=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"),RH1=/[A-Z]/,Hfw=["class","hidden","id","on-dom-change"],yLi=new Set([].concat(_.ih(Hfw),
["if","notify-dom-change","restamp"])),kvI=new Set([].concat(_.ih(Hfw),"as index-as initial-count items items-index-as notify-dom-change target-framerate strip-whitespace".split(" "))),M0i=new Set(["restamp"]);var clx=new Set(["className","id"]);var a3m=Symbol(),ZX0=window;var f3m=window;var bXG=0,n$I=0,DL=[],HX7=0,smG=!1,FaI=document.createTextNode("");(new window.MutationObserver(Ka7)).observe(FaI,{characterData:!0});var LM=new Map,RQ=0,bfw=function(a){this.mappedHandleId=a},Vod=function(a,z,I,J){this.mappedHandleId=a;
var r=this;this.mappedHandleId=a;this.callback=z;this.waitTime=I;this.schedulerPriority=J;this.handleId=_.GW.addJob(function(){r.callback();LM.delete(r.mappedHandleId)},this.schedulerPriority||1,this.waitTime)};
_.b(Vod,bfw);Vod.prototype.cancel=function(){_.GW.cancelJob(this.handleId);LM.delete(this.mappedHandleId)};
var QmI=function(a,z){this.mappedHandleId=a;var I=this;this.mappedHandleId=a;this.callback=z;this.handleId=hAO(function(){I.callback();LM.delete(I.mappedHandleId)})};
_.b(QmI,bfw);QmI.prototype.cancel=function(){var a=this.handleId-n$I;a<0||DL.length<=a||(DL[a]=null);LM.delete(this.mappedHandleId)};var v$0=function(){};
v$0.prototype.cancel=function(){this.jobHandle!==void 0&&(Sd$(this.jobHandle),this.jobHandle=void 0)};
v$0.prototype.run=function(a,z,I){var J=this;this.cancel();this.callback=a;this.jobHandle=_.lK(function(){a();J.callback=void 0},z,I)};
v$0.prototype.flush=function(){this.callback&&this.jobHandle!==void 0&&(this.cancel(),this.callback())};
var iXd=new WeakMap;var hyo=j$(function(a){for(var z=a,I=0;I<3;I++)z=Object.getPrototypeOf(z);delete z.prototype.connectedCallback;var J=function(){return a.apply(this,arguments)||this};
_.b(J,a);J.prototype._attachDom=function(r){if(!r)return null;var P=(0,_.t3)(this.hostElement);P.attachShadow({mode:"open",shadyUpgradeFragment:r});P.shadowRoot.appendChild(r);return P.shadowRoot};
J.prototype._takeAttributes=function(){for(var r=this.hostElement.attributes,P=0;P<r.length;P++){var N=r[P],u=void 0,E=void 0;(E=(u=this).__attributeReaction)==null||E.call(u,N.name,null,N.value)}};
J.prototype._readyClients=function(){a.prototype._readyClients.call(this);this.root=this};
J.prototype.connectedCallback=function(){window.ShadyCSS&&this._template&&window.ShadyCSS.styleElement(this.hostElement);a.prototype.connectedCallback.call(this)};
_.eH.Object.defineProperties(J,{template:{configurable:!0,enumerable:!0,get:function(){return J.prototype._template}}});
return J}),VeO=j$(function(a){var z=function(){return a.apply(this,arguments)||this};
_.b(z,a);z.prototype.created=function(){if(this.__notifyEffects)for(var I=_.C(Object.values(this.__notifyEffects)),J=I.next();!J.done;J=I.next()){J=_.C(J.value);for(var r=J.next();!r.done;r=J.next())r.value.fn=TjE}if(this.__reflectEffects)for(I=_.C(Object.values(this.__reflectEffects)),J=I.next();!J.done;J=I.next())for(J=_.C(J.value),r=J.next();!r.done;r=J.next())r.value.fn=dcG};
z.prototype._addEventListenerToNode=function(I,J,r){I=wz(I);Xk(I,J,r)||a.prototype._addEventListenerToNode.call(this,I,J,r)};
z.prototype._removeEventListenerFromNode=function(I,J,r){I=wz(I);T$(I,J,r)||a.prototype._removeEventListenerFromNode.call(this,I,J,r)};
z.prototype._propertiesChanged=function(I,J,r){if(this.__dataToNotify&&this.__notifyEffects)for(var P=_.C(Object.keys(this.__dataToNotify)),N=P.next();!N.done;N=P.next()){N=N.value;var u=XT7(N);this.__notifyEffects[u]||delete this.__dataToNotify[N]}else this.__dataToNotify=null;a.prototype._propertiesChanged.call(this,I,J,r)};
z.prototype.fire=function(I,J,r){J=J===void 0?{}:J;var P;return _.PA(wz((P=r==null?void 0:r.node)!=null?P:this),I,J,r)};
z.prototype._ensureAttribute=function(I,J){var r=wz(this);r.hasAttribute(I)||oQ(r,J,I)};
z.prototype.isLightDescendant=function(I){var J=wz(this);return wz(J)!==I&&_.PK(J).contains(I)&&_.PK(J).getRootNode()===_.PK(I).getRootNode()};
return z});
_.Q_.ready=function(){var a;((a=this.hostElement)!=null?a:this).addEventListener("focus",this._boundFocusBlurHandler,!0);var z;((z=this.hostElement)!=null?z:this).addEventListener("blur",this._boundFocusBlurHandler,!0)};
_.Ts._subscribeIronResize=function(a){var z;((z=a.hostElement)!=null?z:a).addEventListener("iron-resize",this._boundOnDescendantIronResize)};
_.Ts._unsubscribeIronResize=function(a){var z;((z=a.hostElement)!=null?z:a).removeEventListener("iron-resize",this._boundOnDescendantIronResize)};var Uc1=[Array,Boolean,Date,Number,Object,String],ya=function(a,z,I,J){this.polySiInfo=a;this.polySiParams=z;this.polySiContext=I;this.upgradeDisabled=this.isPolySiElementConnected=this.didCallReady=!1;this.mutablePropNames=new Set;this.reflecting=!1;J||this instanceof HTMLElement&&(J=this);if(!J)throw Error("Ig");this.allowedProps=z.allowedProps;this.hostElement=J;this.is=a.is;this.upgradeDisabled=!!z.legacyOptimizations&&this.hostElement.hasAttribute("disable-upgrade");a=new Set(z.reactiveSchemas.filter(function(r){return r.type!==
"observe"}).map(function(r){return r.propertyKey}));
this.signalProxy=new lr(this,void 0,{reactiveProps:a,reactivityMode:z.reactivityMode});this.__dataHasAccessor={};z=_.C(z.reactiveSchemas);for(a=z.next();!a.done;a=z.next())a=a.value,a.type==="signal"&&(this.__dataHasAccessor[a.propertyKey]=!0);this.upgradeDisabled||Qxv(this)};
ya.prototype.getExtraMethodsToForward=function(){return[]};
var Qxv=function(a){a.polySiContext.didRegister||(a.registered(),a.polySiContext.didRegister=!0);a.polySiContext.finalizedTemplate||(a.polySiContext.finalizedTemplate={},a.polySiParams.templateGetter&&(a.polySiContext.finalizedTemplate.processedTemplate=A5G(a.polySiParams.templateGetter,a.polySiParams.is)));SCI(a);var z=a.hostElement;z.loggingStatus!=null||(z.loggingStatus={});z.loggingStatus.isInitializing=!0;ZT(function(){return void a.created()});
z.loggingStatus.isInitializing=!1;a.isPolySiElementConnected&&ifw(a)},ifw=function(a){a.didCallReady||(ZT(function(){return void a.ready()}),a.didCallReady=!0);
a.isAttached=!0;a.attached()};
_.Z=ya.prototype;_.Z.connectedCallback=function(){this.isPolySiElementConnected=!0;this.upgradeDisabled||ifw(this)};
_.Z.disconnectedCallback=function(){this.isPolySiElementConnected=!1;this.upgradeDisabled||(this.isAttached=!1,this.detached())};
_.Z.attributeChangedCallback=function(a,z,I){if(this.upgradeDisabled)a==="disable-upgrade"&&I===null&&(this.upgradeDisabled=!1,Qxv(this));else if(z!==I){var J=_.nL(a),r=this.polySiContext.typesForSignals[J];if(r&&(!this.reflecting||_.K("polysi_attribute_changed_serializing_killswitch"))){switch(r){case Object:try{var P=JSON.parse(I)}catch(u){P=I}break;case Array:try{P=JSON.parse(I)}catch(u){P=null}break;case Date:P=isNaN(I)?String(I):Number(I);P=new Date(P);break;case Boolean:P=I!==null;break;case Number:P=
Number(I);break;default:P=I}this[J]=P}J=_.C(this.polySiParams.behaviors);for(r=J.next();!r.done;r=J.next())P=void 0,(P=r.value.attributeChanged)==null||P.call(this,a,z,I);var N;(N=this.attributeChanged)==null||N.call(this,a,z,I)}};
_.Z.attributeChangedCallbackWrapper=function(a,z,I){this.attributeChangedCallback(a,z,I)};
_.Z.setPropertiesFromInitialAttributeValues=function(){for(var a=0;a<this.hostElement.attributes.length;a++){var z=this.hostElement.attributes[a];(z.name==="disable-upgrade"||this.polySiParams.observedAttributes.includes(z.name))&&this.attributeChangedCallback(z.name,null,z.value)}};
_.Z.created=function(){this.provide=this.polySiParams.provide;var a;(a=this.initializeInjection)==null||a.call(this);a=_.C(this.polySiParams.reactiveSchemas);for(var z=a.next();!z.done;z=a.next())z=z.value,z.type==="signal"&&(this.mutablePropNames.add(z.propertyKey),U8(this.signalProxy,z.propertyKey));o$M(this,this.polySiInfo,this.polySiParams.behaviors);a=_.C(this.polySiParams.reactiveSchemas);for(z=a.next();!z.done;z=a.next())z=z.value,z.type==="signal"&&z.value!==void 0&&(this.signalProxy.model[z.propertyKey]=
typeof z.value==="function"?z.value.call(this):z.value);if(this.polySiParams.signalProperties)for(a=_.C(this.polySiParams.signalProperties),z=a.next();!z.done;z=a.next()){z=z.value;var I=void 0;((I=this.__signalCache)==null?0:I.has(z))||(this.signalProxy.model[z]=void 0)}KjE||xvI(this);Wam(this);a=_.C(this.polySiParams.behaviors);for(z=a.next();!z.done;z=a.next())I=void 0,(I=z.value.created)==null||I.call(this);var J;(J=this.polySiInfo.created)==null||J.call(this)};
_.Z.registered=function(){var a=this;this.polySiParams.legacyOptimizations&&this.polySiContext.copyPropertiesToProto();var z=Object.getPrototypeOf(this);z.addReactiveSchema=function(u){a.polySiParams.reactiveSchemas.push(u)};
for(var I=_.C(this.polySiParams.behaviors),J=I.next();!J.done;J=I.next()){var r=void 0;(r=J.value.beforeRegister)==null||r.call(z)}var P;(P=this.polySiInfo.beforeRegister)==null||P.call(z);z.addReactiveSchema=RAd;I=_.C(this.polySiParams.behaviors);for(J=I.next();!J.done;J=I.next())r=void 0,(r=J.value.registered)==null||r.call(z);var N;(N=this.polySiInfo.registered)==null||N.call(z)};
_.Z.ready=function(){var a;(a=this.beforeReady)==null||a.call(this);KjE&&xvI(this);var z;if(a=(z=this.polySiContext.finalizedTemplate)==null?void 0:z.processedTemplate){a=OX7(a.template,a.nodeInfoList,this.signalProxy,{eventListenerHost:this,hasInsertionPoint:a.hasInsertionPoint,thisCtx:this});z=a.nodesById;a=a.root;var I=this.hostElement;var J=J===void 0?!1:J;I=(0,_.t3)(I);if(!I.attachShadow)throw Error("Ad");if(!I.shadowRoot||J)I.attachShadow({mode:"open",shadyUpgradeFragment:a}),I.shadowRoot.appendChild(a);
this.root=I.shadowRoot;this.$=z}vOG(this);J=_.C(this.polySiParams.behaviors);for(z=J.next();!z.done;z=J.next())a=void 0,(a=z.value.ready)==null||a.call(this);var r;(r=this.polySiInfo.ready)==null||r.call(this)};
_.Z.attached=function(){for(var a=_.C(this.polySiParams.behaviors),z=a.next();!z.done;z=a.next()){var I=void 0;(I=z.value.attached)==null||I.call(this)}var J;(J=this.polySiInfo.attached)==null||J.call(this)};
_.Z.detached=function(){for(var a=_.C(this.polySiParams.behaviors),z=a.next();!z.done;z=a.next()){var I=void 0;(I=z.value.detached)==null||I.call(this)}var J;(J=this.polySiInfo.detached)==null||J.call(this)};
var SCI=function(a){for(var z=_.C(a.polySiParams.behaviors),I=z.next();!I.done;I=z.next())if(I=I.value,I.listeners)for(var J in I.listeners)g$d(a,a.hostElement,J,I.listeners[J]);if(a.polySiInfo.listeners)for(var r in a.polySiInfo.listeners)g$d(a,a.hostElement,r,a.polySiInfo.listeners[r])},g$d=function(a,z,I,J,r){a=OAx(a,J,r);
Xk(z,I,a)||z.addEventListener(I,a);return a},xvI=function(a){for(var z=_.C(a.polySiParams.reactiveSchemas),I=z.next();!I.done;I=z.next())I=I.value,I.type==="compute"||I.type==="computeWithMethod"?nJ1(a.signalProxy,I,a):I.type==="redux"?HAG(a.signalProxy,I,a.store):I.type==="signal"&&I.readOnly&&Fc3(a.signalProxy,I)},vOG=function(a){for(var z=_.C(a.polySiParams.reactiveSchemas),I=z.next(),J={};!I.done;J={schema$jscomp$12:void 0},I=z.next())J.schema$jscomp$12=I.value,J.schema$jscomp$12.type==="notify"?
hHd(a.signalProxy,J.schema$jscomp$12,a.hostElement):J.schema$jscomp$12.type==="observe"?V0M(a.signalProxy,J.schema$jscomp$12,a):J.schema$jscomp$12.type==="reflect"&&a.signalProxy.effect(function(P){return function(){var N=a.signalProxy.getWithPath([P.schema$jscomp$12.propertyKey]);
a.reflecting=!0;Wc$(a.hostElement,P.schema$jscomp$12.propertyKey,N,!0);a.reflecting=!1}}(J));
if(a.reflectedAttributes)for(z=_.C(Object.entries(a.reflectedAttributes)),J=z.next(),I={};!J.done;I={key$jscomp$912:void 0,value$jscomp$9162:void 0},J=z.next()){var r=_.C(J.value);J=r.next().value;r=r.next().value;I.key$jscomp$912=J;I.value$jscomp$9162=r;a.signalProxy.effect(function(P){return function(){a.reflecting=!0;Wc$(a.hostElement,P.key$jscomp$912,(0,P.value$jscomp$9162)(),!0);a.reflecting=!1}}(I))}};
_.Z=ya.prototype;_.Z._setPendingProperty=function(a,z){this.set(a,z);return!1};
_.Z._enableProperties=function(){};
_.Z._setPendingPropertyOrPath=function(a,z){this.notifyPath(a,z);return!1};
_.Z._addPropertyEffect=function(){};
_.Z._stampTemplate=function(){throw Error("Jg");};
_.Z.fire=function(a,z,I){z=z===void 0?{}:z;I=I===void 0?{}:I;var J,r,P={bubbles:(J=I.bubbles)!=null?J:!0,cancelable:!!I.cancelable,composed:(r=I.composed)!=null?r:!0},N;return _.PA(LaG((N=I.node)!=null?N:this.hostElement),a,z,P)};
_.Z.get=function(a,z){var I=WK(a);return z?f0I(z,I):a==="hidden"?this.hostElement.hidden:this.signalProxy.getWithPath(I)};
_.Z.linkPaths=function(){};
_.Z.listen=function(a,z,I){a=LaG(a);this.boundListeners!=null||(this.boundListeners=new WeakMap);var J=this.boundListeners.get(a);J||(J={},this.boundListeners.set(a,J));var r=z+I;J[r]||(J[r]=g$d(this,a,z,I))};
_.Z.notifyPath=function(a,z){this.signalProxy.notifyPath(WK(a),arguments.length===2?{value:z}:void 0)};
_.Z.canNotifyPath=function(a){return this.mutablePropNames.has(a)&&!qAG(this.signalProxy,a)};
_.Z.notifySplices=function(a,z){this.signalProxy.notifySplices(WK(a),z)};
_.Z.pop=function(a){var z=this.signalProxy;a=WK(a);var I=_.C(a);a=I.next().value;I=mG(I);return U8(z,a).pop(I)};
_.Z.push=function(a){var z=_.dO.apply(1,arguments);return this.signalProxy.arrayPush.apply(this.signalProxy,[WK(a)].concat(_.ih(z)))};
_.Z.set=function(a,z,I){if(I)throw Error("Kg");a==="hidden"?this.hostElement.hidden=!!z:this.signalProxy.setWithPath(WK(a),z)};
_.Z.setProperties=function(a){a=_.C(Object.entries(a));for(var z=a.next();!z.done;z=a.next()){var I=_.C(z.value);z=I.next().value;I=I.next().value;this[z]=I}};
_.Z.splice=function(a,z,I){var J=_.dO.apply(3,arguments);return this.signalProxy.arraySplice.apply(this.signalProxy,[WK(a),z,I].concat(_.ih(J)))};
_.Z.unlinkPaths=function(){};
_.Z.unlisten=function(a,z,I){a=LaG(a);if(this.boundListeners){var J=this.boundListeners.get(a);if(J){I=z+I;var r=J[I];r&&(T$(a,z,r)||a.removeEventListener(z,r),delete J[I])}}};
_.Z.unshift=function(a){var z=_.dO.apply(1,arguments);return this.signalProxy.arrayUnshift.apply(this.signalProxy,[WK(a)].concat(_.ih(z)))};
_.eH.Object.defineProperties(ya.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 eAp=[Array,Boolean,Date,Number,Object,String];var zyi=!1;var pN=function(){var a=HTMLElement.apply(this,arguments)||this;a.restamp=!1;a.notifyDomChange=!1;a.JSC$13427_didCallConnected=!1;a.JSC$13427_renderDebouncer=null;a.disableTemplateUpdateSignalImpl=ki()?void 0:_.CW(!1,void 0,"Ofhkwb");var z;a.getDisableTemplateUpdate=(z=a.disableTemplateUpdateSignalImpl)==null?void 0:z[0];var I;a.setDisableTemplateUpdate=(I=a.disableTemplateUpdateSignalImpl)==null?void 0:I[1];return a};
_.b(pN,HTMLElement);var GfI=function(a){a.conditionSignalImpl!=null||(a.conditionSignalImpl=new LN(_.CW(!1,void 0,"gE52Fb")));return a.conditionSignalImpl};
_.Z=pN.prototype;_.Z.showHideChildren=function(a){$vj(this,a,this.if)};
_.Z.attributeChangedCallback=function(a,z,I){if(this.JSC$13427_didCallConnected)throw Error("Og`"+a);a==="notify-dom-change"?this.notifyDomChange=I!==null:a==="restamp"&&(this.restamp=I!==null)};
_.Z.debounceRender=function(){this.JSC$13427_renderDebouncer=_.EH(this.JSC$13427_renderDebouncer,Wv,this.JSC$13427_renderImpl.bind(this));_.BG(this.JSC$13427_renderDebouncer)};
_.Z.disconnectedCallback=function(){var a=(0,_.t3)(this).parentNode;(!a||a.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&"host"in a&&!a.host)&&X_X(this)};
_.Z.connectedCallback=function(){var a=this;this.JSC$13427_didCallConnected=!0;sxf?Ihd():this.style.display="none";this.parentSignalProxy.effect(function(){GfI(a).getWithPath([]);a.debounceRender()})};
_.Z.render=function(){_.AX()};
_.Z.JSC$13427_renderImpl=function(){if(!this.parentSignalProxy.isDisposed){var a=this.if,z=!1;if(a){this.hasInstance()||(TTf(this),z=!0);a:{var I=(0,_.t3)(this).parentNode;if(this.hasInstance()){var J=this.instance.children;if((J==null?0:J.length)&&(0,_.t3)(this).previousSibling!==J[J.length-1])for(var r=0;r<J.length;r++)(0,_.t3)(I).insertBefore(J[r],this)}else{if(!I){I=!1;break a}dvE(this,I)}I=!0}if(!I)return}else this.restamp&&X_X(this);$vj(this,!1,a);a&&!z&&TTf(this);nOv&&!this.notifyDomChange||
this.dispatchEvent(new CustomEvent("dom-change",{bubbles:!0,composed:!0}))}};
_.Z.hasInstance=function(){return!!this.instance};
var dvE=function(a,z){var I=a.parentSignalProxy;if(ki()){var J=_.C(_.CW(!0,void 0,"yf4Yhf"));var r=J.next().value;J=J.next().value;I=a.parentSignalProxy}else{var P;var N=new lr((P=Wje(a))!=null?P:{},function(E){var O=U8(a.parentSignalProxy,E).getChangeRecordSignal([]);E=_.CW(void 0,void 0,"oT9mkc");var f=new LN(E);N.effect(function(){if(a.getDisableTemplateUpdate&&!a.getDisableTemplateUpdate()){var A=O();f.notifyPath(WK(A.path),{value:A.value})}});
return f});
a.parentSignalProxy.childSignalProxies.push(N);var u=I=N}I=OX7(a.templateInfo,a.templateInfo.nodeInfoList,I,{eventListenerHost:a.eventListenerHost,hasInsertionPoint:a.templateInfo.hasInsertionPoint,thisCtx:a.eventListenerHost,enabledSignal:ki()?r:void 0,getModel:function(){return Wje(a)}}).root;
a.instance={root:I,children:[],hidden:!1,signalProxy:u,getTemplateUpdatesEnabled:r,setTemplateUpdatesEnabled:J};u=_.C(I.childNodes);for(r=u.next();!r.done;r=u.next())a.instance.children.push(r.value);(0,_.t3)(z).insertBefore(a.instance.root,a)},Wje=function(a){if((a=a.parentSignalProxy.model)&&!a.hostElement){var z={},I;
for(I in a)a.hasOwnProperty(I)&&(z[I]=a[I]);return z}},X_X=function(a){if(a.instance){var z=a.instance.children;
if(z.length){var I=(0,_.t3)(z[0]).parentNode;if(I){I=(0,_.t3)(I);for(var J=0;J<z.length;J++)I.removeChild(z[J])}}ki()?a.instance.setTemplateUpdatesEnabled(!1):a.instance.signalProxy.dispose();a.instance=void 0}},$vj=function(a,z,I){z=z||!I;
a.instance&&a.instance.hidden!==z&&(a.instance.hidden=z,jxd(z,a.instance.children))},TTf=function(a){if(ki()){var z=a.instance;
z&&xX(a.parentSignalProxy.owner,function(){return!z.getTemplateUpdatesEnabled()})&&z.setTemplateUpdatesEnabled(!0)}else a.setDisableTemplateUpdate(!1)};
_.eH.Object.defineProperties(pN.prototype,{if:{configurable:!0,enumerable:!0,get:function(){var a=this;return xX(this.parentSignalProxy.owner,function(){return GfI(a).getWithPath([])})},
set:function(a){a||(ki()?this.instance&&this.instance.setTemplateUpdatesEnabled(!1):this.setDisableTemplateUpdate(!0));GfI(this).setWithPath([],!!a)}}});
_.eH.Object.defineProperties(pN,{observedAttributes:{configurable:!0,enumerable:!0,get:function(){return["restamp","notify-dom-change"]}}});
customElements.define("ps-dom-if",pN);var oOw=[],wr=function(){var a=HTMLElement.apply(this,arguments)||this;a.as="item";a.indexAs="index";a.itemsIndexAs="itemsIndex";a.targetFramerate=20;a.notifyDomChange=!1;a.isDetached=!1;a.JSC$13434_renderDebouncer=null;a.instances=[];a.chunkingId=null;a.chunkCount=null;a.shouldMeasureChunk=!1;a.shouldContinueChunking=!1;a.renderStartTime=null;a.JSC$13434_didCallConnected=!1;return a};
_.b(wr,HTMLElement);var UvG=function(a){a.itemSignalImpl!=null||(a.itemSignalImpl=new LN(_.CW(oOw,void 0,"YBrqgf")));return a.itemSignalImpl},Dvo=function(a,z){Array.isArray(z)||(z=oOw);
UvG(a).setWithPath([],z)};
_.Z=wr.prototype;_.Z.showHideChildren=function(a){for(var z=_.C(this.instances),I=z.next();!I.done;I=z.next())jxd(a,I.value.children)};
_.Z.notifyPath=function(a,z){a=WK(a);a[0]==="items"&&(a.length===1?Dvo(this,z):UvG(this).setWithPath(a.slice(1),z))};
_.Z.canNotifyPath=function(a){return a==="items"};
_.Z.attributeChangedCallback=function(a,z,I){if(this.JSC$13434_didCallConnected)throw Error("Pg`"+a);a==="as"?this.as=I:a==="index-as"?this.indexAs=I:a==="items-index-as"?this.itemsIndexAs=I:a==="initial-count"?this.initialCount=Number(I):a==="notify-dom-change"?this.notifyDomChange=I!==null:a==="target-framerate"&&(this.targetFramerate=Number(I))};
_.Z.disconnectedCallback=function(){this.isDetached=!0;for(var a=0;a<this.instances.length;a++)Ryo(this,a);this.chunkingId&&cancelAnimationFrame(this.chunkingId)};
_.Z.connectedCallback=function(){var a=this,z=UvG(this).getChangeRecordSignal([],"");this.parentSignalProxy.effect(function(){var r=z(),P=WK(r.path);if(P[0]===void 0||P[0]==="splices"||P[0]==="length")a.debounceRender();else{var N=P[0];if(N=a.instances[typeof N==="string"?Math.floor(Number(N)):N])P=[a.as].concat(_.ih(P.slice(1))),N.signalProxy.notifyPath(P,r)}});
this.JSC$13434_didCallConnected=!0;sxf?Ihd():this.style.display="none";if(this.isDetached){this.isDetached=!1;for(var I=(0,_.t3)((0,_.t3)(this).parentNode),J=0;J<this.instances.length;J++)I.insertBefore(this.instances[J].root,this);this.chunkingId&&this.render()}};
_.Z.debounceRender=function(){this.JSC$13434_renderDebouncer=_.EH(this.JSC$13434_renderDebouncer,Wv,this.JSC$13434_renderImpl.bind(this));_.BG(this.JSC$13434_renderDebouncer)};
_.Z.render=function(){this.debounceRender();_.AX()};
_.Z.JSC$13434_renderImpl=function(){var a=this;if(!this.parentSignalProxy.isDisposed){var z=this.items,I=LjI(this,z.length);lhf(this,z,I);this.initialCount&&(this.shouldMeasureChunk||this.shouldContinueChunking)&&(cancelAnimationFrame(this.chunkingId),this.chunkingId=requestAnimationFrame(function(){a.chunkingId=null;if(a.shouldMeasureChunk){var J=performance.now()-a.renderStartTime;a.chunkCount=Math.round(Math.ceil(1E3/a.targetFramerate)/J*a.chunkCount)||1}a.shouldContinueChunking&&a.debounceRender()}));
nOv&&!this.notifyDomChange||this.dispatchEvent(new CustomEvent("dom-change",{bubbles:!0,composed:!0}))}};
var LjI=function(a,z){var I=z,J=a.instances.length;if(a.initialCount){if(a.chunkCount){var r=Math.min(Math.max(z-J,0),a.chunkCount);I=Math.min(J+r,z)}else I=Math.min(z,a.initialCount),r=Math.max(I-J,0),a.chunkCount=r||1;a.shouldMeasureChunk=r===a.chunkCount;a.shouldContinueChunking=I<z;a.renderStartTime=performance.now()}return I},lhf=function(a,z,I){for(var J=0;J<I;J++){var r=a.instances[J],P=z[J];
r?(r.signalProxy.setWithPath([a.as],P),r.signalProxy.setWithPath([a.indexAs],J)):p_f(a,P,J)}for(z=a.instances.length-1;z>=J;z--)I=a,r=z,Ryo(I,r),_.C(I.instances.splice(r,1)).next().value.signalProxy.dispose()},Ryo=function(a,z){a=a.instances[z];
z=(0,_.t3)(a.root);for(var I=0;I<a.children.length;I++)z.appendChild(a.children[I])},p_f=function(a,z,I){var J={};
z=Object.assign({},w_v(a),(J[a.as]=z,J[a.indexAs]=I,J[a.itemsIndexAs]=I,J));var r=new lr(z,function(N){if(N!==a.as&&N!==a.indexAs){if(N===a.itemsIndexAs)return U8(r,a.indexAs);var u=U8(a.parentSignalProxy,N).getChangeRecordSignal([]);N=_.CW(void 0,void 0,"T21Pqc");var E=new LN(N);r.effect(function(){var O=u();E.notifyPath(WK(O.path),{value:O.value})});
return E}});
a.parentSignalProxy.childSignalProxies.push(r);J=OX7(a.templateInfo,a.templateInfo.nodeInfoList,r,{eventListenerHost:a.eventListenerHost,getModel:function(){var N={};return Object.assign({},w_v(a),(N[a.as]=r.model[a.as],N[a.indexAs]=r.model[a.indexAs],N[a.itemsIndexAs]=r.model[a.indexAs],N))},
hasInsertionPoint:a.templateInfo.hasInsertionPoint,thisCtx:a.eventListenerHost,methodInvocationRequirement:Fji,enabledSignal:a.stampingEnabled}).root;z={root:J,children:[],signalProxy:r};J=_.C(J.childNodes);for(var P=J.next();!P.done;P=J.next())z.children.push(P.value);J=(J=a.instances[I+1])?J.children[0]:a;(0,_.t3)((0,_.t3)(a).parentNode).insertBefore(z.root,J);a.instances[I]=z},w_v=function(a){if((a=a.parentSignalProxy.model)&&!a.hostElement){var z={},I;
for(I in a)a.hasOwnProperty(I)&&(z[I]=a[I]);return z}};
wr.prototype.itemForElement=function(a){var z=this,I=this.instances.find(function(J){return J.children.includes(a)});
if(I)return xX(this.parentSignalProxy.owner,function(){return I.signalProxy.getWithPath([z.as])})};
wr.prototype.indexForElement=function(a){var z=this.instances.findIndex(function(I){return I.children.includes(a)});
return z>=0?z:void 0};
_.eH.Object.defineProperties(wr.prototype,{items:{configurable:!0,enumerable:!0,get:function(){var a=this;return xX(this.parentSignalProxy.owner,function(){return UvG(a).getWithPath([])})},
set:function(a){Dvo(this,a)}},
delay:{configurable:!0,enumerable:!0,set:function(){}},
filter:{configurable:!0,enumerable:!0,set:function(){}},
observe:{configurable:!0,enumerable:!0,set:function(){}},
sort:{configurable:!0,enumerable:!0,set:function(){}},
__instances:{configurable:!0,enumerable:!0,get:function(){return this.instances}}});
_.eH.Object.defineProperties(wr,{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",wr);var mvi,ylo;_.mP=new _.I4("STATE_STORE_TOKEN");mvi=new _.I4("SELECT_TOKEN");ylo=new _.I4("DISPATCH_TOKEN");var NTG={getSelectFn:function(){var a;return(a=_.ab().resolve(_.eL(mvi)))!=null?a:JlE},
getDispatchFn:function(){var a;return(a=_.ab().resolve(_.eL(ylo)))!=null?a:_.M3().dispatch.bind(_.M3())},
getAppStore:function(){return _.ab().resolve(_.mP)}},rl7,CH0=!1;var BTG=new tnf;var sx$=function(){};var OfG=void 0;var kfO=function(){};
kfO.prototype.hasAttribute=function(a){if(a==="dir")return!1;if(a==="disable-upgrade"){var z,I;return(I=(z=this.hostElement)==null?void 0:z.hasAttribute("disable-upgrade"))!=null?I:!1}throw Error("Qg`"+a);};
kfO.prototype.attributeChangedCallbackWrapper=function(a,z,I){if(a==="disable-upgrade"&&this.__isUpgradeDisabled&&I===null){this._initializeProperties();this.__isUpgradeDisabled=!1;var J;((J=this.hostElement)!=null?J:this).isConnected&&this.connectedCallback()}else z===I||this.__isReflecting||this.attributeChangedCallback(a,z,I)};
kfO.prototype.getExtraMethodsToForward=function(){for(var a=this,z=[],I=_.C(MeI),J=I.next(),r={};!J.done;r={tagName$jscomp$54:void 0,name$jscomp$574:void 0},J=I.next())r.name$jscomp$574=J.value,J=void 0,r.name$jscomp$574==="_setPendingProperty"?(r.tagName$jscomp$54=this.hostElement.tagName.toLowerCase(),J=function(P){return function(N,u,E){h3(P.tagName$jscomp$54,N,"PROPERTY_ACCESS_SET_EXTERNAL_DECLARATIVE");return a._setPendingProperty(N,u,E)}}(r)):J=function(P){return function(){return a[P.name$jscomp$574].apply(a,
_.ih(_.dO.apply(0,arguments)))}}(r),z.push([r.name$jscomp$574,
J]);return z};
for(var Fjx=VeO(hyo((0,_.Q1)(kfO))),Vem=["disabled","disable-upgrade"],cli=(0,_.Q1)(function(){}),YCO=new Set(Object.getOwnPropertyNames(cli.prototype)),vO7=new Set("is hostElement root rootPath importPath inject behaviors properties provide".split(" ").concat(_.ih(YCO))),SCM=new Set(["__dataEnabled",
"__dataHasAccessor","__dataPending","__isPropertyEffectsClient","__readOnly"]),MeI=new Set("_enableProperties _flushProperties _setPendingProperty _setPendingPropertyOrPath set get".split(" ")),qCf=new Set([].concat(_.ih(SCM),_.ih(MeI),_.ih(YCO))),eyi=_.C(qCf),abX=eyi.next();!abX.done;abX=eyi.next())y00.add(abX.value);var xvM={created:function(){Wam(this);this.initializeInjection()}};var Dv1=!1,I0=window.ShadyDOM,kfm=["appendChild","insertBefore","removeChild","replaceChild"],yl1=[Node];I0&&yl1.push(I0.Wrapper);var abd,jPE,J93={};var Pl=new Set,Jj="",r9d="";var rd,ZA=new Set;var g1i=new Set("context didCallReady is info params signalProxy".split(" ")),fbm="_enableProperties _setPendingProperty _setPendingPropertyOrPath fire get linkPaths listen notifyPath notifySplices pop push set setProperties splice unlinkPaths unlisten unshift".split(" "),A9d="__dataHasAccessor __isPropertyEffectsClient $ hostElement isAttached observers properties".split(" ");var jPw=fL({entities:Cc0}),zJJ=new Yp(jPw);var Ibl=function(){return _.nM.apply(this,arguments)||this};
_.b(Ibl,_.nM);_.eH.Object.defineProperties(Ibl.prototype,{store:{configurable:!0,enumerable:!0,get:function(){return zJJ}}});
_.L([_.KM()],Ibl);_.yb=[U4.prototype,Ibl.prototype];_.ko={YtLiveChatTooltipTargetingBehavior:{created:function(){this.handler_=null},
ready:function(){var a=this,z={};setTimeout(function(){var I;return _.PA((I=a.hostElement)!=null?I:a,"yt-live-chat-add-tooltip-target",z)},0);
this.handler_=z.handler},
detached:function(){if(this.handler_){var a;this.handler_.removeElementFromSupportingTooltips((a=this.hostElement)!=null?a:this)}this.handler_=null}}};_.gd=new _.I4("ICON_MANAGER_TOKEN");var J9J=[48,20,18,16,15,13,12],D41=new Map,X50=new Set,v1d=new Set,$4O=new Set,x4x=new Set,GUi=new Set,d40=new Promise(function(a){var z=!1,I=!1,J=!1,r=[],P=function(N){if("detail"in N)if(N=N.detail,N.name==="yt-icons")T6i(N),z=!0;else if(N.name==="yt-sys-icons")T6i(N),I=!0;else{var u;((u=N.name)==null?0:u.includes("yt-sys-icons"))&&N.size!==24&&(T6i(N,!0),r.push(N.size),r.length===J9J.length&&(J=!0))}z&&I&&J&&(window.removeEventListener("iron-iconset-added",P),a())};
window.addEventListener("iron-iconset-added",P)}),o1x=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"]]);_.Ms={};_.Ms.YtComponentBehavior={_noAccessors:!0,getSimpleString:_.cd,computeHref_:function(a,z){z=z===void 0?!1:z;if(!a||a.commandExecutorCommand)return null;var I=DhG(a,z);return z||I!==null?I?_.K("enable_polymer_resin")?_.XG(I).toString():I:null:(_.Xd(new _.Fn("computeHref was null",this.is,a)),null)},
computeOptionalHref_:function(a){return this.computeHref_(a,!0)},
computeNofollow_:function(a){return a?vcd(a)?"nofollow":null:null},
computeIcon_:function(a){return a&&a.iconType?_.Bl(a.iconType):""},
resolveCommand:function(a,z,I){z=z===void 0?{}:z;return _.fw(a,this.hostElement,z,I===void 0?!1:I)}};var PMi,cw;_.r9X={};PMi=null;
cw={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_=G4d(this.viewroot));_.lK(this.initVisibilityObserver_.bind(this))},
initVisibilityObserver_:function(){this.visibilityObserver&&this.configureVisibilityObserver_()},
configureVisibilityObserver_:function(){var a=this;this.unobserve_();if(_.K("kevlar_vimio_use_shared_monitor"))w5d(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 z=[];this.visibilityOptionVisible_&&z.push(this.visibilityObserver.observe(this.hostElement,function(){return a.onVisible()},this.visibilityOptionVisible_));
this.visibilityOptionHidden_&&z.push(this.visibilityObserver.observe(this.hostElement,function(){return a.onHidden()},this.visibilityOptionHidden_));
this.visibilityOptionPrescan_&&z.push(this.visibilityObserver.observe(this.hostElement,function(){return a.onPrescanVisible()},this.visibilityOptionPrescan_));
this.visibilityMonitorKeys=z}},
detached:function(){this.unobserve_();this.visibilityObserverForChild_=this.localVisibilityObserver_=null},
unobserve_:function(){RJE(this,this.visibilityObserver)},
markDirtyVisibilityObserver:function(){this.localVisibilityObserver_&&this.configureVisibilityObserver_()},
getVisibilityObserverForChild:function(){return this.visibilityObserverForChild_?this.visibilityObserverForChild_:this.localVisibilityObserver_},
get visibilityObserver(){if(this.localVisibilityObserver_)return this.localVisibilityObserver_;var a=_.dJ(this.parentNode,function(I){var J,r=(J=I.polymerController)!=null?J:I;return!!r.getVisibilityObserverForChild&&r.getVisibilityObserverForChild()},!0);
if(a){var z;this.localVisibilityObserver_=((z=a.polymerController)!=null?z:a).getVisibilityObserverForChild()}else PMi||(PMi=G4d()),this.localVisibilityObserver_=PMi;return this.localVisibilityObserver_},visibilityCallback:function(a){a?this.onVisible():this.onHidden()},
onVisible:function(){},
onHidden:function(){},
onPrescanVisible:function(){},
shouldSkipLogging:function(){}};
_.K("kevlar_use_vimio_behavior")||(cw={});cw&&!_.K("kevlar_use_vimio_behavior")&&(delete cw.attached,delete cw.detached);_.r9X.YtVisibilityObserverBehavior=[cw];var ZFl={};ZFl.YtVisualElementBehavior=[_.r9X.YtVisibilityObserverBehavior,{properties:{observeVisibleOption:{type:String,value:"observe_multiple"},observeHiddenOption:{type:String,value:"observe_multiple"},visualElement:Object},onVisible:function(){if(_.K("kevlar_use_vimio_behavior")&&this.onShow)this.onShow();if(!_.K("kevlar_vimio_use_shared_monitor")&&!this.shouldSkipLogging()){var a=this.getScreenLayer&&this.getScreenLayer(),z=this.getVisibilityLogger();z&&z.reportShown(this,void 0,a)}},
onHidden:function(){if(_.K("kevlar_use_vimio_behavior")&&this.onHide)this.onHide();if(!_.K("kevlar_vimio_use_shared_monitor")){var a=this.getScreenLayer&&this.getScreenLayer(),z=this.getVisibilityLogger();z&&z.reportHidden(this,void 0,a)}},
getVisibilityLogger:function(){return _.K("kevlar_use_vimio_behavior")?_.sg():null},
shouldSkipLogging:function(){if(_.Xw("INNERTUBE_CLIENT_NAME")!=="WEB"||!this.data)return!1;var a=this.getParentRenderer&&this.getParentRenderer();if(!a)return!1;var z,I=(z=a.polymerController)!=null?z:a;if(!I.data)return!1;a=this.data.trackingParams;a=this.data.loggingDirectives?this.data.loggingDirectives.trackingParams:a;var J;z=(J=I.data)==null?void 0:J.trackingParams;var r,P;z=((r=I.data)==null?0:r.loggingDirectives)?(P=I.data)==null?void 0:P.loggingDirectives.trackingParams:z;return a&&z&&a===
z}}];var kU1=new Map,QX;var xWO=function(a){this.layer=a},EJ=function(a){return a.layer!==void 0?a.layer:a.parent?EJ(a.parent):a.layer=0};var aCx;_.k={};aCx=0;_.k.YtRendererBehavior=[_.Ms.YtComponentBehavior,ZFl.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_:_.K("kevlar_use_vimio_behavior"),created:function(){this.useVimio_||(this.childCache_=new Set)},
detached:function(){if(this.monitorScroll){var a,z;(z=(a=this.monitorScrollElement)!=null?a:this.hostElement)==null||z.removeEventListener("scroll",_.BK(this,this.onScroll))}this.parentComponent&&(this.parentComponent.childCache_&&this.parentComponent.childCache_.delete(this.hostElement),this.parentComponent=null);this.useVimio_||this.markDirty();m4p(this.hostElement);smw(_.Gc(),this.hostElement);cA.delete(this.hostElement)},
registerRenderer:function(a){var z;((z=a.polymerController)!=null?z:a).parentComponent=this.hostElement;this.useVimio_||(this.childCache_.add(a),this.markDirty())},
unregisterRenderer_:function(a){this.useVimio_||(this.childCache_.delete(a),this.markDirty())},
attached:function(){var a=this,z=this.getParentRenderer();if(z){var I,J,r;(J=(I=(r=z.polymerController)!=null?r:z).registerRenderer)==null||J.call(I,this.hostElement)}if(!this.useVimio_&&this.monitorScroll){var P,N;(N=(P=this.monitorScrollElement)!=null?P:this.hostElement)==null||N.addEventListener("scroll",_.BK(this,this.onScroll))}_.GW.addJob(function(){MyG(a.hostElement)},8);
I=new xWO(this.screenLayer||void 0);(z=cA.get(z))&&z.layerNode&&(I.parent=z.layerNode);z={};GsM(this.hostElement,(z.isRenderer=!0,z.layerNode=I,z[vm1]=this.data,z))},
getParentRenderer:function(){for(var a=this.hostElement.parentNode,z,I;a&&((z=cA.get(a))==null||!z.isRenderer)&&!((I=a.polymerController)!=null?I:a).isRenderer_;)a=a.parentNode||a.host;return a},
ytRendererBehaviorDataObserver_:function(){if(this.data){this.wasVisible=!1;_.K("kevlar_use_vimio_behavior")&&this.markDirtyVisibilityObserver();_.TZ("ADD_SCRAPER_ATTRIBUTES")&&this.data.trackingParams&&(this.hostElement.dataset.ved=this.data.trackingParams);if(_.K("debug_web_ve_data")&&this.data.trackingParams){var a="";try{a=atob(this.data.trackingParams.replace(/-/g,"+").replace(/_/g,"/"))}catch(I){_.Gx(I)}if(a){var z=JWO(a,1);z!==void 0&&(this.hostElement.dataset.veIndex=String(z));a=JWO(a,2);
a!==void 0&&(this.hostElement.dataset.ve=String(a))}}this.veFromLoggingDirective_&&(this.dataElement=this.clientYouTubeData=this.veType=this.visualElement=void 0,this.veFromLoggingDirective_=!1);!this.visualElement&&this.data.loggingDirectives&&this.data.loggingDirectives.clientVeSpec&&this.data.loggingDirectives.clientVeSpec.uiType&&(this.veType=this.data.loggingDirectives.clientVeSpec.uiType,this.clientYouTubeData=this.data.loggingDirectives.clientVeSpec.clientYoutubeData,_.K("debug_web_ve_data")&&
(this.hostElement.dataset.ve=String(this.veType)),this.data.loggingDirectives.trackingParams&&(this.dataElement=_.VX(this.data.loggingDirectives.trackingParams)),this.visualElement=_.nw(_.Kw(),this)||void 0,this.veFromLoggingDirective_=!0)}},
ytRendererBehaviorTargetIdObserver_:function(){if(this.data&&this.data.targetId){var a=this.data.targetId;_.KaG(_.Gc(),a,this.hostElement)}else smw(_.Gc(),this.hostElement)},
onScroll:function(){var a=Date.now();a-this.lastHandledScroll_<50||(this.lastHandledScroll_=a,this.markDirty())},
markDirty:function(){_.K("kevlar_use_vimio_behavior")?this.markDirtyVisibilityObserver():jC0(this.hostElement)},
getScreenLayer:function(){if(this.screenLayer)return this.screenLayer;var a=this.getParentRenderer();if(a&&(a=cA.get(a))&&a.layerNode)return EJ(a.layerNode)},
invalidate:function(){this.markDirty();this.wasPrescan=this.wasVisible=!1},
getNodes:function(){return this.childCache_?[].concat(_.ih(this.childCache_)):[]},
impressionLog:function(){if(this.data&&this.data.impressionEndpoints)for(var a=0;a<this.data.impressionEndpoints.length;a++)this.sendImpression(this.data.impressionEndpoints[a]);else this.data&&this.data.impressionEndpoint&&this.sendImpression(this.data.impressionEndpoint)},
sendImpression:function(a){a.clickTrackingParams&&delete a.clickTrackingParams;var z,I;(a==null?0:(z=a.commandMetadata)==null?0:(I=z.webCommandMetadata)==null?0:I.sendPost)?_.N$(this.hostElement,[a,{impression:!0}]):_.tR(this.hostElement,[a],this.hostElement)},
logExplicitClick:function(a){var z=_.TX(this.getScreenLayer());if(z){var I,J=(I=a.polymerController)!=null?I:a;a=J.visualElement;J=J.trackingParams||J.clickTrackingParams;!a&&J&&(a=_.VX(J));a&&_.ys(z,a)}}}];var CMw={},Yo=function(){return _.nM.apply(this,arguments)||this};
_.b(Yo,_.nM);Yo.prototype.onPdgItemBehaviorClick=function(){this.data&&this.ytRendererBehavior.logExplicitClick(this.data)};
Yo.prototype.onPdgItemBehaviorClick=Yo.prototype.onPdgItemBehaviorClick;_.L([_.Q(_.k.YtRendererBehavior),_.p("design:type",Object)],Yo.prototype,"ytRendererBehavior",void 0);_.L([_.x(),_.p("design:type",Object)],Yo.prototype,"data",void 0);_.L([_.gz("click"),_.p("design:type",Function),_.p("design:paramtypes",[Event]),_.p("design:returntype")],Yo.prototype,"onPdgItemBehaviorClick",null);_.L([_.KM()],Yo);CMw.YtPdgLiveChatItemBehavior=[Yo.prototype,_.k.YtRendererBehavior];var N6O;var tyG;_.qs={};_.qs.YtVisibilityBehavior={_noAccessors:!0,properties:{disablePrescanVisibility:Boolean,prescanHeight:{type:Number,reflectToAttribute:!0}},onShow:function(){if(this.onShow_)this.onShow_()}};var eP=function(){var a=jl.apply(this,arguments)||this;a.switchTemplateAtRegistration=!1;return a};
_.b(eP,jl);eP.prototype.ready=function(){this.templatingFn&&(this.switchTemplateAtRegistration||rd$(this),_.GyG(this,"doRender"),this.doRender())};
eP.prototype.debounceRender=function(){this.templatingFn&&_.pM(this,"doRender",this.doRender)};
eP.prototype.doRender=function(){this.templatingFn?this.templatingFn():_.Gx(Error("$g"))};
eP.prototype.experimentalTemplatingInUse=function(){return!!this.templatingFn};
_.L([ATp()],eP);var uRf=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:\/?#]*(?:[\/?#]|$))/i,aT={},NxG=(aT[1]={filterString:null,isUnwrappable:null,unwrap:null},aT[2]={filterString:function(a,z,I){return tE(I)},
isUnwrappable:function(a){return a instanceof Dx},
unwrap:function(a){return L4(a)}},aT[3]={filterString:function(a,z,I){return uRf.test(I)?I:$P.toString()},
isUnwrappable:function(a){return Su(a)},
unwrap:function(a){return _.ij(a)}},aT[4]={filterString:function(){return $P.toString()},
isUnwrappable:function(a){return a instanceof FG},
unwrap:function(a){return _.bj(a).toString()}},aT[5]={filterString:function(a,z,I){return I},
isUnwrappable:function(a){return typeof a==="string"},
unwrap:function(a){return a.toString()}},aT[7]={filterString:function(){return" /*zClosurez*/ "},
isUnwrappable:function(a){return a instanceof _.yI},
unwrap:function(a){return ryE(a)}},aT[8]={filterString:function(a,z,I){I=String(I).toLowerCase();
return PaG(a,z,I)?I:"zClosurez"},
isUnwrappable:null,unwrap:null},aT[10]={filterString:null,isUnwrappable:null,unwrap:null},aT);eF[Te["default"]]=uaM;var E61=[];(function(){var a=y3;y3=function(z){a==null||a(z);vl(function(){for(var I=0;I<z.length;I++)BxM(z[I])})}})();var E1i=function(){var a=_.nM.apply(this,arguments)||this;a.hasUnmounted=!1;return a};
_.b(E1i,_.nM);_.Z=E1i.prototype;_.Z.beforeRegister=function(){var a=this.doIdomRender;this.templatingFn?_.Gx(Error("Zg")):(this.templatingFn=a,this.switchTemplateAtRegistration=!0,C5$(this))};
_.Z.attached=function(){};
_.Z.detached=function(){BxM(this.hostElement)};
_.Z.renderIdom=function(){throw Error("bh");};
_.Z.doIdomRender=function(){var a=this;qNp(this.hostElement,function(){a.renderIdom()})};
_.L([_.KM()],E1i);var B61=[eP.prototype,E1i.prototype];var g1j,OFw=function(){return g1j!==void 0?g1j:g1j=document.createElement("template")};
document.head.appendChild(OFw().content);var fbO;var A9X,sPG=function(){return A9X!==void 0?A9X:A9X=document.createElement("template")};
document.head.appendChild(sPG().content);var n1e;var Kew=document.head,Few=Kew.appendChild,HFe;if(n1e===void 0){var bFi=document.createElement("template");_.V(bFi,"\x3c!--css-build:shady--\x3e");bFi.content.insertBefore(sPG().content.cloneNode(!0),bFi.content.firstChild);n1e=bFi}HFe=n1e;Few.call(Kew,HFe.content);var hJl,VyI=function(){return hJl!==void 0?hJl:hJl=document.createElement("template")};
document.head.appendChild(VyI().content);var QPX;var Spi=document.head,iFI=Spi.appendChild,x4i;if(QPX===void 0){var v1X=document.createElement("template");_.V(v1X,"\x3c!--css-build:shady--\x3e");v1X.content.insertBefore(VyI().content.cloneNode(!0),v1X.content.firstChild);QPX=v1X}x4i=QPX;iFI.call(Spi,x4i.content);var GUj=document.head,$4E=GUj.appendChild,X51;if(fbO===void 0){var T6j=document.createElement("template");_.V(T6j,"\x3c!--css-build:shady--\x3e");T6j.content.insertBefore(OFw().content.cloneNode(!0),T6j.content.firstChild);fbO=T6j}X51=fbO;$4E.call(GUj,X51.content);var d41,Wej=function(){return d41!==void 0?d41:d41=document.createElement("template")};
document.head.appendChild(Wej().content);var o1i;_.kN=new _.I4("DARK_THEME_TOKEN");var zf1=new _.jv("accessibilityProperties");var jeG=new _.jv("layoutProperties");var IQi=new _.jv("imageType");var U4w={};if("ytAttributedStringLinkHoverColor"in U4w)throw Error("eh`ytAttributedStringLinkHoverColor");(function(a,z){U4w[a]="value"in z&&"unit"in z?n60(a,z):function(I){try{return z(I)}catch(J){throw Error("ch`"+a+"`"+J.message);}}})("ytAttributedStringLinkHoverColor",{value:"unset !stv-no-inline",
unit:"str"});var D4o=function(a){var z=this;this.holdTime=a===void 0?500:a;this.longPressTimeout=NaN;this.moveOccurred=this.longPressOccurred=!1;this.onlongpress=function(I){var J=new CustomEvent("LONG_PRESS"),r;(r=I.changedTouches[0].target)==null||r.dispatchEvent(J)};
this.ontouchstart=function(I){z.longPressTimeout=_.hE(_.GW,function(){z.onlongpress(I);z.longPressOccurred=!0},z.holdTime)};
this.ontouchmove=function(){_.GW.cancelJob(z.longPressTimeout);z.longPressTimeout=NaN;z.longPressOccurred=!1;z.moveOccurred=!0};
this.ontouchend=function(I){if(z.longPressTimeout&&!z.longPressOccurred&&!z.moveOccurred){var J;(J=I.changedTouches[0].target)==null||J.dispatchEvent(new Event("click"))}_.GW.cancelJob(z.longPressTimeout);z.longPressTimeout=NaN;z.longPressOccurred=!1;z.moveOccurred=!1}};var o6m=function(a,z){D4o.call(this,z);var I=this;this.callback=a;this.onlongpress=function(J){var r;(r=I.callback)==null||r.call(I,J)}};
_.b(o6m,D4o);var UB3=function(a,z){var I=Object.assign({},z);a=_.C(new Map([["ontouchstart",a.ontouchstart],["ontouchend",a.ontouchend],["ontouchmove",a.ontouchmove]]));for(var J=a.next(),r={};!J.done;r={eventName$jscomp$101:void 0,eventHandler$jscomp$1:void 0},J=a.next()){var P=_.C(J.value);J=P.next().value;P=P.next().value;r.eventName$jscomp$101=J;r.eventHandler$jscomp$1=P;z[r.eventName$jscomp$101]=function(N){return function(u){var E;(E=I[N.eventName$jscomp$101])==null||E.call(I,u);(0,N.eventHandler$jscomp$1)(u)}}(r)}};_.j6=new _.I4("COMMAND_HANDLER_TOKEN");var FvG=new _.jv("parallelCommand");var hl1=new _.jv("performOnceCommand");var bKp=new _.jv("serialCommand");var VRx=void 0;var RJw=function(){this.data=[];this.consumer=null};
RJw.prototype.push=function(a){this.consumer?this.consumer(a):this.data.push(a)};var qh={};_.CW(qh,void 0,"sgPmTd");_.CW(null,void 0,"jypsq");_.CW(null,void 0,"mWiOof");var D2p=new RJw;var XQG=[sEe,n7X,KdG,HGl,Fde,A1j,bGw,hIw];var elx=new _.jv("bracketTextDecorator");var mo=new _.jv("highlightTextDecorator");_.cl=new _.I4("APP_DIRECTION_TOKEN");Object.freeze&&Object.freeze(Object.create(null));var k6m=function(){},LeI;
(LeI=window.requestIdleCallback)==null||LeI.bind(window);var cdG={calledOnce:!1,state:"visible"},MRG={calledOnce:!1,state:"hidden"};var lbX=new _.I4("ICON_WIZ_COMPONENT_TOKEN");_.nS=_.ec(function(a){var z=a.icon;var I=a.active;var J=a.className;var r=a.style;var P=a.dataSelected;var N=a.dataDisabled;var u=a.role;var E=a.animateIcon;var O=a.themeOverride;var f=a.ariaHidden;var A=a.ariaExpanded;var n=a.ariaLabel;var F=a.tabindex;var h=a.id;var v=a.size;var d=a.iconFilter;var W=a.onKeydown;return _.B(_.g,{cond:z,then:function(){var l=_.ab().resolve(lbX);return _.B(l,{icon:z,dataSelected:P,dataDisabled:N,animateIcon:E,themeOverride:O,ariaExpanded:A,tabindex:F,id:h,active:I,
size:v,role:u,className:J,ariaHidden:f,ariaLabel:n,style:function(){return r!=null&&r()||v==null||!v()?r==null?void 0:r():"width: "+(v==null?void 0:v())+"px;height: "+((v==null?void 0:v())+"px;")},
iconFilter:d,onKeydown:W})}})},"b");
_.nS.idomCompat={callbacks:{onKeydown:!0}};var nCm=window.devicePixelRatio||1;var byp=new Map([["yt_outline_bag_black_24","bag"]]);var jY=function(a){var z=this;this.margin=.1;this.whenInViewportWithMargin=a;this.observationTargets=[];this.scanRequested=!1;window.addEventListener("touchmove",function(){z.requestScan()});
window.addEventListener("touchend",function(){z.requestScan()});
window.addEventListener("updateui",function(){z.requestScan()});
var I=new _.kc((0,_.HW)(this.requestScan,this),100);window.addEventListener("scroll",function(){I.fire()},!0);
window.addEventListener("resize",(0,_.HW)(this.requestScan,this));window.addEventListener("state-navigatestart",function(){z.observationTargets=[]});
window.addEventListener("state-navigateend",(0,_.HW)(this.requestScan,this))};
jY.prototype.observe=function(a){this.observationTargets.includes(a)||this.observationTargets.push(a)};
jY.prototype.unobserve=function(a){this.observationTargets=this.observationTargets.filter(function(z){return z!==a})};
jY.prototype.requestScan=function(){var a=this;this.scanRequested||(vl(function(){p5O(a)}),this.scanRequested=!0)};
var p5O=function(a){var z=(1+a.margin)*(document.documentElement.clientHeight||window.innerHeight);a.observationTargets=a.observationTargets.filter(function(I){var J=I.getBoundingClientRect();(J=z>J.top&&!!J.height)&&a.whenInViewportWithMargin(I);return!J&&I.parentNode});
a.scanRequested=!1};
jY.prototype.disconnect=function(){this.observationTargets=[]};var w5X,y9l;w5X=_.C(_.CW(iyO(),void 0,"O3X2wd"));_.m4e=w5X.next().value;y9l=w5X.next().value;window.addEventListener("resize",function(){y9l(iyO())});var kUo={landscape:"(min-width: 931px) and (orientation: landscape)",portrait:"(min-width: 550px) and (orientation: portrait)"},Myw=void 0,c9v=window.innerWidth,YpO=window.innerHeight;window.addEventListener("resize",function(){Myw=void 0});var qpw;if("IntersectionObserver"in window)qpw=G_$();else{if(Myw===void 0){var eJ1;eJ1="matchMedia"in window?window.matchMedia(kUo.landscape+","+kUo.portrait).matches:void 0;Myw=eJ1!==void 0?eJ1:c9v>=930&&YpO>=550||c9v>=550&&YpO>=930}qpw=Myw?{observe:function(a){vl(function(){var z;(z=a.onViewportEntered)==null||z.call(a)})},
unobserve:function(){}}:new jY(function(a){vl(function(){var z;
(z=a.onViewportEntered)==null||z.call(a)})})}var xGx=qpw;var aCi=_.ec(function(a){var z=!1,I=_.Mm("img",function(J){_.V3(function(){z=!0;J.onload=null})});
_.h2(function(){var J,r=(J=a.data)==null?void 0:J.call(a),P,N=(P=a.getSrc)==null?void 0:P.call(a).cb,u;J=(u=a.config)==null?void 0:u.call(a);if(u=I.value)if(P=function(O,f){if(!z)return N?N(O,f):O},Tm$(u,J),_.K("web_image_dont_reload_same_src")&&X1O(u,r,P))_.K("web_image_dont_reload_same_src_simulate_load")&&u.dispatchEvent(new CustomEvent("load",{bubbles:!1,
cancelable:!1,detail:{message:"Simulating load event for already loaded image"}}));else{var E;$Gi(u,r||null,P,J,(E=a.lazy)==null?void 0:E.call(a))}},"v0I2p");
return _.B("img",{el:I})},"c");
aCi.idomCompat=!0;_.qp=_.ec(function(a){var z=function(){var I,J=a.data(),r,P,N,u,E,O,f,A,n,F,h,v,d,W,l,q,m,M,y,e,Bp,Em,nG,bG,Hp,LG,oE,Pe,TJ;var Be={contentMode:(r=a.contentMode)==null?void 0:r.call(a),loadedClass:(P=a.loadedClass)==null?void 0:P.call(a),isPreloaded:(N=a.isPreloaded)==null?void 0:N.call(a),notifyOnLoaded:(u=a.notifyOnLoaded)==null?void 0:u.call(a),notifyOnUnloaded:(E=a.notifyOnUnloaded)==null?void 0:E.call(a),preferredThumbnail:(O=a.preferredThumbnail)==null?void 0:O.call(a),preserveHeight:(f=a.preserveHeight)==
null?void 0:f.call(a),preserveWidth:(A=a.preserveWidth)==null?void 0:A.call(a),objectPosition:(n=a.objectPosition)==null?void 0:n.call(a),targetWidth:(F=a.targetWidth)==null?void 0:F.call(a),targetHeight:(h=a.targetHeight)==null?void 0:h.call(a),shouldShowPlaceholder:(v=a.shouldShowPlaceholder)==null?void 0:v.call(a),useWidth:(d=a.useWidth)==null?void 0:d.call(a),isToggled:(W=a.isToggled)==null?void 0:W.call(a),alt:(l=a.alt)==null?void 0:l.call(a),className:(q=a.className)==null?void 0:q.call(a),
onerror:a.onerror,onload:a.onload,style$:((m=a.style$)==null?void 0:m.call(a))||((M=a.style)==null?void 0:M.call(a)),color:(y=a.color)==null?void 0:y.call(a),width:(e=a.width)==null?void 0:e.call(a),height:(Bp=a.height)==null?void 0:Bp.call(a),"aria-hidden$":(Pe=(Em=a["aria-hidden$"])==null?void 0:Em.call(a))!=null?Pe:(nG=a.ariaHidden)==null?void 0:nG.call(a),draggable:(bG=a.draggable)==null?void 0:bG.call(a),"data-disabled$":(TJ=(Hp=a["data-disabled$"])==null?void 0:Hp.call(a))!=null?TJ:(LG=a.dataDisabled)==
null?void 0:LG.call(a),size:(oE=a.size)==null?void 0:oE.call(a)};return oC7(J,Be,(I=a.hideOn404)==null?void 0:I.call(a))};
return _.B(_.Fw,null,_.B(_.n3,{when:function(){var I;return((I=z())==null?void 0:I.type)==="image"}},function(){return _.B(aCi,{data:function(){return z().image},
getSrc:{cb:function(I,J){var r=z().image.sources,P=z().config.isPreloaded,N=z().config.useWidth,u=z().config.targetWidth,E=z().config.targetHeight,O=z().config.preferredThumbnail;return _.KxM(J,r,P,N,u,E,O)||""}},
config:function(){var I=z().config,J;for(J in I)I[J]===void 0&&delete I[J];return I},
lazy:a.renderLazy})}),_.B(_.n3,{when:function(){var I;
return((I=z())==null?void 0:I.type)==="icon"}},function(){return _.B(_.nS,{icon:function(){return z().iconName},
role:function(){return z().config.role},
className:function(){return z().config.className},
style:function(){return z().config.style$+";width: "+(z().config.width+"px;height: ")+(z().config.height+"px;color: ")+(z().config.color+";")},
ariaLabel:function(){return z().config["aria-label$"]},
ariaHidden:function(){return z().config["aria-hidden$"]},
dataDisabled:function(){return z().config["data-disabled$"]},
active:function(){return z().config.isToggled},
size:function(){return z().config.size}})}))},"d");
_.qp.idomCompat={callbacks:{callback:!0,onerror:!0,onload:!0}};var jC1=function(a){return function(z){return _.B(Oc3,null,function(){var I=z.data(),J=_.SJ(z.config);return _.B(Y0,null,function(){return void a(I,J)})})}}(lQ0),RfE=_.ec(function(a){var z=function(J){var r,P=_.a5(function(n){r=Q3(function(){for(var F=_.C(f()),h=F.next();!h.done;h=F.next()){h=p1O(h.value);
h=typeof h==="string"?document.createTextNode(h):h;if(!(h instanceof Node)){F=new _.Fn("Part is not a node",h,typeof h);_.Gx(F);break}n.appendChild(h)}})}),N=jk(function(){return rFG(J())},{isEqual:DGd}),u=_.Yi(a.config),E=function(){var n,F=N();
return!((n=u())==null||!n.ariaLabel)||!(F.commandRuns&&F.commandRuns.length!==0||F.paragraphStyleRuns&&F.paragraphStyleRuns.length!==0)},O=jk(u,{isEqual:mGp}),f=function(){var n=JFp(N(),O());
Zyd(n,O());return N().content?Bmx(N().content,n).parts:[]},A=!0;
_.h2(function(){N();O();if(A)A=!1;else{var n=f();Promise.resolve().then(function(){var F=P.value;if(F){F.innerText="";var h;(h=r)==null||h();r=_.b1(F,function(){return _.B(w1d,{parts:n})})}})}},"YJG4lf");
return _.B("span",{el:P,class:function(){return N()&&pQx(N(),u())},
dir:function(){var n;return((n=u())==null?0:n.userInput)?"auto":void 0},
"aria-label":function(){var n;return E()?(n=u())==null?void 0:n.ariaLabel:void 0},
role:function(){return E()?"text":void 0}})},I;
return((I=a.config)==null?0:I.renderedFromFormattedString)?z(a.text):_.B(_.g,{cond:a.text,then:z})},"e");
RfE.idomCompat=!0;_.xs=_.ec(function(a){var z=_.Yi(a.text),I=yFp(a);a.renderedFromFormattedString!==void 0&&(I.renderedFromFormattedString=!0);return _.K("attr_string_reactive")?_.B(RfE,{text:z,config:I}):_.B(_.g,{cond:function(){var J;return z()&&((J=rFG(z()))==null?void 0:J.content)},
then:function(){return _.B(jC1,{data:a.text,config:I})},
debugInstance:"Apcuac"})},"f");
_.xs.idomCompat=!0;var Mw0=function(a,z,I){z=z===void 0?"unknown":z;I=I===void 0?{}:I;_.Fn.call(this,a+" ("+z+")",Object.assign({},{name:"YtWcwError",tagName:z},I));Object.setPrototypeOf(this,this.constructor.prototype)};
_.b(Mw0,_.Fn);_.jSp=new WeakMap;_.aMM=!1;var ef1,z4m,qvE;_.zl=Symbol("gh");_.I5=Symbol("hh");ef1=Symbol("ih");z4m=new Set(Object.getOwnPropertyNames(Element.prototype));qvE=Symbol("jh");var zlf=_.ec(function(a){return _.B("yt-attributed-string",{"aria-label":a.ariaLabel,hidden:a.hidden,id:a.id,class:a.className,"force-default-style":a.forceDefaultStyle},_.B(_.xs,{text:a.data,ariaLabel:a.ariaLabel,ellipsisTruncate:a.ellipsisTruncate,isOverlay:a.isOverlay,linkInheritColor:a.linkInheritColor,noPreWrap:a.noPreWrap,noWrap:a.noWrap,userInput:a.userInput,noEndpoints:a.noEndpoints,headerRuns:a.headerRuns,isHeadline:a.isHeadline}))},"g");
_.K("web_wiz_attributed_string")&&_.Jf(zlf,"yt-attributed-string",{props:{ariaHidden:_.zl,ariaLabel:_.zl,className:_.zl,ellipsisTruncate:_.zl,isOverlay:_.zl,linkInheritColor:_.zl,noEndpoints:_.zl,noStyleRuns:_.zl,noLinkColor:_.zl,noPreWrap:_.zl,noWrap:_.zl,skipOnClick:_.zl,userInput:_.zl,headerRuns:_.zl,isHeadline:_.zl,id:_.zl,data:_.zl,hidden:_.zl,forceDefaultStyle:_.zl,text:_.I5,stopPropagation:_.I5,disableUpgrade:_.I5,disable:_.I5,slot:_.I5}});var IT=function(){return _.G.apply(this,arguments)||this};
_.b(IT,_.G);IT.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},lQ0(this.data,this.config))};
_.L([_.Q(B61),_.p("design:type",Object)],IT.prototype,"ytIdomTemplatingBehavior",void 0);_.L([_.x(),_.p("design:type",Object)],IT.prototype,"data",void 0);_.L([_.x({reflectToAttribute:!0}),_.p("design:type",Object)],IT.prototype,"ariaLabel",void 0);_.L([_.x(),_.p("design:type",Boolean)],IT.prototype,"disable",void 0);_.L([_.x(),_.p("design:type",Boolean)],IT.prototype,"ellipsisTruncate",void 0);_.L([_.x(),_.p("design:type",Boolean)],IT.prototype,"isOverlay",void 0);
_.L([_.x(),_.p("design:type",Boolean)],IT.prototype,"linkInheritColor",void 0);_.L([_.x(),_.p("design:type",Boolean)],IT.prototype,"noPreWrap",void 0);_.L([_.x(),_.p("design:type",Boolean)],IT.prototype,"noWrap",void 0);_.L([_.x(),_.p("design:type",Boolean)],IT.prototype,"userInput",void 0);_.L([_.x(),_.p("design:type",Boolean)],IT.prototype,"noEndpoints",void 0);_.L([_.x(),_.p("design:type",Array)],IT.prototype,"headerRuns",void 0);
_.L([_.dz({is:"yt-attributed-string",disableElementRegistration:!0})],IT);
_.K("web_wiz_attributed_string")||_.D(IT,"yt-attributed-string",function(){if(o1i===void 0){var a=document.createElement("template");_.V(a,"\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-attributed-string--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.web_interface_library.core.yt_attributed_string.yt.attributed.string.css.js--\x3e");a.content.insertBefore(_.w().content.cloneNode(!0),a.content.firstChild);
a.content.insertBefore(Wej().content.cloneNode(!0),a.content.firstChild);o1i=a}a=o1i;return a},{mode:2});var IC1,JdJ,NA7;IC1=function(){this.firstThumbnailLoaded=!1};
_.rdf=function(){JdJ||(JdJ=new IC1);return JdJ};
NA7=function(a){var z=_.rdf();z.firstThumbnailLoaded||(z.firstThumbnailLoaded=!0,_.Xz("ftl",a))};
IC1.prototype.reset=function(){this.firstThumbnailLoaded=!1};var JOm=0,CW1=new WeakMap,PWi=0,Zt=new Set;var P5w,ZKe=function(){return P5w!==void 0?P5w:P5w=document.createElement("template")};
document.head.appendChild(ZKe().content);var C5f;var BAM,OqG,Jt;_.tf=_.IE.caches;Jt=function(){};
Jt.prototype.open=function(a){return _.tf.open(Nxw(a))};
Jt.prototype.has=function(a){return _.tf.has(Nxw(a))};
Jt.prototype.delete=function(a){return _.tf.delete(Nxw(a))};
Jt.prototype.match=function(a,z){var I=this,J,r,P,N,u,E;return _.t(function(O){switch(O.nextAddress){case 1:return O.yield(I.keys(),2);case 2:J=O.yieldResult,r=_.C(J),P=r.next();case 3:if(P.done){O.jumpTo(5);break}N=P.value;return O.yield(I.open(N),6);case 6:return u=O.yieldResult,O.yield(u.match(a,z),7);case 7:if(E=O.yieldResult)return O.return(E);P=r.next();O.jumpTo(3);break;case 5:return O.return()}})};
var fMi=function(){};
_.b(fMi,Jt);var Nxw=function(a){if(a.includes(":"))throw Error("mh`"+a);return a+":"+_.n1("CacheStorage get")};
fMi.prototype.keys=function(){var a,z,I,J,r,P,N,u,E;return _.t(function(O){if(O.nextAddress==1)return a=[],z=_.n1("CacheStorage keys"),O.yield(_.tf.keys(),2);I=O.yieldResult;J=_.C(I);for(r=J.next();!r.done;r=J.next())P=r.value,N=_.EDx(P),u=N.originalName,E=N.datasyncId,E===z&&a.push(u);return O.return(a)})};var r7=function(){var a=_.G.apply(this,arguments)||this;a.objectURL=null;a.loadTime=Infinity;return a};
_.b(r7,_.G);_.Z=r7.prototype;_.Z.renderIdom=function(){uix(this.hostElement);if(this.data){if(!this.width&&!this.height)throw Error("ph");this.setConfig();this.config&&dGG(this.data,this.config,void 0,this.shouldRenderLazy)}};
_.Z.objectFitToContentMode=function(a){switch(a){case "CONTAIN":return"CONTENT_MODE_SCALE_ASPECT_FIT";case "FILL":return"CONTENT_MODE_SCALE_TO_FILL";default:return"CONTENT_MODE_SCALE_ASPECT_FILL"}};
_.Z.logThumbnailFailureVe=function(){var a=_.uq(197497);_.Aq(_.Kw(),a);var z=_.TX();z&&a&&z&&_.we(z,[a])};
_.Z.loadImageFromCacheIfExists=function(a){var z=this,I=a.target;(I==null?0:I.src)&&sSm(I.src).then(function(J){z.objectURL=_.TN(J).toString();z.setSrc(I,z.objectURL)}).catch(function(){})};
_.Z.onError=function(a){var z=this;if(_.K("web_use_cache_for_image_fallback")){var I=a.target;I&&sSm(I.src).then(function(J){z.objectURL=_.TN(J).toString();z.setSrc(I,z.objectURL)}).catch(function(){_.K("kevlar_woffle_log_thumbnail_failure_ve")&&z.logThumbnailFailureVe();
_.K("kevlar_woffle_fallback_image")&&z.setSrc(I,"data:image/gif;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAQAAAC1HAwCAAAAC0lEQVR42mN8XA8AAksBZG7LpHYAAAAASUVORK5CYII=")})}else this.revokeObjectURL()};
_.Z.revokeObjectURL=function(){this.objectURL&&(URL.revokeObjectURL(this.objectURL),this.objectURL=null)};
_.Z.setConfig=function(){var a=this;this.config={alt:this.alt||"",contentMode:this.objectFitToContentMode(this.objectFit),notifyOnLoaded:this.notifyOnLoaded,notifyOnUnloaded:this.notifyOnUnloaded,preferredThumbnail:this.preferredThumbnail,preserveHeight:this.preserveHeight,preserveWidth:this.preserveWidth,objectPosition:this.objectPosition,onload:function(z){a.loadImageFromCacheIfExists(z);a.revokeObjectURL();tAE(a.hostElement)},
onerror:function(z){a.onError(z)},
targetHeight:this.height,targetWidth:this.width,shouldShowPlaceholder:_.K("kevlar_thumbnail_bg"),useWidth:this.useWidth}};
_.Z.setSrc=function(a,z){z&&(a.src=z)};
_.L([_.Q(B61),_.p("design:type",Object)],r7.prototype,"ytIdomTemplatingBehavior",void 0);_.L([_.x(),_.p("design:type",Object)],r7.prototype,"data",void 0);_.L([_.x(),_.p("design:type",String)],r7.prototype,"alt",void 0);_.L([_.x(),_.p("design:type",Boolean)],r7.prototype,"ftlEligible",void 0);_.L([_.x(),_.p("design:type",Number)],r7.prototype,"height",void 0);_.L([_.x(),_.p("design:type",Boolean)],r7.prototype,"notifyOnLoaded",void 0);
_.L([_.x(),_.p("design:type",Boolean)],r7.prototype,"notifyOnUnloaded",void 0);_.L([_.x(),_.p("design:type",String)],r7.prototype,"objectFit",void 0);_.L([_.x(),_.p("design:type",String)],r7.prototype,"objectPosition",void 0);_.L([_.x(),_.p("design:type",String)],r7.prototype,"preferredThumbnail",void 0);_.L([_.x(),_.p("design:type",Boolean)],r7.prototype,"preserveHeight",void 0);_.L([_.x(),_.p("design:type",Boolean)],r7.prototype,"preserveWidth",void 0);
_.L([_.x({value:!0}),_.p("design:type",Boolean)],r7.prototype,"useWidth",void 0);_.L([_.x({value:function(){return!_.TZ("DISABLE_YT_IMG_DELAY_LOADING",!1)}}),
_.p("design:type",Boolean)],r7.prototype,"shouldRenderLazy",void 0);_.L([_.x(),_.p("design:type",Number)],r7.prototype,"width",void 0);_.L([_.dz({is:"yt-image",disableElementRegistration:!0})],r7);
_.D(r7,"yt-image",function(){if(C5f===void 0){var a=document.createElement("template");_.V(a,"\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-image--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.web_interface_library.core.yt_image.yt.image.css.js--\x3e");a.content.insertBefore(_.w().content.cloneNode(!0),a.content.firstChild);a.content.insertBefore(ZKe().content.cloneNode(!0),a.content.firstChild);
C5f=a}a=C5f;return a},{mode:2});var Pc=function(){return _.G.apply(this,arguments)||this};
_.b(Pc,_.G);Pc.prototype.onShow_=function(){if(this.data&&this.data.onVisibleCommand){var a=_.o0(this.data.onVisibleCommand);a&&this.ytComponentBehavior.resolveCommand(a)}};
_.L([_.Q(_.Ms.YtComponentBehavior),_.p("design:type",Object)],Pc.prototype,"ytComponentBehavior",void 0);_.L([_.Q(_.k.YtRendererBehavior),_.p("design:type",Object)],Pc.prototype,"ytRendererBehavior",void 0);_.L([_.Q(_.qs.YtVisibilityBehavior),_.p("design:type",Object)],Pc.prototype,"ytVisibilityBehavior",void 0);_.L([_.x(),_.p("design:type",Object)],Pc.prototype,"data",void 0);_.L([_.dz({disableElementRegistration:!0,is:"yt-bumper-user-edu-content-view-model"})],Pc);
_.D(Pc,"yt-bumper-user-edu-content-view-model",function(){if(tyG===void 0){var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-bumper-user-edu-content-view-model--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.pdg.yt_bumper_user_edu_content_view_model.yt.bumper.user.edu.content.view.model.css.js--\x3e<div id="bumper-content" class="style-scope yt-bumper-user-edu-content-view-model">\n  <yt-image id="icon" data="[[data.image]]" height="16" class="style-scope yt-bumper-user-edu-content-view-model"></yt-image>\n  <div id="message-block" class="style-scope yt-bumper-user-edu-content-view-model">\n    <yt-attributed-string id="message" data="[[data.text]]" class="style-scope yt-bumper-user-edu-content-view-model"></yt-attributed-string>\n  </div>\n</div>');
a.content.insertBefore(_.w().content.cloneNode(!0),a.content.firstChild);var z=a.content,I=z.insertBefore;N6O===void 0&&(N6O=document.createElement("template"));var J=N6O;I.call(z,J.content.cloneNode(!0),a.content.firstChild);tyG=a}a=tyG;return a},{mode:_.K("live_chat_enable_sink_wrapper")?2:0});var tRJ;var uaI,E6o=function(){if(uaI!==void 0)return uaI;var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-creator-goal-progress-flow-view-model--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.pdg.yt_creator_goal_progress_flow_view_model.yt.creator.goal.progress.flow.view.model.css.js--\x3e<div id="header" class="style-scope yt-creator-goal-progress-flow-view-model">\n  <div id="avatar-images" class="style-scope yt-creator-goal-progress-flow-view-model">\n    <yt-image id="creator-thumbnail" data="[[creatorGoalState.authorPhoto]]" height="60" preserve-height="" preserve-width="" width="60" class="style-scope yt-creator-goal-progress-flow-view-model"></yt-image>\n    <yt-image id="goal-icon" data="[[targetIconThemedImage]]" height="60" preserve-height="" preserve-width="" width="60" class="style-scope yt-creator-goal-progress-flow-view-model"></yt-image>\n  </div>\n  <div id="countdown-info" class="style-scope yt-creator-goal-progress-flow-view-model">\n    <yt-attributed-string id="goal-timer-description" data="[[creatorGoalState.goalHeadlineText]]" class="style-scope yt-creator-goal-progress-flow-view-model"></yt-attributed-string>\n    <template is="dom-if" if="[[shouldShowCountdown]]" class="style-scope yt-creator-goal-progress-flow-view-model">\n      <yt-countdown class-name="[[is]] countdown" target-timestamp="[[endTimestamp]]" class="style-scope yt-creator-goal-progress-flow-view-model"></yt-countdown>\n    </template>\n  </div>\n  <yt-attributed-string id="goal-subheader-info" data="[[creatorGoalState.goalSubheaderText]]" hidden="[[isGoalActive]]" class="style-scope yt-creator-goal-progress-flow-view-model"></yt-attributed-string>\n  <yt-image id="background-image" data="[[creatorGoalState.goalHeaderBackgroundImage]]" height="100" width="100" class="style-scope yt-creator-goal-progress-flow-view-model">\n  </yt-image>\n</div>\n<div id="content" class="style-scope yt-creator-goal-progress-flow-view-model">\n  <yt-attributed-string id="goal-target" data="[[creatorGoalState.goalTargetText]]" class="style-scope yt-creator-goal-progress-flow-view-model"></yt-attributed-string>\n  <yt-attributed-string id="goal-description" data="[[creatorGoalState.goalDescription]]" class="style-scope yt-creator-goal-progress-flow-view-model"></yt-attributed-string>\n  <div id="goal-progress-info" class="style-scope yt-creator-goal-progress-flow-view-model">\n    <yt-image id="sc-tier-image" data="[[creatorGoalState.superChatTierImage]]" height="32" preserve-height="" preserve-width="" width="32" class="style-scope yt-creator-goal-progress-flow-view-model"></yt-image>\n    <div id="goal-numbers" class="style-scope yt-creator-goal-progress-flow-view-model">\n      <div id="current-goal-number" class="style-scope yt-creator-goal-progress-flow-view-model">[[creatorGoalState.currentGoalCount]] </div>\n      <div id="goal-number-separator" class="style-scope yt-creator-goal-progress-flow-view-model">/ </div>\n      <div id="target-goal-number" class="style-scope yt-creator-goal-progress-flow-view-model"> [[creatorGoalState.totalGoalCount]]</div>\n    </div>\n    <div id="progress-bar-container" class="style-scope yt-creator-goal-progress-flow-view-model">\n      <div id="progress-bar-progress" class="style-scope yt-creator-goal-progress-flow-view-model">\n      </div>\n    </div>\n  </div>\n</div>\n<div id="footer" class="style-scope yt-creator-goal-progress-flow-view-model">\n  <div id="progress-button" class="style-scope yt-creator-goal-progress-flow-view-model"></div>\n</div>\n');
a.content.insertBefore(_.w().content.cloneNode(!0),a.content.firstChild);var z=a.content,I=z.insertBefore;tRJ===void 0&&(tRJ=document.createElement("template"));var J=tRJ;I.call(z,J.content.cloneNode(!0),a.content.firstChild);return uaI=a};var BxI;_.Zs={};BxI=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"]);_.Zs.YtTaskEmitterBehavior={created:function(){this.cachedProviderNode_=null},
detached:function(){this.cachedProviderNode_=null},
getTaskManager:function(){var a=this.getContext_();return a?a.getTaskManager():_.GW},
getContext_:function(){if(this.shouldUseTaskManager()){if(!this.cachedProviderNode_){var a=_.PA(this.hostElement,"yt-get-context-provider",{});a.detail&&a.detail.contextProvider?this.cachedProviderNode_=a.detail.contextProvider:this.hostElement.parentElement&&(this.cachedProviderNode_=this)}if(this.cachedProviderNode_&&this.cachedProviderNode_.getProvidedContext&&this.cachedProviderNode_.getProvidedContext())return this.cachedProviderNode_.getProvidedContext()}},
shouldUseTaskManager:function(){return BxI.has(this.hostElement.localName)},
getNetworkManager:function(){var a=this.getContext_();if(a)return a.getNetworkManager()}};var h4x,g6I,fCO,OKl;_.C_=function(a){var z=g6I.get(a);if(z&&(z=z.pop()))return OKl++,z;fCO++;try{var I=document.createElement(a)}catch(J){throw new _.Fn("ElementPool failed to create element",a,J.message);}return I};
h4x=function(a){var z=a.is;if(z){var I=g6I.get(z);I||(I=[],g6I.set(z,I));var J=_.Xw("ELEMENT_POOL_CONFIG")||{};I.length>=(J[z]!==void 0?J[z]:_.Xw("ELEMENT_POOL_DEFAULT_CAP",0))||I.push(a)}else _.Xd(new _.Fn("Element pool should only handle custom elements:",a.nodeName))};
g6I=new Map;fCO=0;OKl=0;var uJ=new WeakMap,bqM=new WeakMap;var sC1;_.NT=function(a,z,I){I=I===void 0?_.ig():I;this.JSC$13700_defaultPriority=a;this.signal=z;this.scheduler=I;this.nextJobDescriptor=0;this.JSC$13700_parkedJobs=[];this.scheduledJobs=new Map};
_.tt=function(a,z){if(z){var I=_.yT();a.signal&&!_.k3(I,a.signal)?(I.addListener(a.signal,function(){a.processSignal()}),a.JSC$13700_parkedJobs.push({job:z,
priority:void 0})):AdI(a,z)}};
sC1=function(a,z){if(z!==a.JSC$13700_defaultPriority){a.JSC$13700_defaultPriority=z;for(var I=_.C(a.scheduledJobs.values()),J=I.next();!J.done;J=I.next())J=J.value,a.scheduler.cancelJob(J.jobId),J.jobId=a.scheduler.addJob(J.jobWrapper,z)}};
_.NT.prototype.flushJobs=function(){sC1(this,10);this.processSignal()};
_.NT.prototype.cancel=function(){for(var a=_.C(this.scheduledJobs),z=a.next();!z.done;z=a.next()){var I=_.C(z.value);z=I.next().value;I=I.next().value;this.scheduler.cancelJob(I.jobId);this.scheduledJobs.delete(z)}this.JSC$13700_parkedJobs=[]};
_.NT.prototype.processSignal=function(){for(var a=_.C(this.JSC$13700_parkedJobs),z=a.next();!z.done;z=a.next())z=z.value,AdI(this,z.job,z.priority);this.JSC$13700_parkedJobs=[]};
var AdI=function(a,z,I){I=I||a.JSC$13700_defaultPriority;if(I===10)CS(z);else{var J=a.nextJobDescriptor++,r=function(){z();a.scheduledJobs.delete(J)},P=a.scheduler.addJob(r,I);
a.scheduledJobs.set(J,{jobWrapper:r,jobId:P,priority:I})}};_.IG(iqG);var xz$={propNames:[],synchronous:!1,enableUnsafeRenderOnNotifyPath:!1};A$O({beforeVisit:function(a){if(Pl.has(a.type)){var z;(z=a.props).idomKey!=null||(z.idomKey=a.type)}else a.type.TAG_NAME&&(Jj=a.type.TAG_NAME)},
afterRender:function(a,z){var I;Jj=(I=z==null?void 0:z.type)!=null?I:""},
didPatch:function(){Jj=""}});var n61;_.u4={};n61={"yt-live-chat-text-message-renderer":!0,"yt-live-chat-author-badge-renderer":!0};_.u4.YtRendererstamperBehavior=[_.Zs.YtTaskEmitterBehavior,{mappings:null,stampDom:null,rendererStamperLogger_:null,beforeRegister:function(){this.configureRendererStamper&&typeof this.configureRendererStamper==="function"&&(this.stampDom?this.stampDom=Object.assign({},this.stampDom,this.configureRendererStamper()):this.stampDom=this.configureRendererStamper());this.stampDom&&this.addStampDomObservers_()},
created:function(){this.deferredBindingTasks_=[];this.renderJobsMap_=Object.create(null);this.hasDataPath_=Object.create(null);this.stampDom&&this.addStampDomObserverFns_();this.telemetry_={};this.resetTelemetry_()},
resetTelemetry_:function(){this.telemetry_.create=0;this.telemetry_.reuse=0},
addStampDomObservers_:function(){if(this.useSignals)for(var a in this.stampDom){var z=this.stampDom[a];z&&z.id&&this.addReactiveSchema({type:"observe",method:{methodName:Kp1(z.id),args:[{type:"wildcard",path:a}]}})}else{(a=(this.constructor.generatedFrom||this).observers)||(a=[]);for(z in this.stampDom){var I=this.stampDom[z];I&&I.id&&a.push(Kp1(I.id)+"("+z+".*)")}this.constructor.generatedFrom.observers=a}},
addStampDomObserverFns_:function(){for(var a in this.stampDom){var z=this.stampDom[a];z.id?(this[Kp1(z.id)]=this.rendererStamperObserver_.bind(this,a,z.id),this.hasDataPath_[a]=!1):(z=new _.Fn("Bad rendererstamper config",this.is+":"+a),_.Gx(z))}},
rendererStamperObserver_:function(a,z,I){if(I.path==a){if(I.value===void 0&&!this.hasDataPath_[a])return;this.hasDataPath_[a]=I.value!==void 0}this.rendererStamperApplyChangeRecord_(a,z,I)},
rendererStamperApplyChangeRecord_:function(a,z,I){var J=this.renderJobsMap_[z],r=null;a==I.path?(I=I.value,_.lG(I)||(I=I===void 0||I===null?[]:[I]),a=this.stampDom[a],a.mapping&&(r=this.stampDomArray_.bind(this,I,z,a.mapping,a.reuseComponents,a.events,a.stamperStableList)),J&&J.cancel(),I=a.usePageScheduler?this.getTaskManager():void 0,J||a.initialRenderPriority==void 0)?a.renderPriority==void 0||J||(J=new _.NT(a.renderPriority,a.waitForSignal,I),this.renderJobsMap_[z]=J):(J=new _.NT(a.initialRenderPriority,
a.waitForSignal,I),this.renderJobsMap_[z]=J,r=function(P,N){P();sC1(N,10)}.bind(this,r,J)):r=a+".splices"==I.path?this.stampDomArraySplices_.bind(this,a,z,I.value):this.forwardRendererStamperChanges_.bind(this,a,z,I);
J?_.tt(J,r):r()},
forwardRendererStamperChanges_:function(a,z,I){var J=I.path.slice(a.length+1),r=this.getStampContainer_(z),P=J.indexOf("."),N=J.substring(0,P),u=!1,E=0,O=parseInt(N,0);if(N[0]=="#"){u=parseInt(N.substring(1),0);O=this.get(a);var f=this.get([a,N]);O[u]==f?E=u:E=O.indexOf(f);u=!0}else isNaN(O)||(E=O,u=!0);u&&(J=J.substring(N.length+1),P=J.indexOf("."));N=_.Q$(r).children[E];var A;if(r=(A=N==null?void 0:N.polymerController)!=null?A:N)J="data"+J.slice(P),typeof r.notifyPath!=="function"?_.Xd(new _.Fn("notifyPath missing",
this.is+": "+a+", "+z)):I.value?r.notifyPath(J,I.value):r.notifyPath(J)},
stampDomArraySplices_:function(a,z,I){if(I&&I.indexSplices){var J=this.getStampContainer_(z);if(J){for(var r=_.Q$(J),P=Hq0(this.stampDom[a].reuseComponents),N=I.indexSplices.length,u=0;u<N;u++){for(var E=I.indexSplices[u],O=r.children[E.index],f=E.removed.length;f>0;f--)O&&O.parentElement&&(_.Q$(O.parentElement).removeChild(O),P&&h4x(O),O=r.children[E.index]);f=this.stampDom[a].mapping;for(var A=E.index+E.addedCount,n=document.createDocumentFragment(),F=P,h=E.index;h<A;h++){var v=E.object[h],d=nDx(f,
v);if(d){var W=f[d];v=v[d];d=this.getComponentName_(W,v);var l=O?uJ.has(O):!1;F&&O&&O.is==d&&l?(d=O,this.telemetry_.reuse++,O=O.nextElementSibling):F&&O&&l?(d=this.createComponent_(W,v,P),l=_.Q$(O).nextElementSibling,r.insertBefore(d,l),QSG(this.is,r,O,P),O=l):(F=!1,d=this.createComponent_(W,v,P),n.appendChild(d));this.deferRenderStamperBinding_(d,W,v)}else W=new _.Fn("Unimplemented type",a,z,J.tagName,Object.keys(v)[0]),_.Gx(W)}r.insertBefore(n,O)}this.flushRenderStamperComponentBindings_();this.stampDom[a].events&&
_.PA(this.hostElement,"yt-rendererstamper-finished",{container:J})}else a=new _.Fn("Container object not found",z,this.hostElement?this.hostElement.is:""),_.Gx(a)}},
stampDomArray_:function(a,z,I,J,r,P){var N=this.getStampContainer_(z);if(N)if(z=_.Q$(N),J=Hq0(J),a){var u=0,E=0,O;if(P=P===void 0?_.TZ("STAMPER_STABLE_LIST",!1):P||!1)for(O=z.firstElementChild;O&&!uJ.has(O)&&a.length>E;){P=a[E];var f=nDx(I,P);if(f){if(this.getComponentName_(I[f],P[f])!=O.is){var A=this.createComponent_(I[f],P[f],J),n=_.Q$(O).nextElementSibling;n?z.insertBefore(A,n):z.appendChild(A);QSG(this.is,z,O,J);O=A}else this.telemetry_.reuse++;this.deferRenderStamperBinding_(O,I[f],P[f]);u++;
E++;O=_.Q$(O).nextElementSibling}else E++}SVi(this.is,z,u,J);u=O;if(a.length>E){P=document.createDocumentFragment();for(f=a.length;E<f;E++)if(A=a[E],n=nDx(I,A))O=this.createComponent_(I[n],A[n],J),this.deferRenderStamperBinding_(O,I[n],A[n]),P.appendChild(O);u&&_.Q$(u).parentNode&&O&&!uJ.has(O)?z.insertBefore(P,u):z.appendChild(P)}this.flushRenderStamperComponentBindings_();this.markDirty&&this.markDirty();r&&_.PA(this.hostElement,"yt-rendererstamper-finished",{container:N})}else SVi(this.is,z,0,
J);else a=new _.Fn("Container object not found",z,this.hostElement?this.hostElement.is:""),_.Gx(a)},
getStampContainer_:function(a){return this.$&&this.$[a]||_.PK(this.hostElement).querySelector("#"+a)},
getComponentName_:function(a,z){return typeof a==="string"?a:a.matcher?a.matcher.call(this,z):a.component},
createComponent_:function(a,z,I){a=this.getComponentName_(a,z);try{var J=ZA.has(a)||Pl.has(a);if(I&&!J){var r=_.C_(a);try{_.uK(r)}catch(P){I="Failed to clear styles for "+a+".",P.message&&(I+=" Original error: "+P.message),_.Xd(new _.Fn(I))}}else r=document.createElement(a)}catch(P){return r="YtRendererStamperBehavior failed to create "+a+".",P.message&&(r+=" Original description: "+P.message),P.message="YtRendererStamperBehavior failed to create element",_.Tx(P,r),n61.hasOwnProperty(a)?_.Xd(P):_.Gx(P),
document.createElement("SPAN")}this.telemetry_.create++;return r},
deferRenderStamperBinding_:function(a,z,I){this.deferredBindingTasks_.push({component:a,typeOrConfig:z,data:I})},
flushRenderStamperComponentBindings_:function(){for(var a=0,z=this.deferredBindingTasks_.length;a<z;a++){var I=this.deferredBindingTasks_[a];if(!I)break;var J=void 0,r=void 0,P=void 0,N=void 0,u=I.component,E=I.typeOrConfig;I=I.data;var O=(N=u.polymerController)!=null?N:u;N=u.loggingStatus;try{N&&(N.isRendererStamper=!0);if(typeof E!=="string"){for(P in E.attributes)E.attributes[P]===!0?u.setAttribute(P,""):E.attributes[P]===!1?u.removeAttribute(P):u.setAttribute(P,E.attributes[P]);for(r in E.params)O[r]=
E.params[r],u!==O&&h3(u.localName,r,"PROPERTY_ACCESS_SET_EXTERNAL_DECLARATIVE");for(J in E.properties){var f=E.properties[J];if(f){var A=Fp0(f);O[J]=this.get(A);u!==O&&h3(u.localName,J,"PROPERTY_ACCESS_SET_EXTERNAL_DECLARATIVE");if(J==="on-tap"||J==="on-click"){var n=this.get(A);u.addEventListener("click",n);bqM.set(u,{property:J,listener:{type:"element",eventName:"click",handler:n}})}}else{var F=new _.Fn("Undefined property binding",J);_.Gx(F)}}}if(E.classListBinding){var h=Fp0(E.classListBinding),
v=h?this[h]:null;if(v)for(J=0;J<v.length;J++)_.CM(u,v[J],!0)}O.data=I}finally{N&&(N.isRendererStamper=!1)}if(J=uJ.get(u))u.hidden=!1,uJ.delete(u),_.GW.cancelJob(J)}this.deferredBindingTasks_.length=0}}];_.Jf(_.ec(function(a){function z(){I().seconds&&P(EoO({seconds:Number(I().seconds)-Date.now()/1E3}))}
var I=a.targetTimestamp;a=a.className;var J=_.C(_.CW("",void 0,"U1Q8Ae")),r=J.next().value,P=J.next().value;_.hD(function(){z();var N=setInterval(function(){z()},1E3);
_.V3(function(){clearInterval(N)})});
return _.B("yt-countdown",{class:_.B8("ytCountDownHost",a)},_.B("div",null,r))},"h"),"yt-countdown",{props:{targetTimestamp:_.zl,
className:_.I5}});_.ET=new _.I4("KEY_MANAGER_TOKEN");var vDi={click:"EVENT_SPAN_TYPE_CLICK",dblclick:"EVENT_SPAN_TYPE_DBLCLICK",mousedown:"EVENT_SPAN_TYPE_MOUSEDOWN",mouseup:"EVENT_SPAN_TYPE_MOUSEUP",mouseover:"EVENT_SPAN_TYPE_MOUSEOVER",mouseout:"EVENT_SPAN_TYPE_MOUSEOUT",mouseenter:"EVENT_SPAN_TYPE_MOUSEENTER",mouseleave:"EVENT_SPAN_TYPE_MOUSELEAVE",mousemove:"EVENT_SPAN_TYPE_MOUSEMOVE",contextmenu:"EVENT_SPAN_TYPE_CONTEXTMENU",keydown:"EVENT_SPAN_TYPE_KEYDOWN",keyup:"EVENT_SPAN_TYPE_KEYUP",keypress:"EVENT_SPAN_TYPE_KEYPRESS",touchstart:"EVENT_SPAN_TYPE_TOUCHSTART",
touchend:"EVENT_SPAN_TYPE_TOUCHEND",touchmove:"EVENT_SPAN_TYPE_TOUCHMOVE",touchcancel:"EVENT_SPAN_TYPE_TOUCHCANCEL",pointerdown:"EVENT_SPAN_TYPE_POINTERDOWN",pointerup:"EVENT_SPAN_TYPE_POINTERUP",pointermove:"EVENT_SPAN_TYPE_POINTERMOVE",pointerover:"EVENT_SPAN_TYPE_POINTEROVER",pointerout:"EVENT_SPAN_TYPE_POINTEROUT",pointerenter:"EVENT_SPAN_TYPE_POINTERENTER",pointerleave:"EVENT_SPAN_TYPE_POINTERLEAVE",pointercancel:"EVENT_SPAN_TYPE_POINTERCANCEL",gotpointercapture:"EVENT_SPAN_TYPE_GOTPOINTERCAPTURE",
lostpointercapture:"EVENT_SPAN_TYPE_LOSTPOINTERCAPTURE",submit:"EVENT_SPAN_TYPE_SUBMIT",change:"EVENT_SPAN_TYPE_CHANGE",input:"EVENT_SPAN_TYPE_INPUT",focus:"EVENT_SPAN_TYPE_FOCUS",blur:"EVENT_SPAN_TYPE_BLUR",reset:"EVENT_SPAN_TYPE_RESET",select:"EVENT_SPAN_TYPE_SELECT",invalid:"EVENT_SPAN_TYPE_INVALID",load:"EVENT_SPAN_TYPE_LOAD",unload:"EVENT_SPAN_TYPE_UNLOAD",beforeunload:"EVENT_SPAN_TYPE_BEFOREUNLOAD",domcontentloaded:"EVENT_SPAN_TYPE_DOMCONTENTLOADED",resize:"EVENT_SPAN_TYPE_RESIZE",scroll:"EVENT_SPAN_TYPE_SCROLL",
pageshow:"EVENT_SPAN_TYPE_PAGESHOW",pagehide:"EVENT_SPAN_TYPE_PAGEHIDE",play:"EVENT_SPAN_TYPE_PLAY",pause:"EVENT_SPAN_TYPE_PAUSE",playing:"EVENT_SPAN_TYPE_PLAYING",waiting:"EVENT_SPAN_TYPE_WAITING",seeking:"EVENT_SPAN_TYPE_SEEKING",seeked:"EVENT_SPAN_TYPE_SEEKED",ended:"EVENT_SPAN_TYPE_ENDED",volumechange:"EVENT_SPAN_TYPE_VOLUMECHANGE",timeupdate:"EVENT_SPAN_TYPE_TIMEUPDATE",ratechange:"EVENT_SPAN_TYPE_RATECHANGE",dragstart:"EVENT_SPAN_TYPE_DRAGSTART",drag:"EVENT_SPAN_TYPE_DRAG",dragend:"EVENT_SPAN_TYPE_DRAGEND",
dragenter:"EVENT_SPAN_TYPE_DRAGENTER",dragleave:"EVENT_SPAN_TYPE_DRAGLEAVE",dragover:"EVENT_SPAN_TYPE_DRAGOVER",drop:"EVENT_SPAN_TYPE_DROP",animationstart:"EVENT_SPAN_TYPE_ANIMATIONSTART",animationend:"EVENT_SPAN_TYPE_ANIMATIONEND",animationiteration:"EVENT_SPAN_TYPE_ANIMATIONITERATION",transitionrun:"EVENT_SPAN_TYPE_TRANSITIONRUN",transitionstart:"EVENT_SPAN_TYPE_TRANSITIONSTART",transitionend:"EVENT_SPAN_TYPE_TRANSITIONEND",transitioncancel:"EVENT_SPAN_TYPE_TRANSITIONCANCEL"};_.lq=_.ec(function(a){var z=_.Mm("a",a.ref),I=a.aTagConfig?a.aTagConfig:_.Bg(function(){var J,r,P,N,u;var E=(u=_.o0((P=a.command)==null?void 0:P.call(a)))!=null?u:(N=a.command)==null?void 0:N.call(a);return _.R0({innertubeCommand:E,skipOnClick:(J=a.skipOnClick)==null?void 0:J.call(a),defaultTarget:(r=a.target)==null?void 0:r.call(a)})||{}},void 0,"I5WLmc");
_.h2(function(){z.value._data=I()._data;z.value.params=I().params},"STb8Se");
return _.B("a",{el:z,href:function(){return I().href$},
rel:function(){return I().rel$},
class:function(){var J,r;return(r=I().className)!=null?r:(J=a.className)==null?void 0:J.call(a)},
style:function(){var J;if((J=a.style)==null?0:J.call(a))return a.style();var r;return((r=a.disabled)==null?0:r.call(a))?"pointer-events:none":""},
"aria-haspopup":function(){return!!I()["aria-haspopup$"]},
"force-new-state":OW(function(){return I()["force-new-state$"]}),
title:OW(function(){var J,r;return(r=I().title$)!=null?r:(J=a.title)==null?void 0:J.call(a)}),
role:OW(function(){var J;return((J=a.role)==null?void 0:J.call(a))||I().role$}),
target:OW(function(){return I().target$}),
dir:OW(function(){var J;return((J=a.dir)==null?void 0:J.call(a))||I().dir}),
tabindex:function(){var J;return I().tabindex$?Number(I().tabindex$):(J=a.tabIndex)==null?void 0:J.call(a)},
"aria-hidden":function(){var J,r;return(r=I()["aria-hidden$"])!=null?r:(J=a.ariaHidden)==null?void 0:J.call(a)},
"aria-label":function(){var J,r;return(r=I()["aria-label$"])!=null?r:(J=a.ariaLabel)==null?void 0:J.call(a)},
"aria-current":a.ariaCurrent,"aria-disabled":a.disabled,"aria-labelledby":a.ariaLabelledby,"aria-describedby":a.ariaDescribedby,"aria-selected":a.ariaSelected,"tab-identifier":a.tabIdentifier,"on:pointerdown":_.g4(function(J){var r,P;return void((P=(r=I()).onpointerdown)==null?void 0:P.call(r,J))}),
"on:click":_.g4(function(J){var r,P;(P=(r=I()).onclick)==null||P.call(r,J);var N;(N=a.onClick)==null||N.call(a,J)}),
"on:focusin":_.g4(function(J){var r;(r=a.onFocusin)==null||r.call(a,J)}),
"on:focusout":_.g4(function(J){var r;(r=a.onFocusout)==null||r.call(a,J)})},a.children)},"i");var UzG={duration:1E3,easing:"ease",fill:"forwards"};_.IG(oD3);var R4O={duration:1E3,easing:"ease",fill:"forwards"},HKo=_.ec(function(a){var z=_.Mm("animated-rolling-character"),I=void 0,J=function(){var r,P;return Y2((r=a.character)==null?void 0:r.call(a))||Y2((P=a.previousCharacter)==null?void 0:P.call(a))};
_.h2(function(){if(a.marginMultiplier()){var r;(r=I)==null||r.cancel();if(J()){var P;r=((P=a.previousCharacter)==null?0:P.call(a))?Number(a.previousCharacter())+10:a.rollUp()?0:30;var N;if((N=a.shouldAnimate)==null||!N.call(a)){var u,E;r-=Dzi((u=a.character)==null?void 0:u.call(a),(E=a.previousCharacter)==null?void 0:E.call(a),a.rollUp(),r)}}else{r=a.rollUp()?0:2;var O;(O=a.shouldAnimate)!=null&&O.call(a)||(P=r,N=a.rollUp()?-1:1,r=P-N)}z.value.style.marginTop="-"+r*a.marginMultiplier()+"px";var f;
if((f=a.shouldAnimate)==null?0:f.call(a)){var A,n;I=Lpx(z.value,(A=a.character)==null?void 0:A.call(a),(n=a.previousCharacter)==null?void 0:n.call(a),a.rollUp(),r,J(),a.marginMultiplier())}else{var F;z.value.style.display=((F=a.character)==null?0:F.call(a))?"":"none"}}},"vt9b9b");
return _.B("animated-rolling-character",{el:z,class:"animated-rolling-character-wiz"},_.B(_.g,{cond:J,then:function(){return _.B(Kvw,null)},
else:function(){return _.B(Fvw,{character:a.character})}}))},"j");
HKo.idomCompat=!0;var lMM=_.K("web_enable_sink_animated_rolling_character_and_number")?HKo:oD3,bKe=_.K("web_enable_sink_animated_rolling_character_and_number")?HKo:_.fS(oD3),Kvw=_.ec(function(){for(var a=[],z=1;z<30;z++)a.push(_.B("div",null,z%10));return _.B(_.eJ,null,_.B("div",null,"\u00a0"),a,_.B("div",null,"\u00a0"))},"k"),Fvw=_.ec(function(a){var z=a.character;
return _.B(_.eJ,null,_.B("div",null,"\u00a0"),_.B(_.g,{cond:function(){return!(z==null?0:z())||_.NO(z==null?void 0:z())},
then:function(){return _.B("div",null,"\u00a0")},
else:function(){return _.B("div",null,z)}}),_.B("div",null,"\u00a0"))},"l");_.IG(p2x);var hlo=_.ec(function(a){var z=void 0,I=void 0,J=function(){var P;return((P=a.fontSizeMultiplier)==null?0:P.call(a))?a.heightPx()*a.fontSizeMultiplier():a.heightPx()},r=_.Bg(function(){if(!a.numberText())return[];
var P,N,u=((P=a.forceRollUp)==null?void 0:P.call(a))||!I||!((N=a.numberValue)==null?0:N.call(a))||I<a.numberValue(),E,O=a.numberText();P=J();N=!((E=a.shouldAnimate)==null||!E.call(a));E=[];var f=0,A=0,n=(z?z.replace(/\D/g,"").length:0)-(O?O.replace(/\D/g,"").length:0),F=z?z.split(/(\d)/).filter(Boolean):[];for(O=O.split(/(\d)/).filter(Boolean);n<0;){var h=O[A];E.push({character:h,rollUp:u,marginMultiplier:P,shouldAnimate:N});A++;Y2(h)&&n++}for(;f<n;)h=F[f],E.push({previousCharacter:h,rollUp:u,marginMultiplier:P,
shouldAnimate:N}),f++,Y2(h)||n++;for(;A<O.length;)n=O[A],h=F[f],Y2(n)===Y2(h)?(A++,f++):Y2(n)?(f++,n=void 0):Y2(h)&&(A++,h=void 0),E.push({character:n,previousCharacter:h,rollUp:u,marginMultiplier:P,shouldAnimate:N});z=a.numberText();var v;I=(v=a.numberValue)==null?void 0:v.call(a);return E},void 0,"B9AmNd");
return _.B("yt-animated-rolling-number",{class:"animated-rolling-number-wiz",style:function(){return a.numberText()?["height: "+J()+"px;","line-height: "+a.heightPx()+"px;"].join(" "):""},
dir:"ltr","aria-hidden":"true"},_.B(_.se,{each:r,keyBy:"INDEX"},function(P){return _.B(bKe,{character:function(){return P().character},
previousCharacter:function(){return P().previousCharacter},
marginMultiplier:function(){return P().marginMultiplier},
rollUp:function(){return P().rollUp},
shouldAnimate:function(){return P().shouldAnimate}})}))},"m");
hlo.idomCompat=!0;_.VRi=_.K("web_enable_sink_animated_rolling_character_and_number")?hlo:p2x;_.QCE=_.K("web_enable_sink_animated_rolling_character_and_number")?hlo:_.fS(p2x);var Sqv=function(a,z){this.fillAnimation=new Animation(w27(a),document.timeline);this.strokeAnimation=new Animation(mz3(z),document.timeline)};
Sqv.prototype.play=function(){var a,z;(z=(a=this.fillAnimation).play)==null||z.call(a);var I,J;(J=(I=this.strokeAnimation).play)==null||J.call(I)};
Sqv.prototype.cancel=function(){var a,z;(z=(a=this.fillAnimation).cancel)==null||z.call(a);var I,J;(J=(I=this.strokeAnimation).cancel)==null||J.call(I)};_.Bc=_.ec(function(a){var z=a.model;var I=a.pointerDownEvent;var J=a.pointerUpEvent;var r=a.pointerLeaveEvent;a=_.Mm("div");var P=_.sW({"border-radius":function(){return z().borderRadius}}),N=_.Mm("div"),u=_.Mm("div"),E=_.C(_.Af(function(){return(J==null?0:J())||(r==null?0:r())?!1:!(I==null||!I())||!1})),O=E.next().value,f=E.next().value,A=void 0,n=function(){!A&&u.value&&N.value&&typeof Animation==="function"&&typeof KeyframeEffect==="function"&&(A=new Sqv(u.value,N.value));
var l;(l=A)==null||l.play()},F=function(){var l;
(l=A)==null||l.cancel()},h=function(){var l;
(l=A)==null||l.cancel()};
_.h2(function(){(J==null?0:J())&&n()},"YjVIpd");
_.h2(function(){(I==null?0:I())&&F()},"UrXvqb");
_.h2(function(){(r==null?0:r())&&h()},"QK6L8b");
E=_.g4(function(){n();f(!1)});
var v=_.g4(function(){F();f(!0)}),d=_.g4(function(){h();
f(!1)});
_.V3(function(){if(A){var l;(l=A)==null||l.cancel();A=void 0}});
var W={};O=_.B8("yt-spec-touch-feedback-shape",function(){return yOp(z().color)},(W["yt-spec-touch-feedback-shape--focused"]=function(){return!!z().focused&&!z().disabled},W["yt-spec-touch-feedback-shape--circular"]=function(){return!!z().circular},W["yt-spec-touch-feedback-shape--is-extended"]=function(){return!!z().isExtended},W["yt-spec-touch-feedback-shape--down"]=O,W["yt-spec-touch-feedback-shape--trigger-events"]=function(){return!!z().triggerEvents},W));
return _.B("yt-touch-feedback-shape",{style:_.sW({"border-radius":"inherit"})},_.B("div",{el:a,class:O,style:_.sW({"margin-top":function(){return z().customTopExtend?"-"+z().customTopExtend+"px":void 0}}),
"on:mousedown":v,"on:mouseup":E,"on:pointerleave":d,"on:touchstart":v,"on:touchend":E,"aria-hidden":!0},_.B("div",{class:"yt-spec-touch-feedback-shape__stroke",style:P,el:N}),_.B("div",{class:"yt-spec-touch-feedback-shape__fill",style:P,el:u})))},"n");
_.Bc.idomCompat=!0;var iKI={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 g7=_.fG();g7=g7.toLowerCase();if(_.t1(g7,"android")){var xB1=g7.match(/android\s*(\d+(\.\d+)?)[^;|)]*[;)]/);xB1&&parseFloat(xB1[1])<100||g7.match("("+Object.keys(iKI).join("|")+")")};var v6X=_.ec(function(a){return _.B(_.g,{cond:a.aTagConfig,then:function(z){return _.B(_.lq,{aTagConfig:z,disabled:a.disabled,className:a.className,style:a.style,title:a.title,ariaLabel:a.ariaLabel,ariaCurrent:function(){var I,J;return((I=a.toggleable)==null?void 0:I.call(a))&&((J=a.toggled)==null?void 0:J.call(a))},
ref:a.ref},a.children)},
else:function(){return _.B("button",{el:_.a5(a.ref),"on:click":_.g4(function(z){var I;return(I=a.onClick)==null?void 0:I.call(a,z)}),
class:a.className,title:a.title,style:a.style,disabled:a.disabled,"aria-pressed":function(){var z,I;return((z=a.toggleable)==null?0:z.call(a))?!((I=a.toggled)==null||!I.call(a)):void 0},
"aria-label":a.ariaLabel,"aria-disabled":a.visiblyDisabled,"aria-hidden":a.ariaHidden,tabindex:a.tabIndex},a.children)}})},"o"),$Bo=_.ec(function(a){var z=a.data;
var I=a.hasIconLeading;var J=a.hasIconLeadingTrailing;var r=a.hasIconTrailing;var P=a.iconButton;var N=a.iconClassName;var u=a.secondaryIconClassName;var E=a.icon;var O=a.secondaryIcon;var f=a.textContentClassName;return _.B(OT,{className:"",style:"display: inherit; justify-content: center"},_.B(_.g,{debugInstance:"V4z1Uc",cond:function(){return E&&(I()||J()||(P==null?void 0:P()))},
then:function(){return _.B(OT,null,_.B("div",{class:N,"aria-hidden":"true"},E==null?void 0:E()))}}),_.B(_.g,{debugInstance:"ok3btb",
cond:function(){return(z().buttonText||z().animatedTextProps||z().formattedButtonText)&&!(P==null?0:P())},
then:function(){return _.B(OT,null,_.B(G6G,{className:f,iconPosition:function(){return z().iconPosition},
text:function(){return z().buttonText},
oneOffCustomTextWrap:function(){return z().oneOffCustomTextWrap},
formattedButtonText:function(){return z().formattedButtonText},
animatedTextProps:function(){return z().animatedTextProps}}))}}),_.B(_.g,{debugInstance:"DO5Rz",
cond:r,then:function(){return _.B(OT,null,_.B("div",{class:N},E==null?void 0:E()))}}),_.B(_.g,{debugInstance:"bnojSc",
cond:J,then:function(){return _.B(OT,null,_.B("div",{class:u},O==null?void 0:O()))}}),_.B(_.g,{debugInstance:"HN3kad",
cond:function(){return!z().disabled&&!0},
then:function(){return _.B(_.Bc,{model:function(){var A=z();return{color:A.style==="overlay-dark"?4:A.style==="overlay"?A.type==="filled"?4:3:A.type==="filled"||A.style==="call-to-action-inverse"||A.style==="mono-inverse"?2:1}}})}}))},"p"),G6G=_.ec(function(a){var z=function(){var I,J;
return((I=a.iconPosition)==null?void 0:I.call(a))==="icon-with-label"||((J=a.oneOffCustomTextWrap)==null?void 0:J.call(a))};
return _.B("div",{class:a.className,"aria-hidden":function(){var I,J,r;return((I=a.ariaHidden)==null?void 0:I.call(a))&&(!((J=a.animatedTextProps)==null||!J.call(a))||!((r=a.formattedButtonText)==null||!r.call(a)))}},_.B(_.Fw,null,_.B(_.n3,{when:function(){var I;
return(I=a.animatedTextProps)==null?void 0:I.call(a)}},function(){return _.B(_.QCE,{numberText:function(){return a.animatedTextProps().numberText},
numberValue:function(){return a.animatedTextProps().numberValue},
heightPx:function(){return a.animatedTextProps().heightPx},
fontSizeMultiplier:function(){return a.animatedTextProps().fontSizeMultiplier},
shouldAnimate:function(){return a.animatedTextProps().shouldAnimate},
forceRollUp:function(){return a.animatedTextProps().forceRollUp}})}),_.B(_.n3,{when:function(){var I;
return(I=a.formattedButtonText)==null?void 0:I.call(a)}},function(){return _.B(_.xs,{text:function(){return Object.assign({},a.formattedButtonText(),{lineBreakMode:z()?"LINE_BREAK_MODE_BY_WORD_WRAPPING":a.formattedButtonText().lineBreakMode,
alignment:z()?"TEXT_ALIGNMENT_CENTER":a.formattedButtonText().alignment})},
noLinkColor:!0,noWrap:function(){return!z()}})}),_.B(_.n3,{when:function(){var I,J;
return((I=a.iconPosition)==null?void 0:I.call(a))==="icon-with-label"&&((J=a.text)==null?void 0:J.call(a))}},function(){return _.B(_.xs,{text:function(){return{content:a.text(),
lineBreakMode:"LINE_BREAK_MODE_BY_WORD_WRAPPING",alignment:"TEXT_ALIGNMENT_CENTER"}},
noLinkColor:!0,noWrap:!1})}),_.B(_.K3,null,function(){return a.text})))},"q"),XQw=_.ec(function(a){return _.B(_.g,{debugInstance:"kM7Sgc",
cond:a.hasLabel,then:function(){var z;return _.B("label",{class:a.className},a.children,(z=a.textContent)==null?void 0:z.call(a))},
else:function(){return a.children}})},"r"),OT=_.ec(function(a){return a.children},"s");var Txl=_.ec(function(a){var z=_.a5(),I=_.C(_.CW(void 0,void 0,"Z7xOte")),J=I.next().value,r=I.next().value;I=_.C(_.CW(void 0,void 0,"ppqp2e"));var P=I.next().value,N=I.next().value;I=_.C(_.CW(0,void 0,"bD1Mhe"));var u=I.next().value,E=I.next().value;I=_.g4(function(){switch(u()){case 1:E(2);break;case 3:var f,A;(A=(f=z.value).hidePopover)==null||A.call(f);E(0);r(void 0);N(void 0)}});
_.h2(function(){if(a.show()){var f;r((f=a.children)==null?void 0:f.call(a));var A;N((A=a.location)==null?void 0:A.call(a));switch(u()){case 0:var n,F;(F=(n=z.value).showPopover)==null||F.call(n);E(1);break;case 3:E(1);var h,v;(v=(h=z.value).hidePopover)==null||v.call(h);var d,W;(W=(d=z.value).showPopover)==null||W.call(d)}}else switch(u()){case 2:E(3);break;case 1:var l,q;(q=(l=z.value).hidePopover)==null||q.call(l);r(void 0);N(void 0);E(0)}},"vFJRcd");
_.QO(function(){});
var O={};return _.B("yt-popover",{popover:"manual",el:z,style:_.sW({left:function(){var f;return(f=P())==null?void 0:f.left},
top:function(){var f;return(f=P())==null?void 0:f.top},
bottom:function(){var f;return(f=P())==null?void 0:f.bottom},
right:function(){var f;return(f=P())==null?void 0:f.right}}),
class:_.B8("ytPopoverComponentHost",a.classNames,(O.ytPopoverComponentHostClosing=function(){return u()===3},O.ytPopoverComponentHostSeeThrough=function(){var f;
return((f=a.seeThrough)==null?void 0:f.call(a))===!0},O)),
"on:animationend":I},J)},"t");var dB1={left:"0px",right:"auto",top:"0px",bottom:"auto"},Wvf=function(){var a=this;this.registerTooltipElement=function(I){var J;a.tooltipElement=(J=I.querySelector("yt-popover"))!=null?J:void 0};
var z=_.C(_.CW(void 0,void 0,"z4iHWd"));this.state=z.next().value;this.setState=z.next().value;z=_.C(_.CW(void 0,void 0,"uKDcaf"));this.schedulerJobID=z.next().value;this.setSchedulerJobID=z.next().value},zji=function(a,z){var I=FT,J=_.GW.addJob(function(){var r=o6O(I,a,z);
I.setState({text:z.text,location:r,anchor:a,offset:z.offset})},4,z.delay);
I.setSchedulerJobID(J)},Id7=function(){var a=FT,z=a.schedulerJobID();
z&&(_.GW.cancelJob(z),a.setSchedulerJobID(void 0));a.setState(void 0)};
Wvf.prototype.notify=function(a,z){var I;((I=this.state())==null?void 0:I.anchor)===a&&(I=o6O(this,a,z),this.setState({text:z.text,location:I,anchor:a,offset:z.offset}))};
var o6O=function(a,z,I){var J=z.getBoundingClientRect();z=window.innerWidth;var r=window.innerHeight,P=I.location,N=I.offset;I=I.text;if(a=a.tooltipElement){var u=getComputedStyle(a);a=u.font;var E=KS(u.lineHeight),O=KS(u.paddingLeft),f=KS(u.paddingRight),A=KS(u.paddingTop);u=KS(u.paddingBottom);var n=document.createElement("canvas").getContext("2d");n.font=a;I={width:n.measureText(I).width+O+f,height:E+A+u}}else I=void 0;a=I;if(!a)return dB1;I=a.width;a=a.height;O=N+a;A=N+I;E=J.top>=O;O=r-J.bottom>=
O;f=J.left>=A;A=z-J.right>=A;u=P;switch(P){case "top":!E&&O&&(u="bottom");break;case "bottom":!O&&E&&(u="top");break;case "left":!f&&A&&(u="right");break;case "right":!A&&f&&(u="left")}switch(u){case "top":P=J.left+J.width/2-I/2;J=J.top-a-N;break;case "bottom":P=J.left+J.width/2-I/2;J=J.bottom+N;break;case "left":P=J.left-I-N;J=J.top+J.height/2-a/2;break;case "right":P=J.right+N;J=J.top+J.height/2-a/2;break;default:P=J.left+J.width/2-I/2,J=J.bottom+N}N=Object.assign({},dB1);P+I>z?(N.right="0px",N.left=
"auto"):(N.left=Math.round(Math.max(0,P)+window.scrollX)+"px",N.right="auto");J+a>r?(N.bottom="0px",N.top="auto"):(N.top=Math.round(Math.max(0,J)+window.scrollY)+"px",N.bottom="auto");return N};var FT;FT=new Wvf;_.UBJ=_.ec(function(){var a=_.Bg(function(){var I;return(I=FT.state())==null?void 0:I.text},void 0,"KoaMVc"),z=_.Bg(function(){var I;
return(I=FT.state())==null?void 0:I.location},void 0,"R6s5tc");
return _.B("yt-tooltip",{class:"ytTooltipContainerHost",el:_.a5(FT.registerTooltipElement),"aria-hidden":"true"},_.B(Txl,{classNames:"ytTooltipContainerContent",location:z,show:function(){return!!a()},
seeThrough:!0},a))},"u");var t80=Yl("stamper-context");_.f_=_.ec(function(a){var z=a.data;var I=a.icon;var J=a.iconName;var r=a.animateIcon;var P=a.secondaryIcon;var N=a.secondaryIconName;var u=a.focusedOverride;var E=a.clientOnlyWizTooltipsEnabled;_.H8();var O=kFm(z),f=O.size,A=O.style;a=O.disabled;var n=O.onTap,F=O.alignByText,h=O.aTagConfig,v=O.customColors,d=O.segmentedPosition,W=O.toggled,l=O.toggleable,q=O.accessibilityLabel,m=O.onToggle,M=O.iconPosition,y=O.oneOffCustomTextWrap,e=O.disableTextEllipsis,Bp=O.disableBackdropFilter,Em=O.tooltipText,
nG=O.ariaHidden,bG=O.tabIndex,Hp=O.buttonText,LG=O.formattedButtonText,oE=O.animatedTextProps,Pe=qVp(z,I,P,J,N,u,r),TJ=Pe.type;I=Pe.shouldFocus;J=Pe.hasIconLeading;r=Pe.hasIconTrailing;var Be=Pe.hasIconLeadingTrailing,eM=Pe.hasIconOnly;P=Pe.hasIconOnly40;var Ao=Pe.hasIconWithLabel;N=Pe.iconButton;var gf=Pe.visiblyDisabled;u=Pe.overrideSmallSizeIcon;O=Pe.iconToRender;Pe=Pe.secondaryIconToRender;var GJ=_.C(JS$(Em)).next().value,Sf={},ce={};return _.B(XQw,{className:_.B8("yt-spec-button-shape-with-label",
(Sf["yt-spec-button-shape-with-label--is-overlay"]=function(){return A()==="overlay"||A()==="overlay-dark"},Sf)),
hasLabel:Ao,textContent:function(){return _.B(G6G,{text:Hp,className:"yt-spec-button-shape-with-label__label",ariaHidden:!0,oneOffCustomTextWrap:y,iconPosition:M,formattedButtonText:LG,animatedTextProps:oE})}},_.B(v6X,{aTagConfig:h,
className:_.B8("yt-spec-button-shape-next",function(){return e4m(TJ())},function(){return gf()?void 0:adi(A())},function(){return j2p(f())},(ce["yt-spec-button-shape-next--disabled"]=gf,ce["yt-spec-button-shape-next--focused"]=I,ce["yt-spec-button-shape-next--icon-trailing"]=r,ce["yt-spec-button-shape-next--icon-leading"]=J,ce["yt-spec-button-shape-next--icon-leading-trailing"]=Be,ce["yt-spec-button-shape-next--icon-leading-trailing-no-text"]=function(){return Be()&&!(Hp()||LG())},ce["yt-spec-button-shape-next--icon-button"]=
function(){return eM()||Ao()},ce["yt-spec-button-shape-next--icon-only-default"]=P,ce["yt-spec-button-shape-next--align-by-text"]=F,ce["yt-spec-button-shape-next--segmented-start"]=function(){return d()==="start"},ce["yt-spec-button-shape-next--segmented-end"]=function(){return d()==="end"},ce["yt-spec-button-shape-next--override-small-size-icon"]=u,ce["yt-spec-button-shape-next--one-off-custom-text-wrap-container"]=y,ce["yt-spec-button-shape-next--disable-text-ellipsis"]=e,ce["yt-spec-button-shape-next--enable-backdrop-filter-experiment"]=
function(){return!Bp()&&!_.K("web_disable_backdrop_filter")},ce)),
style:function(){var r$=v();if(r$){var aw=r$.color;var Kl=r$.backgroundColor;r$=r$.borderColor;var EG="";aw&&(EG+="color: "+aw+";");Kl&&(EG+="background-color: "+Kl+";");r$&&(EG+="border-color: "+r$+";");aw={style:EG}}else aw={};return aw.style},
onClick:function(r$){n==null||n(r$);l()&&(m==null||m(r$))},
disabled:a,ariaLabel:q,toggleable:l,toggled:W,title:function(){return(E==null?0:E())||!Em()?"":Em()},
visiblyDisabled:gf,ariaHidden:nG,tabIndex:bG,ref:function(r$){(E==null?0:E())&&GJ(r$)}},_.B($Bo,{data:z,
hasIconLeading:J,hasIconLeadingTrailing:Be,hasIconTrailing:r,iconButton:N,icon:O,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:Pe})))},"v");
_.f_.idomCompat={callbacks:{icon:!0,secondaryIcon:!0}};_.At=_.ec(function(a){var z=a.data;var I=a.className;var J=a.style;var r=a.useOutlinedIcon;var P=a.buttonOverrides;var N=a.animatedTextProps;var u=a.onClick;var E=a.target;var O=_.Mm("button-view-model",function(l){l.dispatchEvent(new CustomEvent("yt-renderidom-finished",{bubbles:!0,cancelable:!1,composed:!0}));var q=z().targetId;q&&_.KaG(_.Gc(),q,l);return function(){smw(_.Gc(),l)}}),f=function(){return z().iconName},A,n=(A=_.ab().resolve(_.eL(_.kN)))==null?void 0:A(),F=function(){var l=z();
var q=P==null?void 0:P(),m=N==null?void 0:N(),M=E==null?void 0:E();if(l){var y=uL7(l.type);var e=!!l.title||!!l.titleFormatted;var Bp=!(!l.iconName&&!l.iconImage);e=Bp&&!e?"icon-only":Bp?l.iconTrailing||l.iconPosition==="BUTTON_VIEW_MODEL_ICON_POSITION_TRAILING"?"trailing":"leading":void 0;e==="icon-only-40"&&(y="text");var Em,nG=(Em=q==null?void 0:q.disabled)!=null?Em:l.state==="BUTTON_VIEW_MODEL_STATE_DISABLED"||l.state==="BUTTON_VIEW_MODEL_STATE_INACTIVE";m=m&&m.numberText&&!isNaN(Number(m.numberValue))?
m:void 0;Em=Object;Bp=Em.assign;var bG=l.title,Hp=l.titleFormatted,LG=l.accessibilityText,oE=tU0(l.style),Pe=Eb7(l.state),TJ=Bli(l.buttonSize);M=Nl0(l,O,nG,u,M);nG=nG&&!l.onDisabledTap;var Be=ZiG(l,O),eM=l.customFontColor,Ao=l.customBackgroundColor;var gf=l.customBorderColor;var GJ=l.customDarkThemeFontColor,Sf=l.customDarkThemeBackgroundColor,ce=l.customDarkThemeBorderColor;eM=n&&GJ?GJ:eM;Ao=n&&Sf?Sf:Ao;gf=n&&ce?ce:gf;gf={color:eM?_.RX(eM):void 0,backgroundColor:Ao?_.RX(Ao):void 0,borderColor:gf?
_.RX(gf):void 0};l=Bp.call(Em,{},{buttonText:bG,formattedButtonText:Hp,animatedTextProps:m,accessibilityLabel:LG,style:oE,type:y,state:Pe,size:TJ,iconPosition:e,onTap:M,disabled:nG,aTagConfig:Be,customColors:gf,tooltipText:l.tooltip},q)}else l={style:"mono",type:"text",state:"active",size:"M"};l.focused=d();return l},h=function(){return cOm(F(),!!z().iconName)};
a=_.C(_.CW(!1,void 0,"bl7g4"));A=a.next().value;var v=a.next().value,d=A;a=_.g4(function(){var l=_.ab().resolve(_.eL(_.ET));l&&v(l.isKeyBoardInUse());return!1});
A=_.g4(function(){v(!1);return!1});
_.h2(function(){var l,q=_.H(z==null?void 0:(l=z())==null?void 0:l.onVisible,_.Wl);q&&_.DA(q,{disableClickTracking:!0})},"MLqBF");
var W=_.K("enable_client_only_wiz_tooltips")&&HTMLElement.prototype.hasOwnProperty("popover");return _.B("button-view-model",{el:O,class:_.B8("yt-spec-button-view-model",I),"on:focusin":a,"on:focusout":A},_.B(_.g,{cond:function(){var l;return(z==null?0:(l=z())==null?0:l.iconImage)?{sources:[z().iconImage]}:void 0},
then:function(l){return _.B(_.f_,{data:F,icon:function(){return _.B(_.qp,{data:l,alt:"",targetWidth:h,targetHeight:h,preserveWidth:!0,preserveHeight:!0})},
clientOnlyWizTooltipsEnabled:W})},
else:function(){return _.B(_.f_,{data:F,icon:function(){return _.B(_.nS,{icon:f,active:function(){return(r==null?0:r())?!1:F().toggled},
animateIcon:function(){var l;return!!(J==null?0:(l=J())==null?0:l.animateIcon)},
size:h})},
clientOnlyWizTooltipsEnabled:W})}}))},"w");
_.At.idomCompat={callbacks:{onClick:!0}};_.Jf(_.ec(function(a){return _.B("yt-button-view-model",{id:a.id,class:_.B8(a.scopingClassName,a.classes),icon:function(){var z;return(z=a.icon)==null?void 0:z.call(a)},
"dialog-dismiss":function(){var z;return((z=a.dialogDismiss)==null?0:z.call(a))?"":void 0}},_.B(_.At,{data:function(){var z;
return(z=a.data)==null?void 0:z.call(a)},
className:function(){var z;return(z=a.className)==null?void 0:z.call(a)},
style:function(){var z;return(z=a.style)==null?void 0:z.call(a)},
useOutlinedIcon:function(){var z;return(z=a.useOutlinedIcon)==null?void 0:z.call(a)},
buttonOverrides:function(){var z;return(z=a.buttonOverrides)==null?void 0:z.call(a)},
animatedTextProps:function(){var z;return(z=a.animatedTextProps)==null?void 0:z.call(a)},
onClick:function(z){var I;return(I=a.onClick)==null?void 0:I.call(a,z)}}))},"x"),"yt-button-view-model",{props:{data:_.zl,
className:_.zl,style:_.zl,useOutlinedIcon:_.zl,buttonOverrides:_.zl,animatedTextProps:_.zl,onClick:_.I5,scopingClassName:_.zl,id:_.zl,icon:_.zl,dialogDismiss:_.zl,classes:_.zl,target:_.I5}});_.Jf(_.ec(function(a){var z=a.data;var I=a.id;var J=a.className;var r=a.iconName;var P=a.animateIcon;var N=a.secondaryIconName;a=_.C(_.CW(!1,void 0,"x6aL5"));var u=a.next().value,E=a.next().value,O=function(){var A=_.ab().resolve(_.eL(_.ET));A&&E(A.isKeyBoardInUse())},f=function(){E(!1)};
a=_.Mm("yt-button-shape",function(A){if(_.ab().resolve(_.eL(_.ET)))return A.addEventListener("focusin",O),A.addEventListener("focusout",f),function(){A.removeEventListener("focusin",O);A.removeEventListener("focusout",f)}});
return _.B("yt-button-shape",{el:a,id:I,class:J},_.B(_.g,{cond:z,then:function(){return _.B(_.f_,{data:z,iconName:r,secondaryIconName:N,focusedOverride:u,animateIcon:P})}}))},"y"),"yt-button-shape",{props:{data:_.zl,
id:_.zl,className:_.zl,iconName:_.zl,animateIcon:_.zl,secondaryIconName:_.zl,clientOnlyWizTooltipsEnabled:_.zl,disableUpgrade:_.zl},unsafeExternallySettableAttributes:new Set(["hidden","key","dialog-dismiss","disable-upgrade"])});var sT=function(){var a=_.G.apply(this,arguments)||this;a.isGoalActive=!0;return a};
_.b(sT,_.G);sT.prototype.isAppDarkTheme=function(){return document.documentElement.hasAttribute("dark")};
sT.prototype.progressBarChanged=function(){var a=_.PK(this.hostElement).querySelector("#progress-bar-progress"),z,I,J,r=(J=Number((z=this.creatorGoalState)==null?void 0:z.currentGoalCount)/Number((I=this.creatorGoalState)==null?void 0:I.totalGoalCount)*100)!=null?J:0,P;a.style.width=((P=Math.min(r,100))!=null?P:0)+"%"};
sT.prototype.goalStateChanged=function(){var a;this.isGoalActive=((a=this.creatorGoalState)==null?void 0:a.creatorGoalState)==="CREATOR_GOAL_STATE_ACTIVE";var z;a={"--yt-progress-bar-color":zl$((z=this.creatorGoalState)==null?void 0:z.progressBarColor)};_.uK(this.hostElement,a)};
sT.prototype.configureRendererStamper=function(){return{"creatorGoalState.progressFlowButton":{id:"progress-button",mapping:{buttonViewModel:{component:"yt-button-view-model",properties:{scopingClassName:"[[is]]"}}},reuseComponents:!0}}};
_.eH.Object.defineProperties(sT.prototype,{shouldShowCountdown:{configurable:!0,enumerable:!0,get:function(){var a;return this.isGoalActive&&!((a=this.creatorGoalState)==null||!a.shouldShowCountdown)}},
endTimestamp:{configurable:!0,enumerable:!0,get:function(){var a;if((a=this.creatorGoalState)==null?0:a.endTimestampMs){var z;a=Number((z=this.creatorGoalState)==null?void 0:z.endTimestampMs)/1E3;return{seconds:String(a)}}}},
targetIconThemedImage:{configurable:!0,enumerable:!0,get:function(){var a;if((a=this.creatorGoalState)==null?0:a.themedTargetImage){var z;a=_.H((z=this.creatorGoalState)==null?void 0:z.themedTargetImage,T7J);return this.isAppDarkTheme()?a==null?void 0:a.imageDark:a==null?void 0:a.imageLight}}}});
_.eH.Object.defineProperties(sT,{template:{configurable:!0,enumerable:!0,get:function(){return E6o()}}});
sT.prototype.goalStateChanged=sT.prototype.goalStateChanged;sT.prototype.progressBarChanged=sT.prototype.progressBarChanged;_.L([_.Q(_.u4.YtRendererstamperBehavior),_.p("design:type",Object)],sT.prototype,"ytRendererstamperBehavior",void 0);_.L([_.Q(_.yb),_.p("design:type",Object)],sT.prototype,"ytLiveChatReduxBehavior",void 0);_.L([_.Q(_.k.YtRendererBehavior),_.p("design:type",Object)],sT.prototype,"ytRendererBehavior",void 0);
_.L([_.x({selectorArgs:["data.creatorGoalEntityKey"],selector:function(a,z){return _.Bd(a.entities,"creatorGoalEntity",z)}}),
_.p("design:type",Object)],sT.prototype,"creatorGoalState",void 0);_.L([_.x(),_.p("design:type",Object)],sT.prototype,"data",void 0);_.L([_.x(),_.p("design:type",Object)],sT.prototype,"isGoalActive",void 0);_.L([_.S("creatorGoalState","isGoalActive"),_.p("design:type",Boolean),_.p("design:paramtypes",[])],sT.prototype,"shouldShowCountdown",null);_.L([_.S("creatorGoalState"),_.p("design:type",Object),_.p("design:paramtypes",[])],sT.prototype,"endTimestamp",null);
_.L([_.S("creatorGoalState"),_.p("design:type",Object),_.p("design:paramtypes",[])],sT.prototype,"targetIconThemedImage",null);_.L([_.O8("creatorGoalState.currentGoalCount"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],sT.prototype,"progressBarChanged",null);_.L([_.O8("creatorGoalState.creatorGoalState"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],sT.prototype,"goalStateChanged",null);
_.L([_.dz({is:"yt-creator-goal-progress-flow-view-model",disableElementRegistration:!0,noInjection:!0})],sT);_.D(sT,"yt-creator-goal-progress-flow-view-model",function(){return E6o()},{mode:_.K("live_chat_enable_sink_wrapper")?2:0});var DBE;var Rlo;var n_=function(){return _.G.apply(this,arguments)||this};
_.b(n_,_.G);n_.prototype.attached=function(){var a,z,I;if(this==null?0:(a=this.data)==null?0:(z=a.pdgPurchasedBumperLoggingDirectives)==null?0:(I=z.loggingDirectives)==null?0:I.trackingParams){var J,r,P;fd3(this==null?void 0:(J=this.data)==null?void 0:(r=J.pdgPurchasedBumperLoggingDirectives)==null?void 0:(P=r.loggingDirectives)==null?void 0:P.trackingParams)}};
n_.prototype.configureRendererStamper=function(){return{"data.content":{id:"content",mapping:{bumperUserEduContentViewModel:{component:"yt-bumper-user-edu-content-view-model"}}}}};
_.L([_.Q(_.Ms.YtComponentBehavior),_.p("design:type",Object)],n_.prototype,"ytComponentBehavior",void 0);_.L([_.Q(_.u4.YtRendererstamperBehavior),_.p("design:type",Object)],n_.prototype,"ytRendererstamperBehavior",void 0);_.L([_.x(),_.p("design:type",Object)],n_.prototype,"data",void 0);_.L([_.dz({disableElementRegistration:!0,is:"yt-live-chat-item-bumper-view-model"})],n_);
_.D(n_,"yt-live-chat-item-bumper-view-model",function(){if(Rlo===void 0){var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-live-chat-item-bumper-view-model--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.pdg.yt_live_chat_item_bumper_view_model.yt.live.chat.item.bumper.view.model.css.js--\x3e<div id="bumper" class="style-scope yt-live-chat-item-bumper-view-model">\n  <div id="content" class="style-scope yt-live-chat-item-bumper-view-model"></div>\n</div>');a.content.insertBefore(_.w().content.cloneNode(!0),
a.content.firstChild);var z=a.content,I=z.insertBefore;DBE===void 0&&(DBE=document.createElement("template"));var J=DBE;I.call(z,J.content.cloneNode(!0),a.content.firstChild);Rlo=a}a=Rlo;return a},{mode:_.K("live_chat_enable_sink_wrapper")?2:0});var Lvv;var lCI;_.Yq=function(a,z){this.data=a;this.actions=z;this.data=a;this.actions=z};
_.lJ=function(){};_.K_={};_.K_.YtOpenPopupBehavior={properties:{popupPositionTarget:Object},listeners:{"yt-service-request-completed":"onOpenPopupServiceRequestCompleted_"},created:function(){this.openPopupConfig=null},
openPopup:function(a,z){ASG(this.hostElement,a,z)},
getNavigationEndpointPopupAction:function(a){return s2m(a,this.openPopupConfig)},
onOpenPopupServiceRequestCompleted_:function(a,z){nbG(this.hostElement,a,z,this.openPopupConfig)}};var xa1=["backstageImageUploadEndpoint","openUpdateCommentDialogAction","updateCommentDialogEndpoint","updateCommentReplyDialogEndpoint"];_.FW={};
_.FW.YtEndpointBehavior=[_.K_.YtOpenPopupBehavior,{properties:{openPopupConfig:Object,useClickHandler:{type:Boolean,value:!1}},ready:function(){this.openPopupConfig=_.Xw("openPopupConfig");(this.useClickHandler=_.TZ("useClickHandler",!1))?this.hostElement.addEventListener("click",E8(this,this.onEndpointClick_)):(Xk(this.hostElement,"tap",E8(this,this.onEndpointTap_)),Xk(this.hostElement,"touchend",E8(this,this.onEndpointTouchEnd_)));Xk(this.hostElement,"touchstart",E8(this,this.onEndpointTapStart_));this.hostElement.addEventListener("mousedown",
E8(this,this.onEndpointTapStart_))},
onEndpointClick_:function(a){Him(this.hostElement,a,this.openPopupConfig,this.disableCommandHandlerOverride)},
onEndpointTap_:function(a){var z=this.hostElement,I=this.openPopupConfig,J=this.disableCommandHandlerOverride;J=J===void 0?!1:J;var r=K$x(a);if(r){r.href&&pH(r.href);var P=a.detail;var N=P.sourceEvent;P=P.preventer;N=N.button!==void 0?N.button===0&&!hf(N):P?!hf(P):!0;r.data&&N&&F$G(z,r,a,I,J)}},
onEndpointTouchEnd_:function(a){hf(a)||K$x(a)&&a.preventDefault()},
onEndpointTapStart_:function(a){S$0(a)}}];_.Hc={YtActionHandlerBehavior:[{actionMap:{},attached:function(){this.registerActionMap(this.actionMap)},
detached:function(){this.unregisterActionMap(this.actionMap)},
registerActionMap:function(a){for(var z=_.w2.getInstance(),I=_.C(Object.keys(a)),J=I.next();!J.done;J=I.next()){var r=J.value;J=a[r];if(this&&this[J]){var P=z.actionRoutingMap.get(r);P||(P=new Map,z.actionRoutingMap.set(r,P));z.registerActionHandler(this,r,this[J].bind(this),P)}else r=Error("gd"),r.params=J,_.oL(r)}},
unregisterActionMap:function(a){_.y4(_.w2.getInstance(),a,this)}}]};var Sk=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_"+(_.K("enable_web_delhi_icons")?"v5":"v4")+".json",pathDarkTheme:"https://www.gstatic.com/youtube/img/lottie/animated_like_icon/animated_like_icon_dark_"+(_.K("enable_web_delhi_icons")?"v5":"v4")+".json",lottiePlayerProps:{animationConfig:{loop:!1,autoplay:!1}},type:"LIKE",totalFrames:_.K("enable_web_delhi_icons")?120:60,lazyLoad:!0}],["LIKE_DELHI_PLAYER",{name:"animated_like_light",nameDarkTheme:"animated_like_dark",
path:"https://www.gstatic.com/youtube/img/lottie/animated_like_icon/animated_like_icon_light_v5.json",pathDarkTheme:"https://www.gstatic.com/youtube/img/lottie/animated_like_icon/animated_like_icon_dark_v5.json",lottiePlayerProps:{animationConfig:{loop:!1,autoplay:!1}},type:"LIKE_DELHI_PLAYER",totalFrames:120,lazyLoad:!0}],["NOTIFICATION_BELL",{name:"notification_bell_light",nameDarkTheme:"notification_bell_dark",path:_.K("enable_web_delhi_icons")?"https://www.gstatic.com/youtube/img/lottie/subscribe_action/subscribe_action_bell_icon_light_v4.json":
"https://www.gstatic.com/youtube/img/lottie/subscribe_action/subscribe_action_bell_icon_light.json",pathDarkTheme:_.K("enable_web_delhi_icons")?"https://www.gstatic.com/youtube/img/lottie/subscribe_action/subscribe_action_bell_icon_dark_v4.json":"https://www.gstatic.com/youtube/img/lottie/subscribe_action/subscribe_action_bell_icon_dark.json",lottiePlayerProps:{animationConfig:{loop:!1,autoplay:!1}},type:"NOTIFICATION_BELL",totalFrames:_.K("enable_web_delhi_icons")?120:79,lazyLoad:!1}]]);var Q7;var iJ=new Map;var ld3=window.matchMedia("(forced-colors: active)").matches;var pQi;var wQf;var mBJ=new _.I4("LOTTIE_LOADER_TOKEN");_.b4=_.ec(function(a){var z=a.data;var I=a.className;var J=a.animationName;var r=a.animationRef;var P=a.elRefForInterop;var N=_.ca("lottie-component"),u;_.V3(function(){var O;return void((O=u)==null?void 0:O.destroy())});
var E;_.h2(function(){var O=_.SJ(J);if(O!==E){E=O;var f=Object.assign({},{animationName:O,animationRef:_.SJ(r)},_.SJ(z));try{_.ab().resolve(mBJ)().then(function(F){var h;(h=u)==null||h.destroy();var v,d;h=(d=P==null?void 0:(v=P())==null?void 0:v.value)!=null?d:N.value;v=f.animationRef;d=f.listeners;F=F.loadAnimation(Object.assign({},{container:h},f.animationConfig));v&&(v.lottieEl=F);if(d)for(h=_.C(Object.entries(d)),v=h.next();!v.done;v=h.next())d=_.C(v.value),v=d.next().value,(d=d.next().value)&&
F.addEventListener(v,d);u=F})}catch(F){O=F;
var A="LottieComponent error.";O.message&&(A+=" Original description: "+O.message);_.Tx(O,A);_.Xd(O);var n;((n=f.listeners)==null?0:n.error)&&f.listeners.error(O)}}},"lbhvPc");
return _.B(UZE,{cond:function(){return!(P==null?0:P())},
then:function(){return _.B("lottie-component",{class:_.B8("ytLottieComponentHost",I),el:N})}})},"z");_.Jf(_.ec(function(a){return _.B("ytd-lottie-player",{id:a.id,hidden:a.hidden,class:a.className,"aria-label":a.ariaLabel,style:"display: block;"},_.B(_.b4,{data:a.data,animationName:function(){var z;return((z=a.data().animationConfig)==null?void 0:z.name)||""},
animationRef:function(){return a.data().animationRef}}))},"A"),"ytd-lottie-player",{props:{data:_.zl,
id:_.zl,hidden:_.zl,className:_.zl,ariaLabel:_.zl}});var ht=function(){var a=_.G.apply(this,arguments)||this;a.animationRef={};a.delhiIconsEnabled=_.K("enable_web_delhi_icons");return a};
_.b(ht,_.G);_.Z=ht.prototype;
_.Z.handlePropertyChange=function(){var a=this.animatedIcon,z=this.active,I=this.isDarkTheme;if(a){var J=this.previousActive!==z;this.previousActive=z;this.animationRef.lottieEl?J&&this.toggleAnimation(z,a.totalFrames):z?this.initializeAnimationAsToggled(a.lottiePlayerProps,a.totalFrames):this.initializeAnimationAsUntoggled(a.lottiePlayerProps);a.lottiePlayerProps.animationRef=this.animationRef;this.animatedIconType=a.type;this.lottiePlayerProps=this.computeLottiePlayerProps(a,I)}};
_.Z.computeLottiePlayerProps=function(a,z){var I=this.deepCloneLottiePlayerProps(a);z?(z=a.nameDarkTheme,a=a.pathDarkTheme):(z=a.name,a=a.path);I.animationConfig.name=z;(z=iJ.get(a))?I.animationConfig.animationData=z:I.animationConfig.path=a;return I};
_.Z.initializeAnimationAsToggled=function(a,z){a.animationConfig.initialSegment=[z-1,z]};
_.Z.initializeAnimationAsUntoggled=function(a){a.animationConfig.initialSegment=void 0};
_.Z.toggleAnimation=function(a,z){if(a){var I;(I=this.animationRef.lottieEl)==null||I.playSegments([0,z],!0)}else{var J;(J=this.animationRef.lottieEl)==null||J.playSegments([0,1],!0)}};
_.Z.deepCloneLottiePlayerProps=function(a){var z=Object.assign({},a.lottiePlayerProps.animationConfig);a=Object.assign({},a.lottiePlayerProps);a.animationConfig=z;return a};
ht.prototype.handlePropertyChange=ht.prototype.handlePropertyChange;_.L([_.x(),_.p("design:type",Object)],ht.prototype,"animatedIcon",void 0);_.L([_.x({value:!1}),_.p("design:type",Boolean)],ht.prototype,"active",void 0);_.L([_.x(),_.p("design:type",Boolean)],ht.prototype,"isDarkTheme",void 0);_.L([_.x({reflectToAttribute:!0}),_.p("design:type",String)],ht.prototype,"animatedIconType",void 0);_.L([_.x(),_.p("design:type",Boolean)],ht.prototype,"previousActive",void 0);
_.L([_.x(),_.p("design:type",Object)],ht.prototype,"lottiePlayerProps",void 0);_.L([_.x(),_.p("design:type",Object)],ht.prototype,"animationRef",void 0);_.L([_.x({reflectToAttribute:!0}),_.p("design:type",Object)],ht.prototype,"delhiIconsEnabled",void 0);_.L([_.O8("animatedIcon","active","isDarkTheme"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],ht.prototype,"handlePropertyChange",null);_.L([_.dz({is:"yt-animated-icon",disableElementRegistration:!0})],ht);
_.D(ht,"yt-animated-icon",function(){if(wQf===void 0){var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-animated-icon--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.core.yt_animated_icon.yt.animated.icon.css.js--\x3e<ytd-lottie-player class-name="[[is]] lottie-player" data="[[lottiePlayerProps]]" class="style-scope yt-animated-icon"></ytd-lottie-player>');
a.content.insertBefore(_.w().content.cloneNode(!0),a.content.firstChild);var z=a.content,I=z.insertBefore;pQi===void 0&&(pQi=document.createElement("template"));var J=pQi;I.call(z,J.content.cloneNode(!0),a.content.firstChild);wQf=a}a=wQf;return a},{mode:2});var ydJ;var k6O;var MUO=_.ec(function(a){var z=_.ca("span"),I=i1(function(){return{value:null}});
_.V3(function(){var r;(r=I.value)==null||r.cancel()});
var J=_.Bg(a.data,{equals:function(r,P){return r.iconName===P.iconName&&r.iconStyle===P.iconStyle&&r.iconSize===P.iconSize&&r.iconSetName===P.iconSetName&&r.iconSelected===P.iconSelected}},"VprOQb");
_.h2(function(){var r,P=(r=a.options)==null?void 0:r.call(a);k11(z,I,J(),P)},"Ybsape");
return _.B("span",{class:"yt-icon-shape",el:z})},"B");
MUO.idomCompat=!0;var C6M=["youtube_fill","youtube_outline"];var MRl=new _.vY({type:"iconset",value:void 0}),V6=function(){var a=_.G.apply(this,arguments)||this;a.isDarkTheme=document.documentElement.hasAttribute("dark");a.iconName="";a.iconsetName="yt-icons";a.iconset=null;a.missingIconSet=!1;a.iconType=null;a.iconShapeDataSignal=_.CW(void 0,void 0,"b0v7Ac");a.renderingOptionsSignal=_.CW({iconWidth:"100%",iconHeight:"100%",iconFilter:a.iconFilter},void 0,"Ls6l3e");a.wizHasRendered=!1;a.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return a};
_.b(V6,_.G);V6.prototype.onDarkModeToggledAction=function(a){a!==this.isDarkTheme&&(this.isDarkTheme=a)};
V6.prototype.handlePropertyChange=function(){var a=this,z,I,J,r,P,N,u,E,O,f,A,n,F,h,v,d,W;return _.t(function(l){switch(l.nextAddress){case 1:if(z=!a.icon&&!a.iconName||!a.isAttached)return l.return();I=a;J=I.icon;r=I.size;P=I.defaultToFilled;N=I.active;u=I.targetContainer;a.toggleContainerClass(u);_.K("kevlar_use_wil_icons")&&J&&(E=iFM(J),a.iconType=E.length?E[1]:null);if(J){l.jumpTo(2);break}a.iconsetName="";a.iconName="";return l.yield(a.renderIcon(u,J),3);case 3:return l.return();case 2:O=cdw(J);
f=iFM(O);f.length&&(a.iconsetName=f[0],a.iconName=f[1]);if(!_.K("kevlar_use_wil_icons")){l.jumpTo(4);break}A=V6;n=Yqi;F=a.iconType;h=a.active;v=a.defaultToFilled;d=a.size;W=a.iconsetName;return l.yield(qqe(),6);case 6:return l.yield(n.call(A,F,h,v,d,W,l.yieldResult),5);case 5:a.iconShapeData=l.yieldResult;case 4:if(a.shouldRenderIconShape(u)){l.jumpTo(7);break}return l.yield(a.determineIconSet(O,N,P,r,u),7);case 7:return l.yield(a.renderIcon(u,J),0)}})};
V6.prototype.toggleContainerClass=function(a){a?this.hostElement.classList.add("external-container"):this.hostElement.classList.remove("external-container")};
var cdw=function(a){return!_.K("default_to_innertube_icon")||a.indexOf(":")>0?a:_.Bl(a)};
_.Z=V6.prototype;_.Z.determineIconSet=function(a,z,I,J){var r=this;return _.t(function(P){return P.nextAddress==1?_.K("kevlar_system_icons")||_.Xw("INNERTUBE_CLIENT_NAME")==="WEB_REMIX"||_.Xw("INNERTUBE_CLIENT_NAME")==="WEB_CREATOR"?P.yield(r.switchToYtSysIconset(a,z,I,J),3):P.jumpTo(2):P.nextAddress!=2?P.return():P.yield(r.useYtSysIconsetForMissingIcons(a,z,I,J),0)})};
_.Z.switchToYtSysIconset=function(a,z,I,J){var r=this,P,N,u,E,O,f,A;return _.t(function(n){switch(n.nextAddress){case 1:if(!a||r.iconsetName!=="yt-icons"&&r.iconsetName!=="yt-sys-icons"){n.jumpTo(0);break}P=iFM(a);N=P[1];N=_.U4G(N);_.K("enable_polymer_icons_replace_underscores_dash")&&N.includes("_filled")&&(N=N.replace(/_filled/g,"-filled"));return n.yield(Eg(N,!0),3);case 3:return u=n.yieldResult,n.yield(Eg(N,!1),4);case 4:if((E=n.yieldResult)||z&&u)r.iconsetName="yt-sys-icons";r.iconName=r.getIconName(N,
z,I,E,u);if(J===24){n.jumpTo(0);break}O="yt-sys-icons"+J+":"+r.iconName;return n.yield(Eg(O,!1,!0),6);case 6:return f=n.yieldResult,n.yield(Eg(O,!0,!0),7);case 7:A=n.yieldResult;r.iconName=r.getIconName(N,z,I,f,A);if(!z&&f||z&&A)r.iconsetName="yt-sys-icons"+J;_.nu(n)}})};
_.Z.getIconName=function(a,z,I,J,r){a.includes("-filled")&&(a=a.replace("-filled",""));return r&&(z||I)?a+"-filled":a};
_.Z.useYtSysIconsetForMissingIcons=function(a,z,I,J){var r=this,P,N;return _.t(function(u){if(u.nextAddress==1)return r.iconsetName!=="yt-icons"?u.jumpTo(0):u.yield(Eg(r.iconName,!1,!1,!0),3);if(u.nextAddress!=4)return P=u.yieldResult,u.yield(Eg(r.iconName,!1),4);N=u.yieldResult;if(P||!N)return u.jumpTo(0);r.iconsetName="yt-sys-icons";return u.yield(r.switchToYtSysIconset(a,z,I,J),0)})};
_.Z.onIconsetAdded=function(){this.renderIcon(this.targetContainer,this.icon)};
var qqe=function(){return _.t(function(a){try{return a.return(_.ab().resolve(_.gd))}catch(z){return a.return(new Promise(function(I){_.yT().parkOrScheduleJob(function(){I(_.ab().resolve(_.gd))},2,"ci")}))}})},Yqi=function(a,z,I,J,r,P){J=J===void 0?24:J;
if(a){a=a.toLowerCase();var N=a.endsWith("_filled")||a.endsWith("-filled");z={iconName:a,iconStyle:(z===void 0?0:z)||(I===void 0?0:I)||N?"youtube_fill":"youtube_outline",iconSize:J,iconSetName:r===void 0?"yt-icons":r};I=!!P.resolveIcon(z);I||(z.iconSize=void 0,I=!!P.resolveIcon(z));!I&&N&&(z.iconName=a.substring(0,a.length-7),z.iconSize=J,I=!!P.resolveIcon(z),I||(z.iconSize=void 0,I=!!P.resolveIcon(z)));I||(z.iconStyle=void 0,I=!!P.resolveIcon(z));I||_.Xd(new _.Fn("Icon not supported",{iconName:z.iconName,
iconStyle:z.iconStyle,iconSize:z.iconSize,iconType:a}));return I?z:void 0}};
_.Z=V6.prototype;_.Z.shouldRenderIconShape=function(a){if(!_.K("kevlar_use_wil_icons")||!this.iconType||!this.iconShapeData||this.isAnimatedIcon)return!1;a=this.getContainer(a);return!pip(a,this.icon)};
_.Z.renderIcon=function(a,z){var I=this,J,r,P,N,u,E,O,f;return _.t(function(A){switch(A.nextAddress){case 1:if(z&&I.icon!==z)return A.return();J=I.getContainer(a);r=pip(J,I.icon);if(I.shouldRenderIconShape(a)&&I.iconType)return I.applyIconShape(r,J),A.return();I.removeIconShape();if(!J)return A.return();I.iconName===""&&I.iconset&&J&&(I.removeStaticIcon(I.iconset,J),r&&I.removeAnimatedIcon(J));if(I.iconName===""&&I.iconset||!I.iconsetName||!MRl)return A.return();I.iconset=MRl.byKey(I.iconsetName);
if(!I.iconset)return I.missingIconSet=!0,window.addEventListener("iron-iconset-added",_.BK(I,I.onIconsetAdded)),A.return();I.missingIconSet&&(I.missingIconSet=!1,window.removeEventListener("iron-iconset-added",_.BK(I,I.onIconsetAdded)));N=(P=r||I.isAnimatedIcon?RjM(I.icon):void 0)&&!P.lazyLoad;E=P&&((u=P)==null?void 0:u.lazyLoad)&&(P.lottiePlayerProps.animationConfig.animationData?!0:iJ.get(I.isDarkTheme?P.pathDarkTheme:P.path)?!0:!1);if(N||E)return I.applyAnimatedIcon(J,P,I.iconset),A.return();if(E||
(O=P)==null||!O.lazyLoad){A.jumpTo(2);break}f=maM(P,I.isDarkTheme);I.applyStaticIcon(I.iconset,J,I.iconName,a,r);return A.yield(f,3);case 3:return A.yield(I.renderIcon(I.targetContainer,I.icon),4);case 4:return A.return();case 2:I.applyStaticIcon(I.iconset,J,I.iconName,a,r),_.nu(A)}})};
_.Z.getContainer=function(a){var z,I=(z=kDO(this.hostElement))==null?void 0:z.host;z=!!I&&!!I.polymerController;if(!a||z)return a?this.getTargetContainer(a,I):this.hostElement};
_.Z.getTargetContainer=function(a,z){var I=_.PK(z).querySelector("#"+a);I||(a=new _.Fn("yt-icon container missing",z.is,a),_.Gx(a));return I};
_.Z.applyStaticIcon=function(a,z,I,J,r){r&&this.removeAnimatedIcon(z);this.removeIconShape();r=r&&!!this.iconType&&!!this.iconShapeData&&_.K("kevlar_use_wil_icons");try{r?this.applyIconShape(!1,z):a.applyIcon(z,I)}catch(P){this.handleError(P,J,z)}};
_.Z.applyIconShape=function(a,z){this.iconset&&z&&(this.removeStaticIcon(this.iconset,z),a&&this.removeAnimatedIcon(z));a={iconWidth:"100%",iconHeight:"100%",iconFilter:this.iconFilter};var I=_.C(this.iconShapeDataSignal);z=I.next().value;I=I.next().value;var J=_.C(this.renderingOptionsSignal),r=J.next().value;J=J.next().value;I(this.iconShapeData);J(a);if(!this.wizHasRendered)for(this.wizHasRendered=!0,a=_.C(cS7(z,r)).next().value;a.firstChild;)_.PK(this.hostElement).appendChild(a.firstChild)};
_.Z.removeIconShape=function(){if(_.K("kevlar_use_wil_icons"))(0,this.iconShapeDataSignal[1])(void 0)};
_.Z.removeStaticIcon=function(a,z){a.removeIcon(z)};
_.Z.applyAnimatedIcon=function(a,z,I){this.removeStaticIcon(I,a);this.removeIconShape();var J;I=this.animatedIconElement&&((J=this.animatedIconElement.polymerController.animatedIcon)==null?void 0:J.type)===z.type;if(this.animatedIconElement&&I){this.animatedIconElement.polymerController.animatedIcon=z;var r;((r=this.animatedIconElement)==null?void 0:r.polymerController.active)!==this.active&&(this.animatedIconElement.polymerController.active=this.active)}else this.animatedIconElement&&this.removeAnimatedIcon(a),
this.animatedIconElement=document.createElement("yt-animated-icon"),this.animatedIconElement.polymerController.animatedIcon=z,this.animatedIconElement.polymerController.active=this.active,_.K("delhi_modern_web_player_icons")?(z=L$7(a,this.icon)&&a.closest("yt-player-quick-action-buttons")?{useDarkTheme:!0}:void 0,this.animatedIconElement.polymerController.isDarkTheme=z?z.useDarkTheme:this.isDarkTheme):this.animatedIconElement.polymerController.isDarkTheme=this.isDarkTheme,_.K("kevlar_use_wil_icons")?
a.insertBefore(this.animatedIconElement,a.childNodes[0]):(a=_.PK(a),a.insertBefore(this.animatedIconElement,a.childNodes[0]))};
_.Z.removeAnimatedIcon=function(a){_.K("kevlar_use_wil_icons")?this.animatedIconElement&&a.contains(this.animatedIconElement)&&a.removeChild(this.animatedIconElement):(a=_.PK(a),this.animatedIconElement&&a.contains(this.animatedIconElement)&&a.removeChild(this.animatedIconElement));this.animatedIconElement=void 0};
_.Z.handleError=function(a,z,I){_.Tx(a,this.iconName,z,I);z=pip(I,this.icon);var J=!1;window.location.href.includes("JpymaW6Lh2w")?J=!0:I._svgIcon&&(I=(I=I._svgIcon.parentNode)?I.tagName:"unknown",_.Tx(a,I),I==="YT-ICON"&&a.name==="NotFoundError"?J=!0:a.name==="NotFoundError"&&z&&(J=!0));J?_.Xd(a):_.Gx(a)};
_.eH.Object.defineProperties(V6,{template:{configurable:!0,enumerable:!0,get:function(){if(k6O===void 0){var a=document.createElement("template");_.V(a,"\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-icon--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.core.yt_icon.yt.icon.css.js--\x3e");a.content.insertBefore(_.w().content.cloneNode(!0),a.content.firstChild);var z=a.content,I=z.insertBefore;
ydJ===void 0&&(ydJ=document.createElement("template"));var J=ydJ;I.call(z,J.content.cloneNode(!0),a.content.firstChild);k6O=a}a=k6O;return a}}});
V6.prototype.handlePropertyChange=V6.prototype.handlePropertyChange;_.L([_.Q(_.Hc.YtActionHandlerBehavior),_.p("design:type",Object)],V6.prototype,"actionHandlerBehavior",void 0);_.L([_.x(),_.p("design:type",String)],V6.prototype,"icon",void 0);_.L([_.x({value:!1}),_.p("design:type",Boolean)],V6.prototype,"active",void 0);_.L([_.x({value:!1}),_.p("design:type",Boolean)],V6.prototype,"defaultToFilled",void 0);_.L([_.x({value:!1}),_.p("design:type",Boolean)],V6.prototype,"isAnimatedIcon",void 0);
_.L([_.x({value:24}),_.p("design:type",Number)],V6.prototype,"size",void 0);_.L([_.x({value:""}),_.p("design:type",String)],V6.prototype,"targetContainer",void 0);_.L([_.x(),_.p("design:type",Object)],V6.prototype,"animatedIconElement",void 0);_.L([_.x(),_.p("design:type",Object)],V6.prototype,"isDarkTheme",void 0);_.L([_.x({reflectToAttribute:!0}),_.p("design:type",Boolean)],V6.prototype,"ariaHidden",void 0);_.L([_.x({reflectToAttribute:!0}),_.p("design:type",String)],V6.prototype,"ariaLabel",void 0);
_.L([_.x({reflectToAttribute:!0}),_.p("design:type",String)],V6.prototype,"role",void 0);_.L([_.x({reflectToAttribute:!0}),_.p("design:type",String)],V6.prototype,"tabindex",void 0);_.L([_.x(),_.p("design:type",String)],V6.prototype,"style",void 0);_.L([_.x(),_.p("design:type",String)],V6.prototype,"iconFilter",void 0);
_.L([_.O8("icon","active","defaultToFilled","size","targetContainer","isAttached","isDarkTheme"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype",Promise)],V6.prototype,"handlePropertyChange",null);_.L([_.dz({is:"yt-icon",noInjection:!0})],V6);var Y$E="section1Color section2Color section3Color section4Color navBarColor primaryTitleColor secondaryTitleColor bodyTextColor iconActivatedColor iconInactiveColor iconDisabledColor".split(" "),ejm=["backgroundColor","borderColor","foregroundTitleColor","foregroundBodyColor","foregroundActivatedColor"];var eli={};eli.YtPlaintextBehavior=[_.V_,{properties:{plaintextOnly:{type:Boolean,value:!1}},detached:function(){this.plaintextOnly&&(this.hostElement.removeEventListener("paste",this.onPaste_),this.removeOwnKeyBindings())},
attached:function(){this.plaintextOnly&&(this.hostElement.addEventListener("paste",this.onPaste_),this.addOwnKeyBinding("ctrl+b meta+b ctrl+i meta+i","preventRichTextFormatting_"))},
onPaste_:function(a){a.preventDefault();a=a.clipboardData.getData("text/plain");document.execCommand("insertText",!1,a)},
preventRichTextFormatting_:function(a){_.gL&&(a=a.detail.keyboardEvent,a.stopImmediatePropagation(),a.preventDefault())}}];var aQX;var jew;var Q6=function(){var a=_.G.apply(this,arguments)||this;a.ignoreShadyDom=!1;a.hasChange_=!1;a.hasSetTitle_=!1;a.useIOObserverForVisibilityLogging_=_.K("kevlar_use_vimio_behavior")&&_.Xw("INNERTUBE_CLIENT_NAME")==="WEB";a.ytFormattedStringObserverHandlerKeys_=void 0;return a};
_.b(Q6,_.G);_.Z=Q6.prototype;_.Z.created=function(){this.useIOObserverForVisibilityLogging_=_.K("kevlar_use_vimio_behavior")&&_.Xw("INNERTUBE_CLIENT_NAME")==="WEB";this.isEmpty=!0};
_.Z.ready=function(){_.Xw("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_()};
_.Z.attached=function(){this.hasChange_&&this.textChanged_(this.text)};
_.Z.detached=function(){this.unobserveIOObservers_()};
_.Z.clearContents_=function(){for(var a=this.getRoot(),z=a.lastChild;z&&z.tagName!=="STYLE";){try{a.removeChild(z)}catch(I){break}z=a.lastChild}};
_.Z.unobserveIOObservers_=function(){if(this.useIOObserverForVisibilityLogging_&&this.ytRendererBehavior.visibilityObserver&&this.ytFormattedStringObserverHandlerKeys_){for(var a=_.C(this.ytFormattedStringObserverHandlerKeys_),z=a.next();!z.done;z=a.next())this.ytRendererBehavior.visibilityObserver.unobserveByKey(z.value);this.ytFormattedStringObserverHandlerKeys_.length=0}};
_.Z.resetForAttributedString=function(){var a=this.getRoot();!a.querySelector("yt-attributed-string")&&this.ytAttributedStringElementRef&&(this.clearContents_(),a.appendChild(this.ytAttributedStringElementRef))};
_.Z.resetForFormattedString=function(){var a=this.getRoot(),z=a.querySelector("yt-attributed-string");z&&(this.ytAttributedStringElementRef=a.removeChild(z))};
_.Z.textChanged=function(){this.textChanged_(this.text)};
_.Z.textChanged_=function(a){if(this.isAttached===void 0)this.hasChange_=!0;else{this.hasChange_=!1;this.isEmpty=!a||!a.runs&&!a.simpleText;if(_.K("web_replace_formatted_with_attributed_string")){if(this.useYtAttributedString){this.resetForAttributedString();return}this.resetForFormattedString()}this.unobserveIOObservers_();for(var z=this.hostElement.firstChild;z&&z.nodeName==="FONT";){var I=z;z=z.nextSibling;this.hostElement.removeChild(I)}z=this.getRoot();if(this.isEmpty)this.clearContents_();else{this.ellipsisTruncateChanged_();
I=a.simpleText;var J;!I&&((J=a.runs)==null?void 0:J.length)===1&&this.isSimpleString_(a.runs[0])&&(I=a.runs[0].text);I!==void 0&&!this.respectHtmlDir&&this.useMixedDirectionFormattedStrings&&_.Xw("HTML_DIR")==="rtl"&&(this.hostElement.dir="auto");if(I!==void 0){try{z.textContent=I}catch(r){}z.textContent||(this.isEmpty=!0)}else a=a.runs,I!==void 0&&(a=[{text:I}]),this.ellipsisTruncate?this.hostElement.classList.add("complex-string"):this.hostElement.classList.remove("complex-string"),a&&this.updateText_(a),
z.textContent||this.hasEmoji||(this.isEmpty=!0)}}};
_.Z.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)};
_.Z.computeAriaLabel_=function(a){return a};
_.Z.computeEllipsisTruncateStyling=function(a,z){return a&&!z};
_.Z.computeUseAttributedString=function(a){return _.K("web_replace_formatted_with_attributed_string")&&sC0(a)&&!this.disableAttributedString&&!this.enableContentEditable};
_.Z.setNodeStyle_=function(a,z){!this.useMixedDirectionFormattedStrings||this.respectHtmlDir||_.K("disable_child_node_auto_formatted_strings")&&this.hostElement.dir==="auto"?z.removeAttribute("dir"):z.setAttribute("dir","auto");z.classList.remove("bold","deemphasize","italic","strikethrough","bracket","error-underline");z.style.color="";var I=null;this.noStyles||(a.bold&&(z.classList.add("bold"),I="bold"),a.deemphasize&&(z.classList.add("deemphasize"),I="deemphasize"),a.italics&&z.classList.add("italic"),
a.strikethrough&&z.classList.add("strikethrough"),a.errorUnderline&&(z.classList.add("error-underline"),this.isDarkTheme=document.documentElement.hasAttribute("dark")),a.bracket&&z.classList.add("bracket"),a.textColor&&(z.style.color=_.Da(a.textColor)));I!==z.getAttribute("style-target")&&(I?z.setAttribute("style-target",I):z.removeAttribute("style-target"))};
_.Z.setUpVisibilityLogging_=function(a,z){var I=this;this.setNodeTrackingParams_(a,z);var J;((J=z.data)==null?0:J.trackingParams)&&this.useIOObserverForVisibilityLogging_&&this.ytRendererBehavior.visibilityObserver&&(a=this.ytRendererBehavior.visibilityObserver.observe(z,function(r){var P=I.ytRendererBehavior.getVisibilityLogger();P&&P.reportShown(r)},this.ytRendererBehavior.visibilityOptionVisible_),z=this.ytRendererBehavior.visibilityObserver.observe(z,function(r){var P=I.ytRendererBehavior.getVisibilityLogger();
P&&P.reportHidden(r)},this.ytRendererBehavior.visibilityOptionHidden_),this.ytFormattedStringObserverHandlerKeys_||(this.ytFormattedStringObserverHandlerKeys_=[]),this.ytFormattedStringObserverHandlerKeys_.push(a),this.ytFormattedStringObserverHandlerKeys_.push(z))};
_.Z.setNodeTrackingParams_=function(a,z){z.data||(z.data={});if((a=a.loggingDirectives?a.loggingDirectives.trackingParams:null)||z.data.trackingParams)z.data.trackingParams=a};
_.Z.computeHasLinkOnly_=function(a){return!(!a||a.length!==1||this.noEndpoints||!a[0].navigationEndpoint)};
_.Z.getRoot=function(){var a=this.buildScopeDomOptions();return this.enableContentEditable?_.PK(_.PK(this.hostElement,a).querySelector("[contenteditable]")):_.PK(this.hostElement,a)};
_.Z.fixContenteditableScope=function(){var a=function(z){z&&(z.nodeType===1&&z.classList&&(z.classList.add("style-scope"),z.classList.add("yt-formatted-string")),z.childNodes&&z.childNodes.forEach(function(I){a(I)}))};
a(this.getRoot())};
_.Z.updateText_=function(a){for(var z=a.length,I=this.getRoot(),J=I.firstChild;J&&J.nodeName==="STYLE";)J=J.nextSibling;for(var r=0;r<z&&J;){var P=a[r],N=_.K("remove_cr_char")&&P.text?P.text.replace("\r",""):P.text;if(this.isSimpleString_(P)&&!this.useMixedDirectionFormattedStrings)if(J.nodeName==="#text"){J.textContent!=N&&(J.textContent=N);r++;J=J.nextSibling;continue}else break;if(_.H(P,TQ))break;else if(!this.noEndpoints&&P.navigationEndpoint){if(J.nodeName!=="A")break;this.setDataOnAnchor_(J,
P.navigationEndpoint)}else if(J.nodeName!=="SPAN")break;this.setNodeStyle_(P,J);this.setUpVisibilityLogging_(P,J);J.textContent!=N&&(J.textContent=N);r++;J=J.nextSibling}if(J)for(P=I.lastChild,J=r?J.previousSibling:null;P&&P!=J;){try{I.removeChild(P)}catch(u){break}P=I.lastChild}r!==z&&this.addTextNodes_(a,r)};
_.Z.addTextNodes_=function(a,z){for(var I=document.createDocumentFragment(),J=a.length;z<J;z++){var r=a[z],P=_.K("remove_cr_char")&&r.text?r.text.replace("\r",""):r.text;if(this.isSimpleString_(r)&&!this.useMixedDirectionFormattedStrings)I.appendChild(document.createTextNode(P));else{var N=_.H(r,TQ);if(N){if(N.image){var u=document.createElement("img");N.isCustomEmoji||u.classList.add("small-emoji");u.classList.add("emoji");N.isCustomEmoji&&(u.dataset.emojiId=N.emojiId);u.src=_.r4(N.image.thumbnails,
this.emojiSize);(r=this.get("image.accessibility.accessibilityData.label",N))?u.alt=r:N.shortcuts&&N.shortcuts.length>0?u.alt=N.shortcuts[0]:N.emojiId&&(u.alt=N.emojiId);I.appendChild(u);this.hasEmoji=!0}}else!this.noEndpoints&&r.navigationEndpoint?(u=document.createElement("a"),u.classList.add("yt-simple-endpoint"),u.setAttribute("spellcheck","false"),this.setDataOnAnchor_(u,r.navigationEndpoint)):u=document.createElement("span"),this.setNodeStyle_(r,u),this.setUpVisibilityLogging_(r,u),u.appendChild(document.createTextNode(P)),
I.appendChild(u)}}this.getRoot().appendChild(I)};
_.Z.isSimpleString_=function(a){return(this.noEndpoints||!a.navigationEndpoint)&&!_.H(a,TQ)&&(this.noStyles||!(a.bold||a.deemphasize||a.italics||a.strikethrough||a.errorUnderline||a.bracket||a.textColor))&&!a.loggingDirectives};
_.Z.getRawText=function(){return _.cd(this.text)};
_.Z.getFirstRunText=function(){var a;if(((a=this.text)==null?0:a.runs)&&this.text.runs[0])return this.text.runs[0].text};
_.Z.setFirstRunText=function(a){var z;((z=this.text)==null?0:z.runs)&&this.text.runs[0]&&(this.text.runs[0].text=a,this.textChanged_(this.text))};
_.Z.setDataOnAnchor_=function(a,z){var I=this;!_.K("yf_formatted_string_service_endpoint_killswitch")&&this.isServiceEndpoint_(z)||this.isSignalServiceEndpoint_(z)?(a.onclick=this.serviceEndpointHandler_(z),_.Ua(a,"#")):iUG({text:this.text,command:z},function(){RpM(a,z,I.target)})};
_.Z.isServiceEndpoint_=function(a){var z;return!((z=_.H(a==null?void 0:a.commandMetadata,_.O_))==null||!z.sendPost)};
_.Z.isSignalServiceEndpoint_=function(a){return!!_.H(a,_.ge)};
_.Z.serviceEndpointHandler_=function(a){var z=this;return function(I){_.N$(z.hostElement,[a]);I.preventDefault()}};
_.Z.overrideAriaLabelChanged_=function(){var a=this.getRoot();this.enableContentEditable&&a&&a.setAttribute("aria-label",this.overrideAriaLabel)};
_.Z.enableContentEditableChanged_=function(){var a=this,z=this.buildScopeDomOptions();if(this.enableContentEditable){if(this.hostElement.removeAttribute("dir"),z=_.PK(this.hostElement,z),!z.lastChild||z.lastChild instanceof HTMLElement&&z.lastChild.id!=="contenteditable-root"){var I=document.createElement("div");I.id="contenteditable-root";I.setAttribute("contenteditable","true");I.setAttribute("dir","auto");I.onfocus=function(){a.hostElement.dispatchEvent(new FocusEvent("focus",{bubbles:!1}))};
z.appendChild(I);this.overrideAriaLabel&&I.setAttribute("aria-label",this.overrideAriaLabel)}}else I=_.ZL(this.hostElement).firstChild,I instanceof HTMLElement&&I.id==="contenteditable-root"&&_.PK(this.hostElement,z).removeChild(I)};
_.Z.buildScopeDomOptions=function(){if(this.ignoreShadyDom)return{ignoreOwnerDocument:!0}};
_.Z.getNodesForVisibilityLogging_=function(){return _.Z8(this.getRoot().childNodes,function(a){var z;return!((z=a.data)==null||!z.trackingParams)})};
_.Z.getNodes=function(){return this.getNodesForVisibilityLogging_()};
_.Z.onShow=function(){if(!this.useIOObserverForVisibilityLogging_){var a=this.ytRendererBehavior.getVisibilityLogger();a&&this.getNodesForVisibilityLogging_().forEach(function(z){a.reportShown(z)})}};
_.Z.onHide=function(){if(!this.useIOObserverForVisibilityLogging_){var a=this.ytRendererBehavior.getVisibilityLogger();a&&this.getNodesForVisibilityLogging_().forEach(function(z){a.reportHidden(z)})}};
_.eH.Object.defineProperties(Q6.prototype,{useMixedDirectionFormattedStrings:{configurable:!0,enumerable:!0,get:function(){return this.plaintextOnly?!1:_.K("enable_mixed_direction_formatted_strings")}}});
Q6.prototype.enableContentEditableChanged_=Q6.prototype.enableContentEditableChanged_;Q6.prototype.overrideAriaLabelChanged_=Q6.prototype.overrideAriaLabelChanged_;Q6.prototype.ellipsisTruncateChanged_=Q6.prototype.ellipsisTruncateChanged_;Q6.prototype.textChanged=Q6.prototype.textChanged;_.L([_.Q(eli.YtPlaintextBehavior),_.p("design:type",Object)],Q6.prototype,"ytPlaintextBehavior",void 0);_.L([_.Q(_.Ms.YtComponentBehavior),_.p("design:type",Object)],Q6.prototype,"ytComponentBehavior",void 0);
_.L([_.Q(_.k.YtRendererBehavior),_.p("design:type",Object)],Q6.prototype,"ytRendererBehavior",void 0);_.L([_.x(),_.p("design:type",Object)],Q6.prototype,"text",void 0);_.L([_.x(),_.p("design:type",Boolean)],Q6.prototype,"noEndpoints",void 0);_.L([_.x(),_.p("design:type",Boolean)],Q6.prototype,"noStyles",void 0);_.L([_.x({reflectToAttribute:!0}),_.p("design:type",Boolean)],Q6.prototype,"isDarkTheme",void 0);
_.L([_.x({reflectToAttribute:!0,value:!1}),_.p("design:type",Boolean)],Q6.prototype,"splitLines",void 0);_.L([_.x({reflectToAttribute:!0}),_.p("design:type",Boolean)],Q6.prototype,"forceDefaultStyle",void 0);_.L([_.x({reflectToAttribute:!0}),_.p("design:type",Boolean)],Q6.prototype,"ellipsisTruncate",void 0);_.L([_.x(),_.p("design:type",Object)],Q6.prototype,"ignoreShadyDom",void 0);
_.L([_.x({reflectToAttribute:!0,computed:"computeEllipsisTruncateStyling(ellipsisTruncate, useYtAttributedString)"}),_.p("design:type",Boolean)],Q6.prototype,"ellipsisTruncateStyling",void 0);_.L([_.x({reflectToAttribute:!0,computed:"computeAriaLabel_(text.accessibility.accessibilityData.label)"}),_.p("design:type",String)],Q6.prototype,"ariaLabel",void 0);_.L([_.x({reflectToAttribute:!0}),_.p("design:type",Boolean)],Q6.prototype,"isEmpty",void 0);
_.L([_.x({reflectToAttribute:!0,computed:"computeHasLinkOnly_(text.runs)"}),_.p("design:type",Boolean)],Q6.prototype,"hasLinkOnly_",void 0);_.L([_.x(),_.p("design:type",Boolean)],Q6.prototype,"hasEmoji",void 0);_.L([_.x(),_.p("design:type",Boolean)],Q6.prototype,"disableAttributedString",void 0);_.L([_.x(),_.p("design:type",Boolean)],Q6.prototype,"isOverlay",void 0);_.L([_.x(),_.p("design:type",Boolean)],Q6.prototype,"linkInheritColor",void 0);
_.L([_.x(),_.p("design:type",Boolean)],Q6.prototype,"noPreWrap",void 0);_.L([_.x(),_.p("design:type",Boolean)],Q6.prototype,"userInput",void 0);_.L([_.x({value:16}),_.p("design:type",Number)],Q6.prototype,"emojiSize",void 0);_.L([_.x(),_.p("design:type",String)],Q6.prototype,"target",void 0);_.L([_.x(),_.p("design:type",Boolean)],Q6.prototype,"enableContentEditable",void 0);_.L([_.x(),_.p("design:type",String)],Q6.prototype,"overrideAriaLabel",void 0);
_.L([_.x(),_.p("design:type",Boolean)],Q6.prototype,"respectHtmlDir",void 0);_.L([_.x(),_.p("design:type",Boolean)],Q6.prototype,"respectLangDir",void 0);_.L([_.S("plaintextOnly"),_.p("design:type",Boolean),_.p("design:paramtypes",[])],Q6.prototype,"useMixedDirectionFormattedStrings",null);_.L([_.x({computed:"computeUseAttributedString(text)"}),_.p("design:type",Boolean)],Q6.prototype,"useYtAttributedString",void 0);
_.L([_.O8("text"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],Q6.prototype,"textChanged",null);_.L([_.O8("ellipsisTruncate"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],Q6.prototype,"ellipsisTruncateChanged_",null);_.L([_.O8("overrideAriaLabel"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],Q6.prototype,"overrideAriaLabelChanged_",null);
_.L([_.O8("enableContentEditable"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],Q6.prototype,"enableContentEditableChanged_",null);_.L([_.dz({is:"yt-formatted-string",disableElementRegistration:!0})],Q6);
_.D(Q6,"yt-formatted-string",function(){if(jew===void 0){var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-formatted-string--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.yt_formatted_string.yt.formatted.string.css.js--\x3e<yt-attributed-string data="[[text]]" disable="[[!useYtAttributedString]]" disable-upgrade="[[!useYtAttributedString]]" ellipsis-truncate="[[ellipsisTruncate]]" hidden="[[!useYtAttributedString]]" is-overlay="[[isOverlay]]" link-inherit-color="[[linkInheritColor]]" no-pre-wrap="[[!splitLines]]" user-input="[[userInput]]" class="style-scope yt-formatted-string"></yt-attributed-string>');a.content.insertBefore(_.w().content.cloneNode(!0),
a.content.firstChild);var z=a.content,I=z.insertBefore;aQX===void 0&&(aQX=document.createElement("template"));var J=aQX;I.call(z,J.content.cloneNode(!0),a.content.firstChild);jew=a}a=jew;return a});var zfo;var IQj;var JFe;var rFl;var SY=function(){var a=_.G.apply(this,arguments)||this;a.focused=!1;a.disabled=!1;a.isOverlay=!1;return a};
_.b(SY,_.G);SY.prototype.triggerDown=function(){if(!this.disabled){_.CM(this.hostElement,"down",!0);var a;(a=this.currentAnimation)==null||a.cancel()}};
SY.prototype.triggerUp=function(){if(!this.disabled){_.CM(this.hostElement,"down",!1);var a=this.fillElement;var z=this.strokeElement;typeof GroupEffect==="function"?(a=new GroupEffect([w27(a),mz3(z)]),a=new Animation(a,document.timeline)):a=new Sqv(a,z);this.currentAnimation=a;var I;(I=this.currentAnimation)==null||I.play()}};
_.L([_.A3(".stroke"),_.p("design:type",HTMLElement)],SY.prototype,"strokeElement",void 0);_.L([_.A3(".fill"),_.p("design:type",HTMLElement)],SY.prototype,"fillElement",void 0);_.L([_.x({reflectToAttribute:!0}),_.p("design:type",Object)],SY.prototype,"focused",void 0);_.L([_.x(),_.p("design:type",Object)],SY.prototype,"disabled",void 0);_.L([_.x({reflectToAttribute:!0}),_.p("design:type",Object)],SY.prototype,"isOverlay",void 0);_.L([_.dz({is:"yt-interaction",disableElementRegistration:!0})],SY);
_.D(SY,"yt-interaction",function(){if(rFl===void 0){var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-interaction--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.yt_interaction.yt.interaction.css.js--\x3e<div class="stroke style-scope yt-interaction"></div><div class="fill style-scope yt-interaction"></div>');a.content.insertBefore(_.w().content.cloneNode(!0),
a.content.firstChild);var z=a.content,I=z.insertBefore;JFe===void 0&&(JFe=document.createElement("template"));var J=JFe;I.call(z,J.content.cloneNode(!0),a.content.firstChild);rFl=a}a=rFl;return a},{mode:2});var i4=function(){return _.G.apply(this,arguments)||this};
_.b(i4,_.G);_.Z=i4.prototype;_.Z.ready=function(){var a=this,z=_.PK(this.hostElement).querySelector("#button");z.addEventListener("focus",function(){iAO||(iAO=new SAj);a.keyboardFocused=iAO.isKeyBoardInUse()});
z.addEventListener("blur",function(){a.keyboardFocused=!1;a.rippleUp_()})};
_.Z.computeTabIndex_=function(a){return a?-1:0};
_.Z.computeButtonAriaPressed_=function(a){if(this.toggleable)return a?"true":"false"};
_.Z.rippleDown_=function(){_.PK(this.hostElement).querySelector("#interaction").triggerDown()};
_.Z.rippleUp_=function(){_.PK(this.hostElement).querySelector("#interaction").triggerUp()};
_.Z.onPressedChanged_=function(){var a=_.ZL(_.PK(this.hostElement).querySelector("#button")).querySelector("yt-icon")||_.ZL(_.PK(this.hostElement).querySelector("#button")).children[0];a&&(a.active=this.pressed)};
i4.prototype.onPressedChanged_=i4.prototype.onPressedChanged_;i4.prototype.rippleUp_=i4.prototype.rippleUp_;i4.prototype.rippleDown_=i4.prototype.rippleDown_;_.L([_.x(),_.p("design:type",String)],i4.prototype,"label",void 0);_.L([_.x({reflectToAttribute:!0}),_.p("design:type",Boolean)],i4.prototype,"disabled",void 0);_.L([_.x(),_.p("design:type",Boolean)],i4.prototype,"pressed",void 0);_.L([_.x(),_.p("design:type",Object)],i4.prototype,"toggleable",void 0);
_.L([_.x(),_.p("design:type",Boolean)],i4.prototype,"untabbable",void 0);_.L([_.x(),_.p("design:type",Boolean)],i4.prototype,"keyboardFocused",void 0);_.L([_.gz("down"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],i4.prototype,"rippleDown_",null);_.L([_.gz("up"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],i4.prototype,"rippleUp_",null);
_.L([_.O8("pressed"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],i4.prototype,"onPressedChanged_",null);_.L([_.dz({is:"yt-icon-button",disableElementRegistration:!0})],i4);
_.D(i4,"yt-icon-button",function(){if(IQj===void 0){var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-icon-button--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.yt_icon_button.yt.icon.button.css.js--\x3e<button id="button" aria-label$="[[label]]" aria-pressed$="[[computeButtonAriaPressed_(pressed)]]" disabled$="[[disabled]]" tabindex$="[[computeTabIndex_(untabbable)]]" class="style-scope yt-icon-button"><slot class="style-scope yt-icon-button"></slot></button><yt-interaction id="interaction" class="circular style-scope yt-icon-button" focused="[[keyboardFocused]]"></yt-interaction>');a.content.insertBefore(_.w().content.cloneNode(!0),
a.content.firstChild);var z=a.content,I=z.insertBefore;zfo===void 0&&(zfo=document.createElement("template"));var J=zfo;I.call(z,J.content.cloneNode(!0),a.content.firstChild);IQj=a}a=IQj;return a},{mode:2});var PDE;var ZyX=function(){var a=document.body,z=a.appendChild;if(PDE===void 0){var I=document.createElement("template");_.V(I,'\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>');
PDE=I}I=PDE;z.call(a,I.content)};
document.body?ZyX():window.addEventListener("DOMContentLoaded",ZyX);var CDf=_.kK(["aria-"]),xu={};xu.YtRenderButtonBehavior=[_.k.YtRendererBehavior,_.FW.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!!_.ab().resolve(_.eL(_.ET))&&_.K("kevlar_keyboard_button_focus")},
reflectToAttribute:!0},keyboardFocused:{type:Boolean,value:!1,reflectToAttribute:!0},startJustified:{type:Boolean,value:!1,reflectToAttribute:!0},forceIconButton:{type:Boolean,value:!1},forceIconOnly:{type:Boolean,value:!1},styleActionButton:{type:Boolean,reflectToAttribute:!0},verticallyAligned:{type:Boolean,value:!1,reflectToAttribute:!0},noink:{type:Boolean,value:!1},showTooltips:{type:Boolean,value:!1},buttonRaised:{type:Boolean,value:!1},disabled:{type:Boolean,observer:"disabledChanged_",reflectToAttribute:!0},
sendServiceEndpointWhenDisabled:{type:Boolean,value:!1},sendCommandWhenDisabled:{type:Boolean,value:!1},ellipsisTruncate:Boolean,buttonTooltipPosition:{type:String,value:"bottom"},buttonSize:{type:String,reflectToAttribute:!0},endpoint:{type:Object,readOnly:!0},serviceEndpoint:{type:Object,readOnly:!0},command:{type:Object,readOnly:!0},buttonIcon:{type:String,readOnly:!0,observer:"buttonIconChanged_"},buttonText:{type:Object,readOnly:!0},buttonAccessibility:{type:Object,readOnly:!0},buttonTooltip:{type:String,
readOnly:!0},buttonClass:{type:String,readOnly:!0,observer:"buttonClassChanged_"},iconPositionType:{type:String,readOnly:!0,observer:"iconPositionTypeChanged_"},iconSize:{type:Number},stampType_:{type:String,computed:"computeStampType_(forceIconButton, buttonText, buttonIcon, endpoint)",observer:"stampTypeChanged_"},componentReady_:Boolean},listeners:{focusin:"onFocus_",focusout:"onBlur_",mouseenter:"addTooltips_",tap:"onYtButtonTap_"},observers:["isDisabledChanged_(data.isDisabled)","observeBasicPalette_(data.colorData.basicColorPaletteData)",
"dataChanged_(data, componentReady_)","isSelectedChanged_(data)"],created:function(){this.elements_={};this.hasChange_=!1},
attached:function(){this.hasChange_&&this.stampTypeChanged_(this.stampType_);this.keyboardFocused=!1},
get container(){return this.root},onYtButtonTapHandler:function(){},
ytButtonServiceEndpointHandler:function(){},
updateRenderedElements:function(){if(this.elements_.endpoint){this.elements_.endpoint.data=this.endpoint;var a=this.computeHref_(this.endpoint,!0);a?_.Ua(this.elements_.endpoint,a):this.elements_.endpoint.removeAttribute("href")}if(this.buttonClass){a=this.buttonClass.split(" ");a=_.C(a);for(var z=a.next();!z.done;z=a.next())z=z.value,_.CM(this.hostElement,z,!0),this.elements_.button&&_.CM(this.elements_.button,z,!0),this.elements_.text&&_.CM(this.elements_.text,z,!0)}this.elements_.icon&&(this.elements_.icon.icon=
this.buttonIcon,this.setIconActive_(this.elements_.icon),this.iconSize&&(this.elements_.icon.size=this.iconSize));this.elements_.text&&(this.elements_.text.text=this.buttonText);this.elements_.button&&(a=null,this.buttonAccessibility&&(a=this.buttonAccessibility.label),this.elements_.button.is=="yt-icon-button"?this.elements_.button.label=a:a?_.qL([_.zB(CDf)],this.elements_.button,"aria-label",a):this.elements_.button.removeAttribute("aria-label"))},
dataChanged_:function(){this.updateRenderedElements()},
onFocus_:function(){this.addTooltips_();if(this.useKeyboardFocused){var a=_.ab().resolve(_.eL(_.ET));a&&(this.keyboardFocused=a.isKeyBoardInUse())}},
onBlur_:function(){this.keyboardFocused=!1},
addTooltips_:function(){this.elements_.endpoint&&this.showTooltips&&this.buttonTooltip&&(this.elements_.tooltip||(this.elements_.tooltip=this.reuseEnabled_()?_.C_("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,_.Q$(this.elements_.endpoint).appendChild(this.elements_.tooltip)),_.Q$(this.elements_.tooltip).textContent=this.buttonTooltip)},
buttonClassChanged_:function(a,z){if(z)for(a=z.split(" "),a=_.C(a),z=a.next();!z.done;z=a.next())z=z.value,_.CM(this.hostElement,z,!1),this.elements_.button&&_.CM(this.elements_.button,z,!1),this.elements_.text&&_.CM(this.elements_.text,z,!1)},
buttonIconChanged_:function(a){this.elements_.icon?a?(this.elements_.icon.icon=a,this.setIconActive_(this.elements_.icon)):(this.elements_.button&&_.Q$(this.elements_.button).removeChild(this.elements_.icon),this.elements_.icon=null,_.N3(this.hostElement,"is-paper-button-with-icon",!1)):a&&this.stampType_&&this.stampType_=="paper_button"&&this.addIconElementToPaperButton_()},
addIconElementToPaperButton_:function(){this.elements_.icon=this.getIcon_();this.setIconActive_(this.elements_.icon);this.elements_.button&&(this.iconPositionType&&this.iconPositionType!="BUTTON_ICON_POSITION_TYPE_LEFT_OF_TEXT"?this.iconPositionType=="BUTTON_ICON_POSITION_TYPE_RIGHT_OF_TEXT"&&_.Q$(this.elements_.button).appendChild(this.elements_.icon):_.Q$(this.elements_.button).insertBefore(this.elements_.icon,this.elements_.text),_.N3(this.hostElement,"is-paper-button-with-icon",!0))},
stampTypeChanged_:function(a){if(this.isAttached===void 0)this.hasChange_=!0;else if(this.hasChange_=!1,this.emptyContainer_(),this.elements_={},this.componentReady_=!1,a){var z=!1;this.elements_.endpoint=document.createElement("a");this.elements_.endpoint.classList.add("yt-simple-endpoint");this.elements_.endpoint.tabIndex=-1;switch(a){case "yt_icon_button_with_label":z=!0;_.CM(this.hostElement,"force-icon-button",!0);this.elements_.button=this.getYtIconButton_();a=_.Q$(this.elements_.button).firstElementChild;
this.elements_.icon=a;this.setIconActive_(this.elements_.icon);this.elements_.text=this.getFormattedString_();this.elements_.text.id="text";this.elements_.text.ellipsisTruncate=this.ellipsisTruncate;_.Q$(this.elements_.endpoint).appendChild(this.elements_.button);_.Q$(this.elements_.endpoint).appendChild(this.elements_.text);break;case "paper_button":this.elements_.button=this.reuseEnabled_()?_.C_("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;_.Q$(this.elements_.button).appendChild(this.elements_.text);_.Q$(this.elements_.endpoint).appendChild(this.elements_.button);this.buttonIcon&&this.addIconElementToPaperButton_();break;case "yt-icon-button":z=!0,this.elements_.button=this.getYtIconButton_(),a=_.Q$(this.elements_.button).firstElementChild,this.elements_.icon=a,this.setIconActive_(this.elements_.icon),
_.Q$(this.elements_.endpoint).appendChild(this.elements_.button)}_.N3(this.hostElement,"is-icon-button",z);_.N3(this.hostElement,"is-paper-button",!z);_.N3(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 I;_.PK((I=this.container.hostElement)!=null?I:this.container).appendChild(this.elements_.endpoint);this.componentReady_=!0}},
iconPositionTypeChanged_:function(){this.iconPositionType&&(this.elements_.button&&this.elements_.icon&&_.Q$(this.elements_.button).removeChild(this.elements_.icon),this.addIconElementToPaperButton_(),this.elements_.icon.icon=this.buttonIcon)},
isDisabledChanged_:function(a){if(a!=void 0||this.disabled)this.disabled=a,this.elements_.button&&(this.elements_.button.disabled=a)},
isSelectedChanged_:function(){this.setIconActive_(this.elements_.icon)},
setIconActive_:function(a){_.K("kevlar_system_icons")&&a&&this.data&&(this.data.isSelected!==void 0?a.active=this.data.isSelected:this.data.isToggled!==void 0&&(a.active=this.data.isToggled))},
observeBasicPalette_:function(a){_.xq(this.hostElement,a)},
disabledChanged_:function(a){this.data&&this.set("data.isDisabled",a)},
onYtButtonTap_:function(a){if(this.disabled)a.stopImmediatePropagation(),this.sendServiceEndpointWhenDisabled&&this.serviceEndpoint&&_.N$(this.hostElement,[this.serviceEndpoint]),this.sendCommandWhenDisabled&&this.data&&this.data.command&&this.resolveCommand(this.data.command,{},!0);else if(a=this.disableCommandHandlerOverride,!this.data||!this.data.command||a||!this.resolveCommand(this.data.command,{},!0)){if(this.serviceEndpoint)_.K("handle_service_request_actions")||_.N$(this.hostElement,[this.serviceEndpoint]),
_.PA(this.hostElement,"yt-execute-service-endpoint",{serviceEndpoint:this.serviceEndpoint});else this.onYtButtonTapHandler();_.K("handle_service_request_actions")?(a=[],this.serviceEndpoint&&a.push(this.serviceEndpoint),this.data&&this.data.command&&this.data.command!=this.serviceEndpoint&&a.push(this.data.command),a.length&&_.tR(this.hostElement,a,this.hostElement)):this.data&&this.data.command&&(a=this.data.command,a.accountUnlinkCommand||a.accountLinkCommand||a.insertAdCommand||a.insertHighlightMarkerCommand||
a.createLivestreamHighlightClipCommand||a.getVideoUploadFeedbackCommand||a.musicDeletePrivatelyOwnedEntityCommand||a.ypcCancelRecurrenceEndpoint||a.getMultiSelectCommandEndpoint?_.N$(this.hostElement,[a]):_.tR(this.hostElement,[a],this.hostElement))}},
computeStampType_:function(){return this.forceIconButton&&this.buttonText&&this.buttonIcon?"yt_icon_button_with_label":this.buttonText?"paper_button":this.buttonIcon?"yt-icon-button":null},
emptyContainer_:function(){for(var a,z=_.PK((a=this.container.hostElement)!=null?a:this.container);z.lastChild&&z.lastChild.tagName!="STYLE";)try{z.removeChild(z.lastChild)}catch(I){break}},
getYtIconButton_:function(){var a=this.reuseEnabled_()?_.C_("yt-icon-button"):document.createElement("yt-icon-button"),z=_.Q$(a).firstElementChild;if(z&&z.is!="yt-icon"){for(z=_.Q$(a);z.lastChild;)z.removeChild(z.lastChild);z=null}z||(z=this.getIcon_(),this.setIconActive_(z),_.Q$(a).appendChild(z));return a},
reuseEnabled_:function(){return _.K("enable_button_behavior_reuse")},
getIcon_:function(){return this.reuseEnabled_()?_.C_("yt-icon"):document.createElement("yt-icon")},
getFormattedString_:function(){return this.reuseEnabled_()?_.C_("yt-formatted-string"):document.createElement("yt-formatted-string")}}];_.Nml={};
_.Nml.YtButtonBehavior=[xu.YtRenderButtonBehavior,{properties:{data:Object},observers:["stateChanged_(data)","stateChanged_(data.text)","stateChanged_(data.isDisabled)","stateChanged_(data.style)","stateChanged_(forceIconOnly)"],stateChanged_:function(){var a=this.data;a&&(this._setEndpoint(this.computeEndpoint_(a)),this._setServiceEndpoint(this.computeServiceEndpoint_(a)),this._setCommand(this.computeCommand_(a)),this._setButtonIcon(this.computeButtonIcon_(a)),this._setButtonText(this.computeButtonText_(a,this.forceIconOnly)),
this._setButtonAccessibility(this.computeAccessibility_(a)),this._setButtonTooltip(this.computeTooltip_(a)),this._setButtonClass(this.computeButtonClass_(a)),this._setIconPositionType(this.computeIconPositionType_(a)),this.updateRenderedElements())},
setPressedState:function(a){var z;if((z=this.elements_)==null?0:z.button)this.elements_.button.pressed=!!a},
computeIconPositionType_:function(a){return a&&a.iconPosition||null},
computeEndpoint_:function(a){var z=a&&a.navigationEndpoint,I=this.get("data.command.commandMetadata.webCommandMetadata.url"),J=this.get("data.command.commandMetadata.webCommandMetadata.sendPost");return z?z:a&&a.command&&a.command.modalEndpoint?a.command:I&&!J&&a.command?a.command:null},
computeServiceEndpoint_:function(a){var z=a&&a.serviceEndpoint,I=this.get("data.command.commandMetadata.webCommandMetadata.sendPost");return z?z:I&&a.command?a.command:null},
computeCommand_:function(a){return a&&a.command||null},
computeButtonIcon_:function(a){return a&&a.icon&&a.icon.iconType?_.Bl(a.icon.iconType):null},
computeButtonText_:function(a,z){return!z&&a&&a.text||null},
computeAccessibility_:function(a){return this.get("accessibilityData.accessibilityData",a)||a&&a.accessibility||(a&&a.text?{label:this.getSimpleString(a.text)}:null)},
computeTooltip_:function(a){return a?a.isDisabled&&a.disabledTooltip||a.tooltip||null:null},
computeButtonClass_:function(a){var z=a&&a.style?a.style.toLowerCase().replace(/_/g,"-")+" ":"";z+=a&&a.size?a.size.toLowerCase().replace(/_/g,"-")+" ":"";a.colorData&&a.colorData.basicColorPaletteData&&a.colorData.basicColorPaletteData.borderColor&&(z+="palette-with-border");return z.trim()}}];var Gd={};var twv;var uAl;var ECw,Bmi=function(){return ECw!==void 0?ECw:ECw=document.createElement("template")};
document.head.appendChild(Bmi().content);var gCo;var Oye,fQ1=function(){return Oye!==void 0?Oye:Oye=document.createElement("template")};
document.head.appendChild(fQ1().content);var AFe;var sej,nCO=function(){return sej!==void 0?sej:sej=document.createElement("template")};
document.head.appendChild(nCO().content);var KxI;var Fxj=document.head,HyI=Fxj.appendChild,bye;if(KxI===void 0){var hfw=document.createElement("template");_.V(hfw,"\x3c!--css-build:shady--\x3e");hfw.content.insertBefore(nCO().content.cloneNode(!0),hfw.content.firstChild);KxI=hfw}bye=KxI;HyI.call(Fxj,bye.content);var Vwv=document.head,QeE=Vwv.appendChild,Sve;if(AFe===void 0){var iyE=document.createElement("template");_.V(iyE,"\x3c!--css-build:shady--\x3e");iyE.content.insertBefore(fQ1().content.cloneNode(!0),iyE.content.firstChild);AFe=iyE}Sve=AFe;QeE.call(Vwv,Sve.content);var xGi=document.head,vCX=xGi.appendChild,G_f;if(gCo===void 0){var $Gj=document.createElement("template");_.V($Gj,"\x3c!--css-build:shady--\x3e");$Gj.content.insertBefore(Bmi().content.cloneNode(!0),$Gj.content.firstChild);gCo=$Gj}G_f=gCo;vCX.call(xGi,G_f.content);var X1E;_.$q("sharingToggleButtonAndDefaultButton","buttonRenderer","yt-button-renderer");X1E=_.K("web_button_rework")&&_.TZ("BUTTON_REWORK")||_.K("web_button_rework_with_live");_.vc=function(){return _.G.apply(this,arguments)||this};
_.b(_.vc,_.G);_.vc.prototype.created=function(){this.openPopupConfig=_.Xw("openPopupConfig");this.ytButtonBehavior.showTooltips=!0};
_.vc.prototype.onYtNavigate_=function(a){var z=this.ytOpenPopupBehavior.getNavigationEndpointPopupAction(a.detail.endpoint);z&&(this.ytOpenPopupBehavior.openPopup(z),a.stopPropagation(),a.preventDefault())};
_.eH.Object.defineProperties(_.vc,{template:{configurable:!0,enumerable:!0,get:function(){if(uAl===void 0){var a=document.createElement("template");_.V(a,"\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-button-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.yt_button_renderer.yt.button.renderer.css.js--\x3e");a.content.insertBefore(_.w().content.cloneNode(!0),a.content.firstChild);
var z=a.content,I=z.insertBefore;twv===void 0&&(twv=document.createElement("template"));var J=twv;I.call(z,J.content.cloneNode(!0),a.content.firstChild);uAl=a}a=uAl;return a}}});
_.vc.prototype.onYtNavigate_=_.vc.prototype.onYtNavigate_;_.L([_.Q(_.K_.YtOpenPopupBehavior),_.p("design:type",Object)],_.vc.prototype,"ytOpenPopupBehavior",void 0);_.L([_.Q(_.Nml.YtButtonBehavior),_.p("design:type",Object)],_.vc.prototype,"ytButtonBehavior",void 0);_.L([_.gz("yt-navigate"),_.p("design:type",Function),_.p("design:paramtypes",[CustomEvent]),_.p("design:returntype")],_.vc.prototype,"onYtNavigate_",null);
_.L([_.dz({is:"yt-button-renderer",noInjection:!0,disableElementRegistration:X1E})],_.vc);var Tmf;var dGl=_.K("web_button_rework")&&_.TZ("BUTTON_REWORK")||_.K("web_button_rework_with_live"),Gl=function(){var a=_.G.apply(this,arguments)||this;a.isPressed=!1;a.forceIconButton=!1;a.forceIconOnly=!1;a.forceModernIconButton=!1;a.skipCommandHandling=!1;a.alignByText=!1;a.fitToVisibleBounds=!0;a.actionMap={"yt-update-button-action":"handleUpdateButtonAction"};a.onTap=function(z){_.PA(a.hostElement,"yt-service-request-sent-button-renderer",z)};
return a};
_.b(Gl,_.G);_.Z=Gl.prototype;_.Z.attached=function(){this.hostElement.hasAttribute("button-renderer")||this.hostElement.setAttribute("button-renderer","");this.hostElement.setAttribute("button-next","")};
_.Z.onClick=function(a){var z,I=this.disabled||((z=this.data)==null?void 0:z.isDisabled);z=this.hostElement.hasAttribute("dialog-dismiss")||this.hostElement.hasAttribute("dialog-confirm");I&&z&&a.stopPropagation()};
_.Z.computeIcon=function(){var a,z,I=(a=this.data)==null?void 0:(z=a.icon)==null?void 0:z.iconType;if(I)return _.Bl(I)};
_.Z.computeTooltip=function(){return this.data?this.data.isDisabled&&this.data.disabledTooltip||this.data.tooltip||null:null};
_.Z.handleUpdateButtonAction=function(a){a=_.H(a,qsI);var z=_.H(a==null?void 0:a.updatedButton,_.lc);if(this.data&&a&&z){var I=this.data;I.targetId&&a.targetId&&I.targetId===a.targetId&&(this.data=z)}};
_.eH.Object.defineProperties(Gl.prototype,{computedButtonShape:{configurable:!0,enumerable:!0,get:function(){var a=this;if(this.data){var z=ri3({renderer:this.data,element:this.hostElement,commandController:{onSuccess:function(){return _.PA(a.hostElement,"yt-service-request-completed-button-renderer")},
onServerError:function(){return _.PA(a.hostElement,"yt-service-request-completed-button-renderer")}},
onTapCallback:this.onTap,skipCommandHandling:this.skipCommandHandling,overrides:this.overrides,forceIcon:this.forceIconButton||this.forceIconOnly,forceDisabled:this.disabled,forceModernIconButton:this.forceModernIconButton,nextVersion:!0,isPressed:this.isPressed});z.alignByText=this.alignByText;return z}}}});
_.eH.Object.defineProperties(Gl,{template:{configurable:!0,enumerable:!0,get:function(){if(Tmf===void 0){var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e<yt-button-shape data="[[computedButtonShape]]" icon-name="[[computeIcon(data)]]"></yt-button-shape><tp-yt-paper-tooltip disable-upgrade$="[[!tooltip]]" fit-to-visible-bounds="[[fitToVisibleBounds]]" offset="8" position="[[buttonTooltipPosition]]">[[tooltip]]</tp-yt-paper-tooltip>');Tmf=a}a=Tmf;return a}}});
Gl.prototype.onClick=Gl.prototype.onClick;_.L([_.Q(_.Ms.YtComponentBehavior),_.p("design:type",Object)],Gl.prototype,"ytComponentBehavior",void 0);_.L([_.Q(_.k.YtRendererBehavior),_.p("design:type",Object)],Gl.prototype,"ytRendererBehavior",void 0);_.L([_.Q(_.Hc.YtActionHandlerBehavior),_.p("design:type",Object)],Gl.prototype,"ytActionHandlerBehavior",void 0);_.L([_.x(),_.p("design:type",Object)],Gl.prototype,"data",void 0);_.L([_.x(),_.p("design:type",Object)],Gl.prototype,"isPressed",void 0);
_.L([_.x(),_.p("design:type",Object)],Gl.prototype,"forceIconButton",void 0);_.L([_.x(),_.p("design:type",Object)],Gl.prototype,"forceIconOnly",void 0);_.L([_.x(),_.p("design:type",Object)],Gl.prototype,"forceModernIconButton",void 0);_.L([_.x(),_.p("design:type",Object)],Gl.prototype,"skipCommandHandling",void 0);_.L([_.x(),_.p("design:type",Object)],Gl.prototype,"alignByText",void 0);_.L([_.x(),_.p("design:type",Object)],Gl.prototype,"buttonTooltipPosition",void 0);
_.L([_.x(),_.p("design:type",Object)],Gl.prototype,"fitToVisibleBounds",void 0);_.L([_.x({computed:"computeTooltip(data)"}),_.p("design:type",Object)],Gl.prototype,"tooltip",void 0);_.L([_.x(),_.p("design:type",Object)],Gl.prototype,"overrides",void 0);_.L([_.x(),_.p("design:type",Boolean)],Gl.prototype,"disabled",void 0);_.L([_.gz("click"),_.p("design:type",Function),_.p("design:paramtypes",[Event]),_.p("design:returntype")],Gl.prototype,"onClick",null);
_.L([_.S("data.*","forceIconButton","forceIconOnly","alignByText","disabled","forceModernIconButton","overrides"),_.p("design:type",Object),_.p("design:paramtypes",[])],Gl.prototype,"computedButtonShape",null);_.L([_.dz({is:"ytd-button-renderer",noInjection:!0,disableElementRegistration:!dGl,cssBuildOptOut:!0}),_.dz({is:"yt-button-renderer",noInjection:!0,disableElementRegistration:!dGl,cssBuildOptOut:!0})],Gl);var Wx1;var oCG;var $u=function(){var a=_.G.apply(this,arguments)||this;a.empty_=!0;a.loadTime=Infinity;a.pendingPaint=!1;a.hasChange_=!1;a.oldThumbnail_=null;a.oldDelayedSrc_="";a.objectURL_=null;return a};
_.b($u,_.G);_.Z=$u.prototype;_.Z.attached=function(){this.hasChange_&&this.thumbnailChanged_()};
_.Z.ready=function(){var a=this.shouldShowPlaceholder_();_.CM(this.hostElement,"no-transition",!0);a&&this.hostElement.classList.add("with-placeholder")};
_.Z.isPreloaded=function(){return this.isThumbPreloaded_(this.thumbnail)};
_.Z.isThumbPreloaded_=function(a){return!!this.get("webThumbnailDetailsExtensionData.isPreloaded",a)};
_.Z.computeSrc_=function(){return this.delayedSrc||this.computeThumbnailSrc_(this.thumbnail)||UGw};
_.Z.computeThumbnailSrc_=function(a){return a&&a.thumbnails?_.r4(a.thumbnails,this.dimension==="width"?this.width:this.height,this.preferredThumbnail,this.dimension):null};
_.Z.computeAlt_=function(){var a=this.thumbnail&&this.thumbnail.accessibility&&this.thumbnail.accessibility.accessibilityData&&this.thumbnail.accessibility.accessibilityData.label;return this.loaded&&a||""};
_.Z.thumbnailChanged_=function(){var a=_.C([this.thumbnail,this.oldThumbnail_]),z=a.next().value;a=a.next().value;this.oldThumbnail_=z;if(this.isAttached===void 0)this.hasChange_=!0;else{this.hasChange_=!1;if(this.loaded&&(a=this.computeThumbnailSrc_(a),this.computeThumbnailSrc_(z)===a))return;_.K("kevlar_use_vimio_behavior")&&this.ytRendererBehavior.markDirty();this.isThumbPreloaded_(z)?(this.loadTime=Infinity,this.setSrc_(this.thumbnail.thumbnails[0].url),this.empty_=!1):z&&_.TZ("DISABLE_YT_IMG_DELAY_LOADING",
!1)?this.loaded&&!this.empty_?_.Yv(this,this.onReload_):_.Yv(this,this.onShow_):this.resetImage_();z&&(this.hostElement.style.opacity=""+z.opacity)}};
_.Z.delayedSrcChanged_=function(){var a=this.oldDelayedSrc_;this.oldDelayedSrc_=this.delayedSrc;this.loaded&&this.delayedSrc===a||this.resetImage_()};
_.Z.setSrc_=function(a){a?(_.PK(this.hostElement).querySelector("#img").src||this.hostElement.classList.remove("empty"),_.PK(this.hostElement).querySelector("#img").src=a):(_.PK(this.hostElement).querySelector("#img").removeAttribute("src"),this.hostElement.classList.add("empty"))};
_.Z.resetImage_=function(){uix(this.hostElement);this.empty_=!0;this.setSrc_(UGw);this.ytRendererBehavior.invalidate(!1)};
_.Z.observePlaceholderColor_=function(){var a=this.thumbnail&&this.thumbnail.placeholderColor;a?this.hostElement.style.backgroundColor=_.Da(a):this.shouldShowPlaceholder_()||(this.hostElement.style.backgroundColor="transparent")};
_.Z.onLoad_=function(){_.PK(this.hostElement).querySelector("#img").src&&_.PK(this.hostElement).querySelector("#img").src!==UGw&&(tAE(this.hostElement),this.notifyOnLoaded&&_.PA(this.hostElement,"yt-img-shadow-loaded"),this.objectURL_&&(URL.revokeObjectURL(this.objectURL_),this.objectURL_=null))};
_.Z.onError_=function(){var a=this;if(_.K("web_use_cache_for_image_fallback"))sSm(_.PK(this.hostElement).querySelector("#img").src).then(function(z){a.objectURL_=_.TN(z).toString();a.setSrc_(a.objectURL_)}).catch(function(){_.K("kevlar_woffle_fallback_image")&&a.setSrc_("data:image/gif;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAQAAAC1HAwCAAAAC0lEQVR42mN8XA8AAksBZG7LpHYAAAAASUVORK5CYII=")});
else this.onLoad_()};
_.Z.onPrescanVisible=function(){this.onShow_()};
_.Z.onVisible=function(){if(_.K("yt_img_shadow_trigger_show_on_visible"))this.onShow_()};
_.Z.onShow_=function(){if(!this.loaded||this.empty_){this.empty_=!1;var a=this.computeSrc_();a!==_.PK(this.hostElement).querySelector("#img").src&&(this.loaded=!1,this.setSrc_(a))}};
_.Z.onReload_=function(){this.empty_=!1;var a=this.computeSrc_();a!==_.PK(this.hostElement).querySelector("#img").src&&(this.loaded=!1,this.setSrc_(a))};
_.Z.shouldShowPlaceholder_=function(){return _.K("kevlar_thumbnail_bg")};
$u.prototype.observePlaceholderColor_=$u.prototype.observePlaceholderColor_;$u.prototype.delayedSrcChanged_=$u.prototype.delayedSrcChanged_;$u.prototype.thumbnailChanged_=$u.prototype.thumbnailChanged_;_.L([_.x({reflectToAttribute:!0}),_.p("design:type",String)],$u.prototype,"alt",void 0);_.L([_.x({reflectToAttribute:!0}),_.p("design:type",Object)],$u.prototype,"ariaHidden",void 0);_.L([_.x({reflectToAttribute:!0}),_.p("design:type",String)],$u.prototype,"ariaLabel",void 0);
_.L([_.x({reflectToAttribute:!0}),_.p("design:type",Boolean)],$u.prototype,"hidden",void 0);_.L([_.x({reflectToAttribute:!0}),_.p("design:type",String)],$u.prototype,"id",void 0);_.L([_.Q(_.qs.YtVisibilityBehavior),_.p("design:type",Object)],$u.prototype,"ytVisibilityBehavior",void 0);_.L([_.Q(_.k.YtRendererBehavior),_.p("design:type",Object)],$u.prototype,"ytRendererBehavior",void 0);_.L([_.x(),_.p("design:type",String)],$u.prototype,"delayedSrc",void 0);
_.L([_.x(),_.p("design:type",Object)],$u.prototype,"thumbnail",void 0);_.L([_.x({value:!1,reflectToAttribute:!0}),_.p("design:type",Boolean)],$u.prototype,"loaded",void 0);_.L([_.x(),_.p("design:type",Boolean)],$u.prototype,"notifyOnLoaded",void 0);_.L([_.x(),_.p("design:type",Number)],$u.prototype,"height",void 0);_.L([_.x(),_.p("design:type",Number)],$u.prototype,"width",void 0);_.L([_.x({value:function(){return"width"}}),
_.p("design:type",String)],$u.prototype,"dimension",void 0);_.L([_.x({reflectToAttribute:!0}),_.p("design:type",Boolean)],$u.prototype,"fit",void 0);_.L([_.x({reflectToAttribute:!0}),_.p("design:type",Boolean)],$u.prototype,"fitHeight",void 0);_.L([_.x({reflectToAttribute:!0}),_.p("design:type",Boolean)],$u.prototype,"fitWidth",void 0);_.L([_.x({reflectToAttribute:!0}),_.p("design:type",String)],$u.prototype,"objectFit",void 0);
_.L([_.x({reflectToAttribute:!0}),_.p("design:type",String)],$u.prototype,"objectPosition",void 0);_.L([_.x(),_.p("design:type",String)],$u.prototype,"preferredThumbnail",void 0);_.L([_.x({value:"",computed:"computeAlt_(thumbnail.accessibility.accessibilityData.label, loaded)"}),_.p("design:type",String)],$u.prototype,"alt_",void 0);_.L([_.x({reflectToAttribute:!0}),_.p("design:type",String)],$u.prototype,"sharedTooltipText",void 0);
_.L([_.x(),_.p("design:type",Boolean)],$u.prototype,"ftlEligible",void 0);_.L([_.x({value:void 0}),_.p("design:type",String)],$u.prototype,"observeHiddenOption",void 0);_.L([_.x({value:"observe_once"}),_.p("design:type",String)],$u.prototype,"observePrescanOption",void 0);_.L([_.x({reflectToAttribute:!0}),_.p("design:type",Boolean)],$u.prototype,"roundedContainer",void 0);
_.L([_.Fe("thumbnail"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],$u.prototype,"thumbnailChanged_",null);_.L([_.Fe("delayedSrc"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],$u.prototype,"delayedSrcChanged_",null);_.L([_.O8("thumbnail.placeholderColor"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],$u.prototype,"observePlaceholderColor_",null);
_.L([_.dz({is:"yt-img-shadow",disableElementRegistration:!0})],$u);var UGw=_.TZ("NO_EMPTY_DATA_IMG")?"":"data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7";
_.Cw()($u,"yt-img-shadow",function(){if(oCG===void 0){var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-img-shadow--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.yt_img_shadow.yt.img.shadow.css.js--\x3e<img id="img" rounded-container="[[roundedContainer]]" alt$="[[alt_]]" height="[[height]]" width="[[width]]" on-load="onLoad_" on-error="onError_" draggable="false" class="style-scope yt-img-shadow">');a.content.insertBefore(_.w().content.cloneNode(!0),
a.content.firstChild);var z=a.content,I=z.insertBefore;Wx1===void 0&&(Wx1=document.createElement("template"));var J=Wx1;I.call(z,J.content.cloneNode(!0),a.content.firstChild);oCG=a}a=oCG;return a},{callbackProps:["onTap"],
allowedProps:"alt ariaHidden ariaLabel delayedSrc dimension fit fitHeight fitWidth height hidden id loaded notifyOnLoaded objectFit objectPosition preferredThumbnail roundedContainer sharedTooltipText thumbnail width".split(" "),mode:2});var y6p;_.d7=new _.I4("SCREEN_MANAGER_TOKEN");y6p=new _.I4("LOG_INITIAL_SCREEN_TOKEN");var DGX=function(a){return Object.fromEntries(Object.keys(a).map(function(z){return[z,z]}))}({entities:{}});var Rfw=function(a){return function(z,I){return ZPx(a,z,I)}}(DGX)(DGX.entities,{selectSfvAudioItemPlaybackState:function(a,z){var I,J;
a=(J=_.Bd(a,"sfvAudioItemCurrentlyPlayingEntity",z))!=null?J:void 0;return(I=a==null?void 0:a.sfvAudioItemPlaybackState)!=null?I:void 0},
playlistLoopStateEntitySelector:function(a,z){var I;return(I=_.Bd(a,"playlistLoopStateEntity",z))!=null?I:void 0}});_.Wc=_.ec(function(a){function z(e){return _.H(e,_.yw)}
function I(){var e=J().isTogglingDisabled||v()&&J().toggledIsTogglingDisabled,Bp=e||n()?v():!v();d(Bp);l(!1);if(!e){var Em;(Em=N)==null||Em(!!Bp)}var nG;((nG=P)==null?0:nG())||_.KJ(_.ab().resolve(_.d7),J().trackingParams);var bG;if(!Bp||!z(J().defaultButtonViewModel)||(bG=P)!=null&&bG()){var Hp;!z(J().toggledButtonViewModel)||((Hp=P)==null?0:Hp())||_.KJ(_.ab().resolve(_.d7),z(J().toggledButtonViewModel).trackingParams)}else _.KJ(_.ab().resolve(_.d7),z(J().defaultButtonViewModel).trackingParams)}
var J=a.data,r=a.buttonShapeOverrides,P=a.disableExplicitClickLogging,N=a.onToggle,u=a.style,E=a.useOutlinedIcon,O=a.className,f=function(){var e,Bp;return v()?(e=a.animatedTextPropsToggled)==null?void 0:e.call(a):(Bp=a.animatedTextPropsDefault)==null?void 0:Bp.call(a)},A=_.Bg(function(){return f()?Object.assign({},f(),{shouldAnimate:W()}):void 0},void 0,"ZKEa0b"),n=function(){var e;
return((e=M())==null?void 0:e.isToggled)!==void 0},F=_.C(_.Af(function(){var e,Bp,Em;
return n()?(e=M())==null?void 0:e.isToggled:(Em=r==null?void 0:(Bp=r())==null?void 0:Bp.toggled)!=null?Em:J().isToggled})),h=F.next().value;
F=F.next().value;var v=h,d=F;F=_.C(_.Af(function(){var e,Bp;return(e=a.animatedTextPropsToggled)==null?void 0:(Bp=e.call(a))==null?void 0:Bp.shouldAnimate}));
h=F.next().value;F=F.next().value;var W=h,l=F;h=_.C(_.CW(!1,void 0,"S11hid"));var q=h.next().value,m=h.next().value,M=_.o5(function(e){a:{var Bp=J().entityKey,Em=J().toggledStateEntitySelectorType;if(Em)switch(Em){case "TOGGLE_BUTTON_ENTITY_SELECTOR_TYPE_SFV_AUDIO_ITEM":if(!Bp)break;e=Rfw.selectSfvAudioItemPlaybackState(e,Bp);if(e==="SFV_AUDIO_ITEM_PLAYBACK_STATE_PLAYING"){e={isToggled:!0};break a}if(e){e={isToggled:!1};break a}break;case "TOGGLE_BUTTON_ENTITY_SELECTOR_TYPE_COMMENTS_PANEL":e={isToggled:_.N9E(e).includes("engagement-panel-comments-section")};
break a;case "TOGGLE_BUTTON_ENTITY_SELECTOR_TYPE_LIVE_CHAT_PANEL":e={isToggled:_.N9E(e).includes("engagement-panel-live-chat-item-section")};break a;default:_.Xd(new _.Fn("Error: entitySelectorType defined but not matched in selector.",e,Em))}e=void 0}return e}),y=function(){return Object.assign({},r==null?void 0:r(),{onToggle:I,
toggleable:!0,toggled:v(),focused:q()})};
return _.B("toggle-button-view-model",{"on:focusin":_.g4(function(){var e=_.ab().resolve(_.eL(_.ET));e&&m(e.isKeyBoardInUse());return!1}),
"on:focusout":_.g4(function(){m(!1);return!1})},_.B(_.g,{cond:function(){return v()?z(J().toggledButtonViewModel):z(J().defaultButtonViewModel)},
then:function(e){return _.B(_.At,{data:e,className:O,style:u,useOutlinedIcon:E,buttonOverrides:y,animatedTextProps:A})}}))},"C");
_.Wc.idomCompat={callbacks:{onToggle:!0}};_.Jf(_.ec(function(a){return _.B("yt-toggle-button-view-model",{class:function(){var z;return(z=a.scopingClassName)==null?void 0:z.call(a)}},_.B(_.Wc,{data:function(){var z;
return(z=a.data)==null?void 0:z.call(a)},
buttonShapeOverrides:function(){var z;return(z=a.overrides)==null?void 0:z.call(a)},
animatedTextPropsDefault:function(){var z;return(z=a.animatedTextPropsDefault)==null?void 0:z.call(a)},
animatedTextPropsToggled:function(){var z;return(z=a.animatedTextPropsToggled)==null?void 0:z.call(a)},
disableExplicitClickLogging:function(){var z;return(z=a.disableExplicitClickLogging)==null?void 0:z.call(a)},
onToggle:function(z){var I;return(I=a.onToggle)==null?void 0:I.call(a,z)},
style:function(){var z;return(z=a.style)==null?void 0:z.call(a)},
useOutlinedIcon:function(){var z;return(z=a.useOutlinedIcon)==null?void 0:z.call(a)},
className:function(){var z;return(z=a.className)==null?void 0:z.call(a)}}))},"D"),"yt-toggle-button-view-model",{props:{data:_.zl,
buttonShapeOverrides:_.zl,overrides:_.zl,animatedTextPropsDefault:_.zl,animatedTextPropsToggled:_.zl,disableExplicitClickLogging:_.zl,onToggle:_.I5,style:_.zl,useOutlinedIcon:_.zl,className:_.zl,scopingClassName:_.zl}});var oT=function(){return _.G.apply(this,arguments)||this};
_.b(oT,_.G);oT.prototype.onTap=function(a){a.stopPropagation();a=this.isLiked?"TOOLBAR_LIKE_STATE_INDIFFERENT":"TOOLBAR_LIKE_STATE_LIKED";this.engagementState?this.ytLiveChatReduxBehavior.dispatch(_.XK("engagementToolbarStateEntityPayload",this.data.engagementStateKey||"",{likeState:a})):this.ytLiveChatReduxBehavior.dispatch(_.Q0("engagementToolbarStateEntityPayload",this.data.engagementStateKey||"",{likeState:a}))};
_.eH.Object.defineProperties(oT.prototype,{isLiked:{configurable:!0,enumerable:!0,get:function(){var a;return((a=this.engagementState)==null?void 0:a.likeState)==="TOOLBAR_LIKE_STATE_LIKED"}},
toggleButton:{configurable:!0,enumerable:!0,get:function(){if(this.data){var a=_.H(this.data.toggleButton,_.My),z;if(Number(((z=this.likeCountState)==null?void 0:z.likeCountIfIndifferentNumber)||"0")===0){var I;z=((I=this.data.likeCountPlaceholder)==null?void 0:I.content)||""}else{var J,r,P;z=((J=this.likeCountState)==null?void 0:(r=J.likeCountIfIndifferent)==null?void 0:r.content)||((P=this.data.likeCountPlaceholder)==null?void 0:P.content)||""}var N,u;I=((N=this.likeCountState)==null?void 0:(u=
N.likeCountIfLiked)==null?void 0:u.content)||"1";N=_.H(a.toggledButtonViewModel,_.yw);return Object.assign({},a,{isToggled:this.isLiked,defaultButtonViewModel:{buttonViewModel:Object.assign({},_.H(a.defaultButtonViewModel,_.yw),{title:z})},toggledButtonViewModel:{buttonViewModel:Object.assign({},N,{title:I})}})}}}});
oT.prototype.onTap=oT.prototype.onTap;_.L([_.Q(_.Ms.YtComponentBehavior),_.p("design:type",Object)],oT.prototype,"ytComponentBehavior",void 0);_.L([_.Q(_.k.YtRendererBehavior),_.p("design:type",Object)],oT.prototype,"ytRendererBehavior",void 0);_.L([_.Q(_.yb),_.p("design:type",Object)],oT.prototype,"ytLiveChatReduxBehavior",void 0);_.L([_.x(),_.p("design:type",Object)],oT.prototype,"data",void 0);
_.L([_.x({selectorArgs:["data.likeCountEntityKey"],selector:t90}),_.p("design:type",Object)],oT.prototype,"likeCountState",void 0);_.L([_.x({selectorArgs:["data.engagementStateKey"],selector:gbM}),_.p("design:type",Object)],oT.prototype,"engagementState",void 0);_.L([_.S("data","engagementState"),_.p("design:type",Boolean),_.p("design:paramtypes",[])],oT.prototype,"isLiked",null);
_.L([_.S("data","likeCountState","isLiked"),_.p("design:type",Object),_.p("design:paramtypes",[])],oT.prototype,"toggleButton",null);_.L([_.gz("tap"),_.p("design:type",Function),_.p("design:paramtypes",[Event]),_.p("design:returntype")],oT.prototype,"onTap",null);_.L([_.dz({disableElementRegistration:!0,is:"yt-live-chat-like-button-view-model",noInjection:!0})],oT);
_.D(oT,"yt-live-chat-like-button-view-model",function(){if(lCI===void 0){var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-live-chat-like-button-view-model--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.pdg.yt_live_chat_like_button_view_model.yt.live.chat.like.button.view.model.css.js--\x3e<yt-toggle-button-view-model data="[[toggleButton]]" scoping-class-name="[[is]]" class="style-scope yt-live-chat-like-button-view-model">\n</yt-toggle-button-view-model>\n');a.content.insertBefore(_.w().content.cloneNode(!0),
a.content.firstChild);var z=a.content,I=z.insertBefore;Lvv===void 0&&(Lvv=document.createElement("template"));var J=Lvv;I.call(z,J.content.cloneNode(!0),a.content.firstChild);lCI=a}a=lCI;return a},{mode:_.K("live_chat_enable_sink_wrapper")?2:0});var LxE;var lQ1;var UT=function(){return _.G.apply(this,arguments)||this};
_.b(UT,_.G);_.L([_.Q(_.k.YtRendererBehavior),_.p("design:type",Object)],UT.prototype,"ytRendererBehavior",void 0);_.L([_.x(),_.p("design:type",Object)],UT.prototype,"data",void 0);_.L([_.dz({disableElementRegistration:!0,is:"yt-live-chat-paid-message-footer-renderer",isInjectionRoot:!0})],UT);
_.D(UT,"yt-live-chat-paid-message-footer-renderer",function(){if(lQ1===void 0){var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-live-chat-paid-message-footer-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.pdg.yt_live_chat_paid_message_footer_renderer.yt.live.chat.paid.message.footer.renderer.css.js--\x3e<div id="container" class="style-scope yt-live-chat-paid-message-footer-renderer">\n  <div id="icon" hidden$="[[!data.icon]]" class="style-scope yt-live-chat-paid-message-footer-renderer">\n    <yt-icon icon="[[data.icon.iconType]]" class="style-scope yt-live-chat-paid-message-footer-renderer"></yt-icon>\n  </div>\n  <div id="text" class="style-scope yt-live-chat-paid-message-footer-renderer">\n    <yt-formatted-string text="[[data.text]]" class="style-scope yt-live-chat-paid-message-footer-renderer"></yt-formatted-string>\n  </div>\n</div>\n');a.content.insertBefore(_.w().content.cloneNode(!0),
a.content.firstChild);var z=a.content,I=z.insertBefore;LxE===void 0&&(LxE=document.createElement("template"));var J=LxE;I.call(z,J.content.cloneNode(!0),a.content.firstChild);lQ1=a}a=lQ1;return a},{mode:_.K("live_chat_enable_sink_wrapper")?2:0});var p1E;var w1X;var mGe;var yFe,k_o=function(){if(yFe!==void 0)return yFe;var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-live-chat-reply-button-view-model--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.pdg.yt_live_chat_reply_button_view_model.yt.live.chat.reply.button.view.model.css.js--\x3e<yt-button-view-model data="[[buttonViewModel]]" scoping-class-name="[[is]]" class="style-scope yt-live-chat-reply-button-view-model">\n</yt-button-view-model>\n');
a.content.insertBefore(_.w().content.cloneNode(!0),a.content.firstChild);var z=a.content,I=z.insertBefore;mGe===void 0&&(mGe=document.createElement("template"));var J=mGe;I.call(z,J.content.cloneNode(!0),a.content.firstChild);return yFe=a};var Ds=function(){return _.G.apply(this,arguments)||this};
_.b(Ds,_.G);Ds.prototype.onTap=function(a){a.stopPropagation()};
_.eH.Object.defineProperties(Ds.prototype,{buttonViewModel:{configurable:!0,enumerable:!0,get:function(){if(this.data){var a=_.H(this.data.replyButton,_.yw),z,I,J,r,P,N,u,E=Number(((z=this.replyCountState)==null?void 0:z.replyCountNumber)||"0")===0?(I=this.data)==null?void 0:(J=I.replyCountPlaceholder)==null?void 0:J.content:((r=this.replyCountState)==null?void 0:(P=r.replyCount)==null?void 0:P.content)||((N=this.data)==null?void 0:(u=N.replyCountPlaceholder)==null?void 0:u.content)||"",O;return Object.assign({},
a,{title:E,accessibilityText:(O=this.replyCountState)==null?void 0:O.replyButtonAccessibilityText})}}}});
_.eH.Object.defineProperties(Ds,{template:{configurable:!0,enumerable:!0,get:function(){return k_o()}}});
Ds.prototype.onTap=Ds.prototype.onTap;_.L([_.Q(_.Ms.YtComponentBehavior),_.p("design:type",Object)],Ds.prototype,"ytComponentBehavior",void 0);_.L([_.Q(_.k.YtRendererBehavior),_.p("design:type",Object)],Ds.prototype,"ytRendererBehavior",void 0);_.L([_.Q(_.yb),_.p("design:type",Object)],Ds.prototype,"ytLiveChatReduxBehavior",void 0);_.L([_.x(),_.p("design:type",Object)],Ds.prototype,"data",void 0);
_.L([_.x({selectorArgs:["data.replyCountEntityKey"],selector:function(a,z){return _.Bd(a.entities,"replyCountEntity",z)}}),
_.p("design:type",Object)],Ds.prototype,"replyCountState",void 0);_.L([_.S("data","replyCountState"),_.p("design:type",Object),_.p("design:paramtypes",[])],Ds.prototype,"buttonViewModel",null);_.L([_.gz("tap"),_.p("design:type",Function),_.p("design:paramtypes",[Event]),_.p("design:returntype")],Ds.prototype,"onTap",null);_.L([_.dz({disableElementRegistration:!0,is:"yt-live-chat-reply-button-view-model",noInjection:!0})],Ds);
_.D(Ds,"yt-live-chat-reply-button-view-model",function(){return k_o()},{mode:_.K("live_chat_enable_sink_wrapper")?2:0});var Mw1;var cFe;var RT=function(){var a=_.G.apply(this,arguments)||this;a.ariaLabel="";return a};
_.b(RT,_.G);
RT.prototype.dataChanged=function(){for(var a=(0,_.t3)(_.PK(this.hostElement).querySelector("#image"));a.firstChild;)a.removeChild(a.firstChild);if(this.data)if(this.data.icon){var z=document.createElement("yt-icon");this.data.icon.iconType==="MODERATOR"&&this.enableNewModeratorBadge?(z.polymerController.icon="yt-sys-icons:shield-filled",z.polymerController.defaultToFilled=!0):z.polymerController.icon="live-chat-badges:"+this.data.icon.iconType.toLowerCase();a.appendChild(z)}else if(this.data.customThumbnail){z=document.createElement("img");
var I=_.IM7(this.data.customThumbnail.thumbnails,16);I?(z.src=I,a.appendChild(z),z.setAttribute("alt",this.hostElement.ariaLabel||"")):_.Xd(new _.Fn("Could not compute URL for thumbnail",this.data.customThumbnail))}};
RT.prototype.identity=function(a){return a};
RT.prototype.computeType=function(a){return tj(a||void 0)};
RT.prototype.dataChanged=RT.prototype.dataChanged;_.L([_.x(),_.p("design:type",Object)],RT.prototype,"data",void 0);_.L([_.x({computed:"identity(data.accessibility.accessibilityData.label)",reflectToAttribute:!0}),_.p("design:type",Object)],RT.prototype,"ariaLabel",void 0);_.L([_.x({computed:"computeType(data)",reflectToAttribute:!0}),_.p("design:type",String)],RT.prototype,"type",void 0);
_.L([_.x({computed:"identity(data.tooltip)",reflectToAttribute:!0}),_.p("design:type",String)],RT.prototype,"sharedTooltipText",void 0);_.L([_.x({reflectToAttribute:!0,value:function(){return _.K("live_chat_enable_new_moderator_badge")}}),
_.p("design:type",Boolean)],RT.prototype,"enableNewModeratorBadge",void 0);_.L([_.O8("data"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],RT.prototype,"dataChanged",null);_.L([_.dz({disableElementRegistration:!0,is:"yt-live-chat-author-badge-renderer",noInjection:!0})],RT);
_.D(RT,"yt-live-chat-author-badge-renderer",function(){if(cFe===void 0){var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-live-chat-author-badge-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.yt_live_chat_author_badge_renderer.yt.live.chat.author.badge.renderer.css.js--\x3e<div id="image" class="style-scope yt-live-chat-author-badge-renderer"></div>');a.content.insertBefore(_.w().content.cloneNode(!0),
a.content.firstChild);var z=a.content,I=z.insertBefore;Mw1===void 0&&(Mw1=document.createElement("template"));var J=Mw1;I.call(z,J.content.cloneNode(!0),a.content.firstChild);cFe=a}a=cFe;return a},{mode:_.K("live_chat_enable_sink_wrapper")?2:0});var Yvl;var qvw;var L_=function(){return _.G.apply(this,arguments)||this};
_.b(L_,_.G);_.Z=L_.prototype;_.Z.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"}}}}};
_.Z.computeBadgesInsideChip=function(a){return a?a.filter(function(z){return tj(z.liveChatAuthorBadgeRenderer)==="verified"}):[]};
_.Z.computeBadgesOutsideChip=function(a){return this.prependChatBadges||!a?[]:a.filter(function(z){z=tj(z.liveChatAuthorBadgeRenderer);return z!=="verified"&&z!=="owner"})};
_.Z.computeBadgesBeforeChip=function(a){return this.prependChatBadges&&a?a.filter(function(z){z=tj(z.liveChatAuthorBadgeRenderer);return z!=="verified"&&z!=="owner"}):[]};
_.Z.computeIsHighlighted=function(a,z){var I=!!KeE(a,"owner"),J=!!KeE(a,"verified");a=!!KeE(a,"moderator");return(I||J&&!a)&&!z};
_.Z.computeAuthorType=function(a){return n1p(a)};
_.Z.computeAuthorClass=function(a,z){return z?(a?a+" ":"")+"single-line":a};
_.Z.onSeedColorChanged=function(){_.K("live_chat_author_name_color_usernames")||_.K("live_chat_seed_color_usernames")||_.K("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):_.K("live_chat_simple_color_usernames")&&this.authorNameColor&&(this.username.style.color=
this.authorNameColor)};
L_.prototype.onSeedColorChanged=L_.prototype.onSeedColorChanged;_.L([_.Q(_.Ms.YtComponentBehavior),_.p("design:type",Object)],L_.prototype,"ytComponentBehavior",void 0);_.L([_.Q(_.u4.YtRendererstamperBehavior),_.p("design:type",Object)],L_.prototype,"ytRendererstamperBehavior",void 0);_.L([_.x(),_.p("design:type",Object)],L_.prototype,"authorName",void 0);_.L([_.x(),_.p("design:type",Array)],L_.prototype,"authorBadges",void 0);
_.L([_.x({computed:"computeAuthorType(authorBadges)"}),_.p("design:type",String)],L_.prototype,"authorType",void 0);_.L([_.x({computed:"computeAuthorClass(authorType, singleLine)"}),_.p("design:type",String)],L_.prototype,"authorClass",void 0);_.L([_.x({computed:"computeBadgesInsideChip(authorBadges)"}),_.p("design:type",Array)],L_.prototype,"badgesInsideChip",void 0);_.L([_.x({computed:"computeBadgesOutsideChip(authorBadges)"}),_.p("design:type",Array)],L_.prototype,"badgesOutsideChip",void 0);
_.L([_.x({computed:"computeBadgesBeforeChip(authorBadges)"}),_.p("design:type",Array)],L_.prototype,"badgesBeforeChip",void 0);_.L([_.x({computed:"computeIsHighlighted(authorBadges, disableHighlighting)",reflectToAttribute:!0}),_.p("design:type",Boolean)],L_.prototype,"isHighlighted",void 0);_.L([_.x({value:!1}),_.p("design:type",Boolean)],L_.prototype,"singleLine",void 0);_.L([_.x({value:!1}),_.p("design:type",Boolean)],L_.prototype,"disableHighlighting",void 0);
_.L([_.x({reflectToAttribute:!0}),_.p("design:type",Boolean)],L_.prototype,"dashboardMoneyFeed",void 0);_.L([_.x({value:_.K("live_chat_prepend_badges"),reflectToAttribute:!0}),_.p("design:type",Boolean)],L_.prototype,"prependChatBadges",void 0);_.L([_.x(),_.p("design:type",String)],L_.prototype,"authorNameColor",void 0);_.L([_.A3("#author-name"),_.p("design:type",HTMLDivElement)],L_.prototype,"username",void 0);
_.L([_.O8("authorNameColor"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],L_.prototype,"onSeedColorChanged",null);_.L([_.dz({disableElementRegistration:!0,is:"yt-live-chat-author-chip",noInjection:!0})],L_);
_.D(L_,"yt-live-chat-author-chip",function(){if(qvw===void 0){var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-live-chat-author-chip--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.yt_live_chat_author_chip.yt.live.chat.author.chip.css.js--\x3e<span id="prepend-chat-badges" class="style-scope yt-live-chat-author-chip"></span><span id="author-name" dir="auto" class$="[[authorClass]] style-scope yt-live-chat-author-chip">[[getSimpleString(authorName)]]<span id="chip-badges" class="style-scope yt-live-chat-author-chip"></span></span><span id="chat-badges" class="style-scope yt-live-chat-author-chip"></span>');a.content.insertBefore(_.w().content.cloneNode(!0),
a.content.firstChild);var z=a.content,I=z.insertBefore;Yvl===void 0&&(Yvl=document.createElement("template"));var J=Yvl;I.call(z,J.content.cloneNode(!0),a.content.firstChild);qvw=a}a=qvw;return a},{mode:_.K("live_chat_enable_sink_wrapper")?2:0});var efo;var aMI;var l4=function(){var a=_.G.apply(this,arguments)||this;a.debounceCommand=_.Hr(function(z){a.ytComponentBehavior.resolveCommand(z)},1500);
return a};
_.b(l4,_.G);l4.prototype.onTap=function(){if(this.engagementState&&this.engagementState.key&&this.isEditable){var a=this.isHearted?"TOOLBAR_HEART_STATE_UNHEARTED_EDITABLE":"TOOLBAR_HEART_STATE_HEARTED_EDITABLE",z,I,J=this.isHearted?(z=this.data)==null?void 0:z.unheartCommand:(I=this.data)==null?void 0:I.heartCommand;this.ytLiveChatReduxBehavior.dispatch(_.XK("engagementToolbarStateEntityPayload",this.engagementState.key,{heartState:a}));(a=_.o0(J))&&this.debounceCommand(a)}};
_.eH.Object.defineProperties(l4.prototype,{thumbnailDetails:{configurable:!0,enumerable:!0,get:function(){var a,z;if(!((a=this.data)==null?0:(z=a.creatorThumbnail)==null?0:z.sources))return{};a={thumbnails:[]};z={};z.url=this.data.creatorThumbnail.sources[0].url;a.thumbnails.push(z);return a}},
isHearted:{configurable:!0,enumerable:!0,get:function(){var a,z;return((a=this.engagementState)==null?void 0:a.heartState)==="TOOLBAR_HEART_STATE_HEARTED"||((z=this.engagementState)==null?void 0:z.heartState)==="TOOLBAR_HEART_STATE_HEARTED_EDITABLE"}},
isEditable:{configurable:!0,enumerable:!0,get:function(){var a,z;return((a=this.engagementState)==null?void 0:a.heartState)==="TOOLBAR_HEART_STATE_UNHEARTED_EDITABLE"||((z=this.engagementState)==null?void 0:z.heartState)==="TOOLBAR_HEART_STATE_HEARTED_EDITABLE"}},
showCreatorView:{configurable:!0,enumerable:!0,get:function(){var a;return((a=this.engagementState)==null?void 0:a.heartState)==="TOOLBAR_HEART_STATE_UNHEARTED_EDITABLE"}},
showButton:{configurable:!0,enumerable:!0,get:function(){var a,z,I;return((a=this.engagementState)==null?void 0:a.heartState)==="TOOLBAR_HEART_STATE_UNHEARTED_EDITABLE"||((z=this.engagementState)==null?void 0:z.heartState)==="TOOLBAR_HEART_STATE_HEARTED_EDITABLE"||((I=this.engagementState)==null?void 0:I.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}}});
l4.prototype.onTap=l4.prototype.onTap;_.L([_.Q(_.Ms.YtComponentBehavior),_.p("design:type",Object)],l4.prototype,"ytComponentBehavior",void 0);_.L([_.Q(_.k.YtRendererBehavior),_.p("design:type",Object)],l4.prototype,"ytRendererBehavior",void 0);_.L([_.Q(_.yb),_.p("design:type",Object)],l4.prototype,"ytLiveChatReduxBehavior",void 0);_.L([_.x(),_.p("design:type",Object)],l4.prototype,"data",void 0);
_.L([_.x({selectorArgs:["data.engagementStateKey"],selector:gbM}),_.p("design:type",Object)],l4.prototype,"engagementState",void 0);_.L([_.S("data"),_.p("design:type",Object),_.p("design:paramtypes",[])],l4.prototype,"thumbnailDetails",null);_.L([_.S("data","engagementState"),_.p("design:type",Boolean),_.p("design:paramtypes",[])],l4.prototype,"isHearted",null);_.L([_.S("data","engagementState"),_.p("design:type",Boolean),_.p("design:paramtypes",[])],l4.prototype,"isEditable",null);
_.L([_.S("data","engagementState"),_.p("design:type",Boolean),_.p("design:paramtypes",[])],l4.prototype,"showCreatorView",null);_.L([_.S("data","engagementState"),_.p("design:type",Boolean),_.p("design:paramtypes",[])],l4.prototype,"showButton",null);_.L([_.S("data","isHearted"),_.p("design:type",String),_.p("design:paramtypes",[])],l4.prototype,"label",null);_.L([_.S("data","isHearted"),_.p("design:type",Object),_.p("design:paramtypes",[])],l4.prototype,"heartHoverText",null);
_.L([_.gz("tap"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],l4.prototype,"onTap",null);_.L([_.dz({disableElementRegistration:!0,is:"yt-live-chat-creator-heart-view-model"})],l4);
_.D(l4,"yt-live-chat-creator-heart-view-model",function(){if(aMI===void 0){var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-live-chat-creator-heart-view-model--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.yt_live_chat_creator_heart_view_model.yt.live.chat.creator.heart.view.model.css.js--\x3e<yt-icon-button id="creator-heart-button" hidden="[[!showButton]]" label="[[label]]" title="[[heartHoverText]]" class="style-scope yt-live-chat-creator-heart-view-model">\n  <template is="dom-if" if="[[showCreatorView]]" class="style-scope yt-live-chat-creator-heart-view-model">\n    <yt-image id="unhearted" data="[[data.unheartedIcon]]" height="24" class="style-scope yt-live-chat-creator-heart-view-model"></yt-image>\n  </template>\n  <template is="dom-if" if="[[isHearted]]" class="style-scope yt-live-chat-creator-heart-view-model">\n    <yt-img-shadow id="creator-thumbnail" thumbnail="[[thumbnailDetails]]" class="style-scope yt-live-chat-creator-heart-view-model"></yt-img-shadow>\n    <yt-image id="hearted-border" data="[[data.heartedIcon]]" height="16" preserve-height="true" width="16" class="style-scope yt-live-chat-creator-heart-view-model"></yt-image>\n    <yt-image id="hearted" data="[[data.heartedIcon]]" height="14" preserve-height="true" width="14" class="style-scope yt-live-chat-creator-heart-view-model"></yt-image>\n  </template>\n</yt-icon-button>\n');a.content.insertBefore(_.w().content.cloneNode(!0),
a.content.firstChild);var z=a.content,I=z.insertBefore;efo===void 0&&(efo=document.createElement("template"));var J=efo;I.call(z,J.content.cloneNode(!0),a.content.firstChild);aMI=a}a=aMI;return a},{mode:_.K("live_chat_enable_sink_wrapper")?2:0});var p_=function(){};
_.b(p_,AK);p_.prototype.JSC$13006_getRequest=function(){return{input:"/getDatasyncIdsEndpoint",requestShell:y$("/getDatasyncIdsEndpoint","GET"),innerTubeRequest:{}}};
p_.prototype.getApiPaths=function(){return[]};
p_.prototype.getExtension=function(){};
p_.prototype.JSC$13006_buildRequest=function(){};var jSe={},z4O=(jSe.GET_DATASYNC_IDS=VK(p_),jSe);var IMG,JOO,rO1,YAj,w7,CWo,I3f,ZqX,PWj;IMG="tokens consistency service_params mss client_location entities adblock_detection response_received_commands store PLAYER_PRELOAD shorts_prefetch".split(" ");JOO=["type.googleapis.com/youtube.api.pfiinnertube.YoutubeApiInnertube.BrowseResponse","type.googleapis.com/youtube.api.pfiinnertube.YoutubeApiInnertube.PlayerResponse"];
_.w4=function(a,z,I,J,r,P,N,u,E){this.endpointMap=a;this.networkManager=z;this.authService=I;this.responseProcessorMap=J;this.innertubeResponseStore=r;this.contextProcessors=P;this.asyncContextProcessors=N;this.localInnertubeRouter=u;this.requestSequencer=E;this.inflightRequests=new Map;a.signalEndpointMap||(a.signalEndpointMap={});a.signalEndpointMap=Object.assign({},z4O,a.signalEndpointMap)};
rO1=function(a,z,I,J,r,P,N,u,E){if(_.w4.instance!==void 0){if(J=_.w4.instance,a=[a!==J.endpointMap,z!==J.networkManager,I!==J.authService,r!==J.innertubeResponseStore,P!==J.contextProcessors,N!==J.asyncContextProcessors,u!==J.localInnertubeRouter],a.some(function(O){return O}))throw new _.Fn("InnerTubeTransportService is already initialized",a);
}else _.w4.instance=new _.w4(a,z,I,J,r,P,N,u,E)};
_.y7=function(a,z,I){var J=J===void 0?aVv:J;var r=I3f(a,z);return r?new _.Ba(function(P,N){var u,E,O,f,A;return _.t(function(n){switch(n.nextAddress){case 1:return n.yield(r,2);case 2:u=n.yieldResult;E=u.JSC$13006_getRequest(z,I,J);if(!E){N(new _.Fn("Error: Failed to build request for command.",z));n.jumpTo(0);break}pH(E.input);f=((O=E.requestShell)==null?void 0:O.mode)==="cors"?"cors":void 0;if(a.authService.syncHeaders){A=PWj(E.config,f);n.jumpTo(4);break}return n.yield(ZqX(E.config,f),5);case 5:A=
n.yieldResult;case 4:P(CWo(a,E,A)),_.nu(n)}})}):_.xN(new _.Fn("Error: No request builder found for command.",z))};
YAj=function(a,z,I,J){var r=r===void 0?aVv:r;var P,N,u,E,O,f,A,n,F,h,v,d,W,l,q,m,M,y;return _.t(function(e){switch(e.nextAddress){case 1:P=E43(z,a.endpointMap);if(!P)throw new _.Fn("Error: No streaming request builder found for command",z);N=P.JSC$13006_getRequest(z,I,r);if(!N)throw new _.Fn("Failed to build YtRequest for streaming Command",z);if((u=a.localInnertubeRouter)==null||!u.shouldPreferLocalResponse(N.input,N.innerTubeRequest)){e.jumpTo(2);break}return e.yield(a.localInnertubeRouter.localInnertubeResponse(N.input,
N.innerTubeRequest),3);case 3:return E=e.yieldResult,O={},E.playerResponse&&(w7(a,E.playerResponse,N),O.player=E.playerResponse,(f=J)==null||f(O,E)),E.watchNextResponse&&(w7(a,E.watchNextResponse,N),O.content=E.watchNextResponse,(A=J)==null||A(O,E)),e.return(O);case 2:F=((n=N.requestShell)==null?void 0:n.mode)==="cors"?"cors":void 0;if(a.authService.syncHeaders){h=PWj(N.config,F);e.jumpTo(4);break}return e.yield(ZqX(N.config,F),5);case 5:h=e.yieldResult;case 4:return W=(d=(v=N.requestShell)==null?
void 0:v.headers)!=null?d:{},N.requestShell=Object.assign({},N.requestShell,{headers:Object.assign({},W,h)}),l=Object.assign({},N.requestShell),q=JSON.stringify(N.innerTubeRequest),N.requestShell.method==="POST"&&(l=Object.assign({},l,{body:q})),m=function(Bp,Em){w7(a,Em.playerResponse||Em.watchNextResponse||Em.reelItemWatchResponse||Em.reelWatchSequenceResponse,N);J==null||J(Bp,Em)},M={},e.yield(NAG(a.networkManager,N.input,l,m),6);
case 6:return M=e.yieldResult,((y=N.config)==null?0:y.responseTick)&&_.Xz(N.config.responseTick),e.return(M)}})};
_.pJ=function(a,z,I,J,r){r=r===void 0?{authStrategy:{identity:aVv}}:r;var P=P===void 0?!0:P;var N=function(){};
N=u7G(Nhi(I));z.context||(z.context=_.QpM(J,P));return new _.Ba(function(u){var E,O,f,A,n;return _.t(function(F){if(F.nextAddress==1)return E=Y9d(I),O=_.mK(E),a.authService.syncHeaders?(f=PWj(r,O),F.jumpTo(2)):F.yield(ZqX(r,O),3);F.nextAddress!=2&&(f=F.yieldResult);A=q9i(Y9d(I));n={input:A,requestShell:y$(A),innerTubeRequest:z,config:r};u(CWo(a,n,f,N));_.nu(F)})})};
w7=function(a,z,I){var J;if(z&&!(z==null?0:(J=z.sequenceMetaData)==null?0:J.skipProcessing)&&a.responseProcessorMap){J=_.C(IMG);for(var r=J.next();!r.done;r=J.next())r=r.value,a.responseProcessorMap[r]&&a.responseProcessorMap[r].handleResponse(z,I)}};
CWo=function(a,z,I,J){J=J===void 0?function(){}:J;
var r,P,N,u,E,O,f,A,n,F,h,v,d,W,l,q,m,M,y,e,Bp,Em,nG,bG,Hp,LG,oE,Pe,TJ,Be,eM,Ao,gf,GJ,Sf,ce,r$,aw,Kl,EG;return _.t(function(F1){switch(F1.nextAddress){case 1:N=(r=z.config)==null?void 0:(P=r.storeStrategy)==null?void 0:P.storeKey;if(!(N&&a.innertubeResponseStore&&a.innertubeResponseStore.has(N))||((u=z.config)==null?0:(E=u.storeStrategy)==null?0:E.disableCache)){F1.jumpTo(2);break}return F1.yield(a.innertubeResponseStore.get(N),3);case 3:if((O=F1.yieldResult)&&!O.isExpired())return F1.return(Promise.resolve(_.Iv(O)));
case 2:if(!((f=z)==null?0:(A=f.innerTubeRequest)==null?0:A.context)){F1.jumpTo(4);break}n=z.innerTubeRequest.context;if(!(a.asyncContextProcessors&&a.asyncContextProcessors.length>0)){F1.jumpTo(5);break}F=[];h=_.C(a.asyncContextProcessors);for(v=h.next();!v.done;v=h.next())d=v.value,W=d.processContext(z),W.wrappedPromise_&&F.push(W.wrappedPromise_);if(!(F.length>0)){F1.jumpTo(5);break}return F1.yield(Promise.all(F),5);case 5:l=_.C(a.contextProcessors||[]),q=l.next();case 8:if(q.done){F1.jumpTo(4);
break}m=q.value;return F1.yield(m.processContext(n),9);case 9:q=l.next();F1.jumpTo(8);break;case 4:if((M=a.localInnertubeRouter)==null||!M.shouldPreferLocalResponse(z.input,z.innerTubeRequest)){F1.jumpTo(12);break}return F1.yield(a.localInnertubeRouter.localInnertubeResponse(z.input,z.innerTubeRequest),13);case 13:return y=F1.yieldResult,w7(a,y,z),F1.return(y);case 12:return(Em=(Bp=z.config)==null?void 0:Bp.requestKey)&&a.inflightRequests.has(Em)?e=a.inflightRequests.get(Em):(nG=JSON.stringify(z.innerTubeRequest),
LG=(Hp=(bG=z.requestShell)==null?void 0:bG.headers)!=null?Hp:{},z.requestShell=Object.assign({},z.requestShell,{headers:Object.assign({},LG,I)}),oE=Object.assign({},z.requestShell),z.requestShell.method==="POST"&&(oE=Object.assign({},oE,{body:nG})),((Pe=z.config)==null?0:Pe.requestTick)&&_.Xz(z.config.requestTick),TJ=function(){return a.networkManager.fetch(z.input,oE,z.config)},e=a.requestSequencer?tAw(a.requestSequencer,z,TJ):TJ(),Em&&a.inflightRequests.set(Em,e)),F1.yield(e,14);
case 14:(Be=F1.yieldResult)&&_.K("web_streaming_player")&&Array.isArray(Be)&&(Be=Be[0].playerResponse);if(Be&&"error"in Be&&((eM=Be)==null?0:(Ao=eM.error)==null?0:Ao.details))for(gf=Be.error.details,GJ=_.C(gf),Sf=GJ.next();!Sf.done;Sf=GJ.next())ce=Sf.value,(r$=ce["@type"])&&JOO.indexOf(r$)>-1&&(delete ce["@type"],Be=ce);Em&&a.inflightRequests.has(Em)&&a.inflightRequests.delete(Em);((aw=z.config)==null?0:aw.responseTick)&&_.Xz(z.config.responseTick);if(Be||(Kl=a.localInnertubeRouter)==null||!Kl.canProvideFallbackResponse(z.input,
z.innerTubeRequest)){F1.jumpTo(15);break}return F1.yield(a.localInnertubeRouter.localFallbackInnertubeResponse(z.input,z.innerTubeRequest),16);case 16:Be=F1.yieldResult;case 15:return w7(a,Be,z),((EG=z.config)==null?0:EG.processorTick)&&_.Xz(z.config.processorTick),J(),F1.return(Be||void 0)}})};
_.mf=function(a,z){return uP$(z,a.endpointMap)};
I3f=function(a,z){a=B93(z,a.endpointMap);if(a!==void 0)return Promise.resolve(a)};
ZqX=function(a,z){var I,J,r,P;return _.t(function(N){if(N.nextAddress==1){r=(I=a)==null?void 0:(J=I.authStrategy)==null?void 0:J.sessionIndex;var u=N.yield;var E=_.uI(HH3({sessionIndex:r}));return u.call(N,E,2)}P=N.yieldResult;return N.return(Promise.resolve(Object.assign({},g4x(z),P)))})};
PWj=function(a,z){var I;a=a==null?void 0:(I=a.authStrategy)==null?void 0:I.sessionIndex;I=HH3({sessionIndex:a});return Object.assign({},g4x(z),I)};var uii,EDi,BAI,gDw,Oqw,fMj,nDi,Kpo,ku,Fp1,Hq1,sSO,bqI;uii=0;EDi=/tone[1-5]/;BAI=" \ud83c\udffb \ud83c\udffc \ud83c\udffd \ud83c\udffe \ud83c\udfff".split(" ");gDw="UCzC5CNksIBaiT-NdMJjJNOQ/COLRg9qOwdQCFce-qgodrbsLaA UCzC5CNksIBaiT-NdMJjJNOQ/CMKC7uKOwdQCFce-qgodqbsLaA UCzC5CNksIBaiT-NdMJjJNOQ/CJiQ8uiOwdQCFcx9qgodysAOHg UCzC5CNksIBaiT-NdMJjJNOQ/CI3h3uDJitgCFdARTgodejsFWg UCzC5CNksIBaiT-NdMJjJNOQ/CI69oYTKitgCFdaPTgodsHsP5g UCzC5CNksIBaiT-NdMJjJNOQ/CKzQr47KitgCFdCITgodq6EJZg UCzC5CNksIBaiT-NdMJjJNOQ/CPGD8Iu8kN4CFREChAod9OkLmg".split(" ");
Oqw=Number.MAX_SAFE_INTEGER;fMj=RegExp("\ufe0f","g");_.mJ=function(a){this.skinTone=0;this.emojiSize=24;this.emojis=[];this.emojiMap={};this.emojiRegex=/$./;this.emojiShortcutMap={};this.pickerCustomEmojiIds=[];this.emojiShortcutCharMap={};this.hasInitializedShortcutCharMap=!1;a&&_.AOv(this,a)};
_.AOv=function(a,z){try{_.Ez(z,{context:a,onSuccess:function(J,r){Array.isArray(r)?a.load(r):(J=new _.Fn("Emoji manager JSON response was not an array!",{response:r}),_.Gx(J))},
onError:function(J){J=new _.Fn("Failed to retrieve emoji manager initial JSON data!",{url:z,statusCode:_.Zv(J).toString()});_.Xd(J)}})}catch(J){var I=new _.Fn("Failed to parse unicode emoji JSON data! Error: {e.message}",{url:z});
_.Xd(I)}};
_.mJ.prototype.clear=function(){this.emojis=[];this.emojiMap={};this.emojiRegex=/$./;this.emojiShortcutMap={};this.emojiShortcutCharMap={};this.hasInitializedShortcutCharMap=!1};
_.mJ.prototype.load=function(a,z){if(z)if(a.length)a=a.concat(z.emojis);else{this.emojis=z.emojis;this.emojiMap=z.emojiMap;this.emojiShortcutMap=z.emojiShortcutMap;this.emojiShortcutCharMap=sSO(z);this.hasInitializedShortcutCharMap=!0;this.emojiRegex=z.emojiRegex;return}this.emojis=[].concat(_.ih(new Set(this.emojis.concat(a))));this.hasInitializedShortcutCharMap=!1;a=Array(this.emojis.length);for(z=0;z<this.emojis.length;z++){var I=this.emojis[z];if(I.emojiId){this.emojiMap[I.emojiId]=I;this.emojiMap[I.emojiId].index=
z;for(var J=0;I.shortcuts&&J<I.shortcuts.length;J++)this.emojiShortcutMap[I.shortcuts[J].toLocaleLowerCase()]=I;a[z]=I.isCustomEmoji&&I.shortcuts?I.shortcuts[0]:I.emojiId}}a.sort(function(r,P){return P.length-r.length});
if(a.length)try{this.emojiRegex=new RegExp(a.join("|").replace("*","\\*"),"gi")}catch(r){this.emojiRegex=/$./}else this.emojiRegex=/$./};
nDi=function(a,z){z=_.C(z);for(var I=z.next();!I.done;I=z.next()){var J=I.value;if(J.emojiId&&a.emojiMap[J.emojiId]){I=Object.assign({},a.emojiMap[J.emojiId],J);a.emojiMap[J.emojiId]=I;var r=void 0;I.index&&((r=a.emojis[I.index])==null?void 0:r.emojiId)===J.emojiId&&(a.emojis[I.index]=I);J=void 0;if((J=I.shortcuts)==null?0:J.length)for(a.hasInitializedShortcutCharMap=!1,J=_.C(I.shortcuts),r=J.next();!r.done;r=J.next())a.emojiShortcutMap[r.value.toLocaleLowerCase()]=I}}};
Kpo=function(a){var z,I;_.t(function(J){if(J.nextAddress==1)return J.yield(_.Xo.getInstance(),2);if(J.nextAddress!=3)return(z=J.yieldResult)?J.yield(z.get("ytlc-emoji-pref"),3):J.return();(I=J.yieldResult)&&nDi(a,Object.keys(I).map(function(r){return{emojiId:r,stickyPrefId:I[r]}}).filter(function(r){return!!r.emojiId&&!!r.stickyPrefId}));
_.nu(J)})};
_.y6=function(a,z,I){return(a=a.emojiMap[z])&&(!a.isLocked||I!==void 0&&I)?a:void 0};
ku=function(a,z,I){I=_.y6(a,z,I===void 0?!1:I);var J=z.match("\u200d");I&&a.skinTone!==0&&(a=(J==null?void 0:J.length)===1?_.y6(a,z.replace("\u200d",BAI[a.skinTone]+"\u200d")):_.y6(a,z+BAI[a.skinTone]))&&(I=a);return I};
Fp1=function(a,z){var I=a.emojiMap[z];return(I==null?0:I.stickyPrefId)?a.emojiMap[I.stickyPrefId]:ku(a,z)};
_.um=function(a,z){a=a.emojiShortcutMap[z.toLocaleLowerCase()];return!a||a.isLocked?null:a};
Hq1=function(a,z,I){return sSO(a,I===void 0?!1:I)[z]||{}};
sSO=function(a,z){z=z===void 0?!1:z;if(!a.hasInitializedShortcutCharMap){a.hasInitializedShortcutCharMap=!0;for(var I=0;I<a.emojis.length;I++){var J=a.emojis[I];if(!(J.isLocked||z&&J.isCustomEmoji&&J.emojiId&&!a.pickerCustomEmojiIds.includes(J.emojiId)))for(var r=0;J.shortcuts&&r<J.shortcuts.length;r++){var P=J.shortcuts[r];P.startsWith(":_")&&J.isCustomEmoji&&(a.emojiShortcutCharMap[":_"]==null&&(a.emojiShortcutCharMap[":_"]=Object.create(null)),a.emojiShortcutCharMap[":_"][P]=J);if(!(P.length<3||
!J.isCustomEmoji&&EDi.test(P))){var N=P.substr(0,3).toLocaleLowerCase();a.emojiShortcutCharMap[N]==null&&(a.emojiShortcutCharMap[N]=Object.create(null));a.emojiShortcutCharMap[N][P]=J}}}}return a.emojiShortcutCharMap};
_.mJ.prototype.createEmoji=function(a,z){z=z===void 0?!0:z;var I=document.createElement("img");a.isCustomEmoji||I.classList.add("small-emoji");I.classList.add("emoji");I.classList.add("yt-formatted-string");I.src=a.image?_.r4(a.image.thumbnails,this.emojiSize)||"":"";var J=void 0;a.image&&a.image.accessibility&&a.image.accessibility.accessibilityData&&(J=a.image.accessibility.accessibilityData.label);I.alt=J?J:(a.isCustomEmoji&&a.shortcuts?a.shortcuts[0]:a.emojiId)||"";a.isCustomEmoji&&(I.dataset.emojiId=
a.emojiId);_.NS&&(I.setAttribute("contenteditable","false"),I.setAttribute("unselectable","on"));z&&(a.shortcuts&&a.shortcuts.length&&I.setAttribute("shared-tooltip-text",a.shortcuts[0]),I.id="emoji-"+uii++);return I};
_.mJ.prototype.createDocumentFragment=function(a,z,I,J){z=z===void 0?!1:z;I=I===void 0?!0:I;J=J===void 0?!1:J;a=a.replace(fMj,"");for(var r=document.createDocumentFragment(),P=0,N,u=0;(N=this.emojiRegex.exec(a))!=null;){var E=_.y6(this,N[0])||_.um(this,N[0]);!E||E.isCustomEmoji&&!z||(E=this.createEmoji(E,I),P!==N.index&&r.appendChild(document.createTextNode(a.substring(P,N.index))),r.appendChild(E),P=N.index+N[0].length,u++)}if(!J||u)return r.appendChild(document.createTextNode(a.substr(P))),r};
bqI=function(a,z,I){var J,r,P,N,u,E,O,f,A;return _.t(function(n){if(n.nextAddress==1){if(!z.emojiId||!a.emojiMap[z.emojiId])return n.return();J=Object.assign({},a.emojiMap[z.emojiId],{stickyPrefId:I});a.emojiMap[z.emojiId]=J;z.index&&((r=a.emojis[z.index])==null?void 0:r.emojiId)===z.emojiId&&(a.emojis[z.index]=J);if((P=z.shortcuts)==null?0:P.length)for(a.hasInitializedShortcutCharMap=!1,N=_.C(z.shortcuts),u=N.next();!u.done;u=N.next())E=u.value,a.emojiShortcutMap[E.toLocaleLowerCase()]=J;return n.yield(_.Xo.getInstance(),
2)}if(n.nextAddress!=4)return(O=n.yieldResult)?n.yield(O.get("ytlc-emoji-pref"),4):n.jumpTo(0);A=(f=n.yieldResult)!=null?f:{};A[z.emojiId]=I;return n.yield(O.set("ytlc-emoji-pref",A,Oqw),0)})};
_.MT=new _.mJ;var QSw;_.cc={};
QSw={properties:{id:{type:String,computed:"identity(data.id)",reflectToAttribute:!0},wholeMessageClickable:{type:Boolean,computed:"computeWholeMessageClickable(data.contextMenuEndpoint)",reflectToAttribute:!0},useOpacityForContextMenuVisibility:{type:Boolean,value:_.K("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:_.K("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 yC(7),shouldSupportInlineActionButtons:function(){return!1},
shouldSupportWholeItemClick:function(){return!1},
beforeRegister:function(){if(this.supportsInlineActionButtons||this.shouldSupportInlineActionButtons())this.stampDom||(this.stampDom={}),this.stampDom["data.inlineActionButtons"]={id:"inline-action-buttons",mapping:{buttonRenderer:{component:"yt-button-renderer",properties:{overrides:"[[filledButtonOverrides]]"}}}}},
ready:function(){var a=_.PK(this.hostElement||this).querySelector("#inline-action-button-container");a&&a.setAttribute("aria-hidden","true");this.menuButton=_.PK(this.hostElement).querySelector("#menu-button")},
attached:function(){var a=this.menuButton;a&&(a.addEventListener("focusin",_.BK(this,this.onMenuButtonFocus_)),a.addEventListener("focusout",_.BK(this,this.onMenuButtonBlur_)))},
detached:function(){var a=this.menuButton;a&&(a.removeEventListener("focusin",_.BK(this,this.onMenuButtonFocus_)),a.removeEventListener("focusout",_.BK(this,this.onMenuButtonBlur_)))},
identity:_.T3,truthy:function(a){return!!a},
computeTimestampString:function(a){return a?a.timestampText?this.getSimpleString(a.timestampText):this.TIME_FORMATTER.format(new Date(a.timestampUsec/1E3)):""},
computeWholeMessageClickable:function(a){return a},
computeMenuVisible_:function(a,z){return a||z},
computeHasInlineActionButtons:function(a){if(!a)return!1;var z,I;return!((z=a.inlineActionButtons)==null||!z.length)||!((I=a.additionalInlineActionButtons)==null||!I.length)},
createDocumentFragmentFromString:function(a){var z=_.MT.createDocumentFragment.bind(_.MT),I;if((I=this.participantsManager)==null||!I.viewerRegex)return z(a);I=document.createDocumentFragment();for(var J=0,r;(r=this.participantsManager.viewerRegex.exec(a))!=null;){if(r.index>0){var P=":"+r[0]+":";if((_.y6(_.MT,P)||_.um(_.MT,P))&&a.indexOf(P)===r.index-1)continue}I.appendChild(z(a.substring(J,r.index)));J=document.createElement("span");J.appendChild(z(r[0]));J.classList.add("mention");I.appendChild(J);
J=r.index+r[0].length}I.appendChild(z(a.substring(J)));return I},
createDocumentFragment:function(a){var z=document.createDocumentFragment();if(a.simpleText)return z.appendChild(this.createDocumentFragmentFromString(a.simpleText)),z;if(!a.runs)return z;for(var I=0;I<a.runs.length;I++){var J=a.runs[I];if(J.emoji)z.appendChild(_.MT.createEmoji(J.emoji));else if(J.text)if(J.navigationEndpoint){var r=document.createElement("a");r.classList.add("yt-simple-endpoint");RpM(r,J.navigationEndpoint);_.PK(r).appendChild(this.createDocumentFragmentFromString(J.text));z.appendChild(r)}else z.appendChild(this.createDocumentFragmentFromString(J.text))}return z},
hasModerationOverlayVisible:function(){var a;return((a=document.querySelector("yt-live-chat-item-list-renderer"))==null?void 0:a.getAttribute("moderation-mode-enabled"))===""},
onItemTap:function(a){a.composedPath().some(function(z){return(z=z instanceof Element?z:null)?z.tagName&&(z.tagName.toLowerCase()==="yt-live-chat-creator-heart-view-model"||z.tagName.toLowerCase()==="yt-button-view-model"):!1})||this.data.contextMenuEndpoint&&this.wholeMessageClickable&&this.shouldSupportWholeItemClick()&&!this.hasModerationOverlayVisible()&&!_.K("enable_live_chat_web_context_menu_resolver")&&this.showContextMenu(a)},
colorFromDecimal:function(a){return zl$(a)},
markAsDeleted:function(a,z){this.set("data.deletedStateMessage",a);this.set("data.showOriginalContentMessage",z)},
onMenuButtonFocus_:function(){this.menuFocused=!0},
onMenuButtonBlur_:function(){this.menuFocused=!1},
showContextMenu:function(a){if(this.data.contextMenuEndpoint){var z=_.ab().resolve(_.Tr),I=this.data.contextMenuEndpoint,J;(J=_.w4.instance)&&_.mf(J,I)?(z=h4i(z,I),J=_.pJ(J,{},z)):J=_.VAX(z,I);J.then(this.handleGetContextMenuResponse_,this.handleGetContextMenuError,this);a&&a.stopPropagation()}},
handleGetContextMenuResponse_:function(a){var z=_.w4.instance;z&&_.mf(z,{liveChatEndpoint:{}})||(a=a.response);a.liveChatItemContextMenuSupportedRenderers&&a.liveChatItemContextMenuSupportedRenderers.menuRenderer&&this.showContextMenu_(a.liveChatItemContextMenuSupportedRenderers.menuRenderer);a.actions&&_.ZF(this.hostElement,"yt-live-chat-actions",[a.actions])},
handleGetContextMenuError:function(a){if(a instanceof Error||a instanceof Object||a instanceof String)var z=a;_.Gx(new _.Fn("Error encountered calling GetLiveChatItemContextMenu",z))},
showContextMenu_:function(a){this.openPopup({openPopupAction:{popupType:"DROPDOWN",popup:{menuPopupRenderer:a}}})},
onYtPopupOpened_:function(){this.menuOpen=!0;_.PA(this.hostElement,"yt-live-chat-context-menu-opened")},
onYtPopupClosedOrCanceled_:function(){this.menuOpen=!1;_.PA(this.hostElement,"yt-live-chat-context-menu-closed")}};
_.cc.YtLiveChatItemBehavior=[QSw,_.Ms.YtComponentBehavior,_.K_.YtOpenPopupBehavior];_.Yu=function(){};var SVj;var iql;var xzf;var vDj;var qT=function(){var a=_.G.apply(this,arguments)||this;a.active=!1;a.identity=_.T3;return a};
_.b(qT,_.G);qT.prototype.dataChanged=function(){this.active=!1};
qT.prototype.onClick=function(){_.PA(this.hostElement,"yt-live-chat-select-suggestion",this.data)};
qT.prototype.dataChanged=qT.prototype.dataChanged;_.L([_.x(),_.p("design:type",Object)],qT.prototype,"data",void 0);_.L([_.x({reflectToAttribute:!0}),_.p("design:type",Object)],qT.prototype,"active",void 0);_.L([_.O8("data"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],qT.prototype,"dataChanged",null);_.L([_.dz({disableElementRegistration:!0,is:"yt-live-chat-text-input-field-suggestion",noInjection:!0})],qT);
_.D(qT,"yt-live-chat-text-input-field-suggestion",function(){if(vDj===void 0){var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-live-chat-text-input-field-suggestion--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.yt_live_chat_text_input_field_suggestion.yt.live.chat.text.input.field.suggestion.css.js--\x3e<tp-yt-paper-item active="[[active]]" on-click="onClick" class="style-scope yt-live-chat-text-input-field-suggestion">\n  <img alt="[[data.alt]]" hidden$="[[!identity(data.image)]]" src$="[[data.image.thumbnails.0.url]]" author$="[[data.author]]" class="style-scope yt-live-chat-text-input-field-suggestion">\n  [[data.text]]\n</tp-yt-paper-item>\n');
a.content.insertBefore(_.w().content.cloneNode(!0),a.content.firstChild);var z=a.content,I=z.insertBefore;xzf===void 0&&(xzf=document.createElement("template"));var J=xzf;I.call(z,J.content.cloneNode(!0),a.content.firstChild);vDj=a}a=vDj;return a},{mode:_.K("live_chat_enable_sink_wrapper")?2:0});_.eY=function(a,z,I){return CustomEvent.call(this,a,{detail:{value:z,path:I}})||this};
_.b(_.eY,CustomEvent);_.aW=function(){var a=_.G.apply(this,arguments)||this;a.viewerName=null;a.actionMap={"yt-live-chat-actions":"onChatMessage_"};a.SUPPORTED_ITEM_TYPES_=["liveChatTextMessageRenderer","liveChatLegacyPaidMessageRenderer","liveChatPaidMessageRenderer"];a.PARTICIPANT_TIME_USEC_=3E8;return a};
_.b(_.aW,_.G);_.Z=_.aW.prototype;_.Z.created=function(){this.allParticipantsCharMap_={};this.asyncHandle_=null};
_.Z.addParticipant=function(a){var z=_.iGx(this.participants,a,function(J,r){J=J[Object.keys(J)[0]];r=r[Object.keys(r)[0]];J=String(_.cd(J.authorName)).toLowerCase();r=String(_.cd(r.authorName)).toLowerCase();return J<r?-1:J==r?0:1}.bind(this));
if(z>=0){var I=this.participants[z];I[Object.keys(I)[0]].timestampUsec&&this.splice("participants",z,1,a)}else this.splice("participants",-z-1,0,a);a=a[Object.keys(a)[0]];z=_.cd(a.authorName).toLocaleLowerCase();I=z.substr(0,2);this.allParticipantsCharMap_.hasOwnProperty(I)||(this.allParticipantsCharMap_[I]={});this.allParticipantsCharMap_[I][z]=a};
_.Z.getAuthorsFromPrefix=function(a){return this.allParticipantsCharMap_.hasOwnProperty(a)?this.allParticipantsCharMap_[a]:null};
_.Z.computeViewerRegex_=function(a){if(!a)return null;a=a.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&");var z=a.indexOf("@")===0&&_.K("live_chat_enable_handles_web_text_input_update")?"([#]":"([@#]";return new RegExp(z+a.replace(/ /g,"\\s*")+"|^"+a.replace(/ /g,"\\s*")+"$|^"+a.replace(/ /g,"\\s*")+"(?=\\s)|(?<=\\s)"+a.replace(/ /g,"\\s*")+"$|(?<=\\s)"+a.replace(/ /g,"\\s*")+"(?=\\s))","ig")};
_.Z.checkForStaleParticipants_=function(){var a=this;this.trimOldParticipants_();this.asyncHandle_&&Sd$(this.asyncHandle_);this.participants.length>0&&(this.asyncHandle_=_.lK(function(){a.checkForStaleParticipants_()},3E4))};
_.Z.onChatMessage_=function(a){var z=this,I=Date.now()*1E3;a.forEach(function(J){if(J=_.H(J,S9J)){J=J.item;var r=Object.keys(J)[0];z.SUPPORTED_ITEM_TYPES_.indexOf(r)!=-1&&J[r].timestampUsec>=I-z.PARTICIPANT_TIME_USEC_&&z.addParticipant(J)}},this);
this.checkForStaleParticipants_()};
_.Z.trimOldParticipants_=function(){for(var a=Date.now()*1E3,z=this.participants.length-1;z>=0;z--){var I=this.participants[z];I=I[Object.keys(I)[0]];I.timestampUsec&&I.timestampUsec<a-this.PARTICIPANT_TIME_USEC_&&this.splice("participants",z,1)}};
_.L([_.Q(_.Hc.YtActionHandlerBehavior),_.p("design:type",Object)],_.aW.prototype,"ytActionHandlerBehavior",void 0);_.L([_.x(),_.p("design:type",Object)],_.aW.prototype,"viewerName",void 0);_.L([_.x({computed:"computeViewerRegex_(viewerName)"}),_.p("design:type",Object)],_.aW.prototype,"viewerRegex",void 0);_.L([_.x({value:function(){return[]},
notify:!0}),_.p("design:type",Array)],_.aW.prototype,"participants",void 0);_.L([_.dz({is:"yt-live-chat-participants-manager",noInjection:!0})],_.aW);var GFw=/.*([:@#].*?)$/,jB=/\u00a0/g,$zG=String.fromCharCode(160),X2f={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"},zt=function(){var a=_.G.apply(this,arguments)||this;a.disabled=!1;a.liveChatRichMessageInput=null;a.messageInput=null;a.isValidWithNoInputText=!1;a.suggestions=[];a.emojiManager=_.MT;a.inputMethodEditorActive=
!1;a.suggestionIndex=-1;a.JSC$14011_lastSuggestionRange=null;return a};
_.b(zt,_.G);_.Z=zt.prototype;_.Z.configureRendererStamper=function(){return{suggestions:{id:"dropdown-content",mapping:{suggestion:"yt-live-chat-text-input-field-suggestion"},reuseComponents:!0}}};
_.Z.attached=function(){_.tY&&(document.execCommand("enableObjectResizing",!1,"false"),document.execCommand("enableInlineTableEditing",!1,"false"));this.hostElement.addEventListener("compositionstart",this.onCompositionStart);this.hostElement.addEventListener("compositionend",this.onCompositionEnd)};
_.Z.detached=function(){this.setLiveChatRichMessageInput(null);this.hostElement.removeEventListener("compositionstart",this.onCompositionStart);this.hostElement.removeEventListener("compositionend",this.onCompositionEnd)};
_.Z.dataChanged=function(){if(!this.ignoreColorMapping){var a=!1,z={},I;for(I in X2f)this.data&&this.data.hasOwnProperty(I)&&(z[X2f[I]]=this.colorFromDecimal(this.data[I]),a=!0);a&&_.uK(this.hostElement,z)}this.messageInput&&this.setLiveChatRichMessageInput(this.messageInput)};
_.Z.onMessageSet=function(){this.setLiveChatRichMessageInput(this.messageInput||{})};
_.Z.colorFromDecimal=function(a){a=Math.floor(Number(a));return"rgba("+[a>>16&255,a>>8&255,a&255,(a>>24&255)/255].join()+")"};
_.Z.preventDrag=function(a){a.dataTransfer&&(a.dataTransfer.dropEffect="none");a.preventDefault()};
_.Z.preventResize=function(a){a.returnValue=!1};
_.Z.onInputChange=function(){var a=this.characterCount,z=document.querySelector("#overflow-text");this.characterCount<=this.maxCharacterLimit&&z&&z.remove();if(!z&&this.characterCount>this.maxCharacterLimit){var I=window.getSelection();if(I){var J=I.getRangeAt(0);I.removeAllRanges();I.addRange(J)}}if(I=this.getCurrentRange())J=this.calculateTextBeforeRange(I),this.completeEmojisInRange(I,J,!0)||this.updateSuggestions(I,J);J=this.calculateLiveChatRichMessageInput();this._setLiveChatRichMessageInput(J);
_.PA(this.hostElement,"yt-live-chat-message-input-change",J);z&&this.characterCount===0&&z.remove();I&&I.commonAncestorContainer.parentElement.id==="input"&&I.commonAncestorContainer.nodeName!=="SPAN"?this.handleOverflowText(this.characterCount>a):I&&!I.collapsed&&I.commonAncestorContainer===this.input&&this.checkForDuplicateSpans();if(this.characterCount===0)for(a=this.input.childNodes.length-1;a>=0;a--)this.input.childNodes[a].nodeName==="BR"&&this.input.childNodes[a].remove()};
_.Z.onCompositionStart=function(){this.inputMethodEditorActive=!0};
_.Z.onCompositionEnd=function(){this.inputMethodEditorActive=!1;var a=this.getCurrentRange();a&&a.commonAncestorContainer.parentElement.id==="input"&&a.commonAncestorContainer.nodeName!=="SPAN"&&this.handleOverflowText(!0)};
_.Z.mergeOverflowText=function(a){if(a){var z=document.createRange();z.selectNodeContents(a);z=z.extractContents();this.input.insertBefore(z,a)}};
_.Z.checkRangeAtEndOfInput=function(){var a=this.getCurrentRange();if(a){var z=_.PK(this.hostElement).querySelector("#overflow-text"),I=document.createRange();z&&z.previousSibling?z.previousSibling instanceof HTMLImageElement?I.selectNode(z.previousSibling):I.selectNodeContents(z.previousSibling):this.input&&this.input.lastChild&&(this.input.lastChild instanceof HTMLImageElement?I.selectNode(this.input.lastChild):I.selectNodeContents(this.input.lastChild));I.collapse(!1);return I.isPointInRange(a.startContainer,
a.startOffset)}return!1};
_.Z.handleOverflowText=function(a){if(!this.dropdown.opened&&!this.inputMethodEditorActive&&this.isChatMessageInput){var z=_.PK(this.hostElement).querySelector("#overflow-text"),I=this.getCurrentRange();this.input.normalize();a=this.checkRangeAtEndOfInput()&&a;this.mergeOverflowText(z);for(var J,r=0,P=0,N,u=this.input.childNodes,E=0;E<u.length;E++){var O=u[E];O instanceof Text?(P+=O.textContent.length,P>this.maxCharacterLimit&&(J=O,r=this.maxCharacterLimit+O.textContent.length-P)):O instanceof HTMLImageElement&&
(J=void 0,P=O.dataset.emojiId&&((J=this.data)==null?0:J.emojiCharacterCount)?P+this.data.emojiCharacterCount:P+O.alt.length,J=this.input,r=E);if(P>this.maxCharacterLimit&&J){N=document.createRange();N.collapse(!1);z?(P=this.input.lastChild.previousSibling,P instanceof Text?N.setEnd(this.input.lastChild.previousSibling,P.textContent.length):P instanceof HTMLImageElement&&N.setEnd(this.input,this.input.childNodes.length-1)):N.selectNodeContents(this.input);N.setStart(J,r);break}}N&&(J=!1,I&&(a=N.isPointInRange(I.startContainer,
I.startOffset-1)),z||(z=document.createElement("span"),z.id="overflow-text",z.textContent="",z.setAttribute("contenteditable","true"),_.PK(_.PK(this.hostElement).querySelector("#input")).appendChild(z),J=!0),z&&(I=N.extractContents(),z.insertBefore(I,z.firstChild),a&&z.firstChild&&(I=document.createRange(),J?I.setStartAfter(z.lastChild):I.setStartAfter(z.firstChild),I.collapse(!0),z=window.getSelection(),z.removeAllRanges(),z.addRange(I))))}};
_.Z.checkForDuplicateSpans=function(){for(var a=0;a<this.input.childNodes.length;a++){var z=this.input.childNodes[a];if(z.nodeName==="SPAN"){var I=document.createRange();I.selectNodeContents(z);I=I.extractContents();this.input.insertBefore(I,z);z.remove()}}this.handleOverflowText(!0)};
_.Z.getCurrentRange=function(){var a=window.getSelection();return a&&a.rangeCount?a.getRangeAt(0).cloneRange():null};
_.Z.getInputRange=function(){var a=this.getCurrentRange();if(a){for(var z=a.commonAncestorContainer,I=!1,J=_.PK(this.hostElement).querySelector("#input");z;){if(z===J){I=!0;break}z=z.parentNode}I||(a=null)}a||(a=this.getRangeAtEnd());return a};
_.Z.getRangeAtEnd=function(){var a=document.createRange(),z=_.PK(this.hostElement).querySelector("#input").lastChild;!z||z.nodeName!=="#text"&&z.nodeName!=="SPAN"?(a.selectNodeContents(_.PK(this.hostElement).querySelector("#input")),a.collapse(!1)):z.nodeName==="#text"?a.setStart(z,z.textContent.length):a.setStart(z,z.childNodes.length);return a};
_.Z.getChatParticipantSuggestions=function(a,z,I,J){var r=_.K("live_chat_enable_handles_web_text_input_update");if(z)for(var P in z)if(P.indexOf(a)===0||r&&P.indexOf(I+a)===0){var N=z[P],u=_.cd(N.authorName);J.push({suggestion:{author:!0,authorType:I,image:N.authorPhoto,alt:u,text:u}});if(J.length>=64)break}};
_.Z.getSuggestions=function(a){var z=[],I=a.substring(0,3),J=Hq1(_.MT,I,!0);if(J)for(var r in J)if(r.toLocaleLowerCase().indexOf(a)===0){var P=J[r];if(P&&P.emojiId){if(P=Fp1(_.MT,P.emojiId)){var N=void 0,u=void 0,E=void 0,O=void 0,f=((N=P.image)==null?0:(u=N.accessibility)==null?0:(E=u.accessibilityData)==null?0:E.label)||P.isCustomEmoji?(O=P.shortcuts)==null?void 0:O[0]:P.emojiId;z.push({suggestion:{emoji:!0,image:P.image,alt:f,text:r,textToInsertWhenSelected:P.isCustomEmoji?r:f}})}if(z.length>=
64)break}}if(!this.participantsManager)return null;if(I.indexOf("@")===0||I.indexOf("#")===0)J=I.charAt(0),a=a.substring(1),r=_.K("live_chat_enable_handles_web_text_input_update"),I.indexOf("@")===0&&r&&(r=this.participantsManager.getAuthorsFromPrefix(I.substring(0,2)),this.getChatParticipantSuggestions(a,r,J,z)),I=I.substring(1),I=this.participantsManager.getAuthorsFromPrefix(I),this.getChatParticipantSuggestions(a,I,J,z);return z?z.sort(function(A,n){return n.suggestion.text<A.suggestion.text?-1:
n.suggestion.text===A.suggestion.text?0:1}):null};
_.Z.insertSuggestion=function(a){var z=_.K("live_chat_enable_handles_web_text_input_update"),I=a.authorType;z=a.text.indexOf(I)===0&&z?a.text+$zG:I+a.text+$zG;a.emoji?this.insertTextAtRange(this.JSC$14011_lastSuggestionRange,a.textToInsertWhenSelected||""):a.author&&this.insertTextAtRange(this.JSC$14011_lastSuggestionRange,z)};
_.Z.updateSuggestionsAtCaret=function(){var a=this.getCurrentRange();a&&this.updateSuggestions(a,this.calculateTextBeforeRange(a))};
_.Z.offsetStartOfRangeBy=function(a,z){for(;z>0;)if(a.startOffset-z>=0){a.setStart(a.startContainer,a.startOffset-z);break}else{z=a.startContainer instanceof HTMLImageElement?z-a.startContainer.alt.length:z-a.startOffset;var I=a.startContainer.previousSibling;if(!I){a.setStart(a.startContainer,0);break}if(_.K("live_chat_require_space_for_autocomplete_emoji")){var J=void 0,r=void 0;a.setStart(I,((J=I)==null?void 0:(r=J.textContent)==null?void 0:r.length)||0)}else a.setStart(I,I.childNodes.length||
0)}};
_.Z.updateSuggestions=function(a,z){var I=this;this.JSC$14011_lastSuggestionRange&&(this.JSC$14011_lastSuggestionRange.detach(),this.JSC$14011_lastSuggestionRange=null);if((z=GFw.exec(z))&&z.length&&(z=z[z.length-1].toLocaleLowerCase(),z.length>2&&(this.offsetStartOfRangeBy(a,z.length),this.JSC$14011_lastSuggestionRange=a,(a=this.getSuggestions(z))&&a.length))){this.suggestions=a;_.Yv(this,function(){_.PK(I.hostElement).querySelector("#dropdown-content").scrollTop=16777216});
this.dropdown.opened?this.dropdown.notifyResize():this.dropdown.opened=!0;this.suggestionIndex=-1;this.changeSuggestionIndex(a.length-1);return}this.dropdown.opened=!1};
_.Z.completeEmojisInRange=function(a,z,I){var J=z.replace(/[\s\xa0]+$/,"");z=z.length-J.length;J=J.split(" ");J=J[J.length-1].trim().toLocaleLowerCase();var r=J.lastIndexOf(":");if(I&&!z&&r!==J.length-1)return!1;r!==-1&&(I=J.lastIndexOf(":",r-1),I!==-1&&(J=J.substring(I)));if((I=_.um(_.MT,J))&&I.emojiId){I=Fp1(_.MT,I.emojiId)||null;this.offsetStartOfRangeBy(a,J.length+z);var P,N,u,E;J=(((P=I)==null?0:P.isCustomEmoji)?(N=I)==null?void 0:(u=N.shortcuts)==null?void 0:u[0]:(E=I)==null?void 0:E.emojiId)||
"";z&&(J+=$zG);this.insertTextAtRange(a,J);this.dropdown.opened=!1;return!0}return!1};
_.Z.onSuggestion=function(a){this.insertSuggestion(a.detail);this.dropdown.opened=!1};
_.Z.onKeyPress=function(a){a.keyCode===13&&(a.preventDefault(),this.dropdown.opened?(this.insertSuggestion(this.suggestions[this.suggestionIndex].suggestion),this.dropdown.opened=!1):_.PA(this.hostElement,"yt-live-chat-send-message"))};
_.Z.completeEmojis=function(){var a=document.createRange(),z=_.PK(this.hostElement).querySelector("#input").lastChild;z?a.setStart(z,z.childNodes.length):(a.selectNodeContents(_.PK(this.hostElement).querySelector("#input")),a.collapse(!1));this.completeEmojisInRange(a,this.calculateTextBeforeRange(a),_.K("live_chat_require_space_for_autocomplete_emoji"))};
_.Z.maybePreventTextFormatting=function(a){!_.gL||!a.ctrlKey&&!a.metaKey||a.keyCode!==66&&a.keyCode!==73||(a.stopImmediatePropagation(),a.preventDefault())};
_.Z.onKeyDown=function(a){this.maybePreventTextFormatting(a);if(this.dropdown.opened)switch(a.keyCode){case 27:this.dropdown.opened=!1;a.stopPropagation();break;case 9:this.insertSuggestion(this.suggestions[this.suggestionIndex].suggestion);this.dropdown.opened=!1;a.preventDefault();break;case 38:this.changeSuggestionIndex(this.suggestionIndex-1);a.preventDefault();break;case 40:this.changeSuggestionIndex(this.suggestionIndex+1),a.preventDefault()}};
_.Z.onKeyUp=function(a){switch(a.keyCode){case 37:case 39:this.updateSuggestionsAtCaret();break;case 38:case 40:this.dropdown.opened||this.updateSuggestionsAtCaret()}if(_.NS)this.onInputChange()};
_.Z.changeSuggestionIndex=function(a){if(this.dropdown.opened){var z=_.PK(this.hostElement).querySelector("#dropdown-content");this.suggestionIndex>=0&&this.suggestionIndex<z.children.length&&(z.children[this.suggestionIndex].active=!1);var I=this.suggestions.length;this.suggestionIndex=(a+I)%I;a=z.children[this.suggestionIndex];a.active=!0;z.scrollTop=a.offsetTop}};
_.Z.onInputPaste=function(a){a.preventDefault();(a=a.clipboardData)&&a.types&&(a=a.getData("text/plain")||"",a=a.replace(/\n/g,""),this.insertText(a));(a=this.getCurrentRange())&&a.commonAncestorContainer.parentElement.id==="input"&&a.commonAncestorContainer.nodeName!=="SPAN"&&this.handleOverflowText(!0)};
_.Z.onFocus=function(){this._setFocused(!0)};
_.Z.onBlur=function(){this._setFocused(!1)};
_.Z.insertText=function(a){this.insertTextAtRange(this.getInputRange(),a)};
_.Z.insertTextAtRange=function(a,z){if(a&&(a.collapsed||a.deleteContents(),z=_.MT.createDocumentFragment(z,!0,!1))){for(var I=_.C((z==null?void 0:z.childNodes)||[]),J=I.next();!J.done;J=I.next()){J=J.value;var r=void 0,P=void 0,N=void 0,u=void 0,E=void 0;(N=(r=window)==null?void 0:(P=r.ShadyCSS)==null?void 0:P.ScopingShim)==null||(E=(u=N).scopeNode)==null||E.call(u,J,this.hostElement.localName)}I=z.lastChild;a.insertNode(z);this.focused||this.input.focus();if(this.focused){a=a.cloneRange();a.selectNodeContents(I);
a.collapse(!1);if(z=window.getSelection())z.removeAllRanges(),z.addRange(a);a.commonAncestorContainer.parentElement.id==="input"&&a.commonAncestorContainer.nodeName!=="SPAN"&&(this.dropdown.opened&&(this.dropdown.opened=!1),this.handleOverflowText(!0))}a=this.calculateLiveChatRichMessageInput();this._setLiveChatRichMessageInput(a);_.PA(this.hostElement,"yt-live-chat-message-input-change",a)}};
_.Z.setLiveChatRichMessageInput=function(a){_.PK(_.PK(this.hostElement).querySelector("#input")).textContent="";if(a&&a.textSegments){for(var z=0;z<a.textSegments.length;z++){var I=a.textSegments[z];I.text?_.PK(_.PK(this.hostElement).querySelector("#input")).appendChild(_.MT.createDocumentFragment(I.text,!0,!1)):I.emojiId&&(I=_.y6(_.MT,I.emojiId))&&_.PK(_.PK(this.hostElement).querySelector("#input")).appendChild(_.MT.createEmoji(I,!1))}this._setLiveChatRichMessageInput(this.calculateLiveChatRichMessageInput())}else this._setLiveChatRichMessageInput(null)};
_.Z.setText=function(a){this.setLiveChatRichMessageInput(a?{textSegments:[{text:a}]}:null)};
_.Z.calculateTextBeforeRange=function(a){var z="",I=a.startContainer;if(I&&I instanceof Text){var J;z=((J=I.textContent)==null?void 0:J.substring(0,a.startOffset))||"";I=I.previousSibling}for(;I&&I instanceof Text;)z=I.textContent+z,I=I.previousSibling;return z.replace(jB," ")};
_.Z.calculateLiveChatRichMessageInput=function(){for(var a=[],z="",I=_.PK(_.PK(this.hostElement).querySelector("#input")).childNodes,J=0;J<I.length;J++){var r=I[J];r instanceof Text?z+=r.textContent:r instanceof HTMLImageElement&&(r.dataset.emojiId?(z&&(a.push({text:z.replace(jB," ")}),z=""),a.push({emojiId:r.dataset.emojiId})):z+=r.alt)}z&&a.push({text:z.replace(jB," ")});if(I=_.PK(this.hostElement).querySelector("#overflow-text")){z="";I=I.childNodes;for(J=0;J<I.length;J++)r=I[J],r instanceof Text?
z+=r.textContent:r instanceof HTMLImageElement&&(r.dataset.emojiId?(z&&(a.push({text:z.replace(jB," ")}),z=""),a.push({emojiId:r.dataset.emojiId})):z+=r.alt);z&&a.push({text:z.replace(jB," ")})}return{textSegments:a}};
_.Z.computeCharacterCount=function(a){if(!a||!a.textSegments)return 0;for(var z=0,I=0;I<a.textSegments.length;I++){var J=a.textSegments[I];if(J.text)z+=J.text.length;else if(J.emojiId){var r=void 0;if((r=this.data)==null?0:r.emojiCharacterCount)z+=this.data.emojiCharacterCount;else{var P=r=void 0,N=void 0;z+=((P=_.y6(_.MT,(r=J)==null?void 0:r.emojiId))==null?void 0:(N=P.shortcuts)==null?void 0:N[0].length)||0}}}return z};
_.Z.characterCountChanged=function(){_.PA(this.hostElement,"yt-live-chat-text-input-field-renderer-character-count-changed",{characterCount:this.characterCount});this.checkScrollAlignment()};
_.Z.focusedChanged=function(){this.hostElement.dispatchEvent(new _.eY("focused-changed",this.focused))};
_.Z.focus=function(){this.setFocus(!1)};
_.Z.focusAtEnd=function(){this.setFocus(!0)};
_.Z.setFocus=function(a){a=a?this.getRangeAtEnd():this.getInputRange();_.PK(this.hostElement).querySelector("#input").focus();var z=window.getSelection();z&&(z.removeAllRanges(),z.addRange(a))};
_.Z.insertEmoji=function(a){var z,I=((a==null?0:a.isCustomEmoji)?(z=a.shortcuts)==null?void 0:z[0]:a==null?void 0:a.emojiId)||"";this.insertText(I)};
_.Z.computeText=function(a){if(!a||!a.textSegments)return"";for(var z="",I=0;I<a.textSegments.length;I++){var J=a.textSegments[I];if(J.text)z+=J.text;else if(J.emojiId){var r=void 0,P=void 0,N=void 0;z+=((P=_.y6(_.MT,(r=J)==null?void 0:r.emojiId))==null?void 0:(N=P.shortcuts)==null?void 0:N[0])||""}}return z};
_.Z.checkScrollAlignment=function(){this.input.scrollHeight>48&&this.input.scrollTop!==this.input.scrollHeight&&(this.input.scrollTop=this.input.scrollHeight)};
_.eH.Object.defineProperties(zt.prototype,{inputTabIndex:{configurable:!0,enumerable:!0,get:function(){return this.disabled?-1:0}},
maxCharacterLimit:{configurable:!0,enumerable:!0,get:function(){var a;return((a=this.data)==null?void 0:a.maxCharacterLimit)||0}},
characterCount:{configurable:!0,enumerable:!0,get:function(){return this.computeCharacterCount(this.liveChatRichMessageInput)}},
remainingCharacterCount:{configurable:!0,enumerable:!0,get:function(){return this.maxCharacterLimit-this.characterCount}},
hasText:{configurable:!0,enumerable:!0,get:function(){return this.characterCount>0}},
isInputValid:{configurable:!0,enumerable:!0,get:function(){return this.characterCount===0?this.isValidWithNoInputText:this.characterCount<=this.maxCharacterLimit}}});
zt.prototype.focusedChanged=zt.prototype.focusedChanged;zt.prototype.characterCountChanged=zt.prototype.characterCountChanged;zt.prototype.onSuggestion=zt.prototype.onSuggestion;zt.prototype.onMessageSet=zt.prototype.onMessageSet;zt.prototype.dataChanged=zt.prototype.dataChanged;_.L([_.Q(_.k.YtRendererBehavior),_.p("design:type",Object)],zt.prototype,"ytRendererBehavior",void 0);_.L([_.Q(_.u4.YtRendererstamperBehavior),_.p("design:type",Object)],zt.prototype,"ytRendererstamperBehavior",void 0);
_.L([_.x(),_.p("design:type",Object)],zt.prototype,"data",void 0);_.L([_.x({reflectToAttribute:!0}),_.p("design:type",Object)],zt.prototype,"disabled",void 0);_.L([_.S("disabled"),_.p("design:type",Number),_.p("design:paramtypes",[])],zt.prototype,"inputTabIndex",null);_.L([_.S("data.maxCharacterLimit"),_.x({readOnly:!0,notify:!0}),_.p("design:type",Number),_.p("design:paramtypes",[])],zt.prototype,"maxCharacterLimit",null);
_.L([_.S("liveChatRichMessageInput"),_.x({readOnly:!0,notify:!0}),_.p("design:type",Number),_.p("design:paramtypes",[])],zt.prototype,"characterCount",null);_.L([_.S("maxCharacterLimit, characterCount"),_.x({readOnly:!0,notify:!0}),_.p("design:type",Number),_.p("design:paramtypes",[])],zt.prototype,"remainingCharacterCount",null);_.L([_.x({reflectToAttribute:!0}),_.p("design:type",Boolean)],zt.prototype,"isChatMessageInput",void 0);
_.L([_.x({reflectToAttribute:!0}),_.p("design:type",Boolean)],zt.prototype,"inputExpanded",void 0);_.L([_.x({readOnly:!0,notify:!0}),_.p("design:type",Object)],zt.prototype,"liveChatRichMessageInput",void 0);_.L([_.x(),_.p("design:type",Object)],zt.prototype,"messageInput",void 0);_.L([_.x(),_.p("design:type",Boolean)],zt.prototype,"ignoreColorMapping",void 0);_.L([_.S("characterCount"),_.x({reflectToAttribute:!0}),_.p("design:type",Boolean),_.p("design:paramtypes",[])],zt.prototype,"hasText",null);
_.L([_.x(),_.p("design:type",Object)],zt.prototype,"isValidWithNoInputText",void 0);_.L([_.S("characterCount","maxCharacterLimit","isValidWithNoInputText"),_.x(),_.p("design:type",Boolean),_.p("design:paramtypes",[])],zt.prototype,"isInputValid",null);_.L([_.x({readOnly:!0,value:!1,reflectToAttribute:!0}),_.p("design:type",Boolean)],zt.prototype,"focused",void 0);_.L([_.x(),_.p("design:type",Array)],zt.prototype,"suggestions",void 0);
_.L([_.x(),_.p("design:type",_.mJ)],zt.prototype,"emojiManager",void 0);_.L([_.x(),_.p("design:type",_.aW)],zt.prototype,"participantsManager",void 0);_.L([_.x(),_.p("design:type",Boolean)],zt.prototype,"noUnderline",void 0);_.L([_.x(),_.p("design:type",Object)],zt.prototype,"inputMethodEditorActive",void 0);_.L([_.A3("#dropdown"),_.p("design:type",Object)],zt.prototype,"dropdown",void 0);_.L([_.A3("#input"),_.p("design:type",HTMLElement)],zt.prototype,"input",void 0);
_.L([_.O8("data"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],zt.prototype,"dataChanged",null);_.L([_.O8("messageInput"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],zt.prototype,"onMessageSet",null);_.L([_.gz("yt-live-chat-select-suggestion"),_.p("design:type",Function),_.p("design:paramtypes",[CustomEvent]),_.p("design:returntype")],zt.prototype,"onSuggestion",null);
_.L([_.O8("characterCount"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],zt.prototype,"characterCountChanged",null);_.L([_.O8("focused"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],zt.prototype,"focusedChanged",null);_.L([_.dz({disableElementRegistration:!0,is:"yt-live-chat-text-input-field-renderer",noInjection:!0})],zt);
_.TAj=_.D(zt,"yt-live-chat-text-input-field-renderer",function(){if(iql===void 0){var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-live-chat-text-input-field-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.yt_live_chat_text_input_field_renderer.yt.live.chat.text.input.field.renderer.css.js--\x3e<label id="label" class="style-scope yt-live-chat-text-input-field-renderer">[[getSimpleString(data.placeholder)]]</label>\n<div id="input" aria-label$="[[getSimpleString(data.placeholder)]]" aria-invalid$="[[!isInputValid]]" contenteditable="" tabindex$="[[inputTabIndex]]" on-blur="onBlur" on-dragenter="preventDrag" on-dragleave="preventDrag" on-dragover="preventDrag" on-drop="preventDrag" on-focus="onFocus" on-input="onInputChange" on-keydown="onKeyDown" on-keypress="onKeyPress" on-keyup="onKeyUp" on-paste="onInputPaste" class="style-scope yt-live-chat-text-input-field-renderer"></div>\n<div id="underline" hidden$="[[noUnderline]]" class="style-scope yt-live-chat-text-input-field-renderer">\n  <div id="unfocused" class="style-scope yt-live-chat-text-input-field-renderer"></div>\n  <div id="focused" class="style-scope yt-live-chat-text-input-field-renderer"></div>\n</div>\n<tp-yt-iron-dropdown id="dropdown" allow-outside-scroll="" no-auto-focus="" vertical-align="bottom" vertical-offset="24" class="style-scope yt-live-chat-text-input-field-renderer">\n  <div id="dropdown-content" class="dropdown-content style-scope yt-live-chat-text-input-field-renderer" slot="dropdown-content">\n  </div>\n</tp-yt-iron-dropdown>\n');
a.content.insertBefore(_.w().content.cloneNode(!0),a.content.firstChild);var z=a.content,I=z.insertBefore;SVj===void 0&&(SVj=document.createElement("template"));var J=SVj;I.call(z,J.content.cloneNode(!0),a.content.firstChild);iql=a}a=iql;return a},{mode:_.K("live_chat_enable_sink_wrapper")?2:0});var IW=function(){var a=_.G.apply(this,arguments)||this;a.buttonOverrides={style:"overlay",type:"filled"};a.allowAnimations=!1;a.modern=_.K("web_button_rework_with_live");a.noPadding=!1;return a};
_.b(IW,_.G);_.Z=IW.prototype;_.Z.shouldSupportInlineActionButtons=function(){return!0};
_.Z.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"}}}}};
_.Z.ready=function(){var a=document.querySelector("yt-live-chat-app");a&&a.hasAttribute("dashboard-money-feed")&&(this.dashboardMoneyFeed=!0)};
_.Z.attached=function(){this.allowAnimations=!1};
_.Z.dataChanged=function(){if(this.data){var a={"--yt-live-chat-paid-message-primary-color":this.ytLiveChatItemBehavior.colorFromDecimal(this.data.bodyBackgroundColor),"--yt-live-chat-paid-message-secondary-color":this.ytLiveChatItemBehavior.colorFromDecimal(this.data.headerBackgroundColor),"--yt-live-chat-paid-message-header-color":this.ytLiveChatItemBehavior.colorFromDecimal(this.data.headerTextColor),"--yt-live-chat-paid-message-timestamp-color":this.ytLiveChatItemBehavior.colorFromDecimal(this.data.timestampColor),
"--yt-live-chat-paid-message-color":this.ytLiveChatItemBehavior.colorFromDecimal(this.data.bodyTextColor),"--yt-live-chat-disable-highlight-message-author-name-color":this.ytLiveChatItemBehavior.colorFromDecimal(this.data.authorNameTextColor),"--yt-live-chat-text-input-background-color":this.ytLiveChatItemBehavior.colorFromDecimal(this.data.textInputBackgroundColor)};_.uK(this.hostElement,a);this.allowAnimations=!0}};
_.Z.messageChanged=function(){var a,z=(a=this.data)==null?void 0:a.message;a=_.PK(_.PK(this.hostElement).querySelector("#message"));a.textContent="";z&&a.appendChild(this.ytLiveChatItemBehavior.createDocumentFragment(z))};
_.Z.computeShowOnlyHeader=function(a,z){return!a||a.pdgLikeButton||a.replyButton||a.buyFlowButton?!1:this.isEmpty(a,z)&&!a.footer};
_.Z.computeShowFooterDivider=function(a,z,I){return a?!!a.footer&&!this.isEmpty(a,z)&&!I:!1};
_.Z.computeIsUserEditable=function(a){return!!a.inputField};
_.Z.computeHasHeartButton=function(a){return(a==null?void 0:a.heartState)==="TOOLBAR_HEART_STATE_UNHEARTED_EDITABLE"||(a==null?void 0:a.heartState)==="TOOLBAR_HEART_STATE_HEARTED_EDITABLE"||(a==null?void 0:a.heartState)==="TOOLBAR_HEART_STATE_HEARTED"};
_.Z.computeNoveltyImage=function(a){if(a.headerOverlayImage&&a.headerOverlayImage.thumbnails.length){var z=a.headerOverlayImage.thumbnails[0],I,J;if((I=a.pdgPurchasedNoveltyLoggingDirectives)==null?0:(J=I.loggingDirectives)==null?0:J.trackingParams){var r,P;fd3((r=a.pdgPurchasedNoveltyLoggingDirectives)==null?void 0:(P=r.loggingDirectives)==null?void 0:P.trackingParams)}return z.width||0}return 0};
_.Z.computeAuthorPhotoSize=function(a){return(a==null?0:a.isV2Style)&&!this.dashboardMoneyFeed?32:40};
_.Z.inputFocus=function(){var a=_.PK(this.hostElement).querySelector("yt-live-chat-text-input-field-renderer");a&&a.focus()};
_.Z.inputInsertEmoji=function(a){var z=_.PK(this.hostElement).querySelector("yt-live-chat-text-input-field-renderer");z&&z.insertEmoji(a)};
_.Z.inputMessage=function(){var a=_.PK(this.hostElement).querySelector("yt-live-chat-text-input-field-renderer"),z;return a&&((z=this.data)==null?0:z.inputField)?(a.completeEmojis(),_.LS(a.liveChatRichMessageInput)):null};
_.Z.isDeletedChanged=function(){this.ytLiveChatItemBehavior.isDeleted&&this.set("data.message",null)};
_.Z.isEmpty=function(a,z){return a?a.empty||!(a.message||a.inputField||z):!0};
_.Z.onLowerBuyButtonClick=function(){var a,z=_.H((a=this.data)==null?void 0:a.buyButton,_.lc);z&&z.trackingParams&&!Jd3(z.command)&&(a=_.VX(z.trackingParams))&&(z=_.TX())&&_.ys(z,a)};
_.Z.shouldSupportWholeItemClick=function(){return!0};
_.eH.Object.defineProperties(IW.prototype,{hideLowerBumper:{configurable:!0,enumerable:!0,get:function(){var a;return((a=this.data)==null?0:a.buyButton)||this.dashboardMoneyFeed?!0:!1}}});
IW.prototype.isDeletedChanged=IW.prototype.isDeletedChanged;IW.prototype.messageChanged=IW.prototype.messageChanged;IW.prototype.dataChanged=IW.prototype.dataChanged;_.L([_.Q(CMw.YtPdgLiveChatItemBehavior),_.p("design:type",Object)],IW.prototype,"ytPdgLiveChatItemBehavior",void 0);_.L([_.Q(_.k.YtRendererBehavior),_.p("design:type",Object)],IW.prototype,"ytRendererBehavior",void 0);_.L([_.Q(_.yb),_.p("design:type",Object)],IW.prototype,"ytLiveChatReduxBehavior",void 0);
_.L([_.Q(_.cc.YtLiveChatItemBehavior),_.p("design:type",_.Yu)],IW.prototype,"ytLiveChatItemBehavior",void 0);_.L([_.Q(_.u4.YtRendererstamperBehavior),_.p("design:type",Object)],IW.prototype,"ytRendererstamperBehavior",void 0);_.L([_.x(),_.p("design:type",Object)],IW.prototype,"data",void 0);_.L([_.x({selectorArgs:["data.creatorHeartButton.creatorHeartViewModel.engagementStateKey"],selector:gbM}),_.p("design:type",Object)],IW.prototype,"engagementState",void 0);
_.L([_.x({reflectToAttribute:!0,computed:"computeIsUserEditable(data)"}),_.p("design:type",Boolean)],IW.prototype,"isUserEditable",void 0);_.L([_.x({reflectToAttribute:!0,computed:"computeHasHeartButton(engagementState)"}),_.p("design:type",Boolean)],IW.prototype,"hasHeartButton",void 0);_.L([_.x({computed:"computeShowOnlyHeader(data, isDeleted)",reflectToAttribute:!0}),_.p("design:type",Boolean)],IW.prototype,"showOnlyHeader",void 0);
_.L([_.x({computed:"computeShowFooterDivider(data, isDeleted, isUserEditable)",reflectToAttribute:!0}),_.p("design:type",Boolean)],IW.prototype,"showFooterDivider",void 0);_.L([_.x({reflectToAttribute:!0,value:!1}),_.p("design:type",Object)],IW.prototype,"allowAnimations",void 0);_.L([_.x({reflectToAttribute:!0}),_.p("design:type",Boolean)],IW.prototype,"dashboardMoneyFeed",void 0);_.L([_.x({computed:"computeNoveltyImage(data)"}),_.p("design:type",Number)],IW.prototype,"noveltyWidth",void 0);
_.L([_.x({computed:"computeAuthorPhotoSize(data)"}),_.p("design:type",Number)],IW.prototype,"authorPhotoSize",void 0);_.L([_.x({reflectToAttribute:!0}),_.p("design:type",Object)],IW.prototype,"modern",void 0);_.L([_.x({reflectToAttribute:!0}),_.p("design:type",Object)],IW.prototype,"noPadding",void 0);_.L([_.O8("data"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],IW.prototype,"dataChanged",null);
_.L([_.O8("data.message"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],IW.prototype,"messageChanged",null);_.L([_.S("data","dashboardMoneyFeed"),_.p("design:type",Boolean),_.p("design:paramtypes",[])],IW.prototype,"hideLowerBumper",null);_.L([_.O8("isDeleted"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],IW.prototype,"isDeletedChanged",null);
_.L([_.U({disableElementRegistration:!0,is:"yt-live-chat-paid-message-renderer"})],IW);
_.D(IW,"yt-live-chat-paid-message-renderer",function(){if(w1X===void 0){var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-live-chat-paid-message-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.pdg.yt_live_chat_paid_message_renderer.yt.live.chat.paid.message.renderer.css.js--\x3e<div id="card" class="style-scope yt-live-chat-paid-message-renderer">\n  <div id="header" class="style-scope yt-live-chat-paid-message-renderer">\n    <template is="dom-if" if="[[data.authorPhoto]]" restamp="" class="style-scope yt-live-chat-paid-message-renderer">\n      <yt-img-shadow id="author-photo" height="[[authorPhotoSize]]" thumbnail="[[data.authorPhoto]]" width="[[authorPhotoSize]]" class="style-scope yt-live-chat-paid-message-renderer"></yt-img-shadow>\n    </template>\n    <template is="dom-if" if="[[!data.authorPhoto]]" class="style-scope yt-live-chat-paid-message-renderer">\n      <yt-icon id="author-photo" icon="yt-icons:avatar_anonymous" class="style-scope yt-live-chat-paid-message-renderer"></yt-icon>\n    </template>\n    <template is="dom-if" if="[[data.headerOverlayImage]]" restamp="" class="style-scope yt-live-chat-paid-message-renderer">\n      <yt-img-shadow id="overlay-image" thumbnail="[[data.headerOverlayImage]]" width="[[noveltyWidth]]" class="style-scope yt-live-chat-paid-message-renderer">\n      </yt-img-shadow>\n    </template>\n    <div id="header-content" class="style-scope yt-live-chat-paid-message-renderer">\n      <div id="header-content-primary-column" class="style-scope yt-live-chat-paid-message-renderer">\n        <div id="single-line" class="style-scope yt-live-chat-paid-message-renderer">\n          <div id="author-name-chip" is-deleted$="[[isDeleted]]" hidden$="[[!data.authorName]]" class="style-scope yt-live-chat-paid-message-renderer">\n            <yt-live-chat-author-chip author-badges="[[data.authorBadges]]" author-name="[[data.authorName]]" dashboard-money-feed="[[dashboardMoneyFeed]]" disable-highlighting="" single-line="" class="style-scope yt-live-chat-paid-message-renderer">\n            </yt-live-chat-author-chip>\n          </div>\n          <div id="leaderboard-badge" class="leaderboard-badge style-scope yt-live-chat-paid-message-renderer"></div>\n          <div id="purchase-amount-column" class="style-scope yt-live-chat-paid-message-renderer">\n            <yt-img-shadow id="currency-img" height="16" hidden$="[[!data.currencyImage.thumbnailDetails]]" thumbnail="[[data.currencyImage.thumbnailDetails]]" width="16" class="style-scope yt-live-chat-paid-message-renderer">\n            </yt-img-shadow>\n            <div id="purchase-amount" class="style-scope yt-live-chat-paid-message-renderer">\n              <yt-formatted-string text="[[data.purchaseAmountText]]" class="style-scope yt-live-chat-paid-message-renderer"></yt-formatted-string>\n            </div>\n          </div>\n        </div>\n      </div>\n      <span id="timestamp" class="style-scope yt-live-chat-paid-message-renderer">[[timestampString]]</span>\n      <div id="gradient-container" class="style-scope yt-live-chat-paid-message-renderer">\n        <div id="gradient" class="style-scope yt-live-chat-paid-message-renderer"></div>\n      </div>\n      <div id="menu" hidden$="[[!data.contextMenuEndpoint]]" class="style-scope yt-live-chat-paid-message-renderer">\n        <yt-icon-button id="menu-button" label="[[data.contextMenuAccessibility.accessibilityData.label]]" on-click="showContextMenu" class="style-scope yt-live-chat-paid-message-renderer">\n          <yt-icon icon="more_vert" class="style-scope yt-live-chat-paid-message-renderer"></yt-icon>\n        </yt-icon-button>\n      </div>\n      <div id="creator-heart-button" class="style-scope yt-live-chat-paid-message-renderer"></div>\n    </div>\n  </div>\n  <div id="content" class="style-scope yt-live-chat-paid-message-renderer">\n    <div id="message" dir="auto" class="style-scope yt-live-chat-paid-message-renderer"></div>\n    <div id="input-container" class="style-scope yt-live-chat-paid-message-renderer">\n      <template is="dom-if" if="[[data.inputField]]" class="style-scope yt-live-chat-paid-message-renderer">\n        <yt-live-chat-text-input-field-renderer id="input-field" data="[[data.inputField.liveChatTextInputFieldRenderer]]" message-input="[[messageInput]]" participants-manager="[[participantsManager]]" class="style-scope yt-live-chat-paid-message-renderer">\n        </yt-live-chat-text-input-field-renderer>\n      </template>\n    </div>\n    <yt-formatted-string id="deleted-state" is-deleted$="[[isDeleted]]" text="[[data.deletedStateMessage]]" class="style-scope yt-live-chat-paid-message-renderer"></yt-formatted-string>\n    <div id="footer" class="style-scope yt-live-chat-paid-message-renderer"></div>\n    <div id="action-buttons" class="style-scope yt-live-chat-paid-message-renderer">\n      <div id="like-button" class="action-button style-scope yt-live-chat-paid-message-renderer"></div>\n      <div id="reply-button" class="action-button style-scope yt-live-chat-paid-message-renderer"></div>\n      <div id="buy-button" class="action-button style-scope yt-live-chat-paid-message-renderer"></div>\n    </div>\n  </div>\n</div>\n<div id="lower-bumper" hidden$="[[hideLowerBumper]]" class="style-scope yt-live-chat-paid-message-renderer"></div>\n<div id="lower-buy-button" hidden$="[[!data.buyButton]]" on-click="onLowerBuyButtonClick" class="style-scope yt-live-chat-paid-message-renderer"></div>\n<div id="inline-action-button-container" class="style-scope yt-live-chat-paid-message-renderer">\n  <div id="inline-action-buttons" class="style-scope yt-live-chat-paid-message-renderer"></div>\n</div>\n');a.content.insertBefore(_.w().content.cloneNode(!0),
a.content.firstChild);var z=a.content,I=z.insertBefore;p1E===void 0&&(p1E=document.createElement("template"));var J=p1E;I.call(z,J.content.cloneNode(!0),a.content.firstChild);w1X=a}a=w1X;return a},{mode:_.K("live_chat_enable_sink_wrapper")?2:0});var dzo;var Wpw;var Jc=function(){var a=_.nM.apply(this,arguments)||this;a._noAccessors=!0;return a};
_.b(Jc,_.nM);Jc.prototype.created=function(){this.ytOpenPopupBehavior.openPopupConfig=_.Xw("openPopupConfig")};
_.L([_.Q(_.K_.YtOpenPopupBehavior),_.p("design:type",Object)],Jc.prototype,"ytOpenPopupBehavior",void 0);_.L([_.KM()],Jc);_.rI=[_.K_.YtOpenPopupBehavior,Jc.prototype];var oDJ;var MK=[_.KH,Zpl,_.D5,_.Fb,_.MZ,_.iRe,_.hv,_.LSj,_.$K,T9m];_.K("web_watch_get_updated_metadata_response_processing")&&MK.push(_.PzX);_.K("web_continuation_response_processing")&&MK.push(_.R5);var OkM=new _.I4("RESPONSE_RECEIVED_COMMANDS"),v4G=new _.I4("RESPONSE_RECEIVED_COMMANDS");var bPd="accountDisconnectionEndpoint accountIntegrationEndpoint accountLinkCommand accountUnlinkCommand addToRemoteQueueEndpoint clearRemoteQueueEndpoint insertInRemoteQueueEndpoint offlineVideoEndpoint openPopupAction pingingEndpoint removeFromRemoteQueueEndpoint".split(" "),HP3=["updatedMetadataEndpoint","getBroadcastStatusEndpoint","getLiveAnalyticsEndpoint","getSearchInVideoCommand","ypcLogWalletAnalyticDataEndpoint"],FMm=["GET_UNSEEN_NOTIFICATION_COUNT"];var PZ=function(){var a=_.nM.apply(this,arguments)||this;a._noAccessors=!0;a.serviceEndpointHandlers=[];return a};
_.b(PZ,_.nM);PZ.prototype.created=function(){var a=this;this.endpointHandlerActionMap={"yt-service-request":function(z,I,J,r){var P;return KMm(a.hostElement,z,I,J,r,a.serviceEndpointHandlers,(P=a.onEntitiesUpdated)==null?void 0:P.bind(a))}}};
PZ.prototype.attached=function(){_.m_(_.w2.getInstance(),this.endpointHandlerActionMap,this.hostElement)};
PZ.prototype.detached=function(){_.y4(_.w2.getInstance(),this.endpointHandlerActionMap,this.hostElement)};
_.L([_.KM()],PZ);_.Uzw=[PZ.prototype];var Dzj,R4E=function(){return Dzj!==void 0?Dzj:Dzj=document.createElement("template")};
document.head.appendChild(R4E().content);var Lpi;var lMI=document.head,p2i=lMI.appendChild,w2G;if(Lpi===void 0){var mzJ=document.createElement("template");_.V(mzJ,"\x3c!--css-build:shady--\x3e");mzJ.content.insertBefore(R4E().content.cloneNode(!0),mzJ.content.firstChild);Lpi=mzJ}w2G=Lpi;p2i.call(lMI,w2G.content);var yOe,kFO=function(){return yOe!==void 0?yOe:yOe=document.createElement("template")};
document.head.appendChild(kFO().content);var MAv;var cOO=document.head,YVX=cOO.appendChild,qVe;if(MAv===void 0){var e4O=document.createElement("template");_.V(e4O,"\x3c!--css-build:shady--\x3e");e4O.content.insertBefore(kFO().content.cloneNode(!0),e4O.content.firstChild);MAv=e4O}qVe=MAv;YVX.call(cOO,qVe.content);var adj;_.$q("itemSectionRenderer","buttonRenderer","ytd-button-renderer");_.$q("sharingRendererButtons","buttonRenderer","ytd-button-renderer");adj=_.K("web_button_rework")&&_.TZ("BUTTON_REWORK")||_.K("web_button_rework_with_live");_.Ze=function(){var a=_.G.apply(this,arguments)||this;a.isPressed=!1;a.actionMap={"yt-update-button-action":"handleUpdateButtonAction"};return a};
_.b(_.Ze,_.G);_.Z=_.Ze.prototype;_.Z.created=function(){this.showTooltips=!0};
_.Z.attached=function(){this.hostElement.hasAttribute("button-renderer")||this.hostElement.setAttribute("button-renderer","true")};
_.Z.onHintIdChanged=function(){var a=this,z,I,J=(z=this.ytButtonBehavior.data)==null?void 0:(I=z.hint)==null?void 0:I.hintRenderer;if(J&&J.hintId){z=_.Ct(this.hostElement,"yt-get-opened-popups-action");z=(z&&z.length===1?z[0]:[]).length>0;var r=null;J.hintId!=="sponsor-pre-purchase"||z?J.hintId.startsWith("sponsor-post-purchase")&&!z?r=HAl("membership-manage"):J.hintId.startsWith("sponsorships-premium-freebie-pre-purchase")&&!z&&(r=HAl("membership-freebie-join")):r=HAl("membership-join");r&&_.GW.addLowPriorityJob(function(){for(var P=
_.C(r),N=P.next();!N.done;N=P.next())a.ytComponentBehavior.resolveCommand(N.value)})}};
_.Z.onPressedStateChanged=function(){this.ytButtonBehavior.setPressedState(this.isPressed)};
_.Z.onYtNavigate=function(a){var z=this.ytdOpenPopupBehavior.getNavigationEndpointPopupAction(a.detail.endpoint);z&&(a.stopPropagation(),this.ytdOpenPopupBehavior.openPopup(z))};
_.Z.onYtServiceRequestSent=function(a,z){this.handleServiceRequestActions(z);_.PA(this.hostElement,"yt-service-request-sent-button-renderer")};
_.Z.onServiceRequestCompleted=function(a,z){this.handleServiceRequestActions(z);_.PA(this.hostElement,"yt-service-request-completed-button-renderer")};
_.Z.updateButton=function(a){var z;if(a=(z=_.H(a,qsI))==null?void 0:z.updatedButton)this.ytButtonBehavior.data=_.H(a,_.lc)};
_.Z.handleUpdateButtonAction=function(a){var z=this.ytButtonBehavior.data;z.targetId&&a.updateButtonAction.targetId&&z.targetId===a.updateButtonAction.targetId&&this.updateButton(a)};
_.Z.handleServiceRequestActions=function(a){if(a=a.actions)for(var z=0;z<a.length;z++)this.updateButton(a[z])};
_.eH.Object.defineProperties(_.Ze,{template:{configurable:!0,enumerable:!0,get:function(){if(oDJ===void 0){var a=document.createElement("template");_.V(a,"\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-button-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e");a.content.insertBefore(_.w().content.cloneNode(!0),a.content.firstChild);oDJ=a}a=oDJ;return a}}});
_.Ze.prototype.onServiceRequestCompleted=_.Ze.prototype.onServiceRequestCompleted;_.Ze.prototype.onYtServiceRequestSent=_.Ze.prototype.onYtServiceRequestSent;_.Ze.prototype.onYtNavigate=_.Ze.prototype.onYtNavigate;_.Ze.prototype.onPressedStateChanged=_.Ze.prototype.onPressedStateChanged;_.Ze.prototype.onHintIdChanged=_.Ze.prototype.onHintIdChanged;_.L([_.x(),_.p("design:type",Object)],_.Ze.prototype,"data",void 0);_.L([_.x(),_.p("design:type",Object)],_.Ze.prototype,"isPressed",void 0);
_.L([_.Q(_.Hc.YtActionHandlerBehavior),_.p("design:type",Object)],_.Ze.prototype,"ytActionHandlerBehavior",void 0);_.L([_.Q(_.Nml.YtButtonBehavior),_.p("design:type",Object)],_.Ze.prototype,"ytButtonBehavior",void 0);_.L([_.Q(_.rI),_.p("design:type",Object)],_.Ze.prototype,"ytdOpenPopupBehavior",void 0);_.L([_.Q(_.Ms.YtComponentBehavior),_.p("design:type",Object)],_.Ze.prototype,"ytComponentBehavior",void 0);
_.L([_.Q(xu.YtRenderButtonBehavior),_.p("design:type",Object)],_.Ze.prototype,"ytRenderButtonBehavior",void 0);_.L([_.O8("data.hint.hintRenderer"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],_.Ze.prototype,"onHintIdChanged",null);_.L([_.O8("isPressed"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],_.Ze.prototype,"onPressedStateChanged",null);
_.L([_.gz("yt-navigate"),_.p("design:type",Function),_.p("design:paramtypes",[CustomEvent]),_.p("design:returntype")],_.Ze.prototype,"onYtNavigate",null);_.L([_.gz("yt-service-request-sent"),_.p("design:type",Function),_.p("design:paramtypes",[CustomEvent,_.lJ]),_.p("design:returntype")],_.Ze.prototype,"onYtServiceRequestSent",null);
_.L([_.gz("yt-service-request-completed"),_.p("design:type",Function),_.p("design:paramtypes",[CustomEvent,_.Yq]),_.p("design:returntype")],_.Ze.prototype,"onServiceRequestCompleted",null);_.L([_.U({is:"ytd-button-renderer",disableElementRegistration:adj})],_.Ze);var CV=function(){var a=_.G.apply(this,arguments)||this;a.modern=_.K("web_button_rework_with_live");a.buttonOverrides={style:"overlay",type:"filled"};return a};
_.b(CV,_.G);_.Z=CV.prototype;_.Z.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"}}}}};
_.Z.ready=function(){var a=document.querySelector("yt-live-chat-app");a&&a.hasAttribute("dashboard-money-feed")&&(this.dashboardMoneyFeed=!0)};
_.Z.dataChanged=function(){if(this.data&&this.data.sticker){var a=_.r4(this.data.sticker.thumbnails,this.stickerWidth);a||_.o4d(a).thenCatch(function(){_.Xd(new _.Fn("Failed to load Super Sticker with url",a))})}};
_.Z.computeAuthorPhotoSize=function(a){return(a==null?0:a.isV2Style)?32:40};
_.Z.computeIsV2Style=function(a){return(a==null?0:a.isV2Style)?!0:!1};
_.Z.onStickerLoaded=function(a){var z,I,J;(z=_.Yh(a))==null||(I=z.parentNode)==null||(J=I.classList)==null||J.add("sticker-loaded")};
_.Z.computeNoveltyImageWidth=function(a){var z,I;if(a==null?0:(z=a.headerOverlayImage)==null?0:(I=z.thumbnails)==null?0:I.length){z=a.headerOverlayImage.thumbnails[0];var J,r;if((J=a.pdgPurchasedNoveltyLoggingDirectives)==null?0:(r=J.loggingDirectives)==null?0:r.trackingParams){var P,N;fd3((P=a.pdgPurchasedNoveltyLoggingDirectives)==null?void 0:(N=P.loggingDirectives)==null?void 0:N.trackingParams)}return z.width||0}return 0};
_.Z.isDeletedChanged=function(){this.isDeleted&&(this.set("data.detailText",null),this.set("data.superStickerIcon",null),this.set("data.sticker",null))};
_.Z.updateStickerStyles=function(){var a=this.data;a&&(a={"--yt-live-chat-paid-sticker-chip-background-color":this.ytLiveChatItemBehavior.colorFromDecimal(a.moneyChipBackgroundColor),"--yt-live-chat-paid-sticker-chip-text-color":this.ytLiveChatItemBehavior.colorFromDecimal(a.moneyChipTextColor),"--yt-live-chat-paid-sticker-background-color":this.ytLiveChatItemBehavior.colorFromDecimal(a.backgroundColor),"--yt-live-chat-disable-highlight-message-author-name-color":this.ytLiveChatItemBehavior.colorFromDecimal(a.authorNameTextColor)},
_.uK(this.hostElement,a))};
_.Z.onBuyButtonClick=function(){var a,z=_.H((a=this.data)==null?void 0:a.buyButton,_.lc);z&&!Jd3(z.command)&&this.ytRendererBehavior.logExplicitClick(z)};
_.Z.shouldSupportWholeItemClick=function(){return!0};
_.eH.Object.defineProperties(CV.prototype,{stickerWidth:{configurable:!0,enumerable:!0,get:function(){return this.data&&this.data.stickerDisplayWidth||96}},
stickerHeight:{configurable:!0,enumerable:!0,get:function(){return this.data&&this.data.stickerDisplayWidth||96}},
hasHeartButton:{configurable:!0,enumerable:!0,get:function(){return!!this.data&&!!this.data.creatorHeartButton}},
hideLowerBumper:{configurable:!0,enumerable:!0,get:function(){var a;return((a=this.data)==null?0:a.buyButton)||this.dashboardMoneyFeed?!0:!1}}});
CV.prototype.updateStickerStyles=CV.prototype.updateStickerStyles;CV.prototype.isDeletedChanged=CV.prototype.isDeletedChanged;CV.prototype.onStickerLoaded=CV.prototype.onStickerLoaded;CV.prototype.dataChanged=CV.prototype.dataChanged;_.L([_.Q(CMw.YtPdgLiveChatItemBehavior),_.p("design:type",Object)],CV.prototype,"ytPdgLiveChatItemBehavior",void 0);_.L([_.Q(_.k.YtRendererBehavior),_.p("design:type",Object)],CV.prototype,"ytRendererBehavior",void 0);
_.L([_.Q(_.Ms.YtComponentBehavior),_.p("design:type",Object)],CV.prototype,"ytComponentBehavior",void 0);_.L([_.Q(_.cc.YtLiveChatItemBehavior),_.p("design:type",_.Yu)],CV.prototype,"ytLiveChatItemBehavior",void 0);_.L([_.Q(_.u4.YtRendererstamperBehavior),_.p("design:type",Object)],CV.prototype,"ytRendererstamperBehavior",void 0);_.L([_.x(),_.p("design:type",Object)],CV.prototype,"data",void 0);
_.L([_.x({computed:"computeAuthorPhotoSize(data)"}),_.p("design:type",Number)],CV.prototype,"authorPhotoSize",void 0);_.L([_.x(),_.p("design:type",Boolean)],CV.prototype,"isDeleted",void 0);_.L([_.x({reflectToAttribute:!0}),_.p("design:type",Boolean)],CV.prototype,"dashboardMoneyFeed",void 0);_.L([_.x({computed:"computeNoveltyImageWidth(data)"}),_.p("design:type",Number)],CV.prototype,"noveltyWidth",void 0);_.L([_.x({reflectToAttribute:!0}),_.p("design:type",Object)],CV.prototype,"modern",void 0);
_.L([_.x({reflectToAttribute:!0,computed:"computeIsV2Style(data)"}),_.p("design:type",Boolean)],CV.prototype,"isV2Style",void 0);_.L([_.O8("data"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],CV.prototype,"dataChanged",null);_.L([_.gz("yt-img-shadow-loaded"),_.p("design:type",Function),_.p("design:paramtypes",[CustomEvent]),_.p("design:returntype")],CV.prototype,"onStickerLoaded",null);
_.L([_.S("data"),_.p("design:type",Number),_.p("design:paramtypes",[])],CV.prototype,"stickerWidth",null);_.L([_.S("data"),_.p("design:type",Number),_.p("design:paramtypes",[])],CV.prototype,"stickerHeight",null);_.L([_.x({reflectToAttribute:!0}),_.S("data"),_.p("design:type",Boolean),_.p("design:paramtypes",[])],CV.prototype,"hasHeartButton",null);_.L([_.S("data","dashboardMoneyFeed"),_.p("design:type",Boolean),_.p("design:paramtypes",[])],CV.prototype,"hideLowerBumper",null);
_.L([_.O8("isDeleted"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],CV.prototype,"isDeletedChanged",null);_.L([_.O8("data"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],CV.prototype,"updateStickerStyles",null);_.L([_.dz({disableElementRegistration:!0,is:"yt-live-chat-paid-sticker-renderer",noInjection:!0})],CV);
_.D(CV,"yt-live-chat-paid-sticker-renderer",function(){if(Wpw===void 0){var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-live-chat-paid-sticker-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.pdg.yt_live_chat_paid_sticker_renderer.yt.live.chat.paid.sticker.renderer.css.js--\x3e<div id="card" class="style-scope yt-live-chat-paid-sticker-renderer"><div id="author-info" tabindex="0" class="style-scope yt-live-chat-paid-sticker-renderer"><template is="dom-if" if="[[data.authorPhoto]]" restamp="" class="style-scope yt-live-chat-paid-sticker-renderer"><yt-img-shadow id="author-photo" class="no-transition style-scope yt-live-chat-paid-sticker-renderer" height="[[authorPhotoSize]]" thumbnail="[[data.authorPhoto]]" width="[[authorPhotoSize]]"></yt-img-shadow></template><template is="dom-if" if="[[!data.authorPhoto]]" class="style-scope yt-live-chat-paid-sticker-renderer"><yt-icon id="author-photo" icon="yt-icons:avatar_anonymous" class="style-scope yt-live-chat-paid-sticker-renderer"></yt-icon></template><template is="dom-if" if="[[data.headerOverlayImage]]" restamp="" class="style-scope yt-live-chat-paid-sticker-renderer"><yt-img-shadow id="overlay-image" thumbnail="[[data.headerOverlayImage]]" width="[[noveltyWidth]]" class="style-scope yt-live-chat-paid-sticker-renderer"></yt-img-shadow></template><div id="content" class="style-scope yt-live-chat-paid-sticker-renderer"><span id="timestamp" hidden$="[[!data.timestampUsec]]" class="style-scope yt-live-chat-paid-sticker-renderer">[[timestampString]]</span><div id="content-primary-column" class="style-scope yt-live-chat-paid-sticker-renderer"><div id="author-name-chip" is-deleted$="[[isDeleted]]" hidden$="[[!data.authorName]]" class="style-scope yt-live-chat-paid-sticker-renderer"><yt-live-chat-author-chip author-badges="[[data.authorBadges]]" author-name="[[data.authorName]]" dashboard-money-feed="[[dashboardMoneyFeed]]" disable-highlighting="" single-line="" class="style-scope yt-live-chat-paid-sticker-renderer"></yt-live-chat-author-chip></div><span id="price-column" class="style-scope yt-live-chat-paid-sticker-renderer"><yt-formatted-string id="purchase-amount-chip" text="[[data.purchaseAmountText]]" class="style-scope yt-live-chat-paid-sticker-renderer"></yt-formatted-string><yt-formatted-string id="deleted-state" is-deleted$="[[isDeleted]]" text="[[data.deletedStateMessage]]" class="style-scope yt-live-chat-paid-sticker-renderer"></yt-formatted-string></span></div></div></div><div id="sticker-container" hidden$="[[!data.sticker]]" class="style-scope yt-live-chat-paid-sticker-renderer"><yt-img-shadow id="sticker" height="[[stickerHeight]]" hidden$="[[!data.sticker]]" notify-on-loaded="" tabindex="0" thumbnail="[[data.sticker]]" width="[[stickerWidth]]" class="style-scope yt-live-chat-paid-sticker-renderer"></yt-img-shadow></div><yt-formatted-string id="dashboard-deleted-state" is-deleted$="[[isDeleted]]" text="[[data.deletedStateMessage]]" class="style-scope yt-live-chat-paid-sticker-renderer"></yt-formatted-string><div id="menu" hidden$="[[!data.contextMenuEndpoint]]" class="style-scope yt-live-chat-paid-sticker-renderer"><yt-icon-button id="menu-button" label="[[data.contextMenuAccessibility.accessibilityData.label]]" on-click="showContextMenu" class="style-scope yt-live-chat-paid-sticker-renderer"><yt-icon icon="more_vert" class="style-scope yt-live-chat-paid-sticker-renderer"></yt-icon></yt-icon-button></div><div id="gradient-container" class="style-scope yt-live-chat-paid-sticker-renderer"><div id="gradient" class="style-scope yt-live-chat-paid-sticker-renderer"></div></div><div id="creator-heart-button" class="style-scope yt-live-chat-paid-sticker-renderer"></div></div><div id="lower-bumper" hidden$="[[hideLowerBumper]]" class="style-scope yt-live-chat-paid-sticker-renderer"></div><div id="buy-flow-button" hidden$="[[!data.buyButton]]" on-click="onBuyButtonClick" class="style-scope yt-live-chat-paid-sticker-renderer"></div><div id="inline-action-button-container" class="style-scope yt-live-chat-paid-sticker-renderer"><div id="inline-action-buttons" class="style-scope yt-live-chat-paid-sticker-renderer"></div></div>');
a.content.insertBefore(_.w().content.cloneNode(!0),a.content.firstChild);var z=a.content,I=z.insertBefore;dzo===void 0&&(dzo=document.createElement("template"));var J=dzo;I.call(z,J.content.cloneNode(!0),a.content.firstChild);Wpw=a}a=Wpw;return a},{mode:_.K("live_chat_enable_sink_wrapper")?2:0});var j2e;var zjj;var IdG,JSf=function(){return IdG!==void 0?IdG:IdG=document.createElement("template")};
document.head.appendChild(JSf().content);var rS1,PXO=function(){return rS1!==void 0?rS1:rS1=document.createElement("template")};
document.head.appendChild(PXO().content);var Ziw;var CX1,Nl1=function(){return CX1!==void 0?CX1:CX1=document.createElement("template")};
document.head.appendChild(Nl1().content);var tU1;var uLG=document.head,EbG=uLG.appendChild,Blj;if(tU1===void 0){var gbI=document.createElement("template");_.V(gbI,"\x3c!--css-build:shady--\x3e");gbI.content.insertBefore(Nl1().content.cloneNode(!0),gbI.content.firstChild);tU1=gbI}Blj=tU1;EbG.call(uLG,Blj.content);var Oiw=document.head,fdJ=Oiw.appendChild,ASw;if(Ziw===void 0){var N5=document.createElement("template");_.V(N5,"\x3c!--css-build:shady--\x3e");N5.content.insertBefore(PXO().content.cloneNode(!0),N5.content.firstChild);N5.content.insertBefore(JSf().content.cloneNode(!0),N5.content.firstChild);Ziw=N5}ASw=Ziw;fdJ.call(Oiw,ASw.content);var tc=function(){var a=_.nM.apply(this,arguments)||this;a.focusedIndex=0;a.verticalOffset=0;a.verticalAlign="top";a.dynamicAlign=!0;return a};
_.b(tc,_.nM);tc.prototype.emojiUrl=function(a){a=_.y6(this.emojiManager,a);if(!a)return"";var z;a=(z=a.image)==null?void 0:z.thumbnails;return _.r4(a,24)||""};
var s2O=function(a){var z;a.emojiVariants&&(z=a.data)!=null&&z.target&&_.Yv(a,function(){a.set("verticalOffset",-1*a.hostElement.clientHeight);var I=_.PK(a.hostElement).querySelector("img");I&&I.focus()})};
_.Z=tc.prototype;_.Z.onKeyboardEnter=function(){};
_.Z.onVerticalOffsetOrPositionTargetChanged=function(){this.ironOverlayBehavior.position()};
_.Z.onEmojiVariantsChanged=function(){this.emojiVariants&&(this.ironOverlayBehavior.noCancelOnOutsideClick=!0,this.ironOverlayBehavior.open())};
_.Z.onKeyDown=function(a){switch(a.keyCode){case 13:this.onKeyboardEnter();a.preventDefault();break;case 40:this.changeFocus(1);a.preventDefault();break;case 38:this.changeFocus(-1);a.preventDefault();break;case 27:this.ironOverlayBehavior.restoreFocusOnClose=!0,this.ironOverlayBehavior.close()}};
_.Z.onYtEmojiSelect=function(a){var z=this,I,J,r,P,N,u,E,O;return _.t(function(f){if(f.nextAddress==1)return J=(I=z.data)==null?void 0:I.emoji,N=((r=J)==null?void 0:r.stickyPrefId)||((P=J)==null?void 0:P.emojiId),E=(u=a.detail)==null?void 0:u.emojiId,N&&E&&N!==E?f.yield((O=z.emojiManager)==null?void 0:bqI(O,J,E),2):f.return();_.ZF(z.hostElement,"yt-live-chat-emoji-sticky-preference-changed",[J,E]);_.nu(f)})};
_.Z.changeFocus=function(a){this.emojiVariants&&this.emojiVariants.length&&(this.focusedIndex=(this.focusedIndex+a+this.emojiVariants.length)%this.emojiVariants.length,this.focusedIndex<this.emojiVariants.length&&(a=_.PK(this.hostElement).querySelector("#variants"))&&a.children[this.focusedIndex].focus())};
_.eH.Object.defineProperties(tc.prototype,{positionTarget:{configurable:!0,enumerable:!0,get:function(){var a;return((a=this.data)==null?void 0:a.target)||this.hostElement.parentElement}},
isPositioned:{configurable:!0,enumerable:!0,get:function(){return this.data&&!this.data.target||!!this.verticalOffset}}});
tc.prototype.onYtEmojiSelect=tc.prototype.onYtEmojiSelect;tc.prototype.onKeyDown=tc.prototype.onKeyDown;tc.prototype.onEmojiVariantsChanged=tc.prototype.onEmojiVariantsChanged;tc.prototype.onVerticalOffsetOrPositionTargetChanged=tc.prototype.onVerticalOffsetOrPositionTargetChanged;_.L([_.Q(_.Mb),_.p("design:type",Object)],tc.prototype,"ironOverlayBehavior",void 0);_.L([_.x(),_.p("design:type",Object)],tc.prototype,"data",void 0);_.L([_.x(),_.p("design:type",_.mJ)],tc.prototype,"emojiManager",void 0);
_.L([_.x(),_.p("design:type",Object)],tc.prototype,"emojiVariants",void 0);_.L([_.x(),_.p("design:type",Object)],tc.prototype,"focusedIndex",void 0);_.L([_.S("data"),_.p("design:type",Object),_.p("design:paramtypes",[])],tc.prototype,"positionTarget",null);_.L([_.x({reflectToAttribute:!0}),_.S("verticalOffset","data"),_.p("design:type",Boolean),_.p("design:paramtypes",[])],tc.prototype,"isPositioned",null);_.L([_.x(),_.p("design:type",Object)],tc.prototype,"verticalOffset",void 0);
_.L([_.x(),_.p("design:type",Object)],tc.prototype,"verticalAlign",void 0);_.L([_.x(),_.p("design:type",Object)],tc.prototype,"dynamicAlign",void 0);_.L([_.O8("verticalOffset","positionTarget"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],tc.prototype,"onVerticalOffsetOrPositionTargetChanged",null);_.L([_.O8("emojiVariants"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],tc.prototype,"onEmojiVariantsChanged",null);
_.L([_.gz("keydown"),_.p("design:type",Function),_.p("design:paramtypes",[KeyboardEvent]),_.p("design:returntype")],tc.prototype,"onKeyDown",null);_.L([_.gz("yt-emoji-select"),_.p("design:type",Function),_.p("design:paramtypes",[CustomEvent]),_.p("design:returntype",Promise)],tc.prototype,"onYtEmojiSelect",null);_.L([_.KM()],tc);var nbw=[tc.prototype];var K$i;var F$w;var HiO=/medium-light|medium-dark|light|medium|dark/,biI=/[\w-]*?(?=\/\w+\/\w+\.(?:svg|png)$)/,hjl=new Map([["dark","\ud83c\udfff"],["medium-dark","\ud83c\udffe"],["medium","\ud83c\udffd"],["medium-light","\ud83c\udffc"],["light","\ud83c\udffb"]]),uf=function(){var a=_.G.apply(this,arguments)||this;a.userSelection={left:null,right:null};a.scrollAction="lock";a.isEmojiDraftInProgress=!1;return a};
_.b(uf,_.G);_.Z=uf.prototype;_.Z.onClick=function(a){a=_.Yh(a);a instanceof HTMLImageElement&&this.selectOrUpdateEmoji(a)};
_.Z.selectOrUpdateEmoji=function(a){var z=a.getAttribute("selection");z&&(z==="default"?_.PA(this.hostElement,"yt-emoji-select",_.y6(this.emojiManager,a.id)):z==="left"?this.userSelection=Object.assign({},this.userSelection,{left:a.src}):z==="right"?this.userSelection=Object.assign({},this.userSelection,{right:a.src}):z==="user"&&this.userSelection.left&&this.userSelection.right&&_.PA(this.hostElement,"yt-emoji-select",_.y6(this.emojiManager,a.id)))};
_.Z.openSelector=function(){this.ironOverlayBehavior.restoreFocusOnClose=!0;this.ironOverlayBehavior.open()};
_.Z.onMultiSelectorThumbnailRowChanged=function(){var a,z,I;((a=this.data)==null?0:(z=a.emoji)==null?0:(I=z.multiSelectorThumbnailRow)==null?0:I.length)&&this.openSelector()};
_.Z.getThumbnailFromEmojiRow=function(a){var z,I;return(a==null?void 0:(z=a.thumbnails)==null?void 0:(I=z[0])==null?void 0:I.url)||""};
_.Z.getEmojiAltTextForPartialSelector=function(a){var z;return((z=this.getThumbnailFromEmojiRow(a).match(biI))==null?void 0:z[0])||""};
_.Z.getEmojiAltTextForDraftEmoji=function(){return this.composedEmojiSelection?this.composedEmojiSelection.emojiId||"":""};
_.Z.getDraftEmojiAriaRole=function(){return this.composedEmojiSelection?"option":""};
_.Z.getRowSelection=function(a){return["left","right"][a]};
_.Z.getIdFromComposedEmoji=function(a){return(a==null?void 0:a.emojiId)||""};
_.Z.getEmojiFromPartialSelections=function(a,z){if(!a&&!z)return null;var I,J,r=(I=this.data)==null?void 0:(J=I.emoji)==null?void 0:J.variantIds;if(!r||!r.length)return null;var P;a=(P=a.match(HiO))==null?void 0:P[0];var N;z=(N=z.match(HiO))==null?void 0:N[0];if(!a||!z)return null;var u=hjl.get(a);N=hjl.get(z);if(u===N){N=Array.from(hjl.values()).filter(function(O){return O!==u}).join("|");
var E=new RegExp("^((?!("+N+")).)*"+u+"$")}else E=new RegExp(u+".*"+N);return(r=r.find(function(O){return E.test(O)}))&&_.y6(this.emojiManager,r)||null};
_.Z.onUserSelectionSrcLoad=function(){if(!this.isEmojiDraftInProgress&&this.data){var a,z=this.ytEmojiSelectorBehavior.emojiUrl(((a=this.data.emoji)==null?void 0:a.emojiId)||"");_.PK(this.hostElement).querySelector('[selection="user"]').src.includes(z)||(this.isEmojiDraftInProgress=!0)}};
_.Z.onDomChange=function(){s2O(this.ytEmojiSelectorBehavior)};
_.Z.getFocusableElements=function(){return _.PK(this.hostElement).querySelectorAll("img").filter(function(a){return a.getAttribute("role")==="option"})};
_.Z.changeFocus=function(a){var z=this.getFocusableElements();z!=null&&z.length&&(this.ytEmojiSelectorBehavior.focusedIndex=(this.ytEmojiSelectorBehavior.focusedIndex+a+z.length)%z.length,this.ytEmojiSelectorBehavior.focusedIndex<z.length&&(a=z[this.ytEmojiSelectorBehavior.focusedIndex])&&a.focus())};
_.Z.onKeyboardEnter=function(){var a=this.getFocusableElements();a!=null&&a.length&&(a=a[this.ytEmojiSelectorBehavior.focusedIndex])&&a instanceof HTMLImageElement&&(this.selectOrUpdateEmoji(a),this.ytEmojiSelectorBehavior.changeFocus(0))};
_.eH.Object.defineProperties(uf.prototype,{emojiVariants:{configurable:!0,enumerable:!0,get:function(){var a=this,z,I,J;return this.emojiManager&&((z=this.data)==null?0:(I=z.emoji)==null?0:(J=I.variantIds)==null?0:J.length)?this.data.emoji.variantIds.map(function(r){return!!r&&_.y6(a.emojiManager,r)}).filter(function(r){return!!r}):[]}},
composedEmojiSelection:{configurable:!0,enumerable:!0,get:function(){if(!this.data)return null;var a,z=(a=this.userSelection)==null?void 0:a.left,I;a=(I=this.userSelection)==null?void 0:I.right;return z&&a?this.getEmojiFromPartialSelections(z,a):null}},
draftEmojiUrl:{configurable:!0,enumerable:!0,get:function(){var a;if((a=this.composedEmojiSelection)==null?0:a.emojiId)return this.ytEmojiSelectorBehavior.emojiUrl(this.composedEmojiSelection.emojiId)||"";if(!this.data)return"";var z;a=(z=this.userSelection)==null?void 0:z.left;var I;z=(I=this.userSelection)==null?void 0:I.right;if(!a&&!z){var J;return this.ytEmojiSelectorBehavior.emojiUrl(((J=this.data.emoji)==null?void 0:J.emojiId)||"")}return a&&!z?a:!a&&z?z:""}}});
uf.prototype.onMultiSelectorThumbnailRowChanged=uf.prototype.onMultiSelectorThumbnailRowChanged;uf.prototype.onClick=uf.prototype.onClick;_.L([_.Q(_.Mb),_.p("design:type",Object)],uf.prototype,"ironOverlayBehavior",void 0);_.L([_.Q(nbw),_.p("design:type",Object)],uf.prototype,"ytEmojiSelectorBehavior",void 0);_.L([_.x(),_.p("design:type",Object)],uf.prototype,"data",void 0);_.L([_.x(),_.p("design:type",_.mJ)],uf.prototype,"emojiManager",void 0);
_.L([_.x(),_.p("design:type",Object)],uf.prototype,"userSelection",void 0);_.L([_.x(),_.p("design:type",Object)],uf.prototype,"scrollAction",void 0);_.L([_.x(),_.p("design:type",Object)],uf.prototype,"isEmojiDraftInProgress",void 0);_.L([_.S("data"),_.p("design:type",Object),_.p("design:paramtypes",[])],uf.prototype,"emojiVariants",null);_.L([_.S("data","userSelection"),_.p("design:type",Object),_.p("design:paramtypes",[])],uf.prototype,"composedEmojiSelection",null);
_.L([_.gz("click"),_.p("design:type",Function),_.p("design:paramtypes",[MouseEvent]),_.p("design:returntype")],uf.prototype,"onClick",null);_.L([_.O8("data.emoji.multiSelectorThumbnailRow"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],uf.prototype,"onMultiSelectorThumbnailRowChanged",null);_.L([_.S("data","userSelection","composedEmojiSelection"),_.p("design:type",String),_.p("design:paramtypes",[])],uf.prototype,"draftEmojiUrl",null);
_.L([_.dz({is:"yt-emoji-multi-person-selector",disableElementRegistration:!0})],uf);
_.D(uf,"yt-emoji-multi-person-selector",function(){if(F$w===void 0){var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-emoji-multi-person-selector--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.yt_emoji_multi_person_selector.yt.emoji.multi.person.selector.css.js--\x3e<div id="options" class="style-scope yt-emoji-multi-person-selector">\n  <template is="dom-repeat" id="repeat" items="[[data.emoji.multiSelectorThumbnailRow]]" notify-dom-change="" as="row" index-as="rowIndex" on-dom-change="onDomChange" class="style-scope yt-emoji-multi-person-selector">\n    <div class="variant-thumbnail-row style-scope yt-emoji-multi-person-selector">\n      <template is="dom-repeat" id="thumbnail-row-repeat" items="[[row.thumbnails]]" as="thumbnail" class="style-scope yt-emoji-multi-person-selector">\n        \n        <img height="24" role="option" alt="[[getEmojiAltTextForPartialSelector(thumbnail)]]" src$="[[getThumbnailFromEmojiRow(thumbnail)]]" tabindex="-1" width="24" selection$="[[getRowSelection(rowIndex)]]" class="style-scope yt-emoji-multi-person-selector">\n      </template>\n    </div>\n  </template>\n</div>\n<div id="selections" class="style-scope yt-emoji-multi-person-selector">\n\n  <img id="[[data.emoji.emojiId]]" class="default-selection style-scope yt-emoji-multi-person-selector" alt="[[data.emoji.emojiId]]" height="36" role="option" src$="[[emojiUrl(data.emoji.emojiId)]]" tabindex="-1" width="36" selection="default">\n  <img id$="[[getIdFromComposedEmoji(composedEmojiSelection)]]" class="user-selection style-scope yt-emoji-multi-person-selector" is-draft$="[[isEmojiDraftInProgress]]" alt="[[getEmojiAltTextForDraftEmoji(composedEmojiSelection)]]" height="36" role$="[[getDraftEmojiAriaRole(composedEmojiSelection)]]" src$="[[draftEmojiUrl]]" selection="user" tabindex="-1" width="36" on-load="onUserSelectionSrcLoad">\n</div>\n');a.content.insertBefore(_.w().content.cloneNode(!0),
a.content.firstChild);var z=a.content,I=z.insertBefore;K$i===void 0&&(K$i=document.createElement("template"));var J=K$i;I.call(z,J.content.cloneNode(!0),a.content.firstChild);F$w=a}a=F$w;return a},{mode:2});var VUX;var Q2o;var EF=function(){var a=_.G.apply(this,arguments)||this;a.tooltip_=null;return a};
_.b(EF,_.G);_.Z=EF.prototype;_.Z.dataChanged_=function(){var a;if((a=this.data)==null?0:a.tooltip)this.tooltip_||(this.tooltip_=document.createElement("tp-yt-paper-tooltip"),_.PK(this.hostElement).querySelector("#button").appendChild(this.tooltip_)),(0,_.t3)(this.tooltip_).textContent=this.data.tooltip};
_.Z.computeTargetId=function(){var a;return((a=this.data)==null?void 0:a.targetId)||""};
_.Z.computeId_=function(a){return a};
_.Z.computeIcon_=function(a){return _.Bl(a)};
_.Z.onTap_=function(){this.active=!this.active;_.PA(this.hostElement,"yt-emoji-picker-select-category",{categoryId:this.hostElement.id})};
_.Z.activeChangedForBinding=function(){this.hostElement.dispatchEvent(new _.eY("active-changed",this.active))};
_.eH.Object.defineProperties(EF.prototype,{iconFilled:{configurable:!0,enumerable:!0,get:function(){var a,z;if((a=this.data)==null?0:(z=a.icon)==null?0:z.iconType)return this.data.icon.iconType==="SUPER_STICKER";var I,J;return((I=this.data)==null?void 0:(J=I.icon)==null?void 0:J.iconType)==="VIDEO_YOUTUBE"?!0:!1}}});
EF.prototype.activeChangedForBinding=EF.prototype.activeChangedForBinding;EF.prototype.dataChanged_=EF.prototype.dataChanged_;_.L([_.Q(_.ko.YtLiveChatTooltipTargetingBehavior),_.p("design:type",Object)],EF.prototype,"ytLiveChatTooltipTargetingBehavior",void 0);_.L([_.x(),_.p("design:type",Object)],EF.prototype,"data",void 0);_.L([_.x({computed:"computeId_(data.categoryId)",reflectToAttribute:!0}),_.p("design:type",String)],EF.prototype,"id",void 0);
_.L([_.x({computed:"computeTargetId(data.targetId)"}),_.p("design:type",String)],EF.prototype,"targetId",void 0);_.L([_.x({value:!1,reflectToAttribute:!0}),_.p("design:type",Boolean)],EF.prototype,"active",void 0);_.L([_.x({readOnly:!0,computed:"computeIcon_(data.icon.iconType)"}),_.p("design:type",String)],EF.prototype,"icon",void 0);_.L([_.O8("data"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],EF.prototype,"dataChanged_",null);
_.L([_.S("data"),_.p("design:type",Boolean),_.p("design:paramtypes",[])],EF.prototype,"iconFilled",null);_.L([_.O8("active"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],EF.prototype,"activeChangedForBinding",null);_.L([_.dz({is:"yt-emoji-picker-category-button-renderer",disableElementRegistration:!0})],EF);
_.D(EF,"yt-emoji-picker-category-button-renderer",function(){if(Q2o===void 0){var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-emoji-picker-category-button-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.yt_emoji_picker_category_button_renderer.yt.emoji.picker.category.button.renderer.css.js--\x3e<yt-icon-button id="button" label="[[data.accessibility.accessibilityData.label]]" on-tap="onTap_" class="style-scope yt-emoji-picker-category-button-renderer">\n  <yt-icon default-to-filled="[[iconFilled]]" icon="[[icon]]" class="style-scope yt-emoji-picker-category-button-renderer"></yt-icon>\n</yt-icon-button>\n');a.content.insertBefore(_.w().content.cloneNode(!0),
a.content.firstChild);var z=a.content,I=z.insertBefore;VUX===void 0&&(VUX=document.createElement("template"));var J=VUX;I.call(z,J.content.cloneNode(!0),a.content.firstChild);Q2o=a}a=Q2o;return a},{mode:2});var S$1;var iiw;var BZ=function(){var a=_.G.apply(this,arguments)||this;a.ariaLabel=null;a.ariaActivedescendant=null;a.actionMap={"yt-live-chat-emoji-skin-tone-changed":"emojiSkinToneChanged_","yt-close-emoji-variant-selector":"onCloseEmojiVariantSelector","yt-live-chat-emoji-sticky-preference-changed":"onEmojiStickyPreferenceChanged"};a.JSC$14076_ignoreNextFocus_=!1;a.longPressTimeoutId=-1;return a};
_.b(BZ,_.G);_.Z=BZ.prototype;_.Z.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","listbox");this.hostElement.hasAttribute("tabindex")||this.hostElement.setAttribute("tabindex","0")};
_.Z.detached=function(){clearTimeout(this.longPressTimeoutId)};
_.Z.emojiChanged_=function(){this.changeFocus_(0,!1);for(var a=_.Kw(),z=0;z<this.emoji.length;z++){var I={veType:88013,elementIndex:z},J=this.emoji[z];J.isCustomEmoji&&(J=document.querySelector(("#"+J.emojiId).replace("/","\\/")))&&(I=_.nw(a,I))&&(J.visualElement=I)}};
_.Z.emojiManagerChanged_=function(){this.skinTone=this.emojiManager.skinTone};
_.Z.disableIncrementalLoadingChanged_=function(){this.disableIncrementalLoading&&(this.domRepeatTargetFramerate=this.domRepeatInitialCount=0)};
_.Z.emojiSkinToneChanged_=function(a){this.skinTone=a};
_.Z.dataChanged=function(){this.data&&this.data.emojiData&&nDi(this.emojiManager,this.data.emojiData)};
_.Z.emojiUrl=function(a){a=this.getEmoji(a);if(!a)return"";var z;a=(z=a.image)==null?void 0:z.thumbnails;return _.r4(a,24)||""};
_.Z.emojiAlt=function(a){var z=this.get("image.accessibility.accessibilityData.label",a);return z?z:a.isCustomEmoji?a.shortcuts[0]:a.emojiId};
_.Z.emojiAriaLabel=function(a){return a.shortcuts?a.shortcuts[0]:""};
_.Z.emojiAriaSelected=function(a,z,I){return a&&I==z?"true":"false"};
_.Z.getEmoji=function(a){if(this.emojiManager)return this.shouldUseStickyPreferences?Fp1(this.emojiManager,a):ku(this.emojiManager,a)};
_.Z.computeId_=function(a){return a.categoryId||""};
_.Z.computeEmoji=function(a){var z=this;return this.emojiManager?a.emojiIds?a.emojiIds.map(function(I){return I?_.y6(z.emojiManager,I):null}).filter(UtI):a.emojiData?a.emojiData.map(function(I){var J=!!I.emojiId&&_.y6(z.emojiManager,I.emojiId);
return J?Object.assign({},J,I):null}).filter(UtI):[]:[]};
_.Z.emojiLoading=function(){return this.data&&this.data.imageLoadingLazy?"lazy":"eager"};
_.Z.computeAriaLabel_=function(a){return _.cd(a)};
_.Z.computeAriaActivedescendant_=function(a,z){return a&&a[z]?a[z].emojiId||"":""};
_.Z.handleLongPressEmojiWithVariants=function(a,z){this.changeFocusToEmoji(a.emojiId,!1);this.openVariantSelector(a,z)};
_.Z.onMouseDown=function(a){var z=this;this.hostElement!==document.activeElement&&(this.JSC$14076_ignoreNextFocus_=!0);if(a.button===0){var I=_.Yh(a);if(I instanceof HTMLImageElement){var J=_.PK(this.hostElement).querySelector("#repeat").itemForElement(I);this.emojiContainsVariants(J)&&(this.longPressTimeoutId=setTimeout(function(){z.handleLongPressEmojiWithVariants(J,I)},500))}}};
_.Z.onMouseUp=function(){clearTimeout(this.longPressTimeoutId)};
_.Z.onFocus=function(){this.JSC$14076_ignoreNextFocus_||(this.showFocus=!0,this.changeFocus_(0,!0));this.JSC$14076_ignoreNextFocus_=!1};
_.Z.onBlur_=function(){this.showFocus=!1};
_.Z.emojiContainsVariants=function(a){return!!(a&&a.variantIds&&a.variantIds.length)};
_.Z.onClick=function(a){clearTimeout(this.longPressTimeoutId);a=_.Yh(a);if(a instanceof HTMLImageElement){var z=a.id;this.changeFocusToEmoji(z,!1);var I=this.getEmoji(z),J;if(J=this.shouldUseStickyPreferences&&this.emojiContainsVariants(I)){var r;J=!((r=this.emojiManager.emojiMap[z])!=null&&r.stickyPrefId)}J?(r=_.PK(this.hostElement).querySelector("#repeat").itemForElement(a),this.openVariantSelector(r,a)):_.PA(this.hostElement,"yt-emoji-select",I)}};
_.Z.isActiveEmojiWithVariants=function(a,z){return a&&z?z.stickyPrefId?a===z.stickyPrefId:a===z.emojiId:!1};
_.Z.onCloseEmojiVariantSelector=function(a){this.activeEmojiWithVariantsId===a&&(this.activeEmojiWithVariantsId="")};
_.Z.onMouseOver_=function(a){a=_.Yh(a);a instanceof HTMLImageElement&&_.PA(this.hostElement,"yt-emoji-hover",_.y6(this.emojiManager,a.id))};
_.Z.changeFocus_=function(a,z){this.focusedIndex=(this.focusedIndex+a+this.emoji.length)%this.emoji.length;this.focusedIndex<this.emoji.length&&(a=this.emoji[this.focusedIndex],z&&(this.showFocus=!0,_.PK(this.hostElement).querySelector("#emoji").children[this.focusedIndex].scrollIntoView(!1),_.PA(this.hostElement,"yt-emoji-hover",a)))};
_.Z.changeFocusToEmoji=function(a,z){if(a){var I=this.emoji.findIndex(function(J){return J.emojiId===a});
I!==-1&&this.changeFocus_(I-this.focusedIndex,z)}};
_.Z.onKeyDown_=function(a){switch(a.keyCode){case 13:if(this.focusedIndex<this.emoji.length){var z=this.emoji[this.focusedIndex];if(z&&z.emojiId){if(this.emojiContainsVariants(z)){var I=_.PK(this.hostElement).querySelectorAll("img")[this.focusedIndex];this.openVariantSelector(z,I)}else _.PA(this.hostElement,"yt-emoji-select",ku(this.emojiManager,z.emojiId)),this.hostElement.focus();a.preventDefault()}}break;case 40:this.changeFocus_(1,!0);a.preventDefault();break;case 38:this.changeFocus_(-1,!0),
a.preventDefault()}};
_.Z.onEmojiStickyPreferenceChanged=function(a,z){this.shouldUseStickyPreferences&&this.activeEmojiWithVariantsId&&a.emojiId&&a.variantIds&&a.variantIds.includes(z)&&this.activeEmojiWithVariantsId!==z&&this.setStickyEmojiPreference(a.emojiId,z)};
_.Z.openVariantSelector=function(a,z){this.activeEmojiWithVariantsId=a.stickyPrefId||a.emojiId||"";_.PA(this.hostElement,"yt-show-emoji-variant-selector",{emojiData:a,target:z})};
_.Z.setStickyEmojiPreference=function(a,z){if(this.data){var I=this.emoji.findIndex(function(r){return r.emojiId===a});
if(I!==-1){var J=this.emoji[I];J.stickyPrefId=z;this.set("emoji."+I,Object.assign({},J));this.activeEmojiWithVariantsId=z}}};
BZ.prototype.onKeyDown_=BZ.prototype.onKeyDown_;BZ.prototype.onMouseOver_=BZ.prototype.onMouseOver_;BZ.prototype.onClick=BZ.prototype.onClick;BZ.prototype.onBlur_=BZ.prototype.onBlur_;BZ.prototype.onFocus=BZ.prototype.onFocus;BZ.prototype.onMouseUp=BZ.prototype.onMouseUp;BZ.prototype.onMouseDown=BZ.prototype.onMouseDown;BZ.prototype.dataChanged=BZ.prototype.dataChanged;BZ.prototype.disableIncrementalLoadingChanged_=BZ.prototype.disableIncrementalLoadingChanged_;BZ.prototype.emojiManagerChanged_=BZ.prototype.emojiManagerChanged_;
BZ.prototype.emojiChanged_=BZ.prototype.emojiChanged_;_.L([_.Q(_.Hc.YtActionHandlerBehavior),_.p("design:type",Object)],BZ.prototype,"ytActionHandlerBehavior",void 0);_.L([_.x(),_.p("design:type",Object)],BZ.prototype,"data",void 0);_.L([_.x({computed:"computeId_(data)"}),_.p("design:type",String)],BZ.prototype,"id",void 0);_.L([_.x({computed:"computeEmoji(data)"}),_.p("design:type",Array)],BZ.prototype,"emoji",void 0);_.L([_.x(),_.p("design:type",Number)],BZ.prototype,"skinTone",void 0);
_.L([_.x(),_.p("design:type",_.mJ)],BZ.prototype,"emojiManager",void 0);_.L([_.x(),_.p("design:type",Boolean)],BZ.prototype,"disableIncrementalLoading",void 0);_.L([_.x({value:0}),_.p("design:type",Number)],BZ.prototype,"focusedIndex",void 0);_.L([_.x({value:!1}),_.p("design:type",Boolean)],BZ.prototype,"showFocus",void 0);_.L([_.x({reflectToAttribute:!0,computed:"computeAriaLabel_(data.title)"}),_.p("design:type",Object)],BZ.prototype,"ariaLabel",void 0);
_.L([_.x({reflectToAttribute:!0,computed:"computeAriaActivedescendant_(emoji, focusedIndex)"}),_.p("design:type",Object)],BZ.prototype,"ariaActivedescendant",void 0);_.L([_.x({value:60}),_.p("design:type",Number)],BZ.prototype,"domRepeatTargetFramerate",void 0);_.L([_.x({value:1}),_.p("design:type",Number)],BZ.prototype,"domRepeatInitialCount",void 0);_.L([_.x({value:""}),_.p("design:type",String)],BZ.prototype,"activeEmojiWithVariantsId",void 0);
_.L([_.x({value:!1}),_.p("design:type",Boolean)],BZ.prototype,"shouldUseStickyPreferences",void 0);_.L([_.O8("emoji"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],BZ.prototype,"emojiChanged_",null);_.L([_.O8("emojiManager"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],BZ.prototype,"emojiManagerChanged_",null);
_.L([_.O8("disableIncrementalLoading"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],BZ.prototype,"disableIncrementalLoadingChanged_",null);_.L([_.O8("data"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],BZ.prototype,"dataChanged",null);_.L([_.gz("mousedown"),_.p("design:type",Function),_.p("design:paramtypes",[Object]),_.p("design:returntype")],BZ.prototype,"onMouseDown",null);
_.L([_.gz("mouseup"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],BZ.prototype,"onMouseUp",null);_.L([_.gz("focus"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],BZ.prototype,"onFocus",null);_.L([_.gz("blur"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],BZ.prototype,"onBlur_",null);
_.L([_.gz("click"),_.p("design:type",Function),_.p("design:paramtypes",[Event]),_.p("design:returntype")],BZ.prototype,"onClick",null);_.L([_.gz("mouseover"),_.p("design:type",Function),_.p("design:paramtypes",[Event]),_.p("design:returntype")],BZ.prototype,"onMouseOver_",null);_.L([_.gz("keydown"),_.p("design:type",Function),_.p("design:paramtypes",[Event]),_.p("design:returntype")],BZ.prototype,"onKeyDown_",null);
_.L([_.dz({is:"yt-emoji-picker-category-renderer",disableElementRegistration:!0})],BZ);
_.D(BZ,"yt-emoji-picker-category-renderer",function(){if(iiw===void 0){var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-emoji-picker-category-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.yt_emoji_picker_category_renderer.yt.emoji.picker.category.renderer.css.js--\x3e<yt-formatted-string id="title" hidden="[[!data.title]]" text="[[data.title]]" class="style-scope yt-emoji-picker-category-renderer"></yt-formatted-string><div class$="[[data.categoryType]] style-scope yt-emoji-picker-category-renderer" id="emoji" role="listbox" aria-label="[[computeAriaLabel_(data.title)]]"><template is="dom-repeat" id="repeat" items="[[emoji]]" initial-count="[[domRepeatInitialCount]]" target-framerate="[[domRepeatTargetFramerate]]" class="style-scope yt-emoji-picker-category-renderer"><img id="[[item.emojiId]]" alt="[[emojiAlt(item)]]" aria-label$="[[emojiAriaLabel(item)]]" aria-selected$="[[emojiAriaSelected(showFocus, focusedIndex, index)]]" contains-variants$="[[emojiContainsVariants(item)]]" height="24" is-active-emoji-with-variants$="[[isActiveEmojiWithVariants(activeEmojiWithVariantsId, item)]]" loading$="[[emojiLoading()]]" role="option" src$="[[emojiUrl(item.emojiId, skinTone)]]" width="24" class="style-scope yt-emoji-picker-category-renderer"></template></div>');a.content.insertBefore(_.w().content.cloneNode(!0),
a.content.firstChild);var z=a.content,I=z.insertBefore;S$1===void 0&&(S$1=document.createElement("template"));var J=S$1;I.call(z,J.content.cloneNode(!0),a.content.firstChild);iiw=a}a=iiw;return a},{mode:2});var xao;var vbo;var G1X;var $af;var gI=function(){var a=_.G.apply(this,arguments)||this;a.ariaLabel=null;a.ariaActivedescendant=null;a.getFormattedStringRawText=_.cd;a.JSC$14082_ignoreNextFocus_=!1;return a};
_.b(gI,_.G);_.Z=gI.prototype;_.Z.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")};
_.Z.emojiUrl=function(a){var z,I;a=(z=ku(this.emojiManager,a,!0))==null?void 0:(I=z.image)==null?void 0:I.thumbnails;return _.r4(a,24)||""};
_.Z.emojiAlt=function(a){var z=this.get("image.accessibility.accessibilityData.label",a);return z?z:a.isCustomEmoji?a.shortcuts[0]:a.emojiId};
_.Z.emojiId=function(a){return"emoji"+a};
_.Z.computeId_=function(a){return a.categoryId||""};
_.Z.computeAriaActivedescendant_=function(a){return this.emoji&&a<this.emoji.length?this.emojiId(a):""};
_.Z.emojiChanged_=function(){this.changeFocus_(0,!1);for(var a=_.Kw(),z=0;z<this.emoji.length;z++){var I={veType:88013,elementIndex:z},J=this.emoji[z];J.isCustomEmoji&&(J=document.querySelector(("#"+J.emojiId).replace("/","\\/")))&&(I=_.nw(a,I))&&(J.visualElement=I)}};
_.Z.computeEmoji_=function(a){var z=this;return this.emojiManager?a.emojiIds.map(function(I){return _.y6(z.emojiManager,I,!0)}).filter(DtE):[]};
_.Z.titleOffsetChanged_=function(){var a=this.hostElement.getBoundingClientRect(),z=_.PK(this.hostElement).querySelector("#title").getBoundingClientRect();a=Math.max(0,Math.min(this.titleOffset,a.height-z.height));_.PK(this.hostElement).querySelector("#title").style.top=a+"px"};
_.Z.onEmojiMouseOver_=function(a){_.PA(this.hostElement,"yt-emoji-hover",a.model.item)};
_.Z.onEmojiTap_=function(a){this.data.command&&(a=hjG(_.ab().resolve(_.eL(l9)),this.data.command,a),_.PA(this.hostElement,"yt-navigate",a))};
_.Z.emojiAriaLabel=function(a){return a.shortcuts[0]};
_.Z.emojiAriaSelected=function(a,z,I){return a&&I==z?"true":"false"};
_.Z.changeFocus_=function(a,z){var I=this.emoji.length;this.focusedIndex=(this.focusedIndex+a+I)%I;a=this.emoji[this.focusedIndex];if(z){var J;(J=_.PK(this.hostElement).querySelector("#"+this.emojiId(this.focusedIndex)))==null||J.scrollIntoView(!1);_.PA(this.hostElement,"yt-emoji-hover",a)}};
_.Z.onMouseDown_=function(){this.JSC$14082_ignoreNextFocus_=!0};
_.Z.onFocus_=function(){this.JSC$14082_ignoreNextFocus_||(this.showFocus=!0,this.changeFocus_(0,!0));this.JSC$14082_ignoreNextFocus_=!1};
_.Z.onBlur_=function(){this.showFocus=!1};
_.Z.onKeyDown_=function(a){switch(a.keyCode){case 13:this.onEmojiTap_(a);this.hostElement.focus();break;case 40:this.changeFocus_(1,!0);a.preventDefault();break;case 38:this.changeFocus_(-1,!0),a.preventDefault()}};
gI.prototype.onKeyDown_=gI.prototype.onKeyDown_;gI.prototype.onBlur_=gI.prototype.onBlur_;gI.prototype.onFocus_=gI.prototype.onFocus_;gI.prototype.onMouseDown_=gI.prototype.onMouseDown_;gI.prototype.onEmojiTap_=gI.prototype.onEmojiTap_;gI.prototype.titleOffsetChanged_=gI.prototype.titleOffsetChanged_;gI.prototype.emojiChanged_=gI.prototype.emojiChanged_;_.L([_.Q(_.Ms.YtComponentBehavior),_.p("design:type",Object)],gI.prototype,"ytComponentBehavior",void 0);
_.L([_.x(),_.p("design:type",Object)],gI.prototype,"data",void 0);_.L([_.x({computed:"computeId_(data)"}),_.p("design:type",String)],gI.prototype,"id",void 0);_.L([_.x({computed:"computeEmoji_(data)"}),_.p("design:type",Array)],gI.prototype,"emoji",void 0);_.L([_.x({value:0}),_.p("design:type",Number)],gI.prototype,"titleOffset",void 0);_.L([_.x({reflectToAttribute:!0,computed:"getFormattedStringRawText(data.upsell)"}),_.p("design:type",Object)],gI.prototype,"ariaLabel",void 0);
_.L([_.x({reflectToAttribute:!0,computed:"computeAriaActivedescendant_(focusedIndex)"}),_.p("design:type",Object)],gI.prototype,"ariaActivedescendant",void 0);_.L([_.x({value:!1}),_.p("design:type",Boolean)],gI.prototype,"showFocus",void 0);_.L([_.x({value:0}),_.p("design:type",Number)],gI.prototype,"focusedIndex",void 0);_.L([_.x(),_.p("design:type",_.mJ)],gI.prototype,"emojiManager",void 0);
_.L([_.O8("emoji"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],gI.prototype,"emojiChanged_",null);_.L([_.O8("titleOffset"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],gI.prototype,"titleOffsetChanged_",null);_.L([_.gz("click"),_.p("design:type",Function),_.p("design:paramtypes",[Event]),_.p("design:returntype")],gI.prototype,"onEmojiTap_",null);
_.L([_.gz("mousedown"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],gI.prototype,"onMouseDown_",null);_.L([_.gz("focus"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],gI.prototype,"onFocus_",null);_.L([_.gz("blur"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],gI.prototype,"onBlur_",null);
_.L([_.gz("keydown"),_.p("design:type",Function),_.p("design:paramtypes",[Event]),_.p("design:returntype")],gI.prototype,"onKeyDown_",null);_.L([_.dz({is:"yt-emoji-picker-upsell-category-renderer",disableElementRegistration:!0})],gI);
_.D(gI,"yt-emoji-picker-upsell-category-renderer",function(){if($af===void 0){var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-emoji-picker-upsell-category-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.yt_emoji_picker_upsell_category_renderer.yt.emoji.picker.upsell.category.renderer.css.js--\x3e<yt-formatted-string id="title" hidden="[[!data.title]]" text="[[data.title]]" class="style-scope yt-emoji-picker-upsell-category-renderer"></yt-formatted-string><div id="emoji" class="style-scope yt-emoji-picker-upsell-category-renderer"><template is="dom-repeat" id="repeat" items="[[emoji]]" class="style-scope yt-emoji-picker-upsell-category-renderer"><div class="style-scope yt-emoji-picker-upsell-category-renderer"><img id="[[emojiId(index)]]" on-mouseover="onEmojiMouseOver_" shared-tooltip-text$="[[data.emojiTooltip]]" src$="[[emojiUrl(item.emojiId)]]" alt="[[emojiAlt(item)]]" aria-label$="[[emojiAriaLabel(item)]]" aria-selected$="[[emojiAriaSelected(showFocus, focusedIndex, index)]]" role="option" class="style-scope yt-emoji-picker-upsell-category-renderer"><svg viewBox="0 0 24 24" class="style-scope yt-emoji-picker-upsell-category-renderer"><path id="lock-border" d="M18.3809524 6.80952784c1.6455246.45922361 2.8571428 1.97242785 2.8571428 3.76190076v9.5238095C21.2380952 22.2474266 19.4855219 24 17.3333333 24H5.9047619C3.75257336 24 2 22.2474266 2 20.0952381v-9.5238095c0-1.78947291 1.21161828-3.30267715 2.85714286-3.76190076v-.04762308C4.85714286 3.02876383 7.88590669 0 11.6190476 0c3.7331409 0 6.7619048 3.02876383 6.7619048 6.76190476v.04762308z" class="style-scope yt-emoji-picker-upsell-category-renderer"></path><path d="M17.3333333 8.66666667c1.0476191 0 1.9047619.85714285 1.9047619 1.90476193v9.5238095c0 1.047619-.8571428 1.9047619-1.9047619 1.9047619H5.9047619C4.85714286 22 4 21.1428571 4 20.0952381v-9.5238095c0-1.04761908.85714286-1.90476193 1.9047619-1.90476193h.95238096V6.76190476C6.85714286 4.13333333 8.99047619 2 11.6190476 2c2.6285714 0 4.7619048 2.13333333 4.7619048 4.76190476v1.90476191h.9523809zm-5.7142857 8.57142853c1.0476191 0 1.9047619-.8571428 1.9047619-1.9047619 0-1.047619-.8571428-1.9047619-1.9047619-1.9047619-1.047619 0-1.90476189.8571429-1.90476189 1.9047619 0 1.0476191.85714289 1.9047619 1.90476189 1.9047619zm2.952381-8.57142853V6.76190476c0-1.62857143-1.3238096-2.95238095-2.952381-2.95238095-1.62857141 0-2.95238093 1.32380952-2.95238093 2.95238095v1.90476191h5.90476193z" class="style-scope yt-emoji-picker-upsell-category-renderer"></path></svg></div></template></div>');a.content.insertBefore(_.w().content.cloneNode(!0),
a.content.firstChild);var z=a.content,I=z.insertBefore;G1X===void 0&&(G1X=document.createElement("template"));var J=G1X;I.call(z,J.content.cloneNode(!0),a.content.firstChild);$af=a}a=$af;return a},{mode:2});var Xio;var Tlo;var OF=function(){var a=_.G.apply(this,arguments)||this;a.scrollAction="lock";a.verticalAlign="top";return a};
_.b(OF,_.G);_.Z=OF.prototype;_.Z.onClick=function(a){a=_.Yh(a);a instanceof HTMLImageElement&&_.PA(this.hostElement,"yt-emoji-select",_.y6(this.emojiManager,a.id))};
_.Z.openSelector=function(){this.ironOverlayBehavior.open()};
_.Z.onDomChange=function(){s2O(this.ytEmojiSelectorBehavior)};
_.Z.computeIsFamilySelector=function(a){var z;return(a==null?void 0:(z=a.emoji)==null?void 0:z.emojiId)==="\ud83d\udc6a"};
_.Z.onKeyboardEnter=function(){if(this.emojiVariants&&this.ytEmojiSelectorBehavior.focusedIndex<this.emojiVariants.length){var a=this.emojiVariants[this.ytEmojiSelectorBehavior.focusedIndex];a&&a.emojiId&&(_.PA(this.hostElement,"yt-emoji-select",_.y6(this.emojiManager,a.emojiId)),this.ytEmojiSelectorBehavior.changeFocus(0))}};
_.eH.Object.defineProperties(OF.prototype,{emojiVariants:{configurable:!0,enumerable:!0,get:function(){var a=this,z,I,J;return this.emojiManager&&((z=this.data)==null?0:(I=z.emoji)==null?0:(J=I.variantIds)==null?0:J.length)?this.data.emoji.variantIds.map(function(r){return!!r&&_.y6(a.emojiManager,r)}).filter(function(r){return!!r}):[]}}});
OF.prototype.onClick=OF.prototype.onClick;_.L([_.Q(_.Mb),_.p("design:type",Object)],OF.prototype,"ironOverlayBehavior",void 0);_.L([_.Q(nbw),_.p("design:type",Object)],OF.prototype,"ytEmojiSelectorBehavior",void 0);_.L([_.x(),_.p("design:type",Object)],OF.prototype,"data",void 0);_.L([_.x(),_.p("design:type",_.mJ)],OF.prototype,"emojiManager",void 0);_.L([_.x(),_.p("design:type",Object)],OF.prototype,"scrollAction",void 0);_.L([_.x(),_.p("design:type",Object)],OF.prototype,"verticalAlign",void 0);
_.L([_.x({reflectToAttribute:!0,computed:"computeIsFamilySelector(data)"}),_.p("design:type",Boolean)],OF.prototype,"isFamilySelector",void 0);_.L([_.S("data"),_.p("design:type",Object),_.p("design:paramtypes",[])],OF.prototype,"emojiVariants",null);_.L([_.gz("click"),_.p("design:type",Function),_.p("design:paramtypes",[MouseEvent]),_.p("design:returntype")],OF.prototype,"onClick",null);_.L([_.dz({is:"yt-emoji-variant-selector",disableElementRegistration:!0})],OF);
_.D(OF,"yt-emoji-variant-selector",function(){if(Tlo===void 0){var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-emoji-variant-selector--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.yt_emoji_variant_selector.yt.emoji.variant.selector.css.js--\x3e<div role="listbox" id="variants" class="style-scope yt-emoji-variant-selector">\n    <template is="dom-repeat" id="repeat" items="[[emojiVariants]]" notify-dom-change="" on-dom-change="onDomChange" class="style-scope yt-emoji-variant-selector">\n      \n      <img id="[[item.emojiId]]" alt="[[item.emojiId]]" height="24" role="option" tabindex="-1" src$="[[emojiUrl(item.emojiId)]]" width="24" class="style-scope yt-emoji-variant-selector">\n    </template>\n</div>\n');
a.content.insertBefore(_.w().content.cloneNode(!0),a.content.firstChild);var z=a.content,I=z.insertBefore;Xio===void 0&&(Xio=document.createElement("template"));var J=Xio;I.call(z,J.content.cloneNode(!0),a.content.firstChild);Tlo=a}a=Tlo;return a},{mode:2});var dal=/:/g,W$i=["UCkszU2WH9gy1mb0dV-11UJg","UC4R8DWoMoI7CAwX8_LjQHig"],fV=function(){var a=_.G.apply(this,arguments)||this;a.emojiVariantSelector=null;a.emojiMultiPersonSelector=null;a.identity=_.T3;a.lastAnimationTime_=0;a.animationStart_=null;a.animationEnd_=null;return a};
_.b(fV,_.G);_.Z=fV.prototype;
_.Z.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}}};
_.Z.created=function(){this.boundOnIronOverlayClosed=this.onIronOverlayClosed.bind(this);this.emojiManager||(this.emojiManager=_.MT)};
_.Z.attached=function(){_.NS&&(this.hostElement.style.height=this.hostElement.clientHeight+150+"px");this.shouldUseStickyPreferences&&Kpo(this.emojiManager)};
_.Z.dataChanged=function(){var a;if((a=this.data)==null?0:a.categories){a=this.emojiManager;var z=this.getCustomEmojiIds();a.pickerCustomEmojiIds=[].concat(_.ih(gDw),_.ih(z))}};
_.Z.getCustomEmojiIds=function(){var a,z=(a=this.data.categories)==null?void 0:a.find(function(P){var N;return((N=P.emojiPickerCategoryRenderer)==null?void 0:N.categoryId)&&W$i.includes(P.emojiPickerCategoryRenderer.categoryId)}),I;
a=(I=this.data.categories)==null?void 0:I.find(function(P){return P.emojiPickerUpsellCategoryRenderer});
var J,r;return[z==null?void 0:(J=z.emojiPickerCategoryRenderer)==null?void 0:J.emojiIds,a==null?void 0:(r=a.emojiPickerUpsellCategoryRenderer)==null?void 0:r.emojiIds].flat().filter(function(P){return!!P})};
_.Z.updateEmojiCategories=function(){this.updateCategoriesAndPlaceholderInternal(this.data,!0)};
_.Z.updateCategoriesAndPlaceholder_=function(){this.updateCategoriesAndPlaceholderInternal(this.data,this.selected)};
_.Z.updateCategoriesAndPlaceholderInternal=function(a,z){var I=this;a&&z&&(this.categories=a.categories||[],this.categoryButtons=a.categoryButtons||[],this.resetPlaceholder(),this.search="",_.lK(function(){I.updateButtons_()}))};
_.Z.computeId_=function(a){return a.id||""};
_.Z.computeShouldUseStickyPreferences=function(){return this.data&&this.data.categories?this.data.categories.some(function(a){return a.emojiPickerCategoryRenderer&&a.emojiPickerCategoryRenderer.emojiData}):!1};
_.Z.onScroll_=function(){this.animationEnd_==null&&window.requestAnimationFrame(this.updateButtons_.bind(this))};
_.Z.onShowEmojiVariantSelector=function(a){var z=a.detail.emojiData;z.variantIds&&z.variantIds.length&&(z.multiSelectorThumbnailRow&&z.multiSelectorThumbnailRow.length?this.set("emojiMultiPersonSelector",{ytEmojiMultiPersonSelector:{emoji:z,target:a.detail.target}}):this.set("emojiVariantSelector",{ytEmojiVariantSelector:{emoji:z,target:a.detail.target}}),this.variantSelectorOpened=!0,this.hostElement.addEventListener("iron-overlay-closed",this.boundOnIronOverlayClosed))};
_.Z.onIronOverlayClosed=function(a){var z=Fp1(this.emojiManager,this.get((this.emojiVariantSelector?"emojiVariantSelector.ytEmojiVariantSelector.emoji":"emojiMultiPersonSelector.ytEmojiMultiPersonSelector.emoji")+".emojiId")||"");z&&a.composedPath&&(a.composedPath().includes(_.PK(this.hostElement).querySelector("#emoji-variant-selector"))||a.composedPath().includes(_.PK(this.hostElement).querySelector("#emoji-multi-person-selector")))&&(_.ZF(this.hostElement,"yt-close-emoji-variant-selector",[z.emojiId]),
this.emojiMultiPersonSelector=this.emojiVariantSelector=null,this.variantSelectorOpened=!1,this.hostElement.removeEventListener("iron-overlay-closed",this.boundOnIronOverlayClosed))};
_.Z.onEmojiVariantSelectorMouseup=function(a){var z=a.target.firstChild;this.variantSelectorOpened&&z&&_.lK(function(){z.noCancelOnOutsideClick=!1},100)};
_.Z.onEmojiVariantSelectorMousedown=function(a){a=a.target.firstChild;this.variantSelectorOpened&&a&&(a.noCancelOnOutsideClick=!1)};
_.Z.onSelectCategory_=function(a){var z=this.search!="";this.search="";for(var I=_.PK(this.hostElement).querySelector("#categories").children,J=0;J<I.length;J++){var r=I[J];if(r.id==a.detail.categoryId){z?(_.PK(this.hostElement).querySelector("#categories").scrollTop=r.offsetTop,this.updateButtons_()):(this.animationStart_=_.PK(this.hostElement).querySelector("#categories").scrollTop,this.animationEnd_=r.offsetTop,this.lastAnimationTime_=0,this.animateScroll_(this.lastAnimationTime_));break}}};
_.Z.onEmojiHover_=function(a){this.placeholder=a.detail.shortcuts?a.detail.shortcuts[0]:""};
_.Z.onSearchBoxFocused_=function(){this.resetPlaceholder()};
_.Z.onSearchBoxBlur_=function(){this.resetPlaceholder()};
_.Z.onMouseoutCategories=function(){this.variantSelectorOpened||this.resetPlaceholder()};
_.Z.resetPlaceholder=function(){this.skinToneOpened||(this.placeholder=this.ytRendererBehavior.getSimpleString(this.data.searchPlaceholderText))};
_.Z.computeSearchCategory_=function(a){a=a.replace(dal,"").toLowerCase().trim();if(!this.searching)return this.searchCategory;this.updateButtons_();a=a.split(" ");for(var z=[],I=this.emojiManager.emojis,J=0;J<I.length;J++){var r=I[J];if(r.searchTerms)for(var P=0;P<r.searchTerms.length;P++){for(var N=r.searchTerms[P].toLocaleLowerCase(),u=!1,E=0;E<a.length;E++)if(N.indexOf(a[E])!=-1){u=!0;break}if(u&&(!r.isCustomEmoji||!r.emojiId||this.emojiManager.pickerCustomEmojiIds.includes(r.emojiId))){z.push(r.emojiId);
break}}}return{categoryId:-1,emojiIds:z}};
_.Z.computeSearchEmptyMessage_=function(a,z){return a&&z&&z.emojiIds&&z.emojiIds.length==0?this.data.searchNoResultsText||null:null};
_.Z.computeSearching_=function(a){return this.emojiManager&&a.replace(dal,"").length>1};
_.Z.computeSkinToneHidden=function(){var a;return this.shouldUseStickyPreferences||this.skinToneOpened||this.categories.length===1||!((a=this.data)==null||!a.hideSkinTonePicker)};
_.Z.computeDisableScroll=function(){return!!this.emojiVariantSelector};
_.Z.openSkinToneSelector=function(){this.skinToneOpened=!0};
_.Z.showSkinTonePlaceholder=function(){this.placeholder=this.ytRendererBehavior.getSimpleString(this.data.pickSkinToneText)};
_.Z.clearSearch=function(){this.resetPlaceholder();this.search=""};
_.Z.selectSkinTone_=function(a){a=Number(a.target.getAttribute("tone"));this.set("emojiManager.skinTone",a);_.ZF(this.hostElement,"yt-live-chat-emoji-skin-tone-changed",[a]);this.skinToneOpened=!1;this.resetPlaceholder()};
_.Z.skinToneChanged_=function(){_.PK(this.hostElement).querySelector("#skin-tone").setAttribute("tone",String(this.skinTone));for(var a=_.PK(this.hostElement).querySelector("#dropdown-content").children,z=0;z<a.length;z++)z===this.skinTone?a[z].setAttribute("selected",""):a[z].removeAttribute("selected")};
_.Z.animateScroll_=function(a){this.lastAnimationTime_||(this.lastAnimationTime_=a);a-=this.lastAnimationTime_;a<200?(_.PK(this.hostElement).querySelector("#categories").scrollTop=this.animationStart_+(this.animationEnd_-this.animationStart_)*a/200,window.requestAnimationFrame(this.animateScroll_.bind(this))):(this.animationEnd_!=null&&(_.PK(this.hostElement).querySelector("#categories").scrollTop=this.animationEnd_),this.animationEnd_=this.animationStart_=null,this.lastAnimationTime_=0);this.updateButtons_()};
_.Z.searchChanged_=function(){this.updateButtons_()};
_.Z.updateButtons_=function(){var a=null;if(!this.search)for(var z=_.PK(this.hostElement).querySelector("#categories").scrollTop,I=_.PK(this.hostElement).querySelector("#categories").children,J=0;J<I.length;J++){var r=I[J];r.offsetTop<=z&&(a=r.id)}z=_.PK(this.hostElement).querySelector("#category-buttons").children;for(I=0;I<z.length;I++)J=z[I],J.active=J.id===a};
fV.prototype.searchChanged_=fV.prototype.searchChanged_;fV.prototype.skinToneChanged_=fV.prototype.skinToneChanged_;fV.prototype.onEmojiHover_=fV.prototype.onEmojiHover_;fV.prototype.onSelectCategory_=fV.prototype.onSelectCategory_;fV.prototype.onShowEmojiVariantSelector=fV.prototype.onShowEmojiVariantSelector;fV.prototype.updateCategoriesAndPlaceholder_=fV.prototype.updateCategoriesAndPlaceholder_;fV.prototype.dataChanged=fV.prototype.dataChanged;
_.L([_.Q(_.k.YtRendererBehavior),_.p("design:type",Object)],fV.prototype,"ytRendererBehavior",void 0);_.L([_.Q(_.u4.YtRendererstamperBehavior),_.p("design:type",Object)],fV.prototype,"ytRendererstamperBehavior",void 0);_.L([_.x(),_.p("design:type",Object)],fV.prototype,"data",void 0);_.L([_.x({value:function(){return[]}}),
_.p("design:type",Array)],fV.prototype,"categories",void 0);_.L([_.x({value:function(){return[]}}),
_.p("design:type",Array)],fV.prototype,"categoryButtons",void 0);_.L([_.x({computed:"computeDisableScroll(emojiVariantSelector)",reflectToAttribute:!0}),_.p("design:type",Boolean)],fV.prototype,"disableScroll",void 0);_.L([_.x({computed:"computeId_(data)",reflectToAttribute:!0}),_.p("design:type",String)],fV.prototype,"id",void 0);_.L([_.x({value:!1}),_.p("design:type",Boolean)],fV.prototype,"selected",void 0);
_.L([_.x({value:!1}),_.p("design:type",Boolean)],fV.prototype,"disableIncrementalLoading",void 0);_.L([_.x(),_.p("design:type",String)],fV.prototype,"placeholder",void 0);_.L([_.x({value:""}),_.p("design:type",String)],fV.prototype,"search",void 0);_.L([_.x({computed:"computeSearching_(search)",reflectToAttribute:!0}),_.p("design:type",Boolean)],fV.prototype,"searching",void 0);_.L([_.x({computed:"computeSearchCategory_(search)"}),_.p("design:type",Object)],fV.prototype,"searchCategory",void 0);
_.L([_.x({computed:"computeSearchEmptyMessage_(searching, searchCategory)"}),_.p("design:type",Object)],fV.prototype,"searchEmptyMessage",void 0);_.L([_.x({computed:"identity(emojiManager.skinTone)"}),_.p("design:type",Number)],fV.prototype,"skinTone",void 0);_.L([_.x({value:!1}),_.p("design:type",Boolean)],fV.prototype,"skinToneOpened",void 0);_.L([_.x({value:!1,reflectToAttribute:!0}),_.p("design:type",Boolean)],fV.prototype,"variantSelectorOpened",void 0);
_.L([_.x({computed:"computeSkinToneHidden(skinToneOpened, categories, shouldUseStickyPreferences, data.hideSkinTonePicker)"}),_.p("design:type",Boolean)],fV.prototype,"skinToneHidden",void 0);_.L([_.x(),_.p("design:type",_.mJ)],fV.prototype,"emojiManager",void 0);_.L([_.x(),_.p("design:type",Object)],fV.prototype,"emojiVariantSelector",void 0);_.L([_.x(),_.p("design:type",Object)],fV.prototype,"emojiMultiPersonSelector",void 0);
_.L([_.x({value:!1,computed:"computeShouldUseStickyPreferences(data)"}),_.p("design:type",Boolean)],fV.prototype,"shouldUseStickyPreferences",void 0);_.L([_.O8("data"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],fV.prototype,"dataChanged",null);_.L([_.O8("data","selected"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],fV.prototype,"updateCategoriesAndPlaceholder_",null);
_.L([_.gz("yt-show-emoji-variant-selector"),_.p("design:type",Function),_.p("design:paramtypes",[Event]),_.p("design:returntype")],fV.prototype,"onShowEmojiVariantSelector",null);_.L([_.gz("yt-emoji-picker-select-category"),_.p("design:type",Function),_.p("design:paramtypes",[Event]),_.p("design:returntype")],fV.prototype,"onSelectCategory_",null);_.L([_.gz("yt-emoji-hover"),_.p("design:type",Function),_.p("design:paramtypes",[Event]),_.p("design:returntype")],fV.prototype,"onEmojiHover_",null);
_.L([_.O8("skinTone"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],fV.prototype,"skinToneChanged_",null);_.L([_.O8("search"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],fV.prototype,"searchChanged_",null);_.L([_.dz({is:"yt-emoji-picker-renderer",disableElementRegistration:!0})],fV);
_.D(fV,"yt-emoji-picker-renderer",function(){if(vbo===void 0){var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-emoji-picker-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.yt_emoji_picker_renderer.yt.emoji.picker.renderer.css.js--\x3e<div id="search-panel" class="style-scope yt-emoji-picker-renderer"><tp-yt-paper-input id="search" no-label-float="" placeholder="[[placeholder]]" use-v2-underline="" value="{{search}}" on-blur="onSearchBoxBlur_" on-focus="onSearchBoxFocused_" class="style-scope yt-emoji-picker-renderer"></tp-yt-paper-input><yt-icon-button id="clear-search" hidden="[[!search]]" label="[[data.clearSearchLabel]]" on-tap="clearSearch" class="style-scope yt-emoji-picker-renderer"><yt-icon icon="close" class="style-scope yt-emoji-picker-renderer"></yt-icon></yt-icon-button><button id="skin-tone" aria-label$="[[getSimpleString(data.pickSkinToneText)]]" hidden="[[skinToneHidden]]" on-mouseout="resetPlaceholder" on-mouseover="showSkinTonePlaceholder" on-tap="openSkinToneSelector" selected="" class="style-scope yt-emoji-picker-renderer"></button><tp-yt-iron-dropdown id="dropdown" allow-outside-scroll="" horizontal-align="right" horizontal-offset="8" no-auto-focus="" opened="{{skinToneOpened}}" vertical-align="top" vertical-offset="8" class="style-scope yt-emoji-picker-renderer"><div id="dropdown-content" class="dropdown-content style-scope yt-emoji-picker-renderer" slot="dropdown-content"><button aria-label$="[[data.skinToneGenericLabel]]" on-tap="selectSkinTone_" tone="0" class="style-scope yt-emoji-picker-renderer"></button><button aria-label$="[[data.skinToneLightLabel]]" on-tap="selectSkinTone_" tone="1" class="style-scope yt-emoji-picker-renderer"></button><button aria-label$="[[data.skinToneMediumLightLabel]]" on-tap="selectSkinTone_" tone="2" class="style-scope yt-emoji-picker-renderer"></button><button aria-label$="[[data.skinToneMediumLabel]]" on-tap="selectSkinTone_" tone="3" class="style-scope yt-emoji-picker-renderer"></button><button aria-label$="[[data.skinToneMediumDarkLabel]]" on-tap="selectSkinTone_" tone="4" class="style-scope yt-emoji-picker-renderer"></button><button aria-label$="[[data.skinToneDarkLabel]]" on-tap="selectSkinTone_" tone="5" class="style-scope yt-emoji-picker-renderer"></button></div></tp-yt-iron-dropdown></div><div id="category-buttons" class="style-scope yt-emoji-picker-renderer"></div><yt-emoji-picker-category-renderer id="search-category" data="[[searchCategory]]" emoji-manager="[[emojiManager]]" should-use-sticky-preferences="[[shouldUseStickyPreferences]]" skin-tone="[[skinTone]]" class="style-scope yt-emoji-picker-renderer"></yt-emoji-picker-category-renderer><yt-formatted-string id="search-empty" hidden="[[!searchEmptyMessage]]" text="[[searchEmptyMessage]]" class="style-scope yt-emoji-picker-renderer"></yt-formatted-string><div id="categories-wrapper" class="style-scope yt-emoji-picker-renderer"><div id="categories" on-mouseout="onMouseoutCategories" on-scroll="onScroll_" class="style-scope yt-emoji-picker-renderer"></div></div><div id="emoji-variant-selector" hidden="[[!emojiVariantSelector]]" on-mouseup="onEmojiVariantSelectorMouseup" on-mousedown="onEmojiVariantSelectorMousedown" class="style-scope yt-emoji-picker-renderer"></div><div id="emoji-multi-person-selector" hidden="[[!emojiMultiPersonSelector]]" on-mouseup="onEmojiVariantSelectorMouseup" on-mousedown="onEmojiVariantSelectorMousedown" class="style-scope yt-emoji-picker-renderer"></div>');a.content.insertBefore(_.w().content.cloneNode(!0),
a.content.firstChild);var z=a.content,I=z.insertBefore;xao===void 0&&(xao=document.createElement("template"));var J=xao;I.call(z,J.content.cloneNode(!0),a.content.firstChild);vbo=a}a=vbo;return a},{mode:2});var Ac=function(){var a=_.G.apply(this,arguments)||this;a.emojiManager=_.MT;a.isDarkTheme=document.documentElement.hasAttribute("dark");a.selectedIndex=1;a.actionMap={"yt-lwe-emoji-customization-visible":"handleEmojiCustomizationVisible"};return a};
_.b(Ac,_.G);_.Z=Ac.prototype;_.Z.handleEmojiCustomizationVisible=function(a){this.emojiPickerRenderer.selected=a;this.selectedIndex=1;a?(this.originalEmojiSet=this.emojiCustomizationSet,this.updateSaveButtonState(!1)):this.originalEmojiSet=void 0};
_.Z.emojiCustomizationSetChanged=function(){var a;(a=this.data)!=null&&a.saveButtonEntityKey&&(this.originalEmojiSet||(this.originalEmojiSet=this.emojiCustomizationSet),this.originalEmojiSet&&this.emojiCustomizationSet&&!_.MO(this.originalEmojiSet.emojiId,this.emojiCustomizationSet.emojiId)?this.updateSaveButtonState(!0):this.updateSaveButtonState(!1))};
_.Z.updateSaveButtonState=function(a){var z;(z=this.data)!=null&&z.saveButtonEntityKey&&this.ytLiveChatReduxBehavior.dispatch(_.Q0("booleanEntity",this.data.saveButtonEntityKey,{key:this.data.saveButtonEntityKey,value:a}))};
_.Z.emojiUrl=function(a){a=_.y6(this.emojiManager,a);if(!a)return"";var z;a=(z=a.image)==null?void 0:z.thumbnails;return _.r4(a,24)||""};
_.Z.emojiAlt=function(a){var z=_.y6(this.emojiManager,a);if(!z)return a;var I,J,r,P=(z==null?void 0:(I=z.image)==null?void 0:(J=I.accessibility)==null?void 0:(r=J.accessibilityData)==null?void 0:r.label)||"";return P?P:z.isCustomEmoji?z.shortcuts[0]:z.emojiId||a};
_.Z.emojiAriaLabel=function(a){var z,I;return((z=_.y6(this.emojiManager,a))==null?void 0:(I=z.shortcuts)==null?void 0:I[0])||a};
_.Z.onEmojiClick=function(a){a.model.index!==0&&(this.selectedIndex=a.model.index)};
_.Z.onEmojiSelect=function(a){a=a.detail;var z,I;((z=this.data)==null?0:z.emojiCustomizationSetEntityKey)&&((I=this.emojiCustomizationSet)==null?0:I.emojiId)&&a.emojiId&&this.canEditEmoji(this.emojiCustomizationSet.emojiId,a.emojiId,this.selectedIndex)&&this.ytLiveChatReduxBehavior.dispatch(_.Q0("emojiCustomizationSetEntity",this.data.emojiCustomizationSetEntityKey,{key:this.data.emojiCustomizationSetEntityKey,emojiId:this.getUpdatedEmojiIdList(this.emojiCustomizationSet.emojiId,a.emojiId,this.selectedIndex)}))};
_.Z.canEditEmoji=function(a,z,I){a=a.indexOf(z);return a===I||a===0||I===0?!1:!0};
_.Z.getUpdatedEmojiIdList=function(a,z,I){var J=a.indexOf(z);a=[].concat(_.ih(a));J>=0&&(a[J]=a[I]);a[I]=z;return a};
_.eH.Object.defineProperties(Ac,{template:{configurable:!0,enumerable:!0,get:function(){if(zjj===void 0){var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-emoji-customization-panel-view-model--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.yt_emoji_customization_panel_view_model.yt.emoji.customization.panel.view.model.css.js--\x3e<yt-attributed-string id="description-text" data="[[data.descriptionText]]" class="style-scope yt-emoji-customization-panel-view-model"></yt-attributed-string>\n<div id="fab-container" class="style-scope yt-emoji-customization-panel-view-model">\n  <div id="expanded-buttons" class="style-scope yt-emoji-customization-panel-view-model">\n    <template is="dom-repeat" id="repeat" items="[[emojiCustomizationSet.emojiId]]" class="style-scope yt-emoji-customization-panel-view-model">\n      <button class="reaction-button style-scope yt-emoji-customization-panel-view-model" emoji-selected$="[[equals(selectedIndex, index)]]" on-click="onEmojiClick" disabled$="[[equals(index, 0)]]">\n        <img id="[[index]]" alt="[[emojiAlt(item)]]" aria-label$="[[emojiAriaLabel(item)]]" height="24" role="option" src$="[[emojiUrl(item)]]" width="24" class="style-scope yt-emoji-customization-panel-view-model">\n      </button>\n    </template>\n  </div>\n</div>\n<yt-button-view-model data="[[data.resetButton.buttonViewModel]]" scoping-class-name="[[is]]" class="style-scope yt-emoji-customization-panel-view-model">\n</yt-button-view-model>\n<yt-emoji-picker-renderer data="[[data.emojiPicker.emojiPickerRenderer]]" class="style-scope yt-emoji-customization-panel-view-model"></yt-emoji-picker-renderer>\n');
a.content.insertBefore(_.w().content.cloneNode(!0),a.content.firstChild);var z=a.content,I=z.insertBefore;j2e===void 0&&(j2e=document.createElement("template"));var J=j2e;I.call(z,J.content.cloneNode(!0),a.content.firstChild);zjj=a}a=zjj;return a}}});
Ac.prototype.onEmojiSelect=Ac.prototype.onEmojiSelect;_.L([_.Q(_.yb),_.p("design:type",Object)],Ac.prototype,"ytLiveChatReduxBehavior",void 0);_.L([_.Q(_.Hc.YtActionHandlerBehavior),_.p("design:type",Object)],Ac.prototype,"ytActionHandlerBehavior",void 0);_.L([_.A3("yt-emoji-picker-renderer"),_.p("design:type",Object)],Ac.prototype,"emojiPickerRenderer",void 0);
_.L([_.x({selectorArgs:["data.emojiCustomizationSetEntityKey"],selector:function(a,z){return _.Bd(a.entities,"emojiCustomizationSetEntity",z)},
observer:"emojiCustomizationSetChanged"}),_.p("design:type",Object)],Ac.prototype,"emojiCustomizationSet",void 0);_.L([_.x(),_.p("design:type",Object)],Ac.prototype,"originalEmojiSet",void 0);_.L([_.x(),_.p("design:type",_.mJ)],Ac.prototype,"emojiManager",void 0);_.L([_.x(),_.p("design:type",Object)],Ac.prototype,"data",void 0);_.L([_.x({reflectToAttribute:!0}),_.p("design:type",Object)],Ac.prototype,"isDarkTheme",void 0);_.L([_.x(),_.p("design:type",Object)],Ac.prototype,"selectedIndex",void 0);
_.L([_.gz("yt-emoji-select"),_.p("design:type",Function),_.p("design:paramtypes",[CustomEvent]),_.p("design:returntype")],Ac.prototype,"onEmojiSelect",null);_.L([_.dz({is:"yt-emoji-customization-panel-view-model",noInjection:!0})],Ac);var obw;var Ua1;var Daf;var RjI;var sF=function(){var a=_.G.apply(this,arguments)||this;a.authorBadges=[];return a};
_.b(sF,_.G);_.Z=sF.prototype;_.Z.created=function(){this.ytLiveChatItemBehavior.supportsInlineActionButtons=!0};
_.Z.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]]"}}}}}};
_.Z.dataChanged=function(){var a=n1p(this.data.authorBadges||[]);this.hostElement.setAttribute("author-type",a)};
_.Z.updateMessage=function(){var a=this.data.message,z=_.PK(_.PK(this.hostElement).querySelector("#message"));z.textContent="";a&&z.appendChild(this.ytLiveChatItemBehavior.createDocumentFragment(a))};
_.Z.shouldSupportWholeItemClick=function(){return!0};
_.Z.onShowOriginalClick=function(a){a.preventDefault();this.showOriginal=!0};
_.Z.computeShowBar=function(a,z,I){return a&&z||I};
_.Z.computeAuthorBadges=function(a){return a.authorBadges||[]};
_.Z.computeAuthorIsOwner=function(a){return!!KeE(a.authorBadges,"owner")};
_.Z.computeAuthorNameColor=function(a){var z;if(_.K("live_chat_author_name_color_usernames")&&(a==null?0:(z=a.authorName)==null?0:z.simpleText))return _.QPd(_.Spx(a.authorName.simpleText));if(_.K("live_chat_seed_color_usernames")&&(a==null?0:a.authorSeedColorArgb))return _.QPd(_.uN(a.authorSeedColorArgb));if(_.K("live_chat_colored_usernames"))return"#cc0000";var I;return _.K("live_chat_simple_color_usernames")&&(a==null?0:(I=a.authorName)==null?0:I.simpleText)&&(a==null?0:a.authorUsernameColorLight)&&
(a==null?0:a.authorUsernameColorDark)&&!this.inBanner?document.documentElement.hasAttribute("dark")?_.uN(a.authorUsernameColorDark):_.uN(a.authorUsernameColorLight):""};
sF.prototype.updateMessage=sF.prototype.updateMessage;sF.prototype.dataChanged=sF.prototype.dataChanged;_.L([_.Q(_.k.YtRendererBehavior),_.p("design:type",Object)],sF.prototype,"ytRendererBehavior",void 0);_.L([_.Q(_.cc.YtLiveChatItemBehavior),_.p("design:type",_.Yu)],sF.prototype,"ytLiveChatItemBehavior",void 0);_.L([_.Q(_.u4.YtRendererstamperBehavior),_.p("design:type",Object)],sF.prototype,"ytRendererstamperBehavior",void 0);_.L([_.x(),_.p("design:type",Object)],sF.prototype,"data",void 0);
_.L([_.x({value:!1,reflectToAttribute:!0}),_.p("design:type",Boolean)],sF.prototype,"showOriginal",void 0);_.L([_.x({value:!1,computed:"truthy(data.isDimmed)",reflectToAttribute:!0}),_.p("design:type",Boolean)],sF.prototype,"isDimmed",void 0);_.L([_.x({computed:"computeShowBar(isDeleted, hasOriginalContent, isDimmed)",reflectToAttribute:!0}),_.p("design:type",Boolean)],sF.prototype,"showBar",void 0);
_.L([_.x({computed:"computeAuthorBadges(data)"}),_.p("design:type",Array)],sF.prototype,"authorBadges",void 0);_.L([_.x({computed:"computeAuthorIsOwner(data)",reflectToAttribute:!0}),_.p("design:type",Boolean)],sF.prototype,"authorIsOwner",void 0);_.L([_.x({value:!1,reflectToAttribute:!0}),_.p("design:type",Boolean)],sF.prototype,"inCollapsedBanner",void 0);_.L([_.x({value:!1,reflectToAttribute:!0}),_.p("design:type",Boolean)],sF.prototype,"inBanner",void 0);
_.L([_.x({value:_.K("live_chat_hide_avatars"),reflectToAttribute:!0}),_.p("design:type",Boolean)],sF.prototype,"avatarHidden",void 0);_.L([_.x({computed:"computeAuthorNameColor(data)"}),_.p("design:type",String)],sF.prototype,"authorNameColor",void 0);_.L([_.x(),_.p("design:type",_.aW)],sF.prototype,"participantsManager",void 0);_.L([_.x({value:{size:"XS",type:"filled",style:"overlay",iconPosition:"icon-only"}}),_.p("design:type",Object)],sF.prototype,"filledButtonOverrides",void 0);
_.L([_.O8("data"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],sF.prototype,"dataChanged",null);_.L([_.O8("data.message"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],sF.prototype,"updateMessage",null);_.L([_.dz({disableElementRegistration:!0,is:"yt-live-chat-text-message-renderer",noInjection:!0})],sF);
_.D(sF,"yt-live-chat-text-message-renderer",function(){if(RjI===void 0){var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-live-chat-text-message-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.yt_live_chat_text_message_renderer.yt.live.chat.text.message.renderer.css.js--\x3e<yt-img-shadow id="author-photo" class="no-transition style-scope yt-live-chat-text-message-renderer" height="24" thumbnail="[[data.authorPhoto]]" width="24"></yt-img-shadow><div id="content" class="style-scope yt-live-chat-text-message-renderer"><span id="timestamp" class="style-scope yt-live-chat-text-message-renderer">[[timestampString]]</span><yt-live-chat-author-chip author-badges="[[authorBadges]]" author-name="[[data.authorName]]" author-name-color="[[authorNameColor]]" class="style-scope yt-live-chat-text-message-renderer"></yt-live-chat-author-chip>\u200b<div id="before-content-buttons" class="style-scope yt-live-chat-text-message-renderer"></div>\u200b<span id="message" dir="auto" class="style-scope yt-live-chat-text-message-renderer"></span><span id="deleted-state" class="style-scope yt-live-chat-text-message-renderer">[[getSimpleString(data.deletedStateMessage)]]</span><a id="show-original" href="#" on-click="onShowOriginalClick" class="style-scope yt-live-chat-text-message-renderer">[[getSimpleString(data.showOriginalContentMessage)]]</a></div><div id="menu" hidden$="[[!data.contextMenuEndpoint]]" class="style-scope yt-live-chat-text-message-renderer"><yt-icon-button id="menu-button" label="[[data.contextMenuAccessibility.accessibilityData.label]]" on-click="showContextMenu" class="style-scope yt-live-chat-text-message-renderer"><yt-icon icon="more_vert" class="style-scope yt-live-chat-text-message-renderer"></yt-icon></yt-icon-button></div><div id="inline-action-button-container" class="style-scope yt-live-chat-text-message-renderer"><div id="inline-action-buttons" class="style-scope yt-live-chat-text-message-renderer"></div></div>');a.content.insertBefore(_.w().content.cloneNode(!0),
a.content.firstChild);var z=a.content,I=z.insertBefore;Daf===void 0&&(Daf=document.createElement("template"));var J=Daf;I.call(z,J.content.cloneNode(!0),a.content.firstChild);RjI=a}a=RjI;return a},{mode:_.K("live_chat_enable_sink_wrapper")?2:0});var nV=function(){var a=_.G.apply(this,arguments)||this;a.tonalButtonOverrides={type:"tonal",style:"overlay"};return a};
_.b(nV,_.G);
nV.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]]"}}}}}};
nV.prototype.shouldSupportInlineActionButtons=function(){return!0};
nV.prototype.shouldSupportWholeItemClick=function(){return!0};
_.eH.Object.defineProperties(nV.prototype,{hasInfoDialogButton:{configurable:!0,enumerable:!0,get:function(){return!!this.data.infoDialogButton}}});
_.L([_.Q(_.k.YtRendererBehavior),_.p("design:type",Object)],nV.prototype,"ytRendererBehavior",void 0);_.L([_.Q(_.cc.YtLiveChatItemBehavior),_.p("design:type",_.Yu)],nV.prototype,"ytLiveChatItemBehavior",void 0);_.L([_.Q(_.u4.YtRendererstamperBehavior),_.p("design:type",Object)],nV.prototype,"ytRendererstamperBehavior",void 0);_.L([_.x(),_.p("design:type",Object)],nV.prototype,"data",void 0);_.L([_.x(),_.p("design:type",_.aW)],nV.prototype,"participantsManager",void 0);
_.L([_.x(),_.p("design:type",Object)],nV.prototype,"tonalButtonOverrides",void 0);_.L([_.x({reflectToAttribute:!0}),_.S("data.infoDialogButton"),_.p("design:type",Object),_.p("design:paramtypes",[])],nV.prototype,"hasInfoDialogButton",null);_.L([_.dz({disableElementRegistration:!0,is:"yt-live-chat-auto-mod-message-renderer",noInjection:!0})],nV);
_.D(nV,"yt-live-chat-auto-mod-message-renderer",function(){if(Ua1===void 0){var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-live-chat-auto-mod-message-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.yt_live_chat_auto_mod_message_renderer.yt.live.chat.auto.mod.message.renderer.css.js--\x3e<div id="explanation" class="style-scope yt-live-chat-auto-mod-message-renderer">\n  <yt-icon id="warning-icon" hidden$="[[hasInfoDialogButton]]" icon="warning" class="style-scope yt-live-chat-auto-mod-message-renderer"></yt-icon>\n  <div id="button" hidden$="[[!hasInfoDialogButton]]" class="style-scope yt-live-chat-auto-mod-message-renderer"></div>\n  <yt-formatted-string text="[[data.headerText]]" class="style-scope yt-live-chat-auto-mod-message-renderer"></yt-formatted-string>\n</div>\n<div id="auto-moderated-item" class="style-scope yt-live-chat-auto-mod-message-renderer"></div>\n<div id="moderation-buttons" class="style-scope yt-live-chat-auto-mod-message-renderer"></div>\n<div id="inline-action-button-container" class="style-scope yt-live-chat-auto-mod-message-renderer">\n  <div id="inline-action-buttons" class="style-scope yt-live-chat-auto-mod-message-renderer"></div>\n  <div id="additional-inline-action-buttons" class="style-scope yt-live-chat-auto-mod-message-renderer"></div>\n</div>\n');a.content.insertBefore(_.w().content.cloneNode(!0),
a.content.firstChild);var z=a.content,I=z.insertBefore;obw===void 0&&(obw=document.createElement("template"));var J=obw;I.call(z,J.content.cloneNode(!0),a.content.firstChild);Ua1=a}a=Ua1;return a},{mode:_.K("live_chat_enable_sink_wrapper")?2:0});var L$G;var ldJ;var pie;var wiG=function(){return _.G.apply(this,arguments)||this};
_.b(wiG,_.G);_.L([_.x(),_.p("design:type",Object)],wiG.prototype,"data",void 0);_.L([_.U({is:"ytd-factoid-renderer",disableElementRegistration:!0})],wiG);
_.D(wiG,"ytd-factoid-renderer",function(){if(pie!==void 0)return pie;var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-factoid-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="factoid style-scope ytd-factoid-renderer" role="text" aria-label="[[data.accessibilityText]]">\n  <yt-formatted-string class="factoid-value style-scope ytd-factoid-renderer" text="[[data.value]]">\n  </yt-formatted-string>\n  <yt-formatted-string class="factoid-label style-scope ytd-factoid-renderer" text="[[data.label]]">\n  </yt-formatted-string>\n</div>\n');a.content.insertBefore(_.w().content.cloneNode(!0),
a.content.firstChild);return pie=a},{mode:1});var KV=function(){return _.G.apply(this,arguments)||this};
_.b(KV,_.G);KV.prototype.configureRendererStamper=function(){return{"data.factoids":{id:"factoids",mapping:{factoidRenderer:"ytd-factoid-renderer"}}}};
_.L([_.x(),_.p("design:type",Object)],KV.prototype,"data",void 0);_.L([_.Q(_.u4.YtRendererstamperBehavior),_.p("design:type",Object)],KV.prototype,"ytRendererstamperBehavior",void 0);_.L([_.dz({disableElementRegistration:!0,is:"yt-live-chat-channel-activity-reputation-renderer",noInjection:!0})],KV);
_.D(KV,"yt-live-chat-channel-activity-reputation-renderer",function(){if(ldJ===void 0){var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-live-chat-channel-activity-reputation-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.yt_live_chat_channel_activity_reputation_renderer.yt.live.chat.channel.activity.reputation.renderer.css.js--\x3e<div id="factoids" class="style-scope yt-live-chat-channel-activity-reputation-renderer"></div>\n');a.content.insertBefore(_.w().content.cloneNode(!0),
a.content.firstChild);var z=a.content,I=z.insertBefore;L$G===void 0&&(L$G=document.createElement("template"));var J=L$G;I.call(z,J.content.cloneNode(!0),a.content.firstChild);ldJ=a}a=ldJ;return a},{mode:_.K("live_chat_enable_sink_wrapper")?2:0});var maI;var yS1;var Fc=function(){return _.G.apply(this,arguments)||this};
_.b(Fc,_.G);Fc.prototype.ready=function(){var a=document.querySelector("yt-live-chat-app");a&&a.hasAttribute("dashboard-money-feed")&&this.hostElement.setAttribute("dashboard-money-feed","")};
_.L([_.Q(_.k.YtRendererBehavior),_.p("design:type",Object)],Fc.prototype,"ytRendererBehavior",void 0);_.L([_.x(),_.p("design:type",Boolean)],Fc.prototype,"menuFocused",void 0);_.L([_.x(),_.p("design:type",Object)],Fc.prototype,"data",void 0);_.L([_.Q(_.cc.YtLiveChatItemBehavior),_.p("design:type",_.Yu)],Fc.prototype,"ytLiveChatItemBehavior",void 0);_.L([_.dz({disableElementRegistration:!0,is:"yt-live-chat-donation-announcement-renderer",noInjection:!0})],Fc);
_.D(Fc,"yt-live-chat-donation-announcement-renderer",function(){if(yS1===void 0){var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-live-chat-donation-announcement-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.yt_live_chat_donation_announcement_renderer.yt.live.chat.donation.announcement.renderer.css.js--\x3e<div id="card" class="style-scope yt-live-chat-donation-announcement-renderer"><yt-img-shadow id="author-photo" height="40" thumbnail="[[data.authorPhoto]]" width="40" class="style-scope yt-live-chat-donation-announcement-renderer"></yt-img-shadow><div id="content" class="style-scope yt-live-chat-donation-announcement-renderer"><div id="content-header" class="style-scope yt-live-chat-donation-announcement-renderer"><div id="author-name" class="style-scope yt-live-chat-donation-announcement-renderer">[[getSimpleString(data.authorName)]]</div><div id="text" class="style-scope yt-live-chat-donation-announcement-renderer">[[getSimpleString(data.text)]]</div></div><div id="timestamp" class="style-scope yt-live-chat-donation-announcement-renderer">[[timestampString]]</div><yt-formatted-string id="subtext" text="[[data.subtext]]" class="style-scope yt-live-chat-donation-announcement-renderer"></yt-formatted-string></div><div id="menu" hidden$="[[!data.contextMenuEndpoint]]" class="style-scope yt-live-chat-donation-announcement-renderer"><yt-icon-button id="menu-button" label="[[data.contextMenuAccessibility.accessibilityData.label]]" on-click="showContextMenu" class="style-scope yt-live-chat-donation-announcement-renderer"><yt-icon icon="more_vert" class="style-scope yt-live-chat-donation-announcement-renderer"></yt-icon></yt-icon-button></div></div>');
a.content.insertBefore(_.w().content.cloneNode(!0),a.content.firstChild);var z=a.content,I=z.insertBefore;maI===void 0&&(maI=document.createElement("template"));var J=maI;I.call(z,J.content.cloneNode(!0),a.content.firstChild);yS1=a}a=yS1;return a},{mode:_.K("live_chat_enable_sink_wrapper")?2:0});var k1o;var MUE,cSG=function(){if(MUE!==void 0)return MUE;var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-live-chat-empty-feed-view-model--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.yt_live_chat_empty_feed_view_model.yt.live.chat.empty.feed.view.model.css.js--\x3e<yt-image id="image" alt="empty_feed_image" data="[[data.emptyFeedImage]]" height="100" preserve-height="" preserve-width="" width="178" class="style-scope yt-live-chat-empty-feed-view-model">\n</yt-image>\n<yt-attributed-string id="message" data="[[data.message]]" class="style-scope yt-live-chat-empty-feed-view-model"></yt-attributed-string>');
a.content.insertBefore(_.w().content.cloneNode(!0),a.content.firstChild);var z=a.content,I=z.insertBefore;k1o===void 0&&(k1o=document.createElement("template"));var J=k1o;I.call(z,J.content.cloneNode(!0),a.content.firstChild);return MUE=a};var HZ=function(){return _.G.apply(this,arguments)||this};
_.b(HZ,_.G);_.eH.Object.defineProperties(HZ,{template:{configurable:!0,enumerable:!0,get:function(){return cSG()}}});
_.L([_.Q(_.u4.YtRendererstamperBehavior),_.p("design:type",Object)],HZ.prototype,"ytRendererstamperBehavior",void 0);_.L([_.x(),_.p("design:type",Object)],HZ.prototype,"data",void 0);_.L([_.dz({is:"yt-live-chat-empty-feed-view-model",disableElementRegistration:!0,noInjection:!0})],HZ);_.D(HZ,"yt-live-chat-empty-feed-view-model",function(){return cSG()},{mode:_.K("live_chat_enable_sink_wrapper")?2:0});var Y$w;var q$G;var bf=function(){return _.G.apply(this,arguments)||this};
_.b(bf,_.G);bf.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"}}}}}};
_.eH.Object.defineProperties(bf.prototype,{channelName:{configurable:!0,enumerable:!0,get:function(){var a,z;return{runs:[{text:(a=this.data)==null?void 0:(z=a.channelName)==null?void 0:z.content}]}}},
channelBadges:{configurable:!0,enumerable:!0,get:function(){var a=[],z;if((z=this.data)==null||!z.channelBadges)return a;var I;z=_.C((I=this.data)==null?void 0:I.channelBadges);for(I=z.next();!I.done;I=z.next()){I=_.H(I.value,UJE);var J=void 0,r=void 0;if((J=I)==null?0:(r=J.badgeImage)==null?0:r.sources)J=void 0,r={liveChatAuthorBadgeRenderer:{tooltip:I.tooltip,accessibility:{accessibilityData:{label:(J=_.H(I.rendererContext,_.Vw))==null?void 0:J.label}}}},I.badgeImage.sources[0].clientResource?r.liveChatAuthorBadgeRenderer.icon=
{iconType:I.badgeImage.sources[0].clientResource.imageName}:r.liveChatAuthorBadgeRenderer.customThumbnail={thumbnails:I.badgeImage.sources},a.push(r)}return a}}});
_.L([_.x(),_.p("design:type",Object)],bf.prototype,"data",void 0);_.L([_.S("data.channelName"),_.p("design:type",Object),_.p("design:paramtypes",[])],bf.prototype,"channelName",null);_.L([_.S("data.channelBadges"),_.p("design:type",Array),_.p("design:paramtypes",[])],bf.prototype,"channelBadges",null);_.L([_.Q(_.u4.YtRendererstamperBehavior),_.p("design:type",Object)],bf.prototype,"ytRendererstamperBehavior",void 0);
_.L([_.dz({disableElementRegistration:!0,is:"yt-live-chat-identity-view-model",noInjection:!0})],bf);
_.D(bf,"yt-live-chat-identity-view-model",function(){if(q$G===void 0){var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-live-chat-identity-view-model--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.yt_live_chat_identity_view_model.yt.live.chat.identity.view.model.css.js--\x3e<div id="avatar" class="style-scope yt-live-chat-identity-view-model"></div>\n<div id="channel_info" class="style-scope yt-live-chat-identity-view-model">\n  <yt-live-chat-author-chip id="channel_name" author-badges="[[channelBadges]]" author-name="[[channelName]]" class="style-scope yt-live-chat-identity-view-model">\n  </yt-live-chat-author-chip>\n  <div id="channel_metadata" class="style-scope yt-live-chat-identity-view-model">\n    <yt-attributed-string id="create_time" data="[[data.channelCreateTime]]" class="style-scope yt-live-chat-identity-view-model"></yt-attributed-string>\n    <yt-attributed-string id="subscriber_count" data="[[data.channelSubscriberCount]]" class="style-scope yt-live-chat-identity-view-model"></yt-attributed-string>\n  </div>\n</div>');a.content.insertBefore(_.w().content.cloneNode(!0),
a.content.firstChild);var z=a.content,I=z.insertBefore;Y$w===void 0&&(Y$w=document.createElement("template"));var J=Y$w;I.call(z,J.content.cloneNode(!0),a.content.firstChild);q$G=a}a=q$G;return a},{mode:_.K("live_chat_enable_sink_wrapper")?2:0});var ejO;var aBX;var jIi;var zNJ;var hc=function(){var a=_.G.apply(this,arguments)||this;a.hidden=!1;a.supportsInlineActionButtons=!0;return a};
_.b(hc,_.G);hc.prototype.ready=function(){var a;((a=document.querySelector("yt-live-chat-app"))==null?0:a.hasAttribute("dashboard-money-feed"))&&this.hostElement.setAttribute("dashboard-money-feed","")};
hc.prototype.dataChanged=function(a){var z=(0,_.t3)(_.PK(this.hostElement).querySelector("#detail-text"));z.textContent="";(a==null?0:a.detailText)&&z.appendChild(this.ytLiveChatItemBehavior.createDocumentFragment(a.detailText))};
_.L([_.Q(_.k.YtRendererBehavior),_.p("design:type",Object)],hc.prototype,"ytRendererBehavior",void 0);_.L([_.Q(_.cc.YtLiveChatItemBehavior),_.p("design:type",_.Yu)],hc.prototype,"ytLiveChatItemBehavior",void 0);_.L([_.Q(_.u4.YtRendererstamperBehavior),_.p("design:type",Object)],hc.prototype,"ytRendererstamperBehavior",void 0);_.L([_.x({observer:"dataChanged"}),_.p("design:type",Object)],hc.prototype,"data",void 0);
_.L([_.x({computed:"truthy(isDeleted)",reflectToAttribute:!0}),_.p("design:type",Object)],hc.prototype,"hidden",void 0);_.L([_.U({disableElementRegistration:!0,is:"yt-live-chat-legacy-paid-message-renderer"})],hc);
_.D(hc,"yt-live-chat-legacy-paid-message-renderer",function(){if(zNJ===void 0){var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-live-chat-legacy-paid-message-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.yt_live_chat_legacy_paid_message_renderer.yt.live.chat.legacy.paid.message.renderer.css.js--\x3e<div id="card" class="style-scope yt-live-chat-legacy-paid-message-renderer">\n  <yt-img-shadow id="author-photo" height="40" thumbnail="[[data.authorPhoto]]" width="40" class="style-scope yt-live-chat-legacy-paid-message-renderer"></yt-img-shadow>\n  <div id="content" class="style-scope yt-live-chat-legacy-paid-message-renderer">\n    <div id="content-primary-column" class="style-scope yt-live-chat-legacy-paid-message-renderer">\n      <div id="author-name" class="style-scope yt-live-chat-legacy-paid-message-renderer">[[getSimpleString(data.authorName)]]</div>\n      <div id="event-text" class="style-scope yt-live-chat-legacy-paid-message-renderer">[[getSimpleString(data.eventText)]]</div>\n      <div id="detail-text" class="style-scope yt-live-chat-legacy-paid-message-renderer"></div>\n    </div>\n    <div id="timestamp" class="style-scope yt-live-chat-legacy-paid-message-renderer">[[timestampString]]</div>\n  </div>\n  <div id="menu" hidden$="[[!data.contextMenuEndpoint]]" class="style-scope yt-live-chat-legacy-paid-message-renderer">\n    <yt-icon-button id="menu-button" label="[[data.contextMenuAccessibility.accessibilityData.label]]" on-click="showContextMenu" class="style-scope yt-live-chat-legacy-paid-message-renderer">\n      <yt-icon icon="more_vert" class="style-scope yt-live-chat-legacy-paid-message-renderer"></yt-icon>\n    </yt-icon-button>\n  </div>\n</div>\n<div id="inline-action-button-container" class="style-scope yt-live-chat-legacy-paid-message-renderer">\n  <div id="inline-action-buttons" class="style-scope yt-live-chat-legacy-paid-message-renderer"></div>\n</div>\n');a.content.insertBefore(_.w().content.cloneNode(!0),
a.content.firstChild);var z=a.content,I=z.insertBefore;jIi===void 0&&(jIi=document.createElement("template"));var J=jIi;I.call(z,J.content.cloneNode(!0),a.content.firstChild);zNJ=a}a=zNJ;return a},{mode:_.K("live_chat_enable_sink_wrapper")?2:0});var IBE;var Jie;var riJ={},VF=function(){return _.nM.apply(this,arguments)||this};
_.b(VF,_.nM);VF.prototype.onLiveChatMembershipItemBehaviorClick=function(){this.data&&this.ytRendererBehavior.logExplicitClick(this.data)};
VF.prototype.onLiveChatMembershipItemBehaviorClick=VF.prototype.onLiveChatMembershipItemBehaviorClick;_.L([_.Q(_.k.YtRendererBehavior),_.p("design:type",Object)],VF.prototype,"ytRendererBehavior",void 0);_.L([_.x(),_.p("design:type",Object)],VF.prototype,"data",void 0);_.L([_.gz("click"),_.p("design:type",Function),_.p("design:paramtypes",[Event]),_.p("design:returntype")],VF.prototype,"onLiveChatMembershipItemBehaviorClick",null);_.L([_.KM()],VF);
riJ.YtLiveChatMembershipItemBehavior=[VF.prototype,_.k.YtRendererBehavior];var QF=function(){var a=_.G.apply(this,arguments)||this;a.supportsInlineActionButtons=!0;a.hasPrimaryHeaderText=!1;a.showOnlyHeader=!1;a.authorBadges=[];a.modern=_.K("web_button_rework_with_live");a.buttonOverrides={style:"overlay",type:"filled"};return a};
_.b(QF,_.G);_.Z=QF.prototype;_.Z.shouldSupportInlineActionButtons=function(){return!0};
_.Z.configureRendererStamper=function(){return{"data.footerButton":{id:"footer-button",mapping:{buttonRenderer:{component:"yt-button-renderer",properties:{overrides:"[[buttonOverrides]]"}}}}}};
_.Z.ready=function(){var a=document.querySelector("yt-live-chat-app");a&&a.hasAttribute("dashboard-money-feed")&&this.hostElement.setAttribute("dashboard-money-feed","")};
_.Z.messageChanged=function(){var a=this.data.message,z=(0,_.t3)(_.PK(this.hostElement).querySelector("#message"));z.textContent="";a&&z.appendChild(this.ytLiveChatItemBehavior.createDocumentFragment(a))};
_.Z.computeHasPrimaryHeaderText=function(a){return!(!a||!a.headerPrimaryText)};
_.Z.computeShowOnlyHeader=function(a,z){return this.isMessageEmpty(a,z)};
_.Z.computeAuthorBadges=function(a){return a.authorBadges||[]};
_.Z.isMessageEmpty=function(a,z){return!a||a.empty?!0:!a.message&&!a.inputField&&!z};
_.Z.isDeletedChanged=function(){this.ytLiveChatItemBehavior.isDeleted&&(this.set("data.authorName",null),this.set("data.authorPhoto",null),this.set("data.message",null))};
_.Z.getInputElement=function(){return _.PK(this.hostElement).querySelector("yt-live-chat-text-input-field-renderer")};
_.Z.inputFocus=function(){var a=this.getInputElement();a&&a.focus()};
_.Z.inputInsertEmoji=function(a){var z=this.getInputElement();z&&z.insertEmoji(a)};
_.Z.inputMessage=function(){var a=this.getInputElement();return a&&this.data.inputField?(a.completeEmojis(),_.LS(a.liveChatRichMessageInput)):null};
_.Z.onFooterButtonClick=function(){this.data.footerButton&&_.PA(this.hostElement,"yt-live-chat-clear-pinned-message")};
_.Z.shouldSupportWholeItemClick=function(){return!0};
QF.prototype.isDeletedChanged=QF.prototype.isDeletedChanged;QF.prototype.messageChanged=QF.prototype.messageChanged;_.L([_.Q(_.k.YtRendererBehavior),_.p("design:type",Object)],QF.prototype,"ytRendererBehavior",void 0);_.L([_.Q(_.cc.YtLiveChatItemBehavior),_.p("design:type",_.Yu)],QF.prototype,"ytLiveChatItemBehavior",void 0);_.L([_.Q(riJ.YtLiveChatMembershipItemBehavior),_.p("design:type",Object)],QF.prototype,"ytLiveChatMembershipItemBehavior",void 0);
_.L([_.Q(_.u4.YtRendererstamperBehavior),_.p("design:type",Object)],QF.prototype,"ytRendererstamperBehavior",void 0);_.L([_.x(),_.p("design:type",Object)],QF.prototype,"data",void 0);_.L([_.x({computed:"computeHasPrimaryHeaderText(data)",reflectToAttribute:!0}),_.p("design:type",Object)],QF.prototype,"hasPrimaryHeaderText",void 0);_.L([_.x({computed:"computeShowOnlyHeader(data, isDeleted)",reflectToAttribute:!0}),_.p("design:type",Object)],QF.prototype,"showOnlyHeader",void 0);
_.L([_.x({computed:"computeAuthorBadges(data)"}),_.p("design:type",Array)],QF.prototype,"authorBadges",void 0);_.L([_.x({reflectToAttribute:!0}),_.p("design:type",Object)],QF.prototype,"modern",void 0);_.L([_.O8("data.message"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],QF.prototype,"messageChanged",null);_.L([_.O8("isDeleted"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],QF.prototype,"isDeletedChanged",null);
_.L([_.dz({disableElementRegistration:!0,is:"yt-live-chat-membership-item-renderer",noInjection:!0})],QF);
_.D(QF,"yt-live-chat-membership-item-renderer",function(){if(Jie===void 0){var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-live-chat-membership-item-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.yt_live_chat_membership_item_renderer.yt.live.chat.membership.item.renderer.css.js--\x3e<div id="card" class="style-scope yt-live-chat-membership-item-renderer">\n  <div id="header" class="style-scope yt-live-chat-membership-item-renderer">\n    <template is="dom-if" if="[[data.authorPhoto]]" restamp="" class="style-scope yt-live-chat-membership-item-renderer">\n      <yt-img-shadow id="author-photo" height="40" thumbnail="[[data.authorPhoto]]" width="40" class="style-scope yt-live-chat-membership-item-renderer"></yt-img-shadow>\n    </template>\n    <template is="dom-if" if="[[!data.authorPhoto]]" class="style-scope yt-live-chat-membership-item-renderer">\n      <yt-icon id="author-photo" icon="yt-icons:avatar_anonymous" class="style-scope yt-live-chat-membership-item-renderer"></yt-icon>\n    </template>\n    <div id="header-content" class="style-scope yt-live-chat-membership-item-renderer">\n      <div id="header-content-primary-column" class="style-scope yt-live-chat-membership-item-renderer">\n        <div id="header-content-inner-column" class="style-scope yt-live-chat-membership-item-renderer">\n          <template is="dom-if" if="[[data.authorName]]" restamp="" class="style-scope yt-live-chat-membership-item-renderer">\n            <yt-live-chat-author-chip author-badges="[[authorBadges]]" author-name="[[data.authorName]]" class="style-scope yt-live-chat-membership-item-renderer">\n            </yt-live-chat-author-chip>\n          </template>\n          <div id="header-primary-text" class="style-scope yt-live-chat-membership-item-renderer">[[getSimpleString(data.headerPrimaryText)]]</div>\n        </div>\n        <div id="header-subtext" class="style-scope yt-live-chat-membership-item-renderer">[[getSimpleString(data.headerSubtext)]]</div>\n      </div>\n      <div id="timestamp" class="style-scope yt-live-chat-membership-item-renderer">[[timestampString]]</div>\n    </div>\n    <div id="menu" hidden$="[[!data.contextMenuEndpoint]]" class="style-scope yt-live-chat-membership-item-renderer">\n      <yt-icon-button id="menu-button" label="[[data.contextMenuAccessibility.accessibilityData.label]]" on-click="showContextMenu" class="style-scope yt-live-chat-membership-item-renderer">\n        <yt-icon icon="more_vert" class="style-scope yt-live-chat-membership-item-renderer"></yt-icon>\n      </yt-icon-button>\n    </div>\n  </div>\n  <div id="content" class="style-scope yt-live-chat-membership-item-renderer">\n    <div id="message" dir="auto" class="style-scope yt-live-chat-membership-item-renderer"></div>\n    <div id="input-container" class="style-scope yt-live-chat-membership-item-renderer">\n      <template is="dom-if" if="[[data.inputField]]" class="style-scope yt-live-chat-membership-item-renderer">\n        <yt-live-chat-text-input-field-renderer id="input-field" data="[[data.inputField.liveChatTextInputFieldRenderer]]" participants-manager="[[participantsManager]]" class="style-scope yt-live-chat-membership-item-renderer">\n        </yt-live-chat-text-input-field-renderer>\n      </template>\n    </div>\n    <yt-formatted-string id="deleted-state" is-deleted$="[[isDeleted]]" text="[[data.deletedStateMessage]]" class="style-scope yt-live-chat-membership-item-renderer"></yt-formatted-string>\n  </div>\n</div>\n<div id="footer-button" hidden$="[[!data.footerButton]]" on-click="onFooterButtonClick" class="style-scope yt-live-chat-membership-item-renderer"></div>\n<div id="inline-action-button-container" class="style-scope yt-live-chat-membership-item-renderer">\n  <div id="inline-action-buttons" class="style-scope yt-live-chat-membership-item-renderer"></div>\n</div>\n');a.content.insertBefore(_.w().content.cloneNode(!0),
a.content.firstChild);var z=a.content,I=z.insertBefore;IBE===void 0&&(IBE=document.createElement("template"));var J=IBE;I.call(z,J.content.cloneNode(!0),a.content.firstChild);Jie=a}a=Jie;return a},{mode:_.K("live_chat_enable_sink_wrapper")?2:0});var PxX;var ZPi;var SB=function(){return _.G.apply(this,arguments)||this};
_.b(SB,_.G);SB.prototype.configureRendererStamper=function(){return{"data.buttons":{id:"buttons",mapping:{buttonRenderer:"yt-button-renderer"}}}};
_.L([_.Q(_.u4.YtRendererstamperBehavior),_.p("design:type",Object)],SB.prototype,"ytRendererstamperBehavior",void 0);_.L([_.x(),_.p("design:type",Object)],SB.prototype,"data",void 0);_.L([_.dz({disableElementRegistration:!0,is:"yt-live-chat-mode-change-message-renderer",noInjection:!0})],SB);
_.D(SB,"yt-live-chat-mode-change-message-renderer",function(){if(ZPi===void 0){var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-live-chat-mode-change-message-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.yt_live_chat_mode_change_message_renderer.yt.live.chat.mode.change.message.renderer.css.js--\x3e<div id="contents" class="style-scope yt-live-chat-mode-change-message-renderer">\n  <yt-icon icon="[[data.icon.iconType]]" class="style-scope yt-live-chat-mode-change-message-renderer"></yt-icon>\n  <div id="text-container" class="style-scope yt-live-chat-mode-change-message-renderer">\n    <yt-formatted-string id="text" text="[[data.text]]" class="style-scope yt-live-chat-mode-change-message-renderer"></yt-formatted-string>\n    <yt-formatted-string id="subtext" text="[[data.subtext]]" class="style-scope yt-live-chat-mode-change-message-renderer"></yt-formatted-string>\n  </div>\n  <div id="buttons" class="style-scope yt-live-chat-mode-change-message-renderer"></div>\n</div>\n');a.content.insertBefore(_.w().content.cloneNode(!0),
a.content.firstChild);var z=a.content,I=z.insertBefore;PxX===void 0&&(PxX=document.createElement("template"));var J=PxX;I.call(z,J.content.cloneNode(!0),a.content.firstChild);ZPi=a}a=ZPi;return a},{mode:_.K("live_chat_enable_sink_wrapper")?2:0});var Cxv;var N9w;var xI=function(){return _.G.apply(this,arguments)||this};
_.b(xI,_.G);_.L([_.Q(_.k.YtRendererBehavior),_.p("design:type",Object)],xI.prototype,"ytRendererBehavior",void 0);_.L([_.Q(_.cc.YtLiveChatItemBehavior),_.p("design:type",_.Yu)],xI.prototype,"ytLiveChatItemBehavior",void 0);_.L([_.x(),_.p("design:type",Object)],xI.prototype,"data",void 0);_.L([_.dz({disableElementRegistration:!0,is:"yt-live-chat-moderation-message-renderer"})],xI);
_.D(xI,"yt-live-chat-moderation-message-renderer",function(){if(N9w===void 0){var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-live-chat-moderation-message-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.yt_live_chat_moderation_message_renderer.yt.live.chat.moderation.message.renderer.css.js--\x3e<div id="container" class="style-scope yt-live-chat-moderation-message-renderer">\n  <span id="timestamp" class="style-scope yt-live-chat-moderation-message-renderer">[[timestampString]]</span>\n  <yt-formatted-string id="message" text="[[data.message]]" class="style-scope yt-live-chat-moderation-message-renderer"></yt-formatted-string>\n</div>\n');
a.content.insertBefore(_.w().content.cloneNode(!0),a.content.firstChild);var z=a.content,I=z.insertBefore;Cxv===void 0&&(Cxv=document.createElement("template"));var J=Cxv;I.call(z,J.content.cloneNode(!0),a.content.firstChild);N9w=a}a=N9w;return a},{mode:_.K("live_chat_enable_sink_wrapper")?2:0});var t91;var uPf;var vZ=function(){var a=_.G.apply(this,arguments)||this;a.modern=_.K("web_button_rework");return a};
_.b(vZ,_.G);vZ.prototype.onClick=function(){var a;if((a=this.data)!=null&&a.onClickCommand){var z;_.Og.instance.resolveCommand((z=this.data)==null?void 0:z.onClickCommand)}};
_.L([_.x({reflectToAttribute:!0}),_.p("design:type",Object)],vZ.prototype,"modern",void 0);_.L([_.Q(_.k.YtRendererBehavior),_.p("design:type",Object)],vZ.prototype,"ytRendererBehavior",void 0);_.L([_.Q(_.yb),_.p("design:type",Object)],vZ.prototype,"ytLiveChatReduxBehavior",void 0);_.L([_.Q(_.cc.YtLiveChatItemBehavior),_.p("design:type",_.Yu)],vZ.prototype,"ytLiveChatItemBehavior",void 0);_.L([_.Q(_.u4.YtRendererstamperBehavior),_.p("design:type",Object)],vZ.prototype,"ytRendererstamperBehavior",void 0);
_.L([_.x(),_.p("design:type",Object)],vZ.prototype,"data",void 0);_.L([_.dz({disableElementRegistration:!0,is:"yt-live-chat-offer-click-count-message-renderer",noInjection:!0})],vZ);
_.D(vZ,"yt-live-chat-offer-click-count-message-renderer",function(){if(uPf===void 0){var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-live-chat-offer-click-count-message-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.yt_live_chat_offer_click_count_message_renderer.yt.live.chat.offer.click.count.message.renderer.css.js--\x3e<div id="container" class="style-scope yt-live-chat-offer-click-count-message-renderer">\n  <div id="icon-container" class="style-scope yt-live-chat-offer-click-count-message-renderer">\n    <div id="icon" class="style-scope yt-live-chat-offer-click-count-message-renderer">\n      <yt-icon icon="yt-icons:trending_up" class="style-scope yt-live-chat-offer-click-count-message-renderer"></yt-icon>\n    </div>\n  </div>\n  <div id="metadata-container" class="style-scope yt-live-chat-offer-click-count-message-renderer">\n    <div id="message-title" class="style-scope yt-live-chat-offer-click-count-message-renderer">\n      <yt-formatted-string text="[[data.messageTitle]]" class="style-scope yt-live-chat-offer-click-count-message-renderer"></yt-formatted-string>\n    </div>\n    <div id="product-title-container" class="style-scope yt-live-chat-offer-click-count-message-renderer">[[data.productTitle]]</div>\n    <div id="cta-container" class="style-scope yt-live-chat-offer-click-count-message-renderer">\n      <a id="cta-endpoint" href$="[[computeHref_(data.onClickCommand)]]" on-click="onClick" data="[[data.onClickCommand]]" class="style-scope yt-live-chat-offer-click-count-message-renderer">\n        [[data.ctaTitle]]\n        <yt-icon class="hover-icon style-scope yt-live-chat-offer-click-count-message-renderer" icon="open_in_new"></yt-icon>\n      </a>\n    </div>\n  </div>\n</div>');a.content.insertBefore(_.w().content.cloneNode(!0),
a.content.firstChild);var z=a.content,I=z.insertBefore;t91===void 0&&(t91=document.createElement("template"));var J=t91;I.call(z,J.content.cloneNode(!0),a.content.firstChild);uPf=a}a=uPf;return a},{mode:_.K("live_chat_enable_sink_wrapper")?2:0});var E4J;var B9J=function(){return _.G.apply(this,arguments)||this};
_.b(B9J,_.G);_.L([_.x(),_.p("design:type",Object)],B9J.prototype,"data",void 0);_.L([_.dz({disableElementRegistration:!0,is:"yt-live-chat-placeholder-item-renderer",noInjection:!0})],B9J);
_.D(B9J,"yt-live-chat-placeholder-item-renderer",function(){if(E4J===void 0){var a=document.createElement("template");_.V(a,"\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-live-chat-placeholder-item-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e");a.content.insertBefore(_.w().content.cloneNode(!0),a.content.firstChild);E4J=a}a=E4J;return a},{mode:_.K("live_chat_enable_sink_wrapper")?2:0});var g4i;var OPG;var fBI=new yC(7),Gt=function(){var a=_.G.apply(this,arguments)||this;a.data={};return a};
_.b(Gt,_.G);Gt.prototype.dataChanged=function(){var a;((a=this.data)==null?0:a.class)&&_.CM(this.hostElement,this.data.class,!0);var z;((z=this.oldData)==null?0:z.class)&&_.CM(this.hostElement,this.oldData.class,!1);this.oldData=this.data};
Gt.prototype.computeTimestampString=function(a){return fBI.format(new Date(a/1E3))};
Gt.prototype.dataChanged=Gt.prototype.dataChanged;_.L([_.x(),_.p("design:type",Object)],Gt.prototype,"data",void 0);_.L([_.x({computed:"computeTimestampString(data.timestampUsec)"}),_.p("design:type",String)],Gt.prototype,"timestampString",void 0);_.L([_.O8("data"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],Gt.prototype,"dataChanged",null);_.L([_.dz({disableElementRegistration:!0,is:"yt-live-chat-server-error-message",noInjection:!0})],Gt);
_.D(Gt,"yt-live-chat-server-error-message",function(){if(OPG===void 0){var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-live-chat-server-error-message--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.yt_live_chat_server_error_message.yt.live.chat.server.error.message.css.js--\x3e<span id="timestamp" class="style-scope yt-live-chat-server-error-message">[[timestampString]]</span>\n<span id="message" class="style-scope yt-live-chat-server-error-message">[[data.message]]</span>\n');
a.content.insertBefore(_.w().content.cloneNode(!0),a.content.firstChild);var z=a.content,I=z.insertBefore;g4i===void 0&&(g4i=document.createElement("template"));var J=g4i;I.call(z,J.content.cloneNode(!0),a.content.firstChild);OPG=a}a=OPG;return a},{mode:_.K("live_chat_enable_sink_wrapper")?2:0});var Aif;var sIv;var $I=function(){var a=_.G.apply(this,arguments)||this;a.defaultToFilledIcon=!1;return a};
_.b($I,_.G);$I.prototype.computeHasPrimaryColorIcon=function(a){return a==="SPARK"||a==="SPONSORSHIP_STAR"};
$I.prototype.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:{component:"yt-button-renderer",attributes:{style:"max-width: 100%"}}}}}};
_.L([_.Q(_.k.YtRendererBehavior),_.p("design:type",Object)],$I.prototype,"ytRendererBehavior",void 0);_.L([_.Q(_.cc.YtLiveChatItemBehavior),_.p("design:type",_.Yu)],$I.prototype,"ytLiveChatItemBehavior",void 0);_.L([_.Q(_.u4.YtRendererstamperBehavior),_.p("design:type",Object)],$I.prototype,"ytRendererstamperBehavior",void 0);_.L([_.x(),_.p("design:type",Object)],$I.prototype,"defaultToFilledIcon",void 0);_.L([_.x(),_.p("design:type",Object)],$I.prototype,"data",void 0);
_.L([_.x({value:!1,computed:"computeHasPrimaryColorIcon(data.icon.iconType)",reflectToAttribute:!0}),_.p("design:type",Boolean)],$I.prototype,"hasPrimaryColorIcon",void 0);_.L([_.dz({disableElementRegistration:!0,is:"yt-live-chat-viewer-engagement-message-renderer",noInjection:!0})],$I);
_.D($I,"yt-live-chat-viewer-engagement-message-renderer",function(){if(sIv===void 0){var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-live-chat-viewer-engagement-message-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.yt_live_chat_viewer_engagement_message_renderer.yt.live.chat.viewer.engagement.message.renderer.css.js--\x3e<div id="card" class="style-scope yt-live-chat-viewer-engagement-message-renderer"><yt-icon id="icon" default-to-filled="[[defaultToFilledIcon]]" icon="[[data.icon.iconType]]" class="style-scope yt-live-chat-viewer-engagement-message-renderer"></yt-icon><div id="content" class="style-scope yt-live-chat-viewer-engagement-message-renderer"><div id="message-container" class="style-scope yt-live-chat-viewer-engagement-message-renderer"><yt-formatted-string id="message" split-lines="" text="[[data.message]]" class="style-scope yt-live-chat-viewer-engagement-message-renderer"></yt-formatted-string></div><div id="action-button" class="style-scope yt-live-chat-viewer-engagement-message-renderer"></div></div><div id="menu" hidden$="[[!data.contextMenuEndpoint]]" class="style-scope yt-live-chat-viewer-engagement-message-renderer"><yt-icon-button id="menu-button" label="[[data.contextMenuAccessibility.accessibilityData.label]]" on-click="showContextMenu" class="style-scope yt-live-chat-viewer-engagement-message-renderer"><yt-icon icon="more_vert" class="style-scope yt-live-chat-viewer-engagement-message-renderer"></yt-icon></yt-icon-button></div></div>');a.content.insertBefore(_.w().content.cloneNode(!0),
a.content.firstChild);var z=a.content,I=z.insertBefore;Aif===void 0&&(Aif=document.createElement("template"));var J=Aif;I.call(z,J.content.cloneNode(!0),a.content.firstChild);sIv=a}a=sIv;return a},{mode:_.K("live_chat_enable_sink_wrapper")?2:0});var n4l;var Xc=function(){var a=_.G.apply(this,arguments)||this;a.modernUpdate=!1;a.buttonStyle="overlay";a.buttonType="filled";return a};
_.b(Xc,_.G);Xc.prototype.computeTooltipPosition=function(){return this.modernUpdate?"left":"bottom"};
Xc.prototype.computeButtonOverride=function(){if(this.modernUpdate)return{iconPosition:"icon-only",style:this.buttonStyle,type:this.buttonType,size:"M"}};
_.L([_.Q(_.k.YtRendererBehavior),_.p("design:type",Object)],Xc.prototype,"ytRendererBehavior",void 0);_.L([_.x(),_.p("design:type",Object)],Xc.prototype,"data",void 0);_.L([_.x({reflectToAttribute:!0}),_.p("design:type",Object)],Xc.prototype,"modernUpdate",void 0);_.L([_.x({reflectToAttribute:!0}),_.p("design:type",String)],Xc.prototype,"buttonStyle",void 0);_.L([_.x({reflectToAttribute:!0}),_.p("design:type",String)],Xc.prototype,"buttonType",void 0);
_.L([_.U({is:"ytd-ad-hover-text-button-renderer",disableElementRegistration:!0})],Xc);
_.D(Xc,"ytd-ad-hover-text-button-renderer",function(){if(n4l!==void 0)return n4l;var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-ad-hover-text-button-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<ytd-button-renderer id="info-button" data="[[data.button.buttonRenderer]]" hidden="[[!data.button]]" overrides="[[computeButtonOverride(modernUpdate)]]" class="style-scope ytd-ad-hover-text-button-renderer">\n</ytd-button-renderer>\n<tp-yt-paper-tooltip id="ad-info-tooltip" for="info-button" hidden="[[!data.hoverText]]" position="[[computeTooltipPosition(modernUpdate)]]" class="style-scope ytd-ad-hover-text-button-renderer">\n  [[getSimpleString(data.hoverText)]]\n</tp-yt-paper-tooltip>\n');a.content.insertBefore(_.w().content.cloneNode(!0),
a.content.firstChild);return n4l=a},{mode:1});var KMO;var Tt=function(){var a=_.G.apply(this,arguments)||this;a.buttonOverrides={size:"XS"};a.modern=_.K("web_button_rework");return a};
_.b(Tt,_.G);Tt.prototype.onHelpTap=function(a){this.data&&this.data.informationDialog&&(_.PA(this.hostElement,"yt-navigate",{endpoint:{liveChatDialogEndpoint:{content:this.data.informationDialog}}}),a.preventDefault(),a.stopPropagation())};
_.L([_.x(),_.p("design:type",Object)],Tt.prototype,"buttonOverrides",void 0);_.L([_.x({reflectToAttribute:!0}),_.p("design:type",Object)],Tt.prototype,"modern",void 0);_.L([_.Q(_.k.YtRendererBehavior),_.p("design:type",Object)],Tt.prototype,"ytRendererBehavior",void 0);_.L([_.x(),_.p("design:type",Object)],Tt.prototype,"data",void 0);_.L([_.U({disableElementRegistration:!0,is:"ytd-live-chat-purchased-product-message-renderer"})],Tt);
_.D(Tt,"ytd-live-chat-purchased-product-message-renderer",function(){if(KMO!==void 0)return KMO;var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-live-chat-purchased-product-message-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e\n\n<div id="container" class="style-scope ytd-live-chat-purchased-product-message-renderer">\n  <a id="product-container" class="yt-simple-endpoint style-scope ytd-live-chat-purchased-product-message-renderer" href$="[[computeHref_(data.onClickCommand)]]" data="[[data.onClickCommand]]" data-offer-version-id$="[[data.debugOfferVersionId]]">\n    <div id="product-image" class="style-scope ytd-live-chat-purchased-product-message-renderer">\n      <yt-img-shadow class="no-transition style-scope ytd-live-chat-purchased-product-message-renderer" thumbnail="[[data.thumbnail]]"></yt-img-shadow>\n    </div>\n    <div id="product-info" class="style-scope ytd-live-chat-purchased-product-message-renderer">\n      <div id="purchased-message" class="style-scope ytd-live-chat-purchased-product-message-renderer">\n        <yt-formatted-string text="[[data.purchasedMessage]]" class="style-scope ytd-live-chat-purchased-product-message-renderer"></yt-formatted-string>\n      </div>\n      <div id="product-title-container" class="style-scope ytd-live-chat-purchased-product-message-renderer">\n        <div id="product-title" show-icon$="[[data.showExternalIcon]]" class="style-scope ytd-live-chat-purchased-product-message-renderer">[[data.productTitle]]\n          <template is="dom-if" if="[[data.showExternalIcon]]" class="style-scope ytd-live-chat-purchased-product-message-renderer">\n            <yt-icon class="hover-icon style-scope ytd-live-chat-purchased-product-message-renderer" icon="open_in_new"></yt-icon>\n          </template>\n        </div>\n      </div>\n    </div>\n  </a>\n  <div id="information-icon" on-tap="onHelpTap" class="style-scope ytd-live-chat-purchased-product-message-renderer">\n    <ytd-button-renderer id="info-button" data="[[data.informationButton.buttonRenderer]]" hidden="[[!data.informationButton]]" overrides="[[buttonOverrides]]" role="tooltip" tab-index="1" class="style-scope ytd-live-chat-purchased-product-message-renderer">\n    </ytd-button-renderer>\n  </div>\n</div>\n');
a.content.insertBefore(_.w().content.cloneNode(!0),a.content.firstChild);return KMO=a},{mode:1});var FMO;var HPJ;var dI=function(){var a=_.G.apply(this,arguments)||this;a.isContainerDeleted=!1;return a};
_.b(dI,_.G);dI.prototype.onContextMenuClick=function(a){this.ytLiveChatItemBehavior.showContextMenu(a)};
dI.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))};
dI.prototype.isContainerDeletedChanged=dI.prototype.isContainerDeletedChanged;_.L([_.Q(_.k.YtRendererBehavior),_.p("design:type",Object)],dI.prototype,"ytRendererBehavior",void 0);_.L([_.Q(_.cc.YtLiveChatItemBehavior),_.p("design:type",_.Yu)],dI.prototype,"ytLiveChatItemBehavior",void 0);_.L([_.x(),_.p("design:type",Object)],dI.prototype,"data",void 0);_.L([_.x(),_.p("design:type",Object)],dI.prototype,"isContainerDeleted",void 0);
_.L([_.x(),_.p("design:type",String)],dI.prototype,"deletedStateMessage",void 0);_.L([_.O8("isContainerDeleted"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],dI.prototype,"isContainerDeletedChanged",null);_.L([_.U({disableElementRegistration:!0,is:"ytd-sponsorships-live-chat-header-renderer"})],dI);
_.D(dI,"ytd-sponsorships-live-chat-header-renderer",function(){if(HPJ!==void 0)return HPJ;var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-sponsorships-live-chat-header-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-sponsorships-live-chat-header-renderer">\n  <div id="content" class="style-scope ytd-sponsorships-live-chat-header-renderer">\n    <template is="dom-if" if="[[data.authorPhoto]]" restamp="" class="style-scope ytd-sponsorships-live-chat-header-renderer">\n      <yt-img-shadow id="author-photo" height="40" thumbnail="[[data.authorPhoto]]" width="40" class="style-scope ytd-sponsorships-live-chat-header-renderer"></yt-img-shadow>\n    </template>\n    <template is="dom-if" if="[[!data.authorPhoto]]" class="style-scope ytd-sponsorships-live-chat-header-renderer">\n      <yt-icon id="author-photo" icon="yt-icons:avatar_anonymous" class="style-scope ytd-sponsorships-live-chat-header-renderer"></yt-icon>\n    </template>\n    <div id="header-content" class="style-scope ytd-sponsorships-live-chat-header-renderer">\n      <div id="header-content-primary-column" hidden$="[[isContainerDeleted]]" class="style-scope ytd-sponsorships-live-chat-header-renderer">\n        <div id="header-content-inner-column" class="style-scope ytd-sponsorships-live-chat-header-renderer">\n          <template is="dom-if" if="[[data.authorName]]" restamp="" class="style-scope ytd-sponsorships-live-chat-header-renderer">\n            <yt-live-chat-author-chip author-badges="[[data.authorBadges]]" author-name="[[data.authorName]]" single-line="" class="style-scope ytd-sponsorships-live-chat-header-renderer">\n            </yt-live-chat-author-chip>\n          </template>\n          <div id="primary-text" class="style-scope ytd-sponsorships-live-chat-header-renderer">[[getSimpleString(data.primaryText)]]</div>\n        </div>\n        <div id="secondary-text" class="style-scope ytd-sponsorships-live-chat-header-renderer">[[getSimpleString(data.secondaryText)]]</div>\n      </div>\n      <div id="header-content-deleted-state" hidden$="[[!isContainerDeleted]]" class="style-scope ytd-sponsorships-live-chat-header-renderer">\n        <div id="deleted-primary-text" class="style-scope ytd-sponsorships-live-chat-header-renderer">[[deletedStateMessage]]</div>\n      </div>\n    </div>\n  </div>\n  <template is="dom-if" restamp="" if="[[data.image]]" class="style-scope ytd-sponsorships-live-chat-header-renderer">\n    <yt-img-shadow class="rhs-image style-scope ytd-sponsorships-live-chat-header-renderer" height="104" thumbnail="[[data.image]]" width="104">\n    </yt-img-shadow>\n  </template>\n  <div id="menu" hidden$="[[!data.contextMenuEndpoint]]" class="style-scope ytd-sponsorships-live-chat-header-renderer">\n    <yt-icon-button id="menu-button" label="[[data.contextMenuAccessibility.accessibilityData.label]]" on-click="onContextMenuClick" class="style-scope ytd-sponsorships-live-chat-header-renderer">\n      <yt-icon icon="more_vert" class="style-scope ytd-sponsorships-live-chat-header-renderer"></yt-icon>\n    </yt-icon-button>\n  </div>\n</div>\n');a.content.insertBefore(_.w().content.cloneNode(!0),
a.content.firstChild);return HPJ=a},{mode:1});var WZ=function(){var a=_.G.apply(this,arguments)||this;a.modern=_.K("web_button_rework_with_live");a.buttonOverrides={style:"overlay",type:"filled"};return a};
_.b(WZ,_.G);WZ.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]]"}}}}}};
WZ.prototype.onCtaButtonClick=function(){var a,z=_.H((a=this.data)==null?void 0:a.optInPrompt,_.lc);if(a=this.maybeGetButtonCommand(z)){var I;(I=_.Kw())==null||I.clickCommand(a)}};
WZ.prototype.maybeGetButtonCommand=function(a){return!a||!a.command||_.H(a.command,Aqj)===void 0&&_.H(a.command,fOG)===void 0?null:a.command};
WZ.prototype.shouldHideOptinPrompt=function(a,z){return!a||z};
_.L([_.Q(_.u4.YtRendererstamperBehavior),_.p("design:type",Object)],WZ.prototype,"ytRendererstamperBehavior",void 0);_.L([_.Q(_.cc.YtLiveChatItemBehavior),_.p("design:type",_.Yu)],WZ.prototype,"ytLiveChatItemBehavior",void 0);_.L([_.x(),_.p("design:type",Object)],WZ.prototype,"data",void 0);_.L([_.x({reflectToAttribute:!0}),_.p("design:type",Object)],WZ.prototype,"modern",void 0);_.L([_.U({disableElementRegistration:!0,is:"ytd-sponsorships-live-chat-gift-purchase-announcement-renderer"})],WZ);
_.D(WZ,"ytd-sponsorships-live-chat-gift-purchase-announcement-renderer",function(){if(FMO!==void 0)return FMO;var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-sponsorships-live-chat-gift-purchase-announcement-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<ytd-sponsorships-live-chat-header-renderer id="header" data="[[data.header.liveChatSponsorshipsHeaderRenderer]]" deleted-state-message="[[getSimpleString(data.deletedStateMessage)]]" is-container-deleted="[[isDeleted]]" class="style-scope ytd-sponsorships-live-chat-gift-purchase-announcement-renderer">\n</ytd-sponsorships-live-chat-header-renderer>\n<div id="opt-in-prompt" on-click="onCtaButtonClick" hidden="[[shouldHideOptinPrompt(data.optInPrompt, isDeleted)]]" class="style-scope ytd-sponsorships-live-chat-gift-purchase-announcement-renderer"></div>\n');
a.content.insertBefore(_.w().content.cloneNode(!0),a.content.firstChild);return FMO=a},{mode:1});var bPX;var oW=function(){return _.G.apply(this,arguments)||this};
_.b(oW,_.G);oW.prototype.onContextMenuClick=function(a){this.ytLiveChatItemBehavior.showContextMenu(a)};
oW.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))};
oW.prototype.isDeletedChanged=oW.prototype.isDeletedChanged;_.L([_.Q(_.cc.YtLiveChatItemBehavior),_.p("design:type",_.Yu)],oW.prototype,"ytLiveChatItemBehavior",void 0);_.L([_.x(),_.p("design:type",Object)],oW.prototype,"data",void 0);_.L([_.O8("isDeleted"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],oW.prototype,"isDeletedChanged",null);_.L([_.U({disableElementRegistration:!0,is:"ytd-sponsorships-live-chat-gift-redemption-announcement-renderer"})],oW);
_.D(oW,"ytd-sponsorships-live-chat-gift-redemption-announcement-renderer",function(){if(bPX!==void 0)return bPX;var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-sponsorships-live-chat-gift-redemption-announcement-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<template is="dom-if" if="[[data.authorPhoto]]" restamp="" class="style-scope ytd-sponsorships-live-chat-gift-redemption-announcement-renderer">\n  <yt-img-shadow id="author-photo" height="24" thumbnail="[[data.authorPhoto]]" width="24" class="style-scope ytd-sponsorships-live-chat-gift-redemption-announcement-renderer"></yt-img-shadow>\n</template>\n<template is="dom-if" if="[[!data.authorPhoto]]" class="style-scope ytd-sponsorships-live-chat-gift-redemption-announcement-renderer">\n  <yt-icon id="author-photo" class="no-photo style-scope ytd-sponsorships-live-chat-gift-redemption-announcement-renderer" icon="yt-sys-icons:account_circle"></yt-icon>\n</template>\n<div id="content" class="style-scope ytd-sponsorships-live-chat-gift-redemption-announcement-renderer">\n  <span id="timestamp" class="style-scope ytd-sponsorships-live-chat-gift-redemption-announcement-renderer">\n    [[timestampString]]\n  \n  </span><template is="dom-if" if="[[data.authorName]]" restamp="" class="style-scope ytd-sponsorships-live-chat-gift-redemption-announcement-renderer"><yt-live-chat-author-chip author-badges="[[data.authorBadges]]" author-name="[[data.authorName]]" class="style-scope ytd-sponsorships-live-chat-gift-redemption-announcement-renderer">\n    </yt-live-chat-author-chip>\n  </template>\n  <yt-formatted-string id="message" hidden$="[[isDeleted]]" text="[[data.message]]" class="style-scope ytd-sponsorships-live-chat-gift-redemption-announcement-renderer"></yt-formatted-string>\n  <yt-icon id="gift-icon" default-to-filled="true" hidden$="[[isDeleted]]" icon="gift" class="style-scope ytd-sponsorships-live-chat-gift-redemption-announcement-renderer"></yt-icon>\n  <div id="deleted-message" hidden$="[[!isDeleted]]" class="style-scope ytd-sponsorships-live-chat-gift-redemption-announcement-renderer">\n    [[getSimpleString(data.deletedStateMessage)]]\n  </div>\n</div>\n<div id="menu" hidden$="[[!data.contextMenuEndpoint]]" class="style-scope ytd-sponsorships-live-chat-gift-redemption-announcement-renderer">\n  <yt-icon-button id="menu-button" label="[[data.contextMenuAccessibility.accessibilityData.label]]" on-click="onContextMenuClick" class="style-scope ytd-sponsorships-live-chat-gift-redemption-announcement-renderer">\n    <yt-icon icon="more_vert" class="style-scope ytd-sponsorships-live-chat-gift-redemption-announcement-renderer"></yt-icon>\n  </yt-icon-button>\n</div>\n');
a.content.insertBefore(_.w().content.cloneNode(!0),a.content.firstChild);return bPX=a},{mode:1});var UF=function(){var a=_.G.apply(this,arguments)||this;a.actionMap={"yt-mark-chat-item-as-deleted-action":"handleLiveChatAction","yt-live-chat-actions":"handleLiveChatActions","yt-remove-chat-item-action":"handleLiveChatAction"};return a};
_.b(UF,_.G);_.Z=UF.prototype;
_.Z.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"}}}};
_.Z.handleLiveChatAction=function(a){_.H(a,xJJ)?this.handleMarkChatItemAsDeletedAction(_.H(a,xJJ)):_.H(a,iEw)&&this.handleRemoveChatItemAction(_.H(a,iEw))};
_.Z.handleLiveChatActions=function(a){a.forEach(this.handleLiveChatAction,this)};
_.Z.handleMarkChatItemAsDeletedAction=function(a){var z=this,I;((I=this.data)==null?0:I.items)&&this.data.items.forEach(function(J,r){var P=Object.keys(J)[0];Object.values(J)[0].id===a.targetItemId&&z.markAsDeleted("data.items",r,P,a.deletedStateMessage,a.showOriginalContentMessage)})};
_.Z.handleRemoveChatItemAction=function(a){var z=this,I;((I=this.data)==null?0:I.items)&&this.data.items.forEach(function(J,r){Object.values(J)[0].id===a.targetItemId&&z.splice("data.items",r,1)})};
_.Z.markAsDeleted=function(a,z,I,J,r){a=[a,z,I].join(".");this.set(a+".deletedStateMessage",J);this.set(a+".showOriginalContentMessage",r)};
_.L([_.x(),_.p("design:type",Object)],UF.prototype,"data",void 0);_.L([_.Q(_.u4.YtRendererstamperBehavior),_.p("design:type",Object)],UF.prototype,"ytRendererstamperBehavior",void 0);_.L([_.Q(_.Hc.YtActionHandlerBehavior),_.p("design:type",Object)],UF.prototype,"ytActionHandlerBehavior",void 0);_.L([_.dz({disableElementRegistration:!0,is:"yt-live-chat-item-display-list-renderer",noInjection:!0})],UF);
_.D(UF,"yt-live-chat-item-display-list-renderer",function(){if(aBX===void 0){var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-live-chat-item-display-list-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.yt_live_chat_item_display_list_renderer.yt.live.chat.item.display.list.renderer.css.js--\x3e<div id="items" class="style-scope yt-live-chat-item-display-list-renderer"></div>');
a.content.insertBefore(_.w().content.cloneNode(!0),a.content.firstChild);var z=a.content,I=z.insertBefore;ejO===void 0&&(ejO=document.createElement("template"));var J=ejO;I.call(z,J.content.cloneNode(!0),a.content.firstChild);aBX=a}a=aBX;return a},{mode:_.K("live_chat_enable_sink_wrapper")?2:0});var hNl;var V9o,QIX=function(){if(V9o!==void 0)return V9o;var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-live-chat-item-display-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.yt_live_chat_item_display_renderer.yt.live.chat.item.display.renderer.css.js--\x3e<div id="content" class="style-scope yt-live-chat-item-display-renderer"></div>\n');
a.content.insertBefore(_.w().content.cloneNode(!0),a.content.firstChild);var z=a.content,I=z.insertBefore;hNl===void 0&&(hNl=document.createElement("template"));var J=hNl;I.call(z,J.content.cloneNode(!0),a.content.firstChild);return V9o=a};var De=function(){var a=_.G.apply(this,arguments)||this;a.isHeader=!1;return a};
_.b(De,_.G);De.prototype.configureRendererStamper=function(){return{"data.item":{id:"content",mapping:{liveChatPaidMessageRenderer:{component:"yt-live-chat-paid-message-renderer",params:{noPadding:"[[isHeader]]"}}}}}};
_.eH.Object.defineProperties(De,{template:{configurable:!0,enumerable:!0,get:function(){return QIX()}}});
_.L([_.Q(_.u4.YtRendererstamperBehavior),_.p("design:type",Object)],De.prototype,"ytRendererstamperBehavior",void 0);_.L([_.x(),_.p("design:type",Object)],De.prototype,"data",void 0);_.L([_.x({reflectToAttribute:!0}),_.p("design:type",Object)],De.prototype,"isHeader",void 0);_.L([_.dz({is:"yt-live-chat-item-display-renderer",disableElementRegistration:!0,noInjection:!0})],De);_.D(De,"yt-live-chat-item-display-renderer",function(){return QIX()},{mode:_.K("live_chat_enable_sink_wrapper")?2:0});var SZO,iPX,Xz1,$tv;
SZO={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}};iPX={home:"eohps",search:"eosps",watch:"eowps"};_.xtv=["watch","search","home"];
_.RW=function(){this.JSC$14193_isInitialized_=!1;this.isInitialPass_=!0;this.isSeenDuringInitialPass_={};this.JSC$14193_queue_=[];this.pendingPages_=[];this.pagePreparerJobId_=this.fragmentJobId_=0;this.DEFAULT_DELAY_=_.Xw("PRECONSTRUCTION_DELAY",0);this.signals_=_.yT();this.targetPage_=""};
_.RW.prototype.init=function(a,z){a=a===void 0?"":a;z=z===void 0?null:z;if(this.JSC$14193_isInitialized_)this.abort();else if(this.JSC$14193_isInitialized_=!0,a&&_.v4w(this,a),z){var I=_.k3(this.signals_,"pcl")?0:10,J=function(){for(var r=0,P;P=_.xtv[r++];)P!=a&&P!=z&&this.pendingPages_.push(P);_.GTX(this)}.bind(this);
this.signals_.parkOrScheduleJob(J,I,"pcl")}};
_.RW.prototype.abort=function(){this.fragmentJobId_&&(_.GW.cancelJob(this.fragmentJobId_),this.fragmentJobId_=0);$tv(this)};
_.v4w=function(a,z){a.JSC$14193_isInitialized_&&!a.targetPage_&&(a.targetPage_=z,Xz1(a,z),a.isInitialPass_=!1,Xz1(a,z),a.signals_.processSignal(iPX[a.targetPage_]),$tv(a),_.GTX(a))};
_.GTX=function(a){a.pendingPages_.length&&!a.pagePreparerJobId_&&(a.pagePreparerJobId_=_.b9(_.GW,function(){this.pagePreparerJobId_=0;this.pendingPages_.length&&!this.targetPage_&&_.v4w(this,this.pendingPages_.shift())}.bind(a),a.DEFAULT_DELAY_))};
Xz1=function(a,z){if(z=SZO[z])for(var I in z){var J=!1,r=I;I.charAt(0)=="~"&&(J=!0,r=I.substring(1));var P=z[I];P=typeof P=="object"?P:{count:P};z[I]=P;P.componentName=r;P.count>0&&(a.isInitialPass_?J||a.isSeenDuringInitialPass_[r]||(a.JSC$14193_queue_.push({componentName:r,count:1,signals:P.signals}),a.isSeenDuringInitialPass_[r]=!0,P.count--):a.JSC$14193_queue_.push(P))}};
$tv=function(a){a.JSC$14193_queue_.length=0;a.targetPage_="";a.isInitialPass_=!0;a.signals_.processSignal("eop")};
_.RW.getInstance=function(){return _.ji(_.RW)};var T9O=function(){this.signals=_.yT();this.init()};
T9O.prototype.startPreconstruction=function(){_.RW.getInstance().init(_.TZ("IS_HOMEPAGE_COLD")?"home":null,"n/a")};
T9O.prototype.init=function(){dtj(this);window.Polymer&&Umw&&Zd$();this.signals.parkOrScheduleJob(this.startPreconstruction,10,"eor");a:{var a=_.IE.ytcsi;if(a&&a.gt&&(a=a.gt())&&a.tick&&(a.tick.aft>0||a.tick.pbs>0)&&(_.TZ("IS_HOMEPAGE_COLD")||_.TZ("IS_RESULTS_PAGE_COLD")||_.TZ("IS_WATCH_PAGE_COLD"))){WMe(this);break a}giG(ezm,this.onNotifications,this)}};
var dtj=function(a){var z=function(){a.signals.processSignal("dl")};
document.readyState==="complete"?(_.RL(Error("sh"),"WARNING"),z()):_.plO(window,"load",z)};
T9O.prototype.onNotifications=function(a){a.timer||(_.TZ("IS_HOMEPAGE_COLD")||_.TZ("IS_RESULTS_PAGE_COLD")||_.TZ("IS_WATCH_PAGE_COLD"))&&WMe(this)};
var WMe=function(a){a.signals.parkOrScheduleJob(function(){a.signals.processSignal("eocs")},10,"eor")};
new T9O;var LV,o4X=function(){return _.nM.apply(this,arguments)||this};
_.b(o4X,_.nM);_.Z=o4X.prototype;_.Z.enableActiveViewMeasurement=function(a){if(this.isActiveViewEnabled(a)){var z=this.getUrlPrefixesFromCommand(a.viewableCommands);a=this.getUrlPrefixesFromCommand(a.endOfSessionCommands);if(!LV){var I=_.Ib("custom_active_view_tos_timeout_ms");LV=I>0&&I!==36E5?new pNG(this.getVersion(),I):new pNG(this.getVersion())}mX3(LV,this.hostElement);ybm(LV,this.hostElement,z,a)}};
_.Z.stopActiveViewMeasurement=function(){LV&&mX3(LV,this.hostElement)};
_.Z.isActiveViewEnabled=function(a){return!!a&&(this.hasAtLeastOneUrl(a.viewableCommands)||this.hasAtLeastOneUrl(a.endOfSessionCommands))};
_.Z.hasAtLeastOneUrl=function(a){return!!a&&a.length>0&&a[0].loggingUrls!=null&&a[0].loggingUrls.length>0};
_.Z.getVersion=function(){var a=_.Xw("INNERTUBE_CONTEXT_CLIENT_VERSION","").match(/^\d+\.(\d{8})/);return(a==null?void 0:a.length)===2?a[1]:null};
_.Z.getUrlPrefixesFromCommand=function(a){if(!a)return[];var z=[];a=_.C(a);for(var I=a.next();!I.done;I=a.next())if(I=I.value,I.loggingUrls){I=_.C(I.loggingUrls);for(var J=I.next();!J.done;J=I.next())J=J.value,J.baseUrl&&z.push(J.baseUrl)}return z};
_.L([_.KM()],o4X);var lf=[o4X.prototype];var Utv=function(){return _.nM.apply(this,arguments)||this};
_.b(Utv,_.nM);_.eH.Object.defineProperties(Utv.prototype,{store:{configurable:!0,enumerable:!0,get:function(){return _.K("enable_entity_store_from_dependency_injection")?_.M3():_.qo()}}});
_.L([_.KM()],Utv);_.pV=[U4.prototype,Utv.prototype];var Dtw=["ytd-rich-shelf-renderer"],wI=function(){var a=_.nM.apply(this,arguments)||this;a._noAccessors=!0;a.DISMISSED_CONTENT_KEYSPACE="DISMISSED_CONTENT_KEYSPACE:";a.followUpDialogPromise=null;a.followUpDialogPromiseResolve=null;a.followUpDialogPromiseReject=null;return a};
_.b(wI,_.nM);_.Z=wI.prototype;_.Z.dismissibleItemIsDismissedChanged_=function(a){_.K("kevlar_fluid_dismiss")&&(a?_.PA(this.hostElement,"yt-dismissible-item-dismissed"):_.PA(this.hostElement,"yt-dismissible-item-undismissed"))};
_.Z.dismissibleItemDataChanged_=function(){this.dismissedContentId=void 0;this.dismissibleItemReset_()};
_.Z.dismissibleItemReset_=function(){var a=this;this.isDismissed&&(this.isHideEnclosingAction=this.isDismissed=!1);this.dismissedRenderer&&(this.dismissedRenderer=void 0);this.followUpDialogPromiseReject&&(this.followUpDialogPromise.thenCatch(function(){}),this.followUpDialogPromiseReject());
this.followUpDialogPromise=new _.Ba(function(z,I){a.followUpDialogPromiseResolve=z;a.followUpDialogPromiseReject=I});
_.PA(this.hostElement,"yt-enable-lockup-interaction")};
_.Z.dismissibleItemOnYtServiceRequestSent_=function(a,z){z.actions&&this.dismissibleItemProcessActions(z.actions,a)};
_.Z.dismissibleItemOnRequestSent=function(a){if(_.K("web_button_rework"))for(var z=_.C(a.detail),I=z.next();!I.done;I=z.next()){var J=void 0;(I=(J=_.H(I.value,_.ge))==null?void 0:J.actions)&&this.dismissibleItemProcessActions(I,a)}};
_.Z.dismissibleItemOnCommandSent=function(a,z){z&&this.dismissibleItemProcessActions(z,a)};
_.Z.setAndGetDismissedContentId=function(a){return this.dismissedContentId=this.DISMISSED_CONTENT_KEYSPACE+a};
_.Z.replayDismissAction=function(a){this.dismissibleItemProcessActions([a])};
_.Z.dismissibleItemProcessActions=function(a,z){for(var I=0;I<a.length;I++){var J=a[I],r=void 0;((r=_.H(J,_.E_))==null?0:r.commands)&&this.dismissibleItemProcessActions(_.H(J,_.E_).commands,z);if(_.H(J,_.SG)){if(r=_.H(J,_.SG),!r.replaceParentSection||Dtw.includes(this.hostElement.nodeName.toLowerCase()))r.groupDismissal&&RN3(this,r.groupDismissal,!0),this.dismissibleItemHandleReplaceEnclosingAction_(r),this.dismissedContentId&&this.ytdReduxBehavior.dispatch(_.Q0("commandEntity",this.dismissedContentId,
{key:this.dismissedContentId,command:J})),J=void 0,(J=z)==null||J.stopPropagation()}else if(_.H(J,ixf))this.dismissibleItemHandleHideEnclosingAction_(),J=void 0,(J=z)==null||J.stopPropagation();else if(_.H(J,Ysv))J=_.H(J,Ysv),r=void 0,((r=J)==null?0:r.targetGroupId)&&RN3(this,{targetGroupId:J.targetGroupId},!1),this.dismissibleItemHandleUndoFeedbackAction_(),this.dismissedContentId&&this.ytdReduxBehavior.dispatch(_.Q0("commandEntity",this.dismissedContentId,{key:this.dismissedContentId,command:void 0})),
J=void 0,(J=z)==null||J.stopPropagation();else if(_.H(J,_.ge))(J=_.H(J,_.ge).actions)&&_.tR(this.hostElement,J,this.hostElement),J=void 0,(J=z)==null||J.stopPropagation();else{var P=r=void 0;((r=_.H(J,_.DR))==null?void 0:r.signal)!=="TELL_US_WHY"||((P=_.H(J,_.DR))==null?0:P.targetId)&&_.K("web_enable_feedback_endpoint_resolver_batch_2")||(this.dismissibleItemHandleTellUsWhySignalAction_(),J=void 0,(J=z)==null||J.stopPropagation())}}};
_.Z.dismissibleItemOnYtServiceRequestCompleted_=function(a,z){var I=this.get("feedbackResponses.0.followUpDialog",z.data);I?this.followUpDialogPromiseResolve(I):z.actions&&!this.dismissedRenderer&&this.dismissibleItemProcessActions(z.actions,a)};
_.Z.dismissibleItemHandleReplaceEnclosingAction_=function(a){this.dismissedRenderer=a.item;this.isDismissed=!0;var z=null;(z=_.PK(this.hostElement).querySelector("#dismissed"))&&_.Yv(this,function(){_.MV(z)});
_.PA(this.hostElement,"yt-disable-lockup-interaction",this.dismissedRenderer)};
_.Z.dismissibleItemHandleHideEnclosingAction_=function(){this.isHideEnclosingAction=this.isDismissed=!0};
_.Z.dismissibleItemHandleUndoFeedbackAction_=function(){_.PA(this.hostElement,"yt-dismissible-item-undo-feedback");this.dismissibleItemReset_()};
_.Z.dismissibleItemHandleTellUsWhySignalAction_=function(){var a=this;this.followUpDialogPromise.then(function(z){a.ytdOpenPopupBehavior.openPopup({openPopupAction:{popupType:"DIALOG",popup:z}})})};
wI.prototype.dismissibleItemOnYtServiceRequestCompleted_=wI.prototype.dismissibleItemOnYtServiceRequestCompleted_;wI.prototype.dismissibleItemOnCommandSent=wI.prototype.dismissibleItemOnCommandSent;wI.prototype.dismissibleItemOnRequestSent=wI.prototype.dismissibleItemOnRequestSent;wI.prototype.dismissibleItemOnYtServiceRequestSent_=wI.prototype.dismissibleItemOnYtServiceRequestSent_;wI.prototype.dismissibleItemDataChanged_=wI.prototype.dismissibleItemDataChanged_;
wI.prototype.dismissibleItemIsDismissedChanged_=wI.prototype.dismissibleItemIsDismissedChanged_;_.L([_.Q(_.rI),_.p("design:type",Object)],wI.prototype,"ytdOpenPopupBehavior",void 0);_.L([_.Q(_.pV),_.p("design:type",Object)],wI.prototype,"ytdReduxBehavior",void 0);_.L([_.x({reflectToAttribute:!0}),_.p("design:type",Boolean)],wI.prototype,"isDismissed",void 0);_.L([_.x(),_.p("design:type",Object)],wI.prototype,"dismissedRenderer",void 0);
_.L([_.O8("isDismissed"),_.p("design:type",Function),_.p("design:paramtypes",[Boolean]),_.p("design:returntype")],wI.prototype,"dismissibleItemIsDismissedChanged_",null);_.L([_.O8("data"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],wI.prototype,"dismissibleItemDataChanged_",null);
_.L([_.gz("yt-service-request-sent"),_.p("design:type",Function),_.p("design:paramtypes",[CustomEvent,_.lJ]),_.p("design:returntype")],wI.prototype,"dismissibleItemOnYtServiceRequestSent_",null);_.L([_.gz("yt-service-request-sent-button-renderer"),_.p("design:type",Function),_.p("design:paramtypes",[CustomEvent]),_.p("design:returntype")],wI.prototype,"dismissibleItemOnRequestSent",null);
_.L([_.gz("yt-dismissible-item-action"),_.p("design:type",Function),_.p("design:paramtypes",[CustomEvent,Array]),_.p("design:returntype")],wI.prototype,"dismissibleItemOnCommandSent",null);_.L([_.gz("yt-service-request-completed"),_.p("design:type",Function),_.p("design:paramtypes",[CustomEvent,_.Yq]),_.p("design:returntype")],wI.prototype,"dismissibleItemOnYtServiceRequestCompleted_",null);_.L([_.KM()],wI);_.mD=[_.rI,_.pV,wI.prototype];var yF=function(){var a=_.nM.apply(this,arguments)||this;a.disableGridStateAware=!1;a.gridStateActionMap={"ytd-update-grid-state-action":"handleUpdateGridStateAction"};a.currentGridClass="";return a};
_.b(yF,_.nM);yF.prototype.attached=function(){this.ytActionHandlerBehavior.registerActionMap(this.gridStateActionMap);_.Yv(this,this.handleUpdateGridStateAction);if(!this.disableGridStateAware){var a=this.gridStateAwareGetElement();_.CM(a,"grid",!0)}};
yF.prototype.detached=function(){this.ytActionHandlerBehavior.unregisterActionMap(this.gridStateActionMap)};
yF.prototype.gridStateAwareGetElement=function(){return this.gridStateAwareSizingElementSelector?_.PK(this.hostElement).querySelector(this.gridStateAwareSizingElementSelector):this.hostElement};
yF.prototype.handleUpdateGridStateAction=function(){if(this.disableGridStateAware)var a="grid-disabled";else{a=_.QMI.getInstance();var z=this.get("pageSubtype");a=z&&bAw.includes(z)?"grid-disabled":a.currentSnapState_?a.currentSnapState_.className:null}(z=this.gridStateAwareGetElement())&&a!==this.currentGridClass&&(a&&_.CM(z,a,!0),this.currentGridClass&&_.CM(z,this.currentGridClass,!1),this.currentGridClass=a)};
_.L([_.Q(_.Hc.YtActionHandlerBehavior),_.p("design:type",Object)],yF.prototype,"ytActionHandlerBehavior",void 0);_.L([_.x(),_.p("design:type",String)],yF.prototype,"gridStateAwareSizingElementSelector",void 0);_.L([_.x({reflectToAttribute:!0}),_.p("design:type",Object)],yF.prototype,"disableGridStateAware",void 0);_.L([_.KM()],yF);_.kI=[yF.prototype,_.Hc.YtActionHandlerBehavior];_.M5=new _.I4("GUIDE_TOKEN");var YI;_.cZ={};YI=function(){var a=_.nM.apply(this,arguments)||this;a.guideStateActionMap={"ytd-update-guide-state-action":"handleGuideStateAction","ytd-update-mini-guide-state-action":"handleMiniGuideStateAction","ytd-update-guide-opened-action":"handleGuideOpenedAction","ytd-update-active-endpoint-action":"handleActiveEndpointAction"};return a};
_.b(YI,_.nM);_.Z=YI.prototype;_.Z.onActiveEndpointChange=function(){this.hostElement.dispatchEvent(new CustomEvent("active-endpoint-changed",{detail:{value:this.activeEndpoint,queueProperty:!0}}))};
_.Z.attached=function(){this.ytActionHandlerBehavior.registerActionMap(this.guideStateActionMap);var a=_.ab().resolve(_.eL(_.M5));a&&(this.guidePersistentAndVisible=a.getGuidePersistentAndVisible(),this.activeEndpoint=a.getActiveEndpoint(),this.guideOpened=a.getGuideOpened(),this.miniGuideVisible=a.getMiniGuideVisible())};
_.Z.detached=function(){this.ytActionHandlerBehavior.unregisterActionMap(this.guideStateActionMap)};
_.Z.handleGuideStateAction=function(a){this.guidePersistentAndVisible=a};
_.Z.handleMiniGuideStateAction=function(a){this.miniGuideVisible=a};
_.Z.handleGuideOpenedAction=function(a){this.guideOpened=a};
_.Z.handleActiveEndpointAction=function(a){this.activeEndpoint=a};
YI.prototype.onActiveEndpointChange=YI.prototype.onActiveEndpointChange;_.L([_.Q(_.Hc.YtActionHandlerBehavior),_.p("design:type",Object)],YI.prototype,"ytActionHandlerBehavior",void 0);_.L([_.x({reflectToAttribute:!0}),_.p("design:type",Boolean)],YI.prototype,"guidePersistentAndVisible",void 0);_.L([_.x({reflectToAttribute:!0}),_.p("design:type",Boolean)],YI.prototype,"miniGuideVisible",void 0);_.L([_.x(),_.p("design:type",Object)],YI.prototype,"activeEndpoint",void 0);
_.L([_.O8("activeEndpoint"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],YI.prototype,"onActiveEndpointChange",null);_.L([_.x(),_.p("design:type",Boolean)],YI.prototype,"guideOpened",void 0);_.L([_.KM()],YI);_.cZ.YtdGuideStateAwareBehavior=[];_.cZ.YtdGuideStateAwareBehavior.push(YI.prototype,_.Hc.YtActionHandlerBehavior);var RNJ=["ytd-compact-video-renderer","ytd-playlist-video-renderer","ytd-compact-movie-renderer","ytd-playlist-panel-video-renderer"],q5=function(){var a=_.nM.apply(this,arguments)||this;a.hoverJobId=0;a.JSC$14224_touched=!1;return a};
_.b(q5,_.nM);_.Z=q5.prototype;_.Z.created=function(){this.useExpandableTooltip=!RNJ.includes(this.is)};
_.Z.attached=function(){this.hostElement.hasAttribute("lockup")||this.hostElement.setAttribute("lockup","true")};
_.Z.detached=function(){this.useExpandableTooltip=!1};
_.Z.lockupOnDown=function(a){this.interactionElement&&!_.qK(_.ch(a),this.hostElement,["BUTTON".toString()])&&this.interactionElement.triggerDown()};
_.Z.lockupOnUp=function(a){this.interactionElement&&!_.qK(_.ch(a),this.hostElement,["BUTTON".toString()])&&this.interactionElement.triggerUp()};
_.Z.onTouchStart=function(){this.JSC$14224_touched=!0};
_.Z.lockupOnMouseEnter=function(){var a=this,z=_.Ib("kevlar_lockup_hover_delay",-1);this.JSC$14224_touched&&z>=0?(_.GW.cancelJob(this.hoverJobId),this.hoverJobId=_.GW.addJob(function(){a.lockupIsHovered=!0},8,z),this.JSC$14224_touched=!1):this.lockupIsHovered=!0};
_.Z.lockupOnMouseLeave=function(){this.hoverJobId&&(_.GW.cancelJob(this.hoverJobId),this.hoverJobId=0);this.lockupIsHovered=!1};
_.Z.lockupOnPopupClosed=function(a,z){var I;((I=z.popupRenderer)==null?void 0:I.is)==="ytd-menu-popup-renderer"&&(a=z.popupRenderer.veData,z=_.TX(),a&&z&&_.m8(z,[a]))};
_.Z.lockupOnLockupRequested=function(a){var z=a.detail.videoIds[0],I;a.detail&&z===((I=this.data)==null?void 0:I.videoId)&&(a.detail.returnValue=[this.data])};
_.Z.lockupOnYtServiceRequestSent=function(a,z){if(a=z.actions)for(var I=0;I<a.length;I++){var J=a[I];if(J.action==="ACTION_REMOVE_VIDEO_BY_VIDEO_ID"&&z.ajaxPromise){var r=void 0,P=(r=_.H(z.endpoint,_.D5))==null?void 0:r.playlistId;r=void 0;J=(r=J.removedVideoId)!=null?r:"";Mje(_.cS(),J,P)}else J.action==="ACTION_REMOVE_VIDEO"&&z.ajaxPromise&&(P=void 0,J=(P=J.setVideoId)!=null?P:"",_.c0J(_.cS(),J))}};
_.Z.lockupOnLockupDisabled=function(){this.interactionElement&&(this.interactionElement.disabled=!0)};
_.Z.lockupOnLockupEnabled=function(){if(!this.$){var a=_.ab().resolve(_.aK).getCurrentPage(),z=this.getParentRenderer?this.getParentRenderer():void 0;_.Xd(new _.Fn("component not ready",this.is,this.isAttached,a==null?void 0:a.is,z==null?void 0:z.is))}this.interactionElement&&(this.interactionElement.disabled=!1)};
q5.prototype.lockupOnLockupEnabled=q5.prototype.lockupOnLockupEnabled;q5.prototype.lockupOnLockupDisabled=q5.prototype.lockupOnLockupDisabled;q5.prototype.lockupOnYtServiceRequestSent=q5.prototype.lockupOnYtServiceRequestSent;q5.prototype.lockupOnLockupRequested=q5.prototype.lockupOnLockupRequested;q5.prototype.lockupOnPopupClosed=q5.prototype.lockupOnPopupClosed;q5.prototype.lockupOnMouseLeave=q5.prototype.lockupOnMouseLeave;q5.prototype.lockupOnMouseEnter=q5.prototype.lockupOnMouseEnter;
q5.prototype.onTouchStart=q5.prototype.onTouchStart;q5.prototype.lockupOnUp=q5.prototype.lockupOnUp;q5.prototype.lockupOnDown=q5.prototype.lockupOnDown;_.L([_.x(),_.p("design:type",Object)],q5.prototype,"data",void 0);_.L([_.x(),_.p("design:type",Boolean)],q5.prototype,"lockupIsHovered",void 0);_.L([_.x(),_.p("design:type",Boolean)],q5.prototype,"lockupTouchTriggered",void 0);_.L([_.x(),_.p("design:type",Boolean)],q5.prototype,"useExpandableTooltip",void 0);
_.L([_.A3("#interaction"),_.p("design:type",Object)],q5.prototype,"interactionElement",void 0);_.L([_.gz("down"),_.p("design:type",Function),_.p("design:paramtypes",[CustomEvent]),_.p("design:returntype")],q5.prototype,"lockupOnDown",null);_.L([_.gz("up"),_.p("design:type",Function),_.p("design:paramtypes",[CustomEvent]),_.p("design:returntype")],q5.prototype,"lockupOnUp",null);
_.L([_.gz("touchstart"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],q5.prototype,"onTouchStart",null);_.L([_.gz("mouseenter"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],q5.prototype,"lockupOnMouseEnter",null);_.L([_.gz("mouseleave"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],q5.prototype,"lockupOnMouseLeave",null);
_.L([_.gz("yt-popup-closed"),_.p("design:type",Function),_.p("design:paramtypes",[CustomEvent,Object]),_.p("design:returntype")],q5.prototype,"lockupOnPopupClosed",null);_.L([_.gz("yt-lockup-requested"),_.p("design:type",Function),_.p("design:paramtypes",[CustomEvent]),_.p("design:returntype")],q5.prototype,"lockupOnLockupRequested",null);
_.L([_.gz("yt-service-request-sent"),_.p("design:type",Function),_.p("design:paramtypes",[CustomEvent,_.lJ]),_.p("design:returntype")],q5.prototype,"lockupOnYtServiceRequestSent",null);_.L([_.gz("yt-disable-lockup-interaction"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],q5.prototype,"lockupOnLockupDisabled",null);
_.L([_.gz("yt-enable-lockup-interaction"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],q5.prototype,"lockupOnLockupEnabled",null);_.L([_.KM()],q5);_.eB=[q5.prototype];_.LMO={YtdReduxBehavior:[]};_.LMO.YtdReduxBehavior.push.apply(_.LMO.YtdReduxBehavior,_.pV);var ap=function(){var a=_.nM.apply(this,arguments)||this;a._noAccessors=!0;a.disableNowPlaying=!1;a.disableTooltips=!1;a.useHoveredProperty=!1;a.hovered=!1;a.isThumbnailHovered_=!1;a.addBackground=_.K("kevlar_thumbnail_bg");a.nowPlaying=!1;a.disableRounding=!1;a.size="small";return a};
_.b(ap,_.nM);_.Z=ap.prototype;_.Z.computeThumbnailOverlaySidePanelWidth_=function(a,z){return a-z};
_.Z.computeSize=function(a,z){if(!this.disableRounding){if(!a&&!z)return"small";a=Math.max(a||0,z||0);return a>=256?"large":a>=96?"medium":"small"}};
_.Z.computeFinalHoveredState_=function(a,z,I){return this.nowPlaying?!1:_.K("kevlar_thumbnail_fluid")&&a?z:I};
_.Z.computeHoverOverlays_=function(a,z){return a&&z?z:void 0};
_.Z.onMouseEnter_=function(){this.isThumbnailHovered_=!0};
_.Z.onMouseLeave_=function(){this.isThumbnailHovered_=!1};
_.Z.checkMiniplayer_=function(){var a;if(((a=this.data)==null?0:a.playlistSetVideoId)&&_.K("web_enable_playlist_video_lockup_equalizer"))this.nowPlaying=!!this.data.selected;else{a=_.hq();var z=a.currentEndpoint;!this.disableNowPlaying&&z&&_.H(z,_.MZ)&&this.data?(z=_.H(z,_.MZ),this.nowPlaying=this.data.playlistId?z.playlistId===this.data.playlistId:z.videoId===this.data.videoId,this.isVideoPlaying=a==null?void 0:a.isVideoPlaying):this.nowPlaying=!1}};
ap.prototype.checkMiniplayer_=ap.prototype.checkMiniplayer_;ap.prototype.onMouseLeave_=ap.prototype.onMouseLeave_;ap.prototype.onMouseEnter_=ap.prototype.onMouseEnter_;ap.prototype.computeHoverOverlays_=ap.prototype.computeHoverOverlays_;ap.prototype.computeFinalHoveredState_=ap.prototype.computeFinalHoveredState_;ap.prototype.computeSize=ap.prototype.computeSize;ap.prototype.computeThumbnailOverlaySidePanelWidth_=ap.prototype.computeThumbnailOverlaySidePanelWidth_;
_.L([_.Q(_.pV),_.p("design:type",Object)],ap.prototype,"ytdReduxBehavior",void 0);_.L([_.x(),_.p("design:type",Object)],ap.prototype,"data",void 0);_.L([_.x(),_.p("design:type",Number)],ap.prototype,"height",void 0);_.L([_.x(),_.p("design:type",Boolean)],ap.prototype,"bottomSidePanel",void 0);_.L([_.x(),_.p("design:type",Number)],ap.prototype,"width",void 0);_.L([_.x(),_.p("design:type",Object)],ap.prototype,"disableNowPlaying",void 0);
_.L([_.x({selector:_.Tg}),_.p("design:type",Boolean)],ap.prototype,"miniplayerIsActive",void 0);_.L([_.x(),_.p("design:type",Object)],ap.prototype,"disableTooltips",void 0);_.L([_.x(),_.p("design:type",Object)],ap.prototype,"useHoveredProperty",void 0);_.L([_.x(),_.p("design:type",Object)],ap.prototype,"hovered",void 0);_.L([_.x(),_.p("design:type",Object)],ap.prototype,"isThumbnailHovered_",void 0);
_.L([_.x({computed:"computeFinalHoveredState_(useHoveredProperty, hovered, isThumbnailHovered_)"}),_.p("design:type",Boolean)],ap.prototype,"finalHoveredState_",void 0);_.L([_.x({computed:"computeThumbnailOverlaySidePanelWidth_(width, height)"}),_.p("design:type",Number)],ap.prototype,"thumbnailOverlaySidePanelWidth_",void 0);_.L([_.x({reflectToAttribute:!0}),_.p("design:type",Object)],ap.prototype,"addBackground",void 0);
_.L([_.x({computed:"computeHoverOverlays_(finalHoveredState_, data.thumbnailOverlays)"}),_.p("design:type",Object)],ap.prototype,"hoverOverlays_",void 0);_.L([_.x({reflectToAttribute:!0}),_.p("design:type",Object)],ap.prototype,"nowPlaying",void 0);_.L([_.x(),_.p("design:type",Boolean)],ap.prototype,"isVideoPlaying",void 0);_.L([_.x(),_.p("design:type",Object)],ap.prototype,"disableRounding",void 0);
_.L([_.x({reflectToAttribute:!0,computed:"computeSize(width, height, disableRounding)"}),_.p("design:type",Object)],ap.prototype,"size",void 0);_.L([_.gz("mouseenter"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],ap.prototype,"onMouseEnter_",null);_.L([_.gz("mouseleave"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],ap.prototype,"onMouseLeave_",null);
_.L([_.O8("data","disableNowPlaying","miniplayerIsActive"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],ap.prototype,"checkMiniplayer_",null);_.L([_.KM()],ap);var lBf=[ap.prototype];_.jz={YtPlayerListenerBehavior:{created:function(){this.playerListeners_=new Map},
getPlayerListenerKey_:function(a,z){return a+":"+_.yx(z)},
getPlayerListener_:function(a,z,I){a=this.getPlayerListenerKey_(a,z);z=this.playerListeners_.get(a);I&&this.playerListeners_.delete(a);return z},
savePlayerListener_:function(a,z){var I=z.bind(this);this.playerListeners_.set(this.getPlayerListenerKey_(a,z),I);return I},
listenToPlayerEvent:function(a,z,I){I=this.savePlayerListener_(z,I);a.addEventListener(z,I)},
listenToPlayerEvents:function(a,z){z.forEach(function(I,J){this.listenToPlayerEvent(a,J,I)}.bind(this))},
unlistenFromPlayerEvent:function(a,z,I){I=this.getPlayerListener_(z,I,!0);a.removeEventListener(z,I)},
unlistenFromPlayerEvents:function(a,z){z.forEach(function(I,J){this.unlistenFromPlayerEvent(a,J,I)}.bind(this))}}};
_.z4=function(){};_.pz1=new _.I4("PLAYER_API_TOKEN");var kT3=!1,qZG,ciM=!1,apG;var ri=function(a,z,I,J,r){_.FC.call(this);var P=this;this.playerId=z;this.webPlayerContextConfig=J;this.tU8=r;this.n7Q=!1;this.api={};this.c5t=this.jYE=null;this.cpg=new _.gM;this.m8={};this.wgI=this.sy7=this.elementId=this.iJC=this.config=null;this.cE7=!1;this.yn=this.l8g=null;this.vl7={};this.sM6=["onReady"];this.lastError=null;this.rv8=NaN;this.pGE={};this.cct=0;this.po=this.targetElement=a;_.t7(this,this.cpg);wzf(this);I?this.cct=setTimeout(function(){P.loadNewVideoConfig(I)},0):J&&(mtw(this),
yil(this))};
_.b(ri,_.FC);ri.prototype.getId=function(){return this.playerId};
ri.prototype.loadNewVideoConfig=function(a){if(!this.isDisposed()){this.cct&&(clearTimeout(this.cct),this.cct=0);var z=a||{};z instanceof JcJ||(z=new JcJ(z));this.config=z;this.setConfig(a);yil(this);this.isReady()&&kTJ(this)}};
var mtw=function(a){var z;a.webPlayerContextConfig?z=a.webPlayerContextConfig.rootElementId:z=a.config.attrs.id;a.elementId=z||a.elementId;a.elementId==="video-player"&&(a.elementId=a.playerId,a.webPlayerContextConfig?a.webPlayerContextConfig.rootElementId=a.playerId:a.config.attrs.id=a.playerId);var I;((I=a.po)==null?void 0:I.id)===a.elementId&&(a.elementId+="-player",a.webPlayerContextConfig?a.webPlayerContextConfig.rootElementId=a.elementId:a.config.attrs.id=a.elementId)};
ri.prototype.setConfig=function(a){this.iJC=a;this.config=M9J(a);mtw(this);if(!this.sy7){var z;this.sy7=ciI(this,((z=this.config.args)==null?void 0:z.jsapicallback)||"onYouTubePlayerReady")}this.config.args?this.config.args.jsapicallback=null:this.config.args={jsapicallback:null};var I;if((I=this.config)==null?0:I.attrs)a=this.config.attrs,(z=a.width)&&this.po&&(this.po.style.width=Ut(Number(z)||z,!0)),(a=a.height)&&this.po&&(this.po.style.height=Ut(Number(a)||a,!0))};
var kTJ=function(a){if(a.config&&a.config.loaded!==!0)if(a.config.loaded=!0,!a.config.args||a.config.args.autoplay!=="0"&&a.config.args.autoplay!==0&&a.config.args.autoplay!==!1){var z;a.api.loadVideoByPlayerVars((z=a.config.args)!=null?z:null)}else a.api.cueVideoByPlayerVars(a.config.args)},qZl=function(a){var z=!0,I=a.getPlayerElement();
I&&a.config&&(z=I.dataset.version===YZj(a));return z&&!!_.DH("yt.player.Application.create")},yil=function(a){if(!a.isDisposed()&&!a.cE7){var z=qZl(a);
if(z&&(a.getPlayerElement()?"html5":null)==="html5")a.wgI="html5",a.isReady()||eNl(a);else if(apw(a),a.wgI="html5",z&&a.yn&&a.targetElement)a.targetElement.appendChild(a.yn),eNl(a);else{a.config&&(a.config.loaded=!0);var I=!1;a.l8g=function(){I=!0;var J=jg1(a,"player_bootstrap_method")?_.DH("yt.player.Application.createAlternate")||_.DH("yt.player.Application.create"):_.DH("yt.player.Application.create");var r=a.config?M9J(a.config):void 0;J&&J(a.targetElement,r,a.webPlayerContextConfig,a.tU8);eNl(a)};
a.cE7=!0;z?a.l8g():(_.LL(YZj(a),a.l8g),(z=zU1(a))&&nV$(z||""),Ipw(a)&&!I&&_.qe("yt.player.Application.create",null))}}};
ri.prototype.getPlayerElement=function(){var a=_.JE(document,this.elementId);!a&&this.po&&this.po.querySelector&&(a=this.po.querySelector("#"+this.elementId));return a};
var eNl=function(a){if(!a.isDisposed()){var z=a.getPlayerElement(),I=!1;z&&z.getApiInterface&&z.getApiInterface()&&(I=!0);if(I){a.cE7=!1;if(!jg1(a,"html5_remove_not_servable_check_killswitch")){var J;if((z==null?0:z.isNotServable)&&a.config&&(z==null?0:z.isNotServable((J=a.config.args)==null?void 0:J.video_id)))return}Jsi(a)}else a.rv8=setTimeout(function(){eNl(a)},50)}},Jsi=function(a){wzf(a);
a.n7Q=!0;var z=a.getPlayerElement();if(z){a.jYE=rsO(a,z,"addEventListener");a.c5t=rsO(a,z,"removeEventListener");var I=z.getApiInterface();I=I.concat(z.getInternalApiInterface());for(var J=a.api,r=0;r<I.length;r++){var P=I[r];J[P]||(J[P]=rsO(a,z,P))}}for(var N in a.m8)a.m8.hasOwnProperty(N)&&a.jYE&&a.jYE(N,a.m8[N]);kTJ(a);a.sy7&&a.sy7(a.api);a.cpg.publish("onReady",a.api)},rsO=function(a,z,I){var J=z[I];
return function(){var r=_.dO.apply(0,arguments);try{return a.lastError=null,J.apply(z,r)}catch(P){if(I!=="sendAbandonmentPing")throw P.params=I,a.lastError=P,r=new _.Fn("PlayerProxy error in method call",{error:P,method:I,playerId:a.playerId}),r.level="WARNING",r;}}},wzf=function(a){a.n7Q=!1;
if(a.c5t)for(var z in a.m8)a.m8.hasOwnProperty(z)&&a.c5t(z,a.m8[z]);for(var I in a.pGE)a.pGE.hasOwnProperty(I)&&clearTimeout(Number(I));a.pGE={};a.jYE=null;a.c5t=null;z=a.api;for(var J in z)z.hasOwnProperty(J)&&(z[J]=null);z.addEventListener=function(r,P){a.addEventListener(r,P)};
z.removeEventListener=function(r,P){a.removeEventListener(r,P)};
z.destroy=function(){a.dispose()};
z.getLastError=function(){return a.getLastError()};
z.getPlayerType=function(){return a.getPlayerType()};
z.getCurrentVideoConfig=function(){return a.iJC};
z.loadNewVideoConfig=function(r){a.loadNewVideoConfig(r)};
z.isReady=function(){return a.isReady()}};
ri.prototype.isReady=function(){return this.n7Q};
ri.prototype.addEventListener=function(a,z){var I=this;this.isDisposed();var J=ciI(this,z);J&&(_.Um(this.sM6,a)||this.m8[a]||(z=Psv(this,a),this.jYE&&this.jYE(a,z)),this.cpg.subscribe(a,J),a==="onReady"&&this.isReady()&&setTimeout(function(){J(I.api)},0))};
ri.prototype.removeEventListener=function(a,z){this.isDisposed()||(z=ciI(this,z))&&this.cpg.unsubscribe(a,z)};
var ciI=function(a,z){var I=z;if(typeof z==="string"){if(a.vl7[z])return a.vl7[z];I=function(){var J=_.dO.apply(0,arguments),r=_.DH(z);if(r)try{r.apply(_.IE,J)}catch(P){throw J=new _.Fn("PlayerProxy error when executing callback",{error:P}),J.level="ERROR",J;}};
a.vl7[z]=I}return I?I:null},Psv=function(a,z){var I=function(J){var r=function(){a.isDisposed();
if(!a.isDisposed())try{a.cpg.publish(z,J!=null?J:void 0)}catch(u){var N=new _.Fn("PlayerProxy error when creating global callback",{error:u.message,event:z,playerId:a.playerId,data:J,originalStack:u.stack,componentStack:u.componentStack});N.level="WARNING";throw N;}};
if(jg1(a,"web_player_publish_events_immediately"))r();else{var P=setTimeout(function(){r();_.x8.remove(a.pGE,String(P))},0);
_.x8.add(a.pGE,String(P),!0)}};
return a.m8[z]=I};
ri.prototype.getPlayerType=function(){return this.wgI||(this.getPlayerElement()?"html5":null)};
ri.prototype.getLastError=function(){return this.lastError};
var apw=function(a){a.cancel();wzf(a);a.wgI=null;a.config&&(a.config.loaded=!1);var z=a.getPlayerElement();z&&(qZl(a)||!Ipw(a)?a.yn=z:(z&&z.destroy&&z.destroy(),a.yn=null));a.targetElement&&_.G2(a.targetElement)};
ri.prototype.cancel=function(){this.l8g&&_.kpO(YZj(this),this.l8g);clearTimeout(this.rv8);this.cE7=!1};
ri.prototype.disposeInternal=function(){apw(this);if(this.yn&&this.config&&this.yn.destroy)try{this.yn.destroy()}catch(z){var a=new _.Fn("PlayerProxy error during disposal",{error:z});a.level="ERROR";throw a;}this.vl7=null;for(a in this.m8)this.m8.hasOwnProperty(a)&&delete this.m8[a];this.iJC=this.config=this.api=null;delete this.targetElement;delete this.po;_.FC.prototype.disposeInternal.call(this)};
var Ipw=function(a){var z,I;a=(z=a.config)==null?void 0:(I=z.args)==null?void 0:I.fflags;return!!a&&a.indexOf("player_destroy_old_version=true")!==-1},YZj=function(a){return a.webPlayerContextConfig?a.webPlayerContextConfig.jsUrl:(a=a.config.assets)?a.js:""},zU1=function(a){return a.webPlayerContextConfig?a.webPlayerContextConfig.cssUrl:(a=a.config.assets)?a.css:""},jg1=function(a,z){if(a.webPlayerContextConfig)var I=a.webPlayerContextConfig.serializedExperimentFlags;
else{var J;if((J=a.config)==null?0:J.args)I=a.config.args.fflags}return(I||"").split("&").includes(z+"=true")},M9J=function(a){for(var z={},I=_.C(Object.keys(a)),J=I.next();!J.done;J=I.next()){J=J.value;
var r=a[J];z[J]=typeof r==="object"?_.x8.clone(r):r}return z};var rsm={},Jsx="player_uid_"+(Math.random()*1E9>>>0);var Ip=function(a,z,I,J,r,P){z=z===void 0?document.createElement("div"):z;this.webPlayerContextConfig=a;this.container=z;this.commandResolver=I;this.apiResolver=CsE();this.pageReadyOrDataAvailable=!1;this.pageReadyOrDataAvailableResolver=new _.EM;J||P?Zj1(this):Csw(this);this.pendingPlayerResponse=J;this.pendingWatchNextResponse=r;this.pendingPlayerVars=P;NHw(this)};
Ip.prototype.loadVideoWithPlayerResponse=function(a,z,I){this.loadVideo(a,z,I)};
Ip.prototype.loadVideoWithPlayerVars=function(a){return this.loadVideo(void 0,void 0,a)};
Ip.prototype.destroy=function(a){if(a=_.JE(document,a))a=Jsx+"_"+_.yx(a),(a=rsm[a])&&a.dispose()};
var ufv=function(a,z){var I;_.t(function(J){if(J.nextAddress==1)return a.pendingWatchNextResponse=z,a.synchronousApi?(I=a.synchronousApi,J.jumpTo(2)):J.yield(a.api,3);J.nextAddress!=2&&(I=J.yieldResult);if(!tOe(a,I))return J.return();a.pendingWatchNextResponse&&(I.updateVideoData({raw_watch_next_response:a.pendingWatchNextResponse}),a.pendingWatchNextResponse=void 0);_.nu(J)})},tOe=function(a,z){var I;
if(!(z==null?0:(I=z.isReady)==null?0:I.call(z))){var J;_.Xd(new _.Fn("playerApi is falsey",{synchronousApi:a.synchronousApi,apiResolved:a.apiResolver.resolved,playerApiUndefined:z===void 0,playerApiNull:z===null,playerApiReady:(z==null?void 0:(J=z.isReady)==null?void 0:J.call(z))===!0,playerApiMethods:z?Object.keys(z):[]}));return!1}return!0},EnG=function(a,z){if(typeof a[z]==="function")return a[z]()},BH1=function(a){var z=window,I,J=(I=z.ytplayer)==null?void 0:I.bootstrapPlayerContainer;
if((I=J==null?void 0:J.firstElementChild)&&_.pp(I,"html5-video-player")){var r,P,N=(r=z.ytplayer)==null?void 0:(P=r.bootstrapWebPlayerContextConfig)==null?void 0:P.contextId;r=a.webPlayerContextConfig.contextId;if(N&&N===r){J!==a.container&&(J=!1,EnG(I,"getPlayerState")===2&&(J=!0),a.container.appendChild(I),J||EnG(I,"playVideo"));var u;if((u=z.ytplayer)==null?0:u.bootstrapPlayerResponse)a.bootstrapPlayerResponse=z.ytplayer.bootstrapPlayerResponse}}},NHw=function(a){var z,I,J,r,P;
_.t(function(N){if(N.nextAddress==1)return a.pageReadyOrDataAvailable?N.jumpTo(2):N.yield(a.pageReadyOrDataAvailableResolver.promise,2);if(N.nextAddress!=4)return!_.K("kevlar_player_unified_player_loading")||M93()&&YZi()?N.jumpTo(4):N.yield(zU0(),4);BH1(a);if(a.pendingPlayerResponse||a.pendingPlayerVars)z=IpE(a.pendingPlayerResponse,a.pendingWatchNextResponse,a.pendingPlayerVars),a.pendingPlayerResponse&&a.pendingPlayerResponse===a.bootstrapPlayerResponse&&(z.loaded=!0),a.bootstrapPlayerResponse=
void 0;I=Zj0(a.container,z,a.webPlayerContextConfig);((J=z)==null?0:J.loaded)&&a.pendingWatchNextResponse?(ufv(a,a.pendingWatchNextResponse),a.pendingPlayerResponse=void 0,a.pendingPlayerVars=void 0):gne(a);r=function(u){I.removeEventListener("onReady",r);a.synchronousApi=u;a.apiResolver.resolve(u)};
I.addEventListener("onReady",r);a.commandResolver!==void 0&&(P=a.commandResolver,I.addEventListener("innertubeCommand",function(u){P(u)}));
_.nu(N)})};
Ip.prototype.loadVideo=function(a,z,I){var J=this,r,P,N,u,E,O,f,A,n;return _.t(function(F){if(F.nextAddress==1)return J.pendingPlayerResponse=a,J.pendingWatchNextResponse=z,J.pendingPlayerVars=I,Zj1(J),J.synchronousApi?(r=J.synchronousApi,F.jumpTo(2)):F.yield(J.api,3);F.nextAddress!=2&&(r=F.yieldResult);if(!tOe(J,r))return F.return(new Promise(function(){}));
N=new Promise(function(h){P=h});
u=function(){var h=r.getPlayerResponse();h&&(r.removeEventListener("onVideoDataChange",u),P(h))};
r.addEventListener("onVideoDataChange",u);if(J.pendingPlayerResponse||J.pendingPlayerVars)J.pendingPlayerResponse&&J.pendingPlayerResponse===J.bootstrapPlayerResponse?(P(J.pendingPlayerResponse),J.pendingWatchNextResponse&&ufv(J,J.pendingWatchNextResponse)):(E=IpE(J.pendingPlayerResponse,J.pendingWatchNextResponse,J.pendingPlayerVars),(n=(O=J.pendingPlayerResponse)==null?void 0:(f=O.playerConfig)==null?void 0:(A=f.playbackStartConfig)==null?void 0:A.startPaused)?r.cueVideoByPlayerVars(E.args):r.loadVideoByPlayerVars(E.args)),
gne(J),J.bootstrapPlayerResponse=void 0;return F.return(N)})};
var Csw=function(a){if(document.readyState==="complete"||document.readyState==="interactive")Zj1(a);else{var z=function(){document.removeEventListener("DOMContentLoaded",z);Zj1(a)};
document.addEventListener("DOMContentLoaded",z)}},Zj1=function(a){a.pageReadyOrDataAvailable=!0;
a.pageReadyOrDataAvailableResolver.resolve()},gne=function(a){a.pendingPlayerResponse=void 0;
a.pendingWatchNextResponse=void 0;a.pendingPlayerVars=void 0};
_.eH.Object.defineProperties(Ip.prototype,{api:{configurable:!0,enumerable:!0,get:function(){return this.apiResolver.promise}}});var JM=function(a){o4.call(this,a===void 0?"document_active":a);var z=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(I){z.transition("document_disposed",{event:I})});
window.addEventListener("beforeunload",function(I){z.transition("document_disposed_preventable",{event:I})});
window.addEventListener("unload",function(I){z.transition("document_disposed",{event:I});z.hasRun=new Map})};
_.b(JM,o4);
JM.prototype.runPreventableDispose=function(a,z){if(!this.hasRun.get("document_disposed_preventable")){a(z==null?void 0:z.event);var I,J;if((z==null?0:(I=z.event)==null?0:I.defaultPrevented)||(z==null?0:(J=z.event)==null?0:J.returnValue)){z.event.returnValue||(z.event.returnValue=!0);z.event.defaultPrevented||z.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")};
JM.prototype.runDispose=function(a,z){this.hasRun.get("document_disposed")?this.transition("document_active"):(a(z==null?void 0:z.event),this.hasRun.set("document_disposed",!0),this.transition("flush_logs"))};
JM.prototype.runFlush=function(a,z){a(z==null?void 0:z.event);this.transition("document_active")};
JM.prototype.runActive=function(){};var rP=function(a){o4.call(this,a===void 0?"document_visibility_unknown":a);var z=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(I){document.visibilityState==="visible"?z.transition("document_visible",{event:I}):z.transition("document_hidden",
{event:I})});
_.K("visibility_lifecycles_dynamic_backgrounding")&&(window.addEventListener("blur",function(I){z.transition("document_backgrounded",{event:I})}),window.addEventListener("focus",function(I){z.transition("document_foregrounded",{event:I})}))};
_.b(rP,o4);rP.prototype.runVisible=function(a,z){a(z==null?void 0:z.event);_.K("visibility_lifecycles_dynamic_backgrounding")&&this.transition("document_foregrounded")};
rP.prototype.runHidden=function(a,z){a(z==null?void 0:z.event);_.K("visibility_lifecycles_dynamic_backgrounding")&&this.transition("document_backgrounded")};
rP.prototype.runBackgrounded=function(a,z){a(z==null?void 0:z.event)};
rP.prototype.runForegrounded=function(a,z){a(z==null?void 0:z.event)};var Ps=function(){this.teardownLifecycle=new JM;this.visibilityLifecycle=new rP};
Ps.prototype.install=function(){var a=_.dO.apply(0,arguments),z=this;a.forEach(function(I){z.teardownLifecycle.install(I)});
a.forEach(function(I){z.visibilityLifecycle.install(I)})};var Zw=function(){Ps.call(this);var a={};this.install((a.document_disposed={callback:this.abortSlisAndFlush},a));_.K("combine_ve_grafts")&&(a={},this.install((a.document_disposed={callback:this.flushInteractionLoggingAttachVes},a)));a={};this.install((a.flush_logs={callback:this.logFinalPayload},a));_.K("web_log_cfg_cee_ks")||_.b9(_.GW,Ojo)};
_.b(Zw,Ps);var NHE=function(){Zw.loggingInstance||(Zw.loggingInstance=new Zw);return Zw.loggingInstance};
Zw.prototype.logFinalPayload=function(){if(_.K("web_fp_via_jspb")){var a=new BFl,z=_.TX();z&&_.KB(a,1,z);z=_.K("jspb_sparse_encoded_pivot")?new Ha([{}]):new Ha;_.Oa(z,380,g2i,a);oV7("finalPayload",z);_.K("web_fp_via_jspb_and_json")&&_.x0("finalPayload",{csn:_.TX()})}else _.x0("finalPayload",{csn:_.TX()})};
Zw.prototype.abortSlisAndFlush=function(){lsl(YF);qy!=null&&qy.flush()};
Zw.prototype.flushInteractionLoggingAttachVes=function(){COi(_.Kw())};
var Ojo=function(){var a=_.Xw("CLIENT_EXPERIMENT_EVENTS");if(a){var z=MM$();a=_.C(a);for(var I=a.next();!I.done;I=a.next())I=I.value,z(I)&&_.x0("genericClientExperimentEvent",{eventType:I});delete _.GZ.CLIENT_EXPERIMENT_EVENTS}};var fpo={};
fpo.YtPlayerBehavior=[_.jz.YtPlayerListenerBehavior,{properties:{watchNextData:{type:Object,observer:"watchNextDataChanged_"},context:{type:String},playerId:{type:String},disableTouchGestures:{type:Boolean}},listeners:{pinchout:"onPinchOut_",pinchin:"onPinchIn_",touchstart:"onTouchStart_"},created:function(){var a=this;this.player_=null;this.useUnifiedPlayer_()&&(this.mainAppPlayer_=void 0);this.playerResolver_=new _.EM;this.playerContainer_=this.initPlayerPromise_=null;this.preparePlayerJobId_=0;
this.isResetForNewPlayback_=!0;this.bootstrapPlayerResponse_=void 0;tOp(function(){a.maybeSendAbandonmentPing_()})},
attached:function(){this.disableTouchGestures||(_.d3(this,"pan-down"),_.K("kevlar_pinch_fullscreen")&&_.$o().registerTouchEvents(this,void 0,void 0,"pinchout","pinchin"))},
detached:function(){!this.disableTouchGestures&&_.K("kevlar_pinch_fullscreen")&&_.$o().unregisterTouchEvents(this,"pinchout","pinchin")},
createMainAppPlayer_:function(a,z,I){var J=this;Pn(this.useUnifiedPlayer_());if(this.mainAppPlayer_)Pn(!1,"MainAppPlayer already created.");else{var r=_.K("kevlar_player_container_query_killswitch")?this.$.container:_.PK(this.hostElement).querySelector("#container");this.mainAppPlayer_=new Ip(this.getWebPlayerContextConfig_(),r,function(P){return _.fw(P,J.hostElement)},a,z,I);
this.mainAppPlayer_.api.then(function(P){J.player_=P;J.context==="WEB_PLAYER_CONTEXT_CONFIG_ID_KEVLAR_WATCH"&&Z0O.resolve(P)})}},
loadVideoWithPlayerResponse:function(a,z){var I=this;if(this.useUnifiedPlayer_()){var J=this.watchNextData,r,P=(r=a.videoDetails)==null?void 0:r.videoId,N,u,E;(r=(N=this.watchNextData)==null?void 0:(u=N.currentVideoEndpoint)==null?void 0:(E=u.watchEndpoint)==null?void 0:E.videoId)&&P!=r&&(J=void 0,_.K("kevlar_unified_player_clear_watch_next_killswitch")&&(this.watchNextData=void 0));this.mainAppPlayer_?this.mainAppPlayer_.loadVideoWithPlayerResponse(a,J,z):this.createMainAppPlayer_(a,J,z);this.mainAppPlayer_.api.then(function(){_.PA(I.hostElement,
"yt-player-updated")})}else this.update(wz$(a,z))},
loadVideoWithPlayerVars:function(a){var z=this;this.useUnifiedPlayer_()?(_.K("kevlar_unified_player_clear_watch_next_killswitch")&&(this.watchNextData=void 0),this.mainAppPlayer_?this.mainAppPlayer_.loadVideoWithPlayerVars(a):this.createMainAppPlayer_(void 0,void 0,a),this.mainAppPlayer_.api.then(function(){_.PA(z.hostElement,"yt-player-updated")})):this.update({args:a})},
update:function(a){var z=this;if(this.useUnifiedPlayer_())Pn(!1,"Invalid method call in kevlar_unified_player.");else{if(this.hasWebPlayerContextConfig_()){this.updateSwfConfig_(a);var I=I4d(a.args);I&&this.get("currentVideoEndpoint.watchEndpoint.videoId",this.watchNextData)==I&&Object.assign(a.args,this.computeWatchNextPlayerVars_(this.watchNextData));this.isResetForNewPlayback_=!1;return this.acquireApi_(a).then(function(J){_.PA(z.hostElement,"yt-player-updated",_.K("kevlar_player_updated_obsolete_player_killswitch")?
J:void 0)})}_.$0(new _.Fn("Cannot initialize player for this context without a WebPlayerContextConfig.",this.context))}},
updatePlayerComponents:function(a){var z=this,I;return _.t(function(J){if(J.nextAddress==1)return J.yield(z.getPlayerPromise(),2);I=J.yieldResult;if(!I)throw Error("uh");a&&z.updatePlayerPlaylist_(a);_.nu(J)})},
acquireApi_:function(a){var z=this;if(this.useUnifiedPlayer_())Pn(!1,"Invalid method call in kevlar_unified_player.");else return _.GW.cancelJob(this.preparePlayerJobId_),this.playerContainer_?(Pn(this.initPlayerPromise_,"Missing initPlayerPromise_."),this.getPlayerPromise().then(function(I){z.shouldAutoplay_(a)?I.loadVideoByPlayerVars(a.args):I.cueVideoByPlayerVars(a.args)})):this.initPlayerPromise_=this.initPlayerContainer_(a),this.initPlayerPromise_},
initPlayerContainer_:function(a){var z=this;if(this.useUnifiedPlayer_())Pn(!1,"Invalid method call in kevlar_unified_player.");else return Pn(!this.initPlayerPromise_,"Player is already initialized."),this.initPlayerPromise_&&_.Xd(Error("vh")),Pn(!this.playerContainer_,"ytd-player should only be initialized once."),this.playerContainer_=_.K("kevlar_player_container_query_killswitch")?this.$.container:_.PK(this.hostElement).querySelector("#container"),zU0().then(function(){var I=z.initPlayer_(a);z.playerResolver_.resolve(I);
return I})},
onPlayerReady_:function(a,z){this.useUnifiedPlayer_()?Pn(!1,"Invalid method call in kevlar_unified_player."):(a.removeEventListener("onReady",this.onPlayerReadyEvent_),this.context==="WEB_PLAYER_CONTEXT_CONFIG_ID_KEVLAR_WATCH"&&Z0O.resolve(a),z(a))},
maybeCallApiMethodOnElement_:function(a,z){if(typeof a[z]==="function")return a[z]()},
maybeAdoptBootstrapPlayer_:function(){var a=window,z,I=(z=a.ytplayer)==null?void 0:z.bootstrapPlayerContainer;if((z=I==null?void 0:I.firstElementChild)&&z.classList.contains("html5-video-player")){var J,r,P=(J=a.ytplayer)==null?void 0:(r=J.bootstrapWebPlayerContextConfig)==null?void 0:r.contextId;J=this.getWebPlayerContextConfig_().contextId;if(P&&P===J){I!==this.playerContainer_&&(I=!1,this.maybeCallApiMethodOnElement_(z,"getPlayerState")===2&&(I=!0),this.playerContainer_.appendChild(z),I||this.maybeCallApiMethodOnElement_(z,
"playVideo"));var N;if((N=a.ytplayer)==null?0:N.bootstrapPlayerResponse)this.bootstrapPlayerResponse_=a.ytplayer.bootstrapPlayerResponse}}},
initPlayer_:function(a){var z=this;if(this.useUnifiedPlayer_())Pn(!1,"Invalid method call in kevlar_unified_player.");else return new Promise(function(I){z.maybeAdoptBootstrapPlayer_();var J=a?mtG(a):void 0;J&&J==z.bootstrapPlayerResponse_&&(a.loaded=!0);J=z.playerContainer_;var r=z.getWebPlayerContextConfig_();J=Zj0(J,a,r);z.player_=J;z.onPlayerReadyEvent_=z.onPlayerReady_.bind(z,z.player_,I);z.player_.addEventListener("onReady",z.onPlayerReadyEvent_);z.player_.addEventListener("innertubeCommand",
z.onPlayerInnerTubeCommand_.bind(z));_.K("enable_web_shorts_captions_language_command")&&z.player_.addEventListener("captionschanged",z.storePlayerCaptionLanguage_.bind(z))})},
getPlayerPromise:function(){return this.useUnifiedPlayer_()?(this.mainAppPlayer_||this.createMainAppPlayer_(),this.mainAppPlayer_.api):this.playerResolver_.promise},
getPlayer:function(){return this.player_&&this.player_.isReady()?this.player_:null},
pause:function(){this.getPlayerPromise().then(function(a){a.pauseVideo()})},
play:function(){this.getPlayerPromise().then(function(a){a.playVideo()})},
onTouchStart_:function(){if(!this.disableTouchGestures){var a=_.ab().resolve(_.aK).getCurrentPage();a&&a.getScrollTop()<=0?_.d3(this,"pan-down"):_.d3(this,"manipulation")}},
onPinchOut_:function(){this.getPlayerPromise().then(function(a){a.isFullscreen()||a.toggleFullscreen()})},
onPinchIn_:function(){this.getPlayerPromise().then(function(a){a.isFullscreen()&&a.toggleFullscreen()})},
updatePlayerPlaylist_:function(a){var z=this,I,J,r;return _.t(function(P){if(P.nextAddress==1)return I=_.ab().resolve(_.eL(_.wR)),J=!!(I&&I.playlistComponent&&I.playlistComponent.loopOn),P.yield(z.getPlayerPromise(),2);var N=r=P.yieldResult,u=N.updatePlaylist,E=[];if(_.K("kevlar_player_playlist_use_local_index")){var O,f;var A=(f=(O=a.localCurrentIndex)!=null?O:a.currentIndex)!=null?f:0}else{var n;A=(n=a.currentIndex)!=null?n:0}if(a.contents)for(O=0;O<a.contents.length;O++)if((f=a.contents[O])&&f.playlistPanelVideoRenderer)if(qTd(f)){f=
f.playlistPanelVideoRenderer;n="";f.shortBylineText&&(n=_.cd(f.shortBylineText));var F="";f.title?F=_.cd(f.title):f.unplayableText&&(F=_.cd(f.unplayableText));E.push({author:n,title:F,encrypted_id:f.videoId})}else O<A&&--A;u.call(N,{index:A,list:a.playlistId?a.playlistId:"",loop:J,playlist_title:a.title,playlist_length:E.length,video:E,fetch:0,external_list:"1",title:a.title?a.title:"",playlist_author:a.ownerName?_.cd(a.ownerName):void 0});_.nu(P)})},
focusOnPlayer:function(){_.Yv(this,function(){if(this.playerContainer_&&this.playerContainer_.firstElementChild){var a=this.playerContainer_.querySelector(".html5-video-player");a&&(_.Cd(_.ab().resolve(_.V7)),a.focus())}})},
preparePlayer:function(){var a=this;this.useUnifiedPlayer_()?this.mainAppPlayer_||this.createMainAppPlayer_():this.hasWebPlayerContextConfig_()?this.initPlayerPromise_||(new Promise(function(z){if(document.readyState=="complete"||document.readyState=="ready"||document.readyState=="interactive")z();else{var I=function(){document.removeEventListener("DOMContentLoaded",I);z()};
document.addEventListener("DOMContentLoaded",I)}})).then(function(){return zU0()}).then(function(){a.initPlayerPromise_||a.preparePlayerJobId_||(a.preparePlayerJobId_=_.b9(_.GW,function(){a.initPlayerPromise_||(a.initPlayerPromise_=a.initPlayerContainer_())}))}):_.$0(new _.Fn("Cannot initialize player for this context without a WebPlayerContextConfig.",this.context))},
updateSwfConfig_:function(a){this.useUnifiedPlayer_()?Pn(!1,"Invalid method callin kevlar_unified_player."):this.shouldAutoplay_(a)||(a.args.autoplay="0")},
shouldAutoplay_:function(a){if(this.useUnifiedPlayer_())Pn(!1,"Invalid method call in kevlar_unified_player.");else{var z=this.get("args.el",a);return z&&z!="detailpage"&&this.isMiniplayerActive_()||z&&(z=="sponsorshipsoffer"||z=="handlesclaiming")&&this.get("args.autoplay",a)=="0"?!1:(a=mtG(a))&&this.get("playerConfig.playbackStartConfig.startPaused",a)?!1:!0}},
isMiniplayerActive_:function(){return _.ab().resolve(_.UJ).isMiniplayerActive()},
stop:function(){this.maybeSendAbandonmentPing_();var a=this.getPlayer();if(a){var z=a.getPlayerState();_.K("kevlar_player_check_ad_state_on_stop")&&(z=a.getPlayerState(a.getPresentingPlayerType()));z!=5&&a.stopVideo()}},
resetForNewPlayback:function(){this.isResetForNewPlayback_||(this.stop(),this.isResetForNewPlayback_=!0)},
appendTo:function(a,z,I){I=I===void 0?!1:I;var J=this,r,P,N,u;return _.t(function(E){if(E.nextAddress==1)return z||(z=J.hostElement),r=J.useUnifiedPlayer_()?!!J.mainAppPlayer_:!!J.initPlayerPromise_,r?E.yield(J.getPlayerPromise(),2):(I?a.insertBefore(z,a.firstChild):a.appendChild(z),E.return());P=E.yieldResult;N=P.getPlayerState(P.getPresentingPlayerType());u=!1;if(N==-1||N==1||N==3)u=!0;I?a.insertBefore(z,a.firstChild):a.appendChild(z);u&&P.playVideo();P.setSize(NaN,NaN);_.nu(E)})},
watchNextDataChanged_:function(a){var z=this;a&&(this.useUnifiedPlayer_()&&_.K("kevlar_unified_player_update_watch_next_killswitch")?this.mainAppPlayer_&&ufv(this.mainAppPlayer_,a):this.getPlayerPromise().then(function(I){I.updateVideoData(z.computeWatchNextPlayerVars_(a))}))},
computeWatchNextPlayerVars_:function(a){if(this.useUnifiedPlayer_()&&_.K("kevlar_unified_player_update_watch_next_killswitch"))Pn(!1,"Invalid method call in kevlar_unified_player.");else return{raw_watch_next_response:a}},
maybeSendAbandonmentPing_:function(){var a=this.getPlayer();a&&a.getPlayerState()!=5&&a.getPlayerState()!=0&&a.sendAbandonmentPing()},
getWebPlayerContextConfig_:function(){var a=_.Xw("WEB_PLAYER_CONTEXT_CONFIGS")[this.context];this.playerId&&(a=Object.assign({},a),a.rootElementId=this.playerId);a.serializedExperimentIds&&a.serializedExperimentFlags||_.Xd(Error("wh"));return a},
hasWebPlayerContextConfig_:function(){return!!_.Xw("WEB_PLAYER_CONTEXT_CONFIGS")&&!!this.getWebPlayerContextConfig_()},
onPlayerInnerTubeCommand_:function(a){this.useUnifiedPlayer_()?Pn(!1,"Invalid method call in kevlar_unified_player."):_.fw(a,this.hostElement)},
storePlayerCaptionLanguage_:function(){this.getPlayerPromise().then(function(a){var z=_.ab().resolve(_.Qb);a=a==null?void 0:a.getOption("captions","track");var I=_.Er("/youtube/app/player_caption_language_entity_key","stringEntity",2);if(a){var J,r=(J=_.KU(_.Dt,I)())==null?void 0:J.value,P;J=typeof(a==null?void 0:a.translationLanguage)==="object"&&((P=a.translationLanguage)==null?void 0:P.languageName)||a.displayName||"";r!==J&&z.store.dispatch(_.Q0("stringEntity",I,{key:I,value:J.toString()}))}else z.store.dispatch(_.Q0("stringEntity",
I,{key:I,value:"CAPTIONS_UNAVAILABLE"}))})},
useUnifiedPlayer_:function(){var a=_.K("kevlar_non_watch_unified_player")&&this.context!=="WEB_PLAYER_CONTEXT_CONFIG_ID_KEVLAR_WATCH";return _.K("kevlar_unified_player")||a}}];var AsI={};AsI.YtPlaylistPanelBehavior=[_.k.YtRendererBehavior,{_noAccessors:!0,properties:{loopOn:Boolean,shuffleOn:Boolean},listeners:{"yt-toggle-button":"onYtToggleButton_"},onYtToggleButton_:function(a){a=a.detail;if(a.actions.loop!=void 0||a.actions["yt-icons:loop"]!=void 0)this.loopOn=a.actions.loop||a.actions["yt-icons:loop"];if(a.actions.shuffle!=void 0||a.actions["yt-icons:shuffle"]!=void 0)this.shuffleOn=a.actions.shuffle||a.actions["yt-icons:shuffle"]},
setMenuData_:function(a){if(!a||!a.playlistButtons||a.isInfinite)return null;for(var z=a.playlistButtons.menuRenderer.topLevelButtons,I=z.length,J=0;J<I;J++)if(z[J].toggleButtonRenderer){var r=z[J].toggleButtonRenderer;r.defaultIcon.iconType=="LOOP"&&this.loopOn?r.isToggled=this.loopOn:r.defaultIcon.iconType=="SHUFFLE"&&this.shuffleOn&&(r.isToggled=this.shuffleOn)}return a.playlistButtons}}];var sgO=function(a){Z1.call(this,a,132);this.isDocument=a===document.documentElement};
_.b(sgO,Z1);sgO.prototype.calculateScrollDelta=function(a,z,I){var J=0;a<z?J=a<z-100?-48:-8:a>z+I&&(J=a>z+I+100?48:8);return J};
sgO.prototype.JSC$11293_onMouseMove=function(a){this.isDocument||(a.clientX=a.event_.pageX,a.clientY=a.event_.pageY);Z1.prototype.JSC$11293_onMouseMove.call(this,a)};var NU=function(){var a=_.nM.apply(this,arguments)||this;a._noAccessors=!0;a.scrollElement=document.documentElement;a.JSC$14283_dragListGroup=null;a.dragScrollSupport=null;a.onDraggerCreated=function(z){var I=z.JSC$11289_dragger;I.scrollTarget_=a.scrollElement;z=z.draggerEl;I&&z.menuOpened&&I.setEnabled(!1)};
a.onDragStart=function(z){var I=z.draggerEl;z=z.currDragItem;var J=Object.assign({},z==null?void 0:z.data);J.trackingParams=void 0;I.data=J;I.style.position="absolute";I.style.width=(z==null?void 0:z.clientWidth)+"px";I.style.zIndex="2030";I.onDrag&&I.onDrag();_.K("web_owner_document_fallback_killswitch")?(z=document.querySelector("ytd-app"))&&_.PK(z).appendChild(I):(z=_.Xm(I),(J=z.querySelector("ytd-app"))?_.PK(J).appendChild(I):z.body.appendChild(I));a.dragScrollSupport=new sgO(a.scrollElement);
a.dragScrollSupport.horizontalScrolling_=!1;I=a.dragScrollSupport;I.constrainScroll_=!!I.margin_&&!1};
a.onDrop=function(z){a.handleDrop(z);a.dragScrollSupport&&(_.Y8(a.dragScrollSupport),a.dragScrollSupport=null)};
a.onReorderableScroll=function(){if(a.JSC$14283_dragListGroup){var z=a.JSC$14283_dragListGroup;ZMi(z,z.currDragItem_)}};
return a};
_.b(NU,_.nM);NU.prototype.detached=function(){_.nnj(this)};
_.nnj=function(a){a.JSC$14283_dragListGroup&&(_.FU(a.JSC$14283_dragListGroup,qMv,a.onDragStart),_.FU(a.JSC$14283_dragListGroup,zwv,a.onDragStart),a.JSC$14283_dragListGroup.dispose(),a.JSC$14283_dragListGroup=null);a.dragScrollSupport&&(_.Y8(a.dragScrollSupport),a.dragScrollSupport=null);a.scrollElement.removeEventListener("scroll",a.onReorderableScroll)};
_.KCj=function(a,z,I,J){J=J===void 0?"":J;_.nnj(a);I&&(a.scrollElement=I);a.JSC$14283_dragListGroup=new pe;a.JSC$14283_dragListGroup.hysteresisDistance_=2;J3o(a.JSC$14283_dragListGroup,z);a.JSC$14283_dragListGroup.draggerElClasses_=g$("dragging").split(" ");J&&r3e(a.JSC$14283_dragListGroup,function(r){var P=r||document,N=null;P.getElementsByClassName?N=P.getElementsByClassName(J)[0]:N=UEO("*",J,r);return N||r});
_.Sg(a.JSC$14283_dragListGroup,cv1,a.onDraggerCreated);_.Sg(a.JSC$14283_dragListGroup,qMv,a.onDragStart);_.Sg(a.JSC$14283_dragListGroup,zwv,a.onDrop);a.JSC$14283_dragListGroup.init();a.scrollElement.addEventListener("scroll",a.onReorderableScroll,{passive:!0})};
NU.prototype.handleDrop=function(){};
_.eH.Object.defineProperties(NU.prototype,{TEST_ONLY:{configurable:!0,enumerable:!0,get:function(){}}});
_.L([_.x({value:100}),_.p("design:type",Number)],NU.prototype,"scrollMargin",void 0);_.L([_.KM()],NU);_.FCE=[NU.prototype];_.tM={YtSparklesClickLocationBehavior:{clickTargetMap:null,containerId:null,handleClick:function(a,z,I){var J=this.getClickTarget_(z);if(J&&this.isClickAllowed_(J)){z.preventDefault();a=(0,_.x8.unsafeClone)(a);var r=this.getContainerBoundingRect();z=this.getRelativeClickXy_(z,r);this.expandEndpointUrlMacros_(a,{NX:z[0],NY:z[1],NB:J.code});I&&this.truncateWebCommendMetadataUrl_(a);_.PA(this.hostElement,"yt-navigate",{endpoint:a})}},
getClickTarget_:function(a){if(!this.clickTargetMap)return null;a=_.ch(a)||[];a=_.C(a);for(var z=a.next();!z.done;z=a.next()){z=z.value;if(z===_.PK(this.hostElement).querySelector("#menu"))break;if(z=this.clickTargetMap.get(z.id))return z}return null},
getRelativeClickXy_:function(a,z){var I=a.detail.x,J=a.detail.y;_.K("use_on_click_for_desktop_display_ad")&&a.clientX!=null&&a.clientY!=null&&(I=a.clientX,J=a.clientY);a=Math.round(I-z.left);z=Math.round(J-z.top);return a<0||z<0?[null,null]:[a,z]},
getContainerBoundingRect:function(){return _.PK(this.hostElement).querySelector("#"+this.containerId).getBoundingClientRect()},
expandEndpointUrlMacros_:function(a,z){for(var I=_.C(a.loggingUrls||[]),J=I.next();!J.done;J=I.next())J=J.value,J.baseUrl&&(J.baseUrl=YS3(J.baseUrl,z));a.urlEndpoint&&a.urlEndpoint.url&&(a.urlEndpoint.url=YS3(a.urlEndpoint.url,z));a.commandMetadata&&a.commandMetadata.webCommandMetadata&&a.commandMetadata.webCommandMetadata.url&&(a.commandMetadata.webCommandMetadata.url=YS3(a.commandMetadata.webCommandMetadata.url,z))},
truncateWebCommendMetadataUrl_:function(a){if(a.commandMetadata&&a.commandMetadata.webCommandMetadata&&a.commandMetadata.webCommandMetadata.url){var z=a.commandMetadata.webCommandMetadata.url,I=z.indexOf("&pp=");if(I>0){var J=z.indexOf("&",I+1);a.commandMetadata.webCommandMetadata.url=J>I&&J<z.length?z.slice(0,I)+z.slice(J):z.slice(0,I)}}},
configureClickTargets:function(a,z,I){this.containerId=a;this.clickTargetMap=new Map;a=_.C(z);for(z=a.next();!z.done;z=a.next())if(z=z.value,z.location){var J=I.get(z.location);J&&(_.CM(_.PK(this.hostElement).querySelector("#"+J),"yt-simple-endpoint",this.isClickAllowed_(z)),this.clickTargetMap.set(J,z))}},
isClickAllowed_:function(a){return a.behaviorType==="PROMOTED_SPARKLES_CLICK_BEHAVIOR_TYPE_OPEN_AD"||a.behaviorType==="PROMOTED_SPARKLES_VIDEO_ACTION_CLICK_BEHAVIOR_TYPE_PLAY_VIDEO_ON_WATCH_PAGE"||a.behaviorType==="PROMOTED_SPARKLES_VIDEO_ACTION_CLICK_BEHAVIOR_TYPE_OPEN_CHANNEL"||a.behaviorType==="PROMOTED_SPARKLES_VIDEO_ACTION_CLICK_BEHAVIOR_TYPE_OPEN_ACTION_WEBSITE_URL"}}};_.uQ={};
_.uQ.YtLazyListBehavior=[_.Zs.YtTaskEmitterBehavior,{_noAccessors:!0,properties:{initialCount:{type:Number,value:4},targetFramerate:{type:Number,value:20},minChunkSize:{type:Number,value:1},autoFill:{type:Boolean,value:!1},disableAutoFill:{type:Boolean,value:!1},shownItems:Array,shownCount:{type:Number,value:0},canShowMore:{type:Boolean,notify:!0,reflectToAttribute:!0,observer:"onCanShowMoreUpdated_"},renderDelay:Number,targetFrameTime_:{type:Number,computed:"computeFrameTime_(targetFramerate)"},canScheduleJobs:{type:Boolean,
value:!0,observer:"canScheduleJobsChanged_"}},itemsPath:"data.items",beforeRegister:function(){if(this.itemsPath)if(this.getItemsPath&&this.getItemsPath instanceof Function&&(this.itemsPath=this.getItemsPath()),this.useSignals)this.addReactiveSchema({type:"observe",method:{methodName:"deepLazyListObserver_",args:[{type:"wildcard",path:this.itemsPath}]}});else{var a=(this.constructor.generatedFrom||this).observers;a||(a=[]);a.push("deepLazyListObserver_("+this.itemsPath+".*)");this.constructor.generatedFrom.observers=
a}},
created:function(){this.boundRenderChunk_=this.renderChunk_.bind(this);this.items_=null;this.lazyListRenderJobId_=this.chunkCount_=this.lastChunkTime_=this.length_=0;this.nonDeferredItemCount=-1;this.renderElementsOutsideVisibleArea_=null;this.partiallyRenderedItems_=new WeakSet},
fillRemainingListItems:function(){this.fillRange_(this.shownCount,this.length_)},
renderDeferredElements:function(){var a=this.renderElementsOutsideVisibleArea_;a&&(sC1(a,4),a.processSignal())},
deepLazyListObserver_:function(a){var z=this;if(a){var I=a.value||[];if(this.itemsPath==a.path){var J=this.nonDeferredItemCount;a=0;J>-1&&I.length>J&&(a=_.Xw("REMAINING_DOVA_DEFERRED_CHUNKS",-1));a>0?(J>0&&(J=I.slice(0,J),this.setInitialItemsOnDataChanged(J)),(J=this.renderElementsOutsideVisibleArea_)?J.cancel():(J=this.renderElementsOutsideVisibleArea_=new _.NT(2,"eocs"),_.plO(window,"scroll",function(){return z.renderDeferredElements()})),_.tt(J,function(){z.setInitialItemsOnDataChanged(I)}),_.$S("REMAINING_DOVA_DEFERRED_CHUNKS",
a-1)):this.setInitialItemsOnDataChanged(I)}else if(this.itemsPath+".splices"==a.path)this.onItemsUpdated_(I);
else J="shownItems"+a.path.substr(this.itemsPath.length),this.useSignals&&J==="shownItems.length"||this.notifyPath(J,a.value)}else this.cancelPendingTasks_()},
onItemsUpdated_:function(a){a&&(this.items_=this.get(this.itemsPath))&&(this.updateChangeRecord_(a),this.length_=this.items_.length,this.canShowMore=this.shownCount<this.length_,this.autoFill?(this.lastChunkTime_=Date.now(),this.tryRenderChunk_()):this.fillRemainingListItems())},
updateChangeRecord_:function(a){a=a.indexSplices;for(var z=0,I=a.length;z<I;z++){var J=a[z];if(J.index<this.shownCount&&(J.removed&&this.splice("shownItems",J.index,J.removed.length),J.addedCount)){var r=J.object.slice(J.index,J.index+J.addedCount);J=["shownItems",J.index,0];J.push.apply(J,r);this.splice.apply(this,J)}}this.shownCount=this.shownItems?this.shownItems.length:0},
setInitialItemsOnDataChanged:function(a){this.cancelPendingTasks_();a||(a=[]);this.items_=a;this.length_=this.items_.length;this.shownItems=this.items_.slice(0,this.initialCount);this.shownCount=this.shownItems.length;this.canShowMore=this.shownCount<this.length_;this.autoFill&&(_.TZ("DISABLE_AUTOFILL")||this.disableAutoFill?this.fillRemainingListItems():(this.chunkCount_=this.initialCount,this.lastChunkTime_=Date.now(),this.canShowMore&&_.Yv(this,this.tryRenderChunk_)))},
fillRange_:function(a,z){this.canShowMore&&this.items_&&(a=this.items_.slice(a,z),a.unshift("shownItems"),this.push.apply(this,a),this.shownCount=z,this.canShowMore=this.shownCount<this.length_)},
tryRenderChunk_:function(){var a=this;this.canShowMore&&_.pM(this,"renderChunk",function(){a.requestRenderChunk_()})},
requestRenderChunk_:function(){if(_.TZ("SCHEDULED_LAZY_LIST")||this.renderDelay)return this.shouldUseTaskManager()||this.canScheduleJobs?(this.cancelPendingTasks_(),this.lazyListRenderJobId_=_.xc(this.getTaskManager(),this.boundRenderChunk_,this.renderDelay),!0):!1;requestAnimationFrame(this.boundRenderChunk_);return!0},
cancelPendingTasks_:function(){this.lazyListRenderJobId_&&this.getTaskManager().cancelJob(this.lazyListRenderJobId_);var a=this.renderElementsOutsideVisibleArea_;a&&(a.cancel(),this.renderElementsOutsideVisibleArea_=null)},
renderChunk_:function(){var a=Date.now();this.chunkCount_=Math.round(this.targetFrameTime_/(a-this.lastChunkTime_)*this.chunkCount_)||this.minChunkSize;this.lastChunkTime_=a;this.fillRange_(this.shownCount,Math.min(this.shownCount+this.chunkCount_,this.length_));this.lazyListRenderJobId_=0;this.tryRenderChunk_()},
computeFrameTime_:function(a){return Math.ceil(1E3/a)},
onCanShowMoreUpdated_:function(a){this.data&&this.items_!==null&&(a?this.partiallyRenderedItems_.add(this.items_):this.partiallyRenderedItems_.delete(this.items_))},
canScheduleJobsChanged_:function(a){!this.shouldUseTaskManager()&&this.data&&(!a&&this.canShowMore?(_.GyG(this,"renderChunk"),this.lazyListRenderJobId_&&this.getTaskManager().cancelJob(this.lazyListRenderJobId_)):a&&this.partiallyRenderedItems_.has(this.items_)&&(_.K("kevlar_lazy_list_resume_for_autofill")?this.autoFill&&this.tryRenderChunk_():this.tryRenderChunk_()))}}];var gP;_.E3={};
gP=function(){var a=_.nM.apply(this,arguments)||this;a.atStart=!0;a.atEnd=!0;a.startIndex=0;a.endIndex=0;a.scrollCount=0;a.initialStartIndex=0;a.disableScrollEventListener=!1;a.useFloorScrolling=!1;a.isSearch=!1;a.dragging=!1;a.dragMouseStart=0;a.dragOffsetStart=0;a.disableWheelScroll=!1;a.centerListItems=!1;a.offset=0;a.minComponentWidth=0;a.marginWidthRight=0;a.marginWidthLeft=0;a.setButtonsStateRequested=!1;a.itemsVisibilityObserver=null;a.fullyVisibleItemsIndices=[];a.JSC$14294_onWheelScroll=function(z){if(a.isSearch&&
!a.disableWheelScroll&&_.K("desktop_enable_dmpanel_wheel_scroll")){var I=z.shiftKey?Math.abs(z.deltaY)>Math.abs(z.deltaX)?z.deltaY:z.deltaX:z.deltaX;I!==0&&(z.preventDefault(),a.ytLazyListBehavior.fillRemainingListItems(),a.offset+=I,Bs(a),a.reposition_())}};
a.onPointerDown=function(z){Hjo(a)&&(a.dragMouseStart=z.clientX,a.dragOffsetStart=a.offset,a.dragging=!0)};
a.onPointerMove=function(z){Hjo(a)&&a.dragging&&(a.ytLazyListBehavior.fillRemainingListItems(),a.offset=a.dragOffsetStart-(z.clientX-a.dragMouseStart),Bs(a),a.reposition_())};
a.onPointerUp=function(){Hjo(a)&&(a.dragging=!1)};
return a};
_.b(gP,_.nM);var bjf=function(a){var z=_.PK(a.hostElement).querySelector("#items").children;if(!z)return 0;var I=0;a=_.C(a.fullyVisibleItemsIndices);for(var J=a.next();!J.done;J=a.next())I+=z[J.value].clientWidth;return I},Hjo=function(a){return a.isSearch&&_.K("desktop_enable_dmpanel_click_drag_scroll")};
gP.prototype.created=function(){this.cachedViewportWidth=_.Xw("initialInnerWidth")||window.innerWidth;this.JSC$14294_cachedViewportHeight=_.Xw("initialInnerHeight")||window.innerHeight;_.Xw("REMAINING_DOVA_DEFERRED_CHUNKS",-1)==-1&&_.$S("REMAINING_DOVA_DEFERRED_CHUNKS",6)};
gP.prototype.attached=function(){window.ShadyDOM&&window.ShadyDOM.noPatch||this.hostElement.shadowRoot.addEventListener("transitionend",this.onItemsTransitionEnd_.bind(this));!this.disableScrollEventListener&&_.K("desktop_enable_dmpanel_scroll")&&this.addScrollEventListeners();hUE(this)};
gP.prototype.detached=function(){window.ShadyDOM&&window.ShadyDOM.noPatch||this.hostElement.shadowRoot.removeEventListener("transitionend",this.onItemsTransitionEnd_.bind(this));!this.disableScrollEventListener&&_.K("desktop_enable_dmpanel_scroll")&&this.removeScrollEventListeners();var a;(a=this.itemsVisibilityObserver)==null||a.disconnect();this.itemsVisibilityObserver=null;var z;(z=this.itemsObserver)==null||z.disconnect()};
var hUE=function(a){var z=_.PK(a.hostElement).querySelector("#scroll-container");if(z){if(!a.itemsVisibilityObserver){var I=window.getComputedStyle(z).marginRight;a.itemsVisibilityObserver=new IntersectionObserver(function(J){VOf(a,J)},{root:z,
rootMargin:I,threshold:.98})}if(z=_.PK(a.hostElement).querySelector("#items"))a.itemsObserver=new WHX(z,function(J){QgE(a,J)})}},QgE=function(a,z){SUw(a)&&(Array.from(z.addedNodes).filter(function(I){return I.nodeType===Node.ELEMENT_NODE}).forEach(function(I){a.itemsVisibilityObserver&&a.itemsVisibilityObserver.observe(I)}),Array.from(z.removedNodes).filter(function(I){return I.nodeType===Node.ELEMENT_NODE}).forEach(function(I){a.itemsVisibilityObserver&&a.itemsVisibilityObserver.unobserve(I)}))},
VOf=function(a,z){var I=new Set(a.fullyVisibleItemsIndices);
z=_.C(z);for(var J=z.next();!J.done;J=z.next()){J=J.value;var r=J.target.parentElement;r?(r=Array.from(r.children).indexOf(J.target),J.isIntersecting?I.add(r):I.has(r)&&I.delete(r)):_.Xd(new _.Fn("Parent element not found",J.target.nodeName))}a.fullyVisibleItemsIndices=Array.from(I).sort(function(P,N){return P-N});
I.size===0?_.Xd(new _.Fn("No visible entries in horizontal list")):(a.startIndex=a.fullyVisibleItemsIndices[0],a.endIndex=a.fullyVisibleItemsIndices[a.fullyVisibleItemsIndices.length-1])},SUw=function(a){a.data?a=(a=a.data)&&a.itemSizeConstraint?"LIST_ITEM_SIZE_CONSTRAINT_EQUAL_HEIGHT"===a.itemSizeConstraint:!1:a=!1;
return a};
_.Z=gP.prototype;_.Z.addScrollEventListeners=function(){var a=_.PK(this.hostElement).querySelector("#scroll-container");a.style.touchAction="pan-y";a.addEventListener("wheel",this.JSC$14294_onWheelScroll);a.addEventListener("pointerdown",this.onPointerDown);a.addEventListener("pointermove",this.onPointerMove);window.addEventListener("pointerup",this.onPointerUp)};
_.Z.removeScrollEventListeners=function(){var a=_.PK(this.hostElement).querySelector("#scroll-container");a.removeEventListener("wheel",this.JSC$14294_onWheelScroll);a.removeEventListener("pointerdown",this.onPointerDown);a.removeEventListener("pointermove",this.onPointerMove);window.removeEventListener("pointerup",this.onPointerUp)};
_.Z.reset=function(){this.scrollCount=this.offset=0;this.reposition_();this.marginWidthLeft=this.marginWidthRight=this.minComponentWidth=0;this.initialStartIndex>0&&_.Yv(this,this.setStartIndex,[this.initialStartIndex])};
_.Z.reposition_=function(){var a=_.Xw("HTML_DIR")=="rtl"?"":"-",z=_.PK(this.hostElement).querySelector("#items");z&&(z.style.transform="translateX("+a+this.offset+"px)");this.requestButtonsStateUpdate_()};
_.Z.requestButtonsStateUpdate_=function(){this.setButtonsStateRequested||(this.setButtonsStateRequested=!0,_.Yv(this,this.setButtonsState_))};
_.Z.setButtonsState_=function(){this.setButtonsStateRequested=!1;var a=_.PK(this.hostElement).querySelector("#items").firstElementChild;if(a){this.minComponentWidth||(this.minComponentWidth=ijw(this,a));a=_.PK(this.hostElement).querySelector("#scroll-container").clientWidth;var z=_.PK(this.hostElement).querySelector("#items");z=_.K("kevlar_horizontal_list_scroll_width_killswitch")?z.clientWidth:z.scrollWidth;var I=this.get(this.ytLazyListBehavior.itemsPath,this);if(I){var J=Math.round(a/this.minComponentWidth)||
1;this.fullyVisibleItemsIndices.length===0&&(this.startIndex=Math.round(this.offset/this.minComponentWidth),this.endIndex=Math.min(this.startIndex+J,I.length)-1)}this.ytLazyListBehavior.canShowMore?z+this.minComponentWidth>=this.offset+a&&(this.atEnd=!1):this.atEnd=this.offset+a>=z-20?!0:!1;this.atStart=this.offset<=20}};
_.Z.setStartIndex=function(a){if(!this.minComponentWidth){var z=_.PK(this.hostElement).querySelector("#items").firstElementChild;if(!z)return;this.minComponentWidth=ijw(this,z)}this.ytLazyListBehavior.fillRemainingListItems();this.offset=this.minComponentWidth*a;Bs(this);this.reposition_()};
_.Z.nextClick_=function(){this.ytLazyListBehavior.fillRemainingListItems();_.AX();var a=_.PK(this.hostElement).querySelector("#scroll-container").clientWidth;_.K("web_min_component_width_killswitch")||this.minComponentWidth||(this.minComponentWidth=ijw(this,_.PK(this.hostElement).querySelector("#items").firstElementChild));a=this.useFloorScrolling?Math.floor(a/this.minComponentWidth)||1:Math.round(a/this.minComponentWidth)||1;this.centerListItems&&this.scrollCount===0&&x7l(this);this.offset+=SUw(this)?
bjf(this):a*this.minComponentWidth;Bs(this);this.reposition_();this.scrollCount++};
_.Z.prevClick_=function(){var a=_.PK(this.hostElement).querySelector("#scroll-container").clientWidth;a=this.useFloorScrolling?Math.floor(a/this.minComponentWidth)||1:Math.round(a/this.minComponentWidth)||1;this.resizeSupportEnabled?(this.scrollCount--,this.offset=SUw(this)?bjf(this):this.minComponentWidth*this.scrollCount-1):this.offset-=SUw(this)?bjf(this):a*this.minComponentWidth;this.centerListItems&&x7l(this);Bs(this);this.reposition_()};
_.Z.onIronResize_=function(){this.resizeSupportEnabled&&_.Yv(this,this.checkComponentWidthResize);this.requestButtonsStateUpdate_()};
_.Z.onItemsTransitionEnd_=function(a){_.Yh(a)===_.PK(this.hostElement).querySelector("#items")&&this.ytRendererBehavior.markDirty()};
_.Z.onChildElementFocus_=function(a){a=a.target.closest("#items > *");var z=_.PK(this.hostElement).querySelector("#scroll-container");if(z.contains(a)){if(_.K("web_horizontal_list_behavior_focus_killswitch"))if(a.offsetLeft<this.offset)this.offset=Math.abs(a.offsetLeft)<a.clientWidth?0:a.offsetLeft;else if(a.offsetLeft+a.clientWidth>this.offset+z.clientWidth)this.ytLazyListBehavior.fillRemainingListItems(),_.AX(),this.offset=a.offsetLeft+a.clientWidth-z.clientWidth;else return;else{var I=_.PK(this.hostElement).querySelector("#items"),
J=_.Xw("HTML_DIR")==="rtl",r=J?I.clientWidth-a.offsetLeft:a.offsetLeft;I=J?I.clientWidth-(a.offsetLeft+a.clientWidth):a.offsetLeft+a.clientWidth;var P=J?r>this.offset+z.clientWidth:r<this.offset,N=J?I<this.offset:I>this.offset+z.clientWidth,u=J?P:N;if(J?N:P)z=J?I:r,this.offset=Math.abs(z)<a.clientWidth?0:z;else if(u)this.ytLazyListBehavior.fillRemainingListItems(),_.AX(),this.offset=(J?r:I)-z.clientWidth;else return}Bs(this);this.reposition_()}};
_.Z.observeShownItems_=function(){this.reset()};
_.Z.checkComponentWidthResize=function(){var a=_.PK(this.hostElement).querySelector("#items").firstElementChild;a&&(a=ijw(this,a),this.centerListItems||a!==this.minComponentWidth)&&(this.minComponentWidth=a,this.offset=a*this.scrollCount,this.centerListItems&&x7l(this),Bs(this),this.reposition_())};
var ijw=function(a,z){var I=window.getComputedStyle(z).marginRight;I=Math.floor(Number(I.replace("px","")));var J=window.getComputedStyle(z).marginLeft;J=Math.floor(Number(J.replace("px","")));a.centerListItems&&!a.marginWidthRight&&(a.marginWidthRight=I,a.marginWidthLeft=J);return a.resizeSupportEnabled?z.getBoundingClientRect().width+I:z.offsetWidth+I},Bs=function(a){var z=_.PK(a.hostElement).querySelector("#scroll-container").clientWidth,I=_.PK(a.hostElement).querySelector("#items").clientWidth;
a.offset<0?a.offset=0:a.offset+z>=I&&(a.offset=I-z)},x7l=function(a){a.offset-=(_.PK(a.hostElement).querySelector("#scroll-container").clientWidth+a.marginWidthRight-a.minComponentWidth)/2-a.marginWidthLeft};
_.eH.Object.defineProperties(gP.prototype,{nonDeferredItemCount:{configurable:!0,enumerable:!0,get:function(){var a=_.Xw("NON_DEFERRED_HORIZONTAL_LIST_ROW_COUNT",-1);if(a==-1)a=this.JSC$14294_cachedViewportHeight,a=a>1320?5:a>1020?4:a>730?3:a>430?2:1;else if(a==0)return 0;_.$S("NON_DEFERRED_HORIZONTAL_LIST_ROW_COUNT",a-1);a=_.Xw("NON_DEFERRED_HORIZONTAL_LIST_ITEM_COUNT",-1);if(a>-1)return a;a=this.cachedViewportWidth;a=a>1600?6:a>1400?5:a>1300?4:a>1090?5:a>870?4:a>660?3:2;_.$S("NON_DEFERRED_HORIZONTAL_LIST_ITEM_COUNT",
a);return a},
set:function(){}},
resizeSupportEnabled:{configurable:!0,enumerable:!0,get:function(){return!_.K("kevlar_disable_component_resizing_support")&&!!this.supportComponentResize}}});
gP.prototype.observeShownItems_=gP.prototype.observeShownItems_;gP.prototype.onChildElementFocus_=gP.prototype.onChildElementFocus_;gP.prototype.onItemsTransitionEnd_=gP.prototype.onItemsTransitionEnd_;gP.prototype.onIronResize_=gP.prototype.onIronResize_;gP.prototype.prevClick_=gP.prototype.prevClick_;gP.prototype.nextClick_=gP.prototype.nextClick_;gP.prototype.setButtonsState_=gP.prototype.setButtonsState_;gP.prototype.requestButtonsStateUpdate_=gP.prototype.requestButtonsStateUpdate_;
gP.prototype.reposition_=gP.prototype.reposition_;gP.prototype.reset=gP.prototype.reset;_.L([_.Q(_.k.YtRendererBehavior),_.p("design:type",Object)],gP.prototype,"ytRendererBehavior",void 0);_.L([_.Q(_.uQ.YtLazyListBehavior),_.p("design:type",Object)],gP.prototype,"ytLazyListBehavior",void 0);_.L([_.x(),_.p("design:type",Object)],gP.prototype,"data",void 0);_.L([_.x({reflectToAttribute:!0}),_.p("design:type",Object)],gP.prototype,"atStart",void 0);
_.L([_.x({reflectToAttribute:!0}),_.p("design:type",Object)],gP.prototype,"atEnd",void 0);_.L([_.x(),_.p("design:type",Object)],gP.prototype,"startIndex",void 0);_.L([_.x(),_.p("design:type",Object)],gP.prototype,"endIndex",void 0);_.L([_.x({value:6}),_.p("design:type",Number)],gP.prototype,"initialCount",void 0);_.L([_.x(),_.p("design:type",Object)],gP.prototype,"scrollCount",void 0);_.L([_.x(),_.p("design:type",Object)],gP.prototype,"initialStartIndex",void 0);
_.L([_.x(),_.p("design:type",Object)],gP.prototype,"disableScrollEventListener",void 0);_.L([_.x(),_.p("design:type",Object)],gP.prototype,"supportComponentResize",void 0);_.L([_.x({value:function(){var a=this;return function(){return a.prevClick_()}}}),
_.p("design:type",Function)],gP.prototype,"boundPrevClick",void 0);_.L([_.x({value:function(){var a=this;return function(){return a.nextClick_()}}}),
_.p("design:type",Function)],gP.prototype,"boundNextClick",void 0);_.L([_.x(),_.p("design:type",Object)],gP.prototype,"useFloorScrolling",void 0);_.L([_.x(),_.p("design:type",Object)],gP.prototype,"isSearch",void 0);_.L([_.x(),_.p("design:type",Object)],gP.prototype,"dragging",void 0);_.L([_.x(),_.p("design:type",Object)],gP.prototype,"dragMouseStart",void 0);_.L([_.x(),_.p("design:type",Object)],gP.prototype,"dragOffsetStart",void 0);
_.L([_.x(),_.p("design:type",Object)],gP.prototype,"disableWheelScroll",void 0);_.L([_.x(),_.p("design:type",Object)],gP.prototype,"centerListItems",void 0);_.L([_.gz("iron-resize"),_.O8("guideOpened"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],gP.prototype,"onIronResize_",null);_.L([_.gz("transitionend"),_.p("design:type",Function),_.p("design:paramtypes",[Event]),_.p("design:returntype")],gP.prototype,"onItemsTransitionEnd_",null);
_.L([_.gz("focusin"),_.p("design:type",Function),_.p("design:paramtypes",[Event]),_.p("design:returntype")],gP.prototype,"onChildElementFocus_",null);_.L([_.O8("shownItems"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],gP.prototype,"observeShownItems_",null);_.L([_.KM()],gP);_.E3.YtdHorizontalListBehavior=[];_.E3.YtdHorizontalListBehavior.push(_.Ts,_.k.YtRendererBehavior,_.uQ.YtLazyListBehavior,_.cZ.YtdGuideStateAwareBehavior,gP.prototype);var En7=["APP_STATE","PI"];var vnv=_.kK(["about:blank"]),GkE={pushState:window.history.pushState,replaceState:window.history.replaceState};var O3=function(a){this.initialized=!1;this.internalReplaceState=this.internalPushState=null;this.history=a;this.internalPushState=a.pushState.bind(a);this.internalReplaceState=a.replaceState.bind(a)};
O3.prototype.init=function(){this.initialized=!0};
O3.prototype.pushState=function(a,z){this.initialized||this.init();this.internalPushState&&this.internalPushState(a,"",z)};
O3.prototype.replaceState=function(a,z){this.initialized||this.init();this.internalReplaceState&&this.internalReplaceState(a,"",z)};
O3.prototype.getState=function(){return this.history&&this.history.state};var $7E=function(a){var z=function(){var I=a.apply(this,arguments)||this;I.boundHistoryPushState=!1;I.boundHistoryReplaceState=!1;I.debugInfo={};return I};
_.b(z,a);z.prototype.init=function(){var I=_.OS("IFRAME");_.lj(I,_.Jz(vnv));I.sandbox="allow-same-origin";I.style.display="none";this.iframe=I;document.body.appendChild(I);this.bindHistoryStateFunctions();a.prototype.init.call(this)};
z.prototype.bindHistoryStateFunctions=function(){var I=this,J=[],r;this.iframe&&((r=this.iframe.contentWindow)==null?0:r.history)&&(r=this.iframe.contentWindow.history)&&(J.push(r),Object.getPrototypeOf(r)&&J.push(Object.getPrototypeOf(r)));window.history&&J.push(window.history);r=window.history;Object.getPrototypeOf(r)&&J.push(Object.getPrototypeOf(r));J.push(GkE);r=function(N){for(var u=null,E=0;E<J.length;E++){var O=J[E][N];if(typeof O==="function"){u=O.bind(window.history);I.debugInfo[N]=E;break}}return u};
if(!this.boundHistoryReplaceState){var P=r("replaceState");P&&(this.internalReplaceState=P,this.boundHistoryReplaceState=!0)}!this.boundHistoryPushState&&(r=r("pushState"))&&(this.internalPushState=r,this.boundHistoryPushState=!0)};
return z}(O3),XOJ=function(){return $7E.call(this,window.history)||this};
_.b(XOJ,$7E);XOJ.prototype.getThirdPartyManipulationSuspected=function(){return this.initialized&&this.boundHistoryPushState!==this.boundHistoryReplaceState};var fd=function(a){this.browserHistory=a;this.initialized=!1};
fd.prototype.init=function(){this.initialized||(this.browserHistory.init(),this.initialized=!0,window.addEventListener("popstate",this.handlePopstate.bind(this)))};
fd.prototype.pushState=function(a,z){this.initialized||this.init();this.browserHistory.pushState(a,z)};
fd.prototype.replaceState=function(a,z){this.initialized||this.init();this.browserHistory.replaceState(a,z)};
fd.prototype.handlePopstate=function(a){return a.state};_.THj=function(a,z,I,J,r){this.endpoint=a;this.forward=z;this.historyEntry=I;this.JSC$29999_savedComponentState=J;this.legacyBorder=r===void 0?!1:r};var d7w=function(a,z){this.rootData=a;this.scrollTop=z};var Hq=new _.I4("PAGE_REQUEST_TOKEN"),kvv=new _.I4("FETCH_PBJ_TOKEN");_.AM=new _.I4("EPHEMERAL_STORE_TOKEN");_.s3=function(a){this.data=Object.assign({},a);var z;(z=this.data.innertubeResponse)==null||delete z.frameworkUpdates};
_.s3.prototype.isExpired=function(){return Number(this.data.expireTimestampMs||0)<(0,_.jp)()};
_.Iv=function(a){return Object.assign({},a.data.innertubeResponse,{cacheMetadata:{isCacheHit:!0}})};var WCj=function(){this.maxSize=100;this.timeToDataCache=new Map};
WCj.prototype.get=function(a){var z=this.timeToDataCache.get(a);z&&(this.timeToDataCache.delete(a),this.timeToDataCache.set(a,z));if(z&&z.rootData&&(_.K("web_use_response_store_for_history_cache")||_.K("mweb_use_new_history_manager"))){var I=_.ab().resolve(_.AM),J=onf(z),r=!!J;if(J){if(J.content){var P=nd(I,J.content);r&&P?z.rootData.response=_.Iv(P):r=!1}J.player&&(P=nd(I,J.player),r&&P?z.rootData.playerResponse=_.Iv(P):r=!1);J.reelSequence&&(I=nd(I,J.reelSequence),r&&I?z.rootData.reelWatchSequenceResponse=
_.Iv(I):r=!1)}r||(this.timeToDataCache.delete(a),z=void 0)}return z};
WCj.prototype.set=function(a,z){if(z.rootData&&(_.K("web_use_response_store_for_history_cache")||_.K("mweb_use_new_history_manager"))){var I=onf(z),J=Object.assign({},z.rootData);I&&(I.content&&z.rootData.response&&(U7X(this,I.content,z.rootData.response),J.response=null),I.player&&z.rootData.playerResponse&&(U7X(this,I.player,z.rootData.playerResponse),J.playerResponse=null),I.reelSequence&&z.rootData.reelWatchSequenceResponse&&(U7X(this,I.reelSequence,z.rootData.reelWatchSequenceResponse),J.reelWatchSequenceResponse=
null));z=new d7w(J,z.scrollTop)}this.timeToDataCache.has(a)?this.timeToDataCache.delete(a):this.timeToDataCache.size>=this.maxSize&&(I=this.timeToDataCache.keys().next(),this.timeToDataCache.delete(I.value));this.maxSize!==0&&this.timeToDataCache.set(a,z)};
WCj.prototype.clear=function(){this.timeToDataCache.clear()};
var onf=function(a){var z=_.ab().resolve(_.eL(Hq)),I;if((I=a.rootData)==null?0:I.endpoint)return z==null?void 0:NX0(z,a.rootData.endpoint);var J;_.Xd(new _.Fn("History snapshot response data does not contain endpoint",(J=a.rootData)==null?void 0:J.url));return null},U7X=function(a,z,I){if(a.maxSize>0){var J;
(a=(J=I.responseContext)==null?void 0:J.maxAgeSeconds)&&Number(a)>0&&(J=_.ab().resolve(_.AM),I=Nh(I,a),J.put(z,new _.s3(I)))}};var D7E=function(a,z,I){this.endpoint=z;this.JSC$30004_savedComponentState=I===void 0?null:I;this.entryTime=a};var sgm=1;var Kd=function(a){var z=function(){var I=a.apply(this,[].concat(_.ih(_.dO.apply(0,arguments))))||this;I.historyEntryTime=0;I.historySnapshotCache=I.createHistoryCache();return I};
_.b(z,a);z.prototype.createHistoryCache=function(){return new WCj};
z.prototype.saveAndReplace=function(I,J,r){var P=window.location.href;var N=N===void 0?{}:N;var u=(u=this.browserHistory.getState())&&u.entryTime?u.entryTime:nni();I=this.createNewHistoryEntry(I,N,u);this.saveSnapshot(u,J,r);this.replaceState(I,P||window.location.href)};
z.prototype.saveAndPush=function(I,J,r,P,N){N=N===void 0?{}:N;this.saveSnapshot(this.historyEntryTime,r,P);r=this.historySnapshotCache;P=this.historyEntryTime;var u=r.timeToDataCache.keys();u=_.C(u);for(var E=u.next();!E.done;E=u.next())E=E.value,E>P&&r.timeToDataCache.delete(E);J=this.createNewHistoryEntry(J,N);this.pushState(J,I)};
z.prototype.saveSnapshot=function(I,J,r){this.historySnapshotCache.set(I,new d7w(J,r))};
z.prototype.createNewHistoryEntry=function(I,J,r){r=r===void 0?nni():r;return new D7E(r,I,J)};
z.prototype.handlePopstate=function(I){var J=a.prototype.handlePopstate.call(this,I),r=null,P=null,N=!1,u=null;J&&J.entryTime&&(u=this.historySnapshotCache.get(J.entryTime)||null,N=J.entryTime>this.historyEntryTime,this.historyEntryTime=J.entryTime,r=J.endpoint,P=J.JSC$30004_savedComponentState);this.handleHistoryCacheLoad(new _.THj(r,N,u,P),I);return J};
z.prototype.pushState=function(I,J){Number(I==null?void 0:I.entryTime)>=0&&(this.historyEntryTime=I.entryTime);a.prototype.pushState.call(this,I,J)};
z.prototype.replaceState=function(I,J){Number(I==null?void 0:I.entryTime)>=0&&(this.historyEntryTime=I.entryTime);a.prototype.replaceState.call(this,I,J)};
z.prototype.handleHistoryCacheLoad=function(){};
return z}(fd),RUo=function(){var a=Kd.call(this,new XOJ)||this;
a.dispatchElement=null;a.entryIndex=0;return a};
_.b(RUo,Kd);_.Z=RUo.prototype;_.Z.init=function(a){a=a===void 0?!0:a;Kd.prototype.init.call(this);this.initialized||(a||this.saveAndReplace(null,null,0),"scrollRestoration"in window.history&&(window.history.scrollRestoration="manual"))};
_.Z.handlePopstate=function(a){var z=null;a.state||(z="History popstate has no state - "+this.getDebugString());if(!this.dispatchElement)return Kd.prototype.handlePopstate.call(this,a);var I=new CustomEvent("yt-history-pop",{cancelable:!0});_.ZF(this.dispatchElement,"yt-history-pop",[I,{errorMsg:z}]);_.Ct(this.dispatchElement,"yt-close-all-popups-action");if(!I.defaultPrevented){I=_.ab().resolve(_.aK);z=I.getCurrentData();var J=I.getCurrentPage();I=0;J?(J=_.ZF(this.dispatchElement,"yt-get-page-offset",
[J]),J.length>0&&(I=J[0])):_.Xd(new _.Fn("getCurrentPage returned undefined",{debugString:this.getDebugString(),page:z?z.page:"undefined"}));z&&(z.csn=_.TX());this.saveSnapshot(this.historyEntryTime,z,I)}return Kd.prototype.handlePopstate.call(this,a)};
_.Z.handleHistoryCacheLoad=function(a,z){a.forward?this.entryIndex++:this.entryIndex--;this.dispatchElement&&(_.C(_.Ct(this.dispatchElement,"yt-history-will-navigate",[z])).next().value||_.ZF(this.dispatchElement,"yt-history-load",[z,a]))};
_.Z.pushState=function(a,z){this.entryIndex++;if(!this.browserHistory.boundHistoryPushState){var I=new _.Fn("history.pushState is not a function",this.getDebugString());_.Gx(I)}Kd.prototype.pushState.call(this,a,z)};
_.Z.replaceState=function(a,z){if(!this.browserHistory.boundHistoryReplaceState){var I=new _.Fn("history.replaceState is not a function",this.getDebugString());_.Gx(I)}Kd.prototype.replaceState.call(this,a,z)};
_.Z.saveAndPush=function(a,z,I,J,r){r=r===void 0?{}:r;I&&(I.csn=_.TX());Kd.prototype.saveAndPush.call(this,a,z,I,J,r)};
_.Z.getDebugString=function(){var a=[];this.initialized&&a.push("i");this.browserHistory.boundHistoryReplaceState&&a.push("bhr");this.browserHistory.boundHistoryPushState&&a.push("bhs");"replaceState"in this.browserHistory.debugInfo&&a.push("brs:"+String(this.browserHistory.debugInfo.replaceState));"pushState"in this.browserHistory.debugInfo&&a.push("bps:"+String(this.browserHistory.debugInfo.pushState));this.entryIndex>0&&a.push("ei:"+String(this.entryIndex));return a.join(",")};
_.F3=function(a,z){a.init(!0);var I=a.browserHistory.getState();a.replaceState(I,CU(z))};
RUo.prototype.getThirdPartyManipulationSuspected=function(){return this.initialized&&this.browserHistory.getThirdPartyManipulationSuspected()};_.Hs=new _.I4("DESKTOP_HISTORY_MANAGER_TOKEN");var LCO=[10,20,30,40,50,60],bQ=function(){this.currentPartitionIndex=0},lpG=function(a){YTI({mainAppWeb:_.m1(),
survivalSli:{partitionMinute:a,survivalStatus:"SURVIVAL_STATUS_TYPE_ALIVE_START"}})},pOE=function(a){YTI({mainAppWeb:_.m1(),
survivalSli:{partitionMinute:a,survivalStatus:"SURVIVAL_STATUS_TYPE_ALIVE_END"}})},wOe=function(a){return a.currentPartitionIndex>=0&&a.currentPartitionIndex<LCO.length?LCO[a.currentPartitionIndex]:-1},m7w=function(a){return a.currentPartitionIndex>0&&a.currentPartitionIndex-1<LCO.length?LCO[a.currentPartitionIndex-1]:-1};
bQ.prototype.start=function(){if(this.intervalId===void 0){this.currentPartitionIndex=0;var a=m7w(this);a>0&&pOE(a);a=wOe(this);a>0&&lpG(a);ysw(this)}};
var ysw=function(a){var z=wOe(a);if(z>0){var I=m7w(a);I<0&&(I=0);a.intervalId=_.GW.addJob(function(){var J=m7w(a);J>0&&pOE(J);J=wOe(a);J>0&&lpG(J);ysw(a)},3,(z-I)*6E4);
a.currentPartitionIndex+=1}else a.currentPartitionIndex=-1};var kkO=function(){this.skipNextNavigation=!1},MOE=function(a,z,I){if(!z)return!1;
if(a.skipNextNavigation)return a.skipNextNavigation=!1;if(_.H(I,_.pv))return!1;var J,r,P;if((J=_.H(I,_.KH))==null?0:(r=J.browseEndpointContextSupportedConfigs)==null?0:(P=r.browseEndpointContextMainConfig)==null?0:P.skipConfirmation)return!1;var N;return((N=_.H(z.commandMetadata,_.O_))==null?void 0:N.webPageType)==="WEB_PAGE_TYPE_MINI_APP"};
kkO.prototype.showConfirmationDialog=function(a,z){this.navigateParams=z;this.customConfirmationCommand?_.ab().resolve(_.j6).resolveCommand(this.customConfirmationCommand):(z={openPopupAction:{popup:{confirmDialogRenderer:{title:_.Mo(_.AR("NAVIGATION_CONFIRMATION_TITLE")),dialogMessages:[_.Mo(_.AR("NAVIGATION_CONFIRMATION_DESCRIPTION"))],cancelButton:{buttonRenderer:{text:_.Mo(_.AR("CANCEL")),command:{signalAction:{signal:"CANCEL_NAVIGATION"}}}},confirmButton:{buttonRenderer:{text:_.Mo(_.AR("EXIT")),
command:{signalAction:{signal:"RESUME_NAVIGATION"}}}}}},popupType:"DIALOG"}},_.w2.getInstance().triggerAction("yt-open-popup-action",z,a))};
kkO.prototype.cancelPendingNavigation=function(){var a;((a=this.navigateParams)==null?void 0:a.navigationType)===2&&(this.skipNextNavigation=!0,this.navigateParams.isForwardHistoryNavigation?window.history.back():window.history.forward())};var csf=function(){},qUw=function(a,z,I,J,r,P,N){I=I===void 0?{}:I;
N=N===void 0?{}:N;var u=_.ir.instance,E,O=(E=_.H(z,_.pv))==null?void 0:E.url;return O?w7$(u,O,I,window.location.href,function(f,A){YUi(a,f,A,!1,!0,I,P,J)},function(){return!1}):Lh(u,z,I,window.location.href,Hh(z),function(f,A){YUi(a,f,A,!1,!0,I,P,J)},r,N)},YUi=function(a,z,I,J,r,P,N,u){if(!a.JSC$14352_chunkHandler)if(I.page==="watch"||I.page==="learning_journey_watch")if(r||J){if(_.K("kevlar_continue_playback_without_player_response")){var E;
var O=(E=_.H(u,_.MZ))==null?void 0:E.videoId}a.JSC$14352_chunkHandler=new nJo(_.zI,{clientParams:{miniplayer:!1,autoSaveToQueue:!0,fromHistory:J,previousVideoId:O},tempData:P},N)}else a.JSC$14352_chunkHandler=new gJj(_.zI);else I.page==="shorts"&&r&&!J?a.JSC$14352_chunkHandler=new sMG(_.zI,{clientParams:{miniplayer:!1,autoSaveToQueue:!1,fromHistory:!1},tempData:P},N):a.JSC$14352_chunkHandler=new OAi(N);a.JSC$14352_chunkHandler.processChunk({endpoint:z,data:I});return a.JSC$14352_chunkHandler.kC.promise},
eUI=function(a,z,I,J,r){(I=_.Cvw(I))&&YUi(a,z,I,!1,!0,J,void 0,r)};var aWf=function(){this.pendingNavigationPromise=null};
_.Z=aWf.prototype;_.Z.hasPendingNavigation=function(){return!!this.pendingNavigationPromise};
_.Z.cancelPendingNavigation=function(){this.pendingNavigationPromise&&(this.pendingNavigationPromise=null)};
_.Z.addEventListener=function(){throw Error("xh");};
_.Z.dispatchEvent=function(){throw Error("xh");};
_.Z.removeEventListener=function(){throw Error("xh");};var jFv=["__Secure-1PAPISID","SAPISID","__Secure-3PAPISID"],hM=function(){_.HV.call(this);this.pollingInterval=3E3;this.sessionCookies=[null,null,null];zuw(this)};
_.b(hM,_.HV);hM.prototype.verifyUser=function(){var a=zuw(this),z=a.logout;if(!a.sessionChange)return!0;this.dispatchEvent("ytsessionchange");z&&this.dispatchEvent("ytuserinvalid");return!1};
var zuw=function(a){var z=jFv.map(function(r){var P;return(P=_.f1.get(r))!=null?P:""}),I=z.some(function(r,P){return a.sessionCookies&&a.sessionCookies[P]!==""&&r===""}),J=z.some(function(r,P){return a.sessionCookies&&a.sessionCookies[P]!==r});
a.sessionCookies=z;return{logout:I,sessionChange:J}};
hM.prototype.clearTimeout=function(){this.scheduledJobId&&(_.GW.cancelJob(this.scheduledJobId),this.scheduledJobId=void 0)};var hUO=new _.I4("POSTMESSAGE_TUNNEL_TOKEN");var FCO=["/parent_tools","/file_download","/artist_roster"],SUE=[sEe,n7X,KdG,HGl,Fde,A1j,bGw,hIw];var IWj=new _.I4("APP_ROOT");var Vn=new _.I4("NAVIGATION_CONFIRMATION_SERVICE");var J_G="/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(" "),r_i=[{url:"/podcasts",expFlag:"enable_polymer_navigation_for_podcasts_destination_page"}],
Qn=function(a,z){this.pendingNavigationPromise=null;this.JSC$14370_clientRoot=a;this.historyManager=z;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 csf;this.debugString=a.is;a={"yt-signal-action-history-back":this.handleSignalActionHistoryBack,"yt-signal-action-reload-page":this.handleSignalActionReloadPage.bind(this),
"yt-signal-action-soft-reload-page":this.handleSignalActionSoftReloadPage.bind(this),"yt-signal-action-reset-warm-loads":this.handleSignalActionResetWarmLoads.bind(this),"yt-signal-action-close-window":this.handleSignalActionCloseWindow};_.m_(_.w2.getInstance(),a,this.JSC$14370_clientRoot)},tbe,uBo,E_I,B8E,N8e;
_.b(Qn,aWf);Qn.prototype.reload=function(){_.wY(window.location.href)};
var uEO=function(a){a.currentEndpoint&&_.H(a.currentEndpoint,_.hv)?a.reload():a.currentEndpoint&&a.navigate(a.currentEndpoint,!0,void 0,{disableCache:!0})};
Qn.prototype.navigate=function(a,z,I,J,r,P,N,u){z=z===void 0?!1:z;I=I===void 0?{}:I;J=J===void 0?{}:J;var E=_.ab().resolve(Vn),O;if(!N&&MOE(E,(O=this.currentEndpoint)!=null?O:void 0,a))return E.showConfirmationDialog(this.JSC$14370_clientRoot.parentElement,{endpoint:a,reload:z,params:I,tempData:J,requestType:r,createScreenConfig:P}),!1;var f=_.yT();_.k3(f,"eocs")||f.parkOrScheduleJob(function(){f.processSignal("eocs")},10,"eor");
N=Hh(a);E=J.autonav==="1";O=_.TX();hM.instance||(hM.instance=new hM);var A=hM.instance.verifyUser(),n;if(_.K("enable_dark_theme_only_on_shorts")){var F=document.documentElement.hasAttribute("dark"),h=_.xh(!0)==="USER_INTERFACE_THEME_DARK";if(N==="shorts"){if(!F)if(_.K("enable_dark_theme_only_on_shorts_control")){if(!window.location.href.includes("/shorts/")){var v;_.wY((v=_.H(a==null?void 0:a.commandMetadata,_.O_))==null?void 0:v.url,void 0,void 0,window.top)}}else{var d;_.wY(_.ms((d=_.H(a==null?
void 0:a.commandMetadata,_.O_))==null?void 0:d.url,{theme:"dark"}),void 0,void 0,window.top)}}else if(_.K("enable_dark_theme_only_on_shorts_control")){if(window.location.href.includes("/shorts/")&&!F){var W;_.wY(_.ms((W=_.H(a==null?void 0:a.commandMetadata,_.O_))==null?void 0:W.url,{themeRefresh:1}),void 0,void 0,window.top)}}else if(h!==F){var l;_.wY(_.ms((l=_.H(a==null?void 0:a.commandMetadata,_.O_))==null?void 0:l.url,{themeRefresh:1}),void 0,void 0,window.top)}}if(N==="watch"){if(Pij(_.ab().resolve(_.UJ),
a)&&(A||_.K("fix_miniplayer_navigation_killswitch")))return!1;_.K("block_all_player_prefetch_requests")||(n=Njl(_.ji(_.xo),a,E))}else{var q,m=(q=_.H(this.currentEndpoint,_.MZ))==null?void 0:q.videoId;m&&_.Xo.getInstance().then(function(bG){bG&&bG.set("yt-miniplayer-shown-video-id",m)})}n&&(I.frags=n.missingFragments_.join(","));
v=null;var M;d=(M=_.H(a==null?void 0:a.commandMetadata,_.O_))==null?void 0:M.ignoreNavigation;if(!d)if(_.K("kevlar_command_url")){var y;v=(y=_.H(a==null?void 0:a.commandMetadata,_.O_))==null?void 0:y.url}else v=_.xh3(a,I);if(v&&this.pendingNavigationPromise){if(this.lastNavigationUrl&&v==this.lastNavigationUrl)return _.Gb({navigationRequestedSameUrl:!0}),!1;this.pendingNavigationPromise.cancel("canceled pendingNavigationPromise");_.ug(RA(),"CANCELLED")}v&&(this.lastNavigationUrl=v);JM7();_.$S("IS_HOMEPAGE_COLD",
!1);_.$S("IS_RESULTS_PAGE_COLD",!1);_.$S("IS_WATCH_PAGE_COLD",!1);a.loggingUrls&&a.loggingUrls.forEach(function(bG){bG.baseUrl&&_.lP(bG.baseUrl)});
_.GkO(a,P?P.layer:0)&&_.K("kevlar_flush_logs_on_away_navigation")&&_.va();if(ijE(a))return!1;l3G(N,r);if(!v)return d||_.Xd(new _.Fn("Can't construct url for endpoint",a)),_.ug(RA(),"FAILURE"),!1;_.KCi();M=a&&_.H(a,_.KH)&&_.H(a,_.KH).browseId.startsWith("UC");I=(y=_.K("enable_dark_theme_only_on_shorts")&&N==="shorts"?!1:_.vh()&&document.documentElement.hasAttribute("dark")!==_.ik())?{themeRefresh:1}:{};y&&!_.sz()&&_.xh()==="USER_INTERFACE_THEME_DARK"&&(I.theme="dark");M=y||ZrX(v)&&!M&&!_.K("kevlar_disable_url_allowlist");
A||(M=!0);if(M||_.Xw("DISABLE_WARM_LOADS")||this.resetWarmLoads){if(window.self!==window.top){try{var e;var Bp=(e=window.top)==null?void 0:e.location.href}catch(bG){var Em;Bp=(Em=bG)==null?void 0:Em.message}_.Xd(new _.Fn("Attempting to redirect in iframe",{selfUrl:window.self.location.href,topUrl:Bp}))}a=_.K("kevlar_redirect_on_window_killswitch")?window.top:window;pH(v);_.wY(_.ms(v,I),void 0,void 0,a);_.ug(RA(),"ABORTED");return!1}_.K("kevlar_early_popup_close")&&_.ZF(this.JSC$14370_clientRoot,"yt-close-all-popups-action",
[["ytd-video-download-toast-renderer"]]);this.pageFetcher.JSC$14352_chunkHandler=void 0;var nG;Bp=Hh((nG=this.currentEndpoint)!=null?nG:void 0);(nG=N==="shorts"&&Bp==="shorts")||_.IfM();_.Ue(l4x)("nr",void 0);E&&_.Gb({webInfo:{navigationReason:"an"}});a.clickTrackingParams&&(J.itct=a.clickTrackingParams,J.csn=O);OOG(J);J.endpoint=JSON.stringify(a);_.K("enable_unknown_lact_fix_on_html5")&&(_.ab().resolve(_.V7),J.lact=_.IO());_.x8.isEmpty(J)||_.el(v,J);!_.K("disable_miniplayer_expansion_log")&&this.isMiniplayerExpansion&&
(P=Object.assign({},{layer:0},P,{parentLayer:3}));this.pendingNavigationPromise=P=qUw(this.pageFetcher,a,J,this.currentEndpoint,this.JSC$14370_isNetworkPromiseStale.bind(this),P,u);P=P.then(this.handleNavigateSuccess.bind(this,P,a,n,J),this.handleNavigateFail.bind(this,P,a));_.hq().navigationFinishPromise=P;z={endpoint:a,pageType:N,url:CU(v),reload:!!z,noProgressBar:nG};r&&(z.type=r);this.fireEvent("yt-navigate-start",z);n&&eUI(this.pageFetcher,a,n,J,this.currentEndpoint);return!0};
Qn.prototype.JSC$14370_isNetworkPromiseStale=function(a){return a!=this.pendingNavigationPromise};
var CiJ=function(a,z,I,J,r){var P=Hh(z);z={endpoint:z,pageType:P};r&&(z.errorMessage=r);_.Xd(I);z.navigationDoneMs=_.Xz("nd");z.navigationErrorReason=J;a.fireEvent("yt-navigate-error",z)};
Qn.prototype.handleNavigateFail=function(a,z,I){var J=void 0;I instanceof _.Lc&&(J=I,SNG(I));if(this.JSC$14370_isNetworkPromiseStale(a))return _.xN(J);_.ug(RA(),"FAILURE");CiJ(this,z,I,"101");return _.xN(I)};
Qn.prototype.handleNavigateSuccess=function(a,z,I,J,r){if(this.JSC$14370_isNetworkPromiseStale(a))return _.uI();this.pendingNavigationPromise=null;if(!r)return z=new _.Fn("Missing data in response for navigation endpoint",z),_.xN(z);if(r.reload)return window.location.reload(!0),_.uI();I&&(a={},_.x8.extend(a,_.Cvw(I),r),r=a);var P,N;I=(P=r)==null?void 0:(N=P.timing)==null?void 0:N.responseStart;I!=null&&_.Xz("srt",I);_.Xz("pdc");var u,E;P=(u=r)==null?void 0:(E=u.timing)==null?void 0:E.info;P!=null&&
(u=_.Ue(_.yXI)(P),_.Gb(u));_.ug(RA(),"SUCCESS");N8e(this,z,r,1,J);return _.uI()};
var ZrX=function(a){var z=a;_.K("kevlar_no_redirect_to_classic_2_ks")||(z=(new _.cJ(a)).getPath());if(z==="/"||z==="/red")return!1;var I=!0;J_G.forEach(function(J){a.indexOf(J)===0&&(I=!1)});
r_i.forEach(function(J){var r=J.url;_.K(J.expFlag)&&a.indexOf(r)===0&&(I=!1)});
return I};
Qn.prototype.publishPageData=function(a){this.fireEvent("yt-page-data-fetched",{pageData:a})};
tbe=function(a,z,I,J,r,P){var N=null;z.page!=="watch"&&z.page!=="learning_journey_watch"||J?z.filler||_.ZF(a.JSC$14370_clientRoot,"yt-stop-old-player",[z]):N=YUi(a.pageFetcher,r,z,I,!1,P,void 0,a.currentEndpoint);if(N)return N.then(a.publishPageData.bind(a,z));a.publishPageData(z);return _.uI()};
uBo=function(a,z,I){var J=null;if(!I)return J=new _.Fn("Empty data",a.debugString,z);var r=I.response;if(!r)return J;var P={endpointType:Hh(z)||"unknown"};r.responseContext?(r=r.responseContext.errors)&&(J=new _.Fn("Errors in response context",a.debugString,z,r,P)):J=r.error||r.errorMetadata?new _.Fn("Errors in response",a.debugString,z,r.error,r.errorMetadata,P):new _.Fn("responseContext missing",a.debugString,z,Object.keys(r).sort().join(","),P);var N,u,E,O;if(a=I==null?void 0:(N=I.response)==null?
void 0:(u=N.responseContext)==null?void 0:(E=u.webResponseContextExtensionData)==null?void 0:(O=E.webResponseContextDebugData)==null?void 0:O.debugErrorMessages)for(N=0;N<a.length;N++);return J};
E_I=function(a){var z,I,J,r;return a==null?void 0:(z=a.response)==null?void 0:(I=z.responseContext)==null?void 0:(J=I.errors)==null?void 0:(r=J.error)==null?void 0:r["0"]};
B8E=function(a,z){var I;if(I=z.url&&!z.url.startsWith("/clip"))I=z.url,I=!_.K("webfe_parse_debug_param_in_resolveurl_service")&&a.searchDebugUrlMatcher.test(I)||W8$(I)?!0:!1;if(I)W8$(z.url)&&_.wq(window.location.href).themeRefresh?(z=_.a_(z.url,"themeRefresh"),_.F3(a.historyManager,z)):z.url&&!fp1(z.url)&&_.F3(a.historyManager,z.url);else if(z.endpoint){var J,r,P;(I=(J=z.endpoint)==null?void 0:(r=J.commandMetadata)==null?void 0:(P=r.webCommandMetadata)==null?void 0:P.url)&&!fp1(I)&&_.F3(a.historyManager,
I);I&&z.url&&I!=z.url&&!z.url.match("playnext=1")&&new _.Fn("Response url mismatch in response data",a.debugString,I,z.url)}};
_.g_1=function(a,z,I,J,r,P,N,u){P=P===void 0?!1:P;var E=_.ab().resolve(Vn),O;if(!u&&MOE(E,(O=a.currentEndpoint)!=null?O:void 0,z))return E.showConfirmationDialog(a.JSC$14370_clientRoot.parentElement,{endpoint:z,data:I,navigationType:J,tempData:r,isMiniplayer:P,isForwardHistoryNavigation:N==null?void 0:N.forward}),_.uI();a.pageFetcher.JSC$14352_chunkHandler=void 0;return N8e(a,z,I,J,r,P)};
N8e=function(a,z,I,J,r,P){P=P===void 0?!1:P;a.isMiniplayerExpansion=P;var N=J===2;a.currentEndpoint=z;a.numNavigations++;a.numNavigations&&(zPM.navigationCount=a.numNavigations);_.$S("NUM_NAV",a.numNavigations);var u=uBo(a,z,I);if(u)return CiJ(a,z,u,"102",E_I(I)),_.xN(u);var E,O,f,A;u=I.rootVe||(I==null?void 0:(E=I.response)==null?void 0:(O=E.responseContext)==null?void 0:(f=O.webResponseContextExtensionData)==null?void 0:(A=f.ytConfigData)==null?void 0:A.rootVisualElementType);!N&&I&&B8E(a,I);var n,
F;E=I==null?void 0:(n=I.response)==null?void 0:(F=n.responseContext)==null?void 0:F.maxAgeSeconds;if(!N&&!isNaN(E)){var h;_.K("kevlar_use_response_ttl_to_invalidate_cache")?h=(0,_.jp)()+1E3*E:_.K("kevlar_always_invalidate_cache")&&(h=0);isNaN(h)||(I.expirationTime=h)}_.ji(_.xo).prefetchCache_.clear();N||I.page!=="watch"||I.type!=="reduced"&&J!==1?J=tbe(a,I,N,!!P,z,r):(a.publishPageData(I),J=_.uI());r=J.then(function(){var v=Hh(z);v={endpoint:z,pageType:v,fromHistory:N,response:I};v.navigationDoneMs=
_.Xz("nd");a.fireEvent("yt-navigate-finish",v)});
I.csn&&u&&I.clientSideGrafts&&J.then(a.attachClientSideGrafts.bind(a,I,_.XZ()));return r};
_.Z=Qn.prototype;_.Z.attachClientSideGrafts=function(a,z){a.clientSideGrafts&&z&&a.clientSideGrafts.forEach(function(I){if(z&&I){var J=_.VX(I);_.K("combine_ve_grafts")?_.Kw().graftServerVe(I,z):_.Lt(a.csn,z,J)}})};
_.Z.handleSignalActionHistoryBack=function(){window.history.back()};
_.Z.handleSignalActionCloseWindow=function(){window.close()};
_.Z.handleSignalActionReloadPage=function(){this.reload()};
_.Z.handleSignalActionSoftReloadPage=function(){uEO(this)};
_.Z.handleSignalActionResetWarmLoads=function(){this.resetWarmLoads=!0};
_.Z.fireEvent=function(a,z){a=new CustomEvent(a,{bubbles:!0,cancelable:!1,composed:!0,detail:z});this.dispatchEvent(a)};
_.Z.addEventListener=function(a,z){this.JSC$14370_clientRoot.addEventListener(a,z)};
_.Z.dispatchEvent=function(a){return this.JSC$14370_clientRoot.dispatchEvent(a)};
_.Z.removeEventListener=function(a,z){this.JSC$14370_clientRoot.removeEventListener(a,z)};
Qn[zp]=[IWj,_.Hs];_.kuG=new E4("browse","h8y2qb");_.M5O=new E4("search","JzFVk");_.c8d=new E4("shorts","xwEKAe");_.YKx=new E4("watchFixie","nmfa2d");_.qKm=new E4("watchFlexy","CF909");_.eaM=new E4("watchGrid","Tm0L3c");_.anO=new E4("watchLearningJourney","L3n37");var Orw;var fWv=function(){return _.G.apply(this,arguments)||this};
_.b(fWv,_.G);_.eH.Object.defineProperties(fWv,{template:{configurable:!0,enumerable:!0,get:function(){if(Orw===void 0){var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-player--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="container" class="style-scope ytd-player">\n  \n</div>\n');a.content.insertBefore(_.w().content.cloneNode(!0),a.content.firstChild);Orw=a}a=Orw;return a}}});
_.L([_.Q(fpo.YtPlayerBehavior),_.p("design:type",Object)],fWv.prototype,"ytPlayerBehavior",void 0);_.L([_.U({is:"ytd-player"})],fWv);var A_f;var sFv;var n_i;var Sz=function(){var a=_.G.apply(this,arguments)||this;a.forceModernIconButton=!1;a.actionMap={"yt-account-linking-state-changed-command":"handleAccountLinkingStateChangedCommand","yt-signal-action-show-account-link-dialog":"handleShowAccountLinkDialog"};return a};
_.b(Sz,_.G);Sz.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]]"}}}}}};
Sz.prototype.handleAccountLinkingStateChangedCommand=function(a){if(a=_.H(a,rAJ)){var z,I=(z=this.data)==null?void 0:z.providerKey;z=a.providerKey;I&&z&&I.id===z.id&&I.subject===z.subject&&(a=a.linked,a!==void 0&&(this.set("data.linked",a),this.notifyPath("data.linked"),_.K("enable_account_linking_warning_account_link_button")&&(this.set("data.is_warning",!1),this.notifyPath("data.is_warning")),this.setPlayerAccountLinkState(a)))}};
Sz.prototype.setPlayerAccountLinkState=function(a){var z=new eew;a4i(z,Y9X(new cAI,a));var I=_.zI();I&&I.getPlayerPromise().then(function(J){J.setAccountLinkState(_.he(z.JSC$12067_serializeBinary(),4));J.updateAccountLinkingConfig(a)})};
Sz.prototype.handleShowAccountLinkDialog=function(){var a=this.get("button.buttonRenderer.command");a&&_.BA([a],this.hostElement)};
_.eH.Object.defineProperties(Sz.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}}}});
_.L([_.Q(_.u4.YtRendererstamperBehavior),_.p("design:type",Object)],Sz.prototype,"ytRendererstamperBehavior",void 0);_.L([_.Q(_.k.YtRendererBehavior),_.p("design:type",Object)],Sz.prototype,"ytRendererBehavior",void 0);_.L([_.Q([_.Hc.YtActionHandlerBehavior]),_.p("design:type",Object)],Sz.prototype,"actionHandlerBehavior",void 0);_.L([_.x(),_.p("design:type",Object)],Sz.prototype,"data",void 0);_.L([_.x(),_.p("design:type",Object)],Sz.prototype,"overrides",void 0);
_.L([_.x({reflectToAttribute:!0}),_.p("design:type",Object)],Sz.prototype,"forceModernIconButton",void 0);_.L([_.x({value:"bottom"}),_.p("design:type",String)],Sz.prototype,"buttonTooltipPosition",void 0);_.L([_.x({value:!1}),_.p("design:type",Boolean)],Sz.prototype,"forceIconButton",void 0);_.L([_.x(),_.p("design:type",Boolean)],Sz.prototype,"disableTextTransform",void 0);
_.L([_.S("data","data.linked","data.isWarning"),_.p("design:type",Object),_.p("design:paramtypes",[])],Sz.prototype,"button",null);_.L([_.U({is:"ytd-account-link-button-renderer",disableElementRegistration:!0})],Sz);
_.D(Sz,"ytd-account-link-button-renderer",function(){if(n_i!==void 0)return n_i;var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-account-link-button-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="button" class="style-scope ytd-account-link-button-renderer"></div>\n');a.content.insertBefore(_.w().content.cloneNode(!0),a.content.firstChild);return n_i=a},{mode:1});var KIj;var FIj=["PLAYLIST_LOOP_STATE_ONE","PLAYLIST_LOOP_STATE_ALL"],iQ=function(){return _.G.apply(this,arguments)||this};
_.b(iQ,_.G);iQ.prototype.configureRendererStamper=function(){return{"currentButtonStateRenderer.button":{id:"button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{buttonTooltipPosition:"bottom"},properties:{forceIconOnly:"[[forceIconOnly]]"}}}}}};
iQ.prototype.updateButtonActiveState=function(){var a=this,z=!!FIj.find(function(I){return a.currentState===I});
this.button&&(this.button.isPressed=z)};
_.eH.Object.defineProperties(iQ.prototype,{currentState:{configurable:!0,enumerable:!0,get:function(){var a,z;return((a=this.playlistLoopStateEntity)==null?void 0:a.state)||((z=this.data)==null?void 0:z.currentState)}},
currentButtonStateRenderer:{configurable:!0,enumerable:!0,get:function(){var a=void 0,z;if(this.currentState&&((z=this.data)==null?0:z.states)){z=_.C(this.data.states);for(var I=z.next();!I.done;I=z.next()){I=_.H(I.value,_.hnI);var J=void 0;if(((J=I)==null?void 0:J.state)===this.currentState){a=I;break}}}return a}}});
iQ.prototype.updateButtonActiveState=iQ.prototype.updateButtonActiveState;_.L([_.Q(_.pV),_.p("design:type",Object)],iQ.prototype,"ytdReduxBehavior",void 0);_.L([_.Q(_.k.YtRendererBehavior),_.p("design:type",Object)],iQ.prototype,"ytRendererBehavior",void 0);_.L([_.Q(_.u4.YtRendererstamperBehavior),_.p("design:type",Object)],iQ.prototype,"ytRendererstamperBehavior",void 0);
_.L([_.x({selectorArgs:["data.playlistLoopStateEntityKey"],selector:_.U7d}),_.p("design:type",Object)],iQ.prototype,"playlistLoopStateEntity",void 0);_.L([_.x(),_.p("design:type",Object)],iQ.prototype,"data",void 0);_.L([_.x(),_.p("design:type",Boolean)],iQ.prototype,"forceIconOnly",void 0);_.L([_.A3("ytd-button-renderer"),_.p("design:type",_.Ze)],iQ.prototype,"button",void 0);
_.L([_.S("data","playlistLoopStateEntity"),_.p("design:type",Object),_.p("design:paramtypes",[])],iQ.prototype,"currentState",null);_.L([_.O8("currentButtonStateRenderer"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],iQ.prototype,"updateButtonActiveState",null);_.L([_.S("currentState"),_.p("design:type",Object),_.p("design:paramtypes",[])],iQ.prototype,"currentButtonStateRenderer",null);
_.L([_.U({is:"ytd-playlist-loop-button-renderer",disableElementRegistration:!0})],iQ);
_.D(iQ,"ytd-playlist-loop-button-renderer",function(){if(KIj!==void 0)return KIj;var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-playlist-loop-button-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="button" class="style-scope ytd-playlist-loop-button-renderer"></div>\n');a.content.insertBefore(_.w().content.cloneNode(!0),a.content.firstChild);return KIj=a},
{mode:1});var Hri;var brv=_.AR("DOWNLOAD",{},"Download"),huO=_.AR("DOWNLOADING",{},"Downloading"),Vb1=_.AR("DOWNLOADED",{},"Downloaded"),QFO=_.AR("RETRY",{},"Retry"),xa=function(){var a=_.G.apply(this,arguments)||this;a.forceIconButton=!1;a.forceIconOnly=!1;a.overrides=!1;a.buttonTooltipPosition=!1;a.styleActionButton=!1;a.disableTextTransform=!1;a.downloadProgress=0;a.isDownloadComplete=!1;a.isHidden=!0;a.transferState="TRANSFER_STATE_UNKNOWN";a.isVideoDeletedByUser=!1;a.offlineabilityState="ADD_TO_OFFLINE_BUTTON_STATE_UNKNOWN";
return a};
_.b(xa,_.G);_.Z=xa.prototype;_.Z.attached=function(){this.hostElement.hasAttribute("button-renderer")||this.hostElement.setAttribute("button-renderer","true")};
_.Z.dataChanged=function(){var a;(a=this.data)!=null&&a.text||(a=_.oU(_.qo().getState(),this.videoId),this.updateButtonState(a))};
_.Z.computeVideoId=function(a){return a};
_.Z.showHideButton=function(){this.updateButtonVisibility()};
_.Z.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};
_.Z.onTransferStateChanged=function(){this.updateButtonState(this.transferState)};
_.Z.updateButtonState=function(a){if(this.data&&(this.ytRendererBehavior.getSimpleString(this.data.text)!==huO||!_.Hd(a))){this.updateButtonVisibility();this.isDownloadComplete=!1;switch(a){case "TRANSFER_STATE_UNKNOWN":a=brv;var z="OFFLINE_DOWNLOAD";var I="ACTION_ADD";break;case "TRANSFER_STATE_FAILED":a=QFO;z="OFFLINE_DOWNLOAD";I="ACTION_RETRY";break;case "TRANSFER_STATE_COMPLETE":a=Vb1;z="OFFLINE_PIN";I="ACTION_REMOVE_WITH_PROMPT";this.isDownloadComplete=!0;break;case "TRANSFER_STATE_TRANSFERRING":case "TRANSFER_STATE_TRANSFER_IN_QUEUE":a=
huO;z="OFFLINE_DOWNLOADING_ZERO";I="ACTION_REMOVE_WITH_PROMPT";break;case "TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH":a=QFO;z="OFFLINE_DOWNLOAD";I="ACTION_RETRY";break;default:a=brv,z="OFFLINE_DOWNLOAD",I="ACTION_ADD"}this.isVideoDeletedByUser&&(a=brv,z="OFFLINE_DOWNLOAD",I="ACTION_ADD");var J=Object.assign({},this.data);J.text=_.Mo(a);J.tooltip=a;J.icon={iconType:z};J.size="SIZE_DEFAULT";J.style="STYLE_DEFAULT";_.H(J.command,_.fU)&&(_.H(J.command,_.fU).action=I);this.set("data",J)}};
_.Z.updateProgress=function(){if(this.data){this.isDownloadComplete=!1;var a="OFFLINE_DOWNLOAD";this.downloadProgress>0&&this.downloadProgress<=.1?a="OFFLINE_DOWNLOADING_ZERO":this.downloadProgress>.1&&this.downloadProgress<=.3?a="OFFLINE_DOWNLOADING_TWENTY":this.downloadProgress>.3&&this.downloadProgress<=.5?a="OFFLINE_DOWNLOADING_FORTY":this.downloadProgress>.5&&this.downloadProgress<=.7?a="OFFLINE_DOWNLOADING_SIXTY":this.downloadProgress>.7&&this.downloadProgress<1?a="OFFLINE_DOWNLOADING_EIGHTY":
this.downloadProgress===1&&(a="OFFLINE_PIN",this.isDownloadComplete=!0);var z;a!==((z=this.data.icon)==null?void 0:z.iconType)&&(z=Object.assign({},this.data),z.text=_.Mo(huO),z.tooltip=huO,z.icon={iconType:a},_.H(z.command,_.fU)&&(_.H(z.command,_.fU).action="ACTION_REMOVE_WITH_PROMPT"),this.set("data",z))}};
xa.prototype.updateProgress=xa.prototype.updateProgress;xa.prototype.onTransferStateChanged=xa.prototype.onTransferStateChanged;xa.prototype.showHideButton=xa.prototype.showHideButton;xa.prototype.dataChanged=xa.prototype.dataChanged;_.L([_.Q(_.k.YtRendererBehavior),_.p("design:type",Object)],xa.prototype,"ytRendererBehavior",void 0);_.L([_.Q(_.pV),_.p("design:type",Object)],xa.prototype,"ytdReduxBehavior",void 0);_.L([_.x(),_.p("design:type",Object)],xa.prototype,"forceIconButton",void 0);
_.L([_.x(),_.p("design:type",Object)],xa.prototype,"forceIconOnly",void 0);_.L([_.x(),_.p("design:type",Object)],xa.prototype,"overrides",void 0);_.L([_.x(),_.p("design:type",Object)],xa.prototype,"buttonTooltipPosition",void 0);_.L([_.x(),_.p("design:type",Object)],xa.prototype,"styleActionButton",void 0);_.L([_.x(),_.p("design:type",Object)],xa.prototype,"disableTextTransform",void 0);
_.L([_.x({computed:"computeVideoId(data.command.offlineVideoEndpoint.videoId)"}),_.p("design:type",String)],xa.prototype,"videoId",void 0);_.L([_.x(),_.p("design:type",Object)],xa.prototype,"data",void 0);_.L([_.x({selector:DY,selectorArgs:["videoId"]}),_.p("design:type",Object)],xa.prototype,"downloadProgress",void 0);_.L([_.x({reflectToAttribute:!0}),_.p("design:type",Object)],xa.prototype,"isDownloadComplete",void 0);
_.L([_.x({reflectToAttribute:!0}),_.p("design:type",Object)],xa.prototype,"isHidden",void 0);_.L([_.x({selector:_.oU,selectorArgs:["videoId"]}),_.p("design:type",String)],xa.prototype,"transferState",void 0);_.L([_.x({selector:_.ZNM,selectorArgs:["videoId"]}),_.p("design:type",Object)],xa.prototype,"isVideoDeletedByUser",void 0);_.L([_.x({selector:jD7,selectorArgs:["videoId"]}),_.p("design:type",Object)],xa.prototype,"offlineabilityState",void 0);
_.L([_.x({value:!0}),_.p("design:type",Boolean)],xa.prototype,"showTooltips",void 0);_.L([_.x({value:!0}),_.p("design:type",Boolean)],xa.prototype,"sendCommandWhenDisabled",void 0);_.L([_.x({value:!1}),_.p("design:type",Boolean)],xa.prototype,"disabled",void 0);_.L([_.Fe("data"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],xa.prototype,"dataChanged",null);
_.L([_.Fe("offlineabilityState"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],xa.prototype,"showHideButton",null);_.L([_.Fe("transferState","isVideoDeletedByUser"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],xa.prototype,"onTransferStateChanged",null);_.L([_.Fe("downloadProgress"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],xa.prototype,"updateProgress",null);
_.L([_.U({disableElementRegistration:!0,is:"ytd-download-button-renderer"})],xa);
_.D(xa,"ytd-download-button-renderer",function(){if(Hri!==void 0)return Hri;var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-download-button-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<ytd-button-renderer button-tooltip-position="[[buttonTooltipPosition]]" data="[[data]]" disable-text-transform="[[disableTextTransform]]" disabled="[[disabled]]" force-icon-button="[[forceIconButton]]" force-icon-only="[[forceIconOnly]]" force-modern-icon-button="" overrides="[[overrides]]" style-action-button="[[styleActionButton]]" class="style-scope ytd-download-button-renderer"></ytd-button-renderer>');a.content.insertBefore(_.w().content.cloneNode(!0),
a.content.firstChild);return Hri=a},{mode:2});var SDX;var irI,xd1=function(){if(irI!==void 0)return irI;var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e<yt-button-shape data="[[computedButtonShape]]" icon-name="[[computedIcon]]">\n</yt-button-shape>\n<tp-yt-paper-tooltip disable-upgrade$="[[!tooltip]]" fit-to-visible-bounds="" offset="8" position="[[buttonTooltipPosition]]">[[tooltip]]</tp-yt-paper-tooltip>\n');return irI=a};var v_j=_.K("web_button_rework")&&_.TZ("BUTTON_REWORK")||_.K("web_button_rework_with_live"),GhE=_.Ib("dynamic_metadata_update_interaction_delay_period_sec",5)*1E3,vs=function(){var a=_.G.apply(this,arguments)||this;a.isPressed=!1;a.forceIconButton=!1;a.forceIconOnly=!1;a.forceModernIconButton=!1;a.alignByText=!1;a.isShorts=!1;a.animatedText=!1;a.shouldAnimate=!1;a.JSC$14407_browserSupportsAnimation=_.K("web_supports_animations_api");a.actionMap={"yt-update-toggle-button-text-action":"handleUpdateToggleButtonTextAction",
"yt-update-toggle-button-state-command":"handleUpdateToggleButtonStateCommand"};a.onTap=function(){var z;if((z=a.data)==null||!z.defaultNavigationEndpoint){var I;z=!((I=a.data)==null?0:I.isToggled);var J;if((J=a.data)==null||!J.preventAutoToggle){a.shouldAnimate=!1;a.disableTextUpdateJobId&&_.GW.cancelJob(a.disableTextUpdateJobId);a.disableTextUpdateJobId=_.GW.addLowPriorityJob(function(){a.disableTextUpdateJobId=void 0},GhE);
var r;a.set("data.isToggled",!((r=a.data)==null?0:r.isToggled));I=a.getInnertubeIcon();J={toggled:z,actions:{}};I&&(J.actions[I.toLowerCase()]=z);_.PA(a.hostElement,"yt-toggle-button",J)}}};
return a};
_.b(vs,_.G);_.Z=vs.prototype;_.Z.resetAnimation=function(){this.shouldAnimate=!1;this.disableTextUpdateJobId&&(_.GW.cancelJob(this.disableTextUpdateJobId),this.disableTextUpdateJobId=void 0)};
_.Z.attached=function(){this.hostElement.hasAttribute("button-renderer")||this.hostElement.setAttribute("button-renderer","true")};
_.Z.toggle=function(a){var z;this.set("data.isToggled",a!==void 0?a:!((z=this.data)==null?0:z.isToggled))};
_.Z.handleUpdateToggleButtonStateCommand=function(a){if(this.data){a=_.H(a,ORI);var z,I,J,r=(z=this.data)==null?void 0:(I=z.toggleButtonSupportedData)==null?void 0:(J=I.toggleButtonIdData)==null?void 0:J.id;r&&a&&r===(a==null?void 0:a.buttonId)&&this.set("data.isToggled",a.toggled)}};
_.Z.handleUpdateToggleButtonTextAction=function(a){if(this.data){a=_.H(a,rtI);var z,I,J,r=(z=this.data)==null?void 0:(I=z.toggleButtonSupportedData)==null?void 0:(J=I.toggleButtonIdData)==null?void 0:J.id;r&&a&&r===(a==null?void 0:a.buttonId)&&!this.disableTextUpdateJobId&&(this.shouldAnimate=!0,this.textNumberValue=a.defaultNumericalValue,this.set("data.defaultText",a.defaultText),this.set("data.toggledText",a.toggledText),this.shouldAnimate=!1)}};
_.Z.getInnertubeIcon=function(){var a=this.data;if(a){var z,I,J=((z=a.defaultIcon)==null?0:z.iconType)?(I=a.defaultIcon)==null?void 0:I.iconType:null,r,P;z=((r=a.toggledIcon)==null?0:r.iconType)?(P=a.toggledIcon)==null?void 0:P.iconType:J;return a.isToggled?z:J}};
_.Z.computeTooltip=function(){return this.data?this.data.isToggled&&this.data.toggledTooltip||this.data.defaultTooltip||null:null};
_.eH.Object.defineProperties(vs.prototype,{computedButtonShape:{configurable:!0,enumerable:!0,get:function(){if(this.data){var a={renderer:this.data,element:this.hostElement,toggled:!!this.data.isToggled,onTapCallback:this.onTap,overrides:this.overrides,forceIcon:this.forceIconButton||this.forceIconOnly,forceModernIconButton:this.forceModernIconButton,forceDisabled:this.disabled,nextVersion:!0,useAnimatedText:this.animatedText&&this.JSC$14407_browserSupportsAnimation,animatedTextProps:{numberText:"",
numberValue:Number(this.textNumberValue),heightPx:36,shouldAnimate:this.shouldAnimate}};var z=a.renderer;var I=a.element;var J=a.toggled;var r=a.onTapCallback;var P=a.commandClientArgs;var N=a.overrides;var u=a.forceIcon;var E=a.forceModernIconButton;var O=a.forceDisabled;var f=a.useAnimatedText;var A=a.animatedTextProps;a=lp7(z,J);u=!z.defaultIcon||!u&&z.defaultText?z.defaultIcon?"leading":void 0:E?"icon-only":"icon-only-40";u==="icon-only-40"&&(a.type="text");var n;E=Object;var F=E.assign,h;a:switch((h=
z.style)==null?void 0:h.styleType){case "STYLE_COMPACT_GRAY":h={size:"S"};break a;default:h={size:"M"}}var v=!!J;var d=(d=J&&z.toggledText||z.defaultText)?_.XJ(d):void 0;f?(f=_.cd(J&&z.toggledText||z.defaultText))&&A&&!isNaN(Number(A.numberValue))?(A.numberText=f,J&&(A.numberValue+=1),f=A):f=void 0:f=void 0;var W,l,q,m;var M=(A=((l=J?z.toggledAccessibilityData||((M=z.toggledText)==null?void 0:M.accessibility):z.accessibilityData||((W=z.defaultText)==null?void 0:W.accessibility))==null?void 0:(q=l.accessibilityData)==
null?void 0:q.label)||((m=z.accessibility)==null?void 0:m.label))?A:_.cd(J&&z.toggledText||z.defaultText);O=O===void 0?z.isDisabled:O;I=LCm(z,J,r,I,P);J=RU1(z,J);J!=null&&J.length?(J=_.R0({innertubeCommand:G67(J),forceNewState:!0}),J=Lw(J)?J:void 0):J=void 0;z=F.call(E,{},a,h,{iconPosition:u},N,{focused:!1,toggled:v,toggleable:!0,formattedButtonText:d,animatedTextProps:f,accessibilityLabel:M,disabled:O,onTap:I,aTagConfig:J},aBd((n=z.colorData)==null?void 0:n.basicColorPaletteData));z.alignByText=
this.alignByText;this.isShorts&&this.data.isToggled&&(z.type="filled");return z}}},
computedIcon:{configurable:!0,enumerable:!0,get:function(){var a=this.getInnertubeIcon();if(a)return _.Bl(a)}}});
vs.prototype.resetAnimation=vs.prototype.resetAnimation;_.L([_.Q(_.Ms.YtComponentBehavior),_.p("design:type",Object)],vs.prototype,"ytComponentBehavior",void 0);_.L([_.Q(_.k.YtRendererBehavior),_.p("design:type",Object)],vs.prototype,"ytRendererBehavior",void 0);_.L([_.Q(_.Hc.YtActionHandlerBehavior),_.p("design:type",Object)],vs.prototype,"ytActionHandlerBehavior",void 0);_.L([_.x(),_.p("design:type",Object)],vs.prototype,"data",void 0);
_.L([_.x(),_.p("design:type",Object)],vs.prototype,"isPressed",void 0);_.L([_.x(),_.p("design:type",Object)],vs.prototype,"forceIconButton",void 0);_.L([_.x(),_.p("design:type",Object)],vs.prototype,"forceIconOnly",void 0);_.L([_.x(),_.p("design:type",Object)],vs.prototype,"forceModernIconButton",void 0);_.L([_.x(),_.p("design:type",Object)],vs.prototype,"alignByText",void 0);_.L([_.x(),_.p("design:type",Object)],vs.prototype,"overrides",void 0);
_.L([_.x(),_.p("design:type",Boolean)],vs.prototype,"disabled",void 0);_.L([_.x(),_.p("design:type",Object)],vs.prototype,"isShorts",void 0);_.L([_.x(),_.p("design:type",Object)],vs.prototype,"buttonTooltipPosition",void 0);_.L([_.x(),_.p("design:type",Object)],vs.prototype,"animatedText",void 0);_.L([_.x(),_.p("design:type",String)],vs.prototype,"textNumberValue",void 0);_.L([_.x({computed:"computeTooltip(data, data.isToggled)"}),_.p("design:type",Object)],vs.prototype,"tooltip",void 0);
_.L([_.O8("data"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],vs.prototype,"resetAnimation",null);_.L([_.S("data.*","forceIconButton","forceIconOnly","forceModernIconButton","alignByText","overrides","disabled","isShorts"),_.p("design:type",Object),_.p("design:paramtypes",[])],vs.prototype,"computedButtonShape",null);_.L([_.S("data.*"),_.p("design:type",Object),_.p("design:paramtypes",[])],vs.prototype,"computedIcon",null);
_.L([_.U({is:"ytd-toggle-button-renderer",disableElementRegistration:!0,cssBuildOptOut:!0})],vs);v_j&&_.D(vs,"ytd-toggle-button-renderer",xd1,{mode:_.Np("kevlar_poly_si_batch_j081")?1:2});var Dk=_.ec(function(a){function z(O){var f;return _.t(function(A){if(A.nextAddress==1)return(f=!wOp(O,u())||!u().enabled)?A.jumpTo(2):A.yield(cs$(),3);A.nextAddress!=2&&(f=A.yieldResult);if(f)return A.return();I();setTimeout(function(){N(!1)},1500);
_.nu(A)})}
function I(){setTimeout(function(){N(!0);var O;(O=J.lottieEl)==null||O.goToAndPlay(0)},150)}
var J=_.gi(),r=_.C(_.CW(!1,void 0,"JJXzp")),P=r.next().value,N=r.next().value,u=_.Yi(a.settings,{uniqueId:"this is not intended behavior",enabled:!1,experimentEnabled:!1,timings:[]});_.QO(function(){var O,f;((O=a.settings)==null?void 0:(f=O.call(a))==null?void 0:f.uniqueId)==="this is not intended behavior"&&_.Xd(new _.Fn("Smartimation Settings is undefined"))});
_.h2(function(){u().experimentEnabled&&(u().enabled?m7E(z):(N(!1),ysG(z)),_.V3(function(){ysG(z)}))},"FRiAUe");
_.h2(function(){u().timings.join("");u().experimentEnabled&&(kkm(u()),_.V3(function(){MOO(u())}))},"VKiJOe");
var E=_.Bg(function(){var O=J,f=u().uniqueId+"-border",A,n;var F="https://www.gstatic.com/youtube/img/lottie/smartimations/smartimation_border_"+((n=(A=_.ab().resolve(_.eL(_.kN)))==null?void 0:A())!=null&&n?"dark":"light")+"_v2.json";return{animationRef:O,animationConfig:{name:f,autoplay:!1,loop:!1,path:F}}},void 0,"tgykab");
r={};return _.B("yt-smartimation",{class:_.B8(a.className,"smartimation",(r["smartimation--experiment-enabled"]=function(){return u().experimentEnabled},r["smartimation--active-border"]=P,r["smartimation--enable-masking"]=YUx(),r))},_.B(_.g,{cond:function(){return u().experimentEnabled},
then:function(){return _.B("div",{class:"smartimation__border"},_.B(_.b4,{className:"smartimation__border-gradient",data:E,animationName:function(){return E().animationConfig.name}}))}}),_.B("div",{class:"smartimation__content"},a.children))},"E");
Dk.idomCompat=!0;_.Jf(Dk,"yt-smartimation",{props:{className:_.zl,settings:_.zl}});var G4=function(){var a=_.G.apply(this,arguments)||this;a.likeButtonOverride={segmentedPosition:"start",style:"mono",type:"tonal"};a.dislikeButtonOverride={iconPosition:"icon-only",segmentedPosition:"end",style:"mono",type:"tonal"};a.shouldEnableSmartimation=!1;return a};
_.b(G4,_.G);G4.prototype.attached=function(){this.hostElement.hasAttribute("button-renderer")||this.hostElement.setAttribute("button-renderer","true")};
G4.prototype.onDataChanged=function(){var a,z;this.shouldEnableSmartimation=(((a=this.data)==null?void 0:(z=a.timedAnimationData)==null?void 0:z.animationTiming)||[]).length>0&&!this.isLikeOrDisliked()};
G4.prototype.isLikeOrDisliked=function(){if(!this.data)return!1;var a=_.H(this.data.likeButton,_.pQ),z=_.H(this.data.dislikeButton,_.pQ);return!!((a==null?0:a.isToggled)||(z==null?0:z.isToggled))};
G4.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]]"}}}}}};
_.eH.Object.defineProperties(G4.prototype,{smartimationSettings:{configurable:!0,enumerable:!0,get:function(){var a,z,I=((a=this.data)==null?void 0:(z=a.timedAnimationData)==null?void 0:z.animationTiming)||[];return{uniqueId:"like-dislike",timings:I,enabled:this.shouldEnableSmartimation,experimentEnabled:I.length>0}}}});
G4.prototype.onDataChanged=G4.prototype.onDataChanged;_.L([_.Q(_.u4.YtRendererstamperBehavior),_.p("design:type",Object)],G4.prototype,"ytRendererstamperBehavior",void 0);_.L([_.Q(_.k.YtRendererBehavior),_.p("design:type",Object)],G4.prototype,"ytRendererBehavior",void 0);_.L([_.x(),_.p("design:type",Object)],G4.prototype,"data",void 0);_.L([_.x(),_.p("design:type",Object)],G4.prototype,"likeButtonOverride",void 0);_.L([_.x(),_.p("design:type",Object)],G4.prototype,"dislikeButtonOverride",void 0);
_.L([_.S("shouldEnableSmartimation"),_.p("design:type",Object),_.p("design:paramtypes",[])],G4.prototype,"smartimationSettings",null);_.L([_.O8("data"),_.gz("yt-toggle-button"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],G4.prototype,"onDataChanged",null);_.L([_.U({disableElementRegistration:!0,is:"ytd-segmented-like-dislike-button-renderer"})],G4);
_.D(G4,"ytd-segmented-like-dislike-button-renderer",function(){if(SDX!==void 0)return SDX;var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-segmented-like-dislike-button-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-smartimation settings="[[smartimationSettings]]" class="style-scope ytd-segmented-like-dislike-button-renderer"><div id="segmented-buttons-wrapper" class="style-scope ytd-segmented-like-dislike-button-renderer"><div id="segmented-like-button" class="style-scope ytd-segmented-like-dislike-button-renderer"></div><div id="segmented-dislike-button" class="style-scope ytd-segmented-like-dislike-button-renderer"></div></div></yt-smartimation>');
a.content.insertBefore(_.w().content.cloneNode(!0),a.content.firstChild);return SDX=a},{mode:1});var $dG;var XFl;(XFl=document.body)==null||XFl.setAttribute("rounded-container","");var T81={};T81.YtToggleButtonBehavior=[_.Hc.YtActionHandlerBehavior,xu.YtRenderButtonBehavior,{_noAccessors:!0,properties:{data:Object},observers:["stateChanged_(data)","stateChanged_(data.isToggled)","stateChanged_(data.defaultText)","stateChanged_(data.toggledText)","stateChanged_(forceIconOnly)"],created:function(){this.toggleButtonActionMap_={"yt-update-toggle-button-text-action":"handleUpdateToggleButtonTextAction_","yt-update-toggle-button-state-command":"handleUpdateToggleButtonStateCommand_"}},
attached:function(){this.registerActionMap(this.toggleButtonActionMap_)},
detached:function(){this.unregisterActionMap(this.toggleButtonActionMap_)},
onYtToggleButtonTapHandler:function(){},
onYtButtonTapHandler:function(){var a=this.data.isToggled;if(!this.isModal_(a)){if(!this.data.preventAutoToggle){this.toggle();var z={toggled:this.data.isToggled,actions:{}};z.actions[this.buttonIcon]=this.data.isToggled;_.PA(this.hostElement,"yt-toggle-button",z)}z=this.data.defaultServiceEndpoint||null;var I=this.data.toggledServiceEndpoint||null;if(z&&I||z&&this.data.preventAutoToggle)a=a?I:z,z=this.disableCommandHandlerOverride,_.K("killswitch_toggle_button_behavior_resolve_command")||z?_.N$(this.hostElement,
[a]):_.fw(a,this.hostElement),_.PA(this.hostElement,"yt-execute-service-endpoint",{serviceEndpoint:a})}},
stateChanged_:function(){var a=this.data;if(a){var z=a.isToggled;this._setEndpoint(this.computeEndpoint_(a));this._setServiceEndpoint(this.computeServiceEndpoint_(a));this._setButtonIcon(this.computeButtonIcon_(a,z));this._setButtonText(this.computeButtonText_(a,z));this._setButtonAccessibility(this.computeAccessibility_(a,z));this._setButtonTooltip(this.computeTooltip_(a,z));this._setButtonClass(this.computeButtonClass_(a,z));this._setIconPositionType(this.computeIconPositionType_(a));this.updateRenderedElements();
this.elements_.button&&(this.elements_.button.is==="yt-icon-button"?(this.elements_.button.toggleable=!0,this.elements_.button.pressed=z):this.elements_.button.setAttribute("aria-pressed",z));this.elements_.icon&&this.shouldSetIconActiveState_()&&(this.elements_.icon.active=z)}},
shouldSetIconActiveState_:function(){return _.K("kevlar_system_icons")},
toggle:function(a){this.set("data.isToggled",a!==void 0?a:!this.data.isToggled);_.K("web_toggle_button_force_update_killswitch")||this.notifyPath("data.isToggled")},
isModal_:function(a){if(a){var z,I;return!!((z=this.data)==null?0:(I=z.toggledServiceEndpoint)==null?0:I.confirmDialogEndpoint)}return!!this.endpoint&&(!!this.endpoint.modalEndpoint||!!this.endpoint.shareEndpoint||!!this.endpoint.shareEntityEndpoint)},
computeEndpoint_:function(a){return a&&a.defaultNavigationEndpoint||null},
computeButtonIcon_:function(a,z){var I=a&&a.defaultIcon?_.Bl(a.defaultIcon.iconType):null;a=a&&a.toggledIcon?_.Bl(a.toggledIcon.iconType):I;return z?a:I},
handleUpdateToggleButtonStateCommand_:function(a){a=a.updateToggleButtonStateCommand;this.get("toggleButtonSupportedData.toggleButtonIdData.id",this.data)==a.buttonId&&this.toggle(a.toggled)},
computeButtonText_:function(a,z){return a?z&&a.toggledText||a.defaultText||null:null},
computeAccessibility_:function(a,z){return a?(z?this.get("toggledAccessibilityData.accessibilityData",a):this.get("accessibilityData.accessibilityData",a))||a.accessibility||null:null},
computeTooltip_:function(a,z){return a?z&&a.toggledTooltip||a.defaultTooltip||null:null},
computeButtonClass_:function(a,z){if(!a)return"";var I="",J=a.toggledStyle||a.style;if(z=z?J:a.style){z.styleType&&(z=z.styleType);try{I+=z.toLowerCase().replace(/_/g,"-")+" "}catch(r){_.Tx(r,z,typeof z),_.Xd(r)}}if(a=a.size){a.sizeType&&(a=a.sizeType);try{I+=a.toLowerCase().replace(/_/g,"-")+" "}catch(r){_.Tx(r,a,typeof a),_.Xd(r)}}return I.trim()},
computeIconPositionType_:function(a){return a&&a.iconPosition||null},
computeServiceEndpoint_:function(a){var z=a&&a.serviceEndpoint,I=this.get("data.command.commandMetadata.webCommandMetadata.sendPost");return z?z:I&&a.command?a.command:null},
handleUpdateToggleButtonTextAction_:function(a){a=a.updateToggleButtonTextAction;this.get("toggleButtonSupportedData.toggleButtonIdData.id",this.data)==a.buttonId&&(this.set("data.defaultText",a.defaultText),this.notifyPath("data.defaultText"),this.set("data.toggledText",a.toggledText),this.notifyPath("data.toggledText"))}}];_.$q("sharingToggleButtonAndDefaultButton","toggleButtonRenderer",{component:"ytd-toggle-button-renderer",params:{noink:!0}});var ddX=_.K("web_button_rework")&&_.TZ("BUTTON_REWORK")||_.K("web_button_rework_with_live"),$a=function(){var a=_.G.apply(this,arguments)||this;a.systemIcons=_.K("kevlar_system_icons");a.roundedContainer=!0;return a};
_.b($a,_.G);$a.prototype.attached=function(){this.hostElement.hasAttribute("button-renderer")||this.hostElement.setAttribute("button-renderer","true")};
$a.prototype.onYtButtonTapHandler=function(){if(!this.ytToggleButtonBehavior.isModal_()){var a=this.data.isToggled;if(!this.data.preventAutoToggle){this.ytToggleButtonBehavior.toggle();var z={toggled:!!this.data.isToggled,actions:{}};z.actions[this.ytToggleButtonBehavior.buttonIcon]=this.data.isToggled;var I,J;z.actions.playlistId=(I=this.data.defaultServiceEndpoint)==null?void 0:(J=I.playlistEditEndpoint)==null?void 0:J.playlistId;_.PA(this.hostElement,"yt-toggle-button",z)}(a=a?this.data.toggledServiceEndpoint:
this.data.defaultServiceEndpoint)&&this.ytComponentBehavior.resolveCommand(a)}};
$a.prototype.onYtNavigate=function(a){var z=this.ytdOpenPopupBehavior.getNavigationEndpointPopupAction(a.detail.endpoint);z&&(a.stopPropagation(),this.ytdOpenPopupBehavior.openPopup(z))};
_.eH.Object.defineProperties($a,{template:{configurable:!0,enumerable:!0,get:function(){if($dG===void 0){var a=document.createElement("template");_.V(a,"\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-toggle-button-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e\n");a.content.insertBefore(_.w().content.cloneNode(!0),a.content.firstChild);$dG=a}a=$dG;return a}}});
$a.prototype.onYtNavigate=$a.prototype.onYtNavigate;_.L([_.Q(_.Ms.YtComponentBehavior),_.p("design:type",Object)],$a.prototype,"ytComponentBehavior",void 0);_.L([_.Q(_.k.YtRendererBehavior),_.p("design:type",Object)],$a.prototype,"ytRendererBehavior",void 0);_.L([_.Q(_.rI),_.p("design:type",Object)],$a.prototype,"ytdOpenPopupBehavior",void 0);_.L([_.Q(T81.YtToggleButtonBehavior),_.p("design:type",Object)],$a.prototype,"ytToggleButtonBehavior",void 0);
_.L([_.x(),_.p("design:type",Object)],$a.prototype,"data",void 0);_.L([_.x({value:!0}),_.p("design:type",Boolean)],$a.prototype,"showTooltips",void 0);_.L([_.x({reflectToAttribute:!0}),_.p("design:type",Object)],$a.prototype,"systemIcons",void 0);_.L([_.x({reflectToAttribute:!0}),_.p("design:type",Object)],$a.prototype,"roundedContainer",void 0);_.L([_.gz("yt-navigate"),_.p("design:type",Function),_.p("design:paramtypes",[CustomEvent]),_.p("design:returntype")],$a.prototype,"onYtNavigate",null);
_.L([_.U({is:"ytd-toggle-button-renderer",disableElementRegistration:ddX})],$a);var WIv;_.X3=new _.I4("PANEL_CONTROLLER_TOKEN");_.T4=new _.I4("SHEET_CONTROLLER_TOKEN");_.dP=new _.I4("DIALOG_CONTROLLER_TOKEN");WIv=new _.I4("DIALOG_CONTAINER_TOKEN");var Pii=_.AR("DOWNLOAD",{},"Download"),Zrd=_.AR("DOWNLOADING",{},"Downloading"),Ci3=_.AR("DOWNLOADED",{},"Downloaded"),N8p=_.AR("RETRY",{},"Retry");var uB1=[],E_M=!1;var o_1=_.ec(function(a){var z=n_x,I=function(){return""},J=OrG(a.data),r=fWI(a.data),P=A_$(a.data),N=sFI(a.data);
z=function(){var u=a.data(),E=J_7(u,J(),r(),P(),N()),O=!!u.videoId,f=E.text;return{title:O?f:void 0,tooltip:O?void 0:f,accessibilityText:f,onTap:E.onTap,iconName:E.iconType,style:u.buttonStyle,type:"BUTTON_VIEW_MODEL_TYPE_TONAL",state:E.disabled?"BUTTON_VIEW_MODEL_STATE_DISABLED":"BUTTON_VIEW_MODEL_STATE_ACTIVE",buttonSize:u.buttonSize}};
I={};I=_.B8("ytDownloadButtonViewModelHost",(I.ytDownloadButtonViewModelIsHidden=function(){var u=a.data(),E=N();return u.playlistId||E()==="ADD_TO_OFFLINE_BUTTON_STATE_ENABLED"||E()==="ADD_TO_OFFLINE_BUTTON_STATE_DISABLED"?!1:!0},I));
return _.B("download-button-view-model",{class:I},_.B(_.At,{data:z}))},"F");
o_1.idomCompat=!0;var xd0=new _.I4("SUBMIT_API_SERVICE_TOKEN");var Vb0,QFm,v_i={submitAction:"SUBMIT_ACTION_SUBMISSION"};var mdm=new _.I4("RENDERER_LOGGER_TOKEN");var GhO=new _.I4("RENDERER_STAMPER_OPTIONS_TOKEN");var bq;_.Hn=new oNE;bq=new Map;var lWG="compactRadioRenderer compactPlaylistRenderer playlistVideoRenderer compactVideoRenderer feedNudgeRenderer gridVideoRenderer primetimePromoRenderer radioRenderer primetimePromoRenderer reelItemRenderer reelShelfRenderer richShelfRenderer searchHistoryQueryRenderer shelfRenderer videoWithContextRenderer videoCardRenderer statementBannerRenderer miniGameCardViewModel shortsLockupViewModel lockupViewModel gridShelfViewModel".split(" "),wFp=["notificationTextRenderer","notificationMultiActionRenderer"],
pF1="primetimePromoRenderer statementBannerRenderer brandVideoShelfRenderer brandVideoSingletonRenderer feedNudgeRenderer playlistVideoRenderer".split(" "),LIE=$d7(function(a){return _.SJ(a==null?void 0:a.targetId)}).useUpdatableData;var RuG=0;_.V0.debugName="EjJbCe";var Udw=_.ec(function(a){var z=a.data;a=a.className;_.hD(function(){z().formId||_.Gx(Error("zh"))});
var I=_.hum(function(){return z().formId},function(){return z().beforeSubmitCommand},function(){return z().afterSubmitCommand}),J=I.submitForm,r=I.isValid,P=I.isSubmitting,N=function(){return{state:z().isDisabled||!r()||P()?"disabled":"active"}};
return _.B("yt-submit-button-view-model",{class:_.B8("ytSubmitButtonViewModelHost",a)},_.B(_.V0,{data:function(){return z().button}},{buttonViewModel:function(u){return _.B(_.At,{data:u.data,
buttonOverrides:N,onClick:J})}}))},"G");var Rul=_.ec(function(a){var z=a.backgroundLottieRef;var I=a.foregroundLottieRef;var J=a.children;var r=a.wrapperClass;var P=a.disableAnimation;a=function(){return(_.K("web_animated_actions")||_.K("web_animated_actions_v2"))&&!(P==null?0:P())};
return _.B("yt-animated-action",{class:_.B8("animated-action__container",r)},_.B("div",{class:"animated-action__content-with-background"},_.B(_.g,{cond:a,then:function(){return _.B(DdX,{wrapperClass:"animated-action__background-container",lottieClass:"animated-action__background",lottiePlayerProps:function(){return{animationRef:z==null?void 0:z(),animationConfig:{name:"animated-actions-background",autoplay:!1,loop:!1,path:"https://www.gstatic.com/youtube/img/lottie/subscribe_action/subscribe_action_container_"+
(y_$()?"dark":"light")+"_v5.json"}}}})}}),J),_.B(_.g,{cond:a,
then:function(){return _.B(DdX,{lottiePlayerProps:function(){return{animationRef:I==null?void 0:I(),animationConfig:{name:"animated-actions-foreground",autoplay:!1,loop:!1,path:"https://www.gstatic.com/youtube/img/lottie/subscribe_action/subscribe_action_sparkles_"+(y_$()?"dark":"light")+"_v4.json"}}}})}}))},"H");
Rul.idomCompat=!0;var DdX=_.ec(function(a){var z=a.wrapperClass;var I=a.lottieClass;var J=a.lottiePlayerProps;return _.B("div",{class:_.B8("animated-action__lottie",z),"aria-hidden":"true"},_.B(_.b4,{className:I,data:J,animationName:function(){return J().animationConfig.name}}))},"I");var khd={isOpen:!1};var c_p={isAllowed:!1};var qDd={errorMessage:"",title:"",privacy:"",isDisabled:!0};var alG={isOpen:!1};var z_G={isFullscreen:!1,topPanelId:void 0,navigationButtons:{},secondaryHeader:{}};var LIw={response:void 0};var Ja1=function(a,z){a=a===void 0?LIw:a;switch(z.type){case "LOCATION_COLLECTION_RESPONSE_CHANGE":return Object.assign({},a,{response:z.payload});default:return a}};var lWl={nextCommand:void 0,nextDisabled:!1,footerSubmissionData:void 0,isImpersonationValid:!1};var raM=function(a,z){a=a===void 0?lWl:a;switch(z.type){case "REPORT_CHANNEL_NEXT_DISABLED_CHANGE":return Object.assign({},a,{nextDisabled:z.payload});case "REPORT_CHANNEL_NEXT_COMMAND_CHANGE":return Object.assign({},a,{nextCommand:z.payload});case "REPORT_CHANNEL_MODAL_FOOTER_RENDERER_SUBMISSION_DATA_CHANGE":return Object.assign({},a,{footerSubmissionData:z.payload});case "REPORT_CHANNEL_NEXT_IMPERSONATION_VALIDITY_CHANGE":return Object.assign({},a,{isImpersonationValid:z.payload});default:return a}};var pFo={reportFormData:void 0,reportDetailsFormData:void 0};var PC7=function(a,z){a=a===void 0?pFo:a;switch(z.type){case "REPORT_FORM_MODAL_RENDERER_DATA_CHANGE":return Object.assign({},a,{reportFormData:z.payload});case "REPORT_DETAILS_FORM_RENDERER_DATA_CHANGE":return Object.assign({},a,{reportDetailsFormData:z.payload});default:return a}};var wFe=void 0;_.K("mweb_enable_redux_store_on_demand")||(wFe=new Yp(ZCm()));var Ws=_.K("enable_web_delhi_icons");var mdO=_.ec(function(a){a=_.q3(a,{themeOverride:void 0,animationRef:{}});var z=a.animatedIconType,I=a.active,J=a.themeOverride,r=a.animationRef;a=a.staticIconFn;var P=_.C(_.CW(void 0,void 0,"P5a72b")),N=P.next().value,u=P.next().value,E=function(){a:{var d=z();var W=J==null?void 0:J();var l;W=(W==null?void 0:W.useDarkTheme)||((l=_.ab().resolve(_.eL(_.kN)))==null?void 0:l());switch(d){case "LIKE":wFe||(wFe=new Yp(ZCm()));d=(d=W$x(wFe.getState()))&&d.animationLightUrl&&d.animationDarkUrl?{lottiePlayerProps:{animationConfig:{name:W?
"custom_animated_like_icon_dark":"custom_animated_like_icon",path:W?d.animationDarkUrl:d.animationLightUrl,loop:!1,autoplay:!1,rendererSettings:{viewBoxOnly:!0,className:"custom-animated-like-icon"}}},totalFrames:120,lazyLoad:!0}:void 0;if(d){W=d;break a}W="animated_like_icon_"+(W?"dark":"light")+"_"+(Ws?"v5":"v4");W={lottiePlayerProps:{animationConfig:{name:W,path:"https://www.gstatic.com/youtube/img/lottie/animated_like_icon/"+W+".json",loop:!1,autoplay:!1,rendererSettings:{viewBoxOnly:!0,className:"animated-like-icon"+
(Ws?" animated-like-icon-delhi":"")}}},totalFrames:Ws?120:60,lazyLoad:!0};break a;case "NOTIFICATION_BELL":W={lottiePlayerProps:{animationConfig:{name:W?"notification_bell_dark":"notification_bell_light",path:"https://www.gstatic.com/youtube/img/lottie/subscribe_action/subscribe_action_bell_icon_"+(W?"dark":"light")+(Ws?"_v4":"")+".json",loop:!1,autoplay:!1,rendererSettings:{className:"animated-subscribe-icon"+(Ws?" animated-subscribe-icon-delhi":"")}}},totalFrames:Ws?120:79,lazyLoad:!1};break a}W=
void 0}return W},O=function(){var d,W;
return(W=(d=E())==null?void 0:d.lottiePlayerProps.animationConfig.name)!=null?W:""},f=function(){if(E()){var d=E().lottiePlayerProps.animationConfig.path;
return iJ.get(d)||N()}};
P=_.C(_.CW(!1,void 0,"h6xR3c"));var A=P.next().value;P=P.next().value;var n=Nyi(P),F=function(){var d=E(),W,l,q;return(q=d==null?void 0:(W=d.lottiePlayerProps.animationConfig)==null?void 0:(l=W.rendererSettings)==null?void 0:l.className)!=null?q:""},h=void 0,v=void 0;
_.h2(function(){var d=E(),W=O(),l=f(),q=A(),m=I();if(d&&(v!==W&&(v=W,h=m,W=r(),n.animationConfig=d.lottiePlayerProps.animationConfig,n.animationRef=W,l&&(n.animationConfig.animationData=l,n.animationConfig.path=void 0),W=d.lottiePlayerProps.animationConfig.path,!iJ.get(W)&&d.lazyLoad&&W&&CCI(W,u)),!(q||d.lazyLoad&&!l))){if(l=!r().lottieEl)m?(q=d.totalFrames,n.animationConfig.initialSegment=[q-1,q]):n.animationConfig.initialSegment=void 0;if(h!==m&&!l)if(l=r(),m){var M;(M=l.lottieEl)==null||M.playSegments([0,
d.totalFrames],!0)}else{var y;(y=l.lottieEl)==null||y.playSegments([0,1],!0)}h=m}},"YCYOCe");
return _.B("animated-icon",{class:"ytAnimatedIconHost"},_.B(_.g,{cond:function(){var d,W;return!((d=E())==null||!d.lottiePlayerProps.animationConfig.path||((W=E())==null?0:W.lazyLoad)&&!f()||A())},
then:function(){return _.B(_.b4,{data:n,animationName:O,className:F,animationRef:r})},
else:a}))},"J");_.op=_.ec(function(a){var z=_.Mm("yt-subscribe-button-view-model"),I=_.Mm("div"),J=_.Mm("div"),r=_.gi(),P=_.gi(),N=_.gi(),u=_.KU($7O,function(){return a.data().stateEntityStoreKey}),E=_.KU(XO3,function(){var eM,Ao;
return(Ao=(eM=a.data().notificationStateEntityStoreKeys)==null?void 0:eM.subsNotificationStateKey)!=null?Ao:""}),O=function(){return!a.data().enableSubscribeButtonPostClickAnimation},f=_.C(_.CW(0,void 0,"eTsWvc")),A=f.next().value,n=f.next().value;
f=_.C(_.CW(0,void 0,"dniDQ"));var F=f.next().value,h=f.next().value;f=_.C(_.CW(!1,void 0,"EluPic"));var v=f.next().value,d=f.next().value;f=_.C(_.CW(!1,void 0,"r0jnre"));var W=f.next().value,l=f.next().value;f=_.C(_.CW(!1,void 0,"KMvoQe"));var q=f.next().value,m=f.next().value,M;f=_.C(_.CW(!1,void 0,"aSENce"));var y=f.next().value,e=f.next().value,Bp=function(){l(!0);_.xc(_.GW,function(){l(!1)},1500)};
_.h2(function(){var eM=W();ZT(function(){eM&&!O()&&u()&&nHG(r,P,N)})},"LgmX6c");
_.h2(function(){var eM=u();ZT(function(){if(!O()&&eM){var Ao;((Ao=a.animateWidth)==null?0:Ao.call(a))&&sjd(z.value,!!eM.subscribed,A(),F());var gf,GJ;((gf=M)==null?0:gf.subscribed)||!eM.subscribed||eM.key!==((GJ=M)==null?void 0:GJ.key)||Bp();M=eM}})},"iZzoUb");
f=_.Bg(function(){var eM,Ao,gf,GJ=a.data(),Sf=!((eM=u())==null||!eM.subscribed);eM=!((Ao=a.isOverlay)==null||!Ao.call(a));Ao=v()?z:void 0;var ce=(gf=E())==null?void 0:gf.state;gf=y();Aa7(GJ,ce);return EH0({model:GJ,subscribed:Sf,isOverlay:eM,element:Ao,notificationState:ce,disableTextEllipsis:!0,focused:gf})},void 0,"yGQGue");
var Em=function(){var eM;if(!O()&&((eM=a.animateWidth)==null?0:eM.call(a))&&(I==null?0:I.value)&&(J==null?0:J.value)&&!q()){eM=u();var Ao=_.C((eM==null?0:eM.subscribed)?[I,J]:[J,I]),gf=Ao.next().value;Ao=Ao.next().value;gf=Math.ceil(gf.value.getBoundingClientRect().width);Ao=Math.ceil(Ao.value.getBoundingClientRect().width);n(gf);h(Ao);sjd(z.value,!(eM==null||!eM.subscribed),gf,Ao);m(!0)}},nG=_.g4(function(eM){Em();
var Ao=u();Ao&&(eM.detail.endpoint.subscribeEndpoint||eM.detail.endpoint.unsubscribeEndpoint)&&gHG(z.value,!Ao.subscribed,Ao)}),bG=function(){var eM=_.ab().resolve(_.eL(_.ET));
eM&&e(eM.isKeyBoardInUse())},Hp=function(){e(!1)};
_.k0("yt-player-subscribe",function(eM){var Ao=u();Ao&&eM===a.data().channelId&&gHG(z.value,!0,Ao)});
_.k0("yt-player-unsubscribe",function(eM){var Ao=u();Ao&&eM===a.data().channelId&&gHG(z.value,!1,Ao)});
_.k0("yt-update-subscribe-button-action",function(eM){eM=_.H(eM,eSi);var Ao=u();Ao&&eM&&eM.channelId===a.data().channelId&&gHG(z.value,!!eM.subscribed,Ao)});
_.QO(function(){z.value&&(z.value.addEventListener("focusin",bG),z.value.addEventListener("focusout",Hp));var eM=_.b9(_.GW,function(){Em()});
d(!0);_.V3(function(){_.GW.cancelJob(eM);z.value&&(z.value.removeEventListener("focusin",bG),z.value.removeEventListener("focusout",Hp))})});
var LG=function(){var eM,Ao,gf;if(gf=!((eM=u())==null||!eM.subscribed))eM=!!a.data().disableNotificationBell,gf=(Ao=E())==null?void 0:Ao.state,gf=!eM&&!!gf;return gf},oE=function(){var eM;
return!((eM=u())==null?0:eM.subscribed)},Pe=function(){var eM,Ao;
if(Ao=oE()){Ao=!!a.data().disableNotificationBell;var gf=(eM=E())==null?void 0:eM.state;Ao=!Ao&&!!gf}return Ao},TJ={},Be={};
return _.B("yt-subscribe-button-view-model",{class:_.B8(a.className,"yt-subscribe-button-view-model-wiz",(TJ["yt-subscribe-button-view-model-wiz__can-animate-width"]=function(){var eM,Ao;return!((eM=u())==null||!eM.subscribed)&&((Ao=a.animateWidth)==null?void 0:Ao.call(a))&&W()},TJ["yt-subscribe-button-view-model-wiz--hidden"]=function(){var eM;
return!((eM=u())==null?0:eM.subscribed)&&a.data().hideWhenUnsubscribed},TJ)),
el:z,"on:yt-service-request-sent":nG},_.B(Rul,{backgroundLottieRef:r,foregroundLottieRef:P,wrapperClass:_.B8("yt-subscribe-button-view-model-wiz__animated-action-wrapper",(Be["yt-subscribe-button-view-model-wiz__animated-action-wrapper--is-animating"]=function(){var eM;return((eM=a.animateWidth)==null?void 0:eM.call(a))&&W()},Be["yt-subscribe-button-view-model-wiz__static-width"]=function(){var eM;
return!((eM=a.animateWidth)==null?0:eM.call(a))},Be)),
disableAnimation:O},_.B("div",{el:I,class:"yt-subscribe-button-view-model-wiz__container"},_.B(_.f_,{data:f,icon:function(){return _.B(_.g,{cond:LG,then:function(){var eM=function(){var Ao;return By1((Ao=E())==null?void 0:Ao.state)};
return _.B(_.g,{cond:function(){return O()||eM()!=="NOTIFICATIONS_NONE"},
then:function(){return _.B(_.nS,{icon:eM})},
else:function(){return _.B(mdO,{animatedIconType:"NOTIFICATION_BELL",active:!1,animationRef:N})}})}})},
secondaryIconName:function(){return LG()?"EXPAND":void 0}}))),_.B("div",{el:J,
class:"yt-subscribe-button-view-model-wiz__invisible"},_.B(_.g,{cond:function(){var eM;return((eM=a.animateWidth)==null?void 0:eM.call(a))&&!O()&&!q()},
then:function(){return _.B(_.f_,{data:_.Bg(function(){var eM;return EH0({model:a.data(),subscribed:oE(),isOverlay:!((eM=a.isOverlay)==null||!eM.call(a)),element:z,disableTextEllipsis:!0})},void 0,"lwPlub"),
iconName:function(){var eM;return Pe()?By1((eM=E())==null?void 0:eM.state):void 0},
secondaryIconName:function(){return Pe()?"EXPAND":void 0}})}})))},"K");
_.op.idomCompat=!0;var y_f=_.ec(function(a){var z=a.data;var I=_.KU($7O,function(){return z().subscriptionStateEntityKey});
return _.B(_.g,{cond:function(){var J=z(),r=I();return!J.hideWhenUnsubscribed||(r==null?0:r.subscribed)?_.H(z().button,_.yw):void 0},
then:function(J){return _.B("yt-subscribe-plus-button-view-model",{class:"ytSubscribePlusButtonViewModelHost"},_.B(_.At,{data:J,buttonOverrides:function(){return{toggled:!0}}}))}})},"L");
y_f.idomCompat=!0;var khX,U3;khX=_.ec(function(a){return _.B(_.V0,{data:function(){return a.actionRow().actions}},{buttonViewModel:function(z){var I=z.data;
return _.B(U3,{isRow:a.isRow,isIconOnlyButton:function(){return Kwm(I())},
useIntrinsicWidth:a.useIntrinsicWidth},_.B(_.At,{data:I}))},
subscribeButtonViewModel:function(z){return _.B(U3,{isRow:a.isRow},_.B(_.op,{data:z.data,isOverlay:!1,animateWidth:function(){return!a.isRow()}}))},
downloadButtonViewModel:function(z){var I=z.data;return _.B(U3,{isRow:a.isRow,isIconOnlyButton:function(){return!!I().playlistId}},_.B(o_1,{data:I}))},
submitButtonViewModel:function(z){var I=z.data;return _.B(U3,{isRow:a.isRow,isIconOnlyButton:function(){var J=I();return Kwm(_.H(J==null?void 0:J.button,_.yw))}},_.B(Udw,{data:I}))},
toggleButtonViewModel:function(z){var I=z.data;return _.B(U3,{isRow:a.isRow,isIconOnlyButton:function(){var J=I();return Kwm(_.H(J.isToggled?J.toggledButtonViewModel:J.defaultButtonViewModel,_.yw))}},_.B(_.Wc,{data:I}))},
subscribePlusButtonViewModel:function(z){return _.B(U3,{isRow:a.isRow},_.B(y_f,{data:z.data}))}})},"M");
U3=_.ec(function(a){var z={};return _.B("div",{class:_.B8("yt-flexible-actions-view-model-wiz__action",(z["yt-flexible-actions-view-model-wiz__action--row-action"]=a.isRow,z["yt-flexible-actions-view-model-wiz__action--intrinsic-width"]=a.useIntrinsicWidth,z["yt-flexible-actions-view-model-wiz__action--row-action-feature-phone"]=!1,z["yt-flexible-actions-view-model-wiz__action--icon-only-button"]=a.isIconOnlyButton,z))},a.children)},"N");
_.Dw=_.ec(function(a){var z=function(){var J;return((J=a.layout)==null?void 0:J.call(a))===1},I={};
return _.B("yt-flexible-actions-view-model",{class:_.B8("yt-flexible-actions-view-model-wiz",a.className,(I["yt-flexible-actions-view-model-wiz--inline"]=function(){return!z()},I["yt-flexible-actions-view-model-wiz--scrollable"]=function(){return a.data().style==="FLEXIBLE_ACTIONS_STYLE_SCROLLING"},I))},_.B(_.se,{each:function(){return a.data().actionsRows||[]}},function(J){return _.B(_.g,{cond:z,
then:function(){return _.B("div",{class:"yt-flexible-actions-view-model-wiz__action-row"},_.B(khX,{actionRow:J,isRow:z,useIntrinsicWidth:function(){return!!a.data().respectActionIntrinsicWidth}}))},
else:function(){return _.B(khX,{actionRow:J,isRow:z})}})}))},"O");_.Jf(_.Dw,"yt-flexible-actions-view-model",{props:{data:_.zl,layout:_.zl,justifyContentOverride:_.zl,className:_.zl}});_.Rp=_.ec(function(a){var z=_.KU(UW,function(){var r;return(r=a.data().dislikeEntityKey)!=null?r:""}),I=_.Bg(function(){var r=z();
return r?r.likeStatus==="DISLIKE":_.H(a.data().toggleButtonViewModel,_.My).isToggled},void 0,"B2tgKf"),J=_.Bg(function(){return Object.assign({},_.H(a.data().toggleButtonViewModel,_.My),{isToggled:I()})},void 0,"otfIbf");
return _.B("dislike-button-view-model",{class:"ytDislikeButtonViewModelHost"},_.B(_.Wc,{data:J,buttonShapeOverrides:a.buttonShapeOverrideables,onToggle:function(r){var P=z();P&&r!==(P.likeStatus==="DISLIKE")&&P.key&&_.cK(_.XK("likeStatusEntity",P.key,{likeStatus:r?"DISLIKE":"INDIFFERENT",hadUserInteraction:r}))}}))},"P");
_.Rp.idomCompat=!0;_.Ld=_.ec(function(a){var z=_.K("web_supports_animations_api"),I=jk(function(n){var F=O();if(!n){var h,v;return{numberText:(v=F==null?void 0:(h=F.likeCountIfIndifferent)==null?void 0:h.content)!=null?v:"",numberValue:Number(F==null?void 0:F.likeCountIfIndifferentNumber),heightPx:36,shouldAnimate:!1}}var d;h=(F==null?void 0:(d=F.likeCountIfIndifferent)==null?void 0:d.content)!==n.numberText;if(u()||!h)return n;var W;return{numberText:(F==null?void 0:(W=F.likeCountIfIndifferent)==null?void 0:W.content)||
"",numberValue:Number(F==null?void 0:F.likeCountIfIndifferentNumber),heightPx:36,shouldAnimate:!!F}}),J=jk(function(n){var F=O();
if(!n){var h,v;return{numberText:(v=F==null?void 0:(h=F.likeCountIfLiked)==null?void 0:h.content)!=null?v:"",numberValue:Number(F==null?void 0:F.likeCountIfLikedNumber),heightPx:36,shouldAnimate:!1}}var d;h=(F==null?void 0:(d=F.likeCountIfIndifferent)==null?void 0:d.content)!==n.numberText;if(u()||!h)return n;var W;return{numberText:(F==null?void 0:(W=F.likeCountIfLiked)==null?void 0:W.content)||"",numberValue:Number(F==null?void 0:F.likeCountIfLikedNumber),heightPx:36,shouldAnimate:!!F}}),r=_.C(_.CW(void 0,
void 0,"xYSlUe")),P=r.next().value,N=r.next().value,u=P,E=_.KU(UW,function(){var n,F;
return(F=(n=a.data())==null?void 0:n.likeStatusEntityKey)!=null?F:""}),O=_.KU(t90,function(){var n,F;
return((n=a.likeCountEntity)==null?void 0:(F=n.call(a))==null?void 0:F.key)||""}),f=_.Bg(function(){var n;
return((n=E())==null?void 0:n.likeStatus)==="LIKE"},void 0,"DG5Osd"),A=function(){var n;
return z&&!((n=a.likeCountEntity)==null||!n.call(a))};
return _.B("like-button-view-model",{class:"ytLikeButtonViewModelHost"},_.B(_.Wc,{data:function(){var n=Object,F=n.assign,h;var v=_.H((h=a.data())==null?void 0:h.toggleButtonViewModel,_.My);return F.call(n,{},v||{},{isToggled:f()})},
buttonShapeOverrides:a.buttonShapeOverrideables,animatedTextPropsDefault:function(){return A()?I():void 0},
animatedTextPropsToggled:function(){return A()?J():void 0},
onToggle:function(n){FwM(n,E(),u(),N)},
style:function(){var n;return((n=a.disableIconAnimation)==null?0:n.call(a))?void 0:{animateIcon:"true"}}}))},"Q");
_.Ld.idomCompat=!0;var MbI=_.ec(function(a){var z=function(){return _.H(a.data().likeButtonViewModel,_.oy)},I=function(){var r;
return((r=z())==null?void 0:r.likeStatusEntityKey)||""},J=_.Bg(function(){var r,P;
var N=(P=_.KU(UW,I)())!=null?P:(r=z())==null?void 0:r.likeStatusEntity;r=a.data();var u;r=(r==null?void 0:(u=r.timedAnimationData)==null?void 0:u.animationTiming)||[];return{uniqueId:"like-dislike",timings:r,enabled:(N==null?void 0:N.likeStatus)==="INDIFFERENT"&&r.length>0,experimentEnabled:r.length>0}},void 0,"hGh9Td");
return _.B("segmented-like-dislike-button-view-model",{class:_.B8("ytSegmentedLikeDislikeButtonViewModelHost",a.className),"button-renderer":!0},_.B(Dk,{settings:J},_.B("div",{class:"ytSegmentedLikeDislikeButtonViewModelSegmentedButtonsWrapper"},_.B(_.g,{cond:z,then:function(r){return _.B(_.Ld,{data:r,likeCountEntity:function(){return a.data().likeCountEntity},
buttonShapeOverrideables:{segmentedPosition:"start"}})}}),_.B(_.g,{cond:function(){return _.H(a.data().dislikeButtonViewModel,_.WU)},
then:function(r){return _.B(_.Rp,{data:r,buttonShapeOverrideables:{iconPosition:"icon-only",segmentedPosition:"end"}})}}))))},"R");
MbI.idomCompat=!0;_.Jf(MbI,"segmented-like-dislike-button-view-model",{props:{data:_.zl,className:_.zl}});var c_e=_.ec(function(a){var z=a.data;var I=a.className;var J=a.setMinWidth;var r=a.forceIconOnly;var P=_.Mm("account-link-button-view-model"),N=_.KU(_.HC7,function(){var n;return(n=z().accountLinkStatusEntityKey)!=null?n:""}),u=_.KU(_.HC7,function(){var n;
return(n=z().accountLinkStatusSecondaryEntityKey)!=null?n:""}),E=function(){if(!_.K("web_account_link_secondary_killswitch")){var n,F;
return((n=N())==null?void 0:n.linked)||((F=u())==null?void 0:F.linked)}var h;return(h=N())==null?void 0:h.linked};
_.h2(function(){var n=N();if(n){var F=a4i(new eew,Y9X(new cAI,!!n.linked));_.EN().then(function(h){h&&(h.setAccountLinkState(_.he(F.JSC$12067_serializeBinary(),4)),h.updateAccountLinkingConfig(!!n.linked))})}},"b9pSsf");
var O=function(){return _.H(z().toggleButtonViewModel,_.My)};
_.k0("yt-signal-action-show-account-link-dialog",function(){if(O()){var n=E()?O().toggledButtonViewModel:O().defaultButtonViewModel;n=_.H(n,_.yw);var F;if((F=N())==null?0:F.isWarning){F=_.H(z().warningButtonViewModel,_.yw);if(!F){_.RL(Error("Ah"));return}n=F}var h;(F=_.o0((h=n)==null?void 0:h.onTap))&&_.BA([F],P.value)}else _.RL(Error("Bh"))});
var f=function(){var n=O();return Object.assign({},n,{isToggled:E()})},A=function(){return(r==null?0:r())?{iconPosition:"icon-only"}:{}};
return _.B("account-link-button-view-model",{class:_.B8("ytwAccountLinkButtonViewModelHost",I,function(){return(J==null?0:J())?"ytwAccountLinkButtonViewModelHostMinWidth":""}),
el:P,"button-renderer":!0},_.B("div",null,_.B(_.g,{cond:function(){var n;if((n=N())==null?0:n.isWarning)return(n=_.H(z().warningButtonViewModel,_.yw))||_.RL(Error("Ah")),n},
then:function(n){return _.B(_.At,{data:n,buttonOverrides:A})},
else:function(){return _.B(_.Wc,{data:f,buttonShapeOverrides:A})}})))},"S");_.Jf(c_e,"account-link-button-view-model",{props:{data:_.zl,className:_.I5,setMinWidth:_.I5,forceIconOnly:_.I5}});_.$q("menuRenderer","menuRenderer","ytd-menu-renderer");
var YDe={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"}},
qDX=_.K("web_fix_missing_action_buttons")?100:200,lQ=function(){var a=_.G.apply(this,arguments)||this;a.safeArea=!_.K("kevlar_flex_menu_safe_area_killswitch");a.tonalOverride=!1;a.threeDotSize="M";a.isOverlay=!1;a.useOverlayDark=!1;a.topLevelIconsOnly=!1;a.JSC$14538_lastWidth=0;a.maybeUpdateFlexibleMenu=function(){_.K("web_fix_missing_action_buttons")?requestAnimationFrame(a.maybeUpdateFlexibleMenuImpl):a.maybeUpdateFlexibleMenuImpl()};
a.maybeUpdateFlexibleMenuImpl=function(){var z;if((z=a.data)!=null&&z.flexibleItems){a.maybeFlushDebouncer();z=a.hostElement.clientWidth;var I=z>a.JSC$14538_lastWidth,J,r=((J=a.topLevelButtonsContainer)==null?void 0:J.scrollHeight)||0,P;J=((P=a.flexibleItemButtonsContainer)==null?void 0:P.scrollHeight)||0;P=a.hostElement.scrollHeight>Math.max(r,J)+8;I?(a.resetFlexibleItems(),a.JSC$14538_lastWidth=a.hostElement.clientWidth,a.maybeUpdateFlexibleMenu()):P&&(a.shrinkFlexibleMenu(),a.JSC$14538_lastWidth=
z)}};
a.computeThreeDotButtonShape=function(){if(a.tonalOverride)return Object.assign({},{onTap:function(){a.onOverflowTap()},
iconPosition:"icon-only",style:a.isOverlay?a.useOverlayDark?"overlay-dark":"overlay":"mono",type:"tonal",size:a.threeDotSize,state:"active",accessibilityLabel:a.computeAccessibilityLabel(a.data)},a.threeDotButtonOverride)};
a.onOverflowTap=function(){if(a.data.fetchMenuCommand)_.ab().resolve(_.j6).resolveCommand(a.data.fetchMenuCommand,{form:{element:a.hostElement}});else if(a.data.isDisabled&&a.data.disabledCommand)_.fw(a.data.disabledCommand,a.hostElement);else{var z=a.createMenuRendererVe(),I={items:a.items};a.data.menuPopupAccessibility&&(I.menuPopupAccessibility=a.data.menuPopupAccessibility);a.data.footer&&(I.footer=a.data.footer);z={openPopupAction:{popupType:"DROPDOWN",popup:{menuPopupRenderer:I},veData:z}};
_.ab().resolve(_.T4).openSheet({openPopupActionCommand:z},a.hostElement)}};
return a};
_.b(lQ,_.G);_.Z=lQ.prototype;_.Z.updateButtonOverrides=function(){if(!_.K("menu_renderer_label_update_upkillswitch")){var a=_.PK(this.hostElement).querySelector("yt-button-view-model");a&&(a.buttonOverrides=this.buttonOverrides)}};
_.Z.computeHasItems=function(){var a;return((a=this.topLevelButtonData)==null?void 0:a.length)||this.hasFlexibleItems};
_.Z.created=function(){this.boundOnStamperFinished=this.onStamperFinished.bind(this)};
_.Z.iconButtonColorChanged=function(){this.data&&this.data.iconColor&&(this.hasCustomIconColor=!0,_.uK(this.hostElement,{"--ytd-menu-renderer-button-color":_.Da(this.data.iconColor)}))};
_.Z.onStamperFinished=function(){this.JSC$14538_lastWidth=this.hostElement.clientWidth;this.maybeUpdateFlexibleMenu()};
_.Z.setupFlexibleMenu=function(){var a=this,z;(z=this.data)!=null&&z.flexibleItems?window.ResizeObserver&&(this.hostElement.addEventListener("yt-rendererstamper-finished",this.boundOnStamperFinished),this.hostElement.addEventListener("yt-renderidom-finished",this.boundOnStamperFinished),this.resizeThrottle||(this.resizeThrottle=new _.kc(this.maybeUpdateFlexibleMenu,qDX,this)),this.resizeObserver||(this.resizeObserver=new ResizeObserver(function(){a.resizeThrottle.fire()}),this.resizeObserver.observe(this.hostElement)),
this.resetFlexibleItems()):(this.flexAsTopLevelButtons=void 0,this.hostElement.removeEventListener("yt-rendererstamper-finished",this.boundOnStamperFinished),this.hostElement.removeEventListener("yt-renderidom-finished",this.boundOnStamperFinished),this.resizeObserver&&(this.resizeObserver.disconnect(),this.resizeObserver=void 0))};
_.Z.maybeFlushDebouncer=function(){if(_.K("web_replace_formatted_with_attributed_string")){var a;(a=this.topLevelButtons)==null||a.forEach(function(I){var J;(I=(J=I.getElementsByTagName("yt-attributed-string"))==null?void 0:J[0])&&$cG(I)});
var z;(z=this.flexibleItemButtons)==null||z.forEach(function(I){var J;(I=(J=I.getElementsByTagName("yt-attributed-string"))==null?void 0:J[0])&&$cG(I)})}};
_.Z.resetFlexibleItems=function(){var a;if((a=this.data)!=null&&a.flexibleItems){_.K("web_fix_missing_action_buttons")||this.hostElement.removeEventListener("yt-rendererstamper-finished",this.maybeUpdateFlexibleMenu);var z;this.flexAsTopLevelButtons=(z=this.data.flexibleItems)==null?void 0:z.map(function(I){return _.H(I,_.xyw).topLevelButton});
_.K("web_fix_missing_action_buttons")||this.hostElement.addEventListener("yt-rendererstamper-finished",this.maybeUpdateFlexibleMenu)}};
_.Z.computeButtonOverride=function(){if(this.tonalOverride)return{style:"mono",type:"tonal"}};
_.Z.shrinkFlexibleMenu=function(){var a;(a=this.flexAsTopLevelButtons)!=null&&a.length&&(this.flexAsTopLevelButtons=[].concat(_.ih(this.flexAsTopLevelButtons.slice(0,-1))))};
_.Z.configureRendererStamper=function(){return{topLevelButtonData:{id:"top-level-buttons-computed",mapping:YDe,events:!0},flexAsTopLevelButtons:{id:"flexible-item-buttons",mapping:YDe,events:!0}}};
_.Z.tonalOverrideChanged=function(){this.tonalOverride&&(this.ytdOpenPopupBehavior.popupPositionTarget=this.buttonShape)};
_.Z.ready=function(){this.menuFocused=!0;this.overlayOpen=!1;this.ytdOpenPopupBehavior.popupPositionTarget=this.button;this.tonalOverride&&(this.ytdOpenPopupBehavior.popupPositionTarget=this.buttonShape)};
_.Z.detached=function(){this.icon="MORE_VERT"};
_.Z.computeTopLevelButtonData=function(a){if(!a)return[];var z;a=(z=a==null?void 0:a.topLevelButtons)!=null?z:[];return _.x8.unsafeClone([].concat(_.ih(a)))};
_.Z.computeItems=function(a,z){if(!a)return[];var I=[];if(z){var J=(a.flexibleItems||[]).map(function(N){return _.H(N,_.xyw)});
J=_.C(J);for(var r=J.next();!r.done;r=J.next())r=r.value,z.includes(r.topLevelButton)||(r=r.menuItem)&&I.push(r)}var P;a=(P=a==null?void 0:a.items)!=null?P:[];return[].concat(_.ih(I),_.ih(a))};
_.Z.computeMenuActive=function(a,z){return a||z};
_.Z.onPopupOpened=function(){this.overlayOpen=!0;_.PA(this.hostElement,"yt-menu-overlay-changed",this.overlayOpen);this.menuFocused==null&&(this.menuFocused=!1)};
_.Z.onPopupClosed=function(){this.overlayOpen=!1;_.PA(this.hostElement,"yt-menu-overlay-changed",this.overlayOpen)};
_.Z.onPopupCanceled=function(){this.overlayOpen=!1;_.PA(this.hostElement,"yt-menu-overlay-changed",this.overlayOpen)};
_.Z.computeAccessibilityLabel=function(a){return this.get("accessibility.accessibilityData.label",a)};
_.Z.isHidden=function(a,z){return this.tonalOverride||!a?!0:a.fetchMenuCommand||a.isDisabled&&a.disabledCommand?!1:!(z==null?0:z.length)};
_.Z.isModernOverflowHidden=function(a,z){return this.tonalOverride&&a?a.fetchMenuCommand?!1:!(z==null?0:z.length):!0};
_.Z.createMenuRendererVe=function(){var a=this.data.trackingParams,z=_.TX(),I=_.XZ();return a&&z&&I?(a=_.VX(a),I=_.uq(7591),_.K("combine_ve_grafts")?_.Aq(_.Kw(),I,a):_.Lt(z,a,I),I):null};
_.eH.Object.defineProperties(lQ.prototype,{hasFlexibleItems:{configurable:!0,enumerable:!0,get:function(){var a;return!((a=this.flexAsTopLevelButtons)==null||!a.length)}},
buttonOverrides:{configurable:!0,enumerable:!0,get:function(){if(this.topLevelIconsOnly)return{iconPosition:"icon-only"}}}});
lQ.prototype.onPopupCanceled=lQ.prototype.onPopupCanceled;lQ.prototype.onPopupClosed=lQ.prototype.onPopupClosed;lQ.prototype.onPopupOpened=lQ.prototype.onPopupOpened;lQ.prototype.tonalOverrideChanged=lQ.prototype.tonalOverrideChanged;lQ.prototype.resetFlexibleItems=lQ.prototype.resetFlexibleItems;lQ.prototype.setupFlexibleMenu=lQ.prototype.setupFlexibleMenu;lQ.prototype.iconButtonColorChanged=lQ.prototype.iconButtonColorChanged;lQ.prototype.updateButtonOverrides=lQ.prototype.updateButtonOverrides;
_.L([_.Q(_.rI),_.p("design:type",Object)],lQ.prototype,"ytdOpenPopupBehavior",void 0);_.L([_.Q(_.k.YtRendererBehavior),_.p("design:type",Object)],lQ.prototype,"ytRendererBehavior",void 0);_.L([_.Q(_.u4.YtRendererstamperBehavior),_.p("design:type",Object)],lQ.prototype,"ytRendererstamperBehavior",void 0);_.L([_.A3("#button-shape"),_.p("design:type",HTMLElement)],lQ.prototype,"buttonShape",void 0);_.L([_.A3("#button"),_.p("design:type",Object)],lQ.prototype,"button",void 0);
_.L([_.x(),_.p("design:type",Object)],lQ.prototype,"data",void 0);_.L([_.x({computed:"computeTopLevelButtonData(data)"}),_.p("design:type",Array)],lQ.prototype,"topLevelButtonData",void 0);_.L([_.x(),_.p("design:type",Array)],lQ.prototype,"flexAsTopLevelButtons",void 0);_.L([_.x({computed:"computeItems(data, flexAsTopLevelButtons)"}),_.p("design:type",Array)],lQ.prototype,"items",void 0);_.L([_.x({value:"MORE_VERT"}),_.p("design:type",String)],lQ.prototype,"icon",void 0);
_.L([_.x({reflectToAttribute:!0}),_.p("design:type",Object)],lQ.prototype,"safeArea",void 0);_.L([_.x({reflectToAttribute:!0,computed:"computeMenuActive(menuFocused, overlayOpen)"}),_.p("design:type",Boolean)],lQ.prototype,"menuActive",void 0);_.L([_.x(),_.p("design:type",Boolean)],lQ.prototype,"menuFocused",void 0);_.L([_.x({value:"bottom"}),_.p("design:type",String)],lQ.prototype,"buttonTooltipPosition",void 0);_.L([_.x(),_.p("design:type",Boolean)],lQ.prototype,"overlayOpen",void 0);
_.L([_.x({value:!0}),_.p("design:type",Boolean)],lQ.prototype,"forceIconButton",void 0);_.L([_.x(),_.p("design:type",Boolean)],lQ.prototype,"styleActionButton",void 0);_.L([_.x(),_.p("design:type",Boolean)],lQ.prototype,"disableTextTransformOnButtons",void 0);_.L([_.x({reflectToAttribute:!0}),_.p("design:type",Object)],lQ.prototype,"tonalOverride",void 0);_.L([_.x(),_.p("design:type",Object)],lQ.prototype,"threeDotSize",void 0);
_.L([_.x(),_.p("design:type",Object)],lQ.prototype,"threeDotButtonOverride",void 0);_.L([_.x(),_.p("design:type",Object)],lQ.prototype,"isOverlay",void 0);_.L([_.x(),_.p("design:type",Object)],lQ.prototype,"useOverlayDark",void 0);_.L([_.x({computed:"computeButtonOverride(tonalOverride)"}),_.p("design:type",Object)],lQ.prototype,"buttonOverride",void 0);_.L([_.x({reflectToAttribute:!0}),_.p("design:type",Boolean)],lQ.prototype,"hasCustomIconColor",void 0);
_.L([_.x({reflectToAttribute:!0}),_.S("flexAsTopLevelButtons"),_.p("design:type",Object),_.p("design:paramtypes",[])],lQ.prototype,"hasFlexibleItems",null);_.L([_.x({reflectToAttribute:!0,computed:"computeHasItems(topLevelButtonData, flexAsTopLevelButtons)"}),_.p("design:type",Boolean)],lQ.prototype,"hasItems",void 0);_.L([_.x(),_.p("design:type",Object)],lQ.prototype,"topLevelIconsOnly",void 0);
_.L([_.O8("topLevelIconsOnly"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],lQ.prototype,"updateButtonOverrides",null);_.L([_.S("topLevelIconsOnly"),_.p("design:type",Object),_.p("design:paramtypes",[])],lQ.prototype,"buttonOverrides",null);_.L([_.A3("#top-level-buttons-computed"),_.p("design:type",HTMLElement)],lQ.prototype,"topLevelButtonsContainer",void 0);_.L([_.s8(".top-level-buttons > *"),_.p("design:type",Array)],lQ.prototype,"topLevelButtons",void 0);
_.L([_.A3("#flexible-item-buttons"),_.p("design:type",HTMLElement)],lQ.prototype,"flexibleItemButtonsContainer",void 0);_.L([_.s8("#flexible-item-buttons > *"),_.p("design:type",Array)],lQ.prototype,"flexibleItemButtons",void 0);_.L([_.O8("data"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],lQ.prototype,"iconButtonColorChanged",null);
_.L([_.Fe("data"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],lQ.prototype,"setupFlexibleMenu",null);_.L([_.Fe("topLevelIconsOnly"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],lQ.prototype,"resetFlexibleItems",null);_.L([_.O8("tonalOverride"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],lQ.prototype,"tonalOverrideChanged",null);
_.L([_.gz("yt-popup-opened"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],lQ.prototype,"onPopupOpened",null);_.L([_.gz("yt-popup-closed"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],lQ.prototype,"onPopupClosed",null);_.L([_.gz("yt-popup-canceled"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],lQ.prototype,"onPopupCanceled",null);
_.D(lQ,"ytd-menu-renderer",function(){if(sFv===void 0){var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-menu-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="top-level-buttons-computed" class="top-level-buttons style-scope ytd-menu-renderer"></div><div id="flexible-item-buttons" hidden="[[!flexAsTopLevelButtons]]" class="style-scope ytd-menu-renderer"></div><yt-icon-button id="button" class="dropdown-trigger style-scope ytd-menu-renderer" hidden="[[isHidden(data, items)]]" label="[[computeAccessibilityLabel(data)]]" style-target="button" on-click="onOverflowTap"><yt-icon icon="[[icon]]" class="style-scope ytd-menu-renderer"></yt-icon></yt-icon-button><yt-button-shape id="button-shape" data="[[computeThreeDotButtonShape(data, isOverlay, threeDotButtonOverride)]]" disable-upgrade$="[[!tonalOverride]]" hidden$="[[isModernOverflowHidden(data, items, tonalOverride)]]" icon-name="[[icon]]" class="style-scope ytd-menu-renderer"></yt-button-shape>');
a.content.insertBefore(_.w().content.cloneNode(!0),a.content.firstChild);sFv=a}a=sFv;return a},{mode:2});var euG;var alw;_.pd=_.ec(function(a){var z=a.data;var I=function(){if(z().icon)a:{var J={iconName:z().icon};for(var r=_.ab().resolve(_.gd),P=_.C([12,24]),N=P.next();!N.done;N=P.next()){var u=N.value;N=Object.assign({},J,{iconStyle:"youtube_fill",iconSize:u});u=Object.assign({},J,{iconStyle:"youtube_outline",iconSize:u});if(r.resolveIcon(N)){J=N;break a}if(r.resolveIcon(u)){J=u;break a}}J=void 0}else J=void 0;return J};
a={};return _.B("badge-shape",{class:_.B8("badge-shape-wiz",function(){return iC$(z().type)},(a["badge-shape-wiz--overlay"]=function(){return z().isOverlay},a["badge-shape-wiz--ads-include-dot"]=function(){return z().adsIncludeDot},a["badge-shape-wiz--thumbnail-badge"]=function(){a:switch(z().type){case 17:case 18:case 19:var J=!0;
break a;default:J=!1}return J},a["badge-shape-wiz--status-badge"]=function(){a:switch(z().type){case 12:case 13:case 14:case 15:case 16:var J=!0;
break a;default:J=!1}return J},a["badge-shape-wiz--no-text"]=function(){return!z().text},a["badge-shape-wiz--modern"]=function(){return z().modern||_.K("web_modern_badge_shape")},a)),
style:_.sW({"background-color":function(){var J;return(J=z().customColors)==null?void 0:J.backgroundColor}}),
role:function(){return z().accessibilityText?"img":void 0},
"aria-label":function(){return z().accessibilityText}},_.B(_.g,{cond:function(){return z().animation},
then:function(J){return _.B(_.b4,{className:"badge-shape-wiz__icon",data:J,animationName:function(){return J().animationConfig.name||""}})}}),_.B(_.g,{cond:function(){var J;
return I()&&!((J=z())==null?0:J.animation)},
then:function(){return _.B("div",{class:"badge-shape-wiz__icon"},_.B(MUO,{data:function(){return I()}}))}}),_.B("div",{class:"badge-shape-wiz__text"},function(){var J;
return(J=z())==null?void 0:J.text}))},"T");
_.pd.idomCompat=!0;_.Jf(_.pd,"badge-shape",{props:{data:_.zl}});var wP=function(){var a=_.G.apply(this,arguments)||this;a.systemIcons=_.K("kevlar_system_icons");a.animated=_.K("animated_live_badge_icon");a.useBadgeShape=_.K("web_badge_shape_defrag");return a};
_.b(wP,_.G);_.Z=wP.prototype;_.Z.addTooltips=function(){for(var a=_.PK(this.hostElement).querySelectorAll(".badge"),z=0,I;I=a[z++];){var J=this.repeatElement.itemForElement(I);I=_.PK(I);I.lastChild&&I.lastChild.is==="tp-yt-paper-tooltip"&&I.removeChild(I.lastChild);if(J=J.metadataBadgeRenderer&&J.metadataBadgeRenderer.tooltip){var r=_.C_("tp-yt-paper-tooltip");(0,_.t3)(r).textContent=J;r.setAttribute("position","top");r.setAttribute("aria-hidden","true");I.appendChild(r)}}};
_.Z.badgesChanged=function(){var a=this;_.yT().parkOrScheduleJob(function(){a.addTooltips()},0,"eocs",16);
this.updateComputedBadges(this.badges,this.topStandaloneBadge)};
_.Z.standaloneRoundedBadgeChanged=function(){var a=this.useRoundedBadge?this.useRoundedBadge:void 0;a&&(this.useRoundedBadge=a)};
_.Z.standaloneBadgeChanged=function(){this.updateComputedBadges(this.badges,this.topStandaloneBadge,this.bottomStandaloneBadge)};
_.Z.hiddenBadgeGroupsChanged=function(){this.updateComputedBadges(this.badges,this.topStandaloneBadge,this.bottomStandaloneBadge)};
_.Z.computeStyle=function(a){_.K("enable_html5_teal_ad_badge")&&a==="BADGE_STYLE_TYPE_AD"&&(a="badge-style-type-ad-alternate");_.K("kevlar_ytb_live_badges")&&a==="BADGE_STYLE_TYPE_LIVE_NOW"&&(a="badge-style-type-live-now-alternate");return a?a.toLowerCase().replace(/_/g,"-"):""};
_.Z.computeRole=function(a){return this.computeAriaLabel(a)?"img":"status"};
_.Z.computeAriaLabel=function(a){var z;return(a==null?void 0:(z=a.accessibilityData)==null?void 0:z.label)||(a==null?void 0:a.label)};
_.Z.computeBadgeShape=function(a){var z;if(a){var I,J=Qjp(a.style),r=SlI(a.style),P=a.label,N=((I=a.accessibilityData)==null?void 0:I.label)||a.label;a:switch(a.style){case "BADGE_STYLE_TYPE_SHORTS_PLAYER":I=!0;break a;default:I=!1}a=(z=a.icon)==null?void 0:z.iconType;z={type:J,brNzRatingBadgeType:r,text:P,accessibilityText:N,isOverlay:I,icon:a!=="PREMIUM"?a:void 0,modern:_.K("web_modern_badge_view_model")}}else z={};return z};
_.Z.updateComputedBadges=function(a,z,I){var J=this;(z=z?[z]:I?[I]:void 0)?this.computedBadges=z:this.computedBadges=a==null?void 0:a.filter(function(r){var P;if((P=r.metadataBadgeRenderer)==null?0:P.groups){P=!1;r=_.C(r.metadataBadgeRenderer.groups);for(var N=r.next();!N.done;N=r.next()){N=N.value;var u=void 0;P=P||((u=J.hiddenBadgeGroups)==null?void 0:u.includes(N))}return!P}return!0})};
_.Z.useFilledIcons=function(a){return _.K("kevlar_system_icons")&&(a==="AUDIO_BADGE"||a==="CHECK_CIRCLE_THICK"||a==="OFFICIAL_ARTIST_BADGE"||a==="SPONSORSHIP_STAR"||a==="PERSON_RADAR_FILLED"||a==="PERSON_RADAR")};
_.Z.computeBadgeShapeStyle=function(a){return this.useBadgeShape?a==="BADGE_STYLE_TYPE_VERIFIED_ARTIST"||a==="BADGE_STYLE_TYPE_VERIFIED"?"badge-shape-style-type-verified-artist":"":""};
_.Z.computeIcon=function(a){var z,I;a=a==null?void 0:(z=a.metadataBadgeRenderer)==null?void 0:(I=z.icon)==null?void 0:I.iconType;if(a!=="PREMIUM"&&a)return _.Bl(a)};
_.Z.computeStandaloneBadge=function(a){var z;a=a==null?void 0:(z=a.icon)==null?void 0:z.iconType;return a==="PREMIUM_STANDALONE"||a==="PREMIUM_STANDALONE_CAIRO"?"standalone-badge":""};
wP.prototype.hiddenBadgeGroupsChanged=wP.prototype.hiddenBadgeGroupsChanged;wP.prototype.standaloneBadgeChanged=wP.prototype.standaloneBadgeChanged;wP.prototype.standaloneRoundedBadgeChanged=wP.prototype.standaloneRoundedBadgeChanged;wP.prototype.badgesChanged=wP.prototype.badgesChanged;_.L([_.x({reflectToAttribute:!0}),_.p("design:type",Boolean)],wP.prototype,"hidden",void 0);_.L([_.Q(_.Ms.YtComponentBehavior),_.p("design:type",Object)],wP.prototype,"componentBehavior",void 0);
_.L([_.x(),_.p("design:type",Array)],wP.prototype,"badges",void 0);_.L([_.x(),_.p("design:type",Object)],wP.prototype,"topStandaloneBadge",void 0);_.L([_.x(),_.p("design:type",Object)],wP.prototype,"bottomStandaloneBadge",void 0);_.L([_.x(),_.p("design:type",Object)],wP.prototype,"computedBadges",void 0);_.L([_.x({reflectToAttribute:!0}),_.p("design:type",Boolean)],wP.prototype,"mediumFontAdBadge",void 0);
_.L([_.x({reflectToAttribute:!0}),_.p("design:type",Boolean)],wP.prototype,"useRoundedBadge",void 0);_.L([_.x({reflectToAttribute:!0}),_.p("design:type",Boolean)],wP.prototype,"largeFontAdBadge",void 0);_.L([_.x({reflectToAttribute:!0}),_.p("design:type",Boolean)],wP.prototype,"overlayAd",void 0);_.L([_.x({reflectToAttribute:!0}),_.p("design:type",Boolean)],wP.prototype,"overlayPremium",void 0);_.L([_.x({reflectToAttribute:!0}),_.p("design:type",Boolean)],wP.prototype,"noDotAdBadge",void 0);
_.L([_.x({reflectToAttribute:!0}),_.p("design:type",Boolean)],wP.prototype,"collectionTruncate",void 0);_.L([_.x({reflectToAttribute:!0}),_.p("design:type",Boolean)],wP.prototype,"isThumbnailBadge",void 0);_.L([_.x({reflectToAttribute:!0}),_.p("design:type",Boolean)],wP.prototype,"wrapBadges",void 0);_.L([_.x({reflectToAttribute:!0}),_.p("design:type",Object)],wP.prototype,"systemIcons",void 0);_.L([_.x({reflectToAttribute:!0}),_.p("design:type",Object)],wP.prototype,"animated",void 0);
_.L([_.x({reflectToAttribute:!0}),_.p("design:type",Object)],wP.prototype,"useBadgeShape",void 0);_.L([_.x({value:[]}),_.p("design:type",Array)],wP.prototype,"hiddenBadgeGroups",void 0);_.L([_.A3("#repeat"),_.p("design:type",Gz)],wP.prototype,"repeatElement",void 0);_.L([_.Fe("badges"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],wP.prototype,"badgesChanged",null);
_.L([_.Fe("useRoundedBadge"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],wP.prototype,"standaloneRoundedBadgeChanged",null);_.L([_.Fe("topStandaloneBadge","bottomStandaloneBadge"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],wP.prototype,"standaloneBadgeChanged",null);_.L([_.Fe("hiddenBadgeGroups"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],wP.prototype,"hiddenBadgeGroupsChanged",null);
_.L([_.U({is:"ytd-badge-supported-renderer",disableElementRegistration:!0})],wP);
var jjw=_.Cw()(wP,"ytd-badge-supported-renderer",function(){if(alw===void 0){var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-badge-supported-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<template is="dom-repeat" id="repeat" items="[[computedBadges]]" as="badge" class="style-scope ytd-badge-supported-renderer"><template is="dom-if" if="[[useBadgeShape]]" class="style-scope ytd-badge-supported-renderer"><div class$="badge-shape [[computeBadgeShapeStyle(badge.metadataBadgeRenderer.style)]] style-scope ytd-badge-supported-renderer"><badge-shape data="[[computeBadgeShape(badge.metadataBadgeRenderer)]]" class="style-scope ytd-badge-supported-renderer"></badge-shape></div></template><template is="dom-if" if="[[!useBadgeShape]]" class="style-scope ytd-badge-supported-renderer"><div class$="badge [[computeStandaloneBadge(badge.metadataBadgeRenderer)]] [[computeStyle(badge.metadataBadgeRenderer.style)]] style-scope ytd-badge-supported-renderer" role="[[computeRole(badge.metadataBadgeRenderer)]]" aria-label$="[[computeAriaLabel(badge.metadataBadgeRenderer)]]"><yt-icon default-to-filled="[[useFilledIcons(badge.metadataBadgeRenderer.icon.iconType)]]" disable-upgrade$="[[!badge.metadataBadgeRenderer.icon]]" hidden="[[!computeIcon(badge)]]" icon="[[computeIcon(badge)]]" size="16" class="style-scope ytd-badge-supported-renderer"></yt-icon><p class="style-scope ytd-badge-supported-renderer">[[badge.metadataBadgeRenderer.label]]</p></div></template></template>');a.content.insertBefore(_.w().content.cloneNode(!0),
a.content.firstChild);alw=a}a=alw;return a},{allowedProps:"badges bottomStandaloneBadge collectionTruncate hidden hiddenBadgeGroups isThumbnailBadge largeFontAdBadge noDotAdBadge overlayAd overlayPremium topStandaloneBadge useRoundedBadge wrapBadges".split(" "),
mode:_.Np("kevlar_poly_si_batch_j053")?1:2});var mb=function(){var a=_.G.apply(this,arguments)||this;a.iconType="STAR";a.standardizeIconSize=_.K("kevlar_system_icons");a.mediaHoverOverlayInitialVisibility=_.K("enable_top_landscape_image_button_command_web");a.noBottomMargin=!1;a.thumbnailObjectFit="CONTAIN";a.thumbnailFitHeight=!0;a.actionMap={"yt-mute-ad-action":"handleMuteAd"};return a};
_.b(mb,_.G);_.Z=mb.prototype;
_.Z.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"}}}};
_.Z.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",mb.JSC$14550_DEFAULT_CLICK_LOCATION_BEHAVIOR,mb.JSC$14550_CLICK_LOCATION_ID_MAP))};
_.Z.onTap=function(a){if(!_.K("use_on_click_for_desktop_display_ad"))this.onTapOrClick(a)};
_.Z.onClick=function(a){if(_.K("use_on_click_for_desktop_display_ad"))this.onTapOrClick(a)};
_.Z.onTapOrClick=function(a){this.clickCommand&&this.ytSparklesClickLocationBehavior.handleClick(this.clickCommand,a,!1)};
_.Z.updateMediaBackgroundImage=function(){var a=this.get("data.image.thumbnail.thumbnails");a&&(a=_.r4(a,0))&&_.uK(this.hostElement,{"--ytd-display-ad-media-background-image":"url("+a+")"})};
_.Z.impressionLog=function(){if(!this.data||!this.data.impressionsFired){if(this.data&&this.data.impressionEndpoints){for(var a=0;a<this.data.impressionEndpoints.length;a++){var z=this.data.impressionEndpoints[a];z.clickTrackingParams&&delete z.clickTrackingParams;_.ab().resolve(_.j6).resolveCommand(z,{form:{element:this.hostElement}})}this.data.impressionsFired=!0}var I;((I=this.data)==null?0:I.activeView)&&this.ytdActiveViewBehavior.enableActiveViewMeasurement(this.data.activeView,17)}};
_.Z.handleMuteAd=function(){};
_.Z.attached=function(){var a=this;_.K("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&a.ytdActiveViewBehavior.stopActiveViewMeasurement()})};
_.Z.detached=function(){_.K("stop_av_measurement_on_detach")&&this.ytdActiveViewBehavior.stopActiveViewMeasurement()};
_.eH.Object.defineProperties(mb.prototype,{titleAriaLabel:{configurable:!0,enumerable:!0,get:function(){var a;if((a=this.data)==null||!a.titleText)return"";var z;return _.AR("AD_TITLE",{title:this.ytRendererBehavior.getSimpleString((z=this.data)==null?void 0:z.titleText)})}},
getRating:{configurable:!0,enumerable:!0,get:function(){var a;return((a=this.data)==null?0:a.rating)?Number(this.data.rating).toPrecision(2):null}},
getPrice:{configurable:!0,enumerable:!0,get:function(){var a;return((a=this.data)==null?0:a.price)?this.data.price:null}},
getThirdLine:{configurable:!0,enumerable:!0,get:function(){var a;return((a=this.data)==null?0:a.thirdLine)?this.data.thirdLine:null}},
getFourthLine:{configurable:!0,enumerable:!0,get:function(){var a;return((a=this.data)==null?0:a.fourthLine)?this.data.fourthLine:null}},
getFifthLine:{configurable:!0,enumerable:!0,get:function(){var a;return((a=this.data)==null?0:a.fifthLine)?this.data.fifthLine:null}},
computeRatingHidden:{configurable:!0,enumerable:!0,get:function(){return!this.getRating}},
computePriceHidden:{configurable:!0,enumerable:!0,get:function(){return!this.getPrice}},
computeThirdLineHidden:{configurable:!0,enumerable:!0,get:function(){return!this.getThirdLine}},
computeFourthLineHidden:{configurable:!0,enumerable:!0,get:function(){return!this.getFourthLine}},
computeFifthLineHidden:{configurable:!0,enumerable:!0,get:function(){return!this.getFifthLine}},
hasEnergyIcon:{configurable:!0,enumerable:!0,get:function(){var a;return!((a=this.data)==null||!a.energyIcon)}},
computeSecondaryTextHidden:{configurable:!0,enumerable:!0,get:function(){return!(this.computeRatingHidden&&this.computePriceHidden)}},
layout:{configurable:!0,enumerable:!0,get:function(){return this.data&&this.data.layout?this.data.layout.toLowerCase().replace(/_/g,"-"):""}},
mediaThumbnailWidth:{configurable:!0,enumerable:!0,get:function(){if(this.data&&this.data.layout&&this.data.layout==="DISPLAY_AD_LAYOUT_VERTICAL_CAROUSEL_ITEM")return 135}},
useRoundedBadge:{configurable:!0,enumerable:!0,get:function(){return this.layout==="display-ad-layout-top-landscape-image"}}});
mb.prototype.onClick=mb.prototype.onClick;mb.prototype.onTap=mb.prototype.onTap;mb.prototype.dataChanged=mb.prototype.dataChanged;
mb.JSC$14550_CLICK_LOCATION_ID_MAP=_.K("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"]]);
mb.JSC$14550_DEFAULT_CLICK_LOCATION_BEHAVIOR=_.K("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"}];_.L([_.Q(_.k.YtRendererBehavior),_.p("design:type",Object)],mb.prototype,"ytRendererBehavior",void 0);_.L([_.Q(_.u4.YtRendererstamperBehavior),_.p("design:type",Object)],mb.prototype,"ytRendererstamperBehavior",void 0);
_.L([_.Q(_.mD),_.p("design:type",Object)],mb.prototype,"ytdDismissibleItemBehavior",void 0);_.L([_.Q(_.pV),_.p("design:type",Object)],mb.prototype,"ytdReduxBehavior",void 0);_.L([_.Q(_.tM.YtSparklesClickLocationBehavior),_.p("design:type",Object)],mb.prototype,"ytSparklesClickLocationBehavior",void 0);_.L([_.Q(lf),_.p("design:type",Object)],mb.prototype,"ytdActiveViewBehavior",void 0);_.L([_.Q([_.Hc.YtActionHandlerBehavior]),_.p("design:type",Object)],mb.prototype,"actionHandlerBehavior",void 0);
_.L([_.x(),_.p("design:type",Object)],mb.prototype,"data",void 0);_.L([_.x(),_.p("design:type",Object)],mb.prototype,"clickCommand",void 0);_.L([_.x({reflectToAttribute:!0,selector:_.$p}),_.p("design:type",Boolean)],mb.prototype,"miniMode",void 0);_.L([_.x(),_.p("design:type",String)],mb.prototype,"iconType",void 0);_.L([_.S("data.titleText"),_.p("design:type",String),_.p("design:paramtypes",[])],mb.prototype,"titleAriaLabel",null);
_.L([_.S("data.rating"),_.p("design:type",Object),_.p("design:paramtypes",[])],mb.prototype,"getRating",null);_.L([_.S("data.price"),_.p("design:type",Object),_.p("design:paramtypes",[])],mb.prototype,"getPrice",null);_.L([_.S("data.thirdLine"),_.p("design:type",Object),_.p("design:paramtypes",[])],mb.prototype,"getThirdLine",null);_.L([_.S("data.fourthLine"),_.p("design:type",Object),_.p("design:paramtypes",[])],mb.prototype,"getFourthLine",null);
_.L([_.S("data.fifthLine"),_.p("design:type",Object),_.p("design:paramtypes",[])],mb.prototype,"getFifthLine",null);_.L([_.S("getRating"),_.p("design:type",Boolean),_.p("design:paramtypes",[])],mb.prototype,"computeRatingHidden",null);_.L([_.S("getPrice"),_.p("design:type",Boolean),_.p("design:paramtypes",[])],mb.prototype,"computePriceHidden",null);_.L([_.S("getThirdLine"),_.p("design:type",Boolean),_.p("design:paramtypes",[])],mb.prototype,"computeThirdLineHidden",null);
_.L([_.S("getFourthLine"),_.p("design:type",Boolean),_.p("design:paramtypes",[])],mb.prototype,"computeFourthLineHidden",null);_.L([_.S("getFifthLine"),_.p("design:type",Boolean),_.p("design:paramtypes",[])],mb.prototype,"computeFifthLineHidden",null);_.L([_.x({reflectToAttribute:!0}),_.S("data.energyIcon"),_.p("design:type",Boolean),_.p("design:paramtypes",[])],mb.prototype,"hasEnergyIcon",null);
_.L([_.S("computePriceHidden","computeRatingHidden"),_.p("design:type",Boolean),_.p("design:paramtypes",[])],mb.prototype,"computeSecondaryTextHidden",null);_.L([_.x({reflectToAttribute:!0}),_.p("design:type",Object)],mb.prototype,"standardizeIconSize",void 0);_.L([_.x({reflectToAttribute:!0}),_.p("design:type",Object)],mb.prototype,"mediaHoverOverlayInitialVisibility",void 0);_.L([_.x({reflectToAttribute:!0}),_.p("design:type",Object)],mb.prototype,"noBottomMargin",void 0);
_.L([_.x({reflectToAttribute:!0}),_.S("data.layout"),_.p("design:type",String),_.p("design:paramtypes",[])],mb.prototype,"layout",null);_.L([_.S("data.layout"),_.p("design:type",Object),_.p("design:paramtypes",[])],mb.prototype,"mediaThumbnailWidth",null);_.L([_.S("layout"),_.p("design:type",Boolean),_.p("design:paramtypes",[])],mb.prototype,"useRoundedBadge",null);_.L([_.x(),_.p("design:type",String)],mb.prototype,"thumbnailObjectFit",void 0);
_.L([_.x(),_.p("design:type",Object)],mb.prototype,"thumbnailFitHeight",void 0);_.L([_.Fe("data"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],mb.prototype,"dataChanged",null);_.L([_.gz("tap"),_.p("design:type",Function),_.p("design:paramtypes",[CustomEvent]),_.p("design:returntype")],mb.prototype,"onTap",null);_.L([_.gz("click"),_.p("design:type",Function),_.p("design:paramtypes",[CustomEvent]),_.p("design:returntype")],mb.prototype,"onClick",null);
_.L([_.U({is:"ytd-display-ad-renderer",disableElementRegistration:!0})],mb);
_.D(mb,"ytd-display-ad-renderer",function(){if(euG!==void 0)return euG;var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-display-ad-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="dismissible" class="style-scope ytd-display-ad-renderer">\n  <div id="root" class="style-scope ytd-display-ad-renderer">\n    <div id="media-container" aria-hidden="true" class="style-scope ytd-display-ad-renderer">\n      <div id="media-background" class="style-scope ytd-display-ad-renderer"></div>\n      <div id="media" class="style-scope ytd-display-ad-renderer"></div>\n      <div id="media-badge" class="style-scope ytd-display-ad-renderer"></div>\n      <div id="media-hover-overlay" class="style-scope ytd-display-ad-renderer"></div>\n    </div>\n    <div class="title style-scope ytd-display-ad-renderer">\n      <a class="yt-display-ad-renderer-endpoint title-link style-scope ytd-display-ad-renderer" aria-label$="[[titleAriaLabel]]" href$="[[computeHref_(clickCommand)]]">\n        <yt-formatted-string class="title-text style-scope ytd-display-ad-renderer" text="[[data.titleText]]" title="[[getSimpleString(data.titleText)]]">\n        </yt-formatted-string>\n      </a>\n      <div id="menu" class="style-scope ytd-display-ad-renderer"></div>\n    </div>\n    <div id="support" class="style-scope ytd-display-ad-renderer">\n      <yt-formatted-string id="body-text" text="[[data.bodyText]]" title="[[getSimpleString(data.bodyText)]]" class="style-scope ytd-display-ad-renderer">\n      </yt-formatted-string>\n      <div id="badge" class="badge style-scope ytd-display-ad-renderer"></div>\n      <yt-formatted-string id="secondary-text" hidden="[[computeSecondaryTextHidden]]" text="[[data.secondaryText]]" title="[[getSimpleString(data.secondaryText)]]" class="style-scope ytd-display-ad-renderer">\n      </yt-formatted-string>\n      <span id="rating" hidden="[[computeRatingHidden]]" class="style-scope ytd-display-ad-renderer">[[getRating]]</span>\n      <yt-icon id="icon" default-to-filled="true" hidden="[[computeRatingHidden]]" icon="[[iconType]]" class="style-scope ytd-display-ad-renderer"></yt-icon>\n      <yt-formatted-string id="price" hidden="[[computePriceHidden]]" text="[[getPrice]]" class="style-scope ytd-display-ad-renderer"></yt-formatted-string>\n    </div>\n    <div id="support" class="style-scope ytd-display-ad-renderer">\n      <yt-formatted-string id="third-line" hidden="[[computeThirdLineHidden]]" text="[[data.thirdLine]]" title="[[getSimpleString(data.thirdLine)]]" class="style-scope ytd-display-ad-renderer">\n      </yt-formatted-string>\n    </div>\n    <div id="support" class="style-scope ytd-display-ad-renderer">\n      <yt-formatted-string id="fourth-line" hidden="[[computeFourthLineHidden]]" text="[[data.fourthLine]]" title="[[getSimpleString(data.fourthLine)]]" class="style-scope ytd-display-ad-renderer">\n      </yt-formatted-string>\n    </div>\n    <div id="support" class="style-scope ytd-display-ad-renderer">\n      <yt-formatted-string id="fifth-line" hidden="[[computeFifthLineHidden]]" text="[[data.fifthLine]]" title="[[getSimpleString(data.fifthLine)]]" class="style-scope ytd-display-ad-renderer">\n      </yt-formatted-string>\n      <yt-img-shadow id="energy-icon" height="14" hidden="[[!data.energyIcon]]" thumbnail="[[data.energyIcon]]" class="style-scope ytd-display-ad-renderer"></yt-img-shadow>\n    </div>\n    <div id="call-to-action" class="style-scope ytd-display-ad-renderer"></div>\n  </div>\n</div>\n<div id="dismissed" class="style-scope ytd-display-ad-renderer">\n  <div id="dismissed-content" class="style-scope ytd-display-ad-renderer"></div>\n</div>\n');a.content.insertBefore(_.w().content.cloneNode(!0),
a.content.firstChild);return euG=a},{mode:1});var z_l;var Ili;var Jao;var xxx=new Map;var raI=!1;var yn=function(){var a=_.G.apply(this,arguments)||this;a.DEFAULT_TOOLTIP_OFFSET="10";a.TOOLTIP_OFFSET_NO_BANNER="-8";a.badges=null;a.noEndpoints=!1;a.wrapText=!1;a.forceVerified=!1;a.tooltipPosition="top";a.compactStyle=!1;a.height=0;a.lineHeight=0;return a};
_.b(yn,_.G);_.Z=yn.prototype;_.Z.created=function(){this.ytActionHandlerBehavior.actionMap={"yt-window-resized":"handleWindowResized"}};
_.Z.attached=function(){var a=this;this.observer=new MutationObserver(function(z,I){a.handleResized();I.disconnect()});
this.observer.observe(this.textEl,{childList:!0})};
_.Z.detached=function(){this.observer&&this.observer.disconnect()};
_.Z.logTooltipEvent=function(){_.K("kevlar_wiz_tooltip_event_killswitch")||raI||(_.vH3("GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_WIZ_NEXT_CHANNEL_NAME_TOOLTIP"),raI=!0)};
_.Z.handleWindowResized=function(){this.handleResized()};
_.Z.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")))};
_.Z.onHeightChanged=function(){if(this.verified){var a=Math.ceil(this.height*Math.tan(30*Math.PI/180))+"px";_.Xw("HTML_DIR")==="rtl"?this.textContainerEl.style.marginLeft=a:this.textContainerEl.style.marginRight=a}};
_.Z.onLineHeightChanged=function(){this.verified&&(this.lineHeight>=24||this.lineHeight===0&&this.height>=24)&&(this.textContainerEl.style.padding=_.Xw("HTML_DIR")==="rtl"?"0 6px 0 2px":"0 2px 0 6px")};
_.Z.handleResized=function(){var a=this;this.verified&&_.GW.addLowPriorityJob(function(){a.fitBackgroundToText();var z=getComputedStyle(a.hostElement).lineHeight;z&&(z=z.match(/\d+/))&&z.length&&(a.lineHeight=Number(z[0]));a.height=a.lineHeight&&!a.wrapText?a.lineHeight:a.textEl.offsetHeight})};
_.Z.fitBackgroundToText=function(){if(this.verified&&this.wrapText){this.textEl.style.width="unset";var a=document.createRange(),z=_.PK(this.textEl).children;z.length>0?a.selectNodeContents(z[0]):a.selectNodeContents(this.textEl);this.textEl.style.width=Math.ceil(a.getBoundingClientRect().width)+"px"}};
_.Z.computeChannelBadgeStyle=function(a){var z;if((a==null?0:(z=a.runs)==null?0:z.length)&&a.runs[0].textColor)return"--ytd-badge-icon-color:"+_.Da(a.runs[0].textColor)+";"};
_.eH.Object.defineProperties(yn.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"?_.Mo(this.channelName):this.channelName}},
tooltipText:{configurable:!0,enumerable:!0,get:function(){if(this.verified){if(this.tooltip)return this.tooltip;var a=this.get("badges.0.metadataBadgeRenderer.tooltip");if(a)return a}return _.cd(this.formattedName)}},
tooltipOffset:{configurable:!0,enumerable:!0,get:function(){return this.hasChannelArt?this.DEFAULT_TOOLTIP_OFFSET:this.TOOLTIP_OFFSET_NO_BANNER}}});
yn.prototype.onLineHeightChanged=yn.prototype.onLineHeightChanged;yn.prototype.onHeightChanged=yn.prototype.onHeightChanged;yn.prototype.onChannelNameChanged=yn.prototype.onChannelNameChanged;_.L([_.Q(_.Hc.YtActionHandlerBehavior),_.p("design:type",Object)],yn.prototype,"ytActionHandlerBehavior",void 0);_.L([_.x(),_.p("design:type",Object)],yn.prototype,"badges",void 0);_.L([_.x(),_.p("design:type",Object)],yn.prototype,"channelName",void 0);
_.L([_.x(),_.p("design:type",Object)],yn.prototype,"noEndpoints",void 0);_.L([_.x(),_.p("design:type",Object)],yn.prototype,"wrapText",void 0);_.L([_.x(),_.p("design:type",Object)],yn.prototype,"forceVerified",void 0);_.L([_.x(),_.p("design:type",Object)],yn.prototype,"tooltipPosition",void 0);_.L([_.x(),_.p("design:type",String)],yn.prototype,"tooltip",void 0);_.L([_.x(),_.p("design:type",Boolean)],yn.prototype,"hasChannelArt",void 0);
_.L([_.x({reflectToAttribute:!0}),_.p("design:type",Object)],yn.prototype,"compactStyle",void 0);_.L([_.A3("#text-container"),_.p("design:type",HTMLElement)],yn.prototype,"textContainerEl",void 0);_.L([_.A3("#text"),_.p("design:type",Object)],yn.prototype,"textEl",void 0);_.L([_.A3("#verified-tooltip"),_.p("design:type",HTMLElement)],yn.prototype,"verifiedTooltip",void 0);_.L([_.x(),_.p("design:type",Object)],yn.prototype,"height",void 0);
_.L([_.x(),_.p("design:type",Object)],yn.prototype,"lineHeight",void 0);_.L([_.x({reflectToAttribute:!0}),_.S("badges","forceVerified"),_.p("design:type",Boolean),_.p("design:paramtypes",[])],yn.prototype,"verified",null);_.L([_.S("badges","verified"),_.p("design:type",Boolean),_.p("design:paramtypes",[])],yn.prototype,"hideBadges",null);_.L([_.S("channelName"),_.p("design:type",Object),_.p("design:paramtypes",[])],yn.prototype,"formattedName",null);
_.L([_.S("badges","verified","formattedName"),_.p("design:type",String),_.p("design:paramtypes",[])],yn.prototype,"tooltipText",null);_.L([_.S("hasChannelArt"),_.p("design:type",String),_.p("design:paramtypes",[])],yn.prototype,"tooltipOffset",null);_.L([_.O8("channelName"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],yn.prototype,"onChannelNameChanged",null);
_.L([_.O8("height"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],yn.prototype,"onHeightChanged",null);_.L([_.O8("lineHeight","height"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],yn.prototype,"onLineHeightChanged",null);_.L([_.U({is:"ytd-channel-name",disableElementRegistration:!0})],yn);
_.D(yn,"ytd-channel-name",function(){if(Jao!==void 0)return Jao;var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-channel-name--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="container" on-mouseover="logTooltipEvent" class="style-scope ytd-channel-name">\n  <div id="text-container" class="style-scope ytd-channel-name">\n    <yt-formatted-string id="text" ellipsis-truncate="[[!wrapText]]" link-inherit-color="" no-endpoints="[[noEndpoints]]" respect-lang-dir="" text="[[formattedName]]" title="" class="style-scope ytd-channel-name">\n    </yt-formatted-string>\n  </div>\n  <tp-yt-paper-tooltip aria-hidden="true" fit-to-visible-bounds="" offset="[[tooltipOffset]]" position="[[tooltipPosition]]" class="style-scope ytd-channel-name">\n    [[tooltipText]]\n  </tp-yt-paper-tooltip>\n</div>\n<ytd-badge-supported-renderer badges="[[badges]]" hidden="[[hideBadges]]" style$="[[computeChannelBadgeStyle(formattedName)]]" class="style-scope ytd-channel-name">\n</ytd-badge-supported-renderer>\n');a.content.insertBefore(_.w().content.cloneNode(!0),
a.content.firstChild);return Jao=a},{mode:_.Np("kevlar_poly_si_batch_j036")?1:2});var ka=function(){var a=_.G.apply(this,arguments)||this;a.standardizeIconSize=_.K("kevlar_system_icons");return a};
_.b(ka,_.G);ka.prototype.basicPaletteChanged=function(){var a;(a=this.data.color)!=null&&a.basicColorPaletteData&&_.xq(this.hostElement,this.data.color.basicColorPaletteData)};
ka.prototype.useFilledIcons=function(a){return _.K("kevlar_system_icons")&&(a==="CHECK_CIRCLE_THICK"||a==="OFFICIAL_ARTIST_BADGE")};
_.eH.Object.defineProperties(ka.prototype,{verified:{configurable:!0,enumerable:!0,get:function(){return!!this.data.authorUnifiedVerified}},
creator:{configurable:!0,enumerable:!0,get:function(){var a,z,I;return this.data.authorCreator||((a=this.data)==null?void 0:(z=a.color)==null?void 0:(I=z.basicColorPaletteData)==null?void 0:I.backgroundColor)}}});
ka.prototype.basicPaletteChanged=ka.prototype.basicPaletteChanged;_.L([_.Q(_.k.YtRendererBehavior),_.p("design:type",Object)],ka.prototype,"ytRendererBehavior",void 0);_.L([_.x(),_.p("design:type",Object)],ka.prototype,"data",void 0);_.L([_.x({reflectToAttribute:!0}),_.p("design:type",Boolean)],ka.prototype,"standardizeIconSize",void 0);_.L([_.x({reflectToAttribute:!0}),_.S("data.authorUnifiedVerified"),_.p("design:type",Object),_.p("design:paramtypes",[])],ka.prototype,"verified",null);
_.L([_.x({reflectToAttribute:!0}),_.S("data"),_.p("design:type",Object),_.p("design:paramtypes",[])],ka.prototype,"creator",null);_.L([_.O8("data.color.basicColorPaletteData"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],ka.prototype,"basicPaletteChanged",null);_.L([_.U({is:"ytd-author-comment-badge-renderer",disableElementRegistration:!0})],ka);
_.D(ka,"ytd-author-comment-badge-renderer",function(){if(Ili!==void 0)return Ili;var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-author-comment-badge-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<a id="name" class="yt-simple-endpoint style-scope ytd-author-comment-badge-renderer" href$="[[computeOptionalHref_(data.authorEndpoint)]]" data="[[data.authorEndpoint]]">\n  <ytd-channel-name id="channel-name" channel-name="[[data.authorText]]" force-verified="[[verified]]" tooltip="[[data.iconTooltip]]" class="style-scope ytd-author-comment-badge-renderer">\n  </ytd-channel-name>\n</a>\n<yt-icon id="icon" default-to-filled="[[useFilledIcons(data.icon.iconType)]]" hidden="[[!data.icon.iconType]]" icon="[[data.icon.iconType]]" size="12" class="style-scope ytd-author-comment-badge-renderer">\n</yt-icon>\n');
a.content.insertBefore(_.w().content.cloneNode(!0),a.content.firstChild);return Ili=a},{mode:1});var PCG;var MU=function(){return _.G.apply(this,arguments)||this};
_.b(MU,_.G);MU.prototype.computeThumbnailWidth=function(a){if(a==="BACKSTAGE_SURFACE_TYPE_STREAM")return 638};
_.L([_.Q(_.k.YtRendererBehavior),_.p("design:type",Object)],MU.prototype,"ytRendererBehavior",void 0);_.L([_.x(),_.p("design:type",Object)],MU.prototype,"data",void 0);_.L([_.x({computed:"computeIcon_(data.icon)"}),_.p("design:type",String)],MU.prototype,"icon",void 0);_.L([_.x({reflectToAttribute:!0}),_.p("design:type",String)],MU.prototype,"surface",void 0);
_.L([_.x({reflectToAttribute:!0,value:_.K("enable_shrink_image_size_on_web_posts_singleton")}),_.p("design:type",Boolean)],MU.prototype,"searchSxsUx",void 0);_.L([_.U({is:"ytd-backstage-image-renderer",disableElementRegistration:!0})],MU);
_.D(MU,"ytd-backstage-image-renderer",function(){if(PCG!==void 0)return PCG;var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-backstage-image-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e\n<template is="dom-if" if="[[data.command]]" class="style-scope ytd-backstage-image-renderer">\n  <a class="yt-simple-endpoint style-scope ytd-backstage-image-renderer" href$="[[computeHref_(data.command)]]" data="[[data.commmand]]" aria-label$="[[data.accessibility.accessibilityData.label]]">\n    <div id="image-container" class="style-scope ytd-backstage-image-renderer">\n      <yt-img-shadow thumbnail="[[data.image]]" width="[[computeThumbnailWidth(surface)]]" class="style-scope ytd-backstage-image-renderer">\n      </yt-img-shadow>\n      <div id="image-icon-container" class="image-icon-container style-scope ytd-backstage-image-renderer" hidden="[[!data.icon]]">\n        <yt-icon icon="[[computeIcon_(data.icon)]]" class="style-scope ytd-backstage-image-renderer"></yt-icon>\n      </div>\n    </div>\n  </a>\n</template>\n<template is="dom-if" if="[[!data.command]]" class="style-scope ytd-backstage-image-renderer">\n    <div id="image-container" class="style-scope ytd-backstage-image-renderer">\n      <yt-img-shadow thumbnail="[[data.image]]" width="[[computeThumbnailWidth(surface)]]" class="style-scope ytd-backstage-image-renderer">\n      </yt-img-shadow>\n      <div id="generated-image-identifier" class="generated-image-identifier style-scope ytd-backstage-image-renderer" hidden="[[!data.generatedImageMetadata]]">\n        <yt-icon class="generated-image-icon style-scope ytd-backstage-image-renderer" icon="[[computeIcon_(data.generatedImageMetadata.icon)]]"></yt-icon>\n        <span class="generated-image-label style-scope ytd-backstage-image-renderer">[[data.generatedImageMetadata.label]]</span>\n      </div>\n      <div id="image-icon-container" class="image-icon-container style-scope ytd-backstage-image-renderer" hidden="[[!data.icon]]">\n        <yt-icon icon="[[computeIcon_(data.icon)]]" class="style-scope ytd-backstage-image-renderer"></yt-icon>\n      </div>\n    </div>\n</template>\n');a.content.insertBefore(_.w().content.cloneNode(!0),
a.content.firstChild);return PCG=a},{mode:1});var ZCO;var cs=function(){var a=_.G.apply(this,arguments)||this;a.isLoading=!1;a.selectedItemIndex=-1;return a};
_.b(cs,_.G);_.Z=cs.prototype;_.Z.computeIsChannelOwner=function(a){if(!a)return!0;a=a[0];return!(a&&(a.signinEndpoint||a.selectServiceEndpoint))};
_.Z.computeIsImagePoll=function(a){return(a==null?void 0:a.type)==="POLL_TYPE_IMAGE"};
_.Z.computeIsTotalVotesDisabled=function(a){return!(a==null?0:a.totalVotes)};
_.Z.thumbnailSrc=function(a){var z,I,J,r;return(a==null?0:(z=a.thumbnails)==null?0:(I=z[0])==null?0:I.url)?_.XG((J=a.thumbnails)==null?void 0:(r=J[0])==null?void 0:r.url):void 0};
_.Z.progressWidth=function(a){return"width:"+(a?a*100:0)+"%;"};
_.Z.textAreaWidth=function(a){return this.isImagePoll?null:"width:"+(a?a*100:0)+"%;"};
_.Z.hasEndpointStyle=function(){return this.isChannelOwner?"":"yt-simple-endpoint"};
_.Z.dataChanged=function(){if(this.data&&(this.isLoading=!1,this.previousPollInfo=null,this.data.choices))for(var a=this.data.choices,z=0;z<a.length;z++)if(a[z].selected){this.selectedItemIndex=z;break}};
_.Z.onPopupClosed=function(a,z){a=Number(this.pollVotes.selected);z.confirmed&&(this.selectChoice(a,!1),_.ZF(this.hostElement,"yt-remove-comment-action",[{removeCommentAction:{commentId:this.data.votedCommentId}}]));this.pollVotes.selected=-1};
_.Z.onPollChoiceSelected=function(){this.isLoading||this.isChannelOwner||this.selectChoice(Number(this.pollVotes.selected),!1);this.pollVotes.selected=-1};
_.Z.onYtCommentPollRevert=function(a,z){z&&(this.selectChoice(z.selectedChoiceIndex,!0),this.set("data.totalVotes",z.totalVotes))};
_.Z.onYtServiceRequestSent=function(a,z){if(z.actions)for(a=0;a<z.actions.length;a++){var I=z.actions[a];_.H(I,vU)&&this.set("data.totalVotes",_.H(I,vU).totalVotes)}};
_.Z.onYtServiceRequestCompleted=function(a){var z=this.get("detail.data.actionResults.0.feedback",a);a=this.get("detail.data.actionResults.0.status",a);if(z==="FEEDBACK_DESELECT"||z==="FEEDBACK_SELECT")this.isLoading=!1,a==="STATUS_FAILED"?_.PA(this.hostElement,"yt-comment-poll-revert",this.previousPollInfo):this.previousPollInfo=null};
_.Z.getEndpoint=function(a,z){return z===a?this.data.choices[z].deselectServiceEndpoint||null:this.data.choices[a].selectServiceEndpoint||null};
_.Z.selectChoice=function(a,z){this.previousPollInfo||(this.previousPollInfo={totalVotes:this.data.totalVotes,selectedChoiceIndex:this.selectedItemIndex});for(var I=0;I<this.data.choices.length;I++){var J;if(a===this.selectedItemIndex){var r=!1;var P=J=null}else J=(r=I===a)?this.data.choices[I].voteRatioIfSelected:this.data.choices[I].voteRatioIfNotSelected,P=r?this.data.choices[I].votePercentageIfSelected:this.data.choices[I].votePercentageIfNotSelected;this.set("data.choices."+I+".voteRatio",J);
this.set("data.choices."+I+".votePercentage",P);this.set("data.choices."+I+".selected",r)}z||(this.isLoading=!0,(z=this.getEndpoint(a,this.selectedItemIndex))&&_.ab().resolve(_.j6).resolveCommand(z,{form:{element:this.hostElement}}));this.selectedItemIndex=this.selectedItemIndex===a?-1:a};
_.eH.Object.defineProperties(cs.prototype,{endpointStyle:{configurable:!0,enumerable:!0,get:function(){return this.isChannelOwner?"yt-simple-endpoint disable-cursor":"yt-simple-endpoint"}}});
cs.prototype.onYtServiceRequestCompleted=cs.prototype.onYtServiceRequestCompleted;cs.prototype.onYtServiceRequestSent=cs.prototype.onYtServiceRequestSent;cs.prototype.onYtCommentPollRevert=cs.prototype.onYtCommentPollRevert;cs.prototype.onPopupClosed=cs.prototype.onPopupClosed;cs.prototype.dataChanged=cs.prototype.dataChanged;_.L([_.Q(_.e_),_.p("design:type",Object)],cs.prototype,"paperItemBehavior",void 0);
_.L([_.Q(_.k.YtRendererBehavior),_.p("design:type",Object)],cs.prototype,"ytRendererBehavior",void 0);_.L([_.Q(_.rI),_.p("design:type",Object)],cs.prototype,"ytdOpenPopupBehavior",void 0);_.L([_.x(),_.p("design:type",Object)],cs.prototype,"data",void 0);_.L([_.x(),_.p("design:type",Object)],cs.prototype,"isLoading",void 0);_.L([_.x({computed:"computeIsChannelOwner(data.choices)"}),_.p("design:type",Boolean)],cs.prototype,"isChannelOwner",void 0);
_.L([_.x({reflectToAttribute:!0,computed:"computeIsImagePoll(data)"}),_.p("design:type",Boolean)],cs.prototype,"isImagePoll",void 0);_.L([_.x({computed:"computeIsTotalVotesDisabled(data)"}),_.p("design:type",Boolean)],cs.prototype,"isTotalVotesDisabled",void 0);_.L([_.x(),_.p("design:type",Object)],cs.prototype,"previousPollInfo",void 0);_.L([_.x(),_.p("design:type",Object)],cs.prototype,"selectedItemIndex",void 0);_.L([_.A3("#poll-votes"),_.p("design:type",Object)],cs.prototype,"pollVotes",void 0);
_.L([_.S("isChannelOwner"),_.p("design:type",Object),_.p("design:paramtypes",[])],cs.prototype,"endpointStyle",null);_.L([_.O8("data"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],cs.prototype,"dataChanged",null);_.L([_.gz("yt-popup-closed"),_.p("design:type",Function),_.p("design:paramtypes",[CustomEvent,Object]),_.p("design:returntype")],cs.prototype,"onPopupClosed",null);
_.L([_.gz("yt-comment-poll-revert"),_.p("design:type",Function),_.p("design:paramtypes",[CustomEvent,Object]),_.p("design:returntype")],cs.prototype,"onYtCommentPollRevert",null);_.L([_.gz("yt-service-request-sent"),_.p("design:type",Function),_.p("design:paramtypes",[CustomEvent,_.lJ]),_.p("design:returntype")],cs.prototype,"onYtServiceRequestSent",null);
_.L([_.gz("yt-service-request-completed"),_.p("design:type",Function),_.p("design:paramtypes",[CustomEvent]),_.p("design:returntype")],cs.prototype,"onYtServiceRequestCompleted",null);_.L([_.U({is:"ytd-backstage-poll-renderer",disableElementRegistration:!0})],cs);
_.D(cs,"ytd-backstage-poll-renderer",function(){if(ZCO!==void 0)return ZCO;var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-backstage-poll-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-formatted-string id="vote-info" hidden="[[isTotalVotesDisabled]]" text="[[data.totalVotes]]" class="style-scope ytd-backstage-poll-renderer">\n</yt-formatted-string>\n<tp-yt-paper-listbox id="poll-votes" on-iron-select="onPollChoiceSelected" class="style-scope ytd-backstage-poll-renderer">\n  <template is="dom-repeat" items="[[data.choices]]" class="style-scope ytd-backstage-poll-renderer">\n    <a id="sign-in" class$="[[endpointStyle]] style-scope ytd-backstage-poll-renderer" href$="[[computeHref_(item.signinEndpoint)]]" data="[[item.signinEndpoint]]" role="option">\n      <tp-yt-paper-item class="vote-choice style-scope ytd-backstage-poll-renderer" name="[[index]]" selected$="[[item.selected]]" show-percentage$="[[item.votePercentage]]">\n        <template is="dom-if" if="[[!isImagePoll]]" class="style-scope ytd-backstage-poll-renderer">\n          <tp-yt-paper-button class="check-icons style-scope ytd-backstage-poll-renderer" hidden="[[isChannelOwner]]">\n            <yt-icon hidden="[[item.selected]]" icon="radio-button-unchecked" class="style-scope ytd-backstage-poll-renderer"></yt-icon>\n            <yt-icon class="checked style-scope ytd-backstage-poll-renderer" hidden="[[!item.selected]]" icon="check-circle" default-to-filled="true"></yt-icon>\n          </tp-yt-paper-button>\n        </template>\n        <template is="dom-if" if="[[isImagePoll]]" class="style-scope ytd-backstage-poll-renderer">\n          <img class="choice-image style-scope ytd-backstage-poll-renderer" alt="" src$="[[thumbnailSrc(item.image)]]">\n        </template>\n        <div class="choice-info style-scope ytd-backstage-poll-renderer">\n          <div class="text-area style-scope ytd-backstage-poll-renderer">\n            <yt-formatted-string class="choice-text style-scope ytd-backstage-poll-renderer" text="[[item.text]]">\n            </yt-formatted-string>\n            <yt-formatted-string class="vote-percentage style-scope ytd-backstage-poll-renderer" hidden="[[!item.votePercentage]]" text="[[item.votePercentage]]">\n            </yt-formatted-string>\n          </div>\n          <div class="vote-percentage-area style-scope ytd-backstage-poll-renderer" style$="[[textAreaWidth(item.voteRatio)]]">\n          </div>\n          <div class="progress-bar style-scope ytd-backstage-poll-renderer" hidden="[[!item.votePercentage]]" style$="[[progressWidth(item.voteRatio)]]">\n          </div>\n        </div>\n      </tp-yt-paper-item>\n    </a>\n  </template>\n</tp-yt-paper-listbox>\n');a.content.insertBefore(_.w().content.cloneNode(!0),
a.content.firstChild);return ZCO=a},{mode:2});var CCv;var Nyj={autoplay:!1,loop:!1},tDv={simpleText:""},Ya=function(){var a=_.G.apply(this,arguments)||this;a.isLoading=!1;a.usesPanelLockup=!1;a.selectedItemIndex=-1;a.baseCorrectLottiePlayerAnimationConfig=Object.assign({},{name:"CORRECT",path:"https://www.gstatic.com/youtube/img/creator/posts/Lottie_QuizCorrect_LightTheme_01a.json",renderer:"svg"},Nyj,{rendererSettings:{viewBoxOnly:!0,viewBoxSize:"12 20 80 80"}});a.baseIncorrectLottiePlayerAnimationConfig=Object.assign({},{name:"INCORRECT",path:"https://www.gstatic.com/youtube/img/creator/posts/Lottie_QuizIncorrect_LightTheme_01a.json",
renderer:"svg"},Nyj,{rendererSettings:{viewBoxOnly:!0,viewBoxSize:"26 26 80 80"}});a.correctnessAnimationProps=[];a.correctnessAnimationRefs=[];return a};
_.b(Ya,_.G);_.Z=Ya.prototype;_.Z.attached=function(){this.isDarkTheme=document.documentElement.hasAttribute("dark");this.ytRendererBehavior.markDirty()};
_.Z.computeIsChannelOwner=function(a){if(!a)return!0;a=a[0];return!(a&&(a.signinEndpoint||a.selectServiceEndpoint))};
_.Z.computeIsTotalVotesDisabled=function(a){return!(a==null?0:a.totalVotes)};
_.Z.computeIsImageQuiz=function(a){return(a==null?void 0:a.type)==="POLL_TYPE_IMAGE"};
_.Z.onExplanationChanged=function(){this.expander.reset()};
_.Z.dataChanged=function(){if(this.data){this.isLoading=!1;this.previousQuizInfo=null;var a=this.data.choices;if(a){this.maybeInitializeQuizLotties(a);for(var z=0;z<a.length;z++)if(a[z].isSelected||this.isChannelOwner&&a[z].isCorrect){this.selectedItemIndex=z;return}this.selectedItemIndex=-1}}};
_.Z.onQuizChoiceSelected=function(){if(this.isLoading||this.isChannelOwner||this.isQuizAnsweringDisabled)this.quizVotes.selected=-1;else{var a=this.selectedItemIndex,z=Number(this.quizVotes.selected);this.selectChoice(z);this.sendVoteAction(z,a);this.quizVotes.selected=-1;var I;a=!((I=this.data)==null?0:I.enableAnimation);this.maybePlayAnswerAnimations(a)}};
_.Z.onYtCommentPollRevert=function(a,z){z&&(this.selectChoice(z.selectedChoiceIndex),this.set("data.totalVotes",z.totalVotes))};
_.Z.onYtServiceRequestSent=function(a,z){if(z.actions)for(a=_.C(z.actions),z=a.next();!z.done;z=a.next())(z=_.H(z.value,vU))&&this.set("data.totalVotes",z.totalVotes)};
_.Z.onYtServiceRequestCompleted=function(a){var z=this.get("detail.data.actionResults.0.feedback",a);a=this.get("detail.data.actionResults.0.status",a);if(z==="FEEDBACK_DESELECT"||z==="FEEDBACK_SELECT")this.isLoading=!1,a==="STATUS_FAILED"?_.PA(this.hostElement,"yt-comment-quiz-revert",this.previousQuizInfo):this.previousQuizInfo=null};
_.Z.getAnimationPropsForChoiceIndex=function(a,z){return z[a]};
_.Z.maybePlayAnswerAnimations=function(a){a=a===void 0?!1:a;var z;if((z=this.data)!=null&&z.choices&&!(this.correctnessAnimationRefs.length<this.data.choices.length)){z=_.C(this.correctnessAnimationRefs);for(var I=z.next();!I.done;I=z.next()){var J=void 0,r=void 0;(J=I.value)==null||(r=J.lottieEl)==null||r.stop()}if(!(this.selectedItemIndex<0)){z=0;a&&(z=this.isCorrect?37:25);var P,N;(P=this.correctnessAnimationRefs[this.selectedItemIndex])==null||(N=P.lottieEl)==null||N.goToAndPlay(a?z:0,!0);if(!(this.isCorrect||
(P=this.data.choices.findIndex(function(f){return f.isCorrect}),P<0))){var u,E;
(E=(u=this.correctnessAnimationRefs[P])==null?void 0:u.lottieEl)==null||E.goToAndPlay(37,!0);var O;u=(O=this.fadeContainers)==null?void 0:O.item(P);!a&&u&&this.fadeIn(u)}}}};
_.Z.thumbnailSrc=function(a){var z,I,J,r;return(a==null?0:(z=a.thumbnails)==null?0:(I=z[0])==null?0:I.url)?_.XG((J=a.thumbnails)==null?void 0:(r=J[0])==null?void 0:r.url):void 0};
_.Z.a11yVotedText=function(a,z){var I,J,r=((I=this.data)==null?void 0:(J=I.correctVotedText)==null?void 0:J.simpleText)||"",P,N;I=((P=this.data)==null?void 0:(N=P.votedText)==null?void 0:N.simpleText)||"";if(!z)return"";var u,E;if((u=this.data)==null?0:(E=u.choices)==null?0:E[a].isCorrect)return r;var O,f;return((O=this.data)==null?0:(f=O.choices)==null?0:f[a].isSelected)?I:""};
_.Z.getEndpoint=function(a,z){return z===a?this.data.choices[a].deselectServiceEndpoint||null:this.data.choices[a].selectServiceEndpoint||null};
_.Z.sendVoteAction=function(a,z){if(a=this.getEndpoint(a,z))this.isLoading=!0,this.ytComponentBehavior.resolveCommand(a)};
_.Z.selectChoice=function(a){this.previousQuizInfo||(this.previousQuizInfo={totalVotes:this.data.totalVotes,selectedChoiceIndex:this.selectedItemIndex});for(var z=0;z<this.data.choices.length;z++)this.set("data.choices."+z+".isSelected",a===this.selectedItemIndex?!1:z===a);this.selectedItemIndex=this.selectedItemIndex===a?-1:a};
_.Z.maybeInitializeQuizLotties=function(a){var z=this;this.isDarkTheme&&(this.baseCorrectLottiePlayerAnimationConfig.path="https://www.gstatic.com/youtube/img/creator/posts/Lottie_QuizCorrect_DarkTheme_01a.json",this.baseIncorrectLottiePlayerAnimationConfig.path="https://www.gstatic.com/youtube/img/creator/posts/Lottie_QuizIncorrect_DarkTheme_01a.json");this.correctnessAnimationProps=a.map(function(I){return{animationConfig:I.isCorrect?z.baseCorrectLottiePlayerAnimationConfig:z.baseIncorrectLottiePlayerAnimationConfig,
animationRef:{},listeners:{DOMLoaded:function(){z.maybePlayAnswerAnimations(!0)}}}});
this.correctnessAnimationRefs=this.correctnessAnimationProps.map(function(I){return I.animationRef||{}})};
_.Z.fadeIn=function(a){a.classList.add("fade-in");_.NK(_.GW,function(){a.classList.remove("fade-in")},900)};
_.eH.Object.defineProperties(Ya.prototype,{shouldUseModernUi:{configurable:!0,enumerable:!0,get:function(){return _.K("enable_modern_quiz_consumption_ui")||this.usesPanelLockup}},
showExplanation:{configurable:!0,enumerable:!0,get:function(){return _.cd(this.explanation).length>0&&this.showCorrectAnswer}},
showCorrectAnswer:{configurable:!0,enumerable:!0,get:function(){return this.isChannelOwner||this.isAttempted}},
isQuizAnsweringDisabled:{configurable:!0,enumerable:!0,get:function(){return this.isChannelOwner||this.isAttempted}},
endpointStyle:{configurable:!0,enumerable:!0,get:function(){return this.isQuizAnsweringDisabled?"yt-simple-endpoint disable-cursor":"yt-simple-endpoint"}},
isAttempted:{configurable:!0,enumerable:!0,get:function(){var a,z;return((a=this.data)==null?void 0:(z=a.choices)==null?void 0:z.some(function(I){return I.isSelected}))||!1}},
explanation:{configurable:!0,enumerable:!0,get:function(){var a;return(a=this.data)==null||!a.choices||this.selectedItemIndex<0||this.selectedItemIndex>=this.data.choices.length?tDv:this.data.choices[this.selectedItemIndex].explanation||tDv}},
isCorrect:{configurable:!0,enumerable:!0,get:function(){var a;return(a=this.data)==null||!a.choices||this.selectedItemIndex<0||this.selectedItemIndex>=this.data.choices.length?!1:this.data.choices[this.selectedItemIndex].isCorrect||!1}}});
Ya.prototype.onYtServiceRequestCompleted=Ya.prototype.onYtServiceRequestCompleted;Ya.prototype.onYtServiceRequestSent=Ya.prototype.onYtServiceRequestSent;Ya.prototype.onYtCommentPollRevert=Ya.prototype.onYtCommentPollRevert;Ya.prototype.dataChanged=Ya.prototype.dataChanged;Ya.prototype.onExplanationChanged=Ya.prototype.onExplanationChanged;_.L([_.Q(_.e_),_.p("design:type",Object)],Ya.prototype,"paperItemBehavior",void 0);
_.L([_.Q(_.k.YtRendererBehavior),_.p("design:type",Object)],Ya.prototype,"ytRendererBehavior",void 0);_.L([_.Q(_.Ms.YtComponentBehavior),_.p("design:type",Object)],Ya.prototype,"ytComponentBehavior",void 0);_.L([_.Q(_.Zs.YtTaskEmitterBehavior),_.p("design:type",Object)],Ya.prototype,"ytTaskEmitterBehavior",void 0);_.L([_.Q(_.rI),_.p("design:type",Object)],Ya.prototype,"ytdOpenPopupBehavior",void 0);_.L([_.x(),_.p("design:type",Object)],Ya.prototype,"data",void 0);
_.L([_.x(),_.p("design:type",Object)],Ya.prototype,"isLoading",void 0);_.L([_.x(),_.p("design:type",Object)],Ya.prototype,"usesPanelLockup",void 0);_.L([_.x({reflectToAttribute:!0,computed:"computeIsChannelOwner(data.choices)"}),_.p("design:type",Boolean)],Ya.prototype,"isChannelOwner",void 0);_.L([_.x({computed:"computeIsTotalVotesDisabled(data)"}),_.p("design:type",Boolean)],Ya.prototype,"isTotalVotesDisabled",void 0);
_.L([_.x({reflectToAttribute:!0,computed:"computeIsImageQuiz(data)"}),_.p("design:type",Boolean)],Ya.prototype,"isImageQuiz",void 0);_.L([_.x(),_.p("design:type",Object)],Ya.prototype,"previousQuizInfo",void 0);_.L([_.x(),_.p("design:type",Object)],Ya.prototype,"selectedItemIndex",void 0);_.L([_.x({reflectToAttribute:!0}),_.S("data","usesPanelLockup"),_.p("design:type",Boolean),_.p("design:paramtypes",[])],Ya.prototype,"shouldUseModernUi",null);
_.L([_.s8(".fade-container"),_.p("design:type",Object)],Ya.prototype,"fadeContainers",void 0);_.L([_.x(),_.p("design:type",Array)],Ya.prototype,"correctnessAnimationProps",void 0);_.L([_.S("explanation","showCorrectAnswer"),_.p("design:type",Boolean),_.p("design:paramtypes",[])],Ya.prototype,"showExplanation",null);_.L([_.S("isChannelOwner","isAttempted"),_.p("design:type",Boolean),_.p("design:paramtypes",[])],Ya.prototype,"showCorrectAnswer",null);
_.L([_.S("isChannelOwner","isAttempted","data"),_.p("design:type",Boolean),_.p("design:paramtypes",[])],Ya.prototype,"isQuizAnsweringDisabled",null);_.L([_.S("isQuizAnsweringDisabled"),_.p("design:type",Object),_.p("design:paramtypes",[])],Ya.prototype,"endpointStyle",null);_.L([_.S("data","selectedItemIndex"),_.p("design:type",Boolean),_.p("design:paramtypes",[])],Ya.prototype,"isAttempted",null);
_.L([_.S("data","selectedItemIndex"),_.p("design:type",Object),_.p("design:paramtypes",[])],Ya.prototype,"explanation",null);_.L([_.S("data","selectedItemIndex"),_.p("design:type",Boolean),_.p("design:paramtypes",[])],Ya.prototype,"isCorrect",null);_.L([_.A3("ytd-expander"),_.p("design:type",Object)],Ya.prototype,"expander",void 0);_.L([_.A3("#quiz-votes"),_.p("design:type",Object)],Ya.prototype,"quizVotes",void 0);
_.L([_.O8("explanation"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],Ya.prototype,"onExplanationChanged",null);_.L([_.O8("data","isChannelOwner"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],Ya.prototype,"dataChanged",null);_.L([_.gz("yt-comment-quiz-revert"),_.p("design:type",Function),_.p("design:paramtypes",[CustomEvent,Object]),_.p("design:returntype")],Ya.prototype,"onYtCommentPollRevert",null);
_.L([_.gz("yt-service-request-sent"),_.p("design:type",Function),_.p("design:paramtypes",[CustomEvent,_.lJ]),_.p("design:returntype")],Ya.prototype,"onYtServiceRequestSent",null);_.L([_.gz("yt-service-request-completed"),_.p("design:type",Function),_.p("design:paramtypes",[CustomEvent]),_.p("design:returntype")],Ya.prototype,"onYtServiceRequestCompleted",null);_.L([_.U({is:"ytd-backstage-quiz-renderer",disableElementRegistration:!0})],Ya);
_.D(Ya,"ytd-backstage-quiz-renderer",function(){if(CCv!==void 0)return CCv;var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-backstage-quiz-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-formatted-string id="vote-info" hidden="[[isTotalVotesDisabled]]" text="[[data.totalVotes]]" class="style-scope ytd-backstage-quiz-renderer">\n</yt-formatted-string>\n<tp-yt-paper-listbox id="quiz-votes" on-iron-select="onQuizChoiceSelected" class="style-scope ytd-backstage-quiz-renderer">\n  <template is="dom-repeat" items="[[data.choices]]" class="style-scope ytd-backstage-quiz-renderer">\n    <a id="sign-in" class$="[[endpointStyle]] style-scope ytd-backstage-quiz-renderer" aria-disabled="[[isQuizAnsweringDisabled]]" href$="[[computeHref_(item.signinEndpoint)]]" data="[[item.signinEndpoint]]" role="button">\n      <tp-yt-paper-item class="vote-choice style-scope ytd-backstage-quiz-renderer" aria-disabled="[[isQuizAnsweringDisabled]]" attempted$="[[isAttempted]]" correct$="[[item.isCorrect]]" is-channel-owner$="[[isChannelOwner]]" name="[[index]]" role="button" selected$="[[item.isSelected]]" show-correct-answer$="[[showCorrectAnswer]]">\n        <div class="choice-info style-scope ytd-backstage-quiz-renderer">\n          <template is="dom-if" if="[[isImageQuiz]]" class="style-scope ytd-backstage-quiz-renderer">\n            <img class="choice-image style-scope ytd-backstage-quiz-renderer" alt="" src$="[[thumbnailSrc(item.image)]]">\n          </template>\n          <div class="text-area style-scope ytd-backstage-quiz-renderer">\n            <yt-formatted-string class="choice-text style-scope ytd-backstage-quiz-renderer" text="[[item.text]]"> </yt-formatted-string>\n            \n            <div class="a11y-voted-text style-scope ytd-backstage-quiz-renderer" aria-label$="[[a11yVotedText(index, isAttempted)]]"> </div>\n            \n            <span style="user-select: none" class="style-scope ytd-backstage-quiz-renderer"> \u00a0 </span>\n            <div class="voted-box style-scope ytd-backstage-quiz-renderer">\n              <yt-formatted-string class="vote-percentage style-scope ytd-backstage-quiz-renderer" hidden="[[!item.votePercentage]]" text="[[item.votePercentage]]">\n              </yt-formatted-string>\n              <div class="fade-container animation-container style-scope ytd-backstage-quiz-renderer">\n                <ytd-lottie-player class-name="[[is]] correctness-lottie" data="[[getAnimationPropsForChoiceIndex(index, correctnessAnimationProps)]]" class="style-scope ytd-backstage-quiz-renderer">\n                </ytd-lottie-player>\n              </div>\n            </div>\n          </div>\n        </div>\n      </tp-yt-paper-item>\n    </a>\n  </template>\n</tp-yt-paper-listbox>\n<div class="explanation-box style-scope ytd-backstage-quiz-renderer" correct$="[[isCorrect]]" hidden="[[!showExplanation]]">\n  <yt-formatted-string class="explanation-header style-scope ytd-backstage-quiz-renderer" correct$="[[isCorrect]]" text="[[data.explanationHeaderText]]">\n  </yt-formatted-string>\n  <ytd-expander id="expander" max-number-of-lines="3" class="style-scope ytd-backstage-quiz-renderer">\n    <yt-formatted-string class="choice-explanation style-scope ytd-backstage-quiz-renderer" slot="content" force-default-style="" text="[[explanation]]">\n    </yt-formatted-string>\n    <span class="exp-button style-scope ytd-backstage-quiz-renderer" slot="more-button">[[getSimpleString(data.explanationExpandText)]]</span>\n    <span class="exp-button style-scope ytd-backstage-quiz-renderer" slot="less-button">[[getSimpleString(data.explanationCollapseText)]]</span>\n  </ytd-expander>\n</div>\n');
a.content.insertBefore(_.w().content.cloneNode(!0),a.content.firstChild);return CCv=a},{mode:1});var uh1;var qU=function(){return _.G.apply(this,arguments)||this};
_.b(qU,_.G);_.L([_.Q(_.k.YtRendererBehavior),_.p("design:type",Object)],qU.prototype,"ytRendererBehavior",void 0);_.L([_.x(),_.p("design:type",Object)],qU.prototype,"data",void 0);_.L([_.U({is:"ytd-post-uploaded-video-renderer",disableElementRegistration:!0})],qU);
_.D(qU,"ytd-post-uploaded-video-renderer",function(){if(uh1!==void 0)return uh1;var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-post-uploaded-video-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="thumbnail-container" class="style-scope ytd-post-uploaded-video-renderer">\n  <yt-img-shadow thumbnail="[[data.thumbnail]]" class="style-scope ytd-post-uploaded-video-renderer">\n  </yt-img-shadow>\n</div>\n');a.content.insertBefore(_.w().content.cloneNode(!0),
a.content.firstChild);return uh1=a},{mode:1});var EH1;var ez=function(){return _.G.apply(this,arguments)||this};
_.b(ez,_.G);ez.prototype.useFilledIcons=function(a){return a==="SPONSORSHIP_STAR"};
_.L([_.Q(_.k.YtRendererBehavior),_.p("design:type",Object)],ez.prototype,"ytRendererBehavior",void 0);_.L([_.x(),_.p("design:type",Object)],ez.prototype,"data",void 0);_.L([_.U({is:"ytd-sponsors-only-badge-renderer",disableElementRegistration:!0})],ez);
var Byo=_.Cw()(ez,"ytd-sponsors-only-badge-renderer",function(){if(EH1===void 0){var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-sponsors-only-badge-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-icon id="icon" hidden="[[!data.icon.iconType]]" icon="[[data.icon.iconType]]" default-to-filled="[[useFilledIcons(data.icon.iconType)]]" class="style-scope ytd-sponsors-only-badge-renderer">\n</yt-icon>\n<yt-formatted-string id="label" text="[[data.label]]" class="style-scope ytd-sponsors-only-badge-renderer"></yt-formatted-string>\n<template is="dom-if" if="[[data.tooltip]]" class="style-scope ytd-sponsors-only-badge-renderer">\n  <tp-yt-paper-tooltip for="label" class="style-scope ytd-sponsors-only-badge-renderer">\n    <yt-formatted-string split-lines="true" text="[[data.tooltip]]" class="style-scope ytd-sponsors-only-badge-renderer"></yt-formatted-string>\n  </tp-yt-paper-tooltip>\n</template>\n');a.content.insertBefore(_.w().content.cloneNode(!0),
a.content.firstChild);EH1=a}a=EH1;return a},{allowedProps:["data"],
mode:1});var gHl;var ak=function(){return _.G.apply(this,arguments)||this};
_.b(ak,_.G);_.L([_.Q(_.Ms.YtComponentBehavior),_.p("design:type",Object)],ak.prototype,"componentBehavior",void 0);_.L([_.x(),_.p("design:type",Object)],ak.prototype,"data",void 0);_.L([_.U({is:"ytd-child-video-renderer",disableElementRegistration:!0})],ak);
_.D(ak,"ytd-child-video-renderer",function(){if(gHl!==void 0)return gHl;var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-child-video-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<a class="yt-simple-endpoint style-scope ytd-child-video-renderer" id="title" href$="[[computeHref_(data.navigationEndpoint)]]" data="[[data.navigationEndpoint]]"><yt-formatted-string id="video-title" ellipsis-truncate="" text="[[data.title]]" class="style-scope ytd-child-video-renderer"></yt-formatted-string><div id="length" class="style-scope ytd-child-video-renderer">[[getSimpleString(data.lengthText)]]</div></a>');a.content.insertBefore(_.w().content.cloneNode(!0),
a.content.firstChild);return gHl=a},{mode:1});var OCv;var fli;var jn=function(){var a=_.G.apply(this,arguments)||this;a.size=0;a.enableWebModernCollectionsV2=_.K("web_modern_collections_v2");a.fallbackImageSize={height:void 0,width:9999};a.webModernCollections=!1;return a};
_.b(jn,_.G);_.Z=jn.prototype;_.Z.computeBlurredImageSize=function(a){return a?{height:a*2,width:a*2}:this.fallbackImageSize};
_.Z.computeImageSize=function(a){return a?{height:a,width:a}:this.fallbackImageSize};
_.Z.computeObjectFit=function(a){return a?"FILL":"CONTAIN"};
_.Z.computePreserve=function(a){return a?!0:!1};
_.Z.setBackground=function(){var a,z;_.K("web_modern_collections_v2")&&((a=this.data)==null?0:(z=a.thumbnail)==null?0:z.sampledThumbnailColor)&&(a=this.data.thumbnail.sampledThumbnailColor,this.hostElement.style.background="rgba("+a.red+","+a.green+","+a.blue+",1)")};
jn.prototype.setBackground=jn.prototype.setBackground;_.L([_.Q(_.k.YtRendererBehavior),_.p("design:type",Object)],jn.prototype,"ytRendererBehavior",void 0);_.L([_.x({reflectToAttribute:!0,value:!1}),_.p("design:type",Boolean)],jn.prototype,"watchFeedThumbnail",void 0);_.L([_.x(),_.p("design:type",Object)],jn.prototype,"data",void 0);_.L([_.x(),_.p("design:type",Object)],jn.prototype,"size",void 0);
_.L([_.x({computed:"computeBlurredImageSize(size)"}),_.p("design:type",Object)],jn.prototype,"blurredImageSize",void 0);_.L([_.x({computed:"computeImageSize(size)"}),_.p("design:type",Object)],jn.prototype,"imageSize",void 0);_.L([_.x({computed:"computePreserve(size)"}),_.p("design:type",String)],jn.prototype,"preserve",void 0);_.L([_.x({computed:"computeObjectFit(size)"}),_.p("design:type",String)],jn.prototype,"objectFit",void 0);
_.L([_.x({reflectToAttribute:!0}),_.p("design:type",Boolean)],jn.prototype,"enableWebModernCollectionsV2",void 0);_.L([_.x({reflectToAttribute:!0}),_.p("design:type",Object)],jn.prototype,"webModernCollections",void 0);_.L([_.O8("data.thumbnail.sampledThumbnailColor"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],jn.prototype,"setBackground",null);_.L([_.U({is:"ytd-playlist-custom-thumbnail-renderer",disableElementRegistration:!0})],jn);
_.D(jn,"ytd-playlist-custom-thumbnail-renderer",function(){if(fli!==void 0)return fli;var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-playlist-custom-thumbnail-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<template is="dom-if" if="[[webModernCollections]]" class="style-scope ytd-playlist-custom-thumbnail-renderer">\n    <div class="blurred-image-wrapper style-scope ytd-playlist-custom-thumbnail-renderer" style$="[[backgroundStyle]]">\n        <yt-image class="blurred-image style-scope ytd-playlist-custom-thumbnail-renderer" alt="hidden" aria-hidden="true" data="[[data.thumbnail]]" ftl-eligible="" height="[[blurredImageSize.height]]" object-position="TOP_START" preserve-height="[[preserve]]" preserve-width="[[preserve]]" width="[[blurredImageSize.width]]">\n        </yt-image>\n    </div>\n</template>\n<yt-image class="custom-thumbnail style-scope ytd-playlist-custom-thumbnail-renderer" alt="" data="[[data.thumbnail]]" ftl-eligible="" height="[[imageSize.height]]" object-fit="[[objectFit]]" object-position="TOP_START" preserve-height="[[preserve]]" preserve-width="[[preserve]]" width="[[imageSize.width]]">\n</yt-image>\n');
a.content.insertBefore(_.w().content.cloneNode(!0),a.content.firstChild);return fli=a},{mode:1});var AaG;var zD=function(){return _.G.apply(this,arguments)||this};
_.b(zD,_.G);_.L([_.Q(_.k.YtRendererBehavior),_.p("design:type",Object)],zD.prototype,"ytRendererBehavior",void 0);_.L([_.x(),_.p("design:type",Object)],zD.prototype,"data",void 0);_.L([_.x(),_.p("design:type",Number)],zD.prototype,"width",void 0);_.L([_.U({is:"ytd-playlist-video-thumbnail-renderer",disableElementRegistration:!0})],zD);
_.D(zD,"ytd-playlist-video-thumbnail-renderer",function(){if(AaG!==void 0)return AaG;var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-playlist-video-thumbnail-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-image alt="" data="[[data.thumbnail]]" ftl-eligible="" width="[[width]]" class="style-scope ytd-playlist-video-thumbnail-renderer">\n</yt-image>\n');a.content.insertBefore(_.w().content.cloneNode(!0),
a.content.firstChild);return AaG=a},{mode:1});var sjX;var Ik=function(){return _.G.apply(this,arguments)||this};
_.b(Ik,_.G);_.L([_.Q(_.k.YtRendererBehavior),_.p("design:type",Object)],Ik.prototype,"ytRendererBehavior",void 0);_.L([_.x(),_.p("design:type",Object)],Ik.prototype,"data",void 0);_.L([_.x(),_.p("design:type",Number)],Ik.prototype,"width",void 0);_.L([_.U({is:"ytd-show-custom-thumbnail-renderer",disableElementRegistration:!0})],Ik);
_.D(Ik,"ytd-show-custom-thumbnail-renderer",function(){if(sjX!==void 0)return sjX;var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-show-custom-thumbnail-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-image alt="" data="[[data.thumbnail]]" width="[[width]]" class="style-scope ytd-show-custom-thumbnail-renderer">\n</yt-image>\n');a.content.insertBefore(_.w().content.cloneNode(!0),
a.content.firstChild);return sjX=a},{mode:1});var nHw;var Jr=function(){return _.G.apply(this,arguments)||this};
_.b(Jr,_.G);Jr.prototype.useFilledIcons=function(a){return a==="MUSIC"||a==="COURSE"};
Jr.prototype.overlayColorChanged=function(){if(typeof this.overlayColor==="number")this.hostElement.style.backgroundColor=LH(this.overlayColor,"0.8");else if(this.overlayColor){var a=this.overlayColor;this.hostElement.style.backgroundColor="rgba("+a.red+","+a.green+","+a.blue+",0.8)"}};
_.eH.Object.defineProperties(Jr.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)}}});
Jr.prototype.overlayColorChanged=Jr.prototype.overlayColorChanged;_.L([_.Q(_.k.YtRendererBehavior),_.p("design:type",Object)],Jr.prototype,"ytRendererBehavior",void 0);_.L([_.x(),_.p("design:type",Object)],Jr.prototype,"data",void 0);_.L([_.x(),_.p("design:type",Object)],Jr.prototype,"overlayColor",void 0);_.L([_.x({reflectToAttribute:!0}),_.S("data.icon","data.text"),_.p("design:type",Object),_.p("design:paramtypes",[])],Jr.prototype,"overlayStyle",null);
_.L([_.x({reflectToAttribute:!0}),_.S("data.icon","data.text"),_.p("design:type",Object),_.p("design:paramtypes",[])],Jr.prototype,"overlayTextStyle",null);_.L([_.O8("overlayColor"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],Jr.prototype,"overlayColorChanged",null);_.L([_.U({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-bottom-panel-renderer"})],Jr);
_.D(Jr,"ytd-thumbnail-overlay-bottom-panel-renderer",function(){if(nHw!==void 0)return nHw;var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-thumbnail-overlay-bottom-panel-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-icon default-to-filled="[[useFilledIcons(data.icon.iconType)]]" hidden="[[!data.icon]]" icon="[[data.icon.iconType]]" class="style-scope ytd-thumbnail-overlay-bottom-panel-renderer"></yt-icon>\n<yt-formatted-string text="[[data.text]]" class="style-scope ytd-thumbnail-overlay-bottom-panel-renderer"></yt-formatted-string>\n');
a.content.insertBefore(_.w().content.cloneNode(!0),a.content.firstChild);return nHw=a},{mode:1});var KwO;var rD=function(){var a=_.G.apply(this,arguments)||this;a.active=!1;return a};
_.b(rD,_.G);rD.prototype.computeIsSpinnerHidden=function(a){return(a==null?void 0:a.state)!=="THUMBNAIL_OVERLAY_DOWNLOADING_RENDERER_STATE_DOWNLOADING"};
rD.prototype.computeOverlayIcon=function(a){return(a==null?void 0:a.state)==="THUMBNAIL_OVERLAY_DOWNLOADING_RENDERER_STATE_FAILED"?"ERROR_OUTLINE":(a==null?void 0:a.state)==="THUMBNAIL_OVERLAY_DOWNLOADING_RENDERER_STATE_PAUSED_BY_USER"?"OFFLINE_PAUSE":"OFFLINE_DOWNLOADING_SPINNER"};
_.L([_.Q(_.k.YtRendererBehavior),_.p("design:type",Object)],rD.prototype,"ytRendererBehavior",void 0);_.L([_.x(),_.p("design:type",Object)],rD.prototype,"data",void 0);_.L([_.x(),_.p("design:type",Object)],rD.prototype,"active",void 0);_.L([_.U({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-downloading-renderer"})],rD);
_.D(rD,"ytd-thumbnail-overlay-downloading-renderer",function(){if(KwO!==void 0)return KwO;var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-thumbnail-overlay-downloading-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-icon icon="[[computeOverlayIcon(data)]]" class="style-scope ytd-thumbnail-overlay-downloading-renderer"></yt-icon>\n<tp-yt-paper-spinner-lite active="[[active]]" hidden="[[computeIsSpinnerHidden(data)]]" class="style-scope ytd-thumbnail-overlay-downloading-renderer"></tp-yt-paper-spinner-lite>\n');a.content.insertBefore(_.w().content.cloneNode(!0),
a.content.firstChild);return KwO=a},{mode:1});var FwI;var PI=function(){return _.G.apply(this,arguments)||this};
_.b(PI,_.G);_.eH.Object.defineProperties(PI.prototype,{text:{configurable:!0,enumerable:!0,get:function(){if(this.data)return this.ytRendererBehavior.getSimpleString(this.data.text)}}});
_.L([_.Q(_.k.YtRendererBehavior),_.p("design:type",Object)],PI.prototype,"ytRendererBehavior",void 0);_.L([_.x(),_.p("design:type",Object)],PI.prototype,"data",void 0);_.L([_.S("data.text"),_.p("design:type",Object),_.p("design:paramtypes",[])],PI.prototype,"text",null);_.L([_.U({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-hover-text-renderer"})],PI);
_.D(PI,"ytd-thumbnail-overlay-hover-text-renderer",function(){if(FwI!==void 0)return FwI;var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-thumbnail-overlay-hover-text-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-icon icon="[[data.icon.iconType]]" class="style-scope ytd-thumbnail-overlay-hover-text-renderer"></yt-icon>\n<span class="style-scope ytd-thumbnail-overlay-hover-text-renderer">[[text]]</span>\n');
a.content.insertBefore(_.w().content.cloneNode(!0),a.content.firstChild);return FwI=a},{mode:1});var HCG,bCE=function(){if(HCG!==void 0)return HCG;var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-thumbnail-overlay-equalizer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<svg xmlns="http://www.w3.org/2000/svg" id="equalizer" viewBox="0 0 55 95" class="style-scope ytd-thumbnail-overlay-equalizer">\n  <g class="style-scope ytd-thumbnail-overlay-equalizer">\n    <rect class="bar style-scope ytd-thumbnail-overlay-equalizer" x="0"></rect>\n    <rect class="bar style-scope ytd-thumbnail-overlay-equalizer" x="20"></rect>\n    <rect class="bar style-scope ytd-thumbnail-overlay-equalizer" x="40"></rect>\n  </g>\n</svg>\n');
a.content.insertBefore(_.w().content.cloneNode(!0),a.content.firstChild);return HCG=a};var ZU=function(){return _.G.apply(this,arguments)||this};
_.b(ZU,_.G);_.eH.Object.defineProperties(ZU,{template:{configurable:!0,enumerable:!0,get:function(){return bCE()}}});
_.L([_.x({reflectToAttribute:!0}),_.p("design:type",Boolean)],ZU.prototype,"animateEqualizer",void 0);_.L([_.U({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-equalizer"})],ZU);_.Cw()(ZU,"ytd-thumbnail-overlay-equalizer",function(){return bCE()},{allowedProps:["animateEqualizer"],
mode:1});var h_w;var CO=function(){var a=_.G.apply(this,arguments)||this;a.nowPlayingBadge=_.K("web_now_playing_badge");a.actionMap={"yt-miniplayer-play-state-changed":"onMiniplayerPlayStateChanged"};return a};
_.b(CO,_.G);CO.prototype.activeChanged=function(){var a=this;_.K("web_enable_playlist_video_lockup_equalizer")&&this.isActive&&_.Yv(this,function(){_.PA(a.hostElement,"yt-playlist-lockup-now-playing-active",a)})};
CO.prototype.onMiniplayerPlayStateChanged=function(a){var z,I=(z=_.H(_.hq().currentEndpoint,_.MZ))==null?void 0:z.videoId;this.isVideoPlaying=a&&(_.K("web_limit_now_playing_animation_killswitch")||this.videoId===I)};
CO.prototype.activeChanged=CO.prototype.activeChanged;_.L([_.Q(_.k.YtRendererBehavior),_.p("design:type",Object)],CO.prototype,"ytRendererBehavior",void 0);_.L([_.Q(_.Hc.YtActionHandlerBehavior),_.p("design:type",Object)],CO.prototype,"ytActionHandlerBehavior",void 0);_.L([_.x(),_.p("design:type",Object)],CO.prototype,"data",void 0);_.L([_.x(),_.p("design:type",Boolean)],CO.prototype,"isVideoPlaying",void 0);_.L([_.x(),_.p("design:type",String)],CO.prototype,"videoId",void 0);
_.L([_.x({reflectToAttribute:!0}),_.p("design:type",Boolean)],CO.prototype,"equalizerOnly",void 0);_.L([_.x(),_.p("design:type",Boolean)],CO.prototype,"isActive",void 0);_.L([_.x({reflectToAttribute:!0}),_.p("design:type",Object)],CO.prototype,"nowPlayingBadge",void 0);_.L([_.O8("isActive"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],CO.prototype,"activeChanged",null);_.L([_.U({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-now-playing-renderer"})],CO);
_.D(CO,"ytd-thumbnail-overlay-now-playing-renderer",function(){if(h_w!==void 0)return h_w;var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-thumbnail-overlay-now-playing-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<span id="overlay-text" hidden="[[equalizerOnly]]" class="style-scope ytd-thumbnail-overlay-now-playing-renderer">[[getSimpleString(data.text)]]</span>\n<ytd-thumbnail-overlay-equalizer animate-equalizer="[[isVideoPlaying]]" class="style-scope ytd-thumbnail-overlay-now-playing-renderer">\n</ytd-thumbnail-overlay-equalizer>\n');
a.content.insertBefore(_.w().content.cloneNode(!0),a.content.firstChild);return h_w=a},{mode:1});var VDv;var Nn=function(){return _.G.apply(this,arguments)||this};
_.b(Nn,_.G);_.L([_.Q(_.k.YtRendererBehavior),_.p("design:type",Object)],Nn.prototype,"ytRendererBehavior",void 0);_.L([_.x(),_.p("design:type",Object)],Nn.prototype,"data",void 0);_.L([_.U({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-playback-status-renderer"})],Nn);
_.D(Nn,"ytd-thumbnail-overlay-playback-status-renderer",function(){if(VDv!==void 0)return VDv;var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-thumbnail-overlay-playback-status-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<template is="dom-repeat" items="[[data.texts]]" class="style-scope ytd-thumbnail-overlay-playback-status-renderer"><yt-formatted-string text="[[item]]" class="style-scope ytd-thumbnail-overlay-playback-status-renderer"></yt-formatted-string></template>');a.content.insertBefore(_.w().content.cloneNode(!0),
a.content.firstChild);return VDv=a},{mode:_.Np("kevlar_poly_si_batch_j025")?1:2});var Qje;var tr=function(){return _.G.apply(this,arguments)||this};
_.b(tr,_.G);tr.prototype.onDurationChanged=function(){var a,z;_.PK(this.hostElement).querySelector("#progress").style.width=((z=(a=this.data)==null?void 0:a.percentDurationWatched)!=null?z:0)+"%"};
tr.prototype.onDurationChanged=tr.prototype.onDurationChanged;_.L([_.Q(_.Ms.YtComponentBehavior),_.p("design:type",Object)],tr.prototype,"componentBehavior",void 0);_.L([_.x(),_.p("design:type",Object)],tr.prototype,"data",void 0);_.L([_.x({reflectToAttribute:!0}),_.p("design:type",Boolean)],tr.prototype,"isLive",void 0);_.L([_.O8("data.percentDurationWatched"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],tr.prototype,"onDurationChanged",null);
_.L([_.U({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-resume-playback-renderer"})],tr);
_.D(tr,"ytd-thumbnail-overlay-resume-playback-renderer",function(){if(Qje!==void 0)return Qje;var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-thumbnail-overlay-resume-playback-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="progress" class="style-scope ytd-thumbnail-overlay-resume-playback-renderer"></div>');a.content.insertBefore(_.w().content.cloneNode(!0),
a.content.firstChild);return Qje=a},{mode:1});var Slv;var uO=function(){var a=_.G.apply(this,arguments)||this;a.bottomPanel=!1;a.richGridOverlay=!1;a.watchFeedOverlay=!1;a.isCompact=!1;return a};
_.b(uO,_.G);uO.prototype.widthChanged=function(){this.watchFeedOverlay?this.hostElement.style.width="":this.richGridOverlay||(this.hostElement.style.width=this.width+"px")};
_.eH.Object.defineProperties(uO.prototype,{isIconFilled:{configurable:!0,enumerable:!0,get:function(){var a,z;return((a=this.data)==null?void 0:(z=a.icon)==null?void 0:z.iconType)==="PLAY_ALL"&&_.K("kevlar_system_icons")}}});
uO.prototype.widthChanged=uO.prototype.widthChanged;_.L([_.Q(_.k.YtRendererBehavior),_.p("design:type",Object)],uO.prototype,"ytRendererBehavior",void 0);_.L([_.x(),_.p("design:type",Object)],uO.prototype,"data",void 0);_.L([_.x(),_.p("design:type",Number)],uO.prototype,"width",void 0);_.L([_.x({reflectToAttribute:!0}),_.p("design:type",Object)],uO.prototype,"bottomPanel",void 0);_.L([_.x({reflectToAttribute:!0}),_.p("design:type",Object)],uO.prototype,"richGridOverlay",void 0);
_.L([_.x({reflectToAttribute:!0}),_.p("design:type",Object)],uO.prototype,"watchFeedOverlay",void 0);_.L([_.x({reflectToAttribute:!0}),_.p("design:type",Object)],uO.prototype,"isCompact",void 0);_.L([_.S("data"),_.p("design:type",Boolean),_.p("design:paramtypes",[])],uO.prototype,"isIconFilled",null);_.L([_.O8("width","watchFeedOverlay"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],uO.prototype,"widthChanged",null);
_.L([_.U({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-side-panel-renderer"})],uO);
_.D(uO,"ytd-thumbnail-overlay-side-panel-renderer",function(){if(Slv!==void 0)return Slv;var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-thumbnail-overlay-side-panel-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-formatted-string text="[[data.text]]" class="style-scope ytd-thumbnail-overlay-side-panel-renderer"></yt-formatted-string>\n<yt-icon default-to-filled="[[isIconFilled]]" icon="[[data.icon.iconType]]" class="style-scope ytd-thumbnail-overlay-side-panel-renderer"></yt-icon>\n');a.content.insertBefore(_.w().content.cloneNode(!0),
a.content.firstChild);return Slv=a},{mode:1});var iCf;var xxi=["CLIP","SHORTS"],Ej=function(){var a=_.G.apply(this,arguments)||this;a.animated=_.K("animated_live_badge_icon");a.hasIcon=!1;a.updateTimerIntervalId=0;a.timeSinceLive=0;return a};
_.b(Ej,_.G);_.Z=Ej.prototype;_.Z.detached=function(){clearInterval(this.updateTimerIntervalId)};
_.Z.dataChanged=function(){this.data&&(this.hasIcon=!!this.data.icon)};
_.Z.computeHideTimeStatus=function(){return this.hideBadgeShape?!this.hasIconOrText():!0};
_.Z.hasIconOrText=function(){var a,z;return!!(((a=this.data)==null?0:a.icon)||((z=this.data)==null?0:z.text))};
_.Z.initializeLiveBadgeTimer=function(){var a=this,z,I=(z=this.liveBadgeData)==null?void 0:z.startTimestampSec;if(I&&this.canShowLiveBadgeTimer()){var J;z=Number((J=this.liveBadgeData)==null?void 0:J.tickIntervalUsec)/1E3||1E3;this.timeSinceLive=Date.now()/1E3-Number(I);this.updateTimerIntervalId=_.Ne(function(){a.canShowLiveBadgeTimer()?a.timeSinceLive++:(a.timeSinceLive=0,window.clearInterval(a.updateTimerIntervalId))},z)}else this.timeSinceLive=0};
_.Z.canShowLiveBadgeTimer=function(){var a=Date.now(),z,I;return a<(Number((z=this.liveBadgeData)==null?void 0:z.endTimestampSec)-1)*1E3&&a>Number((I=this.liveBadgeData)==null?void 0:I.startTimestampSec)*1E3};
_.eH.Object.defineProperties(Ej.prototype,{badgeShapeData:{configurable:!0,enumerable:!0,get:function(){if(this.data){var a=this.data;var z=this.timeSinceLive;var I,J,r,P;a:{var N=a.style;if(N===void 0)N=17;else switch(N){case "LIVE":N=18;break a;default:N=17}}z={type:N,text:z?EoO({seconds:z}):_.cd(a.text),accessibilityText:(I=a.text)==null?void 0:(J=I.accessibility)==null?void 0:(r=J.accessibilityData)==null?void 0:r.label,icon:(P=a.icon)==null?void 0:P.iconType}}else z={};return z}},
hideBadgeShape:{configurable:!0,enumerable:!0,get:function(){return!this.data||!this.hasIconOrText()||this.overlayType==="OPEN_IN_NEW_TAB"}},
overlayStyle:{configurable:!0,enumerable:!0,get:function(){if(this.data&&this.data.style)return this.data.style}},
liveBadgeData:{configurable:!0,enumerable:!0,get:function(){var a;return(a=this.data)==null?void 0:a.liveBadgeData}},
overlayType:{configurable:!0,enumerable:!0,get:function(){if(this.data&&this.data.type)return this.data.type.replace("THUMBNAIL_OVERLAY_TIME_STATUS_TYPE_","")}},
useFilledIcon:{configurable:!0,enumerable:!0,get:function(){return xxi.indexOf(this.overlayType||this.overlayStyle||"")!==-1}}});
Ej.prototype.initializeLiveBadgeTimer=Ej.prototype.initializeLiveBadgeTimer;Ej.prototype.dataChanged=Ej.prototype.dataChanged;_.L([_.Q(_.Ms.YtComponentBehavior),_.p("design:type",Object)],Ej.prototype,"componentBehavior",void 0);_.L([_.x(),_.p("design:type",Object)],Ej.prototype,"data",void 0);_.L([_.x({computed:"computeIcon_(data.icon)"}),_.p("design:type",String)],Ej.prototype,"icon",void 0);_.L([_.x({reflectToAttribute:!0}),_.p("design:type",Boolean)],Ej.prototype,"animated",void 0);
_.L([_.x({reflectToAttribute:!0,computed:"computeHideTimeStatus(data,hideBadgeShape)"}),_.p("design:type",Boolean)],Ej.prototype,"hideTimeStatus",void 0);_.L([_.x({reflectToAttribute:!0}),_.p("design:type",Object)],Ej.prototype,"hasIcon",void 0);_.L([_.x(),_.p("design:type",Object)],Ej.prototype,"timeSinceLive",void 0);_.L([_.S("data","timeSinceLive"),_.p("design:type",Object),_.p("design:paramtypes",[])],Ej.prototype,"badgeShapeData",null);
_.L([_.S("data","overlayType"),_.p("design:type",Boolean),_.p("design:paramtypes",[])],Ej.prototype,"hideBadgeShape",null);_.L([_.Fe("data"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],Ej.prototype,"dataChanged",null);_.L([_.x({reflectToAttribute:!0}),_.S("data.style"),_.p("design:type",Object),_.p("design:paramtypes",[])],Ej.prototype,"overlayStyle",null);
_.L([_.S("data.liveBadgeData"),_.p("design:type",Object),_.p("design:paramtypes",[])],Ej.prototype,"liveBadgeData",null);_.L([_.x({reflectToAttribute:!0}),_.S("data.type"),_.p("design:type",Object),_.p("design:paramtypes",[])],Ej.prototype,"overlayType",null);_.L([_.S("overlayType","overlayStyle"),_.p("design:type",Boolean),_.p("design:paramtypes",[])],Ej.prototype,"useFilledIcon",null);
_.L([_.Fe("liveBadgeData"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],Ej.prototype,"initializeLiveBadgeTimer",null);_.L([_.U({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-time-status-renderer"})],Ej);
_.D(Ej,"ytd-thumbnail-overlay-time-status-renderer",function(){if(iCf!==void 0)return iCf;var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-thumbnail-overlay-time-status-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<ytd-badge-supported-renderer badges="[[data.badges]]" is-thumbnail-badge="" class="style-scope ytd-thumbnail-overlay-time-status-renderer"></ytd-badge-supported-renderer><div class="thumbnail-overlay-badge-shape style-scope ytd-thumbnail-overlay-time-status-renderer" hidden="[[hideBadgeShape]]"><badge-shape data="[[badgeShapeData]]" class="style-scope ytd-thumbnail-overlay-time-status-renderer"></badge-shape></div><div id="time-status" hidden="[[hideTimeStatus]]" class="style-scope ytd-thumbnail-overlay-time-status-renderer"><yt-icon active="[[useFilledIcon]]" disable-upgrade$="[[!icon]]" hidden="[[!icon]]" icon="[[icon]]" size="16" class="style-scope ytd-thumbnail-overlay-time-status-renderer"></yt-icon><span id="text" aria-label$="[[data.text.accessibility.accessibilityData.label]]" class="style-scope ytd-thumbnail-overlay-time-status-renderer">\n    [[getSimpleString(data.text)]]\n  </span></div>');a.content.insertBefore(_.w().content.cloneNode(!0),
a.content.firstChild);return iCf=a},{mode:_.Np("kevlar_poly_si_batch_j035")?1:2});var vHJ;var BI=function(){return _.G.apply(this,arguments)||this};
_.b(BI,_.G);BI.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"}}}}};
BI.prototype.computeThumbnailOverlayResumePlaybackRenderer=function(a){if(this.hasPlaybackProgressBar)return{percentDurationWatched:a.percentDurationWatched}};
BI.prototype.computeHasPlaybackProgressBar=function(a){return!!a.percentDurationWatched&&a.percentDurationWatched>0};
_.L([_.Q(_.k.YtRendererBehavior),_.p("design:type",Object)],BI.prototype,"ytRendererBehavior",void 0);_.L([_.Q(_.u4.YtRendererstamperBehavior),_.p("design:type",Object)],BI.prototype,"ytRendererstamperBehavior",void 0);_.L([_.x(),_.p("design:type",Object)],BI.prototype,"data",void 0);_.L([_.x({reflectToAttribute:!0,computed:"computeHasPlaybackProgressBar(data)"}),_.p("design:type",Boolean)],BI.prototype,"hasPlaybackProgressBar",void 0);
_.L([_.U({disableElementRegistration:!0,is:"ytd-tvfilm-show-watch-forward-overlay-renderer"})],BI);
_.D(BI,"ytd-tvfilm-show-watch-forward-overlay-renderer",function(){if(vHJ!==void 0)return vHJ;var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-tvfilm-show-watch-forward-overlay-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="content-container" class="style-scope ytd-tvfilm-show-watch-forward-overlay-renderer">\n  <yt-formatted-string id="header" text="[[data.header]]" class="style-scope ytd-tvfilm-show-watch-forward-overlay-renderer"></yt-formatted-string>\n  <yt-formatted-string id="title" text="[[data.title]]" class="style-scope ytd-tvfilm-show-watch-forward-overlay-renderer"></yt-formatted-string>\n  <yt-formatted-string id="subtitle" text="[[data.subtitle]]" class="style-scope ytd-tvfilm-show-watch-forward-overlay-renderer"></yt-formatted-string>\n  <div id="button-container" class="style-scope ytd-tvfilm-show-watch-forward-overlay-renderer">\n    <div id="primary-action-button-container" class="style-scope ytd-tvfilm-show-watch-forward-overlay-renderer">\n      <div id="primary-action-button" role="button" class="style-scope ytd-tvfilm-show-watch-forward-overlay-renderer"></div>\n      <ytd-thumbnail-overlay-resume-playback-renderer id="playback-progress" data="[[computeThumbnailOverlayResumePlaybackRenderer(data)]]" hidden$="[[!hasPlaybackProgressBar]]" class="style-scope ytd-tvfilm-show-watch-forward-overlay-renderer">\n      </ytd-thumbnail-overlay-resume-playback-renderer>\n    </div>\n    <div id="secondary-action-button" role="button" class="style-scope ytd-tvfilm-show-watch-forward-overlay-renderer"></div>\n  </div>\n</div>\n');a.content.insertBefore(_.w().content.cloneNode(!0),
a.content.firstChild);return vHJ=a},{mode:1});var GPv;var $x1=_.ec(function(a){var z=a.data;var I=a.children;var J=function(){return!!z().doubleStack},r=function(){return!!z().includeStackHeight};
return _.B("yt-collections-stack",{class:"collections-stack-wiz",hidden:function(){return!z().experimentEnabled}},_.B(_.g,{cond:z,
then:function(){var P={};return _.B(_.eJ,null,_.B(_.g,{cond:r,then:function(){var N={};return _.B("div",{class:_.B8("collections-stack-wiz__spacer",(N["collections-stack-wiz__spacer--double-stack"]=J,N))})}}),_.B("div",{class:_.B8((P["collections-stack-wiz__relative-stack"]=r,P))},_.B(_.g,{cond:J,
then:function(){var N={};return _.B("div",{class:_.B8("collections-stack-wiz__collection-stack2",function(){return z().customClassName2ndStack},(N["collections-stack-wiz__collection-stack2--responsive-mode"]=function(){return z().enableResponsiveMode},N)),
style:_.sW({"background-color":function(){return $x0(z())}})})}}),_.B("div",{class:_.B8("collections-stack-wiz__collection-stack1",function(){return z().customClassName1stStack},function(){return GPI(z().thumbnailSize?z().thumbnailSize:"medium")}),
style:_.sW({"background-color":function(){return $x0(z())}})}),I))}}))},"U");_.Jf($x1,"yt-collections-stack",{props:{data:_.zl}});var gD=function(){var a=_.G.apply(this,arguments)||this;a.actionMap={"yt-miniplayer-endpoint-changed":"checkMiniplayer_"};a.webModernCollections=!1;a.isSearch=!1;a.isDoubleStack=!1;a.thumbnailSize="medium";a.enableWebModernCollectionsV2=_.K("web_modern_collections_v2");return a};
_.b(gD,_.G);_.Z=gD.prototype;
_.Z.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]]"}}}}}};
_.Z.getThumbnailDetails=function(a){if(a!=null&&a.thumbnailRenderer){var z=a.thumbnailRenderer,I;if((I=z.playlistVideoThumbnailRenderer)==null?0:I.thumbnail)return z.playlistVideoThumbnailRenderer.thumbnail;var J;if((J=z.playlistCustomThumbnailRenderer)==null?0:J.thumbnail)return z.playlistCustomThumbnailRenderer.thumbnail;a=a.thumbnailRenderer;var r;if((r=a.showCustomThumbnailRenderer)==null?0:r.thumbnail)return a.showCustomThumbnailRenderer.thumbnail}};
_.Z.computeOverlayColor=function(a){var z,I;if((z=this.getThumbnailDetails(a))==null?0:(I=z.darkColorPalette)==null?0:I.section2Color)return this.getThumbnailDetails(a).darkColorPalette.section2Color;var J;return(J=this.getThumbnailDetails(a))==null?void 0:J.sampledThumbnailColor};
_.Z.computeWebModernCollections=function(a){if(a==null||!a.thumbnailOverlays)return!1;a=_.C(a.thumbnailOverlays);for(var z=a.next();!z.done;z=a.next()){var I=void 0;if((I=z.value)==null?0:I.thumbnailOverlayBottomPanelRenderer)return!0}return!1};
_.Z.computeNavigationEndpoint=function(a){return wYp(a==null?void 0:a.navigationEndpoint)};
_.eH.Object.defineProperties(gD.prototype,{collectionStack:{configurable:!0,enumerable:!0,get:function(){var a=this.getThumbnailDetails(this.data);return{thumbnailSize:this.thumbnailSize,doubleStack:this.isDoubleStack,sampledThumbnailColor:a==null?void 0:a.sampledThumbnailColor,vibrantColorPalette:a==null?void 0:a.vibrantColorPalette,darkColorPalette:a==null?void 0:a.darkColorPalette,experimentEnabled:this.enableWebModernCollectionsV2}}}});
_.L([_.Q(_.Hc.YtActionHandlerBehavior),_.p("design:type",Object)],gD.prototype,"ytActionHandlerBehavior",void 0);_.L([_.Q(_.u4.YtRendererstamperBehavior),_.p("design:type",Object)],gD.prototype,"ytRendererstamperBehavior",void 0);_.L([_.Q(lBf),_.p("design:type",Object)],gD.prototype,"ytdThumbnailBehavior",void 0);_.L([_.Q(_.Ms.YtComponentBehavior),_.p("design:type",Object)],gD.prototype,"componentBehavior",void 0);
_.L([_.x({value:!1}),_.p("design:type",Boolean)],gD.prototype,"watchFeedThumbnail",void 0);_.L([_.x(),_.p("design:type",Number)],gD.prototype,"customThumbnailSize",void 0);_.L([_.x({value:!0}),_.p("design:type",Boolean)],gD.prototype,"hideAria",void 0);_.L([_.x(),_.p("design:type",Object)],gD.prototype,"data",void 0);_.L([_.x({computed:"computeOverlayColor(data)"}),_.p("design:type",Object)],gD.prototype,"overlayColor",void 0);
_.L([_.x({computed:"computeWebModernCollections(data)"}),_.p("design:type",Object)],gD.prototype,"webModernCollections",void 0);_.L([_.x({computed:"computeNavigationEndpoint(data)"}),_.p("design:type",Object)],gD.prototype,"computedNavigationEndpoint",void 0);_.L([_.x({reflectToAttribute:!0}),_.p("design:type",Object)],gD.prototype,"isSearch",void 0);_.L([_.x({reflectToAttribute:!0}),_.p("design:type",Object)],gD.prototype,"isDoubleStack",void 0);
_.L([_.x({reflectToAttribute:!0}),_.p("design:type",String)],gD.prototype,"thumbnailSize",void 0);_.L([_.x({reflectToAttribute:!0}),_.p("design:type",Boolean)],gD.prototype,"enableWebModernCollectionsV2",void 0);_.L([_.S("data","enableWebModernCollectionsV2","isDoubleStack","thumbnailSize"),_.p("design:type",Object),_.p("design:paramtypes",[])],gD.prototype,"collectionStack",null);_.L([_.U({disableElementRegistration:!0,is:"ytd-playlist-thumbnail"})],gD);
_.D(gD,"ytd-playlist-thumbnail",function(){if(GPv!==void 0)return GPv;var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-playlist-thumbnail--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-collections-stack data="[[collectionStack]]" class="style-scope ytd-playlist-thumbnail"></yt-collections-stack>\n<a id="thumbnail" class="yt-simple-endpoint style-scope ytd-playlist-thumbnail" aria-hidden="[[hideAria]]" href$="[[computeHref_(computedNavigationEndpoint)]]" data="[[computedNavigationEndpoint]]" tabindex="-1">\n  <div id="playlist-thumbnails" class="style-scope ytd-playlist-thumbnail"></div>\n  <yt-formatted-string id="length" hidden="[[!data.lengthText]]" text="[[data.lengthText]]" class="style-scope ytd-playlist-thumbnail">\n  </yt-formatted-string>\n  <div id="overlays" class="style-scope ytd-playlist-thumbnail"></div>\n  <div id="hover-overlays" class="style-scope ytd-playlist-thumbnail"></div>\n</a>\n');
a.content.insertBefore(_.w().content.cloneNode(!0),a.content.firstChild);return GPv=a},{mode:_.Np("kevlar_poly_si_batch_j025")?1:2});var X$G;var Oj=function(){var a=_.G.apply(this,arguments)||this;a.noEndpoints=!1;a.amsterdamPostMvp=_.K("web_amsterdam_post_mvp_playlists");a.badges=[];a.transferState="TRANSFER_STATE_UNKNOWN";return a};
_.b(Oj,_.G);_.Z=Oj.prototype;_.Z.getMetadata=function(a){if(!a)return[];var z=[],I=a.shortViewCountText||a.viewCountText;I&&z.push(_.cd(I));a.publishedTimeText&&z.push(_.cd(a.publishedTimeText));a.upcomingEventData&&a.upcomingEventData.upcomingEventText&&z.push(_.vn(_.cd(a.upcomingEventData.upcomingEventText),Number(a.upcomingEventData.startTime)));return z};
_.Z.observeDataForBylineSeparator=function(){this.data&&_.CM(this.hostElement,"byline-separated",this.getMetadata(this.data).length>0&&!this.data.ownerBadges||this.shouldShowVideoInfo)};
_.Z.metadataColorChanged=function(){this.metadataColor||(this.metadataLine.style.color="");this.metadataLine.style.color=_.Da(this.metadataColor)};
_.Z.getSimpleString=function(a){return _.cd(a)};
_.Z.isBylineHidden=function(a){return this.noByline||!((a==null?0:a.longBylineText)||(a==null?0:a.shortBylineText))};
_.Z.isMetadataHidden=function(a){var z;return((z=this.getMetadata(a))==null?void 0:z.length)===0};
_.Z.isBylineMetadataSeparatorHidden=function(a){return this.isMetadataHidden(a)||!this.shouldShowVideoInfo};
_.Z.isLongByline=function(a,z){return z&&!(a==null||!a.longBylineText)};
_.eH.Object.defineProperties(Oj.prototype,{shouldShowVideoInfo:{configurable:!0,enumerable:!0,get:function(){var a;return this.amsterdamPostMvp&&!((a=this.data)==null||!a.videoInfo)}},
inlineBadgeClass:{configurable:!0,enumerable:!0,get:function(){return this.badges&&this.badges.length>0?"metadata-line-with-badge":""}},
longBylineClass:{configurable:!0,enumerable:!0,get:function(){return this.longByline?"long-byline":""}},
bylineText:{configurable:!0,enumerable:!0,get:function(){if(this.data)return this.longByline?this.data.longBylineText:this.data.shortBylineText}},
watchFeedBigThumbs:{configurable:!0,enumerable:!0,get:function(){return _.K("kevlar_watch_feed_big_thumbs")?!0:!!this.isGridViewEnabled}}});
Oj.prototype.metadataColorChanged=Oj.prototype.metadataColorChanged;Oj.prototype.observeDataForBylineSeparator=Oj.prototype.observeDataForBylineSeparator;_.L([_.Q(_.pV),_.p("design:type",Object)],Oj.prototype,"ytdReduxBehavior",void 0);_.L([_.x(),_.p("design:type",Object)],Oj.prototype,"data",void 0);_.L([_.x(),_.p("design:type",Object)],Oj.prototype,"noEndpoints",void 0);_.L([_.x({reflectToAttribute:!0,value:!1}),_.p("design:type",Boolean)],Oj.prototype,"isSlimShort",void 0);
_.L([_.x({reflectToAttribute:!0,value:!1}),_.p("design:type",Boolean)],Oj.prototype,"radioMeta",void 0);_.L([_.x({selector:_.W8}),_.p("design:type",Object)],Oj.prototype,"isGridViewEnabled",void 0);_.L([_.x({reflectToAttribute:!0,value:!1}),_.p("design:type",Boolean)],Oj.prototype,"richMeta",void 0);_.L([_.x({reflectToAttribute:!0}),_.p("design:type",Object)],Oj.prototype,"amsterdamPostMvp",void 0);_.L([_.x(),_.p("design:type",Boolean)],Oj.prototype,"noByline",void 0);
_.L([_.x({computed:"isLongByline(data, radioMeta)"}),_.p("design:type",Boolean)],Oj.prototype,"longByline",void 0);_.L([_.x({reflectToAttribute:!0,value:!1}),_.p("design:type",Boolean)],Oj.prototype,"truncateMetadataLine",void 0);_.L([_.x({reflectToAttribute:!0,value:!1}),_.p("design:type",Boolean)],Oj.prototype,"miniMode",void 0);_.L([_.x(),_.p("design:type",Number)],Oj.prototype,"metadataColor",void 0);_.L([_.x(),_.p("design:type",Array)],Oj.prototype,"badges",void 0);
_.L([_.x({selector:_.oU,selectorArgs:["data.videoId"]}),_.p("design:type",String)],Oj.prototype,"transferState",void 0);_.L([_.x({reflectToAttribute:!0,value:!1}),_.p("design:type",Boolean)],Oj.prototype,"isDownloading",void 0);_.L([_.x({reflectToAttribute:!0,value:!1}),_.p("design:type",Boolean)],Oj.prototype,"typographyBump",void 0);_.L([_.A3("#metadata-line"),_.p("design:type",HTMLElement)],Oj.prototype,"metadataLine",void 0);
_.L([_.O8("data"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],Oj.prototype,"observeDataForBylineSeparator",null);_.L([_.O8("metadataColor"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],Oj.prototype,"metadataColorChanged",null);_.L([_.S("data"),_.p("design:type",Object),_.p("design:paramtypes",[])],Oj.prototype,"shouldShowVideoInfo",null);
_.L([_.S("badges"),_.p("design:type",String),_.p("design:paramtypes",[])],Oj.prototype,"inlineBadgeClass",null);_.L([_.S("longByline"),_.p("design:type",String),_.p("design:paramtypes",[])],Oj.prototype,"longBylineClass",null);_.L([_.S("data","longByline"),_.p("design:type",Object),_.p("design:paramtypes",[])],Oj.prototype,"bylineText",null);_.L([_.S("isGridViewEnabled","data"),_.x({reflectToAttribute:!0}),_.p("design:type",Boolean),_.p("design:paramtypes",[])],Oj.prototype,"watchFeedBigThumbs",null);
_.L([_.U({is:"ytd-video-meta-block",disableElementRegistration:!0})],Oj);
_.D(Oj,"ytd-video-meta-block",function(){if(X$G!==void 0)return X$G;var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-video-meta-block--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e\n<div id="metadata" class="style-scope ytd-video-meta-block">\n  <div id="byline-container" hidden="[[isBylineHidden(data, radioMeta)]]" class="style-scope ytd-video-meta-block">\n    <ytd-channel-name id="channel-name" class$="[[longBylineClass]] style-scope ytd-video-meta-block" badges="[[data.ownerBadges]]" channel-name="[[bylineText]]" no-endpoints="[[noEndpoints]]" wrap-text="[[longByline]]">\n    </ytd-channel-name>\n    <div id="separator" class="style-scope ytd-video-meta-block">\u2022</div>\n    <yt-formatted-string id="video-info" hidden="[[!shouldShowVideoInfo]]" text="[[data.videoInfo]]" class="style-scope ytd-video-meta-block">\n  </yt-formatted-string>\n  </div>\n  <div id="metadata-line" class="style-scope ytd-video-meta-block">\n    \n    <ytd-badge-supported-renderer class="inline-metadata-badge style-scope ytd-video-meta-block" badges="[[badges]]" hidden="[[!badges.length]]">\n    </ytd-badge-supported-renderer>\n    <div id="separator" hidden="[[isBylineMetadataSeparatorHidden(data)]]" class="style-scope ytd-video-meta-block">\u2022</div>\n    <template is="dom-repeat" items="[[getMetadata(data)]]" strip-whitespace="" class="style-scope ytd-video-meta-block">\n      <span class="inline-metadata-item style-scope ytd-video-meta-block">[[item]]</span>\n    </template>\n  </div>\n</div>\n<div id="additional-metadata-line" class="style-scope ytd-video-meta-block">\n  <template is="dom-repeat" items="[[data.additionalMetadatas]]" class="style-scope ytd-video-meta-block"><span class="style-scope ytd-video-meta-block">[[getSimpleString(item)]]</span></template>\n</div>\n\n');a.content.insertBefore(_.w().content.cloneNode(!0),
a.content.firstChild);return X$G=a},{mode:_.Np("kevlar_poly_si_batch_j080")?1:2});_.$q("itemSectionRenderer","playlistRenderer","ytd-playlist-renderer");var fO=function(){var a=_.G.apply(this,arguments)||this;a.displayItemCount=2;a.isBackstagePlaylist=!1;a.isPostCompactPlaylist=!1;a.shouldShowChannelThumbnail=!1;a.useModernCollectionsV2=_.K("web_modern_collections_v2");return a};
_.b(fO,_.G);_.Z=fO.prototype;_.Z.computeFirstVideos=function(a,z){return a===void 0||z===void 0?[]:a.slice(0,z)};
_.Z.dataChanged=function(){if(this.data&&this.data.thumbnailRenderer){var a=this.data.thumbnailRenderer;a.playlistVideoThumbnailRenderer&&this.set("data.thumbnail",a.playlistVideoThumbnailRenderer.thumbnail);a.playlistCustomThumbnailRenderer&&this.set("data.thumbnail",a.playlistCustomThumbnailRenderer.thumbnail)}};
_.Z.computeThumbnailHeight=function(a,z,I,J,r){return J?r==="BIG"?280:r==="MASSIVE"?337:234:I?240:z?72:a?118:138};
_.Z.computeThumbnailWidth=function(a,z,I,J,r){return J?r==="MEDIUM"?450:r==="BIG"?500:r==="MASSIVE"?600:420:I?360:z?128:a?210:246};
_.Z.computeUseBiggerThumbs=function(a){return a&&_.K("enable_desktop_search_bigger_thumbs")};
_.Z.computeShouldShowChannelThumbnail=function(a,z){return a&&!(z==null||!z.channelThumbnail)};
_.eH.Object.defineProperties(fO.prototype,{stackThumbnailSize:{configurable:!0,enumerable:!0,get:function(){return this.isSearch?"large":"medium"}}});
fO.prototype.dataChanged=fO.prototype.dataChanged;_.L([_.Q(_.k.YtRendererBehavior),_.p("design:type",Object)],fO.prototype,"ytRendererBehavior",void 0);_.L([_.Q(_.eB),_.p("design:type",Object)],fO.prototype,"ytdLockupBehavior",void 0);_.L([_.Q(_.pV),_.p("design:type",Object)],fO.prototype,"ytdReduxBehavior",void 0);_.L([_.x(),_.p("design:type",Object)],fO.prototype,"data",void 0);_.L([_.x(),_.p("design:type",Object)],fO.prototype,"displayItemCount",void 0);
_.L([_.x({reflectToAttribute:!0}),_.p("design:type",Object)],fO.prototype,"isBackstagePlaylist",void 0);_.L([_.x({reflectToAttribute:!0}),_.p("design:type",Object)],fO.prototype,"isPostCompactPlaylist",void 0);_.L([_.x({value:!1,reflectToAttribute:!0}),_.p("design:type",Boolean)],fO.prototype,"isSearch",void 0);_.L([_.x({reflectToAttribute:!0,computed:"computeUseBiggerThumbs(isSearch)"}),_.p("design:type",Boolean)],fO.prototype,"useBiggerThumbs",void 0);_.L([_.x({reflectToAttribute:!0,value:function(){return _.rM("desktop_search_bigger_thumbs_style")}}),
_.p("design:type",String)],fO.prototype,"biggerThumbsStyle",void 0);_.L([_.x({value:!1,reflectToAttribute:!0}),_.p("design:type",Boolean)],fO.prototype,"isDownloads",void 0);_.L([_.x({computed:"computeShouldShowChannelThumbnail(isSearch, data)"}),_.p("design:type",Object)],fO.prototype,"shouldShowChannelThumbnail",void 0);_.L([_.x({reflectToAttribute:!0}),_.p("design:type",Object)],fO.prototype,"useModernCollectionsV2",void 0);
_.L([_.Fe("data"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],fO.prototype,"dataChanged",null);_.L([_.S("isSearch"),_.p("design:type",String),_.p("design:paramtypes",[])],fO.prototype,"stackThumbnailSize",null);_.L([_.U({is:"ytd-playlist-renderer",disableElementRegistration:!0})],fO);
_.D(fO,"ytd-playlist-renderer",function(){if(OCv===void 0){var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-playlist-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<ytd-playlist-thumbnail custom-thumbnail-size="[[computeThumbnailHeight(isBackstagePlaylist, isPostCompactPlaylist, isSearch)]]" data="[[data]]" height="[[computeThumbnailHeight(isBackstagePlaylist, isPostCompactPlaylist, isSearch, useBiggerThumbs, biggerThumbsStyle)]]" hovered="[[lockupIsHovered]]" is-double-stack="[[isSearch]]" thumbnail-size="[[stackThumbnailSize]]" use-hovered-property="" width="[[computeThumbnailWidth(isBackstagePlaylist, isPostCompactPlaylist, isSearch, useBiggerThumbs, biggerThumbsStyle)]]" class="style-scope ytd-playlist-renderer">\n</ytd-playlist-thumbnail>\n<div id="content" class="style-scope ytd-playlist-renderer">\n  <a class="yt-simple-endpoint style-scope ytd-playlist-renderer" href$="[[computeHref_(data.navigationEndpoint)]]" data="[[data.navigationEndpoint]]">\n    <h3 class="style-scope ytd-playlist-renderer">\n      <ytd-badge-supported-renderer hidden="[[!data.topStandaloneBadge]]" top-standalone-badge="[[data.topStandaloneBadge]]" class="style-scope ytd-playlist-renderer">\n      </ytd-badge-supported-renderer>\n      <span id="video-title" title$="[[getSimpleString(data.title)]]" aria-label$="[[data.title.accessibility.accessibilityData.label]]" class="style-scope ytd-playlist-renderer">\n        [[getSimpleString(data.title)]]\n      </span>\n    </h3>\n    <template is="dom-if" if="[[shouldShowChannelThumbnail]]" restamp="" class="style-scope ytd-playlist-renderer">\n      <div id="channel-info" class="style-scope ytd-playlist-renderer">\n        <a id="channel-thumbnail" hidden="[[!data.channelThumbnail.channelThumbnailWithLinkRenderer.thumbnail]]" aria-label$="[[data.channelThumbnail.channelThumbnailWithLinkRenderer.accessibility.accessibilityData.label]]" href$="[[computeHref_(data.channelThumbnail.channelThumbnailWithLinkRenderer.navigationEndpoint)]]" class="style-scope ytd-playlist-renderer">\n          <yt-img-shadow thumbnail="[[data.channelThumbnail.channelThumbnailWithLinkRenderer.thumbnail]]" width="24" class="style-scope ytd-playlist-renderer">\n          </yt-img-shadow>\n        </a>\n        <ytd-channel-name id="channel-name" class="long-byline style-scope ytd-playlist-renderer" badges="[[data.ownerBadges]]" channel-name="[[data.longBylineText]]" wrap-text="true">\n        </ytd-channel-name>\n      </div>\n    </template>\n    <ytd-video-meta-block id="meta" data="[[data]]" hidden="[[shouldShowChannelThumbnail]]" class="style-scope ytd-playlist-renderer"></ytd-video-meta-block>\n  </a>\n  <ytd-badge-supported-renderer class="allowlisted-metadata-badges style-scope ytd-playlist-renderer" badges="[[data.allowlistedMetadataBadges]]" hidden="[[!data.allowlistedMetadataBadges]]">\n  </ytd-badge-supported-renderer>\n  <yt-formatted-string id="description-text" hidden="[[!data.description]]" text="[[data.description]]" class="style-scope ytd-playlist-renderer"></yt-formatted-string>\n  <ul id="list" hidden="[[isPostCompactPlaylist]]" class="style-scope ytd-playlist-renderer">\n    <template is="dom-repeat" items="[[computeFirstVideos(data.videos, displayItemCount)]]" as="video" class="style-scope ytd-playlist-renderer">\n      <li class="style-scope ytd-playlist-renderer">\n        <ytd-child-video-renderer data="[[video.childVideoRenderer]]" class="style-scope ytd-playlist-renderer">\n        </ytd-child-video-renderer>\n      </li>\n    </template>\n  </ul>\n  <yt-formatted-string id="view-more" link-inherit-color="" text="[[data.viewPlaylistText]]" class="style-scope ytd-playlist-renderer"></yt-formatted-string>\n  <ytd-badge-supported-renderer id="badges" badges="[[data.badges]]" hidden="[[!data.badges]]" role="text" class="style-scope ytd-playlist-renderer">\n  </ytd-badge-supported-renderer>\n</div>\n<yt-interaction id="interaction" class="extended style-scope ytd-playlist-renderer"></yt-interaction>\n');a.content.insertBefore(_.w().content.cloneNode(!0),
a.content.firstChild);OCv=a}a=OCv;return a},{mode:1});var TyO;var dxE;var Ar=function(){var a=_.G.apply(this,arguments)||this;a.collections=!!_.K("web_modern_collections_v2");a.startX=0;return a};
_.b(Ar,_.G);Ar.prototype.onEndpointMouseDown=function(a){this.startX=a.clientX};
Ar.prototype.onEndpointClick=function(a){this.startX!==a.clientX&&(a.preventDefault(),a.stopPropagation())};
Ar.prototype.computeObjectFit=function(a){return a==="CARD_RENDERER_STYLE_TYPE_UNIVERSAL_WATCH_CARD_MOVIE_POSTER"||a==="CARD_RENDERER_STYLE_TYPE_MOVIE_POSTER"||a==="CARD_RENDERER_STYLE_TYPE_CENTERED"?"COVER":"FILL"};
Ar.prototype.computeCardStyle=function(a){return a?a.replace("CARD_RENDERER_STYLE_TYPE_","").toLowerCase():""};
_.eH.Object.defineProperties(Ar.prototype,{isAlbumCard:{configurable:!0,enumerable:!0,get:function(){var a,z;return this.collections&&((a=this.data)==null?void 0:(z=a.searchRefinementCardRendererStyle)==null?void 0:z.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}}}});
_.L([_.Q(_.k.YtRendererBehavior),_.p("design:type",Object)],Ar.prototype,"ytRendererBehavior",void 0);_.L([_.x(),_.p("design:type",Object)],Ar.prototype,"data",void 0);_.L([_.x({computed:"computeObjectFit(data.searchRefinementCardRendererStyle.value)"}),_.p("design:type",Number)],Ar.prototype,"objectFit",void 0);_.L([_.x({reflectToAttribute:!0,computed:"computeCardStyle(data.searchRefinementCardRendererStyle.value)"}),_.p("design:type",String)],Ar.prototype,"cardStyle",void 0);
_.L([_.x({reflectToAttribute:!0,value:!0}),_.p("design:type",Boolean)],Ar.prototype,"roundContainer",void 0);_.L([_.x({reflectToAttribute:!0}),_.p("design:type",Boolean)],Ar.prototype,"collections",void 0);_.L([_.S("data"),_.p("design:type",Object),_.p("design:paramtypes",[])],Ar.prototype,"isAlbumCard",null);_.L([_.S("data","collections","isAlbumCard"),_.p("design:type",Object),_.p("design:paramtypes",[])],Ar.prototype,"collectionStack",null);
_.L([_.U({is:"ytd-search-refinement-card-renderer",disableElementRegistration:!0})],Ar);
_.D(Ar,"ytd-search-refinement-card-renderer",function(){if(dxE!==void 0)return dxE;var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-search-refinement-card-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<a class="yt-simple-endpoint style-scope ytd-search-refinement-card-renderer" data="[[data.searchEndpoint]]" href$="[[computeHref_(data.searchEndpoint)]]" on-mousedown="onEndpointMouseDown" on-click="onEndpointClick" draggable="false">\n  <div id="card-thumbnail" class="style-scope ytd-search-refinement-card-renderer">\n    <yt-collections-stack data="[[collectionStack]]" class="style-scope ytd-search-refinement-card-renderer"></yt-collections-stack>\n    <yt-img-shadow object-fit="[[objectFit]]" rounded-container="[[isAlbumCard]]" thumbnail="[[data.thumbnail]]" class="style-scope ytd-search-refinement-card-renderer">\n    </yt-img-shadow>\n  </div>\n  <div id="card-title" class="style-scope ytd-search-refinement-card-renderer">\n    <div class="style-scope ytd-search-refinement-card-renderer">[[getSimpleString(data.query)]]</div>\n  </div>\n</a>\n');a.content.insertBefore(_.w().content.cloneNode(!0),
a.content.firstChild);return dxE=a},{mode:1});var Wwj;var sj=function(){var a=_.G.apply(this,arguments)||this;a.isRichGrid=!1;return a};
_.b(sj,_.G);_.L([_.x(),_.p("design:type",Object)],sj.prototype,"data",void 0);_.L([_.Q(_.Ms.YtComponentBehavior),_.p("design:type",Object)],sj.prototype,"componentBehavior",void 0);_.L([_.Q(_.pV),_.p("design:type",Object)],sj.prototype,"ytdReduxBehavior",void 0);_.L([_.x({reflectToAttribute:!0}),_.p("design:type",Object)],sj.prototype,"isRichGrid",void 0);_.L([_.x({reflectToAttribute:!0,selector:_.$p}),_.p("design:type",Boolean)],sj.prototype,"miniMode",void 0);
_.L([_.U({is:"ytd-game-details-renderer",disableElementRegistration:!0})],sj);
_.D(sj,"ytd-game-details-renderer",function(){if(Wwj!==void 0)return Wwj;var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-game-details-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<a class="yt-simple-endpoint focus-on-expand style-scope ytd-game-details-renderer" href$="[[computeHref_(data.endpoint)]]" data="[[data.endpoint]]">\n  <yt-img-shadow height="290" object-fit="COVER" thumbnail="[[data.boxArt]]" width="210" class="style-scope ytd-game-details-renderer"></yt-img-shadow>\n  <yt-formatted-string id="title" text="[[data.title]]" class="style-scope ytd-game-details-renderer"></yt-formatted-string>\n  <yt-formatted-string id="auto-generated" hidden="[[!data.autoGenerated]]" text="[[data.autoGenerated]]" class="style-scope ytd-game-details-renderer"></yt-formatted-string>\n  <yt-formatted-string id="live-viewers-count" hidden="[[!data.liveViewersText]]" text="[[data.liveViewersText]]" class="style-scope ytd-game-details-renderer">\n  </yt-formatted-string>\n</a>\n');a.content.insertBefore(_.w().content.cloneNode(!0),
a.content.firstChild);return Wwj=a},{mode:1});var oHe;var Uxi;var nO=function(){var a=_.G.apply(this,arguments)||this;a.actionMap={"yt-menu-service-item-selected-action":"handleBellMenuOpenSelectedAction"};return a};
_.b(nO,_.G);_.Z=nO.prototype;_.Z.attached=function(){this.hostElement.hasAttribute("button-renderer")||this.hostElement.setAttribute("button-renderer","true")};
_.Z.currentStateData=function(a){var z=a||this.data;return z&&z.states&&z.currentStateId!=null?z.states.find(function(I){return I.stateId===z.currentStateId})||null:null};
_.Z.currentStateRendererData=function(a){return(a=this.currentStateData(a))&&a.state&&a.state.buttonRenderer?a.state.buttonRenderer:null};
_.Z.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())};
_.Z.computeButtonIcon=function(a){a=this.currentStateRendererData(a);var z;return(a==null?0:(z=a.icon)==null?0:z.iconType)?a.icon.iconType.toLowerCase():null};
_.Z.computeAccessibility=function(a){return(a=this.currentStateRendererData(a))&&a.accessibilityData?a.accessibilityData.accessibilityData||null:null};
_.Z.computeButtonClass=function(a){var z=this.currentStateRendererData(a);if(!z)return"";a="";var I=z.style;I&&(a+=I.toLowerCase().replace(/_/g,"-")+" ");(z=z.size)&&(a+=z.toLowerCase().replace(/_/g,"-")+" ");return a.trim()};
_.Z.computeServiceEndpoint=function(a){if(!a)return null;var z=a&&a.serviceEndpoint,I=this.get("command.commandMetadata.webCommandMetadata.sendPost",a);return z?z:I&&a.command?a.command:null};
_.Z.computeBellMenuItemParams=function(a){var z;a=(z=_.H(a==null?void 0:a.command,_.E_))==null?void 0:z.commands;if(!a||a.length===0)return null;z=_.H(a[0],_.G7);var I,J;return(z==null?0:(I=z.popup)==null?0:(J=I.menuPopupRenderer)==null?0:J.items)?z.popup.menuPopupRenderer.items.map(function(r){return r.menuServiceItemRenderer.trackingParams}):null};
_.Z.handleBellMenuOpenSelectedAction=function(a){var z=a.trackingParams,I=this.computeBellMenuItemParams(this.data);this.data&&z&&I&&I.includes(z)&&this.ytRenderButtonBehavior._setButtonIcon(a.icon.iconType.toLowerCase())};
_.Z.onYtServiceRequestCompleted=function(a,z){(a=this.get("data.newNotificationButton.subscriptionNotificationToggleButtonRenderer",z))&&this.set("data",a)};
_.Z.onYtServiceRequestError=function(){this.ytRenderButtonBehavior._setButtonIcon(this.computeButtonIcon(this.data))};
_.Z.resetState=function(){this.set("data.currentStateId",3)};
_.Z.onYtButtonTapHandler=function(){if(this.data){var a=this.currentStateRendererData(this.data);a&&this.ytRendererBehavior.logExplicitClick(a)}};
nO.prototype.onYtServiceRequestError=nO.prototype.onYtServiceRequestError;nO.prototype.onYtServiceRequestCompleted=nO.prototype.onYtServiceRequestCompleted;nO.prototype.stateChanged=nO.prototype.stateChanged;_.L([_.Q(_.k.YtRendererBehavior),_.p("design:type",Object)],nO.prototype,"ytRendererBehavior",void 0);_.L([_.Q(_.Hc.YtActionHandlerBehavior),_.p("design:type",Object)],nO.prototype,"ytActionHandlerBehavior",void 0);
_.L([_.Q(xu.YtRenderButtonBehavior),_.p("design:type",Object)],nO.prototype,"ytRenderButtonBehavior",void 0);_.L([_.x(),_.p("design:type",Object)],nO.prototype,"data",void 0);_.L([_.Fe("data","data.currentStateId"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],nO.prototype,"stateChanged",null);
_.L([_.gz("yt-service-request-completed"),_.p("design:type",Function),_.p("design:paramtypes",[CustomEvent,_.Yq]),_.p("design:returntype")],nO.prototype,"onYtServiceRequestCompleted",null);_.L([_.gz("yt-service-request-error"),_.p("design:type",Function),_.p("design:paramtypes",[CustomEvent]),_.p("design:returntype")],nO.prototype,"onYtServiceRequestError",null);_.L([_.U({disableElementRegistration:!0,is:"ytd-subscription-notification-toggle-button-renderer"})],nO);
_.D(nO,"ytd-subscription-notification-toggle-button-renderer",function(){if(Uxi!==void 0)return Uxi;var a=document.createElement("template");_.V(a,"\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-subscription-notification-toggle-button-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e\n");a.content.insertBefore(_.w().content.cloneNode(!0),a.content.firstChild);return Uxi=a},{mode:1});var DxX;var KO=function(){var a=_.G.apply(this,arguments)||this;a.actionMap={"yt-menu-service-item-selected-action":"handleBellMenuOpenSelectedAction"};a.tapHandler=function(){if(a.data){var z=a.currentStateRendererData();z&&a.ytRendererBehavior.logExplicitClick(z)}};
return a};
_.b(KO,_.G);_.Z=KO.prototype;_.Z.attached=function(){this.hostElement.hasAttribute("button-renderer")||this.hostElement.setAttribute("button-renderer","true")};
_.Z.currentStateData=function(){var a=this;return this.data&&this.data.states&&this.data.currentStateId!=null?this.data.states.find(function(z){return z.stateId===a.data.currentStateId})||null:null};
_.Z.currentStateRendererData=function(){var a=this.currentStateData();return a&&a.state&&a.state.buttonRenderer?a.state.buttonRenderer:null};
_.Z.computeAccessibilityLabel=function(){var a,z,I;return(a=this.currentStateRendererData())==null?void 0:(z=a.accessibilityData)==null?void 0:(I=z.accessibilityData)==null?void 0:I.label};
_.Z.computeBellMenuItemParams=function(){var a,z,I=(z=_.H((a=this.data)==null?void 0:a.command,_.E_))==null?void 0:z.commands;if(!I||I.length===0)return null;a=_.H(I[0],_.G7);var J,r;return(a==null?0:(J=a.popup)==null?0:(r=J.menuPopupRenderer)==null?0:r.items)?a.popup.menuPopupRenderer.items.map(function(P){return P.menuServiceItemRenderer.trackingParams}):null};
_.Z.handleBellMenuOpenSelectedAction=function(a){var z=a.trackingParams,I=this.computeBellMenuItemParams();if(this.data&&z&&I&&I.includes(z)&&(a==null||!a.isDisabled)){var J;((J=_.H(a.serviceEndpoint,_.ge))==null?void 0:J.signal)!=="CLIENT_SIGNAL"&&(this.icon=a.icon.iconType)}};
_.Z.resetState=function(){this.icon=void 0;this.set("data.currentStateId",3)};
_.Z.onYtServiceRequestCompleted=function(a,z){if(a=this.get("data.newNotificationButton.subscriptionNotificationToggleButtonRenderer",z))this.icon=void 0,this.set("data",a)};
_.Z.onYtServiceRequestError=function(){this.icon=void 0};
_.eH.Object.defineProperties(KO.prototype,{computedButtonShape:{configurable:!0,enumerable:!0,get:function(){if(this.data){var a=this.data,z=this.textLabel,I=this.hostElement,J=this.computeAccessibilityLabel(),r=this.tapHandler,P=this.isOverlay?"overlay":"mono",N=(a==null?0:a.disableButton)?"disabled":"active";z=z?_.XJ(z):void 0;return{style:P,type:"tonal",state:N,size:"M",focused:!1,formattedButtonText:z,iconPosition:"leading-trailing",onTap:Tym(a,r,I),accessibilityLabel:J}}}},
computedIcon:{configurable:!0,enumerable:!0,get:function(){var a=this.currentStateRendererData(),z,I,J=(I=this.icon)!=null?I:a==null?void 0:(z=a.icon)==null?void 0:z.iconType;if(J)return _.Bl(J)}},
computedAnimateIcon:{configurable:!0,enumerable:!0,get:function(){return this.computedIcon==="NOTIFICATIONS_NONE"?!0:void 0}},
computedSecondaryIcon:{configurable:!0,enumerable:!0,get:function(){var a,z,I=(a=this.data)==null?void 0:(z=a.secondaryIcon)==null?void 0:z.iconType;if(I)return _.Bl(I)}}});
KO.prototype.onYtServiceRequestError=KO.prototype.onYtServiceRequestError;KO.prototype.onYtServiceRequestCompleted=KO.prototype.onYtServiceRequestCompleted;_.L([_.Q(_.k.YtRendererBehavior),_.p("design:type",Object)],KO.prototype,"ytRendererBehavior",void 0);_.L([_.Q(_.Hc.YtActionHandlerBehavior),_.p("design:type",Object)],KO.prototype,"ytActionHandlerBehavior",void 0);_.L([_.x(),_.p("design:type",Object)],KO.prototype,"data",void 0);_.L([_.x(),_.p("design:type",Object)],KO.prototype,"textLabel",void 0);
_.L([_.x(),_.p("design:type",String)],KO.prototype,"icon",void 0);_.L([_.x(),_.p("design:type",Boolean)],KO.prototype,"isOverlay",void 0);_.L([_.S("data.*","textLabel"),_.p("design:type",Object),_.p("design:paramtypes",[])],KO.prototype,"computedButtonShape",null);_.L([_.S("data.*","icon"),_.p("design:type",Object),_.p("design:paramtypes",[])],KO.prototype,"computedIcon",null);_.L([_.S("computedIcon"),_.p("design:type",Object),_.p("design:paramtypes",[])],KO.prototype,"computedAnimateIcon",null);
_.L([_.S("data.*"),_.p("design:type",Object),_.p("design:paramtypes",[])],KO.prototype,"computedSecondaryIcon",null);_.L([_.gz("yt-service-request-completed"),_.p("design:type",Function),_.p("design:paramtypes",[CustomEvent,_.Yq]),_.p("design:returntype")],KO.prototype,"onYtServiceRequestCompleted",null);_.L([_.gz("yt-service-request-error"),_.p("design:type",Function),_.p("design:paramtypes",[CustomEvent]),_.p("design:returntype")],KO.prototype,"onYtServiceRequestError",null);
_.L([_.U({disableElementRegistration:!0,is:"ytd-subscription-notification-toggle-button-renderer-next"})],KO);
_.D(KO,"ytd-subscription-notification-toggle-button-renderer-next",function(){if(DxX!==void 0)return DxX;var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e<yt-button-shape animate-icon="[[computedAnimateIcon]]" data="[[computedButtonShape]]" icon-name="[[computedIcon]]" secondary-icon-name="[[computedSecondaryIcon]]">\n</yt-button-shape>\n');return DxX=a},{mode:_.Np("kevlar_poly_si_batch_j081")?1:2});var R_v;_.Jf(Rul,"yt-animated-action",{props:{backgroundLottieRef:_.zl,foregroundLottieRef:_.zl,wrapperClass:_.zl,disableAnimation:_.zl},unsafeExternallySettableAttributes:new Set(["key"])});var FD=function(){var a=_.G.apply(this,arguments)||this;a.animatedActionEnabled=_.K("web_animated_actions");a.foregroundLottieRef={};a.backgroundLottieRef={};a.forceIconOnly=!1;a.showTextWhileAnimating=!1;a.keyboardFocused=!1;a.isAnimating=!1;a.actionMap={"yt-player-subscribe":"onPlayerSubscribe","yt-player-unsubscribe":"onPlayerUnsubscribe","yt-update-subscribe-button-action":"handleUpdateSubscribeButtonAction"};return a};
_.b(FD,_.G);_.Z=FD.prototype;_.Z.maybeUpdateBellButtonText=function(){this.showTextWhileAnimating&&this.bellButton&&(this.bellButton.textLabel=this.subscribedButtonText)};
_.Z.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]]"}}}}}};
_.Z.attached=function(){this.keyboardFocused=!1};
_.Z.onYtServiceRequestSent=function(a,z){(this.get("endpoint.subscribeEndpoint",z)||this.get("endpoint.unsubscribeEndpoint",z))&&this.updateSubscriptionState(!this.subscribed)};
_.Z.onYtServiceRequestCompleted=function(a,z){(a=this.get("newNotificationButton.subscriptionNotificationToggleButtonRenderer",z.data))&&this.bellButton&&(this.bellButton.data=a)};
_.Z.observedSubscribed=function(){this.isAnimating||this.clearContainerSize();_.uK(this.hostElement)};
_.Z.onPlayerSubscribe=function(a){this.isCompactRed()||a!==this.data.channelId||(this.tryToSaveButtonWidths(),this.updateContainerToFitContent(!!this.subscribed),this.updateSubscriptionState(!0))};
_.Z.onPlayerUnsubscribe=function(a){this.isCompactRed()||a!==this.data.channelId||this.updateSubscriptionState(!1)};
_.Z.handleUpdateSubscribeButtonAction=function(a){a=_.H(a,eSi);var z;a&&a.channelId===((z=this.data)==null?void 0:z.channelId)&&this.updateSubscriptionState(!!a.subscribed)};
_.Z.computeButtonStyle=function(a){return this.get("style.styleType",a)||null};
_.Z.isCompactRed=function(){return this.computeButtonStyle(this.data)==="COMPACT_RED"};
_.Z.computeSubscribed=function(){return this.subscriptionStateEntity?!!this.subscriptionStateEntity.subscribed:!(!this.data||!this.data.subscribed)};
_.Z.updateSubscriptionState=function(a){if(a!==this.subscribed){this.set("data.subscribed",a);var z,I=(z=this.data)==null?void 0:z.subscribedEntityKey;I&&this.ytdReduxBehavior.dispatch(_.Q0("subscriptionStateEntity",I,{key:I,subscribed:a}));this.isCompactRed()||_.PA(this.hostElement,"yt-subscription-changed",a);a||(_.ZF(this.hostElement,"yt-unsubscribe-action"),this.resetNotificationBellState());this.animatedActionEnabled&&(this.updateContainerToFitContent(!!a),a&&this.hasBellButton&&this.startAnimation())}};
_.Z.startAnimation=function(){var a=this;if(!this.isAnimating){var z=this.forceIconOnly&&this.showTextWhileAnimating?2E3:1500;this.isAnimating=!0;var I;(I=this.backgroundLottieRef.lottieEl)==null||I.goToAndPlay(0);var J;(J=this.foregroundLottieRef.lottieEl)==null||J.goToAndPlay(0);_.GW.addJob(function(){a.maybeAnimateBellIcon()},2,300);
this.forceIconOnly&&this.showTextWhileAnimating&&_.GW.addJob(function(){a.updateContainerToFitContent(!!a.subscribed,!0)},2,1500);
_.GW.addJob(function(){a.isAnimating=!1},2,z)}};
_.Z.maybeAnimateBellIcon=function(){var a=_.ZL(this.hostElement).querySelector("yt-animated-icon");if(a){var z;(z=a.animationRef.lottieEl)==null||z.goToAndPlay(0)}};
_.Z.onDataChanged=function(){this.animatedActionEnabled&&(this.hostElement.style.width="")};
_.Z.onMouseDown=function(){this.tryToSaveButtonWidths();this.updateContainerToFitContent(!!this.subscribed)};
_.Z.tryToSaveButtonWidths=function(){if(this.animatedActionEnabled&&!this.unsubscribedWidth){if(!this.subscribed){var a;this.unsubscribedWidth=(a=this.subscribeButtonShape)==null?void 0:a.getBoundingClientRect().width}var z;this.subscribedWidth=(z=this.bellButton)==null?void 0:z.getBoundingClientRect().width;this.maybeSetSubscribedButtonIconOnlyWidth()}};
_.Z.updateContainerToFitContent=function(a,z){this.animatedActionEnabled&&this.subscribedWidth&&this.unsubscribedWidth&&(a?(a=this.subscribedWidth,z=this.isAnimating&&!z,this.subscribedIconOnlyWidth===void 0||z||(a=this.subscribedIconOnlyWidth),this.hostElement.style.width=a+"px"):this.hostElement.style.width=this.unsubscribedWidth+"px")};
_.Z.clearContainerSize=function(){this.hostElement.style.width=""};
_.Z.resetNotificationBellState=function(){this.get("notificationPreferenceButton.subscriptionNotificationToggleButtonRenderer",this.data)&&this.bellButton&&this.bellButton.resetState()};
_.Z.maybeSetSubscribedButtonIconOnlyWidth=function(){var a=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 z;a.subscribedIconOnlyWidth=(z=a.bellButton)==null?void 0:z.getBoundingClientRect().width;requestAnimationFrame(function(){if(a.bellButton){var I;a.bellButton.textLabel=
(I=a.data)==null?void 0:I.subscribedButtonText}})})))};
_.eH.Object.defineProperties(FD.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 a;return(a=this.data)==null?void 0:a.subscribedButtonText}var z;return this.forceIconOnly?void 0:(z=this.data)==null?void 0:z.subscribedButtonText}},
smartimationSettings:{configurable:!0,enumerable:!0,get:function(){var a,z,I=((a=this.data)==null?void 0:(z=a.timedAnimationData)==null?void 0:z.animationTiming)||[];return{uniqueId:"subscribe",timings:I,enabled:I.length>0&&!this.subscribed,experimentEnabled:I.length>0}}},
subscribeButtonHidden:{configurable:!0,enumerable:!0,get:function(){var a;return!this.subscribed&&((a=this.data)==null?void 0:a.hideWhenUnsubscribed)||!this.animatedActionEnabled&&this.hasBellButton&&this.subscribed}},
subscribeButtonInvisible:{configurable:!0,enumerable:!0,get:function(){return this.animatedActionEnabled&&this.hasBellButton&&this.subscribed}},
unsubscribeButtonHidden:{configurable:!0,enumerable:!0,get:function(){return!this.animatedActionEnabled&&!this.subscribed}},
buttonShape:{configurable:!0,enumerable:!0,get:function(){if(this.data){var a={renderer:this.data,element:this.hostElement,subscribed:!!this.subscribed,isOverlay:!!this.overlayButton};var z=a.renderer;var I=a.element;var J=a.subscribed;var r=a.commandController;var P=a.isOverlay;a=a.stopPropagation;var N=Uxx(z,J);P&&(N.style="overlay");P=Object;var u=P.assign,E;a:switch((E=z.style)==null?void 0:E.styleType){case "COMPACT_GRAY":case "COMPACT_RED":E={size:"S"};break a;default:E={size:"M"}}var O=oHp(z,
J);var f=(f=J?z.subscribedButtonText:z.unsubscribedButtonText)?_.XJ(f):void 0;return u.call(P,{},N,E,{focused:!1,toggled:J,accessibilityLabel:O,formattedButtonText:f,onTap:Wwi(z,J,I,r,a)})}}}});
FD.prototype.onMouseDown=FD.prototype.onMouseDown;FD.prototype.onDataChanged=FD.prototype.onDataChanged;FD.prototype.observedSubscribed=FD.prototype.observedSubscribed;FD.prototype.onYtServiceRequestCompleted=FD.prototype.onYtServiceRequestCompleted;FD.prototype.onYtServiceRequestSent=FD.prototype.onYtServiceRequestSent;FD.prototype.maybeUpdateBellButtonText=FD.prototype.maybeUpdateBellButtonText;_.L([_.Q(_.Ms.YtComponentBehavior),_.p("design:type",Object)],FD.prototype,"ytComponentBehavior",void 0);
_.L([_.Q(_.u4.YtRendererstamperBehavior),_.p("design:type",Object)],FD.prototype,"ytRendererstamperBehavior",void 0);_.L([_.Q(_.k.YtRendererBehavior),_.p("design:type",Object)],FD.prototype,"ytRendererBehavior",void 0);_.L([_.Q(_.Hc.YtActionHandlerBehavior),_.p("design:type",Object)],FD.prototype,"ytActionHandlerBehavior",void 0);_.L([_.Q(_.pV),_.p("design:type",Object)],FD.prototype,"ytdReduxBehavior",void 0);_.L([_.x(),_.p("design:type",Object)],FD.prototype,"data",void 0);
_.L([_.x({selectorArgs:["data.subscribedEntityKey"],selector:$7O}),_.p("design:type",Object)],FD.prototype,"subscriptionStateEntity",void 0);_.L([_.x({computed:"computeSubscribed(data.subscribed, subscriptionStateEntity)",reflectToAttribute:!0}),_.p("design:type",Boolean)],FD.prototype,"subscribed",void 0);_.L([_.x({reflectToAttribute:!0}),_.p("design:type",Boolean)],FD.prototype,"branded",void 0);_.L([_.x({reflectToAttribute:!0}),_.p("design:type",Object)],FD.prototype,"animatedActionEnabled",void 0);
_.L([_.x(),_.p("design:type",Object)],FD.prototype,"foregroundLottieRef",void 0);_.L([_.x(),_.p("design:type",Object)],FD.prototype,"backgroundLottieRef",void 0);_.L([_.x({reflectToAttribute:!0}),_.p("design:type",Boolean)],FD.prototype,"overlayButton",void 0);_.L([_.x({reflectToAttribute:!0,computed:"computeButtonStyle(data)"}),_.p("design:type",Object)],FD.prototype,"buttonStyle",void 0);_.L([_.x(),_.p("design:type",Object)],FD.prototype,"forceIconOnly",void 0);
_.L([_.x(),_.p("design:type",Object)],FD.prototype,"showTextWhileAnimating",void 0);_.L([_.x({value:function(){return!!_.ab().resolve(_.eL(_.ET))&&_.K("kevlar_keyboard_button_focus")},
reflectToAttribute:!0}),_.p("design:type",Boolean)],FD.prototype,"useKeyboardFocused",void 0);_.L([_.x({reflectToAttribute:!0}),_.p("design:type",Object)],FD.prototype,"keyboardFocused",void 0);_.L([_.x({reflectToAttribute:!0}),_.p("design:type",Object)],FD.prototype,"isAnimating",void 0);_.L([_.S("data.notificationPreferenceButton.*"),_.p("design:type",Object),_.p("design:paramtypes",[])],FD.prototype,"hasBellButton",null);
_.L([_.O8("subscribedButtonText"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],FD.prototype,"maybeUpdateBellButtonText",null);_.L([_.S("data.subscribedButtonText","forceIconOnly","isAnimating","subscribed"),_.p("design:type",Object),_.p("design:paramtypes",[])],FD.prototype,"subscribedButtonText",null);_.L([_.S("data.timedAnimationData.animationTiming","subscribed"),_.p("design:type",Object),_.p("design:paramtypes",[])],FD.prototype,"smartimationSettings",null);
_.L([_.x({reflectToAttribute:!0}),_.S("subscribed","hasBellButton","data.hideWhenUnsubscribed"),_.p("design:type",Object),_.p("design:paramtypes",[])],FD.prototype,"subscribeButtonHidden",null);_.L([_.x({reflectToAttribute:!0}),_.S("subscribed","hasBellButton"),_.p("design:type",Object),_.p("design:paramtypes",[])],FD.prototype,"subscribeButtonInvisible",null);
_.L([_.x({reflectToAttribute:!0}),_.S("subscribed"),_.p("design:type",Object),_.p("design:paramtypes",[])],FD.prototype,"unsubscribeButtonHidden",null);_.L([_.A3("ytd-subscription-notification-toggle-button-renderer-next"),_.p("design:type",Object)],FD.prototype,"bellButton",void 0);_.L([_.A3("#subscribe-button-shape"),_.p("design:type",HTMLElement)],FD.prototype,"subscribeButtonShape",void 0);
_.L([_.S("overlayButton","subscribed","data"),_.p("design:type",Object),_.p("design:paramtypes",[])],FD.prototype,"buttonShape",null);_.L([_.gz("yt-service-request-sent"),_.p("design:type",Function),_.p("design:paramtypes",[CustomEvent,_.lJ]),_.p("design:returntype")],FD.prototype,"onYtServiceRequestSent",null);_.L([_.gz("yt-service-request-completed"),_.p("design:type",Function),_.p("design:paramtypes",[CustomEvent,_.Yq]),_.p("design:returntype")],FD.prototype,"onYtServiceRequestCompleted",null);
_.L([_.O8("subscribed"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],FD.prototype,"observedSubscribed",null);_.L([_.O8("data"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],FD.prototype,"onDataChanged",null);_.L([_.gz("mousedown"),_.p("design:type",Function),_.p("design:paramtypes",[CustomEvent]),_.p("design:returntype")],FD.prototype,"onMouseDown",null);
_.L([_.U({disableElementRegistration:!0,is:"ytd-subscribe-button-renderer"})],FD);
_.D(FD,"ytd-subscribe-button-renderer",function(){if(R_v!==void 0)return R_v;var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-subscribe-button-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-smartimation settings="[[smartimationSettings]]" class="style-scope ytd-subscribe-button-renderer">\n  <yt-button-shape id="subscribe-button-shape" data="[[buttonShape]]" hidden$="[[subscribeButtonHidden]]" invisible$="[[subscribeButtonInvisible]]" class="style-scope ytd-subscribe-button-renderer">\n  </yt-button-shape>\n  <div id="notification-preference-toggle-button" hidden="[[!subscribed]]" class="style-scope ytd-subscribe-button-renderer"></div>\n  <yt-animated-action background-lottie-ref="[[backgroundLottieRef]]" foreground-lottie-ref="[[foregroundLottieRef]]" key="yt-animated-action" class="style-scope ytd-subscribe-button-renderer">\n    <div id="notification-preference-button" hidden="[[unsubscribeButtonHidden]]" invisible$="[[!subscribed]]" class="style-scope ytd-subscribe-button-renderer"></div>\n  </yt-animated-action>\n</yt-smartimation>\n');a.content.insertBefore(_.w().content.cloneNode(!0),
a.content.firstChild);return R_v=a},{mode:1});var HI=function(){var a=_.G.apply(this,arguments)||this;a.isRichGrid=!1;return a};
_.b(HI,_.G);HI.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"}}}};
_.L([_.Q(_.k.YtRendererBehavior),_.p("design:type",Object)],HI.prototype,"ytRendererBehavior",void 0);_.L([_.Q(_.u4.YtRendererstamperBehavior),_.p("design:type",Object)],HI.prototype,"ytRendererstamperBehavior",void 0);_.L([_.x(),_.p("design:type",Object)],HI.prototype,"data",void 0);_.L([_.x({reflectToAttribute:!0}),_.p("design:type",Object)],HI.prototype,"isRichGrid",void 0);_.L([_.U({is:"ytd-game-card-renderer",disableElementRegistration:!0})],HI);
_.D(HI,"ytd-game-card-renderer",function(){if(oHe!==void 0)return oHe;var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-game-card-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="game" class="style-scope ytd-game-card-renderer"></div>\n<div id="subscribe-button" class="style-scope ytd-game-card-renderer"></div>\n');a.content.insertBefore(_.w().content.cloneNode(!0),
a.content.firstChild);return oHe=a},{mode:1});var bO={id:"menu",mapping:{menuRenderer:{component:"ytd-menu-renderer"}},initialRenderPriority:_.K("defer_menus")&&!Qmv?0:void 0,waitForSignal:"eocs"};var Lwe;var llf;var hr=function(){var a=_.G.apply(this,arguments)||this;a.actionMap={"yt-update-upcoming-event-reminder-button-state-command":"handleUpdateUpcomingEventReminderButtonStateCommand"};return a};
_.b(hr,_.G);_.Z=hr.prototype;_.Z.configureRendererStamper=function(){return{"currentButtonStateRenderer.button":{id:"button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{buttonTooltipPosition:"top"}}}}}};
_.Z.onSeriesReminderStateEntityChange=function(){var a,z,I;((a=this.eventReminderStateEntity)==null?0:a.key)&&((z=this.seriesReminderStateEntity)==null?void 0:z.state)==="SPORTS_SERIES_REMINDER_STATE_ALL"&&((I=this.eventReminderStateEntity)==null?void 0:I.state)==="UPCOMING_EVENT_REMINDER_STATE_SINGLE"&&this.ytdReduxBehavior.dispatch(_.Q0("upcomingEventReminderStateEntity",this.eventReminderStateEntity.key,Object.assign({},this.eventReminderStateEntity,{state:"UPCOMING_EVENT_REMINDER_STATE_NONE"})))};
_.Z.onYtServiceRequestCompleted=function(){this.set("data.currentState",this.getButtonStateFromReminderState())};
_.Z.onYtServiceRequestError=function(){var a;this.updateReminderStateEntitiesFromButtonState((a=this.data)==null?void 0:a.currentState)};
_.Z.handleUpdateUpcomingEventReminderButtonStateCommand=function(a){if(a=_.H(a,n3G)){var z,I=(z=this.data)==null?void 0:z.targetId;I&&a.targetId===I&&_.lK(this.updateReminderStateEntitiesFromButtonState.bind(this,a.state))}};
_.Z.getButtonStateFromReminderState=function(){var a;if(((a=this.seriesReminderStateEntity)==null?void 0:a.state)==="SPORTS_SERIES_REMINDER_STATE_ALL")return"UPCOMING_EVENT_REMINDER_BUTTON_STATE_SERIES";var z;if(((z=this.eventReminderStateEntity)==null?void 0:z.state)==="UPCOMING_EVENT_REMINDER_STATE_SINGLE")return"UPCOMING_EVENT_REMINDER_BUTTON_STATE_SINGLE";var I,J;if(((I=this.seriesReminderStateEntity)==null?void 0:I.state)==="SPORTS_SERIES_REMINDER_STATE_NONE"&&((J=this.eventReminderStateEntity)==
null?void 0:J.state)==="UPCOMING_EVENT_REMINDER_STATE_NONE")return"UPCOMING_EVENT_REMINDER_BUTTON_STATE_NONE";var r;return(r=this.data)==null?void 0:r.currentState};
_.Z.updateReminderStateEntitiesFromButtonState=function(a){if(a){switch(a){case "UPCOMING_EVENT_REMINDER_BUTTON_STATE_SERIES":a="UPCOMING_EVENT_REMINDER_STATE_NONE";var z="SPORTS_SERIES_REMINDER_STATE_ALL";break;case "UPCOMING_EVENT_REMINDER_BUTTON_STATE_SINGLE":a="UPCOMING_EVENT_REMINDER_STATE_SINGLE";z="SPORTS_SERIES_REMINDER_STATE_NONE";break;case "UPCOMING_EVENT_REMINDER_BUTTON_STATE_NONE":a="UPCOMING_EVENT_REMINDER_STATE_NONE";z="SPORTS_SERIES_REMINDER_STATE_NONE";break;default:return}var I;
((I=this.eventReminderStateEntity)==null?0:I.key)&&this.ytdReduxBehavior.dispatch(_.Q0("upcomingEventReminderStateEntity",this.eventReminderStateEntity.key,Object.assign({},this.eventReminderStateEntity,{state:a})));var J;((J=this.seriesReminderStateEntity)==null?0:J.key)&&this.ytdReduxBehavior.dispatch(_.Q0("sportsSeriesReminderStateEntity",this.seriesReminderStateEntity.key,Object.assign({},this.seriesReminderStateEntity,{state:z})))}};
_.eH.Object.defineProperties(hr.prototype,{currentButtonStateRenderer:{configurable:!0,enumerable:!0,get:function(){var a=this.getButtonStateFromReminderState(),z,I;if(a&&((z=this.data)==null?0:(I=z.states)==null?0:I.length))for(z=_.C(this.data.states),I=z.next();!I.done;I=z.next()){I=I.value;var J=void 0;if(((J=_.H(I,KhG))==null?void 0:J.state)===a)return _.H(I,KhG)}}}});
hr.prototype.onYtServiceRequestError=hr.prototype.onYtServiceRequestError;hr.prototype.onYtServiceRequestCompleted=hr.prototype.onYtServiceRequestCompleted;hr.prototype.onSeriesReminderStateEntityChange=hr.prototype.onSeriesReminderStateEntityChange;_.L([_.Q(_.Hc.YtActionHandlerBehavior),_.p("design:type",Object)],hr.prototype,"ytActionHandlerBehavior",void 0);_.L([_.Q(_.k.YtRendererBehavior),_.p("design:type",Object)],hr.prototype,"ytRendererBehavior",void 0);
_.L([_.Q(_.u4.YtRendererstamperBehavior),_.p("design:type",Object)],hr.prototype,"ytRendererstamperBehavior",void 0);_.L([_.Q(_.pV),_.p("design:type",Object)],hr.prototype,"ytdReduxBehavior",void 0);_.L([_.x(),_.p("design:type",Object)],hr.prototype,"data",void 0);_.L([_.x({selectorArgs:["data.upcomingEventData.reminderStateEntityKey"],selector:THi}),_.p("design:type",Object)],hr.prototype,"eventReminderStateEntity",void 0);
_.L([_.x({selectorArgs:["eventReminderStateEntity.seriesReminderState"],selector:function(a,z){return _.Bd(a.entities,"sportsSeriesReminderStateEntity",z)}}),
_.p("design:type",Object)],hr.prototype,"seriesReminderStateEntity",void 0);_.L([_.S("data.currentState","eventReminderStateEntity","seriesReminderStateEntity"),_.p("design:type",Object),_.p("design:paramtypes",[])],hr.prototype,"currentButtonStateRenderer",null);_.L([_.O8("seriesReminderStateEntity"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],hr.prototype,"onSeriesReminderStateEntityChange",null);
_.L([_.gz("yt-service-request-completed"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],hr.prototype,"onYtServiceRequestCompleted",null);_.L([_.gz("yt-service-request-error"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],hr.prototype,"onYtServiceRequestError",null);_.L([_.U({disableElementRegistration:!0,is:"ytd-upcoming-event-reminder-button-renderer"})],hr);
_.D(hr,"ytd-upcoming-event-reminder-button-renderer",function(){if(llf!==void 0)return llf;var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-upcoming-event-reminder-button-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="button" class="style-scope ytd-upcoming-event-reminder-button-renderer"></div>\n');a.content.insertBefore(_.w().content.cloneNode(!0),a.content.firstChild);
return llf=a},{mode:1});var p$I;var VM=function(){return _.G.apply(this,arguments)||this};
_.b(VM,_.G);VM.prototype.configureRendererStamper=function(){return{"data.buttons":{id:"buttons",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{ellipsisTruncate:!0}}}}}};
_.eH.Object.defineProperties(VM.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(_.K("web_announce_stop_seeing_this_ad_text_a11y_bugfix")&&this.data)return this.ytRendererBehavior.getSimpleString(this.data.responseText)}}});
_.L([_.Q(_.u4.YtRendererstamperBehavior),_.p("design:type",Object)],VM.prototype,"ytRendererstamperBehavior",void 0);_.L([_.Q(_.k.YtRendererBehavior),_.p("design:type",Object)],VM.prototype,"ytRendererBehavior",void 0);_.L([_.x(),_.p("design:type",Object)],VM.prototype,"data",void 0);_.L([_.x({reflectToAttribute:!0,value:!1}),_.p("design:type",Boolean)],VM.prototype,"shelfDismissal",void 0);_.L([_.S("data.responseText"),_.p("design:type",Object),_.p("design:paramtypes",[])],VM.prototype,"text",null);
_.L([_.S("data.responseText"),_.p("design:type",Object),_.p("design:paramtypes",[])],VM.prototype,"textAriaLabel",null);_.L([_.U({disableElementRegistration:!0,is:"ytd-notification-multi-action-renderer"})],VM);
_.D(VM,"ytd-notification-multi-action-renderer",function(){if(p$I!==void 0)return p$I;var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-notification-multi-action-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<span id="text" aria-label$="[[textAriaLabel]]" class="style-scope ytd-notification-multi-action-renderer">[[text]]</span>\n<div id="buttons" class="style-scope ytd-notification-multi-action-renderer"></div>\n');a.content.insertBefore(_.w().content.cloneNode(!0),
a.content.firstChild);return p$I=a},{mode:1});var w$J;var QM=function(){return _.G.apply(this,arguments)||this};
_.b(QM,_.G);QM.prototype.ready=function(){var a=this;_.PK(this.hostElement).querySelector("#undo").addEventListener("tap",function(){a.onUndoTap()})};
QM.prototype.onUndoTap=function(){this.data.undoEndpoint&&_.ab().resolve(_.j6).resolveCommand(this.data.undoEndpoint,{form:{element:this.hostElement}})};
_.L([_.Q(_.k.YtRendererBehavior),_.p("design:type",Object)],QM.prototype,"ytRendererBehavior",void 0);_.L([_.x(),_.p("design:type",Object)],QM.prototype,"data",void 0);_.L([_.U({disableElementRegistration:!0,is:"ytd-notification-text-renderer"})],QM);
_.D(QM,"ytd-notification-text-renderer",function(){if(w$J!==void 0)return w$J;var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-notification-text-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-formatted-string text="[[data.successResponseText]]" class="style-scope ytd-notification-text-renderer"></yt-formatted-string>\n<yt-formatted-string id="undo" text="[[data.undoText]]" class="style-scope ytd-notification-text-renderer"></yt-formatted-string>\n');a.content.insertBefore(_.w().content.cloneNode(!0),
a.content.firstChild);return w$J=a},{mode:1});var mxi;var Sn=function(){var a=_.G.apply(this,arguments)||this;a.mouseOverDelayJobId=0;a.fadeInImageDelayJobId=0;a.startTimeMs=-1;a.loadingStartTimeMs=-1;a.loadingEndTimeMs=-1;a.hasVideoPreview=!1;return a};
_.b(Sn,_.G);_.Z=Sn.prototype;_.Z.attached=function(){this.data&&(this.isAttachedAndDataSet=!0,this.showThumbnail())};
_.Z.detached=function(){this.isAttachedAndDataSet=!1;this.hideThumbnail();this.data=void 0;this.csn=null};
_.Z.dataChanged=function(){this.data&&this.isAttached&&!this.isAttachedAndDataSet&&(this.isAttachedAndDataSet=!0,this.showThumbnail())};
_.Z.showThumbnail=function(){var a=this;this.csn=_.TX();_.Tb("fmth");_.GW.cancelJob(this.mouseOverDelayJobId);this.data&&this.data.movingThumbnailDetails&&this.data.movingThumbnailDetails.thumbnails?this.mouseOverDelayJobId=_.NK(_.GW,function(){a.loadingStartTimeMs=(0,_.jp)();var z=_.PK(a.hostElement).querySelector("#thumbnail");z.complete?a.displayMouseOverImage():z.addEventListener("load",_.BK(a,a.displayMouseOverImage))},150):_.CM(_.PK(this.hostElement).querySelector("#play"),"show",!0)};
_.Z.hideThumbnail=function(){this.data&&this.data.enableHoveredLogging&&this.logHoverEvent();this.removeVideoPreview()};
_.Z.onTap=function(){this.removeVideoPreview()};
_.Z.logHoverEvent=function(){if(this.csn&&this.trackingParams&&!(this.loadingStartTimeMs<=0)){var a=this.videoId,z=this.csn,I=this.loadingEndTimeMs>0?this.loadingEndTimeMs-this.loadingStartTimeMs:0,J=this.startTimeMs,r=this.hasVideoPreview,P=_.VX(this.trackingParams),N={isMovingThumbnail:r};r&&J>0&&(I>0&&(N.movingThumbnailLoadingDurationMs=Math.round(I)),N.durationHoveredMs=Math.round((0,_.jp)()-J));a&&(N.videoId=a);_.kA(z,P,"INTERACTION_LOGGING_GESTURE_TYPE_HOVER",{thumbnailHoveredData:N});this.startTimeMs=
this.loadingEndTimeMs=this.loadingStartTimeMs=-1;this.hasVideoPreview=!1}};
_.Z.removeVideoPreview=function(){_.GW.cancelJob(this.mouseOverDelayJobId);_.GW.cancelJob(this.fadeInImageDelayJobId);var a=_.PK(this.hostElement).querySelector("#thumbnail");_.CM(a,"fade-in",!1);a.removeEventListener("load",_.BK(this,this.displayMouseOverImage));a=_.PK(this.hostElement).querySelector("#play");_.CM(a,"fade-in",!1);_.CM(a,"show",!1)};
_.Z.displayMouseOverImage=function(){var a=_.PK(this.hostElement).querySelector("#thumbnail"),z=_.PK(this.hostElement).querySelector("#play");this.isImageAvailable(a)?(this.hasVideoPreview=!0,this.loadingEndTimeMs=(0,_.jp)(),this.startTimeMs=(0,_.jp)(),this.fadeInImageDelayJobId=_.NK(_.GW,function(){_.CM(a,"fade-in",!0)},50)):_.CM(z,"fade-in",!0)};
_.Z.computeThumbnail=function(a,z){var I;a&&a.movingThumbnailDetails&&a.movingThumbnailDetails.thumbnails&&z?I=_.r4(a.movingThumbnailDetails.thumbnails,this.hostElement.clientWidth):I=z?"data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7":"";if(I)return _.XG(I)};
_.Z.isImageAvailable=function(a){return!(!a.src||a.src==="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7"||a.naturalWidth===120)};
Sn.prototype.onTap=Sn.prototype.onTap;Sn.prototype.dataChanged=Sn.prototype.dataChanged;_.L([_.Q(_.k.YtRendererBehavior),_.p("design:type",Object)],Sn.prototype,"ytRendererBehavior",void 0);_.L([_.Q(_.Ms.YtComponentBehavior),_.p("design:type",Object)],Sn.prototype,"ytComponentBehavior",void 0);_.L([_.x(),_.p("design:type",Object)],Sn.prototype,"data",void 0);_.L([_.x(),_.p("design:type",Object)],Sn.prototype,"csn",void 0);_.L([_.x(),_.p("design:type",Object)],Sn.prototype,"trackingParams",void 0);
_.L([_.x(),_.p("design:type",String)],Sn.prototype,"videoId",void 0);_.L([_.x(),_.p("design:type",Boolean)],Sn.prototype,"isAttachedAndDataSet",void 0);_.L([_.Fe("data"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],Sn.prototype,"dataChanged",null);_.L([_.gz("click"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],Sn.prototype,"onTap",null);_.L([_.U({disableElementRegistration:!0,is:"ytd-moving-thumbnail-renderer"})],Sn);
_.D(Sn,"ytd-moving-thumbnail-renderer",function(){if(mxi!==void 0)return mxi;var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-moving-thumbnail-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<img id="thumbnail" alt="" src$="[[computeThumbnail(data, isAttachedAndDataSet)]]" class="style-scope ytd-moving-thumbnail-renderer">\n<yt-icon id="play" icon="play_all" class="style-scope ytd-moving-thumbnail-renderer"></yt-icon>\n');
a.content.insertBefore(_.w().content.cloneNode(!0),a.content.firstChild);return mxi=a},{mode:1});var yai;_.Zy=function(a){this.hostElement=a;this.eventSink=null;this.eventList=[]};
_.Zy.prototype.shouldForward=function(){var a,z;return(z=(a=this.eventSink)==null?void 0:a.isConnected)!=null?z:document.body.contains(this.eventSink)};
_.Zy.prototype.start=function(a,z){this.eventSink&&this.stop();for(var I=0;I<a.length;I++)this.hostElement.addEventListener(a[I],_.BK(this,this.forwardEvent));var J;this.eventSink=(J=z.hostElement)!=null?J:z;this.eventList=a};
_.Zy.prototype.stop=function(){for(var a=0;a<this.eventList.length;a++)this.hostElement.removeEventListener(this.eventList[a],_.BK(this,this.forwardEvent));this.eventSink=null;this.eventList=[]};
_.Zy.prototype.forwardEvent=function(a,z){this.shouldForward()&&(a.stopPropagation(),this.eventSink instanceof Element?_.PA(this.eventSink,a.type,z):_.Xd(new _.Fn("eventSink is not an element")))};_.iO={YtEventForwardingBehavior:{created:function(){this.forwarder_=new _.Zy(this.hostElement)},
shouldForward:function(){return this.forwarder_.shouldForward()},
startForwardingEvents:function(a,z){this.forwarder_.start(a,z)},
stopForwardingEvents:function(){this.forwarder_.stop()}}};var xe=function(){return _.G.apply(this,arguments)||this};
_.b(xe,_.G);_.Z=xe.prototype;_.Z.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=_.Xw("HTML_DIR")==="rtl"?"right":"left"};
_.Z.dataChanged=function(){this.popupOpen=!1};
_.Z.computeAriaLabel=function(a){return _.H(a,FgJ).label};
_.Z.onTap=function(a){a.stopPropagation();a.preventDefault();this.data.command&&_.ab().resolve(_.j6).resolveCommand(this.data.command,{form:{element:this.hostElement}})};
_.Z.onPopupOpened=function(){this.popupOpen=!0;this.eventForwardingBehavior.startForwardingEvents(["yt-navigate"],this.eventSink)};
_.Z.onPopupClosed=function(){this.popupOpen=!1;this.eventForwardingBehavior.stopForwardingEvents()};
xe.prototype.onPopupClosed=xe.prototype.onPopupClosed;xe.prototype.onPopupOpened=xe.prototype.onPopupOpened;xe.prototype.onTap=xe.prototype.onTap;xe.prototype.dataChanged=xe.prototype.dataChanged;_.L([_.Q(_.iO.YtEventForwardingBehavior),_.p("design:type",Object)],xe.prototype,"eventForwardingBehavior",void 0);_.L([_.Q(_.WY),_.p("design:type",Object)],xe.prototype,"ironButtonState",void 0);_.L([_.Q(_.Ms.YtComponentBehavior),_.p("design:type",Object)],xe.prototype,"componentBehavior",void 0);
_.L([_.x(),_.p("design:type",Object)],xe.prototype,"data",void 0);_.L([_.x({reflectToAttribute:!0,value:-1}),_.p("design:type",Number)],xe.prototype,"tabindex",void 0);_.L([_.x({reflectToAttribute:!0,computed:"computeAriaLabel(data.accessibility)"}),_.p("design:type",Object)],xe.prototype,"ariaLabel",void 0);_.L([_.x({value:!1}),_.p("design:type",Boolean)],xe.prototype,"disableTooltips",void 0);_.L([_.x({reflectToAttribute:!0}),_.p("design:type",Boolean)],xe.prototype,"popupOpen",void 0);
_.L([_.x(),_.p("design:type",Element)],xe.prototype,"eventSink",void 0);_.L([_.A3("#tooltip"),_.p("design:type",Object)],xe.prototype,"tooltip",void 0);_.L([_.O8("data"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],xe.prototype,"dataChanged",null);_.L([_.gz("tap"),_.p("design:type",Function),_.p("design:paramtypes",[CustomEvent]),_.p("design:returntype")],xe.prototype,"onTap",null);
_.L([_.gz("yt-popup-opened"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],xe.prototype,"onPopupOpened",null);_.L([_.gz("yt-popup-closed"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],xe.prototype,"onPopupClosed",null);_.L([_.U({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-button-renderer"})],xe);
_.D(xe,"ytd-thumbnail-overlay-button-renderer",function(){if(yai!==void 0)return yai;var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-thumbnail-overlay-button-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-icon icon="[[data.icon.iconType]]" 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>');
a.content.insertBefore(_.w().content.cloneNode(!0),a.content.firstChild);return yai=a},{mode:1});var kPf;var vI=function(){return _.G.apply(this,arguments)||this};
_.b(vI,_.G);_.L([_.Q(_.k.YtRendererBehavior),_.p("design:type",Object)],vI.prototype,"ytRendererBehavior",void 0);_.L([_.x(),_.p("design:type",Object)],vI.prototype,"data",void 0);_.L([_.x({reflectToAttribute:!0}),_.p("design:type",Boolean)],vI.prototype,"disableAnimation",void 0);_.L([_.x({reflectToAttribute:!0}),_.p("design:type",Boolean)],vI.prototype,"rounded",void 0);_.L([_.x({reflectToAttribute:!0}),_.p("design:type",Boolean)],vI.prototype,"transparentBackground",void 0);
_.L([_.x({reflectToAttribute:!0}),_.p("design:type",Boolean)],vI.prototype,"noPadding",void 0);_.L([_.U({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-endorsement-renderer"})],vI);
_.D(vI,"ytd-thumbnail-overlay-endorsement-renderer",function(){if(kPf!==void 0)return kPf;var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-thumbnail-overlay-endorsement-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="inner-background" class="style-scope ytd-thumbnail-overlay-endorsement-renderer">\n  <yt-formatted-string text="[[data.text]]" class="style-scope ytd-thumbnail-overlay-endorsement-renderer"></yt-formatted-string>\n  <span id="bottom-right-corner" class="style-scope ytd-thumbnail-overlay-endorsement-renderer"></span>\n</div>\n');a.content.insertBefore(_.w().content.cloneNode(!0),
a.content.firstChild);return kPf=a},{mode:1});var MDi;var GD=function(){return _.G.apply(this,arguments)||this};
_.b(GD,_.G);GD.prototype.computeIconPosition=function(a){return this.get("iconPosition",a)||null};
GD.prototype.computeIconStyle=function(a){return this.get("iconStyle",a)||null};
GD.prototype.computeIsIconStyleFilled=function(a){if(!a)return!1;var z;return a.iconStyle==="THUMBNAIL_OVERLAY_ICON_RENDERER_ICON_STYLE_FILLED"||((z=a.icon)==null?void 0:z.iconType)==="ERROR_BLACK"};
_.L([_.x(),_.p("design:type",Object)],GD.prototype,"data",void 0);_.L([_.x({computed:"computeIconPosition(data)",reflectToAttribute:!0}),_.p("design:type",Object)],GD.prototype,"iconPosition",void 0);_.L([_.x({computed:"computeIconStyle(data)",reflectToAttribute:!0}),_.p("design:type",Object)],GD.prototype,"iconStyle",void 0);_.L([_.x({computed:"computeIsIconStyleFilled(data)",reflectToAttribute:!0}),_.p("design:type",Boolean)],GD.prototype,"iconStyleFilled",void 0);
_.L([_.U({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-icon-renderer"})],GD);
_.D(GD,"ytd-thumbnail-overlay-icon-renderer",function(){if(MDi!==void 0)return MDi;var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-thumbnail-overlay-icon-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-icon default-to-filled="[[iconStyleFilled]]" icon="[[data.icon.iconType]]" class="style-scope ytd-thumbnail-overlay-icon-renderer"></yt-icon>\n');a.content.insertBefore(_.w().content.cloneNode(!0),
a.content.firstChild);return MDi=a},{mode:1});var cal;var $e=function(){return _.G.apply(this,arguments)||this};
_.b($e,_.G);_.L([_.Q(_.k.YtRendererBehavior),_.p("design:type",Object)],$e.prototype,"ytRendererBehavior",void 0);_.L([_.x(),_.p("design:type",Object)],$e.prototype,"data",void 0);_.L([_.U({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-inline-unplayable-renderer"})],$e);
_.D($e,"ytd-thumbnail-overlay-inline-unplayable-renderer",function(){if(cal!==void 0)return cal;var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-thumbnail-overlay-inline-unplayable-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-icon id="icon" icon="[[data.icon.iconType]]" class="style-scope ytd-thumbnail-overlay-inline-unplayable-renderer"></yt-icon>\n');a.content.insertBefore(_.w().content.cloneNode(!0),
a.content.firstChild);return cal=a},{mode:1});var YlO;var XD=function(){var a=_.G.apply(this,arguments)||this;a.isPreviewLoading=!1;return a};
_.b(XD,_.G);_.L([_.Q(_.k.YtRendererBehavior),_.p("design:type",Object)],XD.prototype,"ytRendererBehavior",void 0);_.L([_.x(),_.p("design:type",Object)],XD.prototype,"data",void 0);_.L([_.x({reflectToAttribute:!0}),_.p("design:type",Object)],XD.prototype,"isPreviewLoading",void 0);_.L([_.U({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-loading-preview-renderer"})],XD);
_.D(XD,"ytd-thumbnail-overlay-loading-preview-renderer",function(){if(YlO!==void 0)return YlO;var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-thumbnail-overlay-loading-preview-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<span class="style-scope ytd-thumbnail-overlay-loading-preview-renderer">[[getSimpleString(data.text)]]</span>');a.content.insertBefore(_.w().content.cloneNode(!0),
a.content.firstChild);return YlO=a},{mode:1});var ql1;var TD=function(){return _.G.apply(this,arguments)||this};
_.b(TD,_.G);_.L([_.Q(_.k.YtRendererBehavior),_.p("design:type",Object)],TD.prototype,"ytRendererBehavior",void 0);_.L([_.x(),_.p("design:type",Object)],TD.prototype,"data",void 0);_.L([_.U({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-pinking-renderer"})],TD);
_.D(TD,"ytd-thumbnail-overlay-pinking-renderer",function(){if(ql1!==void 0)return ql1;var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-thumbnail-overlay-pinking-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<svg class="pinking-left style-scope ytd-thumbnail-overlay-pinking-renderer" shape-rendering="crispEdges">\n  <defs class="style-scope ytd-thumbnail-overlay-pinking-renderer">\n    <pattern id="left-pattern" width="5" height="8" patternUnits="userSpaceOnUse" class="style-scope ytd-thumbnail-overlay-pinking-renderer">\n      <polygon class="pinking style-scope ytd-thumbnail-overlay-pinking-renderer" points="0,0 1,0 5,4 1,8 0,8"></polygon>\n    </pattern>\n  </defs>\n  <rect fill="url(#left-pattern)" width="5" height="100%" class="style-scope ytd-thumbnail-overlay-pinking-renderer"></rect>\n</svg>\n<svg class="pinking-right style-scope ytd-thumbnail-overlay-pinking-renderer" shape-rendering="crispEdges">\n  <defs class="style-scope ytd-thumbnail-overlay-pinking-renderer">\n    <pattern id="right-pattern" width="5" height="8" patternUnits="userSpaceOnUse" class="style-scope ytd-thumbnail-overlay-pinking-renderer">\n      <polygon class="pinking style-scope ytd-thumbnail-overlay-pinking-renderer" points="4,0 0,4 4,8 5,8 5,0"></polygon>\n    </pattern>\n  </defs>\n  <rect fill="url(#right-pattern)" width="5" height="100%" class="style-scope ytd-thumbnail-overlay-pinking-renderer"></rect>\n</svg>\n');a.content.insertBefore(_.w().content.cloneNode(!0),
a.content.firstChild);return ql1=a},{mode:1});var e_O;var dD=function(){var a=_.G.apply(this,arguments)||this;a.disableTooltips=!1;a.isLoading=!1;a.useExpandableTooltip=!1;a.toggled=!1;a.hovered=!1;a.mouseoverDelayJobId=0;a.toggleDelayJobId=0;a.expandAnimationDelayJobId=0;return a};
_.b(dD,_.G);_.Z=dD.prototype;_.Z.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");_.PK(this.hostElement).querySelector("#tooltip").position=_.Xw("HTML_DIR")==="rtl"?"right":"left"};
_.Z.detached=function(){this.useExpandableTooltip&&(this.isLoading=this.hovered=!1,this.data&&!this.data.toggledServiceEndpoint&&this.set("data.isToggled",!1),this.mouseoverDelayJobId&&_.GW.cancelJob(this.mouseoverDelayJobId),this.toggleDelayJobId&&_.GW.cancelJob(this.toggleDelayJobId),this.expandAnimationDelayJobId&&_.GW.cancelJob(this.expandAnimationDelayJobId),this.useExpandableTooltip=!1)};
_.Z.dataChanged=function(){this.popupOpen=this.isLoading=!1;this.mouseoverDelayJobId&&_.GW.cancelJob(this.mouseoverDelayJobId);this.toggleDelayJobId&&_.GW.cancelJob(this.toggleDelayJobId);this.expandAnimationDelayJobId&&_.GW.cancelJob(this.expandAnimationDelayJobId)};
_.Z.computeIcon=function(a,z,I){return(a=I?z:a)&&a.iconType?_.Bl(a.iconType):void 0};
_.Z.computeAriaLabel=function(a,z,I){return _.H(I?z:a,FgJ).label};
_.Z.computeTooltip=function(a,z,I){return I?z:a};
_.Z.computeToggled=function(){return!(!this.data||!this.data.isToggled)};
_.Z.computeIconOnHover=function(a,z){if((a==null?0:a.iconType)&&!z)return _.Bl(a.iconType)};
_.Z.onTap=function(a){var z=this;a.stopPropagation();a.preventDefault();if(!this.isLoading||this.useExpandableTooltip)if(a=this.data.isToggled?this.data.toggledServiceEndpoint:this.data.untoggledServiceEndpoint)this.isLoading=!0,this.set("data.isToggled",!this.data.isToggled),this.ytComponentBehavior.resolveCommand(a),this.useExpandableTooltip&&(this.toggleDelayJobId=_.NK(_.GW,function(){z.hovered=!1;z.data&&!z.data.toggledServiceEndpoint&&(z.expandAnimationDelayJobId=_.NK(_.GW,function(){z.set("data.isToggled",
!1)},200))},2E3))};
_.Z.onMouseenter=function(){var a=this;this.mouseoverDelayJobId=_.NK(_.GW,function(){a.hovered=!0},300)};
_.Z.onMouseleave=function(){_.GW.cancelJob(this.mouseoverDelayJobId);this.toggled||(this.hovered=!1)};
_.Z.onPopupOpened=function(){this.popupOpen=!0;this.ytEventForwardingBehavior.startForwardingEvents(["yt-navigate"],this.eventSink)};
_.Z.onPopupClosed=function(){this.popupOpen=!1;this.ytEventForwardingBehavior.stopForwardingEvents()};
_.Z.onServiceRequestCompleted=function(a,z){this.isLoading=!1;if(!this.useExpandableTooltip||this.data.toggledServiceEndpoint&&this.data.untoggledServiceEndpoint)this.serviceRequestWasSuccessful(z)||this.set("data.isToggled",!this.data.isToggled)};
_.Z.serviceRequestWasSuccessful=function(a){return _.H(this.data.isToggled?this.data.toggledServiceEndpoint:this.data.untoggledServiceEndpoint,_.D5)?a.data.status==="STATUS_SUCCEEDED":!0};
dD.prototype.onServiceRequestCompleted=dD.prototype.onServiceRequestCompleted;dD.prototype.onPopupClosed=dD.prototype.onPopupClosed;dD.prototype.onPopupOpened=dD.prototype.onPopupOpened;dD.prototype.onMouseleave=dD.prototype.onMouseleave;dD.prototype.dataChanged=dD.prototype.dataChanged;_.L([_.Q(_.WY),_.p("design:type",Object)],dD.prototype,"ironButtonState",void 0);_.L([_.Q(_.Ms.YtComponentBehavior),_.p("design:type",Object)],dD.prototype,"ytComponentBehavior",void 0);
_.L([_.Q(_.iO.YtEventForwardingBehavior),_.p("design:type",Object)],dD.prototype,"ytEventForwardingBehavior",void 0);_.L([_.x(),_.p("design:type",Object)],dD.prototype,"data",void 0);_.L([_.x({reflectToAttribute:!0,computed:"computeAriaLabel(data.untoggledAccessibility, data.toggledAccessibility, data.isToggled)"}),_.p("design:type",Object)],dD.prototype,"ariaLabel",void 0);_.L([_.x(),_.p("design:type",Object)],dD.prototype,"disableTooltips",void 0);
_.L([_.x({reflectToAttribute:!0}),_.p("design:type",Boolean)],dD.prototype,"popupOpen",void 0);_.L([_.x(),_.p("design:type",Object)],dD.prototype,"isLoading",void 0);_.L([_.x(),_.p("design:type",Element)],dD.prototype,"eventSink",void 0);_.L([_.x({reflectToAttribute:!0}),_.p("design:type",Object)],dD.prototype,"useExpandableTooltip",void 0);_.L([_.x({reflectToAttribute:!0,computed:"computeToggled(data.isToggled)"}),_.p("design:type",Object)],dD.prototype,"toggled",void 0);
_.L([_.x({reflectToAttribute:!0}),_.p("design:type",Object)],dD.prototype,"hovered",void 0);_.L([_.x({reflectToAttribute:!0,computed:"computeIconOnHover(data.untoggledIconOnHover, isToggled)"}),_.p("design:type",Object)],dD.prototype,"iconOnHover",void 0);_.L([_.Fe("data"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],dD.prototype,"dataChanged",null);
_.L([_.gz("mouseleave"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],dD.prototype,"onMouseleave",null);_.L([_.gz("yt-popup-opened"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],dD.prototype,"onPopupOpened",null);_.L([_.gz("yt-popup-closed"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],dD.prototype,"onPopupClosed",null);
_.L([_.gz("yt-service-request-completed"),_.p("design:type",Function),_.p("design:paramtypes",[CustomEvent,_.Yq]),_.p("design:returntype")],dD.prototype,"onServiceRequestCompleted",null);_.L([_.U({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-toggle-button-renderer"})],dD);
_.D(dD,"ytd-thumbnail-overlay-toggle-button-renderer",function(){if(e_O!==void 0)return e_O;var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-thumbnail-overlay-toggle-button-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="label-container" class="style-scope ytd-thumbnail-overlay-toggle-button-renderer"><div id="label" on-click="onTap" hidden="[[disableTooltips]]" class="style-scope ytd-thumbnail-overlay-toggle-button-renderer">\n    [[computeTooltip(data.untoggledTooltip, data.toggledTooltip, data.isToggled)]]\n  </div></div><yt-icon id="icon-on-hover-element" icon="[[iconOnHover]]" class="style-scope ytd-thumbnail-overlay-toggle-button-renderer"></yt-icon><yt-icon id="icon" icon="[[computeIcon(data.untoggledIcon, data.toggledIcon, data.isToggled)]]" on-click="onTap" on-mouseenter="onMouseenter" class="style-scope ytd-thumbnail-overlay-toggle-button-renderer"></yt-icon><tp-yt-paper-tooltip id="tooltip" animation-delay="0" hidden="[[disableTooltips]]" offset="0" class="style-scope ytd-thumbnail-overlay-toggle-button-renderer">\n  [[computeTooltip(data.untoggledTooltip, data.toggledTooltip, data.isToggled)]]\n</tp-yt-paper-tooltip>');a.content.insertBefore(_.w().content.cloneNode(!0),
a.content.firstChild);return e_O=a},{mode:_.Np("kevlar_poly_si_batch_j053")?1:2});var a7l;var jaj=_.ec(function(a){var z=a.data;var I=a.thumbnailSize;var J=function(){return z().enableSegmentView};
return _.B("yt-thumbnail-overlay-progress-bar-view-model",{class:_.B8("ytThumbnailOverlayProgressBarHost",function(){return Dxd(I==null?void 0:I())})},_.B(_.g,{cond:J,
then:function(){return _.B("div",{class:"ytThumbnailOverlayProgressBarHostProgressBar"},_.B("div",{class:_.$c("ytThumbnailOverlayProgressBarHostProgressBarLeftSegment","ytThumbnailOverlayProgressBarHostProgressBarSegment","ytThumbnailOverlayProgressBarHostProgressBarInactiveSegment"),style:function(){return"width:"+z().startPercent+"%"}}),_.B("div",{class:_.$c("ytThumbnailOverlayProgressBarHostProgressBarContainer"),
style:function(){return"width:"+z().segmentDurationPercent+"%"}},_.B("div",{class:_.$c("ytThumbnailOverlayProgressBarHostProgressBarActiveSegment","ytThumbnailOverlayProgressBarHostProgressBarSegment")}),_.B("div",{class:"ytThumbnailOverlayProgressBarHostLabel"},_.B("div",null," ",function(){return z().segmentLabel})),_.B("div",{class:"ytThumbnailOverlayProgressBarHostLabelTriangle"})),_.B("div",{class:_.$c("ytThumbnailOverlayProgressBarHostProgressBarRightSegment","ytThumbnailOverlayProgressBarHostProgressBarSegment",
"ytThumbnailOverlayProgressBarHostProgressBarInactiveSegment")}))}}),_.B(_.g,{cond:function(){return!J()&&z().startPercent},
then:function(){var r={};return _.B("div",{class:_.$c("ytThumbnailOverlayProgressBarHostWatchedProgressBar",(r.ytThumbnailOverlayProgressBarHostUseLegacyBar=!_.K("web_enable_modern_progress_bar_overlay"),r))},_.B("div",{class:"ytThumbnailOverlayProgressBarHostWatchedProgressBarSegment",style:function(){return"width:"+z().startPercent+"%"}}))}}))},"V");
jaj.idomCompat=!0;var z$X=_.ec(function(a){var z=_.gi(),I=_.o5(function(r){var P,N,u;a:{var E=(P=a.data())==null?void 0:P.animationActivationTargetId;P=((N=a.data())==null?void 0:N.animationActivationEntityKey)||"";N=(u=a.data())==null?void 0:u.animationActivationEntitySelectorType;if(P&&E)switch(N){case "THUMBNAIL_BADGE_ANIMATION_ENTITY_SELECTOR_TYPE_PLAYER_STATE":r=_.Bd(r.entities,"playerStateEntity",P);u=_.ab().resolve(_.eL(_.UJ));E=!!(r&&r.videoId===E&&(u==null?0:u.isMiniplayerActive()));E={activated:E,playAnimation:E&&
r.playerState==="PLAYER_STATE_PLAYING"};break a}E=void 0}return E});
_.h2(function(){var r;if((r=I())==null?0:r.activated){var P;if((P=I())==null?0:P.playAnimation){var N;(N=z.lottieEl)==null||N.goToAndPlay(0)}else{var u;(u=z.lottieEl)==null||u.goToAndStop(0)}}},"MDTl2e");
var J=function(){var r,P=!((r=I())==null||!r.activated);if(a.data()){r=a.data();var N=void 0;r.icon&&(N=_.AFp(r.icon),N=hfE(N));var u=void 0,E;if((E=r.backgroundColor)==null?0:E.lightTheme){var O;u={backgroundColor:LH((O=r.backgroundColor)==null?void 0:O.lightTheme,"0.8")}}if(r.text||N||P){if(P&&r.lottieData&&z){O=r.lottieData;var f,A,n;E={animationConfig:{name:O.url,path:O.url,autoplay:(f=O.settings)==null?void 0:f.autoplay,loop:(n=(A=O.settings)==null?void 0:A.loop)!=null?n:!0},animationRef:z}}else E=
void 0;if(P)f=17;else b:switch(r.badgeStyle){case "THUMBNAIL_OVERLAY_BADGE_STYLE_LIVE":f=18;break b;case "THUMBNAIL_OVERLAY_BADGE_STYLE_SPECIAL":f=19;break b;default:f=17}P={type:f,text:P&&r.animatedText?r.animatedText:r.text,icon:N,customColors:u,animation:E}}else P=void 0}else P=void 0;return P};
return _.B("yt-thumbnail-badge-view-model",{class:_.B8("yt-thumbnail-badge-view-model-wiz",a.class)},_.B(_.g,{cond:J,then:function(){return _.B(_.pd,{data:function(){return J()}})}}))},"W");var I7G=_.ec(function(a){var z={},I={};return _.B("yt-thumbnail-bottom-overlay-view-model",{class:_.B8("ytThumbnailBottomOverlayViewModelHost",(z.ytThumbnailBottomOverlayViewModelHostBackground=function(){return a.data().enableGradientBackground},z))},_.B(_.V0,{data:function(){return a.data().progressBar}},{thumbnailOverlayProgressBarViewModel:function(J){return _.B(jaj,{data:J.data,
thumbnailSize:a.thumbnailSize})}}),_.B("div",{class:_.B8("ytThumbnailBottomOverlayViewModelBadgeContainer",function(){var J;
return R_I((J=a.thumbnailSize)==null?void 0:J.call(a))},(I.ytThumbnailBottomOverlayViewModelBadgeContainerClip=function(){var J;
return(J=a.isClip)==null?void 0:J.call(a)},I.ytThumbnailBottomOverlayViewModelBadgeContainerSmallLegacy=function(){var J;
return!_.K("web_enable_modern_progress_bar_overlay")&&((J=a.thumbnailSize)==null?void 0:J.call(a))==="small"},I))},_.B(_.V0,{data:function(){return a.data().badge}},{thumbnailBadgeViewModel:function(J){return _.B(z$X,{data:J.data,
class:"ytThumbnailBottomOverlayViewModelBadge"})}}),_.B(_.V0,{data:function(){return a.data().badges}},{thumbnailBadgeViewModel:function(J){return _.B(z$X,{data:J.data,
class:"ytThumbnailBottomOverlayViewModelBadge"})}})))},"X");
I7G.idomCompat=!0;_.Jf(I7G,"yt-thumbnail-bottom-overlay-view-model",{props:{data:_.I5,thumbnailSize:_.I5,isClip:_.I5}});var caG={calledOnce:!1,state:"visible"},Ylm={calledOnce:!1,state:"hidden"};var WI=_.ec(function(a){var z=a.data;var I=a.className;a=a.alwaysShow;var J=_.ll$(),r={};return _.B("thumbnail-hover-overlay-view-model",{el:_.a5(_.UN(function(){return z().rendererContext})),
class:_.B8("ytThumbnailHoverOverlayViewModelHost",I,(r.ytThumbnailHoverOverlayViewModelHostForceHover=a,r)),"aria-label":function(){var P;return(P=_.H(z().rendererContext,_.Vw))==null?void 0:P.label},
role:function(){return _.Wn(z().rendererContext)!==void 0?"button":void 0},
tabindex:function(){return _.Wn(z().rendererContext)!==void 0?0:void 0},
"on:keypress":J},_.B("div",{class:_.B8("ytThumbnailHoverOverlayViewModelScrim",function(){a:switch(z().style){case "THUMBNAIL_HOVER_OVERLAY_STYLE_BUTTON":var P="ytThumbnailHoverOverlayViewModelStyleButton";break a;default:P="ytThumbnailHoverOverlayViewModelStyleCover"}return P})},_.B(_.g,{cond:function(){return z().icon},
then:function(P){return _.B(_.qp,{data:P,alt:"",className:"ytThumbnailHoverOverlayViewModelIcon"})}}),_.B(_.g,{cond:function(){return z().text},
then:function(P){return _.B(_.xs,{text:P,className:"ytThumbnailHoverOverlayViewModelText"})}})))},"Y");
WI.idomCompat=!0;var JUv=_.ec(function(a){var z=a.data;return _.B(_.V0,{data:function(){return z==null?void 0:z().overlays}},{thumbnailHoverOverlayViewModel:WI})},"Z");
JUv.idomCompat=!0;var rUw={};var PVO=_.ec(function(a){var z=a.data;var I=a.image;var J=a.state;var r=a.iconType;var P=a.overlays;var N=a.isOverlay;var u=_.ca("div");a=_.C(_.CW(!0,void 0,"sUzEZ"));var E=a.next().value,O=a.next().value,f=function(){return!!z().onTap},A=_.Yi(r,"LIVE");
_.h2(function(){var F=z();requestAnimationFrame(function(){if(u.value===null)var h=!0;else{var v=u.value;h=F.badgeText;var d=a7G(F.size);h in rUw?v=rUw[h]:(v=v.clientWidth,rUw[h]=v);(h=v>d)?u.value.style.display="none":u.value.style.visibility="visible"}O(h)})},"SpVcNb");
var n=function(){var F={};return F["yt-spec-avatar-shape__image"]=!0,F["yt-spec-avatar-shape__image--ads-app"]=z().type===1,F};
return _.B("yt-avatar-shape",null,_.B("div",{el:_.a5(z$d(f,{keydown:function(F){if(F.key==="Enter"){var h;(h=F.currentTarget)==null||h.click()}},
click:function(F){var h,v;return void((v=(h=z()).onTap)==null?void 0:v.call(h,F))}})),
class:function(){var F={"yt-spec-avatar-shape":!0,"yt-spec-avatar-shape__button":!0},h=z();F=(F[h.clusterLayoutConfig?rUG(h.clusterLayoutConfig):PVm(h.size)]=!0,F["yt-spec-avatar-shape__button--tappable"]=f(),F);(h=z().avatarButtonCustomClassName)&&(F[h]=!0);return _.$c(F)},
"aria-label":function(){return f()?z().accessibilityText:""},
role:function(){return f()?"button":void 0},
tabindex:function(){return f()?0:void 0}},_.B("div",{class:function(){var F,h=z(),v=J==null?void 0:J(),d=N==null?void 0:N(),W=!((F=h.decorations)==null||!F.includes(2)||h.size!=="medium"&&h.size!=="large"),l=h.size==="tiny"||h.size==="extra-small",q,m,M,y,e={};
F=(e["yt-spec-avatar-shape--live-ring"]=!!(((q=h.decorations)==null?0:q.includes(0))&&CVp(h.size)),e["yt-spec-avatar-shape--stories-watched"]=W&&!(v==null||!v.storiesWatched),e["yt-spec-avatar-shape--stories-unwatched"]=W&&!(v==null?0:v.storiesWatched),e["yt-spec-avatar-shape--background-border"]=N_0(h.decorations)&&!l,e["yt-spec-avatar-shape--background-border-thin"]=N_0(h.decorations)&&l,e["yt-spec-avatar-shape__on-select-border"]=!((m=h.decorations)==null||!m.includes(4)),e["yt-spec-avatar-shape__white-border"]=
!((M=h.decorations)==null||!M.includes(5)),e["yt-spec-avatar-shape__white-border--white-border-thin"]=!!(((y=h.decorations)==null?0:y.includes(5))&&l),e["yt-spec-avatar-shape--is-overlay"]=!!d,e);return _.$c(F)},
style:function(){a:{var F=z().clusterLayoutConfig;if(F){b:{var h=F.numAvatarsInCluster;var v=F.avatarIndex;if(v!==h-1){switch(F.clusterSize){case "small":F="32";break;case "medium":F="36";break;case "40":F="40";break;default:h=void 0;break b}h="https://www.gstatic.com/youtube/img/creator/video_collaborations/cluster_size_"+F+"x"+F+"_avatars_"+h+"_index_"+v+".svg"}else h=void 0}if(h){h=_.sW({"-webkit-mask-image":"url("+h+")","mask-image":"url("+h+")","--webkit-mask-size":"100%","--mask-size":"100%",
"-webkit-mask-repeat":"no-repeat","mask-repeat":"no-repeat"})();break a}}h=void 0}return h}},_.B("div",{class:function(){var F={};
var h=z();F=(F[h.clusterLayoutConfig?I77(h.clusterLayoutConfig):JUI(h.size)]=!0,F["yt-spec-avatar-shape--no-margin"]=N_0(z().decorations),F);return _.$c(F)}},_.B(_.qp,{data:I,
alt:function(){return!f()&&z().accessibilityText?z().accessibilityText:""},
targetWidth:function(){return Z9d(z().size)},
targetHeight:function(){return Z9d(z().size)},
className:function(){return _.$c(n())}}),_.B(_.g,{cond:function(){var F;
return((F=z().decorations)==null?void 0:F.includes(0))&&CVp(z().size)},
then:function(){return _.B("div",{class:function(){var F={};F=(F["yt-spec-avatar-shape__live-badge"]=!0,F["yt-spec-avatar-shape__live-badge--badge-small"]=z().size==="small",F["yt-spec-avatar-shape__live-badge--badge-medium"]=z().size==="medium"||z().size==="48",F["yt-spec-avatar-shape__live-badge--badge-large"]=z().size==="large",F["yt-spec-avatar-shape__live-badge--badge-extra-large"]=z().size==="extra-large"||z().size==="extra-extra-large"||z().size==="giant",F);return _.$c(F)}},_.B(_.g,{cond:function(){return z().badgeText},
then:function(F){return _.B("div",{class:"yt-spec-avatar-shape__badge-text",el:u},F)}}),_.B(_.g,{cond:E,
then:function(){return _.B("div",{class:"yt-spec-avatar-shape__badge-icon"},_.B(_.nS,{icon:A,size:function(){a:switch(z().size){case "extra-large":var F=16;break a;default:F=13}return F}}))}}))}}),_.B(_.g,{cond:function(){var F,h;
return((F=z().decorations)==null?void 0:F.includes(1))||((h=z().decorations)==null?void 0:h.includes(0))&&!CVp(z().size)},
then:function(){return _.B("div",{class:function(){var F=z(),h,v,d={};var W=(d["yt-spec-avatar-shape__live-dot"]=!((h=F.decorations)==null||!h.includes(0)||CVp(F.size)),d["yt-spec-avatar-shape__new-content"]=!((v=F.decorations)==null||!v.includes(1)),d);return _.$c(W)}})}}),_.B(_.g,{cond:function(){return!!P},
then:function(){return _.B("div",{class:function(){var F={};F=Object.assign((F["yt-spec-avatar-shape__image-overlays"]=!0,F),n());return _.$c(F)}},P==null?void 0:P())}})))))},"$");
PVO.idomCompat={callbacks:{overlays:!0}};_.ok=_.ec(function(a){function z(){I().endpoint&&_.lN(I().endpoint)}
var I=a.data;var J=a.decorations;var r=a.avatarButtonCustomClassName;var P=a.isOverlay;var N=a.clusterLayoutConfig;return _.B("avatar-view-model",null,_.B(_.g,{cond:function(){return I().image},
then:function(u){return _.B(PVO,{data:function(){return uHI({data:I(),onTap:I().endpoint?z:void 0,decorations:J==null?void 0:J(),badgeText:void 0,accessibilityText:I().accessibilityText,avatarButtonCustomClassName:r==null?void 0:r(),clusterLayoutConfig:N==null?void 0:N()})},
image:u,iconType:"RADAR_LIVE",overlays:function(){return _.B(JUv,{data:I})},
isOverlay:P})}}))},"aa");
_.ok.idomCompat=!0;_.Uj=_.ec(function(a){var z=a.data;a=a.className;var I=_.ca("yt-decorated-avatar-view-model"),J=function(){return _.H(z().avatar,_.Dc)},r=_.Bg(function(){var P,N=z(),u=J(),E=_.Wn(z().rendererContext),O=(P=I.value)!=null?P:void 0,f;
if(u){O={data:N,avatar:u,onTap:E,element:O};P=O.data;N=O.avatar;u=O.onTap;E=O.element;O=O.commandController;u=u?O9x(u,E,O):void 0;E=[];P.liveData&&E.push(0);var A;O=(A=P.liveData)==null?void 0:A.liveBadgeText;A=(f=_.H(P.rendererContext,_.Vw))==null?void 0:f.label;f=uHI({data:N,onTap:u,decorations:E,badgeText:O,accessibilityText:A?A:P.a11yLabel})}else f={size:"medium"};return f},void 0,"H8tk9d");
return _.B("yt-decorated-avatar-view-model",{class:_.B8("yt-decorated-avatar-view-model-wiz",a),el:I},_.B(_.g,{cond:function(){var P;return(P=J())==null?void 0:P.image},
then:function(P){return _.B(PVO,{data:r,image:P,iconType:"RADAR_LIVE",overlays:function(){return _.B(JUv,{data:J})}})}}))},"ba");
_.Uj.idomCompat=!0;_.DU=_.ec(function(a){var z=function(){var u;return Object.assign({},a.data(),(u=a.overrides)==null?void 0:u.call(a))},I=function(){return _.oK(z().rendererContext)},J=function(){var u=z().avatars,E,O;
return(O=(E=(u==null?0:u[0])?_.H(u[0],_.Dc):void 0)==null?void 0:E.avatarImageSize)!=null?O:"AVATAR_SIZE_UNKNOWN"},r=function(){return g91(z())},P=function(){if(z().layoutType==="AVATAR_STACK_LAYOUT_CLUSTER")var u=void 0;
else if((u=a.decorations)==null?0:u.call(a))u=a.decorations();else{u=z();var E=0;u.avatars&&(E+=u.avatars.length);u.decoratedText&&(E+=1);u=E>1?[3]:[]}return u},N={};
return _.B("yt-avatar-stack-view-model",{el:_.a5(_.UN(function(){return z().rendererContext})),
class:_.B8("yt-avatar-stack-view-model-wiz",a.className,(N["yt-avatar-stack-view-model-wiz--tappable"]=I,N["yt-avatar-stack-view-model-wiz--is-overlay"]=a.isOverlay,N["yt-avatar-stack-view-model-wiz--medium-text"]=a.useMediumText,N)),tabindex:function(){return I()?0:void 0},
role:function(){return I()?"link":void 0},
"aria-label":function(){var u,E;return(E=(u=_.H(z().rendererContext,_.Vw))==null?void 0:u.label)!=null?E:""}},_.B(_.g,{cond:function(){var u;
return z().avatars&&!((u=a.hideAvatar)==null?0:u.call(a))},
then:function(){return _.B("div",{class:"yt-avatar-stack-view-model-wiz__avatars"},_.B(_.g,{cond:function(){return z().decoratedText},
then:function(u){var E={};return _.B("div",{class:_.B8("yt-avatar-stack-view-model-wiz__text-container",(E["yt-avatar-stack-view-model-wiz__text-container--thin-border"]=function(){return J()==="AVATAR_SIZE_XXS"||J()==="AVATAR_SIZE_XS"},E["yt-avatar-stack-view-model-wiz__text-container--thin-border-overlay"]=function(){var O;
return((O=a.isOverlay)==null?void 0:O.call(a))&&(J()==="AVATAR_SIZE_XXS"||J()==="AVATAR_SIZE_XS")},E)),
style:_.sW({width:function(){return r().avatarSizeInPx+"px"},
height:function(){return r().avatarSizeInPx+"px"}})},_.B(_.xs,{text:u,
className:"yt-avatar-stack-view-model-wiz__avatar-decorated-text"}))}}),_.B("div",{style:function(){return _.sW(r().avatarStackStyle)()},
class:function(){return r().avatarStackClass}},_.B(_.V0,{data:function(){return r().avatars.reverse()}},{avatarViewModel:function(u,E){return _.B("div",{style:function(){var O,f;
return _.sW((f=(O=r()).avatarStyle)==null?void 0:f.call(O,E()))()},
class:function(){return r().avatarClass}},_.B(_.ok,{data:u.data,
decorations:P,avatarButtonCustomClassName:function(){return r().avatarButtonCustomClassName},
isOverlay:a.isOverlay,clusterLayoutConfig:function(){var O,f;return(f=(O=r()).clusterLayoutConfig)==null?void 0:f.call(O,E())}}))},
decoratedAvatarViewModel:function(u,E){return _.B("div",{style:function(){var O,f;return _.sW((f=(O=r()).avatarStyle)==null?void 0:f.call(O,E()))()},
class:function(){return r().avatarClass}},_.B(_.Uj,{data:u.data}))}})))}}),_.B(_.g,{cond:function(){return z().text},
then:function(u){return _.B(_.xs,{text:u,className:"yt-avatar-stack-view-model-wiz__avatar-stack-text",linkInheritColor:!0})}}))},"ca");
_.DU.idomCompat=!0;_.Jf(_.ec(function(a){var z=a.data;var I=a.thumbnailSize;return _.B("thumbnail-overlay-avatar-stack-view-model",{class:"ytThumbnailOverlayAvatarStackViewModelHost"},_.B("div",{class:_.B8("ytThumbnailOverlayAvatarStackViewModelavatarStack",function(){return f7G(I==null?void 0:I())})},_.B(_.V0,{data:function(){return z().avatarStack}},{avatarStackViewModel:function(J){return _.B(_.DU,{data:J.data,
decorations:[5]})}})))},"da"),"thumbnail-overlay-avatar-stack-view-model",{props:{data:_.zl,
thumbnailSize:_.zl}});var Z9X=_.ec(function(a){a=_.q3(a,{hidden:!1});var z=a.data;return _.B("yt-thumbnail-overlay-title-view-model",{class:"yt-thumbnail-overlay-title-view-model",hidden:a.hidden},_.B(_.xs,{text:function(){return z().title},
className:"yt-thumbnail-overlay-title-view-model__title"}),_.B(_.g,{cond:function(){return z().subtitle},
then:function(){return _.B(_.xs,{text:function(){return z().subtitle},
className:"yt-thumbnail-overlay-title-view-model__subtitle"})}}))},"ea");
Z9X.idomCompat=!0;_.Jf(Z9X,"yt-thumbnail-overlay-title-view-model",{props:{data:_.zl,hidden:_.zl}});var CVe=_.ec(function(a){a=_.q3(a,{isClip:!1});var z=a.data,I=a.thumbnailSize,J={};return _.B("yt-thumbnail-overlay-badge-view-model",{class:_.B8("yt-thumbnail-overlay-badge-view-model-wiz",function(){a:switch(z().position){case "THUMBNAIL_OVERLAY_BADGE_POSITION_TOP_START":var r="yt-thumbnail-overlay-badge-view-model-wiz--top-start";break a;default:r="yt-thumbnail-overlay-badge-view-model-wiz--bottom-end"}return r},function(){return AU7(I==null?void 0:I())},(J["yt-thumbnail-overlay-badge-view-model-wiz--clip"]=
a.isClip,J))},_.B(_.V0,{data:function(){return z().thumbnailBadges}},{thumbnailBadgeViewModel:function(r){return _.B(z$X,{data:r.data,
class:"yt-thumbnail-overlay-badge-view-model-wiz__badge"})}}))},"fa");
CVe.idomCompat=!0;_.Jf(CVe,"yt-thumbnail-overlay-badge-view-model",{props:{data:_.zl,thumbnailSize:_.zl,isClip:_.zl}});_.IG(sa1);var N_1=_.ec(function(a){var z=a.data;a=a.hidden;var I=_.Bg(function(){return z().indicatorCount||0},void 0,"ItxFlc"),J={};
return _.B("yt-page-indicator-view-model",{class:_.B8("yt-page-indicator-view-model",(J["yt-page-indicator-view-model__indicator--hidden"]=function(){return!z().indicatorCount},J)),
hidden:a},_.B(_.se,{each:function(){return Array(I())}},function(r,P){var N={};
return _.B("div",{class:_.B8("yt-page-indicator-view-model__indicator",(N["yt-page-indicator-view-model__indicator--selected"]=function(){return z().selectedIndex===P()},N))})}))},"ga"),tZv=_.K("mweb_enable_sink_page_indicator_view_model_ks")?sa1:N_1,uHv=_.K("mweb_enable_sink_page_indicator_view_model_ks")?_.fS(sa1):N_1;
N_1.idomCompat=!0;_.K("mweb_enable_sink_page_indicator_view_model_ks")?_.EW(tZv,"yt-page-indicator-view-model",{propNames:["data","hidden"]}):_.Jf(uHv,"yt-page-indicator-view-model",{props:{data:_.zl,hidden:_.zl}});var Rk=function(){var a=_.G.apply(this,arguments)||this;a.eventSink=function(){return a};
a.disableInteraction=!1;a.noRoundedCorners=!1;a.isPreviewLoading=!1;a.isOriginalAspectRatio=!1;a.computedObjectFit=!1;a.actionMap={"yt-miniplayer-endpoint-changed":"checkMiniplayer_"};return a};
_.b(Rk,_.G);_.Z=Rk.prototype;
_.Z.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:_.K("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"}}};
_.Z.onImageLoaded=function(){this.loaded=!0};
_.Z.onImageUnloaded=function(){this.loaded=!1};
_.Z.computeRichThumbnail=function(a,z,I,J){if(a&&z&&!J&&!_.K("disable_moving_thumbs_handling")&&!I)return z};
_.Z.computeImageWidth=function(a,z){return z||9999};
_.Z.computeIsOriginalAspectRatio=function(a){return a};
_.Z.computeIsLive=function(a){if(a==null?0:a.badges)for(var z=0;z<a.badges.length;z++){var I=a.badges[z];if(I.metadataBadgeRenderer&&I.metadataBadgeRenderer.style==="BADGE_STYLE_TYPE_LIVE_NOW")return!0}else if(a==null?0:a.thumbnailOverlays)for(z=0;z<a.thumbnailOverlays.length;z++)if(I=a.thumbnailOverlays[z],I.thumbnailOverlayTimeStatusRenderer&&I.thumbnailOverlayTimeStatusRenderer.style==="LIVE")return!0;return!1};
_.Z.computeObjectFit=function(a,z){return z||(a?"CONTAIN":"")};
_.Z.computeNavigationEndpoint=function(a,z,I){return a?z:I};
_.Z.computeHasClip=function(a){a=_.C(a||[]);for(var z=a.next();!z.done;z=a.next())if(z.value.thumbnailOverlayPinkingRenderer)return!0;return!1};
_.Z.computeOverlayColor=function(a){var z;return(a==null?0:(z=a.darkColorPalette)==null?0:z.section2Color)?a.darkColorPalette.section2Color:a==null?void 0:a.sampledThumbnailColor};
_.eH.Object.defineProperties(Rk.prototype,{isPreviewDisabled:{configurable:!0,enumerable:!0,get:function(){return!this.inlinePreviewIsEnabled}},
thumbnailSize:{configurable:!0,enumerable:!0,get:function(){return lB$(this.width)}}});
Rk.prototype.onImageUnloaded=Rk.prototype.onImageUnloaded;Rk.prototype.onImageLoaded=Rk.prototype.onImageLoaded;_.L([_.Q(_.Hc.YtActionHandlerBehavior),_.p("design:type",Object)],Rk.prototype,"ytActionHandlerBehavior",void 0);_.L([_.Q(_.u4.YtRendererstamperBehavior),_.p("design:type",Object)],Rk.prototype,"ytRendererstamperBehavior",void 0);_.L([_.Q(lBf),_.p("design:type",Object)],Rk.prototype,"ytdThumbnailBehavior",void 0);
_.L([_.Q(_.Ms.YtComponentBehavior),_.p("design:type",Object)],Rk.prototype,"componentBehavior",void 0);_.L([_.Q(_.pV),_.p("design:type",Object)],Rk.prototype,"ytdReduxBehavior",void 0);_.L([_.x(),_.p("design:type",Object)],Rk.prototype,"data",void 0);_.L([_.x({value:!1}),_.p("design:type",Boolean)],Rk.prototype,"circular",void 0);
_.L([_.x({computed:"computeRichThumbnail(finalHoveredState_, data.richThumbnail, isPreviewLoading, isPreviewDisabled)"}),_.p("design:type",Object)],Rk.prototype,"richThumbnail",void 0);_.L([_.x({reflectToAttribute:!0,computed:"computeHasClip(data.thumbnailOverlays)"}),_.p("design:type",Boolean)],Rk.prototype,"hasClip",void 0);_.L([_.x(),_.p("design:type",Object)],Rk.prototype,"eventSink",void 0);_.L([_.x({reflectToAttribute:!0}),_.p("design:type",Boolean)],Rk.prototype,"queued",void 0);
_.L([_.x({value:!1}),_.p("design:type",Boolean)],Rk.prototype,"richGridThumbnail",void 0);_.L([_.x({value:!1}),_.p("design:type",Boolean)],Rk.prototype,"useExpandableTooltip",void 0);_.L([_.x({value:!1}),_.p("design:type",Boolean)],Rk.prototype,"useUntranslatedNavigationEndpoint",void 0);_.L([_.x({reflectToAttribute:!0}),_.p("design:type",Object)],Rk.prototype,"disableInteraction",void 0);
_.L([_.x({computed:"computeNavigationEndpoint(useUntranslatedNavigationEndpoint, data.untranslatedNavigationEndpoint, data.navigationEndpoint)"}),_.p("design:type",Object)],Rk.prototype,"computedNavigationEndpoint",void 0);_.L([_.x({reflectToAttribute:!0}),_.p("design:type",Boolean)],Rk.prototype,"nowPlayingEqualizerOnly",void 0);_.L([_.x({value:!1,reflectToAttribute:!0}),_.p("design:type",Boolean)],Rk.prototype,"hidePlaybackStatus",void 0);
_.L([_.x({reflectToAttribute:!0}),_.p("design:type",String)],Rk.prototype,"objectFit",void 0);_.L([_.x({reflectToAttribute:!0}),_.p("design:type",Object)],Rk.prototype,"noRoundedCorners",void 0);_.L([_.x({value:!1}),_.p("design:type",Boolean)],Rk.prototype,"watchFeedThumbnail",void 0);_.L([_.x({reflectToAttribute:!0}),_.p("design:type",Object)],Rk.prototype,"isPreviewLoading",void 0);
_.L([_.x({reflectToAttribute:!0,computed:"computeIsOriginalAspectRatio(data.thumbnail.isOriginalAspectRatio)"}),_.p("design:type",Object)],Rk.prototype,"isOriginalAspectRatio",void 0);_.L([_.x({reflectToAttribute:!0,computed:"computeObjectFit(isOriginalAspectRatio, objectFit)"}),_.p("design:type",Object)],Rk.prototype,"computedObjectFit",void 0);_.L([_.x({reflectToAttribute:!0,computed:"computeIsLive(data)"}),_.p("design:type",Boolean)],Rk.prototype,"isLiveVideo",void 0);
_.L([_.x({value:!1,reflectToAttribute:!0}),_.p("design:type",Boolean)],Rk.prototype,"loaded",void 0);_.L([_.x({computed:"computeOverlayColor(data.thumbnail)"}),_.p("design:type",Object)],Rk.prototype,"overlayColor",void 0);_.L([_.x({selector:_.pSd}),_.p("design:type",Boolean)],Rk.prototype,"inlinePreviewIsEnabled",void 0);_.L([_.x(),_.p("design:type",Number)],Rk.prototype,"width",void 0);
_.L([_.S("inlinePreviewIsEnabled"),_.p("design:type",Boolean),_.p("design:paramtypes",[])],Rk.prototype,"isPreviewDisabled",null);_.L([_.S("width"),_.p("design:type",String),_.p("design:paramtypes",[])],Rk.prototype,"thumbnailSize",null);_.L([_.gz("image-loaded"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],Rk.prototype,"onImageLoaded",null);
_.L([_.gz("image-unloaded"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],Rk.prototype,"onImageUnloaded",null);_.L([_.U({disableElementRegistration:!0,is:"ytd-thumbnail"})],Rk);
var E9J=_.Cw()(Rk,"ytd-thumbnail",function(){if(a7l===void 0){var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-thumbnail--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<a id="thumbnail" class="yt-simple-endpoint inline-block style-scope ytd-thumbnail" aria-hidden="true" href$="[[computeHref_(computedNavigationEndpoint)]]" data="[[computedNavigationEndpoint]]" rel="[[computeNofollow_(computedNavigationEndpoint)]]" tabindex="-1">\n  <yt-image alt="" data="[[data.thumbnail]]" ftl-eligible="" height="[[height]]" notify-on-loaded="" notify-on-unloaded="" object-fit="[[computedObjectFit]]" width="[[computeImageWidth(data, width)]]" class="style-scope ytd-thumbnail">\n  </yt-image>\n  \n  <div id="overlays" class="style-scope ytd-thumbnail"></div>\n  <div id="mouseover-overlay" class="style-scope ytd-thumbnail"></div>\n  <div id="hover-overlays" class="style-scope ytd-thumbnail"></div>\n</a>\n');a.content.insertBefore(_.w().content.cloneNode(!0),
a.content.firstChild);a7l=a}a=a7l;return a},{callbackProps:["onClick"],
allowedProps:"data disableInteraction noRoundedCorners objectFit useExpandableTooltip useUntranslatedNavigationEndpoint width circular watchFeedThumbnail queued".split(" "),allowedPropsFromBehaviors:"height bottomSidePanel size disableRounding disableNowPlaying disableTooltips useHoveredProperty hovered addBackground nowPlaying isVideoPlaying".split(" "),mode:2});var FrI=function(a){var z=this;this.inlinePreviewIsActive=this.inlinePreviewIsEnabledForUser=!1;this.unsubscribeFromInlinePreviewIsEnabled=function(){};
this.JSC$14814_unsubscribeFromInlinePreviewIsActive=function(){};
this.videoPreviewJobId=0;this.JSC$14814_touched=this.previewTriggered=!1;this.onMouseMoveFn=function(I){B_w(z,I)};
this.onLockupMouseLeaveFn=function(I){I=I.relatedTarget;var J,r;((J=document.getElementsByTagName("ytd-video-preview"))==null?0:(r=J.item(0))==null?0:r.contains(I))||(z.terminateVideoPreview(),LO(z))};
this.onThumbnailMouseDownFn=function(){z.terminateVideoPreview();LO(z)};
this.onTouchStart=function(){z.JSC$14814_touched=!0};
this.mediaRenderer=a.mediaRenderer;this.thumbnailElement=a.thumbnailElement;this.lockupElement=a.lockupElement;this.videoPreviewOptsInput=a.videoPreviewOpts;g9o(this);lO(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)):
_.Xd(Error("Ch")):_.Xd(Error("Dh")):O9i(this)},e8=function(a){O9i(a);
var z;(z=a.lockupElement)==null||z.removeEventListener("mouseenter",a.onMouseMoveFn);var I;(I=a.lockupElement)==null||I.removeEventListener("mouseleave",a.onLockupMouseLeaveFn);var J;(J=a.lockupElement)==null||J.removeEventListener("touchstart",a.onTouchStart);var r;(r=a.thumbnailElement)==null||r.removeEventListener("mousedown",a.onThumbnailMouseDownFn);LO(a)},g9o=function(a){a.inlinePreviewIsEnabledForUser=_.qo().getState().ui.inlinePreviewIsEnabled;
a.unsubscribeFromInlinePreviewIsEnabled=_.QT(_.qo(),_.pSd,function(z){(a.inlinePreviewIsEnabledForUser=z)||LO(a)});
a.JSC$14814_unsubscribeFromInlinePreviewIsActive=_.QT(_.qo(),_.lOI,function(z){(a.inlinePreviewIsActive=z)||LO(a)})},O9i=function(a){a.unsubscribeFromInlinePreviewIsEnabled();
a.unsubscribeFromInlinePreviewIsEnabled=function(){};
a.JSC$14814_unsubscribeFromInlinePreviewIsActive();a.JSC$14814_unsubscribeFromInlinePreviewIsActive=function(){}},B_w=function(a,z){z.buttons>0||(z=_.Ib("kevlar_lockup_hover_delay",-1),a.JSC$14814_touched&&z>=0?(_.GW.cancelJob(a.videoPreviewJobId),a.videoPreviewJobId=_.NK(_.GW,function(){f7w(a)},z),a.JSC$14814_touched=!1):f7w(a))},Os1=function(a){a.videoPreviewJobId=_.NK(_.GW,function(){return _.t(function(z){return z.yield(AUG(a,{isAutoplay:!0}),0)})})},f7w=function(a){!a.previewTriggered&&lO(a)&&
(a.inlinePreviewIsActive&&a.terminateVideoPreview(),a.previewTriggered=!0,a.mediaRenderer.isInlinePreviewTriggered=!0,_.GW.cancelJob(a.videoPreviewJobId),a.videoPreviewJobId=_.NK(_.GW,function(){return _.t(function(z){return z.yield(AUG(a),0)})}))},AUG=function(a,z){z=z===void 0?{}:z;
var I=z.isAutoplay===void 0?!1:z.isAutoplay;var J,r,P,N;return _.t(function(u){if(u.nextAddress==1){if(!lO(a))return u.return();J=a.getVideoPreviewOpts();if(!J)return u.return();I&&(J.isAutoplay=!0);return(P=(r=_.Ct(a.mediaRenderer.hostElement,"yt-open-video-preview-action",[J]))&&r[0])?u.yield(r[0],3):u.jumpTo(2)}u.nextAddress!=2&&(P=u.yieldResult===1);if(P){var E=(N=a.mediaRenderer)==null?void 0:N.data;E&&(Kr3(E)?delete E.inlinePlayerData:"inlinePlaybackEndpoint"in E&&delete E.inlinePlaybackEndpoint)}_.nu(u)})};
FrI.prototype.getVideoPreviewOpts=function(){if(this.mediaRenderer.data){var a,z;if((z=(a=this.videoPreviewOptsInput)==null?void 0:a.videoPreviewData)!=null)a=z;else if(a=this.mediaRenderer.data)if(Kr3(a))a={inlinePlaybackEndpoint:_.o0(a.inlinePlayerData.onVisible),navigationEndpoint:_.o0(a.onTap),thumbnail:"image"in a?a.image:a.thumbnail,thumbnailOverlays:void 0,accessibilityText:n9m(a)};else if("multipleInlinePlaybackEndpoint"in a){var I=_.H(_.H(a.multipleInlinePlaybackEndpoint,XDE),TG1);if(I!=
null&&I.playerDescriptors){z=[];I=_.C(I.playerDescriptors);for(var J=I.next();!J.done;J=I.next())J=J.value,z.push({inlinePlaybackEndpoint:J.inlinePlaybackEndpoint,navigationEndpoint:J.navigationEndpoint,thumbnail:J.thumbnail,thumbnailOverlays:J.thumbnailOverlays,accessibilityText:n9m(a)});a=z}else a=void 0}else a={inlinePlaybackEndpoint:a.inlinePlaybackEndpoint,navigationEndpoint:a.navigationEndpoint,thumbnail:a.thumbnail,thumbnailOverlays:a.thumbnailOverlays,accessibilityText:n9m(a)};else a=void 0;
return Object.assign({},{mediaRenderer:this.mediaRenderer.hostElement,thumbnail:this.thumbnailElement,videoPreviewData:a,showPlayerControls:!0},this.videoPreviewOptsInput)}};
var lO=function(a){var z;if(z=a.inlinePreviewIsEnabledForUser)z=(a=a.mediaRenderer.data)?"inlinePlaybackEndpoint"in a&&a.inlinePlaybackEndpoint||Kr3(a)&&a.inlinePlayerData||"multipleInlinePlaybackEndpoint"in a&&a.multipleInlinePlaybackEndpoint?!0:!1:!1;return z};
FrI.prototype.terminateVideoPreview=function(){_.ZF(this.mediaRenderer.hostElement,"yt-terminate-video-preview-action")};
var LO=function(a){_.GW.cancelJob(a.videoPreviewJobId);a.inlinePreviewIsActive=!1;a.previewTriggered=!1;a.mediaRenderer.isInlinePreviewTriggered=!1};var sao=_.kK(["#"]),pO=function(){var a=_.G.apply(this,arguments)||this;a.isDisabled=!1;return a};
_.b(pO,_.G);_.Z=pO.prototype;_.Z.configureRendererStamper=function(){return{"data.menu":bO,"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"}}}};
_.Z.attached=function(){this.updateInlinePreviewHoverListeners()};
_.Z.detached=function(){this.clearInlinePreviewHoverListeners()};
_.Z.getMetadata=function(a){var z=[];if(a.metadataText&&Object.keys(a.metadataText).length>0){var I=this.ytRendererBehavior.getSimpleString(a.metadataText);a.upcomingEventData&&a.upcomingEventData.upcomingEventText&&(I=_.vn(I,Number(a.upcomingEventData.startTime)));z.push(I)}else a.shortViewCountText&&z.push(this.ytRendererBehavior.getSimpleString(a.shortViewCountText)),a.publishedTimeText&&z.push(this.ytRendererBehavior.getSimpleString(a.publishedTimeText)),a.upcomingEventData&&a.upcomingEventData.upcomingEventText&&
(I=this.ytRendererBehavior.getSimpleString(a.upcomingEventData.upcomingEventText),z.push(_.vn(I,Number(a.upcomingEventData.startTime))));return z};
_.Z.calculateBylineText=function(a){return a.shortBylineText?a.shortBylineText:a.bylineText?a.bylineText:null};
_.Z.calculateIsDisabled=function(a){return!!a.isDisabled};
_.Z.computeHrefWithDefault=function(a){return this.ytComponentBehavior.computeHref_(a)||_.qaM(sao)};
_.Z.onDetailsTap=function(a){var z=this.data&&this.data.navigationEndpoint;z&&!_.qK(_.ch(a)||[],this.hostElement,["A".toString(),"BUTTON".toString()])&&(_.K("kevlar_grid_video_renderer_killswitch")?_.PA(this.hostElement,"yt-navigate",{endpoint:z}):this.ytComponentBehavior.resolveCommand(z))};
_.Z.dataChanged=function(){this.updateInlinePreviewHoverListeners()};
_.Z.updateInlinePreviewHoverListeners=function(){this.clearInlinePreviewHoverListeners();this.JSC$14821_inlinePreviewHoverListener=LU({mediaRenderer:this,lockupElement:_.PK(this.hostElement).querySelector("#dismissible"),thumbnailElement:_.PK(this.hostElement).querySelector("ytd-thumbnail")})};
_.Z.clearInlinePreviewHoverListeners=function(){var a;(a=this.JSC$14821_inlinePreviewHoverListener)==null||e8(a)};
_.Z.computeThumbnailWidth=function(a,z){return z&&z>0?z:a?360:210};
_.Z.computeShowChannelThumbnail=function(a,z){var I;return z&&!!(a==null?0:(I=a.channelThumbnailSupportedRenderers)==null?0:I.channelThumbnailWithLinkRenderer)};
_.eH.Object.defineProperties(pO.prototype,{isHovered:{configurable:!0,enumerable:!0,get:function(){var a;return!((a=this.JSC$14821_inlinePreviewHoverListener)==null?0:lO(a))&&!!this.ytdLockupBehavior.lockupIsHovered}}});
pO.prototype.dataChanged=pO.prototype.dataChanged;_.L([_.Q(_.k.YtRendererBehavior),_.p("design:type",Object)],pO.prototype,"ytRendererBehavior",void 0);_.L([_.Q(_.Ms.YtComponentBehavior),_.p("design:type",Object)],pO.prototype,"ytComponentBehavior",void 0);_.L([_.Q(_.u4.YtRendererstamperBehavior),_.p("design:type",Object)],pO.prototype,"ytRendererstamperBehavior",void 0);_.L([_.Q(_.mD),_.p("design:type",Object)],pO.prototype,"ytdDismissibleItemBehavior",void 0);
_.L([_.Q(_.eB),_.p("design:type",Object)],pO.prototype,"ytdLockupBehavior",void 0);_.L([_.Q(_.pV),_.p("design:type",Object)],pO.prototype,"ytdReduxBehavior",void 0);_.L([_.x(),_.p("design:type",Object)],pO.prototype,"data",void 0);_.L([_.x(),_.p("design:type",Boolean)],pO.prototype,"noEndpoints",void 0);_.L([_.x({computed:"calculateBylineText(data)"}),_.p("design:type",Object)],pO.prototype,"bylineText",void 0);
_.L([_.x({reflectToAttribute:!0,value:!1}),_.p("design:type",Boolean)],pO.prototype,"isSearch",void 0);_.L([_.x({reflectToAttribute:!0,value:!1}),_.p("design:type",Boolean)],pO.prototype,"isDownloading",void 0);_.L([_.x({reflectToAttribute:!0,value:0}),_.p("design:type",Number)],pO.prototype,"width",void 0);_.L([_.x({reflectToAttribute:!0,computed:"calculateIsDisabled(data)"}),_.p("design:type",Object)],pO.prototype,"isDisabled",void 0);
_.L([_.O8("data"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],pO.prototype,"dataChanged",null);_.L([_.S("lockupIsHovered"),_.p("design:type",Boolean),_.p("design:paramtypes",[])],pO.prototype,"isHovered",null);_.L([_.U({is:"ytd-grid-video-renderer",disableElementRegistration:!0})],pO);
_.D(pO,"ytd-grid-video-renderer",function(){if(Lwe!==void 0)return Lwe;var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-grid-video-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="dismissible" class="style-scope ytd-grid-video-renderer"><ytd-thumbnail data="[[data]]" hovered="[[isHovered]]" use-expandable-tooltip="[[useExpandableTooltip]]" use-hovered-property="" width="[[computeThumbnailWidth(isSearch, width)]]" class="style-scope ytd-grid-video-renderer"></ytd-thumbnail><div id="details" on-tap="onDetailsTap" class="style-scope ytd-grid-video-renderer"><a id="channel-thumbnail" hidden="[[!computeShowChannelThumbnail(data, isSearch)]]" aria-label$="[[data.channelThumbnailSupportedRenderers.channelThumbnailWithLinkRenderer.accessibility.accessibilityData.label]]" href$="[[computeHref_(data.channelThumbnailSupportedRenderers.channelThumbnailWithLinkRenderer.navigationEndpoint)]]" class="style-scope ytd-grid-video-renderer"><yt-img-shadow id="avatar" thumbnail="[[data.channelThumbnailSupportedRenderers.channelThumbnailWithLinkRenderer.thumbnail]]" width="36" class="style-scope ytd-grid-video-renderer"></yt-img-shadow></a><div id="text-metadata" class="style-scope ytd-grid-video-renderer"><div id="meta" class="style-scope ytd-grid-video-renderer"><h3 class="style-scope ytd-grid-video-renderer"><ytd-badge-supported-renderer hidden="[[!data.topStandaloneBadge]]" top-standalone-badge="[[data.topStandaloneBadge]]" class="style-scope ytd-grid-video-renderer"></ytd-badge-supported-renderer><a id="video-title" class="yt-simple-endpoint style-scope ytd-grid-video-renderer" href$="[[computeHrefWithDefault(data.navigationEndpoint)]]" title$="[[getSimpleString(data.title)]]" aria-label$="[[data.title.accessibility.accessibilityData.label]]" data="[[data.navigationEndpoint]]">[[getSimpleString(data.title)]]</a></h3><div id="metadata-container" class="grid style-scope ytd-grid-video-renderer" meta-block=""><div id="metadata" class="style-scope ytd-grid-video-renderer"><div id="byline-container" hidden="[[!bylineText]]" class="style-scope ytd-grid-video-renderer"><ytd-channel-name id="channel-name" badges="[[data.ownerBadges]]" channel-name="[[bylineText]]" no-endpoints="[[noEndpoints]]" class="style-scope ytd-grid-video-renderer"></ytd-channel-name></div><div id="metadata-line" class="style-scope ytd-grid-video-renderer"><template is="dom-repeat" items="[[getMetadata(data)]]" strip-whitespace="" class="style-scope ytd-grid-video-renderer"><span class="style-scope ytd-grid-video-renderer">[[item]]</span></template></div></div><div id="additional-metadata-line" class="style-scope ytd-grid-video-renderer"><template is="dom-repeat" items="[[data.additionalMetadatas]]" strip-whitespace="" class="style-scope ytd-grid-video-renderer"><span class="style-scope ytd-grid-video-renderer">[[getSimpleString(item)]]</span></template></div></div></div><ytd-badge-supported-renderer id="video-badges" badges="[[data.badges]]" hidden="[[!data.badges]]" class="style-scope ytd-grid-video-renderer"></ytd-badge-supported-renderer></div><div id="menu" class="style-scope ytd-grid-video-renderer"></div></div><div id="buttons" class="style-scope ytd-grid-video-renderer"></div></div><div id="dismissed" class="style-scope ytd-grid-video-renderer"><div id="dismissed-content" class="style-scope ytd-grid-video-renderer"></div></div><yt-interaction id="interaction" class="extended style-scope ytd-grid-video-renderer"></yt-interaction>');a.content.insertBefore(_.w().content.cloneNode(!0),
a.content.firstChild);return Lwe=a},{mode:_.Np("kevlar_poly_si_batch_j047")?1:2});var n9O;var wD=function(){var a=_.G.apply(this,arguments)||this;a.roundedContainer=!0;a.skipRoundingTop=!1;a.disableTopPadding=!1;a.amsterdamEnabled=_.K("enable_desktop_amsterdam_info_panels");return a};
_.b(wD,_.G);wD.prototype.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}}}};
wD.prototype.onClick=function(a){var z,I=(z=this.data)==null?void 0:z.sourceEndpoint;!_.qK(_.ch(a),this.hostElement,["A".toString()])&&I&&_.PA(this.hostElement,"yt-navigate",{endpoint:I})};
_.eH.Object.defineProperties(wD.prototype,{showMetadataAtTop:{configurable:!0,enumerable:!0,get:function(){return this.data&&!(!this.data.source&&!this.data.publishedTimeText)&&!!this.data.sourceAtTop}},
showMetadataBelowTitle:{configurable:!0,enumerable:!0,get:function(){return this.data&&!(!this.data.source&&!this.data.publishedTimeText)&&!this.data.sourceAtTop}},
hasMenu:{configurable:!0,enumerable:!0,get:function(){var a;return!((a=this.data)==null||!a.menu)}},
truncateParagraphs:{configurable:!0,enumerable:!0,get:function(){var a;return!((a=this.data)==null||!a.truncateParagraphs)}},
paragraphMaxLines:{configurable:!0,enumerable:!0,get:function(){var a,z;return(z=(a=this.data)==null?void 0:a.paragraphMaxLines)!=null?z:3}},
background:{configurable:!0,enumerable:!0,get:function(){return this.data&&this.data.background?this.data.background.replace("INFO_PANEL_CONTENT_BACKGROUND_",""):""}}});
_.L([_.Q(_.k.YtRendererBehavior),_.p("design:type",Object)],wD.prototype,"ytRendererBehavior",void 0);_.L([_.Q(_.u4.YtRendererstamperBehavior),_.p("design:type",Object)],wD.prototype,"ytRendererstamperBehavior",void 0);_.L([_.x(),_.p("design:type",Object)],wD.prototype,"data",void 0);_.L([_.x({reflectToAttribute:!0}),_.p("design:type",Object)],wD.prototype,"showVerticalDividers",void 0);_.L([_.x({reflectToAttribute:!0}),_.p("design:type",Object)],wD.prototype,"roundedContainer",void 0);
_.L([_.x({reflectToAttribute:!0}),_.p("design:type",Object)],wD.prototype,"skipRoundingTop",void 0);_.L([_.x({reflectToAttribute:!0}),_.p("design:type",Object)],wD.prototype,"disableTopPadding",void 0);_.L([_.x({reflectToAttribute:!0}),_.p("design:type",Boolean)],wD.prototype,"amsterdamEnabled",void 0);_.L([_.S("data"),_.p("design:type",Object),_.p("design:paramtypes",[])],wD.prototype,"showMetadataAtTop",null);
_.L([_.S("data"),_.p("design:type",Object),_.p("design:paramtypes",[])],wD.prototype,"showMetadataBelowTitle",null);_.L([_.x({reflectToAttribute:!0}),_.S("data.menu"),_.p("design:type",Object),_.p("design:paramtypes",[])],wD.prototype,"hasMenu",null);_.L([_.x({reflectToAttribute:!0}),_.S("data.truncateParagraphs"),_.p("design:type",Object),_.p("design:paramtypes",[])],wD.prototype,"truncateParagraphs",null);
_.L([_.x({reflectToAttribute:!0}),_.S("data.paragraphMaxLines"),_.p("design:type",Number),_.p("design:paramtypes",[])],wD.prototype,"paragraphMaxLines",null);_.L([_.x({type:_.K("kevlar_property_type_migration_killswitch")?String:void 0,reflectToAttribute:!0}),_.S("data.background"),_.p("design:type",Object),_.p("design:paramtypes",[])],wD.prototype,"background",null);_.L([_.U({is:"ytd-info-panel-content-renderer",disableElementRegistration:!0})],wD);
_.D(wD,"ytd-info-panel-content-renderer",function(){if(n9O!==void 0)return n9O;var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-info-panel-content-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="content style-scope ytd-info-panel-content-renderer" on-click="onClick">\n  <yt-icon class="inline-icon style-scope ytd-info-panel-content-renderer" disable-upgrade$="[[!data.icon.iconType]]" hidden="[[!data.icon.iconType]]" icon="[[data.icon.iconType]]">\n  </yt-icon>\n  <div class="text-content style-scope ytd-info-panel-content-renderer">\n    <div class="metadata-container style-scope ytd-info-panel-content-renderer" hidden="[[!showMetadataAtTop]]">\n      <yt-formatted-string text="[[data.source]]" class="style-scope ytd-info-panel-content-renderer">\n      </yt-formatted-string>\n      <div class="published-time style-scope ytd-info-panel-content-renderer" hidden="[[!data.publishedTimeText]]">\n        \u2022\n        <yt-formatted-string text="[[data.publishedTimeText]]" class="style-scope ytd-info-panel-content-renderer">\n        </yt-formatted-string>\n      </div>\n    </div>\n    <a class="yt-simple-endpoint title-container style-scope ytd-info-panel-content-renderer" hidden="[[!data.title]]" href$="[[computeHref_(data.sourceEndpoint)]]" data="[[data.sourceEndpoint]]">\n      <yt-formatted-string text="[[data.title]]" class="style-scope ytd-info-panel-content-renderer"></yt-formatted-string>\n      <yt-icon class="inline-link-icon style-scope ytd-info-panel-content-renderer" disable-upgrade$="[[!data.inlineLinkIcon.iconType]]" hidden="[[!data.inlineLinkIcon.iconType]]" icon="[[data.inlineLinkIcon.iconType]]">\n      </yt-icon>\n    </a>\n    <div class="metadata-container style-scope ytd-info-panel-content-renderer" hidden="[[!showMetadataBelowTitle]]">\n      <yt-formatted-string text="[[data.source]]" class="style-scope ytd-info-panel-content-renderer">\n      </yt-formatted-string>\n      <div class="published-time style-scope ytd-info-panel-content-renderer" hidden="[[!data.publishedTimeText]]">\n        \u2022\n        <yt-formatted-string text="[[data.publishedTimeText]]" class="style-scope ytd-info-panel-content-renderer">\n        </yt-formatted-string>\n      </div>\n    </div>\n    <div class="paragraphs style-scope ytd-info-panel-content-renderer">\n      <template is="dom-repeat" items="[[data.paragraphs]]" class="style-scope ytd-info-panel-content-renderer">\n        <div hidden="[[!item.runs]]" class="style-scope ytd-info-panel-content-renderer">\n          <yt-formatted-string class="paragraph style-scope ytd-info-panel-content-renderer" text="[[item]]">\n          </yt-formatted-string>\n          <div class="inline-source style-scope ytd-info-panel-content-renderer" hidden="[[!data.inlineSource]]">\n            <yt-formatted-string force-default-style="" text="[[data.inlineSource]]" class="style-scope ytd-info-panel-content-renderer">\n            </yt-formatted-string>\n            <yt-icon class="inline-link-icon style-scope ytd-info-panel-content-renderer" disable-upgrade$="[[!data.inlineLinkIcon.iconType]]" hidden="[[!data.inlineLinkIcon.iconType]]" icon="[[data.inlineLinkIcon.iconType]]">\n            </yt-icon>\n          </div>\n        </div>\n      </template>\n      <template is="dom-repeat" items="[[data.attributedParagraphs]]" class="style-scope ytd-info-panel-content-renderer">\n        <div hidden="[[!item.content]]" class="style-scope ytd-info-panel-content-renderer">\n          <yt-attributed-string id="paragraph" class="attributed-paragraph style-scope ytd-info-panel-content-renderer" data="[[item]]">\n          </yt-attributed-string>\n        </div>\n      </template>\n      <div class="disclaimer-container style-scope ytd-info-panel-content-renderer" hidden="[[!data.disclaimer]]">\n        <a class="yt-simple-endpoint style-scope ytd-info-panel-content-renderer" href$="[[computeHref_(data.sourceEndpoint)]]" target="_blank" data="[[data.sourceEndpoint]]">\n          <yt-formatted-string class="disclaimer style-scope ytd-info-panel-content-renderer" text="[[data.disclaimer]]">\n          </yt-formatted-string>\n          <yt-icon class="inline-link-icon inline-disclaimer-icon style-scope ytd-info-panel-content-renderer" disable-upgrade$="[[!data.inlineDisclaimerIcon.iconType]]" hidden="[[!data.inlineDisclaimerIcon]]" icon="[[data.inlineDisclaimerIcon.iconType]]">\n          </yt-icon>\n        </a>\n      </div>\n    </div>\n  </div>\n  <yt-img-shadow class="thumbnail style-scope ytd-info-panel-content-renderer" hidden="[[!data.thumbnail]]" object-fit="COVER" thumbnail="[[data.thumbnail]]">\n  </yt-img-shadow>\n</div>\n<div id="menu" class="style-scope ytd-info-panel-content-renderer"></div>\n');
a.content.insertBefore(_.w().content.cloneNode(!0),a.content.firstChild);return n9O=a},{mode:_.Np("kevlar_poly_si_batch_j076")?1:2});var KrJ;var Frv;var H9w;var b9G;var mV=function(){return _.G.apply(this,arguments)||this};
_.b(mV,_.G);mV.prototype.computeStyle=function(a){return a};
_.L([_.Q(_.k.YtRendererBehavior),_.p("design:type",Object)],mV.prototype,"ytRendererBehavior",void 0);_.L([_.x(),_.p("design:type",Object)],mV.prototype,"data",void 0);_.L([_.x({reflectToAttribute:!0,computed:"computeStyle(data.style)"}),_.p("design:type",String)],mV.prototype,"style_",void 0);_.L([_.dz({is:"yt-channel-thumbnail-with-link-renderer",disableElementRegistration:!0})],mV);
_.D(mV,"yt-channel-thumbnail-with-link-renderer",function(){if(b9G===void 0){var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-channel-thumbnail-with-link-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.sections.yt_channel_thumbnail_with_link_renderer.yt.channel.thumbnail.with.link.renderer.css.js--\x3e<a href="[[computeHref_(data.navigationEndpoint)]]" title="[[data.accessibility.accessibilityData.label]]" class="style-scope yt-channel-thumbnail-with-link-renderer">\n  <yt-img-shadow id="avatar" hidden="[[!data.thumbnail]]" thumbnail="[[data.thumbnail]]" class="style-scope yt-channel-thumbnail-with-link-renderer">\n  </yt-img-shadow>\n</a>\n');
a.content.insertBefore(_.w().content.cloneNode(!0),a.content.firstChild);var z=a.content,I=z.insertBefore;H9w===void 0&&(H9w=document.createElement("template"));var J=H9w;I.call(z,J.content.cloneNode(!0),a.content.firstChild);b9G=a}a=b9G;return a},{mode:2});var yM=function(){var a=_.G.apply(this,arguments)||this;a.modernTypography=_.K("web_modern_typography");return a};
_.b(yM,_.G);yM.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"}}}};
yM.prototype.computeTitleStyle=function(a){return a||null};
yM.prototype.computeAvatarStyle=function(a){return a||null};
yM.prototype.computeShowNavigationButton=function(a,z){return!(a==null||!a.navigationButton||z)};
_.L([_.Q(_.k.YtRendererBehavior),_.p("design:type",Object)],yM.prototype,"ytRendererBehavior",void 0);_.L([_.Q(_.u4.YtRendererstamperBehavior),_.p("design:type",Object)],yM.prototype,"ytRendererstamperBehavior",void 0);_.L([_.x(),_.p("design:type",Object)],yM.prototype,"data",void 0);_.L([_.x({reflectToAttribute:!0,computed:"computeTitleStyle(data.titleStyle.style)"}),_.p("design:type",String)],yM.prototype,"titleStyle",void 0);
_.L([_.x({reflectToAttribute:!0,computed:"computeAvatarStyle(data.channelThumbnail.channelThumbnailWithLinkRenderer.style)"}),_.p("design:type",String)],yM.prototype,"avatarStyle",void 0);_.L([_.x(),_.p("design:type",Boolean)],yM.prototype,"hideNavigationButton",void 0);_.L([_.x({reflectToAttribute:!0}),_.p("design:type",Boolean)],yM.prototype,"isModernSd",void 0);_.L([_.x({reflectToAttribute:!0}),_.p("design:type",Object)],yM.prototype,"modernTypography",void 0);
_.L([_.U({is:"ytd-rich-list-header-renderer",disableElementRegistration:!0})],yM);
_.D(yM,"ytd-rich-list-header-renderer",function(){if(Frv!==void 0)return Frv;var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-rich-list-header-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="title-row style-scope ytd-rich-list-header-renderer">\n  <div id="avatar" class="style-scope ytd-rich-list-header-renderer"></div>\n  <template is="dom-if" if="[[!data.endpoint]]" class="style-scope ytd-rich-list-header-renderer">\n    <div id="title-text" class="style-scope ytd-rich-list-header-renderer">\n      <yt-formatted-string id="title" text="[[data.title]]" class="style-scope ytd-rich-list-header-renderer"></yt-formatted-string>\n      <yt-formatted-string id="subtitle" hidden="[[!data.subtitle]]" text="[[data.subtitle]]" class="style-scope ytd-rich-list-header-renderer">\n      </yt-formatted-string>\n    </div>\n  </template>\n  <template is="dom-if" if="[[data.endpoint]]" class="style-scope ytd-rich-list-header-renderer">\n    <a class="yt-simple-endpoint style-scope ytd-rich-list-header-renderer" href$="[[computeHref_(data.endpoint)]]" data="[[data.endpoint]]">\n      <div id="image-container" class="style-scope ytd-rich-list-header-renderer">\n        <div id="avatar" class="style-scope ytd-rich-list-header-renderer"></div>\n        <div id="title-text" class="style-scope ytd-rich-list-header-renderer">\n          <span id="title" class="style-scope ytd-rich-list-header-renderer">[[getSimpleString(data.title)]]</span>\n          <yt-formatted-string id="subtitle" hidden="[[!data.subtitle]]" text="[[data.subtitle]]" class="style-scope ytd-rich-list-header-renderer">\n          </yt-formatted-string>\n        </div>\n      </div>\n    </a>\n  </template>\n  <ytd-badge-supported-renderer id="featured-badge" badges="[[data.badges]]" hidden="[[!data.badges]]" class="style-scope ytd-rich-list-header-renderer">\n  </ytd-badge-supported-renderer>\n  <yt-formatted-string id="title-annotation" hidden="[[!data.titleAnnotation]]" text="[[data.titleAnnotation]]" class="style-scope ytd-rich-list-header-renderer">\n  </yt-formatted-string>\n  <div id="information-button" hidden="[[!data.informationButton]]" class="style-scope ytd-rich-list-header-renderer"></div>\n  <div id="navigation-button" hidden="[[!computeShowNavigationButton(data, hideNavigationButton)]]" class="style-scope ytd-rich-list-header-renderer"></div>\n</div>\n');a.content.insertBefore(_.w().content.cloneNode(!0),
a.content.firstChild);return Frv=a},{mode:_.Np("kevlar_poly_si_batch_j058")?1:2});var ke=function(){return _.G.apply(this,arguments)||this};
_.b(ke,_.G);ke.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]]"}}}}}};
_.L([_.Q(_.k.YtRendererBehavior),_.p("design:type",Object)],ke.prototype,"ytRendererBehavior",void 0);_.L([_.Q(_.u4.YtRendererstamperBehavior),_.p("design:type",Object)],ke.prototype,"ytRendererstamperBehavior",void 0);_.L([_.x(),_.p("design:type",Object)],ke.prototype,"data",void 0);_.L([_.x({value:!1}),_.p("design:type",Boolean)],ke.prototype,"isSearch",void 0);_.L([_.U({is:"ytd-preview-card-renderer",disableElementRegistration:!0})],ke);
_.D(ke,"ytd-preview-card-renderer",function(){if(KrJ!==void 0)return KrJ;var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-preview-card-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-preview-card-renderer"></div>\n<div id="contents" class="style-scope ytd-preview-card-renderer"></div>\n');a.content.insertBefore(_.w().content.cloneNode(!0),
a.content.firstChild);return KrJ=a},{mode:1});var h$X;var Mn=function(){return _.G.apply(this,arguments)||this};
_.b(Mn,_.G);Mn.prototype.configureRendererStamper=function(){return{"data.menu":bO}};
Mn.prototype.dataChanged=function(){var a=this.get("colorExtractionPalette.section1Color",this.data);a=_.Da(a);_.uK(this.hostElement,{"--ytd-channel-recommendation-card-avatar-overlay-color":a})};
Mn.prototype.computeCardStyle=function(a){return this.get("style.value",a)||null};
Mn.prototype.dataChanged=Mn.prototype.dataChanged;_.L([_.Q(_.k.YtRendererBehavior),_.p("design:type",Object)],Mn.prototype,"ytRendererBehavior",void 0);_.L([_.Q(_.u4.YtRendererstamperBehavior),_.p("design:type",Object)],Mn.prototype,"ytRendererstamperBehavior",void 0);_.L([_.Q(_.mD),_.p("design:type",Object)],Mn.prototype,"ytdDismissibleItemBehavior",void 0);_.L([_.x(),_.p("design:type",Object)],Mn.prototype,"data",void 0);
_.L([_.x({reflectToAttribute:!0,computed:"computeCardStyle(data)"}),_.p("design:type",String)],Mn.prototype,"cardStyle",void 0);_.L([_.O8("data"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],Mn.prototype,"dataChanged",null);_.L([_.U({disableElementRegistration:!0,is:"ytd-compact-channel-recommendation-card-renderer"})],Mn);
_.D(Mn,"ytd-compact-channel-recommendation-card-renderer",function(){if(h$X!==void 0)return h$X;var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-compact-channel-recommendation-card-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<a id="card-body" class="yt-simple-endpoint style-scope ytd-compact-channel-recommendation-card-renderer" href$="[[computeHref_(data.channelEndpoint)]]" title$="[[getSimpleString(data.channelTitle)]]" aria-label$="[[getSimpleString(data.channelTitle)]]" data="[[data.channelEndpoint]]">\n  <div id="banner" class="style-scope ytd-compact-channel-recommendation-card-renderer">\n    <yt-img-shadow id="channel-art" object-fit="COVER" thumbnail="[[data.backgroundImage]]" class="style-scope ytd-compact-channel-recommendation-card-renderer"></yt-img-shadow>\n    <svg id="avatar-protection" viewBox="0 0 210 56" preserveAspectRatio="none" class="style-scope ytd-compact-channel-recommendation-card-renderer">\n      <path id="lower-overlay" d="M 0 -12 L 126 56 L 0 56 z" class="style-scope ytd-compact-channel-recommendation-card-renderer"></path>\n      <path id="upper-overlay" d="M 0 -12 L 74 28 L 0 68 z" class="style-scope ytd-compact-channel-recommendation-card-renderer"></path>\n    </svg>\n    <yt-img-shadow id="avatar" thumbnail="[[data.channelAvatar]]" class="style-scope ytd-compact-channel-recommendation-card-renderer"></yt-img-shadow>\n  </div>\n  <div id="channel-info" class="style-scope ytd-compact-channel-recommendation-card-renderer">\n    <span id="title" class="style-scope ytd-compact-channel-recommendation-card-renderer">[[getSimpleString(data.channelTitle)]]</span>\n  </div>\n</a>\n<div id="subscribe-container" class="style-scope ytd-compact-channel-recommendation-card-renderer">\n  <ytd-subscribe-button-renderer id="subscribe" data="[[data.subscribeButton.subscribeButtonRenderer]]" class="style-scope ytd-compact-channel-recommendation-card-renderer">\n  </ytd-subscribe-button-renderer>\n</div>\n<div id="menu" class="style-scope ytd-compact-channel-recommendation-card-renderer"></div>\n');
a.content.insertBefore(_.w().content.cloneNode(!0),a.content.firstChild);return h$X=a},{mode:1});var VZo;var Qaw;var cI=function(){var a=_.G.apply(this,arguments)||this;a.alignAuto=!1;a.collapsed=!0;a.isToggled=!1;a.alwaysCollapsed=!1;a.canToggle=!0;a.collapsedHeight=80;a.disableToggle=!1;a.alwaysToggleable=!1;a.reversed=!1;a.shouldUseNumberOfLines=!1;a.recomputeOnResize=!1;a.canToggleJobId=0;a.lastReversed=!1;return a};
_.b(cI,_.G);_.Z=cI.prototype;_.Z.alwaysToggleableChanged=function(){this.alwaysToggleable&&(this.canToggle=!0)};
_.Z.toggledChanged=function(){this.collapsed=this.alwaysCollapsed||!this.isToggled};
_.Z.reversedChanged=function(){if(this.reversed&&!this.lastReversed||this.lastReversed&&!this.reversed){for(var a=_.PK(this.hostElement),z=a.childNodes,I=document.createDocumentFragment(),J=a.childNodes.length-1;J>=0;J--)_.PK(I).appendChild(z[J]);_.K("enable_shadydom_free_scoped_node_methods")?_.ZL(this.hostElement).appendChild(I):a.appendChild(I)}};
_.Z.ready=function(){var a=this;_.lK(function(){a.initChildrenObserver()},1)};
_.Z.attached=function(){var a;(a=this.resizeObserver)==null||a.observe(this.content)};
_.Z.detached=function(){this.detachObserver()};
_.Z.toggle=function(a,z){this.canToggle&&(this.isToggled=z,_.PA(this.hostElement,"yt-refit"),a&&a.stopPropagation())};
_.Z.reset=function(){this.childrenChanged()};
_.Z.onIronResize=function(){this.recomputeOnResize&&!_.K("ytd_expander_use_resize_observer")&&this.childrenChanged()};
_.Z.computeIsMoreVisible=function(a,z){return a&&!z};
_.Z.computeShouldUseNumberOfLines=function(a){try{return!!a&&window.CSS.supports("-webkit-line-clamp","1")}catch(z){}return!1};
_.Z.computeIsLessVisible=function(a,z){return a&&z};
_.Z.observeCollapsedHeightAndMaxLines=function(){var a=this.collapsedHeight,z=this.maxNumberOfLines;this.shouldUseNumberOfLines?_.uK(this.hostElement,{"--ytd-expander-max-lines":""+z,"--ytd-expander-collapsed-height":""}):_.uK(this.hostElement,{"--ytd-expander-collapsed-height":a+"px","--ytd-expander-max-lines":""})};
_.Z.handleMoreTap=function(a){this.disableToggle||(_.PA(this.hostElement,"yt-expander-more-tapped"),this.toggle(a,!0))};
_.Z.handleLessTap=function(a){_.PA(this.hostElement,"yt-expander-less-tapped");this.toggle(a,!1)};
_.Z.initChildrenObserver=function(){var a=this;this.observer=new MutationObserver(function(){a.childrenChanged()});
this.recomputeOnResize&&window.ResizeObserver&&_.K("ytd_expander_use_resize_observer")&&(this.resizeThrottle=new _.kc(this.childrenChanged,50,this),this.resizeObserver=new ResizeObserver(function(){var z;(z=a.resizeThrottle)==null||z.fire()}),this.resizeObserver.observe(this.content));
this.observer.observe(this.content,{subtree:!0,childList:!0,attributes:!0,characterData:!0});this.childrenChanged()};
_.Z.childrenChanged=function(){var a=this;this.alwaysToggleable?this.canToggle=this.alwaysToggleable:this.canToggleJobId||(this.canToggleJobId=window.requestAnimationFrame(function(){CS(function(){a.canToggleJobId=0;a.calculateCanCollapse()})}))};
_.Z.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};
_.Z.detachObserver=function(){this.observer&&this.observer.disconnect();this.resizeObserver&&this.resizeObserver.disconnect()};
_.Z.collapsedChangedForBinding=function(){this.hostElement.dispatchEvent(new _.eY("collapsed-changed",this.collapsed))};
_.Z.isToggledChangedForBinding=function(){this.hostElement.dispatchEvent(new _.eY("is-toggled-changed",this.isToggled))};
_.Z.canToggleChangedForBinding=function(){this.hostElement.dispatchEvent(new _.eY("can-toggle-changed",this.canToggle))};
_.eH.Object.defineProperties(cI.prototype,{isResetting:{configurable:!0,enumerable:!0,get:function(){return this.canToggleJobId!==0}}});
cI.prototype.canToggleChangedForBinding=cI.prototype.canToggleChangedForBinding;cI.prototype.isToggledChangedForBinding=cI.prototype.isToggledChangedForBinding;cI.prototype.collapsedChangedForBinding=cI.prototype.collapsedChangedForBinding;cI.prototype.observeCollapsedHeightAndMaxLines=cI.prototype.observeCollapsedHeightAndMaxLines;cI.prototype.onIronResize=cI.prototype.onIronResize;cI.prototype.reversedChanged=cI.prototype.reversedChanged;cI.prototype.toggledChanged=cI.prototype.toggledChanged;
cI.prototype.alwaysToggleableChanged=cI.prototype.alwaysToggleableChanged;_.L([_.Q(_.Ts),_.p("design:type",Object)],cI.prototype,"ironResizableBehavior",void 0);_.L([_.x({reflectToAttribute:!0}),_.p("design:type",Object)],cI.prototype,"alignAuto",void 0);_.L([_.x({reflectToAttribute:!0}),_.p("design:type",Object)],cI.prototype,"collapsed",void 0);_.L([_.x(),_.p("design:type",Object)],cI.prototype,"isToggled",void 0);_.L([_.x(),_.p("design:type",Object)],cI.prototype,"alwaysCollapsed",void 0);
_.L([_.x(),_.p("design:type",Object)],cI.prototype,"canToggle",void 0);_.L([_.x(),_.p("design:type",Object)],cI.prototype,"collapsedHeight",void 0);_.L([_.x(),_.p("design:type",Object)],cI.prototype,"disableToggle",void 0);_.L([_.x(),_.p("design:type",Object)],cI.prototype,"alwaysToggleable",void 0);_.L([_.x(),_.p("design:type",Object)],cI.prototype,"reversed",void 0);_.L([_.x(),_.p("design:type",Number)],cI.prototype,"maxNumberOfLines",void 0);
_.L([_.x({reflectToAttribute:!0,computed:"computeShouldUseNumberOfLines(maxNumberOfLines)"}),_.p("design:type",Object)],cI.prototype,"shouldUseNumberOfLines",void 0);_.L([_.x(),_.p("design:type",Object)],cI.prototype,"recomputeOnResize",void 0);_.L([_.A3("#content"),_.p("design:type",HTMLDivElement)],cI.prototype,"content",void 0);_.L([_.Fe("alwaysToggleable"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],cI.prototype,"alwaysToggleableChanged",null);
_.L([_.Fe("isToggled"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],cI.prototype,"toggledChanged",null);_.L([_.S("canToggleJobId"),_.p("design:type",Object),_.p("design:paramtypes",[])],cI.prototype,"isResetting",null);_.L([_.O8("reversed"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],cI.prototype,"reversedChanged",null);
_.L([_.gz("iron-resize"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],cI.prototype,"onIronResize",null);_.L([_.O8("maxNumberOfLines","collapsedHeight"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],cI.prototype,"observeCollapsedHeightAndMaxLines",null);_.L([_.O8("collapsed"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],cI.prototype,"collapsedChangedForBinding",null);
_.L([_.O8("isToggled"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],cI.prototype,"isToggledChangedForBinding",null);_.L([_.O8("canToggle"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],cI.prototype,"canToggleChangedForBinding",null);_.L([_.U({disableElementRegistration:!0,is:"ytd-expander"})],cI);
_.D(cI,"ytd-expander",function(){if(Qaw!==void 0)return Qaw;var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-expander--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="content" class="style-scope ytd-expander">\n  \n  <slot id="container" name="content" class="style-scope ytd-expander"></slot>\n</div>\n<slot name="sticky" class="style-scope ytd-expander"></slot>\n<tp-yt-paper-button id="less" aria-expanded="true" hidden="[[!computeIsLessVisible(canToggle, isToggled)]]" noink="" on-tap="handleLessTap" class="style-scope ytd-expander">\n  <slot name="less-button" class="style-scope ytd-expander"></slot>\n</tp-yt-paper-button>\n<tp-yt-paper-button id="more" aria-expanded="false" hidden="[[!computeIsMoreVisible(canToggle, isToggled)]]" noink="" on-tap="handleMoreTap" class="style-scope ytd-expander">\n  <slot name="more-button" class="style-scope ytd-expander"></slot>\n</tp-yt-paper-button>\n<slot name="sticky-secondary" class="style-scope ytd-expander"></slot>\n');a.content.insertBefore(_.w().content.cloneNode(!0),
a.content.firstChild);return Qaw=a},{mode:1});var Ye=function(){return _.G.apply(this,arguments)||this};
_.b(Ye,_.G);Ye.prototype.computeIsCarousel=function(a){return!!a.isCarousel};
Ye.prototype.observeLightsourcePalette=function(){var a,z=(a=this.data)==null?void 0:a.vibrantsourceColorPaletteData;z&&_.xq(this.hostElement,z)};
Ye.prototype.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{alignByText:!1}}}}}};
Ye.prototype.observeLightsourcePalette=Ye.prototype.observeLightsourcePalette;_.L([_.Q(_.k.YtRendererBehavior),_.p("design:type",Object)],Ye.prototype,"ytRendererBehavior",void 0);_.L([_.Q(_.u4.YtRendererstamperBehavior),_.p("design:type",Object)],Ye.prototype,"ytRendererstamperBehavior",void 0);_.L([_.x(),_.p("design:type",Object)],Ye.prototype,"data",void 0);_.L([_.x({computed:"computeIsCarousel(data)",reflectToAttribute:!0}),_.p("design:type",Boolean)],Ye.prototype,"isCarousel",void 0);
_.L([_.O8("data.vibrantsourceColorPaletteData"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],Ye.prototype,"observeLightsourcePalette",null);_.L([_.U({disableElementRegistration:!0,is:"ytd-media-upsell-renderer"})],Ye);
_.D(Ye,"ytd-media-upsell-renderer",function(){if(VZo!==void 0)return VZo;var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-media-upsell-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="details-wrapper style-scope ytd-media-upsell-renderer">\n  <div class="image-wrapper style-scope ytd-media-upsell-renderer">\n    <yt-img-shadow class="media-thumbnail style-scope ytd-media-upsell-renderer" thumbnail="[[data.thumbnail]]">\n    </yt-img-shadow>\n    <div class="tv-show-season-wrapper style-scope ytd-media-upsell-renderer" hidden="[[!data.tvShowSeasons]]">\n      <yt-icon id="tv-show-icon" icon="tv" class="style-scope ytd-media-upsell-renderer"></yt-icon>\n      <p id="tv-show-season" class="style-scope ytd-media-upsell-renderer">\n        [[getSimpleString(data.tvShowSeasons)]]\n      </p>\n    </div>\n  </div>\n  <div class="details style-scope ytd-media-upsell-renderer">\n    <div class="metadata-wrapper style-scope ytd-media-upsell-renderer">\n      <span id="media-title" hidden="[[!data.mediaTitle]]" class="style-scope ytd-media-upsell-renderer">\n        [[getSimpleString(data.mediaTitle)]]\n      </span>\n      <span id="metadata" hidden="[[!data.metadata]]" class="style-scope ytd-media-upsell-renderer">\n        [[getSimpleString(data.metadata)]]\n      </span>\n    </div>\n    <div id="action-button" class="style-scope ytd-media-upsell-renderer"></div>\n  </div>\n</div>\n<ytd-expander id="expander" hidden="[[data.isCarousel]]" max-number-of-lines="4" class="style-scope ytd-media-upsell-renderer">\n  <yt-formatted-string id="synopsis" slot="content" disable-upgrade$="[[!data.synopsis]]" hidden="[[data.isCarousel]]" text="[[data.synopsis]]" class="style-scope ytd-media-upsell-renderer">\n  </yt-formatted-string>\n  <div class="more-button style-scope ytd-media-upsell-renderer" slot="more-button">\n    <span class="expander-text style-scope ytd-media-upsell-renderer">[[getSimpleString(data.moreButtonText)]]</span>\n    <yt-icon id="drop-down-icon" icon="EXPAND" class="style-scope ytd-media-upsell-renderer"></yt-icon>\n  </div>\n  <div class="less-button style-scope ytd-media-upsell-renderer" slot="less-button">\n    <span class="expander-text style-scope ytd-media-upsell-renderer">[[getSimpleString(data.lessButtonText)]]</span>\n    <yt-icon id="drop-up-icon" icon="COLLAPSE" class="style-scope ytd-media-upsell-renderer"></yt-icon>\n  </div>\n</ytd-expander>\n');a.content.insertBefore(_.w().content.cloneNode(!0),
a.content.firstChild);return VZo=a},{mode:2});var S0O;var qn=function(){var a=_.G.apply(this,arguments)||this;a.JSC$14849_playerEvents=new Map;a.listeningToPlayer=!1;a.startX=0;a.active=!1;a.shouldShowButtons=_.K("web_buttons_hidden_killswitch");a.isHighlighted=!1;a.useHighlightStyling=_.K("web_enable_deeper_metadata_highlight_styling");a.modern=_.K("kevlar_modern_sd");a.enableProblemWalkthrough=_.K("problem_walkthrough_sd");return a};
_.b(qn,_.G);_.Z=qn.prototype;
_.Z.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}}}}}};
_.Z.created=function(){this.JSC$14849_playerEvents.set("onLoopRangeChange",this.onLoopRangeChange)};
_.Z.attached=function(){this.repeatButton.addEventListener("yt-toggle-button",_.BK(this,this.onRepeatButtonToggle));_.K("synced_panel_scrolling_controller")&&this.hostElement.addEventListener("yt-synced-panel-active-item-update",_.BK(this,this.onActiveUpdate))};
_.Z.detached=function(){this.removePlayerListeners();this.repeatButton.removeEventListener("yt-toggle-button",_.BK(this,this.onRepeatButtonToggle));_.K("synced_panel_scrolling_controller")&&this.hostElement.removeEventListener("yt-synced-panel-active-item-update",_.BK(this,this.onActiveUpdate))};
_.Z.onDataChanged=function(){this.removePlayerListeners()};
_.Z.onColorPaletteChange=function(){var a={},z;if(_.xh()==="USER_INTERFACE_THEME_DARK"&&((z=this.data)==null?0:z.darkColorPalette)){var I=this.data.darkColorPalette;a["--ytd-macro-markers-list-item-background-color"]=_.RX(this.get("section2Color",I))}else{var J;_.xh()==="USER_INTERFACE_THEME_LIGHT"&&((J=this.data)==null?0:J.lightColorPalette)&&(I=this.data.lightColorPalette,a["--ytd-macro-markers-list-item-background-color"]=_.RX(this.get("section3Color",I)))}I?(a["--ytd-macro-markers-list-item-title-color"]=
_.RX(this.get("primaryTitleColor",I)),a["--ytd-macro-markers-list-item-secondary-color"]=_.RX(this.get("secondaryTitleColor",I)),a["--ytd-macro-markers-list-item-timestamp-background-color"]=_.RX(this.get("section1Color",I)),this.customButtonProperties={customColors:{color:_.RX(this.get("primaryTitleColor",I))}},this.useColorSampling=!0):(a["--ytd-macro-markers-list-item-background-color"]="initial",a["--ytd-macro-markers-list-item-title-color"]="initial",a["--ytd-macro-markers-list-item-secondary-color"]=
"initial",a["--ytd-macro-markers-list-item-timestamp-background-color"]="initial",this.customButtonProperties=void 0,this.useColorSampling=!1);_.uK(this.hostElement,a)};
_.Z.onEndpointMouseDown=function(a){this.startX=a.clientX};
_.Z.onEndpointClick=function(a){var z=this,I,J,r;return _.t(function(P){if(P.nextAddress==1){if(z.startX!==a.clientX)return a.preventDefault(),P.return();z.data&&z.ytRendererBehavior.logExplicitClick(z.data);if(!z.seekWithAnimationOnClick)return P.jumpTo(0);if(a.button!==0||a.shiftKey||a.altKey||a.metaKey||a.ctrlKey||_.qK(_.ch(a),z.hostElement,["BUTTON".toString()]))return P.return();a.stopPropagation();a.preventDefault();return z.data?P.yield(_.IK().getPlayerPromise(),3):P.return()}I=P.yieldResult;
r=(J=_.H(z.data.onTap,_.MZ))==null?void 0:J.startTimeSeconds;r!==void 0&&I.seekToTimeWithAnimation(r*1E3,_.cd(z.data.title));_.nu(P)})};
_.Z.computeLayout=function(a){return a};
_.Z.computeIsHighlighted=function(a){return!!a};
_.Z.computeCarouselType=function(a){return a};
_.Z.hideModernCarousel=function(a){return this.modern&&this.hideThumbnail(a)};
_.Z.hideThumbnail=function(a){return this.enableProblemWalkthrough&&a!==null&&a==="MACRO_MARKERS_LIST_ITEM_RENDERER_CAROUSEL_TYPE_TEXT_ONLY"};
_.Z.onRepeatButtonToggle=function(a){var z=this;a.detail.toggled&&_.IK().getPlayerPromise().then(function(I){z.ytPlayerListenerBehavior.listenToPlayerEvents(I,z.JSC$14849_playerEvents);z.listeningToPlayer=!0})};
_.Z.onLoopRangeChange=function(a){var z=_.PK(this.hostElement).querySelector("#repeat-button").querySelector("ytd-toggle-button-renderer");if(z){var I=z.polymerController.get("defaultServiceEndpoint.repeatChapterCommand",z.polymerController.data);if(I){var J=Number(I.endTimeMs);if(Number(I.startTimeMs)!==(a==null?void 0:a.startTimeMs)||J!==(a==null?void 0:a.endTimeMs))z.polymerController.toggle(!1),this.removePlayerListeners()}}};
_.Z.removePlayerListeners=function(){var a=this;this.listeningToPlayer&&_.IK().getPlayerPromise().then(function(z){a.ytPlayerListenerBehavior.unlistenFromPlayerEvents(z,a.JSC$14849_playerEvents);a.listeningToPlayer=!1})};
_.Z.onActiveUpdate=function(a){this.active=a.detail.active};
qn.prototype.onColorPaletteChange=qn.prototype.onColorPaletteChange;qn.prototype.onDataChanged=qn.prototype.onDataChanged;_.L([_.Q(_.k.YtRendererBehavior),_.p("design:type",Object)],qn.prototype,"ytRendererBehavior",void 0);_.L([_.Q(_.u4.YtRendererstamperBehavior),_.p("design:type",Object)],qn.prototype,"ytRendererstamperBehavior",void 0);_.L([_.Q(_.jz.YtPlayerListenerBehavior),_.p("design:type",_.z4)],qn.prototype,"ytPlayerListenerBehavior",void 0);
_.L([_.x(),_.p("design:type",Object)],qn.prototype,"data",void 0);_.L([_.x({value:!1,reflectToAttribute:!0}),_.p("design:type",Boolean)],qn.prototype,"useCustomColors",void 0);_.L([_.x({reflectToAttribute:!0}),_.p("design:type",Object)],qn.prototype,"active",void 0);_.L([_.x({reflectToAttribute:!0}),_.p("design:type",Boolean)],qn.prototype,"shouldShowButtons",void 0);_.L([_.x({reflectToAttribute:!0,computed:"computeLayout(data.layout)"}),_.p("design:type",String)],qn.prototype,"layout",void 0);
_.L([_.x({reflectToAttribute:!0,computed:"computeIsHighlighted(data.isHighlighted)"}),_.p("design:type",Object)],qn.prototype,"isHighlighted",void 0);_.L([_.x({reflectToAttribute:!0}),_.p("design:type",Object)],qn.prototype,"useHighlightStyling",void 0);_.L([_.x({reflectToAttribute:!0}),_.p("design:type",Object)],qn.prototype,"modern",void 0);_.L([_.x({reflectToAttribute:!0}),_.p("design:type",Object)],qn.prototype,"enableProblemWalkthrough",void 0);
_.L([_.x({reflectToAttribute:!0,computed:"computeCarouselType(data.carouselType)"}),_.p("design:type",String)],qn.prototype,"carouselType",void 0);_.L([_.x({reflectToAttribute:!0}),_.p("design:type",Boolean)],qn.prototype,"useColorSampling",void 0);_.L([_.x(),_.p("design:type",Boolean)],qn.prototype,"seekWithAnimationOnClick",void 0);_.L([_.x(),_.p("design:type",Object)],qn.prototype,"customButtonProperties",void 0);
_.L([_.A3("#repeat-button"),_.p("design:type",HTMLElement)],qn.prototype,"repeatButton",void 0);_.L([_.O8("data"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],qn.prototype,"onDataChanged",null);_.L([_.O8("data.lightColorPalette","data.darkColorPalette"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],qn.prototype,"onColorPaletteChange",null);_.L([_.U({is:"ytd-macro-markers-list-item-renderer",disableElementRegistration:!0})],qn);
_.D(qn,"ytd-macro-markers-list-item-renderer",function(){if(S0O!==void 0)return S0O;var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-macro-markers-list-item-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<a id="endpoint" class="yt-simple-endpoint style-scope ytd-macro-markers-list-item-renderer" data="[[data.onTap]]" href$="[[computeHref_(data.onTap)]]" on-click="onEndpointClick" on-mousedown="onEndpointMouseDown" draggable="false" hidden="[[hideModernCarousel(data.carouselType)]]">\n  <div hidden="[[hideThumbnail(data.carouselType)]]" id="thumbnail" class="style-scope ytd-macro-markers-list-item-renderer">\n    <yt-img-shadow hidden="[[!data.thumbnail]]" object-fit="FILL" thumbnail="[[data.thumbnail]]" class="style-scope ytd-macro-markers-list-item-renderer">\n    </yt-img-shadow>\n    <div id="overlay" class="style-scope ytd-macro-markers-list-item-renderer"></div>\n  </div>\n  <div id="details" class="style-scope ytd-macro-markers-list-item-renderer">\n    <h4 hidden="[[hideThumbnail(data.carouselType)]]" class="macro-markers style-scope ytd-macro-markers-list-item-renderer" title="[[getSimpleString(data.title)]]">[[getSimpleString(data.title)]]</h4>\n    <h4 hidden="[[!hideThumbnail(data.carouselType)]]" class="problem-walkthroughs style-scope ytd-macro-markers-list-item-renderer" title="[[getSimpleString(data.title)]]">[[getSimpleString(data.title)]]</h4>\n    <div id="time" class="style-scope ytd-macro-markers-list-item-renderer">[[getSimpleString(data.timeDescription)]]</div>\n  </div>\n</a>\n<div id="details" hidden="[[!hideModernCarousel(data.carouselType)]]" class="style-scope ytd-macro-markers-list-item-renderer">\n  <a id="endpoint" class="yt-simple-endpoint style-scope ytd-macro-markers-list-item-renderer" data="[[data.onTap]]" href$="[[computeHref_(data.onTap)]]" on-click="onEndpointClick" on-mousedown="onEndpointMouseDown" draggable="false" hidden="[[!hideThumbnail(data.carouselType)]]">\n    <h4 class="problem-walkthroughs style-scope ytd-macro-markers-list-item-renderer" title="[[getSimpleString(data.title)]]">[[getSimpleString(data.title)]]</h4>\n  </a>\n  <div id="time" class="style-scope ytd-macro-markers-list-item-renderer">[[getSimpleString(data.timeDescription)]]</div>\n</div>\n<div id="share-button" class="style-scope ytd-macro-markers-list-item-renderer"></div>\n<div id="repeat-button" class="style-scope ytd-macro-markers-list-item-renderer"></div>\n');
a.content.insertBefore(_.w().content.cloneNode(!0),a.content.firstChild);return S0O=a},{mode:1});var i9w;var xfX;var en=function(){var a=_.G.apply(this,arguments)||this;a.modernTypography=_.K("web_modern_typography");return a};
_.b(en,_.G);_.L([_.Q(_.k.YtRendererBehavior),_.p("design:type",Object)],en.prototype,"ytRendererBehavior",void 0);_.L([_.x({reflectToAttribute:!0}),_.p("design:type",Object)],en.prototype,"modernTypography",void 0);_.L([_.x(),_.p("design:type",Object)],en.prototype,"data",void 0);_.L([_.U({disableElementRegistration:!0,is:"ytd-title-and-button-list-header-renderer"})],en);
_.D(en,"ytd-title-and-button-list-header-renderer",function(){if(xfX!==void 0)return xfX;var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-title-and-button-list-header-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-formatted-string id="title" text="[[data.title]]" class="style-scope ytd-title-and-button-list-header-renderer"></yt-formatted-string>\n\n');a.content.insertBefore(_.w().content.cloneNode(!0),
a.content.firstChild);return xfX=a},{mode:1});var v9G;var GCG=new _.I4("BUTTON_RENDERER_WIZ_TOKEN"),$fo=new _.I4("BUTTON_RENDERER_TOKEN");_.a1=_.ec(function(a){var z=_.ab().resolve(_.eL(GCG));if(z)return _.B(z,Object.assign({},a));var I=_.ab().resolve($fo);return I?_.B(Oc3,null,function(){return _.B(Y0,null,function(){var J,r,P,N,u,E,O,f,A,n,F,h;return void I(a.data(),{onButtonClickCallback:a.onButtonClickCallback,shouldShowIcons:(J=a.shouldShowIcons)==null?void 0:J.call(a),icon:(r=a.icon)==null?void 0:r.call(a),processAllEndpoints:(P=a.processAllEndpoints)==null?void 0:P.call(a),preventDefault:(N=a.preventDefault)==null?void 0:N.call(a),
stopPropagation:(u=a.stopPropagation)==null?void 0:u.call(a),disableButtonRendererClickHandling:(E=a.disableButtonRendererClickHandling)==null?void 0:E.call(a),className:(O=a.className)==null?void 0:O.call(a),buttonOverrides:(f=a.buttonOverrides)==null?void 0:f.call(a),forceModernIconButton:(A=a.forceModernIconButton)==null?void 0:A.call(a),isSubscribe:(n=a.isSubscribe)==null?void 0:n.call(a),alignByText:(F=a.alignByText)==null?void 0:F.call(a),forceDisabled:(h=a.forceDisabled)==null?void 0:h.call(a)})})}):
_.B(_.eJ,null)},"ha");
_.a1.idomCompat=!0;var Xml=_.ec(function(a){var z=a.data,I=_.Yi(a.useSquareAspectRatio,!1);return _.B("dismissed-mini-game-card-view-model",null,_.B(_.g,{cond:function(){var J,r;return(J=z().responseText)==null?void 0:(r=J.runs)==null?void 0:r.length},
then:function(){var J={};return _.B("div",{class:_.B8("yt-mini-game-card-view-model__dismissed-card",(J["yt-mini-game-card-view-model__dismissed-portrait-card"]=function(){return!I()},J["yt-mini-game-card-view-model--dismissed-square-card"]=I,J))},_.B("div",{class:"yt-mini-game-card-view-model__dismissed-mini-app-content"},_.B(_.g,{cond:function(){return z().responseText.runs[0].text},
then:function(r){return _.B("span",{class:"yt-mini-game-card-view-model__dismissed-text",title:r},r)}}),_.B(_.V0,{data:function(){return z().buttons}},{buttonRenderer:_.a1,
buttonViewModel:_.At})))}}))},"ia");var R$w=_.ec(function(a){a=_.q3(a,{data:{},className:void 0,useFullWidth:!1,isDesktopWeb:!1,addSearchResultTopMargin:!1});var z=a.data,I=a.useFullWidth,J=a.isDesktopWeb,r=a.addSearchResultTopMargin,P=function(){return z().layout},N=function(){return z().title},u=function(){return z().metadataText?z().metadataText:z().genre},E=function(){return z().channelName},O=function(){return z().image},f=function(){return z().colorPalette},A=function(){return z().actionButton},n=function(){return z().overflowButton},
F=function(){return z().avatar},h=function(){var l={};
l=_.B8("yt-mini-game-card-view-model","yt-mini-game-card-view-model--singleton-card",(l["yt-mini-game-card-view-model--singleton-card-desktop"]=function(){return J()},l));
return _.B("div",{class:l},_.B(T_w,{imageData:O,colorPalette:f}),_.B(dfG,{onTap:function(){return z().onTap},
imageData:O,accessibilityText:function(){return z().accessibilityText},
overlayBadgeText:function(){return z().overlayBadgeText},
iconName:function(){return z().iconName},
unplayableInlinePlaybackIconName:function(){return z().unplayableInlinePlaybackIconName},
isDesktopWeb:J}),_.B(_.g,{cond:function(){return!J()},
then:function(){return _.B(_.eJ,null,_.B(Wr1,{layout:P,colorPalette:f,isDesktopWeb:J,overflowButton:n,avatar:F,onTap:function(){return z().onTap},
genre:u,title:N,channelName:E}),_.B(o9i,{actionButton:A}))}}))},v=function(){var l={};
l=_.B8((l["yt-mini-game-card-view-model--search-result-desktop"]=function(){return J()},l["yt-mini-game-card-view-model--search-result-mweb"]=function(){return!J()},l["yt-mini-game-card-view-model--search-result-top-margin"]=function(){return r()},l));
return _.B("div",{class:l},h(),_.B(Ufe,{description:function(){return z().description},
isDesktopWeb:J,title:N,genre:u,onTap:function(){return z().onTap},
actionButton:A,overflowButton:n,avatar:F,channelName:E}))},d=function(){var l={};
l=_.B8("yt-mini-game-card-view-model","yt-mini-game-card-view-model--portrait-card",(l["yt-mini-game-card-view-model--portrait-card-desktop"]=function(){return J()},l["yt-mini-game-card-view-model--portrait-card-desktop-skinny-width"]=function(){return J()&&z().width===135},l["yt-mini-game-card-view-model--show-unplayable-on-hover"]=function(){return J()},l["yt-mini-game-card-view-model--big-metadata-font"]=function(){return z().style==="MINI_GAME_CARD_STYLE_BIG_METADATA_FONT"},l["yt-mini-game-card-view-model--use-full-width"]=
function(){return I()},l["yt-mini-game-card-view-model--extra-bottom-padding"]=function(){return!A()},l));
return _.B("div",{class:l},_.B(DfX,{colorPalette:f,isDesktopWeb:J,onTap:function(){return z().onTap},
accessibilityText:function(){return z().accessibilityText},
overlayBadgeText:function(){return z().overlayBadgeText},
iconName:function(){return z().iconName},
unplayableInlinePlaybackIconName:function(){return z().unplayableInlinePlaybackIconName},
actionButton:A,imageData:O}),_.B(Wr1,{layout:P,colorPalette:f,isDesktopWeb:J,overflowButton:n,avatar:F,onTap:function(){return z().onTap},
genre:u,title:N,channelName:E}))},W=function(){var l={};
l=_.B8("yt-mini-game-card-view-model","yt-mini-game-card-view-model--square-card",(l["yt-mini-game-card-view-model--square-card-desktop"]=function(){return J()},l["yt-mini-game-card-view-model--use-full-width"]=function(){return I()},l));
return _.B("div",{class:l},_.B(dfG,{onTap:function(){return z().onTap},
imageData:O,accessibilityText:function(){return z().accessibilityText},
overlayBadgeText:function(){return z().overlayBadgeText},
iconName:function(){return z().iconName},
unplayableInlinePlaybackIconName:function(){return z().unplayableInlinePlaybackIconName},
isDesktopWeb:J}),_.B(Wr1,{layout:P,colorPalette:f,isDesktopWeb:J,overflowButton:n,avatar:F,onTap:function(){return z().onTap},
genre:u,title:N,channelName:E}))};
return _.B("mini-game-card-view-model",{class:a.className},_.B(_.Fw,null,_.B(_.n3,{when:function(){return P()==="MINI_APP_LAYOUT_PORTRAIT"}},function(){return d()}),_.B(_.n3,{when:function(){return P()==="MINI_APP_LAYOUT_SQUARE"}},function(){return W()}),_.B(_.n3,{when:function(){return P()==="MINI_APP_LAYOUT_SINGLETON"}},function(){return v()})))},"ja");
R$w.idomCompat=!0;var o9i=_.ec(function(a){var z=_.Yi(a.wrapperClass,"yt-mini-game-card-view-model__card-action-button");return _.B(_.V0,{data:a.actionButton},{buttonViewModel:function(I){return _.B("div",{class:z},_.B(_.At,{data:I.data}))}})},"ka"),dfG=_.ec(function(a){var z=a.onTap;
var I=a.imageData;var J=a.accessibilityText;var r=a.overlayBadgeText;var P=a.iconName;var N=a.unplayableInlinePlaybackIconName;a=a.isDesktopWeb;return _.B(_.lq,{className:"yt-mini-game-card-view-model__thumbnail-wrapper",command:z},_.B(_.qp,{data:I,className:"yt-mini-game-card-view-model__thumbnail-image",alt:function(){return(J==null?void 0:J())||""},
contentMode:"CONTENT_MODE_SCALE_ASPECT_FILL"}),_.B(Lrj,{overlayBadgeText:r,iconName:P,unplayableInlinePlaybackIconName:N,isDesktopWeb:a}))},"la"),Lrj=_.ec(function(a){var z=a.overlayBadgeText;
var I=a.iconName;var J=a.unplayableInlinePlaybackIconName;var r=a.isDesktopWeb;return _.B("div",{class:"yt-mini-game-card-view-model__badge-container"},_.B(_.g,{cond:I,then:function(P){return _.B("div",{class:"yt-mini-game-card-view-model__badge"},_.B("div",{class:"yt-mini-game-card-view-model__badge-high-score"},_.B(_.nS,{icon:P,className:"yt-mini-game-card-view-model__icon",size:12}),_.B("span",{class:"yt-mini-game-card-view-model__badge-text","aria-hidden":!0},z)))}}),_.B(_.g,{cond:function(){return!I()&&
z()},
then:function(){return _.B("span",{class:"yt-mini-game-card-view-model__badge","aria-hidden":!0},z)}}),_.B(_.g,{cond:function(){return J()&&r()},
then:function(){return _.B("div",{class:"yt-mini-game-card-view-model__unplayable-badge"},_.B(_.nS,{icon:J,className:"yt-mini-game-card-view-model__unplayable-icon"}))}}))},"ma"),T_w=_.ec(function(a){var z=a.colorPalette;
var I=a.imageData;var J=function(){return z().vibrantColorPalette?z().vibrantColorPalette.section2Color:z().sectionTwoColor};
return _.B(_.eJ,null,_.B("div",{class:"yt-mini-game-card-view-model__background-base",style:_.sW({"background-color":function(){return LH(J(),"1")}})}),_.B("div",{class:"yt-mini-game-card-view-model__background-blur",
style:_.sW({"background-image":function(){return"url("+I().sources[0].url+")"}})}),_.B("div",{class:"yt-mini-game-card-view-model__gradient-scrim",
style:_.sW({background:function(){return"linear-gradient(180deg,\n    "+LH(J(),".8")+" 0%,\n    "+LH(J(),".4")+" 25%,\n    "+LH(z().vibrantColorPalette?z().vibrantColorPalette.section4Color:z().sectionFourColor,".8")+" 100%)"}})}))},"na"),Wr1=_.ec(function(a){var z=a.layout;
var I=a.colorPalette;var J=a.overflowButton;var r=a.avatar;var P=a.onTap;var N=a.title;var u=a.channelName;var E=a.genre;var O=function(){var f;return z()!=="MINI_APP_LAYOUT_SQUARE"&&((f=I())==null?0:f.textPrimaryColor)?"color: "+LH(I().textPrimaryColor,".7"):""};
return _.B("div",{class:"yt-mini-game-card-view-model__card-metadata-wrapper"},_.B(_.g,{cond:r,then:function(){return _.B("div",{class:"yt-mini-game-card-view-model__avatar"},_.B(_.V0,{data:r},{avatarViewModel:_.ok}))}}),_.B(_.lq,{command:P,
className:"yt-mini-game-card-view-model__metadata-details"},_.B("h3",{class:"yt-mini-game-card-view-model__title",title:N},N),_.B(_.g,{cond:r,then:function(){return _.B("div",{class:"yt-mini-game-card-view-model__channel-metadata-line"},_.B("span",{class:"yt-mini-game-card-view-model__genre",title:u,style:O},u),_.B("span",{class:"yt-mini-game-card-view-model__genre-with-separator",style:O},E))},
else:function(){return _.B("span",{class:"yt-mini-game-card-view-model__genre",title:E},E)}})),_.B("div",{class:"yt-mini-game-card-view-model__overflow-button"},_.B(_.V0,{data:J},{buttonViewModel:function(f){var A=f.data;
return _.B(_.At,{data:function(){return Object.assign({},A(),{customFontColor:z()==="MINI_APP_LAYOUT_SINGLETON"?A().customFontColor:void 0})}})}})))},"oa"),DfX=_.ec(function(a){var z=a.colorPalette;
var I=a.isDesktopWeb;var J=a.onTap;var r=a.accessibilityText;var P=a.overlayBadgeText;var N=a.iconName;var u=a.unplayableInlinePlaybackIconName;var E=a.actionButton;a=a.imageData;return _.B("div",{class:"yt-mini-game-card-view-model__cinematic-background-wrapper"},_.B(T_w,{imageData:a,colorPalette:z}),_.B(dfG,{onTap:J,imageData:a,accessibilityText:r,overlayBadgeText:P,iconName:N,unplayableInlinePlaybackIconName:u,isDesktopWeb:I}),_.B(_.g,{cond:function(){return E==null?void 0:E()},
then:function(){return _.B(o9i,{actionButton:E})}}))},"pa"),Ufe=_.ec(function(a){var z=a.description;
var I=a.isDesktopWeb;var J=a.title;var r=a.genre;var P=a.onTap;var N=a.actionButton;var u=a.overflowButton;var E=a.avatar;a=a.channelName;var O={};O=_.B8("yt-mini-game-card-view-model--search-result-metadata-wrapper",(O["yt-mini-game-card-view-model--show-overflow-menu-on-hover"]=I,O["yt-mini-game-card-view-model--show-unplayable-on-hover"]=I,O["yt-mini-game-card-view-model--search-result-metadata-wrapper-mweb"]=function(){return!I()},O));
var f={};f=_.B8("yt-mini-game-card-view-model__search-result-info-row",(f["yt-mini-game-card-view-model__search-result-info-row-mweb"]=function(){return!I()},f));
return _.B("div",{class:O},_.B("div",{class:f},_.B(_.lq,{command:P,className:"yt-mini-game-card-view-model__metadata-details"},_.B("h3",{class:"yt-mini-game-card-view-model__title",title:J},J),_.B("span",{class:"yt-mini-game-card-view-model__genre",title:r},r)),_.B(o9i,{actionButton:N,wrapperClass:"yt-mini-game-card-view-model__search-result-action-button"}),_.B("div",{class:"yt-mini-game-card-view-model__overflow-button"},_.B(_.V0,{data:u},{buttonViewModel:_.At}))),_.B("div",{class:"yt-mini-game-card-view-model__search-result-channel-row"},
_.B("div",{class:"yt-mini-game-card-view-model--search-result-channel-name"},_.B("div",{class:"yt-mini-game-card-view-model__avatar"},_.B(_.V0,{data:E},{avatarViewModel:function(A){var n=A.data;return _.B(_.ok,{data:function(){return Object.assign({},n(),{avatarImageSize:I()?"AVATAR_SIZE_XS":"AVATAR_SIZE_M"})}})}})),_.B(_.lq,{command:P,
className:"yt-mini-game-card-view-model__description"},_.B("p",{class:"yt-mini-game-card-view-model__search-result-channel-text"},a)),_.B(_.lq,{command:P,className:"yt-mini-game-card-view-model__metadata-row-extra-endpoint",tabIndex:-1},_.B("div",null)))),_.B(_.g,{cond:I,then:function(){return _.B(_.lq,{command:P,className:"yt-mini-game-card-view-model__description"},z)}}))},"qa");_.Jf(R$w,"mini-game-card-view-model",{props:{data:_.zl,className:_.zl,useFullWidth:_.zl,isDesktopWeb:_.zl,addSearchResultTopMargin:_.zl}});_.Jf(Xml,"dismissed-mini-game-card-view-model",{props:{data:_.zl,useSquareAspectRatio:_.zl}});var jj=function(){var a=_.G.apply(this,arguments)||this;a.isSearch=!1;a.isRichGrid=!1;return a};
_.b(jj,_.G);_.Z=jj.prototype;_.Z.dismissibleItemReset=function(){this.isDismissed&&(this.isDismissed=!1);this.dismissedRenderer&&(this.dismissedRenderer=void 0)};
_.Z.dismissibleItemOnYtServiceRequestSent=function(a,z){z.actions&&this.dismissibleItemProcessActions(a,z.actions)};
_.Z.dismissibleItemOnRequestSent=function(){this.dismissibleItemReset()};
_.Z.dataChanged=function(){this.dismissibleItemReset()};
_.Z.dismissibleItemProcessActions=function(a,z){for(var I=0;I<z.length;I++){var J=z[I];_.H(J,_.SG)&&(this.dismissibleItemHandleReplaceEnclosingAction(_.H(J,_.SG)),a.stopPropagation())}};
_.Z.dismissibleItemHandleReplaceEnclosingAction=function(a){this.dismissedRenderer=a.item;this.isDismissed=!0};
_.eH.Object.defineProperties(jj.prototype,{useSquareAspectRatio:{configurable:!0,enumerable:!0,get:function(){var a;return((a=this.data)==null?void 0:a.layout)==="MINI_APP_LAYOUT_SQUARE"}},
showCard:{configurable:!0,enumerable:!0,get:function(){var a;return!!this.data&&!((a=this.dismissedRenderer)==null?0:a.notificationMultiActionRenderer)}},
showDismissed:{configurable:!0,enumerable:!0,get:function(){var a;return!((a=this.dismissedRenderer)==null||!a.notificationMultiActionRenderer)}}});
jj.prototype.dataChanged=jj.prototype.dataChanged;jj.prototype.dismissibleItemOnRequestSent=jj.prototype.dismissibleItemOnRequestSent;jj.prototype.dismissibleItemOnYtServiceRequestSent=jj.prototype.dismissibleItemOnYtServiceRequestSent;_.L([_.x(),_.p("design:type",Object)],jj.prototype,"data",void 0);_.L([_.x({reflectToAttribute:!0}),_.p("design:type",Object)],jj.prototype,"isSearch",void 0);_.L([_.x({reflectToAttribute:!0}),_.p("design:type",Boolean)],jj.prototype,"isDismissed",void 0);
_.L([_.x(),_.p("design:type",Object)],jj.prototype,"dismissedRenderer",void 0);_.L([_.x({reflectToAttribute:!0}),_.p("design:type",Object)],jj.prototype,"isRichGrid",void 0);_.L([_.S("data.layout"),_.p("design:type",Object),_.p("design:paramtypes",[])],jj.prototype,"useSquareAspectRatio",null);_.L([_.S("data","dismissedRenderer"),_.p("design:type",Object),_.p("design:paramtypes",[])],jj.prototype,"showCard",null);
_.L([_.S("data","dismissedRenderer"),_.p("design:type",Object),_.p("design:paramtypes",[])],jj.prototype,"showDismissed",null);_.L([_.gz("yt-service-request-sent"),_.p("design:type",Function),_.p("design:paramtypes",[CustomEvent,_.lJ]),_.p("design:returntype")],jj.prototype,"dismissibleItemOnYtServiceRequestSent",null);
_.L([_.gz("yt-service-request-sent-button-renderer"),_.p("design:type",Function),_.p("design:paramtypes",[CustomEvent]),_.p("design:returntype")],jj.prototype,"dismissibleItemOnRequestSent",null);_.L([_.O8("data"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],jj.prototype,"dataChanged",null);_.L([_.dz({disableElementRegistration:!0,is:"ytd-mini-game-card-view-model",isInjectionRoot:!0})],jj);
_.D(jj,"ytd-mini-game-card-view-model",function(){if(v9G!==void 0)return v9G;var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-mini-game-card-view-model--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<template is="dom-if" restamp="" if="[[showCard]]" class="style-scope ytd-mini-game-card-view-model"><mini-game-card-view-model add-search-result-top-margin="[[isSearch]]" data="[[data]]" is-desktop-web="" use-full-width="[[isRichGrid]]" class="style-scope ytd-mini-game-card-view-model"></mini-game-card-view-model></template><template is="dom-if" restamp="" if="[[showDismissed]]" class="style-scope ytd-mini-game-card-view-model"><dismissed-mini-game-card-view-model data="[[dismissedRenderer.notificationMultiActionRenderer]]" use-square-aspect-ratio="[[useSquareAspectRatio]]" class="style-scope ytd-mini-game-card-view-model"></dismissed-mini-game-card-view-model></template>');
a.content.insertBefore(_.w().content.cloneNode(!0),a.content.firstChild);return v9G=a},{mode:_.Np("kevlar_poly_si_batch_j081")?1:2});var l7f;var pm1;var zq=function(){return _.aA.apply(this,arguments)||this};
_.b(zq,_.aA);zq.prototype.trigger=function(){this.fire("yt-load-reload-continuation",this.getContinuationUrl.bind(this))};
zq.prototype.getContinuationUrl=function(a){var z={ctoken:this.data.continuation,continuation:this.data.continuation};this.data.clickTrackingParams&&(z.itct=this.data.clickTrackingParams);return _.yO(a,z)};
_.L([_.Q(_.k.YtRendererBehavior),_.p("design:type",Object)],zq.prototype,"ytRendererBehavior",void 0);_.L([_.x(),_.p("design:type",Object)],zq.prototype,"data",void 0);_.L([_.dz({is:"yt-reload-continuation",noInjection:!0})],zq);var wmf;var mfX;var I1=function(){var a=_.G.apply(this,arguments)||this;a.notificationData={};return a};
_.b(I1,_.G);_.Z=I1.prototype;_.Z.isMenuExpanded=function(a){return a&&a.length<=1?"undefined":"false"};
_.Z.dataChanged_=function(){this.selected=void 0;var a=this.computeSelectedIndex_(this.data);a>=0&&(this.selected=a);a=this.data&&this.data.length>1;_.CM(this.hostElement,"has-items",a);_.PK(this.hostElement).querySelector("#label").tabIndex=a?0:-1};
_.Z.onDropdownOpen=function(){var a=_.TX();if(this.parentTrackingParams&&this.data){var z=_.VX(this.parentTrackingParams);this.data.forEach(function(I){a&&z&&I.trackingParams&&(I=_.VX(I.trackingParams),_.Lt(a,z,I),_.we(a,[I]))})}else this.parentTrackingParams||_.Xd(new _.Fn("No parent tracking params passed in for yt-dropdown-menu."))};
_.Z.hasNotification=function(a){var z;if(a.targetId&&((z=this.notificationData)==null?0:z.targetId)){var I;return a.targetId===((I=this.notificationData)==null?void 0:I.targetId)}};
_.Z.computeSelectedIndex_=function(a){if(a)for(var z=0,I=a.length;z<I;z++)if(a[z].selected)return z;return-1};
_.Z.computeLabel_=function(a){return this.data&&a!=void 0?this.data[a].title:""};
_.Z.computeShowIcon_=function(a,z){return!z&&!!a};
_.Z.computeVerticalOffset_=function(a){return a?36:0};
_.Z.computeEndpoint_=function(a){return a.endpoint||a.navigationEndpoint};
_.Z.onLabelClick_=function(a){this.data&&this.data.length<=1?a.stopPropagation():this.menuExpanded="true"};
_.Z.onIronActivate_=function(a){a=a.detail.item;var z=_.PK(this.hostElement).querySelector("#repeat").itemForElement(a);if(z&&z.trackingParams){var I=_.TX(),J=_.VX(z.trackingParams);I&&_.ys(I,J)}if(z&&z.serviceEndpoint)_.K("web_use_resolve_command_for_service_endpoint_in_dropdown_killswitch")?this.ytComponentBehavior.resolveCommand(z.serviceEndpoint):_.N$(this.hostElement,[z.serviceEndpoint]),_.PA(this.hostElement,"yt-playlist-reloading");else a:{if((z=a.querySelector("yt-supported-renderers"))&&
(z=z.rendererElement)&&z.is=="yt-reload-continuation"){z.trigger();break a}(a=a.querySelector("yt-reload-continuation"))&&a.trigger()}};
_.Z.onTap_=function(a){a.preventDefault()};
_.Z.onItemTap_=function(a){this.ytEndpointBehavior.onEndpointTap_(a)};
_.Z.onLinkFocus_=function(a){try{var z=a.target}catch(J){}if(z){var I=z.querySelector("tp-yt-paper-item");I&&_.pM(this,"focus",function(){I.focus()})}};
_.Z.onMenuClose_=function(){this.menuExpanded="false"};
_.Z.isLabelIconActive_=function(a){return a==="true"};
_.Z.computeHasSubtitle_=function(a){return!!a};
_.Z.computeHrefForItem_=function(a){return this.ytComponentBehavior.computeHref_(this.computeEndpoint_(a))};
_.Z.updateSelectedFromBinding=function(a){this.selected=a.detail.value};
_.eH.Object.defineProperties(I1.prototype,{computedAriaLabel:{configurable:!0,enumerable:!0,get:function(){return this.useComputedAriaLabel&&this.selected!==void 0?this.ariaLabel+": "+this.data[this.selected].title:this.ariaLabel}}});
I1.prototype.onMenuClose_=I1.prototype.onMenuClose_;I1.prototype.onTap_=I1.prototype.onTap_;I1.prototype.onIronActivate_=I1.prototype.onIronActivate_;I1.prototype.onDropdownOpen=I1.prototype.onDropdownOpen;I1.prototype.dataChanged_=I1.prototype.dataChanged_;_.L([_.Q(_.Ms.YtComponentBehavior),_.p("design:type",Object)],I1.prototype,"ytComponentBehavior",void 0);_.L([_.Q(_.FW.YtEndpointBehavior),_.p("design:type",Object)],I1.prototype,"ytEndpointBehavior",void 0);
_.L([_.x(),_.p("design:type",Array)],I1.prototype,"data",void 0);_.L([_.x(),_.p("design:type",Object)],I1.prototype,"parentTrackingParams",void 0);_.L([_.x(),_.p("design:type",Object)],I1.prototype,"selected",void 0);_.L([_.x({value:!1}),_.p("design:type",Boolean)],I1.prototype,"useLabel",void 0);_.L([_.x({value:!1}),_.p("design:type",Boolean)],I1.prototype,"useComputedAriaLabel",void 0);_.L([_.x(),_.p("design:type",String)],I1.prototype,"icon",void 0);
_.L([_.x({reflectToAttribute:!0}),_.p("design:type",String)],I1.prototype,"iconLabel",void 0);_.L([_.x(),_.p("design:type",String)],I1.prototype,"ariaLabel",void 0);_.L([_.x({value:!1,reflectToAttribute:!0}),_.p("design:type",Boolean)],I1.prototype,"disabled",void 0);_.L([_.x({computed:"isMenuExpanded(data)"}),_.p("design:type",String)],I1.prototype,"menuExpanded",void 0);_.L([_.x({value:!1}),_.p("design:type",Boolean)],I1.prototype,"closeOnActivate",void 0);
_.L([_.x({reflectToAttribute:!0,value:_.K("web_modern_buttons")}),_.p("design:type",Boolean)],I1.prototype,"modernButtons",void 0);_.L([_.x(),_.p("design:type",Object)],I1.prototype,"notificationData",void 0);_.L([_.S("ariaLabel, selected"),_.x(),_.p("design:type",String),_.p("design:paramtypes",[])],I1.prototype,"computedAriaLabel",null);_.L([_.O8("data"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],I1.prototype,"dataChanged_",null);
_.L([_.gz("paper-dropdown-open"),_.p("design:type",Function),_.p("design:paramtypes",[Event]),_.p("design:returntype")],I1.prototype,"onDropdownOpen",null);_.L([_.gz("iron-activate"),_.p("design:type",Function),_.p("design:paramtypes",[Event]),_.p("design:returntype")],I1.prototype,"onIronActivate_",null);_.L([_.gz("tap"),_.p("design:type",Function),_.p("design:paramtypes",[CustomEvent]),_.p("design:returntype")],I1.prototype,"onTap_",null);
_.L([_.gz("iron-overlay-closed"),_.p("design:type",Function),_.p("design:paramtypes",[Event]),_.p("design:returntype")],I1.prototype,"onMenuClose_",null);_.L([_.dz({is:"yt-dropdown-menu",disableElementRegistration:!0})],I1);
_.D(I1,"yt-dropdown-menu",function(){if(mfX===void 0){var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-dropdown-menu--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.yt_dropdown_menu.yt.dropdown.menu.css.js--\x3e<tp-yt-paper-menu-button close-on-activate="[[closeOnActivate]]" disabled="[[disabled]]" dynamic-align="" expand-sizing-target-for-scrollbars="" horizontal-align="[[horizontalAlign]]" vertical-offset="[[computeVerticalOffset_(icon)]]" class="style-scope yt-dropdown-menu">\n  <tp-yt-paper-button id="label" class="dropdown-trigger style-scope yt-dropdown-menu" slot="dropdown-trigger" aria-expanded$="[[menuExpanded]]" aria-label$="[[computedAriaLabel]]" on-tap="onLabelClick_">\n    <template is="dom-if" if="[[computeShowIcon_(icon, useLabel)]]" class="style-scope yt-dropdown-menu">\n      <yt-icon id="label-icon" active="[[isLabelIconActive_(menuExpanded)]]" icon="[[icon]]" class="style-scope yt-dropdown-menu">\n      </yt-icon>\n      <div id="icon-label" class="style-scope yt-dropdown-menu">[[iconLabel]]</div>\n    </template>\n    <template is="dom-if" if="[[useLabel]]" class="style-scope yt-dropdown-menu">\n      <div id="label-text" style-target="label-text" class="style-scope yt-dropdown-menu">[[computeLabel_(selected)]]</div>\n      <yt-icon id="label-icon" icon="expand" class="style-scope yt-dropdown-menu">\n      </yt-icon>\n    </template>\n  </tp-yt-paper-button>\n  <tp-yt-paper-listbox id="menu" class="dropdown-content style-scope yt-dropdown-menu" slot="dropdown-content" selected="[[selected]]" on-selected-changed="updateSelectedFromBinding">\n    <template id="repeat" is="dom-repeat" items="[[data]]" class="style-scope yt-dropdown-menu">\n      <a class="yt-simple-endpoint style-scope yt-dropdown-menu" href$="[[computeHrefForItem_(item)]]" data="[[computeEndpoint_(item)]]" on-focus="onLinkFocus_" on-tap="onItemTap_">\n        <tp-yt-paper-item class="style-scope yt-dropdown-menu">\n          <tp-yt-paper-item-body two-line$="[[computeHasSubtitle_(item.subtitle)]]" class="style-scope yt-dropdown-menu">\n            <div id="item-with-badge" class="style-scope yt-dropdown-menu">\n              <div class="item style-scope yt-dropdown-menu">[[item.title]]\n                <span class="notification style-scope yt-dropdown-menu" hidden$="[[!hasNotification(item,notificationData)]]"></span>\n              </div>\n              <ytd-badge-supported-renderer hidden="[[!item.badge]]" top-standalone-badge="[[item.badge]]" class="style-scope yt-dropdown-menu">\n              </ytd-badge-supported-renderer>\n            </div>\n            <div secondary="" id="subtitle" hidden="[[!computeHasSubtitle_(item.subtitle)]]" class="style-scope yt-dropdown-menu">\n              [[item.subtitle]]\n            </div>\n          </tp-yt-paper-item-body>\n          <yt-reload-continuation data="[[item.continuation.reloadContinuationData]]" class="style-scope yt-dropdown-menu">\n          </yt-reload-continuation>\n        </tp-yt-paper-item>\n      </a>\n    </template>\n  </tp-yt-paper-listbox>\n</tp-yt-paper-menu-button>\n');a.content.insertBefore(_.w().content.cloneNode(!0),
a.content.firstChild);var z=a.content,I=z.insertBefore;wmf===void 0&&(wmf=document.createElement("template"));var J=wmf;I.call(z,J.content.cloneNode(!0),a.content.firstChild);mfX=a}a=mfX;return a},{mode:2});var J0=function(){var a=_.G.apply(this,arguments)||this;a.hasNotification=!1;return a};
_.b(J0,_.G);J0.prototype.computeId=function(a){return a};
J0.prototype.computeHorizontalAlign=function(a){return a?"right":"left"};
J0.prototype.computeAccessibilityLabel=function(a){var z,I;return((z=a.accessibility)==null?void 0:(I=z.accessibilityData)==null?void 0:I.label)||null};
J0.prototype.notificationDataChanged=function(){var a;this.hasNotification=!!this.notificationData&&!((a=this.data)==null?0:a.icon)};
J0.prototype.notificationDataChanged=J0.prototype.notificationDataChanged;_.L([_.Q(_.k.YtRendererBehavior),_.p("design:type",Object)],J0.prototype,"ytRendererBehavior",void 0);_.L([_.Q(_.ko.YtLiveChatTooltipTargetingBehavior),_.p("design:type",Object)],J0.prototype,"ytLiveChatTooltipTargetingBehavior",void 0);_.L([_.x(),_.p("design:type",Object)],J0.prototype,"data",void 0);_.L([_.x({computed:"computeId(data.targetId)",reflectToAttribute:!0}),_.p("design:type",String)],J0.prototype,"id",void 0);
_.L([_.x({value:!1}),_.p("design:type",Boolean)],J0.prototype,"isRightAligned",void 0);_.L([_.x({value:!1,reflectToAttribute:!0}),_.p("design:type",Boolean)],J0.prototype,"disabled",void 0);_.L([_.x({value:!1}),_.p("design:type",Boolean)],J0.prototype,"closeOnActivate",void 0);_.L([_.x(),_.p("design:type",Object)],J0.prototype,"notificationData",void 0);_.L([_.x(),_.p("design:type",Object)],J0.prototype,"hasNotification",void 0);
_.L([_.x({value:!1}),_.p("design:type",Boolean)],J0.prototype,"useComputedAriaLabel",void 0);_.L([_.O8("notificationData"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],J0.prototype,"notificationDataChanged",null);_.L([_.dz({is:"yt-sort-filter-sub-menu-renderer",disableElementRegistration:!0})],J0);
_.D(J0,"yt-sort-filter-sub-menu-renderer",function(){if(pm1===void 0){var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-sort-filter-sub-menu-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.sections.yt_sort_filter_sub_menu_renderer.yt.sort.filter.sub.menu.renderer.css.js--\x3e<tp-yt-paper-tooltip class="style-scope yt-sort-filter-sub-menu-renderer">[[data.tooltip]]</tp-yt-paper-tooltip>\n<yt-dropdown-menu aria-label="[[computeAccessibilityLabel(data)]]" close-on-activate="[[closeOnActivate]]" data="[[data.subMenuItems]]" disabled="[[disabled]]" horizontal-align="[[computeHorizontalAlign(isRightAligned)]]" icon="[[data.icon.iconType]]" icon-label="[[data.title]]" notification-data="[[notificationData]]" parent-tracking-params="[[data.trackingParams]]" use-computed-aria-label="[[useComputedAriaLabel]]" use-label="[[!data.icon.iconType]]" class="style-scope yt-sort-filter-sub-menu-renderer">\n</yt-dropdown-menu>\n<div id="notification" hidden$="[[!hasNotification]]" class="style-scope yt-sort-filter-sub-menu-renderer"></div>');a.content.insertBefore(_.w().content.cloneNode(!0),
a.content.firstChild);var z=a.content,I=z.insertBefore;l7f===void 0&&(l7f=document.createElement("template"));var J=l7f;I.call(z,J.content.cloneNode(!0),a.content.firstChild);pm1=a}a=pm1;return a},{mode:2});_.IG(H9E);var yUJ=_.ec(function(a){var z=a.data;var I=_.g4(function(){var P=z().onTap;(P=_.H(P,_.Wl))&&_.ab().resolve(_.j6).resolveCommand(P);return!1}),J=function(){return{sources:[{url:z().thumbnailUrl,
width:120,height:90}]}},r=function(){return z().rating&&z().ratingA11yLabel&&z().reviewsCount&&z().reviewsCountA11yLabel};
return _.B("place-data-view-model",null,_.B(_.g,{cond:function(){return z().placeName&&z().placeCategory},
then:function(){return _.B("div",{class:"yt-spec-place-data-view-model-shape","on:click":I},_.B(_.qp,{data:J,alt:"",targetWidth:120,targetHeight:90,className:"yt-spec-place-data-view-model-shape__thumbnail"}),_.B(_.lq,{className:"yt-spec-place-data-view-model-shape__place-link",command:function(){return z().onTap}},_.B("h3",{class:"yt-spec-place-data-view-model-shape__name",
title:function(){return z().placeName}},function(){return z().placeName})),_.B("div",{class:"yt-spec-place-data-view-model-shape__metadata"},_.B(_.g,{cond:r,
then:function(){return _.B("div",{class:_.B8("yt-spec-place-data-view-model-shape__metadata-row","yt-spec-place-data-view-model-shape__metadata-row-ratings")},_.B("span",{class:"score",title:function(){return z().ratingA11yLabel}},function(){return z().rating}),_.B("span",{class:"yt-spec-place-data-view-model-shape__metadata-row-star-icon"},_.B(_.nS,{icon:"STAR",
active:!0,style:"width: 14px; height: 14px; color: #fabb05"})),_.B("span",{class:"yt-spec-place-data-view-model-shape__metadata-row-reviews",title:function(){return z().reviewsCountA11yLabel}},function(){return z().reviewsCount}))},
else:function(){return _.B("div",{class:_.B8("yt-spec-place-data-view-model-shape__metadata-row","yt-spec-place-data-view-model-shape__metadata-row-ratings")})}}),_.B("div",{class:_.B8("yt-spec-place-data-view-model-shape__metadata-row","yt-spec-place-data-view-model-shape__metadata-row-categories")},_.B("span",{class:"category",
title:function(){return z().placeCategory}},function(){return z().placeCategory}))))}}))},"ra"),kCw=_.K("web_enable_sink_place_data_view_model_ks")?_.fS(H9E):yUJ;
yUJ.idomCompat=!0;_.Jf(kCw,"place-data-view-model",{props:{data:_.zl}});var MZj=new _.I4("INLINE_PLAYBACK_HOOK_TOKEN");var cUJ=function(a){this.setActiveSlideIndex=a;this.jobIds=[];this.isSlideshowPlaying=!1},e$w=function(a,z){a.isSlideshowPlaying||(a.isSlideshowPlaying=!0,Y0I(a),q0J(a,z,0))},Y0I=function(a){_.NK(_.GW,function(){a.setActiveSlideIndex(0)},1)},q0J=function(a,z,I){a.jobIds.push(_.NK(_.GW,function(){var J=I<z-1?I+1:0;
a.setActiveSlideIndex(J);q0J(a,z,J)},1800))};var agG=new _.I4("IMAGE_ON_LOAD_HANDLER_TOKEN");var jiI=_.ec(function(a){return _.B("animated-thumbnail-overlay-view-model",{class:"ytAnimatedThumbnailOverlayViewModelHost"},_.B(_.g,{cond:function(){var z;return(z=a.data())==null?void 0:z.thumbnail},
then:function(z){return _.B(_.qp,{data:z,alt:"",contentMode:"CONTENT_MODE_SCALE_ASPECT_FILL",hideOn404:!0})}}))},"sa");_.zr1=_.ec(function(a){var z=a.data;var I=a.lockupExperiments;a={};return _.B("thumbnail-overlay-button-view-model",{class:"ytThumbnailOverlayButtonViewModelHost"},_.B("div",{class:_.B8("ytThumbnailOverlayButtonViewModelButton",(a.ytThumbnailOverlayButtonViewModelButtonLegacyIcon=function(){var J;return I&&((J=I())==null?void 0:J.useLegacySizedIconButton)},a))},_.B(_.V0,{data:function(){return z().overlayButton}},{buttonViewModel:function(J){return _.B(_.At,{data:J.data,
buttonOverrides:function(){var r;return I&&((r=I())==null?0:r.useLegacySizedIconButton)?{iconPosition:"icon-only-40",customColors:{backgroundColor:"rgba(0,0,0,0.6)"},ariaHidden:!0}:void 0}})}})))},"ta");
_.zr1.idomCompat=!0;var Igj=_.ec(function(a){return _.B("yt-thumbnail-hover-overlay-toggle-actions-view-model",{class:"ytThumbnailHoverOverlayToggleActionsViewModelHost","on:click":_.g4(function(z){z.preventDefault();return!1})},_.B(_.V0,{data:function(){return a.data().buttons}},{toggleButtonViewModel:function(z){return _.B("div",{class:"ytThumbnailHoverOverlayToggleActionsViewModelButton"},_.B(_.Wc,{data:z.data}))}}))},"ua");
Igj.idomCompat=!0;var Jbw=_.ec(function(a){var z=function(){var I;return((I=_.H(a.data().rendererContext,_.Vw))==null?void 0:I.label)||""};
return _.B("yt-thumbnail-overlay-full-view-model",{class:"ytThumbnailOverlayFullViewModelHost"},_.B(_.g,{cond:function(){return a.data().image},
then:function(){return _.B("div",{class:"ytThumbnailOverlayFullViewModelIcon"},_.B(_.qp,{data:function(){return a.data().image},
alt:z}))}}),_.B(_.g,{cond:function(){return a.data().text},
then:function(){return _.B("div",{class:"ytThumbnailOverlayFullViewModelText"},function(){return a.data().text})}}))},"va");_.rW=_.ec(function(a){var z=[],I=function(){var n,F;return lB$((n=a.width)==null?void 0:n.call(a),(F=a.height)==null?void 0:F.call(a))},J=_.ab().resolve(_.eL(agG)),r=_.Mm("yt-thumbnail-view-model",function(){z.push("elRef.value set");
var n;(n=a.playbackRef)==null||n.call(a,{thumbnailElRef:r,thumbnail:a.data().image,thumbnailOverlays:a.data().overlays,thumbnailSize:I()})});
_.QO(function(){z.push("onInit");_.V3(function(){z.push("onCleanup")})});
var P=_.o5(h$d),N=function(){var n,F;return(F=(n=a.aspectRatio)==null?void 0:n.call(a))!=null?F:0},u=function(){return(a.data().image?_.fQ0(a.data().image):N())<=1&&N()===0},E=function(){return u()?"CONTENT_MODE_SCALE_ASPECT_FIT":"CONTENT_MODE_SCALE_ASPECT_FILL"},O=function(){r.value||_.Xd(new _.Fn("Thumbnail elRef.value is null",z.join("\n")));
J&&r.value&&J(r.value)},f=function(){var n,F;
return((n=a.hovered)==null?void 0:n.call(a))&&I()!=="large"&&((F=a.data().overlays)==null?void 0:F.some(function(h){return _.H(h,wwX)}))},A={};
return _.B("yt-thumbnail-view-model",{class:_.B8("yt-thumbnail-view-model",a.className,function(){return S0m(N())},function(){var n,F;
a:{var h=I(),v=(n=a.disableRounding)==null?void 0:n.call(a);n=(F=a.isClip)==null?void 0:F.call(a);if(!v&&!n)switch(h){case "large":F="yt-thumbnail-view-model--large";break a;case "small":F="yt-thumbnail-view-model--small";break a;default:F="yt-thumbnail-view-model--medium";break a}F=void 0}return F},(A["yt-thumbnail-view-model--cinematic"]=u,A)),
style:_.sW({"background-color":function(){var n,F=u()?(n=a.data().backgroundColor)==null?void 0:n.lightTheme:void 0;return F?LH(F,"1"):void 0}}),
el:r},_.B(_.g,{cond:u,then:function(){return _.B("div",{class:"yt-thumbnail-view-model__blurred-image"},_.B(_.qp,{data:function(){return a.data().image},
alt:"",contentMode:E,targetWidth:a.width,onload:O}))}}),_.B("div",{class:"yt-thumbnail-view-model__image"},_.B(_.qp,{data:function(){return a.data().image},
alt:"",contentMode:E,targetWidth:a.width,onload:O}),null),_.B(_.V0,{data:function(){return f()?void 0:a.data().overlays},
allowIncompleteMapping:!0},{thumbnailOverlayTitleViewModel:Z9X,thumbnailOverlayBadgeViewModel:function(n){return _.B(CVe,{data:n.data,thumbnailSize:I,isClip:a.isClip})},
thumbnailBottomOverlayViewModel:function(n){return _.B(I7G,{data:n.data,thumbnailSize:I,isClip:a.isClip})},
thumbnailOverlayFullViewModel:Jbw,thumbnailOverlayButtonViewModel:function(n){return _.B(_.zr1,{data:n.data,lockupExperiments:a.lockupExperiments})}}),_.B(_.V0,{data:function(){var n;
return((n=a.hovered)==null?0:n.call(a))?a.data().overlays:void 0},
allowIncompleteMapping:!0},{thumbnailHoverOverlayViewModel:function(n){return _.B(WI,{data:n.data,alwaysShow:!0})},
thumbnailHoverOverlayToggleActionsViewModel:Igj}),_.B(_.V0,{data:function(){var n;return((n=a.hovered)==null?0:n.call(a))&&P()?a.data().overlays:void 0},
allowIncompleteMapping:!0},{animatedThumbnailOverlayViewModel:jiI}),_.B(_.g,{cond:a.isClip,then:function(){return _.B("div",{class:"yt-pinking"},_.B("svg",{class:"yt-pinking__pinking-left"},_.B("defs",null,_.B("pattern",{id:"left-pattern",width:"4",height:"8",patternUnits:"userSpaceOnUse"},_.B("polygon",{class:"yt-pinking__pinking",points:"0,0 4,4 0,8"}))),_.B("rect",{fill:"url(#left-pattern)",width:"4",height:"100%"})),_.B("svg",{class:"yt-pinking__pinking-right"},_.B("defs",null,_.B("pattern",{id:"right-pattern",
width:"4",height:"8",patternUnits:"userSpaceOnUse"},_.B("polygon",{class:"yt-pinking__pinking",points:"4,0 0,4 4,8"}))),_.B("rect",{fill:"url(#right-pattern)",width:"4",height:"100%"})))}}))},"wa");
_.rW.idomCompat={callbacks:{playbackRef:!0}};var rbE=_.ec(function(a){var z=_.C(_.CW(-1,void 0,"IOLZ0b")),I=z.next().value,J=z.next().value;_.QO(function(){var r=new cUJ(J);e$w(r,a.data().thumbnails.length);_.V3(function(){if(r.isSlideshowPlaying){r.isSlideshowPlaying=!1;for(var P=r.jobIds,N=0,u=P.length;N<u;N++)_.GW.cancelJob(P[N]);r.jobIds.length=0}})});
return _.B("yt-collection-thumbnail-slideshow",{class:"yt-collection-thumbnail-slideshow"},_.B(_.V0,{data:function(){return a.data().thumbnails}},{thumbnailViewModel:function(r,P){return _.B("div",{class:function(){var N=!a.data().primaryThumbnail,u=P(),E=I(),O=["yt-collection-thumbnail-slideshow__slideshow-thumbnail"];
N&&u===0&&O.push("yt-collection-thumbnail-slideshow--first-slide");u<=E&&O.push("yt-collection-thumbnail-slideshow--show-slide");return O.join(" ")}},_.B(_.rW,{data:r.data,
disableRounding:a.disableRounding}))}}))},"xa");
rbE.idomCompat=!0;var i9G=new _.I4("DWELL_DETECTOR_REGISTRY_TOKEN");var Zgv=_.ec(function(a){var z=xfd(a.triggeringElement),I=function(){return!!a.data().primaryThumbnail},J=function(){var P,N=(P=a.data())==null?void 0:P.maxHeight,u;
P=(u=a.maxHeight)==null?void 0:u.call(a);return N!=null&&P!=null?Math.min(N,P):P!=null?P:N},r=function(){var P=J();
if(P){var N;if(I()&&(N=a.includeStackHeight)!=null&&N.call(a)){var u;N=((u=a.doubleStack)==null?0:u.call(a))?8:4}else N=0;P=P-N-1;if(!(P<0)){u=Math;N=u.ceil;var E,O;var f=LMm((O=(E=a.aspectRatio)==null?void 0:E.call(a))!=null?O:0);return N.call(u,P*f)}}};
return _.B("yt-collection-thumbnail-view-model",{class:"yt-collection-thumbnail-view-model","aria-hidden":"true",style:_.sW({height:function(){return J()?J()+"px":void 0},
width:function(){return r()?r()+"px":void 0}})},_.B(PTw,{stackEnabled:I,
thumbnailSize:function(){var P,N;return lB$((P=a.width)==null?void 0:P.call(a),(N=a.height)==null?void 0:N.call(a))},
doubleStack:a.doubleStack,stackColor:function(){return a.data().stackColor},
includeStackHeight:a.includeStackHeight},_.B(_.V0,{data:function(){return a.data().primaryThumbnail}},{thumbnailViewModel:function(P){var N={};
return _.B(_.rW,{data:P.data,width:a.width,height:a.height,aspectRatio:a.aspectRatio,disableRounding:a.disableRounding,className:_.B8((N["yt-collection-thumbnail-view-model--has-stacks"]=I,N)),hovered:a.hovered,playbackRef:a.playbackRef})}}),_.B(_.g,{cond:function(){var P;
return z()&&((P=a.data().thumbnails)==null?void 0:P.length)},
then:function(){return _.B("div",{class:"yt-collection-thumbnail-view-model__slideshow"},_.B(rbE,{data:a.data,disableRounding:function(){return!I()}}))}})))},"ya");
Zgv.idomCompat={callbacks:{playbackRef:!0}};
var PTw=_.ec(function(a){var z=a.children;var I=a.stackEnabled;var J=a.thumbnailSize;var r=a.doubleStack;var P=a.stackColor;var N=a.includeStackHeight;var u,E=(u=_.ab().resolve(_.eL(_.kN)))==null?void 0:u();return _.B(_.g,{cond:I,then:function(){return _.B($x1,{data:function(){var O,f;return{experimentEnabled:!0,thumbnailSize:J(),doubleStack:r==null?void 0:r(),color:E?P==null?void 0:(O=P())==null?void 0:O.darkTheme:P==null?void 0:(f=P())==null?void 0:f.lightTheme,enableResponsiveMode:!1,includeStackHeight:N==
null?void 0:N()}}},z)},
else:function(){return z}})},"za");var CTO=new _.I4("EXPANDABLE_METADATA_VIEW_MODEL_TOKEN");var ZX;_.PX={calledOnce:!0,state:"visible"};ZX={calledOnce:!0,state:"hidden"};_.C0=_.ec(function(a){var z=a.data;var I=a.customCommandResolver;var J=a.className;var r=a.delayedClassName;var P=a.animationEntityKey;var N=a.isCompactWidth;a=_.C(_.CW(!1,void 0,"aSkCmb"));var u=a.next().value,E=a.next().value,O=_.Yi(P,""),f=_.KU(Tl1,O),A=function(){var nG,bG;return(bG=(nG=f())==null?void 0:nG.value)!=null?bG:!1},n=function(){_.cK(_.Q0("booleanEntity",O(),{key:O(),
value:!0}));m=void 0};
P=_.C(_.Af(A));var F=P.next().value,h=P.next().value;P=_.C(_.Af(A));var v=P.next().value,d=P.next().value;P=_.C(_.Af(function(){var nG;return A()?(nG=z().styleTransitionConfig)==null?void 0:nG.destinationStyle:void 0}));
var W=P.next().value,l=P.next().value,q=function(){var nG=Object.assign({},z(),W()&&{style:W()});var bG,Hp,LG=nG.label,oE=(bG=nG.interaction)==null?void 0:(Hp=bG.accessibility)==null?void 0:Hp.label;bG=nG.iconImage?nG.label&&nG.label.content?nG.iconLeading?"leading":"trailing":"icon-only":void 0;nG={formattedButtonText:LG,accessibilityLabel:oE,style:XmG(nG.style),type:T_E(nG.style),state:"active",size:$f1(nG.size),iconPosition:bG,disabled:!1,aTagConfig:GC7(nG,I)};_.K("enable_desktop_vdcbg_components")&&
(nG.focused=u());return nG},m;
P=_.z$({visibilityCallback:function(nG){var bG,Hp=(bG=z().interaction)==null?void 0:bG.onFirstVisible;nG&&Hp&&_.lN(Hp)},
showOption:_.PX});var M=function(){return cOm(q(),!!z().iconImage)};
a={};J=_.B8(function(){return"ytwAdButtonViewModelHost"},function(){return z().delayedAppearanceConfig?"ytwAdButtonViewModelHostHasAnimation":""},function(){var nG=!!z().delayedAppearanceConfig,bG=F();
return nG?bG?"ytwAdButtonViewModelFullHeight":"ytwAdButtonViewModelNoHeight":""},function(){var nG=!!z().delayedAppearanceConfig,bG=v();
return nG?bG?"ytwAdButtonViewModelShow":"ytwAdButtonViewModelHide":""},function(){return!z().delayedAppearanceConfig||F()?r==null?void 0:r():""},(a.ytwAdButtonViewModelHostCompactWidth=function(){return N==null?void 0:N()},a),J!=null?J:"");
var y=function(){var nG,bG=(nG=z().delayedAppearanceConfig)==null?void 0:nG.delayedInvisibleSeconds;bG&&(m=_.xc(_.GW,function(){h(!0);e()},bG*1E3))},e=function(){var nG,bG=(nG=z().delayedAppearanceConfig)==null?void 0:nG.delayedVisibleSeconds;
bG&&(m=_.xc(_.GW,function(){d(!0);Bp()},bG*1E3))},Bp=function(){var nG,bG=(nG=z().styleTransitionConfig)==null?void 0:nG.styleTransitionSeconds,Hp,LG=(Hp=z().styleTransitionConfig)==null?void 0:Hp.destinationStyle;
bG&&LG?m=_.xc(_.GW,function(){l(LG);n()},bG*1E3):n()},Em=function(){var nG;
return(nG=z().delayedAppearanceConfig)==null?void 0:nG.transitionDurationSeconds};
_.QO(function(){y()});
_.V3(function(){m&&_.GW.cancelJob(m)});
return _.B("ad-button-view-model",{"on:focusin":_.g4(_.K("enable_desktop_vdcbg_components")?function(){var nG=_.ab().resolve(_.eL(_.ET));nG&&E(nG.isKeyBoardInUse());return!1}:void 0),
"on:focusout":_.g4(_.K("enable_desktop_vdcbg_components")?function(){E(!1);return!1}:void 0),
class:J,el:_.a5(P),style:_.sW({"transition-duration":function(){return Em()?Em()+"s":void 0}})},_.B(_.g,{cond:q,
then:function(){return _.B(_.f_,{data:q,icon:function(){return _.B(_.g,{cond:function(){return z().iconImage},
then:function(nG){return _.B(_.qp,{data:nG,alt:"",targetWidth:M,targetHeight:M,preserveWidth:!0,preserveHeight:!0})}})}})}}))},"Aa");var NKw=_.ec(function(a){var z=a.data;a=function(){return z().style==="AD_BUTTON_GROUP_STYLE_COMPACT_WIDTH"};
var I=_.z$({visibilityCallback:function(P){var N,u=(N=z().interaction)==null?void 0:N.onFirstVisible;P&&u&&_.lN(u)},
showOption:_.PX}),J={},r={};return _.B("ad-button-group-view-model",{class:_.B8("ytwAdButtonGroupViewModelHost",(J.ytwAdButtonGroupViewModelHostCompactWidth=a,J)),el:_.a5(I)},_.B("div",{class:_.B8("ytwAdButtonGroupViewModelHostSecondaryButton",(r.ytwAdButtonGroupViewModelHostCompactWidthSecondaryButton=a,r))},_.B(_.V0,{data:function(){return z().secondaryAdButton}},{adButtonViewModel:function(P){return _.B(_.C0,{data:P.data})}})),_.B("div",{class:"ytwAdButtonGroupViewModelHostPrimaryButton"},_.B(_.V0,
{data:function(){return z().primaryAdButton}},{adButtonViewModel:function(P){return _.B(_.C0,{data:P.data})}})))},"Ba");var t3w=_.ec(function(a){var z=function(){var I;return((I=a.data())==null?void 0:I.answers)||[]};
return _.B("yt-survey-icons",{class:"ytSurveyIconsHost"},_.B("div",{class:"ytSurveyIconsHeader"},_.B("div",{class:"ytSurveyIconsTitle"},function(){var I;return(I=a.data())==null?void 0:I.text}),_.B("div",null,_.B(_.f_,{data:function(){return{style:"mono",
type:"text",state:"active",size:"M",iconPosition:"icon-only",onTap:function(){var I;(I=a.onDismiss)==null||I.call(a)}}},
iconName:"DISMISSAL"}))),_.B("div",null,_.B("div",{class:"ytSurveyIconsAnswers"},_.B(_.se,{each:function(){return z()},
keyBy:"INDEX"},function(I,J){return _.B("div",null,_.B(_.f_,{data:function(){return{style:"mono",type:"text",state:"active",size:"XL",iconPosition:"icon-only",onTap:function(){var r;(r=a.onSelect)==null||r.call(a,I(),J)}}},
icon:function(){return _.B(_.nS,{icon:function(){var r,P;return(r=I())==null?void 0:(P=r.icon)==null?void 0:P.iconType},
className:"ytSurveyIconsIcon"})}}))})),_.B("div",{class:"ytSurveyIconsAnswersText"},_.B("div",null,function(){return z().length?z()[0].text:""}),_.B("div",null,function(){return z().length?z()[z().length-1].text:""}))))},"Ca");var u2e=_.ec(function(a){var z=_.a5(_.UN(function(){var E;return(E=a.data())==null?void 0:E.rendererContext},void 0,void 0,void 0,!0)),I=_.C(_.CW(!1,void 0,"YxWRNc")),J=I.next().value,r=I.next().value,P=_.KU(bCO,function(){var E;
return(E=a.data().keys)==null?void 0:E.surveyEntityKey}),N=_.KU(h_G,function(){var E;
return(E=a.data().keys)==null?void 0:E.surveyStateEntityKey});
_.k0("ytd-slimline-survey-show-action",function(){r(!1)});
var u=function(){var E,O;var f=(E=N())==null?void 0:(O=E.questionStack)==null?void 0:O[0];if(f!==void 0){var A,n;return(A=P())==null?void 0:(n=A.questions)==null?void 0:n[f]}};
I={};return _.B("yt-slimline-survey-view-model",{el:z,class:_.B8("ytSlimlineSurveyViewModelHost",(I.ytSlimlineSurveyViewModelCollapsed=function(){return J()},I))},_.B("div",{class:"ytSlimlineSurveyViewModelContainer"},_.B(_.g,{cond:function(){var E;
return((E=u())==null?void 0:E.layout)==="SURVEY_LAYOUT_TYPE_ICONS"},
then:function(){return _.B(t3w,{data:function(){return u()},
onSelect:function(E,O){var f,A;return _.t(function(n){r(!0);if(A=(f=a.data())==null?void 0:f.onSelectRating)_.lN(A),_.cK(BWi(O));_.nu(n)})},
onDismiss:function(){r(!0);var E;var O=(E=P())==null?void 0:E.dismissalFeedbackToken;E=O?{feedbackEndpoint:{feedbackToken:O}}:void 0;E&&_.DA(E,{form:{element:z.value}})}})}})))},"Da");var EL1=_.ec(function(a){return _.B("lockup-attachments-view-model",{class:"ytLockupAttachmentsViewModelHost"},_.B(_.V0,{data:function(){var z;return(z=a.data())==null?void 0:z.attachments}},{flexibleActionsViewModel:function(z){return _.B("div",{class:"ytLockupAttachmentsViewModelAttachment"},_.B(_.Dw,{data:z.data,
layout:function(){var I;return((I=a.lockupStyle())==null?void 0:I.arrangement)===1?0:1},
justifyContentOverride:function(){var I;return((I=a.lockupStyle())==null?void 0:I.arrangement)===1?"FLEXIBLE_ACTIONS_JUSTIFY_CONTENT_START":"FLEXIBLE_ACTIONS_JUSTIFY_CONTENT_EVENLY"}}))},
slimlineSurveyViewModel:function(z){return _.B("div",{class:"ytLockupAttachmentsViewModelAttachment"},_.B(u2e,{data:z.data}))},
expandableMetadataViewModel:function(z){z=z.data;var I;return _.B("div",{class:_.B8("ytLockupAttachmentsViewModelAttachment","ytLockupAttachmentsViewModelExpandableMetadata")},(I=_.ab().resolve(_.eL(CTO)))==null?void 0:I({data:z}))},
adButtonGroupViewModel:function(z){return _.B("div",{class:"ytLockupAttachmentsViewModelAttachment"},_.B(NKw,{data:z.data}))},
adButtonViewModel:function(z){return _.B("div",{class:"ytLockupAttachmentsViewModelAttachment"},_.B(_.C0,{data:z.data,isCompactWidth:!0}))}}))},"Ea");var R$E=_.Ib("rich_grid_min_item_width",310),Ufp=_.Ib("rich_grid_max_item_width",500);var BKw=_.ec(function(a){var z=a.data;return _.B("br-nz-badge-shape",{class:_.B8(function(){return MZi(z().brNzRatingBadgeType)}),
role:function(){return z().accessibilityText?"img":void 0},
"aria-label":function(){return z().accessibilityText}},function(){var I;
return(I=z())==null?void 0:I.text})},"Fa");_.N8=_.ec(function(a){var z=function(){var I=a.data(),J,r;if(I){var P=!((J=a.workaroundShortsIsThumbnailBadge)==null||!J.call(a));J=(r=a.modern)==null?void 0:r.call(a);var N;a:switch(I.badgeStyle){case "BADGE_OVERLAY":r=!0;break a;default:r=!1}I={type:P?17:cU3(I.badgeStyle),brNzRatingBadgeType:Y0M(I.badgeStyle),text:I.badgeText,icon:I.iconName,isOverlay:r,modern:J||_.K("web_modern_badge_view_model"),accessibilityText:I.accessibilityLabel||((N=_.H(I.rendererContext,_.Vw))==null?void 0:N.label)}}else I=
void 0;return I};
return _.B("yt-badge-view-model",{class:_.B8("yt-badge-view-model-wiz",a.class)},_.B(_.Fw,null,_.B(_.n3,{when:function(){var I;return!((I=z())==null||!I.brNzRatingBadgeType)}},function(){return _.B(BKw,{data:function(){return z()}})}),_.B(_.n3,{when:function(){return!!z()&&!z().brNzRatingBadgeType}},function(){return _.B(_.pd,{data:function(){return z()}})})))},"Ga");
_.N8.idomCompat=!0;var e$G,q03;e$G=16/9;q03=2/3;_.t0=_.ec(function(a){var z=a.data;var I=a.className;var J=a.imageSizeConfig;var r=a.notifyOnLoaded;var P=function(){return z().style||"CONTENT_PREVIEW_IMAGE_STYLE_CIRCLE"},N=function(){var n;
return _.oK((n=z())==null?void 0:n.rendererContext)};
a={};a=(a["yt-content-preview-image-view-model-wiz"]=!0,a["yt-content-preview-image-view-model-wiz--circle-image"]=function(){return P()==="CONTENT_PREVIEW_IMAGE_STYLE_CIRCLE"},a["yt-content-preview-image-view-model-wiz--tappable"]=function(){return N()},a);
var u=function(){var n,F;return(F=(n=_.H(z().rendererContext,_.Vw))==null?void 0:n.label)!=null?F:""},E=function(){return jiM(z())},O=function(){var n=ag7(P(),z().layoutMode||"CONTENT_PREVIEW_IMAGE_LAYOUT_MODE_UNKNOWN",J==null?void 0:J(),zr0(E()),z().layoutWidth,z().layoutHeight),F=Object.assign({},n);
n.width&&(F.width=Math.round(n.width));n.height&&(F.height=Math.round(n.height));n.maxWidth&&(F.maxWidth=Math.round(n.maxWidth));n.maxHeight&&(F.maxHeight=Math.round(n.maxHeight));return F},f=_.Bg(function(){return O().height},void 0,"Cn10Ce"),A=_.Bg(function(){return O().width},void 0,"laoove");
return _.B("yt-content-preview-image-view-model",{el:_.a5(_.UN(function(){var n;return(n=z())==null?void 0:n.rendererContext})),
role:function(){return N()?"link":void 0},
tabindex:function(){return N()?0:void 0},
class:_.B8(I,a,function(){var n=P();var F=J==null?void 0:J();n=n==="CONTENT_PREVIEW_IMAGE_STYLE_SQUARE"||n==="CONTENT_PREVIEW_IMAGE_STYLE_VERTICAL_RECTANGLE_2_BY_3"||n==="CONTENT_PREVIEW_IMAGE_STYLE_HORIZONTAL_RECTANGLE_16_BY_9"||n==="CONTENT_PREVIEW_IMAGE_STYLE_CUSTOM_ASPECT_RATIO"?(F==null?void 0:F.size)!=null&&F.size<=16?"yt-content-preview-image-view-model-wiz--extra-small-rounded-image":(F==null?void 0:F.size)!=null&&F.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 n}),
style:function(){var n=O(),F=[];n.width&&F.push("width: "+n.width+"px");n.height&&F.push("height: "+n.height+"px");n.maxWidth&&F.push("max-width: "+n.maxWidth+"px");n.maxHeight&&F.push("max-height: "+n.maxHeight+"px");n.fullWidth&&F.push("width: 100%");return F.join(";")}},_.B(_.g,{cond:E,
then:function(n){return _.B(_.qp,{data:n,alt:u,"data-disabled$":function(){return!u()},
notifyOnLoaded:r,targetWidth:A,targetHeight:f,preserveWidth:function(){return!!A()},
preserveHeight:function(){return!!f()}})}}),_.B(_.V0,{data:function(){var n;
return(n=z())==null?void 0:n.overlays}},{thumbnailHoverOverlayViewModel:WI,
thumbnailOverlayButtonViewModel:_.zr1}))},"Ha");
_.t0.idomCompat=!0;var OgG=_.ec(function(a){var z=a.data;var I=a.className;var J=a.useSmallLayout;a=a.useMediumText;var r={};a=(r["yt-attribution-view-model-wiz"]=!0,r["yt-attribution-view-model-wiz--medium-text"]=a,r);return _.B("yt-attribution-view-model",{el:_.a5(_.UN(function(){var P;return(P=z())==null?void 0:P.rendererContext})),
class:_.B8(I,a)},_.B(_.g,{cond:function(){return _.oK(z().rendererContext)},
then:function(){return _.B("button",{class:"yt-attribution-view-model-wiz--tappable"},_.B(gLe,{data:z,useSmallLayout:J}))},
else:function(){return _.B(gLe,{data:z,useSmallLayout:J})}}))},"Ia"),gLe=_.ec(function(a){var z=a.data;
var I=a.useSmallLayout;var J=function(){return{size:(I==null?0:I())?16:24}};
return _.B(_.eJ,null,_.B(_.V0,{data:function(){return z().contentPreviewImage}},{contentPreviewImageViewModel:function(r){return _.B(_.t0,{data:r.data,
className:"yt-attribution-view-model-wiz__attribution-image",imageSizeConfig:J})}}),_.B(_.V0,{data:function(){return z().badge}},{badgeViewModel:function(r){return _.B(_.N8,{data:r.data,
class:"yt-attribution-view-model-wiz__badge",modern:!0})}}),_.B(_.g,{cond:function(){return z().text},
then:function(){return _.B(_.xs,{text:function(){return z().text},
noWrap:!0,linkInheritColor:!0,className:"yt-attribution-view-model-wiz__attribution-text"})}}),_.B(_.g,{cond:function(){return z().suffix},
then:function(){return _.B(_.xs,{text:function(){return z().suffix},
linkInheritColor:!0,className:"yt-attribution-view-model-wiz__suffix"})}}))},"Ja");
OgG.idomCompat=!0;var fge,AbX,sif,nLo,KFf;fge=_.ec(function(a){var z=a.delimiter;var I=a.max;var J=a.index;var r=a.isStandalone;return _.B(_.g,{cond:function(){return I()-1>J()},
then:function(){var P={};return _.B("span",{class:_.B8("yt-content-metadata-view-model-wiz__delimiter",(P["yt-content-metadata-view-model-wiz__delimiter--standalone"]=r,P)),"aria-hidden":!0},z)}})},"Ka");
AbX=_.ec(function(a){var z=a.metadataPart;var I=a.maxLines;return _.B(_.xs,{text:function(){return z().text},
linkInheritColor:!0,className:function(){return Igi(I())},
userInput:!0})},"La");
sif=_.ec(function(a){var z=a.metadataPart;var I=a.maxLines;return _.B(_.g,{cond:function(){return z().tooltip},
then:function(J){return _.B("span",{title:J,role:"tooltip"},_.B(AbX,{metadataPart:z,maxLines:I}))},
else:function(){return _.B(AbX,{metadataPart:z,maxLines:I})}})},"Ma");
nLo=_.ec(function(a){var z=a.metadataPart;var I=a.isOverlay;var J=a.useMediumText;var r=a.hideAvatar;var P=function(){return z().maxLines!==void 0?z().maxLines:1};
return _.B(_.eJ,null,_.B(_.V0,{data:function(){return z().avatarStack}},{avatarStackViewModel:function(N){return _.B(_.DU,{data:N.data,
isOverlay:I,useMediumText:J,hideAvatar:r})},
badgeViewModel:_.N8}),_.B(_.g,{cond:function(){return z().leadingIcon},
then:function(N){return _.B(_.nS,{className:"yt-content-metadata-view-model-wiz__leading-icon",icon:function(){return N().name},
size:function(){return N().width}})}}),_.B(_.g,{cond:function(){return z().text},
then:function(){return _.B(sif,{metadataPart:z,maxLines:P})}}),_.B(_.g,{cond:function(){return z().icon},
then:function(N){return _.B(_.nS,{className:"yt-content-metadata-view-model-wiz__icon",icon:function(){return N().name},
size:function(){return N().width}})}}))},"Na");
KFf=_.ec(function(a){var z=a.metadataRow;var I=a.isInline;var J=a.delimiter;var r=a.isOverlay;var P=a.useMediumText;var N=a.extensions;var u=function(){var O,f=N==null?void 0:(O=N())==null?void 0:O.lockupMetadata;O=z();var A,n;return!!((f==null?0:(A=f.byline)==null?0:A.hideAvatar)&&((n=_.H(O,$_v))==null?void 0:n.contentType)==="METADATA_ROW_CONTENT_TYPE_BYLINE")},E=function(){return z().metadataParts||[]};
a={};return _.B("div",{class:_.B8("yt-content-metadata-view-model-wiz__metadata-row",(a["yt-content-metadata-view-model-wiz__metadata-row--metadata-row-inline"]=I,a["yt-content-metadata-view-model-wiz__metadata-row--metadata-row-padding"]=function(){var O,f=N==null?void 0:(O=N())==null?void 0:O.lockupMetadata;O=z();var A,n;return!!((f==null?0:(A=f.byline)==null?0:A.addPadding)&&((n=_.H(O,$_v))==null?void 0:n.contentType)==="METADATA_ROW_CONTENT_TYPE_BYLINE")},a["yt-content-metadata-view-model-wiz__metadata-row--metadata-row-wrap"]=
function(){var O;
return!!(N==null?0:(O=N())==null?0:O.lockupMetadata)&&z().badges&&!z().metadataParts},a))},_.B(_.V0,{data:function(){return z().badges}},{badgeViewModel:function(O){return _.B("div",{class:"yt-content-metadata-view-model-wiz__badge"},_.B(_.N8,{data:O.data}))}}),_.B(_.se,{each:E},function(O,f){return _.B(_.eJ,null,_.B(nLo,{metadataPart:O,
isOverlay:r,useMediumText:P,hideAvatar:u}),_.B(fge,{delimiter:J,max:function(){return E().length},
index:f,isStandalone:!1}))}),_.B(_.g,{cond:function(){return z().isSpacerRow&&!I()},
then:function(){return _.B("div",{class:"yt-content-metadata-view-model-wiz__spacer"})}}))},"Oa");
_.ub=_.ec(function(a){a=_.q3(a,{layout:0,isOverlay:!1});var z=a.data,I=a.layout,J=a.isOverlay,r=a.useMediumText,P=a.extensions,N=function(){return I()===0},u=function(){var O;
return((O=z().metadataRows)==null?void 0:O.filter(function(f){var A,n=P==null?void 0:(A=P())==null?void 0:A.lockupMetadata,F,h;A=!!((n==null?0:(F=n.description)==null?0:F.hideDescription)&&((h=_.H(f,$_v))==null?void 0:h.contentType)==="METADATA_ROW_CONTENT_TYPE_DESCRIPTION");var v,d;return!((n==null?0:(v=n.spacer)==null?0:v.hideSpacer)&&((d=_.H(f,$_v))==null?void 0:d.contentType)==="METADATA_ROW_CONTENT_TYPE_SPACER"||A)}))||[]},E={};
return _.B("yt-content-metadata-view-model",{class:_.B8(a.className,"yt-content-metadata-view-model-wiz",(E["yt-content-metadata-view-model-wiz--inline"]=N,E["yt-content-metadata-view-model-wiz--tappable"]=function(){return _.oK(z().rendererContext)},E["yt-content-metadata-view-model-wiz--medium-text"]=r,E)),
el:_.a5(_.UN(function(){return z().rendererContext}))},_.B(_.se,{each:u},function(O,f){return _.B(_.eJ,null,_.B(KFf,{metadataRow:O,
isInline:N,delimiter:function(){return z().delimiter},
isOverlay:J,useMediumText:r,extensions:P}),_.B(_.g,{cond:function(){return N()&&!O.isSpacerRow},
then:function(){return _.B(fge,{delimiter:function(){return z().delimiter},
max:function(){return u().length},
index:f,isStandalone:!0})}}))}))},"Pa");
_.ub.idomCompat=!0;var FFE=_.ec(function(a){var z={};return _.B("yt-lockup-metadata-view-model",{class:_.B8("yt-lockup-metadata-view-model-wiz",function(){a:{var I=a.lockupStyle();if(I==null?0:I.isOverlay)I="yt-lockup-metadata-view-model-wiz--overlay";else switch(I==null?void 0:I.arrangement){case 1:I="yt-lockup-metadata-view-model-wiz--horizontal";break a;default:I="yt-lockup-metadata-view-model-wiz--vertical"}}return I},function(){a:{var I=a.lockupStyle();
if(I==null?0:I.isTiny)I="yt-lockup-metadata-view-model-wiz--tiny";else switch(I==null?void 0:I.sizing){case "MINI":case "EXTRA_COMPACT":case "COMPACT":I="yt-lockup-metadata-view-model-wiz--compact";break a;default:I="yt-lockup-metadata-view-model-wiz--standard"}}return I},(z["yt-lockup-metadata-view-model-wiz--overlay"]=function(){var I;
return(I=a.lockupStyle())==null?void 0:I.isOverlay},z["yt-lockup-metadata-view-model-wiz--card"]=function(){var I;
return(I=a.lockupStyle())==null?void 0:I.isCard},z["yt-lockup-metadata-view-model-wiz--centered"]=function(){var I;
return(I=a.lockupStyle())==null?void 0:I.isCentered},z["yt-lockup-metadata-view-model-wiz--typography-bump"]=function(){var I;
return(I=a.lockupStyle())==null?void 0:I.typographyBump},z["yt-lockup-metadata-view-model-wiz--legacy-typography"]=function(){var I;
return(I=a.lockupStyle())==null?void 0:I.useLegacyTypography},z["yt-lockup-metadata-view-model-wiz--rich-grid-legacy-typography"]=function(){var I;
return(I=a.lockupStyle())==null?void 0:I.useRichGridLegacyTypography},z))},_.B(_.V0,{data:function(){return a.data().image}},{avatarStackViewModel:function(I){return _.B("div",{class:"yt-lockup-metadata-view-model-wiz__avatar"},_.B(_.DU,{data:I.data,
overrides:{layoutType:"AVATAR_STACK_LAYOUT_CLUSTER"}}))},
avatarViewModel:function(I){return _.B("div",{class:"yt-lockup-metadata-view-model-wiz__avatar"},_.B(_.ok,{data:I.data}))},
decoratedAvatarViewModel:function(I){return _.B("div",{class:"yt-lockup-metadata-view-model-wiz__avatar"},_.B(_.Uj,{data:I.data}))}}),_.B("div",{class:"yt-lockup-metadata-view-model-wiz__text-container"},_.B("h3",{class:"yt-lockup-metadata-view-model-wiz__heading-reset",
title:function(){var I;return(I=a.data().title)==null?void 0:I.content}},_.B(_.g,{cond:function(){return a.data().title},
then:function(I){return _.B(_.lq,{command:a.lockupCommand,className:"yt-lockup-metadata-view-model-wiz__title",ariaLabel:a.lockupAccessibilityLabel},_.B(_.xs,{text:I,userInput:!0}))}})),_.B("div",{class:"yt-lockup-metadata-view-model-wiz__metadata"},_.B(_.V0,{data:function(){return a.data().metadata}},{contentMetadataViewModel:function(I){return _.B(_.ub,{data:I.data,
layout:1,useMediumText:function(){var J,r;return((J=a.lockupStyle())==null?void 0:J.typographyBump)||((r=a.lockupStyle())==null?void 0:r.useRichGridLegacyTypography)},
extensions:function(){var J,r,P,N;return{lockupMetadata:{byline:{hideAvatar:((J=a.lockupStyle())==null?void 0:J.arrangement)===0,addPadding:((r=a.lockupStyle())==null?void 0:r.arrangement)===1},description:{hideDescription:!((P=a.lockupStyle())==null||!P.compactMetadata)},spacer:{hideSpacer:!((N=a.lockupStyle())==null||!N.compactMetadata)}}}}})}})),_.B(_.V0,{data:function(){return a.data().attribution}},{attributionViewModel:function(I){return _.B("div",{class:"yt-lockup-metadata-view-model-wiz__attribution"},
_.B(OgG,{data:I.data,
useSmallLayout:!0}))}})),_.B("div",{class:"yt-lockup-metadata-view-model-wiz__menu-button"},_.B(_.V0,{data:function(){return a.data().menuButton}},{buttonViewModel:function(I){return _.B(_.At,{data:I.data,
buttonOverrides:function(){var J;return((J=a.lockupStyle())==null?0:J.isOverlay)?{style:"overlay"}:void 0}})}})))},"Qa");
FFE.idomCompat=!0;var Hge=_.ec(function(a){var z=_.Mm("notification-multi-action-renderer");_.hD(function(){requestAnimationFrame(function(){_.MV(z.value)})});
var I={},J={},r={};return _.B("notification-multi-action-renderer",{class:_.B8("ytNotificationMultiActionRendererHost",(I.ytNotificationMultiActionRendererHostLegacyShelfStyle=function(){var P;return(P=a.useLegacyShelfStyle)==null?void 0:P.call(a)},I)),
el:z},_.B("span",{"aria-live":"polite",class:_.B8("ytNotificationMultiActionRendererTextContainer",(J.ytNotificationMultiActionRendererTextContainerLegacyShelfStyle=function(){var P;return(P=a.useLegacyShelfStyle)==null?void 0:P.call(a)},J))},_.B(_.xs,{text:function(){return a.data().responseText}})),_.B("div",{class:_.B8("ytNotificationMultiActionRendererButtonContainer",(r.ytNotificationMultiActionRendererButtonContainerLegacyShelfStyle=function(){var P;
return(P=a.useLegacyShelfStyle)==null?void 0:P.call(a)},r))},_.B(_.V0,{data:function(){var P;
return(P=a.data().buttons)==null?void 0:P.map(function(N){if(N=N.buttonRenderer){var u,E=Object,O=E.assign,f=(u=N.icon)==null?void 0:u.iconType;u=(u=N.command||N.serviceEndpoint||N.navigationEndpoint)?{innertubeCommand:u}:void 0;N={buttonViewModel:O.call(E,{},{iconName:f,onTap:u,trackingParams:N.trackingParams,titleFormatted:N.text?_.XJ(N.text):void 0},rbO(N))}}else N=void 0;return N}).filter(function(N){return!!N})}},{buttonViewModel:function(P,N){return _.B("div",null,_.B(_.At,{data:P.data,
className:"ytNotificationMultiActionRendererButton",buttonOverrides:function(){var u;return((u=a.useModernStyles)==null?0:u.call(a))?{type:N()?"filled":"tonal",style:"mono"}:void 0}}))}})))},"Ra");var bgE=_.ec(function(a){var z=_.Mm("notification-text-renderer");_.hD(function(){requestAnimationFrame(function(){_.MV(z.value)})});
return _.B("notification-text-renderer",{el:z,class:"ytNotificationTextRendererHost","aria-live":"polite"},_.B(_.xs,{text:function(){return a.data().successResponseText}}))},"Sa");_.Eu=_.ec(function(a){var z=_.KU(D7O,function(){var J;return PTG((J=a.contentId)==null?void 0:J.call(a))}),I=function(){var J;
return _.H((J=z())==null?void 0:J.command,_.SG)};
return _.B(_.g,{cond:function(){var J;if(!(J=I())){var r;J=_.H((r=z())==null?void 0:r.command,ixf)}return J},
then:function(){return _.B(_.g,{cond:I,then:function(){var J={};return _.B("div",{class:_.B8("ytDismissibleItemReplacedContent",function(){var r;return ZgI((r=a.aspectRatio)==null?void 0:r.call(a))})},_.B("div",{class:_.B8((J.ytDismissibleItemAspectRatioContainer=function(){var r;
return((r=a.aspectRatio)==null?void 0:r.call(a))!==void 0},J))},_.B(_.V0,{data:function(){var r;
return(r=I())==null?void 0:r.item}},{notificationMultiActionRenderer:function(r){return _.B(Hge,{data:r.data,
useModernStyles:a.useModernStyle,useLegacyShelfStyle:a.useLegacyShelfStyle})},
notificationTextRenderer:bgE})))}})},
else:a.children})},"Ta");_.hrG=_.ec(function(a){var z=a.data;var I=a.customCommandResolver;a=_.a5(_.z$({visibilityCallback:function(P){var N,u=(N=z().interaction)==null?void 0:N.onFirstVisible;P&&u&&_.lN(u)},
showOption:_.PX}));var J=function(){var P;return((P=z().interaction)==null?0:P.onTap)?function(N){var u;v97(N,(u=z().interaction)==null?void 0:u.onTap,I)}:void 0},r=function(){var P,N=z(),u=J(),E=(P=_.H(z().rendererContext,_.Vw))==null?void 0:P.label;
a:switch(N.style){case "AD_AVATAR_STYLE_ROUNDED_CORNER":P=1;break a;default:P=0}return{size:t3E(N.size),type:P,onTap:u,accessibilityText:E}};
return _.B("ad-avatar-view-model",{class:function(){var P;return((P=z().interaction)==null?0:P.onTap)?"ytwAdAvatarViewModelHostIsClickableAdComponent":"ytwAdAvatarViewModelHost"},
el:a},_.B(_.g,{cond:function(){return z().image},
then:function(P){return _.B(PVO,{data:r,image:P})}}))},"Ua");_.BX=_.ec(function(a){var z=_.q3(a,{hasDot:!1});a=Object.assign({},z);var I=z.data,J=z.hasDot;z=z.customCommandResolver;var r=(delete a.data,delete a.hasDot,delete a.customCommandResolver,a);a=function(){return I().style};
a!==void 0&&a!==null||_.RL(Error("Eh"));a=_.wi(function(){return I().interaction},z);
return _.B("ad-badge-view-model",{class:_.B8(function(){var P;return((P=I().interaction)==null?0:P.onTap)?"ytwAdBadgeViewModelHostIsClickableAdComponent":"ytwAdBadgeViewModelHost"},function(){var P=r.adRenderingContextType();
I();return P==="AD_RENDERING_CONTEXT_TYPE_BROWSE"?"ytwAdBadgeViewModelHostStyleStandardBrowse":"ytwAdBadgeViewModelHostStyleStandard"}),
el:_.a5(a)},_.B(_.pd,{data:function(){var P;I();return{type:2,text:(P=I().label)==null?void 0:P.content,adsIncludeDot:J(),isOverlay:I().style==="AD_BADGE_STYLE_STARK_OVERLAY"}}}))},"Va");var V3i;_.gW=_.ec(function(a){var z=a.data;var I=a.customCommandResolver;var J=a.adRenderingContextType;return _.B("ad-details-line-view-model",{class:function(){var r;return((r=z().interaction)==null?0:r.onTap)?"ytwAdDetailsLineViewModelHostIsClickableAdComponent":"ytwAdDetailsLineViewModelHost"},
el:_.a5(_.z$({visibilityCallback:function(r){var P,N=(P=z().interaction)==null?void 0:P.onFirstVisible;r&&N&&_.lN(N)},
showOption:_.PX}),_.wi(function(){return z().interaction},I))},_.B(_.g,{cond:function(){return z().style},
then:function(r){return _.B(_.se,{each:function(){var P;return((P=z())==null?void 0:P.attributes)||[]},
keyBy:"INDEX"},function(P){return _.B(V3i,{attribute:P,style:r,adRenderingContextType:function(){return J()}})})}}))},"Wa");
V3i=_.ec(function(a){var z=a.attribute;var I=a.style;var J=a.adRenderingContextType;return _.B(_.g,{cond:function(){return z().text},
then:function(r){return _.B(_.xs,{text:r,className:function(){var P=J();I();return P==="AD_RENDERING_CONTEXT_TYPE_BROWSE"?"ytwAdDetailsLineViewModelHostTextStyleStandardBrowse":"ytwAdDetailsLineViewModelHostTextStyleStandard"}})}})},"Xa");var QiG=_.ec(function(a){var z=a.data;var I=a.typographyBump;var J=function(){return z().adRenderingContextType==="AD_RENDERING_CONTEXT_TYPE_SEARCH"};
a={};return _.B(_.eJ,null,_.B("div",{class:"ytwFeedAdMetadataViewModelHostMetadata"},_.B(_.xs,{text:function(){return z().headline},
className:_.B8("ytwFeedAdMetadataViewModelHostTextsStyleCompactHeadline",(a.ytwFeedAdMetadataViewModelHostTextsStyleCompactHeadlineSearch=function(){return J==null?void 0:J()},a.ytwFeedAdMetadataViewModelHostTextsStyleCompactHeadlineTypographyBump=function(){return(I==null?void 0:I())&&!(J==null?0:J())},a)),
linkInheritColor:!0}),_.B(_.g,{cond:function(){return z().description},
then:function(r){var P={};return _.B(_.xs,{text:r,className:_.B8("ytwFeedAdMetadataViewModelHostTextsStyleCompactDescription",(P.ytwFeedAdMetadataViewModelHostTextsStyleCompactDescriptionSearch=function(){return J==null?void 0:J()},P.ytwFeedAdMetadataViewModelHostTextsStyleCompactDescriptionTypographyBump=function(){return(I==null?void 0:I())&&!(J==null?0:J())},P)),
linkInheritColor:!0})}}),_.B(_.g,{cond:function(){return z().secondaryDescription},
then:function(r){var P={};return _.B(_.xs,{text:r,className:_.B8("ytwFeedAdMetadataViewModelHostTextsStyleCompactSecondaryDescription",(P.ytwFeedAdMetadataViewModelHostTextsStyleCompactSecondaryDescriptionTypographyBump=function(){return I==null?void 0:I()},P)),
linkInheritColor:!0})}}),_.B("div",{class:function(){return J()?"ytwFeedAdMetadataViewModelHostMetadataAdBadgeDetailsLineContainerStyleCompactSearch":"ytwFeedAdMetadataViewModelHostMetadataAdBadgeDetailsLineContainer"}},_.B(_.g,{cond:function(){return z().adAvatar},
then:function(){return _.B("div",{class:"ytwFeedAdMetadataViewModelHostAvatarStyleCompact"},_.B(_.V0,{data:function(){return z().adAvatar}},{adAvatarViewModel:_.hrG}))}}),_.B(_.V0,{data:function(){return z().adBadge}},{adBadgeViewModel:function(r){return _.B(_.BX,{data:r.data,
hasDot:function(){return!!z().adDetailsLine},
adRenderingContextType:function(){return z().adRenderingContextType}})}}),_.B(_.V0,{data:function(){return z().adDetailsLine}},{adDetailsLineViewModel:function(r){return _.B(_.gW,{data:r.data,
adRenderingContextType:function(){return z().adRenderingContextType}})}}))),_.B("div",{class:function(){return J()?"ytwFeedAdMetadataViewModelHostMenuSearch":"ytwFeedAdMetadataViewModelHostMenu"}},_.B(_.V0,{data:function(){return z().menu}},{buttonViewModel:function(r){return _.B(_.At,{data:r.data,
buttonOverrides:function(){a:switch(z().adRenderingContextType){case "AD_RENDERING_CONTEXT_TYPE_WATCH_NEXT":var P="S";break a;default:P="M"}return{size:P}}})}})))},"Ya"),SQv=_.ec(function(a){var z=a.data;
var I=a.noBottomMargin;var J=a.useVideoLockupTopPadding;var r=a.typographyBump;a={};a=_.B8("ytwFeedAdMetadataViewModelHostMetadata",(a.ytwFeedAdMetadataViewModelHostMetadataNoBottomMargin=function(){return I==null?void 0:I()},a.ytwFeedAdMetadataViewModelHostNoTopPadding=function(){return J==null?void 0:J()},a));
var P=function(){return z().adBadge};
P!==void 0&&P!==null||_.RL(Error("Fh"));P={};var N={};return _.B(_.eJ,null,_.B(_.g,{cond:function(){return z().adAvatar},
then:function(){return _.B("div",{class:"ytwFeedAdMetadataViewModelHostAvatarStyleStandard"},_.B(_.V0,{data:function(){return z().adAvatar}},{adAvatarViewModel:function(u){return _.B(_.hrG,{data:u.data})}}))}}),_.B("div",{class:a},_.B("div",{class:_.B8("ytwFeedAdMetadataViewModelHostTextsStyleStandardHeadline",(P.ytwFeedAdMetadataViewModelHostTextsStyleStandardHeadlineTypographyBump=function(){return r==null?void 0:r()},P.ytwFeedAdMetadataViewModelHostTextsStyleStandardHeadlineTypographyBumpV2=function(){return(r==
null?void 0:r())&&_.K("web_enable_typography_bump_v2")},P))},_.B(_.xs,{text:function(){return z().headline},
linkInheritColor:!0})),_.B(_.g,{cond:function(){return z().description},
then:function(u){return _.B(_.xs,{text:u,className:"ytwFeedAdMetadataViewModelHostTextsStyleStandardDescription",linkInheritColor:!0})}}),_.B("div",{class:function(){return z().adRenderingContextType==="AD_RENDERING_CONTEXT_TYPE_BROWSE"&&_.K("enable_top_landscape_image_components_legacy_ui_web")?"ytwFeedAdMetadataViewModelHostMetadataAdBadgeDetailsLineContainerStyleStandardLegacy":"ytwFeedAdMetadataViewModelHostMetadataAdBadgeDetailsLineContainerStyleStandard"}},_.B(_.V0,{data:function(){return z().adBadge}},
{adBadgeViewModel:function(u){return _.B(_.BX,{data:u.data,
hasDot:function(){return!!z().adDetailsLine},
adRenderingContextType:function(){return z().adRenderingContextType}})}}),_.B(_.V0,{data:function(){return z().adDetailsLine}},{adDetailsLineViewModel:function(u){return _.B(_.gW,{data:u.data,
adRenderingContextType:function(){return z().adRenderingContextType}})}})),_.B(_.g,{cond:function(){return z().secondaryDescription},
then:function(u){return _.B(_.xs,{text:u,className:"ytwFeedAdMetadataViewModelHostTextsStyleStandardSecondaryDescription",linkInheritColor:!0})}})),_.B("div",{class:_.B8("ytwFeedAdMetadataViewModelHostMenuStyleStandard",(N.ytwFeedAdMetadataViewModelHostNoTopPadding=function(){return J==null?void 0:J()},N))},_.B(_.V0,{data:function(){return z().menu}},{buttonViewModel:_.At})))},"Za"),igl=_.ec(function(a){var z=a.data;
var I=a.noBottomMargin;var J=a.listenToTapEvent;var r=a.setTouchEndHandler;var P=a.useVideoLockupTopPadding;var N=a.typographyBump;a=_.z$({visibilityCallback:function(A){var n,F=(n=z().interaction)==null?void 0:n.onFirstVisible;A&&F&&_.lN(F)},
showOption:_.PX});var u=_.wi(function(){return z().interaction},void 0,function(){return J==null?void 0:J()}),E=_.C(_.CW(!1,void 0,"p7Js8e")),O=E.next().value,f=E.next().value;
E=_.g4(function(A){(r==null?0:r())&&!O()&&(A.currentTarget.click(),f(!0),setTimeout(function(){f(!1)},100));
return!1});
return _.B("feed-ad-metadata-view-model",{class:function(){var A;return((A=z().interaction)==null?0:A.onTap)?"ytwFeedAdMetadataViewModelHostIsClickableAdComponent":"ytwFeedAdMetadataViewModelHost"},
el:_.a5(a,u),"on:touchend":E},_.B(_.Fw,null,_.B(_.n3,{when:function(){return z().style==="FEED_AD_METADATA_STYLE_COMPACT"}},function(){return _.B(QiG,{data:z,
typographyBump:N})}),_.B(_.n3,{when:function(){return z().style==="FEED_AD_METADATA_STYLE_STANDARD"}},function(){return _.B(SQv,{data:z,
noBottomMargin:I,useVideoLockupTopPadding:P,typographyBump:N})})))},"$a");var xXw;_.Ou=_.ec(function(a){return _.B("yt-lockup-view-model",{class:_.B8(a.className)},_.B(_.Eu,{contentId:function(){return a.data().contentId},
useModernStyle:!0,aspectRatio:function(){var z,I;return((z=a.containerType)==null?void 0:z.call(a))!==3?yU3(a.data().contentType,(I=a.force16By9ThumbnailAspectRatio)==null?void 0:I.call(a)):void 0}},function(){return _.B(xXw,Object.assign({},a))}))},"ab");
xXw=_.ec(function(a){a=_.q3(a,{containerLayoutConfig:void 0,protectBackground:void 0,containerType:void 0,sizing:void 0,typographyBump:!1,force16By9ThumbnailAspectRatio:!1,thumbnailFixedWidth:void 0,thumbnailTargetWidth:void 0,lockupExperiments:void 0,elementsPerRow:void 0});var z=a.data,I=a.containerLayoutConfig,J=a.containerType,r=a.sizing,P=a.protectBackground,N=a.typographyBump,u=a.force16By9ThumbnailAspectRatio,E=a.thumbnailFixedWidth,O=a.thumbnailTargetWidth,f=a.lockupExperiments,A=a.elementsPerRow;
a=_.a5(_.UN(function(){var Hp;return(Hp=z())==null?void 0:Hp.rendererContext},void 0,void 0,["A".toString(),
"BUTTON".toString(),"YT-AVATAR-STACK-VIEW-MODEL","YT-EXPANDABLE-METADATA-VIEW-MODEL","FEED-AD-METADATA-VIEW-MODEL","AD-BADGE-VIEW-MODEL","AD-DETAILS-LINE-VIEW-MODEL"],!0));var n=_.o5(VZ1),F=_.ab().resolve(_.eL(MZj)),h=F?{}:void 0,v=function(){var Hp,LG,oE;return(oE=(LG=_.H((Hp=z())==null?void 0:Hp.rendererContext,_.Vw))==null?void 0:LG.label)!=null?oE:void 0},d=function(){var Hp=I==null?void 0:I(),LG;
if(Hp==null?0:Hp.containerType){var oE=(LG=z())==null?void 0:LG.contentType;LG=f();var Pe=N(),TJ=O(),Be=P();Hp=Object.assign({},kCG(pm0(Hp),Lri(Hp.responsiveSize),Pe,oE,Hp.force16By9ThumbnailAspectRatio,TJ,Be,LG),{thumbnailFixedWidth:Hp.contentPreviewWidth})}else Hp=kCG(J(),r(),N(),(oE=z())==null?void 0:oE.contentType,u(),O(),P(),f());return Hp};
F&&h&&F({enabled:function(){return n()},
itemPlaybackModel:function(){return z().itemPlayback},
thumbnailElRef:function(){return h.thumbnailElRef},
containerElRef:a,options:function(){var Hp,LG=(Hp=_.H(z().metadata,_.XS1))==null?void 0:Hp.endorsement;Hp=h.thumbnailOverlays||[];LG&&Hp.push(LG);var oE,Pe;return{thumbnail:h.thumbnail,thumbnailOverlays:Hp,accessibilityText:v(),thumbnailSize:h.thumbnailSize,enableRounding:d().isCollection,containPlayerWithinThumbnail:d().isCollection,trackingParams:(oE=_.H(z().rendererContext,_.FJ))==null?void 0:(Pe=oE.loggingDirectives)==null?void 0:Pe.trackingParams}}});
var W=0;F=_.C(_.CW(!1,void 0,"HzAs3"));var l=F.next().value,q=F.next().value;F=_.C(_.CW(!1,void 0,"ujOXud"));var m=F.next().value,M=F.next().value;F=_.g4(function(){var Hp=n()&&z().itemPlayback;m()?(_.GW.cancelJob(W),W=_.GW.addJob(function(){q(!Hp)},8,32)):q(!Hp);
return!0});
var y=_.g4(function(){W&&(_.GW.cancelJob(W),W=0);q(!1)});
_.V3(function(){W&&(_.GW.cancelJob(W),W=0)});
var e=NKG(function(){M(!0)}),Bp=e.touchFeedbackEvents,Em=e.touchFeedbackOnPointerUp,nG=e.touchFeedbackOnPointerDown;
e=e.touchFeedbackOnPointerLeave;var bG={};return _.B("div",{el:a,class:_.B8("yt-lockup-view-model-wiz",function(){a:{var Hp=d();if(Hp.isOverlay)Hp="yt-lockup-view-model-wiz--overlay";else switch(Hp.arrangement){case 1:Hp="yt-lockup-view-model-wiz--horizontal";break a;default:Hp="yt-lockup-view-model-wiz--vertical"}}return Hp},function(){a:{var Hp=d();
if(Hp.isOverlay)Hp="yt-lockup-view-model-wiz--overlay";else{switch(Hp.collectionStackNumber){case 1:Hp="yt-lockup-view-model-wiz--collection-stack-1";break a;case 2:Hp="yt-lockup-view-model-wiz--collection-stack-2";break a}Hp=void 0}}return Hp},function(){var Hp;
return _.JbG((Hp=z())==null?void 0:Hp.contentId)},(bG["yt-lockup-view-model-wiz--card"]=function(){return d().isCard},bG["yt-lockup-view-model-wiz--compact"]=function(){return d().isTiny||d().sizing!=="STANDARD"},bG["yt-lockup-view-model-wiz--protect-background"]=P,bG["yt-lockup-view-model-wiz--add-margins"]=function(){return d().addMarginForFullbleed},bG["yt-lockup-view-model-wiz--centered"]=function(){return d().isCentered},bG["yt-lockup-view-model-wiz--fullbleed"]=function(){return d().fullbleed},
bG["yt-lockup-view-model-wiz--single-column-grid"]=function(){return A()===1&&J()===2},bG["yt-lockup-view-model-wiz--rich-grid-legacy-margin"]=function(){var Hp;
return(Hp=f())==null?void 0:Hp.useRichGridLegacyMargin},bG)),
"on:mousedown":nG,"on:mouseleave":y,"on:mouseup":Em,"on:mouseover":F,"on:touchstart":nG,"on:touchend":Em,"on:pointerleave":e},_.B(_.lq,{command:function(){var Hp;return _.Wn((Hp=z())==null?void 0:Hp.rendererContext)},
ariaHidden:!0,tabIndex:-1,className:"yt-lockup-view-model-wiz__content-image",style:function(){return E()&&d().arrangement===1?"width: "+E():""}},_.B(_.V0,{data:function(){var Hp;
return(Hp=z())==null?void 0:Hp.contentImage}},{thumbnailViewModel:function(Hp){return _.B(_.rW,{data:Hp.data,
aspectRatio:function(){return d().aspectRatio},
disableRounding:function(){return d().disableRounding},
width:O,hovered:l,isClip:function(){var LG;return((LG=z())==null?void 0:LG.contentType)==="LOCKUP_CONTENT_TYPE_CLIP"},
playbackRef:b97(h),lockupExperiments:function(){return f()}})},
collectionThumbnailViewModel:function(Hp){return _.B(Zgv,{data:Hp.data,aspectRatio:function(){return d().aspectRatio},
disableRounding:function(){return d().disableRounding},
width:O,doubleStack:function(){return d().collectionStackNumber===2},
hovered:l,playbackRef:b97(h)})},
decoratedAvatarViewModel:_.Uj})),_.B("div",{class:"yt-lockup-view-model-wiz__metadata"},_.B(_.V0,{data:function(){var Hp;return(Hp=z())==null?void 0:Hp.metadata}},{lockupMetadataViewModel:function(Hp){return _.B(FFE,{data:Hp.data,
lockupStyle:d,lockupCommand:function(){var LG;return _.Wn((LG=z())==null?void 0:LG.rendererContext)},
lockupAccessibilityLabel:function(){return v()}})},
feedAdMetadataViewModel:function(Hp){return _.B(igl,{data:Hp.data,noBottomMargin:function(){return!0},
useVideoLockupTopPadding:function(){return!0},
typographyBump:N})}}),_.B(_.V0,{data:function(){var Hp;
return(Hp=z())==null?void 0:Hp.attachmentSlot}},{lockupAttachmentsViewModel:function(Hp){return _.B(EL1,{data:Hp.data,
lockupStyle:d})}})),_.B(_.Bc,{model:function(){a:{switch(d().collectionStackNumber){case 1:var Hp=8;
break a;case 2:Hp=12;break a}Hp=void 0}return{isExtended:!0,triggerEvents:!0,customTopExtend:Hp}},
pointerDownEvent:Bp.pointerDownEvent,pointerUpEvent:Bp.pointerUpEvent,pointerLeaveEvent:Bp.pointerLeaveEvent}))},"bb");
_.Ou.idomCompat=!0;_.Jf(_.Ou,"yt-lockup-view-model",{props:{data:_.zl,containerLayoutConfig:_.zl,containerType:_.zl,sizing:_.zl,protectBackground:_.zl,typographyBump:_.zl,thumbnailFixedWidth:_.zl,thumbnailTargetWidth:_.zl,force16By9ThumbnailAspectRatio:_.zl,className:_.zl,lockupExperiments:_.zl,elementsPerRow:_.zl}});var gLp,vLX=_.ec(function(a){var z=_.q3(a,{maxLines:2,disableTextMask:!1,textStyle:"default",accessibilityLabel:"",textSize:"small",alwaysTruncateAtMaxLines:!1,expandOnClick:!1}),I=z.text,J=z.alwaysShowTruncationText;a=z.truncationText;var r=z.onTextClick,P=z.maxLines,N=z.disableTextMask,u=z.textStyle,E=z.accessibilityLabel,O=z.textSize,f=z.alwaysTruncateAtMaxLines,A=z.expandOnClick;z=_.C(_.CW(!1,void 0,"lWDnae"));var n=z.next().value,F=z.next().value;z=_.g4(function(){A()&&F(!n());r==null||r()});
var h=function(){a:switch(O()){case "medium":var y=2;break a;case "large":y=2.2;break a;default:y=1.8}return y},v=Abd(I,function(){return n()?Infinity:P()},h,N,f,n),d=v.isTruncated;
I=v.displayText;f=v.contentRef;var W=v.hiddenRef,l=v.placeholderTruncationTextRef,q=v.hiddenTruncationTextRef;v=v.truncationTextRef;var m={},M={};return _.B("truncated-text",{class:_.B8((m["truncated-text-wiz"]=!0,m["truncated-text-wiz--overlay"]=function(){return u()==="overlay"},m["truncated-text-wiz--medium-text"]=function(){return O()==="medium"},m["truncated-text-wiz--large-text"]=function(){return O()==="large"},m["truncated-text-wiz--primary-text"]=function(){return u()==="primary-text"},m)),
"on:click":z,style:function(){return"line-height: "+h()+"rem;"}},_.B("truncated-text-content",{class:"truncated-text-wiz__truncated-text-content",
el:f,style:function(){return n()?"":"max-height: "+P()*h()+"rem;"}},_.B(_.xs,{text:I}),_.B("button",{"aria-disabled":!0,
disabled:!0,class:"truncated-text-wiz__inline-button",el:l,style:function(){return"line-height: "+h()+"rem;"}},_.B(_.xs,{text:a}))),_.B("truncated-text-content",{class:_.B8("truncated-text-wiz__truncated-text-content","truncated-text-wiz__truncated-text-content--hidden-text-content"),
el:W,style:function(){return n()?"":"max-height: "+P()*h()+"rem;"},
"aria-hidden":"true"},_.B(_.xs,{text:I}),_.B("button",{"aria-disabled":!0,disabled:!0,class:"truncated-text-wiz__inline-button",el:q,style:function(){return"line-height: "+h()+"rem;"}},_.B(_.xs,{text:a}))),_.B("button",{"aria-label":E,
class:_.B8((M["truncated-text-wiz__absolute-button"]=function(){return!N()},M["truncated-text-wiz__bottom-button"]=function(){return N()},M["truncated-text-wiz--hidden"]=function(){return!(!n()&&(J!=null&&J()||d()))},M)),
el:v,style:function(){return"line-height: "+h()+"rem;"}},_.B(_.xs,{text:a})))},"cb");
vLX.idomCompat={callbacks:{onTextClick:!0}};var XNo=_.ec(function(a){var z=a.data;a=a.className;var I=_.Bg(function(){return nL1(z())},void 0,"sR58pd");
return _.B("yt-video-attribute-view-model",{class:a},_.B("div",{class:function(){var J=z();a:switch(J.orientation){case "VIDEO_ATTRIBUTE_ORIENTATION_VERTICAL":var r="yt-video-attribute-view-model--vertical";break a;default:r="yt-video-attribute-view-model--horizontal"}a:switch(J.imageSize){case "VIDEO_ATTRIBUTE_IMAGE_SIZE_SMALL":var P="yt-video-attribute-view-model--image-small";break a;default:P="yt-video-attribute-view-model--image-large"}a:switch(J.imageStyle){case "VIDEO_ATTRIBUTE_IMAGE_STYLE_SQUARE":var N=
"yt-video-attribute-view-model--image-square";break a;case "VIDEO_ATTRIBUTE_IMAGE_STYLE_AVATAR":N="yt-video-attribute-view-model--image-avatar";break a;default:N=""}a:switch(J.metadataStyle){case "VIDEO_ATTRIBUTE_METADATA_STYLE_HEADER":var u="yt-video-attribute-view-model--metadata-header";break a;default:u=""}a:switch(J.containerStyle){case "VIDEO_ATTRIBUTE_CONTAINER_STYLE_CARD":var E="yt-video-attribute-view-model--container-card";break a;default:E=""}return["yt-video-attribute-view-model",r,P,
N,u,E,nL1(J)?"yt-video-attribute-view-model--clickable":""].join(" ")},
style:_.sW({"background-color":function(){var J=z();if(J.containerStyle!=="VIDEO_ATTRIBUTE_CONTAINER_STYLE_CARD")var r="";else{r=J.lightColorPalette;J=J.darkColorPalette;var P,N=((P=_.ab().resolve(_.eL(_.kN)))==null?0:P())&&J?J:r;r=(r=N==null?void 0:N.section2Color)?_.RX(r):""}return r}})},_.B(_.g,{cond:function(){return I()||!_.K("web_video_attribute_view_model_a11y_fix")},
then:function(){return _.B(_.lq,{className:"yt-video-attribute-view-model__content-container",command:I,role:"group",ariaLabel:function(){return z().title}},_.B(_.g,{cond:function(){return z().heroText||z().image},
then:function(){return _.B(GKl,{data:z})}}),_.B($Xj,{data:z,
sizeSmall:function(){return z().imageSize==="VIDEO_ATTRIBUTE_IMAGE_SIZE_SMALL"}}))},
else:function(){return _.B("div",{class:"yt-video-attribute-view-model__content-container"},_.B(_.g,{cond:function(){return z().heroText||z().image},
then:function(){return _.B(GKl,{data:z})}}),_.B($Xj,{data:z,
sizeSmall:function(){return z().imageSize==="VIDEO_ATTRIBUTE_IMAGE_SIZE_SMALL"}}))}})))},"db");
XNo.idomCompat=!0;var GKl=_.ec(function(a){var z=a.data;var I,J=(I=_.ab().resolve(_.eL(_.kN)))==null?void 0:I(),r=function(){return J&&z().darkThemeImage?z().darkThemeImage:z().image},P=_.Bg(function(){return KF$(z())},void 0,"zGDeMe");
return _.B("div",{class:"yt-video-attribute-view-model__hero-section"},_.B(_.Fw,null,_.B(_.n3,{when:r},function(){return _.B(_.qp,{data:function(){return r()},
className:"yt-video-attribute-view-model__hero-image",alt:"",contentMode:"CONTENT_MODE_SCALE_ASPECT_FILL"})}),_.B(_.n3,{when:function(){return z().heroText}},function(){return _.B("div",{class:"yt-video-attribute-view-model__hero-text-wrapper"},_.B("span",{class:"yt-video-attribute-view-model__hero-text"},function(){return z().heroText}))})),_.B(_.g,{cond:function(){return z().overflowMenuOnTap},
then:function(){return _.B("div",{class:"yt-video-attribute-view-model__overflow-menu"},_.B(_.f_,{data:P,iconName:"MORE_VERT"}))}}))},"eb");
GKl.idomCompat=!0;var $Xj=_.ec(function(a){var z=a.data;a=a.sizeSmall;var I=function(){return z().containerStyle==="VIDEO_ATTRIBUTE_CONTAINER_STYLE_CARD"},J=_.Bg(function(){return Lw(_.R0({innertubeCommand:nL1(z())}))?"link":"group"},void 0,"kGuRzd"),r={};
return _.B("div",{class:_.B8("yt-video-attribute-view-model__metadata",(r["yt-video-attribute-view-model--small-font"]=a,r)),role:J},_.B("h1",{class:"yt-video-attribute-view-model__title"},function(){return z().title}),_.B(_.g,{cond:function(){return z().subtitle},
then:function(){return _.B("h4",{class:"yt-video-attribute-view-model__subtitle"},_.B(_.g,{cond:I,then:function(){return _.B(vLX,{text:function(){return si$(z().subtitle)},
truncationText:function(){return si$(z().subtitleTruncationText)},
maxLines:2})},
else:function(){return _.B("span",null,function(){return z().subtitle})}}))}}),_.B(_.g,{cond:function(){return z().secondarySubtitle},
then:function(P){return _.B("span",{class:"yt-video-attribute-view-model__secondary-subtitle"},_.B(_.xs,{text:function(){var N=P();if(N!=null&&N.attachmentRuns){for(var u=[],E=_.C(N.attachmentRuns),O=E.next();!O.done;O=E.next())O=O.value,O.element&&u.push(Object.assign({},O,{element:Object.assign({},O.element,{properties:{layoutProperties:{height:{unit:"DIMENSION_UNIT_POINT",value:15},width:{unit:"DIMENSION_UNIT_POINT",value:15}}}})}));N=Object.assign({},N,{attachmentRuns:u})}return N}}))}}),_.B(_.V0,
{data:function(){return z().buttonViewModel}},{buttonViewModel:function(P){return _.B(_.At,{data:P.data,
className:"yt-video-attribute-view-model__button"})}}))},"fb");
$Xj.idomCompat=!0;_.Jf(XNo,"yt-video-attribute-view-model",{props:{data:_.zl,className:_.zl}});var f0=function(){var a=_.G.apply(this,arguments)||this;a.useHighlightStyling=_.K("web_enable_deeper_metadata_highlight_styling");a.isSearch=!1;a.JSC$15051_lastScrollContainerWidth=NaN;a.pageLoadingFromNavigation=!1;a.currentIndex=0;a.supportComponentResize=!1;return a};
_.b(f0,_.G);_.Z=f0.prototype;
_.Z.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}}}}}};
_.Z.attached=function(){document.addEventListener("yt-page-type-changed",_.BK(this,this.onPageChange))};
_.Z.detached=function(){document.removeEventListener("yt-page-type-changed",_.BK(this,this.onPageChange))};
_.Z.getItemsPath=function(){return"data.cards"};
_.Z.onIronResize=function(){this.updateListStyles()};
_.Z.dataChanged=function(){this.updateListStyles();this.supportComponentResize=!!this.centerItems;var a;this.ytdHorizontalListBehavior.initialStartIndex=(this==null?void 0:(a=this.data)==null?void 0:a.scrollToIndex)||0;this.ytdHorizontalListBehavior.reset();this.ytdHorizontalListBehavior.centerListItems=_.K("problem_walkthrough_sd")&&!!this.centerItems};
_.Z.computeCardListStyle=function(a){return a||null};
_.Z.computeEmpty=function(a){return!this.get("cards.length",a)};
_.Z.computeThumbnailStyle=function(a){return this.get("header.richListHeaderRenderer.channelThumbnail.channelThumbnailWithLinkRenderer.style",a)||null};
_.Z.computeHasSubtitle=function(a){return!!this.get("header.richListHeaderRenderer.subtitle",a)};
_.Z.computeInitialCountNumber=function(a){return this.hasSquareMiniApp&&a==="HORIZONTAL_CARD_LIST_STYLE_TYPE_CHANNEL_SHELF"?12:this.hasSkinnyWidthPortraitMiniApp&&a==="HORIZONTAL_CARD_LIST_STYLE_TYPE_CHANNEL_SHELF"?7:a==="HORIZONTAL_CARD_LIST_STYLE_TYPE_CHANNEL_SHELF"?6:a==="HORIZONTAL_CARD_LIST_STYLE_TYPE_INLINE_RECOMMENDATIONS"?8:a==="HORIZONTAL_CARD_LIST_STYLE_TYPE_NARROW_SHELF"?10:this.isSearch&&a==="HORIZONTAL_CARD_LIST_STYLE_TYPE_ENGAGEMENT_PANEL_SECTION"?7:this.inlineStructuredDescription?
8:4};
_.Z.computeUseFloorScrolling=function(a){return a==="HORIZONTAL_CARD_LIST_STYLE_TYPE_RELATED_CHANNELS"||this.hasSquareMiniApp};
_.Z.computeHasGameCard=function(a){return(a=this.get("cards",a))?a.some(function(z){return z.gameCardRenderer}):!1};
_.Z.computeCenterHeaderTitle=function(a){return!(a==null||!a.centerHeaderTitle)};
_.Z.computeHasPortraitMiniApp=function(a){return(a=a==null?void 0:a.cards)?a.some(function(z){return z.miniGameCardViewModel&&z.miniGameCardViewModel.layout==="MINI_APP_LAYOUT_PORTRAIT"}):!1};
_.Z.computeHasSquareMiniApp=function(a){return(a=a==null?void 0:a.cards)?a.some(function(z){return z.miniGameCardViewModel&&z.miniGameCardViewModel.layout==="MINI_APP_LAYOUT_SQUARE"}):!1};
_.Z.computeHasSkinnyWidthPortraitMiniApp=function(a){return(a=a==null?void 0:a.cards)?a.some(function(z){return z.miniGameCardViewModel&&z.miniGameCardViewModel.width===135}):!1};
_.Z.computeCenterItems=function(a){return!!a};
_.Z.computeHasInfoPanel=function(a){var z;return a==null?void 0:(z=a.cards)==null?void 0:z.some(function(I){return I.infoPanelContentRenderer})};
_.Z.handleKeyDown=function(){this.ytdHorizontalListBehavior.fillRemainingListItems();this.ytRendererBehavior.markDirty()};
_.Z.getItemByIndex=function(a){var z=this.items.children;return z&&z.length>a?z[a]:void 0};
_.Z.onPageChange=function(){var a=this;this.pageLoadingFromNavigation=!0;_.GW.addJob(function(){a.pageLoadingFromNavigation=!1;_.Ct(a.hostElement,"yt-terminate-video-preview-action")},8)};
_.Z.updateListStyles=function(){if(_.K("problem_walkthrough_sd")&&this.JSC$15051_scrollContainer!==void 0){var a=this.JSC$15051_scrollContainer.clientWidth;a!==this.JSC$15051_lastScrollContainerWidth&&(this.JSC$15051_lastScrollContainerWidth=a,_.uK(this.hostElement,{"--ytd-horizontal-card-list-item-width":Math.min(a*.8,415)+"px"}),_.PA(this.hostElement,"iron-resize"))}};
_.eH.Object.defineProperties(f0.prototype,{hideNavigationButton:{configurable:!0,enumerable:!0,get:function(){return!(!this.inlineStructuredDescription||!_.K("sd_horizontal_list_show_nav_killswitch"))}},
modernChapters:{configurable:!0,enumerable:!0,get:function(){var a,z,I;return!!((a=this.data)==null?0:(z=a.cards)==null?0:(I=z[0])==null?0:I.macroMarkersListItemRenderer)}},
hasVideoAttributeViewModels:{configurable:!0,enumerable:!0,get:function(){var a,z,I;return!!((a=this.data)==null?0:(z=a.cards)==null?0:(I=z[0])==null?0:I.videoAttributeViewModel)}},
modernInfoPanels:{configurable:!0,enumerable:!0,get:function(){var a,z,I;return _.K("enable_desktop_amsterdam_info_panels")&&!!((a=this.data)==null?0:(z=a.cards)==null?0:(I=z[0])==null?0:I.infoPanelContentRenderer)}}});
f0.prototype.dataChanged=f0.prototype.dataChanged;f0.prototype.onIronResize=f0.prototype.onIronResize;_.L([_.Q(_.k.YtRendererBehavior),_.p("design:type",Object)],f0.prototype,"ytRendererBehavior",void 0);_.L([_.Q(_.u4.YtRendererstamperBehavior),_.p("design:type",Object)],f0.prototype,"ytRendererstamperBehavior",void 0);_.L([_.Q(_.E3.YtdHorizontalListBehavior),_.p("design:type",Object)],f0.prototype,"ytdHorizontalListBehavior",void 0);
_.L([_.Q(_.mD),_.p("design:type",Object)],f0.prototype,"ytdDismissibleItemBehavior",void 0);_.L([_.x(),_.p("design:type",Object)],f0.prototype,"data",void 0);_.L([_.x({value:!1,reflectToAttribute:!0}),_.p("design:type",Boolean)],f0.prototype,"useCustomColors",void 0);_.L([_.x({reflectToAttribute:!0}),_.p("design:type",Object)],f0.prototype,"useHighlightStyling",void 0);
_.L([_.x({reflectToAttribute:!0,computed:"computeCardListStyle(data.style.type)"}),_.p("design:type",Object)],f0.prototype,"cardListStyle",void 0);_.L([_.x({value:!0,reflectToAttribute:!0,computed:"computeEmpty(data)"}),_.p("design:type",Boolean)],f0.prototype,"empty",void 0);_.L([_.x({reflectToAttribute:!0,computed:"computeHasSubtitle(data)"}),_.p("design:type",Boolean)],f0.prototype,"hasSubtitle",void 0);
_.L([_.x({reflectToAttribute:!0,computed:"computeThumbnailStyle(data)"}),_.p("design:type",Boolean)],f0.prototype,"thumbnailStyle",void 0);_.L([_.x({readOnly:!0,reflectToAttribute:!0,computed:"computeHasGameCard(data)"}),_.p("design:type",Boolean)],f0.prototype,"hasGameCard",void 0);_.L([_.x({readOnly:!0,reflectToAttribute:!0,computed:"computeCenterHeaderTitle(data)"}),_.p("design:type",Boolean)],f0.prototype,"centerHeaderTitle",void 0);
_.L([_.x({readOnly:!0,reflectToAttribute:!0,computed:"computeHasPortraitMiniApp(data)"}),_.p("design:type",Boolean)],f0.prototype,"hasPortraitMiniApp",void 0);_.L([_.x({readOnly:!0,reflectToAttribute:!0,computed:"computeHasSquareMiniApp(data)"}),_.p("design:type",Boolean)],f0.prototype,"hasSquareMiniApp",void 0);_.L([_.x({readOnly:!0,reflectToAttribute:!0,computed:"computeHasSkinnyWidthPortraitMiniApp(data)"}),_.p("design:type",Boolean)],f0.prototype,"hasSkinnyWidthPortraitMiniApp",void 0);
_.L([_.x({readOnly:!0,reflectToAttribute:!0,computed:"computeHasInfoPanel(data)"}),_.p("design:type",Boolean)],f0.prototype,"hasInfoPanel",void 0);_.L([_.x({reflectToAttribute:!0}),_.p("design:type",Object)],f0.prototype,"isSearch",void 0);_.L([_.x({reflectToAttribute:!0}),_.p("design:type",Boolean)],f0.prototype,"inlineStructuredDescription",void 0);_.L([_.A3("#scroll-container"),_.p("design:type",HTMLDivElement)],f0.prototype,"JSC$15051_scrollContainer",void 0);
_.L([_.x({computed:"computeInitialCountNumber(data.style.type)"}),_.p("design:type",Number)],f0.prototype,"initialCount",void 0);_.L([_.x({computed:"computeUseFloorScrolling(data.style.type)"}),_.p("design:type",Boolean)],f0.prototype,"useFloorScrolling",void 0);_.L([_.x({reflectToAttribute:!0,computed:"computeCenterItems(data.centerItems)"}),_.p("design:type",Boolean)],f0.prototype,"centerItems",void 0);_.L([_.x(),_.p("design:type",Object)],f0.prototype,"pageLoadingFromNavigation",void 0);
_.L([_.x(),_.p("design:type",Object)],f0.prototype,"currentIndex",void 0);_.L([_.x(),_.p("design:type",Number)],f0.prototype,"scrollCount",void 0);_.L([_.x(),_.p("design:type",Object)],f0.prototype,"supportComponentResize",void 0);_.L([_.A3("#items"),_.p("design:type",HTMLDivElement)],f0.prototype,"items",void 0);_.L([_.gz("iron-resize"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],f0.prototype,"onIronResize",null);
_.L([_.O8("data"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],f0.prototype,"dataChanged",null);_.L([_.x({reflectToAttribute:!0}),_.S("inlineStructuredDescription"),_.p("design:type",Boolean),_.p("design:paramtypes",[])],f0.prototype,"hideNavigationButton",null);_.L([_.x({reflectToAttribute:!0}),_.S("data"),_.p("design:type",Boolean),_.p("design:paramtypes",[])],f0.prototype,"modernChapters",null);
_.L([_.x({reflectToAttribute:!0}),_.S("data"),_.p("design:type",Boolean),_.p("design:paramtypes",[])],f0.prototype,"hasVideoAttributeViewModels",null);_.L([_.x({reflectToAttribute:!0}),_.S("data"),_.p("design:type",Boolean),_.p("design:paramtypes",[])],f0.prototype,"modernInfoPanels",null);_.L([_.U({disableElementRegistration:!0,is:"ytd-horizontal-card-list-renderer"})],f0);
_.D(f0,"ytd-horizontal-card-list-renderer",function(){if(i9w!==void 0)return i9w;var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-horizontal-card-list-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="dismissible" class="style-scope ytd-horizontal-card-list-renderer">\n<div id="header-container" class="style-scope ytd-horizontal-card-list-renderer">\n  <h2 id="header" hidden$="[[!data.header]]" class="style-scope ytd-horizontal-card-list-renderer"></h2>\n  <div id="sort-filter" class="style-scope ytd-horizontal-card-list-renderer"></div>\n  <div id="header-button" class="style-scope ytd-horizontal-card-list-renderer"></div>\n</div>\n<div id="shelf-container" class="style-scope ytd-horizontal-card-list-renderer">\n  <div id="left-arrow-container" class="arrow-container style-scope ytd-horizontal-card-list-renderer" hidden="[[atStart]]">\n    <div id="left-arrow" class="arrow center-aligned style-scope ytd-horizontal-card-list-renderer" on-click="prevClick_" hidden="[[data.previousButton]]">\n       <yt-icon icon="yt-icons:chevron_left" class="style-scope ytd-horizontal-card-list-renderer"></yt-icon>\n    </div>\n    <div id="left-arrow-button" hidden="[[!data.previousButton]]" class="style-scope ytd-horizontal-card-list-renderer"></div>\n  </div>\n  <div id="scroll-container" on-keydown="handleKeyDown" class="style-scope ytd-horizontal-card-list-renderer">\n    <div id="items" class="style-scope ytd-horizontal-card-list-renderer"></div>\n  </div>\n  <div id="right-arrow-container" class="arrow-container style-scope ytd-horizontal-card-list-renderer" hidden="[[atEnd]]">\n    <div id="right-arrow" class="arrow center-aligned style-scope ytd-horizontal-card-list-renderer" on-click="nextClick_" hidden="[[data.nextButton]]">\n       <yt-icon icon="yt-icons:chevron_right" class="style-scope ytd-horizontal-card-list-renderer"></yt-icon>\n    </div>\n    <div id="right-arrow-button" hidden="[[!data.nextButton]]" class="style-scope ytd-horizontal-card-list-renderer"></div>\n  </div>\n</div>\n<div id="footer-section" hidden="[[!data.footerButton]]" class="style-scope ytd-horizontal-card-list-renderer"></div>\n</div>\n<div id="dismissed" class="style-scope ytd-horizontal-card-list-renderer"></div>');
a.content.insertBefore(_.w().content.cloneNode(!0),a.content.firstChild);return i9w=a},{mode:_.Np("kevlar_poly_si_batch_j072")?1:2});var TKO=_.ec(function(a){var z=a.data;var I={};return _.B("video-summary-content-view-model",{class:_.B8("video-summary-content-view-model-wiz",a.className,(I["video-summary-content-view-model-wiz--is-search"]=a.isSearch,I))},_.B(_.se,{each:function(){var J=[],r=z().paragraphs;if(r==null||!r.length)return[];for(var P=0;P<r.length;P++){var N=_.H(r[P],LUf),u=void 0;P>0&&(u=_.H(r[P-1],LUf));u&&!!u.marker===!!N.marker?J[J.length-1].paragraphs.push(N):J.push({isList:!!N.marker,paragraphs:[N]})}return J},
keyBy:"INDEX"},function(J){return _.B(_.g,{cond:function(){return J().isList},
then:function(){return _.B("ul",{class:"video-summary-content-view-model-wiz__list"},_.B(_.se,{each:function(){return J().paragraphs},
keyBy:"INDEX"},function(r){return _.B("li",{class:"video-summary-content-view-model-wiz__list-item"},_.B(_.xs,{text:function(){return r().text}}))}))},
else:function(){return _.B(_.se,{each:function(){return J().paragraphs},
keyBy:"INDEX"},function(r){return _.B("p",{class:"video-summary-content-view-model-wiz__paragraph"},_.B(_.xs,{text:function(){return r().text}}))})}})}),_.B(_.g,{cond:function(){return!!_.H(z().likeButtonViewModel,_.oy)&&!!_.H(z().dislikeButtonViewModel,_.WU)},
then:function(){return _.B("div",{class:"video-summary-content-view-model-wiz__bottomButtonsContainer"},_.B("div",{class:"video-summary-content-view-model-wiz__likeButton"},_.B(_.Ld,{data:function(){return _.H(z().likeButtonViewModel,_.oy)},
disableIconAnimation:!0})),_.B(_.Rp,{data:function(){return _.H(z().dislikeButtonViewModel,_.WU)}}))}}))},"gb");
TKO.idomCompat=!0;_.Jf(TKO,"video-summary-content-view-model",{props:{data:_.zl,isSearch:_.zl,className:_.zl}});var A0=function(){var a=_.G.apply(this,arguments)||this;var z,I;a.isExpanded=(I=(z=a.data)==null?void 0:z.isExpanded)!=null?I:!1;a.disableExpand=!1;a.showProminentLabel=!1;a.showRightSideLabel=!0;a.toggleExpandableContent=function(J){a.disableExpand||(J.stopPropagation(),_.ek(_.ch(J),a.hostElement,["info","expanded-subtitle"])||(a.isExpanded=!a.isExpanded,a.ytRendererBehavior.logExplicitClick(a.data),a.JSC$15062_cardList&&!_.K("expandable_metadata_a11y_fix_ks")&&_.Yv(a,function(){_.kk(a.hostElement)})))};
a.useSquareThumbnail=!1;a.contentHiddenWithDisplayNone=_.K("web_expandable_metadata_content_hidden_with_display_none");a.startX=0;return a};
_.b(A0,_.G);_.Z=A0.prototype;_.Z.computeUseSquareThumbnail=function(){var a;return(a=this.data)==null?void 0:a.useSquareThumbnail};
_.Z.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"}}}}};
_.Z.dataChanged=function(){if(this.data){var a,z;this.isExpanded=(z=(a=this.data)==null?void 0:a.isExpanded)!=null?z:!1;var I,J,r,P;if(a=this.isDarkTheme()?(I=this.data)==null?void 0:(J=I.colorData)==null?void 0:J.darkColorPalette:(r=this.data)==null?void 0:(P=r.colorData)==null?void 0:P.lightColorPalette){var N,u;if((N=this.data)==null?0:(u=N.colorData)==null?0:u.vibrantColorPalette)a.section1Color=this.data.colorData.vibrantColorPalette.section1Color,_.xq(this.hostElement,a)}}};
_.Z.isExpandedChanged=function(){this.isExpanded&&this.JSC$15062_cardList&&_.PA(this.JSC$15062_cardList,"iron-resize")};
_.Z.computeIsExpanded=function(a){return!!a.isExpanded};
_.Z.computeShowProminentLabel=function(a,z){var I;return!!(a==null?0:(I=a.header)==null?0:I.showLeadingCollapsedLabel)&&!z};
_.Z.computeShowRightSideLabel=function(a,z){var I;return!(a==null?0:(I=a.header)==null?0:I.showLeadingCollapsedLabel)&&!z};
_.Z.captureContentClick=function(a){if(!this.disableExpand)if(_.K("expandable_metadata_fix_killswitch")){var z=a.target;_.NEf(z,"ytd-macro-markers-list-item-renderer")||a.stopPropagation();(z==null?void 0:z.id)==="scroll-container"&&(this.isExpanded=!this.isExpanded)}else _.ek(_.ch(a),this.hostElement,["items"])||_.qK(_.ch(a),this.hostElement,["BUTTON"])||(this.isExpanded=!this.isExpanded)};
_.Z.timestampClick=function(a){a.stopPropagation();var z,I;(a=(z=this.data)==null?void 0:(I=z.header)==null?void 0:I.jumpToTimestampEndpoint)&&this.ytComponentBehavior.resolveCommand(a)};
_.Z.onDown=function(a){a.stopPropagation();this.startX=a.detail?a.detail.x:0};
_.Z.onUp=function(a){this.skipKeyInteraction(a)&&a.stopPropagation()};
_.Z.skipKeyInteraction=function(a){var z=a.target;if((z==null?void 0:z.id)==="scroll-container"||(z==null?void 0:z.id)==="items"||a.detail&&a.detail.x!==this.startX)return!0;a=_.ch(a);a=_.C(a);for(z=a.next();!z.done;z=a.next()){z=z.value;if(z===this.hostElement)break;if(z.hasAttribute&&z.hasAttribute("skip-key-interaction"))return!0}return!1};
_.Z.isDarkTheme=function(){return document.documentElement.hasAttribute("dark")};
_.eH.Object.defineProperties(A0.prototype,{hasVideoSummary:{configurable:!0,enumerable:!0,get:function(){var a;return!!_.H((a=this.data)==null?void 0:a.expandedContent,RzO)}},
hasLockupViewModel:{configurable:!0,enumerable:!0,get:function(){var a;return!!_.H((a=this.data)==null?void 0:a.expandedContent,_.TRl)}},
useCustomColors:{configurable:!0,enumerable:!0,get:function(){var a,z;return!((a=this.data)==null||!a.useCustomColors)&&!((z=this.data)==null||!z.colorData)&&!this.isWatch}},
showInfoButton:{configurable:!0,enumerable:!0,get:function(){var a;return!((a=this.data)==null||!a.infoButton)&&!!this.isExpanded}},
showTimestamp:{configurable:!0,enumerable:!0,get:function(){var a,z;return!!((a=this.data)==null?0:(z=a.header)==null?0:z.collapsedJumpToTimestamp)&&!this.isExpanded}},
showExpandedSubtitle:{configurable:!0,enumerable:!0,get:function(){var a,z;return!!((a=this.data)==null?0:(z=a.header)==null?0:z.expandedSubtitle)&&this.isExpanded}},
showThumbnail:{configurable:!0,enumerable:!0,get:function(){var a,z;return!!((a=this.data)==null?0:(z=a.header)==null?0:z.collapsedThumbnail)&&!this.isExpanded}},
useVppShoppingDestinationStyle:{configurable:!0,enumerable:!0,get:function(){var a;return((a=this.data)==null?void 0:a.style)==="EXPANDABLE_METADATA_STYLE_VPP_SHOPPING_DESTINATION"}},
contentHidden:{configurable:!0,enumerable:!0,get:function(){return _.K("web_expandable_metadata_content_hidden_with_display_none")&&!this.isExpanded}}});
A0.prototype.onUp=A0.prototype.onUp;A0.prototype.onDown=A0.prototype.onDown;A0.prototype.isExpandedChanged=A0.prototype.isExpandedChanged;A0.prototype.dataChanged=A0.prototype.dataChanged;_.L([_.Q(_.k.YtRendererBehavior),_.p("design:type",Object)],A0.prototype,"ytRendererBehavior",void 0);_.L([_.Q(_.u4.YtRendererstamperBehavior),_.p("design:type",Object)],A0.prototype,"ytRendererstamperBehavior",void 0);
_.L([_.Q(_.Ms.YtComponentBehavior),_.p("design:type",Object)],A0.prototype,"ytComponentBehavior",void 0);_.L([_.x(),_.p("design:type",Object)],A0.prototype,"data",void 0);_.L([_.x({reflectToAttribute:!0}),_.p("design:type",Object)],A0.prototype,"isExpanded",void 0);_.L([_.x({reflectToAttribute:!0}),_.p("design:type",Object)],A0.prototype,"disableExpand",void 0);_.L([_.x({value:!1}),_.p("design:type",Boolean)],A0.prototype,"isSearch",void 0);
_.L([_.x({value:!1,reflectToAttribute:!0}),_.p("design:type",Boolean)],A0.prototype,"isWatch",void 0);_.L([_.x({reflectToAttribute:!0,computed:"computeShowProminentLabel(data, isExpanded)"}),_.p("design:type",Object)],A0.prototype,"showProminentLabel",void 0);_.L([_.x({reflectToAttribute:!0,computed:"computeShowRightSideLabel(data, isExpanded)"}),_.p("design:type",Object)],A0.prototype,"showRightSideLabel",void 0);
_.L([_.x({value:!1,reflectToAttribute:!0}),_.S("data"),_.p("design:type",Boolean),_.p("design:paramtypes",[])],A0.prototype,"hasVideoSummary",null);_.L([_.x({value:!1,reflectToAttribute:!0}),_.S("data"),_.p("design:type",Boolean),_.p("design:paramtypes",[])],A0.prototype,"hasLockupViewModel",null);_.L([_.x({reflectToAttribute:!0}),_.S("data","isWatch"),_.p("design:type",Boolean),_.p("design:paramtypes",[])],A0.prototype,"useCustomColors",null);
_.L([_.x({reflectToAttribute:!0}),_.S("data","isExpanded"),_.p("design:type",Boolean),_.p("design:paramtypes",[])],A0.prototype,"showInfoButton",null);_.L([_.S("data","isExpanded"),_.p("design:type",Boolean),_.p("design:paramtypes",[])],A0.prototype,"showTimestamp",null);_.L([_.S("data","isExpanded"),_.p("design:type",Boolean),_.p("design:paramtypes",[])],A0.prototype,"showExpandedSubtitle",null);
_.L([_.S("data","isExpanded"),_.p("design:type",Boolean),_.p("design:paramtypes",[])],A0.prototype,"showThumbnail",null);_.L([_.x({reflectToAttribute:!0}),_.S("data"),_.p("design:type",Object),_.p("design:paramtypes",[])],A0.prototype,"useVppShoppingDestinationStyle",null);_.L([_.x(),_.p("design:type",Object)],A0.prototype,"toggleExpandableContent",void 0);_.L([_.A3("ytd-horizontal-card-list-renderer"),_.p("design:type",Object)],A0.prototype,"JSC$15062_cardList",void 0);
_.L([_.x({reflectToAttribute:!0,computed:"computeUseSquareThumbnail(data.useSquareThumbnail)"}),_.p("design:type",Object)],A0.prototype,"useSquareThumbnail",void 0);_.L([_.x({reflectToAttribute:!0}),_.p("design:type",Object)],A0.prototype,"contentHiddenWithDisplayNone",void 0);_.L([_.S("isExpanded"),_.p("design:type",Boolean),_.p("design:paramtypes",[])],A0.prototype,"contentHidden",null);
_.L([_.Fe("data"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],A0.prototype,"dataChanged",null);_.L([_.O8("isExpanded"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],A0.prototype,"isExpandedChanged",null);_.L([_.gz("down"),_.p("design:type",Function),_.p("design:paramtypes",[CustomEvent]),_.p("design:returntype")],A0.prototype,"onDown",null);
_.L([_.gz("up"),_.p("design:type",Function),_.p("design:paramtypes",[CustomEvent]),_.p("design:returntype")],A0.prototype,"onUp",null);_.L([_.U({is:"ytd-expandable-metadata-renderer",disableElementRegistration:!0})],A0);
_.D(A0,"ytd-expandable-metadata-renderer",function(){if(TyO!==void 0)return TyO;var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-expandable-metadata-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" on-click="toggleExpandableContent" skip-key-interaction="" class="style-scope ytd-expandable-metadata-renderer">\n  <div id="left-section" class="style-scope ytd-expandable-metadata-renderer">\n    <div id="thumbnail" hidden="[[!showThumbnail]]" class="style-scope ytd-expandable-metadata-renderer">\n      <yt-img-shadow object-fit="FILL" thumbnail="[[data.header.collapsedThumbnail]]" class="style-scope ytd-expandable-metadata-renderer">\n      </yt-img-shadow>\n    </div>\n    <div id="prominent-collapsed-label" hidden="[[!showProminentLabel]]" class="style-scope ytd-expandable-metadata-renderer">\n      <yt-formatted-string id="prominent-label-text" text="[[data.header.collapsedLabel]]" class="style-scope ytd-expandable-metadata-renderer"></yt-formatted-string>\n    </div>\n    <div id="timestamp" hidden="[[!showTimestamp]]" raised="" on-click="timestampClick" class="style-scope ytd-expandable-metadata-renderer">\n      <yt-formatted-string text="[[data.header.collapsedJumpToTimestamp]]" class="style-scope ytd-expandable-metadata-renderer"></yt-formatted-string>\n    </div>\n    <div id="collapsed-title" hidden="[[isExpanded]]" role="button" class="style-scope ytd-expandable-metadata-renderer">\n      <yt-formatted-string text="[[data.header.collapsedTitle]]" class="style-scope ytd-expandable-metadata-renderer"></yt-formatted-string>\n    </div>\n    <div id="expanded-title-subtitle-group" hidden="[[!isExpanded]]" class="style-scope ytd-expandable-metadata-renderer">\n      <yt-icon id="expanded-title-icon" disable-upgrade$="[[!data.header.expandedTitleIcon.iconType]]" hidden="[[!data.header.expandedTitleIcon.iconType]]" icon="[[data.header.expandedTitleIcon.iconType]]" class="style-scope ytd-expandable-metadata-renderer">\n      </yt-icon>\n      <div id="expanded-title-subtitle-text" class="style-scope ytd-expandable-metadata-renderer">\n        <div id="expanded-title" class="style-scope ytd-expandable-metadata-renderer">\n          <yt-formatted-string text="[[data.header.expandedTitle]]" class="style-scope ytd-expandable-metadata-renderer"></yt-formatted-string>\n        </div>\n        <div id="expanded-subtitle" hidden="[[!showExpandedSubtitle]]" class="style-scope ytd-expandable-metadata-renderer">\n          <a class="yt-simple-endpoint style-scope ytd-expandable-metadata-renderer" href$="[[computeHref_(data.header.expandedSubtitleTapCommand)]]" data="[[data.header.expandedSubtitleTapCommand]]">\n            <yt-formatted-string text="[[data.header.expandedSubtitle]]" class="style-scope ytd-expandable-metadata-renderer"></yt-formatted-string>\n            <yt-icon disable-upgrade$="[[!data.header.expandedSubtitleTrailingIcon.iconType]]" hidden="[[!data.header.expandedSubtitleTrailingIcon.iconType]]" icon="[[data.header.expandedSubtitleTrailingIcon.iconType]]" class="style-scope ytd-expandable-metadata-renderer">\n            </yt-icon>\n          </a>\n        </div>\n      </div>\n    </div>\n  </div>\n  <div id="right-section" class="style-scope ytd-expandable-metadata-renderer">\n    <div id="info" hidden="[[!showInfoButton]]" class="style-scope ytd-expandable-metadata-renderer"></div>\n    <div id="collapsed-label" hidden="[[!showRightSideLabel]]" class="style-scope ytd-expandable-metadata-renderer">\n      <yt-icon disable-upgrade$="[[!data.header.collapsedLabelIcon.iconType]]" hidden="[[!data.header.collapsedLabelIcon.iconType]]" icon="[[data.header.collapsedLabelIcon.iconType]]" class="style-scope ytd-expandable-metadata-renderer">\n      </yt-icon>\n      <yt-formatted-string text="[[data.header.collapsedLabel]]" class="style-scope ytd-expandable-metadata-renderer"></yt-formatted-string>\n    </div>\n    <div id="expand" hidden="[[isExpanded]]" class="style-scope ytd-expandable-metadata-renderer"></div>\n    <div id="collapse" hidden="[[!isExpanded]]" class="style-scope ytd-expandable-metadata-renderer"></div>\n  </div>\n</div>\n<div id="content" hidden="[[contentHidden]]" on-click="captureContentClick" class="style-scope ytd-expandable-metadata-renderer"></div>\n<div id="menu" hidden="[[!isExpanded]]" class="style-scope ytd-expandable-metadata-renderer"></div>\n');a.content.insertBefore(_.w().content.cloneNode(!0),
a.content.firstChild);return TyO=a},{mode:1});var dXv,WFX=function(){if(dXv!==void 0)return dXv;var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-video-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="dismissible" class="style-scope ytd-video-renderer">\n  <ytd-thumbnail data="[[data]]" hovered="[[isHovered]]" use-expandable-tooltip="[[useExpandableTooltip]]" use-hovered-property="" use-untranslated-navigation-endpoint="[[hideTranslation]]" width="[[computeThumbnailWidth(isBackstageVideo, isPostCompactVideo, useSearchUi, useBiggerThumbs, biggerThumbsStyle, videoStyle)]]" class="style-scope ytd-video-renderer">\n  </ytd-thumbnail>\n  <div class="text-wrapper style-scope ytd-video-renderer" on-click="onTextWrapperClick">\n    <div id="meta" class="style-scope ytd-video-renderer">\n      <div id="title-wrapper" class="style-scope ytd-video-renderer">\n        <h3 class="title-and-badge style-scope ytd-video-renderer">\n          <ytd-badge-supported-renderer collection-truncate="" hidden="[[!data.topStandaloneBadge]]" top-standalone-badge="[[data.topStandaloneBadge]]" class="style-scope ytd-video-renderer">\n          </ytd-badge-supported-renderer>\n          <a id="video-title" class="yt-simple-endpoint style-scope ytd-video-renderer" aria-label$="[[data.title.accessibility.accessibilityData.label]]" href$="[[computeHref_(computedNavigationEndpoint)]]" title$="[[getSimpleString(data.title)]]" data="[[computedNavigationEndpoint]]">\n            <yt-icon id="inline-title-icon" hidden="[[hideInlineTitleIcon(hideTranslation, inlineTitleIcon)]]" icon="[[inlineTitleIcon]]" class="style-scope ytd-video-renderer">\n            </yt-icon>\n            <yt-formatted-string text="[[computeTitleText(hideTranslation, data.title, data.untranslatedTitle)]]" class="style-scope ytd-video-renderer">\n            </yt-formatted-string>\n          </a>\n        </h3>\n        <div id="menu" class="style-scope ytd-video-renderer"></div>\n      </div>\n      <ytd-video-meta-block data="[[data]]" no-byline="[[shouldShowChannelInfo]]" truncate-metadata-line="[[isRichGridVideoPost]]" class="style-scope ytd-video-renderer">\n      </ytd-video-meta-block>\n    </div>\n    <div id="channel-info" hidden="[[!shouldShowChannelInfo]]" class="style-scope ytd-video-renderer">\n      <a id="channel-thumbnail" hidden="[[!shouldShowChannelThumbnail]]" aria-label$="[[data.channelThumbnailSupportedRenderers.channelThumbnailWithLinkRenderer.accessibility.accessibilityData.label]]" href$="[[computeHref_(data.channelThumbnailSupportedRenderers.channelThumbnailWithLinkRenderer.navigationEndpoint)]]" class="style-scope ytd-video-renderer">\n        <yt-img-shadow thumbnail="[[data.channelThumbnailSupportedRenderers.channelThumbnailWithLinkRenderer.thumbnail]]" width="24" class="style-scope ytd-video-renderer">\n        </yt-img-shadow>\n      </a>\n      <div id="avatar" hidden="[[!useAvatar]]" class="style-scope ytd-video-renderer"></div>\n      <ytd-channel-name id="channel-name" class="long-byline style-scope ytd-video-renderer" badges="[[data.ownerBadges]]" channel-name="[[data.longBylineText]]" wrap-text="true">\n      </ytd-channel-name>\n    </div>\n    <yt-formatted-string id="description-text" hidden="[[!data.descriptionSnippet]]" text="[[computeDescriptionSnippet(hideTranslation, data.descriptionSnippet, data.untranslatedDescriptionSnippet)]]" class="style-scope ytd-video-renderer">\n    </yt-formatted-string>\n    <template is="dom-repeat" items="[[data.detailedMetadataSnippets]]" hidden="[[!data.detailedMetadataSnippets]]" class="style-scope ytd-video-renderer">\n      <div class$="[[getMetadataSnippetContainerClass(item.maxOneLine)]] style-scope ytd-video-renderer">\n        <a class="yt-simple-endpoint metadata-snippet-timestamp style-scope ytd-video-renderer" aria-label$="[[item.snippetTimestamp.accessibility.accessibilityData.label]]" hidden="[[!item.snippetTimestamp]]" href$="[[computeHref_(item.timestampEndpoint)]]" data="[[item.timestampEndpoint]]">\n          <span id="time" class="style-scope ytd-video-renderer">[[getSimpleString(item.snippetTimestamp)]]</span>\n          <yt-formatted-string class="metadata-snippet-text-navigation style-scope ytd-video-renderer" text="[[item.snippetText]]">\n          </yt-formatted-string>\n        </a>\n        <yt-formatted-string class="metadata-snippet-text style-scope ytd-video-renderer" hidden="[[item.snippetTimestamp]]" text="[[computeSnippetText(hideTranslation, item.snippetText, item.untranslatedSnippetText)]]">\n        </yt-formatted-string>\n        <tp-yt-paper-tooltip class="style-scope ytd-video-renderer">[[getSimpleString(item.snippetHoverText)]]</tp-yt-paper-tooltip>\n      </div>\n    </template>\n    <ytd-badge-supported-renderer id="badges" badges="[[data.badges]]" hidden="[[!data.badges]]" hidden-badge-groups="[[hiddenBadgeGroups]]" class="style-scope ytd-video-renderer">\n    </ytd-badge-supported-renderer>\n    <div id="expandable-metadata" class="style-scope ytd-video-renderer"></div>\n    <div id="buttons" class="style-scope ytd-video-renderer"></div>\n  </div>\n</div>\n<div id="dismissed" class="style-scope ytd-video-renderer"></div>\n<yt-interaction id="interaction" class="extended style-scope ytd-video-renderer"></yt-interaction>\n');
a.content.insertBefore(_.w().content.cloneNode(!0),a.content.firstChild);return dXv=a};_.Jf(_.DU,"yt-avatar-stack-view-model",{props:{className:_.zl,data:_.zl,overrides:_.zl,isOverlay:_.zl,useMediumText:_.zl,decorations:_.zl,hideAvatar:_.zl}});_.$q("itemSectionRenderer","videoRenderer","ytd-video-renderer");var su=function(){var a=_.G.apply(this,arguments)||this;a.disableExpand=!1;a.shouldShowChannelInfo=!1;a.actionMap={"yt-hide-item-section-videos-by-id-command":"handleHideItemSectionVideosByIdCommand"};return a};
_.b(su,_.G);_.Z=su.prototype;_.Z.computeUseSearchUi=function(){var a,z;return this.isSearch||((a=this.data)==null?void 0:(z=a.style)==null?void 0:z.value)==="VIDEO_STYLE_TYPE_WITH_EXPANDED_METADATA"};
_.Z.computeUseThreeLineTitle=function(){var a;return((a=this.data)==null?void 0:a.maxTitleLines)===3};
_.Z.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"},initialRenderPriority:_.K("polymer_video_renderer_defer_menu")&&!Qmv?0:void 0},"data.buttons":{id:"buttons",mapping:{toggleButtonRenderer:"ytd-toggle-button-renderer",upcomingEventReminderButtonRenderer:"ytd-upcoming-event-reminder-button-renderer",buttonRenderer:"ytd-button-renderer"}},dismissedRenderer:{id:"dismissed",mapping:{notificationTextRenderer:"ytd-notification-text-renderer",
notificationMultiActionRenderer:"ytd-notification-multi-action-renderer"}},"data.expandableMetadata":{id:"expandable-metadata",mapping:{expandableMetadataRenderer:{component:"ytd-expandable-metadata-renderer",properties:{isSearch:"[[useSearchUi]]",disableExpand:"[[disableExpand]]"}}}},"data.avatar":{id:"avatar",mapping:{avatarStackViewModel:"yt-avatar-stack-view-model"}}}};
_.Z.attached=function(){_.CM(this.hostElement,"blue-links",_.K("kevlar_video_blue_links"));this.updateInlinePreviewHoverListeners()};
_.Z.detached=function(){this.clearInlinePreviewHoverListeners()};
_.Z.dataChanged=function(){this.isHistory=window.location.pathname.indexOf("/feed/history")!==-1;_.N3(_.PK(this.hostElement).querySelector("#description-text"),"ellipsis-truncate",!!this.data.topStandaloneBadge);var a=this.get("data.buttons.buttonRenderer.serviceEndpoint"),z;a&&((z=_.H(a.commandMetadata,_.$F))==null?0:z.fireAutomatically)&&this.ytComponentBehavior.resolveCommand(a);this.updateInlinePreviewHoverListeners()};
_.Z.updateInlinePreviewHoverListeners=function(){this.clearInlinePreviewHoverListeners();this.JSC$15067_inlinePreviewHoverListener=LU({mediaRenderer:this,lockupElement:this.JSC$15067_dismissibleMedia,thumbnailElement:this.thumbnail})};
_.Z.clearInlinePreviewHoverListeners=function(){var a;(a=this.JSC$15067_inlinePreviewHoverListener)==null||e8(a)};
_.Z.onTextWrapperClick=function(a){var z,I,J=this.hideTranslation?(z=this.data)==null?void 0:z.untranslatedNavigationEndpoint:(I=this.data)==null?void 0:I.navigationEndpoint;z=_.ek(_.ch(a),this.hostElement,["expandable-metadata"]);!J||z&&!_.K("expandable_metadata_fix_killswitch")||_.qK(_.ch(a),this.hostElement,["A".toString(),"BUTTON".toString(),"YT-AVATAR-STACK-VIEW-MODEL"])||_.PA(this.hostElement,"yt-navigate",{endpoint:J})};
_.Z.computeThumbnailWidth=function(a,z,I,J,r){return this.videoStyle==="VIDEO_STYLE_TYPE_WITH_EXPANDED_METADATA"?500:J?r==="MASSIVE"?600:r==="BIG"?500:r==="MEDIUM"?450:420:I?360:z?128:a?210:246};
_.Z.computeUseBiggerThumbs=function(a){return a&&_.K("enable_desktop_search_bigger_thumbs")};
_.Z.computeShouldShowChannelInfo=function(){return this.useSearchUi};
_.Z.computeVideoStyle=function(){if(_.K("enable_video_style")){var a,z;return(a=this.data)==null?void 0:(z=a.style)==null?void 0:z.value}};
_.Z.computeDisableExpand=function(){return this.videoStyle==="VIDEO_STYLE_TYPE_WITH_EXPANDED_METADATA"};
_.Z.handleHideItemSectionVideosByIdCommand=function(a){var z;a=(z=_.H(a,Nno))==null?void 0:z.videoId;this.data&&this.data.videoId===a&&(this.isHidden=!0)};
_.Z.getMetadataSnippetContainerClass=function(a){return a?"metadata-snippet-container-one-line":"metadata-snippet-container"};
_.Z.computeTitleText=function(a,z,I){return a?I:z};
_.Z.computeDescriptionSnippet=function(a,z,I){return a?I:z};
_.Z.computeSnippetText=function(a,z,I){return a?I:z};
_.Z.computeNavigationEndpoint=function(a,z){return a?z==null?void 0:z.untranslatedNavigationEndpoint:z==null?void 0:z.navigationEndpoint};
_.Z.hideInlineTitleIcon=function(a,z){return a||!z};
_.eH.Object.defineProperties(su.prototype,{hideTranslation:{configurable:!0,enumerable:!0,get:function(){return this.searchVideoResultEntity?!!this.searchVideoResultEntity.hasOptedOutTranslation:!1}},
hiddenBadgeGroups:{configurable:!0,enumerable:!0,get:function(){if(this.searchVideoResultEntity){var a;return(a=this.searchVideoResultEntity.hiddenBadgeGroups)!=null?a:[]}return[]}},
shouldShowChannelThumbnail:{configurable:!0,enumerable:!0,get:function(){var a,z,I;return!!(this==null?0:(a=this.data)==null?0:(z=a.channelThumbnailSupportedRenderers)==null?0:(I=z.channelThumbnailWithLinkRenderer)==null?0:I.thumbnail)&&!this.useAvatar}},
useAvatar:{configurable:!0,enumerable:!0,get:function(){var a;return!!_.H((a=this.data)==null?void 0:a.avatar,d_v)}},
isHovered:{configurable:!0,enumerable:!0,get:function(){var a;return!((a=this.JSC$15067_inlinePreviewHoverListener)==null?0:lO(a))&&!!this.ytdLockupBehavior.lockupIsHovered}}});
_.eH.Object.defineProperties(su,{template:{configurable:!0,enumerable:!0,get:function(){return WFX()}}});
su.prototype.dataChanged=su.prototype.dataChanged;_.L([_.Q(_.Ms.YtComponentBehavior),_.p("design:type",Object)],su.prototype,"ytComponentBehavior",void 0);_.L([_.Q(_.k.YtRendererBehavior),_.p("design:type",Object)],su.prototype,"ytRendererBehavior",void 0);_.L([_.Q(_.u4.YtRendererstamperBehavior),_.p("design:type",Object)],su.prototype,"ytRendererstamperBehavior",void 0);_.L([_.Q(_.mD),_.p("design:type",Object)],su.prototype,"ytdDismissibleItemBehavior",void 0);
_.L([_.Q(_.eB),_.p("design:type",Object)],su.prototype,"ytdLockupBehavior",void 0);_.L([_.Q(_.Hc.YtActionHandlerBehavior),_.p("design:type",Object)],su.prototype,"ytActionHandlerBehavior",void 0);_.L([_.Q(_.pV),_.p("design:type",Object)],su.prototype,"ytdReduxBehavior",void 0);_.L([_.x(),_.p("design:type",Object)],su.prototype,"data",void 0);_.L([_.x({reflectToAttribute:!0,value:!1}),_.p("design:type",Boolean)],su.prototype,"isBackstageVideo",void 0);
_.L([_.x({reflectToAttribute:!0,value:!1}),_.p("design:type",Boolean)],su.prototype,"isPostCompactVideo",void 0);_.L([_.x({reflectToAttribute:!0}),_.p("design:type",Boolean)],su.prototype,"isHistory",void 0);_.L([_.x({reflectToAttribute:!0,value:!1}),_.p("design:type",Boolean)],su.prototype,"isRichGridVideoPost",void 0);_.L([_.x({reflectToAttribute:!0,value:!1}),_.p("design:type",Boolean)],su.prototype,"isHidden",void 0);
_.L([_.x({reflectToAttribute:!0,value:!1}),_.p("design:type",Boolean)],su.prototype,"isSearch",void 0);_.L([_.x({reflectToAttribute:!0,value:!1,computed:"computeUseSearchUi(isSearch, data)"}),_.p("design:type",Boolean)],su.prototype,"useSearchUi",void 0);_.L([_.x({reflectToAttribute:!0,value:!1,computed:"computeUseThreeLineTitle(data)"}),_.p("design:type",Boolean)],su.prototype,"useThreeLineTitle",void 0);
_.L([_.x({reflectToAttribute:!0,computed:"computeUseBiggerThumbs(useSearchUi)"}),_.p("design:type",Boolean)],su.prototype,"useBiggerThumbs",void 0);_.L([_.x({reflectToAttribute:!0,computed:"computeVideoStyle(data.style.value)"}),_.p("design:type",Object)],su.prototype,"videoStyle",void 0);_.L([_.x({computed:"computeDisableExpand(videoStyle)"}),_.p("design:type",Object)],su.prototype,"disableExpand",void 0);
_.L([_.x({computed:"computeShouldShowChannelInfo(useSearchUi)"}),_.p("design:type",Object)],su.prototype,"shouldShowChannelInfo",void 0);_.L([_.x({reflectToAttribute:!0,value:function(){return _.rM("desktop_search_bigger_thumbs_style")}}),
_.p("design:type",String)],su.prototype,"biggerThumbsStyle",void 0);_.L([_.x({reflectToAttribute:!0,computed:"computeIcon_(data.inlineTitleIcon)"}),_.p("design:type",String)],su.prototype,"inlineTitleIcon",void 0);_.L([_.x({computed:"computeNavigationEndpoint(hideTranslation, data)"}),_.p("design:type",Object)],su.prototype,"computedNavigationEndpoint",void 0);_.L([_.x({selectorArgs:["data.searchVideoResultEntityKey"],selector:function(a,z){return _.Bd(a.entities,"searchVideoResultEntity",z)}}),
_.p("design:type",Object)],su.prototype,"searchVideoResultEntity",void 0);_.L([_.A3("ytd-thumbnail"),_.p("design:type",HTMLElement)],su.prototype,"thumbnail",void 0);_.L([_.A3("#dismissible"),_.p("design:type",HTMLElement)],su.prototype,"JSC$15067_dismissibleMedia",void 0);_.L([_.Fe("data"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],su.prototype,"dataChanged",null);
_.L([_.S("searchVideoResultEntity"),_.p("design:type",Boolean),_.p("design:paramtypes",[])],su.prototype,"hideTranslation",null);_.L([_.S("searchVideoResultEntity"),_.p("design:type",Array),_.p("design:paramtypes",[])],su.prototype,"hiddenBadgeGroups",null);_.L([_.S("data","useAvatar"),_.p("design:type",Boolean),_.p("design:paramtypes",[])],su.prototype,"shouldShowChannelThumbnail",null);_.L([_.S("data"),_.p("design:type",Boolean),_.p("design:paramtypes",[])],su.prototype,"useAvatar",null);
_.L([_.S("lockupIsHovered"),_.p("design:type",Boolean),_.p("design:paramtypes",[])],su.prototype,"isHovered",null);_.L([_.U({is:"ytd-video-renderer",disableElementRegistration:!0})],su);_.D(su,"ytd-video-renderer",function(){return WFX()},{mode:_.Np("kevlar_poly_si_batch_j047")?1:2});var n0=function(){var a=_.G.apply(this,arguments)||this;a.editDialog=null;a.roundedContainer=!0;a.isLoading=!1;a.isRichGrid=!1;a.isRichGridRepost=!1;a.reduceSidePaddings=_.K("reduce_side_paddings_in_shelf");a.JSC$15074_spinnerEl=null;return a};
_.b(n0,_.G);_.Z=n0.prototype;
_.Z.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"}}}};
_.Z.contentTextChanged=function(){this.expander.reset()};
_.Z.dataChanged=function(){var a=this;if(this.data){this.isLoading=!1;this.editDialog=null;for(var z=0,I=this.data.actions&&this.data.actions.length;z<I;z++)this.openEditDialog(_.H(this.data.actions[z],nMO));if((z=this.get("actionButtons.commentActionButtonsRenderer.shareButton",this.data))&&(z=this.get("buttonRenderer.hint.hintRenderer.hintId",z))&&z.startsWith("share-post-hint")){var J=this.get("children.dismissible.children.toolbar.children.action-buttons.children.toolbar.children.share-button",
this);if(J){_.Ns.getInstance();var r=tK(_.Mo(_.AR("SHARE_POST_EDU_TEXT")),"share-post-edu-displayed","OPEN_POPUP_POSITION_TOPRIGHT");_.GW.addLowPriorityJob(function(){_.tR(a.hostElement,r,J)})}}}};
_.Z.updatePoll=function(a){a>=0?this.actionButtons.reply():this.actionButtons.hideReplyDialog()};
_.Z.isLoadingChanged=function(){!this.isLoading||this.editDialog||this.JSC$15074_spinnerEl||(this.JSC$15074_spinnerEl=document.createElement("tp-yt-paper-spinner-lite"),_.PK(this.hostElement).appendChild(this.JSC$15074_spinnerEl));this.JSC$15074_spinnerEl&&(this.JSC$15074_spinnerEl.active=this.isLoading)};
_.Z.onYtNavigate=function(a){var z=this.get("updateCommentDialogEndpoint",a.detail.endpoint);z&&(this.openEditDialog(z),a.stopPropagation())};
_.Z.onYtCommentboxDismiss=function(){this.editDialog=null};
_.Z.onYtCommentPollRevert=function(a,z){z&&this.updatePoll(z.selectedChoiceIndex)};
_.Z.onYtServiceRequestSent=function(a,z){var I;z.endpoint&&(_.H(z.endpoint,YLi)||_.H(z.endpoint,cVf)&&((I=_.H(z.endpoint,cVf))==null||!I.clientActions))&&(this.isLoading=!0);if(z.actions)for(a=0;a<z.actions.length;a++)I=z.actions[a],_.H(I,vU)&&(I=this.get("updateBackstagePollAction.selectedChoiceIndex",I),I==void 0&&(I=-1),this.updatePoll(I))};
_.Z.onYtServiceRequestCompleted=function(){this.isLoading=!1};
_.Z.openEditDialog=function(a){a&&a.dialog&&(this.editDialog=a.dialog,a=this.editDialogEl.firstElementChild)&&(a.focus(),a.openDialog&&a.openDialog())};
_.Z.computeIsPostHidden=function(a,z){return!!a||z};
_.Z.computeSurfaceType=function(a){return a?a.toLowerCase().replace(/_/g,"-"):""};
_.Z.computeUsesCompactLockup=function(a){return a==="BACKSTAGE_SURFACE_TYPE_HOME"||a==="BACKSTAGE_SURFACE_TYPE_SEARCH"||a==="BACKSTAGE_SURFACE_TYPE_NEWS_DESTINATION"||a==="BACKSTAGE_SURFACE_TYPE_CHANNEL_HOME"||a==="BACKSTAGE_SURFACE_TYPE_STRUCTURED_DESCRIPTION"||a==="BACKSTAGE_SURFACE_TYPE_REPOST_PREVIEW"};
_.Z.computeShowWithoutToolbar=function(a){return!a.actionButtons&&!a.actionMenu};
_.Z.computePostAttachment=function(a){if(a.backstageAttachment){if(_.H(a.backstageAttachment,vFv))return"poll";if(_.H(a.backstageAttachment,gFj))return"quiz";if(_.H(a.backstageAttachment,_.wB))return"video";if(_.H(a.backstageAttachment,OQw))return"uploaded-videos";if(_.H(a.backstageAttachment,prI))return a.contentText?"image":"image-only";if(_.H(a.backstageAttachment,tGl))return"playlist"}return"none"};
_.Z.computePostTabIndex=function(a){return a?0:-1};
_.Z.computeButtonTooltipPosition=function(a){return this.computeUsesCompactLockup(a)?"top":"bottom"};
_.Z.computeHasText=function(a){return!(a==null||!a.contentText)};
_.Z.onTap=function(a){var z,I;if(((z=this.data)==null?0:z.navigationEndpoint)&&((I=this.data)==null?void 0:I.surface)==="BACKSTAGE_SURFACE_TYPE_STRUCTURED_DESCRIPTION")this.ytComponentBehavior.resolveCommand(this.data.navigationEndpoint);else{var J;((J=this.data)==null?0:J.navigationEndpoint)&&!_.qK(_.ch(a)||[],this.hostElement,["A".toString(),"BUTTON".toString(),"YTD-VIDEO-RENDERER","YTD-PLAYLIST-RENDERER"])&&_.PA(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint})}};
_.eH.Object.defineProperties(n0.prototype,{voteCount:{configurable:!0,enumerable:!0,get:function(){var a;return((a=this.data)==null?void 0:a.voteCount)||_.Mo("0")}},
commentCount:{configurable:!0,enumerable:!0,get:function(){var a;return(a=this.data)==null?void 0:a.commentCount}},
hasPoll:{configurable:!0,enumerable:!0,get:function(){return!(!this.data.backstageAttachment||!_.H(this.data.backstageAttachment,vFv))}},
hasUploadedVideo:{configurable:!0,enumerable:!0,get:function(){return!(!this.data.backstageAttachment||!_.H(this.data.backstageAttachment,OQw))}}});
n0.prototype.onYtServiceRequestCompleted=n0.prototype.onYtServiceRequestCompleted;n0.prototype.onYtServiceRequestSent=n0.prototype.onYtServiceRequestSent;n0.prototype.onYtCommentPollRevert=n0.prototype.onYtCommentPollRevert;n0.prototype.onYtCommentboxDismiss=n0.prototype.onYtCommentboxDismiss;n0.prototype.onYtNavigate=n0.prototype.onYtNavigate;n0.prototype.isLoadingChanged=n0.prototype.isLoadingChanged;n0.prototype.dataChanged=n0.prototype.dataChanged;n0.prototype.contentTextChanged=n0.prototype.contentTextChanged;
_.L([_.Q(_.mD),_.p("design:type",Object)],n0.prototype,"ytdDismissibleItemBehavior",void 0);_.L([_.Q(_.k.YtRendererBehavior),_.p("design:type",Object)],n0.prototype,"ytRendererBehavior",void 0);_.L([_.Q(_.u4.YtRendererstamperBehavior),_.p("design:type",Object)],n0.prototype,"ytRendererstamperBehavior",void 0);_.L([_.Q(_.Ms.YtComponentBehavior),_.p("design:type",Object)],n0.prototype,"ytComponentBehavior",void 0);_.L([_.x(),_.p("design:type",Object)],n0.prototype,"data",void 0);
_.L([_.x(),_.p("design:type",Object)],n0.prototype,"editDialog",void 0);_.L([_.x({reflectToAttribute:!0}),_.p("design:type",Object)],n0.prototype,"roundedContainer",void 0);_.L([_.x(),_.p("design:type",Object)],n0.prototype,"isLoading",void 0);_.L([_.x({computed:"computeSurfaceType(data.surface)",reflectToAttribute:!0}),_.p("design:type",String)],n0.prototype,"surface",void 0);
_.L([_.x({computed:"computeUsesCompactLockup(data.surface)",reflectToAttribute:!0}),_.p("design:type",Boolean)],n0.prototype,"usesCompactLockup",void 0);_.L([_.x({computed:"computeShowWithoutToolbar(data)",reflectToAttribute:!0}),_.p("design:type",Boolean)],n0.prototype,"showWithoutToolbar",void 0);_.L([_.x({computed:"computePostAttachment(data)",reflectToAttribute:!0}),_.p("design:type",String)],n0.prototype,"attachment",void 0);
_.L([_.x({reflectToAttribute:!0}),_.p("design:type",Object)],n0.prototype,"isRichGrid",void 0);_.L([_.x({reflectToAttribute:!0}),_.p("design:type",Object)],n0.prototype,"isRichGridRepost",void 0);_.L([_.x({reflectToAttribute:!0,value:_.K("use_better_post_dismissals")}),_.p("design:type",Boolean)],n0.prototype,"useBetterPostDismissals",void 0);_.L([_.x({reflectToAttribute:!0}),_.p("design:type",Object)],n0.prototype,"reduceSidePaddings",void 0);
_.L([_.x({computed:"computeHasText(data)",reflectToAttribute:!0}),_.p("design:type",Boolean)],n0.prototype,"hasText",void 0);_.L([_.A3("#expander"),_.p("design:type",Object)],n0.prototype,"expander",void 0);_.L([_.A3("#action-buttons"),_.p("design:type",Object)],n0.prototype,"actionButtons",void 0);_.L([_.A3("#edit-dialog"),_.p("design:type",HTMLElement)],n0.prototype,"editDialogEl",void 0);
_.L([_.O8("data.contentText"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],n0.prototype,"contentTextChanged",null);_.L([_.Fe("data"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],n0.prototype,"dataChanged",null);_.L([_.O8("isLoading"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],n0.prototype,"isLoadingChanged",null);
_.L([_.gz("yt-navigate"),_.p("design:type",Function),_.p("design:paramtypes",[CustomEvent]),_.p("design:returntype")],n0.prototype,"onYtNavigate",null);_.L([_.gz("yt-commentbox-dismiss"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],n0.prototype,"onYtCommentboxDismiss",null);_.L([_.gz("yt-comment-poll-revert"),_.p("design:type",Function),_.p("design:paramtypes",[CustomEvent,Object]),_.p("design:returntype")],n0.prototype,"onYtCommentPollRevert",null);
_.L([_.gz("yt-service-request-sent"),_.p("design:type",Function),_.p("design:paramtypes",[CustomEvent,_.lJ]),_.p("design:returntype")],n0.prototype,"onYtServiceRequestSent",null);_.L([_.gz("yt-service-request-completed"),_.p("design:type",Function),_.p("design:paramtypes",[CustomEvent,_.Yq]),_.p("design:returntype")],n0.prototype,"onYtServiceRequestCompleted",null);_.L([_.S("data"),_.p("design:type",Object),_.p("design:paramtypes",[])],n0.prototype,"voteCount",null);
_.L([_.S("data"),_.p("design:type",Object),_.p("design:paramtypes",[])],n0.prototype,"commentCount",null);_.L([_.S("data"),_.p("design:type",Boolean),_.p("design:paramtypes",[])],n0.prototype,"hasPoll",null);_.L([_.S("data"),_.p("design:type",Boolean),_.p("design:paramtypes",[])],n0.prototype,"hasUploadedVideo",null);_.L([_.U({is:"ytd-post-renderer",disableElementRegistration:!0})],n0);
_.D(n0,"ytd-post-renderer",function(){if(z_l!==void 0)return z_l;var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-post-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="dismissible" role="link" hidden="[[computeIsPostHidden(editDialog, isLoading)]]" tabindex="[[computePostTabIndex(data.navigationEndpoint)]]" on-tap="onTap" class="style-scope ytd-post-renderer">\n  <div id="header" class="style-scope ytd-post-renderer">\n    <div id="author-thumbnail" class="style-scope ytd-post-renderer">\n      <a aria-hidden="true" class="yt-simple-endpoint style-scope ytd-post-renderer" href$="[[computeHref_(data.authorEndpoint)]]" data="[[data.authorEndpoint]]" tabindex="-1">\n        <yt-img-shadow fit="" height="32" thumbnail="[[data.authorThumbnail]]" width="32" class="style-scope ytd-post-renderer">\n        </yt-img-shadow>\n      </a>\n    </div>\n    <div id="author" class="style-scope ytd-post-renderer">\n      <a id="author-text" class="yt-simple-endpoint style-scope ytd-post-renderer" href$="[[computeHref_(data.authorEndpoint)]]" data="[[data.authorEndpoint]]" hidden="[[data.authorCommentBadge]]">\n        <span class="style-scope ytd-post-renderer">[[getSimpleString(data.authorText)]]</span>\n      </a>\n      <span id="author-comment-badge" hidden="[[!data.authorCommentBadge]]" class="style-scope ytd-post-renderer"></span>\n    </div>\n    <span id="author-divider" class="style-scope ytd-post-renderer">\u2022</span>\n    <yt-formatted-string id="published-time-text" link-inherit-color="" text="[[data.publishedTimeText]]" class="style-scope ytd-post-renderer">\n    </yt-formatted-string>\n    <span id="sponsors-only-badge" hidden="[[!data.sponsorsOnlyBadge]]" class="style-scope ytd-post-renderer"></span>\n  </div>\n  <div id="body" class="style-scope ytd-post-renderer">\n    <div id="post-text" class="style-scope ytd-post-renderer">\n\n      \n      <ytd-expander id="expander" hidden="[[usesCompactLockup]]" class="style-scope ytd-post-renderer">\n        <yt-formatted-string id="content-text" slot="content" dir="auto" force-default-style="" split-lines="" text="[[data.contentText]]" class="style-scope ytd-post-renderer">\n        </yt-formatted-string>\n        <span class="more-button style-scope ytd-post-renderer" slot="more-button">\n          [[getSimpleString(data.expandButton.buttonRenderer.text)]]\n        </span>\n        <span class="less-button style-scope ytd-post-renderer" slot="less-button">\n          [[getSimpleString(data.collapseButton.buttonRenderer.text)]]\n        </span>\n      </ytd-expander>\n      <yt-formatted-string id="home-content-text" slot="content" hidden="[[!usesCompactLockup]]" split-lines="[[!usesCompactLockup]]" text="[[data.contentText]]" class="style-scope ytd-post-renderer">\n        </yt-formatted-string>\n    </div>\n    <div id="attachments" class="style-scope ytd-post-renderer">\n      <div id="content-attachment" hidden="[[!data.backstageAttachment]]" class="style-scope ytd-post-renderer"></div>\n      \n      <div id="answer-count-text" class="style-scope ytd-post-renderer">\n        [[getSimpleString(data.backstageAttachment.quizRenderer.totalVotes)]]\n      </div>\n      <div id="vote-count-text" class="style-scope ytd-post-renderer">\n        [[getSimpleString(data.backstageAttachment.pollRenderer.totalVotes)]]\n      </div>\n      <div id="vote-button" class="style-scope ytd-post-renderer"></div>\n      <ytd-backstage-poll-renderer id="poll-attachment" aria-label$="[[data.backstageAttachment.pollRenderer.accessibilityData.accessibilityData.label]]" data="[[data.backstageAttachment.pollRenderer]]" disable-upgrade$="[[!hasPoll]]" role="group" class="style-scope ytd-post-renderer">\n      </ytd-backstage-poll-renderer>\n    </div>\n  </div>\n  <div id="toolbar" hidden="[[showWithoutToolbar]]" class="style-scope ytd-post-renderer">\n    <ytd-comment-action-buttons-renderer id="action-buttons" button-tooltip-position="[[computeButtonTooltipPosition(data.surface)]]" comment-count="[[commentCount]]" data="[[data.actionButtons.commentActionButtonsRenderer]]" has-creator-reply="[[hasCreatorReply_]]" hidden="[[!data.actionButtons.commentActionButtonsRenderer]]" use-comment-icon="" vote-count="[[voteCount]]" class="style-scope ytd-post-renderer">\n    </ytd-comment-action-buttons-renderer>\n    <div id="action-menu" class="style-scope ytd-post-renderer"></div>\n  </div>\n</div>\n<div id="dismissed" class="style-scope ytd-post-renderer">\n  <div id="dismissed-content" class="style-scope ytd-post-renderer"></div>\n</div>\n<div id="edit-dialog" hidden="[[!editDialog]]" class="style-scope ytd-post-renderer"></div>\n');
a.content.insertBefore(_.w().content.cloneNode(!0),a.content.firstChild);return z_l=a},{mode:1});var oLw;var UXe;var K0=function(){return _.G.apply(this,arguments)||this};
_.b(K0,_.G);K0.prototype.configureRendererStamper=function(){return{"data.images":{id:"items",mapping:{backstageImageRenderer:{component:"ytd-backstage-image-renderer",properties:{surface:"[[surface]]"}}}}}};
_.L([_.Q(_.k.YtRendererBehavior),_.p("design:type",Object)],K0.prototype,"ytRendererBehavior",void 0);_.L([_.Q(_.u4.YtRendererstamperBehavior),_.p("design:type",Object)],K0.prototype,"ytRendererstamperBehavior",void 0);_.L([_.Q(_.E3.YtdHorizontalListBehavior),_.p("design:type",Object)],K0.prototype,"ytdHorizontalListBehavior",void 0);_.L([_.Q(_.Ms.YtComponentBehavior),_.p("design:type",Object)],K0.prototype,"componentBehavior",void 0);_.L([_.x(),_.p("design:type",Object)],K0.prototype,"data",void 0);
_.L([_.x({value:"$.items.children"}),_.p("design:type",String)],K0.prototype,"itemsPath",void 0);_.L([_.x({value:1}),_.p("design:type",Number)],K0.prototype,"initialCount",void 0);_.L([_.x(),_.p("design:type",String)],K0.prototype,"surface",void 0);_.L([_.U({is:"ytd-post-multi-image-renderer",disableElementRegistration:!0})],K0);
_.D(K0,"ytd-post-multi-image-renderer",function(){if(UXe!==void 0)return UXe;var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-post-multi-image-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="shelf-container" class="style-scope ytd-post-multi-image-renderer">\n  <div id="left-arrow-container" class="arrow-container style-scope ytd-post-multi-image-renderer">\n      <div id="left-arrow" class="arrow center-aligned style-scope ytd-post-multi-image-renderer" on-click="prevClick_" hidden="[[atStart]]">\n         <yt-icon icon="yt-icons:chevron_left" class="style-scope ytd-post-multi-image-renderer"></yt-icon>\n      </div>\n  </div>\n  <div id="scroll-container" on-keydown="handleKeyDown_" class="style-scope ytd-post-multi-image-renderer">\n    <div id="items" class="style-scope ytd-post-multi-image-renderer"></div>\n  </div>\n  <div id="right-arrow-container" class="arrow-container style-scope ytd-post-multi-image-renderer">\n    <div id="right-arrow" class="arrow center-aligned style-scope ytd-post-multi-image-renderer" on-click="nextClick_" hidden="[[atEnd]]">\n       <yt-icon icon="yt-icons:chevron_right" class="style-scope ytd-post-multi-image-renderer"></yt-icon>\n    </div>\n  </div>\n</div>\n');a.content.insertBefore(_.w().content.cloneNode(!0),
a.content.firstChild);return UXe=a},{mode:_.Np("kevlar_poly_si_batch_j079")?1:2});var DXG={"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"}}},FQ=function(){var a=_.G.apply(this,arguments)||this;a.hasInlineCommentSection=!1;a.editDialog=null;a.isLoading=!1;a.shouldHideAuthor=!1;a.shouldShowVideoTime=!1;
a.isInEngagementPanel=!1;a.hideBorder=!1;a.usesFullLockup=!1;a.shouldShowMenuInCompactView=!1;a.JSC$15090_spinnerEl=null;a.actionMap={"yt-signal-action-open-post-comment-dialog":"handleSignalActionOpenPostCommentDialogAction"};return a};
_.b(FQ,_.G);_.Z=FQ.prototype;_.Z.configureRendererStamper=function(){return DXG};
_.Z.computeIsPollHeaderEnabled=function(a){return(a==null?void 0:a.pollMetadataIcon)!=null};
_.Z.getPublishTimeStampString=function(a,z){z=new Date((Number(z)-60*((new Date).getTimezoneOffset()-(new Date(Number(z)*1E3)).getTimezoneOffset()))*1E3);z=(new yC(10)).format(z);if(a&&a.runs&&a.runs.length)for(var I=0;I<a.runs.length;I++)a.runs[I].text&&(a.runs[I].text=a.runs[I].text.replace("POST_SCHEDULED_TIMESTAMP_PLACEHOLDER",z));return a};
_.Z.created=function(){this.JSC$15090_spinnerEl=null};
_.Z.contentTextChanged=function(){this.expander.reset()};
_.Z.dataChanged=function(){this.isLoading=!1;this.editDialog=null;var a;if((a=this.data)==null?0:a.actions){a=_.C(this.data.actions);for(var z=a.next();!z.done;z=a.next())this.openEditDialog(_.H(z.value,nMO))}};
_.Z.handleSignalActionOpenPostCommentDialogAction=function(){_.PK(this.hostElement).querySelector("#action-buttons").reply()};
_.Z.updatePoll=function(a,z){z&&this.set("data.pollMetadataVoteCountText",z);this.hasInlineCommentSection&&(a=a>=0,z=_.PK(this.hostElement).querySelector("#action-buttons"),a?z.reply():z.hideReplyDialog())};
_.Z.isLoadingChanged=function(){!this.isLoading||this.editDialog||this.JSC$15090_spinnerEl||(this.JSC$15090_spinnerEl=document.createElement("tp-yt-paper-spinner-lite"),_.PK(this.hostElement).appendChild(this.JSC$15090_spinnerEl));this.JSC$15090_spinnerEl&&(this.JSC$15090_spinnerEl.active=this.isLoading)};
_.Z.onYtNavigate=function(a){var z=this.get("updateCommentDialogEndpoint",a.detail.endpoint);z&&(this.openEditDialog(z),a.stopPropagation())};
_.Z.onYtCommentboxDismiss=function(){this.editDialog=null};
_.Z.onYtCommentPollRevert=function(a,z){z&&this.updatePoll(z.selectedChoiceIndex,z.totalVotes)};
_.Z.onYtServiceRequestSent=function(a,z){a.stopPropagation();a=_.H(z.endpoint,cVf);if(_.H(z.endpoint,YLi)||a&&!a.clientActions)this.isLoading=!0;if(z.actions)for(a=0;a<z.actions.length;a++){var I=z.actions[a],J=_.H(I,vU);J&&(I=this.get("updateBackstagePollAction.selectedChoiceIndex",I),I===void 0&&(I=-1),this.updatePoll(I,J.totalVotes))}};
_.Z.onYtServiceRequestCompleted=function(){this.isLoading=!1};
_.Z.openEditDialog=function(a){a&&a.dialog&&(this.editDialog=a.dialog,a=this.editDialogElement.firstElementChild)&&(a.focus(),a.openDialog&&a.openDialog())};
_.Z.computeIsBodyHidden=function(a,z){return!!a||z};
_.eH.Object.defineProperties(FQ.prototype,{postTextMaxLines:{configurable:!0,enumerable:!0,get:function(){return this.isInEngagementPanel?10:4}},
pollIcon:{configurable:!0,enumerable:!0,get:function(){var a,z;if((a=this.data)==null?0:(z=a.pollMetadataIcon)==null?0:z.iconType)return _.Bl(this.data.pollMetadataIcon.iconType)}},
voteCount:{configurable:!0,enumerable:!0,get:function(){var a;return((a=this.data)==null?void 0:a.voteCount)||_.Mo("0")}},
commentCount:{configurable:!0,enumerable:!0,get:function(){var a;return(a=this.data)==null?void 0:a.commentCount}},
hasPoll:{configurable:!0,enumerable:!0,get:function(){return!(!this.data.backstageAttachment||!_.H(this.data.backstageAttachment,vFv))}},
hasQuiz:{configurable:!0,enumerable:!0,get:function(){return!(!this.data.backstageAttachment||!_.H(this.data.backstageAttachment,gFj))}},
hasUploadedVideo:{configurable:!0,enumerable:!0,get:function(){return!(!this.data.backstageAttachment||!_.H(this.data.backstageAttachment,OQw))}}});
FQ.prototype.onYtServiceRequestCompleted=FQ.prototype.onYtServiceRequestCompleted;FQ.prototype.onYtServiceRequestSent=FQ.prototype.onYtServiceRequestSent;FQ.prototype.onYtCommentPollRevert=FQ.prototype.onYtCommentPollRevert;FQ.prototype.onYtCommentboxDismiss=FQ.prototype.onYtCommentboxDismiss;FQ.prototype.onYtNavigate=FQ.prototype.onYtNavigate;FQ.prototype.isLoadingChanged=FQ.prototype.isLoadingChanged;FQ.prototype.dataChanged=FQ.prototype.dataChanged;FQ.prototype.contentTextChanged=FQ.prototype.contentTextChanged;
_.L([_.Q(_.Hc.YtActionHandlerBehavior),_.p("design:type",Object)],FQ.prototype,"actionHandlerBehavior",void 0);_.L([_.Q(_.k.YtRendererBehavior),_.p("design:type",Object)],FQ.prototype,"rendererBehavior",void 0);_.L([_.Q(_.u4.YtRendererstamperBehavior),_.p("design:type",Object)],FQ.prototype,"rendererstamperBehavior",void 0);_.L([_.A3("#contentTextExpander"),_.p("design:type",Object)],FQ.prototype,"expander",void 0);
_.L([_.A3("#edit-dialog"),_.p("design:type",Element)],FQ.prototype,"editDialogElement",void 0);_.L([_.x(),_.p("design:type",Object)],FQ.prototype,"data",void 0);_.L([_.x(),_.p("design:type",Object)],FQ.prototype,"hasInlineCommentSection",void 0);_.L([_.x(),_.p("design:type",Object)],FQ.prototype,"editDialog",void 0);_.L([_.x(),_.p("design:type",Object)],FQ.prototype,"isLoading",void 0);
_.L([_.x({computed:"computeIsPollHeaderEnabled(data)"}),_.p("design:type",Boolean)],FQ.prototype,"isPollHeaderEnabled",void 0);_.L([_.x(),_.p("design:type",Object)],FQ.prototype,"shouldHideAuthor",void 0);_.L([_.x(),_.p("design:type",Object)],FQ.prototype,"shouldShowVideoTime",void 0);_.L([_.x(),_.p("design:type",Object)],FQ.prototype,"isInEngagementPanel",void 0);_.L([_.x({reflectToAttribute:!0}),_.p("design:type",Object)],FQ.prototype,"hideBorder",void 0);
_.L([_.x({reflectToAttribute:!0}),_.p("design:type",Object)],FQ.prototype,"usesFullLockup",void 0);_.L([_.x({reflectToAttribute:!0}),_.p("design:type",Object)],FQ.prototype,"shouldShowMenuInCompactView",void 0);_.L([_.S("isInEngagementPanel"),_.p("design:type",Number),_.p("design:paramtypes",[])],FQ.prototype,"postTextMaxLines",null);_.L([_.S("data.icon.iconType"),_.p("design:type",Object),_.p("design:paramtypes",[])],FQ.prototype,"pollIcon",null);
_.L([_.O8("data.contentText"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],FQ.prototype,"contentTextChanged",null);_.L([_.Fe("data"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],FQ.prototype,"dataChanged",null);_.L([_.O8("isLoading"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],FQ.prototype,"isLoadingChanged",null);
_.L([_.gz("yt-navigate"),_.p("design:type",Function),_.p("design:paramtypes",[CustomEvent]),_.p("design:returntype")],FQ.prototype,"onYtNavigate",null);_.L([_.gz("yt-commentbox-dismiss"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],FQ.prototype,"onYtCommentboxDismiss",null);_.L([_.gz("yt-comment-poll-revert"),_.p("design:type",Function),_.p("design:paramtypes",[CustomEvent,Object]),_.p("design:returntype")],FQ.prototype,"onYtCommentPollRevert",null);
_.L([_.gz("yt-service-request-sent"),_.p("design:type",Function),_.p("design:paramtypes",[CustomEvent,_.lJ]),_.p("design:returntype")],FQ.prototype,"onYtServiceRequestSent",null);_.L([_.gz("yt-service-request-completed"),_.p("design:type",Function),_.p("design:paramtypes",[CustomEvent]),_.p("design:returntype")],FQ.prototype,"onYtServiceRequestCompleted",null);_.L([_.S("data"),_.p("design:type",Object),_.p("design:paramtypes",[])],FQ.prototype,"voteCount",null);
_.L([_.S("data"),_.p("design:type",Object),_.p("design:paramtypes",[])],FQ.prototype,"commentCount",null);_.L([_.S("data.backstageAttachment"),_.p("design:type",Boolean),_.p("design:paramtypes",[])],FQ.prototype,"hasPoll",null);_.L([_.S("data"),_.p("design:type",Boolean),_.p("design:paramtypes",[])],FQ.prototype,"hasQuiz",null);_.L([_.S("data"),_.p("design:type",Boolean),_.p("design:paramtypes",[])],FQ.prototype,"hasUploadedVideo",null);
_.L([_.U({is:"ytd-backstage-post-renderer",disableElementRegistration:!0})],FQ);
_.D(FQ,"ytd-backstage-post-renderer",function(){if(oLw!==void 0)return oLw;var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-backstage-post-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="body" hidden="[[computeIsBodyHidden(editDialog, isLoading)]]" class="style-scope ytd-backstage-post-renderer">\n  <div id="author-thumbnail" hidden="[[shouldHideAuthor]]" class="style-scope ytd-backstage-post-renderer">\n    <a class="yt-simple-endpoint style-scope ytd-backstage-post-renderer" href$="[[computeHref_(data.authorEndpoint)]]" data="[[data.authorEndpoint]]">\n      <yt-img-shadow fit="" height="40" thumbnail="[[data.authorThumbnail]]" width="40" class="style-scope ytd-backstage-post-renderer">\n      </yt-img-shadow>\n    </a>\n  </div>\n  <div id="main" class="style-scope ytd-backstage-post-renderer">\n    <div id="header" class="style-scope ytd-backstage-post-renderer">\n      <div id="header-author" hidden="[[shouldHideAuthor]]" class="style-scope ytd-backstage-post-renderer">\n        <a id="author-text" class="yt-simple-endpoint style-scope ytd-backstage-post-renderer" href$="[[computeHref_(data.authorEndpoint)]]" data="[[data.authorEndpoint]]" hidden="[[data.authorCommentBadge]]">\n          <span class="style-scope ytd-backstage-post-renderer">[[getSimpleString(data.authorText)]]</span>\n        </a>\n        <span id="author-comment-badge" hidden="[[!data.authorCommentBadge]]" class="style-scope ytd-backstage-post-renderer"></span>\n        <template is="dom-if" if="[[isPollHeaderEnabled]]" class="style-scope ytd-backstage-post-renderer">\n          <yt-icon id="poll-icon" icon="[[pollIcon]]" class="style-scope ytd-backstage-post-renderer"></yt-icon>\n          <yt-formatted-string class="poll-metadata-text style-scope ytd-backstage-post-renderer" text="[[data.pollMetadataText]]">\n          </yt-formatted-string>\n          <span class="poll-metadata-text-separator style-scope ytd-backstage-post-renderer">\u00b7</span>\n          <yt-formatted-string class="poll-metadata-text style-scope ytd-backstage-post-renderer" text="[[data.pollMetadataVoteCountText]]">\n          </yt-formatted-string>\n          <span class="poll-metadata-text-separator style-scope ytd-backstage-post-renderer">\u00b7</span>\n        </template>\n        <yt-formatted-string id="published-time-text" link-inherit-color="" text="[[getPublishTimeStampString(data.publishedTimeText, data.scheduledPublishTimeSec)]]" class="style-scope ytd-backstage-post-renderer">\n        </yt-formatted-string>\n        <span id="sponsors-only-badge" hidden="[[!data.sponsorsOnlyBadge]]" class="style-scope ytd-backstage-post-renderer"></span>\n      </div>\n      <yt-formatted-string id="video-time-text" force-default-style="" hidden="[[!shouldShowVideoTime]]" link-inherit-color="" text="[[data.publishedTimeText]]" class="style-scope ytd-backstage-post-renderer">\n      </yt-formatted-string>\n    </div>\n    <ytd-expander id="contentTextExpander" max-number-of-lines="[[postTextMaxLines]]" class="style-scope ytd-backstage-post-renderer">\n      <yt-formatted-string id="voted-option" slot="content" disable-upgrade$="[[!data.prologueText]]" hidden="[[!data.prologueText]]" text="[[data.prologueText]]" class="style-scope ytd-backstage-post-renderer">\n      </yt-formatted-string>\n      <yt-formatted-string id="content-text" slot="content" dir="auto" force-default-style="" split-lines="" text="[[data.contentText]]" class="style-scope ytd-backstage-post-renderer">\n      </yt-formatted-string>\n      <span class="more-button style-scope ytd-backstage-post-renderer" slot="more-button">[[getSimpleString(data.expandButton.buttonRenderer.text)]]</span>\n      <span class="less-button style-scope ytd-backstage-post-renderer" slot="less-button">[[getSimpleString(data.collapseButton.buttonRenderer.text)]]</span>\n    </ytd-expander>\n    <div id="content-attachment" hidden="[[!data.backstageAttachment]]" class="style-scope ytd-backstage-post-renderer"></div>\n    <ytd-backstage-poll-renderer id="poll-attachment" aria-label$="[[data.backstageAttachment.pollRenderer.accessibilityData.accessibilityData.label]]" data="[[data.backstageAttachment.pollRenderer]]" disable-upgrade$="[[!hasPoll]]" hidden="[[!hasPoll]]" role="group" class="style-scope ytd-backstage-post-renderer">\n    </ytd-backstage-poll-renderer>\n    <ytd-backstage-quiz-renderer id="quiz-attachment" aria-label$="[[data.backstageAttachment.quizRenderer.accessibilityData.accessibilityData.label]]" data="[[data.backstageAttachment.quizRenderer]]" hidden="[[!hasQuiz]]" role="group" uses-panel-lockup$="[[isInEngagementPanel]]" class="style-scope ytd-backstage-post-renderer">\n    </ytd-backstage-quiz-renderer>\n    <ytd-post-uploaded-video-renderer id="uploaded-video-attachment" data="[[data.backstageAttachment.uploadedVideoRenderer]]" hidden="[[!hasUploadedVideo]]" role="group" class="style-scope ytd-backstage-post-renderer">\n    </ytd-post-uploaded-video-renderer>\n    <ytd-comment-action-buttons-renderer id="action-buttons" comment-count="[[commentCount]]" data="[[data.actionButtons.commentActionButtonsRenderer]]" has-poll="[[hasPoll]]" hidden="[[!data.actionButtons.commentActionButtonsRenderer]]" vote-count="[[voteCount]]" class="style-scope ytd-backstage-post-renderer">\n    </ytd-comment-action-buttons-renderer>\n  </div>\n\n  <div id="action-menu" class="style-scope ytd-backstage-post-renderer"></div>\n</div>\n<div id="edit-dialog" hidden="[[!editDialog]]" class="style-scope ytd-backstage-post-renderer"></div>\n');a.content.insertBefore(_.w().content.cloneNode(!0),
a.content.firstChild);return oLw=a},{mode:1});var Rro;var HX=function(){var a=_.G.apply(this,arguments)||this;a.editDialog=null;a.showExpandButton=!1;a.isRichGrid=!1;a.usesFullLockup=!1;return a};
_.b(HX,_.G);_.Z=HX.prototype;_.Z.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"}}}};
_.Z.dataChanged=function(){this.editDialog=null;this.showExpandButton=this.computeShowExpandButton(this.data)};
_.Z.computeShowExpandButton=function(a){return this.usesCompactLockup||a&&a.showFullContentText?!1:this.repostContentTextEl.scrollHeight>this.repostContentTextEl.clientHeight};
_.Z.computeUsesCompactLockup=function(a){return!!a.condensedContent};
_.Z.computeShowFullContentText=function(a){return!a};
_.Z.onYtNavigate=function(a){a=this.get("updateCommentDialogEndpoint",a.detail.endpoint);this.openEditDialog(a)};
_.Z.onYtCommentboxDismiss=function(){this.editDialog=null};
_.Z.openEditDialog=function(a){a&&a.dialog&&(this.editDialog=a.dialog,a=this.repostEditDialogEl.firstElementChild)&&(a.focus(),a.openDialog&&a.openDialog())};
_.Z.onTap=function(a){if(this.data){var z=null;this.usesCompactLockup&&!_.qK(_.ch(a)||[],this.hostElement,["YT-IMG-SHADOW"])?z=this.get("navigationEndpoint",this.data):a.target===this.moreButtonEl&&(z=this.get("navigationEndpoint",a.target.data));z&&_.PA(this.hostElement,"yt-navigate",{endpoint:z})}};
HX.prototype.onYtCommentboxDismiss=HX.prototype.onYtCommentboxDismiss;HX.prototype.onYtNavigate=HX.prototype.onYtNavigate;HX.prototype.dataChanged=HX.prototype.dataChanged;_.L([_.Q(_.k.YtRendererBehavior),_.p("design:type",Object)],HX.prototype,"ytRendererBehavior",void 0);_.L([_.Q(_.u4.YtRendererstamperBehavior),_.p("design:type",Object)],HX.prototype,"ytRendererstamperBehavior",void 0);_.L([_.x(),_.p("design:type",Object)],HX.prototype,"data",void 0);
_.L([_.x(),_.p("design:type",Object)],HX.prototype,"editDialog",void 0);_.L([_.x({computed:"computeUsesCompactLockup(data)",reflectToAttribute:!0}),_.p("design:type",Boolean)],HX.prototype,"usesCompactLockup",void 0);_.L([_.x({reflectToAttribute:!0}),_.p("design:type",Object)],HX.prototype,"showExpandButton",void 0);_.L([_.x({reflectToAttribute:!0}),_.p("design:type",Object)],HX.prototype,"isRichGrid",void 0);
_.L([_.x({computed:"computeShowFullContentText(data.showFullContentText)",reflectToAttribute:!0}),_.p("design:type",Boolean)],HX.prototype,"showFullContentText",void 0);_.L([_.x({reflectToAttribute:!0}),_.p("design:type",Object)],HX.prototype,"usesFullLockup",void 0);_.L([_.A3("#more"),_.p("design:type",Object)],HX.prototype,"moreButtonEl",void 0);_.L([_.A3("#repost-content-text"),_.p("design:type",HTMLElement)],HX.prototype,"repostContentTextEl",void 0);
_.L([_.A3("#repost-edit-dialog"),_.p("design:type",HTMLElement)],HX.prototype,"repostEditDialogEl",void 0);_.L([_.Fe("data"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],HX.prototype,"dataChanged",null);_.L([_.gz("yt-navigate"),_.p("design:type",Function),_.p("design:paramtypes",[CustomEvent]),_.p("design:returntype")],HX.prototype,"onYtNavigate",null);
_.L([_.gz("yt-commentbox-dismiss"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],HX.prototype,"onYtCommentboxDismiss",null);_.L([_.U({is:"ytd-shared-post-renderer",disableElementRegistration:!0})],HX);
_.D(HX,"ytd-shared-post-renderer",function(){if(Rro!==void 0)return Rro;var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-shared-post-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="repost-context" hidden="[[editDialog]]" on-tap="onTap" class="style-scope ytd-shared-post-renderer">\n  <div id="repost-author-thumbnail" class="style-scope ytd-shared-post-renderer">\n    <a class="yt-simple-endpoint style-scope ytd-shared-post-renderer" href$="[[computeHref_(data.endpoint)]]" data="[[data.endpoint]]">\n      <yt-img-shadow fit="" height="40" thumbnail="[[data.thumbnail]]" width="40" class="style-scope ytd-shared-post-renderer"></yt-img-shadow>\n    </a>\n  </div>\n  <div id="repost-main" hidden="[[usesCompactLockup]]" class="style-scope ytd-shared-post-renderer">\n    <div id="repost-header" class="style-scope ytd-shared-post-renderer">\n      <div id="repost-header-author" class="style-scope ytd-shared-post-renderer">\n        <a id="repost-author-text" class="yt-simple-endpoint style-scope ytd-shared-post-renderer" href$="[[computeHref_(data.endpoint)]]" data="[[data.endpoint]]">\n          <span class="style-scope ytd-shared-post-renderer">[[getSimpleString(data.displayName)]]</span>\n        </a>\n        <yt-formatted-string id="repost-published-time-text" link-inherit-color="" text="[[data.publishedTimeText]]" class="style-scope ytd-shared-post-renderer">\n        </yt-formatted-string>\n      </div>\n    </div>\n    <yt-formatted-string id="repost-content-text" force-default-style="" split-lines="[[!showFullContentText]]" text="[[data.content]]" class="style-scope ytd-shared-post-renderer">\n    </yt-formatted-string>\n    <tp-yt-paper-button id="more" data="[[data.expandButton.buttonRenderer]]" hidden="[[!showExpandButton]]" noink="" class="style-scope ytd-shared-post-renderer">\n      [[getSimpleString(data.expandButton.buttonRenderer.text)]]\n    </tp-yt-paper-button>\n  </div>\n  <div id="repost-main-compact" hidden="[[!usesCompactLockup]]" class="style-scope ytd-shared-post-renderer">\n    <yt-formatted-string id="condensed-repost-content-text" ellipsis-truncate="" force-default-style="" text="[[data.condensedContent]]" class="style-scope ytd-shared-post-renderer">\n    </yt-formatted-string>\n  </div>\n  <div id="action-menu" hidden="[[usesCompactLockup]]" class="style-scope ytd-shared-post-renderer"></div>\n</div>\n<div id="divider-line-container" hidden="[[!usesCompactLockup]]" class="style-scope ytd-shared-post-renderer">\n  <div id="divider-line" class="style-scope ytd-shared-post-renderer"></div>\n</div>\n<div id="repost-edit-dialog" hidden="[[!editDialog]]" class="style-scope ytd-shared-post-renderer"></div>\n<div id="original-post" hidden="[[data.originalPostDeletedMessage]]" class="style-scope ytd-shared-post-renderer"></div>\n<div id="original-post-deleted-message" hidden="[[!data.originalPostDeletedMessage]]" class="style-scope ytd-shared-post-renderer">\n  [[data.originalPostDeletedMessage]]\n</div>\n');a.content.insertBefore(_.w().content.cloneNode(!0),
a.content.firstChild);return Rro=a},{mode:1});var LFE;var lgJ;var bb=function(){return _.G.apply(this,arguments)||this};
_.b(bb,_.G);bb.prototype.attached=function(){var a=this;this.networkStatusManager||(this.networkStatusManager=new _.wo,this.networkStatusManager.listen("publicytnetworkstatus-online",function(){a.onlineHandler()}))};
bb.prototype.detached=function(){var a=this;this.networkStatusManager&&(this.networkStatusManager.unlisten("publicytnetworkstatus-online",function(){a.onlineHandler()}),delete this.networkStatusManager)};
bb.prototype.onlineHandler=function(){this.data.serviceEndpoint&&this.ytComponentBehavior.resolveCommand(this.data.serviceEndpoint)};
_.L([_.Q(_.k.YtRendererBehavior),_.p("design:type",Object)],bb.prototype,"ytRendererBehavior",void 0);_.L([_.Q(_.Ms.YtComponentBehavior),_.p("design:type",Object)],bb.prototype,"ytComponentBehavior",void 0);_.L([_.x(),_.p("design:type",Object)],bb.prototype,"data",void 0);_.L([_.U({disableElementRegistration:!0,is:"ytd-reload-page-button-renderer"})],bb);
_.D(bb,"ytd-reload-page-button-renderer",function(){if(lgJ!==void 0)return lgJ;var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-reload-page-button-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<ytd-button-renderer data="[[data]]" class="style-scope ytd-reload-page-button-renderer"></ytd-button-renderer>');a.content.insertBefore(_.w().content.cloneNode(!0),a.content.firstChild);
return lgJ=a},{mode:1});var pNl={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"},h0=function(){var a=_.G.apply(this,arguments)||this;a.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return a};
_.b(h0,_.G);_.Z=h0.prototype;_.Z.attached=function(){this.isDarkTheme=this.isAppDarkTheme()};
_.Z.configureRendererStamper=function(){return{buttons:{id:"buttons",mapping:{buttonRenderer:"ytd-button-renderer",reloadPageButtonRenderer:"ytd-reload-page-button-renderer",toggleButtonRenderer:"ytd-toggle-button-renderer"}}}};
_.Z.computeHasBodyText=function(a){return!!a.bodyText};
_.Z.computeButtons=function(a){var z=[];a.ctaButton&&z.push(a.ctaButton);a.secondaryButton&&z.push(a.secondaryButton);return z};
_.Z.computeRendererStyle=function(a){return a.style?a.style.value.split("TYPE_")[1].replace(/_/g,"-").toLowerCase():a.icon?"":"no-icon"};
_.Z.getIconName=function(a,z){z=z===void 0?!1:z;if(a===void 0)return"";a=this.get("icon.iconType",a);var I;_.K("enable_hlp_client_icon_pick")?I=this.getThemedIcon(a,z):I=a;(z=pNl[I])||(z="yt-icons");return[z,I].join(":")};
_.Z.getThemedIcon=function(a,z){return["HASHTAG_LANDING_PAGE_EMPTY","HASHTAG_LANDING_PAGE_EMPTY_DARK_MODE"].includes(a)?z?"HASHTAG_LANDING_PAGE_EMPTY_DARK_MODE":"HASHTAG_LANDING_PAGE_EMPTY":["HASHTAG_LANDING_PAGE_ERROR","HASHTAG_LANDING_PAGE_ERROR_DARK_MODE"].includes(a)?z?"HASHTAG_LANDING_PAGE_ERROR_DARK_MODE":"HASHTAG_LANDING_PAGE_ERROR":a};
_.Z.isThumbnail=function(a){return!!a.thumbnail};
_.Z.onDarkModeToggledAction=function(){this.isDarkTheme=this.isAppDarkTheme()};
_.Z.isAppDarkTheme=function(){return document.documentElement.hasAttribute("dark")};
_.L([_.Q(_.u4.YtRendererstamperBehavior),_.p("design:type",Object)],h0.prototype,"ytRendererstamperBehavior",void 0);_.L([_.Q(_.k.YtRendererBehavior),_.p("design:type",Object)],h0.prototype,"ytRendererBehavior",void 0);_.L([_.Q(_.Hc.YtActionHandlerBehavior),_.p("design:type",Object)],h0.prototype,"ytActionHandlerBehavior",void 0);_.L([_.x(),_.p("design:type",Object)],h0.prototype,"data",void 0);
_.L([_.x({computed:"computeRendererStyle(data)",reflectToAttribute:!0}),_.p("design:type",String)],h0.prototype,"rendererStyle",void 0);_.L([_.x({computed:"getIconName(data, isDarkTheme)",reflectToAttribute:!0}),_.p("design:type",String)],h0.prototype,"iconName",void 0);_.L([_.x({computed:"isThumbnail(data)",reflectToAttribute:!0}),_.p("design:type",Boolean)],h0.prototype,"thumbnail",void 0);_.L([_.x({computed:"computeButtons(data)"}),_.p("design:type",Array)],h0.prototype,"buttons",void 0);
_.L([_.x({reflectToAttribute:!0}),_.p("design:type",Boolean)],h0.prototype,"isDarkTheme",void 0);_.L([_.x({computed:"computeHasBodyText(data)",reflectToAttribute:!0}),_.p("design:type",Boolean)],h0.prototype,"hasBodyText",void 0);_.L([_.U({is:"ytd-background-promo-renderer",disableElementRegistration:!0})],h0);
_.D(h0,"ytd-background-promo-renderer",function(){if(LFE!==void 0)return LFE;var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-background-promo-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-icon class="image style-scope ytd-background-promo-renderer" hidden="[[!data.icon]]" icon="[[iconName]]"></yt-icon>\n<yt-img-shadow class="image style-scope ytd-background-promo-renderer" height="[[data.thumbnail.thumbnails.height]]" hidden="[[!data.thumbnail]]" thumbnail="[[data.thumbnail]]" width="[[data.thumbnail.thumbnails.width]]">\n</yt-img-shadow>\n<div class="promo-message style-scope ytd-background-promo-renderer">\n  <div class="promo-title style-scope ytd-background-promo-renderer">[[getSimpleString(data.title)]]</div>\n  <yt-formatted-string class="promo-body-text style-scope ytd-background-promo-renderer" split-lines="" text="[[data.bodyText]]">\n  </yt-formatted-string>\n</div>\n<div id="buttons" hidden="[[!data.ctaButton]]" class="style-scope ytd-background-promo-renderer"></div>\n');a.content.insertBefore(_.w().content.cloneNode(!0),
a.content.firstChild);return LFE=a},{mode:1});var wNG;var Vy=function(){var a=_.G.apply(this,arguments)||this;a.collections=_.K("web_modern_collections_v2");return a};
_.b(Vy,_.G);_.eH.Object.defineProperties(Vy.prototype,{collectionStack:{configurable:!0,enumerable:!0,get:function(){var a,z,I,J,r,P;return{thumbnailSize:"small",doubleStack:!1,sampledThumbnailColor:(a=this.data)==null?void 0:(z=a.thumbnail)==null?void 0:z.sampledThumbnailColor,vibrantColorPalette:(I=this.data)==null?void 0:(J=I.thumbnail)==null?void 0:J.vibrantColorPalette,darkColorPalette:(r=this.data)==null?void 0:(P=r.thumbnail)==null?void 0:P.darkColorPalette,experimentEnabled:this.collections}}}});
_.L([_.Q(_.k.YtRendererBehavior),_.p("design:type",Object)],Vy.prototype,"ytRendererBehavior",void 0);_.L([_.x(),_.p("design:type",Object)],Vy.prototype,"data",void 0);_.L([_.x({reflectToAttribute:!0}),_.p("design:type",Boolean)],Vy.prototype,"collections",void 0);_.L([_.S("data","collections"),_.p("design:type",Object),_.p("design:paramtypes",[])],Vy.prototype,"collectionStack",null);_.L([_.U({is:"ytd-compact-station-renderer",disableElementRegistration:!0})],Vy);
_.D(Vy,"ytd-compact-station-renderer",function(){if(wNG!==void 0)return wNG;var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-compact-station-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="flex-container style-scope ytd-compact-station-renderer">\n  <div class="modern-collection-parent style-scope ytd-compact-station-renderer">\n    <yt-collections-stack data="[[collectionStack]]" class="style-scope ytd-compact-station-renderer"></yt-collections-stack>\n    <ytd-thumbnail data="[[data]]" width="118" class="style-scope ytd-compact-station-renderer"></ytd-thumbnail>\n  </div>\n  <a class="yt-simple-endpoint style-scope ytd-compact-station-renderer" href$="[[computeHref_(data.navigationEndpoint)]]" data="[[data.navigationEndpoint]]">\n    <h3 class="style-scope ytd-compact-station-renderer">\n      [[getSimpleString(data.title)]]\n    </h3>\n    <div id="flex-item" class="style-scope ytd-compact-station-renderer">\n      <p id="description" title$="[[getSimpleString(data.description)]]" class="style-scope ytd-compact-station-renderer">\n        [[getSimpleString(data.description)]]\n      </p>\n    </div>\n    <p id="video-count-text" class="style-scope ytd-compact-station-renderer">\n      [[getSimpleString(data.videoCountText)]]\n    </p>\n  </a>\n</div>\n');
a.content.insertBefore(_.w().content.cloneNode(!0),a.content.firstChild);return wNG=a},{mode:1});var mXJ;var Qy=function(){var a=_.G.apply(this,arguments)||this;a.isRichGrid=!1;return a};
_.b(Qy,_.G);Qy.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]]"}}}}}};
_.L([_.Q(_.k.YtRendererBehavior),_.p("design:type",Object)],Qy.prototype,"ytRendererBehavior",void 0);_.L([_.Q(_.u4.YtRendererstamperBehavior),_.p("design:type",Object)],Qy.prototype,"ytRendererstamperBehavior",void 0);_.L([_.x(),_.p("design:type",Object)],Qy.prototype,"data",void 0);_.L([_.x({reflectToAttribute:!0}),_.p("design:type",Object)],Qy.prototype,"isRichGrid",void 0);_.L([_.U({is:"ytd-grid-channel-renderer",disableElementRegistration:!0})],Qy);
_.D(Qy,"ytd-grid-channel-renderer",function(){if(mXJ!==void 0)return mXJ;var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-grid-channel-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="channel" class="style-scope ytd-grid-channel-renderer">\n  <a id="channel-info" class="yt-simple-endpoint style-scope ytd-grid-channel-renderer" href$="[[computeHref_(data.navigationEndpoint)]]" data="[[data.navigationEndpoint]]">\n    <yt-img-shadow height="103" thumbnail="[[data.thumbnail]]" width="103" class="style-scope ytd-grid-channel-renderer"> </yt-img-shadow>\n    <span id="title" class="style-scope ytd-grid-channel-renderer">[[getSimpleString(data.title)]]</span>\n    <span id="thumbnail-attribution" class="style-scope ytd-grid-channel-renderer">[[getSimpleString(data.subscriberCountText)]]</span>\n    <ytd-badge-supported-renderer id="badges" badges="[[data.badges]]" hidden="[[!data.badges]]" class="style-scope ytd-grid-channel-renderer">\n    </ytd-badge-supported-renderer>\n  </a>\n  <div id="subscribe" hidden="[[!data.subscribeButton]]" class="style-scope ytd-grid-channel-renderer"></div>\n  <div id="action-button" hidden="[[!data.actionButton]]" class="style-scope ytd-grid-channel-renderer"></div>\n</div>\n');
a.content.insertBefore(_.w().content.cloneNode(!0),a.content.firstChild);return mXJ=a},{mode:1});var ybO;var Sj=function(){return _.G.apply(this,arguments)||this};
_.b(Sj,_.G);_.L([_.Q(_.k.YtRendererBehavior),_.p("design:type",Object)],Sj.prototype,"ytRendererBehavior",void 0);_.L([_.x(),_.p("design:type",Object)],Sj.prototype,"data",void 0);_.L([_.U({is:"ytd-grid-movie-playlist-renderer",disableElementRegistration:!0})],Sj);
_.D(Sj,"ytd-grid-movie-playlist-renderer",function(){if(ybO!==void 0)return ybO;var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-grid-movie-playlist-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<ytd-thumbnail width="210" data="[[data]]" bottom-side-panel="" class="style-scope ytd-grid-movie-playlist-renderer"></ytd-thumbnail>\n<a class="yt-simple-endpoint style-scope ytd-grid-movie-playlist-renderer" href$="[[computeHref_(data.navigationEndpoint)]]" data="[[data.navigationEndpoint]]">\n  <h3 class="style-scope ytd-grid-movie-playlist-renderer">\n    <ytd-badge-supported-renderer top-standalone-badge="[[data.topStandaloneBadge]]" class="style-scope ytd-grid-movie-playlist-renderer">\n    </ytd-badge-supported-renderer>\n    <span id="video-title" title$="[[getSimpleString(data.title)]]" aria-label$="[[data.title.accessibility.accessibilityData.label]]" class="style-scope ytd-grid-movie-playlist-renderer">\n      [[getSimpleString(data.title)]]\n    </span>\n  </h3>\n  <ytd-video-meta-block class="grid style-scope ytd-grid-movie-playlist-renderer" data="[[data]]"></ytd-video-meta-block>\n</a>\n<ytd-badge-supported-renderer id="badges" badges="[[data.ownerBadges]]" hidden="[[!data.ownerBadges]]" class="style-scope ytd-grid-movie-playlist-renderer">\n</ytd-badge-supported-renderer>\n');a.content.insertBefore(_.w().content.cloneNode(!0),
a.content.firstChild);return ybO=a},{mode:1});var kKw;var ib=function(){var a=_.G.apply(this,arguments)||this;a.downloadProgress=0;a.transferState="TRANSFER_STATE_UNKNOWN";a.modernButtons=_.K("web_modern_buttons");a.useModernCollectionsV2=_.K("web_modern_collections_v2");return a};
_.b(ib,_.G);ib.prototype.detached=function(){this.ytdLockupBehavior.lockupIsHovered=!1};
ib.prototype.configureRendererStamper=function(){return{"data.menu":bO}};
ib.prototype.dataChanged=function(){this.data&&this.transferStateChanged()};
ib.prototype.transferStateChanged=function(){this.isDownloads=!1;if(this.transferState!=="TRANSFER_STATE_UNKNOWN"&&this.entityInfo&&!_.K("woffle_playlist_renderer_killswitch")){var a,z=ooG(this.entityInfo,this.transferState,this.downloadProgress,(a=this.data)==null?void 0:a.playlistId,this.isOnline);a=z.viewPlaylistText;var I=z.badges;z=z.thumbnailOverlays;this.isDownloads=!!a||!!I;this.set("data.viewPlaylistText",a);I&&I.length>0&&this.set("data.badges",I);z&&z.length>0&&this.set("data.thumbnailOverlays",
z)}};
_.eH.Object.defineProperties(ib.prototype,{downloadState:{configurable:!0,enumerable:!0,get:function(){return this.transferState&&this.transferState!=="TRANSFER_STATE_UNKNOWN"?this.transferState==="TRANSFER_STATE_COMPLETE"?"DOWNLOADED":"DOWNLOADING":""}},
menuHidden:{configurable:!0,enumerable:!0,get:function(){var a;return!((a=this.data)==null?0:a.menu)}}});
ib.prototype.transferStateChanged=ib.prototype.transferStateChanged;ib.prototype.dataChanged=ib.prototype.dataChanged;_.L([_.Q(_.k.YtRendererBehavior),_.p("design:type",Object)],ib.prototype,"ytRendererBehavior",void 0);_.L([_.Q(_.eB),_.p("design:type",Object)],ib.prototype,"ytdLockupBehavior",void 0);_.L([_.Q(_.pV),_.p("design:type",Object)],ib.prototype,"ytdReduxBehavior",void 0);_.L([_.Q(_.u4.YtRendererstamperBehavior),_.p("design:type",Object)],ib.prototype,"ytRendererstamperBehavior",void 0);
_.L([_.x({selector:_.qR$,selectorArgs:["data.playlistId"]}),_.p("design:type",Object)],ib.prototype,"downloadProgress",void 0);_.L([_.x({selector:_.Ur,selectorArgs:["data.playlistId"]}),_.p("design:type",Object)],ib.prototype,"transferState",void 0);_.L([_.x({selector:YRm,selectorArgs:["data.playlistId"]}),_.p("design:type",Object)],ib.prototype,"entityInfo",void 0);_.L([_.x({selector:_.Wd}),_.p("design:type",Boolean)],ib.prototype,"isOnline",void 0);
_.L([_.x(),_.p("design:type",Object)],ib.prototype,"data",void 0);_.L([_.x(),_.p("design:type",Object)],ib.prototype,"downloadRenderData",void 0);_.L([_.x({reflectToAttribute:!0}),_.p("design:type",Boolean)],ib.prototype,"modernButtons",void 0);_.L([_.x({value:!1,reflectToAttribute:!0}),_.p("design:type",Boolean)],ib.prototype,"isDownloads",void 0);_.L([_.x({reflectToAttribute:!0}),_.p("design:type",Object)],ib.prototype,"useModernCollectionsV2",void 0);
_.L([_.S("transferState"),_.x({reflectToAttribute:!0}),_.p("design:type",String),_.p("design:paramtypes",[])],ib.prototype,"downloadState",null);_.L([_.S("data"),_.x({reflectToAttribute:!0}),_.p("design:type",Boolean),_.p("design:paramtypes",[])],ib.prototype,"menuHidden",null);_.L([_.Fe("data"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],ib.prototype,"dataChanged",null);
_.L([_.Fe("transferState","downloadProgress","isOnline"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],ib.prototype,"transferStateChanged",null);_.L([_.U({is:"ytd-grid-playlist-renderer",disableElementRegistration:!0})],ib);
_.D(ib,"ytd-grid-playlist-renderer",function(){if(kKw!==void 0)return kKw;var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-grid-playlist-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<ytd-playlist-thumbnail custom-thumbnail-size="118" data="[[data]]" height="118" hovered="[[lockupIsHovered]]" use-expandable-tooltip="[[useExpandableTooltip]]" use-hovered-property="" width="210" class="style-scope ytd-grid-playlist-renderer">\n</ytd-playlist-thumbnail>\n<div id="details" class="style-scope ytd-grid-playlist-renderer">\n  <h3 class="style-scope ytd-grid-playlist-renderer">\n    <a id="video-title" class="yt-simple-endpoint style-scope ytd-grid-playlist-renderer" href$="[[computeHref_(data.navigationEndpoint)]]" title$="[[getSimpleString(data.title)]]" aria-label$="[[data.title.accessibility.accessibilityData.label]]" data="[[data.navigationEndpoint]]">[[getSimpleString(data.title)]]</a>\n  </h3>\n  <ytd-video-meta-block class="grid style-scope ytd-grid-playlist-renderer" data="[[data]]"></ytd-video-meta-block>\n  <ytd-badge-supported-renderer badges="[[data.badges]]" hidden="[[!data.badges]]" class="style-scope ytd-grid-playlist-renderer">\n  </ytd-badge-supported-renderer>\n  <div id="menu" class="style-scope ytd-grid-playlist-renderer"></div>\n  <yt-formatted-string id="view-more" hidden="[[!data.viewPlaylistText]]" link-inherit-color="" text="[[data.viewPlaylistText]]" class="style-scope ytd-grid-playlist-renderer">\n  </yt-formatted-string>\n  <yt-interaction id="interaction" class="extended style-scope ytd-grid-playlist-renderer"></yt-interaction>\n</div>\n');a.content.insertBefore(_.w().content.cloneNode(!0),
a.content.firstChild);return kKw=a},{mode:1});var M3w;var xt=function(){var a=_.G.apply(this,arguments)||this;a.collections=_.K("web_modern_collections_v2");return a};
_.b(xt,_.G);xt.prototype.configureRendererStamper=function(){return{"data.menu":bO,dismissedRenderer:{id:"dismissed-content",mapping:{notificationMultiActionRenderer:"ytd-notification-multi-action-renderer",notificationTextRenderer:"ytd-notification-text-renderer"}}}};
_.eH.Object.defineProperties(xt.prototype,{collectionStack:{configurable:!0,enumerable:!0,get:function(){var a,z,I,J,r,P;return{thumbnailSize:"medium",doubleStack:!1,sampledThumbnailColor:(a=this.data)==null?void 0:(z=a.thumbnail)==null?void 0:z.sampledThumbnailColor,vibrantColorPalette:(I=this.data)==null?void 0:(J=I.thumbnail)==null?void 0:J.vibrantColorPalette,darkColorPalette:(r=this.data)==null?void 0:(P=r.thumbnail)==null?void 0:P.darkColorPalette,experimentEnabled:this.collections}}}});
_.L([_.Q(_.k.YtRendererBehavior),_.p("design:type",Object)],xt.prototype,"ytRendererBehavior",void 0);_.L([_.Q(_.mD),_.p("design:type",Object)],xt.prototype,"ytdDismissibleItemBehavior",void 0);_.L([_.Q(_.eB),_.p("design:type",Object)],xt.prototype,"ytdLockupBehavior",void 0);_.L([_.Q(_.u4.YtRendererstamperBehavior),_.p("design:type",Object)],xt.prototype,"ytRendererstamperBehavior",void 0);_.L([_.x(),_.p("design:type",Object)],xt.prototype,"data",void 0);
_.L([_.x({reflectToAttribute:!0}),_.p("design:type",Boolean)],xt.prototype,"collections",void 0);_.L([_.S("data","collections"),_.p("design:type",Object),_.p("design:paramtypes",[])],xt.prototype,"collectionStack",null);_.L([_.U({is:"ytd-grid-radio-renderer",disableElementRegistration:!0})],xt);
_.D(xt,"ytd-grid-radio-renderer",function(){if(M3w!==void 0)return M3w;var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-grid-radio-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="dismissible" class="style-scope ytd-grid-radio-renderer">\n  <div class="modern-collection-parent style-scope ytd-grid-radio-renderer">\n    <yt-collections-stack data="[[collectionStack]]" class="style-scope ytd-grid-radio-renderer"></yt-collections-stack>\n    <ytd-thumbnail data="[[data]]" height="118" hovered="[[lockupIsHovered]]" use-expandable-tooltip="[[useExpandableTooltip]]" use-hovered-property="" width="210" class="style-scope ytd-grid-radio-renderer">\n    </ytd-thumbnail>\n  </div>\n  <div id="details" class="style-scope ytd-grid-radio-renderer">\n    <a class="yt-simple-endpoint style-scope ytd-grid-radio-renderer" href$="[[computeHref_(data.navigationEndpoint)]]" data="[[data.navigationEndpoint]]">\n      <h3 class="style-scope ytd-grid-radio-renderer">\n        <ytd-badge-supported-renderer top-standalone-badge="[[data.topStandaloneBadge]]" class="style-scope ytd-grid-radio-renderer">\n        </ytd-badge-supported-renderer>\n        <span id="video-title" title$="[[getSimpleString(data.title)]]" aria-label$="[[data.title.accessibility.accessibilityData.label]]" class="style-scope ytd-grid-radio-renderer">\n          [[getSimpleString(data.title)]]\n        </span>\n      </h3>\n      <ytd-video-meta-block class="grid style-scope ytd-grid-radio-renderer" data="[[data]]" radio-meta=""></ytd-video-meta-block>\n    </a>\n    <div id="menu" class="style-scope ytd-grid-radio-renderer"></div>\n  </div>\n</div>\n<div id="dismissed" class="style-scope ytd-grid-radio-renderer">\n  <div id="dismissed-content" class="style-scope ytd-grid-radio-renderer"></div>\n</div>\n<yt-interaction id="interaction" class="extended style-scope ytd-grid-radio-renderer"></yt-interaction>\n');a.content.insertBefore(_.w().content.cloneNode(!0),
a.content.firstChild);return M3w=a},{mode:1});var cbe;var vX=function(){var a=_.G.apply(this,arguments)||this;a.useModernCollectionsV2=_.K("web_modern_collections_v2");return a};
_.b(vX,_.G);vX.prototype.configureRendererStamper=function(){return{"data.offerButton":{id:"offer-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{alignByText:!0}}}}}};
vX.prototype.computeNavigationEndpoint=function(a){return wYp(a==null?void 0:a.navigationEndpoint)};
_.L([_.Q(_.k.YtRendererBehavior),_.p("design:type",Object)],vX.prototype,"ytRendererBehavior",void 0);_.L([_.Q(_.u4.YtRendererstamperBehavior),_.p("design:type",Object)],vX.prototype,"ytRendererstamperBehavior",void 0);_.L([_.Q(_.eB),_.p("design:type",Object)],vX.prototype,"ytdLockupBehavior",void 0);_.L([_.x(),_.p("design:type",Object)],vX.prototype,"data",void 0);_.L([_.x({computed:"computeNavigationEndpoint(data)"}),_.p("design:type",Object)],vX.prototype,"computedNavigationEndpoint",void 0);
_.L([_.x({reflectToAttribute:!0}),_.p("design:type",Object)],vX.prototype,"useModernCollectionsV2",void 0);_.L([_.U({is:"ytd-grid-show-renderer",disableElementRegistration:!0})],vX);
_.D(vX,"ytd-grid-show-renderer",function(){if(cbe!==void 0)return cbe;var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-grid-show-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<ytd-playlist-thumbnail data="[[data]]" width="210" class="style-scope ytd-grid-show-renderer"></ytd-playlist-thumbnail>\n<div id="details" class="style-scope ytd-grid-show-renderer">\n  <a id="title" class="yt-simple-endpoint style-scope ytd-grid-show-renderer" href$="[[computeHref_(computedNavigationEndpoint)]]" data="[[computedNavigationEndpoint]]">\n    <h3 class="style-scope ytd-grid-show-renderer">\n      <ytd-badge-supported-renderer class="badge style-scope ytd-grid-show-renderer" hidden="[[!data.topStandaloneBadge]]" top-standalone-badge="[[data.topStandaloneBadge]]">\n      </ytd-badge-supported-renderer>\n      <span id="video-title" title$="[[getSimpleString(data.title)]]" aria-label$="[[data.title.accessibility.accessibilityData.label]]" class="style-scope ytd-grid-show-renderer">\n        [[getSimpleString(data.title)]]\n      </span>\n    </h3>\n    <ytd-video-meta-block class="grid style-scope ytd-grid-show-renderer" data="[[data]]"></ytd-video-meta-block>\n  </a>\n  <ytd-badge-supported-renderer class="badge style-scope ytd-grid-show-renderer" hidden="[[!data.bottomStandaloneBadge]]" top-standalone-badge="[[data.bottomStandaloneBadge]]">\n  </ytd-badge-supported-renderer>\n  <ytd-badge-supported-renderer class="badge style-scope ytd-grid-show-renderer" badges="[[data.badges]]" hidden="[[!data.badges]]">\n  </ytd-badge-supported-renderer>\n  <div id="offer-button" class="style-scope ytd-grid-show-renderer"></div>\n  <div id="menu" class="style-scope ytd-grid-show-renderer"></div>\n</div>\n<yt-interaction id="interaction" class="extended style-scope ytd-grid-show-renderer"></yt-interaction>\n');a.content.insertBefore(_.w().content.cloneNode(!0),
a.content.firstChild);return cbe=a},{mode:1});var YQi;_.Gq=function(a){this.playerClient=a};
_.qQi=function(a,z,I){I=I===void 0?{}:I;return a.playerClient.setOption("ad",z,I)};
_.Gq.prototype.getOptions=function(){return this.playerClient.getOptions("ad")||[]};
_.Gq.prototype.executeCommand=function(a,z){this.getOptions().includes("executeCommand")?_.qQi(this,"executeCommand",{command:a,layoutId:z}):_.Mh("Calling executeCommand when adModule is not loaded")};var $t=function(){return _.G.apply(this,arguments)||this};
_.b($t,_.G);$t.prototype.getLayoutId=function(){var a=_.DH("yt.www.ads.eventcache.getLastCompanionData");return a?(a=a())&&a.layoutId:null};
$t.prototype.onTap=function(){if(this.data&&this.data.clickthroughEndpoint){var a=_.zI(),z=this.getLayoutId(),I=this.data.clickthroughEndpoint;a&&z&&_.K("h5_companion_enable_adcpn_macro_substitution_for_click_pings")?a.getPlayerPromise().then(function(J){(new _.Gq(J)).executeCommand(I,z)}):_.PA(this.hostElement,"yt-navigate",{endpoint:I})}};
_.L([_.Q(_.k.YtRendererBehavior),_.p("design:type",Object)],$t.prototype,"ytRendererBehavior",void 0);_.L([_.x(),_.p("design:type",Object)],$t.prototype,"data",void 0);_.L([_.U({is:"ytd-shopping-companion-item-renderer",disableElementRegistration:!0})],$t);
_.D($t,"ytd-shopping-companion-item-renderer",function(){if(YQi!==void 0)return YQi;var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-shopping-companion-item-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="shopping-companion-item-container" on-tap="onTap" class="style-scope ytd-shopping-companion-item-renderer">\n  <div id="card" class="style-scope ytd-shopping-companion-item-renderer">\n    <yt-img-shadow id="image" thumbnail="[[data.image]]" class="style-scope ytd-shopping-companion-item-renderer"></yt-img-shadow>\n    <div id="info" class="style-scope ytd-shopping-companion-item-renderer">\n      <span id="headline" class="style-scope ytd-shopping-companion-item-renderer">[[getSimpleString(data.headline)]]</span>\n      <span id="price" class="style-scope ytd-shopping-companion-item-renderer">[[getSimpleString(data.priceText)]]</span>\n    </div>\n  </div>\n</div>\n');a.content.insertBefore(_.w().content.cloneNode(!0),
a.content.firstChild);return YQi=a},{mode:1});var erj;var XQ=function(){var a=_.G.apply(this,arguments)||this;a.isExpandableContent=!1;return a};
_.b(XQ,_.G);_.eH.Object.defineProperties(XQ.prototype,{showCta:{configurable:!0,enumerable:!0,get:function(){var a;return!((a=this.data)==null||!a.ctaText)}},
ctaText:{configurable:!0,enumerable:!0,get:function(){var a;return(a=this.data)==null?void 0:a.ctaText}},
hasPriceTopPosition:{configurable:!0,enumerable:!0,get:function(){var a;return((a=this.data)==null?void 0:a.layoutStyle)!=="VERTICAL_PRODUCT_CARD_LAYOUT_STYLE_SHOPPING_COLLECTION"}},
hasPriceBottomPosition:{configurable:!0,enumerable:!0,get:function(){var a;return((a=this.data)==null?void 0:a.layoutStyle)==="VERTICAL_PRODUCT_CARD_LAYOUT_STYLE_SHOPPING_COLLECTION"}},
useNewStyle:{configurable:!0,enumerable:!0,get:function(){var a;return(a=this.data)==null?void 0:a.useNewStyle}},
showPriceReplacementText:{configurable:!0,enumerable:!0,get:function(){var a;return!((a=this.data)==null||!a.priceReplacementText)}},
priceValue:{configurable:!0,enumerable:!0,get:function(){var a,z,I;return((a=this.data)==null?void 0:a.price)||((z=this.data)==null?void 0:(I=z.dealsData)==null?void 0:I.currentPrice)}},
showDeal:{configurable:!0,enumerable:!0,get:function(){var a,z;if((a=this.data)!=null&&a.dealsData&&((z=this.data)==null||!z.priceReplacementText)){a=this.data.dealsData;var I,J,r;return((I=a.salesData)==null?void 0:I.originalPrice)||((J=a.priceDropData)==null?void 0:J.referencePrice)||((r=a.promotionData)==null?void 0:r.promotionLabel)}}},
showAffiliateDisclaimer:{configurable:!0,enumerable:!0,get:function(){var a;return!((a=this.data)==null||!a.affiliateDisclaimer)}},
useSaleStyle:{configurable:!0,enumerable:!0,get:function(){var a,z;return(a=this.data)==null?void 0:(z=a.dealsData)==null?void 0:z.salesData}},
useFromBrandCtaStyle:{configurable:!0,enumerable:!0,get:function(){var a;return((a=this.data)==null?void 0:a.ctaStyle)==="VERTICAL_PRODUCT_CARD_CTA_STYLE_FROM_BRAND"}},
useFromVendorCtaStyle:{configurable:!0,enumerable:!0,get:function(){var a;return((a=this.data)==null?void 0:a.ctaStyle)==="VERTICAL_PRODUCT_CARD_CTA_STYLE_FROM_VENDOR"}},
useShoppingCollectionCtaStyle:{configurable:!0,enumerable:!0,get:function(){var a;return((a=this.data)==null?void 0:a.ctaStyle)==="VERTICAL_PRODUCT_CARD_CTA_STYLE_SHOPPING_COLLECTION"}}});
_.L([_.Q(_.k.YtRendererBehavior),_.p("design:type",Object)],XQ.prototype,"ytRendererBehavior",void 0);_.L([_.Q(_.Ms.YtComponentBehavior),_.p("design:type",Object)],XQ.prototype,"componentBehavior",void 0);_.L([_.x(),_.p("design:type",Object)],XQ.prototype,"data",void 0);_.L([_.x({reflectToAttribute:!0}),_.p("design:type",Object)],XQ.prototype,"isExpandableContent",void 0);_.L([_.S("data"),_.p("design:type",Object),_.p("design:paramtypes",[])],XQ.prototype,"showCta",null);
_.L([_.S("data"),_.p("design:type",Object),_.p("design:paramtypes",[])],XQ.prototype,"ctaText",null);_.L([_.S("data"),_.p("design:type",Object),_.p("design:paramtypes",[])],XQ.prototype,"hasPriceTopPosition",null);_.L([_.S("data"),_.p("design:type",Object),_.p("design:paramtypes",[])],XQ.prototype,"hasPriceBottomPosition",null);_.L([_.x({reflectToAttribute:!0}),_.S("data"),_.p("design:type",Object),_.p("design:paramtypes",[])],XQ.prototype,"useNewStyle",null);
_.L([_.S("data"),_.p("design:type",Object),_.p("design:paramtypes",[])],XQ.prototype,"showPriceReplacementText",null);_.L([_.x({reflectToAttribute:!0}),_.S("data"),_.p("design:type",Object),_.p("design:paramtypes",[])],XQ.prototype,"priceValue",null);_.L([_.x({reflectToAttribute:!0}),_.S("data"),_.p("design:type",Object),_.p("design:paramtypes",[])],XQ.prototype,"showDeal",null);_.L([_.S("data"),_.p("design:type",Object),_.p("design:paramtypes",[])],XQ.prototype,"showAffiliateDisclaimer",null);
_.L([_.x({reflectToAttribute:!0}),_.S("data"),_.p("design:type",Object),_.p("design:paramtypes",[])],XQ.prototype,"useSaleStyle",null);_.L([_.x({reflectToAttribute:!0}),_.S("data"),_.p("design:type",Object),_.p("design:paramtypes",[])],XQ.prototype,"useFromBrandCtaStyle",null);_.L([_.x({reflectToAttribute:!0}),_.S("data"),_.p("design:type",Object),_.p("design:paramtypes",[])],XQ.prototype,"useFromVendorCtaStyle",null);
_.L([_.x({reflectToAttribute:!0}),_.S("data"),_.p("design:type",Object),_.p("design:paramtypes",[])],XQ.prototype,"useShoppingCollectionCtaStyle",null);_.L([_.U({disableElementRegistration:!0,is:"ytd-vertical-product-card-renderer"})],XQ);
_.D(XQ,"ytd-vertical-product-card-renderer",function(){if(erj!==void 0)return erj;var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-vertical-product-card-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e\n\n<a id="product-card-renderer-container" class="yt-simple-endpoint style-scope ytd-vertical-product-card-renderer" href$="[[computeHref_(data.navigationEndpoint)]]" data="[[data.navigationEndpoint]]" rel="[[computeNofollow_(data.navigationEndpoint)]]" aria-label="[[data.accessibilityTitle]]">\n  <div id="card-with-protection" data-offer-version-id$="[[data.debugOfferVersionId]]" class="style-scope ytd-vertical-product-card-renderer">\n    <div id="product-image" class="product-info-row style-scope ytd-vertical-product-card-renderer">\n      <yt-img-shadow thumbnail="[[data.thumbnail]]" class="style-scope ytd-vertical-product-card-renderer"></yt-img-shadow>\n    </div>\n    <div id="product-info" class="style-scope ytd-vertical-product-card-renderer">\n      <div id="product-name" class="product-info-row style-scope ytd-vertical-product-card-renderer">[[data.title]]</div>\n\n      <template is="dom-if" restamp="" if="[[hasPriceTopPosition]]" class="style-scope ytd-vertical-product-card-renderer">\n        <div class="product-info-row style-scope ytd-vertical-product-card-renderer">\n          <template is="dom-if" restamp="" if="[[showPriceReplacementText]]" class="style-scope ytd-vertical-product-card-renderer">\n            <span id="price-replacement" class="style-scope ytd-vertical-product-card-renderer">[[data.priceReplacementText]]</span>\n          </template>\n          <template is="dom-if" restamp="" if="[[!showPriceReplacementText]]" class="style-scope ytd-vertical-product-card-renderer">\n            <span id="price" class="style-scope ytd-vertical-product-card-renderer">[[priceValue]]</span>\n            <template is="dom-if" restamp="" if="[[data.additionalFeesText]]" class="style-scope ytd-vertical-product-card-renderer">\n              <span id="additional-taxes" class="style-scope ytd-vertical-product-card-renderer">[[data.additionalFeesText]]</span>\n            </template>\n          </template>\n        </div>\n        <div id="product-deal" class="product-info-row style-scope ytd-vertical-product-card-renderer" aria-label="[[data.dealsData.salesData.salesPriceAccessibilityLabel]]">\n          [[showDeal]]\n        </div>\n      </template>\n\n      <div id="variants-description" class="product-info-row style-scope ytd-vertical-product-card-renderer">\n        [[data.variantsDescription]]\n      </div>\n\n      <template is="dom-if" restamp="" if="[[showCta]]" class="style-scope ytd-vertical-product-card-renderer">\n        <div class="product-info-row style-scope ytd-vertical-product-card-renderer">\n          <yt-formatted-string class="cta-row style-scope ytd-vertical-product-card-renderer" text="[[ctaText]]">\n          </yt-formatted-string>\n          <template is="dom-if" restamp="" if="[[data.showOpenInNewIcon]]" class="style-scope ytd-vertical-product-card-renderer">\n            <yt-icon class="cta-row hover-icon style-scope ytd-vertical-product-card-renderer" icon="open_in_new"></yt-icon>\n          </template>\n        </div>\n      </template>\n\n      <template is="dom-if" restamp="" if="[[hasPriceBottomPosition]]" class="style-scope ytd-vertical-product-card-renderer">\n        <div class="product-info-row style-scope ytd-vertical-product-card-renderer">\n          <template is="dom-if" restamp="" if="[[showPriceReplacementText]]" class="style-scope ytd-vertical-product-card-renderer">\n            <span id="price-replacement" class="style-scope ytd-vertical-product-card-renderer">[[data.priceReplacementText]]</span>\n          </template>\n          <template is="dom-if" restamp="" if="[[!showPriceReplacementText]]" class="style-scope ytd-vertical-product-card-renderer">\n            <span id="price" class="style-scope ytd-vertical-product-card-renderer">[[priceValue]]</span>\n            <template is="dom-if" restamp="" if="[[data.additionalFeesText]]" class="style-scope ytd-vertical-product-card-renderer">\n              <span id="additional-taxes" class="style-scope ytd-vertical-product-card-renderer">[[data.additionalFeesText]]</span>\n            </template>\n          </template>\n        </div>\n        <div id="product-deal" class="product-info-row style-scope ytd-vertical-product-card-renderer" aria-label="[[data.dealsData.salesData.salesPriceAccessibilityLabel]]">\n          [[showDeal]]\n        </div>\n      </template>\n\n      <template is="dom-if" restamp="" if="[[showAffiliateDisclaimer]]" class="style-scope ytd-vertical-product-card-renderer">\n        <div class="product-info-row style-scope ytd-vertical-product-card-renderer">\n          <div id="affiliate-disclaimer" class="style-scope ytd-vertical-product-card-renderer">[[data.affiliateDisclaimer]]</div>\n        </div>\n      </template>\n    </div>\n  </div>\n</a>\n');a.content.insertBefore(_.w().content.cloneNode(!0),
a.content.firstChild);return erj=a},{mode:1});var azw;var Tq=function(){return _.G.apply(this,arguments)||this};
_.b(Tq,_.G);Tq.prototype.configureRendererStamper=function(){return{"data.offerButton":{id:"offer-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{alignByText:!0}}}}}};
_.L([_.Q(_.k.YtRendererBehavior),_.p("design:type",Object)],Tq.prototype,"ytRendererBehavior",void 0);_.L([_.Q(_.u4.YtRendererstamperBehavior),_.p("design:type",Object)],Tq.prototype,"ytRendererstamperBehavior",void 0);_.L([_.Q(_.eB),_.p("design:type",Object)],Tq.prototype,"ytdLockupBehavior",void 0);_.L([_.x(),_.p("design:type",Object)],Tq.prototype,"data",void 0);_.L([_.U({disableElementRegistration:!0,is:"ytd-grid-movie-renderer"})],Tq);
_.D(Tq,"ytd-grid-movie-renderer",function(){if(azw!==void 0)return azw;var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-grid-movie-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<ytd-thumbnail data="[[data]]" hovered="[[lockupIsHovered]]" use-expandable-tooltip="[[useExpandableTooltip]]" use-hovered-property="" width="210" class="style-scope ytd-grid-movie-renderer">\n</ytd-thumbnail>\n<a class="yt-simple-endpoint style-scope ytd-grid-movie-renderer" href$="[[computeHref_(data.navigationEndpoint)]]" data="[[data.navigationEndpoint]]">\n  <h3 class="style-scope ytd-grid-movie-renderer">\n    <ytd-badge-supported-renderer top-standalone-badge="[[data.topStandaloneBadge]]" class="style-scope ytd-grid-movie-renderer">\n    </ytd-badge-supported-renderer>\n    <span id="video-title" title$="[[getSimpleString(data.title)]]" aria-label$="[[data.title.accessibility.accessibilityData.label]]" class="style-scope ytd-grid-movie-renderer">\n      [[getSimpleString(data.title)]]\n    </span>\n  </h3>\n  <span class="grid-movie-renderer-metadata style-scope ytd-grid-movie-renderer" hidden="[[!data.metadata]]">\n    [[getSimpleString(data.metadata)]]\n  </span>\n  \n  <ytd-video-meta-block class="grid style-scope ytd-grid-movie-renderer" data="[[data]]"></ytd-video-meta-block>\n</a>\n<ytd-badge-supported-renderer class="badges style-scope ytd-grid-movie-renderer" badges="[[data.badges]]" hidden="[[!data.badges]]">\n</ytd-badge-supported-renderer>\n<div id="offer-button" class="style-scope ytd-grid-movie-renderer"></div>\n<yt-interaction id="interaction" class="extended style-scope ytd-grid-movie-renderer"></yt-interaction>\n');
a.content.insertBefore(_.w().content.cloneNode(!0),a.content.firstChild);return azw=a},{mode:1});var j$w;var dW=function(){var a=_.G.apply(this,arguments)||this;a.rounded=!0;a.itemStyle="small-item";return a};
_.b(dW,_.G);dW.prototype.showSnackbarIfPlaceholder=function(){if(this.isProductPlaceholder){var a,z,I,J,r=(z=_.H((a=this.data)==null?void 0:a.buttonCommand,_.Qw))==null?void 0:(I=z.item)==null?void 0:(J=I.notificationTextRenderer)==null?void 0:J.successResponseText;r&&_.FFO(this.hostElement,r)}};
_.eH.Object.defineProperties(dW.prototype,{hasPrice:{configurable:!0,enumerable:!0,get:function(){var a;return((a=this.data)==null?void 0:a.price)!==void 0}},
hasPriceReplacementText:{configurable:!0,enumerable:!0,get:function(){var a;return!((a=this.data)==null||!a.priceReplacementText)}},
hasAdditionalFeesText:{configurable:!0,enumerable:!0,get:function(){var a;return((a=this.data)==null?void 0:a.additionalFeesText)!==void 0}},
hasAffiliateDisclaimer:{configurable:!0,enumerable:!0,get:function(){var a;return((a=this.data)==null?void 0:a.affiliateDisclaimer)!==void 0}},
isProductPlaceholder:{configurable:!0,enumerable:!0,get:function(){var a,z;return((a=this.data)==null?void 0:a.isProductPlaceholder)!==void 0&&((z=this.data)==null?void 0:z.isProductPlaceholder)}},
hideOpenInNewIcon:{configurable:!0,enumerable:!0,get:function(){var a;return((a=this.data)==null?void 0:a.showOpenInNewIcon)===!1}},
ariaLabel:{configurable:!0,enumerable:!0,get:function(){return this.data&&this.data.accessibilityTitle?this.data.accessibilityTitle:this.data.title+", "+this.data.price+", "+this.data.additionalFeesText+", "+this.data.vendorName}}});
_.L([_.Q(_.k.YtRendererBehavior),_.p("design:type",Object)],dW.prototype,"ytRendererBehavior",void 0);_.L([_.x({reflectToAttribute:!0}),_.p("design:type",Object)],dW.prototype,"rounded",void 0);_.L([_.x(),_.p("design:type",Object)],dW.prototype,"data",void 0);_.L([_.x({reflectToAttribute:!0}),_.p("design:type",String)],dW.prototype,"itemStyle",void 0);_.L([_.S("data"),_.p("design:type",Object),_.p("design:paramtypes",[])],dW.prototype,"hasPrice",null);
_.L([_.S("data"),_.p("design:type",Object),_.p("design:paramtypes",[])],dW.prototype,"hasPriceReplacementText",null);_.L([_.S("data"),_.p("design:type",Object),_.p("design:paramtypes",[])],dW.prototype,"hasAdditionalFeesText",null);_.L([_.S("data"),_.p("design:type",Object),_.p("design:paramtypes",[])],dW.prototype,"hasAffiliateDisclaimer",null);_.L([_.S("data"),_.p("design:type",Object),_.p("design:paramtypes",[])],dW.prototype,"isProductPlaceholder",null);
_.L([_.x(),_.S("data"),_.p("design:type",Object),_.p("design:paramtypes",[])],dW.prototype,"hideOpenInNewIcon",null);_.L([_.S("data"),_.p("design:type",Object),_.p("design:paramtypes",[])],dW.prototype,"ariaLabel",null);_.L([_.U({disableElementRegistration:!0,is:"ytd-merch-shelf-item-renderer"})],dW);
_.D(dW,"ytd-merch-shelf-item-renderer",function(){if(j$w!==void 0)return j$w;var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-merch-shelf-item-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e\n\n<a class="yt-simple-endpoint style-scope ytd-merch-shelf-item-renderer" href$="[[computeHref_(data.buttonCommand)]]" data="[[data.buttonCommand]]" aria-label$="[[ariaLabel]]" data-offer-version-id$="[[data.debugOfferVersionId]]" on-click="showSnackbarIfPlaceholder">\n  <div class="product-item style-scope ytd-merch-shelf-item-renderer">\n    <yt-img-shadow class="product-item-image style-scope ytd-merch-shelf-item-renderer" height="90" object-fit="CONTAIN" thumbnail="[[data.thumbnail]]" width="90"></yt-img-shadow>\n    <template is="dom-if" restamp="" if="[[isProductPlaceholder]]" class="style-scope ytd-merch-shelf-item-renderer">\n      <div class="product-item-info style-scope ytd-merch-shelf-item-renderer">\n        <div class="product-item-info-wrapper product-placeholder-item-info-center style-scope ytd-merch-shelf-item-renderer">\n          <div class="small-item-hide product-item-title style-scope ytd-merch-shelf-item-renderer">[[data.title]]</div>\n        </div>\n      </div>\n    </template>\n    <template is="dom-if" restamp="" if="[[!isProductPlaceholder]]" class="style-scope ytd-merch-shelf-item-renderer">\n      <div class="product-item-info style-scope ytd-merch-shelf-item-renderer">\n        <div class="product-item-info-wrapper style-scope ytd-merch-shelf-item-renderer">\n          <div class="product-item-info-wrapper-row-1 style-scope ytd-merch-shelf-item-renderer">\n            <div class="small-item-hide product-item-title style-scope ytd-merch-shelf-item-renderer">[[data.title]]</div>\n            <template is="dom-if" restamp="" if="[[hasPrice]]" class="style-scope ytd-merch-shelf-item-renderer">\n              <div class="product-item-price-wrapper style-scope ytd-merch-shelf-item-renderer">\n                <template is="dom-if" restamp="" if="[[hasPriceReplacementText]]" class="style-scope ytd-merch-shelf-item-renderer">\n                  <div class="product-item-price style-scope ytd-merch-shelf-item-renderer">[[data.priceReplacementText]]</div>\n                </template>\n                <template is="dom-if" restamp="" if="[[!hasPriceReplacementText]]" class="style-scope ytd-merch-shelf-item-renderer">\n                  <div class="product-item-price style-scope ytd-merch-shelf-item-renderer">[[data.price]]</div>\n                  <div class="product-item-additional-fees-text style-scope ytd-merch-shelf-item-renderer" hidden="[[!hasAdditionalFeesText]]">\n                    [[data.additionalFeesText]]\n                  </div>\n                </template>\n              </div>\n            </template>\n            <div no-price$="[[!hasPrice]]" class="cta-item-hide link-item-hide product-item-merchant style-scope ytd-merch-shelf-item-renderer">\n              <div class="product-item-merchant-text style-scope ytd-merch-shelf-item-renderer">\n                [[data.vendorName]]\n                <yt-icon class="product-item-merchant-icon product-item-merchant-icon--inline style-scope ytd-merch-shelf-item-renderer" hidden="[[hideOpenInNewIcon]]" icon="open_in_new" size="15"></yt-icon>\n              </div>\n              \n              <yt-icon class="product-item-merchant-icon style-scope ytd-merch-shelf-item-renderer" hidden="[[hideOpenInNewIcon]]" icon="open_in_new" size="15"></yt-icon>\n            </div>\n          </div>\n          <div class="small-item-hide large-item-hide product-item-info-wrapper-row-2 style-scope ytd-merch-shelf-item-renderer">\n            <div class="affiliate-disclaimer-text style-scope ytd-merch-shelf-item-renderer" hidden="[[!hasAffiliateDisclaimer]]">\n              [[data.affiliateDisclaimer]]\n            </div>\n            <div class="product-item-description style-scope ytd-merch-shelf-item-renderer">[[data.description]]</div>\n          </div>\n        </div>\n      </div>\n      <div class="small-item-hide large-item-hide link-item-hide product-item-button-wrapper style-scope ytd-merch-shelf-item-renderer" hidden="[[isProductPlaceholder]]">\n        <div class="product-item-button style-scope ytd-merch-shelf-item-renderer">[[data.buttonText]]</div>\n        <div class="product-item-merchant style-scope ytd-merch-shelf-item-renderer">\n          <div class="product-item-merchant-text style-scope ytd-merch-shelf-item-renderer">[[data.vendorName]]</div>\n          <yt-icon class="product-item-merchant-icon style-scope ytd-merch-shelf-item-renderer" hidden="[[hideOpenInNewIcon]]" icon="open_in_new" size="15"></yt-icon>\n        </div>\n      </div>\n    </template>\n  </div>\n</a>\n');a.content.insertBefore(_.w().content.cloneNode(!0),
a.content.firstChild);return j$w=a},{mode:1});var zMG=_.ec(function(a){return _.B("button-card-view-model",{el:_.a5(_.UN(function(){return a.data().rendererContext})),
class:"ytwButtonCardViewModelHost",tabindex:0,"aria-label":function(){return a.data().title},
role:"button"},_.B(_.Bc,{model:{}}),_.B("div",{class:"ytwButtonCardViewModelHostContentContainer"},_.B("div",{class:"ytwButtonCardViewModelHostContentContainerIconContainer"},_.B(_.g,{cond:function(){return a.data().image},
then:function(z){return _.B(_.qp,{data:z,alt:"",className:"ytwButtonCardViewModelHostImage"})}})),_.B("div",{class:"ytwButtonCardViewModelHostContentContainerTitleContainer"},function(){return a.data().title})))},"hb");_.K("web_button_view_model_wcw_registration_killswitch")||_.Jf(zMG,"button-card-view-model",{props:{data:_.zl}});_.Jf(_.ec(function(a){a=_.q3(a,{className:void 0});var z=a.data;a=a.className;var I=_.Bg(function(){return z().onTapCommand},void 0,"NprDr");
return _.B("ytd-shopping-item-card",{class:_.B8("ytdShoppingItemCardHost",a)},_.B(_.lq,{command:I,className:"ytdShoppingItemCardHostLink"},_.B("div",{class:"ytdShoppingItemCardHostThumbnailViewModel"},_.B(_.V0,{data:function(){return z().thumbnailViewModel}},{thumbnailViewModel:function(J){return _.B(_.rW,{data:J.data,
aspectRatio:3})}})),_.B("div",null,_.B("p",{class:"ytdShoppingItemCardHostItemTitle"},_.B(_.xs,{text:function(){return z().itemTitle}})),_.B("p",{class:"ytdShoppingItemCardHostPrice"},_.B(_.xs,{text:function(){return z().priceOrStatus}})))))},"ib"),"ytd-shopping-item-card",{props:{data:_.zl,
className:_.zl}});var IzJ={isAdsVideo:!0},JBl={showPlayerControls:!1,forceMutedVolume:!0,roundedCornersSize:3},rBf={showPlayerControls:!1,videoPreviewDurationMs:15E3},PUo={showPlayerControls:!1,videoPreviewDurationMs:5E3,forceCaptionsOff:!0,forceMutedVolume:!0,roundedCornersSize:2,cropPlayerToFillThumbnailHorizontally:!_.K("web_shorts_imp_fullwidth_killswitch")};var Yc=null,Hgp={};var V3x="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(" "),WX={},Qi7=(WX.FEwhat_to_watch="home",WX.FEhashtag="hashtag",WX.FEtrending="trending",WX.FEhistory="history",WX.SPunlimited="premium",WX.FEmemberships_and_purchases="paid_memberships",WX.SPredeem_code="redeem",WX.SPverify_location="locate",WX.SPminor_moment="minor_moment",
WX.FEmini_app_container="mini_app",WX.FEnews_destination="news",WX.SPopen_in_app="open_in_app",WX.FEexplore="explore",WX.FEsubscriptions="subscriptions",WX.FEsfv_audio_pivot="sfv_audio_pivot",WX.FEplaylist_aggregation="playlist_aggregation",WX);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");_.uI("init");var Z8j=function(){},uri=_.ec(function(a){var z=a.data;
var I=a.inlineMetadata;var J=a.aspectRatio;var r=a.scrimStyle;var P=a.className;var N=a.useDefaultStyle;var u=new Z8j,E=_.K("web_enable_default_style_for_pivot_panel")?"SHORTS_LOCKUP_STYLE_UNKNOWN":"SHORTS_LOCKUP_STYLE_SLIM",O=_.Bg(function(){return(N==null?0:N())?E==="SHORTS_LOCKUP_STYLE_SLIM":z().style==="SHORTS_LOCKUP_STYLE_SLIM"},void 0,"ibyPNe"),f=_.Bg(function(){return _.SJ(I)||O()||!1},void 0,"F6KaVc"),A=function(){return(r==null?void 0:r())!==void 0?r==null?void 0:r():1},n=_.Bg(function(){return z().belowThumbnailMetadata||
!f()},void 0,"t2xwLe");
a=_.z$({visibilityCallback:function(e){var Bp=z().onFirstVisible;e&&Bp&&_.lN(Bp)},
showOption:{calledOnce:!0,state:"visible"}});var F=_.a5(),h={},v=_.B8(function(){return O(),"shortsLockupViewModelHostThumbnailContainer"},(h.shortsLockupViewModelHostThumbnailContainerAspectRatioTwoByThree=function(){return _.SJ(J)===1},h.shortsLockupViewModelHostThumbnailContainerAspectRatioThreeByFour=function(){return _.SJ(J)===2},h.shortsLockupViewModelHostThumbnailContainerCustomDimensions=function(){return!_.K("web_shorts_2_by_3_lockups_study")&&!_.K("desktop_search_enable_two_by_three_shorts_aspect_ratio")},
h)),d=_.Bg(function(){if(_.SJ(J)===1)return 1;
_.SJ(J);return 2},void 0,"LG7swb"),W,l=function(){if(u){var e;
(e=W)==null||e8(e);var Bp;if(u.hostElement&&((Bp=u.data)==null?0:Bp.inlinePlayerData)){e=Object.assign({},PUo);var Em,nG;((Em=u.data)==null?void 0:(nG=Em.inlinePlayerData)==null?void 0:nG.maxPlaybackLengthSec)!==void 0&&(e.videoPreviewDurationMs=u.data.inlinePlayerData.maxPlaybackLengthSec*1E3);W=LU({mediaRenderer:u,lockupElement:u.hostElement,thumbnailElement:F.value,videoPreviewOpts:e})}}};
_.h2(function(){u&&(u.data=z(),l())},"adXpp");
var q=_.Bg(function(){return z().thumbnail},void 0,"cFasFe");
h=_.Bg(function(){return z().badge},void 0,"a2oavc");
var m=_.Bg(function(){return z().onTap},void 0,"jb0oIf"),M={},y={};
return _.B("ytm-shorts-lockup-view-model",{el:_.a5(function(e){u&&(u.hostElement=e)},l,a),
class:_.B8("shortsLockupViewModelHost",P)},_.B(_.eJ,null,_.B(_.lq,{command:m,className:_.B8("shortsLockupViewModelHostEndpoint",(M.shortsLockupViewModelHostEndpointNoOutsideMetadata=function(){return!n()},M),"reel-item-endpoint",""),
ariaHidden:function(){return!f()},
tabIndex:function(){return f()?0:-1}},_.B("div",{el:F,
class:_.B8("shortsLockupViewModelHostThumbnailParentContainer",(y.shortsLockupViewModelHostThumbnailParentContainerRounded=function(){return!O()},y))},_.B(_.g,{cond:q,
then:function(){return _.B("div",{class:v},_.B(_.qp,{data:function(){var e;return(e=q==null?void 0:q())!=null?e:{}},
alt:"",className:"shortsLockupViewModelHostThumbnail",useWidth:!1,contentMode:"CONTENT_MODE_SCALE_ASPECT_FILL"}))}}),_.B(_.V0,{data:function(){return z().thumbnailViewModel}},{thumbnailViewModel:function(e){return _.B(_.rW,{data:e.data,
aspectRatio:function(){return d()},
disableRounding:function(){return O()}})}}),null),_.B(_.g,{cond:f,
then:function(){return _.B(CUG,{data:z,scrimStyle:A,useDefaultStyle:N})}}),_.B(_.V0,{data:h},{badgeViewModel:function(e){return _.B(_.N8,{data:e.data,
class:"shortsLockupViewModelHostBadge",workaroundShortsIsThumbnailBadge:!0})}})),_.B(_.g,{cond:function(){return f()&&z().menuOnTap},
then:function(){return _.B(NUI,{data:z,inlineMetadata:!0})}}),_.B(_.g,{cond:n,
then:function(){return _.B(thv,{data:z,useDefaultStyle:N,inlineMetadata:f})}})))},"jb"),CUG=_.ec(function(a){var z=a.data;
var I=a.scrimStyle;var J=a.useDefaultStyle;var r=_.K("web_enable_default_style_for_pivot_panel")?"SHORTS_LOCKUP_STYLE_UNKNOWN":"SHORTS_LOCKUP_STYLE_SLIM",P=J&&_.K("web_hide_primary_text_for_pivot_panel"),N=_.Bg(function(){return(J==null?0:J())?r==="SHORTS_LOCKUP_STYLE_SLIM":z().style==="SHORTS_LOCKUP_STYLE_SLIM"},void 0,"o1uIvc");
a={};a=_.B8("shortsLockupViewModelHostInlineMetadata",(a.shortsLockupViewModelHostMetadataRounded=function(){return!N()},a.shortsLockupViewModelHostInlineMetadataShortScrim=function(){return(I==null?void 0:I())===3&&!_.K("enable_shorts_lockup_new_scrim")},a.shortsLockupViewModelHostInlineMetadataShortScrimNew=function(){return(I==null?void 0:I())===3&&_.K("enable_shorts_lockup_new_scrim")},a.shortsLockupViewModelHostInlineMetadataMediumScrim=function(){return(I==null?void 0:I())===2||(I==null?void 0:
I())===4},a.shortsLockupViewModelHostShowOverPlayer=function(){return!0},a),"image-overlay-text");
var u={};return _.B("div",{class:a},_.B("h3",{class:_.B8("shortsLockupViewModelHostMetadataTitle",(u.shortsLockupViewModelHostMetadataTitleTextShadow=function(){return(I==null?void 0:I())===4},u.shortsLockupViewModelHostMetadataTitleHasBottomMetadata=function(){return z().belowThumbnailMetadata},u)),
"aria-label":function(){return z().accessibilityText}},_.B(_.g,{cond:function(){var E;
return!((E=z().overlayMetadata)==null||!E.primaryText)&&!P},
then:function(){return _.B(_.xs,{text:function(){var E;return(E=z().overlayMetadata)==null?void 0:E.primaryText},
noEndpoints:!0,noStyleRuns:!0})}})),_.B(_.g,{cond:function(){var E;
return(E=z().overlayMetadata)==null?void 0:E.secondaryText},
then:function(){return _.B(EYj,{data:z,scrimStyle:I,className:void 0})}}))},"kb"),thv=_.ec(function(a){var z=a.data;
var I=a.useDefaultStyle;var J=a.inlineMetadata;var r=_.K("web_enable_default_style_for_pivot_panel")?"SHORTS_LOCKUP_STYLE_UNKNOWN":"SHORTS_LOCKUP_STYLE_SLIM",P=_.Bg(function(){return(I==null?0:I())?r==="SHORTS_LOCKUP_STYLE_SLIM":z().style==="SHORTS_LOCKUP_STYLE_SLIM"},void 0,"c4LgDb"),N=_.a5(),u;
a=_.g4(function(F){if(_.di(_.TI(F),N.value,["AVATAR-VIEW-MODEL"]))return!1;var h;(h=u)==null||h.click();return!1});
var E=_.Bg(function(){return z().belowThumbnailMetadata||z().overlayMetadata},void 0,"YLe6Mc"),O=function(){return z().menuOnTap&&!J()},f=function(){var F;
return(F=E())==null?void 0:F.avatar},A={},n={};
return _.B("div",{class:_.B8(function(){return P()?"shortsLockupViewModelHostOutsideMetadata":"shortsLockupViewModelHostOutsideMetadata shortsLockupViewModelHostMetadataRounded"},(A.shortsLockupViewModelHostOutsideMetadataHasAvatar=function(){return!!f()},A.shortsLockupViewModelHostOutsideMetadataHasMenu=O,A)),
"on:click":a,el:N,role:"presentation"},_.B(_.V0,{data:f},{avatarViewModel:function(F){return _.B("div",{class:"shortsLockupViewModelHostOutsideMetadataAvatar"},_.B(_.ok,{data:F.data}))}}),_.B("div",null,_.B("h3",{class:_.B8("shortsLockupViewModelHostMetadataTitle","shortsLockupViewModelHostOutsideMetadataTitle","",(n.shortsLockupViewModelHostOutsideMetadataMissingTitle=function(){var F,h;
return!((F=E())==null?0:(h=F.primaryText)==null?0:h.content)},n.shortsLockupViewModelHostOutsideMetadataTitleHasInlineMetadata=J,n)),
role:"presentation"},_.B(_.lq,{ref:function(F){return void(u=F)},
command:function(){return z().onTap},
className:_.B8("shortsLockupViewModelHostEndpoint","shortsLockupViewModelHostOutsideMetadataEndpoint"),title:function(){var F,h;return(F=E())==null?void 0:(h=F.primaryText)==null?void 0:h.content},
"aria-label":function(){return z().accessibilityText}},_.B(_.g,{cond:function(){var F;
return(F=E())==null?void 0:F.primaryText},
then:function(F){return _.B(_.xs,{text:F,noEndpoints:!0,noStyleRuns:!0})}}))),_.B(_.g,{cond:function(){var F;
return(F=E())==null?void 0:F.secondaryText},
then:function(F){return _.B("div",{class:_.B8("shortsLockupViewModelHostOutsideMetadataSubhead","shortsLockupViewModelHostMetadataSubhead")},_.B(_.xs,{text:F,noStyleRuns:!0}))}})),_.B(_.g,{cond:O,
then:function(){return _.B(NUI,{data:z,inlineMetadata:!1})}}))},"lb"),EYj=_.ec(function(a){var z=a.data;
var I=a.scrimStyle;a=a.className;var J={};return _.B("div",{class:_.B8((J.shortsLockupViewModelHostMetadataSubhead=function(){return(I==null?void 0:I())!==4},J.shortsLockupViewModelHostMetadataSubheadNew=_.K("enable_shorts_lockup_new_scrim"),J.shortsLockupViewModelHostMetadataSubheadTextShadow=function(){return(I==null?void 0:I())===4},J),a),
"aria-hidden":"true"},_.B(_.xs,{text:function(){var r;return(r=z().overlayMetadata)==null?void 0:r.secondaryText},
noStyleRuns:!0}))},"mb"),NUI=_.ec(function(a){var z=a.data;
var I=a.inlineMetadata;a={};a=_.B8((a.shortsLockupViewModelHostInlineMetadataMenu=function(){return I()},a.shortsLockupViewModelHostOutsideMetadataMenu=function(){return!I()},a.shortsLockupViewModelHostShowOverPlayer=function(){return!0},a),"image-overlay-text");
return _.B("div",{class:a},_.B(_.f_,{data:function(){return{style:I()?"overlay":"mono",accessibilityLabel:z().menuOnTapA11yLabel,type:"text",state:"active",size:"M",iconPosition:"icon-only",onTap:function(J){J.preventDefault();J.stopPropagation();var r=_.R0({elementsCommand:z().menuOnTap,forceNewState:!0});if(r==null?0:r.onclick)r.onclick(J)}}},
iconName:"MORE_VERT"}))},"nb");var BUf=_.ec(function(a){var z=a.data;var I=a.inlineMetadata;var J=a.aspectRatio;var r=a.scrimStyle;var P=a.className;var N=a.useDefaultStyle;a=_.Bg(function(){var u=z().entityId;return u?u.replace("shorts-shelf-item-","").replace("subscriptions-",""):""},void 0,"W3Tlke");
return _.B("ytm-shorts-lockup-view-model-v2",{class:_.B8("shortsLockupViewModelHost",P)},_.B(_.Eu,{contentId:a,aspectRatio:function(){return(J==null?void 0:J())===1?1:(J==null?void 0:J())===2?2:4}},function(){return _.B(uri,{data:z,
inlineMetadata:I,aspectRatio:J,scrimStyle:r,className:P,useDefaultStyle:N})}))},"ob");_.Jf(BUf,"ytm-shorts-lockup-view-model-v2",{props:{data:_.I5,inlineMetadata:_.I5,aspectRatio:_.I5,scrimStyle:_.I5,className:_.I5,useDefaultStyle:_.I5}});var gYe=16/9*210,o1=function(){var a=_.G.apply(this,arguments)||this;a.isExpandableContent=!1;a.hideShelfHeader=!1;a.engagementPanel=!1;a.buttonClasses=["arrow"];a.isSearch=!1;a.disableScrollEventListener=!1;a.containsLockup=!1;a.overrideArrowPositionForProductCard=!1;a.overrideArrowPositionForShoppingItemCard=!1;a.overrideArrowPositionForReelItems=!1;a.overrideArrowPositionForGridMovie=!1;a.overrideArrowPositionToCenter=!1;a.isSearchPostShelf=!1;a.overrideArrowPositionForMixedShelf=!1;a.overrideArrowPositionForMixedShelfShortsOnly=
!1;a.hasBigThumbsReelItems=!1;a.shouldUseMixedListHeight=!1;a.shouldUseShortsListHeight=!1;a.gridVideoWidth=0;a.isSearchVodShelf=!1;a.disableWheelScroll=!1;a.sizing="COMPACT";a.shortsLockupAspectRatio=0;return a};
_.b(o1,_.G);_.Z=o1.prototype;
_.Z.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]]"}}}}};
_.Z.dataChanged=function(){this.ytdHorizontalListBehavior.reset();this.data&&this.data.items&&(this.ytdHorizontalListBehavior.useFloorScrolling=this.computeContainsPost(this.data),this.maybeUpdateSearchReelItemDimensions(),_.K("web_horizontal_list_lockup_arrow_killswitch")||this.maybeUpdateLockupAspectRatio())};
_.Z.computeInitialCountNumber=function(a){if(!a)return 6;var z=a.items.some(function(P){return!!P.topicRecommendationsChipRenderer}),I=a.items.some(function(P){return!!P.displayAdRenderer}),J=this.computeShouldListItemsHaveEqualHeight(a),r=a.items.some(function(P){return!!P.gridPlaylistRenderer});
a=a.items.some(function(P){return!!P.shoppingItemCardViewModel});
return z?9:I?8:r||J?10:a?7:6};
_.Z.computeContainsPost=function(a){return!!a&&!!a.items&&a.items.some(function(z){return!!z.postRenderer})};
_.Z.computeContainsLockup=function(){if(_.K("web_horizontal_list_lockup_arrow_killswitch"))return!1;var a,z;return(a=this.data)==null?void 0:(z=a.items)==null?void 0:z.some(function(I){return!!I.lockupViewModel})};
_.Z.maybeUpdateLockupAspectRatio=function(){var a,z;if(this.computeContainsLockup()&&((a=this.data)==null?0:(z=a.items)==null?0:z.length)){var I;a=yU3((I=this.data.items[0].lockupViewModel)==null?void 0:I.contentType,this.data.force16By9ThumbnailAspectRatio);I=pz0(a);I=this.computeLockupWidth()/I;_.uK(this.hostElement,{"--yt-horizontal-list-content-height":I+"px"})}};
_.Z.computeOverrideArrowPositionForProductCard=function(a){if(this.isExpandableContent)return!1;var z;return!!(a==null?0:(z=a.items)==null?0:z.some(function(I){return!!I.verticalProductCardRenderer}))};
_.Z.computeOverrideArrowPositionForShoppingItemCard=function(a){var z;return!!(a==null?0:(z=a.items)==null?0:z.some(function(I){return!!I.shoppingItemCardViewModel}))};
_.Z.computeOverrideArrowPositionForReelItemRenderer=function(a){return this.containsReelItemRenderer(a)};
_.Z.computeHasBigThumbsReelItems=function(a,z){return a&&this.containsReelItemRenderer(z)};
_.Z.computeShouldListItemsHaveEqualHeight=function(a){return"LIST_ITEM_SIZE_CONSTRAINT_EQUAL_HEIGHT"===(a==null?void 0:a.itemSizeConstraint)};
_.Z.computeShouldListItemsHaveShortsHeight=function(a){return this.computeShouldListItemsHaveEqualHeight(a)&&!this.containsGridVideoRenderer(a)};
_.Z.computeLockupWidth=function(){return this.isSearchVodShelf?360:210};
_.Z.computeGridVideoWidth=function(){return this.shouldUseMixedListHeight?354:0};
_.Z.containsReelItemRenderer=function(a){var z;return!!(a==null?0:(z=a.items)==null?0:z.some(function(I){return!(!I.reelItemRenderer&&!I.shortsLockupViewModel)}))};
_.Z.containsGridVideoRenderer=function(a){var z;return!!(a==null?0:(z=a.items)==null?0:z.some(function(I){return!!I.gridVideoRenderer||!!I.lockupViewModel}))};
_.Z.computeContainsGridMovieRenderer=function(a){var z;return!!(a==null?0:(z=a.items)==null?0:z.some(function(I){return!!I.gridMovieRenderer}))};
_.Z.computeOverrideArrowPositionToCenter=function(a){return this.computeIsSearchPostShelf(a)};
_.Z.computeIsSearchPostShelf=function(a){var z;return!!(a==null?0:(z=a.items)==null?0:z.some(function(I){var J,r;return((r=(J=I.postRenderer)==null?void 0:J.surface)!=null?r:"BACKSTAGE_SURFACE_TYPE_UNKNOWN")==="BACKSTAGE_SURFACE_TYPE_SEARCH"}))};
_.Z.computeContainsBackgroundPromoRendererWithEmbeddedContainerStyle=function(a){var z;return!!(a==null?0:(z=a.items)==null?0:z.some(function(I){var J,r,P;return((P=(J=I.backgroundPromoRenderer)==null?void 0:(r=J.style)==null?void 0:r.value)!=null?P:"BACKGROUND_PROMO_STYLE_TYPE_UNKNOWN")==="BACKGROUND_PROMO_STYLE_TYPE_EMBEDDED_CONTAINER"}))};
_.Z.computeIsSearchVodShelf=function(a,z){return a&&this.containsGridVideoRenderer(z)};
_.Z.computeDisableWheelScroll=function(a,z){return this.computeIsSearchVodShelf(a,z)};
_.Z.computeSizing=function(){return this.isSearch?"STANDARD":"COMPACT"};
_.Z.computeShortsLockupAspectRatio=function(){return 1};
_.Z.maybeUpdateSearchReelItemDimensions=function(){this.isSearch&&this.hasBigThumbsReelItems&&_.uK(this.hostElement,{"--ytd-reel-item-thumbnail-height":gYe+"px"})};
o1.prototype.dataChanged=o1.prototype.dataChanged;_.L([_.Q(_.k.YtRendererBehavior),_.p("design:type",Object)],o1.prototype,"ytRendererBehavior",void 0);_.L([_.Q(_.u4.YtRendererstamperBehavior),_.p("design:type",Object)],o1.prototype,"ytRendererstamperBehavior",void 0);_.L([_.Q(_.E3.YtdHorizontalListBehavior),_.p("design:type",Object)],o1.prototype,"ytdHorizontalListBehavior",void 0);_.L([_.x(),_.p("design:type",Object)],o1.prototype,"data",void 0);
_.L([_.x(),_.p("design:type",Object)],o1.prototype,"isExpandableContent",void 0);_.L([_.x({reflectToAttribute:!0}),_.p("design:type",Object)],o1.prototype,"hideShelfHeader",void 0);_.L([_.x({reflectToAttribute:!0}),_.p("design:type",Object)],o1.prototype,"engagementPanel",void 0);_.L([_.x(),_.p("design:type",Array)],o1.prototype,"buttonClasses",void 0);_.L([_.x(),_.p("design:type",Object)],o1.prototype,"isSearch",void 0);
_.L([_.x(),_.p("design:type",Object)],o1.prototype,"disableScrollEventListener",void 0);_.L([_.x({computed:"computeInitialCountNumber(data)"}),_.p("design:type",Number)],o1.prototype,"initialCount",void 0);_.L([_.x({computed:"computeContainsPost(data)"}),_.p("design:type",Boolean)],o1.prototype,"supportComponentResize",void 0);_.L([_.x({computed:"computeContainsPost(data)"}),_.p("design:type",Boolean)],o1.prototype,"containsPost",void 0);
_.L([_.x({computed:"computeContainsLockup(data)",reflectToAttribute:!0}),_.p("design:type",Object)],o1.prototype,"containsLockup",void 0);_.L([_.x({computed:"computeContainsBackgroundPromoRendererWithEmbeddedContainerStyle(data)",reflectToAttribute:!0}),_.p("design:type",Boolean)],o1.prototype,"containsBackgroundPromoRendererWithEmbeddedContainerStyle",void 0);
_.L([_.x({computed:"computeOverrideArrowPositionForProductCard(data)",reflectToAttribute:!0}),_.p("design:type",Object)],o1.prototype,"overrideArrowPositionForProductCard",void 0);_.L([_.x({computed:"computeOverrideArrowPositionForShoppingItemCard(data)",reflectToAttribute:!0}),_.p("design:type",Object)],o1.prototype,"overrideArrowPositionForShoppingItemCard",void 0);
_.L([_.x({computed:"computeOverrideArrowPositionForReelItemRenderer(data)",reflectToAttribute:!0}),_.p("design:type",Object)],o1.prototype,"overrideArrowPositionForReelItems",void 0);_.L([_.x({computed:"computeContainsGridMovieRenderer(data)",reflectToAttribute:!0}),_.p("design:type",Object)],o1.prototype,"overrideArrowPositionForGridMovie",void 0);
_.L([_.x({computed:"computeOverrideArrowPositionToCenter(data)",reflectToAttribute:!0}),_.p("design:type",Object)],o1.prototype,"overrideArrowPositionToCenter",void 0);_.L([_.x({computed:"computeIsSearchPostShelf(data)",reflectToAttribute:!0}),_.p("design:type",Object)],o1.prototype,"isSearchPostShelf",void 0);_.L([_.x({computed:"computeShouldListItemsHaveEqualHeight(data)",reflectToAttribute:!0}),_.p("design:type",Object)],o1.prototype,"overrideArrowPositionForMixedShelf",void 0);
_.L([_.x({computed:"computeShouldListItemsHaveShortsHeight(data)",reflectToAttribute:!0}),_.p("design:type",Object)],o1.prototype,"overrideArrowPositionForMixedShelfShortsOnly",void 0);_.L([_.x({computed:"computeHasBigThumbsReelItems(isSearch, data)",reflectToAttribute:!0}),_.p("design:type",Object)],o1.prototype,"hasBigThumbsReelItems",void 0);
_.L([_.x({computed:"computeShouldListItemsHaveEqualHeight(data)",reflectToAttribute:!0}),_.p("design:type",Object)],o1.prototype,"shouldUseMixedListHeight",void 0);_.L([_.x({computed:"computeShouldListItemsHaveShortsHeight(data)",reflectToAttribute:!0}),_.p("design:type",Object)],o1.prototype,"shouldUseShortsListHeight",void 0);_.L([_.x({computed:"computeGridVideoWidth(data)",reflectToAttribute:!0}),_.p("design:type",Object)],o1.prototype,"gridVideoWidth",void 0);
_.L([_.x({computed:"computeIsSearchVodShelf(isSearch, data)",reflectToAttribute:!0}),_.p("design:type",Object)],o1.prototype,"isSearchVodShelf",void 0);_.L([_.x({computed:"computeDisableWheelScroll(isSearch, data)",reflectToAttribute:!0}),_.p("design:type",Object)],o1.prototype,"disableWheelScroll",void 0);_.L([_.x({computed:"computeSizing(isSearch)"}),_.p("design:type",Object)],o1.prototype,"sizing",void 0);
_.L([_.x({computed:"computeShortsLockupAspectRatio(isSearch)"}),_.p("design:type",Object)],o1.prototype,"shortsLockupAspectRatio",void 0);_.L([_.O8("data"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],o1.prototype,"dataChanged",null);
_.D(o1,"yt-horizontal-list-renderer",function(){if(A_f===void 0){var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-horizontal-list-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="left-arrow" class="style-scope yt-horizontal-list-renderer"></div>\n<div id="scroll-outer-container" class="style-scope yt-horizontal-list-renderer">\n  <div id="scroll-container" class="style-scope yt-horizontal-list-renderer">\n    <div id="items" class="style-scope yt-horizontal-list-renderer"></div>\n  </div>\n</div>\n<div id="right-arrow" class="style-scope yt-horizontal-list-renderer"></div>\n');a.content.insertBefore(_.w().content.cloneNode(!0),
a.content.firstChild);A_f=a}a=A_f;return a},{mode:1});var O8v;var fzw=[10,12,14,16,18,20,24,28,32,36],ABJ=[20,22,24,26,28,32,36,40,48,56,64,72,84,96,120],Uu=function(){var a=_.G.apply(this,arguments)||this;a.fontFamily="PROMO_FONT_FAMILY_YOUTUBE_SANS_BOLD";a.hideOverflow=!1;a.useRoboto=!1;a.fontClass="";a.overflown=!1;a.actionMap={"yt-window-resized":"resize"};return a};
_.b(Uu,_.G);_.Z=Uu.prototype;
_.Z.attached=function(){var a=this;switch(this.fontFamily){case "PROMO_FONT_FAMILY_ROBOTO_BOLD":this.useRoboto=!0;this.fontWeight=700;break;case "PROMO_FONT_FAMILY_YOUTUBE_SANS_BOLD":this.useRoboto=!1;this.fontWeight=700;break;case "PROMO_FONT_FAMILY_YOUTUBE_SANS_MEDIUM":this.useRoboto=!1;this.fontWeight=500;break;case "PROMO_FONT_FAMILY_YOUTUBE_SANS_SEMIBOLD":this.useRoboto=!1;this.fontWeight=600;break;case "PROMO_FONT_FAMILY_YOUTUBE_SANS_LIGHT":this.useRoboto=!1;this.fontWeight=400;break;default:this.useRoboto=
!1,this.fontWeight=700}this.setParentConstraints();_.Yv(this,function(){a.resize()});
if(!_.NS){var z,I,J;(z=document)==null||(I=z.fonts)==null||(J=I.ready)==null||J.then(function(){a.resize()})}};
_.Z.dataChanged=function(){this.resize()};
_.Z.guideIsExpandedChanged=function(){this.resize()};
_.Z.resize=function(){if(this.textNode.offsetWidth||this.textNode.offsetWidth){this.overflown&&(this.overflown=!1,this.textNode.classList.remove("overflown"));this.textNode.style.visibility="hidden";var a=this.getMaxNumLines(),z=this.getMinFont(),I=this.getMaxFont(),J=this.useRoboto?fzw:ABJ;for(J=J.filter(function(P){return P<=I&&P>=z});J.length>1;){var r=Math.floor(J.length/2);
this.updateFontSize(J[r]);if(this.textNode.offsetWidth<=this.getMaxWidth()&&this.textNode.offsetHeight<=this.getMaxHeight()&&this.textNode.getClientRects().length<=a)J=J.slice(r,J.length);else if(this.textNode.offsetWidth>this.getMaxWidth()||this.textNode.offsetHeight>this.getMaxHeight()||this.textNode.getClientRects().length>a)J=J.slice(0,r);else break}this.updateFontSize(J[J.length-1]);this.textNode.style.visibility="inherit";this.handleOverflow(a)}};
_.Z.handleOverflow=function(a){this.hideOverflow&&this.maxLines&&this.textNode.getClientRects().length>a&&(this.overflown=!0,this.textNode.classList.add("overflown"),this.textNode.style.setProperty("-webkit-line-clamp",a.toString()))};
_.Z.updateFontSize=function(a){this.fontClass&&this.textNode.classList.remove(this.fontClass);this.fontClass=(this.useRoboto?"roboto-":"yt-sans-")+a;this.textNode.classList.add(this.fontClass)};
_.Z.getMaxFont=function(){var a=this.useRoboto?fzw:ABJ;a=a[a.length-1];return this.maxFontSize&&this.maxFontSize<=a?this.maxFontSize:a};
_.Z.getMinFont=function(){var a=(this.useRoboto?fzw:ABJ)[0];return this.minFontSize&&this.minFontSize>=a?this.minFontSize:a};
_.Z.getMaxWidth=function(){return this.maxWidth?this.maxWidth:this.containerNode.offsetWidth};
_.Z.getMaxHeight=function(){return this.maxHeight?this.maxHeight:this.containerNode.offsetHeight};
_.Z.getMaxNumLines=function(){return this.maxLines&&this.text?this.maxLines+_.cd(this.text).split("\n").length-1:Infinity};
_.Z.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("Gh`"+this.fontWeight);this.textNode.style.fontWeight=this.fontWeight.toString()}};
Uu.prototype.guideIsExpandedChanged=Uu.prototype.guideIsExpandedChanged;Uu.prototype.dataChanged=Uu.prototype.dataChanged;_.L([_.Q(_.k.YtRendererBehavior),_.p("design:type",Object)],Uu.prototype,"ytRendererBehavior",void 0);_.L([_.Q(_.pV),_.p("design:type",Object)],Uu.prototype,"ytdReduxBehavior",void 0);_.L([_.Q(_.Hc.YtActionHandlerBehavior),_.p("design:type",Object)],Uu.prototype,"actionHandlerBehavior",void 0);_.L([_.x(),_.p("design:type",Object)],Uu.prototype,"text",void 0);
_.L([_.x(),_.p("design:type",String)],Uu.prototype,"fontFamily",void 0);_.L([_.x(),_.p("design:type",Number)],Uu.prototype,"maxWidth",void 0);_.L([_.x(),_.p("design:type",Number)],Uu.prototype,"maxHeight",void 0);_.L([_.x(),_.p("design:type",Number)],Uu.prototype,"maxFontSize",void 0);_.L([_.x(),_.p("design:type",Number)],Uu.prototype,"minFontSize",void 0);_.L([_.x(),_.p("design:type",Number)],Uu.prototype,"maxLines",void 0);_.L([_.x(),_.p("design:type",Object)],Uu.prototype,"hideOverflow",void 0);
_.L([_.x({selector:_.U_G}),_.p("design:type",Boolean)],Uu.prototype,"guideIsExpanded",void 0);_.L([_.A3("#container"),_.p("design:type",HTMLElement)],Uu.prototype,"containerNode",void 0);_.L([_.A3("#text"),_.p("design:type",HTMLElement)],Uu.prototype,"textNode",void 0);_.L([_.Fe("text"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],Uu.prototype,"dataChanged",null);
_.L([_.Fe("guideIsExpanded"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],Uu.prototype,"guideIsExpandedChanged",null);_.L([_.U({disableElementRegistration:!0,is:"yt-dynamic-sizing-formatted-string"})],Uu);
_.D(Uu,"yt-dynamic-sizing-formatted-string",function(){if(O8v!==void 0)return O8v;var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-dynamic-sizing-formatted-string--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="container" class="dynamic-text-container style-scope yt-dynamic-sizing-formatted-string">\n  <yt-formatted-string id="text" disable-attributed-string="" text="[[text]]" class="style-scope yt-dynamic-sizing-formatted-string"></yt-formatted-string>\n</div>\n');a.content.insertBefore(_.w().content.cloneNode(!0),
a.content.firstChild);return O8v=a},{mode:1});var s$G;_.nYw=function(a){_.aE.call(this,a)};
_.b(_.nYw,_.aE);var K0f=function(a){_.aE.call(this,a)};
_.b(K0f,_.nYw);var DX=function(){return _.G.apply(this,arguments)||this};
_.b(DX,_.G);DX.prototype.onTapSuspendedChannel=function(){var a;if((a=this.data)!=null&&a.serviceEndpoint){var z,I;(a=(I=_.H((z=this.data)==null?void 0:z.serviceEndpoint,_.pv))==null?void 0:I.url)?_.wY(a,void 0,void 0,window.top):(z=new K0f("Did not handle suspended account tap. No appealUrl."),_.Gx(z))}else z=new K0f("Did not handle suspended account tap. No serviceEndpoint."),_.Gx(z)};
DX.prototype.onTap=function(){var a=this,z=_.Kw(),I,J=(I=_.nw(z,{veType:7116}))!=null?I:void 0;_.pS(z,{visualElement:J});_.lk();this.saveRoleText();var r;if((r=this.data)==null?0:r.youtubeSuspended)this.onTapSuspendedChannel();else{var P=!1,N,u;(z=(u=_.H((N=this.data)==null?void 0:N.serviceEndpoint,_.IOO))==null?void 0:u.supportedTokens)&&z.forEach(function(E){if(E.accountSigninToken)if(P=!0,a.onAccountItemTap)a.onAccountItemTap(E.accountSigninToken.signinUrl);else _.wY(E.accountSigninToken.signinUrl,
void 0,void 0,window.top)});
if(!P){if(N=this.get("serviceEndpoint",this.data))P=!0,this.ytComponentBehavior.resolveCommand(N);P||_.$0(new K0f("Did not handle account switch tap. No token."))}}};
DX.prototype.saveRoleText=function(){if(this.data){var a=this.data,z=a.channelDelegationRole;if(z){var I,J=(I=_.H(a==null?void 0:a.serviceEndpoint,_.IOO))==null?void 0:I.supportedTokens;if(!J){var r,P,N,u;J=(r=_.H(a==null?void 0:a.serviceEndpoint,_.G7))==null?void 0:(P=r.popup)==null?void 0:(N=P.confirmDialogRenderer)==null?void 0:(u=N.confirmButton)==null?void 0:u.buttonRenderer;var E;J=(E=_.H(J==null?void 0:J.command,_.E_))==null?void 0:E.commands;if(!J)return;var O;J=(O=_.H(J[1],_.IOO))==null?
void 0:O.supportedTokens}if(J){E=void 0;O=_.C(J);for(J=O.next();!J.done;J=O.next())if(J=J.value,J.datasyncIdToken){E=J.datasyncIdToken.datasyncIdToken;break}if(E){var f;a:{if(_.COx()&&(O=_.AW0(E+"::pom"))){O=new XS(O);break a}O=void 0}(f=O)==null||f.set("role_text",z);if((FVM?FVM:window.location).href.indexOf("studio")!==-1&&(f=NDd())){O=f.src?(new URL(f.src)).origin:"*";var A;(A=f.contentWindow)==null||A.postMessage({action:"save_pom_role",datasyncId:E,roleText:z},O)}}}}}};
_.eH.Object.defineProperties(DX.prototype,{enableRingForActiveAccount:{configurable:!0,enumerable:!0,get:function(){var a;return!((a=this.data)==null||!a.isSelected)}},
thumbnailSize:{configurable:!0,enumerable:!0,get:function(){var a,z,I=(a=this.data)==null?void 0:(z=a.accountPhoto)==null?void 0:z.thumbnails;return I&&I.length>0&&(I[0].height===36||I[0].height===48)?I[0].height:40}}});
DX.prototype.onTap=DX.prototype.onTap;_.L([_.Q(_.Ms.YtComponentBehavior),_.p("design:type",Object)],DX.prototype,"ytComponentBehavior",void 0);_.L([_.Q(_.k.YtRendererBehavior),_.p("design:type",Object)],DX.prototype,"ytRendererBehavior",void 0);_.L([_.x(),_.p("design:type",Object)],DX.prototype,"data",void 0);_.L([_.x({reflectToAttribute:!1}),_.p("design:type",Function)],DX.prototype,"onAccountItemTap",void 0);
_.L([_.x({reflectToAttribute:!0}),_.S("data"),_.p("design:type",Boolean),_.p("design:paramtypes",[])],DX.prototype,"enableRingForActiveAccount",null);_.L([_.x({reflectToAttribute:!0}),_.S("data"),_.p("design:type",Number),_.p("design:paramtypes",[])],DX.prototype,"thumbnailSize",null);_.L([_.gz("tap"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],DX.prototype,"onTap",null);_.L([_.U({is:"ytd-account-item-renderer",disableElementRegistration:!0})],DX);
_.D(DX,"ytd-account-item-renderer",function(){if(s$G!==void 0)return s$G;var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-account-item-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<tp-yt-paper-icon-item class="style-scope ytd-account-item-renderer">\n  <yt-img-shadow slot="item-icon" height="[[thumbnailSize]]" item-icon="" thumbnail="[[data.accountPhoto]]" width="[[thumbnailSize]]" class="style-scope ytd-account-item-renderer">\n  </yt-img-shadow>\n  <tp-yt-paper-item-body two-line="" class="style-scope ytd-account-item-renderer">\n    <yt-formatted-string id="channel-title" text="[[data.accountName]]" class="style-scope ytd-account-item-renderer">\n    </yt-formatted-string>\n    <yt-formatted-string respect-lang-dir="" secondary="" text="[[data.channelHandle]]" class="style-scope ytd-account-item-renderer">\n    </yt-formatted-string>\n    <yt-formatted-string secondary="" text="[[data.accountByline]]" class="style-scope ytd-account-item-renderer">\n    </yt-formatted-string>\n  </tp-yt-paper-item-body>\n  <yt-icon id="selected" hidden="[[!data.isSelected]]" icon="yt-icons:check" class="style-scope ytd-account-item-renderer">\n  </yt-icon>\n  <yt-icon id="studio-redirect" aria-label$="[[getSimpleString(data.studioRedirectVisualHint)]]" hidden="[[!data.isRedirectToStudio]]" icon="yt-icons:open_in_new" class="style-scope ytd-account-item-renderer">\n  </yt-icon>\n  <tp-yt-paper-tooltip for="studio-redirect" hidden="[[!data.isRedirectToStudio]]" position="left" class="style-scope ytd-account-item-renderer">\n    [[getSimpleString(data.studioRedirectVisualHint)]]\n  </tp-yt-paper-tooltip>\n</tp-yt-paper-icon-item>\n');
a.content.insertBefore(_.w().content.cloneNode(!0),a.content.firstChild);return s$G=a},{mode:1});var F0v;var R1=function(){return _.G.apply(this,arguments)||this};
_.b(R1,_.G);R1.prototype.onClickEditIcon=function(){this.data&&this.data.onTapCommand&&_.ab().resolve(_.j6).resolveCommand(this.data.onTapCommand,{form:{element:this.hostElement}})};
_.L([_.Q(_.k.YtRendererBehavior),_.p("design:type",Object)],R1.prototype,"ytRendererBehavior",void 0);_.L([_.x(),_.p("design:type",Object)],R1.prototype,"data",void 0);_.L([_.U({is:"ytd-identity-chip-renderer",disableElementRegistration:!0})],R1);
_.D(R1,"ytd-identity-chip-renderer",function(){if(F0v!==void 0)return F0v;var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-identity-chip-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-identity-chip-renderer">\n  <h3 id="header-text" class="style-scope ytd-identity-chip-renderer">[[data.headerText]]</h3>\n</div>\n<div id="content-row" class="style-scope ytd-identity-chip-renderer">\n  <div id="info-div" class="style-scope ytd-identity-chip-renderer">\n    <img id="avatar-image" alt="" src$="[[data.avatarUrl]]" class="style-scope ytd-identity-chip-renderer">\n    <div id="name-handle-div" class="style-scope ytd-identity-chip-renderer">\n      <p id="name" class="style-scope ytd-identity-chip-renderer">[[data.name]]</p>\n      <p id="handle" hidden="[[!data.handle]]" dir="auto" class="style-scope ytd-identity-chip-renderer"><span class="style-scope ytd-identity-chip-renderer">@</span>[[data.handle]]</p>\n    </div>\n  </div>\n  <div id="edit-icon" class="style-scope ytd-identity-chip-renderer">\n    <yt-icon-button id="edit-icon-button" aria-label$="[[data.onTapLabel]]" on-click="onClickEditIcon" class="style-scope ytd-identity-chip-renderer">\n      <yt-icon id="edit-icon" icon="yt-icons:edit" class="style-scope ytd-identity-chip-renderer"></yt-icon>\n    </yt-icon-button>\n  </div>\n</div>\n');a.content.insertBefore(_.w().content.cloneNode(!0),
a.content.firstChild);return F0v=a},{mode:1});var H8f;var b8J;var hME;var VhI;var L0=function(){var a=_.G.apply(this,arguments)||this;a.richItemMinWidth=_.Ib("wn_grid_min_item_width",310);a.isShorts=!1;a.isWatchNext=!1;a.isExploreHub=!1;return a};
_.b(L0,_.G);_.eH.Object.defineProperties(L0.prototype,{shimmerAnimation:{configurable:!0,enumerable:!0,get:function(){return this.isExploreHub}},
cardItems:{configurable:!0,enumerable:!0,get:function(){var a=[],z=this.isShorts?this.slimItemsPerRow:this.itemsPerRow;this.isWatchNext&&_.uK(this.hostElement,{"--ytd-ghost-grid-items-per-row":""+this.itemsPerRow,"--ytd-ghost-grid-min-width":this.richItemMinWidth+"px"});var I;if(((I=this.data)==null?0:I.rows)&&z)for(z*=this.data.rows,I=0;I<z;I++)a.push({});return a}}});
_.L([_.Q(_.pV),_.p("design:type",Object)],L0.prototype,"ytdReduxBehavior",void 0);_.L([_.Q(_.k.YtRendererBehavior),_.p("design:type",Object)],L0.prototype,"ytRendererBehavior",void 0);_.L([_.x(),_.p("design:type",Object)],L0.prototype,"data",void 0);_.L([_.x({reflectToAttribute:!0,selector:_.X4,value:3}),_.p("design:type",Number)],L0.prototype,"itemsPerRow",void 0);_.L([_.x({selector:_.o33,value:6}),_.p("design:type",Number)],L0.prototype,"slimItemsPerRow",void 0);
_.L([_.x({reflectToAttribute:!0}),_.p("design:type",Number)],L0.prototype,"richItemMinWidth",void 0);_.L([_.x({reflectToAttribute:!0,selector:_.$p}),_.p("design:type",Boolean)],L0.prototype,"miniMode",void 0);_.L([_.x({reflectToAttribute:!0}),_.p("design:type",Object)],L0.prototype,"isShorts",void 0);_.L([_.x({reflectToAttribute:!0}),_.p("design:type",Object)],L0.prototype,"isWatchNext",void 0);_.L([_.x({reflectToAttribute:!0}),_.p("design:type",Object)],L0.prototype,"isExploreHub",void 0);
_.L([_.S("isExploreHub"),_.x({reflectToAttribute:!0}),_.p("design:type",Object),_.p("design:paramtypes",[])],L0.prototype,"shimmerAnimation",null);_.L([_.S("data.rows","isShorts","slimItemsPerRow","itemsPerRow"),_.p("design:type",Array),_.p("design:paramtypes",[])],L0.prototype,"cardItems",null);_.L([_.U({is:"ytd-ghost-grid-renderer",disableElementRegistration:!0})],L0);
_.Q$G=_.Cw()(L0,"ytd-ghost-grid-renderer",function(){if(VhI===void 0){var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-ghost-grid-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="ghost-grid style-scope ytd-ghost-grid-renderer">\n  <template is="dom-repeat" items="[[cardItems]]" class="style-scope ytd-ghost-grid-renderer">\n    <div class="ghost-card style-scope ytd-ghost-grid-renderer">\n      <div class="rich-thumbnail skeleton-bg-color style-scope ytd-ghost-grid-renderer"></div>\n      <div class="details style-scope ytd-ghost-grid-renderer">\n        <div class="channel-avatar skeleton-bg-color style-scope ytd-ghost-grid-renderer"></div>\n        <div class="details-text-shell style-scope ytd-ghost-grid-renderer">\n          <div class="rich-video-title text-shell skeleton-bg-color style-scope ytd-ghost-grid-renderer"></div>\n          <div class="video-meta rich-video-meta text-shell skeleton-bg-color style-scope ytd-ghost-grid-renderer"></div>\n        </div>\n      </div>\n    </div>\n  </template>\n</div>\n');a.content.insertBefore(_.w().content.cloneNode(!0),
a.content.firstChild);VhI=a}a=VhI;return a},{allowedProps:["data",
"isShorts","isWatchNext","isExploreHub","richItemMinWidth"],mode:1});_.Jf(_.ec(function(a){var z=_.q3(a,{numberOfComments:3}).numberOfComments,I=_.q3(a,{isInitialLoad:!1}).isInitialLoad,J=_.q3(a,{engagementPanel:!1}).engagementPanel,r=function(){return Math.min(Number(z==null?void 0:z())||20,20)};
return _.B("yt-ghost-comments",{class:"ytGhostCommentsHost"},_.B(_.g,{cond:function(){return!(J==null?0:J())&&(I==null?void 0:I())},
then:function(){return _.B("div",{class:"ytGhostCommentsComments"},_.B("div",{class:"ytGhostCommentsGhostCommentsHeader"},_.B("div",{class:_.B8("ytGhostCommentsGhostCommentCount","ytGhostCommentsGhostFill")}),_.B("div",{class:_.B8("ytGhostCommentsGhostSort","ytGhostCommentsGhostFill")})),_.B("div",{class:"ytGhostCommentsGhostCard"},_.B("div",{class:"ytGhostCommentsAvatar"},_.B("div",{class:"ytGhostCommentsCircle"})),_.B("div",{class:"ytGhostCommentsComments"},_.B("div",{class:"ytGhostCommentsMeta"},
_.B("div",{class:_.B8("ytGhostCommentsGhostInputPlaceholder","ytGhostCommentsGhostFill")})),_.B("div",{class:_.B8("ytGhostCommentsGhostInputUnderline","ytGhostCommentsGhostFill")}))))}}),_.B("div",{class:"ytGhostCommentsComments"},_.B(_.se,{each:function(){return Array((r==null?void 0:r())||3)}},function(){return _.B("div",{class:"ytGhostCommentsGhostCard"},_.B("div",{class:"ytGhostCommentsAvatar"},_.B("div",{class:"ytGhostCommentsCircle"})),_.B("div",{class:"ytGhostCommentsHost"},_.B("div",{class:"ytGhostCommentsMeta"},
_.B("div",{class:_.B8("ytGhostCommentsGhostText","ytGhostCommentsGhostFill")})),_.B("div",{class:_.B8("ytGhostCommentsGhostText","ytGhostCommentsGhostFill")}),_.B("div",{class:_.B8("ytGhostCommentsGhostText","ytGhostCommentsGhostFill")}),_.B("div",{class:"ytGhostCommentsGhostLikeDislike"},_.B("div",{class:_.B8("ytGhostCommentsGhostText","ytGhostCommentsGhostFill")}),_.B("div",{class:_.B8("ytGhostCommentsGhostText","ytGhostCommentsGhostFill")}))))})))},"pb"),"yt-ghost-comments",{props:{numberOfComments:_.zl,
isInitialLoad:_.zl,engagementPanel:_.zl}});_.$q("multiPageMenuSectionItems","continuationItemRenderer","ytd-continuation-item-renderer");var lb=function(){var a=_.G.apply(this,arguments)||this;a.isOverridable=!1;a.spinnerActive=!1;a.showButton=!1;a.isCommentsSection=!1;a.engagementPanel=!0;a.isShortsGrid=!1;a.isShortsPage=!1;a.isWatchPage=!1;a.ghostCardExperimentEnabled=_.K("show_ghost_comments_shorts_watch")||_.K("show_ghost_comments_desktop_watch");a.originalShowButton=!1;a.endOfList=!1;return a};
_.b(lb,_.G);_.Z=lb.prototype;_.Z.resetIntersectionObserver=function(){var a;(a=this.observer)==null||a.disconnect();this.observer=void 0};
_.Z.triggerContinuation=function(){if(!this.showButton&&!this.endOfList){this.spinnerActive=!0;var a,z;((a=this.data)==null?void 0:a.trigger)==="CONTINUATION_TRIGGER_ON_ITEM_SHOWN"&&((z=this.data)==null?0:z.continuationEndpoint)&&this.ytComponentBehavior.resolveCommand(this.data.continuationEndpoint)}};
_.Z.initializeIntersectionObserver=function(){var a=this;this.resetIntersectionObserver();this.continuationTriggerOffset&&(this.observer=new IntersectionObserver(function(z){z=_.C(z);for(var I=z.next();!I.done;I=z.next())I.value.isIntersecting&&(a.triggerContinuation(),a.resetIntersectionObserver())},{rootMargin:"0px 0px "+this.continuationTriggerOffset+"px",
threshold:0}),this.observer.observe(this.hostElement))};
_.Z.configureRendererStamper=function(){return{"data.button":{id:"button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{overrides:"[[buttonOverrides]]"}}}},isShortsCommentsSection:{id:"ghost-comment-section",mapping:{ghostCommentsSectionRenderer:{component:"yt-ghost-comments"}}},"data.ghostCards":{id:"ghost-cards",mapping:{ghostGridRenderer:{component:"ytd-ghost-grid-renderer",properties:{isShorts:"[[isShortsGrid]]"}}}}}};
_.Z.observeData=function(){this.endOfList=this.spinnerActive=!1;this.ytRendererBehavior.invalidate(!1);var a;((a=this.data)==null?0:a.continuationEndpoint)&&(a=_.H(this.data.continuationEndpoint,_.R5))&&this.ytdReduxBehavior.dispatch(_.rg({type:"SET_CONTINUATION_COMMAND",payload:{continuationCommand:a}}))};
_.Z.onShow=function(){this.numberOfGhostCommentsChanged();this.continuationTriggerOffset||this.triggerContinuation()};
_.Z.onYtServiceRequestSentForButtonRenderer=function(){this.buttonRenderer&&(this.spinnerActive=!0,this.originalShowButton=this.showButton,this.showButton=!1)};
_.Z.onServiceRequestCompleted=function(a,z){if(!_.K("kevlar_hide_spinner_on_empty_continuation_killswitch")){var I;(I=z.actions)!=null&&I.length||(this.spinnerActive=!1,this.endOfList=!0)}};
_.Z.onYtServiceRequestCompletedForButtonRenderer=function(){this.buttonRenderer&&(this.spinnerActive=!1,this.showButton=this.originalShowButton)};
_.Z.showButtonChanged=function(){this.showButton&&(this.spinnerActive=!1);this.ytRendererBehavior.invalidate(!1)};
_.Z.continuationTriggerOffsetChanged=function(){this.initializeIntersectionObserver()};
_.Z.numberOfGhostCommentsChanged=function(){if(this.ghostCardExperimentEnabled){var a=3;if(this.engagementPanel){var z,I,J;a=Math.floor(((((z=this.hostElement)==null?void 0:(I=z.parentElement)==null?void 0:(J=I.parentElement)==null?void 0:J.scrollHeight)||108)-108)/108);a=this.isInitialLoad?Math.max(a,3):3}z=[].concat(_.ih(this.hostElement.querySelectorAll("yt-ghost-comments")));z=_.C(z);for(I=z.next();!I.done;I=z.next())I=I.value,I.numberOfComments=a,I.isInitialLoad=this.isInitialLoad,I.engagementPanel=
this.engagementPanel}};
_.Z.detached=function(){this.resetIntersectionObserver()};
_.eH.Object.defineProperties(lb.prototype,{isShortsCommentsSection:{configurable:!0,enumerable:!0,get:function(){return this.isCommentsSection&&!this.showButton&&(_.K("show_ghost_comments_shorts_watch")&&this.engagementPanel||_.K("show_ghost_comments_desktop_watch"))?{ghostCommentsSectionRenderer:!0}:!1}}});
lb.prototype.numberOfGhostCommentsChanged=lb.prototype.numberOfGhostCommentsChanged;lb.prototype.continuationTriggerOffsetChanged=lb.prototype.continuationTriggerOffsetChanged;lb.prototype.showButtonChanged=lb.prototype.showButtonChanged;lb.prototype.onYtServiceRequestCompletedForButtonRenderer=lb.prototype.onYtServiceRequestCompletedForButtonRenderer;lb.prototype.onServiceRequestCompleted=lb.prototype.onServiceRequestCompleted;lb.prototype.onYtServiceRequestSentForButtonRenderer=lb.prototype.onYtServiceRequestSentForButtonRenderer;
lb.prototype.observeData=lb.prototype.observeData;_.L([_.Q(_.u4.YtRendererstamperBehavior),_.p("design:type",Object)],lb.prototype,"ytRendererstamperBehavior",void 0);_.L([_.Q(_.k.YtRendererBehavior),_.p("design:type",Object)],lb.prototype,"ytRendererBehavior",void 0);_.L([_.Q(_.qs.YtVisibilityBehavior),_.p("design:type",Object)],lb.prototype,"ytVisibilityBehavior",void 0);_.L([_.Q(_.Ms.YtComponentBehavior),_.p("design:type",Object)],lb.prototype,"ytComponentBehavior",void 0);
_.L([_.Q(_.pV),_.p("design:type",Object)],lb.prototype,"ytdReduxBehavior",void 0);_.L([_.x(),_.p("design:type",Object)],lb.prototype,"data",void 0);_.L([_.x(),_.p("design:type",Object)],lb.prototype,"isOverridable",void 0);_.L([_.x(),_.p("design:type",Object)],lb.prototype,"spinnerActive",void 0);_.L([_.x(),_.p("design:type",Object)],lb.prototype,"showButton",void 0);_.L([_.x({reflectToAttribute:!0}),_.p("design:type",Object)],lb.prototype,"isCommentsSection",void 0);
_.L([_.x({reflectToAttribute:!0}),_.p("design:type",Object)],lb.prototype,"engagementPanel",void 0);_.L([_.x(),_.p("design:type",Object)],lb.prototype,"isShortsGrid",void 0);_.L([_.x({reflectToAttribute:!0,selector:_.LhG}),_.p("design:type",Object)],lb.prototype,"isShortsPage",void 0);_.L([_.x({reflectToAttribute:!0,selector:_.R33}),_.p("design:type",Object)],lb.prototype,"isWatchPage",void 0);_.L([_.x({reflectToAttribute:!0}),_.p("design:type",Object)],lb.prototype,"ghostCardExperimentEnabled",void 0);
_.L([_.x(),_.p("design:type",Number)],lb.prototype,"continuationTriggerOffset",void 0);_.L([_.x(),_.p("design:type",Object)],lb.prototype,"endOfList",void 0);_.L([_.x({reflectToAttribute:!0}),_.p("design:type",Boolean)],lb.prototype,"isInitialLoad",void 0);_.L([_.A3("ytd-button-renderer"),_.p("design:type",_.Ze)],lb.prototype,"buttonRenderer",void 0);_.L([_.x(),_.p("design:type",Object)],lb.prototype,"buttonOverrides",void 0);
_.L([_.x(),_.S("engagementPanel","isCommentsSection","showButton","isShortsPage","isWatchPage"),_.p("design:type",Object),_.p("design:paramtypes",[])],lb.prototype,"isShortsCommentsSection",null);_.L([_.Fe("data"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],lb.prototype,"observeData",null);
_.L([_.gz("yt-service-request-sent-button-renderer"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],lb.prototype,"onYtServiceRequestSentForButtonRenderer",null);_.L([_.gz("yt-service-request-completed"),_.p("design:type",Function),_.p("design:paramtypes",[CustomEvent,_.Yq]),_.p("design:returntype")],lb.prototype,"onServiceRequestCompleted",null);
_.L([_.gz("yt-service-request-completed-button-renderer"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],lb.prototype,"onYtServiceRequestCompletedForButtonRenderer",null);_.L([_.Fe("showButton"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],lb.prototype,"showButtonChanged",null);
_.L([_.Fe("continuationTriggerOffset"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],lb.prototype,"continuationTriggerOffsetChanged",null);_.L([_.O8("isInitialLoad","engagementPanel"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],lb.prototype,"numberOfGhostCommentsChanged",null);_.L([_.U({is:"ytd-continuation-item-renderer",disableElementRegistration:!0})],lb);
_.D(lb,"ytd-continuation-item-renderer",function(){if(hME!==void 0)return hME;var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-continuation-item-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="ghost-cards" class="style-scope ytd-continuation-item-renderer"></div>\n<div id="ghost-comment-section" class="style-scope ytd-continuation-item-renderer"></div>\n<tp-yt-paper-spinner id="spinner" active="[[spinnerActive]]" hidden="[[showButton]]" class="style-scope ytd-continuation-item-renderer">\n</tp-yt-paper-spinner>\n<div id="button" hidden="[[!showButton]]" class="style-scope ytd-continuation-item-renderer"></div>\n');
a.content.insertBefore(_.w().content.cloneNode(!0),a.content.firstChild);return hME=a},{mode:1});var SEO;var p0=function(){var a=_.G.apply(this,arguments)||this;a.downloadProgress=0;a.transferState="TRANSFER_STATE_UNKNOWN";a.downloadState="DOWNLOAD_STATE_UNKNOWN";a.offlinePolicyAction="OFFLINE_VIDEO_POLICY_ACTION_UNKNOWN";a.offlineVideoPolicyExpirationTimestamp=0;a.downloadedVideoPlaybackPosition=0;return a};
_.b(p0,_.G);p0.prototype.dataChanged=function(){var a;this.videoData=_.H((a=this.data)==null?void 0:a.renderer,dyE);this.transferStateChanged()};
p0.prototype.downloadProgressChanged=function(){if(this.entityInfo){var a=Object.assign({},this.videoData),z=Usd(this.entityInfo,this.transferState,this.downloadProgress,this.downloadState,this.relativeDateReference),I=z.publishedTimeText,J=z.badges;a.shortViewCountText=z.shortViewCountText;a.publishedTimeText=I;a.badges=J;this.set("videoData",a)}};
p0.prototype.transferStateChanged=function(){if(this.entityInfo){var a=this.transferState==="TRANSFER_STATE_PAUSED_BY_USER",z=_.Hd(this.transferState)||this.transferState==="TRANSFER_STATE_FAILED"||this.transferState==="TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH"||!F4(this.entityInfo.policyEntity),I=Object.assign({},this.videoData),J=Usd(this.entityInfo,this.transferState,this.downloadProgress,this.downloadState,this.relativeDateReference),r=J.publishedTimeText,P=J.badges;I.shortViewCountText=
J.shortViewCountText;I.publishedTimeText=r;I.badges=P;I.isDisabled=z;I.isWatched=this.downloadedVideoPlaybackPosition>0;I.navigationEndpoint=z?void 0:lf7(this.videoData.videoId,this.downloadedVideoPlaybackPosition,this.entityInfo.videoEntity.lengthSeconds);var N;a&&((N=this.videoData)==null?0:N.videoId)&&!_.K("dl_resume_click_killswitch")&&(I.isDisabled=!1,I.navigationEndpoint={offlineVideoEndpoint:{videoId:this.videoData.videoId,action:"ACTION_RESUME"}});I.thumbnailOverlays=WPE(this.entityInfo,this.transferState,
this.downloadState,this.downloadedVideoPlaybackPosition);this.set("videoData",I)}};
p0.prototype.transferStateChanged=p0.prototype.transferStateChanged;p0.prototype.downloadProgressChanged=p0.prototype.downloadProgressChanged;p0.prototype.dataChanged=p0.prototype.dataChanged;_.L([_.Q(_.k.YtRendererBehavior),_.p("design:type",Object)],p0.prototype,"ytRendererBehavior",void 0);_.L([_.Q(_.pV),_.p("design:type",Object)],p0.prototype,"ytdReduxBehavior",void 0);_.L([_.x(),_.p("design:type",Object)],p0.prototype,"data",void 0);
_.L([_.x(),_.p("design:type",Object)],p0.prototype,"videoData",void 0);_.L([_.x({selector:DY,selectorArgs:["videoData.videoId"]}),_.p("design:type",Object)],p0.prototype,"downloadProgress",void 0);_.L([_.x(),_.p("design:type",Number)],p0.prototype,"relativeDateReference",void 0);_.L([_.x({selector:_.oU,selectorArgs:["videoData.videoId"]}),_.p("design:type",Object)],p0.prototype,"transferState",void 0);
_.L([_.x({selector:Cr3,selectorArgs:["videoData.videoId"]}),_.p("design:type",Object)],p0.prototype,"downloadState",void 0);_.L([_.x({selector:yqi,selectorArgs:["videoData.videoId"]}),_.p("design:type",Object)],p0.prototype,"offlinePolicyAction",void 0);_.L([_.x({selector:kG0,selectorArgs:["videoData.videoId"]}),_.p("design:type",Object)],p0.prototype,"offlineVideoPolicyExpirationTimestamp",void 0);
_.L([_.x({selector:RU,selectorArgs:["videoData.videoId"]}),_.p("design:type",Object)],p0.prototype,"downloadedVideoPlaybackPosition",void 0);_.L([_.x({selector:cqG,selectorArgs:["videoData.videoId"]}),_.p("design:type",Object)],p0.prototype,"entityInfo",void 0);_.L([_.x({reflectToAttribute:!0,value:!1}),_.p("design:type",Boolean)],p0.prototype,"isDownloading",void 0);_.L([_.Fe("data"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],p0.prototype,"dataChanged",null);
_.L([_.Fe("downloadProgress"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],p0.prototype,"downloadProgressChanged",null);_.L([_.Fe("transferState","offlinePolicyAction","offlineVideoPolicyExpirationTimestamp","downloadState","downloadedVideoPlaybackPosition"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],p0.prototype,"transferStateChanged",null);
_.L([_.U({is:"ytd-downloaded-video-grid-video-renderer",disableElementRegistration:!0})],p0);
_.D(p0,"ytd-downloaded-video-grid-video-renderer",function(){if(SEO!==void 0)return SEO;var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-downloaded-video-grid-video-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<ytd-grid-video-renderer id="video" data="[[videoData]]" is-downloading="[[isDownloading]]" class="style-scope ytd-downloaded-video-grid-video-renderer"></ytd-grid-video-renderer>');a.content.insertBefore(_.w().content.cloneNode(!0),
a.content.firstChild);return SEO=a},{mode:_.Np("kevlar_poly_si_batch_j025")?1:2});var i8I;var wW=function(){};
wW.prototype.resolve=function(a,z){var I=this;return _.t(function(J){return J.yield(I.resolveCommand(a,z),0)})};var xFw,mB;xFw=$d7(function(a){return a.targetId},{shouldPersist:!1});
mB=xFw.updateData;_.vYi=xFw.useUpdatableData;var GwI,$FG;GwI=$d7(function(a){return a.targetId});
$FG=GwI.updateData;_.XBO=GwI.useUpdatableData;var TUI=xXE.bind(null,mB),dFi=xXE.bind(null,$FG);(function(a,z,I){var J=_.H(I==null?void 0:I.updatedRenderer,_.uuJ);return J?a({targetId:z},function(){return J}):!1}).bind(null,mB);var yy=function(){};
_.b(yy,wW);yy.prototype.resolveCommand=function(a){var z;return _.t(function(I){z=_.H(a,_.$tI);if(!z)return I.return();TUI(z.targetId,z);_.nu(I)})};var kt=function(){var a=_.nM.apply(this,arguments)||this;a.continuationActionMap={"yt-append-continuation-items-action":"handleAppendContinuationItemsAction","yt-reload-continuation-items-command":"handleReloadContinuationItemsCommand","yt-show-reload-ui-command":"handleShowReloadUiCommand"};return a};
_.b(kt,_.nM);_.Z=kt.prototype;_.Z.configureContinuationPathMap=function(){return{}};
_.Z.beforeRegister=function(){this.continuationPathMap=this.configureContinuationPathMap()};
_.Z.attached=function(){this.actionHandlerBehavior.registerActionMap(this.continuationActionMap)};
_.Z.detached=function(){this.actionHandlerBehavior.unregisterActionMap(this.continuationActionMap)};
_.Z.observeData=function(){this.data&&(this.continuationIsReloading=!1)};
_.Z.handleAppendContinuationItemsAction=function(a){var z=_.H(a,_.TZi);if(this.data&&this.data.targetId&&z&&this.continuationPathMap&&z.targetId===this.data.targetId){var I=XnE(a),J=I&&this.continuationPathMap[I];if(J&&I)if(a=this.get(J,this.data)){a:{for(I=0;I<a.length;I++){var r=a[I],P=void 0,N=!!_.H((P=_.H(r,Kmj))==null?void 0:P.content,_.G7I);if(_.H(r,_.av)||N)break a}I=a.length}J="data."+J;z.continuationItems?I===a.length-1?(this.pop(J),this.push.apply(this,[J].concat(_.ih(z.continuationItems)))):
I===a.length?this.push.apply(this,[J].concat(_.ih(z.continuationItems))):this.splice.apply(this,[J,I,1].concat(_.ih(z.continuationItems))):this.splice(J,I,1);(_.K("web_enable_voting_animation")||_.K("enable_music_web_cairo_voting_animation"))&&_.PA(this.hostElement,"yt-append-continuation-items-action-finished");_.PA(this.hostElement,"yt-next-continuation-data-updated",null,{bubbles:!1})}else _.Xd(new _.Fn("append continuation items does not exist",I));else _.Xd(new _.Fn("append continuation path does not exist",
I))}};
_.Z.handleReloadContinuationItemsCommand=function(a){var z=_.H(a,_.$tI);if(this.data&&z){if(_.K("web_client_explore_hub")||_.K("web_explore_hub_on_hover")||_.K("web_client_explore_hub_on_hover"))try{_.ab().resolve(yy).resolveCommand(a)}catch(P){}if(this.data.targetId&&this.continuationPathMap&&z.targetId===this.data.targetId&&(!_.K("web_enable_channel_pivot_panel")||this.data.targetId!=="browse-feedFEsfv_channel_pivot"||z.slot!=="RELOAD_CONTINUATION_SLOT_HEADER")){var I,J=(I=z.slot)==null?void 0:
I.replace("RELOAD_CONTINUATION_SLOT_","");I=(a=XnE(a)+"-"+(J==null?void 0:J.toLowerCase()))&&this.continuationPathMap[a];if(!I||!a||!J)_.Xd(new _.Fn("reload continuation path does not exist",a));else if(!this.reloadContinuationItemsCommandMatcher||this.reloadContinuationItemsCommandMatcher(z)){if(z.replaceWithFirstItem){var r;this.set("data."+I,((r=z.continuationItems)==null?0:r.length)?z.continuationItems[0]:{})}else this.set("data."+I,z.continuationItems?z.continuationItems:[]);this.continuationIsReloading=
!1;_.PA(this.hostElement,"yt-reload-continuation-finish",null,{bubbles:!1})}}}};
_.Z.handleShowReloadUiCommand=function(a){a=_.H(a,cHi);var z;((z=this.data)==null?0:z.targetId)&&(a==null?0:a.targetId)&&a.targetId===this.data.targetId&&(this.continuationIsReloading=!0)};
kt.prototype.observeData=kt.prototype.observeData;_.L([_.Q(_.Hc.YtActionHandlerBehavior),_.p("design:type",Object)],kt.prototype,"actionHandlerBehavior",void 0);_.L([_.Q(_.Ms.YtComponentBehavior),_.p("design:type",Object)],kt.prototype,"componentBehavior",void 0);_.L([_.x(),_.p("design:type",Object)],kt.prototype,"data",void 0);_.L([_.x({value:!1,reflectToAttribute:!0}),_.p("design:type",Boolean)],kt.prototype,"continuationIsReloading",void 0);
_.L([_.O8("data"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],kt.prototype,"observeData",null);_.L([_.KM()],kt);_.M8=[_.Ms.YtComponentBehavior,_.Hc.YtActionHandlerBehavior,kt.prototype];_.cX={};_.cX.YtNextContinuationBehavior=[_.Zs.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",_.BK(this,this.onYtNavigateStart_)),this.listeningForNavigate_=!0)},
stopListeningForNavigate_:function(){this.canUseContextualNetworkManager_()||(document.removeEventListener("yt-navigate-start",_.BK(this,this.onYtNavigateStart_)),this.listeningForNavigate_=!1)},
onLoadNextContinuation_:function(a,z){a.stopPropagation();this.nextContinuation.requestPath?this.makeNextContinuationRequest_(this.nextContinuation.requestPath,z,{}):(a={locationRetrieved:function(I){this.makeNextContinuationRequest_(I,z,{})}.bind(this)},_.PA(this.hostElement,"yt-retrieve-location",a))},
makeNextContinuationRequest_:function(a,z,I){_.Tb("nct");this.pendingContinuationRequest_&&this.pendingContinuationRequest_.cancel();a=z(a);var J;this.canUseContextualNetworkManager_()&&(J=this.getNetworkManager());J||(J=_.ab().resolve(_.Tr));z=_.w4.instance;if(_.Xw("INNERTUBE_CLIENT_NAME")==="WEB_REMIX"&&z){J=_.ex([a.startsWith("/")?a.substr(1):a]);var r,P;I=_.pJ(z,{},J,I==null?void 0:(r=I.context)==null?void 0:(P=r.clickTracking)==null?void 0:P.clickTrackingParams).then(function(N){return{response:N}})}else I=
this.nextContinuation.usePost?J.postData(a,I):J.fetchData(a);
I.then(this.updateNextContinuationData_.bind(this,a));this.pendingContinuationRequest_=I;this.startListeningForNavigate_()},
updateNextContinuationData_:function(a,z){var I=this;_.Tb("ncl");this.pendingContinuationRequest_=void 0;if(z){var J={};this.nextContinuation&&(J=this.nextContinuation);if(z.response&&z.response.continuationContents&&z.response.continuationContents[J.continuationType]){a=z.response.continuationContents[J.continuationType];var r=J.header||"data.header",P=a[J.responseHeaderKey||"header"];P&&this.set(r,P);r=J.contentsArray||"data.contents";P=this.getContents_(a,J.responseContentsKey||"contents")||[];
this.pathExists_(r)?(P.unshift(r),this.push.apply(this,P)):this.set(r,P);P&&(vLd(_.Kw(),z.response,this.hostElement,function(N){_.ZF(I.hostElement,"yt-store-grafted-ve-action",[N])}),_.PA(this.hostElement,"yt-next-continuation-data-updated",{continuationData:z,
page:this,contentsArray:r}));this.set(J.continuationsArray||"data.continuations",a[J.responseContinuationsKey||"continuations"]||[])}else z.reload?_.Xd(new _.Fn("Reloading from continuation is unsupported")):z.responseContext&&z.responseContext.errors||(delete z.xsrf_token,delete z.timing,delete z.endpoint,delete z.csn,z.responseContext&&delete z.responseContext.serviceTrackingParams,r={request:_.ms(a,{ctoken:"x",continuation:"x",itct:"x"}),responseKeys:Object.keys(z).sort()},z.response&&(r.responseContentKeys=
Object.keys(z.response).sort()),this.nextContinuation&&this.nextContinuation.continuationType&&(r.continuationType=this.nextContinuation.continuationType.substr(0,256)),z=new _.Fn("Malformed continuation",r),a.indexOf("/comment_service_ajax")==0?_.Xd(z):_.Gx(z)),this.set(J.continuationsArray||"data.continuations",[])}else _.$0(new _.Fn("Missing continuation response",a))},
getContents_:function(a,z){z=z.split(".");return _.x8.getValueByKeys(a,z)},
pathExists_:function(a){var z=this;a=a.toString().split(".");for(var I=0;I<a.length;I++)if(z=z[a[I]],z===void 0)return!1;return!0},
onYtNavigateStart_:function(){this.pendingContinuationRequest_&&(this.pendingContinuationRequest_.cancel(),this.pendingContinuationRequest_=void 0);this.stopListeningForNavigate_()}}];var W0j;var oYv;var Yt=function(){var a=_.G.apply(this,arguments)||this;a.triggered_=!1;return a};
_.b(Yt,_.G);_.Z=Yt.prototype;_.Z.attached=function(){this.maybeTriggerAutoload()};
_.Z.detached=function(){this.hasBeenTriggered_=!1};
_.Z.onPrescanVisible=function(){this.onShow()};
_.Z.onShow=function(){this.showButton||this.trigger()};
_.Z.trigger=function(){this.data&&this.data.continuation&&(this.spinnerActive_=!0,this.showButton=!1,this.triggered_||(_.PA(this.hostElement,"yt-load-next-continuation",this.getContinuationUrl.bind(this)),this.hasBeenTriggered_=this.triggered_=!0))};
_.Z.triggerIfNotPreviouslyTriggered=function(){this.hasBeenTriggered_||this.trigger()};
_.Z.maybeTriggerAutoload=function(){this.data&&this.isAttached&&this.data.autoloadEnabled&&this.data.autoloadImmediately&&this.trigger()};
_.Z.computeLabel_=function(a,z){return a===void 0?null:a.label||!z?a.label:this.showMoreText_};
_.Z.observeData_=function(){this.spinnerActive_=this.triggered_=!1;this.ytRendererBehavior.invalidate(!1);this.maybeTriggerAutoload()};
_.Z.getContinuationUrl=function(a){var z={ctoken:this.data.continuation,continuation:this.data.continuation,type:"next"};this.data.clickTrackingParams&&(z.itct=this.data.clickTrackingParams);return _.yO(a,z)};
_.Z.showButtonChanged_=function(){this.ytRendererBehavior.invalidate(!1)};
Yt.prototype.showButtonChanged_=Yt.prototype.showButtonChanged_;Yt.prototype.observeData_=Yt.prototype.observeData_;_.L([_.Q(_.qs.YtVisibilityBehavior),_.p("design:type",Object)],Yt.prototype,"ytVisibilityBehavior",void 0);_.L([_.Q(_.k.YtRendererBehavior),_.p("design:type",Object)],Yt.prototype,"ytRendererBehavior",void 0);_.L([_.x(),_.p("design:type",Object)],Yt.prototype,"data",void 0);_.L([_.x({value:!1}),_.p("design:type",Boolean)],Yt.prototype,"showButton",void 0);
_.L([_.x({value:!1}),_.p("design:type",Boolean)],Yt.prototype,"showIcon",void 0);_.L([_.x({computed:"computeLabel_(data, showButton)"}),_.p("design:type",Object)],Yt.prototype,"label",void 0);_.L([_.x({value:_.Mo(_.AR("SHOW_MORE",void 0,"Show More"))}),_.p("design:type",Object)],Yt.prototype,"showMoreText_",void 0);_.L([_.x({value:!1}),_.p("design:type",Boolean)],Yt.prototype,"spinnerActive_",void 0);_.L([_.x({value:!1}),_.p("design:type",Boolean)],Yt.prototype,"hasBeenTriggered_",void 0);
_.L([_.x({value:void 0}),_.p("design:type",String)],Yt.prototype,"observeVisibleOption",void 0);_.L([_.x({value:void 0}),_.p("design:type",String)],Yt.prototype,"observeHiddenOption",void 0);_.L([_.x({value:"observe_once"}),_.p("design:type",Object)],Yt.prototype,"observePrescanOption",void 0);_.L([_.O8("data"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],Yt.prototype,"observeData_",null);
_.L([_.O8("showButton"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],Yt.prototype,"showButtonChanged_",null);_.L([_.dz({is:"yt-next-continuation",disableElementRegistration:!0})],Yt);
_.D(Yt,"yt-next-continuation",function(){if(oYv===void 0){var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-next-continuation--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.continuations.yt_next_continuation.yt.next.continuation.css.js--\x3e\n<template is="dom-if" if="[[!showButton]]" class="style-scope yt-next-continuation">\n  <tp-yt-paper-spinner id="spinner" active="[[spinnerActive_]]" class="style-scope yt-next-continuation"></tp-yt-paper-spinner>\n</template>\n<template is="dom-if" if="[[showButton]]" class="style-scope yt-next-continuation">\n  <tp-yt-paper-button on-tap="trigger" class="style-scope yt-next-continuation">\n    <yt-icon hidden$="[[!showIcon]]" icon="subdirectory_arrow_right" class="style-scope yt-next-continuation"></yt-icon>\n    <yt-formatted-string text="[[label]]" class="style-scope yt-next-continuation"></yt-formatted-string>\n  </tp-yt-paper-button>\n</template>\n');a.content.insertBefore(_.w().content.cloneNode(!0),
a.content.firstChild);var z=a.content,I=z.insertBefore;W0j===void 0&&(W0j=document.createElement("template"));var J=W0j;I.call(z,J.content.cloneNode(!0),a.content.firstChild);oYv=a}a=oYv;return a},{mode:2});var UF1;var DFw;var q8=function(){return _.G.apply(this,arguments)||this};
_.b(q8,_.G);q8.prototype.attached=function(){this.hostElement.parentNode.style.justifyContent="center"};
_.L([_.Q(_.k.YtRendererBehavior),_.p("design:type",Object)],q8.prototype,"ytRendererBehavior",void 0);_.L([_.x(),_.p("design:type",Object)],q8.prototype,"data",void 0);_.L([_.dz({is:"yt-music-pass-small-feature-info-renderer",disableElementRegistration:!0})],q8);
_.D(q8,"yt-music-pass-small-feature-info-renderer",function(){if(DFw===void 0){var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-music-pass-small-feature-info-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.sections.yt_music_pass_small_feature_info_renderer.yt.music.pass.small.feature.info.renderer.css.js--\x3e<yt-img-shadow thumbnail="[[data.icon]]" width="84" class="style-scope yt-music-pass-small-feature-info-renderer"></yt-img-shadow>\n<yt-formatted-string id="header" respect-html-dir="" text="[[data.header]]" class="style-scope yt-music-pass-small-feature-info-renderer"></yt-formatted-string>\n<yt-formatted-string id="description" respect-html-dir="" text="[[data.description]]" class="style-scope yt-music-pass-small-feature-info-renderer"></yt-formatted-string>\n');a.content.insertBefore(_.w().content.cloneNode(!0),
a.content.firstChild);var z=a.content,I=z.insertBefore;UF1===void 0&&(UF1=document.createElement("template"));var J=UF1;I.call(z,J.content.cloneNode(!0),a.content.firstChild);DFw=a}a=DFw;return a},{mode:2});_.$q("itemSectionRenderer","gridRenderer","ytd-grid-renderer");var ej=function(){var a=_.G.apply(this,arguments)||this;a.isCollapsible=!1;a.nextContinuation={continuationType:"gridContinuation",contentsArray:"data.items",responseContentsKey:"items"};return a};
_.b(ej,_.G);_.Z=ej.prototype;_.Z.computeIsCollapsible=function(a){return!!(((a==null?0:a.showMoreText)||(a==null?0:a.visibleRowCount))&&(a==null?0:a.isCollapsible))};
_.Z.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"}}}};
_.Z.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"items"}};
_.Z.persistentGuideChanged=function(){this.maybeUpdateInitialItemsDisplayed()};
_.Z.onIronResize=function(){var a=this;_.pM(this,"updateGridInitItems",function(){a.maybeUpdateInitialItemsDisplayed()})};
_.Z.maybeUpdateInitialItemsDisplayed=function(){if(this.collapsed){var a=this.getVisibleWidth();a!==0&&(a=Math.floor(a/214)*(this.data.visibleRowCount||2),a!==this.initialCount&&(this.initialCount=a,this.data&&this.data.items&&this.ytLazyListBehavior.setInitialItemsOnDataChanged(this.data.items)))}};
_.Z.getVisibleWidth=function(){return this.hostElement.offsetWidth};
_.Z.computeExpandVisible=function(a,z,I,J){return a&&z&&I&&!!J&&!!J.showMoreText};
_.Z.computeShowMoreButton=function(a){return{text:a,style:"STYLE_TEXT",size:"SIZE_DEFAULT"}};
_.Z.onExpandTap=function(){this.collapsed=!1;this.ytLazyListBehavior.canShowMore&&this.ytLazyListBehavior.fillRemainingListItems()};
_.Z.initCollapsed=function(){var a=this;this.ytLazyListBehavior.canShowMore=!1;var z;(this.collapsed=!((z=this.data)==null||!z.isCollapsible))&&this.maybeUpdateInitialItemsDisplayed();_.Yv(this,function(){_.Ct(a.hostElement,"yt-refit-popups-action")})};
_.Z.fillRestIfNotCollapsible=function(){var a=this.ytLazyListBehavior.canShowMore;this.data&&this.isCollapsible||!a||this.ytLazyListBehavior.fillRemainingListItems()};
_.Z.computeViewAllHidden=function(a,z){return a||!z.viewAllEndpoint};
ej.prototype.fillRestIfNotCollapsible=ej.prototype.fillRestIfNotCollapsible;ej.prototype.initCollapsed=ej.prototype.initCollapsed;ej.prototype.onIronResize=ej.prototype.onIronResize;ej.prototype.persistentGuideChanged=ej.prototype.persistentGuideChanged;_.L([_.Q(_.Ts),_.p("design:type",Object)],ej.prototype,"ironResizableBehavior",void 0);_.L([_.Q(_.k.YtRendererBehavior),_.p("design:type",Object)],ej.prototype,"ytRendererBehavior",void 0);
_.L([_.Q(_.u4.YtRendererstamperBehavior),_.p("design:type",Object)],ej.prototype,"ytRendererstamperBehavior",void 0);_.L([_.Q(_.uQ.YtLazyListBehavior),_.p("design:type",Object)],ej.prototype,"ytLazyListBehavior",void 0);_.L([_.Q(_.cX.YtNextContinuationBehavior),_.p("design:type",Object)],ej.prototype,"ytNextContinuationBehavior",void 0);_.L([_.Q(_.cZ.YtdGuideStateAwareBehavior),_.p("design:type",Object)],ej.prototype,"ytdGuideStateAwareBehavior",void 0);
_.L([_.Q(_.M8),_.p("design:type",Object)],ej.prototype,"ytContinuationHandlerBehavior",void 0);_.L([_.x(),_.p("design:type",Object)],ej.prototype,"data",void 0);_.L([_.x(),_.p("design:type",Boolean)],ej.prototype,"collapsed",void 0);_.L([_.x(),_.p("design:type",Number)],ej.prototype,"initialCount",void 0);_.L([_.x({computed:"computeShowMoreButton(data.showMoreText)"}),_.p("design:type",Object)],ej.prototype,"showMoreButton",void 0);
_.L([_.x({computed:"computeIsCollapsible(data)"}),_.p("design:type",Object)],ej.prototype,"isCollapsible",void 0);_.L([_.A3("#items"),_.p("design:type",HTMLElement)],ej.prototype,"items",void 0);_.L([_.Fe("guidePersistentAndVisible"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],ej.prototype,"persistentGuideChanged",null);_.L([_.gz("iron-resize"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],ej.prototype,"onIronResize",null);
_.L([_.Fe("data"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],ej.prototype,"initCollapsed",null);_.L([_.Fe("canShowMore"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],ej.prototype,"fillRestIfNotCollapsible",null);_.L([_.U({is:"ytd-grid-renderer",disableElementRegistration:!0})],ej);
_.D(ej,"ytd-grid-renderer",function(){if(i8I!==void 0)return i8I;var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-grid-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<template is="dom-if" if="[[data.title]]" class="style-scope ytd-grid-renderer">\n  <h3 class="channel-link style-scope ytd-grid-renderer">\n    <yt-formatted-string text="[[data.title]]" class="style-scope ytd-grid-renderer"></yt-formatted-string>\n  </h3>\n</template>\n<div id="items" class="style-scope ytd-grid-renderer"></div>\n<ytd-button-renderer id="show-more-button" align-by-text="" data="[[showMoreButton]]" hidden="[[!computeExpandVisible(isCollapsible, collapsed, canShowMore, data)]]" on-tap="onExpandTap" class="style-scope ytd-grid-renderer">\n</ytd-button-renderer>\n<yt-formatted-string id="view-all" hidden="[[computeViewAllHidden(canShowMore, data)]]" text="[[data.viewAllText]]" class="style-scope ytd-grid-renderer">\n</yt-formatted-string>\n<div id="continuations" class="style-scope ytd-grid-renderer"></div>\n');a.content.insertBefore(_.w().content.cloneNode(!0),
a.content.firstChild);return i8I=a},{mode:_.Np("kevlar_poly_si_batch_j025")?1:2});var aM=function(){return _.G.apply(this,arguments)||this};
_.b(aM,_.G);
aM.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"}}}};
_.L([_.Q(_.u4.YtRendererstamperBehavior),_.p("design:type",Object)],aM.prototype,"ytRendererstamperBehavior",void 0);_.L([_.Q(_.k.YtRendererBehavior),_.p("design:type",Object)],aM.prototype,"ytRendererBehavior",void 0);_.L([_.x(),_.p("design:type",Object)],aM.prototype,"data",void 0);_.L([_.U({is:"ytd-carousel-ad-renderer",disableElementRegistration:!0})],aM);
_.D(aM,"ytd-carousel-ad-renderer",function(){if(b8J!==void 0)return b8J;var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-carousel-ad-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="title" class="style-scope ytd-carousel-ad-renderer">\n  <div id="badge" class="style-scope ytd-carousel-ad-renderer"></div>\n  <h3 id="title-text" class="style-scope ytd-carousel-ad-renderer">\n    <yt-formatted-string text="[[data.adMetadata.displayAdRenderer.titleText]]" class="style-scope ytd-carousel-ad-renderer">\n    </yt-formatted-string>\n  </h3>\n  <div id="menu" class="style-scope ytd-carousel-ad-renderer"></div>\n</div>\n<div id="content" class="style-scope ytd-carousel-ad-renderer"></div>\n<div id="footer" class="style-scope ytd-carousel-ad-renderer">\n  <yt-formatted-string id="footer-string" text="[[data.adMetadata.displayAdRenderer.footerString]]" title="[[getSimpleString(data.adMetadata.displayAdRenderer.footerString)]]" class="style-scope ytd-carousel-ad-renderer">\n  </yt-formatted-string>\n</div>\n');a.content.insertBefore(_.w().content.cloneNode(!0),
a.content.firstChild);return b8J=a},{mode:1});var RMJ;var j0=function(){return _.G.apply(this,arguments)||this};
_.b(j0,_.G);_.Z=j0.prototype;_.Z.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"}}}};
_.Z.dataChanged=function(){this.data&&this.data.content&&this.data.clickLocationTargets&&this.data.content.navigationEndpoint&&(this.sendImpression(),this.ytSparklesClickLocationBehavior.configureClickTargets("root-container",this.data.clickLocationTargets,j0.JSC$15266_CLICK_LOCATION_ID_MAP))};
_.Z.onSitelinkTap=function(a){a.stopPropagation();var z,I,J=a==null?void 0:(z=a.model)==null?void 0:(I=z.item)==null?void 0:I.onTap;J&&this.ytSparklesClickLocationBehavior.handleClick(J,a,!1)};
_.Z.onTap=function(a){var z=this.data&&this.data.content&&this.data.content.navigationEndpoint;z&&this.ytSparklesClickLocationBehavior.handleClick(z,a,!1)};
_.Z.sendImpression=function(){if(this.data&&this.data.content)for(var a=_.C(this.data.content.impressionEndpoints||[]),z=a.next();!z.done;z=a.next()){z=_.C(z.value.loggingUrls||[]);for(var I=z.next();!I.done;I=z.next())I=I.value,I.baseUrl&&pI(I.baseUrl,I.attributionSrcMode)}};
j0.prototype.onTap=j0.prototype.onTap;j0.prototype.dataChanged=j0.prototype.dataChanged;j0.JSC$15266_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"]]);
_.L([_.Q(_.u4.YtRendererstamperBehavior),_.p("design:type",Object)],j0.prototype,"ytRendererstamperBehavior",void 0);_.L([_.Q(_.k.YtRendererBehavior),_.p("design:type",Object)],j0.prototype,"ytRendererBehavior",void 0);_.L([_.Q(_.tM.YtSparklesClickLocationBehavior),_.p("design:type",Object)],j0.prototype,"ytSparklesClickLocationBehavior",void 0);_.L([_.x(),_.p("design:type",Object)],j0.prototype,"data",void 0);
_.L([_.Fe("data"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],j0.prototype,"dataChanged",null);_.L([_.gz("tap"),_.p("design:type",Function),_.p("design:paramtypes",[CustomEvent]),_.p("design:returntype")],j0.prototype,"onTap",null);_.L([_.U({is:"ytd-promoted-sparkles-text-search-renderer",disableElementRegistration:!0})],j0);
_.D(j0,"ytd-promoted-sparkles-text-search-renderer",function(){if(RMJ!==void 0)return RMJ;var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-promoted-sparkles-text-search-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="root-container" class="style-scope ytd-promoted-sparkles-text-search-renderer">\n  <div id="main-container" class="style-scope ytd-promoted-sparkles-text-search-renderer">\n    <h3 id="title" aria-label$="[[data.content.title.accessibility.accessibilityData.label]]" title$="[[getSimpleString(data.content.title)]]" class="style-scope ytd-promoted-sparkles-text-search-renderer">\n        <yt-img-shadow id="favicon" hidden="[[!data.content.favicon]]" thumbnail="[[data.content.favicon]]" class="style-scope ytd-promoted-sparkles-text-search-renderer">\n        </yt-img-shadow>\n        [[getSimpleString(data.content.title)]]\n    </h3>\n    <yt-formatted-string id="description" no-endpoints="[[noEndpoints]]" text="[[data.content.descriptionText]]" class="style-scope ytd-promoted-sparkles-text-search-renderer">\n    </yt-formatted-string>\n    <div id="sitelinks-table" class="style-scope ytd-promoted-sparkles-text-search-renderer">\n      <template id="sitelinks-dom-repeat" is="dom-repeat" items="[[data.content.sitelinks]]" as="item" class="style-scope ytd-promoted-sparkles-text-search-renderer">\n        <yt-formatted-string id="sitelinks" ellipsis-truncate="" no-endpoints="[[noEndpoints]]" role="link" text="[[item.title]]" on-click="onSitelinkTap" class="style-scope ytd-promoted-sparkles-text-search-renderer">\n        </yt-formatted-string>\n      </template>\n    </div>\n    <div id="format-container" class="style-scope ytd-promoted-sparkles-text-search-renderer">\n      <div id="ad-badge" class="style-scope ytd-promoted-sparkles-text-search-renderer"></div>\n      <yt-formatted-string id="display-url" ellipsis-truncate="" no-endpoints="[[noEndpoints]]" text="[[data.content.websiteText]]" class="style-scope ytd-promoted-sparkles-text-search-renderer">\n      </yt-formatted-string>\n    </div>\n  </div>\n  <div id="right-container" class="style-scope ytd-promoted-sparkles-text-search-renderer">\n    <div id="menu" class="style-scope ytd-promoted-sparkles-text-search-renderer"></div>\n    <div id="call-to-action" class="style-scope ytd-promoted-sparkles-text-search-renderer"></div>\n  </div>\n</div>\n');
a.content.insertBefore(_.w().content.cloneNode(!0),a.content.firstChild);return RMJ=a},{mode:1});var L0o;var zv=function(){var a=_.G.apply(this,arguments)||this;a.actionMap={"yt-mute-ad-action":"handleMuteAd"};return a};
_.b(zv,_.G);_.Z=zv.prototype;
_.Z.configureRendererStamper=function(){return{"data.menu":{id:_.K("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]]"}}}}}};
_.Z.computeButtonOverride=function(){return{style:"call-to-action",type:"tonal"}};
_.Z.computeHasAdBadge=function(a){return!(a==null||!a.adBadge)};
_.Z.dataChanged=function(){this.data&&this.data.impressionCommands&&this.data.clickLocationTargets&&(this.data.adBadge||this.set("data.adBadge",zv.JSC$15275_DEFAULT_AD_BADGE_RENDERER),_.CM(this.hostElement,"sparkles-light-cta",!0),this.data.activeView&&this.ytdActiveViewBehavior.enableActiveViewMeasurement(this.data.activeView,17),this.ytSparklesClickLocationBehavior.configureClickTargets("sparkles-container",this.data.clickLocationTargets,zv.JSC$15275_CLICK_LOCATION_ID_MAP))};
_.Z.impressionLog=function(){if(!this.data||!this.data.impressionsFired){var a;(((a=this.data)==null?void 0:a.impressionCommands)||[]).forEach(function(z){z=_.C(z.loggingUrls||[]);for(var I=z.next();!I.done;I=z.next())I=I.value,I.baseUrl&&pI(I.baseUrl,I.attributionSrcMode)});
this.data.impressionsFired=!0}};
_.Z.onTap=function(a){var z,I=(z=this.data)==null?void 0:z.navigationEndpoint,J;(z=(J=this.data)==null?void 0:J.thumbnailNavigationEndpoint)&&_.ek(_.ch(a),this.hostElement,["thumbnail-container"])?this.ytSparklesClickLocationBehavior.handleClick(z,a,!1):I&&this.ytSparklesClickLocationBehavior.handleClick(I,a,!1)};
_.Z.handleMuteAd=function(){this.collapsed=!0};
_.Z.attached=function(){var a=this;_.K("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&a.ytdActiveViewBehavior.stopActiveViewMeasurement()})};
_.Z.detached=function(){_.K("stop_av_measurement_on_detach")&&this.ytdActiveViewBehavior.stopActiveViewMeasurement()};
_.eH.Object.defineProperties(zv.prototype,{hideHoverOverlay:{configurable:!0,enumerable:!0,get:function(){return!this.data||!this.data.mediaHoverOverlay}},
webSearchLayout:{configurable:!0,enumerable:!0,get:function(){var a;return((a=this.data)==null?void 0:a.promotedSparklesWebStyle)==="PROMOTED_SPARKLES_WEB_STYLE_LANDSCAPE_IMAGE_ASPECT_RATIO"}},
webSearchLayoutLandscape:{configurable:!0,enumerable:!0,get:function(){var a;return!(((a=this.data)==null?void 0:a.promotedSparklesWebStyle)!=="PROMOTED_SPARKLES_WEB_STYLE_LANDSCAPE_IMAGE_ASPECT_RATIO"||this.data.isSquareThumbnail)}},
webSearchLayoutSquare:{configurable:!0,enumerable:!0,get:function(){var a;return!(((a=this.data)==null?void 0:a.promotedSparklesWebStyle)!=="PROMOTED_SPARKLES_WEB_STYLE_LANDSCAPE_IMAGE_ASPECT_RATIO"||!this.data.isSquareThumbnail)}},
sparklesCtaNoBackground:{configurable:!0,enumerable:!0,get:function(){var a;return((a=this.data)==null?void 0:a.promotedSparklesWebStyle)==="PROMOTED_SPARKLES_WEB_STYLE_LANDSCAPE_IMAGE_ASPECT_RATIO"}},
hideActionButton:{configurable:!0,enumerable:!0,get:function(){return!(this.data&&this.data.actionButton)}},
useRoundedBadge:{configurable:!0,enumerable:!0,get:function(){return this.webSearchLayout}}});
zv.prototype.dataChanged=zv.prototype.dataChanged;
zv.JSC$15275_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"]]);
zv.JSC$15275_DEFAULT_AD_BADGE_RENDERER={metadataBadgeRenderer:{label:_.AR("AD_BADGE_TEXT",void 0,"Ad"),style:"BADGE_STYLE_TYPE_AD"}};_.L([_.Q(_.u4.YtRendererstamperBehavior),_.p("design:type",Object)],zv.prototype,"ytRendererstamperBehavior",void 0);_.L([_.Q(_.k.YtRendererBehavior),_.p("design:type",Object)],zv.prototype,"ytRendererBehavior",void 0);_.L([_.Q(lf),_.p("design:type",Object)],zv.prototype,"ytdActiveViewBehavior",void 0);
_.L([_.Q([_.Hc.YtActionHandlerBehavior]),_.p("design:type",Object)],zv.prototype,"actionHandlerBehavior",void 0);_.L([_.Q(_.tM.YtSparklesClickLocationBehavior),_.p("design:type",Object)],zv.prototype,"ytSparklesClickLocationBehavior",void 0);_.L([_.x(),_.p("design:type",Object)],zv.prototype,"data",void 0);_.L([_.x({reflectToAttribute:!0}),_.p("design:type",Boolean)],zv.prototype,"collapsed",void 0);_.L([_.x({reflectToAttribute:!0,value:function(){return _.K("enable_desktop_search_bigger_thumbs")}}),
_.p("design:type",Boolean)],zv.prototype,"useBiggerThumbs",void 0);_.L([_.x({reflectToAttribute:!0,value:function(){return _.rM("desktop_search_bigger_thumbs_style")}}),
_.p("design:type",String)],zv.prototype,"biggerThumbsStyle",void 0);_.L([_.x({reflectToAttribute:!0,value:function(){return _.K("fix_alignment_search_desktop_text_image_ads_small_screens")}}),
_.p("design:type",Boolean)],zv.prototype,"fixAlignmentSmallScreens",void 0);_.L([_.x({reflectToAttribute:!0,value:function(){return _.K("enable_desktop_search_bigger_thumbs_square")}}),
_.p("design:type",Boolean)],zv.prototype,"useBiggerThumbsSquare",void 0);_.L([_.x({reflectToAttribute:!0}),_.S("data.mediaHoverOverlay"),_.p("design:type",Boolean),_.p("design:paramtypes",[])],zv.prototype,"hideHoverOverlay",null);_.L([_.x({reflectToAttribute:!0}),_.S("data.promotedSparklesWebStyle"),_.p("design:type",Boolean),_.p("design:paramtypes",[])],zv.prototype,"webSearchLayout",null);
_.L([_.x({reflectToAttribute:!0}),_.S("data.promotedSparklesWebStyle","data.isSquareThumbnail"),_.p("design:type",Boolean),_.p("design:paramtypes",[])],zv.prototype,"webSearchLayoutLandscape",null);_.L([_.x({reflectToAttribute:!0}),_.S("data.promotedSparklesWebStyle","data.isSquareThumbnail"),_.p("design:type",Boolean),_.p("design:paramtypes",[])],zv.prototype,"webSearchLayoutSquare",null);
_.L([_.x({reflectToAttribute:!0}),_.S("data.promotedSparklesWebStyle"),_.p("design:type",Boolean),_.p("design:paramtypes",[])],zv.prototype,"sparklesCtaNoBackground",null);_.L([_.x({reflectToAttribute:!0}),_.S("data.actionButton"),_.p("design:type",Boolean),_.p("design:paramtypes",[])],zv.prototype,"hideActionButton",null);_.L([_.x({computed:"computeButtonOverride(uiUpdate)"}),_.p("design:type",Object)],zv.prototype,"buttonOverride",void 0);
_.L([_.x({reflectToAttribute:!0,computed:"computeHasAdBadge(data)"}),_.p("design:type",Boolean)],zv.prototype,"hasNewAdBadge",void 0);_.L([_.S("data.promotedSparklesWebStyle"),_.p("design:type",Boolean),_.p("design:paramtypes",[])],zv.prototype,"useRoundedBadge",null);_.L([_.Fe("data"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],zv.prototype,"dataChanged",null);_.L([_.U({is:"ytd-promoted-sparkles-web-renderer",disableElementRegistration:!0})],zv);
_.D(zv,"ytd-promoted-sparkles-web-renderer",function(){if(L0o!==void 0)return L0o;var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-promoted-sparkles-web-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="sparkles-container" on-tap="onTap" class="style-scope ytd-promoted-sparkles-web-renderer">\n  <div id="thumbnail-container" class="style-scope ytd-promoted-sparkles-web-renderer">\n    <div id="thumbnail-hover-container" class="style-scope ytd-promoted-sparkles-web-renderer">\n      <div id="thumbnail-deep-container" class="style-scope ytd-promoted-sparkles-web-renderer">\n        <yt-img-shadow id="thumbnail" object-fit="CONTAIN" thumbnail="[[data.thumbnail]]" class="style-scope ytd-promoted-sparkles-web-renderer">\n        </yt-img-shadow>\n        <div id="media-badge-search" class="style-scope ytd-promoted-sparkles-web-renderer"></div>\n      </div>\n      <div id="media-hover-overlay" class="style-scope ytd-promoted-sparkles-web-renderer"></div>\n    </div>\n  </div>\n  <div id="sparkles-body-container" class="style-scope ytd-promoted-sparkles-web-renderer">\n    <div id="sparkles-body" class="style-scope ytd-promoted-sparkles-web-renderer">\n      <h3 id="title" title$="[[getSimpleString(data.title)]]" class="style-scope ytd-promoted-sparkles-web-renderer">\n          [[getSimpleString(data.title)]]\n      </h3>\n      <div id="description" class="style-scope ytd-promoted-sparkles-web-renderer">\n        [[getSimpleString(data.description)]]\n      </div>\n      <div id="website-text-container" class="style-scope ytd-promoted-sparkles-web-renderer">\n        <span id="ad-badge-container" class="style-scope ytd-promoted-sparkles-web-renderer">\n          <ytd-badge-supported-renderer id="ad-badge" top-standalone-badge="[[data.adBadge]]" class="style-scope ytd-promoted-sparkles-web-renderer">\n          </ytd-badge-supported-renderer>\n          <div id="ad-badge-new" class="style-scope ytd-promoted-sparkles-web-renderer"></div>\n        </span>\n        <div id="website-text" class="style-scope ytd-promoted-sparkles-web-renderer">\n          [[getSimpleString(data.websiteText)]]\n        </div>\n      </div>\n      <div id="action-button" class="style-scope ytd-promoted-sparkles-web-renderer"></div>\n    </div>\n    <div id="menu" class="style-scope ytd-promoted-sparkles-web-renderer"></div>\n  </div>\n</div>\n<div id="old-menu" class="style-scope ytd-promoted-sparkles-web-renderer"></div>');
a.content.insertBefore(_.w().content.cloneNode(!0),a.content.firstChild);return L0o=a},{mode:1});var lzJ;var IM=function(){var a=_.G.apply(this,arguments)||this;a.isInlinePreviewTriggered=!1;a.enableMonoStyle=_.K("enable_default_mono_cta_migration_web_client");return a};
_.b(IM,_.G);_.Z=IM.prototype;_.Z.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]]"}}}}}};
_.Z.computeShowCta=function(a){return!(a==null||!a.ctaRenderer)};
_.Z.onCtaClick=function(){var a,z,I,J=(a=this.data)==null?void 0:(z=a.ctaRenderer)==null?void 0:(I=z.buttonRenderer)==null?void 0:I.command;J&&this.ytComponentBehavior.resolveCommand(J)};
_.Z.onWatchButtonClick=function(){var a,z,I,J=(a=this.data)==null?void 0:(z=a.watchButtonRenderer)==null?void 0:(I=z.buttonRenderer)==null?void 0:I.command;J&&this.ytComponentBehavior.resolveCommand(J)};
_.Z.onTap=function(){};
_.Z.dataChanged=function(){if(this.data){var a;_.K("enable_inline_muted_playback_on_web_search")&&((a=this.data)==null?0:a.inlinePlaybackEndpoint)&&this.updateInlinePreviewHoverListeners();this.data.adBadge||this.set("data.adBadge",IM.JSC$15279_DEFAULT_AD_BADGE_RENDERER);this.data.activeView&&this.ytdActiveViewBehavior.enableActiveViewMeasurement(this.data.activeView,17);this.ytSparklesClickLocationBehavior.configureClickTargets("main-container",IM.JSC$15279_DEFAULT_CLICK_LOCATION_BEHAVIOR,IM.JSC$15279_CLICK_LOCATION_ID_MAP);
this.thumbnail&&(a=this.thumbnail.getElementsByTagName("a"),a.length>0&&(a=a.namedItem("thumbnail"))&&a.removeAttribute("href"))}};
_.Z.impressionLog=function(){if(this.data&&this.data.impressionUrls&&!this.data.impressionsFired){for(var a=_.C(this.data.impressionUrls),z=a.next();!z.done;z=a.next())z=z.value,s0$(z,KoM(z));this.data.impressionsFired=!0}};
_.Z.maybeComputeHref=function(){return null};
_.Z.computeIsShortDR=function(a){return!(a==null||!a.watchButtonRenderer)&&!(a==null||!a.ctaRenderer)&&!!this.enableShortDR};
_.Z.computeIsNewUiOrShortDr=function(a){return!!this.enableUiUpdate||this.computeIsShortDR(a)};
_.Z.computeIsNewUiAndNotShortDr=function(a){return!!this.enableUiUpdate&&!this.computeIsShortDR(a)};
_.Z.computeHideAvatar=function(a){return!((a==null?0:a.channelThumbnail)&&this.computeIsNewUiOrShortDr(a))};
_.Z.onClick=function(a){var z,I=(z=this.data)==null?void 0:z.navigationEndpoint;if(this.enableShortDR&&I&&(_.H(I,_.MZ)||this.computeIsShortDR(this.data)))this.ytSparklesClickLocationBehavior.handleClick(I,a,!!_.H(I,_.MZ)),a.stopPropagation();else if(I&&_.H(I,_.MZ))this.ytSparklesClickLocationBehavior.handleClick(I,a,!0),a.stopPropagation();else if(I){var J,r;((J=this.data)==null?0:J.navigationEndpoint)&&((r=this.data)==null?0:r.adPlaybackContextParams)&&(z=this.data.navigationEndpoint,a=this.data.adPlaybackContextParams,
z.commandMetadata&&_.H(z.commandMetadata,_.O_)&&_.H(z.commandMetadata,_.O_).url&&(z=_.wq(_.H(z.commandMetadata,_.O_).url).adurl)&&_.K8m(z)&&_.el(_.pL(z),{encoded_ad_playback_context:a}));this.ytComponentBehavior.resolveCommand(I)}};
_.Z.computeButtonOverride=function(a){if(this.computeIsNewUiOrShortDr(a))return{style:this.enableMonoStyle?"mono":"call-to-action",type:this.enableMonoStyle?"filled":"tonal",iconPosition:"none"}};
_.Z.computeSecondaryButtonOverride=function(){return{style:this.enableMonoStyle?"mono":"call-to-action",type:this.enableMonoStyle?"tonal":"outline",iconPosition:"none"}};
_.Z.onThumbnailContainerClick=function(a){this.onClick(a)};
_.Z.computeThumbnailWidth=function(a,z){return a?z==="MASSIVE"?600:z==="BIG"?500:z==="MEDIUM"?450:420:360};
_.Z.attached=function(){var a=this,z;_.K("enable_inline_muted_playback_on_web_search")&&((z=this.data)==null?0:z.inlinePlaybackEndpoint)&&this.updateInlinePreviewHoverListeners();_.K("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&a.ytdActiveViewBehavior.stopActiveViewMeasurement()})};
_.Z.detached=function(){var a;_.K("enable_inline_muted_playback_on_web_search")&&((a=this.data)==null?0:a.inlinePlaybackEndpoint)&&this.clearInlinePreviewHoverListeners();_.K("stop_av_measurement_on_detach")&&this.ytdActiveViewBehavior.stopActiveViewMeasurement()};
_.Z.updateInlinePreviewHoverListeners=function(){this.clearInlinePreviewHoverListeners();this.JSC$15280_inlinePreviewHoverListener=LU({mediaRenderer:this,lockupElement:this.mainContainer,thumbnailElement:this.thumbnail,videoPreviewOpts:IzJ})};
_.Z.clearInlinePreviewHoverListeners=function(){var a;(a=this.JSC$15280_inlinePreviewHoverListener)==null||e8(a)};
IM.prototype.dataChanged=IM.prototype.dataChanged;IM.prototype.onTap=IM.prototype.onTap;IM.JSC$15279_DEFAULT_AD_BADGE_RENDERER={metadataBadgeRenderer:{label:_.AR("AD_BADGE_TEXT",void 0,"Ad"),style:"BADGE_STYLE_TYPE_AD"}};IM.JSC$15279_CLICK_LOCATION_ID_MAP=new Map([["PROMOTED_SPARKLES_CLICK_LOCATION_THUMBNAIL","thumbnail-container"],["PROMOTED_SPARKLES_CLICK_LOCATION_BACKGROUND","endpoint"]]);
IM.JSC$15279_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"}];_.L([_.Q(_.u4.YtRendererstamperBehavior),_.p("design:type",Object)],IM.prototype,"ytRendererstamperBehavior",void 0);
_.L([_.Q(_.k.YtRendererBehavior),_.p("design:type",Object)],IM.prototype,"ytRendererBehavior",void 0);_.L([_.Q(lf),_.p("design:type",Object)],IM.prototype,"ytdActiveViewBehavior",void 0);_.L([_.Q(_.Ms.YtComponentBehavior),_.p("design:type",Object)],IM.prototype,"ytComponentBehavior",void 0);_.L([_.Q(_.tM.YtSparklesClickLocationBehavior),_.p("design:type",Object)],IM.prototype,"ytSparklesClickLocationBehavior",void 0);
_.L([_.A3("#main-container"),_.p("design:type",HTMLElement)],IM.prototype,"mainContainer",void 0);_.L([_.x(),_.p("design:type",Object)],IM.prototype,"isInlinePreviewTriggered",void 0);_.L([_.x(),_.p("design:type",Object)],IM.prototype,"data",void 0);_.L([_.x({reflectToAttribute:!0,value:function(){return _.K("enable_desktop_search_bigger_thumbs")}}),
_.p("design:type",Boolean)],IM.prototype,"useBiggerThumbs",void 0);_.L([_.x({reflectToAttribute:!0,value:function(){return _.K("enable_video_display_compact_button_group_for_desktop_search")}}),
_.p("design:type",Boolean)],IM.prototype,"enableShortDR",void 0);_.L([_.x({reflectToAttribute:!0,value:function(){return _.K("enable_vac_ui_update_for_desktop_search")}}),
_.p("design:type",Boolean)],IM.prototype,"enableUiUpdate",void 0);_.L([_.x({reflectToAttribute:!0,value:function(){return _.rM("desktop_search_bigger_thumbs_style")}}),
_.p("design:type",String)],IM.prototype,"biggerThumbsStyle",void 0);_.L([_.x({reflectToAttribute:!0,computed:"computeShowCta(data)"}),_.p("design:type",Boolean)],IM.prototype,"showCta",void 0);_.L([_.x({reflectToAttribute:!0,computed:"computeIsShortDR(data)"}),_.p("design:type",Boolean)],IM.prototype,"isShortDr",void 0);_.L([_.x({reflectToAttribute:!0,computed:"computeIsNewUiOrShortDr(data)"}),_.p("design:type",Boolean)],IM.prototype,"isShortDrOrNewUi",void 0);
_.L([_.x({reflectToAttribute:!0,computed:"computeIsNewUiAndNotShortDr(data)"}),_.p("design:type",Boolean)],IM.prototype,"isNewUiAndNotShortDr",void 0);_.L([_.x({computed:"computeButtonOverride(data)"}),_.p("design:type",Object)],IM.prototype,"buttonOverride",void 0);_.L([_.x({computed:"computeSecondaryButtonOverride(data)"}),_.p("design:type",Object)],IM.prototype,"secondaryButtonOverride",void 0);_.L([_.x({reflectToAttribute:!0}),_.p("design:type",Object)],IM.prototype,"enableMonoStyle",void 0);
_.L([_.A3("ytd-thumbnail"),_.p("design:type",HTMLElement)],IM.prototype,"thumbnail",void 0);_.L([_.gz("tap"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],IM.prototype,"onTap",null);_.L([_.O8("data"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],IM.prototype,"dataChanged",null);_.L([_.U({is:"ytd-promoted-video-renderer",disableElementRegistration:!0})],IM);
_.D(IM,"ytd-promoted-video-renderer",function(){if(lzJ!==void 0)return lzJ;var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-promoted-video-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="main-container" class="style-scope ytd-promoted-video-renderer">\n  <ytd-thumbnail id="thumbnail-container" data="[[data]]" width="[[computeThumbnailWidth(useBiggerThumbs, biggerThumbsStyle)]]" on-click="onThumbnailContainerClick" class="style-scope ytd-promoted-video-renderer">\n  </ytd-thumbnail>\n  <div id="metadata-container" class="style-scope ytd-promoted-video-renderer">\n    <div id="text-container" class="style-scope ytd-promoted-video-renderer">\n      <a id="endpoint" class="yt-simple-endpoint style-scope ytd-promoted-video-renderer" data="[[data.navigationEndpoint]]" href$="[[maybeComputeHref(data.navigationEndpoint)]]" on-click="onClick">\n        <div id="meta" class="style-scope ytd-promoted-video-renderer">\n          <div id="title-wrapper" class="style-scope ytd-promoted-video-renderer">\n            \n            <h3 id="video-title" aria-label$="[[data.title.accessibility.accessibilityData.label]]" title$="[[getSimpleString(data.title)]]" class="style-scope ytd-promoted-video-renderer">\n              [[getSimpleString(data.title)]]\n            </h3>\n          </div>\n          \n          <span id="description-text" hidden="[[!computeIsNewUiOrShortDr(data)]]" class="style-scope ytd-promoted-video-renderer">[[getSimpleString(data.description)]]</span>\n          <div id="byline" class="style-scope ytd-promoted-video-renderer">\n            <div id="channel-thumbnail-container" title="[[getSimpleString(data.shortBylineText)]]" aria-label$="[[data.shortBylineText.accessibility.accessibilityData.label]]" hidden="[[computeHideAvatar(data)]]" class="style-scope ytd-promoted-video-renderer">\n                <yt-img-shadow id="avatar" disable-upgrade$="[[!data.channelThumbnail]]" thumbnail="[[data.channelThumbnail]]" class="style-scope ytd-promoted-video-renderer">\n                </yt-img-shadow>\n            </div>\n            <div id="ad-badge-container" hidden="[[!data.adBadge]]" class="style-scope ytd-promoted-video-renderer">\n              <ytd-badge-supported-renderer top-standalone-badge="[[data.adBadge]]" class="style-scope ytd-promoted-video-renderer">\n              </ytd-badge-supported-renderer>\n            </div>\n            <ytd-video-meta-block id="ad-badge-metablock" data="[[data]]" class="style-scope ytd-promoted-video-renderer"></ytd-video-meta-block>\n          </div>\n        </div>\n        <span id="description-text" hidden="[[computeIsNewUiOrShortDr(data)]]" class="style-scope ytd-promoted-video-renderer">[[getSimpleString(data.description)]]</span>\n        <ytd-badge-supported-renderer id="badges" badges="[[data.badges]]" hidden="[[!data.badges]]" class="style-scope ytd-promoted-video-renderer">\n        </ytd-badge-supported-renderer>\n      </a>\n      <div id="button-container" class="style-scope ytd-promoted-video-renderer">\n        <template is="dom-if" if="[[computeIsShortDR(data)]]" class="style-scope ytd-promoted-video-renderer">\n          <ytd-button-renderer id="secondary-button" data="[[data.watchButtonRenderer.buttonRenderer]]" overrides="[[computeSecondaryButtonOverride(data)]]" on-click="onWatchButtonClick" class="style-scope ytd-promoted-video-renderer">\n          </ytd-button-renderer>\n        </template>\n        <div id="call-to-action" on-click="onCtaClick" class="style-scope ytd-promoted-video-renderer"></div>\n      </div>\n    </div>\n    <div id="menu" class="style-scope ytd-promoted-video-renderer"></div>\n  </div>\n</div>\n');
a.content.insertBefore(_.w().content.cloneNode(!0),a.content.firstChild);return lzJ=a},{mode:1});var pBw;var JL=function(){var a=_.G.apply(this,arguments)||this;a.useRoundedBadge=!0;a.sitelinkIds=[];return a};
_.b(JL,_.G);_.Z=JL.prototype;
_.Z.configureRendererStamper=function(){return{"data.menu":{id:_.K("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]]"}}}}}};
_.Z.dataChanged=function(){var a;(a=this.data)!=null&&a.clickLocationTargets&&this.ytSparklesClickLocationBehavior.configureClickTargets("root-container",this.data.clickLocationTargets,JL.JSC$15285_CLICK_LOCATION_ID_MAP)};
_.Z.onTap=function(a){var z,I=(z=this.data)==null?void 0:z.navigationCommand;I&&!_.ek(_.ch(a),this.hostElement,this.sitelinkIds)&&this.ytSparklesClickLocationBehavior.handleClick(I,a,!1)};
_.Z.onSitelinkTap=function(a){var z,I,J=a==null?void 0:(z=a.model)==null?void 0:(I=z.item)==null?void 0:I.onTap;J&&this.ytSparklesClickLocationBehavior.handleClick(J,a,!1)};
_.Z.configureSitelinkClickTargets=function(){var a=this,z,I,J=(z=this.data)==null?void 0:(I=z.clickLocationTargets)==null?void 0:I.find(function(r){return r.location==="PROMOTED_SPARKLES_CLICK_LOCATION_SITELINK"});
J&&_.PK(this.hostElement).querySelectorAll(".sitelink").forEach(function(r){_.CM(r,"yt-simple-endpoint",!0);a.sitelinkIds.push(r.id);var P,N;(P=a.ytSparklesClickLocationBehavior)==null||(N=P.clickTargetMap)==null||N.set(r.id,J)})};
_.Z.sendImpression=function(){var a,z,I=((a=this.data)==null?void 0:(z=a.impressionCommand)==null?void 0:z.loggingUrls)||[];a=_.C(I);for(z=a.next();!z.done;z=a.next())z=z.value,z.baseUrl&&pI(z.baseUrl,z.attributionSrcMode)};
_.Z.impressionLog=function(){this.data&&this.data.impressionsFired||(this.sendImpression(),this.data.impressionsFired=!0)};
_.eH.Object.defineProperties(JL.prototype,{showFavicon:{configurable:!0,enumerable:!0,get:function(){return!!this.data&&!!this.data.favicon}}});
JL.prototype.onTap=JL.prototype.onTap;JL.prototype.dataChanged=JL.prototype.dataChanged;JL.JSC$15285_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"]]);
_.L([_.Q(_.u4.YtRendererstamperBehavior),_.p("design:type",Object)],JL.prototype,"ytRendererstamperBehavior",void 0);_.L([_.Q(_.k.YtRendererBehavior),_.p("design:type",Object)],JL.prototype,"ytRendererBehavior",void 0);_.L([_.Q(_.tM.YtSparklesClickLocationBehavior),_.p("design:type",Object)],JL.prototype,"ytSparklesClickLocationBehavior",void 0);_.L([_.x(),_.p("design:type",Object)],JL.prototype,"data",void 0);
_.L([_.x({reflectToAttribute:!0}),_.S("data"),_.p("design:type",Boolean),_.p("design:paramtypes",[])],JL.prototype,"showFavicon",null);_.L([_.x({reflectToAttribute:!0,value:function(){return _.K("enable_desktop_search_bigger_thumbs")}}),
_.p("design:type",Boolean)],JL.prototype,"useBiggerThumbs",void 0);_.L([_.x({reflectToAttribute:!0,value:function(){return _.rM("desktop_search_bigger_thumbs_style")}}),
_.p("design:type",String)],JL.prototype,"biggerThumbsStyle",void 0);_.L([_.x({reflectToAttribute:!0,value:function(){return _.K("enable_text_ad_web_thumbnail_scaling_fix")}}),
_.p("design:type",Boolean)],JL.prototype,"enableThumbnailScalingFix",void 0);_.L([_.Fe("data"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],JL.prototype,"dataChanged",null);_.L([_.gz("tap"),_.p("design:type",Function),_.p("design:paramtypes",[CustomEvent]),_.p("design:returntype")],JL.prototype,"onTap",null);_.L([_.U({is:"ytd-text-image-no-button-layout-renderer",disableElementRegistration:!0})],JL);
_.D(JL,"ytd-text-image-no-button-layout-renderer",function(){if(pBw!==void 0)return pBw;var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-text-image-no-button-layout-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="root-container" class="style-scope ytd-text-image-no-button-layout-renderer">\n  <div id="text-image-container" class="style-scope ytd-text-image-no-button-layout-renderer">\n    <div id="media-hover-overlay" class="style-scope ytd-text-image-no-button-layout-renderer"></div>\n    <div id="text-image" class="style-scope ytd-text-image-no-button-layout-renderer">\n      <yt-img-shadow id="text-image-favicon" hidden="[[!showFavicon]]" thumbnail="[[data.favicon]]" class="style-scope ytd-text-image-no-button-layout-renderer"></yt-img-shadow>\n      <h3 id="text-image-title" class="style-scope ytd-text-image-no-button-layout-renderer">[[getSimpleString(data.title)]]</h3>\n    </div>\n    <div id="media-badge" class="style-scope ytd-text-image-no-button-layout-renderer"></div>\n  </div>\n  <div id="metadata-container" class="style-scope ytd-text-image-no-button-layout-renderer">\n    <div id="metadata-body" class="style-scope ytd-text-image-no-button-layout-renderer">\n      <yt-formatted-string id="headline" ellipsis-truncate="" no-endpoints="" text="[[data.headline]]" class="style-scope ytd-text-image-no-button-layout-renderer"></yt-formatted-string>\n      <yt-formatted-string id="description" ellipsis-truncate="" no-endpoints="" text="[[data.description]]" class="style-scope ytd-text-image-no-button-layout-renderer"></yt-formatted-string>\n      <div id="details-line" class="style-scope ytd-text-image-no-button-layout-renderer">\n        <div id="ad-badge" class="style-scope ytd-text-image-no-button-layout-renderer"></div>\n        <div id="website-text" class="style-scope ytd-text-image-no-button-layout-renderer">[[getSimpleString(data.websiteText)]]</div>\n      </div>\n      <div id="sitelinks-carousel" class="style-scope ytd-text-image-no-button-layout-renderer">\n        <template is="dom-repeat" items="[[data.sitelinks]]" as="item" on-dom-change="configureSitelinkClickTargets" class="style-scope ytd-text-image-no-button-layout-renderer">\n          <div class="sitelink-container style-scope ytd-text-image-no-button-layout-renderer">\n            <yt-formatted-string id="sitelink-[[index]]" class="sitelink style-scope ytd-text-image-no-button-layout-renderer" ellipsis-truncate="" no-endpoints="" role="link" text="[[item.title]]" on-click="onSitelinkTap"></yt-formatted-string>\n          </div>\n        </template>\n      </div>\n    </div>\n    <div id="new-menu" class="style-scope ytd-text-image-no-button-layout-renderer"></div>\n  </div>\n  <div id="menu" class="style-scope ytd-text-image-no-button-layout-renderer"></div>\n</div>\n');
a.content.insertBefore(_.w().content.cloneNode(!0),a.content.firstChild);return pBw=a},{mode:_.Np("kevlar_poly_si_batch_j028")?1:2});var wBw;var rt=function(){var a=_.G.apply(this,arguments)||this;a.isInlinePlaybackState=!1;a.uiUpdate=_.K("web_modern_buttons");a.hideCta=_.K("hide_cta_for_home_web_video_ads");a.noBottomMargin=!1;a.animateInTimeStamp=_.Ib("hide_cta_for_home_web_video_ads_animate_in_time");a.animateInCta=!1;a.isHovered=!1;a.enableMonoStyle=_.K("enable_default_mono_cta_migration_web_client");a.player=null;a.JSC$15292_playerEvents=new Map;a.JSC$15292_preventProgressSaveTimer=null;a.delayedCtaJobId=null;return a};
_.b(rt,_.G);_.Z=rt.prototype;_.Z.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]]"}}}}}};
_.Z.attached=function(){this.JSC$15292_playerEvents.set("onPlaybackStartExternal",this.onPlaybackStart);this.JSC$15292_playerEvents.set("onVideoProgress",this.onVideoProgress);this.hideCta&&this.setPlayer();_.K("enable_delayed_cta_on_web")&&this.buttonContainer.classList.add("hide-delayed-buttons")};
_.Z.detached=function(){this.resetPreventProgressSaveTimer();this.hideCta&&this.player&&this.ytPlayerListenerBehavior.unlistenFromPlayerEvents(this.player,this.JSC$15292_playerEvents)};
_.Z.dataChanged=function(){this.data&&this.data.navigationEndpoint&&this.data.channelEndpoint&&(this.animateInCta=!1,this.ytSparklesClickLocationBehavior.configureClickTargets("ad-inline-playback-metadata",rt.JSC$15291_DEFAULT_CLICK_LOCATION_BEHAVIOR,rt.JSC$15291_CLICK_LOCATION_ID_MAP),this.isInlinePlaybackState&&!this.hideCta&&this.setPlayer())};
_.Z.hoverChanged=function(){var a=this;this.delayedCtaJobId&&(_.GW.cancelJob(this.delayedCtaJobId),this.delayedCtaJobId=null);this.isHovered&&!this.buttonContainer.classList.contains("show-delayed-buttons")&&_.K("enable_delayed_cta_on_web")&&(this.delayedCtaJobId=_.xc(_.GW,function(){a.buttonContainer.classList.add("show-delayed-buttons")},_.Ib("delayed_cta_on_web_delay_milliseconds")))};
_.Z.setPlayer=function(){var a=this,z;return _.t(function(I){if(I.nextAddress==1)return(z=_.Ct(a.hostElement,"yt-get-inline-preview-player-action"))&&z[0]?I.yield(z[0].getPlayerPromise(),3):I.jumpTo(0);a.player=I.yieldResult;a.ytPlayerListenerBehavior.listenToPlayerEvents(a.player,a.JSC$15292_playerEvents);_.nu(I)})};
_.Z.onPlaybackStart=function(){var a=this;this.player&&(this.resetPreventProgressSaveTimer(),this.JSC$15292_preventProgressSaveTimer=_.NK(_.GW,function(){a.JSC$15292_preventProgressSaveTimer=null},1E4))};
_.Z.onVideoProgress=function(a){this.hideCta&&this.isHovered&&!(this.animateInTimeStamp<0)&&a>=this.animateInTimeStamp&&!this.animateInCta&&(this.animateInCta=!0)};
_.Z.resetPreventProgressSaveTimer=function(){_.GW.cancelJob(this.JSC$15292_preventProgressSaveTimer);this.JSC$15292_preventProgressSaveTimer=null};
_.Z.getSimpleString=function(a){return _.cd(a)};
_.Z.onClick=function(a){if(this.data&&this.data.navigationEndpoint&&this.data.channelEndpoint){var z,I=(z=this.data)==null?void 0:z.navigationEndpoint,J;z=(J=this.data)==null?void 0:J.channelEndpoint;var r,P;(J=(P=_.H((r=this.data)==null?void 0:r.adCtaButton,_.lc))==null?void 0:P.command)&&_.ek(_.ch(a),this.hostElement,["call-to-action"])?_.K("enable_fix_two_tab_short_dr")||this.ytSparklesClickLocationBehavior.handleClick(J,a,!1):z&&_.ek(_.ch(a),this.hostElement,["channel-thumbnail-container","short-byline-text"])?
this.ytSparklesClickLocationBehavior.handleClick(z,a,!1):!_.ek(_.ch(a),this.hostElement,["secondary-button"])&&I&&(_.K("enable_short_dr_for_desktop_launchable")?(r=!!_.H(I,_.MZ),this.isInlinePlaybackState&&r&&this.updateWatchEndpointStartTime(),this.ytSparklesClickLocationBehavior.handleClick(I,a,r)):(this.isInlinePlaybackState&&this.updateWatchEndpointStartTime(),this.ytSparklesClickLocationBehavior.handleClick(I,a,!0)))}};
_.Z.updateWatchEndpointStartTime=function(){var a,z;this.player&&((a=this.data)==null?0:a.inlinePlaybackEndpoint)&&((z=this.data)==null?0:z.navigationEndpoint)&&!this.JSC$15292_preventProgressSaveTimer&&(a=Math.floor(this.player.getCurrentTime()),_.H(this.data.navigationEndpoint,_.MZ).startTimeSeconds=a,_.H(this.data.inlinePlaybackEndpoint,_.MZ).startTimeSeconds=a)};
_.Z.computeButtonOverride=function(){if(this.uiUpdate)return{style:this.enableMonoStyle?"mono":"call-to-action",type:this.enableMonoStyle?"filled":"tonal"}};
_.Z.computeSecondaryButtonOverride=function(){return{style:this.enableMonoStyle?"mono":"call-to-action",type:this.enableMonoStyle?"tonal":"outline",iconPosition:"none"}};
_.eH.Object.defineProperties(rt.prototype,{typographyBumpV2:{configurable:!0,enumerable:!0,get:function(){return this.typographyBump&&_.K("web_enable_typography_bump_v2")}},
isButtonGroup:{configurable:!0,enumerable:!0,get:function(){var a,z;return!((a=this.data)==null||!a.watchButton)&&!((z=this.data)==null||!z.adCtaButton)}}});
rt.prototype.hoverChanged=rt.prototype.hoverChanged;rt.prototype.dataChanged=rt.prototype.dataChanged;
rt.JSC$15291_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"]]);
rt.JSC$15291_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"}];
_.L([_.Q(_.k.YtRendererBehavior),_.p("design:type",Object)],rt.prototype,"ytRendererBehavior",void 0);_.L([_.Q(_.u4.YtRendererstamperBehavior),_.p("design:type",Object)],rt.prototype,"ytRendererstamperBehavior",void 0);_.L([_.Q(_.pV),_.p("design:type",Object)],rt.prototype,"ytdReduxBehavior",void 0);_.L([_.Q(_.tM.YtSparklesClickLocationBehavior),_.p("design:type",Object)],rt.prototype,"ytSparklesClickLocationBehavior",void 0);
_.L([_.Q(_.jz.YtPlayerListenerBehavior),_.p("design:type",_.z4)],rt.prototype,"ytPlayerListenerBehavior",void 0);_.L([_.x(),_.p("design:type",Object)],rt.prototype,"data",void 0);_.L([_.x({reflectToAttribute:!0}),_.p("design:type",Object)],rt.prototype,"isInlinePlaybackState",void 0);_.L([_.x({reflectToAttribute:!0,value:!1}),_.p("design:type",Boolean)],rt.prototype,"miniMode",void 0);_.L([_.x({reflectToAttribute:!0}),_.p("design:type",Object)],rt.prototype,"uiUpdate",void 0);
_.L([_.x({reflectToAttribute:!0}),_.p("design:type",Object)],rt.prototype,"hideCta",void 0);_.L([_.x({reflectToAttribute:!0}),_.p("design:type",Object)],rt.prototype,"noBottomMargin",void 0);_.L([_.x({reflectToAttribute:!0}),_.p("design:type",Object)],rt.prototype,"animateInCta",void 0);_.L([_.x({computed:"computeButtonOverride(uiUpdate)"}),_.p("design:type",Object)],rt.prototype,"buttonOverride",void 0);
_.L([_.x({computed:"computeSecondaryButtonOverride(uiUpdate)"}),_.p("design:type",Object)],rt.prototype,"secondaryButtonOverride",void 0);_.L([_.x({reflectToAttribute:!0}),_.p("design:type",Object)],rt.prototype,"isHovered",void 0);_.L([_.A3("#button-container"),_.p("design:type",HTMLElement)],rt.prototype,"buttonContainer",void 0);_.L([_.x({reflectToAttribute:!0,value:!1}),_.p("design:type",Boolean)],rt.prototype,"typographyBump",void 0);
_.L([_.x({reflectToAttribute:!0}),_.S("typographyBump"),_.p("design:type",Boolean),_.p("design:paramtypes",[])],rt.prototype,"typographyBumpV2",null);_.L([_.x({reflectToAttribute:!0}),_.p("design:type",Object)],rt.prototype,"enableMonoStyle",void 0);_.L([_.O8("data"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],rt.prototype,"dataChanged",null);
_.L([_.O8("isHovered"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],rt.prototype,"hoverChanged",null);_.L([_.S("data"),_.x({reflectToAttribute:!0}),_.p("design:type",Boolean),_.p("design:paramtypes",[])],rt.prototype,"isButtonGroup",null);_.L([_.U({is:"ytd-ad-inline-playback-meta-block",disableElementRegistration:!0})],rt);
_.D(rt,"ytd-ad-inline-playback-meta-block",function(){if(wBw!==void 0)return wBw;var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-ad-inline-playback-meta-block--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="ad-inline-playback-metadata" on-click="onClick" class="style-scope ytd-ad-inline-playback-meta-block">\n  <div id="meta-container" class="style-scope ytd-ad-inline-playback-meta-block">\n    <div id="channel-thumbnail-container" class="style-scope ytd-ad-inline-playback-meta-block">\n      <a id="avatar-link" class="yt-simple-endpoint style-scope ytd-ad-inline-playback-meta-block" hidden="[[!data.channelThumbnail]]" href$="[[computeHref_(data.channelEndpoint)]]" data="[[data.channelEndpoint]]" title="[[getSimpleString(data.shortBylineText)]]" aria-label$="[[data.shortBylineText.accessibility.accessibilityData.label]]" tabindex="-1">\n        <yt-img-shadow id="avatar" disable-upgrade$="[[!data.channelThumbnail]]" thumbnail="[[data.channelThumbnail]]" width="48" class="style-scope ytd-ad-inline-playback-meta-block">\n        </yt-img-shadow>\n      </a>\n    </div>\n    <div id="info-container" class="style-scope ytd-ad-inline-playback-meta-block">\n      <div id="title-container" aria-hidden="true" class="style-scope ytd-ad-inline-playback-meta-block">\n        <yt-formatted-string id="video-title" text="[[data.title]]" title="[[getSimpleString(data.title)]]" class="style-scope ytd-ad-inline-playback-meta-block"></yt-formatted-string>\n      </div>\n      <div id="menu" class="style-scope ytd-ad-inline-playback-meta-block"></div>\n      <div id="description-container" aria-hidden="true" class="style-scope ytd-ad-inline-playback-meta-block">\n        <yt-formatted-string id="description" text="[[data.description]]" title="[[getSimpleString(data.description)]]" class="style-scope ytd-ad-inline-playback-meta-block"></yt-formatted-string>\n      </div>\n      <div id="byline-container" aria-hidden="true" class="style-scope ytd-ad-inline-playback-meta-block">\n        <div id="badge" class="style-scope ytd-ad-inline-playback-meta-block"></div>\n        <ytd-channel-name id="short-byline-text" channel-name="[[data.shortBylineText]]" no-endpoints="true" wrap-text="true" class="style-scope ytd-ad-inline-playback-meta-block"></ytd-channel-name>\n      </div>\n      <div id="secondary-description-container" aria-hidden="true" hidden="[[!data.secondaryDescription]]" "="" class="style-scope ytd-ad-inline-playback-meta-block">\n        <yt-formatted-string id="secondary-description" text="[[data.secondaryDescription]]" title="[[getSimpleString(data.secondaryDescription)]]" class="style-scope ytd-ad-inline-playback-meta-block"></yt-formatted-string>\n      </div>\n    </div>\n  </div>\n  <div id="button-container" class="style-scope ytd-ad-inline-playback-meta-block">\n    <template is="dom-if" if="[[data.watchButton.buttonRenderer]]" class="style-scope ytd-ad-inline-playback-meta-block">\n      <ytd-button-renderer id="secondary-button" data="[[data.watchButton.buttonRenderer]]" overrides="[[computeSecondaryButtonOverride(data.watchButton.buttonRenderer)]]" class="style-scope ytd-ad-inline-playback-meta-block">\n      </ytd-button-renderer>\n    </template>\n    <div id="call-to-action" class="style-scope ytd-ad-inline-playback-meta-block"></div>\n  </div>\n</div>\n');a.content.insertBefore(_.w().content.cloneNode(!0),
a.content.firstChild);return wBw=a},{mode:_.Np("kevlar_poly_si_batch_j065")?1:2});var mFf;var PM=function(){var a=_.G.apply(this,arguments)||this;a.noBottomMargin=!1;a.isInlinePreviewTriggered=!1;a.JSC$15297_activeViewMeasurementDataResolver=_.kq();return a};
_.b(PM,_.G);_.Z=PM.prototype;_.Z.configureRendererStamper=function(){return{dismissedRenderer:{id:"dismissed-content",mapping:{notificationMultiActionRenderer:"ytd-notification-multi-action-renderer",notificationTextRenderer:"ytd-notification-text-renderer"}}}};
_.Z.attached=function(){var a=this;this.updateInlinePreviewHoverListeners();this.JSC$15297_activeViewMeasurementDataResolver.promise.then(function(z){a.ytdActiveViewBehavior.enableActiveViewMeasurement(z,15)});
_.K("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&a.ytdActiveViewBehavior.stopActiveViewMeasurement()})};
_.Z.detached=function(){this.clearInlinePreviewHoverListeners();_.K("stop_av_measurement_on_detach")&&this.ytdActiveViewBehavior.stopActiveViewMeasurement()};
_.Z.updateInlinePreviewHoverListeners=function(){this.clearInlinePreviewHoverListeners();this.JSC$15297_inlinePreviewHoverListener=LU({mediaRenderer:this,lockupElement:this.JSC$15297_dismissibleMedia,thumbnailElement:this.thumbnail,videoPreviewOpts:IzJ})};
_.Z.clearInlinePreviewHoverListeners=function(){var a;(a=this.JSC$15297_inlinePreviewHoverListener)==null||e8(a)};
_.Z.onDataChanged=function(){var a;((a=this.data)==null?0:a.activeView)&&this.JSC$15297_activeViewMeasurementDataResolver.resolve(this.data.activeView);this.updateInlinePreviewHoverListeners();this.ytSparklesClickLocationBehavior.configureClickTargets("thumbnail-container",PM.JSC$15296_DEFAULT_CLICK_LOCATION_BEHAVIOR,PM.JSC$15296_CLICK_LOCATION_ID_MAP);this.thumbnail&&(a=this.thumbnail.getElementsByTagName("a"),a.length>0&&(a=a.namedItem("thumbnail"))&&a.removeAttribute("href"));var z;if((z=this.data)==
null?0:z.forceImpAutoplay){var I;(I=this.JSC$15297_inlinePreviewHoverListener)==null||Os1(I)}};
_.Z.onTypographyBumpChanged=function(){this.adInlinePlaybackMetaBlock&&(this.adInlinePlaybackMetaBlock.typographyBump=this.typographyBump)};
_.Z.onThumbnailContainerClick=function(a){if(this.data&&this.data.navigationEndpoint){var z,I=(z=this.data)==null?void 0:z.navigationEndpoint;this.ytSparklesClickLocationBehavior.handleClick(I,a,!!_.H(I,_.MZ));a.stopPropagation()}};
_.Z.shouldUseImpressionPingingEndpoint=function(){return this.data&&this.data.onImpression};
_.Z.impressionLog=function(){var a=this;if(!(!this.shouldUseImpressionPingingEndpoint()||this.data&&this.data.impressionsFired)){var z,I,J=(I=_.H((z=this.data)==null?void 0:z.onImpression,_.E_))==null?void 0:I.commands;J&&(J.forEach(function(r){r.clickTrackingParams&&delete r.clickTrackingParams;a.ytComponentBehavior.resolveCommand(r)}),this.data.impressionsFired=!0)}};
_.eH.Object.defineProperties(PM.prototype,{isHovered:{configurable:!0,enumerable:!0,get:function(){var a;return!((a=this.JSC$15297_inlinePreviewHoverListener)==null?0:lO(a))&&!!this.ytdLockupBehavior.lockupIsHovered}}});
PM.prototype.onTypographyBumpChanged=PM.prototype.onTypographyBumpChanged;PM.prototype.onDataChanged=PM.prototype.onDataChanged;PM.JSC$15296_CLICK_LOCATION_ID_MAP=new Map([["PROMOTED_SPARKLES_CLICK_LOCATION_THUMBNAIL","thumbnail-container"]]);PM.JSC$15296_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"}];
_.L([_.Q(_.Ms.YtComponentBehavior),_.p("design:type",Object)],PM.prototype,"ytComponentBehavior",void 0);_.L([_.Q(lf),_.p("design:type",Object)],PM.prototype,"ytdActiveViewBehavior",void 0);_.L([_.Q(_.k.YtRendererBehavior),_.p("design:type",Object)],PM.prototype,"ytRendererBehavior",void 0);_.L([_.Q(_.u4.YtRendererstamperBehavior),_.p("design:type",Object)],PM.prototype,"ytRendererstamperBehavior",void 0);_.L([_.Q(_.mD),_.p("design:type",Object)],PM.prototype,"ytdDismissibleItemBehavior",void 0);
_.L([_.Q(_.eB),_.p("design:type",Object)],PM.prototype,"ytdLockupBehavior",void 0);_.L([_.Q(_.pV),_.p("design:type",Object)],PM.prototype,"ytdReduxBehavior",void 0);_.L([_.Q(_.tM.YtSparklesClickLocationBehavior),_.p("design:type",Object)],PM.prototype,"ytSparklesClickLocationBehavior",void 0);_.L([_.x(),_.p("design:type",Object)],PM.prototype,"data",void 0);_.L([_.x(),_.p("design:type",Object)],PM.prototype,"noBottomMargin",void 0);
_.L([_.x(),_.p("design:type",Object)],PM.prototype,"isInlinePreviewTriggered",void 0);_.L([_.x({reflectToAttribute:!0,selector:_.$p}),_.p("design:type",Boolean)],PM.prototype,"miniMode",void 0);_.L([_.x({value:!1}),_.p("design:type",Boolean)],PM.prototype,"typographyBump",void 0);_.L([_.A3("ytd-thumbnail"),_.p("design:type",HTMLElement)],PM.prototype,"thumbnail",void 0);_.L([_.A3("#dismissible"),_.p("design:type",HTMLElement)],PM.prototype,"JSC$15297_dismissibleMedia",void 0);
_.L([_.A3("ytd-ad-inline-playback-meta-block"),_.p("design:type",HTMLElement)],PM.prototype,"adInlinePlaybackMetaBlock",void 0);_.L([_.Fe("data"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],PM.prototype,"onDataChanged",null);_.L([_.Fe("typographyBump"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],PM.prototype,"onTypographyBumpChanged",null);
_.L([_.S("lockupIsHovered"),_.p("design:type",Boolean),_.p("design:paramtypes",[])],PM.prototype,"isHovered",null);_.L([_.U({is:"ytd-video-display-full-buttoned-and-button-group-renderer",disableElementRegistration:!0})],PM);
_.D(PM,"ytd-video-display-full-buttoned-and-button-group-renderer",function(){if(mFf!==void 0)return mFf;var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-video-display-full-buttoned-and-button-group-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="dismissible" class="style-scope ytd-video-display-full-buttoned-and-button-group-renderer">\n  <div id="root" class="style-scope ytd-video-display-full-buttoned-and-button-group-renderer">\n    <div id="thumbnail-container" role="button" aria-label$="[[data.title.accessibility.accessibilityData.label]]" on-click="onThumbnailContainerClick" class="style-scope ytd-video-display-full-buttoned-and-button-group-renderer">\n      <ytd-thumbnail data="[[data]]" hovered="[[isHovered]]" rich-grid-thumbnail="" use-expandable-tooltip="[[useExpandableTooltip]]" use-hovered-property="" width="9999" class="style-scope ytd-video-display-full-buttoned-and-button-group-renderer">\n      </ytd-thumbnail>\n    </div>\n    <ytd-ad-inline-playback-meta-block data="[[data]]" is-hovered="[[isInlinePreviewTriggered]]" mini-mode="[[miniMode]]" no-bottom-margin="[[noBottomMargin]]" 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');a.content.insertBefore(_.w().content.cloneNode(!0),
a.content.firstChild);return mFf=a},{mode:1});var yBi;var Z0=function(){var a=_.G.apply(this,arguments)||this;a.isInlinePreviewTriggered=!1;a.JSC$15300_activeViewMeasurementDataResolver=_.kq();return a};
_.b(Z0,_.G);_.Z=Z0.prototype;_.Z.configureRendererStamper=function(){return{dismissedRenderer:{id:"dismissed-content",mapping:{notificationMultiActionRenderer:"ytd-notification-multi-action-renderer",notificationTextRenderer:"ytd-notification-text-renderer"}}}};
_.Z.attached=function(){var a=this;this.updateInlinePreviewHoverListeners();this.JSC$15300_activeViewMeasurementDataResolver.promise.then(function(z){a.ytdActiveViewBehavior.enableActiveViewMeasurement(z,15)})};
_.Z.detached=function(){this.clearInlinePreviewHoverListeners()};
_.Z.updateInlinePreviewHoverListeners=function(){this.clearInlinePreviewHoverListeners();this.JSC$15300_inlinePreviewHoverListener=LU({mediaRenderer:this,lockupElement:this.JSC$15300_dismissibleMedia,thumbnailElement:this.thumbnail,videoPreviewOpts:IzJ})};
_.Z.clearInlinePreviewHoverListeners=function(){var a;(a=this.JSC$15300_inlinePreviewHoverListener)==null||e8(a)};
_.Z.onDataChanged=function(){var a;((a=this.data)==null?0:a.activeView)&&this.JSC$15300_activeViewMeasurementDataResolver.resolve(this.data.activeView);this.updateInlinePreviewHoverListeners();this.ytSparklesClickLocationBehavior.configureClickTargets("thumbnail-container",Z0.JSC$15299_DEFAULT_CLICK_LOCATION_BEHAVIOR,Z0.JSC$15299_CLICK_LOCATION_ID_MAP);this.thumbnail&&(a=this.thumbnail.getElementsByTagName("a"),a.length>0&&(a=a.namedItem("thumbnail"))&&a.removeAttribute("href"))};
_.Z.onThumbnailContainerClick=function(a){if(this.data&&this.data.navigationEndpoint){var z,I=(z=this.data)==null?void 0:z.navigationEndpoint;this.ytSparklesClickLocationBehavior.handleClick(I,a,!0);a.stopPropagation()}};
_.Z.shouldUseImpressionPingingEndpoint=function(){return this.data&&this.data.onImpression};
_.Z.impressionLog=function(){var a=this;if(!(!this.shouldUseImpressionPingingEndpoint()||this.data&&this.data.impressionsFired)){var z,I,J=(I=_.H((z=this.data)==null?void 0:z.onImpression,_.E_))==null?void 0:I.commands;J&&(J.forEach(function(r){r.clickTrackingParams&&delete r.clickTrackingParams;_.ab().resolve(_.j6).resolveCommand(r,{form:{element:a.hostElement}})}),this.data.impressionsFired=!0)}};
_.eH.Object.defineProperties(Z0.prototype,{isHovered:{configurable:!0,enumerable:!0,get:function(){var a;return!((a=this.JSC$15300_inlinePreviewHoverListener)==null?0:lO(a))&&!!this.ytdLockupBehavior.lockupIsHovered}}});
Z0.prototype.onDataChanged=Z0.prototype.onDataChanged;Z0.JSC$15299_CLICK_LOCATION_ID_MAP=new Map([["PROMOTED_SPARKLES_CLICK_LOCATION_THUMBNAIL","thumbnail-container"]]);Z0.JSC$15299_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"}];_.L([_.Q(lf),_.p("design:type",Object)],Z0.prototype,"ytdActiveViewBehavior",void 0);
_.L([_.Q(_.k.YtRendererBehavior),_.p("design:type",Object)],Z0.prototype,"ytRendererBehavior",void 0);_.L([_.Q(_.u4.YtRendererstamperBehavior),_.p("design:type",Object)],Z0.prototype,"ytRendererstamperBehavior",void 0);_.L([_.Q(_.mD),_.p("design:type",Object)],Z0.prototype,"ytdDismissibleItemBehavior",void 0);_.L([_.Q(_.eB),_.p("design:type",Object)],Z0.prototype,"ytdLockupBehavior",void 0);_.L([_.Q(_.pV),_.p("design:type",Object)],Z0.prototype,"ytdReduxBehavior",void 0);
_.L([_.Q(_.tM.YtSparklesClickLocationBehavior),_.p("design:type",Object)],Z0.prototype,"ytSparklesClickLocationBehavior",void 0);_.L([_.x(),_.p("design:type",Object)],Z0.prototype,"data",void 0);_.L([_.x(),_.p("design:type",Object)],Z0.prototype,"isInlinePreviewTriggered",void 0);_.L([_.x({reflectToAttribute:!0,selector:_.$p}),_.p("design:type",Boolean)],Z0.prototype,"miniMode",void 0);_.L([_.A3("ytd-thumbnail"),_.p("design:type",HTMLElement)],Z0.prototype,"thumbnail",void 0);
_.L([_.A3("#dismissible"),_.p("design:type",HTMLElement)],Z0.prototype,"JSC$15300_dismissibleMedia",void 0);_.L([_.Fe("data"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],Z0.prototype,"onDataChanged",null);_.L([_.S("lockupIsHovered"),_.p("design:type",Boolean),_.p("design:paramtypes",[])],Z0.prototype,"isHovered",null);_.L([_.U({is:"ytd-video-display-full-buttoned-renderer",disableElementRegistration:!0})],Z0);
_.D(Z0,"ytd-video-display-full-buttoned-renderer",function(){if(yBi!==void 0)return yBi;var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-video-display-full-buttoned-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="dismissible" class="style-scope ytd-video-display-full-buttoned-renderer">\n  <div id="root" class="style-scope ytd-video-display-full-buttoned-renderer">\n    <div id="thumbnail-container" role="button" aria-label$="[[data.title.accessibility.accessibilityData.label]]" on-click="onThumbnailContainerClick" class="style-scope ytd-video-display-full-buttoned-renderer">\n      <ytd-thumbnail data="[[data]]" hovered="[[isHovered]]" rich-grid-thumbnail="" use-expandable-tooltip="[[useExpandableTooltip]]" use-hovered-property="" width="9999" class="style-scope ytd-video-display-full-buttoned-renderer">\n      </ytd-thumbnail>\n    </div>\n    <ytd-ad-inline-playback-meta-block data="[[data]]" is-hovered="[[isInlinePreviewTriggered]]" mini-mode="[[miniMode]]" class="style-scope ytd-video-display-full-buttoned-renderer">\n    </ytd-ad-inline-playback-meta-block>\n  </div>\n</div>\n<div id="dismissed" class="style-scope ytd-video-display-full-buttoned-renderer">\n  <div id="dismissed-content" class="style-scope ytd-video-display-full-buttoned-renderer"></div>\n</div>\n');
a.content.insertBefore(_.w().content.cloneNode(!0),a.content.firstChild);return yBi=a},{mode:1});var JQ=function(a,z,I,J){J=J===void 0?!1:J;_.aE.call(this,a);this.adsClientErrorMessage=I;this.aggressivelySample=J;this.args=[];z&&this.args.push(z)};
_.b(JQ,_.aE);var z0=function(a,z,I,J){J=J===void 0?!1:J;_.aE.call(this,a);this.adsClientErrorMessage=I;this.aggressivelySample=J;this.args=[];z&&this.args.push(z)};
_.b(z0,_.aE);var kwO=function(a){_.FC.call(this);var z=this;this.initializationFunction=a;this.instance=null;this.addOnDisposeCallback(function(){_.Y8(z.instance);z.instance=null})};
_.b(kwO,_.FC);kwO.prototype.get=function(){Math.random()<.001&&this.isDisposed()&&_.Mh("Tried to retrieve object during dispose",void 0,void 0,{type:typeof this.instance});this.instance||(this.instance=this.initializationFunction());return this.instance};var UXp=function(){var a=new Map;[].forEach(function(z){a.set(z.JSC$30303_getType(),z)});
this.getters=a};new Promise(function(){});var XN1=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"]]),GKG=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"}]]),Mhw=function(a){this.experimentApiProvider=a;a=Math.random();this.experimentApiProvider.get();this.alwaysIncludeDebugData=a<.1};var CA=function(a,z,I,J){_.FC.call(this);this.adsControlFlowEventListeners=z;this.adEventLogger=I;this.experimentApiProvider=J;this.adsControlFlowManagerHelper=a(this,this,this,this,this);_.t7(this,this.adsControlFlowManagerHelper);a=_.C(z);for(z=a.next();!z.done;z=a.next())_.t7(this,z.value)};
_.b(CA,_.FC);var cBE=function(a,z,I,J){Ni(a.adEventLogger,"ADS_CLIENT_EVENT_TYPE_OPPORTUNITY_RECEIVED",z,I,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,J);a=_.C(a.adsControlFlowEventListeners);for(J=a.next();!J.done;J=a.next())cBE(J.value,z,I)};
_.Z=CA.prototype;_.Z.onOpportunityProcessedExternallyManaged=function(a,z,I,J){Ni(this.adEventLogger,"ADS_CLIENT_EVENT_TYPE_OPPORTUNITY_PROCESSED",a,I,z,void 0,void 0,void 0,void 0,void 0,void 0,void 0,J)};
_.Z.onSlotReceivedExternallyManaged=function(a,z){tL(this.adEventLogger,"ADS_CLIENT_EVENT_TYPE_SLOT_RECEIVED",a,z)};
_.Z.onSlotEntered=function(a){if(u$(this.adsControlFlowManagerHelper,a)!=null){tL(this.adEventLogger,"ADS_CLIENT_EVENT_TYPE_SLOT_ENTERED",a);this.adsControlFlowManagerHelper.onSlotEntered(a);for(var z=_.C(this.adsControlFlowEventListeners),I=z.next();!I.done;I=z.next())I.value.onSlotEntered(a);if(u$(this.adsControlFlowManagerHelper,a)!=null&&u$(this.adsControlFlowManagerHelper,a).isOccupyingSlotType()&&EA(this.adsControlFlowManagerHelper,a)&&!YEi(this.adsControlFlowManagerHelper,a)){var J;BM(this.adEventLogger,
"ADS_CLIENT_EVENT_TYPE_ENTER_LAYOUT_REQUESTED",a,(J=EA(this.adsControlFlowManagerHelper,a))!=null?J:void 0);a=u$(this.adsControlFlowManagerHelper,a);a.slotLifecycleStage!=="entered"&&gt(a.slot,a.slotLifecycleStage,"enterLayoutForSlot");a.slotLifecycleStage="rendering";a.registeredLayoutRenderingAdapter.startRendering(a.layout)}}};
_.Z.onSlotExited=function(a){if(u$(this.adsControlFlowManagerHelper,a)!=null){tL(this.adEventLogger,"ADS_CLIENT_EVENT_TYPE_SLOT_EXITED",a);this.adsControlFlowManagerHelper.onSlotExited(a);for(var z=_.C(this.adsControlFlowEventListeners),I=z.next();!I.done;I=z.next())I.value.onSlotExited(a);u$(this.adsControlFlowManagerHelper,a)!=null&&u$(this.adsControlFlowManagerHelper,a).markedForUnscheduleAfterOutboundAdapterRequests&&qEw(this,a)}};
_.Z.onLayoutReceivedExternallyManaged=function(a,z,I){a.managerLayer!=="core"&&BM(this.adEventLogger,"ADS_CLIENT_EVENT_TYPE_LAYOUT_RECEIVED",a,z,I)};
var eMf=function(a,z,I){if(u$(a.adsControlFlowManagerHelper,z)!=null){BM(a.adEventLogger,"ADS_CLIENT_EVENT_TYPE_LAYOUT_ENTERED",z,I);a=_.C(a.adsControlFlowEventListeners);for(var J=a.next();!J.done;J=a.next())eMf(J.value,z,I)}};
CA.prototype.onLayoutExited=function(a,z,I){if(u$(this.adsControlFlowManagerHelper,a)!=null){BM(this.adEventLogger,$Xi(I),a,z);this.adsControlFlowManagerHelper.onLayoutExited(a,z);for(var J=_.C(this.adsControlFlowEventListeners),r=J.next();!r.done;r=J.next())r.value.onLayoutExited(a,z,I);(I=EA(this.adsControlFlowManagerHelper,a))&&z.layoutId===I.layoutId&&a_i(this,a)}};
CA.prototype.disposeInternal=function(){var a=j8G(this.adsControlFlowManagerHelper);a=_.C(a);for(var z=a.next();!z.done;z=a.next())qEw(this,z.value);_.FC.prototype.disposeInternal.call(this)};
var qEw=function(a,z){if(u$(a.adsControlFlowManagerHelper,z)!=null)if(u$(a.adsControlFlowManagerHelper,z).JSC$30333_isSlotExitRequested()||u$(a.adsControlFlowManagerHelper,z).JSC$30333_isLayoutExitRequested())u$(a.adsControlFlowManagerHelper,z).markedForUnscheduleAfterOutboundAdapterRequests=!0;else if(u$(a.adsControlFlowManagerHelper,z).isOccupyingSlotType())u$(a.adsControlFlowManagerHelper,z).markedForUnscheduleAfterOutboundAdapterRequests=!0,a_i(a,z);else if(u$(a.adsControlFlowManagerHelper,z).JSC$30333_isSlotFillRequested())u$(a.adsControlFlowManagerHelper,
z).markedForUnscheduleAfterOutboundAdapterRequests=!0,u$(a.adsControlFlowManagerHelper,z)!=null&&(tL(a.adEventLogger,"ADS_CLIENT_EVENT_TYPE_CANCEL_SLOT_FULFILLMENT_REQUESTED",z),z=u$(a.adsControlFlowManagerHelper,z),z.fulfillmentLifecycleStage="fill_cancel_requested",z.registeredFulfillmentAdapter.cancelSlotFilling());else{var I=EA(a.adsControlFlowManagerHelper,z),J;a.experimentApiProvider.get();(J=_.K("h5_enable_layout_unscheduling_events"))&&(I?zdI(a,z,I):_.Mh(Error("Ih"),z,I,void 0,!1));tL(a.adEventLogger,
"ADS_CLIENT_EVENT_TYPE_UNSCHEDULE_SLOT_REQUESTED",z);var r=u$(a.adsControlFlowManagerHelper,z),P=z.slotEntryTrigger,N=r.registeredSlotEntryTriggerAdapters.get(P.triggerId);N&&(N.unregisterTrigger(P),r.registeredSlotEntryTriggerAdapters.delete(P.triggerId));P=_.C(z.slotFulfillmentTriggers);for(N=P.next();!N.done;N=P.next()){N=N.value;var u=r.registeredFulfillmentTriggerAdapters.get(N.triggerId);u&&(u.unregisterTrigger(N),r.registeredFulfillmentTriggerAdapters.delete(N.triggerId))}P=_.C(z.slotExpirationTriggers);
for(N=P.next();!N.done;N=P.next())if(N=N.value,u=r.registeredExpirationTriggerAdapters.get(N.triggerId))u.unregisterTrigger(N),r.registeredExpirationTriggerAdapters.delete(N.triggerId);r.hasLayout()&&(P=r.layout,OA(r,P.layoutExitNormalTriggers),OA(r,P.layoutExitSkipTriggers),OA(r,P.layoutExitMuteTriggers),OA(r,P.layoutExitUserInputSubmittedTriggers),OA(r,P.layoutExitUserCancelledTriggers));r.registeredFulfillmentAdapter=void 0;r.registeredSlotAdapter!=null&&(r.registeredSlotAdapter.release(),r.registeredSlotAdapter=
void 0);r.registeredLayoutRenderingAdapter!=null&&(r.registeredLayoutRenderingAdapter.release(),r.registeredLayoutRenderingAdapter=void 0);r=a.adsControlFlowManagerHelper;u$(r,z)&&(r=I_O(r,z.slotType+"_"+z.slotPhysicalPosition))&&r.delete(z.slotId);tL(a.adEventLogger,"ADS_CLIENT_EVENT_TYPE_SLOT_UNSCHEDULED",z);a=_.C(a.adsControlFlowEventListeners);for(r=a.next();!r.done;r=a.next())r=r.value,r.onSlotUnscheduled(z),I&&!J&&zdI(r,z,I)}},zdI=function(a,z,I){BM(a.adEventLogger,"ADS_CLIENT_EVENT_TYPE_UNSCHEDULE_LAYOUT_REQUESTED",
z,I);
BM(a.adEventLogger,"ADS_CLIENT_EVENT_TYPE_LAYOUT_UNSCHEDULED",z,I);a=_.C(a.adsControlFlowEventListeners);for(var J=a.next();!J.done;J=a.next())J=J.value,I&&zdI(J,z,I)},a_i=function(a,z){if(u$(a.adsControlFlowManagerHelper,z)!=null&&u$(a.adsControlFlowManagerHelper,z).isOccupyingSlotType()){var I=EA(a.adsControlFlowManagerHelper,z);
if(I&&YEi(a.adsControlFlowManagerHelper,z)){if(u$(a.adsControlFlowManagerHelper,z)!=null){var J=a.adEventLogger,r;var P=((r=GKG.get("abandoned"))==null?void 0:r.requestEvent)||"ADS_CLIENT_EVENT_TYPE_UNSPECIFIED";BM(J,P,z,I);a=u$(a.adsControlFlowManagerHelper,z);a.slotLifecycleStage!=="rendering"&&gt(a.slot,a.slotLifecycleStage,"exitLayout");a.slotLifecycleStage="rendering_stop_requested";a.registeredLayoutRenderingAdapter.stopRendering(I,"abandoned")}}else{tL(a.adEventLogger,"ADS_CLIENT_EVENT_TYPE_EXIT_SLOT_REQUESTED",
z);try{J=u$(a.adsControlFlowManagerHelper,z);if(!J)throw new z0("Cannot exit slot it is unregistered",void 0,"ADS_CLIENT_ERROR_MESSAGE_SLOT_WAS_UNREGISTERED");J.slotLifecycleStage!=="enter_requested"&&J.slotLifecycleStage!=="entered"&&J.slotLifecycleStage!=="rendering"&&gt(J.slot,J.slotLifecycleStage,"exitSlot");J.slotLifecycleStage="exit_requested";if(J.registeredSlotAdapter===void 0)throw J.slotLifecycleStage="scheduled",new z0("Cannot exit slot because adapter is not defined",void 0,"ADS_CLIENT_ERROR_MESSAGE_NO_SLOT_ADAPTER_REGISTERED");
J.registeredSlotAdapter.exit()}catch(N){N instanceof z0&&N.adsClientErrorMessage?(Jkw(a.adEventLogger,N.adsClientErrorMessage,z),_.Mh(N,z,void 0,void 0,N.aggressivelySample)):(Jkw(a.adEventLogger,"ADS_CLIENT_ERROR_MESSAGE_UNEXPECTED_ERROR",z),_.Mh(N,z))}}}};var fA=function(a,z,I,J,r,P){_.FC.call(this);this.registry=a;this.experimentApiProvider=P;this.slotMap=new Map};
_.b(fA,_.FC);var I_O=function(a,z){return(a=a.slotMap.get(z))?a:new Map},u$=function(a,z){return I_O(a,z.slotType+"_"+z.slotPhysicalPosition).get(z.slotId)},j8G=function(a){var z=[];
a.slotMap.forEach(function(I){I=_.C(I.values());for(var J=I.next();!J.done;J=I.next())z.push(J.value.slot)});
return z};
fA.prototype.onSlotEntered=function(a){a=u$(this,a);a.slotLifecycleStage!=="enter_requested"&&gt(a.slot,a.slotLifecycleStage,"onSlotEntered");a.slotLifecycleStage="entered"};
var YEi=function(a,z){a=u$(a,z);return a.hasLayout()&&a.isRendering()},EA=function(a,z){(a=u$(a,z))?a.hasLayout()&&!a.layout&&_.Mh("Unexpected empty layout",z):_.Mh("Unexpected undefined slotState",z);
return(a==null?void 0:a.layout)||null};
fA.prototype.onSlotExited=function(a){a=u$(this,a);a.slotLifecycleStage!=="exit_requested"&&gt(a.slot,a.slotLifecycleStage,"onSlotExited");a.slotLifecycleStage="scheduled"};
fA.prototype.onLayoutExited=function(a,z){a=u$(this,a);a.isPrimaryLayout(z)&&(a.slotLifecycleStage!=="rendering_stop_requested"&&gt(a.slot,a.slotLifecycleStage,"onLayoutExited"),a.slotLifecycleStage="entered")};
var OA=function(a,z){z=_.C(z);for(var I=z.next();!I.done;I=z.next()){I=I.value;var J=a.registeredLayoutExitTriggerAdapters.get(I.triggerId);J&&(J.unregisterTrigger(I),a.registeredLayoutExitTriggerAdapters.delete(I.triggerId))}},gt=function(a,z,I){_.Mh("Slot stage was "+z+" when calling method "+I,a)};var PZ1=function(a){_.FC.call(this);this.deps=a;this.JSC$15350_adsControlFlowManager=rki(this)};
_.b(PZ1,_.FC);var rki=function(a){var z=new CA(function(I,J,r,P){return new fA(a.deps.registry,I,J,r,P,a.deps.experimentApiProvider)},new Set(oLE(a.deps.registry).concat(a.deps.listeners)),a.deps.adEventLogger,a.deps.experimentApiProvider);
_.t7(a,z);return z};var VE7=function(){};var Zm1=function(a,z){_.FC.call(this);this.experimentApiProvider=a;this.eventLoggingSettingsProvider=z;this.eventCount=0;this.premiumAdSeenEventLogger=Q_i()()};
_.b(Zm1,_.FC);Zm1.prototype.logEvent=function(a){Ni(this,a)};
var tL=function(a,z,I,J){Ni(a,z,void 0,void 0,void 0,I,void 0,void 0,void 0,I.adSlotLoggingData,void 0,void 0,J)},BM=function(a,z,I,J,r){Ni(a,z,void 0,void 0,void 0,I,J?J:void 0,void 0,void 0,I.adSlotLoggingData,J?J.adLayoutLoggingData:void 0,void 0,r);
I=_.ab().resolve(_.eL(hJ))==null?void 0:V4();z=I==null?void 0:I.adsSeenHotConfig;I=I==null?void 0:I.adsHotConfig;(z==null?0:z.logOnAdsSeen)&&(I==null?0:I.webEnablePremiumAdsSeenLogging)&&CZ1(a,J?J:void 0,r)},Jkw=function(a,z,I){Ni(a,"ADS_CLIENT_EVENT_TYPE_ERROR",void 0,void 0,void 0,I,void 0,void 0,void 0,I.adSlotLoggingData,void 0,{errorType:"ADS_CLIENT_ERROR_TYPE_EXIT_SLOT_FAILED",
errorMessage:z})},Ni=function(a,z,I,J,r,P,N,u,E,O,f,A,n){n=n===void 0?0:n;
NbJ(a.experimentApiProvider.get(),"h5_enable_pacf_debug_logs")&&console.log("[PACF]: "+z,"slot:",P,"layout:",N,"ping:",u,"Opportunity:",{opportunityType:I,associatedSlotId:J,slotsFromOpportunity:r,triggerBundle:E,adSlotLoggingData:O,adLayoutLoggingData:f});try{var F=function(){a.experimentApiProvider.get();if(z!=="ADS_CLIENT_EVENT_TYPE_UNSPECIFIED"){z||_.Mh("Empty PACF event type",P,N);var h=a.eventLoggingSettingsProvider.get();var v;(v=h.alwaysIncludeDebugData)||(h.experimentApiProvider.get(),v=
!1);h=v;v={eventType:z,eventOrder:++a.eventCount};var d={};P&&(d.slotData=dXI(h,P));if(N){var W={type:N.layoutType,controlFlowManagerLayer:XN1.get(N.managerLayer)||"CONTROL_FLOW_MANAGER_LAYER_UNSPECIFIED"};h&&(W.debugData={layoutId:N.layoutId});d.layoutData=W}u&&(d.pingData={pingDispatchStatus:u.dispatchStatus,serializedAdPingMetadata:u.ping.serializedAdPingMetadata,pingIndex:u.index});E&&(d.triggerData=TKm(E.trigger,E.category));I&&(d.opportunityData=WFd(h,I,J,r));v.adClientData=d;O&&(v.serializedSlotAdServingData=
O.serializedSlotAdServingDataEntry);f&&(v.serializedAdServingData=f.serializedAdServingDataEntry);A&&(v.errorInfo=A);_.x0("adsClientStateChange",{adsClientEvent:v})}};
n&&n>0?_.b9(_.ig(),function(){return F()},n):F()}catch(h){NbJ(a.experimentApiProvider.get(),"html5_log_pacf_logging_errors")&&_.b9(_.ig(),function(){_.Mh(h instanceof Error?h:String(h),P,N,{pacf_message:"exception during pacf logging"})})}},CZ1=function(a,z,I){if(z){var J=z.adLayoutLoggingData;
_.b9(_.ig(),function(){a.premiumAdSeenEventLogger!=null&&J&&_.x0("adsSeenClientLogging",{serializedAdServingDataEntry:J.serializedAdServingDataEntry})},I!=null?I:0)}};var t1I=function(a,z){Zm1.call(this,a,z)};
_.b(t1I,Zm1);var ulw=function(){},NbJ=function(a,z){return _.K(z)};var Bb1=function(){var a=new EwJ;this.JSC$15375_adsControlFlowManager=(new PZ1(a)).JSC$15350_adsControlFlowManager},EwJ=function(){_.FC.call(this);
var a=this;this.experimentApiProvider=new kwO(function(){return new ulw});
var z=new kwO(function(){return new Mhw(a.experimentApiProvider)});
this.adEventLogger=new t1I(this.experimentApiProvider,z);this.registry={opportunityAdapterMap:new Map,fulfillmentAdapterFactoryMap:new Map,triggerAdapterMap:new Map,slotAdapterFactoryMap:new Map,layoutRenderingAdapterFactoryMap:new Map};this.listeners=[]};
_.b(EwJ,_.FC);var gwI=function(){},OmG,AL=function(){OmG||(OmG=new gwI);
return OmG},sA=function(a){if(!a.JSC$15386_externallyManagedSlotAdapterCallback){var z=(new Bb1).JSC$15375_adsControlFlowManager;
a.JSC$15386_externallyManagedSlotAdapterCallback=z}return a.JSC$15386_externallyManagedSlotAdapterCallback},f_w=function(a,z,I){var J=z.opportunityType,r=Error("Jh");
if(J!==void 0){var P=sA(a);cBE(P,J,void 0,I)}else _.Mh(r,void 0,void 0,{event:"onOpportunityReceivedExternallyManaged"});P=[];if(z.adSlotAndLayoutMetadata!==void 0){z=_.C(z.adSlotAndLayoutMetadata);for(var N=z.next();!N.done;N=z.next()){var u=N.value;if(N=u.adSlotMetadata)if(P.push(N),a.onSlotReceivedExternallyManaged(N,I),u.adLayoutMetadata){u=_.C(u.adLayoutMetadata);for(var E=u.next();!E.done;E=u.next())a.onLayoutReceivedExternallyManaged(N,E.value,I)}else I>0&&_.Mh("AdLayoutMetadata is not filled for PACFied response on TV for opportunity type: "+
J,void 0,void 0,{event:"onOpportunityReceivedExternallyManaged"});else I>0&&_.Mh("AdSlotMetadata is not filled for PACFied response on TV for opportunity type: "+J,void 0,void 0,{event:"onOpportunityReceivedExternallyManaged"})}}else I>0&&_.Mh("AdSlotAndLayoutMetadata is not filled for PACFied response on TV for opportunity type: "+J,void 0,void 0,{event:"onOpportunityReceivedExternallyManaged"});if(J!==void 0)a.onOpportunityProcessedExternallyManaged(J,P,void 0,I);else _.Mh(r,void 0,void 0,{event:"onOpportunityProcessedExternallyManaged"})};
gwI.prototype.onSlotReceivedExternallyManaged=function(a,z){a=Id(a);if(a instanceof z0)_.Mh(a,void 0,void 0,{event:"onSlotReceivedExternallyManaged"});else sA(this).onSlotReceivedExternallyManaged(a,z)};
gwI.prototype.onLayoutReceivedExternallyManaged=function(a,z,I){a=Id(a);z=DX7(z);if(a instanceof z0)_.Mh(a,void 0,void 0,{event:"onLayoutReceivedExternallyManaged"});else if(z instanceof JQ)_.Mh(z,void 0,void 0,{event:"onLayoutReceivedExternallyManaged"});else sA(this).onLayoutReceivedExternallyManaged(a,z,I)};
gwI.prototype.onOpportunityProcessedExternallyManaged=function(a,z,I,J){var r=[];z=_.C(z);for(var P=z.next();!P.done;P=z.next())P=Id(P.value),P instanceof z0?_.Mh(P,void 0,void 0,{event:"onOpportunityProcessedExternallyManaged"}):r.push(P);sA(this).onOpportunityProcessedExternallyManaged(a,r,I,J)};
var Akv=function(a,z){z=Id(z);if(z instanceof z0)_.Mh(z,void 0,void 0,{event:"onSlotScheduledAndEnteredExternallyManaged"});else{var I=sA(a);tL(I.adEventLogger,"ADS_CLIENT_EVENT_TYPE_SLOT_SCHEDULED",z);I=_.C(I.adsControlFlowEventListeners);for(var J=I.next();!J.done;J=I.next())J=u$(J.value,z),J.slotLifecycleStage!=="not_scheduled"&&gt(J.slot,J.slotLifecycleStage,"onSlotScheduled"),J.slotLifecycleStage="scheduled";a=sA(a);tL(a.adEventLogger,"ADS_CLIENT_EVENT_TYPE_SLOT_ENTERED",z);a=_.C(a.adsControlFlowEventListeners);
for(I=a.next();!I.done;I=a.next())I.value.onSlotEntered(z)}},s8f=function(a,z){z=Id(z);
if(z instanceof z0)_.Mh(z,void 0,void 0,{event:"onSlotExitedAndUnscheduledExternallyManaged"});else{var I=sA(a);tL(I.adEventLogger,"ADS_CLIENT_EVENT_TYPE_SLOT_EXITED",z);I=_.C(I.adsControlFlowEventListeners);for(var J=I.next();!J.done;J=I.next())J.value.onSlotExited(z);a=sA(a);tL(a.adEventLogger,"ADS_CLIENT_EVENT_TYPE_SLOT_UNSCHEDULED",z);a=_.C(a.adsControlFlowEventListeners);for(I=a.next();!I.done;I=a.next())I.value.onSlotUnscheduled(z)}},nwf=function(a,z,I){z=Id(z);
I=DX7(I);if(z instanceof z0)_.Mh(z,void 0,void 0,{event:"onLayoutScheduledAndEnteredExternallyManaged"});else if(I instanceof JQ)_.Mh(I,void 0,void 0,{event:"onLayoutScheduledAndEnteredExternallyManaged"});else{var J=sA(a);BM(J.adEventLogger,"ADS_CLIENT_EVENT_TYPE_LAYOUT_SCHEDULED",z,I);J=_.C(J.adsControlFlowEventListeners);for(var r=J.next();!r.done;r=J.next())r.value.onLayoutScheduled(z,I);a=sA(a);BM(a.adEventLogger,"ADS_CLIENT_EVENT_TYPE_LAYOUT_ENTERED",z,I);a=_.C(a.adsControlFlowEventListeners);
for(J=a.next();!J.done;J=a.next())eMf(J.value,z,I)}},nA=function(a,z,I){z=Id(z);
I=DX7(I);if(z instanceof z0)_.Mh(z,void 0,void 0,{event:"onLayoutExitedAndUnscheduledExternallyManaged"});else if(I instanceof JQ)_.Mh(I,void 0,void 0,{event:"onLayoutExitedAndUnscheduledExternallyManaged"});else{var J=sA(a);BM(J.adEventLogger,$Xi("normal"),z,I);J=_.C(J.adsControlFlowEventListeners);for(var r=J.next();!r.done;r=J.next())r.value.onLayoutExited(z,I,"normal");a=sA(a);a=_.C(a.adsControlFlowEventListeners);for(J=a.next();!J.done;J=a.next())zdI(J.value,z,I)}};_.KA=_.ec(function(a){var z=_.q3(a,{targetHeight:void 0,targetWidth:void 0,preserveHeight:!1,preserveWidth:!1,useWidth:!1,setOnErrorHandler:!1,setProgressiveImageLoading:!1,listenToTapEvent:!1,isGridViewEnabled:!1});a=Object.assign({},z);var I=z.data;z=z.customCommandResolver;var J=(delete a.data,delete a.customCommandResolver,a);a=_.z$({visibilityCallback:function(u,E){var O,f=(O=I().interaction)==null?void 0:O.onFirstVisible;u&&(f&&_.lN(f),J.setOnErrorHandler()&&Rr1(E))},
showOption:_.PX});z=_.wi(function(){return I().interaction},z,function(){var u;
return(u=J.listenToTapEvent)==null?void 0:u.call(J)});
var r=_.C(_.CW(!1,void 0,"nqIeMd")),P=r.next().value,N=r.next().value;r=_.g4(function(u){var E;((E=J.setTouchEndHandler)==null?0:E.call(J))&&!P()&&(u.currentTarget.click(),N(!0),setTimeout(function(){N(!1)},100));
return!1});
return _.B("ad-image-view-model",{class:function(){var u,E=[((u=I().interaction)==null?0:u.onTap)?"ytwAdImageViewModelHostIsClickableAdComponent":"ytwAdImageViewModelHost"],O;((O=J.isGridViewEnabled)==null?0:O.call(J))&&E.push("ytwAdImageViewModelHostInGridView");return E.join(" ")},
el:_.a5(a,z),"on:touchend":r},_.B("div",{class:"ytwAdImageViewModelHostImageContainer"},_.B(_.qp,{data:function(){var u;return{sources:I().imageSources,contentMode:(u=I().imageProperties)==null?void 0:u.contentMode}},
alt:function(){var u,E;return((u=I().interaction)==null?void 0:(E=u.accessibility)==null?void 0:E.label)||""},
targetHeight:J.targetHeight,targetWidth:J.targetWidth,preserveHeight:J.preserveHeight,preserveWidth:J.preserveWidth,useWidth:J.useWidth,style:function(){var u,E;return"vertical-align: bottom;"+(((u=I().background)==null?0:u.color)?"background-color:"+_.Da((E=I().background)==null?void 0:E.color)+";":"")},
className:function(){return J.setProgressiveImageLoading()?"ytwAdImageViewModelHostImage":void 0},
draggable:function(){var u,E;return(E=(u=J.setDraggable)==null?void 0:u.call(J))!=null?E:void 0}})))},"qb");var K4o=_.ec(function(a){var z=a.data,I=a.listenToTapEvent,J=function(){};
return _.B("ad-button-hover-overlay-view-model",{"on:click":_.g4(function(r){if(_.K("enable_web_home_top_landscape_image_layout_legacy_click_command")){var P,N=(P=z().interaction)==null?void 0:P.onTap;N&&_.PA(r.currentTarget,"yt-navigate",{endpoint:_.o0(N)})}}),
class:function(){var r;return((r=z().interaction)==null?0:r.onTap)?"ytwAdButtonHoverOverlayViewModelHostIsClickableAdComponent":"ytwAdButtonHoverOverlayViewModelHost"},
el:_.a5(_.z$({visibilityCallback:function(r){var P,N=(P=z().interaction)==null?void 0:P.onFirstVisible;r&&N&&_.lN(N)},
showOption:_.PX}),_.wi(function(){return z().interaction},void 0,function(){return!_.K("enable_web_home_top_landscape_image_layout_legacy_click_command")&&(I==null?void 0:I())}))},function(){return _.K("enable_web_home_top_landscape_image_layout_legacy_click_command")?_.B(_.V0,{data:function(){return z().button}},{adButtonViewModel:function(r){return _.B(_.C0,{data:r.data,
customCommandResolver:J})}}):_.B(_.V0,{data:function(){return z().button}},{adButtonViewModel:_.C0})}())},"rb");var rs;_.Jf(_.ec(function(a){var z=a.data;a=_.z$({visibilityCallback:function(u,E){if(u){var O;(u=(O=z().interaction)==null?void 0:O.onFirstVisible)&&_.lN(u);var f;if(O=(f=z().adLayoutData)==null?void 0:f.activeViewData)P0(E,O),_.K("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&Zk(E)})}else _.K("stop_av_measurement_on_detach")&&Zk(E)},
showOption:_.PX,hideOption:ZX});var I=_.wi(function(){return z().interaction},void 0,function(){return!0}),J=_.C(_.CW(!1,void 0,"K1MNM")),r=J.next().value,P=J.next().value;
J=_.g4(function(){P(!0)});
var N=_.g4(function(){P(!1)});
return _.B("compact-landscape-no-button-layout-view-model",{class:"ytwCompactLandscapeNoButtonLayoutViewModelHost",el:_.a5(a,kKG,I),"on:mouseenter":J,"on:mouseleave":N},_.B("div",{class:"ytwCompactLandscapeNoButtonLayoutViewModelHostImageHoverOverlayContainer",style:_.sW({"max-width":function(){return _.K("enable_desktop_search_bigger_thumbs")?"500px":"360px"}})},_.B("div",{class:function(){var u;
a:{var E;switch((u=_.H(z().thumbnailImage,DHl))==null?void 0:(E=u.imageProperties)==null?void 0:E.renderingAspect){case "RENDERING_ASPECT_SQUARE":u="ytwCompactLandscapeNoButtonLayoutViewModelHostImageHoverOverlayContainerSquareImageContainer";break a;case "RENDERING_ASPECT_LANDSCAPE":u="ytwCompactLandscapeNoButtonLayoutViewModelHostImageHoverOverlayContainerLandscapeImageContainer";break a}u=void 0}return u}},_.B(_.V0,{data:function(){return z().thumbnailImage}},{adImageViewModel:function(u){return _.B(_.KA,
{data:u.data,
listenToTapEvent:!0,setTouchEndHandler:_.K("enable_top_landscape_image_experiment_dom_id_web")})}})),_.B("div",{class:"ytwCompactLandscapeNoButtonLayoutViewModelHostImageHoverOverlayContainerOverlayIcon"},_.B(_.g,{cond:function(){var u,E,O;
return(u=_.H(z().thumbnailImage,DHl))==null?void 0:(E=u.imageProperties)==null?void 0:(O=E.overlayIcon)==null?void 0:O.iconImage},
then:function(u){return _.B(_.qp,{data:u,alt:"",className:"ytwCompactLandscapeNoButtonLayoutViewModelHostImageHoverOverlayContainerOverlayIconIconShape"})}})),_.B("div",{class:function(){return r()?"ytwCompactLandscapeNoButtonLayoutViewModelHostImageHoverOverlayContainerAdButtonHoverOverlayVisible":"ytwCompactLandscapeNoButtonLayoutViewModelHostImageHoverOverlayContainerAdButtonHoverOverlay"}},_.B(_.V0,{data:function(){return z().adButtonHoverOverlay}},{adButtonHoverOverlayViewModel:function(u){return _.B(K4o,
{data:u.data,
listenToTapEvent:!0})}}))),_.B("div",{class:"ytwCompactLandscapeNoButtonLayoutViewModelHostMetadata"},_.B(_.V0,{data:function(){return z().feedAdMetadata}},{feedAdMetadataViewModel:function(u){return _.B(igl,{data:u.data,
listenToTapEvent:!0,setTouchEndHandler:_.K("enable_top_landscape_image_experiment_dom_id_web")})}})))},"sb"),"compact-landscape-no-button-layout-view-model",{props:{data:_.zl}});_.Jf(_.ec(function(a){var z=a.data;a=_.z$({visibilityCallback:function(u,E){if(u){var O;(u=(O=z().interaction)==null?void 0:O.onFirstVisible)&&_.lN(u);var f;if(O=(f=z().adLayoutData)==null?void 0:f.activeViewData)P0(E,O),_.K("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&Zk(E)})}else _.K("stop_av_measurement_on_detach")&&Zk(E)},
showOption:_.PX,hideOption:ZX});var I=_.o5(_.W8),J=_.wi(function(){return z().interaction}),r={},P={},N={};
return _.B("square-image-layout-view-model",{class:_.B8("ytwSquareImageLayoutViewModelHost",(r.ytwSquareImageLayoutViewModelHostColumn=I,r)),el:_.a5(a,M3G,J)},_.B("div",{class:_.B8("ytwSquareImageLayoutViewModelHostImage",(P.ytwSquareImageLayoutViewModelHostColumnImage=I,P))},function(){return _.B(_.V0,{data:function(){return z().adImage}},{adImageViewModel:function(u){return _.B(_.KA,{data:u.data,
isGridViewEnabled:I,targetHeight:168,setOnErrorHandler:!0,setDraggable:!1,setProgressiveImageLoading:!0})}})}()),_.B("div",{class:_.B8("ytwSquareImageLayoutViewModelHostMetadataButtonContainer",(N.ytwSquareImageLayoutViewModelHostColumnMetadataButtonContainer=I,N))},_.B(_.V0,{data:function(){return z().feedAdMetadata}},{feedAdMetadataViewModel:igl}),function(){return _.B(_.V0,{data:function(){return z().adButton}},{adButtonViewModel:function(u){var E={};
return _.B(_.C0,{data:u.data,className:_.B8((E.ytwSquareImageLayoutViewModelHostMetadataButtonContainerButton=!0,E.ytwSquareImageLayoutViewModelHostColumnMetadataButtonContainerButton=I,E))})}})}()))},"tb"),"square-image-layout-view-model",{props:{data:_.zl}});_.Jf(_.ec(function(a){var z=a.data;var I=a.noBottomMargin;var J=a.typographyBump;a=_.z$({visibilityCallback:function(A,n){if(A){var F;(A=(F=z().interaction)==null?void 0:F.onFirstVisible)&&_.lN(A);var h;if(F=(h=z().adLayoutData)==null?void 0:h.activeViewData)P0(n,F),_.K("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&Zk(n)})}else _.K("stop_av_measurement_on_detach")&&Zk(n)},
showOption:_.PX,hideOption:ZX});var r=_.wi(function(){return z().interaction},void 0,function(){return _.K("enable_web_home_top_landscape_image_layout_level_click")}),P=function(){return z().interaction};
P!==void 0&&P!==null||_.RL(Error("Kh"));var N=function(){var A,n,F;return(A=_.H(z().thumbnailImage,DHl))==null?void 0:(n=A.background)==null?void 0:(F=n.backgroundImageSource)==null?void 0:F.imageSources};
P=_.C(_.CW(!1,void 0,"pZPLOd"));var u=P.next().value,E=P.next().value;P=_.g4(function(){E(!0)});
var O=_.g4(function(){E(!1)}),f=function(){return u()?"ytwTopLandscapeImageLayoutViewModelHostImageHoverOverlayContainerAdButtonHoverOverlayVisible":"ytwTopLandscapeImageLayoutViewModelHostImageHoverOverlayContainerAdButtonHoverOverlay"};
return _.B("top-landscape-image-layout-view-model",{class:function(){var A;return((A=z().interaction)==null?0:A.onTap)&&_.K("enable_web_home_top_landscape_image_layout_level_click")?"ytwTopLandscapeImageLayoutViewModelHostIsClickableAdComponent":"ytwTopLandscapeImageLayoutViewModelHost"},
el:_.a5(a,cbp,r),"on:mouseenter":P,"on:mouseleave":O},_.B("div",{class:"ytwTopLandscapeImageLayoutViewModelHostImageHoverOverlayContainer"},_.B(_.g,{cond:function(){return N()&&N().length>0},
then:function(){return _.B("div",{class:"ytwTopLandscapeImageLayoutViewModelHostImageHoverOverlayContainerBackgroundImage",style:_.sW({top:"0","background-image":function(){return"url("+String(N()[0].url)+")"},
"background-position":"center","background-repeat":"no-repeat","background-size":"100% 100%"})})}}),_.B(_.g,{cond:function(){return!!z().adButtonHoverOverlay},
then:function(){return _.B("div",{class:f},_.B(_.V0,{data:function(){return z().adButtonHoverOverlay}},{adButtonHoverOverlayViewModel:K4o}))}}),_.B("div",{class:"ytwTopLandscapeImageLayoutViewModelHostImageHoverOverlayContainerImage"},_.B(_.V0,{data:function(){return z().thumbnailImage}},{adImageViewModel:function(A){return _.B(_.KA,{data:A.data,
targetWidth:1152,useWidth:!0,setTouchEndHandler:!1,listenToTapEvent:_.K("enable_web_home_top_landscape_image_layout_level_click")})}})),_.B("div",{class:"ytwTopLandscapeImageLayoutViewModelHostImageHoverOverlayContainerOverlayIcon"},_.B(_.qp,{data:{sources:[{clientResource:{imageName:_.K("swap_open_in_new_with_arrow_diagonal_up_right_on_desktop")?"arrow_diagonal_up_right":"EXTERNAL_LINK"}}]},
alt:"",className:"ytwTopLandscapeImageLayoutViewModelHostImageHoverOverlayContainerOverlayIconIconShape"}))),_.B("div",{class:"ytwTopLandscapeImageLayoutViewModelHostMetadata"},_.B(_.V0,{data:function(){return z().feedAdMetadata}},{feedAdMetadataViewModel:function(A){return _.B(igl,{data:A.data,
noBottomMargin:function(){return I==null?void 0:I()},
listenToTapEvent:function(){return _.K("enable_web_home_top_landscape_image_layout_level_click")},
typographyBump:function(){return J==null?void 0:J()}})}})))},"ub"),"top-landscape-image-layout-view-model",{props:{data:_.zl,
noBottomMargin:_.zl,typographyBump:_.zl}});_.Jf(_.ec(function(a){var z=a.data;var I=a.typographyBump;return _.B("video-display-button-group-layout-view-model",{class:"ytwVideoDisplayButtonGroupLayoutViewModelHost",el:_.a5(_.z$({visibilityCallback:function(J,r){if(J){var P;(J=(P=z().interaction)==null?void 0:P.onFirstVisible)&&_.lN(J);var N;(P=(N=z().adLayoutData)==null?void 0:N.activeViewData)&&P0(r,P)}},
showOption:_.PX,hideOption:ZX}))},_.B("div",null,_.B(_.V0,{data:function(){return z().videoLockup}},{lockupViewModel:function(J){return _.B(_.Ou,{data:J.data,
containerLayoutConfig:{containerType:"CONTAINER_TYPE_GRID"},lockupExperiments:{useRichGridLegacyMargin:!0,useLegacySizedIconButton:!0},thumbnailTargetWidth:9999,typographyBump:I})}})))},"vb"),"video-display-button-group-layout-view-model",{props:{data:_.zl,
noBottomMargin:_.zl,typographyBump:_.zl}});_.Jf(_.ec(function(a){var z=a.data;var I=a.className;var J=a.typographyBump;return _.B("video-display-compact-button-group-layout-view-model",{el:_.a5(_.z$({visibilityCallback:function(r,P){if(r){var N;(r=(N=z().interaction)==null?void 0:N.onFirstVisible)&&_.lN(r);var u;(N=(u=z().adLayoutData)==null?void 0:u.activeViewData)&&P0(P,N)}},
showOption:_.PX})),class:_.B8("videoDisplayCompactButtonGroupLayoutViewModelHost",I)},_.B(_.V0,{data:function(){return z().videoLockup}},{lockupViewModel:function(r){return _.B(_.Ou,{data:r.data,
containerLayoutConfig:{containerType:"CONTAINER_TYPE_VERTICAL_LIST"},lockupExperiments:{useRichGridLegacyMargin:!0,useLegacySizedIconButton:!0},thumbnailFixedWidth:"50%",typographyBump:J})}}))},"wb"),"video-display-compact-button-group-layout-view-model",{props:{data:_.zl,
className:_.zl,typographyBump:_.zl}});_.Jf(_.ec(function(a){var z=a.data;var I=a.className;var J=a.typographyBump;return _.B("video-display-compact-buttoned-layout-view-model",{el:_.a5(_.z$({visibilityCallback:function(r,P){if(r){var N;(r=(N=z().interaction)==null?void 0:N.onFirstVisible)&&_.lN(r);var u;(N=(u=z().adLayoutData)==null?void 0:u.activeViewData)&&P0(P,N)}},
showOption:_.PX})),class:_.B8("videoDisplayCompactButtonedLayoutViewModelHost",I)},_.B(_.V0,{data:function(){return z().videoLockup}},{lockupViewModel:function(r){return _.B(_.Ou,{data:r.data,
containerLayoutConfig:{containerType:"CONTAINER_TYPE_VERTICAL_LIST"},lockupExperiments:{useRichGridLegacyMargin:!0,useLegacySizedIconButton:!0},thumbnailFixedWidth:"50%",typographyBump:J})}}))},"xb"),"video-display-compact-buttoned-layout-view-model",{props:{data:_.zl,
className:_.zl,typographyBump:_.zl}});_.Jf(_.ec(function(a){var z=a.data;var I=a.className;var J=a.typographyBump;var r=function(){return z().adRenderingContextType==="AD_RENDERING_CONTEXT_TYPE_WATCH_NEXT"},P=_.o5(_.W8);
a=_.z$({visibilityCallback:function(O,f){if(O){var A=z();O=A.adLayoutData;var n;(A=(n=A.interaction)==null?void 0:n.onFirstVisible)&&_.lN(A);(n=O==null?void 0:O.activeViewData)&&P0(f,n)}},
showOption:_.PX});var N=_.Bg(function(){return{containerType:r()&&P()?"CONTAINER_TYPE_GRID":"CONTAINER_TYPE_VERTICAL_LIST"}},void 0,"BXJVJ"),u=_.Bg(function(){return r()&&P()?"":r()?"168px":"50%"},void 0,"ikSkm"),E=_.Bg(function(){return r()&&P()?9999:void 0},void 0,"M8rucc");
return _.B("video-display-compact-layout-view-model",{el:_.a5(a),class:_.B8("videoDisplayCompactLayoutViewModelHost",I)},_.B(_.V0,{data:function(){return z().videoLockup}},{lockupViewModel:function(O){return _.B(_.Ou,{data:O.data,
containerLayoutConfig:N,lockupExperiments:{useRichGridLegacyMargin:!0,useLegacySizedIconButton:!0},thumbnailFixedWidth:u,thumbnailTargetWidth:E,typographyBump:J})}}))},"yb"),"video-display-compact-layout-view-model",{props:{data:_.zl,
className:_.zl,typographyBump:_.zl}});_.Jf(_.ec(function(a){var z=a.data;var I=a.typographyBump;return _.B("video-display-full-layout-view-model",{class:"ytwVideoDisplayFullLayoutViewModelHost",el:_.a5(_.z$({visibilityCallback:function(J,r){if(J){var P;(J=(P=z().interaction)==null?void 0:P.onFirstVisible)&&_.lN(J);var N;(P=(N=z().adLayoutData)==null?void 0:N.activeViewData)&&P0(r,P)}},
showOption:_.PX,hideOption:ZX}))},_.B("div",null,_.B(_.V0,{data:function(){return z().videoLockup}},{lockupViewModel:function(J){return _.B(_.Ou,{data:J.data,
containerLayoutConfig:{containerType:"CONTAINER_TYPE_GRID"},lockupExperiments:{useRichGridLegacyMargin:!0},thumbnailTargetWidth:9999,typographyBump:I})}})))},"zb"),"video-display-full-layout-view-model",{props:{data:_.zl,
noBottomMargin:_.zl,typographyBump:_.zl}});_.F4J=_.ec(function(a){var z=a.data;a=_.Mm("ad-card-badge-view-model");return _.B("ad-card-badge-view-model",{class:function(){return"ytwAdCardBadgeViewModelHost"},
el:a},_.B(_.g,{cond:function(){return z().imageBadge},
then:function(I){return _.B(_.qp,{data:I,alt:""})}}))},"Ab");var HmX=_.ec(function(a){var z=a.data;var I=a.customCommandResolver;return _.B("carousel-ad-card-image-view-model",{class:function(){var J;return((J=z().interaction)==null?0:J.onTap)?"ytwCarouselAdCardImageViewModelHostIsClickableAdComponent":"ytwCarouselAdCardImageViewModelHost"},
el:_.a5(_.z$({visibilityCallback:function(J){var r,P=(r=z().interaction)==null?void 0:r.onFirstVisible;J&&P&&_.lN(P)},
showOption:_.PX}),_.wi(function(){return z().interaction},I)),
"aria-label":function(){var J,r;return(J=z().interaction)==null?void 0:(r=J.accessibility)==null?void 0:r.label}},_.B(_.V0,{data:function(){return z().adImage}},{adImageViewModel:function(J){return _.B(_.KA,{data:J.data,
customCommandResolver:I})}}),_.B("div",{class:"ytwCarouselAdCardImageViewModelHostCardBadge"},_.B(_.V0,{data:function(){return z().badge}},{adCardBadgeViewModel:_.F4J})),_.B(_.Bc,{model:{color:4}}))},"Bb");var bm1=_.ec(function(a){var z=_.C(_.CW(0,void 0,"o9Bzd")),I=z.next().value;z.next();var J=z.next().value,r=_.C(_.CW(!1,void 0,"KLdzYe"));z=r.next().value;var P=r.next().value,N;_.V3(function(){clearTimeout(N)});
r=_.g4(function(){var O;((O=a.animate)==null?0:O.call(a))?(P(!0),N=setTimeout(function(){P(!1);u()},200)):u();
return!1});
var u=function(){J(function(O){return(O+a.numShownItems())%a.data().length})},E={};
return _.B("horizontal-carousel",{class:"ytwHorizontalCarouselHost"},_.B("div",{class:_.B8("ytwHorizontalCarouselCarouselWrapper")},_.B("div",{class:_.B8("ytwHorizontalCarouselCarouselInnerWrapper",(E.ytwHorizontalCarouselAnimating=z,E))},_.B(_.se,{each:a.data,keyBy:"INDEX"},function(O,f){return _.B("div",{class:"ytwHorizontalCarouselCarouselItem",style:_.sW({"flex-basis":function(){return"calc((100% - (8px * "+(a.numShownItems()-1)+")) / "+a.numShownItems()+")"},
order:function(){var A=f-I();A<0&&(A+=a.data().length);return A}})},a.children(O,f))}))),_.B("div",{class:"ytwHorizontalCarouselNextButton",
"on:click":r},a.nextButton()))},"Cb");var hdj=_.ec(function(a){var z=a.data;var I=a.customCommandResolver;var J=a.expansive;return _.B("carousel-ad-card-collection-view-model",{class:"ytwCarouselAdCardCollectionViewModelHost",el:_.a5(_.z$({visibilityCallback:function(r){var P,N=(P=z().interaction)==null?void 0:P.onFirstVisible;r&&N&&_.lN(N)},
showOption:_.PX}))},_.B(bm1,{data:function(){var r;return((r=z())==null?void 0:r.carouselAdCards)||[]},
nextButton:function(){return _.B(_.V0,{data:function(){return z().nextButton}},{buttonViewModel:function(r){var P=r.data;
return _.B(_.At,{data:function(){return(J==null?0:J())?Object.assign({},P(),{style:"mono"}):P()},
className:_.K("web_enable_full_height_carousel_next_button")?"ytwCarouselAdCardCollectionViewModelFullHeightButton":""})}})},
numShownItems:3,animate:!0},function(r){return _.B(_.V0,{data:r},{carouselAdCardImageViewModel:function(P){return _.B(HmX,{data:P.data,customCommandResolver:I})}})}))},"Db");var V1I=_.ec(function(a){var z=a.data;var I=a.customCommandResolver;var J=a.className;var r=a.buttonClassName;var P=a.animationEntityKey;var N=a.expansive;return _.B("carousel-button-view-model",{class:_.B8("ytwCarouselButtonViewModelHost",J)},_.B(_.V0,{data:function(){return z().carousel}},{carouselAdCardCollectionViewModel:function(u){return _.B(hdj,{data:u.data,
customCommandResolver:I,expansive:N})}}),_.B(_.V0,{data:function(){return z().button}},{adButtonViewModel:function(u){var E=u.data;
return _.B(_.C0,{data:function(){return(N==null?0:N())?Object.assign({},E(),{style:"AD_BUTTON_STYLE_TONAL"}):E()},
className:r,customCommandResolver:I,animationEntityKey:P})}}))},"Eb");_.Q8w=_.ec(function(a){var z=a.data;a=a.className;var I=_.Mm("pivot-button-view-model");_.QO(function(){var J;((J=z())==null?0:J.backgroundColor)&&I.value.setAttribute("data-background-color",String(z().backgroundColor))});
return _.B("pivot-button-view-model",{el:I,class:_.B8("ytwPivotButtonViewModelHost",a)},_.B(_.lq,{command:function(){var J=z();J=J.onClickCommand?_.o0(J.onClickCommand):J.contentDescription?_.jt(J.contentDescription):void 0;return J},
ariaLabel:function(){return z().contentDescription}},_.B(_.g,{cond:function(){return z().thumbnail},
then:function(J){return _.B(_.qp,{data:J,alt:"",className:"ytwPivotButtonViewModelHostImage"})},
else:function(){return _.B(_.g,{cond:function(){return z().icon},
then:function(J){return _.B(_.nS,{icon:function(){return J().iconType},
className:"ytwPivotButtonViewModelHostIcon"})}})}})))},"Fb");_.S6I=_.ec(function(a){var z=a.data;var I=a.buttonShapeOverrideables;return _.B("reel-action-bar-view-model",{class:"ytwReelActionBarViewModelHost"},_.B(_.V0,{data:function(){return z().buttonViewModels}},{buttonViewModel:function(J){return _.B(_.At,{data:J.data,
buttonOverrides:I})},
likeButtonViewModel:function(J){return _.B(_.Ld,{data:J.data,buttonShapeOverrideables:I})},
dislikeButtonViewModel:function(J){return _.B(_.Rp,{data:J.data,buttonShapeOverrideables:I})},
toggleButtonViewModel:function(J){return _.B(_.Wc,{data:J.data,buttonShapeOverrides:I})}}))},"Gb");var imf=_.ec(function(a){var z=a.avatar;var I=a.headline;var J=a.badge;var r=a.description;var P=a.expansive;a={};return _.B("yt-ad-metadata-shape",{class:_.B8("ytAdMetadataShapeHost",(a.ytAdMetadataShapeHostLarge=P,a))},_.B("div",{class:"ytAdMetadataShapeHostAvatarLockup"},_.B(_.g,{cond:z,then:function(N){return _.B(_.hrG,{data:function(){return(P==null?0:P())?Object.assign({},N(),{size:"AD_AVATAR_SIZE_MPLUS"}):N()}})}}),_.B("div",{class:"ytAdMetadataShapeHostHeadlineContainer"},_.B(_.xs,{text:I,
className:"ytAdMetadataShapeHostHeadline",linkInheritColor:!0}),_.B(_.g,{cond:J,then:function(N){return _.B(_.BX,{data:function(){return(P==null?0:P())?Object.assign({},N(),{style:"AD_BADGE_STYLE_STARK"}):N()},
adRenderingContextType:"AD_RENDERING_CONTEXT_TYPE_REELS"})}}))),_.B("h2",{class:"ytAdMetadataShapeHostDescription"},_.B(_.xs,{text:r,
linkInheritColor:!0})))},"Hb");var x9i=_.ec(function(a){var z=a.data;var I=a.onShow;var J=a.expansive;a=_.wi(function(){return z().interaction});
_.QO(function(){var P,N=(P=z().animatedRenderingConfig)==null?void 0:P.delayedSecondsToVisible;if(N){var u=setTimeout(I,N*1E3);_.V3(function(){clearTimeout(u)})}});
var r={};return _.B("reels-ad-card-buttoned-view-model",{class:_.B8(function(){var P;return((P=z().interaction)==null?0:P.onTap)?"ytwReelsAdCardButtonedViewModelHostIsClickableAdComponent":"ytwReelsAdCardButtonedViewModelHost"},(r.ytwReelsAdCardButtonedViewModelHostExpansive=J,r)),
el:_.a5(a)},_.B(imf,{avatar:function(){return _.H(z().avatar,oBf)},
headline:function(){return z().headline},
badge:function(){return _.H(z().adBadge,UHv)},
description:function(){return z().description},
expansive:J}),_.B(_.V0,{data:function(){return z().ctaButton}},{adButtonViewModel:function(P){var N=P.data;
return _.B(_.C0,{data:function(){return(J==null?0:J())?Object.assign({},N(),{style:"AD_BUTTON_STYLE_FILLED"}):N()}})}}))},"Ib");var vwv=_.ec(function(a){var z=a.data;a=a.expansive;var I=_.K("web_ad_metadata_clickable")?_.wi(function(){return z().interaction},void 0,function(){return _.K("web_ad_metadata_clickable")}):void 0,J={};
J=_.$c("ytwReelsAdMetadataViewModelHost",(J.ytwReelsAdMetadataViewModelHostIsClickableAdComponent=_.K("web_ad_metadata_clickable"),J));return _.B("reels-ad-metadata-view-model",{class:J,el:_.a5(I)},_.B(imf,{avatar:function(){return _.H(z().avatar,oBf)},
headline:function(){return z().headline},
badge:function(){return _.H(z().adBadge,UHv)},
description:function(){return z().description},
expansive:a}))},"Jb");var GMl={iconPosition:"icon-with-label",size:"L"},$9i=_.ec(function(a){var z=a.data;var I=a.overlayDensity;a=_.Mm("reels-player-overlay-layout-view-model");var J=_.Yi(I,0),r=function(){var A;return(A=z().reelsAdCardButtonedEntityKey)!=null?A:""},P=function(){return r()+"/ad_button"},N=_.KU(Tl1,r),u=function(){var A,n;
return(n=(A=N())==null?void 0:A.value)!=null?n:!1},E=_.o5(YQx),O=function(){return Object.assign({},GMl,(E()||J()===2)&&{style:"overlay-dark"})};
I={};var f={};return _.B("reels-player-overlay-layout-view-model",{class:_.B8("ytwReelsPlayerOverlayLayoutViewModelHost",(I.ytwReelsPlayerOverlayLayoutViewModelHostHasExtension=function(){return!!z().extension},I.ytwReelsPlayerOverlayLayoutViewModelHostDesktop=function(){return!0},I)),
"overlay-density":function(){return String(J())},
el:a},_.B("div",{class:_.B8("ytwReelsPlayerOverlayLayoutViewModelHostMetadataContainer",(f.ytwReelsPlayerOverlayLayoutViewModelHostMetadataContainerEnableBorderRadius=function(){return!0},f))},_.B("div",{"aria-hidden":function(){return u()},
class:_.B8("ytwReelsPlayerOverlayLayoutViewModelHostAnimatingContainer",function(){return u()?"ytwReelsPlayerOverlayLayoutViewModelHide":"ytwReelsPlayerOverlayLayoutViewModelShow"}),
style:_.sW({"transition-duration":function(){return j$G(z())}})},_.B(_.V0,{data:function(){return z().adMetadata}},{reelsAdMetadataViewModel:function(A){return _.B(vwv,{data:A.data,
expansive:function(){return J()===1}})}}),_.B(_.g,{cond:function(){return z().extension},
then:function(A){return _.B("div",{class:"ytwReelsPlayerOverlayLayoutViewModelHostExtension"},_.B(_.V0,{data:A},{adButtonViewModel:function(n){return _.B(_.C0,{data:n.data,animationEntityKey:P,delayedClassName:"ytwReelsPlayerOverlayLayoutViewModelTopMargin"})},
carouselButtonViewModel:function(n){return _.B(V1I,{data:n.data,animationEntityKey:P,className:"ytwReelsPlayerOverlayLayoutViewModelTopMargin",expansive:function(){return J()===1}})}}))}})),_.B("div",{"aria-hidden":function(){return!u()},
class:_.B8("ytwReelsPlayerOverlayLayoutViewModelHostAnimatingContainer",function(){return u()?"ytwReelsPlayerOverlayLayoutViewModelShow":"ytwReelsPlayerOverlayLayoutViewModelHide"}),
style:_.sW({"transition-duration":function(){return j$G(z())}})},_.B(_.V0,{data:function(){return z().reelsAdCardButtoned}},{reelsAdCardButtonedViewModel:function(A){return _.B(x9i,{data:A.data,
onShow:function(){_.cK(_.Q0("booleanEntity",r(),{key:r(),value:!0}))},
expansive:function(){return J()===1}})}}))),_.B("div",{class:"ytwReelsPlayerOverlayLayoutViewModelHostActionBar"},_.B(_.V0,{data:function(){return z().actions}},{reelActionBarViewModel:function(A){return _.B(_.S6I,{data:A.data,
buttonShapeOverrideables:O})}}),_.B(_.V0,{data:function(){return z().menu}},{buttonViewModel:function(A){return _.B(_.At,{data:A.data,
className:"ytwReelsPlayerOverlayLayoutViewModelHostMenuButton",buttonOverrides:function(){return Object.assign({},O(),{type:"tonal"})}})}}),_.B(_.V0,{data:function(){return z().pivotButton}},{pivotButtonViewModel:function(A){return _.B(_.Q8w,{data:A.data,
className:"ytwReelsPlayerOverlayLayoutViewModelHostPivotButton"})}})))},"Kb");_.Jf($9i,"reels-player-overlay-layout-view-model",{props:{data:_.zl,overlayDensity:_.zl}});var F8=function(){var a=_.G.apply(this,arguments)||this;a.noBottomMargin=!1;a.overlayDensity=0;return a};
_.b(F8,_.G);_.Z=F8.prototype;
_.Z.configureRendererStamper=function(){return{"data.renderingContent":{id:"rendering-content",mapping:{carouselAdRenderer:"ytd-carousel-ad-renderer",compactPromotedVideoRenderer:"ytd-compact-promoted-video-renderer",displayAdRenderer:{component:"ytd-display-ad-renderer",properties:{noBottomMargin:"[[noBottomMargin]]"}},promotedSparklesTextSearchRenderer:"ytd-promoted-sparkles-text-search-renderer",promotedSparklesWebRenderer:"ytd-promoted-sparkles-web-renderer",squareImageLayoutViewModel:"square-image-layout-view-model",topLandscapeImageLayoutViewModel:{component:"top-landscape-image-layout-view-model",
properties:{noBottomMargin:"[[noBottomMargin]]",typographyBump:"[[typographyBump]]"}},videoDisplayButtonGroupLayoutViewModel:{component:"video-display-button-group-layout-view-model",properties:{noBottomMargin:"[[noBottomMargin]]",typographyBump:"[[typographyBump]]"}},videoDisplayFullLayoutViewModel:{component:"video-display-full-layout-view-model",properties:{noBottomMargin:"[[noBottomMargin]]",typographyBump:"[[typographyBump]]"}},videoDisplayCompactButtonGroupLayoutViewModel:{component:"video-display-compact-button-group-layout-view-model",
properties:{typographyBump:"[[typographyBump]]"}},videoDisplayCompactButtonedLayoutViewModel:{component:"video-display-compact-buttoned-layout-view-model",properties:{typographyBump:"[[typographyBump]]"}},videoDisplayCompactLayoutViewModel:{component:"video-display-compact-layout-view-model",properties:{typographyBump:"[[typographyBump]]"}},compactLandscapeNoButtonLayoutViewModel:"compact-landscape-no-button-layout-view-model",promotedVideoRenderer:"ytd-promoted-video-renderer",videoDisplayFullButtonedRenderer:_.K("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]]"}}}}}};
_.Z.ready=function(){var a=this;tOp(function(){a.isAttached&&ad(a.JSC$15430_storedAdSlotMetadata,a.JSC$15430_storedAdLayoutMetadata,a.adSlotMetadata,a.adLayoutMetadata)&&nA(AL(),a.JSC$15430_storedAdSlotMetadata,a.JSC$15430_storedAdLayoutMetadata)})};
_.Z.attached=function(){ad(this.JSC$15430_storedAdSlotMetadata,this.JSC$15430_storedAdLayoutMetadata,this.adSlotMetadata,this.adLayoutMetadata)&&nwf(AL(),this.JSC$15430_storedAdSlotMetadata,this.JSC$15430_storedAdLayoutMetadata)};
_.Z.detached=function(){ad(this.JSC$15430_storedAdSlotMetadata,this.JSC$15430_storedAdLayoutMetadata,this.adSlotMetadata,this.adLayoutMetadata)&&nA(AL(),this.JSC$15430_storedAdSlotMetadata,this.JSC$15430_storedAdLayoutMetadata)};
_.Z.onTypographyBumpChanged=function(){this.videoDisplayFullButtonedGroupRenderer&&(this.videoDisplayFullButtonedGroupRenderer.typographyBump=this.typographyBump)};
_.Z.onAdMetadataChanged=function(){this.adLayoutMetadata&&this.adSlotMetadata&&this.JSC$15430_storedAdLayoutMetadata!==this.adLayoutMetadata&&this.JSC$15430_storedAdSlotMetadata!==this.adSlotMetadata&&(this.isAttached&&(this.JSC$15430_storedAdLayoutMetadata!==void 0&&this.JSC$15430_storedAdSlotMetadata!==void 0&&nA(AL(),this.JSC$15430_storedAdSlotMetadata,this.JSC$15430_storedAdLayoutMetadata),nwf(AL(),this.adSlotMetadata,this.adLayoutMetadata)),this.JSC$15430_storedAdLayoutMetadata=this.adLayoutMetadata,
this.JSC$15430_storedAdSlotMetadata=this.adSlotMetadata)};
_.eH.Object.defineProperties(F8.prototype,{adLayoutMetadata:{configurable:!0,enumerable:!0,get:function(){var a;return(a=this.data)==null?void 0:a.adLayoutMetadata}}});
F8.prototype.onAdMetadataChanged=F8.prototype.onAdMetadataChanged;F8.prototype.onTypographyBumpChanged=F8.prototype.onTypographyBumpChanged;_.L([_.Q(_.u4.YtRendererstamperBehavior),_.p("design:type",Object)],F8.prototype,"ytRendererstamperBehavior",void 0);_.L([_.Q(_.k.YtRendererBehavior),_.p("design:type",Object)],F8.prototype,"rendererBehavior",void 0);_.L([_.Q(_.Ms.YtComponentBehavior),_.p("design:type",Object)],F8.prototype,"ytComponentBehavior",void 0);
_.L([_.x(),_.p("design:type",Object)],F8.prototype,"data",void 0);_.L([_.x(),_.p("design:type",Object)],F8.prototype,"noBottomMargin",void 0);_.L([_.x(),_.p("design:type",Object)],F8.prototype,"overlayDensity",void 0);_.L([_.x({value:!1}),_.p("design:type",Boolean)],F8.prototype,"typographyBump",void 0);_.L([_.S("data.adLayoutMetadata"),_.p("design:type",Object),_.p("design:paramtypes",[])],F8.prototype,"adLayoutMetadata",null);_.L([_.x(),_.p("design:type",Object)],F8.prototype,"adSlotMetadata",void 0);
_.L([_.A3("ytd-video-display-full-buttoned-and-button-group-renderer"),_.p("design:type",HTMLElement)],F8.prototype,"videoDisplayFullButtonedGroupRenderer",void 0);_.L([_.O8("typographyBump"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],F8.prototype,"onTypographyBumpChanged",null);_.L([_.O8("adLayoutMetadata","adSlotMetadata"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],F8.prototype,"onAdMetadataChanged",null);
_.L([_.U({is:"ytd-in-feed-ad-layout-renderer",disableElementRegistration:!0})],F8);
_.D(F8,"ytd-in-feed-ad-layout-renderer",function(){if(H8f!==void 0)return H8f;var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-in-feed-ad-layout-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="rendering-content" class="style-scope ytd-in-feed-ad-layout-renderer"></div>\n');a.content.insertBefore(_.w().content.cloneNode(!0),a.content.firstChild);return H8f=a},
{mode:_.Np("kevlar_poly_si_batch_j028")?1:2});var Xxl;var TbE;_.Jf(_.BX,"ad-badge-view-model",{props:{data:_.zl,hasDot:_.zl,customCommandResolver:_.I5,adRenderingContextType:_.I5}});_.Jf(_.C0,"ad-button-view-model",{props:{data:_.zl,customCommandResolver:_.I5,className:_.I5,delayedClassName:_.I5,animationEntityKey:_.I5,isCompactWidth:_.I5}});var HM=function(){var a=_.G.apply(this,arguments)||this;a.actionMap={"ytd-video-masthead-ad-primary-video-renderer-playing":"onPlayerReady"};return a};
_.b(HM,_.G);_.Z=HM.prototype;_.Z.computeHasLiveDescription=function(a){return!(a==null||!a.liveDescription)};
_.Z.computeHasByline=function(a){return!(a==null||!a.byline)};
_.Z.configureRendererStamper=function(){return{"data.adBadge":{id:"ad-badge",mapping:{adBadgeViewModel:{component:"ad-badge-view-model",properties:{adRenderingContextType:"[[adRenderingContextType]]",hasDot:"[[hasByline]]"}}}},"data.cta":{id:"ad-button",mapping:{adButtonViewModel:{component:"ad-button-view-model",params:{isCompactWidth:!0}}}},"data.menu":{id:"menu",mapping:{menuRenderer:{component:"ytd-menu-renderer",params:{icon:"yt-icons:more_vert"}}}}}};
_.Z.onYtToggleButton=function(a){var z,I=(z=this.data)==null?void 0:z.videoReminderEntityKey;I&&this.ytdReduxBehavior.dispatch(_.Q0("upcomingEventReminderStateEntity",I,{key:I,state:a.detail.toggled?"UPCOMING_EVENT_REMINDER_STATE_SINGLE":"UPCOMING_EVENT_REMINDER_STATE_NONE"}))};
_.Z.attached=function(){this.updateChannelBanner()};
_.Z.dataChanged=function(){this.updateChannelBanner()};
_.Z.videoReminderStateChanged=function(){var a;this.videoReminderState&&_.H((a=this.data)==null?void 0:a.cta,_.pQ)&&this.set("data.cta.toggleButtonRenderer.isToggled",this.videoReminderState.state==="UPCOMING_EVENT_REMINDER_STATE_SINGLE")};
_.Z.updateChannelBanner=function(){if(this.data&&this.data.channelBanner){var a=_.r4(this.data.channelBanner.thumbnails,this.hostElement.clientWidth);a&&(a.startsWith("//")&&(a="https:"+a),this.hostElement.classList.add("channel-banner"),_.uK(this.hostElement,{"--ytvmh-channel-banner":"url("+a+")"}))}else _.K("remove_masthead_channel_banner_on_refresh")&&this.hostElement.classList.remove("channel-banner")};
_.Z.onPlayerReady=function(){this.onIronResize()};
_.Z.maybeFlushDebouncer=function(){_.K("web_replace_formatted_with_attributed_string")&&this.formattedStrings.forEach(function(a){var z;a=(z=a.getElementsByTagName("yt-attributed-string"))==null?void 0:z[0];$cG(a==null?void 0:a.polymerController)})};
_.Z.onIronResize=function(){this.maybeFlushDebouncer();this.hostElement.clientWidth<370?this.hostElement.classList.add("no-thumbnail"):this.hostElement.classList.remove("no-thumbnail");var a=_.PK(this.hostElement).querySelector("#live-description"),z;a&&((z=this.data)==null?0:z.shortLiveDescription)&&a.clientWidth<a.scrollWidth?this.hostElement.classList.add("short-live-description"):this.hostElement.classList.remove("short-live-description")};
HM.prototype.onIronResize=HM.prototype.onIronResize;HM.prototype.videoReminderStateChanged=HM.prototype.videoReminderStateChanged;HM.prototype.dataChanged=HM.prototype.dataChanged;HM.prototype.onYtToggleButton=HM.prototype.onYtToggleButton;_.L([_.Q(_.Ts),_.p("design:type",Object)],HM.prototype,"ironResizableBehavior",void 0);_.L([_.Q(_.Hc.YtActionHandlerBehavior),_.p("design:type",Object)],HM.prototype,"ytActionHandlerBehavior",void 0);
_.L([_.Q(_.k.YtRendererBehavior),_.p("design:type",Object)],HM.prototype,"ytRendererBehavior",void 0);_.L([_.Q(_.u4.YtRendererstamperBehavior),_.p("design:type",Object)],HM.prototype,"ytRendererstamperBehavior",void 0);_.L([_.Q(_.pV),_.p("design:type",Object)],HM.prototype,"ytdReduxBehavior",void 0);_.L([_.x(),_.p("design:type",Object)],HM.prototype,"data",void 0);_.L([_.x({selectorArgs:["data.videoReminderEntityKey"],selector:THi}),_.p("design:type",Object)],HM.prototype,"videoReminderState",void 0);
_.L([_.x({reflectToAttribute:!0,value:_.K("web_modern_buttons")}),_.p("design:type",Boolean)],HM.prototype,"rounded",void 0);_.L([_.x({reflectToAttribute:!0,computed:"computeHasLiveDescription(data)"}),_.p("design:type",Boolean)],HM.prototype,"hasLiveDescription",void 0);_.L([_.x({reflectToAttribute:!0,computed:"computeHasByline(data)"}),_.p("design:type",Boolean)],HM.prototype,"hasByline",void 0);
_.L([_.x({value:"AD_RENDERING_CONTEXT_TYPE_BROWSE"}),_.p("design:type",String)],HM.prototype,"adRenderingContextType",void 0);_.L([_.x({reflectToAttribute:!0,value:_.K("web_resizable_advertiser_banner_on_masthead_safari_fix")}),_.p("design:type",Boolean)],HM.prototype,"resizableAdBannerSafariFix",void 0);_.L([_.x({reflectToAttribute:!0,value:_.K("align_three_dot_menu_with_title_description")}),_.p("design:type",Boolean)],HM.prototype,"menuFix",void 0);
_.L([_.s8("yt-formatted-string"),_.p("design:type",Array)],HM.prototype,"formattedStrings",void 0);_.L([_.A3("#cta-button"),_.p("design:type",HTMLElement)],HM.prototype,"ctaButton",void 0);_.L([_.gz("yt-toggle-button"),_.p("design:type",Function),_.p("design:paramtypes",[CustomEvent]),_.p("design:returntype")],HM.prototype,"onYtToggleButton",null);_.L([_.O8("data"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],HM.prototype,"dataChanged",null);
_.L([_.O8("videoReminderState"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],HM.prototype,"videoReminderStateChanged",null);_.L([_.gz("iron-resize"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],HM.prototype,"onIronResize",null);_.L([_.U({is:"ytd-video-masthead-ad-advertiser-info-renderer",disableElementRegistration:!0})],HM);
_.D(HM,"ytd-video-masthead-ad-advertiser-info-renderer",function(){if(TbE!==void 0)return TbE;var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-video-masthead-ad-advertiser-info-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<a id="banner" class="yt-simple-endpoint style-scope ytd-video-masthead-ad-advertiser-info-renderer" aria-hidden="true" href$="[[computeHref_(data.channelEndpoint)]]" data="[[data.channelEndpoint]]" tabindex="-1">\n</a>\n<div id="info-container" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer">\n  <div id="thumbnail-container" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer">\n    <a id="thumbnail-endpoint" class="yt-simple-endpoint inline-block style-scope ytd-video-masthead-ad-advertiser-info-renderer" aria-hidden="true" href$="[[computeHref_(data.channelEndpoint)]]" data="[[data.channelEndpoint]]" tabindex="-1">\n      <yt-img-shadow id="thumbnail" thumbnail="[[data.channelThumbnail]]" width="80" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer">\n      </yt-img-shadow>\n    </a>\n  </div>\n  <div id="right-container" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer">\n    <div id="title-container" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer">\n      <yt-formatted-string id="title" ellipsis-truncate="" text="[[data.title]]" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer">\n      </yt-formatted-string>\n      <div id="menu" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer"></div>\n    </div>\n    <div id="byline-container" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer">\n      <div id="ad-badge" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer"></div>\n      <ytd-badge-supported-renderer id="badges" badges="[[data.badges]]" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer">\n      </ytd-badge-supported-renderer>\n      <yt-formatted-string id="byline" ellipsis-truncate="[[!data.liveDescription]]" link-inherit-color="" text="[[data.byline]]" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer">\n      </yt-formatted-string>\n      <template is="dom-if" restamp="" if="[[data.liveDescription]]" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer">\n        <div id="live-description-container" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer">\n          <yt-formatted-string id="short-live-description" text="[[data.shortLiveDescription]]" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer">\n          </yt-formatted-string>\n          <yt-formatted-string id="live-description" text="[[data.liveDescription]]" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer">\n          </yt-formatted-string>\n        </div>\n      </template>\n    </div>\n    <div id="cta-container" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer">\n      <ytd-button-renderer id="cta-button" data="[[data.cta.buttonRenderer]]" 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 id="ad-button" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer"></div>\n    </div>\n  </div>\n</div>\n');
a.content.insertBefore(_.w().content.cloneNode(!0),a.content.firstChild);return TbE=a},{mode:1});var d9l;var b$=function(){var a=_.G.apply(this,arguments)||this;a.actionMap={"ytd-video-masthead-expandable-tile-expanding":"onExpandableTileExpanding","ytd-video-masthead-expandable-tile-lock-and-collapse":"onExpandableTileLockAndCollapse","ytd-video-masthead-expandable-tile-unlock":"onExpandableTileUnlock"};a.isLocked=!1;return a};
_.b(b$,_.G);_.Z=b$.prototype;_.Z.maybeExpand=function(){this.isLocked||this.expanded||(this.expanded=!0)};
_.Z.onExpandedChanged=function(){this.expanded&&_.Ct(this.hostElement,"ytd-video-masthead-expandable-tile-expanding",[this])};
_.Z.onMouseOver=function(){this.maybeExpand()};
_.Z.onTap=function(){this.maybeExpand()};
_.Z.onExpandableTileExpanding=function(a){a!==this&&(this.expanded=!1)};
_.Z.onExpandableTileLockAndCollapse=function(a){this.isLocked=!0;a!==this&&(this.expanded=!1)};
_.Z.onExpandableTileUnlock=function(){this.isLocked=!1};
b$.prototype.onTap=b$.prototype.onTap;b$.prototype.onMouseOver=b$.prototype.onMouseOver;b$.prototype.onExpandedChanged=b$.prototype.onExpandedChanged;_.L([_.Q(_.Hc.YtActionHandlerBehavior),_.p("design:type",Object)],b$.prototype,"ytActionHandlerBehavior",void 0);_.L([_.Q(_.k.YtRendererBehavior),_.p("design:type",Object)],b$.prototype,"ytRendererBehavior",void 0);_.L([_.x(),_.p("design:type",Object)],b$.prototype,"data",void 0);
_.L([_.x({reflectToAttribute:!0}),_.p("design:type",Boolean)],b$.prototype,"expanded",void 0);_.L([_.Fe("expanded"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],b$.prototype,"onExpandedChanged",null);_.L([_.gz("mouseover"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],b$.prototype,"onMouseOver",null);_.L([_.gz("tap"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],b$.prototype,"onTap",null);
_.L([_.U({is:"ytd-video-masthead-ad-expandable-thumbnail-tile-renderer",disableElementRegistration:!0})],b$);
_.D(b$,"ytd-video-masthead-ad-expandable-thumbnail-tile-renderer",function(){if(d9l!==void 0)return d9l;var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-video-masthead-ad-expandable-thumbnail-tile-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<a href="[[computeHref_(data.navigationEndpoint)]]" class="yt-simple-endpoint style-scope ytd-video-masthead-ad-expandable-thumbnail-tile-renderer" data="[[data.navigationEndpoint]]" aria-hidden="true" tabindex="-1" id="endpoint">\n <div id="overlay" class="style-scope ytd-video-masthead-ad-expandable-thumbnail-tile-renderer">\n   <div id="play-button" class="style-scope ytd-video-masthead-ad-expandable-thumbnail-tile-renderer">\n     \n     <svg width="100%" height="100%" viewBox="0 0 68 48" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" class="style-scope ytd-video-masthead-ad-expandable-thumbnail-tile-renderer">\n       <path id="play-button-bg" d="M66.52,7.74c-0.78-2.93-2.49-5.41-5.42-6.19C55.79,0.13,34,0,34,0S12.21,0.13,6.9,1.55 C3.97,2.33,2.27,4.81,1.48,7.74C0.06,13.05,0,24,0,24s0.06,10.95,1.48,16.26c0.78,2.93,2.49,5.41,5.42,6.19 C12.21,47.87,34,48,34,48s21.79-0.13,27.1-1.55c2.93-0.78,4.64-3.26,5.42-6.19C67.94,34.95,68,24,68,24S67.94,13.05,66.52,7.74z" class="ytp-large-play-button-bg style-scope ytd-video-masthead-ad-expandable-thumbnail-tile-renderer" fill="#212121" fill-opacity="0.8"></path>\n       <path d="M 45,24 27,14 27,34" fill="#FFFFFF" class="style-scope ytd-video-masthead-ad-expandable-thumbnail-tile-renderer"></path>\n     </svg>\n   </div>\n </div>\n <yt-img-shadow id="thumbnail" thumbnail="[[data.thumbnail]]" width="424" class="style-scope ytd-video-masthead-ad-expandable-thumbnail-tile-renderer">\n </yt-img-shadow>\n    </a>\n');a.content.insertBefore(_.w().content.cloneNode(!0),
a.content.firstChild);return d9l=a},{mode:1});var W4I;var hL=function(){var a=_.G.apply(this,arguments)||this;a.buttonOverrides={style:"overlay"};a.useYtdPlayer=_.K("use_ytd_player_for_desktop_masthead");a.actionMap={"ytd-video-masthead-expandable-tile-expanding":"onExpandableTileExpanding","ytd-video-masthead-expandable-tile-lock-and-collapse":"onExpandableTileLockAndCollapse","ytd-video-masthead-expandable-tile-unlock":"onExpandableTileUnlock"};a.playbackFinished=!1;a.JSC$15444_playerManager=null;a.JSC$15444_mastheadCounter=new TQv;return a};
_.b(hL,_.G);_.Z=hL.prototype;_.Z.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"}}}};
_.Z.created=function(){this.JSC$15444_mastheadCounter.increment("PLAYER_CONTAINER_CREATED",this.useYtdPlayer,!0);this.useYtdPlayer||(this.JSC$15444_playerManager=new Tc)};
_.Z.ready=function(){var a=this;this.JSC$15444_mastheadCounter.increment("PLAYER_CONTAINER_READY",this.useYtdPlayer,!0);var z=_.PK(this.hostElement).querySelector("#player");this.useYtdPlayer?z.style.display="none":(this.ytdPlayer.style.display="none",Dcj(this.JSC$15444_playerManager,z,function(){a.onPlaybackEnded()}),_.PK(this.hostElement).querySelector("#replay-button").addEventListener("click",function(){var I;
((I=a.data)==null?0:I.navigationEndpoint)&&_.PA(a.hostElement,"yt-navigate",{endpoint:a.data.navigationEndpoint})}))};
_.Z.onPlaybackEnded=function(){this.hostElement.classList.remove("video-playing");this.hostElement.classList.add("video-ended");this.unlockExpandableTiles();this.playbackFinished=!0;this.JSC$15444_mastheadCounter.increment("VIDEO_END",this.useYtdPlayer,!0)};
_.Z.attached=function(){var a=this;_.lK(function(){a.maybePlayVideo()})};
_.Z.maybePlayVideo=function(){var a=this;!(this.expanded&&this.isAttached&&this.data&&this.data.videoId)||this.playbackFinished||this.useYtdPlayer&&this.data.disableAutoPlayback||(this.hostElement.classList.add("video-playing"),this.lockAndCollapseExpandableTiles(),this.useYtdPlayer?this.ytdPlayer.play():(this.JSC$15444_playerManager.playVideo(),this.getPlayerPromise().then(function(){a.JSC$15444_mastheadCounter.increment("VIDEO_START",!1,!0)})))};
_.Z.stopVideo=function(){this.useYtdPlayer?this.ytdPlayer.stop():this.JSC$15444_playerManager.stopVideo()};
_.Z.dataChanged=function(){if(this.data)if(this.useYtdPlayer){var a,z={autoplay:0,adformat:"17_8",video_id:this.data.videoId,suggestedQuality:"hd720",startSeconds:((a=this.data.playbackStartMs)!=null?a:0)/1E3,player_params:this.data.playerParams};this.ytdPlayer.loadVideoWithPlayerVars(z);this.setupYtdPlayer()}else Law(this.JSC$15444_playerManager,this.data.videoId,this.data.playbackStartMs,this.data.playbackDurationMs,this.data.playerParams),this.data.disableAutoPlayback&&(RAX(this.JSC$15444_playerManager),
this.hostElement.classList.add("video-ended"),this.playbackFinished=!0),this.maybePlayVideo()};
_.Z.getPlayerPromise=function(){return this.JSC$15444_playerManager.getPlayerPromise()};
_.Z.onYtToggleButton=function(a){this.useYtdPlayer?this.toggleMute(a.detail.toggled):a.detail.toggled?this.JSC$15444_playerManager.mute():this.JSC$15444_playerManager.unMute()};
_.Z.onYtNavigate=function(a){var z=hPx(a.detail.endpoint),I=VnO(this.data.clickthroughReportingData);z&&I&&(a.detail.endpoint.watchEndpoint?a.detail.tempData=I:_.el(z,I,30))};
_.Z.maybeExpand=function(){this.isLocked||this.expanded||(this.expanded=!0)};
_.Z.onExpandedChanged=function(){this.expanded?(_.Ct(this.hostElement,"ytd-video-masthead-expandable-tile-expanding",[this]),this.maybePlayVideo()):this.stopVideo()};
_.Z.onMouseOver=function(){this.maybeExpand()};
_.Z.onTap=function(){this.maybeExpand()};
_.Z.onExpandableTileExpanding=function(a){a!==this&&(this.stopVideo(),this.expanded=!1)};
_.Z.onExpandableTileLockAndCollapse=function(a){a!==this&&(this.isLocked=!0,this.expanded=!1)};
_.Z.onExpandableTileUnlock=function(){this.isLocked=!1};
_.Z.lockAndCollapseExpandableTiles=function(){_.ZF(this.hostElement,"ytd-video-masthead-expandable-tile-lock-and-collapse",[this])};
_.Z.unlockExpandableTiles=function(){_.ZF(this.hostElement,"ytd-video-masthead-expandable-tile-unlock")};
_.Z.setupYtdPlayer=function(){var a=this,z;return _.t(function(I){if(I.nextAddress==1)return I.yield(a.ytdPlayer.getPlayerPromise(),2);z=I.yieldResult;z.addEventListener("onStateChange",function(J){a.onPlayerStateChange(J)});
z.addEventListener("onCueRangeExit",function(J){a.onCueRangeExit(J)});
_.nu(I)})};
_.Z.onPlayerStateChange=function(a){if(a===1&&(a=this.ytdPlayer.getPlayer())){var z=a.getCurrentTime(),I,J,r=z+((J=(I=this.data)==null?void 0:I.playbackDurationMs)!=null?J:0)/1E3;a.addCueRange("playback",z,r);this.JSC$15444_mastheadCounter.increment("VIDEO_START",!0,!0)}};
_.Z.onCueRangeExit=function(a){a==="playback"&&(this.ytdPlayer.stop(),this.onPlaybackEnded())};
_.Z.toggleMute=function(a){var z=this,I;return _.t(function(J){if(J.nextAddress==1)return J.yield(z.ytdPlayer.getPlayerPromise(),2);I=J.yieldResult;a?I.mute():I.unMute();_.nu(J)})};
hL.prototype.onTap=hL.prototype.onTap;hL.prototype.onMouseOver=hL.prototype.onMouseOver;hL.prototype.onExpandedChanged=hL.prototype.onExpandedChanged;hL.prototype.onYtNavigate=hL.prototype.onYtNavigate;hL.prototype.onYtToggleButton=hL.prototype.onYtToggleButton;hL.prototype.dataChanged=hL.prototype.dataChanged;_.L([_.Q(_.u4.YtRendererstamperBehavior),_.p("design:type",Object)],hL.prototype,"ytRendererstamperBehavior",void 0);
_.L([_.Q(_.Hc.YtActionHandlerBehavior),_.p("design:type",Object)],hL.prototype,"ytActionHandlerBehavior",void 0);_.L([_.Q(_.k.YtRendererBehavior),_.p("design:type",Object)],hL.prototype,"ytRendererBehavior",void 0);_.L([_.x(),_.p("design:type",Object)],hL.prototype,"data",void 0);_.L([_.x({reflectToAttribute:!0}),_.p("design:type",Boolean)],hL.prototype,"expanded",void 0);_.L([_.x(),_.p("design:type",Object)],hL.prototype,"buttonOverrides",void 0);
_.L([_.x(),_.p("design:type",Object)],hL.prototype,"useYtdPlayer",void 0);_.L([_.A3("#ytd-player"),_.p("design:type",Object)],hL.prototype,"ytdPlayer",void 0);_.L([_.O8("data"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],hL.prototype,"dataChanged",null);_.L([_.gz("yt-toggle-button"),_.p("design:type",Function),_.p("design:paramtypes",[CustomEvent]),_.p("design:returntype")],hL.prototype,"onYtToggleButton",null);
_.L([_.gz("yt-navigate"),_.p("design:type",Function),_.p("design:paramtypes",[CustomEvent]),_.p("design:returntype")],hL.prototype,"onYtNavigate",null);_.L([_.Fe("expanded"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],hL.prototype,"onExpandedChanged",null);_.L([_.gz("mouseover"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],hL.prototype,"onMouseOver",null);
_.L([_.gz("tap"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],hL.prototype,"onTap",null);_.L([_.U({is:"ytd-video-masthead-ad-expandable-video-tile-renderer",disableElementRegistration:!0})],hL);
_.D(hL,"ytd-video-masthead-ad-expandable-video-tile-renderer",function(){if(W4I!==void 0)return W4I;var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-video-masthead-ad-expandable-video-tile-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="container" class="style-scope ytd-video-masthead-ad-expandable-video-tile-renderer">\n  <div id="overlay" class="style-scope ytd-video-masthead-ad-expandable-video-tile-renderer">\n    <div id="mute-button" class="style-scope ytd-video-masthead-ad-expandable-video-tile-renderer"></div>\n    <div id="replay-button" class="style-scope ytd-video-masthead-ad-expandable-video-tile-renderer"></div>\n    <div id="thumbnail-overlays" class="style-scope ytd-video-masthead-ad-expandable-video-tile-renderer"></div>\n    <template is="dom-if" if="[[data.liveBadgeLabel]]" class="style-scope ytd-video-masthead-ad-expandable-video-tile-renderer">\n      <yt-formatted-string id="live-badge" text="[[data.liveBadgeLabel]]" class="style-scope ytd-video-masthead-ad-expandable-video-tile-renderer">\n      </yt-formatted-string>\n    </template>\n  </div>\n  <div id="player-container" class="style-scope ytd-video-masthead-ad-expandable-video-tile-renderer">\n    <a id="click-target" class="yt-simple-endpoint style-scope ytd-video-masthead-ad-expandable-video-tile-renderer" data="[[data.navigationEndpoint]]"></a>\n    <div id="player" class="style-scope ytd-video-masthead-ad-expandable-video-tile-renderer"></div>\n    <ytd-player id="ytd-player" context="WEB_PLAYER_CONTEXT_CONFIG_ID_KEVLAR_MASTHEAD_AD" class="style-scope ytd-video-masthead-ad-expandable-video-tile-renderer">\n    </ytd-player>\n  </div>\n</div>\n');a.content.insertBefore(_.w().content.cloneNode(!0),
a.content.firstChild);return W4I=a},{mode:1});var owi;var VH=function(){return _.G.apply(this,arguments)||this};
_.b(VH,_.G);VH.prototype.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}}}};
VH.prototype.onShow=function(){var a=_.PK(this.hostElement).querySelector("#live-description"),z;a&&((z=this.data)==null?0:z.shortLiveDescription)&&a.clientWidth<a.scrollWidth&&this.hostElement.classList.add("short-live-description")};
VH.prototype.onYtToggleButton=function(a){var z,I=(z=this.data)==null?void 0:z.videoReminderEntityKey;I&&this.ytdReduxBehavior.dispatch(_.Q0("upcomingEventReminderStateEntity",I,{key:I,state:a.detail.toggled?"UPCOMING_EVENT_REMINDER_STATE_SINGLE":"UPCOMING_EVENT_REMINDER_STATE_NONE"}))};
VH.prototype.videoReminderStateChanged=function(){var a;this.videoReminderState&&_.H((a=this.data)==null?void 0:a.cta,_.pQ)&&this.set("data.cta.toggleButtonRenderer.isToggled",this.videoReminderState.state==="UPCOMING_EVENT_REMINDER_STATE_SINGLE")};
VH.prototype.videoReminderStateChanged=VH.prototype.videoReminderStateChanged;VH.prototype.onYtToggleButton=VH.prototype.onYtToggleButton;_.L([_.Q(_.k.YtRendererBehavior),_.p("design:type",Object)],VH.prototype,"ytRendererBehavior",void 0);_.L([_.Q(_.u4.YtRendererstamperBehavior),_.p("design:type",Object)],VH.prototype,"ytRendererstamperBehavior",void 0);_.L([_.Q(_.pV),_.p("design:type",Object)],VH.prototype,"ytdReduxBehavior",void 0);_.L([_.x(),_.p("design:type",Object)],VH.prototype,"data",void 0);
_.L([_.x({selectorArgs:["data.videoReminderEntityKey"],selector:THi}),_.p("design:type",Object)],VH.prototype,"videoReminderState",void 0);_.L([_.gz("yt-toggle-button"),_.p("design:type",Function),_.p("design:paramtypes",[CustomEvent]),_.p("design:returntype")],VH.prototype,"onYtToggleButton",null);_.L([_.O8("videoReminderState"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],VH.prototype,"videoReminderStateChanged",null);
_.L([_.U({is:"ytd-video-masthead-ad-primary-video-overlay-renderer",disableElementRegistration:!0})],VH);
_.D(VH,"ytd-video-masthead-ad-primary-video-overlay-renderer",function(){if(owi!==void 0)return owi;var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-video-masthead-ad-primary-video-overlay-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="advertiser-info" class="style-scope ytd-video-masthead-ad-primary-video-overlay-renderer">\n  <yt-formatted-string id="title" ellipsis-truncate="" text="[[data.title]]" class="style-scope ytd-video-masthead-ad-primary-video-overlay-renderer">\n  </yt-formatted-string>\n  <div id="byline-container" class="style-scope ytd-video-masthead-ad-primary-video-overlay-renderer">\n    <ytd-badge-supported-renderer id="badges" badges="[[data.badges]]" overlay-ad="true" class="style-scope ytd-video-masthead-ad-primary-video-overlay-renderer">\n    </ytd-badge-supported-renderer>\n    <yt-formatted-string id="byline" ellipsis-truncate="[[!data.liveDescription]]" link-inherit-color="" text="[[data.byline]]" class="style-scope ytd-video-masthead-ad-primary-video-overlay-renderer">\n    </yt-formatted-string>\n    <template is="dom-if" restamp="" if="[[data.liveDescription]]" class="style-scope ytd-video-masthead-ad-primary-video-overlay-renderer">\n      <div id="live-description-container" class="style-scope ytd-video-masthead-ad-primary-video-overlay-renderer">\n        <yt-formatted-string id="short-live-description" text="[[data.shortLiveDescription]]" class="style-scope ytd-video-masthead-ad-primary-video-overlay-renderer">\n        </yt-formatted-string>\n        <yt-formatted-string id="live-description" text="[[data.liveDescription]]" class="style-scope ytd-video-masthead-ad-primary-video-overlay-renderer">\n        </yt-formatted-string>\n      </div>\n    </template>\n  </div>\n  <div id="cta-container" class="style-scope ytd-video-masthead-ad-primary-video-overlay-renderer">\n    <ytd-toggle-button-renderer id="reminder-button" data="[[data.cta.toggleButtonRenderer]]" class="style-scope ytd-video-masthead-ad-primary-video-overlay-renderer">\n    </ytd-toggle-button-renderer>\n  </div>\n</div>\n<div id="menu" class="style-scope ytd-video-masthead-ad-primary-video-overlay-renderer"></div>\n');a.content.insertBefore(_.w().content.cloneNode(!0),
a.content.firstChild);return owi=a},{mode:_.Np("kevlar_poly_si_batch_j065")?1:2});var U9X;var QH=function(){var a=_.G.apply(this,arguments)||this;a.useYtdPlayer=_.K("use_ytd_player_for_desktop_masthead");a.buttonOverrides={style:"overlay"};a.JSC$15452_playerManager=null;a.JSC$15452_mastheadCounter=new TQv;a.actionMap={"yt-masthead-hidden":"onYtMastheadHidden"};return a};
_.b(QH,_.G);_.Z=QH.prototype;_.Z.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"}}}};
_.Z.created=function(){this.JSC$15452_mastheadCounter.increment("PLAYER_CONTAINER_CREATED",this.useYtdPlayer,!1);this.useYtdPlayer||(this.JSC$15452_playerManager=new Tc)};
_.Z.ready=function(){var a=this;this.JSC$15452_mastheadCounter.increment("PLAYER_CONTAINER_READY",this.useYtdPlayer,!1);if(this.useYtdPlayer){var z;(z=this.embeddedPlayer)==null||z.remove()}else{var I;(I=this.ytdPlayer)==null||I.remove();Dcj(this.JSC$15452_playerManager,this.embeddedPlayer,function(){a.onPlaybackEnded()});
this.replayButton.addEventListener("click",function(){a.data&&a.data.navigationEndpoint&&_.PA(a.hostElement,"yt-navigate",{endpoint:a.data.navigationEndpoint})})}};
_.Z.onPlaybackEnded=function(){this.hostElement.classList.remove("video-playing");this.hostElement.classList.add("video-ended");this.JSC$15452_mastheadCounter.increment("VIDEO_END",this.useYtdPlayer,!1)};
_.Z.dataChanged=function(){var a=this;if(this.data){if(typeof this.data.videoId==="string")if(this.useYtdPlayer){var z=!this.data.disableAutoPlayback,I,J={autoplay:z,adformat:"17_8",video_id:this.data.videoId,suggestedQuality:"hd720",startSeconds:((I=this.data.playbackStartMs)!=null?I:0)/1E3,player_params:this.data.playerParams};this.hostElement.classList.add(z?"video-playing":"video-ended");this.ytdPlayer.loadVideoWithPlayerVars(J);this.setupYtdPlayer()}else Law(this.JSC$15452_playerManager,this.data.videoId,
this.data.playbackStartMs,this.data.playbackDurationMs,this.data.playerParams||void 0),this.data.disableAutoPlayback?(RAX(this.JSC$15452_playerManager),this.hostElement.classList.add("video-ended")):(this.JSC$15452_playerManager.playVideo(),this.hostElement.classList.add("video-playing"),this.getPlayerPromise().then(function(){_.ZF(a.hostElement,"ytd-video-masthead-ad-primary-video-renderer-playing");a.JSC$15452_mastheadCounter.increment("VIDEO_START",!1,!1)}));
this.data.isWidescreen&&this.playerContainer.classList.add("widescreen")}};
_.Z.getPlayerPromise=function(){return this.JSC$15452_playerManager.getPlayerPromise()};
_.Z.onYtToggleButton=function(a){this.useYtdPlayer?this.toggleMute(a.detail.toggled):a.detail.toggled?this.JSC$15452_playerManager.mute():this.JSC$15452_playerManager.unMute()};
_.Z.onYtNavigate=function(a){var z=hPx(a.detail.endpoint),I=VnO(this.data.clickthroughReportingData);z&&I&&(a.detail.endpoint.watchEndpoint?a.detail.tempData=I:_.el(z,I,30))};
_.Z.onYtMastheadHidden=function(){this.useYtdPlayer?this.ytdPlayer.stop():this.JSC$15452_playerManager.stopVideo()};
_.Z.setupYtdPlayer=function(){var a=this,z;return _.t(function(I){if(I.nextAddress==1)return I.yield(a.ytdPlayer.getPlayerPromise(),2);z=I.yieldResult;z.addEventListener("onStateChange",function(J){a.onPlayerStateChange(J)});
z.addEventListener("onCueRangeExit",function(J){a.onCueRangeExit(J)});
_.nu(I)})};
_.Z.onPlayerStateChange=function(a){if(a===1&&(a=this.ytdPlayer.getPlayer())){var z=a.getCurrentTime(),I,J,r=z+((J=(I=this.data)==null?void 0:I.playbackDurationMs)!=null?J:0)/1E3;a.addCueRange("playback",z,r);_.ZF(this.hostElement,"ytd-video-masthead-ad-primary-video-renderer-playing");this.JSC$15452_mastheadCounter.increment("VIDEO_START",!0,!1)}};
_.Z.onCueRangeExit=function(a){a==="playback"&&(this.ytdPlayer.stop(),this.onPlaybackEnded())};
_.Z.toggleMute=function(a){var z=this,I;return _.t(function(J){if(J.nextAddress==1)return J.yield(z.ytdPlayer.getPlayerPromise(),2);I=J.yieldResult;a?I.mute():I.unMute();_.nu(J)})};
_.eH.Object.defineProperties(QH.prototype,{titleAriaLabel:{configurable:!0,enumerable:!0,get:function(){var a,z;if(!((a=this.data)==null?0:(z=a.accessibilityData)==null?0:z.label))return"Ad primary link";var I,J;return _.AR("AD_TITLE",{title:(I=this.data)==null?void 0:(J=I.accessibilityData)==null?void 0:J.label})}}});
QH.prototype.onYtMastheadHidden=QH.prototype.onYtMastheadHidden;QH.prototype.onYtNavigate=QH.prototype.onYtNavigate;QH.prototype.onYtToggleButton=QH.prototype.onYtToggleButton;QH.prototype.dataChanged=QH.prototype.dataChanged;_.L([_.Q(_.u4.YtRendererstamperBehavior),_.p("design:type",Object)],QH.prototype,"ytRendererstamperBehavior",void 0);_.L([_.Q(_.k.YtRendererBehavior),_.p("design:type",Object)],QH.prototype,"ytRendererBehavior",void 0);
_.L([_.Q(_.Hc.YtActionHandlerBehavior),_.p("design:type",Object)],QH.prototype,"ytActionHandlerBehavior",void 0);_.L([_.x(),_.p("design:type",Object)],QH.prototype,"data",void 0);_.L([_.x(),_.p("design:type",Object)],QH.prototype,"useYtdPlayer",void 0);_.L([_.A3("ytd-toggle-button-renderer"),_.p("design:type",Object)],QH.prototype,"muteButton",void 0);_.L([_.x(),_.p("design:type",Object)],QH.prototype,"buttonOverrides",void 0);
_.L([_.S("data.accessibilityData.label"),_.p("design:type",String),_.p("design:paramtypes",[])],QH.prototype,"titleAriaLabel",null);_.L([_.A3("#replay-button"),_.p("design:type",Object)],QH.prototype,"replayButton",void 0);_.L([_.A3("#player-container"),_.p("design:type",Object)],QH.prototype,"playerContainer",void 0);_.L([_.A3("#player"),_.p("design:type",Object)],QH.prototype,"embeddedPlayer",void 0);_.L([_.A3("#ytd-player"),_.p("design:type",Object)],QH.prototype,"ytdPlayer",void 0);
_.L([_.O8("data"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],QH.prototype,"dataChanged",null);_.L([_.gz("yt-toggle-button"),_.p("design:type",Function),_.p("design:paramtypes",[CustomEvent]),_.p("design:returntype")],QH.prototype,"onYtToggleButton",null);_.L([_.gz("yt-navigate"),_.p("design:type",Function),_.p("design:paramtypes",[CustomEvent]),_.p("design:returntype")],QH.prototype,"onYtNavigate",null);
_.L([_.gz("yt-masthead-hidden"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],QH.prototype,"onYtMastheadHidden",null);_.L([_.U({is:"ytd-video-masthead-ad-primary-video-renderer",disableElementRegistration:!0})],QH);
_.D(QH,"ytd-video-masthead-ad-primary-video-renderer",function(){if(U9X!==void 0)return U9X;var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-video-masthead-ad-primary-video-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="overlay" class="style-scope ytd-video-masthead-ad-primary-video-renderer">\n  <div id="mute-button" class="style-scope ytd-video-masthead-ad-primary-video-renderer"></div>\n  <div id="replay-button" class="style-scope ytd-video-masthead-ad-primary-video-renderer"></div>\n  <div id="thumbnail-overlays" class="style-scope ytd-video-masthead-ad-primary-video-renderer"></div>\n  <template is="dom-if" if="[[data.liveBadgeLabel]]" class="style-scope ytd-video-masthead-ad-primary-video-renderer">\n    <yt-formatted-string id="live-badge" text="[[data.liveBadgeLabel]]" class="style-scope ytd-video-masthead-ad-primary-video-renderer">\n    </yt-formatted-string>\n  </template>\n</div>\n<div id="player-container" class="style-scope ytd-video-masthead-ad-primary-video-renderer">\n  <a id="click-target" class="yt-simple-endpoint style-scope ytd-video-masthead-ad-primary-video-renderer" aria-label$="[[titleAriaLabel]]" href$="[[computeHref_(data.navigationEndpoint)]]" data="[[data.navigationEndpoint]]"></a>\n  <div id="player" class="style-scope ytd-video-masthead-ad-primary-video-renderer"></div>\n  <ytd-player id="ytd-player" context="WEB_PLAYER_CONTEXT_CONFIG_ID_KEVLAR_MASTHEAD_AD" class="style-scope ytd-video-masthead-ad-primary-video-renderer">\n  </ytd-player>\n</div>\n');a.content.insertBefore(_.w().content.cloneNode(!0),
a.content.firstChild);return U9X=a},{mode:2});var D9O;var S0=function(){var a=_.G.apply(this,arguments)||this;a.collapsed=!1;a.impressionResolver=_.kq();a.JSC$15456_activeViewMeasurementDataResolver=_.kq();a.actionMap={"yt-mute-ad-action":"handleMuteAd"};return a};
_.b(S0,_.G);_.Z=S0.prototype;_.Z.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"}}}};
_.Z.ready=function(){var a=this;_.PK(this.hostElement).querySelector("#show-ad").addEventListener("click",function(){a.expandAd()});
this.hostElement.addEventListener("yt-action",function(z){if(z.detail.actionName==="yt-service-request"){var I=z.detail.args[1];I.videoMastheadAdMuteCommand&&(a.collapseAd(I.videoMastheadAdMuteCommand.encryptedMastheadId),z.stopPropagation())}})};
_.Z.attached=function(){var a=this;_.lK(function(){a.ironResizableBehavior.notifyResize()});
this.impressionResolver.promise.then(function(z){if(!a.collapsed){z=_.C(z);for(var I=z.next();!I.done;I=z.next())I=I.value,pI(I.baseUrl,I.attributionSrcMode);a.data.impressionCommand=void 0}});
this.JSC$15456_activeViewMeasurementDataResolver.promise.then(function(z){a.ytdActiveViewBehavior.enableActiveViewMeasurement(z,15)});
_.K("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&a.ytdActiveViewBehavior.stopActiveViewMeasurement()})};
_.Z.dataChanged=function(){var a;((a=this.data.impressionCommand)==null?0:a.loggingUrls)&&this.impressionResolver.resolve(this.data.impressionCommand.loggingUrls);var z;((z=this.data)==null?0:z.activeView)&&this.JSC$15456_activeViewMeasurementDataResolver.resolve(this.data.activeView);(a=this.get("data.showAdRenderer.buttonRenderer.command.videoMastheadAdMuteCommand"))&&this.restoreCollapsedState(a.encryptedMastheadId);this.collapsed&&(this.data.primaryVideo&&(this.data.primaryVideo=void 0),this.data.expandableTiles&&
(this.data.expandableTiles=void 0))};
_.Z.computeWidescreen=function(a){var z;return!!(a&&((z=_.H(a,$Hl))==null?0:z.isWidescreen))};
_.Z.computeExpandable=function(a){return!!(a&&a.length>0)};
_.Z.onIronResize=function(){if(this.expandable){var a=_.PK(this.hostElement).querySelector("#expandable-tile-container :first-child");a&&!a.expanded&&(a.expanded=!0)}};
_.Z.handleMuteAd=function(){this.collapseAd(null)};
_.Z.restoreCollapsedState=function(a){this.collapsed=_.Kt().get("HIDDEN_MASTHEAD_ID")===a};
_.Z.collapseAd=function(a){if(a){var z=_.Kt();z.set("HIDDEN_MASTHEAD_ID",a);z.save()}(a=_.PK(this.hostElement).querySelector("#video"))&&_.PA(a,"yt-masthead-hidden");this.collapsed=!0};
_.Z.expandAd=function(){var a=_.Kt();a.set("HIDDEN_MASTHEAD_ID",!1);a.save();location.reload()};
_.Z.detached=function(){_.K("stop_av_measurement_on_detach")&&this.ytdActiveViewBehavior.stopActiveViewMeasurement()};
S0.prototype.onIronResize=S0.prototype.onIronResize;S0.prototype.dataChanged=S0.prototype.dataChanged;_.L([_.Q(_.Ts),_.p("design:type",Object)],S0.prototype,"ironResizableBehavior",void 0);_.L([_.Q(lf),_.p("design:type",Object)],S0.prototype,"ytdActiveViewBehavior",void 0);_.L([_.Q(_.kI),_.p("design:type",Object)],S0.prototype,"ytdGridStateAwareBehavior",void 0);_.L([_.Q(_.Hc.YtActionHandlerBehavior),_.p("design:type",Object)],S0.prototype,"ytActionHandlerBehavior",void 0);
_.L([_.Q(_.k.YtRendererBehavior),_.p("design:type",Object)],S0.prototype,"ytRendererBehavior",void 0);_.L([_.Q(_.u4.YtRendererstamperBehavior),_.p("design:type",Object)],S0.prototype,"ytRendererstamperBehavior",void 0);_.L([_.x(),_.p("design:type",Object)],S0.prototype,"data",void 0);_.L([_.x({reflectToAttribute:!0,computed:"computeWidescreen(data.primaryVideo)"}),_.p("design:type",Boolean)],S0.prototype,"widescreen",void 0);
_.L([_.x({reflectToAttribute:!0,computed:"computeExpandable(data.expandableTiles)"}),_.p("design:type",Boolean)],S0.prototype,"expandable",void 0);_.L([_.x({reflectToAttribute:!0}),_.p("design:type",Object)],S0.prototype,"collapsed",void 0);_.L([_.Fe("data"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],S0.prototype,"dataChanged",null);
_.L([_.gz("iron-resize"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],S0.prototype,"onIronResize",null);_.L([_.U({is:"ytd-video-masthead-ad-v3-renderer",disableElementRegistration:!0})],S0);
_.D(S0,"ytd-video-masthead-ad-v3-renderer",function(){if(D9O!==void 0)return D9O;var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-video-masthead-ad-v3-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="top-container" class="style-scope ytd-video-masthead-ad-v3-renderer">\n  <div id="video-overlay" class="style-scope ytd-video-masthead-ad-v3-renderer">\n    <ytd-video-masthead-ad-primary-video-overlay-renderer data="[[data.primaryVideoOverlay.videoMastheadAdPrimaryVideoOverlayRenderer]]" class="style-scope ytd-video-masthead-ad-v3-renderer">\n    </ytd-video-masthead-ad-primary-video-overlay-renderer>\n  </div>\n  <template is="dom-if" if="[[data.primaryVideo]]" class="style-scope ytd-video-masthead-ad-v3-renderer">\n    <div id="video-container" class="style-scope ytd-video-masthead-ad-v3-renderer">\n      <ytd-video-masthead-ad-primary-video-renderer id="video" data="[[data.primaryVideo.videoMastheadAdPrimaryVideoRenderer]]" class="style-scope ytd-video-masthead-ad-v3-renderer">\n      </ytd-video-masthead-ad-primary-video-renderer>\n    </div>\n  </template>\n  <div id="expandable-tile-container" class="style-scope ytd-video-masthead-ad-v3-renderer"></div>\n  <div id="right-container" class="style-scope ytd-video-masthead-ad-v3-renderer">\n    <ytd-video-masthead-ad-advertiser-info-renderer data="[[data.advertiserInfo.videoMastheadAdAdvertiserInfoRenderer]]" class="style-scope ytd-video-masthead-ad-v3-renderer">\n    </ytd-video-masthead-ad-advertiser-info-renderer>\n    <div id="compact-tile-container" class="style-scope ytd-video-masthead-ad-v3-renderer">\n      <template is="dom-repeat" items="[[data.compactVideoTiles]]" as="tile" class="style-scope ytd-video-masthead-ad-v3-renderer">\n        <ytd-thumbnail data="[[tile.videoMastheadAdCompactVideoTileRenderer]]" width="210" class="style-scope ytd-video-masthead-ad-v3-renderer">\n        </ytd-thumbnail>\n      </template>\n    </div>\n  </div>\n  <div id="show-ad" class="style-scope ytd-video-masthead-ad-v3-renderer"></div>\n</div>\n');a.content.insertBefore(_.w().content.cloneNode(!0),
a.content.firstChild);return D9O=a},{mode:2});var i$=function(){return _.G.apply(this,arguments)||this};
_.b(i$,_.G);_.Z=i$.prototype;_.Z.configureRendererStamper=function(){return{"data.renderingContent":{id:"rendering-content",mapping:{videoMastheadAdV3Renderer:"ytd-video-masthead-ad-v3-renderer"}}}};
_.Z.ready=function(){var a=this;tOp(function(){a.isAttached&&ad(a.JSC$15461_storedAdSlotMetadata,a.JSC$15461_storedAdLayoutMetadata,a.adSlotMetadata,a.adLayoutMetadata)&&nA(AL(),a.JSC$15461_storedAdSlotMetadata,a.JSC$15461_storedAdLayoutMetadata)})};
_.Z.attached=function(){ad(this.JSC$15461_storedAdSlotMetadata,this.JSC$15461_storedAdLayoutMetadata,this.adSlotMetadata,this.adLayoutMetadata)&&nwf(AL(),this.JSC$15461_storedAdSlotMetadata,this.JSC$15461_storedAdLayoutMetadata)};
_.Z.detached=function(){ad(this.JSC$15461_storedAdSlotMetadata,this.JSC$15461_storedAdLayoutMetadata,this.adSlotMetadata,this.adLayoutMetadata)&&nA(AL(),this.JSC$15461_storedAdSlotMetadata,this.JSC$15461_storedAdLayoutMetadata)};
_.Z.onAdMetadataChanged=function(){this.adLayoutMetadata&&this.adSlotMetadata&&this.JSC$15461_storedAdLayoutMetadata!==this.adLayoutMetadata&&this.JSC$15461_storedAdSlotMetadata!==this.adSlotMetadata&&(this.isAttached&&(this.JSC$15461_storedAdLayoutMetadata!==void 0&&this.JSC$15461_storedAdSlotMetadata!==void 0&&nA(AL(),this.JSC$15461_storedAdSlotMetadata,this.JSC$15461_storedAdLayoutMetadata),nwf(AL(),this.adSlotMetadata,this.adLayoutMetadata)),this.JSC$15461_storedAdLayoutMetadata=this.adLayoutMetadata,
this.JSC$15461_storedAdSlotMetadata=this.adSlotMetadata)};
_.eH.Object.defineProperties(i$.prototype,{adLayoutMetadata:{configurable:!0,enumerable:!0,get:function(){var a;return(a=this.data)==null?void 0:a.adLayoutMetadata}}});
i$.prototype.onAdMetadataChanged=i$.prototype.onAdMetadataChanged;_.L([_.Q(_.u4.YtRendererstamperBehavior),_.p("design:type",Object)],i$.prototype,"ytRendererstamperBehavior",void 0);_.L([_.Q(_.Ms.YtComponentBehavior),_.p("design:type",Object)],i$.prototype,"ytComponentBehavior",void 0);_.L([_.x(),_.p("design:type",Object)],i$.prototype,"data",void 0);_.L([_.S("data.adLayoutMetadata"),_.p("design:type",Object),_.p("design:paramtypes",[])],i$.prototype,"adLayoutMetadata",null);
_.L([_.x(),_.p("design:type",Object)],i$.prototype,"adSlotMetadata",void 0);_.L([_.O8("adLayoutMetadata","adSlotMetadata"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],i$.prototype,"onAdMetadataChanged",null);_.L([_.U({is:"ytd-page-top-ad-layout-renderer",disableElementRegistration:!0})],i$);
_.D(i$,"ytd-page-top-ad-layout-renderer",function(){if(Xxl!==void 0)return Xxl;var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-page-top-ad-layout-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="rendering-content" class="style-scope ytd-page-top-ad-layout-renderer"></div>\n');a.content.insertBefore(_.w().content.cloneNode(!0),a.content.firstChild);return Xxl=
a},{mode:_.Np("kevlar_poly_si_batch_j070")?1:2});var RdJ;var xJ=function(){var a=_.G.apply(this,arguments)||this;a.noBottomMargin=!1;a.overlayDensity=0;a.typographyBump=!1;return a};
_.b(xJ,_.G);_.Z=xJ.prototype;
_.Z.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]]"}}}}}};
_.Z.ready=function(){var a=this;tOp(function(){a.isAttached&&a.adSlotMetadata&&s8f(AL(),a.adSlotMetadata)})};
_.Z.attached=function(){if(this.adSlotMetadata){var a;if(this.adSlotMetadata===((a=this.data)==null?void 0:a.adSlotMetadata))Akv(AL(),this.adSlotMetadata);else{var z;_.Xd(Error("Lh`"+this.adSlotMetadata+"`"+((z=this.data)==null?void 0:z.adSlotMetadata)))}}};
_.Z.detached=function(){this.adSlotMetadata&&s8f(AL(),this.adSlotMetadata)};
_.Z.onTypographyBumpChanged=function(){this.inFeedAdLayoutRenderer&&(this.inFeedAdLayoutRenderer.typographyBump=this.typographyBump)};
_.Z.onAdSlotMetadataChanged=function(){this.data&&this.data.adSlotMetadata&&(this.isAttached&&this.adSlotMetadata!==this.data.adSlotMetadata&&(this.adSlotMetadata!==void 0&&s8f(AL(),this.adSlotMetadata),Akv(AL(),this.data.adSlotMetadata)),this.adSlotMetadata=this.data.adSlotMetadata)};
_.eH.Object.defineProperties(xJ.prototype,{layout:{configurable:!0,enumerable:!0,get:function(){var a,z,I=_.H((a=this.data)==null?void 0:(z=a.fulfillmentContent)==null?void 0:z.fulfilledLayout,_.Tco),J;return(a=(J=_.H(I==null?void 0:I.renderingContent,Xrw))==null?void 0:J.layout)?a.toLowerCase().replace(/_/g,"-"):""}}});
xJ.prototype.onAdSlotMetadataChanged=xJ.prototype.onAdSlotMetadataChanged;xJ.prototype.onTypographyBumpChanged=xJ.prototype.onTypographyBumpChanged;_.L([_.Q(_.u4.YtRendererstamperBehavior),_.p("design:type",Object)],xJ.prototype,"ytRendererstamperBehavior",void 0);_.L([_.Q(_.Ms.YtComponentBehavior),_.p("design:type",Object)],xJ.prototype,"ytComponentBehavior",void 0);_.L([_.Q(_.k.YtRendererBehavior),_.p("design:type",Object)],xJ.prototype,"rendererBehavior",void 0);
_.L([_.x(),_.p("design:type",Object)],xJ.prototype,"data",void 0);_.L([_.x(),_.p("design:type",Object)],xJ.prototype,"noBottomMargin",void 0);_.L([_.x(),_.p("design:type",Object)],xJ.prototype,"overlayDensity",void 0);_.L([_.x(),_.p("design:type",Object)],xJ.prototype,"typographyBump",void 0);_.L([_.A3("ytd-in-feed-ad-layout-renderer"),_.p("design:type",HTMLElement)],xJ.prototype,"inFeedAdLayoutRenderer",void 0);
_.L([_.x({reflectToAttribute:!0}),_.S("data"),_.p("design:type",String),_.p("design:paramtypes",[])],xJ.prototype,"layout",null);_.L([_.O8("typographyBump"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],xJ.prototype,"onTypographyBumpChanged",null);_.L([_.O8("data.adSlotMetadata"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],xJ.prototype,"onAdSlotMetadataChanged",null);
_.L([_.U({is:"ytd-ad-slot-renderer",disableElementRegistration:!0})],xJ);
_.D(xJ,"ytd-ad-slot-renderer",function(){if(RdJ!==void 0)return RdJ;var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-ad-slot-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="fulfilled-layout" class="style-scope ytd-ad-slot-renderer"></div>\n');a.content.insertBefore(_.w().content.cloneNode(!0),a.content.firstChild);return RdJ=a},{mode:_.Np("kevlar_poly_si_batch_j077")?
1:2});var L4e;var dt=function(){return _.G.apply(this,arguments)||this};
_.b(dt,_.G);_.Z=dt.prototype;_.Z.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"}}}};
_.Z.maybeComputeHref=function(){return null};
_.Z.onTap=function(){};
_.Z.onThumbnailContainerClick=function(a){this.onClick(a)};
_.Z.onClick=function(a){var z,I=(z=this.data)==null?void 0:z.navigationEndpoint;I&&_.H(I,_.MZ)&&(this.ytSparklesClickLocationBehavior.handleClick(I,a,!1),a.stopPropagation())};
_.Z.dataChanged=function(){if(this.data){if(this.data.impressionUrls)for(var a=_.C(this.data.impressionUrls),z=a.next();!z.done;z=a.next())z=z.value,s0$(z,KoM(z));this.data.activeView&&this.ytdActiveViewBehavior.enableActiveViewMeasurement(this.data.activeView,17);this.ytSparklesClickLocationBehavior.configureClickTargets("main-container",dt.JSC$15469_DEFAULT_CLICK_LOCATION_BEHAVIOR,dt.JSC$15469_CLICK_LOCATION_ID_MAP);this.thumbnail&&(a=this.thumbnail.getElementsByTagName("a"),a.length>0&&(a=a.namedItem("thumbnail"))&&
a.removeAttribute("href"))}};
_.Z.attached=function(){var a=this;_.K("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&a.ytdActiveViewBehavior.stopActiveViewMeasurement()})};
_.Z.detached=function(){_.K("stop_av_measurement_on_detach")&&this.ytdActiveViewBehavior.stopActiveViewMeasurement()};
_.eH.Object.defineProperties(dt.prototype,{watchFeedBigThumbs:{configurable:!0,enumerable:!0,get:function(){return _.K("kevlar_watch_feed_big_thumbs")?!0:!!this.isGridViewEnabled}},
thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){return this.isGridViewEnabled||_.K("kevlar_watch_feed_big_thumbs")?"9999":"168"}}});
dt.prototype.dataChanged=dt.prototype.dataChanged;dt.prototype.onTap=dt.prototype.onTap;dt.JSC$15469_CLICK_LOCATION_ID_MAP=new Map([["PROMOTED_SPARKLES_CLICK_LOCATION_THUMBNAIL","thumbnail-container"],["PROMOTED_SPARKLES_CLICK_LOCATION_BACKGROUND","endpoint"]]);
dt.JSC$15469_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"}];_.L([_.Q(_.u4.YtRendererstamperBehavior),_.p("design:type",Object)],dt.prototype,"ytRendererstamperBehavior",void 0);
_.L([_.Q(_.k.YtRendererBehavior),_.p("design:type",Object)],dt.prototype,"ytRendererBehavior",void 0);_.L([_.Q(lf),_.p("design:type",Object)],dt.prototype,"ytdActiveViewBehavior",void 0);_.L([_.Q(_.Ms.YtComponentBehavior),_.p("design:type",Object)],dt.prototype,"ytComponentBehavior",void 0);_.L([_.Q(_.pV),_.p("design:type",Object)],dt.prototype,"ytdReduxBehavior",void 0);_.L([_.Q(_.tM.YtSparklesClickLocationBehavior),_.p("design:type",Object)],dt.prototype,"ytSparklesClickLocationBehavior",void 0);
_.L([_.x({selector:_.W8}),_.p("design:type",Object)],dt.prototype,"isGridViewEnabled",void 0);_.L([_.S("isGridViewEnabled"),_.x({reflectToAttribute:!0}),_.p("design:type",Boolean),_.p("design:paramtypes",[])],dt.prototype,"watchFeedBigThumbs",null);_.L([_.S("isGridViewEnabled"),_.x({reflectToAttribute:!0}),_.p("design:type",String),_.p("design:paramtypes",[])],dt.prototype,"thumbnailWidth",null);_.L([_.x(),_.p("design:type",Object)],dt.prototype,"data",void 0);
_.L([_.A3("ytd-thumbnail"),_.p("design:type",HTMLElement)],dt.prototype,"thumbnail",void 0);_.L([_.gz("tap"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],dt.prototype,"onTap",null);_.L([_.Fe("data"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],dt.prototype,"dataChanged",null);_.L([_.U({is:"ytd-compact-promoted-video-renderer",disableElementRegistration:!0})],dt);
_.D(dt,"ytd-compact-promoted-video-renderer",function(){if(L4e!==void 0)return L4e;var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-compact-promoted-video-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="main-container" class="style-scope ytd-compact-promoted-video-renderer">\n  <ytd-thumbnail id="thumbnail-container" data="[[data]]" width="[[thumbnailWidth]]" on-click="onThumbnailContainerClick" class="style-scope ytd-compact-promoted-video-renderer">\n  </ytd-thumbnail>\n  <div class="details style-scope ytd-compact-promoted-video-renderer">\n    <a id="endpoint" class="yt-simple-endpoint style-scope ytd-compact-promoted-video-renderer" href$="[[maybeComputeHref(data.navigationEndpoint)]]" on-click="onClick" data="[[data.navigationEndpoint]]">\n      <h3 class="style-scope ytd-compact-promoted-video-renderer">\n        <ytd-badge-supported-renderer top-standalone-badge="[[data.topStandaloneBadge]]" class="style-scope ytd-compact-promoted-video-renderer">\n        </ytd-badge-supported-renderer>\n        <span id="video-title" title$="[[getSimpleString(data.title)]]" aria-label$="[[data.title.accessibility.accessibilityData.label]]" class="style-scope ytd-compact-promoted-video-renderer">\n          [[getSimpleString(data.title)]]\n        </span>\n      </h3>\n      <div class="secondary-metadata style-scope ytd-compact-promoted-video-renderer">\n        <ytd-video-meta-block class="compact style-scope ytd-compact-promoted-video-renderer" data="[[data]]" watch-feed-big-thumbs="[[watchFeedBigThumbs]]">\n        </ytd-video-meta-block>\n        <div id="ad-badge-container" class="style-scope ytd-compact-promoted-video-renderer">\n          <div id="ad-badge" class="style-scope ytd-compact-promoted-video-renderer"></div>\n        </div>\n      </div>\n    </a>\n    <div id="menu" class="style-scope ytd-compact-promoted-video-renderer"></div>\n  </div>\n</div>');
a.content.insertBefore(_.w().content.cloneNode(!0),a.content.firstChild);return L4e=a},{mode:1});var l_e;_.$q("itemSectionRenderer","searchPyvRenderer","ytd-search-pyv-renderer");var WM=function(){return _.G.apply(this,arguments)||this};
_.b(WM,_.G);WM.prototype.configureRendererStamper=function(){return{"data.ads":{id:"contents",mapping:{adSlotRenderer:"ytd-ad-slot-renderer",promotedVideoRenderer:"ytd-promoted-video-renderer"}}}};
_.L([_.Q(_.k.YtRendererBehavior),_.p("design:type",Object)],WM.prototype,"ytRendererBehavior",void 0);_.L([_.Q(_.u4.YtRendererstamperBehavior),_.p("design:type",Object)],WM.prototype,"ytRendererstamperBehavior",void 0);_.L([_.x(),_.p("design:type",Object)],WM.prototype,"data",void 0);_.L([_.U({is:"ytd-search-pyv-renderer",disableElementRegistration:!0})],WM);
_.D(WM,"ytd-search-pyv-renderer",function(){if(l_e!==void 0)return l_e;var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-search-pyv-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="contents" class="style-scope ytd-search-pyv-renderer"></div>\n');a.content.insertBefore(_.w().content.cloneNode(!0),a.content.firstChild);return l_e=a},{mode:1});var pxE;_.$q("itemSectionRenderer","backstagePostThreadRenderer","ytd-backstage-post-thread-renderer");var oM=function(){var a=_.G.apply(this,arguments)||this;a.roundedContainer=!0;a.JSC$15477_handleOpenPostCommentDialogActionAfterStamp=!1;a.actionMap={"yt-signal-action-open-post-comment-dialog":"handleSignalActionOpenPostCommentDialogAction"};return a};
_.b(oM,_.G);_.Z=oM.prototype;
_.Z.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}}};
_.Z.onStampFinished=function(){this.JSC$15477_handleOpenPostCommentDialogActionAfterStamp&&this.handleSignalActionOpenPostCommentDialogAction()};
_.Z.handleSignalActionOpenPostCommentDialogAction=function(){var a=_.PK(this.hostElement).querySelector("ytd-comment-reply-dialog-renderer");a?a.openDialog():this.JSC$15477_handleOpenPostCommentDialogActionAfterStamp=!0};
_.Z.onYtCommentModerationPanelEmpty=function(){this.set("data.moderationPanel",{})};
_.Z.computeHideBorder=function(){return this.isInEngagementPanel};
_.Z.computeIsCompact=function(){return this.isInEngagementPanel};
_.Z.computeUsesCompactLockup=function(a){return a==="BACKSTAGE_SURFACE_TYPE_HOME"||a==="BACKSTAGE_SURFACE_TYPE_SEARCH"||a==="BACKSTAGE_SURFACE_TYPE_NEWS_DESTINATION"||a==="BACKSTAGE_SURFACE_TYPE_CHANNEL_HOME"||a==="BACKSTAGE_SURFACE_TYPE_STRUCTURED_DESCRIPTION"||a==="BACKSTAGE_SURFACE_TYPE_REPOST_PREVIEW"};
_.Z.computeUsesFullLockup=function(){var a,z=(a=this.data)==null?void 0:a.post,I;a=(I=_.H(z,wrX))==null?void 0:I.surface;var J;I=(J=_.H(z,k2O))==null?void 0:J.originalPost;var r;if(J=a||((r=_.H(I,wrX))==null?void 0:r.surface))return!this.computeUsesCompactLockup(J)&&this.useUpdatedRepostUi;var P;return((P=_.H(z,k2O))==null?void 0:P.originalPostDeletedMessage)!==void 0&&this.useUpdatedRepostUi};
_.eH.Object.defineProperties(oM.prototype,{isInEngagementPanel:{configurable:!0,enumerable:!0,get:function(){var a,z;return((z=_.H((a=this.data)==null?void 0:a.post,wrX))==null?void 0:z.surface)==="BACKSTAGE_SURFACE_TYPE_ENGAGEMENT_PANEL"}},
useUpdatedRepostUi:{configurable:!0,enumerable:!0,get:function(){var a;return(a=this.data)==null?void 0:a.useUpdatedRepostUi}}});
oM.prototype.onYtCommentModerationPanelEmpty=oM.prototype.onYtCommentModerationPanelEmpty;oM.prototype.onStampFinished=oM.prototype.onStampFinished;_.L([_.Q(_.Hc.YtActionHandlerBehavior),_.p("design:type",Object)],oM.prototype,"ytActionHandlerBehavior",void 0);_.L([_.Q(_.k.YtRendererBehavior),_.p("design:type",Object)],oM.prototype,"ytRendererBehavior",void 0);_.L([_.Q(_.u4.YtRendererstamperBehavior),_.p("design:type",Object)],oM.prototype,"ytRendererstamperBehavior",void 0);
_.L([_.x(),_.p("design:type",Object)],oM.prototype,"data",void 0);_.L([_.x({reflectToAttribute:!0}),_.p("design:type",Object)],oM.prototype,"roundedContainer",void 0);_.L([_.x({computed:"computeHideBorder(data, isInEngagementPanel)",reflectToAttribute:!0}),_.p("design:type",Boolean)],oM.prototype,"hideBorder",void 0);_.L([_.x({computed:"computeIsCompact(data, isInEngagementPanel)",reflectToAttribute:!0}),_.p("design:type",Boolean)],oM.prototype,"isCompact",void 0);
_.L([_.x({computed:"computeUsesFullLockup(data, useUpdatedRepostUi)",reflectToAttribute:!0}),_.p("design:type",Boolean)],oM.prototype,"usesFullLockup",void 0);_.L([_.gz("yt-rendererstamper-finished"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],oM.prototype,"onStampFinished",null);
_.L([_.gz("ytd-comment-moderation-panel-empty"),_.p("design:type",Function),_.p("design:paramtypes",[CustomEvent]),_.p("design:returntype")],oM.prototype,"onYtCommentModerationPanelEmpty",null);_.L([_.S("data"),_.p("design:type",Boolean),_.p("design:paramtypes",[])],oM.prototype,"isInEngagementPanel",null);_.L([_.S("data"),_.p("design:type",Boolean),_.p("design:paramtypes",[])],oM.prototype,"useUpdatedRepostUi",null);
_.L([_.U({is:"ytd-backstage-post-thread-renderer",disableElementRegistration:!0})],oM);
_.D(oM,"ytd-backstage-post-thread-renderer",function(){if(pxE!==void 0)return pxE;var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-backstage-post-thread-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="post" hidden="[[!data.post]]" class="style-scope ytd-backstage-post-thread-renderer"></div>\n<div id="comments-disabled" hidden="[[!data.commentsDisabledMessage]]" class="style-scope ytd-backstage-post-thread-renderer">[[getSimpleString(data.commentsDisabledMessage)]]</div>\n<div id="moderation-panel" hidden="[[!data.moderationPanel]]" class="style-scope ytd-backstage-post-thread-renderer"></div>\n<div id="comment-dialog" hidden="[[!data.commentDialog]]" class="style-scope ytd-backstage-post-thread-renderer"></div>');a.content.insertBefore(_.w().content.cloneNode(!0),
a.content.firstChild);return pxE=a},{mode:1});var wxe;var UA=function(){var a=_.G.apply(this,arguments)||this;a.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return a};
_.b(UA,_.G);UA.prototype.attached=function(){this.isDarkTheme=document.documentElement.hasAttribute("dark")};
UA.prototype.computeBannerImageUrl=function(){if(this.data!==void 0){var a=this.data.thumbnail.thumbnails;this.isDarkTheme&&(a=this.data.thumbnailDark.thumbnails);this.bannerImageUrl=(a=_.r4(a,24,void 0,"height"))?a:void 0}};
UA.prototype.onDarkModeToggledAction=function(a){this.isDarkTheme=a};
UA.prototype.computeHasText=function(){var a;return!((a=this.data)==null||!a.text)};
_.eH.Object.defineProperties(UA.prototype,{bannerStyle:{configurable:!0,enumerable:!0,get:function(){if(this.bannerImageUrl)return'background-image:url("'+String(_.XG(this.bannerImageUrl))+'");'}}});
UA.prototype.computeHasText=UA.prototype.computeHasText;UA.prototype.computeBannerImageUrl=UA.prototype.computeBannerImageUrl;_.L([_.Q(_.Hc.YtActionHandlerBehavior),_.p("design:type",Object)],UA.prototype,"ytActionHandlerBehavior",void 0);_.L([_.Q(_.Hc.YtActionHandlerBehavior),_.p("design:type",Object)],UA.prototype,"actionHandlerBehavior",void 0);_.L([_.Q(_.k.YtRendererBehavior),_.p("design:type",Object)],UA.prototype,"ytRendererBehavior",void 0);
_.L([_.x(),_.p("design:type",Object)],UA.prototype,"data",void 0);_.L([_.x(),_.p("design:type",Boolean)],UA.prototype,"isDarkTheme",void 0);_.L([_.x(),_.p("design:type",String)],UA.prototype,"bannerImageUrl",void 0);_.L([_.x({reflectToAttribute:!0,computed:"computeHasText(data.text)"}),_.p("design:type",Boolean)],UA.prototype,"hasText",void 0);_.L([_.O8("data","isDarkTheme"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],UA.prototype,"computeBannerImageUrl",null);
_.L([_.O8("data.text"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],UA.prototype,"computeHasText",null);_.L([_.S("bannerImageUrl"),_.p("design:type",Object),_.p("design:paramtypes",[])],UA.prototype,"bannerStyle",null);_.L([_.U({is:"ytd-backstage-prefilled-post-dialog-header-renderer",disableElementRegistration:!0})],UA);
_.D(UA,"ytd-backstage-prefilled-post-dialog-header-renderer",function(){if(wxe!==void 0)return wxe;var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-backstage-prefilled-post-dialog-header-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="banner" hidden="[[!bannerImageUrl]]" style$="[[bannerStyle]]" class="style-scope ytd-backstage-prefilled-post-dialog-header-renderer">\n</div>\n<div id="message" class="style-scope ytd-backstage-prefilled-post-dialog-header-renderer">\n  <p id="title" hidden="[[!getSimpleString(data.title)]]" class="style-scope ytd-backstage-prefilled-post-dialog-header-renderer">[[getSimpleString(data.title)]]</p>\n  <p id="text" hidden="[[!hasText]]" class="style-scope ytd-backstage-prefilled-post-dialog-header-renderer">[[getSimpleString(data.text)]]</p>\n</div>\n');
a.content.insertBefore(_.w().content.cloneNode(!0),a.content.firstChild);return wxe=a},{mode:1});var m9w;var D0=function(){return _.G.apply(this,arguments)||this};
_.b(D0,_.G);_.L([_.Q(_.k.YtRendererBehavior),_.p("design:type",Object)],D0.prototype,"ytRendererBehavior",void 0);_.L([_.x(),_.p("design:type",Object)],D0.prototype,"data",void 0);_.L([_.U({is:"ytd-backstage-zero-state-renderer",disableElementRegistration:!0})],D0);
_.D(D0,"ytd-backstage-zero-state-renderer",function(){if(m9w!==void 0)return m9w;var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-backstage-zero-state-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-icon id="image" icon="backstage:artwork" class="style-scope ytd-backstage-zero-state-renderer"></yt-icon>\n<span id="title" class="style-scope ytd-backstage-zero-state-renderer">[[getSimpleString(data.title)]]</span>\n<span id="text" class="style-scope ytd-backstage-zero-state-renderer">[[getSimpleString(data.text)]]</span>\n<yt-formatted-string id="link" force-default-style="" text="[[data.link]]" class="style-scope ytd-backstage-zero-state-renderer"></yt-formatted-string>\n<span id="footer" class="style-scope ytd-backstage-zero-state-renderer">[[getSimpleString(data.footer)]]</span>\n');a.content.insertBefore(_.w().content.cloneNode(!0),
a.content.firstChild);return m9w=a},{mode:1});var ykf;var RM=function(){return _.G.apply(this,arguments)||this};
_.b(RM,_.G);_.L([_.Q(_.k.YtRendererBehavior),_.p("design:type",Object)],RM.prototype,"ytRendererBehavior",void 0);_.L([_.x(),_.p("design:type",Object)],RM.prototype,"data",void 0);_.L([_.x({computed:"computeIcon_(data.icon)"}),_.p("design:type",String)],RM.prototype,"icon",void 0);_.L([_.U({is:"ytd-post-filter-zero-state-renderer",disableElementRegistration:!0})],RM);
_.D(RM,"ytd-post-filter-zero-state-renderer",function(){if(ykf!==void 0)return ykf;var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-post-filter-zero-state-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="icon-container" class="style-scope ytd-post-filter-zero-state-renderer"><yt-icon id="icon" icon="[[computeIcon_(data.icon)]]" class="style-scope ytd-post-filter-zero-state-renderer"></yt-icon></div>\n<div id="title" class="style-scope ytd-post-filter-zero-state-renderer">[[getSimpleString(data.title)]]</div>\n<div id="subtitle" class="style-scope ytd-post-filter-zero-state-renderer">[[getSimpleString(data.subtitle)]]</div>\n');a.content.insertBefore(_.w().content.cloneNode(!0),
a.content.firstChild);return ykf=a},{mode:1});var kMv;var M1J={"data.actionButton":{id:"schedule-button",mapping:{buttonRenderer:"ytd-button-renderer"}}},LA=function(){return _.G.apply(this,arguments)||this};
_.b(LA,_.G);LA.prototype.configureRendererStamper=function(){return M1J};
_.L([_.Q(_.k.YtRendererBehavior),_.p("design:type",Object)],LA.prototype,"ytRendererBehavior",void 0);_.L([_.Q(_.u4.YtRendererstamperBehavior),_.p("design:type",Object)],LA.prototype,"rendererstamperBehavior",void 0);_.L([_.x(),_.p("design:type",Object)],LA.prototype,"data",void 0);_.L([_.x({computed:"computeIcon_(data.icon)"}),_.p("design:type",String)],LA.prototype,"icon",void 0);_.L([_.U({is:"ytd-post-scheduling-zero-state-renderer",disableElementRegistration:!0})],LA);
_.D(LA,"ytd-post-scheduling-zero-state-renderer",function(){if(kMv!==void 0)return kMv;var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-post-scheduling-zero-state-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-icon id="image" icon="[[computeIcon_(data.icon)]]" class="style-scope ytd-post-scheduling-zero-state-renderer"></yt-icon>\n<span id="title" class="style-scope ytd-post-scheduling-zero-state-renderer">[[getSimpleString(data.title)]]</span>\n<div id="schedule-button" class="style-scope ytd-post-scheduling-zero-state-renderer"></div>\n');
a.content.insertBefore(_.w().content.cloneNode(!0),a.content.firstChild);return kMv=a},{mode:1});var cki;var l$=function(){var a=_.G.apply(this,arguments)||this;a.actionMap={"yt-update-posts-total-count-action":"handleUpdatePostsTotalCountAction"};return a};
_.b(l$,_.G);l$.prototype.onTabsActivate=function(a){this.data&&this.data.tabs&&_.PA(this.hostElement,"yt-navigate",{endpoint:this.data.tabs[a.detail.selected].navigationEndpoint})};
l$.prototype.shouldShowTotalCount=function(a){return a&&a.totalCount!==void 0};
l$.prototype.handleUpdatePostsTotalCountAction=function(a){var z=this.get(["data.tabs",1,"totalCount"]),I=this.get("updatePostsTotalCountAction.updateType",a);a=this.get("updatePostsTotalCountAction.number",a);z!==void 0&&I!=="UPDATE_POSTS_TOTAL_COUNT_TYPE_UNKNOWN"&&a&&(I==="UPDATE_POSTS_TOTAL_COUNT_TYPE_ADD"?this.set(["data.tabs",1,"totalCount"],Number(z)+a):I==="UPDATE_POSTS_TOTAL_COUNT_TYPE_REMOVE"&&this.set(["data.tabs",1,"totalCount"],Number(z)-a))};
_.eH.Object.defineProperties(l$.prototype,{selected:{configurable:!0,enumerable:!0,get:function(){if(this.data&&this.data.tabs)for(var a=0,z=this.data.tabs.length;a<z;a++)if(this.data.tabs[a].selected)return a;return 0}}});
_.L([_.Q(_.Hc.YtActionHandlerBehavior),_.p("design:type",Object)],l$.prototype,"actionHandlerBehavior",void 0);_.L([_.Q(_.k.YtRendererBehavior),_.p("design:type",Object)],l$.prototype,"rendererBehavior",void 0);_.L([_.x(),_.p("design:type",Object)],l$.prototype,"data",void 0);_.L([_.S("data.tabs"),_.p("design:type",Number),_.p("design:paramtypes",[])],l$.prototype,"selected",null);_.L([_.U({is:"ytd-post-stream-filter-renderer",disableElementRegistration:!0})],l$);
_.D(l$,"ytd-post-stream-filter-renderer",function(){if(cki!==void 0)return cki;var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-post-stream-filter-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="filter-container" class="style-scope ytd-post-stream-filter-renderer">\n  <tp-yt-paper-tabs selected="[[selected]]" on-iron-activate="onTabsActivate" class="style-scope ytd-post-stream-filter-renderer">\n    <template is="dom-repeat" items="[[data.tabs]]" class="style-scope ytd-post-stream-filter-renderer">\n      <tp-yt-paper-tab class="style-scope ytd-post-stream-filter-renderer">\n        [[getSimpleString(item.title)]]\n        <template is="dom-if" if="[[shouldShowTotalCount(item)]]" class="style-scope ytd-post-stream-filter-renderer">\n          <span class="posts-count style-scope ytd-post-stream-filter-renderer">[[item.totalCount]]</span>\n        </template>\n      </tp-yt-paper-tab>\n    </template>\n  </tp-yt-paper-tabs>\n</div>\n');
a.content.insertBefore(_.w().content.cloneNode(!0),a.content.firstChild);return cki=a},{mode:1});var Y6G;var pA=function(){return _.G.apply(this,arguments)||this};
_.b(pA,_.G);_.L([_.Q(_.k.YtRendererBehavior),_.p("design:type",Object)],pA.prototype,"kevlarBehaviors",void 0);_.L([_.x(),_.p("design:type",Object)],pA.prototype,"data",void 0);_.L([_.U({is:"ytd-channel-age-gate-renderer",disableElementRegistration:!0})],pA);
_.D(pA,"ytd-channel-age-gate-renderer",function(){if(Y6G!==void 0)return Y6G;var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-channel-age-gate-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="container" class="style-scope ytd-channel-age-gate-renderer">\n  <div id="channel-container" class="style-scope ytd-channel-age-gate-renderer">\n    <div id="channel" class="style-scope ytd-channel-age-gate-renderer">[[data.channelTitle]]</div>\n    <yt-img-shadow thumbnail="[[data.avatar]]" width="144" class="style-scope ytd-channel-age-gate-renderer"></yt-img-shadow>\n  </div>\n  <div id="info" class="style-scope ytd-channel-age-gate-renderer">\n    <yt-formatted-string id="header" text="[[data.header]]" class="style-scope ytd-channel-age-gate-renderer"></yt-formatted-string>\n    <yt-formatted-string text="[[data.mainText]]" class="style-scope ytd-channel-age-gate-renderer"></yt-formatted-string>\n    <ytd-button-renderer align-by-text="" data="[[data.signInButton.buttonRenderer]]" class="style-scope ytd-channel-age-gate-renderer">\n    </ytd-button-renderer>\n    <yt-formatted-string text="[[data.secondaryText]]" class="style-scope ytd-channel-age-gate-renderer">\n    </yt-formatted-string>\n  </div>\n</div>\n');a.content.insertBefore(_.w().content.cloneNode(!0),
a.content.firstChild);return Y6G=a},{mode:1});var q6w;_.$q("sharingItemSection","channelOwnerEmptyStateRenderer","ytd-channel-owner-empty-state-renderer");var wt=function(){var a=_.G.apply(this,arguments)||this;a.data=null;return a};
_.b(wt,_.G);wt.prototype.configureRendererStamper=function(){return{"data.uploadVideoButton":{id:"upload-video-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.eH.Object.defineProperties(wt.prototype,{imageSizePx:{configurable:!0,enumerable:!0,get:function(){var a,z,I;return((a=this.data)==null?0:(z=a.title)==null?0:(I=z.runs)==null?0:I.length)?147:160}}});
_.L([_.Q(_.u4.YtRendererstamperBehavior),_.p("design:type",Object)],wt.prototype,"ytRendererstamperBehavior",void 0);_.L([_.x(),_.p("design:type",Object)],wt.prototype,"data",void 0);_.L([_.x({reflectToAttribute:!0}),_.S("data"),_.p("design:type",Number),_.p("design:paramtypes",[])],wt.prototype,"imageSizePx",null);_.L([_.U({is:"ytd-channel-owner-empty-state-renderer",disableElementRegistration:!0})],wt);
_.D(wt,"ytd-channel-owner-empty-state-renderer",function(){if(q6w!==void 0)return q6w;var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-channel-owner-empty-state-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="container ytd-channel-owner-empty-state-renderer style-scope ytd-channel-owner-empty-state-renderer">\n  <div class="illustration style-scope ytd-channel-owner-empty-state-renderer">\n    <yt-img-shadow height="[[imageSizePx]]" thumbnail="[[data.illustration]]" class="style-scope ytd-channel-owner-empty-state-renderer">\n    </yt-img-shadow>\n  </div>\n  <div class="content style-scope ytd-channel-owner-empty-state-renderer">\n    <div class="header style-scope ytd-channel-owner-empty-state-renderer" hidden="[[!data.title]]">\n      <h2 class="style-scope ytd-channel-owner-empty-state-renderer">\n        <yt-formatted-string id="title" class="header-title style-scope ytd-channel-owner-empty-state-renderer" text="[[data.title]]">\n        </yt-formatted-string>\n      </h2>\n    </div>\n    <div class="description style-scope ytd-channel-owner-empty-state-renderer">\n      <yt-formatted-string id="description" class="description-text style-scope ytd-channel-owner-empty-state-renderer" text="[[data.description]]">\n      </yt-formatted-string>\n    </div>\n      <div class="button-layer style-scope ytd-channel-owner-empty-state-renderer" hidden="[[!data.uploadVideoButton]]">\n        <span id="upload-video-button" class="style-scope ytd-channel-owner-empty-state-renderer"></span>\n      </div>\n    <div class="learn-more style-scope ytd-channel-owner-empty-state-renderer">\n      <template is="dom-repeat" items="[[data.additionalInfos]]" class="style-scope ytd-channel-owner-empty-state-renderer">\n        <yt-formatted-string text="[[item]]" class="style-scope ytd-channel-owner-empty-state-renderer"></yt-formatted-string>\n      </template>\n    </div>\n  </div>\n</div>\n');
a.content.insertBefore(_.w().content.cloneNode(!0),a.content.firstChild);return q6w=a},{mode:1});var edX;var aDI;var mc=function(){var a=_.G.apply(this,arguments)||this;a.boundSubmitSearch=function(){a.submitSearch()};
a.boundClearSearch=function(){a.clearSearch()};
return a};
_.b(mc,_.G);_.Z=mc.prototype;_.Z.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]]"}}}}}};
_.Z.toggleClearButton=function(){this.hideClearButton=KQ7||!this.input.value};
_.Z.submitOnEnterKeyUp=function(a){a.keyCode!==13||this.input.invalid||this.submit(this.input.value)};
_.Z.clearSearch=function(){this.input.value="";this.submit(this.input.value)};
_.Z.submitSearch=function(){this.input.invalid||this.submit(this.input.value)};
_.Z.submit=function(){_.PA(this.hostElement,"search-query-changed",this.input.value)};
mc.prototype.toggleClearButton=mc.prototype.toggleClearButton;_.L([_.Q(_.Ms.YtComponentBehavior),_.p("design:type",Object)],mc.prototype,"ytComponentBehavior",void 0);_.L([_.Q(_.k.YtRendererBehavior),_.p("design:type",Object)],mc.prototype,"ytRendererBehavior",void 0);_.L([_.Q(_.u4.YtRendererstamperBehavior),_.p("design:type",Object)],mc.prototype,"ytRendererstamperBehavior",void 0);_.L([_.x(),_.p("design:type",Object)],mc.prototype,"data",void 0);
_.L([_.x({reflectToAttribute:!0}),_.p("design:type",Boolean)],mc.prototype,"hideClearButton",void 0);_.L([_.x(),_.p("design:type",Object)],mc.prototype,"boundSubmitSearch",void 0);_.L([_.x(),_.p("design:type",Object)],mc.prototype,"boundClearSearch",void 0);_.L([_.A3("#input"),_.p("design:type",Object)],mc.prototype,"input",void 0);_.L([_.Fe("data"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],mc.prototype,"toggleClearButton",null);
_.L([_.U({is:"ytd-channel-switcher-search-box-renderer",disableElementRegistration:!0})],mc);
_.D(mc,"ytd-channel-switcher-search-box-renderer",function(){if(aDI!==void 0)return aDI;var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-channel-switcher-search-box-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<tp-yt-paper-input id="input" auto-validate="true" autocomplete="off" error-message="[[getSimpleString(data.invalidQueryErrorMessage)]]" label="[[getSimpleString(data.placeholderText)]]" maxlength="100" minlength="3" name="query" no-label-float="" use-v2-underline="" value="[[getSimpleString(data.searchText)]]" on-input="toggleClearButton" on-keyup="submitOnEnterKeyUp" class="style-scope ytd-channel-switcher-search-box-renderer">\n  <div id="search-button" slot="prefix" prefix="" class="style-scope ytd-channel-switcher-search-box-renderer"></div>\n  <div id="clear-button" slot="suffix" suffix="" class="style-scope ytd-channel-switcher-search-box-renderer"></div>\n</tp-yt-paper-input>\n');a.content.insertBefore(_.w().content.cloneNode(!0),
a.content.firstChild);return aDI=a},{mode:1});var jrG;var yH=function(){var a=_.G.apply(this,arguments)||this;a.boundSubmit=function(){a.submit()};
return a};
_.b(yH,_.G);_.Z=yH.prototype;_.Z.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"}}}}};
_.Z.ready=function(){var a=this;this.form.addEventListener("submit",function(z){return a.onSubmit(z)})};
_.Z.onSubmit=function(a){a.preventDefault();return!1};
_.Z.toggleClearButton=function(){this.hideClearButton=KQ7||!this.input.value};
_.Z.submitOnEnterKeyUp=function(a){a.keyCode===13&&this.submit()};
_.Z.submit=function(){var a=this.data.endpoint,z=(0,_.x8.unsafeClone)(a);_.H(z,_.KH)?_.H(z,_.KH).query=this.input.value:_.H(z,_.Fb)&&(_.H(z,_.Fb).query=this.input.value);var I=_.H(z.commandMetadata,_.O_);(I==null?0:I.url)?(I.url=_.oO(I.url,"query",this.input.value),_.PA(this.hostElement,"yt-navigate",{endpoint:z})):_.H(z,Stv)?(_.H(z,Stv).channelSwitcherQuery=this.input.value,_.ab().resolve(_.j6).resolveCommand(z,{form:{element:this.hostElement}})):(a=Error("Mh`"+JSON.stringify(a)),_.Gx(a))};
_.Z.getUrl=function(a){return this.get("commandMetadata.webCommandMetadata.url",a)};
yH.prototype.toggleClearButton=yH.prototype.toggleClearButton;_.L([_.Q(_.k.YtRendererBehavior),_.p("design:type",Object)],yH.prototype,"ytRendererBehavior",void 0);_.L([_.Q(_.u4.YtRendererstamperBehavior),_.p("design:type",Object)],yH.prototype,"ytRendererstamperBehavior",void 0);_.L([_.x(),_.p("design:type",Object)],yH.prototype,"data",void 0);_.L([_.x({reflectToAttribute:!0}),_.p("design:type",Boolean)],yH.prototype,"hideClearButton",void 0);
_.L([_.x(),_.p("design:type",Object)],yH.prototype,"boundSubmit",void 0);_.L([_.A3("#form"),_.p("design:type",HTMLFormElement)],yH.prototype,"form",void 0);_.L([_.A3("#input"),_.p("design:type",Object)],yH.prototype,"input",void 0);_.L([_.Fe("data"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],yH.prototype,"toggleClearButton",null);_.L([_.U({disableElementRegistration:!0,is:"ytd-search-box-renderer"})],yH);
_.D(yH,"ytd-search-box-renderer",function(){if(jrG!==void 0)return jrG;var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-search-box-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<form id="form" action="[[getUrl(data.endpoint)]]" class="style-scope ytd-search-box-renderer">\n  <tp-yt-paper-input id="input" autocomplete="off" label="[[getSimpleString(data.placeholderText)]]" max-length="100" name="query" no-label-float="" use-v2-underline="" value="[[getSimpleString(data.searchText)]]" on-input="toggleClearButton" on-keyup="submitOnEnterKeyUp" class="style-scope ytd-search-box-renderer">\n    <div id="search-button" slot="prefix" prefix="" class="style-scope ytd-search-box-renderer"></div>\n    <div id="clear-button" slot="suffix" suffix="" class="style-scope ytd-search-box-renderer"></div>\n  </tp-yt-paper-input>\n</form>\n');
a.content.insertBefore(_.w().content.cloneNode(!0),a.content.firstChild);return jrG=a},{mode:2});var kJ=function(){var a=_.G.apply(this,arguments)||this;a.showSearchBox=!0;return a};
_.b(kJ,_.G);kJ.prototype.configureRendererStamper=function(){return{"data.searchBox":{id:"search-box",mapping:{searchBoxRenderer:"ytd-search-box-renderer",channelSwitcherSearchBoxRenderer:"ytd-channel-switcher-search-box-renderer"}}}};
_.L([_.Q(_.k.YtRendererBehavior),_.p("design:type",Object)],kJ.prototype,"ytRendererBehavior",void 0);_.L([_.Q(_.u4.YtRendererstamperBehavior),_.p("design:type",Object)],kJ.prototype,"ytRendererstamperBehavior",void 0);_.L([_.x(),_.p("design:type",Object)],kJ.prototype,"data",void 0);_.L([_.x({reflectToAttribute:!0}),_.p("design:type",Object)],kJ.prototype,"showSearchBox",void 0);_.L([_.U({is:"ytd-channel-switcher-header-renderer",disableElementRegistration:!0})],kJ);
_.D(kJ,"ytd-channel-switcher-header-renderer",function(){if(edX!==void 0)return edX;var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-channel-switcher-header-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<h2 class="style-scope ytd-channel-switcher-header-renderer">\n  <yt-formatted-string text="[[data.title]]" class="style-scope ytd-channel-switcher-header-renderer"></yt-formatted-string>\n</h2>\n<div id="search-box" hidden="[[!showSearchBox]]" class="style-scope ytd-channel-switcher-header-renderer"></div>\n');
a.content.insertBefore(_.w().content.cloneNode(!0),a.content.firstChild);return edX=a},{mode:1});var zKJ;var ID1;var Mi=function(){var a=_.G.apply(this,arguments)||this;a.isDisplayed=!0;return a};
_.b(Mi,_.G);_.Z=Mi.prototype;_.Z.configureRendererStamper=function(){return{"data.button":{id:"button",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.dismissButton":{id:"dismiss-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.Z.dataChanged=function(){this.isDisplayed=!0};
_.Z.computeType=function(a){return a||"UNKNOWN"};
_.Z.onYtServiceRequestCompleted=function(a){a.stopPropagation();this.isDisplayed=!1};
_.Z.onClose=function(){this.isDisplayed=!1};
Mi.prototype.onYtServiceRequestCompleted=Mi.prototype.onYtServiceRequestCompleted;Mi.prototype.dataChanged=Mi.prototype.dataChanged;_.L([_.Q(_.k.YtRendererBehavior),_.p("design:type",Object)],Mi.prototype,"ytRendererBehavior",void 0);_.L([_.Q(_.u4.YtRendererstamperBehavior),_.p("design:type",Object)],Mi.prototype,"ytRendererstamperBehavior",void 0);_.L([_.x(),_.p("design:type",Object)],Mi.prototype,"data",void 0);
_.L([_.x({computed:"computeType(data.type)",reflectToAttribute:!0}),_.p("design:type",String)],Mi.prototype,"type",void 0);_.L([_.x({reflectToAttribute:!0}),_.p("design:type",Object)],Mi.prototype,"isDisplayed",void 0);_.L([_.Fe("data"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],Mi.prototype,"dataChanged",null);
_.L([_.gz("yt-service-request-completed"),_.p("design:type",Function),_.p("design:paramtypes",[CustomEvent]),_.p("design:returntype")],Mi.prototype,"onYtServiceRequestCompleted",null);_.L([_.U({disableElementRegistration:!0,is:"ytd-alert-with-button-renderer"})],Mi);
_.D(Mi,"ytd-alert-with-button-renderer",function(){if(ID1!==void 0)return ID1;var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-alert-with-button-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-formatted-string id="text" text="[[data.text]]" class="style-scope ytd-alert-with-button-renderer"></yt-formatted-string>\n<div id="buttons" class="style-scope ytd-alert-with-button-renderer">\n  <div id="button" class="style-scope ytd-alert-with-button-renderer"></div>\n  <div id="dismiss-button" on-click="onClose" class="style-scope ytd-alert-with-button-renderer"></div>\n</div>\n');a.content.insertBefore(_.w().content.cloneNode(!0),
a.content.firstChild);return ID1=a},{mode:1});var cM=function(){var a=_.G.apply(this,arguments)||this;a.noResult=!1;a.enableAlertBanner=!1;a.dismissedAlertBanner=!1;a.hideCreateChannelButton=!1;a.boundDismissAlertBanner=function(){a.dismissAlertBanner()};
a.actionMap={"yt-update-channel-switcher-page-action":"updateChannelSwitcherAction"};return a};
_.b(cM,_.G);_.Z=cM.prototype;_.Z.computeButtonOverride=function(){return{style:"mono",type:"tonal"}};
_.Z.onDataChanged=function(){this.setShowSearchBox(this.data)};
_.Z.updateChannelSwitcherAction=function(a){var z;a=(z=_.H(a,nTO))==null?void 0:z.page;_.H(a,sRI)!==void 0&&(this.data=_.H(a,sRI))};
_.Z.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]]"}}}}}};
_.Z.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"contents"}};
_.Z.searchQueryChanged=function(a,z){if(this.data&&this.data.contents&&this.data.contents.length){a=[];var I=[];this.hideCreateChannelButton=this.noResult=!1;for(var J=document.querySelectorAll("ytd-account-item-renderer"),r=_.C(J),P=r.next();!P.done;P=r.next())P=P.value,I.push(P),P.style.display="block";this.resetRightBorder(I);if(z){this.hideCreateChannelButton=!0;for(I=1;I<this.data.contents.length;I++)if(P=this.data.contents[I],_.H(P,hCw)){var N=void 0,u=void 0;r=(N=_.H(P,hCw))==null?void 0:(u=
N.accountName)==null?void 0:u.simpleText;u=N=void 0;P=(N=_.H(P,hCw))==null?void 0:(u=N.channelHandle)==null?void 0:u.simpleText;(N=J[I-1])&&r&&_.uG(r,z)?a.push(N):_.K("enable_handle_search_on_channel_switcher")&&N&&P&&_.uG(P.toString(),z.toString())?a.push(N):N.style.display="none"}a.length===0&&(this.noResult=!0);this.resetRightBorder(a)}}};
_.Z.resetRightBorder=function(a){for(var z=0;z<a.length;z++)a[z].style.borderRight=!this.hideCreateChannelButton&&(z+2)%3===0||this.hideCreateChannelButton&&(z+1)%3===0?"none":"1px solid var(--yt-spec-10-percent-layer)"};
_.Z.onContinuationItemsUpdated=function(){this.setShowSearchBox(this.data)};
_.Z.setShowSearchBox=function(a){if(a&&a.contents&&this.channelSwitcherHeaderRenderer){this.enableAlertBanner=!1;this.channelSwitcherHeaderRenderer.showSearchBox=!0;for(var z=0;z<a.contents.length;z++)_.H(a.contents[z],_.av)&&(this.enableAlertBanner=!0,this.channelSwitcherHeaderRenderer.showSearchBox=!1);this.dismissedAlertBanner&&(this.enableAlertBanner=!1)}};
_.Z.dismissAlertBanner=function(){this.dismissedAlertBanner=!0;this.enableAlertBanner=!1};
_.eH.Object.defineProperties(cM.prototype,{isLoading:{configurable:!0,enumerable:!0,get:function(){var a;return!((a=this.data)==null?0:a.contents)}}});
cM.prototype.onContinuationItemsUpdated=cM.prototype.onContinuationItemsUpdated;cM.prototype.searchQueryChanged=cM.prototype.searchQueryChanged;cM.prototype.onDataChanged=cM.prototype.onDataChanged;_.L([_.Q(_.k.YtRendererBehavior),_.p("design:type",Object)],cM.prototype,"ytRendererBehavior",void 0);_.L([_.Q(_.u4.YtRendererstamperBehavior),_.p("design:type",Object)],cM.prototype,"ytRendererstamperBehavior",void 0);
_.L([_.Q(_.Hc.YtActionHandlerBehavior),_.p("design:type",Object)],cM.prototype,"actionHandlerBehavior",void 0);_.L([_.Q(_.M8),_.p("design:type",Object)],cM.prototype,"ytContinuationHandlerBehavior",void 0);_.L([_.x(),_.p("design:type",Object)],cM.prototype,"data",void 0);_.L([_.A3("ytd-channel-switcher-header-renderer"),_.p("design:type",Object)],cM.prototype,"channelSwitcherHeaderRenderer",void 0);_.L([_.x(),_.p("design:type",Object)],cM.prototype,"noResult",void 0);
_.L([_.x(),_.p("design:type",Object)],cM.prototype,"enableAlertBanner",void 0);_.L([_.x(),_.p("design:type",Object)],cM.prototype,"dismissedAlertBanner",void 0);_.L([_.x({reflectToAttribute:!0}),_.p("design:type",Object)],cM.prototype,"hideCreateChannelButton",void 0);_.L([_.S("data.contents"),_.p("design:type",Boolean),_.p("design:paramtypes",[])],cM.prototype,"isLoading",null);_.L([_.x(),_.p("design:type",Object)],cM.prototype,"boundDismissAlertBanner",void 0);
_.L([_.x({computed:"computeButtonOverride()"}),_.p("design:type",Object)],cM.prototype,"buttonOverride",void 0);_.L([_.O8("data"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],cM.prototype,"onDataChanged",null);_.L([_.gz("search-query-changed"),_.p("design:type",Function),_.p("design:paramtypes",[CustomEvent,String]),_.p("design:returntype")],cM.prototype,"searchQueryChanged",null);
_.L([_.gz("yt-next-continuation-data-updated"),_.p("design:type",Function),_.p("design:paramtypes",[CustomEvent]),_.p("design:returntype")],cM.prototype,"onContinuationItemsUpdated",null);_.L([_.U({is:"ytd-channel-switcher-page-renderer",disableElementRegistration:!0})],cM);
_.D(cM,"ytd-channel-switcher-page-renderer",function(){if(zKJ!==void 0)return zKJ;var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-channel-switcher-page-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-channel-switcher-page-renderer"></div>\n<div id="body" class="style-scope ytd-channel-switcher-page-renderer">\n  <div class="spinner-container style-scope ytd-channel-switcher-page-renderer" hidden="[[!isLoading]]">\n    <tp-yt-paper-spinner-lite active="[[isLoading]]" class="style-scope ytd-channel-switcher-page-renderer"></tp-yt-paper-spinner-lite>\n  </div>\n  <div id="alert" hidden="[[!enableAlertBanner]]" class="style-scope ytd-channel-switcher-page-renderer">\n      <yt-formatted-string id="alert-message" text="[[data.alertMessage]]" class="style-scope ytd-channel-switcher-page-renderer"></yt-formatted-string>\n      <div id="dismiss-button" class="style-scope ytd-channel-switcher-page-renderer"></div>\n  </div>\n  <div id="contents" class="style-scope ytd-channel-switcher-page-renderer"></div>\n</div>\n<yt-formatted-string id="no-result" hidden="[[!noResult]]" text="[[data.noResult]]" class="style-scope ytd-channel-switcher-page-renderer">\n</yt-formatted-string>\n');a.content.insertBefore(_.w().content.cloneNode(!0),
a.content.firstChild);return zKJ=a},{mode:1});var Juw;var ruE;var YJ=function(){var a=_.G.apply(this,arguments)||this;a.images=[];a.selectedImageIndex=0;return a};
_.b(YJ,_.G);_.Z=YJ.prototype;
_.Z.ready=function(){_.Sg(this.thumbnailImagesContainer,"ytb-backstage-multi-image-thumbnail-render-click",this.onThumbnailClick,!1,this);_.Sg(this.JSC$15522_imagePreviewContainer,"ytd-backstage-image-preview-coordinates-update",this.updateImageThumbnails,!1,this);_.Sg(this.JSC$15522_imagePreviewContainer,"ytd-backstage-image-preview-coordinates-save",this.saveImageRepositions,!1,this);_.Sg(this.JSC$15522_imagePreviewContainer,"ytd-backstage-image-preview-coordinates-cancel",this.cancelImageRepositions,
!1,this)};
_.Z.onThumbnailClick=function(a){if(a=a.event_.detail)this.selectedImageIndex=this.images.indexOf(a)};
_.Z.updateImageThumbnails=function(a){a=Object.assign({},this.images[this.selectedImageIndex],{previewCoordinates:a.event_.detail});this.images.splice(this.selectedImageIndex,1,a);this.images=[].concat(_.ih(this.images))};
_.Z.cancelImageRepositions=function(){this.selectedImageIndex=0;_.PA(this.hostElement,"ytd-backstage-image-reposition-cancel")};
_.Z.saveImageRepositions=function(){this.selectedImageIndex=0;_.PA(this.hostElement,"ytd-backstage-image-reposition-save",this.images)};
_.eH.Object.defineProperties(YJ.prototype,{thumbnailRendererDatas:{configurable:!0,enumerable:!0,get:function(){var a=this;return(this.images||[]).map(function(z,I){return{image:z,selected:I===a.selectedImageIndex}})}},
selectedImageData:{configurable:!0,enumerable:!0,get:function(){return this.images[this.selectedImageIndex]}}});
_.L([_.Q(_.u4.YtRendererstamperBehavior),_.p("design:type",Object)],YJ.prototype,"ytRendererstamperBehavior",void 0);_.L([_.A3("ytd-backstage-image-preview-renderer"),_.p("design:type",Object)],YJ.prototype,"JSC$15522_imagePreviewContainer",void 0);_.L([_.A3(".thumbnail-images-container"),_.p("design:type",HTMLElement)],YJ.prototype,"thumbnailImagesContainer",void 0);_.L([_.x(),_.p("design:type",Array)],YJ.prototype,"images",void 0);
_.L([_.x(),_.p("design:type",Object)],YJ.prototype,"repositionInstructions",void 0);_.L([_.x(),_.p("design:type",Object)],YJ.prototype,"selectedImageIndex",void 0);_.L([_.S("images","selectedImageIndex"),_.p("design:type",Array),_.p("design:paramtypes",[])],YJ.prototype,"thumbnailRendererDatas",null);_.L([_.S("images","selectedImageIndex"),_.p("design:type",Object),_.p("design:paramtypes",[])],YJ.prototype,"selectedImageData",null);
_.L([_.U({is:"ytd-backstage-multi-image-reposition-renderer",disableElementRegistration:!0})],YJ);
_.D(YJ,"ytd-backstage-multi-image-reposition-renderer",function(){if(ruE!==void 0)return ruE;var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-backstage-multi-image-reposition-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="image-reposition-container style-scope ytd-backstage-multi-image-reposition-renderer">\n  <div class="thumbnail-images-container style-scope ytd-backstage-multi-image-reposition-renderer">\n    <template is="dom-repeat" items="[[thumbnailRendererDatas]]" class="style-scope ytd-backstage-multi-image-reposition-renderer">\n      <div class="image-thumbnail style-scope ytd-backstage-multi-image-reposition-renderer">\n        <ytd-backstage-multi-image-thumbnail-renderer id="thumbnail-renderer" data="[[item]]" class="style-scope ytd-backstage-multi-image-reposition-renderer">\n        </ytd-backstage-multi-image-thumbnail-renderer>\n      </div>\n    </template>\n  </div>\n  <div class="image-reposition style-scope ytd-backstage-multi-image-reposition-renderer">\n    <ytd-backstage-image-preview-renderer edit-only-mode="" image-data="[[selectedImageData]]" instruction="[[repositionInstructions]]" class="style-scope ytd-backstage-multi-image-reposition-renderer">\n    </ytd-backstage-image-preview-renderer>\n  </div>\n</div>\n');a.content.insertBefore(_.w().content.cloneNode(!0),
a.content.firstChild);return ruE=a},{mode:1});var qi=function(a,z){_.HV.call(this);this.uploadUrl=a;this.channelId=z;this.imagesUploadData=[]};
_.b(qi,_.HV);qi.prototype.getAllUploadStatuses=function(){var a=this,z,I,J;return _.t(function(r){if(r.nextAddress==1)return r.yield(PtX(a),2);z=r.yieldResult;I=z.get("succeed");J=z.get("failed");return r.return(I.concat(J))})};
var Cti=function(a){var z,I;return _.t(function(J){if(J.nextAddress==1)return J.yield(PtX(a),2);z=J.yieldResult;I=z.get("failed");I.length>0&&Zaf(a,I);return J.return(a.getAllUploadStatuses())})},PtX=function(a){var z,I,J,r,P,N,u;
return _.t(function(E){if(E.nextAddress==1)return z=new Map,E.yield(Promise.allSettled(a.imagesUploadData.map(function(O){return O.uploadPromise})),2);
I=E.yieldResult;J=[];r=_.C(I);for(P=r.next();!P.done;P=r.next())N=P.value,N.status==="fulfilled"&&J.push(N.value);u=a.imagesUploadData.map(function(O){return O.image}).filter(function(O){return J.every(function(f){return f.id!==O.id})});
z.set("succeed",J);z.set("failed",u);return E.return(z)})},Zaf=function(a,z){z=_.C(z);
for(var I=z.next();!I.done;I=z.next()){var J=a;I=I.value;NSv(J,I.id)>=0&&J.cancel(I.id);var r=new tSG(I),P=_.EBw(J.uploadUrl,{"X-YouTube-ChannelId":J.channelId},I.imageBlob);r.transfer=P;r.uploadPromise=utG(P,I);J.imagesUploadData.push(r);P.run()}};
qi.prototype.cancel=function(a){var z=NSv(this,a);z!==-1&&((z=this.imagesUploadData[z].transfer)&&z.cancel(),this.imagesUploadData=this.imagesUploadData.filter(function(I){return I.image.id!==a}))};
var NSv=function(a,z){return a.imagesUploadData.findIndex(function(I){return I.image.id===z})},utG=function(a,z){return new Promise(function(I,J){a.listen("l",function(){var r=a.getResponseText();
r?(r=JSON.parse(r).encryptedBlobId,z.encryptedBlobId=r,I(z)):J("upload failed")});
a.listen("n",function(){J("upload failed")})})},tSG=function(a){this.image=a};var zM7=function(a,z,I,J,r){this.id=a;this.imageBlob=z;this.localImageSrc=I;this.naturalWidth=J;this.naturalHeight=r;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 Edo=[".jpeg",".jpg",".png"],e0=function(){var a=_.G.apply(this,arguments)||this;a.showImagesPreview=!1;a.pollOptions=[];a.errorMessage="";a.optionPlaceholderText="";a.optionDefaultText="";a.JSC$15533_imageId=0;a.maxFileSizeMb=0;a.maxAspectRatio=0;a.invalidFileSizeError="";a.invalidAspectRatioError="";a.invalidFileTypeError="";a.imageSelector=new AV(null,"single_file",Edo);return a};
_.b(e0,_.G);_.Z=e0.prototype;_.Z.ready=function(){_.Sg(this.imageSelector,"j",this.onImageSelect,!1,this);_.Sg(this.imageRepositionContainer,"ytd-backstage-image-reposition-save",this.saveImageRepositions,!1,this);_.Sg(this.imageRepositionContainer,"ytd-backstage-image-reposition-cancel",this.cancelImageRepositions,!1,this)};
_.Z.dataChanged=function(){var a,z,I=_.H((a=this.data)==null?void 0:(z=a.cellTemplate)==null?void 0:z.onEmptyCellTap,hcJ);if(I&&I.uploadUrl&&I.channelId){var J;this.maxFileSizeMb=((J=I.imageValidationInfo)==null?void 0:J.maxFileSizeMb)||0;var r;this.maxAspectRatio=((r=I.imageValidationInfo)==null?void 0:r.allowedMaxAspectRatio)||0;var P;this.invalidFileSizeError=this.getSimpleString((P=this.data)==null?void 0:P.invalidFileSizeError);var N;this.invalidAspectRatioError=this.getSimpleString((N=this.data)==
null?void 0:N.invalidAspectRatioError);var u;this.invalidFileTypeError=this.getSimpleString((u=this.data)==null?void 0:u.invalidFileTypeError);this.uploadManager=new qi(I.uploadUrl,I.channelId)}};
_.Z.onEditorInfoChange=function(){this.optionPlaceholderText=_.cd(this.editorInfo.optionPlaceholderText);this.optionDefaultText=_.cd(this.editorInfo.optionDefaultText);this.pollOptions=this.createPollOptions(this.editorInfo)};
_.Z.observeAddImageError=function(){this.errorMessage!==""&&_.PA(this.hostElement,"yt-backstage-add-image-error",this.errorMessage)};
_.Z.onPollOptionsChange=function(){for(var a=!1,z=[],I=0;I<this.pollOptions.length;I++){var J=this.hasCustomOptionText?this.optionPlaceholderText:this.optionDefaultText+" "+(I+1);this.pollOptions[I].placeholderText!==J?(a=!0,z.push(Object.assign({},this.pollOptions[I],{placeholderText:J}))):z.push(this.pollOptions[I])}a&&(this.pollOptions=z);this.isValid()?_.PA(this.hostElement,"yt-commentbox-post-enable"):_.PA(this.hostElement,"yt-commentbox-post-disable")};
_.Z.createPollOptions=function(a){var z=[],I;a=(I=a==null?void 0:a.minPollOptions)!=null?I:0;for(I=0;I<a;I++)z.push(this.createPollOption());return z};
_.Z.onImageSelect=function(a){var z=this,I,J,r,P,N,u;return _.t(function(E){if(E.nextAddress==1){if(z.selectedImageIndex===void 0)return E.jumpTo(0);I=a.files[0];z.errorMessage="";J=z.validateImage(I);if(J!=="")return z.errorMessage=J,E.return();r=new jK(z.maxAspectRatio,!1,!0);return E.yield(r.transform(I),3)}if(E.nextAddress!=4)return P=E.yieldResult,P.transformedData?P.invalidAspectRatio?(z.errorMessage=z.invalidAspectRatioError,E.return()):E.yield(Iz3(z.JSC$15533_imageId,a.files[0],P.transformedData),
4):(z.errorMessage=z.invalidFileTypeError,E.return());N=E.yieldResult;z.JSC$15533_imageId++;Zaf(z.uploadManager,[N]);u=Object.assign({},z.pollOptions[z.selectedImageIndex],{image:N});z.pollOptions.splice(z.selectedImageIndex,1,u);z.refreshPollOptions();_.PA(z.hostElement,"yt-backstage-poll-image-select");_.nu(E)})};
_.Z.validateImage=function(a){return a.size>1048576*this.maxFileSizeMb?this.invalidFileSizeError:""};
_.Z.refreshPollOptions=function(){this.pollOptions=[].concat(_.ih(this.pollOptions))};
_.Z.onAddPollOption=function(){this.isAllowedToAddOption&&(this.pollOptions=[].concat(_.ih(this.pollOptions),[this.createPollOption()]))};
_.Z.onRemovePollOption=function(a){var z=this.pollOptions[a.model.index];z&&z.image&&this.uploadManager.cancel(z.image.id);this.pollOptions.splice(a.model.index,1);this.refreshPollOptions();this.pollOptions.length===0&&_.PA(this.hostElement,"yt-image-poll-attachment-dismiss")};
_.Z.onTextInput=function(){this.refreshPollOptions()};
_.Z.onImageButtonClick=function(a){this.selectedImageIndex=a.model.index;this.imageSelector.click()};
_.Z.onRepositionImages=function(){this.hasImages&&(this.showImagesPreview=!0,this.refreshPollOptions())};
_.Z.cancelImageRepositions=function(){this.showImagesPreview=!1;this.refreshPollOptions()};
_.Z.saveImageRepositions=function(a){a=a.event_.detail;for(var z=0,I=[],J=_.C(this.pollOptions),r=J.next();!r.done;r=J.next())r=r.value,r.image!==void 0?(r=Object.assign({},r,{image:a[z]}),I.push(r),z++):I.push(r);this.showImagesPreview=!1;this.pollOptions=[].concat(_.ih(I))};
_.Z.isValid=function(){if(!this.editorInfo||this.showImagesPreview||this.pollOptions.length<Number(this.editorInfo.minPollOptions)||this.pollOptions.length>Number(this.editorInfo.maxPollOptions))return!1;for(var a=0,z=_.C(this.pollOptions),I=z.next();!I.done;I=z.next())if(I=I.value,I.optionText.trim()!==""||I.image!==void 0){if(!I.image||this.hasCustomOptionText&&I.optionText.trim().length<Number(this.editorInfo.minPollOptionChars))return!1;a++}return a>=Number(this.editorInfo.minPollOptions)};
_.Z.getAllUploadStatuses=function(){var a=this,z,I,J,r;return _.t(function(P){if(P.nextAddress==1)return P.yield(a.uploadManager.getAllUploadStatuses(),2);z=P.yieldResult;I=_.C(z);for(J=I.next();!J.done;J=I.next())if(r=J.value,r.encryptedBlobId===void 0)return P.return(Cti(a.uploadManager));return P.return(z)})};
_.Z.getPostCreateOptions=function(){for(var a=[],z=_.C(this.pollOptions),I=z.next();!I.done;I=z.next())I=I.value,I.image!==void 0&&a.push({text:this.hasCustomOptionText?I.optionText:I.placeholderText,image:I.image});return a};
_.Z.resetPollOptions=function(){this.pollOptions=this.createPollOptions(this.editorInfo);this.showImagesPreview=!1};
_.Z.createButtonRenderer=function(a,z){return{style:"STYLE_SUGGESTIVE",size:"SIZE_SMALL",text:a,accessibilityData:{accessibilityData:{label:this.getSimpleString(a)}},isDisabled:z}};
_.Z.createPollOption=function(){return{optionText:"",placeholderText:""}};
_.Z.computeThumbnailRendererData=function(a){return a?{image:a,selected:!1}:void 0};
_.Z.getSimpleString=function(a){return _.cd(a)};
_.Z.updateOptionTextFromBinding=function(a){if(a.target){var z=Array.from(_.PK(this.hostElement).querySelectorAll("tp-yt-iron-autogrow-textarea.poll-option-input-text")).indexOf(a.target);if(z>=0){var I;this.pollOptions[z].optionText=(I=a.detail.value)!=null?I:""}}};
_.eH.Object.defineProperties(e0.prototype,{isAllowedToAddOption:{configurable:!0,enumerable:!0,get:function(){var a,z;return this.pollOptions.length<((z=(a=this.editorInfo)==null?void 0:a.maxPollOptions)!=null?z:0)}},
hasImages:{configurable:!0,enumerable:!0,get:function(){return this.pollOptions.some(function(a){return a.image})}},
imagesToReposition:{configurable:!0,enumerable:!0,get:function(){return this.pollOptions.filter(function(a){return a.image}).map(function(a){return a.image})}},
hasCustomOptionText:{configurable:!0,enumerable:!0,get:function(){return this.pollOptions.some(function(a){return a.optionText.trim()})}},
addOptionButton:{configurable:!0,enumerable:!0,get:function(){var a,z=(a=this.data)==null?void 0:a.addOptionButtonText;return z?this.createButtonRenderer(z,!this.isAllowedToAddOption):void 0}},
repositionImagesButton:{configurable:!0,enumerable:!0,get:function(){var a,z=(a=this.data)==null?void 0:a.repositionImagesButtonLabel;return z?this.createButtonRenderer(z,!this.hasImages):void 0}}});
e0.prototype.onPollOptionsChange=e0.prototype.onPollOptionsChange;e0.prototype.observeAddImageError=e0.prototype.observeAddImageError;e0.prototype.onEditorInfoChange=e0.prototype.onEditorInfoChange;e0.prototype.dataChanged=e0.prototype.dataChanged;_.L([_.Q(_.u4.YtRendererstamperBehavior),_.p("design:type",Object)],e0.prototype,"ytRendererstamperBehavior",void 0);_.L([_.A3("ytd-backstage-multi-image-reposition-renderer"),_.p("design:type",Object)],e0.prototype,"imageRepositionContainer",void 0);
_.L([_.x(),_.p("design:type",Object)],e0.prototype,"data",void 0);_.L([_.x(),_.p("design:type",Object)],e0.prototype,"editorInfo",void 0);_.L([_.x(),_.p("design:type",qi)],e0.prototype,"uploadManager",void 0);_.L([_.x(),_.p("design:type",Object)],e0.prototype,"showImagesPreview",void 0);_.L([_.x(),_.p("design:type",Array)],e0.prototype,"pollOptions",void 0);_.L([_.x(),_.p("design:type",Object)],e0.prototype,"errorMessage",void 0);
_.L([_.Fe("data"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],e0.prototype,"dataChanged",null);_.L([_.Fe("editorInfo"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],e0.prototype,"onEditorInfoChange",null);_.L([_.O8("errorMessage"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],e0.prototype,"observeAddImageError",null);
_.L([_.Fe("pollOptions"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],e0.prototype,"onPollOptionsChange",null);_.L([_.S("pollOptions","editorInfo"),_.p("design:type",Object),_.p("design:paramtypes",[])],e0.prototype,"isAllowedToAddOption",null);_.L([_.S("pollOptions"),_.p("design:type",Object),_.p("design:paramtypes",[])],e0.prototype,"hasImages",null);
_.L([_.S("pollOptions"),_.p("design:type",Object),_.p("design:paramtypes",[])],e0.prototype,"imagesToReposition",null);_.L([_.S("pollOptions"),_.p("design:type",Object),_.p("design:paramtypes",[])],e0.prototype,"hasCustomOptionText",null);_.L([_.S("data","isAllowedToAddOption"),_.p("design:type",Object),_.p("design:paramtypes",[])],e0.prototype,"addOptionButton",null);_.L([_.S("data","hasImages"),_.p("design:type",Object),_.p("design:paramtypes",[])],e0.prototype,"repositionImagesButton",null);
_.L([_.U({is:"ytd-backstage-image-poll-editor-renderer",disableElementRegistration:!0})],e0);
_.D(e0,"ytd-backstage-image-poll-editor-renderer",function(){if(Juw!==void 0)return Juw;var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-backstage-image-poll-editor-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div hidden="[[showImagesPreview]]" class="style-scope ytd-backstage-image-poll-editor-renderer">\n  <template is="dom-repeat" items="[[pollOptions]]" class="style-scope ytd-backstage-image-poll-editor-renderer">\n    <div class="poll-option style-scope ytd-backstage-image-poll-editor-renderer">\n      <div class="image-thumbnail-container style-scope ytd-backstage-image-poll-editor-renderer">\n        <div class="image-thumbnail style-scope ytd-backstage-image-poll-editor-renderer" hidden="[[!item.image]]">\n          <ytd-backstage-multi-image-thumbnail-renderer data="[[computeThumbnailRendererData(item.image)]]" class="style-scope ytd-backstage-image-poll-editor-renderer">\n          </ytd-backstage-multi-image-thumbnail-renderer>\n        </div>\n        <div class="image-select-container style-scope ytd-backstage-image-poll-editor-renderer" hidden="[[item.image]]">\n          <yt-icon-button class="add-image-icon-button style-scope ytd-backstage-image-poll-editor-renderer" on-click="onImageButtonClick">\n            <yt-icon class="add-image-icon style-scope ytd-backstage-image-poll-editor-renderer" icon="yt-icons:image"></yt-icon>\n          </yt-icon-button>\n        </div>\n      </div>\n      <tp-yt-paper-input-container class="poll-option-input style-scope ytd-backstage-image-poll-editor-renderer" no-label-float="">\n        <tp-yt-iron-autogrow-textarea class="paper-input-input poll-option-input-text style-scope ytd-backstage-image-poll-editor-renderer" slot="input" maxlength$="[[editorInfo.maxPollOptionChars]]" no-label-float="" placeholder$="[[item.placeholderText]]" value="[[item.optionText]]" on-input="onTextInput" on-value-changed="updateOptionTextFromBinding">\n        </tp-yt-iron-autogrow-textarea>\n        <tp-yt-paper-input-char-counter slot="add-on" class="style-scope ytd-backstage-image-poll-editor-renderer"></tp-yt-paper-input-char-counter>\n      </tp-yt-paper-input-container>\n      <yt-icon-button class="remove-button style-scope ytd-backstage-image-poll-editor-renderer" on-click="onRemovePollOption">\n        <yt-icon class="remove-option style-scope ytd-backstage-image-poll-editor-renderer" icon="yt-icons:delete"></yt-icon>\n      </yt-icon-button>\n    </div>\n  </template>\n  <div class="button-container style-scope ytd-backstage-image-poll-editor-renderer">\n    <yt-button-renderer class="add-option style-scope ytd-backstage-image-poll-editor-renderer" data="[[addOptionButton]]" on-click="onAddPollOption">\n    </yt-button-renderer>\n    <yt-button-renderer class="reposition-images style-scope ytd-backstage-image-poll-editor-renderer" data="[[repositionImagesButton]]" on-click="onRepositionImages">\n    </yt-button-renderer>\n  </div>\n</div>\n\n\n<div class="image-reposition-container style-scope ytd-backstage-image-poll-editor-renderer" hidden="[[!showImagesPreview]]">\n  <ytd-backstage-multi-image-reposition-renderer images="[[imagesToReposition]]" reposition-instructions="[[data.imagePreviewSelectMetadata]]" class="style-scope ytd-backstage-image-poll-editor-renderer">\n  </ytd-backstage-multi-image-reposition-renderer>\n</div>\n');a.content.insertBefore(_.w().content.cloneNode(!0),
a.content.firstChild);return Juw=a},{mode:2});var BSj={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 gdl;var am=function(){var a=_.G.apply(this,arguments)||this;a.a11yConfig=BSj;a.imageDisplayOffsetTop=0;a.imageDisplayOffsetLeft=0;a.pickerDisplayOffsetTop=0;a.pickerDisplayOffsetLeft=0;a.showPreviewContainer=!0;a.startPicker=!1;a.repositionOptional=!1;a.editOnlyMode=!1;a.savedImageDisplayOffsetTop=0;a.savedImageDisplayOffsetLeft=0;return a};
_.b(am,_.G);_.Z=am.prototype;_.Z.created=function(){_.p$.requestAvailability()};
_.Z.ready=function(){};
_.Z.onArrowKeysDown=function(a){if(!this.showPreviewContainer&&this.pickerSize&&this.imageHeight&&this.imageWidth&&this.displayScale){a.detail.keyboardEvent.preventDefault();var z=0,I=0,J="";switch(a.detail.keyboardEvent.key){case "ArrowUp":JBG(this.imageDisplayOffsetTop+this.imageHeight,this.pickerDisplayOffsetTop+this.pickerSize)?J=this.a11yConfig.reachBottomOfImage:z=this.imageHeight*.05*-1;break;case "ArrowDown":JBG(this.pickerDisplayOffsetTop,this.imageDisplayOffsetTop)?J=this.a11yConfig.reachTopOfImage:
z=this.imageHeight*.05;break;case "ArrowLeft":JBG(this.pickerDisplayOffsetLeft+this.pickerSize,this.imageDisplayOffsetLeft+this.imageWidth)?J=this.a11yConfig.reachRightOfImage:I=this.imageWidth*.05*-1;break;case "ArrowRight":JBG(this.pickerDisplayOffsetLeft,this.imageDisplayOffsetLeft)?J=this.a11yConfig.reachLeftOfImage:I=this.imageWidth*.05}J&&_.AR(J)&&_.PA(this.hostElement,"iron-announce",{text:_.AR(J)});if(I||z)this.imageHeight>this.imageWidth?(this.imageDisplayOffsetTop=Math.min(this.pickerDisplayOffsetTop,
Math.max(this.pickerDisplayOffsetTop+this.pickerSize-this.imageHeight,this.imageDisplayOffsetTop+z)),a=this.getPreviewPosition(this.pickerDisplayOffsetTop,this.pickerSize,this.imageDisplayOffsetTop,this.imageHeight),a=_.AR(this.a11yConfig.imageVerticalPosition,{x_percent:""+a,y_percent:""+(100-a)})):(this.imageDisplayOffsetLeft=Math.min(this.pickerDisplayOffsetLeft,Math.max(this.pickerDisplayOffsetLeft+this.pickerSize-this.imageWidth,this.imageDisplayOffsetLeft+I)),a=this.getPreviewPosition(this.pickerDisplayOffsetLeft,
this.pickerSize,this.imageDisplayOffsetLeft,this.imageWidth),a=_.AR(this.a11yConfig.imageHorizontalPosition,{x_percent:""+a,y_percent:""+(100-a)})),a&&_.PA(this.hostElement,"iron-announce",{text:a})}};
_.Z.getPreviewPosition=function(a,z,I,J){return Math.round(100*(a+z*.5-I)/J)};
_.Z.calculateDisplayPosition=function(){var a=this.imageData.naturalWidth,z=this.imageData.naturalHeight;this.displayScale=Math.max(200/a,200/z);this.pickerDisplayOffsetTop=this.pickerDisplayOffsetLeft=50;var I=a*this.displayScale*this.imageData.previewCoordinates.left,J=z*this.displayScale*this.imageData.previewCoordinates.top;this.imageDisplayOffsetLeft=z>a?this.pickerDisplayOffsetLeft:this.pickerDisplayOffsetLeft-I;this.savedImageDisplayOffsetTop=this.imageDisplayOffsetTop=a>z?this.pickerDisplayOffsetTop:
this.pickerDisplayOffsetTop-J;this.savedImageDisplayOffsetLeft=this.imageDisplayOffsetLeft;this.imageWidth=a*this.displayScale;this.imageHeight=z*this.displayScale};
_.Z.onImageChange=function(){this.imageData&&(this.editOnlyMode||(this.showPreviewContainer=!0),this.calculateDisplayPosition())};
_.Z.onEditOnlyModeUpdate=function(){this.showPreviewContainer=!this.editOnlyMode};
_.Z.getSignedPosition=function(a,z,I){return z==="X"&&_.Xw("HTML_DIR")==="rtl"?I==="-"?a+"px":a*-1+"px":I==="-"?a*-1+"px":a+"px"};
_.Z.pickerMove=function(a){if(this.startPicker&&!this.showPreviewContainer&&this.pickerSize&&this.pickerOffsetX!==void 0&&this.pickerOffsetY!==void 0&&this.imageHeight&&this.imageWidth&&this.displayScale){var z=this.pickerOffsetX-a.clientX,I=this.pickerOffsetY-a.clientY;this.pickerOffsetX=a.clientX;this.pickerOffsetY=a.clientY;this.imageHeight>this.imageWidth?this.imageDisplayOffsetTop=Math.min(this.pickerDisplayOffsetTop,Math.max(this.pickerDisplayOffsetTop+this.pickerSize-this.imageHeight,this.imageDisplayOffsetTop-
I)):this.imageDisplayOffsetLeft=Math.min(this.pickerDisplayOffsetLeft,Math.max(this.pickerDisplayOffsetLeft+this.pickerSize-this.imageWidth,this.imageDisplayOffsetLeft-z))}};
_.Z.pickerMoveStart=function(a){this.startPicker=!0;this.pickerOffsetX=a.clientX;this.pickerOffsetY=a.clientY};
_.Z.pickerMoveComplete=function(){this.startPicker=!1;this.pickerOffsetY=this.pickerOffsetX=void 0;var a=this.generateCropPreview();a&&_.PA(this.hostElement,"ytd-backstage-image-preview-coordinates-update",a)};
_.Z.cancelReposition=function(){this.editOnlyMode||(this.imageDisplayOffsetTop=this.savedImageDisplayOffsetTop,this.imageDisplayOffsetLeft=this.savedImageDisplayOffsetLeft,this.startPicker=!1,this.showPreviewContainer=!0);_.PA(this.hostElement,"ytd-backstage-image-preview-coordinates-cancel")};
_.Z.deleteImage=function(){_.PA(this.hostElement,"ytd-backstage-image-preview-delete")};
_.Z.editCropCoordinates=function(){this.showPreviewContainer=!1};
_.Z.saveCropCoordinates=function(){this.editOnlyMode||(this.savedImageDisplayOffsetTop=this.imageDisplayOffsetTop,this.savedImageDisplayOffsetLeft=this.imageDisplayOffsetLeft,this.startPicker=!1,this.showPreviewContainer=!0);var a=this.generateCropPreview();a&&_.PA(this.hostElement,"ytd-backstage-image-preview-coordinates-save",a)};
_.Z.getPreviewOffset=function(a,z,I){return z&&a?(I==="X"&&_.Xw("HTML_DIR")==="rtl"?300/z*a:300/z*a*-1)+"px":"0px"};
_.Z.getSimpleText=function(a){return a?_.cd(a):""};
_.Z.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}};
_.eH.Object.defineProperties(am.prototype,{altLabelForImage:{configurable:!0,enumerable:!0,get:function(){if(!this.imageWidth||!this.imageHeight||!this.pickerSize)return"";if(this.imageHeight>this.imageWidth){var a=this.getPreviewPosition(this.pickerDisplayOffsetTop,this.pickerSize,this.imageDisplayOffsetTop,this.imageHeight);return _.AR(this.a11yConfig.imageVerticalPosition,{x_percent:""+a,y_percent:""+(100-a)})+"\n"+_.AR(this.a11yConfig.verticalRepositionInstruction)}a=this.getPreviewPosition(this.pickerDisplayOffsetLeft,
this.pickerSize,this.imageDisplayOffsetLeft,this.imageWidth);return _.AR(this.a11yConfig.imageHorizontalPosition,{x_percent:""+a,y_percent:""+(100-a)})+"\n"+_.AR(this.a11yConfig.horizontalRepositionInstruction)}},
pickerSize:{configurable:!0,enumerable:!0,get:function(){return this.imageHeight&&this.imageWidth?this.imageHeight>this.imageWidth?this.imageWidth:this.imageHeight:0}},
imageOrientationStyle:{configurable:!0,enumerable:!0,get:function(){if(this.imageHeight&&this.imageWidth)return this.imageHeight===this.imageWidth?"SQUARE":this.imageHeight>this.imageWidth?"PORTRAIT":"LANDSCAPE"}},
editButton:{configurable:!0,enumerable:!0,get:function(){var a,z,I=(a=this.instruction)==null?void 0:(z=a.previewInstruction)==null?void 0:z.editButtonLabel;return I?{size:"SIZE_SMALL",style:"STYLE_SUGGESTIVE",text:I,accessibilityData:{accessibilityData:{label:this.getSimpleText(I)}}}:void 0}},
saveButton:{configurable:!0,enumerable:!0,get:function(){var a,z,I,J,r=this.editOnlyMode?(a=this.instruction)==null?void 0:(z=a.editInstruction)==null?void 0:z.saveImagesButtonLabel:(I=this.instruction)==null?void 0:(J=I.editInstruction)==null?void 0:J.saveButtonLabel;return r?{style:"STYLE_SUGGESTIVE",size:"SIZE_SMALL",text:r,accessibilityData:{accessibilityData:{label:this.getSimpleText(r)}}}:void 0}},
deleteButton:{configurable:!0,enumerable:!0,get:function(){var a,z,I=(a=this.instruction)==null?void 0:(z=a.previewInstruction)==null?void 0:z.deleteButtonLabel;return I?{size:"SIZE_SMALL",text:I,accessibilityData:{accessibilityData:{label:this.getSimpleText(I)}}}:void 0}},
cancelButton:{configurable:!0,enumerable:!0,get:function(){var a,z,I=(a=this.instruction)==null?void 0:(z=a.editInstruction)==null?void 0:z.cancelButtonLabel;a=this.editOnlyMode?"STYLE_BLUE_TEXT":"STYLE_TEXT";return I?{style:a,size:"SIZE_SMALL",text:I,accessibilityData:{accessibilityData:{label:this.getSimpleText(I)}}}: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"}}});
am.prototype.onEditOnlyModeUpdate=am.prototype.onEditOnlyModeUpdate;am.prototype.onImageChange=am.prototype.onImageChange;_.L([_.x(),_.p("design:type",zM7)],am.prototype,"imageData",void 0);_.L([_.x(),_.p("design:type",Object)],am.prototype,"instruction",void 0);_.L([_.x(),_.p("design:type",Object)],am.prototype,"a11yConfig",void 0);_.L([_.x(),_.p("design:type",Number)],am.prototype,"imageWidth",void 0);_.L([_.x(),_.p("design:type",Number)],am.prototype,"imageHeight",void 0);
_.L([_.x(),_.p("design:type",Number)],am.prototype,"displayScale",void 0);_.L([_.x(),_.p("design:type",Object)],am.prototype,"imageDisplayOffsetTop",void 0);_.L([_.x(),_.p("design:type",Object)],am.prototype,"imageDisplayOffsetLeft",void 0);_.L([_.x(),_.p("design:type",Object)],am.prototype,"pickerDisplayOffsetTop",void 0);_.L([_.x(),_.p("design:type",Object)],am.prototype,"pickerDisplayOffsetLeft",void 0);_.L([_.x(),_.p("design:type",Object)],am.prototype,"showPreviewContainer",void 0);
_.L([_.x(),_.p("design:type",Object)],am.prototype,"startPicker",void 0);_.L([_.x(),_.p("design:type",Number)],am.prototype,"pickerOffsetX",void 0);_.L([_.x(),_.p("design:type",Number)],am.prototype,"pickerOffsetY",void 0);_.L([_.x(),_.p("design:type",Object)],am.prototype,"repositionOptional",void 0);_.L([_.x(),_.p("design:type",Object)],am.prototype,"editOnlyMode",void 0);_.L([_.A3("#picker-container"),_.p("design:type",HTMLElement)],am.prototype,"JSC$15546_pickerContainer",void 0);
_.L([_.A3("#picker"),_.p("design:type",HTMLElement)],am.prototype,"picker",void 0);_.L([_.A3("#preview-clipper"),_.p("design:type",HTMLElement)],am.prototype,"previewClipper",void 0);_.L([_.A3("#image-in-picker-background"),_.p("design:type",HTMLImageElement)],am.prototype,"JSC$15546_imageInBackground",void 0);_.L([_.A3("#image-in-picker"),_.p("design:type",HTMLImageElement)],am.prototype,"JSC$15546_imageInPicker",void 0);
_.L([_.A3("#image-in-preview-clipper"),_.p("design:type",HTMLImageElement)],am.prototype,"JSC$15546_imageInPreviewClipper",void 0);_.L([_.S("pickerSize","imageWidth","imageHeight","pickerDisplayOffsetTop","imageDisplayOffsetTop"),_.p("design:type",String),_.p("design:paramtypes",[])],am.prototype,"altLabelForImage",null);_.L([_.S("imageHeight","imageWidth"),_.p("design:type",Number),_.p("design:paramtypes",[])],am.prototype,"pickerSize",null);
_.L([_.S("imageHeight","imageWidth"),_.p("design:type",Object),_.p("design:paramtypes",[])],am.prototype,"imageOrientationStyle",null);_.L([_.S("instruction"),_.p("design:type",Object),_.p("design:paramtypes",[])],am.prototype,"editButton",null);_.L([_.S("instruction","editOnlyMode"),_.p("design:type",Object),_.p("design:paramtypes",[])],am.prototype,"saveButton",null);_.L([_.S("instruction"),_.p("design:type",Object),_.p("design:paramtypes",[])],am.prototype,"deleteButton",null);
_.L([_.S("instruction","editOnlyMode"),_.p("design:type",Object),_.p("design:paramtypes",[])],am.prototype,"cancelButton",null);_.L([_.S("imageDisplayOffsetTop","pickerDisplayOffsetTop"),_.p("design:type",Number),_.p("design:paramtypes",[])],am.prototype,"cropOffsetTop",null);_.L([_.S("imageDisplayOffsetLeft","pickerDisplayOffsetLeft"),_.p("design:type",Number),_.p("design:paramtypes",[])],am.prototype,"cropOffsetLeft",null);
_.L([_.S("imageDisplayOffsetLeft","imageDisplayOffsetTop"),_.p("design:type",String),_.p("design:paramtypes",[])],am.prototype,"pickerBackgroundStyle",null);_.L([_.S("pickerDisplayOffsetLeft","pickerDisplayOffsetTop"),_.p("design:type",String),_.p("design:paramtypes",[])],am.prototype,"pickerDisplayStyle",null);_.L([_.S("cropOffsetLeft","cropOffsetTop"),_.p("design:type",String),_.p("design:paramtypes",[])],am.prototype,"imageInPickerStyle",null);
_.L([_.S("cropOffsetLeft","cropOffsetTop","pickerSize"),_.p("design:type",String),_.p("design:paramtypes",[])],am.prototype,"previewClipperStyle",null);_.L([_.Fe("imageData"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],am.prototype,"onImageChange",null);_.L([_.Fe("editOnlyMode"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],am.prototype,"onEditOnlyModeUpdate",null);
_.L([_.S("showPreviewContainer"),_.p("design:type",String),_.p("design:paramtypes",[])],am.prototype,"pickerModeStyle",null);_.L([_.U({is:"ytd-backstage-image-preview-renderer",disableElementRegistration:!0})],am);
_.D(am,"ytd-backstage-image-preview-renderer",function(){if(gdl!==void 0)return gdl;var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-backstage-image-preview-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="container" class$="[[pickerModeStyle]] style-scope ytd-backstage-image-preview-renderer">\n  <div id="preview-container" hidden="[[!showPreviewContainer]]" class="style-scope ytd-backstage-image-preview-renderer">\n    <div id="preview-clipper" class="style-scope ytd-backstage-image-preview-renderer">\n      <img id="image-in-preview-clipper" class$="[[imageOrientationStyle]] style-scope ytd-backstage-image-preview-renderer" src$="[[imageData.localImageSrc]]" style$="[[previewClipperStyle]]">\n    </div>\n    <div class="buttons-container style-scope ytd-backstage-image-preview-renderer">\n      <yt-button-renderer id="delete-button" data="[[deleteButton]]" on-click="deleteImage" class="style-scope ytd-backstage-image-preview-renderer">\n      </yt-button-renderer>\n      <yt-button-renderer id="edit-button" data="[[editButton]]" on-click="editCropCoordinates" class="style-scope ytd-backstage-image-preview-renderer">\n      </yt-button-renderer>\n    </div>\n  </div>\n  <div id="edit-container" hidden="[[showPreviewContainer]]" class="style-scope ytd-backstage-image-preview-renderer">\n    <div id="picker-container" class="style-scope ytd-backstage-image-preview-renderer">\n      <img id="image-in-picker-background" class$="[[imageOrientationStyle]] style-scope ytd-backstage-image-preview-renderer" src$="[[imageData.localImageSrc]]" width$="[[imageWidth]]" height$="[[imageHeight]]" style$="[[pickerBackgroundStyle]]" alt="[[altLabelForImage]]">\n      <div id="overlay" on-mousemove="pickerMove" on-mousedown="pickerMoveStart" on-mouseup="pickerMoveComplete" on-mouseleave="pickerMoveComplete" class="style-scope ytd-backstage-image-preview-renderer">\n      </div>\n      <div id="picker" style$="[[pickerDisplayStyle]]" class="style-scope ytd-backstage-image-preview-renderer">\n        <img id="image-in-picker" class$="[[imageOrientationStyle]] style-scope ytd-backstage-image-preview-renderer" src$="[[imageData.localImageSrc]]" width$="[[imageWidth]]" height$="[[imageHeight]]" style$="[[imageInPickerStyle]]" alt="">\n      </div>\n    </div>\n    <div class="buttons-container style-scope ytd-backstage-image-preview-renderer">\n      <yt-button-renderer id="cancel-button" data="[[cancelButton]]" on-click="cancelReposition" class="style-scope ytd-backstage-image-preview-renderer">\n      </yt-button-renderer>\n      <yt-button-renderer id="save-button" data="[[saveButton]]" on-click="saveCropCoordinates" class="style-scope ytd-backstage-image-preview-renderer">\n      </yt-button-renderer>\n    </div>\n  </div>\n</div>\n<iron-a11y-keys keys="up down left right" target="[[keyboardInterfaceTarget]]" on-keys-pressed="onArrowKeysDown" class="style-scope ytd-backstage-image-preview-renderer">\n</iron-a11y-keys>\n');a.content.insertBefore(_.w().content.cloneNode(!0),
a.content.firstChild);return gdl=a},{mode:1});var Oal;var fDO={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 AuX;var srG;var jo=function(){var a=_.G.apply(this,arguments)||this;a.a11yConfig=fDO;a.imageDisplayOffsetTop=0;a.imageDisplayOffsetLeft=0;a.pickerDisplayOffsetTop=0;a.pickerDisplayOffsetLeft=0;a.cropCoordinatesSaved=!1;a.previewSize=0;a.startPicker=!1;a.repositionOptional=!1;return a};
_.b(jo,_.G);_.Z=jo.prototype;_.Z.created=function(){_.p$.requestAvailability()};
_.Z.ready=function(){};
_.Z.onArrowKeysDown=function(a){if(!this.cropCoordinatesSaved&&this.pickerSize&&this.imageHeight&&this.imageWidth&&this.displayScale){a.detail.keyboardEvent.preventDefault();var z=0,I=0,J="";switch(a.detail.keyboardEvent.key){case "ArrowUp":rB$(this.imageDisplayOffsetTop+this.imageHeight,this.pickerDisplayOffsetTop+this.pickerSize)?J=this.a11yConfig.reachBottomOfImage:z=this.imageHeight*.05*-1;break;case "ArrowDown":rB$(this.pickerDisplayOffsetTop,this.imageDisplayOffsetTop)?J=this.a11yConfig.reachTopOfImage:
z=this.imageHeight*.05;break;case "ArrowLeft":rB$(this.pickerDisplayOffsetLeft+this.pickerSize,this.imageDisplayOffsetLeft+this.imageWidth)?J=this.a11yConfig.reachRightOfImage:I=this.imageWidth*.05*-1;break;case "ArrowRight":rB$(this.pickerDisplayOffsetLeft,this.imageDisplayOffsetLeft)?J=this.a11yConfig.reachLeftOfImage:I=this.imageWidth*.05}J&&_.AR(J)&&_.PA(this.hostElement,"iron-announce",{text:_.AR(J)});if(I||z)this.imageHeight>this.imageWidth?(this.imageDisplayOffsetTop=Math.min(this.pickerDisplayOffsetTop,
Math.max(this.pickerDisplayOffsetTop+this.pickerSize-this.imageHeight,this.imageDisplayOffsetTop+z)),a=this.getPreviewPosition(this.pickerDisplayOffsetTop,this.pickerSize,this.imageDisplayOffsetTop,this.imageHeight),a=_.AR(this.a11yConfig.imageVerticalPosition,{x_percent:""+a,y_percent:""+(100-a)})):(this.imageDisplayOffsetLeft=Math.min(this.pickerDisplayOffsetLeft,Math.max(this.pickerDisplayOffsetLeft+this.pickerSize-this.imageWidth,this.imageDisplayOffsetLeft+I)),a=this.getPreviewPosition(this.pickerDisplayOffsetLeft,
this.pickerSize,this.imageDisplayOffsetLeft,this.imageWidth),a=_.AR(this.a11yConfig.imageHorizontalPosition,{x_percent:""+a,y_percent:""+(100-a)})),a&&_.PA(this.hostElement,"iron-announce",{text:a})}};
_.Z.getPreviewPosition=function(a,z,I,J){return Math.round(100*(a+z*.5-I)/J)};
_.Z.displayImage=function(){var a=this.JSC$15557_pickerContainer.getBoundingClientRect().width,z=this.JSC$15557_pickerContainer.getBoundingClientRect().height,I=Math.min(this.picker.getBoundingClientRect().height,this.picker.getBoundingClientRect().width),J=this.JSC$15557_imageInBackground.naturalWidth,r=this.JSC$15557_imageInBackground.naturalHeight;this.displayScale=Math.max(I/J,I/r);this.imageWidth=J*this.displayScale;this.imageHeight=r*this.displayScale;this.pickerDisplayOffsetLeft=(a-I)/2;this.pickerDisplayOffsetTop=
(z-I)/2;this.imageDisplayOffsetLeft=r>J?this.pickerDisplayOffsetLeft:(a-this.imageWidth)/2;this.imageDisplayOffsetTop=J>r?this.pickerDisplayOffsetTop:(z-this.imageHeight)/2;this.repositionOptional&&this.saveCropCoordinates()};
_.Z.onImageDataChange=function(){this.imageData&&(this.pickerDisplayOffsetLeft=this.pickerDisplayOffsetTop=0,this.cropCoordinatesSaved=!1,this.JSC$15557_imageInBackground.src=this.imageData.toString(),this.JSC$15557_imageInPicker.src=this.imageData.toString(),this.JSC$15557_imageInPreviewClipper.src=this.imageData.toString(),this.imageAsPreview.src=this.imageData.toString())};
_.Z.getSignedPosition=function(a,z,I){return z==="X"&&_.Xw("HTML_DIR")==="rtl"?I==="-"?a+"px":a*-1+"px":I==="-"?a*-1+"px":a+"px"};
_.Z.pickerMove=function(a){if(this.startPicker&&!this.cropCoordinatesSaved&&this.pickerSize&&this.pickerOffsetX!==void 0&&this.pickerOffsetY!==void 0&&this.imageHeight&&this.imageWidth&&this.displayScale){var z=this.pickerOffsetX-a.clientX,I=this.pickerOffsetY-a.clientY;this.pickerOffsetX=a.clientX;this.pickerOffsetY=a.clientY;this.imageHeight>this.imageWidth?this.imageDisplayOffsetTop=Math.min(this.pickerDisplayOffsetTop,Math.max(this.pickerDisplayOffsetTop+this.pickerSize-this.imageHeight,this.imageDisplayOffsetTop-
I)):this.imageDisplayOffsetLeft=Math.min(this.pickerDisplayOffsetLeft,Math.max(this.pickerDisplayOffsetLeft+this.pickerSize-this.imageWidth,this.imageDisplayOffsetLeft-z))}};
_.Z.pickerMoveStart=function(a){this.startPicker=!0;this.pickerOffsetX=a.clientX;this.pickerOffsetY=a.clientY};
_.Z.pickerMoveComplete=function(){this.startPicker=!1;this.pickerOffsetY=this.pickerOffsetX=void 0};
_.Z.saveCropCoordinates=function(){this.cropCoordinatesSaved?(this.cropCoordinatesSaved=!1,this.previewSize=0,_.PA(this.hostElement,"yt-img-crop-reposition")):(this.startPicker=!1,this.generateCropPreview())};
_.Z.getPreviewOffset=function(a,z,I,J){return z&&a&&I?(J==="X"&&_.Xw("HTML_DIR")==="rtl"?I/z*a:I/z*a*-1)+"px":"0px"};
_.Z.getSimpleText=function(a){return a?_.cd(a):""};
_.Z.generateCropPreview=function(){if(this.imageWidth&&this.imageHeight&&this.pickerSize){this.cropCoordinatesSaved=!0;var a=this.cropOffsetTop/this.imageHeight,z=(this.cropOffsetLeft+this.pickerSize)/this.imageWidth,I=(this.cropOffsetTop+this.pickerSize)/this.imageHeight,J=this.cropOffsetLeft/this.imageWidth;this.previewSize=_.PK(this.hostElement).querySelector("#preview-clipper").getBoundingClientRect().width;_.PA(this.hostElement,"yt-img-crop-coordinates-update",{top:a,right:z,bottom:I,left:J})}};
_.eH.Object.defineProperties(jo.prototype,{altLabelForImage:{configurable:!0,enumerable:!0,get:function(){if(!this.imageWidth||!this.imageHeight||!this.pickerSize)return"";if(this.imageHeight>this.imageWidth){var a=this.getPreviewPosition(this.pickerDisplayOffsetTop,this.pickerSize,this.imageDisplayOffsetTop,this.imageHeight);return _.AR(this.a11yConfig.imageVerticalPosition,{x_percent:""+a,y_percent:""+(100-a)})+"\n"+_.AR(this.a11yConfig.verticalRepositionInstruction)}a=this.getPreviewPosition(this.pickerDisplayOffsetLeft,
this.pickerSize,this.imageDisplayOffsetLeft,this.imageWidth);return _.AR(this.a11yConfig.imageHorizontalPosition,{x_percent:""+a,y_percent:""+(100-a)})+"\n"+_.AR(this.a11yConfig.horizontalRepositionInstruction)}},
pickerSize:{configurable:!0,enumerable:!0,get:function(){return this.imageHeight&&this.imageWidth?this.imageHeight>this.imageWidth?this.imageWidth:this.imageHeight:0}},
imageOrientationStyle:{configurable:!0,enumerable:!0,get:function(){if(this.imageHeight&&this.imageWidth)return this.imageHeight===this.imageWidth?"SQUARE":this.imageHeight>this.imageWidth?"PORTRAIT":"LANDSCAPE"}},
editButton:{configurable:!0,enumerable:!0,get:function(){if(this.instruction&&this.instruction.previewInstruction&&this.instruction.previewInstruction.editButtonLabel)return{size:"SIZE_SMALL",style:"STYLE_SUGGESTIVE",text:this.instruction.previewInstruction.editButtonLabel,accessibilityData:{accessibilityData:{label:this.getSimpleText(this.instruction.previewInstruction.editButtonLabel)}}}}},
saveButton:{configurable:!0,enumerable:!0,get:function(){if(this.instruction&&this.instruction.editInstruction&&this.instruction.editInstruction.saveButtonLabel)return{style:"STYLE_PRIMARY",size:"SIZE_SMALL",text:this.instruction.editInstruction.saveButtonLabel,accessibilityData:{accessibilityData:{label:this.getSimpleText(this.instruction.editInstruction.saveButtonLabel)}}}}},
cropOffsetTop:{configurable:!0,enumerable:!0,get:function(){return this.imageDisplayOffsetTop===void 0||this.pickerDisplayOffsetTop===void 0?0:this.pickerDisplayOffsetTop-this.imageDisplayOffsetTop}},
cropOffsetLeft:{configurable:!0,enumerable:!0,get:function(){return this.imageDisplayOffsetLeft===void 0||this.pickerDisplayOffsetLeft===void 0?0:this.pickerDisplayOffsetLeft-this.imageDisplayOffsetLeft}},
pickerBackgroundStyle:{configurable:!0,enumerable:!0,get:function(){return"transform:translateX("+this.getSignedPosition(this.imageDisplayOffsetLeft,"X",void 0)+") translateY("+this.getSignedPosition(this.imageDisplayOffsetTop,"Y",void 0)+");"}},
pickerDisplayStyle:{configurable:!0,enumerable:!0,get:function(){return"width:"+this.pickerSize+"px;height:"+this.pickerSize+"px;transform:translateX("+this.getSignedPosition(this.pickerDisplayOffsetLeft,"X",void 0)+") translateY("+this.getSignedPosition(this.pickerDisplayOffsetTop,"Y",void 0)+");"}},
imageInPickerStyle:{configurable:!0,enumerable:!0,get:function(){return"transform:translateX("+this.getSignedPosition(this.cropOffsetLeft,"X","-")+") translateY("+this.getSignedPosition(this.cropOffsetTop,"Y","-")+");"}},
previewClipperStyle:{configurable:!0,enumerable:!0,get:function(){return"transform:translateX("+this.getPreviewOffset(this.cropOffsetLeft,this.pickerSize,this.previewSize,"X")+") translateY("+this.getPreviewOffset(this.cropOffsetTop,this.pickerSize,this.previewSize,"Y")+");"}},
pickerModeStyle:{configurable:!0,enumerable:!0,get:function(){return this.cropCoordinatesSaved?"preview":"edit"}},
learnMore:{configurable:!0,enumerable:!0,get:function(){if(this.instruction&&this.instruction.editInstruction)return this.instruction.editInstruction.learnMore}},
learnMoreUrl:{configurable:!0,enumerable:!0,get:function(){if(this.learnMore&&this.learnMore.runs&&this.learnMore.runs[0]){var a,z=(a=this.learnMore.runs[0])==null?void 0:a.navigationEndpoint,I;return((I=_.H(z,_.pv))==null?void 0:I.url)||void 0}}}});
jo.prototype.onImageDataChange=jo.prototype.onImageDataChange;_.L([_.x(),_.p("design:type",Object)],jo.prototype,"imageData",void 0);_.L([_.x(),_.p("design:type",Object)],jo.prototype,"instruction",void 0);_.L([_.x(),_.p("design:type",Object)],jo.prototype,"a11yConfig",void 0);_.L([_.x(),_.p("design:type",Number)],jo.prototype,"imageWidth",void 0);_.L([_.x(),_.p("design:type",Number)],jo.prototype,"imageHeight",void 0);_.L([_.x(),_.p("design:type",Number)],jo.prototype,"displayScale",void 0);
_.L([_.x(),_.p("design:type",Object)],jo.prototype,"imageDisplayOffsetTop",void 0);_.L([_.x(),_.p("design:type",Object)],jo.prototype,"imageDisplayOffsetLeft",void 0);_.L([_.x(),_.p("design:type",Object)],jo.prototype,"pickerDisplayOffsetTop",void 0);_.L([_.x(),_.p("design:type",Object)],jo.prototype,"pickerDisplayOffsetLeft",void 0);_.L([_.x(),_.p("design:type",Object)],jo.prototype,"cropCoordinatesSaved",void 0);_.L([_.x(),_.p("design:type",Object)],jo.prototype,"previewSize",void 0);
_.L([_.x(),_.p("design:type",Object)],jo.prototype,"startPicker",void 0);_.L([_.x(),_.p("design:type",Number)],jo.prototype,"pickerOffsetX",void 0);_.L([_.x(),_.p("design:type",Number)],jo.prototype,"pickerOffsetY",void 0);_.L([_.x(),_.p("design:type",Object)],jo.prototype,"repositionOptional",void 0);_.L([_.A3("#picker-container"),_.p("design:type",HTMLElement)],jo.prototype,"JSC$15557_pickerContainer",void 0);_.L([_.A3("#picker"),_.p("design:type",HTMLElement)],jo.prototype,"picker",void 0);
_.L([_.A3("#image-in-picker-background"),_.p("design:type",HTMLImageElement)],jo.prototype,"JSC$15557_imageInBackground",void 0);_.L([_.A3("#image-in-picker"),_.p("design:type",HTMLImageElement)],jo.prototype,"JSC$15557_imageInPicker",void 0);_.L([_.A3("#image-in-preview-clipper"),_.p("design:type",HTMLImageElement)],jo.prototype,"JSC$15557_imageInPreviewClipper",void 0);_.L([_.A3("#full-image-as-preview"),_.p("design:type",HTMLImageElement)],jo.prototype,"imageAsPreview",void 0);
_.L([_.S("pickerSize","imageWidth","imageHeight","pickerDisplayOffsetTop","imageDisplayOffsetTop"),_.p("design:type",String),_.p("design:paramtypes",[])],jo.prototype,"altLabelForImage",null);_.L([_.S("imageHeight","imageWidth"),_.p("design:type",Number),_.p("design:paramtypes",[])],jo.prototype,"pickerSize",null);_.L([_.S("imageHeight","imageWidth"),_.p("design:type",Object),_.p("design:paramtypes",[])],jo.prototype,"imageOrientationStyle",null);
_.L([_.S("instruction.previewInstruction.editButtonLabel"),_.p("design:type",Object),_.p("design:paramtypes",[])],jo.prototype,"editButton",null);_.L([_.S("instruction.editInstruction.saveButtonLabel"),_.p("design:type",Object),_.p("design:paramtypes",[])],jo.prototype,"saveButton",null);_.L([_.S("imageDisplayOffsetTop","pickerDisplayOffsetTop"),_.p("design:type",Number),_.p("design:paramtypes",[])],jo.prototype,"cropOffsetTop",null);
_.L([_.S("imageDisplayOffsetLeft","pickerDisplayOffsetLeft"),_.p("design:type",Number),_.p("design:paramtypes",[])],jo.prototype,"cropOffsetLeft",null);_.L([_.S("imageDisplayOffsetLeft","imageDisplayOffsetTop"),_.p("design:type",String),_.p("design:paramtypes",[])],jo.prototype,"pickerBackgroundStyle",null);_.L([_.S("pickerDisplayOffsetLeft","pickerDisplayOffsetTop"),_.p("design:type",String),_.p("design:paramtypes",[])],jo.prototype,"pickerDisplayStyle",null);
_.L([_.S("cropOffsetLeft","cropOffsetTop"),_.p("design:type",String),_.p("design:paramtypes",[])],jo.prototype,"imageInPickerStyle",null);_.L([_.S("cropOffsetLeft","cropOffsetTop","pickerSize","previewSize"),_.p("design:type",String),_.p("design:paramtypes",[])],jo.prototype,"previewClipperStyle",null);_.L([_.O8("imageData"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],jo.prototype,"onImageDataChange",null);
_.L([_.S("cropCoordinatesSaved"),_.p("design:type",String),_.p("design:paramtypes",[])],jo.prototype,"pickerModeStyle",null);_.L([_.S("instruction.editInstruction.learnMore"),_.p("design:type",Object),_.p("design:paramtypes",[])],jo.prototype,"learnMore",null);_.L([_.S("learnMore"),_.p("design:type",Object),_.p("design:paramtypes",[])],jo.prototype,"learnMoreUrl",null);_.L([_.dz({is:"yt-img-crop-picker",disableElementRegistration:!0})],jo);
_.D(jo,"yt-img-crop-picker",function(){if(srG===void 0){var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-img-crop-picker--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.yt_img_crop_picker.yt.img.crop.picker.css.js--\x3e<div id="left-container" class$="[[pickerModeStyle]] style-scope yt-img-crop-picker"><div id="picker-container" class="style-scope yt-img-crop-picker"><img id="image-in-picker-background" class$="[[imageOrientationStyle]] style-scope yt-img-crop-picker" width$="[[imageWidth]]" height$="[[imageHeight]]" style$="[[pickerBackgroundStyle]]" on-load="displayImage" tabindex="0" alt="[[altLabelForImage]]"><div id="overlay" hidden="[[cropCoordinatesSaved]]" on-mousemove="pickerMove" on-mousedown="pickerMoveStart" on-mouseup="pickerMoveComplete" on-mouseleave="pickerMoveComplete" class="style-scope yt-img-crop-picker"></div><div id="picker" style$="[[pickerDisplayStyle]]" class="style-scope yt-img-crop-picker"><img id="image-in-picker" class$="[[imageOrientationStyle]] style-scope yt-img-crop-picker" width$="[[imageWidth]]" height$="[[imageHeight]]" style$="[[imageInPickerStyle]]" alt=""></div></div><div id="preview-container" hidden="[[!cropCoordinatesSaved]]" class="style-scope yt-img-crop-picker"><yt-formatted-string class="header style-scope yt-img-crop-picker" text="[[instruction.previewInstruction.previewHeader]]"></yt-formatted-string><yt-formatted-string class="details style-scope yt-img-crop-picker" text="[[instruction.previewInstruction.previewDetails]]"></yt-formatted-string><div id="preview-clipper" class="style-scope yt-img-crop-picker"><img id="image-in-preview-clipper" class$="[[imageOrientationStyle]] style-scope yt-img-crop-picker" style$="[[previewClipperStyle]]" alt="[[getSimpleText(instruction.previewInstruction.previewHeader)]]"></div><yt-button-renderer id="edit-button" data="[[editButton]]" on-tap="saveCropCoordinates" class="style-scope yt-img-crop-picker"></yt-button-renderer></div></div><div id="right-container" class$="[[pickerModeStyle]] style-scope yt-img-crop-picker"><div id="edit-instruction" hidden="[[cropCoordinatesSaved]]" class="style-scope yt-img-crop-picker"><div class="instruction-container style-scope yt-img-crop-picker"><yt-formatted-string class="header style-scope yt-img-crop-picker" text="[[instruction.editInstruction.header]]"></yt-formatted-string><div class="details style-scope yt-img-crop-picker"><yt-formatted-string text="[[instruction.editInstruction.details]]" class="style-scope yt-img-crop-picker"></yt-formatted-string></div><div class="details style-scope yt-img-crop-picker" id="learnmore-text"><a class="yt-simple-endpoint style-scope yt-img-crop-picker" target="_blank" href$="[[learnMoreUrl]]"><span class="style-scope yt-img-crop-picker">[[getSimpleText(learnMore)]]</span><yt-icon id="open-in-new" icon="yt-icons:open_in_new" class="style-scope yt-img-crop-picker"></yt-icon></a></div></div><yt-button-renderer id="save-button" data="[[saveButton]]" on-tap="saveCropCoordinates" class="style-scope yt-img-crop-picker"></yt-button-renderer></div><div id="preview-instruction" hidden="[[!cropCoordinatesSaved]]" class="style-scope yt-img-crop-picker"><div class="instruction-container style-scope yt-img-crop-picker"><yt-formatted-string class="header style-scope yt-img-crop-picker" text="[[instruction.previewInstruction.fullImageHeader]]"></yt-formatted-string><yt-formatted-string class="details style-scope yt-img-crop-picker" text="[[instruction.previewInstruction.fullImageDetails]]"></yt-formatted-string></div><div id="full-image-container" class="style-scope yt-img-crop-picker"><img id="full-image-as-preview" class$="[[imageOrientationStyle]] style-scope yt-img-crop-picker" alt="[[getSimpleText(instruction.previewInstruction.fullImageHeader)]]"></div></div></div><iron-a11y-keys keys="up down left right" target="[[keyboardInterfaceTarget]]" on-keys-pressed="onArrowKeysDown" class="style-scope yt-img-crop-picker"></iron-a11y-keys>');
a.content.insertBefore(_.w().content.cloneNode(!0),a.content.firstChild);var z=a.content,I=z.insertBefore;AuX===void 0&&(AuX=document.createElement("template"));var J=AuX;I.call(z,J.content.cloneNode(!0),a.content.firstChild);srG=a}a=srG;return a},{mode:2});var zy=function(){var a=_.G.apply(this,arguments)||this;a.errorMessage="";a.hasPreview=!1;a.isBackstagePost=!1;a.dismissButtonOverrides={size:"XS"};return a};
_.b(zy,_.G);_.Z=zy.prototype;_.Z.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"}}}};
_.Z.detached=function(){this.removeOverlay()};
_.Z.setPreview=function(a){_.PK(this.hostElement).querySelector("#preview-picker").imageData=a;this.hasPreview=!0;_.PA(this.hostElement,"yt-backstage-image-select-preview")};
_.Z.cancel=function(){this.errorMessage="";this.overlay&&this.overlay.cancel();this.hasPreview=!1;var a=_.PK(this.hostElement).querySelector("#dropzone");a.classList.remove("dragover");a.classList.remove("error");_.PA(this.hostElement,"yt-backstage-image-select-cancel")};
_.Z.setupOverlay=function(){var a=this.imageUploadEndpoint;this.removeOverlay();if(a&&a.imageValidationInfo){var z=_.PK(this.hostElement).querySelector("#dropzone"),I=_.PK(this.hostElement).querySelector("#select");this.overlay=new I7(a.uploadUrl,a.channelId,a.imageValidationInfo.maxFileSizeMb,a.imageValidationInfo.allowedMaxAspectRatio,z,I,!0);_.Sg(this.overlay,"yt.comments.ImageUploadOverlay.CHANGE_EVENT",this.onPreview,!1,this);_.Sg(this.overlay,"yt.comments.ImageUploadOverlay.FILE_TOO_LARGE_EVENT",
this.onImageError,!1,this);_.Sg(this.overlay,"yt.comments.ImageUploadOverlay.HOVER_EVENT",this.onDragOver,!1,this);_.Sg(this.overlay,"yt.comments.ImageUploadOverlay.INVALID_EVENT",this.onImageError,!1,this);_.Sg(this.overlay,"yt.comments.ImageUploadOverlay.FILE_INVALID_ASPECT_RATIO_EVENT",this.onImageAlert,!1,this)}};
_.Z.removeOverlay=function(){this.overlay&&(_.FU(this.overlay,"yt.comments.ImageUploadOverlay.INVALID_EVENT",this.onImageError,!1,this),_.FU(this.overlay,"yt.comments.ImageUploadOverlay.HOVER_EVENT",this.onDragOver,!1,this),_.FU(this.overlay,"yt.comments.ImageUploadOverlay.FILE_TOO_LARGE_EVENT",this.onImageError,!1,this),_.FU(this.overlay,"yt.comments.ImageUploadOverlay.FILE_INVALID_ASPECT_RATIO_EVENT",this.onImageAlert,!1,this),_.FU(this.overlay,"yt.comments.ImageUploadOverlay.CHANGE_EVENT",this.onPreview,
!1,this),this.overlay.dispose(),this.overlay=void 0)};
_.Z.onDragOver=function(a){var z=_.PK(this.hostElement).querySelector("#dropzone");_.CM(z,"dragover",a.value)};
_.Z.onPreview=function(a){this.setPreview(a.value)};
_.Z.onImageError=function(a){if(a.type==="yt.comments.ImageUploadOverlay.FILE_TOO_LARGE_EVENT"){var z;a=(z=this.data)==null?void 0:z.fileSizeError}else if(a.type==="yt.comments.ImageUploadOverlay.INVALID_EVENT"){var I;a=(I=this.data)==null?void 0:I.invalidError}else if(a.type==="yt.comments.ImageUploadOverlay.FILE_INVALID_ASPECT_RATIO_EVENT"){var J;a=(J=this.data)==null?void 0:J.invalidAspectRatioError}else return;this.errorMessage=_.cd(a);_.PK(this.hostElement).querySelector("#dropzone").classList.add("error")};
_.Z.onImageAlert=function(a){this.onImageError(a)};
_.Z.uploadPromise=function(){var a=this,z=this.overlay&&this.overlay.uploadPromise();if(z)return z.catch(function(){throw Error(a.data?_.cd(a.data.uploadFailureError):"");})};
_.eH.Object.defineProperties(zy.prototype,{selectionCancel:{configurable:!0,enumerable:!0,get:function(){var a;return(a=this.data)==null?void 0:a.cancelButton}},
previewCancel:{configurable:!0,enumerable:!0,get:function(){var a;return(a=this.data)==null?void 0:a.cancelButton}},
icon:{configurable:!0,enumerable:!0,get:function(){var a,z;if((a=this.data)==null?0:(z=a.icon)==null?0:z.iconType)return _.Bl(this.data.icon.iconType)}}});
zy.prototype.setupOverlay=zy.prototype.setupOverlay;_.L([_.Q(_.u4.YtRendererstamperBehavior),_.p("design:type",Object)],zy.prototype,"rendererStamperBehavior",void 0);_.L([_.Q(_.k.YtRendererBehavior),_.p("design:type",Object)],zy.prototype,"ytRendererBehavior",void 0);_.L([_.x(),_.p("design:type",Object)],zy.prototype,"data",void 0);_.L([_.x(),_.p("design:type",Object)],zy.prototype,"imageUploadEndpoint",void 0);_.L([_.x(),_.p("design:type",Object)],zy.prototype,"errorMessage",void 0);
_.L([_.x(),_.p("design:type",I7)],zy.prototype,"overlay",void 0);_.L([_.x({reflectToAttribute:!0}),_.p("design:type",Object)],zy.prototype,"hasPreview",void 0);_.L([_.x({reflectToAttribute:!0}),_.p("design:type",Object)],zy.prototype,"isBackstagePost",void 0);_.L([_.S("data"),_.p("design:type",Object),_.p("design:paramtypes",[])],zy.prototype,"selectionCancel",null);_.L([_.S("data"),_.p("design:type",Object),_.p("design:paramtypes",[])],zy.prototype,"previewCancel",null);
_.L([_.S("data.icon.iconType"),_.p("design:type",Object),_.p("design:paramtypes",[])],zy.prototype,"icon",null);_.L([_.x(),_.p("design:type",Object)],zy.prototype,"dismissButtonOverrides",void 0);_.L([_.O8("imageUploadEndpoint"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],zy.prototype,"setupOverlay",null);_.L([_.U({is:"ytd-backstage-image-select-renderer",disableElementRegistration:!0})],zy);
_.D(zy,"ytd-backstage-image-select-renderer",function(){if(Oal!==void 0)return Oal;var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-backstage-image-select-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="dropzone" hidden="[[hasPreview]]" class="style-scope ytd-backstage-image-select-renderer">\n  <div id="selection-cancel-button" class="cancel style-scope ytd-backstage-image-select-renderer" on-tap="cancel"></div>\n  <yt-icon id="drop-icon" icon="[[icon]]" class="style-scope ytd-backstage-image-select-renderer"></yt-icon>\n  <span id="prompt" class="style-scope ytd-backstage-image-select-renderer">[[getSimpleString(data.dragLabel)]]</span>\n  <div id="select" class="style-scope ytd-backstage-image-select-renderer"></div>\n  <div class="messages style-scope ytd-backstage-image-select-renderer">\n    <span id="aspect-ratio-message" class="style-scope ytd-backstage-image-select-renderer">\n      [[getSimpleString(data.aspectRatioRequirement)]]\n    </span>\n    <span id="license-text" class="style-scope ytd-backstage-image-select-renderer">[[getSimpleString(data.licenseText)]]</span>\n    <span id="error-message" hidden="[[!errorMessage]]" class="style-scope ytd-backstage-image-select-renderer">[[errorMessage]]</span>\n  </div>\n</div>\n<div id="image-preview" hidden="[[!hasPreview]]" class="style-scope ytd-backstage-image-select-renderer">\n  <div id="preview-cancel-button" class="cancel style-scope ytd-backstage-image-select-renderer" on-tap="cancel"></div>\n  <yt-img-crop-picker id="preview-picker" instruction="[[data.imagePreviewSelectMetadata]]" reposition-optional="true" class="style-scope ytd-backstage-image-select-renderer">\n  </yt-img-crop-picker>\n</div>\n');
a.content.insertBefore(_.w().content.cloneNode(!0),a.content.firstChild);return Oal=a},{mode:1});var ndv;var KNl;var Im=function(){var a=_.G.apply(this,arguments)||this;a.selected=!1;return a};
_.b(Im,_.G);_.Z=Im.prototype;_.Z.computeSelected=function(a){return a==null?void 0:a.selected};
_.Z.computeTransform=function(a,z,I){var J,r,P=(r=(J=this.imageContainer)==null?void 0:J.getBoundingClientRect())!=null?r:{width:0,height:0};J=Math.max(P.width/z,P.height/I);I=I*J*a.top;return"translateX("+this.getSignedPosition(z*J*a.left,"X","-")+") translateY("+this.getSignedPosition(I,"Y","-")+")"};
_.Z.getSignedPosition=function(a,z,I){return z==="X"&&_.Xw("HTML_DIR")==="rtl"?I==="-"?a+"px":a*-1+"px":I==="-"?a*-1+"px":a+"px"};
_.Z.onClick=function(){var a;_.PA(this.hostElement,"ytb-backstage-multi-image-thumbnail-render-click",(a=this.data)==null?void 0:a.image)};
_.Z.onKeyPress=function(a){if(a.keyCode===13)this.onClick()};
_.eH.Object.defineProperties(Im.prototype,{thumbnailUrl:{configurable:!0,enumerable:!0,get:function(){var a,z;return((a=this.data)==null?void 0:(z=a.image)==null?void 0:z.localImageSrc)||void 0}},
thumbnailStyle:{configurable:!0,enumerable:!0,get:function(){var a;if((a=this.data)!=null&&a.image){var z;a=(z=this.data)==null?void 0:z.image;return a.previewCoordinates.top!==0||a.previewCoordinates.left!==0?(z=this.computeTransform(a.previewCoordinates,a.naturalWidth,a.naturalHeight),a.naturalHeight>=a.naturalWidth?"width:inherit;transform:"+z+";":"height:inherit;transform:"+z+";"):a.naturalHeight>=a.naturalWidth?"width:inherit;":"height:inherit;"}}}});
Im.prototype.onKeyPress=Im.prototype.onKeyPress;_.L([_.A3(".image-container"),_.p("design:type",HTMLElement)],Im.prototype,"imageContainer",void 0);_.L([_.x(),_.p("design:type",Object)],Im.prototype,"data",void 0);_.L([_.x({reflectToAttribute:!0,computed:"computeSelected(data)"}),_.p("design:type",Object)],Im.prototype,"selected",void 0);_.L([_.S("data.image"),_.p("design:type",Object),_.p("design:paramtypes",[])],Im.prototype,"thumbnailUrl",null);
_.L([_.S("data.image","data.image.previewCoordinates"),_.p("design:type",Object),_.p("design:paramtypes",[])],Im.prototype,"thumbnailStyle",null);_.L([_.gz("keypress"),_.p("design:type",Function),_.p("design:paramtypes",[Event]),_.p("design:returntype")],Im.prototype,"onKeyPress",null);_.L([_.U({is:"ytd-backstage-multi-image-thumbnail-renderer",disableElementRegistration:!0})],Im);
_.D(Im,"ytd-backstage-multi-image-thumbnail-renderer",function(){if(KNl!==void 0)return KNl;var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-backstage-multi-image-thumbnail-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="container style-scope ytd-backstage-multi-image-thumbnail-renderer">\n  <div class="image-container style-scope ytd-backstage-multi-image-thumbnail-renderer" role="button" tabindex="0" on-click="onClick">\n    <img class="thumbnail-image style-scope ytd-backstage-multi-image-thumbnail-renderer" style$="[[thumbnailStyle]]" src$="[[thumbnailUrl]]" alt="">\n  </div>\n</div>\n');
a.content.insertBefore(_.w().content.cloneNode(!0),a.content.firstChild);return KNl=a},{mode:2});var J5=function(a,z,I){I=I===void 0?!1:I;_.HV.call(this);var J=this;this.dropZoneOverlay=new fQ(a);this.selectOverlay=I?new AV(z,"multiple_file",["image/*"]):new AV(z,"single_file",["image/*"]);this.handler=new _.PJ(this);_.t7(this,this.handler);this.handler.listen(this.dropZoneOverlay,"f",this.onChange).listen(z,"click",function(){J.selectOverlay.click()}).listen(this.selectOverlay,"j",this.onChange)};
_.b(J5,_.HV);J5.prototype.onChange=function(a){var z;(z=a.files)!=null&&z.length&&this.dispatchEvent(new CustomEvent("yt.comments.ImagePicker.select",{detail:a.files}))};var rj=function(){var a=_.G.apply(this,arguments)||this;a.addImageErrorMessage="";a.errorMessage="";a.images=[];a.selectedImageIndex=0;a.modern=_.K("web_modern_buttons");a.maxNumImagesPerPost=_.Ib("max_num_images_per_post_web_ui");a.JSC$15572_imageId=0;return a};
_.b(rj,_.G);_.Z=rj.prototype;_.Z.observeAddImageError=function(){this.addImageErrorMessage!==""&&_.PA(this.hostElement,"yt-backstage-add-image-error",this.addImageErrorMessage)};
_.Z.observeDragToReorder=function(){var a=this;if(this.showImagesPreview){var z,I=xiv(_.Ns.getInstance(),(z=this.data)==null?void 0:z.dragToReorderTooltip);_.GW.addLowPriorityJob(function(){_.tR(a.hostElement,I,a.thumbnailDragDropArea)})}};
_.Z.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}}};
_.Z.computeThumbnail=function(a){return(a==null?void 0:a.localImageSrc)||void 0};
_.Z.onRendererstamperFinished=function(){_.KCj(this.ytReorderableBehavior,_.PK(this.hostElement).querySelector("#thumbnail-drag-drop-area"),_.PK(this.hostElement).querySelector("#thumbnail-drag-drop-area"))};
_.Z.handleDrop=function(a){var z=a.currDragItem;if(z!=null&&z.data){a=this.images[this.selectedImageIndex];var I=z.data.image,J=this.images.indexOf(I)||0;z=_.d$(z.parentNode.children,z);this.images.splice(J,1);this.images.splice(z,0,I);this.images=[].concat(_.ih(this.images));this.selectedImageIndex=this.images.indexOf(a)}};
_.Z.setUpImagePicker=function(){var a=this.imageUploadEndpoint;a&&a.imageValidationInfo&&(this.uploadManager=new qi(a.uploadUrl,a.channelId),this.initialPicker||(this.initialPicker=new J5(this.dropzone,this.selectLink,!0),_.Sg(this.initialPicker,"yt.comments.ImagePicker.select",this.onInitialSelectImages,!1,this)),this.addImagePicker||(this.addImagePicker=new J5(this.addImageButtonContainer,this.addImageSelectButton),_.Sg(this.addImagePicker,"yt.comments.ImagePicker.select",this.onAddImage,!1,this)),
_.Sg(this.JSC$15572_imagePreviewContainer,"ytd-backstage-image-preview-coordinates-save",this.repositionImage,!1,this),_.Sg(this.JSC$15572_imagePreviewContainer,"ytd-backstage-image-preview-delete",this.deleteImage,!1,this),_.Sg(_.PK(this.hostElement).querySelector("#thumbnail-drag-drop-area"),"ytb-backstage-multi-image-thumbnail-render-click",this.onThumbnailClick,!1,this))};
_.Z.detached=function(){this.initialPicker&&(_.FU(this.initialPicker,"yt.comments.ImagePicker.select",this.onInitialSelectImages,!1,this),this.initialPicker.dispose(),this.initialPicker=void 0);this.addImagePicker&&(_.FU(this.addImagePicker,"yt.comments.ImagePicker.select",this.onAddImage,!1,this),this.addImagePicker.dispose(),this.addImagePicker=void 0)};
_.Z.onInitialSelectImages=function(a){var z=this;return _.t(function(I){return I.yield(z.onSelectImages(a,!1),0)})};
_.Z.onAddImage=function(a){var z=this;return _.t(function(I){return I.yield(z.onSelectImages(a,!0),0)})};
_.Z.onSelectImages=function(a,z){var I=this,J,r,P,N,u,E,O,f,A,n,F,h,v,d,W,l,q,m,M,y;return _.t(function(e){switch(e.nextAddress){case 1:z?I.addImageErrorMessage="":(I.images=[],I.errorMessage="");J=a.detail;r=I.validateImages([].concat(_.ih(J)));if(r!=="")return z?I.addImageErrorMessage=r:I.errorMessage=r,e.return();P=[].concat(_.ih(J)).map(function(Bp){return(new jK(I.maxAspectRatio,!1,!0)).transform(Bp)});
return e.yield(Promise.allSettled(P),2);case 2:N=e.yieldResult,u=_.C(N.entries()),E=u.next();case 3:if(E.done){e.jumpTo(5);break}O=E.value;f=_.C(O);A=f.next().value;n=f.next().value;F=A;h=n;if(h.status!=="fulfilled"){W=d=v=void 0;z?I.addImageErrorMessage=_.cd((v=I.data)==null?void 0:v.invalidError):I.errorMessage=I.errorMessage===""?_.cd((d=I.data)==null?void 0:d.invalidError):_.cd((W=I.data)==null?void 0:W.multiFileError);e.jumpTo(4);break}l=h.value;l.cropped&&_.PA(I.hostElement,"yt-backstage-multi-image-cropped");
if(l.invalidAspectRatio){M=m=q=void 0;z?I.addImageErrorMessage=_.cd((q=I.data)==null?void 0:q.invalidAspectRatioError):I.errorMessage=I.errorMessage===""?_.cd((m=I.data)==null?void 0:m.invalidAspectRatioError):_.cd((M=I.data)==null?void 0:M.multiFileError);e.jumpTo(4);break}return e.yield(Iz3(I.JSC$15572_imageId,a.detail[F],l.transformedData),8);case 8:y=e.yieldResult,I.images.push(y),I.JSC$15572_imageId++;case 4:E=u.next();e.jumpTo(3);break;case 5:if(I.errorMessage!==""||I.addImageErrorMessage!==
"")return e.return();z?Zaf(I.uploadManager,[I.images[I.images.length-1]]):Zaf(I.uploadManager,I.images);I.images=[].concat(_.ih(I.images));I.selectedImageIndex=z?Math.max(I.images.length-1,0):0;_.PA(I.hostElement,"yt-backstage-multi-image-select");_.nu(e)}})};
_.Z.onThumbnailClick=function(a){if(a=a.event_.detail)this.selectedImageIndex=this.images.indexOf(a)};
_.Z.validateImages=function(a){if(a.length>this.maxNumImagesPerPost){var z;return _.cd((z=this.data)==null?void 0:z.multiImageExceedMaxImageCountError)}var I=1048576*this.maxFileSizeMb;a=a.filter(function(P){return P.size>I}).length;
if(a===0)return"";var J,r;a=a>1?(J=this.data)==null?void 0:J.multiFileError:(r=this.data)==null?void 0:r.fileSizeError;return _.cd(a)};
_.Z.deleteImage=function(){this.uploadManager.cancel(this.images[this.selectedImageIndex].id);this.images.splice(this.selectedImageIndex,1);this.images=[].concat(_.ih(this.images));this.selectedImageIndex=0};
_.Z.repositionImage=function(a){this.images[this.selectedImageIndex].previewCoordinates=a.event_.detail;this.images=[].concat(_.ih(this.images))};
_.Z.getAllUploadStatuses=function(){var a=this,z,I,J,r;return _.t(function(P){if(P.nextAddress==1)return P.yield(a.uploadManager.getAllUploadStatuses(),2);z=P.yieldResult;I=_.C(z);for(J=I.next();!J.done;J=I.next())if(r=J.value,r.encryptedBlobId===void 0)return P.return(Cti(a.uploadManager));return P.return(z)})};
_.Z.hasImages=function(){return this.images.length>0};
_.Z.cancel=function(){for(var a=this.uploadManager,z=_.C(a.imagesUploadData),I=z.next();!I.done;I=z.next())a.cancel(I.value.image.id);this.addImageErrorMessage=this.errorMessage="";this.images=[];_.PA(this.hostElement,"yt-backstage-multi-image-cancel")};
_.eH.Object.defineProperties(rj.prototype,{maxAspectRatio:{configurable:!0,enumerable:!0,get:function(){var a,z;return((a=this.imageUploadEndpoint)==null?void 0:(z=a.imageValidationInfo)==null?void 0:z.allowedMaxAspectRatio)||0}},
maxFileSizeMb:{configurable:!0,enumerable:!0,get:function(){var a,z;return((a=this.imageUploadEndpoint)==null?void 0:(z=a.imageValidationInfo)==null?void 0:z.maxFileSizeMb)||0}},
dropIcon:{configurable:!0,enumerable:!0,get:function(){var a,z;if((a=this.data)==null?0:(z=a.icon)==null?0:z.iconType)return _.Bl(this.data.icon.iconType)}},
selectionCancel:{configurable:!0,enumerable:!0,get:function(){var a;return(a=this.data)==null?void 0:a.cancelButton}},
previewCancel:{configurable:!0,enumerable:!0,get:function(){var a;return(a=this.data)==null?void 0:a.cancelButton}},
dataForAddImageButton:{configurable:!0,enumerable:!0,get:function(){var a;return(a=this.data)==null?void 0:a.addImageButton}},
dropzoneClass:{configurable:!0,enumerable:!0,get:function(){return this.errorMessage===""?"":"error"}},
showImagesPreview:{configurable:!0,enumerable:!0,get:function(){return this.images.length>0&&this.errorMessage===""}},
containMaxImages:{configurable:!0,enumerable:!0,get:function(){return this.images.length>=this.maxNumImagesPerPost}},
selectedImageData:{configurable:!0,enumerable:!0,get:function(){return this.images[this.selectedImageIndex]||void 0}},
thumbnailRenderers:{configurable:!0,enumerable:!0,get:function(){var a=this;return(this.images||[]).map(function(z,I){return{renderer:{image:z,selected:I===a.selectedImageIndex}}})}}});
rj.prototype.setUpImagePicker=rj.prototype.setUpImagePicker;rj.prototype.onRendererstamperFinished=rj.prototype.onRendererstamperFinished;rj.prototype.observeDragToReorder=rj.prototype.observeDragToReorder;rj.prototype.observeAddImageError=rj.prototype.observeAddImageError;_.L([_.Q(_.u4.YtRendererstamperBehavior),_.p("design:type",Object)],rj.prototype,"rendererStamperBehavior",void 0);_.L([_.Q(_.k.YtRendererBehavior),_.p("design:type",Object)],rj.prototype,"ytRendererBehavior",void 0);
_.L([_.Q(_.FCE),_.p("design:type",Object)],rj.prototype,"ytReorderableBehavior",void 0);_.L([_.A3("#dropzone"),_.p("design:type",HTMLElement)],rj.prototype,"dropzone",void 0);_.L([_.A3("#select-link"),_.p("design:type",HTMLElement)],rj.prototype,"selectLink",void 0);_.L([_.A3("#thumbnail-drag-drop-area"),_.p("design:type",HTMLElement)],rj.prototype,"thumbnailDragDropArea",void 0);_.L([_.A3("#add-image-button-container"),_.p("design:type",HTMLElement)],rj.prototype,"addImageButtonContainer",void 0);
_.L([_.A3("#add-image-button"),_.p("design:type",HTMLElement)],rj.prototype,"addImageSelectButton",void 0);_.L([_.A3("#image-preview-container"),_.p("design:type",Object)],rj.prototype,"JSC$15572_imagePreviewContainer",void 0);_.L([_.x(),_.p("design:type",Object)],rj.prototype,"addImageErrorMessage",void 0);_.L([_.x(),_.p("design:type",Object)],rj.prototype,"data",void 0);_.L([_.x(),_.p("design:type",Object)],rj.prototype,"errorMessage",void 0);
_.L([_.x(),_.p("design:type",Object)],rj.prototype,"imageUploadEndpoint",void 0);_.L([_.x(),_.p("design:type",Array)],rj.prototype,"images",void 0);_.L([_.x(),_.p("design:type",J5)],rj.prototype,"initialPicker",void 0);_.L([_.x(),_.p("design:type",J5)],rj.prototype,"addImagePicker",void 0);_.L([_.x(),_.p("design:type",qi)],rj.prototype,"uploadManager",void 0);_.L([_.x(),_.p("design:type",Object)],rj.prototype,"selectedImageIndex",void 0);
_.L([_.x({reflectToAttribute:!0}),_.p("design:type",Object)],rj.prototype,"modern",void 0);_.L([_.x({reflectToAttribute:!0}),_.p("design:type",Object)],rj.prototype,"maxNumImagesPerPost",void 0);_.L([_.S("imageUploadEndpoint"),_.p("design:type",Number),_.p("design:paramtypes",[])],rj.prototype,"maxAspectRatio",null);_.L([_.S("imageUploadEndpoint"),_.p("design:type",Number),_.p("design:paramtypes",[])],rj.prototype,"maxFileSizeMb",null);
_.L([_.S("data.icon.iconType"),_.p("design:type",Object),_.p("design:paramtypes",[])],rj.prototype,"dropIcon",null);_.L([_.S("data"),_.p("design:type",Object),_.p("design:paramtypes",[])],rj.prototype,"selectionCancel",null);_.L([_.S("data"),_.p("design:type",Object),_.p("design:paramtypes",[])],rj.prototype,"previewCancel",null);_.L([_.S("data"),_.p("design:type",Object),_.p("design:paramtypes",[])],rj.prototype,"dataForAddImageButton",null);
_.L([_.S("errorMessage"),_.p("design:type",String),_.p("design:paramtypes",[])],rj.prototype,"dropzoneClass",null);_.L([_.S("images"),_.p("design:type",Boolean),_.p("design:paramtypes",[])],rj.prototype,"showImagesPreview",null);_.L([_.S("images"),_.p("design:type",Boolean),_.p("design:paramtypes",[])],rj.prototype,"containMaxImages",null);_.L([_.O8("addImageErrorMessage"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],rj.prototype,"observeAddImageError",null);
_.L([_.O8("showImagesPreview"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],rj.prototype,"observeDragToReorder",null);_.L([_.S("images","selectedImageIndex"),_.p("design:type",Object),_.p("design:paramtypes",[])],rj.prototype,"selectedImageData",null);_.L([_.S("images","selectedImageIndex"),_.p("design:type",Array),_.p("design:paramtypes",[])],rj.prototype,"thumbnailRenderers",null);
_.L([_.gz("yt-rendererstamper-finished"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],rj.prototype,"onRendererstamperFinished",null);_.L([_.O8("imageUploadEndpoint"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],rj.prototype,"setUpImagePicker",null);_.L([_.U({is:"ytd-backstage-multi-image-select-renderer",disableElementRegistration:!0})],rj);
_.D(rj,"ytd-backstage-multi-image-select-renderer",function(){if(ndv!==void 0)return ndv;var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-backstage-multi-image-select-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e\n<div id="dropzone" class$="[[dropzoneClass]] style-scope ytd-backstage-multi-image-select-renderer" hidden="[[showImagesPreview]]">\n  <div id="selection-cancel-button" class="cancel style-scope ytd-backstage-multi-image-select-renderer" on-click="cancel"></div>\n  <div id="drop-icon-container" class="style-scope ytd-backstage-multi-image-select-renderer">\n    <yt-icon id="drop-icon" icon="[[dropIcon]]" class="style-scope ytd-backstage-multi-image-select-renderer"></yt-icon>\n  </div>\n  <span id="prompt" class="style-scope ytd-backstage-multi-image-select-renderer">[[getSimpleString(data.dragLabel)]]</span>\n  <a id="select-link" class="style-scope ytd-backstage-multi-image-select-renderer">\n     [[getSimpleString(data.selectButton)]]\n  </a>\n  <div class="messages style-scope ytd-backstage-multi-image-select-renderer">\n    <span id="aspect-ratio-message" class="style-scope ytd-backstage-multi-image-select-renderer">\n       [[getSimpleString(data.aspectRatioRequirement)]]\n    </span>\n    <span id="license-text" class="style-scope ytd-backstage-multi-image-select-renderer">[[getSimpleString(data.licenseText)]]</span>\n    <span id="error-message" hidden="[[!errorMessage]]" class="style-scope ytd-backstage-multi-image-select-renderer">[[errorMessage]]</span>\n  </div>\n</div>\n\n\n<div id="multi-image-container" hidden="[[!showImagesPreview]]" class="style-scope ytd-backstage-multi-image-select-renderer">\n  <div id="preview-cancel-button" class="cancel style-scope ytd-backstage-multi-image-select-renderer" on-click="cancel"></div>\n  <div id="thumbnail-images-container" class="style-scope ytd-backstage-multi-image-select-renderer">\n    <div id="thumbnail-drag-drop-area" class="style-scope ytd-backstage-multi-image-select-renderer"></div>\n    <div id="add-image-button-container" hidden="[[containMaxImages]]" class="style-scope ytd-backstage-multi-image-select-renderer">\n       <div id="add-image-button" class="style-scope ytd-backstage-multi-image-select-renderer"></div>\n    </div>\n  </div>\n  <div id="preview" class="style-scope ytd-backstage-multi-image-select-renderer">\n    <ytd-backstage-image-preview-renderer id="image-preview-container" image-data="[[selectedImageData]]" instruction="[[data.imagePreviewSelectMetadata]]" class="style-scope ytd-backstage-multi-image-select-renderer">\n    </ytd-backstage-image-preview-renderer>\n  </div>\n</div>\n');
a.content.insertBefore(_.w().content.cloneNode(!0),a.content.firstChild);return ndv=a},{mode:1});var FNw;var Haw;var baX;var PT=function(){var a=_.G.apply(this,arguments)||this;a.boundCaptureFocus=function(z){a.onCaptureFocus(z)};
return a};
_.b(PT,_.G);_.Z=PT.prototype;_.Z.attached=function(){document.addEventListener("focus",this.boundCaptureFocus,!0)};
_.Z.detached=function(){document.removeEventListener("focus",this.boundCaptureFocus)};
_.Z.onCaptureFocus=function(a){_.ch(a).indexOf(this.hostElement)!==-1&&this.item.focus()};
_.Z.getIconType=function(a){return a?"yt-icons:"+a.toLowerCase():null};
_.Z.onSelect=function(){var a;if((a=this.data)==null?0:a.onSelectCommand)if(_.K("refresh_upon_dismiss_channel_creation_from_playlists"))this.ytComponentBehavior.resolveCommand(this.data.onSelectCommand);else{var z;((z=_.H(this.data.onSelectCommand.commandMetadata,_.O_))==null?0:z.url)?_.PA(this.hostElement,"yt-navigate",{endpoint:this.data.onSelectCommand}):_.ab().resolve(_.j6).resolveCommand(this.data.onSelectCommand,{form:{element:this.hostElement}})}};
_.eH.Object.defineProperties(PT.prototype,{label:{configurable:!0,enumerable:!0,get:function(){return this.data?_.cd(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}}});
_.L([_.Q(_.k.YtRendererBehavior),_.p("design:type",Object)],PT.prototype,"ytRendererBehavior",void 0);_.L([_.Q(_.Ms.YtComponentBehavior),_.p("design:type",Object)],PT.prototype,"ytComponentBehavior",void 0);_.L([_.x(),_.p("design:type",Object)],PT.prototype,"data",void 0);_.L([_.A3("#item"),_.p("design:type",HTMLElement)],PT.prototype,"item",void 0);_.L([_.S("data.label"),_.p("design:type",String),_.p("design:paramtypes",[])],PT.prototype,"label",null);
_.L([_.S("data"),_.p("design:type",Object),_.p("design:paramtypes",[])],PT.prototype,"value",null);_.L([_.U({is:"ytd-privacy-dropdown-item-renderer",disableElementRegistration:!0})],PT);
_.D(PT,"ytd-privacy-dropdown-item-renderer",function(){if(baX!==void 0)return baX;var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-privacy-dropdown-item-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<tp-yt-paper-item id="item" on-click="onSelect" class="style-scope ytd-privacy-dropdown-item-renderer">\n  <yt-icon id="dropdown-icon" hidden="[[!data.icon.iconType]]" icon="[[getIconType(data.icon.iconType)]]" class="style-scope ytd-privacy-dropdown-item-renderer">\n  </yt-icon>\n  <tp-yt-paper-item-body two-line="" class="style-scope ytd-privacy-dropdown-item-renderer">\n    <yt-formatted-string id="label" text="[[data.label]]" class="style-scope ytd-privacy-dropdown-item-renderer"></yt-formatted-string>\n    <yt-formatted-string id="description" text="[[data.description]]" class="style-scope ytd-privacy-dropdown-item-renderer"></yt-formatted-string>\n  </tp-yt-paper-item-body>\n</tp-yt-paper-item>\n');a.content.insertBefore(_.w().content.cloneNode(!0),
a.content.firstChild);return baX=a},{mode:1});var Z3=function(){var a=_.G.apply(this,arguments)||this;a.value="";a.label="";a.disabled=!1;return a};
_.b(Z3,_.G);_.Z=Z3.prototype;_.Z.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"}}}};
_.Z.reset=function(){this.entries.selected=-1;this.entries.forceSynchronousItemUpdate();this.entries.select(this.getInitiallySelectedItem());this.setInitialLabel()};
_.Z.dataChanged=function(){this.reset()};
_.Z.valueChanged=function(){var a;if(this.value&&(a=this.data)!=null&&a.entries){a=_.C(this.data.entries);for(var z=a.next();!z.done;z=a.next())if((z=this.getRendererForEntry(z.value))&&this.getItemRendererValue(z)===this.value){this.label=this.ytComponentBehavior.getSimpleString(z.label);break}}};
_.Z.setInitialLabel=function(){if(this.data&&this.data.entries)for(var a=_.C(this.data.entries),z=a.next();!z.done;z=a.next())if(z=this.getRendererForEntry(z.value)){if(z.isSelected){this.label=this.ytComponentBehavior.getSimpleString(z.label);break}this.data.label&&(this.label=this.data.label)}};
_.Z.getInitiallySelectedItem=function(){if(!this.data||!this.data.entries)return-1;for(var a=_.C(this.data.entries),z=a.next();!z.done;z=a.next()){z=this.getRendererForEntry(z.value);var I=void 0;if((I=z)==null?0:I.isSelected)return this.getItemRendererValue(z)||-1}return-1};
_.Z.getItemRendererValue=function(a){return"stringValue"in a||"int32Value"in a?a.stringValue||a.int32Value||null:null};
_.Z.getRendererForEntry=function(a){return a.dropdownItemRenderer||a.privacyDropdownItemRenderer||a.navigationDropdownItemRenderer||null};
_.Z.valueChangedForBinding=function(){this.hostElement.dispatchEvent(new _.eY("value-changed",this.value))};
_.Z.updateValueFromBinding=function(a){this.value=a.detail.value};
Z3.prototype.valueChangedForBinding=Z3.prototype.valueChangedForBinding;Z3.prototype.valueChanged=Z3.prototype.valueChanged;Z3.prototype.dataChanged=Z3.prototype.dataChanged;_.L([_.Q(_.Ms.YtComponentBehavior),_.p("design:type",Object)],Z3.prototype,"ytComponentBehavior",void 0);_.L([_.Q(_.k.YtRendererBehavior),_.p("design:type",Object)],Z3.prototype,"ytRendererBehavior",void 0);_.L([_.Q(_.u4.YtRendererstamperBehavior),_.p("design:type",Object)],Z3.prototype,"ytRendererstamperBehavior",void 0);
_.L([_.x(),_.p("design:type",Object)],Z3.prototype,"data",void 0);_.L([_.x(),_.p("design:type",Object)],Z3.prototype,"value",void 0);_.L([_.x(),_.p("design:type",Object)],Z3.prototype,"label",void 0);_.L([_.A3("#entries"),_.p("design:type",Object)],Z3.prototype,"entries",void 0);_.L([_.x({reflectToAttribute:!0}),_.p("design:type",Object)],Z3.prototype,"disabled",void 0);_.L([_.Fe("data"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],Z3.prototype,"dataChanged",null);
_.L([_.Fe("value"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],Z3.prototype,"valueChanged",null);_.L([_.O8("value"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],Z3.prototype,"valueChangedForBinding",null);_.L([_.U({disableElementRegistration:!0,is:"ytd-flat-dropdown-renderer"})],Z3);
_.D(Z3,"ytd-flat-dropdown-renderer",function(){if(Haw!==void 0)return Haw;var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-flat-dropdown-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<tp-yt-paper-menu-button disabled="[[disabled]]" dynamic-align="" horizontal-align="left" class="style-scope ytd-flat-dropdown-renderer">\n  <tp-yt-paper-button id="label" class="dropdown-trigger style-scope ytd-flat-dropdown-renderer" slot="dropdown-trigger" aria-label$="[[label]]">\n    <div id="label-text" class="style-scope ytd-flat-dropdown-renderer">[[label]]</div>\n    <yt-icon id="label-icon" icon="EXPAND" class="style-scope ytd-flat-dropdown-renderer">\n    </yt-icon>\n  </tp-yt-paper-button>\n  <tp-yt-paper-listbox id="entries" class="dropdown-content style-scope ytd-flat-dropdown-renderer" slot="dropdown-content" attr-for-selected="value" selected="[[value]]" on-selected-changed="updateValueFromBinding">\n  </tp-yt-paper-listbox>\n</tp-yt-paper-menu-button>\n');a.content.insertBefore(_.w().content.cloneNode(!0),
a.content.firstChild);return Haw=a},{mode:1});var hKf;var CX=function(){var a=_.G.apply(this,arguments)||this;a.quizOptions=[];a.explanationPlaceholderText="";a.optionPlaceholderText="";a.correctAnswerIndex=-1;a.isMarkAnswerTooltipShown=!1;a.timer=0;return a};
_.b(CX,_.G);_.Z=CX.prototype;_.Z.dataChanged=function(){this.optionPlaceholderText=_.cd(this.editorInfo.optionPlaceholderText);this.explanationPlaceholderText=_.cd(this.editorInfo.explanationPlaceholderText);this.quizOptions.length===0&&(this.quizOptions=this.createQuizOptions(this.editorInfo))};
_.Z.onMarkCorrectAnswer=function(a){var z,I=((z=this.quizOptions[this.correctAnswerIndex])==null?void 0:z.explanationText)||"";this.correctAnswerIndex>=0&&(this.quizOptions[this.correctAnswerIndex]=Object.assign({},this.quizOptions[this.correctAnswerIndex],{isCorrect:!1,explanationText:""}));this.quizOptions[a.model.index]=Object.assign({},this.quizOptions[a.model.index],{explanationText:I,isCorrect:!0});this.correctAnswerIndex=a.model.index;this.quizOptions=[].concat(_.ih(this.quizOptions))};
_.Z.updatePlaceholderTexts=function(){for(var a=!1,z=[],I=0;I<this.quizOptions.length;I++){var J=this.optionPlaceholderText+" "+(I+1),r=void 0;((r=this.quizOptions[I])==null?void 0:r.placeholderText)!==J?(a=!0,z.push(Object.assign({},this.quizOptions[I],{placeholderText:J}))):z.push(this.quizOptions[I])}a&&(this.quizOptions=z);this.isValid()?_.PA(this.hostElement,"yt-commentbox-post-enable"):_.PA(this.hostElement,"yt-commentbox-post-disable")};
_.Z.getSimpleString=function(a){return _.cd(a)};
_.Z.createQuizOptions=function(a){var z=[],I;a=(I=a==null?void 0:a.minQuizOptions)!=null?I:0;for(I=0;I<a;I++)z.push(this.createQuizOption());return z};
_.Z.onAddQuizOption=function(){this.isAllowedToAddOption&&(this.quizOptions=[].concat(_.ih(this.quizOptions),[this.createQuizOption()]))};
_.Z.onInput=function(){this.quizOptions=[].concat(_.ih(this.quizOptions))};
_.Z.onExplanationInput=function(){_.PA(this.hostElement,"yt-quiz-attachment-explanation-update")};
_.Z.onRemoveQuizOption=function(a){this.quizOptions.splice(a.model.index,1);a.model.index<this.correctAnswerIndex?--this.correctAnswerIndex:a.model.index===this.correctAnswerIndex&&(this.correctAnswerIndex=-1);this.quizOptions=[].concat(_.ih(this.quizOptions));this.quizOptions.length===0&&_.PA(this.hostElement,"yt-quiz-attachment-dismiss")};
_.Z.updateHintRenderer=function(){var a=this;clearTimeout(this.timer);this.timer=setTimeout(function(){a.maybeDisplayMarkAnswerEduToolTip()},4E3)};
_.Z.isValid=function(){if(!this.editorInfo||this.quizOptions.length<Number(this.editorInfo.minQuizOptions)||this.quizOptions.length>Number(this.editorInfo.maxQuizOptions))return!1;for(var a=0,z=0,I=_.C(this.quizOptions),J=I.next();!J.done;J=I.next()){J=J.value;var r=void 0;if(((r=J.optionText)==null?void 0:r.trim())!==""||J.isCorrect){J.isCorrect&&z++;r=void 0;if(this.hasCustomOptionText&&((r=J.optionText)==null?void 0:r.trim().length)<Number(this.editorInfo.minQuizOptionChars))return!1;a++}}return a>=
Number(this.editorInfo.minQuizOptions)&&z===1};
_.Z.getPostCreateOptions=function(){for(var a=[],z=_.C(this.quizOptions),I=z.next();!I.done;I=z.next()){I=I.value;var J=void 0;((J=I.optionText)==null?void 0:J.trim())!==""&&a.push({pollOption:{text:I.optionText,explanation:I.explanationText},isCorrect:I.isCorrect})}return a};
_.Z.getExplanationText=function(){var a;return((a=this.quizOptions[this.correctAnswerIndex])==null?void 0:a.explanationText)||""};
_.Z.maybeDisplayMarkAnswerEduToolTip=function(){var a,z,I,J,r,P,N;this.shouldShowMarkAnswerTooltip()&&((a=this.editorInfo)==null?0:(z=a.markAnswerButton)==null?0:(I=z.buttonRenderer)==null?0:(J=I.hint)==null?0:(r=J.hintRenderer)==null?0:(P=r.content)==null?0:(N=P.bubbleHintRenderer)==null?0:N.text)&&(_.Ns.getInstance(),a=tK(this.editorInfo.markAnswerButton.buttonRenderer.hint.hintRenderer.content.bubbleHintRenderer.text,void 0,"OPEN_POPUP_POSITION_TOP",void 0,"mark-answer-button-edu-displayed-impression"),
this.isMarkAnswerTooltipShown=!0,(a==null?void 0:a.length)>0&&this.optionSelectors&&_.fw(a[0],this.optionSelectors[0]))};
_.Z.shouldShowMarkAnswerTooltip=function(){if(this.isMarkAnswerTooltipShown||this.quizOptions.length<=1)return!1;for(var a=0,z=_.C(this.quizOptions),I=z.next();!I.done;I=z.next()){I=I.value;var J=void 0;((J=I.optionText)==null?void 0:J.trim())!==""&&a++;if(I.isCorrect)return!1}return a<2?!1:!0};
_.Z.resetQuizOptions=function(){this.quizOptions=this.createQuizOptions(this.editorInfo);this.isMarkAnswerTooltipShown=!1};
_.Z.createQuizOption=function(){return{optionText:"",placeholderText:"",explanationText:"",isCorrect:!1}};
_.Z.updateOptionTextFromBinding=function(a){if(a.target){var z=Array.from(_.PK(this.hostElement).querySelectorAll("tp-yt-iron-autogrow-textarea.quiz-option-input-input")).indexOf(a.target);if(z>=0){var I;this.quizOptions[z].optionText=(I=a.detail.value)!=null?I:""}}};
_.eH.Object.defineProperties(CX.prototype,{addAnswerButton:{configurable:!0,enumerable:!0,get:function(){var a,z,I=(a=this.editorInfo)==null?void 0:(z=a.addOptionButton)==null?void 0:z.buttonRenderer;I&&(I.style="STYLE_SUGGESTIVE",I.size="SIZE_SMALL",I.isDisabled=!this.isAllowedToAddOption);return(I==null?0:I.text)?I:void 0}},
isAllowedToAddOption:{configurable:!0,enumerable:!0,get:function(){var a,z;return this.quizOptions.length<((z=(a=this.editorInfo)==null?void 0:a.maxQuizOptions)!=null?z:0)}},
hasCustomOptionText:{configurable:!0,enumerable:!0,get:function(){return this.quizOptions.some(function(a){var z;return(z=a.optionText)==null?void 0:z.trim()})}}});
CX.prototype.updatePlaceholderTexts=CX.prototype.updatePlaceholderTexts;CX.prototype.dataChanged=CX.prototype.dataChanged;_.L([_.x(),_.p("design:type",Object)],CX.prototype,"editorInfo",void 0);_.L([_.x(),_.p("design:type",Array)],CX.prototype,"quizOptions",void 0);_.L([_.x(),_.p("design:type",Object)],CX.prototype,"explanationPlaceholderText",void 0);_.L([_.s8(".option-selector-button"),_.p("design:type",Array)],CX.prototype,"optionSelectors",void 0);
_.L([_.Fe("editorInfo"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],CX.prototype,"dataChanged",null);_.L([_.S("editorInfo","isAllowedToAddOption","quizOptions"),_.p("design:type",Object),_.p("design:paramtypes",[])],CX.prototype,"addAnswerButton",null);_.L([_.S("editorInfo","quizOptions"),_.p("design:type",Object),_.p("design:paramtypes",[])],CX.prototype,"isAllowedToAddOption",null);
_.L([_.Fe("quizOptions"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],CX.prototype,"updatePlaceholderTexts",null);_.L([_.S("quizOptions"),_.p("design:type",Object),_.p("design:paramtypes",[])],CX.prototype,"hasCustomOptionText",null);_.L([_.U({is:"ytd-backstage-quiz-editor-renderer",disableElementRegistration:!0})],CX);
_.D(CX,"ytd-backstage-quiz-editor-renderer",function(){if(hKf!==void 0)return hKf;var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-backstage-quiz-editor-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="style-scope ytd-backstage-quiz-editor-renderer">\n  <template is="dom-repeat" items="[[quizOptions]]" index="quizAnswerIndex" class="style-scope ytd-backstage-quiz-editor-renderer">\n    <div class="quiz-option style-scope ytd-backstage-quiz-editor-renderer">\n      <div class="quiz-option-container style-scope ytd-backstage-quiz-editor-renderer">\n        <div class="quiz-thumbnail-container style-scope ytd-backstage-quiz-editor-renderer">\n          <div class="quiz-select-container style-scope ytd-backstage-quiz-editor-renderer">\n            <yt-icon-button class="option-selector-button style-scope ytd-backstage-quiz-editor-renderer" aria-checked="[[item.isCorrect]]" aria-label="[[editorInfo.markAnswerButton.buttonRenderer.accessibilityData.accessibilityData.label]]" role="radio" on-click="onMarkCorrectAnswer">\n              <yt-icon class="option-selector style-scope ytd-backstage-quiz-editor-renderer" hidden="[[item.isCorrect]]" icon="yt-icons:radio-button-unchecked">\n              </yt-icon>\n              <yt-icon class="option-selector-correct style-scope ytd-backstage-quiz-editor-renderer" hidden="[[!item.isCorrect]]" default-to-filled="true" icon="yt-icons:check-circle">\n              </yt-icon>\n            </yt-icon-button>\n          </div>\n        </div>\n        <tp-yt-paper-input-container class="quiz-option-input style-scope ytd-backstage-quiz-editor-renderer" no-label-float="">\n          <tp-yt-iron-autogrow-textarea class="quiz-option-input-input paper-input-input style-scope ytd-backstage-quiz-editor-renderer" slot="input" maxlength$="[[editorInfo.maxQuizOptionChars]]" no-label-float="" placeholder$="[[item.placeholderText]]" value="[[item.optionText]]" on-input="onInput" on-keyup="updateHintRenderer" on-value-changed="updateOptionTextFromBinding">\n          </tp-yt-iron-autogrow-textarea>\n          <tp-yt-paper-input-char-counter class="option-counter style-scope ytd-backstage-quiz-editor-renderer" slot="add-on">\n          </tp-yt-paper-input-char-counter>\n        </tp-yt-paper-input-container>\n        <yt-icon-button class="remove-button style-scope ytd-backstage-quiz-editor-renderer" aria-label="[[editorInfo.removeOptionButtonA11yText.accessibilityData.label]]" on-click="onRemoveQuizOption">\n          <yt-icon class="remove-option style-scope ytd-backstage-quiz-editor-renderer" icon="yt-icons:delete"></yt-icon>\n        </yt-icon-button>\n      </div>\n      <div class="quiz-explanation style-scope ytd-backstage-quiz-editor-renderer">\n        <tp-yt-paper-input-container class="quiz-explanation-input style-scope ytd-backstage-quiz-editor-renderer" hidden="[[!item.isCorrect]]" no-label-float="">\n          <tp-yt-iron-autogrow-textarea class="quiz-explanation-input-input paper-input-input style-scope ytd-backstage-quiz-editor-renderer" slot="input" maxlength$="[[editorInfo.maxQuizExplanationChars]]" no-label-float="" placeholder$="[[explanationPlaceholderText]]" value="{{item.explanationText}}" on-input="onExplanationInput">\n          </tp-yt-iron-autogrow-textarea>\n          <tp-yt-paper-input-char-counter class="explanation-counter style-scope ytd-backstage-quiz-editor-renderer" slot="add-on">\n          </tp-yt-paper-input-char-counter>\n        </tp-yt-paper-input-container>\n      </div>\n    </div>\n  </template>\n</div>\n<div class="button-container style-scope ytd-backstage-quiz-editor-renderer">\n  <yt-button-renderer class="add-answer style-scope ytd-backstage-quiz-editor-renderer" data="[[addAnswerButton]]" hidden="[[!isAllowedToAddOption]]" on-click="onAddQuizOption">\n  </yt-button-renderer>\n</div>\n');a.content.insertBefore(_.w().content.cloneNode(!0),
a.content.firstChild);return hKf=a},{mode:2});var VS1;var Qr1=(s1.FIRSTDAYOFWEEK+1)%7;var SoX;var iaf=[],x2O=0,vdJ=0;x2O=0;vdJ=24;if(.25*(vdJ-x2O)<0)SoX=[];else{for(var Gmi=x2O;Gmi<vdJ;Gmi+=.25)iaf.push(Gmi);SoX=iaf}var $2o=SoX.map(function(a){a=a*60*60;return{secondsSinceMidnight:a,text:(new yC(7)).format(new Date(0,0,0,0,0,a))}});var XkJ;var Nc=function(){var a=_.G.apply(this,arguments)||this;a.skipNextOpenDialog=!1;a.errorMessage="";a.previousMonthLabel=_.AR("PREVIOUS_MONTH_LABEL");a.nextMonthLabel=_.AR("NEXT_MONTH_LABEL");return a};
_.b(Nc,_.G);_.Z=Nc.prototype;_.Z.attached=function(){var a=this,z=new MutationObserver(function(){a.JSC$15615_calendarMain.scrollHeight>0&&(z.disconnect(),a.calendarConfig&&a.calendarConfig.selectedDate&&a.scrollToDate())});
z.observe(this.JSC$15615_calendarMain,{childList:!0,subtree:!0});window.setTimeout(function(){z.disconnect()},1E3)};
_.Z.openPicker=function(){this.skipNextOpenDialog?this.skipNextOpenDialog=!1:(this.dialog.positionTarget=this.dropdownButton,this.dialog.open())};
_.Z.onDateTextChange=function(){if(this.calendarConfig){var a=this.validateDateText();a.isValid?(this.textbox.removeAttribute("invalid"),this.commitDate(a.details)):this.textbox.setAttribute("invalid","")}};
_.Z.handleDayClick=function(a){a.model.day.date&&(this.commitDate(a.model.day.date),this.dialog.close())};
_.Z.scrollToDate=function(){if(this.calendarConfig&&this.calendarConfig.selectedDate&&this.renderData){var a=gYp(this.calendarConfig.selectedDate,this.renderData);a!==void 0&&this.JSC$15615_calendarMain.scrollToIndex(a)}};
_.Z.scrollToNextMonth=function(){this.JSC$15615_calendarMain.scrollToIndex(this.JSC$15615_calendarMain.firstVisibleIndex+1)};
_.Z.scrollToPrevMonth=function(){this.JSC$15615_calendarMain.firstVisibleIndex===0&&this.JSC$15615_calendarMain.scrollTo(0,0);this.JSC$15615_calendarMain.scrollToIndex(this.JSC$15615_calendarMain.firstVisibleIndex-1)};
_.Z.onFormSubmit=function(a){a.preventDefault();this.calendarConfig&&(a=this.validateDateText(),a.isValid&&(this.commitDate(a.details),this.dialog.close()))};
_.Z.onEscOrClickingOutside=function(a){a=a.detail.path&&!!a.detail.path.length&&a.detail.path[0];if(a.classList.contains("ytd-calendar-date-picker")){a===this.dropdownButton&&(this.skipNextOpenDialog=!0);for(var z=0;z<this.dropdownButton.children.length;z++)this.dropdownButton.children[z]===a&&(this.skipNextOpenDialog=!0);if(!this.skipNextOpenDialog)return}a=this.textbox.value!==this.dateText;z=this.validateDateText();a&&z.isValid&&this.commitDate(z.details);this.dialog.close();this.textbox.value=
this.dateText};
_.Z.commitDate=function(a){this.calendarConfig&&(this.set("calendarConfig.selectedDate",a),_.PA(this.hostElement,"ytd-calendar-date-selected",a))};
_.Z.validateDateText=function(){if(!this.calendarConfig||!this.textbox)return{isValid:!1,details:void 0};var a=this.textbox.value;var z=new Date;a=(new XBm(2)).parse(a,z,{validate:!0})===a.length?EYi(z):void 0;if(!a)return this.errorMessage=_.AR("INVALID_DATE_ERROR"),{isValid:!1,details:void 0};z=this.calendarConfig.start;var I=this.calendarConfig.end;if(Z8i(a,z))return this.errorMessage=_.AR("ENTER_DATE_OR_LATER",{allowed_date:urx(z)}),{isValid:!1,details:void 0};if(Z8i(I,a))return this.errorMessage=
_.AR("ENTER_DATE_OR_EARLIER",{allowed_date:urx(I)}),{isValid:!1,details:void 0};this.errorMessage="";return{isValid:!0,details:a}};
_.eH.Object.defineProperties(Nc.prototype,{dateText:{configurable:!0,enumerable:!0,get:function(){return this.calendarConfig&&this.calendarConfig.selectedDate?urx(this.calendarConfig.selectedDate):""}},
renderData:{configurable:!0,enumerable:!0,get:function(){if(this.calendarConfig){for(var a=this.calendarConfig,z=[],I=0;I<7;I++)z.push(s1.NARROWWEEKDAYS[(I+Qr1)%7]);I=[];for(var J=new Date(a.start.year,a.start.month);J.getFullYear()<a.end.year||J.getFullYear()===a.end.year&&J.getMonth()<=a.end.month;){var r=I,P=r.push,N=J.getFullYear(),u=J.getMonth(),E=a,O=void 0,f=[],A=Object.freeze({extraCssClass:"invisible",debugClass:""}),n=new Date(N,u),F=EYi(n);n=n.getDay();for(var h=EYi(new Date);F.month===
u;){n!==Qr1&&O||(O=Array.from({length:7}).fill(A),f.push(O));var v={date:{year:N,month:u,day:F.day},extraCssClass:"",debugClass:""};E.selectedDate&&v.date&&PU1(v.date,E.selectedDate)&&(v.extraCssClass+=" selected");if(Z8i(F,E.start)||Z8i(E.end,F))v.extraCssClass+=" disabled";PU1(F,h)&&(v.extraCssClass+=" today");v.extraCssClass=v.extraCssClass.trim();O[(n-Qr1+7)%7]=v;F=NUM(F);n=(n+1)%7}P.call(r,{weeks:f,monthLabel:s1.SHORTMONTHS[u]+" "+N,year:N,month:u,monthLabelExtraCssClass:f[0][2]===A?"shift-down-label":
""});J.setMonth(J.getMonth()+1)}return{months:I,daysOfWeekLabel:z}}}}});
Nc.prototype.onEscOrClickingOutside=Nc.prototype.onEscOrClickingOutside;Nc.prototype.scrollToDate=Nc.prototype.scrollToDate;_.L([_.x(),_.p("design:type",Object)],Nc.prototype,"calendarConfig",void 0);_.L([_.x(),_.p("design:type",Object)],Nc.prototype,"skipNextOpenDialog",void 0);_.L([_.x(),_.p("design:type",Object)],Nc.prototype,"errorMessage",void 0);_.L([_.x(),_.p("design:type",Object)],Nc.prototype,"previousMonthLabel",void 0);
_.L([_.x(),_.p("design:type",Object)],Nc.prototype,"nextMonthLabel",void 0);_.L([_.A3("#textbox"),_.p("design:type",HTMLInputElement)],Nc.prototype,"textbox",void 0);_.L([_.A3("#calendar-dialog"),_.p("design:type",Object)],Nc.prototype,"dialog",void 0);_.L([_.A3("#calendar-main"),_.p("design:type",Object)],Nc.prototype,"JSC$15615_calendarMain",void 0);_.L([_.A3("#date-picker"),_.p("design:type",HTMLElement)],Nc.prototype,"dropdownButton",void 0);
_.L([_.S("calendarConfig.selectedDate"),_.p("design:type",String),_.p("design:paramtypes",[])],Nc.prototype,"dateText",null);_.L([_.S("calendarConfig","calendarConfig.selectedDate"),_.p("design:type",Object),_.p("design:paramtypes",[])],Nc.prototype,"renderData",null);_.L([_.O8("renderData","calendarConfig.selectedDate"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],Nc.prototype,"scrollToDate",null);
_.L([_.gz("iron-overlay-canceled"),_.p("design:type",Function),_.p("design:paramtypes",[CustomEvent]),_.p("design:returntype")],Nc.prototype,"onEscOrClickingOutside",null);_.L([_.dz({disableElementRegistration:!0,is:"ytd-calendar-date-picker",noInjection:!0})],Nc);
_.D(Nc,"ytd-calendar-date-picker",function(){if(XkJ!==void 0)return XkJ;var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-calendar-date-picker--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<tp-yt-paper-menu-button class="style-scope ytd-calendar-date-picker">\n  <tp-yt-paper-button id="date-picker" class="dropdown-trigger style-scope ytd-calendar-date-picker" slot="dropdown-trigger" aria-labelledby="date-label-text" on-tap="openPicker">\n    <div id="date-label-text" class="style-scope ytd-calendar-date-picker">[[dateText]]</div>\n    <yt-icon id="label-icon" icon="EXPAND" class="style-scope ytd-calendar-date-picker">\n    </yt-icon>\n  </tp-yt-paper-button>\n</tp-yt-paper-menu-button>\n\n<tp-yt-paper-dialog id="calendar-dialog" dynamic-align="" horizontal-align="left" vertical-align="top" vertical-offset="44" class="style-scope ytd-calendar-date-picker">\n  <div id="control-area" class="style-scope ytd-calendar-date-picker">\n    <form id="date-input" on-submit="onFormSubmit" autocomplete="off" class="style-scope ytd-calendar-date-picker">\n      <tp-yt-paper-input-container aria-label="Enter date" invalid="[[errorMessage]]" no-label-float="" use-v2-underline="" on-input="onDateTextChange" class="style-scope ytd-calendar-date-picker">\n        <tp-yt-iron-input slot="input" bind-value="[[dateText]]" class="style-scope ytd-calendar-date-picker">\n          <input id="textbox" autofocus="" class="style-scope ytd-calendar-date-picker"></tp-yt-iron-input>\n        <tp-yt-paper-input-error slot="add-on" class="style-scope ytd-calendar-date-picker">[[errorMessage]]</tp-yt-paper-input-error>\n      </tp-yt-paper-input-container>\n    </form>\n    <div id="month-controller" class="style-scope ytd-calendar-date-picker">\n      <yt-icon-button id="prev-month" label="[[previousMonthLabel]]" on-tap="scrollToPrevMonth" class="style-scope ytd-calendar-date-picker">\n        <yt-icon icon="yt-icons:chevron_left" class="style-scope ytd-calendar-date-picker"></yt-icon>\n      </yt-icon-button>\n      <yt-icon-button id="next-month" label="[[nextMonthLabel]]" on-tap="scrollToNextMonth" class="style-scope ytd-calendar-date-picker">\n        <yt-icon icon="yt-icons:chevron_right" class="style-scope ytd-calendar-date-picker"></yt-icon>\n      </yt-icon-button>\n    </div>\n  </div>\n  <div class="calendar-container style-scope ytd-calendar-date-picker">\n    <div class="calendar-header style-scope ytd-calendar-date-picker">\n      <template is="dom-repeat" items="[[renderData.daysOfWeekLabel]]" as="dayLabel" class="style-scope ytd-calendar-date-picker">\n        <span class="calendar-header-day style-scope ytd-calendar-date-picker">[[dayLabel]]</span>\n      </template>\n    </div>\n    <tp-yt-iron-list id="calendar-main" as="month" items="[[renderData.months]]" tabindex="-1" class="style-scope ytd-calendar-date-picker">\n      <template class="style-scope ytd-calendar-date-picker">\n        <div class="calendar-month style-scope ytd-calendar-date-picker">\n          <div class$="calendar-month-label [[month.monthLabelExtraCssClass]] style-scope ytd-calendar-date-picker">\n            [[month.monthLabel]]\n          </div>\n          <template is="dom-repeat" items="[[month.weeks]]" as="week" class="style-scope ytd-calendar-date-picker">\n            <div class="calendar-week style-scope ytd-calendar-date-picker">\n              <template is="dom-repeat" items="[[week]]" as="day" class="style-scope ytd-calendar-date-picker">\n                <span class$="calendar-day [[day.extraCssClass]] [[day.debugClass]] style-scope ytd-calendar-date-picker" on-tap="handleDayClick">\n                  [[day.date.day]]\n                </span>\n              </template> \n            </div>\n          </template> \n        </div>\n      </template>\n    </tp-yt-iron-list> \n  </div>\n</tp-yt-paper-dialog>\n');a.content.insertBefore(_.w().content.cloneNode(!0),
a.content.firstChild);return XkJ=a},{mode:2});var TSO=_.AR("UTC_OFFSET_FORMAT",{utc_offset:(new yC("Z")).format(new Date)}),d21=(new Date).getTimezoneOffset()*-60,WNI=new Date,ode,U2E=mH(WNI.getTimezoneOffset());ode=sQv(KZO(U2E,WNI));var D2e=_.AR("LOCAL_TIME_GMT_LABEL",{gmt_text:ode.replace("+0","+").replace("-0","-").replace(":00","")}),t5=function(){var a=_.G.apply(this,arguments)||this;a.selectedTimeIndex=0;a.selectedTimezoneIndex=0;a.timeOfDayOptions=$2o;return a};
_.b(t5,_.G);_.Z=t5.prototype;_.Z.configureRendererStamper=function(){return{"data.dismissButton":{id:"cancel-button-wrapper",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.Z.updateDefaultSelectedValue=function(){if(this.timeZones&&this.timeZones.length&&this.data){var a=thI();if(this.data.defaultTimeSec===void 0||isNaN(Number(this.data.defaultTimeSec)))this.calendarConfig=a,this.selectedTimeIndex=0;else{var z=BU$(Number(this.data.defaultTimeSec),this.timeZones[0]);this.calendarConfig=Object.assign({},a,{selectedDate:z.date});this.selectedTimeIndex=this.timeOfDayOptions.findIndex(function(I){return I.secondsSinceMidnight===z.secondsSinceMidnight})}this.selectedTimezoneIndex=
0;
this.selectedDate=this.calendarConfig.selectedDate}};
_.Z.onDatePicked=function(a){this.selectedDate=a.detail};
_.Z.onCancelButtonTap=function(){this.data&&this.data.dismissButton&&_.PA(this.hostElement,"ytd-date-time-selection-cancelled")};
_.Z.onDateTimeTimezoneChange=function(){if(this.selectedTimezone&&this.selectedTime&&this.selectedDate){var a=this.selectedDate;a=new Date(a.year,a.month,a.day);_.PA(this.hostElement,"ytd-date-time-selection-update",Math.floor(a.getTime()/1E3)+this.selectedTime.secondsSinceMidnight-(Number(this.selectedTimezone.utcOffsetSec)+a.getTimezoneOffset()*60))}};
_.Z.getTimezoneFormat=function(a){return a.localizedDisplayText?a.localizedDisplayText:_.AR("TIMEZONE_FORMAT",{utc_offset_text:""+a.localizedUtcOffset,city_name:""+a.localizedName})};
_.Z.updateSelectedTimeIndexFromBinding=function(a){this.selectedTimeIndex=a.detail.value};
_.Z.updateSelectedTimezoneIndexFromBinding=function(a){this.selectedTimezoneIndex=a.detail.value};
_.eH.Object.defineProperties(t5.prototype,{timeZones:{configurable:!0,enumerable:!0,get:function(){if(this.data){var a=this.data.timezoneOptions;var z={name:"Etc/Unknown",localizedName:_.AR("LOCAL_TIME_LABEL"),localizedUtcOffset:TSO,utcOffsetSec:""+d21,localizedDisplayText:D2e};a?a.length&&a[0].name!==z.name&&(a[0].localizedDisplayText||(z.localizedDisplayText=""),a.unshift(z)):a=[z];return a}}},
selectedTimezone:{configurable:!0,enumerable:!0,get:function(){if(this.timeZones&&!(this.selectedTimezoneIndex>=this.timeZones.length))return this.timeZones[this.selectedTimezoneIndex]}},
selectedTime:{configurable:!0,enumerable:!0,get:function(){return this.timeOfDayOptions[this.selectedTimeIndex]}}});
t5.prototype.onDateTimeTimezoneChange=t5.prototype.onDateTimeTimezoneChange;t5.prototype.onDatePicked=t5.prototype.onDatePicked;t5.prototype.updateDefaultSelectedValue=t5.prototype.updateDefaultSelectedValue;_.L([_.x(),_.p("design:type",Object)],t5.prototype,"data",void 0);_.L([_.x(),_.p("design:type",Object)],t5.prototype,"calendarConfig",void 0);_.L([_.x(),_.p("design:type",Object)],t5.prototype,"selectedDate",void 0);_.L([_.x(),_.p("design:type",Object)],t5.prototype,"selectedTimeIndex",void 0);
_.L([_.x(),_.p("design:type",Object)],t5.prototype,"selectedTimezoneIndex",void 0);_.L([_.A3("#time-listbox"),_.p("design:type",Object)],t5.prototype,"timeListBox",void 0);_.L([_.A3("#timezone-listbox"),_.p("design:type",Object)],t5.prototype,"timezoneListBox",void 0);_.L([_.Q(_.u4.YtRendererstamperBehavior),_.p("design:type",Object)],t5.prototype,"rendererStamperBehavior",void 0);_.L([_.S("data.timezoneOptions"),_.p("design:type",Object),_.p("design:paramtypes",[])],t5.prototype,"timeZones",null);
_.L([_.Fe("data","timeZones"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],t5.prototype,"updateDefaultSelectedValue",null);_.L([_.S("selectedTimezoneIndex","timeZones"),_.p("design:type",Object),_.p("design:paramtypes",[])],t5.prototype,"selectedTimezone",null);_.L([_.S("selectedTimeIndex"),_.p("design:type",Object),_.p("design:paramtypes",[])],t5.prototype,"selectedTime",null);
_.L([_.gz("ytd-calendar-date-selected"),_.p("design:type",Function),_.p("design:paramtypes",[CustomEvent]),_.p("design:returntype")],t5.prototype,"onDatePicked",null);_.L([_.O8("selectedTimezone","selectedTime","selectedDate"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],t5.prototype,"onDateTimeTimezoneChange",null);_.L([_.U({disableElementRegistration:!0,is:"ytd-date-time-picker-renderer"})],t5);
_.D(t5,"ytd-date-time-picker-renderer",function(){if(VS1!==void 0)return VS1;var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-date-time-picker-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="cancel-button-wrapper" hidden="[[!data.dismissButton]]" on-tap="onCancelButtonTap" class="style-scope ytd-date-time-picker-renderer">\n</div>\n<div id="hint" hidden="[[!data.header]]" class="style-scope ytd-date-time-picker-renderer">\n  <yt-formatted-string text="[[data.header]]" class="style-scope ytd-date-time-picker-renderer"></yt-formatted-string>\n</div>\n<div id="picker-component" class="style-scope ytd-date-time-picker-renderer">\n  <ytd-calendar-date-picker calendar-config="[[calendarConfig]]" class="style-scope ytd-date-time-picker-renderer"></ytd-calendar-date-picker>\n  <tp-yt-paper-menu-button dynamic-align="" horizontal-align="left" vertical-align="top" vertical-offset="44" class="style-scope ytd-date-time-picker-renderer">\n    <tp-yt-paper-button id="time-picker" class="dropdown-trigger style-scope ytd-date-time-picker-renderer" slot="dropdown-trigger" aria-labelledby="time-label-text">\n      <div id="time-label-text" class="style-scope ytd-date-time-picker-renderer">[[selectedTime.text]]</div>\n      <yt-icon id="label-icon" icon="EXPAND" class="style-scope ytd-date-time-picker-renderer">\n      </yt-icon>\n    </tp-yt-paper-button>\n    <tp-yt-paper-listbox id="time-listbox" class="dropdown-content style-scope ytd-date-time-picker-renderer" slot="dropdown-content" selected="[[selectedTimeIndex]]" on-selected-changed="updateSelectedTimeIndexFromBinding">\n      <template is="dom-repeat" items="[[timeOfDayOptions]]" class="style-scope ytd-date-time-picker-renderer">\n        <tp-yt-paper-item class="style-scope ytd-date-time-picker-renderer">\n          [[item.text]]\n        </tp-yt-paper-item>\n      </template>\n    </tp-yt-paper-listbox>\n  </tp-yt-paper-menu-button>\n  <tp-yt-paper-menu-button dynamic-align="" horizontal-align="left" vertical-align="top" vertical-offset="44" class="style-scope ytd-date-time-picker-renderer">\n    <tp-yt-paper-button id="timezone-picker" class="dropdown-trigger style-scope ytd-date-time-picker-renderer" slot="dropdown-trigger" aria-labelledby="timezone-label-text">\n      <div id="timezone-label-text" class="style-scope ytd-date-time-picker-renderer">[[getTimezoneFormat(selectedTimezone)]]</div>\n      <yt-icon id="label-icon" icon="EXPAND" class="style-scope ytd-date-time-picker-renderer">\n      </yt-icon>\n    </tp-yt-paper-button>\n    <tp-yt-paper-listbox id="timezone-listbox" class="dropdown-content style-scope ytd-date-time-picker-renderer" slot="dropdown-content" selected="[[selectedTimezoneIndex]]" on-selected-changed="updateSelectedTimezoneIndexFromBinding">\n      <template is="dom-repeat" items="[[timeZones]]" class="style-scope ytd-date-time-picker-renderer">\n        <tp-yt-paper-item class="style-scope ytd-date-time-picker-renderer">\n          [[getTimezoneFormat(item)]]\n        </tp-yt-paper-item>\n      </template>\n    </tp-yt-paper-listbox>\n  </tp-yt-paper-menu-button>\n</div>\n');
a.content.insertBefore(_.w().content.cloneNode(!0),a.content.firstChild);return VS1=a},{mode:1});var RKO;var uv=function(){var a=_.G.apply(this,arguments)||this;a.boundOnTapDismissButton=function(){a.dismissTapHandler()};
a.dismissButtonOverrides={size:"XS"};return a};
_.b(uv,_.G);uv.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}}}}}};
uv.prototype.dismissTapHandler=function(){_.PA(this.hostElement,"yt-backstage-attachment-dismissed")};
uv.prototype.computeAttachmentType=function(a){return a?a.backstageImageRenderer?"image":a.videoRenderer?"video":"none":"none"};
_.L([_.Q(_.k.YtRendererBehavior),_.p("design:type",Object)],uv.prototype,"ytRendererBehavior",void 0);_.L([_.Q(_.u4.YtRendererstamperBehavior),_.p("design:type",Object)],uv.prototype,"ytRendererstamperBehavior",void 0);_.L([_.x(),_.p("design:type",Object)],uv.prototype,"attachmentPreview",void 0);_.L([_.x(),_.p("design:type",Object)],uv.prototype,"dismissButton",void 0);_.L([_.x(),_.p("design:type",Object)],uv.prototype,"boundOnTapDismissButton",void 0);
_.L([_.x(),_.p("design:type",Object)],uv.prototype,"dismissButtonOverrides",void 0);_.L([_.x({reflectToAttribute:!0,readOnly:!0,computed:"computeAttachmentType(attachmentPreview)"}),_.p("design:type",String)],uv.prototype,"attachmentType",void 0);_.L([_.U({disableElementRegistration:!0,is:"ytd-backstage-dismissable-attachment"})],uv);
_.D(uv,"ytd-backstage-dismissable-attachment",function(){if(RKO!==void 0)return RKO;var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-backstage-dismissable-attachment--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e\n<div id="attachment-preview-container" class="style-scope ytd-backstage-dismissable-attachment">\n  <div id="attachment-preview" class="style-scope ytd-backstage-dismissable-attachment"></div>\n  <div id="dismiss-button" class="style-scope ytd-backstage-dismissable-attachment"></div>\n</div>\n');a.content.insertBefore(_.w().content.cloneNode(!0),
a.content.firstChild);return RKO=a},{mode:1});var LNw;var Ed=function(){var a=_.G.apply(this,arguments)||this;a.selectedVideoId=void 0;a.picker=void 0;a.dismissButtonOverrides={size:"XS"};a.actionMap={"yt-add-video-preview-action":"handleAddVideoPreviewAction"};return a};
_.b(Ed,_.G);_.Z=Ed.prototype;_.Z.onServiceRequestCompleted=function(a){a.stopPropagation()};
_.Z.handleAddVideoPreviewAction=function(a){a=this.get("addVideoPreviewAction",a);this.onGetVideoPreviewSuccess(a)};
_.Z.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}}}}}};
_.Z.onLaunchVideoPicker=function(a){var z=this,I=_.cd(this.get("addVideoLinkAction.title",a)),J=this.get("addVideoLinkAction.onePickHostId",a);this.getVideoPreviewCommand=this.get("addVideoLinkAction.onVideoSelectCommand",a);J&&(this.picker||(I=_.Eje(_.S3i(J).setTitle(I).addView(Clj()).addView(Z1i()),function(r){z.onPickVideo(r)}),this.get("addVideoLinkAction.hideYourYoutubeVideos",a)||I.addView("youtube"),this.picker=I.build()),this.picker.setVisible(!0))};
_.Z.onPickVideo=function(a){if(a)if(a.action==="cancel")_.PA(this.hostElement,"yt-video-link-button-cancel");else if(a.action==="picked"){a=a.docs;if(!a||a.length===0)this.onGetVideoPreviewError("No valid docs in response");this.selectedVideoId=(a=(a==null?0:a.length)?a[0]:void 0)?a.id:void 0;this.setVideoPreview()}};
_.Z.setVideoPreview=function(){var a=this;if(this.getVideoPreviewCommand)this.ytComponentBehavior.resolveCommand(this.getVideoPreviewCommand,{form:{video_id:this.selectedVideoId},onError:function(){a.onGetVideoPreviewError("Error executing command")}});
else this.onGetVideoPreviewError("Video preview command not set.")};
_.Z.onGetVideoPreviewSuccess=function(a){if(a&&a.videoPreview&&a.cancelButton)this.videoPreview=a.videoPreview,this.cancelButton=a.cancelButton,_.PA(this.hostElement,"yt-video-link-selected",{videoId:this.selectedVideoId});else this.onGetVideoPreviewError("Empty data from ajax")};
_.Z.onGetVideoPreviewError=function(){this.cancel()};
_.Z.cancel=function(){this.videoPreview=this.cancelButton=this.selectedVideoId=void 0;_.PA(this.hostElement,"yt-video-link-cancel")};
_.Z.isValid=function(){return!(!this.videoPreview||!this.selectedVideoId)};
Ed.prototype.onServiceRequestCompleted=Ed.prototype.onServiceRequestCompleted;_.L([_.Q(_.u4.YtRendererstamperBehavior),_.p("design:type",Object)],Ed.prototype,"ytRendererstamperBehavior",void 0);_.L([_.Q(_.Hc.YtActionHandlerBehavior),_.p("design:type",Object)],Ed.prototype,"ytActionHandlerBehavior",void 0);_.L([_.Q(_.k.YtRendererBehavior),_.p("design:type",Object)],Ed.prototype,"ytRendererBehavior",void 0);
_.L([_.Q(_.Ms.YtComponentBehavior),_.p("design:type",Object)],Ed.prototype,"ytComponentBehavior",void 0);_.L([_.x(),_.p("design:type",Object)],Ed.prototype,"videoPreview",void 0);_.L([_.x(),_.p("design:type",Object)],Ed.prototype,"cancelButton",void 0);_.L([_.x(),_.p("design:type",Object)],Ed.prototype,"getVideoPreviewCommand",void 0);_.L([_.x(),_.p("design:type",Object)],Ed.prototype,"dismissButtonOverrides",void 0);
_.L([_.gz("yt-service-request-completed"),_.p("design:type",Function),_.p("design:paramtypes",[CustomEvent]),_.p("design:returntype")],Ed.prototype,"onServiceRequestCompleted",null);_.L([_.U({disableElementRegistration:!0,is:"ytd-backstage-video-link-attachment"})],Ed);
_.D(Ed,"ytd-backstage-video-link-attachment",function(){if(LNw!==void 0)return LNw;var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-backstage-video-link-attachment--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="video-preview" class="style-scope ytd-backstage-video-link-attachment"></div>\n<div id="cancel-button" on-tap="cancel" class="style-scope ytd-backstage-video-link-attachment"></div>\n');a.content.insertBefore(_.w().content.cloneNode(!0),
a.content.firstChild);return LNw=a},{mode:1});var lDw;var pk1;var wkl;var BT=function(){return _.G.apply(this,arguments)||this};
_.b(BT,_.G);BT.prototype.dataChanged=function(){this.active=!1};
BT.prototype.onTap=function(){_.PA(this.hostElement,"yt-select-emoji-suggestion",this.data)};
BT.prototype.identity=function(a){return a};
_.eH.Object.defineProperties(BT.prototype,{imageSrc:{configurable:!0,enumerable:!0,get:function(){var a,z,I,J;if((a=this.data)==null?0:(z=a.image)==null?0:(I=z.thumbnails)==null?0:(J=I[0])==null?0:J.url)return a=this.data.image.thumbnails[0].url,a.startsWith("data:image/svg+xml")?QI(a):_.XG(a)}}});
BT.prototype.dataChanged=BT.prototype.dataChanged;_.L([_.x(),_.p("design:type",Object)],BT.prototype,"data",void 0);_.L([_.x({reflectToAttribute:!0}),_.p("design:type",Boolean)],BT.prototype,"active",void 0);_.L([_.Fe("data"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],BT.prototype,"dataChanged",null);_.L([_.S("data"),_.p("design:type",Object),_.p("design:paramtypes",[])],BT.prototype,"imageSrc",null);
_.L([_.U({disableElementRegistration:!0,is:"ytd-emoji-suggestion"})],BT);
_.D(BT,"ytd-emoji-suggestion",function(){if(wkl!==void 0)return wkl;var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-emoji-suggestion--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<tp-yt-paper-item active="[[active]]" on-tap="onTap" class="style-scope ytd-emoji-suggestion">\n  <img alt="[[data.alt]]" hidden$="[[!identity(data.image)]]" src$="[[imageSrc]]" author$="[[data.author]]" class="style-scope ytd-emoji-suggestion">\n  [[data.text]]\n</tp-yt-paper-item>\n');a.content.insertBefore(_.w().content.cloneNode(!0),
a.content.firstChild);return wkl=a},{mode:1});var m2E=/.*([:@#].*?)$/,gj=function(){var a=_.G.apply(this,arguments)||this;a.suggestions=[];a.suggestionIndex=-1;a.JSC$15643_lastSuggestionRange=null;return a};
_.b(gj,_.G);_.Z=gj.prototype;_.Z.configureRendererStamper=function(){return{suggestions:{id:"dropdown-content",mapping:{suggestion:"ytd-emoji-suggestion"},reuseComponents:!0}}};
_.Z.getSuggestions=function(a){var z=[],I=Hq1(this.emojiManager,a.substr(0,3));if(I)for(var J in I)if(J.toLocaleLowerCase().indexOf(a)===0){var r=I[J];if(r&&r.emojiId){r=ku(this.emojiManager,r.emojiId);var P=void 0,N=void 0,u=void 0,E=void 0,O=((P=r)==null?0:P.isCustomEmoji)?(N=r)==null?void 0:(u=N.shortcuts)==null?void 0:u[0]:(E=r)==null?void 0:E.emojiId;P=void 0;z.push({suggestion:{image:(P=r)==null?void 0:P.image,alt:O,text:J}});if(z.length>=64)break}}return z?z.sort(function(f,A){return A.suggestion.text<
f.suggestion.text?-1:A.suggestion.text===f.suggestion.text?0:1}):null};
_.Z.insertSuggestion=function(a){_.PA(this.hostElement,"yt-insert-suggestion",{range:this.JSC$15643_lastSuggestionRange,text:a.alt});this.dropdown.opened=!1};
_.Z.updateSuggestionsAtCaret=function(a){this.updateSuggestions(a,this.retrieveTextBeforeRange(a))};
_.Z.offsetStartOfRangeBy=function(a,z){a.startOffset>=z&&a.setStart(a.startContainer,a.startOffset-z)};
_.Z.updateSuggestions=function(a,z){var I=this;this.JSC$15643_lastSuggestionRange&&(this.JSC$15643_lastSuggestionRange.detach(),this.JSC$15643_lastSuggestionRange=null);if((z=m2E.exec(z))&&z.length&&(z=z[z.length-1].toLocaleLowerCase(),z.length>2||z===":_")&&(this.offsetStartOfRangeBy(a,z.length),this.JSC$15643_lastSuggestionRange=a,(a=this.getSuggestions(z))&&a.length)){this.suggestions=a;_.Yv(this,function(){I.dropdownContent.scrollTop=16777216});
this.dropdown.opened?this.dropdown.notifyResize():this.dropdown.opened=!0;this.suggestionIndex=-1;this.changeSuggestionIndex(a.length-1);return}this.dropdown.opened=!1};
_.Z.onKeyDown=function(a){if(this.dropdown.opened)switch(a.key){case "Escape":this.dropdown.opened=!1;a.stopPropagation();break;case "Tab":this.insertSuggestion(this.suggestions[this.suggestionIndex].suggestion);a.preventDefault();break;case "ArrowUp":this.changeSuggestionIndex(this.suggestionIndex-1);a.preventDefault();break;case "ArrowDown":this.changeSuggestionIndex(this.suggestionIndex+1),a.preventDefault()}};
_.Z.onKeyUp=function(a,z){switch(a.key){case "ArrowLeft":case "ArrowRight":this.updateSuggestionsAtCaret(z);break;case "ArrowUp":case "ArrowDown":this.dropdown.opened||this.updateSuggestionsAtCaret(z)}};
_.Z.onKeyPress=function(a){a.key==="Enter"&&this.dropdown.opened&&(this.insertSuggestion(this.suggestions[this.suggestionIndex].suggestion),a.preventDefault())};
_.Z.changeSuggestionIndex=function(a){this.dropdown.opened&&(this.suggestionIndex>=0&&this.suggestionIndex<this.dropdownContent.children.length&&(this.dropdownContent.children[this.suggestionIndex].active=!1),this.suggestionIndex=(a+this.suggestions.length)%this.suggestions.length,a=this.dropdownContent.children[this.suggestionIndex],a.active=!0,this.dropdownContent.scrollTop=a.offsetTop)};
_.Z.retrieveTextBeforeRange=function(a){var z=a.startContainer;return z&&z.nodeType===Node.TEXT_NODE?z.textContent.substr(0,a.startOffset):""};
gj.prototype.onKeyPress=gj.prototype.onKeyPress;gj.prototype.onKeyUp=gj.prototype.onKeyUp;gj.prototype.onKeyDown=gj.prototype.onKeyDown;_.L([_.Q(_.u4.YtRendererstamperBehavior),_.p("design:type",Object)],gj.prototype,"ytRendererstamperBehavior",void 0);_.L([_.x(),_.p("design:type",Array)],gj.prototype,"suggestions",void 0);_.L([_.x(),_.p("design:type",_.mJ)],gj.prototype,"emojiManager",void 0);_.L([_.x(),_.p("design:type",Number)],gj.prototype,"verticalSuggestionsOffset",void 0);
_.L([_.A3("#dropdown"),_.p("design:type",Object)],gj.prototype,"dropdown",void 0);_.L([_.A3("#dropdown-content"),_.p("design:type",HTMLDivElement)],gj.prototype,"dropdownContent",void 0);_.L([_.gz("keydown"),_.p("design:type",Function),_.p("design:paramtypes",[KeyboardEvent]),_.p("design:returntype")],gj.prototype,"onKeyDown",null);_.L([_.gz("keyup"),_.p("design:type",Function),_.p("design:paramtypes",[KeyboardEvent,Range]),_.p("design:returntype")],gj.prototype,"onKeyUp",null);
_.L([_.gz("keypress"),_.p("design:type",Function),_.p("design:paramtypes",[KeyboardEvent]),_.p("design:returntype")],gj.prototype,"onKeyPress",null);_.L([_.U({disableElementRegistration:!0,is:"ytd-emoji-input"})],gj);
_.D(gj,"ytd-emoji-input",function(){if(pk1!==void 0)return pk1;var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-emoji-input--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<slot name="input" class="style-scope ytd-emoji-input"></slot>\n<tp-yt-iron-dropdown id="dropdown" allow-outside-scroll="" no-auto-focus="" vertical-align="bottom" vertical-offset="[[verticalSuggestionsOffset]]" class="style-scope ytd-emoji-input">\n  <div id="dropdown-content" class="dropdown-content style-scope ytd-emoji-input" slot="dropdown-content">\n  </div>\n</tp-yt-iron-dropdown>\n');a.content.insertBefore(_.w().content.cloneNode(!0),
a.content.firstChild);return pk1=a},{mode:2});var yuo;var Od=function(){var a=_.G.apply(this,arguments)||this;a.hasMaxOptions=!1;return a};
_.b(Od,_.G);_.Z=Od.prototype;_.Z.configureRendererStamper=function(){return{"data.addOptionButton":{id:"add-option",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.Z.dataChanged=function(){this.pollOptions=this.setPollOptions(this.data)};
_.Z.setPrefilledChoices=function(a){var z=this;this.set("pollOptions",[]);var I;for(I=0;I<Math.min(a.length,this.data.maxPollOptions);I++)this.push("pollOptions",a[I].substring(0,this.data.maxPollOptionChars));for(;I<this.data.minPollOptions;I++)this.push("pollOptions","");this.hasMaxOptions=I>=this.data.maxPollOptions;_.Yv(this,function(){for(var J=z.pollOptions,r=_.PK(z.hostElement).querySelectorAll(".poll-option-input"),P=0;P<r.length;P++)r[P].value=J[P]})};
_.Z.focusChanged=function(){_.uK(this.hostElement)};
_.Z.onInput=function(){var a=this;_.pM(this,"onInput",function(){a.isValid()?_.PA(a.hostElement,"yt-commentbox-post-enable"):_.PA(a.hostElement,"yt-commentbox-post-disable")},300)};
_.Z.setPollOptions=function(){var a=[],z,I=((z=this.data)==null?0:z.minPollOptions)?this.data.minPollOptions:0;for(z=0;z<I;z++)a.push("");return a};
_.Z.addPollOption=function(){var a=this;_.PA(this.hostElement,"yt-commentbox-post-disable");this.push("pollOptions","");this.data.maxPollOptions&&this.pollOptions.length===this.data.maxPollOptions&&(this.hasMaxOptions=!0);_.GW.addLowPriorityJob(function(){var z;(z=_.PK(a.hostElement).querySelector(".poll-option:last-of-type > .poll-option-input"))==null||z.focus()})};
_.Z.onRemovePollOption=function(a){this.setPollOptionsFromInputs();this.data.minPollOptions&&this.pollOptions.length===this.data.minPollOptions?(this.clearPollOptions(),_.PA(this.hostElement,"yt-poll-attachment-dismiss")):(a=this.repeat.indexForElement(a.target.parentNode),a!==null&&(this.splice("pollOptions",a,1),this.hasMaxOptions=!1,this.areAllOptionsValid()&&(this.repeat.render(),_.PA(this.hostElement,"yt-commentbox-post-enable"))))};
_.Z.isValid=function(){this.setPollOptionsFromInputs();return this.areAllOptionsValid()};
_.Z.areAllOptionsValid=function(){if(this.data.minPollOptionChars)for(var a=0,z=this.pollOptions.length;a<z;a++)if(this.pollOptions[a].length<Number(this.data.minPollOptionChars))return!1;return!0};
_.Z.getPollOptions=function(){return this.pollOptions};
_.Z.setPollOptionsFromInputs=function(){for(var a=_.PK(this.hostElement).querySelectorAll(".poll-option-input"),z=0;z<a.length;z++)this.pollOptions[z]=a[z].value.trim()};
_.Z.clearPollOptions=function(){var a=_.PK(this.hostElement).querySelectorAll(".poll-option-input");a=_.C(a);for(var z=a.next();!z.done;z=a.next())z.value.value="";this.pollOptions=this.setPollOptions(this.data);this.hasMaxOptions=!1};
_.Z.getSimpleString=function(a){return _.cd(a)};
_.Z.updateValueFromBinding=function(a){if(a.target&&this.pollOptions){var z=Array.from(_.PK(this.hostElement).querySelectorAll("tp-yt-paper-input.poll-option-input")).indexOf(a.target);if(z>=0){var I;this.pollOptions[z]=(I=a.detail.value)!=null?I:"";this.notifyPath("pollOptions."+z)}}};
Od.prototype.dataChanged=Od.prototype.dataChanged;_.L([_.Q(_.u4.YtRendererstamperBehavior),_.p("design:type",Object)],Od.prototype,"ytRendererstamperBehavior",void 0);_.L([_.x(),_.p("design:type",Object)],Od.prototype,"data",void 0);_.L([_.x(),_.p("design:type",Array)],Od.prototype,"pollOptions",void 0);_.L([_.x({reflectToAttribute:!0}),_.p("design:type",Object)],Od.prototype,"hasMaxOptions",void 0);_.L([_.x({reflectToAttribute:!0}),_.p("design:type",Boolean)],Od.prototype,"enableCreationBox",void 0);
_.L([_.A3("#repeat"),_.p("design:type",Gz)],Od.prototype,"repeat",void 0);_.L([_.Fe("data"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],Od.prototype,"dataChanged",null);_.L([_.U({disableElementRegistration:!0,is:"ytd-poll-attachment"})],Od);
_.D(Od,"ytd-poll-attachment",function(){if(yuo!==void 0)return yuo;var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-poll-attachment--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="poll-options" class="style-scope ytd-poll-attachment">\n  <template is="dom-repeat" id="repeat" items="[[pollOptions]]" class="style-scope ytd-poll-attachment">\n    <div class="poll-option style-scope ytd-poll-attachment">\n      <yt-icon-button class="remove-button style-scope ytd-poll-attachment" on-click="onRemovePollOption">\n        <yt-icon class="remove-option style-scope ytd-poll-attachment" icon="yt-icons:close"></yt-icon>\n      </yt-icon-button>\n      <tp-yt-paper-input class="poll-option-input style-scope ytd-poll-attachment" char-counter="" maxlength$="[[data.maxPollOptionChars]]" no-label-float="" placeholder="[[getSimpleString(data.optionPlaceholderText)]]" use-v2-underline="" value="[[item]]" on-focused-changed="focusChanged" on-input="onInput" on-value-changed="updateValueFromBinding">\n      </tp-yt-paper-input>\n    </div>\n  </template>\n</div>\n<div id="add-option" hidden="[[hasMaxOptions]]" on-click="addPollOption" class="style-scope ytd-poll-attachment"></div>\n');a.content.insertBefore(_.w().content.cloneNode(!0),
a.content.firstChild);return yuo=a},{mode:2});var kmi;var MSv;var cuw;var Yow;var fX=function(){return _.G.apply(this,arguments)||this};
_.b(fX,_.G);_.eH.Object.defineProperties(fX.prototype,{ariaSelected:{configurable:!0,enumerable:!0,get:function(){return this.focused?"true":null}}});
_.L([_.Q(_.k.YtRendererBehavior),_.p("design:type",Object)],fX.prototype,"rendererBehaviors",void 0);_.L([_.x(),_.p("design:type",Object)],fX.prototype,"data",void 0);_.L([_.x({reflectToAttribute:!0}),_.p("design:type",Boolean)],fX.prototype,"focused",void 0);_.L([_.x({reflectToAttribute:!0}),_.S("focused"),_.p("design:type",Object),_.p("design:paramtypes",[])],fX.prototype,"ariaSelected",null);_.L([_.dz({is:"yt-user-mention-suggestion-renderer",disableElementRegistration:!0})],fX);
_.D(fX,"yt-user-mention-suggestion-renderer",function(){if(Yow===void 0){var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-user-mention-suggestion-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.social.yt_user_mention_suggestion_renderer.yt.user.mention.suggestion.renderer.css.js--\x3e<yt-img-shadow id="thumbnail" thumbnail="[[data.thumbnail]]" class="style-scope yt-user-mention-suggestion-renderer">\n</yt-img-shadow>\n<div id="info" class="style-scope yt-user-mention-suggestion-renderer">\n  <div id="display-name" aria-label="[[data.displayName]]" class="style-scope yt-user-mention-suggestion-renderer">[[data.displayName]]</div>\n  <yt-formatted-string id="channel-info" text="[[data.details]]" class="style-scope yt-user-mention-suggestion-renderer">\n  </yt-formatted-string>\n</div>\n');
a.content.insertBefore(_.w().content.cloneNode(!0),a.content.firstChild);var z=a.content,I=z.insertBefore;cuw===void 0&&(cuw=document.createElement("template"));var J=cuw;I.call(z,J.content.cloneNode(!0),a.content.firstChild);Yow=a}a=Yow;return a},{mode:2});var qoG;var eKv;var A5=function(){var a=_.G.apply(this,arguments)||this;a.focusedSuggestionIndex=-1;return a};
_.b(A5,_.G);_.Z=A5.prototype;_.Z.created=function(){this.ytRendererBehavior.monitorScroll=!0};
_.Z.clearFocusedSuggestion=function(){this.focusedSuggestionIndex=-1;this._setFocusedSuggestionId(void 0)};
_.Z.setFocusedSuggestionIndex=function(a){!this.data||!this.data.suggestions||a<0||a>=this.data.suggestions.length||(this.focusedSuggestionIndex=a,a=this.getSuggestionId(a),this._setFocusedSuggestionId(a))};
_.Z.advanceSuggestion=function(a){this.focusedSuggestionIndex===-1||a!==-1&&a!==1||(this.setFocusedSuggestionIndex(this.focusedSuggestionIndex+a),this.ensureSuggestionVisible(this.focusedSuggestionIndex))};
_.Z.ensureSuggestionVisible=function(a){a=this.getSuggestionId(a);a=_.PK(this.hostElement).querySelector("[id="+a+"]");a!=null&&(a.offsetTop<this.hostElement.scrollTop?a.scrollIntoView(!0):a.offsetTop+a.clientHeight>this.hostElement.scrollTop+this.hostElement.clientHeight&&a.scrollIntoView(!1))};
_.Z.getSuggestionId=function(a){return"user-mention-suggestion-"+a};
_.Z.onSuggestionTap=function(a){var z=_.H(a.model.item,OJG);this.ytRendererBehavior.logExplicitClick(z);_.PA(this.hostElement,"yt-user-mention-suggestion-selected",{data:z,index:a.model.index})};
_.Z.onSuggestionMouseMove=function(a){a.model.index!==this.focusedSuggestionIndex&&this.setFocusedSuggestionIndex(a.model.index)};
_.Z.isSuggestionFocused=function(a,z){return a===z};
_.Z.onDomChange=function(){this.ytRendererBehavior.markDirty()};
_.Z.focusedSuggestionIdChangedForBinding=function(){this.hostElement.dispatchEvent(new _.eY("focused-suggestion-id-changed",this.focusedSuggestionId))};
A5.prototype.focusedSuggestionIdChangedForBinding=A5.prototype.focusedSuggestionIdChangedForBinding;A5.prototype.onDomChange=A5.prototype.onDomChange;_.L([_.Q(_.k.YtRendererBehavior),_.p("design:type",Object)],A5.prototype,"ytRendererBehavior",void 0);_.L([_.x(),_.p("design:type",Object)],A5.prototype,"data",void 0);_.L([_.x(),_.p("design:type",Object)],A5.prototype,"focusedSuggestionIndex",void 0);_.L([_.x({readOnly:!0}),_.p("design:type",String)],A5.prototype,"focusedSuggestionId",void 0);
_.L([_.gz("dom-change"),_.p("design:type",Function),_.p("design:paramtypes",[CustomEvent]),_.p("design:returntype")],A5.prototype,"onDomChange",null);_.L([_.O8("focusedSuggestionId"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],A5.prototype,"focusedSuggestionIdChangedForBinding",null);_.L([_.dz({is:"yt-user-mention-suggestions-dropdown",disableElementRegistration:!0})],A5);
_.D(A5,"yt-user-mention-suggestions-dropdown",function(){if(eKv===void 0){var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-user-mention-suggestions-dropdown--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.social.yt_user_mention_suggestions_dropdown.yt.user.mention.suggestions.dropdown.css.js--\x3e\n<template is="dom-repeat" items="[[data.suggestions]]" index-as="index" notify-dom-change="" class="style-scope yt-user-mention-suggestions-dropdown">\n  <yt-user-mention-suggestion-renderer data="[[item.userMentionSuggestionRenderer]]" focused="[[isSuggestionFocused(index, focusedSuggestionIndex)]]" id$="[[getSuggestionId(index)]]" role="option" on-mousemove="onSuggestionMouseMove" on-tap="onSuggestionTap" class="style-scope yt-user-mention-suggestions-dropdown">\n  </yt-user-mention-suggestion-renderer>\n</template>\n');
a.content.insertBefore(_.w().content.cloneNode(!0),a.content.firstChild);var z=a.content,I=z.insertBefore;qoG===void 0&&(qoG=document.createElement("template"));var J=qoG;I.call(z,J.content.cloneNode(!0),a.content.firstChild);eKv=a}a=eKv;return a},{mode:2});var sd=function(){var a=_.G.apply(this,arguments)||this;a.suggestionsResponse=null;a.activeMention=null;a.selectionChangeListener=a.onSelectionChange.bind(a);a.handlesEnabled=_.K("enable_handles_in_mention_suggest_posts");a.handlesInMentionSuggestionsEnabled=_.K("handles_in_mention_suggest_posts");a.zeroPrefixMentionSuggestionEnabled=_.K("enable_zero_prefix_mention_suggestion_web");a.pendingQuery=null;a.flowNonce=null;return a};
_.b(sd,_.G);_.Z=sd.prototype;_.Z.beforeRegister=function(){this.ironA11yKeysBehavior.keyBindings={up:"focusPreviousSuggestion",down:"focusNextSuggestion","tab enter":"selectFocusedSuggestion",esc:"cancelActiveMention"}};
_.Z.attached=function(){document.addEventListener("selectionchange",this.selectionChangeListener)};
_.Z.detached=function(){document.removeEventListener("selectionchange",this.selectionChangeListener)};
_.Z.hasSuggestions=function(a){return!!(a&&a.suggestions&&a.suggestions.length>0)};
_.Z.onInput=function(){var a=this;if(this.suggestionsEndpoint){if(!this.activeMention&&(this.maybeStartSuggest(),!this.zeroPrefixMentionSuggestionEnabled))return;if(this.activeMention){this.updateActiveMention();var z=this.suggestionsResponse!=null&&!this.hasSuggestions(this.suggestionsResponse),I=this.activeMention.JSC$11245_getText().slice(-1)===" ",J=this.activeMention.JSC$11245_getText().slice(-2,-1)===" ",r="@\ufe6b\uff20+\ufe62\uff0b".indexOf(this.activeMention.JSC$11245_getText().slice(-2,
-1))>=0;r=this.zeroPrefixMentionSuggestionEnabled&&r;if(this.activeMention.isCollapsed()||(z||J||r)&&I)this.cancelActiveMention();else{var P=this.activeMention.JSC$11245_getText().substring(1).trim();this.logGELEvent("USER_MENTION_AUTO_COMPLETE_BOX_EVENT_TYPE_INPUT_TEXT_UPDATED");_.pM(this,"requestSuggestions",function(){a.requestSuggestions(P)},100)}}}};
_.Z.onServiceRequestSent=function(a){a.stopPropagation()};
_.Z.onServiceRequestCompleted=function(a){a.stopPropagation();a=a.detail.data;a.query&&(!this.pendingQuery||this.pendingQuery!==a.query)||!this.zeroPrefixMentionSuggestionEnabled&&a.query===""||this.zeroPrefixMentionSuggestionEnabled&&this.activeMention==null||(this.pendingQuery=null,this.suggestionsResponse=a,this.hasSuggestions(a)&&this.dropdown.setFocusedSuggestionIndex(0))};
_.Z.onServiceRequestError=function(a){a.stopPropagation()};
_.Z.onUserMentionSuggestionSelected=function(a){this.selectSuggestion(a.detail.data,a.detail.index)};
_.Z.onSelectionChange=function(){if(this.activeMention){var a=_.B0(),z=this.activeMention.JSC$11245_containsRange(a);a=a&&this.containsHelper(this.dropdown,a.getContainer());z||a||this.cancelActiveMention()}};
_.Z.containsHelper=function(a,z){var I;if(((I=window.ShadyDOM)==null?void 0:I.noPatch)===!0)return a.contains(z);for(;z;){if(z===a)return!0;z=z instanceof ShadowRoot?z.host:z.parentNode}return!1};
_.Z.maybeStartSuggest=function(){var a=_.B0();if(a&&a.isCollapsed()){var z=a.JSC$11245_getStartNode(),I=a.JSC$11245_getStartOffset();if(z instanceof Text&&!(I<1)){var J=z.textContent;!(J=J&&J.charAt(I-1))||"@\ufe6b\uff20+\ufe62\uff0b".indexOf(J)<0||(this.activeMention=_.Le(z,I-1,a.JSC$11245_getEndNode(),a.JSC$11245_getEndOffset()),this.flowNonce=GX(16),this.logGELEvent("USER_MENTION_AUTO_COMPLETE_BOX_EVENT_TYPE_MENTION_FLOW_STARTED"))}}};
_.Z.updateActiveMention=function(){if(this.activeMention){var a=_.B0();a&&a.isCollapsed()&&(this.activeMention=_.Le(this.activeMention.JSC$11245_getStartNode(),this.activeMention.JSC$11245_getStartOffset(),a.JSC$11245_getEndNode(),a.JSC$11245_getEndOffset()))}};
_.Z.requestSuggestions=function(a){if(this.activeMention){var z={suggestions_query:a};this.pendingQuery=a;_.N$(this.hostElement,[this.suggestionsEndpoint,z])}};
_.Z.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()};
_.Z.focusPreviousSuggestion=function(a){this.hasSuggestions(this.suggestionsResponse)&&(this.dropdown.advanceSuggestion(-1),a.preventDefault())};
_.Z.focusNextSuggestion=function(a){this.hasSuggestions(this.suggestionsResponse)&&(this.dropdown.advanceSuggestion(1),a.preventDefault())};
_.Z.selectFocusedSuggestion=function(a){if(this.hasSuggestions(this.suggestionsResponse)){var z=this.suggestionsResponse.suggestions[this.dropdown.focusedSuggestionIndex];_.H(z,OJG)&&(this.selectSuggestion(_.H(z,OJG),this.dropdown.focusedSuggestionIndex),a.preventDefault())}};
_.Z.selectSuggestion=function(a,z){if(a){var I=this.activeMention;if(I){var J=document.createElement("a");this.handlesInMentionSuggestionsEnabled&&a.handle?_.dc(J,"\u00a0\u2068@"+a.handle+"\u2069\u00a0"):this.handlesEnabled?_.dc(J,"\u00a0"+a.displayName+"\u00a0"):_.dc(J,"\u00a0@"+a.displayName+"\u00a0");_.Ua(J,"/channel/"+a.channelId);J.classList.add("yt-formatted-string","yt-simple-endpoint");J.setAttribute("spellcheck","false");I.isCollapsed()||I.JSC$11245_removeContents();I.insertNode(J,!0);a=
document.createTextNode(" ");J.parentNode.insertBefore(a,J.nextSibling);window.getSelection().collapse(a,1);z={suggestionSelected:{suggestionIndex:z}};if(this.zeroPrefixMentionSuggestionEnabled){var r;z.suggestionSelected.isZeroPrefix=((r=this.suggestionsResponse)==null?void 0:r.query)===""}this.logGELEvent("USER_MENTION_AUTO_COMPLETE_BOX_EVENT_TYPE_SUGGESTION_SELECTED",z);this.cancelActiveMention();_.PA(this.hostElement,"yt-mention-inserted")}}};
_.Z.getPositionTarget=function(a){return a&&a.getBrowserRangeObject()};
_.Z.onDomChange=function(){this.ironDropdown.refit();this.logGELEvent("USER_MENTION_AUTO_COMPLETE_BOX_EVENT_TYPE_CONTENT_UPDATED")};
_.Z.onFocusedSuggestionIdChanged=function(a){var z=_.GqI(this.hostElement)[0];z&&(a.detail.value?z.setAttribute("aria-activedescendant",a.detail.value):z.removeAttribute("aria-activedescendant"))};
_.Z.onDropdownOpened=function(){this.logGELEvent("USER_MENTION_AUTO_COMPLETE_BOX_EVENT_TYPE_BOX_OPENED")};
_.Z.logGELEvent=function(a,z){a={eventType:a,flowNonce:this.flowNonce,source:"USER_MENTION_AUTO_COMPLETE_SOURCE_BACKSTAGE_POST"};z&&(a=Object.assign(a,z));_.x0("userMentionAutoCompleteBoxEvent",a)};
sd.prototype.onDomChange=sd.prototype.onDomChange;sd.prototype.onUserMentionSuggestionSelected=sd.prototype.onUserMentionSuggestionSelected;sd.prototype.onServiceRequestError=sd.prototype.onServiceRequestError;sd.prototype.onServiceRequestCompleted=sd.prototype.onServiceRequestCompleted;sd.prototype.onServiceRequestSent=sd.prototype.onServiceRequestSent;sd.prototype.onInput=sd.prototype.onInput;_.L([_.Q(_.V_),_.p("design:type",Object)],sd.prototype,"ironA11yKeysBehavior",void 0);
_.L([_.x(),_.p("design:type",Object)],sd.prototype,"suggestionsEndpoint",void 0);_.L([_.x(),_.p("design:type",Object)],sd.prototype,"suggestionsResponse",void 0);_.L([_.x(),_.p("design:type",Object)],sd.prototype,"activeMention",void 0);_.L([_.A3("#dropdown"),_.p("design:type",Object)],sd.prototype,"dropdown",void 0);_.L([_.A3("#iron-dropdown"),_.p("design:type",Object)],sd.prototype,"ironDropdown",void 0);
_.L([_.gz("input"),_.p("design:type",Function),_.p("design:paramtypes",[Event]),_.p("design:returntype")],sd.prototype,"onInput",null);_.L([_.gz("yt-service-request-sent"),_.p("design:type",Function),_.p("design:paramtypes",[CustomEvent]),_.p("design:returntype")],sd.prototype,"onServiceRequestSent",null);_.L([_.gz("yt-service-request-completed"),_.p("design:type",Function),_.p("design:paramtypes",[CustomEvent]),_.p("design:returntype")],sd.prototype,"onServiceRequestCompleted",null);
_.L([_.gz("yt-service-request-error"),_.p("design:type",Function),_.p("design:paramtypes",[CustomEvent]),_.p("design:returntype")],sd.prototype,"onServiceRequestError",null);_.L([_.gz("yt-user-mention-suggestion-selected"),_.p("design:type",Function),_.p("design:paramtypes",[CustomEvent]),_.p("design:returntype")],sd.prototype,"onUserMentionSuggestionSelected",null);
_.L([_.gz("dom-change"),_.p("design:type",Function),_.p("design:paramtypes",[CustomEvent]),_.p("design:returntype")],sd.prototype,"onDomChange",null);_.L([_.dz({is:"yt-user-mention-autosuggest-input",disableElementRegistration:!0})],sd);
_.D(sd,"yt-user-mention-autosuggest-input",function(){if(MSv===void 0){var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-user-mention-autosuggest-input--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.social.yt_user_mention_autosuggest_input.yt.user.mention.autosuggest.input.css.js--\x3e<slot name="input" class="style-scope yt-user-mention-autosuggest-input"></slot>\n<tp-yt-iron-dropdown id="iron-dropdown" horizontal-align="auto" no-auto-focus="" no-overlap="true" opened="[[hasSuggestions(suggestionsResponse)]]" position-target="[[getPositionTarget(activeMention)]]" on-iron-overlay-opened="onDropdownOpened" class="style-scope yt-user-mention-autosuggest-input">\n  <yt-user-mention-suggestions-dropdown id="dropdown" class="dropdown-content style-scope yt-user-mention-autosuggest-input" slot="dropdown-content" data="[[suggestionsResponse]]" role="listbox" on-focused-suggestion-id-changed="onFocusedSuggestionIdChanged">\n  </yt-user-mention-suggestions-dropdown>\n</tp-yt-iron-dropdown>\n');a.content.insertBefore(_.w().content.cloneNode(!0),
a.content.firstChild);var z=a.content,I=z.insertBefore;kmi===void 0&&(kmi=document.createElement("template"));var J=kmi;I.call(z,J.content.cloneNode(!0),a.content.firstChild);MSv=a}a=MSv;return a},{mode:2});var nX=null;
_.vK({is:"ytd-commentbox",_template:function(){if(lDw!==void 0)return lDw;var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-commentbox--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e\n<div id="identity-chip" hidden="[[computeHideIdentityChipRenderer_(isLoading, zeroStepChannelCreationRenderer)]]" class="style-scope ytd-commentbox"></div>\n<div id="thumbnail-input-row" class="style-scope ytd-commentbox">\n  <yt-img-shadow id="author-thumbnail" height="[[computeAuthorThumbnailDimension_(isReply, isBackstageComment)]]" hidden="[[computeHideAuthorThumbnail_(isLoading, zeroStepChannelCreationRenderer)]]" thumbnail="[[data.authorThumbnail]]" width="[[computeAuthorThumbnailDimension_(isReply, isBackstageComment)]]" class="style-scope ytd-commentbox">\n  </yt-img-shadow>\n  <div id="main" hidden="[[isLoading]]" class="style-scope ytd-commentbox">\n    <div id="divider-line" class="style-scope ytd-commentbox"></div>\n    \n    <div id="creation-box" class$="[[computeCreationBoxClass_(isInputFocus_)]] style-scope ytd-commentbox" hidden="[[hasPollOrQuizRendererInEditDialog_]]">\n      <tp-yt-paper-input-container id="input-container" focused="{{isInputFocus_}}" no-label-float="" use-v2-underline="" class="style-scope ytd-commentbox">\n        <div slot="after-input" class="paper-input-input style-scope ytd-commentbox">\n          <ytd-emoji-input id="emoji" emoji-manager="[[emojiManager]]" vertical-suggestions-offset="[[verticalSuggestionsOffset]]" class="style-scope ytd-commentbox">\n            <yt-user-mention-autosuggest-input slot="input" suggestions-endpoint="[[data.userMentionSuggestionsEndpoint]]" class="style-scope ytd-commentbox">\n              <yt-formatted-string id="contenteditable-textarea" slot="input" enable-content-editable="true" maxlength="10000" override-aria-label="[[getSimpleString(placeholderFormattedText_)]]" plaintext-only="true" required="true" split-lines="1" text="[[data.editableText]]" on-dragenter="preventDefault_" on-dragleave="preventDefault_" on-dragover="preventDefault_" on-drop="plaintextDrop_" on-focus="focus" on-input="onInput_" on-keyup="onKeyUp_" on-paste="onPaste_" class="style-scope ytd-commentbox"></yt-formatted-string>\n            </yt-user-mention-autosuggest-input>\n          </ytd-emoji-input>\n          <div id="external-links-banner" hidden="[[!isExternalLinksBannerDisplayed]]" class="style-scope ytd-commentbox">\n            <yt-formatted-string text="[[data.advancedTierFeatures.externalLinks.verificationBannerMessage]]" class="style-scope ytd-commentbox">\n            </yt-formatted-string>\n            <ytd-button-renderer id="verification-button" data="[[data.advancedTierFeatures.externalLinks.verificationButton.buttonRenderer]]" class="style-scope ytd-commentbox">\n            </ytd-button-renderer>\n          </div>\n        </div>\n        <ytd-backstage-dismissable-attachment id="dismissable-attachment" slot="after-input" attachment-preview="[[prefilledContent_]]" dismiss-button="[[data.attachmentDismissButton]]" hidden="[[computeHideDismissableAttachment_(prefilledAttachment_)]]" class="style-scope ytd-commentbox">\n        </ytd-backstage-dismissable-attachment>\n        <div id="attachment-preview" slot="after-input" class="style-scope ytd-commentbox"></div>\n        <div id="image-select" class="paper-input-input style-scope ytd-commentbox" hidden="[[!hasImage_]]" slot="after-input"></div>\n        <ytd-backstage-video-link-attachment id="video-link-attachment" slot="after-input" hidden="[[!hasVideo_]]" class="style-scope ytd-commentbox">\n        </ytd-backstage-video-link-attachment>\n      </tp-yt-paper-input-container>\n    </div>\n    <ytd-poll-attachment id="poll-attachment" data="[[data.pollEditorInfo]]" hidden="[[!hasPoll_]]" class="style-scope ytd-commentbox">\n    </ytd-poll-attachment>\n    <ytd-backstage-image-poll-editor-renderer id="image-poll-attachment" data="[[data.imagePollEditorRenderer.imagePollEditorRenderer]]" editor-info="[[data.imagePollEditorInfo]]" hidden="[[!hasImagePoll_]]" class="style-scope ytd-commentbox">\n    </ytd-backstage-image-poll-editor-renderer>\n    <ytd-backstage-quiz-editor-renderer id="quiz-attachment" editor-info="[[data.quizEditorInfo]]" hidden="[[!hasQuiz_]]" class="style-scope ytd-commentbox">\n  </ytd-backstage-quiz-editor-renderer>\n    <slot name="repost-preview" class="style-scope ytd-commentbox"></slot>\n    <div id="poll-preview-edit-dialog" hidden="[[!hasPollOrQuizRendererInEditDialog_]]" class="style-scope ytd-commentbox">\n      <yt-formatted-string text="[[data.editableText]]" class="style-scope ytd-commentbox"></yt-formatted-string>\n      <div id="poll-preview" class="style-scope ytd-commentbox"></div>\n    </div>\n    <div id="footer" class="style-scope ytd-commentbox">\n      <span id="emoji-button" on-tap="onEmojiButtonTap_" hidden="[[!isEmojiButtonDisplayed]]" class="style-scope ytd-commentbox"></span>\n      <div id="attachments" hidden="[[computeHideAttachmentButtons_(data, addedAttachment, prefilledAttachment_, errorMessage_)]]" class="style-scope ytd-commentbox">\n        <template is="dom-repeat" items="[[attachmentButtonIds]]" as="buttonId" class="style-scope ytd-commentbox">\n          <ytd-button-renderer id="[[buttonId]]" data="[[getButtonRenderer(data, buttonId)]]" class="style-scope ytd-commentbox">\n          </ytd-button-renderer>\n        </template>\n      </div>\n      <div id="inline-scheduling-panel" hidden="[[!inlineSchedulePanel_]]" class="style-scope ytd-commentbox"></div>\n      <div id="footer-text" class="style-scope ytd-commentbox">\n        <yt-formatted-string id="footer-message" class$="[[computeFooterMessageClass_(alertMessage_, errorMessage_)]] style-scope ytd-commentbox" hidden="[[computeFooterMessageHidden_(alertMessage_, errorMessage_)]]" text="[[computeFooterMessage_(alertMessage_, errorMessage_)]]">\n        </yt-formatted-string>\n        <yt-formatted-string id="zero-step-footer-text" hidden="[[!zeroStepChannelCreationRenderer.footerText]]" text="[[zeroStepChannelCreationRenderer.footerText]]" class="style-scope ytd-commentbox">\n        </yt-formatted-string>\n      </div>\n      <div id="access-restrictions-selector" class="style-scope ytd-commentbox"></div>\n      <span id="char-count" hidden="[[!charLimit_]]" class="style-scope ytd-commentbox">[[charCount_]]/[[charLimit_]]</span>\n      <div id="buttons" class$="[[computeSubmitButtonClass_(dropdownSchedulePanel_, data.postOptionsMenu)]] style-scope ytd-commentbox">\n        <ytd-button-renderer id="cancel-button" data="[[data.cancelButton.buttonRenderer]]" on-tap="onCancel_" class="style-scope ytd-commentbox">\n        </ytd-button-renderer>\n        <ytd-button-renderer id="submit-button" data="[[computeSubmitButton_(data, scheduleButton_)]]" disabled="[[submitButtonDisabled]]" overrides="[[computeSubmitButtonOverride(data, submitButtonDisabled, dropdownSchedulePanel_)]]" on-tap="onSubmit_" class="style-scope ytd-commentbox">\n        </ytd-button-renderer>\n        <div id="option-menu" hidden="[[dropdownSchedulePanel_]]" class="style-scope ytd-commentbox">\n          <ytd-menu-renderer data="[[data.postOptionsMenu.menuRenderer]]" disable-upgrade="[[!data.postOptionsMenu.menuRenderer]]" hidden="[[!data.postOptionsMenu.menuRenderer]]" icon="EXPAND" no-ink-on-dropdown-button="" three-dot-button-override="[[computeThreeDotButtonOverride(submitButtonDisabled)]]" tonal-override="[[modern]]" class="style-scope ytd-commentbox">\n          </ytd-menu-renderer>\n        </div>\n      </div>\n    </div>\n    <div id="scheduling-panel" hidden="[[!dropdownSchedulePanel_]]" class="style-scope ytd-commentbox"></div>\n    <div id="emojis" hidden="[[!isEmojiPickerDisplayed]]" class="style-scope ytd-commentbox">\n      <span id="emoji-picker" class="style-scope ytd-commentbox"></span>\n    </div>\n  </div>\n  <tp-yt-paper-spinner-lite active="[[isLoading]]" class="style-scope ytd-commentbox"></tp-yt-paper-spinner-lite>\n</div>\n');a.content.insertBefore(_.w().content.cloneNode(!0),
a.content.firstChild);return lDw=a},
behaviors:[_.NtI.YtHostElementBehavior,_.V_,_.Hc.YtActionHandlerBehavior,_.Ms.YtComponentBehavior,_.u4.YtRendererstamperBehavior,_.LMO.YtdReduxBehavior],keyBindings:{left:"leftKeyPressed_",right:"rightKeyPressed_",end:"endKeyPressed_",backspace:"maybeBackspaceChip_","delete":"maybeDeleteChip_","ctrl+enter meta+enter":"submitIfNotBackstagePost_","ctrl+backspace alt+backspace":"maybeBackspaceChipWordMode_","ctrl+delete alt+delete":"maybeDeleteChipWordMode_"},properties:{data:{type:Object,observer:"dataChanged_"},
placeholderFormattedText_:{type:Object,computed:"computePlaceholderText_(data, addedAttachment, prefilledAttachment_)"},aadcGuidelinesState_:{type:Object,selectorArgs:["data.aadcGuidelinesStateEntityKey"],selector:function(a,z){return _.Bd(a.entities,"aadcGuidelinesStateEntityPayload",z)}},
dismissData_:{type:Object,value:null},commentboxStateKey_:{type:String,value:void 0},commentboxState_:{type:Object,selectorArgs:["commentboxStateKey_"],selector:function(a,z){return _.Bd(a.entities,"commentboxStateEntity",z)},
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 _.MT}},
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:_.K("web_modern_buttons")},swatcheroo:{type:Boolean,reflectToAttribute:!0,value:_.K("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",_.BK(this,this.onTap_));this.emojiInput=this.$.emoji},
isLoadingChanged_:function(a){this.fire(a?"yt-commentbox-loading-start":"yt-commentbox-loading-end")},
dataChanged_:function(a){this.set("submitButtonDisabled",void 0);this.clear();a&&this.computeIsEmojiButtonDisplayed_(a)&&(a=this.$$("#emoji-picker > yt-emoji-picker-renderer"))&&a.updateEmojiCategories()},
observePrefilledImage_:function(a,z,I){this.isValidPrefilledImage_(a,z,I)&&(this.prefilledAttachment_="image",this.prefilledImageData_=z,this.submitButtonDisabled=!1)},
observePrefilledVideo_:function(a,z){this.isValidPrefilledVideo_(a,z)&&(this.prefilledAttachment_="video")},
observePrefilledPoll_:function(a){a&&a.pollData&&a.pollData.choices&&(this.addedAttachment="poll",this.$["poll-attachment"].setPrefilledChoices(a.pollData.choices))},
attached:function(){this.$["input-container"].getElementsByClassName("underline")[0].style.height=0;_.AX();this.focus()},
detached:function(){document.removeEventListener("tap",_.BK(this,this.onTap_))},
created:function(){this.scheduledPublishTimeSec_=this.prefilledImageData_=this.imagePreviewCoordinates_=this.taggedVideoId_=this.selectedVideoId_=void 0;document.addEventListener("selectionchange",this.onSelectionChange_);this.textRequiresScrolling=!1;this.TEST_ONLY=void 0},
onEmojiButtonTap_:function(){this.isEmojiPickerDisplayed=!this.isEmojiPickerDisplayed;this.$$("#emoji-picker > yt-emoji-picker-renderer").selected=!this.$$("#emoji-picker > yt-emoji-picker-renderer").selected},
onEmojiSelect_:function(a){a=a.detail;a=a.isCustomEmoji?a.shortcuts[0]:a.emojiId;var z=this.getInputRange_().cloneRange();this.insertTextWithEmojis_(z,a);this.maybeUpdateTextDirection_()},
getInputRange_:function(){var a=_.B0();if(a){a=a.getBrowserRangeObject();for(var z=a.commonAncestorContainer;z;){if(z===this.getEditableTextArea_())return a;z=z.parentNode}}a=this.getEditableTextArea_();a=_.Ro(a,a.childNodes.length);a.select();return a.getBrowserRangeObject()},
insertTextWithEmojis_:function(a,z,I){(z=this.emojiManager.createDocumentFragment(z,!0,!1,I===void 0?!0:I))&&z.childNodes.length!==0&&(a.collapsed||a.deleteContents(),I=z.lastChild,a.insertNode(z),_.D1l(I).select(),this.getInputRange_().collapse(!1),this.getEditableTextArea_().normalize(),this.submitButtonDisabled=!1)},
onSelectionChange_:function(){var a=_.B0();if(a){var z=a.JSC$11245_getStartNode(),I=a.JSC$11245_getEndNode();if(O8I(z)&&O8I(I)){var J=a.JSC$11245_getStartOffset(),r;if(_.Bb&&z.nodeType===Node.ELEMENT_NODE&&(r=_.DEw(z)))_.Ro(r,0).select();else{r=tQ(z)?z:_.dJ(z,tQ);var P=tQ(I)?I:_.dJ(I,tQ);if(r||P)if(a.isCollapsed()){if(z.nodeType===Node.TEXT_NODE){a=!0;J===z.length&&(a=!1);if(nX==="end"||nX==="right")a=!1;z=z.parentNode;a=[].concat(_.ih(z.parentNode.childNodes)).indexOf(z)+(a?0:1);_.Ro(z.parentNode,
a).select()}}else r?r.previousSibling&&r.previousSibling.length>0?_.Le(I,a.JSC$11245_getEndOffset(),r.previousSibling,r.previousSibling.length-1).select():(z=document.createTextNode("\u200b"),r.parentNode.insertBefore(z,r),_.Le(I,a.JSC$11245_getEndOffset(),z,0).select()):P&&(P.nextSibling&&P.nextSibling.length>0?_.Le(z,a.JSC$11245_getStartOffset(),P.nextSibling,1).select():(I=document.createTextNode("\u200b"),P.parentNode.insertBefore(I,P.nextSibling),_.Le(z,a.JSC$11245_getStartOffset(),I,I.length).select()));
nX=null}}else nX=null}else nX=null},
leftKeyPressed_:function(){nX="left"},
rightKeyPressed_:function(){nX="right"},
endKeyPressed_:function(){nX="end"},
maybeDeleteChip_:function(){var a=F0I(!0);if(a){var z=_.B0(),I=z.JSC$11245_getStartNode();z=z.JSC$11245_getStartOffset();_.dn(I,z,a,a.childNodes.length).select()}},
maybeBackspaceChip_:function(){var a=F0I(!1);if(a){var z=_.B0(),I=z.JSC$11245_getStartNode();z=z.JSC$11245_getStartOffset();_.dn(I,z,a,0).select()}},
maybeBackspaceChipWordMode_:function(a){var z=_.B0();if(z.isCollapsed()){var I=z.JSC$11245_getStartNode();z=z.JSC$11245_getStartOffset();var J=H8$(I,z,!0);J&&(_.dn(I,z,J,0).select(),document.execCommand("delete"),a.preventDefault(),a.stopImmediatePropagation())}},
maybeDeleteChipWordMode_:function(a){var z=_.B0();if(z.isCollapsed()){var I=z.JSC$11245_getStartNode();z=z.JSC$11245_getStartOffset();var J=H8$(I,z,!1);J&&(_.dn(I,z,J,J.childNodes.length).select(),document.execCommand("delete"),a.preventDefault(),a.stopImmediatePropagation())}},
onTap_:function(a){if(!a.defaultPrevented&&(a.currentTarget.tagName==="YTD-COMMENTBOX"&&tQ(a.target)&&a.preventDefault(),this.isEmojiPickerDisplayed)){var z=this.$$("#emojis"),I=this.$$("#emoji-button"),J=this.getEditableTextArea_();if((a=a.path?a.path:a.composedPath&&a.composedPath())&&!a.includes(z)&&!a.includes(J)&&!a.includes(I))this.onEmojiButtonTap_()}},
isValidPrefilledImage_:function(a,z,I){return a==="BACKSTAGE_POST_DIALOG_PURPOSE_CREATE"&&z!==void 0&&z.encryptedBlobId!==null&&z.sourceExternalVideoId!==null&&I!==void 0&&I.backstageImageRenderer!==null},
isValidPrefilledVideo_:function(a,z){return a==="BACKSTAGE_POST_DIALOG_PURPOSE_CREATE"&&!!z&&!!z.videoRenderer&&!!z.videoRenderer.videoId},
isValidPrefilledAttachment_:function(a,z,I){return this.isValidPrefilledImage_(a,z,I)||this.isValidPrefilledVideo_(a,I)},
dismissPrefilledContent_:function(){this.prefilledImageData_=void 0;this.prefilledAttachment_="none"},
clear:function(){this.errorMessage_=this.alertMessage_=null;this.taggedVideoId_=void 0;if(_.K("enable_multi_image_post_creation")){var a=this.$$("ytd-backstage-multi-image-select-renderer");a&&a.hasImages()&&a.cancel()}else(a=this.$$("ytd-backstage-image-select-renderer"))&&this.hasImage_&&a.cancel();(a=this.$["poll-attachment"])&&this.hasPoll_&&a.clearPollOptions();(a=this.$["image-poll-attachment"])&&this.hasImagePoll_&&a.resetPollOptions();(a=this.$["quiz-attachment"])&&this.hasQuiz_&&a.resetQuizOptions();
(a=this.$["video-link-attachment"])&&this.hasVideo_&&a.cancel();(a=this.$["access-restrictions-selector"].firstElementChild)&&a.reset();this.prefilledAttachment_!=="none"&&this.dismissPrefilledContent_();this.addedAttachment="none";this.prefilledImageData_=this.scheduledPublishTimeSec_=this.imagePreviewCoordinates_=this.selectedVideoId_=void 0;this.submitButtonDisabled=!0;this.setTextAreaValue_(this.data.editableText);this.previousText_=this.getTextAreaValue().trim();this.updateCharCount_();this.isExternalLinksBannerDisplayed=
this.isEmojiPickerDisplayed=this.receivedFocusPreviously_=!1;if(this.data&&this.data.purpose==="BACKSTAGE_POST_DIALOG_PURPOSE_CREATE")this.onDateTimeSelectionCancelled_()},
getEditableTextArea_:function(){return _.PK(this.hostElement).querySelector("#contenteditable-textarea").getRoot().root.node},
getEditableFormattedString_:function(){return _.PK(this.hostElement).querySelector("#contenteditable-textarea")},
getTextAreaValue:function(){return this.convertHrefToAtMentionAndImgToEmoji_(this.getEditableTextArea_(),!0)},
getTextLength:function(){return this.convertHrefToAtMentionAndImgToEmoji_(this.getEditableTextArea_(),!1).trim().length},
convertHrefToAtMentionAndImgToEmoji_:function(a,z){a=AB3(a,this.emojiManager,z).cloneNode(!0);for(z=a.firstChild;z;)if(z.nodeType!==1)z=z.nextSibling;else switch(z.tagName){case "BR":var I=_.xB();_.kJE(I,z);z=I.nextSibling;break;case "DIV":(I=z.lastChild)&&z.nextSibling&&_.XO(_.xB(),I);z.previousSibling&&(z.previousSibling.nodeType===1||z.previousSibling.nodeType===3&&!z.previousSibling.textContent.endsWith("\n"))&&_.$B(_.xB(),z);I&&I.nodeName==="BR"&&_.fo(I);I=z;z.hasChildNodes()?(z=z.firstChild,
_.MIw(I)):(z=z.nextSibling,_.fo(I));break;default:z=z.nextSibling}return b83(a)},
onAddImageError_:function(a){a.stopPropagation();this.errorMessage_=_.Mo(a.detail)},
setTextAreaValue_:function(a){a||(a="");var z=this.getEditableFormattedString_();z.text="";this.getEditableTextArea_().innerText="";typeof a==="string"&&(a={runs:[{text:a}]});z.text=a},
focus:function(){this.$["author-thumbnail"].markDirty();this.getEditableTextArea_().focus();this.maybeSetCursorAtEnd_();this.maybeUpdateTextDirection_();nX=null},
maybeSetCursorAtEnd_:function(){if(!this.receivedFocusPreviously_){var a=this.getEditableTextArea_();a&&(_.Ro(a,a.childNodes.length).select(),this.receivedFocusPreviously_=!0)}},
maybeUpdateTextDirection_:function(){if(_.Xw("HTML_DIR")==="rtl"){var a=this.getEditableTextArea_(),z=this.getTextAreaValue()!==""?"auto":"rtl";a.setAttribute("dir",z)}},
maybeUpdateExternalLinksBanner_:function(){!this.hasExternalLinksAccess_&&this.computePostHasExternaLink_()?this.isExternalLinksBannerDisplayed=!0:this.isExternalLinksBannerDisplayed=!1},
computePostHasExternaLink_:function(){var a;return tv1((a=this.$["quiz-attachment"])==null?void 0:a.getExplanationText())||tv1(this.getTextAreaValue().trim())},
handleInputEvent_:function(){var a=null;if(this.isEmojiButtonDisplayed){var z=this.getInputRange_();z&&(a=this.emojiInput.retrieveTextBeforeRange(z))}this.insertText_(a,!0);this.updateCharCount_();this.setSubmitButton_();a=this.getEditableTextArea_();this.isBackstagePost&&(this.textRequiresScrolling=a.scrollHeight>a.clientHeight,this.maybeUpdateExternalLinksBanner_());this.maybeHeightChanged()},
maybeHeightChanged:function(){var a=52+this.getEditableTextArea_().offsetHeight;this.fire("yt-commentbox-resize",{height:a})},
onInput_:function(){this.inputEventSupported_=!0;this.handleInputEvent_()},
onKeyUp_:function(){this.inputEventSupported_||this.handleInputEvent_()},
updateCharCount_:function(){this.charCount_=this.getTextLength();this.aboveCharLimit_=!!this.charLimit_&&this.charCount_>this.charLimit_},
onPaste_:function(a){if(this.isEmojiButtonDisplayed)this.onPasteEmoji_(a)},
onPasteEmoji_:function(a){a.preventDefault();a.stopImmediatePropagation();a=a.clipboardData.getData("text/plain");this.insertText_(a,!1,!1)},
insertText_:function(a,z,I){z=z===void 0?!1:z;I=I===void 0?!0:I;this.maybeUpdateTextDirection_();if(this.isEmojiButtonDisplayed&&a){var J=this.getInputRange_().cloneRange();this.emojiManager&&J&&(z&&this.emojiInput.offsetStartOfRangeBy(J,a.length),this.insertTextWithEmojis_(J,a,I),fzE(this.getEditableTextArea_().lastChild)||(J=this.getInputRange_().cloneRange()),J&&(this.emojiInput.updateSuggestions(J,a),this.updateSuggestionOffset_(J)))}},
setSubmitButton_:function(){if(this.data){var a=this.data&&this.data.purpose==="BACKSTAGE_POST_DIALOG_PURPOSE_EDIT",z=this.data&&this.data.editableText&&this.data.purpose!=="BACKSTAGE_POST_DIALOG_PURPOSE_CREATE";if(a||z){var I=this.getTextAreaValue().trim();z=I===this.previousText_;I=!I||this.aboveCharLimit_;a&&this.data&&this.data.backstageAttachment&&(this.data.backstageAttachment.backstageImageRenderer||this.data.backstageAttachment.postMultiImageRenderer)&&(I=this.aboveCharLimit_);this.submitButtonDisabled=
z||I||!this.getTextLength();a&&_.K("enable_post_scheduling")&&(this.submitButtonDisabled=z&&!this.scheduledPublishTimeSec_||I)}else this.submitButtonDisabled=!this.isValidInput_()}},
onSubmitButtonEnable_:function(){this.setSubmitButton_()},
onSubmitButtonDisable_:function(){this.submitButtonDisabled=!0},
getSimpleString:_.cd,computeCreationBoxClass_:function(a){return a?"focused":"not-focused"},
computeFooterMessageClass_:function(a,z){return z?"footer-error-message":"footer-alert-message"},
computeFooterMessage_:function(a,z){return z?z:a},
computeFooterMessageHidden_:function(a,z){return!z&&!a},
computePlaceholderText_:function(a,z,I){return(I==="video"||I==="image")&&(a==null?0:a.prefilledPlaceholderText)?a==null?void 0:a.prefilledPlaceholderText:z==="poll"||z==="image-poll"?a==null?void 0:a.pollPostPlaceholderText:z==="quiz"?a==null?void 0:a.quizPostPlaceholderText:z==="image"?a==null?void 0:a.imagePostPlaceholderText:a==null?void 0:a.placeholderText},
computeHideAttachmentButtons_:function(a,z,I,J){return a===void 0?!1:J&&this.getSimpleString(J)===this.getSimpleString(a.rateLimitErrorMessage)?!0:z!=="none"||I!=="none"||!a.videoLinkButton&&!a.pollButton&&!a.imagePollButton&&!a.quizButton&&!a.imageButton},
computeHideDismissableAttachment_:function(a){return a!=="image"&&a!=="video"},
computeHasVideo_:function(a){return a==="video"},
computeHasImage_:function(a){return a==="image"},
computeHasPoll_:function(a){return a==="poll"},
computeHasImagePoll_:function(a){return a==="image-poll"},
computeHasQuiz_:function(a){return a==="quiz"},
computeHasPollOrQuizRendererInEditDialog_:function(a){return a&&a.backstageAttachment?a.purpose==="BACKSTAGE_POST_DIALOG_PURPOSE_EDIT"&&!(!a.backstageAttachment.quizRenderer&&!a.backstageAttachment.pollRenderer):!1},
computePrefilledContent_:function(a){if(this.isValidPrefilledAttachment_(a.purpose,a.prefilledImageData,a.backstageAttachment))return a.backstageAttachment},
computeEditAttachment_:function(a){if(this.computePrefilledContent_(a)===void 0)return a.backstageAttachment},
computeAuthorThumbnailDimension_:function(a,z){return a&&!z?24:40},
computeImageUploadEndpoint_:function(a){return this.get("imageButton.buttonRenderer.navigationEndpoint.backstageImageUploadEndpoint",a)},
computeRateLimitErrorCommands_:function(a){var z,I;return a==null?void 0:(z=a.advancedTierFeatures)==null?void 0:(I=z.rateLimit)==null?void 0:I.rateLimitCommands},
computeIsBackstageComment_:function(a){return!(!a||a!=="COMMENT_DIALOG_AVATAR_SIZE_TYPE_BACKSTAGE_COMMENT")},
computeServiceEndpoint_:function(a){return this.get("submitButton.buttonRenderer.serviceEndpoint",a)||this.get("replyButton.buttonRenderer.serviceEndpoint",a)||this.get("postButton.buttonRenderer.serviceEndpoint",a)},
computeSubmitButtonOverride:function(){if(_.K("web_modern_buttons")){var a,z;return{segmentedPosition:this.dropdownSchedulePanel_||!((a=this.data)==null?0:(z=a.postOptionsMenu)==null?0:z.menuRenderer)?void 0:"start",type:"filled",style:"call-to-action",state:this.submitButtonDisabled?"disabled":"active"}}},
computeThreeDotButtonOverride:function(){if(_.K("web_modern_buttons"))return{segmentedPosition:"end",type:"filled",style:"call-to-action",state:this.submitButtonDisabled?"disabled":"active"}},
computeSubmitButton_:function(a,z){a=this.get("submitButton.buttonRenderer",a)||this.get("replyButton.buttonRenderer",a)||this.get("postButton.buttonRenderer",a);z&&(a=z);a&&(a=Object.assign({},a),a.serviceEndpoint=void 0,a.isDisabled=this.submitButtonDisabled);return a},
computeHasExternalLinksAccess_:function(a){if(_.K("enable_rfa_external_links")){var z,I,J;return(J=a==null?void 0:(z=a.advancedTierFeatures)==null?void 0:(I=z.externalLinks)==null?void 0:I.allowExternalLinks)!=null?J:!0}return!0},
computeIsEmojiButtonDisplayed_:function(a){return a.emojiButton&&a.emojiPicker&&a.emojiPicker.emojiPickerRenderer&&a.emojiPicker.emojiPickerRenderer.categories?a.emojiPicker.emojiPickerRenderer.categories.find(function(z){return z.emojiPickerCategoryRenderer?z.emojiPickerCategoryRenderer.emojiIds&&z.emojiPickerCategoryRenderer.emojiIds.length>0:z.emojiPickerUpsellCategoryRenderer?z.emojiPickerUpsellCategoryRenderer.emojis&&z.emojiPickerUpsellCategoryRenderer.emojis.length>0:!1}):!1},
computeCharLimit_:function(a){return a.charLimit?a.charLimit:null},
computeDropdownSchedulingPanel_:function(a,z){if(a==="BACKSTAGE_POST_DIALOG_PURPOSE_CREATE"&&z)return z},
computeInlineSchedulingPanel_:function(a,z){if(a==="BACKSTAGE_POST_DIALOG_PURPOSE_EDIT"&&z)return z},
computeHideAuthorThumbnail_:function(a,z){return a||this.computeUseIdentityChip_(z)},
computeHideIdentityChipRenderer_:function(a,z){return a||!this.computeUseIdentityChip_(z)},
computeUseIdentityChip_:function(a){return!!a&&!!a.identityChipRenderer},
getSharedPostId_:function(){return this.data.backstageAttachment&&this.data.backstageAttachment.postRenderer&&this.data.backstageAttachment.postRenderer.postId?this.data.backstageAttachment.postRenderer.postId:void 0},
onYtNavigate_:function(a){var z,I,J,r;(a==null?0:(z=a.detail)==null?0:(I=z.endpoint)==null?0:I.ypcGetOffersEndpoint)||(a==null?0:(J=a.detail)==null?0:(r=J.endpoint)==null?0:r.ypcOffersEndpoint)?(a.stopPropagation(),_.N$(this,[a.detail.endpoint])):this.get("detail.endpoint.backstageImageUploadEndpoint",a)&&(a.stopPropagation(),this.addedAttachment="image",this.submitButtonDisabled=!0)},
onVideoLinkSelected_:function(a){this.addedAttachment="video";this.selectedVideoId_=a.detail.videoId},
commentboxStateEntityChanged_:function(a){var z=this;(a==null?void 0:a.state)=="COMMENTBOX_STATE_INITIAL"?(this.clear(),this.fire("yt-commentbox-dismiss",this.dismissData_),this.dismissData_=null):(a==null?void 0:a.state)=="COMMENTBOX_STATE_WRITING"&&Promise.resolve().then(function(){z.focus()})},
onYtServiceRequestSent_:function(a,z){if(z.actions)for(a=_.C(z.actions),z=a.next();!z.done;z=a.next())z.value.createPollAction&&(this.submitButtonDisabled=!0)},
onYtServiceRequestCompleted_:function(a){this.isLoading=!1;var z=this.get("detail.actions.0.showErrorAction.errorMessage.messageRenderer.text",a),I,J,r,P=a==null?void 0:(I=a.detail)==null?void 0:(J=I.data)==null?void 0:(r=J.actionResult)==null?void 0:r.commentboxStateEntityKey;if(z)this.errorMessage_=z;else if(P){var N;this.dismissData_=a==null?void 0:(N=a.detail)==null?void 0:N.data;this.commentboxStateKey_=P}else{this.clear();var u;this.fire("yt-commentbox-dismiss",a==null?void 0:(u=a.detail)==
null?void 0:u.data)}},
onYtServiceRequestError_:function(a){a.stopPropagation();this.isLoading=!1;var z,I;if(((z=this.data)==null?void 0:z.purpose)==="BACKSTAGE_POST_DIALOG_PURPOSE_EDIT"||((I=this.data)==null?void 0:I.purpose)==="BACKSTAGE_POST_DIALOG_PURPOSE_CREATE")if(z=this.get("detail.error.args",a)||[],z.length>1&&z[1].message){this.handlePostsServiceRequestError_(z[1].message);return}(a=this.get("detail.error.message",a))?this.errorMessage_=this.data.errorMessage||_.Mo(a):(this.clear(),this.fire("yt-commentbox-dismiss"))},
handlePostsServiceRequestError_:function(a){if(_.K("enable_rfa_rate_limits")&&this.rateLimitErrorCommands)for(var z=_.C(this.rateLimitErrorCommands),I=z.next();!I.done;I=z.next())if(I=I.value,I.errorLabel===a){_.fw(I.command,this.hostElement);return}this.errorMessage_=_.Mo(a)},
submitIfNotBackstagePost_:function(a){if(!this.isBackstagePost)this.onSubmit_(a)},
onSubmit_:function(a){var z=this,I,J,r,P,N,u,E,O,f,A,n,F,h,v,d;return _.t(function(W){switch(W.nextAddress){case 1:a.stopPropagation();if(!z.serviceEndpoint||!z.isValidInput_())return W.return();if(z.shouldShowPostAadcNotice_())return z.showPostAadcNotice_(),W.return();if(z.shouldShowCommentAadcNotice_())return z.showCommentAadcNotice_(),W.return();if(!(z.$$("ytd-backstage-multi-image-select-renderer")&&z.hasImage_&&_.K("enable_multi_image_post_creation"))){W.jumpTo(2);break}I=z.$$("ytd-backstage-multi-image-select-renderer");
return W.yield(I.getAllUploadStatuses(),3);case 3:J=W.yieldResult;if(!J)return W.return();r=_.C(J);for(P=r.next();!P.done;P=r.next())if(N=P.value,N.encryptedBlobId===void 0)return z.isLoading=!1,E=u=void 0,z.errorMessage_=(E=(u=z.imageUploadEndpoint_)==null?void 0:u.imageEditor.backstageMultiImageSelectRenderer.uploadFailureError)!=null?E:null,W.return();return W.return(z.submitForm_(void 0,void 0,void 0,void 0,I.images,z.taggedVideoId_));case 2:if(!z.hasImagePoll_||!z.$["image-poll-attachment"]){W.jumpTo(4);
break}return W.yield(z.$["image-poll-attachment"].getAllUploadStatuses(),5);case 5:O=W.yieldResult;if(!O)return W.return();f=_.C(O);for(A=f.next();!A.done;A=f.next())if(n=A.value,!n.encryptedBlobId)return z.isLoading=!1,F=void 0,z.errorMessage_=(F=z.data.errorMessage)!=null?F:null,W.return();case 4:v=(h=z.$$("ytd-backstage-image-select-renderer"))&&h.uploadPromise(),d=z.getSharedPostId_(),v?v.then(function(){z.submitForm_.apply(z,_.ih(_.dO.apply(0,arguments)))}).catch(function(l){z.isLoading=!1;
z.errorMessage_=_.Mo(l.message)}):z.selectedVideoId_?z.submitForm_(void 0,z.selectedVideoId_):z.prefilledAttachment_==="image"?z.submitForm_(z.prefilledImageData_.encryptedBlobId,void 0,void 0,z.prefilledImageData_.sourceExternalVideoId,void 0,z.taggedVideoId_):z.prefilledAttachment_==="video"?z.submitForm_(void 0,z.data.backstageAttachment.videoRenderer.videoId):d?z.submitForm_(void 0,void 0,d):z.taggedVideoId_!==void 0?z.submitForm_(void 0,void 0,void 0,void 0,void 0,z.taggedVideoId_):z.submitForm_(),
_.nu(W)}})},
openSchedulingPanel:function(a){a&&a.scheduleButton&&a.scheduleButton.buttonRenderer&&(this.scheduleButton_=a.scheduleButton.buttonRenderer);a&&a.dateTimePicker&&this.set("data.schedulingDateTimePicker",a.dateTimePicker)},
openImagePollComponent:function(){this.addedAttachment="image-poll";this.$["image-poll-attachment"]&&this.$["image-poll-attachment"].resetPollOptions()},
openQuizComponent:function(){this.addedAttachment="quiz";this.$["quiz-attachment"]&&this.$["quiz-attachment"].resetQuizOptions()},
onCancel_:function(a){a.stopPropagation();this.clear();this.fire("yt-commentbox-dismiss")},
onPrefilledContentDismissed_:function(a){a.stopPropagation();this.dismissPrefilledContent_();this.setSubmitButton_();this.getEditableTextArea_().focus()},
onInsertMention_:function(){this.updateCharCount_()},
onQuizExplanationUpdated_:function(){this.maybeUpdateExternalLinksBanner_()},
onImageAlert_:function(a){a.stopPropagation();a.detail.alertMessage&&(this.alertMessage_=a.detail.alertMessage)},
onImageSelected_:function(a){a.stopPropagation();this.setSubmitButton_()},
onImagesSelected_:function(a){a.stopPropagation();this.errorMessage_=null;this.setSubmitButton_()},
onImagePreviewCoordinatesUpdated_:function(a){a.stopPropagation();this.imagePreviewCoordinates_=JSON.stringify(a.detail);this.setSubmitButton_()},
onImagePreviewReposition_:function(a){a.stopPropagation();this.imagePreviewCoordinates_=void 0;this.submitButtonDisabled=!0},
onVideoLinkButtonCancel_:function(){this.getEditableTextArea_().focus()},
onAddVideoLink:function(a){var z=this.$["video-link-attachment"];z&&z.onLaunchVideoPicker(a)},
onAttachmentDismiss_:function(a){a.stopPropagation();this.addedAttachment="none";this.alertMessage_=this.errorMessage_=null;this.imagePreviewCoordinates_=this.selectedVideoId_=void 0;this.setSubmitButton_();this.getEditableTextArea_().focus()},
isValidInput_:function(){if(this.prefilledAttachment_==="image"&&!this.prefilledImageData_||this.prefilledAttachment_==="video"&&!this.data.backstageAttachment.videoRenderer.videoId||this.addedAttachment==="image"&&_.K("enable_multi_image_post_creation")&&(!this.$$("ytd-backstage-multi-image-select-renderer")||!this.$$("ytd-backstage-multi-image-select-renderer").hasImages())||!(this.addedAttachment!=="image"||_.K("enable_multi_image_post_creation")||this.$$("ytd-backstage-image-select-renderer")&&
this.$$("ytd-backstage-image-select-renderer").hasPreview&&this.imagePreviewCoordinates_)||this.addedAttachment==="poll"&&this.$["poll-attachment"]&&!this.$["poll-attachment"].isValid())return!1;var a;if(this.addedAttachment==="image-poll"&&((a=this.$["image-poll-attachment"])==null||!a.isValid()))return!1;var z;if(this.addedAttachment==="quiz"&&((z=this.$["quiz-attachment"])==null||!z.isValid())||this.addedAttachment==="video"&&this.$["video-link-attachment"]&&!this.$["video-link-attachment"].isValid()||
this.aboveCharLimit_||this.dropdownSchedulePanel_&&!this.scheduledPublishTimeSec_)return!1;a=!1;this.data&&this.data.purpose==="BACKSTAGE_POST_DIALOG_PURPOSE_EDIT"&&this.data.backstageAttachment&&(this.data.backstageAttachment.backstageImageRenderer||this.data.backstageAttachment.postMultiImageRenderer)&&(a=!0);if(this.addedAttachment==="image"||this.prefilledAttachment_==="image")a=!0;return a||!!this.getTextAreaValue().trim()},
submitForm_:function(a,z,I,J,r,P){var N=this.getTextAreaValue().trim(),u={};this.data&&this.data.purpose==="BACKSTAGE_POST_DIALOG_PURPOSE_EDIT"&&N===this.previousText_&&(N=void 0);N!==void 0&&(u.comment_text=N);this.isLoading=!0;P!=void 0&&(u.tagged_video_id=P);a?(u.image_blob_id=a,this.imagePreviewCoordinates_&&(u.image_preview_coordinates=this.imagePreviewCoordinates_)):z?u.attached_video_id=z:I?u.shared_post_id=I:r&&r.length>0&&(u.images_data=r.map(function(E){return{encryptedBlobId:E.encryptedBlobId,
previewCoordinates:E.previewCoordinates}}));
J&&(u.source_video_id=J);this.data.accessRestrictionsSelector&&this.data.accessRestrictionsSelector.dropdownRenderer&&(u.access_restrictions=this.accessRestriction?this.accessRestriction:this.$["access-restrictions-selector"].firstElementChild.value);this.addedAttachment==="poll"&&(u.poll_options=this.$["poll-attachment"].getPollOptions());this.addedAttachment==="image-poll"&&(u.image_poll_options=this.$["image-poll-attachment"].getPostCreateOptions());_.K("enable_quiz_creation")&&this.addedAttachment===
"quiz"&&(u.quiz_options=this.$["quiz-attachment"].getPostCreateOptions());_.K("enable_post_scheduling")&&this.scheduledPublishTimeSec_&&(u.scheduled_publish_time_sec=this.scheduledPublishTimeSec_);_.N$(this,[this.serviceEndpoint,u])},
onIsInputFocusChanged_:function(a,z){a?this.fire("yt-autonav-pause-focus"):z!==void 0&&this.fire("yt-autonav-pause-blur")},
plaintextDrop_:function(a){var z=this.getEditableTextArea_();[].concat(_.ih(a.dataTransfer.items)).forEach(function(I){I.kind==="string"&&I.type.match("^text/plain")&&I.getAsString(function(J){z.appendChild(document.createTextNode(J))})});
a.preventDefault()},
preventDefault_:function(a){a.preventDefault()},
onSuggestionInsert_:function(a){this.insertTextWithEmojis_(a.detail.range,a.detail.text)},
onEmojiSuggestionClick_:function(a){this.emojiInput.insertSuggestion(a.detail)},
computeSubmitButtonClass_:function(a,z){return!z||a?"":"with-options"},
updateSuggestionOffset_:function(a){if(this.emojiInput&&_.PK(this.emojiInput).querySelector("#dropdown")){var z=this.getEditableTextArea_().getBoundingClientRect().bottom,I=a.getBoundingClientRect().top;this.verticalSuggestionsOffset=Math.ceil(z-I)+5;z=this.getEditableTextArea_().getBoundingClientRect().left;a=a.getBoundingClientRect().left-z;_.PK(this.emojiInput).querySelector("#dropdown").style.marginLeft=a+"px"}},
onDateTimeSelectionCancelled_:function(){this.scheduleButton_=void 0;this.set("data.schedulingDateTimePicker",null);this.scheduledPublishTimeSec_=void 0;this.setSubmitButton_()},
onDateTimeSelectionUpdate_:function(a){if(_.K("enable_post_scheduling")&&this.data&&this.data.purpose){a=a.detail;if(Math.floor(Date.now()/1E3)>=a)this.scheduledPublishTimeSec_=void 0;else if(this.data.purpose==="BACKSTAGE_POST_DIALOG_PURPOSE_EDIT"){var z=parseInt(this.get("schedulingDateTimePicker.dateTimePickerRenderer.defaultTimeSec",this.data),10);isNaN(z)||z!==a?this.scheduledPublishTimeSec_=a:this.scheduledPublishTimeSec_=void 0}else this.scheduledPublishTimeSec_=a;this.setSubmitButton_()}},
computeAttachmentButtonIds_:function(){var a=["image-button","image-poll-button","poll-button"];_.K("enable_quiz_creation")&&a.push("quiz-button");_.K("auto_convert_posts_video_tag")||a.push("video-link-button");return a},
getButtonRenderer:function(a,z){if(a)switch(z){case "video-link-button":var I;return((I=a.videoLinkButton)==null?void 0:I.buttonRenderer)||void 0;case "image-button":var J;return((J=a.imageButton)==null?void 0:J.buttonRenderer)||void 0;case "poll-button":var r;return((r=a.pollButton)==null?void 0:r.buttonRenderer)||void 0;case "image-poll-button":var P;return((P=a.imagePollButton)==null?void 0:P.buttonRenderer)||void 0;case "quiz-button":var N;return((N=a.quizButton)==null?void 0:N.buttonRenderer)||
void 0}},
shouldShowPostAadcNotice_:function(){var a;return(a=this.data)==null||!a.showAadcNoticeCommand||this.getLocalStorage_().get(this.getAadcNoticeShownKey_())?!1:!0},
shouldShowCommentAadcNotice_:function(){var a,z;return!((a=this.data)==null||!a.openAadcDialog)&&!((z=this.aadcGuidelinesState_)==null||!z.shouldRequireViewerAck)},
getAadcNoticeShownKey_:function(){return"post-aadc-notice-shown-"+_.Xw("DATASYNC_ID","unknown")},
showPostAadcNotice_:function(){var a;((a=this.data)==null?0:a.showAadcNoticeCommand)&&this.resolveCommand(this.data.showAadcNoticeCommand)},
showCommentAadcNotice_:function(){this.resolveCommand(this.data.openAadcDialog)},
getLocalStorage_:function(){this.localStorage||(this.localStorage=new _.o3("yt-post"));return this.localStorage},
onAadcNoticeConfirm_:function(a){a.clickTrackingParams&&_.Kw().clickCommand(a);this.getLocalStorage_().set(this.getAadcNoticeShownKey_(),!0);_.ZF(this,"yt-close-popup-action")},
onHideIdentityChip:function(a){var z;this.set("data.placeholderText",(z=a.hideIdentityChipAction)==null?void 0:z.placeholderText);this.set("zeroStepChannelCreationRenderer",{})}});var KX=function(){var a=_.G.apply(this,arguments)||this;a.isOpen=!1;a.modern=_.K("web_modern_buttons");a.roundedContainer=!0;a.dropdownButtonOverride=_.K("web_modern_buttons")?{segmentedPosition:"end",state:"disabled",type:"filled"}:void 0;a.inPopupContainer=!1;a.isCommentboxLoading=!1;var z=["image-button","image-poll-button","poll-button"];_.K("enable_quiz_creation")&&z.push("quiz-button");_.K("auto_convert_posts_video_tag")||z.push("video-link-button");a.attachmentButtonIds=z;a.actionMap={"yt-create-comment-action":"onCreateCommentAction",
"yt-create-poll-action":"onCreatePollAction","yt-add-video-link-action":"onAddVideoLinkAction","yt-show-scheduling-panel-command":"onShowSchedulingPanelCommand","yt-create-image-poll-command":"onCreateImagePollCommand","yt-create-quiz-command":"onCreateQuizCommand"};return a};
_.b(KX,_.G);_.Z=KX.prototype;_.Z.computeButtonOverride=function(){var a;return((a=this.data)==null?0:a.postOptionsMenu)&&_.K("web_modern_buttons")?{segmentedPosition:"start"}:void 0};
_.Z.configureRendererStamper=function(){var a={"data.accessRestrictionsSelector":{id:"access-restrictions-selector",mapping:{dropdownRenderer:{component:"ytd-flat-dropdown-renderer",classListBinding:"[[dropdownRendererClasses]]"}}},"data.pollButton":{id:"poll-button",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.imagePollButton":{id:"image-poll-button",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.imageButton":{id:"image-button",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.quizButton":{id:"quiz-button",
mapping:{buttonRenderer:"ytd-button-renderer"}},"data.postOptionsMenu":{id:"option-menu",mapping:{menuRenderer:{component:"ytd-menu-renderer",params:{icon:"EXPAND"},properties:{tonalOverride:"[[modern]]",threeDotButtonOverride:"[[dropdownButtonOverride]]"}}}}};_.K("auto_convert_posts_video_tag")||(a["data.videoLinkButton"]={id:"video-link-button",mapping:{buttonRenderer:"ytd-button-renderer"}});return a};
_.Z.ready=function(){var a=this,z=_.PK(this.hostElement).querySelector("#placeholder-area"),I=function(J){a.onOpen(J)};
z.addEventListener("tap",I);z.addEventListener("keypress",I)};
_.Z.showButtonEduTooltip=function(){var a,z,I,J,r,P,N;if(_.K("enable_quiz_creation")&&((a=this.data)==null?0:(z=a.quizButton)==null?0:(I=z.buttonRenderer)==null?0:(J=I.hint)==null?0:(r=J.hintRenderer)==null?0:(P=r.content)==null?0:(N=P.bubbleHintRenderer)==null?0:N.text)&&(_.Ns.getInstance(),a=tK(this.data.quizButton.buttonRenderer.hint.hintRenderer.content.bubbleHintRenderer.text,"quiz-button-edu-displayed","OPEN_POPUP_POSITION_BOTTOM",604800,"quiz-button-edu-displayed-impression",3),(a==null?void 0:
a.length)>0)){this.ytComponentBehavior.resolveCommand(a[0],{form:{element:this.quizButton}});return}var u;if((u=this.data)==null?0:u.imagePollButtonTooltip)if(_.Ns.getInstance(),u=tK(this.data.imagePollButtonTooltip,"image-poll-button-edu-displayed","OPEN_POPUP_POSITION_BOTTOM",604800,"image-poll-button-edu-displayed-impression",3),(u==null?void 0:u.length)>0){this.ytComponentBehavior.resolveCommand(u[0],{form:{element:this.imagePollButton}});return}var E;_.K("enable_multi_image_post_creation")&&
((E=this.data)==null?0:E.multiImageButtonTooltip)&&(_.Ns.getInstance(),E=tK(this.data.multiImageButtonTooltip,"multi-image-button-edu-displayed","OPEN_POPUP_POSITION_BOTTOM",604800,"multi-image-button-edu-displayed-impression",3),(E==null?void 0:E.length)>0&&this.ytComponentBehavior.resolveCommand(E[0],{form:{element:this.imageButton}}))};
_.Z.onCreatePollAction=function(a){_.H(a,AHX)&&(this.JSC$15698_commentbox.addedAttachment="poll",this.openDialog())};
_.Z.onAddVideoLinkAction=function(a){if(_.H(a,BZ1))this.JSC$15698_commentbox.onAddVideoLink(a)};
_.Z.onShowSchedulingPanelCommand=function(a){(a=_.H(a,LgO))&&this.openSchedulingPanel(a)};
_.Z.onCreateImagePollCommand=function(a){_.H(a,EFJ)&&(this.JSC$15698_commentbox.openImagePollComponent(),this.openDialog())};
_.Z.onCreateQuizCommand=function(a){_.H(a,BBl)&&(this.JSC$15698_commentbox.openQuizComponent(),this.openDialog())};
_.Z.openSchedulingPanel=function(a){_.K("enable_post_scheduling")&&(this.openDialog(),this.JSC$15698_commentbox.openSchedulingPanel(a))};
_.Z.onCreateCommentAction=function(a){this.get("createCommentAction.contents",a)&&(this.JSC$15698_commentbox.clear(),this.closeDialog())};
_.Z.onOpen=function(a){a instanceof KeyboardEvent&&a.type==="keypress"&&a.keyCode!==13&&a.keyCode!==32||(this.data.prepareAccountEndpoint?_.PA(this.hostElement,"yt-navigate",{endpoint:this.data.prepareAccountEndpoint}):this.openDialog())};
_.Z.onYtCommentboxDismiss=function(){this.closeDialog()};
_.Z.onYtCommentboxLoadingStart=function(a){a.stopPropagation();this.isCommentboxLoading=!0};
_.Z.onYtCommentboxLoadingEnd=function(a){a.stopPropagation();this.isCommentboxLoading=!1};
_.Z.onYtVideoLinkButtonCancel=function(a){a.stopPropagation();this.onOpen(a)};
_.Z.onYtVideoLinkSelected=function(a){a.stopPropagation();this.onOpen(a)};
_.Z.onIronSelect=function(a){a.stopPropagation();a.detail.item.tagName==="YTD-PRIVACY-DROPDOWN-ITEM-RENDERER"&&this.accessRestriction!=a.detail.item.value&&(this.accessRestriction?(this.accessRestriction=a.detail.item.value,this.onOpen(a)):this.accessRestriction=a.detail.item.value)};
_.Z.onYtNavigate=function(a){this.get("detail.endpoint.backstageImageUploadEndpoint",a)&&(this.JSC$15698_commentbox.addedAttachment="image",this.JSC$15698_commentbox.submitButtonDisabled=!0,this.onOpen(a))};
_.Z.onRequestSent=function(a){if(_.K("web_button_rework"))for(var z=_.C(a.detail),I=z.next();!I.done;I=z.next())_.H(I.value,hcJ)&&(this.JSC$15698_commentbox.addedAttachment="image",this.JSC$15698_commentbox.submitButtonDisabled=!0,this.onOpen(a))};
_.Z.openDialog=function(){this.JSC$15698_commentbox.accessRestriction=this.accessRestriction;this.isOpen=!0;this.JSC$15698_commentbox.focus()};
_.Z.onPopupClosed=function(){_.Ns.getInstance()};
_.Z.computeCreationDisabled=function(a){return!!a};
_.Z.computeIsCreationDialog=function(a){return!!a&&a==="BACKSTAGE_POST_DIALOG_PURPOSE_CREATE"};
_.Z.computeDisabledPostButton=function(a){if(!a)return null;a.isDisabled=!0;return a};
_.Z.computeIsCreationDialogWithHeader=function(a){return!this.inPopupContainer&&!!a&&!!a.authorText&&a.purpose!="BACKSTAGE_POST_DIALOG_PURPOSE_EDIT"};
_.Z.computeIsHeaderHidden=function(a,z){return!a||z};
_.Z.computeDropdownRendererClasses=function(a){return a?["text-secondary-style"]:[]};
_.Z.closeDialog=function(){this.isCommentboxLoading=this.isOpen=!1;var a=_.PK(this.hostElement).querySelector("#access-restrictions-selector").firstElementChild;a&&a.reset()};
KX.prototype.onPopupClosed=KX.prototype.onPopupClosed;KX.prototype.onRequestSent=KX.prototype.onRequestSent;KX.prototype.onYtNavigate=KX.prototype.onYtNavigate;KX.prototype.onIronSelect=KX.prototype.onIronSelect;KX.prototype.onYtVideoLinkSelected=KX.prototype.onYtVideoLinkSelected;KX.prototype.onYtVideoLinkButtonCancel=KX.prototype.onYtVideoLinkButtonCancel;KX.prototype.onYtCommentboxLoadingEnd=KX.prototype.onYtCommentboxLoadingEnd;KX.prototype.onYtCommentboxLoadingStart=KX.prototype.onYtCommentboxLoadingStart;
KX.prototype.onYtCommentboxDismiss=KX.prototype.onYtCommentboxDismiss;KX.prototype.showButtonEduTooltip=KX.prototype.showButtonEduTooltip;_.L([_.Q(_.Ms.YtComponentBehavior),_.p("design:type",Object)],KX.prototype,"ytComponentBehavior",void 0);_.L([_.Q(_.u4.YtRendererstamperBehavior),_.p("design:type",Object)],KX.prototype,"ytRendererstamperBehavior",void 0);_.L([_.Q(_.k.YtRendererBehavior),_.p("design:type",Object)],KX.prototype,"ytRendererBehavior",void 0);
_.L([_.Q(_.Hc.YtActionHandlerBehavior),_.p("design:type",Object)],KX.prototype,"ytActionHandlerBehavior",void 0);_.L([_.x(),_.p("design:type",Object)],KX.prototype,"data",void 0);_.L([_.x({reflectToAttribute:!0}),_.p("design:type",Object)],KX.prototype,"isOpen",void 0);_.L([_.x({computed:"computeButtonOverride(data)"}),_.p("design:type",Object)],KX.prototype,"buttonOverride",void 0);_.L([_.x({reflectToAttribute:!0}),_.p("design:type",Object)],KX.prototype,"modern",void 0);
_.L([_.x({reflectToAttribute:!0}),_.p("design:type",Object)],KX.prototype,"roundedContainer",void 0);_.L([_.x(),_.p("design:type",Object)],KX.prototype,"dropdownButtonOverride",void 0);_.L([_.x({computed:"computeCreationDisabled(data.postCreationDisabledText)"}),_.p("design:type",Boolean)],KX.prototype,"creationDisabled",void 0);_.L([_.x({reflectToAttribute:!0}),_.p("design:type",Boolean)],KX.prototype,"enableCreationBox",void 0);
_.L([_.x({reflectToAttribute:!0,computed:"computeIsCreationDialog(data.purpose)"}),_.p("design:type",Boolean)],KX.prototype,"isCreationDialog",void 0);_.L([_.x({reflectToAttribute:!0}),_.p("design:type",Object)],KX.prototype,"inPopupContainer",void 0);_.L([_.x({reflectToAttribute:!0,computed:"computeIsCreationDialogWithHeader(data)"}),_.p("design:type",Boolean)],KX.prototype,"isCreationDialogWithHeader",void 0);_.L([_.x(),_.p("design:type",Object)],KX.prototype,"accessRestriction",void 0);
_.L([_.x({computed:"computeDropdownRendererClasses(isCreationDialogWithHeader)"}),_.p("design:type",Array)],KX.prototype,"dropdownRendererClasses",void 0);_.L([_.x(),_.p("design:type",Object)],KX.prototype,"isCommentboxLoading",void 0);_.L([_.x(),_.p("design:type",Array)],KX.prototype,"attachmentButtonIds",void 0);_.L([_.A3("#image-button"),_.p("design:type",HTMLElement)],KX.prototype,"imageButton",void 0);
_.L([_.A3("#image-poll-button"),_.p("design:type",HTMLElement)],KX.prototype,"imagePollButton",void 0);_.L([_.A3("#quiz-button"),_.p("design:type",HTMLElement)],KX.prototype,"quizButton",void 0);_.L([_.A3("#commentbox"),_.p("design:type",Object)],KX.prototype,"JSC$15698_commentbox",void 0);_.L([_.O8("data.multiImageButtonTooltip","data.imagePollButtonTooltip","data.quizButton"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],KX.prototype,"showButtonEduTooltip",null);
_.L([_.gz("yt-commentbox-dismiss"),_.p("design:type",Function),_.p("design:paramtypes",[CustomEvent]),_.p("design:returntype")],KX.prototype,"onYtCommentboxDismiss",null);_.L([_.gz("yt-commentbox-loading-start"),_.p("design:type",Function),_.p("design:paramtypes",[CustomEvent]),_.p("design:returntype")],KX.prototype,"onYtCommentboxLoadingStart",null);
_.L([_.gz("yt-commentbox-loading-end"),_.p("design:type",Function),_.p("design:paramtypes",[CustomEvent]),_.p("design:returntype")],KX.prototype,"onYtCommentboxLoadingEnd",null);_.L([_.gz("yt-video-link-button-cancel"),_.p("design:type",Function),_.p("design:paramtypes",[CustomEvent]),_.p("design:returntype")],KX.prototype,"onYtVideoLinkButtonCancel",null);
_.L([_.gz("yt-video-link-selected"),_.p("design:type",Function),_.p("design:paramtypes",[CustomEvent]),_.p("design:returntype")],KX.prototype,"onYtVideoLinkSelected",null);_.L([_.gz("iron-select"),_.p("design:type",Function),_.p("design:paramtypes",[CustomEvent]),_.p("design:returntype")],KX.prototype,"onIronSelect",null);_.L([_.gz("yt-navigate"),_.p("design:type",Function),_.p("design:paramtypes",[CustomEvent]),_.p("design:returntype")],KX.prototype,"onYtNavigate",null);
_.L([_.gz("yt-service-request-sent-button-renderer"),_.p("design:type",Function),_.p("design:paramtypes",[CustomEvent]),_.p("design:returntype")],KX.prototype,"onRequestSent",null);_.L([_.gz("yt-popup-closed"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],KX.prototype,"onPopupClosed",null);_.L([_.U({is:"ytd-backstage-post-dialog-renderer",disableElementRegistration:!0})],KX);
_.D(KX,"ytd-backstage-post-dialog-renderer",function(){if(FNw!==void 0)return FNw;var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-backstage-post-dialog-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="disabled-message" hidden="[[!creationDisabled]]" class="style-scope ytd-backstage-post-dialog-renderer">\n  <div id="disabled-message-annotation" class="style-scope ytd-backstage-post-dialog-renderer">\n  [[getSimpleString(data.postCreationDisabledAnnotation)]]\n  </div>\n  <yt-formatted-string id="disabled-message-text" text="[[data.postCreationDisabledText]]" class="style-scope ytd-backstage-post-dialog-renderer">\n  </yt-formatted-string>\n</div>\n<div hidden="[[creationDisabled]]" class="style-scope ytd-backstage-post-dialog-renderer">\n  <div id="dialog-header" hidden="[[computeIsHeaderHidden(isCreationDialogWithHeader, isCommentboxLoading)]]" class="style-scope ytd-backstage-post-dialog-renderer">\n    <yt-img-shadow id="header-author-thumbnail" thumbnail="[[data.authorThumbnail]]" class="style-scope ytd-backstage-post-dialog-renderer">\n    </yt-img-shadow>\n    <yt-formatted-string id="header-channel-name" text="[[data.authorText]]" class="style-scope ytd-backstage-post-dialog-renderer">\n    </yt-formatted-string>\n    <yt-formatted-string id="header-visibility-label" text="[[data.visibilityLabel]]" class="style-scope ytd-backstage-post-dialog-renderer">\n    </yt-formatted-string>\n    <div id="access-restrictions-selector" class="style-scope ytd-backstage-post-dialog-renderer"></div>\n    <yt-formatted-string id="header-default-visibility" hidden="[[!data.accessRestrictionsSelector.postVisibilityLabelRenderer.text]]" text="[[data.accessRestrictionsSelector.postVisibilityLabelRenderer.text]]" class="style-scope ytd-backstage-post-dialog-renderer">\n    </yt-formatted-string>\n  </div>\n  <div id="unopened-dialog" hidden="[[isOpen]]" class="style-scope ytd-backstage-post-dialog-renderer">\n    <yt-img-shadow id="author-thumbnail" height="40" thumbnail="[[data.authorThumbnail]]" width="40" class="style-scope ytd-backstage-post-dialog-renderer">\n    </yt-img-shadow>\n    <div id="main" class="style-scope ytd-backstage-post-dialog-renderer">\n      <div id="placeholder-area" class="style-scope ytd-backstage-post-dialog-renderer">\n        <yt-formatted-string id="commentbox-placeholder" role="button" tabindex="0" text="[[data.placeholderText]]" class="style-scope ytd-backstage-post-dialog-renderer">\n        </yt-formatted-string>\n      </div>\n      <div id="attachments" class="style-scope ytd-backstage-post-dialog-renderer">\n        <template is="dom-repeat" items="[[attachmentButtonIds]]" as="buttonId" class="style-scope ytd-backstage-post-dialog-renderer">\n          <span id="[[buttonId]]" class="style-scope ytd-backstage-post-dialog-renderer"></span>\n        </template>\n        <div id="post-buttons-wrapper" class="style-scope ytd-backstage-post-dialog-renderer">\n          <ytd-button-renderer id="post-button" data="[[computeDisabledPostButton(data.postButton.buttonRenderer)]]" hidden="[[!isCreationDialog]]" overrides="[[buttonOverride]]" class="style-scope ytd-backstage-post-dialog-renderer">\n          </ytd-button-renderer>\n          <div id="option-menu" class="style-scope ytd-backstage-post-dialog-renderer"></div>\n        </div>\n      </div>\n    </div>\n  </div>\n  <ytd-commentbox id="commentbox" data="[[data]]" hidden="[[!isOpen]]" is-backstage-post="" is-creation-box="[[isCreationDialog]]" is-popup-box="[[inPopupContainer]]" is-post-creation-dialog-v2="[[isCreationDialogWithHeader]]" class="style-scope ytd-backstage-post-dialog-renderer">\n    <div slot="repost-preview" hidden="[[!data.backstageAttachment.postRenderer]]" class="style-scope ytd-backstage-post-dialog-renderer">\n      <slot name="repost-preview" class="style-scope ytd-backstage-post-dialog-renderer"></slot>\n    </div>\n  </ytd-commentbox>\n</div>\n');
a.content.insertBefore(_.w().content.cloneNode(!0),a.content.firstChild);return FNw=a},{mode:1});var a9f;var juX;var FE=function(){return _.G.apply(this,arguments)||this};
_.b(FE,_.G);_.Z=FE.prototype;_.Z.computeHeartButtonStyle=function(a){return(a==null?0:a.styleType)?a.styleType.split("TYPE_")[1].replace(/_/g,"-").toLowerCase():"unknown"};
_.Z.onYtButtonTap=function(){if(this.data.isEnabled){var a=this.data.isHearted;this.toggle();this.ytRendererBehavior.markDirty();(a=this.getEndpoint(a))&&_.ab().resolve(_.j6).resolveCommand(a,{form:{element:this.hostElement}})}else(a=this.ytdOpenPopupBehavior.getNavigationEndpointPopupAction(this.data.disabledEndpoint))&&this.ytdOpenPopupBehavior.openPopup(a)};
_.Z.toggle=function(a){this.set("data.isHearted",a!==void 0?a:!this.data.isHearted)};
_.Z.getEndpoint=function(a){var z,I=(z=this.data)==null?void 0:z.heartEndpoint,J;z=(J=this.data)==null?void 0:J.unheartEndpoint;if(I&&z)return a?z:I};
_.Z.computeButtonAccessibility=function(a,z){var I,J,r=a==null?void 0:(I=a.heartedAccessibility)==null?void 0:(J=I.accessibilityData)==null?void 0:J.label,P,N;a=a==null?void 0:(P=a.unheartedAccessibility)==null?void 0:(N=P.accessibilityData)==null?void 0:N.label;return z?r:a};
_.eH.Object.defineProperties(FE.prototype,{heartTooltip:{configurable:!0,enumerable:!0,get:function(){if(this.data)return this.data.isHearted?this.data.heartedTooltip:this.data.unheartedTooltip}},
iconFilled:{configurable:!0,enumerable:!0,get:function(){var a;return _.K("kevlar_system_icons")&&!((a=this.data)==null||!a.isHearted)}}});
FE.prototype.onYtButtonTap=FE.prototype.onYtButtonTap;_.L([_.Q(_.k.YtRendererBehavior),_.p("design:type",Object)],FE.prototype,"ytRendererBehavior",void 0);_.L([_.Q(_.rI),_.p("design:type",Object)],FE.prototype,"ytdOpenPopupBehavior",void 0);_.L([_.x(),_.p("design:type",Object)],FE.prototype,"data",void 0);_.L([_.S("data.isHearted"),_.p("design:type",Object),_.p("design:paramtypes",[])],FE.prototype,"heartTooltip",null);
_.L([_.S("data.isHearted"),_.p("design:type",Boolean),_.p("design:paramtypes",[])],FE.prototype,"iconFilled",null);_.L([_.x({computed:"computeButtonAccessibility(data,data.isHearted)"}),_.p("design:type",String)],FE.prototype,"buttonAccessibility",void 0);_.L([_.x({computed:"computeHeartButtonStyle(data)",reflectToAttribute:!0}),_.p("design:type",String)],FE.prototype,"heartButtonStyle",void 0);
_.L([_.gz("tap"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],FE.prototype,"onYtButtonTap",null);_.L([_.U({is:"ytd-creator-heart-renderer",disableElementRegistration:!0})],FE);
_.D(FE,"ytd-creator-heart-renderer",function(){if(juX!==void 0)return juX;var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-creator-heart-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-icon-button id="creator-heart-button" disabled="[[!data.isEnabled]]" label="[[buttonAccessibility]]" class="style-scope ytd-creator-heart-renderer">\n  <template is="dom-if" if="[[data.isHearted]]" class="style-scope ytd-creator-heart-renderer">\n    <yt-img-shadow id="hearted-thumbnail" thumbnail="[[data.creatorThumbnail]]" class="style-scope ytd-creator-heart-renderer"></yt-img-shadow>\n    <yt-icon id="hearted-border" icon="[[data.heartIcon.iconType]]" class="style-scope ytd-creator-heart-renderer"></yt-icon>\n    <yt-icon id="hearted" default-to-filled="[[iconFilled]]" icon="[[data.heartIcon.iconType]]" class="style-scope ytd-creator-heart-renderer"></yt-icon>\n  </template>\n  <template is="dom-if" if="[[!data.isHearted]]" class="style-scope ytd-creator-heart-renderer">\n    <yt-icon id="unhearted" icon="[[data.heartIcon.iconType]]" class="style-scope ytd-creator-heart-renderer"></yt-icon>\n  </template>\n</yt-icon-button>\n<tp-yt-paper-tooltip class="style-scope ytd-creator-heart-renderer">[[heartTooltip]]</tp-yt-paper-tooltip>\n');a.content.insertBefore(_.w().content.cloneNode(!0),
a.content.firstChild);return juX=a},{mode:1});var HT=function(){var a=_.G.apply(this,arguments)||this;a.hasCreatorReply=!1;a.buttonOverrides={size:"S",iconPosition:"icon-only"};a.replyButtonOverrides={size:"S",type:"text"};a.forceIconButton=!_.K("web_modern_buttons");a.modern=_.K("web_modern_buttons");a.buttonTooltipPosition="bottom";a.systemIcons=_.K("kevlar_system_icons");a.replyDialog=null;return a};
_.b(HT,_.G);_.Z=HT.prototype;
_.Z.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]]"}}}}}};
_.Z.detached=function(){this.replyDialog&&this.replyDialog.remove();this.replyDialog=null};
_.Z.dataChange=function(){this.replyDialog&&_.PK(this.replyDialogElement).removeChild(this.replyDialog);this.replyDialog=null;var a,z,I;this.isLiked=this.systemIcons&&!!((a=this.data)==null?0:(z=a.likeButton)==null?0:(I=z.toggleButtonRenderer)==null?0:I.isToggled)};
_.Z.computeShowVoteCountBeginning=function(a,z){return a===void 0||z===void 0?!0:a.style!=="COMMENT_ACTION_BUTTON_STYLE_TYPE_DESKTOP_TOOLBAR"&&!!z&&this.ytRendererBehavior.getSimpleString(z)!=="0"};
_.Z.computeShowVoteCountEnd=function(a,z){return a===void 0||z===void 0?!0:a.style==="COMMENT_ACTION_BUTTON_STYLE_TYPE_DESKTOP_TOOLBAR"&&!!z&&this.ytRendererBehavior.getSimpleString(z)!=="0"};
_.Z.computeShowCommentCount=function(a,z){return a===void 0||z===void 0?!0:a.style==="COMMENT_ACTION_BUTTON_STYLE_TYPE_DESKTOP_TOOLBAR"&&!!z&&this.ytRendererBehavior.getSimpleString(z)!=="0"};
_.Z.hideReplyDialog=function(){this.replyDialogElement.hidden=!0};
_.Z.reply=function(){this.replyButtonElement.firstElementChild?this.replyButtonElement.firstElementChild.firstElementChild.click():this.replyButtonEndElement.firstElementChild&&this.replyButtonEndElement.firstElementChild.firstElementChild.click()};
_.Z.showReplyDialog=function(a){a&&(this.replyDialog||(this.replyDialog=document.createElement("ytd-comment-reply-dialog-renderer"),this.replyDialog.id="replybox"),this.replyDialog.isAttached||_.PK(this.replyDialogElement).appendChild(this.replyDialog),this.replyDialog.data=a,this.replyDialogElement.hidden=!1,this.replyDialog.openDialog())};
_.Z.onYtCommentboxDismiss=function(){this.hideReplyDialog()};
_.Z.onRequestSent=function(a){if(_.K("web_button_rework")){a=_.C(a.detail);for(var z=a.next();!z.done;z=a.next())(z=this.get("createCommentReplyDialogEndpoint.dialog.commentReplyDialogRenderer",z.value))&&this.showReplyDialog(z)}};
_.Z.onYtNavigate=function(a){var z,I;(a=(z=_.H(a.detail.endpoint,_.QJO))==null?void 0:(I=z.dialog)==null?void 0:I.commentReplyDialogRenderer)&&this.showReplyDialog(a)};
_.Z.onYtServiceRequestSent=function(a,z){a.stopPropagation();if(z.actions)for(a=0;a<z.actions.length;a++){var I=_.H(z.actions[a],bpv);I&&this.handleUpdateCommentVoteAction(I)}};
_.Z.handleUpdateCommentVoteAction=function(a){this.voteCount=a.voteCount||_.Mo("0");a.voteStatus==="LIKE"?this.JSC$15709_ytdDislikeToggleButtonRenderer.toggle(!1):a.voteStatus==="DISLIKE"?this.JSC$15709_ytdLikeToggleButtonRenderer.toggle(!1):(this.JSC$15709_ytdLikeToggleButtonRenderer.toggle(!1),this.JSC$15709_ytdDislikeToggleButtonRenderer.toggle(!1))};
_.Z.computeReplyButtonHidden=function(a){return a};
_.Z.computeReplyButtonBeginning=function(a){return(a==null?0:a.replyButton)&&a.style!=="COMMENT_ACTION_BUTTON_STYLE_TYPE_DESKTOP_TOOLBAR"?a.replyButton:void 0};
_.Z.computeReplyButtonEnd=function(a){return(a==null?0:a.replyButton)&&a.style==="COMMENT_ACTION_BUTTON_STYLE_TYPE_DESKTOP_TOOLBAR"?a.replyButton:void 0};
_.Z.computeActionButtonStyle=function(a){return(a==null?0:a.style)?a.style.split("TYPE_")[1].replace(/_/g,"-").toLowerCase():"unknown"};
_.Z.onButtonTooltipPositionChanged=function(){this.ytdReplyButtonRenderer&&(this.ytdReplyButtonRenderer.buttonTooltipPosition=this.buttonTooltipPosition)};
_.Z.onYtToggleButton=function(a){var z,I;this.isLiked=this.systemIcons&&!!((z=a.detail)==null?0:(I=z.actions)==null?0:I.like)};
HT.prototype.onYtToggleButton=HT.prototype.onYtToggleButton;HT.prototype.onButtonTooltipPositionChanged=HT.prototype.onButtonTooltipPositionChanged;HT.prototype.onYtServiceRequestSent=HT.prototype.onYtServiceRequestSent;HT.prototype.onYtNavigate=HT.prototype.onYtNavigate;HT.prototype.onRequestSent=HT.prototype.onRequestSent;HT.prototype.onYtCommentboxDismiss=HT.prototype.onYtCommentboxDismiss;HT.prototype.dataChange=HT.prototype.dataChange;
_.L([_.Q(_.k.YtRendererBehavior),_.p("design:type",Object)],HT.prototype,"ytRendererBehavior",void 0);_.L([_.Q(_.u4.YtRendererstamperBehavior),_.p("design:type",Object)],HT.prototype,"ytRendererstamperBehavior",void 0);_.L([_.x(),_.p("design:type",Object)],HT.prototype,"data",void 0);_.L([_.x(),_.p("design:type",Object)],HT.prototype,"voteCount",void 0);_.L([_.x(),_.p("design:type",Object)],HT.prototype,"commentCount",void 0);_.L([_.x(),_.p("design:type",Object)],HT.prototype,"replyThumbnail",void 0);
_.L([_.x(),_.p("design:type",Object)],HT.prototype,"hasCreatorReply",void 0);_.L([_.x({reflectToAttribute:!0}),_.p("design:type",Boolean)],HT.prototype,"enableCreationBox",void 0);_.L([_.x({computed:"computeActionButtonStyle(data)",reflectToAttribute:!0}),_.p("design:type",String)],HT.prototype,"actionButtonsStyle",void 0);_.L([_.x({computed:"computeReplyButtonBeginning(data)"}),_.p("design:type",Object)],HT.prototype,"replyButtonBeginning",void 0);
_.L([_.x({computed:"computeReplyButtonEnd(data)"}),_.p("design:type",Object)],HT.prototype,"replyButtonEnd",void 0);_.L([_.x(),_.p("design:type",Object)],HT.prototype,"buttonOverrides",void 0);_.L([_.x(),_.p("design:type",Object)],HT.prototype,"replyButtonOverrides",void 0);_.L([_.x(),_.p("design:type",Object)],HT.prototype,"forceIconButton",void 0);_.L([_.x({reflectToAttribute:!0}),_.p("design:type",Boolean)],HT.prototype,"useCommentIcon",void 0);
_.L([_.x({reflectToAttribute:!0}),_.p("design:type",Object)],HT.prototype,"modern",void 0);_.L([_.x(),_.p("design:type",Object)],HT.prototype,"buttonTooltipPosition",void 0);_.L([_.x({reflectToAttribute:!0}),_.p("design:type",Object)],HT.prototype,"systemIcons",void 0);_.L([_.x({reflectToAttribute:!0}),_.p("design:type",Boolean)],HT.prototype,"isLiked",void 0);_.L([_.A3("ytd-button-renderer"),_.p("design:type",Object)],HT.prototype,"ytdReplyButtonRenderer",void 0);
_.L([_.A3("#like-button"),_.p("design:type",Object)],HT.prototype,"JSC$15709_ytdLikeToggleButtonRenderer",void 0);_.L([_.A3("#dislike-button"),_.p("design:type",Object)],HT.prototype,"JSC$15709_ytdDislikeToggleButtonRenderer",void 0);_.L([_.A3("#reply-dialog"),_.p("design:type",HTMLElement)],HT.prototype,"replyDialogElement",void 0);_.L([_.A3("#reply-button"),_.p("design:type",HTMLElement)],HT.prototype,"replyButtonElement",void 0);
_.L([_.A3("#reply-button-end"),_.p("design:type",HTMLElement)],HT.prototype,"replyButtonEndElement",void 0);_.L([_.Fe("data"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],HT.prototype,"dataChange",null);_.L([_.gz("yt-commentbox-dismiss"),_.p("design:type",Function),_.p("design:paramtypes",[CustomEvent]),_.p("design:returntype")],HT.prototype,"onYtCommentboxDismiss",null);
_.L([_.gz("yt-service-request-sent-button-renderer"),_.p("design:type",Function),_.p("design:paramtypes",[CustomEvent]),_.p("design:returntype")],HT.prototype,"onRequestSent",null);_.L([_.gz("yt-navigate"),_.p("design:type",Function),_.p("design:paramtypes",[CustomEvent]),_.p("design:returntype")],HT.prototype,"onYtNavigate",null);
_.L([_.gz("yt-service-request-sent"),_.p("design:type",Function),_.p("design:paramtypes",[CustomEvent,_.lJ]),_.p("design:returntype")],HT.prototype,"onYtServiceRequestSent",null);_.L([_.O8("buttonTooltipPosition"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],HT.prototype,"onButtonTooltipPositionChanged",null);
_.L([_.gz("yt-toggle-button"),_.p("design:type",Function),_.p("design:paramtypes",[CustomEvent]),_.p("design:returntype")],HT.prototype,"onYtToggleButton",null);_.L([_.U({is:"ytd-comment-action-buttons-renderer",disableElementRegistration:!0})],HT);
_.D(HT,"ytd-comment-action-buttons-renderer",function(){if(a9f!==void 0)return a9f;var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-comment-action-buttons-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="toolbar" class="style-scope ytd-comment-action-buttons-renderer">\n  <div id="reply-button" hidden="[[computeReplyButtonHidden(hasCreatorReply)]]" class="style-scope ytd-comment-action-buttons-renderer">\n  </div>\n  <span id="vote-count-left" hidden="[[!computeShowVoteCountBeginning(data, voteCount)]]" aria-label$="[[voteCount.accessibility.accessibilityData.label]]" class="style-scope ytd-comment-action-buttons-renderer">\n    [[getSimpleString(voteCount)]]\n  </span>\n  <ytd-toggle-button-renderer id="like-button" button-tooltip-position="[[buttonTooltipPosition]]" data="[[data.likeButton.toggleButtonRenderer]]" icon-size="16" overrides="[[buttonOverrides]]" class="style-scope ytd-comment-action-buttons-renderer">\n  </ytd-toggle-button-renderer>\n  <span id="vote-count-middle" hidden="[[!computeShowVoteCountEnd(data, voteCount)]]" aria-label$="[[voteCount.accessibility.accessibilityData.label]]" class="style-scope ytd-comment-action-buttons-renderer">\n    [[getSimpleString(voteCount)]]\n  </span>\n  <ytd-toggle-button-renderer id="dislike-button" button-tooltip-position="[[buttonTooltipPosition]]" data="[[data.dislikeButton.toggleButtonRenderer]]" icon-size="16" overrides="[[buttonOverrides]]" class="style-scope ytd-comment-action-buttons-renderer">\n  </ytd-toggle-button-renderer>\n  <div id="creator-heart" class="style-scope ytd-comment-action-buttons-renderer"></div>\n  <div id="share-button" hidden="[[!data.shareButton]]" class="style-scope ytd-comment-action-buttons-renderer">\n  </div>\n  <div id="reply-button-end" hidden="[[computeReplyButtonHidden(hasCreatorReply)]]" class="style-scope ytd-comment-action-buttons-renderer">\n  </div>\n  \n  <span id="comment-count" hidden="[[!computeShowCommentCount(data, commentCount)]]" class="style-scope ytd-comment-action-buttons-renderer">\n    [[getSimpleString(commentCount)]]\n  </span>\n</div>\n<div id="reply-dialog" class="style-scope ytd-comment-action-buttons-renderer"></div>\n');a.content.insertBefore(_.w().content.cloneNode(!0),
a.content.firstChild);return a9f=a},{mode:1});var z8G;var bv=function(){return _.G.apply(this,arguments)||this};
_.b(bv,_.G);bv.prototype.focus=function(){_.PK(this.hostElement).querySelector("#commentbox").focus()};
_.L([_.Q(_.k.YtRendererBehavior),_.p("design:type",Object)],bv.prototype,"ytRendererBehavior",void 0);_.L([_.x(),_.p("design:type",Object)],bv.prototype,"data",void 0);_.L([_.x(),_.p("design:type",Object)],bv.prototype,"zeroStepChannelCreationRenderer",void 0);_.L([_.U({is:"ytd-comment-dialog-renderer",disableElementRegistration:!0})],bv);
_.D(bv,"ytd-comment-dialog-renderer",function(){if(z8G!==void 0)return z8G;var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-comment-dialog-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<ytd-commentbox id="commentbox" data="[[data]]" zero-step-channel-creation-renderer="[[zeroStepChannelCreationRenderer]]" class="style-scope ytd-comment-dialog-renderer">\n</ytd-commentbox>\n');a.content.insertBefore(_.w().content.cloneNode(!0),
a.content.firstChild);return z8G=a},{mode:1});var I9G;var h5=function(){var a=_.G.apply(this,arguments)||this;a.buttonOverrides={size:"S",iconPosition:"icon-only",ignoreIconSizeOverride:_.K("enable_web_delhi_icons")};a.replyButtonOverrides={size:"S",type:"text"};return a};
_.b(h5,_.G);_.Z=h5.prototype;_.Z.configureRendererStamper=function(){return{creatorHeartSupportedRenderer:{id:"creator-heart",mapping:{creatorHeartRenderer:{component:"ytd-creator-heart-renderer"}}}}};
_.Z.detached=function(){this.replyBox&&this.replyBox.remove()};
_.Z.showReplyDialog=function(a){if(a){var z=this.replyBox;z||(z=document.createElement("ytd-comment-reply-dialog-renderer"),z.id="replybox",_.PK(this.replyDialogDiv).appendChild(z));z.data=a;this.replyDialogDiv.hidden=!1;z.openDialog()}};
_.Z.hideReplyDialogDiv=function(){this.replyDialogDiv.hidden=!0};
_.Z.handleReplyButtonClick=function(){if(this.isSubsOnlyCommentsEligibleUser){var a,z=_.H((a=this.toolbarSurface)==null?void 0:a.subscribersOnlyDisclaimerSnackbarCommand,_.Wl);z&&_.PA(this.hostElement,"yt-show-subscribers-only-disclaimer",{command:z})}};
_.Z.onYtServiceRequestSent=function(a,z){a.stopPropagation();if(z.actions)for(var I=0;I<z.actions.length;I++){var J=_.H(z.actions[I],bpv);J?this.handleUpdateCommentVoteAction(J):a.target===this.heartButton&&this.toggleHeartState()}};
_.Z.handleUpdateCommentVoteAction=function(a){var z;(z=this.toolbarState)!=null&&z.key&&this.ytdReduxBehavior.dispatch(_.XK("engagementToolbarStateEntityPayload",this.toolbarState.key,{likeState:a.voteStatus==="LIKE"?"TOOLBAR_LIKE_STATE_LIKED":a.voteStatus==="DISLIKE"?"TOOLBAR_LIKE_STATE_DISLIKED":"TOOLBAR_LIKE_STATE_INDIFFERENT"}))};
_.Z.toggleHeartState=function(){var a;(a=this.toolbarState)!=null&&a.key&&this.ytdReduxBehavior.dispatch(_.XK("engagementToolbarStateEntityPayload",this.toolbarState.key,{heartState:this.toolbarState.heartState==="TOOLBAR_HEART_STATE_HEARTED_EDITABLE"?"TOOLBAR_HEART_STATE_UNHEARTED_EDITABLE":"TOOLBAR_HEART_STATE_HEARTED_EDITABLE"}))};
_.eH.Object.defineProperties(h5.prototype,{likeCount:{configurable:!0,enumerable:!0,get:function(){var a,z,I;return(((a=this.toolbarState)==null?void 0:a.likeState)==="TOOLBAR_LIKE_STATE_LIKED"?(z=this.toolbarData)==null?void 0:z.likeCountLiked:(I=this.toolbarData)==null?void 0:I.likeCountNotliked)||""}},
showLikeCount:{configurable:!0,enumerable:!0,get:function(){return this.likeCount.trim().length>0}},
isVisiblyDisabled:{configurable:!0,enumerable:!0,get:function(){var a;return((a=this.toolbarSurface)==null?void 0:a.commentDisabledActionCommand)!==void 0}},
isSubsOnlyCommentsIneligibleUser:{configurable:!0,enumerable:!0,get:function(){var a;return((a=this.toolbarSurface)==null?void 0:a.subscribersOnlySnackbarCommand)!==void 0}},
isSubsOnlyCommentsEligibleUser:{configurable:!0,enumerable:!0,get:function(){var a;return((a=this.toolbarSurface)==null?void 0:a.subscribersOnlyDisclaimerSnackbarCommand)!==void 0}},
hasPrepareAccountCommand:{configurable:!0,enumerable:!0,get:function(){var a;return((a=this.toolbarSurface)==null?void 0:a.prepareAccountCommand)!==void 0&&!_.K("comment_prepare_account_command_killswitch")}},
likeToggleButtonRenderer:{configurable:!0,enumerable:!0,get:function(){var a,z=_.H((a=this.toolbarSurface)==null?void 0:a.prepareAccountCommand,_.Wl),I,J,r,P,N,u,E,O,f;return{style:{styleType:this.isVisiblyDisabled?"STYLE_VISIBLY_DISABLED":"STYLE_TEXT"},size:{sizeType:"SIZE_DEFAULT"},isDisabled:!((I=this.toolbarSharedData)==null||!I.disabledLikeCommand),isToggled:!this.isVisiblyDisabled&&((J=this.toolbarState)==null?void 0:J.likeState)==="TOOLBAR_LIKE_STATE_LIKED",defaultIcon:{iconType:"LIKE"},defaultServiceEndpoint:this.isVisiblyDisabled?
void 0:z!=null?z:_.H((r=this.toolbarSurface)==null?void 0:r.likeCommand,_.Wl),toggledServiceEndpoint:this.isVisiblyDisabled?void 0:z!=null?z:_.H((P=this.toolbarSurface)==null?void 0:P.unlikeCommand,_.Wl),defaultCommand:this.isVisiblyDisabled?_.H((N=this.toolbarSurface)==null?void 0:N.commentDisabledActionCommand,_.Wl):void 0,defaultTooltip:(u=this.toolbarData)==null?void 0:u.likeInactiveTooltip,toggledTooltip:(E=this.toolbarData)==null?void 0:E.likeActiveTooltip,toggledStyle:{styleType:this.isVisiblyDisabled?
"STYLE_VISIBLY_DISABLED":"STYLE_DEFAULT_ACTIVE"},accessibilityData:{accessibilityData:{label:(O=this.toolbarData)==null?void 0:O.likeButtonA11y}},toggledAccessibilityData:{accessibilityData:{label:(f=this.toolbarSharedData)==null?void 0:f.unlikeButtonA11y}},preventAutoToggle:this.isVisiblyDisabled||this.hasPrepareAccountCommand}}},
dislikeToggleButtonRenderer:{configurable:!0,enumerable:!0,get:function(){var a,z=_.H((a=this.toolbarSurface)==null?void 0:a.prepareAccountCommand,_.Wl),I,J,r,P,N,u,E,O,f,A;return{style:{styleType:this.isVisiblyDisabled?"STYLE_VISIBLY_DISABLED":"STYLE_TEXT"},size:{sizeType:"SIZE_DEFAULT"},isDisabled:!((I=this.toolbarSharedData)==null||!I.disabledDislikeCommand),isToggled:!this.isVisiblyDisabled&&((J=this.toolbarState)==null?void 0:J.likeState)==="TOOLBAR_LIKE_STATE_DISLIKED",defaultIcon:{iconType:"DISLIKE"},
defaultServiceEndpoint:this.isVisiblyDisabled?void 0:z!=null?z:_.H((r=this.toolbarSurface)==null?void 0:r.dislikeCommand,_.Wl),toggledServiceEndpoint:this.isVisiblyDisabled?void 0:z!=null?z:_.H((P=this.toolbarSurface)==null?void 0:P.undislikeCommand,_.Wl),defaultCommand:this.isVisiblyDisabled?_.H((N=this.toolbarSurface)==null?void 0:N.commentDisabledActionCommand,_.Wl):void 0,defaultTooltip:(u=this.toolbarData)==null?void 0:u.dislikeInactiveTooltip,toggledTooltip:(E=this.toolbarData)==null?void 0:
E.dislikeActiveTooltip,toggledStyle:{styleType:this.isVisiblyDisabled?"STYLE_VISIBLY_DISABLED":"STYLE_DEFAULT_ACTIVE"},accessibilityData:{accessibilityData:{label:this.isReply?(O=this.toolbarSharedData)==null?void 0:O.dislikeReplyButtonA11y:(f=this.toolbarSharedData)==null?void 0:f.dislikeCommentButtonA11y}},toggledAccessibilityData:{accessibilityData:{label:(A=this.toolbarSharedData)==null?void 0:A.undislikeButtonA11y}},preventAutoToggle:this.isVisiblyDisabled||this.hasPrepareAccountCommand}}},
creatorHeartSupportedRenderer:{configurable:!0,enumerable:!0,get:function(){var a,z,I;if(((a=this.toolbarState)==null?void 0:a.heartState)!==void 0&&((z=this.toolbarState)==null?void 0:z.heartState)!=="TOOLBAR_HEART_STATE_UNKNOWN"&&((I=this.toolbarState)==null?void 0:I.heartState)!=="TOOLBAR_HEART_STATE_UNHEARTED"){var J,r,P,N,u,E,O,f,A,n,F,h,v,d;return{creatorHeartRenderer:{creatorThumbnail:{thumbnails:[{url:(J=this.toolbarData)==null?void 0:J.creatorThumbnailUrl,width:32,height:32}]},heartIcon:{iconType:"FULL_HEART"},
isHearted:((r=this.toolbarState)==null?void 0:r.heartState)==="TOOLBAR_HEART_STATE_HEARTED"||((P=this.toolbarState)==null?void 0:P.heartState)==="TOOLBAR_HEART_STATE_HEARTED_EDITABLE",isEnabled:!this.isVisiblyDisabled&&(((N=this.toolbarState)==null?void 0:N.heartState)==="TOOLBAR_HEART_STATE_UNHEARTED_EDITABLE"||((u=this.toolbarState)==null?void 0:u.heartState)==="TOOLBAR_HEART_STATE_HEARTED_EDITABLE"),heartEndpoint:this.isVisiblyDisabled?void 0:_.H((E=this.toolbarSurface)==null?void 0:E.heartCommand,
_.Wl),unheartEndpoint:this.isVisiblyDisabled?void 0:_.H((O=this.toolbarSurface)==null?void 0:O.unheartCommand,_.Wl),disabledEndpoint:this.isVisiblyDisabled?_.H((f=this.toolbarSurface)==null?void 0:f.commentDisabledActionCommand,_.Wl):void 0,styleType:this.isVisiblyDisabled?"CREATOR_HEART_STYLE_TYPE_VISIBLY_DISABLED":void 0,heartedTooltip:(A=this.toolbarData)==null?void 0:A.heartActiveTooltip,unheartedTooltip:(n=this.toolbarData)==null?void 0:n.heartInactiveTooltip,heartedAccessibility:{accessibilityData:{label:((F=
this.toolbarState)==null?void 0:F.heartState)==="TOOLBAR_HEART_STATE_HEARTED_EDITABLE"?(h=this.toolbarSharedData)==null?void 0:h.unheartButtonA11y:(v=this.toolbarSharedData)==null?void 0:v.heartButtonA11y}},unheartedAccessibility:{accessibilityData:{label:(d=this.toolbarSharedData)==null?void 0:d.heartButtonA11y}}}}}}},
hasReplyCommand:{configurable:!0,enumerable:!0,get:function(){var a;return!((a=this.toolbarSurface)==null||!a.replyCommand)}},
replyButtonRenderer:{configurable:!0,enumerable:!0,get:function(){var a,z,I,J;return{size:"SIZE_DEFAULT",style:this.isVisiblyDisabled||this.isSubsOnlyCommentsIneligibleUser?"STYLE_VISIBLY_DISABLED":"STYLE_TEXT",text:{runs:[{text:(a=this.commentStrings)==null?void 0:a.replyButtonText}]},navigationEndpoint:this.isVisiblyDisabled||this.isSubsOnlyCommentsIneligibleUser?void 0:_.H((z=this.toolbarSurface)==null?void 0:z.replyCommand,_.Wl),command:this.isVisiblyDisabled?_.H((I=this.toolbarSurface)==null?
void 0:I.commentDisabledActionCommand,_.Wl):this.isSubsOnlyCommentsIneligibleUser?_.H((J=this.toolbarSurface)==null?void 0:J.subscribersOnlySnackbarCommand,_.Wl):void 0}}}});
h5.prototype.onYtServiceRequestSent=h5.prototype.onYtServiceRequestSent;h5.prototype.hideReplyDialogDiv=h5.prototype.hideReplyDialogDiv;_.L([_.x(),_.p("design:type",Object)],h5.prototype,"commentStrings",void 0);_.L([_.x(),_.p("design:type",Boolean)],h5.prototype,"isReply",void 0);_.L([_.x(),_.p("design:type",Object)],h5.prototype,"toolbarData",void 0);_.L([_.x(),_.p("design:type",Object)],h5.prototype,"toolbarSharedData",void 0);
_.L([_.x(),_.p("design:type",String)],h5.prototype,"toolbarStateKey",void 0);_.L([_.x(),_.p("design:type",String)],h5.prototype,"toolbarSurfaceKey",void 0);_.L([_.Q(_.pV),_.p("design:type",Object)],h5.prototype,"ytdReduxBehavior",void 0);_.L([_.Q(_.Ms.YtComponentBehavior),_.p("design:type",Object)],h5.prototype,"ytComponentBehavior",void 0);_.L([_.Q(_.u4.YtRendererstamperBehavior),_.p("design:type",Object)],h5.prototype,"ytRendererstamperBehavior",void 0);
_.L([_.Q(_.rI),_.p("design:type",Object)],h5.prototype,"ytdOpenPopupBehavior",void 0);_.L([_.A3("#reply-dialog"),_.p("design:type",HTMLElement)],h5.prototype,"replyDialogDiv",void 0);_.L([_.A3("#replybox"),_.p("design:type",Object)],h5.prototype,"replyBox",void 0);_.L([_.A3("ytd-creator-heart-renderer"),_.p("design:type",Object)],h5.prototype,"heartButton",void 0);_.L([_.x({selector:function(a,z){return _.Bd(a.entities,"engagementToolbarStateEntityPayload",z)},
selectorArgs:["toolbarStateKey"]}),_.p("design:type",Object)],h5.prototype,"toolbarState",void 0);_.L([_.x({selector:d7G,selectorArgs:["toolbarSurfaceKey"]}),_.p("design:type",Object)],h5.prototype,"toolbarSurface",void 0);_.L([_.x(),_.p("design:type",Object)],h5.prototype,"buttonOverrides",void 0);_.L([_.gz("yt-commentbox-dismiss"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],h5.prototype,"hideReplyDialogDiv",null);
_.L([_.S("toolbarData","toolbarState"),_.p("design:type",String),_.p("design:paramtypes",[])],h5.prototype,"likeCount",null);_.L([_.S("likeCount"),_.p("design:type",Boolean),_.p("design:paramtypes",[])],h5.prototype,"showLikeCount",null);_.L([_.S("toolbarSurface"),_.p("design:type",Boolean),_.p("design:paramtypes",[])],h5.prototype,"isVisiblyDisabled",null);_.L([_.S("toolbarSurface"),_.p("design:type",Boolean),_.p("design:paramtypes",[])],h5.prototype,"isSubsOnlyCommentsIneligibleUser",null);
_.L([_.S("toolbarSurface"),_.p("design:type",Boolean),_.p("design:paramtypes",[])],h5.prototype,"isSubsOnlyCommentsEligibleUser",null);_.L([_.S("toolbarSurface"),_.p("design:type",Boolean),_.p("design:paramtypes",[])],h5.prototype,"hasPrepareAccountCommand",null);_.L([_.S("toolbarData","toolbarState","toolbarSurface"),_.p("design:type",Object),_.p("design:paramtypes",[])],h5.prototype,"likeToggleButtonRenderer",null);
_.L([_.S("isReply","toolbarData","toolbarState","toolbarSurface"),_.p("design:type",Object),_.p("design:paramtypes",[])],h5.prototype,"dislikeToggleButtonRenderer",null);_.L([_.S("toolbarData","toolbarState","toolbarSurface"),_.p("design:type",Object),_.p("design:paramtypes",[])],h5.prototype,"creatorHeartSupportedRenderer",null);_.L([_.S("toolbarSurface"),_.p("design:type",Boolean),_.p("design:paramtypes",[])],h5.prototype,"hasReplyCommand",null);
_.L([_.S("toolbarSurface","commentStrings","isVisiblyDisabled"),_.p("design:type",Object),_.p("design:paramtypes",[])],h5.prototype,"replyButtonRenderer",null);_.L([_.x(),_.p("design:type",Object)],h5.prototype,"replyButtonOverrides",void 0);_.L([_.gz("yt-service-request-sent"),_.p("design:type",Function),_.p("design:paramtypes",[CustomEvent,_.lJ]),_.p("design:returntype")],h5.prototype,"onYtServiceRequestSent",null);_.L([_.U({is:"ytd-comment-engagement-bar",disableElementRegistration:!0})],h5);
_.D(h5,"ytd-comment-engagement-bar",function(){if(I9G!==void 0)return I9G;var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-comment-engagement-bar--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="toolbar" class="style-scope ytd-comment-engagement-bar">\n  \n  <ytd-toggle-button-renderer id="like-button" button-tooltip-position="bottom" data="[[likeToggleButtonRenderer]]" icon-size="16" overrides="[[buttonOverrides]]" class="style-scope ytd-comment-engagement-bar">\n  </ytd-toggle-button-renderer>\n  <span id="vote-count-middle" hidden="[[!showLikeCount]]" aria-label$="[[voteCount.accessibility.accessibilityData.label]]" class="style-scope ytd-comment-engagement-bar">\n    [[likeCount]]\n  </span>\n  \n  <ytd-toggle-button-renderer id="dislike-button" button-tooltip-position="bottom" data="[[dislikeToggleButtonRenderer]]" icon-size="16" overrides="[[buttonOverrides]]" class="style-scope ytd-comment-engagement-bar">\n  </ytd-toggle-button-renderer>\n  \n  <div id="creator-heart" class="style-scope ytd-comment-engagement-bar"></div>\n  \n  <ytd-button-renderer id="reply-button-end" data="[[replyButtonRenderer]]" force-icon-button="true" hidden="[[!hasReplyCommand]]" overrides="[[replyButtonOverrides]]" on-click="handleReplyButtonClick" class="style-scope ytd-comment-engagement-bar">\n  </ytd-button-renderer>\n</div>\n\n<div id="reply-dialog" class="style-scope ytd-comment-engagement-bar"></div>\n');
a.content.insertBefore(_.w().content.cloneNode(!0),a.content.firstChild);return I9G=a},{mode:1});var JgO;var Vp=function(){return _.G.apply(this,arguments)||this};
_.b(Vp,_.G);_.L([_.Q(_.k.YtRendererBehavior),_.p("design:type",Object)],Vp.prototype,"ytRendererBehavior",void 0);_.L([_.x(),_.p("design:type",Object)],Vp.prototype,"data",void 0);_.L([_.U({is:"ytd-comment-inline-thumbnail-renderer",disableElementRegistration:!0})],Vp);
_.D(Vp,"ytd-comment-inline-thumbnail-renderer",function(){if(JgO!==void 0)return JgO;var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-comment-inline-thumbnail-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<a class="yt-simple-endpoint style-scope ytd-comment-inline-thumbnail-renderer" href$="[[computeHref_(data.navigationEndpoint)]]" data="[[data.navigationEndpoint]]">\n  <div class="thumbnail-container style-scope ytd-comment-inline-thumbnail-renderer" hidden="[[!data.thumbnail]]">\n    <yt-img-shadow disable-upgrade$="[[!data.thumbnail]]" object-fit="COVER" thumbnail="[[data.thumbnail]]" class="style-scope ytd-comment-inline-thumbnail-renderer">\n    </yt-img-shadow>\n  </div>\n</a>');a.content.insertBefore(_.w().content.cloneNode(!0),
a.content.firstChild);return JgO=a},{mode:1});var rgI;var Qp=function(){return _.G.apply(this,arguments)||this};
_.b(Qp,_.G);Qp.prototype.onMessageTap=function(){if(this.onTapCommand){var a=this.ytdOpenPopupBehavior.getNavigationEndpointPopupAction(this.onTapCommand);a&&this.ytdOpenPopupBehavior.openPopup(a)}};
_.eH.Object.defineProperties(Qp.prototype,{onTapCommand:{configurable:!0,enumerable:!0,get:function(){var a,z,I;return(a=this.data)==null?void 0:(z=a.button)==null?void 0:(I=z.buttonRenderer)==null?void 0:I.command}}});
_.L([_.Q(_.rI),_.p("design:type",Object)],Qp.prototype,"ytdOpenPopupBehavior",void 0);_.L([_.x(),_.p("design:type",Object)],Qp.prototype,"data",void 0);_.L([_.S("data.button.buttonRenderer.command"),_.p("design:type",Object),_.p("design:paramtypes",[])],Qp.prototype,"onTapCommand",null);_.L([_.U({is:"ytd-comment-pause-composer-renderer",disableElementRegistration:!0})],Qp);
_.D(Qp,"ytd-comment-pause-composer-renderer",function(){if(rgI!==void 0)return rgI;var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-comment-pause-composer-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="pause-composer" on-click="onMessageTap" class="style-scope ytd-comment-pause-composer-renderer">\n  <yt-attributed-string data="[[data.text]]" class="style-scope ytd-comment-pause-composer-renderer">\n  </yt-attributed-string>\n  <yt-attributed-string data="[[data.termsText]]" force-default-style="" class="style-scope ytd-comment-pause-composer-renderer">\n  </yt-attributed-string>\n</div>');
a.content.insertBefore(_.w().content.cloneNode(!0),a.content.firstChild);return rgI=a},{mode:1});var Pyw;var Z2O;var So=function(){var a=_.G.apply(this,arguments)||this;a.isOpen=!1;return a};
_.b(So,_.G);_.Z=So.prototype;_.Z.dataChanged=function(){this.isOpen=!1};
_.Z.onTap=function(){this.data&&(this.data.navigationEndpoint?_.PA(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint}):this.openDialog())};
_.Z.focus=function(){this.JSC$15739_commentbox.focus()};
_.Z.onYtCommentboxDismiss=function(){this.isOpen=!1};
_.Z.openDialog=function(){this.isOpen=!0;this.JSC$15739_commentbox.focus();this.JSC$15739_commentbox.maybeHeightChanged()};
So.prototype.onYtCommentboxDismiss=So.prototype.onYtCommentboxDismiss;So.prototype.dataChanged=So.prototype.dataChanged;_.L([_.Q(_.k.YtRendererBehavior),_.p("design:type",Object)],So.prototype,"ytRendererBehavior",void 0);_.L([_.x(),_.p("design:type",Object)],So.prototype,"data",void 0);_.L([_.x(),_.p("design:type",Object)],So.prototype,"isOpen",void 0);_.L([_.A3("#commentbox"),_.p("design:type",Object)],So.prototype,"JSC$15739_commentbox",void 0);
_.L([_.Fe("data"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],So.prototype,"dataChanged",null);_.L([_.gz("yt-commentbox-dismiss"),_.p("design:type",Function),_.p("design:paramtypes",[CustomEvent]),_.p("design:returntype")],So.prototype,"onYtCommentboxDismiss",null);_.L([_.U({is:"ytd-comment-reply-dialog-renderer",disableElementRegistration:!0})],So);
_.D(So,"ytd-comment-reply-dialog-renderer",function(){if(Z2O!==void 0)return Z2O;var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-comment-reply-dialog-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<ytd-commentbox id="commentbox" data="[[data]]" hidden="[[!isOpen]]" is-reply="" class="style-scope ytd-comment-reply-dialog-renderer">\n</ytd-commentbox>\n<div id="unopened-dialog" hidden="[[isOpen]]" class="style-scope ytd-comment-reply-dialog-renderer">\n  <yt-img-shadow id="author-thumbnail" height="40" thumbnail="[[data.authorThumbnail]]" width="40" class="style-scope ytd-comment-reply-dialog-renderer">\n  </yt-img-shadow>\n  <div id="placeholder-area" on-tap="onTap" on-keydown="onTap" class="style-scope ytd-comment-reply-dialog-renderer">\n    <yt-formatted-string id="placeholder-text" role="textbox" tabindex="0" text="[[data.placeholderText]]" class="style-scope ytd-comment-reply-dialog-renderer">\n    </yt-formatted-string>\n  </div>\n</div>\n');
a.content.insertBefore(_.w().content.cloneNode(!0),a.content.firstChild);return Z2O=a},{mode:1});var Cye;var iv=function(){return _.G.apply(this,arguments)||this};
_.b(iv,_.G);_.eH.Object.defineProperties(iv.prototype,{icon:{configurable:!0,enumerable:!0,get:function(){var a,z,I=(a=this.data)==null?void 0:(z=a.icon)==null?void 0:z.iconType;return I?"yt-icons:"+I.toLowerCase():null}}});
_.L([_.Q(_.k.YtRendererBehavior),_.p("design:type",Object)],iv.prototype,"ytRendererBehavior",void 0);_.L([_.x(),_.p("design:type",Object)],iv.prototype,"data",void 0);_.L([_.x(),_.S("data.icon"),_.p("design:type",Object),_.p("design:paramtypes",[])],iv.prototype,"icon",null);_.L([_.U({is:"ytd-pinned-comment-badge-renderer",disableElementRegistration:!0})],iv);
_.D(iv,"ytd-pinned-comment-badge-renderer",function(){if(Cye!==void 0)return Cye;var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-pinned-comment-badge-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-icon hidden="[[!icon]]" icon="[[icon]]" size="12" class="style-scope ytd-pinned-comment-badge-renderer"></yt-icon>\n<yt-formatted-string id="label" text="[[data.label]]" class="style-scope ytd-pinned-comment-badge-renderer"></yt-formatted-string>\n');a.content.insertBefore(_.w().content.cloneNode(!0),
a.content.firstChild);return Cye=a},{mode:1});var NNO;var tVv={},ujw={input:!0,meta:!0,br:!0,link:!0,img:!0},x$=null;tVv.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(){x$==null&&(x$=document.createElement("tp-yt-paper-tooltip"),x$.offset=8,x$.fitToVisibleBounds=!0)},
onMouseOver_:function(a){if(a=_.dJ(a.target,function(r){return r==this||r.getAttribute&&r.getAttribute("shared-tooltip-text")}.bind(this),!0)){var z=a.getAttribute("shared-tooltip-text");
if(z){var I=this,J=null;a!=this&&(a.tagName.toLowerCase()in ujw?I=a.parentElement:I=a,a.id&&(J=a.id));this.polymerController.createTooltipIfRequired_();if(x$.parentElement!=I||x$.for!=J)(0,_.t3)(x$).textContent=z,_.PK(I).appendChild(x$),x$.for=J,x$.animationDelay=this.polymerController.sharedTooltipAnimationDelay,x$.position=this.polymerController.sharedTooltipPosition}}}};var vT=function(){return _.G.apply(this,arguments)||this};
_.b(vT,_.G);vT.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]]"}}}}}};
vT.prototype.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","img")};
vT.prototype.colorChanged=function(){var a,z,I,J=(a=this.data)==null?void 0:(z=a.color)==null?void 0:(I=z.basicColorPaletteData)==null?void 0:I.foregroundBodyColor;J&&(this.rgbBadgeColor=_.Da(J));_.PK(this.hostElement).querySelector("#icon").style.color=this.rgbBadgeColor};
vT.prototype.tooltipChanged=function(){var a;((a=this.data)==null?0:a.tooltip)?this.hostElement.setAttribute("aria-label",this.data.tooltip):this.hostElement.removeAttribute("aria-label")};
vT.prototype.tooltipChanged=vT.prototype.tooltipChanged;vT.prototype.colorChanged=vT.prototype.colorChanged;_.L([_.Q(_.k.YtRendererBehavior),_.p("design:type",Object)],vT.prototype,"ytRendererBehavior",void 0);_.L([_.Q(_.u4.YtRendererstamperBehavior),_.p("design:type",Object)],vT.prototype,"ytRendererstamperBehavior",void 0);_.L([_.Q(tVv.YtSharedTooltipBehavior),_.p("design:type",Object)],vT.prototype,"ytSharedTooltipBehavior",void 0);_.L([_.x(),_.p("design:type",Object)],vT.prototype,"data",void 0);
_.L([_.x({value:"#4285F4"}),_.p("design:type",String)],vT.prototype,"rgbBadgeColor",void 0);_.L([_.O8("data.color"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],vT.prototype,"colorChanged",null);_.L([_.O8("data.tooltip"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],vT.prototype,"tooltipChanged",null);_.L([_.U({is:"ytd-sponsor-comment-badge-renderer",disableElementRegistration:!0})],vT);
_.D(vT,"ytd-sponsor-comment-badge-renderer",function(){if(NNO!==void 0)return NNO;var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-sponsor-comment-badge-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="icon" aria-hidden="true" class="style-scope ytd-sponsor-comment-badge-renderer"></div>\n<div id="custom-badge" aria-hidden="true" class="style-scope ytd-sponsor-comment-badge-renderer"></div>\n');
a.content.insertBefore(_.w().content.cloneNode(!0),a.content.firstChild);return NNO=a},{mode:1});var Ezo;var BNJ;var Gy=function(){return _.G.apply(this,arguments)||this};
_.b(Gy,_.G);Gy.prototype.computeState=function(a){switch(a==null?void 0:a.stateIdentifier){case "TRI_STATE_IDENTIFIER_UNTOGGLED_STATE":return"untoggled";case "TRI_STATE_IDENTIFIER_TOGGLING_STATE":return"toggling";case "TRI_STATE_IDENTIFIER_TOGGLED_STATE":return"toggled";default:return"unknown"}};
Gy.prototype.updateStateIdentifier=function(a){if(this.viewModel.triStateKey){var z=this.viewModel.triStateKey;this.ytdReduxBehavior.dispatch(_.XK("triStateButtonStateEntityPayload",z,{key:z,stateIdentifier:a}))}};
Gy.prototype.onClick=function(){var a=this;if(this.data)switch(this.ytRendererBehavior.logExplicitClick(this.data),this.state){case "toggled":this.updateStateIdentifier("TRI_STATE_IDENTIFIER_UNTOGGLED_STATE");break;case "untoggled":this.viewModel.transitionCommand?(this.updateStateIdentifier("TRI_STATE_IDENTIFIER_TOGGLING_STATE"),this.ytComponentBehavior.resolveCommand(this.viewModel.transitionCommand,{commandController:{onSuccess:function(){a.updateStateIdentifier("TRI_STATE_IDENTIFIER_TOGGLED_STATE")},
onServerError:function(){a.updateStateIdentifier("TRI_STATE_IDENTIFIER_UNTOGGLED_STATE")}}})):this.updateStateIdentifier("TRI_STATE_IDENTIFIER_TOGGLED_STATE")}};
_.eH.Object.defineProperties(Gy.prototype,{data:{configurable:!0,enumerable:!0,get:function(){switch(this.state){case "untoggled":return this.viewModel.untoggledStateData;case "toggling":return this.viewModel.togglingStateData;case "toggled":return this.viewModel.toggledStateData}}},
buttonText:{configurable:!0,enumerable:!0,get:function(){var a;return((a=this.data)==null?void 0:a.buttonText)||""}}});
_.L([_.x(),_.p("design:type",Object)],Gy.prototype,"viewModel",void 0);_.L([_.Q(_.Ms.YtComponentBehavior),_.p("design:type",Object)],Gy.prototype,"ytComponentBehavior",void 0);_.L([_.Q(_.pV),_.p("design:type",Object)],Gy.prototype,"ytdReduxBehavior",void 0);_.L([_.Q(_.k.YtRendererBehavior),_.p("design:type",Object)],Gy.prototype,"ytRendererBehavior",void 0);_.L([_.x({selector:WCi,selectorArgs:["viewModel.triStateKey"]}),_.p("design:type",Object)],Gy.prototype,"triStateButtonStateEntity",void 0);
_.L([_.x({computed:"computeState(triStateButtonStateEntity)",reflectToAttribute:!0}),_.p("design:type",String)],Gy.prototype,"state",void 0);_.L([_.S("viewModel","state"),_.p("design:type",Object),_.p("design:paramtypes",[])],Gy.prototype,"data",null);_.L([_.S("data"),_.p("design:type",String),_.p("design:paramtypes",[])],Gy.prototype,"buttonText",null);_.L([_.U({disableElementRegistration:!0,is:"ytd-tri-state-button-view-model"})],Gy);
_.D(Gy,"ytd-tri-state-button-view-model",function(){if(BNJ!==void 0)return BNJ;var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-tri-state-button-view-model--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<tp-yt-paper-button noink="" on-click="onClick" class="style-scope ytd-tri-state-button-view-model">\n  [[buttonText]]\n</tp-yt-paper-button>');a.content.insertBefore(_.w().content.cloneNode(!0),
a.content.firstChild);return BNJ=a},{mode:1});var gzv;var O2l;var $$=function(){var a=_.G.apply(this,arguments)||this;a.defaultIconToFilled=!_.K("kevlar_fill_comment_chip_icon_killswitch");return a};
_.b($$,_.G);$$.prototype.beforeRegister=function(){this.ironA11yKeysBehavior.keyBindings={"enter:keydown":"onTap","space:keydown":"onTap"}};
$$.prototype.dataChanged=function(){if(this.data){var a,z;((a=this.data.chipColorPalette)==null?0:a.backgroundColor)&&((z=this.data.chipColorPalette)==null?0:z.foregroundTitleColor)&&_.uK(this.hostElement,{"--yt-pdg-comment-chip-background-color":_.RX(this.data.chipColorPalette.backgroundColor),"--yt-pdg-comment-chip-font-color":_.RX(this.data.chipColorPalette.foregroundTitleColor)});var I;((I=this.data)==null?0:I.command)?(_.uK(this.hostElement,{"--yt-pdg-comment-chip-cursor":"pointer"}),this.hostElement.setAttribute("role",
"button"),this.hostElement.setAttribute("tabindex","0")):(_.uK(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}};
$$.prototype.onTap=function(){var a;if(this.data&&(a=this.data)!=null&&a.command){var z;this.ytComponentBehavior.resolveCommand((z=this.data)==null?void 0:z.command)}};
$$.prototype.getIconSize=function(){return _.K("kevlar_fill_comment_chip_icon_killswitch")?24:12};
$$.prototype.onTap=$$.prototype.onTap;$$.prototype.dataChanged=$$.prototype.dataChanged;_.L([_.Q(_.k.YtRendererBehavior),_.p("design:type",Object)],$$.prototype,"ytRendererBehavior",void 0);_.L([_.Q(_.Ms.YtComponentBehavior),_.p("design:type",Object)],$$.prototype,"ytComponentBehavior",void 0);_.L([_.Q(_.V_),_.p("design:type",Object)],$$.prototype,"ironA11yKeysBehavior",void 0);_.L([_.x(),_.p("design:type",Object)],$$.prototype,"data",void 0);
_.L([_.x(),_.p("design:type",Object)],$$.prototype,"basePriceText",void 0);_.L([_.x(),_.p("design:type",Object)],$$.prototype,"chipIcon",void 0);_.L([_.x(),_.p("design:type",Object)],$$.prototype,"defaultIconToFilled",void 0);_.L([_.Fe("data"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],$$.prototype,"dataChanged",null);_.L([_.gz("tap"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],$$.prototype,"onTap",null);
_.L([_.dz({is:"yt-pdg-comment-chip-renderer",disableElementRegistration:!0})],$$);
_.D($$,"yt-pdg-comment-chip-renderer",function(){if(O2l===void 0){var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-pdg-comment-chip-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.pdg.yt_pdg_comment_chip_renderer.yt.pdg.comment.chip.renderer.css.js--\x3e<div id="comment-chip-container" class="style-scope yt-pdg-comment-chip-renderer"><yt-icon default-to-filled="[[defaultIconToFilled]]" icon="[[chipIcon.iconType]]" size="[[getIconSize()]]" class="style-scope yt-pdg-comment-chip-renderer"></yt-icon><span id="comment-chip-price" class="style-scope yt-pdg-comment-chip-renderer"> [[getSimpleString(basePriceText)]] </span></div>');a.content.insertBefore(_.w().content.cloneNode(!0),
a.content.firstChild);var z=a.content,I=z.insertBefore;gzv===void 0&&(gzv=document.createElement("template"));var J=gzv;I.call(z,J.content.cloneNode(!0),a.content.firstChild);O2l=a}a=O2l;return a},{mode:2});var XE=function(){var a=_.G.apply(this,arguments)||this;a.useSmallAvatars=_.K("small_avatars_for_comments");a.webWatchCompactComments=_.K("web_watch_compact_comments");a.editDialog=null;return a};
_.b(XE,_.G);_.Z=XE.prototype;_.Z.onShow=function(){_.Tb("cmv",void 0,"wn_comments")};
_.Z.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"}}}};
_.Z.detached=function(){this.editDialog=null;this.expander.reset()};
_.Z.updateBackgroundColor=function(){if(this.backgroundColor){var a={"--ytd-comment-paid-background-color":_.RX(this.backgroundColor),"--ytd-decorated-comment-background-offset-left":"8px","--ytd-decorated-comment-background-offset-top":"8px"};_.uK(this.hostElement,a)}else _.uK(this.hostElement,{"--ytd-comment-paid-background-color":"initial"})};
_.Z.resetExpander=function(){var a;(a=this.expander)==null||a.reset()};
_.Z.openEditDialog=function(a){a.dialog&&(this.editDialog=a.dialog,this.editReplyDialogContainer?this.editReplyDialogContainer.openDialog():this.editCommentDialogContainer&&this.editCommentDialogContainer.focus())};
_.Z.onYtNavigate=function(a){var z=a.detail.endpoint;if(z=_.H(z,_.SxE)||_.H(z,_.i$X))a.stopPropagation(),this.openEditDialog(z)};
_.Z.onYtCommentboxDismiss=function(){this.editDialog=null;_.uK(this.hostElement,{"--ytd-decorated-comment-reply-box-height-offset":"0px"})};
_.Z.onAuthorThumbnailClicked=function(){_.K("enable_profile_cards_on_comments")&&(this==null?0:this.authorThumbnailEndpoint)&&(this==null?0:this.authorThumbnailAnchor)&&this.ytComponentBehavior.resolveCommand(this.authorThumbnailEndpoint,{form:{sourceElement:this.authorThumbnailAnchor}})};
_.Z.onYtCommentboxResize=function(a){var z;(a==null?0:(z=a.detail)==null?0:z.height)&&_.uK(this.hostElement,{"--ytd-decorated-comment-reply-box-height-offset":a.detail.height+"px"})};
_.eH.Object.defineProperties(XE.prototype,{linked:{configurable:!0,enumerable:!0,get:function(){return!!this.viewModel.linkedCommentText}},
linkedCommentBadge:{configurable:!0,enumerable:!0,get:function(){return this.viewModel&&this.linked?{metadataBadgeRenderer:{label:this.viewModel.linkedCommentText,style:"BADGE_STYLE_TYPE_SIMPLE"}}:null}},
pinned:{configurable:!0,enumerable:!0,get:function(){return!!this.viewModel.pinnedText}},
pinnedCommentBadge:{configurable:!0,enumerable:!0,get:function(){return this.viewModel&&this.pinned?{renderer:{icon:{iconType:"KEEP"},label:{runs:[{text:this.viewModel.pinnedText}]}}}:null}},
authorCommentBadge:{configurable:!0,enumerable:!0,get:function(){var a,z=(a=this.commentEntity)==null?void 0:a.author;return z&&(z.isCreator||z.isVerified||z.isArtist)?{renderer:{authorEndpoint:z.channelPageEndpoint?_.H(z.channelPageEndpoint,_.Wl):_.H(z.channelCommand,_.Wl),authorText:{runs:[{text:z.displayName}]},color:z.isCreator?{basicColorPaletteData:{backgroundColor:Number.parseInt("ff888888",16),foregroundTitleColor:Number.parseInt("ffffffff",16)}}:void 0,icon:z.isArtist?{iconType:"AUDIO_BADGE"}:
z.isVerified?{iconType:z.isCreator?"CHECK_CIRCLE_THICK":"CHECK"}:void 0,iconTooltip:z.isArtist||z.isVerified?z.innerBadgeA11y:void 0}}:null}},
hasAuthorBadge:{configurable:!0,enumerable:!0,get:function(){return!!this.authorCommentBadge}},
sponsorCommentBadge:{configurable:!0,enumerable:!0,get:function(){var a,z=(a=this.commentEntity)==null?void 0:a.author;return z!=null&&z.sponsorBadgeUrl?{renderer:{customBadge:{thumbnails:[{url:z.sponsorBadgeUrl}]},tooltip:z.sponsorBadgeA11y}}:null}},
hasSponsorBadge:{configurable:!0,enumerable:!0,get:function(){return!!this.sponsorCommentBadge}},
pdgCommentChipRenderer:{configurable:!0,enumerable:!0,get:function(){var a;return _.H((a=this.commentSurfaceEntity)==null?void 0:a.pdgCommentChip,_.I5G)||null}},
hasVoiceReply:{configurable:!0,enumerable:!0,get:function(){var a;return this.voiceReplyContainerViewModel&&((a=this.voiceReplyContainerViewModel)==null?void 0:a.transcriptText)}},
voiceReplyContainerViewModel:{configurable:!0,enumerable:!0,get:function(){var a;return _.H((a=this.commentSurfaceEntity)==null?void 0:a.voiceReplyContainerViewModel,$Qw)||null}},
voiceReplyUnavailableText:{configurable:!0,enumerable:!0,get:function(){var a;return this.voiceReplyContainerViewModel&&(a=this.voiceReplyContainerViewModel)!=null&&a.voiceReplyUnavailableText?this.voiceReplyContainerViewModel.voiceReplyUnavailableText:null}},
viewModel:{configurable:!0,enumerable:!0,get:function(){return this.data||{}}},
backgroundColor:{configurable:!0,enumerable:!0,get:function(){var a,z;return(z=(a=this.commentSurfaceEntity)==null?void 0:a.commentBackgroundColor)!=null?z:null}},
optimalReadingWidthComments:{configurable:!0,enumerable:!0,get:function(){return _.K("web_watch_compact_comments")}},
isReply:{configurable:!0,enumerable:!0,get:function(){var a,z;return(((a=this.commentEntity)==null?void 0:(z=a.properties)==null?void 0:z.replyLevel)||0)>0}},
authorThumbnailEndpoint:{configurable:!0,enumerable:!0,get:function(){var a,z;if(_.K("enable_profile_cards_on_comments")&&((a=this.commentEntity)==null?0:(z=a.author)==null?0:z.profileCardEndpoint)&&this.viewModel.allowProfileCard){var I,J;return _.H((I=this.commentEntity)==null?void 0:(J=I.author)==null?void 0:J.profileCardEndpoint,_.Wl)}var r,P;return _.H((r=this.commentEntity)==null?void 0:(P=r.avatar)==null?void 0:P.endpoint,_.Wl)}},
authorNameEndpoint:{configurable:!0,enumerable:!0,get:function(){var a,z;if(_.K("enable_profile_cards_on_comments")&&((a=this.commentEntity)==null?0:(z=a.author)==null?0:z.channelPageEndpoint)){var I,J;return _.H((I=this.commentEntity)==null?void 0:(J=I.author)==null?void 0:J.channelPageEndpoint,_.Wl)}var r,P;return _.H((r=this.commentEntity)==null?void 0:(P=r.avatar)==null?void 0:P.endpoint,_.Wl)}},
authorThumbnail:{configurable:!0,enumerable:!0,get:function(){var a,z,I,J,r=(a=this.commentEntity)==null?void 0:(z=a.avatar)==null?void 0:(I=z.image)==null?void 0:(J=I.sources)==null?void 0:J[0];return r?{thumbnails:[{url:r.url,width:r.width,height:r.height}]}:null}},
authorTextClass:{configurable:!0,enumerable:!0,get:function(){var a,z;return((a=this.commentEntity)==null?0:(z=a.author)==null?0:z.isCreator)?"channel-owner":""}},
authorChannelName:{configurable:!0,enumerable:!0,get:function(){var a,z;return((a=this.commentEntity)==null?void 0:(z=a.author)==null?void 0:z.displayName)||""}},
publishedTime:{configurable:!0,enumerable:!0,get:function(){var a,z;return((a=this.commentEntity)==null?void 0:(z=a.properties)==null?void 0:z.publishedTime)||null}},
publishedTimeCommand:{configurable:!0,enumerable:!0,get:function(){var a;return _.H((a=this.commentSurfaceEntity)==null?void 0:a.publishedTimeCommand,_.Wl)||null}},
contentText:{configurable:!0,enumerable:!0,get:function(){var a,z;if(((a=this.commentEntity)==null?0:a.translatedContent)&&((z=this.translateButtonState)==null?void 0:z.stateIdentifier)==="TRI_STATE_IDENTIFIER_TOGGLED_STATE")return this.commentEntity.translatedContent;var I;if((I=this.voiceReplyContainerViewModel)==null?0:I.transcriptText)return this.voiceReplyContainerViewModel.transcriptText;var J,r;return((J=this.commentEntity)==null?void 0:(r=J.properties)==null?void 0:r.content)||null}},
shouldShowReadMoreInitially:{configurable:!0,enumerable:!0,get:function(){return!1}},
expandText:{configurable:!0,enumerable:!0,get:function(){var a,z;return((a=this.commentSharedEntity)==null?void 0:(z=a.strings)==null?void 0:z.expandText)||""}},
collapseText:{configurable:!0,enumerable:!0,get:function(){var a,z;return((a=this.commentSharedEntity)==null?void 0:(z=a.strings)==null?void 0:z.collapseText)||""}},
shouldShowTranslateButton:{configurable:!0,enumerable:!0,get:function(){var a;return!((a=this.commentEntity)==null||!a.isTranslationAvailable)}},
translateButton:{configurable:!0,enumerable:!0,get:function(){if(!this.commentEntity||!this.commentSharedEntity)return{};var a,z,I=(z=_.H((a=this.viewModel)==null?void 0:a.translateButton,GVE))!=null?z:{},J,r,P,N,u,E,O,f,A,n,F;return Object.assign({},I,{untoggledStateData:Object.assign({},I.untoggledStateData,{buttonText:(J=this.commentEntity)==null?void 0:(r=J.translateData)==null?void 0:r.text}),togglingStateData:Object.assign({},I.togglingStateData,{buttonText:(P=this.commentSharedEntity)==null?
void 0:(N=P.strings)==null?void 0:N.translatingText}),toggledStateData:Object.assign({},I.toggledStateData,{buttonText:(u=this.commentSharedEntity)==null?void 0:(E=u.strings)==null?void 0:E.seeOriginalText}),transitionCommand:((O=this.commentEntity)==null?0:O.translatedContent)?void 0:_.H((f=this.commentEntity)==null?void 0:(A=f.translateData)==null?void 0:A.translateComment,_.Wl),triStateKey:(n=this.commentEntity)==null?void 0:(F=n.properties)==null?void 0:F.translateButtonEntityKey})}},
overflowMenuRenderer:{configurable:!0,enumerable:!0,get:function(){var a,z,I;return((z=_.H(_.H((a=this.toolbarSurface)==null?void 0:a.menuCommand,_.Wl),xbi))==null?void 0:(I=z.menu)==null?void 0:I.menuRenderer)||null}}});
XE.prototype.onYtCommentboxResize=XE.prototype.onYtCommentboxResize;XE.prototype.onYtCommentboxDismiss=XE.prototype.onYtCommentboxDismiss;XE.prototype.onYtNavigate=XE.prototype.onYtNavigate;XE.prototype.resetExpander=XE.prototype.resetExpander;XE.prototype.updateBackgroundColor=XE.prototype.updateBackgroundColor;_.L([_.Q(_.k.YtRendererBehavior),_.p("design:type",Object)],XE.prototype,"ytRendererBehavior",void 0);_.L([_.Q(_.pV),_.p("design:type",Object)],XE.prototype,"ytdReduxBehavior",void 0);
_.L([_.Q(_.Ms.YtComponentBehavior),_.p("design:type",Object)],XE.prototype,"ytComponentBehavior",void 0);_.L([_.Q(_.u4.YtRendererstamperBehavior),_.p("design:type",Object)],XE.prototype,"ytRendererstamperBehavior",void 0);_.L([_.A3("#author-thumbnail > button"),_.p("design:type",HTMLElement)],XE.prototype,"authorThumbnailAnchor",void 0);_.L([_.x({reflectToAttribute:!0}),_.S("viewModel"),_.p("design:type",Boolean),_.p("design:paramtypes",[])],XE.prototype,"linked",null);
_.L([_.S("viewModel","linked"),_.p("design:type",Object),_.p("design:paramtypes",[])],XE.prototype,"linkedCommentBadge",null);_.L([_.x({reflectToAttribute:!0}),_.S("viewModel"),_.p("design:type",Boolean),_.p("design:paramtypes",[])],XE.prototype,"pinned",null);_.L([_.S("viewModel","pinned"),_.p("design:type",Object),_.p("design:paramtypes",[])],XE.prototype,"pinnedCommentBadge",null);
_.L([_.S("commentEntity","commentSharedEntity"),_.p("design:type",Object),_.p("design:paramtypes",[])],XE.prototype,"authorCommentBadge",null);_.L([_.x({reflectToAttribute:!0}),_.S("authorCommentBadge"),_.p("design:type",Object),_.p("design:paramtypes",[])],XE.prototype,"hasAuthorBadge",null);_.L([_.S("commentEntity"),_.p("design:type",Object),_.p("design:paramtypes",[])],XE.prototype,"sponsorCommentBadge",null);
_.L([_.x({reflectToAttribute:!0}),_.S("sponsorCommentBadge"),_.p("design:type",Object),_.p("design:paramtypes",[])],XE.prototype,"hasSponsorBadge",null);_.L([_.S("commentSurfaceEntity"),_.p("design:type",Object),_.p("design:paramtypes",[])],XE.prototype,"pdgCommentChipRenderer",null);_.L([_.x({reflectToAttribute:!0}),_.S("voiceReplyContainerViewModel"),_.p("design:type",Object),_.p("design:paramtypes",[])],XE.prototype,"hasVoiceReply",null);
_.L([_.S("commentSurfaceEntity"),_.p("design:type",Object),_.p("design:paramtypes",[])],XE.prototype,"voiceReplyContainerViewModel",null);_.L([_.S("voiceReplyContainerViewModel"),_.p("design:type",Object),_.p("design:paramtypes",[])],XE.prototype,"voiceReplyUnavailableText",null);_.L([_.x(),_.p("design:type",Object)],XE.prototype,"data",void 0);_.L([_.S("data"),_.p("design:type",Object),_.p("design:paramtypes",[])],XE.prototype,"viewModel",null);
_.L([_.x({selector:function(a,z){return _.Bd(a.entities,"commentSharedEntityPayload",z)},
selectorArgs:["viewModel.sharedKey"]}),_.p("design:type",Object)],XE.prototype,"commentSharedEntity",void 0);_.L([_.x({selector:function(a,z){return _.Bd(a.entities,"commentEntityPayload",z)},
selectorArgs:["viewModel.commentKey"]}),_.p("design:type",Object)],XE.prototype,"commentEntity",void 0);_.L([_.x({selector:function(a,z){return _.Bd(a.entities,"commentSurfaceEntityPayload",z)},
selectorArgs:["viewModel.commentSurfaceKey"]}),_.p("design:type",Object)],XE.prototype,"commentSurfaceEntity",void 0);_.L([_.x({selector:d7G,selectorArgs:["viewModel.toolbarSurfaceKey"]}),_.p("design:type",Object)],XE.prototype,"toolbarSurface",void 0);_.L([_.x({selector:WCi,selectorArgs:["commentEntity.properties.translateButtonEntityKey"]}),_.p("design:type",Object)],XE.prototype,"translateButtonState",void 0);
_.L([_.S("commentSurfaceEntity"),_.p("design:type",Object),_.p("design:paramtypes",[])],XE.prototype,"backgroundColor",null);_.L([_.x({reflectToAttribute:!0}),_.S("viewModel"),_.p("design:type",Boolean),_.p("design:paramtypes",[])],XE.prototype,"optimalReadingWidthComments",null);_.L([_.A3("ytd-expander"),_.p("design:type",Object)],XE.prototype,"expander",void 0);
_.L([_.O8("backgroundColor"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],XE.prototype,"updateBackgroundColor",null);_.L([_.x({reflectToAttribute:!0}),_.p("design:type",Object)],XE.prototype,"useSmallAvatars",void 0);_.L([_.x({reflectToAttribute:!0}),_.p("design:type",Object)],XE.prototype,"webWatchCompactComments",void 0);_.L([_.x({reflectToAttribute:!0}),_.S("commentEntity"),_.p("design:type",Object),_.p("design:paramtypes",[])],XE.prototype,"isReply",null);
_.L([_.S("commentEntity"),_.p("design:type",Object),_.p("design:paramtypes",[])],XE.prototype,"authorThumbnailEndpoint",null);_.L([_.S("commentEntity"),_.p("design:type",Object),_.p("design:paramtypes",[])],XE.prototype,"authorNameEndpoint",null);_.L([_.S("commentEntity"),_.p("design:type",Object),_.p("design:paramtypes",[])],XE.prototype,"authorThumbnail",null);_.L([_.S("commentEntity"),_.p("design:type",String),_.p("design:paramtypes",[])],XE.prototype,"authorTextClass",null);
_.L([_.S("commentEntity"),_.p("design:type",String),_.p("design:paramtypes",[])],XE.prototype,"authorChannelName",null);_.L([_.S("commentEntity"),_.p("design:type",Object),_.p("design:paramtypes",[])],XE.prototype,"publishedTime",null);_.L([_.S("commentSurfaceEntity"),_.p("design:type",Object),_.p("design:paramtypes",[])],XE.prototype,"publishedTimeCommand",null);
_.L([_.S("commentEntity","translateButtonState","voiceReplyContainerViewModel"),_.p("design:type",Object),_.p("design:paramtypes",[])],XE.prototype,"contentText",null);_.L([_.O8("contentText"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],XE.prototype,"resetExpander",null);_.L([_.S("commentEntity"),_.p("design:type",Boolean),_.p("design:paramtypes",[])],XE.prototype,"shouldShowReadMoreInitially",null);
_.L([_.S("commentSharedEntity"),_.p("design:type",String),_.p("design:paramtypes",[])],XE.prototype,"expandText",null);_.L([_.S("commentSharedEntity"),_.p("design:type",String),_.p("design:paramtypes",[])],XE.prototype,"collapseText",null);_.L([_.S("commentEntity"),_.p("design:type",Boolean),_.p("design:paramtypes",[])],XE.prototype,"shouldShowTranslateButton",null);
_.L([_.S("commentEntity","commentSharedEntity"),_.p("design:type",Object),_.p("design:paramtypes",[])],XE.prototype,"translateButton",null);_.L([_.S("toolbarSurface"),_.p("design:type",Object),_.p("design:paramtypes",[])],XE.prototype,"overflowMenuRenderer",null);_.L([_.x(),_.p("design:type",Object)],XE.prototype,"editDialog",void 0);_.L([_.A3("ytd-comment-dialog-renderer"),_.p("design:type",Object)],XE.prototype,"editCommentDialogContainer",void 0);
_.L([_.A3("ytd-comment-reply-dialog-renderer"),_.p("design:type",Object)],XE.prototype,"editReplyDialogContainer",void 0);_.L([_.gz("yt-navigate"),_.p("design:type",Function),_.p("design:paramtypes",[CustomEvent]),_.p("design:returntype")],XE.prototype,"onYtNavigate",null);_.L([_.gz("yt-commentbox-dismiss"),_.p("design:type",Function),_.p("design:paramtypes",[CustomEvent]),_.p("design:returntype")],XE.prototype,"onYtCommentboxDismiss",null);
_.L([_.gz("yt-commentbox-resize"),_.p("design:type",Function),_.p("design:paramtypes",[CustomEvent]),_.p("design:returntype")],XE.prototype,"onYtCommentboxResize",null);_.L([_.U({disableElementRegistration:!0,is:"ytd-comment-view-model"})],XE);
_.D(XE,"ytd-comment-view-model",function(){if(Ezo!==void 0)return Ezo;var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-comment-view-model--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="paid-comment-background" class="style-scope ytd-comment-view-model"></div>\n<div id="linked-comment-badge" class="style-scope ytd-comment-view-model"></div>\n\n<div id="body" hidden="[[editDialog]]" class="style-scope ytd-comment-view-model">\n  \n  <div id="author-thumbnail" class="style-scope ytd-comment-view-model">\n    <button id="author-thumbnail-button" aria-label="[[authorChannelName]]" on-click="onAuthorThumbnailClicked" class="style-scope ytd-comment-view-model">\n      <yt-img-shadow fit="" height="40" thumbnail="[[authorThumbnail]]" width="40" class="style-scope ytd-comment-view-model"> </yt-img-shadow>\n    </button>\n  </div>\n  <div id="main" class="style-scope ytd-comment-view-model">\n    <div id="header" class="style-scope ytd-comment-view-model">\n      <div id="pinned-comment-badge" class="style-scope ytd-comment-view-model"></div>\n      <div id="header-author" class="style-scope ytd-comment-view-model">\n        \n        <h3 class="style-scope ytd-comment-view-model">\n          \n          <a id="author-text" class="yt-simple-endpoint style-scope ytd-comment-view-model" href$="[[computeOptionalHref_(authorNameEndpoint)]]" data="[[authorNameEndpoint]]" hidden="[[authorCommentBadge]]">\n            <span class$="[[authorTextClass]] style-scope ytd-comment-view-model"> [[authorChannelName]] </span>\n          </a>\n        </h3>\n        <span id="author-comment-badge" class="style-scope ytd-comment-view-model"></span>\n        <span id="sponsor-comment-badge" class="style-scope ytd-comment-view-model"></span>\n        <span dir="auto" id="published-time-text" class="style-scope ytd-comment-view-model">\n          <a class="yt-simple-endpoint style-scope ytd-comment-view-model" href$="[[computeHref_(publishedTimeCommand)]]" data="[[publishedTimeCommand]]">\n            [[publishedTime]]\n          </a>\n        </span>\n      </div>\n    </div>\n    \n    <ytd-expander id="expander" can-toggle="[[shouldShowReadMoreInitially]]" max-number-of-lines="4" recompute-on-resize="[[webWatchCompactComments]]" class="style-scope ytd-comment-view-model">\n      \n      <yt-pdg-comment-chip-renderer id="paid-comment-chip" slot="content" data="[[pdgCommentChipRenderer]]" hidden="[[!pdgCommentChipRenderer]]" class="style-scope ytd-comment-view-model">\n      </yt-pdg-comment-chip-renderer>\n      <yt-attributed-string id="content-text" slot="content" data="[[contentText]]" user-input="" class="style-scope ytd-comment-view-model">\n      </yt-attributed-string>\n      <span class="more-button style-scope ytd-comment-view-model" slot="more-button">[[expandText]]</span>\n      <span class="less-button style-scope ytd-comment-view-model" slot="less-button">[[collapseText]]</span>\n    </ytd-expander>\n    <yt-attributed-string id="error-text" data="[[voiceReplyUnavailableText]]" hidden="[[!voiceReplyUnavailableText]]" class="style-scope ytd-comment-view-model">\n    </yt-attributed-string>\n    <ytd-tri-state-button-view-model class="translate-button style-scope ytd-comment-view-model" hidden="[[!shouldShowTranslateButton]]" view-model="[[translateButton]]">\n    </ytd-tri-state-button-view-model>\n    <ytd-comment-engagement-bar id="action-buttons" comment-strings="[[commentSharedEntity.strings]]" is-reply="[[isReply]]" toolbar-data="[[commentEntity.toolbar]]" toolbar-shared-data="[[commentSharedEntity.toolbarShared]]" toolbar-state-key="[[viewModel.toolbarStateKey]]" toolbar-surface-key="[[viewModel.toolbarSurfaceKey]]" class="style-scope ytd-comment-view-model">\n    </ytd-comment-engagement-bar>\n  </div>\n  \n  <div id="action-menu" class="style-scope ytd-comment-view-model">\n    <ytd-menu-renderer data="[[overflowMenuRenderer]]" class="style-scope ytd-comment-view-model"></ytd-menu-renderer>\n  </div>\n</div>\n<div id="edit-dialog" hidden="[[!editDialog]]" class="style-scope ytd-comment-view-model"></div>\n');a.content.insertBefore(_.w().content.cloneNode(!0),
a.content.firstChild);return Ezo=a},{mode:_.Np("kevlar_poly_si_batch_j025")?1:2});var Ty=function(){var a=_.G.apply(this,arguments)||this;a.modern=_.K("web_modern_buttons");a.commentThreadingEnabled=_.K("web_delhi_comment_threads");a.isWatchGrid=_.K("kevlar_watch_grid");a.buttonOverrides=a.commentThreadingEnabled?{iconPosition:"trailing",type:"text"}:{style:"call-to-action"};a.JSC$15785_spinnerEl=null;return a};
_.b(Ty,_.G);_.Z=Ty.prototype;_.Z.configureContinuationPathMap=function(){return _.K("web_delhi_comment_threads")?{"yt-append-continuation-items-action":"subThreads"}:{"yt-append-continuation-items-action":"contents","yt-reload-continuation-items-command-body":"contents"}};
_.Z.shouldShowExpandedThreads=function(a,z){return this.commentThreadingEnabled&&!z&&(a==null?void 0:a.length)>0};
_.Z.shouldShowCollapsedThreads=function(a,z){return this.commentThreadingEnabled&&z&&a};
_.Z.computeThreadRenderer=function(a){return _.H(a,hSj)};
_.Z.computeIsContinuationItem=function(a){return!!this.computeContinuationItemRenderer(a)};
_.Z.computeButtonRenderer=function(a){return _.H(a,_.lc)};
_.Z.computeContinuationItemRenderer=function(a){return _.H(a,_.av)};
_.Z.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]]"}}}}}};
_.Z.attached=function(){this.isShowRepliesVisible=!0};
_.Z.dataChanged=function(){var a=this.expanderContents;a&&(a.hidden=!0);this.isLoading=!1};
_.Z.endsInContinuation=function(a){return!!a&&a.length>0&&!!this.computeContinuationItemRenderer(a[a.length-1])};
_.Z.computeShouldShowHideRepliesButton=function(a,z){return!a&&z};
_.Z.triggerFirstContinuation=function(){this.continuationItemRenderer&&!this.continuationItemRenderer.buttonRenderer&&(this.continuationItemRenderer.showButton=!1)};
_.Z.isLoadingChanged=function(){this.isLoading&&!this.JSC$15785_spinnerEl&&(this.JSC$15785_spinnerEl=document.createElement("tp-yt-paper-spinner-lite"),_.PK(this.expanderContents).appendChild(this.JSC$15785_spinnerEl));this.JSC$15785_spinnerEl&&(this.JSC$15785_spinnerEl.active=this.isLoading);if(this.isLoading)this.contents.classList.add("reloading");else{var a;(a=this.contents)==null||a.classList.remove("reloading")}};
_.Z.handleIsShowMoreTap=function(){this.isShowRepliesVisible=!1;this.commentThreadingEnabled||this.triggerFirstContinuation();var a=_.H(this.data.viewReplies,_.lc);a&&this.ytRendererBehavior.logExplicitClick(a);this.commentThreadingEnabled&&this.toggleCollapsed&&this.toggleCollapsed()};
_.Z.handleIsShowLessTap=function(){this.isShowRepliesVisible=!0;var a=_.H(this.data.hideReplies,_.lc);a&&this.ytRendererBehavior.logExplicitClick(a);this.commentThreadingEnabled&&this.toggleCollapsed&&this.toggleCollapsed()};
_.Z.isShowMoreChanged=function(){if(!this.commentThreadingEnabled){var a=_.PK(this.hostElement).querySelector("#expander-contents");a&&(a.hidden=this.isShowRepliesVisible)}};
_.Z.computeAlign=function(){if(this.modern){var a;return!((a=this.data)==null?0:a.viewRepliesCreatorThumbnail)}};
_.eH.Object.defineProperties(Ty.prototype,{hasContinuation:{configurable:!0,enumerable:!0,get:function(){var a,z;return this.endsInContinuation((a=this.data)==null?void 0:a.contents)||this.commentThreadingEnabled&&this.endsInContinuation((z=this.data)==null?void 0:z.subThreads)}}});
Ty.prototype.isShowMoreChanged=Ty.prototype.isShowMoreChanged;Ty.prototype.isLoadingChanged=Ty.prototype.isLoadingChanged;Ty.prototype.triggerFirstContinuation=Ty.prototype.triggerFirstContinuation;Ty.prototype.dataChanged=Ty.prototype.dataChanged;_.L([_.Q(_.k.YtRendererBehavior),_.p("design:type",Object)],Ty.prototype,"ytRendererBehavior",void 0);_.L([_.Q(_.u4.YtRendererstamperBehavior),_.p("design:type",Object)],Ty.prototype,"ytRendererstamperBehavior",void 0);
_.L([_.Q(_.M8),_.p("design:type",Object)],Ty.prototype,"ytContinuationHandlerBehavior",void 0);_.L([_.x(),_.p("design:type",Object)],Ty.prototype,"data",void 0);_.L([_.x({reflectToAttribute:!0}),_.p("design:type",Object)],Ty.prototype,"modern",void 0);_.L([_.x({reflectToAttribute:!0}),_.p("design:type",Object)],Ty.prototype,"commentThreadingEnabled",void 0);_.L([_.x(),_.p("design:type",Boolean)],Ty.prototype,"collapsed",void 0);
_.L([_.x(),_.p("design:type",Function)],Ty.prototype,"toggleCollapsed",void 0);_.L([_.x(),_.p("design:type",Boolean)],Ty.prototype,"isLoading",void 0);_.L([_.x({value:!0}),_.p("design:type",Boolean)],Ty.prototype,"isShowRepliesVisible",void 0);_.L([_.x({value:!1}),_.p("design:type",Boolean)],Ty.prototype,"useNewFormatting",void 0);_.L([_.x({reflectToAttribute:!0}),_.p("design:type",Object)],Ty.prototype,"isWatchGrid",void 0);_.L([_.x(),_.p("design:type",Object)],Ty.prototype,"buttonOverrides",void 0);
_.L([_.A3("#expander-contents"),_.p("design:type",HTMLElement)],Ty.prototype,"expanderContents",void 0);_.L([_.A3("ytd-continuation-item-renderer"),_.p("design:type",Object)],Ty.prototype,"continuationItemRenderer",void 0);_.L([_.A3("#contents"),_.p("design:type",HTMLElement)],Ty.prototype,"contents",void 0);_.L([_.Fe("data"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],Ty.prototype,"dataChanged",null);
_.L([_.S("data.contents","data.subThreads.*"),_.p("design:type",Boolean),_.p("design:paramtypes",[])],Ty.prototype,"hasContinuation",null);_.L([_.gz("yt-expander-more-tapped"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],Ty.prototype,"triggerFirstContinuation",null);_.L([_.O8("isLoading"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],Ty.prototype,"isLoadingChanged",null);
_.L([_.O8("isShowRepliesVisible"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],Ty.prototype,"isShowMoreChanged",null);_.L([_.U({is:"ytd-comment-replies-renderer",disableElementRegistration:!0})],Ty);
_.D(Ty,"ytd-comment-replies-renderer",function(){if(Pyw!==void 0)return Pyw;var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-comment-replies-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="expander" hidden="[[commentThreadingEnabled]]" class="style-scope ytd-comment-replies-renderer">\n  <div class="expander-header style-scope ytd-comment-replies-renderer" teaser$="[[data.viewRepliesCreatorThumbnail]]">\n    <div class="more-button style-scope ytd-comment-replies-renderer" aria-expanded="false" hidden="[[!isShowRepliesVisible]]" on-click="handleIsShowMoreTap">\n      <template is="dom-if" if="[[data.viewRepliesIcon]]" class="style-scope ytd-comment-replies-renderer">\n        <ytd-button-renderer id="more-replies-icon" class="more-button style-scope ytd-comment-replies-renderer" align-by-text="[[modern]]" data="[[data.viewRepliesIcon.buttonRenderer]]" hidden="[[!isShowRepliesVisible]]" noink="" overrides="[[buttonOverrides]]">\n        </ytd-button-renderer>\n      </template>\n      <template is="dom-if" if="[[data.viewRepliesCreatorThumbnail]]" class="style-scope ytd-comment-replies-renderer">\n        <div id="creator-thumbnail" class="creator-thumbnail style-scope ytd-comment-replies-renderer">\n          <yt-img-shadow fit="" height="24" thumbnail="[[data.viewRepliesCreatorThumbnail]]" width="24" class="style-scope ytd-comment-replies-renderer">\n          </yt-img-shadow>\n        </div>\n        <span class="dot style-scope ytd-comment-replies-renderer">\u00b7</span>\n      </template>\n      <ytd-button-renderer id="more-replies" class="more-button style-scope ytd-comment-replies-renderer" align-by-text="[[computeAlign(modern, data.viewRepliesCreatorThumbnail)]]" data="[[data.viewReplies.buttonRenderer]]" hidden="[[!isShowRepliesVisible]]" noink="" overrides="[[buttonOverrides]]">\n      </ytd-button-renderer>\n    </div>\n    <div class="less-button style-scope ytd-comment-replies-renderer" aria-expanded="true" hidden="[[isShowRepliesVisible]]" on-click="handleIsShowLessTap">\n      <template is="dom-if" if="[[data.hideRepliesIcon]]" class="style-scope ytd-comment-replies-renderer">\n        <ytd-button-renderer id="less-replies-icon" class="less-button style-scope ytd-comment-replies-renderer" align-by-text="[[modern]]" data="[[data.hideRepliesIcon.buttonRenderer]]" hidden="[[isShowRepliesVisible]]" noink="" overrides="[[buttonOverrides]]">\n        </ytd-button-renderer>\n      </template>\n      <template is="dom-if" if="[[data.viewRepliesCreatorThumbnail]]" class="style-scope ytd-comment-replies-renderer">\n        <div id="creator-thumbnail" class="creator-thumbnail style-scope ytd-comment-replies-renderer">\n          <yt-img-shadow fit="" height="24" thumbnail="[[data.viewRepliesCreatorThumbnail]]" width="24" class="style-scope ytd-comment-replies-renderer">\n          </yt-img-shadow>\n        </div>\n        <span class="dot style-scope ytd-comment-replies-renderer">\u00b7</span>\n      </template>\n      <ytd-button-renderer id="less-replies" class="less-button style-scope ytd-comment-replies-renderer" align-by-text="[[computeAlign(modern, data.viewRepliesCreatorThumbnail)]]" data="[[data.hideReplies.buttonRenderer]]" hidden="[[isShowRepliesVisible]]" noink="" overrides="[[buttonOverrides]]">\n      </ytd-button-renderer>\n    </div>\n  </div>\n  <div id="expander-contents" class="style-scope ytd-comment-replies-renderer">\n    <div id="contents" class="style-scope ytd-comment-replies-renderer"></div>\n    <div class="cont-button style-scope ytd-comment-replies-renderer" id="continuation"></div>\n  </div>\n</div>\n<div hidden="[[!isShowRepliesVisible]]" id="teaser-replies" class="style-scope ytd-comment-replies-renderer"></div>\n<div hidden="[[!shouldShowCollapsedThreads(data.viewReplies, collapsed)]]" class="style-scope ytd-comment-replies-renderer">\n  <div class="sub-thread style-scope ytd-comment-replies-renderer" is-button="">\n    <div class="threadline style-scope ytd-comment-replies-renderer">\n      <div class="connection style-scope ytd-comment-replies-renderer"></div>\n      <div class="continuation style-scope ytd-comment-replies-renderer"></div>\n      <div class="shadow style-scope ytd-comment-replies-renderer"></div>\n    </div>\n    <div class="sub-thread-content style-scope ytd-comment-replies-renderer">\n      <ytd-button-renderer id="more-replies-sub-thread" data="[[computeButtonRenderer(data.viewReplies)]]" overrides="[[buttonOverrides]]" on-click="handleIsShowMoreTap" class="style-scope ytd-comment-replies-renderer">\n      </ytd-button-renderer>\n    </div>\n  </div>\n</div>\n<div hidden="[[!shouldShowExpandedThreads(data.subThreads, collapsed)]]" class="style-scope ytd-comment-replies-renderer">\n  <template is="dom-repeat" items="[[data.subThreads]]" class="style-scope ytd-comment-replies-renderer">\n    <div class="sub-thread style-scope ytd-comment-replies-renderer" is-button$="[[computeIsContinuationItem(item)]]">\n      <div class="threadline style-scope ytd-comment-replies-renderer">\n        <div class="connection style-scope ytd-comment-replies-renderer"></div>\n        <div class="continuation style-scope ytd-comment-replies-renderer"></div>\n        <div class="shadow style-scope ytd-comment-replies-renderer"></div>\n      </div>\n      <div class="sub-thread-content style-scope ytd-comment-replies-renderer">\n        <template is="dom-if" if="[[computeThreadRenderer(item)]]" class="style-scope ytd-comment-replies-renderer">\n          <ytd-comment-thread-renderer data="[[computeThreadRenderer(item)]]" is-sub-thread="" class="style-scope ytd-comment-replies-renderer">\n          </ytd-comment-thread-renderer>\n        </template>\n        <template is="dom-if" if="[[computeContinuationItemRenderer(item)]]" class="style-scope ytd-comment-replies-renderer">\n          <ytd-continuation-item-renderer button-overrides="[[buttonOverrides]]" data="[[computeContinuationItemRenderer(item)]]" is-comments-section="" show-button="" class="style-scope ytd-comment-replies-renderer">\n          </ytd-continuation-item-renderer>\n        </template>\n      </div>\n    </div>\n  </template>\n  <template is="dom-if" if="[[computeShouldShowHideRepliesButton(hasContinuation, data.hideReplies)]]" class="style-scope ytd-comment-replies-renderer">\n    <div class="sub-thread style-scope ytd-comment-replies-renderer" is-button="">\n      <div class="threadline style-scope ytd-comment-replies-renderer">\n        <div class="connection style-scope ytd-comment-replies-renderer"></div>\n        <div class="continuation style-scope ytd-comment-replies-renderer"></div>\n        <div class="shadow style-scope ytd-comment-replies-renderer"></div>\n      </div>\n      <div class="sub-thread-content style-scope ytd-comment-replies-renderer">\n        <ytd-button-renderer id="less-replies-sub-thread" data="[[computeButtonRenderer(data.hideReplies)]]" overrides="[[buttonOverrides]]" on-click="handleIsShowLessTap" class="style-scope ytd-comment-replies-renderer">\n        </ytd-button-renderer>\n      </div>\n    </div>\n  </template>\n</div>\n');a.content.insertBefore(_.w().content.cloneNode(!0),
a.content.firstChild);return Pyw=a},{mode:1});var f9o;var dj=function(){var a=_.G.apply(this,arguments)||this;a.isOpen=!1;a.commentDialog=null;a.useSmallAvatars=_.K("small_avatars_for_comments");a.useSmallAvatarsEngagementPanelOnly=_.K("small_avatars_for_comments_ep");a.placeholderFocusListener=null;a.hasOpenedDialog=!1;a.actionMap={"yt-create-comment-action":"onCreateCommentAction","yt-hide-identity-chip-action":"onHideIdentityChip"};return a};
_.b(dj,_.G);_.Z=dj.prototype;_.Z.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]]"}}}}}};
_.Z.ready=function(){var a=this,z=_.PK(this.hostElement).querySelector("#placeholder-area"),I=_.PK(this.hostElement).querySelector("#simplebox-placeholder"),J=function(r){r.stopPropagation();r instanceof KeyboardEvent&&r.type==="keypress"&&r.keyCode!==13&&r.keyCode!==32||a.openDialog()};
this.placeholderFocusListener=J;I.addEventListener("focus",this.placeholderFocusListener);z.addEventListener("tap",J);z.addEventListener("keypress",J)};
_.Z.maybeRemoveFocusEventListener=function(){var a;(a=this.data)!=null&&a.prepareAccountEndpoint&&!_.K("web_comments_simplebox_modal_focus_on_tap_ks")&&(a=_.PK(this.hostElement).querySelector("#simplebox-placeholder"),this.placeholderFocusListener&&(a.removeEventListener("focus",this.placeholderFocusListener),this.placeholderFocusListener=null))};
_.Z.dataChanged=function(){this.maybeRemoveFocusEventListener();this.commentDialog=null;this.hasOpenedDialog=this.isOpen=!1;this.showCreateDialog&&this.openDialog()};
_.Z.openDialog=function(){if(this.data)if(this.data.prepareAccountEndpoint)_.K("web_comment_simplebox_resolve_polymer_command_ks")?_.Og.instance.resolveCommand(this.data.prepareAccountEndpoint):_.fw(this.data.prepareAccountEndpoint,this.hostElement);else{if(this.data.subscribersOnlySnackbarCommand&&!this.hasOpenedDialog){var a=this.ytdOpenPopupBehavior.getNavigationEndpointPopupAction(this.data.subscribersOnlySnackbarCommand);a&&this.ytdOpenPopupBehavior.openPopup(a);this.hasOpenedDialog=!0}this.commentDialog||
(this.commentDialog={commentDialogRenderer:this.computeCommentDialog(this.data)});this.isOpen=!0;_.PK(this.hostElement).querySelector("#comment-dialog").firstElementChild.focus()}};
_.Z.onYtCommentboxDismiss=function(a){a.stopPropagation();this.isOpen=!1};
_.Z.onCreateCommentAction=function(a){this.get("createCommentAction.contents",a)&&(this.isOpen=!1)};
_.Z.computeCommentDialog=function(a){return{placeholderText:a.placeholderText,authorThumbnail:a.authorThumbnail,submitButton:a.submitButton,imageButton:a.imageButton,cancelButton:a.cancelButton,emojiButton:a.emojiButton,emojis:a.emojis,emojiPicker:a.emojiPicker,aadcGuidelinesStateEntityKey:a.aadcGuidelinesStateEntityKey,openAadcDialog:a.openAadcDialog,unicodeEmojisUrl:a.unicodeEmojisUrl}};
_.Z.onHideIdentityChip=function(a){_.H(a,sH1)&&this.set("data.placeholderText",_.H(a,sH1).placeholderText)};
dj.prototype.onYtCommentboxDismiss=dj.prototype.onYtCommentboxDismiss;dj.prototype.dataChanged=dj.prototype.dataChanged;_.L([_.Q(_.u4.YtRendererstamperBehavior),_.p("design:type",Object)],dj.prototype,"ytRendererstamperBehavior",void 0);_.L([_.Q(_.rI),_.p("design:type",Object)],dj.prototype,"ytdOpenPopupBehavior",void 0);_.L([_.Q(_.k.YtRendererBehavior),_.p("design:type",Object)],dj.prototype,"ytRendererBehavior",void 0);
_.L([_.Q(_.Hc.YtActionHandlerBehavior),_.p("design:type",Object)],dj.prototype,"ytActionHandlerBehavior",void 0);_.L([_.x(),_.p("design:type",Object)],dj.prototype,"data",void 0);_.L([_.x(),_.p("design:type",Object)],dj.prototype,"isOpen",void 0);_.L([_.x(),_.p("design:type",Object)],dj.prototype,"commentDialog",void 0);_.L([_.x({reflectToAttribute:!0}),_.p("design:type",Boolean)],dj.prototype,"engagementPanel",void 0);
_.L([_.x({reflectToAttribute:!0}),_.p("design:type",Object)],dj.prototype,"useSmallAvatars",void 0);_.L([_.x({reflectToAttribute:!0}),_.p("design:type",Object)],dj.prototype,"useSmallAvatarsEngagementPanelOnly",void 0);_.L([_.x({reflectToAttribute:!0}),_.p("design:type",Boolean)],dj.prototype,"enableCreationBox",void 0);_.L([_.x(),_.p("design:type",Boolean)],dj.prototype,"showCreateDialog",void 0);
_.L([_.Fe("data"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],dj.prototype,"dataChanged",null);_.L([_.gz("yt-commentbox-dismiss"),_.p("design:type",Function),_.p("design:paramtypes",[CustomEvent]),_.p("design:returntype")],dj.prototype,"onYtCommentboxDismiss",null);_.L([_.U({is:"ytd-comment-simplebox-renderer",disableElementRegistration:!0})],dj);
_.D(dj,"ytd-comment-simplebox-renderer",function(){if(f9o!==void 0)return f9o;var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-comment-simplebox-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-img-shadow id="author-thumbnail" fit="" height="40" hidden="[[isOpen]]" thumbnail="[[data.authorThumbnail]]" width="40" class="style-scope ytd-comment-simplebox-renderer">\n</yt-img-shadow>\n<div id="placeholder-area" hidden="[[isOpen]]" class="style-scope ytd-comment-simplebox-renderer">\n  <yt-formatted-string id="simplebox-placeholder" role="textbox" tabindex="0" text="[[data.placeholderText]]" class="style-scope ytd-comment-simplebox-renderer">\n  </yt-formatted-string>\n</div>\n<div id="attachments" hidden="[[isOpen]]" class="style-scope ytd-comment-simplebox-renderer">\n  <div id="image-button" class="style-scope ytd-comment-simplebox-renderer"></div>\n</div>\n<div id="comment-dialog" hidden="[[!isOpen]]" class="style-scope ytd-comment-simplebox-renderer"></div>\n');
a.content.insertBefore(_.w().content.cloneNode(!0),a.content.firstChild);return f9o=a},{mode:1});var Agw;_.$q("itemSectionRenderer","commentThreadRenderer","ytd-comment-thread-renderer");var WT=function(){var a=_.G.apply(this,arguments)||this;a.addHoverEffect=_.K("swatcheroo_comments_hover_effect");a.useSmallAvatars=_.K("small_avatars_for_comments");a.threadHovered=!1;a.collapsed=!1;a.removed=!1;a.actionMap=a.configureActionMap();a.toggleCollapsed=function(){a.collapsed=!a.collapsed;a.collapsed&&_.K("web_comment_threading_scroll_on_collapse")&&_.ZF(a.hostElement,"yt-scroll-to-watch-element",[a.commentElement])};
return a};
_.b(WT,_.G);_.Z=WT.prototype;_.Z.configureActionMap=function(){return _.K("web_delhi_comment_threads")?{"yt-create-comment-reply-action":"createCommentReplyAction","yt-remove-comment-action":"removeCommentAction","yt-ban-author-action":"banAuthorAction","yt-hide-reported-comment-action":"hideReportedCommentAction"}:{}};
_.Z.createCommentReplyAction=function(a){a=_.H(a,foo);if(a!=null&&a.contents){var z=a.replyToCommentId,I=a.parentCommentId,J,r=(J=this.commentViewModel)==null?void 0:J.commentId;(r===z||r===I&&!z)&&this.attachReply(a.contents)}};
_.Z.attachReply=function(a){var z;((z=this.data)==null?0:z.replies)?(z=this.get("data.replies.commentRepliesRenderer.subThreads").length-1,this.get("data.replies.commentRepliesRenderer.subThreads."+z+".continuationItemRenderer")?this.splice("data.replies.commentRepliesRenderer.subThreads",z,0,a):this.push("data.replies.commentRepliesRenderer.subThreads",a)):this.set("data.replies",{commentRepliesRenderer:{subThreads:[a]}})};
_.Z.removeCommentAction=function(a){a=_.H(a,Fii);var z=a==null?void 0:a.commentId,I;z&&((I=this.commentViewModel)==null?void 0:I.commentId)===z&&this.maybeRemoveComment(a.actionResult)};
_.Z.banAuthorAction=function(a){a=_.H(a,gMw);var z=a==null?void 0:a.commentId,I;z&&((I=this.commentViewModel)==null?void 0:I.commentId)===z&&this.maybeRemoveComment(a.actionResult)};
_.Z.hideReportedCommentAction=function(a){a=_.H(a,Wie);var z=a==null?void 0:a.commentId,I;z&&((I=this.commentViewModel)==null?void 0:I.commentId)===z&&this.maybeRemoveComment(a.actionResult)};
_.Z.maybeRemoveComment=function(a){a&&a.status==="STATUS_SUCCEEDED"&&(this.feedbackText=a.feedbackText||_.zg("Comment removed"),this.removed=!0)};
_.Z.onTap=function(a){if(this.addHoverEffect&&!this.engagementPanel&&!_.qK(_.ch(a)||[],this.hostElement,["A".toString(),"BUTTON".toString(),"TP-YT-PAPER-BUTTON"])){var z;((z=window.getSelection())==null?0:z.toString().length)||_.fw({changeEngagementPanelVisibilityAction:{targetId:"engagement-panel-comments-section",visibility:"ENGAGEMENT_PANEL_VISIBILITY_EXPANDED"}},this.hostElement)}};
_.Z.attached=function(){var a=this,z;(z=this.commentThreadHitbox)==null||z.addEventListener("mouseover",function(){a.threadHovered=!0});
var I;(I=this.commentThreadHitbox)==null||I.addEventListener("mouseout",function(){a.threadHovered=!1});
var J;(J=this.commentThreadHitbox)==null||J.addEventListener("click",function(){a.maybeToggleCollapsed()})};
_.Z.maybeToggleCollapsed=function(){var a,z,I,J=(a=this.data)==null?void 0:(z=a.replies)==null?void 0:(I=z.commentRepliesRenderer)==null?void 0:I.subThreads;J&&(J.length===1&&_.H(J[0],_.av)||this.toggleCollapsed())};
_.eH.Object.defineProperties(WT.prototype,{commentViewModel:{configurable:!0,enumerable:!0,get:function(){var a;if((a=this.data)!=null&&a.commentViewModel)return _.H(this.data.commentViewModel,vMX)}},
hasSubThreading:{configurable:!0,enumerable:!0,get:function(){var a,z,I;return _.K("web_delhi_comment_threads")&&!!((a=this.data)==null?0:(z=a.replies)==null?0:(I=z.commentRepliesRenderer)==null?0:I.subThreads)}}});
WT.prototype.onTap=WT.prototype.onTap;_.L([_.Q(_.k.YtRendererBehavior),_.p("design:type",Object)],WT.prototype,"ytRendererBehavior",void 0);_.L([_.Q(_.Hc.YtActionHandlerBehavior),_.p("design:type",Object)],WT.prototype,"ytActionHandlerBehavior",void 0);_.L([_.Q(_.u4.YtRendererstamperBehavior),_.p("design:type",Object)],WT.prototype,"ytRendererstamperBehavior",void 0);_.L([_.x({reflectToAttribute:!0}),_.p("design:type",Object)],WT.prototype,"addHoverEffect",void 0);
_.L([_.x(),_.p("design:type",Object)],WT.prototype,"data",void 0);_.L([_.x({reflectToAttribute:!0}),_.p("design:type",Object)],WT.prototype,"useSmallAvatars",void 0);_.L([_.x({reflectToAttribute:!0}),_.p("design:type",Boolean)],WT.prototype,"isSubThread",void 0);_.L([_.A3(".thread-hitbox"),_.p("design:type",HTMLElement)],WT.prototype,"commentThreadHitbox",void 0);_.L([_.x({reflectToAttribute:!0}),_.p("design:type",Object)],WT.prototype,"threadHovered",void 0);
_.L([_.A3("#comment"),_.p("design:type",HTMLElement)],WT.prototype,"commentElement",void 0);_.L([_.x(),_.p("design:type",Object)],WT.prototype,"collapsed",void 0);_.L([_.x({reflectToAttribute:!0}),_.p("design:type",Object)],WT.prototype,"removed",void 0);_.L([_.x(),_.p("design:type",Object)],WT.prototype,"feedbackText",void 0);_.L([_.S("data"),_.p("design:type",Object),_.p("design:paramtypes",[])],WT.prototype,"commentViewModel",null);
_.L([_.S("data.replies"),_.p("design:type",Boolean),_.p("design:paramtypes",[])],WT.prototype,"hasSubThreading",null);_.L([_.x({reflectToAttribute:!0}),_.p("design:type",Boolean)],WT.prototype,"engagementPanel",void 0);_.L([_.gz("tap"),_.gz("click"),_.p("design:type",Function),_.p("design:paramtypes",[Event]),_.p("design:returntype")],WT.prototype,"onTap",null);_.L([_.U({is:"ytd-comment-thread-renderer",disableElementRegistration:!0})],WT);
_.D(WT,"ytd-comment-thread-renderer",function(){if(Agw!==void 0)return Agw;var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-comment-thread-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="comment-container" class="style-scope ytd-comment-thread-renderer">\n  <div class="threadline style-scope ytd-comment-thread-renderer" hidden="[[!hasSubThreading]]"><div class="continuation style-scope ytd-comment-thread-renderer"></div></div>\n  <div class="removed-placeholder style-scope ytd-comment-thread-renderer" hidden="[[!removed]]">\n    <yt-icon icon="WARNING_FILLED" class="style-scope ytd-comment-thread-renderer"></yt-icon>\n    <yt-formatted-string text="[[feedbackText]]" class="style-scope ytd-comment-thread-renderer"></yt-formatted-string>\n  </div>\n  <ytd-comment-view-model id="comment" data="[[commentViewModel]]" hidden="[[removed]]" class="style-scope ytd-comment-thread-renderer">\n  </ytd-comment-view-model>\n</div>\n<div id="replies" hidden="[[!data.replies]]" class="style-scope ytd-comment-thread-renderer">\n  <template is="dom-if" if="[[data.replies]]" class="style-scope ytd-comment-thread-renderer">\n    <ytd-comment-replies-renderer collapsed="[[collapsed]]" data="[[data.replies.commentRepliesRenderer]]" toggle-collapsed="[[toggleCollapsed]]" class="style-scope ytd-comment-thread-renderer">\n    </ytd-comment-replies-renderer>\n  </template>\n</div>\n<div class="thread-hitbox style-scope ytd-comment-thread-renderer" hidden="[[!hasSubThreading]]"></div>\n');
a.content.insertBefore(_.w().content.cloneNode(!0),a.content.firstChild);return Agw=a},{mode:_.Np("kevlar_poly_si_batch_j025")?1:2});var suw;var om=function(){var a=_.G.apply(this,arguments)||this;a.modernTypography=_.K("web_modern_typography");a.compactHeader=_.K("web_watch_compact_comments_header");a.hidePanelButton=!1;a.isPostSchedulingEnabled=_.K("enable_post_scheduling");a.hasFinishedStamping=!1;a.JSC$15808_handleOpenPostCommentDialogActionAfterStamp=!1;a.actionMap={"yt-signal-action-open-post-comment-dialog":"handleSignalActionOpenPostCommentDialogAction"};return a};
_.b(om,_.G);_.Z=om.prototype;
_.Z.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"}}}};
_.Z.attached=function(){this.hasActionsChange&&this.observePrefilledBackstagePostDialog()};
_.Z.onStampFinished=function(){this.hasFinishedStamping=!0;this.hasActionsChange&&this.observePrefilledBackstagePostDialog();this.JSC$15808_handleOpenPostCommentDialogActionAfterStamp&&this.handleSignalActionOpenPostCommentDialogAction()};
_.Z.onYtServiceRequestSent=function(a,z){if(!_.K("kevlar_command_handler")&&z.actions)for(a=0;a<z.actions.length;a++){var I=z.actions[a];_.H(I,LgO)&&_.PK(this.hostElement).querySelector("#backstage-post-dialog > ytd-backstage-post-dialog-renderer").openSchedulingPanel(_.H(I,LgO))}};
_.Z.observePrefilledBackstagePostDialog=function(){if(this.hasFinishedStamping){this.hasActionsChange=!1;var a;if(this.getPrefilledBackstagePostDialog((a=this.data)==null?void 0:a.actions)){_.PK(this.hostElement).querySelector("#prefilled-dialog-header").hidden=!1;var z=_.PK(this.hostElement).querySelector("#backstage-post-dialog").firstElementChild;z&&_.Yv(this,function(){z.focus();z.openDialog&&z.openDialog()})}}else this.hasActionsChange=!0};
_.Z.computeIsBackstage=function(a){return a};
_.Z.onYtCommentboxDismiss=function(){_.PK(this.hostElement).querySelector("#prefilled-dialog-header").hidden=!0;this.removePrefilledDialog(this.data)};
_.Z.removePrefilledDialog=function(a){if(a==null?0:a.actions){for(var z=a.actions.length-1;z>=0;z--){var I=void 0;((I=_.H(a.actions[z],V_G))==null?0:I.dialog)&&delete a.actions[z]}this.set("data",void 0);this.set("data",a)}};
_.Z.getPrefilledBackstagePostDialog=function(a){if(a)for(var z=0;z<a.length;z++){var I=a[z],J=void 0;if((J=_.H(I,V_G))==null?0:J.dialog)return _.H(I,V_G).dialog}return null};
_.Z.computeBackstagePostDialog=function(a){return a&&(this.getPrefilledBackstagePostDialog(a.actions)||a.createRenderer)};
_.Z.dataChanged=function(){if(this.data){var a=this.data.customEmojis,z=this.data.unicodeEmojisUrl;_.MT.clear();z&&_.AOv(_.MT,z);a&&_.MT.load(a)}};
_.Z.handleSignalActionOpenPostCommentDialogAction=function(){var a=_.PK(this.hostElement).querySelector("ytd-comment-simplebox-renderer");a?a.openDialog():this.JSC$15808_handleOpenPostCommentDialogActionAfterStamp=!0};
_.eH.Object.defineProperties(om.prototype,{useSpaceBetween:{configurable:!0,enumerable:!0,get:function(){return this.showCommentsPanelButton||_.K("kevlar_watch_grid")}},
showCommentsPanelButton:{configurable:!0,enumerable:!0,get:function(){var a,z,I,J,r,P,N;return!this.hidePanelButton&&_.K("kevlar_watch_comments_panel_button")&&((N=_.H((a=this.data)==null?void 0:(z=a.sortMenu)==null?void 0:(I=z.sortFilterSubMenuRenderer)==null?void 0:(J=I.subMenuItems)==null?void 0:(r=J[0])==null?void 0:(P=r.serviceEndpoint)==null?void 0:P.commandMetadata,_.O_))==null?void 0:N.apiUrl)==="/youtubei/v1/next"}},
commentsPanelButtonData:{configurable:!0,enumerable:!0,get:function(){if(this.showCommentsPanelButton)return{icon:{iconType:"EXPAND_ALL"},tooltip:_.AR("MINIPLAYER_EXPAND_LABEL"),text:_.Mo(_.AR("MINIPLAYER_EXPAND_LABEL")),command:{commandExecutorCommand:{commands:[{changeEngagementPanelVisibilityAction:{targetId:"engagement-panel-comments-section",visibility:"ENGAGEMENT_PANEL_VISIBILITY_EXPANDED"}},{scrollToEngagementPanelCommand:{targetId:"engagement-panel-comments-section"}}]}}}}}});
om.prototype.dataChanged=om.prototype.dataChanged;om.prototype.onYtCommentboxDismiss=om.prototype.onYtCommentboxDismiss;om.prototype.observePrefilledBackstagePostDialog=om.prototype.observePrefilledBackstagePostDialog;om.prototype.onYtServiceRequestSent=om.prototype.onYtServiceRequestSent;om.prototype.onStampFinished=om.prototype.onStampFinished;_.L([_.Q(_.Hc.YtActionHandlerBehavior),_.p("design:type",Object)],om.prototype,"ytActionHandlerBehavior",void 0);
_.L([_.Q(_.k.YtRendererBehavior),_.p("design:type",Object)],om.prototype,"ytRendererBehavior",void 0);_.L([_.Q(_.u4.YtRendererstamperBehavior),_.p("design:type",Object)],om.prototype,"ytRendererstamperBehavior",void 0);_.L([_.x(),_.p("design:type",Object)],om.prototype,"data",void 0);_.L([_.x({reflectToAttribute:!0}),_.p("design:type",Object)],om.prototype,"modernTypography",void 0);_.L([_.x({reflectToAttribute:!0}),_.p("design:type",Object)],om.prototype,"compactHeader",void 0);
_.L([_.x({reflectToAttribute:!0}),_.p("design:type",Boolean)],om.prototype,"engagementPanel",void 0);_.L([_.x(),_.p("design:type",Object)],om.prototype,"hidePanelButton",void 0);_.L([_.x({computed:"computeIsBackstage(data.isBackstageContent)",reflectToAttribute:!0}),_.p("design:type",Boolean)],om.prototype,"isBackstage",void 0);_.L([_.x({readOnly:!0,computed:"computeBackstagePostDialog(data)"}),_.p("design:type",Object)],om.prototype,"backstagePostDialog",void 0);
_.L([_.x(),_.p("design:type",Object)],om.prototype,"isPostSchedulingEnabled",void 0);_.L([_.x({reflectToAttribute:!0}),_.S("data","showCommentsPanelButton"),_.p("design:type",Object),_.p("design:paramtypes",[])],om.prototype,"useSpaceBetween",null);_.L([_.x({reflectToAttribute:!0}),_.S("data","hidePanelButton"),_.p("design:type",Object),_.p("design:paramtypes",[])],om.prototype,"showCommentsPanelButton",null);
_.L([_.S("data","showCommentsPanelButton"),_.p("design:type",Object),_.p("design:paramtypes",[])],om.prototype,"commentsPanelButtonData",null);_.L([_.gz("yt-rendererstamper-finished"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],om.prototype,"onStampFinished",null);_.L([_.gz("yt-service-request-sent"),_.p("design:type",Function),_.p("design:paramtypes",[CustomEvent,_.lJ]),_.p("design:returntype")],om.prototype,"onYtServiceRequestSent",null);
_.L([_.O8("data.actions"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],om.prototype,"observePrefilledBackstagePostDialog",null);_.L([_.gz("yt-commentbox-dismiss"),_.p("design:type",Function),_.p("design:paramtypes",[CustomEvent]),_.p("design:returntype")],om.prototype,"onYtCommentboxDismiss",null);_.L([_.O8("data"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],om.prototype,"dataChanged",null);
_.L([_.U({is:"ytd-comments-header-renderer",disableElementRegistration:!0})],om);
_.D(om,"ytd-comments-header-renderer",function(){if(suw!==void 0)return suw;var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-comments-header-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="title" hidden="[[!data.countText]]" class="style-scope ytd-comments-header-renderer">\n  <div id="leading-section" class="style-scope ytd-comments-header-renderer">\n    <h2 id="count" class="style-scope ytd-comments-header-renderer">\n      <yt-formatted-string class="count-text style-scope ytd-comments-header-renderer" text="[[data.countText]]"> </yt-formatted-string>\n    </h2>\n  </div>\n  <div id="additional-section" class="style-scope ytd-comments-header-renderer">\n    <span id="sort-menu" class="style-scope ytd-comments-header-renderer"></span>\n    <div id="panel-button" hidden="[[!showCommentsPanelButton]]" class="style-scope ytd-comments-header-renderer">\n      <ytd-button-renderer data="[[commentsPanelButtonData]]" class="style-scope ytd-comments-header-renderer"> </ytd-button-renderer>\n    </div>\n  </div>\n</div>\n<div id="red-commenting-div" hidden="[[!data.redCommentingText]]" class="style-scope ytd-comments-header-renderer">\n  <yt-formatted-string id="red-commenting-text" text="[[data.redCommentingText]]" class="style-scope ytd-comments-header-renderer">\n  </yt-formatted-string>\n</div>\n<div id="alert" class="style-scope ytd-comments-header-renderer"></div>\n<div id="prefilled-dialog-header" class="style-scope ytd-comments-header-renderer"></div>\n<div id="simple-box" class="style-scope ytd-comments-header-renderer"></div>\n<div id="paused-comments-message" class="style-scope ytd-comments-header-renderer"></div>\n<div id="backstage-post-dialog" class="style-scope ytd-comments-header-renderer"></div>\n<div id="post-stream-filter" hidden="[[!isPostSchedulingEnabled]]" class="style-scope ytd-comments-header-renderer"></div>\n<div id="zero-state-message" class="style-scope ytd-comments-header-renderer"></div>\n<div id="scheduling-zero-state-message" hidden="[[!isPostSchedulingEnabled]]" class="style-scope ytd-comments-header-renderer"></div>\n');a.content.insertBefore(_.w().content.cloneNode(!0),
a.content.firstChild);return suw=a},{mode:1});var nzJ;var Ud=function(){return _.G.apply(this,arguments)||this};
_.b(Ud,_.G);_.L([_.x(),_.p("design:type",Object)],Ud.prototype,"data",void 0);_.L([_.Q(_.k.YtRendererBehavior),_.p("design:type",Object)],Ud.prototype,"ytRendererBehavior",void 0);_.L([_.U({is:"ytd-destination-button-renderer",disableElementRegistration:!0})],Ud);
_.D(Ud,"ytd-destination-button-renderer",function(){if(nzJ!==void 0)return nzJ;var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-destination-button-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<a id="destination-content-root" class="yt-simple-endpoint style-scope ytd-destination-button-renderer" href$="[[computeHref_(data.onTap)]]" data="[[data.onTap]]">\n  <yt-img-shadow id="destination-icon" height="32" thumbnail="[[data.iconImage]]" width="32" class="style-scope ytd-destination-button-renderer"></yt-img-shadow>\n  <div id="destination-label-wrapper" class="style-scope ytd-destination-button-renderer">\n     <yt-formatted-string id="destination-label" text="[[data.label]]" class="style-scope ytd-destination-button-renderer"></yt-formatted-string>\n  </div>\n</a>\n');a.content.insertBefore(_.w().content.cloneNode(!0),
a.content.firstChild);return nzJ=a},{mode:1});var KWI;var D3=function(){var a=_.G.apply(this,arguments)||this;a.isRichGrid=!1;a.gridStateActionMap={"ytd-update-grid-state-action":"handleUpdateGridStateAction"};a.modernTypography=_.K("web_modern_typography");return a};
_.b(D3,_.G);_.Z=D3.prototype;_.Z.configureRendererStamper=function(){return{"data.destinationButtons":{id:"destination-buttons",mapping:{destinationButtonRenderer:{component:"ytd-destination-button-renderer"}}}}};
_.Z.attached=function(){this.ytActionHandlerBehavior.registerActionMap(this.gridStateActionMap)};
_.Z.handleUpdateGridStateAction=function(){this.updateDestinationButtonsVisibility()};
_.Z.updateDestinationButtonsVisibility=function(){if(!this.isRichGrid){var a;if((a=this.data)==null||!a.isExpanded){a=this.hostElement.clientWidth;var z;if(a&&(z=this.data)!=null&&z.destinationButtons){z=Math.floor((a+4)/214);a=this.data.destinationButtons.length;var I=Math.ceil(a/z);this.fullyVisibleRows=a%z===1&&I===2?1:Math.min(I,2);this.isShowMoreVisible=this.fullyVisibleRows<I}}}};
_.Z.updateRichGridDestinationButtonsVisibility=function(){var a,z;if(this.isRichGrid&&((a=this.data)==null||!a.isExpanded)&&(z=this.data)!=null&&z.destinationButtons){a=this.richGridItemsPerRow+1;z=this.data.destinationButtons.length;var I=Math.ceil(z/a);this.fullyVisibleRows=z%a===1&&I===2?1:Math.min(I,2);this.isShowMoreVisible=this.fullyVisibleRows<I}};
_.Z.onShowMoreClick=function(){this.isShowMoreVisible=!1;this.data&&(this.data.isExpanded=!0)};
D3.prototype.updateRichGridDestinationButtonsVisibility=D3.prototype.updateRichGridDestinationButtonsVisibility;_.L([_.x(),_.p("design:type",Object)],D3.prototype,"data",void 0);_.L([_.x({reflectToAttribute:!0}),_.p("design:type",Number)],D3.prototype,"fullyVisibleRows",void 0);_.L([_.x({reflectToAttribute:!0,value:!1}),_.p("design:type",Boolean)],D3.prototype,"isShowMoreVisible",void 0);_.L([_.x({reflectToAttribute:!0}),_.p("design:type",Object)],D3.prototype,"isRichGrid",void 0);
_.L([_.x({selector:_.X4,value:0}),_.p("design:type",Number)],D3.prototype,"richGridItemsPerRow",void 0);_.L([_.x(),_.p("design:type",Object)],D3.prototype,"gridStateActionMap",void 0);_.L([_.Q(_.k.YtRendererBehavior),_.p("design:type",Object)],D3.prototype,"ytRendererBehavior",void 0);_.L([_.Q(_.u4.YtRendererstamperBehavior),_.p("design:type",Object)],D3.prototype,"ytRendererstamperBehavior",void 0);
_.L([_.Q(_.Hc.YtActionHandlerBehavior),_.p("design:type",Object)],D3.prototype,"ytActionHandlerBehavior",void 0);_.L([_.Q(_.pV),_.p("design:type",Object)],D3.prototype,"ytdReduxBehavior",void 0);_.L([_.x({reflectToAttribute:!0}),_.p("design:type",Object)],D3.prototype,"modernTypography",void 0);_.L([_.O8("data","richGridItemsPerRow"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],D3.prototype,"updateRichGridDestinationButtonsVisibility",null);
_.L([_.U({is:"ytd-destination-shelf-renderer",disableElementRegistration:!0})],D3);
_.D(D3,"ytd-destination-shelf-renderer",function(){if(KWI!==void 0)return KWI;var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-destination-shelf-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-destination-shelf-renderer">\n  <yt-formatted-string id="title" hidden="[[!data.title]]" text="[[data.title]]" class="style-scope ytd-destination-shelf-renderer"></yt-formatted-string>\n  <yt-formatted-string id="subtitle" hidden="[[!data.subtitle]]" text="[[data.subtitle]]" class="style-scope ytd-destination-shelf-renderer"></yt-formatted-string>\n</div>\n<div id="destination-buttons" class="style-scope ytd-destination-shelf-renderer"></div>\n<tp-yt-paper-button id="show-more-button" aria-label$="[[data.expandButtonText]]" noink="" on-click="onShowMoreClick" class="style-scope ytd-destination-shelf-renderer">\n  <yt-icon id="show-more-button-icon" icon="yt-icons:expand" class="style-scope ytd-destination-shelf-renderer"></yt-icon>\n</tp-yt-paper-button>\n');a.content.insertBefore(_.w().content.cloneNode(!0),
a.content.firstChild);return KWI=a},{mode:1});var FWe;var Rm=function(){return _.G.apply(this,arguments)||this};
_.b(Rm,_.G);Rm.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"}}}};
_.L([_.Q(_.k.YtRendererBehavior),_.p("design:type",Object)],Rm.prototype,"ytRendererBehavior",void 0);_.L([_.Q(_.u4.YtRendererstamperBehavior),_.p("design:type",Object)],Rm.prototype,"ytRendererstamperBehavior",void 0);_.L([_.x(),_.p("design:type",Object)],Rm.prototype,"data",void 0);_.L([_.U({is:"ytd-brandconnect-cta-shelf-card-renderer",disableElementRegistration:!0})],Rm);
_.D(Rm,"ytd-brandconnect-cta-shelf-card-renderer",function(){if(FWe!==void 0)return FWe;var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-brandconnect-cta-shelf-card-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="cta-renderer style-scope ytd-brandconnect-cta-shelf-card-renderer">\n  <yt-img-shadow class="thumbnail style-scope ytd-brandconnect-cta-shelf-card-renderer" fit="" hidden="[[!data.thumbnail]]" thumbnail="[[data.thumbnail]]">\n  </yt-img-shadow>\n  <div class="provider-details style-scope ytd-brandconnect-cta-shelf-card-renderer">\n    <p id="header-line" hidden="[[!data.headline]]" class="style-scope ytd-brandconnect-cta-shelf-card-renderer">\n      [[getSimpleString(data.headline)]]\n    </p>\n    <p id="brand-name" hidden="[[!data.brandName]]" class="style-scope ytd-brandconnect-cta-shelf-card-renderer">\n      [[getSimpleString(data.brandName)]]\n    </p>\n    <p id="description" hidden="[[!data.description]]" class="style-scope ytd-brandconnect-cta-shelf-card-renderer">\n      [[getSimpleString(data.description)]]\n    </p>\n    <div id="action-button" class="style-scope ytd-brandconnect-cta-shelf-card-renderer"></div>\n  </div>\n  <div id="information-button" hidden="[[!data.informationButton]]" class="style-scope ytd-brandconnect-cta-shelf-card-renderer"></div>\n</div>\n');
a.content.insertBefore(_.w().content.cloneNode(!0),a.content.firstChild);return FWe=a},{mode:1});var H2f;var LX=function(){var a=_.G.apply(this,arguments)||this;a.disableAnimation=!1;a.isSlimlineSurvey=!1;a.isSlimlineSurveyFollowUp=!1;a.isShortsStyle=!1;return a};
_.b(LX,_.G);LX.prototype.onTap=function(a){a.preventDefault();this.data&&_.PA(this.hostElement,"ytd-rating-survey-option-changed",this.data)};
_.eH.Object.defineProperties(LX.prototype,{isAnimatedIcon:{configurable:!0,enumerable:!0,get:function(){return!this.disableAnimation&&(this.isSlimlineSurveyFollowUp||this.isShortsStyle)}},
iconSize:{configurable:!0,enumerable:!0,get:function(){return this.isSlimlineSurvey||this.isSlimlineSurveyFollowUp||this.isShortsStyle?36:24}},
isDarkTheme:{configurable:!0,enumerable:!0,get:function(){return this.isShortsStyle||document.documentElement.hasAttribute("dark")}},
icon:{configurable:!0,enumerable:!0,get:function(){var a,z,I,J,r;return((a=this.data)==null?0:a.checked)?(z=this.data)==null?void 0:(I=z.onStateIcon)==null?void 0:I.iconType:(J=this.data)==null?void 0:(r=J.defaultStateIcon)==null?void 0:r.iconType}}});
_.L([_.Q(_.k.YtRendererBehavior),_.p("design:type",Object)],LX.prototype,"ytRendererBehavior",void 0);_.L([_.Q(_.Ms.YtComponentBehavior),_.p("design:type",Object)],LX.prototype,"ytComponentBehavior",void 0);_.L([_.x(),_.p("design:type",Object)],LX.prototype,"data",void 0);_.L([_.x(),_.p("design:type",Object)],LX.prototype,"disableAnimation",void 0);_.L([_.x({reflectToAttribute:!0}),_.p("design:type",Object)],LX.prototype,"isSlimlineSurvey",void 0);
_.L([_.x({reflectToAttribute:!0}),_.p("design:type",Object)],LX.prototype,"isSlimlineSurveyFollowUp",void 0);_.L([_.x({reflectToAttribute:!0}),_.p("design:type",Object)],LX.prototype,"isShortsStyle",void 0);_.L([_.S("disableAnimation","isSlimlineSurveyFollowUp","isShortsStyle"),_.p("design:type",Boolean),_.p("design:paramtypes",[])],LX.prototype,"isAnimatedIcon",null);
_.L([_.S("isSlimlineSurvey","isSlimlineSurveyFollowUp","isShortsStyle"),_.p("design:type",Number),_.p("design:paramtypes",[])],LX.prototype,"iconSize",null);_.L([_.S("isShortsStyle"),_.p("design:type",Boolean),_.p("design:paramtypes",[])],LX.prototype,"isDarkTheme",null);_.L([_.S("data.checked"),_.p("design:type",Object),_.p("design:paramtypes",[])],LX.prototype,"icon",null);_.L([_.U({is:"ytd-rating-survey-option-renderer",disableElementRegistration:!0})],LX);
_.D(LX,"ytd-rating-survey-option-renderer",function(){if(H2f!==void 0)return H2f;var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-rating-survey-option-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-icon-button id="rating-survey-button" label="[[getSimpleString(data.responseText)]]" pressed="[[data.checked]]" toggleable="" on-tap="onTap" class="style-scope ytd-rating-survey-option-renderer">\n    <yt-icon icon="[[icon]]" is-animated-icon="[[isAnimatedIcon]]" is-dark-theme="[[isDarkTheme]]" size="[[iconSize]]" class="style-scope ytd-rating-survey-option-renderer"></yt-icon>\n</yt-icon-button>\n');
a.content.insertBefore(_.w().content.cloneNode(!0),a.content.firstChild);return H2f=a},{mode:2});var b2o;var lv=function(){var a=_.G.apply(this,arguments)||this;a.firstResponseText=null;a.lastResponseText=null;a.selectedNonStarOption=null;a.hideOptions=!1;a.hideUndoButton=!0;a.disableAnimation=!1;a.showResponseRangeText=!1;a.selectedRatingIndex=-1;a.isSlimlineSurvey=!1;a.isSlimlineSurveyFollowUp=!1;a.isShortsStyle=!1;a.slimlineSurveyRatingSelectedIndex=-1;return a};
_.b(lv,_.G);_.Z=lv.prototype;_.Z.configureRendererStamper=function(){return{"data.ratings":{id:"ratings",mapping:{ratingSurveyOptionRenderer:{component:"ytd-rating-survey-option-renderer",properties:{disableAnimation:"[[disableAnimation]]",isSlimlineSurvey:"[[isSlimlineSurvey]]",isSlimlineSurveyFollowUp:"[[isSlimlineSurveyFollowUp]]",isShortsStyle:"[[isShortsStyle]]"}}}}}};
_.Z.dataChanged=function(){this.resetComponent();this.isSlimlineSurveyFollowUp&&this.slimlineSurveyRatingSelectedIndex>-1&&this.showSelectedOption()};
_.Z.onOptionChange=function(a,z){var I=this;a=z.onStateIcon&&z.defaultStateIcon&&z.onStateIcon.iconType===z.defaultStateIcon.iconType;this.hideUndoButton=this.isSlimlineSurvey;if(this.isSingleSelect)this.getOptionRenderers().forEach(function(N,u){N.responseText===z.responseText?I.isSlimlineSurvey?(I.selectedRatingIndex=u,I.ytdReduxBehavior.dispatch(BWi(u))):(I.setSurveyOptionValue(u,!0,"checked"),I.setSurveyOptionValue(u,!0,"selected")):(I.setSurveyOptionValue(u,!1,"checked"),I.setSurveyOptionValue(u,
!1,"selected"))});
else if(a)this.selectedNonStarOption=z,this.hideOptions=!0;else{var J=this.ytRendererBehavior.getSimpleString(z.responseText),r=!0;this.getOptionRenderers().forEach(function(N,u){I.setSurveyOptionValue(u,r,"checked");I.setSurveyOptionValue(u,!1,"selected");I.ytRendererBehavior.getSimpleString(N.responseText)===J&&(r=!1,I.setSurveyOptionValue(u,!0,"selected"))})}a=z.responseEndpoint;
var P;z.followUpCommand&&(P=_.H(z.followUpCommand,y4G));this.isSlimlineSurvey?(this.resetComponent(),_.ZF(this.hostElement,"ytd-slimline-survey-rating-select-action")):_.ZF(this.hostElement,"ytd-inline-survey-rating-select-action",[a,P])};
_.Z.showSelectedOption=function(){var a=this;_.GW.addJob(function(){var z=a.getOptionRenderers()[a.slimlineSurveyRatingSelectedIndex];a.onOptionChange(new CustomEvent("ytd-rating-survey-option-changed"),z)},8,100)};
_.Z.getOptionRenderers=function(){return this.data&&this.data.ratings?this.data.ratings.map(function(a){var z;return(z=_.H(a,MaO))!=null?z:{}}):[]};
_.Z.onUndoClick=function(){this.resetComponent();_.ZF(this.hostElement,"ytd-inline-survey-rating-select-action",[null,null])};
_.Z.setSurveyOptionValue=function(a,z,I){this.notifyPath("data.ratings."+a+".ratingSurveyOptionRenderer."+I);this.set("data.ratings."+a+".ratingSurveyOptionRenderer."+I,z)};
_.Z.resetComponent=function(){var a=this;this.selectedNonStarOption=null;this.hideOptions=!1;this.hideUndoButton=!0;var z=this.getOptionRenderers(),I,J;this.firstResponseText=(J=(I=z[0])==null?void 0:I.responseText)!=null?J:null;var r,P;this.lastResponseText=(P=(r=z[z.length-1])==null?void 0:r.responseText)!=null?P:null;z.forEach(function(N,u){a.setSurveyOptionValue(u,!1,"checked");a.setSurveyOptionValue(u,!1,"selected")})};
_.eH.Object.defineProperties(lv.prototype,{isSingleSelect:{configurable:!0,enumerable:!0,get:function(){return this.isSlimlineSurvey||this.isSlimlineSurveyFollowUp||this.isShortsStyle}}});
lv.prototype.onOptionChange=lv.prototype.onOptionChange;lv.prototype.dataChanged=lv.prototype.dataChanged;_.L([_.Q(_.u4.YtRendererstamperBehavior),_.p("design:type",Object)],lv.prototype,"ytRendererstamperBehavior",void 0);_.L([_.Q(_.k.YtRendererBehavior),_.p("design:type",Object)],lv.prototype,"ytRendererBehavior",void 0);_.L([_.Q(_.pV),_.p("design:type",Object)],lv.prototype,"ytdReduxBehavior",void 0);_.L([_.x(),_.p("design:type",Object)],lv.prototype,"data",void 0);
_.L([_.x(),_.p("design:type",Object)],lv.prototype,"firstResponseText",void 0);_.L([_.x(),_.p("design:type",Object)],lv.prototype,"lastResponseText",void 0);_.L([_.x(),_.p("design:type",Object)],lv.prototype,"selectedNonStarOption",void 0);_.L([_.x(),_.p("design:type",Object)],lv.prototype,"hideOptions",void 0);_.L([_.x(),_.p("design:type",Object)],lv.prototype,"hideUndoButton",void 0);_.L([_.x(),_.p("design:type",Object)],lv.prototype,"disableAnimation",void 0);
_.L([_.x(),_.p("design:type",Object)],lv.prototype,"showResponseRangeText",void 0);_.L([_.x(),_.p("design:type",Object)],lv.prototype,"selectedRatingIndex",void 0);_.L([_.x({reflectToAttribute:!0}),_.p("design:type",Object)],lv.prototype,"isSlimlineSurvey",void 0);_.L([_.x({reflectToAttribute:!0}),_.p("design:type",Object)],lv.prototype,"isSlimlineSurveyFollowUp",void 0);_.L([_.x({reflectToAttribute:!0}),_.p("design:type",Object)],lv.prototype,"isShortsStyle",void 0);_.L([_.x({selector:function(a){return a.ui.slimlineSurveyRatingSelectedIndex}}),
_.p("design:type",Object)],lv.prototype,"slimlineSurveyRatingSelectedIndex",void 0);_.L([_.S("isSlimlineSurvey","isSlimlineSurveyFollowUp","isShortsStyle"),_.p("design:type",Boolean),_.p("design:paramtypes",[])],lv.prototype,"isSingleSelect",null);_.L([_.Fe("data"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],lv.prototype,"dataChanged",null);
_.L([_.gz("ytd-rating-survey-option-changed"),_.p("design:type",Function),_.p("design:paramtypes",[CustomEvent,Object]),_.p("design:returntype")],lv.prototype,"onOptionChange",null);_.L([_.U({is:"ytd-rating-survey-renderer",disableElementRegistration:!0})],lv);
_.D(lv,"ytd-rating-survey-renderer",function(){if(b2o!==void 0)return b2o;var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-rating-survey-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="selection-panel" class="style-scope ytd-rating-survey-renderer">\n  <div id="options" class="style-scope ytd-rating-survey-renderer">\n    <div id="ratings" hidden="[[hideOptions]]" class="style-scope ytd-rating-survey-renderer"></div>\n  </div>\n  <div id="selected-response-icon" hidden="[[!selectedNonStarOption]]" class="style-scope ytd-rating-survey-renderer">\n    <yt-icon icon="[[selectedNonStarOption.onStateIcon.iconType]]" class="style-scope ytd-rating-survey-renderer"></yt-icon>\n  </div>\n  <div id="bottom-text-container" hidden="[[!showResponseRangeText]]" class="style-scope ytd-rating-survey-renderer">\n    <div id="first-response-text" class="style-scope ytd-rating-survey-renderer">\n      <yt-formatted-string text="[[firstResponseText]]" class="style-scope ytd-rating-survey-renderer"></yt-formatted-string>\n    </div>\n    <div id="last-response-text" class="style-scope ytd-rating-survey-renderer">\n      <yt-formatted-string text="[[lastResponseText]]" class="style-scope ytd-rating-survey-renderer"></yt-formatted-string>\n    </div>\n  </div>\n</div>\n<ytd-button-renderer id="undo-button" data="[[data.undoButton.buttonRenderer]]" hidden="[[hideUndoButton]]" on-click="onUndoClick" class="style-scope ytd-rating-survey-renderer">\n</ytd-button-renderer>\n');a.content.insertBefore(_.w().content.cloneNode(!0),
a.content.firstChild);return b2o=a},{mode:1});var h8v;var VV1;var Qui;var vYx=(s1.FIRSTDAYOFWEEK+1)%7,Sbj=function(a,z,I,J){var r="";if(J.selection&&Q$7(J.selection))O1(a,J.selection)&&(r+=" selected");else if(J.selection&&SEm(J.selection)){var P=J.selection.selectionState||"START_DATE";O1(a,J.selection.start)&&(r+=" period-start ",P==="START_DATE"&&(r+="selected"));O1(a,J.selection.end)&&(r+=" period-end ",P==="END_DATE"&&(r+="selected"));fc(a,J.selection.start)||fc(J.selection.end,a)||(r+=" highlighted")}if(fc(z,J.start)||fc(J.end,z))r+=" disabled";J.circleToday&&
O1(z,I)&&(r+=" today");return r};var pX=function(){return _.G.apply(this,arguments)||this};
_.b(pX,_.G);_.Z=pX.prototype;_.Z.attached=function(){var a=this;_.Yv(this,function(){a.JSC$15842_calendarMain.scrollHeight>0&&(a.calendarConfig.selection?a.scrollToDate(i8M(a.calendarConfig.selection)):a.scrollToDate(a.calendarConfig.end))})};
_.Z.updateSelection=function(a){a=GwM(Object.assign({},this.calendarConfig,{selection:a}),Sbj);this.splice.apply(this,["renderData.months",0,a.length].concat(_.ih(a)))};
_.Z.scrollToDate=function(a){this.renderData&&(a=$F7(a,this.renderData),a!==void 0&&this.JSC$15842_calendarMain.scrollToIndex(a))};
_.Z.scrollToNextMonth=function(){this.JSC$15842_calendarMain.scrollToIndex(this.JSC$15842_calendarMain.firstVisibleIndex+1)};
_.Z.scrollToPrevMonth=function(){this.JSC$15842_calendarMain.firstVisibleIndex===0&&this.JSC$15842_calendarMain.scrollTo(0,0);this.JSC$15842_calendarMain.scrollToIndex(this.JSC$15842_calendarMain.firstVisibleIndex-1)};
_.Z.handleDayClick=function(a){_.ZF(this.hostElement,"ytd-calendar-date-clicked",[a.model.day.date])};
_.Z.handleDayMouseDown=function(a){a.preventDefault();_.ZF(this.hostElement,"ytd-calendar-date-mousedown",[a.model.day.date])};
_.Z.handleDayMouseUp=function(a){_.ZF(this.hostElement,"ytd-calendar-date-mouseup",[a.model.day.date])};
_.Z.handleDayMouseEnter=function(a){a.preventDefault();_.ZF(this.hostElement,"ytd-calendar-date-mouseenter",[a.model.day.date])};
_.Z.handleDayMouseLeave=function(a){_.ZF(this.hostElement,"ytd-calendar-date-mouseleave",[a.model.day.date])};
_.eH.Object.defineProperties(pX.prototype,{renderData:{configurable:!0,enumerable:!0,get:function(){var a=this.calendarConfig,z=Sbj;z=z===void 0?Sbj:z;for(var I=[],J=0;J<7;J++)I.push(s1.NARROWWEEKDAYS[(J+vYx)%7]);return{months:GwM(a,z),daysOfWeekLabel:I}}}});
_.L([_.x(),_.p("design:type",Object)],pX.prototype,"calendarConfig",void 0);_.L([_.A3("#calendar-main"),_.p("design:type",Object)],pX.prototype,"JSC$15842_calendarMain",void 0);_.L([_.S("calendarConfig"),_.p("design:type",Object),_.p("design:paramtypes",[])],pX.prototype,"renderData",null);_.L([_.U({disableElementRegistration:!0,is:"ytd-scrollable-calendar"})],pX);
_.D(pX,"ytd-scrollable-calendar",function(){if(Qui!==void 0)return Qui;var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-scrollable-calendar--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="calendar-container style-scope ytd-scrollable-calendar">\n  <div class="calendar-header style-scope ytd-scrollable-calendar">\n    <template is="dom-repeat" items="[[renderData.daysOfWeekLabel]]" as="dayLabel" class="style-scope ytd-scrollable-calendar">\n      <span class="calendar-header-day style-scope ytd-scrollable-calendar">[[dayLabel]]</span>\n    </template>\n  </div>\n\n  <tp-yt-iron-list id="calendar-main" as="month" items="[[renderData.months]]" tabindex="-1" class="style-scope ytd-scrollable-calendar">\n    <template class="style-scope ytd-scrollable-calendar">\n      <div class="calendar-month style-scope ytd-scrollable-calendar">\n        <div class$="calendar-month-label [[month.monthLabelExtraCssClass]] style-scope ytd-scrollable-calendar">\n          [[month.monthLabel]]\n        </div>\n        <template is="dom-repeat" items="[[month.weeks]]" as="week" class="style-scope ytd-scrollable-calendar">\n          <div class="calendar-week style-scope ytd-scrollable-calendar">\n            <template is="dom-repeat" items="[[week]]" as="day" class="style-scope ytd-scrollable-calendar">\n              <span class$="calendar-day [[day.extraCssClass]] [[day.debugClass]] style-scope ytd-scrollable-calendar" on-tap="handleDayClick" on-mouseenter="handleDayMouseEnter" on-mouseleave="handleDayMouseLeave" on-mousedown="handleDayMouseDown" on-mouseup="handleDayMouseUp">\n                [[day.date.day]]\n              </span>\n            </template> \n          </div>\n        </template> \n      </div>\n    </template>\n  </tp-yt-iron-list> \n</div>\n');a.content.insertBefore(_.w().content.cloneNode(!0),
a.content.firstChild);return Qui=a},{mode:2});var i21;var xqo;var wj=function(){var a=_.G.apply(this,arguments)||this;a.hideCharCounter=!1;a.hideLabel=!1;a.noLabelFloat=!1;a.autoValidate=!0;a.invalid=!1;a.disabled=!1;a.actionMap={"yt-update-text-input-form-field-renderer-command":"handleUpdateTextInputFormFieldRendererCommand"};return a};
_.b(wj,_.G);_.Z=wj.prototype;_.Z.reset=function(a){this.value=a&&this.data?this.data.value=a:"";this.input.invalid=!1;this.input.autoValidate=!1};
_.Z.save=function(){this.data&&this.data.onChange&&this.ytComponentBehavior.resolveCommand(this.data.onChange)};
_.Z.focusTextInput=function(){this.input.focus()};
_.Z.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()};
_.Z.valueChanged=function(){var a,z;if(((a=this.data)==null?0:a.value)||((z=this.data)==null?void 0:z.value)==="")this.value=this.data.value;else{var I;((I=this.data)==null?void 0:I.value)!==void 0||this.value||(this.value="")}};
_.Z.computeLabel=function(a,z){return z?"":_.cd(a)};
_.Z.computeAriaLabel=function(a,z){return z?_.cd(a):""};
_.Z.computeErrorMessage=function(a,z,I,J){!a&&z?a=I||this.strings.REQUIRED_LABEL:(a=_.cd(J),a=_.t1(a,"&")?"document"in _.IE?G3w(a):$Oe(a):a);return a};
_.Z.computeType=function(a){return a==="TEXT_INPUT_FORM_FIELD_TYPE_PASSWORD"?"password":null};
_.Z.onTextValueChanged=function(a){this.value=a.detail.value;var z;(z=this.onValueChanged)==null||z.call(this);this.validate()&&this.data&&this.data.key&&this.data.onChange&&this.set(this.data.key,this.input.value,this.data.onChange)};
_.Z.handleUpdateTextInputFormFieldRendererCommand=function(a){(a=_.H(a,gTw))&&this.data&&this.data.id===a.id&&(a.invalid!==void 0&&(this.invalid=a.invalid),a.invalidValueErrorMessage!==void 0&&this.set("data.invalidValueErrorMessage",a.invalidValueErrorMessage))};
_.Z.valueChangedForBinding=function(){this.hostElement.dispatchEvent(new _.eY("value-changed",this.value))};
_.Z.updateInvalidFromBinding=function(a){this.invalid=a.detail.value};
_.eH.Object.defineProperties(wj.prototype,{isMultiline:{configurable:!0,enumerable:!0,get:function(){if(this.isMultilineOverride!==void 0)return this.isMultilineOverride;var a;return!((a=this.data)==null||!a.isMultiline)}}});
wj.prototype.valueChangedForBinding=wj.prototype.valueChangedForBinding;wj.prototype.valueChanged=wj.prototype.valueChanged;_.L([_.Q(_.k.YtRendererBehavior),_.p("design:type",Object)],wj.prototype,"ytRendererBehavior",void 0);_.L([_.Q(_.Ms.YtComponentBehavior),_.p("design:type",Object)],wj.prototype,"ytComponentBehavior",void 0);_.L([_.Q(_.Hc.YtActionHandlerBehavior),_.p("design:type",Object)],wj.prototype,"ytActionHandlerBehavior",void 0);
_.L([_.x(),_.p("design:type",Object)],wj.prototype,"data",void 0);_.L([_.x(),_.p("design:type",String)],wj.prototype,"value",void 0);_.L([_.x(),_.p("design:type",String)],wj.prototype,"pattern",void 0);_.L([_.x(),_.p("design:type",String)],wj.prototype,"errorMessage",void 0);_.L([_.x({reflectToAttribute:!0}),_.p("design:type",String)],wj.prototype,"componentStyle",void 0);_.L([_.x(),_.p("design:type",Object)],wj.prototype,"hideCharCounter",void 0);
_.L([_.x(),_.p("design:type",Object)],wj.prototype,"hideLabel",void 0);_.L([_.x(),_.p("design:type",Object)],wj.prototype,"noLabelFloat",void 0);_.L([_.x(),_.p("design:type",Function)],wj.prototype,"onValueChanged",void 0);_.L([_.x(),_.p("design:type",Boolean)],wj.prototype,"isMultilineOverride",void 0);_.L([_.x(),_.p("design:type",Object)],wj.prototype,"autoValidate",void 0);_.L([_.x({reflectToAttribute:!0}),_.p("design:type",Object)],wj.prototype,"invalid",void 0);
_.L([_.x({reflectToAttribute:!0}),_.p("design:type",Object)],wj.prototype,"disabled",void 0);_.L([_.x({reflectToAttribute:!0}),_.p("design:type",Boolean)],wj.prototype,"enableOverlayTheme",void 0);_.L([_.x({value:{REQUIRED_LABEL:_.AR("REQUIRED_LABEL",void 0,"Required")}}),_.p("design:type",Object)],wj.prototype,"strings",void 0);_.L([_.A3("#input"),_.p("design:type",Object)],wj.prototype,"input",void 0);
_.L([_.S("data","isMultilineOverride"),_.p("design:type",Object),_.p("design:paramtypes",[])],wj.prototype,"isMultiline",null);_.L([_.Fe("data.value"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],wj.prototype,"valueChanged",null);_.L([_.O8("value"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],wj.prototype,"valueChangedForBinding",null);_.L([_.dz({is:"yt-text-input-form-field-renderer",disableElementRegistration:!0})],wj);
_.D(wj,"yt-text-input-form-field-renderer",function(){if(xqo===void 0){var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-text-input-form-field-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.playlist.yt_text_input_form_field_renderer.yt.text.input.form.field.renderer.css.js--\x3e<template is="dom-if" if="[[isMultiline]]" class="style-scope yt-text-input-form-field-renderer">\n  <tp-yt-paper-textarea id="input" always-float-label="" aria-label$="[[computeAriaLabel(data.label, hideLabel)]]" char-counter="" disabled="[[disabled]]" error-message="[[computeErrorMessage(value, data.required, requiredErrorMessage, data.invalidValueErrorMessage)]]" invalid="[[invalid]]" label="[[computeLabel(data.label, hideLabel)]]" max-rows="5" maxlength="[[data.maxCharacterLimit]]" no-label-float="[[noLabelFloat]]" pattern="[[data.validValueRegexp]]" placeholder="[[data.placeholderText]]" required="[[data.required]]" rows="[[data.rows]]" use-v2-underline="" value="[[value]]" on-invalid-changed="updateInvalidFromBinding" on-value-changed="onTextValueChanged" class="style-scope yt-text-input-form-field-renderer">\n  </tp-yt-paper-textarea>\n</template>\n<template is="dom-if" if="[[!isMultiline]]" class="style-scope yt-text-input-form-field-renderer">\n  <tp-yt-paper-input id="input" always-float-label="" aria-label$="[[computeAriaLabel(data.label, hideLabel)]]" char-counter="[[!data.hideCharCounter]]" disabled="[[disabled]]" error-message="[[computeErrorMessage(value, data.required, requiredErrorMessage, data.invalidValueErrorMessage)]]" invalid="[[invalid]]" label="[[computeLabel(data.label, hideLabel)]]" maxlength="[[data.maxCharacterLimit]]" no-label-float="[[noLabelFloat]]" pattern="[[data.validValueRegexp]]" placeholder="[[data.placeholderText]]" required="[[data.required]]" type="[[computeType(data.type)]]" use-v2-underline="" value="[[value]]" on-invalid-changed="updateInvalidFromBinding" on-value-changed="onTextValueChanged" class="style-scope yt-text-input-form-field-renderer">\n  </tp-yt-paper-input>\n</template>\n');
a.content.insertBefore(_.w().content.cloneNode(!0),a.content.firstChild);var z=a.content,I=z.insertBefore;i21===void 0&&(i21=document.createElement("template"));var J=i21;I.call(z,J.content.cloneNode(!0),a.content.firstChild);xqo=a}a=xqo;return a},{mode:2});var ma=function(){var a=_.G.apply(this,arguments)||this;a.data=void 0;a.selectionState="START_DATE";a.isStartDateInvalid=!1;a.isEndDateInvalid=!1;a.autoapply=!1;a.actionMap={"ytd-calendar-date-clicked":"handleCalendarDateClicked","ytd-calendar-date-mousedown":"handleCalendarDateMouseDown","ytd-calendar-date-mouseup":"handleCalendarDateMouseUp","ytd-calendar-date-mouseenter":"handleCalendarDateMouseEnter","ytd-calendar-date-mouseleave":"handleCalendarDateMouseLeave","yt-signal-action-submit-form":"handleCalendarSubmitDateRange"};
return a};
_.b(ma,_.G);_.Z=ma.prototype;_.Z.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"}}}}};
_.Z.focus=function(){this.startDateInput.focus()};
_.Z.dataChanged=function(){this.data&&this.data.selection&&(this.selection={start:AQ(this.data.selection.start),end:AQ(this.data.selection.end)})};
_.Z.observeSelection=function(){this.selection&&this.updateCalendarSelection(this.selection);this.isEndDateInvalid=this.isStartDateInvalid=!1;this.updateDateStrings()};
_.Z.resetTextboxes=function(){switch(this.selectionState){case "START_DATE":this.isStartDateInvalid=!1;break;case "END_DATE":this.isEndDateInvalid=!1;break;default:_.Rw(this.selectionState)}};
_.Z.onDateInputBlur=function(){this.isEndDateInvalid=this.isStartDateInvalid=!1;this.updateDateStrings()};
_.Z.onStartDateTapOrFocus=function(){this.startDate&&this.calendar.scrollToDate(this.startDate);this.selectionState="START_DATE"};
_.Z.onEndDateTapOrFocus=function(){this.endDate&&this.calendar.scrollToDate(this.endDate);this.selectionState="END_DATE"};
_.Z.onStartDateTextChange=function(){if(this.calendar.calendarConfig){var a=this.calendar.calendarConfig,z=a.end;a=TUM({start:a.start,end:this.endDate||z},this.startDateInput.value||"");this.isStartDateInvalid=!a.isValid;a.isValid&&(a=a.value,this.selection=this.endDate?{start:a,end:this.endDate}:a,this.calendar.scrollToDate(a));this.updateInvalidState()}};
_.Z.onEndDateTextChange=function(){if(this.calendar.calendarConfig){var a=this.calendar.calendarConfig,z=a.start;a=TUM({start:this.startDate||z,end:a.end},this.endDateInput.value||"");this.isEndDateInvalid=!a.isValid;a.isValid&&(a=a.value,this.selection={start:this.startDate,end:a},this.calendar.scrollToDate(a));this.updateInvalidState()}};
_.Z.handleCalendarDateClicked=function(a){var z=this.selection&&i8M(this.selection),I=this.selection&&xFG(this.selection);z&&!fc(a,z)&&this.selectionState==="END_DATE"?(this.selection={start:z,end:a},this.selectionState="START_DATE"):(I&&!fc(I,a)?this.selection={start:a,end:I}:this.selection=a,this.selectionState="END_DATE")};
_.Z.handleCalendarDateMouseDown=function(a){this.selection&&!Q$7(this.selection)&&(this.dragPivot=O1(a,this.selection.start)?this.selection.end:O1(a,this.selection.end)?this.selection.start:a)};
_.Z.handleCalendarDateMouseUp=function(){this.dragPivot=void 0};
_.Z.handleCalendarDateMouseEnter=function(a){this.dragPivot&&(this.selection={start:function(z,I){return fc(z,I)?z:I}(this.dragPivot,a),
end:function(z,I){return fc(z,I)?I:z}(this.dragPivot,a)},this.dragPivot||(this.selectionState="START_DATE"))};
_.Z.handleCalendarDateMouseLeave=function(){};
_.Z.handleCalendarSubmitDateRange=function(){this.selection&&!Q$7(this.selection)&&_.ZF(this.hostElement,"ytd-date-period-picker-apply",[this.selection])};
_.Z.updateInvalidState=function(){var a=function(z,I){I?z.setAttribute("invalid",""):z.removeAttribute("invalid")};
a(this.startDateInput,this.isStartDateInvalid);a(this.endDateInput,this.isEndDateInvalid)};
_.Z.updateDateStrings=function(){this.selection&&(Q$7(this.selection)?VhM(this.selection):(VhM(this.selection.start),VhM(this.selection.end)))};
_.Z.updateCalendarSelection=function(a){this.calendar.updateSelection(Object.assign({},a,{selectionState:this.selectionState}))};
_.Z.updateIsStartDateInvalidFromBinding=function(a){this.isStartDateInvalid=a.detail.value};
_.Z.updateIsEndDateInvalidFromBinding=function(a){this.isEndDateInvalid=a.detail.value};
_.Z.updateStartDateStringFromBinding=function(){};
_.Z.updateEndDateStringFromBinding=function(){};
_.eH.Object.defineProperties(ma.prototype,{calendarConfig:{configurable:!0,enumerable:!0,get:function(){return this.data&&this.data.selection?{start:AQ(this.data.dateRangeStart),end:AQ(this.data.dateRangeEnd),selection:{start:AQ(this.data.selection.start),end:AQ(this.data.selection.end)},circleToday:!0}:{}}},
errorMessage:{configurable:!0,enumerable:!0,get:function(){var a;return(a=this.data)==null?void 0:a.errorMessage}},
startDate:{configurable:!0,enumerable:!0,get:function(){return this.selection&&i8M(this.selection)}},
endDate:{configurable:!0,enumerable:!0,get:function(){return this.selection&&xFG(this.selection)}}});
ma.prototype.resetTextboxes=ma.prototype.resetTextboxes;ma.prototype.observeSelection=ma.prototype.observeSelection;ma.prototype.dataChanged=ma.prototype.dataChanged;_.L([_.Q(_.Hc.YtActionHandlerBehavior),_.p("design:type",Object)],ma.prototype,"ytActionHandlerBehavior",void 0);_.L([_.Q(_.u4.YtRendererstamperBehavior),_.p("design:type",Object)],ma.prototype,"ytRendererstamperBehavior",void 0);_.L([_.A3("#calendar"),_.p("design:type",Object)],ma.prototype,"calendar",void 0);
_.L([_.A3("#start-date"),_.p("design:type",Object)],ma.prototype,"startDateInput",void 0);_.L([_.A3("#end-date"),_.p("design:type",Object)],ma.prototype,"endDateInput",void 0);_.L([_.x(),_.p("design:type",Object)],ma.prototype,"data",void 0);_.L([_.x(),_.p("design:type",Object)],ma.prototype,"selection",void 0);_.L([_.x(),_.p("design:type",String)],ma.prototype,"selectionState",void 0);_.L([_.S("data"),_.p("design:type",Object),_.p("design:paramtypes",[])],ma.prototype,"calendarConfig",null);
_.L([_.S("data"),_.p("design:type",Object),_.p("design:paramtypes",[])],ma.prototype,"errorMessage",null);_.L([_.S("selection"),_.p("design:type",Object),_.p("design:paramtypes",[])],ma.prototype,"startDate",null);_.L([_.S("selection"),_.p("design:type",Object),_.p("design:paramtypes",[])],ma.prototype,"endDate",null);_.L([_.O8("data"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],ma.prototype,"dataChanged",null);
_.L([_.O8("selection","selectionState"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],ma.prototype,"observeSelection",null);_.L([_.O8("selectionState"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],ma.prototype,"resetTextboxes",null);_.L([_.U({disableElementRegistration:!0,is:"ytd-date-period-picker-renderer"})],ma);
_.D(ma,"ytd-date-period-picker-renderer",function(){if(VV1!==void 0)return VV1;var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-date-period-picker-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="control-area" class="style-scope ytd-date-period-picker-renderer">\n  <form id="form" class="style-scope ytd-date-period-picker-renderer">\n    <div class="input-and-error style-scope ytd-date-period-picker-renderer">\n      <yt-text-input-form-field-renderer id="start-date" auto-validate="[[autoValidate]]" component-style="BOLD_INPUT_TEXT" data="[[data.startDateField.textInputFormFieldRenderer]]" invalid="[[isStartDateInvalid]]" value="[[startDateString]]" on-blur="onDateInputBlur" on-focusin="onStartDateTapOrFocus" on-input="onStartDateTextChange" on-invalid-changed="updateIsStartDateInvalidFromBinding" on-tap="onStartDateTapOrFocus" on-value-changed="updateStartDateStringFromBinding" class="style-scope ytd-date-period-picker-renderer">\n      </yt-text-input-form-field-renderer>\n      <div class="error-message style-scope ytd-date-period-picker-renderer" role="alert">\n        <yt-formatted-string hidden="[[!isStartDateInvalid]]" text="[[data.errorMessage]]" class="style-scope ytd-date-period-picker-renderer">\n        </yt-formatted-string>\n      </div>\n    </div>\n    <div id="separator" class="style-scope ytd-date-period-picker-renderer">\u2013</div>\n    <div class="input-and-error style-scope ytd-date-period-picker-renderer">\n      <yt-text-input-form-field-renderer id="end-date" auto-validate="[[autoValidate]]" component-style="BOLD_INPUT_TEXT" data="[[data.endDateField.textInputFormFieldRenderer]]" invalid="[[isEndDateInvalid]]" value="[[endDateString]]" on-blur="onDateInputBlur" on-focusin="onEndDateTapOrFocus" on-input="onEndDateTextChange" on-invalid-changed="updateIsEndDateInvalidFromBinding" on-tap="onEndDateTapOrFocus" on-value-changed="updateEndDateStringFromBinding" class="style-scope ytd-date-period-picker-renderer">\n      </yt-text-input-form-field-renderer>\n      <div class="error-message style-scope ytd-date-period-picker-renderer" role="alert">\n        <yt-formatted-string hidden="[[!isEndDateInvalid]]" text="[[data.errorMessage]]" class="style-scope ytd-date-period-picker-renderer">\n        </yt-formatted-string>\n      </div>\n    </div>\n  </form>\n</div>\n\n<ytd-scrollable-calendar id="calendar" calendar-config="[[calendarConfig]]" class="style-scope ytd-date-period-picker-renderer">\n</ytd-scrollable-calendar>\n\n<div id="buttons" class="style-scope ytd-date-period-picker-renderer">\n  <div id="cancel-button" class="style-scope ytd-date-period-picker-renderer"></div>\n  <div id="apply-button" class="style-scope ytd-date-period-picker-renderer"></div>\n</div>\n');
a.content.insertBefore(_.w().content.cloneNode(!0),a.content.firstChild);return VV1=a},{mode:1});var yp=function(){var a=_.G.apply(this,arguments)||this;var z={};a.actionMap=(z["ytd-date-period-picker-apply"]="handleDateRangeUpdated",z);return a};
_.b(yp,_.G);yp.prototype.configureRendererStamper=function(){return{"data.timeRangeDropdown":{id:"time-range-dropdown",mapping:{sortFilterSubMenuRenderer:"yt-sort-filter-sub-menu-renderer"}}}};
yp.prototype.handleDateRangeUpdated=function(){};
_.L([_.x(),_.p("design:type",Object)],yp.prototype,"data",void 0);_.L([_.Q(_.Hc.YtActionHandlerBehavior),_.p("design:type",Object)],yp.prototype,"actionHandlerBehavior",void 0);_.L([_.Q(_.u4.YtRendererstamperBehavior),_.p("design:type",Object)],yp.prototype,"rendererstamperBehavior",void 0);_.L([_.U({is:"ytd-report-history-section-header-renderer",disableElementRegistration:!0})],yp);
_.D(yp,"ytd-report-history-section-header-renderer",function(){if(h8v!==void 0)return h8v;var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-report-history-section-header-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="header-content style-scope ytd-report-history-section-header-renderer">\n  <div id="time-range-dropdown" class="filter style-scope ytd-report-history-section-header-renderer"></div>\n</div>\n');
a.content.insertBefore(_.w().content.cloneNode(!0),a.content.firstChild);return h8v=a},{mode:1});var vzw;var GEG;var $qI;var k$=function(){return _.G.apply(this,arguments)||this};
_.b(k$,_.G);_.eH.Object.defineProperties(k$.prototype,{icon:{configurable:!0,enumerable:!0,get:function(){var a,z;return((a=this.data)==null?0:(z=a.icon)==null?0:z.iconType)?_.Bl(this.data.icon.iconType):""}}});
_.L([_.x(),_.p("design:type",Object)],k$.prototype,"data",void 0);_.L([_.S("data"),_.p("design:type",String),_.p("design:paramtypes",[])],k$.prototype,"icon",null);_.L([_.U({is:"ytd-report-history-table-text-cell-renderer",disableElementRegistration:!0})],k$);
_.D(k$,"ytd-report-history-table-text-cell-renderer",function(){if($qI!==void 0)return $qI;var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-report-history-table-text-cell-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="icon-wrapper style-scope ytd-report-history-table-text-cell-renderer" hidden="[[!icon]]">\n  <yt-icon icon="[[icon]]" class="style-scope ytd-report-history-table-text-cell-renderer"></yt-icon>\n</div>\n<div class="text style-scope ytd-report-history-table-text-cell-renderer">\n  <yt-formatted-string class="main-text style-scope ytd-report-history-table-text-cell-renderer" split-lines="" text="[[data.text]]">\n  </yt-formatted-string>\n  <yt-formatted-string class="sub-text style-scope ytd-report-history-table-text-cell-renderer" split-lines="" text="[[data.shortByLineText]]">\n  </yt-formatted-string>\n</div>\n');a.content.insertBefore(_.w().content.cloneNode(!0),
a.content.firstChild);return $qI=a},{mode:1});var Mc=function(){return _.G.apply(this,arguments)||this};
_.b(Mc,_.G);Mc.prototype.configureRendererStamper=function(){return{"data.latestReason":{id:"latest-reason",mapping:{reportHistoryTableTextCellRenderer:"ytd-report-history-table-text-cell-renderer"}}}};
_.L([_.Q(_.u4.YtRendererstamperBehavior),_.p("design:type",Object)],Mc.prototype,"ytRendererstamperBehavior",void 0);_.L([_.x(),_.p("design:type",Object)],Mc.prototype,"data",void 0);_.L([_.U({is:"ytd-report-history-table-reason-cell-renderer",disableElementRegistration:!0})],Mc);
_.D(Mc,"ytd-report-history-table-reason-cell-renderer",function(){if(GEG!==void 0)return GEG;var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-report-history-table-reason-cell-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="latest-reason" class="style-scope ytd-report-history-table-reason-cell-renderer"></div>\n<div id="show-all-reasons" hidden="[[!data.showAllReasons]]" class="style-scope ytd-report-history-table-reason-cell-renderer">\n  <yt-formatted-string text="[[data.showAllReasons]]" class="style-scope ytd-report-history-table-reason-cell-renderer"></yt-formatted-string>\n</div>\n');a.content.insertBefore(_.w().content.cloneNode(!0),
a.content.firstChild);return GEG=a},{mode:1});var cT=function(){return _.G.apply(this,arguments)||this};
_.b(cT,_.G);cT.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"}}}};
_.L([_.Q(_.u4.YtRendererstamperBehavior),_.p("design:type",Object)],cT.prototype,"rendererstamperBehavior",void 0);_.L([_.x(),_.p("design:type",Object)],cT.prototype,"data",void 0);_.L([_.U({is:"ytd-report-history-table-cell-renderer",disableElementRegistration:!0})],cT);
_.D(cT,"ytd-report-history-table-cell-renderer",function(){if(vzw!==void 0)return vzw;var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-report-history-table-cell-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="cell-container" class="style-scope ytd-report-history-table-cell-renderer"></div>\n');a.content.insertBefore(_.w().content.cloneNode(!0),a.content.firstChild);
return vzw=a},{mode:1});var XtI;var Y$=function(){var a=_.G.apply(this,arguments)||this;a.columnType={type:"REPORT_HISTORY_COLUMN_TYPE",content:"REPORT_HISTORY_COLUMN_CONTENT",reason:"REPORT_HISTORY_COLUMN_REASON",status:"REPORT_HISTORY_COLUMN_STATUS",date:"REPORT_HISTORY_COLUMN_DATE"};return a};
_.b(Y$,_.G);Y$.prototype.onDataChanged=function(){var a;if((a=this.data)==null?0:a.style)this.componentStyle=this.getStyleName(this.data.style)};
Y$.prototype.getCellForColumn=function(a){return this.cells.find(function(z){var I;return((I=_.H(z==null?void 0:z.cell,q5j)||_.H(z==null?void 0:z.cell,Y5e))==null?void 0:I.columnId)===a.type})};
Y$.prototype.getClassForColumn=function(a){switch(a){case "REPORT_HISTORY_COLUMN_DATE":return"date";default:return""}};
Y$.prototype.getStyleName=function(a){switch(a){case "REPORT_HISTORY_ROW_STYLE_COMPACT":return"COMPACT_ROW";default:return""}};
_.eH.Object.defineProperties(Y$.prototype,{cells:{configurable:!0,enumerable:!0,get:function(){var a;return(((a=this.data)==null?void 0:a.cells)||[]).map(function(z){return _.H(z,c4I)})}}});
Y$.prototype.onDataChanged=Y$.prototype.onDataChanged;_.L([_.x(),_.p("design:type",Object)],Y$.prototype,"data",void 0);_.L([_.x(),_.p("design:type",Array)],Y$.prototype,"columnRenderData",void 0);_.L([_.x({reflectToAttribute:!0}),_.p("design:type",String)],Y$.prototype,"componentStyle",void 0);_.L([_.S("data"),_.p("design:type",Array),_.p("design:paramtypes",[])],Y$.prototype,"cells",null);
_.L([_.O8("data"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],Y$.prototype,"onDataChanged",null);_.L([_.U({is:"ytd-report-history-table-row-renderer",disableElementRegistration:!0})],Y$);
_.D(Y$,"ytd-report-history-table-row-renderer",function(){if(XtI!==void 0)return XtI;var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-report-history-table-row-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="row-container" class="style-scope ytd-report-history-table-row-renderer">\n  <template is="dom-repeat" items="[[columnRenderData]]" as="column" class="style-scope ytd-report-history-table-row-renderer">\n    <div class$="[[column.classes]] cell-body style-scope ytd-report-history-table-row-renderer" role="cell" style$="[[column.style]]">\n      <ytd-report-history-table-cell-renderer class$="[[getClassForColumn(column.type)]] style-scope ytd-report-history-table-row-renderer" data="[[getCellForColumn(column)]]"></ytd-report-history-table-cell-renderer>\n    </div>\n  </template>\n</div>\n');a.content.insertBefore(_.w().content.cloneNode(!0),
a.content.firstChild);return XtI=a},{mode:1});var TNw;var dql;var dFx={padding:12,paddingLeftFirstColumn:0,paddingRightLastColumn:0,minWidth:50,maxWidth:Infinity,flexGrow:1},W0i={padding:12,paddingLeftFirstColumn:24,paddingRightLastColumn:24,minWidth:50,maxWidth:Infinity,flexGrow:0};var qc=function(){return _.G.apply(this,arguments)||this};
_.b(qc,_.G);qc.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"}}}}}};
qc.prototype.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"rows","yt-reload-continuation-items-command-body":"rows"}};
_.eH.Object.defineProperties(qc.prototype,{tableSpec:{configurable:!0,enumerable:!0,get:function(){var a;return((a=this.data)==null?0:a.columns)?L01(this.data.columns):{columns:{},columnsToShow:[]}}},
columnRenderData:{configurable:!0,enumerable:!0,get:function(){return DFG(this.tableSpec)}},
totalMinWidth:{configurable:!0,enumerable:!0,get:function(){var a=this.tableSpec,z=dFx;z=z===void 0?W0i:z;z=RM3(a.columnDimensions,a.columnsToShow||[],z);a=0;z=_.C(z);for(var I=z.next();!I.done;I=z.next())I=I.value,a+=I.minWidth+I.paddingLeft+I.paddingRight;return a}},
tableWidthStyle:{configurable:!0,enumerable:!0,get:function(){return"min-width:"+this.totalMinWidth+"px;"}}});
_.L([_.Q(_.M8),_.p("design:type",Object)],qc.prototype,"ytContinuationHandlerBehavior",void 0);_.L([_.Q(_.u4.YtRendererstamperBehavior),_.p("design:type",Object)],qc.prototype,"ytRendererstamperBehavior",void 0);_.L([_.x(),_.p("design:type",Object)],qc.prototype,"data",void 0);_.L([_.S("data"),_.p("design:type",Object),_.p("design:paramtypes",[])],qc.prototype,"tableSpec",null);_.L([_.S("tableSpec"),_.p("design:type",Array),_.p("design:paramtypes",[])],qc.prototype,"columnRenderData",null);
_.L([_.S("tableSpec"),_.p("design:type",Number),_.p("design:paramtypes",[])],qc.prototype,"totalMinWidth",null);_.L([_.S("totalMinWidth"),_.p("design:type",String),_.p("design:paramtypes",[])],qc.prototype,"tableWidthStyle",null);_.L([_.U({is:"ytd-table-renderer",disableElementRegistration:!0})],qc);
_.D(qc,"ytd-table-renderer",function(){if(dql!==void 0)return dql;var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-table-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="table-content" role="table" style$="[[tableWidthStyle]]" class="style-scope ytd-table-renderer">\n  <div id="table-header" role="row" class="style-scope ytd-table-renderer">\n    <template is="dom-repeat" items="[[columnRenderData]]" as="column" class="style-scope ytd-table-renderer">\n      <div class$="[[column.classes]] cell-header style-scope ytd-table-renderer" style$="[[column.style]]" role="columnheader">\n        <h4 id="[[column.type]]-header-name" class="header-name style-scope ytd-table-renderer">\n          <span class="style-scope ytd-table-renderer">[[column.headerName]]</span>\n        </h4>\n        <div class="cell-header-icon style-scope ytd-table-renderer" hidden="[[!column.headerIcon]]">\n          <yt-icon icon="[[column.headerIcon]]" class="style-scope ytd-table-renderer"></yt-icon>\n        </div>\n      </div>\n    </template> \n  </div>\n  <div id="table-body" class="style-scope ytd-table-renderer">\n  </div>\n</div>\n');a.content.insertBefore(_.w().content.cloneNode(!0),
a.content.firstChild);return dql=a},{mode:1});var eo=function(){return _.G.apply(this,arguments)||this};
_.b(eo,_.G);eo.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}}}}}};
_.L([_.Q(_.u4.YtRendererstamperBehavior),_.p("design:type",Object)],eo.prototype,"ytRendererstamperBehavior",void 0);_.L([_.x(),_.p("design:type",Object)],eo.prototype,"data",void 0);_.L([_.U({is:"ytd-report-reason-history-modal-renderer",disableElementRegistration:!0})],eo);
_.D(eo,"ytd-report-reason-history-modal-renderer",function(){if(TNw!==void 0)return TNw;var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-report-reason-history-modal-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="report-history-modal-body" class="style-scope ytd-report-reason-history-modal-renderer">\n  <h4 class="title style-scope ytd-report-reason-history-modal-renderer">\n    <yt-formatted-string text="[[data.title]]" class="style-scope ytd-report-reason-history-modal-renderer"></yt-formatted-string>\n  </h4>\n  <div id="content-info" class="style-scope ytd-report-reason-history-modal-renderer"></div>\n  <tp-yt-paper-dialog-scrollable id="scroller" class="style-scope ytd-report-reason-history-modal-renderer">\n    <div id="reasons-table" class="style-scope ytd-report-reason-history-modal-renderer"></div>\n  </tp-yt-paper-dialog-scrollable>\n</div>\n<div id="report-history-modal-footer" class="style-scope ytd-report-reason-history-modal-renderer">\n  <div id="done-button" class="style-scope ytd-report-reason-history-modal-renderer"></div>\n</div>\n');a.content.insertBefore(_.w().content.cloneNode(!0),
a.content.firstChild);return TNw=a},{mode:1});var WWf;var ozv;var Uqo;var ax=function(){return _.G.apply(this,arguments)||this};
_.b(ax,_.G);_.L([_.Q(_.k.YtRendererBehavior),_.p("design:type",Object)],ax.prototype,"ytRendererBehavior",void 0);_.L([_.x(),_.p("design:type",Object)],ax.prototype,"data",void 0);_.L([_.U({is:"ytd-profile-column-stats-entry-renderer",disableElementRegistration:!0})],ax);
_.D(ax,"ytd-profile-column-stats-entry-renderer",function(){if(Uqo!==void 0)return Uqo;var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-profile-column-stats-entry-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="label" class="style-scope ytd-profile-column-stats-entry-renderer">[[getSimpleString(data.label)]]</div>\n<div id="value" class="style-scope ytd-profile-column-stats-entry-renderer">[[getSimpleString(data.value)]]</div>\n');a.content.insertBefore(_.w().content.cloneNode(!0),
a.content.firstChild);return Uqo=a},{mode:1});var Dqw;var je=function(){return _.G.apply(this,arguments)||this};
_.b(je,_.G);je.prototype.configureRendererStamper=function(){return{"data.items":{id:"items",mapping:{profileColumnStatsEntryRenderer:{component:"ytd-profile-column-stats-entry-renderer",noInjection:!0}}}}};
_.L([_.Q(_.u4.YtRendererstamperBehavior),_.p("design:type",Object)],je.prototype,"ytRendererstamperBehavior",void 0);_.L([_.Q(_.k.YtRendererBehavior),_.p("design:type",Object)],je.prototype,"ytRendererBehavior",void 0);_.L([_.x(),_.p("design:type",Object)],je.prototype,"data",void 0);_.L([_.U({is:"ytd-profile-column-stats-renderer",disableElementRegistration:!0})],je);
_.D(je,"ytd-profile-column-stats-renderer",function(){if(Dqw!==void 0)return Dqw;var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-profile-column-stats-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="items" class="style-scope ytd-profile-column-stats-renderer"></div>\n');a.content.insertBefore(_.w().content.cloneNode(!0),a.content.firstChild);return Dqw=a},{mode:1});var R8w;var zf=function(){return _.G.apply(this,arguments)||this};
_.b(zf,_.G);_.eH.Object.defineProperties(zf.prototype,{thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){var a;if((a=this.data)==null||!a.useThumbnailSize)return 80;var z,I;a=(z=this.data)==null?void 0:(I=z.thumbnail)==null?void 0:I.thumbnails;var J;return a&&((J=a[0])==null?void 0:J.width)||80}},
thumbnailHeight:{configurable:!0,enumerable:!0,get:function(){var a;if((a=this.data)==null||!a.useThumbnailSize)return 80;var z,I;a=(z=this.data)==null?void 0:(I=z.thumbnail)==null?void 0:I.thumbnails;var J;return a&&((J=a[0])==null?void 0:J.height)||80}}});
_.L([_.Q(_.k.YtRendererBehavior),_.p("design:type",Object)],zf.prototype,"ytRendererBehavior",void 0);_.L([_.x(),_.p("design:type",Object)],zf.prototype,"data",void 0);_.L([_.x({reflectToAttribute:!0}),_.p("design:type",String)],zf.prototype,"componentStyle",void 0);_.L([_.S("data.useThumbnailSize"),_.p("design:type",Object),_.p("design:paramtypes",[])],zf.prototype,"thumbnailWidth",null);
_.L([_.S("data.useThumbnailSize"),_.p("design:type",Object),_.p("design:paramtypes",[])],zf.prototype,"thumbnailHeight",null);_.L([_.U({is:"ytd-profile-column-user-info-renderer",disableElementRegistration:!0})],zf);
_.D(zf,"ytd-profile-column-user-info-renderer",function(){if(R8w!==void 0)return R8w;var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-profile-column-user-info-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-img-shadow id="thumbnail" height="[[thumbnailHeight]]" thumbnail="[[data.thumbnail]]" width="[[thumbnailWidth]]" class="style-scope ytd-profile-column-user-info-renderer">\n</yt-img-shadow>\n<div id="title" class="style-scope ytd-profile-column-user-info-renderer">[[getSimpleString(data.title)]]</div>\n<div id="subtitle" class="style-scope ytd-profile-column-user-info-renderer">[[getSimpleString(data.subtitle)]]</div>\n');a.content.insertBefore(_.w().content.cloneNode(!0),
a.content.firstChild);return R8w=a},{mode:1});var Ix=function(){return _.G.apply(this,arguments)||this};
_.b(Ix,_.G);Ix.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]]"}}}}}};
_.L([_.Q(_.k.YtRendererBehavior),_.p("design:type",Object)],Ix.prototype,"ytRendererBehavior",void 0);_.L([_.Q(_.u4.YtRendererstamperBehavior),_.p("design:type",Object)],Ix.prototype,"ytRendererstamperBehavior",void 0);_.L([_.x(),_.p("design:type",Object)],Ix.prototype,"data",void 0);_.L([_.x({reflectToAttribute:!0}),_.p("design:type",String)],Ix.prototype,"componentStyle",void 0);_.L([_.U({is:"ytd-profile-column-renderer",disableElementRegistration:!0})],Ix);
_.D(Ix,"ytd-profile-column-renderer",function(){if(ozv!==void 0)return ozv;var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-profile-column-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="items" class="style-scope ytd-profile-column-renderer"></div>\n');a.content.insertBefore(_.w().content.cloneNode(!0),a.content.firstChild);return ozv=a},{mode:1});var Jl=function(){var a=_.G.apply(this,arguments)||this;a.componentStyle="NON_CENTERED_PROFILE";return a};
_.b(Jl,_.G);Jl.prototype.configureRendererStamper=function(){return{"data.reportStats":{id:"report-stats",mapping:{profileColumnRenderer:{component:"ytd-profile-column-renderer",properties:{componentStyle:"[[componentStyle]]"}}}}}};
Jl.prototype.getIcon=function(a){return a?"settings:"+a.toLowerCase():null};
_.L([_.Q(_.k.YtRendererBehavior),_.p("design:type",Object)],Jl.prototype,"ytRendererBehavior",void 0);_.L([_.Q(_.u4.YtRendererstamperBehavior),_.p("design:type",Object)],Jl.prototype,"ytRendererstamperBehavior",void 0);_.L([_.x(),_.p("design:type",Object)],Jl.prototype,"data",void 0);_.L([_.U({is:"ytd-page-introduction-renderer",disableElementRegistration:!0})],Jl);
_.D(Jl,"ytd-page-introduction-renderer",function(){if(WWf!==void 0)return WWf;var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-page-introduction-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="primary-content" class="style-scope ytd-page-introduction-renderer">\n  <div id="introduction-text" class="style-scope ytd-page-introduction-renderer">\n    <div id="name" class="style-scope ytd-page-introduction-renderer">[[getSimpleString(data.pageTitle)]]</div>\n    <div id="title" class="style-scope ytd-page-introduction-renderer">[[getSimpleString(data.headerText)]]</div>\n    <yt-formatted-string id="text" split-lines="" text="[[data.bodyText]]" class="style-scope ytd-page-introduction-renderer">\n    </yt-formatted-string>\n    <ul class="introduction-bullet-items style-scope ytd-page-introduction-renderer" hidden="[[!data.bulletMessages]]">\n      <template is="dom-repeat" items="[[data.bulletMessages]]" as="bullet" class="style-scope ytd-page-introduction-renderer">\n        <li class="style-scope ytd-page-introduction-renderer">\n          <yt-formatted-string id="text" text="[[bullet]]" class="style-scope ytd-page-introduction-renderer"></yt-formatted-string>\n        </li>\n      </template>\n    </ul>\n    <div class="introduction-additional-lines style-scope ytd-page-introduction-renderer" hidden="[[!data.additionalLines]]">\n      <template is="dom-repeat" items="[[data.additionalLines]]" as="line" class="style-scope ytd-page-introduction-renderer">\n        <p class="style-scope ytd-page-introduction-renderer"> <yt-formatted-string id="text" text="[[line]]" class="style-scope ytd-page-introduction-renderer"></yt-formatted-string> </p>\n      </template>\n    </div>\n    <yt-formatted-string id="text" force-default-style="" text="[[data.footerText]]" class="style-scope ytd-page-introduction-renderer">\n    </yt-formatted-string>\n  </div>\n  <yt-icon hidden="[[!data.headerIcon]]" icon="[[getIcon(data.headerIcon.iconType)]]" class="style-scope ytd-page-introduction-renderer"></yt-icon>\n  <yt-img-shadow height="160" hidden="[[!data.headerImage]]" thumbnail="[[data.headerImage]]" class="style-scope ytd-page-introduction-renderer">\n  </yt-img-shadow>\n</div>\n<div id="report-stats" hidden="[[!data.reportStats]]" class="style-scope ytd-page-introduction-renderer"></div>\n');a.content.insertBefore(_.w().content.cloneNode(!0),
a.content.firstChild);return WWf=a},{mode:1});var LWG;var rT=function(){return _.G.apply(this,arguments)||this};
_.b(rT,_.G);_.L([_.Q(_.k.YtRendererBehavior),_.p("design:type",Object)],rT.prototype,"ytRendererBehavior",void 0);_.L([_.x(),_.p("design:type",Object)],rT.prototype,"data",void 0);_.L([_.U({is:"ytd-report-description-renderer",disableElementRegistration:!0})],rT);
_.D(rT,"ytd-report-description-renderer",function(){if(LWG!==void 0)return LWG;var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-report-description-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="report-description-vertical-line style-scope ytd-report-description-renderer"></div>\n<div class="report-description style-scope ytd-report-description-renderer">\n  <div class="report-description-item style-scope ytd-report-description-renderer">\n    <div class="report-description-upper-bullet report-description-bullet style-scope ytd-report-description-renderer"></div>\n    <yt-formatted-string class="report-receipt style-scope ytd-report-description-renderer" text="[[data.receipt]]">\n    </yt-formatted-string>\n  </div>\n  <div class="report-description-item style-scope ytd-report-description-renderer">\n    <div class="report-description-lower-bullet report-description-bullet style-scope ytd-report-description-renderer"></div>\n    <yt-formatted-string class="report-state style-scope ytd-report-description-renderer" text="[[data.state]]">\n    </yt-formatted-string>\n  </div>\n</div>\n');a.content.insertBefore(_.w().content.cloneNode(!0),
a.content.firstChild);return LWG=a},{mode:1});var l9E;var ptG;var P_=function(){return _.G.apply(this,arguments)||this};
_.b(P_,_.G);P_.prototype.configureRendererStamper=function(){return{"data.description":{id:"description",mapping:{reportDescriptionRenderer:"ytd-report-description-renderer"}}}};
_.L([_.Q(_.u4.YtRendererstamperBehavior),_.p("design:type",Object)],P_.prototype,"ytRendererstamperBehavior",void 0);_.L([_.Q(_.k.YtRendererBehavior),_.p("design:type",Object)],P_.prototype,"ytRendererBehavior",void 0);_.L([_.x(),_.p("design:type",Object)],P_.prototype,"data",void 0);_.L([_.U({is:"ytd-video-report-renderer",disableElementRegistration:!0})],P_);
_.D(P_,"ytd-video-report-renderer",function(){if(ptG!==void 0)return ptG;var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-video-report-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="report-thumbnail style-scope ytd-video-report-renderer"></div>\n<div class="report-info style-scope ytd-video-report-renderer">\n  <yt-formatted-string class="report-title style-scope ytd-video-report-renderer" text="[[data.title]]">\n  </yt-formatted-string>\n  <yt-formatted-string class="report-subtitle style-scope ytd-video-report-renderer" text="[[data.shortBylineText]]">\n  </yt-formatted-string>\n</div>\n<div id="description" class="style-scope ytd-video-report-renderer"></div>\n');a.content.insertBefore(_.w().content.cloneNode(!0),
a.content.firstChild);return ptG=a},{mode:1});var wtJ;_.$q("itemSectionRenderer","messageRenderer","ytd-message-renderer");_.$q("multiPageMenuSectionItems","messageRenderer","ytd-message-renderer");var Zh=function(){return _.G.apply(this,arguments)||this};
_.b(Zh,_.G);Zh.prototype.configureRendererStamper=function(){return{"data.button":{id:"message-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{overrides:"[[buttonOverride]]"}}}},"data.icon":{id:"icon",mapping:{iconType:{component:"yt-icon",properties:{icon:"[[data.icon.iconType]]"}}}},"data.thumbnail":{id:"thumbnail",mapping:{messageThumbnailRenderer:{component:"yt-img-shadow",properties:{thumbnail:"[[data.thumbnail.messageThumbnailRenderer.thumbnailDetails]]"}}}}}};
Zh.prototype.computeMessageStyle=function(a){return a};
Zh.prototype.computeButtonOverride=function(a){var z;if((a==null?0:(z=a.style)==null?0:z.value)&&a.style.value==="RENDER_STYLE_BANNER_PANEL")return{size:"S"}};
_.L([_.Q(_.k.YtRendererBehavior),_.p("design:type",Object)],Zh.prototype,"ytRendererBehavior",void 0);_.L([_.Q(_.u4.YtRendererstamperBehavior),_.p("design:type",Object)],Zh.prototype,"ytRendererstamperBehavior",void 0);_.L([_.x(),_.p("design:type",Object)],Zh.prototype,"data",void 0);_.L([_.x({reflectToAttribute:!0}),_.p("design:type",Boolean)],Zh.prototype,"shelf",void 0);_.L([_.x({reflectToAttribute:!0}),_.p("design:type",Boolean)],Zh.prototype,"panel",void 0);
_.L([_.x({reflectToAttribute:!0,computed:"computeMessageStyle(data.style.value)"}),_.p("design:type",Boolean)],Zh.prototype,"componentStyle",void 0);_.L([_.x({computed:"computeButtonOverride(data)"}),_.p("design:type",Object)],Zh.prototype,"buttonOverride",void 0);_.L([_.U({is:"ytd-message-renderer",disableElementRegistration:!0})],Zh);
_.D(Zh,"ytd-message-renderer",function(){if(wtJ!==void 0)return wtJ;var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-message-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="icon" class="style-scope ytd-message-renderer"></div>\n<div id="thumbnail" class="style-scope ytd-message-renderer"></div>\n<yt-formatted-string id="message" hidden$="[[!data.text]]" split-lines="" text="[[data.text]]" class="style-scope ytd-message-renderer"></yt-formatted-string>\n<yt-formatted-string id="submessage" hidden$="[[!data.subtext]]" split-lines="" text="[[data.subtext.messageSubtextRenderer.text]]" class="style-scope ytd-message-renderer"></yt-formatted-string>\n<div id="message-button" class="style-scope ytd-message-renderer"></div>\n');a.content.insertBefore(_.w().content.cloneNode(!0),
a.content.firstChild);return wtJ=a},{mode:1});var Cf=function(){return _.G.apply(this,arguments)||this};
_.b(Cf,_.G);Cf.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"}}}};
Cf.prototype.configureContinuationPathMap=function(){return{"yt-reload-continuation-items-command-body":"table"}};
Cf.prototype.onRequestError=function(){this.ytContinuationHandlerBehavior.continuationIsReloading=!1};
_.eH.Object.defineProperties(Cf.prototype,{isUnifiedReportHistory:{configurable:!0,enumerable:!0,get:function(){var a,z;return!!(((a=this.data)==null?0:a.header)&&((z=this.data)==null?0:z.table))}}});
Cf.prototype.onRequestError=Cf.prototype.onRequestError;_.L([_.Q(_.M8),_.p("design:type",Object)],Cf.prototype,"ytContinuationHandlerBehavior",void 0);_.L([_.Q(_.k.YtRendererBehavior),_.p("design:type",Object)],Cf.prototype,"ytRendererBehavior",void 0);_.L([_.Q(_.u4.YtRendererstamperBehavior),_.p("design:type",Object)],Cf.prototype,"ytRendererstamperBehavior",void 0);_.L([_.x(),_.p("design:type",Object)],Cf.prototype,"data",void 0);
_.L([_.S("data"),_.p("design:type",Object),_.p("design:paramtypes",[])],Cf.prototype,"isUnifiedReportHistory",null);_.L([_.gz("yt-service-request-error"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],Cf.prototype,"onRequestError",null);_.L([_.U({is:"ytd-report-history-section-renderer",disableElementRegistration:!0})],Cf);
_.D(Cf,"ytd-report-history-section-renderer",function(){if(l9E!==void 0)return l9E;var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-report-history-section-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="items" hidden="[[isUnifiedReportHistory]]" class="style-scope ytd-report-history-section-renderer"></div>\n\n\n<div id="unified-report-history" hidden="[[!isUnifiedReportHistory]]" class="style-scope ytd-report-history-section-renderer">\n  <div id="header" class="style-scope ytd-report-history-section-renderer"></div>\n  <div class="table-container style-scope ytd-report-history-section-renderer">\n    <div id="history-table" class="style-scope ytd-report-history-section-renderer"></div>\n    <div class="spinner-container style-scope ytd-report-history-section-renderer" hidden="[[!continuationIsReloading]]">\n      <tp-yt-paper-spinner active="" class="style-scope ytd-report-history-section-renderer"></tp-yt-paper-spinner>\n    </div>\n  </div>\n</div>\n');a.content.insertBefore(_.w().content.cloneNode(!0),
a.content.firstChild);return l9E=a},{mode:1});var mqG;var Nv=function(){var a=_.G.apply(this,arguments)||this;a.answerExpanded=!1;return a};
_.b(Nv,_.G);Nv.prototype.toggleAnswer=function(){this.answerExpanded=!this.answerExpanded};
_.L([_.Q(_.k.YtRendererBehavior),_.p("design:type",Object)],Nv.prototype,"ytRendererBehavior",void 0);_.L([_.Q(_.u4.YtRendererstamperBehavior),_.p("design:type",Object)],Nv.prototype,"ytRendererstamperBehavior",void 0);_.L([_.x(),_.p("design:type",Object)],Nv.prototype,"data",void 0);_.L([_.x({reflectToAttribute:!0}),_.p("design:type",Object)],Nv.prototype,"answerExpanded",void 0);_.L([_.U({is:"ytd-handles-claiming-faq-renderer",disableElementRegistration:!0})],Nv);
_.D(Nv,"ytd-handles-claiming-faq-renderer",function(){if(mqG!==void 0)return mqG;var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-handles-claiming-faq-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="head style-scope ytd-handles-claiming-faq-renderer" on-click="toggleAnswer">\n  <span class="question style-scope ytd-handles-claiming-faq-renderer">[[getSimpleString(data.question)]]</span>\n  <yt-icon id="expand-arrow" class="answer-arrow style-scope ytd-handles-claiming-faq-renderer" hidden="[[answerExpanded]]" icon="yt-icons:expand-more">\n  </yt-icon>\n  <yt-icon id="collapse-arrow" class="answer-arrow style-scope ytd-handles-claiming-faq-renderer" hidden="[[!answerExpanded]]" icon="yt-icons:expand-less">\n  </yt-icon>\n</div>\n<tp-yt-iron-collapse id="collapse" opened="[[answerExpanded]]" class="style-scope ytd-handles-claiming-faq-renderer">\n  <template is="dom-repeat" items="[[data.answers]]" class="style-scope ytd-handles-claiming-faq-renderer">\n    <yt-formatted-string class="answer style-scope ytd-handles-claiming-faq-renderer" split-lines="" text="[[item]]"></yt-formatted-string>\n  </template>\n</tp-yt-iron-collapse>\n');
a.content.insertBefore(_.w().content.cloneNode(!0),a.content.firstChild);return mqG=a},{mode:1});var ygO;var kEo=function(){return _.G.apply(this,arguments)||this};
_.b(kEo,_.G);_.L([_.x(),_.p("design:type",Object)],kEo.prototype,"data",void 0);_.L([_.U({is:"ytd-handles-claiming-faq-section-renderer",disableElementRegistration:!0})],kEo);
_.D(kEo,"ytd-handles-claiming-faq-section-renderer",function(){if(ygO!==void 0)return ygO;var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-handles-claiming-faq-section-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="wrapper" class="style-scope ytd-handles-claiming-faq-section-renderer">\n  <yt-formatted-string id="title" text="[[data.header]]" class="style-scope ytd-handles-claiming-faq-section-renderer"></yt-formatted-string>\n  <template is="dom-repeat" items="[[data.faqs]]" class="style-scope ytd-handles-claiming-faq-section-renderer">\n    <ytd-handles-claiming-faq-renderer data="[[item]]" class="style-scope ytd-handles-claiming-faq-section-renderer"></ytd-handles-claiming-faq-renderer>\n  </template>\n</div>\n');a.content.insertBefore(_.w().content.cloneNode(!0),
a.content.firstChild);return ygO=a},{mode:1});var MV1;var tl=function(){var a=_.G.apply(this,arguments)||this;a.rightSquigglyDark="https://www.gstatic.com/youtube/img/handles/handles_squiggle_1_dark_v1.svg";a.rightSquigglyLight="https://www.gstatic.com/youtube/img/handles/handles_squiggle_1_light_v1.svg";a.leftSquigglyDark="https://www.gstatic.com/youtube/img/handles/handles_squiggle_2_dark_v1.svg";a.leftSquigglyLight="https://www.gstatic.com/youtube/img/handles/handles_squiggle_2_light_v1.svg";a.leftSquiggly=a.leftSquigglyLight;a.rightSquiggly=a.rightSquigglyLight;
a.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};a.actionButtonOverride={style:"mono",type:"filled",size:"XL"};return a};
_.b(tl,_.G);_.Z=tl.prototype;_.Z.updateLeftSquigglyStyle=function(){_.uK(this.hostElement,{"--yt-left-squiggly-background":"url("+this.leftSquiggly+")"})};
_.Z.updateRightSquigglyStyle=function(){_.uK(this.hostElement,{"--yt-right-squiggly-background":"url("+this.rightSquiggly+")"})};
_.Z.ready=function(){var a=document.documentElement.hasAttribute("dark");this.onDarkModeToggledAction(a)};
_.Z.onDarkModeToggledAction=function(a){a!==this.isDarkTheme&&(this.set("isDarkTheme",a),a?(this.leftSquiggly=this.leftSquigglyDark,this.rightSquiggly=this.rightSquigglyDark):(this.leftSquiggly=this.leftSquigglyLight,this.rightSquiggly=this.rightSquigglyLight))};
_.Z.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{overrides:"[[actionButtonOverride]]"}}}}}};
tl.prototype.updateRightSquigglyStyle=tl.prototype.updateRightSquigglyStyle;tl.prototype.updateLeftSquigglyStyle=tl.prototype.updateLeftSquigglyStyle;_.L([_.x(),_.p("design:type",Object)],tl.prototype,"data",void 0);_.L([_.x({value:!1}),_.p("design:type",Boolean)],tl.prototype,"isDarkTheme",void 0);_.L([_.x(),_.p("design:type",String)],tl.prototype,"leftSquiggly",void 0);_.L([_.x(),_.p("design:type",String)],tl.prototype,"rightSquiggly",void 0);
_.L([_.O8("leftSquiggly"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],tl.prototype,"updateLeftSquigglyStyle",null);_.L([_.O8("rightSquiggly"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],tl.prototype,"updateRightSquigglyStyle",null);_.L([_.Q(_.k.YtRendererBehavior),_.p("design:type",Object)],tl.prototype,"ytRendererBehavior",void 0);
_.L([_.Q(_.u4.YtRendererstamperBehavior),_.p("design:type",Object)],tl.prototype,"ytRendererstamperBehavior",void 0);_.L([_.Q(_.Hc.YtActionHandlerBehavior),_.p("design:type",Object)],tl.prototype,"ytActionHandlerBehavior",void 0);_.L([_.x(),_.p("design:type",Object)],tl.prototype,"actionButtonOverride",void 0);_.L([_.U({is:"ytd-handles-claiming-header-renderer",disableElementRegistration:!0})],tl);
_.D(tl,"ytd-handles-claiming-header-renderer",function(){if(MV1!==void 0)return MV1;var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-handles-claiming-header-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="left-container" class="style-scope ytd-handles-claiming-header-renderer">\n  <div id="left-image" class="style-scope ytd-handles-claiming-header-renderer"></div>\n</div>\n<div id="outer-container" class="style-scope ytd-handles-claiming-header-renderer">\n  <yt-img-shadow id="profile-picture" height="150" thumbnail="[[data.profilePicture]]" width="150" class="style-scope ytd-handles-claiming-header-renderer">\n  </yt-img-shadow>\n  <yt-formatted-string id="display-name" text="[[data.displayName]]" class="style-scope ytd-handles-claiming-header-renderer"></yt-formatted-string>\n  <yt-formatted-string id="title" text="[[data.title]]" class="style-scope ytd-handles-claiming-header-renderer"></yt-formatted-string>\n  <yt-formatted-string id="subtitle" text="[[data.subtitle]]" class="style-scope ytd-handles-claiming-header-renderer"></yt-formatted-string>\n  <div id="action-button" class="style-scope ytd-handles-claiming-header-renderer">\n  </div>\n</div>\n<div id="right-container" class="style-scope ytd-handles-claiming-header-renderer">\n  <div id="right-image" class="style-scope ytd-handles-claiming-header-renderer"></div>\n</div>\n');
a.content.insertBefore(_.w().content.cloneNode(!0),a.content.firstChild);return MV1=a},{mode:1});var cg1;var uH=function(){var a=_.G.apply(this,arguments)||this;a.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};a.image0DarkSquigglyBackground="https://www.gstatic.com/youtube/img/handles/handles_squiggle_4_dark.svg";a.image0LightSquigglyBackground="https://www.gstatic.com/youtube/img/handles/handles_squiggle_4_light.svg";a.image1DarkSquigglyBackground="https://www.gstatic.com/youtube/img/handles/handles_squiggle_6_dark.svg";a.image1LightSquigglyBackground="https://www.gstatic.com/youtube/img/handles/handles_squiggle_6_light.svg";
a.image3DarkSquigglyBackground="https://www.gstatic.com/youtube/img/handles/handles_squiggle_5_dark.svg";a.image3LightSquigglyBackground="https://www.gstatic.com/youtube/img/handles/handles_squiggle_5_light_v2.svg";a.image0SquigglyBackground=a.image0LightSquigglyBackground;a.image1SquigglyBackground=a.image1LightSquigglyBackground;a.image3SquigglyBackground=a.image3LightSquigglyBackground;return a};
_.b(uH,_.G);_.Z=uH.prototype;_.Z.ready=function(){this.isDarkTheme=document.documentElement.hasAttribute("dark");this.updateTitleAndImages()};
_.Z.onDataChanged=function(){this.updateTitleAndImages()};
_.Z.onThemeChanged=function(){this.updateTitleAndImages()};
_.Z.onDarkModeToggledAction=function(a){a!==this.isDarkTheme&&(this.isDarkTheme=a)};
_.Z.updateImage0SquigglyBackground=function(){_.uK(this.hostElement,{"--yt-image0-squiggly-background":"url("+this.image0SquigglyBackground+")"})};
_.Z.updateImage1SquigglyBackground=function(){_.uK(this.hostElement,{"--yt-image1-squiggly-background":"url("+this.image1SquigglyBackground+")"})};
_.Z.updateImage3SquigglyBackground=function(){_.uK(this.hostElement,{"--yt-image3-squiggly-background":"url("+this.image3SquigglyBackground+")"})};
_.Z.updateTitleAndImages=function(){var a,z;((a=this.data)==null?void 0:(z=a.titleImages)==null?void 0:z.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))};
uH.prototype.updateImage3SquigglyBackground=uH.prototype.updateImage3SquigglyBackground;uH.prototype.updateImage1SquigglyBackground=uH.prototype.updateImage1SquigglyBackground;uH.prototype.updateImage0SquigglyBackground=uH.prototype.updateImage0SquigglyBackground;uH.prototype.onThemeChanged=uH.prototype.onThemeChanged;uH.prototype.onDataChanged=uH.prototype.onDataChanged;_.L([_.Q(_.Hc.YtActionHandlerBehavior),_.p("design:type",Object)],uH.prototype,"ytActionHandlerBehavior",void 0);
_.L([_.x({reflectToAttribute:!0,value:!1}),_.p("design:type",Boolean)],uH.prototype,"isDarkTheme",void 0);_.L([_.x(),_.p("design:type",Object)],uH.prototype,"data",void 0);_.L([_.x(),_.p("design:type",Object)],uH.prototype,"title0",void 0);_.L([_.x(),_.p("design:type",Object)],uH.prototype,"title1",void 0);_.L([_.x(),_.p("design:type",Object)],uH.prototype,"title2",void 0);_.L([_.x(),_.p("design:type",Object)],uH.prototype,"title3",void 0);
_.L([_.x(),_.p("design:type",Object)],uH.prototype,"title4",void 0);_.L([_.x(),_.p("design:type",Object)],uH.prototype,"image0",void 0);_.L([_.x(),_.p("design:type",Object)],uH.prototype,"image1",void 0);_.L([_.x(),_.p("design:type",Object)],uH.prototype,"image2",void 0);_.L([_.x(),_.p("design:type",Object)],uH.prototype,"image3",void 0);_.L([_.x(),_.p("design:type",Object)],uH.prototype,"image4",void 0);_.L([_.x(),_.p("design:type",String)],uH.prototype,"image0SquigglyBackground",void 0);
_.L([_.x(),_.p("design:type",String)],uH.prototype,"image1SquigglyBackground",void 0);_.L([_.x(),_.p("design:type",String)],uH.prototype,"image3SquigglyBackground",void 0);_.L([_.O8("data"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],uH.prototype,"onDataChanged",null);_.L([_.O8("isDarkTheme"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],uH.prototype,"onThemeChanged",null);
_.L([_.O8("image0SquigglyBackground"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],uH.prototype,"updateImage0SquigglyBackground",null);_.L([_.O8("image1SquigglyBackground"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],uH.prototype,"updateImage1SquigglyBackground",null);
_.L([_.O8("image3SquigglyBackground"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],uH.prototype,"updateImage3SquigglyBackground",null);_.L([_.U({is:"ytd-handles-claiming-title-images-section-renderer",disableElementRegistration:!0})],uH);
_.D(uH,"ytd-handles-claiming-title-images-section-renderer",function(){if(cg1!==void 0)return cg1;var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-handles-claiming-title-images-section-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-formatted-string id="title" text="[[data.title]]" class="style-scope ytd-handles-claiming-title-images-section-renderer"></yt-formatted-string>\n<div id="image-container" class="style-scope ytd-handles-claiming-title-images-section-renderer">\n  <div id="left-container" class="style-scope ytd-handles-claiming-title-images-section-renderer">\n    <div id="background-image0" class="style-scope ytd-handles-claiming-title-images-section-renderer"></div>\n    <div id="background-image1" class="style-scope ytd-handles-claiming-title-images-section-renderer"></div>\n    <yt-formatted-string id="title0" class="image-title style-scope ytd-handles-claiming-title-images-section-renderer" text="[[title0]]"></yt-formatted-string>\n    <yt-img-shadow id="image0" height="802.21" thumbnail="[[image0]]" width="421.6" class="style-scope ytd-handles-claiming-title-images-section-renderer">\n    </yt-img-shadow>\n    <yt-formatted-string id="title1" class="image-title style-scope ytd-handles-claiming-title-images-section-renderer" text="[[title1]]"></yt-formatted-string>\n    <yt-img-shadow id="image1" height="436.87" thumbnail="[[image1]]" width="421.6" class="style-scope ytd-handles-claiming-title-images-section-renderer">\n    </yt-img-shadow>\n  </div>\n  <div id="right-container" class="style-scope ytd-handles-claiming-title-images-section-renderer">\n    <div id="background-image3" class="style-scope ytd-handles-claiming-title-images-section-renderer"></div>\n    <yt-formatted-string id="title2" class="image-title style-scope ytd-handles-claiming-title-images-section-renderer" text="[[title2]]"></yt-formatted-string>\n    <yt-img-shadow id="image2" height="439.5" thumbnail="[[image2]]" width="421.6" class="style-scope ytd-handles-claiming-title-images-section-renderer">\n    </yt-img-shadow>\n    <yt-formatted-string id="title3" class="image-title style-scope ytd-handles-claiming-title-images-section-renderer" text="[[title3]]"></yt-formatted-string>\n    <yt-img-shadow id="image3" height="334.9" thumbnail="[[image3]]" width="421.6" class="style-scope ytd-handles-claiming-title-images-section-renderer">\n    </yt-img-shadow>\n    <yt-formatted-string id="title4" class="image-title style-scope ytd-handles-claiming-title-images-section-renderer" text="[[title4]]"></yt-formatted-string>\n    <yt-img-shadow id="image4" height="334.9" thumbnail="[[image4]]" width="421.6" class="style-scope ytd-handles-claiming-title-images-section-renderer">\n    </yt-img-shadow>\n  </div>\n</div>\n\n');a.content.insertBefore(_.w().content.cloneNode(!0),
a.content.firstChild);return cg1=a},{mode:1});var YbG;var EC=function(){var a=_.G.apply(this,arguments)||this;a.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return a};
_.b(EC,_.G);EC.prototype.ready=function(){var a=document.documentElement.hasAttribute("dark");this.onDarkModeToggledAction(a)};
EC.prototype.onDarkModeToggledAction=function(a){a!==this.isDarkTheme&&this.set("isDarkTheme",a)};
EC.prototype.onCopyButtonClick=function(){var a=this,z,I,J;return _.t(function(r){return(z=a.data)!=null&&z.primaryChannelUrl?r.yield(navigator.clipboard.writeText(((I=a.data)==null?0:I.encodedChannelUrl)?a.data.encodedChannelUrl:"https://"+_.cd((J=a.data)==null?void 0:J.primaryChannelUrl)),0):r.jumpTo(0)})};
_.L([_.x(),_.p("design:type",Object)],EC.prototype,"data",void 0);_.L([_.Q(_.Ms.YtComponentBehavior),_.p("design:type",Object)],EC.prototype,"ytComponentBehavior",void 0);_.L([_.x({reflectToAttribute:!0,value:!1}),_.p("design:type",Boolean)],EC.prototype,"isDarkTheme",void 0);_.L([_.Q(_.Hc.YtActionHandlerBehavior),_.p("design:type",Object)],EC.prototype,"ytActionHandlerBehavior",void 0);_.L([_.U({is:"ytd-handles-claiming-update-social-renderer",disableElementRegistration:!0})],EC);
_.D(EC,"ytd-handles-claiming-update-social-renderer",function(){if(YbG!==void 0)return YbG;var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-handles-claiming-update-social-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="wrapper" class="style-scope ytd-handles-claiming-update-social-renderer">\n  <yt-formatted-string id="title" text="[[data.title]]" class="style-scope ytd-handles-claiming-update-social-renderer"></yt-formatted-string>\n  <yt-formatted-string id="channel-info" text="[[data.primaryChannelInfoText]]" class="style-scope ytd-handles-claiming-update-social-renderer"></yt-formatted-string>\n  <div id="primary-url" class="style-scope ytd-handles-claiming-update-social-renderer">\n    <yt-formatted-string id="primary-channel-url" text="[[data.primaryChannelUrl]]" class="style-scope ytd-handles-claiming-update-social-renderer"></yt-formatted-string>\n    <yt-icon-button id="copy-icon-button" label="[[data.copyText]]" on-click="onCopyButtonClick" class="style-scope ytd-handles-claiming-update-social-renderer">\n      <yt-icon id="copy-icon" icon="yt-icons:copy" class="style-scope ytd-handles-claiming-update-social-renderer"></yt-icon>\n    </yt-icon-button>\n  </div>\n  <yt-formatted-string id="social-title" text="[[data.socialTitle]]" class="style-scope ytd-handles-claiming-update-social-renderer"></yt-formatted-string>\n  <div id="socials-container" class="style-scope ytd-handles-claiming-update-social-renderer">\n    <template is="dom-repeat" items="[[data.socialIcons]]" class="style-scope ytd-handles-claiming-update-social-renderer">\n      <a id="social-icon" class="yt-simple-endpoint style-scope ytd-handles-claiming-update-social-renderer" href$="[[computeHref_(item.onTap)]]" data="[[item.onTap]]" tabindex="-1">\n        <yt-img-shadow height="48" thumbnail="[[item.icon]]" width="48" class="style-scope ytd-handles-claiming-update-social-renderer">\n        </yt-img-shadow>\n      </a>\n    </template>\n  </div>\n</div>\n');
a.content.insertBefore(_.w().content.cloneNode(!0),a.content.firstChild);return YbG=a},{mode:1});var qbw;var B_=function(){var a=_.G.apply(this,arguments)||this;a.JSC$15936_squigglyBackgroundDark="https://www.gstatic.com/youtube/img/handles/handles_curl_section_illustration_dark_v1.svg";a.JSC$15936_squigglyBackgroundLight="https://www.gstatic.com/youtube/img/handles/handles_curl_section_illustration_light_v1.svg";a.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};a.squigglyBackground=a.JSC$15936_squigglyBackgroundLight;return a};
_.b(B_,_.G);B_.prototype.updateSquigglyBackgroundStyle=function(){_.uK(this.hostElement,{"--yt-squiggly-background":"url("+this.squigglyBackground+")"})};
B_.prototype.ready=function(){var a=document.documentElement.hasAttribute("dark");this.set("isDarkTheme",a);this.squigglyBackground=a?this.JSC$15936_squigglyBackgroundDark:this.JSC$15936_squigglyBackgroundLight};
B_.prototype.onDarkModeToggledAction=function(a){a!==this.isDarkTheme&&(this.set("isDarkTheme",a),this.squigglyBackground=a?this.JSC$15936_squigglyBackgroundDark:this.JSC$15936_squigglyBackgroundLight)};
B_.prototype.updateSquigglyBackgroundStyle=B_.prototype.updateSquigglyBackgroundStyle;_.L([_.Q(_.k.YtRendererBehavior),_.p("design:type",Object)],B_.prototype,"ytRendererBehavior",void 0);_.L([_.Q(_.u4.YtRendererstamperBehavior),_.p("design:type",Object)],B_.prototype,"ytRendererstamperBehavior",void 0);_.L([_.Q(_.Hc.YtActionHandlerBehavior),_.p("design:type",Object)],B_.prototype,"ytActionHandlerBehavior",void 0);_.L([_.x(),_.p("design:type",Object)],B_.prototype,"data",void 0);
_.L([_.x({reflectToAttribute:!0,value:!1}),_.p("design:type",Boolean)],B_.prototype,"isDarkTheme",void 0);_.L([_.x(),_.p("design:type",String)],B_.prototype,"squigglyBackground",void 0);_.L([_.O8("squigglyBackground"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],B_.prototype,"updateSquigglyBackgroundStyle",null);_.L([_.U({is:"ytd-handles-claiming-vanity-info-renderer",disableElementRegistration:!0})],B_);
_.D(B_,"ytd-handles-claiming-vanity-info-renderer",function(){if(qbw!==void 0)return qbw;var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-handles-claiming-vanity-info-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="wrapper" class="style-scope ytd-handles-claiming-vanity-info-renderer">\n  <div id="text-pic-container" class="style-scope ytd-handles-claiming-vanity-info-renderer">\n    <div id="pic-container" class="style-scope ytd-handles-claiming-vanity-info-renderer"></div>\n    <div id="text-container" class="style-scope ytd-handles-claiming-vanity-info-renderer">\n      <yt-formatted-string id="info-title" text="[[data.infoTitle]]" class="style-scope ytd-handles-claiming-vanity-info-renderer"></yt-formatted-string>\n      <yt-formatted-string id="info-text" split-lines="" text="[[data.infoText]]" class="style-scope ytd-handles-claiming-vanity-info-renderer"></yt-formatted-string>\n    </div>\n  </div>\n  <template is="dom-if" restamp="" if="[[data.vanities]]" class="style-scope ytd-handles-claiming-vanity-info-renderer">\n    <div id="vanity-container" class="style-scope ytd-handles-claiming-vanity-info-renderer">\n      <yt-formatted-string id="vanity-title" text="[[data.vanityTitle]]" class="style-scope ytd-handles-claiming-vanity-info-renderer"></yt-formatted-string>\n      <div id="vanities" class="style-scope ytd-handles-claiming-vanity-info-renderer">\n        <template is="dom-repeat" items="[[data.vanities]]" class="style-scope ytd-handles-claiming-vanity-info-renderer">\n          <yt-formatted-string class="vanity style-scope ytd-handles-claiming-vanity-info-renderer" force-default-style="" link-inherit-color="" split-lines="" text="[[item]]"></yt-formatted-string>\n        </template>\n      </div>\n    </div>\n  </template>\n</div>\n');
a.content.insertBefore(_.w().content.cloneNode(!0),a.content.firstChild);return qbw=a},{mode:1});var e8O;var gT=function(){var a=_.G.apply(this,arguments)||this;a.JSC$15939_squigglyBackgroundDark="https://www.gstatic.com/youtube/img/handles/handles_squiggle_3_dark.svg";a.JSC$15939_squigglyBackgroundLight="https://www.gstatic.com/youtube/img/handles/handles_squiggle_3_light.svg";a.squigglyBackground=a.JSC$15939_squigglyBackgroundLight;a.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return a};
_.b(gT,_.G);_.Z=gT.prototype;_.Z.ready=function(){var a=document.documentElement.hasAttribute("dark");this.onDarkModeToggledAction(a)};
_.Z.onDarkModeToggledAction=function(a){a!==this.isDarkTheme&&(this.set("isDarkTheme",a),this.squigglyBackground=a?this.JSC$15939_squigglyBackgroundDark:this.JSC$15939_squigglyBackgroundLight)};
_.Z.updateSquigglyBackgroundStyle=function(){_.uK(this.hostElement,{"--yt-squiggly-background":"url("+this.squigglyBackground+")"})};
_.Z.onDataChanged=function(){this.data&&this.setupVideoPlayer()};
_.Z.detached=function(){this.stop()};
_.Z.stop=function(){this.playerElement.stop()};
_.Z.setupVideoPlayer=function(){var a=this,z,I;return _.t(function(J){z=a.data.videoId;I="http://i1.ytimg.com/vi/"+z+"/maxresdefault.jpg";a.playerElement.loadVideoWithPlayerVars({video_id:z,iurlhq:I});_.nu(J)})};
gT.prototype.onDataChanged=gT.prototype.onDataChanged;gT.prototype.updateSquigglyBackgroundStyle=gT.prototype.updateSquigglyBackgroundStyle;_.L([_.x({value:!1}),_.p("design:type",Boolean)],gT.prototype,"isDarkTheme",void 0);_.L([_.x(),_.p("design:type",String)],gT.prototype,"squigglyBackground",void 0);_.L([_.A3("#player"),_.p("design:type",Object)],gT.prototype,"playerElement",void 0);_.L([_.x(),_.p("design:type",Object)],gT.prototype,"data",void 0);
_.L([_.Q(_.Hc.YtActionHandlerBehavior),_.p("design:type",Object)],gT.prototype,"ytActionHandlerBehavior",void 0);_.L([_.O8("squigglyBackground"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],gT.prototype,"updateSquigglyBackgroundStyle",null);_.L([_.O8("data"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],gT.prototype,"onDataChanged",null);
_.L([_.U({is:"ytd-handles-claiming-video-item-renderer",disableElementRegistration:!0})],gT);
_.D(gT,"ytd-handles-claiming-video-item-renderer",function(){if(e8O!==void 0)return e8O;var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-handles-claiming-video-item-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="container" class="style-scope ytd-handles-claiming-video-item-renderer">\n  <div id="player-container" class="style-scope ytd-handles-claiming-video-item-renderer">\n    <ytd-player id="player" context="WEB_PLAYER_CONTEXT_CONFIG_ID_HANDLES_CLAIMING" player-id="handlesclaiming" class="style-scope ytd-handles-claiming-video-item-renderer">\n    </ytd-player>\n  </div>\n  <div id="text-pic-container" class="style-scope ytd-handles-claiming-video-item-renderer">\n    <div id="text-container" class="style-scope ytd-handles-claiming-video-item-renderer">\n        <yt-formatted-string id="title" text="[[data.title]]" class="style-scope ytd-handles-claiming-video-item-renderer"></yt-formatted-string>\n        <yt-formatted-string id="subtitle" text="[[data.subtitle]]" class="style-scope ytd-handles-claiming-video-item-renderer"></yt-formatted-string>\n    </div>\n    <div id="pic-container" class="style-scope ytd-handles-claiming-video-item-renderer"></div>\n  </div>\n</div>\n');a.content.insertBefore(_.w().content.cloneNode(!0),
a.content.firstChild);return e8O=a},{mode:1});var arw;var ff=function(){var a=_.nM.apply(this,arguments)||this;a.dragging=!1;a.dragMouseStart=0;a.dragOffsetStart=0;a.containerWidthDiff=0;a.boundPrevClick=function(){a.set("offset",OC(a,a.offset-(a.scrollDistance||320)))};
a.boundNextClick=function(){a.set("offset",OC(a,a.offset+(a.scrollDistance||320)))};
a.boundScrollContainerMouseDown=function(z){a.dragMouseStart=z.clientX;a.dragOffsetStart=a.offset;a.dragging=!0};
a.boundScrollContainerDrag=function(z){a.dragging&&a.set("offset",OC(a,a.dragOffsetStart-(z.clientX-a.dragMouseStart)))};
a.boundMouseUp=function(){a.onMouseUp()};
a.boundWheelScroll=function(z){var I=0;Math.abs(z.deltaX)>=Math.abs(z.deltaY)?I=z.deltaX:z.shiftKey&&(I=z.deltaY);I!==0&&(a.offset+=I,z.stopPropagation(),z.preventDefault())};
a.boundChipCloudChipScrollIntoView=function(z){(z=z.detail)&&a.scrollChipIntoView(z)};
return a};
_.b(ff,_.nM);ff.prototype.attached=function(){var a=_.PK(this.hostElement).querySelector("#scroll-container");a.addEventListener("wheel",this.boundWheelScroll);a.addEventListener("yt-chip-cloud-chip-scroll-into-view",this.boundChipCloudChipScrollIntoView);a.style.touchAction="pan-y";a.addEventListener("pointerdown",this.boundScrollContainerMouseDown);a.addEventListener("pointermove",this.boundScrollContainerDrag);window.addEventListener("pointerup",this.boundMouseUp)};
ff.prototype.detached=function(){var a=_.PK(this.hostElement).querySelector("#scroll-container");a.removeEventListener("wheel",this.boundWheelScroll);a.removeEventListener("yt-chip-cloud-chip-scroll-into-view",this.boundChipCloudChipScrollIntoView);a.removeEventListener("pointerdown",this.boundScrollContainerMouseDown);a.removeEventListener("pointermove",this.boundScrollContainerDrag);window.removeEventListener("pointerup",this.boundMouseUp)};
ff.prototype.reset=function(){this.set("offset",0);_.Yv(this,this.setContainerWidthDiff);Al(this)};
var OC=function(a,z){return Math.min(Math.max(z,0),a.containerWidthDiff)};
ff.prototype.onMouseUp=function(){this.dragging=!1};
ff.prototype.transformContainer=function(){this.offset=OC(this,this.offset);var a=_.Xw("HTML_DIR")==="rtl"?"":"-";_.PK(this.hostElement).querySelector("#chips").style.transform="translateX("+a+this.offset+"px)";Al(this)};
var Al=function(a){_.Yv(a,a.setButtonsState)};
ff.prototype.setButtonsState=function(){(this.atEnd=this.offset>=this.containerWidthDiff)&&!this.atStart&&(this.offset=OC(this,this.offset));this.atStart=this.offset<=0};
ff.prototype.setContainerWidthDiff=function(){var a=_.PK(this.hostElement).querySelector("#scroll-container"),z=_.PK(this.hostElement).querySelector("#chips");a&&z&&(this.containerWidthDiff=z.clientWidth-a.clientWidth)};
ff.prototype.scrollChipIntoView=function(a){var z=_.PK(this.hostElement).querySelector("#scroll-container");if(z){var I=this.atStart?0:106,J=this.atEnd?0:106;a.offsetLeft<this.offset+I?this.offset=OC(this,a.offsetLeft-I):a.offsetLeft+a.clientWidth>this.offset+z.clientWidth-J&&(this.offset=OC(this,a.offsetLeft+a.clientWidth+J-z.clientWidth))}};
ff.prototype.transformContainer=ff.prototype.transformContainer;_.L([_.x({value:0}),_.p("design:type",Number)],ff.prototype,"offset",void 0);_.L([_.x({value:!0,reflectToAttribute:!0}),_.p("design:type",Boolean)],ff.prototype,"atStart",void 0);_.L([_.x({value:!1,reflectToAttribute:!0}),_.p("design:type",Boolean)],ff.prototype,"atEnd",void 0);_.L([_.x(),_.p("design:type",Number)],ff.prototype,"scrollDistance",void 0);
_.L([_.O8("offset"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],ff.prototype,"transformContainer",null);_.L([_.KM()],ff);var jVj;var zbf;var rZ1=_.ec(function(a){var z=a.data;a=_.C(_.CW(!1,void 0,"HDMMr"));var I=a.next().value,J=a.next().value;a={};a=_.B8("ytChipShapeChip",function(){a:switch(z==null?void 0:z().state){case 0:var P="ytChipShapeActive";break a;case 1:P="ytChipShapeDisabled";break a;default:P="ytChipShapeInactive"}return P},function(){var P=z().type===1||z().type===2,N=z();
return P||N!=null&&N.startIcon?N==null||!N.startIcon||N!=null&&N.text?P?"ytChipShapeEndIconPadding":(N==null?0:N.startIcon)?"ytChipShapeStartIconPadding":"":"ytChipShapeOnlyIconPadding":"ytChipShapeOnlyTextPadding"},(a.ytChipShapeFocused=function(){var P;
return I()&&((P=z())==null?void 0:P.state)!==1},a));
var r=function(P){if((z==null?void 0:z().state)!==1){var N,u;(u=(N=z()).onTap)==null||u.call(N,P)}};
return _.B("chip-shape",{class:"ytChipShapeHost","on:focusin":_.g4(function(){var P=_.ab().resolve(_.eL(_.ET));if(P){J(P.isKeyBoardInUse());var N,u;(u=(N=z()).onFocusIn)==null||u.call(N)}return!1}),
"on:focusout":_.g4(function(){J(!1);return!1})},_.B(IrJ,{shouldWrapInButton:function(){return z().type!==2},
selected:function(){return z().state===0},
onClick:r,isDropdown:function(){return z().type===1},
accessibilityLabel:function(){return z().accessibilityLabel}},_.B("div",{class:a},_.B(_.g,{cond:function(){return z().startIcon},
then:function(){return _.B(_.nS,{icon:function(){var P;return(P=z())==null?void 0:P.startIcon},
className:function(){return z().text?"ytChipShapeIconStart":"ytChipShapeIconOnly"}})}}),function(){return z().text},_.B(JZf,{shape:z,
onClick:r}),_.B(_.Bc,{model:{borderRadius:"8px"}}))))},"Lb");
rZ1.idomCompat=!0;var IrJ=_.ec(function(a){var z=_.g4(function(I){a.onClick(I);return!1});
return _.B(_.g,{cond:a.shouldWrapInButton,then:function(){return _.B("button",{class:"ytChipShapeButtonReset","on:click":z,role:function(){return a.isDropdown()?"combobox":"tab"},
"aria-label":a.accessibilityLabel,"aria-selected":a.selected},a.children)},
else:function(){return a.children}})},"Mb"),JZf=_.ec(function(a){var z=a.shape;
var I=a.onClick;var J=_.g4(function(r){I(r);return!1});
return _.B(_.Fw,null,_.B(_.n3,{when:function(){return z().type===1}},function(){return _.B(_.nS,{icon:"EXPAND",
className:"ytChipShapeIconEnd"})}),_.B(_.n3,{when:function(){return z().type===2}},function(){return _.B("button",{class:"ytChipShapeButtonReset",
"on:click":J},_.B(_.nS,{icon:"CLOSE",className:"ytChipShapeIconEnd"}))}),_.B(_.n3,{when:function(){return z().type===0}},function(){return _.B(_.eJ,null)}))},"Nb");_.Jf(rZ1,"chip-shape",{props:{data:_.zl}});var sC=function(){var a=_.G.apply(this,arguments)||this;a.disableDeselectEvent=!1;a.actionMap={"yt-select-chip-command":"onSelectChipCommand","yt-filter-chip-transform-command":"onFilterChipTransformCommand"};return a};
_.b(sC,_.G);_.Z=sC.prototype;_.Z.onSelectChipCommand=function(a){if(!this.selected&&this.data&&(a=_.H(a,r4G),a.targetId&&a.targetId===this.data.targetId))this.onTap()};
_.Z.onFilterChipTransformCommand=function(a){if(!this.selected&&this.data){var z;(a=(z=_.H(a,qtJ))==null?void 0:z.chipUniqueId)&&a===this.data.uniqueId&&(this.scrollChipIntoView(),this.onTap())}};
_.Z.dataChanged=function(){var a=this;_.Yv(this,function(){a.data&&a.data.isSelected&&!a.selected&&(a.scrollChipIntoView(),a.onTap())})};
_.Z.computeChipStyle=function(a){return a!=null?a:"STYLE_DEFAULT"};
_.Z.onTap=function(){!this.data||this.selected&&this.disableDeselectEvent||(this.ytRendererBehavior.logExplicitClick(this.data),this.selected||!this.data.navigationEndpoint&&!this.isGnomeChip?_.ZF(this.hostElement,"yt-chip-cloud-chip-deselect-action"):(_.ZF(this.hostElement,"yt-chip-cloud-chip-select-action",[this.hostElement,this.isGnomeChip]),this.data&&this.data.navigationEndpoint&&this.ytComponentBehavior.resolveCommand(this.data.navigationEndpoint)))};
_.Z.onFocus=function(){var a=_.ab().resolve(_.eL(_.ET));a&&a.isKeyBoardInUse()&&this.scrollChipIntoView()};
_.Z.scrollChipIntoView=function(){_.PA(this.hostElement,"yt-chip-cloud-chip-scroll-into-view",this.hostElement)};
_.eH.Object.defineProperties(sC.prototype,{hasIcon:{configurable:!0,enumerable:!0,get:function(){var a;return!((a=this.data)==null||!a.icon)}},
isGnomeChip:{configurable:!0,enumerable:!0,get:function(){var a;return((a=this.data)==null?void 0:a.uniqueId)==="gnome_chip"}},
chipShapeData:{configurable:!0,enumerable:!0,get:function(){return kwm({data:this.data,onTap:this.onTap.bind(this),isSelected:this.selected,onFocusIn:this.onFocus.bind(this)})}}});
sC.prototype.onFocus=sC.prototype.onFocus;sC.prototype.onTap=sC.prototype.onTap;sC.prototype.dataChanged=sC.prototype.dataChanged;_.L([_.Q(_.iY),_.p("design:type",Object)],sC.prototype,"ironButtonState",void 0);_.L([_.Q(_.k.YtRendererBehavior),_.p("design:type",Object)],sC.prototype,"ytRendererBehavior",void 0);_.L([_.Q(_.Hc.YtActionHandlerBehavior),_.p("design:type",Object)],sC.prototype,"ytActionHandlerBehavior",void 0);
_.L([_.Q(_.Ms.YtComponentBehavior),_.p("design:type",Object)],sC.prototype,"ytComponentBehavior",void 0);_.L([_.Q(_.V_),_.p("design:type",Object)],sC.prototype,"ironA11yKeysBehavior",void 0);_.L([_.x(),_.p("design:type",Object)],sC.prototype,"disableDeselectEvent",void 0);_.L([_.x(),_.p("design:type",Object)],sC.prototype,"data",void 0);_.L([_.x({reflectToAttribute:!0}),_.S("data.icon"),_.p("design:type",Boolean),_.p("design:paramtypes",[])],sC.prototype,"hasIcon",null);
_.L([_.x({reflectToAttribute:!0}),_.S("data.uniqueId"),_.p("design:type",Boolean),_.p("design:paramtypes",[])],sC.prototype,"isGnomeChip",null);_.L([_.x({computed:"computeChipStyle(data.style.styleType)",reflectToAttribute:!0}),_.p("design:type",String)],sC.prototype,"chipStyle",void 0);_.L([_.x({value:!1,reflectToAttribute:!0}),_.p("design:type",Boolean)],sC.prototype,"selected",void 0);
_.L([_.S("data","selected"),_.p("design:type",Object),_.p("design:paramtypes",[])],sC.prototype,"chipShapeData",null);_.L([_.O8("data"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],sC.prototype,"dataChanged",null);_.L([_.gz("tap"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],sC.prototype,"onTap",null);
_.L([_.gz("focus"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],sC.prototype,"onFocus",null);_.L([_.dz({is:"yt-chip-cloud-chip-renderer",disableElementRegistration:!0})],sC);
_.D(sC,"yt-chip-cloud-chip-renderer",function(){if(zbf===void 0){var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-chip-cloud-chip-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.sections.yt_chip_cloud_chip_renderer.yt.chip.cloud.chip.renderer.css.js--\x3e<div id="chip-shape-container" class="style-scope yt-chip-cloud-chip-renderer">\n    <chip-shape data="[[chipShapeData]]" class="style-scope yt-chip-cloud-chip-renderer"></chip-shape>\n</div>\n');a.content.insertBefore(_.w().content.cloneNode(!0),
a.content.firstChild);var z=a.content,I=z.insertBefore;jVj===void 0&&(jVj=document.createElement("template"));var J=jVj;I.call(z,J.content.cloneNode(!0),a.content.firstChild);zbf=a}a=zbf;return a},{mode:2});var nf=function(){var a=_.G.apply(this,arguments)||this;a.isDarkTheme=!1;a.notSticky=!1;a.transparentBackground=!1;a.shouldHide=!1;a.disableSticky=!1;a.fluidWidth=!1;a.isClipList=!1;a.defaultChipIndex=0;a.isPlaylist=!1;a.playlistVotingAnimationEnabled=_.K("web_enable_voting_animation");a.toolbarHeight=0;a.actionMap={"yt-chip-cloud-chip-select-action":"handleChipCloudChipSelectAction","yt-chip-cloud-chip-deselect-action":"handleChipCloudChipDeselectAction","yt-dark-mode-toggled-action":"onDarkModeToggledAction"};
return a};
_.b(nf,_.G);_.Z=nf.prototype;
_.Z.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}}}}}};
_.Z.attached=function(){var a=this;document.addEventListener("scroll",_.BK(this,this.updateChipBarWidthAndTop));this.isDarkTheme=document.documentElement.hasAttribute("dark");var z;this.toolbarHeight=((z=document.querySelector("ytd-masthead"))==null?void 0:z.clientHeight)||0;window.IntersectionObserver&&(this.intersectionObserver=new IntersectionObserver(function(I){a.handleIntersect(I)},{rootMargin:"-"+(this.toolbarHeight+1)+"px 0px 0px 0px",
threshold:[1]}),this.intersectionObserver.observe(this.hostElement));window.ResizeObserver&&(this.resizeObserver=new ResizeObserver(function(){a.updateChipBarWidthAndTop()}),this.resizeObserver.observe(this.hostElement))};
_.Z.detached=function(){var a;(a=this.intersectionObserver)==null||a.disconnect();var z;(z=this.resizeObserver)==null||z.disconnect();document.removeEventListener("scroll",_.BK(this,this.updateChipBarWidthAndTop))};
_.Z.dataChanged=function(){var a=this,z,I,J;((J=_.H((z=this.data)==null?void 0:(I=z.contents)==null?void 0:I[0],XUX))==null?void 0:J.uniqueId)==="gnome_chip"&&(this.defaultChipIndex=1);this.updating=!0;var r=this.findSelectedChipIndex();this.selectedIndex!==r&&(this.selectedIndex=-1);_.Yv(this,function(){a.selectedIndex=r;a.updating=!1;a.ytScrollableChipCloudBehavior.reset()})};
_.Z.findSelectedChipIndex=function(){var a;if((a=this.data)==null||!a.contents)return 0;a=this.data.contents;for(var z=0;z<a.length;z++){var I=void 0;if((I=_.H(a[z],XUX))==null?0:I.isSelected)return z}return 0};
_.Z.computeStyle=function(a){return a};
_.Z.handleChipCloudChipSelectAction=function(a){a=this.JSC$15960_chipsSelector.indexOf(a);a>-1&&this.JSC$15960_chipsSelector.selectIndex(a)};
_.Z.handleChipCloudChipDeselectAction=function(){if(_.K("kevlar_chips_check_index_zero_killswitch")||![this.defaultChipIndex,-1].includes(this.selectedIndex)){var a,z,I,J=(I=_.H((a=this.data)==null?void 0:(z=a.contents)==null?void 0:z[0],XUX))==null?void 0:I.navigationEndpoint;J&&_.ZF(this.hostElement,"yt-browse-section-list-reload-endpoint",[J]);this.JSC$15960_chipsSelector.selectIndex(this.defaultChipIndex);this.ytScrollableChipCloudBehavior.reset()}};
_.Z.onGuideIsExpandedChanged=function(){var a=this.ytScrollableChipCloudBehavior;_.Yv(a,a.setContainerWidthDiff);Al(this.ytScrollableChipCloudBehavior)};
_.Z.onResize=function(){var a=this.ytScrollableChipCloudBehavior;_.Yv(a,a.setContainerWidthDiff);Al(this.ytScrollableChipCloudBehavior)};
_.Z.onDarkModeToggledAction=function(a){this.isDarkTheme=a};
_.Z.updateChipBarWidthAndTop=function(){this.updateDimensions();this.notSticky=this.isChannelPageGrid||this.disableSticky||this.hostElement.getBoundingClientRect().y>this.toolbarHeight};
_.Z.handleIntersect=function(a){this.notSticky=this.isChannelPageGrid||this.disableSticky||a[0].intersectionRatio===1};
_.Z.updateDimensions=function(){var a=this.ytRendererBehavior.parentComponent;if(a){var z,I=(z=a.headerElement)!=null?z:a;_.uK(this.hostElement,{"--ytd-rich-grid-chips-bar-width":I.clientWidth+"px","--ytd-rich-grid-chips-bar-top":this.toolbarHeight+"px"})}};
_.Z.updateSelectedIndexFromBinding=function(a){this.selectedIndex=a.detail.value};
_.Z.isPlaylistPageChanged=function(){if(this.isPlaylistPage){var a;(a=this.sortFilterHeaderRendererElement)==null||a.setAttribute("is-playlist-page-with-filters","")}};
_.Z.dispatchChipBarIsSticky=function(){this.ytdReduxBehavior.dispatch(fXG(!this.notSticky))};
_.eH.Object.defineProperties(nf.prototype,{isChannelPageGrid:{configurable:!0,enumerable:!0,get:function(){return this.componentStyle==="FEED_FILTER_CHIP_BAR_STYLE_TYPE_CHANNEL_PAGE_GRID"}},
isHashtagLandingPage:{configurable:!0,enumerable:!0,get:function(){return this.componentStyle==="FEED_FILTER_CHIP_BAR_STYLE_TYPE_HASHTAG_LANDING_PAGE"}},
isPlaylistPage:{configurable:!0,enumerable:!0,get:function(){return this.componentStyle==="FEED_FILTER_CHIP_BAR_STYLE_TYPE_PLAYLIST_PAGE"}},
isDisableDeselectEvent:{configurable:!0,enumerable:!0,get:function(){return this.isChannelPageGrid||this.isHashtagLandingPage||this.isPlaylistPage}},
sortFilterHeaderRendererData:{configurable:!0,enumerable:!0,get:function(){var a,z,I=(a=this.data)==null?void 0:(z=a.contents)==null?void 0:z.find(function(J){return _.H(J,UyJ)});
return{sortFilterHeaderRenderer:_.H(I,UyJ)}}}});
nf.prototype.dispatchChipBarIsSticky=nf.prototype.dispatchChipBarIsSticky;nf.prototype.isPlaylistPageChanged=nf.prototype.isPlaylistPageChanged;nf.prototype.updateChipBarWidthAndTop=nf.prototype.updateChipBarWidthAndTop;nf.prototype.onResize=nf.prototype.onResize;nf.prototype.onGuideIsExpandedChanged=nf.prototype.onGuideIsExpandedChanged;nf.prototype.dataChanged=nf.prototype.dataChanged;_.L([_.Q(_.u4.YtRendererstamperBehavior),_.p("design:type",Object)],nf.prototype,"ytRendererstamperBehavior",void 0);
_.L([_.Q(_.k.YtRendererBehavior),_.p("design:type",Object)],nf.prototype,"ytRendererBehavior",void 0);_.L([_.Q(_.Hc.YtActionHandlerBehavior),_.p("design:type",Object)],nf.prototype,"actionHandlerBehavior",void 0);_.L([_.Q(_.Ts),_.p("design:type",Object)],nf.prototype,"ironResizableBehavior",void 0);_.L([_.Q(),_.p("design:type",ff)],nf.prototype,"ytScrollableChipCloudBehavior",void 0);_.L([_.Q(_.pV),_.p("design:type",Object)],nf.prototype,"ytdReduxBehavior",void 0);
_.L([_.x(),_.p("design:type",Object)],nf.prototype,"data",void 0);_.L([_.x({value:0}),_.p("design:type",Number)],nf.prototype,"selectedIndex",void 0);_.L([_.x({value:320}),_.p("design:type",Number)],nf.prototype,"scrollDistance",void 0);_.L([_.x({reflectToAttribute:!0}),_.p("design:type",Object)],nf.prototype,"isDarkTheme",void 0);_.L([_.x({reflectToAttribute:!0}),_.p("design:type",Object)],nf.prototype,"notSticky",void 0);
_.L([_.x({reflectToAttribute:!0}),_.p("design:type",Object)],nf.prototype,"transparentBackground",void 0);_.L([_.x({reflectToAttribute:!0,computed:"computeStyle(data.styleType)"}),_.p("design:type",String)],nf.prototype,"componentStyle",void 0);_.L([_.x({selector:_.U_G}),_.p("design:type",Boolean)],nf.prototype,"guideIsExpanded",void 0);_.L([_.x({reflectToAttribute:!0}),_.p("design:type",Object)],nf.prototype,"shouldHide",void 0);
_.L([_.x({reflectToAttribute:!0}),_.p("design:type",Object)],nf.prototype,"disableSticky",void 0);_.L([_.x({reflectToAttribute:!0}),_.p("design:type",Object)],nf.prototype,"fluidWidth",void 0);_.L([_.x({reflectToAttribute:!0}),_.p("design:type",Object)],nf.prototype,"isClipList",void 0);_.L([_.x(),_.p("design:type",Object)],nf.prototype,"defaultChipIndex",void 0);_.L([_.x({reflectToAttribute:!0}),_.p("design:type",Object)],nf.prototype,"isPlaylist",void 0);
_.L([_.x({reflectToAttribute:!0}),_.p("design:type",Boolean)],nf.prototype,"playlistVotingAnimationEnabled",void 0);_.L([_.A3("#chips"),_.p("design:type",Object)],nf.prototype,"JSC$15960_chipsSelector",void 0);_.L([_.A3("ytd-sort-filter-header-renderer"),_.p("design:type",HTMLElement)],nf.prototype,"sortFilterHeaderRendererElement",void 0);_.L([_.x({value:!1,reflectToAttribute:!0}),_.p("design:type",Boolean)],nf.prototype,"updating",void 0);
_.L([_.Fe("data"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],nf.prototype,"dataChanged",null);_.L([_.O8("guideIsExpanded"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],nf.prototype,"onGuideIsExpandedChanged",null);_.L([_.gz("iron-resize"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],nf.prototype,"onResize",null);
_.L([_.Fe("isChannelPageGrid","disableSticky","data"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],nf.prototype,"updateChipBarWidthAndTop",null);_.L([_.S("componentStyle"),_.p("design:type",Boolean),_.p("design:paramtypes",[])],nf.prototype,"isChannelPageGrid",null);_.L([_.S("componentStyle"),_.p("design:type",Boolean),_.p("design:paramtypes",[])],nf.prototype,"isHashtagLandingPage",null);
_.L([_.O8("isPlaylistPage"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],nf.prototype,"isPlaylistPageChanged",null);_.L([_.S("componentStyle"),_.p("design:type",Boolean),_.p("design:paramtypes",[])],nf.prototype,"isPlaylistPage",null);_.L([_.S("componentStyle"),_.p("design:type",Boolean),_.p("design:paramtypes",[])],nf.prototype,"isDisableDeselectEvent",null);
_.L([_.S("data"),_.p("design:type",Object),_.p("design:paramtypes",[])],nf.prototype,"sortFilterHeaderRendererData",null);_.L([_.x({reflectToAttribute:!0,selector:_.m_1}),_.p("design:type",String)],nf.prototype,"frostedGlassMode",void 0);_.L([_.O8("notSticky"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],nf.prototype,"dispatchChipBarIsSticky",null);_.L([_.U({is:"ytd-feed-filter-chip-bar-renderer",disableElementRegistration:!0})],nf);
_.D(nf,"ytd-feed-filter-chip-bar-renderer",function(){if(arw!==void 0)return arw;var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-feed-filter-chip-bar-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="chips-wrapper" class="style-scope ytd-feed-filter-chip-bar-renderer">\n  <div id="chips-content" class="style-scope ytd-feed-filter-chip-bar-renderer">\n    <div id="left-arrow" class="style-scope ytd-feed-filter-chip-bar-renderer">\n      <div id="left-arrow-button" class="style-scope ytd-feed-filter-chip-bar-renderer"></div>\n    </div>\n    <div id="filter" class="style-scope ytd-feed-filter-chip-bar-renderer"></div>\n    <div id="scroll-container" class="style-scope ytd-feed-filter-chip-bar-renderer">\n      <iron-selector id="chips" activate-event="" role="tablist" selected="[[selectedIndex]]" selected-attribute="selected" on-selected-changed="updateSelectedIndexFromBinding" class="style-scope ytd-feed-filter-chip-bar-renderer">\n      </iron-selector>\n    </div>\n    <div id="right-arrow" class="style-scope ytd-feed-filter-chip-bar-renderer">\n      <div id="right-arrow-button" class="style-scope ytd-feed-filter-chip-bar-renderer"></div>\n    </div>\n  </div>\n</div>\n');
a.content.insertBefore(_.w().content.cloneNode(!0),a.content.firstChild);return arw=a},{mode:1});var P6X;var Zsf=_.ec(function(a){var z=a.data;var I=a.buttonIndex;var J=a.selectedIndex;var r=a.onSelect;var P=function(){return I()===J()},N=function(){var u,E;
return(E=(u=z().text)==null?void 0:u.content)!=null?E:""};
a=_.XF();return _.B("yt-toggleable-image-button-view-model",{class:function(){var u={};u=(u["toggleable-image-button-view-model-wiz"]=!0,u[""]=!0,u["toggleable-image-button-view-model-wiz__semi-transparent"]=J()!==-1&&!P(),u);return _.$c(u)},
tabindex:0,"aria-label":N,"aria-pressed":P,role:"button","on:keydown":a,"on:click":_.g4(function(){r(z().onSubmitCommand);return!1})},_.B(_.g,{cond:function(){return z().logo},
then:function(u){return _.B(_.qp,{data:u,className:function(){var E={};E=(E["toggleable-image-button-view-model-wiz__image"]=!0,E["toggleable-image-button-view-model-wiz__circular-radius"]=!(!z().backgroundColor||!z().backgroundColorDarkMode),E["toggleable-image-button-view-model-wiz__gradient-ring"]=!!(P()&&z().backgroundColor&&z().backgroundColorDarkMode),E);return _.$c(E)},
alt:N,useWidth:!1,style:function(){if(P()&&z().backgroundColor&&z().backgroundColorDarkMode){var E=LH(Number(z().backgroundColorDarkMode),"1");var O=LH(Number(z().backgroundColor),"1");E="background: linear-gradient(180deg,"+E+","+O+") border-box;"}else E="";return E}})}}),_.B(_.Bc,{model:{borderRadius:"16px"}}),_.B("p",{class:function(){var u={};
u=(u["toggleable-image-button-view-model-wiz__label"]=!0,u["toggleable-image-button-view-model-wiz__bold-text"]=P(),u);return _.$c(u)}},_.B(_.xs,{text:function(){return z().text}})))},"Ob");
Zsf.idomCompat=!0;var N5w=_.ec(function(a){var z=a.data;a=_.C(_.CW({index:-1,command:{}},void 0,"Zcqtsb"));var I=a.next().value,J=a.next().value;return _.B("yt-nudge-form-view-model",{class:"nudge-form-view-model-wiz"},_.B("div",{class:"nudge-form-view-model-wiz__form-options"},_.B(_.V0,{data:function(){return z().inputFields},
allowIncompleteMapping:!0},{toggleableImageButtonViewModel:function(r,P){return _.B(Zsf,{data:r.data,buttonIndex:P,selectedIndex:function(){return I().index},
onSelect:function(N){J({index:P(),command:N})}})}})),_.B(_.xs,{text:function(){return z().subtitle},
className:"nudge-form-view-model-wiz__subtitle"}),_.B("div",{class:"nudge-form-view-model-wiz__submit"},_.B(_.V0,{data:function(){return z().submitButton}},{buttonViewModel:function(r){return _.B(C6I,{data:r.data,
isDisabled:function(){return I().index===-1},
onClick:function(){_.lN(I().command)}})}})))},"Pb");
N5w.idomCompat=!0;var C6I=_.ec(function(a){var z=_.Bg(function(){return Object.assign({},a.data(),{state:a.isDisabled()?"BUTTON_VIEW_MODEL_STATE_DISABLED":"BUTTON_VIEW_MODEL_STATE_ACTIVE"})},void 0,"rgD0re");
return _.B(_.At,{data:z,onClick:a.onClick})},"Qb");_.Jf(N5w,"yt-nudge-form-view-model",{props:{data:_.zl}});var Kf=function(){var a=_.G.apply(this,arguments)||this;a.roundedContainer=!0;a.buttonUpdate=_.K("web_modern_buttons");a.isDarkMode=!1;a.actionMap={"yt-dark-mode-toggled-action":"handleDarkModeToggledAction"};return a};
_.b(Kf,_.G);_.Z=Kf.prototype;_.Z.computeNudgeStyle=function(a){return a?"modernized-nudge":""};
_.Z.handleDarkModeToggledAction=function(a){this.isDarkMode=a};
_.Z.attached=function(){this.handleDarkModeToggledAction(document.documentElement.hasAttribute("dark"))};
_.Z.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"}}}};
_.Z.computeIsHorizontalButtons=function(a){return a?!!a.applyModernizedStyle&&!!a.enableHorizontalButtons&&!!a.secondaryButton:!1};
_.eH.Object.defineProperties(Kf.prototype,{isHidden:{configurable:!0,enumerable:!0,get:function(){return!!this.ytdDismissibleItemBehavior.isHideEnclosingAction}},
trimStyle:{configurable:!0,enumerable:!0,get:function(){var a;return((a=this.data)==null?void 0:a.trimStyle)==="FEED_NUDGE_TRIM_STYLE_NO_TRIM"?"no-trim":"gradient-trim-1"}},
backgroundStyle:{configurable:!0,enumerable:!0,get:function(){var a,z;return(z=(a=this.data)==null?void 0:a.backgroundStyle)!=null?z:"FEED_NUDGE_BACKGROUND_STYLE_UNKNOWN"}},
contentsLocation:{configurable:!0,enumerable:!0,get:function(){var a,z;return(z=(a=this.data)==null?void 0:a.contentsLocation)!=null?z:"FEED_NUDGE_CONTENTS_LOCATION_UNKNOWN"}},
noShadow:{configurable:!0,enumerable:!0,get:function(){var a;return!((a=this.data)==null||!a.disableDropShadow)}},
noIcon:{configurable:!0,enumerable:!0,get:function(){var a;return!((a=this.data)==null?0:a.lightIconImage)}}});
_.L([_.Q(_.k.YtRendererBehavior),_.p("design:type",Object)],Kf.prototype,"ytRendererBehavior",void 0);_.L([_.Q(_.u4.YtRendererstamperBehavior),_.p("design:type",Object)],Kf.prototype,"ytRendererstamperBehavior",void 0);_.L([_.Q(_.mD),_.p("design:type",Object)],Kf.prototype,"ytdDismissibleItemBehavior",void 0);_.L([_.Q(_.Hc.YtActionHandlerBehavior),_.p("design:type",Object)],Kf.prototype,"actionHandlerBehavior",void 0);
_.L([_.x({reflectToAttribute:!0}),_.S("isHideEnclosingAction"),_.p("design:type",Boolean),_.p("design:paramtypes",[])],Kf.prototype,"isHidden",null);_.L([_.x(),_.p("design:type",Object)],Kf.prototype,"data",void 0);_.L([_.x({reflectToAttribute:!0}),_.p("design:type",Object)],Kf.prototype,"roundedContainer",void 0);_.L([_.x({reflectToAttribute:!0}),_.p("design:type",Object)],Kf.prototype,"buttonUpdate",void 0);
_.L([_.x({reflectToAttribute:!0,computed:"computeNudgeStyle(data.applyModernizedStyle)"}),_.p("design:type",String)],Kf.prototype,"nudgeStyle",void 0);_.L([_.x({reflectToAttribute:!0}),_.S("data.trimStyle"),_.p("design:type",String),_.p("design:paramtypes",[])],Kf.prototype,"trimStyle",null);_.L([_.x({reflectToAttribute:!0}),_.S("data.backgroundStyle"),_.p("design:type",String),_.p("design:paramtypes",[])],Kf.prototype,"backgroundStyle",null);
_.L([_.x({reflectToAttribute:!0}),_.S("data.contentsLocation"),_.p("design:type",String),_.p("design:paramtypes",[])],Kf.prototype,"contentsLocation",null);_.L([_.x({reflectToAttribute:!0}),_.S("data.disableDropShadow"),_.p("design:type",Boolean),_.p("design:paramtypes",[])],Kf.prototype,"noShadow",null);_.L([_.x({reflectToAttribute:!0}),_.S("data.lightIconImage"),_.p("design:type",Boolean),_.p("design:paramtypes",[])],Kf.prototype,"noIcon",null);
_.L([_.x({reflectToAttribute:!0,computed:"computeIsHorizontalButtons(data)"}),_.p("design:type",Boolean)],Kf.prototype,"isHorizontalButtons",void 0);_.L([_.x({reflectToAttribute:!0,value:!1}),_.p("design:type",Object)],Kf.prototype,"isDarkMode",void 0);_.L([_.U({is:"ytd-feed-nudge-renderer",disableElementRegistration:!0})],Kf);
_.D(Kf,"ytd-feed-nudge-renderer",function(){if(P6X!==void 0)return P6X;var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-feed-nudge-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="dismissible" class="style-scope ytd-feed-nudge-renderer">\n  <div id="dismiss-button" class="style-scope ytd-feed-nudge-renderer"></div>\n  <div id="content-wrapper" class="style-scope ytd-feed-nudge-renderer">\n    <div id="header-container" class="style-scope ytd-feed-nudge-renderer">\n      <div id="image-container" hidden="[[!data.lightIconImage]]" class="style-scope ytd-feed-nudge-renderer">\n        <yt-img-shadow id="nudge-image" height="32" thumbnail="[[data.lightIconImage]]" class="style-scope ytd-feed-nudge-renderer">\n        </yt-img-shadow>\n      </div>\n    </div>\n    <div id="text-container" class="style-scope ytd-feed-nudge-renderer">\n      <div id="title-container" class="style-scope ytd-feed-nudge-renderer">\n        <yt-formatted-string id="title" text="[[data.title]]" class="style-scope ytd-feed-nudge-renderer"></yt-formatted-string>\n      </div>\n      <div id="subtitle-container" class="style-scope ytd-feed-nudge-renderer">\n        <yt-formatted-string id="subtitle" split-lines="" text="[[data.subtitle]]" class="style-scope ytd-feed-nudge-renderer"></yt-formatted-string>\n      </div>\n    </div>\n    <div id="contents" hidden="[[!data.contents]]" class="style-scope ytd-feed-nudge-renderer"></div>\n    <div id="button-container" hidden="[[!data.primaryButton]]" class="style-scope ytd-feed-nudge-renderer">\n      <div id="primary-button" class="style-scope ytd-feed-nudge-renderer"></div>\n      <div id="secondary-button" class="style-scope ytd-feed-nudge-renderer"></div>\n    </div>\n  </div>\n</div>\n<div id="dismissed" class="style-scope ytd-feed-nudge-renderer">\n  <div id="dismissed-content" class="style-scope ytd-feed-nudge-renderer"></div>\n</div>\n');a.content.insertBefore(_.w().content.cloneNode(!0),
a.content.firstChild);return P6X=a},{mode:_.Np("kevlar_poly_si_batch_j028")?1:2});var tsv;var u_l;var Fs=function(){var a=_.G.apply(this,arguments)||this;a.collapsed=!1;a.actionMap={"ytd-slimline-survey-rating-select-action":"handleRatingSelect","ytd-slimline-survey-show-action":"handleShowSurvey"};return a};
_.b(Fs,_.G);Fs.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"}}}};
Fs.prototype.handleRatingSelect=function(){var a;((a=this.data)==null?0:a.onSelectRating)&&this.ytComponentBehavior.resolveCommand(this.data.onSelectRating);this.collapsed=!0};
Fs.prototype.handleShowSurvey=function(){this.collapsed=!1};
_.L([_.Q(_.u4.YtRendererstamperBehavior),_.p("design:type",Object)],Fs.prototype,"ytRendererstamperBehavior",void 0);_.L([_.Q(_.Hc.YtActionHandlerBehavior),_.p("design:type",Object)],Fs.prototype,"actionHandlerBehavior",void 0);_.L([_.Q(_.Ms.YtComponentBehavior),_.p("design:type",Object)],Fs.prototype,"ytComponentBehavior",void 0);_.L([_.Q(_.k.YtRendererBehavior),_.p("design:type",Object)],Fs.prototype,"ytRendererBehavior",void 0);
_.L([_.Q(_.mD),_.p("design:type",Object)],Fs.prototype,"ytdDismissibleItemBehavior",void 0);_.L([_.x(),_.p("design:type",Object)],Fs.prototype,"data",void 0);_.L([_.x({reflectToAttribute:!0}),_.p("design:type",Object)],Fs.prototype,"collapsed",void 0);_.L([_.U({is:"ytd-slimline-survey-renderer",disableElementRegistration:!0})],Fs);
_.D(Fs,"ytd-slimline-survey-renderer",function(){if(u_l!==void 0)return u_l;var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-slimline-survey-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="dismissible" class="style-scope ytd-slimline-survey-renderer">\n  <div id="content-wrapper" class="style-scope ytd-slimline-survey-renderer">\n    <div id="header-container" class="style-scope ytd-slimline-survey-renderer">\n      <div id="title-container" class="style-scope ytd-slimline-survey-renderer">\n        <yt-formatted-string id="title" text="[[data.title]]" class="style-scope ytd-slimline-survey-renderer"></yt-formatted-string>\n      </div>\n      <div id="dismiss-button" class="style-scope ytd-slimline-survey-renderer"></div>\n    </div>\n    <div id="rating-survey" class="style-scope ytd-slimline-survey-renderer"></div>\n  </div>\n</div>\n<div id="dismissed" class="style-scope ytd-slimline-survey-renderer">\n  <div id="dismissed-content" class="style-scope ytd-slimline-survey-renderer"></div>\n</div>\n');a.content.insertBefore(_.w().content.cloneNode(!0),
a.content.firstChild);return u_l=a},{mode:1});var EyG;var H_=function(){return _.G.apply(this,arguments)||this};
_.b(H_,_.G);H_.prototype.maybeGetBackgroundColor=function(a){return this.isDarkMode?a.section2Color:a.section3Color};
H_.prototype.colorPaletteChanged=function(){var a=this.isDarkMode?this.darkColorPalette:this.lightColorPalette;a&&(a==null?0:a.secondaryTitleColor)&&this.maybeGetBackgroundColor(a)?(this.hostElement.style.backgroundColor=_.Da(this.maybeGetBackgroundColor(a)),this.hostElement.style.color=_.Da(a.secondaryTitleColor)):(this.hostElement.style.backgroundColor="",this.hostElement.style.color="")};
H_.prototype.colorPaletteChanged=H_.prototype.colorPaletteChanged;_.L([_.Q(_.pV),_.p("design:type",Object)],H_.prototype,"ytdReduxBehavior",void 0);_.L([_.x(),_.p("design:type",Object)],H_.prototype,"data",void 0);_.L([_.x({selector:function(a){return a.ui.darkModeIsEnabled}}),
_.p("design:type",Boolean)],H_.prototype,"isDarkMode",void 0);_.L([_.x(),_.p("design:type",Object)],H_.prototype,"lightColorPalette",void 0);_.L([_.x(),_.p("design:type",Object)],H_.prototype,"darkColorPalette",void 0);_.L([_.O8("darkColorPalette","lightColorPalette","data","isDarkMode"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],H_.prototype,"colorPaletteChanged",null);_.L([_.U({disableElementRegistration:!0,is:"ytd-endorsement-header-renderer"})],H_);
_.D(H_,"ytd-endorsement-header-renderer",function(){if(EyG!==void 0)return EyG;var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-endorsement-header-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-icon id="icon" hidden="[[!data.icon]]" icon="[[data.icon.iconType]]" class="style-scope ytd-endorsement-header-renderer"></yt-icon>\n<yt-formatted-string id="text" text="[[data.title]]" class="style-scope ytd-endorsement-header-renderer"></yt-formatted-string>\n');
a.content.insertBefore(_.w().content.cloneNode(!0),a.content.firstChild);return EyG=a},{mode:1});_.Jf(_.Uj,"yt-decorated-avatar-view-model",{props:{data:_.zl,className:_.zl}});_.bH=new _.I4("VIEW_TRANSITION_MANAGER_TOKEN");var hl=function(){var a=_.G.apply(this,arguments)||this;a.fullHeight=_.K("web_rich_grid_media_full_height");a.showChannelAvatar=!0;a.hasPlaylistThumbnail=!1;a.avatarStackViewModelOverrides={layoutType:"AVATAR_STACK_LAYOUT_CLUSTER"};a.registerThumbnailForPageTransition=function(){_.K("web_thumbnail_to_watch_transition")&&_.B5X(_.ab().resolve(_.bH),a.thumbnail)};
return a};
_.b(hl,_.G);_.Z=hl.prototype;
_.Z.configureRendererStamper=function(){return{lazyLoadMenu:bO,immediateLoadMenu:{id:"immediate-load-menu",mapping:{menuRenderer:{component:"ytd-menu-renderer"}}},"data.thumbnailUnderlay":{id:"thumbnail-underlay",mapping:{endorsementHeaderRenderer:{component:"ytd-endorsement-header-renderer",properties:{lightColorPalette:"[[data.thumbnail.lightColorPalette]]",darkColorPalette:"[[data.thumbnail.darkColorPalette]]"}}}},"data.attachedSurvey":{id:"attached-survey",mapping:{slimlineSurveyRenderer:"ytd-slimline-survey-renderer"}},"data.buttons":{id:"buttons",
mapping:{toggleButtonRenderer:{component:"ytd-toggle-button-renderer",params:{buttonTooltipPosition:"top"}},upcomingEventReminderButtonRenderer:"ytd-upcoming-event-reminder-button-renderer"}},dismissedRenderer:{id:"dismissed-content",mapping:{notificationMultiActionRenderer:"ytd-notification-multi-action-renderer",notificationTextRenderer:"ytd-notification-text-renderer"}},"data.avatar":{id:"avatar",mapping:{avatarStackViewModel:{component:"yt-avatar-stack-view-model",properties:{overrides:"[[avatarStackViewModelOverrides]]"}},
decoratedAvatarViewModel:"yt-decorated-avatar-view-model"}}}};
_.Z.attached=function(){this.updateInlinePreviewHoverListeners()};
_.Z.detached=function(){this.clearInlinePreviewHoverListeners()};
_.Z.shouldLazyLoadMenu=function(){var a=this.entitySelectorType==="RICH_ITEM_ENTITY_SELECTOR_TYPE_VIDEO"||this.entitySelectorType==="RICH_ITEM_ENTITY_SELECTOR_TYPE_PLAYLIST";return!_.K("kevlar_modern_downloads_page")||!a};
_.Z.updateInlinePreviewHoverListeners=function(){this.clearInlinePreviewHoverListeners();this.JSC$15985_inlinePreviewHoverListener=LU({mediaRenderer:this,lockupElement:this.JSC$15985_dismissibleMedia,thumbnailElement:this.thumbnail,videoPreviewOpts:this.getVideoPreviewOpts()})};
_.Z.getVideoPreviewOpts=function(){var a={},z;if((z=this.data)==null?0:z.multipleInlinePlaybackEndpoint)a=rBf;this.isRadio&&(a=JBl);return a};
_.Z.clearInlinePreviewHoverListeners=function(){var a;(a=this.JSC$15985_inlinePreviewHoverListener)==null||e8(a)};
_.Z.getOwner=function(){var a,z,I;return((a=this.data)==null?void 0:(z=a.channelThumbnailSupportedRenderers)==null?void 0:z.channelThumbnailWithLinkRenderer)||_.H((I=this.data)==null?void 0:I.showProviderChannelThumbnail,NZo)};
_.Z.updateLockupSize=function(){var a;((a=this.getOwner())==null?0:a.thumbnail)?this.showChannelAvatar=!0:this.showChannelAvatar=!1};
_.Z.getFeedbackEndpoint=function(a){if(_.H(a,_.$K))return a;var z,I;a=(I=(z=_.H(a,_.E_))==null?void 0:z.commands)!=null?I:[];z=_.C(a);for(I=z.next();!I.done;I=z.next())if(I=this.getFeedbackEndpoint(I.value))return I;return null};
_.Z.computeNavigationEndpoint=function(a){return wYp(a==null?void 0:a.navigationEndpoint)};
_.Z.handleReloadDownloadsInfo=function(){if(this.entityDrivenState){var a=Object.assign({},this.data,this.entityDrivenState);JSON.stringify(a)!==JSON.stringify(this.data)&&this.set("data",a)}};
_.Z.onDataChanged=function(){var a=this,z=this.getOwner();if(z){this.set("data.owner",z);var I,J,r,P,N,u=((I=this.data)==null?void 0:(J=I.shortBylineText)==null?void 0:(r=J.runs)==null?void 0:(P=r[0])==null?void 0:P.text)||((N=z.name)==null?void 0:N.simpleText);this.set("data.owner.title",u)}var E,O,f,A,n,F;z=((E=this.data)==null?void 0:(O=E.thumbnailRenderer)==null?void 0:O.playlistVideoThumbnailRenderer)||((f=this.data)==null?void 0:(A=f.thumbnailRenderer)==null?void 0:A.playlistCustomThumbnailRenderer)||
((n=this.data)==null?void 0:(F=n.thumbnailRenderer)==null?void 0:F.showCustomThumbnailRenderer);var h;((h=this.data)==null?0:h.thumbnail)||!z||this.set("data.thumbnail",z.thumbnail);this.updateInlinePreviewHoverListeners();requestAnimationFrame(function(){a.updateLockupSize()});
var v;if(E=((v=this.data)==null?void 0:v.trackingParams)||"")this.dismissedContentId=this.ytdDismissibleItemBehavior.setAndGetDismissedContentId(E);var d;((d=this.dismissActionToReplayEntity)==null?0:d.command)&&this.ytdDismissibleItemBehavior.replayDismissAction(this.dismissActionToReplayEntity.command)};
_.Z.onHiddenChanged=function(){this.updateLockupSize()};
_.Z.onIsDismissedChanged=function(){if(this.ytdDismissibleItemBehavior.isDismissed)_.ZF(this.hostElement,"yt-terminate-video-preview-action");else{var a;(a=this.videoTitleLink)==null||a.focus()}};
_.Z.metadataColorChanged=function(){var a;if(this.metadataColor&&((a=this.videoTitle)==null?0:a.style))this.videoTitle.style.color=_.Da(this.metadataColor);else{var z,I;!this.metadataColor&&((z=this.videoTitle)==null?0:(I=z.style)==null?0:I.color)&&(this.videoTitle.style.color="")}};
_.Z.onDetailsClick=function(a){var z=this.computedNavigationEndpoint;z&&(_.qK(_.ch(a),this.hostElement,["A","BUTTON","YT-AVATAR-STACK-VIEW-MODEL"])||_.PA(this.hostElement,"yt-navigate",{endpoint:z}))};
_.Z.onRendererTap=function(){this.registerThumbnailForPageTransition();var a,z,I=((a=this.data)==null?void 0:a.serviceEndpoint)||this.getFeedbackEndpoint((z=this.data)==null?void 0:z.navigationEndpoint);I&&_.H(I,_.$K)&&this.ytComponentBehavior.resolveCommand(I)};
_.Z.onMouseDown=function(a){var z=a.target,I=this.computedNavigationEndpoint,J;a=z.href||((J=_.H(I==null?void 0:I.commandMetadata,_.O_))==null?void 0:J.url);J=z.data||I;a&&J&&iiG(a,J)};
_.Z.computeVideoTitleText=function(){var a;if((a=this.data)==null?0:a.title)return Object.assign({},this.data.title,{accessibility:void 0})};
_.Z.computeHasPlaylistThumbnail=function(a){var z,I,J,r,P;if((((z=a.thumbnailRenderer)==null?0:z.playlistVideoThumbnailRenderer)||((I=a.thumbnailRenderer)==null?0:I.playlistCustomThumbnailRenderer)||((J=a.thumbnailRenderer)==null?0:J.showCustomThumbnailRenderer)||((r=a.thumbnailRenderer)==null?0:r.playlistVideoThumbnailRenderer)||((P=a.thumbnailRenderer)==null?0:P.playlistCustomThumbnailRenderer))&&a.thumbnailOverlays)for(z=0;z<a.thumbnailOverlays.length;z++)if(I=void 0,(I=a.thumbnailOverlays[z])==
null?0:I.thumbnailOverlayBottomPanelRenderer)return!0;return!1};
_.eH.Object.defineProperties(hl.prototype,{typographyBumpV2:{configurable:!0,enumerable:!0,get:function(){return this.typographyBump&&_.K("web_enable_typography_bump_v2")}},
lazyLoadMenu:{configurable:!0,enumerable:!0,get:function(){if(this.shouldLazyLoadMenu()){var a;return(a=this.data)==null?void 0:a.menu}}},
immediateLoadMenu:{configurable:!0,enumerable:!0,get:function(){if(!this.shouldLazyLoadMenu()){var a;return(a=this.data)==null?void 0:a.menu}}},
isHovered:{configurable:!0,enumerable:!0,get:function(){var a;return!((a=this.JSC$15985_inlinePreviewHoverListener)==null?0:lO(a))&&!!this.ytdLockupBehavior.lockupIsHovered}},
stackThumbnailSize:{configurable:!0,enumerable:!0,get:function(){return _.sM(location.pathname)==="home"?"large":"medium"}},
useAvatar:{configurable:!0,enumerable:!0,get:function(){var a;return!((a=this.data)==null||!a.avatar)}},
mediaId:{configurable:!0,enumerable:!0,get:function(){var a,z;return((a=this.data)==null?void 0:a.videoId)||((z=this.data)==null?void 0:z.playlistId)||""}}});
hl.prototype.onMouseDown=hl.prototype.onMouseDown;hl.prototype.metadataColorChanged=hl.prototype.metadataColorChanged;hl.prototype.onIsDismissedChanged=hl.prototype.onIsDismissedChanged;hl.prototype.onHiddenChanged=hl.prototype.onHiddenChanged;hl.prototype.onDataChanged=hl.prototype.onDataChanged;hl.prototype.handleReloadDownloadsInfo=hl.prototype.handleReloadDownloadsInfo;_.L([_.Q(_.k.YtRendererBehavior),_.p("design:type",Object)],hl.prototype,"ytRendererBehavior",void 0);
_.L([_.Q(_.u4.YtRendererstamperBehavior),_.p("design:type",Object)],hl.prototype,"ytRendererstamperBehavior",void 0);_.L([_.Q(_.Ms.YtComponentBehavior),_.p("design:type",Object)],hl.prototype,"ytComponentBehavior",void 0);_.L([_.Q(_.mD),_.p("design:type",Object)],hl.prototype,"ytdDismissibleItemBehavior",void 0);_.L([_.Q(_.eB),_.p("design:type",Object)],hl.prototype,"ytdLockupBehavior",void 0);_.L([_.Q(_.pV),_.p("design:type",Object)],hl.prototype,"ytdReduxBehavior",void 0);
_.L([_.x(),_.p("design:type",Object)],hl.prototype,"data",void 0);_.L([_.x(),_.p("design:type",String)],hl.prototype,"entitySelectorType",void 0);_.L([_.x(),_.p("design:type",Boolean)],hl.prototype,"noEndpoints",void 0);_.L([_.x({value:!1}),_.p("design:type",Boolean)],hl.prototype,"isRadio",void 0);_.L([_.x({reflectToAttribute:!0,selector:_.$p}),_.p("design:type",Boolean)],hl.prototype,"miniMode",void 0);_.L([_.x({reflectToAttribute:!0}),_.p("design:type",Object)],hl.prototype,"fullHeight",void 0);
_.L([_.x(),_.p("design:type",Boolean)],hl.prototype,"showDarkVideoMetadata",void 0);_.L([_.x(),_.p("design:type",Boolean)],hl.prototype,"showLightVideoMetadata",void 0);_.L([_.x(),_.p("design:type",Number)],hl.prototype,"metadataColor",void 0);_.L([_.x(),_.p("design:type",Object)],hl.prototype,"showChannelAvatar",void 0);_.L([_.x(),_.p("design:type",Boolean)],hl.prototype,"hidden",void 0);_.L([_.x({value:!0}),_.p("design:type",Boolean)],hl.prototype,"showYtInteraction",void 0);
_.L([_.x(),_.p("design:type",String)],hl.prototype,"dismissedContentId",void 0);_.L([_.x({selectorArgs:["dismissedContentId"],selector:D7O}),_.p("design:type",Object)],hl.prototype,"dismissActionToReplayEntity",void 0);
_.L([_.x({selectorArgs:["entitySelectorType","mediaId"],selector:function(a,z,I){if(_.K("kevlar_modern_downloads_page")&&I&&z&&z!=="RICH_ITEM_ENTITY_SELECTOR_TYPE_UNSPECIFIED")switch(z){case "RICH_ITEM_ENTITY_SELECTOR_TYPE_VIDEO":var J=cqG(a,I);if(J){z=_.oU(a,I);var r=DY(a,I),P=Cr3(a,I);a=RU(a,I);var N=Usd(J,z,r,P);r=N.shortViewCountText;var u=N.publishedTimeText;N=N.badges;var E=a>0;P=WPE(J,z,P,a);J=_.Hd(z)||z==="TRANSFER_STATE_FAILED"||z==="TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH"||!F4(J.policyEntity)?
void 0:lf7(I,a,J.videoEntity.lengthSeconds);z==="TRANSFER_STATE_PAUSED_BY_USER"&&I&&!_.K("dl_resume_click_killswitch")&&(J={offlineVideoEndpoint:{videoId:I,action:"ACTION_RESUME"}});I={shortViewCountText:r,publishedTimeText:u,badges:N,isWatched:E,navigationEndpoint:J,thumbnailOverlays:P}}else I=void 0;return I;case "RICH_ITEM_ENTITY_SELECTOR_TYPE_PLAYLIST":a:{if(z=YRm(a,I))if(J=_.Ur(a,I),P=_.qR$(a,I),J!=="TRANSFER_STATE_UNKNOWN"){I=ooG(z,J,P,I,_.Wd(a));break a}I=void 0}return I;default:_.Xd(new _.Fn("Error: entitySelectorType defined but not matched in selector.",
a,z))}}}),
_.p("design:type",Object)],hl.prototype,"entityDrivenState",void 0);_.L([_.x({computed:"computeVideoTitleText(data)"}),_.p("design:type",Object)],hl.prototype,"videoTitleText",void 0);_.L([_.x({computed:"computeHasPlaylistThumbnail(data)"}),_.p("design:type",Object)],hl.prototype,"hasPlaylistThumbnail",void 0);_.L([_.x({computed:"computeNavigationEndpoint(data)"}),_.p("design:type",Object)],hl.prototype,"computedNavigationEndpoint",void 0);
_.L([_.x({reflectToAttribute:!0,value:!1}),_.p("design:type",Boolean)],hl.prototype,"typographyBump",void 0);_.L([_.x({reflectToAttribute:!0}),_.S("typographyBump"),_.p("design:type",Boolean),_.p("design:paramtypes",[])],hl.prototype,"typographyBumpV2",null);_.L([_.A3("#video-title"),_.p("design:type",HTMLElement)],hl.prototype,"videoTitle",void 0);_.L([_.A3("#video-title-link"),_.p("design:type",HTMLElement)],hl.prototype,"videoTitleLink",void 0);
_.L([_.A3("#thumbnail"),_.p("design:type",HTMLElement)],hl.prototype,"thumbnail",void 0);_.L([_.A3("#dismissible"),_.p("design:type",HTMLElement)],hl.prototype,"JSC$15985_dismissibleMedia",void 0);_.L([_.S("data.menu"),_.p("design:type",Object),_.p("design:paramtypes",[])],hl.prototype,"lazyLoadMenu",null);_.L([_.S("data.menu"),_.p("design:type",Object),_.p("design:paramtypes",[])],hl.prototype,"immediateLoadMenu",null);
_.L([_.Fe("entityDrivenState"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],hl.prototype,"handleReloadDownloadsInfo",null);_.L([_.Fe("data"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],hl.prototype,"onDataChanged",null);_.L([_.Fe("hidden"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],hl.prototype,"onHiddenChanged",null);
_.L([_.O8("isDismissed"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],hl.prototype,"onIsDismissedChanged",null);_.L([_.O8("metadataColor"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],hl.prototype,"metadataColorChanged",null);_.L([_.gz("mousedown"),_.p("design:type",Function),_.p("design:paramtypes",[CustomEvent]),_.p("design:returntype")],hl.prototype,"onMouseDown",null);
_.L([_.S("lockupIsHovered"),_.p("design:type",Boolean),_.p("design:paramtypes",[])],hl.prototype,"isHovered",null);_.L([_.S("data"),_.p("design:type",Boolean),_.p("design:paramtypes",[])],hl.prototype,"useAvatar",null);_.L([_.S("data","entitySelectorType"),_.p("design:type",String),_.p("design:paramtypes",[])],hl.prototype,"mediaId",null);_.L([_.U({is:"ytd-rich-grid-media",disableElementRegistration:!0})],hl);
var gyj=_.Cw()(hl,"ytd-rich-grid-media",function(){if(tsv!==void 0)return tsv;var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-rich-grid-media--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="dismissible" dark$="[[showDarkVideoMetadata]]" hidden="[[hidden]]" light$="[[showLightVideoMetadata]]" on-click="onRendererTap" class="style-scope ytd-rich-grid-media"><div id="thumbnail" class="style-scope ytd-rich-grid-media"><ytd-thumbnail data="[[data]]" hidden$="[[hasPlaylistThumbnail]]" hovered="[[isHovered]]" rich-grid-thumbnail="" use-expandable-tooltip="[[useExpandableTooltip]]" use-hovered-property="" width="9999" class="style-scope ytd-rich-grid-media"></ytd-thumbnail><ytd-playlist-thumbnail data="[[data]]" hidden="[[!hasPlaylistThumbnail]]" hovered="[[isHovered]]" is-double-stack="" thumbnail-size="[[stackThumbnailSize]]" use-expandable-tooltip="[[useExpandableTooltip]]" use-hovered-property="" width="9999" class="style-scope ytd-rich-grid-media"></ytd-playlist-thumbnail></div><div id="thumbnail-underlay" on-click="onDetailsClick" hidden="[[!data.thumbnailUnderlay]]" class="style-scope ytd-rich-grid-media"></div><div id="details" on-click="onDetailsClick" class="style-scope ytd-rich-grid-media"><div id="avatar-container" class="yt-simple-endpoint style-scope ytd-rich-grid-media" hidden="[[!showChannelAvatar]]"><a id="avatar-link" class="yt-simple-endpoint style-scope ytd-rich-grid-media" href$="[[computeHref_(data.owner.navigationEndpoint)]]" data="[[data.owner.navigationEndpoint]]" title="[[data.owner.title]]" tabindex="-1" hidden="[[useAvatar]]"><yt-img-shadow id="avatar-image" thumbnail="[[data.owner.thumbnail]]" width="48" class="style-scope ytd-rich-grid-media"></yt-img-shadow></a><div id="avatar" hidden="[[!useAvatar]]" class="style-scope ytd-rich-grid-media"></div></div><div id="meta" class="style-scope ytd-rich-grid-media"><h3 class="style-scope ytd-rich-grid-media"><ytd-badge-supported-renderer class="top-badge style-scope ytd-rich-grid-media" collection-truncate="" hidden="[[!data.topStandaloneBadge]]" top-standalone-badge="[[data.topStandaloneBadge]]"></ytd-badge-supported-renderer><a id="video-title-link" class="yt-simple-endpoint focus-on-expand style-scope ytd-rich-grid-media" href$="[[computeHref_(computedNavigationEndpoint)]]" title$="[[getSimpleString(data.title)]]" aria-label$="[[data.title.accessibility.accessibilityData.label]]" data="[[computedNavigationEndpoint]]"><yt-formatted-string id="video-title" text="[[videoTitleText]]" class="style-scope ytd-rich-grid-media"></yt-formatted-string></a></h3><ytd-video-meta-block class="grid style-scope ytd-rich-grid-media" data="[[data]]" metadata-color="[[metadataColor]]" mini-mode="[[miniMode]]" radio-meta="[[isRadio]]" rich-meta="" typography-bump="[[typographyBump]]"></ytd-video-meta-block><ytd-badge-supported-renderer class="video-badge style-scope ytd-rich-grid-media" badges="[[data.badges]]" hidden="[[!data.badges]]"></ytd-badge-supported-renderer><ytd-badge-supported-renderer class="title-badge style-scope ytd-rich-grid-media" hidden="[[!data.bottomStandaloneBadge]]" top-standalone-badge="[[data.bottomStandaloneBadge]]"></ytd-badge-supported-renderer><yt-formatted-string id="view-more" hidden="[[!data.viewPlaylistText]]" link-inherit-color="" text="[[data.viewPlaylistText]]" class="style-scope ytd-rich-grid-media"></yt-formatted-string><div id="buttons" class="style-scope ytd-rich-grid-media"></div></div><div id="menu" class="style-scope ytd-rich-grid-media"></div><div id="immediate-load-menu" class="style-scope ytd-rich-grid-media"></div></div><div id="attached-survey" class="style-scope ytd-rich-grid-media"></div></div><div id="dismissed" light$="[[showLightVideoMetadata]]" dark$="[[showDarkVideoMetadata]]" class="style-scope ytd-rich-grid-media"><div id="dismissed-content" class="style-scope ytd-rich-grid-media"></div></div><yt-interaction id="interaction" class="extended style-scope ytd-rich-grid-media" hidden="[[!showYtInteraction]]"></yt-interaction>');
a.content.insertBefore(_.w().content.cloneNode(!0),a.content.firstChild);return tsv=a},{mode:_.Np("kevlar_poly_si_batch_j072")?1:2});var Oso;var VS=function(){var a=_.G.apply(this,arguments)||this;a.removeMaxWidth=!0;a.insetMetadata=!1;return a};
_.b(VS,_.G);_.Z=VS.prototype;_.Z.configureRendererStamper=function(){return{innerMenu:bO,outerMenu:Object.assign({},bO,{id:"menu-outer"}),dismissedRenderer:{id:"dismissed-content",mapping:{notificationMultiActionRenderer:"ytd-notification-multi-action-renderer",notificationTextRenderer:"ytd-notification-text-renderer"}}}};
_.Z.onDataChanged=function(){var a,z=((a=this.data)==null?void 0:a.trackingParams)||"";z&&(this.dismissedContentId=this.ytdDismissibleItemBehavior.setAndGetDismissedContentId(z));var I;((I=this.dismissActionToReplayEntity)==null?0:I.command)&&this.ytdDismissibleItemBehavior.replayDismissAction(this.dismissActionToReplayEntity.command);this.updateInlinePreviewHoverListeners()};
_.Z.attached=function(){this.updateInlinePreviewHoverListeners()};
_.Z.detached=function(){this.clearInlinePreviewHoverListeners()};
_.Z.updateInlinePreviewHoverListeners=function(){if(this.isShort||this.isSlimShort)this.clearInlinePreviewHoverListeners(),this.JSC$15990_inlinePreviewHoverListener=LU({mediaRenderer:this,lockupElement:this.JSC$15990_dismissibleMedia,thumbnailElement:this.thumbnail,videoPreviewOpts:PUo})};
_.Z.clearInlinePreviewHoverListeners=function(){var a;(a=this.JSC$15990_inlinePreviewHoverListener)==null||e8(a)};
_.Z.onRendererTap=function(){var a,z,I=(a=this.data)==null?void 0:(z=a.serviceEndpoints)==null?void 0:z[0];_.H(I,_.$K)&&this.componentBehavior.resolveCommand(I)};
_.Z.onDetailsClick=function(a){var z,I=(z=this.data)==null?void 0:z.navigationEndpoint;I&&(_.qK(_.ch(a),this.hostElement,["A","BUTTON"])||this.componentBehavior.resolveCommand(I))};
_.Z.onShow=function(){var a=this.data;a.onFirstVisibleCommand&&(this.componentBehavior.resolveCommand(a.onFirstVisibleCommand),delete a.onFirstVisibleCommand)};
_.eH.Object.defineProperties(VS.prototype,{thumbnailObjectFit:{configurable:!0,enumerable:!0,get:function(){return this.insetMetadata?"COVER":void 0}},
innerMenu:{configurable:!0,enumerable:!0,get:function(){var a;return this.insetMetadata?void 0:(a=this.data)==null?void 0:a.menu}},
outerMenu:{configurable:!0,enumerable:!0,get:function(){var a;return this.insetMetadata?(a=this.data)==null?void 0:a.menu:void 0}},
shortsBadges:{configurable:!0,enumerable:!0,get:function(){var a=this.data;if(a!=null&&a.badge&&(a=_.H(a.badge,QyI))){var z,I,J;return[{metadataBadgeRenderer:{label:((z=a.label)==null?void 0:(I=z.runs)==null?void 0:I[0].text)||((J=a.label)==null?void 0:J.simpleText),style:"BADGE_STYLE_TYPE_SHORTS_PLAYER"}}]}}},
isShort:{configurable:!0,enumerable:!0,get:function(){var a;return((a=this.data)==null?void 0:a.videoType)==="REEL_VIDEO_TYPE_VIDEO"}},
isSlimShort:{configurable:!0,enumerable:!0,get:function(){var a;return((a=this.data)==null?void 0:a.style)==="REEL_ITEM_STYLE_SHORTS_SLIM"}},
computedTitle:{configurable:!0,enumerable:!0,get:function(){if(this.isShort){var a=this.data;return Object.assign({},a.headline,{accessibility:a.accessibility})}return this.data.title}},
computedAccessibilityLabel:{configurable:!0,enumerable:!0,get:function(){var a,z,I;return this.isSlimShort?(a=this.computedTitle)==null?void 0:(z=a.accessibility)==null?void 0:(I=z.accessibilityData)==null?void 0:I.label:void 0}},
shouldForce2By3:{configurable:!0,enumerable:!0,get:function(){return _.K("web_slim_media_force_2_by_3")}},
isHovered:{configurable:!0,enumerable:!0,get:function(){var a;return!((a=this.JSC$15990_inlinePreviewHoverListener)==null?0:lO(a))&&!!this.ytdLockupBehavior.lockupIsHovered}}});
VS.prototype.onDataChanged=VS.prototype.onDataChanged;_.L([_.Q(_.Ms.YtComponentBehavior),_.p("design:type",Object)],VS.prototype,"componentBehavior",void 0);_.L([_.Q(_.k.YtRendererBehavior),_.p("design:type",Object)],VS.prototype,"ytRendererBehavior",void 0);_.L([_.Q(_.eB),_.p("design:type",Object)],VS.prototype,"ytdLockupBehavior",void 0);_.L([_.Q(_.u4.YtRendererstamperBehavior),_.p("design:type",Object)],VS.prototype,"ytRendererstamperBehavior",void 0);
_.L([_.Q(_.mD),_.p("design:type",Object)],VS.prototype,"ytdDismissibleItemBehavior",void 0);_.L([_.Q(_.pV),_.p("design:type",Object)],VS.prototype,"ytdReduxBehavior",void 0);_.L([_.A3("ytd-thumbnail"),_.p("design:type",HTMLElement)],VS.prototype,"thumbnail",void 0);_.L([_.A3("#dismissible"),_.p("design:type",HTMLElement)],VS.prototype,"JSC$15990_dismissibleMedia",void 0);_.L([_.x({reflectToAttribute:!0}),_.p("design:type",Object)],VS.prototype,"removeMaxWidth",void 0);
_.L([_.x({reflectToAttribute:!0}),_.p("design:type",Object)],VS.prototype,"insetMetadata",void 0);_.L([_.x(),_.p("design:type",String)],VS.prototype,"dismissedContentId",void 0);_.L([_.x({selectorArgs:["dismissedContentId"],selector:D7O}),_.p("design:type",Object)],VS.prototype,"dismissActionToReplayEntity",void 0);_.L([_.S("insetMetadata"),_.p("design:type",Object),_.p("design:paramtypes",[])],VS.prototype,"thumbnailObjectFit",null);
_.L([_.S("data","insetMetadata"),_.p("design:type",Object),_.p("design:paramtypes",[])],VS.prototype,"innerMenu",null);_.L([_.S("data","insetMetadata"),_.p("design:type",Object),_.p("design:paramtypes",[])],VS.prototype,"outerMenu",null);_.L([_.x(),_.p("design:type",Object)],VS.prototype,"data",void 0);_.L([_.x({reflectToAttribute:!0,selector:_.$p}),_.p("design:type",Boolean)],VS.prototype,"miniMode",void 0);
_.L([_.O8("data"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],VS.prototype,"onDataChanged",null);_.L([_.S("data"),_.p("design:type",Object),_.p("design:paramtypes",[])],VS.prototype,"shortsBadges",null);_.L([_.S("data"),_.x({reflectToAttribute:!0}),_.p("design:type",Boolean),_.p("design:paramtypes",[])],VS.prototype,"isShort",null);
_.L([_.S("data"),_.x({reflectToAttribute:!0}),_.p("design:type",Boolean),_.p("design:paramtypes",[])],VS.prototype,"isSlimShort",null);_.L([_.S("data","isShort"),_.p("design:type",Object),_.p("design:paramtypes",[])],VS.prototype,"computedTitle",null);_.L([_.S("isSlimShort","computedTitle"),_.p("design:type",Object),_.p("design:paramtypes",[])],VS.prototype,"computedAccessibilityLabel",null);
_.L([_.x({reflectToAttribute:!0}),_.p("design:type",Boolean),_.p("design:paramtypes",[])],VS.prototype,"shouldForce2By3",null);_.L([_.S("lockupIsHovered"),_.p("design:type",Boolean),_.p("design:paramtypes",[])],VS.prototype,"isHovered",null);_.L([_.U({is:"ytd-rich-grid-slim-media",disableElementRegistration:!0})],VS);
_.D(VS,"ytd-rich-grid-slim-media",function(){if(Oso!==void 0)return Oso;var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-rich-grid-slim-media--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="dismissible" on-click="onRendererTap" class="style-scope ytd-rich-grid-slim-media">\n  <ytd-thumbnail data="[[data]]" hovered="[[isHovered]]" no-rounded-corners="[[isSlimShort]]" object-fit="[[thumbnailObjectFit]]" rich-grid-thumbnail="" use-expandable-tooltip="[[useExpandableTooltip]]" use-hovered-property="" width="9999" class="style-scope ytd-rich-grid-slim-media">\n  </ytd-thumbnail>\n  <div id="details" on-click="onDetailsClick" role="heading" aria-label$="[[computedAccessibilityLabel]]" class="style-scope ytd-rich-grid-slim-media">\n    <h3 class="style-scope ytd-rich-grid-slim-media">\n      <a class="yt-simple-endpoint focus-on-expand style-scope ytd-rich-grid-slim-media" href$="[[computeHref_(data.navigationEndpoint)]]" title$="[[getSimpleString(computedTitle)]]" aria-label$="[[computedTitle.accessibility.accessibilityData.label]]" data="[[data.navigationEndpoint]]">\n        <ytd-badge-supported-renderer hidden="[[!data.topStandaloneBadge]]" top-standalone-badge="[[data.topStandaloneBadge]]" class="style-scope ytd-rich-grid-slim-media">\n        </ytd-badge-supported-renderer>\n        <span id="video-title" class="style-scope ytd-rich-grid-slim-media">[[getSimpleString(computedTitle)]]</span>\n      </a>\n    </h3>\n    <span id="metadata" hidden="[[!data.metadata]]" class="style-scope ytd-rich-grid-slim-media"> [[getSimpleString(data.metadata)]] </span>\n    <ytd-video-meta-block class="grid style-scope ytd-rich-grid-slim-media" data="[[data]]" is-slim-short="[[isSlimShort]]" rich-meta="">\n    </ytd-video-meta-block>\n    <div id="menu" class="style-scope ytd-rich-grid-slim-media"></div>\n  </div>\n  <div id="menu-outer" class="style-scope ytd-rich-grid-slim-media"></div>\n  \n  <template is="dom-if" if="[[!isShort]]" class="style-scope ytd-rich-grid-slim-media">\n    <ytd-badge-supported-renderer class="video-badge style-scope ytd-rich-grid-slim-media" badges="[[data.badges]]" hidden="[[!data.badges]]">\n    </ytd-badge-supported-renderer>\n  </template>\n  <template is="dom-if" if="[[isShort]]" class="style-scope ytd-rich-grid-slim-media">\n    <ytd-badge-supported-renderer class="video-badge style-scope ytd-rich-grid-slim-media" badges="[[shortsBadges]]" hidden="[[!shortsBadges]]">\n    </ytd-badge-supported-renderer>\n  </template>\n</div>\n<div id="dismissed" class="style-scope ytd-rich-grid-slim-media">\n  <div id="dismissed-content" class="style-scope ytd-rich-grid-slim-media"></div>\n</div>\n<yt-interaction id="interaction" class="extended style-scope ytd-rich-grid-slim-media"></yt-interaction>\n');a.content.insertBefore(_.w().content.cloneNode(!0),
a.content.firstChild);return Oso=a},{mode:_.Np("kevlar_poly_si_batch_j063")?1:2});var frw;var AZe;var QS=function(){var a=_.G.apply(this,arguments)||this;a.darkerDarkTheme=_.K("web_darker_dark_theme");return a};
_.b(QS,_.G);QS.prototype.computeIcon=function(a){return a&&a.iconType?"yt-sys-icons:"+a.iconType.toLowerCase():""};
QS.prototype.onMouseEnter=function(){this.isHovered=!0};
QS.prototype.onMouseLeave=function(){this.isHovered=!1};
_.L([_.Q(_.k.YtRendererBehavior),_.p("design:type",Object)],QS.prototype,"ytRendererBehavior",void 0);_.L([_.Q(_.u4.YtRendererstamperBehavior),_.p("design:type",Object)],QS.prototype,"ytRendererstamperBehavior",void 0);_.L([_.Q(_.Ms.YtComponentBehavior),_.p("design:type",Object)],QS.prototype,"ytComponentBehavior",void 0);_.L([_.x(),_.p("design:type",Object)],QS.prototype,"data",void 0);_.L([_.x({value:!1}),_.p("design:type",Boolean)],QS.prototype,"isHovered",void 0);
_.L([_.x({reflectToAttribute:!0}),_.p("design:type",Object)],QS.prototype,"darkerDarkTheme",void 0);_.L([_.U({is:"ytd-expand-on-hover-card-renderer",disableElementRegistration:!0})],QS);
_.D(QS,"ytd-expand-on-hover-card-renderer",function(){if(AZe!==void 0)return AZe;var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-expand-on-hover-card-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="card" class="style-scope ytd-expand-on-hover-card-renderer"><div class="content style-scope ytd-expand-on-hover-card-renderer"><div class="icon-line style-scope ytd-expand-on-hover-card-renderer"><yt-icon class="icon style-scope ytd-expand-on-hover-card-renderer" hidden="[[!data.icon]]" icon="[[computeIcon(data.icon)]]"></yt-icon><yt-icon class="info style-scope ytd-expand-on-hover-card-renderer" icon="info_outline" on-mouseenter="onMouseEnter"></yt-icon></div><yt-formatted-string class="title style-scope ytd-expand-on-hover-card-renderer" hidden="[[!data.title]]" text="[[data.title]]"></yt-formatted-string><yt-formatted-string class="subtitle style-scope ytd-expand-on-hover-card-renderer" hidden="[[!data.subtitle]]" text="[[data.subtitle]]"></yt-formatted-string></div></div><div id="overlay" hidden="[[!isHovered]]" on-mouseleave="onMouseLeave" class="style-scope ytd-expand-on-hover-card-renderer"><div class="content style-scope ytd-expand-on-hover-card-renderer"><div class="icon-line style-scope ytd-expand-on-hover-card-renderer"><yt-icon class="icon style-scope ytd-expand-on-hover-card-renderer" hidden="[[!data.icon]]" icon="[[computeIcon(data.icon)]]"></yt-icon><yt-icon class="info style-scope ytd-expand-on-hover-card-renderer" icon="info_outline"></yt-icon></div><yt-formatted-string class="title style-scope ytd-expand-on-hover-card-renderer" hidden="[[!data.title]]" text="[[data.title]]"></yt-formatted-string><yt-formatted-string class="subtitle style-scope ytd-expand-on-hover-card-renderer" hidden="[[!data.subtitle]]" text="[[data.subtitle]]"></yt-formatted-string><yt-formatted-string class="details style-scope ytd-expand-on-hover-card-renderer" hidden="[[!data.details]]" text="[[data.details]]"></yt-formatted-string></div></div>');a.content.insertBefore(_.w().content.cloneNode(!0),
a.content.firstChild);return AZe=a},{mode:1});var sVe,nyO=function(){if(sVe!==void 0)return sVe;var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-channel-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-formatted-string id="channel-user-state" hidden="[[!data.channelUserStateDescription]]" text="[[data.channelUserStateDescription]]" class="style-scope ytd-channel-renderer"></yt-formatted-string><div id="content-section" class="style-scope ytd-channel-renderer"><div id="avatar-section" class="style-scope ytd-channel-renderer"><a class="channel-link yt-simple-endpoint style-scope ytd-channel-renderer" on-tap="onTap" href$="[[computeHrefEndpoint(data.navigationEndpoint)]]" data="[[computeChannelEndpoint(data.navigationEndpoint)]]"><div id="avatar" class="style-scope ytd-channel-renderer"><yt-img-shadow height="[[computeIconSize(compactStyle)]]" thumbnail="[[data.thumbnail]]" width="[[computeIconSize(compactStyle)]]" class="style-scope ytd-channel-renderer"></yt-img-shadow></div></a></div><div id="info-section" class="style-scope ytd-channel-renderer"><a id="main-link" class="channel-link yt-simple-endpoint style-scope ytd-channel-renderer" on-tap="onTap" href$="[[computeHrefEndpoint(data.navigationEndpoint)]]" data="[[computeChannelEndpoint(data.navigationEndpoint)]]"><div id="info" class="style-scope ytd-channel-renderer"><ytd-channel-name id="channel-title" badges="[[data.ownerBadges]]" channel-name="[[getSimpleString(data.title)]]" compact-style="[[compactStyle]]" wrap-text="" class="style-scope ytd-channel-renderer"></ytd-channel-name><div id="metadata" class="style-scope ytd-channel-renderer"><yt-formatted-string id="subscribers" respect-lang-dir="" text="[[data.subscriberCountText]]" class="style-scope ytd-channel-renderer"></yt-formatted-string><span id="dot" hidden="[[computeHideDot(data)]]" class="style-scope ytd-channel-renderer">\u2022</span><span id="video-count" class="style-scope ytd-channel-renderer">[[getSimpleString(data.videoCountText)]]</span></div><yt-formatted-string id="description" hidden="[[compactStyle]]" text="[[data.descriptionSnippet]]" class="style-scope ytd-channel-renderer"></yt-formatted-string><ytd-badge-supported-renderer id="badges" badges="[[data.badges]]" hidden="[[!data.badges]]" class="style-scope ytd-channel-renderer"></ytd-badge-supported-renderer></div><div id="navigation-icon" hidden="[[!data.navigationIcon.iconType]]" class="style-scope ytd-channel-renderer"><yt-icon disable-upgrade$="[[!data.navigationIcon.iconType]]" icon="[[data.navigationIcon.iconType]]" class="style-scope ytd-channel-renderer"></yt-icon></div></a><div id="buttons" class="style-scope ytd-channel-renderer"><div id="purchase-button" hidden="[[!data.purchaseButton]]" class="style-scope ytd-channel-renderer"></div><div id="subscribe-button" hidden="[[!data.subscribeButton]]" class="style-scope ytd-channel-renderer"></div></div><div id="channel-memberships-button" hidden="[[!data.channelMembershipsButton]]" class="style-scope ytd-channel-renderer"></div></div></div>');
a.content.insertBefore(_.w().content.cloneNode(!0),a.content.firstChild);return sVe=a};_.$q("itemSectionRenderer","channelRenderer","ytd-channel-renderer");var Se=function(){var a=_.G.apply(this,arguments)||this;a.compactStyle=!1;a.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return a};
_.b(Se,_.G);_.Z=Se.prototype;_.Z.attached=function(){this.isDarkTheme=document.documentElement.hasAttribute("dark")};
_.Z.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"}}}};
_.Z.computeHideDot=function(a){return!(a&&a.subscriberCountText&&a.videoCountText)||this.compactStyle};
_.Z.hasDualButtons=function(a){return a&&a.purchaseButton&&a.subscribeButton};
_.Z.backgroundColorChanged=function(){if(this.data!==void 0){var a=this.data.backgroundColor;this.isDarkTheme&&(a=this.data.backgroundColorDarkTheme);this.hostElement.style.backgroundColor=a!=null?_.Da(a):"transparent"}};
_.Z.onDarkModeToggledAction=function(a){this.isDarkTheme=a};
_.Z.onTap=function(a){var z,I,J=((z=this.data)==null?void 0:z.navigationEndpoint)||((I=this.data)==null?void 0:I.serviceEndpoint);_.H(J,_.er)&&(J&&_.ab().resolve(_.j6).resolveCommand(J,{form:{element:this.hostElement}}),a.preventDefault())};
_.Z.computeChannelEndpoint=function(a){return _.H(a,_.er)?null:a};
_.Z.computeHrefEndpoint=function(a){return _.H(a,_.er)?null:this.componentBehavior.computeHref_(a)};
_.Z.computeChannelRendererStyle=function(a){return a};
_.Z.computeIconSize=function(a){return a?108:136};
_.eH.Object.defineProperties(Se,{template:{configurable:!0,enumerable:!0,get:function(){return nyO()}}});
Se.prototype.backgroundColorChanged=Se.prototype.backgroundColorChanged;_.L([_.Q(_.k.YtRendererBehavior),_.p("design:type",Object)],Se.prototype,"ytRendererBehavior",void 0);_.L([_.Q(_.u4.YtRendererstamperBehavior),_.p("design:type",Object)],Se.prototype,"ytRendererstamperBehavior",void 0);_.L([_.Q(_.rI),_.p("design:type",Object)],Se.prototype,"ytdOpenPopupBehavior",void 0);_.L([_.Q(_.Ms.YtComponentBehavior),_.p("design:type",Object)],Se.prototype,"componentBehavior",void 0);
_.L([_.x(),_.p("design:type",Object)],Se.prototype,"data",void 0);_.L([_.x(),_.p("design:type",Boolean)],Se.prototype,"isDarkTheme",void 0);_.L([_.x({computed:"computeChannelRendererStyle(data.channelRendererStyle)",reflectToAttribute:!0}),_.p("design:type",String)],Se.prototype,"channelRendererStyle",void 0);_.L([_.x({computed:"hasDualButtons(data)",reflectToAttribute:!0}),_.p("design:type",Boolean)],Se.prototype,"dualButtons",void 0);_.L([_.x({reflectToAttribute:!0,value:function(){return _.K("enable_desktop_search_bigger_thumbs")}}),
_.p("design:type",Boolean)],Se.prototype,"useBiggerThumbs",void 0);_.L([_.x({reflectToAttribute:!0,value:function(){return _.rM("desktop_search_bigger_thumbs_style")}}),
_.p("design:type",String)],Se.prototype,"biggerThumbStyle",void 0);_.L([_.x({reflectToAttribute:!0}),_.p("design:type",Object)],Se.prototype,"compactStyle",void 0);_.L([_.O8("data","isDarkTheme"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],Se.prototype,"backgroundColorChanged",null);_.L([_.U({is:"ytd-channel-renderer",disableElementRegistration:!0})],Se);_.D(Se,"ytd-channel-renderer",function(){return nyO()},{mode:1});var KE1;var FEe;_.$q("itemSectionRenderer","radioRenderer","ytd-radio-renderer");var iH=function(){var a=_.G.apply(this,arguments)||this;a.displayItemCount=2;a.collections=_.K("web_modern_collections_v2");a.hasPlaylistThumbnail=!1;a.stackThumbnailSize="large";return a};
_.b(iH,_.G);_.Z=iH.prototype;_.Z.attached=function(){this.updateInlinePreviewHoverListeners()};
_.Z.detached=function(){this.clearInlinePreviewHoverListeners()};
_.Z.dataChanged=function(){this.updateInlinePreviewHoverListeners()};
_.Z.computeFirstVideos=function(a,z){return a&&z?a.slice(0,z):[]};
_.Z.computeThumbnailWidth=function(a,z){return a?z==="BIG"?500:z==="MASSIVE"?600:z==="MEDIUM"?450:420:360};
_.Z.computeThumbnailHeight=function(a,z){return a?z==="BIG"?280:z==="MASSIVE"?337:234:202};
_.Z.clearInlinePreviewHoverListeners=function(){var a;(a=this.JSC$16003_inlinePreviewHoverListener)==null||e8(a)};
_.Z.updateInlinePreviewHoverListeners=function(){this.clearInlinePreviewHoverListeners();this.JSC$16003_inlinePreviewHoverListener=LU({mediaRenderer:this,lockupElement:this.hostElement,videoPreviewOpts:rBf,thumbnailElement:this.thumbnail})};
_.Z.computeHasPlaylistThumbnail=function(a){var z,I;if((((z=a.thumbnailRenderer)==null?0:z.playlistVideoThumbnailRenderer)||((I=a.thumbnailRenderer)==null?0:I.playlistCustomThumbnailRenderer))&&a.thumbnailOverlays)for(z=0;z<a.thumbnailOverlays.length;z++)if(I=void 0,(I=a.thumbnailOverlays[z])==null?0:I.thumbnailOverlayBottomPanelRenderer)return!0;return!1};
_.eH.Object.defineProperties(iH.prototype,{isHovered:{configurable:!0,enumerable:!0,get:function(){var a;return!((a=this.JSC$16003_inlinePreviewHoverListener)==null?0:lO(a))&&!!this.ytdLockupBehavior.lockupIsHovered}}});
iH.prototype.dataChanged=iH.prototype.dataChanged;_.L([_.Q(_.k.YtRendererBehavior),_.p("design:type",Object)],iH.prototype,"ytRendererBehavior",void 0);_.L([_.Q(_.eB),_.p("design:type",Object)],iH.prototype,"ytdLockupBehavior",void 0);_.L([_.x(),_.p("design:type",Object)],iH.prototype,"data",void 0);_.L([_.x(),_.p("design:type",Object)],iH.prototype,"displayItemCount",void 0);_.L([_.x({reflectToAttribute:!0,value:function(){return _.K("enable_desktop_search_bigger_thumbs")}}),
_.p("design:type",Boolean)],iH.prototype,"useBiggerThumbs",void 0);_.L([_.x({reflectToAttribute:!0,value:function(){return _.rM("desktop_search_bigger_thumbs_style")}}),
_.p("design:type",String)],iH.prototype,"biggerThumbsStyle",void 0);_.L([_.x({reflectToAttribute:!0}),_.p("design:type",Boolean)],iH.prototype,"collections",void 0);_.L([_.x({computed:"computeHasPlaylistThumbnail(data)"}),_.p("design:type",Object)],iH.prototype,"hasPlaylistThumbnail",void 0);_.L([_.x(),_.p("design:type",String)],iH.prototype,"stackThumbnailSize",void 0);_.L([_.A3("ytd-thumbnail"),_.p("design:type",HTMLElement)],iH.prototype,"thumbnail",void 0);
_.L([_.Fe("data"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],iH.prototype,"dataChanged",null);_.L([_.S("lockupIsHovered"),_.p("design:type",Boolean),_.p("design:paramtypes",[])],iH.prototype,"isHovered",null);_.L([_.U({is:"ytd-radio-renderer",disableElementRegistration:!0})],iH);
_.D(iH,"ytd-radio-renderer",function(){if(FEe!==void 0)return FEe;var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-radio-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<ytd-thumbnail data="[[data]]" height="[[computeThumbnailHeight(useBiggerThumbs, biggerThumbsStyle)]]" hidden$="[[hasPlaylistThumbnail]]" hovered="[[isHovered]]" use-expandable-tooltip="[[useExpandableTooltip]]" use-hovered-property="" width="[[computeThumbnailWidth(useBiggerThumbs, biggerThumbsStyle)]]" class="style-scope ytd-radio-renderer">\n</ytd-thumbnail>\n<ytd-playlist-thumbnail data="[[data]]" height="[[computeThumbnailHeight(useBiggerThumbs, biggerThumbsStyle)]]" hidden="[[!hasPlaylistThumbnail]]" hovered="[[isHovered]]" is-double-stack="true" thumbnail-size="[[stackThumbnailSize]]" use-expandable-tooltip="[[useExpandableTooltip]]" use-hovered-property="" width="[[computeThumbnailWidth(useBiggerThumbs, biggerThumbsStyle)]]" class="style-scope ytd-radio-renderer">\n</ytd-playlist-thumbnail>\n<div id="content" class="style-scope ytd-radio-renderer">\n  <a class="yt-simple-endpoint style-scope ytd-radio-renderer" href="[[computeHref_(data.navigationEndpoint)]]" data="[[data.navigationEndpoint]]">\n    <h3 class="style-scope ytd-radio-renderer">\n      <ytd-badge-supported-renderer hidden="[[!data.topStandaloneBadge]]" top-standalone-badge="[[data.topStandaloneBadge]]" class="style-scope ytd-radio-renderer">\n      </ytd-badge-supported-renderer>\n      <span id="video-title" title$="[[getSimpleString(data.title)]]" aria-label$="[[data.title.accessibility.accessibilityData.label]]" class="style-scope ytd-radio-renderer">\n        [[getSimpleString(data.title)]]\n      </span>\n    </h3>\n    <ytd-video-meta-block id="meta" data="[[data]]" radio-meta="" class="style-scope ytd-radio-renderer"></ytd-video-meta-block>\n  </a>\n  <ul id="list" class="style-scope ytd-radio-renderer">\n    <template is="dom-repeat" items="[[computeFirstVideos(data.videos, displayItemCount)]]" as="video" class="style-scope ytd-radio-renderer">\n      <li class="style-scope ytd-radio-renderer">\n        <ytd-child-video-renderer data="[[video.childVideoRenderer]]" class="style-scope ytd-radio-renderer">\n        </ytd-child-video-renderer>\n      </li>\n    </template>\n  </ul>\n</div>\n<yt-interaction id="interaction" class="extended style-scope ytd-radio-renderer"></yt-interaction>\n');a.content.insertBefore(_.w().content.cloneNode(!0),
a.content.firstChild);return FEe=a},{mode:_.Np("kevlar_poly_si_batch_j058")?1:2});var Hs1;_.$q("itemSectionRenderer","showRenderer","ytd-show-renderer");var xO=function(){return _.G.apply(this,arguments)||this};
_.b(xO,_.G);xO.prototype.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}}}};
xO.prototype.computeThumbnailWidth=function(a){return a?360:246};
xO.prototype.computeUseProminentThumbs=function(a){return a};
_.L([_.Q(_.k.YtRendererBehavior),_.p("design:type",Object)],xO.prototype,"ytRendererBehavior",void 0);_.L([_.Q(_.u4.YtRendererstamperBehavior),_.p("design:type",Object)],xO.prototype,"ytRendererstamperBehavior",void 0);_.L([_.x(),_.p("design:type",Object)],xO.prototype,"data",void 0);_.L([_.x({value:!1}),_.p("design:type",Boolean)],xO.prototype,"isSearch",void 0);
_.L([_.x({reflectToAttribute:!0,computed:"computeUseProminentThumbs(isSearch)"}),_.p("design:type",Boolean)],xO.prototype,"useProminentThumbs",void 0);_.L([_.U({is:"ytd-show-renderer",disableElementRegistration:!0})],xO);
_.D(xO,"ytd-show-renderer",function(){if(Hs1!==void 0)return Hs1;var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-show-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<ytd-playlist-thumbnail data="[[data]]" width="[[computeThumbnailWidth(useProminentThumbs)]]" class="style-scope ytd-show-renderer">\n</ytd-playlist-thumbnail>\n<div id="content" class="style-scope ytd-show-renderer">\n<a id="logo-container" class="yt-simple-endpoint style-scope ytd-show-renderer" href$="[[computeHref_(data.navigationEndpoint)]]" data="[[data.navigationEndpoint]]">\n    <h3 class="style-scope ytd-show-renderer">\n      <ytd-badge-supported-renderer top-standalone-badge="[[data.topStandaloneBadge]]" class="style-scope ytd-show-renderer">\n      </ytd-badge-supported-renderer>\n      <span id="video-title" title$="[[getSimpleString(data.title)]]" aria-label$="[[data.title.accessibility.accessibilityData.label]]" class="style-scope ytd-show-renderer">\n        [[getSimpleString(data.title)]]\n      </span>\n    </h3>\n    <ytd-video-meta-block data="[[data]]" class="style-scope ytd-show-renderer"></ytd-video-meta-block>\n  </a>\n  <ytd-badge-supported-renderer id="badges" badges="[[data.badges]]" class="style-scope ytd-show-renderer">\n  </ytd-badge-supported-renderer>\n  <ytd-badge-supported-renderer id="bottom-standalone-badge" bottom-standalone-badge="[[data.bottomStandaloneBadge]]" hidden="[[!data.bottomStandaloneBadge]]" class="style-scope ytd-show-renderer">\n  </ytd-badge-supported-renderer>\n</div>\n<div id="menu" class="style-scope ytd-show-renderer"></div>\n');a.content.insertBefore(_.w().content.cloneNode(!0),
a.content.firstChild);return Hs1=a},{mode:1});_.$q("itemSectionRenderer","feedEntryRenderer","ytd-feed-entry-renderer");var v_=function(){var a=_.G.apply(this,arguments)||this;a.isRichGrid=!1;return a};
_.b(v_,_.G);v_.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"}}}}}};
_.L([_.Q(_.k.YtRendererBehavior),_.p("design:type",Object)],v_.prototype,"ytRendererBehavior",void 0);_.L([_.Q(_.u4.YtRendererstamperBehavior),_.p("design:type",Object)],v_.prototype,"ytRendererstamperBehavior",void 0);_.L([_.x(),_.p("design:type",Object)],v_.prototype,"data",void 0);_.L([_.x({reflectToAttribute:!0}),_.p("design:type",Object)],v_.prototype,"isRichGrid",void 0);_.L([_.U({is:"ytd-feed-entry-renderer",disableElementRegistration:!0})],v_);
_.D(v_,"ytd-feed-entry-renderer",function(){if(KE1!==void 0)return KE1;var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-feed-entry-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-img-shadow hidden="[[isRichGrid]]" thumbnail="[[data.ownerThumbnail]]" width="48" class="style-scope ytd-feed-entry-renderer"></yt-img-shadow>\n<div class="info style-scope ytd-feed-entry-renderer">\n  <div id="title-container" hidden="[[isRichGrid]]" class="style-scope ytd-feed-entry-renderer">\n    <yt-formatted-string id="title" link-inherit-color="" text="[[data.title]]" class="style-scope ytd-feed-entry-renderer"></yt-formatted-string>\n  </div>\n  <yt-formatted-string id="post" text="[[data.postText]]" class="style-scope ytd-feed-entry-renderer"></yt-formatted-string>\n  <div id="contents" class="style-scope ytd-feed-entry-renderer"></div>\n</div>\n');
a.content.insertBefore(_.w().content.cloneNode(!0),a.content.firstChild);return KE1=a},{mode:1});var bsl;var Gf=function(){return _.G.apply(this,arguments)||this};
_.b(Gf,_.G);Gf.prototype.showChevronIcon=function(){return this.itemsPerRow>1};
_.L([_.Q(_.pV),_.p("design:type",Object)],Gf.prototype,"ytdReduxBehavior",void 0);_.L([_.Q(_.k.YtRendererBehavior),_.p("design:type",Object)],Gf.prototype,"ytRendererBehavior",void 0);_.L([_.Q(_.Ms.YtComponentBehavior),_.p("design:type",Object)],Gf.prototype,"ytComponentBehavior",void 0);_.L([_.x(),_.p("design:type",Object)],Gf.prototype,"data",void 0);_.L([_.x({reflectToAttribute:!0,selector:_.X4,value:3}),_.p("design:type",Number)],Gf.prototype,"itemsPerRow",void 0);
_.L([_.U({is:"ytd-link-card-renderer",disableElementRegistration:!0})],Gf);
_.D(Gf,"ytd-link-card-renderer",function(){if(bsl!==void 0)return bsl;var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-link-card-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="content" class="style-scope ytd-link-card-renderer">\n  <a id="card-link" class="yt-simple-endpoint style-scope ytd-link-card-renderer" href$="[[computeHref_(data.command)]]" data="[[data.command]]" aria-label$="[[data.title.accessibility.accessibilityData.label]]">\n    <yt-img-shadow id="thumbnail" hidden="[[!data.thumbnail]]" thumbnail="[[data.thumbnail]]" class="style-scope ytd-link-card-renderer">\n    </yt-img-shadow>\n    <div id="text-container" class="style-scope ytd-link-card-renderer">\n      <yt-formatted-string id="title" hidden="[[!data.title]]" text="[[data.title]]" class="style-scope ytd-link-card-renderer">\n      </yt-formatted-string>\n      <yt-formatted-string id="subtitle" hidden="[[!data.subtitle]]" text="[[data.subtitle]]" class="style-scope ytd-link-card-renderer">\n      </yt-formatted-string>\n    </div>\n    <yt-icon id="chevron" hidden="[[!showChevronIcon(itemsPerRow)]]" icon="chevron_right" class="style-scope ytd-link-card-renderer">\n    </yt-icon>\n  </a>\n</div>\n');a.content.insertBefore(_.w().content.cloneNode(!0),
a.content.firstChild);return bsl=a},{mode:1});var hbi;var $O=function(){return _.G.apply(this,arguments)||this};
_.b($O,_.G);_.Z=$O.prototype;_.Z.configureRendererStamper=function(){return{"data.menu":bO,dismissedRenderer:{id:"dismissed-content",mapping:{notificationMultiActionRenderer:"ytd-notification-multi-action-renderer",notificationTextRenderer:"ytd-notification-text-renderer"}}}};
_.Z.onRendererTap=function(a){if(!this.ytdDismissibleItemBehavior.isDismissed){var z,I=(z=this.data)==null?void 0:z.navigationEndpoint;I&&!_.qK(_.ch(a),this.hostElement,["BUTTON"])&&(this.isNavigationCommand(I)?_.qK(_.ch(a),this.hostElement,["A"])||_.PA(this.hostElement,"yt-navigate",{endpoint:I}):this.ytComponentBehavior.resolveCommand(I,{}))}};
_.Z.maybeComputeHref=function(a){return this.ytComponentBehavior.computeHref_(a,!0)};
_.Z.getNavigationCommand=function(a){return this.isNavigationCommand(a)?a:null};
_.Z.isNavigationCommand=function(a){return a?_.H(a,_.KH)||_.H(a,_.MZ)||_.H(a,_.pv)?!0:!1:!1};
$O.prototype.onRendererTap=$O.prototype.onRendererTap;_.L([_.Q(_.k.YtRendererBehavior),_.p("design:type",Object)],$O.prototype,"ytRendererBehavior",void 0);_.L([_.Q(_.u4.YtRendererstamperBehavior),_.p("design:type",Object)],$O.prototype,"ytRendererstamperBehavior",void 0);_.L([_.Q(_.mD),_.p("design:type",Object)],$O.prototype,"ytdDismissibleItemBehavior",void 0);_.L([_.Q(_.Ms.YtComponentBehavior),_.p("design:type",Object)],$O.prototype,"ytComponentBehavior",void 0);
_.L([_.x(),_.p("design:type",Object)],$O.prototype,"data",void 0);_.L([_.gz("tap"),_.p("design:type",Function),_.p("design:paramtypes",[CustomEvent]),_.p("design:returntype")],$O.prototype,"onRendererTap",null);_.L([_.U({is:"ytd-lumiere-promo-item-image-renderer",disableElementRegistration:!0})],$O);
_.D($O,"ytd-lumiere-promo-item-image-renderer",function(){if(hbi!==void 0)return hbi;var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-lumiere-promo-item-image-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="dismissible" class="style-scope ytd-lumiere-promo-item-image-renderer"><a id="thumbnail-link" class="yt-simple-endpoint style-scope ytd-lumiere-promo-item-image-renderer" href$="[[maybeComputeHref(data.navigationEndpoint)]]" title$="[[getSimpleString(data.title)]]" aria-label$="[[data.title.accessibility.accessibilityData.label]]" data="[[getNavigationCommand(data.navigationEndpoint)]]" rel="[[computeNofollow_(data.navigationEndpoint)]]"><yt-img-shadow thumbnail="[[data.thumbnail]]" class="style-scope ytd-lumiere-promo-item-image-renderer"></yt-img-shadow></a><div id="metadata" class="style-scope ytd-lumiere-promo-item-image-renderer"><div id="item-details" class="style-scope ytd-lumiere-promo-item-image-renderer"><div id="title" class="style-scope ytd-lumiere-promo-item-image-renderer"><h3 class="style-scope ytd-lumiere-promo-item-image-renderer"><a id="title-link" class="yt-simple-endpoint style-scope ytd-lumiere-promo-item-image-renderer" href$="[[maybeComputeHref(data.navigationEndpoint)]]" title$="[[getSimpleString(data.title)]]" aria-label$="[[data.title.accessibility.accessibilityData.label]]" data="[[getNavigationCommand(data.navigationEndpoint)]]" rel="[[computeNofollow_(data.navigationEndpoint)]]"><yt-formatted-string id="item-title" text="[[data.title]]" class="style-scope ytd-lumiere-promo-item-image-renderer"></yt-formatted-string><yt-icon class="hover-icon style-scope ytd-lumiere-promo-item-image-renderer" hidden="[[!data.showLauncherIcon]]" icon="open_in_new"></yt-icon></a></h3></div><yt-formatted-string id="item-subtitle" text="[[data.subtitle]]" class="style-scope ytd-lumiere-promo-item-image-renderer"></yt-formatted-string></div><div id="menu" class="style-scope ytd-lumiere-promo-item-image-renderer"></div></div></div><div id="dismissed" class="style-scope ytd-lumiere-promo-item-image-renderer"><div id="dismissed-content" class="style-scope ytd-lumiere-promo-item-image-renderer"></div></div>');a.content.insertBefore(_.w().content.cloneNode(!0),
a.content.firstChild);return hbi=a},{mode:1});var Vsw;var Xs=function(){return _.G.apply(this,arguments)||this};
_.b(Xs,_.G);Xs.prototype.computeLandscapeThumbnail=function(){var a;return((a=this.data)==null?void 0:a.thumbnailDimensions)==="LUMIERE_SHELF_THUMBNAIL_DIMENSIONS_16_9"};
_.L([_.Q(_.k.YtRendererBehavior),_.p("design:type",Object)],Xs.prototype,"ytRendererBehavior",void 0);_.L([_.Q(_.pV),_.p("design:type",Object)],Xs.prototype,"ytdReduxBehavior",void 0);_.L([_.x(),_.p("design:type",Object)],Xs.prototype,"data",void 0);_.L([_.x({reflectToAttribute:!0,selector:_.$p}),_.p("design:type",Boolean)],Xs.prototype,"miniMode",void 0);_.L([_.x({reflectToAttribute:!0,selector:_.X4}),_.p("design:type",Number)],Xs.prototype,"itemsPerRow",void 0);
_.L([_.x({reflectToAttribute:!0,computed:"computeLandscapeThumbnail(data)"}),_.p("design:type",Boolean)],Xs.prototype,"landscapeThumbnail",void 0);_.L([_.U({is:"ytd-lumiere-shelf-details-renderer",disableElementRegistration:!0})],Xs);
_.D(Xs,"ytd-lumiere-shelf-details-renderer",function(){if(Vsw!==void 0)return Vsw;var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-lumiere-shelf-details-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="style-scope ytd-lumiere-shelf-details-renderer">\n  <div id="lumiere-shelf-details" class="style-scope ytd-lumiere-shelf-details-renderer">\n    <div id="title" class="style-scope ytd-lumiere-shelf-details-renderer">\n       <yt-formatted-string id="item-title" text="[[data.title]]" class="style-scope ytd-lumiere-shelf-details-renderer"></yt-formatted-string>\n    </div>\n    <div id="subtitle" class="style-scope ytd-lumiere-shelf-details-renderer">\n      <yt-formatted-string id="item-subtitle" text="[[data.subtitle]]" class="style-scope ytd-lumiere-shelf-details-renderer">\n      </yt-formatted-string>\n    </div>\n    <ytd-badge-supported-renderer id="badge" hidden="[[!data.badge]]" top-standalone-badge="[[data.badge]]" class="style-scope ytd-lumiere-shelf-details-renderer">\n    </ytd-badge-supported-renderer>\n  </div>\n</div>\n');a.content.insertBefore(_.w().content.cloneNode(!0),
a.content.firstChild);return Vsw=a},{mode:_.Np("kevlar_poly_si_batch_j076")?1:2});var QV1;var Tf=function(){return _.G.apply(this,arguments)||this};
_.b(Tf,_.G);Tf.prototype.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.L([_.Q(_.k.YtRendererBehavior),_.p("design:type",Object)],Tf.prototype,"ytRendererBehavior",void 0);_.L([_.Q(_.u4.YtRendererstamperBehavior),_.p("design:type",Object)],Tf.prototype,"ytRendererstamperBehavior",void 0);_.L([_.x(),_.p("design:type",Object)],Tf.prototype,"data",void 0);_.L([_.U({is:"ytd-primetime-promo-details-renderer",disableElementRegistration:!0})],Tf);
_.D(Tf,"ytd-primetime-promo-details-renderer",function(){if(QV1!==void 0)return QV1;var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-primetime-promo-details-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="content" hidden="[[!data.headline]]" class="style-scope ytd-primetime-promo-details-renderer"><div id="centered-container" class="style-scope ytd-primetime-promo-details-renderer"><yt-formatted-string id="headline" text="[[data.headline]]" class="style-scope ytd-primetime-promo-details-renderer"></yt-formatted-string><ytd-badge-supported-renderer top-standalone-badge="[[data.priceText]]" class="style-scope ytd-primetime-promo-details-renderer"></ytd-badge-supported-renderer><yt-formatted-string id="detail-text" text="[[data.detailText]]" class="style-scope ytd-primetime-promo-details-renderer"></yt-formatted-string><div id="action-button" class="style-scope ytd-primetime-promo-details-renderer"></div></div></div><div id="header" hidden="[[data.headline]]" class="style-scope ytd-primetime-promo-details-renderer"><ytd-badge-supported-renderer top-standalone-badge="[[data.priceText]]" class="style-scope ytd-primetime-promo-details-renderer"></ytd-badge-supported-renderer><yt-formatted-string id="detail-text" text="[[data.detailText]]" class="style-scope ytd-primetime-promo-details-renderer"></yt-formatted-string></div>');
a.content.insertBefore(_.w().content.cloneNode(!0),a.content.firstChild);return QV1=a},{mode:1});var Si1;var dT=function(){return _.G.apply(this,arguments)||this};
_.b(dT,_.G);_.L([_.Q(_.k.YtRendererBehavior),_.p("design:type",Object)],dT.prototype,"ytRendererBehavior",void 0);_.L([_.x(),_.p("design:type",Object)],dT.prototype,"data",void 0);_.L([_.U({is:"ytd-panel-show-style-metadata-renderer",disableElementRegistration:!0})],dT);
_.D(dT,"ytd-panel-show-style-metadata-renderer",function(){if(Si1!==void 0)return Si1;var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-panel-show-style-metadata-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-formatted-string text="[[data.text]]" class="style-scope ytd-panel-show-style-metadata-renderer"></yt-formatted-string>\n');a.content.insertBefore(_.w().content.cloneNode(!0),
a.content.firstChild);return Si1=a},{mode:1});var ise;var W_=function(){return _.G.apply(this,arguments)||this};
_.b(W_,_.G);_.Z=W_.prototype;_.Z.onPanelTap=function(){if(this.data&&this.data.command&&!this.isNavigationCommand(this.data.command))return this.ytComponentBehavior.resolveCommand(this.data.command,{})};
_.Z.configureRendererStamper=function(){return{"data.metadata":{id:"panel-metadata",mapping:{panelShowStyleMetadataRenderer:{component:"ytd-panel-show-style-metadata-renderer"}}}}};
_.Z.computeThumbnail=function(a){if(a)return a.smallFormFactorBackgroundThumbnail||a.largeFormFactorBackgroundThumbnail};
_.Z.maybeComputeHref=function(a){return this.ytComponentBehavior.computeHref_(a,!0)};
_.Z.isNavigationCommand=function(a){return a?_.H(a,_.KH)||_.H(a,_.MZ)||_.H(a,_.pv)?!0:!1:!1};
_.Z.getNavigationCommand=function(a){return this.isNavigationCommand(a)?a:null};
W_.prototype.onPanelTap=W_.prototype.onPanelTap;_.L([_.Q(_.k.YtRendererBehavior),_.p("design:type",Object)],W_.prototype,"ytRendererBehavior",void 0);_.L([_.Q(_.Ms.YtComponentBehavior),_.p("design:type",Object)],W_.prototype,"ytComponentBehavior",void 0);_.L([_.Q(_.u4.YtRendererstamperBehavior),_.p("design:type",Object)],W_.prototype,"ytRendererstamperBehavior",void 0);_.L([_.x(),_.p("design:type",Object)],W_.prototype,"data",void 0);
_.L([_.x({reflectToAttribute:!0,value:!0}),_.p("design:type",Boolean)],W_.prototype,"roundedContainer",void 0);_.L([_.x({reflectToAttribute:!0,value:_.K("web_modern_buttons")}),_.p("design:type",Boolean)],W_.prototype,"modernButtons",void 0);_.L([_.gz("tap"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],W_.prototype,"onPanelTap",null);_.L([_.U({is:"ytd-primetime-promo-panel-renderer",disableElementRegistration:!0})],W_);
_.D(W_,"ytd-primetime-promo-panel-renderer",function(){if(ise!==void 0)return ise;var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-primetime-promo-panel-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<a id="thumbnail" class="yt-simple-endpoint style-scope ytd-primetime-promo-panel-renderer" href$="[[maybeComputeHref(data.command)]]" data="[[getNavigationCommand(data.command)]]" rel="[[computeNofollow_(data.command)]]"><yt-img-shadow thumbnail="[[computeThumbnail(data)]]" width="420" class="style-scope ytd-primetime-promo-panel-renderer"></yt-img-shadow><div id="action-button" class="style-scope ytd-primetime-promo-panel-renderer"><yt-formatted-string text="[[data.buttonText]]" class="style-scope ytd-primetime-promo-panel-renderer"></yt-formatted-string><yt-icon icon="[[data.contentIcon.iconType]]" class="style-scope ytd-primetime-promo-panel-renderer"></yt-icon></div></a><div id="panel-metadata" class="style-scope ytd-primetime-promo-panel-renderer"></div>');
a.content.insertBefore(_.w().content.cloneNode(!0),a.content.firstChild);return ise=a},{mode:1});_.Jf(_.ec(function(a){a=_.q3(a,{data:{},useFullWidth:!1});var z=a.data,I=a.useFullWidth;a={};return _.B("teaser-card-view-model",{class:_.B8("ytTeaserCardViewModelHost",(a.ytTeaserCardViewModelUseFullWidth=function(){return I()},a))},_.B(_.g,{cond:function(){return z().onTap},
then:function(J){return _.B(_.lq,{className:"ytTeaserCardViewModelLink",command:J},_.B("div",{class:"ytTeaserCardViewModelImageContainer"},_.B(_.g,{cond:function(){return z().image},
then:function(r){return _.B(_.qp,{data:r,className:"ytTeaserCardViewModelImage",alt:""})}})),_.B("p",{class:"ytTeaserCardViewModelCaption"},function(){return z().caption}))}}))},"Rb"),"teaser-card-view-model",{props:{data:_.zl,
useFullWidth:_.zl}});var x6O=new _.I4("RICH_GRID_VIDEO_RENDERER_TOKEN");_.Jf(_.ec(function(a){var z=a.data;var I=a.showYtInteractionInContent;var J=function(){return!!z().selectableFeedback};
a=_.C(_.CW(!1,void 0,"nblDw"));var r=a.next().value,P=a.next().value;_.QO(function(){var n=_.H(z().primaryButton,_.My);(n==null?0:n.isToggled)&&P(n.isToggled)});
a=_.g4(function(n){if(!J())return!1;if(r()){var F;var h=(F=z().selectableFeedback)==null?void 0:F.onDeselect}else{var v;h=(v=z().selectableFeedback)==null?void 0:v.onSelect}h&&_.lN(h,{form:{element:n.target}});P(!r());if(n=_.H(z().primaryButton,_.My))n.isToggled=r();return!1});
var N=function(){if(!J()){var n,F=(n=z().loggingDirectives)==null?void 0:n.trackingParams;F&&_.KJ(_.ab().resolve(_.d7),F)}},u=_.ll$(),E=function(){var n;
return J()?(n=z().selectableFeedback)==null?void 0:n.a11yLabel:void 0},O=function(){return J()?{toggled:r()}:{}},f=_.ab().resolve(_.eL(x6O)),A={};
return _.B("yt-feedback-item-renderer",{class:_.B8("ytFeedbackItemRendererHost",(A.ytFeedbackItemRendererSelectableFeedback=J,A)),"on:click":a,"on:keydown":u,title:E,"aria-label":E,"aria-pressed":function(){return J()?r():void 0},
tabindex:function(){return J()?0:void 0},
role:function(){return J()?"button":void 0}},_.B("div",{class:"ytFeedbackItemRendererContentContainer"},_.B(_.V0,{data:function(){return z().content}},{videoRenderer:function(n){return _.B(f,{data:n.data,
showYtInteraction:I})},
lockupViewModel:function(n){return _.B(_.Ou,{data:n.data,containerType:2})}})),_.B("div",{class:"ytFeedbackItemRendererButtonsContainer"},_.B(_.V0,{data:function(){return z().primaryButton}},{toggleButtonViewModel:function(n){return _.B(_.Wc,{data:n.data,
buttonShapeOverrides:O,disableExplicitClickLogging:!0,onToggle:N})}})))},"Sb"),"yt-feedback-item-renderer",{props:{data:_.zl,
showYtInteractionInContent:_.zl}});var ox=function(){var a=_.G.apply(this,arguments)||this;a.isShortsGrid=!1;a.isCompactGrid=!1;a.isShortsPanelGrid=!1;a.renderedFromRichGrid=!1;a.isInFirstColumn=!1;a.noGutterMargins=!1;a.isInlineGroupItem=!1;a.insetMetadata=!1;a.noBottomMarginInAds=!0;a.force16By9ThumbnailAspectRatio=!1;a.useCompactList=!1;a.containerType=2;a.thumbnailTargetWidth=9999;a.isResponsiveGrid=!1;a.lockupExperiments={useRichGridLegacyTypography:!0,useRichGridLegacyMargin:!0};a.actionMap={"ytd-rich-item-index-update-action":"onIndexUpdateAction"};
a.hoverListener=a.hover.bind(a);a.leaveListener=a.leave.bind(a);a.highlighted=!1;a.JSC$16038_unsubscribeFromInlinePreviewIsActive=function(){};
return a};
_.b(ox,_.G);_.Z=ox.prototype;_.Z.computeContainerType=function(){return this.useCompactList?3:2};
_.Z.computeThumbnailTargetWidth=function(){var a;return(a=this.itemWidth)!=null?a:9999};
_.Z.updateIsInFirstColumn=function(){var a;this.isInFirstColumn=((a=this.data)==null?void 0:a.colIndex)===0};
_.Z.observerContainerType=function(){if(this.lockup){var a=this.lockup;a.containerType=this.containerType;a.sizing=this.sizing;a.typographyBump=this.typographyBump;a.itemWidth=this.itemWidth}this.richGridMedia&&_.K("rich_grid_enable_dynamic_offset")&&(this.richGridMedia.typographyBump=this.richTypographyBump);this.adSlotRenderer&&_.K("rich_grid_enable_dynamic_offset")&&(this.adSlotRenderer.typographyBump=this.richTypographyBump)};
_.Z.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]]"}}}}}};
_.Z.leave=function(a){a=a.relatedTarget;var z=document.querySelector("ytd-video-preview");a&&z&&_.ZL(z).contains(a)||this.removeAndCleanupHighlight()};
_.Z.hover=function(){var a;if(!this.highlighted&&(!_.K("web_enable_rich_item_on_focus_effect")||(a=this.data)!=null&&a.onFocusEffect)){var z,I;((z=this.data)==null?void 0:(I=z.onFocusEffect)==null?void 0:I.onFocusStyle)==="ON_FOCUS_STYLE_BACKGROUND"&&(this.hostElement.classList.add("ytd-rich-item-renderer-highlight"),(a=this.getBackgroundColor())&&Object.assign(this.hostElement.style,{backgroundColor:a,boxShadow:"0 0 0 10px "+a}));var J,r;((J=this.data)==null?void 0:(r=J.onFocusEffect)==null?void 0:
r.onFocusStyle)==="ON_FOCUS_STYLE_BORDER"&&this.hostElement.classList.add("ytd-rich-item-renderer-highlight-border");this.highlighted=!0}};
_.Z.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};
_.Z.registerHoverHighlightListeners=function(){var a=this;this.hostElement.addEventListener("mouseover",this.hoverListener);this.hostElement.addEventListener("mouseleave",this.leaveListener);this.JSC$16038_unsubscribeFromInlinePreviewIsActive=_.QT(_.qo(),_.lOI,function(z){a.highlighted&&!z&&a.removeAndCleanupHighlight()})};
_.Z.removeHoverHighlightListeners=function(){this.hostElement.removeEventListener("mouseover",this.hoverListener);this.hostElement.removeEventListener("mouseleave",this.leaveListener);this.JSC$16038_unsubscribeFromInlinePreviewIsActive()};
_.Z.richGridHoverHighlightChanged=function(){this.richGridHoverHighlight?this.registerHoverHighlightListeners():this.removeHoverHighlightListeners()};
_.Z.detached=function(){this.richGridHoverHighlight&&this.removeHoverHighlightListeners()};
_.Z.getBackgroundColor=function(){var a,z,I=(a=this.data)==null?void 0:(z=a.onFocusEffect)==null?void 0:z.onFocusColor;if(I){if(document.documentElement.hasAttribute("dark")&&(I==null?0:I.darkTheme))return _.Da(I==null?void 0:I.darkTheme);if(I==null?0:I.lightTheme)return _.Da(I==null?void 0:I.lightTheme)}};
_.Z.onIndexUpdateAction=function(){this.updateIsInFirstColumn();if(this.hostElement.offsetParent!==null){var a=_.TX(),z,I,J;a&&((z=this.data)==null?0:z.trackingParams)&&((I=this.data)==null?void 0:I.colIndex)!=null&&((J=this.data)==null?void 0:J.rowIndex)!=null&&_.M$(a,_.VX(this.data.trackingParams),{gridData:{veColumnCoordinate:this.data.colIndex,veRowCoordinate:this.data.rowIndex}})}};
_.Z.isSlimMediaRenderer=function(a){return!!_.H(a==null?void 0:a.content,_.IfI)||!!_.H(a==null?void 0:a.content,zcv)||!!_.H(a==null?void 0:a.content,_.LQ)||!!_.H(a==null?void 0:a.content,bQE)};
_.Z.isPostRenderer=function(){var a,z;return!!_.H((a=this.data)==null?void 0:a.content,yTG)||!!_.H((z=this.data)==null?void 0:z.content,k2O)};
_.Z.computeIsGameCardShelf=function(){var a;return!!_.H((a=this.data)==null?void 0:a.content,JAO)};
_.Z.computeIsMiniGameCardShelf=function(){var a,z;return!!_.H((a=this.data)==null?void 0:a.content,s4l)||!!_.H((z=this.data)==null?void 0:z.content,nQO)};
_.Z.computeIsTeaserCard=function(){var a;return!!_.H((a=this.data)==null?void 0:a.content,nQO)};
_.Z.computeIsSelectableFeedbackItem=function(){var a,z;return!((z=_.H((a=this.data)==null?void 0:a.content,_.Fqv))==null||!z.selectableFeedback)};
_.Z.computeContainsLumierePosters=function(){var a,z;return((z=_.H((a=this.data)==null?void 0:a.content,JHf))==null?void 0:z.thumbnailDimensions)==="LUMIERE_SHELF_THUMBNAIL_DIMENSIONS_POSTER"};
_.Z.computeIsExpandOnHoverCardShelf=function(){var a;return!!_.H((a=this.data)==null?void 0:a.content,IoJ)};
_.Z.computeIsLinkCardShelf=function(){var a;return!!_.H((a=this.data)==null?void 0:a.content,$TJ)};
_.Z.computeIsReelItemStyleAvatarCircle=function(a){var z;return((z=_.H(a==null?void 0:a.content,_.LQ))==null?void 0:z.style)==="REEL_ITEM_STYLE_AVATAR_CIRCLE"};
_.Z.computeIsLinkCardFullWidth=function(a,z){var I;return((I=_.H(a==null?void 0:a.content,$TJ))==null?void 0:I.useFullWidth)||z<=2};
_.eH.Object.defineProperties(ox.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&&_.K("web_enable_typography_bump")}},
richGridHoverHighlight:{configurable:!0,enumerable:!0,get:function(){return _.K("web_enable_rich_item_on_focus_effect")||_.K("rich_grid_hover_highlight")&&!this.isShortsGrid&&!this.isCompactGrid}},
shortsLockupViewModelAspectRatio:{configurable:!0,enumerable:!0,get:function(){return 1}},
shortsLockupViewModelScrimStyle:{configurable:!0,enumerable:!0,get:function(){return this.isInlineGroupItem?4:3}}});
ox.prototype.richGridHoverHighlightChanged=ox.prototype.richGridHoverHighlightChanged;ox.prototype.observerContainerType=ox.prototype.observerContainerType;ox.prototype.updateIsInFirstColumn=ox.prototype.updateIsInFirstColumn;_.L([_.Q(_.pV),_.p("design:type",Object)],ox.prototype,"ytdReduxBehavior",void 0);_.L([_.Q(_.u4.YtRendererstamperBehavior),_.p("design:type",Object)],ox.prototype,"ytRendererstamperBehavior",void 0);
_.L([_.Q(_.Hc.YtActionHandlerBehavior),_.p("design:type",Object)],ox.prototype,"ytActionHandlerBehavior",void 0);_.L([_.Q(_.k.YtRendererBehavior),_.p("design:type",Object)],ox.prototype,"ytRendererBehavior",void 0);_.L([_.Q(_.eB),_.p("design:type",Object)],ox.prototype,"ytdLockupBehavior",void 0);_.L([_.x(),_.p("design:type",Object)],ox.prototype,"data",void 0);_.L([_.x({reflectToAttribute:!0,computed:"isPostRenderer(data)"}),_.p("design:type",Boolean)],ox.prototype,"isPost",void 0);
_.L([_.x({reflectToAttribute:!0,computed:"computeContainsLumierePosters(data)"}),_.p("design:type",Boolean)],ox.prototype,"containsLumierePosters",void 0);_.L([_.x({reflectToAttribute:!0,computed:"isSlimMediaRenderer(data)"}),_.p("design:type",Boolean)],ox.prototype,"isSlimMedia",void 0);_.L([_.x({reflectToAttribute:!0,computed:"computeIsGameCardShelf(data)"}),_.p("design:type",Boolean)],ox.prototype,"isGameCardShelf",void 0);
_.L([_.x({reflectToAttribute:!0,computed:"computeIsMiniGameCardShelf(data)"}),_.p("design:type",Boolean)],ox.prototype,"isMiniGameCardShelf",void 0);_.L([_.x({reflectToAttribute:!0,computed:"computeIsTeaserCard(data)"}),_.p("design:type",Boolean)],ox.prototype,"isTeaserCard",void 0);_.L([_.x({computed:"computeIsSelectableFeedbackItem(data)"}),_.p("design:type",Boolean)],ox.prototype,"isSelectableFeedbackItem",void 0);
_.L([_.x({reflectToAttribute:!0}),_.p("design:type",Object)],ox.prototype,"isShortsGrid",void 0);_.L([_.x({reflectToAttribute:!0}),_.p("design:type",Boolean)],ox.prototype,"isSlimGrid",void 0);_.L([_.x({reflectToAttribute:!0}),_.p("design:type",Object)],ox.prototype,"isCompactGrid",void 0);_.L([_.x({reflectToAttribute:!0}),_.p("design:type",Object)],ox.prototype,"isShortsPanelGrid",void 0);
_.L([_.x({reflectToAttribute:!0,computed:"computeIsExpandOnHoverCardShelf(data)"}),_.p("design:type",Boolean)],ox.prototype,"isExpandOnHoverCardShelf",void 0);_.L([_.x({reflectToAttribute:!0,computed:"computeIsLinkCardShelf(data)"}),_.p("design:type",Boolean)],ox.prototype,"isLinkCardShelf",void 0);_.L([_.x({reflectToAttribute:!0,selector:_.X4,value:3}),_.p("design:type",Number)],ox.prototype,"itemsPerRow",void 0);
_.L([_.x({reflectToAttribute:!0}),_.p("design:type",Object)],ox.prototype,"renderedFromRichGrid",void 0);_.L([_.x({reflectToAttribute:!0}),_.p("design:type",Object)],ox.prototype,"isInFirstColumn",void 0);_.L([_.x({reflectToAttribute:!0}),_.p("design:type",Object)],ox.prototype,"noGutterMargins",void 0);_.L([_.x({reflectToAttribute:!0}),_.p("design:type",Object)],ox.prototype,"isInlineGroupItem",void 0);_.L([_.x(),_.p("design:type",Object)],ox.prototype,"insetMetadata",void 0);
_.L([_.x(),_.p("design:type",Object)],ox.prototype,"noBottomMarginInAds",void 0);_.L([_.x({reflectToAttribute:!0}),_.p("design:type",Boolean)],ox.prototype,"isShelfItem",void 0);_.L([_.x({reflectToAttribute:!0,computed:"computeIsReelItemStyleAvatarCircle(data)"}),_.p("design:type",Boolean)],ox.prototype,"isReelItemStyleAvatarCircle",void 0);_.L([_.x({reflectToAttribute:!0,computed:"computeIsLinkCardFullWidth(data, itemsPerRow)"}),_.p("design:type",Boolean)],ox.prototype,"isLinkCardFullWidth",void 0);
_.L([_.x(),_.p("design:type",Object)],ox.prototype,"force16By9ThumbnailAspectRatio",void 0);_.L([_.x({reflectToAttribute:!0}),_.p("design:type",Object)],ox.prototype,"useCompactList",void 0);_.L([_.x(),_.p("design:type",String)],ox.prototype,"sizing",void 0);_.L([_.x({value:!1}),_.p("design:type",Boolean)],ox.prototype,"typographyBump",void 0);_.L([_.x(),_.p("design:type",Number)],ox.prototype,"itemWidth",void 0);_.L([_.x(),_.p("design:type",Boolean)],ox.prototype,"isHomeShelf",void 0);
_.L([_.x(),_.p("design:type",Boolean)],ox.prototype,"isHomeGrid",void 0);_.L([_.A3("yt-lockup-view-model"),_.p("design:type",HTMLElement)],ox.prototype,"lockup",void 0);_.L([_.A3("ytd-rich-grid-media"),_.p("design:type",HTMLElement)],ox.prototype,"richGridMedia",void 0);_.L([_.A3("ytd-ad-slot-renderer"),_.p("design:type",HTMLElement)],ox.prototype,"adSlotRenderer",void 0);_.L([_.x({computed:"computeContainerType(useCompactList)"}),_.p("design:type",Object)],ox.prototype,"containerType",void 0);
_.L([_.x({computed:"computeThumbnailTargetWidth(itemWidth)"}),_.p("design:type",Object)],ox.prototype,"thumbnailTargetWidth",void 0);_.L([_.S("showYtInteractionOnRichItem"),_.p("design:type",Boolean),_.p("design:paramtypes",[])],ox.prototype,"showYtInteractionOnRichGridMedia",null);_.L([_.S("isSelectableFeedbackItem","richGridHoverHighlight"),_.p("design:type",Boolean),_.p("design:paramtypes",[])],ox.prototype,"showYtInteractionOnRichItem",null);
_.L([_.S("typographyBump","isHomeGrid"),_.p("design:type",Boolean),_.p("design:paramtypes",[])],ox.prototype,"richTypographyBump",null);_.L([_.x({reflectToAttribute:!0}),_.S("isShortsGrid","isCompactGrid"),_.p("design:type",Boolean),_.p("design:paramtypes",[])],ox.prototype,"richGridHoverHighlight",null);_.L([_.S("isShortsPanelGrid","isHomeShelf","isInlineGroupItem"),_.p("design:type",Number),_.p("design:paramtypes",[])],ox.prototype,"shortsLockupViewModelAspectRatio",null);
_.L([_.S("isInlineGroupItem"),_.p("design:type",Number),_.p("design:paramtypes",[])],ox.prototype,"shortsLockupViewModelScrimStyle",null);_.L([_.O8("data"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],ox.prototype,"updateIsInFirstColumn",null);_.L([_.O8("containerType","sizing","typographyBump"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],ox.prototype,"observerContainerType",null);
_.L([_.x({reflectToAttribute:!0}),_.p("design:type",Object)],ox.prototype,"isResponsiveGrid",void 0);_.L([_.x(),_.p("design:type",Object)],ox.prototype,"lockupExperiments",void 0);_.L([_.O8("richGridHoverHighlight"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],ox.prototype,"richGridHoverHighlightChanged",null);_.L([_.U({is:"ytd-rich-item-renderer",disableElementRegistration:!0})],ox);
_.vyv=_.Cw()(ox,"ytd-rich-item-renderer",function(){if(frw===void 0){var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-rich-item-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="content" class="style-scope ytd-rich-item-renderer"></div>\n<yt-interaction id="interaction" class="extended rounded-large style-scope ytd-rich-item-renderer" hidden="[[!showYtInteractionOnRichItem]]"></yt-interaction>\n');
a.content.insertBefore(_.w().content.cloneNode(!0),a.content.firstChild);frw=a}a=frw;return a},{mode:_.Np("kevlar_poly_si_batch_j028")?1:2});var zdM={url:"https://www.gstatic.com/youtube/img/useredu/smart_downloads_optin_banner.gif"};var Om7=_.Mo(_.AR("DELETE_FROM_DOWNLOADS",{},"Delete from downloads"));var JkE={url:"https://www.gstatic.com/youtube/img/useredu/smart_downloads_optin_banner.svg"},PZ0={url:"https://www.gstatic.com/youtube/img/promos/growth/premium_lp2_small_feature_DownloadMultiple_light_phone_600x508.webp"},Zm0={url:"https://www.gstatic.com/youtube/img/promos/growth/premium_lp2_small_feature_DownloadMultiple_dark_phone_600x508.webp"};var Giv;var UC=function(){var a=_.G.apply(this,arguments)||this;a.useResponsiveGrid=!1;a.hidden=!1;a.isShowMoreHidden=!1;a.isExpanded=!1;a.isInnerShelf=!1;a.allVideosCount=0;a.allPlaylistCount=0;a.haveSmartDownloadsCompleted=!1;a.isShowLessHidden=!0;a.restrictContentsOverflow=!1;a.firstShownIndex=0;a.horizontalOffset=0;a.atEnd=!0;a.actionMap={"ytd-update-elements-per-row-action":"onUpdateElementsPerRowAction","yt-rich-grid-resize-observed":"resizeObserved","yt-section-reactive-dismissal":"onSectionReactiveDismissal"};
a.nextClick=function(){var z;(z=a.data)!=null&&z.contents&&(a.firstShownIndex+=a.currentElementsPerRow,a.updateHorizontalOffset(),a.updateHorizontalItemVisibility())};
a.previousClick=function(){var z;(z=a.data)!=null&&z.contents&&(a.firstShownIndex-=a.currentElementsPerRow,a.updateHorizontalOffset(),a.updateHorizontalItemVisibility())};
return a};
_.b(UC,_.G);_.Z=UC.prototype;
_.Z.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:_.Xw("HTML_DIR")===
"rtl"?"right":"left"}}}},dismissedRenderer:{id:"dismissed",mapping:{notificationMultiActionRenderer:{component:"ytd-notification-multi-action-renderer",params:{shelfDismissal:!0}}}}}};
_.Z.attached=function(){this.requestElementsPerRow()};
_.Z.refreshGridLayoutNew=function(){var a;if((a=this.data)!=null&&a.contents&&this.containerWidth){var z;((z=this.data.responsiveContainerConfiguration)==null?0:z.responsiveSize)?(a=_.s8$(this.data.responsiveContainerConfiguration,this.containerWidth),a=_.mY(Object.assign({},a,{standardUnitMinWidth:this.standardUnitMinWidth}))):a=_.mY({containerWidth:this.containerWidth,sizing:this.sizing,marginSettings:2,standardUnitMinWidth:this.standardUnitMinWidth});this.typographyBump=a.typographyBump;if(this.elementsPerRow!==
a.numItems||this.gutter!==a.gutter)this.elementsPerRow=a.numItems,this.gutter=a.gutter,this.itemWidth=a.itemWidth,_.uK(this.hostElement,{"--ytd-rich-grid-items-per-row":""+this.elementsPerRow,"--ytd-rich-grid-item-margin":a.gutter+"px"})}};
_.Z.computeSizing=function(){if(!this.isLumiere){var a=_.l7$(this.data);if(a)return a;if(_.K("web_use_layout_library_for_rich_grid"))return this.isGameCardShelf()||this.isMiniGameCardShelf()||this.isSlimMediaShelfRenderer()||this.isLumiereShelfWithPosters()||this.isShortsShelf()?"EXTRA_COMPACT":"STANDARD"}};
_.Z.computeUseResponsiveGrid=function(){return!this.isLumiere&&this.sizing};
_.Z.computeButton=function(a){var z=_.H(a,_.lc);a=Object.assign({},_.H(a,_.lc));return z?(a.text||(a.text={simpleText:a.tooltip}),a.style="STYLE_MONO_OUTLINE",a.iconPosition="BUTTON_ICON_POSITION_TYPE_RIGHT_OF_TEXT",a):z};
_.Z.onRowIndexChange=function(){var a=_.TX(),z,I;((z=this.data)==null?0:z.trackingParams)&&((I=this.data)==null?void 0:I.rowIndex)!=null&&a&&_.M$(a,_.VX(this.data.trackingParams),{gridData:{veRowCoordinate:this.data.rowIndex}})};
_.Z.resizeObserved=function(){if(this.hasChevronButtons&&this.horizontalOffset!==0){var a,z=((a=this.getRichItemRenderers()[0])==null?void 0:a.clientWidth)+this.gutter;this.horizontalOffset=this.firstShownIndex*z;this.updateHorizontalItemVisibility()}else this.contents.style.transform="translateX(0px)"};
_.Z.requestElementsPerRow=function(){_.PA(this.hostElement,"yt-request-elements-per-row")};
_.Z.onUpdateElementsPerRowAction=function(a,z,I,J,r,P){if(this.containerWidth!==P&&(this.containerWidth=P,this.useResponsiveGrid)){this.refreshGridLayoutNew();this.updateItemVisibility();return}!this.useResponsiveGrid&&a&&z&&I&&J&&r&&(this.elementsPerRow!==a||this.postsPerRow!==z||this.slimItemsPerRow!==I||this.gameCardsPerRow!==J||this.miniGameCardsPerRow!==r)&&(this.elementsPerRow=a,this.postsPerRow=z,this.slimItemsPerRow=I,this.gameCardsPerRow=J,this.miniGameCardsPerRow=r,this.updateItemVisibility())};
_.Z.getRichItemRenderers=function(){return _.PK(this.hostElement).querySelectorAll("ytd-rich-item-renderer")};
_.Z.updateItemVisibility=function(){var a=this;if(this.data&&this.data.contents){var z=this.data.contents.length;if(this.hasChevronButtons)this.updateArrowButtonStatus();else{this.getRichItemRenderers().forEach(function(J,r){var P;((P=a.data)==null?0:P.isExpanded)?(J.hidden=r>z-1,J.ytRendererBehavior.markDirty()):J.hidden=r>a.currentElementsPerRow-1||r>z-1});
var I=this.data.contents.length<=this.currentElementsPerRow;this.isExpanded=!!this.data.isExpanded;this.isShowMoreHidden=!this.data.showMoreButton||I||!!this.data.isExpanded||this.isTruncated;this.isShowLessHidden=!this.data.showLessButton||I||!this.data.isExpanded||this.isTruncated}this.contents.style.visibility="visible"}};
_.Z.setHeightToSingleRow=function(){var a=this.getRichItemRenderers(),z=Number.parseInt(getComputedStyle(a[0]).marginBottom,10)||0;a=a.slice(0,this.currentElementsPerRow).reduce(function(I,J){return Math.max(I,J.getBoundingClientRect().height+z)},0);
this.contents.style.height=a+"px"};
_.Z.focusNextExpandedItem=function(){var a;((a=this.data)==null?0:a.isExpanded)&&this.focusItem(this.currentElementsPerRow,!0)};
_.Z.focusItem=function(a,z){var I=this.getRichItemRenderers();if(I[a]&&(a=I[a].querySelector(".focus-on-expand"))){if(z){var J;(J=I[this.currentElementsPerRow])==null||J.scrollIntoView({behavior:"smooth",block:"center"})}a.focus({preventScroll:!0})}};
_.Z.onDataChange=function(){var a=this;this.useResponsiveGrid&&this.containerWidth&&this.refreshGridLayoutNew();var z;if((z=this.data)==null?0:z.isExpanded)this.firstShownIndex=0,this.updateHorizontalOffset(),this.updateHorizontalItemVisibility();_.Yv(this,function(){a.updateItemVisibility()});
var I;if((I=this.data)==null?0:I.contents)for(this.restrictContentsOverflow=!this.isExpandOnHoverCardShelf(),_.uK(this.hostElement,{"--ytd-rich-shelf-items-count":""+this.data.contents.length}),z=0;z<this.data.contents.length;z++)I=_.H(this.data.contents[z],_.Xu)||{},I.colIndex=z,I.rowIndex=this.data.rowIndex};
_.Z.handleRerenderDownloadsData=function(){_.K("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())};
_.Z.blockInlinePreview=function(a){var z=this,I;return _.t(function(J){(I=z.inlinePreviewIsEnabled)&&z.ytdReduxBehavior.dispatch(_.O0o(!1));return J.return(new Promise(function(r){a(function(){I&&z.ytdReduxBehavior.dispatch(_.O0o(!0));r()})}))})};
_.Z.expandShelf=function(){var a=this;if(this.data){var z,I=(z=_.H(this.data.showMoreButton,_.lc))==null?void 0:z.trackingParams;I&&_.KJ(_.Kw(),I);this.data.isExpanded=!0;this.blockInlinePreview(function(J){a.setHeightToSingleRow();a.updateItemVisibility();a.contents.style.height=a.contents.scrollHeight+"px";_.GW.addJob(function(){a.contents.style.height="auto";a.focusNextExpandedItem();J()},2,200)})}};
_.Z.collapseShelf=function(){var a=this;return _.t(function(z){if(z.nextAddress==1){if(!a.data)return z.return();a.data.isExpanded=!1;return z.yield(a.blockInlinePreview(function(I){a.contents.style.height=a.contents.scrollHeight+"px";a.setHeightToSingleRow();_.GW.addJob(function(){a.updateItemVisibility();a.contents.style.height="auto";I()},2,200)}),2)}_.PA(a.hostElement,"yt-rich-shelf-renderer-collapse",a.data.trackingParams);
a.focusItem(0,!1);_.nu(z)})};
_.Z.updateArrowButtonStatus=function(){var a=this.getRichItemRenderers().length;if(!_.K("web_rich_shelf_renderer_use_data_contents_killswitch")){var z,I;a=((z=this.data)==null?void 0:(I=z.contents)==null?void 0:I.length)||0}this.atEnd=this.firstShownIndex+this.currentElementsPerRow>=a};
_.Z.onChildElementFocus=function(a){this.hasChevronButtons&&(a=a.target.closest("#contents > *"),this.contents.contains(a)&&(a.offsetLeft<this.horizontalOffset?this.previousClick():a.offsetLeft+a.clientWidth>this.horizontalOffset+this.contents.clientWidth&&(this.contents.parentElement&&(this.contents.parentElement.scrollLeft=0),this.nextClick())))};
_.Z.updateHorizontalItemVisibility=function(){this.updateArrowButtonStatus();this.contents.style.transform="translateX("+(_.Xw("HTML_DIR")==="rtl"?"":"-")+this.horizontalOffset+"px)"};
_.Z.updateHorizontalOffset=function(){var a=this.getRichItemRenderers(),z=a.length;if(!_.K("web_rich_shelf_renderer_use_data_contents_killswitch")){var I,J;z=((I=this.data)==null?void 0:(J=I.contents)==null?void 0:J.length)||0}var r;a=((r=a[0])==null?void 0:r.clientWidth)+this.gutter;this.firstShownIndex+this.currentElementsPerRow>z?this.firstShownIndex=z-this.currentElementsPerRow:this.firstShownIndex<0&&(this.firstShownIndex=0);this.horizontalOffset=this.firstShownIndex*a};
_.Z.isSlimMediaShelfRenderer=function(){var a,z,I,J=(I=_.H((a=this.data)==null?void 0:(z=a.contents)==null?void 0:z[0],_.Xu))==null?void 0:I.content;return!!(_.H(J,_.IfI)||_.H(J,zcv)||_.H(J,_.LQ)||_.H(J,bQE))};
_.Z.isGameCardShelf=function(){var a,z,I,J=(I=_.H((a=this.data)==null?void 0:(z=a.contents)==null?void 0:z[0],_.Xu))==null?void 0:I.content;return!!_.H(J,JAO)};
_.Z.isGnomeShelf=function(){var a,z,I,J=(I=_.H((a=this.data)==null?void 0:(z=a.contents)==null?void 0:z[0],_.Xu))==null?void 0:I.content;return!!_.H(J,_.Fqv)};
_.Z.isMiniGameCardShelf=function(){var a,z,I,J=(I=_.H((a=this.data)==null?void 0:(z=a.contents)==null?void 0:z[0],_.Xu))==null?void 0:I.content;return!!_.H(J,s4l)||!!_.H(J,nQO)};
_.Z.hasGameBoxArtAvatarStyle=function(){var a;return((a=this.data)==null?void 0:a.thumbnailStyle)==="CHANNEL_THUMBNAIL_STYLE_BOXART"};
_.Z.hasRoundedGameBoxArtAvatarStyle=function(){var a;return((a=this.data)==null?void 0:a.thumbnailStyle)==="CHANNEL_THUMBNAIL_STYLE_BOXART_ROUNDED"};
_.Z.isShortsShelf=function(){var a,z,I,J=(I=_.H((a=this.data)==null?void 0:(z=a.contents)==null?void 0:z[0],_.Xu))==null?void 0:I.content;return!!_.H(J,_.LQ)||!!_.H(J,bQE)};
_.Z.isPostShelfRenderer=function(){var a,z,I,J=(I=_.H((a=this.data)==null?void 0:(z=a.contents)==null?void 0:z[0],_.Xu))==null?void 0:I.content;return!(!_.H(J,yTG)&&!_.H(J,k2O))};
_.Z.isLumiereShelf=function(){var a,z,I=_.H((a=this.data)==null?void 0:(z=a.contents)==null?void 0:z[0],_.Xu);return!!_.H(I==null?void 0:I.content,JHf)};
_.Z.isLumiereShelfWithPosters=function(){var a,z,I=_.H((a=this.data)==null?void 0:(z=a.contents)==null?void 0:z[0],_.Xu),J;return((J=_.H(I==null?void 0:I.content,JHf))==null?void 0:J.thumbnailDimensions)==="LUMIERE_SHELF_THUMBNAIL_DIMENSIONS_POSTER"};
_.Z.isExpandOnHoverCardShelf=function(){var a,z,I,J=(I=_.H((a=this.data)==null?void 0:(z=a.contents)==null?void 0:z[0],_.Xu))==null?void 0:I.content;return!!_.H(J,IoJ)};
_.Z.computeHasFeaturedBadge=function(){var a,z,I=_.H((a=this.data)==null?void 0:(z=a.badges)==null?void 0:z[0],_.HRf);return I?I.style!=="BADGE_STYLE_TYPE_SIMPLE":!1};
_.Z.computeHasPaygatedFeaturedBadge=function(){var a,z,I=_.H((a=this.data)==null?void 0:(z=a.badges)==null?void 0:z[0],_.HRf);return I?(I==null?void 0:I.style)==="BADGE_STYLE_TYPE_SIMPLE":!1};
_.Z.computeHeaderHidden=function(){var a,z,I,J,r,P;return!((a=this.data)==null?0:a.icon)&&!((z=this.data)==null?0:z.title)&&!((I=this.data)==null?0:I.subtitle)&&!((J=this.data)==null?0:J.thumbnail)&&!((r=this.data)==null?0:r.badges)&&!((P=this.data)==null?0:P.menu)};
_.Z.showCtaButton=function(){var a;return!((a=this.data)==null||!a.ctaButton)&&!this.isPostShelfRenderer()&&!this.isGameCardShelf()&&!this.isMiniGameCardShelf()};
_.Z.showTopCtaButton=function(){return this.showCtaButton()?this.isSlimMediaShelfRenderer()?this.slimItemsPerRow>=4:this.elementsPerRow>=3:!1};
_.Z.showBottomCtaButton=function(){return this.showCtaButton()?!this.showTopCtaButton():!1};
_.Z.computeForce16By9ThumbnailAspectRatio=function(){var a,z;return((a=this.data)==null?void 0:(z=a.responsiveContainerConfiguration)==null?void 0:z.enableContentSpecificAspectRatio)!==void 0?!this.data.responsiveContainerConfiguration.enableContentSpecificAspectRatio:!1};
_.Z.onSectionReactiveDismissal=function(a,z,I){var J,r;var P=(J=this.data)==null?void 0:(r=J.targetingContext)==null?void 0:r.targetGroupId;this&&P&&z.targetGroupId&&P.includes(z.targetGroupId)?(J=this.rowIndex,a=J===void 0?!1:!(z.behavior==="GROUP_DISMISSAL_BEHAVIOR_REMOVE_SUBSEQUENT_ITEMS"&&J<=a)):a=!1;a&&(this.hidden=I)};
_.eH.Object.defineProperties(UC.prototype,{currentElementsPerRow:{configurable:!0,enumerable:!0,get:function(){if(this.useResponsiveGrid)return this.elementsPerRow;var a=this.elementsPerRow;this.isPostShelfRenderer()?a=this.postsPerRow:this.isSlimMediaShelfRenderer()?a=this.slimItemsPerRow:this.isLumiereShelfWithPosters()?a=this.slimItemsPerRow-1:this.isGameCardShelf()?a=this.gameCardsPerRow:this.isMiniGameCardShelf()&&(a=this.miniGameCardsPerRow);return a}},
isTruncated:{configurable:!0,enumerable:!0,get:function(){return this.isShortsShelf()&&_.K("kevlar_clean_feeds_show_more")&&this.isHomePage}},
showBottomDivider:{configurable:!0,enumerable:!0,get:function(){var a;return!((a=this.data)==null?0:a.isBottomDividerHidden)}},
hasChevronButtons:{configurable:!0,enumerable:!0,get:function(){var a,z;return!((a=this.data)==null||!a.previousButton)&&!((z=this.data)==null||!z.nextButton)}},
previousButtonOverride:{configurable:!0,enumerable:!0,get:function(){return{disabled:this.firstShownIndex===0,ariaHidden:!0,tabIndex:-1}}},
nextButtonOverride:{configurable:!0,enumerable:!0,get:function(){return{disabled:this.atEnd,ariaHidden:!0,tabIndex:-1}}},
isHomePage:{configurable:!0,enumerable:!0,get:function(){var a;return((a=_.ab().resolve(_.aK).getCurrentPage())==null?void 0:a.pageSubtype)==="home"}},
thumbnailAriaHidden:{configurable:!0,enumerable:!0,get:function(){var a,z,I,J;return!((a=this.data)==null?0:(z=a.thumbnail)==null?0:(I=z.accessibility)==null?0:(J=I.accessibilityData)==null?0:J.label)}},
initiallyIsExpanded:{configurable:!0,enumerable:!0,get:function(){var a;return!((a=this.data)==null||!a.isExpanded)}},
entitySelectorType:{configurable:!0,enumerable:!0,get:function(){var a;return((a=this.data)==null?void 0:a.entitySelectorType)||"RICH_SHELF_ENTITY_SELECTOR_TYPE_UNSPECIFIED"}},
rowIndex:{configurable:!0,enumerable:!0,get:function(){return this.data.rowIndex}}});
UC.prototype.onChildElementFocus=UC.prototype.onChildElementFocus;UC.prototype.handleRerenderDownloadsData=UC.prototype.handleRerenderDownloadsData;UC.prototype.onDataChange=UC.prototype.onDataChange;UC.prototype.onRowIndexChange=UC.prototype.onRowIndexChange;_.L([_.Q(_.u4.YtRendererstamperBehavior),_.p("design:type",Object)],UC.prototype,"ytRendererstamperBehavior",void 0);_.L([_.Q(_.k.YtRendererBehavior),_.p("design:type",Object)],UC.prototype,"ytRendererBehavior",void 0);
_.L([_.Q(_.mD),_.p("design:type",Object)],UC.prototype,"ytdDismissibleItemBehavior",void 0);_.L([_.Q(_.Hc.YtActionHandlerBehavior),_.p("design:type",Object)],UC.prototype,"actionHandlerBehavior",void 0);_.L([_.Q(_.pV),_.p("design:type",Object)],UC.prototype,"ytdReduxBehavior",void 0);_.L([_.x({computed:"computeUseResponsiveGrid(isLumiere, sizing)"}),_.p("design:type",Object)],UC.prototype,"useResponsiveGrid",void 0);_.L([_.x(),_.p("design:type",Object)],UC.prototype,"data",void 0);
_.L([_.x(),_.p("design:type",Number)],UC.prototype,"standardUnitMinWidth",void 0);_.L([_.x({reflectToAttribute:!0,value:3}),_.p("design:type",Number)],UC.prototype,"elementsPerRow",void 0);_.L([_.x({value:3}),_.p("design:type",Number)],UC.prototype,"postsPerRow",void 0);_.L([_.x({value:6}),_.p("design:type",Number)],UC.prototype,"slimItemsPerRow",void 0);_.L([_.x({value:6}),_.p("design:type",Number)],UC.prototype,"gameCardsPerRow",void 0);
_.L([_.x({value:6}),_.p("design:type",Number)],UC.prototype,"miniGameCardsPerRow",void 0);_.L([_.x({reflectToAttribute:!0}),_.p("design:type",Object)],UC.prototype,"hidden",void 0);_.L([_.x({reflectToAttribute:!0}),_.p("design:type",Object)],UC.prototype,"isShowMoreHidden",void 0);_.L([_.x({reflectToAttribute:!0}),_.p("design:type",Object)],UC.prototype,"isExpanded",void 0);_.L([_.x({reflectToAttribute:!0}),_.p("design:type",Object)],UC.prototype,"isInnerShelf",void 0);
_.L([_.x({reflectToAttribute:!0,computed:"isShortsShelf(data)"}),_.p("design:type",Boolean)],UC.prototype,"isShorts",void 0);_.L([_.x({reflectToAttribute:!0,computed:"isLumiereShelf(data)"}),_.p("design:type",Boolean)],UC.prototype,"isLumiere",void 0);_.L([_.x({reflectToAttribute:!0,computed:"hasGameBoxArtAvatarStyle(data)"}),_.p("design:type",Boolean)],UC.prototype,"hasBoxArtThumbnailStyle",void 0);
_.L([_.x({reflectToAttribute:!0,computed:"hasRoundedGameBoxArtAvatarStyle(data)"}),_.p("design:type",Boolean)],UC.prototype,"hasRoundedBoxArtThumbnailStyle",void 0);_.L([_.x({reflectToAttribute:!0,computed:"computeHasFeaturedBadge(data)"}),_.p("design:type",Boolean)],UC.prototype,"hasFeaturedBadge",void 0);_.L([_.x({reflectToAttribute:!0,computed:"computeHasPaygatedFeaturedBadge(data)"}),_.p("design:type",Boolean)],UC.prototype,"hasPaygatedFeaturedBadge",void 0);
_.L([_.x({reflectToAttribute:!0,computed:"computeHeaderHidden(data)"}),_.p("design:type",Boolean)],UC.prototype,"isHeaderHidden",void 0);_.L([_.x({selector:_.MKx}),_.p("design:type",Object)],UC.prototype,"allVideosCount",void 0);_.L([_.x({selector:AkI}),_.p("design:type",Object)],UC.prototype,"allPlaylistCount",void 0);_.L([_.x({selector:rK$}),_.p("design:type",Object)],UC.prototype,"haveSmartDownloadsCompleted",void 0);
_.L([_.x({selectorArgs:["entitySelectorType"],selector:function(a,z){if(_.K("kevlar_modern_downloads_page")&&z&&z!=="RICH_SHELF_ENTITY_SELECTOR_TYPE_UNSPECIFIED"){var I=a.entities;switch(z){case "RICH_SHELF_ENTITY_SELECTOR_TYPE_DOWNLOADS_PAGE_SMART_DOWNLOADS":z=_.xp(I);a=Kc(z);var J=_.b8(z);I=_.Gg(I);I=_.zg(Nb3(J,I,z.length));return{contents:a,subtitle:I};case "RICH_SHELF_ENTITY_SELECTOR_TYPE_SMART_DOWNLOADS_PAGE":return I=_.xp(I),{contents:Kc(I)};case "RICH_SHELF_ENTITY_SELECTOR_TYPE_DOWNLOADS_PAGE_MANUAL_DOWNLOADS":return I=
_.vd(I),{contents:Kc(I)};case "RICH_SHELF_ENTITY_SELECTOR_TYPE_OFFLINE_HOME_PAGE":return I=_.VK$(I),{contents:Kc(I)};default:_.Xd(new _.Fn("Error: entitySelectorType defined but not matched in selector.",a,z))}}}}),
_.p("design:type",Object)],UC.prototype,"entityDrivenRichShelfData",void 0);_.L([_.x({reflectToAttribute:!0,computed:"showTopCtaButton(data, elementsPerRow, slimItemsPerRow)"}),_.p("design:type",Boolean)],UC.prototype,"hasTopCtaButton",void 0);_.L([_.x({reflectToAttribute:!0,computed:"showBottomCtaButton(data, elementsPerRow, slimItemsPerRow)"}),_.p("design:type",Boolean)],UC.prototype,"hasBottomCtaButton",void 0);
_.L([_.x({reflectToAttribute:!0,computed:"computeForce16By9ThumbnailAspectRatio(data)"}),_.p("design:type",Boolean)],UC.prototype,"force16By9ThumbnailAspectRatio",void 0);_.L([_.x({reflectToAttribute:!0}),_.p("design:type",Object)],UC.prototype,"isShowLessHidden",void 0);_.L([_.x({reflectToAttribute:!0}),_.p("design:type",Object)],UC.prototype,"restrictContentsOverflow",void 0);_.L([_.x({selector:_.pSd}),_.p("design:type",Boolean)],UC.prototype,"inlinePreviewIsEnabled",void 0);
_.L([_.x({computed:"computeSizing(data)"}),_.p("design:type",String)],UC.prototype,"sizing",void 0);_.L([_.x(),_.p("design:type",Boolean)],UC.prototype,"typographyBump",void 0);_.L([_.x(),_.p("design:type",Number)],UC.prototype,"itemWidth",void 0);_.L([_.x(),_.p("design:type",Object)],UC.prototype,"firstShownIndex",void 0);_.L([_.x(),_.p("design:type",Object)],UC.prototype,"horizontalOffset",void 0);_.L([_.x(),_.p("design:type",Object)],UC.prototype,"atEnd",void 0);
_.L([_.A3("#contents"),_.p("design:type",HTMLElement)],UC.prototype,"contents",void 0);_.L([_.O8("data.rowIndex"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],UC.prototype,"onRowIndexChange",null);_.L([_.O8("data"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],UC.prototype,"onDataChange",null);
_.L([_.O8("allVideosCount","allPlaylistsCount","haveSmartDownloadsCompleted"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],UC.prototype,"handleRerenderDownloadsData",null);_.L([_.gz("focusin"),_.p("design:type",Function),_.p("design:paramtypes",[Event]),_.p("design:returntype")],UC.prototype,"onChildElementFocus",null);_.L([_.x({reflectToAttribute:!0}),_.S("data","isHomePage"),_.p("design:type",Boolean),_.p("design:paramtypes",[])],UC.prototype,"isTruncated",null);
_.L([_.x({reflectToAttribute:!0}),_.S("data"),_.p("design:type",Boolean),_.p("design:paramtypes",[])],UC.prototype,"showBottomDivider",null);_.L([_.x({reflectToAttribute:!0}),_.S("data"),_.p("design:type",Object),_.p("design:paramtypes",[])],UC.prototype,"hasChevronButtons",null);_.L([_.S("firstShownIndex"),_.p("design:type",Object),_.p("design:paramtypes",[])],UC.prototype,"previousButtonOverride",null);
_.L([_.S("atEnd"),_.p("design:type",Object),_.p("design:paramtypes",[])],UC.prototype,"nextButtonOverride",null);_.L([_.S("data"),_.p("design:type",Boolean),_.p("design:paramtypes",[])],UC.prototype,"isHomePage",null);_.L([_.S("data"),_.p("design:type",Boolean),_.p("design:paramtypes",[])],UC.prototype,"thumbnailAriaHidden",null);_.L([_.x({reflectToAttribute:!0}),_.S("data"),_.p("design:type",Boolean),_.p("design:paramtypes",[])],UC.prototype,"initiallyIsExpanded",null);
_.L([_.S("data"),_.p("design:type",String),_.p("design:paramtypes",[])],UC.prototype,"entitySelectorType",null);_.L([_.U({is:"ytd-rich-shelf-renderer",disableElementRegistration:!0})],UC);
_.$61=_.Cw()(UC,"ytd-rich-shelf-renderer",function(){if(Giv===void 0){var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-rich-shelf-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="dismissible" class="style-scope ytd-rich-shelf-renderer">\n  <div id="rich-shelf-header-container" class="style-scope ytd-rich-shelf-renderer">\n    <div id="rich-shelf-header" class="style-scope ytd-rich-shelf-renderer">\n      <h2 class="style-scope ytd-rich-shelf-renderer">\n        <template is="dom-if" if="[[!data.endpoint]]" class="style-scope ytd-rich-shelf-renderer">\n          <yt-icon id="icon" disable-upgrade$="[[!data.icon.iconType]]" hidden="[[!data.icon.iconType]]" icon="[[data.icon.iconType]]" class="style-scope ytd-rich-shelf-renderer">\n          </yt-icon>\n          <yt-img-shadow id="avatar" hidden="[[!data.thumbnail]]" thumbnail="[[data.thumbnail]]" class="style-scope ytd-rich-shelf-renderer">\n          </yt-img-shadow>\n          <div id="title-container" class="style-scope ytd-rich-shelf-renderer">\n            <div id="title-text" class="style-scope ytd-rich-shelf-renderer">\n              <span id="title" class="style-scope ytd-rich-shelf-renderer">[[getSimpleString(data.title)]]</span>\n              <ytd-badge-supported-renderer id="featured-badge" badges="[[data.badges]]" hidden="[[!hasFeaturedBadge]]" class="style-scope ytd-rich-shelf-renderer">\n              </ytd-badge-supported-renderer>\n            </div>\n            <div id="subtitle-text" class="style-scope ytd-rich-shelf-renderer">\n              <ytd-badge-supported-renderer id="paygated-featured-badge" badges="[[data.badges]]" hidden="[[!hasPaygatedFeaturedBadge]]" class="style-scope ytd-rich-shelf-renderer">\n              </ytd-badge-supported-renderer>\n              <yt-formatted-string id="subtitle" text="[[data.subtitle]]" class="style-scope ytd-rich-shelf-renderer"> </yt-formatted-string>\n            </div>\n          </div>\n        </template>\n        <template is="dom-if" if="[[data.endpoint]]" class="style-scope ytd-rich-shelf-renderer">\n          <div id="image-container" class="style-scope ytd-rich-shelf-renderer">\n            <a class="yt-simple-endpoint style-scope ytd-rich-shelf-renderer" aria-hidden="[[thumbnailAriaHidden]]" href$="[[computeHref_(data.endpoint)]]" data="[[data.endpoint]]" tabindex="-1" title="[[getSimpleString(data.title)]]">\n              <yt-img-shadow id="avatar" hidden="[[!data.thumbnail]]" thumbnail="[[data.thumbnail]]" class="style-scope ytd-rich-shelf-renderer">\n              </yt-img-shadow>\n            </a>\n            <div id="title-container" class="style-scope ytd-rich-shelf-renderer">\n              <div id="title-text" class="style-scope ytd-rich-shelf-renderer">\n                <a class="yt-simple-endpoint style-scope ytd-rich-shelf-renderer" href$="[[computeHref_(data.endpoint)]]" data="[[data.endpoint]]">\n                  <span id="title" class="style-scope ytd-rich-shelf-renderer">[[getSimpleString(data.title)]]</span>\n                </a>\n                <ytd-badge-supported-renderer id="featured-badge" badges="[[data.badges]]" hidden="[[!hasFeaturedBadge]]" class="style-scope ytd-rich-shelf-renderer">\n                </ytd-badge-supported-renderer>\n              </div>\n              <div id="subtitle-text" class="style-scope ytd-rich-shelf-renderer">\n                <ytd-badge-supported-renderer id="paygated-featured-badge" badges="[[data.badges]]" hidden="[[!hasPaygatedFeaturedBadge]]" class="style-scope ytd-rich-shelf-renderer">\n                </ytd-badge-supported-renderer>\n                <yt-formatted-string id="subtitle" text="[[data.subtitle]]" class="style-scope ytd-rich-shelf-renderer"> </yt-formatted-string>\n              </div>\n            </div>\n          </div>\n        </template>\n      </h2>\n      <div id="menu-container" class="style-scope ytd-rich-shelf-renderer">\n        <div class="cta-button-container style-scope ytd-rich-shelf-renderer" hidden="[[!hasTopCtaButton]]">\n          <ytd-button-renderer class="cta-button style-scope ytd-rich-shelf-renderer" data="[[data.ctaButton.buttonRenderer]]">\n          </ytd-button-renderer>\n        </div>\n        <div id="menu" hidden="[[isDismissedButtonHidden]]" class="style-scope ytd-rich-shelf-renderer"></div>\n        <yt-button-view-model id="previous-button" button-overrides="[[previousButtonOverride]]" data="[[data.previousButton.buttonViewModel]]" scoping-class-name="[[is]]" on-click="previousClick" class="style-scope ytd-rich-shelf-renderer">\n        </yt-button-view-model>\n        <yt-button-view-model id="next-button" button-overrides="[[nextButtonOverride]]" data="[[data.nextButton.buttonViewModel]]" scoping-class-name="[[is]]" on-click="nextClick" class="style-scope ytd-rich-shelf-renderer">\n      </yt-button-view-model>\n      </div>\n    </div>\n    <div id="cta-bottom-button-container" hidden="[[!hasBottomCtaButton]]" class="style-scope ytd-rich-shelf-renderer">\n      <ytd-button-renderer class="cta-button style-scope ytd-rich-shelf-renderer" data="[[data.ctaButton.buttonRenderer]]">\n      </ytd-button-renderer>\n    </div>\n  </div>\n  <div id="contents-container" class="style-scope ytd-rich-shelf-renderer">\n    <div id="contents" class="style-scope ytd-rich-shelf-renderer"></div>\n  </div>\n  <div class="button-container style-scope ytd-rich-shelf-renderer" hidden="[[isShowMoreHidden]]">\n    <ytd-button-renderer class="expand-collapse-button style-scope ytd-rich-shelf-renderer" data="[[computeButton(data.showMoreButton)]]" on-click="expandShelf">\n    </ytd-button-renderer>\n  </div>\n  <div class="button-container style-scope ytd-rich-shelf-renderer" hidden="[[isShowLessHidden]]">\n    <ytd-button-renderer class="expand-collapse-button style-scope ytd-rich-shelf-renderer" data="[[computeButton(data.showLessButton)]]" on-click="collapseShelf">\n    </ytd-button-renderer>\n  </div>\n</div>\n<div id="dismissed" class="style-scope ytd-rich-shelf-renderer"></div>\n');a.content.insertBefore(_.w().content.cloneNode(!0),
a.content.firstChild);Giv=a}a=Giv;return a},{allowedProps:["data",
"isInnerShelf","standardUnitMinWidth"],mode:_.Np("kevlar_poly_si_batch_j028")?1:2});var XoJ;_.Jf(_.N8,"yt-badge-view-model",{props:{data:_.zl,class:_.zl,workaroundShortsIsThumbnailBadge:_.zl,modern:_.zl}});_.Jf(u2e,"yt-slimline-survey-view-model",{props:{data:_.zl}});var Dh=function(){var a=_.G.apply(this,arguments)||this;a.tileLottieAnimationRef={};a.backgroundLottieAnimationRef={};a.isOnHoverBehaviorForLottieEnabled=!0;a.useBiggerShowcaseImage=_.K("enable_desktop_search_bigger_thumbs");a.actionMap={"ytd-update-elements-per-row-action":"onUpdateElementsPerRowAction","yt-dark-mode-toggled-action":"onDarkModeToggledAction","yt-open-video-preview-action":"pauseLottie"};return a};
_.b(Dh,_.G);_.Z=Dh.prototype;_.Z.attached=function(){this.requestElementsPerRow();this.isDarkTheme=!!document.documentElement.hasAttribute("dark");this.data&&(this.currentColorData=this.isDarkTheme?this.data.darkColorData:this.data.lightColorData)};
_.Z.configureRendererStamper=function(){return{primaryButton:{id:"primary-button",mapping:{buttonRenderer:"ytd-button-renderer",toggleButtonRenderer:"ytd-toggle-button-renderer",buttonViewModel:{component:"yt-button-view-model",properties:{scopingClassName:"[[is]]"}}},reuseComponents:!0},secondaryButton:{id:"secondary-button",mapping:{buttonRenderer:"ytd-button-renderer",toggleButtonRenderer:"ytd-toggle-button-renderer"},reuseComponents:!0},"data.overflowButton":{id:"overflow-button",mapping:{menuRenderer:"ytd-menu-renderer"}},
"data.badge":{id:"badge-view-model",mapping:{badgeViewModel:{component:"yt-badge-view-model",params:{modern:!0}}}},"data.additionalBadge":{id:"additional-badge-view-model",mapping:{badgeViewModel:{component:"yt-badge-view-model",params:{modern:!0}}}},"data.dismissButton":{id:"dismiss-button",mapping:{buttonRenderer:"ytd-button-renderer"}},dismissedRenderer:{id:"dismissed",mapping:{notificationTextRenderer:"ytd-notification-text-renderer",notificationMultiActionRenderer:"ytd-notification-multi-action-renderer"}},
"data.attachedSurvey":{id:"attached-survey",mapping:{slimlineSurveyViewModel:"yt-slimline-survey-view-model"}}}};
_.Z.dataChanged=function(){if(this.data){this.requestElementsPerRow();this.updateButtonPalette();var a=this.hasStaticTile(this.data)||this.hasTileLottie(this.data);a!==this.hasTile&&this.set("hasTile",a);a=this.hasLogo(this.data)||!!this.data.badgeText;a!==this.hasMetadata&&this.set("hasMetadata",a);a=this.data.overflowButton?!1:a;a!==this.showLogoImage&&this.set("showLogoImage",a);this.currentColorData=this.isDarkTheme?this.data.darkColorData:this.data.lightColorData;this.maybeInitializeTileLottie();
this.maybeInitializeBackgroundLottie()}};
_.Z.themeChanged=function(){this.data&&(this.set("currentColorData",this.isDarkTheme?this.data.darkColorData:this.data.lightColorData),this.maybeInitializeTileLottie(),this.maybeInitializeBackgroundLottie())};
_.Z.currentColorChanged=function(){this.updateButtonPalette()};
_.Z.computeBackgroundStyle=function(a){if(a&&this.data){var z=[];if(this.data.lightBackgroundImage&&this.data.darkBackgroundImage){var I=_.P8((this.isDarkTheme?this.data.darkBackgroundImage:this.data.lightBackgroundImage).thumbnails);I&&z.push('background-image: url("'+I+'");')}var J;((J=a.basicColorData)==null?void 0:J.backgroundColor)!==void 0&&z.push("background-color: "+_.RX(a.basicColorData.backgroundColor)+";");return z.join("")}};
_.Z.onDarkModeToggledAction=function(a){a!==this.isDarkTheme&&this.set("isDarkTheme",a)};
_.Z.getCurrentLogo=function(a,z){if(a)return z?a.darkLogoImage:a.lightLogoImage};
_.Z.getCurrentStaticTileImage=function(a,z){if(this.hasStaticTile(a))return a.darkTileImage?z?a.darkTileImage:a.tileImage:a.tileImage};
_.Z.computeTitleStyle=function(a){if(this.data&&this.data.title&&a&&a.basicColorData&&a.basicColorData.foregroundTitleColor!==void 0)return"color:"+_.Da(a.basicColorData.foregroundTitleColor)+";"};
_.Z.computeSubtitleStyle=function(a){if(this.data&&this.data.subtitle&&a&&a.basicColorData&&a.basicColorData.foregroundBodyColor!==void 0)return"color:"+_.Da(a.basicColorData.foregroundBodyColor)+";"};
_.Z.computeSupplementalStyle=function(a){if(this.data&&this.data.supplementalText&&a&&a.supplementalTextColor!==void 0)return a=_.Da(a.supplementalTextColor),"color:"+a+";--yt-endpoint-color:"+a+";--yt-endpoint-hover-color:"+a+";--yt-endpoint-visited-color:"+a+";--yt-formatted-string-bold-font-weight:700;"};
_.Z.computeDismissIconStyle=function(a){var z,I;if((a==null?0:(z=a.dismissButtonColorData)==null?0:z.foregroundTitleColor)&&(a==null?0:(I=a.dismissButtonColorData)==null?0:I.backgroundColor))return"--yt-button-color:"+_.RX(a.dismissButtonColorData.foregroundTitleColor)+";background-color:"+_.RX(a.dismissButtonColorData.backgroundColor)+";"};
_.Z.computeOverflowIconStyle=function(a){var z,I;if((a==null?0:(z=a.dismissButtonColorData)==null?0:z.foregroundTitleColor)&&(a==null?0:(I=a.dismissButtonColorData)==null?0:I.backgroundColor))return"--ytd-menu-renderer-button-color:"+_.RX(a.dismissButtonColorData.foregroundTitleColor)+";background-color:"+_.RX(a.dismissButtonColorData.backgroundColor)+";--yt-spec-icon-active-other:"+_.RX(a.dismissButtonColorData.foregroundTitleColor)+";"};
_.Z.computeBannerStyle=function(a){return a?a.toLowerCase().replace(/_/g,"-"):""};
_.Z.computeLocation=function(a){switch(a==null?void 0:a.location){case "LOCATION_CONTEXT_SEARCH_PAGE":return"search";case "LOCATION_CONTEXT_SLOT_ZERO_HOME":return"slot-zero-home"}};
_.Z.shouldShowTileSection=function(a,z,I){return!this.shouldExpandLogo(a,z,I)&&z};
_.Z.shouldShowExpandedLogoSection=function(a,z,I){return this.shouldExpandLogo(a,z,I)&&a!==void 0&&this.hasLogo(a)};
_.Z.shouldExpandLogo=function(a,z,I){return a&&z?!1:I>=2};
_.Z.hasStaticTile=function(a){return!(a==null||!a.tileImage)};
_.Z.hasTileLottie=function(a){var z;return!!(a==null?0:(z=a.tileLottie)==null?0:z.url)};
_.Z.hasLogo=function(a){return this.getCurrentLogo(a,this.isDarkTheme)!==void 0};
_.Z.getLogoHeight=function(a){return this.logoWithPadding(a)?"26":"20"};
_.Z.getExpandedLogoHeight=function(a){return this.logoWithPadding(a)?"31":"24"};
_.Z.getLogoImageId=function(a){return this.logoWithPadding(a)?"logo-image-with-padding":"logo-image"};
_.Z.getMaxTitleFontSize=function(a){return a.overrideTitleMaxFontSize?String(a.overrideTitleMaxFontSize):"36"};
_.Z.hasBackgroundLottie=function(a){var z;return!!(a==null?0:(z=a.backgroundLottie)==null?0:z.url)};
_.Z.maybePlayLottie=function(){if(this.isOnHoverBehaviorForLottieEnabled){var a,z;(a=this.tileLottieAnimationRef)==null||(z=a.lottieEl)==null||z.play();var I,J;(I=this.backgroundLottieAnimationRef)==null||(J=I.lottieEl)==null||J.play()}};
_.Z.maybePauseLottie=function(){if(this.isOnHoverBehaviorForLottieEnabled){var a,z;(a=this.tileLottieAnimationRef)==null||(z=a.lottieEl)==null||z.pause();var I,J;(I=this.backgroundLottieAnimationRef)==null||(J=I.lottieEl)==null||J.pause()}};
_.Z.pauseLottie=function(){var a,z;(a=this.tileLottieAnimationRef)==null||(z=a.lottieEl)==null||z.pause();var I,J;(I=this.backgroundLottieAnimationRef)==null||(J=I.lottieEl)==null||J.pause();this.isOnHoverBehaviorForLottieEnabled||(this.isOnHoverBehaviorForLottieEnabled=!0)};
_.Z.performPrimaryButtonAction=function(){var a,z,I;((a=this.data)==null?0:(z=a.primaryButton)==null?0:(I=z.buttonRenderer)==null?0:I.command)&&this.ytComponentBehavior.resolveCommand(this.data.primaryButton.buttonRenderer.command)};
_.Z.requestElementsPerRow=function(){_.PA(this.hostElement,"yt-request-elements-per-row")};
_.Z.updateButtonPalette=function(){if(this.data&&this.currentColorData){var a;((a=this.data.dismissButton)==null?0:a.buttonRenderer)&&this.currentColorData.dismissButtonColorData&&(this.data.dismissButton.buttonRenderer.colorData={basicColorPaletteData:this.currentColorData.dismissButtonColorData},this.data.dismissButton.buttonRenderer.style=void 0,this.set("dismissButton",{buttonRenderer:Object.assign({},this.data.dismissButton.buttonRenderer)}));var z;if((z=this.data.primaryButton)==null?0:z.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 I;if((I=this.data.secondaryButton)==
null?0:I.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 J;((J=this.data.primaryButton)==null?0:J.toggleButtonRenderer)&&this.set("primaryButton",{toggleButtonRenderer:Object.assign({},this.data.primaryButton.toggleButtonRenderer)});var r;((r=this.data.secondaryButton)==null?0:r.toggleButtonRenderer)&&this.set("secondaryButton",{toggleButtonRenderer:Object.assign({},this.data.secondaryButton.toggleButtonRenderer)});var P;((P=this.data.primaryButton)==null?0:P.buttonViewModel)&&this.set("primaryButton",{buttonViewModel:Object.assign({},
this.data.primaryButton.buttonViewModel)})}};
_.Z.maybeInitializeTileLottie=function(){if(this.hasTileLottie(this.data)){var a=this.getTileLottieDataBasedOnTheme(),z,I;if(a.url!==((z=this.tileLottiePlayerProps)==null?void 0:(I=z.animationConfig)==null?void 0:I.path)){var J,r;(J=this.tileLottieAnimationRef)==null||(r=J.lottieEl)==null||r.destroy();var P;this.isOnHoverBehaviorForLottieEnabled=!((P=a.settings)==null?0:P.autoplay);var N,u;this.tileLottiePlayerProps={animationRef:this.tileLottieAnimationRef,animationConfig:{name:this.isDarkTheme?
"STATEMENT_BANNER_TILE_LOTTIE_DARK":"STATEMENT_BANNER_TILE_LOTTIE_LIGHT",autoplay:(u=(N=a.settings)==null?void 0:N.autoplay)!=null?u:!1,loop:this.getLottieLoopValue(a.settings),renderer:"svg",rendererSettings:{viewBoxOnly:!1,preserveAspectRatio:"xMidYMid slice"}},listeners:{complete:this.onLottieComplete.bind(this)}};typeof a.url==="string"?this.tileLottiePlayerProps.animationConfig.path=a.url:this.tileLottiePlayerProps.animationConfig.animationData=a.url}}};
_.Z.getOverflowButton=function(a){return _.H(a.overflowButton,iQG)};
_.Z.maybeInitializeBackgroundLottie=function(){if(this.hasBackgroundLottie(this.data)){var a=this.getBackgroundLottieDataBasedOnTheme(),z,I;if(a.url!==((z=this.backgroundLottiePlayerProps)==null?void 0:(I=z.animationConfig)==null?void 0:I.path)){var J,r;(J=this.backgroundLottieAnimationRef)==null||(r=J.lottieEl)==null||r.destroy();var P;this.isOnHoverBehaviorForLottieEnabled=!((P=a.settings)==null?0:P.autoplay);var N,u;this.backgroundLottiePlayerProps={animationRef:this.backgroundLottieAnimationRef,
animationConfig:{name:this.isDarkTheme?"STATEMENT_BANNER_BACKGROUND_LOTTIE_DARK":"STATEMENT_BANNER_BACKGROUND_LOTTIE_LIGHT",autoplay:(u=(N=a.settings)==null?void 0:N.autoplay)!=null?u:!1,loop:this.getLottieLoopValue(a.settings),renderer:"svg",rendererSettings:{viewBoxOnly:!1,preserveAspectRatio:"xMidYMid slice"}},listeners:{complete:this.onLottieComplete.bind(this)}};typeof a.url==="string"?this.backgroundLottiePlayerProps.animationConfig.path=a.url:this.backgroundLottiePlayerProps.animationConfig.animationData=
a.url}}};
_.Z.onLottieComplete=function(){if(!this.isOnHoverBehaviorForLottieEnabled){var a;((a=this.tileLottieAnimationRef)==null?void 0:a.lottieEl)!==void 0&&(this.tileLottieAnimationRef.lottieEl.loop=!0);var z;((z=this.backgroundLottieAnimationRef)==null?void 0:z.lottieEl)!==void 0&&(this.backgroundLottieAnimationRef.lottieEl.loop=!0);this.isOnHoverBehaviorForLottieEnabled=!0}};
_.Z.getTileLottieDataBasedOnTheme=function(){var a;if(this.isDarkTheme&&((a=this.data)==null?0:a.darkThemeTileLottie))return this.data.darkThemeTileLottie;var z;return((z=this.data)==null?0:z.tileLottie)?this.data.tileLottie:{}};
_.Z.getBackgroundLottieDataBasedOnTheme=function(){var a;if(this.isDarkTheme&&((a=this.data)==null?0:a.darkThemeBackgroundLottie))return this.data.darkThemeBackgroundLottie;var z;return((z=this.data)==null?0:z.backgroundLottie)?this.data.backgroundLottie:{}};
_.Z.onUpdateElementsPerRowAction=function(a){a&&this.elementsPerRow!==a&&(this.elementsPerRow=a)};
_.Z.getLottieLoopValue=function(a){return a?a.loop!==void 0?a.loop:a.loopCount?a.loopCount-1:!0:!0};
_.Z.logoWithPadding=function(a){var z,I,J;return(a=(z=this.getCurrentLogo(a,this.isDarkTheme))==null?void 0:(I=z.thumbnails)==null?void 0:(J=I[0])==null?void 0:J.height)&&a%31===0?!0:!1};
Dh.prototype.currentColorChanged=Dh.prototype.currentColorChanged;Dh.prototype.themeChanged=Dh.prototype.themeChanged;Dh.prototype.dataChanged=Dh.prototype.dataChanged;_.L([_.Q(_.k.YtRendererBehavior),_.p("design:type",Object)],Dh.prototype,"ytRendererBehavior",void 0);_.L([_.Q(_.u4.YtRendererstamperBehavior),_.p("design:type",Object)],Dh.prototype,"ytRendererstamperBehavior",void 0);_.L([_.Q(_.mD),_.p("design:type",Object)],Dh.prototype,"ytdDismissibleItemBehavior",void 0);
_.L([_.Q(_.Hc.YtActionHandlerBehavior),_.p("design:type",Object)],Dh.prototype,"actionHandlerBehavior",void 0);_.L([_.Q(_.Ms.YtComponentBehavior),_.p("design:type",Object)],Dh.prototype,"ytComponentBehavior",void 0);_.L([_.x(),_.p("design:type",Object)],Dh.prototype,"data",void 0);_.L([_.x(),_.p("design:type",Object)],Dh.prototype,"primaryButton",void 0);_.L([_.x(),_.p("design:type",Object)],Dh.prototype,"secondaryButton",void 0);
_.L([_.x({reflectToAttribute:!0,value:3}),_.p("design:type",Number)],Dh.prototype,"elementsPerRow",void 0);_.L([_.x({reflectToAttribute:!0,value:!1}),_.p("design:type",Boolean)],Dh.prototype,"isDarkTheme",void 0);_.L([_.x({reflectToAttribute:!0,value:!1}),_.p("design:type",Boolean)],Dh.prototype,"hasTile",void 0);_.L([_.x({reflectToAttribute:!0,value:!1}),_.p("design:type",Boolean)],Dh.prototype,"hasMetadata",void 0);
_.L([_.x({reflectToAttribute:!0,value:!1}),_.p("design:type",Boolean)],Dh.prototype,"showLogoImage",void 0);_.L([_.x(),_.p("design:type",Object)],Dh.prototype,"currentColorData",void 0);_.L([_.x({reflectToAttribute:!0,computed:"computeBannerStyle(data.style)"}),_.p("design:type",String)],Dh.prototype,"bannerStyle",void 0);_.L([_.x({reflectToAttribute:!0,computed:"computeLocation(data.shelfContext)"}),_.p("design:type",String)],Dh.prototype,"location",void 0);
_.L([_.x(),_.p("design:type",Object)],Dh.prototype,"tileLottiePlayerProps",void 0);_.L([_.x(),_.p("design:type",Object)],Dh.prototype,"tileLottieAnimationRef",void 0);_.L([_.x(),_.p("design:type",Object)],Dh.prototype,"backgroundLottiePlayerProps",void 0);_.L([_.x(),_.p("design:type",Object)],Dh.prototype,"backgroundLottieAnimationRef",void 0);_.L([_.x({reflectToAttribute:!0}),_.p("design:type",Object)],Dh.prototype,"useBiggerShowcaseImage",void 0);
_.L([_.x({reflectToAttribute:!0}),_.p("design:type",Boolean)],Dh.prototype,"isHideEnclosingAction",void 0);_.L([_.Fe("data"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],Dh.prototype,"dataChanged",null);_.L([_.Fe("isDarkTheme"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],Dh.prototype,"themeChanged",null);
_.L([_.Fe("currentColorData"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],Dh.prototype,"currentColorChanged",null);_.L([_.U({is:"ytd-statement-banner-renderer",disableElementRegistration:!0})],Dh);
_.D(Dh,"ytd-statement-banner-renderer",function(){if(XoJ!==void 0)return XoJ;var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-statement-banner-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="dismissible" on-mouseleave="maybePauseLottie" on-mouseover="maybePlayLottie" class="style-scope ytd-statement-banner-renderer">\n  <div id="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="dynamic-title" style$="[[computeTitleStyle(currentColorData)]]" on-click="performPrimaryButtonAction" class="style-scope ytd-statement-banner-renderer">\n            <yt-dynamic-sizing-formatted-string font-family="[[data.titleFontFamily]]" max-font-size="[[getMaxTitleFontSize(data)]]" max-height="110" max-lines="2" min-font-size="20" text="[[data.title]]" class="style-scope ytd-statement-banner-renderer">\n            </yt-dynamic-sizing-formatted-string>\n            <div id="new-badge-container" hidden="[[data.badge]]" 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 id="badge-view-model-container" class="style-scope ytd-statement-banner-renderer">\n              <div id="additional-badge-view-model" hidden="[[!data.additionalBadge]]" class="style-scope ytd-statement-banner-renderer"></div>\n              <div id="badge-view-model" hidden="[[!data.badge]]" class="style-scope ytd-statement-banner-renderer"></div>\n            </div>\n          </div>\n          <div id="subtitle-container" style$="[[computeSubtitleStyle(currentColorData)]]" class="style-scope ytd-statement-banner-renderer">\n            <yt-formatted-string id="subtitle" text="[[data.subtitle]]" class="style-scope ytd-statement-banner-renderer"></yt-formatted-string>\n          </div>\n          <div id="supplemental-text-container" hidden="[[!data.supplementalText]]" style$="[[computeSupplementalStyle(currentColorData)]]" class="style-scope ytd-statement-banner-renderer">\n            <yt-formatted-string id="supplemental-text" text="[[data.supplementalText]]" class="style-scope ytd-statement-banner-renderer">\n            </yt-formatted-string>\n          </div>\n        </div>\n        <div id="button-container" class="style-scope ytd-statement-banner-renderer">\n          <div id="button-wrapper" class="style-scope ytd-statement-banner-renderer">\n            <div id="primary-button" class="style-scope ytd-statement-banner-renderer"></div>\n            <div id="secondary-button" class="style-scope ytd-statement-banner-renderer"></div>\n          </div>\n        </div>\n      </div>\n      <div id="dismiss-button" hidden="[[data.overflowButton]]" style$="[[computeDismissIconStyle(currentColorData, elementsPerRow)]]" class="style-scope ytd-statement-banner-renderer"></div>\n      <div id="overflow-button" hidden="[[!data.overflowButton]]" style$="[[computeOverflowIconStyle(currentColorData)]]" class="style-scope ytd-statement-banner-renderer"></div>\n    </div>\n  </div>\n  <div id="attached-survey" class="style-scope ytd-statement-banner-renderer"></div>\n</div>\n<div id="dismissed" class="style-scope ytd-statement-banner-renderer"></div>\n');a.content.insertBefore(_.w().content.cloneNode(!0),
a.content.firstChild);return XoJ=a},{mode:1});var T5i;var Rx=function(){var a=_.G.apply(this,arguments)||this;a.isSearch=!1;a.hideShelfHeader=!1;a.engagementPanel=!1;a.disableMouseScroll=!0;a.useFloorScrolling=!0;a.modernTypography=_.K("web_modern_typography");return a};
_.b(Rx,_.G);Rx.prototype.onDataChanged=function(){this.set("data.nextButton",{buttonRenderer:{style:"STYLE_DEFAULT",size:"SIZE_DEFAULT",icon:{iconType:"CHEVRON_RIGHT"},accessibility:{label:_.AR("HORIZONTAL_LIST_NEXT_LABEL",void 0,"Next")}}});this.set("data.previousButton",{buttonRenderer:{style:"STYLE_DEFAULT",size:"SIZE_DEFAULT",icon:{iconType:"CHEVRON_LEFT"},accessibility:{label:_.AR("HORIZONTAL_LIST_PREVIOUS_LABEL",void 0,"Previous")}}})};
Rx.prototype.configureRendererStamper=function(){return{"data.button":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}}}};
Rx.prototype.onDataChanged=Rx.prototype.onDataChanged;_.L([_.Q(_.k.YtRendererBehavior),_.p("design:type",Object)],Rx.prototype,"ytRendererBehavior",void 0);_.L([_.Q(_.u4.YtRendererstamperBehavior),_.p("design:type",Object)],Rx.prototype,"ytRendererstamperBehavior",void 0);_.L([_.x(),_.p("design:type",Object)],Rx.prototype,"isSearch",void 0);_.L([_.x({reflectToAttribute:!0}),_.p("design:type",Object)],Rx.prototype,"hideShelfHeader",void 0);
_.L([_.x({reflectToAttribute:!0}),_.p("design:type",Object)],Rx.prototype,"engagementPanel",void 0);_.L([_.x(),_.p("design:type",Object)],Rx.prototype,"disableMouseScroll",void 0);_.L([_.x(),_.p("design:type",Object)],Rx.prototype,"useFloorScrolling",void 0);_.L([_.x(),_.p("design:type",Object)],Rx.prototype,"data",void 0);_.L([_.x({reflectToAttribute:!0}),_.p("design:type",Object)],Rx.prototype,"modernTypography",void 0);
_.L([_.Fe("data"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],Rx.prototype,"onDataChanged",null);_.L([_.U({is:"ytd-reel-shelf-renderer",disableElementRegistration:!0})],Rx);
_.D(Rx,"ytd-reel-shelf-renderer",function(){if(T5i!==void 0)return T5i;var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-reel-shelf-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="title-container" hidden="[[!data.title]]" class="style-scope ytd-reel-shelf-renderer">\n  <h2 class="style-scope ytd-reel-shelf-renderer">\n    <yt-icon id="icon" disable-upgrade$="[[!data.icon.iconType]]" hidden="[[!data.icon.iconType]]" icon="[[data.icon.iconType]]" class="style-scope ytd-reel-shelf-renderer">\n    </yt-icon>\n    <span id="title" class="style-scope ytd-reel-shelf-renderer">[[getSimpleString(data.title)]]</span>\n    <span id="title-superscript" class="style-scope ytd-reel-shelf-renderer">[[getSimpleString(data.titleSuperscript)]]</span>\n  </h2>\n  <div id="menu" class="style-scope ytd-reel-shelf-renderer"></div>\n</div>\n<div id="contents" class="style-scope ytd-reel-shelf-renderer">\n  <yt-horizontal-list-renderer data="[[data]]" disable-scroll-event-listener="[[disableMouseScroll]]" engagement-panel="[[engagementPanel]]" hide-shelf-header="[[hideShelfHeader]]" is-search="[[isSearch]]" thumbnail-height="[[thumbnailHeight]]" use-floor-scrolling="[[useFloorScrolling]]" class="style-scope ytd-reel-shelf-renderer">\n  </yt-horizontal-list-renderer>\n</div>\n');a.content.insertBefore(_.w().content.cloneNode(!0),
a.content.firstChild);return T5i=a},{mode:_.Np("kevlar_poly_si_batch_j028")?1:2});var d6f;var WEE;WEE=_.kK(["https://www.google.com/recaptcha/api.js?trustedtypes=true"]);_.oy1=_.Jz(WEE);var U6w=_.ec(function(a){var z=a.data;a=a.useSmallFont;var I={},J={};return _.B("yt-channel-external-link-view-model",{class:"yt-channel-external-link-view-model-wiz"},_.B(_.g,{cond:function(){return z().favicon},
then:function(r){return _.B(_.qp,{data:r,className:"yt-channel-external-link-view-model-wiz__favicon",alt:"",preserveWidth:!0,preserveHeight:!0,targetWidth:24,targetHeight:24})}}),_.B("div",{class:"yt-channel-external-link-view-model-wiz__container"},_.B(_.xs,{text:function(){return z().title},
className:_.B8("yt-channel-external-link-view-model-wiz__title",(I["yt-channel-external-link-view-model-wiz__title--title-small-font"]=a,I)),ellipsisTruncate:!0,userInput:!0}),_.B(_.xs,{text:function(){return z().link},
className:_.B8("yt-channel-external-link-view-model-wiz__link",(J["yt-channel-external-link-view-model-wiz__link--link-small-font"]=a,J)),ellipsisTruncate:!0,linkInheritColor:!0,userInput:!0})))},"Tb");
U6w.idomCompat=!0;_.Jf(U6w,"yt-channel-external-link-view-model",{props:{data:_.zl,useSmallFont:_.zl}});_.$q("itemSectionRenderer","aboutChannelRenderer","ytd-about-channel-renderer");var Lf=function(){var a=_.G.apply(this,arguments)||this;a.revealButtonClass="button";a.businessEmailDisplayState="HIDE_SECTION";return a};
_.b(Lf,_.G);_.Z=Lf.prototype;_.Z.refit=function(){var a=this;_.lK(function(){_.Ct(a.hostElement,"yt-refit-popups-action")});
_.Yv(this,function(){_.Ct(a.hostElement,"yt-refit-popups-action")})};
_.Z.onBusinessEmailClick=function(){this.metadata.bypassBusinessEmailCaptcha?this.businessEmailDisplayState="BUSINESS_EMAIL":(_.LL(_.oy1),this.businessEmailDisplayState="CAPTCHA")};
_.Z.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"};
_.Z.detached=function(){this.businessEmailErrorMessage=this.businessEmail=void 0;this.businessEmailDisplayState="HIDE_SECTION"};
_.Z.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"}}}};
_.Z.computeEmailHref=function(a){return"mailto:"+a};
_.Z.computeSafeUrl=function(a){if(a)return _.XG(a)};
_.Z.linkEndpoint=function(a){return _.H(a.onTap,_.Wl)};
_.Z.linkEndpointToHref=function(a){return this.ytComponentBehavior.computeHref_(this.linkEndpoint(a))};
_.Z.onYtServiceRequestCompleted=function(a){var z;if((z=a.detail.data)==null?0:z.businessEmail)this.businessEmail=a.detail.data.businessEmail,this.businessEmailDisplayState="BUSINESS_EMAIL";else{var I;if((I=a.detail.data)==null?0:I.errorMessage)this.businessEmailErrorMessage=a.detail.data.errorMessage,this.businessEmailDisplayState="ERROR_MESSAGE"}};
_.Z.onBusinessEmailCaptchaSubmit=function(){if(this.metadata.channelId&&this.metadata.onBusinessEmailRevealClickCommand){var a=this.JSC$16149_captchaTextarea.value;if(a){a={recaptcha_response_token:a,channel_id:this.metadata.channelId};var z=_.H(this.metadata.onBusinessEmailRevealClickCommand,_.Wl);z&&this.ytComponentBehavior.resolveCommand(z,{form:a})}}};
_.Z.recaptchaSiteKey=function(){return"6Lf39AMTAAAAALPbLZdcrWDa8Ygmgk_fmGmrlRog"};
_.eH.Object.defineProperties(Lf.prototype,{metadata:{configurable:!0,enumerable:!0,get:function(){var a;return _.H((a=this.data)==null?void 0:a.metadata,CnE)}},
revealButton:{configurable:!0,enumerable:!0,get:function(){return _.H(this.metadata.businessEmailRevealButton,_.yw)}},
channelDisplayUrl:{configurable:!0,enumerable:!0,get:function(){if(this.metadata.displayCanonicalChannelUrl)return this.metadata.displayCanonicalChannelUrl;if(this.metadata.canonicalChannelUrl){var a=new URL(this.metadata.canonicalChannelUrl);return a.host+a.pathname}}},
formattedDescription:{configurable:!0,enumerable:!0,get:function(){return this.metadata.description?{simpleText:this.metadata.description}:void 0}},
shouldRendereVerifiedPhoneStatus:{configurable:!0,enumerable:!0,get:function(){return this.metadata.phoneVerifiedLabel!==""&&this.learnMoreCommand!==void 0}},
learnMoreCommand:{configurable:!0,enumerable:!0,get:function(){return _.H(this.metadata.learnMoreOnTap,_.Wl)}}});
Lf.prototype.onYtServiceRequestCompleted=Lf.prototype.onYtServiceRequestCompleted;Lf.prototype.businessEmailMetadataChanged=Lf.prototype.businessEmailMetadataChanged;Lf.prototype.refit=Lf.prototype.refit;_.L([_.Q(_.Ms.YtComponentBehavior),_.p("design:type",Object)],Lf.prototype,"ytComponentBehavior",void 0);_.L([_.Q(_.k.YtRendererBehavior),_.p("design:type",Object)],Lf.prototype,"ytRendererBehavior",void 0);
_.L([_.Q(_.u4.YtRendererstamperBehavior),_.p("design:type",Object)],Lf.prototype,"ytRendererstamperBehavior",void 0);_.L([_.A3("#g-recaptcha-response"),_.p("design:type",HTMLTextAreaElement)],Lf.prototype,"JSC$16149_captchaTextarea",void 0);_.L([_.x(),_.p("design:type",Object)],Lf.prototype,"data",void 0);_.L([_.x(),_.p("design:type",Object)],Lf.prototype,"revealButtonClass",void 0);_.L([_.S("data"),_.p("design:type",Object),_.p("design:paramtypes",[])],Lf.prototype,"metadata",null);
_.L([_.S("metadata"),_.p("design:type",Object),_.p("design:paramtypes",[])],Lf.prototype,"revealButton",null);_.L([_.S("metadata"),_.p("design:type",Object),_.p("design:paramtypes",[])],Lf.prototype,"channelDisplayUrl",null);_.L([_.Fe("metadata"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],Lf.prototype,"refit",null);_.L([_.S("metadata"),_.p("design:type",Object),_.p("design:paramtypes",[])],Lf.prototype,"formattedDescription",null);
_.L([_.S("metadata","learnMoreCommand"),_.p("design:type",Boolean),_.p("design:paramtypes",[])],Lf.prototype,"shouldRendereVerifiedPhoneStatus",null);_.L([_.S("metadata"),_.p("design:type",Object),_.p("design:paramtypes",[])],Lf.prototype,"learnMoreCommand",null);_.L([_.x(),_.p("design:type",String)],Lf.prototype,"businessEmailDisplayState",void 0);_.L([_.x(),_.p("design:type",String)],Lf.prototype,"businessEmail",void 0);
_.L([_.x(),_.p("design:type",String)],Lf.prototype,"businessEmailErrorMessage",void 0);_.L([_.Fe("metadata"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],Lf.prototype,"businessEmailMetadataChanged",null);_.L([_.gz("yt-service-request-completed"),_.p("design:type",Function),_.p("design:paramtypes",[CustomEvent]),_.p("design:returntype")],Lf.prototype,"onYtServiceRequestCompleted",null);_.L([_.U({is:"ytd-about-channel-renderer",disableElementRegistration:!0})],Lf);
_.D(Lf,"ytd-about-channel-renderer",function(){if(d6f!==void 0)return d6f;var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-about-channel-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="about-container" class="style-scope ytd-about-channel-renderer">\n  <div id="header-row" hidden="[[!metadata.aboutPanelTitle]]" class="style-scope ytd-about-channel-renderer">\n    <h1 class="style-scope ytd-about-channel-renderer">[[metadata.aboutPanelTitle]]</h1>\n    <div id="dismiss-button" class="style-scope ytd-about-channel-renderer"></div>\n  </div>\n\n  <yt-attributed-string class="subheadline style-scope ytd-about-channel-renderer" data="[[metadata.descriptionLabel]]" hidden="[[!formattedDescription]]">\n  </yt-attributed-string>\n  <yt-attributed-string id="description-container" class="about-section style-scope ytd-about-channel-renderer" data="[[formattedDescription]]" hidden="[[!formattedDescription]]" user-input="true">\n  </yt-attributed-string>\n\n  <div id="bio-container" class="about-section style-scope ytd-about-channel-renderer" hidden="[[!metadata.formattedBio]]">\n    <h2 class="subheadline style-scope ytd-about-channel-renderer">[[metadata.artistBioLabel]]</h2>\n    <yt-attributed-string id="bio-container" class="about-section style-scope ytd-about-channel-renderer" data="[[metadata.artistBio]]" hidden="[[!metadata.artistBio]]" user-input="true">\n    </yt-attributed-string>\n    <p class="style-scope ytd-about-channel-renderer">[[metadata.artistBio]]</p>\n  </div>\n\n  <div id="links-section" hidden="[[!metadata.links]]" class="style-scope ytd-about-channel-renderer">\n    <yt-attributed-string class="subheadline style-scope ytd-about-channel-renderer" data="[[metadata.customLinksLabel]]">\n    </yt-attributed-string>\n    <div id="link-list-container" class="style-scope ytd-about-channel-renderer">\n    </div>\n  </div>\n  <div id="custom-links-section" hidden="[[!metadata.customLinks]]" class="style-scope ytd-about-channel-renderer">\n    <yt-attributed-string class="subheadline style-scope ytd-about-channel-renderer" data="[[metadata.customLinksLabel]]">\n    </yt-attributed-string>\n    <table id="links-container" class="about-section style-scope ytd-about-channel-renderer">\n      <template is="dom-repeat" items="[[metadata.customLinks]]" as="link" class="style-scope ytd-about-channel-renderer">\n        <tr hidden="[[!linkEndpointToHref(link)]]" class="style-scope ytd-about-channel-renderer">\n          <td class="image-container style-scope ytd-about-channel-renderer">\n            <yt-image data="[[link.favicon]]" width="32" class="style-scope ytd-about-channel-renderer"></yt-image>\n          </td>\n          <td class="href-container style-scope ytd-about-channel-renderer">\n            <a class="yt-simple-endpoint style-scope ytd-about-channel-renderer" href$="[[linkEndpointToHref(link)]]" data="[[linkEndpoint(link)]]">[[link.label]]</a>\n          </td>\n        </tr>\n      </template>\n    </table>\n  </div>\n\n  <div id="additional-info-container" class="about-section style-scope ytd-about-channel-renderer">\n    <yt-attributed-string class="subheadline style-scope ytd-about-channel-renderer" data="[[metadata.additionalInfoLabel]]"></yt-attributed-string>\n    <table class="style-scope ytd-about-channel-renderer">\n      <tbody class="style-scope ytd-about-channel-renderer"><tr class="description-item style-scope ytd-about-channel-renderer" hidden="[[equals(businessEmailDisplayState, \'HIDE_SECTION\')]]">\n        <td class="style-scope ytd-about-channel-renderer">\n          <yt-icon icon="mail" class="style-scope ytd-about-channel-renderer"></yt-icon>\n        </td>\n\n        <td hidden="[[!equals(businessEmailDisplayState, \'SIGN_IN_REQUIRED\')]]" class="style-scope ytd-about-channel-renderer">\n          <yt-attributed-string data="[[metadata.signInForBusinessEmail]]" class="style-scope ytd-about-channel-renderer"></yt-attributed-string>\n        </td>\n\n        <td id="view-email-button-container" hidden="[[!equals(businessEmailDisplayState, \'REVEAL_BUTTON\')]]" class="style-scope ytd-about-channel-renderer">\n          <yt-button-view-model classes="[[revealButtonClass]]" data="[[revealButton]]" scoping-class-name="[[is]]" on-click="onBusinessEmailClick" class="style-scope ytd-about-channel-renderer">\n          </yt-button-view-model>\n        </td>\n\n        <td hidden="[[!equals(businessEmailDisplayState, \'CAPTCHA\')]]" class="style-scope ytd-about-channel-renderer">\n          \n          <div id="recaptcha" class="g-recaptcha style-scope ytd-about-channel-renderer" data-sitekey$="[[recaptchaSiteKey()]]"></div>\n          <button id="submit-btn" class="yt-uix-button yt-uix-button-size-default yt-uix-button-primary style-scope ytd-about-channel-renderer" on-click="onBusinessEmailCaptchaSubmit">\n            <span class="yt-uix-button-content style-scope ytd-about-channel-renderer">[[metadata.businessEmailSubmitCaptchaLabel]] </span>\n          </button>\n        </td>\n        <td hidden="[[!equals(businessEmailDisplayState, \'ERROR_MESSAGE\')]]" class="style-scope ytd-about-channel-renderer">\n          [[businessEmailErrorMessage]]\n        </td>\n\n        <td hidden="[[!equals(businessEmailDisplayState, \'BUSINESS_EMAIL\')]]" class="style-scope ytd-about-channel-renderer">\n          <a id="email" class="yt-simple-endpoint style-scope ytd-about-channel-renderer" href$="[[computeEmailHref(businessEmail)]]" target="_blank">[[businessEmail]]</a>\n        </td>\n      </tr>\n\n      <tr class="description-item style-scope ytd-about-channel-renderer" hidden="[[!shouldRendereVerifiedPhoneStatus]]">\n        <td class="style-scope ytd-about-channel-renderer">\n          <yt-icon icon="phone" class="style-scope ytd-about-channel-renderer"></yt-icon>\n        </td>\n        <td class="style-scope ytd-about-channel-renderer">\n          <span class="style-scope ytd-about-channel-renderer">[[metadata.phoneVerifiedLabel]]</span>\n          <a class="yt-simple-endpoint phone-status-info style-scope ytd-about-channel-renderer" href$="[[computeHref_(learnMoreCommand)]]" target="_blank">\n            <yt-icon icon="info" class="style-scope ytd-about-channel-renderer"></yt-icon>\n          </a>\n        </td>\n      </tr>\n\n      <tr class="description-item style-scope ytd-about-channel-renderer" hidden="[[!channelDisplayUrl]]">\n        <td class="style-scope ytd-about-channel-renderer">\n          <yt-icon icon="language" class="style-scope ytd-about-channel-renderer"></yt-icon>\n        </td>\n        <td class="style-scope ytd-about-channel-renderer">\n          <a class="yt-simple-endpoint style-scope ytd-about-channel-renderer" href$="[[metadata.canonicalChannelUrl]]">[[channelDisplayUrl]]</a>\n        </td>\n      </tr>\n      <tr class="description-item style-scope ytd-about-channel-renderer" hidden="[[!metadata.country]]">\n        <td class="style-scope ytd-about-channel-renderer">\n          <yt-icon hidden="[[!metadata.country]]" icon="privacy_public" class="style-scope ytd-about-channel-renderer"></yt-icon>\n        </td>\n        <td class="style-scope ytd-about-channel-renderer">[[metadata.country]]</td>\n      </tr>\n      <tr class="description-item style-scope ytd-about-channel-renderer" hidden="[[!metadata.joinedDateText]]">\n        <td class="style-scope ytd-about-channel-renderer">\n          <yt-icon hidden="[[!metadata.joinedDateText]]" icon="info_outline" class="style-scope ytd-about-channel-renderer"></yt-icon>\n        </td>\n        <td class="style-scope ytd-about-channel-renderer">\n          <yt-attributed-string data="[[metadata.joinedDateText]]" class="style-scope ytd-about-channel-renderer"></yt-attributed-string>\n        </td>\n      </tr>\n      <tr class="description-item style-scope ytd-about-channel-renderer" hidden="[[!metadata.subscriberCountText]]">\n        <td class="style-scope ytd-about-channel-renderer">\n          <yt-icon icon="person_radar" class="style-scope ytd-about-channel-renderer"></yt-icon>\n        </td>\n        <td class="style-scope ytd-about-channel-renderer">[[metadata.subscriberCountText]]</td>\n      </tr>\n      <tr class="description-item style-scope ytd-about-channel-renderer" hidden="[[!metadata.videoCountText]]">\n        <td class="style-scope ytd-about-channel-renderer">\n          <yt-icon hidden="[[!metadata.videoCountText]]" icon="my_videos" class="style-scope ytd-about-channel-renderer"></yt-icon>\n        </td>\n        <td class="style-scope ytd-about-channel-renderer">[[metadata.videoCountText]]</td>\n      </tr>\n      <tr class="description-item style-scope ytd-about-channel-renderer" hidden="[[!metadata.viewCountText]]">\n        <td class="style-scope ytd-about-channel-renderer">\n          <yt-icon hidden="[[!metadata.viewCountText]]" icon="trending_up" class="style-scope ytd-about-channel-renderer"></yt-icon>\n        </td>\n        <td class="style-scope ytd-about-channel-renderer">[[metadata.viewCountText]]</td>\n      </tr>\n    </tbody></table>\n  </div>\n\n  <div id="button-container" class="style-scope ytd-about-channel-renderer">\n    <div id="share-channel" class="button style-scope ytd-about-channel-renderer"></div>\n    <div id="flagging-button" class="button style-scope ytd-about-channel-renderer"></div>\n  </div>\n</div>\n');
a.content.insertBefore(_.w().content.cloneNode(!0),a.content.firstChild);return d6f=a},{mode:1});var D6w;var lH=function(){return _.G.apply(this,arguments)||this};
_.b(lH,_.G);_.L([_.Q(_.k.YtRendererBehavior),_.p("design:type",Object)],lH.prototype,"ytRendererBehavior",void 0);_.L([_.x(),_.p("design:type",Object)],lH.prototype,"data",void 0);_.L([_.U({is:"ytd-channel-list-sub-menu-avatar-renderer",disableElementRegistration:!0})],lH);
_.D(lH,"ytd-channel-list-sub-menu-avatar-renderer",function(){if(D6w!==void 0)return D6w;var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-channel-list-sub-menu-avatar-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<a class="yt-simple-endpoint style-scope ytd-channel-list-sub-menu-avatar-renderer" href$="[[computeHref_(data.navigationEndpoint)]]" data="[[data.navigationEndpoint]]">\n  <yt-img-shadow thumbnail="[[data.thumbnail]]" width="80" class="style-scope ytd-channel-list-sub-menu-avatar-renderer">\n  </yt-img-shadow>\n  <div id="title" class="style-scope ytd-channel-list-sub-menu-avatar-renderer">[[getSimpleString(data.title)]]</div>\n</a>\n');a.content.insertBefore(_.w().content.cloneNode(!0),
a.content.firstChild);return D6w=a},{mode:1});var Rbw;var pf=function(){return _.G.apply(this,arguments)||this};
_.b(pf,_.G);pf.prototype.configureRendererStamper=function(){return{"data.contents":{id:"contents",mapping:{channelListSubMenuAvatarRenderer:"ytd-channel-list-sub-menu-avatar-renderer"}}}};
_.L([_.Q(_.u4.YtRendererstamperBehavior),_.p("design:type",Object)],pf.prototype,"ytRendererstamperBehavior",void 0);_.L([_.x(),_.p("design:type",Object)],pf.prototype,"data",void 0);_.L([_.x({reflectToAttribute:!0}),_.p("design:type",String)],pf.prototype,"aligment",void 0);_.L([_.U({is:"ytd-channel-list-sub-menu-renderer",disableElementRegistration:!0})],pf);
_.D(pf,"ytd-channel-list-sub-menu-renderer",function(){if(Rbw!==void 0)return Rbw;var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-channel-list-sub-menu-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="contents" class="style-scope ytd-channel-list-sub-menu-renderer"></div>\n');a.content.insertBefore(_.w().content.cloneNode(!0),a.content.firstChild);return Rbw=
a},{mode:1});var LEf;var wT=function(){return _.G.apply(this,arguments)||this};
_.b(wT,_.G);wT.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}}}}}};
_.L([_.Q(_.k.YtRendererBehavior),_.p("design:type",Object)],wT.prototype,"ytRendererBehavior",void 0);_.L([_.Q(_.u4.YtRendererstamperBehavior),_.p("design:type",Object)],wT.prototype,"ytRendererstamperBehavior",void 0);_.L([_.x(),_.p("design:type",Object)],wT.prototype,"data",void 0);_.L([_.U({is:"ytd-channel-sub-menu-renderer",disableElementRegistration:!0})],wT);
_.D(wT,"ytd-channel-sub-menu-renderer",function(){if(LEf!==void 0)return LEf;var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-channel-sub-menu-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="primary-items" class="style-scope ytd-channel-sub-menu-renderer">\n  <yt-dropdown-menu class="content-sub-menu style-scope ytd-channel-sub-menu-renderer" data="[[data.contentTypeSubMenuItems]]" parent-tracking-params="[[data.trackingParams]]" use-label="">\n  </yt-dropdown-menu>\n  <div id="play-all" class="style-scope ytd-channel-sub-menu-renderer"></div>\n</div>\n<div id="sort-menu" class="style-scope ytd-channel-sub-menu-renderer"></div>\n<div id="right-buttons" class="style-scope ytd-channel-sub-menu-renderer"></div>\n');a.content.insertBefore(_.w().content.cloneNode(!0),
a.content.firstChild);return LEf=a},{mode:1});var lrG;var poE;var mj=function(){var a=_.G.apply(this,arguments)||this;a.isCompact=!1;return a};
_.b(mj,_.G);_.eH.Object.defineProperties(mj.prototype,{thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){return this.isCompact?112:80}},
openNewWindow:{configurable:!0,enumerable:!0,get:function(){var a,z;return((z=_.H((a=this.data)==null?void 0:a.endpoint,_.pv))==null?void 0:z.target)==="TARGET_NEW_WINDOW"}}});
_.L([_.Q(_.k.YtRendererBehavior),_.p("design:type",Object)],mj.prototype,"ytRendererBehavior",void 0);_.L([_.Q(_.Ms.YtComponentBehavior),_.p("design:type",Object)],mj.prototype,"componentBehavior",void 0);_.L([_.x(),_.p("design:type",Object)],mj.prototype,"data",void 0);_.L([_.x({reflectToAttribute:!0}),_.p("design:type",Object)],mj.prototype,"isCompact",void 0);_.L([_.S("isCompact"),_.p("design:type",Number),_.p("design:paramtypes",[])],mj.prototype,"thumbnailWidth",null);
_.L([_.S("data"),_.p("design:type",Boolean),_.p("design:paramtypes",[])],mj.prototype,"openNewWindow",null);_.L([_.U({is:"ytd-media-lockup-renderer",disableElementRegistration:!0})],mj);
_.D(mj,"ytd-media-lockup-renderer",function(){if(poE!==void 0)return poE;var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-media-lockup-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<a id="lockup-container" class="yt-simple-endpoint style-scope ytd-media-lockup-renderer" data="[[data.endpoint]]" href$="[[computeOptionalHref_(data.endpoint)]]">\n  <div id="thumbnail-container" class="style-scope ytd-media-lockup-renderer">\n    <yt-img-shadow id="thumbnail" alt="[[getSimpleString(data.title)]]" fit-width="" thumbnail="[[data.thumbnailDetails]]" width="[[thumbnailWidth]]" class="style-scope ytd-media-lockup-renderer">\n    </yt-img-shadow>\n  </div>\n  <div id="description" class="style-scope ytd-media-lockup-renderer">\n    <div id="title" class="style-scope ytd-media-lockup-renderer">[[getSimpleString(data.title)]]</div>\n    <div id="subtitle" class="style-scope ytd-media-lockup-renderer">\n      <span id="subtitle-text" class="style-scope ytd-media-lockup-renderer">[[getSimpleString(data.subtitle)]]</span>\n      \n      <yt-icon class="media-lockup-icon style-scope ytd-media-lockup-renderer" default-to-filled="true" hidden="[[!openNewWindow]]" icon="open_in_new" size="15"></yt-icon>\n    </div>\n  </div>\n</a>\n');a.content.insertBefore(_.w().content.cloneNode(!0),
a.content.firstChild);return poE=a},{mode:1});var wof;var yS=function(){return _.G.apply(this,arguments)||this};
_.b(yS,_.G);_.L([_.Q(_.k.YtRendererBehavior),_.p("design:type",Object)],yS.prototype,"ytRendererBehavior",void 0);_.L([_.Q(_.Ms.YtComponentBehavior),_.p("design:type",Object)],yS.prototype,"componentBehavior",void 0);_.L([_.x(),_.p("design:type",Object)],yS.prototype,"data",void 0);_.L([_.U({is:"ytd-structured-description-channel-lockup-renderer",disableElementRegistration:!0})],yS);
_.D(yS,"ytd-structured-description-channel-lockup-renderer",function(){if(wof!==void 0)return wof;var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-structured-description-channel-lockup-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="thumbnail-container" class="style-scope ytd-structured-description-channel-lockup-renderer">\n  <ytd-thumbnail data="[[data]]" width="[[data.thumbnailWidth]]" class="style-scope ytd-structured-description-channel-lockup-renderer">\n  </ytd-thumbnail>\n</div>\n<a id="text-wrapper" class="yt-simple-endpoint style-scope ytd-structured-description-channel-lockup-renderer" data="[[data.navigationEndpoint]]" href$="[[computeOptionalHref_(data.navigationEndpoint)]]">\n  <div id="description" class="style-scope ytd-structured-description-channel-lockup-renderer">\n    <div id="title" class="style-scope ytd-structured-description-channel-lockup-renderer">[[getSimpleString(data.title)]]</div>\n    <div id="subscriber-count" class="style-scope ytd-structured-description-channel-lockup-renderer">\n      [[getSimpleString(data.subscriberCountText)]]\n    </div>\n  </div>\n</a>\n');
a.content.insertBefore(_.w().content.cloneNode(!0),a.content.firstChild);return wof=a},{mode:1});var m6O;var kO=function(){var a=_.G.apply(this,arguments)||this;a.isCompact=!1;a.collections=_.K("web_modern_collections_v2");a.collectionsStackColor=_.K("modernize_structured_description_playlist_lockups_v2");return a};
_.b(kO,_.G);kO.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:_.K("defer_overlays")?1:void 0,waitForSignal:"eocs"}}};
_.eH.Object.defineProperties(kO.prototype,{twoLineTitle:{configurable:!0,enumerable:!0,get:function(){var a;return((a=this.data)==null?void 0:a.maxLinesTitle)===2}},
collectionStack:{configurable:!0,enumerable:!0,get:function(){var a,z,I,J,r,P;return{thumbnailSize:"small",doubleStack:!1,experimentEnabled:this.collections,sampledThumbnailColor:this.collectionsStackColor?(a=this.data)==null?void 0:(z=a.thumbnail)==null?void 0:z.sampledThumbnailColor:void 0,darkColorPalette:this.collectionsStackColor?(I=this.data)==null?void 0:(J=I.thumbnail)==null?void 0:J.darkColorPalette:void 0,vibrantColorPalette:this.collectionsStackColor?(r=this.data)==null?void 0:(P=r.thumbnail)==
null?void 0:P.vibrantColorPalette:void 0}}}});
_.L([_.Q(_.k.YtRendererBehavior),_.p("design:type",Object)],kO.prototype,"ytRendererBehavior",void 0);_.L([_.Q(_.Ms.YtComponentBehavior),_.p("design:type",Object)],kO.prototype,"componentBehavior",void 0);_.L([_.Q(_.u4.YtRendererstamperBehavior),_.p("design:type",Object)],kO.prototype,"ytRendererstamperBehavior",void 0);_.L([_.x(),_.p("design:type",Object)],kO.prototype,"data",void 0);_.L([_.x({reflectToAttribute:!0}),_.p("design:type",Boolean)],kO.prototype,"showSidePanelThumbnailOverlay",void 0);
_.L([_.x({reflectToAttribute:!0}),_.p("design:type",Object)],kO.prototype,"isCompact",void 0);_.L([_.x({reflectToAttribute:!0}),_.p("design:type",Boolean)],kO.prototype,"collections",void 0);_.L([_.x({reflectToAttribute:!0}),_.p("design:type",Object)],kO.prototype,"collectionsStackColor",void 0);_.L([_.S("data"),_.x({reflectToAttribute:!0}),_.p("design:type",Boolean),_.p("design:paramtypes",[])],kO.prototype,"twoLineTitle",null);
_.L([_.S("data","collections","collectionsStackColor"),_.p("design:type",Object),_.p("design:paramtypes",[])],kO.prototype,"collectionStack",null);_.L([_.U({is:"ytd-structured-description-playlist-lockup-renderer",disableElementRegistration:!0})],kO);
_.D(kO,"ytd-structured-description-playlist-lockup-renderer",function(){if(m6O!==void 0)return m6O;var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-structured-description-playlist-lockup-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<a id="lockup-container" class="yt-simple-endpoint style-scope ytd-structured-description-playlist-lockup-renderer" data="[[data.navigationEndpoint]]" href$="[[computeOptionalHref_(data.navigationEndpoint)]]">\n  <yt-collections-stack data="[[collectionStack]]" class="style-scope ytd-structured-description-playlist-lockup-renderer"></yt-collections-stack>\n  <div id="playlist-thumbnail" class="style-scope ytd-structured-description-playlist-lockup-renderer">\n    <yt-img-shadow id="thumbnail" alt="[[getSimpleString(data.title)]]" thumbnail="[[data.thumbnail]]" width="[[data.thumbnailWidth]]" class="style-scope ytd-structured-description-playlist-lockup-renderer">\n    </yt-img-shadow>\n    <span id="overlay" hidden="[[showSidePanelThumbnailOverlay]]" class="style-scope ytd-structured-description-playlist-lockup-renderer">[[getSimpleString(data.videoCountShortText)]]</span>\n    <div id="overlays" class="style-scope ytd-structured-description-playlist-lockup-renderer"></div>\n  </div>\n</a>\n<div id="description" class="style-scope ytd-structured-description-playlist-lockup-renderer">\n  <div id="title" class="style-scope ytd-structured-description-playlist-lockup-renderer">[[getSimpleString(data.title)]]</div>\n  <div id="subtitle" class="style-scope ytd-structured-description-playlist-lockup-renderer">[[getSimpleString(data.shortBylineText)]]</div>\n  <ytd-badge-supported-renderer id="badges" badges="[[data.badges]]" hidden="[[!data.badges]]" role="text" class="style-scope ytd-structured-description-playlist-lockup-renderer">\n  </ytd-badge-supported-renderer>\n</div>\n');a.content.insertBefore(_.w().content.cloneNode(!0),
a.content.firstChild);return m6O=a},{mode:1});var yZ1;var Mv=function(){return _.G.apply(this,arguments)||this};
_.b(Mv,_.G);_.L([_.Q(_.k.YtRendererBehavior),_.p("design:type",Object)],Mv.prototype,"ytRendererBehavior",void 0);_.L([_.Q(_.Ms.YtComponentBehavior),_.p("design:type",Object)],Mv.prototype,"componentBehavior",void 0);_.L([_.x(),_.p("design:type",Object)],Mv.prototype,"data",void 0);_.L([_.U({is:"ytd-structured-description-video-lockup-renderer",disableElementRegistration:!0})],Mv);
_.D(Mv,"ytd-structured-description-video-lockup-renderer",function(){if(yZ1!==void 0)return yZ1;var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-structured-description-video-lockup-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<ytd-thumbnail data="[[data]]" hovered="[[lockupIsHovered]]" use-expandable-tooltip="[[useExpandableTooltip]]" width="[[data.thumbnailWidth]]" class="style-scope ytd-structured-description-video-lockup-renderer">\n</ytd-thumbnail>\n<a id="text-wrapper" class="yt-simple-endpoint style-scope ytd-structured-description-video-lockup-renderer" data="[[data.navigationEndpoint]]" href$="[[computeOptionalHref_(data.navigationEndpoint)]]">\n  <div id="description" class="style-scope ytd-structured-description-video-lockup-renderer">\n    <div id="title" class="style-scope ytd-structured-description-video-lockup-renderer">[[getSimpleString(data.title)]]</div>\n    <div id="subtitle" class="style-scope ytd-structured-description-video-lockup-renderer">[[getSimpleString(data.shortBylineText)]]</div>\n    <yt-formatted-string id="metadata-details" disable-upgrade$="[[!data.metadataDetails]]" hidden="[[!data.metadataDetails]]" no-endpoints="" text="[[data.metadataDetails]]" class="style-scope ytd-structured-description-video-lockup-renderer">\n    </yt-formatted-string>\n  </div>\n</a>\n');
a.content.insertBefore(_.w().content.cloneNode(!0),a.content.firstChild);return yZ1=a},{mode:2});var c_=function(){return _.G.apply(this,arguments)||this};
_.b(c_,_.G);
c_.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}}}}}};
_.L([_.Q(_.k.YtRendererBehavior),_.p("design:type",Object)],c_.prototype,"ytRendererBehavior",void 0);_.L([_.Q(_.u4.YtRendererstamperBehavior),_.p("design:type",Object)],c_.prototype,"ytRendererstamperBehavior",void 0);_.L([_.x(),_.p("design:type",Object)],c_.prototype,"data",void 0);_.L([_.U({is:"ytd-compact-infocard-renderer",disableElementRegistration:!0})],c_);
_.D(c_,"ytd-compact-infocard-renderer",function(){if(lrG!==void 0)return lrG;var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-compact-infocard-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="content" class="style-scope ytd-compact-infocard-renderer"></div>\n');a.content.insertBefore(_.w().content.cloneNode(!0),a.content.firstChild);return lrG=a},{mode:1});var kiO;var YO=function(){var a=_.G.apply(this,arguments)||this;a.useModernCollectionsV2=_.K("web_modern_collections_v2");return a};
_.b(YO,_.G);YO.prototype.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:{component:"ytd-menu-renderer"}}},dismissedRenderer:{id:"dismissed",mapping:{notificationTextRenderer:"ytd-notification-text-renderer"}}}};
_.eH.Object.defineProperties(YO.prototype,{watchFeedBigThumbs:{configurable:!0,enumerable:!0,get:function(){return _.K("kevlar_watch_feed_big_thumbs")?!0:!!this.isGridViewEnabled}},
thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){return this.isGridViewEnabled||_.K("kevlar_watch_feed_big_thumbs")?"9999":"168"}},
customThumbnailSize:{configurable:!0,enumerable:!0,get:function(){return this.isGridViewEnabled||_.K("kevlar_watch_feed_big_thumbs")?"":"94"}}});
_.L([_.Q(_.k.YtRendererBehavior),_.p("design:type",Object)],YO.prototype,"ytRendererBehavior",void 0);_.L([_.Q(_.u4.YtRendererstamperBehavior),_.p("design:type",Object)],YO.prototype,"ytRendererstamperBehavior",void 0);_.L([_.Q(_.mD),_.p("design:type",Object)],YO.prototype,"ytdDismissibleItemBehavior",void 0);_.L([_.Q(_.pV),_.p("design:type",Object)],YO.prototype,"ytdReduxBehavior",void 0);_.L([_.x({selector:_.W8}),_.p("design:type",Object)],YO.prototype,"isGridViewEnabled",void 0);
_.L([_.S("isGridViewEnabled"),_.x({reflectToAttribute:!0}),_.p("design:type",Boolean),_.p("design:paramtypes",[])],YO.prototype,"watchFeedBigThumbs",null);_.L([_.S("isGridViewEnabled","data"),_.x({reflectToAttribute:!0,value:"168"}),_.p("design:type",String),_.p("design:paramtypes",[])],YO.prototype,"thumbnailWidth",null);_.L([_.S("isGridViewEnabled","data"),_.x({reflectToAttribute:!0,value:"94"}),_.p("design:type",String),_.p("design:paramtypes",[])],YO.prototype,"customThumbnailSize",null);
_.L([_.x(),_.p("design:type",Object)],YO.prototype,"data",void 0);_.L([_.x({reflectToAttribute:!0}),_.p("design:type",Object)],YO.prototype,"useModernCollectionsV2",void 0);_.L([_.U({is:"ytd-compact-playlist-renderer",disableElementRegistration:!0})],YO);
_.D(YO,"ytd-compact-playlist-renderer",function(){if(kiO!==void 0)return kiO;var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-compact-playlist-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="dismissible" class="style-scope ytd-compact-playlist-renderer">\n  <ytd-playlist-thumbnail custom-thumbnail-size="[[customThumbnailSize]]" data="[[data]]" height="94" watch-feed-thumbnail="[[watchFeedBigThumbs]]" width="[[thumbnailWidth]]" class="style-scope ytd-compact-playlist-renderer">\n  </ytd-playlist-thumbnail>\n  <div class="details style-scope ytd-compact-playlist-renderer">\n    <div class="metadata style-scope ytd-compact-playlist-renderer">\n      <a id="title" class="yt-simple-endpoint style-scope ytd-compact-playlist-renderer" href$="[[computeHref_(data.navigationEndpoint)]]" data="[[data.navigationEndpoint]]">\n        <h3 class="style-scope ytd-compact-playlist-renderer">\n          <ytd-badge-supported-renderer top-standalone-badge="[[data.topStandaloneBadge]]" class="style-scope ytd-compact-playlist-renderer">\n          </ytd-badge-supported-renderer>\n          <span id="video-title" title$="[[getSimpleString(data.title)]]" aria-label$="[[data.title.accessibility.accessibilityData.label]]" class="style-scope ytd-compact-playlist-renderer">\n            [[getSimpleString(data.title)]]\n          </span>\n        </h3>\n        <div class="secondary-metadata style-scope ytd-compact-playlist-renderer">\n          <ytd-video-meta-block class="compact style-scope ytd-compact-playlist-renderer" data="[[data]]" no-endpoints="" watch-feed-big-thumbs="[[watchFeedBigThumbs]]">\n          </ytd-video-meta-block>\n          <ytd-badge-supported-renderer id="badges" badges="[[data.badges]]" hidden="[[!data.badges]]" class="style-scope ytd-compact-playlist-renderer">\n          </ytd-badge-supported-renderer>\n        </div>\n      </a>\n    </div>\n    <div id="menu" class="style-scope ytd-compact-playlist-renderer"></div>\n  </div>\n</div>\n<div id="dismissed" class="style-scope ytd-compact-playlist-renderer"></div>\n');a.content.insertBefore(_.w().content.cloneNode(!0),
a.content.firstChild);return kiO=a},{mode:1});var Msw;var qv=function(){var a=_.G.apply(this,arguments)||this;a.darkerDarkTheme=_.K("web_darker_dark_theme");a.roundedContainer=!0;a.actionMap={"ytd-update-elements-per-row-action":"onUpdateElementsPerRowAction"};return a};
_.b(qv,_.G);_.Z=qv.prototype;_.Z.attached=function(){this.requestElementsPerRow()};
_.Z.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"}}}};
_.Z.dataChanged=function(){this.hideThumbnail=!1;this.requestElementsPerRow()};
_.Z.computeViewStyle=function(a){return a.style?a.style:"COMPACT_PROMOTED_ITEM_STYLE_UNSPECIFIED"};
_.Z.onUpdateElementsPerRowAction=function(a){this.hideThumbnail=this.viewStyle==="COMPACT_PROMOTED_ITEM_STYLE_RICH_GRID"&&a===1};
_.Z.requestElementsPerRow=function(){_.PA(this.hostElement,"yt-request-elements-per-row")};
qv.prototype.dataChanged=qv.prototype.dataChanged;_.L([_.Q(_.k.YtRendererBehavior),_.p("design:type",Object)],qv.prototype,"ytRendererBehavior",void 0);_.L([_.Q(_.u4.YtRendererstamperBehavior),_.p("design:type",Object)],qv.prototype,"ytRendererstamperBehavior",void 0);_.L([_.Q(_.mD),_.p("design:type",Object)],qv.prototype,"ytdDismissibleItemBehavior",void 0);_.L([_.Q(_.Hc.YtActionHandlerBehavior),_.p("design:type",Object)],qv.prototype,"actionHandlerBehavior",void 0);
_.L([_.x(),_.p("design:type",Object)],qv.prototype,"data",void 0);_.L([_.x({value:!1}),_.p("design:type",Boolean)],qv.prototype,"hideThumbnail",void 0);_.L([_.x({reflectToAttribute:!0,computed:"computeViewStyle(data)"}),_.p("design:type",String)],qv.prototype,"viewStyle",void 0);_.L([_.x({reflectToAttribute:!0}),_.p("design:type",Object)],qv.prototype,"darkerDarkTheme",void 0);_.L([_.x({reflectToAttribute:!0}),_.p("design:type",Object)],qv.prototype,"roundedContainer",void 0);
_.L([_.Fe("data"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],qv.prototype,"dataChanged",null);_.L([_.U({is:"ytd-compact-promoted-item-renderer",disableElementRegistration:!0})],qv);
_.D(qv,"ytd-compact-promoted-item-renderer",function(){if(Msw!==void 0)return Msw;var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-compact-promoted-item-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="dismissible" class="style-scope ytd-compact-promoted-item-renderer">\n<ytd-thumbnail data="[[data]]" hidden$="[[hideThumbnail]]" width="100" class="style-scope ytd-compact-promoted-item-renderer"></ytd-thumbnail>\n  <div id="content" class="style-scope ytd-compact-promoted-item-renderer">\n    <div id="info" class="style-scope ytd-compact-promoted-item-renderer">\n      <h3 class="style-scope ytd-compact-promoted-item-renderer">\n        <yt-formatted-string id="title" text="[[data.title]]" class="style-scope ytd-compact-promoted-item-renderer"></yt-formatted-string>\n      </h3>\n      <div id="subtitle-container" class="style-scope ytd-compact-promoted-item-renderer">\n        <yt-formatted-string id="subtitle" text="[[data.subtitle]]" class="style-scope ytd-compact-promoted-item-renderer"></yt-formatted-string>\n        <ytd-badge-supported-renderer id="featured-badge" hidden="[[!data.badge]]" top-standalone-badge="[[data.badge]]" class="style-scope ytd-compact-promoted-item-renderer">\n        </ytd-badge-supported-renderer>\n      </div>\n    </div>\n    <div id="button" class="style-scope ytd-compact-promoted-item-renderer"></div>\n  </div>\n  <div id="dismiss-button" class="style-scope ytd-compact-promoted-item-renderer"></div>\n</div>\n<div id="dismissed" class="style-scope ytd-compact-promoted-item-renderer"></div>\n');a.content.insertBefore(_.w().content.cloneNode(!0),
a.content.firstChild);return Msw=a},{mode:1});var cZX;var ee=function(){var a=_.G.apply(this,arguments)||this;a.collections=_.K("web_modern_collections_v2");return a};
_.b(ee,_.G);ee.prototype.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:{component:"ytd-menu-renderer"}}},dismissedRenderer:{id:"dismissed",mapping:{notificationTextRenderer:"ytd-notification-text-renderer"}}}};
ee.prototype.attached=function(){this.hostElement.classList.add("use-ellipsis")};
ee.prototype.onYtNavigate=function(a,z){var I=this;if(z.endpoint===this.data.navigationEndpoint&&this.get("endpoint.watchEndpoint.continuePlayback",z)){var J=this.get("watchEndpoint.videoId",z.endpoint),r=_.Ct(this.hostElement,"yt-get-current-video-id-action")[0];_.K("kevlar_mix_handle_first_endpoint_different")&&J&&r&&J!==r||(a.stopPropagation(),_.IK().getPlayerPromise().then(function(P){if(P.getPlayerState()===0&&I.data.secondaryNavigationEndpoint)var N=I.data.secondaryNavigationEndpoint;else{N=
Object.assign({},z.endpoint);var u=_.H(N.commandMetadata,_.O_);u&&(P=Math.floor(P.getCurrentTime()),u.url=_.yO(u.url,{t:P}),!_.K("kevlar_add_start_time_to_mix_endpoint_killswitch")&&(u=_.H(N,_.MZ)))&&(u.startTimeSeconds=P)}_.PA(I.hostElement,"yt-navigate",{endpoint:N})}))}};
_.eH.Object.defineProperties(ee.prototype,{watchFeedBigThumbs:{configurable:!0,enumerable:!0,get:function(){return _.K("kevlar_watch_feed_big_thumbs")?!0:!!this.isGridViewEnabled}},
thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){return this.isGridViewEnabled||_.K("kevlar_watch_feed_big_thumbs")?"9999":"168"}},
collectionStack:{configurable:!0,enumerable:!0,get:function(){var a,z,I,J,r,P;return{thumbnailSize:"medium",doubleStack:!1,sampledThumbnailColor:(a=this.data)==null?void 0:(z=a.thumbnail)==null?void 0:z.sampledThumbnailColor,vibrantColorPalette:(I=this.data)==null?void 0:(J=I.thumbnail)==null?void 0:J.vibrantColorPalette,darkColorPalette:(r=this.data)==null?void 0:(P=r.thumbnail)==null?void 0:P.darkColorPalette,experimentEnabled:this.collections}}}});
ee.prototype.onYtNavigate=ee.prototype.onYtNavigate;_.L([_.Q(_.k.YtRendererBehavior),_.p("design:type",Object)],ee.prototype,"ytRendererBehavior",void 0);_.L([_.Q(_.FW.YtEndpointBehavior),_.p("design:type",Object)],ee.prototype,"ytEndpointBehavior",void 0);_.L([_.Q(_.u4.YtRendererstamperBehavior),_.p("design:type",Object)],ee.prototype,"ytRendererstamperBehavior",void 0);_.L([_.Q(_.mD),_.p("design:type",Object)],ee.prototype,"ytdDismissibleItemBehavior",void 0);
_.L([_.Q(_.eB),_.p("design:type",Object)],ee.prototype,"ytdLockupBehavior",void 0);_.L([_.Q(_.pV),_.p("design:type",Object)],ee.prototype,"ytdReduxBehavior",void 0);_.L([_.x({selector:_.W8}),_.p("design:type",Object)],ee.prototype,"isGridViewEnabled",void 0);_.L([_.S("isGridViewEnabled"),_.x({reflectToAttribute:!0}),_.p("design:type",Boolean),_.p("design:paramtypes",[])],ee.prototype,"watchFeedBigThumbs",null);
_.L([_.S("isGridViewEnabled"),_.x({reflectToAttribute:!0}),_.p("design:type",String),_.p("design:paramtypes",[])],ee.prototype,"thumbnailWidth",null);_.L([_.x(),_.p("design:type",Object)],ee.prototype,"data",void 0);_.L([_.x({reflectToAttribute:!0}),_.p("design:type",Boolean)],ee.prototype,"collections",void 0);_.L([_.S("data","collections"),_.p("design:type",Object),_.p("design:paramtypes",[])],ee.prototype,"collectionStack",null);
_.L([_.gz("yt-navigate"),_.p("design:type",Function),_.p("design:paramtypes",[CustomEvent,Object]),_.p("design:returntype")],ee.prototype,"onYtNavigate",null);_.L([_.U({is:"ytd-compact-radio-renderer",disableElementRegistration:!0})],ee);
_.D(ee,"ytd-compact-radio-renderer",function(){if(cZX!==void 0)return cZX;var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-compact-radio-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="dismissible" class="style-scope ytd-compact-radio-renderer">\n  <div class="modern-collection-parent style-scope ytd-compact-radio-renderer">\n    <yt-collections-stack data="[[collectionStack]]" class="style-scope ytd-compact-radio-renderer"></yt-collections-stack>\n    <ytd-thumbnail data="[[data]]" height="94" hovered="[[lockupIsHovered]]" use-hovered-property="" watch-feed-thumbnail="[[watchFeedBigThumbs]]" width="[[thumbnailWidth]]" class="style-scope ytd-compact-radio-renderer">\n    </ytd-thumbnail>\n  </div>\n  <div class="details style-scope ytd-compact-radio-renderer">\n    <div class="metadata style-scope ytd-compact-radio-renderer">\n      <a id="title" class="yt-simple-endpoint style-scope ytd-compact-radio-renderer" href$="[[computeHref_(data.navigationEndpoint)]]" data="[[data.navigationEndpoint]]">\n        <h3 class="style-scope ytd-compact-radio-renderer">\n          <ytd-badge-supported-renderer top-standalone-badge="[[data.topStandaloneBadge]]" class="style-scope ytd-compact-radio-renderer">\n          </ytd-badge-supported-renderer>\n          <span id="video-title" title$="[[getSimpleString(data.title)]]" aria-label$="[[data.title.accessibility.accessibilityData.label]]" class="style-scope ytd-compact-radio-renderer">\n            [[getSimpleString(data.title)]]\n          </span>\n        </h3>\n        <ytd-video-meta-block class="compact style-scope ytd-compact-radio-renderer" data="[[data]]" no-endpoints="" radio-meta="">\n        </ytd-video-meta-block>\n      </a>\n    </div>\n    <div id="menu" class="style-scope ytd-compact-radio-renderer"></div>\n  </div>\n</div>\n<div id="dismissed" class="style-scope ytd-compact-radio-renderer"></div>\n<yt-interaction id="interaction" class="extended style-scope ytd-compact-radio-renderer"></yt-interaction>\n');a.content.insertBefore(_.w().content.cloneNode(!0),
a.content.firstChild);return cZX=a},{mode:1});var Yii;var aP=function(){return _.G.apply(this,arguments)||this};
_.b(aP,_.G);aP.prototype.configureRendererStamper=function(){return{"data.button":{id:"action-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{alignByText:!1}}}}}};
aP.prototype.computeRendererStyle=function(a){return a.style?a.style.split("STYLE_")[1].replace(/_/g,"-").toLowerCase():""};
_.L([_.x(),_.p("design:type",Object)],aP.prototype,"data",void 0);_.L([_.Q(_.u4.YtRendererstamperBehavior),_.p("design:type",Object)],aP.prototype,"ytRendererstamperBehavior",void 0);_.L([_.Q(_.k.YtRendererBehavior),_.p("design:type",Object)],aP.prototype,"rendererBehavior",void 0);_.L([_.x({computed:"computeRendererStyle(data)",reflectToAttribute:!0}),_.p("design:type",String)],aP.prototype,"rendererStyle",void 0);_.L([_.U({is:"ytd-compact-text-promo-renderer",disableElementRegistration:!0})],aP);
_.D(aP,"ytd-compact-text-promo-renderer",function(){if(Yii!==void 0)return Yii;var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-compact-text-promo-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<ytd-badge-supported-renderer id="featured-badge" hidden="[[!data.badge]]" top-standalone-badge="[[data.badge]]" class="style-scope ytd-compact-text-promo-renderer">\n</ytd-badge-supported-renderer>\n<yt-formatted-string class="title style-scope ytd-compact-text-promo-renderer" text="[[data.title]]">\n</yt-formatted-string>\n<yt-formatted-string class="subtitle style-scope ytd-compact-text-promo-renderer" force-default-style="" text="[[data.subTitle]]">\n</yt-formatted-string>\n<div id="action-button" class="style-scope ytd-compact-text-promo-renderer"></div>\n');
a.content.insertBefore(_.w().content.cloneNode(!0),a.content.firstChild);return Yii=a},{mode:1});var qiw;var jy=function(){var a=_.G.apply(this,arguments)||this;a.isShortsStyle=!1;return a};
_.b(jy,_.G);_.Z=jy.prototype;_.Z.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"}}}};
_.Z.disableInteractionChanged=function(){this.isShortsStyle||(this.disableInteraction?_.PA(this.hostElement,"yt-disable-lockup-interaction"):_.PA(this.hostElement,"yt-enable-lockup-interaction"))};
_.Z.isMetaBlockEmpty=function(a){return!a||!a.longBylineText&&!a.shortBylineText&&!a.shortViewCountText&&!a.viewCountText};
_.Z.computeHasOneLineTitle=function(a){return this.forceOneLineTitle||!(a==null||!a.buttons)};
_.Z.computeDisableInteraction=function(){var a;return!((a=this.data)==null?0:a.navigationEndpoint)};
_.Z.hasSingularTopStandaloneBadge=function(){var a;return!((a=this.data)==null||!a.topStandaloneBadge)};
_.eH.Object.defineProperties(jy.prototype,{watchFeedBigThumbs:{configurable:!0,enumerable:!0,get:function(){return _.K("kevlar_watch_feed_big_thumbs")?!0:!!this.isGridViewEnabled}},
thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){return this.isGridViewEnabled||_.K("kevlar_watch_feed_big_thumbs")?"9999":"168"}},
shouldShowTopBadges:{configurable:!0,enumerable:!0,get:function(){return this.hasSingularTopStandaloneBadge()}},
topBadges:{configurable:!0,enumerable:!0,get:function(){var a;return this.hasSingularTopStandaloneBadge()?[(a=this.data)==null?void 0:a.topStandaloneBadge]:[]}},
inlineMetadataBadges:{configurable:!0,enumerable:!0,get:function(){var a;return this.shouldShowTopBadges?((a=this.data)==null?void 0:a.badges)||[]:[]}},
shouldShowBadgesBelowMetadata:{configurable:!0,enumerable:!0,get:function(){return!this.shouldShowTopBadges}},
compactTitleClass:{configurable:!0,enumerable:!0,get:function(){return this.shouldShowTopBadges?"compact-title":""}}});
jy.prototype.disableInteractionChanged=jy.prototype.disableInteractionChanged;_.L([_.Q(_.k.YtRendererBehavior),_.p("design:type",Object)],jy.prototype,"ytRendererBehavior",void 0);_.L([_.Q(_.u4.YtRendererstamperBehavior),_.p("design:type",Object)],jy.prototype,"ytRendererstamperBehavior",void 0);_.L([_.Q(_.mD),_.p("design:type",Object)],jy.prototype,"ytdDismissibleItemBehavior",void 0);_.L([_.Q(_.eB),_.p("design:type",Object)],jy.prototype,"ytdLockupBehavior",void 0);
_.L([_.Q(_.pV),_.p("design:type",Object)],jy.prototype,"ytdReduxBehavior",void 0);_.L([_.x({reflectToAttribute:!0,computed:"isMetaBlockEmpty(data)"}),_.p("design:type",Boolean)],jy.prototype,"metaBlockEmpty",void 0);_.L([_.x({selector:_.W8}),_.p("design:type",Object)],jy.prototype,"isGridViewEnabled",void 0);_.L([_.S("isGridViewEnabled"),_.x({reflectToAttribute:!0}),_.p("design:type",Boolean),_.p("design:paramtypes",[])],jy.prototype,"watchFeedBigThumbs",null);
_.L([_.S("isGridViewEnabled"),_.x({reflectToAttribute:!0}),_.p("design:type",String),_.p("design:paramtypes",[])],jy.prototype,"thumbnailWidth",null);_.L([_.x({reflectToAttribute:!0}),_.p("design:type",Object)],jy.prototype,"isShortsStyle",void 0);_.L([_.x(),_.p("design:type",Object)],jy.prototype,"data",void 0);_.L([_.x({reflectToAttribute:!0,computed:"computeHasOneLineTitle(data)"}),_.p("design:type",Boolean)],jy.prototype,"hasOneLineTitle",void 0);
_.L([_.x(),_.p("design:type",Boolean)],jy.prototype,"hideThumbnail",void 0);_.L([_.x(),_.p("design:type",Boolean)],jy.prototype,"forceOneLineTitle",void 0);_.L([_.x({reflectToAttribute:!0,computed:"computeDisableInteraction(data)"}),_.p("design:type",Boolean)],jy.prototype,"disableInteraction",void 0);_.L([_.x({reflectToAttribute:!0}),_.p("design:type",Boolean)],jy.prototype,"musicMetadataVideoLockup",void 0);
_.L([_.O8("disableInteraction"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],jy.prototype,"disableInteractionChanged",null);_.L([_.S("data"),_.p("design:type",Boolean),_.p("design:paramtypes",[])],jy.prototype,"shouldShowTopBadges",null);_.L([_.S("data"),_.p("design:type",Array),_.p("design:paramtypes",[])],jy.prototype,"topBadges",null);
_.L([_.S("shouldShowTopBadges","data"),_.p("design:type",Array),_.p("design:paramtypes",[])],jy.prototype,"inlineMetadataBadges",null);_.L([_.S("shouldShowTopBadges"),_.p("design:type",Boolean),_.p("design:paramtypes",[])],jy.prototype,"shouldShowBadgesBelowMetadata",null);_.L([_.S("data"),_.p("design:type",Object),_.p("design:paramtypes",[])],jy.prototype,"compactTitleClass",null);_.L([_.U({is:"ytd-compact-video-renderer",disableElementRegistration:!0})],jy);
_.D(jy,"ytd-compact-video-renderer",function(){if(qiw!==void 0)return qiw;var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-compact-video-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="dismissible" class="style-scope ytd-compact-video-renderer">\n  <ytd-thumbnail data="[[data]]" disable-interaction="[[disableInteraction]]" hidden$="[[hideThumbnail]]" hovered="[[lockupIsHovered]]" queued="[[queued]]" use-expandable-tooltip="[[useExpandableTooltip]]" use-hovered-property="" width="[[thumbnailWidth]]" class="style-scope ytd-compact-video-renderer">\n  </ytd-thumbnail>\n  <div class="details style-scope ytd-compact-video-renderer">\n    <div class="metadata style-scope ytd-compact-video-renderer">\n      <a class="yt-simple-endpoint style-scope ytd-compact-video-renderer" href$="[[computeHref_(data.navigationEndpoint)]]" data="[[data.navigationEndpoint]]" rel="[[computeNofollow_(data.navigationEndpoint)]]">\n        <h3 class="style-scope ytd-compact-video-renderer">\n          \n          <ytd-badge-supported-renderer class="top-badge style-scope ytd-compact-video-renderer" badges="[[topBadges]]" collection-truncate="" hidden="[[!shouldShowTopBadges]]">\n          </ytd-badge-supported-renderer>\n          <span class$="[[compactTitleClass]] style-scope ytd-compact-video-renderer" id="video-title" title$="[[getSimpleString(data.title)]]" aria-label$="[[data.title.accessibility.accessibilityData.label]]">\n            [[getSimpleString(data.title)]]\n          </span>\n        </h3>\n        <div class="secondary-metadata style-scope ytd-compact-video-renderer">\n          \n          <ytd-video-meta-block class="compact style-scope ytd-compact-video-renderer" badges="[[inlineMetadataBadges]]" data="[[data]]" inline-badges="" no-endpoints="" truncate-metadata-line="" watch-feed-big-thumbs="[[watchFeedBigThumbs]]"></ytd-video-meta-block>\n          \n          <ytd-badge-supported-renderer class="badges style-scope ytd-compact-video-renderer" badges="[[data.badges]]" hidden="[[!shouldShowBadgesBelowMetadata]]" wrap-badges="">\n          </ytd-badge-supported-renderer>\n        </div>\n      </a>\n      <div id="buttons" class="style-scope ytd-compact-video-renderer"></div>\n    </div>\n    <div id="menu" class="style-scope ytd-compact-video-renderer"></div>\n    <div id="queue-button" class="style-scope ytd-compact-video-renderer"></div>\n  </div>\n</div>\n<div id="dismissed" class="style-scope ytd-compact-video-renderer"></div>\n<yt-interaction id="interaction" class="extended style-scope ytd-compact-video-renderer"></yt-interaction>\n');
a.content.insertBefore(_.w().content.cloneNode(!0),a.content.firstChild);return qiw=a},{mode:_.Np("kevlar_poly_si_batch_j067")?1:2});var ebf;_.$q("itemSectionRenderer","counterfactualRenderer","ytd-counterfactual-renderer");var zU=function(){return _.G.apply(this,arguments)||this};
_.b(zU,_.G);_.L([_.Q(_.k.YtRendererBehavior),_.p("design:type",Object)],zU.prototype,"ytRendererBehavior",void 0);_.L([_.x(),_.p("design:type",Object)],zU.prototype,"data",void 0);_.L([_.U({is:"ytd-counterfactual-renderer",disableElementRegistration:!0})],zU);
_.D(zU,"ytd-counterfactual-renderer",function(){if(ebf!==void 0)return ebf;var a=document.createElement("template");_.V(a,"\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-counterfactual-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e");a.content.insertBefore(_.w().content.cloneNode(!0),a.content.firstChild);return ebf=a},{mode:1});var aKI;var IP=function(){var a=_.G.apply(this,arguments)||this;a.hidden=!1;return a};
_.b(IP,_.G);IP.prototype.onSelect=function(){this.data&&this.data.onSelectCommand&&_.ab().resolve(_.j6).resolveCommand(this.data.onSelectCommand,{form:{element:this.hostElement}})};
IP.prototype.computeHidden=function(a){return!!a};
_.eH.Object.defineProperties(IP.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}}});
_.L([_.Q(_.k.YtRendererBehavior),_.p("design:type",Object)],IP.prototype,"ytRendererBehavior",void 0);_.L([_.x(),_.p("design:type",Object)],IP.prototype,"data",void 0);_.L([_.x({reflectToAttribute:!0,computed:"computeHidden(data.isHidden)"}),_.p("design:type",Object)],IP.prototype,"hidden",void 0);_.L([_.S("data.label"),_.p("design:type",String),_.p("design:paramtypes",[])],IP.prototype,"label",null);_.L([_.S("data"),_.p("design:type",Object),_.p("design:paramtypes",[])],IP.prototype,"value",null);
_.L([_.U({is:"ytd-dropdown-item-renderer",disableElementRegistration:!0})],IP);
_.D(IP,"ytd-dropdown-item-renderer",function(){if(aKI!==void 0)return aKI;var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-dropdown-item-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<tp-yt-paper-item id="item" aria-label$="[[data.accessibility.label]]" on-tap="onSelect" class="style-scope ytd-dropdown-item-renderer">\n  <yt-formatted-string id="label" text="[[data.label]]" class="style-scope ytd-dropdown-item-renderer">\n  </yt-formatted-string>\n</tp-yt-paper-item>\n');a.content.insertBefore(_.w().content.cloneNode(!0),
a.content.firstChild);return aKI=a},{mode:1});var jqe;var zBl;var J9=function(){return _.G.apply(this,arguments)||this};
_.b(J9,_.G);_.L([_.Q(_.k.YtRendererBehavior),_.p("design:type",Object)],J9.prototype,"ytRendererBehavior",void 0);_.L([_.x(),_.p("design:type",Object)],J9.prototype,"data",void 0);_.L([_.x({computed:"getSimpleString(data.label)"}),_.p("design:type",String)],J9.prototype,"label",void 0);_.L([_.U({is:"ytd-navigation-dropdown-item-renderer",disableElementRegistration:!0})],J9);
_.D(J9,"ytd-navigation-dropdown-item-renderer",function(){if(zBl!==void 0)return zBl;var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-navigation-dropdown-item-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e  <a class="yt-simple-endpoint style-scope ytd-navigation-dropdown-item-renderer" href$="[[computeHref_(data.endpoint)]]" data="[[data.endpoint]]" aria-label$="[[data.accessibility.accessibilityData.label]]">\n  <tp-yt-paper-item id="item" class="style-scope ytd-navigation-dropdown-item-renderer">\n    <yt-formatted-string id="label" text="[[data.label]]" class="style-scope ytd-navigation-dropdown-item-renderer"></yt-formatted-string>\n  </tp-yt-paper-item>\n</a>\n');
a.content.insertBefore(_.w().content.cloneNode(!0),a.content.firstChild);return zBl=a},{mode:1});var r6=function(){var a=_.G.apply(this,arguments)||this;a.disabled=!1;a.value="";a.noLabelFloat=!1;a.noUnderline=!1;a.usePrimaryColor=!1;a.hasBackground=!1;a.verticalAlign="top";a.autosize=!1;a.minAutosizeWidth=100;a.autosizeFont="14px Roboto";return a};
_.b(r6,_.G);_.Z=r6.prototype;_.Z.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"}}}};
_.Z.open=function(){this.inputEl.open()};
_.Z.reset=function(){this.entries.selected=-1;this.entries.forceSynchronousItemUpdate();this.entries.select(this.getSelectedItem())};
_.Z.dataChanged=function(){this.reset()};
_.Z.valueChangedForBinding=function(){this.hostElement.dispatchEvent(new _.eY("value-changed",this.value))};
_.Z.stopPropagation=function(a){a.stopPropagation()};
_.Z.autoSizeLabel=function(){if(this.autosizeFont&&this.autosize){this.canvas||(this.canvas=document.createElement("canvas"));var a=this.canvas.getContext("2d");a&&(a.font=this.autosizeFont,this.inputEl.style.width=Math.max(this.minAutosizeWidth,Number(a.measureText(this.inputEl.value).width)+24)+"px")}};
_.Z.getSelectedItem=function(){if(!this.data||!this.data.entries)return null;for(var a=0,z=this.data.entries.length;a<z;a++){var I=this.data.entries[a],J;for(J in I)if(I.hasOwnProperty(J)){var r=I[J];if("isSelected"in r&&r.isSelected)return"stringValue"in r?r.stringValue||"":"int32Value"in r?r.int32Value||0:0}}return null};
_.Z.updateValueFromBinding=function(a){this.value=a.detail.value};
_.eH.Object.defineProperties(r6.prototype,{label:{configurable:!0,enumerable:!0,get:function(){if(!this.data||!this.data.entries)return null;if(this.data.label)return this.data.label;for(var a=0,z=this.data.entries.length;a<z;a++){var I=this.data.entries[a],J;for(J in I)if(I.hasOwnProperty(J)){var r=I[J];if("isSelected"in r&&r.isSelected&&"label"in r)return this.ytRendererBehavior.getSimpleString(r.label)}}return null}}});
r6.prototype.autoSizeLabel=r6.prototype.autoSizeLabel;r6.prototype.stopPropagation=r6.prototype.stopPropagation;r6.prototype.valueChangedForBinding=r6.prototype.valueChangedForBinding;r6.prototype.dataChanged=r6.prototype.dataChanged;_.L([_.Q(_.k.YtRendererBehavior),_.p("design:type",Object)],r6.prototype,"ytRendererBehavior",void 0);_.L([_.Q(_.u4.YtRendererstamperBehavior),_.p("design:type",Object)],r6.prototype,"ytRendererStamperBehavior",void 0);
_.L([_.x(),_.p("design:type",Object)],r6.prototype,"data",void 0);_.L([_.x({reflectToAttribute:!0}),_.p("design:type",Object)],r6.prototype,"disabled",void 0);_.L([_.x(),_.p("design:type",Object)],r6.prototype,"value",void 0);_.L([_.x(),_.p("design:type",Object)],r6.prototype,"noLabelFloat",void 0);_.L([_.x({reflectToAttribute:!0}),_.p("design:type",Object)],r6.prototype,"noUnderline",void 0);_.L([_.x({reflectToAttribute:!0}),_.p("design:type",String)],r6.prototype,"theme",void 0);
_.L([_.x({reflectToAttribute:!0}),_.p("design:type",Object)],r6.prototype,"usePrimaryColor",void 0);_.L([_.x({reflectToAttribute:!0}),_.p("design:type",Object)],r6.prototype,"hasBackground",void 0);_.L([_.x(),_.p("design:type",Object)],r6.prototype,"verticalAlign",void 0);_.L([_.x(),_.p("design:type",Object)],r6.prototype,"autosize",void 0);_.L([_.x(),_.p("design:type",Object)],r6.prototype,"minAutosizeWidth",void 0);_.L([_.x(),_.p("design:type",Object)],r6.prototype,"autosizeFont",void 0);
_.L([_.A3("#entries"),_.p("design:type",Object)],r6.prototype,"entries",void 0);_.L([_.A3("#input"),_.p("design:type",Object)],r6.prototype,"inputEl",void 0);_.L([_.Fe("data"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],r6.prototype,"dataChanged",null);_.L([_.Fe("value"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],r6.prototype,"valueChangedForBinding",null);
_.L([_.gz("iron-overlay-opened"),_.gz("iron-overlay-closed"),_.p("design:type",Function),_.p("design:paramtypes",[CustomEvent]),_.p("design:returntype")],r6.prototype,"stopPropagation",null);_.L([_.gz("iron-select"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],r6.prototype,"autoSizeLabel",null);_.L([_.S("data"),_.p("design:type",Object),_.p("design:paramtypes",[])],r6.prototype,"label",null);
_.L([_.U({disableElementRegistration:!0,is:"ytd-dropdown-renderer"})],r6);
_.D(r6,"ytd-dropdown-renderer",function(){if(jqe!==void 0)return jqe;var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-dropdown-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<tp-yt-paper-dropdown-menu-light id="input" aria-label$="[[label]]" disabled="[[disabled]]" horizontal-align="left" label="[[label]]" no-label-float="[[noLabelFloat]]" vertical-align="[[verticalAlign]]" class="style-scope ytd-dropdown-renderer">\n  <tp-yt-paper-listbox id="entries" class="dropdown-content style-scope ytd-dropdown-renderer" slot="dropdown-content" attr-for-selected="value" selected="[[value]]" on-selected-changed="updateValueFromBinding">\n  </tp-yt-paper-listbox>\n</tp-yt-paper-dropdown-menu-light>\n');a.content.insertBefore(_.w().content.cloneNode(!0),
a.content.firstChild);return jqe=a},{mode:1});var IKG;var P5=function(){var a=_.G.apply(this,arguments)||this;a.isConstrainedList=!1;return a};
_.b(P5,_.G);P5.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"}}}};
P5.prototype.fillRestIfNoShowMore=function(){this.data&&!this.data.showMoreText&&this.ytLazyListBehavior.canShowMore&&this.ytLazyListBehavior.fillRemainingListItems()};
P5.prototype.onShowMoreClick=function(){this.ytLazyListBehavior.fillRemainingListItems()};
P5.prototype.computeViewAllHidden=function(a,z){return a||!z.viewAllEndpoint};
P5.prototype.fillRestIfNoShowMore=P5.prototype.fillRestIfNoShowMore;_.L([_.Q(_.k.YtRendererBehavior),_.p("design:type",Object)],P5.prototype,"ytRendererBehavior",void 0);_.L([_.Q(_.u4.YtRendererstamperBehavior),_.p("design:type",Object)],P5.prototype,"ytRendererstamperBehavior",void 0);_.L([_.Q(_.uQ.YtLazyListBehavior),_.p("design:type",Object)],P5.prototype,"ytLazyListBehavior",void 0);_.L([_.x(),_.p("design:type",Object)],P5.prototype,"data",void 0);
_.L([_.x({reflectToAttribute:!0}),_.p("design:type",Object)],P5.prototype,"isConstrainedList",void 0);_.L([_.Fe("data","canShowMore"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],P5.prototype,"fillRestIfNoShowMore",null);_.L([_.U({is:"ytd-expanded-shelf-contents-renderer",disableElementRegistration:!0})],P5);
_.D(P5,"ytd-expanded-shelf-contents-renderer",function(){if(IKG!==void 0)return IKG;var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-expanded-shelf-contents-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="grid-container" class="style-scope ytd-expanded-shelf-contents-renderer"></div>\n<yt-formatted-string aria-role="button" hidden="[[!canShowMore]]" text="[[data.showMoreText]]" on-click="onShowMoreClick" class="style-scope ytd-expanded-shelf-contents-renderer">\n</yt-formatted-string>\n  <a class="yt-simple-endpoint style-scope ytd-expanded-shelf-contents-renderer" href$="[[computeHref_(data.viewAllEndpoint)]]" data="[[data.viewAllEndpoint]]" hidden="[[computeViewAllHidden(canShowMore,data)]]">\n  <yt-formatted-string text="[[data.viewAllText]]" class="style-scope ytd-expanded-shelf-contents-renderer"></yt-formatted-string>\n</a>\n');a.content.insertBefore(_.w().content.cloneNode(!0),
a.content.firstChild);return IKG=a},{mode:_.Np("kevlar_poly_si_batch_j025")?1:2});var JpI;var Zb=function(){return _.G.apply(this,arguments)||this};
_.b(Zb,_.G);Zb.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}}}}}};
_.L([_.Q(_.k.YtRendererBehavior),_.p("design:type",Object)],Zb.prototype,"ytRendererBehavior",void 0);_.L([_.Q(_.u4.YtRendererstamperBehavior),_.p("design:type",Object)],Zb.prototype,"ytRendererstamperBehavior",void 0);_.L([_.x(),_.p("design:type",Object)],Zb.prototype,"data",void 0);_.L([_.U({is:"ytd-feed-channel-filter-header-renderer",disableElementRegistration:!0})],Zb);
_.D(Zb,"ytd-feed-channel-filter-header-renderer",function(){if(JpI!==void 0)return JpI;var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-feed-channel-filter-header-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<h2 class="style-scope ytd-feed-channel-filter-header-renderer">\n  <a class="yt-simple-endpoint style-scope ytd-feed-channel-filter-header-renderer" href$="[[computeHref_(data.navigationEndpoint)]]" data="[[data.navigationEndpoint]]">\n    <yt-img-shadow id="avatar" height="56" hidden="[[!data.avatar]]" thumbnail="[[data.avatar]]" width="56" class="style-scope ytd-feed-channel-filter-header-renderer">\n    </yt-img-shadow>\n    <div id="channel" class="style-scope ytd-feed-channel-filter-header-renderer">\n      <span id="title" class="style-scope ytd-feed-channel-filter-header-renderer">[[getSimpleString(data.title)]]</span>\n      <div id="view-channel-button" aria-hidden="" class="style-scope ytd-feed-channel-filter-header-renderer"></div>\n    </div>\n  </a>\n</h2>\n<div id="buttons" class="style-scope ytd-feed-channel-filter-header-renderer"></div>\n');
a.content.insertBefore(_.w().content.cloneNode(!0),a.content.firstChild);return JpI=a},{mode:1});var rpl;var Po1;var ZTI;var CF=function(){return _.G.apply(this,arguments)||this};
_.b(CF,_.G);_.Z=CF.prototype;_.Z.onClick=function(a){var z,I=(z=this.data)==null?void 0:z.sectionEndpoint;!_.qK(_.ch(a),this.hostElement,["A".toString()])&&I&&_.PA(this.hostElement,"yt-navigate",{endpoint:I})};
_.Z.computeHasSectionEndpoint=function(a){return(a==null?void 0:a.sectionEndpoint)!==void 0};
_.Z.computeShowHeaderAsLink=function(a){return(a==null?void 0:a.header)!==void 0&&(a==null?void 0:a.sectionEndpoint)!==void 0};
_.Z.computeShowSubheaderAsLink=function(a){return(a==null?void 0:a.subheader)!==void 0&&(a==null?void 0:a.sectionEndpoint)!==void 0&&(a==null?void 0:a.header)===void 0};
_.Z.getHeaderAsLinkClass=function(a){var z=[],I;(a==null?0:(I=a.headerIcon)==null?0:I.iconType)&&z.push("header-link-active");return z.join(" ")};
_.L([_.Q(_.Ms.YtComponentBehavior),_.p("design:type",Object)],CF.prototype,"ytComponentBehavior",void 0);_.L([_.Q(_.k.YtRendererBehavior),_.p("design:type",Object)],CF.prototype,"ytRendererBehavior",void 0);_.L([_.Q(_.u4.YtRendererstamperBehavior),_.p("design:type",Object)],CF.prototype,"ytRendererstamperBehavior",void 0);_.L([_.x(),_.p("design:type",Object)],CF.prototype,"data",void 0);
_.L([_.x({computed:"computeHasSectionEndpoint(data)",reflectToAttribute:!0}),_.p("design:type",Boolean)],CF.prototype,"hasSectionEndpoint",void 0);_.L([_.x({computed:"computeShowHeaderAsLink(data)"}),_.p("design:type",Boolean)],CF.prototype,"showHeaderAsLink",void 0);_.L([_.x({computed:"computeShowSubheaderAsLink(data)"}),_.p("design:type",Boolean)],CF.prototype,"showSubheaderAsLink",void 0);_.L([_.U({is:"ytd-medical-panel-section-renderer",disableElementRegistration:!0})],CF);
_.D(CF,"ytd-medical-panel-section-renderer",function(){if(ZTI!==void 0)return ZTI;var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-medical-panel-section-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="section" on-click="onClick" class="style-scope ytd-medical-panel-section-renderer">\n  <div id="header" hidden="[[!data.header]]" class="style-scope ytd-medical-panel-section-renderer">\n    <yt-formatted-string hidden="[[showHeaderAsLink]]" text="[[data.header]]" class="style-scope ytd-medical-panel-section-renderer"></yt-formatted-string>\n    <a id="header-link" class$="yt-simple-endpoint [[getHeaderAsLinkClass(data)]] style-scope ytd-medical-panel-section-renderer" hidden="[[!showHeaderAsLink]]" href$="[[computeHref_(data.sectionEndpoint)]]" data="[[data.sectionEndpoint]]">\n      <yt-formatted-string text="[[data.header]]" class="style-scope ytd-medical-panel-section-renderer"></yt-formatted-string>\n      <yt-icon class="icons style-scope ytd-medical-panel-section-renderer" hidden="[[!data.headerIcon.iconType]]" icon="[[data.headerIcon.iconType]]">\n      </yt-icon>\n    </a>\n  </div>\n\n  <div id="subheader" hidden="[[!data.subheader]]" class="style-scope ytd-medical-panel-section-renderer">\n    <yt-formatted-string hidden="[[showSubheaderAsLink]]" text="[[data.subheader]]" class="style-scope ytd-medical-panel-section-renderer">\n    </yt-formatted-string>\n    <a id="subheader-link" class="yt-simple-endpoint style-scope ytd-medical-panel-section-renderer" hidden="[[!showSubheaderAsLink]]" href$="[[computeHref_(data.sectionEndpoint)]]" data="[[data.sectionEndpoint]]">\n      <yt-formatted-string text="[[data.subheader]]" class="style-scope ytd-medical-panel-section-renderer"></yt-formatted-string>\n    </a>\n  </div>\n  <div id="paragraphs" class="style-scope ytd-medical-panel-section-renderer">\n    <template is="dom-repeat" items="[[data.paragraphs]]" class="style-scope ytd-medical-panel-section-renderer">\n      <div class="paragraph style-scope ytd-medical-panel-section-renderer">\n        <yt-formatted-string split-lines="" text="[[item]]" class="style-scope ytd-medical-panel-section-renderer"></yt-formatted-string>\n      </div>\n    </template>\n  </div>\n  <div id="footer" hidden="[[!data.footer]]" class="style-scope ytd-medical-panel-section-renderer">\n    <yt-formatted-string link-inherit-color="" text="[[data.footer]]" class="style-scope ytd-medical-panel-section-renderer"></yt-formatted-string>\n  </div>\n</div>\n');
a.content.insertBefore(_.w().content.cloneNode(!0),a.content.firstChild);return ZTI=a},{mode:1});var N4=function(){var a=_.G.apply(this,arguments)||this;a.isExpanded=!1;a.roundedContainer=!0;a.skipRoundingTop=!1;a.toggleExpandableSection=function(){a.isExpanded=!a.isExpanded};
return a};
_.b(N4,_.G);
N4.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]]"}}}}}};
N4.prototype.dataChanged=function(){this.data&&(this.isExpanded=!1)};
N4.prototype.dataChanged=N4.prototype.dataChanged;_.L([_.Q(_.k.YtRendererBehavior),_.p("design:type",Object)],N4.prototype,"ytRendererBehavior",void 0);_.L([_.Q(_.u4.YtRendererstamperBehavior),_.p("design:type",Object)],N4.prototype,"ytRendererstamperBehavior",void 0);_.L([_.x(),_.p("design:type",Object)],N4.prototype,"data",void 0);_.L([_.x(),_.p("design:type",Object)],N4.prototype,"isExpanded",void 0);_.L([_.x({reflectToAttribute:!0}),_.p("design:type",Object)],N4.prototype,"roundedContainer",void 0);
_.L([_.x({reflectToAttribute:!0}),_.p("design:type",Object)],N4.prototype,"skipRoundingTop",void 0);_.L([_.x(),_.p("design:type",Object)],N4.prototype,"toggleExpandableSection",void 0);_.L([_.Fe("data"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],N4.prototype,"dataChanged",null);_.L([_.U({is:"ytd-medical-panel-content-renderer",disableElementRegistration:!0})],N4);
_.D(N4,"ytd-medical-panel-content-renderer",function(){if(Po1!==void 0)return Po1;var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-medical-panel-content-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="content style-scope ytd-medical-panel-content-renderer">\n  <div id="sections" class="style-scope ytd-medical-panel-content-renderer"></div>\n  <div class="footer style-scope ytd-medical-panel-content-renderer" id="expand" hidden="[[isExpanded]]"></div>\n  <div id="expandable-sections" hidden="[[!isExpanded]]" class="style-scope ytd-medical-panel-content-renderer"></div>\n  <div class="footer style-scope ytd-medical-panel-content-renderer" id="collapse" hidden="[[!isExpanded]]"></div>\n</div>\n');
a.content.insertBefore(_.w().content.cloneNode(!0),a.content.firstChild);return Po1=a},{mode:1});_.$q("itemSectionRenderer","infoPanelContainerRenderer","ytd-info-panel-container-renderer");var t9=function(){var a=_.G.apply(this,arguments)||this;a.roundedContainer=!0;a.amsterdamEnabled=_.K("enable_desktop_amsterdam_info_panels");a.hasTitle=!1;a.linkIcon="OPEN_IN_NEW";a.isDismissed=!1;return a};
_.b(t9,_.G);
t9.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"}}}};
t9.prototype.computeHasTitle=function(a){return!(a==null||!a.title)};
t9.prototype.onClick=function(a){var z,I=(z=this.data)==null?void 0:z.headerEndpoint;!_.qK(_.ch(a),this.hostElement,["BUTTON".toString()])&&I&&this.ytComponentBehavior.resolveCommand(I)};
_.eH.Object.defineProperties(t9.prototype,{background:{configurable:!0,enumerable:!0,get:function(){return this.data&&this.data.background?this.data.background.replace("INFO_PANEL_CONTAINER_BACKGROUND_",""):""}},
titleStyle:{configurable:!0,enumerable:!0,get:function(){return this.data&&this.data.titleStyle?this.data.titleStyle.replace("INFO_PANEL_CONTAINER_TITLE_STYLE_",""):""}},
showLinkIcon:{configurable:!0,enumerable:!0,get:function(){var a;return((a=this.data)==null?void 0:a.titleStyle)==="INFO_PANEL_CONTAINER_TITLE_STYLE_LINK"}},
hideDivider:{configurable:!0,enumerable:!0,get:function(){var a,z;return((a=this.data)==null?void 0:a.disableBottomDivider)||!((z=this.data)==null?0:z.title)}}});
_.L([_.Q(_.Ms.YtComponentBehavior),_.p("design:type",Object)],t9.prototype,"ytComponentBehavior",void 0);_.L([_.Q(_.k.YtRendererBehavior),_.p("design:type",Object)],t9.prototype,"ytRendererBehavior",void 0);_.L([_.Q(_.u4.YtRendererstamperBehavior),_.p("design:type",Object)],t9.prototype,"ytRendererstamperBehavior",void 0);_.L([_.Q(_.pV),_.p("design:type",Object)],t9.prototype,"ytdReduxBehavior",void 0);_.L([_.x(),_.p("design:type",Object)],t9.prototype,"data",void 0);
_.L([_.x({reflectToAttribute:!0}),_.p("design:type",Object)],t9.prototype,"roundedContainer",void 0);_.L([_.x({reflectToAttribute:!0}),_.p("design:type",Boolean)],t9.prototype,"amsterdamEnabled",void 0);_.L([_.x({reflectToAttribute:!0,computed:"computeHasTitle(data)"}),_.p("design:type",Object)],t9.prototype,"hasTitle",void 0);
_.L([_.x({type:_.K("kevlar_property_type_migration_killswitch")?String:void 0,reflectToAttribute:!0}),_.S("data.background"),_.p("design:type",Object),_.p("design:paramtypes",[])],t9.prototype,"background",null);_.L([_.x({type:_.K("kevlar_property_type_migration_killswitch")?String:void 0,reflectToAttribute:!0}),_.S("data.titleStyle"),_.p("design:type",Object),_.p("design:paramtypes",[])],t9.prototype,"titleStyle",null);
_.L([_.x({type:_.K("kevlar_property_type_migration_killswitch")?Boolean:void 0}),_.S("data.titleStyle"),_.p("design:type",Object),_.p("design:paramtypes",[])],t9.prototype,"showLinkIcon",null);_.L([_.x(),_.p("design:type",String)],t9.prototype,"linkIcon",void 0);_.L([_.x({type:_.K("kevlar_property_type_migration_killswitch")?Boolean:void 0}),_.S("data"),_.p("design:type",Object),_.p("design:paramtypes",[])],t9.prototype,"hideDivider",null);
_.L([_.x({selectorArgs:["data.dismissStateEntityKey"],selector:function(a,z){a=_.Bd(a.entities,"dismissState",z);return(a==null?void 0:a.isDismissed)||(a==null?void 0:a.vwcDismissState)==="VWC_DISMISS_STATE_NOT_INTERESTED"||(a==null?void 0:a.vwcDismissState)==="VWC_DISMISS_STATE_BLOCK_CHANNEL"}}),
_.p("design:type",Object)],t9.prototype,"isDismissed",void 0);_.L([_.U({is:"ytd-info-panel-container-renderer",disableElementRegistration:!0})],t9);
_.D(t9,"ytd-info-panel-container-renderer",function(){if(rpl!==void 0)return rpl;var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-info-panel-container-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div hidden="[[isDismissed]]" class="style-scope ytd-info-panel-container-renderer">\n  <div class="header style-scope ytd-info-panel-container-renderer" hidden="[[!data.title]]" on-click="onClick">\n    <h2 class="header-left-items style-scope ytd-info-panel-container-renderer">\n      <yt-icon class="header-icon style-scope ytd-info-panel-container-renderer" disable-upgrade$="[[!data.icon.iconType]]" hidden="[[!data.icon.iconType]]" icon="[[data.icon.iconType]]">\n      </yt-icon>\n      <yt-formatted-string class="title style-scope ytd-info-panel-container-renderer" text="[[data.title]]"></yt-formatted-string>\n      <yt-icon class="link-icon style-scope ytd-info-panel-container-renderer" disable-upgrade$="[[!linkIcon]]" hidden="[[!showLinkIcon]]" icon="[[linkIcon]]">\n      </yt-icon>\n    </h2>\n    <div id="header-menu" class="style-scope ytd-info-panel-container-renderer"></div>\n  </div>\n  <div class="divider-container style-scope ytd-info-panel-container-renderer" hidden="[[hideDivider]]">\n    <div class="divider-offset style-scope ytd-info-panel-container-renderer"></div>\n    <div class="divider style-scope ytd-info-panel-container-renderer"></div>\n    <div class="divider-offset style-scope ytd-info-panel-container-renderer"></div>\n  </div>\n  <div id="content" class="style-scope ytd-info-panel-container-renderer"></div>\n</div>\n');a.content.insertBefore(_.w().content.cloneNode(!0),
a.content.firstChild);return rpl=a},{mode:1});var Coo;_.$q("sharingItemSection","itemSectionHeaderRenderer","ytd-item-section-header-renderer");var uM=function(){var a=_.G.apply(this,arguments)||this;a.modernTypography=_.K("web_modern_typography");return a};
_.b(uM,_.G);uM.prototype.configureRendererStamper=function(){return{"data.buttons":{id:"buttons",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
uM.prototype.computeStyle=function(a){return a?a:""};
_.L([_.Q(_.k.YtRendererBehavior),_.p("design:type",Object)],uM.prototype,"ytRendererBehavior",void 0);_.L([_.Q(_.u4.YtRendererstamperBehavior),_.p("design:type",Object)],uM.prototype,"ytRendererstamperBehavior",void 0);_.L([_.x(),_.p("design:type",Object)],uM.prototype,"data",void 0);_.L([_.x({reflectToAttribute:!0,computed:"computeStyle(data.titleStyle)"}),_.p("design:type",String)],uM.prototype,"titleStyle",void 0);
_.L([_.x({reflectToAttribute:!0}),_.p("design:type",Object)],uM.prototype,"modernTypography",void 0);_.L([_.U({is:"ytd-item-section-header-renderer",disableElementRegistration:!0})],uM);
_.D(uM,"ytd-item-section-header-renderer",function(){if(Coo!==void 0)return Coo;var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-item-section-header-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-item-section-header-renderer">\n  <div id="title" class="style-scope ytd-item-section-header-renderer">[[getSimpleString(data.title)]]</div>\n  <yt-formatted-string id="subtitle" text="[[data.subtitle]]" class="style-scope ytd-item-section-header-renderer"></yt-formatted-string>\n</div>\n<div id="buttons" class="style-scope ytd-item-section-header-renderer"></div>\n');a.content.insertBefore(_.w().content.cloneNode(!0),
a.content.firstChild);return Coo=a},{mode:1});var Nuw;var t4v,uvv=function(){return t4v!==void 0?t4v:t4v=document.createElement("template")};
document.head.appendChild(uvv().content);var E5I;_.Ep=new _.I4("VOTING_ANIMATION_CONTROLLER_TOKEN");var g51=_.ec(function(a){var z=a.data;var I=_.Mm("div"),J=_.Mm("div");a=_.C(_.CW("VOTE_STATUS_NONE",void 0,"FVF7mc"));var r=a.next().value,P=a.next().value,N=_.KU(nw$,function(){var n;return(n=z())==null?void 0:n.entityKey}),u=_.K("web_enable_voting_animation")||_.K("enable_music_web_cairo_voting_animation");
_.QO(function(){var n;((n=z().initialState)==null?0:n.status)&&P(z().initialState.status)});
var E=function(){var n,F,h=(F=(n=z().initialState)==null?void 0:n.votes)!=null?F:0,v;n=(v=z().initialState)==null?void 0:v.status;return n==="VOTE_STATUS_UPVOTED"?h-1:n==="VOTE_STATUS_DOWNVOTED"?h+1:h},O=function(){return r()==="VOTE_STATUS_UPVOTED"?E()+1:r()==="VOTE_STATUS_DOWNVOTED"?E()-1:E()},f=function(n){var F=n?"VOTE_STATUS_UPVOTED":"VOTE_STATUS_NONE";
P(F);var h=O(),v=_.ab().resolve(_.eL(_.Ep)),d=N();d&&(n&&(d==null?0:d.upvoteDefaultButtonOnTap)?_.lN(d.upvoteDefaultButtonOnTap,{form:{element:I.value},disableClickTracking:!0}):(d==null?0:d.upvoteToggledButtonOnTap)&&_.lN(d.upvoteToggledButtonOnTap,{form:{element:I.value},disableClickTracking:!0}));var W;n=(W=d==null?void 0:d.enableOptimisticReordering)!=null?W:z().enableOptimisticReordering;u&&v&&z().itemId&&n&&Bui(v,z().itemId,h,F)},A=function(n){var F=n?"VOTE_STATUS_DOWNVOTED":"VOTE_STATUS_NONE";
P(F);var h=O(),v=_.ab().resolve(_.eL(_.Ep)),d=N();d&&(n&&(d==null?0:d.downvoteDefaultButtonOnTap)?_.lN(d.downvoteDefaultButtonOnTap,{form:{element:J.value},disableClickTracking:!0}):(d==null?0:d.downvoteToggledButtonOnTap)&&_.lN(d.downvoteToggledButtonOnTap,{form:{element:J.value},disableClickTracking:!0}));var W;n=(W=d==null?void 0:d.enableOptimisticReordering)!=null?W:z().enableOptimisticReordering;u&&v&&z().itemId&&n&&Bui(v,z().itemId,h,F)};
a={};a=_.B8("ytVotingViewModelVoteCount",(a.ytVotingViewModelVoteCountDisabled=function(){return z().isDisabled},a));
return _.B("voting-view-model",{class:"ytVotingViewModelHost"},_.B("div",{el:I},_.B(_.V0,{data:function(){var n=_.H(z().upvoteButton,_.My);return{toggleButtonViewModel:Object.assign({},n,{isToggled:r()==="VOTE_STATUS_UPVOTED"})}}},{toggleButtonViewModel:function(n){return _.B(_.Wc,{data:n.data,
onToggle:f})}})),_.B("div",{class:a},function(){var n,F,h;
return r()==="VOTE_STATUS_UPVOTED"?(n=z().initialState)==null?void 0:n.compactVotesUpvoted:r()==="VOTE_STATUS_DOWNVOTED"?(F=z().initialState)==null?void 0:F.compactVotesDownvoted:(h=z().initialState)==null?void 0:h.compactVotes}),_.B("div",{el:J},_.B(_.V0,{data:function(){var n=_.H(z().downvoteButton,_.My);
return{toggleButtonViewModel:Object.assign({},n,{isToggled:r()==="VOTE_STATUS_DOWNVOTED"})}}},{toggleButtonViewModel:function(n){return _.B(_.Wc,{data:n.data,
onToggle:A})}})))},"Ub");_.Jf(_.ec(function(a){var z=a.data;return _.B("engagement-bar-view-model",{class:"ytEngagementBarViewModelHost"},_.B("div",{class:_.B8("ytEngagementBarViewModelEngagementBarWrapper",a.className)},_.B(_.V0,{data:function(){return z().actions}},{votingViewModel:g51})))},"Vb"),"engagement-bar-view-model",{props:{data:_.zl,
className:_.zl}});var B5=function(){var a=_.G.apply(this,arguments)||this;a.playlistVotingAnimationEnabled=_.K("web_enable_voting_animation");a.downloadProgress=0;a.transferState="TRANSFER_STATE_UNKNOWN";a.downloadState="DOWNLOAD_STATE_UNKNOWN";a.offlinePolicyAction="OFFLINE_VIDEO_POLICY_ACTION_UNKNOWN";a.offlineVideoPolicyExpirationTimestamp=0;return a};
_.b(B5,_.G);_.Z=B5.prototype;_.Z.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"}}}};
_.Z.canReorderChanged=function(){this.persistentDragHandle=_.K("kevlar_playlist_drag_handles")&&this.canReorder};
_.Z.onDrag=function(){if(this.thumbnail){var a=_.PK(this.thumbnail).querySelector("yt-image");a&&(a.shouldRenderLazy=!1)}};
_.Z.onMenuOverlayChanged=function(a,z){this.menuOpened=z};
_.Z.onHandleMouseenter=function(){this.handleIsHovered=!0};
_.Z.onHandleMouseleave=function(){this.handleIsHovered=!1};
_.Z.onContentsTap=function(a){var z,I=(z=this.data)==null?void 0:z.serviceEndpoints;if(I&&I.length===1&&_.H(I[0],SQI)&&!_.qK(_.ch(a),this.hostElement,["TP-YT-PAPER-BUTTON"]))this.ytComponentBehavior.resolveCommand(I[0]);else{var J;(z=(J=this.data)==null?void 0:J.navigationEndpoint)&&_.K("music_on_main_open_playlist_recommended_videos_in_miniplayer")&&this.styleType==="playlist-video-renderer-style-recommended-video"?this.miniplayerIsActive?OTJ(_.ab().resolve(_.UJ),z):(_.hq().playlistSuggestionsShelfActivation=
!0,_.fKE(_.ab().resolve(_.UJ),z)):z&&!_.qK(_.ch(a),this.hostElement,["A".toString(),"BUTTON".toString(),"ENGAGEMENT-BAR-VIEW-MODEL"])&&(_.K("kevlar_playlist_video_resolve_nav_endpoint_killswitch")?_.PA(this.hostElement,"yt-navigate",{endpoint:z}):this.ytComponentBehavior.resolveCommand(z))}};
_.Z.computeStyle=function(a){return a?a.toLowerCase().replace(/_/g,"-"):""};
_.Z.computeThumbnailWidth=function(a){return a==="PLAYLIST_VIDEO_RENDERER_STYLE_EPISODE"?170:200};
_.Z.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=Usd(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))}};
_.Z.created=function(){this.downloadRenderData=void 0;this.isDownloads=!1};
_.Z.detached=function(){this.downloadRenderData=void 0;this.isDownloads=!1};
_.Z.dataChanged=function(){if(this.data){var a,z,I,J=((a=this.downloadRenderData)==null?void 0:a.badges)&&((z=this.downloadRenderData)==null?void 0:z.badges)!==((I=this.data)==null?void 0:I.badges),r,P,N;a=((r=this.downloadRenderData)==null?void 0:r.thumbnailOverlays)&&((P=this.downloadRenderData)==null?void 0:P.thumbnailOverlays)!==((N=this.data)==null?void 0:N.thumbnailOverlays);(!this.downloadRenderData||J||a)&&this.downloadStateChanged()}};
_.Z.setVideoIdChanged=function(){if(this.data&&this.data.setVideoId){var a,z,I=(a=this.data.menu)==null?void 0:(z=a.menuRenderer)==null?void 0:z.items;if(I)for(a=_.C(I),z=a.next();!z.done;z=a.next())if(z=z.value,I=void 0,_.H((I=z.menuServiceItemRenderer)==null?void 0:I.serviceEndpoint,_.D5)){var J=I=void 0,r=void 0;z=(I=z)==null?void 0:(J=I.menuServiceItemRenderer)==null?void 0:(r=J.serviceEndpoint)==null?void 0:r.playlistEditEndpoint;r=J=void 0;if(I=(J=z)==null?void 0:(r=J.actions)==null?void 0:
r[0])J=void 0,I.setVideoId=(J=this.data)==null?void 0:J.setVideoId;r=J=I=void 0;if(z=(I=z)==null?void 0:(J=I.clientActions)==null?void 0:(r=J[0])==null?void 0:r.playlistRemoveVideosAction)I=void 0,z.setVideoIds=[(I=this.data)==null?void 0:I.setVideoId]}}};
_.eH.Object.defineProperties(B5.prototype,{playlistVideoId:{configurable:!0,enumerable:!0,get:function(){return this.data.videoId}}});
B5.prototype.setVideoIdChanged=B5.prototype.setVideoIdChanged;B5.prototype.dataChanged=B5.prototype.dataChanged;B5.prototype.downloadStateChanged=B5.prototype.downloadStateChanged;B5.prototype.onMenuOverlayChanged=B5.prototype.onMenuOverlayChanged;B5.prototype.canReorderChanged=B5.prototype.canReorderChanged;_.L([_.Q(_.k.YtRendererBehavior),_.p("design:type",Object)],B5.prototype,"ytRendererBehavior",void 0);_.L([_.Q(_.pV),_.p("design:type",Object)],B5.prototype,"ytdReduxBehavior",void 0);
_.L([_.Q(_.u4.YtRendererstamperBehavior),_.p("design:type",Object)],B5.prototype,"ytRendererstamperBehavior",void 0);_.L([_.Q(_.eB),_.p("design:type",Object)],B5.prototype,"ytdLockupBehavior",void 0);_.L([_.Q(_.mD),_.p("design:type",Object)],B5.prototype,"ytdDismissibleItemBehavior",void 0);_.L([_.Q(_.Ms.YtComponentBehavior),_.p("design:type",Object)],B5.prototype,"ytComponentBehavior",void 0);_.L([_.x(),_.p("design:type",Object)],B5.prototype,"data",void 0);
_.L([_.x({reflectToAttribute:!0}),_.p("design:type",Boolean)],B5.prototype,"canReorder",void 0);_.L([_.x({reflectToAttribute:!0}),_.p("design:type",Boolean)],B5.prototype,"menuOpened",void 0);_.L([_.x({reflectToAttribute:!0}),_.p("design:type",Boolean)],B5.prototype,"handleIsHovered",void 0);_.L([_.x({reflectToAttribute:!0}),_.p("design:type",Boolean)],B5.prototype,"persistentDragHandle",void 0);_.L([_.x(),_.p("design:type",Object)],B5.prototype,"downloadRenderData",void 0);
_.L([_.x({reflectToAttribute:!0,computed:"computeStyle(data.style)"}),_.p("design:type",String)],B5.prototype,"styleType",void 0);_.L([_.x({computed:"computeThumbnailWidth(data.style)"}),_.p("design:type",Number)],B5.prototype,"thumbnailWidth",void 0);_.L([_.x({value:!1,reflectToAttribute:!0}),_.p("design:type",Boolean)],B5.prototype,"isDownloads",void 0);_.L([_.x({reflectToAttribute:!0}),_.p("design:type",Boolean)],B5.prototype,"playlistVotingAnimationEnabled",void 0);
_.L([_.x({selector:DY,selectorArgs:["data.videoId"]}),_.p("design:type",Object)],B5.prototype,"downloadProgress",void 0);_.L([_.x(),_.p("design:type",Number)],B5.prototype,"relativeDateReference",void 0);_.L([_.x({selector:_.oU,selectorArgs:["data.videoId"]}),_.p("design:type",Object)],B5.prototype,"transferState",void 0);_.L([_.x({selector:Cr3,selectorArgs:["data.videoId"]}),_.p("design:type",Object)],B5.prototype,"downloadState",void 0);
_.L([_.x({selector:yqi,selectorArgs:["data.videoId"]}),_.p("design:type",Object)],B5.prototype,"offlinePolicyAction",void 0);_.L([_.x({selector:kG0,selectorArgs:["data.videoId"]}),_.p("design:type",Object)],B5.prototype,"offlineVideoPolicyExpirationTimestamp",void 0);_.L([_.x({selector:cqG,selectorArgs:["data.videoId"]}),_.p("design:type",Object)],B5.prototype,"entityInfo",void 0);_.L([_.x({selector:_.Tg}),_.p("design:type",Boolean)],B5.prototype,"miniplayerIsActive",void 0);
_.L([_.S("data"),_.p("design:type",String),_.p("design:paramtypes",[])],B5.prototype,"playlistVideoId",null);_.L([_.A3("#thumbnail"),_.p("design:type",Object)],B5.prototype,"thumbnail",void 0);_.L([_.Fe("canReorder"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],B5.prototype,"canReorderChanged",null);
_.L([_.gz("yt-menu-overlay-changed"),_.p("design:type",Function),_.p("design:paramtypes",[CustomEvent,Boolean]),_.p("design:returntype")],B5.prototype,"onMenuOverlayChanged",null);_.L([_.Fe("transferState","offlinePolicyAction","offlineVideoPolicyExpirationTimestamp","downloadProgress","downloadState"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],B5.prototype,"downloadStateChanged",null);
_.L([_.Fe("data"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],B5.prototype,"dataChanged",null);_.L([_.Fe("data.setVideoId"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],B5.prototype,"setVideoIdChanged",null);_.L([_.U({is:"ytd-playlist-video-renderer",disableElementRegistration:!0})],B5);
_.D(B5,"ytd-playlist-video-renderer",function(){if(E5I!==void 0)return E5I;var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-playlist-video-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.main_desktop.ui.renderers.sections.ytd_playlist_video_renderer.ytd.playlist.video.renderer.transition.css.js--\x3e<div id="index-container" class="playlist-drag-handle style-scope ytd-playlist-video-renderer" on-mouseenter="onHandleMouseenter" on-mouseleave="onHandleMouseleave">\n  <yt-icon id="reorder" icon="yt-icons:drag_handle" class="style-scope ytd-playlist-video-renderer"></yt-icon>\n  <yt-formatted-string id="index" text="[[data.index]]" class="style-scope ytd-playlist-video-renderer"></yt-formatted-string>\n</div>\n<div id="content" on-click="onContentsTap" class="style-scope ytd-playlist-video-renderer">\n  <div id="container" class="style-scope ytd-playlist-video-renderer">\n    <ytd-thumbnail id="thumbnail" data="[[data]]" hide-playback-status="" use-expandable-tooltip="[[useExpandableTooltip_]]" width="[[thumbnailWidth]]" class="style-scope ytd-playlist-video-renderer">\n    </ytd-thumbnail>\n    <div id="meta" class="style-scope ytd-playlist-video-renderer">\n      <h3 aria-label$="[[data.title.accessibility.accessibilityData.label]]" class="style-scope ytd-playlist-video-renderer">\n        <ytd-badge-supported-renderer id="top-standalone-badge" top-standalone-badge="[[data.topStandaloneBadge]]" class="style-scope ytd-playlist-video-renderer">\n        </ytd-badge-supported-renderer>\n        <a id="video-title" title$="[[getSimpleString(data.title)]]" class="yt-simple-endpoint style-scope ytd-playlist-video-renderer" href$="[[computeHref_(data.navigationEndpoint)]]" data="[[data.navigationEndpoint]]">\n          [[getSimpleString(data.title)]]\n        </a>\n      </h3>\n      <ytd-video-meta-block class="playlist style-scope ytd-playlist-video-renderer" data="[[data]]" is-downloading="[[isDownloads]]"></ytd-video-meta-block>\n      <ytd-badge-supported-renderer id="bottom-badges" badges="[[data.bottomBadges]]" hidden="[[!data.bottomBadges]]" class="style-scope ytd-playlist-video-renderer">\n      </ytd-badge-supported-renderer>\n      <ytd-badge-supported-renderer id="bottom-standalone-badge" hidden="[[!data.bottomStandaloneBadge]]" top-standalone-badge="[[data.bottomStandaloneBadge]]" class="style-scope ytd-playlist-video-renderer">\n      </ytd-badge-supported-renderer>\n      <div id="engagement-bar" class="style-scope ytd-playlist-video-renderer"></div>\n    </div>\n  </div>\n  <ytd-badge-supported-renderer id="badges" badges="[[data.badges]]" hidden="[[!data.badges]]" class="style-scope ytd-playlist-video-renderer">\n  </ytd-badge-supported-renderer>\n  <yt-formatted-string id="contributor" hidden="[[!data.contributorName]]" link-inherit-color="" text="[[data.contributorName]]" class="style-scope ytd-playlist-video-renderer">\n  </yt-formatted-string>\n  <div id="offer-button" class="style-scope ytd-playlist-video-renderer"></div>\n</div>\n<div id="menu" hidden="[[!data.menu]]" class="style-scope ytd-playlist-video-renderer"></div>\n');a.content.insertBefore(_.w().content.cloneNode(!0),
a.content.firstChild);a.content.insertBefore(uvv().content.cloneNode(!0),a.content.firstChild);return E5I=a},{mode:1});var Api;var g6=function(){return _.G.apply(this,arguments)||this};
_.b(g6,_.G);_.L([_.x(),_.p("design:type",Object)],g6.prototype,"data",void 0);_.L([_.Q(_.k.YtRendererBehavior),_.p("design:type",Object)],g6.prototype,"rendererBehavior",void 0);_.L([_.U({is:"ytd-premium-browse-footer-renderer",disableElementRegistration:!0})],g6);
_.D(g6,"ytd-premium-browse-footer-renderer",function(){if(Api!==void 0)return Api;var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-premium-browse-footer-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-formatted-string class="title style-scope ytd-premium-browse-footer-renderer" text="[[data.title]]">\n</yt-formatted-string>\n<yt-formatted-string class="subtitle style-scope ytd-premium-browse-footer-renderer" text="[[data.subtitle]]">\n</yt-formatted-string>\n');a.content.insertBefore(_.w().content.cloneNode(!0),
a.content.firstChild);return Api=a},{mode:1});var sqI;var Op=function(){var a=_.G.apply(this,arguments)||this;a.actionMap={"yt-dark-mode-toggled-action":"handleDarkModeToggledAction"};return a};
_.b(Op,_.G);_.Z=Op.prototype;_.Z.attached=function(){this.isDarkTheme=document.documentElement.hasAttribute("dark")};
_.Z.handleDarkModeToggledAction=function(a){this.isDarkTheme=a};
_.Z.computeHeaderLogoThumbnail=function(a,z){if(a)return z?a.darkLogo:a.lightLogo};
_.Z.computeHeaderLogoHeight=function(a,z){var I,J,r;return(a=(I=this.computeHeaderLogoThumbnail(a,z))==null?void 0:(J=I.thumbnails)==null?void 0:(r=J[0])==null?void 0:r.height)&&a%31===0?"31":"24"};
_.Z.computeHeaderLogoMarginBottom=function(a,z){return this.computeHeaderLogoHeight(a,z)==="24"?"0":"-7"};
_.L([_.Q(_.Hc.YtActionHandlerBehavior),_.p("design:type",Object)],Op.prototype,"actionHandlerBehavior",void 0);_.L([_.Q(_.k.YtRendererBehavior),_.p("design:type",Object)],Op.prototype,"ytRendererBehavior",void 0);_.L([_.x(),_.p("design:type",Object)],Op.prototype,"data",void 0);_.L([_.x(),_.p("design:type",Boolean)],Op.prototype,"isDarkTheme",void 0);_.L([_.x({computed:"computeHeaderLogoThumbnail(data,isDarkTheme)"}),_.p("design:type",Object)],Op.prototype,"themeLogo",void 0);
_.L([_.x({computed:"computeHeaderLogoHeight(data,isDarkTheme)"}),_.p("design:type",String)],Op.prototype,"logoHeight",void 0);_.L([_.x({computed:"computeHeaderLogoMarginBottom(data,isDarkTheme)"}),_.p("design:type",String)],Op.prototype,"logoMarginBottom",void 0);_.L([_.U({is:"ytd-primetime-promo-header-renderer",disableElementRegistration:!0})],Op);
_.D(Op,"ytd-primetime-promo-header-renderer",function(){if(sqI!==void 0)return sqI;var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-primetime-promo-header-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="logo" class="style-scope ytd-primetime-promo-header-renderer"><yt-img-shadow dimension="height" height$="[[logoHeight]]" margin-bottom$="[[logoMarginBottom]]" thumbnail="[[themeLogo]]" class="style-scope ytd-primetime-promo-header-renderer"></yt-img-shadow><ytd-badge-supported-renderer hidden="[[!data.badge]]" top-standalone-badge="[[data.badge]]" class="style-scope ytd-primetime-promo-header-renderer"></ytd-badge-supported-renderer></div>');a.content.insertBefore(_.w().content.cloneNode(!0),
a.content.firstChild);return sqI=a},{mode:1});var n5i;var Fuv=_.ec(function(a){var z=_.g4(function(r){var P;(P=a.onClick)==null||P.call(a,r)}),I={},J={};
return _.B("yt-shelf-header-layout",{class:_.B8("shelf-header-layout-wiz",(I["shelf-header-layout-wiz--disable-horizontal-padding"]=a.disableHorizontalPadding,I["shelf-header-layout-wiz--disable-vertical-padding"]=a.disableVerticalPadding,I["shelf-header-layout-wiz--responsive"]=a.useResponsiveLayout,I["shelf-header-layout-wiz--narrow"]=function(){var r,P;return((r=a.useResponsiveLayout)==null?void 0:r.call(a))&&((P=a.forceSmallLayout)==null?void 0:P.call(a))},I["shelf-header-layout-wiz--is-overlay"]=
a.isOverlay,I["shelf-header-layout-wiz--tappable"]=!!a.onClick,I)),
"on:click":z,tabindex:function(){var r;return((r=a.isInteractive)==null?0:r.call(a))?0:void 0}},_.B(_.g,{cond:a.leadingIcon,
then:function(r){return _.B("div",{class:"shelf-header-layout-wiz__leading-icon"},_.B(_.nS,{icon:r}))},
else:function(){return _.B(_.g,{cond:a.hasLeadingImage,then:function(){var r,P={};return _.B("div",{class:_.B8("shelf-header-layout-wiz__leading-image",(P["shelf-header-layout-wiz__leading-image--circular-image"]=a.circularImage,P))},(r=a.leadingImage)==null?void 0:r.call(a))}})}}),_.B("div",{class:"shelf-header-layout-wiz__label-container"},_.B(_.g,{cond:a.hasSuperlabel,
then:function(){var r;return _.B("div",{class:"shelf-header-layout-wiz__superlabel"},(r=a.superlabel)==null?void 0:r.call(a))}}),_.B("div",{class:"shelf-header-layout-wiz__title-row"},_.B(Kui,{text:a.title,
className:_.B8("shelf-header-layout-wiz__title",(J["shelf-header-layout-wiz__title--small-title"]=a.forceSmallLayout,J)),tagLevel:a.tagLevel}),_.B(_.g,{cond:a.hasDetail,then:function(){var r;return _.B("div",{class:"shelf-header-layout-wiz__detail"},(r=a.detail)==null?void 0:r.call(a))}})),_.B(_.g,{cond:a.hasSublabel,
then:function(){var r;return _.B("div",{class:"shelf-header-layout-wiz__sublabel"},(r=a.sublabel)==null?void 0:r.call(a))}})),_.B(_.g,{cond:a.hasTrailingActions,
then:function(){var r;return _.B("div",{class:"shelf-header-layout-wiz__trailing-actions"},(r=a.trailingActions)==null?void 0:r.call(a))}}))},"Wb");
Fuv.idomCompat={callbacks:{title:!0,detail:!0,sublabel:!0,superlabel:!0,leadingImage:!0,trailingActions:!0,onClick:!0}};
var Kui=_.ec(function(a){var z=a.text;var I=a.className;var J=a.tagLevel;return _.B(_.Fw,null,_.B(_.n3,{when:function(){return(J==null?void 0:J())===0}},function(){return _.B("h2",{class:I},z())}),_.B(_.n3,{when:function(){return(J==null?void 0:J())===1}},function(){return _.B("h3",{class:I},z())}),_.B(_.n3,{when:function(){return(J==null?void 0:J())===2}},function(){return _.B("h4",{class:I},z())}),_.B(_.K3,null,function(){return _.B("h2",{class:I},z())}))},"Xb");var hBX,HTe,bTO;_.fF=_.ec(function(a){var z=a.className;var I=a.data;var J=a.disableHorizontalPadding;var r=a.disableVerticalPadding;var P=a.forceSmallLayout;var N=a.useResponsiveLayout;a=a.isOverlay;return _.B("yt-section-header-view-model",{class:_.B8("ytSectionHeaderViewModelHost",z),style:_.sW({"background-color":function(){return K41(I().backgroundColor)?_.RX(K41(I().backgroundColor)):void 0}})},_.B(Fuv,{hasDetail:!1,
title:function(){return _.B(_.xs,{text:function(){return I().headline}})},
hasTitle:!0,sublabel:function(){return _.B(HTe,{data:I})},
hasSublabel:function(){return!!I().sublabel||!!I().bottomBadge},
superlabel:function(){return _.B(bTO,{data:I})},
hasSuperlabel:function(){return!!I().superlabel||!!I().topBadge},
leadingImage:function(){return _.B(hBX,{leadingAccessory:function(){return I().leadingAccessory}})},
hasLeadingImage:function(){return!!I().leadingAccessory},
trailingActions:function(){return _.B(_.V0,{data:function(){return I().trailingActions}},{flexibleActionsViewModel:_.Dw})},
hasTrailingActions:function(){return!!I().trailingActions},
disableHorizontalPadding:J,disableVerticalPadding:r,forceSmallLayout:P,useResponsiveLayout:N,isOverlay:a,isInteractive:function(){return!!_.Wn(I().rendererContext)},
onClick:function(u){if(_.oK(I().rendererContext)){var E=_.Wn(I().rendererContext);E&&_.DA(E,{form:{element:u.target,event:u}})}}}))},"Yb");
hBX=_.ec(function(a){var z=a.leadingAccessory;return _.B(_.eJ,null,_.B(_.g,{cond:function(){var I;return(I=z().image)!=null?I:_.y0(z().themedImage)},
then:function(I){return _.B(_.qp,{data:I,alt:"",preserveWidth:!0,preserveHeight:!0})}}),_.B(_.g,{cond:function(){return _.H(z().avatar,_.Dc)},
then:function(I){return _.B(_.ok,{data:I})}}))},"Zb");
HTe=_.ec(function(a){var z=a.data;return _.B(_.eJ,null,_.B(_.g,{cond:function(){return _.H(z().bottomBadge,iJw)},
then:function(I){var J={};return _.B(_.N8,{data:I,class:_.B8((J.ytSectionHeaderViewModelBadgeWithLabel=function(){return!!I()&&!!z().sublabel},J))})}}),_.B(_.g,{cond:function(){return z().sublabel},
then:function(I){return _.B(_.xs,{text:I})}}))},"$b");
bTO=_.ec(function(a){var z=a.data;return _.B(_.eJ,null,_.B(_.g,{cond:function(){return _.H(z().topBadge,iJw)},
then:function(I){var J={};return _.B(_.N8,{data:I,class:_.B8((J.ytSectionHeaderViewModelBadgeWithLabel=function(){return!!I()&&!!z().superlabel},J))})}}),_.B(_.g,{cond:function(){return z().superlabel},
then:function(I){return _.B(_.xs,{text:I})}}))},"ac");_.Jf(_.fF,"yt-section-header-view-model",{props:{data:_.zl,className:_.zl,disableHorizontalPadding:_.zl,disableVerticalPadding:_.zl,forceSmallLayout:_.zl,useResponsiveLayout:_.zl,isOverlay:_.zl}});_.$q("itemSectionRenderer","primetimePromoRenderer","ytd-primetime-promo-renderer");var A9=function(){var a=_.G.apply(this,arguments)||this;a.actionMap={"ytd-update-elements-per-row-action":"onUpdateElementsPerRowAction"};return a};
_.b(A9,_.G);_.Z=A9.prototype;_.Z.attached=function(){this.requestElementsPerRow()};
_.Z.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"}}}};
_.Z.onDataChange=function(){var a=this;_.Yv(this,function(){a.updateItemVisibility()})};
_.Z.onUpdateElementsPerRowAction=function(a){a&&this.elementsPerRow!==a&&(this.elementsPerRow=a,this.updateItemVisibility())};
_.Z.updateItemVisibility=function(){var a=this;this.data&&this.data.panels&&_.PK(this.hostElement).querySelectorAll("ytd-rich-item-renderer").forEach(function(z,I){z.hidden=I>a.elementsPerRow-1})};
_.Z.requestElementsPerRow=function(){_.PA(this.hostElement,"yt-request-elements-per-row")};
A9.prototype.onDataChange=A9.prototype.onDataChange;_.L([_.Q(_.u4.YtRendererstamperBehavior),_.p("design:type",Object)],A9.prototype,"ytRendererstamperBehavior",void 0);_.L([_.Q(_.mD),_.p("design:type",Object)],A9.prototype,"ytdDismissibleItemBehavior",void 0);_.L([_.Q(_.k.YtRendererBehavior),_.p("design:type",Object)],A9.prototype,"ytRendererBehavior",void 0);_.L([_.Q(_.Hc.YtActionHandlerBehavior),_.p("design:type",Object)],A9.prototype,"actionHandlerBehavior",void 0);
_.L([_.x(),_.p("design:type",Object)],A9.prototype,"data",void 0);_.L([_.x({value:3}),_.p("design:type",Number)],A9.prototype,"elementsPerRow",void 0);_.L([_.O8("data"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],A9.prototype,"onDataChange",null);_.L([_.U({is:"ytd-primetime-promo-renderer",disableElementRegistration:!0})],A9);
_.D(A9,"ytd-primetime-promo-renderer",function(){if(n5i!==void 0)return n5i;var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-primetime-promo-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="dismissible" class="style-scope ytd-primetime-promo-renderer">\n  <div id="header" class="style-scope ytd-primetime-promo-renderer">\n    <div id="header-contents" hidden="[[data.sectionHeader]]" class="style-scope ytd-primetime-promo-renderer"></div>\n    <div id="shelf-header-container" hidden="[[!data.sectionHeader]]" class="style-scope ytd-primetime-promo-renderer">\n      <div id="section-header-container" class="style-scope ytd-primetime-promo-renderer"></div>\n      <div id="details-panel" hidden="[[!data.details]]" class="style-scope ytd-primetime-promo-renderer"></div>\n    </div>\n    <div id="dismiss-button" hidden="[[data.overflowButton]]" class="style-scope ytd-primetime-promo-renderer"></div>\n    <div id="overflow-button" hidden="[[!data.overflowButton]]" class="style-scope ytd-primetime-promo-renderer"></div>\n  </div>\n  <div id="panels" class="style-scope ytd-primetime-promo-renderer"></div>\n</div>\n<div id="dismissed" class="style-scope ytd-primetime-promo-renderer"></div>\n');a.content.insertBefore(_.w().content.cloneNode(!0),
a.content.firstChild);return n5i=a},{mode:1});var V4E;var sp=function(){var a=_.G.apply(this,arguments)||this;a.actionMap={"yt-button-refresh-action":"handleButtonRefreshAction"};return a};
_.b(sp,_.G);sp.prototype.configureRendererStamper=function(){return{"data.button":{id:"action-button",mapping:{buttonRenderer:{component:"ytd-button-renderer"}}}}};
sp.prototype.handleButtonRefreshAction=function(a){if(a=_.H(a,xHv))this.set("data.button",a.membershipButton),this.notifyPath("data.button")};
_.eH.Object.defineProperties(sp.prototype,{avatars:{configurable:!0,enumerable:!0,get:function(){var a,z;return((a=this.data)==null?void 0:(z=a.avatars)==null?void 0:z.slice(0,8))||[]}}});
_.L([_.x(),_.p("design:type",Object)],sp.prototype,"data",void 0);_.L([_.Q(_.Hc.YtActionHandlerBehavior),_.p("design:type",Object)],sp.prototype,"ytActionHandlerBehavior",void 0);_.L([_.Q(_.u4.YtRendererstamperBehavior),_.p("design:type",Object)],sp.prototype,"ytRendererstamperBehavior",void 0);_.L([_.Q(_.k.YtRendererBehavior),_.p("design:type",Object)],sp.prototype,"rendererBehavior",void 0);_.L([_.S("data"),_.p("design:type",Array),_.p("design:paramtypes",[])],sp.prototype,"avatars",null);
_.L([_.U({is:"ytd-recognition-shelf-renderer",disableElementRegistration:!0})],sp);
_.D(sp,"ytd-recognition-shelf-renderer",function(){if(V4E!==void 0)return V4E;var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-recognition-shelf-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="container" class="style-scope ytd-recognition-shelf-renderer">\n  <div id="text-container" class="style-scope ytd-recognition-shelf-renderer">\n    <yt-formatted-string class="title style-scope ytd-recognition-shelf-renderer" text="[[data.title]]"></yt-formatted-string>\n    <yt-formatted-string class="subtitle style-scope ytd-recognition-shelf-renderer" text="[[data.subtitle]]"></yt-formatted-string>\n  </div>\n  <div id="avatars-container" class="style-scope ytd-recognition-shelf-renderer">\n    <template is="dom-repeat" items="[[avatars]]" as="avatar" class="style-scope ytd-recognition-shelf-renderer">\n      <yt-img-shadow class="avatar style-scope ytd-recognition-shelf-renderer" thumbnail="[[avatar]]"></yt-img-shadow>\n    </template>\n  </div>\n  <div id="action-button" class="style-scope ytd-recognition-shelf-renderer"></div>\n</div>\n');a.content.insertBefore(_.w().content.cloneNode(!0),
a.content.firstChild);return V4E=a},{mode:1});var Qqv;var SYO;var nF=function(){var a=_.G.apply(this,arguments)||this;a.modernButtons=_.K("web_modern_buttons");return a};
_.b(nF,_.G);_.Z=nF.prototype;
_.Z.configureRendererStamper=function(){return{visibleItems:{id:"items",mapping:{lockupViewModel:{component:"yt-lockup-view-model",params:{className:"ytd-vertical-list-renderer lockup",containerType:3,force16By9ThumbnailAspectRatio:!0},properties:{thumbnailFixedWidth:"[[thumbnailWidth]]",typographyBump:"[[typographyBump]]",lockupExperiments:"[[lockupExperiments]]"}},channelRenderer:"ytd-channel-renderer",playlistRenderer:{component:"ytd-playlist-renderer",properties:{isSearch:"[[isSearch]]"}},radioRenderer:"ytd-radio-renderer",
showRenderer:"ytd-show-renderer",videoRenderer:{component:"ytd-video-renderer",properties:{isSearch:"[[isSearch]]"}}}}}};
_.Z.dataChanged=function(){this.collapsed=!0};
_.Z.computeVisibleItems=function(a,z){return a!==void 0&&a.items?z?a.items.slice(0,this.data.collapsedItemCount):a.items:[]};
_.Z.computeHideShowMore=function(a,z,I){return a>=z||!I};
_.Z.computeHideShowAll=function(a,z,I){return!(a&&z)||I};
_.Z.onMoreClick=function(){this.collapsed=!1};
_.eH.Object.defineProperties(nF.prototype,{typographyBump:{configurable:!0,enumerable:!0,get:function(){return this.isSearch&&_.K("use_modern_typography_on_search")}},
lockupExperiments:{configurable:!0,enumerable:!0,get:function(){if(this.isSearch)return{alwaysRespectPodcastShowAspectRatio:_.rM("podcast_show_lockup_style_web")==="square_thumbnail",useLegacyTypography:!_.K("use_modern_typography_on_search")}}},
thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){return this.isSearch?"50%":"246px"}}});
nF.prototype.dataChanged=nF.prototype.dataChanged;_.L([_.Q(_.k.YtRendererBehavior),_.p("design:type",Object)],nF.prototype,"ytRendererBehavior",void 0);_.L([_.Q(_.u4.YtRendererstamperBehavior),_.p("design:type",Object)],nF.prototype,"ytRendererstamperBehavior",void 0);_.L([_.x(),_.p("design:type",Object)],nF.prototype,"data",void 0);_.L([_.x({value:!1}),_.p("design:type",Boolean)],nF.prototype,"isSearch",void 0);
_.L([_.x({computed:"computeVisibleItems(data,collapsed)"}),_.p("design:type",Array)],nF.prototype,"visibleItems",void 0);_.L([_.x({value:!0}),_.p("design:type",Boolean)],nF.prototype,"collapsed",void 0);_.L([_.x({computed:"computeHideShowMore(data.collapsedItemCount,data.items.length,collapsed)"}),_.p("design:type",Boolean)],nF.prototype,"hideShowMore",void 0);
_.L([_.x({computed:"computeHideShowAll(data.expandedStateButtonEndpoint,\n        data.expandedStateButtonText,collapsed)",value:!0}),_.p("design:type",Boolean)],nF.prototype,"hideShowAll",void 0);_.L([_.x({reflectToAttribute:!0}),_.p("design:type",Boolean)],nF.prototype,"modernButtons",void 0);_.L([_.S("isSearch"),_.p("design:type",Boolean),_.p("design:paramtypes",[])],nF.prototype,"typographyBump",null);
_.L([_.S("isSearch"),_.p("design:type",Object),_.p("design:paramtypes",[])],nF.prototype,"lockupExperiments",null);_.L([_.S("isSearch"),_.p("design:type",String),_.p("design:paramtypes",[])],nF.prototype,"thumbnailWidth",null);_.L([_.Fe("data"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],nF.prototype,"dataChanged",null);_.L([_.U({disableElementRegistration:!0,is:"ytd-vertical-list-renderer"})],nF);
_.D(nF,"ytd-vertical-list-renderer",function(){if(SYO!==void 0)return SYO;var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-vertical-list-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="items" class="style-scope ytd-vertical-list-renderer"></div>\n<div id="more" hidden="[[hideShowMore]]" class="style-scope ytd-vertical-list-renderer">\n  <yt-formatted-string text="[[data.collapsedStateButtonText]]" on-tap="onMoreClick" class="style-scope ytd-vertical-list-renderer">\n  </yt-formatted-string>\n</div>\n<div id="all" hidden="[[hideShowAll]]" class="style-scope ytd-vertical-list-renderer">\n  <a class="yt-simple-endpoint style-scope ytd-vertical-list-renderer" href$="[[computeHref_(data.expandedStateButtonEndpoint]]" data="[[data.expandedStateButtonEndpoint]]">\n    <yt-formatted-string text="[[data.expandedStateButtonText]]" class="style-scope ytd-vertical-list-renderer">\n    </yt-formatted-string>\n  </a>\n</div>\n');
a.content.insertBefore(_.w().content.cloneNode(!0),a.content.firstChild);return SYO=a},{mode:1});var iTw=_.kK(["#"]);_.$q("itemSectionRenderer","shelfRenderer","ytd-shelf-renderer");var KF=function(){var a=_.G.apply(this,arguments)||this;a.isConstrainedList=!1;a.modernTypography=_.K("web_modern_typography");return a};
_.b(KF,_.G);_.Z=KF.prototype;
_.Z.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"}}}};
_.Z.computeThumbnailStyle=function(a){return a||""};
_.Z.computePlaceAnnotationUnderTitle=function(){var a;return["CHANNEL_THUMBNAIL_STYLE_BOXART","CHANNEL_THUMBNAIL_STYLE_BOXART_ROUNDED"].includes(((a=this.data)==null?void 0:a.thumbnailStyle)||"")};
_.Z.computeHrefWithDefault=function(a){return this.ytComponentBehavior.computeHref_(a)||_.qaM(iTw)};
_.Z.computeIsPromoShelf=function(a){var z;return(a=a==null?void 0:(z=a[0])==null?void 0:z.metadataBadgeRenderer)?a.style==="BADGE_STYLE_TYPE_YPC_TRANSPARENT":!1};
_.Z.computePlaceBadgeBesideTitle=function(a){var z;return(a==null?0:(z=a[0])==null?0:z.metadataBadgeRenderer)?!this.computeIsPromoShelf(a):!1};
_.Z.computeMenuIcon=function(a){return this.computeIsPromoShelf(a)?"yt-icons:more_vert":"yt-icons:more"};
_.Z.onDataChange=function(){var a,z;((a=this.data)==null?0:(z=a.content)==null?0:z.horizontalListRenderer)&&!this.data.content.horizontalListRenderer.items&&(this.data.content.horizontalListRenderer=void 0)};
_.Z.onLockupRequested=function(a){if(this.data&&this.data.content&&this.data.content.gridRenderer&&this.data.content.gridRenderer.items&&a.detail&&a.detail.videoIds){for(var z=this.data.content.gridRenderer.items,I=new Set,J=_.C(a.detail.videoIds),r=J.next();!r.done;r=J.next())I.add(r.value);a.detail.returnValue=z.filter(function(P){return P.gridVideoRenderer&&P.gridVideoRenderer.videoId&&I.has(P.gridVideoRenderer.videoId)}).map(function(P){return P.gridVideoRenderer})}};
_.Z.onParentResize=function(){this.ironResizableBehavior.notifyResize()};
KF.prototype.onLockupRequested=KF.prototype.onLockupRequested;KF.prototype.onDataChange=KF.prototype.onDataChange;_.L([_.Q(_.u4.YtRendererstamperBehavior),_.p("design:type",Object)],KF.prototype,"ytRendererstamperBehavior",void 0);_.L([_.Q(_.mD),_.p("design:type",Object)],KF.prototype,"ytdDismissibleItemBehavior",void 0);_.L([_.Q(_.k.YtRendererBehavior),_.p("design:type",Object)],KF.prototype,"ytRendererBehavior",void 0);
_.L([_.Q(_.Ms.YtComponentBehavior),_.p("design:type",Object)],KF.prototype,"ytComponentBehavior",void 0);_.L([_.Q(_.Ts),_.p("design:type",Object)],KF.prototype,"ironResizableBehavior",void 0);_.L([_.x(),_.p("design:type",Object)],KF.prototype,"data",void 0);_.L([_.x({value:!1}),_.p("design:type",Boolean)],KF.prototype,"isSearch",void 0);_.L([_.x(),_.p("design:type",Object)],KF.prototype,"isConstrainedList",void 0);_.L([_.x({reflectToAttribute:!0,value:function(){return _.K("kevlar_fluid_dismiss")}}),
_.p("design:type",Boolean)],KF.prototype,"enableFluidDismiss",void 0);_.L([_.x({reflectToAttribute:!0,computed:"computeThumbnailStyle(data.thumbnailStyle)"}),_.p("design:type",String)],KF.prototype,"thumbnailStyle",void 0);_.L([_.x({reflectToAttribute:!0}),_.p("design:type",Object)],KF.prototype,"modernTypography",void 0);_.L([_.x({computed:"computeMenuIcon(data.badges)"}),_.p("design:type",String)],KF.prototype,"menuIcon",void 0);
_.L([_.O8("data"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],KF.prototype,"onDataChange",null);_.L([_.gz("yt-lockup-requested"),_.p("design:type",Function),_.p("design:paramtypes",[CustomEvent]),_.p("design:returntype")],KF.prototype,"onLockupRequested",null);_.L([_.U({is:"ytd-shelf-renderer",disableElementRegistration:!0})],KF);
_.D(KF,"ytd-shelf-renderer",function(){if(Qqv!==void 0)return Qqv;var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-shelf-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="dismissible" class="style-scope ytd-shelf-renderer">\n  <div class="grid-subheader style-scope ytd-shelf-renderer" hidden="[[data.hideHeader]]">\n    <div id="title-container" hidden="[[!data.title]]" class="style-scope ytd-shelf-renderer">\n      <h2 class="style-scope ytd-shelf-renderer">\n        <template is="dom-if" if="[[!data.endpoint]]" class="style-scope ytd-shelf-renderer">\n          <yt-icon id="icon" disable-upgrade$="[[!data.icon.iconType]]" hidden="[[!data.icon.iconType]]" icon="[[data.icon.iconType]]" class="style-scope ytd-shelf-renderer">\n          </yt-icon>\n          <span id="title" class="style-scope ytd-shelf-renderer">[[getSimpleString(data.title)]]</span>\n        </template>\n        <template is="dom-if" if="[[data.endpoint]]" class="style-scope ytd-shelf-renderer">\n          <div id="image-container" class="style-scope ytd-shelf-renderer">\n            <a class="yt-simple-endpoint style-scope ytd-shelf-renderer" aria-hidden="true" href$="[[computeHref_(data.endpoint)]]" data="[[data.endpoint]]" tabindex="-1" title="[[getSimpleString(data.title)]]">\n              <yt-img-shadow id="avatar" hidden="[[!data.thumbnail]]" thumbnail="[[data.thumbnail]]" class="style-scope ytd-shelf-renderer">\n              </yt-img-shadow>\n              <yt-icon id="icon" disable-upgrade$="[[!data.icon.iconType]]" hidden="[[!data.icon.iconType]]" icon="[[data.icon.iconType]]" class="style-scope ytd-shelf-renderer">\n              </yt-icon>\n            </a>\n            <div id="title-text" class="style-scope ytd-shelf-renderer">\n              <a class="yt-simple-endpoint style-scope ytd-shelf-renderer" href$="[[computeHrefWithDefault(data.endpoint)]]" data="[[data.endpoint]]">\n                <span id="title" class="style-scope ytd-shelf-renderer">[[getSimpleString(data.title)]]</span>\n              </a>\n              <ytd-badge-supported-renderer id="title-featured-badge" badges="[[data.badges]]" hidden="[[!computeIsPromoShelf(data.badges)]]" class="style-scope ytd-shelf-renderer">\n              </ytd-badge-supported-renderer>\n              <yt-formatted-string id="title-annotation" hidden="[[!computePlaceAnnotationUnderTitle(data)]]" text="[[data.titleAnnotation]]" class="style-scope ytd-shelf-renderer">\n              </yt-formatted-string>\n            </div>\n          </div>\n        </template>\n        <ytd-badge-supported-renderer id="featured-badge" badges="[[data.badges]]" hidden="[[!computePlaceBadgeBesideTitle(data.badges)]]" class="style-scope ytd-shelf-renderer">\n        </ytd-badge-supported-renderer>\n        <yt-formatted-string id="title-annotation" hidden="[[computePlaceAnnotationUnderTitle(data)]]" text="[[data.titleAnnotation]]" class="style-scope ytd-shelf-renderer">\n        </yt-formatted-string>\n        <div id="play-button" class="style-scope ytd-shelf-renderer"></div>\n        <div id="sort-filter" class="style-scope ytd-shelf-renderer"></div>\n      </h2>\n      <div id="spacer" class="style-scope ytd-shelf-renderer"></div>\n      <div id="subscribe-button" class="style-scope ytd-shelf-renderer"></div>\n      <div id="menu" class="style-scope ytd-shelf-renderer"></div>\n    </div>\n    <yt-formatted-string id="subtitle" class="can-be-empty style-scope ytd-shelf-renderer" text="[[data.subtitle]]">\n    </yt-formatted-string>\n  </div>\n  <div id="contents" class="style-scope ytd-shelf-renderer"></div>\n</div>\n<div id="dismissed" class="style-scope ytd-shelf-renderer"></div>\n');a.content.insertBefore(_.w().content.cloneNode(!0),
a.content.firstChild);return Qqv=a},{mode:1});var xPG;var FR=function(){return _.G.apply(this,arguments)||this};
_.b(FR,_.G);FR.prototype.configureRendererStamper=function(){return{"data.filterMenu":{id:"filter-menu",mapping:{sortFilterSubMenuRenderer:{component:"yt-sort-filter-sub-menu-renderer",properties:{isRightAligned:"[[isRightAligned]]"}}}}}};
_.eH.Object.defineProperties(FR.prototype,{hasTitle:{configurable:!0,enumerable:!0,get:function(){var a;return!((a=this.data)==null||!a.title)}},
isRightAligned:{configurable:!0,enumerable:!0,get:function(){return!this.isPlaylist&&!this.isClipList&&!this.isPlaylistPageWithFilters}}});
_.L([_.Q(_.u4.YtRendererstamperBehavior),_.p("design:type",Object)],FR.prototype,"ytRendererstamperBehavior",void 0);_.L([_.Q(_.k.YtRendererBehavior),_.p("design:type",Object)],FR.prototype,"ytRendererBehavior",void 0);_.L([_.x(),_.p("design:type",Object)],FR.prototype,"data",void 0);_.L([_.x({value:!1,reflectToAttribute:!0}),_.p("design:type",Boolean)],FR.prototype,"isPlaylist",void 0);_.L([_.x({value:!1,reflectToAttribute:!0}),_.p("design:type",Boolean)],FR.prototype,"isClipList",void 0);
_.L([_.x({value:!1,reflectToAttribute:!0}),_.p("design:type",Boolean)],FR.prototype,"isPlaylistPageWithFilters",void 0);_.L([_.x({value:!1,reflectToAttribute:!0}),_.S("data"),_.p("design:type",Object),_.p("design:paramtypes",[])],FR.prototype,"hasTitle",null);_.L([_.x(),_.S("isPlaylist","isClipList","isPlaylistPageWithFilters"),_.p("design:type",Object),_.p("design:paramtypes",[])],FR.prototype,"isRightAligned",null);
_.L([_.U({is:"ytd-sort-filter-header-renderer",disableElementRegistration:!0})],FR);
_.D(FR,"ytd-sort-filter-header-renderer",function(){if(xPG!==void 0)return xPG;var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-sort-filter-header-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header-container" class="style-scope ytd-sort-filter-header-renderer">\n  <div id="headings" hidden="[[!data.title]]" class="style-scope ytd-sort-filter-header-renderer">\n    <yt-formatted-string id="title" text="[[data.title]]" class="style-scope ytd-sort-filter-header-renderer">\n    </yt-formatted-string>\n    <yt-formatted-string id="subtitle" hidden="[[!data.subtitle]]" text="[[data.subtitle]]" class="style-scope ytd-sort-filter-header-renderer">\n    </yt-formatted-string>\n  </div>\n  <div id="filter-menu" class="style-scope ytd-sort-filter-header-renderer"></div>\n</div>\n');a.content.insertBefore(_.w().content.cloneNode(!0),
a.content.firstChild);return xPG=a},{mode:1});var v5E;var H5=function(){var a=_.G.apply(this,arguments)||this;a.enableRightArrowHidden=_.K("channel_details_shelf_resize_observer")&&!!window.ResizeObserver;return a};
_.b(H5,_.G);H5.prototype.attached=function(){var a=this;this.enableRightArrowHidden&&(this.JSC$16278_throttledOnResize=new _.kc(function(){var z;(z=a.ytdHorizontalListBehavior)==null||z.reset()},200,this),this.resizeObserver=new ResizeObserver(function(){var z;
(z=a.JSC$16278_throttledOnResize)==null||z.fire()}),this.resizeObserver.observe(this.hostElement))};
H5.prototype.detached=function(){if(this.enableRightArrowHidden){var a;(a=this.resizeObserver)==null||a.disconnect();var z;(z=this.JSC$16278_throttledOnResize)==null||z.dispose()}};
H5.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]]"}}}}}};
H5.prototype.getItemsPath=function(){return"data.creatorCustomUrlButtons"};
_.eH.Object.defineProperties(H5.prototype,{hideRightArrow:{configurable:!0,enumerable:!0,get:function(){return this.enableRightArrowHidden&&this.ytdHorizontalListBehavior.atEnd}},
creatorCustomUrlButtons:{configurable:!0,enumerable:!0,get:function(){if(this.data&&_.K("enable_creator_details_shelf_m2")){var a=[],z;((z=this.data)==null?0:z.creatorVideosButton)&&a.push(this.data.creatorVideosButton);var I;((I=this.data)==null?0:I.creatorAboutButton)&&a.push(this.data.creatorAboutButton);z=_.C(this.data.creatorCustomUrlButtons||[]);for(I=z.next();!I.done;I=z.next())a.push(I.value);return a}}},
showCreatorCustomUrlButtons:{configurable:!0,enumerable:!0,get:function(){return!!_.K("enable_creator_details_shelf_m2")}},
channelAvatarSize:{configurable:!0,enumerable:!0,get:function(){return this.showCreatorCustomUrlButtons?36:72}}});
_.L([_.Q(_.k.YtRendererBehavior),_.p("design:type",Object)],H5.prototype,"ytRendererBehavior",void 0);_.L([_.Q(_.u4.YtRendererstamperBehavior),_.p("design:type",Object)],H5.prototype,"ytRendererstamperBehavior",void 0);_.L([_.Q(_.E3.YtdHorizontalListBehavior),_.p("design:type",Object)],H5.prototype,"ytdHorizontalListBehavior",void 0);_.L([_.x(),_.p("design:type",Object)],H5.prototype,"data",void 0);_.L([_.x({reflectToAttribute:!0}),_.p("design:type",Boolean)],H5.prototype,"engagementPanel",void 0);
_.L([_.x(),_.p("design:type",Object)],H5.prototype,"enableRightArrowHidden",void 0);_.L([_.S("enableRightArrowHidden","atEnd"),_.p("design:type",Boolean),_.p("design:paramtypes",[])],H5.prototype,"hideRightArrow",null);_.L([_.S("data"),_.p("design:type",Object),_.p("design:paramtypes",[])],H5.prototype,"creatorCustomUrlButtons",null);
_.L([_.x({reflectToAttribute:!0}),_.S("data","creatorCustomUrlButtons"),_.p("design:type",Boolean),_.p("design:paramtypes",[])],H5.prototype,"showCreatorCustomUrlButtons",null);_.L([_.S("showCreatorCustomUrlButtons"),_.p("design:type",Number),_.p("design:paramtypes",[])],H5.prototype,"channelAvatarSize",null);_.L([_.U({is:"ytd-video-description-infocards-section-renderer",disableElementRegistration:!0})],H5);
_.D(H5,"ytd-video-description-infocards-section-renderer",function(){if(v5E!==void 0)return v5E;var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-video-description-infocards-section-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<a id="header" class="yt-simple-endpoint style-scope ytd-video-description-infocards-section-renderer" data="[[data.channelEndpoint]]" href$="[[computeOptionalHref_(data.channelEndpoint)]]">\n  <yt-img-shadow id="thumbnail" alt="[[getSimpleString(data.sectionTitle)]]" hidden="[[!data.channelAvatar]]" thumbnail="[[data.channelAvatar]]" width="[[channelAvatarSize]]" class="style-scope ytd-video-description-infocards-section-renderer">\n  </yt-img-shadow>\n  <div id="header-text" class="style-scope ytd-video-description-infocards-section-renderer">\n    <h3 id="title" class="style-scope ytd-video-description-infocards-section-renderer">[[getSimpleString(data.sectionTitle)]]</h3>\n    <div id="subtitle" hidden="[[!data.sectionSubtitle]]" class="style-scope ytd-video-description-infocards-section-renderer">\n      [[getSimpleString(data.sectionSubtitle)]]\n    </div>\n  </div>\n</a>\n<div id="action-buttons" hidden="[[showCreatorCustomUrlButtons]]" class="style-scope ytd-video-description-infocards-section-renderer">\n  <div id="infocard-videos-button" class="style-scope ytd-video-description-infocards-section-renderer"></div>\n  <div id="infocard-channel-button" class="style-scope ytd-video-description-infocards-section-renderer"></div>\n</div>\n<div id="social-links" hidden="[[!showCreatorCustomUrlButtons]]" class="style-scope ytd-video-description-infocards-section-renderer">\n  <div id="left-arrow-container" class="arrow-container style-scope ytd-video-description-infocards-section-renderer">\n    <div id="left-arrow" class="arrow center-aligned style-scope ytd-video-description-infocards-section-renderer" on-click="prevClick_" hidden="[[atStart]]">\n       <yt-icon icon="yt-icons:chevron_left" class="style-scope ytd-video-description-infocards-section-renderer"></yt-icon>\n    </div>\n  </div>\n  <div id="scroll-container" class="style-scope ytd-video-description-infocards-section-renderer">\n    <div id="items" class="style-scope ytd-video-description-infocards-section-renderer"></div>\n  </div>\n  <div id="right-arrow-container" class="arrow-container style-scope ytd-video-description-infocards-section-renderer">\n    <div id="right-arrow" class="arrow center-aligned style-scope ytd-video-description-infocards-section-renderer" on-click="nextClick_" hidden="[[hideRightArrow]]">\n       <yt-icon icon="yt-icons:chevron_right" class="style-scope ytd-video-description-infocards-section-renderer"></yt-icon>\n    </div>\n  </div>\n</div>\n<div id="infocards-section" class="style-scope ytd-video-description-infocards-section-renderer"></div>\n');
a.content.insertBefore(_.w().content.cloneNode(!0),a.content.firstChild);return v5E=a},{mode:_.Np("kevlar_poly_si_batch_j067")?1:2});var GHl;var bM=function(){return _.G.apply(this,arguments)||this};
_.b(bM,_.G);_.L([_.Q(_.k.YtRendererBehavior),_.p("design:type",Object)],bM.prototype,"ytRendererBehavior",void 0);_.L([_.Q(_.u4.YtRendererstamperBehavior),_.p("design:type",Object)],bM.prototype,"ytRendererstamperBehavior",void 0);_.L([_.x(),_.p("design:type",Object)],bM.prototype,"data",void 0);_.L([_.x({computed:"computeIcon_(data.infoIcon)"}),_.p("design:type",Object)],bM.prototype,"infoIcon",void 0);_.L([_.U({is:"ytd-eom-settings-disclaimer-renderer",disableElementRegistration:!0})],bM);
_.D(bM,"ytd-eom-settings-disclaimer-renderer",function(){if(GHl!==void 0)return GHl;var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-eom-settings-disclaimer-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="app" class="style-scope ytd-eom-settings-disclaimer-renderer">\n  <yt-icon id="info" disable-upgrade$="[[!infoIcon]]" hidden="[[!infoIcon]]" icon="[[infoIcon]]" class="style-scope ytd-eom-settings-disclaimer-renderer">\n  </yt-icon>\n  <yt-formatted-string id="label" text="[[data.disclaimer]]" class="style-scope ytd-eom-settings-disclaimer-renderer">\n  </yt-formatted-string>\n</div>\n');
a.content.insertBefore(_.w().content.cloneNode(!0),a.content.firstChild);return GHl=a},{mode:1});var $Pf;var h9=function(){return _.G.apply(this,arguments)||this};
_.b(h9,_.G);_.eH.Object.defineProperties(h9.prototype,{suppressPaddingDisclaimer:{configurable:!0,enumerable:!0,get:function(){var a;return!((a=this.data)==null||!a.suppressPaddingDisclaimer)}}});
_.L([_.Q(_.k.YtRendererBehavior),_.p("design:type",Object)],h9.prototype,"ytRendererBehavior",void 0);_.L([_.Q(_.Ms.YtComponentBehavior),_.p("design:type",Object)],h9.prototype,"componentBehavior",void 0);_.L([_.Q(_.u4.YtRendererstamperBehavior),_.p("design:type",Object)],h9.prototype,"ytRendererstamperBehavior",void 0);_.L([_.x(),_.p("design:type",Object)],h9.prototype,"data",void 0);
_.L([_.x({reflectToAttribute:!0}),_.S("data"),_.p("design:type",Boolean),_.p("design:paramtypes",[])],h9.prototype,"suppressPaddingDisclaimer",null);_.L([_.U({disableElementRegistration:!0,is:"ytd-product-list-header-renderer"})],h9);
_.D(h9,"ytd-product-list-header-renderer",function(){if($Pf!==void 0)return $Pf;var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-product-list-header-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="main" class="style-scope ytd-product-list-header-renderer">\n  <yt-formatted-string id="title" role="heading" text="[[data.title]]" class="style-scope ytd-product-list-header-renderer">\n    </yt-formatted-string>\n</div>\n');a.content.insertBefore(_.w().content.cloneNode(!0),
a.content.firstChild);return $Pf=a},{mode:1});var Xui;var VA=function(){return _.G.apply(this,arguments)||this};
_.b(VA,_.G);VA.prototype.computeThumbnailStyle=function(a){if(a&&(a=_.Da(a)))return"background-color:"+a+";"};
_.L([_.Q(_.k.YtRendererBehavior),_.p("design:type",Object)],VA.prototype,"rendererBehaviors",void 0);_.L([_.x(),_.p("design:type",Object)],VA.prototype,"data",void 0);_.L([_.U({disableElementRegistration:!0,is:"ytd-hashtag-tile-renderer"})],VA);
_.D(VA,"ytd-hashtag-tile-renderer",function(){if(Xui!==void 0)return Xui;var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-hashtag-tile-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="content-section" class="style-scope ytd-hashtag-tile-renderer"><div id="thumbnail-section" class="style-scope ytd-hashtag-tile-renderer"><a class="hashtag-link yt-simple-endpoint style-scope ytd-hashtag-tile-renderer" href$="[[computeHref_(data.onTapCommand)]]" data="[[data.onTapCommand]]"><div id="thumbnail" class="style-scope ytd-hashtag-tile-renderer"><div id="thumbnail-spacing-wrapper" class="style-scope ytd-hashtag-tile-renderer"><div id="thumbnail-color-wrapper" style="[[computeThumbnailStyle(data.hashtagBackgroundColor)]]" class="style-scope ytd-hashtag-tile-renderer"><yt-img-shadow height="64" thumbnail="[[data.hashtagThumbnail]]" width="64" class="style-scope ytd-hashtag-tile-renderer"></yt-img-shadow></div></div></div></a></div><div id="info-section" class="style-scope ytd-hashtag-tile-renderer"><a id="main-link" class="hashtag-link yt-simple-endpoint style-scope ytd-hashtag-tile-renderer" href$="[[computeHref_(data.onTapCommand)]]" data="[[data.onTapCommand]]"><div id="info" class="style-scope ytd-hashtag-tile-renderer"><yt-formatted-string id="hashtag" text="[[data.hashtag]]" class="style-scope ytd-hashtag-tile-renderer"></yt-formatted-string><div id="metadata" class="style-scope ytd-hashtag-tile-renderer"><yt-formatted-string id="hashtag-info-text" text="[[data.hashtagInfoText]]" class="style-scope ytd-hashtag-tile-renderer"></yt-formatted-string></div></div></a></div></div>');a.content.insertBefore(_.w().content.cloneNode(!0),
a.content.firstChild);return Xui=a},{mode:1});var Tuj;var QA=function(){return _.G.apply(this,arguments)||this};
_.b(QA,_.G);QA.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}}}}}};
_.L([_.Q(_.k.YtRendererBehavior),_.p("design:type",Object)],QA.prototype,"ytRendererBehavior",void 0);_.L([_.Q(_.u4.YtRendererstamperBehavior),_.p("design:type",Object)],QA.prototype,"ytRendererstamperBehavior",void 0);_.L([_.x(),_.p("design:type",Object)],QA.prototype,"data",void 0);_.L([_.U({disableElementRegistration:!0,is:"ytd-sponsorships-alert-renderer"})],QA);
_.D(QA,"ytd-sponsorships-alert-renderer",function(){if(Tuj!==void 0)return Tuj;var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-sponsorships-alert-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-formatted-string id="alert-message" text="[[data.alertMessage]]" class="style-scope ytd-sponsorships-alert-renderer"></yt-formatted-string>\n<div id="action-buttons" class="style-scope ytd-sponsorships-alert-renderer">\n  <div id="action-button" class="style-scope ytd-sponsorships-alert-renderer"></div>\n  <div id="secondary-action-button" class="style-scope ytd-sponsorships-alert-renderer"></div>\n</div>\n');a.content.insertBefore(_.w().content.cloneNode(!0),
a.content.firstChild);return Tuj=a},{mode:1});var dPw;var Sy=function(){return _.G.apply(this,arguments)||this};
_.b(Sy,_.G);Sy.prototype.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:{component:"ytd-menu-renderer"}}},dismissedRenderer:{id:"dismissed",mapping:{notificationMultiActionRenderer:"ytd-notification-multi-action-renderer"}}}};
_.eH.Object.defineProperties(Sy.prototype,{watchFeedBigThumbs:{configurable:!0,enumerable:!0,get:function(){return _.K("kevlar_watch_feed_big_thumbs")?!0:!!this.isGridViewEnabled}},
thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){return this.isGridViewEnabled||_.K("kevlar_watch_feed_big_thumbs")?"9999":"168"}}});
_.L([_.Q(_.mD),_.p("design:type",Object)],Sy.prototype,"ytdDismissibleItemBehavior",void 0);_.L([_.Q(_.eB),_.p("design:type",Object)],Sy.prototype,"ytdLockupBehavior",void 0);_.L([_.Q(_.u4.YtRendererstamperBehavior),_.p("design:type",Object)],Sy.prototype,"ytRendererstamperBehavior",void 0);_.L([_.Q(_.k.YtRendererBehavior),_.p("design:type",Object)],Sy.prototype,"ytRendererBehavior",void 0);_.L([_.x({selector:_.W8}),_.p("design:type",Object)],Sy.prototype,"isGridViewEnabled",void 0);
_.L([_.S("isGridViewEnabled"),_.x({reflectToAttribute:!0}),_.p("design:type",Boolean),_.p("design:paramtypes",[])],Sy.prototype,"watchFeedBigThumbs",null);_.L([_.S("isGridViewEnabled"),_.x({reflectToAttribute:!0}),_.p("design:type",String),_.p("design:paramtypes",[])],Sy.prototype,"thumbnailWidth",null);_.L([_.x(),_.p("design:type",Object)],Sy.prototype,"data",void 0);_.L([_.U({disableElementRegistration:!0,is:"ytd-compact-movie-renderer"})],Sy);
_.D(Sy,"ytd-compact-movie-renderer",function(){if(dPw!==void 0)return dPw;var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-compact-movie-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="dismissible" class="style-scope ytd-compact-movie-renderer">\n  <ytd-thumbnail data="[[data]]" use-expandable-tooltip="[[useExpandableTooltip_]]" width="[[thumbnailWidth]]" class="style-scope ytd-compact-movie-renderer">\n  </ytd-thumbnail>\n  <div class="details style-scope ytd-compact-movie-renderer">\n    <a class="yt-simple-endpoint style-scope ytd-compact-movie-renderer" href$="[[computeHref_(data.navigationEndpoint)]]" data="[[data.navigationEndpoint]]">\n      <template is="dom-if" if="[[data.topStandaloneBadges]]" class="style-scope ytd-compact-movie-renderer">\n        <ytd-badge-supported-renderer badges="[[data.topStandaloneBadges]]" class="style-scope ytd-compact-movie-renderer">\n        </ytd-badge-supported-renderer>\n      </template>\n      <h3 id="movie-title" title$="[[getSimpleString(data.title)]]" aria-label$="[[data.title.accessibility.accessibilityData.label]]" class="style-scope ytd-compact-movie-renderer">\n        [[getSimpleString(data.title)]]\n      </h3>\n      <div class="secondary-metadata style-scope ytd-compact-movie-renderer">\n        <ytd-video-meta-block class="compact style-scope ytd-compact-movie-renderer" data="[[data]]" no-endpoints="">\n        </ytd-video-meta-block>\n        <span class="movie-metadata style-scope ytd-compact-movie-renderer">[[getSimpleString(data.topMetadataItems.0)]]</span>\n      </div>\n      <template is="dom-if" if="[[data.badges]]" class="style-scope ytd-compact-movie-renderer">\n        <ytd-badge-supported-renderer badges="[[data.badges]]" class="style-scope ytd-compact-movie-renderer">\n        </ytd-badge-supported-renderer>\n      </template>\n    </a>\n    <div id="menu" class="style-scope ytd-compact-movie-renderer"></div>\n  </div>\n</div>\n<div id="dismissed" class="style-scope ytd-compact-movie-renderer"></div>\n<yt-interaction id="interaction" class="extended style-scope ytd-compact-movie-renderer"></yt-interaction>\n');
a.content.insertBefore(_.w().content.cloneNode(!0),a.content.firstChild);return dPw=a},{mode:1});var Wue;var o5O;var UPe=_.Xw("HTML_DIR")==="rtl",iM=function(){var a=_.G.apply(this,arguments)||this;a.engagementPanel=!1;a.maxLines=2;a.expandButtonOffset=0;a.showExpandButton=!1;a.isTruncated=!1;a.isExpanded=!1;a.currentSnippetType=2;a.alwaysShowExpandButton=!1;a.JSC$16295_lastWidth=NaN;a.observer=null;a.left=0;a.right=0;a.mid=0;a.longestSnippetLength=0;a.isFinalSnippet=!1;a.isFirstMutation=!1;a.isResetMutation=!1;a.OVERFLOW_THRESHOLD=5;return a};
_.b(iM,_.G);_.Z=iM.prototype;_.Z.onClick=function(a){if(this.engagementPanel&&(this.showExpandButton||this.isExpanded)&&!_.qK(_.ch(a)||[],this.hostElement,["A".toString(),"BUTTON".toString(),"TP-YT-PAPER-BUTTON"])){var z;if((z=window.getSelection())==null||!z.toString().length)if(this.isExpanded)this.onCollapseClick();else this.onExpandClick()}};
_.Z.updateIsAttributedExpanded=function(){this.isAttributedExpanded=this.isExpanded&&this.hasAttributedStringText};
_.Z.updateIsFormattedExpanded=function(){this.isFormattedExpanded=this.isExpanded&&!this.hasAttributedStringText};
_.Z.updateTextOnSnippetTypeChange=function(){_.K("update_text_inline_expander_on_snippet_type_change_killswitch")||this.isResetMutation&&this.mutationCallback()};
_.Z.setUpBinarySearch=function(a){a=a*this.maxLines/8;this.left=0;var z,I;this.right=Math.min(a*2,(I=(z=this.simpleText)==null?void 0:z.length)!=null?I:0)-1;this.mid=Math.floor(this.left+(this.right-this.left)/2);this.longestSnippetLength=0};
_.Z.isEmptyStringBestCandidate=function(){return!this.isResetMutation&&!this.isFirstMutation&&this.longestSnippetLength===0&&this.mid===0};
_.Z.maybeLogWarningForEmptyAttributedSnippet=function(){this.attributedSnippetIsEmpty()&&!this.attributedTextIsEmpty()&&_.Xd(new _.Fn("AttributedSnippet is empty when the description is not empty",this.text))};
_.Z.mutationCallback=function(){if(this.observer!=null){var a=this.hostElement.offsetWidth;if(this.attributedSnippetIsEmpty()){if(this.isEmptyStringBestCandidate()){var z=Math.floor(a*this.maxLines/8);this.setSnippetText(this.text,z);z!==0||this.attributedTextIsEmpty()||_.Xd(new _.Fn("Estimated visible character count is 0 for AttributedString description",this.text));this.isFinalSnippet=!0;return}if(this.isResetMutation){this.isResetMutation=!1;this.observer.disconnect();this.attributedTextIsEmpty()?
this.maybeLogWarningForEmptyAttributedSnippet():this.resize(!0);return}}if(this.isFinalSnippet)this.expandButtonOffset=this.computeExpandButtonOffset(),this.observer.disconnect(),this.maybeLogWarningForEmptyAttributedSnippet();else if(this.isFirstMutation)if(this.isOverflowing()){this.showExpandButton=this.isTruncated=!0;a=a*this.maxLines/8;this.left=0;var I;this.right=Math.min(a*2,(I=(z=this.simpleText)==null?void 0:z.length)!=null?I: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)}}};
_.Z.mutationObserve=function(a){var z=this;this.observer||(this.observer=new MutationObserver(function(){z.mutationCallback()}));
this.observer.observe(a,{childList:!0,characterData:!0,characterDataOldValue:!0,subtree:!0})};
_.Z.attached=function(){var a=this;_.Yv(this,function(){a.resize()})};
_.Z.isExpandedChanged=function(){_.PA(this.hostElement,"yt-text-inline-expander-expanded-changed")};
_.Z.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)};
_.Z.updateMaskAndExpandButtonOffset=function(){if(this.isTruncated){var a="linear-gradient(\n        to top,\n        transparent 0%,\n        transparent 2rem,\n        #000 2rem,\n        #000 100%), linear-gradient(\n        to "+((UPe?"left":"right")+",\n        #000 0%,\n        #000 "+(this.expandButtonOffset-24)+"px,\n        transparent "+this.expandButtonOffset+"px,\n        transparent 100%)");this.snippetContainer.style.setProperty("-webkit-mask-image",a);this.snippetContainer.style.setProperty("mask-image",
a)}else this.snippetContainer.style.setProperty("-webkit-mask-image",""),this.snippetContainer.style.setProperty("mask-image","");this.showExpandButton&&this.expandButton.style.setProperty(UPe?"right":"left",this.expandButtonOffset+"px")};
_.Z.onTextChanged=function(){this.isAttached&&this.resize(!0)};
_.Z.setSnippetText=function(a,z){a||(a={});if(_.Mp(a)){var I=yX(a,z);I.attachmentRuns||I.commandRuns||I.decorationRuns||I.styleRuns||I.alignment||I.lineBreakMode?this.attributedSnippetTextEl?(_.K("kevlar_expander_as_setter_killswitch")?(this.attributedSnippetTextEl.data=yX(a,z),this.attributedSnippetTextEl.headerRuns=yd3(z,this.headerRuns)):this.attributedSnippetText={data:yX(a,z),headerRuns:yd3(z,this.headerRuns)},this.currentSnippetType=0):_.Xd(new _.Fn("Tried to set snippet text when HTML element was null",
a)):(this.plainSnippetText.textContent=wd(a.content||"",z),this.currentSnippetType=2)}else{a:{I=F43(a,z);if(I.runs){I=_.C(I.runs);for(var J=I.next();!J.done;J=I.next())if(J=J.value,J.bold||J.deemphasize||J.italics||J.strikethrough||J.textColor||J.navigationEndpoint||_.H(J,TQ)){I=!0;break a}}I=!1}I?this.formattedSnippetText?(this.formattedSnippetText.text=F43(a,z),this.currentSnippetType=1):_.Xd(new _.Fn("Tried to set snippet text when HTML element was null",a)):(this.plainSnippetText.textContent=
wd(_.cd(a),z),this.currentSnippetType=2)}};
_.Z.attributedSnippetIsEmpty=function(){return this.useAttributedSnippet&&this.attributedSnippetTextEl?this.attributedSnippetTextEl.childNodes.length===0:this.plainSnippetText.childNodes.length===0};
_.Z.attributedTextIsEmpty=function(){var a=this.text;if(!_.Mp(a))return!0;var z;return((z=a.content)==null?void 0:z.length)===0?!0:!1};
_.Z.resize=function(a){if(this.snippetText){if(a===void 0?0:a)this.JSC$16295_lastWidth=NaN;var z=this.hostElement.offsetWidth;if(z!==this.JSC$16295_lastWidth&&!this.isExpanded)if(this.JSC$16295_lastWidth=z,this.hasAttributedStringText)this.attributedSnippetIsEmpty()?(this.showExpandButton=this.alwaysShowExpandButton,this.isFinalSnippet=!1,this.isFirstMutation=!0,this.mutationObserve(this.snippetText),this.setSnippetText(this.text,Infinity)):(this.isResetMutation=!0,this.mutationObserve(this.snippetText),
this.setSnippetText(this.text,0));else if(this.setSnippetText(this.text,Infinity),this.showExpandButton=this.alwaysShowExpandButton,this.isOverflowing()){this.showExpandButton=this.isTruncated=!0;a=0;var I,J;z=Math.min(z*this.maxLines/8*2,(J=(I=this.simpleText)==null?void 0:I.length)!=null?J:0)-1;for(I=0;a<=z;)J=Math.floor(a+(z-a)/2),this.setSnippetText(this.text,J),this.isOverflowing()?z=J-1:(a=J+1,I=J);this.setSnippetText(this.text,I);this.expandButtonOffset=this.computeExpandButtonOffset()}else this.isTruncated=
!1,this.alwaysShowExpandButton&&(this.expandButtonOffset=this.computeExpandButtonOffset())}};
_.Z.collapse=function(){this.isExpanded=!1;this.resize(!0)};
_.Z.onExpandClick=function(){var a=this;this.expandCommand?this.componentBehavior.resolveCommand(this.expandCommand):(this.isExpanded=!0,this.showExpandButton=this.isTruncated=!1);_.K("inline_expander_reset_focus_killswitch")||_.Yv(this,function(){var z;((z=_.ab().resolve(_.eL(_.ET)))==null?0:z.isKeyBoardInUse())&&_.kk(a.hostElement)});
_.PA(this.hostElement,"yt-text-inline-expander-expand-clicked")};
_.Z.onCollapseClick=function(){this.collapse();_.PA(this.hostElement,"yt-text-inline-expander-collapse-clicked")};
_.Z.isOverflowing=function(){return this.snippetContainer.scrollHeight-this.snippetContainer.offsetHeight>this.OVERFLOW_THRESHOLD};
_.Z.computeExpandButtonOffset=function(){var a=this.expandSizer;return a?UPe?a.offsetParent?a.offsetParent.offsetWidth-a.offsetWidth-a.offsetLeft:0:a.offsetLeft:0};
_.eH.Object.defineProperties(iM.prototype,{simpleText:{configurable:!0,enumerable:!0,get:function(){return this.text?_.Mp(this.text)?this.text.content||"":_.cd(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 _.Mp(this.text)?!0:this.text&&_.K("web_replace_formatted_with_attributed_string")&&sC0(this.text)?(this.text=_.XJ(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}}});
iM.prototype.onTextChanged=iM.prototype.onTextChanged;iM.prototype.updateMaskAndExpandButtonOffset=iM.prototype.updateMaskAndExpandButtonOffset;iM.prototype.updateSnippetContainerMaxHeight=iM.prototype.updateSnippetContainerMaxHeight;iM.prototype.isExpandedChanged=iM.prototype.isExpandedChanged;iM.prototype.updateTextOnSnippetTypeChange=iM.prototype.updateTextOnSnippetTypeChange;iM.prototype.updateIsFormattedExpanded=iM.prototype.updateIsFormattedExpanded;iM.prototype.updateIsAttributedExpanded=iM.prototype.updateIsAttributedExpanded;
iM.prototype.onClick=iM.prototype.onClick;_.L([_.Q(_.Ms.YtComponentBehavior),_.p("design:type",Object)],iM.prototype,"componentBehavior",void 0);_.L([_.x(),_.p("design:type",Object)],iM.prototype,"text",void 0);_.L([_.x(),_.p("design:type",Array)],iM.prototype,"headerRuns",void 0);_.L([_.x({reflectToAttribute:!0}),_.p("design:type",Object)],iM.prototype,"engagementPanel",void 0);_.L([_.x(),_.p("design:type",Object)],iM.prototype,"maxLines",void 0);
_.L([_.x(),_.p("design:type",String)],iM.prototype,"expandLabel",void 0);_.L([_.x(),_.p("design:type",String)],iM.prototype,"collapseLabel",void 0);_.L([_.x(),_.p("design:type",Object)],iM.prototype,"expandCommand",void 0);_.L([_.x(),_.p("design:type",Object)],iM.prototype,"expandButtonOffset",void 0);_.L([_.S("text"),_.p("design:type",String),_.p("design:paramtypes",[])],iM.prototype,"simpleText",null);
_.L([_.gz("click"),_.p("design:type",Function),_.p("design:paramtypes",[CustomEvent]),_.p("design:returntype")],iM.prototype,"onClick",null);_.L([_.S("text","isExpanded"),_.p("design:type",Object),_.p("design:paramtypes",[])],iM.prototype,"expandedText",null);_.L([_.S("headerRuns","isExpanded"),_.p("design:type",Object),_.p("design:paramtypes",[])],iM.prototype,"expandedHeaderRuns",null);
_.L([_.S("text"),_.p("design:type",Boolean),_.p("design:paramtypes",[])],iM.prototype,"hasAttributedStringText",null);_.L([_.x({reflectToAttribute:!0}),_.p("design:type",Object)],iM.prototype,"showExpandButton",void 0);_.L([_.S("collapseLabel","isExpanded"),_.p("design:type",Object),_.p("design:paramtypes",[])],iM.prototype,"showCollapseButton",null);_.L([_.x(),_.p("design:type",Object)],iM.prototype,"isTruncated",void 0);
_.L([_.x({reflectToAttribute:!0}),_.p("design:type",Object)],iM.prototype,"isExpanded",void 0);_.L([_.x(),_.p("design:type",Boolean)],iM.prototype,"isAttributedExpanded",void 0);_.L([_.O8("isExpanded","hasAttributedStringText"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],iM.prototype,"updateIsAttributedExpanded",null);_.L([_.x(),_.p("design:type",Boolean)],iM.prototype,"isFormattedExpanded",void 0);
_.L([_.O8("isExpanded","hasAttributedStringText"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],iM.prototype,"updateIsFormattedExpanded",null);_.L([_.x(),_.p("design:type",Number)],iM.prototype,"currentSnippetType",void 0);_.L([_.S("currentSnippetType"),_.p("design:type",Object),_.p("design:paramtypes",[])],iM.prototype,"useAttributedSnippet",null);
_.L([_.S("currentSnippetType"),_.p("design:type",Object),_.p("design:paramtypes",[])],iM.prototype,"useFormattedSnippet",null);_.L([_.S("currentSnippetType"),_.p("design:type",Object),_.p("design:paramtypes",[])],iM.prototype,"usePlainSnippet",null);_.L([_.x(),_.p("design:type",Object)],iM.prototype,"alwaysShowExpandButton",void 0);_.L([_.O8("currentSnippetType"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],iM.prototype,"updateTextOnSnippetTypeChange",null);
_.L([_.x(),_.p("design:type",Object)],iM.prototype,"attributedSnippetText",void 0);_.L([_.A3("#snippet"),_.p("design:type",HTMLElement)],iM.prototype,"snippetContainer",void 0);_.L([_.A3("#snippet-text"),_.p("design:type",HTMLElement)],iM.prototype,"snippetText",void 0);_.L([_.A3("#plain-snippet-text"),_.p("design:type",HTMLElement)],iM.prototype,"plainSnippetText",void 0);_.L([_.A3("#formatted-snippet-text"),_.p("design:type",Object)],iM.prototype,"formattedSnippetText",void 0);
_.L([_.A3("#attributed-snippet-text"),_.p("design:type",Object)],iM.prototype,"attributedSnippetTextEl",void 0);_.L([_.A3("#expand"),_.p("design:type",HTMLElement)],iM.prototype,"expandButton",void 0);_.L([_.A3("#expand-sizer"),_.p("design:type",HTMLElement)],iM.prototype,"expandSizer",void 0);_.L([_.Fe("isExpanded"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],iM.prototype,"isExpandedChanged",null);
_.L([_.O8("isExpanded","maxLines"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],iM.prototype,"updateSnippetContainerMaxHeight",null);_.L([_.O8("isTruncated","showExpandButton","expandButtonOffset"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],iM.prototype,"updateMaskAndExpandButtonOffset",null);
_.L([_.Fe("text","simpleText","expandLabel","maxLines","alwaysShowExpandButton"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],iM.prototype,"onTextChanged",null);_.L([_.U({is:"ytd-text-inline-expander",disableElementRegistration:!0})],iM);
_.D(iM,"ytd-text-inline-expander",function(){if(o5O===void 0){var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-text-inline-expander--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="expanded" class="style-scope ytd-text-inline-expander"><yt-attributed-string data="[[expandedText]]" disable-upgrade$="[[!hasAttributedStringText]]" header-runs="[[expandedHeaderRuns]]" hidden="[[!isAttributedExpanded]]" user-input="" class="style-scope ytd-text-inline-expander"></yt-attributed-string><yt-formatted-string disable-attributed-string="" disable-upgrade$="[[hasAttributedStringText]]" hidden="[[!isFormattedExpanded]]" split-lines="[[!hasAttributedStringText]]" text="[[expandedText]]" class="style-scope ytd-text-inline-expander"></yt-formatted-string></div><div id="snippet" class="style-scope ytd-text-inline-expander"><span id="snippet-text" hidden="[[isExpanded]]" class="style-scope ytd-text-inline-expander"><span id="plain-snippet-text" hidden="[[!usePlainSnippet]]" class="style-scope ytd-text-inline-expander"></span><yt-attributed-string id="attributed-snippet-text" data="[[attributedSnippetText.data]]" disable-upgrade$="[[!hasAttributedStringText]]" header-runs="[[attributedSnippetText.headerRuns]]" hidden="[[!useAttributedSnippet]]" user-input="" class="style-scope ytd-text-inline-expander"></yt-attributed-string><yt-formatted-string id="formatted-snippet-text" disable-attributed-string="" disable-upgrade$="[[hasAttributedStringText]]" hidden="[[!useFormattedSnippet]]" class="style-scope ytd-text-inline-expander"></yt-formatted-string></span><span hidden="[[!showExpandButton]]" class="style-scope ytd-text-inline-expander">\u00a0</span><span id="ellipsis" hidden="[[!isTruncated]]" class="style-scope ytd-text-inline-expander">\u2026</span><tp-yt-paper-button id="expand-sizer" class="button style-scope ytd-text-inline-expander" hidden="[[!showExpandButton]]">[[expandLabel]]</tp-yt-paper-button></div><tp-yt-paper-button id="expand" class="button style-scope ytd-text-inline-expander" hidden="[[!showExpandButton]]" on-click="onExpandClick">[[expandLabel]]</tp-yt-paper-button><slot name="extra-content" class="style-scope ytd-text-inline-expander"></slot><tp-yt-paper-button id="collapse" class="button style-scope ytd-text-inline-expander" hidden="[[!showCollapseButton]]" on-click="onCollapseClick">[[collapseLabel]]</tp-yt-paper-button>');a.content.insertBefore(_.w().content.cloneNode(!0),
a.content.firstChild);o5O=a}a=o5O;return a},{mode:2});var x1=function(){var a=_.G.apply(this,arguments)||this;a.actionMap={"yt-update-description-action":"handleUpdateDescriptionAction"};return a};
_.b(x1,_.G);x1.prototype.panelContentVisibleChanged=function(){this.panelContentVisible&&this.inlineExpander&&(this.inlineExpander.isExpanded=!1,this.inlineExpander.resize())};
x1.prototype.handleUpdateDescriptionAction=function(a){if(a=_.H(a,_.Jti))if(a.attributedDescription)this.set("data.attributedDescriptionBodyText",a.attributedDescription);else if(a.description){var z;((z=this.data)==null?0:z.attributedDescriptionBodyText)?this.set("data.attributedDescriptionBodyText",_.XJ(a.description)):this.set("data.descriptionBodyText",a.description)}};
_.eH.Object.defineProperties(x1.prototype,{hasDescriptionText:{configurable:!0,enumerable:!0,get:function(){var a,z;return!((a=this.data)==null||!a.attributedDescriptionBodyText)||!((z=this.data)==null||!z.descriptionBodyText)}},
collapsedLines:{configurable:!0,enumerable:!0,get:function(){var a;if((a=this.data)==null?0:a.collapsedLineCount){var z;return(z=this.data)==null?void 0:z.collapsedLineCount}a=_.Ib("web_watch_description_collapsed_default_lines",12);if(_.K("ww_desc_line_page_size_ks"))return a;z=Math.round(_.bk().height*_.Ib("web_watch_description_screen_height_percentage",.5)/20);return Math.max(z,a)}},
descriptionText:{configurable:!0,enumerable:!0,get:function(){var a,z,I;return(I=(a=this.data)==null?void 0:a.descriptionBodyText)!=null?I:(z=this.data)==null?void 0:z.attributedDescriptionBodyText}},
headerRuns:{configurable:!0,enumerable:!0,get:function(){var a;return(a=this.data)==null?void 0:a.headerRuns}},
sourceAttributions:{configurable:!0,enumerable:!0,get:function(){var a;return(a=this.data)==null?void 0:a.sourceAttributions}}});
x1.prototype.panelContentVisibleChanged=x1.prototype.panelContentVisibleChanged;_.L([_.Q(_.Hc.YtActionHandlerBehavior),_.p("design:type",Object)],x1.prototype,"ytActionHandlerBehavior",void 0);_.L([_.Q(_.k.YtRendererBehavior),_.p("design:type",Object)],x1.prototype,"ytRendererBehavior",void 0);_.L([_.Q(_.Ms.YtComponentBehavior),_.p("design:type",Object)],x1.prototype,"componentBehavior",void 0);_.L([_.x(),_.p("design:type",Object)],x1.prototype,"data",void 0);
_.L([_.x(),_.p("design:type",Boolean)],x1.prototype,"panelContentVisible",void 0);_.L([_.x({reflectToAttribute:!0}),_.p("design:type",Boolean)],x1.prototype,"engagementPanel",void 0);_.L([_.x({reflectToAttribute:!0}),_.p("design:type",Boolean)],x1.prototype,"shortsPanel",void 0);_.L([_.A3("#inline-expander"),_.p("design:type",Object)],x1.prototype,"inlineExpander",void 0);
_.L([_.O8("panelContentVisible"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],x1.prototype,"panelContentVisibleChanged",null);_.L([_.S("data"),_.p("design:type",Boolean),_.p("design:paramtypes",[])],x1.prototype,"hasDescriptionText",null);_.L([_.S("data"),_.p("design:type",Number),_.p("design:paramtypes",[])],x1.prototype,"collapsedLines",null);
_.L([_.S("data","data.descriptionBodyText","data.attributedDescriptionBodyText"),_.p("design:type",Object),_.p("design:paramtypes",[])],x1.prototype,"descriptionText",null);_.L([_.S("data","data.headerRuns"),_.p("design:type",Object),_.p("design:paramtypes",[])],x1.prototype,"headerRuns",null);_.L([_.S("data","data.sourceAttributions"),_.p("design:type",Object),_.p("design:paramtypes",[])],x1.prototype,"sourceAttributions",null);
_.L([_.U({is:"ytd-expandable-video-description-body-renderer",disableElementRegistration:!0})],x1);
_.D(x1,"ytd-expandable-video-description-body-renderer",function(){if(Wue!==void 0)return Wue;var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-expandable-video-description-body-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<ytd-text-inline-expander id="inline-expander" collapse-label="[[getSimpleString(data.showLessText)]]" engagement-panel="[[engagementPanel]]" expand-label="[[getSimpleString(data.showMoreText)]]" header-runs="[[headerRuns]]" hidden="[[!hasDescriptionText]]" max-lines="[[collapsedLines]]" text="[[descriptionText]]" class="style-scope ytd-expandable-video-description-body-renderer">\n</ytd-text-inline-expander>\n<div id="source-attributions-wrapper" engagement-panel="[[engagementPanel]]" class="style-scope ytd-expandable-video-description-body-renderer">\n<template is="dom-repeat" items="[[sourceAttributions]]" as="sourceAttribution" class="style-scope ytd-expandable-video-description-body-renderer">\n  <yt-attributed-string class="source-attribution style-scope ytd-expandable-video-description-body-renderer" data="[[sourceAttribution]]" link-inherit-color="">\n  </yt-attributed-string>\n  </template>\n</div>');a.content.insertBefore(_.w().content.cloneNode(!0),
a.content.firstChild);return Wue=a},{mode:_.Np("kevlar_poly_si_batch_j028")?1:2});var DPj;var RBJ=_.ec(function(a){var z=a.data;return _.B("factoid-renderer",{class:"ytwFactoidRendererHost"},_.B("div",{class:"ytwFactoidRendererFactoid",role:"text","aria-label":function(){return z().accessibilityText}},_.B("span",{class:"ytwFactoidRendererValue"},_.B(_.xs,{text:function(){return z().value}})),_.B("span",{class:"ytwFactoidRendererLabel"},_.B(_.xs,{text:function(){return z().label}}))))},"bc");_.Jf(RBJ,"factoid-renderer",{props:{data:_.zl}});_.Jf(_.ec(function(a){var z=a.data;return _.B("upload-time-factoid-renderer",null,_.B(_.V0,{data:function(){return z().factoid}},{factoidRenderer:RBJ}))},"cc"),"upload-time-factoid-renderer",{props:{data:_.I5}});_.Jf(_.ec(function(a){var z=a.data;return _.B("view-count-factoid-renderer",null,_.B(_.V0,{data:function(){return z().factoid}},{factoidRenderer:RBJ}))},"dc"),"view-count-factoid-renderer",{props:{data:_.I5}});var v5=function(){var a=_.G.apply(this,arguments)||this;a.shortsPanel=!1;a.engagementPanel=!1;a.watchWhileSdp=_.K("shorts_desktop_watch_while_sdp");return a};
_.b(v5,_.G);v5.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"}}}}};
_.eH.Object.defineProperties(v5.prototype,{showChannelInfo:{configurable:!0,enumerable:!0,get:function(){if(this.shortsPanel||this.engagementPanel)return!1;var a;return(a=this.data)==null?void 0:a.channel}}});
_.L([_.Q(_.Ms.YtComponentBehavior),_.p("design:type",Object)],v5.prototype,"componentBehavior",void 0);_.L([_.Q(_.u4.YtRendererstamperBehavior),_.p("design:type",Object)],v5.prototype,"ytRendererstamperBehavior",void 0);_.L([_.x(),_.p("design:type",Object)],v5.prototype,"data",void 0);_.L([_.x({reflectToAttribute:!0}),_.p("design:type",Object)],v5.prototype,"shortsPanel",void 0);_.L([_.x({reflectToAttribute:!0}),_.p("design:type",Object)],v5.prototype,"engagementPanel",void 0);
_.L([_.x({reflectToAttribute:!0}),_.p("design:type",Object)],v5.prototype,"watchWhileSdp",void 0);_.L([_.S("shortsPanel","engagementPanel","data.channel"),_.p("design:type",Object),_.p("design:paramtypes",[])],v5.prototype,"showChannelInfo",null);_.L([_.U({is:"ytd-video-description-header-renderer",disableElementRegistration:!0})],v5);
_.D(v5,"ytd-video-description-header-renderer",function(){if(DPj!==void 0)return DPj;var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-video-description-header-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="title" hidden="[[!data.title]]" class="style-scope ytd-video-description-header-renderer">\n  <yt-formatted-string text="[[data.title]]" class="style-scope ytd-video-description-header-renderer"></yt-formatted-string>\n</div>\n<template is="dom-if" if="[[showChannelInfo]]" class="style-scope ytd-video-description-header-renderer">\n    <div id="channel-info" class="style-scope ytd-video-description-header-renderer">\n    <a class="yt-simple-endpoint style-scope ytd-video-description-header-renderer" href$="[[computeHref_(data.channelNavigationEndpoint)]]" data="[[data.channelNavigationEndpoint]]" tabindex="-1">\n      <yt-img-shadow id="avatar" alt="[[getSimpleString(data.channel)]]" fit="" thumbnail="[[data.channelThumbnail]]" width="36" class="style-scope ytd-video-description-header-renderer">\n      </yt-img-shadow>\n    </a>\n    <ytd-channel-name id="channel-name" channel-name="[[getSimpleString(data.channel)]]" wrap-text="" class="style-scope ytd-video-description-header-renderer">\n    </ytd-channel-name>\n  </div>\n</template>\n\n<div id="factoids" class="style-scope ytd-video-description-header-renderer"></div>\n');a.content.insertBefore(_.w().content.cloneNode(!0),
a.content.firstChild);return DPj=a},{mode:1});var Luj;var GU=function(){return _.G.apply(this,arguments)||this};
_.b(GU,_.G);_.L([_.Q(_.Ms.YtComponentBehavior),_.p("design:type",Object)],GU.prototype,"ytComponentBehavior",void 0);_.L([_.Q(_.k.YtRendererBehavior),_.p("design:type",Object)],GU.prototype,"ytRendererBehavior",void 0);_.L([_.x({reflectToAttribute:!0}),_.p("design:type",Boolean)],GU.prototype,"noPadding",void 0);_.L([_.x(),_.p("design:type",Object)],GU.prototype,"data",void 0);_.L([_.U({disableElementRegistration:!0,is:"ytd-list-item-view-model"})],GU);
_.D(GU,"ytd-list-item-view-model",function(){if(Luj!==void 0)return Luj;var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-list-item-view-model--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="list-item" class="style-scope ytd-list-item-view-model">\n  <template is="dom-if" if="[[data.leadingImage]]" class="style-scope ytd-list-item-view-model">\n    <div id="leading-image-container" class="style-scope ytd-list-item-view-model">\n      <yt-image alt="Leading image for [[data.title]]" data="[[data.leadingImage]]" height="24" class="style-scope ytd-list-item-view-model">\n        </yt-image>\n    </div>\n  </template>\n  <div id="content" class="style-scope ytd-list-item-view-model">\n    <yt-attributed-string id="title" data="[[data.title]]" class="style-scope ytd-list-item-view-model">\n     </yt-attributed-string>\n      <yt-attributed-string id="subtitle" data="[[data.subtitle]]" class="style-scope ytd-list-item-view-model">\n      </yt-attributed-string>\n  </div>\n  <yt-button-view-model data="[[data.iconButton.buttonViewModel]]" scoping-class-name="[[is]]" class="style-scope ytd-list-item-view-model">\n  </yt-button-view-model>\n</div>\n');
a.content.insertBefore(_.w().content.cloneNode(!0),a.content.firstChild);return Luj=a},{mode:1});var lKf;var pui;var wuw;var mPG;var $1=function(){var a=_.G.apply(this,arguments)||this;a.adaptiveFullWidth=!1;a.modernButtons=_.K("web_modern_buttons");a.buttonOverrides={style:"call-to-action",type:"filled"};a.actionMap={"yt-share-panel-set-timestamp-action":"handleSetTimestamp_","yt-signal-action-copy-share-url":"handleSignalActionCopyShareUrl_"};return a};
_.b($1,_.G);$1.prototype.handleSetTimestamp_=function(a){this.data&&this.data.shortUrl&&(_.PK(this.hostElement).querySelector("#share-url").value=a.isSet?_.px(this.data.shortUrl,"t",a.timestamp):this.data.shortUrl)};
$1.prototype.handleSignalActionCopyShareUrl_=function(a,z){(_.K("killswitch_copy_link_target_check")||_.PK(this.hostElement).querySelector("#copy-button")===z)&&this.copyUrlToClipboard()};
$1.prototype.copyUrlToClipboard=function(){window.getSelection().removeAllRanges();_.PK(this.hostElement).querySelector("#share-url").select();document.execCommand("copy")};
$1.prototype.computeStyle_=function(a){return a?a.toLowerCase().replace(/_/g,"-"):""};
_.L([_.Q(_.Hc.YtActionHandlerBehavior),_.p("design:type",Object)],$1.prototype,"ytActionHandlerBehavior",void 0);_.L([_.Q(_.k.YtRendererBehavior),_.p("design:type",Object)],$1.prototype,"ytRendererBehavior",void 0);_.L([_.x(),_.p("design:type",Object)],$1.prototype,"data",void 0);_.L([_.x({reflectToAttribute:!0,computed:"computeStyle_(data.style)"}),_.p("design:type",String)],$1.prototype,"rendererStyle",void 0);
_.L([_.x({reflectToAttribute:!0}),_.p("design:type",Object)],$1.prototype,"adaptiveFullWidth",void 0);_.L([_.x({reflectToAttribute:!0}),_.p("design:type",Object)],$1.prototype,"modernButtons",void 0);_.L([_.x(),_.p("design:type",Object)],$1.prototype,"buttonOverrides",void 0);_.L([_.dz({is:"yt-copy-link-renderer",disableElementRegistration:!0})],$1);
_.D($1,"yt-copy-link-renderer",function(){if(mPG===void 0){var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-copy-link-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.sharing.yt_copy_link_renderer.yt.copy.link.renderer.css.js--\x3e<div id="bar" class="style-scope yt-copy-link-renderer">\n  <input id="share-url" dir="ltr" readonly="" size="45" value="[[data.shortUrl]]" class="style-scope yt-copy-link-renderer">\n  <yt-button-renderer id="copy-button" data="[[data.copyButton.buttonRenderer]]" overrides="[[buttonOverrides]]" class="style-scope yt-copy-link-renderer"></yt-button-renderer>\n</div>\n');a.content.insertBefore(_.w().content.cloneNode(!0),
a.content.firstChild);var z=a.content,I=z.insertBefore;wuw===void 0&&(wuw=document.createElement("template"));var J=wuw;I.call(z,J.content.cloneNode(!0),a.content.firstChild);mPG=a}a=mPG;return a},{mode:2});_.$q("itemSectionRenderer","toggleFormFieldRenderer","yt-toggle-form-field-renderer");var TU=function(){var a=_.G.apply(this,arguments)||this;a.actionMap={"yt-update-toggle-action":"handleUpdateToggleAction_"};return a};
_.b(TU,_.G);_.Z=TU.prototype;_.Z.configureRendererStamper=function(){return{"data.footer":{id:"footer-container",mapping:{copyLinkRenderer:"yt-copy-link-renderer"}}}};
_.Z.attached=function(){this.keyboardFocused=!1};
_.Z.onToggleButtonFocusin_=function(){if(this.useKeyboardFocused){var a=_.ab().resolve(_.eL(_.ET));a&&(this.keyboardFocused=a.isKeyBoardInUse())}};
_.Z.onToggleButtonFocusout_=function(){this.keyboardFocused=!1};
_.Z.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}};
_.Z.onChange_=function(){if(this.data){var a=this.data.toggled?this.data.toggleOnAction:this.data.toggleOffAction;a&&this.ytComponentBehavior.resolveCommand(a);this.data.requireChangeConfirmation&&this.set("data.toggled",!this.data.toggled)}};
_.Z.handleUpdateToggleAction_=function(a){(a=_.H(a,aPo))&&this.data&&a.targetId==this.data.targetId&&this.set("data.toggled",a.toggled)};
_.Z.toBoolean_=function(a){return!!a};
_.Z.reset=function(){};
_.Z.dataChangedForBinding=function(){this.hostElement.dispatchEvent(new _.eY("data-changed",this.data))};
_.Z.updateDataToggledFromBinding=function(a){this.set("data.toggled",a.detail.value)};
TU.prototype.dataChangedForBinding=TU.prototype.dataChangedForBinding;_.L([_.Q(_.Hc.YtActionHandlerBehavior),_.p("design:type",Object)],TU.prototype,"ytActionHandlerBehavior",void 0);_.L([_.Q(_.u4.YtRendererstamperBehavior),_.p("design:type",Object)],TU.prototype,"ytRendererstamperBehavior",void 0);_.L([_.Q(_.Ms.YtComponentBehavior),_.p("design:type",Object)],TU.prototype,"ytComponentBehavior",void 0);_.L([_.Q(_.k.YtRendererBehavior),_.p("design:type",Object)],TU.prototype,"ytRendererBehavior",void 0);
_.L([_.x(),_.p("design:type",Object)],TU.prototype,"data",void 0);_.L([_.x({computed:"computeDescription_(data.*)"}),_.p("design:type",Object)],TU.prototype,"description_",void 0);_.L([_.x({value:function(){return!!_.ab().resolve(_.eL(_.ET))&&_.K("kevlar_keyboard_button_focus")},
reflectToAttribute:!0}),_.p("design:type",Boolean)],TU.prototype,"useKeyboardFocused",void 0);_.L([_.x({value:!1,reflectToAttribute:!0}),_.p("design:type",Boolean)],TU.prototype,"keyboardFocused",void 0);_.L([_.O8("data"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],TU.prototype,"dataChangedForBinding",null);_.L([_.dz({is:"yt-toggle-form-field-renderer",disableElementRegistration:!0})],TU);
_.D(TU,"yt-toggle-form-field-renderer",function(){if(pui===void 0){var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-toggle-form-field-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.playlist.yt_toggle_form_field_renderer.yt.toggle.form.field.renderer.css.js--\x3e<div id="toggle-container" class="style-scope yt-toggle-form-field-renderer">\n  <div id="caption" class="style-scope yt-toggle-form-field-renderer">[[getSimpleString(data.label)]]</div>\n  <tp-yt-paper-toggle-button id="input" checked="[[data.toggled]]" disabled="[[toBoolean_(data.isDisabled)]]" noink="" on-change="onChange_" on-checked-changed="updateDataToggledFromBinding" on-focusin="onToggleButtonFocusin_" on-focusout="onToggleButtonFocusout_" class="style-scope yt-toggle-form-field-renderer">\n  </tp-yt-paper-toggle-button>\n</div>\n<yt-formatted-string id="description" hidden="[[!description_]]" text="[[description_]]" class="style-scope yt-toggle-form-field-renderer">\n</yt-formatted-string>\n<div id="footer-container" class="style-scope yt-toggle-form-field-renderer"></div>\n');
a.content.insertBefore(_.w().content.cloneNode(!0),a.content.firstChild);var z=a.content,I=z.insertBefore;lKf===void 0&&(lKf=document.createElement("template"));var J=lKf;I.call(z,J.content.cloneNode(!0),a.content.firstChild);pui=a}a=pui;return a},{mode:2});var ypJ;var kHf;var d6=function(){var a=_.G.apply(this,arguments)||this;a.isDarkTheme=!1;a.isSearch=!1;a.darkerDarkTheme=_.K("web_darker_dark_theme");a.noTopMargin=_.K("kevlar_watch_no_top_margin");a.maskFade=_.K("web_watch_chips_mask_fade");a.actionMap={"yt-related-chip-command":"handleRelatedChipCommand","yt-chip-cloud-chip-select-action":"handleChipCloudChipSelectAction","yt-chip-cloud-chip-deselect-action":"handleChipCloudChipDeselectAction","yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return a};
_.b(d6,_.G);_.Z=d6.prototype;_.Z.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}}}}}};
_.Z.attached=function(){this.isDarkTheme=document.documentElement.hasAttribute("dark")};
_.Z.isSearchChanged=function(){this.hostElement.setAttribute("id",this.isSearch?"search-chip-bar":"")};
_.Z.dataChanged=function(){var a=this.getSelectedIndex();if(a>0)this.selected=a;else{this.selected=0;var z,I;(z=this.ytScrollableChipCloudBehavior)==null||(I=z.reset)==null||I.call(z)}};
_.Z.getSelectedIndex=function(){var a;if((a=this.data)==null||!a.chips)return-1;a=-1;for(var z,I=0;I<((z=this.data)==null?void 0:z.chips.length);I++){var J=void 0,r=void 0;if((J=this.data)==null?0:(r=J.chips[I].chipCloudChipRenderer)==null?0:r.isSelected){a=I;break}}return a};
_.Z.onResize=function(){var a=this.ytScrollableChipCloudBehavior;_.Yv(a,a.setContainerWidthDiff);Al(this.ytScrollableChipCloudBehavior)};
_.Z.onDarkModeToggledAction=function(a){this.isDarkTheme=a};
_.Z.handleRelatedChipCommand=function(a,z){a=this.JSC$16322_chipsSelector.indexOf(z);a!==-1&&this.JSC$16322_chipsSelector.selectIndex(a)};
_.Z.handleChipCloudChipSelectAction=function(a){a=this.JSC$16322_chipsSelector.indexOf(a);a>-1&&this.JSC$16322_chipsSelector.selectIndex(a)};
_.Z.handleChipCloudChipDeselectAction=function(){var a=this.get("chips.0.chipCloudChipRenderer.navigationEndpoint",this.data);this.JSC$16322_chipsSelector&&((a==null?0:a.continuationCommand)?_.N$(this.hostElement,[a]):(a==null?0:a.searchEndpoint)?this.ytComponentBehavior.resolveCommand(a):a&&_.tR(this.hostElement,[a],this.hostElement),this.JSC$16322_chipsSelector.selectIndex(0),this.ytScrollableChipCloudBehavior.reset())};
_.Z.updateSelectedFromBinding=function(a){this.selected=a.detail.value};
d6.prototype.onResize=d6.prototype.onResize;d6.prototype.dataChanged=d6.prototype.dataChanged;d6.prototype.isSearchChanged=d6.prototype.isSearchChanged;_.L([_.Q(_.u4.YtRendererstamperBehavior),_.p("design:type",Object)],d6.prototype,"ytRendererstamperBehavior",void 0);_.L([_.Q(_.k.YtRendererBehavior),_.p("design:type",Object)],d6.prototype,"ytRendererBehavior",void 0);_.L([_.Q(_.Hc.YtActionHandlerBehavior),_.p("design:type",Object)],d6.prototype,"actionHandlerBehavior",void 0);
_.L([_.Q(_.Ts),_.p("design:type",Object)],d6.prototype,"ironResizableBehavior",void 0);_.L([_.Q(),_.p("design:type",ff)],d6.prototype,"ytScrollableChipCloudBehavior",void 0);_.L([_.Q(_.Ms.YtComponentBehavior),_.p("design:type",Object)],d6.prototype,"ytComponentBehavior",void 0);_.L([_.x(),_.p("design:type",Object)],d6.prototype,"data",void 0);_.L([_.x({value:0}),_.p("design:type",Number)],d6.prototype,"selected",void 0);
_.L([_.x({reflectToAttribute:!0}),_.p("design:type",Object)],d6.prototype,"isDarkTheme",void 0);_.L([_.x({value:160}),_.p("design:type",Number)],d6.prototype,"scrollDistance",void 0);_.L([_.x(),_.p("design:type",Object)],d6.prototype,"isSearch",void 0);_.L([_.x({reflectToAttribute:!0}),_.p("design:type",Object)],d6.prototype,"darkerDarkTheme",void 0);_.L([_.x({reflectToAttribute:!0}),_.p("design:type",Object)],d6.prototype,"noTopMargin",void 0);
_.L([_.x({reflectToAttribute:!0}),_.p("design:type",Object)],d6.prototype,"maskFade",void 0);_.L([_.A3("#chips"),_.p("design:type",Object)],d6.prototype,"JSC$16322_chipsSelector",void 0);_.L([_.O8("isSearch"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],d6.prototype,"isSearchChanged",null);_.L([_.Fe("data"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],d6.prototype,"dataChanged",null);
_.L([_.gz("iron-resize"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],d6.prototype,"onResize",null);_.L([_.dz({is:"yt-chip-cloud-renderer",disableElementRegistration:!0})],d6);
_.D(d6,"yt-chip-cloud-renderer",function(){if(kHf===void 0){var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-chip-cloud-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.sections.yt_chip_cloud_renderer.yt.chip.cloud.renderer.css.js--\x3e<div id="container" class="style-scope yt-chip-cloud-renderer">\n  <div id="left-arrow" class="style-scope yt-chip-cloud-renderer">\n    <div id="left-arrow-button" class="style-scope yt-chip-cloud-renderer"></div>\n  </div>\n  <div id="scroll-container" class="style-scope yt-chip-cloud-renderer">\n    <iron-selector id="chips" activate-event="" role="tablist" selected="[[selected]]" selected-attribute="selected" on-selected-changed="updateSelectedFromBinding" class="style-scope yt-chip-cloud-renderer">\n    </iron-selector>\n  </div>\n  <div id="right-arrow" class="style-scope yt-chip-cloud-renderer">\n    <div id="right-arrow-button" class="style-scope yt-chip-cloud-renderer"></div>\n  </div>\n</div>\n');a.content.insertBefore(_.w().content.cloneNode(!0),
a.content.firstChild);var z=a.content,I=z.insertBefore;ypJ===void 0&&(ypJ=document.createElement("template"));var J=ypJ;I.call(z,J.content.cloneNode(!0),a.content.firstChild);kHf=a}a=kHf;return a},{mode:2});var M4X,cpl=function(){return M4X!==void 0?M4X:M4X=document.createElement("template")};
document.head.appendChild(cpl().content);var YYf;var qYX=document.head,eBl=qYX.appendChild,a2G;if(YYf===void 0){var j9w=document.createElement("template");_.V(j9w,"");j9w.content.insertBefore(cpl().content.cloneNode(!0),j9w.content.firstChild);YYf=j9w}a2G=YYf;eBl.call(qYX,a2G.content);var z91=_.ec(function(a){var z=a.data;return _.B("offer-plan-details-item-view-model",{class:"ytOfferPlanDetailsItemViewModelHost"},_.B("div",{class:"ytOfferPlanDetailsItemViewModelOfferPlanDetailsItemContainer"},_.B("div",{class:"ytOfferPlanDetailsItemViewModelOfferPlanDetailsItemContent"},_.B(_.g,{cond:function(){return _.y0(z().image)},
then:function(I){return _.B("div",{class:"ytOfferPlanDetailsItemViewModelLogo"},_.B(_.qp,{data:I,alt:"",className:"ytOfferPlanDetailsItemViewModelLogoImage"}))}}),_.B("div",{class:"ytOfferPlanDetailsItemViewModelTitleText"},_.B(_.xs,{text:function(){return z().title}})),_.B("div",{class:"ytOfferPlanDetailsItemViewModelSubtitleText"},_.B(_.xs,{text:function(){return z().subtitle}})))),_.B(_.g,{cond:function(){var I;
return(I=z())==null?void 0:I.hasBottomDivider},
then:function(){return _.B("div",{class:"ytOfferPlanDetailsItemViewModelDivider"})}}))},"ec");var I2e=_.ec(function(a){var z=a.data;return _.B("offer-plan-details-container-view-model",{class:"ytOfferPlanDetailsContainerViewModelHost"},_.B("div",{class:"ytOfferPlanDetailsContainerViewModelOfferPlanContainer"},_.B(_.V0,{data:function(){var I;return(I=z().offerPlanDetailsItem)!=null?I:[]}},{offerPlanDetailsItemViewModel:function(I){return _.B("div",{class:"ytOfferPlanDetailsContainerViewModelOfferPlanDetailsItemContainer"},_.B(z91,{data:I.data}))}})),_.B("div",null,_.B(_.g,{cond:function(){return z().hasBottomDivider},
then:function(){return _.B("div",{class:"ytOfferPlanDetailsContainerViewModelDividerContainer"},_.B("div",{class:"ytOfferPlanDetailsContainerViewModelDivider"}),_.B("div",{class:"ytOfferPlanDetailsContainerViewModelAddIconContainer"},_.B("div",{class:"ytOfferPlanDetailsContainerViewModelAddIcon"},"+")),_.B("div",{class:"ytOfferPlanDetailsContainerViewModelDivider"}))}})))},"fc");var J6f=_.ec(function(a){var z=a.data;a=_.C(_.CW(!1,void 0,"SpEGQd"));var I=a.next().value,J=a.next().value,r=_.g4(function(){J(!I());return!1}),P=function(){var N;
return(N=z().offerPlanDetailsContainer)!=null?N:[]};
return _.B("lp-complex-offer-card-details-view-model",null,_.B("div",null,_.B(_.g,{cond:function(){return I()},
then:function(){return _.B("div",{class:"ytLpComplexOfferCardDetailsViewModelExpandedDetails"},_.B("div",{role:"button",class:"ytLpComplexOfferCardDetailsViewModelExpandedTitle","on:click":r,"aria-expanded":I},_.B(_.xs,{text:function(){return z().expandedTitle}})),_.B("div",{class:"ytLpComplexOfferCardDetailsViewModelOfferPlanDetailsContainers"},_.B(_.V0,{data:P},{offerPlanDetailsContainerViewModel:function(N){return _.B("div",{class:"ytLpComplexOfferCardDetailsViewModelOfferPlanDetailsContainer"},
_.B(I2e,{data:N.data}))}})),_.B("div",{class:"ytLpComplexOfferCardDetailsViewModelLegalText"},_.B(_.xs,{text:function(){return z().legalText}})))},
else:function(){return _.B("div",{role:"button",class:"ytLpComplexOfferCardDetailsViewModelCollapsedDetails","on:click":r,"aria-expanded":I},_.B(_.xs,{text:function(){return z().collapsedTitle}}),_.B("div",{class:"ytLpComplexOfferCardDetailsViewModelExpandIconContainer"},_.B(_.nS,{icon:"EXPAND_MORE".toString(),
ariaHidden:!0})))}})))},"gc");var r6O=_.ec(function(a){var z=a.data;return _.B("lp-complex-offer-card-option-view-model",null,_.B("div",{class:"ytLpComplexOfferCardOptionViewModelCardContainer"},_.B(_.g,{cond:function(){return z().topDividerText},
then:function(){return _.B("div",{class:"ytLpComplexOfferCardOptionViewModelDividerContainer"},_.B("div",{class:"ytLpComplexOfferCardOptionViewModelDivider"}),_.B("div",{class:"ytLpComplexOfferCardOptionViewModelDividerTextContainer"},_.B("div",{class:"ytLpComplexOfferCardOptionViewModelDividerText"},_.B(_.xs,{text:function(){return z().topDividerText}}))))}}),_.B(_.g,{cond:function(){return z().description},
then:function(){return _.B("div",{class:"ytLpComplexOfferCardOptionViewModelDescription"},_.B(_.xs,{text:function(){return z().description}}))}}),_.B(_.g,{cond:function(){return z().planPricingPrimary},
then:function(){return _.B("div",{class:"ytLpComplexOfferCardOptionViewModelPlanPricingPrimary"},_.B(_.xs,{text:function(){return z().planPricingPrimary}}))}}),_.B(_.g,{cond:function(){return z().planPricingSecondary},
then:function(){return _.B("div",{class:"ytLpComplexOfferCardOptionViewModelPlanPricingSecondary"},_.B(_.xs,{text:function(){return z().planPricingSecondary}}))}}),_.B(_.g,{cond:function(){return z().primaryButton},
then:function(){return _.B("div",{class:"ytLpComplexOfferCardOptionViewModelPrimaryButtonContainer"},_.B(_.V0,{data:function(){return z().primaryButton}},{buttonViewModel:function(I){return _.B(_.At,{data:I.data,
className:"ytLpComplexOfferCardOptionViewModelPrimaryButton"})}}))}})))},"hc");var P7O=_.ec(function(a){var z=a.data;var I=function(){var P;return((P=z())==null?void 0:P.alignSelf)==="LP_OFFER_TABLE_ALIGNMENT_START"||!1};
a={};var J={},r={};return _.B("ytm-lp-complex-offer-card-view-model",null,_.B("div",{class:"ytmLpComplexOfferCardViewModelHost"},_.B("div",{class:_.B8((a.ytmLpComplexOfferCardViewModelCardContainerAlignLeft=I,a),"ytmLpComplexOfferCardViewModelCardContainer")},_.B(_.g,{cond:function(){var P;return(P=z())==null?void 0:P.bannerText},
then:function(){return _.B("div",{class:"ytmLpComplexOfferCardViewModelBannerTextContainer"},_.B("div",{class:"ytmLpComplexOfferCardViewModelBannerText"},_.B(_.xs,{text:function(){return z().bannerText}})))}}),_.B(_.g,{cond:function(){return _.y0(z().logo)},
then:function(P){var N={};return _.B("div",{class:_.B8((N.ytmLpComplexOfferCardViewModelLogoAlignLeft=I,N),"ytmLpComplexOfferCardViewModelLogo")},_.B(_.qp,{data:P,alt:"",className:"ytmLpComplexOfferCardViewModelLogoImage"}))}}),_.B("div",{class:_.B8((J.ytmLpComplexOfferCardViewModelTitleAlignLeft=I,J),"ytmLpComplexOfferCardViewModelTitle")},_.B(_.xs,{text:function(){return z().title}})),_.B(_.g,{cond:function(){var P;
return(P=z())==null?void 0:P.subtitle},
then:function(){var P={};return _.B("div",{class:_.B8((P.ytmLpComplexOfferCardViewModelSubtitleAlignLeft=I,P),"ytmLpComplexOfferCardViewModelSubtitle")},_.B(_.xs,{text:function(){return z().subtitle}}))}}),_.B(_.g,{cond:function(){return z().planPricingPrimary},
then:function(){return _.B("div",{class:"ytmLpComplexOfferCardViewModelPlanPricingPrimary"},_.B(_.xs,{text:function(){return z().planPricingPrimary}}))}}),_.B(_.g,{cond:function(){return z().planPricingSecondary},
then:function(){return _.B("div",{class:"ytmLpComplexOfferCardViewModelPlanPricingSecondary"},_.B(_.xs,{text:function(){return z().planPricingSecondary}}))}}),_.B(_.g,{cond:function(){return z().purchaseButton},
then:function(){return _.B("div",{class:"ytmLpComplexOfferCardViewModelPurchaseButtonContainer"},_.B(_.V0,{data:function(){return z().purchaseButton}},{buttonViewModel:function(P){return _.B(_.At,{data:P.data,
className:"ytmLpComplexOfferCardViewModelPurchaseButton"})}}))}}),_.B(_.g,{cond:function(){var P;
return(P=z())==null?void 0:P.offerOptions},
then:function(){return _.B("div",{class:"ytmLpComplexOfferCardViewModelOfferOptions"},_.B(_.V0,{data:function(){return z().offerOptions}},{lpComplexOfferCardOptionViewModel:r6O}))}}),_.B("div",{class:_.B8((r.ytmLpComplexOfferCardViewModelLegalTextAlignLeft=I,r),"ytmLpComplexOfferCardViewModelLegalText")},_.B(_.xs,{text:function(){return z().legalText}})),_.B(_.g,{cond:function(){var P;
return(P=z())==null?void 0:P.offerCardDetails},
then:function(){return _.B("div",{class:"ytmLpComplexOfferCardViewModelOfferCardDetails"},_.B(_.V0,{data:function(){return z().offerCardDetails}},{lpComplexOfferCardDetailsViewModel:J6f}))}}))))},"ic");var ZYw=_.ec(function(a){var z=a.data;var I=function(){var N;return((N=z())==null?void 0:N.alignSelf)==="LP_OFFER_TABLE_ALIGNMENT_START"||!1};
a={};var J={},r={},P={};return _.B("ytm-lp-complex-offer-card-section-view-model",null,_.B("div",{class:_.B8("ytmLpComplexOfferCardSectionViewModelHost")},_.B("div",{class:_.B8((a.ytmLpComplexOfferCardSectionViewModelSectionContainerAlignLeft=I,a),"ytmLpComplexOfferCardSectionViewModelSectionContainer")},_.B("div",{class:_.B8((J.ytmLpComplexOfferCardSectionViewModelTitleContainerAlignLeft=I,J),"ytmLpComplexOfferCardSectionViewModelTitleContainer")},_.B("h2",{class:_.B8((r.ytmLpComplexOfferCardSectionViewModelTitleTextAlignLeft=
I,r),"ytmLpComplexOfferCardSectionViewModelTitleText")},_.B(_.xs,{text:function(){return z().title}}))),_.B(_.g,{cond:function(){var N;
return(N=z())==null?void 0:N.subtitle},
then:function(){var N={},u={};return _.B("div",{class:_.B8((N.ytmLpComplexOfferCardSectionViewModelSubtitleContainerAlignLeft=I,N),"ytmLpComplexOfferCardSectionViewModelSubtitleContainer")},_.B("div",{class:_.B8((u.ytmLpComplexOfferCardSectionViewModelSubtitleTextAlignLeft=I,u),"ytmLpComplexOfferCardSectionViewModelSubtitleText")},_.B(_.xs,{text:function(){return z().subtitle}})))}}),_.B("div",{class:_.B8((P.ytmLpComplexOfferCardSectionViewModelOfferCardsContainerAlignLeft=I,P),"ytmLpComplexOfferCardSectionViewModelOfferCardsContainer")},
_.B(_.V0,{data:function(){var N;
return(N=z().offerPlans)!=null?N:[]}},{lpComplexOfferCardViewModel:function(N){return _.B("div",{class:"ytmLpComplexOfferCardSectionViewModelOfferCardContainer"},_.B(P7O,{data:N.data}))}})))))},"jc");var C7v=_.ec(function(a){return _.B("lp-coupon-banner-view-model",{class:"ytLpCouponBannerViewModelHost"},_.B("div",{class:"ytLpCouponBannerViewModelIcon"},_.B(_.nS,{icon:function(){return"price_tag"}})),_.B("div",{class:"ytLpCouponBannerViewModelOuterContainer"},_.B("div",{class:"ytLpCouponBannerViewModelContent"},_.B("div",{class:"ytLpCouponBannerViewModelHeading"},_.B(_.xs,{text:function(){var z;
return(z=a.data())==null?void 0:z.title}})),_.B("div",{class:"ytLpCouponBannerViewModelBody"},_.B(_.xs,{text:function(){var z;
return(z=a.data())==null?void 0:z.subtitle}})))))},"kc");
C7v.idomCompat=!0;_.W5=j3f.getInstance();var Nvj;Nvj=_.ec(function(a){return _.B("div",{class:"yt-lp-faq-entry-view-model__lp-faq-section-faqs-question","aria-hidden":a.shouldAriaHideContent},_.B("h2",{class:"yt-lp-faq-entry-view-model__lp-faq-question",id:a.questionId},_.B(_.xs,{text:a.question})))},"lc");
_.tXI=_.ec(function(a){var z=a.data;var I=a.themeOverride;a=_.C(_.CW(!1,void 0,"ljTVPd"));var J=a.next().value,r=a.next().value;a=_.g4(function(){r(!J());return!1});
var P=function(){return J()?"EXPAND_LESS":"EXPAND_MORE"},N=("faq-container"+_.To(_.W5)).toString(),u="faq-question-and-answers-section-question"+_.To(_.W5),E={},O={};
return _.B("faq-entry-view-model-c3",null,_.B("div",{class:_.B8("yt-lp-faq-entry-view-model",(E["yt-lp-faq-entry-view-model--premium-force-dark-mode"]=function(){return I==null?void 0:I().useDarkTheme},E))},_.B("div",{class:"yt-lp-faq-entry-view-model__faq-question-and-answers-section",
"on:click":a,role:"button","aria-expanded":J,"aria-labelledby":u.toString(),"tab-index":"0"},_.B(Nvj,{question:function(){return z().question},
questionId:u,shouldAriaHideContent:!0}),_.B(_.g,{cond:function(){return J()!==void 0},
then:function(){return _.B("div",{class:"yt-lp-faq-entry-view-model__icon-container"},_.B(_.nS,{icon:P,ariaHidden:!0}),_.B("div",{class:"yt-lp-faq-entry-view-model__icon-hover-highlighting"}))}})),_.B("div",{class:_.B8("yt-lp-faq-entry-view-model__lp-faq-section-faqs-outer-answer",(O["yt-lp-faq-entry-view-model__lp-faq-section-faqs-outer-answer--collapsed"]=function(){return!J()},O))},_.B("div",{id:N},_.B(_.se,{each:function(){return z().answers||[]}},function(f){return _.B("div",{class:"yt-lp-faq-entry-view-model__lp-faq-section-faqs-answer"},
_.B(_.xs,{text:f}))})))))},"mc");
_.tXI.idomCompat=!0;var u$f=_.ec(function(a){var z=a.data;var I=a.themeOverride;a={};return _.B("lp-faq-section-view-model-c3",null,_.B("div",{class:_.B8("yt-lp-faq-section-view-model",(a["yt-lp-faq-section-view-model--ptc-layout-type"]=function(){return z().layoutType==="LP_MODULE_LAYOUT_TYPE_PTC"},a["yt-lp-faq-section-view-model--premium-force-dark-mode"]=function(){return!(I==null||!I().useDarkTheme)},a))},_.B("div",{class:"yt-lp-faq-section-view-model__faq-container"},_.B(_.g,{cond:function(){return z().header},
then:function(J){return _.B("div",{class:"yt-lp-faq-section-view-model__lp-faq-section-header"},_.B(_.xs,{text:J}))}}),_.B("div",{class:"yt-lp-faq-section-view-model__lp-faq-section-faqs"},_.B(_.V0,{data:function(){return z().faqs}},{faqEntryViewModel:function(J){return _.B(_.tXI,{data:J.data,
themeOverride:I})}})),_.B("div",{class:"yt-lp-faq-section-view-model__lp-faq-section-footers"},_.B(_.se,{each:function(){return z().footers||[]}},function(J){return _.B(_.xs,{text:J})})),_.B(_.g,{cond:function(){return z().legal},
then:function(J){return _.B("div",{class:"yt-lp-faq-section-view-model__lp-faq-section-legal"},_.B(_.xs,{text:J}))}}))))},"nc");
u$f.idomCompat=!0;var Emw=_.ec(function(a){var z=a.data;var I=a.themeOverride;_.QO(function(){var N=z().gtmId;N&&_.dr(N,_.Xw("GL",""))});
var J={contentMode:"CONTENT_MODE_SCALE_ASPECT_FIT",alt:function(){var N,u,E;return(E=(N=z().logo)==null?void 0:(u=N.accessibilityData)==null?void 0:u.label)!=null?E:""},
targetWidth:140,targetHeight:40,height:40,className:"lp-header-section-view-model__lp-header-logo",useWidth:!1},r=_.ab().resolve(_.eL(_.kN)),P=function(){return r&&r()||(I==null?void 0:I().useDarkTheme)};
return _.B("lp-header-section-view-model",null,_.B("div",{class:function(){var N=z().layoutType==="LP_MODULE_LAYOUT_TYPE_PTC",u=z().marginType==="LP_SECTION_MARGIN_TYPE_TOP",E=I==null?void 0:I().useDarkTheme,O=["lp-header-section-view-model"];N&&O.push("lp-header-section-view-model--ptc-layout-type");u&&O.push("lp-header-section-view-model__lp-header-section-margin");E&&O.push("lp-header-section-view-model--premium-force-dark-mode");return O.join(" ")}},_.B(_.g,{cond:function(){return z().logo},
then:function(){return _.B("div",null,_.B(_.g,{cond:P,then:function(){return _.B(_.g,{cond:function(){var N;return(N=z().logo)==null?void 0:N.imageDark},
then:function(N){return _.B(_.qp,Object.assign({},{data:N},J))}})},
else:function(){return _.B(_.g,{cond:function(){var N;return(N=z().logo)==null?void 0:N.imageLight},
then:function(N){return _.B(_.qp,Object.assign({},{data:N},J))}})}}))}}),_.B(_.g,{cond:function(){return z().title},
then:function(N){return _.B("div",{class:"lp-header-section-view-model__lp-header-title"},_.B(_.xs,{text:N}))}}),_.B("div",{class:"lp-header-section-view-model__lp-header-subtitle-section"},_.B(_.g,{cond:function(){return z().subtitles},
then:function(N){return _.B(_.se,{each:N},function(u){return _.B("div",{class:"lp-header-section-view-model__lp-header-subtitle-line"},_.B(_.xs,{text:u}))})}})),_.B(_.g,{cond:function(){return z().additionalInfo},
then:function(N){return _.B("div",{class:"lp-header-section-view-model__lp-header-additional-info"},_.B(_.xs,{text:N}))}}),_.B("div",{class:"lp-header-section-view-model__lp-header-button-section"},_.B(_.g,{cond:function(){return z().primaryButton},
then:function(N){return _.B("div",{class:"lp-header-section-view-model__lp-header-primary-button"},_.B(_.V0,{data:N},{buttonViewModel:_.At}))}}),_.B(_.g,{cond:function(){return z().secondaryButton},
then:function(N){return _.B("div",{class:"lp-header-section-view-model__lp-header-secondary-button"},_.B(_.V0,{data:N},{buttonViewModel:_.At}))}})),_.B(_.g,{cond:function(){return z().otherOffersInfo},
then:function(N){return _.B("div",{class:"lp-header-section-view-model__lp-header-other-offers-info"},_.B(_.xs,{text:N}))}}),_.B("div",{class:"lp-header-section-view-model__lp-header-billing-info"},_.B(_.g,{cond:function(){return z().billingInfo},
then:function(N){return _.B(_.se,{each:N},function(u){return _.B("div",null,_.B(_.xs,{text:u}))})}}))))},"oc");
Emw.idomCompat=!0;var Bvl=_.ec(function(a){var z=a.data;var I=_.Yi(a.themeOverride,{useDarkTheme:!1});a={};a=_.B8("ytm-lp-headline-section-view-model",(a["ytm-lp-headline-section-view-model--premium-force-dark-mode"]=function(){return I().useDarkTheme},a));
return _.B("lp-headline-section-view-model",null,_.B("div",{class:a},_.B("div",{class:"ytm-lp-headline-section-view-model__title-text"},_.B(_.xs,{text:function(){return z().title}})),_.B(_.g,{cond:function(){return z().subtitle},
then:function(J){return _.B("div",{class:"ytm-lp-headline-section-view-model__subtitle-text"},_.B(_.xs,{text:J}))}})))},"pc");var gmG=_.ec(function(a){var z=a.data;var I=a.themeOverride;var J=_.ab().resolve(_.eL(_.kN)),r=function(){return J&&J()||(I==null?void 0:I().useDarkTheme)},P=function(){var O,f;
var A=r()?(O=z().textBackgroundImage)==null?void 0:O.imageDark:(f=z().textBackgroundImage)==null?void 0:f.imageLight;return Oyp((A==null?void 0:A.sources)||[])},N=function(){var O,f;
return r()?(O=z().featureImage)==null?void 0:O.imageDark:(f=z().featureImage)==null?void 0:f.imageLight},u=function(){return z().featureType==="LP_LARGE_FEATURE_SECTION_TYPE_MUSIC"?"CONTENT_MODE_SCALE_ASPECT_FILL":"CONTENT_MODE_SCALE_ASPECT_FIT"},E=function(){var O,f;
return r()?(O=z().logo)==null?void 0:O.imageDark:(f=z().logo)==null?void 0:f.imageLight};
return _.B("ytm-lp-large-feature-section-view-model",null,_.B("div",{class:function(){var O=z().featureType==="LP_LARGE_FEATURE_SECTION_TYPE_MUSIC",f=z().featureType==="LP_LARGE_FEATURE_SECTION_TYPE_PTC",A=(z().index||0)%2===1,n=I==null?void 0:I().useDarkTheme,F=["yt-lp-large-feature-section-view-model"];O?F.push("yt-lp-large-feature-section-view-model--music-feature-type"):f?F.push("yt-lp-large-feature-section-view-model--ptc-feature-type"):A||F.push("yt-lp-large-feature-section-view-model--block-feature-type-2");
n&&F.push("yt-lp-large-feature-section-view-model--premium-force-dark-mode");return F.join(" ")}},_.B("div",{class:"yt-lp-large-feature-section-view-model__lp-large-feature-section-container"},_.B(_.g,{cond:N,
then:function(){return _.B(_.qp,{data:function(){return N()},
alt:function(){var O,f,A;return(A=(O=z().featureImage)==null?void 0:(f=O.accessibilityData)==null?void 0:f.label)!=null?A:""},
contentMode:u})}})),_.B("div",{class:"yt-lp-large-feature-section-view-model__lp-large-feature-section-container",
style:function(){var O;return((O=P())==null?0:O.url)?"background-image: url("+_.XG(P().url)+");":""}},_.B("div",{class:"yt-lp-large-feature-section-view-model__lp-large-feature-section-text-container"},_.B(_.g,{cond:E,
then:function(){return _.B(_.qp,{data:function(){return E()},
alt:function(){var O,f,A;return(A=(O=z().logo)==null?void 0:(f=O.accessibilityData)==null?void 0:f.label)!=null?A:""},
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"})}}),_.B(_.g,{cond:function(){return z().eyebrowText},
then:function(){return _.B("div",{class:"yt-lp-large-feature-section-view-model__lp-large-feature-section-eyebrow-text"},_.B(_.xs,{text:function(){return z().eyebrowText}}))}}),_.B(_.g,{cond:function(){return z().title},
then:function(){return _.B("div",{class:"yt-lp-large-feature-section-view-model__lp-large-feature-section-title"},_.B(_.xs,{text:function(){return z().title}}))}}),_.B(_.g,{cond:function(){return z().subtitles},
then:function(){return _.B("div",{class:"yt-lp-large-feature-section-view-model__lp-large-feature-section-subtitles"},_.B(_.se,{each:function(){return z().subtitles||[]}},function(O){return _.B(_.xs,{text:O})}))}})))))},"qc");
gmG.idomCompat=!0;var OYi=_.ec(function(a){return _.B("yt-lp-feature-list-item-view-model",{class:"ytLpFeatureListItemViewModelHost"},_.B("div",{class:"ytLpFeatureListItemViewModelFeatureList"},_.B(_.nS,{icon:function(){var z;return(z=a.data())==null?void 0:z.iconType},
className:function(){var z;switch((z=a.data())==null?void 0:z.style){case "LP_FEATURE_LIST_ITEM_STYLE_THEMED_GREEN_ICON_PRIMARY_TEXT":return"ytLpFeatureListItemViewModelFeatureListIconGreen";case "LP_FEATURE_LIST_ITEM_STYLE_SMALL_ICON_GREY_TEXT":return"ytLpFeatureListItemViewModelFeatureListIconSmall";default:return"ytLpFeatureListItemViewModelFeatureListIconDefault"}},
active:function(){var z;return((z=a.data())==null?void 0:z.style)==="LP_FEATURE_LIST_ITEM_STYLE_BOLD_ICON_PRIMARY_TEXT"}}),_.B("div",{class:"ytLpFeatureListItemViewModelFeatureListText"},_.B(_.xs,{text:function(){var z;
return(z=a.data())==null?void 0:z.text},
className:function(){var z;return((z=a.data())==null?void 0:z.style)==="LP_FEATURE_LIST_ITEM_STYLE_SMALL_ICON_GREY_TEXT"?"ytLpFeatureListItemViewModelFeatureListSecondaryText":""}}))))},"rc");var f2i=_.ec(function(a){a=_.q3(a,{config:void 0,themeOverride:void 0});var z=a.data,I=a.config,J=a.themeOverride;a={};a=_.B8("ytm-lp-offer-card-option-view-model",(a["ytm-lp-offer-card-option-view-model--premium-force-dark-mode"]=function(){var u;return(u=J())==null?void 0:u.useDarkTheme},a));
var r=_.g4(function(){var u,E;(u=I())==null||(E=u.handleRadioButtonClick)==null||E.call(u,z());return!1}),P=function(){var u;
return(u=I())==null?void 0:u.shouldDisplayRadioButton},N=function(){var u;
return(u=z().featureListItems)!=null?u:[]};
return _.B("ytm-lp-offer-card-option-view-model",null,_.B("div",{class:a,"on:click":_.g4(function(){if(P()){var u,E;(u=I())==null||(E=u.handleRadioButtonClick)==null||E.call(u,z())}return!1})},_.B(_.g,{cond:P,
then:function(){return _.B("div",null,_.B("input",{type:"radio","on:click":r,class:"ytm-lp-offer-card-option-view-model__input-el","prop:checked":function(){var u;return!((u=I())==null||!u.isOptionSelected)}}))}}),_.B("div",null,_.B("div",{class:"ytm-lp-offer-card-option-view-model__eyebrow-text"},_.B(_.xs,{text:function(){return z().eyebrowText}})),_.B("div",{class:"ytm-lp-offer-card-option-view-model__title"},_.B(_.xs,{text:function(){return z().title}})),_.B("div",{class:"ytm-lp-offer-card-option-view-model__subtitle"},
_.B(_.xs,{text:function(){return z().subtitle}})),_.B(_.g,{cond:function(){return N().length>0},
then:function(){return _.B("div",{class:"ytm-lp-offer-card-option-view-model__feature-list-items"},_.B(_.V0,{data:N},{lpFeatureListItemViewModel:OYi}))}}),_.B("div",{class:"ytm-lp-offer-card-option-view-model__description"},_.B(_.xs,{text:function(){return z().description}})))))},"sc");
f2i.idomCompat=!0;var A6i=_.ec(function(a){var z=a.data;var I=a.themeOverride;a=_.C(_.Af(function(){var P,N=(P=z().offerOptions)==null?void 0:P[0];return _.H(N,AVJ)||{}}));
var J=a.next().value,r=a.next().value;a={};return _.B("ytm-lp-offer-card-view-model",null,_.B("div",{class:_.B8("ytm-lp-offer-card-view-model",(a["ytm-lp-offer-card-view-model--premium-force-dark-mode"]=function(){return!(I==null||!I().useDarkTheme)},a))},_.B("div",{class:"ytm-lp-offer-card-view-model__title-container"},_.B(_.g,{cond:function(){return z().titleIconType},
then:function(){return _.B("div",{class:"ytm-lp-offer-card-view-model__icon-container"},_.B(_.nS,{icon:function(){var P;return((P=z().titleIconType)==null?void 0:P.toString())||""}}))}}),_.B("div",{class:"ytm-lp-offer-card-view-model__title-text"},_.B(_.xs,{text:function(){return z().title}})),_.B(_.V0,{data:function(){return z().titleBadge}},{badgeViewModel:function(P){return _.B("div",{class:"ytm-lp-offer-card-view-model__title-badge"},_.B(_.N8,{data:P.data}))}})),_.B("div",{class:"ytm-lp-offer-card-view-model__offer-options-container"},
_.B(_.V0,{data:function(){return z().offerOptions}},{lpOfferCardOptionViewModel:function(P){var N=P.data;
return _.B(_.eJ,null,_.B("div",{class:"ytm-lp-offer-card-view-model__divider"}),_.B(f2i,{data:N,config:function(){var u;return{shouldDisplayRadioButton:(z().offerOptions||[]).length>1,isOptionSelected:N().id===((u=J())==null?void 0:u.id),handleRadioButtonClick:function(E){return void r(E)}}},
themeOverride:I}))}})),_.B("div",{class:"ytm-lp-offer-card-view-model__purchase-button-container"},_.B(_.V0,{data:function(){var P;
return(P=J())==null?void 0:P.purchaseButtonOverride}},{buttonViewModel:_.At}))))},"tc");
A6i.idomCompat=!0;var s9w=_.ec(function(a){var z=a.data;var I=a.themeOverride;a={};a=_.B8("ytm-lp-offer-card-section-view-model",(a["ytm-lp-offer-card-section-view-model--premium-force-dark-mode"]=function(){var J;return I==null?void 0:(J=I())==null?void 0:J.useDarkTheme},a));
return _.B("ytm-lp-offer-card-section-view-model",null,_.B("div",{class:a},_.B(_.g,{cond:function(){return z().title!==void 0},
then:function(){return _.B("div",{class:"ytm-lp-offer-card-section-view-model__title-container"},_.B("div",{class:"ytm-lp-offer-card-section-view-model__title-text"},_.B(_.xs,{text:function(){return z().title}})),_.B(_.g,{cond:function(){return z().subtitle},
then:function(){return _.B("div",{class:"ytm-lp-offer-card-section-view-model__subtitle-text"},_.B(_.xs,{text:function(){return z().subtitle}}))}}))}}),_.B("div",{class:"ytm-lp-offer-card-section-view-model__offer-cards-container"},_.B(_.V0,{data:function(){return z().offerCards}},{lpOfferCardViewModel:function(J){return _.B("div",{class:"ytm-lp-offer-card-section-view-model__offer-card-container"},_.B(A6i,{data:J.data,
themeOverride:I}))}})),_.B(_.g,{cond:function(){return z().footer},
then:function(){return _.B("div",{class:"ytm-lp-offer-card-section-view-model__footer-text"},_.B(_.xs,{text:function(){return z().footer}}))}})))},"uc");var nm1=_.ec(function(a){var z=a.data;return _.B("lp-offer-table-cell-content-view-model",null,_.B("div",{class:"yt-lp-offer-table-cell-content-view-model"},_.B(_.Fw,null,_.B(_.n3,{when:function(){return z().title}},function(){return _.B(_.xs,{className:"yt-lp-offer-table-cell-content-view-model__lp-offer-table-cell-title",
text:function(){return z().title}})}),_.B(_.n3,{when:function(){return z().subTitle}},function(){return _.B(_.xs,{className:"yt-lp-offer-table-cell-content-view-model__lp-offer-table-cell-subtitle",
text:function(){return z().subTitle}})}),_.B(_.n3,{when:function(){return z().featureDescription}},function(){return _.B(_.xs,{className:"yt-lp-offer-table-cell-content-view-model__lp-offer-table-cell-feature-description",
text:function(){return z().featureDescription}})}),_.B(_.n3,{when:function(){return z().description}},function(){return _.B(_.xs,{className:"yt-lp-offer-table-cell-content-view-model__lp-offer-table-cell-description",
text:function(){return z().description}})}),_.B(_.n3,{when:function(){return z().iconType}},function(){return _.B("div",{class:"yt-lp-offer-table-cell-content-view-model__lp-offer-table-cell-icon"},_.B(_.nS,{icon:function(){return z().iconType.toString()}}))}),_.B(_.n3,{when:function(){return z().purchaseButton}},function(){return _.B(_.V0,{data:function(){return z().purchaseButton}},{buttonViewModel:function(I){return _.B("div",{class:"yt-lp-offer-table-cell-content-view-model__lp-offer-table-cell-purchase-button"},
_.B(_.At,{data:I.data}))}})}),_.B(_.n3,{when:function(){return z().note}},function(){return _.B(_.xs,{className:"yt-lp-offer-table-cell-content-view-model__lp-offer-table-cell-note",
text:function(){return z().note}})}),_.B(_.n3,{when:function(){return z().featureDetail}},function(){return _.B(_.xs,{className:"yt-lp-offer-table-cell-content-view-model__lp-offer-table-cell-feature-detail",
text:function(){return z().featureDetail}})}),_.B(_.n3,{when:function(){return z().badge}},function(){return _.B(_.V0,{data:function(){return z().badge}},{badgeViewModel:_.N8})}))))},"vc");
nm1.idomCompat=!0;var KLe=_.ec(function(a){var z=a.data;return _.B("lp-offer-table-cell-view-model",null,_.B("div",{class:"ytLpOfferTableCellViewModelCellWrapper",style:function(){switch(z().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;"}}},_.B(_.V0,{data:function(){return z().contents}},{lpOfferTableCellContentViewModel:nm1})))},
"wc");
KLe.idomCompat=!0;var FLI=_.ec(function(a){var z=a.data;var I=a.lpTableIsFirstRow;var J=a.lpTableIsLastRow;var r=function(){return(I==null?0:I())?"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"},P=function(){return(I==null?0:I())?"yt-lp-offer-table-row-view-model__lp-offer-table-first-row-content-cell":(J==null?0:J())?"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 _.B("ytm-lp-offer-table-row-view-model",null,_.B("div",{class:"yt-lp-offer-table-row-view-model"},_.B(_.V0,{data:function(){return z().rowHeaderCell}},{lpOfferTableCellViewModel:function(N){return _.B("div",{class:r},_.B(KLe,{data:N.data}))}}),_.B(_.V0,{data:function(){return z().contentCells}},{lpOfferTableCellViewModel:function(N){return _.B("div",{class:P},_.B(KLe,{data:N.data}))}})))},"xc");
FLI.idomCompat=!0;var HYw=_.ec(function(a){var z=a.data;var I=a.themeOverride;var J=_.ab().resolve(_.eL(_.kN)),r=function(){return _.H(z().logo,T7J)||{}};
a={};return _.B("ytm-lp-offer-table-section-view-model",null,_.B("div",{class:"yt-lp-offer-table-view-model"},_.B(_.g,{cond:function(){var P,N;return J&&J()||(I==null?0:I().useDarkTheme)?(P=r())==null?void 0:P.imageDark:(N=r())==null?void 0:N.imageLight},
then:function(P){return _.B(_.qp,{data:P,contentMode:"CONTENT_MODE_SCALE_ASPECT_FIT",alt:function(){var N,u,E;return(E=(N=r())==null?void 0:(u=N.accessibilityData)==null?void 0:u.label)!=null?E:""},
targetWidth:140,targetHeight:40,height:40,className:"yt-lp-offer-table-view-model__lp-offer-table-section-logo",useWidth:!1})}}),_.B("div",{class:"yt-lp-offer-table-view-model__lp-offer-table-section-title"},_.B(_.xs,{text:function(){return z().title}})),_.B("div",{class:"yt-lp-offer-table-view-model__lp-offer-table-section-subtitle"},_.B(_.xs,{text:function(){return z().subtitle}})),_.B(_.g,{cond:function(){return z().disclaimers},
then:function(P){return _.B("div",{class:"yt-lp-offer-table-view-model__lp-offer-table-section-disclaimers"},_.B(_.se,{each:P},function(N){return _.B("div",null,_.B(_.xs,{text:N}))}))}}),_.B("div",{class:"yt-lp-offer-table-view-model__lp-offer-table-section-rows"},_.B(_.V0,{data:function(){return z().rows}},{lpOfferTableRowViewModel:function(P,N){return _.B(FLI,{data:P.data,
lpTableIsFirstRow:function(){return N()===0},
lpTableIsLastRow:function(){return N()===z().rows.length-1}})}})),_.B("div",{class:_.B8((a["yt-lp-offer-table-view-model__lp-offer-table-section-footer-wrapper"]=function(){return z().hasFooterBackground},a))},_.B(_.g,{cond:function(){return z().footer},
then:function(){return _.B("div",{class:"yt-lp-offer-table-view-model__lp-offer-table-section-footer"},_.B(_.xs,{text:function(){return z().footer}}))}}),_.B(_.g,{cond:function(){return z().footerTitle},
then:function(){return _.B("div",{class:"yt-lp-offer-table-view-model__lp-offer-table-section-footer-title"},_.B(_.xs,{text:function(){return z().footerTitle}}))}}),_.B(_.g,{cond:function(){return z().footerDescription},
then:function(){return _.B("div",{class:"yt-lp-offer-table-view-model__lp-offer-table-section-footer-description"},_.B(_.xs,{text:function(){return z().footerDescription}}))}}))))},"yc");
HYw.idomCompat=!0;var bYf=_.ec(function(a){var z=a.data;var I=a.themeOverride;var J=_.ab().resolve(_.eL(_.kN)),r=function(){var u;return I==null?void 0:(u=I())==null?void 0:u.useDarkTheme},P=function(){var u,E;
return J&&J()||r()?(u=z().image)==null?void 0:u.imageDark:(E=z().image)==null?void 0:E.imageLight};
a={};a=_.B8("ytm-lp-small-feature-section-view-model",(a["ytm-lp-small-feature-section-view-model--premium-force-dark-mode"]=r,a));var N=function(){var u,E,O;return(O=(u=z().image)==null?void 0:(E=u.accessibilityData)==null?void 0:E.label)!=null?O:""};
return _.B("ytm-lp-small-feature-section-view-model",{class:a},_.B(_.g,{cond:function(){return P()&&!BKE},
then:function(){return _.B("div",{class:"ytm-lp-small-feature-section-view-model__feature-image-container"},_.B(_.qp,{data:function(){return P()},
alt:N,contentMode:"CONTENT_MODE_SCALE_ASPECT_FIT",renderLazy:!1}))}}),_.B("div",{class:"ytm-lp-small-feature-section-view-model__content-section"},_.B("div",{class:"ytm-lp-small-feature-section-view-model__title-text"},_.B(_.g,{cond:function(){return z().title},
then:function(u){return _.B(_.xs,{text:u})}})),_.B("div",{class:"ytm-lp-small-feature-section-view-model__description-text"},_.B(_.xs,{text:function(){return z().description}}))))},"zc");
bYf.idomCompat=!0;var h9G=_.ec(function(a){var z=a.data;var I=a.themeOverride;a={};return _.B("ytm-lp-small-feature-section-group-view-model",null,_.B("div",{class:_.B8("ytm-lp-small-feature-section-group-view-model",(a["ytm-lp-small-feature-section-group-view-model--premium-force-dark-mode"]=function(){return!(I==null||!I().useDarkTheme)},a))},_.B("div",{class:"ytm-lp-small-feature-section-group-view-model__small-features-container"},_.B(_.V0,{data:function(){return z().smallFeatures}},{lpSmallFeatureSectionViewModel:function(J){return _.B("div",
{class:"ytm-lp-small-feature-section-group-view-model__small-feature-container"},_.B(bYf,{data:J.data,
themeOverride:I}))}}))))},"Ac");
h9G.idomCompat=!0;_.Jf(_.ec(function(a){var z=a.data;var I=function(){return z().forcedTheme==="USER_INTERFACE_THEME_DARK"},J=function(){return z().backgroundImageType==="LP_SECTION_BACKGROUND_TYPE_PHOTO"},r=function(){var N="",u,E;
var O=_.ab().resolve(_.eL(_.kN));O=I()||(O==null?0:O())?(u=z().themedImageViewModel)==null?void 0:u.imageDark:(E=z().themedImageViewModel)==null?void 0:E.imageLight;(u=Oyp((O==null?void 0:O.sources)||[]))&&u.url&&(N=J()?"background-image: linear-gradient(to bottom, transparent, "+(z().layoutType==="LP_MODULE_LAYOUT_TYPE_PTC"?"40%":"70%")+", var(--premium-yt-spec-base-background)), url("+_.XG(u.url)+");":"background-image: url("+_.XG(u.url)+");");return N},P=function(){return{useDarkTheme:I()}};
a={};return _.B("yt-section-group-view-model",null,_.B("div",{class:_.B8("yt-lp-section-group-view-model",(a["yt-lp-section-group-view-model--premium-force-dark-mode"]=I,a["yt-lp-section-group-view-model--ptc-layout-type"]=function(){return z().layoutType==="LP_MODULE_LAYOUT_TYPE_PTC"},a))},_.B(_.g,{cond:function(){return r().length},
then:function(){var N={};return _.B("div",{class:_.B8("yt-lp-section-group-view-model__bg-image",(N["yt-lp-section-group-view-model__bg-image--bg-image-photo"]=J,N)),style:r})}}),_.B("div",{class:"yt-lp-section-group-view-model__lp-section-group"},_.B(_.V0,{data:function(){return z().sections}},{lpFaqSectionViewModel:function(N){return _.B(u$f,{data:N.data,
themeOverride:P})},
lpHeaderSectionViewModel:function(N){return _.B(Emw,{data:N.data,themeOverride:P})},
lpHeadlineSectionViewModel:function(N){return _.B(Bvl,{data:N.data,themeOverride:P})},
lpLargeFeatureSectionViewModel:function(N){return _.B(gmG,{data:N.data,themeOverride:P})},
lpOfferCardSectionViewModel:function(N){return _.B(s9w,{data:N.data,themeOverride:P})},
lpComplexOfferCardSectionViewModel:function(N){return _.B(ZYw,{data:N.data})},
lpOfferTableSectionViewModel:function(N){return _.B(HYw,{data:N.data,themeOverride:P})},
lpSmallFeatureSectionGroupViewModel:function(N){return _.B(h9G,{data:N.data,themeOverride:P})},
lpCouponBannerViewModel:function(N){return _.B(C7v,{data:N.data})}}))))},"Bc"),"yt-section-group-view-model",{props:{data:_.zl}});var hdi=new Set([void 0,"CHIP_VIEW_MODEL_DISPLAY_TYPE_UNSPECIFIED","CHIP_VIEW_MODEL_DISPLAY_TYPE_NO_ICON"]);_.VXG=_.ec(function(a){function z(){if(hdi.has(a.data().displayType)){var O=!J(),f;if((f=a.disableDeselection)==null||!f.call(a)||O){a.data().selected=O;f=Object.assign({},N(),{selected:O});u(f);var A;(A=a.callback)==null||A.call(a,f,O)}}}
var I=_.Mm("chip-view-model"),J=function(){var O,f;return!!(((O=a.selected)==null?void 0:O.call(a))!==void 0?(f=a.selected)==null?0:f.call(a):N().selected)},r=_.C(_.Af(a.data)),P=r.next().value;
r=r.next().value;var N=P,u=r,E=_.KU(bm0,function(){return a.data().chipEntityKey||""});
return _.B("chip-view-model",{class:"ytChipViewModelHost",el:I},_.B(rZ1,{data:function(){var O,f=Object.assign({},N(),{selected:J()}),A=E(),n=(O=a.disableDeselection)==null?void 0:O.call(a);a:switch(f.displayType){case "CHIP_VIEW_MODEL_DISPLAY_TYPE_DROP_DOWN":case "CHIP_VIEW_MODEL_DISPLAY_TYPE_DROP_DOWN_WITH_CLEAR":O=1;break a;case "CHIP_VIEW_MODEL_DISPLAY_TYPE_STATELESS":O=3;break a;default:O=0}return{text:(A==null?void 0:A.text)||f.text,state:f.disabled?1:f.selected?0:2,type:O,onTap:V1M(f,I,z,n),
accessibilityLabel:f.accessibilityLabel||f.text}}}))},"Cc");
_.VXG.idomCompat={callbacks:{callback:!0}};_.Q9J=_.ec(function(a){var z=_.KU(Hmd,function(){var N;return(N=a.data())==null?void 0:N.chipBarStateEntityKey}),I=function(){return a.data().disableDeselection},J=_.C(_.Af(function(){var N;
if(((N=z())==null?void 0:N.selectedIndex)!=void 0)return z().selectedIndex;var u,E;N=_.C(((u=a.data())==null?void 0:(E=u.chips)==null?void 0:E.entries())||[]);for(u=N.next();!u.done;u=N.next()){u=_.C(u.value);E=u.next().value;u=u.next().value;var O=void 0;if((O=_.H(u,_.kF))==null?0:O.selected)return E}return-1})),r=J.next().value,P=J.next().value;
return _.B("chip-bar-view-model",{class:_.B8("ytChipBarViewModelHost",a.className),role:"tablist"},_.B(_.V0,{data:function(){return a.data().chips}},{chipViewModel:function(N,u){return _.B("div",{class:"ytChipBarViewModelChipWrapper"},_.B(_.VXG,{data:N.data,
selected:function(){return u()===r()},
callback:function(E,O){E=!!O;O=u();P(E?O:-1);var f,A=(f=a.data())==null?void 0:f.chipBarStateEntityKey;A&&E&&_.cK(_.Q0("chipBarStateEntity",A,{key:A,selectedIndex:O}))},
disableDeselection:a.disableDeselection||I}))}}))},"Dc");_.Jf(_.Q9J,"chip-bar-view-model",{props:{data:_.I5,className:_.I5,disableDeselection:_.I5}});_.S2J=_.ec(function(a){var z=a.data;a={};return _.B("divider-view-model",{class:_.B8("divider-view-model-wiz",(a["divider-view-model-wiz__inset-thin-padding"]=function(){return z().dividerStyle==="DIVIDER_STYLE_INSET_THIN"},a))},_.B("div",{class:_.B8("divider-view-model-wiz__base-divider",function(){return Q8G(z().dividerStyle)}),
style:_.sW({"background-color":function(){return z().backgroundColor?_.Da(z().backgroundColor):void 0}})}))},"Ec");
_.S2J.idomCompat=!0;_.Jf(_.S2J,"divider-view-model",{props:{data:_.zl}});var H0=new Map,FK=new Map,x9x=0,bm;var W4M=[{calledOnce:!1,state:"visible"},{calledOnce:!1,state:"hidden"}],D9m={throttleMs:0,canHaveZeroSize:!0,useVisibilityObserver:!1};var iYe,xWE;iYe=function(a){return function(z){return function(){return(z==null?void 0:z())!==void 0?String(z())+a:void 0}}};
_.oP=iYe("px");xWE=iYe("s");var vmo=$d7(function(a){return a.targetGroupId}).useUpdatableData;var $Wj=_.ec(function(a){function z(e){return function(){var Bp=v().numItemsPerGridRow,Em=e()*Bp;Bp=Em+Bp;var nG,bG;return(bG=(nG=J().contents)==null?void 0:nG.slice(Em,Bp))!=null?bG:[]}}
var I=_.q3(a,{layoutContainerWidth:0,shouldUseOwnContainerSize:!1,marginSettings:1}),J=I.data,r=I.layoutContainerWidth,P=I.shouldUseOwnContainerSize,N=I.marginSettings,u=_.H8(),E=_.C(vmo(function(){var e,Bp;return{targetGroupId:(e=J().targetingContext)==null?void 0:(Bp=e.targetGroupId)==null?void 0:Bp[0]}})).next().value;
I=_.C(_.CW(!0,void 0,"f25nob"));var O=I.next().value,f=I.next().value,A=function(){var e,Bp=(e=_.H(J().showMoreButton,_.yw))==null?void 0:e.trackingParams;Bp&&_.KJ(_.Kw(),Bp);f(!1)},n=function(){var e,Bp=(e=_.H(J().showLessButton,_.yw))==null?void 0:e.trackingParams;
Bp&&_.KJ(_.Kw(),Bp);f(!0)};
I=_.Mm("grid-shelf-view-model");var F=_.L4p(I,{canHaveZeroSize:!1}),h=function(){var e;return(e=J().contentAspectRatio)!=null?e:"GRID_SHELF_CONTENT_ASPECT_RATIO_UNKNOWN"},v=_.Bg(function(){var e=_.mY({containerWidth:P()&&F.width()>0?F.width()||r():r(),
sizing:"EXTRA_COMPACT",marginSettings:N(),enableFullBleedForSingleCol:!1});return{maxContainerWidth:e.maxContainerWidth,numItemsPerGridRow:e.numItems,contentPadding:P()?e.margin:e.contentMargin,itemWidth:e.itemWidth,itemMargin:e.gutter/2}},void 0,"b3gcJf"),d=function(){if(J().enableVerticalExpansion){if(O())return W();
var e,Bp,Em=(Bp=(e=J().contents)==null?void 0:e.length)!=null?Bp:0;return Math.ceil(Em/v().numItemsPerGridRow)}return v().numItemsPerGridRow<=2?2:1},W=function(){var e;
return Math.ceil(((e=J().minCollapsedItemCount)!=null?e:1)/v().numItemsPerGridRow)},l=function(){return J().enableVerticalExpansion&&J().showLessButton&&!O()&&d()>W()},q=function(){var e,Bp;
return J().enableVerticalExpansion&&J().showMoreButton&&O()&&((Bp=(e=J().contents)==null?void 0:e.length)!=null?Bp:0)>v().numItemsPerGridRow*W()},m=function(){return!l()},M=function(){return!q()},y={};
return _.B("grid-shelf-view-model",{class:_.B8("ytGridShelfViewModelHost",a.className,(y.ytGridShelfViewModelHostHasBottomButton=function(){return l()||q()},y.ytGridShelfViewModelHostIsDismissed=function(){var e,Bp=(e=E())!=null?e:{};
e=Bp.behavior;var Em=Bp.isDismissed,nG=Bp.stamperContextTargetId;Bp=Bp.stamperIndex;if(!(_.K("mweb_see_fewer_shorts_group_dismissal")&&Em&&e&&nG))return!1;var bG;Em=u;for(var Hp,LG,oE=((Hp=Em)==null?0:Hp.targetId)?_.SJ((LG=Em)==null?void 0:LG.targetId):void 0;((bG=Em)==null?0:bG.parent)&&oE!==nG;)Em=Em.parent,LG=Hp=void 0,oE=((Hp=Em)==null?0:Hp.targetId)?_.SJ((LG=Em)==null?void 0:LG.targetId):void 0;bG=oE===nG?Em:void 0;if(!bG)return!1;var Pe;nG=bG==null?void 0:(Pe=bG.stamperIndex)==null?void 0:Pe.call(bG);
return e==="GROUP_DISMISSAL_BEHAVIOR_REMOVE_ALL_ITEMS"||e==="GROUP_DISMISSAL_BEHAVIOR_REMOVE_SUBSEQUENT_ITEMS"&&nG!=null&&Bp!=null&&nG>Bp},y)),
el:I,style:_.sW({"margin-left":(0,_.oP)(function(){return v().contentPadding}),
"margin-right":(0,_.oP)(function(){return v().contentPadding})})},_.B(_.g,{cond:function(){return _.H(J().header,yKw)},
then:function(e){return _.B(_.fF,{data:e,disableHorizontalPadding:!0})}}),_.B("div",null,_.B(_.se,{each:function(){return Array(d())}},function(e,Bp){return _.B(GnO,{className:a.className,
items:z(Bp),responsiveGridShelfLayout:v,contentAspectRatio:h})})),_.B("div",{class:"ytGridShelfViewModelGridShelfBottomButtonContainer"},_.B(_.V0,{data:function(){return J().showMoreButton}},{buttonViewModel:function(e){return _.B("div",{hidden:M},_.B(_.At,{data:e.data,
onClick:A}))}}),_.B(_.V0,{data:function(){return J().showLessButton}},{buttonViewModel:function(e){return _.B("div",{hidden:m},_.B(_.At,{data:e.data,
onClick:n}))}})))},"Fc");
$Wj.idomCompat=!0;var GnO=_.ec(function(a){var z=a.items;var I=a.responsiveGridShelfLayout;var J=a.contentAspectRatio;a=a.className;var r=_.Mm("div");im$(r,function(){a:{var N=r.value;for(var u=z(),E=[],O=0;O<u.length;O++){var f=_.H(u[O],bQE);if(!f||f==null||!f.inlinePlayerData){N=null;break a}var A=N.children.item(O);if(!A){N=null;break a}E.push({thumbnailElement:A,videoData:f})}N={gridVideoPreviewData:{gridItems:E}}}return N});
var P=(0,_.oP)(function(){return-I().itemMargin});
return _.B("div",{el:r,class:_.B8("ytGridShelfViewModelGridShelfRow",a),style:_.sW({"margin-left":P,"margin-right":P})},_.B(_.V0,{data:z,replacementWrapper:function(N){return _.B(X7X,{responsiveGridShelfLayout:I},N)}},{shortsLockupViewModel:function(N){return _.B(X7X,{responsiveGridShelfLayout:I},_.B(BUf,{data:N.data,
aspectRatio:function(){return J()==="GRID_SHELF_CONTENT_ASPECT_RATIO_TWO_BY_THREE"?1:0},
scrimStyle:2,inlineMetadata:!1,className:void 0}))}}))},"Gc"),X7X=_.ec(function(a){return _.B("div",{style:_.sW({width:(0,_.oP)(function(){return a.responsiveGridShelfLayout().itemWidth}),
margin:function(){return"0 "+a.responsiveGridShelfLayout().itemMargin+"px"}}),
class:"ytGridShelfViewModelGridShelfItem"},a.children)},"Hc");
$Wj.idomCompat=!0;_.Jf($Wj,"grid-shelf-view-model",{props:{data:_.zl,layoutContainerWidth:_.zl,shouldUseOwnContainerSize:_.zl,marginSettings:_.zl,className:_.zl}});_.Tvw=_.ec(function(a){var z=_.C(_.CW(!1,void 0,"YYtxR")),I=z.next().value,J=z.next().value;z={};return _.B("yt-alert-banner-view-model",{class:_.B8("ytAlertBannerViewModelHost",a.className,function(){var r;a:switch((r=a.data())==null?void 0:r.type){case "ALERT_BANNER_TYPE_TIME_SENSITIVE":r="ytAlertBannerViewModelTimeSensitive";break a;case "ALERT_BANNER_TYPE_WARNING":r="ytAlertBannerViewModelWarning";break a;default:r="ytAlertBannerViewModelInformational"}return r},(z.ytAlertBannerViewModelDismissed=
I,z.ytAlertBannerViewModelFullbleed=a.fullbleed,z.ytAlertBannerViewModelNarrow=a.narrow,z.ytAlertBannerViewModelIsInRichGrid=a.isInRichGrid,z))},_.B(_.g,{cond:function(){var r;
return!((r=a.data())==null?0:r.hideIcon)},
then:function(){return _.B("div",{class:"ytAlertBannerViewModelIcon"},_.B(_.nS,{icon:function(){return"info_circle"}}))}}),_.B("div",{class:"ytAlertBannerViewModelOuterContainer"},_.B("div",{class:"ytAlertBannerViewModelContainer"},_.B("div",{class:"ytAlertBannerViewModelContent"},_.B("div",{class:"ytAlertBannerViewModelHeading"},_.B(_.xs,{text:function(){var r;
return(r=a.data())==null?void 0:r.heading}})),_.B("div",{class:"ytAlertBannerViewModelBody"},_.B(_.xs,{text:function(){var r;
return(r=a.data())==null?void 0:r.body}})))),_.B(_.V0,{data:function(){var r;
return(r=a.data())==null?void 0:r.actionButton}},{buttonViewModel:function(r){return _.B(_.At,{data:r.data,
className:"ytAlertBannerViewModelActionButton"})}})),_.B(_.V0,{data:function(){var r;
return(r=a.data())==null?void 0:r.dismissButton}},{buttonViewModel:function(r){return _.B(_.At,{data:r.data,
className:"ytAlertBannerViewModelDismissButton",onClick:function(){var P;((P=a.data())==null?0:P.disableLocalDismissBehavior)||J(!0)}})}}))},"Ic");_.Jf(_.Tvw,"yt-alert-banner-view-model",{props:{data:_.zl,fullbleed:_.zl,narrow:_.zl,isInRichGrid:_.zl,className:_.zl}});_.Up=_.ec(function(a){var z=a.data;var I=a.callback;var J=a.enableSingleChipSelection;var r=a.disableChipsScrollAnimation;var P=_.ca("div");a=_.C(_.CW(!0,void 0,"SPw5zc"));var N=a.next().value,u=a.next().value;a=_.C(_.CW(!1,void 0,"gLFsSb"));var E=a.next().value,O=a.next().value,f=!1,A=0;_.hD(function(){u(h());O(v())});
a=_.C(_.Af(function(){var e={};return z().autoselectedChipIndex!=null?(e[z().autoselectedChipIndex]=!0,e):{}}));
var n=a.next().value,F=a.next().value,h=function(){var e=P.value;return e==null||e.scrollLeft-1<=0},v=function(){var e=P.value;
return e==null?!1:e.scrollLeft+1>=(e==null?NaN:e.scrollWidth)-(e==null?NaN:e.clientWidth)},d=function(){return z().isHorizontallyScrollable},W=function(e){P.value!=null&&(_.Xw("HTML_DIR")==="rtl"&&(e=-e),P.value.scrollBy({left:e,
behavior:(r==null?0:r())?"instant":"smooth"}))},l=function(){W(-320)},q=function(){W(320)},m=_.g4(function(e){f=!0;
A=e.clientX}),M=_.g4(function(e){if(f){e=e.clientX;
var Bp=e-A;A=e;var Em;(Em=P.value)==null||Em.scrollBy({left:-Bp})}}),y=_.g4(function(){var e=h(),Bp=v();
e!==N()&&u(e);Bp!==E()&&O(Bp)});
aG("pointerup",function(){f&&(f=!1)});
return _.B("chips-shelf-view-model",{class:"ytChipsShelfViewModelHost"},_.B(_.Eu,{contentId:function(){return z().contentId},
useModernStyle:!0},function(){var e={},Bp={};return _.B("div",null,_.B(_.g,{cond:function(){return z().title},
then:function(){return _.B("div",{class:"ytChipsShelfViewModelChipsShelfHeader"},_.B("h2",{class:"ytChipsShelfViewModelChipsShelfTitle"},function(){return z().title}),_.B(_.V0,{data:function(){return z().overflowButton}},{buttonViewModel:_.At}))}}),_.B("div",{class:"ytChipsShelfViewModelChipsShelfContent"},_.B(_.g,{cond:function(){return z().previousButton},
then:function(){var Em={};return _.B("div",{class:_.B8("ytChipsShelfViewModelLeftArrowContainer",(Em.ytChipsShelfViewModelLeftArrowContainerIsHidden=function(){return N()},Em))},_.B(_.V0,{data:function(){return z().previousButton}},{buttonViewModel:function(nG){return _.B(_.At,{data:nG.data,
className:"ytChipsShelfViewModelLeftArrow",onClick:l})}}))}}),_.B("div",{el:P,
"on:pointerdown":m,"on:pointermove":M,"on:scroll":y,class:_.B8("ytChipsShelfViewModelChipsScrollContainer",(e.ytChipsShelfViewModelChipsScrollContainerIsHorizontallyScrollable=d,e))},_.B("div",{class:_.B8("ytChipsShelfViewModelChipsContainer",(Bp.ytChipsShelfViewModelChipsContainerIsHorizontallyScrollable=d,Bp.ytChipsShelfViewModelChipsContainerIsHorizontallyScrollableFeaturePhone=!1,Bp)),role:"tablist"},_.B(_.V0,{data:function(){return z().contents}},{chipViewModel:function(Em,nG){return _.B("div",
{class:"ytChipsShelfViewModelChipWrapper"},_.B(_.VXG,{data:Em.data,
callback:function(bG,Hp){var LG=nG();if(J==null?0:J()){var oE={};F((oE[LG]=Hp,oE))}else oE={},F(Object.assign({},n(),(oE[LG]=Hp,oE)));I==null||I(bG,Hp,LG)},
disableDeselection:J,selected:function(){return!!n()[nG()]}}))}}))),_.B(_.g,{cond:function(){return z().nextButton},
then:function(){var Em={};return _.B("div",{class:_.B8("ytChipsShelfViewModelRightArrowContainer",(Em.ytChipsShelfViewModelRightArrowContainerIsHidden=E,Em))},_.B(_.V0,{data:function(){return z().nextButton}},{buttonViewModel:function(nG){return _.B(_.At,{data:nG.data,
className:"ytChipsShelfViewModelRightArrow",onClick:q})}}))}})))}))},"Jc");
_.Up.idomCompat={callbacks:{callback:!0}};_.Jf(_.Up,"chips-shelf-view-model",{props:{data:_.zl,callback:_.I5,enableSingleChipSelection:_.zl,disableChipsScrollAnimation:_.zl}});var dWv=_.ec(function(a){a=_.q3(a,{disabled:!1});var z=a.active,I=a.disabled;a={};a=_.B8("ytSwitchShapeTrack",(a.ytSwitchShapeTrackActive=function(){return z()},a.ytSwitchShapeTrackDisabled=function(){return I()},a));
var J={};J=_.B8("ytSwitchShapeKnob",(J.ytSwitchShapeKnobActive=function(){return z()},J));
return _.B("switch-shape",{class:"ytSwitchShapeHost"},_.B("div",{class:a}),_.B("div",{class:J}))},"Kc");var WLf=_.ec(function(a){var z=_.q3(a,{className:void 0,parentActive:void 0,handleOnTapEventInParent:!1}),I=z.data;a=z.className;var J=z.handleOnTapEventInParent,r=z.parentActive;z=_.C(_.Af(function(){var A;return(A=r())!=null?A:I().switchedOnByDefault||!1}));
var P=z.next().value,N=z.next().value,u=function(){return I().isDisabled},E=_.Mm("button");
z=_.g4(function(A){return A.key==="Enter"?(A.preventDefault(),E.value.click(),!1):!0});
var O=_.g4(function(A){if(I().handleOnTapEventInParent||J())return!0;if(u())return!1;pxO(I(),P(),A);N(!P());return!1}),f={};
f=_.B8("ytSwitchButtonViewModelButton",(f.ytSwitchButtonViewModelTappable=function(){return!u()},f));
return _.B("switch-button-view-model",{class:_.B8("ytSwitchButtonViewModelHost",a)},_.B("button",{el:E,class:f,"on:click":O,"on:keydown":z,"aria-label":function(){return P()?I().a11yLabelSwitchedOn:I().a11yLabelSwitchedOff},
"aria-checked":P,"aria-disabled":u,role:"switch"},_.B(dWv,{active:P,disabled:u})))},"Lc");var omv=_.ec(function(a){var z=a.data;var I=a.isLeading;var J=a.hideSelectionTextChevron;var r=a.isToggled;var P=function(){return I()?z().leadingImage:z().trailingImage},N=function(){a:switch(z().listItemIconAfterSelectionText){case "LIST_ITEM_ICON_AFTER_SELECTION_TEXT_EXPAND_MORE":var f="expand_more";
break a;default:f="chevron_right"}return f};
a={};var u=_.B8("yt-list-item-view-model-wiz__image-container",(a["yt-list-item-view-model-wiz__leading"]=I,a["yt-list-item-view-model-wiz__trailing"]=function(){return!I()},a)),E=_.B8("yt-list-item-view-model-wiz__accessory","yt-list-item-view-model-wiz__image");
a={};var O=_.B8("yt-list-item-view-model-wiz__accessory",(a["yt-list-item-view-model-wiz__leading"]=I,a["yt-list-item-view-model-wiz__trailing"]=function(){return!I()},a));
return _.B(_.g,{cond:function(){var f=z(),A=I();return!!(A&&(f.leadingImage||f.leadingAccessory)||!A&&(f.trailingImage||f.trailingButton||f.trailingButtons||f.selectionText))},
then:function(){return _.B(_.eJ,null,_.B(_.g,{cond:P,then:function(f){return _.B("div",{class:u,"aria-hidden":"true"},_.B(_.qp,{data:f,alt:"",preserveWidth:!0,preserveHeight:!0,className:E,isToggled:r}))}}),_.B(_.g,{cond:function(){return I()&&z().leadingAccessory},
then:function(){return _.B("div",{class:u},_.B(_.V0,{data:function(){return z().leadingAccessory}},{avatarViewModel:function(f){return _.B(_.ok,{data:f.data,
avatarButtonCustomClassName:E})},
collectionThumbnailViewModel:function(f){return _.B(Zgv,{data:f.data,maxHeight:36,includeStackHeight:!0})}}))}}),_.B(_.g,{cond:function(){return!I()&&z().trailingButton},
then:function(){return _.B("div",{class:"yt-list-item-view-model-wiz__button-container"},_.B(_.V0,{data:function(){return z().trailingButton}},{buttonViewModel:function(f){return _.B(_.At,{data:f.data,
className:O})}}))}}),_.B(_.g,{cond:function(){var f;
return!I()&&((f=z().trailingButtons)==null?void 0:f.buttons)},
then:function(){return _.B("div",{class:"yt-list-item-view-model-wiz__button-container"},_.B(_.V0,{data:function(){var f;return(f=z().trailingButtons)==null?void 0:f.buttons}},{buttonViewModel:function(f){return _.B(_.At,{data:f.data,
className:O})},
accountLinkButtonViewModel:function(f){return _.B(c_e,{data:f.data,className:O})},
switchButtonViewModel:function(f){return _.B(WLf,{data:f.data,className:O})},
subscribeButtonViewModel:function(f){return _.B(_.op,{data:f.data,isOverlay:!1,animateWidth:!1,className:O})},
toggleButtonViewModel:function(f){return _.B(_.Wc,{data:f.data,className:O})}}))}}),_.B(_.g,{cond:function(){return!I()&&!!z().selectionText},
then:function(){return _.B(_.eJ,null,_.B(_.xs,{text:function(){return z().selectionText},
className:_.B8("yt-list-item-view-model-wiz__selection-text","yt-list-item-view-model-wiz__selection-text--trailing-selection-text")}),_.B(_.g,{cond:function(){return!(J==null?0:J())},
then:function(){return _.B(_.nS,{icon:N,className:"yt-list-item-view-model-wiz__chevron-icon"})}}))}}))}})},"Mc");var UW1=_.ec(function(a){var z=a.data;return _.B(_.g,{cond:function(){return z().title||z().subtitle},
then:function(){return _.B("div",{class:"yt-list-item-view-model-wiz__text-wrapper"},_.B(_.g,{cond:function(){return z().title},
then:function(I){return _.B("div",{class:"yt-list-item-view-model-wiz__title-wrapper"},_.B(_.xs,{text:I,className:"yt-list-item-view-model-wiz__title"}))}}),_.B(_.g,{cond:function(){return z().subtitle},
then:function(I){return _.B(_.xs,{text:I,className:"yt-list-item-view-model-wiz__subtitle"})}}))}})},"Nc");var Db=_.ec(function(a){var z=a.data;var I=a.hideSelectionTextChevron;var J=a.TrailingAccessory;var r=a.isToggled;var P=a.disabled;var N=a.isSelectItem;var u=a.isCompact;var E=a.inPopup;var O=a.disableHorizontalPadding;a=a.isTappableWithoutSelect;var f={};return _.B("div",{class:_.B8("yt-list-item-view-model-wiz__label",(f["yt-list-item-view-model-wiz__container"]=function(){return!(N==null?0:N())},f["yt-list-item-view-model-wiz__container--disabled"]=function(){return!!z().isDisabled||!(P==null||
!P())},f["yt-list-item-view-model-wiz__container--has-subtitle"]=function(){return!!z().subtitle},f["yt-list-item-view-model-wiz__container--compact"]=u,f["yt-list-item-view-model-wiz__container--tappable"]=a,f["yt-list-item-view-model-wiz__container--in-popup"]=E,f["yt-list-item-view-model-wiz__container--disable-horizontal-padding"]=function(){return(O==null?void 0:O())&&!(N==null?0:N())},f))},_.B(omv,{data:z,
isLeading:!0,hideSelectionTextChevron:I,isToggled:r}),_.B(UW1,{data:z}),_.B(_.g,{cond:function(){return!!J},
then:function(){return _.B("div",{class:"yt-list-item-view-model-wiz__trailing"},J&&_.B(J,null))},
else:function(){return _.B(omv,{data:z,isLeading:!1,hideSelectionTextChevron:I,isToggled:r})}}))},"Oc");var R9l=_.ec(function(a){var z=_.q3(a,{checked:!1});a=z.name;var I=z.onChange,J=z.onClick,r=z.checked,P=z.labelRenderable,N=z.hasLeadingLabel,u=z.labelClass,E=z.isCompact,O=z.selectElementClass;z=z.disableHorizontalPadding;var f="checkbox"+_.To(_.W5),A=_.g4(function(h){J==null||J(h);return!1}),n=_.g4(function(h){I==null||I(h);
return!1}),F={};
return _.B("checkbox-shape",null,_.B("label",{class:_.B8("checkbox-shape-wiz",u,(F["checkbox-shape-wiz--compact"]=E,F["checkbox-shape-wiz--disable-horizontal-padding"]=z,F))},_.B("input",{class:"checkbox-shape-wiz__input",id:f,checked:r,name:a,type:"checkbox","prop:checked":r,"on:change":n,"on:click":A}),_.B(_.g,{cond:function(){return!(N==null?0:N())},
then:function(){return _.B(DWJ,{isLeading:!0,selectElementClass:O})}}),_.B(_.g,{cond:function(){return!!P},
then:function(){return _.B("div",{class:"checkbox-shape-wiz__label"},P==null?void 0:P())}}),_.B(_.g,{cond:N,
then:function(){return _.B(DWJ,{isLeading:!1,selectElementClass:O})}})))},"Pc");
R9l.idomCompat={callbacks:{onChange:!0,onClick:!0,labelRenderable:!0}};var DWJ=_.ec(function(a){var z=a.selectElementClass;a={};return _.B("div",{class:_.B8("checkbox-shape-wiz__checkbox",z,(a["checkbox-shape-wiz__checkbox--checkbox-default-style"]=function(){return!(z==null?0:z())},a)),
"aria-hidden":"true"},_.B(_.nS,{icon:_.K("enable_web_delhi_icons")?"square":"BOX_EMPTY"}),_.B(_.nS,{icon:_.K("enable_web_delhi_icons")?"check_square":"BOX_CHECK",active:!0}))},"Qc");_.RP=_.ec(function(a){var z=a.name;var I=a.onChange;var J=a.onClick;var r=a.checked;var P=a.labelRenderable;var N=a.useCheckIcon;var u=a.hasLeadingLabel;var E=a.labelClass;var O=a.isCompact;var f=a.selectElementClass;var A=a.ariaLabel;a=a.className;var n="radio"+_.To(_.W5),F=_.Mm("input"),h=_.g4(function(y){F.value.checked=!(r==null||!r());I==null||I(y);return!1}),v=_.g4(function(y){J==null||J(y);
return!1}),d=_.g4(function(y){_.K("enable_ios_webview_radio_button_responsiveness")&&(y.preventDefault(),F.value.click())}),W=_.C(_.CW(!1,void 0,"nXiHX")),l=W.next().value,q=W.next().value;
W=_.g4(function(){var y;((y=_.ab().resolve(_.eL(_.ET)))==null?0:y.isKeyBoardInUse())&&q(!0)});
var m=_.g4(function(){q(!1)}),M={};
return _.B("radio-shape",{class:_.B8("radio-shape-wiz",a)},_.B("input",{el:F,class:"radio-shape-wiz__input",id:n,"prop:checked":r,name:z,type:"radio","on:change":h,"on:click":v,"aria-label":A,"on:focusin":W,"on:focusout":m}),_.B("label",{class:_.B8("radio-shape-wiz__label-container",E,(M["radio-shape-wiz--compact"]=O,M["radio-shape-wiz__label-container--keyboard-focused"]=l,M)),for:n,"on:click":d},_.B(_.g,{cond:function(){return!(u==null?0:u())},
then:function(){return _.B(LLG,{checked:r,useCheckIcon:N,isLeading:!0,selectElementClass:f})}}),_.B(_.g,{cond:function(){return!!P},
then:function(){return _.B("div",{class:"radio-shape-wiz__label","aria-hidden":function(){return(A==null?0:A())?"true":"false"}},P==null?void 0:P())}}),_.B(_.g,{cond:u,
then:function(){return _.B(LLG,{checked:r,useCheckIcon:N,isLeading:!1,selectElementClass:f})}})))},"Rc");
_.RP.idomCompat={callbacks:{onChange:!0,onClick:!0,labelRenderable:!0}};var LLG=_.ec(function(a){var z=a.useCheckIcon;var I=a.selectElementClass;a=function(){return(z==null?0:z())?"CHECK":_.K("radio_shape_filled_icon_manual_setting_killswitch")?"CIRCLE_FILLED":"CIRCLE"};
var J={};return _.B("div",{class:_.B8("radio-shape-wiz__radio",I,(J["radio-shape-wiz__radio--check-icon"]=z,J["radio-shape-wiz__radio--radio-default-style"]=function(){return!(I==null?0:I())},J)),
"aria-hidden":"true"},_.B(_.nS,{icon:a}),_.B(_.nS,{icon:a,active:function(){return!(z==null?0:z())}}))},"Sc");_.LF=_.ec(function(a){var z=a.data;var I=a.isMenuItem;var J=a.isCompact;var r=a.onTap;var P=a.trailingAccessory;var N=a.hideSelectionTextChevron;var u=a.disabled;var E=a.inPopup;var O=a.disableHorizontalPadding;var f=a.isOverlay;a=a.isToggled;var A=_.o5(function(Bp){return yk$(Bp,z())}),n=function(){return _.K("enable_web_shorts_captions_language_command")?Object.assign({},z(),A()):z()},F=function(){return!(n().isSelected===void 0||!n().selectionStyle||n().selectionStyle==="LIST_ITEM_SELECTION_STYLE_UNSPECIFIED")},
h=function(){return(_.oK(n().rendererContext)||r)&&!F()},v={},d=_.B8("yt-list-item-view-model-wiz__container",(v["yt-list-item-view-model-wiz__container--tappable"]=function(){return _.oK(n().rendererContext)||F()},v["yt-list-item-view-model-wiz__container--compact"]=J,v["yt-list-item-view-model-wiz__container--in-popup"]=E,v["yt-list-item-view-model-wiz__container--disable-horizontal-padding"]=function(){return(O==null?void 0:O())&&F()},v)),W=function(){return n().leadingImage||n().leadingAccessory},
l=_.B8("yt-list-item-view-model-wiz__image-container",function(){return W()?"yt-list-item-view-model-wiz__trailing":"yt-list-item-view-model-wiz__leading"});
v=_.g4(function(Bp){return void(r==null?void 0:r(Bp))});
var q=_.XF(),m=_.C(_.CW(!1,void 0,"iQppzc")),M=m.next().value,y=m.next().value,e={data:n,hideSelectionTextChevron:N,TrailingAccessory:P,isToggled:a,disabled:u,isSelectItem:F,isCompact:J,inPopup:E,disableHorizontalPadding:O,isTappableWithoutSelect:h};P={};return _.B("yt-list-item-view-model",{el:_.a5(_.UN(function(){return n().rendererContext}),z$d(function(){return h==null?void 0:h()},{focusin:function(){var Bp;
((Bp=_.ab().resolve(_.eL(_.ET)))==null?0:Bp.isKeyBoardInUse())&&y(!0)},
focusout:function(){y(!1)}})),
class:_.B8("yt-list-item-view-model-wiz",(P["yt-list-item-view-model-wiz--is-overlay"]=f,P["yt-list-item-view-model-wiz--keyboard-focused"]=M,P)),role:function(){return(I==null?0:I())?"menuitem":"listitem"},
tabindex:function(){var Bp=h();return r||Bp?0:void 0},
"on:keydown":q,"on:click":v},_.B(_.g,{cond:F,then:function(){return _.B(_.Fw,null,_.B(_.n3,{when:function(){return n().selectionStyle==="LIST_ITEM_SELECTION_STYLE_CHECKBOX"}},function(){return _.B(R9l,{labelRenderable:function(){return _.B(Db,Object.assign({},e))},
isCompact:J,checked:function(){return n().isSelected},
hasLeadingLabel:function(){return!!W()},
labelClass:d,selectElementClass:l,disableHorizontalPadding:O})}),_.B(_.n3,{when:function(){return n().selectionStyle==="LIST_ITEM_SELECTION_STYLE_RADIO"}},function(){return _.B(_.RP,{labelRenderable:function(){return _.B(Db,Object.assign({},e))},
isCompact:J,checked:function(){return n().isSelected},
hasLeadingLabel:function(){return!!W()},
labelClass:d,selectElementClass:l})}),_.B(_.n3,{when:function(){return n().selectionStyle==="LIST_ITEM_SELECTION_STYLE_DEFAULT"}},function(){return _.B(_.RP,{labelRenderable:function(){return _.B(Db,Object.assign({},e))},
isCompact:J,checked:function(){return n().isSelected},
hasLeadingLabel:function(){return!!W()},
labelClass:d,selectElementClass:l,useCheckIcon:!0})}),_.B(_.K3,null,function(){return _.B(Db,Object.assign({},e))}))},
else:function(){return _.B(Db,Object.assign({},e))}}))},"Tc");
_.LF.idomCompat={callbacks:{onTap:!0,trailingAccessory:!0}};_.l2i=_.ec(function(a){var z=a.data;var I=a.onTap;var J=a.onSwitch;var r=a.overrideDisabled;a=a.disableHorizontalPadding;var P=_.C(_.Af(function(){var A;return((A=m9G(f()))==null?void 0:A.switchedOnByDefault)||!1})),N=P.next().value,u=P.next().value;
P=_.C(_.CW(!1,void 0,"ZHBkbb"));var E=P.next().value,O=P.next().value,f=function(){var A;if(!(A=z().switchButton)){var n=z();A=r==null?void 0:r();n={switchOnCommand:n.switchOnCommand,switchOffCommand:n.switchOffCommand,switchedOnByDefault:n.switchedOnByDefault,isDisabled:n.isDisabled,handleOnTapEventInParent:!0,a11yLabelSwitchedOn:n.a11yLabelSwitchedOn,a11yLabelSwitchedOff:n.a11yLabelSwitchedOff};A!==void 0&&(n.isDisabled=A);A={switchButtonViewModel:n}}return A};
return _.B("switch-list-item-view-model",{class:"ytSwitchListItemViewModelHost"},_.B(_.LF,{data:function(){return{title:z().title,subtitle:z().attributedSubtitle,leadingImage:z().leadingImage,leadingAccessory:z().leadingAccessory,isDisabled:z().isDisabled}},
onTap:function(A){var n=m9G(f());!n||n.isDisabled||z().ignoreTapUntilCommandCompletes&&E()||(I==null||I(A),pxO(n,N(),A,z().ignoreTapUntilCommandCompletes,O),u(!N()),J==null||J(N()))},
trailingAccessory:function(){return _.B(_.V0,{data:f},{switchButtonViewModel:function(A){return _.B(WLf,{data:A.data,parentActive:N,handleOnTapEventInParent:!!I})}})},
disableHorizontalPadding:a}))},"Uc");var p7G=_.ec(function(a){var z=_.C(_.Af(function(){var r,P;return!!((r=a.data())==null?0:(P=r.initialState)==null?0:P.isToggled)})),I=z.next().value,J=z.next().value;
z=_.g4(function(){J(!I())});
return _.B("toggleable-list-item-view-model",{el:_.a5(_.UN(function(){return a.data().rendererContext})),
class:_.B8("toggleableListItemViewModelHost",a.className),"on:click":z},_.B(_.g,{cond:function(){if(I()){var r=a.data().toggledListItem;r=_.H(r,_.iq)}else r=a.data().defaultListItem,r=_.H(r,_.iq);return r},
then:function(r){return _.B(_.LF,{data:r,isToggled:I,ariaLabel:function(){var P=I()?a.data().toggledListItem:a.data().defaultListItem,N;P=(N=_.H(P,_.iq))==null?void 0:N.rendererContext;var u;return(u=_.H(P,_.Vw))==null?void 0:u.label},
ariaPressed:function(){return I()}})}}))},"Vc");var w7f=_.AR("DOWNLOAD",{},"Download"),mWi=_.AR("DELETE_FROM_DOWNLOADS",{},"Delete from downloads"),y6e=_.AR("RETRY",{},"Retry"),knf=_.AR("PAUSE_DOWNLOADING",{},"Pause downloading"),MXX=_.AR("RESUME_DOWNLOAD",{},"Resume download"),kMI={text:w7f,iconType:"OFFLINE_DOWNLOAD",videoAction:"ACTION_ADD",playlistAction:"ACTION_ADD"},hQ={text:mWi,iconType:"DELETE",videoAction:"ACTION_REMOVE",playlistAction:"ACTION_REMOVE"},Y67={text:y6e,iconType:"OFFLINE_DOWNLOAD",videoAction:"ACTION_RETRY",playlistAction:"ACTION_REMOVE"},
M13={text:knf,iconType:"OFFLINE_PAUSE",videoAction:"ACTION_PAUSE",playlistAction:"ACTION_PAUSE"},ckx={text:MXX,iconType:"OFFLINE_DOWNLOAD",videoAction:"ACTION_RESUME",playlistAction:"ACTION_RESUME"};var c6e=_.ec(function(a){var z=function(){var u=a.data();u=_.Wn(u.rendererContext);var E;return(E=_.H(u,_.fU))==null?void 0:E.videoId},I=_.o5(function(u){var E=z(),O=aDM(a.data());
return E?_.oU(u,E):O?_.Ur(u,O):"TRANSFER_STATE_UNKNOWN"}),J=_.KU(_.ZNM,z),r=_.o5(function(u){return _.aGi(u,z(),aDM(a.data()))}),P=function(){return edd(I(),J(),_.Wn(a.data().rendererContext),!!aDM(a.data()))},N=function(){return r()!=="ADD_TO_OFFLINE_BUTTON_STATE_ENABLED"};
return _.B("yt-download-list-item-view-model",{class:"ytDownloadListItemViewModelHost",hidden:N},_.B(_.g,{cond:function(){return!N()},
then:function(){return _.B(_.g,{cond:P,then:function(u){return _.B(_.se,{each:u},function(E){return _.B(_.LF,{data:E,isCompact:a.isCompact,isMenuItem:a.isMenuItem,inPopup:a.inPopup,disableHorizontalPadding:a.disableHorizontalPadding})})}})}}))},"Wc");
c6e.idomCompat=!0;_.Y2X=_.ec(function(a){var z=a.data;var I=a.isCompact;var J=a.hideSelectionTextChevron;var r=a.inPopup;var P=a.isOverlay;var N=a.disableHorizontalPadding;var u=function(){return jr7(z())&&(r==null?void 0:r())};
a={};return _.B("yt-list-view-model",{class:_.B8("yt-list-view-model-wiz",(a["yt-list-view-model-wiz--kaios-spat-nav"]=BKE&&document.body.hasAttribute("spatial-navigation-enabled")&&document.body.getAttribute("spatial-navigation-enabled")==="true",a["yt-list-view-model-wiz__collection-thumbnail-class"]=function(){return JuG(z())},a)),
role:function(){return u()?"menu":"list"},
style:_.sW({"max-height":function(){var E,O=(E=z())==null?void 0:E.visibleElementCount;if(O)return JuG(z())?(O+.5)*48+"px":(O+.5)*40+"px"}})},_.B(_.V0,{data:function(){return z().listItems}},{listItemViewModel:function(E){return _.B(_.LF,{data:E.data,
isMenuItem:u,isCompact:I,hideSelectionTextChevron:J,inPopup:r,isOverlay:P,disableHorizontalPadding:N})},
toggleableListItemViewModel:function(E){return _.B(p7G,{data:E.data})},
downloadListItemViewModel:function(E){return _.B(c6e,{data:E.data,isMenuItem:u,isCompact:I,inPopup:r,disableHorizontalPadding:N})},
switchListItemViewModel:function(E){return _.B(_.l2i,{data:E.data,disableHorizontalPadding:N})}}))},"Xc");
_.Y2X.idomCompat=!0;var q2w=_.ec(function(a){var z=a.data;var I=a.isOverlay;a={};return _.B("yt-course-perks-view-model",{class:_.B8("ytwCoursePerksViewModelHost",(a.ytwCoursePerksViewModelHostOverlay=I,a))},_.B("h3",{class:"ytwCoursePerksViewModelHostPerksTitle"},_.B(_.xs,{text:function(){return z().title}})),_.B("div",null,_.B(_.g,{cond:function(){return z().perks},
then:function(J){return _.B(_.Y2X,{data:function(){return{listItems:J()}},
isCompact:!0,isOverlay:I})}})))},"Yc");_.Jf(q2w,"yt-course-perks-view-model",{props:{data:_.I5,isOverlay:_.I5}});_.Jf(_.ec(function(a){var z=a.data;return _.B("yt-course-progress-view-model",{class:"ytwCourseProgressViewModelHost"},_.B("h3",{class:"ytwCourseProgressViewModelHostProgressTitle"},_.B(_.xs,{text:function(){return z().title}})),_.B("p",{class:"ytwCourseProgressViewModelHostProgressSubtitle"},_.B(_.xs,{text:function(){return z().progressSummary}})),_.B("div",{class:"ytwCourseProgressViewModelHostProgressBar"},_.B("div",{class:"ytwCourseProgressViewModelHostProgressBarFill",
style:_.sW({width:function(){return z().progressPercentage*100+"%"}})})))},"Zc"),"yt-course-progress-view-model",{props:{data:_.zl}});var e9l=_.ec(function(a){var z={};return _.B("yt-progress-view-model",{class:_.B8("ytwProgressViewModelHost",(z.ytwProgressViewModelHostOverlay=_.Yi(a.isOverlay,!1),z))},_.B(_.g,{cond:function(){return a.data().progressSummary},
then:function(I){return _.B("p",{class:"ytwProgressViewModelHostProgressSubtitle"},_.B(_.xs,{text:I}))}}),_.B("div",{class:"ytwProgressViewModelHostProgressContainer"},_.B(_.g,{cond:function(){return a.data().leadingLabel},
then:function(I){return _.B("p",{class:"ytwProgressViewModelHostProgressLeadingLabel"},_.B(_.xs,{text:I}))}}),_.B("div",{class:"ytwProgressViewModelHostProgressBar"},_.B("div",{class:"ytwProgressViewModelHostProgressBarFill",
style:function(){return"width: "+(a.data().progressPercentage||0)*100+"%"}}))))},"$c");var lM=_.ec(function(a){var z=a.starNumber;var I=a.data;var J=function(){var r;return((r=I())==null?void 0:r.rating)||0};
return _.B(_.g,{cond:function(){return z()},
then:function(r){return _.B(_.Fw,null,_.B(_.n3,{when:function(){return J()>=r()-.25}},function(){return _.B("div",{class:"ytStarRatingViewModelHostStar"},_.B(_.nS,{icon:"STAR_FILLED"}))}),_.B(_.n3,{when:function(){return J()>=r()-.75}},function(){return _.B("div",{class:"ytStarRatingViewModelHostStar"},_.B(_.nS,{icon:"STAR_HALF"}))}),_.B(_.K3,null,function(){return _.B("div",{class:"ytStarRatingViewModelHostStar"},_.B(_.nS,{icon:"STAR_BORDER"}))}))}})},"ad"),a6O=_.ec(function(a){a=a.data;
return _.B("yt-star-rating-view-model",{class:"ytStarRatingViewModelHost"},_.B(lM,{starNumber:1,data:a}),_.B(lM,{starNumber:2,data:a}),_.B(lM,{starNumber:3,data:a}),_.B(lM,{starNumber:4,data:a}),_.B(lM,{starNumber:5,data:a}))},"bd");_.Jf(_.ec(function(a){var z=_.q3(a,{}).data;return _.B("yt-course-ratings-view-model",{class:"ytCourseRatingsViewModelHost"},_.B("h3",{class:"ytCourseRatingsViewModelHostRatingTitle"},_.B(_.xs,{text:function(){var I;return(I=z())==null?void 0:I.title}})),_.B("div",{class:"ytCourseRatingsViewModelHostRatingContainer"},_.B(_.g,{cond:function(){return z().starProgressViewModels},
then:function(I){return _.B("div",{class:"ytCourseRatingsViewModelHostProgressBarContainer"},_.B(_.V0,{data:I},{progressViewModel:e9l}))}}),_.B("div",{class:"ytCourseRatingsViewModelHostStarRatingAndRatingDataContainer"},_.B("p",{class:"ytCourseRatingsViewModelHostAverageRatingLabel"},_.B(_.xs,{text:function(){var I;
return(I=z())==null?void 0:I.averageRatingLabel}})),_.B(_.g,{cond:function(){return z().zeroStateText},
then:function(I){return _.B("div",{class:"ytCourseRatingsViewModelHostZeroStateText"},_.B(_.xs,{text:I}))}}),_.B(_.g,{cond:function(){return z().starRatingViewModel},
then:function(I){return _.B("div",{class:"ytCourseRatingsViewModelHostStarRatingContainer"},_.B(_.V0,{data:I},{starRatingViewModel:a6O}))}}),_.B("p",{class:"ytCourseRatingsViewModelHostTotalRatingsCountLabel"},_.B(_.xs,{text:function(){var I;
return(I=z())==null?void 0:I.totalRatingsCountLabel}})))))},"cd"),"yt-course-ratings-view-model",{props:{data:_.I5}});var jze;jze={animationConfig:{autoplay:!0,loop:!0,renderer:"svg",name:"LEARNING_JOURNEY_LOADER_ICON",path:"https://www.gstatic.com/youtube/img/lottie/youchat_animations/gemini_twirl_v2.json"}};_.zao=_.ec(function(a){var z=_.Mm("yt-learning-journey-loader-view-model"),I=_.gi();_.hD(function(){requestAnimationFrame(function(){var r;(r=I.lottieEl)==null||r.addEventListener("DOMLoaded",function(){var P;(P=a.onLottieLoaded)==null||P.call(a)})});
var J=a.data().browseEndpoint;J&&_.lN(J)});
return _.B("yt-learning-journey-loader-view-model",{class:_.B8("learningJourneyLoaderViewModelHost",a.className),"data-target-id":function(){var J;return((J=a.data)==null?void 0:J.call(a).targetId)||""},
el:z},_.B(_.b4,{className:_.B8("learningJourneyLoaderViewModelLoader",a.className),animationName:function(){return jze.animationConfig.name},
data:jze,animationRef:I}))},"dd");_.Jf(_.zao,"yt-learning-journey-loader-view-model",{props:{data:_.zl,className:_.I5,onLottieLoaded:_.I5}});var Ptd=new Set,ruO=null;var J8i=_.ec(function(a){var z=null,I=null,J=function(){return a.data()},r=function(){var v=J();
var d=_.ab().resolve(_.eL(_.kN));v=d!=null&&d()?v.darkThemeColorPalette:v.lightThemeColorPalette;return{primaryTextColor:Qr(v,0),secondaryTextColor:Qr(v,1),optionColor:Qr(v,2),backgroundColor:Qr(v,3),videoBackgroundColor:Qr(v,4)}},P=function(){return!!r().optionColor},N=_.C(_.CW(-1,void 0,"Wnp7o")),u=N.next().value,E=N.next().value,O=function(v){return J().correctAnswerIndex===v},f=function(){return u()!==-1};
N=_.C(_.CW("",void 0,"CFFQk"));var A=N.next().value,n=N.next().value,F=function(){var v=f(),d=u()===J().correctAnswerIndex;return v?d?264685:264684:264683},h=function(v){return u()===J().correctAnswerIndex&&O(v)};
return _.B("learning-journey-quiz-view-model",{class:_.B8("learningJourneyQuizViewModelHost",a.className),style:_.sW({background:function(){return r().backgroundColor}})},_.B("div",{"aria-live":"polite",
class:"learningJourneyQuizYoututorVisuallyHidden"},A),_.B(_.g,{cond:function(){return!!J().video},
then:function(){return _.B("div",{class:"learningJourneyQuizViewModelHostVideoContainer",style:_.sW({background:function(){return r().videoBackgroundColor}})},_.B(_.V0,{data:function(){return J().video}},{lockupViewModel:function(v){return _.B(_.Ou,{data:v.data,
containerType:1,className:"learningJourneyQuizViewModelHostVideoLockup"})}}))}}),_.B("div",{class:"learningJourneyQuizViewModelHostQuizContainer"},_.B("div",{class:"learningJourneyQuizViewModelHostQuiz"},_.B("div",{class:"learningJourneyQuizViewModelHostQuizContent"},_.B(_.g,{cond:function(){return!!J().aiGeneratedQuizLabel},
then:function(){return _.B("div",{class:"learningJourneyQuizViewModelHostQuizAiGeneratedLabel"},_.B(_.xs,{text:function(){return J().aiGeneratedQuizLabel}}))}}),_.B("div",{class:"learningJourneyQuizViewModelHostQuizHeader",
style:_.sW({"align-items":function(){return J().overflowMenu?"start":"center"}})},_.B("div",{class:"learningJourneyQuizViewModelHostQuizHeaderTextContainer",
style:_.sW({"min-height":function(){return J().overflowMenu?"48px":"26px"}})},_.B("div",{class:"learningJourneyQuizYoututorText",
el:_.a5(function(v){_.Vr(F(),v,z,function(d){z=d})}),
style:_.sW({color:function(){return r().primaryTextColor}}),
"client-ve-type":F},_.B(_.xs,{text:function(){return J().questionHeaderText}})))),_.B("div",{class:"learningJourneyQuizViewModelHostQuizSubheader",
el:_.a5(function(v){_.Vr(264688,v,I,function(d){I=d})}),
style:_.sW({color:function(){return r().secondaryTextColor}}),
"client-ve-type":264688},_.B(_.xs,{text:function(){var v=J();return f()?v.explanationText:v.questionSubheaderText}}))),_.B("div",{role:"group",
class:_.B8("learningJourneyQuizViewModelHostQuizOptionsList","learningJourneyQuizYoututorOptionsListGap")},_.B(_.se,{each:function(){return J().optionsData||[]}},function(v,d){var W={};
return _.B("button",{class:_.B8("learningJourneyQuizViewModelHostQuizOptions","learningJourneyQuizYoututorOptionsGap","learningJourneyQuizYoututorOptionsBorderSquare",(W.learningJourneyQuizViewModelHostQuizHover=function(){return!f()},W.learningJourneyQuizViewModelHostQuizOptionWithCustomColor=P,W.learningJourneyQuizYoututorOptionSelectedCorrectOutline=function(){return f()&&O(d())},W.learningJourneyQuizYoututorOptionSelectedIncorrectOutline=function(){var l;
if(l=u()!==J().correctAnswerIndex)l=d(),l=u()===l;return l},W)),
"on:click":_.g4(function(){if(f())return!1;E(d());var l,q;n(O(d())?((l=J().successTitle)==null?void 0:l.content)||"":((q=J().failureTitle)==null?void 0:q.content)||"");return!1}),
style:_.sW({background:"transparent"}),"aria-description":function(){var l,q;return f()?O(d())?(l=J().successTitle)==null?void 0:l.content:(q=J().failureTitle)==null?void 0:q.content:""},
"aria-disabled":f,"client-ve-type":264686},_.B("div",{class:"learningJourneyQuizViewModelHostQuizOptionContainer"},_.B(_.xs,{text:v.optionText}),_.B(_.g,{cond:function(){var l=d(),q;if(q=f())q=u()===l||O(l);return q},
then:function(){return _.B(I6e,{isOptionCorrect:O,optionIndex:d,isOptionSelectedAndCorrect:h,colors:r})}})))}),_.B(_.g,{cond:f,
then:function(){return _.B("div",{class:"learningJourneyQuizYoututorExplanationContainer"},_.B("div",{class:"learningJourneyQuizYoututorExplanationText"},_.B(_.xs,{text:function(){return J().explanationHeaderText}})),_.B(_.xs,{text:function(){return J().optionsData[u()].explanationText},
className:"learningJourneyQuizYoututorExplanationDescriptionText"}))}})))))},"ed"),I6e=_.ec(function(a){var z={};
return _.B("svg",{xmlns:"http://www.w3.org/2000/svg",height:24,width:24,viewBox:"0 0 24 24",class:_.B8("learningJourneyQuizYoututorOptionIconTrailing",(z.learningJourneyQuizViewModelHostQuizPulse=function(){return a.isOptionSelectedAndCorrect(a.optionIndex())},z.learningJourneyQuizYoututorIconIncorrectFill=function(){return!a.isOptionSelectedAndCorrect(a.optionIndex())&&!a.isOptionCorrect(a.optionIndex())},z.learningJourneyQuizYoututorIconCorrectFill=function(){return a.isOptionCorrect(a.optionIndex())},
z))},_.B("path",{d:function(){var I=a.optionIndex();
return a.isOptionCorrect(I)?"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":"M12 1.5C18.0751 1.5 23 6.42487 23 12.5C23 18.5751 18.0751 23.5 12 23.5C5.92487 23.5 1 18.5751 1 12.5C1 6.42487 5.92487 1.5 12 1.5ZM16.207 8.29297C15.8165 7.90246 15.1835 7.90246 14.793 8.29297L12 11.0859L9.20703 8.29297C8.81651 7.90247 8.18349 7.90247 7.79297 8.29297C7.40245 8.68349 7.40246 9.31651 7.79297 9.70703L10.5859 12.5L7.79297 15.293C7.40247 15.6835 7.4025 16.3165 7.79297 16.707C8.1835 17.0976 8.81651 17.0976 9.20703 16.707L12 13.9141L14.793 16.707L14.8691 16.7754C15.2619 17.0958 15.8409 17.0731 16.207 16.707C16.5731 16.3409 16.5958 15.7619 16.2754 15.3691L16.207 15.293L13.4141 12.5L16.207 9.70703C16.5975 9.31651 16.5975 8.68349 16.207 8.29297Z"}}))},
"fd");
J8i.idomCompat=!0;var r8l;_.PLf=_.ec(function(a){var z=null,I=null,J=null,r=function(){return a.data()},P=function(){var m=r();
var M=_.ab().resolve(_.eL(_.kN));m=M!=null&&M()?m.darkThemeColorPalette:m.lightThemeColorPalette;return{primaryTextColor:S8(m,0),secondaryTextColor:S8(m,1),optionColor:S8(m,2),backgroundColor:S8(m,3),videoBackgroundColor:S8(m,4)}},N=function(){return!!P().optionColor},u=_.C(_.CW(-1,void 0,"oGWitb")),E=u.next().value,O=u.next().value,f=function(m){return E()===m},A=function(m){return r().correctAnswerIndex===m},n=function(){return E()!==-1},F=function(){return E()===r().correctAnswerIndex},h=function(){var m=
r(),M=n(),y=F();
return M?y?m.successTitle:m.failureTitle:m.questionHeaderText},v=function(){var m=n(),M=F();
return m?M?264685:264684:264683},d=function(){var m=r();
return n()?m.explanationText:m.questionSubheaderText},W=function(){return!!r().video},l=function(m){return F()&&A(m)},q=_.g4(function(){O(-1);
return!1});
return _.B(_.g,{cond:function(){return r().quizType==="LEARNING_JOURNEY_QUIZ_TYPE_YOUTUTOR"},
then:function(){return _.B(J8i,{data:function(){return r()}})},
else:function(){return _.B("learning-journey-quiz-view-model",{class:_.B8("learningJourneyQuizViewModelHost",a.className),style:_.sW({background:function(){return P().backgroundColor}})},_.B(_.g,{cond:W,
then:function(){return _.B("div",{class:"learningJourneyQuizViewModelHostVideoContainer",style:_.sW({background:function(){return P().videoBackgroundColor}})},_.B(_.V0,{data:function(){return r().video}},{lockupViewModel:function(m){return _.B(_.Ou,{data:m.data,
containerType:1,className:"learningJourneyQuizViewModelHostVideoLockup"})}}))}}),_.B("div",{class:"learningJourneyQuizViewModelHostQuizContainer"},_.B("div",{class:"learningJourneyQuizViewModelHostQuiz"},_.B("div",{class:"learningJourneyQuizViewModelHostQuizContent"},_.B(_.g,{cond:function(){return!!r().aiGeneratedQuizLabel},
then:function(){return _.B("div",{class:"learningJourneyQuizViewModelHostQuizAiGeneratedLabel"},_.B(_.xs,{text:function(){return r().aiGeneratedQuizLabel}}))}}),_.B("div",{class:"learningJourneyQuizViewModelHostQuizHeader",
style:_.sW({"align-items":function(){return r().overflowMenu?"start":"center"}})},_.B("div",{class:"learningJourneyQuizViewModelHostQuizHeaderTextContainer",
style:_.sW({"min-height":function(){return r().overflowMenu?"48px":"26px"}})},_.B("div",{class:"learningJourneyQuizViewModelHostQuizHeaderText",
el:_.a5(function(m){_.Vr(v(),m,z,function(M){z=M})}),
style:_.sW({color:function(){return P().primaryTextColor}}),
"client-ve-type":v},_.B(_.xs,{text:h}))),_.B("div",{class:"learningJourneyQuizViewModelHostQuizHeaderButtons"},_.B(_.g,{cond:n,then:function(){return _.B("div",{id:"resetButton",class:"learningJourneyQuizViewModelHostQuizHover",el:_.a5(function(m){_.Vr(264687,m,I,function(M){I=M})}),
"on:click":q,role:"button","aria-label":"Reset","tab-index":"0","client-ve-type":264687},_.B("svg",{xmlns:"http://www.w3.org/2000/svg",height:"24",width:"24",viewBox:"0 -960 960 960",style:_.sW({fill:function(){return P().primaryTextColor}})},_.B("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"})))}}),
_.B(_.V0,{data:function(){return r().overflowMenu}},{buttonViewModel:function(m){return _.B(_.At,{data:m.data})}}))),_.B("div",{class:"learningJourneyQuizViewModelHostQuizSubheader",
el:_.a5(function(m){_.Vr(264688,m,J,function(M){J=M})}),
style:_.sW({color:function(){return P().secondaryTextColor}}),
"client-ve-type":264688},_.B(_.xs,{text:d}))),_.B("div",{role:"group",class:"learningJourneyQuizViewModelHostQuizOptionsList"},_.B(_.se,{each:function(){return r().optionsData||[]}},function(m,M){var y={};
return _.B("button",{class:_.B8("learningJourneyQuizViewModelHostQuizOptions","learningJourneyQuizViewModelHostQuizOptionsBorderRound",(y.learningJourneyQuizViewModelHostQuizHover=function(){return!n()},y.learningJourneyQuizViewModelHostQuizOptionWithCustomColor=N,y.learningJourneyQuizViewModelHostQuizOptionSelectedCorrect=function(){return l(M())},y.learningJourneyQuizViewModelHostQuizOptionSelectedIncorrect=function(){return!F()&&f(M())},y.learningJourneyQuizViewModelHostQuizOptionNotSelected=function(){return n()&&
!f(M())},y)),
"on:click":_.g4(function(){if(n())return!1;O(M());return!1}),
style:_.sW({background:function(){var e=M();return n()&&f(e)?"":N()?P().optionColor:"transparent"}}),
"aria-disabled":n,"client-ve-type":264686},_.B("div",{class:"learningJourneyQuizViewModelHostQuizOptionContainer"},_.B(_.g,{cond:n,then:function(){return _.B(r8l,{isOptionCorrect:A,optionIndex:M,isOptionSelectedAndCorrect:l,colors:P})}}),_.B(_.xs,{text:m.optionText})))})))))}})},"gd");
r8l=_.ec(function(a){var z={};return _.B("svg",{xmlns:"http://www.w3.org/2000/svg",height:"16",width:"16",viewBox:function(){var I=a.optionIndex();return a.isOptionCorrect(I)?"0 0 24 24":"0 -960 960 960"},
class:_.B8("learningJourneyQuizViewModelHostQuizOptionIconLeading",(z.learningJourneyQuizViewModelHostQuizPulse=function(){return a.isOptionSelectedAndCorrect(a.optionIndex())},z)),
style:_.sW({fill:function(){return a.colors().primaryTextColor}})},_.B("path",{d:function(){var I=a.optionIndex();
return a.isOptionCorrect(I)?"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"}}))},"hd");
_.PLf.idomCompat=!0;_.Jf(_.PLf,"learning-journey-quiz-view-model",{props:{data:_.zl,className:_.zl}});var ZDv=_.ec(function(a){var z=a.data;return _.B("yt-suspense-view-model",{class:_.B8("ytSuspenseViewModelHost")},_.B(_.V0,{data:function(){var I;return(I=z().config)==null?void 0:I.contents}},{lockupViewModel:_.Ou}))},"id");var CLE=_.ec(function(a){var z=_.q3(a,{palette:void 0,isLastItem:!1}),I=z.palette,J=z.isLastItem,r=function(){return a.data().isHighlighted},P=function(){var E;
return Ctx((E=I())==null?void 0:E.iconDisabledColor)},N=function(){var E;
return Ctx((E=I())==null?void 0:E.primaryTitleColor)},u=function(){var E;
return Ctx((E=I())==null?void 0:E.secondaryTitleColor)};
z={};return _.B("yt-macro-marker-list-item-view-model",{class:"ytMacroMarkerListItemViewModelHost",el:_.a5(_.UN(function(){return a.data().rendererContext}))},_.B(_.V0,{data:function(){return a.data().thumbnail}},{thumbnailViewModel:_.rW}),_.B("div",{class:"ytMacroMarkerListItemViewModelMetadataContainer"},_.B("div",{class:_.B8("ytMacroMarkerListItemViewModelTimeDescription",(z.ytMacroMarkerListItemViewModelHighlighted=r,z)),
style:_.sW({"background-color":function(){return r()?N():P()},
color:function(){return r()?"":u()}})},_.B(_.xs,{text:function(){return a.data().timestamp}})),_.B("div",{class:"ytMacroMarkerListItemViewModelTimeLine",
style:_.sW({"background-color":function(){return J()?"transparent":P()}})}),_.B("h4",{class:"ytMacroMarkerListItemViewModelTitle",
style:function(){return"color:"+(r()?N():u())}},_.B(_.xs,{text:function(){return a.data().title}}))))},"jd");_.pF=_.ec(function(a){function z(r$){l("transform:translateX("+(_.Xw("HTML_DIR")==="rtl"?"":"-")+r$+"px)")}
function I(r$){return Math.min(Math.max(r$,0),W()-e())}
function J(){var r$=M()+bG();return r()?(Math.round(e()/r$)||1)*r$:0}
var r=function(){return a.data().items||[]},P=function(){return a.data().previousButton},N=function(){return a.data().nextButton},u=function(){var r$,aw;
return(aw=(r$=a.disableArrows)==null?void 0:r$.call(a))!=null?aw:!1},E=function(){var r$;
return!((r$=a.forceNarrowLayout)==null||!r$.call(a))},O=_.Bg(function(){var r$;
return!((r$=a.centerAlignItems)==null||!r$.call(a))&&W()<=e()},void 0,"DL81uf"),f=_.Mm("horizontal-shelf-view-model"),A=_.Mm("div"),n=_.C(_.CW(0,void 0,"xZFppf")),F=n.next().value,h=n.next().value;
n=_.C(_.CW(0,void 0,"pH9gvd"));var v=n.next().value,d=n.next().value,W=v;v=_.C(_.CW("",void 0,"oYcWy"));n=v.next().value;var l=v.next().value;v=_.C(_.CW(0,void 0,"lI6NJb"));var q=v.next().value,m=v.next().value,M=q;v=_.C(_.CW(0,void 0,"yPqhW"));q=v.next().value;var y=v.next().value,e=q;v=_.C(_.CW(!1,void 0,"u4CvOe"));var Bp=v.next().value,Em=v.next().value;v=_.C(_.CW(0,void 0,"oQOBbe"));q=v.next().value;var nG=v.next().value,bG=q;v=_.C(_.CW(0,void 0,"fCqgxd"));var Hp=v.next().value,LG=v.next().value;
v=_.C(_.CW("50%",void 0,"kjP5ke"));var oE=v.next().value,Pe=v.next().value,TJ=function(){var r$,aw=(r$=a.data())==null?void 0:r$.responsiveContainerConfiguration,Kl,EG;return aw?Lri(aw==null?void 0:aw.responsiveSize):(EG=(Kl=a.sizing)==null?void 0:Kl.call(a))!=null?EG:"STANDARD"};
v=_.Bg(function(){return!u()&&F()>0},void 0,"oVCO3d");
q=_.Bg(function(){return!u()&&F()<W()-e()},void 0,"MQ6Gb");
var Be=function(){h(I(F()-J()));z(F())},eM=function(){h(I(F()+J()));
z(F())},Ao=function(){f.value!==null&&GJ()},gf;
_.QO(function(){GJ();window.ResizeObserver?(gf=new ResizeObserver(_.Hr(Ao,0)),gf.observe(f.value)):window.addEventListener("resize",Ao)});
_.V3(function(){if(window.ResizeObserver){var r$;(r$=gf)==null||r$.disconnect()}else window.removeEventListener("resize",Ao)});
var GJ=function(){var r$=f.value.clientWidth,aw=a.includeMargin!==void 0?a.includeMargin():!1,Kl;var EG=a.hasPeek!==void 0?a.hasPeek():!((Kl=a.data())==null||!Kl.hasPeek);r$=_.mY({containerWidth:r$,hasPeek:EG,sizing:TJ(),marginSettings:aw?E()?4:1:0});nG(r$.gutter);LG(r$.margin);m(r$.itemWidth);Em(r$.maxContainerWidth<528||E());y(r$.maxContainerWidth);r()&&d((r$.itemWidth+r$.gutter)*r().length-r$.gutter);if(r()){var F1;if(((F1=a.thumbnailAspectRatio)==null?void 0:F1.call(a))!==void 0){var jf;Pe(M()/
LMm((jf=a.thumbnailAspectRatio)==null?void 0:jf.call(a))/2+"px")}else Pe("50%")}},Sf={},ce={};
return _.B("horizontal-shelf-view-model",{class:_.B8("ytwHorizontalShelfViewModelHost",a.className),el:f},_.B(_.g,{cond:function(){var r$;return a.data().header&&!((r$=a.horizontalShelfExperiments)==null?0:r$.call(a).hideHeader)},
then:function(){return _.B("div",{class:"ytwHorizontalShelfViewModelHeader",style:_.sW({width:function(){return e()+"px"},
padding:function(){return"0 "+Hp()+"px"}})},_.B(_.V0,{data:function(){return a.data().header}},{sectionHeaderViewModel:function(r$){return _.B(_.fF,{data:r$.data,
disableHorizontalPadding:!0,forceSmallLayout:Bp,useResponsiveLayout:!0})}}))}}),_.B("div",{class:_.B8("ytwHorizontalShelfViewModelOuterContainer",(Sf.ytwHorizontalShelfViewModelCenterAlignOuterContainer=function(){return O()},Sf)),
style:_.sW({"margin-top":function(){var r$,aw=a.data().header&&!((r$=a.horizontalShelfExperiments)==null?0:r$.call(a).hideHeader),Kl;return(((Kl=a.ensureMarginTop)==null?0:Kl.call(a))&&!aw?12:0)+"px"}})},_.B("div",{class:"ytwHorizontalShelfViewModelHorizontalContainer",
style:_.sW({width:function(){return e()+"px"},
padding:function(){return"0 "+Hp()+"px"},
overflow:function(){return u()?"auto":"hidden"}})},_.B("div",{class:_.B8("ytwHorizontalShelfViewModelItems",(ce.ytwHorizontalShelfViewModelCenterAlignItems=function(){return O()},ce)),
el:A,style:n},_.B(_.V0,{data:r},{macroMarkerListItemViewModel:function(r$,aw){return _.B("div",{style:_.sW({width:function(){return M()+"px"},
"margin-right":function(){return(aw()===r().length-1?0:bG())+"px"}})},_.B(CLE,{data:r$.data,
palette:_.Yi(a.palette),isLastItem:function(){return aw()===r().length-1}}))},
lockupViewModel:function(r$,aw){var Kl=r$.data;return _.B("div",{style:_.sW({width:function(){return M()+"px"},
"margin-right":function(){return(aw()===r().length-1?0:bG())+"px"}})},_.B(_.Ou,{data:Kl,
containerType:4,sizing:TJ,protectBackground:a.protectBackground,thumbnailFixedWidth:function(){return NSI(Kl())+"px"},
thumbnailTargetWidth:function(){return NSI(Kl())}}))},
suspenseViewModel:function(r$,aw){return _.B("div",{style:_.sW({width:function(){return M()+"px"},
"margin-right":function(){return(aw()===r().length-1?0:bG())+"px"}})},_.B(ZDv,{data:r$.data}))}}))),_.B(_.g,{cond:v,
then:function(){return _.B("div",{class:"ytwHorizontalShelfViewModelLeftArrow",style:_.sW({top:function(){return oE()}})},_.B(_.V0,{data:P},{buttonViewModel:function(r$){return _.B(_.At,{data:r$.data,
onClick:Be})}}))}}),_.B(_.g,{cond:q,
then:function(){return _.B("div",{class:"ytwHorizontalShelfViewModelRightArrow",style:_.sW({top:function(){return oE()}})},_.B(_.V0,{data:N},{buttonViewModel:function(r$){return _.B(_.At,{data:r$.data,
onClick:eM})}}))}})))},"kd");
_.pF.idomCompat=!0;var NkX=_.ec(function(a){var z=function(){return a.data().targetId||""},I=function(){var v;
return((v=a.data())==null?void 0:v.expansionEntityKey)||""},J=_.KU(_.Dt,I),r=!0,P=function(){var v;
return((v=J())==null?void 0:v.value)===z()},N=function(v){_.cK(_.Q0("stringEntity",I(),{key:I(),
value:v?z():""}))};
_.hD(function(){r=!1;a.data().isExpanded&&N(!0)});
var u=function(){if(P()){var v=!0;a.onCollapse!==void 0&&(v=a.onCollapse());v&&N(!1)}else N(!0)},E=_.g4(u),O=function(){var v;
return(((v=a.accordionStyle)==null?void 0:v.call(a))||"ACCORDION_VIEW_MODEL_STYLE_UNSPECIFIED")==="ACCORDION_VIEW_MODEL_STYLE_MINI"},f=_.Mm("div"),A=function(){var v,d;
return(d=(v=_.H(a.data().rendererContext,_.Vw))==null?void 0:v.label)!=null?d:""},n=function(){var v,d;
return{disabled:(v=a.hideIfNotExpanded)==null?void 0:v.call(a),ariaHidden:(d=a.hideIfNotExpanded)==null?void 0:d.call(a)}},F={},h={};
return _.B("yt-accordion-item-view-model",{class:_.B8("ytAccordionItemViewModelHost",a.className,(F.ytAccordionItemViewModelExpanded=function(){return P()},F.ytAccordionItemViewModelHidden=function(){var v;
return(v=a.hideIfNotExpanded)==null?void 0:v.call(a)},F.ytAccordionItemViewModelMini=O,F)),
"data-target-id":z},_.B("div",{class:"ytAccordionItemViewModelContainer"},_.B("div",{class:"ytAccordionItemViewModelLeftSection","on:click":E,title:A,"aria-hidden":function(){var v;return(v=a.hideIfNotExpanded)==null?void 0:v.call(a)}},_.B(_.xs,{text:function(){return a.data().title},
className:"ytAccordionItemViewModelLabel",ariaLabel:A})),_.B("div",{class:"ytAccordionItemViewModelRightSection"},_.B(_.V0,{data:function(){return P()?a.data().expandButton:a.data().collapseButton}},{buttonViewModel:function(v){return _.B(_.At,{data:v.data,
className:"ytAccordionItemViewModelToggleButton",onClick:u,buttonOverrides:n})}}))),_.B("div",{class:"ytAccordionItemViewModelContainer"},_.B("div",{class:_.B8("ytAccordionItemViewModelContent",(h.ytAccordionItemViewModelExpandedSubtitle=function(){return P()},h)),
el:f,style:_.sW({"max-height":function(){return r?"auto":P()?f.value.scrollHeight+"px":"0"}}),
"aria-hidden":function(){return!P()}},_.B(_.g,{cond:function(){return!O()},
then:function(){return _.B(_.xs,{text:function(){return a.data().description},
className:"ytAccordionItemViewModelSubtitle"})}}),_.B(_.V0,{data:function(){return a.data().content}},{horizontalShelfViewModel:function(v){return _.B(_.pF,{data:v.data,
className:"ytAccordionItemViewModelLockupShelf",hasPeek:!0})}}))))},"ld");_.t5E=_.ec(function(a){var z=_.C((0,_.vYi)(a.data)).next().value,I=function(){return a.data().style||"ACCORDION_VIEW_MODEL_STYLE_UNSPECIFIED"},J=function(){return I()==="ACCORDION_VIEW_MODEL_STYLE_MINI"},r=_.C(_.CW(!0,void 0,"FVec2e")),P=r.next().value,N=r.next().value,u=function(){return J()&&P()},E=function(){return{type:"tonal",
style:"mono",state:"active",size:"XS",iconPosition:"icon-only",onTap:function(){N(!P())}}},O=_.g4(function(){z().onTitleTap&&_.lN(z().onTitleTap||{})});
r={};return _.B("yt-accordion-view-model",{class:_.B8("ytAccordionViewModelHost",(r.ytAccordionViewModelMinimized=function(){return u()},r)),
"data-target-id":function(){return a.data().targetId||""}},_.B(_.g,{cond:function(){return J()||!!z().title},
then:function(){return _.B("div",{class:"ytAccordionViewModelHeader"},_.B("div",{class:"ytAccordionViewModelTitleSection"},_.B("div",{class:"ytAccordionViewModelTitleWrapper"},_.B(_.g,{cond:function(){return!!a.data().headerIcon},
then:function(){return _.B(_.nS,{className:"ytAccordionViewModelHeaderIcon",icon:function(){var f;return(f=a.data().headerIcon)==null?void 0:f.iconType}})}}),_.B("div",{class:"ytAccordionViewModelTitle",
"on:click":O},_.B(_.xs,{className:"ytAccordionViewModelTitleText",text:function(){return z().title}})))),_.B("div",{class:"ytAccordionViewModelButtonSection"},_.B(_.g,{cond:J,
then:function(){return _.B(_.f_,{data:E,iconName:function(){return u()?"chevron_down":"chevron_collapse"}})}})))}}),_.B("div",{class:"ytAccordionViewModelContent"},_.B(_.V0,{data:function(){return z().contents}},{accordionItemViewModel:function(f){return _.B(NkX,{data:f.data,
className:"ytAccordionViewModelRow",accordionStyle:I,hideIfNotExpanded:u,onCollapse:function(){return J()?(N(!0),!1):!0}})}})),_.B("div",null,_.B(_.g,{cond:function(){return!J()&&(!!z().disclaimerFooter||!!z().footer)},
then:function(){return _.B("div",{class:"ytAccordionViewModelFooter"},_.B(_.xs,{text:function(){return z().disclaimerFooter},
className:"ytAccordionViewModelDisclaimer"}),_.B(_.V0,{data:function(){return a.data().footer}},{flexibleActionsViewModel:function(f){return _.B(_.Dw,{data:f.data,
layout:0})}}))}})))},"md");_.Jf(_.t5E,"yt-accordion-view-model",{props:{data:_.zl}});_.Jf(_.ec(function(a){var z=null,I=null,J,r=(J=_.ab().resolve(_.eL(_.kN)))==null?void 0:J(),P=_.C(_.CW(!1,void 0,"EVXQGb"));J=P.next().value;var N=P.next().value;P=_.C(_.CW(!0,void 0,"W9FIJf"));var u=P.next().value,E=P.next().value,O=_.Mm("textarea",function(d){_.Vr(264503,d,z,function(W){z=W})}),f=function(d){N(!0);
d={learningJourneyFormData:{query:d}};_.lN(a.data().searchEndpoint||{},{form:{formData:d}});return!1},A=_.g4(function(d){d.target.closest("button-view-model")&&N(!0)});
P=_.g4(function(){E(O.value.value.length===0)});
var n=_.g4(function(d){if(d.key==="Enter"&&!d.shiftKey&&!u()){var W=d.target;d.preventDefault();f(W.value)}}),F={},h={},v={};
return _.B("yt-learning-journey-zero-state",{class:"ytLearningJourneyZeroStateHost"},_.B("div",{class:"ytLearningJourneyZeroStateLearningIconContainer"},_.B(_.qp,{data:function(){return a.data().learningIcon},
className:"ytLearningJourneyZeroStateLearningIcon",alt:"Learning icon",contentMode:"CONTENT_MODE_CENTER"})),_.B("div",{class:"ytLearningJourneyZeroStateSearchContainer"},_.B("div",{class:"ytLearningJourneyZeroStateSearchBarContainer"},_.B("div",{class:_.B8("ytLearningJourneyZeroStateSearchBar",(F.ytLearningJourneyZeroStateSearchBarDark=r,F))},_.B("textarea",{class:_.B8("ytLearningJourneyZeroStateTextInput",(h.ytLearningJourneyZeroStateTextInputDark=r,h)),el:O,"on:keyup":P,"on:keydown":n,placeholder:"What do you want to learn?",
rows:1,"client-ve-type":264503})),_.B("div",{class:_.B8("ytLearningJourneyZeroStateSearchButtonContainer",(v.ytLearningJourneyZeroStateSearchButtonContainerDark=r,v))},_.B(_.At,{data:function(){return _.H(a.data().searchButton,_.yw)},
className:"search-button",onClick:function(){return f(O.value.value)},
buttonOverrides:function(){return{disabled:u(),style:r?"mono-inverse":"mono",size:"XL"}}}))),_.B(_.g,{cond:function(){return!!a.data().errorBanner},
then:function(){return _.B("div",{class:"ytLearningJourneyZeroStateErrorBannerContainer",el:_.a5(function(d){_.Vr(264617,d,I,function(W){I=W})})},_.B(_.V0,{data:function(){return a.data().errorBanner}},{alertBannerViewModel:function(d){return _.B(_.Tvw,{data:d.data,
"client-ve-type":264617})}}))}})),_.B(_.g,{cond:J,
then:function(){return _.B("div",{class:"ytLearningJourneyZeroStateLoaderContainer"},_.B(_.V0,{data:function(){return a.data().loader}},{learningJourneyLoaderViewModel:function(d){return _.B(_.zao,{data:d.data})}}))},
else:function(){return _.B("div",{class:"ytLearningJourneyZeroStateSuggestedJourneySectionContainer"},_.B(_.g,{cond:function(){return!!a.data().learningJourneyShelf},
then:function(){return _.B("div",{class:"ytLearningJourneyZeroStatePlaylistShelfContainer"},_.B("h2",{class:"ytLearningJourneyZeroStateSuggestedJourneySectionTitle"},function(){return a.data().learningJourneySectionTitle}),_.B(_.V0,{data:function(){return a.data().learningJourneyShelf}},{horizontalShelfViewModel:function(d){return _.B(_.pF,{data:d.data,
centerAlignItems:!0})}}))}}),_.B("div",{class:"ytLearningJourneyZeroStateSuggestedJourneySection"},_.B("h2",{class:"ytLearningJourneyZeroStateSuggestedJourneySectionTitle"},function(){return a.data().suggestedJourneySectionTitle}),_.B("div",{class:"ytLearningJourneyZeroStateSuggestedJourneySectionContentContainer",
"on:click":A},_.B(_.V0,{data:function(){return a.data().suggestedJourneyActions}},{flexibleActionsViewModel:function(d){return _.B(_.Dw,{data:d.data,
layout:0,className:"ytLearningJourneyZeroStateSuggestedJourneySectionContent"})}}))))}}))},"nd"),"yt-learning-journey-zero-state",{props:{data:_.zl}});var uYw=_.ec(function(a){var z=a.data;return _.B("ytvl-live-leaderboard-item-action-content-view-model",{class:_.B8("ytvlLiveLeaderboardItemActionContentViewModelHost")},_.B(_.xs,{text:function(){var I;return(I=z())==null?void 0:I.actionDescription},
className:"ytvlLiveLeaderboardItemActionContentViewModelActionDescription"}),_.B(_.V0,{data:function(){return z().actionButton}},{buttonViewModel:function(I){return _.B(_.At,{className:"ytvlLiveLeaderboardItemActionContentViewModelActionButton",
data:I.data})}}))},"od");var EWe=_.ec(function(a){var z=a.data;return _.B("ytvl-live-leaderboard-item-channel-content-view-model",{class:_.B8("ytvlLiveLeaderboardItemChannelContentViewModelHost")},_.B(_.xs,{className:"ytvlLiveLeaderboardItemChannelContentViewModelChannelName",text:function(){var I;return(I=z())==null?void 0:I.displayName},
ellipsisTruncate:!0}),_.B(_.V0,{data:function(){return z().badge}},{buttonViewModel:function(I){return _.B(_.At,{className:"ytvlLiveLeaderboardItemChannelContentViewModelBadge",
data:I.data})}}))},"pd");_.Jf(_.ec(function(a){var z=a.data;return _.B("ytvl-live-leaderboard-item-view-model",{class:"ytvlLiveLeaderboardItemViewModelHost"},_.B("div",{class:"ytvlLiveLeaderboardItemViewModelRankNumberContainer"},_.B(_.xs,{className:"ytvlLiveLeaderboardItemViewModelRankNumber",text:function(){var I;return(I=z())==null?void 0:I.rank}})),_.B("div",{class:"ytvlLiveLeaderboardItemViewModelAvatar"},_.B(_.V0,{data:function(){return z().avatar}},{avatarViewModel:_.ok})),_.B("div",{class:"ytvlLiveLeaderboardItemViewModelContent"},
_.B(_.V0,{data:function(){return z().content}},{liveLeaderboardItemChannelContentViewModel:EWe,
liveLeaderboardItemActionContentViewModel:uYw})),_.B(_.xs,{className:"ytvlLiveLeaderboardItemViewModelPoints",text:function(){var I;return(I=z())==null?void 0:I.points}}))},"qd"),"ytvl-live-leaderboard-item-view-model",{props:{data:_.zl}});_.Jf(_.ec(function(a){var z=a.data;return _.B("ytvl-live-viewer-leaderboard-item-view-model",{class:"ytvlLiveViewerLeaderboardItemViewModelHost"},_.B(_.xs,{className:"ytvlLiveViewerLeaderboardItemViewModelRankNumber",text:function(){var I,J;return(I=z())==null?void 0:(J=I.ranking)==null?void 0:J.rank}}),_.B("div",{class:"ytvlLiveViewerLeaderboardItemViewModelAvatar"},_.B(_.V0,{data:function(){return z().avatar}},{avatarViewModel:_.ok})),_.B(_.xs,{className:"ytvlLiveViewerLeaderboardItemViewModelChannelContent",
text:function(){var I,J;return(I=z())==null?void 0:(J=I.channelContent)==null?void 0:J.channelName}}),_.B(_.xs,{className:"ytvlLiveViewerLeaderboardItemViewModelPoints",
text:function(){var I;return(I=z())==null?void 0:I.points}}))},"rd"),"ytvl-live-viewer-leaderboard-item-view-model",{props:{data:_.zl}});var BkO=_.ec(function(a){a=_.q3(a,{wrapper:!1}).wrapper;return _.B(_.g,{cond:a,then:function(){return _.B("ytw-spinner",{class:"ytWebSpinnerWrapper"},_.B("div",{class:"ytWebSpinnerSpinner"}))},
else:function(){return _.B("ytw-spinner",{class:"ytWebSpinnerSpinner"})}})},"sd");
BkO.idomCompat=!0;var gWl=["QR_CODE_RENDERER_STYLE_WEB_SHORTS_ENGAGEMENT_PANEL"],ODw=_.ec(function(a){var z=a.data;var I=_.a5(),J=_.Bg(function(){return z().command},void 0,"o6t5Yb");
_.h2(function(){J()&&_.DA(J(),{form:{element:I.value}})},"qIHWLc");
return _.B("div",{el:I,class:"YtQrCodeRendererHostContainer"},_.B(_.g,{cond:function(){return z().qrCodeImage},
then:function(r){return _.B(_.qp,{data:r,alt:"",className:"YtQrCodeRendererHostQrImage",useWidth:!1,contentMode:"CONTENT_MODE_SCALE_ASPECT_FILL"})},
else:function(){return _.B(_.g,{cond:function(){return z().spinner},
then:function(){return _.B(BkO,null)}})}}),_.B(_.g,{cond:function(){return z().label},
then:function(r){return _.B(_.xs,{text:r,className:"YtQrCodeRendererHostLabel"})}}),_.B(_.g,{cond:function(){return z().labels},
then:function(r){return _.B("div",{class:"YtQrCodeRendererHostLabels"},_.B(_.se,{each:r},function(P){return _.B(_.xs,{text:P})}))}}))},"ud");_.Jf(_.ec(function(a){var z=a.data;var I=_.Bg(function(){return z().qrEntityKey},void 0,"joYCxd"),J=_.Bg(function(){return z().deleteEntityOnDismiss},void 0,"x3yAde"),r=_.Bg(function(){return z().command},void 0,"dJe1Re"),P=_.KU(daG,I);
a=_.Bg(function(){return z().qrCodeImage},void 0,"qM5dZe");
var N=_.Bg(function(){return z().style&&gWl.includes(z().style)},void 0,"CaNEkf"),u=_.z$({visibilityCallback:function(E){E&&r()&&_.DA(r())},
showOption:{calledOnce:!0,state:"visible"}});_.QO(function(){_.V3(function(){J()&&I()&&_.M3().dispatch(_.Q0("qrCodeEntity",I()))})});
return _.B("yt-qr-code-renderer",{class:"YtQrCodeRendererHost",el:_.a5(u)},_.B(_.g,{cond:N,then:function(){return _.B(_.g,{cond:P,then:function(E){return _.B(ODw,{data:E})}})}}),_.B(_.g,{cond:a,
then:function(E){return _.B(_.qp,{data:E,alt:""})}}))},"td"),"yt-qr-code-renderer",{props:{data:_.zl}});_.f61=_.ec(function(a){var z=a.data;var I=a.topbarOffset;var J,r=((J=_.ab().resolve(_.eL(_.kN)))==null?void 0:J())||!1;return _.B("cinematic-container-view-model",{class:"ytCinematicContainerViewModelHost",style:function(){var P=z();var N,u,E=r?(N=P.config)==null?void 0:N.darkThemeBackgroundColor:(u=P.config)==null?void 0:u.lightThemeBackgroundColor;P=E?_.Da(E):void 0;P="background-color: "+P+";";I!==void 0&&(P+="top: -"+I()+"px;");return P},
"aria-hidden":!0},_.B(_.g,{cond:function(){var P,N,u;return!!((P=z().backgroundImageConfig)==null?0:(N=P.image)==null?0:(u=N.sources)==null?0:u.length)},
then:function(){return _.B(_.qp,{data:function(){var P;return(P=z().backgroundImageConfig)==null?void 0:P.image},
className:"ytCinematicContainerViewModelBackgroundImage",alt:""})}}),_.B("div",{class:"ytCinematicContainerViewModelBackgroundGradient",
style:function(){return"background: "+tS7(r,z().gradientColorConfig)+";"}}))},"vd");
_.f61.idomCompat=!0;var w6=_.ec(function(a){var z=a.className;var I=a.data;var J=a.isOverlay;var r=a.maxLinesOverride;var P=a.useMediumText;var N=function(){return I().alwaysShowTruncationText},u=function(){return I().truncationText},E=function(){return P!==void 0&&P()?"medium":"small"},O=function(){return J!==void 0&&J()?"overlay":"default"},f=function(){var h,v;
return(v=(h=_.H(I().rendererContext,_.Vw))==null?void 0:h.label)!=null?v:""};
a=_.C(_.CW(!1,void 0,"xVwzHf"));var A=a.next().value,n=a.next().value;a=_.g4(function(){I().expandOnTap&&n(!A());return!1});
var F={};return _.B("yt-description-preview-view-model",{el:_.a5(_.UN(function(){return I().rendererContext})),
class:_.B8("yt-description-preview-view-model-wiz",z,(F["yt-description-preview-view-model-wiz--clickable"]=function(){var h;return!((h=_.H(I().rendererContext,e_m))==null||!h.onTap)},F["yt-description-preview-view-model-wiz--is-overlay"]=J,F)),
"on:click":a},_.B(_.g,{cond:function(){return I().description},
then:function(h){return _.B(_.g,{cond:A,then:function(){var v={};return _.B("div",{class:_.B8("yt-description-preview-view-model-wiz__description",(v["yt-description-preview-view-model-wiz__description--medium-text"]=P,v))},_.B(_.xs,{text:h}))},
else:function(){return _.B(vLX,{text:h,alwaysShowTruncationText:N,truncationText:u,maxLines:function(){var v;return(v=r==null?void 0:r())!=null?v:I().maxLines},
textStyle:O,accessibilityLabel:f,textSize:E})}})}}))},"wd");
w6.idomCompat=!0;var A8I=_.ec(function(a){var z=a.data;var I=a.isOverlay;return _.B("channel-info-view-model",{class:"ytwChannelInfoViewModelHost"},_.B("div",{class:"ytwChannelInfoViewModelHostChannelHeader"},_.B(_.V0,{data:function(){return z().header}},{sectionHeaderViewModel:function(J){return _.B(_.fF,{data:J.data,
isOverlay:I})}})),_.B("div",{class:"ytwChannelInfoViewModelHostChannelButtons"},_.B(_.V0,{data:function(){return z().channelInfoButtons}},{flexibleActionsViewModel:_.Dw})),_.B("div",{class:"ytwChannelInfoViewModelHostChannelDescription"},_.B(_.V0,{data:function(){return z().description}},{descriptionPreviewViewModel:function(J){return _.B(w6,{data:J.data,
isOverlay:I})}})))},"xd");
A8I.idomCompat=!0;var szX=_.ec(function(a){var z=a.data;var I={};return _.B("factoid-view-model",{class:_.B8("ytwFactoidViewModelHost",(I.ytwFactoidViewModelHostOverlay=a.isOverlay,I))},_.B(_.xs,{text:function(){return z().value},
className:"ytwFactoidViewModelHostFactoidValue"}),_.B(_.xs,{text:function(){return z().label},
className:"ytwFactoidViewModelHostFactoidLabel"}))},"yd");
szX.idomCompat=!0;var nWG=_.ec(function(a){var z=a.data;var I=a.isOverlay;return _.B("factoids-row-view-model",{class:"ytwFactoidsRowViewModelHost"},_.B(_.V0,{data:function(){return z().factoids}},{factoidViewModel:function(J){return _.B(szX,{data:J.data,
isOverlay:I})}}))},"zd");
nWG.idomCompat=!0;_.KRw=_.ec(function(a){var z=a.data;var I=a.isOverlay;return _.B("course-metadata-view-model",{class:"ytwCourseMetadataViewModelHost"},_.B(_.V0,{data:function(){return z().items}},{channelInfoViewModel:function(J){return _.B("div",{class:"ytwCourseMetadataViewModelHostItem"},_.B(A8I,{data:J.data,
isOverlay:I}))},
coursePerksViewModel:function(J){return _.B("div",{class:"ytwCourseMetadataViewModelHostItem"},_.B(q2w,{data:J.data,isOverlay:I}))},
descriptionPreviewViewModel:function(J){return _.B("div",{class:"ytwCourseMetadataViewModelHostItem"},_.B(w6,{data:J.data,isOverlay:I}))},
factoidsRowViewModel:function(J){return _.B("div",{class:"ytwCourseMetadataViewModelHostItem"},_.B(nWG,{data:J.data,isOverlay:I}))},
progressViewModel:function(J){return _.B("div",{class:"ytwCourseMetadataViewModelHostItem"},_.B(e9l,{data:J.data,isOverlay:I}))}}))},"Ad");var FRE=_.ec(function(a){return _.B("yt-flexible-container",{class:"ytFlexibleContainerHost"},_.B(_.V0,{data:function(){return a.data().content}},{courseMetadataViewModel:function(z){return _.B(_.KRw,{data:z.data,
isOverlay:a.isOverlay})},
progressViewModel:function(z){return _.B(e9l,{data:z.data})}}))},"Bd");var HD1=_.ec(function(a){var z=a.data;a=a.className;var I=function(){var r;return _.oK((r=z())==null?void 0:r.rendererContext)},J={};
J=(J["dynamic-text-view-model-wiz"]=!0,J["dynamic-text-view-model-wiz--tappable"]=function(){return I()},J);
return _.B("yt-dynamic-text-view-model",{el:_.a5(_.UN(function(){var r;return(r=z())==null?void 0:r.rendererContext})),
role:function(){return I()?"link":void 0},
tabindex:function(){return I()?0:void 0},
class:_.B8(a,J)},_.B("h1",{class:"dynamic-text-view-model-wiz__h1","aria-label":function(){var r,P,N;return(N=(P=_.H((r=z())==null?void 0:r.rendererContext,_.Vw))==null?void 0:P.label)!=null?N:""}},_.B(_.xs,{text:function(){return z().text},
userInput:!0})))},"Cd");
HD1.idomCompat=!0;_.me=_.ec(function(a){var z=a.data;var I=a.isPositionRelative;var J=_.Ed1("(max-width: 527.9px)"),r=function(){var P,N;return(N=(P=z())==null?void 0:P.style)!=null?N:"IMAGE_BANNER_STYLE_FULL_BLEED"};
a={};return _.B("yt-image-banner-view-model",{el:_.a5(_.UN(function(){var P;return(P=z())==null?void 0:P.rendererContext})),
class:_.B8((a["yt-image-banner-view-model-wiz"]=!0,a["yt-image-banner-view-model-wiz--inset"]=function(){return BSi(r())},a["yt-image-banner-view-model-wiz--position-absolute"]=function(){return _.SJ(!0)&&!(I==null?0:I())},a["yt-image-banner-view-model-wiz--small-inset"]=function(){return BSi(r())&&J()},a["yt-image-banner-view-model-wiz--tappable"]=function(){var P;
return _.oK((P=z())==null?void 0:P.rendererContext)},a))},_.B(_.g,{cond:function(){var P;
return(P=z())==null?void 0:P.image},
then:function(){return _.B(_.qp,{data:function(){return z().image},
alt:"",contentMode:"CONTENT_MODE_SCALE_ASPECT_FILL"})}}),_.B(_.V0,{data:function(){var P;
return(P=z())==null?void 0:P.overlays}},{thumbnailHoverOverlayViewModel:WI}))},"Dd");
_.me.idomCompat=!0;var bDw;bDw=_.ec(function(a){var z=a.condition;var I=a.content;return _.B(_.g,{cond:z,then:function(){return _.B("div",{class:"page-header-view-model-wiz__scroll-container"},I())},
else:function(){return I()}})},"Ed");
_.haO=_.ec(function(a){var z=a.data;var I=a.noPadding;var J=a.enableBanner;var r=a.cinematicContainerTopbarOffset;var P=a.allowCinematicContainerOverflow;var N=a.displayAsSidebar;var u=a.displayAsPanel;var E=a.alwaysUseMediumTextDescription;var O=gdG(),f=function(){return!!z().image||!!z().animatedImage},A=function(){return!!z().background},n=function(){return(N==null?0:N())||(u==null?0:u())?1:O()},F=function(){return n()===1},h=function(){return F()||n()===2},v=function(){return n()===4},d=function(){var Hp=
z();
var LG=!!z().heroImage;var oE=n(),Pe=OaG(z()),TJ=N==null?void 0:N(),Be=!Hp.metadata,eM;if(eM=LG?_.H(Hp.heroImage,x_w):_.H(Hp.animatedImage||Hp.image,x_w)){Hp=eM.style;var Ao=eM.layoutMode;if(Ao!=="CONTENT_PREVIEW_IMAGE_LAYOUT_MODE_EXPLICIT_SIZING")if(eM=zr0(jiM(eM)),LG)LG=ut7(oE,Hp,Ao,eM,TJ);else b:if(Be)LG=oE===1?{size:48}:{size:72};else switch(oE){case 1:LG={size:72};break b;case 2:LG={size:120};break b;default:LG=Pe<4?{size:120}:{size:160}}else LG=void 0}else LG={size:0};return LG};
a={};a=_.B8((a["page-header-view-model-wiz"]=!0,a["page-header-view-model-wiz--no-padding"]=function(){return!(I==null||!I())},a["page-header-view-model-wiz--small-top-padding"]=function(){return F()&&!z().actions&&!(u==null?0:u())||n()===2&&!(f()||z().heroImage)},a["page-header-view-model-wiz--small-bottom-padding"]=function(){return h()&&!z().actions&&!(u==null?0:u())},a["page-header-view-model-wiz--cinematic-container-overflow-boundary"]=function(){return!(P==null?0:P())},a["page-header-view-model-wiz--display-as-sidebar"]=
N,a));
var W={},l=_.B8((W["page-header-view-model-wiz__page-header-headline"]=!0,W["page-header-view-model-wiz__page-header-headline--page-header-headline-full-width-hero"]=function(){var Hp;return(Hp=d())==null?void 0:Hp.allowFullWidth},W)),q=function(){var Hp;
return h()&&!((Hp=d())==null?0:Hp.allowFullWidth)},m=function(){return F()&&(!!z().heroImage||f())&&OaG(z())>0},M=function(){return m()&&(u==null?void 0:u())};
W={};var y=_.B8((W["page-header-view-model-wiz__page-header-title"]=!0,W["page-header-view-model-wiz__page-header-title--page-header-title-large"]=function(){return!m()},W["page-header-view-model-wiz__page-header-title--page-header-title-medium"]=function(){return m()&&!M()},W["page-header-view-model-wiz__page-header-title--page-header-title-medium-force-small-layout"]=M,W["page-header-view-model-wiz__page-header-title--page-header-title-overlay"]=A,W));
W={};var e=_.B8((W["page-header-view-model-wiz__page-header-headline-image"]=!0,W["page-header-view-model-wiz__page-header-headline-image--page-header-headline-image-hero"]=function(){return!!z().heroImage&&h()},W));
W={};var Bp=_.B8((W["page-header-view-model-wiz__page-header-banner-container"]=J,W["page-header-view-model-wiz__page-header-banner-container--full-bleed"]=function(){var Hp;return(J==null?void 0:J())&&((Hp=_.H(z().banner,_.GGw))==null?void 0:Hp.style)==="IMAGE_BANNER_STYLE_FULL_BLEED"},W));
W={};var Em=_.B8((W["page-header-view-model-wiz__page-header-content-metadata"]=!0,W["page-header-view-model-wiz__page-header-content-metadata--page-header-content-metadata-overlay"]=A,W));W={};var nG=_.B8((W["page-header-view-model-wiz__page-header-flexible-actions"]=!0,W["page-header-view-model-wiz__page-header-flexible-actions--page-header-flexible-actions-margin-top"]=function(){return!!z().metadata||h()},W["page-header-view-model-wiz__page-header-flexible-actions--page-header-flexible-actions-margin-bottom"]=
function(){return!h()},W));
W={};var bG=_.B8((W["page-header-view-model-wiz__page-header-attribution"]=!0,W["page-header-view-model-wiz__page-header-attribution--page-header-attribution-overlay"]=A,W));return _.B("yt-page-header-view-model",{class:a},_.B(_.g,{cond:A,then:function(){return _.B("div",{class:"page-header-view-model-wiz__page-header-background"},_.B(_.V0,{data:function(){return z().background}},{cinematicContainerViewModel:function(Hp){return _.B(_.f61,{data:Hp.data,
topbarOffset:r})}}))}}),_.B(bDw,{condition:function(){return!(N==null||!N())},
content:function(){return _.B("div",{class:"page-header-view-model-wiz__page-header-content"},_.B(_.g,{cond:function(){return(J==null?void 0:J())&&z().banner},
then:function(){return _.B("div",{class:Bp},_.B(_.V0,{data:function(){return z().banner}},{imageBannerViewModel:_.me}))}}),_.B("div",{class:l},_.B(_.g,{cond:f,
then:function(){return _.B(_.V0,{data:function(){var Hp;if(!(Hp=z().animatedImage)){Hp=z();if(f()){var LG=Hp=Object.assign({},Hp),oE=n(),Pe=OaG(z()),TJ=LG.image,Be=_.H(TJ,v3o),eM=Be==null?void 0:Be.avatar,Ao=_.H(eM,_.Dc);if(TJ&&eM&&Ao){switch(oE){case 1:Ao.avatarImageSize="AVATAR_SIZE_XL";break;case 2:Ao.avatarImageSize="AVATAR_SIZE_XXL";break;default:Pe<4?Ao.avatarImageSize="AVATAR_SIZE_XXL":Ao.avatarImageSize="AVATAR_SIZE_XXXL"}_.K("web_enable_sink_page_header_view_model")&&(_.$N(eM,_.Dc,Object.assign({},
Ao)),Be.avatar=Object.assign({},eM),_.$N(TJ,v3o,Object.assign({},Be)),LG.image=Object.assign({},TJ))}}Hp=Hp.image}return Hp}},{contentPreviewImageViewModel:function(Hp){return _.B(_.t0,{data:Hp.data,
className:e,imageSizeConfig:d})},
decoratedAvatarViewModel:function(Hp){return _.B(_.Uj,{data:Hp.data,className:e})}})}}),_.B(_.g,{cond:function(){return!!z().heroImage&&!q()},
then:function(){return _.B(_.V0,{data:function(){return z().heroImage}},{contentPreviewImageViewModel:function(Hp){return _.B(_.t0,{data:Hp.data,
className:e,imageSizeConfig:d})}})}}),_.B("div",{class:"page-header-view-model-wiz__page-header-headline-info"},_.B(_.g,{cond:function(){return!!z().heroImage&&q()},
then:function(){return _.B("div",{class:"page-header-view-model-wiz__page-header-headline-image-hero-container"},_.B(_.V0,{data:function(){return z().heroImage}},{contentPreviewImageViewModel:function(Hp){return _.B(_.t0,{data:Hp.data,
className:e,imageSizeConfig:d})}}))}}),_.B(_.V0,{data:function(){return z().title}},{dynamicTextViewModel:function(Hp){return _.B(HD1,{data:Hp.data,
className:y})}}),_.B(_.V0,{data:function(){return z().metadata}},{contentMetadataViewModel:function(Hp){return _.B(_.ub,{data:Hp.data,
layout:function(){return F()?1:0},
className:Em,isOverlay:A,useMediumText:v})}}),_.B(_.g,{cond:function(){return z().description&&!F()},
then:function(){return _.B(_.V0,{data:function(){return z().description}},{descriptionPreviewViewModel:function(Hp){return _.B(w6,{data:Hp.data,
className:"page-header-view-model-wiz__page-header-description",isOverlay:A,maxLinesOverride:function(){return F()?void 0:1},
useMediumText:function(){return(E==null?void 0:E())||v()}})}})}}),_.B(_.g,{cond:function(){return z().attribution&&!h()},
then:function(){return _.B(_.V0,{data:function(){return z().attribution}},{attributionViewModel:function(Hp){return _.B(OgG,{data:Hp.data,
className:bG,useMediumText:v})}})}}),_.B(_.g,{cond:function(){return z().actions&&!h()},
then:function(){return _.B(_.V0,{data:function(){return z().actions}},{flexibleActionsViewModel:function(Hp){return _.B(_.Dw,{data:Hp.data,
layout:function(){return fDm(n())},
className:nG})}})}}))),_.B("div",{class:"page-header-view-model-wiz__page-header-headline-info"},_.B(_.g,{cond:function(){return z().description&&F()},
then:function(){return _.B(_.V0,{data:function(){return z().description}},{descriptionPreviewViewModel:function(Hp){return _.B(w6,{data:Hp.data,
className:"page-header-view-model-wiz__page-header-description",isOverlay:A,maxLinesOverride:function(){return F()?void 0:1},
useMediumText:function(){return(E==null?void 0:E())||v()}})}})}}),_.B(_.g,{cond:function(){return z().attribution&&h()},
then:function(){return _.B(_.V0,{data:function(){return z().attribution}},{attributionViewModel:function(Hp){return _.B(OgG,{data:Hp.data,
className:bG,useMediumText:v})}})}}),_.B(_.g,{cond:function(){return z().actions&&h()},
then:function(){return _.B(_.V0,{data:function(){return z().actions}},{flexibleActionsViewModel:function(Hp){return _.B(_.Dw,{data:Hp.data,
layout:function(){return fDm(n())},
className:nG})}})}})),_.B("div",{class:"page-header-view-model-wiz__page-header-headline-info"},_.B(_.V0,{data:function(){return z().bottomMetadataFlexibleContainer}},{flexibleContainer:function(Hp){return _.B(FRE,{data:Hp.data,
isOverlay:A})}})))}}))},"Fd");
_.haO.idomCompat=!0;_.Jf(_.ec(function(a){var z=_.C(_.CW(!1,void 0,"j5qbkc")),I=z.next().value,J=z.next().value;return _.B("yt-official-card-view-model",{class:_.B8("ytOfficialCardViewModelHost",a.className),style:_.sW({"background-color":function(){var r,P=K41((r=a.data())==null?void 0:r.backgroundColor);return P?_.RX(P):void 0}})},_.B(_.V0,{data:function(){return a.data().header}},{pageHeaderViewModel:function(r){return _.B(_.haO,{data:r.data,
noPadding:!0})}}),_.B(_.V0,{data:function(){return a.data().contents}},{horizontalShelfViewModel:function(r){return _.B(_.pF,{data:r.data,
ensureMarginTop:!0,horizontalShelfExperiments:{hideHeader:!0},thumbnailAspectRatio:0})}}),_.B(_.g,{cond:I,
then:function(){return _.B("div",{class:"ytOfficialCardViewModelExpandedContent"},_.B(_.V0,{data:function(){return a.data().expandedContents}},{horizontalShelfViewModel:function(r){return _.B(_.pF,{data:r.data,
sizing:"MINI"})}}),_.B("div",{class:"ytOfficialCardViewModelCollapseButton"},_.B(_.V0,{data:function(){return a.data().collapseButton}},{buttonViewModel:function(r){return _.B(_.At,{data:r.data,
onClick:function(){J(!I())}})}})))},
else:function(){return _.B("div",{class:"ytOfficialCardViewModelExpandButton"},_.B(_.V0,{data:function(){return a.data().expandButton}},{buttonViewModel:function(r){return _.B(_.At,{data:r.data,
onClick:function(){J(!I())}})}}))}}))},"Gd"),"yt-official-card-view-model",{props:{data:_.zl,
className:_.zl}});var bad=_.im({buttonViewModel:_.At});_.IG(hK$);var V51=_.ec(function(a){var z,I=(z=_.ab().resolve(_.eL(_.kN)))==null?void 0:z();return _.B("ytw-search-friction-view-model",{class:_.B8("ytwSearchFrictionViewModelHost",a.className)},_.B("div",{class:"ytwSearchFrictionViewModelHostImageAndMenuWrapper"},_.B("div",{class:"ytwSearchFrictionViewModelHostImageContainer"},_.B(_.g,{cond:function(){return I&&a.data().darkThemeImage?a.data().darkThemeImage:a.data().image},
then:function(J){return _.B(_.qp,{data:J,alt:"",className:"ytwSearchFrictionViewModelHostImage"})}})),_.B(_.V0,{data:function(){return a.data().overflowMenuButton}},{buttonViewModel:function(J){return _.B(_.At,{data:J.data,
className:"ytwSearchFrictionViewModelHostMenuButton"})}})),_.B(_.xs,{text:function(){return a.data().title},
className:"ytwSearchFrictionViewModelHostTitle"}),_.B(_.se,{each:function(){return a.data().bodyText||[]}},function(J){return _.B(_.xs,{text:J,
className:"ytwSearchFrictionViewModelHostBodyText"})}),_.B(_.V0,{data:function(){return a.data().actions}},{buttonViewModel:function(J){return _.B(_.At,{data:J.data,
className:"ytwSearchFrictionViewModelHostButton"})}}),_.B(_.xs,{text:function(){return a.data().disclaimer},
className:"ytwSearchFrictionViewModelHostDisclaimer"}),_.B(_.xs,{text:function(){return a.data().attribution},
className:"ytwSearchFrictionViewModelHostAttribution"}))},"Hd"),Qzj=_.K("web_enable_sink_search_friction_view_model_ks")?hK$:V51,SKw=_.K("web_enable_sink_search_friction_view_model_ks")?_.fS(hK$):V51;
V51.idomCompat=!0;_.K("web_enable_sink_search_friction_view_model_ks")?_.EW(Qzj,"ytw-search-friction-view-model",{propNames:["data"]}):_.Jf(SKw,"ytw-search-friction-view-model",{props:{data:_.zl,className:_.zl}});_.yA=_.ec(function(a){var z=_.Mm("markdown-div"),I,J=(I=_.ab().resolve(_.eL(_.kN)))==null?void 0:I();_.h2(function(){var r=z.value;var P=new ilo,N=new Map(P.JSC$9259_sanitizerTable.globalAttributePolicies);N.set("style",{policyAction:4});P.JSC$9259_sanitizerTable=new b3(P.JSC$9259_sanitizerTable.allowedElements,P.JSC$9259_sanitizerTable.elementPolicies,P.JSC$9259_sanitizerTable.allowedGlobalAttributes,N,P.JSC$9259_sanitizerTable.globallyAllowedAttributePrefixes);var u=["data-time"];if(u===void 0)N=
new Set(P.JSC$9259_sanitizerTable.globallyAllowedAttributePrefixes),N.add("data-"),P.JSC$9259_sanitizerTable=new b3(P.JSC$9259_sanitizerTable.allowedElements,P.JSC$9259_sanitizerTable.elementPolicies,P.JSC$9259_sanitizerTable.allowedGlobalAttributes,P.JSC$9259_sanitizerTable.globalAttributePolicies,N);else{N=new Set(P.JSC$9259_sanitizerTable.allowedGlobalAttributes);u=_.C(u);for(var E=u.next();!E.done;E=u.next()){E=E.value;if(E.indexOf("data-")!==0)throw Error("ma`"+E);N.add(E)}P.JSC$9259_sanitizerTable=
new b3(P.JSC$9259_sanitizerTable.allowedElements,P.JSC$9259_sanitizerTable.elementPolicies,N,P.JSC$9259_sanitizerTable.globalAttributePolicies,P.JSC$9259_sanitizerTable.globallyAllowedAttributePrefixes)}N=new Set(P.JSC$9259_sanitizerTable.allowedGlobalAttributes);N.add("class");P.JSC$9259_sanitizerTable=new b3(P.JSC$9259_sanitizerTable.allowedElements,P.JSC$9259_sanitizerTable.elementPolicies,N,P.JSC$9259_sanitizerTable.globalAttributePolicies,P.JSC$9259_sanitizerTable.globallyAllowedAttributePrefixes);
_.YP(r,_.ble(P.build(),Qr0(a.text())));Sod(z.value)},"nk5Hce");
I={};return _.B("div",null,_.B("markdown-div",{class:_.B8("ytwMarkdownDivHost",(I.ytwMarkdownDivDark=J,I.ytwMarkdownDivHostEnableDefaultStylingSmall=function(){var r;return((r=a.isSmallText)==null?void 0:r.call(a))||!1},I.ytwMarkdownDivHostWrapCodeBlocks=function(){var r;
return((r=a.wrapCodeBlocks)==null?void 0:r.call(a))||!1},I.ytwMarkdownDivHostEnableDefaultStyling=function(){var r;
return!((r=a.disableDefaultStyling)==null?0:r.call(a))},I)),
el:z}))},"Id");
_.yA.idomCompat=!0;var iDX=_.ec(function(a){var z=a.imageData;var I=_.Yi(a.isInList,!1),J=function(){return I()?{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 _.B("div",{class:"ytwGenAiRichTextViewModelImageContent"},_.B(_.g,{cond:function(){return z().image},
then:function(r){return _.B(_.qp,{data:r,alt:function(){return J().alt},
contentMode:function(){return J().contentMode},
targetWidth:function(){return J().targetWidth},
targetHeight:function(){return J().targetHeight},
className:function(){return J().className}})}}),_.B("div",{class:"ytwGenAiRichTextViewModelImageMetadata"},_.B("div",{class:_.B8("ytwGenAiRichTextViewModelImageTitle","ytwGenAiRichTextViewModelText")},_.B(_.xs,{text:function(){return z().title}})),_.B(_.se,{each:function(){var r;
return(r=z().description)!=null?r:[]}},function(r){return _.B("div",{class:"ytwGenAiRichTextViewModelImageDescription"},_.B(k1,{content:r}))})))},"Jd"),xDe=_.ec(function(a){var z=a.list;
var I=function(){var J;return(J=z().items)!=null?J:[]};
return _.B("div",{class:"ytwGenAiRichTextViewModelListContent"},_.B(_.g,{cond:function(){return z().title},
then:function(J){return _.B("div",{class:_.B8("ytwGenAiRichTextViewModelListTitle","ytwGenAiRichTextViewModelText")},_.B(_.xs,{text:J}))}}),_.B(_.g,{cond:function(){return z().style==="GEN_AI_RICH_TEXT_LIST_STYLE_BULLET"},
then:function(){return _.B("ul",{class:"ytwGenAiRichTextViewModelBulletedList"},_.B(_.se,{each:I},function(J){return _.B("li",{class:"ytwGenAiRichTextViewModelBulletedListItem"},_.B(k1,{content:J,isInList:!0}))}))}}),_.B(_.g,{cond:function(){return z().style==="GEN_AI_RICH_TEXT_LIST_STYLE_NUMBERED"},
then:function(){return _.B("ol",{class:"ytwGenAiRichTextViewModelNumberedList"},_.B(_.se,{each:I},function(J){return _.B("li",{class:"ytwGenAiRichTextViewModelNumberedListItem"},_.B(k1,{content:J,isInList:!0}))}))}}),_.B(_.g,{cond:function(){return z().style==="GEN_AI_RICH_TEXT_LIST_STYLE_IMAGE"},
then:function(){return _.B("div",{class:"ytwGenAiRichTextViewModelImageList"},_.B(_.se,{each:I},function(J){return _.B("div",{class:"ytwGenAiRichTextViewModelListItem"},_.B(k1,{content:J,isInList:!0}))}))}}))},"Kd"),vWj=_.ec(function(a){var z=a.table;
return _.B("table",{class:"ytwGenAiRichTextViewModelTableContent"},_.B("thead",null,_.B("tr",null,_.B(_.se,{each:function(){var I,J;return(J=(I=z().header)==null?void 0:I.cells)!=null?J:[]}},function(I){return _.B("th",{class:"ytwGenAiRichTextViewModelTableHeaderCell"},_.B(_.se,{each:function(){return I.contents}},function(J){return _.B(k1,{content:J})}))}))),_.B("tbody",null,_.B(_.se,{each:function(){var I;
return(I=z().rows)!=null?I:[]}},function(I){return _.B("tr",null,_.B(_.se,{each:function(){return I.cells}},function(J){return _.B("th",{class:"ytwGenAiRichTextViewModelTableCell"},_.B(_.se,{each:function(){return J.contents}},function(r){return _.B(k1,{content:r})}))}))})))},"Ld"),k1=_.ec(function(a){var z=a.content;
var I=_.Yi(a.isInList,!1),J=function(){var r,P;return(P=(r=z().contentBlock)==null?void 0:r.contents)!=null?P:[]};
return _.B("div",{class:"ytwGenAiRichTextViewModelRichContent"},_.B(_.g,{cond:function(){return z().text},
then:function(r){return _.B(_.xs,{className:"ytwGenAiRichTextViewModelText",text:r})}}),_.B(_.g,{cond:function(){return z().image},
then:function(r){return _.B(iDX,{imageData:r,isInList:I})}}),_.B(_.g,{cond:function(){return z().list},
then:function(r){return _.B(xDe,{list:r})}}),_.B(_.g,{cond:function(){return z().contentBlock},
then:function(){return _.B("div",{class:"ytwGenAiRichTextViewModelContentBlock"},_.B(_.se,{each:J},function(r){return _.B(k1,{content:r,isInList:!1})}))}}),_.B(_.g,{cond:function(){return z().table},
then:function(r){return _.B(vWj,{table:r})}}))},"Md"),Gue=_.ec(function(a){var z={};
z=_.$c("ytwGenAiRichTextViewModelHost",(z.ytwGenAiRichTextViewModelGreenLinks=["green_track","underline"].includes(_.rM("search_overview_link_style")),z));return _.B("gen-ai-rich-text-view-model",{class:z},_.B(k1,{content:function(){return a.data().content}}))},"Nd");_.$Dj=_.ec(function(a){var z=a.data;var I=function(){var v;return((v=z().loadingUi)!=null?v:"OVERVIEW_ANSWER_LOADING_UI_DEFAULT").replace("OVERVIEW_ANSWER_LOADING_UI_","")},J=function(){return z().isLoading&&(I()==="UNSPECIFIED"||I()==="GHOST_CARD")},r=function(){return!z().isLoading},P=function(){return!!z().content&&!z().contents},N=function(){return!!z().contents},u=function(){return!!z().nextQueryButtons},E=function(){return z().isLoading&&I()==="INVISIBLE"},O=function(){var v,d;
return(d=(v=z().headerIcon)==null?void 0:v.iconType)!=null?d:""},f=function(){var v;
return(v=z().content)!=null?v:""},A=function(){return!!z().sourcesSection},n,F=!((n=_.ab().resolve(_.eL(_.kN)))==null||!n()),h=_.Bg(function(){var v=[],d=z().contents;
if(d)for(var W=0;W<d.length;W++){var l=_.H(d&&d[W],l5I);l&&v.push(l)}return v},void 0,"ycU97e");
_.QO(function(){z().isLoading||_.Xz("so_re",void 0,"search_overview_answer")});
return _.B("ytd-overview-answer-view-model",{class:function(){var v={};v=(v.ytdOverviewAnswerViewModelHost=!0,v.ytdOverviewAnswerViewModelDarkBackground=F&&!E(),v.ytdOverviewAnswerViewModelLightBackground=!F&&!E(),v);return _.$c(v)}},_.B(_.g,{cond:function(){return!E()},
then:function(){return _.B(_.eJ,null,_.B("h2",null,_.B("div",{class:"ytdOverviewAnswerViewModelHeader"},_.B(_.g,{cond:O,then:function(v){return _.B("div",{class:"ytdOverviewAnswerViewModelHeaderIcon"},_.B(_.nS,{icon:v}))}}),_.B("div",{class:"ytdOverviewAnswerViewModelHeaderText"},_.B("div",{class:"ytdOverviewAnswerViewModelHeaderTitle"},function(){return z().headerText}),_.B("div",{class:"ytdOverviewAnswerViewModelHeaderSubtext"},_.B(_.xs,{text:function(){return z().headerSubtext}}))))),_.B(_.g,{cond:J,
then:function(){return _.B(ia$,null)}}),_.B(_.g,{cond:r,
then:function(){return _.B(_.eJ,null,_.B(_.g,{cond:P,then:function(){return _.B("div",{class:"ytdOverviewAnswerViewModelText"},_.B(_.yA,{text:f,isSmallText:!0}))}}),_.B(_.g,{cond:N,
then:function(){return _.B("div",{class:"ytdOverviewAnswerViewModelRichText"},_.B(_.se,{each:h},function(v){return _.B(Gue,{data:v})}))}}),_.B(_.g,{cond:u,
then:function(){return _.B("div",{class:"ytdOverviewAnswerViewModelNextQueryButtons"},_.B(_.V0,{data:function(){return z().nextQueryButtons}},{buttonViewModel:function(v){return _.B(_.At,{data:v.data,
className:"ytdOverviewAnswerViewModelNextQueryButton"})},
horizontalShelfViewModel:_.pF}))}}),_.B("div",{class:"ytdOverviewAnswerViewModelSecondaryHeader"},_.B("div",{class:"ytdOverviewAnswerViewModelFeedbackButtons"},_.B(_.g,{cond:function(){return!!_.H(z().likeButtonViewModel,_.oy)&&!!_.H(z().dislikeButtonViewModel,_.WU)},
then:function(){return _.B("div",{class:"ytdOverviewAnswerViewModelBottomButtonsContainer"},_.B(_.Ld,{data:function(){return _.H(z().likeButtonViewModel,_.oy)},
disableIconAnimation:!0}),_.B(_.Rp,{data:function(){return _.H(z().dislikeButtonViewModel,_.WU)}}))}})),_.B(_.g,{cond:function(){var v;
return(v=z().sourcesSection)==null?void 0:v.headerText},
then:function(v){return _.B("div",{class:"ytdOverviewAnswerViewModelSourcesHeaderText"},_.B(_.xs,{text:v}))}})),_.B(_.g,{cond:A,
then:function(){return _.B("div",{class:"ytdOverviewAnswerViewModelSources"},_.B(_.V0,{data:function(){var v;return(v=z().sourcesSection)==null?void 0:v.sourcesShelf}},{buttonViewModel:_.At,
horizontalShelfViewModel:function(v){return _.B(_.pF,{data:v.data,includeMargin:!0,hasPeek:!0})}}))}}),_.B(_.g,{cond:function(){return z().disclaimerText},
then:function(){return _.B("div",{class:"ytdOverviewAnswerViewModelDisclaimer"},_.B(_.xs,{text:function(){return z().disclaimerText},
linkInheritColor:!0}))}}))}}))}}))},"Od");var XRX=_.ec(function(a){var z=a.data;var I=a.active;var J=_.Mm("transcript-segment-view-model");_.h2(function(){var r,P,N,u=((r=_.ab().resolve(_.eL(_.kN)))==null?0:r())?(P=z())==null?void 0:P.darkThemeColorPalette:(N=z())==null?void 0:N.lightThemeColorPalette;u&&(u.additiveBackground&&J.value.style.setProperty("--timestamp-active-background-color",_.RX(u.additiveBackground)),u.textSecondary&&J.value.style.setProperty("--timestamp-active-color",_.Da(u.textSecondary)))},"KHcbwb");
a={};return _.B("transcript-segment-view-model",{class:_.B8("ytwTranscriptSegmentViewModelHost",(a.ytwTranscriptSegmentViewModelHostActive=I,a.ytwTranscriptSegmentViewModelHostModern=_.K("enable_timeline_view_modern_transcript")||_.K("enable_timeline_view_modern_transcript_fe"),a)),el:J},_.B(_.g,{cond:function(){var r;return(r=z())==null?void 0:r.timestamp},
then:function(r){var P={};return _.B("div",{class:_.B8("ytwTranscriptSegmentViewModelTimestamp",(P.ytwTranscriptSegmentViewModelTimestampActive=I,P))},r)}}),_.B(_.xs,{text:function(){var r,P,N;
return(N=(r=z())==null?void 0:r.attributedText)!=null?N:{content:(P=z())==null?void 0:P.simpleText}},
linkInheritColor:!0,noPreWrap:!0}))},"Pd");var TkO=_.ec(function(a){var z=a.data;return _.B("div",{class:"yt-video-attributes-section-view-model__header"},_.B("h3",{class:"yt-video-attributes-section-view-model__title"},function(){return z().headerTitle}),_.B(_.g,{cond:function(){return z().headerSubtitle},
then:function(){return _.B("span",{class:"yt-video-attributes-section-view-model__subtitle"},function(){return z().headerSubtitle})}}))},"Qd"),dDJ=_.ec(function(a){function z(v){return Math.max(Math.min(v,0),O()-u())}
var I=a.data;var J;a=_.Mm("div",function(v){var d=function(){f(v.clientWidth)};
d();window.ResizeObserver&&(J=new ResizeObserver(d),J.observe(v))});
var r=_.Mm("div",function(v){E(v.scrollWidth)}),P=_.C(_.CW(0,void 0,"Y8rd0c")),N=P.next().value;
P=P.next().value;var u=N,E=P;P=_.C(_.CW(0,void 0,"kDvR6b"));N=P.next().value;P=P.next().value;var O=N,f=P;N=_.C(_.CW(0,void 0,"Kit3De"));var A=N.next().value,n=N.next().value;_.V3(function(){var v;(v=J)==null||v.disconnect()});
var F=function(){n(z(A()+O()))},h=function(){n(z(A()-O()))};
return _.B("yt-video-attributes-section-view-model",null,_.B("div",{class:"yt-video-attributes-section-view-model"},_.B(_.g,{cond:function(){return I().headerTitle},
then:function(){return _.B(TkO,{data:I})}}),_.B("div",{class:_.B8("yt-video-attributes-section-view-model__video-attributes","yt-video-attributes-section-view-model__scroll-container"),
el:a},_.B("div",{class:"yt-video-attributes-section-view-model__video-attributes-container",style:_.sW({transform:function(){var v=A();_.Xw("HTML_DIR")==="rtl"&&(v*=-1);return"translateX("+v+"px)"}}),
el:r},_.B(_.V0,{data:function(){return I().videoAttributeViewModels}},{videoAttributeViewModel:XNo}))),_.B(_.V0,{data:function(){return I().footerButton}},{buttonViewModel:function(v){return _.B(_.At,{data:v.data,
className:"yt-video-attributes-section-view-model__footer-button"})}}),_.B(_.g,{cond:function(){return A()<0&&I().previousButton},
then:function(){return _.B("div",{class:"yt-video-attributes-section-view-model__left-arrow"},_.B(_.V0,{data:function(){return I().previousButton}},{buttonViewModel:function(v){return _.B(_.At,{data:v.data,
onClick:F})}}))}}),_.B(_.g,{cond:function(){return A()>O()-u()&&I().nextButton},
then:function(){return _.B("div",{class:"yt-video-attributes-section-view-model__right-arrow"},_.B(_.V0,{data:function(){return I().nextButton}},{buttonViewModel:function(v){return _.B(_.At,{data:v.data,
onClick:h})}}))}})))},"Rd");
dDJ.idomCompat=!0;var WRw=_.ec(function(a){var z=a.data;var I=a.active;var J={},r={};return _.B("timeline-item-view-model",{class:_.B8("ytwTimelineItemViewModelHost",(J.ytwTimelineItemViewModelHostChapterChild=a.chapterChild,J.ytwTimelineItemViewModelModern=_.K("enable_timeline_view_modern_transcript")||_.K("enable_timeline_view_modern_transcript_fe"),J))},_.B("div",{class:"ytwTimelineItemViewModelTimestampSection"},_.B("div",{class:_.B8("ytwTimelineItemViewModelTimestamp",(r.ytwTimelineItemViewModelTimestampActive=
I,r))},function(){return z().timestamp})),_.B("div",{class:"ytwTimelineItemViewModelContentItems"},_.B(_.V0,{data:function(){return z().contentItems}},{transcriptSegmentViewModel:function(P){return _.B(XRX,{data:P.data,
active:I})},
videoAttributesSectionViewModel:dDJ})))},"Sd");var oWG=_.ec(function(a){var z=a.data;a={};return _.B("timeline-chapter-view-model",{class:_.B8("ytwTimelineChapterViewModelHost")},_.B("div",{class:_.B8("ytwTimelineChapterViewModelTitle",(a.ytwTimelineChapterViewModelModern=_.K("enable_timeline_view_modern_transcript")||_.K("enable_timeline_view_modern_transcript_fe"),a))},function(){return z().title}),_.B(_.V0,{data:function(){return z().contents}},{timelineItemViewModel:function(I){return _.B(WRw,{data:I.data,
chapterChild:!0})},
videoAttributesSectionViewModel:function(I){return _.B(dDJ,{data:I.data})}}))},"Td");var UDG=_.ec(function(a){var z=a.data;var I=_.Mm("macro-markers-panel-item-view-model"),J=_.KU(_.vb1,function(){var P;return(P=z().markersEngagementPanelSyncEntityKey)!=null?P:""}),r=function(){var P;
return((P=J())==null?void 0:P.activeItemIndex)===z().index};
a=_.g4(function(P){var N,u,E,O,f;return _.t(function(A){if(A.nextAddress==1)return P.stopPropagation(),_.di(_.TI(P),I.value,["A".toString(),"BUTTON".toString()])?A.return():(N=_.o0(z().onTap))?A.yield(_.EN(),2):A.return();u=A.yieldResult;O=(E=_.H(N,_.MZ))==null?void 0:E.startTimeSeconds;O===void 0||(f=u)!=null&&f.seekTo(O,!0);_.nu(A)})});
return _.B("macro-markers-panel-item-view-model",{class:_.B8("ytwMacroMarkersPanelItemViewModelHost",{"is-active":r}),el:I,"on:click":a,tabindex:0},_.B(_.V0,{data:function(){var P;return(P=z())==null?void 0:P.item}},{timelineChapterViewModel:function(P){return _.B(oWG,{data:P.data,
active:r})},
timelineItemViewModel:function(P){return _.B(WRw,{data:P.data,active:r})},
videoAttributeViewModel:XNo}))},"Ud");
UDG.idomCompat=!0;_.Jf(UDG,"macro-markers-panel-item-view-model",{props:{data:_.zl}});_.Jf(dDJ,"yt-video-attributes-section-view-model",{props:{data:_.zl}});var DDe=_.ec(function(a){var z=function(){var I,J,r;return(r=(I=a.data().leadingLogoAccessibility)==null?void 0:(J=I.accessibilityData)==null?void 0:J.label)!=null?r:""};
return _.B("ytw-fantasy-section-header-view-model",{class:"ytwFantasySectionHeaderViewModelHost"},_.B(_.g,{cond:function(){return a.data().leadingLogo},
then:function(I){return _.B(_.qp,{className:"ytwFantasySectionHeaderViewModelLogo",data:I,alt:z})}}),_.B("div",{class:"ytwFantasySectionHeaderViewModelMetadata"},_.B(_.xs,{className:"ytwFantasySectionHeaderViewModelTitle",
text:function(){return a.data().title}}),_.B(_.xs,{className:"ytwFantasySectionHeaderViewModelSubtitle",
text:function(){return a.data().subtitle}})),_.B(_.V0,{data:function(){return a.data().trailingButton}},{buttonViewModel:function(I){return _.B(_.At,{data:I.data,
className:"ytwFantasySectionHeaderViewModelTrailingButton"})}}))},"Vd");var RaX=_.ec(function(a){var z={};z=_.B8("ytwFantasyTeamViewModelHost",(z.ytwFantasyTeamViewModelCompact=function(){var r;return!((r=a.compact)==null||!r.call(a))},z.ytwFantasyTeamViewModelUser=function(){return a.data().teamOwnerType==="FANTASY_TEAM_OWNER_TYPE_USER_TEAM"},z.ytwFantasyTeamViewModelOpponent=function(){return a.data().teamOwnerType==="FANTASY_TEAM_OWNER_TYPE_OPPONENT_USER_TEAM"},z));
var I=function(){var r,P,N;return(N=(r=a.data().teamLogoAccessibility)==null?void 0:(P=r.accessibilityData)==null?void 0:P.label)!=null?N:""},J=_.KU($a$,function(){return a.data().teamEntityKey});
return _.B("ytw-fantasy-team-view-model",{class:z},_.B(_.g,{cond:function(){return a.data().teamLogo},
then:function(r){return _.B(_.qp,{className:"ytwFantasyTeamViewModelLogo",data:r,alt:I})}}),_.B("div",{class:"ytwFantasyTeamViewModelMetadata"},_.B("div",{class:"ytwFantasyTeamViewModelHeader"},_.B(_.xs,{className:"ytwFantasyTeamViewModelScore",
text:function(){var r;return(r=J())==null?void 0:r.score}}),_.B(_.nS,{icon:function(){var r;
return(r=J())==null?void 0:r.projectedScoreTrendingIcon},
className:"ytwFantasyTeamViewModelProjectedScoreIcon",size:12,active:!0}),_.B(_.xs,{className:"ytwFantasyTeamViewModelProjectedScore",text:function(){var r;return(r=J())==null?void 0:r.projectedScore}})),_.B(_.xs,{className:"ytwFantasyTeamViewModelPrimaryText",
text:function(){return a.data().primaryText}}),_.B(_.xs,{className:"ytwFantasyTeamViewModelSecondaryText",
text:function(){return a.data().secondaryText}}),_.B(_.xs,{className:"ytwFantasyTeamViewModelTertiaryText",
text:function(){return a.data().tertiaryText}})),_.B(_.xs,{className:"ytwFantasyTeamViewModelCompactScore",
text:function(){var r;return(r=J())==null?void 0:r.score}}))},"Wd");_.Jf(_.ec(function(a){return _.B("fantasy-league-summary-view-model",{class:"ytwFantasyLeagueSummaryViewModelHost"},_.B("div",{class:"ytwFantasyLeagueSummaryViewModelHeader"},_.B(_.V0,{data:function(){return a.data().summaryHeader}},{fantasySectionHeaderViewModel:DDe})),_.B(_.V0,{data:function(){return a.data().userTeam}},{fantasyTeamViewModel:RaX}),_.B(_.V0,{data:function(){return a.data().opponentTeam}},{fantasyTeamViewModel:RaX}))},"Xd"),"fantasy-league-summary-view-model",{props:{data:_.zl}});var LRG=_.ec(function(a){var z=_.q3(a,{shape:{},useCustomTabRenderable:!1}),I=z.shape;z=z.useCustomTabRenderable;var J=a.customTabRenderable,r=function(){return I().disabled},P=function(){return I().selected},N=function(){return I().title},u=function(){return I().icon},E=_.Mm("yt-tab-shape");
a=_.g4(function(A){var n;if(!r()&&((n=I().aTagConfig)==null?0:n.onclick))I().aTagConfig.onclick(A);return!1});
var O=_.g4(function(A){if(A.key==="Enter"||A.key==="ArrowUp"||A.key==="ArrowDown")A.preventDefault(),E.value.click();return!1}),f={};
return _.B("yt-tab-shape",{class:_.B8("yt-tab-shape-wiz",function(){return I().className},(f["yt-tab-shape-wiz__tab--last-tab"]=function(){return I().isLastTab},f["yt-tab-shape-wiz--host-disabled"]=r,f["yt-tab-shape-wiz--host-clickable"]=!J,f)),
role:J?void 0:"tab","aria-selected":P!=null?P:!1,"aria-disabled":r,tabindex:J?void 0:0,"on:click":a,"on:keydown":O,el:E,"tab-identifier":function(){return I().identifier},
"tab-title":N},_.B(_.g,{cond:z,then:function(){return J()},
else:function(){var A={},n={};return _.B(_.eJ,null,_.B("div",{class:_.B8("yt-tab-shape-wiz__tab",(A["yt-tab-shape-wiz__tab--tab-selected"]=P,A))},_.B(_.g,{cond:u,then:function(F){return _.B(_.nS,{className:"yt-tab-shape-wiz__tab-icon",icon:function(){return F().iconType}})}}),N),_.B("div",{class:_.B8("yt-tab-shape-wiz__tab-bar",(n["yt-tab-shape-wiz__tab-bar--tab-bar-selected"]=P,n))}))}}))},"Yd");
LRG.idomCompat={callbacks:{customTabRenderable:!0}};_.pRl=_.ec(function(a){var z=a.shape;a=_.C(_.CW(48,void 0,"r9IBlb"));var I=a.next().value,J=a.next().value;a=_.C(_.CW(0,void 0,"Bd7rmd"));var r=a.next().value,P=a.next().value,N=function(){return z().tabs},u=_.Mm("yt-tab-group-shape"),E=function(){var O,f;
return(f=(O=N())==null?void 0:O.findIndex(function(A){return A.selected}))!=null?f:-1};
_.QO(function(){var O=u.value.querySelectorAll("yt-tab-shape"),f=E()>-1?O[E()]:void 0;_.GW.addJob(function(){J((f==null?void 0:f.getBoundingClientRect().width)||0)},8,0)});
_.h2(function(){var O=E(),f=_.GW.addJob(function(){var A,n=((A=u.value)==null?void 0:A.querySelectorAll("yt-tab-shape"))||[],F;J(((F=O>-1?n[O]:void 0)==null?void 0:F.getBoundingClientRect().width)||0);for(F=A=0;F<O;F++)A+=n[F].offsetWidth+24;_.Xw("HTML_DIR")==="rtl"&&(A=-A);P(A)},8,0);
_.V3(function(){_.GW.cancelJob(f)})},"EHixkc");
a={};return _.B("yt-tab-group-shape",{class:_.B8("yt-tab-group-shape-wiz",(a["yt-tab-group-shape-wiz--overflow-hidden"]=function(){return z().isOverflowHidden},a)),
el:u},_.B(_.g,{cond:N,then:function(O){return _.B(_.eJ,null,_.B("div",{class:"yt-tab-group-shape-wiz__tabs",role:"tablist"},_.B(_.se,{each:O},function(f,A){return _.B(LRG,{shape:function(){return Object.assign({},f,{isLastTab:A()===O().length-1})},
customTabRenderable:f.customTabRenderable,useCustomTabRenderable:!!f.customTabRenderable})})),_.B(l6w,{width:I,
sliderOffset:r}))}}))},"Zd");
_.pRl.idomCompat=!0;var l6w=_.ec(function(a){var z=_.Yi(a.sliderOffset,0),I=a.width;return _.B("div",{class:"yt-tab-group-shape-wiz__slider",style:_.sW({width:function(){return I()+"px"},
transform:function(){return"translateX("+z()+"px)"}})})},"$d");var wRv=_.ec(function(a){var z=function(){var P,N,u;return(u=(P=a.data().playerLogoAccessibility)==null?void 0:(N=P.accessibilityData)==null?void 0:N.label)!=null?u:""},I=_.KU(Xi1,function(){return a.data().playerEntityKey}),J={};
J=_.B8("ytwFantasyPlayerViewModelHost",(J.ytwFantasyPlayerViewModelPlaying=function(){var P;return!((P=I())==null||!P.isPlayerPlaying)},J.ytwFantasyPlayerViewModelOnField=function(){var P;
return((P=I())==null?void 0:P.playerInGameStatus)==="FANTASY_PLAYER_IN_GAME_STATUS_ON_FIELD"},J.ytwFantasyPlayerViewModelRedZone=function(){var P;
return((P=I())==null?void 0:P.playerInGameStatus)==="FANTASY_PLAYER_IN_GAME_STATUS_RED_ZONE"},J));
var r=function(){var P,N,u,E=((P=_.ab().resolve(_.eL(_.kN)))==null?0:P())?(N=a.data().playerLogoBackgroundColor)==null?void 0:N.darkTheme:(u=a.data().playerLogoBackgroundColor)==null?void 0:u.lightTheme;return E===void 0?"":_.RX(E)};
return _.B("ytw-fantasy-player-view-model",{class:J},_.B(_.g,{cond:function(){return a.data().playerLogo},
then:function(P){return _.B("div",{class:"ytwFantasyPlayerViewModelLogo"},_.B("div",{class:"ytwFantasyPlayerViewModelLogoRing"},_.B(_.qp,{className:"ytwFantasyPlayerViewModelLogoImage",style$:_.sW({"background-color":r}),data:P,alt:z})),_.B("div",{class:"ytwFantasyPlayerViewModelInGameStatus"},_.B(_.nS,{icon:"FOOTBALL_FILLED",className:"ytwFantasyPlayerViewModelInGameStatusIcon"})))}}),_.B("div",{class:"ytwFantasyPlayerViewModelMetadata"},_.B("div",{class:"ytwFantasyPlayerViewModelHeader"},_.B(_.xs,
{className:"ytwFantasyPlayerViewModelName",
text:function(){var P;return(P=a.data())==null?void 0:P.playerNameText}}),_.B(_.xs,{className:"ytwFantasyPlayerViewModelDescription",
text:function(){var P;return(P=a.data())==null?void 0:P.playerDescriptionText}})),_.B("div",{class:"ytwFantasyPlayerViewModelSecondaryText"},_.B(_.xs,{className:"ytwFantasyPlayerViewModelSecondaryItem",
text:function(){var P;return(P=I())==null?void 0:P.gamePeriodText}}),_.B(_.xs,{className:"ytwFantasyPlayerViewModelSecondaryItem",
text:function(){var P;return(P=a.data())==null?void 0:P.opponentTeamText}}),_.B(_.xs,{className:"ytwFantasyPlayerViewModelSecondaryItem",
text:function(){var P;return(P=I())==null?void 0:P.gameStatusText}}),_.B(_.xs,{className:_.B8("ytwFantasyPlayerViewModelSecondaryItem","ytwFantasyPlayerViewModelStatus"),
text:function(){var P;return(P=I())==null?void 0:P.playerStatusText}})),_.B("div",{class:"ytwFantasyPlayerViewModelSecondaryText"},_.B(_.xs,{text:function(){var P;
return(P=I())==null?void 0:P.playerStatsText}}))),_.B(_.xs,{className:"ytwFantasyPlayerViewModelScore",
text:function(){var P;return(P=I())==null?void 0:P.fantasyScore}}))},"ae");var mD1=_.ec(function(a){return _.B("ytw-fantasy-roster-view-model",{class:"ytwFantasyRosterViewModelHost"},_.B(_.g,{cond:function(){return a.data().players},
then:function(z){return _.B(_.V0,{data:z},{fantasyPlayerViewModel:wRv})}}))},"be");var y8O=_.ec(function(a){var z=_.C(_.Af(function(){var r;return(r=a.data().selectedTabIdentifierKey)!=null?r:""})),I=z.next().value,J=z.next().value;
_.hD(function(){var r;(r=a.setSelectedTabSignal)==null||r.call(a,I)});
return _.B("yt-tabbed-view-model",{class:"ytTabbedViewModelHost"},_.B("div",{class:"ytTabbedViewModelTabGroup"},_.B(_.pRl,{shape:function(){var r=a.data(),P=[],N={tabs:P};if(!r.tabs)return N;r=_.C(r.tabs);for(var u=r.next(),E={};!u.done;E={tabViewModel:void 0},u=r.next())if(E.tabViewModel=_.H(u.value,jTX),E.tabViewModel){var O=u=void 0;P.push({aTagConfig:{onclick:function(f){return function(){var A;J((A=f.tabViewModel.tabIdentifier)!=null?A:"")}}(E)},
identifier:E.tabViewModel.tabIdentifier,selected:I()===E.tabViewModel.tabIdentifier,title:(O=(u=E.tabViewModel.title)==null?void 0:u.content)!=null?O:""})}return N}})),_.B(_.V0,{data:function(){var r,P=_.C((r=a.data().tabs)!=null?r:[]);
for(r=P.next();!r.done;r=P.next())if((r=_.H(r.value,jTX))&&r.tabIdentifier===I())return r.content}},{fantasyRosterViewModel:mD1}))},"ce");_.Jf(_.ec(function(a){var z=_.C(x2m()),I=z.next().value,J=z.next().value;return _.B("ytw-fantasy-matchup-view-model",{class:"ytwFantasyMatchupViewModelHost"},_.B(_.xs,{className:"ytwFantasyMatchupViewModelTitle",text:function(){return a.data().title}}),_.B(_.g,{cond:function(){return a.data().tabbedViewModel},
then:function(r){return _.B(_.V0,{data:r},{tabbedViewModel:function(P){return _.B(y8O,{data:P.data,setSelectedTabSignal:J})}})}}),_.B(_.g,{cond:function(){var r,P=(r=_.H(a.data().tabbedViewModel,zRG))==null?void 0:r.tabs;
r=_.H(P==null?void 0:P[0],jTX);P=_.H(P==null?void 0:P[1],jTX);var N=r==null?void 0:r.tabIdentifier;if(I()===N){var u,E;if(!((u=_.H(r==null?void 0:r.content,mk1))==null?0:(E=u.players)==null?0:E.length))return a.data().noUserTeamPlayersText}else{var O,f;if(!((O=_.H(P==null?void 0:P.content,mk1))==null?0:(f=O.players)==null?0:f.length))return a.data().noOpponentTeamPlayersText}},
then:function(r){return _.B(_.xs,{className:"ytwFantasyMatchupViewModelNoPlayersMessage",text:r})}}))},"de"),"ytw-fantasy-matchup-view-model",{props:{data:_.zl}});_.Jf(_.ec(function(a){return _.B("ytw-fantasy-weekly-matchup-summary-view-model",{class:"ytwFantasyWeeklyMatchupSummaryViewModelHost"},_.B(_.xs,{className:"ytwFantasyWeeklyMatchupSummaryViewModelTitle",text:function(){return a.data().title}}),_.B(_.g,{cond:function(){return a.data().matchupTeamPairs},
then:function(z){return _.B(_.se,{each:z,keyBy:"INDEX"},function(I){return _.B("div",{class:"ytwFantasyWeeklyMatchupSummaryViewModelPair"},_.B(_.V0,{data:function(){return[I().firstTeam,I().secondTeam]}},{fantasyTeamViewModel:function(J){return _.B(RaX,{data:J.data,
compact:!0})}}))})}}))},"ee"),"ytw-fantasy-weekly-matchup-summary-view-model",{props:{data:_.zl}});_.Jf(_.ec(function(a){var z=function(){var r,P,N;return(N=(r=a.data().userLogoAccessibility)==null?void 0:(P=r.accessibilityData)==null?void 0:P.label)!=null?N:""},I=function(){var r,P,N;
return(N=(r=a.data().opponentLogoAccessibility)==null?void 0:(P=r.accessibilityData)==null?void 0:P.label)!=null?N:""},J=_.KU(G1d,function(){return a.data().entityKey});
return _.B("fantasy-win-probability-view-model",{class:"ytwFantasyWinProbabilityViewModelHost"},_.B("div",{class:"ytwFantasyWinProbabilityViewModelTop"},_.B(_.g,{cond:function(){return a.data().userLogo},
then:function(r){return _.B(_.qp,{className:"ytwFantasyWinProbabilityViewModelLogo",data:r,alt:z})}}),_.B("h3",{class:"ytwFantasyWinProbabilityViewModelTitle"},_.B(_.xs,{text:function(){return a.data().title}})),_.B(_.g,{cond:function(){return a.data().opponentLogo},
then:function(r){return _.B(_.qp,{className:"ytwFantasyWinProbabilityViewModelLogo",data:r,alt:I})}})),_.B("div",{class:"ytwFantasyWinProbabilityViewModelBottom"},_.B("div",{class:"ytwFantasyWinProbabilityViewModelPercentage"},_.B(_.xs,{text:function(){var r;
return(r=J())==null?void 0:r.userWinNumberLabel}})),_.B("div",{class:"ytwFantasyWinProbabilityViewModelProbabilityBars"},_.B("div",{class:_.B8("ytwFantasyWinProbabilityViewModelProbabilityBar","ytwFantasyWinProbabilityViewModelProbabilityUserBar"),
style:_.sW({flex:function(){var r,P;return(P=(r=J())==null?void 0:r.userWinNumber)!=null?P:50}})}),_.B("div",{class:_.B8("ytwFantasyWinProbabilityViewModelProbabilityBar","ytwFantasyWinProbabilityViewModelProbabilityOpponentBar"),
style:_.sW({flex:function(){var r,P;return(P=(r=J())==null?void 0:r.opponentWinNumber)!=null?P:50}})})),_.B("div",{class:"ytwFantasyWinProbabilityViewModelPercentage"},_.B(_.xs,{text:function(){var r;
return(r=J())==null?void 0:r.opponentWinNumberLabel}}))))},"fe"),"fantasy-win-probability-view-model",{props:{data:_.zl}});var kuw={sources:[{clientResource:{imageName:"LOCK_FILLED"}}]},M5E=_.ec(function(a){return _.B(_.V0,{data:a.button},{buttonViewModel:function(z){return _.B(_.At,{data:z.data,className:"ytdBackstageLockedPostViewModelBottomButton"})}})},"ge"),c8X=_.ec(function(a){return _.B("ytd-backstage-locked-post-view-model",{class:_.B8("ytdBackstageLockedPostViewModelHost",a.className)},_.B("div",{class:"ytdBackstageLockedPostViewModelHeader"},_.B("div",{class:"ytdBackstageLockedPostViewModelAuthorAvatar"},_.B(_.V0,
{data:function(){return a.data().authorAvatar}},{decoratedAvatarViewModel:_.Uj})),_.B("div",{class:"ytdBackstageLockedPostViewModelHeaderDetails"},_.B("div",{class:"ytdBackstageLockedPostViewModelAuthorText"},_.B(_.xs,{text:function(){return a.data().authorText}})),_.B("div",{class:"ytdBackstageLockedPostViewModelPublishedTimeText"},_.B(_.xs,{text:function(){return a.data().publishedTimeText}}),_.B(_.V0,{data:function(){return a.data().sponsorsOnlyBadge}},{sponsorsOnlyBadgeRenderer:function(z){return _.B(Byo,
{data:z.data,
className:"ytdBackstageLockedPostViewModelMembersOnlyBadge"})}})))),_.B("div",{class:"ytdBackstageLockedPostViewModelPostText"},_.B(_.xs,{text:function(){return a.data().contentText}})),_.B(_.Fw,null,_.B(_.n3,{when:function(){return a.data().lockedDisplayType==="BACKSTAGE_LOCKED_POST_LOCKED_DISPLAY_TYPE_TEXT_ONLY"}},function(){return _.B("div",{class:"ytdBackstageLockedPostViewModelLockedTextDisplay"},_.B(_.qp,{data:kuw,
alt:"",className:"ytdBackstageLockedPostViewModelLockedTextDisplayIcon"}),_.B(_.xs,{text:function(){return a.data().lockedText}}))}),_.B(_.n3,{when:function(){return a.data().lockedDisplayType==="BACKSTAGE_LOCKED_POST_LOCKED_DISPLAY_TYPE_GREY_BOX"}},function(){return _.B("div",{class:"ytdBackstageLockedPostViewModelLockedGreyBox"},_.B("div",{class:"ytdBackstageLockedPostViewModelLockedGreyBoxIcon"},_.B(_.qp,{data:kuw,
alt:""})),_.B(_.xs,{text:function(){return a.data().lockedText}}))})),_.B("div",{class:"ytdBackstageLockedPostViewModelButtons"},_.B(M5E,{button:function(){return a.data().likeButton}}),_.B("span",{class:"ytdBackstageLockedPostViewModelButtonCounts",
"aria-label":function(){return a.data().voteCountA11y}},_.B(_.xs,{text:function(){return a.data().voteCount}})),_.B(M5E,{button:function(){return a.data().dislikeButton}}),_.B(M5E,{button:function(){return a.data().commentButton}}),_.B("span",{class:"ytdBackstageLockedPostViewModelButtonCounts",
"aria-label":function(){return a.data().commentCountA11y}},_.B(_.xs,{text:function(){return a.data().commentCount}}))))},"he");
c8X.idomCompat=!0;_.Jf(c8X,"ytd-backstage-locked-post-view-model",{props:{data:_.zl,className:_.zl}});_.$q("sharingItemSection","itemSectionRenderer","ytd-item-section-renderer");
var M4=function(){var a=_.G.apply(this,arguments)||this;a.darkerPanels=_.K("web_watch_darker_panels");a.commentsHidePanelButton=!1;a.isWatchGrid=!1;a.continuationShowButton=!1;a.isSearch=!1;a.isConstrainedList=!1;a.isWatch=!1;a.eligibleToSwitchToGrid=!1;a.useBigThumbs=!1;a.notSticky=!1;a.epRestyle=!1;a.isCarouselInFeed=!0;a.topSpacingZero=!1;a.continuationIsInitialLoad=!0;a.enableSqueezebackPanels=_.K("web_shorts_enable_squeezeback_panels");a.enableAnchoredPanel=_.K("desktop_shorts_v2_anchored_panel");
a.mastheadHeight=0;a.actionMap={"yt-item-section-continuation-action":"handleYtItemSectionContinuation","yt-item-section-replace-action":"handleYtItemSectionReplace"};a.nextContinuation={continuationType:"itemSectionContinuation",usePost:!0};return a};
_.b(M4,_.G);_.Z=M4.prototype;_.Z.updateLockupContainerTypes=function(a){if(this.eligibleToSwitchToGrid){var z;(z=Array.from(this.hostElement.querySelectorAll("#contents yt-lockup-view-model")))==null||z.forEach(function(I){I.containerType=a})}};
_.Z.getItemsPath=function(){return"data.contents"};
_.Z.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"contents","yt-reload-continuation-items-command-body":"contents","yt-reload-continuation-items-command-header":"header"}};
_.Z.configureRendererStamper=function(){return{"data.header":{id:"header",mapping:{commentsHeaderRenderer:{component:"ytd-comments-header-renderer",properties:{engagementPanel:"[[engagementPanel]]",hidePanelButton:"[[commentsHidePanelButton]]"}},sortFilterHeaderRenderer:{component:"ytd-sort-filter-header-renderer",properties:{isPlaylist:"[[isPlaylist]]",isClipList:"[[isClipList]]"}},itemSectionHeaderRenderer:"ytd-item-section-header-renderer",backstagePostThreadRenderer:"ytd-backstage-post-thread-renderer",
chipCloudRenderer:"yt-chip-cloud-renderer",feedFilterChipBarRenderer:"ytd-feed-filter-chip-bar-renderer",macroMarkersPanelItemViewModel:"macro-markers-panel-item-view-model",chipBarViewModel:{component:"chip-bar-view-model",noInjection:!0}}},shownItems:{id:"contents",mapping:{lockupViewModel:{component:"yt-lockup-view-model",params:{className:"ytd-item-section-renderer lockup",force16By9ThumbnailAspectRatio:!0},properties:{sizing:"[[sizing]]",typographyBump:"[[typographyBump]]",thumbnailFixedWidth:"[[thumbnailWidth]]",
thumbnailTargetWidth:"[[thumbnailTargetWidth]]",lockupExperiments:"[[lockupExperiments]]",containerType:"[[lockupContainerType]]"}},alertBannerViewModel:{component:"yt-alert-banner-view-model"},aboutChannelRenderer:"ytd-about-channel-renderer",activityItemRenderer:"yt-activity-item-renderer",adSlotRenderer:"ytd-ad-slot-renderer",backgroundPromoRenderer:"ytd-background-promo-renderer",backstageLockedPostViewModel:"ytd-backstage-locked-post-view-model",backstagePostThreadRenderer:"ytd-backstage-post-thread-renderer",
buttonRenderer:"ytd-button-renderer",carouselAdRenderer:"ytd-carousel-ad-renderer",cardItemContainerRenderer:{component:"yt-card-item-container-renderer",properties:{compact:"[[engagementPanel]]"}},cardItemRenderer:"yt-card-item-renderer",carouselItemRenderer:{component:"ytd-carousel-item-renderer",params:{isCarouselInFeed:!0}},channelAboutFullMetadataRenderer:"ytd-channel-about-metadata-renderer",channelFeaturedContentRenderer:{component:"ytd-channel-featured-content-renderer",properties:{thumbnailFixedWidth:"[[thumbnailWidth]]",
lockupContainerType:"[[lockupContainerType]]"}},channelRenderer:{component:"ytd-channel-renderer",properties:{compactStyle:"[[engagementPanel]]"}},channelSwitcherPageRenderer:"ytd-channel-switcher-page-renderer",channelVideoPlayerRenderer:"ytd-channel-video-player-renderer",chipCloudRenderer:{component:"yt-chip-cloud-renderer",properties:{isSearch:"[[isSearch]]"}},chipsShelfViewModel:"chips-shelf-view-model",clarificationRenderer:"ytd-clarification-renderer",commentHistoryEntryRenderer:"ytd-comment-history-entry-renderer",
commentThreadRenderer:{component:"ytd-comment-thread-renderer",properties:{engagementPanel:"[[engagementPanel]]"}},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:{component:"yt-section-header-view-model",properties:{className:"[[is]]"},params:{disableHorizontalPadding:!0,disableVerticalPadding:!0}},settingsOptionsRenderer:"ytd-settings-options-renderer",shelfRenderer:{component:"ytd-shelf-renderer",properties:{isSearch:"[[isSearch]]",isConstrainedList:"[[isConstrainedList]]"}},showingResultsForRenderer:"yt-showing-results-for-renderer",
showRenderer:{component:"ytd-show-renderer",properties:{isSearch:"[[isSearch]]"}},simpleTextSectionRenderer:"ytd-simple-text-section-renderer",sponsorshipsAlertRenderer:"ytd-sponsorships-alert-renderer",statementBannerRenderer:"ytd-statement-banner-renderer",subscriptionProductHeaderRenderer:"yt-subscription-product-header-renderer",subscriptionProductRenderer:"yt-subscription-product-renderer",subscriptionProductUpsellOfferRenderer:"yt-subscription-product-upsell-offer-renderer",toggleFormFieldRenderer:"yt-toggle-form-field-renderer",
unlimitedManageSubscriptionPageRenderer:"yt-unlimited-manage-subscription-page-renderer",unlimitedPageFeatureInfoRenderer:"ytd-unlimited-page-feature-info-renderer",unlimitedPageHeaderRenderer:"yt-unlimited-page-header-renderer",unlimitedUserNotificationRenderer:"yt-unlimited-user-notification-renderer",videoRenderer:{component:"ytd-video-renderer",properties:{isSearch:"[[isSearch]]"}},webAnswerRenderer:"ytd-web-answer-renderer",ypcOffersListRenderer:"yt-ypc-offers-list-renderer",redeemCodeRenderer:"ytd-redeem-code-renderer",
primetimePromoRenderer:"ytd-primetime-promo-renderer",continuationItemRenderer:{component:"ytd-continuation-item-renderer",properties:{showButton:"[[continuationShowButton]]",isCommentsSection:"[[continuationIsCommentsSection]]",isInitialLoad:"[[continuationIsInitialLoad]]",engagementPanel:"[[engagementPanel]]"}},infoPanelContentRenderer:"ytd-info-panel-content-renderer",errorCorrectionsSectionItemRenderer:"ytd-error-corrections-section-item-renderer",ctaShelfRenderer:"ytd-brandconnect-cta-shelf-card-renderer",
listItemViewModel:"ytd-list-item-view-model",overviewAnswerViewModel:"ytd-overview-answer-view-model",coursePerksViewModel:"yt-course-perks-view-model",courseProgressViewModel:"yt-course-progress-view-model",courseRatingsViewModel:"yt-course-ratings-view-model",videoDescriptionHeaderRenderer:"ytd-video-description-header-renderer",videoDescriptionInfocardsSectionRenderer:"ytd-video-description-infocards-section-renderer",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:_.K("kevlar_low_priority_continuation")?0:void 0,usePageScheduler:_.K("kevlar_low_priority_continuation")}}};
_.Z.created=function(){};
_.Z.updateHeaderState=function(){this.notSticky=this.hostElement.getBoundingClientRect().y>this.mastheadHeight};
_.Z.handleIntersect=function(a){this.notSticky=a[0].intersectionRatio===1};
_.Z.attached=function(){var a=this,z=_.K("web_item_section_sticky_header_use_scroll_as_fallback");z||document.addEventListener("scroll",_.BK(this,this.updateHeaderState));var I;this.mastheadHeight=((I=document.querySelector("ytd-masthead"))==null?void 0:I.clientHeight)||0;window.IntersectionObserver?(this.intersectionObserver=new IntersectionObserver(function(J){a.handleIntersect(J)},{rootMargin:"-"+(this.mastheadHeight+1)+"px 0px 0px 0px",
threshold:[1]}),this.intersectionObserver.observe(this.hostElement)):z&&document.addEventListener("scroll",_.BK(this,this.updateHeaderState));window.ResizeObserver&&(this.resizeObserver=new ResizeObserver(function(){a.updateHeaderState()}),this.resizeObserver.observe(this.hostElement))};
_.Z.detached=function(){document.removeEventListener("scroll",_.BK(this,this.updateHeaderState));var a;(a=this.intersectionObserver)==null||a.disconnect();var z;(z=this.resizeObserver)==null||z.disconnect()};
_.Z.updated=function(a){a.has("data")&&this.updateHeaderState()};
_.Z.dispatchChipBarIsSticky=function(){this.ytdReduxBehavior.dispatch(fXG(!this.notSticky))};
_.Z.commentsHidePanelButtonChanged=function(){if(this.isWatchGrid){var a=_.PK(this.hostElement).querySelector("ytd-comments-header-renderer");a&&(a.hidePanelButton=this.commentsHidePanelButton)}};
_.Z.onRetrieveLocation=function(a,z){this.containsComments()&&(this.firstCommentsLoaded=z.hasComments=!0)};
_.Z.containsComments=function(){return this.get("data.sectionIdentifier")==="comment-item-section"};
_.Z.onLoadReloadContinuation=function(a,z){var I=this;a.stopPropagation();this.isReloading=!0;_.PA(this.hostElement,"yt-retrieve-location",{locationRetrieved:function(J){var r=_.ab().resolve(_.Tr);J=z(J);r.postData(J).then(function(P){I.onReloadContinuationData(P)})}})};
_.Z.onReloadContinuationData=function(a){if(a=this.get("response.continuationContents.itemSectionContinuation",a)||this.get("response.contents.itemSectionRenderer",a)||this.get("response.continuationContents.sectionListContinuation.contents.0.itemSectionRenderer",a)||this.get("response.continuationContents.relatedChipsContinuation.continuation.watchNextSecondaryResultsRenderer",a))this.set("data.contents",a.contents||a.results),a.header&&this.set("data.header",a.header),this.set("data.continuations",
a.continuations||[]);this.isReloading=!1};
_.Z.computeContentsClass=function(a){return a?"reloading":""};
_.Z.computeContainerWidth=function(){return this.hostElement.clientWidth};
_.Z.computeSectionIdentifier=function(a){return a==null?void 0:a.sectionIdentifier};
_.Z.computeFitContainer=function(a){return(a==null?void 0:a.sectionIdentifier)==="youchat-item-section"};
_.Z.computeShowButton=function(){return!!this.firstCommentsLoaded&&this.containsComments()&&_.K("kevlar_disable_comments_auto_load")};
_.Z.onServiceRequestCompleted=function(){this.continuationIsInitialLoad=!1};
_.Z.computeIsReloading=function(){return this.isReloading||this.ytContinuationHandlerBehavior.continuationIsReloading};
_.Z.computeHasDestinationShelfRenderer=function(a){var z,I;return!!(a==null?0:(z=a.contents)==null?0:(I=z[0])==null?0:I.destinationShelfRenderer)};
_.Z.computeHasSectionGroupViewModel=function(a){var z,I;return!!(a==null?0:(z=a.contents)==null?0:(I=z[0])==null?0:I.sectionGroupViewModel)};
_.Z.computeHasQrCodeRenderer=function(a){var z,I;return!!(a==null?0:(z=a.contents)==null?0:(I=z[0])==null?0:I.qrCodeRenderer)};
_.Z.computeStaticCommentsHeader=function(a){return a&&this.containsComments()};
_.Z.computeEpRestyle=function(a){return _.K("web_ep_restyling")&&a&&this.containsComments()};
_.Z.computeIsContinuationCommentSection=function(a){return(a==null?void 0:a.targetId)==="shorts-engagement-panel-comments-section"||(a==null?void 0:a.targetId)==="comments-section"||(a==null?void 0:a.targetId)==="engagement-panel-comments-section"};
_.Z.computeSuppressPaddingDisclaimer=function(){var a,z,I,J;return!!((a=this.data)==null?0:(z=a.contents)==null?0:(I=z[0])==null?0:(J=I.productListHeaderRenderer)==null?0:J.suppressPaddingDisclaimer)};
_.Z.computeHeaderStyle=function(a){switch(a==null?void 0:a.headerStyle){case "ITEM_SECTION_HEADER_STYLE_STICKY":return"sticky-header";default:return""}};
_.Z.dataChanged=function(){this.firstCommentsLoaded=!1};
_.Z.observeDataContentsLength=function(){var a,z;((a=this.data)==null?0:(z=a.contents)==null?0:z.length)&&this.data.contents.length>1?this.continuationIsInitialLoad=!1:this.continuationIsInitialLoad=!0};
_.Z.onYtDismissibleItemDismissedChange=function(a){this._setItemDismissed(a.type==="yt-dismissible-item-dismissed")};
_.Z.triggerContinuations=function(){for(var a=_.PK(this.hostElement).querySelector("#continuations").children,z=0;z<a.length;z++)a[z].trigger()};
_.Z.triggerInitialContinuations=function(){for(var a=_.PK(this.hostElement).querySelector("#continuations").children,z=0;z<a.length;z++)a[z].triggerIfNotPreviouslyTriggered()};
_.Z.handleYtItemSectionContinuation=function(a,z){var I;z&&((I=this.data)==null?void 0:I.sectionIdentifier)!==z||(this.set("data.continuations",[a]),this.triggerContinuations())};
_.Z.handleYtItemSectionReplace=function(a,z){var I;z&&((I=this.data)==null?void 0:I.sectionIdentifier)!==z||(this.set("data.contents",a),this.set("data.continuations",[]))};
_.Z.computeUseHeightHack=function(a){return a&&!_.K("kevlar_disable_height_hack")};
_.Z.computeTopSpacingZero=function(a){return a};
_.Z.continuationShowButtonChanged=function(){var a=_.PK(this.hostElement).querySelector("ytd-continuation-item-renderer");a&&(a.showButton=this.continuationShowButton)};
_.Z.dataChangedForBinding=function(){this.hostElement.dispatchEvent(new _.eY("data-changed",this.data))};
_.eH.Object.defineProperties(M4.prototype,{hideShortsShelfHeader:{configurable:!0,enumerable:!0,get:function(){return this.isWatch&&_.K("web_shorts_wn_shelf_header_tuning")}},
thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){return this.isSearch?"50%":this.isWatch?"168px":"246px"}},
thumbnailTargetWidth:{configurable:!0,enumerable:!0,get:function(){return this.isSearch&&this.containerWidth?this.containerWidth/2:void 0}},
sizing:{configurable:!0,enumerable:!0,get:function(){return this.isWatch?"COMPACT":"STANDARD"}},
lockupContainerType:{configurable:!0,enumerable:!0,get:function(){return this.useBigThumbs?2:this.eligibleToSwitchToGrid?this.isGridViewEnabled?2:3:3}},
isPlaylist:{configurable:!0,enumerable:!0,get:function(){var a,z,I;return!!((a=this.data)==null?0:(z=a.contents)==null?0:(I=z[0])==null?0:I.playlistVideoListRenderer)}},
isClipList:{configurable:!0,enumerable:!0,get:function(){var a,z,I,J,r,P,N;return!!((a=this.data)==null?0:(z=a.contents)==null?0:(I=z[0])==null?0:(J=I.shelfRenderer)==null?0:(r=J.content)==null?0:(P=r.gridRenderer)==null?0:(N=P.targetId)==null?0:N.includes("browse-feedFEclips"))}},
isPlaylistVideoContainer:{configurable:!0,enumerable:!0,get:function(){var a,z,I;return!!((a=this.data)==null?0:(z=a.contents)==null?0:(I=z[0])==null?0:I.playlistVideoRenderer)}},
isSearchFrictionPage:{configurable:!0,enumerable:!0,get:function(){var a,z,I;return!!((a=this.data)==null?0:(z=a.contents)==null?0:(I=z[0])==null?0:I.searchFrictionViewModel)}},
lockupExperiments:{configurable:!0,enumerable:!0,get:function(){if(this.isSearch)return{alwaysRespectPodcastShowAspectRatio:_.rM("podcast_show_lockup_style_web")==="square_thumbnail",useLegacyTypography:!_.K("use_modern_typography_on_search")}}},
typographyBump:{configurable:!0,enumerable:!0,get:function(){return this.isSearch&&_.K("use_modern_typography_on_search")}},
nonDeferredItemCount:{configurable:!0,enumerable:!0,get:function(){},
set:function(){}}});
M4.prototype.dataChangedForBinding=M4.prototype.dataChangedForBinding;M4.prototype.continuationShowButtonChanged=M4.prototype.continuationShowButtonChanged;M4.prototype.onYtDismissibleItemDismissedChange=M4.prototype.onYtDismissibleItemDismissedChange;M4.prototype.observeDataContentsLength=M4.prototype.observeDataContentsLength;M4.prototype.dataChanged=M4.prototype.dataChanged;M4.prototype.onServiceRequestCompleted=M4.prototype.onServiceRequestCompleted;M4.prototype.onLoadReloadContinuation=M4.prototype.onLoadReloadContinuation;
M4.prototype.onRetrieveLocation=M4.prototype.onRetrieveLocation;M4.prototype.commentsHidePanelButtonChanged=M4.prototype.commentsHidePanelButtonChanged;M4.prototype.dispatchChipBarIsSticky=M4.prototype.dispatchChipBarIsSticky;M4.prototype.updateLockupContainerTypes=M4.prototype.updateLockupContainerTypes;_.L([_.Q(_.Hc.YtActionHandlerBehavior),_.p("design:type",Object)],M4.prototype,"ytActionHandlerBehavior",void 0);
_.L([_.Q(_.k.YtRendererBehavior),_.p("design:type",Object)],M4.prototype,"ytRendererBehavior",void 0);_.L([_.Q(_.u4.YtRendererstamperBehavior),_.p("design:type",Object)],M4.prototype,"ytRendererstamperBehavior",void 0);_.L([_.Q(_.uQ.YtLazyListBehavior),_.p("design:type",Object)],M4.prototype,"ytLazyListBehavior",void 0);_.L([_.Q(_.cX.YtNextContinuationBehavior),_.p("design:type",Object)],M4.prototype,"ytNextContinuationBehavior",void 0);
_.L([_.Q(_.M8),_.p("design:type",Object)],M4.prototype,"ytContinuationHandlerBehavior",void 0);_.L([_.Q(_.Ms.YtComponentBehavior),_.p("design:type",Object)],M4.prototype,"ytComponentBehavior",void 0);_.L([_.Q(_.pV),_.p("design:type",Object)],M4.prototype,"ytdReduxBehavior",void 0);_.L([_.x({reflectToAttribute:!0}),_.p("design:type",Object)],M4.prototype,"darkerPanels",void 0);_.L([_.x(),_.p("design:type",Object)],M4.prototype,"data",void 0);
_.L([_.x(),_.p("design:type",Boolean)],M4.prototype,"engagementPanel",void 0);_.L([_.x(),_.p("design:type",Object)],M4.prototype,"commentsHidePanelButton",void 0);_.L([_.x(),_.p("design:type",Object)],M4.prototype,"isWatchGrid",void 0);_.L([_.x(),_.p("design:type",Object)],M4.prototype,"continuationShowButton",void 0);_.L([_.x({computed:"computeIsContinuationCommentSection(data)"}),_.p("design:type",Boolean)],M4.prototype,"continuationIsCommentsSection",void 0);
_.L([_.x({value:!0}),_.p("design:type",Boolean)],M4.prototype,"autoFill",void 0);_.L([_.x(),_.p("design:type",Boolean)],M4.prototype,"continuationDisablePrescanVisibility",void 0);_.L([_.x(),_.p("design:type",Boolean)],M4.prototype,"isReloading",void 0);_.L([_.x(),_.p("design:type",Object)],M4.prototype,"isSearch",void 0);_.L([_.x(),_.p("design:type",Object)],M4.prototype,"isConstrainedList",void 0);_.L([_.x(),_.p("design:type",Object)],M4.prototype,"isWatch",void 0);
_.L([_.x(),_.p("design:type",Object)],M4.prototype,"eligibleToSwitchToGrid",void 0);_.L([_.x(),_.p("design:type",Object)],M4.prototype,"useBigThumbs",void 0);_.L([_.x({reflectToAttribute:!0}),_.p("design:type",Object)],M4.prototype,"notSticky",void 0);_.L([_.x({selector:_.W8}),_.p("design:type",Object)],M4.prototype,"isGridViewEnabled",void 0);
_.L([_.x({reflectToAttribute:!0,computed:"computeEpRestyle(engagementPanel, data.sectionIdentifier)"}),_.p("design:type",Object)],M4.prototype,"epRestyle",void 0);_.L([_.S("isWatch"),_.x({reflectToAttribute:!0}),_.p("design:type",Boolean),_.p("design:paramtypes",[])],M4.prototype,"hideShortsShelfHeader",null);_.L([_.S("isSearch","isWatch"),_.p("design:type",String),_.p("design:paramtypes",[])],M4.prototype,"thumbnailWidth",null);
_.L([_.S("isSearch","containerWidth"),_.p("design:type",Object),_.p("design:paramtypes",[])],M4.prototype,"thumbnailTargetWidth",null);_.L([_.S("isSearch","isWatch"),_.p("design:type",String),_.p("design:paramtypes",[])],M4.prototype,"sizing",null);_.L([_.S("isWatch","isGridViewEnabled","useBigThumbs","data"),_.x({reflectToAttribute:!0}),_.p("design:type",Number),_.p("design:paramtypes",[])],M4.prototype,"lockupContainerType",null);
_.L([_.O8("lockupContainerType","data"),_.p("design:type",Function),_.p("design:paramtypes",[Number]),_.p("design:returntype")],M4.prototype,"updateLockupContainerTypes",null);_.L([_.x({reflectToAttribute:!0}),_.p("design:type",String)],M4.prototype,"pageSubtype",void 0);_.L([_.x({computed:"computeContainerWidth()"}),_.p("design:type",Number)],M4.prototype,"containerWidth",void 0);_.L([_.x(),_.S("data"),_.p("design:type",Boolean),_.p("design:paramtypes",[])],M4.prototype,"isPlaylist",null);
_.L([_.x(),_.S("data"),_.p("design:type",Boolean),_.p("design:paramtypes",[])],M4.prototype,"isClipList",null);_.L([_.x(),_.p("design:type",Object)],M4.prototype,"isCarouselInFeed",void 0);_.L([_.x({reflectToAttribute:!0}),_.S("data"),_.p("design:type",Boolean),_.p("design:paramtypes",[])],M4.prototype,"isPlaylistVideoContainer",null);_.L([_.x({reflectToAttribute:!0}),_.S("data"),_.p("design:type",Boolean),_.p("design:paramtypes",[])],M4.prototype,"isSearchFrictionPage",null);
_.L([_.x({reflectToAttribute:!0,computed:"computeUseHeightHack(isSearch)"}),_.p("design:type",Boolean)],M4.prototype,"useHeightHack",void 0);_.L([_.x({reflectToAttribute:!0,computed:"computeTopSpacingZero(isSearch)"}),_.p("design:type",Object)],M4.prototype,"topSpacingZero",void 0);_.L([_.x({computed:"computeShowButton(data.sectionIdentifier, firstCommentsLoaded)"}),_.p("design:type",Boolean)],M4.prototype,"showButton",void 0);
_.L([_.x(),_.p("design:type",Boolean)],M4.prototype,"firstCommentsLoaded",void 0);_.L([_.x(),_.p("design:type",Object)],M4.prototype,"continuationIsInitialLoad",void 0);_.L([_.x({reflectToAttribute:!0,readOnly:!0}),_.p("design:type",Boolean)],M4.prototype,"itemDismissed",void 0);_.L([_.x({reflectToAttribute:!0,computed:"computeSectionIdentifier(data)"}),_.p("design:type",String)],M4.prototype,"sectionIdentifier",void 0);
_.L([_.x({reflectToAttribute:!0,computed:"computeFitContainer(data)"}),_.p("design:type",String)],M4.prototype,"fitContainer",void 0);_.L([_.x({reflectToAttribute:!0,computed:"computeHasDestinationShelfRenderer(data)"}),_.p("design:type",Boolean)],M4.prototype,"hasDestinationShelfRenderer",void 0);_.L([_.x({reflectToAttribute:!0,computed:"computeStaticCommentsHeader(engagementPanel, data.sectionIdentifier)"}),_.p("design:type",Boolean)],M4.prototype,"staticCommentsHeader",void 0);
_.L([_.x({reflectToAttribute:!0}),_.p("design:type",Object)],M4.prototype,"enableSqueezebackPanels",void 0);_.L([_.x({reflectToAttribute:!0}),_.p("design:type",Object)],M4.prototype,"enableAnchoredPanel",void 0);_.L([_.x({reflectToAttribute:!0,computed:"computeHasSectionGroupViewModel(data)"}),_.p("design:type",Boolean)],M4.prototype,"hasSectionGroupViewModel",void 0);
_.L([_.x({reflectToAttribute:!0,computed:"computeHasQrCodeRenderer(data)"}),_.p("design:type",Boolean)],M4.prototype,"hasQrCodeRenderer",void 0);_.L([_.x({reflectToAttribute:!0,computed:"computeSuppressPaddingDisclaimer(data)"}),_.p("design:type",Boolean)],M4.prototype,"suppressDisclaimerSeparator",void 0);_.L([_.x({reflectToAttribute:!0,computed:"computeHeaderStyle(data)"}),_.p("design:type",String)],M4.prototype,"headerStyle",void 0);
_.L([_.S("isSearch"),_.p("design:type",Object),_.p("design:paramtypes",[])],M4.prototype,"lockupExperiments",null);_.L([_.S("isSearch"),_.p("design:type",Boolean),_.p("design:paramtypes",[])],M4.prototype,"typographyBump",null);_.L([_.A3("#header"),_.p("design:type",HTMLElement)],M4.prototype,"header",void 0);_.L([_.O8("notSticky"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],M4.prototype,"dispatchChipBarIsSticky",null);
_.L([_.O8("commentsHidePanelButton"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],M4.prototype,"commentsHidePanelButtonChanged",null);_.L([_.gz("yt-retrieve-location"),_.p("design:type",Function),_.p("design:paramtypes",[CustomEvent,Object]),_.p("design:returntype")],M4.prototype,"onRetrieveLocation",null);
_.L([_.gz("yt-load-reload-continuation"),_.p("design:type",Function),_.p("design:paramtypes",[CustomEvent,Function]),_.p("design:returntype")],M4.prototype,"onLoadReloadContinuation",null);_.L([_.gz("yt-service-request-completed"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],M4.prototype,"onServiceRequestCompleted",null);_.L([_.Fe("data"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],M4.prototype,"dataChanged",null);
_.L([_.Fe("data.contents.length"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],M4.prototype,"observeDataContentsLength",null);_.L([_.gz("yt-dismissible-item-dismissed"),_.gz("yt-dismissible-item-undismissed"),_.p("design:type",Function),_.p("design:paramtypes",[Event]),_.p("design:returntype")],M4.prototype,"onYtDismissibleItemDismissedChange",null);
_.L([_.O8("continuationShowButton"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],M4.prototype,"continuationShowButtonChanged",null);_.L([_.O8("data"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],M4.prototype,"dataChangedForBinding",null);_.L([_.U({is:"ytd-item-section-renderer",disableElementRegistration:!0})],M4);
_.D(M4,"ytd-item-section-renderer",function(){if(Nuw!==void 0)return Nuw;var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-item-section-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class$="[[computeContentsClass(isReloading)]] style-scope ytd-item-section-renderer"></div>\n<div id="spinner-container" class="style-scope ytd-item-section-renderer">\n  <tp-yt-paper-spinner-lite active="[[computeIsReloading(isReloading, continuationIsReloading)]]" class="style-scope ytd-item-section-renderer">\n  </tp-yt-paper-spinner-lite>\n</div>\n<div id="contents" class$="[[computeContentsClass(isReloading)]] style-scope ytd-item-section-renderer"></div>\n<div id="continuations" class="style-scope ytd-item-section-renderer"></div>\n');
a.content.insertBefore(_.w().content.cloneNode(!0),a.content.firstChild);return Nuw=a},{mode:1});var YKi;var $21=_.Mo(_.AR("DELETE_FROM_DOWNLOADS",{},"Delete from downloads"));var qKO={},Gmx=(qKO[0]={title:_.zg(_.AR("DOWNLOADS",void 0,"Downloads")),iconType:"OFFLINE_DOWNLOAD",topButtonRenderer:{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:_.zg(_.AR("DOWNLOADS_SETTINGS",void 0,"Downloads Settings")),loggingDirectives:{clientVeSpec:{uiType:21412}},navigationEndpoint:_.aU("SPaccount_downloads","/account_downloads",6827,"WEB_PAGE_TYPE_SETTINGS")},sectionClientVE:51721,videoClientVE:42356},qKO[1]={title:_.zg(_.AR("SMART_DOWNLOADS",void 0,"Smart downloads")),topButtonRenderer:{icon:{iconType:"SETTINGS"},
loggingDirectives:{clientVeSpec:{uiType:129732}},navigationEndpoint:_.aU("SPaccount_downloads","/account_downloads",6827,"WEB_PAGE_TYPE_SETTINGS")},sectionClientVE:139572,videoClientVE:129218},qKO);_.$q("sharingItemSection","itemSectionRenderer","ytd-item-section-renderer");var c5=function(){var a=_.G.apply(this,arguments)||this;a.allVideosCount=0;a.allPlaylistCount=0;a.isOnline=!1;a.shouldRenderDownloadsBanner=!1;a.shouldRenderDownloadsBannerUpsell=!1;a.hasOptedIntoSmartDownloads=!1;a.areAllSmartDownloadsDeleted=!1;a.smartDownloadsCompleted=!1;return a};
_.b(c5,_.G);c5.prototype.configureRendererStamper=function(){return{renderableData:{id:"contents",mapping:{itemSectionRenderer:"ytd-item-section-renderer"}}}};
c5.prototype.attached=function(){this.downloadsToRenderChanged()};
c5.prototype.detached=function(){this.set("renderableData",{})};
c5.prototype.downloadsToRenderChanged=function(){var a=_.qo().getState().entities,z=_.xp(a),I=_.K("kevlar_playlist_dl_page_killswitch")?d_I(a):_.vd(a),J=_.iJE(a),r=_.$_I(a),P=_.b8(z);a=_.Gg(a);this.set("renderableData",TSm(I,z,J,r,this.hasOptedIntoSmartDownloads,this.shouldRenderDownloadsBanner,this.areAllSmartDownloadsDeleted,this.shouldRenderDownloadsBannerUpsell,this.isOnline,P,a))};
c5.prototype.downloadsToRenderChanged=c5.prototype.downloadsToRenderChanged;_.L([_.Q(_.pV),_.p("design:type",Object)],c5.prototype,"ytdReduxBehavior",void 0);_.L([_.Q(_.k.YtRendererBehavior),_.p("design:type",Object)],c5.prototype,"ytRendererBehavior",void 0);_.L([_.Q(_.Ms.YtComponentBehavior),_.p("design:type",Object)],c5.prototype,"ytComponentBehavior",void 0);_.L([_.Q(_.u4.YtRendererstamperBehavior),_.p("design:type",Object)],c5.prototype,"ytRendererstamperBehavior",void 0);
_.L([_.x(),_.p("design:type",Object)],c5.prototype,"renderableData",void 0);_.L([_.x({selector:_.MKx}),_.p("design:type",Object)],c5.prototype,"allVideosCount",void 0);_.L([_.x({selector:AkI}),_.p("design:type",Object)],c5.prototype,"allPlaylistCount",void 0);_.L([_.x({selector:_.Wd}),_.p("design:type",Object)],c5.prototype,"isOnline",void 0);_.L([_.x({selector:_.zGp}),_.p("design:type",Object)],c5.prototype,"shouldRenderDownloadsBanner",void 0);
_.L([_.x({selector:_.Pr1}),_.p("design:type",Object)],c5.prototype,"shouldRenderDownloadsBannerUpsell",void 0);_.L([_.x({selector:_.IGm}),_.p("design:type",Object)],c5.prototype,"hasOptedIntoSmartDownloads",void 0);_.L([_.x({selector:_.JKx}),_.p("design:type",Object)],c5.prototype,"areAllSmartDownloadsDeleted",void 0);_.L([_.x({selector:rK$}),_.p("design:type",Object)],c5.prototype,"smartDownloadsCompleted",void 0);
_.L([_.Fe("allVideosCount","shouldRenderDownloadsBanner","hasOptedIntoSmartDownloads","areAllSmartDownloadsDeleted","smartDownloadsCompleted","shouldRenderDownloadsBannerUpsell","isOnline","allPlaylistCount"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],c5.prototype,"downloadsToRenderChanged",null);_.L([_.U({is:"ytd-offline-item-section-renderer",disableElementRegistration:!0})],c5);
_.D(c5,"ytd-offline-item-section-renderer",function(){if(YKi!==void 0)return YKi;var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-offline-item-section-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="contents" class="style-scope ytd-offline-item-section-renderer"></div>\n');a.content.insertBefore(_.w().content.cloneNode(!0),a.content.firstChild);return YKi=a},
{mode:1});var eaI;var anE;var Y1=function(){return _.G.apply(this,arguments)||this};
_.b(Y1,_.G);
Y1.prototype.onDataChanged=function(){if(this.JSC$16568_lastData){var a=this.getFilterClass(this.JSC$16568_lastData.status);a&&this.hostElement.classList.remove(a)}var z;(a=this.getFilterClass((z=this.data)==null?void 0:z.status))&&this.hostElement.classList.add(a);a==="selected"?_.PK(this.hostElement).querySelector("#endpoint").setAttribute("aria-selected","true"):_.PK(this.hostElement).querySelector("#endpoint").removeAttribute("aria-selected");a==="disabled"?_.PK(this.hostElement).querySelector("#endpoint").setAttribute("aria-disabled","true"):
_.PK(this.hostElement).querySelector("#endpoint").removeAttribute("aria-disabled");this.JSC$16568_lastData=this.data};
Y1.prototype.getFilterClass=function(a){switch(a){case "FILTER_STATUS_SELECTED":return"selected";case "FILTER_STATUS_DISABLED":return"disabled"}};
Y1.prototype.onDataChanged=Y1.prototype.onDataChanged;_.L([_.Q(_.k.YtRendererBehavior),_.p("design:type",Object)],Y1.prototype,"ytRendererBehavior",void 0);_.L([_.x(),_.p("design:type",Object)],Y1.prototype,"data",void 0);_.L([_.O8("data"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],Y1.prototype,"onDataChanged",null);_.L([_.U({is:"ytd-search-filter-renderer",disableElementRegistration:!0})],Y1);
_.D(Y1,"ytd-search-filter-renderer",function(){if(anE!==void 0)return anE;var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-search-filter-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<a id="endpoint" class="yt-simple-endpoint style-scope ytd-search-filter-renderer" href$="[[computeHref_(data.navigationEndpoint)]]" data="[[data.navigationEndpoint]]">\n<div id="label" title="[[data.tooltip]]" class="style-scope ytd-search-filter-renderer">\n    <yt-formatted-string text="[[data.label]]" class="style-scope ytd-search-filter-renderer"></yt-formatted-string>\n    <yt-icon id="dismiss-x" hidden="[[!data.navigationEndpoint]]" icon="yt-icons:dismissal" class="style-scope ytd-search-filter-renderer">\n    </yt-icon>\n  </div>\n</a>\n');
a.content.insertBefore(_.w().content.cloneNode(!0),a.content.firstChild);return anE=a},{mode:_.Np("kevlar_poly_si_batch_j075")?1:2});var q4=function(){return _.G.apply(this,arguments)||this};
_.b(q4,_.G);_.L([_.Q(_.k.YtRendererBehavior),_.p("design:type",Object)],q4.prototype,"ytRendererBehavior",void 0);_.L([_.x(),_.p("design:type",Object)],q4.prototype,"data",void 0);_.L([_.U({is:"ytd-search-filter-group-renderer",disableElementRegistration:!0})],q4);
_.D(q4,"ytd-search-filter-group-renderer",function(){if(eaI!==void 0)return eaI;var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-search-filter-group-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<h4 id="filter-group-name" class="style-scope ytd-search-filter-group-renderer">\n  <yt-formatted-string text="[[data.title]]" class="style-scope ytd-search-filter-group-renderer"></yt-formatted-string>\n</h4>\n<template is="dom-repeat" items="[[data.filters]]" class="style-scope ytd-search-filter-group-renderer">\n  <template is="dom-if" if="[[item.searchFilterRenderer]]" class="style-scope ytd-search-filter-group-renderer">\n    <ytd-search-filter-renderer data="[[item.searchFilterRenderer]]" class="style-scope ytd-search-filter-group-renderer">\n    </ytd-search-filter-renderer>\n  </template>\n</template>\n');a.content.insertBefore(_.w().content.cloneNode(!0),
a.content.firstChild);return eaI=a},{mode:_.Np("kevlar_poly_si_batch_j075")?1:2});var j6w;var ey=function(){return _.G.apply(this,arguments)||this};
_.b(ey,_.G);ey.prototype.toggleFilters=function(){this.renderCollapsibleMenu||(this.renderCollapsibleMenu=!0,_.AX());this.isCollapsed=!this.isCollapsed};
ey.prototype.navigateToAboutTheseResultsPage=function(){var a=_.GN("https://www.youtube.com/howyoutubeworks/product-features/search/");a?_.wO(window,a,"_blank"):_.oL(Error("Rh"))};
ey.prototype.dataChanged=function(){this.isCollapsed=!0};
ey.prototype.computeShowBottomBorder=function(){var a,z,I;return!!((a=this.data)==null?0:(z=a.button)==null?0:z.toggleButtonRenderer)||!((I=this.data)==null||!I.aboutTheseResultsButton)};
ey.prototype.dataChanged=ey.prototype.dataChanged;_.L([_.Q(_.k.YtRendererBehavior),_.p("design:type",Object)],ey.prototype,"ytRendererBehavior",void 0);_.L([_.x(),_.p("design:type",Object)],ey.prototype,"data",void 0);_.L([_.x({reflectToAttribute:!0,computed:"computeShowBottomBorder(data)"}),_.p("design:type",Boolean)],ey.prototype,"showBottomBorder",void 0);_.L([_.x(),_.p("design:type",Boolean)],ey.prototype,"renderCollapsibleMenu",void 0);
_.L([_.x(),_.p("design:type",Boolean)],ey.prototype,"isCollapsed",void 0);_.L([_.Fe("data"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],ey.prototype,"dataChanged",null);_.L([_.U({is:"ytd-search-sub-menu-renderer",disableElementRegistration:!0})],ey);
_.D(ey,"ytd-search-sub-menu-renderer",function(){if(j6w!==void 0)return j6w;var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-search-sub-menu-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="filter-menu" class="style-scope ytd-search-sub-menu-renderer">\n  <div id="container" class="style-scope ytd-search-sub-menu-renderer">\n    <ytd-toggle-button-renderer align-by-text="" data="[[data.button.toggleButtonRenderer]]" on-click="toggleFilters" class="style-scope ytd-search-sub-menu-renderer">\n    </ytd-toggle-button-renderer>\n    <template is="dom-if" if="[[data.aboutTheseResultsButton]]" class="style-scope ytd-search-sub-menu-renderer">\n      <ytd-button-renderer align-by-text="" data="[[data.aboutTheseResultsButton.buttonRenderer]]" on-click="navigateToAboutTheseResultsPage" class="style-scope ytd-search-sub-menu-renderer">\n      </ytd-button-renderer>\n    </template>\n  </div>\n  <template is="dom-if" if="[[renderCollapsibleMenu]]" class="style-scope ytd-search-sub-menu-renderer">\n    <tp-yt-iron-collapse id="collapse" opened="[[!isCollapsed]]" class="style-scope ytd-search-sub-menu-renderer">\n      <div id="collapse-content" class="style-scope ytd-search-sub-menu-renderer">\n        <template is="dom-repeat" items="[[data.groups]]" class="style-scope ytd-search-sub-menu-renderer">\n          <ytd-search-filter-group-renderer data="[[item.searchFilterGroupRenderer]]" class="style-scope ytd-search-sub-menu-renderer">\n          </ytd-search-filter-group-renderer>\n        </template>\n      </div>\n    </tp-yt-iron-collapse>\n  </template>\n</div>\n');a.content.insertBefore(_.w().content.cloneNode(!0),
a.content.firstChild);return j6w=a},{mode:1});var zWj;var Inw=new _.I4("SECTION_LIST_RENDERER_TOKEN");var JnX;var aC=function(){return _.G.apply(this,arguments)||this};
_.b(aC,_.G);aC.prototype.computeStyle=function(a){return a?a.toLowerCase().replace(/_/g,"-"):""};
_.L([_.Q(_.k.YtRendererBehavior),_.p("design:type",Object)],aC.prototype,"ytRendererBehavior",void 0);_.L([_.x(),_.p("design:type",Object)],aC.prototype,"data",void 0);_.L([_.x({reflectToAttribute:!0,computed:"computeStyle(data.style)"}),_.p("design:type",String)],aC.prototype,"headerStyle",void 0);_.L([_.U({is:"ytd-text-header-renderer",disableElementRegistration:!0})],aC);
_.D(aC,"ytd-text-header-renderer",function(){if(JnX!==void 0)return JnX;var a=document.createElement("template");_.V(a,"\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-text-header-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e[[getSimpleString(data.title)]]\n");a.content.insertBefore(_.w().content.cloneNode(!0),a.content.firstChild);return JnX=a},{mode:1});var rnO;var jR=function(){return _.G.apply(this,arguments)||this};
_.b(jR,_.G);_.L([_.Q(_.k.YtRendererBehavior),_.p("design:type",Object)],jR.prototype,"ytRendererBehavior",void 0);_.L([_.x(),_.p("design:type",Object)],jR.prototype,"data",void 0);_.L([_.U({is:"ytd-minor-moment-header-renderer",disableElementRegistration:!0})],jR);
_.D(jR,"ytd-minor-moment-header-renderer",function(){if(rnO!==void 0)return rnO;var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-minor-moment-header-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<img src$="[[data.imageUrl]]" alt="" class="minormoment-header-img style-scope ytd-minor-moment-header-renderer">\n<yt-formatted-string id="title" respect-html-dir="" text="[[data.title]]" class="style-scope ytd-minor-moment-header-renderer"></yt-formatted-string>\n<yt-formatted-string id="caption" respect-html-dir="" text="[[data.caption]]" class="style-scope ytd-minor-moment-header-renderer"></yt-formatted-string>\n');a.content.insertBefore(_.w().content.cloneNode(!0),
a.content.firstChild);return rnO=a},{mode:1});var PBX;var z6=function(){return _.G.apply(this,arguments)||this};
_.b(z6,_.G);_.L([_.Q(_.k.YtRendererBehavior),_.p("design:type",Object)],z6.prototype,"ytRendererBehavior",void 0);_.L([_.x(),_.p("design:type",Object)],z6.prototype,"data",void 0);_.L([_.U({is:"ytd-minor-moment-setting-alert-renderer",disableElementRegistration:!0})],z6);
_.D(z6,"ytd-minor-moment-setting-alert-renderer",function(){if(PBX!==void 0)return PBX;var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-minor-moment-setting-alert-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-formatted-string id="text" text="[[data.text]]" class="style-scope ytd-minor-moment-setting-alert-renderer">\n</yt-formatted-string>\n<template is="dom-repeat" items="[[data.details]]" class="style-scope ytd-minor-moment-setting-alert-renderer">\n  <yt-formatted-string class="detail-text style-scope ytd-minor-moment-setting-alert-renderer" text="[[item]]">\n  </yt-formatted-string>\n</template>\n<yt-formatted-string id="link" text="[[data.link]]" class="style-scope ytd-minor-moment-setting-alert-renderer">\n</yt-formatted-string>\n');a.content.insertBefore(_.w().content.cloneNode(!0),
a.content.firstChild);return PBX=a},{mode:1});var ZkJ;var CBX;var IC=function(){var a=_.G.apply(this,arguments)||this;a.booleanSettingById=!1;a.smartDownloadsEnabledVE=_.uq(128287);a.smartDownloadsDisabledVE=_.uq(128286);a.actionMap={"yt-settings-update-switch-command":"handleUpdateSettingsSwitch","yt-toggle-settings-switch":"onToggleSettingsSwitch"};return a};
_.b(IC,_.G);_.Z=IC.prototype;_.Z.attachSmartDownloadsSettingVes=function(){var a;this.activeVeForLogging||((a=this.data)==null?void 0:a.id)!=="SETTINGS_OPTIONS_ID_TYPE_SMART_DOWNLOADS"||(_.Aq(_.Kw(),this.smartDownloadsEnabledVE),_.Aq(_.Kw(),this.smartDownloadsDisabledVE))};
_.Z.dataChanged=function(){this.attachSmartDownloadsSettingVes();this.maybeLogSmartDownloadsSettingVisibility();this.initializeIsEnabled();_.PA(this.hostElement,"yt-settings-switch-ready")};
_.Z.initializeIsEnabled=function(){this.data&&this.data.id&&this.data.enabled===void 0&&this.set("data.enabled",this.getUserPreference())};
_.Z.onSwitchChange=function(a){this.data&&(this.maybeLogSmartDownloadsSettingClick(),(a=_.Yh(a).checked?this.data.enableServiceEndpoint:this.data.disableServiceEndpoint)&&(_.K("kevlar_settings_switch_resolve_command_killswitch")?_.ab().resolve(_.j6).resolveCommand(a,{form:{element:this.hostElement}}):this.ytComponentBehavior.resolveCommand(a)),this.data.requiresConfirmation&&this.set("data.enabled",!this.data.enabled))};
_.Z.handleUpdateSettingsSwitch=function(a){(a=_.H(a,ETi))&&this.data&&this.data.id===a.id&&this.set("data.enabled",!!a.enabled)};
_.Z.onToggleSettingsSwitch=function(a,z){this.data&&this.data.id===a&&this.set("data.enabled",z!=null?z:!this.data.enabled)};
_.Z.getUserPreference=function(){switch(this.data.id){case "SETTINGS_OPTIONS_ID_TYPE_AUTONAV":return 1!==_.PS.getInstance().getState();case "SETTINGS_OPTIONS_ID_TYPE_SMART_DOWNLOADS":return this.booleanSettingById;default:return!1}};
_.Z.maybeLogSmartDownloadsSettingVisibility=function(){var a=_.TX(),z;a&&((z=this.data)==null?void 0:z.id)==="SETTINGS_OPTIONS_ID_TYPE_SMART_DOWNLOADS"&&(this.booleanSettingById?(this.activeVeForLogging=this.smartDownloadsEnabledVE,_.we(a,[this.smartDownloadsEnabledVE]),_.m8(a,[this.smartDownloadsDisabledVE])):(this.activeVeForLogging=this.smartDownloadsDisabledVE,_.we(a,[this.smartDownloadsDisabledVE]),_.m8(a,[this.smartDownloadsEnabledVE])))};
_.Z.maybeLogSmartDownloadsSettingClick=function(){var a;((a=this.data)==null?void 0:a.id)==="SETTINGS_OPTIONS_ID_TYPE_SMART_DOWNLOADS"&&this.activeVeForLogging&&_.nJ(_.Kw(),this.activeVeForLogging)};
_.Z.updateDataEnabledFromBinding=function(a){this.set("data.enabled",a.detail.value)};
_.eH.Object.defineProperties(IC.prototype,{toggleAriaLabel:{configurable:!0,enumerable:!0,get:function(){var a=this.get("toggleAccessibility.accessibilityData.label",this.data);this.data&&this.data.title&&!a&&(a=this.ytRendererBehavior.getSimpleString(this.data.title));return a}}});
IC.prototype.dataChanged=IC.prototype.dataChanged;_.L([_.Q(_.pV),_.p("design:type",Object)],IC.prototype,"ytdReduxBehavior",void 0);_.L([_.Q(_.k.YtRendererBehavior),_.p("design:type",Object)],IC.prototype,"ytRendererBehavior",void 0);_.L([_.Q(_.Hc.YtActionHandlerBehavior),_.p("design:type",Object)],IC.prototype,"ytActionHandlerBehavior",void 0);_.L([_.Q(_.Ms.YtComponentBehavior),_.p("design:type",Object)],IC.prototype,"ytComponentBehavior",void 0);
_.L([_.x(),_.p("design:type",Object)],IC.prototype,"data",void 0);_.L([_.x({selector:function(a,z){if(Object.keys(a==null?void 0:a.entities).length)switch(z){case "SETTINGS_OPTIONS_ID_TYPE_SMART_DOWNLOADS":return Whp(a.entities,"SMART_DOWNLOADS_ENABLED");default:return!1}},
selectorArgs:["data.id"]}),_.p("design:type",Object)],IC.prototype,"booleanSettingById",void 0);_.L([_.x(),_.p("design:type",$2)],IC.prototype,"activeVeForLogging",void 0);_.L([_.S("data"),_.p("design:type",Object),_.p("design:paramtypes",[])],IC.prototype,"toggleAriaLabel",null);_.L([_.Fe("data"),_.Fe("booleanSettingById"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],IC.prototype,"dataChanged",null);
_.L([_.U({is:"ytd-settings-switch-renderer",disableElementRegistration:!0})],IC);
_.D(IC,"ytd-settings-switch-renderer",function(){if(CBX!==void 0)return CBX;var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-settings-switch-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<tp-yt-paper-toggle-button id="toggle" aria-label$="[[toggleAriaLabel]]" checked="[[data.enabled]]" noink="" on-change="onSwitchChange" on-checked-changed="updateDataEnabledFromBinding" class="style-scope ytd-settings-switch-renderer">\n  <div id="toggle-container" class="style-scope ytd-settings-switch-renderer"></div>\n</tp-yt-paper-toggle-button>\n<div class="style-scope ytd-settings-switch-renderer">\n  <yt-formatted-string id="title" text="[[data.title]]" class="style-scope ytd-settings-switch-renderer"></yt-formatted-string>\n  <div id="icon" hidden="[[!data.thumbnail]]" class="style-scope ytd-settings-switch-renderer">\n    <yt-img-shadow height="24" thumbnail="[[data.thumbnail]]" width="24" class="style-scope ytd-settings-switch-renderer">\n    </yt-img-shadow>\n    <yt-formatted-string id="text" text="[[data.text]]" class="style-scope ytd-settings-switch-renderer"></yt-formatted-string>\n  </div>\n  <yt-formatted-string id="subtitle" text="[[data.subtitle]]" class="style-scope ytd-settings-switch-renderer"></yt-formatted-string>\n</div>\n');a.content.insertBefore(_.w().content.cloneNode(!0),
a.content.firstChild);return CBX=a},{mode:1});var Jd=function(){return _.G.apply(this,arguments)||this};
_.b(Jd,_.G);Jd.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}}}}};
_.eH.Object.defineProperties(Jd.prototype,{contentsClassName:{configurable:!0,enumerable:!0,get:function(){if(!this.data)return"";var a=this.data.hideBottomSeparator?"":"with-bottom-separator";this.data.removeLeftMargin&&(a+=" remove-left-margin");this.data.extraBottomSpace&&(a+=" extra-bottom-space");return a}}});
_.L([_.Q(_.k.YtRendererBehavior),_.p("design:type",Object)],Jd.prototype,"ytRendererBehavior",void 0);_.L([_.Q(_.u4.YtRendererstamperBehavior),_.p("design:type",Object)],Jd.prototype,"ytRendererstamperBehavior",void 0);_.L([_.x(),_.p("design:type",Object)],Jd.prototype,"data",void 0);_.L([_.S("data"),_.p("design:type",Object),_.p("design:paramtypes",[])],Jd.prototype,"contentsClassName",null);_.L([_.U({is:"ytd-minor-moment-setting-section-renderer",disableElementRegistration:!0})],Jd);
_.D(Jd,"ytd-minor-moment-setting-section-renderer",function(){if(ZkJ!==void 0)return ZkJ;var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-minor-moment-setting-section-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="contents" class$="[[contentsClassName]] style-scope ytd-minor-moment-setting-section-renderer">\n  <div id="title" hidden="[[!data.title]]" class="style-scope ytd-minor-moment-setting-section-renderer">\n    <yt-formatted-string text="[[data.title]]" class="style-scope ytd-minor-moment-setting-section-renderer"></yt-formatted-string>\n  </div>\n  <yt-formatted-string id="header" hidden="[[!data.header]]" text="[[data.header]]" class="style-scope ytd-minor-moment-setting-section-renderer">\n  </yt-formatted-string>\n  <yt-formatted-string id="summary" hidden="[[!data.summary]]" text="[[data.summary]]" class="style-scope ytd-minor-moment-setting-section-renderer">\n  </yt-formatted-string>\n  <div id="settings" hidden="[[!data.settings]]" class="style-scope ytd-minor-moment-setting-section-renderer"></div>\n  <div id="alerts" hidden="[[!data.alerts]]" class="style-scope ytd-minor-moment-setting-section-renderer"></div>\n</div>\n');
a.content.insertBefore(_.w().content.cloneNode(!0),a.content.firstChild);return ZkJ=a},{mode:1});var NX1;var rx=function(){return _.G.apply(this,arguments)||this};
_.b(rx,_.G);_.L([_.Q(_.k.YtRendererBehavior),_.p("design:type",Object)],rx.prototype,"ytRendererBehavior",void 0);_.L([_.Q(_.Ms.YtComponentBehavior),_.p("design:type",Object)],rx.prototype,"componentBehavior",void 0);_.L([_.x(),_.p("design:type",Object)],rx.prototype,"data",void 0);_.L([_.U({disableElementRegistration:!0,is:"ytd-empty-product-details-renderer"})],rx);
_.D(rx,"ytd-empty-product-details-renderer",function(){if(NX1!==void 0)return NX1;var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-empty-product-details-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="container style-scope ytd-empty-product-details-renderer">\n  <yt-formatted-string text="[[data.title]]" class="style-scope ytd-empty-product-details-renderer"></yt-formatted-string>\n</div>\n');a.content.insertBefore(_.w().content.cloneNode(!0),
a.content.firstChild);return NX1=a},{mode:1});var t7X;var uI1;var PQ=function(){var a=_.G.apply(this,arguments)||this;a.expanded=!0;return a};
_.b(PQ,_.G);PQ.prototype.getBadgeRowClass=function(a,z,I){for(var J=_.C(this.hostElement.querySelectorAll("yt-img-shadow")),r=J.next();!r.done;r=J.next())r.value.onShow();a=a.selected;return I?a!==-1?a===z?"badge-line badge-selected":"badge-line badge-not-selected":"badge-line":(a!==void 0?a:0)===z?"badge-line":"badge-hidden"};
_.L([_.Q(_.k.YtRendererBehavior),_.p("design:type",Object)],PQ.prototype,"ytRendererBehavior",void 0);_.L([_.x(),_.p("design:type",Object)],PQ.prototype,"data",void 0);_.L([_.x(),_.p("design:type",Object)],PQ.prototype,"expanded",void 0);_.L([_.U({disableElementRegistration:!0,is:"ytd-sponsorships-loyalty-badges-renderer"})],PQ);
_.D(PQ,"ytd-sponsorships-loyalty-badges-renderer",function(){if(uI1!==void 0)return uI1;var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-sponsorships-loyalty-badges-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="description-container style-scope ytd-sponsorships-loyalty-badges-renderer">\n  <yt-formatted-string class="description style-scope ytd-sponsorships-loyalty-badges-renderer" text="[[data.description]]">\n  </yt-formatted-string>\n</div>\n<div class="badge-container style-scope ytd-sponsorships-loyalty-badges-renderer">\n  <template is="dom-repeat" items="[[data.loyaltyBadges]]" class="style-scope ytd-sponsorships-loyalty-badges-renderer">\n    <div class$="[[getBadgeRowClass(data, index, expanded)]] style-scope ytd-sponsorships-loyalty-badges-renderer">\n      <div class="badge-title-container style-scope ytd-sponsorships-loyalty-badges-renderer">\n        <yt-formatted-string class="badge-title style-scope ytd-sponsorships-loyalty-badges-renderer" text="[[item.sponsorshipsLoyaltyBadgeRenderer.title]]">\n        </yt-formatted-string>\n      </div>\n      <div class="icon-container style-scope ytd-sponsorships-loyalty-badges-renderer">\n        <yt-img-shadow class="badge-icon style-scope ytd-sponsorships-loyalty-badges-renderer" thumbnail="[[item.sponsorshipsLoyaltyBadgeRenderer.icon]]">\n        </yt-img-shadow>\n      </div>\n    </div>\n  </template>\n</div>\n');a.content.insertBefore(_.w().content.cloneNode(!0),
a.content.firstChild);return uI1=a},{mode:1});var EUX;var ZC=function(){var a=_.G.apply(this,arguments)||this;a.expanded=!0;return a};
_.b(ZC,_.G);ZC.prototype.getContainerClasses=function(a,z){a=a?"expanded":"collapsed";z&&(a+=" item");return a};
_.L([_.Q(_.k.YtRendererBehavior),_.p("design:type",Object)],ZC.prototype,"ytRendererBehavior",void 0);_.L([_.x(),_.p("design:type",Object)],ZC.prototype,"data",void 0);_.L([_.x(),_.p("design:type",Object)],ZC.prototype,"expanded",void 0);_.L([_.U({disableElementRegistration:!0,is:"ytd-sponsorships-perk-renderer"})],ZC);
_.D(ZC,"ytd-sponsorships-perk-renderer",function(){if(EUX!==void 0)return EUX;var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-sponsorships-perk-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="container" class$="[[getContainerClasses(expanded, data.title)]] style-scope ytd-sponsorships-perk-renderer">\n  <div class="style-scope ytd-sponsorships-perk-renderer"><yt-formatted-string id="title" text="[[data.title]]" class="style-scope ytd-sponsorships-perk-renderer"></yt-formatted-string></div>\n  <div id="expandable" hidden$="[[!expanded]]" class="style-scope ytd-sponsorships-perk-renderer">\n    <template is="dom-if" if="[[data.description]]" class="style-scope ytd-sponsorships-perk-renderer">\n      <div class="style-scope ytd-sponsorships-perk-renderer"><yt-formatted-string id="description" text="[[data.description]]" class="style-scope ytd-sponsorships-perk-renderer"></yt-formatted-string></div>\n    </template>\n    <template is="dom-if" if="[[data.fulfillmentInstructions]]" class="style-scope ytd-sponsorships-perk-renderer">\n      <div id="fulfillment-instructions" class="style-scope ytd-sponsorships-perk-renderer"><yt-formatted-string split-lines="1" text="[[data.fulfillmentInstructions]]" class="style-scope ytd-sponsorships-perk-renderer"></yt-formatted-string></div>\n    </template>\n  </div>\n  <template is="dom-if" if="[[data.loyaltyBadges]]" class="style-scope ytd-sponsorships-perk-renderer">\n    <ytd-sponsorships-loyalty-badges-renderer data="[[data.loyaltyBadges.sponsorshipsLoyaltyBadgesRenderer]]" expanded="[[expanded]]" class="style-scope ytd-sponsorships-perk-renderer"></ytd-sponsorships-loyalty-badges-renderer>\n  </template>\n  <template is="dom-if" if="[[!data.loyaltyBadges]]" class="style-scope ytd-sponsorships-perk-renderer">\n    <div id="images-line" class="style-scope ytd-sponsorships-perk-renderer">\n      <yt-formatted-string id="image-description" text="[[data.imageDescription]]" class="style-scope ytd-sponsorships-perk-renderer"></yt-formatted-string>\n      <template is="dom-if" if="[[data.images]]" class="style-scope ytd-sponsorships-perk-renderer">\n        <template is="dom-repeat" items="[[data.images]]" as="image" class="style-scope ytd-sponsorships-perk-renderer">\n          <yt-img-shadow class="images style-scope ytd-sponsorships-perk-renderer" thumbnail="[[image]]"></yt-img-shadow>\n        </template>\n      </template>\n    </div>\n  </template>\n  <template is="dom-if" if="[[data.loyaltyMessage]]" class="style-scope ytd-sponsorships-perk-renderer">\n    <yt-live-chat-membership-item-renderer data="[[data.loyaltyMessage.liveChatMembershipItemRenderer]]" expanded="[[expanded]]" class="style-scope ytd-sponsorships-perk-renderer"></yt-live-chat-membership-item-renderer>\n  </template>\n</div>\n');a.content.insertBefore(_.w().content.cloneNode(!0),
a.content.firstChild);return EUX=a},{mode:1});var BXl;var CK=function(){var a=_.G.apply(this,arguments)||this;a.expanded=!0;return a};
_.b(CK,_.G);_.L([_.Q(_.k.YtRendererBehavior),_.p("design:type",Object)],CK.prototype,"ytRendererBehavior",void 0);_.L([_.x(),_.p("design:type",Object)],CK.prototype,"data",void 0);_.L([_.x(),_.p("design:type",Object)],CK.prototype,"expanded",void 0);_.L([_.U({disableElementRegistration:!0,is:"ytd-sponsorships-perks-renderer"})],CK);
_.D(CK,"ytd-sponsorships-perks-renderer",function(){if(BXl!==void 0)return BXl;var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-sponsorships-perks-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-formatted-string id="perks-title" hidden="[[!data.perksTitle]]" text="[[data.perksTitle]]" class="style-scope ytd-sponsorships-perks-renderer">\n</yt-formatted-string>\n<template is="dom-repeat" items="[[data.perks]]" class="style-scope ytd-sponsorships-perks-renderer">\n  <div class="item style-scope ytd-sponsorships-perks-renderer">\n    <ytd-sponsorships-perk-renderer data="[[item.sponsorshipsPerkRenderer]]" expanded="[[expanded]]" class="style-scope ytd-sponsorships-perks-renderer">\n    </ytd-sponsorships-perk-renderer>\n  </div>\n</template>\n');a.content.insertBefore(_.w().content.cloneNode(!0),
a.content.firstChild);return BXl=a},{mode:1});var NB=function(){var a=_.G.apply(this,arguments)||this;a.isCollapsed=!1;return a};
_.b(NB,_.G);NB.prototype.onDataChanged=function(){this.data&&(this.isCollapsed=!this.data.startExpanded)};
NB.prototype.onExpandCollapse=function(){this.isCollapsed=!this.isCollapsed};
NB.prototype.updateExpandCollapseButton=function(){if(this.isCollapsed){var a;this.expandCollapseButton=_.H((a=this.data)==null?void 0:a.expandButton,_.lc)}else{var z;this.expandCollapseButton=_.H((z=this.data)==null?void 0:z.collapseButton,_.lc)}};
NB.prototype.updateExpandCollapseButton=NB.prototype.updateExpandCollapseButton;NB.prototype.onDataChanged=NB.prototype.onDataChanged;_.L([_.Q(_.k.YtRendererBehavior),_.p("design:type",Object)],NB.prototype,"ytRendererBehavior",void 0);_.L([_.x(),_.p("design:type",Object)],NB.prototype,"data",void 0);_.L([_.x({reflectToAttribute:!0}),_.p("design:type",Object)],NB.prototype,"isCollapsed",void 0);_.L([_.x(),_.p("design:type",Object)],NB.prototype,"expandCollapseButton",void 0);
_.L([_.Fe("data"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],NB.prototype,"onDataChanged",null);_.L([_.Fe("data","isCollapsed"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],NB.prototype,"updateExpandCollapseButton",null);_.L([_.U({disableElementRegistration:!0,is:"ytd-sponsorships-expandable-perks-renderer"})],NB);
_.D(NB,"ytd-sponsorships-expandable-perks-renderer",function(){if(t7X!==void 0)return t7X;var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-sponsorships-expandable-perks-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="badged-title style-scope ytd-sponsorships-expandable-perks-renderer">\n  <yt-img-shadow thumbnail="[[data.badge]]" class="style-scope ytd-sponsorships-expandable-perks-renderer"></yt-img-shadow>\n  <yt-formatted-string text="[[data.title]]" class="style-scope ytd-sponsorships-expandable-perks-renderer"></yt-formatted-string>\n</div>\n<yt-formatted-string class="subtitle style-scope ytd-sponsorships-expandable-perks-renderer" text="[[data.subtitle]]"></yt-formatted-string>\n<hr class="style-scope ytd-sponsorships-expandable-perks-renderer">\n<yt-formatted-string class="expandable-heading style-scope ytd-sponsorships-expandable-perks-renderer" text="[[data.expandableHeader]]"></yt-formatted-string>\n<ytd-button-renderer class="end-button style-scope ytd-sponsorships-expandable-perks-renderer" data="[[data.endButton.buttonRenderer]]"></ytd-button-renderer>\n<ytd-button-renderer class="bottom-button style-scope ytd-sponsorships-expandable-perks-renderer" data="[[data.bottomButton.buttonRenderer]]"></ytd-button-renderer>\n<ytd-button-renderer class="expand-collapse-button style-scope ytd-sponsorships-expandable-perks-renderer" data="[[expandCollapseButton]]" noink="" on-click="onExpandCollapse"></ytd-button-renderer>\n\n<div class="expandable-content style-scope ytd-sponsorships-expandable-perks-renderer">\n  <template is="dom-repeat" items="[[data.expandableItems]]" as="item" class="style-scope ytd-sponsorships-expandable-perks-renderer">\n    <ytd-sponsorships-perk-renderer data="[[item.sponsorshipsPerkRenderer]]" class="style-scope ytd-sponsorships-expandable-perks-renderer"></ytd-sponsorships-perk-renderer>\n  </template>\n</div>\n');
a.content.insertBefore(_.w().content.cloneNode(!0),a.content.firstChild);return t7X=a},{mode:1});var gUf;var td=function(){return _.G.apply(this,arguments)||this};
_.b(td,_.G);td.prototype.handleAction=function(){this.data&&this.data.command&&this.ytComponentBehavior.resolveCommand(this.data.command)};
_.L([_.Q(_.Ms.YtComponentBehavior),_.p("design:type",Object)],td.prototype,"ytComponentBehavior",void 0);_.L([_.Q(_.k.YtRendererBehavior),_.p("design:type",Object)],td.prototype,"ytRendererBehavior",void 0);_.L([_.x(),_.p("design:type",Object)],td.prototype,"data",void 0);_.L([_.U({disableElementRegistration:!0,is:"ytd-sponsorships-actionable-message-renderer"})],td);
_.D(td,"ytd-sponsorships-actionable-message-renderer",function(){if(gUf!==void 0)return gUf;var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-sponsorships-actionable-message-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<button on-click="handleAction" class="style-scope ytd-sponsorships-actionable-message-renderer">\n  <yt-img-shadow id="icon" height="24" thumbnail="[[data.icon]]" width="24" class="style-scope ytd-sponsorships-actionable-message-renderer"></yt-img-shadow>\n  <yt-formatted-string id="title" text="[[data.title]]" class="style-scope ytd-sponsorships-actionable-message-renderer"></yt-formatted-string>\n</button>\n');
a.content.insertBefore(_.w().content.cloneNode(!0),a.content.firstChild);return gUf=a},{mode:1});var OkI;var u5=function(){return _.G.apply(this,arguments)||this};
_.b(u5,_.G);_.Z=u5.prototype;_.Z.configureRendererStamper=function(){return{"data.expandableItems":{id:"content-container",mapping:{sponsorshipsPerksRenderer:{component:"ytd-sponsorships-perks-renderer"},sponsorshipsTierRenderer:{component:"ytd-sponsorships-tier-renderer"}}}}};
_.Z.getExpansionIcon=function(a){return a?"COLLAPSE":"EXPAND"};
_.Z.onToggleExpand=function(){this.data.expandableItems&&this.set("expanded",!this.get("expanded"))};
_.Z.computeMessageContainerStyle=function(a){var z=a.expandableItems?" style-clickable":"";return a.messageContainerStyle?a.messageContainerStyle.split("MESSAGE_CONTAINER_")[1].replace(/_/g,"-").toLowerCase()+z:"style-unspecified"+z};
_.Z.isSinglePerk=function(a){return!!a.messageContainerStyle&&(a.messageContainerStyle==="MESSAGE_CONTAINER_STYLE_SINGLE_PERK"||a.messageContainerStyle==="MESSAGE_CONTAINER_STYLE_SINGLE_PERK_FIRST")};
_.Z.onExpandedChanged=function(){var a=this;if(this.expanded)for(var z=_.C(this.hostElement.querySelectorAll("yt-img-shadow")),I=z.next();!I.done;I=z.next())I.value.onShow();_.Yv(this,function(){_.PA(a.hostElement,"yt-refit")})};
_.Z.onDataChanged=function(){this.get("data.startExpanded")&&(this.expanded=!0)};
u5.prototype.onDataChanged=u5.prototype.onDataChanged;u5.prototype.onExpandedChanged=u5.prototype.onExpandedChanged;_.L([_.Q(_.k.YtRendererBehavior),_.p("design:type",Object)],u5.prototype,"ytRendererBehavior",void 0);_.L([_.Q(_.u4.YtRendererstamperBehavior),_.p("design:type",Object)],u5.prototype,"ytRendererstamperBehavior",void 0);_.L([_.x(),_.p("design:type",Object)],u5.prototype,"data",void 0);_.L([_.x({value:!1}),_.p("design:type",Boolean)],u5.prototype,"expanded",void 0);
_.L([_.O8("expanded"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],u5.prototype,"onExpandedChanged",null);_.L([_.O8("data"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],u5.prototype,"onDataChanged",null);_.L([_.U({disableElementRegistration:!0,is:"ytd-sponsorships-expandable-message-renderer"})],u5);
_.D(u5,"ytd-sponsorships-expandable-message-renderer",function(){if(OkI!==void 0)return OkI;var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-sponsorships-expandable-message-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class$="[[computeMessageContainerStyle(data)]] style-scope ytd-sponsorships-expandable-message-renderer">\n  <button id="message-container" on-tap="onToggleExpand" class="style-scope ytd-sponsorships-expandable-message-renderer">\n    <template is="dom-if" if="[[isSinglePerk(data)]]" class="style-scope ytd-sponsorships-expandable-message-renderer">\n      <yt-icon id="check-icon" icon="yt-icons:check" class="style-scope ytd-sponsorships-expandable-message-renderer"></yt-icon>\n    </template>\n    <yt-formatted-string class="text style-scope ytd-sponsorships-expandable-message-renderer" text="[[data.text]]"></yt-formatted-string>\n    <template is="dom-if" if="[[data.expandableItems]]" class="style-scope ytd-sponsorships-expandable-message-renderer">\n      <yt-icon id="expand-icon" icon="[[getExpansionIcon(expanded)]]" class="style-scope ytd-sponsorships-expandable-message-renderer"></yt-icon>\n    </template>\n  </button>\n  <div id="content-container" hidden="[[!expanded]]" class="style-scope ytd-sponsorships-expandable-message-renderer"></div>\n</div>\n');
a.content.insertBefore(_.w().content.cloneNode(!0),a.content.firstChild);return OkI=a},{mode:_.Np("kevlar_poly_si_batch_j028")?1:2});var fni;var Eq=function(){return _.G.apply(this,arguments)||this};
_.b(Eq,_.G);Eq.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"}}}}};
Eq.prototype.onDataChanged=function(){this.get("data.endButton.buttonRenderer.text")&&this.get("data.endButton.buttonRenderer.icon")&&(_.H(this.data.endButton,_.lc).iconPosition="BUTTON_ICON_POSITION_TYPE_RIGHT_OF_TEXT")};
Eq.prototype.onDataChanged=Eq.prototype.onDataChanged;_.L([_.Q(_.k.YtRendererBehavior),_.p("design:type",Object)],Eq.prototype,"ytRendererBehavior",void 0);_.L([_.Q(_.u4.YtRendererstamperBehavior),_.p("design:type",Object)],Eq.prototype,"ytRendererstamperBehavior",void 0);_.L([_.x(),_.p("design:type",Object)],Eq.prototype,"data",void 0);_.L([_.O8("data"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],Eq.prototype,"onDataChanged",null);
_.L([_.U({disableElementRegistration:!0,is:"ytd-sponsorships-heading-renderer"})],Eq);
_.D(Eq,"ytd-sponsorships-heading-renderer",function(){if(fni!==void 0)return fni;var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-sponsorships-heading-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="content" class="style-scope ytd-sponsorships-heading-renderer">\n  <yt-formatted-string id="title" text="[[data.title]]" class="style-scope ytd-sponsorships-heading-renderer"></yt-formatted-string>\n  <div id="subtitle-content" hidden="[[!data.subtitle]]" class="style-scope ytd-sponsorships-heading-renderer">\n    <yt-img-shadow id="subtitle-icon" hidden="[[!data.subtitleIcon]]" thumbnail="[[data.subtitleIcon]]" class="style-scope ytd-sponsorships-heading-renderer">\n    </yt-img-shadow>\n    <yt-formatted-string id="subtitle" text="[[data.subtitle]]" class="style-scope ytd-sponsorships-heading-renderer"></yt-formatted-string>\n  </div>\n  <div id="bottom-button" class="style-scope ytd-sponsorships-heading-renderer"></div>\n</div>\n<div id="end-button" class="style-scope ytd-sponsorships-heading-renderer"></div>\n');a.content.insertBefore(_.w().content.cloneNode(!0),
a.content.firstChild);return fni=a},{mode:1});var Ani;var BQ=function(){return _.G.apply(this,arguments)||this};
_.b(BQ,_.G);_.L([_.x(),_.p("design:type",Object)],BQ.prototype,"data",void 0);_.L([_.Q(_.k.YtRendererBehavior),_.p("design:type",Object)],BQ.prototype,"ytRendererBehavior",void 0);_.L([_.U({disableElementRegistration:!0,is:"ytd-sponsorships-links-renderer"})],BQ);
_.D(BQ,"ytd-sponsorships-links-renderer",function(){if(Ani!==void 0)return Ani;var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-sponsorships-links-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<template is="dom-repeat" items="[[data.links]]" class="style-scope ytd-sponsorships-links-renderer">\n  <yt-formatted-string class="link style-scope ytd-sponsorships-links-renderer" link-inherit-color="" text="[[item]]">\n</yt-formatted-string></template>\n');a.content.insertBefore(_.w().content.cloneNode(!0),
a.content.firstChild);return Ani=a},{mode:1});var s6G;var gx=function(){return _.G.apply(this,arguments)||this};
_.b(gx,_.G);_.Z=gx.prototype;_.Z.onDataChanged=function(){if(this.data&&this.data.expandableItems){var a;(a=_.PK(this.hostElement).querySelector("tp-yt-paper-button"))==null||a.setAttribute("role","button")}else{var z;(z=_.PK(this.hostElement).querySelector("tp-yt-paper-button"))==null||z.removeAttribute("role")}};
_.Z.onToggleExpand=function(){this.data&&this.data.expandableItems&&this.set("expanded",!this.get("expanded"))};
_.Z.getExpansionIcon=function(a){return a?"COLLAPSE":"EXPAND"};
_.Z.getTileClasses=function(a){return a?"tile expandable-tile":"tile"};
_.Z.getButtonDisabled=function(a){return a?void 0:""};
gx.prototype.onDataChanged=gx.prototype.onDataChanged;_.L([_.Q(_.k.YtRendererBehavior),_.p("design:type",Object)],gx.prototype,"ytRendererBehavior",void 0);_.L([_.x(),_.p("design:type",Object)],gx.prototype,"data",void 0);_.L([_.x({value:!1}),_.p("design:type",Boolean)],gx.prototype,"expanded",void 0);_.L([_.O8("data"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],gx.prototype,"onDataChanged",null);
_.L([_.U({disableElementRegistration:!0,is:"ytd-sponsorships-list-tile-renderer"})],gx);
_.D(gx,"ytd-sponsorships-list-tile-renderer",function(){if(s6G!==void 0)return s6G;var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-sponsorships-list-tile-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<tp-yt-paper-button id="tile" class="tile style-scope ytd-sponsorships-list-tile-renderer" class$="[[getTileClasses(data.expandableItems)]]" disabled$="[[getButtonDisabled(data.expandableItems)]]" noink="" on-tap="onToggleExpand">\n  <yt-img-shadow class="icon style-scope ytd-sponsorships-list-tile-renderer" thumbnail="[[data.icon]]"></yt-img-shadow>\n  <div class="titles style-scope ytd-sponsorships-list-tile-renderer">\n    <yt-formatted-string class="title style-scope ytd-sponsorships-list-tile-renderer" text="[[data.title]]"></yt-formatted-string>\n    <yt-formatted-string class="subtitle style-scope ytd-sponsorships-list-tile-renderer" text="[[data.subtitle]]"></yt-formatted-string>\n    <yt-formatted-string class="detail style-scope ytd-sponsorships-list-tile-renderer" text="[[data.detail]]"></yt-formatted-string>\n  </div>\n  <template is="dom-if" if="[[data.expandableItems]]" class="style-scope ytd-sponsorships-list-tile-renderer">\n    <yt-icon class="expand-icon style-scope ytd-sponsorships-list-tile-renderer" icon="[[getExpansionIcon(expanded)]]"></yt-icon>\n  </template>\n</tp-yt-paper-button>\n\n<template is="dom-if" if="[[expanded]]" class="style-scope ytd-sponsorships-list-tile-renderer">\n  <div class="tiles-container style-scope ytd-sponsorships-list-tile-renderer">\n    <template is="dom-repeat" items="[[data.expandableItems]]" class="style-scope ytd-sponsorships-list-tile-renderer">\n      <template is="dom-if" if="[[item.sponsorshipsLoyaltyBadgesRenderer]]" class="style-scope ytd-sponsorships-list-tile-renderer">\n        <ytd-sponsorships-loyalty-badges-renderer class="sponsorships-loyalty-badges-renderer style-scope ytd-sponsorships-list-tile-renderer" data="[[item.sponsorshipsLoyaltyBadgesRenderer]]"></ytd-sponsorships-loyalty-badges-renderer>\n      </template>\n      <template is="dom-if" if="[[item.sponsorshipsListTileRenderer]]" class="style-scope ytd-sponsorships-list-tile-renderer">\n        <div class="tile style-scope ytd-sponsorships-list-tile-renderer">\n          <yt-img-shadow class="icon style-scope ytd-sponsorships-list-tile-renderer" thumbnail="[[item.sponsorshipsListTileRenderer.icon]]">\n          </yt-img-shadow>\n          <div class="titles style-scope ytd-sponsorships-list-tile-renderer">\n            <yt-formatted-string class="title style-scope ytd-sponsorships-list-tile-renderer" text="[[item.sponsorshipsListTileRenderer.title]]">\n            </yt-formatted-string>\n            <yt-formatted-string class="subtitle style-scope ytd-sponsorships-list-tile-renderer" text="[[item.sponsorshipsListTileRenderer.subtitle]]">\n            </yt-formatted-string>\n          </div>\n        </div>\n      </template>\n    </template>\n  </div>\n</template>\n');a.content.insertBefore(_.w().content.cloneNode(!0),
a.content.firstChild);return s6G=a},{mode:1});var nUO;var KTE;var Oq=function(){return _.G.apply(this,arguments)||this};
_.b(Oq,_.G);Oq.prototype.configureRendererStamper=function(){return{"data.redeemButton":{id:"redeem-button",mapping:{buttonRenderer:{component:"yt-button-renderer"}}}}};
_.L([_.Q(_.k.YtRendererBehavior),_.p("design:type",Object)],Oq.prototype,"ytRendererBehavior",void 0);_.L([_.Q(_.u4.YtRendererstamperBehavior),_.p("design:type",Object)],Oq.prototype,"ytRendererstamperBehavior",void 0);_.L([_.x(),_.p("design:type",Object)],Oq.prototype,"data",void 0);_.L([_.U({disableElementRegistration:!0,is:"ytd-sponsorships-promotion-renderer"})],Oq);
_.D(Oq,"ytd-sponsorships-promotion-renderer",function(){if(KTE!==void 0)return KTE;var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-sponsorships-promotion-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="content" class="style-scope ytd-sponsorships-promotion-renderer">\n  <div id="above-button" class="style-scope ytd-sponsorships-promotion-renderer">\n    <yt-formatted-string class="above-redeem-button-text style-scope ytd-sponsorships-promotion-renderer" text="[[data.aboveRedeemButtonText]]"></yt-formatted-string>\n    <ytd-badge-supported-renderer top-standalone-badge="[[data.badge]]" class="style-scope ytd-sponsorships-promotion-renderer">\n    </ytd-badge-supported-renderer>\n  </div>\n  <div id="redeem-button" class="style-scope ytd-sponsorships-promotion-renderer"></div>\n  <yt-formatted-string class="redeem-disclaimer style-scope ytd-sponsorships-promotion-renderer" split-lines="true" text="[[data.redeemDisclaimer]]"></yt-formatted-string>\n</div>\n');
a.content.insertBefore(_.w().content.cloneNode(!0),a.content.firstChild);return KTE=a},{mode:1});var FTl;var fK=function(){return _.G.apply(this,arguments)||this};
_.b(fK,_.G);fK.prototype.configureRendererStamper=function(){return{"data.button":{id:"purchase-button",mapping:{buttonRenderer:{component:"yt-button-renderer"}}}}};
_.L([_.Q(_.k.YtRendererBehavior),_.p("design:type",Object)],fK.prototype,"ytRendererBehavior",void 0);_.L([_.Q(_.u4.YtRendererstamperBehavior),_.p("design:type",Object)],fK.prototype,"ytRendererstamperBehavior",void 0);_.L([_.x(),_.p("design:type",Object)],fK.prototype,"data",void 0);_.L([_.U({disableElementRegistration:!0,is:"ytd-sponsorships-purchase-option-renderer"})],fK);
_.D(fK,"ytd-sponsorships-purchase-option-renderer",function(){if(FTl!==void 0)return FTl;var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-sponsorships-purchase-option-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="content" class="style-scope ytd-sponsorships-purchase-option-renderer">\n  <div id="purchase-info" class="style-scope ytd-sponsorships-purchase-option-renderer">\n    <div id="header" class="style-scope ytd-sponsorships-purchase-option-renderer">\n      <yt-formatted-string class="purchase-text style-scope ytd-sponsorships-purchase-option-renderer" text="[[data.text]]"></yt-formatted-string>\n      <ytd-badge-supported-renderer top-standalone-badge="[[data.badge]]" class="style-scope ytd-sponsorships-purchase-option-renderer">\n      </ytd-badge-supported-renderer>\n    </div>\n    <yt-formatted-string class="disclaimer style-scope ytd-sponsorships-purchase-option-renderer" split-lines="true" text="[[data.disclaimer]]"></yt-formatted-string>\n  </div>\n  <div id="purchase-button" class="style-scope ytd-sponsorships-purchase-option-renderer"></div>\n</div>\n');
a.content.insertBefore(_.w().content.cloneNode(!0),a.content.firstChild);return FTl=a},{mode:1});var Hkw;var bko;var hWJ=function(){return _.G.apply(this,arguments)||this};
_.b(hWJ,_.G);_.L([_.x(),_.p("design:type",Object)],hWJ.prototype,"data",void 0);_.L([_.U({disableElementRegistration:!0,is:"ytd-ypc-offer-promo-renderer"})],hWJ);
_.D(hWJ,"ytd-ypc-offer-promo-renderer",function(){if(bko!==void 0)return bko;var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-ypc-offer-promo-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="content" class="style-scope ytd-ypc-offer-promo-renderer">\n  <yt-icon id="icon" icon="[[data.icon.iconType]]" class="style-scope ytd-ypc-offer-promo-renderer"></yt-icon>\n  <div id="benefit-info" class="style-scope ytd-ypc-offer-promo-renderer">\n    <div id="header" class="style-scope ytd-ypc-offer-promo-renderer">\n      <yt-formatted-string class="title style-scope ytd-ypc-offer-promo-renderer" text="[[data.title]]">\n      </yt-formatted-string>\n    </div>\n    <div id="badge-section" class="style-scope ytd-ypc-offer-promo-renderer">\n      <ytd-badge-supported-renderer id="badge" top-standalone-badge="[[data.badge]]" class="style-scope ytd-ypc-offer-promo-renderer">\n        </ytd-badge-supported-renderer>\n    <yt-formatted-string class="subtitle style-scope ytd-ypc-offer-promo-renderer" text="[[data.subtitle]]">\n    </yt-formatted-string>\n    </div>\n  </div>\n</div>');a.content.insertBefore(_.w().content.cloneNode(!0),
a.content.firstChild);return bko=a},{mode:1});var Ad=function(){return _.G.apply(this,arguments)||this};
_.b(Ad,_.G);_.Z=Ad.prototype;
_.Z.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"}}}}};
_.Z.expansionCTA=function(a,z){return a&&(z?a.collapseCallToAction:a.expansionCallToAction)};
_.Z.getExpansionIcon=function(a){return a?"COLLAPSE":"EXPAND"};
_.Z.expansionCallToActionTap=function(){var a=this;this.expanded=!this.expanded;_.Yv(this,function(){_.PA(a.hostElement,"yt-refit")})};
_.Z.onDataChanged=function(){this.expanded=!this.get("data.expansionCallToAction");this.purchaseButtonClicked=!1;var a,z=(a=this.data)==null?void 0:a.onVisible;z&&this.ytComponentBehavior.resolveCommand(z)};
_.Z.computeDisplayTitle=function(a){return!(!a||this.titledisplaystatus!=="show")};
_.Z.computeDisplaySeparator=function(){return!1};
_.Z.onPurchaseButtonTap=function(){this.purchaseButtonClicked=!0};
Ad.prototype.onDataChanged=Ad.prototype.onDataChanged;_.L([_.Q(_.k.YtRendererBehavior),_.p("design:type",Object)],Ad.prototype,"ytRendererBehavior",void 0);_.L([_.Q(_.Ms.YtComponentBehavior),_.p("design:type",Object)],Ad.prototype,"ytComponentBehavior",void 0);_.L([_.Q(_.u4.YtRendererstamperBehavior),_.p("design:type",Object)],Ad.prototype,"ytRendererstamperBehavior",void 0);_.L([_.x(),_.p("design:type",Object)],Ad.prototype,"data",void 0);
_.L([_.x({value:!1}),_.p("design:type",Boolean)],Ad.prototype,"expanded",void 0);_.L([_.x({value:!1}),_.p("design:type",Boolean)],Ad.prototype,"purchaseButtonClicked",void 0);_.L([_.x({reflectToAttribute:!0,value:"show"}),_.p("design:type",String)],Ad.prototype,"titledisplaystatus",void 0);_.L([_.x({computed:"computeDisplayTitle(data.title)"}),_.p("design:type",Boolean)],Ad.prototype,"displayTitle",void 0);
_.L([_.x({computed:"computeDisplaySeparator(data)"}),_.p("design:type",Boolean)],Ad.prototype,"displaySeparator",void 0);_.L([_.Fe("data"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],Ad.prototype,"onDataChanged",null);_.L([_.U({disableElementRegistration:!0,is:"ytd-sponsorships-tier-renderer"})],Ad);
_.D(Ad,"ytd-sponsorships-tier-renderer",function(){if(Hkw!==void 0)return Hkw;var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-sponsorships-tier-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e\n<div id="title" hidden="[[!displayTitle]]" class="style-scope ytd-sponsorships-tier-renderer">\n  <yt-formatted-string text="[[data.title]]" class="style-scope ytd-sponsorships-tier-renderer"></yt-formatted-string>\n</div>\n<div id="offer-promo" hidden="[[!data.offerPromoCard]]" class="style-scope ytd-sponsorships-tier-renderer">\n</div>\n<div id="purchase-with-options" hidden="[[!data.purchaseOption]]" class="style-scope ytd-sponsorships-tier-renderer">\n  <div id="purchase-option" class="style-scope ytd-sponsorships-tier-renderer"></div>\n  <div class="separator style-scope ytd-sponsorships-tier-renderer" hidden="[[!data.alternativePurchaseOption]]"></div>\n  <div id="alternative-purchase-option" class="style-scope ytd-sponsorships-tier-renderer"></div>\n</div>\n<div id="default-purchase-view" hidden="[[data.purchaseOption]]" class="style-scope ytd-sponsorships-tier-renderer">\n  <div id="above-purchase-button" hidden="[[!data.abovePurchaseButtonText]]" class="style-scope ytd-sponsorships-tier-renderer">\n    <yt-formatted-string id="above-purchase-button-text" text="[[data.abovePurchaseButtonText]]" class="style-scope ytd-sponsorships-tier-renderer"></yt-formatted-string>\n    <yt-formatted-string id="above-purchase-button-text-subtitle" class="subtitle style-scope ytd-sponsorships-tier-renderer" text="[[data.abovePurchaseButtonTextSubtitle]]"></yt-formatted-string>\n  </div>\n  <div id="premium-freebie-promo" class="style-scope ytd-sponsorships-tier-renderer"></div>\n  <div class="separator style-scope ytd-sponsorships-tier-renderer" hidden="[[!displaySeparator]]"></div>\n  <div id="header" class="style-scope ytd-sponsorships-tier-renderer">\n    <div id="purchase-button" on-tap="onPurchaseButtonTap" class="style-scope ytd-sponsorships-tier-renderer"></div>\n    \n    <yt-formatted-string id="purchase-text" force-default-style="" hidden="[[!data.purchaseText]]" text="[[data.purchaseText]]" class="style-scope ytd-sponsorships-tier-renderer">\n    </yt-formatted-string>\n    <yt-formatted-string class="disclaimer style-scope ytd-sponsorships-tier-renderer" split-lines="true" text="[[data.disclaimer]]">\n    </yt-formatted-string>\n  </div>\n</div>\n<div class="separator style-scope ytd-sponsorships-tier-renderer" hidden="[[!displaySeparator]]"></div>\n<div id="expandable-message" class="style-scope ytd-sponsorships-tier-renderer"></div>\n<div id="content" class="style-scope ytd-sponsorships-tier-renderer">\n  <div id="perks_section" class="style-scope ytd-sponsorships-tier-renderer">\n    <ytd-sponsorships-perks-renderer id="perks" data="[[data.perks.sponsorshipsPerksRenderer]]" expanded="[[expanded]]" class="style-scope ytd-sponsorships-tier-renderer"></ytd-sponsorships-perks-renderer>\n  </div>\n  <button id="expansion_call_to_action" on-tap="expansionCallToActionTap" hidden="[[!data.expansionCallToAction]]" class="style-scope ytd-sponsorships-tier-renderer">\n    <yt-formatted-string text="[[expansionCTA(data, expanded)]]" class="style-scope ytd-sponsorships-tier-renderer"></yt-formatted-string>\n    <yt-icon class="expand-icon style-scope ytd-sponsorships-tier-renderer" icon="[[getExpansionIcon(expanded)]]"></yt-icon>\n  </button>\n</div>\n<div id="footer" class="style-scope ytd-sponsorships-tier-renderer">\n  <yt-formatted-string id="bottom-disclaimer" class="disclaimer style-scope ytd-sponsorships-tier-renderer" split-lines="true" text="[[data.bottomDisclaimer]]">\n  </yt-formatted-string>\n</div>\n');a.content.insertBefore(_.w().content.cloneNode(!0),
a.content.firstChild);return Hkw=a},{mode:2});var sq=function(){return _.G.apply(this,arguments)||this};
_.b(sq,_.G);
sq.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"}}}}};
_.L([_.Q(_.k.YtRendererBehavior),_.p("design:type",Object)],sq.prototype,"ytRendererBehavior",void 0);_.L([_.Q(_.u4.YtRendererstamperBehavior),_.p("design:type",Object)],sq.prototype,"ytRendererstamperBehavior",void 0);_.L([_.x(),_.p("design:type",Object)],sq.prototype,"data",void 0);_.L([_.U({disableElementRegistration:!0,is:"ytd-sponsorships-management-renderer"})],sq);
_.D(sq,"ytd-sponsorships-management-renderer",function(){if(nUO!==void 0)return nUO;var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-sponsorships-management-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="alert-renderer" class="style-scope ytd-sponsorships-management-renderer"></div>\n<div id="main-section" class="style-scope ytd-sponsorships-management-renderer">\n  <div id="content" class="style-scope ytd-sponsorships-management-renderer"></div>\n  <div id="sidebar" class="style-scope ytd-sponsorships-management-renderer"></div>\n</div>\n');
a.content.insertBefore(_.w().content.cloneNode(!0),a.content.firstChild);return nUO=a},{mode:1});var V7X;var nK=function(){return _.G.apply(this,arguments)||this};
_.b(nK,_.G);_.L([_.Q(_.k.YtRendererBehavior),_.p("design:type",Object)],nK.prototype,"ytRendererBehavior",void 0);_.L([_.x(),_.p("design:type",Object)],nK.prototype,"data",void 0);_.L([_.U({disableElementRegistration:!0,is:"ytd-open-in-native-app-view-model"})],nK);
_.D(nK,"ytd-open-in-native-app-view-model",function(){if(V7X!==void 0)return V7X;var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-open-in-native-app-view-model--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-attributed-string id="title" data="[[data.title]]" class="style-scope ytd-open-in-native-app-view-model">\n</yt-attributed-string>\n<yt-image id="image" data="[[data.image]]" ftl-eligible="" height="162" width="200" class="style-scope ytd-open-in-native-app-view-model">\n</yt-image>\n<yt-attributed-string id="text" data="[[data.detailsText]]" class="style-scope ytd-open-in-native-app-view-model">\n</yt-attributed-string>\n<yt-attributed-string id="link" data="[[data.learnMoreLink]]" force-default-style="" class="style-scope ytd-open-in-native-app-view-model">\n</yt-attributed-string>\n');a.content.insertBefore(_.w().content.cloneNode(!0),
a.content.firstChild);return V7X=a},{mode:_.Np("kevlar_poly_si_batch_j028")?1:2});var Q6X;var Syf;var ike=_.kK(["top-"]),xji=_.kK(["bottom-"]),vUj=_.kK(["left-"]),G51=_.kK(["right-"]),$je={},X6v=function(a,z,I){a.removeAttribute("top-"+I);a.removeAttribute("bottom-"+I);a.removeAttribute("left-"+I);a.removeAttribute("right-"+I);z&&(z.top&&_.qL([_.zB(ike)],a,"top-"+I,z.top),z.bottom&&_.qL([_.zB(xji)],a,"bottom-"+I,z.bottom),z.left&&_.qL([_.zB(vUj)],a,"left-"+I,z.left),z.right&&_.qL([_.zB(G51)],a,"right-"+I,z.right))};
$je.YtCardItemBoxBehavior=[{observers:["cardItemContainerMarginChanged_(data.containerMargin)","cardItemContainerPaddingChanged_(data.containerPadding)"],created:function(){this.cardItemBoxBehaviorPaddingTargetId=""},
cardItemContainerMarginChanged_:function(a){var z,I=_.PK((z=this.hostElement)!=null?z:this),J;z=this.cardItemBoxBehaviorMarginTargetId&&I?I.querySelector("#"+this.cardItemBoxBehaviorMarginTargetId):(J=this.hostElement)!=null?J:this;X6v(z,a,"margin")},
cardItemContainerPaddingChanged_:function(a){var z,I=_.PK((z=this.hostElement)!=null?z:this),J;z=this.cardItemBoxBehaviorPaddingTargetId&&I?I.querySelector("#"+this.cardItemBoxBehaviorPaddingTargetId):(J=this.hostElement)!=null?J:this;X6v(z,a,"padding")}}];var KK={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 TXv;var djf;var Fa=function(){return _.G.apply(this,arguments)||this};
_.b(Fa,_.G);Fa.prototype.textColorChanged_=function(){this.hostElement.style.color=KK[this.data.textColor||"CARD_ITEM_COLOR_TEXT_PRIMARY"]};
Fa.prototype.textColorChanged_=Fa.prototype.textColorChanged_;_.L([_.Q(_.k.YtRendererBehavior),_.p("design:type",Object)],Fa.prototype,"ytRendererBehavior",void 0);_.L([_.Q($je.YtCardItemBoxBehavior),_.p("design:type",Object)],Fa.prototype,"ytCardItemBoxBehavior",void 0);_.L([_.x(),_.p("design:type",Object)],Fa.prototype,"data",void 0);_.L([_.O8("data.textColor"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],Fa.prototype,"textColorChanged_",null);
_.L([_.dz({is:"yt-card-item-text-renderer",disableElementRegistration:!0})],Fa);
_.D(Fa,"yt-card-item-text-renderer",function(){if(djf===void 0){var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-card-item-text-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.ypc.yt_card_item_text_renderer.yt.card.item.text.renderer.css.js--\x3e<yt-formatted-string id="card-text" force-default-style="" split-lines="1" text="[[data.text]]" text-style$="[[data.style]]" class="style-scope yt-card-item-text-renderer">\n</yt-formatted-string>\n');a.content.insertBefore(_.w().content.cloneNode(!0),
a.content.firstChild);var z=a.content,I=z.insertBefore;TXv===void 0&&(TXv=document.createElement("template"));var J=TXv;I.call(z,J.content.cloneNode(!0),a.content.firstChild);djf=a}a=djf;return a},{mode:2});var WT1;var oUi;var HQ=function(){return _.G.apply(this,arguments)||this};
_.b(HQ,_.G);_.L([_.Q(_.k.YtRendererBehavior),_.p("design:type",Object)],HQ.prototype,"ytRendererBehavior",void 0);_.L([_.x(),_.p("design:type",Object)],HQ.prototype,"data",void 0);_.L([_.dz({is:"yt-card-item-badge-renderer",disableElementRegistration:!0})],HQ);
_.D(HQ,"yt-card-item-badge-renderer",function(){if(oUi===void 0){var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-card-item-badge-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.ypc.yt_card_item_badge_renderer.yt.card.item.badge.renderer.css.js--\x3e<div id="card-block" class="style-scope yt-card-item-badge-renderer">\n  <ytd-badge-supported-renderer id="badges" badges="[[data.badges]]" hidden$="[[!data.badges]]" class="style-scope yt-card-item-badge-renderer">\n  </ytd-badge-supported-renderer>\n  <yt-formatted-string id="text" split-lines="1" text="[[data.text]]" class="style-scope yt-card-item-badge-renderer">\n  </yt-formatted-string>\n</div>\n\n');a.content.insertBefore(_.w().content.cloneNode(!0),
a.content.firstChild);var z=a.content,I=z.insertBefore;WT1===void 0&&(WT1=document.createElement("template"));var J=WT1;I.call(z,J.content.cloneNode(!0),a.content.firstChild);oUi=a}a=oUi;return a},{mode:2});var UjO;var DjG;var b5=function(){return _.G.apply(this,arguments)||this};
_.b(b5,_.G);b5.prototype.configureRendererStamper=function(){return{"data.textRenderers":{id:"text-renderers",mapping:{cardItemTextRenderer:{component:"yt-card-item-text-renderer"},cardItemBadgeRenderer:{component:"yt-card-item-badge-renderer"}}}}};
_.L([_.Q(_.k.YtRendererBehavior),_.p("design:type",Object)],b5.prototype,"ytRendererBehavior",void 0);_.L([_.Q(_.u4.YtRendererstamperBehavior),_.p("design:type",Object)],b5.prototype,"ytRendererstamperBehavior",void 0);_.L([_.x(),_.p("design:type",Object)],b5.prototype,"data",void 0);_.L([_.dz({is:"yt-card-item-text-collection-renderer",disableElementRegistration:!0})],b5);
_.D(b5,"yt-card-item-text-collection-renderer",function(){if(DjG===void 0){var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-card-item-text-collection-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.ypc.yt_card_item_text_collection_renderer.yt.card.item.text.collection.renderer.css.js--\x3e<div id="text-renderers" text-alignment$="[[data.textAlignment]]" class="style-scope yt-card-item-text-collection-renderer"></div>\n');a.content.insertBefore(_.w().content.cloneNode(!0),
a.content.firstChild);var z=a.content,I=z.insertBefore;UjO===void 0&&(UjO=document.createElement("template"));var J=UjO;I.call(z,J.content.cloneNode(!0),a.content.firstChild);DjG=a}a=DjG;return a},{mode:2});var RWf;var LTJ;var hd=function(){return _.G.apply(this,arguments)||this};
_.b(hd,_.G);hd.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]]"}}}}}};
_.L([_.Q(_.k.YtRendererBehavior),_.p("design:type",Object)],hd.prototype,"ytRendererBehavior",void 0);_.L([_.Q(_.u4.YtRendererstamperBehavior),_.p("design:type",Object)],hd.prototype,"ytRendererstamperBehavior",void 0);_.L([_.x(),_.p("design:type",Object)],hd.prototype,"data",void 0);_.L([_.x({reflectToAttribute:!0}),_.p("design:type",Number)],hd.prototype,"iconSize",void 0);_.L([_.dz({is:"yt-card-item-text-with-button-renderer",disableElementRegistration:!0})],hd);
_.D(hd,"yt-card-item-text-with-button-renderer",function(){if(LTJ===void 0){var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-card-item-text-with-button-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.ypc.yt_card_item_text_with_button_renderer.yt.card.item.text.with.button.renderer.css.js--\x3e<div id="card-item-text-collection-renderer" class="style-scope yt-card-item-text-with-button-renderer"></div>\n<div id="primary-button" aria-hidden="true" class="style-scope yt-card-item-text-with-button-renderer"></div>\n');
a.content.insertBefore(_.w().content.cloneNode(!0),a.content.firstChild);var z=a.content,I=z.insertBefore;RWf===void 0&&(RWf=document.createElement("template"));var J=RWf;I.call(z,J.content.cloneNode(!0),a.content.firstChild);LTJ=a}a=LTJ;return a},{mode:2});var Vo=function(){return _.G.apply(this,arguments)||this};
_.b(Vo,_.G);Vo.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"}}}};
_.L([_.Q(_.k.YtRendererBehavior),_.p("design:type",Object)],Vo.prototype,"ytRendererBehavior",void 0);_.L([_.Q(_.Ms.YtComponentBehavior),_.p("design:type",Object)],Vo.prototype,"ytComponentBehavior",void 0);_.L([_.Q(_.u4.YtRendererstamperBehavior),_.p("design:type",Object)],Vo.prototype,"ytRendererstamperBehavior",void 0);_.L([_.x(),_.p("design:type",Object)],Vo.prototype,"data",void 0);_.L([_.U({disableElementRegistration:!0,is:"ytd-commerce-cart-summary-line-item-renderer"})],Vo);
_.D(Vo,"ytd-commerce-cart-summary-line-item-renderer",function(){if(Syf!==void 0)return Syf;var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-commerce-cart-summary-line-item-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="summary-content" class="style-scope ytd-commerce-cart-summary-line-item-renderer">\n  <div id="summary-text" class="style-scope ytd-commerce-cart-summary-line-item-renderer"></div>\n  <div id="additional-metadata-text" class="style-scope ytd-commerce-cart-summary-line-item-renderer"></div>\n</div>\n<div id="price" class="style-scope ytd-commerce-cart-summary-line-item-renderer"></div>\n');
a.content.insertBefore(_.w().content.cloneNode(!0),a.content.firstChild);return Syf=a},{mode:1});_.$q("cardItemSection","commerceCartCheckoutButtonRenderer",{component:"ytd-commerce-cart-checkout-button-renderer",noInjection:!0,properties:{compact:"[[compact]]"}});var Qo=function(){var a=_.G.apply(this,arguments)||this;a.hidden=!1;return a};
_.b(Qo,_.G);_.Z=Qo.prototype;_.Z.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"}}}}};
_.Z.entityChanged=function(){this.commerceCartCheckoutButtonEntity&&(this.updateCheckoutButton(),this.updateIsHidden(),this.updateSummary())};
_.Z.updateSummary=function(){var a=this.commerceCartCheckoutButtonEntity,z;if(((z=this.data)==null?0:z.cartButton)&&a.checkoutSummaryText){var I,J=G0((I=this.data)==null?void 0:I.estimatedTotalLineItem,"summaryText");this.set("data.estimatedTotalLineItem."+J+".cardItemTextRenderer.text",$s(a.checkoutSummaryText));if(a.checkoutDetailText){var r;I=G0((r=this.data)==null?void 0:r.estimatedTotalLineItem,"price");this.set("data.estimatedTotalLineItem."+I+".cardItemTextRenderer.text",$s(a.checkoutDetailText))}if(a.checkoutAdditionalMetadataText){var P;
r=G0((P=this.data)==null?void 0:P.estimatedTotalLineItem,"additionalMetadataText");this.set("data.estimatedTotalLineItem."+r+".cardItemTextRenderer.text",$s(a.checkoutAdditionalMetadataText))}}else a.estimatedTotalPrice&&(P=G0((J=this.data)==null?void 0:J.estimatedTotalLineItem,"price"),this.set("data.estimatedTotalLineItem."+P+".cardItemTextRenderer.text",$s(a.estimatedTotalPrice)))};
_.Z.updateIsHidden=function(){var a,z=(a=this.commerceCartCheckoutButtonEntity)==null?void 0:a.isHidden;z!==void 0&&(this.hidden=z)};
_.Z.updateCheckoutButton=function(){var a,z=(a=this.commerceCartCheckoutButtonEntity)==null?void 0:a.isDisabled;z!==void 0&&this.set("data.checkoutButton.buttonRenderer.isDisabled",z);var I;a=(I=this.commerceCartCheckoutButtonEntity.checkoutButtonCommand)==null?void 0:I.innertubeCommand;a!==void 0&&this.set("data.checkoutButton.buttonRenderer.command",a);var J;I=(J=this.commerceCartCheckoutButtonEntity)==null?void 0:J.checkoutButtonText;I!==void 0&&this.set("data.checkoutButton.buttonRenderer.text",
{simpleText:I})};
Qo.prototype.entityChanged=Qo.prototype.entityChanged;_.L([_.Q(_.pV),_.p("design:type",Object)],Qo.prototype,"ytdReduxBehavior",void 0);_.L([_.Q(_.k.YtRendererBehavior),_.p("design:type",Object)],Qo.prototype,"ytRendererBehavior",void 0);_.L([_.Q(_.Ms.YtComponentBehavior),_.p("design:type",Object)],Qo.prototype,"ytComponentBehavior",void 0);_.L([_.Q(_.u4.YtRendererstamperBehavior),_.p("design:type",Object)],Qo.prototype,"ytRendererstamperBehavior",void 0);
_.L([_.x({reflectToAttribute:!0}),_.p("design:type",Boolean)],Qo.prototype,"fullWidth",void 0);_.L([_.x(),_.p("design:type",Object)],Qo.prototype,"data",void 0);_.L([_.x({reflectToAttribute:!0}),_.p("design:type",Boolean)],Qo.prototype,"compact",void 0);_.L([_.x({reflectToAttribute:!0}),_.p("design:type",Object)],Qo.prototype,"hidden",void 0);
_.L([_.x({selectorArgs:["data.commerceCartCheckoutButtonEntityKey"],selector:on$}),_.p("design:type",Object)],Qo.prototype,"commerceCartCheckoutButtonEntity",void 0);_.L([_.O8("commerceCartCheckoutButtonEntity","data"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],Qo.prototype,"entityChanged",null);_.L([_.U({disableElementRegistration:!0,is:"ytd-commerce-cart-checkout-button-renderer"})],Qo);
_.D(Qo,"ytd-commerce-cart-checkout-button-renderer",function(){if(Q6X!==void 0)return Q6X;var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-commerce-cart-checkout-button-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="estimated-total-line-item" class="style-scope ytd-commerce-cart-checkout-button-renderer"></div>\n<div id="checkout-button" class="style-scope ytd-commerce-cart-checkout-button-renderer"></div>\n<div id="cart-button" class="style-scope ytd-commerce-cart-checkout-button-renderer"></div>\n');
a.content.insertBefore(_.w().content.cloneNode(!0),a.content.firstChild);return Q6X=a},{mode:2});var lnl;_.p6v={};
_.p6v.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",_.BK(this,this.tappableItemBehaviorBoundOnTappableItemTap_))},
detached:function(){this.tappableItemBehaviorGetTappableTarget_().removeEventListener("keydown",this.tappableItemBehaviorBoundOnTappableItemKeyDown_,!0);this.tappableItemBehaviorGetTappableTarget_().removeEventListener("click",_.BK(this,this.tappableItemBehaviorBoundOnTappableItemTap_))},
tappableItemBehaviorOnTappableItemKeyDown_:function(a){!this.tappableItemBehaviorTapEnabled||a.keyCode!==13&&a.keyCode!==32||a.target!=this.tappableItemBehaviorGetTappableTarget_()||this.tappableItemBehaviorHandleTappableItemTap_()},
tappableItemBehaviorOnTappableItemTap_:function(){this.tappableItemBehaviorTapEnabled&&this.tappableItemBehaviorHandleTappableItemTap_()},
tappableItemBehaviorHandleTappableItemTap_:function(){var a=this.data.onTap;a.ypcGetCartEndpoint?(_.N$(this.hostElement,[a]),this.tappableItemBehaviorTapEnabled=!1):a.ypcOffersEndpoint?_.N$(this.hostElement,[a]):_.tR(this.hostElement,[a],this.hostElement)},
tappableItemBehaviorOnTapChanged_:function(a){this.tappableItemBehaviorTapEnabled=!!a},
tappableItemBehaviorOnTapEnabledChanged_:function(){var a=this.tappableItemBehaviorGetTappableTarget_();this.tappableItemBehaviorTapEnabled?(a.setAttribute("tabIndex",0),a.setAttribute("role","button")):(a.removeAttribute("tabIndex"),a.removeAttribute("role"))},
tappableItemBehaviorOnServiceRequestFinished_:function(a){a.target==this&&(this.tappableItemBehaviorTapEnabled=!!this.data.onTap)},
tappableItemBehaviorGetTappableTarget_:function(){return this.tappableItemBehaviorTargetId?this.$[this.tappableItemBehaviorTargetId]:this.hostElement}}];var w6l;var mjl;var SR=function(){return _.G.apply(this,arguments)||this};
_.b(SR,_.G);SR.prototype.configureRendererStamper=function(){return{"data.primaryButtonRenderer":{id:"primary-button-renderer",mapping:_.XT("sharingToggleButtonAndDefaultButton")},"data.secondaryButtonRenderer":{id:"secondary-button-renderer",mapping:_.XT("sharingToggleButtonAndDefaultButton")}}};
_.L([_.Q(_.u4.YtRendererstamperBehavior),_.p("design:type",Object)],SR.prototype,"ytRendererstamperBehavior",void 0);_.L([_.Q(_.k.YtRendererBehavior),_.p("design:type",Object)],SR.prototype,"ytRendererBehavior",void 0);_.L([_.x(),_.p("design:type",Object)],SR.prototype,"data",void 0);_.L([_.dz({is:"yt-card-item-actions-renderer",disableElementRegistration:!0})],SR);
_.D(SR,"yt-card-item-actions-renderer",function(){if(mjl===void 0){var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-card-item-actions-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.ypc.yt_card_item_actions_renderer.yt.card.item.actions.renderer.css.js--\x3e<div id="secondary-button-renderer" hidden$="[[!data.secondaryButtonRenderer]]" class="style-scope yt-card-item-actions-renderer"></div>\n<div id="primary-button-renderer" hidden$="[[!data.primaryButtonRenderer]]" class="style-scope yt-card-item-actions-renderer"></div>\n');a.content.insertBefore(_.w().content.cloneNode(!0),
a.content.firstChild);var z=a.content,I=z.insertBefore;w6l===void 0&&(w6l=document.createElement("template"));var J=w6l;I.call(z,J.content.cloneNode(!0),a.content.firstChild);mjl=a}a=mjl;return a},{mode:2});var ynf;var k5e;var M7l;var cnG;var YyE;var qyi;var i5=function(){var a=_.G.apply(this,arguments)||this;a.actionMap={"yt-dark-mode-toggled-action":"handleDarkModeToggledAction_"};return a};
_.b(i5,_.G);i5.prototype.attached=function(){this.isDarkTheme_=document.documentElement.hasAttribute("dark")};
i5.prototype.handleDarkModeToggledAction_=function(a){this.isDarkTheme_=a};
i5.prototype.computeThemeImage_=function(a,z){if(!a||!a.imageLight)return!1;this.isCircular_=a.isCircular;a.imageWidth&&(this.hostElement.style.width=a.imageWidth+"px");a.imageHeight&&(this.hostElement.style.height=a.imageHeight+"px");a.borderWidth&&(this.image.style.borderWidth=a.borderWidth+"px",this.image.style.borderStyle="solid");a.borderColor&&(this.image.style.borderColor=_.RX(a.borderColor));return z&&a.imageDark?a.imageDark:a.imageLight};
i5.prototype.computeThemeIcon_=function(a){var z,I;if(!(a==null?0:(z=a.themedIcon)==null?0:(I=z.icon)==null?0:I.iconType))return!1;this.icon.style.color=KK[a.themedIcon.iconColor||"CARD_ITEM_COLOR_GENERAL_BACKGROUND_A"];this.icon.style.width=(a.imageWidth||18)+"px";this.icon.style.height=(a.imageHeight||18)+"px";return _.Bl(a.themedIcon.icon.iconType)};
_.L([_.Q(_.k.YtRendererBehavior),_.p("design:type",Object)],i5.prototype,"ytRendererBehavior",void 0);_.L([_.Q(_.u4.YtRendererstamperBehavior),_.p("design:type",Object)],i5.prototype,"ytRendererstamperBehavior",void 0);_.L([_.Q($je.YtCardItemBoxBehavior),_.p("design:type",Object)],i5.prototype,"ytCardItemBoxBehavior",void 0);_.L([_.Q(_.Hc.YtActionHandlerBehavior),_.p("design:type",Object)],i5.prototype,"ytActionHandlerBehavior",void 0);_.L([_.x(),_.p("design:type",Object)],i5.prototype,"data",void 0);
_.L([_.x({value:!1}),_.p("design:type",Boolean)],i5.prototype,"fit",void 0);_.L([_.x(),_.p("design:type",Boolean)],i5.prototype,"isDarkTheme_",void 0);_.L([_.x({computed:"computeThemeImage_(data, isDarkTheme_)"}),_.p("design:type",Object)],i5.prototype,"themeImage_",void 0);_.L([_.x({computed:"computeThemeIcon_(data)"}),_.p("design:type",Object)],i5.prototype,"themeIcon_",void 0);_.L([_.x({reflectToAttribute:!0,value:!1}),_.p("design:type",Object)],i5.prototype,"isCircular_",void 0);
_.L([_.A3("#image"),_.p("design:type",Object)],i5.prototype,"image",void 0);_.L([_.A3("#icon"),_.p("design:type",Object)],i5.prototype,"icon",void 0);_.L([_.dz({is:"yt-themed-image-renderer",disableElementRegistration:!0})],i5);
_.D(i5,"yt-themed-image-renderer",function(){if(qyi===void 0){var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-themed-image-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.ypc.yt_themed_image_renderer.yt.themed.image.renderer.css.js--\x3e<yt-img-shadow id="image" fit="[[fit]]" height="[[data.imageHeight]]" hidden="[[!themeImage_]]" thumbnail="[[themeImage_]]" width="[[data.imageWidth]]" class="style-scope yt-themed-image-renderer">\n</yt-img-shadow>\n<yt-icon id="icon" hidden="[[!themeIcon_]]" icon="[[themeIcon_]]" class="style-scope yt-themed-image-renderer">\n</yt-icon>\n');a.content.insertBefore(_.w().content.cloneNode(!0),
a.content.firstChild);var z=a.content,I=z.insertBefore;YyE===void 0&&(YyE=document.createElement("template"));var J=YyE;I.call(z,J.content.cloneNode(!0),a.content.firstChild);qyi=a}a=qyi;return a},{mode:2});var x6=function(){return _.G.apply(this,arguments)||this};
_.b(x6,_.G);x6.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"}}}}};
x6.prototype.computeImagePlacement_=function(a){return a||"CARD_ITEM_IMAGE_PLACEMENT_UNKNOWN"};
_.L([_.Q(_.u4.YtRendererstamperBehavior),_.p("design:type",Object)],x6.prototype,"ytRendererstamperBehavior",void 0);_.L([_.Q(_.k.YtRendererBehavior),_.p("design:type",Object)],x6.prototype,"ytRendererBehavior",void 0);_.L([_.x(),_.p("design:type",Object)],x6.prototype,"data",void 0);_.L([_.x({value:"CARD_ITEM_IMAGE_PLACEMENT_UNKNOWN",computed:"computeImagePlacement_(data.imagePlacement)",reflectToAttribute:!0}),_.p("design:type",String)],x6.prototype,"imagePlacement",void 0);
_.L([_.dz({is:"yt-card-item-text-with-image-renderer",disableElementRegistration:!0})],x6);
_.D(x6,"yt-card-item-text-with-image-renderer",function(){if(cnG===void 0){var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-card-item-text-with-image-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.ypc.yt_card_item_text_with_image_renderer.yt.card.item.text.with.image.renderer.css.js--\x3e<div id="themed-image-renderer" class="style-scope yt-card-item-text-with-image-renderer"></div>\n<div id="card-item-text-collection-renderer" class="style-scope yt-card-item-text-with-image-renderer"></div>\n');a.content.insertBefore(_.w().content.cloneNode(!0),
a.content.firstChild);var z=a.content,I=z.insertBefore;M7l===void 0&&(M7l=document.createElement("template"));var J=M7l;I.call(z,J.content.cloneNode(!0),a.content.firstChild);cnG=a}a=cnG;return a},{mode:2});var vQ=function(){return _.G.apply(this,arguments)||this};
_.b(vQ,_.G);vQ.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"}}}}};
_.L([_.Q(_.u4.YtRendererstamperBehavior),_.p("design:type",Object)],vQ.prototype,"ytRendererstamperBehavior",void 0);_.L([_.Q(_.k.YtRendererBehavior),_.p("design:type",Object)],vQ.prototype,"ytRendererBehavior",void 0);_.L([_.x(),_.p("design:type",Object)],vQ.prototype,"data",void 0);_.L([_.dz({is:"yt-card-item-error-renderer",disableElementRegistration:!0})],vQ);
_.D(vQ,"yt-card-item-error-renderer",function(){if(k5e===void 0){var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-card-item-error-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.ypc.yt_card_item_error_renderer.yt.card.item.error.renderer.css.js--\x3e<div id="triangle-up-container" class="style-scope yt-card-item-error-renderer">\n  <div id="triangle-up" class="style-scope yt-card-item-error-renderer"></div>\n</div>\n<div id="error-text-renderer" class="style-scope yt-card-item-error-renderer"></div>\n');a.content.insertBefore(_.w().content.cloneNode(!0),
a.content.firstChild);var z=a.content,I=z.insertBefore;ynf===void 0&&(ynf=document.createElement("template"));var J=ynf;I.call(z,J.content.cloneNode(!0),a.content.firstChild);k5e=a}a=k5e;return a},{mode:2});var eWO;var aSv;_.$q("itemSectionRenderer","CardItemRenderer","yt-card-item-renderer");var G6=function(){return _.G.apply(this,arguments)||this};
_.b(G6,_.G);_.Z=G6.prototype;
_.Z.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"}}}}};
_.Z.created=function(){this.tappableItemBehaviorTargetId=this.cardItemBoxBehaviorPaddingTargetId="main-content"};
_.Z.backgroundColorChanged_=function(){var a,z=(a=this.data)==null?void 0:a.backgroundColor;a=KK[z||"CARD_ITEM_COLOR_UNKNOWN"]||"transparent";_.PK(this.hostElement).querySelector("#main-content").style.backgroundColor=a};
_.Z.headerPromoBackgroundColorChanged_=function(){var a,z=(a=this.data)==null?void 0:a.headerPromoBackgroundColor;a=KK[z||"CARD_ITEM_COLOR_UNKNOWN"]||"transparent";_.PK(this.hostElement).querySelector("#header-promo-renderer").style.backgroundColor=a};
_.Z.errorRendererVisibilityChanged_=function(){var a=this.isExpanded_,z;this.isErrorRendererVisible_=!((z=this.data)==null||!z.errorRenderer)&&!a};
_.Z.onYtToggleButton_=function(a,z){this.isExpanded_=z.toggled};
G6.prototype.onYtToggleButton_=G6.prototype.onYtToggleButton_;G6.prototype.errorRendererVisibilityChanged_=G6.prototype.errorRendererVisibilityChanged_;G6.prototype.headerPromoBackgroundColorChanged_=G6.prototype.headerPromoBackgroundColorChanged_;G6.prototype.backgroundColorChanged_=G6.prototype.backgroundColorChanged_;_.L([_.Q(_.k.YtRendererBehavior),_.p("design:type",Object)],G6.prototype,"ytRendererBehavior",void 0);
_.L([_.Q(_.u4.YtRendererstamperBehavior),_.p("design:type",Object)],G6.prototype,"ytRendererstamperBehavior",void 0);_.L([_.Q($je.YtCardItemBoxBehavior),_.p("design:type",Object)],G6.prototype,"ytCardItemBoxBehavior",void 0);_.L([_.Q(_.p6v.YtTappableItemBehavior),_.p("design:type",Object)],G6.prototype,"ytTappableItemBehavior",void 0);_.L([_.x(),_.p("design:type",Object)],G6.prototype,"data",void 0);_.L([_.x({value:!1}),_.p("design:type",Boolean)],G6.prototype,"isExpanded_",void 0);
_.L([_.x({value:!1}),_.p("design:type",Boolean)],G6.prototype,"isErrorRendererVisible_",void 0);_.L([_.O8("data.backgroundColor"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],G6.prototype,"backgroundColorChanged_",null);_.L([_.O8("data.headerPromoBackgroundColor"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],G6.prototype,"headerPromoBackgroundColorChanged_",null);
_.L([_.O8("data.errorRenderer","isExpanded_"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],G6.prototype,"errorRendererVisibilityChanged_",null);_.L([_.gz("yt-toggle-button"),_.p("design:type",Function),_.p("design:paramtypes",[Event,Object]),_.p("design:returntype")],G6.prototype,"onYtToggleButton_",null);_.L([_.dz({is:"yt-card-item-renderer",disableElementRegistration:!0})],G6);
_.D(G6,"yt-card-item-renderer",function(){if(aSv===void 0){var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-card-item-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.ypc.yt_card_item_renderer.yt.card.item.renderer.css.js--\x3e<div id="main-content" primary-container-placement$="[[data.primaryContainerPlacement]]" box-style$="[[data.cardItemBoxStyle]]" aria-label="[[data.accessibilityData.label]]" class="style-scope yt-card-item-renderer">\n  <div id="main-content-negative-margin-wrapper" content-placement$="[[data.contentPlacement]]" class="style-scope yt-card-item-renderer">\n    <div id="heading-description-container" class="style-scope yt-card-item-renderer">\n       <div id="header-promo-container" class="style-scope yt-card-item-renderer">\n          <div id="heading-renderer" hidden$="[[!data.headingRenderer]]" class="style-scope yt-card-item-renderer">\n          </div>\n          <div id="header-promo-renderer" hidden$="[[!data.headerPromoRenderer]]" class="style-scope yt-card-item-renderer">\n          </div>\n      </div>\n      <div id="description-renderer" hidden$="[[!data.descriptionRenderer]]" class="style-scope yt-card-item-renderer">\n      </div>\n    </div>\n    <div id="additional-info-renderer" additional-info-placement$="[[data.additionalInfoPlacement]]" hidden$="[[!data.additionalInfoRenderer]]" class="style-scope yt-card-item-renderer">\n    </div>\n    <div id="footer-renderer" hidden$="[[!data.footerRenderer]]" class="style-scope yt-card-item-renderer"></div>\n  </div>\n</div>\n<div id="error-renderer" hidden$="[[!isErrorRendererVisible_]]" class="style-scope yt-card-item-renderer"></div>\n<div id="divider" divider-style$="[[data.dividerStyle]]" hidden$="[[!data.dividerStyle]]" class="style-scope yt-card-item-renderer"></div>\n');
a.content.insertBefore(_.w().content.cloneNode(!0),a.content.firstChild);var z=a.content,I=z.insertBefore;eWO===void 0&&(eWO=document.createElement("template"));var J=eWO;I.call(z,J.content.cloneNode(!0),a.content.firstChild);aSv=a}a=aSv;return a},{mode:2});_.$q("cardItemSection","commerceCartHeaderRenderer",{component:"ytd-commerce-cart-header-renderer",noInjection:!0});var $6=function(){var a=_.G.apply(this,arguments)||this;a.hidden=!1;return a};
_.b($6,_.G);_.Z=$6.prototype;_.Z.configureRendererStamper=function(){return{"data.item":{id:"item",mapping:{cardItemRenderer:"yt-card-item-renderer"}}}};
_.Z.entityChanged=function(){this.commerceCartHeaderEntity&&(this.updateIsHidden(),this.updateSummaryText(),this.updateCheckoutButton(),this.updateTitle())};
_.Z.updateIsHidden=function(){if(this.compact)this.hidden=!1;else{var a,z=(a=this.commerceCartHeaderEntity)==null?void 0:a.isHidden;z!==void 0&&(this.hidden=z)}};
_.Z.updateTitle=function(){var a=this.commerceCartHeaderEntity.isDisabled,z,I,J=(I=_.H((z=this.data)==null?void 0:z.item,xTf))==null?void 0:I.headingRenderer;J&&(z=G0(J,"textRenderers"),this.set("data.item.cardItemRenderer.headingRenderer."+z+".0.cardItemTextRenderer.textColor",a?"CARD_ITEM_COLOR_TEXT_DISABLED":"CARD_ITEM_COLOR_TEXT_PRIMARY"))};
_.Z.updateSummaryText=function(){var a=this.commerceCartHeaderEntity;if(this.compact){var z,I,J=(I=_.H((z=this.data)==null?void 0:z.item,xTf))==null?void 0:I.headingRenderer;J&&(z=G0(J,"textRenderers"),this.set("data.item.cardItemRenderer.headingRenderer."+z+".1.cardItemTextRenderer.text",a.shortHeaderSummaryText?$s(a.shortHeaderSummaryText):a.headerSummaryText?$s(a.headerSummaryText):""))}else{var r;if(z=(r=_.H((J=this.data)==null?void 0:J.item,xTf))==null?void 0:r.additionalInfoRenderer)z=G0(z,
"cardItemTextRenderer"),this.set("data.item.cardItemRenderer.additionalInfoRenderer."+z+".text",a.headerSummaryText?$s(a.headerSummaryText):"")}};
_.Z.updateCheckoutButton=function(){var a=this.commerceCartHeaderEntity,z,I,J=(I=_.H((z=this.data)==null?void 0:z.item,xTf))==null?void 0:I.additionalInfoRenderer;z=G0(J,"buttonRenderer");var r;I=(r=this.commerceCartHeaderEntity)==null?void 0:r.isButtonDisabled;var P;r=(P=this.commerceCartHeaderEntity)==null?void 0:P.isButtonHidden;I!==void 0&&this.set("data.item.cardItemRenderer.additionalInfoRenderer."+z+".buttonRenderer.isDisabled",I);r!==void 0&&this.set("data.item.cardItemRenderer.additionalInfoRenderer.isHidden",
r);var N;a=(N=a.checkoutButtonCommand)==null?void 0:N.innertubeCommand;a!==void 0&&this.set("data.item.cardItemRenderer.additionalInfoRenderer."+z+".buttonRenderer.command",a)};
$6.prototype.entityChanged=$6.prototype.entityChanged;_.L([_.Q(_.pV),_.p("design:type",Object)],$6.prototype,"ytdReduxBehavior",void 0);_.L([_.Q(_.k.YtRendererBehavior),_.p("design:type",Object)],$6.prototype,"ytRendererBehavior",void 0);_.L([_.Q(_.u4.YtRendererstamperBehavior),_.p("design:type",Object)],$6.prototype,"ytRendererstamperBehavior",void 0);_.L([_.x(),_.p("design:type",Object)],$6.prototype,"data",void 0);
_.L([_.x({reflectToAttribute:!0}),_.p("design:type",Boolean)],$6.prototype,"compact",void 0);_.L([_.x({selectorArgs:["data.commerceCartHeaderEntityKey"],selector:function(a,z){return _.Bd(a.entities,"commerceCartHeaderEntity",z)}}),
_.p("design:type",Object)],$6.prototype,"commerceCartHeaderEntity",void 0);_.L([_.x({reflectToAttribute:!0}),_.p("design:type",Object)],$6.prototype,"hidden",void 0);_.L([_.O8("commerceCartHeaderEntity","data"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],$6.prototype,"entityChanged",null);_.L([_.U({disableElementRegistration:!0,is:"ytd-commerce-cart-header-renderer"})],$6);
_.D($6,"ytd-commerce-cart-header-renderer",function(){if(lnl!==void 0)return lnl;var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-commerce-cart-header-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="item" class="style-scope ytd-commerce-cart-header-renderer"></div>\n');a.content.insertBefore(_.w().content.cloneNode(!0),a.content.firstChild);return lnl=a},{mode:1});var jYj;var z5G=_.Hr(function(a,z){var I;return(I=a.onChangeCallback)==null?void 0:I.call(a,z)},1E3),ISG=_.ec(function(a){var z=a.data;
var I=a.iconMinus;a=a.iconPlus;var J=function(){return!!z().disabled},r=_.C(_.CW(0,void 0,"r56zNb")),P=r.next().value,N=r.next().value;
r={};r=_.B8("yt-spec-quantity-incrementer-shape__icon",(r["yt-spec-quantity-incrementer-shape__icon--disabled"]=function(){return J()||P()===(z().onRemoveCommand?0:1)},r));
var u={};u=_.B8("yt-spec-quantity-incrementer-shape__icon",(u["yt-spec-quantity-incrementer-shape__icon--disabled"]=function(){return P()>=z().maxValue||J()},u));
var E={};E=_.B8("yt-spec-quantity-incrementer-shape__text",(E["yt-spec-quantity-incrementer-shape__text--invalid"]=function(){return P()>z().maxValue},E["yt-spec-quantity-incrementer-shape__text--text-disabled"]=J,E));
var O=_.g4(function(){if(P()===1){var A,n;(n=(A=z()).onRemoveCommand)==null||n.call(A)}A=P()>z().maxValue?z().maxValue:P()-1;N(A);z5G(z(),A);return!1}),f=_.g4(function(){if(P()===z().maxValue)return!1;
var A=P()+1;N(A);z5G(z(),A);return!1});
_.hD(function(){N(z().value)});
return _.B("quantity-incrementer-shape",null,_.B("div",{class:"yt-spec-quantity-incrementer-shape"},_.B("button",{class:"yt-spec-quantity-incrementer-shape__button",disabled:function(){return P()===(z().onRemoveCommand?0:1)||J()},
"aria-label":function(){return P()!==1?z().minusLabel:z().minimumReachedLabel},
"on:click":O},_.B(_.Bc,{model:{circular:!0}}),_.B("div",{class:"yt-spec-quantity-incrementer-shape__iconWrapper"},_.B("div",{class:r},I()))),_.B("div",{class:E},P),_.B("button",{class:"yt-spec-quantity-incrementer-shape__button",disabled:function(){return P()>=z().maxValue||J()},
"aria-label":function(){return P()!==z().maxValue?z().plusLabel:z().maximumReachedLabel},
"on:click":f},_.B(_.Bc,{model:{circular:!0}}),_.B("div",{class:"yt-spec-quantity-incrementer-shape__iconWrapper"},_.B("div",{class:u},a())))))},"ie");_.Jf(_.ec(function(a){function z(){I().onRemoveCommand&&_.lN(I().onRemoveCommand)}
var I=a.data;var J=_.KU(VDI,function(){return I().quantityIncrementerEntityKey});
return _.B("yt-quantity-incrementer-view-model",null,_.B(ISG,{data:function(){var r=I(),P;var N=J()?!((P=J())==null||!P.disabled):!1;var u;P=J()?(u=J())==null?void 0:u.quantity:I().quantity;return odp(r,N,z,P)},
iconMinus:function(){return _.B(_.nS,{icon:"BAR_HORIZONTAL",className:_.$c("yt-spec-quantity-incrementer-view-model","yt-spec-quantity-incrementer-view-model__quantity-incrementer-minus-icon")})},
iconPlus:function(){return _.B(_.nS,{icon:"ADD",className:_.$c("yt-spec-quantity-incrementer-view-model","yt-spec-quantity-incrementer-view-model__quantity-incrementer-plus-icon")})}}))},"je"),"yt-quantity-incrementer-view-model",{props:{data:_.zl}});var Xa=function(){var a=_.G.apply(this,arguments)||this;a.compact=!1;a.hasQuantityIncrementer=!1;return a};
_.b(Xa,_.G);Xa.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"}}}};
Xa.prototype.computeHasQuantityIncrementer=function(){var a;return!!_.H((a=this.data)==null?void 0:a.picker,Xcv)};
Xa.prototype.onLabelClick=function(){var a;(a=this.dropdownEl)==null||a.open()};
_.L([_.A3("ytd-dropdown-renderer"),_.p("design:type",Object)],Xa.prototype,"dropdownEl",void 0);_.L([_.Q(_.k.YtRendererBehavior),_.p("design:type",Object)],Xa.prototype,"ytRendererBehavior",void 0);_.L([_.Q(_.u4.YtRendererstamperBehavior),_.p("design:type",Object)],Xa.prototype,"ytRendererstamperBehavior",void 0);_.L([_.x(),_.p("design:type",Object)],Xa.prototype,"data",void 0);_.L([_.x({reflectToAttribute:!0}),_.p("design:type",String)],Xa.prototype,"quantityColor",void 0);
_.L([_.x({reflectToAttribute:!0}),_.p("design:type",Object)],Xa.prototype,"compact",void 0);_.L([_.x({reflectToAttribute:!0,computed:"computeHasQuantityIncrementer(data)"}),_.p("design:type",Object)],Xa.prototype,"hasQuantityIncrementer",void 0);_.L([_.U({disableElementRegistration:!0,is:"ytd-commerce-cart-item-quantity-picker-renderer"})],Xa);
_.D(Xa,"ytd-commerce-cart-item-quantity-picker-renderer",function(){if(jYj!==void 0)return jYj;var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-commerce-cart-item-quantity-picker-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="picker-label" on-click="onLabelClick" class="style-scope ytd-commerce-cart-item-quantity-picker-renderer">[[getSimpleString(data.pickerLabel)]]</div>\n<div id="picker" class="style-scope ytd-commerce-cart-item-quantity-picker-renderer"></div>\n<div id="price" class="style-scope ytd-commerce-cart-item-quantity-picker-renderer"></div>\n');a.content.insertBefore(_.w().content.cloneNode(!0),
a.content.firstChild);return jYj=a},{mode:1});var Jmw;var rmv;var T6=function(){return _.G.apply(this,arguments)||this};
_.b(T6,_.G);T6.prototype.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:"yt-button-renderer"}}}};
T6.prototype.entityChanged=function(){this.disabledCartItemEntity&&(this.updateTitle(),this.updateButton())};
T6.prototype.updateTitle=function(){var a=this.disabledCartItemEntity;a.disableActionName&&this.set("data.title",$s(a.disableActionName))};
T6.prototype.updateButton=function(){var a,z=(a=this.disabledCartItemEntity.undoCommand)==null?void 0:a.innertubeCommand;z!==void 0&&(this.set("data.actionButton.buttonRenderer.command",z),this.set("data.actionButton.buttonRenderer.isDisabled",!1))};
T6.prototype.entityChanged=T6.prototype.entityChanged;_.L([_.Q(_.pV),_.p("design:type",Object)],T6.prototype,"ytdReduxBehavior",void 0);_.L([_.Q(_.k.YtRendererBehavior),_.p("design:type",Object)],T6.prototype,"ytRendererBehavior",void 0);_.L([_.Q(_.u4.YtRendererstamperBehavior),_.p("design:type",Object)],T6.prototype,"ytRendererstamperBehavior",void 0);_.L([_.x({selectorArgs:["data.disabledCartItemEntityKey"],selector:function(a,z){return _.Bd(a.entities,"disabledCartItemEntity",z)}}),
_.p("design:type",Object)],T6.prototype,"disabledCartItemEntity",void 0);_.L([_.x(),_.p("design:type",Object)],T6.prototype,"data",void 0);_.L([_.O8("disabledCartItemEntity","data"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],T6.prototype,"entityChanged",null);_.L([_.U({disableElementRegistration:!0,is:"ytd-disabled-cart-item-renderer"})],T6);
_.D(T6,"ytd-disabled-cart-item-renderer",function(){if(rmv!==void 0)return rmv;var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-disabled-cart-item-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="text-container" class="style-scope ytd-disabled-cart-item-renderer">\n  <yt-formatted-string id="title" text="[[data.title]]" class="style-scope ytd-disabled-cart-item-renderer"></yt-formatted-string>\n  <yt-formatted-string id="description" text="[[data.description]]" class="style-scope ytd-disabled-cart-item-renderer"></yt-formatted-string>\n</div>\n<div id="action-button" class="style-scope ytd-disabled-cart-item-renderer"></div>\n');
a.content.insertBefore(_.w().content.cloneNode(!0),a.content.firstChild);return rmv=a},{mode:1});_.$q("cardItemSection","commerceCartItemRenderer",{component:"ytd-commerce-cart-item-renderer",noInjection:!0,properties:{compact:"[[compact]]"}});var dx=function(){var a=_.G.apply(this,arguments)||this;a.compact=!1;a.hidden=!1;a.errorHidden=!1;a.noOnTap=!1;return a};
_.b(dx,_.G);_.Z=dx.prototype;
_.Z.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"}}}};
_.Z.entityChanged=function(){this.commerceCartItemEntity&&(this.updateQuantity(),this.updateIsHidden(),this.updateHideErrorMessage())};
_.Z.onYtRendererstamperFinished=function(){if(this.firstButtonElement){var a=this.firstButtonElement;a.alignByText=!0;a.iconAlignByText=!0}};
_.Z.computeNoOnTap=function(a){return!a};
_.Z.updateQuantityColor=function(){if(this.pickerElement){var a,z=(a=this.commerceCartItemEntity)==null?void 0:a.quantityColor;this.pickerElement.quantityColor=z}};
_.Z.updateTotalPriceColor=function(){var a,z=(a=this.commerceCartItemEntity)==null?void 0:a.totalPriceColor;if(z){var I;a=_.H((I=this.data)==null?void 0:I.quantityPicker,Gll);if(I=_.H(a==null?void 0:a.price,vuv))I.textColor=z}};
_.Z.updateIsHidden=function(){if(this.compact)this.hidden=!1;else{var a,z=(a=this.commerceCartItemEntity)==null?void 0:a.isHidden;z!==void 0&&(this.hidden=z)}};
_.Z.updateHideErrorMessage=function(){var a,z=(a=this.commerceCartItemEntity)==null?void 0:a.hideErrorMessage;z!==void 0&&(this.errorHidden=z)};
_.Z.updateQuantity=function(){var a=this,z,I=(z=this.commerceCartItemEntity)==null?void 0:z.quantity,J;z=(J=this.commerceCartItemEntity)==null?void 0:J.totalPrice;if(I){this.updateTotalPriceColor();this.updateQuantityColor();var r;J=_.H((r=this.data)==null?void 0:r.quantityPicker,Gll);if(r=_.H(J==null?void 0:J.price,vuv))r.text=z?{simpleText:z.content}:void 0;if(z=_.H(J==null?void 0:J.picker,Xcv))z.quantity=I;var P;if(r=(P=_.H(J==null?void 0:J.picker,TBw))==null?void 0:P.entries){P=!1;z=void 0;r=
_.C(r);for(J=r.next();!J.done;J=r.next())J=J.value,J.dropdownItemRenderer&&(z||(z=J.dropdownItemRenderer),J.dropdownItemRenderer.isSelected=!1,I===J.dropdownItemRenderer.int32Value&&(P=!0,J.dropdownItemRenderer.isSelected=!0));!P&&z&&(z.isSelected=!0)}_.Yv(this,function(){var N;a.set("data.quantityPicker",_.x8.unsafeClone((N=a.data)==null?void 0:N.quantityPicker))})}};
dx.prototype.onYtRendererstamperFinished=dx.prototype.onYtRendererstamperFinished;dx.prototype.entityChanged=dx.prototype.entityChanged;_.L([_.x(),_.p("design:type",Object)],dx.prototype,"data",void 0);_.L([_.x({reflectToAttribute:!0}),_.p("design:type",Object)],dx.prototype,"compact",void 0);_.L([_.Q(_.pV),_.p("design:type",Object)],dx.prototype,"ytdReduxBehavior",void 0);_.L([_.Q(_.k.YtRendererBehavior),_.p("design:type",Object)],dx.prototype,"ytRendererBehavior",void 0);
_.L([_.Q(_.Ms.YtComponentBehavior),_.p("design:type",Object)],dx.prototype,"ytComponentBehavior",void 0);_.L([_.Q(_.u4.YtRendererstamperBehavior),_.p("design:type",Object)],dx.prototype,"ytRendererstamperBehavior",void 0);_.L([_.x({selectorArgs:["data.commerceCartItemEntityKey"],selector:function(a,z){return _.Bd(a.entities,"commerceCartItemEntity",z)}}),
_.p("design:type",Object)],dx.prototype,"commerceCartItemEntity",void 0);_.L([_.x(),_.p("design:type",Object)],dx.prototype,"quantityPicker",void 0);_.L([_.x(),_.p("design:type",Object)],dx.prototype,"compactQuantityPicker",void 0);_.L([_.x({reflectToAttribute:!0}),_.p("design:type",Object)],dx.prototype,"hidden",void 0);_.L([_.x({reflectToAttribute:!0}),_.p("design:type",Object)],dx.prototype,"errorHidden",void 0);
_.L([_.x({reflectToAttribute:!0,computed:"computeNoOnTap(data.onTap)"}),_.p("design:type",Object)],dx.prototype,"noOnTap",void 0);_.L([_.A3("ytd-commerce-cart-item-quantity-picker-renderer"),_.p("design:type",Object)],dx.prototype,"pickerElement",void 0);_.L([_.A3("yt-button-renderer"),_.p("design:type",Element)],dx.prototype,"firstButtonElement",void 0);
_.L([_.O8("commerceCartItemEntity","data"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],dx.prototype,"entityChanged",null);_.L([_.gz("yt-rendererstamper-finished"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],dx.prototype,"onYtRendererstamperFinished",null);_.L([_.U({disableElementRegistration:!0,is:"ytd-commerce-cart-item-renderer"})],dx);
_.D(dx,"ytd-commerce-cart-item-renderer",function(){if(Jmw!==void 0)return Jmw;var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-commerce-cart-item-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="container" hidden="[[commerceCartItemEntity.isDisabled]]" class="style-scope ytd-commerce-cart-item-renderer">\n  <a id="img-container" class="yt-simple-endpoint style-scope ytd-commerce-cart-item-renderer" href$="[[computeHref_(data.onTap)]]" data="[[data.onTap]]" tabindex="-1">\n    <yt-img-shadow id="image" object-fit="CONTAIN" thumbnail="[[data.cartItemImage]]" width="200" class="style-scope ytd-commerce-cart-item-renderer">\n    </yt-img-shadow>\n  </a>\n  <div id="content" class="style-scope ytd-commerce-cart-item-renderer">\n    <div id="item" class="style-scope ytd-commerce-cart-item-renderer">\n      <div id="info" class="style-scope ytd-commerce-cart-item-renderer">\n        <div id="cart-item-notification" class="style-scope ytd-commerce-cart-item-renderer"></div>\n        <h3 class="style-scope ytd-commerce-cart-item-renderer">\n            <a class="yt-simple-endpoint style-scope ytd-commerce-cart-item-renderer" href$="[[computeHref_(data.onTap)]]" data="[[data.onTap]]">\n              <div id="title" class="style-scope ytd-commerce-cart-item-renderer"></div>\n            </a>\n        </h3>\n        <div id="text-metadata" class="style-scope ytd-commerce-cart-item-renderer"></div>\n        <div id="merchant-update-text" class="style-scope ytd-commerce-cart-item-renderer"></div>\n      </div>\n      <div id="quantity-picker" class="style-scope ytd-commerce-cart-item-renderer"></div>\n    </div>\n    <div id="actions" class="style-scope ytd-commerce-cart-item-renderer">\n      <div id="cart-item-actions" class="style-scope ytd-commerce-cart-item-renderer"></div>\n    </div>\n  </div>\n</div>\n<div id="disabled-cart-item" hidden="[[!commerceCartItemEntity.isDisabled]]" class="style-scope ytd-commerce-cart-item-renderer"></div>\n');
a.content.insertBefore(_.w().content.cloneNode(!0),a.content.firstChild);return Jmw=a},{mode:_.Np("kevlar_poly_si_batch_j028")?1:2});var PSG;var Z7I;var WQ=function(){return _.G.apply(this,arguments)||this};
_.b(WQ,_.G);WQ.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}}}}}};
WQ.prototype.entityChanged=function(){this.commerceCartCheckoutButtonEntity&&(this.updateCheckoutLineItems(),this.updateIsHidden())};
WQ.prototype.updateCheckoutLineItems=function(){var a,z=(a=this.commerceCartCheckoutButtonEntity)==null?void 0:a.checkoutLineItems;z&&(a=z.map(function(I){a:{var J=I.price,r=I.description;switch(I.style){case "COMMERCE_CHECKOUT_LINE_ITEM_STYLE_MERCHANT":I={commerceCartSummaryLineItemRenderer:{summaryText:{cardItemTextRenderer:{text:$s(r),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:$s(J),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:I={commerceCartSummaryLineItemRenderer:{summaryText:{cardItemTextRenderer:{text:$s(r),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:$s(J),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 I}),this.set("data.summaryLineItems",a))};
WQ.prototype.updateIsHidden=function(){var a,z=(a=this.commerceCartCheckoutButtonEntity)==null?void 0:a.isHidden;z!==void 0&&(this.hostElement.hidden=z)};
WQ.prototype.entityChanged=WQ.prototype.entityChanged;_.L([_.Q(_.pV),_.p("design:type",Object)],WQ.prototype,"ytdReduxBehavior",void 0);_.L([_.Q(_.k.YtRendererBehavior),_.p("design:type",Object)],WQ.prototype,"ytRendererBehavior",void 0);_.L([_.Q(_.Ms.YtComponentBehavior),_.p("design:type",Object)],WQ.prototype,"ytComponentBehavior",void 0);_.L([_.Q(_.u4.YtRendererstamperBehavior),_.p("design:type",Object)],WQ.prototype,"ytRendererstamperBehavior",void 0);
_.L([_.x(),_.p("design:type",Object)],WQ.prototype,"data",void 0);_.L([_.x({selectorArgs:["data.commerceCartCheckoutButtonEntityKey"],selector:on$}),_.p("design:type",Object)],WQ.prototype,"commerceCartCheckoutButtonEntity",void 0);_.L([_.O8("commerceCartCheckoutButtonEntity","data"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],WQ.prototype,"entityChanged",null);_.L([_.U({disableElementRegistration:!0,is:"ytd-commerce-cart-summary-renderer"})],WQ);
_.D(WQ,"ytd-commerce-cart-summary-renderer",function(){if(Z7I!==void 0)return Z7I;var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-commerce-cart-summary-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="title" class="style-scope ytd-commerce-cart-summary-renderer">[[getSimpleString(data.title)]]</div>\n<div id="summary-line-items" class="style-scope ytd-commerce-cart-summary-renderer"></div>\n<div id="checkout-button" class="style-scope ytd-commerce-cart-summary-renderer"></div>\n');
a.content.insertBefore(_.w().content.cloneNode(!0),a.content.firstChild);return Z7I=a},{mode:1});var CSi={};CSi.InjectBehavior=[P$E.InjectBehavior];var NCl;var t21;var oC=function(){return _.G.apply(this,arguments)||this};
_.b(oC,_.G);
oC.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:_.XT("menuRenderer")}}};
oC.prototype.onMenuTap=function(a){a.stopPropagation()};
_.eH.Object.defineProperties(oC.prototype,{ariaLabel:{configurable:!0,enumerable:!0,get:function(){return this.data&&this.data.accessibilityData&&this.data.accessibilityData.label?this.data.accessibilityData.label:""}},
sectionHeadingVisible:{configurable:!0,enumerable:!0,get:function(){var a,z;return!(((a=this.data)==null||!a.sectionHeading)&&((z=this.data)==null?void 0:z.layout)==="ACTIVITY_ITEM_LAYOUT_STRETCH")}},
imageVisible:{configurable:!0,enumerable:!0,get:function(){var a,z;return!(((a=this.data)==null||!a.image)&&((z=this.data)==null?void 0:z.layout)==="ACTIVITY_ITEM_LAYOUT_STRETCH")}},
menuVisible:{configurable:!0,enumerable:!0,get:function(){var a,z;return!(((a=this.data)==null||!a.menu)&&((z=this.data)==null?void 0:z.layout)==="ACTIVITY_ITEM_LAYOUT_STRETCH")}}});
_.L([_.Q(_.k.YtRendererBehavior),_.p("design:type",Object)],oC.prototype,"ytRendererBehavior",void 0);_.L([_.Q(_.u4.YtRendererstamperBehavior),_.p("design:type",Object)],oC.prototype,"ytRendererstamperBehavior",void 0);_.L([_.Q(_.p6v.YtTappableItemBehavior),_.p("design:type",Object)],oC.prototype,"ytTappableItemBehavior",void 0);_.L([_.x(),_.p("design:type",Object)],oC.prototype,"data",void 0);
_.L([_.x({reflectToAttribute:!0}),_.S("data.accessibilityData"),_.p("design:type",String),_.p("design:paramtypes",[])],oC.prototype,"ariaLabel",null);_.L([_.S("data.sectionHeading","data.layout"),_.p("design:type",Boolean),_.p("design:paramtypes",[])],oC.prototype,"sectionHeadingVisible",null);_.L([_.S("data.image","data.layout"),_.p("design:type",Boolean),_.p("design:paramtypes",[])],oC.prototype,"imageVisible",null);
_.L([_.S("data.menu","data.layout"),_.p("design:type",Boolean),_.p("design:paramtypes",[])],oC.prototype,"menuVisible",null);_.L([_.dz({is:"yt-activity-item-renderer",disableElementRegistration:!0})],oC);
_.D(oC,"yt-activity-item-renderer",function(){if(t21===void 0){var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-activity-item-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.ypc.yt_activity_item_renderer.yt.activity.item.renderer.css.js--\x3e<div class="activity-item-contents style-scope yt-activity-item-renderer">\n  <div id="section-heading" tabindex="-1" aria-hidden="[[!sectionHeadingVisible]]" hidden="[[!sectionHeadingVisible]]" class="style-scope yt-activity-item-renderer"></div>\n  <div id="section-contents" class="style-scope yt-activity-item-renderer">\n    <div id="image" hidden="[[!imageVisible]]" class="style-scope yt-activity-item-renderer"></div>\n    <div id="content-activity-container" tabindex="-1" divider-style$="[[data.dividerStyle]]" class="style-scope yt-activity-item-renderer">\n      <div id="content" class="style-scope yt-activity-item-renderer">\n        <div id="title" class="style-scope yt-activity-item-renderer"></div>\n        <div id="subtitle" hidden="[[!data.subtitle]]" class="style-scope yt-activity-item-renderer"></div>\n        <div id="additional-metadata" hidden="[[!data.additionalMetadata]]" class="style-scope yt-activity-item-renderer"></div>\n      </div>\n      <div id="activity-metadata" class="style-scope yt-activity-item-renderer"></div>\n    </div>\n    <div id="menu" on-click="onMenuTap" tabindex="0" hidden="[[!menuVisible]]" class="style-scope yt-activity-item-renderer"></div>\n  </div>\n</div>');a.content.insertBefore(_.w().content.cloneNode(!0),
a.content.firstChild);var z=a.content,I=z.insertBefore;NCl===void 0&&(NCl=document.createElement("template"));var J=NCl;I.call(z,J.content.cloneNode(!0),a.content.firstChild);t21=a}a=t21;return a},{mode:2});var u9I;var EgJ;var BCj;var ggj;var Uq=function(){return _.G.apply(this,arguments)||this};
_.b(Uq,_.G);
Uq.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"}}}}};
Uq.prototype.backgroundColorChanged_=function(){var a,z=(a=this.data)==null?void 0:a.backgroundColor;this.hostElement.style.backgroundColor=KK[z||"CARD_ITEM_COLOR_UNKNOWN"]||"transparent"};
Uq.prototype.backgroundColorChanged_=Uq.prototype.backgroundColorChanged_;_.L([_.Q(_.k.YtRendererBehavior),_.p("design:type",Object)],Uq.prototype,"ytRendererBehavior",void 0);_.L([_.Q(_.u4.YtRendererstamperBehavior),_.p("design:type",Object)],Uq.prototype,"ytRendererstamperBehavior",void 0);_.L([_.x(),_.p("design:type",Object)],Uq.prototype,"data",void 0);
_.L([_.O8("data.backgroundColor"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],Uq.prototype,"backgroundColorChanged_",null);_.L([_.dz({is:"yt-offer-item-upsell-renderer",disableElementRegistration:!0})],Uq);
_.D(Uq,"yt-offer-item-upsell-renderer",function(){if(ggj===void 0){var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-offer-item-upsell-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.ypc.yt_offer_item_upsell_renderer.yt.offer.item.upsell.renderer.css.js--\x3e<div id="image-renderer" hidden="[[!data.imageRenderer]]" class="style-scope yt-offer-item-upsell-renderer"></div>\n<div id="heading-price-container" class="style-scope yt-offer-item-upsell-renderer">\n  <div id="heading-renderer" class="style-scope yt-offer-item-upsell-renderer"></div>\n  <div id="price-renderer" class="style-scope yt-offer-item-upsell-renderer"></div>\n</div>\n<div id="description-actions-container" class="style-scope yt-offer-item-upsell-renderer">\n  <div id="description-renderer" class="style-scope yt-offer-item-upsell-renderer"></div>\n  <div id="actions-renderer" class="style-scope yt-offer-item-upsell-renderer"></div>\n</div>\n');a.content.insertBefore(_.w().content.cloneNode(!0),
a.content.firstChild);var z=a.content,I=z.insertBefore;BCj===void 0&&(BCj=document.createElement("template"));var J=BCj;I.call(z,J.content.cloneNode(!0),a.content.firstChild);ggj=a}a=ggj;return a},{mode:2});_.$q("itemSectionRenderer","CardItemContainerRenderer","yt-card-item-container-renderer");var DC=function(){var a=_.G.apply(this,arguments)||this;a.actionMap={"yt-update-card-item-on-click-command":"updateCardOnClickCommand_"};a.nextContinuation={continuationType:"sectionListContinuation",contentsArray:"data.continuationSection"};return a};
_.b(DC,_.G);_.Z=DC.prototype;
_.Z.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:_.XT("sharingItemSection")},"data.moreContentsButtonRenderer":{id:"more-contents-button",mapping:{buttonRenderer:{component:"yt-button-renderer",noInjection:!0}}}}};
_.Z.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"continuationSection"}};
_.Z.computeContainerStyle_=function(a){return a};
_.Z.computeContainerIsHidden_=function(a){return a&&!!a.isHidden};
_.Z.computeShowSpinner_=function(a,z){return a&&z==="in-progress"};
_.Z.computeShowMoreContentsButton_=function(a,z,I,J,r){return!(!(J&&J.length||r&&r.length&&I)||!a||z)};
_.Z.onToggleButton_=function(a){var z=this;a.stopPropagation();this.isExpanded_=a.detail&&a.detail.toggled;var I,J;this.isExpanded_&&!this.data.continuationSection.length&&((I=this.data)==null?0:(J=I.continuation)==null?0:J.onClickContinuationData)&&this.continuationStatus_!=="in-progress"?(_.PA(this.hostElement,"yt-load-next-continuation",function(r){return z.getContinuationUrl_(z.data.continuation.onClickContinuationData,r)}),this.continuationStatus_="in-progress"):this.isExpanded_&&!this.data.continuationSection.length&&
this.data.onClickCommand&&this.continuationStatus_!=="in-progress"&&(_.N$(this.hostElement,[this.data.onClickCommand]),this.continuationStatus_="in-progress")};
_.Z.onShowMoreContentsButtonClicked_=function(a){var z=this;a.stopPropagation();this.data.continuations&&this.data.continuations[0].nextContinuationData?(_.PA(this.hostElement,"yt-load-next-continuation",function(I){return z.getContinuationUrl_(z.data.continuations[0].nextContinuationData,I)}),this.continuationStatus_="in-progress"):this.data.onClickCommand&&(_.N$(this.hostElement,[this.data.onClickCommand]),this.continuationStatus_="in-progress",this.data.onClickCommand=void 0,this.isOnClickCommand_=
!1)};
_.Z.getContinuationUrl_=function(a,z){var I=a.continuation;a=a.clickTrackingParams;var J=_.TX();a&&J&&_.ys(J,_.VX(a));return _.yO(z,{continuation:I})};
_.Z.nextContinuationDataUpdated_=function(){this.continuationStatus_="complete";var a=_.PK(this.hostElement).querySelector("#continuation-section");a&&(a=a.querySelectorAll("ytmusic-item-section-renderer"))&&a.forEach(function(z){return z.classList.add("memberships-and-purchases")})};
_.Z.dataChanged_=function(){var a;this.isExpanded_=!((a=this.data)==null||!a.contents);this.data.continuationSection||(this.data.continuationSection=[]);this.data.onClickCommand&&(this.isOnClickCommand_=!0)};
_.Z.updateCardOnClickCommand_=function(a){a=_.H(a,FJO);var z,I;this.data&&((z=this.data)==null?0:z.targetId)&&a&&a.targetId===((I=this.data)==null?void 0:I.targetId)&&a.onClickCommand&&(this.data.onClickCommand=a.onClickCommand,this.isOnClickCommand_=!0)};
_.Z.backgroundColorChanged_=function(){var a,z=(a=this.data)==null?void 0:a.backgroundColor;this.hostElement.style.backgroundColor=KK[z||"CARD_ITEM_COLOR_UNKNOWN"]||"transparent"};
DC.prototype.backgroundColorChanged_=DC.prototype.backgroundColorChanged_;DC.prototype.dataChanged_=DC.prototype.dataChanged_;DC.prototype.nextContinuationDataUpdated_=DC.prototype.nextContinuationDataUpdated_;DC.prototype.onToggleButton_=DC.prototype.onToggleButton_;_.L([_.Q(_.M8),_.p("design:type",Object)],DC.prototype,"ytContinuationHandlerBehavior",void 0);_.L([_.Q(_.Hc.YtActionHandlerBehavior),_.p("design:type",Object)],DC.prototype,"ytActionHandlerBehavior",void 0);
_.L([_.Q(_.u4.YtRendererstamperBehavior),_.p("design:type",Object)],DC.prototype,"ytRendererstamperBehavior",void 0);_.L([_.Q(_.cX.YtNextContinuationBehavior),_.p("design:type",Object)],DC.prototype,"ytNextContinuationBehavior",void 0);_.L([_.Q(_.k.YtRendererBehavior),_.p("design:type",Object)],DC.prototype,"ytRendererBehavior",void 0);_.L([_.Q(CSi.InjectBehavior),_.p("design:type",Object)],DC.prototype,"injectBehavior",void 0);_.L([_.x(),_.p("design:type",Object)],DC.prototype,"data",void 0);
_.L([_.x({reflectToAttribute:!0,value:!1}),_.p("design:type",Boolean)],DC.prototype,"compact",void 0);_.L([_.x({reflectToAttribute:!0,value:!1}),_.p("design:type",Boolean)],DC.prototype,"isExpanded_",void 0);_.L([_.x({computed:"computeContainerStyle_(data.containerStyle)",reflectToAttribute:!0,value:"CARD_ITEM_CONTAINER_STYLE_DEFAULT"}),_.p("design:type",String)],DC.prototype,"containerStyle_",void 0);_.L([_.x({value:"not-started"}),_.p("design:type",String)],DC.prototype,"continuationStatus_",void 0);
_.L([_.x({reflectToAttribute:!0,computed:"computeShowSpinner_(isExpanded_, continuationStatus_)",value:!1}),_.p("design:type",Boolean)],DC.prototype,"showSpinner_",void 0);_.L([_.x({value:!1}),_.p("design:type",Boolean)],DC.prototype,"isOnClickCommand_",void 0);_.L([_.x({computed:"computeShowMoreContentsButton_(isExpanded_, showSpinner_, isOnClickCommand_, data.continuations, data.contents)",value:!1}),_.p("design:type",Boolean)],DC.prototype,"showMoreContentsButton_",void 0);
_.L([_.x({selectorArgs:["data.cardItemContainerEntityKey"],selector:function(a,z){return!z||a.entities?null:_.Bd(a.entities,"cardItemContainerEntity",z)}}),
_.p("design:type",Object)],DC.prototype,"cardItemContainerEntity_",void 0);_.L([_.gz("yt-toggle-button"),_.p("design:type",Function),_.p("design:paramtypes",[CustomEvent]),_.p("design:returntype")],DC.prototype,"onToggleButton_",null);_.L([_.gz("yt-next-continuation-data-updated"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],DC.prototype,"nextContinuationDataUpdated_",null);
_.L([_.O8("data"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],DC.prototype,"dataChanged_",null);_.L([_.O8("data.backgroundColor"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],DC.prototype,"backgroundColorChanged_",null);_.L([_.dz({is:"yt-card-item-container-renderer",disableElementRegistration:!0})],DC);
_.D(DC,"yt-card-item-container-renderer",function(){if(EgJ===void 0){var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-card-item-container-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.ypc.yt_card_item_container_renderer.yt.card.item.container.renderer.css.js--\x3e<div id="container" hidden="[[computeContainerIsHidden_(cardItemContainerEntity_)]]" class="style-scope yt-card-item-container-renderer">\n  <div id="base" class="style-scope yt-card-item-container-renderer"></div>\n  <div id="divider" hidden="[[!isExpanded_]]" container-style_$="[[containerStyle_]]" class="style-scope yt-card-item-container-renderer"></div>\n  <div id="contents-section" hidden="[[!isExpanded_]]" class="style-scope yt-card-item-container-renderer">\n    <div id="contents" class="style-scope yt-card-item-container-renderer"></div>\n    <div id="continuation-section" class="style-scope yt-card-item-container-renderer"></div>\n    <tp-yt-paper-spinner id="spinner" active="[[showSpinner_]]" class="style-scope yt-card-item-container-renderer"></tp-yt-paper-spinner>\n    <div id="more-contents-button" hidden="[[!showMoreContentsButton_]]" on-click="onShowMoreContentsButtonClicked_" class="style-scope yt-card-item-container-renderer"></div>\n  </div>\n</div>\n');a.content.insertBefore(_.w().content.cloneNode(!0),
a.content.firstChild);var z=a.content,I=z.insertBefore;u9I===void 0&&(u9I=document.createElement("template"));var J=u9I;I.call(z,J.content.cloneNode(!0),a.content.firstChild);EgJ=a}a=EgJ;return a},{mode:2});var RC=function(){return _.G.apply(this,arguments)||this};
_.b(RC,_.G);RC.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"}}}};
RC.prototype.notificationEntityChanged=function(){this.commerceCartExpandableNotificationEntity&&this.updateNotification()};
RC.prototype.computeLoadingHidden=function(){var a;return!((a=this.commerceCartPageStateEntity)==null?0:a.cartActionInProgress)};
RC.prototype.updateNotification=function(){var a,z=(a=this.get("commerceCartExpandableNotificationEntity"))==null?void 0:a.summaryText;z&&this.set("data.cartNotification",$s(z))};
RC.prototype.notificationEntityChanged=RC.prototype.notificationEntityChanged;_.L([_.Q(_.pV),_.p("design:type",Object)],RC.prototype,"ytdReduxBehavior",void 0);_.L([_.Q(_.k.YtRendererBehavior),_.p("design:type",Object)],RC.prototype,"ytRendererBehavior",void 0);_.L([_.Q(_.Ms.YtComponentBehavior),_.p("design:type",Object)],RC.prototype,"ytComponentBehavior",void 0);_.L([_.Q(_.u4.YtRendererstamperBehavior),_.p("design:type",Object)],RC.prototype,"ytRendererstamperBehavior",void 0);
_.L([_.x(),_.p("design:type",Object)],RC.prototype,"data",void 0);_.L([_.x({selectorArgs:["data.commerceCartExpandableNotificationEntityKey"],selector:function(a,z){return _.Bd(a.entities,"commerceCartExpandableNotificationEntity",z)}}),
_.p("design:type",Object)],RC.prototype,"commerceCartExpandableNotificationEntity",void 0);_.L([_.x({selectorArgs:["data.commerceCartPageStateEntityKey"],selector:function(a,z){return _.Bd(a.entities,"commerceCartPageStateEntity",z)}}),
_.p("design:type",Object)],RC.prototype,"commerceCartPageStateEntity",void 0);_.L([_.A3("#spinner"),_.p("design:type",HTMLElement)],RC.prototype,"spinner",void 0);_.L([_.O8("commerceCartExpandableNotificationEntity","data"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],RC.prototype,"notificationEntityChanged",null);_.L([_.U({disableElementRegistration:!0,is:"ytd-commerce-cart-renderer"})],RC);
_.D(RC,"ytd-commerce-cart-renderer",function(){if(PSG!==void 0)return PSG;var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-commerce-cart-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="title-container" class="style-scope ytd-commerce-cart-renderer">\n  <div id="title" class="style-scope ytd-commerce-cart-renderer">[[getSimpleString(data.title)]]</div>\n  <div id="notification" class="style-scope ytd-commerce-cart-renderer">[[getSimpleString(data.cartNotification)]]</div>\n</div>\n<div id="body" class="style-scope ytd-commerce-cart-renderer">\n  <div id="primary-column" class="style-scope ytd-commerce-cart-renderer">\n    <div id="items" class="style-scope ytd-commerce-cart-renderer"></div>\n  </div>\n  <div id="secondary-column" class="style-scope ytd-commerce-cart-renderer">\n    <div id="cart-summary" class="style-scope ytd-commerce-cart-renderer"></div>\n  </div>\n</div>\n<div id="loading-overlay" hidden="[[computeLoadingHidden(data, commerceCartPageStateEntity)]]" class="style-scope ytd-commerce-cart-renderer">\n  <div id="positioning-container" class="style-scope ytd-commerce-cart-renderer">\n    <tp-yt-paper-spinner-lite id="spinner" active="[[commerceCartPageStateEntity.cartActionInProgress]]" class="style-scope ytd-commerce-cart-renderer">\n    </tp-yt-paper-spinner-lite>\n  </div>\n</div>\n');
a.content.insertBefore(_.w().content.cloneNode(!0),a.content.firstChild);return PSG=a},{mode:1});var O7j;var LK=function(){var a=_.G.apply(this,arguments)||this;a.bigImage=!1;return a};
_.b(LK,_.G);_.eH.Object.defineProperties(LK.prototype,{placeholderImageUrl:{configurable:!0,enumerable:!0,get:function(){var a;return(a=this.data)==null?void 0:a.placeholderImageUrl}}});
_.L([_.Q(_.k.YtRendererBehavior),_.p("design:type",Object)],LK.prototype,"ytRendererBehavior",void 0);_.L([_.x(),_.p("design:type",Object)],LK.prototype,"data",void 0);_.L([_.x({reflectToAttribute:!0}),_.p("design:type",Object)],LK.prototype,"bigImage",void 0);_.L([_.S("data"),_.p("design:type",Object),_.p("design:paramtypes",[])],LK.prototype,"placeholderImageUrl",null);_.L([_.U({disableElementRegistration:!0,is:"ytd-empty-product-shelf-renderer"})],LK);
_.D(LK,"ytd-empty-product-shelf-renderer",function(){if(O7j!==void 0)return O7j;var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-empty-product-shelf-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="main style-scope ytd-empty-product-shelf-renderer">\n  <template is="dom-if" if="[[placeholderImageUrl]]" class="style-scope ytd-empty-product-shelf-renderer">\n    <img id="placeholder-image" alt="icon" src$="[[placeholderImageUrl]]" class="style-scope ytd-empty-product-shelf-renderer">\n  </template>\n  <yt-formatted-string id="image-text" text="[[data.imageText]]" class="style-scope ytd-empty-product-shelf-renderer"></yt-formatted-string>\n</div>\n');
a.content.insertBefore(_.w().content.cloneNode(!0),a.content.firstChild);return O7j=a},{mode:1});var fSj;var l5=function(){var a=_.G.apply(this,arguments)||this;a.itemStyle="link-item";a.watchMetadataRefresh=!1;a.skinnyMode=!1;a.metaPanel=!1;a.inStructuredDescription=!1;a.actionMap={"yt-update-merchandise-shelf-action":"handleUpdateMerchShelfAction"};a.updateOnResizeDebouncer=null;return a};
_.b(l5,_.G);_.Z=l5.prototype;_.Z.ready=function(){this.updateOnResize=this.updateOnResize.bind(this);this.updateOnResize()};
_.Z.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"}}}}};
_.Z.dataChanged=function(){this.ytdHorizontalListBehavior.reset();this.updateOnResize()};
_.Z.attachVEs=function(a){a.trackingParams&&_.Kw().graftServerVe(a.trackingParams)};
_.Z.handleUpdateMerchShelfAction=function(a){var z=this,I=_.H(a.updateMerchandiseShelfAction.merchandiseShelf,_.jJe);I&&(I.renderDelayMs?(clearTimeout(this.dataSetTimeoutId),this.dataSetTimeoutId=setTimeout(function(){z.attachVEs(I);z.data=I},Number(I.renderDelayMs))):(this.attachVEs(I),this.data=I))};
_.Z.updateOnResize=function(){if(this.JSC$16736_scrollContainer!==void 0&&this.JSC$16736_scrollContainer.clientWidth!==0&&this.items!==void 0){var a=this.JSC$16736_scrollContainer.clientWidth;this.ytdHorizontalListBehavior.offset=Math.max(0,Math.min(this.ytdHorizontalListBehavior.offset,this.items.clientWidth-a));this.ytdHorizontalListBehavior.reposition_();var z;switch((z=this.data)==null?void 0:z.shelfType){case "MERCHANDISE_SHELF_TYPE_PRODUCT_LINK":this.itemStyle="link-item";break;default:var I,
J;((I=this.data)==null?void 0:(J=I.items)==null?void 0:J.length)===1?this.itemStyle="cta-item":this.itemStyle=a>=740?"large-item":"small-item"}}};
_.Z.debouncedUpdateOnResize=function(){this.updateOnResizeDebouncer=_.EH(this.updateOnResizeDebouncer,_.ao.after(100),this.updateOnResize)};
l5.prototype.debouncedUpdateOnResize=l5.prototype.debouncedUpdateOnResize;l5.prototype.dataChanged=l5.prototype.dataChanged;_.L([_.Q(_.k.YtRendererBehavior),_.p("design:type",Object)],l5.prototype,"ytRendererBehavior",void 0);_.L([_.Q(_.u4.YtRendererstamperBehavior),_.p("design:type",Object)],l5.prototype,"ytRendererstamperBehavior",void 0);_.L([_.Q(_.E3.YtdHorizontalListBehavior),_.p("design:type",Object)],l5.prototype,"ytdHorizontalListBehavior",void 0);
_.L([_.Q(_.Ms.YtComponentBehavior),_.p("design:type",Object)],l5.prototype,"ytComponentBehavior",void 0);_.L([_.Q(_.Hc.YtActionHandlerBehavior),_.p("design:type",Object)],l5.prototype,"ytActionHandlerBehavior",void 0);_.L([_.x(),_.p("design:type",Object)],l5.prototype,"data",void 0);_.L([_.x({reflectToAttribute:!0}),_.p("design:type",Object)],l5.prototype,"itemStyle",void 0);_.L([_.x({value:6}),_.p("design:type",Number)],l5.prototype,"initialCount",void 0);
_.L([_.x({value:"data.items"}),_.p("design:type",String)],l5.prototype,"itemsPath",void 0);_.L([_.x({reflectToAttribute:!0}),_.p("design:type",Object)],l5.prototype,"watchMetadataRefresh",void 0);_.L([_.x({reflectToAttribute:!0}),_.p("design:type",Object)],l5.prototype,"skinnyMode",void 0);_.L([_.x({reflectToAttribute:!0}),_.p("design:type",Object)],l5.prototype,"metaPanel",void 0);_.L([_.x({reflectToAttribute:!0}),_.p("design:type",Object)],l5.prototype,"inStructuredDescription",void 0);
_.L([_.A3("#items"),_.p("design:type",HTMLDivElement)],l5.prototype,"items",void 0);_.L([_.A3("#scroll-container"),_.p("design:type",HTMLDivElement)],l5.prototype,"JSC$16736_scrollContainer",void 0);_.L([_.O8("data"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],l5.prototype,"dataChanged",null);_.L([_.gz("iron-resize"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],l5.prototype,"debouncedUpdateOnResize",null);
_.L([_.U({disableElementRegistration:!0,is:"ytd-merch-shelf-renderer"})],l5);
_.D(l5,"ytd-merch-shelf-renderer",function(){if(fSj!==void 0)return fSj;var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-merch-shelf-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="main" class="style-scope ytd-merch-shelf-renderer">\n  <div id="banner" class="style-scope ytd-merch-shelf-renderer">\n    <div id="title" hidden="[[!data.title]]" role="heading" class="style-scope ytd-merch-shelf-renderer">[[data.title]]</div>\n    <yt-formatted-string id="title" hidden="[[!data.titleFormatted]]" role="heading" text="[[data.titleFormatted]]" class="style-scope ytd-merch-shelf-renderer">\n    </yt-formatted-string>\n    <div id="action-button" class="style-scope ytd-merch-shelf-renderer"></div>\n  </div>\n  <div id="empty-product" class="style-scope ytd-merch-shelf-renderer"></div>\n  <div id="item-list" class="style-scope ytd-merch-shelf-renderer">\n    <div id="left-arrow-container" class="center-aligned style-scope ytd-merch-shelf-renderer">\n      <div id="left-arrow" class="arrow center-aligned style-scope ytd-merch-shelf-renderer" on-click="prevClick_" hidden="[[atStart]]">\n        <yt-icon icon="yt-icons:chevron_left" class="style-scope ytd-merch-shelf-renderer"></yt-icon>\n      </div>\n    </div>\n    <div id="scroll-container" class="style-scope ytd-merch-shelf-renderer">\n      <div id="items" item-style$="[[itemStyle]]" class="style-scope ytd-merch-shelf-renderer">\n        \n        <template is="dom-repeat" items="[[shownItems]]" class="style-scope ytd-merch-shelf-renderer">\n          <ytd-merch-shelf-item-renderer data="[[item.merchandiseItemRenderer]]" item-style="[[itemStyle]]" class="style-scope ytd-merch-shelf-renderer">\n          </ytd-merch-shelf-item-renderer>\n        </template>\n      </div>\n    </div>\n    <div id="right-arrow-container" class="center-aligned style-scope ytd-merch-shelf-renderer">\n      <div id="right-arrow" class="arrow center-aligned style-scope ytd-merch-shelf-renderer" on-click="nextClick_" hidden="[[atEnd]]">\n        <yt-icon icon="yt-icons:chevron_right" class="style-scope ytd-merch-shelf-renderer"></yt-icon>\n      </div>\n    </div>\n  </div>\n</div>\n');a.content.insertBefore(_.w().content.cloneNode(!0),
a.content.firstChild);return fSj=a},{mode:2});var Aml;var pK=function(){var a=_.G.apply(this,arguments)||this;a.actionMap={"yt-add-backstage-comment-action":"addBackstageCommentAction","yt-add-backstage-post-action":"addBackstagePostAction","yt-add-backstage-reply-action":"addBackstageReplyAction","yt-ban-author-action":"banAuthorAction","yt-hide-reported-comment-action":"hideReportedCommentAction","yt-remove-comment-action":"removeCommentAction","yt-replace-backstage-comment-action":"replaceBackstageCommentAction","yt-replace-backstage-post-action":"replaceBackstagePostAction",
"yt-replace-backstage-reply-action":"replaceBackstageReplyAction"};return a};
_.b(pK,_.G);_.Z=pK.prototype;
_.Z.addBackstagePostAction=function(a){this.get("header.commentsHeaderRenderer.shouldShowBackstagePostOptimistically",this.data)&&(a=this.get("addBackstagePostAction.renderer.backstagePostThreadRenderer",a))&&(this.get("header.commentsHeaderRenderer.zeroStateMessage.backstageZeroStateRenderer",this.data)&&this.set("data.header.commentsHeaderRenderer.zeroStateMessage",{}),this.get("header.commentsHeaderRenderer.schedulingZeroStateMessage.postSchedulingZeroStateRenderer",this.data)&&this.set("data.header.commentsHeaderRenderer.schedulingZeroStateMessage",
{}),this.get("data.contents")?this.splice("data.contents",0,0,{backstagePostThreadRenderer:a}):this.set("data.contents",[{backstagePostThreadRenderer:a}]))};
_.Z.addBackstageCommentAction=function(a){var z=this.get("addBackstageCommentAction.parentId",a);a=this.get("addBackstageCommentAction.renderer.commentThreadRenderer",a);if(z&&a){z=this.postIdToIndices(z);for(var I=0;I<z.length;I++){var J=z[I];if(J<0)break;J="data.contents."+J+".backstagePostThreadRenderer.comments";this.get(J)&&(this.get(J+".backstageCommentsRenderer.contents")&&this.push(J+".backstageCommentsRenderer.contents",{commentThreadRenderer:a}),this.get(J+".backstageCommentsRenderer.teaserContents")?
this.push(J+".backstageCommentsRenderer.teaserContents",{commentThreadRenderer:a}):this.set(J+".backstageCommentsRenderer.teaserContents",[{commentThreadRenderer:a}]))}}};
_.Z.addBackstageReplyAction=function(a){var z=this.get("addBackstageReplyAction.parentId",a);a=this.get("addBackstageReplyAction.renderer.commentRenderer",a);z&&a&&this.setCreatorReply(z,a)};
_.Z.banAuthorAction=function(a){var z=this.get("banAuthorAction.commentId",a);z&&(a=this.get("banAuthorAction.parentCommentId",a)||this.getParentPostId(z),this.removeFromStream(z,a))};
_.Z.hideReportedCommentAction=function(a){var z=this.get("hideReportedCommentAction.commentId",a);z&&((a=this.get("hideReportedCommentAction.parentCommentId",a))||(a=this.getParentPostId(z)),this.removeFromStream(z,a))};
_.Z.replaceBackstageCommentAction=function(a){var z=this.get("replaceBackstageCommentAction.commentId",a),I=this.get("replaceBackstageCommentAction.parentId",a);a=this.get("replaceBackstageCommentAction.renderer.commentThreadRenderer",a);if(z&&I&&a){I=this.postIdToIndices(I);for(var J=0;J<I.length;J++){var r=I[J];if(r<0)break;var P=this.commentIdToIndex(z,r,!1);if(P>=0){var N=this.get("data.contents."+r+".backstagePostThreadRenderer.comments.backstageCommentsRenderer.contents."+P+".commentThreadRenderer.replies.commentRepliesRenderer");
N&&(a.replies={commentRepliesRenderer:N});this.splice("data.contents."+r+".backstagePostThreadRenderer.comments.backstageCommentsRenderer.contents",P,1,{commentThreadRenderer:a})}P=this.commentIdToIndex(z,r,!0);if(P>=0){if(N=this.get("data.contents."+r+".backstagePostThreadRenderer.comments.backstageCommentsRenderer.teaserContents."+(P+".commentThreadRenderer.replies.commentRepliesRenderer")))a.replies={commentRepliesRenderer:N};this.splice("data.contents."+r+".backstagePostThreadRenderer.comments.backstageCommentsRenderer.teaserContents",
P,1,{commentThreadRenderer:a})}}}};
_.Z.replaceBackstagePostAction=function(a){var z=this.get("replaceBackstagePostAction.itemId",a);if(z){z=this.postIdToIndices(z);for(var I=0;I<z.length;I++){var J=z[I];if(J<0)break;var r=this.getPostRendererType(J),P=this.get("replaceBackstagePostAction.renderer."+r,a);if(!P&&r!=="sharedPostRenderer")break;var N=!1;P||(N=!0,P=this.get("replaceBackstagePostAction.renderer.backstagePostRenderer",a));if(!P)break;var u={};N?(_.$N(u,wrX,P),this.set("data.contents."+J+".backstagePostThreadRenderer.post.sharedPostRenderer.originalPost",
u)):(_.$N(u,new _.jv(r),P),this.set("data.contents."+J+".backstagePostThreadRenderer.post",u))}}};
_.Z.replaceBackstageReplyAction=function(a){var z=this.get("replaceBackstageReplyAction.replyId",a),I=this.get("replaceBackstageReplyAction.parentId",a);a=this.get("replaceBackstageReplyAction.renderer.commentRenderer",a);z&&a&&I&&this.setCreatorReply(I,a)};
_.Z.removeCommentAction=function(a){var z=this.get("removeCommentAction.commentId",a);if(z){var I=this.get("removeCommentAction.parentCommentId",a);I&&this.get("removeCommentAction.isCreatorReply",a)?this.setCreatorReply(I,void 0):(I||(I=this.getParentPostId(z)),this.removeFromStream(z,I))}};
_.Z.setCreatorReply=function(a,z){var I=this.getParentPostId(a);if(I){I=this.postIdToIndices(I);for(var J=0;J<I.length;J++){var r=I[J];if(r<0)break;var P=this.commentIdToIndex(a,r,!1);if(P>=0){var N="data.contents."+r+".backstagePostThreadRenderer.comments.backstageCommentsRenderer.contents."+P;P=N+".commentThreadRenderer.comment.commentRenderer.containsCreatorReply";N+=".commentThreadRenderer.replies";z==void 0?(this.set(N,{}),this.set(P,!1)):(this.set(N,{commentRepliesRenderer:{teaserContents:[{commentRenderer:z}]}}),
this.set(N+".commentRepliesRenderer.teaserContents.0.commentRenderer.isCreatorReply",!0),this.set(P,!0))}P=this.commentIdToIndex(a,r,!0);P>=0&&(P="data.contents."+r+".backstagePostThreadRenderer.comments.backstageCommentsRenderer.teaserContents."+P,r=P+".commentThreadRenderer.comment.commentRenderer.containsCreatorReply",P+=".commentThreadRenderer.replies",z==void 0?(this.set(P,{}),this.set(r,!1)):(this.set(P,{commentRepliesRenderer:{teaserContents:[{commentRenderer:z}]}}),this.set(r,!0)))}}};
_.Z.removeFromStream=function(a,z){if(z){z=this.postIdToIndices(z);for(var I=0;I<z.length;I++){var J=z[I];if(J<0)break;var r=this.commentIdToIndex(a,J,!1);r>=0&&this.splice("data.contents."+J+".backstagePostThreadRenderer.comments.backstageCommentsRenderer.contents",r,1);r=this.commentIdToIndex(a,J,!0);r>=0&&this.splice("data.contents."+J+".backstagePostThreadRenderer.comments.backstageCommentsRenderer.teaserContents",r,1);J="data.contents."+J+".backstagePostThreadRenderer.post.backstagePostRenderer";
r=J+".backstageAttachment.pollRenderer.votedCommentId";this.get(r)===a&&(this.set(r,null),this.set(J+".backstageAttachment.pollRenderer.commentDelete",null))}}else for(z=this.postIdToIndices(a).reverse(),I=0;I<z.length;I++){J=z[I];if(J<0)break;r=this.getPostRendererType(J);var P=this.get("backstagePostThreadRenderer.post."+r,this.data.contents[J]);P.postId===a?this.splice("data.contents",J,1):r==="sharedPostRenderer"&&this.set("data.contents."+J+".backstagePostThreadRenderer.post.sharedPostRenderer.originalPost",
null);P.scheduledPublishTimeSec&&_.ZF(this.hostElement,"yt-update-posts-total-count-action",[{updatePostsTotalCountAction:{updateType:"UPDATE_POSTS_TOTAL_COUNT_TYPE_REMOVE",number:1}}])}};
_.Z.postIdToIndices=function(a){for(var z=[],I=0;I<this.data.contents.length;I++){var J=this.getPostRendererType(I);this.get("backstagePostThreadRenderer.post."+J+".postId",this.data.contents[I])===a&&z.push(I);if(J==="sharedPostRenderer"){var r=this.get("backstagePostThreadRenderer.post."+J+".originalPost.backstagePostRenderer.postId",this.data.contents[I]);J=this.get("backstagePostThreadRenderer.post."+J+".originalPost.postRenderer.postId",this.data.contents[I]);r!==a&&J!==a||z.push(I)}}return z};
_.Z.commentIdToIndex=function(a,z,I){if(z<0)return-1;var J,r,P,N,u=_.H((J=this.data)==null?void 0:(r=J.contents)==null?void 0:(P=r[z])==null?void 0:(N=P.backstagePostThreadRenderer)==null?void 0:N.comments,luj);return(z=I?u==null?void 0:u.teaserContents:u==null?void 0:u.contents)&&z.length?z.findIndex(function(E){return _.H(E,hSj).comment.commentRenderer.commentId===a}):-1};
_.Z.getParentPostId=function(a){a=a.split(".");if(a[1])return a[0]};
_.Z.getPostRendererType=function(a){return this.get("backstagePostThreadRenderer.post.sharedPostRenderer",this.data.contents[a])?"sharedPostRenderer":"backstagePostRenderer"};
_.L([_.Q(_.k.YtRendererBehavior),_.p("design:type",Object)],pK.prototype,"ytRendererBehavior",void 0);_.L([_.Q(_.Hc.YtActionHandlerBehavior),_.p("design:type",Object)],pK.prototype,"ytActionHandlerBehavior",void 0);_.L([_.x(),_.p("design:type",Object)],pK.prototype,"data",void 0);_.L([_.U({disableElementRegistration:!0,is:"ytd-backstage-items"})],pK);
_.D(pK,"ytd-backstage-items",function(){if(Aml!==void 0)return Aml;var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-backstage-items--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<ytd-item-section-renderer data="[[data]]" class="style-scope ytd-backstage-items"></ytd-item-section-renderer>\n');a.content.insertBefore(_.w().content.cloneNode(!0),a.content.firstChild);return Aml=
a},{mode:1});var sYI;var ng1={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},wx=function(){var a=_.G.apply(this,arguments)||this;a.disablePrescanVisibility=!0;a.canScheduleJobs=!0;a.engagementPanel=!1;a.hidePanelButton=!1;a.isWatchGrid=!1;a.hasShownSubscribersOnlyDisclaimer=!1;a.actionMap=
{"yt-ban-author-action":"banAuthorAction_","yt-create-comment-action":"createCommentAction_","yt-hide-reported-comment-action":"hideReportedCommentAction_","yt-pin-comment-action":"pinCommentAction_","yt-reload-comments-command":"reloadComments_","yt-remove-comment-action":"removeCommentAction_","yt-unpin-comment-action":"unpinCommentAction_"};return a};
_.b(wx,_.G);_.Z=wx.prototype;_.Z.created=function(){this.initCommentsCsi_();_.K("web_delhi_comment_threads")||(this.actionMap["yt-create-comment-reply-action"]="createCommentReplyAction_")};
_.Z.contentsChanged_=function(){var a;(a=this.data)!=null&&a.contents&&this.tickForCommentsTimer_("cml")};
_.Z.headerChanged_=function(){var a;(a=this.data)!=null&&a.header&&this.tickForCommentsTimer_("cmhl")};
_.Z.initCommentsCsi_=function(){_.$A("wn_comments");var a=_.TX();a&&_.Gb({clientScreenNonce:a},"wn_comments");this.tickForCommentsTimer_("cmi")};
_.Z.createCommentAction_=function(a){a=_.x8.unsafeClone(a);var z,I;if(a=(z=_.H(a,OpE))==null?void 0:(I=z.contents)==null?void 0:I.commentThreadRenderer){var J,r,P,N,u,E;!this.isBackstage&&((J=this.data)==null?0:(r=J.header)==null?0:(P=r.commentsHeaderRenderer)==null?0:(N=P.createRenderer)==null?0:(u=N.commentSimpleboxRenderer)==null?0:(E=u.zeroStep)==null?0:E.zeroStepChannelCreationRenderer)&&this.set("data.header.commentsHeaderRenderer.createRenderer.commentSimpleboxRenderer.zeroStep",{});var O,
f,A;this.isBackstage&&_.H((O=this.data)==null?void 0:(f=O.header)==null?void 0:(A=f.commentsHeaderRenderer)==null?void 0:A.zeroStateMessage,mHj)&&this.set("data.header.commentsHeaderRenderer.zeroStateMessage",{});this.insert_(a)}};
_.Z.doReplyInsert_=function(a,z,I,J){J?this.splice(a,J,0,z):this.push(a,z)};
_.Z.getRepliesPath_=function(a){return"data.contents."+a+".commentThreadRenderer.replies"};
_.Z.getRepliesContentsPath_=function(a,z){a=this.getRepliesPath_(a);return z?a+".commentRepliesRenderer.teaserContents":a+".commentRepliesRenderer.contents"};
_.Z.showSubscribersOnlyDisclaimer_=function(a){(a=a.detail.command)&&!this.hasShownSubscribersOnlyDisclaimer&&(a=this.ytdOpenPopupBehavior.getNavigationEndpointPopupAction(a))&&(_.ZF(this.hostElement,"yt-open-popup-action",[a,this]),this.hasShownSubscribersOnlyDisclaimer=!0)};
_.Z.createCommentReplyAction_=function(a){a=_.x8.unsafeClone(a);var z=_.H(a,foo);if(a=z==null?void 0:z.contents){var I=this.commentIdToIndex_(z==null?void 0:z.parentCommentId);if(!(I<0)){var J=this.getRepliesPath_(I);if(this.get(J)){z=z.replyToCommentId;J=this.getRepliesContentsPath_(I,!1);if(this.get(J)){var r=this.get(J).length,P=J+"."+(r-1)+".continuationItemRenderer";this.get(P+".button")?(P=this.replyIdToIndex_(z,I,!1),this.doReplyInsert_(J,a,P,r-1)):this.get(P)||(r=this.replyIdToIndex_(z,I,
!1),this.doReplyInsert_(J,a,r,null))}J=this.getRepliesContentsPath_(I,!0);this.get(J)?(I=this.replyIdToIndex_(z,I,!0),(!z||I>=0)&&this.doReplyInsert_(J,a,I,null)):this.set(J,[a])}else this.set(J,{commentRepliesRenderer:{teaserContents:[a]}})}}};
_.Z.hideReportedCommentAction_=function(a){var z=_.H(a,Wie);if(a=z==null?void 0:z.commentId)(z=this.get("parentCommentId",z))||(z=this.getParentCommentId_(a)),this.remove_(a,z)};
_.Z.getParentCommentId_=function(a){a=a.split(".");if(a[1])return a[0]};
_.Z.removeCommentAction_=function(a){var z=_.H(a,Fii);if(a=z==null?void 0:z.commentId)z=(z==null?void 0:z.parentCommentId)||this.getParentCommentId_(a),this.remove_(a,z)};
_.Z.pinCommentAction_=function(a){a=_.x8.unsafeClone(a);var z=_.H(a,Kii);z!=null&&z.commentId&&(a=this.get("pinCommentAction.actionResult.update.commentThreadRenderer",a))&&(this.remove_(z.commentId),this.insert_(a,!0))};
_.Z.unpinCommentAction_=function(a){a=_.x8.unsafeClone(a);a=_.H(a,Hpo);if(a!=null&&a.commentId){var z,I,J=(z=a.actionResult)==null?void 0:(I=z.update)==null?void 0:I.commentThreadRenderer;J&&(this.remove_(a.commentId),this.insert_(J))}};
_.Z.banAuthorAction_=function(a){var z=_.H(a,gMw);z!=null&&z.commentId&&(a=z.commentId,z=z.parentCommentId||this.getParentCommentId_(a),this.remove_(a,z))};
_.Z.commentIdToIndex_=function(a){var z;return a&&(z=this.data)!=null&&z.contents?this.data.contents.findIndex(function(I){I=I.commentThreadRenderer;var J;return a===((I==null?void 0:I.commentViewModel)&&((J=_.H(I.commentViewModel,vMX))==null?void 0:J.commentId))}):-1};
_.Z.insert_=function(a,z){z=z===void 0?!1:z;var I,J;if((I=this.data)==null?0:(J=I.contents)==null?0:J.some(function(P){return!!P.commentThreadRenderer}))for(I=0,J=this.data.contents.length;I<J;I++){var r=this.data.contents[I].commentThreadRenderer;
if(ng1[a.renderingPriority||"RENDERING_PRIORITY_UNKNOWN"]>=ng1[r.renderingPriority||"RENDERING_PRIORITY_UNKNOWN"]){z&&ng1[a.renderingPriority||"RENDERING_PRIORITY_UNKNOWN"]===ng1[r.renderingPriority||"RENDERING_PRIORITY_UNKNOWN"]?this.splice("data.contents",I,1,{commentThreadRenderer:a}):this.splice("data.contents",I,0,{commentThreadRenderer:a});break}}else this.set("data.contents",[{commentThreadRenderer:a}])};
_.Z.doReplyRemove_=function(a,z,I){a=this.replyIdToIndex_(a,z,I);a<0||(z=this.getRepliesContentsPath_(z,I),this.splice(z,a,1))};
_.Z.remove_=function(a,z){z=this.commentIdToIndex_(z);z<0?(z=this.commentIdToIndex_(a),z<0||this.splice("data.contents",z,1)):_.K("web_delhi_comment_threads")||(this.doReplyRemove_(a,z,!1),this.doReplyRemove_(a,z,!0))};
_.Z.replyIdToIndex_=function(a,z,I){if(z<0)return-1;z=this.getRepliesContentsPath_(z,I);z=this.get(z);if(!z||!z.length)return-1;I=0;for(var J=z.length;I<J;I++){var r=void 0,P=void 0;if(((r=z[I])==null?void 0:(P=r.commentViewModel)==null?void 0:P.commentId)===a)return I}return-1};
_.Z.tickForCommentsTimer_=function(a){_.Tb(a,void 0,"wn_comments")};
_.Z.reloadComments_=function(a){a=_.H(a,ipf);_.H(a==null?void 0:a.command,_.R5)&&_.N$(this.hostElement,[a==null?void 0:a.command])};
_.eH.Object.defineProperties(wx.prototype,{isBackstage:{configurable:!0,enumerable:!0,get:function(){var a,z,I;return!!((a=this.data)==null?0:(z=a.header)==null?0:(I=z.commentsHeaderRenderer)==null?0:I.isBackstageContent)}}});
_.eH.Object.defineProperties(wx,{template:{configurable:!0,enumerable:!0,get:function(){if(sYI===void 0){var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-comments--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<ytd-item-section-renderer id="sections" can-schedule-jobs="[[canScheduleJobs]]" comments-hide-panel-button="[[hidePanelButton]]" continuation-disable-prescan-visibility="[[disablePrescanVisibility]]" data="{{data}}" engagement-panel="[[engagementPanel]]" initial-count="2" is-watch-grid="[[isWatchGrid]]" class="style-scope ytd-comments">\n</ytd-item-section-renderer>\n');
a.content.insertBefore(_.w().content.cloneNode(!0),a.content.firstChild);sYI=a}a=sYI;return a}}});
wx.prototype.showSubscribersOnlyDisclaimer_=wx.prototype.showSubscribersOnlyDisclaimer_;wx.prototype.headerChanged_=wx.prototype.headerChanged_;wx.prototype.contentsChanged_=wx.prototype.contentsChanged_;_.L([_.Q(_.rI),_.p("design:type",Object)],wx.prototype,"ytdOpenPopupBehavior",void 0);_.L([_.Q(_.NtI.YtHostElementBehavior),_.p("design:type",Object)],wx.prototype,"ytHostElementBehavior",void 0);
_.L([_.Q(_.jz.YtPlayerListenerBehavior),_.p("design:type",Function)],wx.prototype,"ytPlayerListenerBehavior",void 0);_.L([_.Q(_.k.YtRendererBehavior),_.p("design:type",Object)],wx.prototype,"ytRendererBehavior",void 0);_.L([_.Q(_.Hc.YtActionHandlerBehavior),_.p("design:type",Object)],wx.prototype,"ytActionHandlerBehavior",void 0);_.L([_.x(),_.p("design:type",Object)],wx.prototype,"data",void 0);
_.L([_.x({reflectToAttribute:!0}),_.S("data.header.commentsHeaderRenderer.isBackstageContent"),_.p("design:type",Boolean),_.p("design:paramtypes",[])],wx.prototype,"isBackstage",null);_.L([_.x(),_.p("design:type",Object)],wx.prototype,"disablePrescanVisibility",void 0);_.L([_.x(),_.p("design:type",Object)],wx.prototype,"canScheduleJobs",void 0);_.L([_.x({reflectToAttribute:!0}),_.p("design:type",Object)],wx.prototype,"engagementPanel",void 0);
_.L([_.x(),_.p("design:type",Object)],wx.prototype,"hidePanelButton",void 0);_.L([_.x(),_.p("design:type",Object)],wx.prototype,"isWatchGrid",void 0);_.L([_.x(),_.p("design:type",Object)],wx.prototype,"hasShownSubscribersOnlyDisclaimer",void 0);_.L([_.O8("data.contents"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],wx.prototype,"contentsChanged_",null);
_.L([_.O8("data.header"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],wx.prototype,"headerChanged_",null);_.L([_.gz("yt-show-subscribers-only-disclaimer"),_.p("design:type",Function),_.p("design:paramtypes",[CustomEvent]),_.p("design:returntype")],wx.prototype,"showSubscribersOnlyDisclaimer_",null);_.L([_.U({is:"ytd-comments"})],wx);var mv=function(){return _.nM.apply(this,arguments)||this};
_.b(mv,_.nM);_.Z=mv.prototype;_.Z.bindIf=function(a,z,I){return a?z:I};
_.Z.bindIfDefined=function(a,z){return a!==void 0?a:z};
_.Z.booleanString=function(a){return(!!a).toString()};
_.Z.equals=function(){for(var a=_.dO.apply(0,arguments),z=a[0],I=1;I<a.length;I++)if(z!=a[I])return!1;return!0};
_.Z.isGreaterThan=function(a,z){return a>z};
_.Z.isLessThan=function(a,z){return a<z};
_.Z.logicalAND=function(){for(var a=_.dO.apply(0,arguments),z=!!a[0],I=1;I<a.length;I++)z=z&&!!a[I];return z};
_.Z.logicalOR=function(){for(var a=_.dO.apply(0,arguments),z=!!a[0],I=1;I<a.length;I++)z=z||!!a[I];return z};
_.Z.toBool=function(a){return!!a};
mv.prototype.toBool=mv.prototype.toBool;mv.prototype.logicalOR=mv.prototype.logicalOR;mv.prototype.logicalAND=mv.prototype.logicalAND;mv.prototype.isLessThan=mv.prototype.isLessThan;mv.prototype.isGreaterThan=mv.prototype.isGreaterThan;mv.prototype.equals=mv.prototype.equals;mv.prototype.booleanString=mv.prototype.booleanString;mv.prototype.bindIfDefined=mv.prototype.bindIfDefined;mv.prototype.bindIf=mv.prototype.bindIf;_.L([_.KM()],mv);_.KQG=[mv.prototype];var FQJ;var H7i;var yo=function(){return _.G.apply(this,arguments)||this};
_.b(yo,_.G);yo.prototype.configureRendererStamper=function(){return{"data.imageRenderer":{id:"image-renderer",mapping:{themedImageRenderer:{component:"yt-themed-image-renderer",params:{fit:!0}}}}}};
yo.prototype.onBackIconTap_=function(){window.history.back()};
_.L([_.Q(_.k.YtRendererBehavior),_.p("design:type",Object)],yo.prototype,"ytRendererBehavior",void 0);_.L([_.Q(_.u4.YtRendererstamperBehavior),_.p("design:type",Object)],yo.prototype,"ytRendererstamperBehavior",void 0);_.L([_.x(),_.p("design:type",Object)],yo.prototype,"data",void 0);_.L([_.dz({is:"yt-header-with-back-renderer",disableElementRegistration:!0})],yo);
_.D(yo,"yt-header-with-back-renderer",function(){if(H7i===void 0){var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-header-with-back-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.ypc.yt_header_with_back_renderer.yt.header.with.back.renderer.css.js--\x3e<div id="header-wrapper" class="style-scope yt-header-with-back-renderer">\n  <yt-icon-button id="back-button" label="Back" on-tap="onBackIconTap_" class="style-scope yt-header-with-back-renderer">\n    <yt-icon icon="yt-icons:arrow-back" class="style-scope yt-header-with-back-renderer"></yt-icon>\n  </yt-icon-button>\n  <div id="image-renderer" hidden="[[!data.imageRenderer]]" class="style-scope yt-header-with-back-renderer"></div>\n  <div id="header-container" class="style-scope yt-header-with-back-renderer">\n    <yt-formatted-string id="header-title" text="[[data.title]]" class="style-scope yt-header-with-back-renderer"></yt-formatted-string>\n    <yt-formatted-string id="header-subtitle" text="[[data.subtitle]]" class="style-scope yt-header-with-back-renderer"></yt-formatted-string>\n  </div>\n</div>\n');a.content.insertBefore(_.w().content.cloneNode(!0),
a.content.firstChild);var z=a.content,I=z.insertBefore;FQJ===void 0&&(FQJ=document.createElement("template"));var J=FQJ;I.call(z,J.content.cloneNode(!0),a.content.firstChild);H7i=a}a=H7i;return a},{mode:2});var b7E;var h5i;var k6=function(){var a=_.G.apply(this,arguments)||this;a.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return a};
_.b(k6,_.G);_.Z=k6.prototype;_.Z.attached=function(){this.isDarkTheme=!!document.documentElement.hasAttribute("dark")};
_.Z.onDarkModeToggledAction=function(a){a!==this.isDarkTheme&&(this.isDarkTheme=a,this.setUrl())};
_.Z.dataChanged=function(){var a=this;if(this.data){var z=this.setUrl();z&&_.ac({destination:window,iframe:this.iframe,origin:_.X4e(z.toString()),channelName:"yt-iframe",onMessage:function(I){(I=a.getCommunicationCommand(I.data))&&a.ytComponentBehavior.resolveCommand(I)},
onEstablished:function(){}})}};
_.Z.setUrl=function(){if(this.data&&this.data.iframeUrl){var a=_.$k(this.isDarkTheme&&this.data.darkThemeIframeUrl?this.data.darkThemeIframeUrl:this.data.iframeUrl);if(a)return _.lj(this.iframe,a),a}};
_.Z.getCommunicationCommand=function(a){var z;if((z=this.data)!=null&&z.onCommunicationCommandsMap){z=this.data.onCommunicationCommandsMap.find(function(r){return r.key===a});
if(z==null?0:z.value)return z==null?void 0:z.value;try{var I=Eul(_.cp(a)),J=this.data.onCommunicationCommandsMap.find(function(r){return r.key===(I==null?void 0:I.getMethodName())});
if(J==null?0:J.value)return J==null?void 0:J.value}catch(r){}}};
k6.prototype.dataChanged=k6.prototype.dataChanged;_.L([_.Q(_.k.YtRendererBehavior),_.p("design:type",Object)],k6.prototype,"ytRendererBehavior",void 0);_.L([_.Q(_.Ms.YtComponentBehavior),_.p("design:type",Object)],k6.prototype,"ytComponentBehavior",void 0);_.L([_.Q(_.Hc.YtActionHandlerBehavior),_.p("design:type",Object)],k6.prototype,"actionHandlerBehavior",void 0);_.L([_.x(),_.p("design:type",Object)],k6.prototype,"data",void 0);
_.L([_.x({value:!1}),_.p("design:type",Boolean)],k6.prototype,"isDarkTheme",void 0);_.L([_.A3("#iframe"),_.p("design:type",HTMLIFrameElement)],k6.prototype,"iframe",void 0);_.L([_.O8("data"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],k6.prototype,"dataChanged",null);_.L([_.dz({is:"yt-iframe-renderer",disableElementRegistration:!0})],k6);
_.D(k6,"yt-iframe-renderer",function(){if(h5i===void 0){var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-iframe-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.ypc.yt_iframe_renderer.yt.iframe.renderer.css.js--\x3e<iframe id="iframe" class="style-scope yt-iframe-renderer"></iframe>');a.content.insertBefore(_.w().content.cloneNode(!0),
a.content.firstChild);var z=a.content,I=z.insertBefore;b7E===void 0&&(b7E=document.createElement("template"));var J=b7E;I.call(z,J.content.cloneNode(!0),a.content.firstChild);h5i=a}a=h5i;return a},{mode:2});_.MB=function(a){_.FC.call(this);this.callback=a;this.bezier=new hLe(0,0,.4,0,.2,1,1,1);this.delay=new _.zX(this.next,window,this);this.JSC$16775_animating=!1;_.t7(this,this.delay)};
_.b(_.MB,_.FC);_.MB.prototype.isAnimating=function(){return this.JSC$16775_animating};
_.MB.prototype.start=function(a,z,I){this.config={from:a,to:z,duration:I,startTime:(0,_.jp)()};this.JSC$16775_animating=!0;this.next()};
_.MB.prototype.stop=function(){this.delay.stop();this.JSC$16775_animating=!1;this.config=void 0};
_.MB.prototype.next=function(){if(this.config){var a=this.config,z=a.from,I=a.to,J=a.duration;a=a.startTime;var r=(0,_.jp)()-a;a=this.bezier;J=Q0X(a,r/J);if(J==0)a=a.y0;else if(J==1)a=a.y3;else{r=hT(a.y0,a.y1,J);var P=hT(a.y1,a.y2,J);a=hT(a.y2,a.y3,J);r=hT(r,P,J);P=hT(P,a,J);a=hT(r,P,J)}a=_.TO(a,0,1);this.callback(z+(I-z)*a);a<1?this.delay.start():this.JSC$16775_animating=!1}};_.cQ=new _.I4("MINI_APP_CLIENT_DATA_PROVIDER_TOKEN");new CustomEvent("iframeLoadedForTesting");var V2w={INIT:0,START:1,READY:2,END:3,0:"INIT",1:"START",2:"READY",3:"END"},SIe=function(a,z,I,J){_.FC.call(this);this.JSC$16786_miniAppId=a;this.localReleaseId=z;this.derivedDeviceInterface=I;this.isForeground=J;this.JSC$16786_playNonceResolver=new _.EM;this.playPingTimerId=NaN;this.playPingIntervalMs=_.Ib("play_ping_interval_ms",3E4);this.playClickIntervalMs=_.Ib("play_click_interval_ms",3E4);this.enableDisplayingPpn=_.K("enable_displaying_ppn");this.JSC$16786_miniAppClientDataProvider=_.ab().resolve(_.cQ);
this.state=0;this.firstClickRecorded=!1;this.clickRecordedMs=0;this.beforeReady=!0;this.gameReady=!1;QYv(this);var r=setTimeout(function(){_.Xd(new _.Fn("Timed out after 30000ms while waiting for play nonce"))},3E4);
this.JSC$16786_playNonceResolver.promise.then(function(){clearTimeout(r)})};
_.b(SIe,_.FC);var xwG=function(a,z){a.JSC$16786_playNonceResolver.resolve(z!=null?z:GX(8));a.enableDisplayingPpn&&i7w(a).then(function(I){a.JSC$16786_miniAppClientDataProvider.clientData.set("post_play_nonce",I)})},i7w=function(a){return _.t(function(z){return z.nextAddress==1?z.yield(a.JSC$16786_playNonceResolver.promise,2):z.return(z.yieldResult)})},QYv=function(a){var z,I;
_.t(function(J){if(J.nextAddress==1)return J.yield(a.JSC$16786_playNonceResolver.promise,2);z=J.yieldResult;I={miniAppInfo:{externalPostId:a.JSC$16786_miniAppId,localReleaseId:a.localReleaseId,postPlayNonce:z,derivedDeviceInterface:a.derivedDeviceInterface}};_.Gb(I);_.nu(J)})},G81=function(a){a.state!==0?_.Xd(new _.Fn("[MiniAppPlayLogger] recordPlayStart failed with state "+V2w[a.state])):(a.state=1,Y6(a,"ma_cl"),qB(a,"PLAY_EVENT_TYPE_PLAY_START"),vgO(a))},$wi=function(a){a.isForeground=!1;
qB(a,"PLAY_EVENT_TYPE_PLAY_PAUSE")},XCX=function(a){a.state!==1&&a.state!==2?_.Xd(new _.Fn("[MiniAppPlayLogger] recordPlayEnd failed with state "+V2w[a.state])):(a.state=3,window.clearInterval(a.playPingTimerId),a.playPingTimerId=NaN,rNG(),qB(a,"PLAY_EVENT_TYPE_PLAY_END",{},!0))},TCf=function(a,z){a.state===2&&a.gameReady&&(a.firstClickRecorded?Date.now()-a.clickRecordedMs<a.playClickIntervalMs||(a.clickRecordedMs=Date.now(),qB(a,"PLAY_EVENT_TYPE_PLAY_CLICK")):z&&(Y6(a,"ma_fua"),qB(a,"PLAY_EVENT_TYPE_PLAY_FIRST_USER_ACTION",
{sendIsolatedPayload:!0}),a.firstClickRecorded=!0,a.clickRecordedMs=Date.now()))};
SIe.prototype.logError=function(a){var z=this,I;_.t(function(J){if(J.nextAddress==1)return a.metadata.externalPostId=z.JSC$16786_miniAppId,I=a.metadata,J.yield(Promise.race([z.JSC$16786_playNonceResolver.promise,new Promise(function(r){setTimeout(function(){r("")},3E4)})]),2);
I.postPlayNonce=J.yieldResult;a.metadata.localReleaseId=z.localReleaseId;a.loggingError.level="WARNING";_.Gx(a.loggingError,a.loggingError.level,void 0,void 0,void 0,void 0,void 0,{miniAppMetadata:a.metadata});_.nu(J)})};
var dwl=function(a,z,I,J){var r,P,N,u,E,O;_.t(function(f){if(f.nextAddress==1)return f.yield(a.JSC$16786_playNonceResolver.promise,2);r=f.yieldResult;P={externalPostId:a.JSC$16786_miniAppId,localReleaseId:a.localReleaseId,postPlayNonce:r,sdkVersion:I,api:z};J!==void 0&&(P.networkRequestsMeasurement={networkRequests:_.za(J,1),cachedRequests:_.za(J,2),transferredBytes:_.za(J,3)},(N=J)==null?0:_.nn(N,z7,6))&&(P.networkRequestsMeasurement.serviceWorkerRequestsMeasurement={interceptedRequests:((u=_.JC(J,
z7,6))==null?void 0:$R(u,1))||"0",cacheHits:((E=_.JC(J,z7,6))==null?void 0:$R(E,2))||"0",cachedBytes:((O=_.JC(J,z7,6))==null?void 0:$R(O,3))||"0"});_.x0("miniAppSdkUsage",P);_.nu(f)})},ogG=function(a,z,I){var J,r,P,N,u,E,O,f,A,n,F,h,v,d,W,l;
_.t(function(q){if(q.nextAddress==1)return q.yield(a.JSC$16786_playNonceResolver.promise,2);J=q.yieldResult;r={externalPostId:a.JSC$16786_miniAppId,localReleaseId:a.localReleaseId,postPlayNonce:J,sdkVersion:I,measurementWindow:{startTimestampMs:String(ie(z,1)),endTimestampMs:String(ie(z,2))},frameRate:{averageFrameTimeDeltaMs:xR(z,3),averageFrameIdleTimeMs:xR(z,4)}};_.nn(z,Iy,5)&&(r.networkRequests={networkRequests:(P=tV(z))==null?void 0:_.za(P,1),cachedRequests:(N=tV(z))==null?void 0:_.za(N,2),transferredBytes:(u=
tV(z))==null?void 0:_.za(u,3),sameOriginStatusCodeToCounts:WQj((E=tV(z))==null?void 0:SGi(E,4)),crossOriginStatusCodeToCounts:WQj((O=tV(z))==null?void 0:SGi(O,5))},(f=tV(z))==null?0:_.nn(f,z7,6))&&(r.networkRequests.serviceWorkerRequestsMeasurement={interceptedRequests:((A=tV(z))==null?void 0:(n=_.JC(A,z7,6))==null?void 0:$R(n,1))||"0",cacheHits:((F=tV(z))==null?void 0:(h=_.JC(F,z7,6))==null?void 0:$R(h,2))||"0",cachedBytes:((v=tV(z))==null?void 0:(d=_.JC(v,z7,6))==null?void 0:$R(d,3))||"0"});_.nn(z,
DSE,7)&&(r.gameCapture={averageFrameTimeDeltaMs:(W=_.JC(z,DSE,7))==null?void 0:xR(W,1),averageFrameIdleTimeMs:(l=_.JC(z,DSE,7))==null?void 0:xR(l,2)});_.x0("miniAppPerformanceMetrics",r);_.nu(q)})},UwJ=function(a,z){var I,J;
return _.t(function(r){if(r.nextAddress==1)return r.yield(a.JSC$16786_playNonceResolver.promise,2);I=r.yieldResult;J={adResult:"MINI_APP_AD_RESULT_REJECTED",miniAppContext:{externalPostId:a.JSC$16786_miniAppId,postPlayNonce:I,miniAppReleaseId:a.localReleaseId},derivedDeviceInterface:a.derivedDeviceInterface,adTriggerType:z,rejectedReason:"MINI_APP_AD_REJECTED_REASON_CLIENT_UNSUPPORTED"};_.x0("miniAppAdEvent",J);_.nu(r)})};
SIe.prototype.disposeInternal=function(){_.FC.prototype.disposeInternal.call(this);window.clearInterval(this.playPingTimerId);this.playPingTimerId=NaN};
var qB=function(a,z,I,J){I=I===void 0?{}:I;J=J===void 0?!1:J;var r,P,N,u;_.t(function(E){if(E.nextAddress==1)return r=a.isForeground,P=a.beforeReady,E.yield(a.JSC$16786_playNonceResolver.promise,2);N=E.yieldResult;u={externalPostId:a.JSC$16786_miniAppId,localReleaseId:a.localReleaseId,derivedDeviceInterface:a.derivedDeviceInterface,postPlayNonce:N,type:z};I.sequenceGroup=N;u.playState=P?"PLAY_STATE_NOT_READY":r?"PLAY_STATE_READY_FOREGROUND":"PLAY_STATE_READY_BACKGROUND";_.x0("miniAppPlayEvent",u,
I);J&&_.va();_.nu(E)})},Y6=function(a,z){var I;
_.t(function(J){if(J.nextAddress==1)return I=(0,_.jp)(),J.yield(a.JSC$16786_playNonceResolver.promise,2);_.Xz(z,I);_.nu(J)})},vgO=function(a){isNaN(a.playPingTimerId)&&(a.playPingTimerId=_.Ne(function(){a.state!==1&&a.state!==2?_.Xd(new _.Fn("[MiniAppPlayLogger] reportPlayPing failed with state "+V2w[a.state])):qB(a,"PLAY_EVENT_TYPE_PLAY_PING")},a.playPingIntervalMs))},WQj=function(a){return Array.from(a.entries()).map(function(z){var I=_.C(z);
z=I.next().value;I=I.next().value;return{key:z,value:I}})};var DwI=function(){},R5i=function(a,z){a.showMiniAppAdCommand=z.showMiniAppAdCommand;
a.isEmbeddedInWebview=z.isEmbeddedInWebview;a.playLogger=z.playLogger},lSo=function(a,z){var I;
return _.t(function(J){if(J.nextAddress==1){if(!a.showMiniAppAdCommand||!a.isEmbeddedInWebview)return J.return(LQG(a,z));a.adResolver=new _.EM;var r=new dB;I=_.ro(r,3,z);W0(a.showMiniAppAdCommand,fNG(I));return J.yield(a.adResolver.promise,2)}return J.return(J.yieldResult)})};
DwI.prototype.onAdFinished=function(a){a=AYw(a);var z;(z=this.adResolver)==null||z.resolve(a)};
var LQG=function(a,z){var I;return _.t(function(J){if(J.nextAddress==1)J=J.yield((I=a.playLogger)==null?void 0:UwJ(I,wkG(z)),2);else{var r=J.return;var P=new f8w;P=_.ro(P,1,2);J=r.call(J,P)}return J})};var pCJ=new _.I4("INNERTUBE_MANAGER_TOKEN");var wCo=function(){this.callbacks={}};
wCo.prototype.initialize=function(a){var z=this;this.callbacks=a;window.youtubewebview?window.youtubewebview.onmessage=function(I){mwf(z,I)}:(window.nativeMessageListener={},window.nativeMessageListener.onmessage=function(I){mwf(z,I)})};
var mwf=function(a,z){if(z.data)try{var I=Eul(z.data);if(_.gE(_.sB(I,1))!=null){var J=tvo(_.vb(I,2));switch(I.getMethodName()){case "yt-mini-app-load-audio-state":var r,P;(P=(r=a.callbacks).onAudioStateLoaded)==null||P.call(r,_.SQ(J,nv(J,T7,1)));break;case "yt-mute-mini-app":var N,u;(u=(N=a.callbacks).onMuteMiniApp)==null||u.call(N);break;case "yt-unmute-mini-app":var E,O;(O=(E=a.callbacks).onUnmuteMiniApp)==null||O.call(E);break;case "yt-playable-exit":var f,A;(A=(f=a.callbacks).onExit)==null||A.call(f);
break;case "yt-post-play-nonce":var n,F;(F=(n=a.callbacks).onPostPlayNonceReceived)==null||F.call(n,Xg(J,2,T7));break;case "yt-confirm-exit-mini-app":var h,v;(v=(h=a.callbacks).confirmExitMiniApp)==null||v.call(h);break;case "yt-confirm-exit-mini-app-edu":var d,W;(W=(d=a.callbacks).confirmExitMiniAppEdu)==null||W.call(d);break;case "yt-benchmarking-response":var l,q;(q=(l=a.callbacks).onNativeBenchmarkingMessageReceived)==null||q.call(l,Xg(J,2,T7));break;case "yt-mini-app-load-3p-consent-state":var m,
M;(M=(m=a.callbacks).multiplayer3pAckStateLoaded)==null||M.call(m,_.SQ(J,nv(J,T7,1)));break;case "yt-mini-app-get-exit-mini-app-seen-state":var y,e;(e=(y=a.callbacks).exitMiniAppSeenStateLoaded)==null||e.call(y,_.SQ(J,nv(J,T7,1)));break;case "yt-mini-app-on-navigate-to-new-mini-app":var Bp,Em;(Em=(Bp=a.callbacks).onNavigateToNewMiniApp)==null||Em.call(Bp);break;case "yt-game-data-available":var nG,bG;(bG=(nG=a.callbacks).onGameDataAvailable)==null||bG.call(nG,Xg(J,2,T7));break;case "yt-pause-mini-app":var Hp,
LG;(LG=(Hp=a.callbacks).onPauseMiniApp)==null||LG.call(Hp);break;case "yt-resume-mini-app":var oE,Pe;(Pe=(oE=a.callbacks).onResumeMiniApp)==null||Pe.call(oE);break;case "yt-playable-ad-finished":var TJ,Be;(Be=(TJ=a.callbacks).onAdFinished)==null||Be.call(TJ,Xg(J,2,T7))}}else _.Xd(Error("Sh"))}catch(eM){_.Gx(Error("Th"))}else _.Xd(Error("Uh"))};var yu1=function(a){this.rpcErrorCode=a};var eR=function(a,z,I){this.intervalMs=a;this.apiFunc=z;this.type=I;this.schedulerReady=!0};
eR.prototype.call=function(a){var z=this,I;return _.t(function(J){if(J.nextAddress==1){if(z.type!==1&&a===z.cachedValue)return J.return();z.pendingApiRequestResolver||(z.pendingApiRequestResolver=new _.EM);I=z.pendingApiRequestResolver.promise;z.cachedValue=a;return J.yield(ymE(z),2)}return J.return(I)})};
eR.prototype.flush=function(a){a=a===void 0?!1:a;var z=this;return _.t(function(I){return z.cachedValue===void 0?I.return():I.yield(z.apiFunc(z.cachedValue,a),0)})};
var ymE=function(a){var z,I,J;return _.t(function(r){switch(r.nextAddress){case 1:if(!a.schedulerReady||!a.pendingApiRequestResolver)return r.return();a.schedulerReady=!1;z=a.pendingApiRequestResolver;a.pendingApiRequestResolver=void 0;_.BP(r,2);if(a.cachedValue===void 0){r.jumpTo(4);break}return r.yield(a.apiFunc(a.cachedValue),5);case 5:I=r.yieldResult,z.resolve(I);case 4:_.p1(r,3);break;case 2:J=_.sk(r),z.reject(J);case 3:setTimeout(function(){return _.t(function(P){a.schedulerReady=!0;return P.yield(ymE(a),
0)})},a.intervalMs),_.nu(r)}})};var cuG=window.location.origin+"/miniapp_cloudsaves",kmx=[400,401],k8E=_.Ib("cloud_save_game_data_rate_limit_ms",3E3),YIj=function(a){var z=this;this.JSC$16830_miniAppId=a;this.loadAttempts=0;this.cloudSaveIntervalMs=k8E;this.initialDownloadDataSucceeded=!1;this.JSC$16830_playNonceResolver=new _.EM;this.scottyUploadRateLimiter=new eR(this.cloudSaveIntervalMs,function(I,J){return M2X(z,I,J)},2);
this.downloadDataPromise=cmJ(this);this.downloadDataPromise.then(function(){z.initialDownloadDataSucceeded=!0}).catch(function(){})},qIO=function(a,z){z.then(function(I){return a.JSC$16830_playNonceResolver.resolve(I)})},e5w=function(a){return _.t(function(z){return a.cachedData===void 0?z.return(a.downloadDataPromise):z.return(a.cachedData)})},a$E=function(a,z){return _.t(function(I){a.cachedData=z;
if(!a.initialDownloadDataSucceeded)throw Error("Vh");return I.yield(a.scottyUploadRateLimiter.call(z),0)})},jBo=function(){return new Promise(function(a){setTimeout(a,1E3,"")})},zmf=function(a,z){var I,J;
return _.t(function(r){if(r.nextAddress==1)return I=a.JSC$16830_miniAppId,r.yield(Promise.race([a.JSC$16830_playNonceResolver.promise,jBo()]),2);J={"X-YouTube-MiniAppId":I,"X-YouTube-PostPlayNonce":r.yieldResult};"DELEGATED_SESSION_ID"in _.GZ&&U$M(z,J);return r.return(J)})},M2X=function(a,z,I){I=I===void 0?!1:I;
return _.t(function(J){return m2O()?_.K("enable_cloud_save_error_popup_after_retry")?J.return(new Promise(function(r,P){var N,u,E,O,f;return _.t(function(A){switch(A.nextAddress){case 1:N=0,u=!0,O=E=null;case 2:if(!(u&&N++<2)){A.jumpTo(4);break}_.BP(A,5);return A.yield(I$O(a,z,I),7);case 7:E=A.yieldResult;u=E.ok?!1:!kmx.includes(E.status);_.p1(A,2);break;case 5:O=f=_.sk(A);u=MSI(O);A.jumpTo(2);break;case 4:E?E.ok?(ae(a,k8E),r()):(ae(a,a.cloudSaveIntervalMs*2),P(Error("Wh`"+String(E.status),{cause:{rpcErrorCode:E.status}}))):
(ae(a,a.cloudSaveIntervalMs*2),P(O||Error("Xh"))),_.nu(A)}})})):J.return(new Promise(function(r,P){var N,u;
return _.t(function(E){if(E.nextAddress==1){if(a.JSC$16830_miniAppId==="")return P(Error("Yh")),E.return();_.BP(E,2);return E.yield(I$O(a,z,I),4)}if(E.nextAddress!=2)return N=E.yieldResult,N.ok?(ae(a,k8E),r()):(ae(a,a.cloudSaveIntervalMs*2),P(Error("Wh`"+String(N.status),{cause:{rpcErrorCode:N.status}}))),_.p1(E,0);u=_.sk(E);ae(a,a.cloudSaveIntervalMs*2);P(u);_.nu(E)})})):J.return()})},I$O=function(a,z,I){I=I===void 0?!1:I;
var J,r,P;return _.t(function(N){if(N.nextAddress==1)return J=_.he((new TextEncoder).encode(z)),r=YoE(),N.yield(zmf(a,r),2);P=N.yieldResult;return N.return(fetch(r,{method:"POST",body:new Blob([J]),headers:P,keepalive:I}))})},cmJ=function(a){var z,I;
return _.t(function(J){if(J.nextAddress==1){if(!m2O())return J.return("");if(a.JSC$16830_miniAppId==="")throw Error("Yh");if(a.loadAttempts>2)return J.return(a.downloadDataPromise);_.BP(J,2);return J.yield(JwE(a),4)}if(J.nextAddress!=2)return z=J.yieldResult,J.return(z);I=_.sk(J);if(MSI(I)&&++a.loadAttempts<2)return J.return(cmJ(a));throw I;})},JwE=function(a){var z,I,J,r,P;
return _.t(function(N){switch(N.nextAddress){case 1:return _.BP(N,2),z=YoE(),N.yield(zmf(a,z),4);case 4:return I=N.yieldResult,N.yield(fetch(z,{method:"GET",headers:I}),5);case 5:return J=N.yieldResult,J.ok?N.yield(J.text(),6):N.return(Promise.reject(Error("Zh`"+String(J.status),{cause:new yu1(J.status)})));case 6:return r=N.yieldResult,N.return((new TextDecoder).decode(_.cp(r)));case 2:return P=_.sk(N),N.return(Promise.reject(P))}})},ae=function(a,z){a.cloudSaveIntervalMs=z;
a.scottyUploadRateLimiter.intervalMs=a.cloudSaveIntervalMs};
YIj.prototype.flush=function(){var a=this;return _.t(function(z){return a.initialDownloadDataSucceeded?z.yield(a.scottyUploadRateLimiter.flush(!0),0):z.return()})};var rww=CQ(Z5(1),rB(1)),PRJ=CQ(Z5(1),rB(3)),jw=function(a){this.callbacks=a};
_.Z=jw.prototype;_.Z.onAudioToggled=function(a,z){(z===void 0||z)&&_.s4("yt-mini-app-is-audio-enabled",a,2592E3)};
_.Z.onPause=function(){this.onAudioToggled(!1,!1)};
_.Z.onResume=function(){this.onAudioToggled(this.callbacks.isAudioEnabled(),!1)};
_.Z.returnNativeBenchmarkingMessage=function(){};
_.Z.sendGameData=function(){};
_.Z.sendStartGameFrameCapture=function(){};
var qo7=function(a,z,I){this.callbacks=a;var J=this;this.sdkVersion=new _.EM;this.channel=new or$(_.ac({destination:window,iframe:z,origin:(new URL(I.toString())).origin,channelName:"playableIframe",onMessage:this.onMessage(),onEstablished:function(){var r=z_;var P=Z5(5);var N=new QsX;N=_.dL(N,1,1E4);P=_.Oa(P,4,TLO,N);r(J,P);J.onAudioToggled(J.callbacks.isAudioEnabled())}}));
this.sdkVersionTimeoutId=setTimeout(function(){J.sdkVersion.resolve("")},1E4)};
_.b(qo7,jw);_.Z=qo7.prototype;_.Z.onAudioToggled=function(a,z){jw.prototype.onAudioToggled.call(this,a,z===void 0?!0:z);z=z_;var I=Z5(2),J=new hsO;a=_.PW(J,1,a);a=_.Oa(I,3,TLO,a);z(this,a)};
_.Z.onPause=function(){jw.prototype.onPause.call(this);z_(this,Z5(3))};
_.Z.onResume=function(){jw.prototype.onResume.call(this);z_(this,Z5(4))};
_.Z.returnNativeBenchmarkingMessage=function(a){var z=z_,I=Z5(6);var J=rB(_.nn(a,kB,1)?1:2);a=_.nn(a,kB,1)?a:null;J=_.Oa(J,5,PU,a);z(this,CQ(I,J))};
_.Z.sendGameData=function(a){var z=z_,I=Z5(7);a=_.Oa(I,5,TLO,a);z(this,a)};
_.Z.sendStartGameFrameCapture=function(){z_(this,Z5(9))};
var Ie=function(a,z,I){var J,r,P;return _.t(function(N){if(N.nextAddress==1)return J=a.callbacks,r=J.onSdkCalled,P=z,N.yield(a.sdkVersion.promise,2);r.call(J,P,N.yieldResult,I);_.nu(N)})};
qo7.prototype.onMessage=function(){var a=this;return RDx(uc,function(z){var I,J,r,P,N,u,E,O,f,A,n,F,h,v,d,W,l,q,m,M,y,e,Bp,Em,nG,bG,Hp,LG,oE,Pe,TJ,Be,eM,Ao,gf,GJ,Sf,ce,r$,aw,Kl,EG,F1,jf,zj,aZ;return _.t(function(Cl){switch(Cl.nextAddress){case 1:if(!pbv(z.data))return _.Xd(Error("$h")),Cl.return();I=_.GL(z.data,1);_.K("enable_iframe_message_get_type_via_fields")&&(J=z.data,I=r=_.GL(J,1));switch(I){case 8:if(z.data.hasMetadata()){var kG=a.sdkVersion,sG=kG.resolve;var SI=z.data.getMetadata();SI=_.vb(SI,
1);sG.call(kG,SI);clearTimeout(a.sdkVersionTimeoutId)}break;case 6:return Cl.jumpTo(2);case 16:if(!_.Kn(z.data,oRl,14,EL))return Cl.return();P=_.TL(z.data,oRl,14,EL);(u=(N=a.callbacks).onGameFrameReceived)==null||u.call(N,P);return Cl.return();case 17:if(!_.Kn(z.data,W7I,15,EL))return Cl.return();(O=(E=a.callbacks).onGameAudioReceived)==null||O.call(E,_.TL(z.data,W7I,15,EL));return Cl.return();case 1:if(kG=_.TL(z.data,xSI,2,EL))switch(_.GL(kG,1)){case 1:a.callbacks.onFirstFrameReady();if(_.K("enable_network_request_logging_on_game_events")&&
_.nn(kG,Iy,4)){Ie(a,"MINI_APP_SDK_API_FIRST_FRAME_READY",_.JC(kG,Iy,4));break}Ie(a,"MINI_APP_SDK_API_FIRST_FRAME_READY");break;case 2:(SI=(sG=a.callbacks).onGameReady)==null||SI.call(sG);if(_.K("enable_network_request_logging_on_game_events")&&_.nn(kG,Iy,4)){Ie(a,"MINI_APP_SDK_API_GAME_READY",_.JC(kG,Iy,4));break}Ie(a,"MINI_APP_SDK_API_GAME_READY");break;case 3:if(_.Kn(kG,JV,3,vRO))a.callbacks.onResourceLoaded(_.TL(kG,JV,3,vRO))}return Cl.return();case 3:return Cl.jumpTo(3);case 4:return Cl.jumpTo(4);
case 2:return Cl.jumpTo(5);case 9:return Cl.jumpTo(6);case 10:return a.callbacks.onClick(),Cl.return();case 5:return Cl.jumpTo(7);case 11:if(!_.Kn(z.data,ay,9,EL))return Cl.return();f=_.TL(z.data,ay,9,EL);(n=(A=a.callbacks).onBenchmarkingMessageReceived)==null||n.call(A,f);kG=z.reply;sG=Z5(1);SI=rB(1);var iw=new ay;var H4=new Uint8Array(CR1(f,nv(f,nRl,6))|0);iw=g2(iw,5,nRl,_.Qi(H4,!1));SI=_.Oa(SI,5,PU,iw);kG.call(z,CQ(sG,SI));return Cl.return();case 12:return Cl.jumpTo(8);case 13:return Cl.jumpTo(9);
case 15:if(!_.K("enable_open_yt_content"))return z.reply(PRJ),Cl.return();if(!_.Kn(z.data,dSl,12,EL))return z.reply(CQ(Z5(1),rB(2))),Cl.return();kG=_.TL(z.data,dSl,12,EL);F=_.vb(kG,1);a.callbacks.onOpenYTContent(F);z.reply(rww);return Cl.return();case 14:return Cl.jumpTo(10);default:return Cl.return()}Cl.jumpTo(0);break;case 2:if(!_.Kn(z.data,Ny,5,EL))return Cl.return();sG=z.data;kG=nv(sG,EL,5);sG=sG.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;h=$03(sG,sG[_.rf]|0,Ny,kG)||Ny[TfE]||(Ny[TfE]=
dE7(Ny));kG=_.af(h,jG,1,_.jW());v=_.C(kG);d=v.next();case 12:if(d.done){Cl.jumpTo(14);break}W=d.value;l=new _.Fn;l.level=_.GL(W,2)===1?"WARNING":"ERROR";q=a9$(W.getSource());return Cl.yield(a.sdkVersion.promise,15);case 15:m={source:q,sdkVersion:Cl.yieldResult};_.YG(_.sB(W,6))!=null?(l.message=W.getMessage(),l.stack=_.vb(W,5),m.sdkErrorType=jud(_.GL(W,6)),_.YG(_.sB(W,7))!=null&&(m.sdkApi=z87(_.GL(W,7)))):l.stack=void 0;y=M=void 0;(y=(M=a.callbacks).onError)==null||y.call(M,{loggingError:l,metadata:m});
d=v.next();Cl.jumpTo(12);break;case 14:return Cl.return();case 3:return _.BP(Cl,16),kG=Cl.yield,sG=a.callbacks,SI=sG.onSave,iw=_.TL(z.data,VQe,4,EL),iw=_.vb(iw,1),kG.call(Cl,SI.call(sG,iw),18);case 18:z.reply(rww);_.p1(Cl,17);break;case 16:return e=_.sk(Cl),Bp=od,Em=e,nG=a.callbacks,bG="MINI_APP_SDK_API_SAVE_DATA",Cl.yield(a.sdkVersion.promise,19);case 19:Bp(Em,nG,bG,Cl.yieldResult),z.reply(PRJ);case 17:return Cl.yield(Ie(a,"MINI_APP_SDK_API_SAVE_DATA"),20);case 20:return Cl.return();case 4:return _.BP(Cl,
21),Cl.yield(a.callbacks.onLoad(),23);case 23:Hp=Cl.yieldResult;kG=z.reply;sG=Z5(1);SI=rB(1);iw=new VQe;iw=_.KB(iw,1,Hp);SI=_.Oa(SI,3,PU,iw);kG.call(z,CQ(sG,SI));_.p1(Cl,22);break;case 21:return LG=_.sk(Cl),oE=od,Pe=LG,TJ=a.callbacks,Be="MINI_APP_SDK_API_LOAD_DATA",Cl.yield(a.sdkVersion.promise,24);case 24:oE(Pe,TJ,Be,Cl.yieldResult),z.reply(PRJ);case 22:return Cl.yield(Ie(a,"MINI_APP_SDK_API_LOAD_DATA"),25);case 25:return Cl.return();case 5:_.BP(Cl,26);a.callbacks.onSendHighScore(vW(_.TL(z.data,
L7o,3,EL).getValue()));z.reply(CQ(Z5(1),rB(1)));_.p1(Cl,27);break;case 26:return eM=_.sk(Cl),Ao=od,gf=eM,GJ=a.callbacks,Sf="MINI_APP_SDK_API_SEND_SCORE",Cl.yield(a.sdkVersion.promise,28);case 28:Ao(gf,GJ,Sf,Cl.yieldResult),z.reply(PRJ);case 27:return Cl.yield(Ie(a,"MINI_APP_SDK_API_SEND_SCORE"),29);case 29:return Cl.return();case 6:if(!_.Kn(z.data,l8l,8,EL)){Cl.jumpTo(30);break}kG=Cl.yield;sG=_.TL(z.data,l8l,8,EL);sG=_.GL(sG,1);return kG.call(Cl,Ie(a,z87(sG)),30);case 30:return Cl.return();case 7:return kG=
z.reply,sG=Z5(1),SI=rB(1),iw=a.callbacks.getLanguage(),SI=g2(SI,4,PU,u0(iw)),kG.call(z,CQ(sG,SI)),Cl.yield(Ie(a,"MINI_APP_SDK_API_GET_LANGUAGE"),32);case 32:return Cl.return();case 8:if(!_.Kn(z.data,Rsw,10,EL))return Cl.return();ce=_.TL(z.data,Rsw,10,EL);r$=a.callbacks;aw=r$.onSdkPerformanceUpdate;return Cl.yield(a.sdkVersion.promise,33);case 33:return aw.call(r$,ce,Cl.yieldResult),Cl.return();case 9:kG=z.data;sG=nv(kG,EL,11);if(_.gE(_.sB(kG,sG))==null)return z.reply(CQ(Z5(1),rB(2))),Cl.return();
Kl=Xg(z.data,11,EL);a.callbacks.onShareInviteCode(Kl);z.reply(rww);return Cl.yield(Ie(a,"MINI_APP_SDK_API_SHARE_INVITE_CODE"),34);case 34:return Cl.return();case 10:if(_.Kn(z.data,bnG,13,EL)){Cl.jumpTo(35);break}return Cl.yield(a.callbacks.onShowMiniAppAd(2),36);case 36:return EG=Cl.yieldResult,z.reply(CQ(Z5(1),$Sw(EG))),Cl.yield(Ie(a,"MINI_APP_SDK_API_REQUEST_AD"),37);case 37:return Cl.return();case 35:kG=_.TL(z.data,bnG,13,EL);a:switch(_.GL(kG,1)){case 1:kG={adType:2,sdkApi:"MINI_APP_SDK_API_REQUEST_INTERSTITIAL_AD"};
break a;case 2:kG={adType:3,sdkApi:"MINI_APP_SDK_API_REQUEST_REWARDED_AD"};break a;default:kG={adType:0,sdkApi:"MINI_APP_SDK_API_REQUEST_AD"}}F1=kG;jf=F1.adType;zj=F1.sdkApi;kG=Cl.yield;sG=a.callbacks;SI=sG.onShowMiniAppAd;iw=_.TL(z.data,bnG,13,EL);iw=_.vb(iw,2);return kG.call(Cl,SI.call(sG,jf,iw||void 0),38);case 38:return aZ=Cl.yieldResult,z.reply(CQ(Z5(1),$Sw(aZ))),Cl.yield(Ie(a,zj),39);case 39:return Cl.return()}})})};
var z_=function(a,z){_.t(function(I){a.channel.send(z);_.nu(I)})},U1=function(a,z,I){this.callbacks=a;
var J=this;this.encoder=new TextEncoder;this.decoder=new TextDecoder;a=lxx(z,(new URL(I.toString())).origin);this.gameSnacks=new aiv(a);this.gameSnacks.page.onReady(function(){J.callbacks.onFirstFrameReady()});
this.gameSnacks.userActivity.onUserActivity(function(){J.callbacks.onClick()},1E4);
this.gameSnacks.game.onReady(function(){var r,P;(P=(r=J.callbacks).onGameReady)==null||P.call(r)});
this.gameSnacks.audio.update(this.callbacks.isAudioEnabled());this.gameSnacks.score.onChange(function(r,P){try{J.callbacks.onSendHighScore(P)}catch(N){od(N,J.callbacks,"MINI_APP_SDK_API_SEND_SCORE","GS")}});
this.gameSnacks.storage.onSave(function(r,P){var N;return _.t(function(u){if(u.nextAddress==1)return _.BP(u,2),u.yield(J.callbacks.onSave(J.decoder.decode(P)),4);if(u.nextAddress!=2)return _.p1(u,0);N=_.sk(u);od(N,J.callbacks,"MINI_APP_SDK_API_SAVE_DATA","GS");return u.return()})});
this.gameSnacks.storage.onLoad(function(){var r,P;return _.t(function(N){if(N.nextAddress==1)return _.BP(N,2),N.yield(J.callbacks.onLoad(),4);if(N.nextAddress!=2)return r=N.yieldResult,N.return(J.encoder.encode(r));P=_.sk(N);od(P,J.callbacks,"MINI_APP_SDK_API_LOAD_DATA","GS");return N.return(J.encoder.encode(""))})});
this.gameSnacks.init()};
_.b(U1,jw);U1.prototype.onAudioToggled=function(a,z){jw.prototype.onAudioToggled.call(this,a,z===void 0?!0:z);var I;(I=this.gameSnacks)==null||I.audio.update(a)};
U1.prototype.onPause=function(){jw.prototype.onPause.call(this);var a;(a=this.gameSnacks)==null||a.game.pause()};
U1.prototype.onResume=function(){jw.prototype.onResume.call(this);var a;(a=this.gameSnacks)==null||a.game.resume()};var Zb1=I97,CRo=_.ec(function(a){var z=a.data;var I=a.loadingProgress;var J=a.forPaused;a=_.C(_.CW("",void 0,"H20Jvc"));var r=a.next().value,P=a.next().value;a=_.C(_.CW(!1,void 0,"wB49T"));var N=a.next().value,u=a.next().value,E=[],O=function(){return"transform: scaleX("+(_.SJ(I)||0)+")"},f=null,A=function(){return z()&&f!==null&&f!==void 0?f:f=z().showAnniversaryAnimation?6:Zb1()};
_.h2(function(){var v;if(z().timeOutMessages&&((v=z().timeOutMessages)==null?0:v.length)){f=null;v=_.C(E);for(var d=v.next();!d.done;d=v.next())clearTimeout(d.value);E.length=0;Jgm(z().timeOutMessages,E,P,u)}},"BsN3G");
var n=function(){return!!z().persistentErrorMessageTitle},F=function(){return I!==void 0},h=function(){return z().title};
return _.B("yt-mini-splash-screen-view-model",{class:"mini-app-splash-screen-view-model-wiz"},_.B("div",{class:"mini-app-splash-screen-view-model-wiz__loading-screen",role:"region",tabindex:0},_.B("div",{class:"mini-app-splash-screen-view-model-wiz__background-base"}),_.B("div",{class:"mini-app-splash-screen-view-model-wiz__background-blur",style:function(){var v,d=(v=z().backgroundImage)==null?void 0:v.sources,W;return(d==null?0:d.length)?"background-image: url("+((W=d[0])==null?void 0:W.url)+")":
""}}),_.B("div",{class:"mini-app-splash-screen-view-model-wiz__background-scrim"}),_.B(_.g,{cond:function(){return!n()&&!(J==null?0:J())},
then:function(){var v={};return _.B("div",{class:"mini-app-splash-screen-view-model-wiz__loading-screen-content"},_.B("div",{class:"mini-app-splash-screen-view-model-wiz__loading-icon"},_.B(_.b4,{className:"mini-app-splash-screen-view-model-wiz__loading-icon-animation",animationName:function(){return"loading_animation_"+A()},
data:function(){var d="loading_animation_"+A();return{animationConfig:{name:d,path:"https://www.gstatic.com/youtube/img/lottie/playables_loading_animation/"+d+".json",loop:!0,autoplay:!0}}}})),_.B("div",{class:"mini-app-splash-screen-view-model-wiz__timeout-message-container"},_.B(_.g,{cond:h,
then:function(){return _.B("h3",{class:"mini-app-splash-screen-view-model-wiz__timeout-heading"},h)}}),_.B("p",{class:_.B8("mini-app-splash-screen-view-model-wiz__timeout-message",(v["mini-app-splash-screen-view-model-wiz__timeout-message-fade-out"]=function(){return N()},v)),
"aria-live":"polite"},r),_.B(_.g,{cond:F,then:function(){return _.B("div",{class:"mini-app-splash-screen-view-model-wiz__loading-bar-track"},_.B("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:O}))}})))}}),_.B(_.g,{cond:n,
then:function(){return _.B("div",{class:"mini-app-splash-screen-view-model-wiz__persistent-error-content"},_.B("h3",{class:"mini-app-splash-screen-view-model-wiz__persistent-error-message-title"},function(){return z().persistentErrorMessageTitle}),_.B(_.g,{cond:function(){return!!z().persistentErrorMessageDescription},
then:function(){return _.B("p",{class:"mini-app-splash-screen-view-model-wiz__persistent-error-message-description"},function(){return z().persistentErrorMessageDescription})}}))}}),_.B(_.g,{cond:J,
then:function(){return _.B("div",{class:"mini-app-splash-screen-view-model-wiz__pause-content"},_.B("img",{class:"mini-app-splash-screen-view-model-wiz__pause-icon",src:"https://fonts.gstatic.com/s/i/short-term/release/youtube_fill/svg/tic_tac_toe_cairo_24px.svg"}),_.B("h3",{class:"mini-app-splash-screen-view-model-wiz__pause-message"},h))}})))},"ke");var Npi=new _.I4("SHARE_CLIENT_PARAMS_PROVIDER_TOKEN");var tC1=y3;y3=function(a){function z(I){if(I){var J,r;(J=I.__spec)==null||(r=J.didUnmount)==null||r.call(J);for(J=0;J<I.childNodes.length;J++)z(I.childNodes[J])}}
tC1==null||tC1(a);vl(function(){for(var I=0;I<a.length;I++)z(a[I])})};var uVf=_.ec(function(a){var z=a.data;var I=a.score;var J=a.formattedScore;var r=a.onScoreChanged;var P=a.isEmbeddedInWebview;var N=_.ca("yt-mini-app-score-button-view-model"),u=function(){var F;return _.H(z==null?void 0:(F=z())==null?void 0:F.buttonViewModel,_.yw)},E=function(){var F;
return(I==null?void 0:I())||Number(z==null?void 0:(F=z())==null?void 0:F.lastScore)||0},O=function(){var F;
return(J==null?void 0:J())||((F=u())==null?void 0:F.title)||""},f,A=1;
if(a=(new URLSearchParams(window.location.search)).get("deviceTextZoomSetting"))a=Number(a),A=isNaN(a)?1:a/100;_.h2(function(){r==null||r(E());var F;var h=_.o0((F=u())==null?void 0:F.onTap);if(h){F=_.H(h,h3i);var v,d,W;F=_.H(F==null?void 0:(v=F.panelLoadingStrategy)==null?void 0:(d=v.inlineContent)==null?void 0:(W=d.dialogViewModel)==null?void 0:W.customContent,AAX)}else F=void 0;if(v=F)v.score=O()},"KZFi5e");
a=_.g4(function(){var F,h,v=z==null?void 0:(F=z())==null?void 0:(h=F.loggingDirectives)==null?void 0:h.trackingParams;v&&_.KJ(_.ab().resolve(_.d7),v);return!1});
_.QO(function(){if(N.value){var F=N.value.querySelector("button"),h=u();F&&h&&rgM(F,h);aG("yt-share-playable-with-high-score",function(){var v=E().toString(),d=z==null?void 0:z().onShareHighScoreCommand,W=z==null?void 0:z().highScoreShareClientParamIdentifier,l=P==null?void 0:P();d&&(l?(W=new E3l,v=_.KB(W,2,v),W0(d,v.JSC$12268_serializeBinary())):W&&(_.ab().resolve(Npi).clientParams.set(W,{miniAppClientParams:{highScore:v}}),RKm(d,!1)))})}});
var n=function(){var F=u();F&&(I==null?0:I())&&F.accessibilityText&&(F.accessibilityText=F.accessibilityText.replace(f,O()));f=O();return{numberValue:E(),numberText:O(),heightPx:36,fontSizeMultiplier:A,shouldAnimate:!(I==null||!I())&&!0}};
return _.B("yt-mini-app-score-button-view-model",{class:function(){var F={};return _.$c("mini-app-score-button-view-model-wiz",(F["mini-app-score-button-view-model-wiz--is-visible"]=E()!==0,F))},
el:N,"on:click":a},ACM(!1,function(){return _.B("span",{style:"display:none;"},E)}),_.B(_.V0,{data:function(){var F;
return z==null?void 0:(F=z())==null?void 0:F.buttonViewModel}},{buttonViewModel:function(F){return _.B(_.At,{data:F.data,
animatedTextProps:n})}}))},"le");var f$f=_.ec(function(a){var z,I=(z=_.nN("yt-mini-app-is-theater-mode-enabled"))!=null?z:!1,J=_.K("enable_playable_container_save_button"),r=_.K("enable_play_next_destination_page_in_toolbar");z={};return _.B("ytm-mini-app-top-bar-view-model",null,_.B("div",{class:_.B8("yt-mini-app-top-bar-view-model",(z["yt-mini-app-top-bar-view-model--mobile"]=!1,z["yt-mini-app-top-bar-view-model--desktop"]=!0,z))},_.B("div",{class:"yt-mini-app-top-bar-view-model__start-buttons"},_.B(_.g,{cond:function(){var P;
return!!a.data().backButtonEdu&&!((P=a.isExitMiniAppSeen)==null?0:P.call(a))},
then:function(){return _.B(_.V0,{data:function(){return a.data().backButtonEdu}},{buttonViewModel:_.At})},
else:function(){return _.B(_.V0,{data:function(){return a.data().backButton}},{buttonViewModel:_.At})}}),_.B(_.g,{cond:function(){return a.data().viewAllButton&&!0},
then:function(){return _.B(_.V0,{data:function(){return a.data().viewAllButton}},{buttonViewModel:_.At})}}),_.B(_.g,{cond:function(){return a.data().title&&!0},
then:function(){return _.B("div",{class:"yt-mini-app-top-bar-view-model__title"},function(){return a.data().title})}})),_.B("div",{class:"yt-mini-app-top-bar-view-model__center-buttons"},_.B(_.g,{cond:function(){var P;
return(P=a.isDesktopPlayPage)==null?void 0:P.call(a)},
then:function(){return _.B(_.eJ,null,_.B(EfO,{highScoreButton:function(){return a.data().highScoreButton},
score:a.score,formattedScore:a.formattedScore,onScoreChanged:a.onScoreChanged,isEmbeddedInWebview:a.isEmbeddedInWebview}),_.B(Bpl,{enableSaveButton:function(){return _.SJ(J)},
saveButton:function(){return a.data().saveButton},
isSaved:a.isSaved,onSaveToggled:function(){return a.onSaveToggled}}),_.B(gfe,{menuButton:function(){return a.data().menuButton}}))},
else:function(){return _.B(_.g,{cond:function(){return!1},
then:function(){return _.B(_.V0,{data:function(){return a.data().playPageButton}},{buttonViewModel:function(P){return _.B(_.At,{data:P.data,
className:"yt-mini-app-top-bar-view-model__play-page-button-view-model"})}})},
else:function(){return _.B(EfO,{highScoreButton:function(){return a.data().highScoreButton},
score:a.score,formattedScore:a.formattedScore,onScoreChanged:a.onScoreChanged,isEmbeddedInWebview:a.isEmbeddedInWebview})}})}})),_.B("div",{class:"yt-mini-app-top-bar-view-model__end-buttons"},_.B(_.V0,{data:function(){return a.data().muteButton}},{toggleButtonViewModel:function(P){var N=P.data;
return _.B(_.Wc,{data:function(){var u,E;return Object.assign({},N(),{isToggled:(E=(u=a.isAudioEnabled)==null?void 0:u.call(a))!=null?E:!0})},
onToggle:a.onAudioToggled,useOutlinedIcon:!0})}}),_.B(_.V0,{data:function(){return a.data().theatreModeButton}},{toggleButtonViewModel:function(P){var N=P.data;
return _.B("div",{class:"yt-mini-app-top-bar-view-model__theatre-mode-button"},_.B(_.Wc,{data:function(){return Object.assign({},N(),{isToggled:I})},
useOutlinedIcon:!0}))}}),_.B(Obj,{fullscreenButton:function(){return a.data().fullscreenButton}}),_.B(_.g,{cond:function(){return _.SJ(r)&&a.data().viewAllButton&&!1},
then:function(){return _.B(_.V0,{data:function(){return a.data().viewAllButton}},{buttonViewModel:_.At})}}),_.B(_.g,{cond:function(){var P;
return!((P=a.isDesktopPlayPage)==null?0:P.call(a))},
then:function(){return _.B(_.eJ,null,_.B(Bpl,{enableSaveButton:function(){return _.SJ(J)},
saveButton:function(){return a.data().saveButton},
isSaved:a.isSaved,onSaveToggled:function(){return a.onSaveToggled}}),_.B(gfe,{menuButton:function(){return a.data().menuButton}}))}}))))},"me");
f$f.idomCompat={callbacks:{onAudioToggled:!0,onSaveToggled:!0,onScoreChanged:!0}};var gfe=_.ec(function(a){return _.B(_.V0,{data:a.menuButton},{buttonViewModel:_.At})},"ne"),Bpl=_.ec(function(a){var z=a.enableSaveButton;
var I=a.saveButton;var J=a.isSaved;var r=a.onSaveToggled;return _.B(_.g,{cond:function(){return z()&&!(I==null||!I())},
then:function(){return _.B(_.V0,{data:function(){var P=_.H(I==null?void 0:I(),_.My),N;return{toggleButtonViewModel:Object.assign({},P,{isToggled:(N=J==null?void 0:J())!=null?N:!(P==null||!P.isToggled)})}}},{toggleButtonViewModel:function(P){return _.B(_.Wc,{data:P.data,
onToggle:r})}})}})},"oe"),EfO=_.ec(function(a){var z=a.highScoreButton;
var I=a.score;var J=a.formattedScore;var r=a.onScoreChanged;var P=a.isEmbeddedInWebview;return _.B(_.V0,{data:z},{miniAppScoreButtonViewModel:function(N){return _.B(uVf,{data:N.data,score:I,formattedScore:J,onScoreChanged:r,isEmbeddedInWebview:P})}})},"pe"),Obj=_.ec(function(a){a=a.fullscreenButton;
return navigator.userAgent.includes("CriOS")?_.B(_.eJ,null):_.B(_.V0,{data:a},{buttonViewModel:_.At})},"qe");_.AwI=new _.I4("DESKTOP_CURRENT_PAGE");var bbe=_.ec(function(a){var z=a.data;var I=_.K("force_active_time_logging_webview"),J=!1,r=new wCo,P=void 0,N=void 0,u=_.ab().resolve(pCJ),E=new DwI,O=void 0,f=void 0,A=[],n=void 0,F=void 0,h=!1,v=!1,d=!1,W=!1,l=new _.EM,q=_.ab().resolve(Npi),m=_.ab().resolve(_.cQ),M=_.ab().resolve(_.eL(Vn)),y,e=(y=_.ab().resolve(_.eL(_.AwI)))==null?void 0:y.getCurrentPage(),Bp=!1,Em=0,nG=function(k7){k7.preventDefault();return k7.returnValue=""},bG;
a=_.C(_.CW(!((bG=_.nN("yt-mini-app-is-audio-enabled"))!=null&&!bG),void 0,"cGaEvf"));var Hp=a.next().value,LG=a.next().value,oE;bG=_.C(_.CW(!((oE=_.nN("exit-mini-app-seen-state"))==null||!oE),void 0,"DctXGe"));var Pe=bG.next().value,TJ=bG.next().value;oE=_.C(_.CW(!1,void 0,"pU1jdd"));var Be=oE.next().value,eM=oE.next().value;oE=_.C(_.CW(void 0,void 0,"ldLqDf"));var Ao=oE.next().value,gf=oE.next().value;oE=_.C(_.CW(void 0,void 0,"mdofE"));var GJ=oE.next().value,Sf=oE.next().value;oE=_.C(_.CW(!0,void 0,
"T1gxCf"));var ce=oE.next().value,r$=oE.next().value;oE=_.C(_.CW(!1,void 0,"Dp92Vb"));var aw=oE.next().value,Kl=oE.next().value;oE=_.C(_.CW(!1,void 0,"AsJEvf"));var EG=oE.next().value,F1=oE.next().value;oE=_.C(_.CW(void 0,void 0,"c55ogf"));var jf=oE.next().value,zj=oE.next().value;oE=_.C(_.CW(0,void 0,"UuaLqf"));var aZ=oE.next().value,Cl=oE.next().value,kG=_.Mm("mini-app-container-view-model"),sG=function(){return z().isEmbeddedInWebview},SI=function(){return z().hasPlayNextShelf};
aG("yt-page-type-changed",function(k7){if(_.K("enable_is_mini_app_page_active_bugfix"))k7.detail.newPageSubtype==="mini_app"&&k7.detail.newPageType==="ytd-browse"||!ce()||ty();else if(k7=_.igG()==="mini_app",k7!==ce())if(r$(k7),k7){var nZ;k7=(nZ=z().playableId)==null?void 0:nZ.toString();k7!==void 0&&window.location.href.includes(k7)&&!v&&(W=!0,iw(),f4.value&&Fm(f4.value))}else k7||ty()});
aG("yt-action",function(k7){k7.detail.actionName==="yt-engagement-panel-visible-changed"&&k7.detail.args[1]==="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"&&k7.detail.args[2]==="PAmini_app_panel"&&ty();_.K("enable_is_mini_app_page_active_bugfix")?k7.detail.actionName==="yt-history-load"&&!ce()&&(e==null?0:e.active)?(r$(!0),iw(),f4.value&&Fm(f4.value)):k7.detail.actionName==="yt-history-load"&&ce()&&!z().isEmbeddedInWebview&&Ll():ce()&&k7.detail.actionName==="yt-history-load"&&(W?W=!1:z().isEmbeddedInWebview||
Ll())});
_.V3(function(){H4()});
_.h2(function(){iw()},"gpydpe");
var iw=function(){var k7=z().playableId,nZ=z().localReleaseId,TY=z().derivedDeviceInterface;if(v)_.Xd(new _.Fn("[MiniAppContainerViewModel] onEnter was called more than once"));else{v=!0;P=new SIe(k7,nZ,TY,document.visibilityState==="visible");G81(P);N=new YIj(k7);sBw(u,k7);R5i(E,{showMiniAppAdCommand:z().showMiniAppAdCommand,isEmbeddedInWebview:z().isEmbeddedInWebview,playLogger:P});hYp()&&(F=document.body.style.backgroundColor,_.oc(document.body,"background-color","black"));d2();XM();l=new _.EM;
if(z().isEmbeddedInWebview){if(k7=(new URLSearchParams(window.location.search)).get("postPlayNonce"))xwG(P,k7),Bp=!0;r.initialize({onAudioStateLoaded:function(ZE){K6(ZE)},
onMuteMiniApp:function(){K6(!1)},
onUnmuteMiniApp:function(){K6(!0)},
onExit:function(){},
onPostPlayNonceReceived:function(ZE){Bp||(xwG(P,ZE),Bp=!0)},
confirmExitMiniApp:function(){var ZE,NM,pB;return _.t(function(Ta){if(Ta.nextAddress==1)return z().confirmExitMiniAppCommand?Ta.yield(Promise.race([l.promise,Promise.resolve(!1)]),2):Ta.return();(ZE=Ta.yieldResult)?!z().confirmExitMiniAppCommandEdu||(pB=(NM=Pe)==null?void 0:NM())!=null&&pB?HH(z().confirmExitMiniAppCommand):(HH(z().confirmExitMiniAppCommandEdu),_.s4("exit-mini-app-seen-state","true",2592E6)):HH(z().closeMiniAppCommand);_.nu(Ta)})},
onNativeBenchmarkingMessageReceived:function(ZE){ZE=F7E(_.R8E(ZE));if(_.Kn(ZE,_.T0,3,ssw)){var NM=_.TL(ZE,_.T0,3,ssw),pB=LNE();var Ta=vW(pB.getSeconds())-vW(NM.getSeconds());NM=_.za(pB,2)-_.za(NM,2);Ta<0&&NM>0?(Ta+=1,NM-=1E9):Ta>0&&NM<0&&(--Ta,NM+=1E9);Ta=(new kB).setSeconds(Ta);Ta=_.M0(Ta,2,_.qE(NM),0);_.gO(ZE,1,Ta)}var Ug;(Ug=f)==null||Ug.returnNativeBenchmarkingMessage(ZE)},
multiplayer3pAckStateLoaded:function(ZE){Ll(ZE)},
exitMiniAppSeenStateLoaded:function(ZE){z().confirmExitMiniAppCommandEdu&&TJ(ZE)},
onNavigateToNewMiniApp:function(){HH(z().onNavigateToNewMiniAppCommand)},
onGameDataAvailable:function(ZE){ZE=new URLSearchParams(ZE);var NM=void 0;ZE.has("invite_code")&&(NM=new inO,ZE=ZE.get("invite_code"),NM=_.KB(NM,1,ZE));if(ZE=NM){var pB;(pB=f)==null||pB.sendGameData(ZE)}},
onPauseMiniApp:function(){J=!0;fZ()},
onResumeMiniApp:function(){J=!0;ST()},
onAdFinished:function(ZE){E.onAdFinished(ZE)}});
z().showMultiplayer3pConsentDialogCommand||l.resolve(!0);HH(z().onContainerReadyCommand)}else xwG(P),l.resolve(!0);qIO(N,i7w(P));i7w(P).then(function(ZE){ZE={miniAppPlayData:{postPlayNonce:ZE}};var NM,pB=(NM=z().loggingDirectives)==null?void 0:NM.trackingParams;pB&&_.Kw().stateChanged(pB,ZE)});
k7=z().showSignInDialogCommand;!m2O()&&k7&&(_.s4("yt-mini-app-has-shown-sign-in-dialog",!0,2592E3),HH(k7));z().confirmExitMiniAppCommand&&M&&(k7=U2O(z().confirmExitMiniAppCommand))&&(M.customConfirmationCommand=k7)}},H4=function(){F&&_.oc(document.body,"background-color",F);
h=!1;n&&n.release();N.flush().catch(function(k7){_.Xd(k7)});
u.flush().catch(function(k7){_.Xd(k7)});
XCX(P);DG();f=void 0;nfw(q)},ty=function(){r$(!1);
H4();eM(!1);zj(void 0);gf(void 0);Sf(void 0);Em=0;Cl(0);v=!1},fZ=function(){var k7;
(k7=f)==null||k7.onPause();n&&n.release();N.flush().catch(function(nZ){_.Xd(nZ)});
u.flush().catch(function(nZ){_.Xd(nZ)});
$wi(P);Kl(!0)},ST=function(){var k7;
(k7=f)==null||k7.onResume();XM();k7=P;k7.isForeground=!0;qB(k7,"PLAY_EVENT_TYPE_PLAY_RESUME");Kl(!1)},K6=function(k7){var nZ;
(nZ=f)==null||nZ.onAudioToggled(k7);LG(k7)},Ll=function(k7){z().showMultiplayer3pConsentDialogCommand&&(z().isEmbeddedInWebview&&k7!==void 0&&l.resolve(k7),!k7&&_.igG()==="mini_app"&&HH(z().showMultiplayer3pConsentDialogCommand))},dE=function(){var k7,nZ,TY,ZE;
return _.t(function(NM){if(NM.nextAddress==1){!z().isLivestream||z().disableVideoCapture||(k7=f)!=null&&k7.sendStartGameFrameCapture();nZ=(new URL(window.location.href)).searchParams;if(nZ.has("invite_code")){var pB=new inO,Ta=nZ.get("invite_code");TY=_.KB(pB,1,Ta);(ZE=f)==null||ZE.sendGameData(TY)}Be()||(eM(!0),pB=P,pB.state!==1?_.Xd(new _.Fn("[MiniAppPlayLogger] recordFirstFrameReady failed with state "+V2w[pB.state])):(_.Py("mini_app_ids_without_game_ready").includes(pB.JSC$16786_miniAppId)&&(pB.gameReady=
!0),pB.state=2,pB.beforeReady=!1,Y6(pB,"ma_ffr"),qB(pB,"PLAY_EVENT_TYPE_PLAY_READY")));return NM.yield(l.promise,2)}HH(z().onMiniAppReadyCommand);document.activeElement instanceof HTMLIFrameElement&&document.activeElement.blur();z().isEmbeddedInWebview||Ll();_.nu(NM)})},wE=function(){var k7=P;
k7.gameReady=!0;Y6(k7,"ma_gr")},NL=function(k7){var nZ;
return _.t(function(TY){if(TY.nextAddress==1)return _.BP(TY,2),TY.yield(a$E(N,k7),4);if(TY.nextAddress!=2)return _.p1(TY,0);nZ=_.sk(TY);HH(z().showSavingErrorPopupCommand);throw nZ;})},SL=function(){var k7,nZ;
return _.t(function(TY){if(TY.nextAddress==1)return _.BP(TY,2),TY.yield(e5w(N),4);if(TY.nextAddress!=2)return k7=TY.yieldResult,TY.return(k7);nZ=_.sk(TY);HH(z().showLoadingErrorDialogCommand);throw nZ;})},ed=function(k7){P.logError(k7)},HL=function(k7,nZ,TY){dwl(P,k7,nZ,TY)},vy=function(k7,nZ){ogG(P,k7,nZ)},CB=function(){!I&&z().isEmbeddedInWebview||_.zx();
TCf(P,!0);h||(window.addEventListener("beforeunload",nG,{capture:!0}),h=!0)},q$=function(k7){var nZ,TY,ZE,NM,pB,Ta,Ug;
return _.t(function(sN){if(sN.nextAddress==1)return u&&(!O||O<k7)&&k7>0?sN.yield(Knl(u,k7),3):sN.jumpTo(0);nZ=sN.yieldResult;TY=_.C(nZ);ZE=TY.next().value;NM=TY.next().value;pB=ZE;Ta=NM;((Ug=pB)==null?0:Ug.displayString)&&Ta&&(gf(Ta),Sf(pB.displayString));_.nu(sN)})},SM=function(k7){var nZ=z().onBenchmarkingMessageReceivedCommand;
if(nZ){var TY=LNE();_.Oa(k7,3,ssw,TY);W0(nZ,Hnf(k7))}},Wp=function(k7){var nZ=z().onGameFrameReceivedCommand;
if(nZ){var TY=new dB;var ZE=new EQv;var NM=ie(k7,1);ZE=_.Fd(ZE,1,NM);k7=_.vb(k7,2);k7=_.KB(ZE,2,k7);TY=_.gO(TY,2,k7);W0(nZ,fNG(TY))}},w$=function(k7){var nZ=z().onGameAudioDataReceivedCommand;
if(nZ){var TY=new dB;var ZE=new gQO;k7=_.vb(k7,1);ZE=_.KB(ZE,1,k7);TY=_.gO(TY,4,ZE);W0(nZ,fNG(TY))}},sO=function(){var k7=new URLSearchParams(window.location.search);
if(z().isEmbeddedInWebview&&k7&&k7.get("override_hl")==="true"&&k7.get("hl"))return k7.get("hl");k7=document.documentElement.lang;return k7!==""?k7:_.L5},B4=function(k7){var nZ=z().onShareInviteCodeCommand;
if(nZ)if(z().isEmbeddedInWebview){var TY=new E3l;k7=_.KB(TY,1,k7);W0(nZ,g3I(k7))}else TY=z().inviteCodeShareClientParamIdentifier,q.clientParams.set(TY,{miniAppClientParams:{inviteCode:k7}}),HH(nZ)},v9=function(k7){var nZ,TY,ZE;
return _.t(function(NM){if(NM.nextAddress==1)return nZ=z().onMiniAppOpenYtContentRequested,u&&_.K("enable_open_yt_content")&&nZ?NM.yield(Fne(u,k7),3):NM.jumpTo(0);TY=NM.yieldResult;if(TY==="OK")if(z().isEmbeddedInWebview){var pB=new C_j;ZE=g2(pB,2,T7,u0(k7));W0(nZ,uNJ(ZE))}else m.clientData.set("video_id",k7),HH(nZ);_.nu(NM)})},VV=function(k7){Em+=_.za(k7,3);
k7=Math.min(Math.log(1+Em/15E6*9)/Math.log(10),.99);Cl(k7);bw(k7)},bw=_.Hr(function(k7){var nZ=z().updateLoadingProgressCommand;
if(nZ){var TY=new C_j;k7=g2(TY,3,T7,_.lw(k7));W0(nZ,uNJ(k7))}},100),He=function(k7){return lSo(E,k7)},XM=function(){var k7,nZ;
((k7=_.Kux())==null?void 0:(nZ=k7.wakeLock)==null?void 0:nZ.request)!=null&&_.Kux().wakeLock.request("screen").then(function(TY){n=TY}).catch(function(){})},f4=_.ca("iframe");
_.h2(function(){z().isSupportedCountry&&(m2O()||_.K("enable_sign_in_promo")||!z().showSignInDialogCommand?f4.value&&Fm(f4.value):HH(z().onMiniAppReadyCommand))},"HPyXid");
var fl=function(){return _.B("iframe",{class:"yt-mini-app-container-view-model__iframe",sandbox:"allow-scripts allow-same-origin allow-pointer-lock",allow:"autoplay",tabindex:function(){return Be()?0:-1},
el:f4})},Fm=function(k7,nZ){nZ=nZ===void 0?!1:nZ;
var TY=XC();TY&&(nZ||TY.toString()!==k7.getAttribute("src"))&&(f=eKI(z().source,{isAudioEnabled:Hp,onFirstFrameReady:dE,onGameReady:wE,onSave:NL,onLoad:SL,onError:ed,onSdkCalled:HL,onSdkPerformanceUpdate:vy,onClick:CB,onSendHighScore:q$,onBenchmarkingMessageReceived:SM,getLanguage:sO,onShareInviteCode:B4,onResourceLoaded:VV,onOpenYTContent:v9,onShowMiniAppAd:He,onGameFrameReceived:Wp,onGameAudioReceived:w$},k7,TY),bN(k7,"load",function(){Y6(P,"ma_il");bN(k7,"load",function(){Fm(k7,!0)})}),_.lj(k7,
TY))},XC=function(){var k7=z().url;
if(k7&&(k7=_.$k(k7),k7!==null)){if(z().source&&z().source==="MINI_APP_SOURCE_GAMESNACKS")k7=_.rJ(k7,new Map([["origin",window.location.origin],["cloudSave","true"]]));else if(_.K("enable_origin_query_parameter_bugfix")){var nZ=_.hI(_.AsM(k7.toString()));nZ=new URLSearchParams(nZ||"");nZ.set("origin",window.location.origin);nZ=nZ.toString();k7=_.bj(k7).toString();k7=_.H9(xEO.exec(k7)[0]+(nZ.trim()?"#"+nZ:""))}return k7}},ot=function(){var k7={};
k7=_.B8("yt-mini-app-container-view-model__loading-screen",(k7["yt-mini-app-container-view-model__loading-screen--fade-out"]=Be,k7));var nZ=function(){return Be()?1:aZ()};
return _.B("div",{class:k7},_.B(_.V0,{data:function(){return z().splashScreen}},{miniAppSplashScreenViewModel:function(TY){return _.B(CRo,{data:TY.data,
loadingProgress:nZ})}}))},$X=function(){var k7={};
return _.B("div",{class:_.B8("yt-mini-app-container-view-model__pause-interstitial",(k7["yt-mini-app-container-view-model__pause-interstitial--pause-fade-out"]=function(){return!aw()},k7["yt-mini-app-container-view-model__pause-interstitial--pause-fade-in"]=aw,k7))},_.B(_.V0,{data:function(){return z().splashScreen}},{miniAppSplashScreenViewModel:function(nZ){return _.B(CRo,{data:nZ.data,
forPaused:!0})}}))},d2=function(){A=[];
A.push(_.Sg(window,"visibilitychange",function(){d||J&&sG()||(document.visibilityState==="visible"?ST():fZ())}));
A.push(_.Sg(window,"pagehide",function(){H4()}));
A.push(_.Sg(window,"blur",function(){setTimeout(function(){document.activeElement instanceof HTMLIFrameElement&&kG.value.dispatchEvent(new Event("tap"))},0)}));
A.push(_.Sg(kG.value,"pointerdown",function(){TCf(P,!1)},!0));
A.push(_.Sg(kG.value,"pause",function(){d=!0;fZ()}));
A.push(_.Sg(kG.value,"play",function(){d=!1;ST()}));
A.push(_.Sg(kG.value,"exit",function(){H4()}));
var k7=navigator.keyboard,nZ=k7&&k7.lock;A.push(_.Sg(window,laX,function(){F1(whI());whI()?(z().hasPlayNextShelf&&kC("yt-mini-app-container-view-model","yt-mini-app-container-view-model--position-relative-to-top"),AE("yt-mini-app-container-view-model__content","yt-mini-app-container-view-model__content--fullscreen"),nZ&&k7.lock(["Escape"])):(z().hasPlayNextShelf&&AE("yt-mini-app-container-view-model","yt-mini-app-container-view-model--position-relative-to-top"),kC("yt-mini-app-container-view-model__content",
"yt-mini-app-container-view-model__content--fullscreen"),nZ&&k7.unlock())}));
z().showMultiplayer3pConsentDialogCommand&&A.push(_.Sg(window,"yt-playables-ack-3p-data-usage",function(){HbX(u)}));
z().confirmExitMiniAppCommandEdu&&A.push(_.Sg(window,"yt-playables-exit-mini-app-dialog-seen",function(){_.s4("exit-mini-app-seen-state","true",2592E6)}));
z().onGameAudioDataReceivedCommand&&A.push(_.Sg(window,"message",function(TY){TY=TY.event_;var ZE,NM=(ZE=f4.value)==null?void 0:ZE.src;if(NM&&TY.origin===(new URL(NM)).origin&&TY.data&&TY.data.type==="GAME_AUDIO"&&TY.data.audio&&TY.data.audio.length>0)if(_.K("enable_sending_unwrapped_game_audio_as_serialized_metadata"))pk0(z().onGameAudioDataReceivedCommand,TY.data.audio);else{var pB=new FileReader;pB.onload=function(){var Ta=new dB;var Ug=new gQO;Ug=_.KB(Ug,1,pB.result);Ta=_.gO(Ta,4,Ug);W0(z().onGameAudioDataReceivedCommand,
fNG(Ta))};
pB.readAsDataURL(new Blob([TY.data.audio]))}}))},DG=function(){A.forEach(function(k7){hj(k7)});
window.removeEventListener("beforeunload",nG,{capture:!0})},HH=function(k7){k7&&RKm(k7,z().isEmbeddedInWebview||!1)},AE=function(k7,nZ){k7=_.C(kG.value.getElementsByClassName(k7));
for(var TY=k7.next();!TY.done;TY=k7.next())TY.value.classList.add(nZ)},kC=function(k7,nZ){k7=_.C(kG.value.getElementsByClassName(k7));
for(var TY=k7.next();!TY.done;TY=k7.next())TY.value.classList.remove(nZ)};
return function(){var k7={};k7=_.B8("yt-mini-app-container-view-model",(k7["yt-mini-app-container-view-model--desktop"]=!0,k7["yt-mini-app-container-view-model--desktop-in-panel"]=function(){return z().layout==="MINI_APP_CONTAINER_LAYOUT_PANEL"},k7["yt-mini-app-container-view-model--ios-web-view"]=hYp(),k7["yt-mini-app-container-view-model--no-top-bar"]=function(){return!z().topBar},k7["yt-mini-app-container-view-model--position-relative-to-top"]=function(){return z().hasPlayNextShelf},k7["yt-mini-app-container-view-model--desktop-play-page"]=
function(){return z().hasPlayNextShelf},k7["yt-mini-app-container-view-model--show-peek-below"]=function(){return!EG()&&z().hasPlayNextShelf},k7));
var nZ={};nZ=_.B8("yt-mini-app-container-view-model__content",(nZ["yt-mini-app-container-view-model__content--desktop-content"]=!0,nZ["yt-mini-app-container-view-model__content--desktop-content-in-panel"]=function(){return z().layout==="MINI_APP_CONTAINER_LAYOUT_PANEL"},nZ["yt-mini-app-container-view-model--desktop-play-page"]=function(){return z().hasPlayNextShelf},nZ));
return _.B("mini-app-container-view-model",{el:kG},_.B("div",{class:k7},_.B(_.g,{cond:function(){return z().topBar&&!EG()},
then:function(){return _.B(_.V0,{data:function(){return z().topBar}},{miniAppTopBarViewModel:function(TY){return _.B(f$f,{data:TY.data,
isAudioEnabled:Hp,onAudioToggled:function(ZE){K6(ZE)},
score:Ao,formattedScore:GJ,onScoreChanged:function(ZE){O=ZE},
isEmbeddedInWebview:sG,isSaved:jf,onSaveToggled:function(ZE){zj(ZE)},
isExitMiniAppSeen:Pe,isDesktopPlayPage:SI})}})}}),_.B("div",{class:nZ},_.B(_.g,{cond:ce,
then:function(){return fl()}}),_.B(_.g,{cond:function(){return z().isLivestream},
then:function(){return $X()}}),_.B(_.g,{cond:function(){return!z().isEmbeddedInWebview},
then:function(){return ot()}}))))}()},"re");
bbe.idomCompat=!0;_.Jf(bbe,"mini-app-container-view-model",{props:{data:_.zl}});var hmX=_.ec(function(a){var z=a.data;return _.B("yt-sponsorships-hub-perk-card",{class:"ytSponsorshipsHubPerkCardHost"},_.B("button",{class:"ytSponsorshipsHubPerkCardPerkCard","on:click":_.g4(function(){var I=z().onTap;I&&_.lN(I)})},_.B(_.g,{cond:function(){return z().icon},
then:function(I){return _.B(_.nS,{icon:function(){return I().iconType},
className:"ytSponsorshipsHubPerkCardPerkIcon"})}}),_.B("div",{class:"ytSponsorshipsHubPerkCardPerkTitle"},function(){return z().title})))},"se");
hmX.idomCompat=!0;var VCG=_.ec(function(a){var z=_.Mm("div"),I=_.C(_.CW(void 0,void 0,"kFCJ0c")),J=I.next().value,r=I.next().value;I=_.C(_.CW(void 0,void 0,"PIPgWd"));var P=I.next().value,N=I.next().value;I=_.C(_.CW(void 0,void 0,"rV66ob"));var u=I.next().value,E=I.next().value,O=function(){var W=J();return W!==void 0?Math.abs(W):void 0},f=function(){var W=O();
return W===void 0||W<=3},A=function(){var W=O();
var l=P(),q=u();W=W!==void 0&&l!==void 0&&q!==void 0?l-q-W:void 0;return W===void 0||W<=3},n=function(W){z.value&&z.value.scrollBy({top:0,
left:(_.Xw("HTML_DIR")==="rtl"?-1:1)*W*z.value.clientWidth,behavior:"smooth"})},F=function(){var W;
r((W=z.value)==null?void 0:W.scrollLeft);var l;N((l=z.value)==null?void 0:l.scrollWidth);var q;E((q=z.value)==null?void 0:q.clientWidth)},h=function(){n(-.5)},v=function(){n(.5)};
I=_.g4(function(){F()});
_.hD(function(){F();if(z.value&&window.ResizeObserver){var W=new ResizeObserver(F);W.observe(z.value);_.V3(function(){W.disconnect()})}});
var d={};return _.B("yt-sponsorships-scrollable-shelf",{class:_.B8("ytdSponsorshipsScrollableShelfHost",a.className)},_.B("div",{class:_.B8("ytdSponsorshipsScrollableShelfContent",(d.ytdSponsorshipsScrollableShelfFadingEffectBothSides=function(){return a.data().previousButton&&a.data().nextButton&&!f()&&!A()},d.ytdSponsorshipsScrollableShelfFadingEffectStart=function(){return a.data().previousButton&&!f()&&A()},d.ytdSponsorshipsScrollableShelfFadingEffectEnd=function(){return a.data().nextButton&&
f()&&!A()},d)),
el:z,"on:scroll":I},a.children),_.B(_.g,{cond:function(){return!f()},
then:function(){return _.B(_.V0,{data:function(){return a.data().previousButton}},{buttonViewModel:function(W){return _.B(_.At,{data:W.data,
className:"ytdSponsorshipsScrollableShelfPreviousButton",onClick:h})}})}}),_.B(_.g,{cond:function(){return!A()},
then:function(){return _.B(_.V0,{data:function(){return a.data().nextButton}},{buttonViewModel:function(W){return _.B(_.At,{data:W.data,
className:"ytdSponsorshipsScrollableShelfNextButton",onClick:v})}})}}))},"te");
VCG.idomCompat=!0;var S7i=_.ec(function(a){var z=a.data;a={};return _.B("yt-sponsorships-hub",{class:_.B8("ytdSponsorshipsHubHost",(a.ytdSponsorshipsHubHostIndented=function(){return z().indented},a))},_.B("div",{class:"ytdSponsorshipsHubHeader"},_.B("div",{class:"ytdSponsorshipsHubAvatarContainer"},_.B("div",{class:"ytdSponsorshipsHubAvatar"},_.B(_.V0,{data:function(){return z().avatar}},{avatarViewModel:_.ok})),_.B(_.g,{cond:function(){return z().badgeImage},
then:function(I){return _.B("div",{class:"ytdSponsorshipsHubBadgeContainer"},_.B("div",{class:"ytdSponsorshipsHubBadgeInnerContainer"},_.B("div",{class:"ytdSponsorshipsHubBadge"},_.B(_.qp,{data:I,targetWidth:24,targetHeight:24,alt:""}))))}})),_.B("div",{class:"ytdSponsorshipsHubDetails"},_.B("div",{class:"ytdSponsorshipsHubTierName"},function(){return z().tierName}),_.B("div",{class:"ytdSponsorshipsHubMembershipType"},function(){return z().membershipType}),_.B("div",{class:"ytdSponsorshipsHubMembershipDurationOrExpiry"},
function(){return z().membershipDurationOrExpiry})),_.B("div",{class:"ytdSponsorshipsHubActionButtonsContainer"},_.B(_.V0,{data:function(){return z().manageButton}},{buttonViewModel:function(I){return _.B(_.At,{data:I.data,
className:"ytdSponsorshipsHubManageButton"})}}),_.B(_.V0,{data:function(){return z().actionMenuButton}},{buttonViewModel:function(I){return _.B(_.At,{data:I.data,
className:"ytdSponsorshipsHubActionMenuButton"})}}))),_.B("div",{class:"ytdSponsorshipsHubPerksTitle"},function(){return z().perksTitle}),_.B(VCG,{data:function(){return{previousButton:z().previousPerkButton,
nextButton:z().nextPerkButton}},
className:"ytdSponsorshipsHubPerksShelf"},_.B("div",{class:"ytdSponsorshipsHubPerkCards"},_.B(_.V0,{data:function(){return z().perkCards}},{sponsorshipsHubPerkCardViewModel:hmX}),_.B(_.g,{cond:function(){return z().viewAllPerksButton},
then:function(I){return _.B(QBf,{data:I})}}))))},"ue");
S7i.idomCompat=!0;var QBf=_.ec(function(a){var z=a.data;return _.B("div",{class:"ytdSponsorshipsHubViewAllPerksContainer"},_.B(_.V0,{data:function(){return z().button}},{buttonViewModel:_.At}),_.B("div",{class:"ytdSponsorshipsHubViewAllPerksInfo"},_.B("div",{class:"ytdSponsorshipsHubViewAllPerksTitle"},function(){return z().title}),_.B("div",{class:"ytdSponsorshipsHubViewAllPerksSubtitle"},function(){return z().subtitle})))},"ve");
QBf.idomCompat=!0;_.Jf(S7i,"yt-sponsorships-hub",{props:{data:_.zl}});_.ibI=_.ec(function(a){var z=a.data;return _.B("yt-dual-avatar-view-model",{class:_.B8("ytDualAvatarViewModelHost",a.className),style:_.sW({"--yt-dual-avatar-view-model-badge-cutout-radius":function(){var I;return((I=z().badgeCutoutRadius)!=null?I:14)+"px"}})},_.B("div",{class:"ytDualAvatarViewModelAvatarsContainer"},_.B(_.V0,{data:function(){return z().startAvatar}},{avatarViewModel:_.ok}),_.B(_.V0,{data:function(){return z().endAvatar}},{avatarViewModel:_.ok})),_.B(_.V0,{data:function(){return z().badge}},
{contentPreviewImageViewModel:function(I){return _.B("div",{class:"ytDualAvatarViewModelBadge"},_.B(_.t0,{data:I.data}))}}))},"we");
_.ibI.idomCompat=!0;var vfl=_.ec(function(a){var z=a.data;var I,J=!((I=_.ab().resolve(_.eL(_.kN)))==null||!I());a=_.Bg(function(){var f,A,n=J?(f=z().header)==null?void 0:f.backgroundColorDarkMode:(A=z().header)==null?void 0:A.backgroundColorLightMode;if(n!==void 0)return _.RX(n)},void 0,"UX2G6c");
I=_.Bg(function(){var f,A;return J?(f=z().header)==null?void 0:f.backgroundImagePart1Dark:(A=z().header)==null?void 0:A.backgroundImagePart1Light},void 0,"GPAi1d");
var r=_.Bg(function(){var f,A;return J?(f=z().header)==null?void 0:f.backgroundImagePart2Dark:(A=z().header)==null?void 0:A.backgroundImagePart2Light},void 0,"nboJld"),P=_.Bg(function(){return _.Xw("HTML_DIR")==="rtl"},void 0,"LGJceb"),N=_.Mm("yt-sponsorships-perks-list"),u=!1,E=function(){var f=N.value;
if(f&&!u){var A,n=(A=f.parentElement)==null?void 0:A.parentElement;if(n)for(f=f.getElementsByClassName("ytdSponsorshipsPerksListSelectedPerk"),A=0;A<f.length;++A){var F=f[A];if(F instanceof HTMLElement){n.scrollTo({top:F.offsetTop+F.clientHeight/2-n.clientHeight/2,behavior:"smooth"});u=!0;break}}}};
_.QO(function(){var f=N.value;if(f&&window.ResizeObserver){var A=new ResizeObserver(E);A.observe(f);_.V3(function(){A.disconnect()})}});
var O={};return _.B("yt-sponsorships-perks-list",{el:N,class:_.B8("ytdSponsorshipsPerksListHost",(O.ytdSponsorshipsPerksListHorizontalPadding=function(){return z().horizontalPaddingEnabled},O))},_.B("div",{class:"ytdSponsorshipsPerksListHeaderContainer"},_.B("div",{class:"ytdSponsorshipsPerksListHeader",
style:_.sW({"background-color":a})},_.B("div",{class:"ytdSponsorshipsPerksListHeaderImagePart1Container"},_.B(_.g,{cond:I,then:function(f){var A={};return _.B("div",{class:_.B8((A.ytdSponsorshipsPerksListHeaderImageFilterDarkTheme=J,A.ytdSponsorshipsPerksListHeaderImageFilterLightTheme=!J,A.ytdSponsorshipsPerksListFlipped=P,A))},_.B(_.qp,{data:f,alt:"",className:"ytdSponsorshipsPerksListHeaderImagePart1"}))}})),_.B("div",{class:"ytdSponsorshipsPerksListHeaderImagePart2Container"},_.B(_.g,{cond:r,
then:function(f){var A={};return _.B("div",{class:_.B8((A.ytdSponsorshipsPerksListHeaderImageFilterDarkTheme=J,A.ytdSponsorshipsPerksListHeaderImageFilterLightTheme=!J,A.ytdSponsorshipsPerksListFlipped=P,A))},_.B(_.qp,{data:f,alt:"",className:"ytdSponsorshipsPerksListHeaderImagePart2"}))}})),_.B("div",{class:"ytdSponsorshipsPerksListAvatarsContainer"},_.B(_.V0,{data:function(){var f;
return(f=z().header)==null?void 0:f.dualAvatar}},{dualAvatarViewModel:_.ibI})))),_.B("div",{class:"ytdSponsorshipsPerksListBody"},_.B("div",{class:"ytdSponsorshipsPerksListTitle"},function(){return z().title}),_.B(_.g,{cond:function(){return z().perks},
then:function(f){return _.B(_.se,{each:f},function(A,n){var F={};return _.B("div",{class:_.B8("ytdSponsorshipsPerksListPerkContainer",(F.ytdSponsorshipsPerksListSelectedPerk=function(){var h=n(),v=z().selectedPerkIndex;return h===v},F))},_.B(_.g,{cond:function(){return n()>0},
then:function(){return _.B("div",{class:"ytdSponsorshipsPerksListPerkSeparator"})}}),_.B("div",{class:"ytdSponsorshipsPerksListPerkCard"},_.B(_.g,{cond:function(){return A.icon},
then:function(h){return _.B(_.nS,{icon:function(){return h().iconType},
className:"ytdSponsorshipsPerksListPerkIcon"})}}),_.B("div",{class:"ytdSponsorshipsPerksListPerkInfo"},_.B("div",{class:"ytdSponsorshipsPerksListPerkTitle"},A.title),_.B("div",{class:"ytdSponsorshipsPerksListPerkDescription"},_.B(_.xs,{text:A.description})),_.B(_.g,{cond:function(){return A.instructions},
then:function(){var h,v;return _.B("div",{class:"ytdSponsorshipsPerksListPerkInstructions"},_.B("div",{class:"ytdSponsorshipsPerksListPerkInstructionsTitle"},(h=A.instructions)==null?void 0:h.title),_.B("div",{class:"ytdSponsorshipsPerksListPerkInstructionsText"},_.B(_.xs,{text:(v=A.instructions)==null?void 0:v.text})))}}))),_.B(_.g,{cond:function(){return A.emoji},
then:function(h){return _.B("div",{class:"ytdSponsorshipsPerksListEmojiContainer"},_.B(_.se,{each:function(){return h()}},function(v){return _.B(_.qp,{data:v,
alt:"",className:"ytdSponsorshipsPerksListEmoji"})}))}}),_.B(xuE,{data:A}))})}})))},"xe");
vfl.idomCompat=!0;var xuE=_.ec(function(a){var z=a.data;var I=function(N,u){return N===u},J=function(){var N=z();
N=_.H(N==null?void 0:N.badgesShelf,s7f);return N!==void 0&&N!==null?N:{previousButton:{},nextButton:{}}},r=_.ca("div"),P=function(){var N=r.value;
if(N){var u=N.parentElement;if(u){N=N.getElementsByClassName("ytdSponsorshipsPerksListActiveLoyaltyBadgeContainer");for(var E=0;E<N.length;++E){var O=N[E];if(O instanceof HTMLElement){u.scrollTo({left:O.offsetLeft+O.clientWidth/2-u.clientWidth/2,behavior:"instant"});break}}}}};
_.QO(function(){var N=r.value;if(N){var u=new ResizeObserver(P);u.observe(N);_.V3(function(){u.disconnect()})}});
return _.B("div",null,_.B(_.g,{cond:function(){return z().badges},
then:function(N){return _.B(VCG,{data:J},_.B("div",{class:"ytdSponsorshipsPerksListLoyaltyBadgesContainer",el:r},_.B(_.se,{each:function(){return N()}},function(u,E){var O={},f={},A={};
return _.B("div",{class:"ytdSponsorshipsPerksListLoyaltyBadgeItem"},_.B(_.g,{cond:function(){return E()>0},
then:function(){return _.B("div",{class:"ytdSponsorshipsPerksListLoyaltyBadgeSeparator"})}}),_.B("div",{class:_.B8("ytdSponsorshipsPerksListLoyaltyBadgeContainer",(O.ytdSponsorshipsPerksListActiveLoyaltyBadgeContainer=function(){return I(E(),z().currentBadgeIndex)},O.ytdSponsorshipsPerksListInactiveLoyaltyBadgeContainer=function(){return!I(E(),z().currentBadgeIndex)},O))},_.B("div",{class:_.B8("ytdSponsorshipsPerksListLoyaltyBadge",(f.ytdSponsorshipsPerksListActiveLoyaltyBadge=function(){return I(E(),
z().currentBadgeIndex)},f.ytdSponsorshipsPerksListInactiveLoyaltyBadge=function(){return!I(E(),z().currentBadgeIndex)},f))},_.B(_.g,{cond:function(){return u.image},
then:function(n){var F={};return _.B("div",{class:_.B8((F.ytdSponsorshipsPerksListActiveLoyaltyBadgeImage=function(){return I(E(),z().currentBadgeIndex)},F.ytdSponsorshipsPerksListInactiveLoyaltyBadgeImage=function(){return!I(E(),z().currentBadgeIndex)},F))},_.B(_.qp,{data:n,
alt:""}))}})),_.B("div",{class:_.B8("ytdSponsorshipsPerksListLoyaltyBadgeTitle",(A.ytdSponsorshipsPerksListActiveLoyaltyBadgeTitle=function(){return I(E(),z().currentBadgeIndex)},A))},u.title)))})))}}))},"ye");
xuE.idomCompat=!0;_.Jf(vfl,"yt-sponsorships-perks-list",{props:{data:_.zl}});_.Jf(_.ec(function(a){return _.B("ytw-fantasy-empty-state-view-model",{class:"ytwFantasyEmptyStateViewModelHost"},_.B(_.g,{cond:function(){return a.data().image},
then:function(z){return _.B(_.qp,{className:"ytwFantasyEmptyStateViewModelImage",data:z,ariaHidden:!0,alt:""})}}),_.B(_.xs,{className:"ytwFantasyEmptyStateViewModelTitle",
text:function(){return a.data().title}}),_.B(_.xs,{className:"ytwFantasyEmptyStateViewModelSubtitle",
text:function(){return a.data().subtitle}}),_.B(_.V0,{data:function(){return a.data().primaryButton}},{buttonViewModel:function(z){return _.B(_.At,{data:z.data,
className:"ytwFantasyEmptyStateViewModelPrimaryButton"})}}))},"ze"),"ytw-fantasy-empty-state-view-model",{props:{data:_.zl}});var GRw;var PyE=_.im({buttonRenderer:_.a1});_.IG(Z2m);var $u1=_.ec(function(a){var z=a.data;var I=a.uniqueId;var J=a.overrides;a=_.Bg(function(){var r,P=((r=z().timedAnimationData)==null?void 0:r.animationTiming)||[];return{uniqueId:I(),timings:P,experimentEnabled:P.length>0,enabled:P.length>0}},void 0,"xqyfv");
return _.B("timed-animation-button-renderer",{class:"ytwTimedAnimationButtonRendererHost"},_.B(Dk,{settings:a},_.B(_.V0,{data:function(){return z().buttonRenderer}},{buttonRenderer:function(r){return _.B(_.a1,{data:r.data,
buttonOverrides:J})}})))},"Ae"),XfX=_.K("web_enable_sink_timed_animation_button_renderer_ks")?Z2m:$u1,TpJ=_.K("web_enable_sink_timed_animation_button_renderer_ks")?_.fS(Z2m):$u1;
$u1.idomCompat=!0;_.K("web_enable_sink_timed_animation_button_renderer_ks")?_.EW(XfX,"timed-animation-button-renderer",{propNames:["data","uniqueId","overrides"]}):_.Jf(TpJ,"timed-animation-button-renderer",{props:{data:_.zl,uniqueId:_.zl,overrides:_.zl}});var JF=function(){var a=_.G.apply(this,arguments)||this;a.hideJoinButtonBeforeSubscribed=_.K("hide_join_button_before_subscribed");a.actionMap={"yt-button-refresh-action":"handleButtonRefreshAction","yt-unsubscribe-action":"handleUnsubscribeAction"};return a};
_.b(JF,_.G);_.Z=JF.prototype;_.Z.hasShowDialogCommand=function(a){return!!_.H(a,h3i)};
_.Z.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"}}}};
_.Z.updateJoinButtonOverrides=function(){var a,z;(a=_.PK(this.hostElement).querySelector("#sponsor-button ytd-button-renderer"))==null||(z=a.polymerController)==null||z.set("overrides",this.joinButtonOverrides);if(a=_.PK(this.hostElement).querySelector("#sponsor-button timed-animation-button-renderer"))a.overrides=this.joinButtonOverrides};
_.Z.handleButtonRefreshAction=function(a){if(a=_.H(a,xHv))this.set("data.membershipButton",a.membershipButton),this.notifyPath("data.membershipButton")};
_.Z.onYtServiceRequestError=function(a){_.cn(this.hostElement,a.detail.error.message)};
_.Z.onKeydown=function(a){if(a.key==="Enter"){var z;(z=this.data)!=null&&z.navigationEndpoint&&this.hasShowDialogCommand(this.data.navigationEndpoint)&&this.ytComponentBehavior.resolveCommand(this.data.navigationEndpoint)}};
_.Z.handleUnsubscribeAction=function(){var a,z,I;((a=this.data)==null?void 0:(z=a.membershipButton)==null?void 0:(I=z.buttonRenderer)==null?void 0:I.style)==="STYLE_PRIMARY"&&_.PK(this.hostElement).querySelector("#sponsor-button ytd-button-renderer").polymerController.set("data.style","STYLE_SUGGESTIVE")};
_.eH.Object.defineProperties(JF.prototype,{hideJoin:{configurable:!0,enumerable:!0,get:function(){var a;return((a=this.data)==null?void 0:a.hideMembershipButtonIfUnsubscribed)&&!this.subscribed}},
subscribed:{configurable:!0,enumerable:!0,get:function(){var a;return!((a=this.subscriptionStateEntity)==null||!a.subscribed)}},
joinButtonOverrides:{configurable:!0,enumerable:!0,get:function(){var a,z=(a=this.data)==null?void 0:a.membershipButton,I;a=(z==null?void 0:z.buttonRenderer)||_.H(z==null?void 0:(I=z.timedAnimationButtonRenderer)==null?void 0:I.buttonRenderer,_.lc);return(a==null?void 0:a.style)==="STYLE_BRAND_GRADIENT"?{style:"brand-gradient",type:"filled"}:(a==null?void 0:a.style)==="STYLE_MONO_OUTLINE"?{style:"mono",type:"outline"}:(a==null?void 0:a.style)==="STYLE_MONO_TONAL"?{style:"mono",type:"tonal"}:{style:"mono",
type:this.subscribed?"filled":"tonal"}}},
channelNameTabIndex:{configurable:!0,enumerable:!0,get:function(){var a;if(this.hasShowDialogCommand((a=this.data)==null?void 0:a.navigationEndpoint))return 0}},
channelNameRole:{configurable:!0,enumerable:!0,get:function(){var a;if(this.hasShowDialogCommand((a=this.data)==null?void 0:a.navigationEndpoint))return"button"}}});
JF.prototype.onYtServiceRequestError=JF.prototype.onYtServiceRequestError;JF.prototype.updateJoinButtonOverrides=JF.prototype.updateJoinButtonOverrides;_.L([_.Q(_.Hc.YtActionHandlerBehavior),_.p("design:type",Object)],JF.prototype,"actionHandlerBehavior",void 0);_.L([_.Q(_.k.YtRendererBehavior),_.p("design:type",Object)],JF.prototype,"ytRendererBehavior",void 0);_.L([_.Q(_.u4.YtRendererstamperBehavior),_.p("design:type",Object)],JF.prototype,"ytRendererstamperBehavior",void 0);
_.L([_.Q(_.pV),_.p("design:type",Object)],JF.prototype,"ytdReduxBehavior",void 0);_.L([_.Q(_.Ms.YtComponentBehavior),_.p("design:type",Object)],JF.prototype,"ytComponentBehavior",void 0);_.L([_.Q(_.WY),_.p("design:type",Object)],JF.prototype,"ironButtonState",void 0);_.L([_.x(),_.p("design:type",Object)],JF.prototype,"data",void 0);_.L([_.S("data.hideMembershipButtonIfUnsubscribed","subscribed"),_.p("design:type",Object),_.p("design:paramtypes",[])],JF.prototype,"hideJoin",null);
_.L([_.x(),_.p("design:type",String)],JF.prototype,"subscribeKey",void 0);_.L([_.x({selectorArgs:["subscribeKey"],selector:$7O}),_.p("design:type",Object)],JF.prototype,"subscriptionStateEntity",void 0);_.L([_.x({reflectToAttribute:!0}),_.p("design:type",Object)],JF.prototype,"hideJoinButtonBeforeSubscribed",void 0);_.L([_.S("subscriptionStateEntity"),_.x({reflectToAttribute:!0}),_.p("design:type",Object),_.p("design:paramtypes",[])],JF.prototype,"subscribed",null);
_.L([_.S("subscribed","data.membershipButton"),_.p("design:type",Object),_.p("design:paramtypes",[])],JF.prototype,"joinButtonOverrides",null);_.L([_.S("data.navigationEndpoint"),_.p("design:type",Object),_.p("design:paramtypes",[])],JF.prototype,"channelNameTabIndex",null);_.L([_.S("data.navigationEndpoint"),_.p("design:type",Object),_.p("design:paramtypes",[])],JF.prototype,"channelNameRole",null);
_.L([_.O8("joinButtonOverrides"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],JF.prototype,"updateJoinButtonOverrides",null);_.L([_.gz("yt-service-request-error"),_.p("design:type",Function),_.p("design:paramtypes",[CustomEvent]),_.p("design:returntype")],JF.prototype,"onYtServiceRequestError",null);_.L([_.U({is:"ytd-video-owner-renderer",disableElementRegistration:!0})],JF);
var duw=_.Cw()(JF,"ytd-video-owner-renderer",function(){if(GRw===void 0){var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-video-owner-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<a class="yt-simple-endpoint style-scope ytd-video-owner-renderer" href$="[[computeHref_(data.navigationEndpoint)]]" data="[[data.navigationEndpoint]]" tabindex="-1"><yt-img-shadow id="avatar" alt="[[getSimpleString(data.title)]]" 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]]" role$="[[channelNameRole]]" tabindex$="[[channelNameTabIndex]]" on-keydown="onKeydown" class="style-scope ytd-video-owner-renderer"></ytd-channel-name><yt-formatted-string id="owner-sub-count" hidden="[[!data.subscriberCountText]]" text="[[data.subscriberCountText]]" class="style-scope ytd-video-owner-renderer"></yt-formatted-string><slot name="date" class="style-scope ytd-video-owner-renderer"></slot></div><div id="purchase-button" hidden="[[!data.purchaseButton]]" class="style-scope ytd-video-owner-renderer"></div><div id="sponsor-button" hidden="[[hideJoin]]" class="style-scope ytd-video-owner-renderer"></div><div id="analytics-button" class="style-scope ytd-video-owner-renderer"></div>');
a.content.insertBefore(_.w().content.cloneNode(!0),a.content.firstChild);GRw=a}a=GRw;return a},{slotProps:["date"],
allowedProps:["data","subscribeKey"],mode:1});_.Jf(_.ec(function(a){var z=a.data;var I;a=_.C(_.CW(!((I=_.nN("yt-mini-app-is-theater-mode-enabled"))==null||!I),void 0,"CtFFDf"));var J=a.next().value,r=a.next().value;I=_.C(_.CW(!1,void 0,"pRgDfb"));var P=I.next().value,N=I.next().value;_.QO(function(){var O=_.Sg(window,laX,function(){N(whI())});
_.V3(function(){hj(O)})});
var u;I=(u=_.ab().resolve(_.eL(Inw)))!=null?u:function(){return _.B("div",null)};
_.k0("yt-signal-action-mini-app-toggle-theatre-mode-on",function(){r(!0);_.s4("yt-mini-app-is-theater-mode-enabled",!0,2592E3)});
_.k0("yt-signal-action-mini-app-toggle-theatre-mode-off",function(){r(!1);_.s4("yt-mini-app-is-theater-mode-enabled",!1,2592E3)});
u={};a={};var E={};return _.B("mini-app-play-page-renderer",{class:_.B8("miniAppPlayPageRendererHost",(u.miniAppPlayPageRendererHostDetailsView=function(){return!J()},u))},_.B("div",{class:_.B8("miniAppPlayPageRendererGameContainer",(a.miniAppPlayPageRendererGameContainerDetailsView=function(){return!J()},a))},_.B(_.V0,{data:function(){return z().containerViewModel}},{miniAppContainerViewModel:bbe}),_.B(_.g,{cond:function(){return z().channel&&z().subscribeButton},
then:function(){var O={};return _.B("div",{class:_.B8("miniAppPlayPageRendererChannelContainer",(O.miniAppPlayPageRendererHideVisibility=function(){return P()},O))},_.B(_.V0,{data:function(){return z().channel}},{videoOwnerRenderer:function(f){return _.B(duw,{data:f.data})}}),_.B(_.V0,{data:function(){return z().subscribeButton}},{subscribeButtonViewModel:function(f){return _.B(_.op,{data:f.data,
isOverlay:!1,animateWidth:!0})}}))}}),_.B(_.g,{cond:function(){return!J()&&z().description},
then:function(){var O={};return _.B("div",{class:_.B8("miniAppPlayPageRendererMiniAppDescriptionWrapper",(O.miniAppPlayPageRendererHideVisibility=function(){return P()},O))},_.B("span",{class:"miniAppPlayPageRendererMiniAppDescription"},function(){return z().description}))}})),_.B("div",{class:_.B8("miniAppPlayPageRendererPlayNextContainer",(E.miniAppPlayPageRendererPlayNextContainerDetailsView=function(){return!J()},E.miniAppPlayPageRendererHideVisibility=function(){return P()},E))},_.B(_.V0,{data:function(){return z().sectionList}},
{sectionListRenderer:I})))},"Be"),"mini-app-play-page-renderer",{props:{data:_.zl}});var rm=function(){var a=_.G.apply(this,arguments)||this;a.isSearch=!1;a.isConstrainedList=!1;a.hasChipsBar=!1;a.inReplyPanel=!1;a.scrollUpButtonData={buttonViewModel:{iconName:"UP_ARROW",style:"BUTTON_VIEW_MODEL_STYLE_UNKNOWN",type:"BUTTON_VIEW_MODEL_TYPE_FILLED",state:"BUTTON_VIEW_MODEL_STATE_ACTIVE",buttonSize:"BUTTON_VIEW_MODEL_SIZE_COMPACT"}};a.monitorScroll=!0;a.SCROLL_ANIMATION_DURATION_MS=300;a.nextContinuation={continuationType:"sectionListContinuation"};return a};
_.b(rm,_.G);_.Z=rm.prototype;
_.Z.configureRendererStamper=function(){return{"data.header":{id:"header",mapping:{feedChannelFilterHeaderRenderer:{component:"ytd-feed-channel-filter-header-renderer",noInjection:!0},textHeaderRenderer:{component:"ytd-text-header-renderer",noInjection:!0},richListHeaderRenderer:{component:"ytd-rich-list-header-renderer",noInjection:!0},headerWithBackRenderer:{component:"yt-header-with-back-renderer",noInjection:!0},feedFilterChipBarRenderer:{component:"ytd-feed-filter-chip-bar-renderer",noInjection:!0,
properties:{isClipList:"[[isClipList]]"}},liveChatItemDisplayRenderer:{component:"yt-live-chat-item-display-renderer",noInjection:!0,params:{isHeader:!0}},chipBarViewModel:{component:"chip-bar-view-model",noInjection:!0}}},"data.subMenu":{id:"sub-menu",mapping:{searchSubMenuRenderer:{component:"ytd-search-sub-menu-renderer",noInjection:!0},channelSubMenuRenderer:{component:"ytd-channel-sub-menu-renderer",noInjection:!0},channelListSubMenuRenderer:{component:"ytd-channel-list-sub-menu-renderer",noInjection:!0},
sortFilterSubMenuRenderer:{component:"yt-sort-filter-sub-menu-renderer",noInjection:!0}}},shownItems:{id:"contents",mapping:{itemSectionRenderer:{matcher:function(a){switch(a.sectionIdentifier){case "comment-item-section":return"ytd-comments";case "backstage-item-section":return"ytd-backstage-items";default:return"ytd-item-section-renderer"}},
properties:{isSearch:"[[isSearch]]",hasChipsBar:"[[hasChipsBar]]",engagementPanel:"[[engagementPanel]]",pageSubtype:"[[pageSubtype]]",isConstrainedList:"[[isConstrainedList]]"},noInjection:!0},channelOwnerEmptyStateRenderer:{component:"ytd-channel-owner-empty-state-renderer",noInjection:!0},channelAgeGateRenderer:{component:"ytd-channel-age-gate-renderer",noInjection:!0},emptyProductDetailsRenderer:{component:"ytd-empty-product-details-renderer",noInjection:!0},flowRootRenderer:{component:"ytd-flow-root-renderer",
noInjection:!0},iframeRenderer:{component:"yt-iframe-renderer",noInjection:!0},commerceCartRenderer:{component:"ytd-commerce-cart-renderer",noInjection:!0},minorMomentHeaderRenderer:{component:"ytd-minor-moment-header-renderer",noInjection:!0},minorMomentSettingSectionRenderer:{component:"ytd-minor-moment-setting-section-renderer",noInjection:!0},pageIntroductionRenderer:{component:"ytd-page-introduction-renderer",noInjection:!0},reportHistorySectionRenderer:{component:"ytd-report-history-section-renderer",
noInjection:!0},sponsorshipsManagementRenderer:{component:"ytd-sponsorships-management-renderer",noInjection:!0},sponsorshipsExpandablePerksRenderer:{component:"ytd-sponsorships-expandable-perks-renderer",noInjection:!0},sponsorshipsHubViewModel:{component:"yt-sponsorships-hub",noInjection:!0},sponsorshipsPerksListViewModel:{component:"yt-sponsorships-perks-list",noInjection:!0},shelfRenderer:{component:"ytd-shelf-renderer",noInjection:!0},offlineItemSectionRenderer:{component:"ytd-offline-item-section-renderer",
noInjection:!0},merchandiseShelfRenderer:{component:"ytd-merch-shelf-renderer",noInjection:!0},miniAppContainerViewModel:{component:"mini-app-container-view-model",noInjection:!0},miniAppPlayPageRenderer:{component:"mini-app-play-page-renderer",noInjection:!0},openInNativeAppViewModel:{component:"ytd-open-in-native-app-view-model",noInjection:!0},continuationItemRenderer:"ytd-continuation-item-renderer",liveChatProfileIdentityViewModel:{component:"yt-live-chat-identity-view-model",noInjection:!0},
liveChatItemDisplayListRenderer:{component:"yt-live-chat-item-display-list-renderer",noInjection:!0},liveChatChannelActivityReputationRenderer:{component:"yt-live-chat-channel-activity-reputation-renderer",noInjection:!0},liveChatEmptyFeedViewModel:{component:"yt-live-chat-empty-feed-view-model",noInjection:!0},listItemViewModel:{component:"ytd-list-item-view-model",params:{noPadding:!0},noInjection:!0},emojiCustomizationPanelViewModel:{component:"yt-emoji-customization-panel-view-model",noInjection:!0},
creatorGoalProgressFlowViewModel:{component:"yt-creator-goal-progress-flow-view-model",noInjection:!0},fantasyEmptyStateViewModel:{component:"ytw-fantasy-empty-state-view-model",noInjection:!0}}},"data.continuations":{id:"continuations",mapping:{nextContinuationData:{component:"yt-next-continuation",noInjection:!0}},renderPriority:_.K("kevlar_low_priority_continuation")?0:void 0,usePageScheduler:_.K("kevlar_low_priority_continuation")},scrollUpButtonData:{id:"action-button",mapping:{buttonViewModel:{component:"yt-button-view-model",
properties:{scopingClassName:"[[is]]"},noInjection:!0}}}}};
_.Z.created=function(){var a=this;this.JSC$16928_scrollAnimation=new _.MB(function(z){a.hostElement.scrollTop=z})};
_.Z.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"contents","yt-reload-continuation-items-command-body":"contents"}};
_.Z.getItemsPath=function(){return"data.contents"};
_.Z.replacePrimaryContent=function(a){this.set("data.contents",a)};
_.Z.computeHasSortFilter=function(a){return!!a&&!!a.sortFilterSubMenuRenderer};
_.Z.computeShouldScrollInPanel=function(a){var z;return!!(a==null?0:(z=a.scrollPaneStyle)==null?0:z.scrollable)};
_.Z.onScroll=function(){this.liveChatEngagementPanel&&!this.inReplyPanel&&_.CM(this.actionButton,"show-scroll-button",this.hostElement.scrollTop!==0)};
_.Z.scrollToTop=function(){this.hostElement.scrollTop=0};
_.Z.scrollToItemSection=function(a){if(a=this.getItemByIdentifier(a))a=this.getScrollPositionForItem(a),this.hostElement.scrollTop!==a&&this.JSC$16928_scrollAnimation.start(this.hostElement.scrollTop,a,this.SCROLL_ANIMATION_DURATION_MS)};
_.Z.getItemByIdentifier=function(a){var z=this.contents.querySelectorAll("ytd-item-section-renderer");if(z&&z.length!==0){var I=Array.from(z).findIndex(function(J){return J.sectionIdentifier===a});
return z[I===-1?0:I]}};
_.Z.getScrollPositionForItem=function(a){if(this.contents.querySelectorAll("ytd-item-section-renderer")[0]===a)return 0;a=_.TB(a).y+this.hostElement.scrollTop-_.TB(this.hostElement).y;return Math.min(a,this.hostElement.scrollHeight-this.hostElement.offsetHeight)};
_.eH.Object.defineProperties(rm.prototype,{isClipList:{configurable:!0,enumerable:!0,get:function(){var a;return((a=this.data)==null?void 0:a.targetId)==="browse-feedFEclips"}}});
rm.prototype.onScroll=rm.prototype.onScroll;_.L([_.Q(_.k.YtRendererBehavior),_.p("design:type",Object)],rm.prototype,"ytRendererBehavior",void 0);_.L([_.Q(_.u4.YtRendererstamperBehavior),_.p("design:type",Object)],rm.prototype,"ytRendererstamperBehavior",void 0);_.L([_.Q(_.uQ.YtLazyListBehavior),_.p("design:type",Object)],rm.prototype,"ytLazyListBehavior",void 0);_.L([_.Q(_.cX.YtNextContinuationBehavior),_.p("design:type",Object)],rm.prototype,"ytNextContinuationBehavior",void 0);
_.L([_.Q(_.KQG),_.p("design:type",Object)],rm.prototype,"ytBooleanLogicBehavior",void 0);_.L([_.Q(_.M8),_.p("design:type",Object)],rm.prototype,"ytContinuationHandlerBehavior",void 0);_.L([_.x(),_.p("design:type",Object)],rm.prototype,"data",void 0);_.L([_.x({value:2}),_.p("design:type",Number)],rm.prototype,"initialCount",void 0);_.L([_.x({value:!0}),_.p("design:type",Boolean)],rm.prototype,"autoFill",void 0);
_.L([_.x({reflectToAttribute:!0,computed:"computeHasSortFilter(data.subMenu)"}),_.p("design:type",Boolean)],rm.prototype,"hasSortFilter",void 0);_.L([_.x({reflectToAttribute:!0,computed:"toBool(data.hideBottomSeparator)"}),_.p("design:type",Boolean)],rm.prototype,"hideBottomSeparator",void 0);_.L([_.x({reflectToAttribute:!0,computed:"computeShouldScrollInPanel(data)"}),_.p("design:type",Boolean)],rm.prototype,"shouldScrollInPanel",void 0);
_.L([_.x(),_.p("design:type",Object)],rm.prototype,"isSearch",void 0);_.L([_.x({reflectToAttribute:!0}),_.p("design:type",Object)],rm.prototype,"isConstrainedList",void 0);_.L([_.x({reflectToAttribute:!0}),_.p("design:type",String)],rm.prototype,"responsiveSizing",void 0);_.L([_.x(),_.p("design:type",Object)],rm.prototype,"hasChipsBar",void 0);_.L([_.x({reflectToAttribute:!0}),_.p("design:type",String)],rm.prototype,"pageSubtype",void 0);
_.L([_.x({reflectToAttribute:!0}),_.p("design:type",Boolean)],rm.prototype,"engagementPanel",void 0);_.L([_.x({reflectToAttribute:!0}),_.p("design:type",Boolean)],rm.prototype,"liveChatEngagementPanel",void 0);_.L([_.x({reflectToAttribute:!0}),_.p("design:type",Object)],rm.prototype,"inReplyPanel",void 0);_.L([_.A3("#action-button"),_.p("design:type",HTMLElement)],rm.prototype,"actionButton",void 0);_.L([_.x(),_.p("design:type",Object)],rm.prototype,"scrollUpButtonData",void 0);
_.L([_.x({reflectToAttribute:!0}),_.p("design:type",Boolean)],rm.prototype,"engagementPanelDropdown",void 0);_.L([_.x({reflectToAttribute:!0}),_.p("design:type",Boolean)],rm.prototype,"engagementPanelDialog",void 0);_.L([_.S("data"),_.p("design:type",Object),_.p("design:paramtypes",[])],rm.prototype,"isClipList",null);_.L([_.A3("#contents"),_.p("design:type",HTMLElement)],rm.prototype,"monitorScrollElement",void 0);_.L([_.A3("#contents"),_.p("design:type",HTMLElement)],rm.prototype,"contents",void 0);
_.L([_.gz("scroll"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],rm.prototype,"onScroll",null);_.L([_.U({is:"ytd-section-list-renderer",disableElementRegistration:!0})],rm);
var WnO=_.Cw()(rm,"ytd-section-list-renderer",function(){if(zWj===void 0){var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-section-list-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header-container" class="style-scope ytd-section-list-renderer">\n  <div id="header" class="style-scope ytd-section-list-renderer"></div>\n  <div id="sub-menu" class="style-scope ytd-section-list-renderer"></div>\n</div>\n<div id="contents" class="style-scope ytd-section-list-renderer"></div>\n<div id="action-button" on-click="scrollToTop" class="style-scope ytd-section-list-renderer"></div>\n<div id="continuations" class="style-scope ytd-section-list-renderer"></div>\n');a.content.insertBefore(_.w().content.cloneNode(!0),
a.content.firstChild);zWj=a}a=zWj;return a},{mode:1});var ofX;var Uu1;var Du1;var Rmi;var P1=function(){return _.G.apply(this,arguments)||this};
_.b(P1,_.G);P1.prototype.configureRendererStamper=function(){return{likeButtonRenderer:{id:"button",mapping:{toggleButtonRenderer:{component:"ytd-toggle-button-renderer",properties:{"on-tap":"[[onLikeButtonClick]]"}}}}}};
P1.prototype.onLikeButtonClick=function(a){a.stopPropagation();a.preventDefault()};
_.eH.Object.defineProperties(P1.prototype,{likeButtonRenderer:{configurable:!0,enumerable:!0,get:function(){var a;if((a=this.data)!=null&&a.button){if(!this.likeStatusEntity)return this.data.button;this.set("data.button.toggleButtonRenderer.isToggled",!(!this.data.isLike||this.likeStatusEntity.likeStatus!=="LIKE")||!(!this.data.isDislike||this.likeStatusEntity.likeStatus!=="DISLIKE"));this.set("data.likeStatus",this.likeStatusEntity.likeStatus);return Object.assign({},this.data.button,{toggleButtonRenderer:Object.assign({},
this.data.button.toggleButtonRenderer)})}}}});
_.L([_.Q(_.k.YtRendererBehavior),_.p("design:type",Object)],P1.prototype,"ytRendererBehavior",void 0);_.L([_.Q(_.Ms.YtComponentBehavior),_.p("design:type",Object)],P1.prototype,"ytComponentBehavior",void 0);_.L([_.Q(_.pV),_.p("design:type",Object)],P1.prototype,"ytdReduxBehavior",void 0);_.L([_.Q(_.u4.YtRendererstamperBehavior),_.p("design:type",Object)],P1.prototype,"ytRendererStamperBehavior",void 0);_.L([_.x(),_.p("design:type",Object)],P1.prototype,"data",void 0);
_.L([_.x({selectorArgs:["data.likeStatusEntityKey"],selector:UW}),_.p("design:type",Object)],P1.prototype,"likeStatusEntity",void 0);_.L([_.S("data","likeStatusEntity"),_.p("design:type",Object),_.p("design:paramtypes",[])],P1.prototype,"likeButtonRenderer",null);_.L([_.U({is:"ytd-slim-metadata-toggle-button-renderer",disableElementRegistration:!0})],P1);
_.D(P1,"ytd-slim-metadata-toggle-button-renderer",function(){if(Rmi!==void 0)return Rmi;var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-slim-metadata-toggle-button-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="button" class="style-scope ytd-slim-metadata-toggle-button-renderer"></div>\n');a.content.insertBefore(_.w().content.cloneNode(!0),a.content.firstChild);
return Rmi=a},{mode:1});var ZQ=function(){var a=_.G.apply(this,arguments)||this;a.minimizePipBreakages=_.K("web_pip_minimize_breakages");a.showEqualizer=_.K("web_enable_playlist_video_lockup_equalizer");a.watchColorUpdate=_.K("kevlar_watch_color_update");a.actionMap={};return a};
_.b(ZQ,_.G);_.Z=ZQ.prototype;_.Z.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"}}}};
_.Z.computeEditableClass=function(a){return a&&a.menu?"editable":""};
_.Z.computeSelected=function(a){return!(a==null||!a.selected)};
_.Z.computeUseColorPalette=function(a){return!!((a==null?0:a.lightColorPalette)&&(a==null?0:a.darkColorPalette))};
_.Z.computeLargerPlaylistThumbs=function(a,z){return _.K("web_enable_playlist_bigger_thumbnails")&&!z};
_.Z.canReorderChanged=function(){this.touchPersistentDragHandle=this.canReorder};
_.Z.onYtServiceRequestSent=function(a,z){z.endpoint&&this.isHideEnclosingAction(z.endpoint)&&!this.selected&&Mje(_.cS(),this.data.videoId)};
_.Z.isHideEnclosingAction=function(a){var z=!!this.get("feedbackEndpoint.uiActions.hideEnclosingContainer",a);a=this.get("likeEndpoint.status",a)==="INDIFFERENT";return z||a};
_.Z.onHandleMouseenter=function(){this.handleIsHovered=!0};
_.Z.onHandleMouseleave=function(){this.handleIsHovered=!1};
_.eH.Object.defineProperties(ZQ.prototype,{reorderIcon:{configurable:!0,enumerable:!0,get:function(){return _.K("enable_web_delhi_icons")?"equal":"yt-icons:drag_handle"}},
thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){return(this==null?0:this.largerPlaylistThumbs)?151:100}},
showActionButtons:{configurable:!0,enumerable:!0,get:function(){var a;return!!(this.withinMiniplayer&&((a=this.data)==null?0:a.actionButtons))}}});
ZQ.prototype.onYtServiceRequestSent=ZQ.prototype.onYtServiceRequestSent;ZQ.prototype.canReorderChanged=ZQ.prototype.canReorderChanged;_.L([_.Q(_.u4.YtRendererstamperBehavior),_.p("design:type",Object)],ZQ.prototype,"ytRendererstamperBehavior",void 0);_.L([_.Q(_.Hc.YtActionHandlerBehavior),_.p("design:type",Object)],ZQ.prototype,"ytActionHandlerBehavior",void 0);_.L([_.Q(_.k.YtRendererBehavior),_.p("design:type",Object)],ZQ.prototype,"ytRendererBehavior",void 0);
_.L([_.Q(_.eB),_.p("design:type",Object)],ZQ.prototype,"ytdLockupBehavior",void 0);_.L([_.x(),_.p("design:type",Object)],ZQ.prototype,"data",void 0);_.L([_.x({reflectToAttribute:!0}),_.p("design:type",Boolean)],ZQ.prototype,"withinMiniplayer",void 0);_.L([_.x({reflectToAttribute:!0}),_.p("design:type",Object)],ZQ.prototype,"minimizePipBreakages",void 0);_.L([_.x({computed:"computeSelected(data)",reflectToAttribute:!0}),_.p("design:type",Boolean)],ZQ.prototype,"selected",void 0);
_.L([_.x({computed:"computeUseColorPalette(data)",reflectToAttribute:!0}),_.p("design:type",Boolean)],ZQ.prototype,"useColorPalette",void 0);_.L([_.x({computed:"computeLargerPlaylistThumbs(data, withinMiniplayer)",reflectToAttribute:!0}),_.p("design:type",Boolean)],ZQ.prototype,"largerPlaylistThumbs",void 0);_.L([_.x(),_.p("design:type",Object)],ZQ.prototype,"showEqualizer",void 0);_.L([_.x({reflectToAttribute:!0}),_.p("design:type",Boolean)],ZQ.prototype,"canReorder",void 0);
_.L([_.x({reflectToAttribute:!0}),_.p("design:type",Boolean)],ZQ.prototype,"touchPersistentDragHandle",void 0);_.L([_.x({reflectToAttribute:!0}),_.p("design:type",Boolean)],ZQ.prototype,"handleIsHovered",void 0);_.L([_.x({reflectToAttribute:!0}),_.p("design:type",Object)],ZQ.prototype,"watchColorUpdate",void 0);_.L([_.x(),_.p("design:type",String),_.p("design:paramtypes",[])],ZQ.prototype,"reorderIcon",null);
_.L([_.S("largerPlaylistThumbs"),_.p("design:type",Number),_.p("design:paramtypes",[])],ZQ.prototype,"thumbnailWidth",null);_.L([_.x({reflectToAttribute:!0}),_.S("data"),_.p("design:type",Boolean),_.p("design:paramtypes",[])],ZQ.prototype,"showActionButtons",null);_.L([_.Fe("canReorder"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],ZQ.prototype,"canReorderChanged",null);
_.L([_.gz("yt-service-request-sent"),_.p("design:type",Function),_.p("design:paramtypes",[CustomEvent,_.lJ]),_.p("design:returntype")],ZQ.prototype,"onYtServiceRequestSent",null);_.L([_.U({is:"ytd-playlist-panel-video-renderer",disableElementRegistration:!0})],ZQ);
_.D(ZQ,"ytd-playlist-panel-video-renderer",function(){if(Du1!==void 0)return Du1;var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-playlist-panel-video-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<a id="wc-endpoint" class="yt-simple-endpoint style-scope ytd-playlist-panel-video-renderer" href$="[[computeHref_(data.navigationEndpoint)]]" data="[[data.navigationEndpoint]]">\n  <div id="container" class="style-scope ytd-playlist-panel-video-renderer">\n    <div id="index-container" class="playlist-drag-handle style-scope ytd-playlist-panel-video-renderer" on-mouseenter="onHandleMouseenter" on-mouseleave="onHandleMouseleave">\n      <span id="reorder" class="style-scope ytd-playlist-panel-video-renderer">\n        <yt-icon icon="[[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');a.content.insertBefore(_.w().content.cloneNode(!0),
a.content.firstChild);return Du1=a},{mode:2});var Cy=function(){return _.G.apply(this,arguments)||this};
_.b(Cy,_.G);Cy.prototype.configureRendererStamper=function(){return{data:{id:"content",mapping:{playlistPanelVideoRenderer:{component:"ytd-playlist-panel-video-renderer",noInjection:!0},messageRenderer:{component:"ytd-message-renderer",noInjection:!0}}}}};
_.L([_.Q(_.u4.YtRendererstamperBehavior),_.p("design:type",Object)],Cy.prototype,"ytRendererstamperBehavior",void 0);_.L([_.x(),_.p("design:type",Object)],Cy.prototype,"data",void 0);_.L([_.U({is:"ytd-playlist-panel-supported-items",disableElementRegistration:!0})],Cy);
_.D(Cy,"ytd-playlist-panel-supported-items",function(){if(Uu1!==void 0)return Uu1;var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-playlist-panel-supported-items--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="content" class="style-scope ytd-playlist-panel-supported-items"></div>\n');a.content.insertBefore(_.w().content.cloneNode(!0),a.content.firstChild);return Uu1=
a},{mode:1});pKf=!0;PmI("\\P{N}");var Cyp;var LnE=_.AR("END_OF_PLAYLIST",void 0,"End of playlist"),l$I=_.AR("PLAYLIST_MIX_DETAILED_LONG_BYLINE",void 0,"Mixes are playlists YouTube makes for you"),NG=function(){var a=_.G.apply(this,arguments)||this;a.minimizePipBreakages=_.K("web_pip_minimize_breakages");a.updatedCoursePanel=_.K("move_three_dot_menu_to_playlist_panel_header_for_courses");a.hideHeaderText=!1;a.useColorPalette=!1;a.collapsed=!1;a.collapsedPreServerOverride="not_tracked";a.isHovered=!1;a.modernPanels=_.K("kevlar_watch_modern_panels");
a.expandLabel=_.AR("MINIPLAYER_EXPAND_LABEL");a.collapseLabel=_.AR("MINIPLAYER_COLLAPSE_LABEL");a.isFloating=!1;a.metaPanel=!1;a.actionMap={"yt-dark-mode-toggled-action":"handleDarkModeChange"};a.currentIndex=void 0;return a};
_.b(NG,_.G);_.Z=NG.prototype;
_.Z.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"}}}};
_.Z.created=function(){this.scrollThrottle=new _.kc(this.onThrottledScroll,1E3,this)};
_.Z.onMouseEnter=function(){this.isHovered=!0};
_.Z.onMouseLeave=function(){this.isHovered=!1};
_.Z.computeOverflowMenuData=function(a){return a&&a.menu?a.menu:null};
_.Z.computeCollapsible=function(a){return!a};
_.Z.computeHasPlaylistButtons=function(a){return!(!a||!a.playlistButtons)};
_.Z.computeHasSeparateSaveButton=function(a){return!(!a||!a.saveButton)};
_.Z.computeHasToolbarButton=function(a,z){return!(!a||!(z||a.saveButton||a.menu))};
_.Z.computePlaylistType=function(a){if(a&&a.playlistId)return a.playlistId.substring(0,4)};
_.Z.computeCanReorder=function(a){return a?a.playlistId&&a.playlistId.startsWith("TLPQ")?!0:!!a.isEditable&&!a.isInfinite:!1};
_.Z.attached=function(){var a=this;try{_.ab().resolve(_.wR).setPlaylistComponent(this.hostElement)}catch(z){if(_.K("kevlar_park_on_playlist_token_killswitch"))throw z;_.yT().parkOrScheduleJob(function(){_.ab().resolve(_.wR).setPlaylistComponent(a.hostElement)},2,"ci")}_.I_(this.hostElement);
this.handleDarkModeChange(document.documentElement.hasAttribute("dark"))};
_.Z.detached=function(){_.JR(this.hostElement)};
_.Z.computeTrailingIcon=function(a,z,I){return I?z?"yt-icons:collapse":"yt-icons:close":z?"yt-icons:expand":_.K("kevlar_playlist_use_x_close_button")?"yt-icons:close":"yt-icons:collapse"};
_.Z.computeIndexMessage=function(a,z){return ujG(a+1)+" / "+ujG(z)};
_.Z.onRenderStamperFinished=function(){if(this.scrollForStampDom){var a=!0;this.isHovered&&(a=!1);if(this.collapsed||this.hidden)a=!1;a&&this.scrollToCurrentVideo();this.scrollForStampDom=!1;this.data&&(this.currentIndex=this.data.currentIndex)}this.canReorder&&this.setupReordering()};
_.Z.collapseChanged=function(){var a=this;this.collapsed||(_.hE(this.ytTaskEmitterBehavior.getTaskManager(),function(){a.scrollToCurrentVideo()}),this.ytRendererBehavior.markDirty())};
_.Z.hiddenChanged=function(){var a=this;this.hidden||_.hE(this.ytTaskEmitterBehavior.getTaskManager(),function(){a.scrollToCurrentVideo()})};
_.Z.setupReordering=function(){var a=_.PK(this.hostElement).querySelector("#items");Qmv?_.KCj(this.ytReorderableBehavior,a,a,"playlist-drag-handle"):_.KCj(this.ytReorderableBehavior,a,a)};
_.Z.scrollToCurrentVideo=function(){var a=this;_.GW.addJob(function(){var z=_.PK(a.hostElement).querySelector("#items");if(z){z.style.setProperty("padding-bottom","");var I=_.PK(a.hostElement).querySelector("#items").querySelector("ytd-playlist-panel-video-renderer[selected]");if(I){z=I.parentElement||_.SN(document);var J=z||_.SN(document);var r=_.TB(I),P=_.TB(J),N=_.Kzw(J);if(J==_.SN(document)){var u=r.x-J.scrollLeft;r=r.y-J.scrollTop}else u=r.x-P.x-N.left,r=r.y-P.y-N.top;I=fEX(I);P=J.clientHeight-
I.height;N=J.scrollLeft;var E=J.scrollTop;N+=u-(J.clientWidth-I.width)/2;J=new _.GB(N,E+(r-P/2));z.scrollLeft=J.x;z.scrollTop=J.y}}},8)};
_.Z.dataChanged=function(){var a=this;_.nnj(this.ytReorderableBehavior);this.scrollForStampDom=this.currentIndex!==this.data.currentIndex;this.hidden||_.Yv(this,function(){_.b9(a.ytTaskEmitterBehavior.getTaskManager(),function(){a.ytRendererBehavior.markDirty();a.updateNowPlayingOverlay()})});
this.handleCollapsedFromData(this.data)};
_.Z.onFullBleedPlayerChanged=function(){_.K("web_watch_imax_theater_mode")&&(this.isFullBleedPlayer?this.setCollapsed(!0):this.setCollapsed(!1))};
_.Z.onFullscreenChanged=function(){_.K("web_watch_imax_theater_mode")||_.K("web_watch_close_eps_on_fullscreen")&&(this.isFullscreen?this.setCollapsed(!0):this.setCollapsed(!1))};
_.Z.updateNowPlayingOverlay=function(){_.K("web_enable_playlist_video_lockup_equalizer")&&this.activeNowPlayingRenderer&&(this.activeNowPlayingRenderer.isVideoPlaying=this.playerState===1)};
_.Z.onPlaylistLockupNowPlaying=function(a,z){z&&(this.activeNowPlayingRenderer=z);this.updateNowPlayingOverlay()};
_.Z.onScroll=function(){this.scrollThrottle.fire()};
_.Z.onThrottledScroll=function(){var a=this;_.b9(this.ytTaskEmitterBehavior.getTaskManager(),function(){a.ytRendererBehavior.markDirty()})};
_.Z.onToggleExpanded=function(a){!this.collapsible||a&&(_.Yh(a).tagName==="A"||_.qK(_.ch(a),this.hostElement,["YTD-MENU-RENDERER","YTD-TOGGLE-BUTTON-RENDERER"]))||(this.setCollapsed(!this.collapsed),this.collapsedPreServerOverride="not_tracked")};
_.Z.setCollapsed=function(a){this.collapsible&&(this.collapsed=a,_.Ct(this.hostElement,"yt-set-playlist-collapsed",[this.collapsed]))};
_.Z.handleCollapsedFromData=function(a){if(a){var z=a.playlistPanelCollapseState;z==="PLAYLIST_PANEL_COLLAPSE_STATE_COLLAPSED"||z==="PLAYLIST_PANEL_COLLAPSE_STATE_EXPANDED"?(this.collapsedPreServerOverride==="not_tracked"&&(this.collapsedPreServerOverride=this.collapsed?"collapsed":"expanded"),z=z==="PLAYLIST_PANEL_COLLAPSE_STATE_COLLAPSED",this.collapsed!==z&&this.setCollapsed(z)):this.currentPlaylistId!==a.playlistId&&this.collapsedPreServerOverride!=="not_tracked"&&(z=this.collapsedPreServerOverride===
"collapsed",this.collapsed!==z&&this.setCollapsed(z),this.collapsedPreServerOverride="not_tracked");this.currentPlaylistId=a.playlistId}};
_.Z.handleDrop=function(a){var z=a.currDragItem;a=z.data.playlistSetVideoId;var I=_.d$(z.parentNode.childNodes,z),J=void 0;I>0&&(J=z.parentNode.childNodes[I-1].data.playlistSetVideoId);z=_.cS();if(z.responsePlaylistData&&z.responsePlaylistData.contents){var r=Iem(a,z.responsePlaylistData);z.responsePlaylistData=(0,_.x8.unsafeClone)(z.responsePlaylistData);v7M(z.responsePlaylistData.contents,r,I);z.queueProxy?hq1(z.queueProxy,r,I,a,J):z.playlistProxy&&hq1(z.playlistProxy,r,I,a,J);_.Y3(z,_.q_(z,z.response?
z.response.autoplayRenderer:void 0))}};
_.Z.handleDarkModeChange=function(a){a!==this.isDarkTheme&&(this.isDarkTheme=a)};
_.Z.colorPaletteChanged=function(){var a,z=((a=this.data)==null?void 0:a.contents)||[],I;a=_.C(z);for(z=a.next();!z.done;z=a.next()){z=z.value;var J=void 0;if((J=z.playlistPanelVideoRenderer)==null?0:J.selected){a=z.playlistPanelVideoRenderer;J=z=void 0;(I=this.isDarkTheme?(z=a)==null?void 0:z.darkColorPalette:(J=a)==null?void 0:J.lightColorPalette)&&_.xq(this.hostElement,I);break}}this.useColorPalette=!!I};
_.eH.Object.defineProperties(NG.prototype,{moveThreeDotMenuToTopRow:{configurable:!0,enumerable:!0,get:function(){var a,z;return!((a=this.data)==null||!a.playlistId)&&!((z=this.data)==null||!z.isCourse)&&this.updatedCoursePanel}},
nextVideoTitle:{configurable:!0,enumerable:!0,get:function(){var a=_.ab().resolve(_.eL(_.wR)),z;if(((z=this.data)==null?0:z.contents)&&(a==null?0:a.hasAutoplayData())){var I;if(((I=this.playlistLoopStateEntity)==null?void 0:I.state)==="PLAYLIST_LOOP_STATE_ONE"){if(a=this.data.currentIndex,a!==void 0){var J,r;var P=(J=this.data.contents[a])==null?void 0:(r=J.playlistPanelVideoRenderer)==null?void 0:r.title}}else{var N,u=(N=_.H(a.getAutoplayEndpoint(),_.MZ))==null?void 0:N.videoId,E,O;P=(E=this.data.contents.find(function(f){var A;
return((A=f.playlistPanelVideoRenderer)==null?void 0:A.videoId)===u}))==null?void 0:(O=E.playlistPanelVideoRenderer)==null?void 0:O.title}return P}}},
nextVideoLabel:{configurable:!0,enumerable:!0,get:function(){var a;return(a=this.data)!=null&&a.nextVideoLabel?this.nextVideoTitle?_.cd(this.data.nextVideoLabel)+":":LnE:""}},
buttonAriaLabel:{configurable:!0,enumerable:!0,get:function(){return this.collapsed?this.expandLabel:this.collapseLabel}},
mixLongByLine:{configurable:!0,enumerable:!0,get:function(){var a;if(((a=this.data)==null?0:a.playlistId)&&this.data.playlistId.startsWith("RD")&&this.data.playlistId!=="RDPN"&&!_.K("web_mix_long_byline_from_data"))return _.Mo(l$I);var z;return(z=this.data)==null?void 0:z.longBylineText}},
playlistLoopStateEntityKey:{configurable:!0,enumerable:!0,get:function(){var a,z,I,J=(a=this.data)==null?void 0:(z=a.playlistButtons)==null?void 0:(I=z.menuRenderer)==null?void 0:I.topLevelButtons;if(J)for(a=_.C(J),z=a.next();!z.done;z=a.next())if(z=z.value,z.playlistLoopButtonRenderer)return z.playlistLoopButtonRenderer.playlistLoopStateEntityKey}},
showNextVideoHeader:{configurable:!0,enumerable:!0,get:function(){var a;return!!(this.collapsed&&((a=this.data)==null?0:a.nextVideoLabel))}},
isFullBleedPlayer:{configurable:!0,enumerable:!0,get:function(){return _.K("web_watch_imax_theater_mode")?this.isTheaterMode||this.isFullscreen:!1}}});
NG.prototype.colorPaletteChanged=NG.prototype.colorPaletteChanged;NG.prototype.onPlaylistLockupNowPlaying=NG.prototype.onPlaylistLockupNowPlaying;NG.prototype.updateNowPlayingOverlay=NG.prototype.updateNowPlayingOverlay;NG.prototype.onFullscreenChanged=NG.prototype.onFullscreenChanged;NG.prototype.onFullBleedPlayerChanged=NG.prototype.onFullBleedPlayerChanged;NG.prototype.dataChanged=NG.prototype.dataChanged;NG.prototype.hiddenChanged=NG.prototype.hiddenChanged;NG.prototype.collapseChanged=NG.prototype.collapseChanged;
NG.prototype.onRenderStamperFinished=NG.prototype.onRenderStamperFinished;NG.prototype.onMouseLeave=NG.prototype.onMouseLeave;NG.prototype.onMouseEnter=NG.prototype.onMouseEnter;_.L([_.Q(_.Ts),_.p("design:type",Object)],NG.prototype,"ironResizableBehavior",void 0);_.L([_.Q(_.k.YtRendererBehavior),_.p("design:type",Object)],NG.prototype,"ytRendererBehavior",void 0);_.L([_.Q(_.u4.YtRendererstamperBehavior),_.p("design:type",Object)],NG.prototype,"ytRendererstamperBehavior",void 0);
_.L([_.Q(AsI.YtPlaylistPanelBehavior),_.p("design:type",Object)],NG.prototype,"ytPlaylistPanelBehavior",void 0);_.L([_.Q(_.Zs.YtTaskEmitterBehavior),_.p("design:type",Object)],NG.prototype,"ytTaskEmitterBehavior",void 0);_.L([_.Q(_.FCE),_.p("design:type",Object)],NG.prototype,"ytReorderableBehavior",void 0);_.L([_.Q(_.Ms.YtComponentBehavior),_.p("design:type",Object)],NG.prototype,"ytComponentBehavior",void 0);_.L([_.Q(_.pV),_.p("design:type",Object)],NG.prototype,"ytdReduxBehavior",void 0);
_.L([_.Q(_.Hc.YtActionHandlerBehavior),_.p("design:type",Object)],NG.prototype,"actionHandlerBehavior",void 0);_.L([_.x(),_.p("design:type",Object)],NG.prototype,"data",void 0);_.L([_.x(),_.p("design:type",Object)],NG.prototype,"autoplayData",void 0);_.L([_.x({reflectToAttribute:!0}),_.p("design:type",Boolean)],NG.prototype,"withinMiniplayer",void 0);_.L([_.x({reflectToAttribute:!0}),_.p("design:type",Object)],NG.prototype,"minimizePipBreakages",void 0);
_.L([_.x({reflectToAttribute:!0}),_.p("design:type",Object)],NG.prototype,"updatedCoursePanel",void 0);_.L([_.x({computed:"setMenuData_(data)"}),_.p("design:type",Object)],NG.prototype,"menuRendererData",void 0);_.L([_.x({computed:"computeOverflowMenuData(data)"}),_.p("design:type",Object)],NG.prototype,"overflowMenuDataTopRow",void 0);_.L([_.x({computed:"computeOverflowMenuData(data)"}),_.p("design:type",Object)],NG.prototype,"overflowMenuData",void 0);
_.L([_.x({reflectToAttribute:!0}),_.p("design:type",Object)],NG.prototype,"hideHeaderText",void 0);_.L([_.x({reflectToAttribute:!0}),_.p("design:type",Object)],NG.prototype,"useColorPalette",void 0);_.L([_.x({reflectToAttribute:!0,computed:"computeCollapsible(hideHeaderText)"}),_.p("design:type",Boolean)],NG.prototype,"collapsible",void 0);_.L([_.x({reflectToAttribute:!0}),_.p("design:type",Object)],NG.prototype,"collapsed",void 0);
_.L([_.x({reflectToAttribute:!0}),_.p("design:type",Boolean)],NG.prototype,"hidden",void 0);_.L([_.x({reflectToAttribute:!0,computed:"computeHasPlaylistButtons(data)"}),_.p("design:type",Boolean)],NG.prototype,"hasPlaylistButtons",void 0);_.L([_.x({reflectToAttribute:!0,computed:"computeHasSeparateSaveButton(data)"}),_.p("design:type",Boolean)],NG.prototype,"hasSeparateSaveButton",void 0);
_.L([_.x({reflectToAttribute:!0,computed:"computeHasToolbarButton(data, menuRendererData)"}),_.p("design:type",Boolean)],NG.prototype,"hasToolbar",void 0);_.L([_.x({reflectToAttribute:!0,computed:"computePlaylistType(data)"}),_.p("design:type",String)],NG.prototype,"playlistType",void 0);_.L([_.x(),_.p("design:type",Object)],NG.prototype,"isHovered",void 0);_.L([_.x({selectorArgs:["playlistLoopStateEntityKey"],selector:_.U7d}),_.p("design:type",Object)],NG.prototype,"playlistLoopStateEntity",void 0);
_.L([_.x({reflectToAttribute:!0}),_.p("design:type",Object)],NG.prototype,"modernPanels",void 0);_.L([_.x({value:56}),_.p("design:type",Number)],NG.prototype,"scrollMargin",void 0);_.L([_.x({computed:"computeCanReorder(data)"}),_.p("design:type",Boolean)],NG.prototype,"canReorder",void 0);_.L([_.x(),_.p("design:type",Object)],NG.prototype,"expandLabel",void 0);_.L([_.x(),_.p("design:type",Object)],NG.prototype,"collapseLabel",void 0);
_.L([_.x({reflectToAttribute:!0}),_.p("design:type",Object)],NG.prototype,"isFloating",void 0);_.L([_.x({reflectToAttribute:!0}),_.p("design:type",Object)],NG.prototype,"metaPanel",void 0);_.L([_.x({computed:"computeTrailingIcon(data, collapsed, isFloating)"}),_.p("design:type",String)],NG.prototype,"trailingIcon",void 0);_.L([_.x({reflectToAttribute:!0,value:!1}),_.p("design:type",Boolean)],NG.prototype,"isDarkTheme",void 0);
_.L([_.x({selector:_.Tg}),_.p("design:type",Boolean)],NG.prototype,"miniplayerIsActive",void 0);_.L([_.x({selector:function(a){return a.watch.playerState}}),
_.p("design:type",Number)],NG.prototype,"playerState",void 0);_.L([_.x({selector:_.d4}),_.p("design:type",Boolean)],NG.prototype,"isFullscreen",void 0);_.L([_.x({selector:_.Td}),_.p("design:type",Boolean)],NG.prototype,"isTheaterMode",void 0);_.L([_.x(),_.p("design:type",Object)],NG.prototype,"activeNowPlayingRenderer",void 0);_.L([_.x({reflectToAttribute:!0}),_.S("data"),_.p("design:type",Boolean),_.p("design:paramtypes",[])],NG.prototype,"moveThreeDotMenuToTopRow",null);
_.L([_.S("data","autoplayData","playlistLoopStateEntity"),_.p("design:type",Object),_.p("design:paramtypes",[])],NG.prototype,"nextVideoTitle",null);_.L([_.S("data","nextVideoTitle"),_.p("design:type",String),_.p("design:paramtypes",[])],NG.prototype,"nextVideoLabel",null);_.L([_.S("collapsed"),_.p("design:type",String),_.p("design:paramtypes",[])],NG.prototype,"buttonAriaLabel",null);
_.L([_.S("data","playlistId","longBylineText"),_.p("design:type",Object),_.p("design:paramtypes",[])],NG.prototype,"mixLongByLine",null);_.L([_.S("data"),_.p("design:type",Object),_.p("design:paramtypes",[])],NG.prototype,"playlistLoopStateEntityKey",null);_.L([_.gz("mouseenter"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],NG.prototype,"onMouseEnter",null);
_.L([_.gz("mouseleave"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],NG.prototype,"onMouseLeave",null);_.L([_.x({reflectToAttribute:!0}),_.S("data","collapsed"),_.p("design:type",Boolean),_.p("design:paramtypes",[])],NG.prototype,"showNextVideoHeader",null);_.L([_.gz("yt-rendererstamper-finished"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],NG.prototype,"onRenderStamperFinished",null);
_.L([_.O8("collapsed"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],NG.prototype,"collapseChanged",null);_.L([_.O8("hidden"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],NG.prototype,"hiddenChanged",null);_.L([_.O8("data"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],NG.prototype,"dataChanged",null);
_.L([_.S("isTheaterMode","isFullscreen"),_.p("design:type",Boolean),_.p("design:paramtypes",[])],NG.prototype,"isFullBleedPlayer",null);_.L([_.O8("isTheaterMode","isFullscreen"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],NG.prototype,"onFullBleedPlayerChanged",null);_.L([_.O8("isFullscreen"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],NG.prototype,"onFullscreenChanged",null);
_.L([_.O8("playerState","miniplayerIsActive"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],NG.prototype,"updateNowPlayingOverlay",null);_.L([_.gz("yt-playlist-lockup-now-playing-active"),_.p("design:type",Function),_.p("design:paramtypes",[CustomEvent,Object]),_.p("design:returntype")],NG.prototype,"onPlaylistLockupNowPlaying",null);
_.L([_.O8("data","isDarkTheme"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],NG.prototype,"colorPaletteChanged",null);_.L([_.U({is:"ytd-playlist-panel-renderer",disableElementRegistration:!0})],NG);
_.pfw=_.Cw()(NG,"ytd-playlist-panel-renderer",function(){if(ofX===void 0){var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-playlist-panel-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="container" data-collapsed="[[collapsed]]" class="style-scope ytd-playlist-panel-renderer"><div class="header style-scope ytd-playlist-panel-renderer" on-tap="onToggleExpanded"><div id="header-contents" class="style-scope ytd-playlist-panel-renderer"><div id="header-top-row" class="style-scope ytd-playlist-panel-renderer"><div id="header-description" class="style-scope ytd-playlist-panel-renderer"><h3 hidden="[[showNextVideoHeader]]" class="style-scope ytd-playlist-panel-renderer"><yt-formatted-string class="title style-scope ytd-playlist-panel-renderer" ellipsis-truncate="" link-inherit-color="" text="[[data.titleText]]"></yt-formatted-string></h3><h3 id="next-video-title" hidden="[[!showNextVideoHeader]]" class="style-scope ytd-playlist-panel-renderer"><span id="next-label" class="style-scope ytd-playlist-panel-renderer">[[nextVideoLabel]]</span><yt-formatted-string ellipsis-truncate="" text="[[nextVideoTitle]]" class="style-scope ytd-playlist-panel-renderer"></yt-formatted-string></h3><div id="publisher-container" class="style-scope ytd-playlist-panel-renderer"><yt-formatted-string class="byline-title style-scope ytd-playlist-panel-renderer" ellipsis-truncate="" hidden="[[!showNextVideoHeader]]" text="[[data.titleText]]"></yt-formatted-string><ytd-badge-supported-renderer badges="[[data.badges]]" hidden="[[!data.badges]]" class="style-scope ytd-playlist-panel-renderer"></ytd-badge-supported-renderer><yt-formatted-string class="publisher style-scope ytd-playlist-panel-renderer" ellipsis-truncate="" link-inherit-color="" text="[[mixLongByLine]]"></yt-formatted-string><div class="index-message-wrapper style-scope ytd-playlist-panel-renderer" hidden="[[data.isInfinite]]"><span class="index-message style-scope ytd-playlist-panel-renderer" hidden="[[data.videoCountText]]">[[computeIndexMessage(data.currentIndex,\n                data.totalVideos)]]</span><yt-formatted-string class="index-message style-scope ytd-playlist-panel-renderer" hidden="[[!data.videoCountText]]" respecthtmldir="" text="[[data.videoCountText]]"></yt-formatted-string></div></div></div><div id="end-actions-in-header" class="style-scope ytd-playlist-panel-renderer"><div id="overflow-menu-top-row" class="style-scope ytd-playlist-panel-renderer"></div></div><div id="top-row-buttons" class="style-scope ytd-playlist-panel-renderer"></div><yt-icon-button id="trailing-button" label="[[buttonAriaLabel]]" pressed="[[!collapsed]]" toggleable="" class="style-scope ytd-playlist-panel-renderer"><yt-icon id="trailing-icon" icon="[[trailingIcon]]" class="style-scope ytd-playlist-panel-renderer"></yt-icon></yt-icon-button></div><div id="playlist-actions" class="style-scope ytd-playlist-panel-renderer"><div id="start-actions" class="style-scope ytd-playlist-panel-renderer"><div id="playlist-action-menu" class="style-scope ytd-playlist-panel-renderer"></div><div id="save-button" class="style-scope ytd-playlist-panel-renderer"></div></div><div id="end-actions" class="style-scope ytd-playlist-panel-renderer"><div id="overflow-menu" class="style-scope ytd-playlist-panel-renderer"></div></div></div></div></div><div id="content-header" hidden="[[!data.contentHeader]]" class="style-scope ytd-playlist-panel-renderer"></div><div id="items" class="playlist-items style-scope ytd-playlist-panel-renderer" on-scroll="onScroll"></div></div>');a.content.insertBefore(_.w().content.cloneNode(!0),
a.content.firstChild);ofX=a}a=ofX;return a},{mode:2,
allowedProps:"autoplayData collapsed data hidden useColorPalette hideHeaderText withinMiniplayer metaPanel".split(" ")});var wfG;var tF=function(){var a=_.G.apply(this,arguments)||this;a.modern=_.K("web_button_rework");return a};
_.b(tF,_.G);tF.prototype.computeShouldButtonBeVertical=function(a,z){return a||z};
tF.prototype.onYtServiceRequestSent=function(a,z){(a=_.H(z.endpoint,_.Rd))&&(this.likeStatusEntityKey?this.ytdReduxBehavior.dispatch(_.Q0("likeStatusEntity",this.likeStatusEntityKey,{key:this.likeStatusEntityKey,likeStatus:a.status})):this.handleLikeEndpoint(a))};
tF.prototype.computelikeStatusEntityKey=function(a){return a==null?void 0:a.likeStatusEntityKey};
tF.prototype.handleLikeEndpoint=function(a){a.status==="LIKE"?this.JSC$16953_ytdDislikeToggleButtonRenderer.toggle(!1):a.status==="DISLIKE"?this.JSC$16953_ytdLikeToggleButtonRenderer.toggle(!1):(this.JSC$16953_ytdLikeToggleButtonRenderer.toggle(!1),this.JSC$16953_ytdDislikeToggleButtonRenderer.toggle(!1))};
_.eH.Object.defineProperties(tF.prototype,{likeButton:{configurable:!0,enumerable:!0,get:function(){var a;return O2G(this.data,!0,this.useShortsIcon?"SHORTS_LIKE":"LIKE",(a=this.likeStatusEntity)==null?void 0:a.likeStatus)}},
dislikeButton:{configurable:!0,enumerable:!0,get:function(){var a;if(this.data&&((a=this.data)==null||!a.hideDislikeButton)){var z;return O2G(this.data,!1,this.useShortsIcon?"SHORTS_DISLIKE":"DISLIKE",(z=this.likeStatusEntity)==null?void 0:z.likeStatus)}}}});
tF.prototype.onYtServiceRequestSent=tF.prototype.onYtServiceRequestSent;_.L([_.Q(_.k.YtRendererBehavior),_.p("design:type",Object)],tF.prototype,"ytRendererBehavior",void 0);_.L([_.Q(_.pV),_.p("design:type",Object)],tF.prototype,"ytdReduxBehavior",void 0);_.L([_.x(),_.p("design:type",Object)],tF.prototype,"data",void 0);_.L([_.x({reflectToAttribute:!0}),_.p("design:type",Boolean)],tF.prototype,"vertical",void 0);
_.L([_.x({reflectToAttribute:!0}),_.p("design:type",String)],tF.prototype,"textTransform",void 0);_.L([_.x({reflectToAttribute:!0}),_.p("design:type",Boolean)],tF.prototype,"useShortsIcon",void 0);_.L([_.x({reflectToAttribute:!0}),_.p("design:type",Boolean)],tF.prototype,"underIconLabel",void 0);_.L([_.x({reflectToAttribute:!0}),_.p("design:type",Object)],tF.prototype,"modern",void 0);_.L([_.x({value:"left"}),_.p("design:type",String)],tF.prototype,"buttonTooltipPosition",void 0);
_.L([_.x(),_.p("design:type",Object)],tF.prototype,"overrides",void 0);_.L([_.A3("#like-button"),_.p("design:type",Object)],tF.prototype,"JSC$16953_ytdLikeToggleButtonRenderer",void 0);_.L([_.A3("#dislike-button"),_.p("design:type",Object)],tF.prototype,"JSC$16953_ytdDislikeToggleButtonRenderer",void 0);_.L([_.S("data","likeStatusEntity.likeStatus","useShortsIcon"),_.p("design:type",Object),_.p("design:paramtypes",[])],tF.prototype,"likeButton",null);
_.L([_.S("data","likeStatusEntity.likeStatus","useShortsIcon"),_.p("design:type",Object),_.p("design:paramtypes",[])],tF.prototype,"dislikeButton",null);_.L([_.x({computed:"computelikeStatusEntityKey(data)"}),_.p("design:type",String)],tF.prototype,"likeStatusEntityKey",void 0);_.L([_.x({selectorArgs:["likeStatusEntityKey"],selector:UW}),_.p("design:type",Object)],tF.prototype,"likeStatusEntity",void 0);
_.L([_.gz("yt-service-request-sent"),_.p("design:type",Function),_.p("design:paramtypes",[CustomEvent,_.lJ]),_.p("design:returntype")],tF.prototype,"onYtServiceRequestSent",null);_.L([_.U({disableElementRegistration:!0,is:"ytd-like-button-renderer"})],tF);
var muw=_.Cw()(tF,"ytd-like-button-renderer",function(){if(wfG===void 0){var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-like-button-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<ytd-toggle-button-renderer id="like-button" button-tooltip-position="[[buttonTooltipPosition]]" data="[[likeButton]]" is-shorts="" overrides="[[overrides]]" vertically-aligned$="[[computeShouldButtonBeVertical(vertical, underIconLabel)]]" class="style-scope ytd-like-button-renderer">\n</ytd-toggle-button-renderer>\n<template is="dom-if" if="[[dislikeButton]]" class="style-scope ytd-like-button-renderer">\n    <ytd-toggle-button-renderer id="dislike-button" button-tooltip-position="[[buttonTooltipPosition]]" data="[[dislikeButton]]" is-shorts="" overrides="[[overrides]]" vertically-aligned$="[[computeShouldButtonBeVertical(vertical, underIconLabel)]]" class="style-scope ytd-like-button-renderer">\n    </ytd-toggle-button-renderer>\n</template>\n');a.content.insertBefore(_.w().content.cloneNode(!0),
a.content.firstChild);wfG=a}a=wfG;return a},{mode:1});_.ywX={};
_.ywX.YtConditionalRendererBehavior=[_.k.YtRendererBehavior,{_noAccessors:!0,properties:{hidden:{type:Boolean,reflectToAttribute:!0},showSpinner:{type:Boolean,reflectToAttribute:!0}},observers:["updateProperties_(data, isAttached)"],updateProperties_:function(a,z){var I=this,J,r;return _.t(function(P){switch(P.nextAddress){case 1:if(!z)return I.hidden=!0,I.showSpinner=!1,P.return();if((J=a)==null?0:(r=J.visibilityCondition)==null?0:r.mode)switch(a.visibilityCondition.mode){case "VISIBILITY_CONDITION_MODE_DISPLAY_SPINNER":return P.jumpTo(5);default:return P.jumpTo(6)}I.showSpinner=
!1;I.hidden=!0;return P.yield(I.shouldShow_(a),4);case 4:I.hidden=!P.yieldResult;P.jumpTo(0);break;case 5:return P.yield(I.shouldShow_(a),8);case 8:I.showSpinner=P.yieldResult;I.hidden=!1;P.jumpTo(0);break;case 6:return I.showSpinner=!1,P.yield(I.shouldShow_(a),9);case 9:I.hidden=!P.yieldResult,_.nu(P)}})},
shouldShow_:function(a){return a&&a.supportedDatas&&a.supportedDatas.rendererVisibilityConditionData&&a.supportedDatas.rendererVisibilityConditionData.showIf?this.isVisibilityConditionSatisfied_(a.supportedDatas.rendererVisibilityConditionData.showIf):a&&a.visibilityCondition&&a.visibilityCondition.showIf?this.isVisibilityConditionSatisfied_(a.visibilityCondition.showIf):a&&a.visibilityConditionType?this.isLegacyVisibilityConditionSatisfied_(a.visibilityConditionType):Promise.resolve(!0)},
isVisibilityConditionSatisfied_:function(a){switch(a){case "VISIBILITY_CONDITION_TYPE_MDX_CONNECTED":return Promise.resolve(this.isMdxConnected_());case "VISIBILITY_CONDITION_TYPE_MDX_DISCONNECTED":return Promise.resolve(!this.isMdxConnected_());case "VISIBILITY_CONDITION_TYPE_LOCATION_PERMISSION_GRANTED":return this.isLocationPermissionGranted_();default:return Promise.resolve(!1)}},
isLegacyVisibilityConditionSatisfied_:function(a){switch(a){case "MDX_CONNECTED":return Promise.resolve(this.isMdxConnected_());default:return Promise.resolve(!1)}},
isMdxConnected_:function(){var a=_.ZF(this.hostElement,"yt-get-mdx-status");return a.length==1&&a[0].connected},
isLocationPermissionGranted_:function(){var a;return _.t(function(z){return z.nextAddress==1?navigator.permissions?z.yield(navigator.permissions.query({name:"geolocation"}),3):z.jumpTo(2):z.nextAddress!=2?(a=z.yieldResult,z.return(Promise.resolve(a.state==="granted"))):z.return(Promise.resolve(!1))})}}];var kRX=function(a,z){z=z===void 0?{}:z;var I=function(J){var r=document.createElement(a),P;var N=(P=r.polymerController)!=null?P:r;eyx(r,N,J,z);return r};
I.debugName=a+" (CoW wrapped)";return I}("yt-icon",{callbackProps:["onKeydown"]}),MCJ=_.K("kevlar_use_wil_icons")?_.ec(function(a){var z=a.icon;
var I=a.active;var J=a.className;var r=a.style;var P=a.dataSelected;var N=a.dataDisabled;var u=a.role;var E=a.themeOverride;var O=a.animateIcon;var f=a.ariaHidden;var A=a.ariaExpanded;var n=a.ariaLabel;var F=a.tabindex;var h=a.id;var v=a.iconFilter;var d=a.onKeydown;var W=function(){var m=z==null?void 0:z(),M=null,y=void 0;m&&(m=cdw(m),m=iFM(m),m.length&&(M=m[1],y=m[0]));return{iconName:M,iconSetName:y}},l=function(){return Yqi(W().iconName,I==null?void 0:I(),void 0,void 0,W().iconSetName,_.ab().resolve(_.gd))},
q=function(){return{iconWidth:"100%",
iconHeight:"100%",iconFilter:v==null?void 0:v()}};
return _.B(_.g,{cond:O,then:function(){return _.B(kRX,{icon:z,active:I,className:J,style:r,dataSelected:P,dataDisabled:N,role:u,themeOverride:E,ariaHidden:f,ariaExpanded:A,ariaLabel:n,tabindex:F,id:h,iconFilter:v,onKeydown:d})},
else:function(){return _.B(_.g,{cond:l,then:function(m){return _.B("span",{class:_.B8("ytIconWrapperHost",J),role:u,"aria-label":n,"aria-hidden":f,tabindex:function(){return isNaN(Number(F==null?void 0:F()))?void 0:Number(F==null?void 0:F())},
id:h,style:r,"on:keydown":_.g4(function(M){return void(d==null?void 0:d(M))})},_.B(MUO,{data:m,
options:q}))}})}})},"Ce"):kRX;var cwe=function(a){var z=this;this.eventJobIds={};this.scrollEventsToIgnore=0;this.stopIgnoringScrollTimeoutIds=[];mpx();_.qe("ytglobal.ytUtilActivityCallback_",function(){_.Ct(a,"yt-user-activity")});
new aO(function(){return z.JSC$16969_onMouseMove});
document.addEventListener("scroll",function(){return z.onScroll});
window.addEventListener("resize",function(){return z.onResize})},Y7E=function(a,z,I){z in a.eventJobIds||(I=_.ig().addLowPriorityJob(function(){_.zx();
delete a.eventJobIds[z]},I),a.eventJobIds[z]=I)};
cwe.prototype.onScroll=function(a){this.scrollEventsToIgnore>0?(this.scrollEventsToIgnore--,clearTimeout(this.stopIgnoringScrollTimeoutIds.pop())):a.target===document&&Y7E(this,"scroll",200)};
cwe.prototype.onResize=function(){Y7E(this,"resize",200)};
cwe.prototype.JSC$16969_onMouseMove=function(){Y7E(this,"mousemove",100)};
_.Cd=function(a){a.scrollEventsToIgnore+=1;a.stopIgnoringScrollTimeoutIds.push(setTimeout(function(){a.scrollEventsToIgnore--},500))};var q7J=function(a){this.element=a;this.productData={};this.chatSupportLoaded=!1;document.body.addEventListener("yt-page-data-updated",this.resetProductData)};
q7J.prototype.showFeedbackDialog=function(a,z,I,J){var r=emX();if(!r)return!1;var P=Qux();P.productId=r;z&&(P.flow="submit",P.report={description:z});I&&(emX()==="59"?P.callback=_.Ue(function(){_.x0("userFeedbackEvent",{});I()}):P.callback=_.Ue(I));
P.bucket=J||_.Xw("GOOGLE_FEEDBACK_BUCKET","Other");aqG(P);a=jnf(this,"GFEEDBACK",a);try{_.sci(P,a)}catch(N){return _.oL(N),!1}return!0};
q7J.prototype.showHelpDialog=function(a,z,I){var J=this,r=emX();if(!r)return!1;var P={helpCenterPath:"/youtube",productData:jnf(this,"GUIDED_HELP",I)};aqG(P);var N=Qux();N.context=a||P.productData.context||"default";N.defaultHelpArticleId=z;N.enableSendFeedback=!0;(_.DH("gapi.load")||function(u,E){return E()})("client",function(){try{var u=YSJ(r,P);
if(_.K("web_always_load_chat_support")&&!J.chatSupportLoaded)try{u.JSC$9933_loadChatSupport(N),J.chatSupportLoaded=!0}catch(E){}u.startHelp(N)}catch(E){_.oL(E)}})};
var emX=function(){var a=_.Xw("GOOGLE_FEEDBACK_PRODUCT_ID");a||_.oL(Error("di"));return a},aqG=function(a){a&&(a.locale=_.K("kevlar_help_use_locale")?_.Xw("INNERTUBE_CONTEXT_HL","en"):_.Xw("HTML_LANG","en"))},jnf=function(a,z,I){var J=a.productData;
delete J.origin;J.device=_.fG();var r;a:{if(r=document.createElement("canvas")){var P=r.getContext("experimental-webgl",{stencil:!0});if(P){var N=P.getExtension("WEBGL_debug_renderer_info");if(N){r=P.getParameter(N.UNMASKED_RENDERER_WEBGL);break a}}if(P=r.getContext("webgl")){r=P.getParameter(P.RENDERER);break a}}r=null}J.gpu=r;J.isSDC=!!_.Xw("INNERTUBE_CONTEXT_SERIALIZED_DELEGATION_CONTEXT");(r=_.Xw("GOOGLE_FEEDBACK_PRODUCT_DATA"))&&_.x8.extend(J,r);_.h8I(z,J);_.VV0(J);(a=_.Ct(a.element,"yt-get-autonav-pause-debug-state"))&&
a.length&&(J.autonav_pause_state=a[0]);a=_.Az();J.browser_resolution=a.width+"\u00d7"+a.height+"@"+(window.devicePixelRatio||1)+"x";I&&_.x8.extend(J,I);return J};
q7J.prototype.resetProductData=function(){this.productData={}};var zDe=function(a){this.feedbackManager=new q7J(a)};
zDe.prototype.showFeedbackDialog=function(a,z,I,J){return this.feedbackManager.showFeedbackDialog(a,z,I,J)};
zDe.prototype.showHelpDialog=function(a,z,I){return this.feedbackManager.showHelpDialog(a,z,I)};var Iqi=function(){this.baseUrl="";this.aTag=document.createElement("a")},h4i=function(a,z,I){I=I===void 0?{}:I;
I.pbj||(I.pbj=1);I=_.xh3(z,I);a.baseUrl&&I&&!_.kS(I)[1]&&!_.MY(I)&&(z=a.baseUrl,Zi(z,"/")&&(z=z.slice(0,-1)),_.Pp(I,"/")&&(I=I.slice(1)),I=z+"/"+I);_.Ua(a.aTag,_.GN(I||""));return a.aTag.href};
Iqi.prototype.fetchData=function(a){return _.suE(a)};
Iqi.prototype.postData=function(a,z){var I={method:"POST"};if(z){for(var J=_.C(Object.keys(z)),r=J.next();!r.done;r=J.next()){r=r.value;var P=z[r];_.md(P)&&(z[r]=JSON.stringify(P))}I.postParams=z}return _.suE(a,I)};
_.VAX=function(a,z,I,J,r){a=h4i(a,z,I);if(!a)throw J=Error("ei"),Object.assign(J,{params:z}),J;return _.suE(a,r,J)};
Iqi.prototype.requestDataForServiceEndpoint=function(a,z){if(_.H(a,_.QId))return this.fetchData("/getAccountSwitcherEndpoint");z=z||{};var I=_.H(a,yVl);I?z.se=I.base64EncodedServiceEndpoint:z.sej=JSON.stringify(a);(I=_.TX())&&_.K("enable_service_ajax_csn")&&(z.csn=I);z.theme=_.xh();_.H(a,hNG)&&_.Xw("DELEGATION_CONTEXT")&&(z.delegation_context=JSON.stringify(_.Xw("DELEGATION_CONTEXT")));I=null;for(var J in a)if(Zi(J,"Endpoint")||Zi(J,"Command")){I=J;break}if(!I){var r=Error("fi");Object.assign(r,{params:a});
_.QKG(r,"WARNING");return new _.Ba(function(N,u){u(r)})}J={name:I};
var P;(I=(P=_.H(a,_.ge))==null?void 0:P.signal)&&(J.signal=I);(P=_.wq(window.location.href))&&P.internalcountrycode&&(J.internalcountrycode=P.internalcountrycode);P="/service_ajax";_.K("debug_forward_web_query_parameters")&&(P=_.lFx(P,window.location.search));P=_.yO(P,J);a.clickTrackingParams&&_.el(P,{itct:a.clickTrackingParams});return this.postData(P,z)};_.Jhf=new _.I4("GFEEDBACK_TOKEN");var rhv;var P2l;var ZzE;var C2j;var uD=function(){var a=_.G.apply(this,arguments)||this;a.compact=!1;return a};
_.b(uD,_.G);uD.prototype.configureRendererStamper=function(){return{"data.proceedButton":{id:"button",mapping:{buttonRenderer:"yt-button-renderer"}},"data.dismissButton":{id:"dismiss-button",mapping:{buttonRenderer:"yt-button-renderer"}}}};
uD.prototype.computeHasIcon_=function(a){return!!a};
uD.prototype.isSignInIcon_=function(a){return a=="yt-icons:prompted_sign_in"};
_.L([_.Q(_.u4.YtRendererstamperBehavior),_.p("design:type",Object)],uD.prototype,"ytRendererstamperBehavior",void 0);_.L([_.Q(_.k.YtRendererBehavior),_.p("design:type",Object)],uD.prototype,"ytRendererBehavior",void 0);_.L([_.Q(_.ywX.YtConditionalRendererBehavior),_.p("design:type",Object)],uD.prototype,"ytConditionalRendererBehavior",void 0);_.L([_.x(),_.p("design:type",Object)],uD.prototype,"data",void 0);
_.L([_.x({computed:"computeIcon_(data.icon)"}),_.p("design:type",Object)],uD.prototype,"icon_",void 0);_.L([_.x({reflectToAttribute:!0,computed:"computeHasIcon_(icon_)"}),_.p("design:type",Boolean)],uD.prototype,"hasIcon_",void 0);_.L([_.x({reflectToAttribute:!0,computed:"isSignInIcon_(icon_)"}),_.p("design:type",Boolean)],uD.prototype,"signInIcon_",void 0);_.L([_.x({reflectToAttribute:!0}),_.p("design:type",Object)],uD.prototype,"compact",void 0);
_.L([_.dz({is:"yt-player-error-message-renderer",disableElementRegistration:!0})],uD);
_.D(uD,"yt-player-error-message-renderer",function(){if(C2j===void 0){var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-player-error-message-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.player.yt_player_error_message_renderer.yt.player.error.message.renderer.css.js--\x3e<div id="player-error-message-container" hidden="[[showSpinner]]" class="style-scope yt-player-error-message-renderer">\n  <yt-icon id="icon" hidden="[[!icon_]]" icon="[[icon_]]" class="style-scope yt-player-error-message-renderer"></yt-icon>\n  <div id="info" class="style-scope yt-player-error-message-renderer">\n    <div id="reason" class="style-scope yt-player-error-message-renderer">[[getSimpleString(data.reason)]]</div>\n    <yt-formatted-string id="subreason" is-overlay="" text="[[data.subreason]]" class="style-scope yt-player-error-message-renderer"></yt-formatted-string>\n    <yt-formatted-string id="more" is-overlay="" text="[[data.learnMore]]" class="style-scope yt-player-error-message-renderer"></yt-formatted-string>\n    <div id="buttons" class="style-scope yt-player-error-message-renderer">\n      <div id="dismiss-button" class="style-scope yt-player-error-message-renderer"></div>\n      <div id="button" class="style-scope yt-player-error-message-renderer"></div>\n    </div>\n  </div>\n</div>\n<div id="spinner" hidden="[[!showSpinner]]" class="style-scope yt-player-error-message-renderer">\n  <tp-yt-paper-spinner-lite active="" class="style-scope yt-player-error-message-renderer"></tp-yt-paper-spinner-lite>\n</div>\n');a.content.insertBefore(_.w().content.cloneNode(!0),
a.content.firstChild);var z=a.content,I=z.insertBefore;ZzE===void 0&&(ZzE=document.createElement("template"));var J=ZzE;I.call(z,J.content.cloneNode(!0),a.content.firstChild);C2j=a}a=C2j;return a},{mode:2});var Nwi;var tmv;var Ev=function(){return _.G.apply(this,arguments)||this};
_.b(Ev,_.G);Ev.prototype.configureRendererStamper=function(){return{"data.proceedButton":{id:"button",mapping:{buttonRenderer:"yt-button-renderer"}}}};
Ev.prototype.computeIcon_=function(a){return a?"yt-icons:"+a.iconType.toLowerCase():"error_outline"};
_.L([_.Q(_.u4.YtRendererstamperBehavior),_.p("design:type",Object)],Ev.prototype,"ytRendererstamperBehavior",void 0);_.L([_.Q(_.k.YtRendererBehavior),_.p("design:type",Object)],Ev.prototype,"ytRendererBehavior",void 0);_.L([_.x(),_.p("design:type",Object)],Ev.prototype,"data",void 0);_.L([_.x({computed:"computeIcon_(data.icon)"}),_.p("design:type",Object)],Ev.prototype,"icon_",void 0);_.L([_.dz({is:"yt-player-kav-renderer",disableElementRegistration:!0})],Ev);
_.D(Ev,"yt-player-kav-renderer",function(){if(tmv===void 0){var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-player-kav-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.player.yt_player_kav_renderer.yt.player.kav.renderer.css.js--\x3e<yt-icon icon="[[icon_]]" class="style-scope yt-player-kav-renderer"></yt-icon>\n<div id="info" class="style-scope yt-player-kav-renderer">\n  <div class="reason style-scope yt-player-kav-renderer">[[getSimpleString(data.reason)]]</div>\n  <div class="subreason style-scope yt-player-kav-renderer">[[getSimpleString(data.subreason)]]</div>\n  <yt-formatted-string class="more style-scope yt-player-kav-renderer" text="[[data.learnMore]]"></yt-formatted-string>\n  <div id="button" class="style-scope yt-player-kav-renderer"></div>\n</div>\n');
a.content.insertBefore(_.w().content.cloneNode(!0),a.content.firstChild);var z=a.content,I=z.insertBefore;Nwi===void 0&&(Nwi=document.createElement("template"));var J=Nwi;I.call(z,J.content.cloneNode(!0),a.content.firstChild);tmv=a}a=tmv;return a},{mode:2});var xq1=_.kK(["https://www.google.com/recaptcha/api.js?trustedtypes=true&hl=",""]);_.Jf(_.ec(function(a){var z=_.Mm("div"),I=_.C(_.CW(0,void 0,"yt0wE")),J=I.next().value,r=I.next().value;I=_.C(_.CW(null,void 0,"CnFp5"));var P=I.next().value,N=I.next().value;_.QO(function(){vzG(z.value,r,N);z.value.scrollIntoView()});
I=GE7.bind(null,a.data,J);aG("resize",function(){var u=P();if(J()===1&&u!==null){var E;(E=window.grecaptcha)==null||E.reset(u)}});
return _.B("yt-player-captcha-view-model",{class:"ytwPlayerCaptchaViewModelHost"},_.B("div",{class:"ytwPlayerCaptchaViewModelGridContainer"},_.B("span",{class:"ytwPlayerCaptchaViewModelScreenReaderOnly"},function(){var u,E;return(u=a.data().accessibility)==null?void 0:(E=u.accessibilityData)==null?void 0:E.label}),_.B(_.xs,{text:I,
className:_.B8("ytwPlayerCaptchaViewModelUserMessage","ytwPlayerCaptchaViewModelGridItem"),isOverlay:!0}),_.B("div",{el:z,class:"ytwPlayerCaptchaViewModelGridItem"})))},"De"),"yt-player-captcha-view-model",{props:{data:_.I5}});var $qM=!1;_.u5l=_.ec(function(a){var z=a.data;return _.B("yt-interstitial-view-model",{class:"interstitial-view-model-wiz"},_.B(_.g,{cond:function(){return z().icon},
then:function(I){return _.B("div",{class:"interstitial-view-model-wiz__interstitial-icon interstitial-view-model-wiz__flex-item"},_.B(_.qp,{data:I,alt:"",className:"interstitial-view-model-wiz__icon-image",preserveWidth:!0}))}}),_.B(_.g,{cond:function(){return z().title},
then:function(I){return _.B("div",{class:"interstitial-view-model-wiz__interstitial-title interstitial-view-model-wiz__flex-item"},_.B(_.xs,{text:I}))}}),_.B(_.g,{cond:function(){return z().description},
then:function(I){return _.B("div",{class:"interstitial-view-model-wiz__interstitial-description interstitial-view-model-wiz__flex-item"},_.B(_.xs,{text:I}))}}),_.B(_.V0,{data:function(){return z().primaryButton}},{buttonViewModel:function(I){return _.B(_.At,{data:I.data,
className:"interstitial-view-model-wiz__flex-item"})}}),_.B(_.V0,{data:function(){return z().secondaryButton}},{buttonViewModel:function(I){return _.B(_.At,{data:I.data,
className:"interstitial-view-model-wiz__flex-item"})}}))},"Ee");
_.u5l.idomCompat=!0;var Ero=_.ec(function(a){var z=a.data;_.ws();return _.B("yt-player-interstitial-renderer",{class:"player-interstitial-renderer-wiz"},_.B("div",{class:"player-interstitial-renderer-wiz__scrim"},_.B(_.V0,{data:function(){return z().content}},{interstitialViewModel:_.u5l})))},"Fe");
Ero.idomCompat=!0;_.Jf(Ero,"yt-player-interstitial-renderer",{props:{data:_.zl}});var B1=function(){var a=_.G.apply(this,arguments)||this;a.noBackground=!1;a.compact=!1;a.actionMap={"yt-update-player-error-message-command":"onUpdatePlayerErrorMessageCommand_"};return a};
_.b(B1,_.G);B1.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"}}}};
B1.prototype.onUpdatePlayerErrorMessageCommand_=function(a){if(_.H(a,ZQl)){var z;if(a=(z=_.H(a,ZQl))==null?void 0:z.newPlayerErrorMessageRenderer)this.data=a}};
_.L([_.Q(_.k.YtRendererBehavior),_.p("design:type",Object)],B1.prototype,"ytRendererBehavior",void 0);_.L([_.Q(_.u4.YtRendererstamperBehavior),_.p("design:type",Object)],B1.prototype,"ytRendererstamperBehavior",void 0);_.L([_.Q(_.Hc.YtActionHandlerBehavior),_.p("design:type",Object)],B1.prototype,"ytActionHandlerBehavior",void 0);_.L([_.x(),_.p("design:type",Object)],B1.prototype,"data",void 0);_.L([_.x(),_.p("design:type",Object)],B1.prototype,"status",void 0);
_.L([_.x({reflectToAttribute:!0}),_.p("design:type",Object)],B1.prototype,"noBackground",void 0);_.L([_.x({reflectToAttribute:!0}),_.p("design:type",Object)],B1.prototype,"compact",void 0);_.L([_.dz({is:"yt-playability-error-supported-renderers",disableElementRegistration:!0})],B1);
var Bww=_.Cw()(B1,"yt-playability-error-supported-renderers",function(){if(P2l===void 0){var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-playability-error-supported-renderers--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.player.yt_playability_error_supported_renderers.yt.playability.error.supported.renderers.css.js--\x3e<div id="container" class="style-scope yt-playability-error-supported-renderers"></div>\n');a.content.insertBefore(_.w().content.cloneNode(!0),
a.content.firstChild);var z=a.content,I=z.insertBefore;rhv===void 0&&(rhv=document.createElement("template"));var J=rhv;I.call(z,J.content.cloneNode(!0),a.content.firstChild);P2l=a}a=P2l;return a},{allowedProps:["compact",
"data","noBackground","status"],mode:2});var XtM=void 0,dqG=void 0;var Uq1=new dCw;var grw=function(a){this.store=a;this.yAB=new _.UCl},BXG=function(a,z,I){var J,r;
if(!(r=((J=z.playabilityStatus)==null?void 0:J.status)!=="OK")){a=a.store;var P;r=z.offlineState&&((P=z.videoDetails)==null?0:P.videoId)?_.K("enable_pl_r_c_cd")?eoi(a.getState().entities,z.videoDetails.videoId):!!Q77(a.getState().entities,z.videoDetails.videoId):!1}if(r)return!0;r=pt7(z);if(r===1){if(_.K("ab_v_vid_sig")){var N,u=(N=z.videoDetails)==null?void 0:N.videoId;if(!u||!I||u!==I){var E;z=new _.Fn("282054944_vid",{t3L:I,ifL:(E=z.videoDetails)==null?void 0:E.videoId});_.Gx(z)}}return!0}U5p=
0;var O,f;E=(u=z.auxiliaryUi)==null?void 0:(O=u.messageRenderers)==null?void 0:(f=O.bkaEnforcementMessageViewModel)==null?void 0:f.displayType;if(r!==3&&(E==="ENFORCEMENT_MESSAGE_VIEW_MODEL_DISPLAY_TYPE_PLAYER"||E==="ENFORCEMENT_MESSAGE_VIEW_MODEL_DISPLAY_TYPE_POPUP"))return!0;E={reason:_.zg(_.AR("TRY_AGAIN_LATER",void 0,"Something went wrong. Please try again later.")),proceedButton:{buttonRenderer:_.K("ks_something_wrong_learn_more")?qEG("RELOAD_PAGE",153785):{style:"STYLE_OVERLAY",size:"SIZE_DEFAULT",
text:_.zg(_.AR("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:_.zg("282054944")};Ozo(z,{playerErrorMessageRenderer:E});return!1},gU$=function(a,z){if(z6m(z)){_.Av(1,!0);
var I=(I=z6m(z))&&_.TNE()?I:void 0;I?(Ozo(z,{enforcementMessageViewModel:I}),a.yAB.increment("IN_PLAYER"),_.Av(5)):(a.yAB.increment("SKIP_DISPLAY"),_.Av(2))}},Ozo=function(a,z){a.playabilityStatus=Object.assign({},a.playabilityStatus,{status:"ERROR",
errorScreen:z});a.videoDetails=void 0};
grw.prototype.handleResponse=function(a,z){if(a.playabilityStatus){var I,J,r,P=(z==null?void 0:(I=z.innerTubeRequest)==null?void 0:I.videoId)||(z==null?void 0:(J=z.innerTubeRequest)==null?void 0:(r=J.playerRequest)==null?void 0:r.videoId);BXG(this,a,P)&&gU$(this,a)}};
grw[zp]=[r0];var uI0=new _.I4("ADBLOCK_DETECTION_SERVICE_TOKEN");var MA=function(a){this.ylT=a};
MA.prototype.bindInnertubeChallengeFetcher=function(a){this.ylT.bicf(a)};
MA.prototype.registerChallengeFetchedCallback=function(a){this.ylT.bcr(a)};
MA.prototype.getLatestChallengeResponse=function(){return this.ylT.blc()};var fqO;fqO=_.kK(["https://static.doubleclick.net/instream/ad_status.js"]);_.Ahi=_.Jz(fqO);var F2e;_.gm=function(a,z,I){var J=this;this.network=a;this.options=z;this.networkStatusManager=I;this.wq=null;if(z.useBotguardEverywhere){var r=new _.EM;this.wq=r.promise;_.IE.ytAtRC&&_.xc(_.GW,function(){var P,N;return _.t(function(u){if(u.nextAddress==1){if(!_.IE.ytAtRC)return u.return();P=snw(null);return u.yield(J.ht(P),2)}N=u.yieldResult;_.IE.ytAtRC&&_.IE.ytAtRC(JSON.stringify(N));_.nu(u)})});
MV0().then(function(P){var N,u,E,O;return _.t(function(f){if(f.nextAddress==1)return P.bindInnertubeChallengeFetcher(function(A){return J.ht(snw(A))}),f.yield(i3p(),2);
N=f.yieldResult;u=P.getLatestChallengeResponse();E=u.challenge;if(!E)throw Error("gi");O={challenge:E,w0:ks(E),vm:N,bgChallenge:new my};r.resolve(O);P.registerChallengeFetchedCallback(function(A){A=A.challenge;if(!A)throw Error("hi");A={challenge:A,w0:ks(A),vm:N,bgChallenge:new my};J.wq=Promise.resolve(A)});
_.nu(f)})})}else z.preload&&nrw(this,new Promise(function(P){_.b9(_.GW,function(){P(K2I(J))},0)}))};
F2e=function(a){var z={preload:!0,useBotguardEverywhere:!0},I=!1;if(typeof z==="boolean")var J={preload:z};else typeof z==="undefined"?J={preload:!0}:(J=z,I=!!z.xY2);z=I?void 0:new _.wo;_.gm.instance=new _.gm(a,J,z);return _.gm.instance};
_.gm.prototype.eEz=function(){var a=this;return _.t(function(z){return z.nextAddress==1?z.yield(Promise.race([a.wq,null]),2):z.return(!!z.yieldResult)})};
_.gm.prototype.jEg=function(a,z,I){var J=this,r,P,N;return _.t(function(u){J.wq===null&&nrw(J,K2I(J));r=!1;P={};N=function(){var E,O,f;return _.t(function(A){switch(A.nextAddress){case 1:return A.yield(J.wq,2);case 2:E=A.yieldResult;P.challenge=E.challenge;if(!E.vm){"c1a"in E.w0&&(P.error="ATTESTATION_ERROR_VM_NOT_INITIALIZED");A.jumpTo(3);break}O=Object.assign({},{c:E.challenge,e:a},z);_.BP(A,4);r=!0;return A.yield(E.vm.snapshot({hD:O}),6);case 6:(f=A.yieldResult)?P.webResponse=f:P.error="ATTESTATION_ERROR_VM_NO_RESPONSE";
_.p1(A,3);break;case 4:_.sk(A),P.error="ATTESTATION_ERROR_VM_INTERNAL_ERROR";case 3:if(a==="ENGAGEMENT_TYPE_PLAYBACK"){var n=E.w0,F={};if(n.c6a){var h=Number(_.Xw("DCLKSTAT",0));F.reportingStatus=String(Number(n.c)^(isNaN(h)?0:h))}n.c6b&&(F.broadSpectrumDetectionResult=String(Number(n.c)^Number(_.Xw("CATSTAT",0))));P.adblockReporting=F}return A.return(P)}})};
return u.return(Promise.race([N(),Hzo(I,function(){var E=Object.assign({},P);r&&(E.error="ATTESTATION_ERROR_VM_TIMEOUT");return E})]))})};
var snw=function(a){var z={engagementType:"ENGAGEMENT_TYPE_UNBOUND"};a&&(z.interpreterHash=a);return z},K2I=function(a,z){z=z===void 0?0:z;
var I,J,r,P,N,u,E,O,f,A,n,F;return _.t(function(h){switch(h.nextAddress){case 1:I=snw(DMf().mAQ);if(_.K("att_fet_ks"))return _.BP(h,7),h.yield(a.ht(I),9);_.BP(h,4);return h.yield(bzl(a,I),6);case 6:N=h.yieldResult;r=N.wuy;P=N.lO8;J=N;_.p1(h,3);break;case 4:return _.sk(h),_.Xd(Error("ii`"+z)),hDj(a,864E5),h.return({challenge:"",w0:{},vm:void 0,bgChallenge:void 0});case 9:J=h.yieldResult;if(!J)throw Error("ji");if(!J.challenge)throw Error("ki");r=J.challenge;P=ks(r);if("c1a"in P&&(!J.bgChallenge||!J.bgChallenge.program))throw Error("li");
_.p1(h,3);break;case 7:u=_.sk(h);_.Xd(u);z++;if(z>=5)return _.Xd(Error("ii`"+z)),hDj(a,864E5),h.return({challenge:"",w0:{},vm:void 0,bgChallenge:void 0});E=1E3*Math.pow(2,z-1)+Math.random()*1E3;return h.return(new Promise(function(v){_.b9(_.GW,function(){v(K2I(a,z))},E)}));
case 3:O=kE1(P);hDj(a,O*1E3);f=void 0;if(!("c1a"in P&&J.bgChallenge)){h.jumpTo(10);break}A=ygm(J.bgChallenge);_.BP(h,11);return h.yield(LOI(DMf(),A),13);case 13:_.p1(h,12);break;case 11:return n=_.sk(h),_.Xd(n),h.return({challenge:r,w0:P,vm:f,bgChallenge:A});case 12:return _.BP(h,14),f=new _.dZ({challenge:A,tys:{a3:"aGIf"}}),h.yield(f.h8I,16);case 16:_.p1(h,10);break;case 14:F=_.sk(h),_.Xd(F),f=void 0;case 10:return h.return({challenge:r,w0:P,vm:f,bgChallenge:A})}})};
_.gm.prototype.ht=function(a){var z=this,I;return _.t(function(J){I=z.networkStatusManager;if(!I||I.isNetworkAvailable())return J.return(z.network.ht(a));_.de("att_pna",void 0,"attestation_challenge_fetch");return J.return(new Promise(function(r){I.listenOnce("publicytnetworkstatus-online",function(){z.network.ht(a).then(r)})}))})};
var Vml=function(a){if(!a)throw Error("ji");if(!a.challenge)throw Error("ki");var z=a.challenge,I=ks(z);if("c1a"in I&&(!a.bgChallenge||!a.bgChallenge.program))throw Error("li");return Object.assign({},a,{wuy:z,lO8:I})},bzl=function(a,z){var I,J,r,P,N;
return _.t(function(u){switch(u.nextAddress){case 1:I=void 0,J=0,r={};case 2:if(!(J<5)){u.jumpTo(4);break}if(!(J>0)){u.jumpTo(5);break}r.qTQ=1E3*Math.pow(2,J-1)+Math.random()*1E3;return u.yield(new Promise(function(E){return function(O){_.b9(_.GW,function(){O(void 0)},E.qTQ)}}(r)),5);
case 5:return _.BP(u,7),u.yield(a.ht(z),9);case 9:return P=u.yieldResult,u.return(Vml(P));case 7:I=N=_.sk(u),N instanceof Error&&_.Xd(N);case 8:J++;r={qTQ:void 0};u.jumpTo(2);break;case 4:throw I;}})},nrw=function(a,z){a.wq=z},Qn1=function(a){var z,I,J;
return _.t(function(r){if(r.nextAddress==1)return r.yield(Promise.race([a.wq,null]),2);z=r.yieldResult;var P=K2I(a);a.wq=P;(I=z)==null||(J=I.vm)==null||J.dispose();_.nu(r)})},hDj=function(a,z){var I=Date.now()+z,J=function(){var r;
return _.t(function(P){r=I-Date.now();return r<1E3?P.yield(Qn1(a),0):(_.b9(_.GW,J,Math.min(r,6E4)),P.jumpTo(0))})};
J()},Hzo=function(a,z){return new Promise(function(I){_.b9(_.GW,function(){I(z())},a)})};var SPv=function(){};
SPv.prototype.processContext=function(a){var z=_.gm.instance;if(!z)return _.a7();var I=jVi(a);return I?new eG(z.jEg(I,qbE(a),500).then(function(J){var r;(a==null?0:(r=a.innerTubeRequest)==null?0:r.context)||(a.innerTubeRequest.context={});r=a.innerTubeRequest.context;r.request||(r.request={});r.request.attestationResponseData=J})):_.a7()};var izX=function(a){this.innertubeTransportService=a};
izX.prototype.ht=function(a){_.de("att_fsr",void 0,"attestation_challenge_fetch");return _.pJ(this.innertubeTransportService,a,_.ex(_.Cfj)).then(function(z){_.de("att_frr",void 0,"attestation_challenge_fetch");return z})};_.xNl=function(a){this.innertubeTransportService=a};var vrX=new _.I4("ATTESTATION_ASYNC_CONTEXT_PROCESSOR");var GAX=function(){},Xjw=function(a,z,I,J,r){var P=_.Xw("YPC_MB_URL");
_.D6G(P).then(function(){$Ni(P,a,z,I,J,r)})},$Ni=function(a,z,I,J,r,P){try{var N=payments.business.integration,u=payments.business.integration.Style.create().withMaterialDesignStyle(),E=N.mashupMode.popup("purchaseManagerDivId").usingDraggableDialog().usingPreferredWidth(600);
_.K("enable_window_constrained_buy_flow_dialog")&&(E=E.usingPopupStyle("windowConstrained"));P&&(E=E.usingCloseCallback(P));var O=I?I:_.Xw("YPC_GB_LANGUAGE"),f=_.Xw("SESSION_INDEX");N.bootstrap.fromPaymentsUrl(a);N.bootstrap.asMashupMode(E).usingGaiaIndex(f).usingLocale(O).usingStyle(u).usingDefaultActivityStatusChangeHandler().inStandaloneContext(N.standaloneContextAuthId.forGaia()).purchaseManager(z,function(A){J&&J(A)}).load(void 0,r)}catch(A){throw r&&r(A),_.Gx(A),A;
}};var TwE=new _.I4("PURCHASE_MANAGER_TOKEN");var dN1=function(){var a=this;this.videos=[];this.recommendedVideos=[];this.showRefreshPill=this.continuationsPresent=!1;this.clientHeight=window.innerHeight;this.TEST_ONLY={getVideos:function(){return a.videos},
getContinuationsPresent:function(){return a.continuationsPresent},
setVideos:function(z){a.videos=z},
getRecommendedVideos:function(){return a.recommendedVideos},
setRecommendedVideos:function(z){a.recommendedVideos=z}}};
dN1.prototype.addVideos=function(a){a&&(this.videos=a.filter(function(z){return!!_.Ir3(z)}).map(function(z){var I=_.Ir3(z);
a:{var J;if(z.playlistVideoRenderer&&((J=z.playlistVideoRenderer)==null?0:J.voteSortTiebreaker))var r=z.playlistVideoRenderer.voteSortTiebreaker;else{if(_.H(z,Ys)){var P;if(J=(r=_.H(z,Ys))==null?void 0:(P=r.playlistItemData)==null?void 0:P.voteSortTiebreaker){r=J;break a}}r=""}}return{itemId:I,videoId:_.P6d(z),voteCount:_.Zs$(z),voteSortTiebreaker:r}}),this.continuationsPresent=!!_.H(a[a.length-1],_.av))};
var W2O=function(a,z){return a.videos.findIndex(function(I){return I.itemId===z})},orf=function(a,z){return a.recommendedVideos.findIndex(function(I){return I.itemId===z})},UN1=function(a){a={openPopupAction:{popupType:"TOAST",
popup:{notificationActionRenderer:{responseText:{simpleText:a}}}}};_.ab().resolve(_.j6).resolveCommand(a)};var DNj=function(){dN1.apply(this,arguments)};
_.b(DNj,dN1);
var Bui=function(a,z,I,J){if(!a.parentElem)throw Error("qi");var r=W2O(a,z);r===-1&&(r=orf(a,z),r=r!==-1?r+a.videos.length:-1);if(r===-1)throw Error("ri");var P=r>=a.videos.length?a.recommendedVideos[r-a.videos.length]:a.videos[r];P.voteCount=I;P.voteSortTiebreaker=Date.now().toString();r>=a.videos.length?a.recommendedVideos.splice(r-a.videos.length,1):a.videos.splice(r,1);var N=a.videos;for(var u=0,E=N.length-1;u<=E;){var O=Math.floor((u+E)/2);if(N[O].voteCount<P.voteCount)E=O-1;else if(N[O].voteCount>P.voteCount)u=
O+1;else{a:{var f=P.voteSortTiebreaker;var A=N[O].voteSortTiebreaker;if(f.length!==A.length)f=f.length>A.length;else{for(var n=0;n<f.length;n++){var F=f.charCodeAt(n),h=A.charCodeAt(n);if(F>h){f=!0;break a}if(F<h)break}f=!1}}f?E=O-1:u=O+1}}N=u;if(N===-1)throw Error("si");a.videos.splice(N,0,P);r!==N&&RDi(a,r,N,z,I,J)},RDi=function(a,z,I,J,r,P){var N,u=(N=a.parentElem)==null?void 0:N.children,E=Math.min(z,I),O=Math.max(z,I);
if(u)for(N=E;N<=O;N++)u[N].style.viewTransitionName="item-"+String(N);document.startViewTransition(function(){if(a.parentElem){var f=a.parentElem.children;if(!(!f||z<0||z>=f.length||I<0||I>=f.length)){var A=f[z];if(A){A.remove();a.showRefreshPill=I>=a.videos.length-1&&a.continuationsPresent;if(!a.showRefreshPill){f=f[I]||null;var n;(n=a.parentElem)==null||n.insertBefore(A,f)}_.PA(a.parentElem,"yt-update-video-data-voting-animation",{toIdx:I,itemId:J,newVoteCount:r,voteStatus:P,hideItem:a.showRefreshPill})}}}}).finished.then(function(){if(u)for(var f=
E;f<=O;f++)u[f].style.viewTransitionName="";
if(a.showRefreshPill)UN1(_.AR("VOTING_ANIMATION_CONTINUATION_TOAST_MESSAGE"));else{var A;if(A=f=(A=a.parentElem)==null?void 0:A.children[I])A=f.getBoundingClientRect(),f=A.bottom,A=!(A.top>=0&&f<=a.clientHeight);A&&(A=_.s_(z>I?"VOTING_ANIMATION_UP_TOAST_MESSAGE":"VOTING_ANIMATION_DOWN_TOAST_MESSAGE",Math.abs(z-I)),UN1(A))}})};var pje=function(a,z){var I=this;a?this.innertubeTransportServicePromise=Promise.resolve(a):z&&(this.innertubeTransportServicePromise=z(),this.innertubeTransportServicePromise.catch(function(){}));
this.reportMiniAppValueRateLimiter=new eR(3E3,function(J){return L2v(I,J)},0);
this.validateMiniAppVideoIdRateLimiter=new eR(3E3,function(J){return lql(I,J)},1)},sBw=function(a,z){a.JSC$17081_miniAppId=z;
a.reportMiniAppValueRateLimiter=new eR(3E3,function(I){return L2v(a,I)},0);
a.validateMiniAppVideoIdRateLimiter=new eR(3E3,function(I){return lql(a,I)},1)},Knl=function(a,z){var I;
return _.t(function(J){if(J.nextAddress==1)return J.yield(a.reportMiniAppValueRateLimiter.call(z),2);I=J.yieldResult;return J.return([I,z])})},L2v=function(a,z){var I,J,r,P,N,u,E;
return _.t(function(O){switch(O.nextAddress){case 1:return O.yield(a.innertubeTransportServicePromise,2);case 2:return I=O.yieldResult,J=_.ex(gaG),r=Date.now(),P={externalPostId:a.JSC$17081_miniAppId,userStatValue:{statKey:"high_score",timestamp:{seconds:""+Math.floor(r/1E3),nanos:Math.round(r%1E3*1E6)},intValue:""+z}},_.BP(O,3),O.yield(_.pJ(I,P,J),5);case 5:N=O.yieldResult;_.p1(O,4);break;case 3:throw u=_.sk(O),u;case 4:if(N){if("error"in N&&N.error)throw N.error;if(N.errorMetadata)throw Error("ti`"+
N.errorMetadata.status);if(E=N.userStatResult)return O.return(E);throw Error("ui");}throw Error("vi");}})},HbX=function(a){var z,I,J,r,P;
_.t(function(N){switch(N.nextAddress){case 1:return N.yield(a.innertubeTransportServicePromise,2);case 2:return z=N.yieldResult,I=_.ex(gaG),J={externalPostId:a.JSC$17081_miniAppId,userSettingsUpdate:{isAllowNetworkAcked:!0}},_.BP(N,3),N.yield(_.pJ(z,J,I),5);case 5:r=N.yieldResult;_.p1(N,4);break;case 3:throw P=_.sk(N),P;case 4:if(r==null)throw Error("vi");if("error"in r&&r.error)throw r.error;if(r.errorMetadata)throw Error("ti`"+r.errorMetadata.status);_.nu(N)}})};
pje.prototype.flush=function(){var a=this;return _.t(function(z){return z.nextAddress==1?z.yield(a.reportMiniAppValueRateLimiter.flush(),2):z.yield(a.validateMiniAppVideoIdRateLimiter.flush(),0)})};
var Fne=function(a,z){return _.t(function(I){return I.nextAddress==1?I.yield(a.validateMiniAppVideoIdRateLimiter.call(z),2):I.return(I.yieldResult)})},lql=function(a,z){var I,J,r,P,N,u;
return _.t(function(E){switch(E.nextAddress){case 1:return E.yield(a.innertubeTransportServicePromise,2);case 2:return I=E.yieldResult,J=_.ex(PQf),r={videoId:z},_.BP(E,3),E.yield(_.pJ(I,r,J),5);case 5:P=E.yieldResult;_.p1(E,4);break;case 3:throw N=_.sk(E),N;case 4:if(P){if("error"in P&&P.error)throw P.error;if(P.errorMetadata)throw Error("ti`"+P.errorMetadata.status);if(u=P.playabilityStatus)return E.return(u.status);throw Error("wi");}throw Error("vi");}})};
pje[zp]=[_.eL(_.dY),_.eL(D8G)];var wjv=function(){this.clientData=new Map};
wjv.prototype.getData=function(a){return this.clientData.get(a)};var mNf=function(a){this.store=a};
mNf.prototype.handleResponse=function(a){(a=_.H(a.frameworkUpdates,c8))&&_.sr(a,this.store)};
mNf[zp]=[_.mP];var yho=new _.I4("ENTITIES_RESPONSE_PROCESSOR_TOKEN");var kAf={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_eighty_updated:[[0,1,24]],offline_downloading_forty:[[0,
1,24]],offline_downloading_forty_updated:[[0,1,24]],offline_downloading_sixty:[[0,1,24]],offline_downloading_sixty_updated:[[0,1,24]],offline_downloading_spinner:[[0,1,24]],offline_downloading_twenty:[[0,1,24]],offline_downloading_twenty_updated:[[0,1,24]],offline_downloading_zero:[[0,1,24]],offline_downloading_zero_updated:[[0,1,24]],offline_no_content:[[0,1,192]],offline_pause:[[1,1,24]],offline_pin:[[0,1,24]],open_in_panel:[[0,1,24]],owner:[[1,1,16]],pinterest:[[0,1,60]],"play-arrow":[[0,1,24]],
play_disabled:[[0,1,24]],premium:[[0,1,14]],premium_standalone:[[0,2,24]],premium_standalone_cairo:[[0,1,24]],"radio-button-unchecked":[[1,1,24]],rakuten:[[0,1,60]],reddit:[[0,2,192]],refresh:[[1,1,24]],schedule_fanzone:[[0,1,100]],screen_light:[[1,1,24]],search_prominent:[[1,1,24]],"shorts-comment":[[0,2,32]],"shorts-dislike":[[0,2,32]],"shorts-like":[[0,2,32]],"shorts-pause":[[0,1,24]],"shorts-share":[[0,2,32]],skyblog:[[0,1,60]],skype:[[0,1,60]],sms:[[0,1,24]],sort:[[0,1,24]],spark:[[0,1,24],[1,
1,24]],spark_search:[[0,1,24]],stumbleupon:[[0,1,60]],subdirectory_arrow_right:[[1,1,24]],tuenti:[[0,1,60]],tumblr:[[0,1,60]],twitter:[[0,3,192]],unplugged_logo:[[0,2,24]],verified:[[1,2,16]],vertical_align_top:[[1,1,24]],video_call:[[0,1,24]],view_module:[[0,1,24],[1,1,24]],vkontakte:[[0,1,60]],"volume-off":[[0,1,24]],"volume-up":[[0,1,24]],watermark:[[0,1,110]],waveform:[[1,1,24]],web_system_activity_dialog:[[0,1,60]],weibo:[[0,1,60]],whatsapp:[[0,1,60]],wykop:[[0,1,60]],yahoo:[[0,1,60]],yahoo_japan:[[0,
1,192]],youtube_community_post:[[0,1,60]],youtube_community_repost:[[0,1,60]],youtube_kids_round:[[0,2,24]],youtube_logo:[[0,1,24]],youtube_music:[[0,2,24]],youtube_round:[[0,2,24]],youtube_shorts_brand_24:[[0,2,24]],youtube_shorts_fill_no_triangle_red_16:[[0,1,16]],"yt-logo-red-updated":[[0,3,24]],"yt-logo-updated":[[0,3,24]]};var Mmw=new _.I4("ICON_SET_TOKEN"),cho=new _.I4("ICON_URL_PROVIDER_TOKEN"),YPv=new _.I4("PREFETCH_ICONS_TOKEN"),qPE=new _.I4("ICON_MAP_FN_TOKEN");var Ov={},eDJ=(Ov.ACCESS_TIME="clock",Ov.ACCOUNT_BOX="person_account",Ov.ACCOUNT_BOX_CAIRO="person_account_cairo",Ov.ACCOUNT_CIRCLE="person_circle",Ov.ACCOUNT_CIRCLE_CAIRO="person_circle_cairo",Ov.ACCOUNT_LINKED="account_link_success",Ov.ACCOUNT_UNLINKED="account_link",Ov.ADD_FRIEND="people",Ov.ADD_MODERATOR="shield_add",Ov.ADD_TO_LIBRARY="bookmark",Ov.ADD_TO_PLAYLIST="add",Ov.ADD_TO_QUEUE_TAIL="list_queue",Ov.ADD_TO_REMOTE_QUEUE="list_music",Ov.ADD_TO_WATCH_LATER="clock",Ov.ADD_VIDEO_LINK="film_strip_add",
Ov.ALERT_WARN_RED="alert_triangle",Ov.ARROW_BACK="arrow_left",Ov.ARROW_DIAGONAL_UP_RIGHT_FILLED="arrow_diagonal_up_right",Ov.ARROW_DROP_DOWN="chevron_down",Ov.ARROW_DROP_UP="chevron_up",Ov.ARROW_FORWARD="arrow_right",Ov.AUDIOTRACK="audio",Ov.AUTO_AWESOME="sparkle",Ov.AVATAR_ANONYMOUS="person_circle",Ov.AVATAR_LOGGED_OUT="person_circle",Ov.BACK="arrow_left",Ov.BAR_CHART="bar_graph",Ov.BLOCK="slash_circle_left",Ov.BLOCK_USER="slash_circle_left",Ov.BOOKMARK_BORDER="bookmark",Ov.BREAKING_NEWS_ALT_1="article_alert",
Ov.BROADCAST_CAIRO="podcast_cairo",Ov.BUG_REPORT="bug",Ov.CAMERA_ALT="camera",Ov.CAMPAIGN="megaphone",Ov.CANCEL="x_circle",Ov.CAPTIONS="closed_caption",Ov.CAST_OUTLINE="chromecast",Ov.CHANNEL_NOTIFICATION_PREFERENCE_OFF="bell",Ov.CHANNEL_NOTIFICATION_PREFERENCE_ON="bell_on",Ov.CHAT="message_bubble_left",Ov.CHAT_BUBBLE="message_bubble_empty",Ov.CHAT_SPARK="spark_message_bubble_left",Ov.CHECK_BOX_OUTLINE_BLANK="box_empty",Ov.CHECK_CIRCLE_OUTLINE="check_circle",Ov.CHECK_CIRCLE_THICK="check_circle",Ov.CLARIFY=
"article_clarify",Ov.CLOSED_CAPTION_SELECTED="closed_caption",Ov.CLOSE="x_mark",Ov.CLOUD_UPLOAD="cloud_arrow_up",Ov.COLLAPSE="chevron_up",Ov.COLLAPSE_CAIRO="chevron_up_cairo",Ov.COLLECTION="layers",Ov.COLOR_LENS="palette",Ov.COMMENT="message_bubble_right",Ov.CONSENT_SHIELD="person_shield",Ov.CONTENT_CUT="scissors",Ov.CONTENT_CUT_CAIRO="scissors_cairo",Ov.COURSE=_.K("web_enable_course_icon_update")?"creator_academy":"lightbulb",Ov.COURSE_CAIRO=_.K("web_enable_course_icon_update")?"creator_academy_cairo":
"lightbulb_cairo",Ov.CREATION_LIVE="radar_live",Ov.CREATION_POST="box_pencil",Ov.CREATION_UPLOAD="my_videos",Ov.CREATION_UPLOAD_RED="upload",Ov.CREATOR_METADATA_MONETIZATION_OFF="dollar_sign_off",Ov.CREATOR_STUDIO="youtube_studio",Ov.DASHBOARD="grid_asymmetrical",Ov.DELETE="trash_can",Ov.DELETE_SWEEP="trash_can",Ov.DESKTOP="laptop",Ov.DISLIKE="thumb_down",Ov.DISLIKE_SELECTED="thumb_down",Ov.DISMISSAL="x_mark",Ov.DISMISS_QUEUE="list_remove",Ov.DONE_ALL="check_double",Ov.DOWN_ARROW="arrow_down",Ov.DO_NOT_DISTURB=
"slash_circle_left",Ov.DRAFT="paper_corner_folded",Ov.DRAG_HANDLE="bars_2",Ov.EDIT="pencil",Ov.EMOJI="face_very_happy",Ov.EMOJI_FLAGS="flag",Ov.EMOJI_OBJECTS="lightbulb",Ov.EMOJI_PEOPLE="face_very_happy",Ov.EMOJI_RECENT="clock",Ov.EMPTY_HEART="heart",Ov.EMPTY_LIKE="thumb_up",Ov.ERROR_BLACK="alert_circle",Ov.ERROR_OUTLINE="alert_circle",Ov.EXIT_APP="arrow_in",Ov.EXIT_TO_APP="arrow_in",Ov.EXPAND="chevron_down",Ov.EXPAND_ALL="chevron_expand",Ov.EXPAND_CAIRO="chevron_down_cairo",Ov.EXPAND_LESS="chevron_up",
Ov.EXPAND_MORE="chevron_down",Ov.EXPLORE="compass",Ov.EXPLORE_DESTINATION="compass",Ov.EXTERNAL_LINK="open_new",Ov.FAB_UPLOAD="upload",Ov.FACE_HAPPY_OUTLINE="face_happy",Ov.FACT_CHECK="article_check",Ov.FASHION_LOGO="fashion",Ov.FASHION_LOGO_CAIRO="fashion_cairo",Ov.FAVORITE="heart",Ov.FEEDBACK="message_bubble_alert",Ov.FEEDBACK_CAIRO="message_bubble_alert_cairo",Ov.FILL_ARROW_SOLID_DOWN_16="arrow_solid_down",Ov.FILL_ARROW_SOLID_UP_16="arrow_solid_up",Ov.FILL_DOLLAR_SIGN_HEART_12="dollar_sign_heart",
Ov.FILTER="menu_filter",Ov.FIRST_PAGE="chevron_first",Ov.FLAG="flag",Ov.FULL_HEART="heart",Ov.GAME_CONSOLE_DPAD="game_console_dpad",Ov.GAME_CONSOLE_FACE_BUTTONS="game_console_face_buttons",Ov.GAMING_LOGO="gaming",Ov.GAMING_LOGO_CAIRO="gaming_cairo",Ov.GO_TO_PAGE="arrow_right",Ov.GROUPS="people_group",Ov.HAPPY="face_happy",Ov.HEALTH_AND_SAFETY="shield_plus",Ov.HELP="question_circle",Ov.HELP_CAIRO="question_circle_cairo",Ov.HELP_OUTLINE="question_circle",Ov.HIDE="slash_circle_left",Ov.IMAGE="image",
Ov.INFINITY_ICON="infinity",Ov.INFO="info_circle",Ov.INFO_OUTLINE="info_circle",Ov.INSERT_CHART="bar_graph_box_vertical",Ov.INSERT_CHART_OUTLINED="bar_graph_box_vertical",Ov.INSERT_PHOTO="image",Ov.KEEP="pin",Ov.KEEP_OFF="pin_off",Ov.KEYBOARD="keyboard",Ov.KEYBOARD_ARROW_DOWN="chevron_down",Ov.KEYBOARD_ARROW_UP="chevron_up",Ov.KIDS_BLOCK="slash_circle_left",Ov.LANGUAGE="globe",Ov.LAST_PAGE="chevron_last",Ov.LAUNCH="open_new",Ov.LEARNING="lightbulb",Ov.LEARNING_CAIRO="lightbulb_cairo",Ov.LIBRARY_ADD=
u_G("library_add"),Ov.LIBRARY_OUTLINE="library",Ov.LIBRARY_REMOVE=u_G(),Ov.LIGHTBULB_SPARK_OUTLINE="lightbulb_spark",Ov.LIKES_PLAYLIST="thumb_up",Ov.LIKES_PLAYLIST_CAIRO="thumb_up_cairo",Ov.LIKE="thumb_up",Ov.LIKE_SELECTED="thumb_up",Ov.LIVE="radar_live",Ov.LIVE_CAIRO="radar_live_cairo",Ov.LIVE_UNLISTED="link",Ov.LOCATION_ON="location_point",Ov.LOCATION_PIN="location_point",Ov.LOOP="arrow_repeat",Ov.LOOP_ACTIVE="arrow_repeat",Ov.LOOP_ONE="arrow_repeat_1",Ov.LOOP_ONE_ACTIVE="arrow_repeat_1",Ov.MEH=
"face_meh",Ov.MEMBERS_ONLY_MODE_OFF="message_bubble_left",Ov.MESSAGE="message_bubble_left",Ov.MICROPHONE_ON="mic",Ov.MIX="youtube_mix",Ov.MONETIZATION_ON="dollar_sign_circle",Ov.MONEY_FILL="dollar_sign_container",Ov.MONEY_FILL_JPY="yen_sign_container",Ov.MONEY_HEART="dollar_sign_heart",Ov.MORE_HORIZ="overflow_horizontal",Ov.MORE_VERT="overflow_vertical",Ov.MUSIC="audio",Ov.MUSIC_CAIRO="audio_cairo",Ov.MUSIC_NOTE_SYMBOL="music",Ov.MUSIC_SHUFFLE="arrow_shuffle",Ov.MY_CHANNEL="person_circle",Ov.MY_LOCATION=
"location_point",Ov.NEWS_STORY="news",Ov.NEXT="chevron_right",Ov.NOTIFICATIONS="bell",Ov.NOTIFICATIONS_ACTIVE="bell_on",Ov.NOTIFICATIONS_CAIRO="bell_cairo",Ov.NOTIFICATIONS_DONE_CHECKMARK="check",Ov.NOTIFICATIONS_INBOX="bell",Ov.NOTIFICATIONS_NONE="bell",Ov.NOTIFICATIONS_OFF="bell_off",Ov.NOT_INTERESTED="slash_circle_left",Ov.OFFICIAL_ARTIST_BADGE="audio",Ov.OFFLINE_CLOUD="cloud_off",Ov.OFFLINE_DOWNLOAD="download",Ov.OFFLINE_DOWNLOAD_CAIRO="download_cairo",Ov.OFFLINE_PAUSE="pause",Ov.OPEN_IN_NEW=
"open_new",Ov.OUTLINE_ADJUST="adjust",Ov.OUTLINE_ARROW_SOLID_DOWN_16="arrow_solid_down",Ov.OUTLINE_ARROW_SOLID_UP_16="arrow_solid_up",Ov.OUTLINE_BAG="bag",Ov.OUTLINE_CLOCK_HALF_CIRCLE="clock_half_circle",Ov.OUTLINE_OVERFLOW_HORIZONTAL_32="overflow_horizontal",Ov.OUTLINE_OVERFLOW_VERTICAL="overflow_vertical",Ov.OUTLINE_YOUTUBE_IMPROVE_TV="youtube_improve_tv",Ov.PAID="dollar_sign",Ov.PAUSE_OUTLINED="pause",Ov.PAYMENT="credit_card",Ov.PERSON_RADAR_FILLED="person_radar",Ov.PHONE_DOWNLOAD="mobile_download",
Ov.PLAYABLES_LOGO="tic_tac_toe",Ov.PLAYABLES_LOGO_CAIRO="tic_tac_toe_cairo",Ov.PLAYLISTS="list_play_arrow",Ov.PLAYLISTS_CAIRO="list_play_arrow_cairo",Ov.PLAYLIST_ADD=u_G("list_add"),Ov.PLAYLIST_ADD_CHECK=u_G("list_check"),Ov.PLAYLIST_PLAY="list_play_arrow",Ov.PLAY_ALL="play_arrow",Ov.PLAY_CIRCLE="play_arrow_circle",Ov.PLAY_OUTLINED="play_arrow_circle",Ov.PRIVACY_INFO="shield",Ov.PRIVACY_PRIVATE="lock",Ov.PRIVACY_PUBLIC="earth",Ov.PRIVACY_UNLISTED="link",Ov.PROMOTE="megaphone",Ov.PURCHASES="price_tag",
Ov.PURCHASE_SUPER_CHAT="super_chat",Ov.PURCHASE_SUPER_STICKER="super_sticker",Ov.QUESTION_ANSWER="message_bubble_question",Ov.QUEUE_PLAY_LAST="list_queue_last",Ov.QUEUE_PLAY_NEXT="list_play_arrow",Ov.REMIX_FILLED="youtube_shorts_remix",Ov.REMOVE="bar_circle",Ov.REMOVE_CIRCLE="bar_circle",Ov.REMOVE_CIRCLE_OUTLINE="bar_circle",Ov.REMOVE_DONE="check_double_off",Ov.REMOVE_FROM_HISTORY="bar_circle",Ov.REMOVE_FROM_PLAYLIST="bar_circle",Ov.REMOVE_MODERATOR="shield_off",Ov.REPLAY="arrow_circle",Ov.REPLAY_10=
"skip_back_10",Ov.REPORT_PROBLEM="alert_triangle",Ov.SAD="face_sad",Ov.SAVE_PLAYLIST="bookmark",Ov.SCHEDULE="clock",Ov.SCHOOL="creator_academy",Ov.SCREEN_FULLSCREEN="screen_full",Ov.SEARCH_HISTORY="arrow_time",Ov.SELL="price_tag",Ov.SETTINGS="gear",Ov.SETTINGS_CAIRO="gear_cairo",Ov.SETTINGS_LIGHT="gear",Ov.SETTINGS_MATERIAL="gear",Ov.SHARE_ARROW="share",Ov.SHIELD_WITH_AVATAR="person_shield",Ov.SHOPPING_BAG="bag",Ov.SHOPPING_BAG_CAIRO="bag_cairo",Ov.SHOPPING_CART="cart",Ov.SHORTS_COMMENT="youtube_shorts_message_bubble_right",
Ov.SHORTS_DISLIKE="youtube_shorts_thumb_down",Ov.SHORTS_LIKE="youtube_shorts_thumb_up",Ov.SHORTS_SHARE="youtube_shorts_share",Ov.SHUFFLE="arrow_shuffle",Ov.SLOW_MODE_OFF="message_bubble_left",Ov.SOCIAL="people",Ov.SORT="menu_sort",Ov.SPARK_LIGHTBULB_OUTLINE="spark_lightbulb",Ov.SPEED_1X="1x",Ov.SPEED_1_POINT_2X="1_point_2x",Ov.SPEED_1_POINT_5X="1_point_5x",Ov.SPEED_1_POINT_8X="1_point_8x",Ov.SPEED_2X="2x",Ov.SPEED_POINT_2X="point_2x",Ov.SPEED_POINT_8X="point_8x",Ov.SPONSORSHIP_STAR="star_circle",
Ov.STAFF_PICK="spotlight",Ov.START_DVR="add",Ov.STAR_BORDER="star",Ov.STAR_CIRCLE_RIBBON_OUTLINE="star_circle_ribbon",Ov.STICKER_EMOTICON="face_happy",Ov.STOP_DVR="stop",Ov.SUBSCRIBE="youtube_logo_icon",Ov.SUBSCRIBE_PLUS="add_cairo",Ov.SUBSCRIPTION_MANAGER="gear",Ov.SUPERVISOR_ACCOUNT="people",Ov.SUPER_CHAT_FOR_GOOD="hands_heart",Ov.SWAP_HORIZ="arrow_swap_horizontal",Ov.SWITCH_ACCOUNTS="person_account",Ov.TAB_ACCOUNT="person",Ov.TAB_ACTIVITY="bell",Ov.TAB_BOOKMARK="bookmark",Ov.TAB_EXPLORE="compass",
Ov.TAB_HOME="home",Ov.TAB_HOME_CAIRO="home_cairo",Ov.TAB_INBOX="mail",Ov.TAB_LIKED="thumb_up",Ov.TAB_MUSIC_PREMIUM="youtube_music",Ov.TAB_SHORTS="youtube_shorts",Ov.TAB_SHORTS_CAIRO="youtube_shorts_cairo",Ov.TAB_SUBSCRIPTIONS="subscriptions",Ov.TAB_SUBSCRIPTIONS_CAIRO="subscriptions_cairo",Ov.TAB_TRENDING="fire",Ov.TIMER="stopwatch",Ov.TRAILER="youtube_originals",Ov.TRENDING="fire",Ov.TRENDING_CAIRO="fire_cairo",Ov.TRENDING_UP="rating_up",Ov.TROPHY="trophy",Ov.TROPHY_CELEBRATIONS="fireworks",Ov.TUNE=
"adjust",Ov.UNBLOCK_USER="bar_circle",Ov.UNLIMITED="youtube_logo_icon",Ov.UNPLUGGED_LIVE_GUIDE="radar_live",Ov.UNPLUGGED_SPORTS="eye_off",Ov.UPLOADS="library",Ov.UP_ARROW="arrow_up",Ov.VERTICAL_ALIGN_BOTTOM="download",Ov.VERY_HAPPY="face_very_happy",Ov.VERY_SAD="face_very_sad",Ov.VIDEOGAME_ASSET="gaming",Ov.VIDEOS="play_arrow_circle",Ov.VIDEO_CALL="video_camera_add",Ov.VIDEO_LIBRARY_WHITE="library",Ov.VIDEO_YOUTUBE="youtube_logo_icon",Ov.VIEW_LIST="list_view",Ov.VIEW_LIST_CAIRO="list_view_cairo",
Ov.VISIBILITY="eye",Ov.VISIBILITY_OFF="eye_off",Ov.VOLUME_MUTE="volume_off",Ov.VOLUME_UP="volume_on",Ov.WALLPAPER="image",Ov.WARNING="alert_triangle",Ov.WATCH_HISTORY="arrow_time",Ov.WATCH_HISTORY_CAIRO="arrow_time_cairo",Ov.WATCH_LATER="clock",Ov.WATCH_LATER_CAIRO="clock_cairo",Ov.WATCH_RELATED_MIX="youtube_mix",Ov.WHAT_TO_WATCH="home",Ov.YOUTUBE_MUSIC_MONOCHROME="youtube_music",Ov.YOUTUBE_MUSIC_MONOCHROME_CAIRO="youtube_music_cairo",Ov.YOUTUBE_SHORTS_FILL_NO_TRIANGLE_RED_16="youtube_shorts_no_triangle",
Ov.YOUTUBE_SHORTS_FILL_NO_TRIANGLE_WHITE_16="youtube_shorts_no_triangle",Ov.YOUTUBE_SHORTS_OUTLINE_24="youtube_shorts",Ov.YT_OUTLINE_MUSIC_24="music",Ov);var fy={},aii=(fy.ACCESS_TIME="clock",fy.ACCOUNT_BOX="person_square",fy.ACCOUNT_BOX_CAIRO="person_square",fy.ACCOUNT_CIRCLE="person_circle",fy.ACCOUNT_CIRCLE_CAIRO="person_circle",fy.ACCOUNT_LINKED="account_link",fy.ACCOUNT_UNLINKED="account_link",fy.ADD_CIRCLE="add_circle",fy.ADD_CIRCLE_OUTLINE="add_circle",fy.ADD_FRIEND="person_child",fy.ADD_MODERATOR="shield_add",fy.ADD_TO_LIBRARY="bookmark",fy.ADD_TO_PLAYLIST="add",fy.ADD_TO_QUEUE_TAIL="queue",fy.ADD_TO_REMOTE_QUEUE="playlist_audio",fy.ADD_TO_WATCH_LATER=
"clock",fy.ADD_VIDEO_LINK="film_strip_add",fy.ADMIN_PANEL_SETTINGS="person_gear",fy.ALERT_WARN_RED="alert_triangle",fy.ALIGN_LEFT="text_align_left",fy.ARROWS_ALERT="arrow_split_alert",fy.ARROW_BACK="arrow_left",fy.ARROW_CIRCLE="arrow_counterclockwise",fy.ARROW_CIRCLE_PLAY="replay",fy.ARROW_CIRCLE_RIGHT="arrow_clockwise",fy.ARROW_DIAGONAL="arrow_up_left",fy.ARROW_DIAGONAL_UP_RIGHT="arrow_up_right",fy.ARROW_DROP_DOWN="triangle_down",fy.ARROW_DROP_UP="triangle_up",fy.ARROW_FORWARD="arrow_right",fy.ARROW_PAUSE=
"pause_history",fy.ARROW_UNDO="undo",fy.ARTICLE="text_page",fy.ARTICLE_ALERT="text_page_alert",fy.ARTICLE_CHECK="text_page_check",fy.ARTICLE_CLARIFY="text_page_info",fy.AUDIOTRACK="audio",fy.AUDIO_BADGE="audio_badge",fy.AUDIO_SURROUND="surround_sound",fy.AUTO_AWESOME="sparkles",fy.AVATAR_ANONYMOUS="person_circle",fy.AVATAR_LOGGED_OUT="person_circle",fy.BACK="arrow_left",fy.BAR_CHART="chart_bar",fy.BAR_CIRCLE="minus_circle",fy.BAR_HORIZONTAL="minus",fy.BLOCK="circle_slash",fy.BLOCK_USER="circle_slash",
fy.BOOKMARK_BORDER="bookmark",fy.BOX_OPEN_CHECK="quiz",fy.BOX_PENCIL="square_pencil",fy.BOX_STACK_3="square3_stack",fy.BREAKING_NEWS_ALT_1="text_page_alert",fy.BROADCAST="podcast",fy.BROADCAST_CAIRO="podcast",fy.BUG_REPORT="bug",fy.CAMERA_ALT="camera",fy.CAMPAIGN="megaphone",fy.CANCEL="x_circle",fy.CAPTIONS="closed_captions",fy.CAST_ICON="chromecast",fy.CAST_OUTLINE="chromecast",fy.CHANNEL_NOTIFICATION_PREFERENCE_OFF="bell",fy.CHANNEL_NOTIFICATION_PREFERENCE_ON="bell_waves",fy.CHAT="text_bubble",
fy.CHAT_BUBBLE="bubble",fy.CHECK_BOX="check_square",fy.CHECK_BOX_OUTLINE_BLANK="square",fy.CHECK_CIRCLE_FILLED="check_circle",fy.CHECK_CIRCLE_OUTLINE="check_circle",fy.CHECK_CIRCLE_THICK="check_circle",fy.CHECK_DOUBLE="check_done",fy.CHECK_DOUBLE_OFF="check_done_slash",fy.CHEVRON_LEFT="chevron_left",fy.CHEVRON_RIGHT="chevron_right",fy.CHEVRON_RIGHT_CAIRO="chevron_right",fy.CIRCLES_OVERLAP="account_link",fy.CLAPPERBOARD_CAIRO="clapperboard",fy.CLARIFY="text_page_info",fy.CLOCK_ARROWS="clock_split",
fy.CLOCK_ARROWS_ALERT="clock_split_alert",fy.CLOSED_CAPTION="closed_captions",fy.CLOSED_CAPTION_SELECTED="closed_captions",fy.CLOSE="x",fy.CLOUD_UPLOAD="cloud_arrow_up",fy.COLLAPSE="chevron_up",fy.COLLAPSE_CAIRO="chevron_up",fy.COLLECTION="square3d_stack",fy.COLOR_LENS="paint_palette",fy.COMMENT="text_bubble",fy.CONSENT_SHIELD="person_shield",fy.CONTENT_CUT="scissors",fy.CONTENT_CUT_CAIRO="scissors",fy.COURSE="graduation_cap",fy.COURSE_CAIRO="graduation_cap",fy.CREATION_LIVE="live",fy.CREATION_POST=
"square_pencil",fy.CREATION_UPLOAD="video",fy.CREATION_UPLOAD_RED="upload",fy.CREATOR_ACADEMY="graduation_cap",fy.CREATOR_STUDIO="youtube_studio",fy.DARK_THEME="theme",fy.DELETE="trash_can",fy.DELETE_SWEEP="trash_can",fy.DESKTOP="laptop",fy.DISLIKE="thumb_down",fy.DISLIKE_SELECTED="thumb_down",fy.DISMISSAL="x",fy.DISMISS_QUEUE="playlist_x",fy.DOGFOOD="pawprint",fy.DOLLAR_SIGN="dollar_sign_circle",fy.DOLLAR_SIGN_CIRCLE="dollar_sign_circle",fy.DOLLAR_SIGN_CONTAINER="dollar_sign_rectangle",fy.DOWN_ARROW=
"arrow_down",fy.DO_NOT_DISTURB="circle_slash",fy.DRAFT="document",fy.DRAG_HANDLE="equal",fy.EARTH="globe",fy.EDIT="pencil",fy.EMOJI="face_very_happy",fy.EMOJI_FLAGS="flag",fy.EMOJI_OBJECTS="lightbulb",fy.EMOJI_PEOPLE="face_very_happy",fy.EMOJI_RECENT="clock",fy.EMPTY_HEART="heart",fy.EMPTY_LIKE="thumb_up",fy.ERROR_BLACK="alert_circle",fy.ERROR_OUTLINE="alert_circle",fy.ERROR_WHITE="alert_circle",fy.EXIT_APP="arrow_in",fy.EXIT_TO_APP="arrow_in",fy.EXPAND="chevron_down",fy.EXPAND_ALL="chevron_expand",
fy.EXPAND_CAIRO="chevron_down",fy.EXPAND_LESS="chevron_up",fy.EXPAND_MORE="chevron_down",fy.EXPLORE="compass",fy.EXPLORE_DESTINATION="compass",fy.EXTERNAL_LINK="arrow_up_right",fy.EYE_OFF="eye_slash",fy.FAB_UPLOAD="upload",fy.FACE_HAPPY_OUTLINE="face_happy",fy.FACE_MEH="face_neutral",fy.FACT_CHECK="text_page_check",fy.FASHION_LOGO="fashion",fy.FASHION_LOGO_CAIRO="fashion",fy.FAVORITE="thumb_up",fy.FEEDBACK="alert_bubble",fy.FEEDBACK_CAIRO="alert_bubble",fy.FILL_ARROW_SOLID_DOWN_16="arrow_solid_down",
fy.FILL_ARROW_SOLID_UP_16="arrow_solid_up",fy.FILL_DOLLAR_SIGN_HEART_12="dollar_sign_heart",fy.FLAG_CAIRO="flag",fy.FLASH_OFF="flash_slash",fy.FLASH_ON="flash",fy.FULL_HEART="heart",fy.GAMING_LOGO="gaming",fy.GAMING_LOGO_CAIRO="gaming",fy.GO_TO_PAGE="arrow_right",fy.GROUPS="person3",fy.HAND_SWIPE_LEFT="gesture_swipe_left",fy.HAND_SWIPE_RIGHT="gesture_swipe_right",fy.HAPPY="face_happy",fy.HEALTH_AND_SAFETY="shield_health",fy.HEART_BOX="heart_cube",fy.HELP="help_circle",fy.HELP_CAIRO="help_circle",
fy.HELP_OUTLINE="help_circle",fy.HIDE="circle_slash",fy.INCOGNITO_CAIRO="incognito",fy.INFINITY_ICON="infinity",fy.INFO="info_circle",fy.INFO_OUTLINE="info_circle",fy.INSERT_CHART="chart_bar_square",fy.INSERT_CHART_OUTLINED="chart_bar_square",fy.INSERT_PHOTO="image",fy.KEEP="pin",fy.KEEP_OFF="pin_slash",fy.KEYBOARD="keyboard",fy.KEYBOARD_ARROW_DOWN="chevron_down",fy.KEYBOARD_ARROW_UP="chevron_up",fy.KIDS_BLOCK="circle_slash",fy.LANGUAGE="globe",fy.LAUNCH="arrow_up_right",fy.LEARNING="lightbulb",fy.LEARNING_CAIRO=
"lightbulb",fy.LIBRARY_ADD="bookmark",fy.LIBRARY_IMAGE="image_stack",fy.LIBRARY_MUSIC="audio_square_stack",fy.LIBRARY_OUTLINE="play_square_stack",fy.LIBRARY_REMOVE="bookmark",fy.LIBRARY_SAVED="check_square_stack",fy.LIKES_PLAYLIST="thumb_up",fy.LIKES_PLAYLIST_CAIRO="thumb_up",fy.LIKE="thumb_up",fy.LIKE_SELECTED="thumb_up",fy.LIST_QUEUE="queue",fy.LIVE_CAIRO="live",fy.LIVE_UNLISTED="link",fy.LOCATION_ON="location_pin",fy.LOCATION_PIN="location_pin",fy.LOCATION_POINT="location_pin",fy.LOOP="repeat",
fy.LOOP_ACTIVE="repeat",fy.LOOP_ONE="repeat1",fy.LOOP_ONE_ACTIVE="repeat1",fy.MEET="google_meet",fy.MEH="face_neutral",fy.MEMBERSHIPS="memberships",fy.MEMBERS_ONLY_MODE_OFF="text_bubble",fy.MENU_FILTER="filter",fy.MESSAGE="text_bubble",fy.MESSAGE_BUBBLE_GEAR="bubble_gear",fy.MESSAGE_BUBBLE_LEFT="text_bubble",fy.MESSAGE_BUBBLE_LEFT_BOOST="bubble_sparkles",fy.MESSAGE_BUBBLE_OVERLAP="bubble_stack",fy.MESSAGE_BUBBLE_QUESTION="help_bubble",fy.MICROPHONE_ON="mic",fy.MONETIZATION_ON="dollar_sign_circle",
fy.MONEY_FILL="dollar_sign_rectangle",fy.MONEY_FILL_JPY="yen_sign_rectangle",fy.MONEY_HAND="dollar_sign_circle_hand",fy.MONEY_HEART="dollar_sign_heart",fy.MOON_Z="sleep_timer",fy.MORE_HORIZ="overflow_horizontal",fy.MORE_VERT="overflow_vertical",fy.MUSIC="audio",fy.MUSIC_CAIRO="audio",fy.MUSIC_EXPLICIT_BADGE="explicit",fy.MUSIC_NEW_RELEASE="audio_badge",fy.MUSIC_NOTE_SYMBOL="audio",fy.MUSIC_SCISSORS="audio_scissors",fy.MUSIC_SHUFFLE="shuffle",fy.MY_CHANNEL="person_circle",fy.MY_LOCATION="location_pin",
fy.MY_VIDEOS="video",fy.MY_VIDEOS_CAIRO="video",fy.NEWS_CAIRO="news",fy.NEWS_STORY="news",fy.NEXT="chevron_right",fy.NOTE_ADD="bubble_pencil",fy.NOTIFICATIONS="bell",fy.NOTIFICATIONS_ACTIVE="bell_waves",fy.NOTIFICATIONS_CAIRO="bell",fy.NOTIFICATIONS_DONE_CHECKMARK="check",fy.NOTIFICATIONS_INBOX="bell",fy.NOTIFICATIONS_NONE="bell",fy.NOTIFICATIONS_OFF="bell_slash",fy.NOT_INTERESTED="circle_slash",fy.OFFICIAL_ARTIST_BADGE="audio",fy.OFFLINE_CLOUD="cloud_slash",fy.OFFLINE_DOWNLOAD="download",fy.OFFLINE_DOWNLOAD_CAIRO=
"download",fy.OFFLINE_PAUSE="pause",fy.OPEN_IN_NEW="arrow_up_right",fy.OUTLINE_ADJUST="adjust",fy.OUTLINE_ARROW_SOLID_DOWN="arrow_solid_down",fy.OUTLINE_ARROW_SOLID_DOWN_16="arrow_solid_down",fy.OUTLINE_ARROW_SOLID_UP="arrow_solid_up",fy.OUTLINE_ARROW_SOLID_UP_16="arrow_solid_up",fy.OUTLINE_BAG="bag",fy.OUTLINE_CLOCK_HALF_CIRCLE="clock_half_dashed",fy.OUTLINE_OVERFLOW_HORIZONTAL_32="overflow_horizontal",fy.OUTLINE_OVERFLOW_VERTICAL="overflow_vertical",fy.OUTLINE_YOUTUBE_IMPROVE_TV="star_tv",fy.PAID=
"dollar_sign_circle",fy.PAUSE_OUTLINED="pause",fy.PAYMENT="credit_card",fy.PEOPLE="person_child",fy.PEOPLE_2="person2_rectangle",fy.PEOPLE_GROUP="person3",fy.PEOPLE_NOTE="bubble_asterisk",fy.PERSON_2="person2",fy.PERSON_ACCOUNT="person_square_stack",fy.PERSON_MINUS="person_x",fy.PERSON_MUSIC="person_audio",fy.PERSON_RADAR="person_waves",fy.PERSON_RADAR_FILLED="person_waves",fy.PERSON_SETTING="person_gear",fy.PHONE="phone",fy.PHONE_DOWNLOAD="mobile_arrow_down",fy.PICTURE_IN_PICTURE="picture_in_picture",
fy.PLAYABLES_LOGO="playables",fy.PLAYABLES_LOGO_CAIRO="playables",fy.PLAYLISTS="playlist",fy.PLAYLISTS_CAIRO="playlist",fy.PLAYLIST_ADD_CHECK="bookmark",fy.PLAY_ALL="play",fy.PLAY_ARROW="play",fy.PLAY_ARROW_CIRCLE="play_circle",fy.PLAY_ARROW_HALF_CIRCLE="play_circle_half_dashed",fy.PLAY_CIRCLE="play_circle",fy.PLAY_OUTLINED="play_circle",fy.PODCAST_ADD="podcast_add",fy.PODCAST_CHECK="podcast_check",fy.PRIVACY_INFO="shield_x",fy.PRIVACY_PRIVATE="lock",fy.PRIVACY_PUBLIC="globe",fy.PRIVACY_UNLISTED=
"link",fy.PROMOTE="megaphone",fy.PURCHASES="price_tag",fy.PURCHASE_SUPER_CHAT="super_chat",fy.PURCHASE_SUPER_STICKER="super_sticker",fy.QUESTION_ANSWER="help_bubble",fy.QUESTION_CIRCLE="help_circle",fy.QUEUE_PLAY_LAST="queue_last",fy.QUEUE_PLAY_NEXT="playlist",fy.QUOTATION_MARK="quote",fy.RADAR_LIVE="live",fy.REMOVE="minus_circle",fy.REMOVE_CIRCLE="minus_circle",fy.REMOVE_CIRCLE_OUTLINE="minus_circle",fy.REMOVE_FROM_HISTORY="minus_circle",fy.REMOVE_FROM_PLAYLIST="minus_circle",fy.REMOVE_MODERATOR=
"shield_slash",fy.REPLAY="arrow_counterclockwise",fy.REPLAY_10="skip10_back",fy.REPLAY_ARROW="replay",fy.REPORT_PROBLEM="alert_triangle",fy.RSS_OFF="rss_slash",fy.SAD="face_sad",fy.SAVE_PLAYLIST="bookmark",fy.SCHEDULE="clock",fy.SCHOOL="graduation_cap",fy.SCREEN_DEFAULT="player_default",fy.SCREEN_FULLSCREEN="player_full_enter",fy.SCREEN_LIGHT="ambient_mode",fy.SCREEN_ROTATION="rotate_portrait",fy.SCREEN_SWITCH="player_switch",fy.SCREEN_THEATRE="player_theater",fy.SEARCH_CAIRO="search",fy.SEARCH_HISTORY=
"history",fy.SELL="price_tag",fy.SETTINGS="gear",fy.SETTINGS_CAIRO="gear",fy.SETTINGS_LIGHT="gear",fy.SETTINGS_MATERIAL="gear",fy.SETTINGS_REMOTE="remote_waves",fy.SHARE="share",fy.SHARE_ARROW="share",fy.SHARE_CAIRO="share",fy.SHIELD="shield_x",fy.SHIELD_OFF="shield_slash",fy.SHIELD_WITH_AVATAR="person_shield",fy.SHOPPING_BAG="bag",fy.SHOPPING_BAG_CAIRO="bag",fy.SHOPPING_CART="cart",fy.SHORTS_COMMENT="text_bubble",fy.SHORTS_DISLIKE="thumb_down",fy.SHORTS_LIKE="thumb_up",fy.SHORTS_SHARE="share",fy.SKIP_FORWARD_30=
"skip30_forward",fy.SLASH_CIRCLE_RIGHT="circle_slash",fy.SLOW_MODE="bubble_slow",fy.SLOW_MODE_OFF="text_bubble",fy.SOCIAL="person_child",fy.SPARKLE="sparkles",fy.SPARK_IMAGE="image_spark",fy.SPARK_RADAR="spark_waves",fy.SPARK_VIDEO="video_spark",fy.SPEAKER_GROUP="speaker_stack",fy.SPEAKER_OFF="speaker_slash",fy.SPEED_1X="n1x",fy.SPEED_1_POINT_2X="n1point2x",fy.SPEED_1_POINT_5X="n1point5x",fy.SPEED_1_POINT_8X="n1point8x",fy.SPEED_2X="n2x",fy.SPONSORSHIP_STAR="star_circle",fy.SPORTS="basketball",fy.SPOTLIGHT=
"spotlight",fy.STAFF_PICK="spotlight",fy.START_DVR="add",fy.STAR_BORDER="star",fy.STAR_CIRCLE_RIBBON="memberships_gift",fy.STAR_HALF="star_half_filled",fy.STAR_SHOOTING="hype",fy.STICKER="sticker",fy.STICKER_EMOTICON="face_happy",fy.STOP_DVR="stop",fy.SUBSCRIBE="youtube",fy.SUBSCRIBE_PLUS="add",fy.SUBSCRIPTION_MANAGER="gear",fy.SUPERSTAR="super_star",fy.SUPERVISOR_ACCOUNT="person_child",fy.SUPER_CHAT_FOR_GOOD="hands_heart",fy.SWAP_HORIZ="arrow_swap_horizontal",fy.SWITCH_ACCOUNTS="person_square_stack",
fy.TAB_ACCOUNT="person",fy.TAB_ACTIVITY="bell",fy.TAB_BOOKMARK="bookmark",fy.TAB_EXPLORE="compass",fy.TAB_HOME="home",fy.TAB_HOME_CAIRO="home",fy.TAB_INBOX="mail",fy.TAB_LIKED="thumb_up",fy.TAB_MUSIC_PREMIUM="youtube_music",fy.TAB_SHORTS="shorts",fy.TAB_SHORTS_CAIRO="shorts",fy.TAB_SUBSCRIPTIONS="subscriptions",fy.TAB_SUBSCRIPTIONS_CAIRO="subscriptions",fy.TAB_TRENDING="trending",fy.TARGET="target",fy.TARGET_ADD="target_add",fy.TEMPLATE_ADD="template_add",fy.TEXT="font",fy.TIMER="stopwatch",fy.TRENDING_CAIRO=
"trending",fy.TRENDING_UP="arrow_trend_up",fy.TROPHY_CAIRO="trophy",fy.TROPHY_CELEBRATIONS="fireworks",fy.TROPHY_STAR="star_trophy",fy.TUNE="adjust",fy.TV_OFF="tv_slash",fy.UNBLOCK_USER="minus_circle",fy.UNFAVORITE="thumb_down",fy.UNLIMITED="youtube",fy.UNPLUGGED_LIVE_GUIDE="live",fy.UNPLUGGED_SPORTS="eye_slash",fy.UPLOADS="play_square_stack",fy.UP_ARROW="arrow_up",fy.VERTICAL_ALIGN_BOTTOM="chevron_down_end",fy.VERTICAL_ALIGN_TOP="chevron_up_end",fy.VERY_HAPPY="face_very_happy",fy.VERY_SAD="face_very_sad",
fy.VIDEOS="play_circle",fy.VIDEO_CALL="video_camera_add",fy.VIDEO_LIBRARY_WHITE="play_square_stack",fy.VIDEO_QUALITY_4K="n4k",fy.VIDEO_QUALITY_8K="n8k",fy.VIDEO_YOUTUBE="youtube",fy.VIEW_LIST_CAIRO="view_list",fy.VIEW_MODULE="view_column3_row2",fy.VISIBILITY="eye",fy.VISIBILITY_OFF="eye_slash",fy.VOLUME_DOWN="volume_min",fy.VOLUME_MUTE="volume_mute",fy.VOLUME_OFF="volume_mute",fy.VOLUME_STABLE="stable_volume",fy.VOLUME_UP="volume_max",fy.WALLPAPER="image",fy.WARNING="alert_triangle",fy.WATCH_HISTORY=
"history",fy.WATCH_HISTORY_CAIRO="history",fy.WATCH_LATER="clock",fy.WATCH_LATER_CAIRO="clock",fy.WATCH_RELATED_MIX="mix",fy.WHAT_TO_WATCH="home",fy.YOUTUBE_LINKED_TV="tv_mobile",fy.YOUTUBE_MUSIC_MONOCHROME="youtube_music",fy.YOUTUBE_MUSIC_MONOCHROME_CAIRO="youtube_music",fy.YOUTUBE_SHORTS_ARROW_DOWN="arrow_down",fy.YOUTUBE_SHORTS_ARROW_UP="arrow_up",fy.YOUTUBE_SHORTS_FILL_NO_TRIANGLE_RED_16="shorts_empty",fy.YOUTUBE_SHORTS_FILL_NO_TRIANGLE_WHITE_16="shorts_empty",fy.YOUTUBE_SHORTS_OUTLINE_24="shorts",
fy);var jEZ={15:[[1,3,24]],"1_point_2x":[[1,1,24]],"1_point_5x":[[1,1,24]],"1_point_8x":[[1,1,24]],"1x":[[1,1,24]],"2_point_5x":[[1,1,24]],"2d":[[1,1,24]],"2x":[[1,3,24]],"3d":[[1,1,24]],"3x":[[1,3,24]],"4d":[[1,1,24]],"4k":[[0,2,24],[1,2,24]],60:[[1,3,24]],"8k":[[0,2,24],[1,2,24]],accessibility:[[1,4,24]],account_link:[[1,8,24]],account_link_error:[[1,6,24]],account_link_some:[[0,5,24]],account_link_success:[[0,5,24]],add:[[1,9,16],[1,9,24]],add_cairo:[[0,4,16],[0,4,24],[1,4,24]],add_circle:[[1,6,24],
[1,6,36]],add_half_circle:[[1,2,24]],adjust:[[0,9,24],[1,9,18],[1,9,24]],airplane:[[0,5,24],[1,5,20],[1,5,24]],airplay:[[1,6,16],[1,6,24]],airplay_off:[[1,1,24]],album:[[0,7,24],[1,7,24]],alert_circle:[[0,10,24],[1,10,16],[1,10,24]],alert_triangle:[[0,10,12],[0,10,24],[1,10,24]],align_center:[[0,6,24],[1,6,24]],align_left:[[0,6,24],[1,6,24]],align_right:[[0,6,24],[1,6,24]],arrow_caps:[[0,2,24],[1,2,24]],arrow_circle:[[1,6,24],[1,6,48]],arrow_circle_dash:[[1,1,24]],arrow_circle_play:[[1,1,24],[1,1,
36],[1,1,48]],arrow_circle_right:[[0,3,24],[1,3,12],[1,3,16],[1,3,18],[1,3,24]],arrow_diagonal:[[1,5,24]],arrow_diagonal_down_right:[[0,1,12],[0,1,16],[0,1,18],[0,1,24],[1,1,12],[1,1,16],[1,1,18],[1,1,24]],arrow_diagonal_up_right:[[0,1,12],[0,1,16],[0,1,18],[0,1,24],[1,1,12],[1,1,16],[1,1,18],[1,1,24]],arrow_down:[[0,3,24],[1,3,24]],arrow_down_circle:[[0,4,12],[0,4,16],[0,4,18],[0,4,24]],arrow_flip:[[1,10,16],[1,10,18],[1,10,24]],arrow_flip_dollar_sign:[[1,2,24]],arrow_in:[[0,7,24],[1,7,24]],arrow_left:[[1,
8,24,!0]],arrow_left_cairo:[[1,2,24,!0]],arrow_merge:[[1,2,24]],arrow_out:[[0,2,24]],arrow_pause:[[1,1,24]],arrow_redo:[[1,1,24]],arrow_remix:[[1,1,24]],arrow_repeat:[[0,5,24],[1,5,24]],arrow_repeat_1:[[0,3,24],[1,3,24]],arrow_right:[[1,3,24,!0]],arrow_shuffle:[[0,5,24],[1,5,24]],arrow_skip_forward:[[0,1,24],[1,1,24]],arrow_solid_down:[[0,4,16],[0,4,24],[1,4,16],[1,4,24]],arrow_solid_up:[[0,4,16],[0,4,24],[1,4,16],[1,4,24]],arrow_split:[[0,3,24],[1,3,24]],arrow_swap_horizontal:[[0,5,24],[1,5,18],
[1,5,24]],arrow_time:[[0,8,24],[1,8,24]],arrow_time_cairo:[[0,2,24],[1,2,24]],arrow_time_forward:[[1,1,24]],arrow_undo:[[1,1,24]],arrow_up:[[0,3,24],[1,3,24]],arrow_up_circle:[[0,4,12],[0,4,16],[0,4,18],[0,4,24]],arrows_alert:[[1,1,24]],article:[[1,2,24]],article_alert:[[1,2,24]],article_check:[[1,2,24]],article_clarify:[[1,2,24]],audio:[[0,14,12],[0,14,16],[0,14,18],[0,14,24],[1,14,18],[1,14,24]],audio_badge:[[0,3,12],[0,3,16],[0,3,24]],audio_cairo:[[0,2,24],[1,2,24]],audio_off:[[1,2,24]],audio_surround:[[0,
1,24],[1,1,24]],background:[[1,1,24]],backspace:[[0,5,24],[1,5,24]],bag:[[0,7,12],[0,7,18],[0,7,24],[1,7,18],[1,7,24]],bag_bookmark:[[1,2,24]],bag_cairo:[[0,2,24],[1,2,24]],bar_circle:[[1,4,24]],bar_graph:[[0,2,24],[1,2,24]],bar_graph_box_vertical:[[0,6,24],[1,6,24]],bar_horizontal:[[1,2,16],[1,2,24]],bars_2:[[1,9,16],[1,9,24]],bars_3:[[0,2,24],[1,2,24]],beaker:[[1,2,24]],bell:[[0,10,24],[1,10,24]],bell_cairo:[[0,3,24],[1,3,24]],bell_off:[[1,5,24]],bell_off_cairo:[[1,2,24]],bell_on:[[0,6,24]],bell_on_cairo:[[0,
2,24]],blur:[[1,2,24]],book:[[1,3,24]],bookmark:[[0,8,24],[1,8,24]],bookmark_cairo:[[0,2,24],[1,2,24]],box_3d:[[0,1,24],[1,1,24]],box_bar:[[0,3,24]],box_check:[[0,6,18],[0,6,24],[0,6,36],[1,6,24]],box_chevron_right:[[1,3,24]],box_dashed_triangle:[[1,3,24]],box_empty:[[1,5,24]],box_open_check:[[0,4,24],[1,4,16],[1,4,24]],box_pencil:[[1,3,16],[1,3,24]],box_placeholder_left:[[1,1,24]],box_search:[[1,1,24]],box_stack_3:[[0,1,24],[1,1,24]],boxes_2:[[1,3,24]],briefcase:[[1,2,24]],briefcase_slash:[[0,3,
24]],brightness:[[0,3,24],[1,3,24]],broadcast:[[0,3,24],[1,3,12],[1,3,16],[1,3,18],[1,3,24],[1,3,48]],bug:[[0,3,24],[1,3,24]],business:[[1,4,24]],cable:[[1,2,24]],calculator:[[0,3,24],[1,3,24]],calendar:[[0,4,24],[1,4,24]],camera:[[0,10,24],[1,10,24]],camera_audio:[[1,5,24]],camera_effects:[[1,4,24]],camera_flip:[[1,4,24]],camera_hashtag:[[1,5,24]],camera_switch:[[0,3,24],[1,3,24]],card:[[0,3,12],[0,3,16],[0,3,24]],cart:[[0,4,24],[1,4,24]],cat:[[0,3,24],[1,3,24]],celebration:[[1,2,24]],check:[[0,
13,12],[0,13,16],[0,13,24],[1,13,16],[1,13,24]],check_circle:[[0,10,18],[0,10,24],[1,10,24]],check_double:[[1,1,24]],check_double_off:[[1,1,24]],chevron_collapse:[[1,3,24]],chevron_down:[[1,9,18],[1,9,24]],chevron_down_cairo:[[1,2,24]],chevron_down_circle:[[0,3,24]],chevron_expand:[[1,5,24]],chevron_first:[[1,1,24]],chevron_last:[[1,1,24]],chevron_left:[[1,9,16,!0],[1,9,18,!0],[1,9,24,!0]],chevron_left_circle:[[0,3,24]],chevron_left_ios:[[1,2,24]],chevron_left_ios_cairo:[[1,2,24]],chevron_right:[[0,
7,16,!0],[0,7,18,!0],[0,7,24,!0],[1,7,16,!0],[1,7,18,!0],[1,7,24,!0]],chevron_right_cairo:[[1,2,24]],chevron_right_circle:[[0,3,24]],chevron_right_ios:[[1,1,24]],chevron_up:[[1,8,16],[1,8,18],[1,8,24]],chevron_up_cairo:[[1,2,24]],chevron_up_circle:[[0,3,24]],chromecast:[[0,10,24],[1,10,24]],chromecast_animate_frame_1:[[1,5,24]],chromecast_animate_frame_2:[[1,5,24]],chromecast_animate_frame_3:[[1,5,24]],chromecast_cairo:[[0,2,24],[1,2,24]],chromecast_mobile:[[1,4,24],[1,4,36]],chromecast_waveform:[[1,
2,24]],circle:[[0,7,24],[1,7,24]],circle_full:[[0,2,24]],circle_half_full:[[1,1,24]],circles_6:[[0,1,24]],circles_overlap:[[0,1,24],[1,1,24]],circles_overlap_check:[[0,1,16],[0,1,24]],clapperboard:[[0,3,24],[1,3,24]],clapperboard_cairo:[[0,2,24],[1,2,24]],clock:[[0,10,24],[1,10,16],[1,10,24]],clock_arrows:[[1,1,24]],clock_arrows_alert:[[1,1,24]],clock_cairo:[[0,2,24],[1,2,24]],clock_half_circle:[[0,1,24],[1,1,24]],closed_caption:[[0,10,24],[1,10,24]],cloud:[[1,2,24]],cloud_arrow_down:[[1,3,24]],cloud_arrow_up:[[0,
5,24],[1,5,24]],cloud_check:[[0,3,24],[1,3,24]],cloud_ellipsis:[[0,3,24],[1,3,24]],cloud_off:[[1,2,24]],code:[[1,2,24]],compass:[[0,8,24],[1,8,24]],compass_cairo:[[0,1,24],[1,1,24]],controller:[[0,2,24],[1,2,24]],copy:[[1,3,24]],copyright:[[0,4,24],[1,4,24]],creator_academy:[[0,3,12],[0,3,16],[0,3,24],[1,3,24]],creator_academy_cairo:[[0,2,24],[1,2,24]],credit_card:[[1,4,24]],crop:[[1,3,16],[1,3,24]],crop_rotate:[[1,2,24]],crown:[[0,5,16],[0,5,24],[1,5,12],[1,5,16],[1,5,24]],curve_s:[[0,1,24]],dashboard_plus:[[1,
1,16],[1,1,18],[1,1,20],[1,1,24]],die_3:[[0,5,24],[1,5,24]],directions:[[1,3,24]],dogfood:[[1,1,24]],dollar_sign:[[0,7,24],[1,7,24]],dollar_sign_circle:[[0,10,16],[0,10,24],[1,10,16],[1,10,24]],dollar_sign_circle_pause:[[1,2,24]],dollar_sign_circle_plus:[[1,1,24]],dollar_sign_container:[[1,7,24]],dollar_sign_heart:[[0,23,12],[0,23,24],[1,23,16],[1,23,24]],dollar_sign_off:[[1,3,24]],download:[[0,11,24],[1,11,16],[1,11,24]],download_cairo:[[0,2,24],[1,2,24]],downloaded:[[0,7,24]],downloading:[[1,5,
24]],downloading_0:[[1,5,24]],downloading_1:[[1,6,24]],downloading_2:[[1,6,24]],downloading_3:[[1,6,24]],downloading_4:[[1,6,24]],downloading_5:[[1,7,24]],downloading_6:[[1,6,24]],drive_add:[[1,2,24]],earth:[[0,12,24],[1,12,16],[1,12,18],[1,12,24]],explicit:[[0,7,18],[0,7,24],[1,7,24]],eye:[[0,6,24],[1,6,24]],eye_off:[[1,4,24]],eyedropper:[[1,2,24]],face_arrows_diagonal:[[1,1,24]],face_happy:[[0,11,24],[0,11,36],[1,11,24],[1,11,36]],face_image:[[1,2,24]],face_meh:[[0,9,24],[0,9,36],[1,9,24],[1,9,
36]],face_meh_2:[[0,6,24],[0,6,36],[1,6,24],[1,6,36]],face_paintbrush:[[1,2,24]],face_sad:[[0,11,24],[0,11,36],[1,11,24],[1,11,36]],face_unhappy:[[0,10,24],[0,10,36],[1,10,24],[1,10,36]],face_upset:[[0,9,24],[0,9,36],[1,9,24],[1,9,36]],face_very_happy:[[0,11,24],[0,11,36],[1,11,24],[1,11,36]],face_very_sad:[[0,9,24],[0,9,36],[1,9,24],[1,9,36]],fashion:[[0,4,24],[1,4,24]],fashion_cairo:[[0,2,24],[1,2,24]],fast_back:[[0,3,24],[1,3,24]],fast_forward:[[0,5,24]],film_strip:[[0,7,24],[1,7,24]],film_strip_add:[[1,
2,24]],filter_face:[[0,5,24],[1,5,24]],filter_photo:[[0,8,24],[1,8,24]],fire:[[0,9,12],[0,9,24],[1,9,16],[1,9,24]],fire_cairo:[[0,2,24],[1,2,24]],fireworks:[[1,3,24]],flag:[[0,8,24],[1,8,24]],flag_cairo:[[0,2,24],[1,2,24]],flash_auto:[[0,3,24],[1,3,24]],flash_circle:[[0,5,18],[0,5,24],[1,5,24]],flash_off:[[0,5,24],[1,5,24]],flash_on:[[0,5,24],[1,5,24]],flip_horizontal:[[1,4,24]],flip_horizontal_dash:[[1,1,24]],flip_vertical_dash:[[1,1,24]],folder:[[0,4,16],[0,4,24],[1,4,24]],football:[[0,4,24],[1,
4,24]],gaming:[[0,3,24],[1,3,24]],gaming_cairo:[[0,2,24],[1,2,24]],gear:[[0,8,24],[1,8,24]],gear_cairo:[[0,3,24],[1,3,24]],ghost:[[1,4,24]],gif:[[1,2,24]],gift:[[0,3,24],[1,3,24]],globe:[[0,4,24],[0,4,36],[1,4,24],[1,4,36]],globe_image:[[0,2,24],[0,2,36],[1,2,24],[1,2,36]],glow:[[1,2,24]],google_lens:[[1,4,24]],greater_than_20:[[1,2,24]],grid_2x2:[[1,1,24]],grid_3_by_3:[[0,1,24],[1,1,24]],grid_asymmetrical:[[0,1,24],[1,1,24]],hand:[[1,2,24]],hand_long_press:[[0,3,24],[1,3,24]],hand_pinch_in:[[1,2,
24]],hand_swipe_left:[[1,1,24]],hand_swipe_right:[[1,2,24]],hand_tap:[[0,2,24],[1,2,24]],hand_wave:[[1,2,24]],hands_heart:[[0,3,24],[1,3,24]],hashtag:[[1,2,16],[1,2,18],[1,2,20],[1,2,24]],hd:[[0,8,24],[1,8,24]],headset:[[0,8,24],[1,8,24]],heart:[[0,18,13],[0,18,24],[1,18,16],[1,18,24]],heart_box:[[1,1,24]],heart_circle:[[1,2,16],[1,2,18],[1,2,20],[1,2,24]],heart_off:[[1,2,24]],hierarchy:[[0,4,24],[1,4,24]],highlights:[[1,2,24]],home:[[0,9,24],[1,9,24]],home_cairo:[[0,2,24],[1,2,24]],hourglass:[[1,
3,16],[1,3,24]],image:[[0,8,24],[1,8,24]],image_add:[[1,4,24]],image_wallpaper:[[1,1,24]],incognito:[[0,9,24],[1,9,24]],incognito_cairo:[[0,2,24],[1,2,24]],infinite:[[0,2,24]],infinity:[[1,2,24]],info_circle:[[1,10,16],[1,10,18],[1,10,20],[1,10,24]],journey:[[1,2,24]],key:[[1,5,24]],keyboard:[[0,4,24],[1,4,24]],label:[[0,4,24],[1,4,24]],laptop:[[1,3,24]],laptop_mobile:[[0,4,24],[1,4,24]],layers:[[0,1,24],[1,1,24]],leaf:[[1,2,24]],lens:[[1,1,24]],less_than_4:[[1,2,24]],library:[[0,6,24],[1,6,24]],
library_add:[[1,7,16],[1,7,24]],library_image:[[1,1,24]],library_music:[[0,3,24],[1,3,24]],library_saved:[[0,6,24]],lightbulb:[[0,4,12],[0,4,24],[1,4,24]],lightbulb_cairo:[[0,2,24],[1,2,24]],lightbulb_spark:[[1,2,24]],link:[[1,8,18],[1,8,24]],link_off:[[1,1,24]],list_add:[[1,5,24]],list_check:[[0,2,24]],list_music:[[1,3,24]],list_pencil:[[1,5,24]],list_play_arrow:[[0,8,24],[1,8,12],[1,8,24]],list_play_arrow_cairo:[[0,2,24],[1,2,24]],list_queue:[[1,1,24]],list_queue_last:[[0,3,24],[1,3,24]],list_queue_next:[[1,
1,24]],list_remove:[[1,1,24]],list_view:[[1,2,24]],list_view_cairo:[[1,2,24]],live_mobile_landscape_orientation:[[1,1,24]],live_photo:[[1,2,24]],live_waves:[[1,2,18],[1,2,24]],location_point:[[0,6,12],[0,6,24],[1,6,24]],location_point_off:[[1,1,24]],lock:[[0,13,12],[0,13,24],[1,13,12],[1,13,16],[1,13,18],[1,13,24]],lock_open:[[1,4,24]],magic_wand:[[0,3,24],[1,3,24]],mail:[[0,8,24],[1,8,24]],map:[[1,3,24]],math_add:[[0,3,24]],math_and:[[0,3,24]],math_divide:[[0,3,24]],math_equals:[[0,3,24]],math_equals_slash:[[1,
3,24]],math_greater_than:[[0,3,24]],math_greater_than_or_equal:[[1,1,24]],math_less_than:[[0,3,24]],math_less_than_or_equal:[[1,4,24]],math_multiply:[[0,3,24]],math_or:[[0,3,24]],math_percent:[[0,3,24]],math_subtract:[[0,3,24]],maximize_cairo:[[1,1,24]],medal:[[1,2,24]],medal_star:[[1,2,24]],meet:[[1,1,24]],megaphone:[[0,4,24],[1,4,24]],memberships:[[0,9,12],[0,9,16],[0,9,18],[0,9,24],[1,9,24]],mention:[[1,4,16],[1,4,24]],menu_filter:[[0,1,24],[1,1,24]],menu_sort:[[1,4,24]],message_bubble_alert:[[0,
6,24],[1,6,24]],message_bubble_alert_cairo:[[1,2,24]],message_bubble_empty:[[1,1,24]],message_bubble_gear:[[1,1,24]],message_bubble_left:[[0,1,24],[1,1,24]],message_bubble_left_boost:[[1,1,24]],message_bubble_left_off:[[1,1,16],[1,1,24]],message_bubble_overlap:[[0,7,24],[1,7,24]],message_bubble_question:[[0,2,16],[0,2,24],[1,2,16],[1,2,24]],message_bubble_right:[[0,14,24],[0,14,32],[1,14,16],[1,14,24]],message_bubble_right_caption:[[1,1,24]],mic:[[0,13,24],[1,13,24]],mic_off:[[1,2,24]],miniplayer_exit:[[1,
1,24]],mobile:[[0,4,24],[1,4,24]],mobile_check:[[1,2,24]],mobile_download:[[1,3,24]],mobile_landscape:[[1,3,24]],mobile_screen_horizontal:[[1,1,24]],mobile_screen_vertical:[[1,1,24]],money_hand:[[1,2,24]],monitor_display:[[0,4,16],[0,4,24],[1,4,16],[1,4,24]],monitor_display_off:[[1,1,24]],moon_z:[[0,1,24],[1,1,24]],motion:[[1,2,24]],move:[[1,2,24]],music:[[0,6,24],[1,6,16],[1,6,18],[1,6,24]],music_off:[[1,3,24]],music_scissors:[[1,3,24]],music_shape:[[1,3,24]],music_video:[[1,4,24]],music_video_off:[[1,
1,24]],my_videos:[[1,6,24]],my_videos_cairo:[[1,2,24]],news:[[0,3,24],[1,3,12],[1,3,24]],news_cairo:[[0,2,24],[1,2,24]],node_left:[[1,2,24]],node_right:[[1,2,24]],note:[[0,1,16],[0,1,24],[1,1,16],[1,1,24]],note_add:[[1,1,16],[1,1,24]],note_spark:[[0,2,16],[0,2,24],[1,2,16],[1,2,24]],odometer:[[0,4,24],[1,4,24]],open_new:[[0,7,24],[1,7,12],[1,7,24]],overflow_horizontal:[[1,6,24],[1,6,32]],overflow_vertical:[[1,12,24]],overflow_vertical_cairo:[[1,1,24]],paint_bucket:[[1,3,24]],palette:[[1,1,24]],panels:[[0,
2,24],[1,2,24]],paper_corner_folded:[[0,2,24],[1,2,24]],paper_open_in_new:[[0,1,24],[1,1,24]],pause:[[0,9,24]],pause_circle:[[0,2,12],[0,2,16],[0,2,24]],pdf:[[1,2,24]],pencil:[[1,8,16],[1,8,18],[1,8,24]],people:[[0,6,12],[0,6,24],[1,6,24]],people_2:[[0,1,24],[1,1,24]],people_group:[[0,4,24],[1,4,16],[1,4,24]],people_note:[[0,1,18],[0,1,24],[1,1,24]],person:[[0,6,12],[0,6,13],[0,6,16],[0,6,24],[0,6,48],[1,6,13],[1,6,16],[1,6,24]],person_2:[[1,1,24]],person_account:[[1,6,24]],person_account_cairo:[[1,
1,24]],person_add:[[1,6,24]],person_box:[[1,5,24]],person_circle:[[0,10,24],[1,10,24]],person_circle_cairo:[[0,2,24],[1,2,24]],person_circle_slash:[[1,2,24]],person_minus:[[0,1,24],[1,1,24]],person_music:[[0,4,24],[1,4,24]],person_radar:[[0,7,12],[0,7,24],[1,7,16],[1,7,18],[1,7,24]],person_setting:[[1,6,24]],person_shield:[[1,7,24]],person_waveform:[[1,2,24]],phone:[[0,2,24],[1,2,24]],picture_in_picture:[[0,2,24],[1,2,24]],picture_in_picture_combine:[[1,1,24]],pin:[[0,6,12],[0,6,24],[1,6,16],[1,6,
24]],pin_off:[[1,1,24]],play_arrow:[[0,7,24],[1,7,24]],play_arrow_circle:[[0,2,24],[1,2,24]],play_arrow_disabled:[[0,1,12],[0,1,24]],play_arrow_half_circle:[[0,5,24],[1,5,24]],podcast:[[0,6,24],[1,6,12],[1,6,16],[1,6,18],[1,6,24]],podcast_add:[[0,2,24],[1,2,24]],podcast_cairo:[[0,2,24],[1,2,24]],podcast_check:[[0,2,24]],point_2x:[[1,1,24]],point_3x:[[1,3,24]],point_5x:[[1,3,24]],point_8x:[[1,1,24]],poll:[[1,9,16],[1,9,24],[1,9,40]],pound:[[1,3,24]],presentation:[[1,2,24]],presentation_remove:[[1,
1,24]],price_tag:[[0,8,12],[0,8,24],[1,8,24]],price_tag_heart:[[1,2,24]],qr_code:[[1,3,24]],question_circle:[[1,5,24]],question_circle_cairo:[[1,2,24]],question_head:[[1,2,24]],quotation_mark:[[0,1,24],[1,1,24]],quotation_mark_off:[[1,1,24]],radar_live:[[0,7,24],[1,7,12],[1,7,16],[1,7,24]],radar_live_cairo:[[0,2,24],[1,2,24]],rating_down:[[1,1,24]],rating_up:[[1,7,12],[1,7,16],[1,7,24]],record:[[0,2,24]],remix:[[1,2,16],[1,2,24]],replay_arrow:[[1,1,24]],rotate_90:[[1,1,24]],rotate_90_clockwise:[[1,
2,24]],rss:[[1,2,16],[1,2,24]],rss_off:[[1,1,16],[1,1,24]],ruby:[[1,2,12],[1,2,16],[1,2,18],[1,2,24]],samples:[[0,2,24],[1,2,24]],saturation:[[1,2,24]],scale:[[1,4,24]],scissors:[[0,8,12],[0,8,24],[1,8,24]],scissors_cairo:[[0,2,24],[1,2,24]],scissors_cut:[[1,4,16],[1,4,18],[1,4,24]],screen_default:[[0,1,24],[0,1,48],[1,1,24],[1,1,48]],screen_full:[[1,7,24]],screen_full_cairo:[[1,1,24]],screen_full_exit:[[1,6,24]],screen_full_exit_cairo:[[1,1,24]],screen_fullscreen:[[0,1,24],[0,1,48],[1,1,24],[1,1,
48]],screen_light:[[1,1,24]],screen_mini_player:[[0,1,24],[0,1,48],[1,1,24],[1,1,48]],screen_multi_view:[[0,3,24],[1,3,24]],screen_rotation:[[1,2,18],[1,2,24]],screen_switch:[[0,1,24],[1,1,24]],screen_theatre:[[0,1,24],[0,1,48],[1,1,24],[1,1,48]],screen_vertical:[[1,1,24]],screen_x:[[1,2,24]],sd:[[0,3,24],[1,3,24]],search:[[0,13,24],[1,13,24]],search_cairo:[[1,2,24]],search_superscript:[[1,1,24]],send:[[0,4,24,!0],[1,4,24,!0]],settings_remote:[[1,1,24]],shadow_hard:[[0,2,24]],shadow_soft:[[0,2,24]],
shapes:[[0,3,24],[1,3,24]],share:[[0,11,24,!0],[0,11,32,!0],[1,11,16,!0],[1,11,24,!0]],share_cairo:[[1,2,24]],share_ios:[[1,2,24]],share_link:[[0,1,24],[1,1,24]],shield:[[1,6,24]],shield_add:[[1,2,24]],shield_check:[[1,1,24]],shield_empty:[[0,1,16],[0,1,18],[0,1,24],[1,1,16],[1,1,18],[1,1,24]],shield_off:[[1,1,24]],shield_overflow:[[1,2,24]],shield_plus:[[1,1,24]],shield_search:[[1,2,24]],shorts_layout_bottom:[[1,1,24]],shorts_layout_centered_square:[[1,1,24]],shorts_layout_foreground:[[1,1,24]],
shorts_layout_landscape_bottom:[[1,1,24]],shorts_layout_landscape_top:[[1,1,24]],shorts_layout_left:[[1,1,24]],shorts_layout_pip:[[1,1,24]],shorts_layout_right:[[1,1,24]],shorts_layout_single:[[1,1,24]],shorts_layout_top:[[1,1,24]],skip_back_10:[[0,1,24]],skip_back_15:[[0,1,24]],skip_back_20:[[0,1,24]],skip_back_30:[[0,1,24]],skip_back_5:[[0,1,24]],skip_back_60:[[0,1,24]],skip_down:[[0,5,24]],skip_forward_10:[[0,1,24]],skip_forward_15:[[0,1,24]],skip_forward_20:[[0,1,24]],skip_forward_30:[[0,1,24]],
skip_forward_5:[[0,1,24]],skip_forward_60:[[0,1,24]],skip_next:[[0,7,24]],skip_previous:[[0,6,24]],skip_up:[[0,5,24]],slash_circle_left:[[1,7,24]],slash_circle_right:[[1,2,24]],soccer_ball:[[1,3,24]],soccer_card:[[0,2,12],[0,2,16],[0,2,24]],spacebar:[[1,2,24]],spark:[[0,9,12],[0,9,16],[0,9,24]],spark_chat:[[1,1,16],[1,1,24]],spark_image:[[1,2,24]],spark_lightbulb:[[0,2,24],[1,2,24]],spark_message_bubble:[[1,4,16],[1,4,24]],spark_message_bubble_left:[[1,1,24]],spark_music:[[1,2,24]],spark_pencil:[[1,
2,24]],spark_radar:[[0,1,12],[0,1,16],[0,1,24],[1,1,12],[1,1,16],[1,1,24]],spark_text:[[1,1,24]],spark_video:[[1,2,24]],sparkle:[[0,4,24],[1,4,24]],speaker:[[1,2,24]],speaker_group:[[1,1,24]],speaker_group_off:[[1,1,24]],speaker_headset:[[1,2,24]],speaker_off:[[1,1,24]],split:[[1,4,24]],sports:[[0,1,24]],spotlight:[[0,3,24],[1,3,24]],star:[[0,5,16],[0,5,24],[1,5,16],[1,5,24]],star_circle:[[0,5,12],[0,5,16],[0,5,18],[0,5,24]],star_circle_ribbon:[[0,1,16],[0,1,20],[0,1,24],[0,1,36],[1,1,16],[1,1,20],
[1,1,24],[1,1,36]],star_half:[[0,2,16],[0,2,24]],star_shooting:[[0,3,24],[1,3,24]],statistics_graph:[[1,2,24]],sticker:[[1,2,24]],stop:[[0,4,24]],stopwatch:[[0,5,16],[0,5,24],[1,5,16],[1,5,24]],stopwatch_10:[[0,1,24]],stopwatch_3:[[0,1,24]],subscriptions:[[0,11,24],[1,11,18],[1,11,24]],subscriptions_cairo:[[0,2,24],[1,2,24]],subtitles:[[0,4,12],[0,4,24],[1,4,24]],super_chat:[[1,8,18],[1,8,24]],super_sticker:[[0,8,16],[0,8,24],[1,8,16],[1,8,24]],super_store:[[1,3,24]],superstar:[[1,1,24]],tablet:[[1,
1,24]],target:[[0,2,24],[1,2,16],[1,2,24]],target_add:[[0,2,24],[1,2,16],[1,2,24]],template_add:[[1,3,16],[1,3,24]],template_play:[[0,3,24],[1,3,24]],text:[[0,9,24],[1,9,16],[1,9,18],[1,9,24]],text_bell_cairo:[[1,1,12],[1,1,16],[1,1,18],[1,1,24]],text_bold:[[1,1,24]],text_box:[[1,5,24]],text_italic:[[1,1,24]],text_outline:[[1,2,24]],text_preset:[[1,1,24]],text_serif:[[1,1,24]],text_shadow:[[1,2,24]],text_strikethrough:[[1,1,24]],text_underline:[[1,1,24]],theme_switch:[[0,1,24],[1,1,24]],thermometer:[[1,
2,24]],thumb_down:[[0,24,16],[0,24,24],[0,24,36],[1,24,16],[1,24,24],[1,24,36]],thumb_up:[[0,22,16],[0,22,24],[0,22,36],[1,22,16],[1,22,24],[1,22,36]],thumb_up_cairo:[[0,2,24],[1,2,24]],thumb_up_down:[[0,3,24],[1,3,24]],tic_tac_toe:[[0,4,12],[0,4,24],[1,4,16],[1,4,24]],tic_tac_toe_cairo:[[0,2,24],[1,2,24]],ticket_star:[[1,1,24]],tilt:[[1,4,24]],time_stamp_plus:[[1,1,24]],timeline:[[1,3,24]],toolbox:[[1,4,24]],transcript:[[1,2,16],[1,2,24]],transcript_search:[[1,1,16],[1,1,24]],transition:[[0,5,24],
[1,5,24]],translate:[[1,4,16],[1,4,24]],trash_can:[[1,9,16],[1,9,18],[1,9,24]],triangle_down:[[1,7,24]],triangle_three_left:[[0,1,24]],triangle_three_right:[[0,1,24]],trophy:[[0,3,24],[1,3,24]],trophy_cairo:[[0,2,24],[1,2,24]],trophy_star:[[1,1,24]],truck:[[0,5,24],[1,5,24]],tv:[[0,8,12],[0,8,16],[0,8,24],[1,8,16],[1,8,24]],tv_arrow_left:[[1,2,24]],tv_circle:[[0,3,24],[1,3,24]],tv_dollar_sign:[[0,1,24],[1,1,24]],tv_off:[[1,2,24]],tv_queue:[[1,4,24]],tv_queue_chevron:[[1,2,24]],upload:[[1,5,24]],uploading:[[1,
1,24]],variable:[[1,4,24]],verified_circle:[[1,4,24]],video_camera:[[0,9,24],[1,9,24]],video_camera_add:[[1,2,24]],video_camera_off:[[1,1,24]],video_link:[[1,5,16],[1,5,24]],video_stitch:[[1,2,24]],volume_down:[[0,2,24],[1,2,24]],volume_fade:[[1,2,24]],volume_off:[[0,4,24],[1,4,24]],volume_on:[[0,3,24],[1,3,24]],volume_stable:[[0,1,24],[1,1,24]],vr:[[0,7,24],[1,7,24]],waveform:[[1,3,24]],waveform_music:[[0,2,18],[0,2,24],[0,2,48]],waveform_spark:[[1,2,24]],wrench:[[0,3,24],[1,3,24]],x:[[1,11,18],
[1,11,24]],x_cairo:[[1,1,24]],x_circle:[[1,8,24]],x_mark:[[1,4,20],[1,4,24]],x_octagon:[[1,2,24]],yen_sign_container:[[0,2,24],[1,2,24]],youtube_improve_tv:[[1,1,24]],youtube_kids:[[0,5,24],[1,5,24]],youtube_linked_tv:[[1,4,24]],youtube_logo_icon:[[0,6,24],[1,6,24]],youtube_mix:[[1,5,12],[1,5,16],[1,5,24]],youtube_music:[[0,7,24],[1,7,24]],youtube_music_cairo:[[1,2,24]],youtube_originals:[[0,6,24],[1,6,24]],youtube_shorts:[[0,10,12],[0,10,20],[0,10,24],[1,10,20],[1,10,24]],youtube_shorts_arrow_down:[[1,
1,24]],youtube_shorts_arrow_left:[[1,2,24]],youtube_shorts_arrow_up:[[1,1,24]],youtube_shorts_cairo:[[0,2,24],[1,2,24]],youtube_shorts_camera:[[1,3,24]],youtube_shorts_chevron_left_ios:[[1,2,24]],youtube_shorts_green_screen:[[0,1,24],[1,1,24]],youtube_shorts_heart:[[0,2,24],[0,2,32]],youtube_shorts_message_bubble_right:[[0,2,24],[0,2,32]],youtube_shorts_no_triangle:[[0,4,16],[0,4,24],[0,4,32],[1,4,16],[1,4,24],[1,4,32]],youtube_shorts_overflow_vertical:[[1,2,24]],youtube_shorts_plus:[[1,5,16],[1,
5,24]],youtube_shorts_remix:[[0,2,24],[0,2,32]],youtube_shorts_search:[[1,3,24]],youtube_shorts_share:[[0,2,24],[0,2,32]],youtube_shorts_sticker:[[1,1,18],[1,1,24]],youtube_shorts_thumb_down:[[0,2,24],[0,2,32]],youtube_shorts_thumb_up:[[0,2,24],[0,2,32]],youtube_shorts_waveform:[[1,2,18],[1,2,24]],youtube_studio:[[0,8,24],[1,8,24]],youtube_tv:[[0,8,24],[1,8,24]],zoom_auto:[[0,1,24],[1,1,24]]};var zI0={accessibility:[[0,4,24],[1,4,24]],account_link:[[0,8,24],[1,8,24]],account_link_error:[[1,6,24]],add:[[1,9,18],[1,9,24]],add_circle:[[0,6,18],[0,6,24],[1,6,24],[1,6,36]],add_square_stack:[[1,1,24]],add_tv:[[1,1,24]],add_tv_chevron_right:[[1,1,24]],adjust:[[0,9,24],[1,9,24]],airplane:[[0,5,24],[0,5,48],[1,5,24]],airplay:[[1,6,24]],airplay_slash:[[1,1,24]],album:[[0,7,24],[1,7,24],[1,7,48]],alert_bubble:[[1,1,24]],alert_circle:[[0,10,24],[1,10,24],[1,10,48]],alert_octagon:[[0,2,24],[1,2,24]],
alert_triangle:[[0,10,12],[0,10,24],[0,10,48],[1,10,24]],ambient_mode:[[1,1,24]],ampersand:[[1,1,24]],api:[[0,2,24],[1,2,24]],archive:[[1,1,24]],arrow_arc_forward:[[1,1,24]],arrow_clockwise:[[1,1,24]],arrow_counterclockwise:[[1,2,24],[1,2,48]],arrow_counterclockwise_dashed:[[1,1,24]],arrow_down:[[1,3,24]],arrow_down_circle:[[0,4,24],[1,4,24]],arrow_down_right:[[1,1,24]],arrow_flip:[[1,10,24]],arrow_in:[[1,7,24]],arrow_left:[[1,8,24,!0],[1,8,36,!0]],arrow_merge:[[1,2,24]],arrow_out:[[1,2,24]],arrow_right:[[1,
3,24,!0]],arrow_right_rectangle:[[0,2,24],[1,2,24]],arrow_solid_down:[[0,4,18],[0,4,24],[1,4,18],[1,4,24]],arrow_solid_up:[[0,4,18],[0,4,24],[1,4,18],[1,4,24]],arrow_split:[[1,3,24]],arrow_split_alert:[[1,1,24]],arrow_swap_horizontal:[[1,5,24]],arrow_trend_down:[[1,1,24]],arrow_trend_up:[[1,2,12],[1,2,24]],arrow_turn_down_right:[[1,1,24]],arrow_up:[[1,3,24]],arrow_up_circle:[[0,4,24],[1,4,24]],arrow_up_left:[[1,1,24]],arrow_up_rectangle_portrait:[[1,1,24]],arrow_up_right:[[1,2,18],[1,2,24],[1,2,36]],
audio:[[0,14,12],[0,14,18],[0,14,24],[1,14,12],[1,14,18],[1,14,24],[1,14,48]],audio_arrow_flip:[[0,2,24],[1,2,24]],audio_badge:[[0,3,24],[1,3,24]],audio_scissors:[[1,1,24]],audio_slash:[[0,2,24],[1,2,24]],audio_spark:[[1,1,24]],audio_square_stack:[[0,2,24],[1,2,24]],audio_staff:[[0,2,24],[1,2,24]],backspace:[[0,5,24],[1,5,24]],bag:[[0,7,24],[1,7,24]],bag_bookmark:[[1,2,24]],basketball:[[0,2,24],[1,2,24]],beaker:[[1,2,24]],bed:[[0,1,24],[0,1,48],[1,1,24],[1,1,48]],bell:[[0,10,24],[1,10,24]],bell_slash:[[1,
1,24]],bell_waves:[[0,2,24],[1,2,24]],blur:[[1,2,24]],book:[[0,3,24],[1,3,24]],book_audio:[[1,1,24]],bookmark:[[0,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_ellipsis:[[1,1,24]],bubble_gear:[[1,1,24]],bubble_list:[[1,1,24]],bubble_pencil:[[1,1,24]],bubble_slash:[[0,2,24],[1,2,24]],bubble_slow:[[0,2,24],[0,2,48],[1,2,24],[1,2,
48]],bubble_spark:[[1,1,24]],bubble_sparkles:[[1,1,24]],bubble_stack:[[0,2,24],[1,2,24]],bug:[[0,3,24],[1,3,24]],business:[[0,4,24],[1,4,24]],cable:[[1,2,24]],calculator:[[0,3,24],[1,3,24]],calendar:[[0,4,24],[1,4,24]],calendar_event:[[0,2,24],[1,2,24]],calendar_today:[[1,1,24]],camera:[[0,10,24],[1,10,18],[1,10,24]],camera_audio:[[1,5,24]],camera_flip:[[1,4,24]],camera_hashtag:[[1,5,24]],camera_sparkles:[[1,1,24]],camera_switch:[[0,3,24],[1,3,24]],card:[[0,3,24]],cart:[[0,4,24],[1,4,24]],cart_add:[[1,
1,24]],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,13,12],[1,13,18],[1,13,24],[1,13,36]],check_circle:[[0,10,24],[1,10,24]],check_done:[[1,1,24]],check_done_slash:[[1,1,24]],check_shield:[[1,1,24]],check_square:[[0,2,24],[1,2,24]],check_square_stack:[[0,1,24]],chevron_collapse:[[1,3,24]],chevron_down:[[1,9,18],
[1,9,24]],chevron_down_circle:[[0,3,24],[1,3,24]],chevron_down_end:[[1,1,24]],chevron_expand:[[1,5,24]],chevron_left:[[1,9,24,!0]],chevron_left_circle:[[0,3,24],[1,3,24]],chevron_left_end:[[1,1,24]],chevron_left_ios:[[1,2,24]],chevron_right:[[1,7,18,!0],[1,7,24,!0]],chevron_right_circle:[[0,3,24],[1,3,24]],chevron_right_end:[[1,1,24]],chevron_right_square:[[1,1,24]],chevron_up:[[1,8,24]],chevron_up_circle:[[0,3,24],[1,3,24]],chevron_up_end:[[1,1,24]],chromecast:[[0,10,24],[1,10,18],[1,10,24],[1,10,
36]],chromecast_mobile:[[1,4,24],[1,4,36]],chromecast_waveform:[[1,2,24]],circle:[[0,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,10,24],[0,10,48],[1,10,24]],clock_arrow_clockwise:[[1,1,24]],clock_half_dashed:[[1,1,24]],clock_split:[[0,2,24],[1,2,24]],clock_split_alert:[[0,2,24],[1,2,24]],closed_captions:[[0,2,24],[1,2,24]],cloud:[[1,2,24]],cloud_arrow_down:[[1,3,24]],
cloud_arrow_up:[[0,5,24],[1,5,24]],cloud_check:[[0,3,24],[1,3,24]],cloud_ellipsis:[[0,3,24],[1,3,24]],cloud_slash:[[1,2,24],[1,2,48]],cms_allowlist:[[0,2,24],[1,2,24]],code:[[1,2,24]],compare:[[1,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,5,18],[0,5,24],[1,5,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:[[0,23,12],[0,23,24],[1,23,12],[1,23,24]],dollar_sign_rectangle:[[1,1,24]],dollar_sign_tv:[[0,2,24],[1,2,24]],dot:[[0,1,24]],download:[[1,11,18],[1,11,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,6,24],[1,6,24]],eye_slash:[[1,1,24]],eyedropper:[[1,2,24]],face_happy:[[0,11,24],[0,11,36],[0,11,48],[1,11,24],[1,11,36]],
face_image:[[1,2,24]],face_meh:[[0,9,24],[1,9,24]],face_neutral:[[0,4,24],[0,4,36],[1,4,24],[1,4,36]],face_paintbrush:[[1,2,24]],face_sad:[[0,11,24],[0,11,36],[1,11,24],[1,11,36]],face_scale:[[1,1,24]],face_sparkles:[[0,2,24],[1,2,24]],face_unhappy:[[0,10,24],[0,10,36],[1,10,24],[1,10,36]],face_upset:[[0,9,24],[1,9,24]],face_very_happy:[[0,11,24],[0,11,36],[1,11,24],[1,11,36]],face_very_sad:[[0,9,24],[1,9,24]],fashion:[[0,4,24],[1,4,24]],fast_forward:[[0,5,24],[1,5,24]],fast_rewind:[[0,2,24],[1,2,
24]],film_strip:[[0,7,24],[0,7,48],[1,7,24]],film_strip_add:[[1,2,24]],film_strip_audio:[[1,1,24]],filter:[[1,1,24]],filter_audio:[[1,1,24]],filter_photo:[[0,8,24],[1,8,24]],fireworks:[[1,3,24]],flag:[[0,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,4,24],[1,4,24],[1,4,36]],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,4,24]],glow:[[1,2,24]],google:[[0,1,24]],google_blogger:[[0,1,24]],google_drive_add:[[1,1,24]],google_lens:[[1,4,24]],google_meet:[[0,2,24],[1,2,24]],google_quick_share:[[1,1,24]],graduation_cap:[[0,3,18],[0,3,24],[1,3,24]],greater_than:[[1,1,24]],greater_than_n20:[[1,1,24]],greater_than_or_equal_to:[[1,1,24]],hand:[[1,2,24]],hand_wave:[[1,2,24]],hands_clap:[[1,1,24]],hands_heart:[[0,3,24],[1,3,24]],hashtag:[[1,2,24]],
hd:[[0,8,24],[1,8,24]],headset:[[0,8,24],[1,8,24]],hearing:[[0,2,24],[1,2,24]],heart:[[0,18,24],[1,18,18],[1,18,24]],heart_circle:[[1,2,24]],heart_cube:[[1,1,24]],heart_slash:[[1,1,24]],help_bubble:[[0,2,24],[1,2,24]],help_circle:[[1,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,3,18],[1,3,24]],hype:[[0,2,24],[1,2,24]],image:[[0,8,24],[1,8,24]],image_add:[[0,4,24],[1,4,24]],image_frame:[[1,1,24]],image_list:[[0,2,24],[1,2,24]],
image_list_slash:[[1,1,24]],image_spark:[[1,1,24]],image_stack:[[0,2,24],[1,2,24]],image_viewfinder:[[1,1,24]],incognito:[[0,9,24],[1,9,24]],infinity:[[1,2,24]],info_circle:[[1,10,18],[1,10,24]],info_circle_spark:[[1,1,24]],journey:[[1,2,24]],key:[[1,5,24]],keyboard:[[0,4,24],[1,4,24]],label:[[0,4,24],[1,4,24]],label_slash:[[0,2,24],[1,2,24]],laptop:[[1,3,24]],laptop_mobile:[[0,4,24],[1,4,24]],layout_bottom:[[1,1,24]],layout_foreground:[[1,1,24]],layout_full:[[1,1,24]],layout_left:[[1,1,24]],layout_middle:[[1,
1,24]],layout_picture_in_picture:[[1,1,24]],layout_right:[[1,1,24]],layout_top:[[1,1,24]],leaf:[[1,2,24]],less_than:[[1,1,24]],less_than_n4:[[1,1,24]],less_than_or_equal_to:[[1,1,24]],license:[[0,2,24],[1,2,24]],license_alert:[[1,1,24]],license_search:[[1,1,24]],license_slash:[[1,1,24]],lightbulb:[[0,4,24],[1,4,24]],link:[[1,8,18],[1,8,24]],link_slash:[[1,1,24]],live:[[1,1,24]],live_photo:[[1,2,24]],live_waves:[[1,2,18],[1,2,24]],location_pin:[[0,2,24],[1,2,24]],location_pin_slash:[[1,1,24]],lock:[[0,
13,12],[0,13,24],[1,13,18],[1,13,24],[1,13,48]],lock_clock:[[1,1,24]],lock_n2:[[1,1,24]],lock_open:[[0,4,24],[1,4,24]],magic_wand:[[0,3,24],[1,3,24]],mail:[[0,8,24],[1,8,24]],map:[[1,3,24]],medal:[[1,2,24]],medal_star:[[1,2,24]],megaphone:[[0,4,24],[1,4,24]],memberships:[[0,9,24],[0,9,36],[1,9,24]],memberships_gift:[[1,1,24]],mention:[[1,4,24]],menu:[[1,1,24]],mic:[[0,13,18],[0,13,24],[0,13,48],[1,13,18],[1,13,24],[1,13,48]],mic_slash:[[1,2,24]],minus:[[1,2,18],[1,2,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_arrow_in:[[1,1,24]],mobile_arrow_out:[[1,1,24]],mobile_check:[[1,2,24]],mobile_landscape:[[0,3,24],[1,3,24]],motion:[[1,2,24]],move:[[1,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]],news_alert:[[0,1,24]],node_left:[[1,2,24]],node_right:[[1,2,24]],note:[[0,1,18],[0,1,24],[1,1,18],[1,1,24]],note_spark:[[0,2,18],[0,2,24],[1,2,18],[1,2,24]],open_in_panel:[[1,1,24]],originals:[[0,1,24],[1,1,24]],overflow_horizontal:[[1,6,24],[1,6,36]],overflow_vertical:[[1,12,24],[1,12,36]],page_search:[[1,1,24]],paint_bucket:[[1,3,24]],paint_palette:[[1,1,24]],panels:[[0,
2,24],[1,2,24]],pause:[[0,9,24],[0,9,36],[0,9,48],[1,9,24]],pause_circle:[[0,2,24],[1,2,24]],pause_history:[[1,1,24]],pawprint:[[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,2,24],[1,2,24],[1,2,48]],person_check:[[1,1,24]],person_child:[[0,1,24],[1,1,24]],person_circle:[[0,10,24],[1,10,24],[1,10,48]],
person_circle_slash:[[1,2,24]],person_gear:[[0,2,24],[1,2,24]],person_shield:[[1,7,24]],person_square:[[0,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,2,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,3,24],[0,3,36],[0,3,48],[1,3,24]],play_circle:[[0,
2,24],[0,2,48],[1,2,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,2,24],[1,2,18],[1,2,24]],player_default:[[0,1,24],[1,1,24]],player_full_enter:[[1,1,24]],player_full_enter_alt:[[1,1,24]],player_full_enter_portrait:[[1,2,24]],player_full_exit:[[1,1,24]],player_full_exit_alt:[[1,1,24]],player_mini_enter:[[0,1,24],[1,1,24]],player_mini_exit:[[1,1,24]],player_multiview:[[0,1,24],[1,1,24]],
player_switch:[[0,1,24],[1,1,24]],player_theater:[[0,1,24],[1,1,24]],playlist:[[1,3,12],[1,3,24],[1,3,48]],playlist_add:[[1,1,24]],playlist_audio:[[0,2,24],[1,2,24],[1,2,48]],playlist_audio_slash:[[1,1,24]],playlist_check:[[1,1,24]],playlist_pencil:[[1,2,24],[1,2,48]],playlist_x:[[1,1,24]],podcast:[[0,6,12],[0,6,24],[1,6,12],[1,6,18],[1,6,24],[1,6,48]],podcast_add:[[0,2,24],[1,2,24]],podcast_check:[[0,2,24]],point2x:[[1,1,24]],point3x:[[1,1,24]],point5x:[[1,1,24]],point8x:[[1,1,24]],poll:[[1,9,18],
[1,9,24],[1,9,36]],premium:[[0,1,24],[1,1,24]],presentation:[[1,2,24]],price_tag:[[0,8,24],[0,8,48],[1,8,24]],price_tag_heart:[[1,2,24]],price_tag_rectangle:[[1,1,24]],qr_code:[[1,3,24]],qr_code_viewfinder:[[1,1,24]],question_head:[[1,2,24]],queue:[[1,1,24]],queue_last:[[1,1,24]],queue_next:[[1,1,24]],quiz:[[0,1,24],[1,1,24]],quote:[[0,1,24],[1,1,24]],quote_slash:[[0,1,24],[1,1,24]],record:[[0,2,24]],redo:[[1,1,24]],remix:[[1,2,24]],remote_waves:[[1,1,24]],repeat:[[0,1,24],[1,1,24]],repeat1:[[0,1,
24],[1,1,24]],replay:[[1,2,24],[1,2,36]],rotate_clockwise:[[1,1,24]],rotate_counterclockwise:[[1,1,24]],rotate_landscape:[[1,2,18],[1,2,24]],rotate_portrait:[[1,1,24]],rss:[[1,2,24]],rss_slash:[[1,1,24]],ruby:[[1,2,24]],samples:[[0,2,24],[1,2,24]],saturation:[[1,2,24]],scale:[[1,4,24]],scissors:[[0,8,24],[1,8,18],[1,8,24]],scissors_cut:[[1,4,24]],scribble:[[1,1,24]],sd:[[0,3,24],[1,3,24]],search:[[0,13,24],[1,13,24],[1,13,48]],search_shield:[[0,1,24],[1,1,24]],search_spark:[[1,1,24]],seek_forward:[[0,
1,24]],seek_rewind:[[0,1,24]],send:[[0,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:[[0,11,24,!0],[1,11,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,3,18],[0,3,24],[1,3,24]],shorts_empty:[[0,3,18],[0,3,24],[1,3,24]],shuffle:[[0,2,24],[1,2,24]],
skip10_back:[[1,2,24],[1,2,36]],skip10_forward:[[1,1,24]],skip15_back:[[1,1,24]],skip15_forward:[[1,1,24]],skip20_back:[[1,1,24]],skip20_forward:[[1,1,24]],skip30_back:[[1,1,24]],skip30_forward:[[1,2,24],[1,2,36]],skip5_back:[[1,1,24]],skip5_forward:[[1,1,24]],skip60_back:[[1,1,24]],skip60_forward:[[1,1,24]],skip_down:[[0,5,24],[1,5,24]],skip_next:[[0,7,12],[0,7,24],[0,7,36],[1,7,24]],skip_previous:[[0,6,24],[0,6,36],[1,6,24]],skip_up:[[0,5,24],[1,5,24]],slash_forward:[[1,1,24]],sleep_timer:[[0,2,
24],[1,2,24]],snowflake:[[1,1,24]],soccer_ball:[[1,3,24]],sonar:[[1,1,24]],sort:[[1,2,18],[1,2,24]],spacebar:[[1,2,24]],spark:[[0,9,12],[0,9,24],[1,9,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,5,18],[0,5,24],[0,5,36],[1,5,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,4,24],[0,4,36],[1,4,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,11,24],[1,11,24],[1,11,48]],subtitles:[[0,4,24],[1,4,24]],subtitles_bubble:[[1,1,24]],sum:[[1,1,24]],super_chat:[[0,8,24],[1,8,24]],super_star:[[1,1,24]],super_sticker:[[0,8,24],[1,8,24]],super_store:[[0,3,24],[1,3,24]],surround_sound:[[0,2,24],[1,2,24]],tablet_landscape:[[1,1,24]],target:[[1,2,24]],target_add:[[1,2,24]],template_add:[[1,3,24]],template_play:[[0,3,24],[1,3,24]],text_align_center:[[0,2,24],[1,2,24]],text_align_left:[[0,2,24],[1,2,24]],text_align_right:[[0,
2,24],[1,2,24]],text_bubble:[[0,3,24],[1,3,18],[1,3,24]],text_page:[[0,2,24],[1,2,24]],text_page_alert:[[1,1,24]],text_page_check:[[1,1,24]],text_page_info:[[1,1,24]],texture:[[1,1,24]],theater:[[1,1,24]],theme:[[0,2,24],[1,2,24]],thermometer:[[1,2,24]],thumb_down:[[0,24,18],[0,24,24],[0,24,36],[0,24,48],[1,24,18],[1,24,24],[1,24,36],[1,24,48]],thumb_up:[[0,22,18],[0,22,24],[0,22,36],[0,22,48],[1,22,18],[1,22,24],[1,22,36],[1,22,48]],thumb_up_down:[[0,3,24]],tilt:[[1,4,24]],timeline:[[1,3,24]],timeline_spark:[[1,
1,24]],timestamp_add:[[1,1,24]],toolbox:[[0,4,24],[1,4,24]],transcript:[[1,2,24]],transition:[[0,5,24],[1,5,24]],translate:[[1,4,18],[1,4,24]],trash_can:[[0,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,8,24],[1,8,24],[1,8,48]],tv_arrow_left:[[1,2,24]],tv_circle:[[0,3,24],[1,3,24]],tv_mobile:[[1,2,24],[1,2,36]],tv_slash:[[1,1,24]],unarchive:[[1,1,24]],undo:[[1,1,24]],upload:[[1,
5,24]],variable:[[1,4,24]],video:[[0,2,24],[1,2,24]],video_camera:[[0,9,24],[0,9,48],[1,9,24],[1,9,48]],video_camera_add:[[1,2,24]],video_camera_slash:[[1,1,24]],video_link:[[1,5,18],[1,5,24]],video_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,3,24],[1,3,48]],waveform_spark:[[1,2,24]],wrench:[[0,3,18],[0,3,24],[1,3,18],[1,3,24]],x:[[1,11,18],[1,11,24],[1,11,36]],x_circle:[[0,8,24],[1,8,18],[1,8,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 IiY={LIKE_DELHI_PLAYER:"LIKE",DISLIKE_DELHI_PLAYER:"DISLIKE",SHARE_DELHI_PLAYER:"SHARE",COMMENT_DELHI_PLAYER:"COMMENT",MESSAGE_BUBBLE_OVERLAP_DELHI_PLAYER:"MESSAGE_BUBBLE_OVERLAP",VOLUME_UP_DELHI_PLAYER_FILLED:"VOLUME_MAX",VOLUME_OFF_DELHI_PLAYER:"VOLUME_MUTE",VOLUME_DOWN_DELHI_PLAYER_FILLED:"VOLUME_MIN",CLOSED_CAPTION_DELHI_PLAYER:"CAPTIONS",CLOSED_CAPTION_DELHI_PLAYER_FILLED:"CAPTIONS",SUBTITLES_DELHI_PLAYER:"SUBTITLES",SUBTITLES_DELHI_PLAYER_FILLED:"SUBTITLES",PLAYER_FULL_ENTER_ALT:"PLAYER_FULL_ENTER_ALT",
PLAYER_FULL_EXIT_ALT:"PLAYER_FULL_EXIT_ALT",PAUSE_DELHI_PLAYER_FILLED:"PAUSE",PLAY_ARROW_DELHI_PLAYER_FILLED:"PLAY_ARROW"},AF=function(a){this.iconUrlProvider=a};
AF.prototype.resolveIcon=function(a,z){var I=IiY[a.iconName.toUpperCase()];I&&(a.iconName=I);var J=a.iconName;J=J.replace(/-/g,"_");a=Object.assign({},a,{iconName:this.mapIconTypeToStandardName(J,!!I)||J.toLowerCase()});if(_.K("enable_web_delhi_icons")||I){var r;return N5E(zI0,a,((r=this.iconUrlProvider)==null?void 0:r.getYtStandardUrl)||B5d,z)}var P;return N5E(jEZ,a,((P=this.iconUrlProvider)==null?void 0:P.getYtStandardUrl)||Ey7,z)};
AF.prototype.mapIconTypeToStandardName=function(a,z){return _.K("enable_web_delhi_icons")||z?aii[a.toUpperCase()]:eDJ[a.toUpperCase()]};
AF[zp]=[_.eL(cho)];var J14=new Set("audio_badge offline_pause pause play_all play_arrow youtube_music".split(" ")),r1E=new Set(["offline_downloading_eighty","offline_downloading_forty","offline_downloading_sixty","offline_downloading_twenty","offline_downloading_zero"]),PG0=function(a){this.urlProvider=this.iconUrlProvider=a};
_.b(PG0,AF);
PG0.prototype.resolveIcon=function(a,z){a.iconName==="youtube_logo"&&(a.iconName="yt-logo-updated");if(a.iconName==="youtube_premium_logo"||a.iconName==="youtube_red_logo")a.iconName="yt-logo-red-updated";var I=Object.assign({},a);a.iconName==="menu"&&(_.K("enable_web_delhi_icons")||(I.iconName="bars_3"),I.iconStyle="youtube_outline");a.iconSetName==="socialNetworksRound"&&(a.iconName==="mail"&&(I.iconName="email"),a.iconName==="embed"&&(I.iconSize=60));a.iconName==="more"&&(I.iconName="overflow_horizontal");
a.iconName==="fullscreen"&&(I.iconName="screen_full");a.iconName==="premium_standalone"&&(I.iconName="premium_standalone_cairo");_.K("enable_connect_icon_update_web")&&a.iconName==="account_linked"&&(I.iconName="circles_overlap_check",I.iconStyle="youtube_fill");_.K("enable_connect_icon_update_web")&&a.iconName==="account_unlinked"&&(I.iconName="circles_overlap",I.iconStyle="youtube_outline");J14.has(a.iconName)&&(I.iconStyle="youtube_fill");_.K("enable_web_delhi_icons")&&(a.iconName==="playlist_add"&&
(I.iconName="bookmark"),a.iconName==="offline_pin"&&(I.iconName="arrow_down_circle",I.iconStyle="youtube_fill"),r1E.has(a.iconName)&&(I.iconName+="_updated"));a=Object.assign({},I,{iconName:(AF.prototype.mapIconTypeToStandardName.call(this,I.iconName)||I.iconName).toLowerCase()});var J;return(a=N5E(kAf,a,((J=this.urlProvider)==null?void 0:J.getUrl)||gyi,z))?a:AF.prototype.resolveIcon.call(this,I,z)};
PG0[zp]=[_.eL(cho)];_.ZG4=1;var sv=function(a,z){this.JSC$17112_commandHandler=a;this.innertubeTransportService=z};
_.b(sv,wW);sv.prototype.resolveCommand=function(a,z){var I=this,J,r,P;return _.t(function(N){return(J=_.H(a,Hxf))?N.return(CGY(I,J,(r=z)==null?void 0:(P=r.form)==null?void 0:P.element)):N.return()})};
var CGY=function(a,z,I){z={profileCardContext:z.profileCardContext,profileOwnerExternalChannelId:z.profileOwnerExternalChannelId};var J=_.ex(pZO);return _.pJ(a.innertubeTransportService,z,J).then(function(r){if(!r)throw new _.Fn("GetProfileCard failed");if(r=r.popupCommand){a.JSC$17112_commandHandler.resolveCommand(r,{form:{element:I}});_.fJ(_.Kw(),66557);r=r==null?void 0:r.clickTrackingParams;var P=_.XZ();r&&P&&_.Kw().graftServerVe(r,P)}})};
sv[zp]=[_.j6,_.dY];var ny=function(){};
_.b(ny,wW);ny.prototype.resolveCommand=function(a){var z,I;return _.t(function(J){z=_.H(a,vBG);if(!z)return J.return();I=Number(z.enableDelayedPacfLoggingTvMs);if(isNaN(I)){var r=AL();f_w(r,z,0)}else f_w(AL(),z,I);_.nu(J)})};_.Ky=function(){};
_.b(_.Ky,wW);
_.Ky.prototype.resolveCommand=function(a,z){var I=this,J,r,P,N,u,E,O;return _.t(function(f){J=_.H(a,G2j);P=(r=z.form)==null?void 0:r.element;u=(N=P)==null?void 0:N.closest("ytd-enforcement-message-view-model");if(!J||!u)return f.return();I.allowAdsAction||(E=J.fundingChoiceInstructionPageUrl,I.allowAdsAction=new aHI(window,_.$k(E)));var A=I.allowAdsAction;A.wallElement=u;A.allowAdsPopup.style.setProperty("display","flex","important");var n=A.scrollManager;n.originalBodyOverflow=n.JSC$9957_domHelper.JSC$9284_document_.body.style.overflow;n.JSC$9957_domHelper.JSC$9284_document_.body.style.overflow=
"hidden";A.wallElement.style.setProperty("display","none","important");upG(A.accessibilityManager,A.allowAdsPopup.querySelector(".fc-whitelist-dialog"));if((O=I.allowAdsAction.allowAdsPopup)&&O instanceof HTMLElement)for(A=_.C(Object.entries({position:"absolute","z-index":"10000",top:"50%",left:"50%",transform:"translate(-50%, -50%)"})),n=A.next();!n.done;n=A.next()){var F=_.C(n.value);n=F.next().value;F=F.next().value;O.style.setProperty(n,F)}_.nu(f)})};
_.Ky.prototype.dispose=function(){this.allowAdsAction&&(this.allowAdsAction.tearDown(),this.allowAdsAction=void 0)};var FA=function(){};
_.b(FA,wW);FA.prototype.resolveCommand=function(a){var z;return _.t(function(I){z=_.H(a,z3l);if(!z)return I.return();_.dB0(a);_.nu(I)})};var H1=function(a){this.JSC$17127_commandHandler=a};
_.b(H1,wW);
H1.prototype.resolveCommand=function(a){var z=this,I,J,r,P,N,u,E,O;return _.t(function(f){if(f.nextAddress==1){I=_.H(a,GsI);if((J=I)==null||!J.text||!navigator.clipboard)return f.return();_.BP(f,2);return f.yield(navigator.clipboard.writeText(I.text),4)}if(f.nextAddress!=2){if(!I.successActions||I.successActions.length===0)return f.return();r=_.C(I.successActions);for(P=r.next();!P.done;P=r.next())N=P.value,z.JSC$17127_commandHandler.resolveCommand(N);return _.p1(f,0)}_.sk(f);if(!I.failureActions||I.failureActions.length===
0)return f.return();u=_.C(I.failureActions);for(E=u.next();!E.done;E=u.next())O=E.value,z.JSC$17127_commandHandler.resolveCommand(O);_.nu(f)})};
H1[zp]=[_.j6];var bD=function(a){this.JSC$17131_commandHandler=a};
_.b(bD,wW);
bD.prototype.resolveCommand=function(a,z){var I=this,J,r,P,N,u,E,O,f,A,n;return _.t(function(F){switch(F.nextAddress){case 1:J=_.H(a,NRj);if(!J)return F.return();_.BP(F,2);if(!J.imageBytes&&!J.imageUrl)throw Error("xi");if(!J.imageUrl){if(J.imageBytes){P=J.imageBytes;N=P.replace(/-/g,"+").replace(/_/g,"/");var h=AZp(N);r=_.TN(h)}F.jumpTo(4);break}return F.yield(fetch(J.imageUrl),5);case 5:return u=F.yieldResult,F.yield(u.blob(),6);case 6:E=F.yieldResult,r=_.TN(E);case 4:A=(O=z)==null?void 0:(f=O.form)==
null?void 0:f.element;n=document.createElement("a");_.Ua(n,r);A.appendChild(n);n.download="";n.click();A.removeChild(n);URL.revokeObjectURL(_.ij(r));J.successCommand&&I.JSC$17131_commandHandler.resolveCommand(J.successCommand);_.p1(F,0);break;case 2:_.sk(F),J.errorCommand&&I.JSC$17131_commandHandler.resolveCommand(J.errorCommand),_.nu(F)}})};
bD[zp]=[_.j6];var hF=function(a){this.store=a};
_.b(hF,wW);hF.prototype.resolveCommand=function(a){var z=this,I,J,r;return _.t(function(P){J=(I=_.H(a,_.Ukf))==null?void 0:I.entityBatchUpdate;if(!J)return P.jumpTo(0);r=Object.assign({},J,{mutations:[].concat(_.ih(J.mutations||[]))});return P.yield(_.sr(r,z.store),0)})};var N$G=function(a){this.JSC$17138_commandHandler=a;this.feedbackDialogMap=new Map};
N$G.prototype.openDialog=function(a,z){(a=this.feedbackDialogMap.get(a))&&this.JSC$17138_commandHandler.resolveCommand({openPopupAction:{popupType:"DIALOG",popup:a}},z)};
N$G[zp]=[_.j6];var Vv=new _.I4("FEEDBACK_CONTROLLER_TOKEN");var Qv=new _.I4("APP_STORE_TOKEN");var Sw=function(a,z){this.store=a;this.controller=z};
_.b(Sw,wW);Sw.prototype.resolveCommand=function(a,z){var I=this,J,r,P,N,u,E,O,f,A,n,F,h,v,d,W,l,q,m;return _.t(function(M){if(M.nextAddress==1){J=_.H(a,_.$K);if(P=(r=J)==null?void 0:r.contentId)for(u=_.C(((N=J)==null?void 0:N.actions)||[]),E=u.next();!E.done;E=u.next())O=E.value,tMM(I,O,P);n=(f=z)==null?void 0:(A=f.form)==null?void 0:A.element;return M.yield(_.N$(n,[a,{impression:(F=z)==null?void 0:F.disableClickTracking}]).catch(function(){}),2)}h=M.yieldResult;
((v=h)==null?0:(d=v.data)==null?0:(W=d.feedbackResponses)==null?0:W.length)&&(q=(l=h.data.feedbackResponses[0])==null?void 0:l.followUpDialog)&&P&&(m=I.controller)!=null&&m.feedbackDialogMap.set(P,q);_.nu(M)})};
var tMM=function(a,z,I){var J=_.H(z,_.E_);if(J){J=_.C(J.commands||[]);for(var r=J.next();!r.done;r=J.next())tMM(a,r.value,I)}_.H(z,_.SG)&&a.store.dispatch(_.Q0("commandEntity",PTG(I),{key:I,command:z}));_.H(z,ixf)&&a.store.dispatch(_.Q0("commandEntity",PTG(I),{key:I,command:z}))};
Sw[zp]=[Qv,Vv];var iD=function(a){this.controller=a};
_.b(iD,wW);iD.prototype.resolveCommand=function(a,z){var I=this,J,r,P,N;return _.t(function(u){J=_.H(a,_.DR);P=(r=J)==null?void 0:r.targetId;if(((N=J)==null?void 0:N.signal)!=="TELL_US_WHY"||!P)return u.return();I.controller.openDialog(P,z);_.nu(u)})};
iD[zp]=[Vv];var xC=function(a){this.store=a};
_.b(xC,wW);xC.prototype.resolveCommand=function(a,z){var I=this,J,r,P,N,u,E,O;return _.t(function(f){J=_.H(a,a6m);P=(r=J)==null?void 0:r.contentId;E=(N=z)==null?void 0:(u=N.form)==null?void 0:u.element;O=_.N$(E,[a]);P&&I.undo(P);return f.yield(O,0)})};
xC.prototype.undo=function(a){this.store.dispatch(_.Q0("commandEntity",PTG(a),{key:a,command:void 0}))};
xC[zp]=[Qv];var v1=function(a){this.JSC$17153_commandHandler=a};
_.b(v1,wW);v1.prototype.resolveCommand=function(a){var z=this,I,J,r,P,N,u,E,O;return _.t(function(f){I=_.H(a,j4e);J=I.flowStateKey;r=I.validationFailureCommand;P=I.submitValidFormCommand;N=tep(_.qA,[J||""]);u=_.H(N,INX);((E=u)==null?0:E.isValid)&&P&&z.JSC$17153_commandHandler.resolveCommand(P);((O=u)==null?0:O.isValid)||!r||z.JSC$17153_commandHandler.resolveCommand(r);_.nu(f)})};
v1[zp]=[_.j6];var G_=function(a){this.innertubeTransportService=a};
_.b(G_,wW);G_.prototype.resolveCommand=function(a,z){var I=this,J;return _.t(function(r){return r.yield(_.y7(I.innertubeTransportService,a,(J=z)==null?void 0:J.form).then(function(P){var N,u;z==null||(N=z.commandController)==null||(u=N.onSuccess)==null||u.call(N,a,P)},function(P){var N,u;
z==null||(N=z.commandController)==null||(u=N.onServerError)==null||u.call(N,a,P)}),0)})};
G_[zp]=[_.dY];var $C=function(){};
_.b($C,wW);$C.prototype.resolveCommand=function(a){var z,I,J,r;return _.t(function(P){if(z=_.H(a,_.KJw)){if(I=z.gtmId)J=_.Xw("GL",""),_.dr(I,J);(r=z.gtmData)&&_.Ww(r)}_.nu(P)})};var XA=function(a,z){this.innertubeTransportService=a;this.JSC$17164_actionRouter=z};
_.b(XA,wW);XA.prototype.resolveCommand=function(a){var z=this,I,J;return _.t(function(r){I=_.H(a,eCI);if(!I)return r.return();J=I.command;if(!J)return r.return();z.JSC$17164_actionRouter.triggerAction("yt-insert-rich-section-action",I);return r.yield(_.y7(z.innertubeTransportService,J,{disableCache:!0}),0)})};
XA[zp]=[_.dY,rR];nym.bind(null,mB);var u0Z=nym.bind(null,$FG);FEp.bind(null,mB);var E7Z=FEp.bind(null,$FG);bsG.bind(null,mB);var B$0=bsG.bind(null,$FG);var T_=function(){};
_.b(T_,wW);
T_.prototype.resolveCommand=function(a){var z,I,J,r,P,N,u,E,O,f;return _.t(function(A){z=_.H(a,oM1);if(!z)return A.return();J=((I=z.operations)==null?void 0:I.operations)||[];r=_.C(J);for(P=r.next();!P.done;P=r.next())if(N=P.value,N.insertItemSectionContent){var n=N.insertItemSectionContent,F=n.contents||[];n.insertByPositionInSection?u0Z(n.insertByPositionInSection.sectionTargetId,F,n.insertByPositionInSection.position):n.insertByRelativePositionInSection&&n.insertByRelativePositionInSection.sectionTargetId&&n.insertByRelativePositionInSection.itemTargetId&&
E7Z(n.insertByRelativePositionInSection.sectionTargetId,n.insertByRelativePositionInSection.itemTargetId,F,n.insertByRelativePositionInSection.relativePosition)}else N.replaceSection?(n=N.replaceSection,F={},n.replaceByTargetId?F=n.replaceByTargetId:n.replaceByGroupId&&(F={targetId:n.replaceByGroupId.groupId,newContent:n.replaceByGroupId.newContent,undoKey:""}),F.newContent&&dFi(F.targetId,{continuationItems:[F.newContent]})):N.removeItem?(n=N.removeItem,n.removeByTargetId&&n.sectionTargetId&&B$0(n.sectionTargetId,
n.removeByTargetId.targetIds||[])):N.removeSection&&(N.removeSection.removeByTargetId?(u=void 0,g70(((u=N.removeSection)==null?void 0:u.removeByTargetId.targetIds)||[])):N.removeSection.removeByGroupId&&(E=void 0,g70(((E=N.removeSection)==null?void 0:E.removeByGroupId.groupIds)||[])));f=((O=z.operations)==null?void 0:O.scrollConfig)||{};OG0(f);_.nu(A)})};
var g70=function(a){a=_.C(a);for(var z=a.next();!z.done;z=a.next())dFi(z.value,{continuationItems:[]})},OG0=function(a){if(a.scrollToItem){var z=a.scrollToItem.item||{},I=z.itemTargetId;
z=z.sectionTargetId;if(I&&z){var J=document.querySelector("[data-target-id="+z+"]"),r=J==null?void 0:J.querySelector("[data-target-id="+I+"]");J&&r&&setTimeout(function(){var P=r.offsetTop-J.offsetTop,N;if(((N=a.scrollToItem)==null?void 0:N.scrollPosition)==="SCROLL_POSITION_CENTER")P-=J.offsetHeight/2,P+=r.offsetHeight/2;else{var u;((u=a.scrollToItem)==null?void 0:u.scrollPosition)==="SCROLL_POSITION_END"&&(P-=J.offsetHeight,P+=r.offsetHeight)}J.scroll({top:P,behavior:"smooth"})},100)}}};var dm=new _.I4("CLIENT_NAME_TOKEN");var fi0=new _.I4("DEFAULT_STORE_EXPIRATION_TOKEN");var EUd=new _.I4("CLIENT_LOCATION_SERVICE_TOKEN");var W1=function(a,z,I){this.clientName=a||_.Xw("INNERTUBE_CLIENT_NAME","WEB");this.clientLocationService=z||_.$h.getInstance();this.JSC$17192_commandHandler=I||_.Og.instance};
_.b(W1,wW);W1.prototype.resolveCommand=function(a){var z=this,I,J;return _.t(function(r){J=(I=_.H(a,yAj))==null?void 0:I.onComplete;z.clientLocationService.clearLocationPlayabilityToken(z.clientName);J&&z.JSC$17192_commandHandler.resolveCommand(J);_.nu(r)})};
W1[zp]=[dm,EUd,_.j6];var oe=function(a){this.innertubeTransportService=a};
_.b(oe,wW);oe.prototype.resolveCommand=function(a,z){var I=this,J,r,P,N;return _.t(function(u){P=(J=z)==null?void 0:(r=J.form)==null?void 0:r.element;return u.yield(_.y7(I.innertubeTransportService,a,(N=z)==null?void 0:N.form).then(function(E){nbG(P,new CustomEvent("yt-service-request-completed"),{data:E},_.Xw("openPopupConfig"))}),0)})};
oe[zp]=[_.dY];var Uv=function(){};
_.b(Uv,wW);Uv.prototype.resolveCommand=function(a){var z,I;return _.t(function(J){z=_.H(a,ZEj);I=document.querySelector("mini-app-container-view-model");if(!z||!I)return J.return();z.isPlaying?I.dispatchEvent(new Event("play")):I.dispatchEvent(new Event("pause"));_.nu(J)})};var DQ=function(){};
_.b(DQ,wW);DQ.prototype.resolveCommand=function(a){var z,I,J,r,P,N,u;return _.t(function(E){z=_.H(a,guw);if((I=z)==null||!I.paramKeys)return E.return();J=z.paramKeys;r=_.Rf(window.location.href);P=_.C(J);for(N=P.next();!N.done;N=P.next())u=N.value,r.JSC$9989_queryData_.remove(u);window.history.replaceState(window.history.state,document.title,r.toString());_.nu(E)})};var A1E=function(){this.dropdownMap=new Map};_.sE4=new _.I4("DROPDOWN_CONTROLLER_TOKEN");var Re=function(a){this.controller=a};
_.b(Re,wW);Re.prototype.resolveCommand=function(a){var z=this,I,J,r,P;return _.t(function(N){I=_.H(a,kc1);if(!I)return N.return();J=I;r=J.dropdownId;P=J.selectedOptionIndex;if(r===void 0||P===void 0)return N.return();var u=z.controller.dropdownMap.get(r);u&&u(P);_.nu(N)})};
Re[zp]=[_.sE4];var Ly=function(a){this.controller=a};
_.b(Ly,wW);Ly.prototype.resolveCommand=function(a){var z=this,I;return _.t(function(J){return(I=_.H(a,ZeO))?J.yield(z.controller.closeDialog(),0):J.return()})};
Ly[zp]=[_.dP];var lD=function(a){this.controller=a};
_.b(lD,wW);lD.prototype.resolveCommand=function(a){var z=this,I,J;return _.t(function(r){I=_.H(a,pGj);if(!I)return r.return();var P,N=I.panelIdentifier||((P=I.identifier)==null?void 0:P.tag);if(!N)throw Error("yi");return(J=N)?r.yield(z.controller.hidePanel(J),0):r.jumpTo(0)})};
lD[zp]=[_.X3];var py=function(a,z){this.innertubeTransportService=a;this.controller=z};
_.b(py,wW);py.prototype.resolveCommand=function(a){var z=this,I,J,r,P;return _.t(function(N){if(N.nextAddress==1)return I=_.H(a,wGj),(J=I)!=null&&J.panelId?N.yield(z.controller.getReloadContinuation(I.panelId),2):N.return();if(N.nextAddress!=3)return(r=N.yieldResult)?N.yield(_.y7(z.innertubeTransportService,a,{continuation:r}),3):N.return();P=N.yieldResult;return N.yield(z.controller.updatePanel(I.panelId,P.content,!1),0)})};
py[zp]=[_.dY,_.X3];var wm=function(a,z,I){this.innertubeTransportService=a;this.JSC$17228_screenManager=z;this.JSC$17228_commandHandler=I};
_.b(wm,wW);
wm.prototype.resolveCommand=function(a){var z=this,I,J,r,P,N,u;return _.t(function(E){if(E.nextAddress==1){I=_.H(a,_.Tho);if(!I)return E.return();if(I.commands)for(J=_.C(I.commands),r=J.next();!r.done;r=J.next())P=r.value,z.JSC$17228_commandHandler.resolveCommand(P,{disableClickTracking:!0});N=_.VX(a.clickTrackingParams);_.fJ(z.JSC$17228_screenManager,21760,N,{layer:7,parentLayer:0});return E.yield(_.y7(z.innertubeTransportService,a),2)}u=E.yieldResult;if(!u)return E.return();z.JSC$17228_screenManager.graftServerVe(u.trackingParams,N,
7);_.nu(E)})};
wm[zp]=[_.dY,_.d7,_.j6];var mx=new _.I4("PANEL_LOADING_STRATEGY_TOKEN");var yv=function(a,z){this.controller=a;this.panelLoadingStrategy=z};
_.b(yv,wW);
yv.prototype.resolveCommand=function(a,z){var I=this,J,r,P;return _.t(function(N){J=_.H(a,h3i);if((r=J)==null||!r.panelLoadingStrategy)return N.return();P=function(u){var E,O,f,A,n,F,h,v,d,W;return _.t(function(l){O=_.H((E=u.dialogViewModel)==null?void 0:E.header,MPO);f={viewModel:u.dialogViewModel};A={};if(h=_.K("web_enable_dialog_header_label")?(n=O)==null?void 0:(F=n.headline)==null?void 0:F.content:void 0)A.ariaLabel=h;J.dismissOnBackgroundTap===!1&&(A.isModal=!0);return u.dialogViewModel?l.yield(I.controller.openDialog(f,
(W=(v=z)==null?void 0:(d=v.form)==null?void 0:d.element)!=null?W:document.body,A),0):l.return()})};
return N.yield(I.panelLoadingStrategy.execute({command:a,data:J.panelLoadingStrategy,renderFn:P,createScreenConfig:{layer:4}}),0)})};
yv[zp]=[_.dP,mx];var MG=function(a,z,I){this.innertubeTransportService=a;this.controller=z;this.JSC$17248_screenManager=I};
_.b(MG,wW);
MG.prototype.resolveCommand=function(a,z){var I=this,J,r,P,N,u,E,O,f,A,n,F,h;return _.t(function(v){switch(v.nextAddress){case 1:J=_.H(a,_.GO);if(!J)return v.return();var d,W=J.panelIdentifier||((d=J.identifier)==null?void 0:d.tag);if(!W)throw Error("yi");r=W;return v.yield(I.controller.isVisible(r,!0),2);case 2:if((P=v.yieldResult)&&J.blockIfPanelOpen)return v.return();E=(u=(N=I.controller).getPanelContent)==null?void 0:u.call(N,r);if(!(d=E))if(J){var l;d=((l=J.globalConfiguration)==null?void 0:
l.initialState)||J.engagementPanel;if(l=!d)l=!!(J==null?0:(W=J.engagementPanelPresentationConfigs)==null?0:W.engagementPanelPopupPresentationConfig);l&&(d=_.hbx(J.panelIdentifier,J.identifier))}else d=void 0;O=d;f=J.engagementPanelPresentationConfigs;A=J.engagementPanelExtras;return v.yield(I.controller.showPanel(r,O,f,A,(n=z)==null?void 0:(F=n.form)==null?void 0:F.element),3);case 3:if(!J.globalConfiguration){v.jumpTo(0);break}_.fJ(I.JSC$17248_screenManager,32633);return v.yield(_.y7(I.innertubeTransportService,
a),5);case 5:return h=v.yieldResult,I.JSC$17248_screenManager.graftServerVe(h.trackingParams),v.yield(I.controller.updatePanel(r,h.content,!0,A,void 0,h.updatePanelContinuationData),0)}})};
MG[zp]=[_.dY,_.X3,_.d7];var c1=function(a,z){this.controller=a;this.panelLoadingStrategy=z};
_.b(c1,wW);c1.prototype.resolveCommand=function(a,z){var I=this,J,r,P,N,u,E;return _.t(function(O){J=_.H(a,_.Sr);if((r=J)==null||!r.panelLoadingStrategy)return O.return();u=n7z(I.controller,(P=z)==null?void 0:(N=P.form)==null?void 0:N.element);E=function(f){return _.t(function(A){return f.sheetViewModel?A.yield(I.controller.openSheet({viewModel:f.sheetViewModel},u),0):A.return()})};
return O.yield(I.panelLoadingStrategy.execute({command:a,data:J.panelLoadingStrategy,renderFn:E,createScreenConfig:{layer:0}}),0)})};
c1[zp]=[_.T4,mx];var YC=function(a,z){this.controller=a;this.JSC$17256_commandHandler=z};
_.b(YC,wW);YC.prototype.resolveCommand=function(a,z){var I=this,J,r,P;return _.t(function(N){if(N.nextAddress==1){J=_.H(a,M$e);var u=_.H(J.showCommand,_.GO),E,O,f=(O=u==null?void 0:u.panelIdentifier)!=null?O:u==null?void 0:(E=u.identifier)==null?void 0:E.tag;if(!f)throw Error("zi");r=f;return N.yield(I.controller.isVisible(r),2)}return(P=N.yieldResult)?N.yield(I.controller.hidePanel(r),0):N.yield(I.JSC$17256_commandHandler.resolveCommand(J.showCommand,z),0)})};
YC[zp]=[_.X3,_.j6];var qG=function(a,z,I){this.innertubeTransportService=a;this.controller=z;this.JSC$17259_screenManager=I};
_.b(qG,wW);
qG.prototype.resolveCommand=function(a){var z=this,I,J,r,P,N,u,E,O,f,A,n,F,h,v,d,W,l,q,m,M,y,e;return _.t(function(Bp){switch(Bp.nextAddress){case 1:return J=I=_.H(a,cNJ),r=J.targetPanelIdentifier,P=J.contentSourcePanelIdentifier,N=J.globalConfiguration,((u=r)==null?0:u.tag)&&((E=P)==null?0:E.tag)?N?Bp.yield(z.controller.showPanel(r.tag,_.hbx(r.tag,r),void 0,void 0,void 0),5):Bp.yield((n=(A=z.controller).getPanel)==null?void 0:n.call(A,P.tag),4):Bp.return();case 4:F=Bp.yieldResult;O=(h=F)==null?void 0:
(d=(v=h).getPanelContent)==null?void 0:d.call(v);Bp.jumpTo(3);break;case 5:return Bp.yield(_.y7(z.innertubeTransportService,a),6);case 6:W=Bp.yieldResult,((l=W)==null?0:l.trackingParams)&&z.JSC$17259_screenManager.graftServerVe(W.trackingParams),O=(q=W)==null?void 0:q.content,f=(m=W)==null?void 0:m.updatePanelContinuationData;case 3:if(y=(M=O)==null?void 0:M.engagementPanelSectionListRenderer)return Bp.yield(z.controller.showPanel(r.tag,void 0,void 0,void 0,void 0,{content:y.content,secondaryHeaderContent:(e=
y.header)!=null?e:{},targetId:y.targetId},f),0);Bp.jumpTo(0)}})};
qG[zp]=[_.dY,_.X3,_.d7];var KdZ=function(){};
_.b(KdZ,wW);KdZ.prototype.resolveCommand=function(a){var z,I,J;return _.t(function(r){if(r.nextAddress==1)return(z=_.H(a,I4X))?r.yield(_.EN(),2):r.return();I=r.yieldResult;if(!I)return r.return();var P=I,N=(J=z)==null?void 0:J.languageCode,u;(P==null?0:(u=P.isReady)==null?0:u.call(P))&&(N=VsE(P,N))&&P.setAudioTrack(N);_.nu(r)})};var ew=function(){};
_.b(ew,wW);var Fd4=function(a){var z;return _.t(function(I){z=_.Xw("WEB_PLAYER_CONTEXT_CONFIGS").WEB_PLAYER_CONTEXT_CONFIG_ID_KEVLAR_BACKGROUND_AUDIO_PLAYER;a.JSC$17270_mainAppPlayer=new Ip(z);document.addEventListener("yt-page-data-updated",a.JSC$17270_pauseOnNavigation.bind(a));_.nu(I)})};
ew.prototype.JSC$17270_pauseOnNavigation=function(){var a=this,z,I;return _.t(function(J){if(J.nextAddress==1)return z=a.JSC$17270_mainAppPlayer,J.yield(z.api,2);I=J.yieldResult;I.pauseVideo();_.nu(J)})};
var HGZ=function(a,z,I){var J;return _.t(function(r){J=a.JSC$17270_mainAppPlayer;return r.yield(J.loadVideoWithPlayerVars({videoId:z,audio_only:"1",player_params:I}),0)})};
ew.prototype.pauseVideo=function(){var a=this,z,I;return _.t(function(J){if(J.nextAddress==1)return z=a.JSC$17270_mainAppPlayer,J.yield(z.api,2);I=J.yieldResult;I.pauseVideo();_.nu(J)})};
ew.prototype.playVideo=function(){var a=this,z,I;return _.t(function(J){if(J.nextAddress==1)return z=a.JSC$17270_mainAppPlayer,J.yield(z.api,2);I=J.yieldResult;I.playVideo();_.nu(J)})};
var bGZ=function(a){var z,I;return _.t(function(J){if(J.nextAddress==1)return z=a.JSC$17270_mainAppPlayer,J.yield(z.api,2);I=J.yieldResult;I.mute();_.nu(J)})},hI0=function(a){var z,I;
return _.t(function(J){if(J.nextAddress==1)return z=a.JSC$17270_mainAppPlayer,J.yield(z.api,2);I=J.yieldResult;I.unMute();_.nu(J)})},VM0=function(a,z){return _.t(function(I){switch(I.nextAddress){case 1:switch(z){case "BACKGROUND_AUDIO_PLAYBACK_ACTION_PLAY":return I.jumpTo(2);
case "BACKGROUND_AUDIO_PLAYBACK_ACTION_PAUSE":return I.jumpTo(3);case "BACKGROUND_AUDIO_PLAYBACK_ACTION_MUTE":return I.jumpTo(4);case "BACKGROUND_AUDIO_PLAYBACK_ACTION_UNMUTE":return I.jumpTo(5)}I.jumpTo(0);break;case 2:return I.yield(a.playVideo(),7);case 7:I.jumpTo(0);break;case 3:return I.yield(a.pauseVideo(),8);case 8:I.jumpTo(0);break;case 4:return I.yield(bGZ(a),9);case 9:I.jumpTo(0);break;case 5:return I.yield(hI0(a),10);case 10:I.jumpTo(0)}})};
ew.prototype.resolveCommand=function(a){var z=this,I,J,r,P,N,u,E,O,f,A,n;return _.t(function(F){return F.nextAddress==1?(I=_.H(a,znl),((J=I)==null?0:J.newPlaybackParams)||((r=I)==null?0:r.controlAction)?z.JSC$17270_mainAppPlayer?F.jumpTo(2):F.yield(Fd4(z),2):F.return()):((P=I)==null?0:P.newPlaybackParams)?(E=(N=I)==null?void 0:(u=N.newPlaybackParams)==null?void 0:u.externalVideoId,n=(A=(O=I)==null?void 0:(f=O.newPlaybackParams)==null?void 0:f.playerParams)!=null?A:"",E?F.yield(HGZ(z,E,n),0):F.return()):
F.yield(VM0(z,I.controlAction),0)})};var aS=function(a){this.JSC$17277_commandHandler=a};
_.b(aS,wW);
aS.prototype.resolveCommand=function(a){var z=this,I,J,r,P,N,u;return _.t(function(E){if(E.nextAddress==1)return(I=_.H(a,JXX))?E.yield(_.EN(),2):E.return();J=E.yieldResult;if(!J)return E.return();var O=J,f=(r=I)==null?void 0:r.languageCode,A=(P=I)==null?void 0:P.isAutoTranslated;O.getVideoData&&_.Si0(O).length&&((f=x6m(O,f,A))?O.setOption("captions","track",f):(O.setOption("captions","stickyLoading",{}),O.setOption("captions","track",{})));N=J.isSubtitlesOn()?_.AR("CAPTION_ON_TOAST",void 0,"Subtitles/CC turned on"):
_.AR("CAPTION_OFF_TOAST",void 0,"Subtitles/CC turned off");u=_.jt(N);z.JSC$17277_commandHandler.resolveCommand(u);_.nu(E)})};
aS[zp]=[_.j6];var jA=function(a,z){this.shortsPlayerPromise=a;this.JSC$17281_commandHandler=z};
_.b(jA,wW);
jA.prototype.resolveCommand=function(a){var z=this,I,J,r,P,N,u,E,O;return _.t(function(f){if(f.nextAddress==1)return(I=_.H(a,H$1))?f.yield(z.shortsPlayerPromise,2):f.return();J=f.yieldResult;var A=vyI(J);A!=null&&A.length||(J.loadModule("captions"),A=vyI(J));r=A;if((P=r)==null||!P.length)return N=_.AR("CLOSED_CAPTIONS_DISABLED",void 0,"No captions are available for this video"),u=_.jt(N),z.JSC$17281_commandHandler.resolveCommand(u),f.return();J.toggleSubtitles();E=J.isSubtitlesOn()?_.AR("CAPTION_ON_TOAST",void 0,
"Subtitles/CC turned on"):_.AR("CAPTION_OFF_TOAST",void 0,"Subtitles/CC turned off");O=_.jt(E);z.JSC$17281_commandHandler.resolveCommand(O);_.nu(f)})};
jA[zp]=[_.NW1,_.j6];var zF=function(a){this.JSC$17284_actionRouter=a;this.dismissPlayerOverlayActions=new Map([["player_overlay_timely_shelf",function(z,I){z.triggerAction("yt-dismiss-shopping-timely-shelf-action",I)}]])};
_.b(zF,wW);zF.prototype.resolveCommand=function(a){var z=this,I,J,r;return _.t(function(P){I=_.H(a,CAJ);if((J=I)==null||!J.overlayId)return P.return();r=z.dismissPlayerOverlayActions.get(I.overlayId);if(!r)throw Error("Ai`"+I.overlayId);r(z.JSC$17284_actionRouter,I);_.nu(P)})};
zF[zp]=[rR];var IS=function(a){this.JSC$17288_playerPromise=a};
_.b(IS,wW);IS.prototype.resolveCommand=function(a){var z=this,I,J,r,P;return _.t(function(N){if(N.nextAddress==1)return(I=_.H(a,yXv))?N.yield(z.JSC$17288_playerPromise,2):N.return();J=N.yieldResult;r=J.getVideoData().video_id;I.videoId===r&&(P=Number(I.offsetFromVideoStartMilliseconds),P>=0&&J.seekTo(P/1E3));_.nu(N)})};
IS[zp]=[_.Zc];var QEG=_.Er("sfv_currently_playing_audio_item_key","sfvAudioItemCurrentlyPlayingEntity"),JO=function(a){this.store=a};
_.b(JO,wW);
var Smi=function(a){var z,I,J,r;return _.t(function(P){if(P.nextAddress==1)return z=_.Xw("WEB_PLAYER_CONTEXT_CONFIGS").WEB_PLAYER_CONTEXT_CONFIG_ID_KEVLAR_SFV_AUDIO_ITEM,I=_.Xw("WEB_PLAYER_CONTEXT_CONFIGS").WEB_PLAYER_CONTEXT_CONFIG_ID_MWEB_SFV_AUDIO_ITEM,J=z||I,a.JSC$17292_mainAppPlayer=new Ip(J),P.yield(a.JSC$17292_mainAppPlayer.api,2);r=P.yieldResult;r.addEventListener("onStateChange",a.JSC$17292_playerStateChangeListener.bind(a));document.addEventListener("yt-page-data-updated",a.JSC$17292_pauseOnNavigation.bind(a));window.addEventListener("state-navigatestart",
a.JSC$17292_pauseOnNavigation.bind(a));_.nu(P)})};
JO.prototype.JSC$17292_playerStateChangeListener=function(a){switch(a){case 0:this.playbackState="SFV_AUDIO_ITEM_PLAYBACK_STATE_STOPPED";break;case 1:this.playbackState="SFV_AUDIO_ITEM_PLAYBACK_STATE_PLAYING";break;case 2:this.playbackState="SFV_AUDIO_ITEM_PLAYBACK_STATE_PAUSED";break;case 3:this.playbackState="SFV_AUDIO_ITEM_PLAYBACK_STATE_BUFFERING";break;default:this.playbackState="SFV_AUDIO_ITEM_PLAYBACK_STATE_UNKNOWN"}iGV(this)};
var iGV=function(a){a.store.dispatch(_.Q0("sfvAudioItemCurrentlyPlayingEntity",QEG,{key:QEG,externalVideoId:a.externalVideoId,sfvAudioItemPlaybackState:a.playbackState,nowPlayingEntityValue:a.nowPlayingEntityValue}))};
JO.prototype.JSC$17292_pauseOnNavigation=function(){var a=this,z,I,J,r;return _.t(function(P){if(P.nextAddress==1){if(!a.JSC$17292_mainAppPlayer){var N=new _.Fn("Error: mainAppPlayer is unavailable",a.JSC$17292_mainAppPlayer);_.Gx(N);return P.return()}return P.yield(a.JSC$17292_mainAppPlayer.api,2)}z=P.yieldResult;J=(I=z)==null?void 0:I.getPlayerState();J!==1||(r=z)!=null&&r.pauseVideo();_.nu(P)})};
JO.prototype.playVideo=function(a,z,I){var J=this,r,P;return _.t(function(N){if(N.nextAddress==1)return N.yield((r=J.JSC$17292_mainAppPlayer)==null?void 0:r.api,2);P=N.yieldResult;if(!J.JSC$17292_mainAppPlayer||!P){var u=new _.Fn("Error: mainAppPlayer is unavailable",J.JSC$17292_mainAppPlayer);_.Gx(u);return N.return()}return N.yield(J.JSC$17292_mainAppPlayer.loadVideoWithPlayerVars({videoId:J.externalVideoId,audio_only:"1",start:a/1E3,end:a/1E3+z,player_params:I}),0)})};
JO.prototype.pauseVideo=function(){var a=this,z,I;return _.t(function(J){if(J.nextAddress==1){if(!a.JSC$17292_mainAppPlayer){var r=new _.Fn("Error: mainAppPlayer is unavailable",a.JSC$17292_mainAppPlayer);_.Gx(r);return J.return()}return J.yield(a.JSC$17292_mainAppPlayer.api,2)}z=J.yieldResult;(I=z)==null||I.pauseVideo();_.nu(J)})};
JO.prototype.resolveCommand=function(a){var z=this,I,J,r,P,N,u,E,O,f,A,n,F,h,v,d,W,l,q,m;return _.t(function(M){if(M.nextAddress==1)return I=_.H(a,syf),r=(J=I)==null?void 0:J.nowPlayingEntityValue,N=(P=I)==null?void 0:P.externalVideoId,A=Number((f=(u=I)==null?void 0:(E=u.defaultStartPoints)==null?void 0:(O=E[0])==null?void 0:O.offsetMs)!=null?f:"0"),W=Number((d=(n=I)==null?void 0:(F=n.defaultStartPoints)==null?void 0:(h=F[0])==null?void 0:(v=h.duration)==null?void 0:v.seconds)!=null?d:"15"),m=(q=
(l=I)==null?void 0:l.playerParams)!=null?q:"",r&&N?z.JSC$17292_mainAppPlayer?M.jumpTo(2):M.yield(Smi(z),2):M.return();if(M.nextAddress!=6){if(z.nowPlayingEntityValue&&r===z.nowPlayingEntityValue)return z.playbackState==="SFV_AUDIO_ITEM_PLAYBACK_STATE_PLAYING"?M.yield(z.pauseVideo(),0):M.yield(z.playVideo(A,W,m),0);z.externalVideoId=N;z.nowPlayingEntityValue=r;z.playbackState="SFV_AUDIO_ITEM_PLAYBACK_STATE_BUFFERING";return M.yield(z.playVideo(A,W,m),6)}iGV(z);return M.jumpTo(0)})};
JO[zp]=[r0];var xOe=function(a){this.JSC$17310_commandHandler=a};
_.b(xOe,wW);xOe.prototype.resolveCommand=function(a,z){var I=this,J,r,P;return _.t(function(N){if(N.nextAddress==1)return(J=_.H(a,rXw))?N.yield(_.EN(),2):N.return();r=N.yieldResult;if(!r)return N.return();(P=GiI(r))&&I.JSC$17310_commandHandler.resolveCommand(P,z);_.nu(N)})};
xOe[zp]=[_.j6];var rA=function(a){this.JSC$17316_commandHandler=a};
_.b(rA,wW);rA.prototype.resolveCommand=function(a,z){var I=this,J,r,P,N,u;return _.t(function(E){if(E.nextAddress==1)return(J=_.H(a,PAv))?E.yield(_.EN(),2):E.return();r=E.yieldResult;if(!r)return E.return();(P=WEO(r))?I.JSC$17316_commandHandler.resolveCommand(P,z):(N=_.AR("CLOSED_CAPTIONS_DISABLED",void 0,"No captions are available for this video"),u=_.jt(N),I.JSC$17316_commandHandler.resolveCommand(u));_.nu(E)})};
rA[zp]=[_.j6];var P2=function(a){this.JSC$17319_playerPromise=a};
_.b(P2,wW);P2.prototype.resolveCommand=function(a){var z=this,I,J,r,P,N;return _.t(function(u){if(u.nextAddress==1){I=_.H(a,kSi);if(!I)return u.return();J=I.overlayRenderer;return J?(r=_.H(J,N7X))?u.yield(z.JSC$17319_playerPromise,3):u.jumpTo(0):u.return()}P=u.yieldResult;P.renderChapterSeekingAnimation(1,_.cd(r.text),(N=r.icon)==null?void 0:N.iconType);_.nu(u)})};
P2[zp]=[_.Zc];var ZM=function(a){this.store=a};
_.b(ZM,wW);
ZM.prototype.resolveCommand=function(a){var z=this,I,J,r;return _.t(function(P){if(P.nextAddress==1){I=_.H(a,IPG);if(!I)return P.return();J="";(r=z.store.getState().collabInviteLink)&&I.id===r.playlistId?J=r.inviteLinkURL:I.shortUrl&&(J=I.shortUrl);return J?P.yield(navigator.clipboard.writeText(J),3):P.jumpTo(0)}var N={openPopupAction:{popupType:"TOAST",popup:{notificationActionRenderer:{responseText:{simpleText:_.AR("COPY_LINK_SUCCESS_TOAST")}}}}};_.ab().resolve(_.j6).resolveCommand(N);_.nu(P)})};
ZM[zp]=[Qv];var Cq=function(a,z){this.innertubeTransportService=a;this.JSC$17329_commandHandler=z};
_.b(Cq,wW);Cq.prototype.resolveCommand=function(a,z){var I=this,J,r,P,N,u,E,O,f,A,n;return _.t(function(F){if(F.nextAddress==1)return(J=_.H(a,_.mS))?F.yield(_.y7(I.innertubeTransportService,a,(r=z)==null?void 0:r.form),2):F.return();(P=F.yieldResult)&&P.errorMetadata&&(N=P,u=_.jt(N.error.message),I.JSC$17329_commandHandler.resolveCommand(u));E=P;if((O=E)==null?0:O.actions)for(f=_.C(E.actions),A=f.next();!A.done;A=f.next())n=A.value,I.JSC$17329_commandHandler.resolveCommand(n);_.nu(F)})};
Cq[zp]=[_.dY,_.j6];var Nz=function(){};
_.b(Nz,wW);Nz.prototype.resolveCommand=function(a){var z;return _.t(function(I){z=_.H(a,yHf);if(!z)return I.return();(new toe(z)).show();_.nu(I)})};_.tO=new _.I4("PLAYLIST_EDIT_CONTROLLER_TOKEN");var uW=function(a,z,I,J){this.store=a;this.innertubeTransportService=z;this.controller=I;this.JSC$17337_commandHandler=J};
_.b(uW,wW);
uW.prototype.resolveCommand=function(a,z){var I=this,J,r,P,N,u,E,O,f,A,n,F,h,v,d,W,l,q,m,M,y,e,Bp,Em,nG,bG,Hp;return _.t(function(LG){if(LG.nextAddress==1){J=_.H(a,_.D5);if(!J)return LG.return();if(J.clientActions){r=_.C(J.clientActions);for(P=r.next();!P.done;P=r.next())N=P.value,I.JSC$17337_commandHandler.resolveCommand(N);var oE,Pe=z==null?void 0:(oE=z.form)==null?void 0:oE.element;Pe&&_.PA(Pe,"yt-dismissible-item-action",J.clientActions)}return LG.yield(_.y7(I.innertubeTransportService,a,(u=z)==
null?void 0:u.form),2)}if(E=LG.yieldResult)E.errorMetadata?(O=E,f=_.jt(O.error.message),I.JSC$17337_commandHandler.resolveCommand(f),"error"in E&&((A=z)==null?0:(n=A.commandController)==null?0:n.onServerError)&&((F=z)==null||(h=F.commandController)==null||h.onServerError(a,E))):(v=z)==null||(d=v.commandController)==null||(l=(W=d).onSuccess)==null||l.call(W,a,E);q=E;((m=q)==null?0:m.collaborationInviteLink)&&J.playlistId&&(_.K("web_enable_invite_collaborators_link")||_.K("enable_music_web_cairo_new_collaborators_list_and_actions"))&&
I.store.dispatch(_.rg({type:"SET_COLLAB_INVITE_LINK",payload:{playlistId:J.playlistId,inviteLinkUrl:q.collaborationInviteLink}}));((M=q)==null?0:M.redirectEndpoint)&&I.JSC$17337_commandHandler.resolveCommand(q.redirectEndpoint);((y=q)==null?0:(e=y.newHeader)==null?0:e.playlistHeaderRenderer)?v7f(I.controller,q.newHeader.playlistHeaderRenderer):((Bp=q)==null?0:(Em=Bp.newHeader)==null?0:Em.musicEditablePlaylistDetailHeaderRenderer)&&v7f(I.controller,q.newHeader.musicEditablePlaylistDetailHeaderRenderer);
I.controller.playlistVideoListElement&&((nG=q)==null?0:(bG=nG.playlistEditResults)==null?0:(Hp=bG[0])==null?0:Hp.playlistEditVideoAddedResultData)&&((Pe=I.controller.playlistVideoListElement)==null||Pe.dispatchEvent(new CustomEvent("yt-update-set-video-id",{detail:q.playlistEditResults[0].playlistEditVideoAddedResultData})));_.nu(LG)})};
uW[zp]=[Qv,_.dY,_.tO,_.j6];var EV=function(a,z){this.controller=a;this.JSC$17347_commandHandler=z};
_.b(EV,wW);EV.prototype.resolveCommand=function(a,z){var I=this,J,r,P;return _.t(function(N){J=_.H(a,J4f);I.controller.showRefreshPill&&((r=J)==null?0:r.command)&&(I.JSC$17347_commandHandler.resolveCommand((P=J)==null?void 0:P.command,z),I.controller.showRefreshPill=!1);_.nu(N)})};
EV[zp]=[_.Ep,_.j6];var B2=function(a,z){this.store=a;this.JSC$17351_commandHandler=z||_.Og.instance};
_.b(B2,wW);B2.prototype.resolveCommand=function(a,z){var I=this,J,r,P,N,u,E,O,f,A,n;return _.t(function(F){J=_.H(a,A4w);r=I.store.getState().radioButtonGroup;if((P=J)==null?0:P.command)I.JSC$17351_commandHandler.resolveCommand((N=J)==null?void 0:N.command,z);else if(r&&((u=J)==null?void 0:u.formId)===r.currentFormId)for(E=Object.values(r.commandsMap),O=_.C(E),f=O.next();!f.done;f=O.next())A=f.value,(n=_.o0(A))&&I.JSC$17351_commandHandler.resolveCommand(n,z);_.nu(F)})};
B2[zp]=[_.mP];var gA=new _.I4("USER_PREFS");var OV=function(a){this.JSC$17356_prefCookie=a};
_.b(OV,wW);OV.prototype.resolveCommand=function(a){var z=this,I;return _.t(function(J){(I=_.H(a,UQE))&&typeof I.useListView==="boolean"&&(_.Fz(0,155,I.useListView),z.JSC$17356_prefCookie.save());_.nu(J)})};
OV[zp]=[gA];var fq=function(a){this.JSC$17360_prefCookie=a};
_.b(fq,wW);fq.prototype.resolveCommand=function(a){var z=this,I,J,r,P,N;return _.t(function(u){I=_.H(a,Mqv);if((J=I)==null||!J.gl)return u.return();r=I.gl;P={persist_gl:"1",gl:r};z.JSC$17360_prefCookie.set("gl",r);z.JSC$17360_prefCookie.save();N=RiI(P);_.wY(N);_.nu(u)})};
fq[zp]=[gA];var AO=function(a){this.JSC$17364_prefCookie=a};
_.b(AO,wW);AO.prototype.resolveCommand=function(a){var z=this,I,J;return _.t(function(r){I=_.H(a,Puw);if(!I)return r.return();J=!1;I.flagNum&&typeof I.value==="boolean"?(_.Fz(0,I.flagNum,I.value),J=!0):I.key&&typeof I.stringValue==="string"&&(z.JSC$17364_prefCookie.set(I.key,I.stringValue),J=!0);J&&z.JSC$17364_prefCookie.save();_.nu(r)})};
AO[zp]=[gA];var sV=new _.I4("PREF_STORAGE_PROMISE_TOKEN");var nq=function(a){this.JSC$17368_prefStoragePromise=a};
_.b(nq,wW);nq.prototype.resolveCommand=function(a){var z=this,I,J;return _.t(function(r){if(r.nextAddress==1)return(I=_.H(a,CuO))?r.yield(z.JSC$17368_prefStoragePromise,2):r.return();J=r.yieldResult;return J===void 0||I.key===void 0||I.value===void 0?r.return():r.yield(J.set(I.key,I.value),0)})};
nq[zp]=[sV];var G3Z=function(a){this.innertubeTransportService=a};
_.b(G3Z,wW);G3Z.prototype.resolveCommand=function(a,z){var I=this,J,r;return _.t(function(P){(J=_.H(a,_.LSj))&&J&&J.isFirstRequest&&(_.$A("search_overview_answer"),_.Xz("so_rq",void 0,"search_overview_answer"));return P.yield(_.y7(I.innertubeTransportService,a,(r=z)==null?void 0:r.form),0)})};
G3Z[zp]=[_.dY];var $O4=function(){};
_.b($O4,wW);
$O4.prototype.resolveCommand=function(a){var z,I,J,r,P,N,u,E,O;return _.t(function(f){z=_.H(a,mg1);if((I=z)==null?0:I.sectionIdentifier){if(z.scrollBehaviorType==="SCROLL_BEHAVIOR_TYPE_SCROLL_INTO_VIEW"){if(r=(J=document.getElementsByTagName(z.sectionIdentifier))==null?void 0:J.item(0))r.scrollIntoView({behavior:"smooth"}),(P=oNO(r))&&P.focus({preventScroll:!0});return f.return()}N=document.querySelector("[section-identifier="+z.sectionIdentifier+"]");u=document.querySelector("[section-identifier="+z.referenceSectionIdentifier+
"]");if(!N)return f.return();E=z.verticalScrollOffsetDp?z.verticalScrollOffsetDp:0;u&&(E-=u.offsetTop);window.scrollTo({top:N.offsetTop+E,behavior:"smooth"});(O=oNO(N))&&O.focus({preventScroll:!0})}_.nu(f)})};var Kq=function(a){this.JSC$17380_commandHandler=a};
_.b(Kq,wW);
Kq.prototype.resolveCommand=function(a){var z=this,I,J,r,P,N,u,E;return _.t(function(O){if(O.nextAddress==1){I=_.H(a,tKv);if(!I||!I.imageBytes||!navigator.clipboard)return O.return();if(I.clientShareDestination==="CLIENT_SHARE_DESTINATION_SYSTEM_SHARE_PANEL")return _.Gx(Error("Ci")),O.return();_.BP(O,2);r=(J=I)==null?void 0:J.imageBytes;P=r.replace(/-/g,"+").replace(/_/g,"/");N=AZp(P);u={};E=[new ClipboardItem((u[N.type]=N,u))];return O.yield(navigator.clipboard.write(E),4)}if(O.nextAddress!=2)return I.successCommand&&
z.JSC$17380_commandHandler.resolveCommand(I.successCommand),_.p1(O,0);_.sk(O);I.errorCommand&&z.JSC$17380_commandHandler.resolveCommand(I.errorCommand);_.nu(O)})};
Kq[zp]=[_.j6];var Fi=function(a,z){this.innertubeTransportService=a;this.JSC$17384_commandHandler=z};
_.b(Fi,wW);Fi.prototype.resolveCommand=function(a,z){var I=this,J,r,P,N,u;return _.t(function(E){if(E.nextAddress==1)return(J=_.H(a,uoe))?E.yield(_.y7(I.innertubeTransportService,a,(r=z)==null?void 0:r.form),2):E.return();(P=E.yieldResult)&&P.errorMetadata&&J.onFailureCommand&&I.JSC$17384_commandHandler.resolveCommand(J.onFailureCommand);N=P;((u=N)==null?0:u.shareCommand)&&I.JSC$17384_commandHandler.resolveCommand(N.shareCommand,z);_.nu(E)})};
Fi[zp]=[_.dY,_.j6];var H2=function(){};
_.b(H2,wW);H2.prototype.resolveCommand=function(a){var z,I;return _.t(function(J){z=_.H(a,jRe);if(!z||!navigator.share)return J.return();I={url:z.url};try{return J.return(navigator.share(I))}catch(r){}_.nu(J)})};var bW=function(){};
_.b(bW,wW);bW.prototype.resolveCommand=function(){return _.t(function(a){window.dispatchEvent(new Event("yt-playables-ack-3p-data-usage"));_.nu(a)})};var hO=function(a){this.JSC$17394_navigationConfirmationService=a};
_.b(hO,wW);hO.prototype.resolveCommand=function(){var a=this;return _.t(function(z){a.JSC$17394_navigationConfirmationService.cancelPendingNavigation();_.nu(z)})};
hO[zp]=[Vn];var VZ=function(a){this.JSC$17397_screenManager=a};
_.b(VZ,wW);VZ.prototype.resolveCommand=function(a,z){var I=this,J,r,P,N,u,E,O;return _.t(function(f){r=(J=z.form)==null?void 0:J.event;N=(P=z.form)==null?void 0:P.element;if(!r)throw new _.Fn("Event not passed in when resolving command");u=_.C(r.composedPath());for(E=u.next();!E.done;E=u.next())if(O=E.value,O.tagName==="YT-COPY-LINK-RENDERER")return O.copyUrlToClipboard(),N&&_.pS(I.JSC$17397_screenManager,N),f.return();_.nu(f)})};
VZ[zp]=[_.d7];var QZ=function(){this.JSC$17401_miniAppClientDataProvider=_.ab().resolve(_.cQ)};
_.b(QZ,wW);QZ.prototype.resolveCommand=function(){var a=this,z,I;return _.t(function(J){if(a.JSC$17401_miniAppClientDataProvider.clientData.has("video_id")){var r=a.JSC$17401_miniAppClientDataProvider,P=r.clientData.get("video_id");P&&r.clientData.delete("video_id");z="https://youtube.com/watch?v="+P;I=_.GN(z);if(I===void 0)throw Error("Di`"+z);_.wO(window,I)}_.nu(J)})};var SA=function(){};
_.b(SA,wW);SA.prototype.resolveCommand=function(){return _.t(function(a){window.dispatchEvent(new Event("yt-playables-exit-mini-app-dialog-seen"));_.nu(a)})};var iW=function(){};
_.b(iW,wW);iW.prototype.resolveCommand=function(){var a;return _.t(function(z){if(z.nextAddress==1)return z.yield(_.Nn1(window.document.documentElement),2);(a=document.querySelector("mini-app-container-view-model iframe"))&&a.focus();_.nu(z)})};var xD=function(a){this.JSC$17408_navigationConfirmationService=a};
_.b(xD,wW);
xD.prototype.resolveCommand=function(){var a=this;return _.t(function(z){var I=a.JSC$17408_navigationConfirmationService,J=_.ab().resolve(_.vw),r;if(((r=I.navigateParams)==null?void 0:r.data)!==void 0){var P;_.g_1(J,I.navigateParams.endpoint,I.navigateParams.data,(P=I.navigateParams.navigationType)!=null?P:1,I.navigateParams.tempData,I.navigateParams.isMiniplayer,void 0,!0);I.navigateParams=void 0;I.customConfirmationCommand=void 0}else I.navigateParams&&(J.navigate(I.navigateParams.endpoint,I.navigateParams.reload,
I.navigateParams.params,I.navigateParams.tempData,I.navigateParams.requestType,I.navigateParams.createScreenConfig,!0),I.navigateParams=void 0,I.customConfirmationCommand=void 0);_.nu(z)})};
xD[zp]=[Vn];var v2=function(){};
_.b(v2,wW);v2.prototype.resolveCommand=function(){return _.t(function(a){window.dispatchEvent(new Event("yt-share-playable-with-high-score"));_.nu(a)})};var GF=function(a){this.JSC$17413_prefStorage=a};
_.b(GF,wW);GF.prototype.resolveCommand=function(){var a=this,z,I;return _.t(function(J){switch(J.nextAddress){case 1:return J.yield(a.JSC$17413_prefStorage,2);case 2:return(z=J.yieldResult)?J.yield(z.set("sfvle",!1),3):J.return();case 3:return J.yield(z.set("sfvles",!0),4);case 4:I=_.Kt(),_.Fz(0,203,!1),_.Fz(0,204,!0),I.save(),_.nu(J)}})};
GF[zp]=[sV];var $D=function(a){this.JSC$17416_prefStorage=a};
_.b($D,wW);$D.prototype.resolveCommand=function(){var a=this,z,I;return _.t(function(J){switch(J.nextAddress){case 1:return J.yield(a.JSC$17416_prefStorage,2);case 2:return(z=J.yieldResult)?J.yield(z.set("sfvle",!0),3):J.return();case 3:return J.yield(z.set("sfvles",!0),4);case 4:I=_.Kt(),_.Fz(0,203,!0),_.Fz(0,204,!0),I.save(),_.nu(J)}})};
$D[zp]=[sV];_.XpM=new _.I4("SNACKBAR_CONTROLLER_TOKEN");_.T$Y=new _.I4("SHOULD_SHOW_PIVOT_BAR_TOKEN");var Xi=function(a){this.controller=a};
_.b(Xi,wW);Xi.prototype.resolveCommand=function(a){var z=this,I;return _.t(function(J){I=_.H(a,bJi);if(!I)return J.return();var r=z.controller;r.closeSnackbarFn&&r.closeSnackbarFn();_.nu(J)})};
Xi[zp]=[_.XpM];var TF=function(a,z){this.controller=a;this.sheetController=z};
_.b(TF,wW);TF.prototype.resolveCommand=function(a,z){var I=this,J,r,P,N,u,E;return _.t(function(O){J=_.H(a,VKf);if(!J)return O.return();N=n7z(I.sheetController,(r=z)==null?void 0:(P=r.form)==null?void 0:P.element);u=_.H(J.content,pww);if(!u)return O.return();var f=I.controller,A=u,n=(E=J.animationStyle)!=null?E:"SNACKBAR_ANIMATION_STYLE_DEFAULT";if(f.showSnackbarFn)f.showSnackbarFn({snackbarViewModel:A,animationStyle:n,durationMs:J.durationSeconds*1E3,target:N});else throw Error("nj");_.nu(O)})};
TF[zp]=[_.XpM,_.T4];var dA=function(){};
_.b(dA,wW);dA.prototype.resolveCommand=function(a){var z;return _.t(function(I){z=_.H(a,ZRw);if(!z||typeof z.key!=="string"||typeof z.value!=="string")return I.return();window.localStorage.setItem(z.key,z.value);_.nu(I)})};var W2=function(a){this.store=a};
_.b(W2,wW);W2.prototype.resolveCommand=function(a){var z=this,I;return _.t(function(J){I=_.H(a,e9G);if(!I||!I.stepId||!I.token)return J.return();z.store.dispatch(uQ1({stepId:I.stepId,token:I.token,isSelected:!1}));_.nu(J)})};
W2[zp]=[Qv];var oS=function(a,z,I){this.innertubeTransportService=a;this.store=z;this.JSC$17435_screenManager=I};
_.b(oS,wW);
oS.prototype.resolveCommand=function(a){var z=this,I,J,r,P,N,u,E,O,f,A,n,F,h,v,d,W,l,q,m,M,y,e,Bp;return _.t(function(Em){I=_.H(a,aoI);if(!I||(J=I.stepIds)==null||!J.length)return Em.return();r=z.store.getState().talkToRecs;P=[];N=[];u=_.C(I.stepIds);for(E=u.next();!E.done;E=u.next())for(O=E.value,f=void 0,(A=(f=r.stepStates[O])==null?void 0:f.userQuery)&&N.push({userQuery:A.userQuery,userQueryToken:A.token}),n=void 0,F=(n=r.stepStates[O])==null?void 0:n.selectionStates,h=_.C(Object.entries(F)),v=
h.next();!v.done;v=h.next())d=v.value,W=_.C(d),l=W.next().value,q=W.next().value,m=l,M=q,M.isSelected&&P.push(m);y={selectedChipTokens:P,userQueries:N,submittedStepIds:I.stepIds};e={browseTalk2recsFormData:y};I.browseEndpoint?(Bp=a,_.$N(Bp,_.KH,I.browseEndpoint)):I.command&&(Bp=I.command);return Bp?Em.yield(_.y7(z.innertubeTransportService,Bp,{formData:e,disableCache:!0}).then(function(nG){(nG==null?0:nG.trackingParams)&&z.JSC$17435_screenManager.graftServerVe(nG==null?void 0:nG.trackingParams)}),
0):Em.return()})};
oS[zp]=[_.dY,Qv,_.d7];var UV=function(a){this.store=a};
_.b(UV,wW);UV.prototype.resolveCommand=function(a){var z=this,I;return _.t(function(J){I=_.H(a,q2E);if(!I||!I.stepId||!I.token)return J.return();z.store.dispatch(uQ1({stepId:I.stepId,token:I.token,isSelected:!0}));_.nu(J)})};
UV[zp]=[Qv];var DM=function(a){this.store=a};
_.b(DM,wW);DM.prototype.resolveCommand=function(a,z){var I=this,J,r,P,N,u;return _.t(function(E){J=_.H(a,jHo);if(!J||!J.stepId||!J.userQueryToken)return E.return();u=(N=(r=z)==null?void 0:(P=r.form)==null?void 0:P.userQuery)!=null?N:"";I.store.dispatch(_.rg({type:"TALK_TO_RECS_UPDATE_USER_QUERY",payload:{stepId:J.stepId,userQueryToken:J.userQueryToken,userQuery:u}}));_.nu(E)})};
DM[zp]=[Qv];_.dOV=new _.I4("TIMELY_ACTIONS_CONTROLLER_TOKEN");var RS=function(a){this.controller=a};
_.b(RS,wW);RS.prototype.resolveCommand=function(a){var z=this,I,J,r,P;return _.t(function(N){I=_.H(a,l4i);if(!I)return N.return();J=I;r=J.id;P=J.isVisible;if(r===void 0||P===void 0)return N.return();var u;(u=z.controller.timelyActionsMap.get(r))==null||u(r,P);_.nu(N)})};
RS[zp]=[_.dOV];var Wde=function(){this.timelyActionsMap=new Map};var Lq=function(a){this.JSC$17462_commandHandler=a};
_.b(Lq,wW);Lq.prototype.resolveCommand=function(a){var z=this,I,J,r,P,N;return _.t(function(u){I=_.H(a,_.Qw);if(!I)return u.return();P=(J=I.item)==null?void 0:(r=J.notificationTextRenderer)==null?void 0:r.successResponseText;if(!P)return u.return();N=_.aX(P);z.JSC$17462_commandHandler.resolveCommand(N);_.nu(u)})};
Lq[zp]=[_.j6];var lW=function(a,z){this.innertubeTransportService=a;this.JSC$17467_playerApiPromise=z};
_.b(lW,wW);
lW.prototype.resolveCommand=function(a){var z=this,I,J,r,P,N,u,E,O,f;return _.t(function(A){if(A.nextAddress==1)return A.yield(z.JSC$17467_playerApiPromise,2);I=A.yieldResult;J=I.getOption("captions","track");r=Object.assign({},_.H(a,_.iRe));(N=(P=I.getVideoData())==null?void 0:P.video_id)?r.externalVideoId=N:_.RL(Error("Ei"));if((u=J)==null?0:u.languageCode)r.languageCode=J.languageCode;if((E=J)==null?0:E.kind)r.kind=J.kind;if((O=J)==null?0:O.name)r.name=J.name;f=Object.assign({},a,{getTranscriptEndpoint:r});return A.yield(_.y7(z.innertubeTransportService,
f),0)})};
lW[zp]=[_.dY,_.Zc];var pq=function(){};
_.b(pq,wW);pq.prototype.resolveCommand=function(a){var z,I,J,r,P,N,u,E;return _.t(function(O){z=_.H(a,fPv);if((I=z)==null||!I.paramKeyValuePairs)return O.return();J=window.location.href;r=_.C(z.paramKeyValuePairs);for(P=r.next();!P.done;P=r.next())N=P.value,N.key&&N.value&&(u={},J=_.ms(J,(u[N.key]=N.value,u)));E=_.ab().resolve(_.Hs);_.F3(E,J);_.nu(O)})};var wA=function(a,z){this.JSC$17474_commandHandler=a;this.innertubeTransportService=z};
_.b(wA,wW);
wA.prototype.resolveCommand=function(a,z){var I=this,J,r,P,N,u,E,O,f,A,n,F,h,v,d,W,l,q;return _.t(function(m){switch(m.nextAddress){case 1:return(P=(J=z)==null?void 0:(r=J.form)==null?void 0:r.element)&&_.lm(P),N=_.Kt().get("hl"),u="",_.BP(m,2),m.yield(RbG(N),4);case 4:u=m.yieldResult;_.p1(m,3);break;case 2:return _.sk(m),P&&_.pc(P),_.Gx(Error("Gi"),"ERROR"),m.return();case 3:E=_.H(a,Atv);if(!E)return P&&_.pc(P),m.return();(A=(O=E.commerceActionConfig)==null?void 0:(f=O.commandLifeCycleConfig)==null?
void 0:f.onStartCommand)&&I.JSC$17474_commandHandler.resolveCommand(A);return m.yield(_.y7(I.innertubeTransportService,a,{client_data:{paymentsClientToken:{token:u}}}),5);case 5:(n=m.yieldResult)?(P&&_.pc(P),((d=n)==null?0:d.command)&&I.JSC$17474_commandHandler.resolveCommand(n.command),(q=(W=E.commerceActionConfig)==null?void 0:(l=W.commandLifeCycleConfig)==null?void 0:l.onSuccessCommand)&&I.JSC$17474_commandHandler.resolveCommand(q)):(P&&_.pc(P),_.Gx(Error("Hi")),(v=(F=E.commerceActionConfig)==
null?void 0:(h=F.commandLifeCycleConfig)==null?void 0:h.onFailureCommand)&&I.JSC$17474_commandHandler.resolveCommand(v)),_.nu(m)}})};
wA[zp]=[_.j6,_.dY];var mp=function(a,z,I){this.store=a;this.JSC$17490_commandHandler=z;this.innertubeTransportService=I};
_.b(mp,wW);
mp.prototype.resolveCommand=function(a,z){var I=this,J,r,P,N,u,E,O,f,A;return _.t(function(n){J=_.H(a,sTJ);r=J.googlePaymentPayload;J.onStartCommand&&I.JSC$17490_commandHandler.resolveCommand(J.onStartCommand);P=r.encryptedPurchaseParams;N=r.ypcLogWalletAnalyticDataEndpoint;u=J.serializedTransactionFlowLoggingParams;E=r.serializedPaymentsClientParams;O=J.ypcCujContext;A=poO(I.innertubeTransportService,(f=z)==null?void 0:f.form,P,N,u,E,O);return n.return(A.then(function(F){LE$(z==null?void 0:z.form,
!1);var h=I.store,v=I.JSC$17490_commandHandler,d=F.integratorData;d==null||d===""||F.error!=null?(String(F.error)==="-1"&&J.onDismissCommand?v.resolveCommand(J.onDismissCommand):String(F.error)!=="-1"&&J.onFailureCommand&&v.resolveCommand(J.onFailureCommand),String(F.error)!=="-1"&&String(F.error)!=="132"&&_.Gx(Error("Ii"),"ERROR")):(J.googlePaymentEntityKey&&h.dispatch(_.Q0("commerceAcquisitionClientPayloadEntity",J.googlePaymentEntityKey,{key:J.googlePaymentEntityKey,commerceAcquisitionClientPayload:{googlePaymentClientPayload:{paymentsPayload:d,
fundsGuaranteeCallbackClientData:F.integratorClientCallbackData}}})),J.onSuccessCommand&&v.resolveCommand(J.onSuccessCommand));_.uI()},function(F){LE$(z==null?void 0:z.form,!1);
_.Gx(F,"ERROR");J.onFailureCommand&&I.JSC$17490_commandHandler.resolveCommand(J.onFailureCommand)}))})};
mp[zp]=[r0,_.j6,_.dY];var yZ=function(a,z){this.JSC$17494_commandHandler=a;this.purchaseManager=z};
_.b(yZ,wW);
yZ.prototype.resolveCommand=function(a){var z=this,I,J,r,P,N,u,E,O,f;return _.t(function(A){I=_.H(a,nuj);((J=I)==null?0:(r=J.commandLifeCycleConfig)==null?0:r.onStartCommand)&&z.JSC$17494_commandHandler.resolveCommand(I.commandLifeCycleConfig.onStartCommand);if(!((P=I)==null?0:(N=P.googlePaymentPurchaseManagerPayload)==null?0:N.securePayloadBytes))return _.Gx(Error("Ji"),"ERROR"),A.return();u=Avi(_.cp(I.googlePaymentPurchaseManagerPayload.securePayloadBytes));E=_.Kt().get("hl");O=_.kq();Xjw(u.serialize(),
E,function(n){O.resolve(n)},function(n){O.reject(n)},O.resolve);
f=O.promise;return A.return(f.then(function(n){if(n)if(n==null?0:n.errorCode){_.Gx(Error("Ki`"+n.errorCode),"ERROR");var F,h;((F=I)==null?0:(h=F.commandLifeCycleConfig)==null?0:h.onFailureCommand)&&z.JSC$17494_commandHandler.resolveCommand(I.commandLifeCycleConfig.onFailureCommand)}else if(n==null?0:n.isCancelled){var v,d;((v=I)==null?0:(d=v.commandLifeCycleConfig)==null?0:d.onCancelCommand)&&z.JSC$17494_commandHandler.resolveCommand(I.commandLifeCycleConfig.onCancelCommand)}else{var W,l;((W=I)==
null?0:(l=W.commandLifeCycleConfig)==null?0:l.onSuccessCommand)&&z.JSC$17494_commandHandler.resolveCommand(I.commandLifeCycleConfig.onSuccessCommand)}},function(n){_.Gx(n,"ERROR");
var F,h;((F=I)==null?0:(h=F.commandLifeCycleConfig)==null?0:h.onFailureCommand)&&z.JSC$17494_commandHandler.resolveCommand(I.commandLifeCycleConfig.onFailureCommand)}))})};
yZ[zp]=[_.j6,TwE];var o7M=function(a,z){this.JSC$17502_commandHandler=a;this.commandAllowlistOverride=z;var I;this.commandAllowlist=(I=this.commandAllowlistOverride)!=null?I:MK};
o7M.prototype.handleResponse=function(a,z,I){var J,r=z==null?void 0:(J=z.config)==null?void 0:J.command;if(!r||this.commandAllowlist.some(function(P){return!!_.H(r,P)})){z=void 0;
I!==void 0&&(z={form:{element:I}});a.onResponseReceivedCommand&&this.JSC$17502_commandHandler.resolveCommand(a.onResponseReceivedCommand,z);a.onResponseReceivedAction&&this.JSC$17502_commandHandler.resolveCommand(a.onResponseReceivedAction,z);a.onResponseReceivedEndpoint&&this.JSC$17502_commandHandler.resolveCommand(a.onResponseReceivedEndpoint,z);a.command&&this.JSC$17502_commandHandler.resolveCommand(a.command,z);if(a.onResponseReceivedCommands)for(I=_.C(a.onResponseReceivedCommands),J=I.next();!J.done;J=
I.next())this.JSC$17502_commandHandler.resolveCommand(J.value,z);if(a.onResponseReceivedActions)for(I=_.C(a.onResponseReceivedActions),J=I.next();!J.done;J=I.next())this.JSC$17502_commandHandler.resolveCommand(J.value,z);if(a.onResponseReceivedEndpoints)for(I=_.C(a.onResponseReceivedEndpoints),J=I.next();!J.done;J=I.next())this.JSC$17502_commandHandler.resolveCommand(J.value,z);if(a.actions)for(a=_.C(a.actions),I=a.next();!I.done;I=a.next())this.JSC$17502_commandHandler.resolveCommand(I.value,z)}};
o7M[zp]=[_.j6,_.eL(v4G)];var UOe=new _.I4("INNERTUBE_TOKEN_SERVICE");var DO0=new _.I4("SCHEDULER_TOKEN");var RIi=function(a){this.scheduler=a;a={};this.tokenMap=(a.app={},a.user={},a)};
RIi.prototype.handleResponse=function(a,z){if(!z)throw Error("Li");var I;if(a=(I=a.responseContext)==null?void 0:I.innertubeTokenJar){if(a.appTokens){var J,r,P;I=(J=z.innerTubeRequest.context)==null?void 0:(r=J.request)==null?void 0:(P=r.innertubeTokenJar)==null?void 0:P.appTokens;Ld0(this,a.appTokens,this.tokenMap.app,I)}if(a.userTokens){var N,u,E;z=(N=z.innerTubeRequest.context)==null?void 0:(u=N.request)==null?void 0:(E=u.innertubeTokenJar)==null?void 0:E.userTokens;Ld0(this,a.userTokens,this.tokenMap.user,
z)}}};
RIi.prototype.processContext=function(a){a.request||(a.request={});var z=Object.keys(this.tokenMap.app).length,I=Object.keys(this.tokenMap.user).length;if(z||I)a.request.innertubeTokenJar={},z&&(a.request.innertubeTokenJar.appTokens=[].concat(_.ih(Object.values(this.tokenMap.app).flat()))),I&&(a.request.innertubeTokenJar.userTokens=[].concat(_.ih(Object.values(this.tokenMap.user).flat())))};
var Ld0=function(a,z,I,J){z=_.C(z);for(var r=z.next(),P={};!r.done;P={token$jscomp$138:void 0},r=z.next()){P.token$jscomp$138=r.value;if(P.token$jscomp$138.type===void 0)throw new _.Fn("InnerTube token has no type",P.token$jscomp$138);if(P.token$jscomp$138.clearTokens)I[P.token$jscomp$138.type]=[];else if(P.token$jscomp$138.value!==void 0){I[P.token$jscomp$138.type]||(I[P.token$jscomp$138.type]=[]);if(J!==void 0&&J.length){r=_.C(J);for(var N=r.next(),u={};!N.done;u={requestToken:void 0},N=r.next())u.requestToken=
N.value,N=I[P.token$jscomp$138.type].findIndex(function(E){return function(O){return O===E.requestToken||(0,_.x8.equals)(O,E.requestToken)}}(u)),N>-1&&I[P.token$jscomp$138.type].splice(N,1)}I[P.token$jscomp$138.type].push(P.token$jscomp$138);
P.token$jscomp$138.maxAgeSeconds&&Number(P.token$jscomp$138.maxAgeSeconds)>0&&a.scheduler.addLowPriorityJob(function(E){return function(){var O=I[E.token$jscomp$138.type].indexOf(E.token$jscomp$138);O>-1&&I[E.token$jscomp$138.type].splice(O,1)}}(P),Number(P.token$jscomp$138.maxAgeSeconds)*1E3)}else throw new _.Fn("InnerTube token has no value",P.token$jscomp$138);
}};
RIi[zp]=[DO0];var li4=new _.I4("LOCAL_INNERTUBE_ROUTER_TOKEN"),ppz=new _.I4("LOCAL_INNERTUBE_SERVICE_MAP_TOKEN");var kD=function(a){this.serviceMap=a};
kD.prototype.shouldPreferLocalResponse=function(a,z){return(a=wpE(this,a))?a.shouldPreferLocalResponse(z):!1};
kD.prototype.localInnertubeResponse=function(a,z){var I=this,J;return _.t(function(r){return(J=wpE(I,a))?r.return(J.localInnertubeResponse(z)):r.return(Promise.reject(Error("Mi")))})};
kD.prototype.canProvideFallbackResponse=function(a,z){return(a=wpE(this,a))?a.canProvideFallbackResponse(z):!1};
kD.prototype.localFallbackInnertubeResponse=function(a,z){var I=this,J;return _.t(function(r){return(J=wpE(I,a))?r.return(J.localFallbackInnertubeResponse(z)):r.return(Promise.reject(Error("Mi")))})};
var wpE=function(a,z){z=_.ul(z);return z?(a=a.serviceMap[z])?a:null:null};
kD[zp]=[ppz];var Kh=function(){};
Kh.prototype.shouldPreferLocalResponse=function(){return!1};
Kh.prototype.localInnertubeResponse=function(){return _.t(function(a){return a.return(Promise.reject(Error("Ni")))})};
Kh.prototype.canProvideFallbackResponse=function(){return!0};
Kh.prototype.localFallbackInnertubeResponse=function(){var a,z,I;return _.t(function(J){a=nc("CLOSE_POPUP");z={openPopupAction:m6m()};I={actions:[a,z]};return J.return(I)})};var l2x=function(a,z){this.JSC$17552_upliftPromise=a;this.store=z};
_.Z=l2x.prototype;_.Z.shouldPreferLocalResponse=function(a){var z=a.videoId,I;if(I=z)I=eoi(this.store.getState().entities,a.videoId);return I&&aOi(this.store.getState().entities,z)?kim(this.store.getState().entities,a.playlistId):!1};
_.Z.localInnertubeResponse=function(a){var z=this,I;return _.t(function(J){return(I=z.getPlayerResponse(a))?J.return(Promise.resolve(I)):J.return(Promise.reject(Error("Oi")))})};
_.Z.canProvideFallbackResponse=function(a){return!!a.videoId};
_.Z.localFallbackInnertubeResponse=function(a){var z=this,I;return _.t(function(J){if(J.nextAddress==1)return J.yield(z.JSC$17552_upliftPromise,2);I=z.getPlayerResponse(a);var r;I?r=J.return(Promise.resolve(I)):r=VC(z.store.getState().entities,a.videoId)?J.return({playabilityStatus:{status:"UNPLAYABLE",errorScreen:{playerErrorMessageRenderer:{reason:_.zg(_.AR("DOWNLOAD_UNAVAILABLE",void 0,"Download unavailable. Try a different video.")),proceedButton:{buttonRenderer:eM$()},icon:{iconType:"OFFLINE_NO_CONTENT"}}}}}):
J.return({playabilityStatus:{status:"UNPLAYABLE",errorScreen:{playerErrorMessageRenderer:{reason:_.zg(_.AR("OFFLINE_CHECK_CONNECTION",void 0,"You're offline. Check your connection.")),proceedButton:{buttonRenderer:qEG()},icon:{iconType:"OFFLINE_NO_CONTENT"}}}}});return r})};
_.Z.getPlayerResponse=function(a){return Q77(this.store.getState().entities,a.videoId)};var nh=function(a,z){this.localPlayerService=a;this.localWatchNextService=z};
nh.prototype.shouldPreferLocalResponse=function(a){var z=a.playerRequest;a=a.watchNextRequest;return!!(z&&this.localPlayerService.shouldPreferLocalResponse(z)&&a&&this.localWatchNextService.shouldPreferLocalResponse(a))};
nh.prototype.localInnertubeResponse=function(a){var z=this,I,J,r,P;return _.t(function(N){if(N.nextAddress==1){I=a.playerRequest;J=a.watchNextRequest;if(!I||!J)throw new _.Fn("Missing streaming request",a);return N.yield(z.localPlayerService.localInnertubeResponse(I),2)}if(N.nextAddress!=3)return r=N.yieldResult,N.yield(z.localWatchNextService.localInnertubeResponse(J),3);P=N.yieldResult;return N.return({playerResponse:r,watchNextResponse:P})})};
nh.prototype.canProvideFallbackResponse=function(a){var z=a.playerRequest;a=a.watchNextRequest;return!!(z&&this.localPlayerService.canProvideFallbackResponse(z)&&a&&this.localWatchNextService.canProvideFallbackResponse(a))};
nh.prototype.localFallbackInnertubeResponse=function(a){var z=this,I,J,r,P;return _.t(function(N){if(N.nextAddress==1)return I=a.playerRequest,J=a.watchNextRequest,I&&J?N.yield(z.localPlayerService.localFallbackInnertubeResponse(I),2):N.return(Promise.reject(new _.Fn("Missing streaming request",a)));if(N.nextAddress!=3)return r=N.yieldResult,N.yield(z.localWatchNextService.localFallbackInnertubeResponse(J),3);P=N.yieldResult;return N.return({playerResponse:r,watchNextResponse:P})})};var fh=function(a){this.JSC$17562_persistentStorePromiseAccessor=a};
fh.prototype.shouldPreferLocalResponse=function(){return!1};
fh.prototype.localInnertubeResponse=function(){return _.t(function(a){return a.return(Promise.reject(Error("Pi")))})};
fh.prototype.canProvideFallbackResponse=function(){return!0};
fh.prototype.localFallbackInnertubeResponse=function(){var a=this,z,I;return _.t(function(J){return J.nextAddress==1?J.yield(a.JSC$17562_persistentStorePromiseAccessor(),2):J.nextAddress!=3?(z=J.yieldResult)?J.yield(z.get("service:guide:fallback"),3):J.return(Promise.reject(Error("Qi"))):(I=J.yieldResult)&&_.Iv(I)?J.return(MsE(_.Iv(I))):J.return(Promise.reject(Error("Ri")))})};var Fx=function(){};
Fx.prototype.shouldPreferLocalResponse=function(){return!1};
Fx.prototype.localInnertubeResponse=function(){return _.t(function(a){return a.return(Promise.reject(Error("Si")))})};
Fx.prototype.canProvideFallbackResponse=function(){return!0};
Fx.prototype.localFallbackInnertubeResponse=function(){var a,z,I;return _.t(function(J){a=nc("CLOSE_POPUP");z={openPopupAction:m6m()};I={actions:[a,z]};return J.return(I)})};var OJ=function(){this.urlMap=mOZ;this.fallbackCommand=_.VT};
OJ.prototype.shouldPreferLocalResponse=function(a){return(a=a.url)?!!y1M(this,a):!1};
OJ.prototype.localInnertubeResponse=function(a){var z=this,I;return _.t(function(J){return(I=a.url)?J.return(k3E(a,y1M(z,I))):J.return(Promise.reject(Error("Ti")))})};
OJ.prototype.canProvideFallbackResponse=function(){return!0};
OJ.prototype.localFallbackInnertubeResponse=function(a){var z=this,I,J,r,P,N,u,E;return _.t(function(O){I=a.url;if(!I)return O.return(k3E(a,z.fallbackCommand));if(J=y1M(z,I))return O.return(k3E(a,J));r=void 0;P=_.ul(I);P==="/watch"&&(N=_.US(I,"v"))&&(E=(u=_.US(I,"list"))!=null?u:void 0,r=_.jx(N,E));r||(r=z.fallbackCommand);return O.return(k3E(a,r))})};
var y1M=function(a,z){if(z)return a.urlMap[_.pL(z)]},k3E=function(a,z){z&&a.parentTrackingParams&&(z.commandMetadata=Object.assign({},{resolveUrlCommandMetadata:{parentTrackingParams:a.parentTrackingParams}},z.commandMetadata));
return Promise.resolve({responseContext:{},endpoint:z})};var AI=function(a,z,I){this.JSC$17572_upliftPromise=a;this.store=z;this.JSC$17572_persistentStorePromiseAccessor=I};
AI.prototype.shouldPreferLocalResponse=function(){return!1};
AI.prototype.localInnertubeResponse=function(){return _.t(function(a){return a.return(Promise.reject(Error("Ui")))})};
AI.prototype.canProvideFallbackResponse=function(){return!0};
AI.prototype.localFallbackInnertubeResponse=function(){var a=this;return _.t(function(z){return z.return(MME(a))})};
var MME=function(a){var z,I;return _.t(function(J){if(J.nextAddress==1)return J.yield(zO(a.JSC$17572_upliftPromise,a.store),2);z=J.yieldResult;I={twoColumnSearchResultsRenderer:{primaryContents:{sectionListRenderer:{contents:[yZ0(z)]}}}};return J.return(c1Z(a,I))})},c1Z=function(a,z){var I,J;
return _.t(function(r){if(r.nextAddress==1)return r.yield(a.JSC$17572_persistentStorePromiseAccessor(),2);if(r.nextAddress!=3)return I=r.yieldResult,r.yield(JI(I),3);J=r.yieldResult;return r.return({responseContext:{},contents:z,topbar:J})})};var Bq=function(a,z,I){this.JSC$17579_upliftPromise=a;this.store=z;this.JSC$17579_persistentStorePromiseAccessor=I};
Bq.prototype.shouldPreferLocalResponse=function(a){var z=a.videoId;return z&&eoi(this.store.getState().entities,z)&&aOi(this.store.getState().entities,z)?kim(this.store.getState().entities,a.playlistId):!1};
Bq.prototype.localInnertubeResponse=function(a){var z=this,I,J;return _.t(function(r){if(r.nextAddress==1)return(I=a.videoId)?r.yield(z.JSC$17579_upliftPromise,2):r.return(Promise.reject(Error("Vi")));if(r.nextAddress!=3)return r.yield(YmZ(z,a,I),3);J=r.yieldResult;return r.return(qmV(z,J,I))})};
Bq.prototype.canProvideFallbackResponse=function(a){return a.videoId?!0:!1};
Bq.prototype.localFallbackInnertubeResponse=function(a){var z=this,I,J,r,P;return _.t(function(N){switch(N.nextAddress){case 1:return(I=a.videoId)?N.yield(z.JSC$17579_upliftPromise,2):N.return(Promise.reject(Error("Vi")));case 2:return N.yield(YmZ(z,a,I),3);case 3:J=N.yieldResult;if(VC(z.store.getState().entities,I)){N.jumpTo(4);break}return N.yield(zO(z.JSC$17579_upliftPromise,z.store),5);case 5:return r=N.yieldResult,N.return(eIZ(J,r));case 4:return eoi(z.store.getState().entities,I)&&aOi(z.store.getState().entities,
I)?N.return(qmV(z,J,I)):(P={title:_.zg(_.AR("DOWNLOAD_UNAVAILABLE",void 0,"Download unavailable. Try a different video.")),icon:{iconType:"OFFLINE_NO_CONTENT"},ctaButton:{buttonRenderer:eM$()},style:{value:"BACKGROUND_PROMO_STYLE_TYPE_FULL_HEIGHT"},loggingDirectives:{clientVeSpec:{uiType:236655}}},N.return(eIZ(J,P)))}})};
var YmZ=function(a,z,I){var J,r,P,N,u;return _.t(function(E){if(E.nextAddress==1)return J=z.playlistId,r=_.jx(I,J),E.yield(a.JSC$17579_persistentStorePromiseAccessor(),2);if(E.nextAddress!=3)return P=E.yieldResult,E.yield(JI(P),3);N=E.yieldResult;u={responseContext:{},currentVideoEndpoint:r,topbar:N};return E.return(u)})},qmV=function(a,z,I){if(a=VC(a.store.getState().entities,I)){var J;
I=a.videoEntity;var r,P={title:IU(I.title),viewCount:{videoViewCountRenderer:{shortViewCount:_.JW((J=I.localizedStrings)==null?void 0:J.viewCount),viewCount:_.JW((r=I.localizedStrings)==null?void 0:r.viewCount)}}};I.publishedTimestampMillis&&(P.dateText=_.JW(fGd(new Date(Number(I.publishedTimestampMillis)))));J={videoPrimaryInfoRenderer:P};r=a.videoEntity;a=a.channelEntity;a={videoSecondaryInfoRenderer:{defaultExpanded:!1,descriptionCollapsedLines:3,showMoreText:IU(_.AR("SHOW_MORE",void 0,"Show more")),
showLessText:IU(_.AR("SHOW_LESS",void 0,"Show less")),description:r.formattedDescription,owner:{videoOwnerRenderer:{title:IU(a.title),thumbnail:a.avatar}}}};z.contents={twoColumnWatchNextResults:{results:{results:{contents:[J,a]}}}}}return z},eIZ=function(a,z){a.contents={singleColumnWatchNextResults:{results:{results:{contents:[yZ0(z)]}}}};
return a};var sJ=function(a,z,I){this.JSC$17584_upliftPromise=a;this.store=z;this.JSC$17584_persistentStorePromiseAccessor=I};
sJ.prototype.shouldPreferLocalResponse=function(){return!1};
sJ.prototype.localInnertubeResponse=function(){return _.t(function(a){return a.return(Promise.reject(Error("Wi")))})};
sJ.prototype.canProvideFallbackResponse=function(){return!0};
sJ.prototype.localFallbackInnertubeResponse=function(){var a=this,z,I,J,r;return _.t(function(P){switch(P.nextAddress){case 1:return P.yield(a.JSC$17584_persistentStorePromiseAccessor(),2);case 2:return z=P.yieldResult,P.yield(JI(z),3);case 3:return I=P.yieldResult,J={responseContext:{},topbar:I},P.yield(a.JSC$17584_upliftPromise,4);case 4:return P.yield(zO(a.JSC$17584_upliftPromise,a.store),5);case 5:return r=P.yieldResult,J.watchStatus={backgroundPromoRenderer:r},P.return(J)}})};_.aji=new _.I4("ENDPOINT_MAP");var jwV=function(){var a=this;this.sequenceMap=new Map;this.TEST_ONLY={getSequenceMap:function(){return a.sequenceMap}}},tAw=function(a,z,I){var J,r=(J=z.config)==null?void 0:J.sequenceStrategy;
if(!r)return I();a.sequenceMap.has(r.sequenceKey)||a.sequenceMap.set(r.sequenceKey,[]);a=a.sequenceMap.get(r.sequenceKey);switch(r.sequenceType){case "REQUEST_SEQUENCE_TYPE_APPEND":return zvZ(a,z,I);case "REQUEST_SEQUENCE_TYPE_REPLACE":return Ije(a,z,I);default:throw new _.Fn("Request could not be sequenced",z);}},zvZ=function(a,z,I){var J,r,P;
return _.t(function(N){a.length>0?(r=a[a.length-1],J=r.responsePromise.then(function(){return I()})):J=I();
P={request:z,responsePromise:J};a.push(P);JoE(a,P);return N.return(P.responsePromise)})},Ije=function(a,z,I){I=I();
if(a.length>0)for(var J=_.C(a),r=J.next();!r.done;r=J.next())r.value.responsePromise=I;var P={request:z,responsePromise:I};a.push(P);JoE(a,P);return Promise.resolve().then(function(){return a.indexOf(P)>0?P.responsePromise.then(function(N){return Object.assign({},N,{sequenceMetaData:{skipProcessing:!0}})}):P.responsePromise})},JoE=function(a,z){z.responsePromise.then(function(){var I=a.indexOf(z);
I>-1&&a.splice(I,1)})};var roE=new _.I4("REQUEST_SEQUENCING");var Mz=function(){};
_.b(Mz,AK);Mz.prototype.getApiPaths=function(){return[]};
Mz.prototype.getExtension=function(a){return _.H(a,Kgw)};
Mz.prototype.JSC$13006_buildRequest=function(a,z){a.recaptchaToken=z.recaptchaToken};
Mz.prototype.getApiUrl=function(){return"/das_captcha"};var c2=function(){};
_.b(c2,AK);c2.prototype.getApiPaths=function(){return OVw};
c2.prototype.getExtension=function(a){return _.H(a,MNE)};
c2.prototype.JSC$13006_buildRequest=function(a,z,I){I=I===void 0?{}:I;z.createBackstagePostParams&&(a.createBackstagePostParams=z.createBackstagePostParams);I.comment_text&&(a.commentText=I.comment_text);if(I.attached_video_id)a.videoAttachment={videoId:I.attached_video_id};else if(I.image_poll_options)a.pollAttachmentData={options:I.image_poll_options};else if(I.poll_options)a.pollAttachment={choices:I.poll_options};else if(I.quiz_options)a.quizAttachmentData={options:I.quiz_options};else if(I.image_blob_id)a.imageAttachment=
{encryptedBlobId:I.image_blob_id},I.source_video_id&&(a.imageAttachment.sourceExternalVideoId=I.source_video_id),I.image_preview_coordinates&&(a.imageAttachment.previewCoordinates=JSON.parse(I.image_preview_coordinates));else if(I.images_data)a.imagesAttachment={imagesData:I.images_data};else if(I.clip_external_video_id!==void 0||I.clip_offset_ms!==void 0||I.clip_duration_ms!==void 0){var J,r,P,N,u;a.clipAttachment={externalVideoId:(P=I.clip_external_video_id)!=null?P:"",offsetMs:(N=(J=I.clip_offset_ms)==
null?void 0:J.toString())!=null?N:"",durationMs:(u=(r=I.clip_duration_ms)==null?void 0:r.toString())!=null?u:""}}else I.shared_post_id&&(a.sharedPostAttachment={postId:I.shared_post_id});I.tagged_video_id&&(a.postCreationData={taggedVideoId:I.tagged_video_id});I.access_restrictions&&(typeof I.access_restrictions==="number"&&(z=I.access_restrictions,a.accessRestrictions={restriction:z!==1&&z===2?"RESTRICTION_TYPE_SPONSORS_ONLY":"RESTRICTION_TYPE_EVERYONE"}),typeof I.access_restrictions==="string"&&
(a.accessRestrictionsParams=I.access_restrictions));I.scheduled_publish_time_sec&&(a.scheduledPublishTimeSec=I.scheduled_publish_time_sec.toString())};var YD=function(){};
_.b(YD,AK);YD.prototype.getApiPaths=function(){return HVw};
YD.prototype.getExtension=function(a){return _.H(a,f5w)};
YD.prototype.JSC$13006_buildRequest=function(a,z,I){I=I===void 0?{}:I;z.decorateMessageParams&&(a.params=z.decorateMessageParams);I.text&&(a.text=I.text)};var qz=function(){};
_.b(qz,AK);qz.prototype.getApiPaths=function(){return leX};
qz.prototype.getExtension=function(a){return _.H(a,cTG)};
qz.prototype.JSC$13006_buildRequest=function(a,z,I){I=I===void 0?{}:I;I.video_id&&(a.videoId=I.video_id)};var eA=function(){};
_.b(eA,AK);eA.prototype.getApiPaths=function(){return ktI};
eA.prototype.getExtension=function(a){return _.H(a,_.ge)};
eA.prototype.JSC$13006_buildRequest=function(a,z,I){I.suggestions_query&&(a.input=I.suggestions_query)};var a2=function(){};
_.b(a2,AK);a2.prototype.getApiPaths=function(){return S3j};
a2.prototype.getExtension=function(a){return _.H(a,Ytf)};
a2.prototype.JSC$13006_buildRequest=function(a,z,I){I.comment_text!==void 0&&(a.commentText=I.comment_text);I.scheduled_publish_time_sec&&(a.scheduledPublishTimeSec=I.scheduled_publish_time_sec.toString());a.updateBackstagePostParams=z.updateBackstagePostParams};var jU=function(){};
_.b(jU,AK);jU.prototype.getApiPaths=function(){return c0};
jU.prototype.getExtension=function(a){return _.H(a,_.R5)};
jU.prototype.JSC$13006_buildRequest=function(a,z,I){I.formData&&(a.formData=I.formData);z.token?a.continuation=z.token:z.continuationTokenKey&&(I=_.qo().getState(),z=_.Bd(I.entities,"continuationTokenEntity",z.continuationTokenKey))&&(a.continuation=String(z.continuationToken))};
var Pw0=function(){};
_.b(Pw0,AK);_.Z=Pw0.prototype;_.Z.getApiPaths=function(){return c0};
_.Z.getExtension=function(a){return _.H(a,_.KH)};
_.Z.isNavigationCommand=function(){return!0};
_.Z.JSC$13013_getStoreKey=function(a){if((a=this.getExtension(a))&&a.browseId){var z={browseId:a.browseId};a.browseEndpointContextSupportedConfigs&&(z.browseEndpointContextSupportedConfigs=JSON.stringify(a.browseEndpointContextSupportedConfigs));a.params&&(z.params=a.params);a.query&&(z.query=a.query);return _.k2("browse",z)}};
_.Z.JSC$13006_buildRequest=function(a,z,I){z.browseId&&(a.browseId=z.browseId);z.params&&(a.params=z.params);z.query&&(a.query=z.query);I.formData?a.formData=I.formData:z.formData&&(a.formData=z.formData);z.browseId==="FEsubscriptions"&&_.Kt().getFlag(155)&&(a.subscriptionSettingsState="MY_SUBS_SETTINGS_STATE_LAYOUT_FORMAT_LIST");z.browseId==="SPaccount_playback"&&(I=_.Kt(),a.formData||(a.formData={}),a.formData.accountSettingsFormData={flagCaptionsDefaultOff:I.getFlag(65),flagAutoCaptionsDefaultOn:I.getFlag(66),
flagDisableInlinePreview:I.getFlag(186),flagAudioDescriptionDefaultOn:I.getFlag(198)});if(z.browseId==="FEwhat_to_watch"){I=_.Kt();var J=I.getFlag(196);I.getFlag(197)&&(a.browseRequestSupportedMetadata={downloadsBrowseParams:{offlineFeatureSettingState:{isSdEnabled:J}}})}z.browseId==="FEwhat_to_watch"&&(z=_.Kt().getFlag(186),a.inlineSettingStatus=z?"INLINE_SETTING_STATUS_DISABLED":"INLINE_SETTING_STATUS_ON")};
_.Z.getRequestConfig=function(a,z){z=z===void 0?{}:z;var I={};if(a=this.JSC$13013_getStoreKey(a,z))I.storeStrategy={storeKey:a,disableCache:z.disableCache};_.K("web_log_browse_ticks_ks")||(I.requestTick="br_s",I.responseTick="br_r");return I};var z1=function(){};
_.b(z1,AK);z1.prototype.getApiPaths=function(){return NIi};
z1.prototype.getExtension=function(a){return _.H(a,Vaw)};
z1.prototype.JSC$13006_buildRequest=function(a,z,I){a.legacyYoutubeChannelUsername=I.legacyYouTubeChannelUsername||"";a.legacyYoutubeChannelPassword=I.legacyYouTubeChannelPassword||""};var I2=function(){};
_.b(I2,AK);I2.prototype.getApiPaths=function(){return fwi};
I2.prototype.getExtension=function(a){return _.H(a,rHo)};
I2.prototype.JSC$13006_buildRequest=function(a,z,I){I.recaptcha_response_token&&(a.recaptchaResponseToken=I.recaptcha_response_token);I.channel_id&&(a.channelId=I.channel_id)};var JS=function(){};
_.b(JS,AK);JS.prototype.getApiPaths=function(){return idl};
JS.prototype.getExtension=function(a){return _.H(a,uUE)};
JS.prototype.JSC$13006_buildRequest=function(a,z,I){z.externalChannelId&&(a.externalChannelId=z.externalChannelId);I.handle&&(a.handleUpdate={handle:I.handle},z.handleEditSource&&(a.handleUpdate.handleEditSource=z.handleEditSource))};var rl=function(){};
_.b(rl,AK);rl.prototype.getApiPaths=function(){return $Uv};
rl.prototype.getExtension=function(a){return _.H(a,XVj)};
rl.prototype.JSC$13006_buildRequest=function(a,z,I){z.request&&(a.channelId=z.request.channelId);var J;if(I==null?0:(J=I.uploadDefaults)==null?0:J.emojiReactionSet)a.uploadDefaultsRequest||(a.uploadDefaultsRequest={}),a.uploadDefaultsRequest.emojiReactionSet=I.uploadDefaults.emojiReactionSet};var Pi=function(){};
_.b(Pi,AK);Pi.prototype.getApiPaths=function(){return dUf};
Pi.prototype.getExtension=function(a){return _.H(a,Pnj)};
Pi.prototype.JSC$13006_buildRequest=function(a,z,I){z.externalChannelId&&(a.externalChannelId=z.externalChannelId);z.channelHandleEntityKey&&(a.channelHandleEntityKey=z.channelHandleEntityKey);z.handleEditSource&&(a.handleEditSource=z.handleEditSource);I.handle?a.handle=I.handle:I.name&&(a.name=I.name)};var Zd=function(){};
_.b(Zd,AK);Zd.prototype.getApiPaths=function(){return EIO};
Zd.prototype.getExtension=function(a){return _.H(a,cVf)};
Zd.prototype.JSC$13006_buildRequest=function(a,z){z.actions?a.actions=z.actions:z.action&&(a.actions=[z.action])};var Ci=function(){};
_.b(Ci,AK);Ci.prototype.getApiPaths=function(){return BIi};
Ci.prototype.getExtension=function(a){return _.H(a,_.R5)};
Ci.prototype.JSC$13006_buildRequest=function(a,z){z.token&&(a.continuation=z.token)};var Na=function(){};
_.b(Na,AK);Na.prototype.getApiPaths=function(){return R1e};
Na.prototype.getExtension=function(a){return _.H(a,_.R5)};
Na.prototype.JSC$13006_buildRequest=function(a,z){a.notificationsMenuRequestType="NOTIFICATIONS_MENU_REQUEST_TYPE_COMMENTS";z.token&&(a.fetchCommentsParams={continuation:z.token})};var tS=function(){};
_.b(tS,AK);tS.prototype.getApiPaths=function(){return sWJ};
tS.prototype.getExtension=function(a){return _.H(a,MGX)};
tS.prototype.JSC$13006_buildRequest=function(a,z,I){I=I===void 0?{}:I;z.createReplyParams&&(a.createReplyParams=z.createReplyParams);z.commentText&&(a.commentText=_.cd(z.commentText));I.comment_text&&(a.commentText=I.comment_text);I.image_blob_id&&(a.imageAttachment={encryptedBlobId:I.image_blob_id});I.botguard_response&&(a.botguardResponse=I.botguard_response)};
_.eH.Object.defineProperties(tS.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var uX=function(){};
_.b(uX,AK);uX.prototype.getApiPaths=function(){return nII};
uX.prototype.getExtension=function(a){return _.H(a,_.k7f)};
uX.prototype.JSC$13006_buildRequest=function(a,z,I){I=I===void 0?{}:I;z.createCommentParams&&(a.createCommentParams=z.createCommentParams);z.commentText&&(a.commentText=_.cd(z.commentText));z.videoPositionMention&&(a.videoPositionMention=z.videoPositionMention);z.sources&&(a.sources=z.sources);I.comment_text&&(a.commentText=I.comment_text);I.attached_video_id?a.videoAttachment={videoId:I.attached_video_id}:I.poll_options?a.pollAttachment={choices:I.poll_options}:I.image_blob_id?a.imageAttachment=
{encryptedBlobId:I.image_blob_id}:I.shared_post_id&&(a.sharedPostAttachment={postId:I.shared_post_id});I.access_restrictions&&typeof I.access_restrictions==="number"&&(z=I.access_restrictions,a.accessRestrictions={restriction:z!==1&&z===2?"RESTRICTION_TYPE_SPONSORS_ONLY":"RESTRICTION_TYPE_EVERYONE"});I.botguard_response&&(a.botguardResponse=I.botguard_response)};
_.eH.Object.defineProperties(uX.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var E$=function(){};
_.b(E$,AK);E$.prototype.getApiPaths=function(){return xUi};
E$.prototype.getExtension=function(a){return _.H(a,qLO)};
E$.prototype.JSC$13006_buildRequest=function(a,z,I){z.commentText&&(a.replyText=_.cd(z.commentText));I.comment_text&&(a.replyText=I.comment_text);a.updateReplyParams=z.updateReplyParams};
_.eH.Object.defineProperties(E$.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var Bi=function(){};
_.b(Bi,AK);Bi.prototype.getApiPaths=function(){return vaG};
Bi.prototype.getExtension=function(a){return _.H(a,YLi)};
Bi.prototype.JSC$13006_buildRequest=function(a,z,I){z.commentText&&(a.commentText=_.cd(z.commentText));I.comment_text&&(a.commentText=I.comment_text);a.updateCommentParams=z.updateCommentParams};
_.eH.Object.defineProperties(Bi.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var gl=function(){};
_.b(gl,AK);gl.prototype.getApiPaths=function(){return G4X};
gl.prototype.getExtension=function(a){return _.H(a,xQO)};
gl.prototype.JSC$13006_buildRequest=function(a,z){z.settings&&(a.settings=z.settings)};var O$=function(){};
_.b(O$,AK);O$.prototype.getApiPaths=function(){return XZw};
O$.prototype.getExtension=function(a){return _.H(a,Zpl)};
O$.prototype.JSC$13006_buildRequest=function(a,z){z.channelCreationToken&&(a.channelCreationToken=z.channelCreationToken);z.source&&(a.source=z.source)};var fi=function(){};
_.b(fi,AK);fi.prototype.getApiPaths=function(){return Ace};
fi.prototype.getExtension=function(a){return _.H(a,tql)};
fi.prototype.JSC$13006_buildRequest=function(a,z,I){I=I===void 0?{}:I;if(I.name&&(I.given_name||I.family_name))a=new _.Fn("channel creation cannot set both GAIA and YouTube names",z),_.Gx(a);else{if(z.zeroStepChannelCreationParams){if(!I.comment_text){a=new _.Fn("zero_step_create_comment_params but no zero_step_texts",z);_.Gx(a);return}a.zeroStepChannelCreationParams=z.zeroStepChannelCreationParams;a.zeroStepChannelCreationParams.zeroStepCreateCommentParams&&(a.zeroStepChannelCreationParams.zeroStepCreateCommentParams.input=
I.comment_text,I.botguard_response&&(a.zeroStepChannelCreationParams.zeroStepCreateCommentParams.botguardResponse=I.botguard_response))}a.channelCreationToken=z.channelCreationToken;I.given_name&&(a.givenName=I.given_name);I.family_name&&(a.familyName=I.family_name);z.source==="CHANNEL_SWITCHER_CHANNEL_CREATION_SOURCE"&&(a.channelCreationType="CHANNEL_CREATION_TYPE_SECONDARY");if(I.name||I.handle||I.avatar_url||I.encryptedBlobId||I.isNameChanged!==void 0||I.isHandleChanged!==void 0||I.isDefaultProfilePhoto!==
void 0||I.obakeImageSource)a.overrideChannelCreationParams={},I.name&&(a.overrideChannelCreationParams.name=I.name),I.handle&&(a.overrideChannelCreationParams.handle=I.handle),I.avatar_url&&(a.overrideChannelCreationParams.avatarUrl=I.avatar_url),I.encryptedBlobId&&(a.overrideChannelCreationParams.blobEncryptionId=I.encryptedBlobId),I.enableIdentityForAllChannelCreationDialog&&(I.encryptedBlobId?a.overrideChannelCreationParams.identityForAllChannelCreationAvatarTag="IDENTITY_FOR_ALL_CHANNEL_CREATION_AVATAR_TAG_CUSTOM":
I.isDefaultProfilePhoto!==void 0&&(a.overrideChannelCreationParams.identityForAllChannelCreationAvatarTag=I.isDefaultProfilePhoto?"IDENTITY_FOR_ALL_CHANNEL_CREATION_AVATAR_TAG_GOOGLE_DEFAULT_MONOGRAM":"IDENTITY_FOR_ALL_CHANNEL_CREATION_AVATAR_TAG_GOOGLE_DEFAULT_OTHER"),I.isNameChanged!==void 0&&(a.overrideChannelCreationParams.identityForAllChannelCreationNameTag=I.isNameChanged?"IDENTITY_FOR_ALL_CHANNEL_CREATION_NAME_TAG_CUSTOM":"IDENTITY_FOR_ALL_CHANNEL_CREATION_NAME_TAG_GOOGLE_DEFAULT"),I.isHandleChanged!==
void 0&&(a.overrideChannelCreationParams.identityForAllChannelCreationHandleTag=I.isHandleChanged?"IDENTITY_FOR_ALL_CHANNEL_CREATION_HANDLE_TAG_CUSTOM":"IDENTITY_FOR_ALL_CHANNEL_CREATION_HANDLE_TAG_DEFAULT_AUTOGEN"),I.obakeImageSource&&(a.overrideChannelCreationParams.obakeImageSourceType=I.obakeImageSource))}};var AS=function(){};
_.b(AS,AK);AS.prototype.getApiPaths=function(a){return(a=this.getExtension(a))&&a.status==="DISLIKE"?QWv:a&&a.status==="INDIFFERENT"?u3w:e1w};
AS.prototype.getExtension=function(a){return _.H(a,_.Rd)};
AS.prototype.JSC$13006_buildRequest=function(a,z){z.target&&(a.target=z.target);if(z=this.getParams(z))a.params=z};
AS.prototype.getParams=function(a){switch(a==null?void 0:a.status){case "DISLIKE":return a.dislikeParams;case "INDIFFERENT":return a.removeLikeParams;default:return a==null?void 0:a.likeParams}};var s$=function(){};
_.b(s$,AK);s$.prototype.getApiPaths=function(){return FbJ};
s$.prototype.getExtension=function(a){return _.H(a,Jqe)};
s$.prototype.JSC$13006_buildRequest=function(a,z){z.settingItemId&&(a.settingItemId=z.settingItemId);z.stringValue!=null&&z.stringValue!==void 0?a.newValue={stringValue:z.stringValue}:z.intValue?a.newValue={intValue:z.intValue}:z.boolValue!==null&&z.boolValue!==void 0?a.newValue={boolValue:z.boolValue}:(a=new _.Fn("Unknown value type for SetSettingEndpoint.",z),_.Gx(a))};var ni=function(){};
_.b(ni,AK);ni.prototype.getApiPaths=function(){return h6w};
ni.prototype.getExtension=function(a){return _.H(a,FhE)||void 0};
ni.prototype.JSC$13006_buildRequest=function(a,z,I){I=I===void 0?{}:I;z.channelIds&&(a.channelIds=z.channelIds);z.siloName&&(a.siloName=z.siloName);z.params&&(a.params=z.params);I.botguardResponse&&(a.botguardResponse=I.botguardResponse);I.feature&&(a.clientFeature=I.feature)};
_.eH.Object.defineProperties(ni.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var Ki=function(){};
_.b(Ki,AK);Ki.prototype.getApiPaths=function(){return QpI};
Ki.prototype.getExtension=function(a){return _.H(a,rqe)||void 0};
Ki.prototype.JSC$13006_buildRequest=function(a,z){z.channelIds&&(a.channelIds=z.channelIds);z.siloName&&(a.siloName=z.siloName);z.params&&(a.params=z.params)};
_.eH.Object.defineProperties(Ki.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var FL=function(a){this.shareClientParamsProvider=a};
_.b(FL,AK);FL.prototype.getApiPaths=function(){return e8m};
FL.prototype.getExtension=function(a){return _.H(a,XY1)||_.H(a,_.Tho)||_.H(a,$be)};
FL.prototype.JSC$13006_buildRequest=function(a,z){z.serializedShareEntity&&(a.serializedSharedEntity=z.serializedShareEntity);if(z.clientParamIdentifier){var I;if((I=this.shareClientParamsProvider)==null?0:I.clientParams.has(z.clientParamIdentifier)){I=this.shareClientParamsProvider;z=z.clientParamIdentifier;var J=I.clientParams.get(z);J&&I.clientParams.delete(z);a.clientParams=J}}};
FL[zp]=[Npi];var Hi=function(){};
_.b(Hi,AK);Hi.prototype.getApiPaths=function(){return PfG};
Hi.prototype.getExtension=function(a){return _.H(a,dkl)};
Hi.prototype.JSC$13006_buildRequest=function(a,z){z.params&&(a.params=z.params)};var bX=function(){};
_.b(bX,AK);bX.prototype.getApiPaths=function(){return SFj};
bX.prototype.getExtension=function(a){return _.H(a,$kJ)};
bX.prototype.JSC$13006_buildRequest=function(a,z){z.dismissal&&(a.items=[z.dismissal])};
_.eH.Object.defineProperties(bX.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var hS=function(){};
_.b(hS,AK);hS.prototype.getApiPaths=function(){return YFI};
hS.prototype.getExtension=function(a){return _.H(a,_.$K)||void 0};
hS.prototype.JSC$13006_buildRequest=function(a,z,I){a.feedbackTokens=[];z.feedbackToken&&a.feedbackTokens.push(z.feedbackToken);if(z=z.cpn||I.cpn)a.feedbackContext={cpn:z};a.isFeedbackTokenUnencrypted=!!I.is_feedback_token_unencrypted;a.shouldMerge=!1;I.extra_feedback_tokens&&(a.shouldMerge=!0,a.feedbackTokens=a.feedbackTokens.concat(I.extra_feedback_tokens))};
_.eH.Object.defineProperties(hS.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var Vk=function(){};
_.b(Vk,AK);Vk.prototype.getApiPaths=function(){return YFI};
Vk.prototype.getExtension=function(a){return _.H(a,_.ge)};
Vk.prototype.JSC$13006_buildRequest=function(a,z,I){I.feedback_tokens&&(a.feedbackTokens=I.feedback_tokens,a.shouldMerge=!0)};
_.eH.Object.defineProperties(Vk.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var Qk=function(){};
_.b(Qk,AK);Qk.prototype.getApiPaths=function(){return YFI};
Qk.prototype.getExtension=function(a){return _.H(a,a6m)};
Qk.prototype.JSC$13006_buildRequest=function(a,z){z.undoToken&&(a.feedbackTokens=[z.undoToken]);z.isUndoTokenUnencrypted&&(a.isFeedbackTokenUnencrypted=z.isUndoTokenUnencrypted)};
_.eH.Object.defineProperties(Qk.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var SU=function(){};
_.b(SU,AK);SU.prototype.getApiPaths=function(){return Wbv};
SU.prototype.getExtension=function(a){return _.H(a,xkl)};
SU.prototype.JSC$13006_buildRequest=function(a,z){z.nextEndpoint&&_.H(z.nextEndpoint,_.pv)?a.nextEndpoint={urlEndpoint:_.H(z.nextEndpoint,_.pv)}:z.nextEndpoint&&_.H(z.nextEndpoint,_.MZ)&&(a.nextEndpoint={watchEndpoint:_.H(z.nextEndpoint,_.MZ)});z.setRacy&&(a.setRacy=z.setRacy);z.setControvercy&&(a.setControvercy=z.setControvercy)};var iX=function(a){this.JSC$17765_storeWithEntities=a};
_.b(iX,AK);iX.prototype.getApiPaths=function(){return x5f};
iX.prototype.getExtension=function(a){return _.H(a,aNe)};
iX.prototype.JSC$13006_buildRequest=function(a,z){z.flowId&&(a.flowId=z.flowId);z.targetId&&(a.targetId=z.targetId);z.continuation&&(a.continuation=z.continuation);var I=z.flowStateEntityKey;if(z.flowStatePassingSpec==="FLOW_STATE_PASSING_SPEC_FULL_STATE"&&I&&this.JSC$17765_storeWithEntities){var J;if(z=(J=this.JSC$17765_storeWithEntities.getState())==null?void 0:J.entities)if(J=_.ZY(I).entityType,J=_.Bd(z,J,I))a.flowState=J,a.flowStateEntityKey=I}};
_.eH.Object.defineProperties(iX.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});
iX[zp]=[r0];var Zle=function(){};
_.b(Zle,AK);_.Z=Zle.prototype;_.Z.getApiPaths=function(){return cce};
_.Z.JSC$13013_getStoreKey=function(){return _.k2("guide")};
_.Z.getRequestConfig=function(){var a=this.JSC$13013_getStoreKey(),z;a&&(z={storeStrategy:{storeKey:a}});return z};
_.Z.isNavigationCommand=function(){return!0};
_.Z.getExtension=function(a){return _.H(a,_.ge)};
_.Z.JSC$13006_buildRequest=function(a){a.fetchLiveState=!0};var xb=function(){};
_.b(xb,AK);xb.prototype.getApiPaths=function(){return tBf};
xb.prototype.getExtension=function(a){return _.H(a,wUv)};
xb.prototype.JSC$13006_buildRequest=function(){};var vi=function(){};
_.b(vi,AK);vi.prototype.getApiPaths=function(){return ucw};
vi.prototype.getExtension=function(a){return _.H(a,myv)};
vi.prototype.JSC$13006_buildRequest=function(){};var G1=function(){};
_.b(G1,AK);G1.prototype.getApiPaths=function(){return rcG};
G1.prototype.getExtension=function(a){return _.H(a,_.R5)};
G1.prototype.JSC$13006_buildRequest=function(a,z){z.token&&(a.continuation=z.token);var I,J;a==null||(I=a.context)==null||(J=I.user)==null||delete J.onBehalfOfUser};
G1.prototype.getRequestConfig=function(a){var z={},I;if(((I=this.getExtension(a))==null?void 0:I.sessionIndex)!==void 0){var J;z={authStrategy:{sessionIndex:(J=this.getExtension(a))==null?void 0:J.sessionIndex}}}return z};var $b=function(){};
_.b($b,AK);$b.prototype.JSC$13006_getRequest=function(a){var z=this.getExtension(a),I=a="";if(z==null?0:z.popup)a="true";if(z==null?0:z.disableSignout)I="true";z={};return{input:"/getAccountSwitcherEndpoint",requestShell:y$("/getAccountSwitcherEndpoint","GET",(z["X-YouTube-Delegation-Context"]=_.Xw("INNERTUBE_CONTEXT_SERIALIZED_DELEGATION_CONTEXT"),z["X-YouTube-Account-Switcher-Popup"]=a,z["X-YouTube-Account-Switcher-Disable-Signout"]=I,z)),innerTubeRequest:{}}};
$b.prototype.getApiPaths=function(){return[]};
$b.prototype.getExtension=function(a){return _.H(a,_.QId)};
$b.prototype.JSC$13006_buildRequest=function(){};var XL=function(){};
_.b(XL,AK);XL.prototype.JSC$13006_getRequest=function(a){var z="/cross_account_channel_transfer";(a=this.getExtension(a))&&(z=s_7(z,{target_session:a.targetSessionIndex,source_rapt:a.sourceRapt,rapt:a.targetRapt}));return{input:z,requestShell:y$(z,"GET"),innerTubeRequest:{}}};
XL.prototype.getApiPaths=function(){return[]};
XL.prototype.getExtension=function(a){return _.H(a,QcJ)};
XL.prototype.JSC$13006_buildRequest=function(){};var T1=function(){};
_.b(T1,AK);T1.prototype.getApiPaths=function(){return vIJ};
T1.prototype.isNavigationCommand=function(){return!0};
T1.prototype.getExtension=function(a){return _.H(a,_.ge)};
T1.prototype.JSC$13006_buildRequest=function(a){var z=_.Kt().get("gsml","");z&&(a.safetyModeLockerObfuscatedGaiaId=z);a.userInterfaceTheme=_.xh(!0);_.vh()?a.deviceTheme="DEVICE_THEME_SELECTED":_.Fb3()?a.deviceTheme="DEVICE_THEME_SUPPORTED":a.deviceTheme="DEVICE_THEME_UNSUPPORTED"};var dl=function(){};
_.b(dl,AK);dl.prototype.getApiPaths=function(){return rcG};
dl.prototype.getExtension=function(a){return _.H(a,Stv)};
dl.prototype.JSC$13006_buildRequest=function(a,z){if(z&&z.requestType&&(a.requestType=z.requestType,z.requestType==="ACCOUNTS_LIST_REQUEST_TYPE_CHANNEL_SWITCHER"||z.requestType==="ACCOUNTS_LIST_REQUEST_TYPE_IDENTITY_PROMPT")){var I=z.nextUrl;I&&(_.K8m(I)||YS(I))&&(a.nextNavendpoint={urlEndpoint:{url:I}})}z&&z.channelSwitcherQuery&&(a.channelSwitcherQuery=z.channelSwitcherQuery);z&&z.triggerChannelCreation&&(a.triggerChannelCreation=z.triggerChannelCreation);var J;if(z==null?0:(J=z.contentOwnerConfig)==
null?0:J.externalContentOwnerId)a.contentOwnerConfig=z.contentOwnerConfig;a.callCircumstance=z&&z.requestType&&z.requestType==="ACCOUNTS_LIST_REQUEST_TYPE_IDENTITY_PROMPT"?"SUPPLEMENTAL_USER":"SWITCHING_USERS_FULL";var r,P;z=a==null?void 0:(r=a.context)==null?void 0:(P=r.user)==null?void 0:P.onBehalfOfUser;if(z!==void 0){a.obfuscatedSelectedGaiaId=z;var N,u;a==null||(N=a.context)==null||(u=N.user)==null||delete u.onBehalfOfUser}var E,O;if(r=a==null?void 0:(E=a.context)==null?void 0:(O=E.user)==null?
void 0:O.serializedDelegationContext)a.selectedSerializedDelegationContext=r};var Wi=function(){};
_.b(Wi,AK);Wi.prototype.getApiPaths=function(){return ZVo};
Wi.prototype.getExtension=function(a){return _.H(a,dbX)};
Wi.prototype.JSC$13006_buildRequest=function(a,z){z.params&&(a.params=z.params)};var o2=function(){};
_.b(o2,AK);o2.prototype.getApiPaths=function(){return feJ};
o2.prototype.getExtension=function(a){return _.H(a,_.cXw)};
o2.prototype.JSC$13006_buildRequest=function(a,z){if(z=z.createBroadcastRequest)a.useMasks=z.useMasks,a.broadcastType=z.broadcastType,a.broadcastSource=z.broadcastSource,a.broadcastMetadata=z.broadcastMetadata,a.broadcastMetadataMask=z.broadcastMetadataMask,a.videoMetadata=z.videoMetadata,a.videoMetadataMask=z.videoMetadataMask,a.liveChatSettingsUpdate=z.liveChatSettingsUpdate,a.liveChatSettingsUpdateMask=z.liveChatSettingsUpdateMask,a.cloneVideoId=z.cloneVideoId,a.cloneWithOverrides=z.cloneWithOverrides,
a.targetEntity=z.targetEntity,a.scheduledRedirectMetadata=z.scheduledRedirectMetadata};var U$=function(){};
_.b(U$,AK);U$.prototype.getApiPaths=function(){return KDj};
U$.prototype.getExtension=function(a){return _.H(a,Lqw)};
U$.prototype.JSC$13006_buildRequest=function(a,z,I){I=I===void 0?{}:I;z.params&&(a.params=z.params);I.questionText&&(a.questionText=I.questionText);I.optionText&&I.optionText.length>0&&(a.optionText=I.optionText)};var Dd=function(){};
_.b(Dd,AK);Dd.prototype.getApiPaths=function(){return bVE};
Dd.prototype.getExtension=function(a){return _.H(a,DJO)};
Dd.prototype.JSC$13006_buildRequest=function(a,z){z.params&&(a.params=z.params)};var R2=function(){};
_.b(R2,AK);R2.prototype.getApiPaths=function(){return d5O};
R2.prototype.getExtension=function(a){return _.H(a,dJI)};
R2.prototype.JSC$13006_buildRequest=function(a,z){z.params&&(a.params=z.params)};var Li=function(){};
_.b(Li,AK);Li.prototype.getApiPaths=function(){return oIw};
Li.prototype.getExtension=function(a){return _.H(a,Wqw)};
Li.prototype.JSC$13006_buildRequest=function(a,z,I){z.params&&(a.params=z.params);z.continuation&&(a.continuation=z.continuation);I.currentPlayerState&&I.currentPlayerState.playerOffsetMs&&(a.currentPlayerState={playerOffsetMs:I.currentPlayerState.playerOffsetMs.toString()})};var lX=function(){};
_.b(lX,AK);lX.prototype.getApiPaths=function(){return U5e};
lX.prototype.getExtension=function(a){return _.H(a,Taw)};
lX.prototype.JSC$13006_buildRequest=function(a,z,I){z.params&&(a.params=z.params);I.continuation&&(a.continuation=I.continuation);"hidden"in I&&(a.webClientInfo={isDocumentHidden:I.hidden});I.isInvalidationTimeoutRequest&&(a.isInvalidationTimeoutRequest=I.isInvalidationTimeoutRequest);I.invalidationPayload&&(z=XEJ(_.cp(qY(I.invalidationPayload))),a.invalidationPayloadLastPublishAtUsec=$R(z,2));I.reloadActionPanel&&(a.reloadActionPanel=I.reloadActionPanel);I.fullReload&&(a.fullReload=I.fullReload);
I.currentPlayerState&&(a.currentPlayerState=I.currentPlayerState)};var pi=function(){};
_.b(pi,AK);pi.prototype.getApiPaths=function(){return awX};
pi.prototype.getExtension=function(a){return _.H(a,Re1)};
pi.prototype.JSC$13006_buildRequest=function(a,z){a.params=z.params};var wl=function(){};
_.b(wl,AK);wl.prototype.getApiPaths=function(){return WDw};
wl.prototype.getExtension=function(a){return _.H(a,qx1)};
wl.prototype.JSC$13006_buildRequest=function(a,z){z.params&&(a.params=z.params)};var m$=function(){};
_.b(m$,AK);m$.prototype.getApiPaths=function(){return D5I};
m$.prototype.getExtension=function(a){return _.H(a,eci)};
m$.prototype.JSC$13006_buildRequest=function(a,z){z.params&&(a.params=z.params)};var yk=function(){};
_.b(yk,AK);yk.prototype.getApiPaths=function(){return jpo};
yk.prototype.getExtension=function(a){return _.H(a,lNw)};
yk.prototype.JSC$13006_buildRequest=function(a,z){z.params&&(a.params=z.params)};var kb=function(){};
_.b(kb,AK);kb.prototype.getApiPaths=function(){return Iww};
kb.prototype.getExtension=function(a){return _.H(a,pEw)};
kb.prototype.JSC$13006_buildRequest=function(a,z){z.params&&(a.params=z.params)};var Ma=function(){};
_.b(Ma,AK);Ma.prototype.getApiPaths=function(){return Eal};
Ma.prototype.getExtension=function(a){return _.H(a,UbX)};
Ma.prototype.JSC$13006_buildRequest=function(a,z){z.params&&(a.params=z.params)};var II=function(){};
_.b(II,AK);II.prototype.getApiPaths=function(){return nai};
II.prototype.getExtension=function(a){return _.H(a,_.wEv)};
II.prototype.JSC$13006_buildRequest=function(a,z,I){I=I===void 0?{}:I;z.params&&(a.params=z.params);I.client_message_id&&(a.clientMessageId=I.client_message_id);I.recaptcha_token&&(a.recaptchaToken=I.recaptcha_token);I.rich_message&&I.rich_message.text_segments?(z=I.rich_message.text_segments.map(function(J){var r={};J.text&&(r.text=J.text);J.emoji_id&&(r.emojiId=J.emoji_id);return r}),a.richMessage={textSegments:z}):I.message&&(a.message=I.message);
I.currentPlayerState&&(a.currentPlayerState=I.currentPlayerState)};var Ji=function(){};
_.b(Ji,AK);Ji.prototype.getApiPaths=function(){return KbO};
Ji.prototype.getExtension=function(a){return _.H(a,mJJ)};
Ji.prototype.JSC$13006_buildRequest=function(a,z){z.params&&(a.params=z.params)};var r9=function(){};
_.b(r9,AK);r9.prototype.getApiPaths=function(){return VzX};
r9.prototype.getExtension=function(a){return _.H(a,kpE)};
r9.prototype.JSC$13006_buildRequest=function(a,z,I){z.isUserInitiated&&(a.isUserInitiated=z.isUserInitiated);z.initiationSource&&(a.initiationSource=z.initiationSource);I.locationInfo&&(a.context.client.locationInfo=I.locationInfo)};var Pz=function(){};
_.b(Pz,AK);Pz.prototype.getApiPaths=function(){return z6O};
Pz.prototype.getExtension=function(a){return _.H(a,YHE)};
Pz.prototype.JSC$13006_buildRequest=function(a,z,I){z.metadataUpdateRequest&&(z=z.metadataUpdateRequest,a.encryptedVideoId=z.encryptedVideoId,z.liveChat&&(z=z.liveChat,a.liveChat||(a.liveChat={}),z.performAsExternalChannelId&&(a.liveChat.performAsExternalChannelId=z.performAsExternalChannelId),z.source&&(a.liveChat.source=z.source)));var J;if(I==null?0:(J=I.liveChat)==null?0:J.liveChatSettings)a.liveChat||(a.liveChat={}),I=I.liveChat.liveChatSettings,a.liveChat.newLiveChatSettings=I,a.liveChat.newLiveChatSettingsMask||
(a.liveChat.newLiveChatSettingsMask={}),I.emojiReactionSet&&(a.liveChat.newLiveChatSettingsMask.emojiReactionSet=!0)};var ZB=function(){};
_.b(ZB,AK);ZB.prototype.getApiPaths=function(){return TPI};
ZB.prototype.getExtension=function(a){return _.H(a,_.PzX)};
ZB.prototype.JSC$13006_buildRequest=function(a,z,I){I.continuation?a.continuation=I.continuation:z.videoId&&(a.videoId=z.videoId);I.clientParams&&(a.clientParams=I.clientParams)};var CP=function(){};
_.b(CP,AK);CP.prototype.getApiPaths=function(){return R1e};
CP.prototype.getExtension=function(a){return _.H(a,_.UL)};
CP.prototype.JSC$13006_buildRequest=function(a,z){a.notificationsMenuRequestType="NOTIFICATIONS_MENU_REQUEST_TYPE_COMMENTS";a.fetchCommentsParams={};z.videoId&&(a.fetchCommentsParams.encryptedVideoId=z.videoId);z.postId&&(a.fetchCommentsParams.postId=z.postId);z.externalChannelId&&(a.fetchCommentsParams.externalChannelId=z.externalChannelId);z.linkedCommentId&&(a.fetchCommentsParams.linkedCommentId=z.linkedCommentId);(0,_.x8.isEmpty)(a.fetchCommentsParams)&&delete a.fetchCommentsParams};var Nt=function(){};
_.b(Nt,AK);Nt.prototype.getApiPaths=function(){return c0};
Nt.prototype.JSC$13006_buildRequest=function(a){a.browseId="FEnotifications_inbox"};
Nt.prototype.getExtension=function(a){return _.H(a,_.ge)};var ti=function(){};
_.b(ti,AK);ti.prototype.getApiPaths=function(){return R1e};
ti.prototype.JSC$13006_buildRequest=function(a,z){z.signal==="GET_NOTIFICATIONS_MENU"&&(a.notificationsMenuRequestType="NOTIFICATIONS_MENU_REQUEST_TYPE_INBOX");z.ctoken&&(a.ctoken=z.ctoken)};
var Cwf=function(){};
_.b(Cwf,ti);Cwf.prototype.getExtension=function(a){return _.H(a,_.ge)};
var Nfe=function(){};
_.b(Nfe,ti);Nfe.prototype.getExtension=function(a){return _.H(a,QRv)};var ux=function(){};
_.b(ux,AK);ux.prototype.getApiPaths=function(){return ycG};
ux.prototype.getExtension=function(a){return _.H(a,_.ge)};
ux.prototype.JSC$13006_buildRequest=function(){};var EZ=function(){};
_.b(EZ,AK);EZ.prototype.getApiPaths=function(){return JMG};
EZ.prototype.getExtension=function(a){return _.H(a,j7i)||void 0};
EZ.prototype.JSC$13006_buildRequest=function(a,z){z.params&&(a.params=z.params);z.secondaryParams&&(a.secondaryParams=z.secondaryParams)};var Bz=function(){};
_.b(Bz,AK);Bz.prototype.getApiPaths=function(){return rMj};
Bz.prototype.getExtension=function(a){return _.H(a,Wtf)};
Bz.prototype.JSC$13006_buildRequest=function(a,z){z.undo&&(a.undo=z.undo);z.serializedOptOut&&(a.serializedOptOut=z.serializedOptOut);z.serializedRecordInteractionsRequest&&(a.serializedRecordInteractionsRequest=z.serializedRecordInteractionsRequest)};var g9=function(){};
_.b(g9,AK);g9.prototype.getApiPaths=function(){return CQw};
g9.prototype.getExtension=function(a){return _.H(a,oEo)};
g9.prototype.JSC$13006_buildRequest=function(a,z){z.serializedInteractionsRequest&&(a.serializedRecordNotificationInteractionsRequest=z.serializedInteractionsRequest)};var OZ=function(){};
_.b(OZ,AK);OZ.prototype.getApiPaths=function(){return arG};
OZ.prototype.getExtension=function(a){return _.H(a,T9m)};
OZ.prototype.JSC$13006_buildRequest=function(a,z,I){z=z===void 0?{}:z;I=I===void 0?{}:I;z.videoId?a.videoId=z.videoId:z.playlistId&&(a.playlistId=z.playlistId);var J,r=(J=z.offlineWebClientEligibility)!=null?J:I.offlineWebClientEligibility;r&&(a.offlineWebClientEligibility=r);var P;if(J=(P=z.preferredFormatType)!=null?P:I.preferredFormatType)a.preferredFormatType=J;var N;if(P=(N=z.lastOfflineQualitySettingsSavedMs)!=null?N:I.lastOfflineQualitySettingsSavedMs)a.lastOfflineQualitySettingsSavedMs=P;
z.params&&(a.params=z.params)};var fP=function(){};
_.b(fP,AK);fP.prototype.getApiPaths=function(){return Jq};
fP.prototype.getExtension=function(a){return _.H(a,_.R5)};
fP.prototype.JSC$13006_buildRequest=function(a,z,I){I=I===void 0?{}:I;z.token&&(a.continuation=z.token);I.formData&&(a.formData=I.formData)};var Ai=function(){};
_.b(Ai,AK);Ai.prototype.getApiPaths=function(){return Jq};
Ai.prototype.getExtension=function(a){return _.H(a,wGj)};
Ai.prototype.JSC$13006_buildRequest=function(a,z,I){I=I===void 0?{}:I;a.continuation=I.continuation};var sZ=function(){};
_.b(sZ,AK);sZ.prototype.getApiPaths=function(){return Jq};
sZ.prototype.getExtension=function(a){return _.H(a,_.GO)};
sZ.prototype.JSC$13006_buildRequest=function(a,z){var I,J=z.panelIdentifier||((I=z.identifier)==null?void 0:I.tag);J&&(a.panelId=J);var r;if((r=z.globalConfiguration)==null?0:r.params){var P;a.params=(P=z.globalConfiguration)==null?void 0:P.params}};
_.eH.Object.defineProperties(sZ.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var nP=function(){};
_.b(nP,AK);nP.prototype.getApiPaths=function(){return Jq};
nP.prototype.getExtension=function(a){return _.H(a,h3i)};
nP.prototype.JSC$13006_buildRequest=function(a,z){z.panelLoadingStrategy&&eb$(a,z.panelLoadingStrategy)};var KP=function(){};
_.b(KP,AK);KP.prototype.getApiPaths=function(){return Jq};
KP.prototype.getExtension=function(a){return _.H(a,M_O)};
KP.prototype.JSC$13006_buildRequest=function(a,z){z.loadingStrategy&&eb$(a,z.loadingStrategy)};var FP=function(){};
_.b(FP,AK);FP.prototype.getApiPaths=function(){return Jq};
FP.prototype.getExtension=function(a){return _.H(a,_.Sr)};
FP.prototype.JSC$13006_buildRequest=function(a,z){z.panelLoadingStrategy&&eb$(a,z.panelLoadingStrategy)};var Hz=function(){};
_.b(Hz,AK);Hz.prototype.getApiPaths=function(){return Jq};
Hz.prototype.getExtension=function(a){return _.H(a,cNJ)};
Hz.prototype.JSC$13006_buildRequest=function(a,z){var I,J=(I=z.contentSourcePanelIdentifier)==null?void 0:I.tag;J&&(a.panelId=J);var r;if((r=z.globalConfiguration)==null?0:r.params){var P;a.params=(P=z.globalConfiguration)==null?void 0:P.params}};var bx=function(){};
_.b(bx,AK);bx.prototype.getApiPaths=function(){return["pdg/get_pdg_buy_flow"]};
bx.prototype.getExtension=function(a){return _.H(a,Yxf)};
bx.prototype.JSC$13006_buildRequest=function(a,z){z.params&&(a.params=z.params)};var hi=function(){};
_.b(hi,AK);hi.prototype.getApiPaths=function(){return XsE};
hi.prototype.getExtension=function(a){return _.H(a,a5f)};
hi.prototype.JSC$13006_buildRequest=function(a,z){z.externalChannelId&&(a.externalChannelId=z.externalChannelId);z.superChatAction&&(a.superChatAction=z.superChatAction);z.superStickersAction&&(a.superStickersAction=z.superStickersAction)};var Vf=function(){};
_.b(Vf,AK);Vf.prototype.getApiPaths=function(){return GtE};
Vf.prototype.getExtension=function(a){return _.H(a,pUi)||_.H(a,WMp)};
Vf.prototype.JSC$13006_buildRequest=function(a,z){z.videoIds?a.videoIds=z.videoIds:z.videoId&&(a.videoIds=[z.videoId]);z.playlistId&&(a.playlistId=z.playlistId);z.params&&(a.params=z.params);a.excludeWatchLater=!1};var Qf=function(){};
_.b(Qf,AK);Qf.prototype.getApiPaths=function(){return FDJ};
Qf.prototype.getExtension=function(a){return _.H(a,_.mS)};
Qf.prototype.JSC$13006_buildRequest=function(a,z,I){I.create_playlist_title?a.title=I.create_playlist_title:z.title&&(a.title=z.title);if(I.create_playlist_privacy_status&&typeof I.create_playlist_privacy_status==="number"){a:{var J=I.create_playlist_privacy_status;if(J!==0){if(J===1){J="PUBLIC";break a}if(J===2){J="UNLISTED";break a}}J="PRIVATE"}a.privacyStatus=J}else z.privacyStatus&&(a.privacyStatus=z.privacyStatus);I.create_playlist_description&&(a.description=I.create_playlist_description);z.videoIds&&
(a.videoIds=z.videoIds);z.params&&(a.params=z.params);z.sourcePlaylistId&&(a.sourcePlaylistId=z.sourcePlaylistId)};var S9=function(){};
_.b(S9,AK);S9.prototype.getApiPaths=function(){return h1w};
S9.prototype.getExtension=function(a){return _.H(a,eoj)};
S9.prototype.JSC$13006_buildRequest=function(a,z){a.playlistId=z.playlistId};var ix=function(){};
_.b(ix,AK);ix.prototype.getApiPaths=function(){return LDe};
ix.prototype.getExtension=function(a){return _.H(a,vE1)};
ix.prototype.JSC$13006_buildRequest=function(a,z){z.playlistId&&(a.playlistId=z.playlistId);z.params&&(a.params=z.params)};var x4=function(){};
_.b(x4,AK);x4.prototype.getApiPaths=function(){return Zdf};
x4.prototype.getExtension=function(a){return _.H(a,_.D5)||void 0};
x4.prototype.JSC$13006_buildRequest=function(a,z){z.actions&&(a.actions=z.actions);z.params&&(a.params=z.params);z.playlistId&&(a.playlistId=z.playlistId)};var vz=function(){};
_.b(vz,AK);_.Z=vz.prototype;_.Z.getApiPaths=function(){return NPG};
_.Z.getExtension=function(a){return _.H(a,_.hv)};
_.Z.JSC$13006_buildRequest=function(a,z){z.videoId&&(a.playerRequest={videoId:z.videoId},z.playerParams&&(a.playerRequest.params=z.playerParams),z.racyCheckOk&&(a.playerRequest.racyCheckOk=!!z.racyCheckOk),z.contentCheckOk&&(a.playerRequest.contentCheckOk=!!z.contentCheckOk));z.params&&(a.params=z.params);z.inputType&&(a.inputType=z.inputType);a.disablePlayerResponse=!0};
_.Z.getRequestConfig=function(a){var z;(a=this.JSC$13013_getStoreKey(a))&&(z={storeStrategy:{storeKey:a}});_.K("web_log_reels_ticks")&&(z=z||{},z.requestTick="r_wrs",z.responseTick="r_wrr");return z};
_.Z.JSC$13013_getStoreKey=function(a){a=this.getExtension(a);if(_.K("shorts_controller_retrieve_seedless_sequence_v2")){if((a==null?void 0:a.inputType)==="REEL_WATCH_INPUT_TYPE_SEEDLESS")return _.k2("reel_item_watch",{inputType:"REEL_WATCH_INPUT_TYPE_SEEDLESS"})}else if(_.K("web_shorts_prefetch_service_enabled")&&a!=null&&a.videoId){var z={videoId:a.videoId};a.params&&(z.params=a.params);return _.k2("reel_item_watch",z)}};var GT=function(){};
_.b(GT,AK);_.Z=GT.prototype;_.Z.getApiPaths=function(){return tzl};
_.Z.getExtension=function(a){return _.H(a,_.hv)};
_.Z.JSC$13006_buildRequest=function(a,z,I){I=I===void 0?{}:I;a.sequenceParams=z.sequenceParams;var J;((J=I)==null?0:J.contentPlaybackContext)&&_.K("web_shorts_prefetch_service_enabled")&&(a.playbackContext={contentPlaybackContext:I.contentPlaybackContext})};
_.Z.JSC$13013_getStoreKey=function(a){if(_.K("web_enable_delay_shorts_sequence_call")||_.K("shorts_controller_retrieve_seedless_sequence_v2"))if(a=this.getExtension(a),a==null?0:a.sequenceParams)return _.k2("reel_watch_sequence",{sequenceParams:a.sequenceParams})};
_.Z.getRequestConfig=function(a){a=this.JSC$13013_getStoreKey(a);var z;a&&(z={storeStrategy:{storeKey:a}});_.K("reel_watch_sequence_request_log_ticks")&&(z=z||{},z.requestTick="r_wsrs",z.responseTick="r_wsrr",z.processorTick="r_wsrp");return z};
var $4=function(){};
_.b($4,AK);$4.prototype.getApiPaths=function(){return tzl};
$4.prototype.getExtension=function(a){return _.H(a,_.R5)};
$4.prototype.JSC$13006_buildRequest=function(a,z,I){I=I===void 0?{}:I;z.token&&(a.continuation=z.token);var J;((J=I)==null?0:J.contentPlaybackContext)&&_.K("web_shorts_prefetch_service_enabled")&&(a.playbackContext={contentPlaybackContext:I.contentPlaybackContext})};
$4.prototype.getRequestConfig=function(a){a=this.JSC$13013_getStoreKey(a);var z;a&&(z={storeStrategy:{storeKey:a}});_.K("reel_watch_sequence_request_log_ticks")&&(z=z||{},z.requestTick="r_wsrs",z.responseTick="r_wsrr",z.processorTick="r_wsrp");return z};var XP=function(){};
_.b(XP,AK);XP.prototype.getApiPaths=function(){return iVG};
XP.prototype.getExtension=function(a){return _.H(a,_.eno)};
XP.prototype.JSC$13006_buildRequest=function(a,z,I){I=I===void 0?{}:I;z.flagAction&&(a.action=z.flagAction);z.flagRequestType&&(a.flagRequestType=z.flagRequestType);z.additionalDetailCheckboxChecked&&(a.additionalDetailCheckboxChecked=z.additionalDetailCheckboxChecked);z.legalCheckboxChecked&&(a.legalCheckboxChecked=z.legalCheckboxChecked);z={};I.flag_issue_type!==void 0&&(z.issue=I.flag_issue_type);I.flag_affiliation!==void 0&&(z.affiliation=I.flag_affiliation);I.flag_full_name&&(z.fullName=I.flag_full_name);
Object.keys(z).length&&(a.legalReportDetails=z);if(I.flag_description||I.text)a.userComments=I.flag_description||I.text;z={};I.minutes!==void 0&&I.seconds!==void 0&&(z.minutes=I.minutes,z.seconds=I.seconds);I.vss_id&&(z.vssId=I.vss_id);Object.keys(z).length&&(a.videoReportDetails=z);z={};I.video_ids&&(z.videoIds=I.video_ids);I.impersonated_channel_url&&(z.impersonatedChannelUrl=I.impersonated_channel_url);Object.keys(z).length&&(a.channelAbuseReportDetails=z)};
_.eH.Object.defineProperties(XP.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var TT=function(){};
_.b(TT,AK);TT.prototype.getApiPaths=function(){return TI1};
TT.prototype.getExtension=function(a){return _.H(a,hew)};
TT.prototype.JSC$13006_buildRequest=function(a,z){z.blockedForKidsContent&&(a.blockedForKidsContent=z.blockedForKidsContent)};var d9=function(){};
_.b(d9,AK);d9.prototype.getApiPaths=function(){return BPX};
d9.prototype.getExtension=function(a){return _.H(a,dti)};
d9.prototype.JSC$13006_buildRequest=function(a,z,I){a.params=z.params;I.impersonated_channel_url&&(a.impersonatedChannelUrl=I.impersonated_channel_url)};var Wz=function(){};
_.b(Wz,AK);Wz.prototype.getApiPaths=function(){return qFE};
Wz.prototype.getExtension=function(a){return _.H(a,_.Vvl)};
Wz.prototype.JSC$13006_buildRequest=function(a,z){z.items&&(a.items=z.items);z.kidGaiaId&&(a.kidGaiaId=z.kidGaiaId)};var oI=function(){};
_.b(oI,AK);oI.prototype.getApiPaths=function(){return $5f};
oI.prototype.getExtension=function(a){return _.H(a,_.LSj)};
oI.prototype.JSC$13006_buildRequest=function(a,z){z.params&&(a.params=z.params);z.targetId&&(a.targetId=z.targetId)};var UZ=function(){};
_.b(UZ,AK);UZ.prototype.getApiPaths=function(){return AMw};
UZ.prototype.getExtension=function(a){return _.H(a,S5G)};
UZ.prototype.JSC$13006_buildRequest=function(a,z){z.externalVideoId&&(a.externalVideoId=z.externalVideoId);z.query&&(a.query=z.query);z.sourceTimelines&&(a.sourceTimelines=z.sourceTimelines)};var DB=function(){};
_.b(DB,AK);DB.prototype.getApiPaths=function(){return spI};
DB.prototype.getExtension=function(a){return _.H(a,_.R5)||void 0};
DB.prototype.JSC$13006_buildRequest=function(a,z){z.token&&(a.continuation=z.token)};
_.tIZ=function(){};
_.b(_.tIZ,AK);_.Z=_.tIZ.prototype;_.Z.getApiPaths=function(){return spI};
_.Z.getExtension=function(a){return _.H(a,_.Fb)||void 0};
_.Z.isNavigationCommand=function(){return!0};
_.Z.JSC$13013_getStoreKey=function(a,z){z=z===void 0?{}:z;if(!z.disableCache&&(a=this.getExtension(a))&&a.query)return z={query:a.query},a.params&&(z.params=a.params),_.k2("search",z)};
_.Z.JSC$13006_buildRequest=function(a,z,I){z.query&&(a.query=z.query);z.params&&(a.params=z.params);if(!_.K("web_forward_suggest_stats_killswitch")){var J=_.H(z,b$w);J&&(a.suggestStats=J)}var r;!_.K("kevlar_searchbox_stats_killswitch")&&((r=I.tempData)==null?0:r.gs_l)&&!_.H(z,b$w)&&(a.webSearchboxStatsUrl="/search?oq="+(I.tempData.oq||"")+"&gs_l="+I.tempData.gs_l);var P;if((P=I.tempData)==null?0:P.entityMid)z=a.suggestionSearchParams||{},z.entityMid=I.tempData.entityMid,a.suggestionSearchParams=z;
if(_.K("enable_desktop_vdcbg_components")||_.K("enable_inline_muted_playback_on_web_search"))I=_.Kt().getFlag(186),a.inlineSettingStatus=I?"INLINE_SETTING_STATUS_DISABLED":"INLINE_SETTING_STATUS_ON"};
_.Z.getRequestConfig=function(a,z){z=z===void 0?{}:z;a=this.JSC$13013_getStoreKey(a,z);var I;a&&(I={storeStrategy:{storeKey:a}});_.K("web_log_search_ticks_ks")||(I=I||{},I.requestTick="sr_s",I.responseTick="sr_r");return I};var RI=function(){};
_.b(RI,AK);RI.prototype.getApiPaths=function(){return wZw};
RI.prototype.getExtension=function(a){return _.H(a,uoe)};
RI.prototype.JSC$13006_buildRequest=function(a,z){z.serializedGetSharingProviderDataParams&&(a.serializedGetSharingProviderDataParams=z.serializedGetSharingProviderDataParams)};var LP=function(){};
_.b(LP,AK);LP.prototype.getApiPaths=function(){return m5i};
LP.prototype.getExtension=function(a){return _.H(a,kof)};
LP.prototype.JSC$13006_buildRequest=function(a,z){z.endpoint&&(a.endpoint=z.endpoint);z.action&&(a.action=z.action)};var lx=function(){};
_.b(lx,AK);lx.prototype.getApiPaths=function(){return VBi};
lx.prototype.getExtension=function(a){return _.H(a,aOj)};
lx.prototype.JSC$13006_buildRequest=function(a,z){a.videoId=z.videoId;z.scheduledRedirectMetadataSourceVideoId&&(a.scheduledRedirectMetadata={sourceVideoId:z.scheduledRedirectMetadataSourceVideoId})};var pP=function(){};
_.b(pP,AK);pP.prototype.getApiPaths=function(){return Hdw};
pP.prototype.getExtension=function(a){return _.H(a,_.eGw)};
pP.prototype.JSC$13006_buildRequest=function(a,z){a.params=z.params;a.correctionText=z.correctionText};var w9=function(){};
_.b(w9,AK);w9.prototype.getApiPaths=function(){return Yb7};
w9.prototype.getExtension=function(a){return _.H(a,_.iRe)};
w9.prototype.JSC$13006_buildRequest=function(a,z){z.params&&(a.params=z.params);a.searchQuery=z.searchQuery;a.languageCode=z.languageCode;a.kind=z.kind;a.name=z.name;a.externalVideoId=z.externalVideoId};var mM=function(){};
_.b(mM,AK);mM.prototype.getApiPaths=function(){return UUJ};
mM.prototype.getExtension=function(a){return _.H(a,B7J)};
mM.prototype.JSC$13006_buildRequest=function(a,z){z.params&&(a.params=z.params)};var yf=function(a){this.JSC$18036_storeWithEntities=a};
_.b(yf,AK);yf.prototype.getApiPaths=function(){return gIG};
yf.prototype.getExtension=function(a){return _.H(a,O_f)||_.H(a,Atv)};
yf.prototype.JSC$13006_buildRequest=function(a,z,I){I.client_data&&(a.clientData=I.client_data);if(z.commerceActionConfig){var J=z.commerceActionConfig;z=J.actionId;J=J.commerceActionParams;z&&(a.actionId=z);J&&(a.commerceActionParams=J)}else{var r=z.actionId,P=z.commerceActionParams;I=z.entityKeys;r&&(a.actionId=r);P&&(a.commerceActionParams=P);var N;z=(J=this.JSC$18036_storeWithEntities)==null?void 0:(N=J.getState())==null?void 0:N.entities;if(I&&z){J=[];N=_.C(I);for(I=N.next();!I.done;I=N.next())if(r=
I.value,I=_.ZY(r).entityType,r=_.Bd(z,I,r))P={},J.push((P[I]=r,P));a.entityMutationPayloads=J}}};
yf.prototype.getRequestConfig=function(a){var z,I=(z=_.H(a,O_f))==null?void 0:z.requestSequenceType;if(I&&a.clickTrackingParams&&I!=="REQUEST_SEQUENCE_TYPE_UNKNOWN")return{sequenceStrategy:{sequenceKey:a.clickTrackingParams,sequenceType:I}}};
yf[zp]=[r0];var k4=function(){};
_.b(k4,AK);k4.prototype.getApiPaths=function(){return DUo};
k4.prototype.getExtension=function(a){return _.H(a,_.dTw)};
k4.prototype.JSC$13006_buildRequest=function(a,z){z.feedbackData&&(a.feedbackData=z.feedbackData);z.params&&(a.itemParams=z.params)};
_.eH.Object.defineProperties(k4.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var Mt=function(){};
_.b(Mt,AK);Mt.prototype.getApiPaths=function(){return R6w};
Mt.prototype.getExtension=function(a){return _.H(a,WJX)};
Mt.prototype.JSC$13006_buildRequest=function(a,z,I){I.payments_payload&&(a.paymentsPayload=I.payments_payload);I.offer_params&&(a.offerParams=I.offer_params);z.transactionParams&&(a.transactionParams=z.transactionParams)};var cz=function(){};
_.b(cz,AK);cz.prototype.getApiPaths=function(){return LbO};
cz.prototype.getExtension=function(a){return _.H(a,_.ouG)};
cz.prototype.JSC$13006_buildRequest=function(a,z,I){I=I===void 0?{}:I;z.buybucketParams&&(a.buybucketData={params:z.buybucketParams},z.stickerParams?a.buybucketData.stickerParams=z.stickerParams:(I.rich_chat_message?a.buybucketData.richChatMessage=I.rich_chat_message:I.chat_message_text&&(a.buybucketData.chatMessageText=I.chat_message_text),I.purchase_price_micros&&(a.buybucketData.purchasePriceMicros=I.purchase_price_micros.toString())));z.donationAmountMicros&&(a.tipAmountMicros=z.donationAmountMicros,
z.tipParams&&(a.tipParams=z.tipParams));z.offerParams&&(a.offerParams=z.offerParams);z.productData&&(a.productData=z.productData);z.transactionParams&&(a.transactionParams=z.transactionParams)};var Y4=function(){};
_.b(Y4,AK);Y4.prototype.getApiPaths=function(){return lwe};
Y4.prototype.getExtension=function(a){return _.H(a,RRf)};
Y4.prototype.JSC$13006_buildRequest=function(a,z){z.updateFopParams&&(a.updateFopParams=z.updateFopParams)};var qt=function(){};
_.b(qt,AK);qt.prototype.getApiPaths=function(){return psf};
qt.prototype.getExtension=function(a){return _.H(a,_.er)};
qt.prototype.JSC$13006_buildRequest=function(a,z){z.couponCode&&(a.couponCode=z.couponCode);z.params&&(a.itemParams=z.params)};var e9=function(){};
_.b(e9,AK);e9.prototype.getApiPaths=function(){return wso};
e9.prototype.getExtension=function(a){return _.H(a,_.fsO)};
e9.prototype.JSC$13006_buildRequest=function(a,z,I){I=I===void 0?{}:I;z.params&&(a.params=z.params);I.ctk&&(a.clientToken=I.ctk)};var ag=function(a){this.JSC$18071_storeWithEntities=a};
_.b(ag,AK);ag.prototype.getApiPaths=function(){return mUO};
ag.prototype.getExtension=function(a){return _.H(a,_.cU)};
ag.prototype.JSC$13006_buildRequest=function(a,z,I){I.purchase_price_micros&&(a.productData={pdgData:{purchasePriceMicros:I.purchase_price_micros.toString()}},I.rich_chat_message&&(a.productData.pdgData.richChatMessage=I.rich_chat_message),I.currency_code&&(a.productData.pdgData.currencyCode=I.currency_code));z.transactionParams&&(a.transactionParams=z.transactionParams);z.clientLocationContext&&(a.clientLocationContext=z.clientLocationContext);I.payments_payload&&(a.paymentsPayload=I.payments_payload);
I.funds_guarantee_callback_client_data&&(a.fundsGuaranteeCallbackClientData=I.funds_guarantee_callback_client_data);var J,r;I=(J=this.JSC$18071_storeWithEntities)==null?void 0:(r=J.getState())==null?void 0:r.entities;if(z.entityKeys&&I){J=[];z=_.C(z.entityKeys);for(r=z.next();!r.done;r=z.next()){var P=r.value;r=_.ZY(P).entityType;if(P=_.Bd(I,r,P)){var N={};J.push((N[r]=P,N))}}a.entityMutationPayloads=J}};
ag[zp]=[r0];var jO=function(){};
_.b(jO,AK);jO.prototype.getApiPaths=function(){return yMX};
jO.prototype.getExtension=function(a){return _.H(a,UTO)};
jO.prototype.JSC$13006_buildRequest=function(a,z,I){I=I===void 0?{}:I;I.backend_analytics&&(a.serializedBackendAnalyticsEvent=I.backend_analytics);z.offerParams&&(a.offerParams=z.offerParams)};var zk=function(){};
_.b(zk,AK);zk.prototype.getApiPaths=function(){return psf};
zk.prototype.getExtension=function(a){return _.H(a,SQI)};
zk.prototype.JSC$13006_buildRequest=function(a,z){z.params&&(a.itemParams=z.params)};var Ig=function(){};
_.b(Ig,AK);Ig.prototype.getApiPaths=function(){return k4G};
Ig.prototype.getExtension=function(a){return _.H(a,_.H_I)};
Ig.prototype.JSC$13006_buildRequest=function(a,z,I){I.resume_time_ms&&(a.resumeTimeMs=I.resume_time_ms);z.pauseParams&&(a.pauseParams=z.pauseParams)};var Js=function(){};
_.b(Js,AK);Js.prototype.getApiPaths=function(){return Mzo};
Js.prototype.getExtension=function(a){return _.H(a,_.DTG)};
Js.prototype.JSC$13006_buildRequest=function(a,z,I){I=I===void 0?{}:I;I.c&&(a.redeemCode=I.c);I.rd&&(a.riskData=I.rd);I.ctk&&(a.clientToken=I.ctk)};var rH=function(){};
_.b(rH,AK);rH.prototype.getApiPaths=function(){return cMj};
rH.prototype.getExtension=function(a){return _.H(a,_.b_w)};
rH.prototype.JSC$13006_buildRequest=function(a,z){z.resumeParams&&(a.resumeParams=z.resumeParams)};var PO=function(a,z){this.clientName=a;this.defaultExpirationDelayMs=z};
PO.prototype.put=function(a,z){var I=this,J;return _.t(function(r){J=Object.assign({},z.data);J.key=a;J.clientName=I.clientName;J.expireTimestampMs===void 0&&(J.expireTimestampMs=(Math.round((0,_.jp)())+I.defaultExpirationDelayMs).toString());return r.return(I.putInternal(a,J))})};
PO[zp]=[dm,fi0];var u1E=function(){PO.apply(this,arguments);this.JSC$18101_responseStore=new Map};
_.b(u1E,PO);_.Z=u1E.prototype;_.Z.get=function(a){var z=this;return _.t(function(I){return I.return(nd(z,a))})};
_.Z.putInternal=function(a,z){var I=this,J,r,P;return _.t(function(N){J=I.defaultExpirationDelayMs;z.expireTimestampMs&&(J=Number(z.expireTimestampMs)-Math.round((0,_.jp)()),r=_.Ib("mweb_override_response_store_expiration_ms"),r>0&&r<J&&(J=r));P=setTimeout(function(){I.remove(a)},J);
I.JSC$18101_responseStore.set(a,{entryData:z,timer:P});_.nu(N)})};
_.Z.remove=function(a){var z=this;return _.t(function(I){EGZ(z,a);_.nu(I)})};
_.Z.removeAll=function(){var a=this;return _.t(function(z){a.JSC$18101_responseStore.forEach(function(I){clearTimeout(I.timer)});
a.JSC$18101_responseStore.clear();_.nu(z)})};
_.Z.has=function(a){return!!this.JSC$18101_responseStore.get(a)};
_.Z.getKeys=function(){return this.JSC$18101_responseStore.keys()};
var nd=function(a,z){if(a=a.JSC$18101_responseStore.get(z))return new _.s3(a.entryData)},EGZ=function(a,z){var I=a.JSC$18101_responseStore.get(z);
I&&(clearTimeout(I.timer),a.JSC$18101_responseStore.delete(z))};var aKM;var IK7=function(a,z,I){PO.call(this,a,z);this.token=I};
_.b(IK7,PO);_.Z=IK7.prototype;_.Z.get=function(a){var z=this,I,J;return _.t(function(r){return r.nextAddress==1?r.yield(zBG(z.token),2):r.nextAddress!=3?(I=r.yieldResult,r.yield(I.get("ResponseStore",[a,z.clientName]),3)):(J=r.yieldResult)?r.return(new _.s3(J)):r.return(void 0)})};
_.Z.putInternal=function(a,z){var I=this,J;return _.t(function(r){if(r.nextAddress==1)return r.yield(zBG(I.token),2);J=r.yieldResult;return r.yield(J.put("ResponseStore",z),0)})};
_.Z.remove=function(a){var z=this,I;return _.t(function(J){if(J.nextAddress==1)return J.yield(zBG(z.token),2);I=J.yieldResult;return J.return(I.delete("ResponseStore",[a,z.clientName]))})};
_.Z.removeAll=function(){var a=this,z;return _.t(function(I){if(I.nextAddress==1)return I.yield(zBG(a.token),2);z=I.yieldResult;return I.yield(sGo(z,IDBKeyRange.only(a.clientName)),0)})};
_.Z.has=function(){throw Error("Xi");};_.Zp=new _.I4("PERSISTENT_STORE_PROMISE_ACCESSOR_TOKEN");var BfZ=function(a){var z;this.stateTagsData=(z=a.responseContext)==null?void 0:z.stateTags},gGE=function(a){var z;
return((z=a.stateTagsData)==null?void 0:z.stateTagsModified)||[]};var Oli;Oli=function(a){this.JSC$18114_responseStore=a};
_.lg=function(a,z,I){if(!_.K("state_tags_killswitch")){var J=new BfZ(z);if(gGE(J).length>0){var r=a.JSC$18114_responseStore.getKeys();r=_.C(r);for(var P=r.next();!P.done;P=r.next()){P=P.value;var N=nd(a.JSC$18114_responseStore,P);if(N){var u=_.Iv(N);a:{var E=void 0;N=gGE(J);u=((E=(new BfZ(u)).stateTagsData)==null?void 0:E.relevantStateTags)||[];E=_.C(u);for(u=E.next();!u.done;u=E.next())if(u=u.value,u.stateTag!=null&&N.includes(u.stateTag)&&u.onStateTagModified==="STATE_TAG_CACHE_INSTRUCTION_EVICT_RESPONSE"){N=
!0;break a}N=!1}N&&EGZ(a.JSC$18114_responseStore,P)}}}}var O;J=(O=z.responseContext)==null?void 0:O.maxAgeSeconds;I&&J&&Number(J)>0&&(z=Nh(z,J),a.JSC$18114_responseStore.put(I,new _.s3(z)))};
Oli.prototype.handleResponse=function(a,z){if(!z)throw Error("Yi");var I,J;z=(I=z.config)==null?void 0:(J=I.storeStrategy)==null?void 0:J.storeKey;_.lg(this,a,z)};
Oli[zp]=[_.AM];_.CBd=new _.I4("STORE_RESPONSE_PROCESSOR_TOKEN");var fjM=function(a){this.JSC$18117_responseStore=a};
fjM.prototype.handleResponse=function(a,z){if(z.input.match(_.ex(tzl))){var I;if(a==null?0:(I=a.entries)==null?0:I.length)for(a=_.C(a.entries),z=a.next();!z.done;z=a.next()){I=z.value.command;var J=void 0;z=(J=_.H(I,_.hv))==null?void 0:J.unserializedPrefetchData;if(!I||!z)break;J=(new vz).JSC$13013_getStoreKey(I);var r=_.H(z,VG1),P=void 0,N=void 0,u=void 0,E=_.Ib("web_shorts_prefetch_service_ttl_seconds")>0?_.Ib("web_shorts_prefetch_service_ttl_seconds"):Number((u=(P=r)==null?void 0:(N=P.responseContext)==
null?void 0:N.maxAgeSeconds)!=null?u:3600);J&&E>0&&(r=Nh(r,E),this.JSC$18117_responseStore.put(J,new _.s3(r)));I=(new Hw).JSC$13013_getStoreKey(I);z=_.H(z,NB1);P=r=J=void 0;N=_.Ib("web_shorts_prefetch_service_ttl_seconds")>0?_.Ib("web_shorts_prefetch_service_ttl_seconds"):Number((P=(J=z)==null?void 0:(r=J.responseContext)==null?void 0:r.maxAgeSeconds)!=null?P:3600);I&&N>0&&(z=Nh(z,N),this.JSC$18117_responseStore.put(I,new _.s3(z)))}}};
fjM[zp]=[_.AM];var AoZ=function(a){this.innertubeTransportService=a};
AoZ.prototype.submitForm=function(a,z,I,J,r){var P=this,N,u,E;return _.t(function(O){N={submitId:a,formData:z,submitBehavior:I,params:J};u=_.ex(bdi);E=_.pJ(P.innertubeTransportService,N,u,r);return O.return(E)})};
AoZ[zp]=[_.dY];var Cj=function(){this.scheduler=_.ig()},sw0;
Cj.prototype.pause=function(){throw Error("Zi");};
Cj.prototype.resume=function(){throw Error("Zi");};
Cj.prototype.queue=function(a){var z=this,I=_.kq(),J=_.b9(this.scheduler,function(){try{var r;if(_.Og.instance)var P=_.Og.instance;else{var N=new _.Fn("Error: Unexpected uninitialized CommandHandler.");_.Gx(N);P=void 0}(r=P)==null||r.resolveCommand(a.command);I.resolve()}catch(u){I.reject(u)}});
I.promise.thenCatch(function(r){r instanceof _.Lc&&z.scheduler.cancelJob(J)});
return I.promise};
Cj.prototype.queueAll=function(a){var z=new Map;a=_.C(a);for(var I=a.next();!I.done;I=a.next())I=I.value,z.set(I.id,this.queue(I));return z};var KX4=function(a,z){var I=this;this.taskModel=a;this.onTaskCancelledCallback=z;this.resolver=_.kq();a=a.proto.prefetchConfig;if(!a)throw Error("$i");if(!a.prefetchAction)throw Error("aj");this.prefetchConfig=this.taskModel.proto.prefetchConfig;this.cancellablePromise=this.resolver.promise.thenCatch(function(J){J instanceof _.Lc&&(nGz(I,I.taskModel.cancelOn.screenExit?"CANCELLATION_REASON_PAGE_NAVIGATION":"CANCELLATION_REASON_UNKNOWN"),I.onTaskCancelledCallback(I.taskModel.id,I.jobId),I.tick("pcc"));
throw J;});
this.timerName=this.taskModel.id;_.$A(this.prefetchConfig.prefetchAction,void 0,this.timerName,this.prefetchConfig.prefetchAction)};
KX4.prototype.getPriority=function(){switch(this.prefetchConfig.priority){case "PREFETCH_PRIORITY_HIGH":return 3;case "PREFETCH_PRIORITY_MEDIUM":return 2;case "PREFETCH_PRIORITY_LOW":return 1;default:return 0}};
var nGz=function(a,z){_.Gb({prefetchInfo:{cancellationReason:z}},a.timerName)};
KX4.prototype.tick=function(a){_.Xz(a,void 0,this.timerName)};var ts=function(){var a=this;this.scheduler=_.ig();this.maxInflightTasks=_.Ib("prefetch_coordinator_max_inflight_requests");this.coordinatorTimeoutMs=_.Ib("prefetch_coordinator_command_timeout_ms");this.prefetchCoordinatorState=0;this.allPrefetchTasks=new Map;this.inflightPrefetchTasks=new Map;this.drainingHeap=new RLl;this.onTaskCancelled=function(z,I){I&&a.scheduler.cancelJob(I);FXZ(a,z);N7(a,3)}},HlZ=function(){ts.instance||(ts.instance=new ts);
return ts.instance};
ts.prototype.pause=function(){this.prefetchCoordinatorState=0};
ts.prototype.resume=function(){N7(this,0)};
ts.prototype.queue=function(a){a=bl4(this,a);N7(this,1);return a};
ts.prototype.queueAll=function(a){var z=new Map;a=_.C(a);for(var I=a.next();!I.done;I=a.next())I=I.value,z.set(I.id,bl4(this,I));N7(this,1);return z};
var bl4=function(a,z){var I=a.allPrefetchTasks.get(z.id);if(I)return I.cancellablePromise;try{var J=new KX4(z,a.onTaskCancelled)}catch(P){return _.xN(P)}I=J;I.tick("pcq");var r={prefetchInfo:{taskId:I.taskModel.id,isPrefetch:!0,fetchAction:I.prefetchConfig.fetchAction},actionVisualElement:{trackingParams:I.taskModel.command.clickTrackingParams}};I.taskModel.csn&&(r.clientScreenNonce=I.taskModel.csn);_.Gb(r,I.timerName);a.allPrefetchTasks.set(z.id,J);a.drainingHeap.insert(-J.getPriority(),J);return J.cancellablePromise},
N7=function(a,z){a.prefetchCoordinatorState===z&&(a.prefetchCoordinatorState=2,hvE(a))},hvE=function(a){for(var z={};a.prefetchCoordinatorState!==0;z={taskId$jscomp$3:void 0,
prefetchTask$jscomp$1:void 0}){if(a.inflightPrefetchTasks.size>=a.maxInflightTasks){a.prefetchCoordinatorState=3;break}z.prefetchTask$jscomp$1=a.drainingHeap.remove();if(!z.prefetchTask$jscomp$1){a.prefetchCoordinatorState=1;break}z.taskId$jscomp$3=z.prefetchTask$jscomp$1.taskModel.id;if(a.allPrefetchTasks.has(z.taskId$jscomp$3)){var I=-1;a.coordinatorTimeoutMs>0&&(I=_.b9(a.scheduler,function(J){return function(){us(a,J.taskId$jscomp$3,Error("bj"))}}(z),a.coordinatorTimeoutMs));
a.inflightPrefetchTasks.set(z.taskId$jscomp$3,I);if(!a.JSC$18137_commandHandler){if(!_.Og.instance){us(a,z.taskId$jscomp$3,Error("cj"));continue}a.JSC$18137_commandHandler=_.Og.instance}a:switch(z.prefetchTask$jscomp$1.prefetchConfig.priority){case "PREFETCH_PRIORITY_HIGH":case "PREFETCH_PRIORITY_MEDIUM":I=1;break a;default:I=0}z.prefetchTask$jscomp$1.jobId=a.scheduler.addJob(function(J){return function(){J.prefetchTask$jscomp$1.tick("pcr");try{a.JSC$18137_commandHandler.resolveCommand(J.prefetchTask$jscomp$1.taskModel.command)||
us(a,J.taskId$jscomp$3,Error("dj"))}catch(r){us(a,J.taskId$jscomp$3,r)}}}(z),I,0)}}},VIV=function(a,z){(z=FXZ(a,z))!=null&&(z.resolver.resolve(),z.tick("pce"));
N7(a,3)},us=function(a,z,I){(z=FXZ(a,z,I))!=null&&(z.resolver.reject(I),z.tick("pcc"),nGz(z,"CANCELLATION_REASON_ERROR"),Math.random()<=_.Ib("prefetch_coordinator_error_logging_sampling_rate")&&(I=new _.Fn("Prefetch Command failed.",z.taskModel.id,I.message),_.Gx(I)));
N7(a,3)},FXZ=function(a,z,I){var J=a.allPrefetchTasks.get(z);
J?((I=a.inflightPrefetchTasks.get(z))&&I!==-1&&a.scheduler.cancelJob(I),a.inflightPrefetchTasks.delete(z),a.allPrefetchTasks.delete(z)):_.Xd(new _.Fn("Unexpected missing prefetch task when deleting task.",z,I==null?void 0:I.message));return J};var Qw0=function(a,z,I,J,r){this.id=a;this.triggerOn=z;this.cancelOn=I;this.command=J;this.proto=r};
_.eH.Object.defineProperties(Qw0.prototype,{taskType:{configurable:!0,enumerable:!0,get:function(){return this.proto.prefetchConfig?0:1}}});var SOZ=function(){this.JSC$18142_prefetchCoordinator=HlZ();sw0||(sw0=new Cj);this.defaultCoordinator=sw0},ile;
SOZ.getInstance=function(){ile||(ile=new SOZ);return ile};
SOZ.prototype.get=function(a){switch(a){case 0:return this.JSC$18142_prefetchCoordinator;default:return this.defaultCoordinator}};var EU=function(){this.coordinatorSupplier=SOZ.getInstance();this.tasks=new Map;this.taskIdByTriggerId=new Map;this.taskIdByCancelId=new Map;this.queuedPromisesByTask=new Map},GJ0=function(a){var z=_.TX()||void 0,I=Object.keys(xEG)[0];
if(I){var J=a.taskIdByTriggerId.get(I);if(J!=null){a.taskIdByTriggerId.delete(I);I=[];J=_.C(J);for(var r=J.next();!r.done;r=J.next())if(r=a.tasks.get(r.value))z!=="UNDEFINED_CSN"&&(r.csn=z),I.push(r);I=Po0(I);z=[];I=_.C(I);for(J=I.next();!J.done;J=I.next()){r=_.C(J.value);J=r.next().value;r=r.next().value;J=a.coordinatorSupplier.get(J).queueAll(r);J=_.C(J);var P=J.next();for(r={};!P.done;r={taskId$jscomp$9:void 0},P=J.next()){var N=_.C(P.value);P=N.next().value;N=N.next().value;r.taskId$jscomp$9=
P;P=N;z.push(r.taskId$jscomp$9);a.queuedPromisesByTask.set(r.taskId$jscomp$9,_.QD(P,function(u){return function(){vGf(a,u.taskId$jscomp$9)}}(r)))}}}}else _.Xd(new _.Fn("Unexpected malformed TriggerEvent."))};
EU.prototype.trigger=function(a,z){var I=this,J=this.tasks.get(a);if(!J||this.queuedPromisesByTask.has(a))return!1;$EZ(this,a,J.triggerOn);z!=="UNDEFINED_CSN"&&(J.csn=z);z=this.coordinatorSupplier.get(J.taskType).queue(J);this.queuedPromisesByTask.set(a,_.QD(z,function(){vGf(I,a)}));
return!0};
EU.prototype.cancel=function(a){var z=this.queuedPromisesByTask.get(a);if(z)z.cancel();else return vGf(this,a)};
var vGf=function(a,z){a.queuedPromisesByTask.delete(z);var I=a.tasks.get(z);if(!I)return!1;a.tasks.delete(z);$EZ(a,z,I.triggerOn);(I=rpG(I.cancelOn))&&(a=a.taskIdByCancelId.get(I))&&a.delete(z);return!0},$EZ=function(a,z,I){(I=Object.keys(I)[0])&&(a=a.taskIdByTriggerId.get(I))&&a.delete(z)};var xEG={taskRegistered:{}},BO=function(){EU.instance||(EU.instance=new EU);this.JSC$18151_taskManager=EU.instance};
_.b(BO,wW);
BO.prototype.resolveCommand=function(a){var z=this,I,J;return _.t(function(r){I=_.H(a,HJe);if((J=I)==null||!J.tasks){var P=new _.Fn("RegisterTasksCommand is missing tasks.");_.Gx(P);return r.return()}P=z.JSC$18151_taskManager;for(var N=_.C(I.tasks),u=N.next();!u.done;u=N.next())if(u=u.value,u=u.id&&u.triggerOn&&u.cancelOn&&u.command?new Qw0(u.id,u.triggerOn,u.cancelOn,u.command,u):void 0,u){var E=Object.keys(u.triggerOn)[0];if(E){var O=rpG(u.cancelOn);O?(P.tasks.set(u.id,u),P.taskIdByTriggerId.has(E)||P.taskIdByTriggerId.set(E,
new Set),P.taskIdByTriggerId.get(E).add(u.id),P.taskIdByCancelId.has(O)||P.taskIdByCancelId.set(O,new Set),P.taskIdByCancelId.get(O).add(u.id)):_.Xd(new _.Fn("Unexpected malformed cancelOn field."))}else _.Xd(new _.Fn("Unexpected malformed triggerOn field."))}else _.Xd(new _.Fn("Unexpected malformed Task proto."));GJ0(z.JSC$18151_taskManager);_.nu(r)})};var XeV={},TfZ=(XeV.rendered={priority:_.K("web_adaptive_early_init")?8:0,callback:function(){var a={};a.numCpu=navigator.hardwareConcurrency;var z={};z.ramGb=_.IE.navigator.deviceMemory;var I={staticContext:{}};z.ramGb&&ZTM(z.ramGb)&&(I.staticContext.memoryTotalKbytes=(z.ramGb*1048576).toString());a.numCpu&&ZTM(a.numCpu)&&(I.staticContext.cpuCores=a.numCpu);if(_.K("web_enable_adaptive_appl_signal")){a={};z=_.WA("rses_dpj");var J=_.WA("rsef_dpj");z&&z>0&&J&&J>0&&(z=Math.ceil(J-z),z>0&&(a.loadLatency=
z));a.loadLatency&&ZTM(a.loadLatency)&&(I.appL=a.loadLatency.toString())}_.x0("applicationStarted",I)}},XeV);var dEZ=new _.I4("WINDOW_ON_ERROR"),WXM=new _.I4("ERROR_WEIGHT_MAPS"),oGG=new _.I4("INIT_ERROR");var UEG={},DE0=(UEG.initialized={priority:10,callback:function(a){a.injector.resolve(oGG)()}},UEG);var Rv4=function(){},LXE=function(){var a=_.DH("meta_logger_impl");
a||(a=new Rv4,_.qe("meta_logger_impl",a));return a},ljM=function(){LXE().csiSubscriptionKey=giG("meta_logging_csi_event",function(a){var z=a.timerName;
if(a=a.timelineData){_.$A(z,{startTime:a.startTime},z);a.infos&&_.Gb(a.infos,z);for(var I=_.C(Object.keys(a.ticks)),J=I.next();!J.done;J=I.next())J=J.value,_.Xz(J,a.ticks[J],z)}})};
Rv4.prototype.unlisten=function(){this.csiSubscriptionKey!==void 0&&A3x(this.csiSubscriptionKey)};var pef={},wef=(pef.initialized={priority:10,callback:function(){ljM()}},pef);var mEG=function(a,z){this.innertubeClientName=a;this.JSC$18167_prefCookie=z};
mEG.prototype.record=function(){if(_.K("web_li_record_binary_eval_tick")){var a=_.WA("rsef_dpj");var z=_.WA("rses_dpj");a=a!==void 0&&z!==void 0?Math.round(a-z):void 0;if(a!==void 0&&a>0){z=_.nN(this.storagePrefix+"-"+this.innertubeClientName)||{valuesSample:[],valuesSeen:0};var I=this.poolSize;if(!(z.valuesSeen>=1E9)){if(z.valuesSample.length<I)z.valuesSample.push(a);else{var J=Math.floor(Math.random()*(z.valuesSeen+1));J<I&&(z.valuesSample[J]=a)}z.valuesSeen+=1}_.s4(this.storagePrefix+"-"+this.innertubeClientName,
z,2592E3);a=z.valuesSample;z=Co1(a);a=a.length<this.poolSize?void 0:z<400?1:z<1700?2:3;a!==void 0&&(this.JSC$18167_prefCookie.set(this.cookiePrefix+this.innertubeClientName,a),this.JSC$18167_prefCookie.save())}}else _.KN(this.storagePrefix+"-"+this.innertubeClientName),this.JSC$18167_prefCookie.remove(this.cookiePrefix+this.innertubeClientName),this.JSC$18167_prefCookie.save()};
mEG[zp]=[dm,gA];var yoZ=function(){mEG.apply(this,arguments);this.storagePrefix="yt-signal-be";this.cookiePrefix="lsbe";this.poolSize=5};
_.b(yoZ,mEG);var kJ0=new _.I4("PAGE_LOAD_TIME_TOKEN");var MI0=function(a){this.signal=a;this.disableLoggingAndSendPayload=this.disableLoggingAndSendPayloadUnbound.bind(this);this.loggingEnabled=!0;this.ids=new Set;a.addEventListener("abort",this.disableLoggingAndSendPayload);this.jobId=_.b9(_.GW,this.disableLoggingAndSendPayload,1E4)};
MI0.prototype.disableLoggingAndSendPayloadUnbound=function(){this.loggingEnabled&&(this.loggingEnabled=!1,_.GW.cancelJob(this.jobId),this.signal.removeEventListener("abort",this.disableLoggingAndSendPayload),co4(this))};
var co4=function(a){var z=_.XZ();if(z){var I={webClientComponentsData:{components:Array.from(a.ids,function(J){return{id:J}})}};
a.ids.clear();_.Kw().visualElementStateChanged(z,I)}};var YO0=new _.I4("DOWNLOAD_ELIGIBILITY_PROMISE_TOKEN");var gH=function(a,z){this.JSC$18196_storeWithEntities=a;this.JSC$18196_commandHandler=z;this.downloadingToastInitialized=!1;this.downloadingEntities=[]};
gH.prototype.start=function(){this.JSC$18196_storeWithEntities.subscribe(this.observeDownloadingEntities.bind(this))};
gH.prototype.observeDownloadingEntities=function(){var a=_.k7$(this.JSC$18196_storeWithEntities.getState().entities).map(function(J){return MGd(J)});
if(a.length>0){if(!this.downloadingToastInitialized){this.downloadingToastInitialized=!0;var z={openPopupAction:{popup:{videoDownloadToastRenderer:{actionButton:{buttonRenderer:a_x()},loggingDirectives:{clientVeSpec:{uiType:98969}},responseText:_.zg(_.AR("DOWNLOADING",void 0,"Downloading"))}},popupType:"TOAST",durationHintMs:0}};this.JSC$18196_commandHandler.resolveCommand(z)}this.downloadingEntities=a}else if(this.downloadingEntities.length){var I=yVG(this.JSC$18196_storeWithEntities.getState().entities).map(function(J){return MGd(J)});
this.downloadingEntities.filter(function(J){return I.includes(J)}).length&&(a={openPopupAction:wo$()},this.JSC$18196_commandHandler.resolveCommand(a));
this.downloadingEntities=[]}};
gH[zp]=[r0,_.j6];var qO0;_.OU=function(a,z,I,J,r,P,N,u){this.JSC$18199_playerApiPromise=a;this.JSC$18199_commandHandler=z;this.JSC$18199_screenManager=I;this.offlineWebClientEligibility=J;this.JSC$18199_prefStorage=r;this.JSC$18199_actionRouter=P;this.entityTypeMap=N;this.JSC$18199_persistentStorePromiseAccessor=u;this.downloadFailureListenerBound=!1;this.previousDownloadStateForVideo={}};
qO0=function(){var a=_.ab().resolve(_.OU),z;_.t(function(I){if(I.nextAddress==1)return a.downloadFailureListenerBound?I.return():I.yield(a.JSC$18199_playerApiPromise,2);z=I.yieldResult;z.addEventListener("onOfflineOperationFailure",function(J){if(J.failureReason&&J.entityKey&&J.failureReason!=="OFFLINE_OPERATION_FAILURE_REASON_UNKNOWN")if(J.failureReason==="OFFLINE_OPERATION_FAILURE_REASON_VIDEO_DELETED"){var r=_.ZY(J.entityKey).entityId;r&&a.JSC$18199_actionRouter.triggerOptionalAction("yt-downloaded-video-deleted",
r)}else if(_.K("kevlar_woffle")){r=a.JSC$18199_commandHandler;var P=r.resolveCommand;J=J.failureReason;var N=_.AR("TRANSFER_FAILED",void 0,"Download failed");J==="OFFLINE_OPERATION_FAILURE_REASON_DATABASE_REQUEST_FAILED"&&(N=_.AR("STORAGE_FULL",void 0,"Storage full"));P.call(r,{openPopupAction:{popup:{notificationActionRenderer:{responseText:_.zg(N),loggingDirectives:{clientVeSpec:{uiType:134511}}}},popupType:"TOAST"}})}});
a.downloadFailureListenerBound=!0;_.nu(I)})};
_.OU.prototype.deleteVideo=function(a,z){var I=this,J,r,P;return _.t(function(N){if(N.nextAddress==1)return N.yield(I.JSC$18199_playerApiPromise,2);J=N.yieldResult;P={offlineLoggingData:{offlineDeleteReason:(r=z)!=null?r:"OFFLINE_DELETE_REASON_USER_INITIATED"}};return N.yield(J.queueOfflineAction(a,I.entityTypeMap.singleEntityType,"OFFLINE_ORCHESTRATION_ACTION_TYPE_DELETE",P),0)})};
_.OU.prototype.pauseVideoDownload=function(a){var z=this,I;return _.t(function(J){if(J.nextAddress==1)return J.yield(z.JSC$18199_playerApiPromise,2);I=J.yieldResult;I.pauseVideoDownload(a);_.nu(J)})};
_.OU.prototype.resumeVideoDownload=function(a){var z=this,I;return _.t(function(J){if(J.nextAddress==1)return J.yield(z.JSC$18199_playerApiPromise,2);I=J.yieldResult;return J.yield(I.resumeVideoDownload(a),0)})};
_.OU[zp]=[_.Zc,_.j6,_.d7,YO0,sV,rR,ePE,FS];var evZ=new _.I4("DOWNLOAD_STATE_STORE_TOKEN");var aEG=function(a,z){this.JSC$18219_persistentStorePromiseAccessor=a;this.store=z;this.upliftCompletionResolver=new _.EM},IEi=function(){var a=_.ab().resolve(jZV),z;
_.t(function(I){switch(I.nextAddress){case 1:if(a.upliftImplPromise)return I.return(a.upliftImplPromise);_.BP(I,2);a.upliftImplPromise=ziZ(a);return I.yield(a.upliftImplPromise,4);case 4:a.upliftCompletionResolver.resolve();_.p1(I,3);break;case 2:throw z=_.sk(I),a.upliftCompletionResolver.reject(z),z;case 3:return I.return(a.upliftImplPromise)}})},ziZ=function(a){var z,I,J;
return _.t(function(r){switch(r.nextAddress){case 1:return _.TZ("LOGGED_IN")?r.yield(a.JSC$18219_persistentStorePromiseAccessor(),2):r.return();case 2:z=r.yieldResult;if(!z)return _.Xz("vdeur"),r.return();_.Xz("vdeus");_.BP(r,3);return r.yield(JeE(z),5);case 5:I=r.yieldResult;a.store.dispatch($yd(I));z.observe(function(P){XUd(a.store,P)});
_.p1(r,4);break;case 3:throw J=_.sk(r),_.Xz("vdeur"),J;case 4:_.Xz("vdeuc"),_.nu(r)}})},JeE=function(a){var z;
return _.t(function(I){if(I.nextAddress==1)return I.yield(OT3(a),2);z=I.yieldResult;return I.return(z.reduce(function(J,r){if(!r.data||!r.key||!r.entityType)return J;J[r.entityType]||(J[r.entityType]={});J[r.entityType][r.key]=r.data;return J},{}))})};
aEG[zp]=[FS,_.mP];var jZV;jZV=new _.I4("DOWNLOAD_UPLIFT_SERVICE_TOKEN");_.fj=new _.I4("DOWNLOAD_UPLIFT_COMPLETION_PROMISE_TOKEN");var As=function(a,z){this.JSC$18222_persistentStorePromiseAccessor=a;this.transportService=z};
As.prototype.refresh=function(){var a=this,z,I,J,r;return _.t(function(P){if(P.nextAddress==1)return _.TZ("LOGGED_IN")?P.yield(a.JSC$18222_persistentStorePromiseAccessor(),2):P.return();if(P.nextAddress!=3)return(z=P.yieldResult)?P.yield(Yix(z),3):P.return();if((I=P.yieldResult)&&!(Number(I.data.refreshTimestampMs||0)<(0,_.jp)()))return P.return();J={browseId:"SPaccount_downloads"};r=_.ex(c0);_.pJ(a.transportService,J,r).then(function(N){var u;if(z&&(N==null?void 0:(u=N.responseContext)==null?void 0:
u.maxAgeSeconds)!==0){var E;u=(N==null?void 0:(E=N.responseContext)==null?void 0:E.maxAgeSeconds)||604800;E=String(Math.floor((0,_.jp)())+u*1E3);z.put("service:downloads_settings:fallback",new _.s3({innertubeResponse:N,refreshTimestampMs:E}))}});
_.nu(P)})};
As[zp]=[_.Zp,_.dY];var sU=function(a,z){this.JSC$18226_playerPromise=a;this.store=z;this.started=!1};
sU.prototype.start=function(){var a=this,z;return _.t(function(I){if(I.nextAddress==1)return a.started?I.return():I.yield(a.JSC$18226_playerPromise,2);z=I.yieldResult;z.addEventListener("onOrchestrationBecameLeader",a.updateIsLeader.bind(a,!0));z.addEventListener("onOrchestrationLostLeader",a.updateIsLeader.bind(a,!1));if(z.isOrchestrationLeader)a.updateIsLeader(z.isOrchestrationLeader());else{var J=new _.Fn("Function isOrchestrationLeader is undefined",{"player.isReady":z.isReady(),"player.playVideo":z.playVideo?
"defined":"undefined"});_.Gx(J);a.updateIsLeader(!1)}a.started=!0;_.nu(I)})};
sU.prototype.updateIsLeader=function(a){this.store.dispatch(_.rg({type:"SET_IS_LEADER_TAB",payload:{isLeaderTab:a}}))};
sU[zp]=[_.Zc,_.mP];var rez=function(a,z){this.networkStatusManager=a;this.JSC$18229_prefStoragePromise=z;this.redirectsToPreload=["https://youtube.com"]},P0Z=function(){var a=_.ab().resolve(rez),z,I,J,r,P,N;
_.t(function(u){switch(u.nextAddress){case 1:return u.yield(a.JSC$18229_prefStoragePromise,2);case 2:z=u.yieldResult;if(!(I=z)){u.jumpTo(3);break}return u.yield(z.get("yt-redirect-prefetch-id"),4);case 4:I=u.yieldResult;case 3:if(I||!a.networkStatusManager.isNetworkAvailable())return u.return();J={cache:"reload",redirect:"manual"};r=_.C(a.redirectsToPreload);P=r.next();case 5:if(P.done){if(!z){u.jumpTo(0);break}return u.yield(z.set("yt-redirect-prefetch-id",!0,86400),0)}N=P.value;_.BP(u,8);return u.yield(_.IE.fetch(N,
J),10);case 10:_.p1(u,6);break;case 8:_.sk(u);case 6:P=r.next(),u.jumpTo(5)}})};var nj=function(a){a?(this.container=a,this.containerWasInjected=!0):this.containerWasInjected=!1};
nj.prototype.openDialog=function(a,z,I){var J=this,r;return _.t(function(P){(r=J.container)==null||r.openDialog(a,z,I);_.nu(P)})};
nj.prototype.closeDialog=function(){var a=this,z;return _.t(function(I){(z=a.container)==null||z.closeDialog();_.nu(I)})};
nj.prototype.isDialogOpen=function(){var a=this,z,I;return _.t(function(J){return J.return((I=(z=a.container)==null?void 0:z.isDialogOpen())!=null?I:!1)})};
nj[zp]=[_.eL(WIv)];_.ZZE=new _.I4("POPUP_CONTROLLER_TOKEN");var C00=function(){this.panelMap=new Map;this.pendingPanelResolvers=new Map};
C00.prototype.registerPanel=function(a,z){if(a){this.panelMap.set(a,z);var I=this.pendingPanelResolvers.get(a);I&&(I.resolve(z),this.pendingPanelResolvers.delete(a))}};
C00.prototype.getPanel=function(a){var z=this,I;return _.t(function(J){return(I=z.panelMap.get(a))?J.return(I):J.return(NEE(z,a))})};
var NEE=function(a,z){var I,J;return _.t(function(r){if(I=a.pendingPanelResolvers.get(z))return r.return(I.promise);J=new _.EM;a.pendingPanelResolvers.set(z,J);return r.return(J.promise)})},tf0=function(a){C00.call(this);
var z=this;this.popupController=a;this.panelContentMap=new Map;this.updatePanelContinuationDatas=new Map;this.TEST_ONLY={getPanelMapSize:function(){return z.panelMap.size}}};
_.b(tf0,C00);_.Z=tf0.prototype;_.Z.getReloadContinuation=function(a){var z=this,I;return _.t(function(J){if(J.nextAddress==1)return J.yield(z.getPanel(a),2);I=J.yieldResult;return J.return(I.getReloadContinuation())})};
_.Z.showPanel=function(a,z,I,J,r,P,N){var u=this,E,O,f,A;return _.t(function(n){if(n.nextAddress==1){N&&u.updatePanelContinuationDatas.set(a,N);if((E=I)==null?0:(O=E.engagementPanelPopupPresentationConfig)==null?0:O.popupType){f=I.engagementPanelPopupPresentationConfig.popupType;r===void 0&&(r=document.body);var F=n.return,h=u.popupController,v=h.openPopup;a:switch(f){case "PANEL_POPUP_TYPE_DIALOG":var d="DIALOG";break a;case "PANEL_POPUP_TYPE_DROPDOWN":d="DROPDOWN";break a;default:throw Error("fj`"+
f);}return F.call(n,v.call(h,a,z,d,r))}return n.yield(u.getPanel(a),2)}A=n.yieldResult;(z||P)&&A.updatePanel(z,!1,J,P);A.showPanel(J);_.nu(n)})};
_.Z.hidePanel=function(a){var z=this,I;return _.t(function(J){if(J.nextAddress==1)return J.yield(z.getPanel(a),2);I=J.yieldResult;I.hidePanel();z.popupController.closePopup(a);_.nu(J)})};
_.Z.isVisible=function(a,z){var I=this,J;return _.t(function(r){if(r.nextAddress==1)return z&&!I.panelMap.has(a)?r.return(!1):r.yield(I.getPanel(a),2);J=r.yieldResult;return r.return(J.isVisible())})};
_.Z.updatePanel=function(a,z,I,J,r,P){I=I===void 0?!1:I;var N=this,u;return _.t(function(E){if(E.nextAddress==1){if(!z&&!r)return E.return();P&&N.updatePanelContinuationDatas.set(a,P);return E.yield(N.getPanel(a),2)}u=E.yieldResult;u.updatePanel(z,I,J,r);_.nu(E)})};
_.Z.registerPanelContent=function(a,z){a&&this.panelContentMap.set(a,z)};
_.Z.unregisterPanelContent=function(a){this.panelContentMap.delete(a)};
_.Z.getPanelContent=function(a){return this.panelContentMap.get(a)};
_.Z.getUpdatePanelContinuationData=function(a){return this.updatePanelContinuationDatas.get(a)};
tf0[zp]=[_.ZZE];var Kj=function(a,z){this.innertubeTransportService=a;this.JSC$18245_screenManager=z},uM4=function(a){var z;
return!((z=a.panelLoadingStrategy)==null||!z.requestTemplate)};
Kj.prototype.makeRequest=function(a){var z=this,I,J;return _.t(function(r){switch(r.nextAddress){case 1:if(!uM4(z)){r.jumpTo(2);break}_.BP(r,3);return r.yield(_.y7(z.innertubeTransportService,a),5);case 5:return I=r.yieldResult,I?r.return(I.content):(_.Gx(Error("gj")),r.return(void 0));case 3:J=_.sk(r),_.Gx(J);case 2:return r.return(void 0)}})};
Kj.prototype.getContent=function(){if(this.panelLoadingStrategy&&this.panelLoadingStrategy.inlineContent)return this.panelLoadingStrategy.inlineContent};
Kj.prototype.execute=function(a){var z=this,I,J,r,P,N,u,E,O,f,A;return _.t(function(n){if(n.nextAddress==1){I=a;J=I.data;r=I.fallbackVe;P=I.parentVe;N=I.createScreenConfig;u=I.renderFn;E=I.command;z.panelLoadingStrategy=J;var F,h,v=((F=z.panelLoadingStrategy)==null?0:F.screenVe)?(h=z.panelLoadingStrategy)==null?void 0:h.screenVe:r;v&&_.fJ(z.JSC$18245_screenManager,v,P,N);return(O=z.getContent())?n.yield(u(O),2):n.jumpTo(2)}return n.nextAddress!=4?uM4(z)?n.yield(z.makeRequest(E),4):n.return():(A=f=
n.yieldResult)?n.yield(u(A),0):n.return()})};
Kj[zp]=[_.dY,_.d7];var Ff=function(){};
Ff.prototype.getContainer=function(){return _.jE()&&this.fullScreenContainer?this.fullScreenContainer:this.container};
Ff.prototype.openSheet=function(a,z){var I=this,J,r,P,N,u,E;return _.t(function(O){switch(O.nextAddress){case 1:return J={stack:[],error:void 0,hasError:!1},_.BP(O,2,3),r=kl,O.yield(I.isSheetOpen(),5);case 5:P=O.yieldResult;yn$(J,bIM(r));if(P){if(z&&I.currentTarget===z)return(N=I.getContainer())==null||N.closeSheet(),O.return();I.pendingData={data:a,target:n7z(I,z)};return O.return()}a.viewModel&&(a={viewModel:a.viewModel});(u=I.getContainer())==null||u.openSheet(a,z);I.currentTarget=z;case 3:_.Ok(O);
k5p(J);_.Ay(O,0);break;case 2:E=_.sk(O),J.error=E,J.hasError=!0,O.jumpTo(3)}})};
Ff.prototype.closeSheet=function(){var a=this,z;return _.t(function(I){if(I.nextAddress==1)return I.yield((z=a.getContainer())==null?void 0:z.closeSheet(),2);if(I.nextAddress!=4)return a.currentTarget=void 0,a.pendingData?I.yield(a.openSheet(a.pendingData.data,a.pendingData.target),4):I.jumpTo(0);a.pendingData=void 0;_.nu(I)})};
Ff.prototype.isSheetOpen=function(){var a=this,z,I;return _.t(function(J){return J.return((I=(z=a.getContainer())==null?void 0:z.isSheetOpen())!=null?I:!1)})};
var n7z=function(a,z){if(!_.K("web_parent_target_for_sheets"))return z;var I,J;return(J=(I=a.getContainer())==null?void 0:I.getParentTarget(z))!=null?J:z};var Pq=window.documentPictureInPicture;var SYm=_.kK(["dark"]),iTG=_.kK(["system-icons"]),xP7=_.kK(["typography"]),v5O=_.kK(["lang"]),GHG=_.kK(["style"]),bTm=_.kK(["dir"]),hBd=_.kK(["rounded-container"]),V4O=_.kK(["style"]),Xux=["yt-navigate-cache","yt-navigate","yt-action","yt-toggle-button"],HO=function(a){this.JSC$18257_clientRoot=a;this.currentPipWindow=null;this.onCloseCallbacks=[];this.handlePipWindowResize=this.handlePipWindowResize.bind(this)};
HO.prototype.openWindow=function(a){var z=this,I,J;return _.t(function(r){if(r.nextAddress==1)return window.documentPictureInPicture&&_.iG()&&!z.currentPipWindow?r.yield((I=Pq?Pq:null)==null?void 0:I.requestWindow(a),2):r.return(!1);if(r.nextAddress!=3){J=r.yieldResult;if(!J)return r.return(!1);J.addEventListener("pagehide",function(){EZV(z)});
J.addEventListener("resize",z.handlePipWindowResize);z.pipWindowResizeDelay=new _.zX(function(){z.currentPipWindow&&_.ZF(z.currentPipWindow.document.documentElement,"yt-pip-window-resized",[new _.fB(z.currentPipWindow.innerWidth,z.currentPipWindow.innerHeight)])},J);
$P$(J);dPG(J);return r.yield(HTp(J),3)}if(!n5x())return r.return(!1);z.currentPipWindow=J;z.JSC$18257_eventForwarder=Tui(J,z.JSC$18257_clientRoot);z.pipWindowResizeDelay.start();return r.return(!0)})};
HO.prototype.handlePipWindowResize=function(){this.pipWindowResizeDelay&&this.pipWindowResizeDelay.start()};
var EZV=function(a){if(a.currentPipWindow){var z,I;(z=Pq?Pq:null)==null||(I=z.window)==null||I.close();a.currentPipWindow.removeEventListener("resize",a.handlePipWindowResize);var J;(J=a.pipWindowResizeDelay)==null||J.dispose();a.pipWindowResizeDelay=void 0;var r;(r=a.JSC$18257_eventForwarder)==null||r.stop();a.JSC$18257_eventForwarder=void 0;z=_.C(a.onCloseCallbacks);for(I=z.next();!I.done;I=z.next())I=I.value,I();a.onCloseCallbacks=[];a.currentPipWindow=null}};
HO.prototype.getWindow=function(){return this.currentPipWindow};
var BEY=function(a,z){var I;(I=a.onCloseCallbacks)==null||I.push(z)};
HO.prototype.pictureInPictureSupported=function(){return!!window.documentPictureInPicture&&_.iG()};
_.eH.Object.defineProperties(HO.prototype,{TEST_ONLY:{configurable:!0,enumerable:!0,get:function(){}}});
HO[zp]=[IWj];var gZE=new _.I4("PICTURE_IN_PICTURE_CONTROLLER");var Wup=function(a,z){this.lengthY=this.lengthX=0;this.lengthX=z.x-a.x;this.lengthY=z.y-a.y};var OZV=function(){},v7f=function(a,z){var I;
(I=a.headerElement)==null||I.dispatchEvent(new CustomEvent("yt-new-playlist-header",{detail:z}))};var fEz=function(){};
fEz.prototype.openPopup=function(a,z,I,J){var r=this,P;return _.t(function(N){if(!r.container)return N.return();P={openPopupAction:{popup:z,popupType:I,uniqueId:a}};return N.return(r.container.handleOpenPopupAction(P,J))})};
fEz.prototype.closePopup=function(a){this.container&&this.container.closePopup(a)};var AeZ=function(){this.openTunnels=new Map},bj$=function(a,z,I){if(lK$(I)){var J=_.US(I,"gclid");
I={handleEvent:function(u){z&&!z.closed&&typeof z.postMessage==="function"&&u&&u.origin&&u.source===z&&u.data&&u.data.action==="gcl_setup"&&z.postMessage(Object.assign({},{action:"gcl_transfer"},J&&{gclid:J},{gadSource:2}),u.origin)}};
for(var r=_.C(a.openTunnels),P=r.next();!P.done;P=r.next()){var N=_.C(P.value);P=N.next().value;N=N.next().value;if(P.closed)try{window.removeEventListener("message",N),a.openTunnels.delete(P)}catch(u){_.Gx(u)}}z&&a.openTunnels.size<15&&(a.openTunnels.set(z,I),window.addEventListener("message",I))}};var sZ0=function(){this.clientParams=new Map},nfw=function(a){for(var z=_.C(a.clientParams.keys()),I=z.next();!I.done;I=z.next())I=I.value,I.startsWith("yt-mini-app-share")&&a.clientParams.delete(I)};var nZM=function(a,z){_.FC.call(this);var I=this;this.shortsController=a;this.storeWithShorts=z;a=_.QT(this.storeWithShorts,_.eri,function(J){if(J){var r,P=(r=I.shortsController.getRoot())==null?void 0:r.getPlayer(),N;(r=(N=I.shortsController.alternativePlayerContainerElement)==null?void 0:N.getPlayerContainer())&&(P==null||P.appendTo(r))}else{var u;N=(u=I.shortsController.alternativePlayerContainerElement)==null?void 0:u.getPlayerContainer().querySelector("#player");r=I.shortsController.activeIndex;
(u=(P=I.shortsController.getRoot())==null?void 0:P.querySelector('ytd-reel-video-renderer[id="'+r+'"] #player-container'))&&(N==null||N.appendTo(u,void 0,!0))}});
this.addOnDisposeCallback(a)};
_.b(nZM,_.FC);var bs=function(a,z,I,J,r){var P=this;this.storeWithShorts=a;this.ephemeralResponseStore=z;this.store=I;this.innertubeTransportService=J;this.innertubeTransportLoader=r;this.activeModules=[];this.activeIndex=0;this.dismissedIndices=[];this.watchWhileIndices=new Set;this.isFullscreenEnabled=_.o5(_.Cc);this.isShortsPipActive=_.o5(_.NA);this.nextReelVe=_.uq(56921);this.prevReelVe=_.uq(56922);this.backButtonVe=_.uq(22156);this.TEST_ONLY={getActiveModules:function(){return P.activeModules}}},KzZ=function(a){a.unsubscribeFromStore=
_.QT(a.storeWithShorts,_.qQx,function(z){a.initOrDisposeActiveModules(z);
!z&&a.storeWithShorts.getState().shorts.isFullscreen&&(_.zb(document.documentElement),a.storeWithShorts.dispatch(_.r0G(!1)))});
a.initOrDisposeActiveModules(_.qQx(a.storeWithShorts.getState()))},Pvv,ZX1,FzE;
bs.prototype.initOrDisposeActiveModules=function(a){a?this.activeModules.push(new nZM(this,this.storeWithShorts)):(_.qM(this.activeModules),this.activeModules.length=0)};
bs.prototype.registerRootElement=function(a){this.rootElement=a;KzZ(this)};
bs.prototype.getRoot=function(){return this.rootElement};
bs.prototype.setActiveIndex=function(a){this.activeIndex=a};
_.a3O=function(a,z){var I,J,r,P,N,u,E;return _.t(function(O){switch(O.nextAddress){case 1:return I=new vz,(J=I.JSC$13013_getStoreKey(z))&&a.ephemeralResponseStore.has(J)?O.yield(a.ephemeralResponseStore.get(J),7):O.yield(FzE(a,z),4);case 4:r=O.yieldResult;if(!J){O.jumpTo(3);break}P=Nh(r,3600);return O.yield(a.ephemeralResponseStore.put(J,new _.s3(P)),3);case 7:r=(N=O.yieldResult)==null?void 0:_.Iv(N);case 3:return((u=r)==null?0:u.replacementEndpoint)&&(E=_.H(r.replacementEndpoint,_.hv))&&r.sequenceContinuation&&
(E.sequenceParams=r.sequenceContinuation),O.return(r)}})};
Pvv=function(a,z){z=(new GT).JSC$13013_getStoreKey(z);return!!z&&a.ephemeralResponseStore.has(z)};
ZX1=function(a,z,I){var J,r,P,N,u;_.t(function(E){if(E.nextAddress==1){J=new GT;r=J.JSC$13013_getStoreKey(z);if(!r)return E.return();if(I.reelWatchSequenceResponse)return P=Nh(I.reelWatchSequenceResponse,3600),a.ephemeralResponseStore.put(r,new _.s3(P)),E.jumpTo(0);if(!a.ephemeralResponseStore.has(r))return E.jumpTo(0);u=I;return E.yield(a.ephemeralResponseStore.get(r),4)}u.reelWatchSequenceResponse=(N=E.yieldResult)==null?void 0:_.Iv(N);_.nu(E)})};
FzE=function(a,z){var I=I===void 0?{}:I;var J,r,P;return _.t(function(N){switch(N.nextAddress){case 1:if(a.innertubeTransportService){J=a.innertubeTransportService;N.jumpTo(2);break}if(!a.innertubeTransportLoader){_.oL(Error("ij"));N.jumpTo(2);break}return N.yield(a.innertubeTransportLoader(),4);case 4:J=N.yieldResult;case 2:return N.yield((r=J)==null?void 0:_.y7(r,z,I),5);case 5:return P=N.yieldResult,N.return(P)}})};
_.eH.Object.defineProperties(bs.prototype,{playerApi:{configurable:!0,enumerable:!0,get:function(){return this.rootElement?this.rootElement.getPlayer().getPlayerPromise():Promise.resolve(void 0)}}});
bs[zp]=[wMX,_.AM,r0,_.eL(_.dY),_.eL(D8G)];_.HZM=new _.I4("STORAGE_MANAGER_TOKEN");var kH$=["touchmove","scroll"];var M4d={onSpanEnd:function(a){if(a.parent==null){var z=a.name;_.$A(z);yp3(a,z)}}};var bZG=function(){this.queue=[];this.currentPersistentToast=this.currentToast=void 0},hiE;
bZG.prototype.enqueue=function(a,z){z===1?this.currentPersistentToast=a:this.queue.push(a);this.openToast()};
bZG.prototype.openToast=function(){var a;(a=this.currentToast)!=null&&a.isOpened()||(this.queue.length?(this.currentToast=this.queue.shift(),this.currentToast.open()):this.currentPersistentToast&&this.currentPersistentToast.open())};_.hs=new _.I4("TOAST_MANAGER_TOKEN");var Vfe=new _.I4("VIEW_TRANSITION_COORDINATOR_CONFIG_TOKEN");var QZM=new _.I4("VIEW_TRANSITION_COORDINATOR_TOKEN");var SGE=function(a){this.config=a;this.elementTasksMap=new Map;this.transitionTasksMap=new Map;a=_.C(a.transitionConfigs);for(var z=a.next();!z.done;z=a.next())z=_.C(z.value).next().value,this.transitionTasksMap.set(z,[])};
SGE.prototype.registerElement=function(a,z,I){I=I===void 0?!1:I;for(var J=_.C(Object.keys(z)),r=J.next(),P={};!r.done;P={viewTransitionName:void 0},r=J.next()){r=r.value;P.viewTransitionName=z[r];var N=this.elementTasksMap.get(a),u=void 0;if((u=N)==null?0:u.has(r)){_.$0(new _.Fn("Element already registered for transition",a.tagName,r));break}N=N||new Map;N.set(r,{beforeTransition:function(E){return function(){a.style.viewTransitionName=E.viewTransitionName}}(P),
afterTransition:function(){a.style.viewTransitionName&&(a.style.viewTransitionName="")},
runOnce:I});this.elementTasksMap.set(a,N)}};
_.pU=function(a,z){var I=a.elementTasksMap.get(z);I&&(I.clear(),I.size===0&&a.elementTasksMap.delete(z))};
SGE[zp]=[Vfe];var iZ0;_.x0Z=_.ec(function(a){return _.B("basic-content-view-model",{class:_.B8("ytBasicContentViewModelHost",_.Yi(a.className))},_.B(_.g,{cond:function(){return a.data().headline},
then:function(z){return _.B("div",{class:"ytBasicContentViewModelHeadline"},_.B(_.xs,{text:z}))}}),_.B(_.se,{each:function(){return a.data().paragraphs||[]},
keyBy:"INDEX"},function(z){return _.B("div",{class:"ytBasicContentViewModelParagraph"},_.B(_.g,{cond:function(){var I=z();return!!(I.header||I.customHeader||I.headline)},
then:function(){return _.B(iZ0,{paragraph:z})}}),_.B(_.g,{cond:function(){return z().asset||z().text},
then:function(){return _.B("div",{class:"ytBasicContentViewModelParagraphContent"},_.B(_.g,{cond:function(){return z().asset},
then:function(I){return _.B("div",{class:"ytBasicContentViewModelParagraphAsset"},_.B(_.V0,{data:I},{contentPreviewImageViewModel:_.t0}))}}),_.B(_.g,{cond:function(){return z().text},
then:function(I){return _.B("div",{class:"ytBasicContentViewModelParagraphText"},_.B(_.xs,{text:I}))}}))}}))}))},"Ge");
iZ0=_.ec(function(a){var z=a.paragraph;return _.B(_.eJ,null,_.B(_.g,{cond:function(){return z().headline},
then:function(I){return _.B(_.xs,{text:I,className:"ytBasicContentViewModelParagraphHeadline"})}}),_.B(_.V0,{data:function(){return z().header||z().customHeader}},{sectionHeaderViewModel:function(I){return _.B(_.fF,{data:I.data,
disableHorizontalPadding:!0,forceSmallLayout:!0})}}))},"He");var GYE=_.ec(function(a){var z=_.Mm("yt-expandable-metadata-header-view-model"),I=_.g4(function(J){if(!_.di(_.TI(J),z.value,["A".toString(),"BUTTON".toString()])){var r;(r=a.expandedCallback)==null||r.call(a,!1)}});
return _.B("yt-expandable-metadata-header-view-model",{el:z,class:"ytExpandableMetadataHeaderViewModelHost"},_.B(_.g,{cond:function(){return a.expanded()},
then:function(){return _.B("div",{class:"ytExpandableMetadataHeaderViewModelExpandedHeader","on:click":I},_.B("div",{class:"ytExpandableMetadataHeaderViewModelLeftSectionExpanded"},_.B(_.g,{cond:function(){return a.data().expandedTitleImage},
then:function(J){return _.B("div",{class:"ytExpandableMetadataHeaderViewModelExpandedTitleImage"},_.B(_.qp,{alt:"",width:16,height:16,className:"ytExpandableMetadataHeaderViewModelIcon",data:J}))}}),_.B("div",{class:"ytExpandableMetadataHeaderViewModelExpandedTextContainer"},_.B("div",{class:"ytExpandableMetadataHeaderViewModelExpandedTextFirstRowContainer"},_.B(_.xs,{text:function(){return a.data().expandedLabel},
className:"ytExpandableMetadataHeaderViewModelExpandedLabel"}),_.B(_.xs,{text:function(){return a.data().expandedTitle},
className:"ytExpandableMetadataHeaderViewModelExpandedTitle"})),_.B(_.xs,{text:function(){return a.data().expandedSubtitle},
className:"ytExpandableMetadataHeaderViewModelExpandedSubtitle",linkInheritColor:!0}))),_.B("div",{class:"ytExpandableMetadataHeaderViewModelRightSection"},_.B(_.V0,{data:function(){return a.data().infoButton}},{buttonViewModel:_.At}),_.B(_.V0,{data:function(){return a.data().collapseButton}},{buttonViewModel:function(J){return _.B(_.At,{data:J.data,
onClick:function(){var r;(r=a.expandedCallback)==null||r.call(a,!1)}})}})))},
else:function(){return _.B(vZi,Object.assign({},a))}}))},"Ie"),$0Y=_.ec(function(a){return _.B("div",{class:"ytExpandableMetadataHeaderViewModelCollapsedLabelContainer"},_.B(_.g,{cond:function(){return a.data().collapsedLabelImage},
then:function(z){return _.B("div",{class:"ytExpandableMetadataHeaderViewModelCollapsedLabelImage"},_.B(_.qp,{width:16,height:16,className:"ytExpandableMetadataHeaderViewModelIcon",data:z,alt:""}))}}),_.B(_.xs,{text:function(){return a.data().collapsedLabel},
className:"ytExpandableMetadataHeaderViewModelCollapsedLabel"}))},"Je"),vZi=_.ec(function(a){return _.B("div",{class:"ytExpandableMetadataHeaderViewModelCollapsedHeader",
"on:click":_.g4(function(){var z;return void((z=a.expandedCallback)==null?void 0:z.call(a,!0))})},_.B("div",{class:"ytExpandableMetadataHeaderViewModelLeftSection"},_.B(_.g,{cond:function(){return a.data().collapsedImage},
then:function(z){return _.B("div",{class:"ytExpandableMetadataHeaderViewModelCollapsedImage"},_.B(_.qp,{width:16,height:16,data:z,alt:""}))}}),_.B(_.g,{cond:function(){return a.data().showLeadingCollapsedLabel},
then:function(){return _.B($0Y,Object.assign({},a))}}),_.B("div",{class:"ytExpandableMetadataHeaderViewModelCollapsedTitle"},_.B(_.xs,{text:function(){return a.data().collapsedTitle}}))),_.B("div",{class:"ytExpandableMetadataHeaderViewModelRightSection"},_.B(_.g,{cond:function(){return!a.data().showLeadingCollapsedLabel},
then:function(){return _.B($0Y,Object.assign({},a))}}),_.B(_.V0,{data:function(){return a.data().infoButton}},{buttonViewModel:_.At}),_.B(_.V0,{data:function(){return a.data().expandButton}},{buttonViewModel:function(z){return _.B(_.At,{data:z.data,
onClick:function(){var I;(I=a.expandedCallback)==null||I.call(a,!0)}})}})))},"Ke");_.X44=_.ec(function(a){var z=_.C(_.Af(function(){return a.data().initiallyExpanded})),I=z.next().value,J=z.next().value,r,P=(r=_.ab().resolve(_.eL(_.kN)))==null?void 0:r(),N=function(){var u=a.data().colorData;
if(u)return P?u==null?void 0:u.darkColorPalette:u==null?void 0:u.lightColorPalette};
return _.B("yt-expandable-metadata-view-model",{class:"ytExpandableMetadataViewModelHost",style:_.sW({"background-color":function(){var u=N();return(u==null?0:u.section2Color)?_.RX(u.section2Color):""}})},_.B(_.V0,{data:function(){return a.data().header}},{expandableMetadataHeaderViewModel:function(u){return _.B(GYE,{data:u.data,
expanded:function(){return!!I()},
expandedCallback:function(E){J(E)}})}}),_.B(_.g,{cond:function(){return I()},
then:function(){return _.B("div",{class:"ytExpandableMetadataViewModelExpandedContent"},_.B(_.V0,{data:function(){return a.data().expandedContent}},{horizontalShelfViewModel:function(u){return _.B(_.pF,{data:u.data,
includeMargin:!0,forceNarrowLayout:!0,palette:N})},
videoSummaryContentViewModel:function(u){return _.B(TKO,{data:u.data,className:"ytExpandableMetadataViewModelVideoSummaryContent"})},
lockupViewModel:function(u){return _.B(_.Ou,{data:u.data,className:"ytExpandableMetadataViewModelLockup",thumbnailFixedWidth:function(){return"168px"},
containerType:3,sizing:"COMPACT"})},
basicContentViewModel:function(u){return _.B(_.x0Z,{data:u.data,className:"ytExpandableMetadataViewModelBasicContent"})}}),_.B(_.V0,{data:function(){return a.data().expandedBottomButtons}},{buttonViewModel:function(u){return _.B("div",{class:"ytExpandableMetadataViewModelExpandedBottomButtons"},_.B(_.At,{data:u.data}))}}))}}))},"Le");var TEZ=_.ec(function(a){var z=a.text;var I=a.marqueeSpacing;var J=a.scrollDelay;var r=a.scrollDuration;var P=a.enableMarqueeScroll;a=a.large;var N=_.C(_.CW(!1,void 0,"kfNqfd")),u=N.next().value,E=N.next().value,O=_.C(_.CW(0,void 0,"bYgZbf"));N=O.next().value;var f=O.next().value,A=_.Mm("marquee-scroll");O=_.Mm("div");var n=_.Mm("span"),F=_.ab().resolve(_.cl);_.h2(function(){if(P()){var d=n.value.getBoundingClientRect().width,W=A.value.getBoundingClientRect().width;if(d>W){var l=(F==="ltr"?-1:1)*
(d+(I?I():16));Promise.resolve().then(function(){E(!0);f(l)})}}},"giRlme");
var h={},v={};return _.B("marquee-scroll",{class:_.B8("ytMarqueeScrollHost",(h.ytMarqueeScrollHostLarge=a,h)),el:A},_.B("div",{id:"marquee-scroll-inner-container",class:_.B8("ytMarqueeScrollInnerContainer",(v.ytMarqueeScrollAnimationEnabled=function(){return u()},v)),
el:O,style:_.sW({gap:I?(0,_.oP)(I):"16px","animation-duration":r?xWE(r):"16s","animation-delay":J?xWE(J):"3s","--marquee-translate":(0,_.oP)(N)})},_.B("span",{el:n,dir:"auto"},_.B(_.xs,{text:z,noWrap:!0,className:"ytMarqueeScrollPrimaryString"})),_.B(_.g,{cond:u,then:function(){return _.B("span",{"aria-hidden":"true",dir:"auto"},_.B(_.xs,{text:z,noWrap:!0,className:"ytMarqueeScrollDuplicateString"}))}})))},"Me");_.d0Y=_.ec(function(a){var z=a.data;var I=a.overlayDensity;a=_.g4(function(){z().onTapCommand&&_.lN(z().onTapCommand);return!1});
var J=_.XF(),r=function(){return(I==null?void 0:I())===1?22:16},P={};
return _.B("reel-sound-metadata-view-model",{class:_.B8("ytReelSoundMetadataViewModelHost",(P.ytReelSoundMetadataViewModelHostLarge=function(){return(I==null?void 0:I())===1},P)),
"on:click":a,tabindex:0,role:"button","on:keydown":J},_.B("div",{class:"ytReelSoundMetadataViewModelMetadataContainer"},_.B(_.g,{cond:function(){return z().musicIcon},
then:function(N){return _.B(_.qp,{data:N,alt:"music icon",className:"ytReelSoundMetadataViewModelIcon",size:r})}}),_.B("div",{class:"ytReelSoundMetadataViewModelMarqueeContainer"},_.B(TEZ,{text:function(){return z().soundMetadata},
enableMarqueeScroll:function(){return!!z().enableMarqueeScroll},
large:function(){return(I==null?void 0:I())===1}}))))},"Ne");var WzY,oZM,Vm,Lz0,p4e,Rif,yee,m0i;WzY=["https://fonts.gstatic.com","https://tv.youtube.com","https://www.gstatic.com","https://www.youtube.com"];oZM=_.Ib("wil_icon_max_concurrent_fetches",Infinity);
Vm=function(a,z,I){var J=this;this.iconSet=a;this.appDirection=z;this.responsePromises={};this.iconCache={};this.queuedResponseResolvers={};this.numFetches=this.counter=0;this.cacheStorageAvailable=!!_.IE.caches;this.cacheStorageAsync=Promise.resolve(void 0);this.cacheStorageSync=void 0;this.requestAninmationFrameResolver=null;this.renderingMode=_.K("wil_icon_use_mask_rendering")?1:0;this.isNetworkFirstStrategy=_.K("wil_icon_network_first");this.renderWhenIdle=_.K("wil_icon_render_when_idle");this.waitForAnimationFrame=
!_.K("wil_icon_load_immediately");this.isPurging=!1;a=function(){J.cacheStorageAvailable&&(J.cacheStorageAsync=_.IE.caches.open("yt-icons").then(function(P){return J.cacheStorageSync=P}).catch(function(){J.cacheStorageAvailable=!1}))};
I=(I==null?void 0:I())||{};I=_.C(Object.entries(I));for(z=I.next();!z.done;z=I.next()){var r=_.C(z.value);z=r.next().value;r=r.next().value;r=Ee(r);U04(r);this.iconCache[z]=r.cloneNode(!0)}this.isPurging=D0E(this);this.isPurging instanceof Promise?this.isPurging.then(a):a()};
_.yS0=function(a,z){var I=a.resolveIcon(z);return I?a.renderingMode===1?Rif(a,I,a.renderingMode):(z=a.iconCache[I.url])?(z=z.cloneNode(!0),Lz0(a,z),Rif(a,I,a.renderingMode,z)):_.lEY(a,I).then(function(J){var r=J?0:1;Lz0(a,J);return Rif(a,I,r,J)}):(_.$0(new _.Fn("Icon not found",{iconShape:z})),function(){})};
Lz0=function(a,z){if(z){a.counter+=1;a="_yt"+a.counter;z=[z].concat(_.ih(z.getElementsByTagName("*")));z=_.C(z);for(var I=z.next();!I.done;I=z.next())if(I=I.value,I.tagName==="style"&&I.textContent)I.textContent=p4e(I.textContent,a,!0);else for(var J=_.C(I.attributes),r=J.next();!r.done;r=J.next()){r=r.value;r.name==="id"&&(r.value+=a);["mask","fill","clip-path"].includes(r.name)&&(r.value=p4e(r.value,a));if(r.name==="style"){var P=I.style;try{P.cssText=p4e(P.cssText,a,!0)}catch(f){var N=void 0,u=
void 0,E=void 0,O=void 0;Qm({error:((N=f)==null?void 0:(E=(u=N).toString)==null?void 0:E.call(u))||"",el:I.outerHTML,style:!!P,cssText:(O=P)==null?void 0:O.cssText})}}r.name==="xlink:href"&&(r.value=r.value.replace(/#(.*)/,"#$1"+a))}}};
p4e=function(a,z,I){var J=/url\(["']?#(.*?)["']?\)/;(I===void 0?0:I)&&(J=/url\(["']?#(.*?)["']?\)/g);return a.replace(J,"url(#$1"+z+")")};
Rif=function(a,z,I,J){return function(r,P){var N=Object.assign({},{iconColor:"currentcolor",iconWidth:z.size+"px",iconHeight:z.size+"px",iconDisplay:"block"},P);P=_.OS("DIV");var u=N.iconColor,E=N.iconFilter;N="width: "+N.iconWidth+"; height: "+N.iconHeight+"; display: "+N.iconDisplay+";";E&&(N+=" filter: "+E+";");I===0&&(N+=" fill: "+u+";");I===1&&(E=z.url,N+=" -webkit-mask: url("+E+") no-repeat center / cover; mask: url("+(E+") no-repeat center / cover; background-color: ")+u);z.allowMirroring&&
a.appDirection==="rtl"&&(N+=" transform: scale(-1, 1); transform-origin: center center;");P.setAttribute("style",N);I===0&&J&&P.appendChild(J);r.appendChild(P)}};
_.lEY=function(a,z){var I,J,r;return _.t(function(P){I=function(N){return Rt(N)};
J=z.url;if(!w4E(J))throw Error("lj");r=m0i(a,J);return P.return(r.then(function(N){return N.clone().text()}).then(function(N){var u=I(N);
N=z.size;var E=_.OS("DIV");_.YP(E,u);u=_.fo(E.firstElementChild!==void 0?E.firstElementChild:_.coe(E.firstChild,!0));N=U04(u,N);a.iconCache[J]=N.cloneNode(!0);delete a.responsePromises[J];return N}).catch(function(){}))})};
yee=function(a){var z,I=(z=a.requestAninmationFrameResolver)==null?void 0:z.promise;I||(a.requestAninmationFrameResolver=new _.EM,I=a.requestAninmationFrameResolver.promise,_.IE.requestAnimationFrame(function(){var J;(J=a.requestAninmationFrameResolver)==null||J.resolve();a.requestAninmationFrameResolver=null}));
return I};
m0i=function(a,z){var I,J;return _.t(function(r){if(r.nextAddress==1)return a.waitForAnimationFrame?r.yield(yee(a),2):r.jumpTo(2);I=a.responsePromises[z];I||(J=function(){var P,N,u;return _.t(function(E){switch(E.nextAddress){case 1:if(!a.cacheStorageAvailable){P=void 0;E.jumpTo(2);break}if(N=a.cacheStorageSync){E.jumpTo(3);break}return E.yield(a.cacheStorageAsync,4);case 4:N=E.yieldResult;case 3:P=N;case 2:return u=P,a.isNetworkFirstStrategy?E.return(a.fetchAndUpdateCache(z,u).catch(a.getCacheStorageResponse.bind(a,
z,u))):E.return(a.getCacheStorageResponse(z,u).catch(a.fetchAndUpdateCache.bind(a,z,u)))}})},I=a.renderWhenIdle?new Promise(function(P,N){_.b9(_.GW,function(){J().then(P).catch(N)},10)}):J(),a.responsePromises[z]=I);
return r.return(I.catch(function(P){delete a.responsePromises[z];Qm({error:(P==null?0:P.toString)?P.toString():"",url:z});throw P;}))})};
Vm.prototype.fetchAndUpdateCache=function(a,z){var I=this;return _.t(function(J){return J.return(kYV(I,a).then(function(r){Mf0(I,a,r,z);return r}))})};
var kYV=function(a,z){var I;return _.t(function(J){if(a.numFetches<oZM)return a.numFetches+=1,J.return(ceY(a,z).finally(function(){--a.numFetches;if(Object.keys(a.queuedResponseResolvers).length){var r=Object.keys(a.queuedResponseResolvers)[0],P=a.queuedResponseResolvers[r];delete a.queuedResponseResolvers[r];P.resolve(kYV(a,r))}}));
I=new _.EM;a.queuedResponseResolvers[z]=I;return J.return(I.promise)})},ceY=function(a,z,I){I=I===void 0?2:I;
var J;return _.t(function(r){J={credentials:"same-origin",priority:"low"};return r.return(_.IE.fetch(z,J).then(function(P){return P.ok?P:Promise.reject(Error("mj`"+P.status+"`"+P.statusText))}).catch(function(P){if(I>0)return ceY(a,z,I-1);
throw P;}))})},Mf0=function(a,z,I,J){_.t(function(r){return J?r.return(new Promise(function(P){_.b9(_.GW,function(){var N,u;
return _.t(function(E){switch(E.nextAddress){case 1:if(!a.isNetworkFirstStrategy){N=void 0;E.jumpTo(2);break}return E.yield(J.match(z).catch(function(){}),3);
case 3:N=E.yieldResult;case 2:if(u=N){E.jumpTo(4);break}return E.yield(J.put(z,I.clone()).catch(function(O){Qm({error:(O==null?0:O.toString)?O.toString():"",url:z})}),4);
case 4:P(),_.nu(E)}})},50)})):r.return()})};
Vm.prototype.getCacheStorageResponse=function(a,z){return _.t(function(I){return z?I.return(z.match(a).then(function(J){return J&&J.ok?J:Promise.reject()})):I.return(Promise.reject())})};
var U04=function(a,z){z===void 0||a.getAttribute("viewBox")||a.setAttribute("viewBox","0 0 "+z+" "+z);a.setAttribute("focusable","false");a.setAttribute("aria-hidden","true");try{a.style.pointerEvents="none",a.style.display="inherit",a.style.width="100%",a.style.height="100%"}catch(r){var I;Qm({error:((I=r)==null?0:I.toString)?r.toString():""});try{a.style.cssText="pointer-events: none; display: inherit; width: 100%; height: 100%;"}catch(P){var J;Qm({error:((J=P)==null?0:J.toString)?P.toString():
""})}}return a},w4E=function(a){for(var z=_.C(WzY),I=z.next();!I.done;I=z.next())if(a.startsWith(I.value)&&a.endsWith(".svg"))return!0;
return!1};
Vm.prototype.resolveIcon=function(a){return this.iconSet.resolveIcon(a)};
var Qm=function(a){_.Xd(new _.Fn("Error in IconManager",a))},D0E=function(a){if(_.K("wil_icons_cache_purge_killswitch"))return!1;
try{var z=_.IE.localStorage}catch(P){return!1}if(!z||!a.cacheStorageAvailable)return!1;var I=function(P){try{var N;(N=z)==null||N.setItem("yt-icons-last-purged",P.toString())}catch(E){var u;Qm({error:((u=E)==null?0:u.toString)?E.toString():""})}},J=Number(z.getItem("yt-icons-last-purged"));
if(!J)return J=new Date,J=J.setDate(J.getDate()-Math.floor(Math.random()*90+1)),I(J),!1;if(function(P,N){P=new Date(P);N=new Date(N);return N.getMonth()-P.getMonth()+12*(N.getFullYear()-P.getFullYear())}(J,Date.now())<3)return!1;
try{return _.IE.caches.delete("yt-icons").then(function(P){P&&I(Date.now());return P}).catch(function(){return!1}).finally(function(){a.isPurging=!1})}catch(P){var r;
Qm({error:((r=P)==null?0:r.toString)?P.toString():""});return!1}};
Vm[zp]=[Mmw,_.cl,_.eL(qPE)];_.SO=function(a,z){this.iconManager=a;this.iconsToFetch=z};
_.SO[zp]=[_.gd,_.eL(YPv)];var YGZ=function(){};var qGf=function(a,z,I){this.requestKey=a;this.xLk=z;this.hkX=I;this.ncW=function(){return new XMLHttpRequest};
this.hVC=void 0;this.tKU=[]};
qGf.prototype.getLatestChallengeResponse=function(){return this.hkX};
var jfO=function(a,z,I){var J,r,P,N;return _.t(function(u){if(u.nextAddress==1){_.$A("attestation_challenge_fetch");_.Xz("att_fs",void 0,"attestation_challenge_fetch");if(!a.hVC)throw new _.xM(9,"Missing fetcher");return u.yield(a.hVC(z,I),2)}J=u.yieldResult;P=(r=J)==null?void 0:r.bgChallenge;if(!P)throw new _.xM(15,"Missing field");a.hkX=J;a.tKU.forEach(function(E){E(J)});
N=ygm(P);_.Xz("att_fc",void 0,"attestation_challenge_fetch");JNG("attestation_challenge_fetch");return u.return(N)})},bo1=function(a,z){var I,J,r,P,N;
return _.t(function(u){switch(u.nextAddress){case 1:I=new ZJ(100,3E5,.25,2),J=void 0;case 2:if(!(I.currBackoffCount_<10)){u.jumpTo(4);break}_.BP(u,5);if(!(I.currBackoffCount_>0)){u.jumpTo(7);break}return u.yield(YY$(I.getValue()),7);case 7:return u.yield(eiZ(a,z),9);case 9:return r=u.yieldResult,u.return(r);case 5:P=_.sk(u);P instanceof _.xM?J=P:(N=P instanceof Error?P.message:"Unknown",J=new _.xM(9,N));uXJ(I);u.jumpTo(2);break;case 4:if(J)throw J;throw new _.xM(9,"Unknown error");}})},eiZ=function(a,
z){z=pHf(wHw(new lmI,z),a.requestKey);
var I=new _.EM,J=a.ncW();J.open("POST",a.xLk);J.setRequestHeader("X-Goog-Api-Key","AIzaSyDyT5W0Jh49F30Pqqtyfdf7pDLFKLJoAnw");J.setRequestHeader("Content-Type","application/json+protobuf");J.onload=function(){if(_.Te3(J)){var r=e2w(J.responseText);I.resolve(r)}else I.reject(new _.xM(_.ML3(_.Zv(J)),J.statusText))};
J.onerror=function(){I.reject(new _.xM(_.ML3(_.Zv(J)),J.statusText))};
J.send(z.serialize());return I.promise};var jt0=function(a){this.networkStatusManager=a;this.isDownloaded=qiG===void 0?function(){return!1}:qiG;
this.isReady=!1;this.urW=axV(this)},axV=function(a){var z;
return _.t(function(I){if(I.nextAddress==1)return I.yield(i3p(),2);if(I.nextAddress!=3)return z=I.yieldResult,I.yield(gPw(z),3);a.fL=I.yieldResult;eBG(a.fL).then(function(){a.isReady=!0});
return I.return(a.fL)})},z7f=function(a,z,I){a.fL?(a=a.fL.fEX({hD:I,
ob1:!0,nb1:!0}),z.serviceIntegrityDimensions={poToken:a}):_.Gx(Error("oj"))};
jt0.prototype.processContext=function(a){var z=this;if(!a.input.match(_.ex(PQf)))return _.a7();var I=a.innerTubeRequest,J=I.videoId;return!J||this.isDownloaded(I)||this.networkStatusManager&&!this.fL&&!this.networkStatusManager.isNetworkAvailable()?_.a7():this.fL?this.isReady?(z7f(this,I,J),_.a7()):new eG(eBG(this.fL).then(function(){z7f(z,I,J)})):new eG(this.urW.then(function(r){return _.t(function(P){if(P.nextAddress==1)return P.yield(eBG(r),2);
z7f(z,I,J);_.nu(P)})}))};var IxZ=new _.I4("WEB_PO_CONTEXT_PROCESSOR");var JxY=function(a,z){var I=this;this.adB=0;var J;this.snT=(J=z==null?void 0:z.snT)!=null?J:window;this.networkStatusManagerPromise=z==null?void 0:z.networkStatusManagerPromise;var r;this.requestKey=(r=z==null?void 0:z.requestKey)!=null?r:_.rM("par_bir_key")||"O43z0dpjhgX20SCx4KAo";var P;this.fyL=(P=z==null?void 0:z.fyL)!=null?P:function(E){return new WV(E)};
var N;J=(N=z==null?void 0:z.ssL)!=null?N:function(E,O,f){return new qGf(E,O,f)};
this.bgChallenge=ygm(a.bgChallenge);this.ttlSeconds=kE1(ks(a.challenge||""));this.fS=J(this.requestKey,_.K("par_at_ep")?["www.youtube.com","m.youtube.com"].includes(_.IE.location.hostname)?"/api/jnn/v1/GenerateIT":"https://jnn-pa.googleapis.com/$rpc/google.internal.waa.v1.Waa/GenerateIT":"https://jnn-pa.googleapis.com/$rpc/google.internal.waa.v1.Waa/GenerateIT",a);qYd(this.fS);var u;this.peL=(u=z==null?void 0:z.peL)!=null?u:function(E){_.Sg(I.snT.document,"visibilitychange",function(){I.snT.document.visibilityState===
"visible"&&E()})}},Pjf=function(a){if(!a.vm){var z={maxAttempts:5,
tEs:a.ttlSeconds*1E3};a27(a.snT);a.vm=a.fyL({fS:a.fS,tys:{disable:_.K("html5_web_po_disable_remote_logging"),a3:"aGIf",oha:x$p("html5_web_po_experiment_ids"),csP:_.K("wpo_dis_lfdms")?0:1E3,k2i:function(J){var r=P$w.get(J);r||(r=new rLO(J),r=new uE(r),P$w.set(J,r));return r}},
tQT:z,gGP:a.bgChallenge,lE2:j9E});a.adB=Date.now();czw(a.vm,function(){a.adB=Date.now()});
$Yx(a.vm,function(){return _.t(function(J){return J.return(rxZ(a))})});
var I=a.wQP.bind(a);a.networkStatusManagerPromise&&a.ttlSeconds>0&&a.networkStatusManagerPromise.then(function(J){J.listen("publicytnetworkstatus-online",I)});
a.peL(I)}};
JxY.prototype.wQP=function(){if(Date.now()>this.adB+this.ttlSeconds*1E3){var a;(a=this.vm)==null||MTw(a)}};
var rxZ=function(a){if(a.bCw)return a.bCw;if(!a.vm)throw Error("pj");a.bCw=new RH({vm:a.vm,fS:a.fS,dMb:!0,onError:j9E});return a.bCw},I2p=function(a,z){a=new JxY(a,z);
Pjf(a);rxZ(a)};var is=function(a,z){this.store=a;this.queue=[];z==null||z.addEventListener("yt-navigate-start",this.reset.bind(this))};
is.prototype.enqueue=function(a){var z=a.command,I=a.durationMs,J=a.elementToFocus;var r=a.label;var P=a.elementToFocus;a.command?r=_.AR("EPHEMERAL_ACTION_ANNOUNCEMENT",{label:r,shortcut:_.AR("SHIFT_PLUS_ENTER")}):P&&(a=r+". "+_.AR("SHIFT_PLUS_ENTER")+" for more information.",r=_.AR("EPHEMERAL_ACTION_FOCUS_ANNOUNCEMENT",{label:r,shortcut:_.AR("SHIFT_PLUS_ENTER")},a));I={announcement:r,durationMs:I!=null?I:8E3};z?I.command=z:J&&(J.classList.add("ephemeral-action-focusable-element"),I.selector=J.tagName+
".ephemeral-action-focusable-element");this.queue.push(I);Z40(this)};
is.prototype.activate=function(a){var z=_.E5M(this.store.getState());if(z){if(z==null?0:z.command)_.DA(z.command),this.store.dispatch(j1o(null));if(z==null?0:z.selector)z=document.querySelector(z.selector),_.k91(z);a.preventDefault()}};
var Z40=function(a){if(!_.E5M(a.store.getState())&&a.queue.length){var z=a.queue.shift();z&&(a.previousAnnouncement===z.announcement&&(z.announcement+="\u00a0"),a.store.dispatch(j1o(z)),a.previousAnnouncement=z.announcement,a.timeoutId=setTimeout(function(){if(z.selector){var I;(I=document.querySelector(z.selector))==null||I.classList.remove("ephemeral-action-focusable-element")}a.store.dispatch(j1o(null));Z40(a)},z.durationMs))}};
is.prototype.reset=function(){this.timeoutId&&clearTimeout(this.timeoutId);this.store.dispatch(j1o(null));this.queue.length=0;this.timeoutId=void 0};
is[zp]=[_.mP,_.eL(_.vw)];_.xn=new _.I4("EPHEMERAL_ACTIONS_MANAGER_TOKEN");var CjZ=window.AbortController||ghe;var NOZ=new _.I4("AUTH_SERVICE_TOKEN");var P7m=_.kK(["about:blank"]),r6m;var vO=new _.I4("API_IFRAME_TOKEN"),tuE=new _.I4("FETCH_FN_TOKEN"),uGY=new _.I4("PARSE_FN_TOKEN"),EPZ=new _.I4("WINDOW_REQUEST_TOKEN"),BOE=new _.I4("TEXT_DECODER_TOKEN");var jhv;jhv=new _.I4("YT_CONFIG_FLAG_RETRIEVER_TOKEN");_.gP0=new _.I4("MISC_UI_SHARED_FLAGS_TOKEN");var O4Z=function(){};
O4Z.prototype.getFlag=function(a){if(a.configType!==2)throw Error("qj");return fxM(a)};
var fxM=function(a){switch(a.flagType){case "bool":return _.K(a.flagName);case "int":return _.X1(_.Ib(a.flagName));case "double":return _.Ib(a.flagName);case "string":return _.rM(a.flagName);case "int32_list":return x$p(a.flagName);case "int64_list":return x$p(a.flagName).map(function(z){return _.X1(z)});
case "string_list":return _.Py(a.flagName);default:throw Error("rj");}};var Gk=function(a,z,I){z=z===void 0?{}:z;o4.call(this,I===void 0?"uninitialized":I);this.env=a;this.transitions=[{from:"uninitialized",to:"initialized",action:this.init},{from:"initialized",to:"rendering",action:this.initialRender},{from:"rendering",to:"rendered",action:this.afterRenderImmediate},{from:"rendered",to:"after-render-deferred",action:this.afterRenderDeferred}];z.shouldWaitOnAsyncImmediate!==void 0&&(this.processPluginOptions.shouldWaitOnAsyncImmediate=z.shouldWaitOnAsyncImmediate)};
_.b(Gk,o4);Gk.prototype.init=function(a){var z=this,I;return _.t(function(J){if(J.nextAddress==1)return z.processPluginOptions.shouldWaitOnAsyncImmediate?J.yield(a(z.env),2):(a(z.env),J.jumpTo(2));if(J.nextAddress!=4)return z.jobSet?J.yield(z.jobSet.completedResolver.promise,4):J.jumpTo(4);I=_.yT();I.parkOrScheduleJob(function(){z.transition("rendering")},10,"ci");
_.nu(J)})};
Gk.prototype.initialRender=function(a){var z=this,I;return _.t(function(J){if(J.nextAddress==1)return z.processPluginOptions.shouldWaitOnAsyncImmediate?J.yield(a(z.env),2):(a(z.env),J.jumpTo(2));if(J.nextAddress!=4)return z.jobSet?J.yield(z.jobSet.completedResolver.promise,4):J.jumpTo(4);I=_.yT();I.parkOrScheduleJob(function(){z.transition("rendered")},10,"cr");
_.nu(J)})};
Gk.prototype.afterRenderImmediate=function(a){var z=this,I;return _.t(function(J){if(J.nextAddress==1)return z.processPluginOptions.shouldWaitOnAsyncImmediate?J.yield(a(z.env),2):(a(z.env),J.jumpTo(2));if(J.nextAddress!=4)return z.jobSet?J.yield(z.jobSet.completedResolver.promise,4):J.jumpTo(4);I=_.yT();I.parkOrScheduleJob(function(){z.transition("after-render-deferred")},10,"carml");
_.nu(J)})};
Gk.prototype.afterRenderDeferred=function(a){var z=this;return _.t(function(I){a(z.env);_.nu(I)})};var Axf;_.$S("LATEST_ECATCHER_SERVICE_TRACKING_PARAMS",{});Axf={};_.st0=(Axf.CSI=BvG(),Axf.ECATCHER=EmG(),Axf);var nPf={},K9E=(nPf.rendered={priority:0,callback:function(a){UrO(a.injector.resolve(hJ))}},nPf);var Jnd=new _.I4("SERVICE_PARAMS_RESPONSE_PROCESSOR_TOKEN"),F9f=new _.I4("SERVICE_PARAMS_CONFIG_CALLBACK_TOKEN");var H4Z=function(a){this.callbackFnMap=a;this.configMap={}};
H4Z.prototype.handleResponse=function(a){var z;if(a=(z=a.responseContext)==null?void 0:z.serviceTrackingParams)for(z=_.C(a),a=z.next();!a.done;a=z.next()){a=a.value;var I=a.params,J=a.service;if(I&&J){this.configMap[J]||(this.configMap[J]=new XMo);a=this.configMap[J];var r=void 0,P=(r=this.callbackFnMap)==null?void 0:r[J];I=_.C(I);for(J=I.next();!J.done;J=I.next())r=J.value,J=r.key,r=r.value,J&&r&&(a.set(J,r),P&&P(J,r))}}};
H4Z[zp]=[_.eL(F9f)];var b4Z=!1,s9E=0,gm7=null,A6x=null;var h7Z=new _.I4("NETWORK_SLI_TOKEN");var VuY=function(a,z,I,J,r){this.networkSli=a;this.fetchFn=z;this.parseFn=I;this.requestFn=J;this.JSC$18382_textDecoder=r};
VuY.prototype.fetch=function(a,z,I){var J=this,r,P,N;return _.t(function(u){r=QtY(J,a,z);N=(P=J.fetchFn)!=null?P:fetch;return u.return(N(r).then(function(E){return J.handleResponse(E,I)}).catch(function(E){_.Xd(E);
if((I==null?0:I.expectJsonStrict)&&E instanceof SP&&E.errorType===1)return Promise.reject(E)}))})};
var NAG=function(a,z,I,J){var r,P,N,u,E,O,f;return _.t(function(A){switch(A.nextAddress){case 1:return r=QtY(a,z,I),_.BP(A,2),A.yield(fetch(r),4);case 4:P=A.yieldResult;_.p1(A,3);break;case 2:throw _.sk(A),new SP(2,"Failed to parse streaming response",r.url);case 3:if(!P.redirected&&!P.ok)throw(N=a.networkSli)==null||N.failure(),new _.Fn("Streaming fetch request not ok",r.url);if(!P.body)throw new _.Fn("No response body in streaming response",r.url);u={};if(_.K("web_streaming_fast"))return E=P.body.getReader(),
A.return(Sai(a,E,u,J));O=P.body.pipeThrough(new TextDecoderStream).getReader();f=new _.tN;return A.return(i4f(a,O,f,OP7,u,J))}})},QtY=function(a,z,I){if(a.networkSli){var J=_.ul(_.a_(z,"key"))||"/UNKNOWN_PATH";
a.networkSli.start(J)}J=I;_.K("wug_networking_gzip_request")&&(J=LZ3(I));var r;return new ((r=a.requestFn)!=null?r:window.Request)(z,J)},Sai=function(a,z,I,J){var r,P,N,u,E,O,f,A,n,F,h;
return _.t(function(v){switch(v.nextAddress){case 1:r=a.JSC$18382_textDecoder?new a.JSC$18382_textDecoder("utf-8"):new TextDecoder("utf-8"),P="",N=function(d){d=d.trim();d.length!==0&&d!=="]"&&d!=="["?(d.startsWith("[")&&(d=d.substring(1)),d.endsWith("]")&&(d=d.slice(0,-1)),d.endsWith(",")&&(d=d.slice(0,-1)),d=d.trim()):d=void 0;if(d)try{var W=JSON.parse(d);OP7(I,W);J==null||J(I,W)}catch(l){throw new SP(1,"Failed to parse streaming response",d);}},_.BP(v,2,3);
case 5:return v.yield(z.read(),8);case 8:u=v.yieldResult;E=u.value;if(O=u.done)return P.length>0&&N(P),f=void 0,(f=a.networkSli)==null||f.success(),v.return(I);P+=r.decode(E,{stream:!0});A=P.split("\n");P=A.pop()||"";n=_.C(A);for(F=n.next();!F.done;F=n.next())h=F.value,N(h);v.jumpTo(5);break;case 3:_.Ok(v);z.releaseLock();_.Ay(v,0);break;case 2:throw _.sk(v),new SP(1,"Failed to parse streaming response");}})},i4f=function(a,z,I,J,r,P){var N,u,E,O,f,A,n,F,h;
return _.t(function(v){if(v.nextAddress==1)return v.yield(z.read(),2);N=v.yieldResult;u=N.value;if(E=N.done)return(O=a.networkSli)==null||O.success(),v.return(r);try{f=I.parse(u)}catch(d){throw new SP(1,"Failed to parse streaming response",u);}if(f!=null)for(A=_.C(f),n=A.next();!n.done;n=A.next())F=n.value,J(r,F),h=void 0,(h=P)==null||h(r,F);return v.return(i4f(a,z,I,J,r,P))})};
VuY.prototype.handleResponse=function(a,z){var I,J=(I=this.parseFn)!=null?I:JSON.parse;I=a.text().then(function(r){if((z==null?0:z.jspbResponseCtor)&&a.ok)return UL7(z.jspbResponseCtor,r);r=r.replace(")]}'","");if((z==null?0:z.expectJsonStrict)&&r)try{var P=J(r)}catch(u){throw new SP(1,"JSON parsing failed after fetch");}var N;return(N=P)!=null?N:J(r)});
a.redirected||a.ok?this.networkSli&&this.networkSli.success():(this.networkSli&&this.networkSli.failure(),I=I.then(function(r){_.Xd(new _.Fn("Error: API fetch failed",a.status,a.url,r));return Object.assign({},r,{errorMetadata:{status:a.status}})}));
return I};
VuY[zp]=[_.eL(h7Z),_.eL(tuE),_.eL(uGY),_.eL(EPZ),_.eL(BOE)];var xLZ=new _.I4("NETWORK_MANAGER_TOKEN");var vPV=[1,2,4,8,16,30],$LZ=function(a){this.frameCountInternal=0;this.brokenFrameSummarizers=[];this.maxTimeMs=a.maxTimeMs;this.maxFrameCount=a.maxFrameCount===void 0?Math.ceil(60*a.maxTimeMs/1E3):a.maxFrameCount;a=_.C(vPV);for(var z=a.next();!z.done;z=a.next())this.brokenFrameSummarizers.push(new GNM(z.value/60*1E3))},X9f=function(a){var z=a.frameCountInternal>=a.maxFrameCount;
return a.elapsedTimeMs>=a.maxTimeMs||z};
$LZ.prototype.summarize=function(){for(var a=[],z=_.C(this.brokenFrameSummarizers),I=z.next();!I.done;I=z.next())I=I.value,I=I.brokenFrameCount!==0?{severityMs:Math.round(I.targetFrameTimeMs),eventCount:I.brokenFrameCount,averageDurationBetweenEventsMs:Math.round(I.averageDurationBetweenEventsMs)}:void 0,I&&a.push(I);return{summaries:a,monitoringDurationMs:Math.round(this.elapsedTimeMs)}};
_.eH.Object.defineProperties($LZ.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 GNM=function(a){this.targetFrameTimeMs=a;this.currTimeMs=this.brokenFrameCount=0;this.timeOfLastBrokenFrameMs=this.timeOfFirstBrokenFrameMs=void 0};
_.eH.Object.defineProperties(GNM.prototype,{averageDurationBetweenEventsMs:{configurable:!0,enumerable:!0,get:function(){return this.brokenFrameCount<=1?0:(this.timeOfLastBrokenFrameMs-this.timeOfFirstBrokenFrameMs)/(this.brokenFrameCount-1)}}});var TOG=function(){};
TOG.prototype.start=function(a,z){var I=this;if(!window.requestAnimationFrame)return Promise.resolve(void 0);this.monitor&&this.stop();var J=new $LZ({maxTimeMs:a});this.monitor=J;this.lastSummaryInternal=void 0;this.metadataToLog=z;return new Promise(function(r){var P=function(N){if(N===void 0)I.stop(),r(void 0);else if(I.monitor!==J)N=Object.assign({},J.summarize(),{measurementMethod:"MEASUREMENT_METHOD_WEB_RAF_POLLING"}),r(N);else{var u=I.monitor;if(!X9f(u)){u.frameCountInternal++;if(u.prevTime===
void 0)u.startTime=N;else for(var E=N-u.prevTime,O=_.C(u.brokenFrameSummarizers),f=O.next();!f.done;f=O.next()){f=f.value;var A=f.currTimeMs;f.currTimeMs+=E;E>f.targetFrameTimeMs+2&&(f.brokenFrameCount++,f.timeOfFirstBrokenFrameMs===void 0&&(f.timeOfFirstBrokenFrameMs=A),f.timeOfLastBrokenFrameMs=A)}u.prevTime=N}X9f(I.monitor)?r(I.stop()):_.GW.addJob(P,5,0)}};
_.GW.addJob(P,5,0)})};
TOG.prototype.stop=function(a){if(!this.monitor)return this.lastSummaryInternal;var z=Object.assign({},this.monitor.summarize(),{measurementMethod:"MEASUREMENT_METHOD_WEB_RAF_POLLING"});if(z.monitoringDurationMs){a=a!=null?a:this.metadataToLog;var I={droppedFramesSummary:z,name:"MANUAL_MEASUREMENT_NAME_AMBIENT_MODE_IDLE"};a&&(I[a.type]=a.data);_.x0("manualSmoothnessMeasurement",I)}this.monitor=void 0;this.lastSummaryInternal=z;this.metadataToLog=void 0;return z};_.dLe=new _.I4("MAIN_THREAD_DFE_CAPTURER_AMBIENT_MODE_IDLE_TOKEN");var W94;W94=function(a){this.JSC$18405_expiringStorage=new bl(a)};
_.oPV=function(a){if(_.nm0()&&(a=_.sUd(_.n1()+"::"+a)))return new W94(a)};
W94.prototype.set=function(a,z,I){I=I!==void 0?Date.now()+I:void 0;this.JSC$18405_expiringStorage.set(a,z,I)};
W94.prototype.get=function(a){return this.JSC$18405_expiringStorage.get(a)};
W94.prototype.remove=function(a){this.JSC$18405_expiringStorage.remove(a)};var ULZ=new _.I4("SESSION_STORAGE");_.$n=function(){};
_.$n.getInstance=function(){var a=_.DH("ytglobal.storage_");a||(a=new _.$n,_.qe("ytglobal.storage_",a));return a};
_.$n.prototype.estimate=function(){var a,z,I;return _.t(function(J){a=navigator;return((z=a.storage)==null?0:z.estimate)?J.return(a.storage.estimate()):((I=a.webkitTemporaryStorage)==null?0:I.queryUsageAndQuota)?J.return(KLp()):J.return()})};
_.qe("ytglobal.storageClass_",_.$n);var S23=0;var TvG=!1;var DLY=_.kK(["https://fonts.googleapis.com/css?family=Roboto:300italic,400italic,500italic,700italic"]),R7f=_.kK(["https://fonts.googleapis.com/css?family=Roboto+Mono:400"]);var mOZ={"/":_.VT,"/?feature=ytca":_.VT,"/feed/downloads":_.cBO};var g0=function(a,z,I){this.JSC$18421_upliftPromise=a;this.store=z;this.JSC$18421_persistentStorePromiseAccessor=I};
g0.prototype.shouldPreferLocalResponse=function(a){return a.browseId==="FEdownloads"||a.browseId==="FEsmart_downloads"&&_.K("kevlar_modern_downloads_page")?!0:!1};
g0.prototype.localInnertubeResponse=function(a){var z=this;return _.t(function(I){return a.browseId==="FEdownloads"?_.K("kevlar_modern_downloads_page")?I.return(L90(z)):I.return(lxV(z)):a.browseId==="FEsmart_downloads"&&_.K("kevlar_modern_downloads_page")?I.return(p90(z)):I.return(Promise.reject(Error("tj")))})};
g0.prototype.canProvideFallbackResponse=function(){return!0};
g0.prototype.localFallbackInnertubeResponse=function(a){var z=this,I,J,r;return _.t(function(P){switch(P.nextAddress){case 1:return P.yield(z.JSC$18421_persistentStorePromiseAccessor(),2);case 2:I=P.yieldResult;if(a.browseId!=="SPaccount_downloads"||!I){P.jumpTo(3);break}return P.yield(Yix(I),4);case 4:if(J=P.yieldResult)return P.return(_.Iv(J));case 3:return a.browseId==="FEwhat_to_watch"?P.return(w9V(z)):(r=_.K("web_offline_continuation_automatic_retry")||_.K("web_offline_continuation_retry_button"))&&
a.continuation?P.return(mLZ(z)):P.return(yxM(z))}})};
var w9V=function(a){var z;return _.t(function(I){if(I.nextAddress==1)return I.yield(a.JSC$18421_upliftPromise,2);z=_.VK$(a.store.getState().entities);return z.length?I.return(kNV(a,z)):I.return(yxM(a))})},lxV=function(a){var z,I;
return _.t(function(J){if(J.nextAddress==1)return J.yield(a.JSC$18421_upliftPromise,2);if(J.nextAddress!=3)return z=MuZ([{offlineItemSectionRenderer:{}}]),J.yield(cxi(a,z),3);I=J.yieldResult;I.onResponseReceivedActions=[nc("REFRESH_DOWNLOADS")];return J.return(I)})},L90=function(a){var z,I,J,r,P,N,u,E,O,f,A,n,F,h,v,d;
return _.t(function(W){if(W.nextAddress==1)return W.yield(a.JSC$18421_upliftPromise,2);if(W.nextAddress!=3)return z=a.store.getState(),I=z.entities,J=_.xp(I),r=_.vd(I),P=_.IGm(z),N=_.zGp(z),u=_.JKx(z),E=_.iJE(I),O=_.b8(J),f=_.Gg(I),A=_.$_I(I),n=_.Pr1(z),F=_.Wd(z),h={twoColumnBrowseResultsRenderer:{tabs:[{tabRenderer:{selected:!0,content:{richGridRenderer:Object.assign({},_.ulE(J,r,E,A,P,N,O,f,u,n,F),{entitySelectorType:"RICH_GRID_ENTITY_SELECTOR_TYPE_DOWNLOADS"})}}}]}},v="",_.K("kevlar_modern_downloads_skip_downloads_title")||
(v=_.AR("DOWNLOADS",void 0,"Downloads")),W.yield(Yaf(a,h,v),3);d=W.yieldResult;d.onResponseReceivedActions=[nc("REFRESH_DOWNLOADS")];return W.return(d)})},p90=function(a){var z,I,J,r,P,N,u,E,O;
return _.t(function(f){if(f.nextAddress==1)return f.yield(a.JSC$18421_upliftPromise,2);if(f.nextAddress!=3)return z=a.store.getState(),I=z.entities,J=_.xp(I),r=_.b8(J),P=_.Gg(I),N={twoColumnBrowseResultsRenderer:{tabs:[{tabRenderer:{selected:!0,content:{richGridRenderer:Object.assign({},_.Bb0(J),{entitySelectorType:"RICH_GRID_ENTITY_SELECTOR_TYPE_SMART_DOWNLOADS"})}}}]}},u=_.AR("SMART_DOWNLOADS",void 0,"Smart downloads"),E=Nb3(r,P),f.yield(Yaf(a,N,u,E),3);O=f.yieldResult;O.onResponseReceivedActions=
[nc("REFRESH_DOWNLOADS")];return f.return(O)})},yxM=function(a){var z,I;
return _.t(function(J){if(J.nextAddress==1)return J.yield(zO(a.JSC$18421_upliftPromise,a.store),2);z=J.yieldResult;I=MuZ([yZ0(z)]);return J.return(cxi(a,I))})},mLZ=function(a){var z,I,J,r;
return _.t(function(P){if(P.nextAddress==1)return z={},I=a.store.getState().continuation.continuationCommand,_.$N(z,_.R5,I),P.yield(zO(a.JSC$18421_upliftPromise,a.store,z,"BACKGROUND_PROMO_STYLE_TYPE_ADAPTIVE_FULL_HEIGHT"),2);J=P.yieldResult;r={};_.$N(r,_.TZi,{continuationItems:[{richSectionRenderer:{content:{backgroundPromoRenderer:J}}}],targetId:"browse-feedFEwhat_to_watch"});return P.return({responseContext:{},onResponseReceivedActions:[r]})})},MuZ=function(a){return{twoColumnBrowseResultsRenderer:{tabs:[{tabRenderer:{selected:!0,
content:{sectionListRenderer:{contents:a}}}}]}}},kNV=function(a,z){var I,J;
return _.t(function(r){var P={contents:Kc(z)};I=P&&P.contents?P:{};_.K("kevlar_modern_downloads_page")&&(I=Object.assign({},_.gwM(z),{entitySelectorType:"RICH_GRID_ENTITY_SELECTOR_TYPE_HOME_DOWNLOADS"}));J={twoColumnBrowseResultsRenderer:{tabs:[{tabRenderer:{selected:!0,content:{richGridRenderer:I}}}]}};return r.return(cxi(a,J))})},cxi=function(a,z){var I,J;
return _.t(function(r){if(r.nextAddress==1)return r.yield(a.JSC$18421_persistentStorePromiseAccessor(),2);if(r.nextAddress!=3)return I=r.yieldResult,r.yield(JI(I),3);J=r.yieldResult;return r.return({responseContext:{},contents:z,topbar:J})})},Yaf=function(a,z,I,J){var r,P;
return _.t(function(N){if(N.nextAddress==1)return N.yield(a.JSC$18421_persistentStorePromiseAccessor(),2);if(N.nextAddress!=3)return r=N.yieldResult,N.yield(JI(r),3);P=N.yieldResult;var u=N.return;var E=I;var O=J;E=E===void 0?"":E;O=O===void 0?"":O;E={content:{pageHeaderViewModel:{title:{dynamicTextViewModel:{text:{content:E}}},actions:{flexibleActionsViewModel:{actionsRows:[{actions:[{buttonViewModel:{title:_.AR("SETTINGS",void 0,"Settings"),accessibilityText:_.AR("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:_.aU("SPaccount_downloads","/account_downloads",6827,"WEB_PAGE_TYPE_SETTINGS")},loggingDirectives:{clientVeSpec:{uiType:21412}}}}]}]}},metadata:{contentMetadataViewModel:{metadataRows:[{metadataParts:[{text:{content:O}}]}]}},rendererContext:{loggingContext:{loggingDirectives:{clientVeSpec:{uiType:176034}}}}}},pageTitle:E};
return u.call(N,{responseContext:{},contents:z,topbar:P,header:{pageHeaderRenderer:E}})})};var qaf=function(){this.moduleRegistry={};this.fetchCount=0};
qaf.prototype.isFetching=function(){return this.fetchCount>0};
var Dy=function(a,z){a.moduleRegistry[z.toString()]={asyncId:z,isFetching:!1};return a};
qaf.prototype.JSC$18432_loadModules=function(){for(var a=this,z=new Map,I=[],J=_.C(_.dO.apply(0,arguments)),r=J.next();!r.done;r=J.next()){r=r.value;var P=this.moduleRegistry[r];P?P.resolver?z.set(r,P.resolver):(P.resolver=new _.EM,z.set(r,P.resolver),I.push(P.asyncId),P.isFetching=!0):(P=new _.EM,z.set(r,P),P.resolve(void 0))}I.length&&(this.fetchCount+=1,_.QD(_.gr.getMultipleAsync.apply(_.gr,_.ih(I)).then(function(N){for(var u=0;u<I.length;u++){var E=N[u],O=a.moduleRegistry[I[u].toString()];O.isFetching=
!1;O.resolver.resolve(E)}}).catch(function(N){for(var u=_.C(I),E=u.next();!E.done;E=u.next()){E=E.value;
var O=a.moduleRegistry[E.toString()];O.resolver=void 0;O.isFetching=!1;z.get(E.toString()).reject(N)}}),function(){--a.fetchCount}));
return Promise.all([].concat(_.ih(z.values())).map(function(N){return N.promise}))};_.Rv=new _.I4("MODULE_REGISTRY_TOKEN");var e7Y={},aI4=(e7Y.rendered={priority:0,callback:function(a){a:{var z=void 0;try{var I;b:{if(_.COx()){var J=_.AW0(_.n1()+"::pom");if(J){var r=new XS(J);break b}}r=void 0}var P=(I=r)==null?void 0:I.get("role_text");if(!P)break a;z={updatePermissionRoleCommand:{renderer:{permissionRoleBottomBarRenderer:{status:{runs:[{text:P}]}}}}}}catch(E){}z&&a.injector.resolve(_.j6).resolveCommand(z)}try{var N=window.sessionStorage.getItem("POM_ACK_FEEDBACK_ENDPOINT");if(N){var u=JSON.parse(N);window.sessionStorage.removeItem("POM_ACK_FEEDBACK_ENDPOINT");
u&&a.injector.resolve(_.j6).resolveCommand(u)}}catch(E){}}},e7Y);var jlZ,zEY={},IIY=(zEY.initialized={priority:10,callback:function(){jlZ=bg()}},zEY.rendering={callback:function(a){var z;
return _.t(function(I){if(I.nextAddress==1)return I.yield(jlZ,2);z=I.yieldResult;if(!z.endpoint)throw Error("vj`"+_.IE.location.href);vq(a,z);_.nu(I)})}},zEY);var Jy0={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(_.ih(_.K("web_pip_minimize_breakages")?[{messageRegExp:/.*__shady_dispatchEvent.*/,weight:0}]:[]),[{messageRegExp:/ytsignals missing/,weight:500},{messageRegExp:/MutationObserver is not defined/,
weight:100},{messageRegExp:/Cannot call 'patch'/,weight:500},{messageRegExp:/ShadyDOM.patch is not a function/,weight:500},{messageRegExp:/Illegal invocation/,weight:500},{messageRegExp:/no such interface supported/,weight:500},{messageRegExp:/play.*request was interrupted/,weight:500},{messageRegExp:/Failed to .* ServiceWorker.*/,weight:500},{messageRegExp:/Cannot call 'onIdle'/,weight:500},{messageRegExp:/Failed to sanitize attribute of <div>: <div style="--nx:82;">/,weight:500},{messageRegExp:/(DOMPurify|vid_mate_check) is not defined/,
weight:0},{messageRegExp:/A network error occurred/,weight:500},{messageRegExp:/Ticking CPT when CPT already ticked/,weight:100},{messageRegExp:/Unexpected end of .*(input|data)/,weight:500},{messageRegExp:/JSON .* unexpected/,weight:500},{messageRegExp:/Unexpected token </,weight:500},{messageRegExp:/^undefined$/,weight:500},{messageRegExp:/The YouTube player is not attached to the DOM/,weight:500},{messageRegExp:/Malformed continuation/,weight:500},{messageRegExp:/Offset is outside the bounds of the DataView/,
weight:500},{messageRegExp:/Cannot call 'push'/,weight:0},{messageRegExp:/.*push is not a function/,weight:0},{messageRegExp:/.*\.find is not a function/,weight:0},{messageRegExp:/Cannot redefine property: BetterJsPop/,weight:0},{messageRegExp:/cdn.paddle.com/,weight:0},{messageRegExp:/^network error$/,weight:0},{messageRegExp:/Cannot read property 'snippet'.*/,weight:0},{messageRegExp:/Cannot read property 'insertBefore'.*/,weight:0},{messageRegExp:/The play method is not allowed by the user agent or the platform in the current context, possibly because the user denied permission./,
weight:0},{messageRegExp:/Unhandled action/,weight:100},{messageRegExp:/UrlEndpoint should not be used for same origin navigations. Use a better typed endpoint instead./,weight:100},{messageRegExp:/VisibilityLogger called before newScreen/,weight:1E3},{messageRegExp:/BL:ULB/,weight:500},{messageRegExp:/Failed to retrieve emoji manager initial JSON data/,weight:100},{messageRegExp:/Endpoint supplied is invalid/,weight:100},{messageRegExp:/Cannot read property 'polyfillWrapFlushCallback'.*/,weight:500},
{messageRegExp:/unblocked44.ml.*/,weight:0},{messageRegExp:/Failed to fetch/,weight:500},{messageRegExp:/.*API fetch failed.*/,weight:1E3},{messageRegExp:/No RequestBuilder for endpoint/,weight:100},{messageRegExp:/.*Failed to initialize Tango client in CommentsInvalidation.*/,weight:100},{messageRegExp:/.*redefine.*property.*adPlacements/,weight:1E3},{messageRegExp:/ownerObj.base is undefined/,weight:1E3},{messageRegExp:/History popstate has no state/,weight:500},{messageRegExp:/ReadableStream uploading is not supported/,
weight:1E3},{messageRegExp:/bad trailing UTF-8 byte .* doesn't match the pattern 0b10xxxxxx/,weight:1E3},{messageRegExp:/b172965563/,weight:1E3},{messageRegExp:/UrlEndpoint should not be used for same origin navigations/,weight:1E3},{messageRegExp:/Fetching RunAttestationCommand returned falsy/,weight:100},{messageRegExp:/WEBCHANNEL_NETWORK_ERROR/,weight:100},{messageRegExp:/urlForEndpoint used on client endpoint/,weight:1E3},{messageRegExp:/InnerTubeTransportService is already initialized/,weight:100},
{messageRegExp:/Cannot redefine property: userAgent/,weight:500},{messageRegExp:/(ResizeObserver loop limit exceeded)|(ResizeObserver loop completed with undelivered notifications)/,weight:500},{messageRegExp:/undefined is not an object \(evaluating 'this.manager'\).*/,weight:500},{messageRegExp:/_0x22d63b is not defined/,weight:500},{messageRegExp:/Cannot call '1'/,weight:500},{messageRegExp:/.*Wanteeed.*/,weight:0},{messageRegExp:/.*WtdRoot*/,weight:0},{messageRegExp:/.*Constructing wtd-root:*/,
weight:0},{messageRegExp:/.*WtdDiv.*/,weight:0},{messageRegExp:/.*Failed to execute 'appendChild'.*/,weight:0},{messageRegExp:/.*TypeError: a is not a constructor'.*/,weight:0},{messageRegExp:/.*Readwise.*/,weight:0},{messageRegExp:/.*Form is either loading or already opened*/,weight:0},{messageRegExp:/.*wtd-div.*/,weight:0},{messageRegExp:/.*Blocked a frame with origin "https:\/\/www.youtube.com" from accessing a cross-origin frame.*/,weight:0},{messageRegExp:/.*disguiseToken.*/,weight:0},{messageRegExp:/Identifier 'YTNonstop' has already been declared/,
weight:1E3},{messageRegExp:/Cannot read properties of undefined (reading 'setTimeout')/,weight:0},{messageRegExp:/undefined is not an object \(evaluating 'this.\w+.setTimeout'\)/,weight:0},{messageRegExp:/BWB:Timeout/,weight:0},{messageRegExp:/NWA/,weight:0},{messageRegExp:/This document requires '((TrustedHTML)|(TrustedScript)|(TrustedScriptURL))' assignment/,weight:0},{messageRegExp:/The constructed element must not have any attributes/,weight:100},{messageRegExp:/runtime.browser/,weight:500},{messageRegExp:/Cannot call 'registerMenuCommand'/,
weight:500},{messageRegExp:/__data is undefined/,weight:0},{messageRegExp:/.*ddg-ctl-placeholder-blocked*/,weight:1E3}]),callbackWeights:[{callback:function(a){var z=a.stack;if(z.includes("chrome://")||z.includes("chrome-extension://")||a.message.includes("chrome-extension://")||z.includes("moz-extension://")||z.includes("local.adguard.org")||z.includes("auctioneer3.50million.club")||z.includes("youtubedownloader")||z.includes("youtube_home_page")||z.includes("is_youtube_video_no_longer_available")||
z.includes("switchScreenSizeHack")||z.includes("yt_main_big_banner.js")||z.includes("YouTubeCenter.js")||z.includes("/mytube.js")||z.includes("JSON.parseWrapper")||z.includes("/inj_js/common.js")||z.includes("firebug-lite")||z.includes(".repl.co/")||z.includes("linkfix")||z.includes("playAfterAd")||a.message.includes("Access is denied for this document")&&z.includes("<anonymous>")||a.fileName==="user-script"||a.message.includes("cannot be created in a document with origin 'https://www.youtube.com' and URL 'about:blank'")&&
z.includes("<anonymous>"))return!0;if(z.includes("https://www.youtube.com"))return!1;a=z.split("\n");if(!a.length)return!1;if(a.length<=3&&z.includes("s.onloadeddata"))return!0;z=0;for(var I=_.C(a),J=I.next();!J.done;J=I.next())J=J.value,(J.includes("https://")||J.includes("http://"))&&z++;return z/a.length>.95},
weight:0},{callback:function(a){return a.message==="Unknown Error"&&a.name.indexOf("NS_")===0},
weight:100},{callback:function(a){if(!_.NS)return!1;var z=a.message.indexOf("\uba54\ubaa8\ub9ac \ub9ac\uc18c\uc2a4\uac00 \ubd80\uc871\ud558\uae30 \ub54c\ubb38\uc5d0 \uc774 \uc791\uc5c5\uc744 \uc644\ub8cc\ud560")===0||a.message.includes("available to complete this operation"),I=a.stack.includes("webcomponents")&&a.message==="Object doesn't support this action";a=a.message.includes("object that does not implement interface Element");return z||I||a},
weight:0},{callback:function(a){return a.message==="Illegal invocation"&&navigator.userAgent.includes("Trident")&&navigator.vendor==="Google Inc."},
weight:0},{callback:function(a){return a.message==="Operation is not supported"&&(a.stack.match(/textinputassistant/g)||[]).length>=5},
weight:500},{callback:function(a){return a.stack.includes("eval code (eval (code:1:1)")||a.stack.includes("Object.my_load [as load] ")},
weight:0},{callback:function(a){return a.message.includes("Permission denied")&&a.stack.includes("this.domHandler")?!0:a.name.includes("TypeError")&&a.stack.includes("/www-searchbox")&&navigator.userAgent.includes("Trident")},
weight:500},{callback:function(a){if(!a.stack)return!1;var z=a.stack.trim().split("\n");z.length&&z[0].endsWith("Error: "+a.message)&&z.shift();z.length&&z[z.length-1].includes("at window.onerror (")&&z.pop();if(!z.length)return!0;if(a.message==="Script error.")return z[0].includes("www.youtube.com")||z.length>=2&&z[0].startsWith("at new")&&z[1].startsWith("at window.onerror");if(a.message==="Unexpected token")return!0;a=_.C(z);for(z=a.next();!z.done;z=a.next())if(z=z.value,!(z.includes("<anonymous>")||
z.startsWith("load@")||z.startsWith("global code@")||z.startsWith("@https://")))return!1;return!0},
weight:500},{callback:function(a){return a.message==="Cannot read property 'experiments'"&&a.stack.includes("/s/player/")},
weight:500},{callback:function(a){return a.message.includes("must not have attributes")&&navigator.userAgent.includes("Vivaldi")},
weight:500},{callback:function(a){return a.stack.includes("/embed.js")?(a.params&&a.params&&(a.params.name="56"),!0):!1},
weight:1},{callback:function(){if(_.K("use_error_suppression"))var a=_.Xw("SUPPRESS_CLIENT_ERRORS",!1);else{if(a=_.gL)a=/Chrome\/(\d+)/.exec(_.fG()),a=(a?parseFloat(a[1]):NaN)>=66;a=!(a||_.Bb&&_.EB(65)||_.Wy&&_.EB(12.1)||cy&&_.EB(79))}return a},
weight:500}]};var ryZ={},PhV=(ryZ.initialized={priority:10,callback:function(a){a.injector.addProvider({provide:IWj,useValue:a.root});a.injector.addProvider({provide:dEZ,useValue:EcI});a.injector.addProvider({provide:WXM,useValue:Jy0});var z={};a.injector.addProvider((z.provide=oGG,z.useFactory=function(I,J){return function(){uvI(I,J)}},z[zp]=[dEZ,
WXM],z));a.injector.addProvider({provide:bQ,useClass:bQ})}},ryZ);var ZuZ={},ChE=(ZuZ.initialized={priority:3,callback:function(){var a;if(a=txx()){a=a.replace("/",".");var z=_.Kt();z.set("tz",a);z.save();a=!0}else a=!1;a||(a=_.Kt(),a.set("utco",-Math.floor((new Date).getTimezoneOffset())),a.save())}},ZuZ);var NVE={},tdV=(NVE.initialized={priority:10,callback:function(a){a.injector.resolve(bQ).start();a=_.m1();var z=_.TZ("IS_HOMEPAGE_COLD")&&"MAIN_APP_WEB_PAGE_TYPE_BROWSE"||_.TZ("IS_WATCH_PAGE_COLD")&&"MAIN_APP_WEB_PAGE_TYPE_WATCH"||_.TZ("IS_RESULTS_PAGE_COLD")&&"MAIN_APP_WEB_PAGE_TYPE_SEARCH"||_.TZ("IS_SHORTS_PAGE_COLD")&&"MAIN_APP_WEB_PAGE_TYPE_SHORTS"||"MAIN_APP_WEB_PAGE_TYPE_UNKNOWN";_.tI(_.dJM(),{mainAppWeb:Object.assign({},a,{pageType:z})});_.tI(oQ7(),{mainAppWeb:Object.assign({},a,{pageType:z})});
_.tI(UJO(),{mainAppWeb:a});_.tI(DJm(),{mainAppWeb:a});YwE(function(){_.ug(UJO(),"FAILURE");_.ug(DJm(),"FAILURE")});
c6p();Y2d();q3p()}},NVE);var uXY={},Exe=(uXY.initialized={priority:10,callback:function(){if(document.readyState==="complete")_.Xz("dl"),_.yT().processSignal("pcl");else{var a=function(){_.Xz("dl");_.yT().processSignal("pcl");window.removeEventListener("load",a)};
window.addEventListener("load",a)}}},uXY);var BVf={},gxZ=(BVf.rendering={priority:0,callback:function(){var a=_.yT();a.parkOrScheduleJob(function(){a.processSignal("eocs")},10,"eor",5E3)}},BVf);var OuE=function(){};
_.b(OuE,wW);
OuE.prototype.resolveCommand=function(a,z){var I,J,r,P,N,u,E,O;return _.t(function(f){r=(I=_.H(a,_.QJO))==null?void 0:(J=I.dialog)==null?void 0:J.commentReplyDialogRenderer;if(!r)throw new _.Fn("No dialog in createCommentReplyDialogEndpoint");N=(P=z.form)==null?void 0:P.event;if(!N)throw new _.Fn("Event not passed in when resolving command");u=_.C(N.composedPath());for(E=u.next();!E.done;E=u.next())if(O=E.value,O.tagName==="YTD-COMMENT-ACTION-BUTTONS-RENDERER"||O.tagName==="YTD-COMMENT-ENGAGEMENT-BAR")return O.showReplyDialog(r),f.return();
_.nu(f)})};var Xf=function(a){this.pageRequestService=a;this.JSC$18447_prefetchCoordinator=HlZ()};
_.b(Xf,wW);Xf.prototype.resolveCommand=function(a){var z=this,I,J,r,P;return _.t(function(N){if(N.nextAddress==1){I=_.H(a,Pcf);if((J=I)==null||!J.taskId)throw Error("wj");r=I.taskId;_.BP(N,2);return N.yield(_.J5J(z.pageRequestService,a,{},"").then(function(u){if(!u)throw Error("xj");},function(u){throw Error("yj`"+u);
}),4)}if(N.nextAddress!=2)return VIV(z.JSC$18447_prefetchCoordinator,r),_.p1(N,0);
P=_.sk(N);us(z.JSC$18447_prefetchCoordinator,r,P);_.nu(N)})};
Xf[zp]=[Hq];var Tk=function(a){this.innertubeTransportService=a};
_.b(Tk,wW);Tk.prototype.resolveCommand=function(a){var z=this,I,J;return _.t(function(r){I=_.H(a,Jqe);if(I.settingItemIdForClient==="AUTONAV_FOR_SIGN_OUT"||I.settingItemIdForClient==="AUTONAV_FOR_DESKTOP")J=I.boolValue?2:1,_.PS.getInstance().setState(J,!0,!0);return r.yield(_.y7(z.innertubeTransportService,a),0)})};
Tk[zp]=[_.dY];var dH=function(a){this.innertubeTransportService=a};
_.b(dH,wW);dH.prototype.resolveCommand=function(a){var z=this,I,J;return _.t(function(r){I=_.H(a,Q4f);if(!I)return r.return();J=[];I.contentCommand&&J.push(_.y7(z.innertubeTransportService,I.contentCommand));I.watchCommand&&J.push(_.y7(z.innertubeTransportService,I.watchCommand));return r.yield(Promise.all(J),0)})};
dH[zp]=[_.dY];var WO={},fIZ=(WO.addToPlaylistEndpoint=eE(oe),WO.addToToastAction=eE(Lq),WO.adsControlFlowOpportunityReceivedCommand=eE(ny),WO.audioTrackSelectActionCommand=eE(KdZ),WO.backgroundAudioPlaybackCommand=eE(ew),WO.captionLanguageSelectActionCommand=eE(aS),WO.captionPickerEndpoint=eE(jA),WO.changeMiniAppPlayStateCommand=eE(Uv),WO.changeTimelyActionVisibilityCommand=eE(RS),WO.channelCreationFormEndpoint=eE(G_),WO.clearLocationCommand=eE(W1),WO.clearUrlParamCommand=eE(DQ),WO.copyLinkCommand=eE(ZM),WO.copyTextEndpoint=
eE(H1),WO.createCommentReplyDialogEndpoint=Rc1(OuE),WO.createPlaylistServiceEndpoint=eE(Cq),WO.dismissDialogEndpoint=eE(Ly),WO.dismissPlayerOverlayCommand=eE(zF),WO.entityUpdateCommand=eE(hF),WO.feedbackEndpoint=eE(Sw),WO.getAnswerCommand=eE(G3Z),WO.getPaymentsClientTokenCommand=eE(wA),WO.getTranscriptEndpoint=eE(lW),WO.googlePaymentBillingCommand=eE(mp),WO.googlePaymentPurchaseManagerCommand=eE(yZ),WO.hideEngagementPanelEndpoint=eE(lD),WO.hideSnackbarCommand=eE(Xi),WO.insertRichSectionCommand=eE(XA),
WO.learningJourneyCanvasCommand=eE(dH),WO.listMutationCommand=eE(T_),WO.logGtmCommand=eE($C),WO.notifyDropdownOptionSelectedCommand=eE(Re),WO.openAdAllowlistInstructionCommand=eE(_.Ky),WO.openOnePickAddVideoModalCommand=eE(Nz),WO.persistSubscriptionsDisplayPreferencesCommand=eE(OV),WO.pingingEndpoint=eE(FA),WO.playlistEditEndpoint=eE(uW),WO.playlistVotingRefreshPopupCommand=eE(EV),WO.profileCardCommand=eE(sv),WO.refreshPanelEndpoint=eE(py),WO.saveImageToDeviceEndpoint=eE(bD),WO.scrollToSectionEndpoint=
Rc1($O4),WO.seekToVideoTimestampCommand=eE(IS),WO.selectCountryCommand=eE(fq),WO.setCookieCommand=eE(AO),WO.setLocalStorageCommand=eE(dA),WO.setPrefStorageEntryCommand=eE(nq),WO.setSettingEndpoint=eE(Tk),WO.sfvAudioItemPlaybackCommand=eE(JO),WO.shareImageCommand=eE(Kq),WO.sharingProviderDataCommand=eE(Fi),WO.showAudioTrackPickerActionCommand=eE(xOe),WO.showCaptionLanguageSelectActionCommand=eE(rA),WO.showDialogCommand=eE(yv),WO.showEngagementPanelEndpoint=eE(MG),WO.showSheetCommand=eE(c1),WO.showSnackbarCommand=
eE(TF),WO.showTransientPlayerScrimOverlayCommand=eE(P2),WO.submitFormWithValidationFlowCommand=eE(v1),WO.talkToRecsDeselectCommand=eE(W2),WO.talkToRecsNextCommand=eE(oS),WO.talkToRecsSelectCommand=eE(UV),WO.talkToRecsUpdateTextCommand=eE(DM),WO.toggleEngagementPanelCommand=eE(YC),WO.undoFeedbackEndpoint=eE(xC),WO.updateEngagementPanelContentCommand=eE(qG),WO.updateUrlParamCommand=eE(pq),WO.verifyCommand=eE(G_),WO.webNativeShareCommand=eE(H2),WO.webSubmitFormCommand=eE(B2),WO.ACK_PLAYABLES_3P_DATA_CONSENT=
eE(bW),WO.CANCEL_NAVIGATION=eE(hO),WO.COPY_SHARE_URL=eE(VZ),WO.MINI_APP_EXIT_DIALOG_SEEN=eE(SA),WO.MINI_APP_OPEN_URL=eE(QZ),WO.REQUEST_MINI_APP_FULLSCREEN=eE(iW),WO.RESUME_NAVIGATION=eE(xD),WO.SHARE_PLAYABLE_WITH_HIGH_SCORE=eE(v2),WO.TELL_US_WHY=eE(iD),WO);_.K("web_enable_prefetching_videos_on_home")&&(fIZ.prefetchWatchCommand=eE(Xf),fIZ.registerTasksCommand=eE(BO));_.K("enable_share_panel_navigation_logging_fix_on_web")&&(fIZ.shareEntityServiceEndpoint=eE(wm));var Eeo=Object.assign({},fIZ);var Ay4={},slZ=(Ay4.initialized={priority:10,callback:za1},Ay4);var nx0={},K6M=(nx0.initialized={callback:function(a){var z={},I={};NHE().install((z.document_disposed={callback:function(){_.K("finalize_all_timelines")?rNG():vA();OYx("FOREGROUND_HEARTBEAT_TRIGGER_ON_BACKGROUND");_.KCi();var J=a.injector.resolve(bQ);J.intervalId!==void 0&&(J.intervalId&&_.GW.cancelJob(J.intervalId),J.intervalId=void 0,--J.currentPartitionIndex,J=wOe(J),J>0&&YTI({mainAppWeb:_.m1(),survivalSli:{partitionMinute:J,survivalStatus:"SURVIVAL_STATUS_TYPE_CENSORED"}}));lsl(YF);qy!=null&&
qy.flush();Za&&Za.snapshotAndFlush();J=_.C(P$w.values());for(var r=J.next();!r.done;r=J.next())r.value.snapshotAndFlush()}},z),(I.flush_logs={callback:function(){_.va()}},I))}},nx0);var F6M={},HuY=(F6M.rendered={priority:0,callback:function(){var a=new XWi;a.increment("STARTED");if(_.Xw("LOGGED_IN")&&!_.Xw("IS_DBSC",!1)&&_.Xw("SERVER_VERSION")!=="test"&&_.Xw("SERVER_VERSION")!=="dev"&&!EGw()&&!u1f()){a.increment("EXECUTING");var z=document.createElement("iframe");z.style.display="none";_.JyO(z,2,_.XG("https://accounts.youtube.com/RotateCookiesPage?origin=https://www.youtube.com&yt_pid="+_.Xw("INNERTUBE_CONTEXT_CLIENT_NAME")));document.body&&document.body.appendChild(z);a.increment("DONE")}}},
F6M);var buV={},hEz=(buV.rendered={callback:function(){HlZ().resume()}},buV);var VdZ={acknowledgeChannelTouStrikeCommand:VK(Hi),addToPlaylistServiceEndpoint:VK(Vf),addToPlaylistEndpoint:VK(Vf),addUpcomingEventReminderEndpoint:VK(Wi),browseEndpoint:VK(Pw0),channelCreationFormEndpoint:VK(O$),channelCreationServiceEndpoint:VK(fi),claimLegacyYoutubeChannelEndpoint:VK(z1),clearSearchHistoryEndpoint:VK(xb),clearWatchHistoryEndpoint:VK(vi),commerceActionCommand:QK(yf),createBackstagePostEndpoint:VK(c2),createBroadcastCommand:VK(o2),createCommentEndpoint:VK(uX),createCommentReplyEndpoint:VK(tS),
createLiveChatPollEndpoint:VK(U$),createPlaylistServiceEndpoint:VK(Qf),crossAccountChannelTransferEndpoint:VK(XL),deleteLiveChatMessageCommand:VK(Dd),deletePlaylistEndpoint:VK(S9),deleteVideoEndpoint:VK(lx),dismissalEndpoint:VK(bX),feedbackEndpoint:VK(hS),flagEndpoint:VK(XP),getAccountSwitcherEndpoint:VK($b),verifyCommand:VK(Mz),getAccountsListInnertubeEndpoint:VK(dl),getCommentsFromInboxCommand:VK(CP),getDownloadActionCommand:VK(OZ),getFlowCommand:QK(iX),getKidsBlocklistPickerCommand:VK(TT),getNotificationMenuEndpoint:VK(Nfe),
getPaymentInstrumentsParamsCommand:VK(e9),getPaymentsClientTokenCommand:QK(yf),getPdgBuyFlowCommand:VK(bx),getReportFormEndpoint:VK(d9),getSearchInVideoCommand:VK(UZ),getAnswerCommand:VK(oI),getSurveyCommand:VK(LP),getTranscriptEndpoint:VK(w9),getPostVideoPreviewEndpoint:VK(qz),decorateMessageEndpoint:VK(YD),likeEndpoint:VK(AS),liveChatActionEndpoint:VK(pi),liveChatEndpoint:VK(lX),liveChatItemContextMenuEndpoint:VK(R2),liveChatPurchaseMessageEndpoint:VK(wl),liveChatReplayEndpoint:VK(Li),manageLiveChatUserEndpoint:VK(yk),
metadataUpdateCommand:VK(Pz),moderateLiveChatEndpoint:VK(kb),modifyChannelNotificationPreferenceEndpoint:VK(EZ),notificationOptOutEndpoint:VK(Bz),openSuperStickerBuyFlowCommand:VK(m$),performCommentActionEndpoint:VK(Zd),playlistEditEndpoint:VK(x4),playlistEditorEndpoint:VK(ix),recordNotificationInteractionsEndpoint:VK(g9),reelWatchEndpoint:VK(vz),refreshPanelEndpoint:VK(Ai),removeUpcomingEventReminderEndpoint:VK(Ma),resolveLocationCommand:VK(r9),revealBusinessEmailCommand:VK(I2),searchEndpoint:VK(_.tIZ),
sendLiveChatMessageEndpoint:VK(II),sendLiveChatVoteEndpoint:VK(Ji),setSettingEndpoint:VK(s$),shareEntityServiceEndpoint:QK(FL),sharingProviderDataCommand:VK(RI),showEngagementPanelEndpoint:VK(sZ),showMoreDrawerCommand:VK(KP),showSheetCommand:VK(FP),showDialogCommand:VK(nP),subscribeEndpoint:VK(ni),transcriptSubmitCaptionCorrectionCommand:VK(pP),undoFeedbackEndpoint:VK(Qk),unsubscribeEndpoint:VK(Ki),updateBackstagePostEndpoint:VK(a2),updateCommentEndpoint:VK(Bi),updateCommentReplyEndpoint:VK(E$),updateCommentsSettingsEndpoint:VK(gl),
updateCreatorChannelInnertubeCommand:VK(rl),updateKidsBlacklistEndpoint:VK(Wz),updateEngagementPanelContentCommand:VK(Hz),updatePdgFeatureEnablementCommand:VK(hi),updatedMetadataEndpoint:VK(ZB),validateChannelHandleCommand:VK(Pi),updateChannelPageSettingsEndpoint:VK(JS),verifyAgeEndpoint:VK(SU),watchEndpoint:QK(Hw),whitelistEditEndpoint:VK(mM),ypcCancelRecurrenceEndpoint:VK(k4),ypcCompleteTransactionEndpoint:VK(Mt),ypcFixInstrumentEndpoint:VK(Y4),ypcGetCartEndpoint:VK(cz),ypcGetOffersEndpoint:VK(qt),
ypcHandleTransactionEndpoint:QK(ag),ypcLogWalletAnalyticDataEndpoint:VK(jO),ypcOffersEndpoint:VK(zk),ypcPauseSubscriptionCommand:VK(Ig),ypcRedeemCodeEndpoint:VK(Js),ypcResumeSubscriptionCommand:VK(rH),ypcUpdateFopEndpoint:VK(Y4)},og={},QlG=(og.GET_ACCOUNT_MENU=VK(T1),og.GET_NOTIFICATIONS_MENU=VK(Cwf),og.GET_NOTIFICATIONS_INBOX=VK(Nt),og.GET_UNSEEN_NOTIFICATION_COUNT=VK(ux),og.GET_USER_MENTION_SUGGESTIONS=VK(eA),og.LOAD_GUIDE=VK(Zle),og.SUBMIT_FEEDBACK=VK(Vk),og),UU={},SkZ=(UU.CONTINUATION_REQUEST_TYPE_BROWSE=
VK(jU),UU.CONTINUATION_REQUEST_TYPE_SEARCH=VK(DB),UU.CONTINUATION_REQUEST_TYPE_WATCH_NEXT=VK(hK),UU.CONTINUATION_REQUEST_TYPE_ACCOUNTS_LIST=VK(G1),UU.CONTINUATION_REQUEST_TYPE_COMMENTS_NOTIFICATION_MENU=VK(Na),UU.CONTINUATION_REQUEST_TYPE_COMMENT_REPLIES=VK(Ci),UU.CONTINUATION_REQUEST_TYPE_REEL_WATCH_SEQUENCE=VK($4),UU.CONTINUATION_REQUEST_TYPE_GET_PANEL=VK(fP),UU),iuY={player:QK(Hw),watchNext:VK(br)},xRz={player:QK(Hw),reelItemWatch:VK(vz),reelWatchSequence:VK(GT)},vx0={watchEndpoint:QK(Vb)},GjE=
{commandEndpointMap:VdZ,signalEndpointMap:QlG,continuationEndpointMap:SkZ,watchEndpointMap:iuY,reelWatchEndpointMap:xRz,streamingEndpointMap:vx0};var $Re,XPe,TVM;_.dRV=((XPe=($Re=window).matchMedia)==null?void 0:(TVM=XPe.call($Re,"(prefers-reduced-motion: reduce)"))==null?void 0:TVM.matches)||!document.startViewTransition;var W6Z={},oxM={disableAllTransitions:_.dRV,ignoredErrors:(W6Z.DOCUMENT_HIDDEN=!0,W6Z.WINDOW_SIZE_CHANGED=!0,W6Z.SAFARI_ABORTED_BY_NEW_TRANSITION=!0,W6Z),transitionConfigs:new Map([["slide",{defaultViewTransitionOptions:{shouldWrap:!0,skipTransitionTimeoutMs:500}}],["lockup-to-watch",{defaultViewTransitionOptions:{shouldWrap:!0,skipTransitionTimeoutMs:500}}],["watch-next-appears",{defaultViewTransitionOptions:{shouldWrap:!0,skipTransitionTimeoutMs:200}}],["learning-journey",{defaultViewTransitionOptions:{shouldWrap:!0,
skipTransitionTimeoutMs:600}}]])};var UR4=_.kK("\n          :root {\n            --ytd-vtm-exit-ms: ,ms;\n            --ytd-vtm-wait-ms: ,ms;\n            --ytd-vtm-enter-ms: ,ms;\n            --ytd-vtm-watch-exit-ms: ,ms;\n            --ytd-vtm-watch-wait-ms: ,ms;\n            --ytd-vtm-watch-enter-ms: ,ms;\n          }\n      ".split(",")),DR4=function(a){this.viewTransitionCoordinator=a;this.isBrowseTransitionEnabled=_.rM("web_page_transition_type")==="slide";this.isLockupToWatchTransitionEnabled=_.K("web_thumbnail_to_watch_transition");
this.isLockupThumbnailRegistrationEnabled=_.K("web_thumbnail_to_watch_transition_register_thumbnail");this.isLearningJourneyTransitionEnabled=_.K("enable_plj_landing_page");this.isAnyTransitionEnabled=this.isBrowseTransitionEnabled||this.isLockupToWatchTransitionEnabled||this.isLearningJourneyTransitionEnabled;this.lockupThumbnailRegisteredFromWatchEndpoint=!1;this.registerRootElement();if(this.isAnyTransitionEnabled){a=_.Ib("web_page_transition_exit_ms");var z=_.Ib("web_page_transition_wait_ms"),
I=_.Ib("web_page_transition_enter_ms"),J=_.Ib("web_page_transition_watch_exit_ms"),r=_.Ib("web_page_transition_watch_wait_ms"),P=_.Ib("web_page_transition_watch_enter_ms");if(!isNaN(a)||!isNaN(z)||!isNaN(I))if(a=v8p(UR4,a,z,I,J,r,P))z=document.createElement("style"),z.textContent=NVi(a),document.head.appendChild(z)}};
DR4.prototype.registerRootElement=function(){if(this.isAnyTransitionEnabled){var a={};this.viewTransitionCoordinator.registerElement(document.documentElement,(a.slide="root-slide",a["lockup-to-watch"]="root-lockup-to-watch",a["learning-journey"]="root-learning-journey",a))}};
_.B5X=function(a,z){a.isLockupToWatchTransitionEnabled&&a.isLockupThumbnailRegistrationEnabled&&(a.registeredLockupThumbnail?a.lockupThumbnailRegisteredFromWatchEndpoint?_.Xd(new _.Fn("Lockup thumbnail registration order is incorrect.")):_.Xd(new _.Fn("Lockup thumbnail already registered.")):(a.registeredLockupThumbnail=z,_.REe(a,z)))};
_.REe=function(a,z){var I={};a.viewTransitionCoordinator.registerElement(z,(I["lockup-to-watch"]="lockup-thumbnail-lockup-to-watch",I),!0)};
DR4[zp]=[QZM];var I6p={data:void 0,previousButtonDisabled:!1,nextButtonDisabled:!1,shortsPreviewThumbnail:void 0,shortsData:void 0,externalPlaylistData:void 0,toastData:void 0,playabilityStatus:void 0,isDisabled:!1,isReadyToResume:!1,watchWhile:!1,playerVe:void 0,expandVe:void 0,closeVe:void 0,readyToResumeVe:void 0,readyToResumeCloseVe:void 0,repositionVe:void 0,resizeVe:void 0};var r8G=["videoPrimaryInfoRenderer","title"],PL$=["videoSecondaryInfoRenderer","owner","videoOwnerRenderer","title"];var L6i;L6i=[{metadataBadgeRenderer:{icon:{iconType:"PREMIUM_STANDALONE_CAIRO"}}}];_.lIY=_.ec(function(a){a=_.q3(a,{data:void 0,playlistData:void 0,expanded:!1,onExpandClick:void 0,isReadyToResume:!1});var z=a.data,I=a.playlistData,J=a.expanded,r=a.onExpandClick,P=a.isReadyToResume,N=function(){var f;return!((f=I())==null||!f.contents)},u=function(){var f=I();
return f&&f.totalVideos&&f.currentIndex!==void 0?f.currentIndex+1+" / "+f.totalVideos:""};
a=_.g4(function(){_.Dp(_.ab().resolve(_.UJ));return!1});
var E=_.g4(function(){N()&&r&&r()}),O={};
return _.B("ytd-miniplayer-info-bar",{class:_.B8("ytdMiniplayerInfoBarHost",(O.ytdMiniplayerInfoBarHasPlaylistData=N,O)),"on:click":E},_.B("div",{class:"ytdMiniplayerInfoBarContent"},_.B("h1",{class:"ytdMiniplayerInfoBarTitle","on:click":a},_.B(_.xs,{text:function(){var f=z();var A=I();if(A==null?0:A.contents){var n;f=(n=_.Pf7(A))==null?void 0:n.title}else f=f==null?void 0:f.miniplayerTitle;return ZDI(f)},
noEndpoints:!0,ellipsisTruncate:!0})),_.B("div",{class:"ytdMiniplayerInfoBarSubtitle"},_.B(_.g,{cond:P,then:function(){return _.B(jjw,{className:"ytdMiniplayerInfoBarPremiumBadge",badges:L6i})}}),_.B("h1",null,_.B(_.xs,{className:"ytdMiniplayerInfoBarSubtitleText",
text:function(){var f=z();var A=I();f=P()?{simpleText:_.AR("CONTINUE_WATCHING",void 0,"Continue watching")}:(A==null?0:A.contents)?A.titleText:f==null?void 0:f.miniplayerSubtitle;return ZDI(f)},
noEndpoints:!0,ellipsisTruncate:!0})),_.B(_.g,{cond:function(){return!!u()&&!P()},
then:function(){return _.B("div",{class:"ytdMiniplayerInfoBarPlaylistIndex"},_.B("span",{class:"ytdMiniplayerInfoBarPlaylistIndexTextDivider"},"\u2022"),_.B("span",null,u))}}))),_.B(_.g,{cond:N,
then:function(){return _.B("div",{class:"ytdMiniplayerInfoBarExpand"},_.B(_.f_,{data:function(){return{style:"mono",type:"text",state:"active",iconPosition:"icon-only",size:"M",onTap:function(f){r&&(r(),f.stopPropagation())}}},
iconName:function(){return J()?"miniplayer:keyboard-arrow-down":"miniplayer:keyboard-arrow-up"}}))}}))},"Oe");var pPV;pPV=_.ec(function(a){return _.B("div",{class:"ytdMiniplayerPlayerContainerDisabledClose"},_.B(_.f_,{data:function(){return{style:"overlay-dark",type:"tonal",state:"active",iconPosition:"icon-only",size:"S",onTap:a.onTap}},
iconName:"yt-icons:close"}))},"Pe");
_.wPE=_.ec(function(a){a=_.q3(a,{playabilityStatus:void 0,isDisabled:!1});var z=a.size,I=a.playabilityStatus,J=a.isDisabled,r=_.Mm("div");a=_.C(_.CW(void 0,void 0,"bJr0Se"));var P=a.next().value,N=a.next().value;a=_.o5(_.NA);var u=!1,E=function(){return z().height<=0};
_.h2(function(){var n=z(),F=E(),h=P();h&&!F&&h.setInternalSize(n.width,n.height)},"OUOyKb");
_.hD(function(){var n,F,h;return _.t(function(v){if(v.nextAddress==1){n=_.ab().resolve(_.UJ);F=n.getPlayerElement();if(!n.isMiniplayerActive()||!F||!r.value)return v.return();F.appendTo(r.value);return v.yield(F.getPlayerPromise(),2)}h=v.yieldResult;h.setSizeStyle(!1,!0);N(h);_.nu(v)})});
_.V3(function(){O()});
_.h2(function(){var n=P();if(n)if(J()){var F=n.getPlayerState();(u=F===-1||F===1||F===3)&&n.pauseVideo()}else O()},"KKHe5");
var O=function(){if(u){u=!1;var n;(n=P())==null||n.playVideo()}},f=_.g4(function(){_.Dp(_.ab().resolve(_.UJ))}),A={};
return _.B("ytd-miniplayer-player-container",{class:_.B8("ytdMiniplayerPlayerContainerHost",(A.ytdMiniplayerPlayerContainerHidden=E,A.ytdMiniplayerPlayerContainerHostShortsPip=a,A)),style:_.sW({width:function(){return z().width+"px"},
height:function(){return z().height+"px"}})},_.B("div",{id:"player-container",
class:"ytdMiniplayerPlayerContainerPlayerContainer",el:r}),_.B(_.g,{cond:function(){return!!I()&&!_.DPi(I())},
then:function(){return _.B(Bww,{className:"ytdMiniplayerPlayerContainerPlayabilityError",compact:!0,data:function(){var n;return((n=I())==null?void 0:n.errorScreen)||null},
status:function(){var n;return((n=I())==null?void 0:n.status)||null}})}}),_.B(_.g,{cond:J,
then:function(){return _.B("div",{class:"ytdMiniplayerPlayerContainerDisabled","on:click":f},_.B(pPV,{onTap:function(){_.ab().resolve(_.UJ).close()}}))}}))},"Qe");_.mRE=_.ec(function(a){var z=a.toastData;var I=_.Mm("ytd-miniplayer-toast");a=_.C(_.Af(function(){return!!z()}));
var J=a.next().value,r=a.next().value;a=_.C(_.CW(!1,void 0,"xkrBze"));var P=a.next().value,N=a.next().value,u=function(){var f;return _.cd((f=z())==null?void 0:f.data.title)};
_.QO(function(){_.p$.requestAvailability();z()&&r(!1)});
var E,O;_.h2(function(){J()&&(_.PA(I.value,"iron-announce",{text:z().label+" "+u()}),E&&_.GW.cancelJob(E),E=_.GW.addLowPriorityJob(function(){N(!0)},2500))},"OTdL1e");
_.h2(function(){P()&&(O&&_.GW.cancelJob(O),O=_.GW.addLowPriorityJob(function(){r(!1);N(!1)},300))},"yybqib");
a={};return _.B("ytd-miniplayer-toast",{el:I,class:_.B8("ytdMiniplayerToastHost",(a.ytdMiniplayerToastOpening=function(){return J()},a.ytdMiniplayerToastClosing=function(){return P()},a))},_.B(_.g,{cond:function(){var f;
return(f=z())==null?void 0:f.data},
then:function(f){return _.B(E9J,{className:"ytdMiniplayerToastThumbnail",data:f,width:78})}}),_.B("div",{class:"ytdMiniplayerToastInfo"},_.B("div",{class:"ytdMiniplayerToastLabel"},function(){var f;
return(f=z())==null?void 0:f.label}),_.B("div",{class:"ytdMiniplayerToastTitle"},u)))},"Re");var A8M;var KRE=null;var kji=_.ec(function(a){var z=a.progressState;var I=a.multiMarkersPlayerBarRenderer;var J=a.progressBarWidth;var r=function(){return ham(I())},P=function(){return SKE(z())},N=function(){return J()*(z().playedTime/z().videoDuration)};
return _.B("yt-chaptered-progress-bar-line",{class:"ytChapteredProgressBarHost"},_.B(_.se,{each:r},function(u,E){return _.B(yy0,{modifiedProps:P,chapters:r,index:E,playedProgressWidth:N,backgroundGradientPosition:function(){var O=P(),f=r(),A=E(),n=N();return(O.playedTime-Wq(_.H(f[A],d0)))/O.playedTime*n}})}))},"Se"),yy0=_.ec(function(a){var z=a.modifiedProps;
var I=a.chapters;var J=a.index;var r=a.playedProgressWidth;var P=a.backgroundGradientPosition;a={};a=_.B8("ytChapteredProgressBarChapteredPlayerBarChapter",(a.ytChapteredProgressBarChapteredPlayerBarChapterIsScrubbing=function(){return N().isScrubbing},a.ytChapteredProgressBarHoveredMacroMarker=function(){return N().scrubberHovering},a.ytChapteredProgressBarChapteredPlayerBarChapterSeen=function(){return N().videoPosition==="seen"},a));
var N=function(){return iDd(z(),I(),J())},u=function(){var E=z();
var O=I(),f=J();if(iDd(E,O,f).videoPosition!=="active")E=0;else{var A=Wq(_.H(O[f],d0));E=(E.playedTime-A)/((Wq(_.H(O[f+1],d0))||E.videoDuration)-A)}return E};
return _.B("div",{class:a,style:_.sW({width:function(){var E=z(),O=I(),f=J(),A=_.H(O[f],d0);O=_.H(O[f+1],d0);return(O?Wq(O)-Wq(A):E.videoDuration-Wq(A))/E.videoDuration*100+"%"},
"background-color":function(){a:{var E=N();switch(E.videoPosition){case "pending":E=E.scrubberHovering?"white":"rgba(255, 255, 255, 0.35)";break a;case "active":E=E.scrubberHovering?"white":"rgba(255, 255, 255, 0.35)";break a;default:E=""}}return E},
"background-size":function(){return(xDp(N())?r():"")+"px"},
"background-position-x":function(){return(xDp(N())?P():"")+"px"}})},_.B("div",{class:"ytChapteredProgressBarChapteredPlayerBarLoaded",
style:function(){var E=z(),O=I(),f=J();if(iDd(E,O,f).videoPosition==="seen")var A=0;else A=Wq(_.H(O[f],d0)),O=Wq(_.H(O[f+1],d0))||E.videoDuration,E=E.videoDuration*E.percentLoaded,A=O<=E?1:A>=E?0:(E-A)/(O-A);return"width: "+A*100+"%"}}),_.B("div",{class:"ytChapteredProgressBarChapteredPlayerBarFill",
style:_.sW({width:function(){return u()*100+"%"},
"background-size":function(){return(xDp(N(),u())?r():"")+"px"},
"background-position-x":function(){return(xDp(N(),u())?P():"")+"px"}})}))},"Te");var MdV=function(a,z){z=z===void 0?rEX:z;var I,J=[],r,P=!1;return function(){var N=_.dO.apply(0,arguments);if(P&&I===this&&z(N,J))return r;r=a.apply(this,N);P=!0;I=this;J=N;return r}}(function(a){var z=a.heatMarkers,I=a.minHeightDp===void 0?0:a.minHeightDp,J=a.maxHeightDp===void 0?60:a.maxHeightDp;
var r=r===void 0?!1:r;var P=1E3/z.length;a=[];a.push({x:0,y:100});for(var N=0;N<z.length;N++){var u=void 0,E=((u=_.H(z[N],C4O))==null?void 0:u.heatMarkerIntensityScoreNormalized)||0;u=(N+.5)*P;E=100-_.TO(E*100,I/321*100,J/321*100);N!==0||r||a.push({x:0,y:E});a.push({x:u,y:E});N===z.length-1&&a.push({x:1E3,y:E})}a.push({x:1E3,y:100});z="";for(I=0;I<a.length;I++)r=a[I],I===0?r="M "+r.x.toFixed(1)+","+r.y.toFixed(1):(J=o5m(a[I-1],a[I-2],r),P=o5m(r,a[I-1],a[I+1],!0),r=" C "+(J.x.toFixed(1)+","+J.y.toFixed(1)+
" "+P.x.toFixed(1)+","+P.y.toFixed(1)+" "+r.x.toFixed(1)+","+r.y.toFixed(1))),z+=r;return z});var cy4=_.ec(function(a){var z=a.progressBarProps;var I=a.config;var J={};a=_.B8("ytHeatSeekerHost",(J.ytHeatSeekerHighContrast=a.highContrast,J));var r=function(){return EWp(I().chapterData)};
return _.B("yt-progress-bar-heatseeker",{class:a,style:function(){var P;return"height: 320px; display: "+(z().isDragging&&((P=r())==null?0:P.heatMarkers)?"block":"none")}},_.B(_.g,{cond:r,
then:function(P){return _.B(_.g,{cond:function(){return P().heatMarkers},
then:function(){return _.B("svg",{width:"100%",height:"320px",viewBox:"0 0 1000 100",preserveAspectRatio:"none"},_.B("path",{d:function(){return MdV(P())}}))},
debugInstance:"Gji0Se"})},
debugInstance:"iVTXwf"}))},"Ue");var Ykz=_.ec(function(a){var z=a.progressBarProps;var I=a.config;a={};a=_.B8("ytProgressBarLineProgressBarLine",(a.ytProgressBarLineProgressBarLineRounded=function(){return I().rounded},a.ytProgressBarLineProgressBarLineBottomInset=function(){return I().position===2},a));
return _.B("yt-progress-bar-line",{class:"ytProgressBarLineHost"},_.B("div",{class:a},_.B("div",{class:"ytProgressBarLineProgressBarBackground"}),_.B("div",{class:"ytProgressBarLineProgressBarLoaded",style:function(){return"width: "+z().percentLoaded*100+"%"}}),_.B("div",{class:"ytProgressBarLineProgressBarHovered",
style:function(){var J=z();return"width: "+(J.videoDuration?_.TO(J.hoveredTime/J.videoDuration,0,1):0)*100+"%"}}),_.B("div",{class:"ytProgressBarLineProgressBarPlayed",
style:function(){return"width: "+Nkd(z())*100+"%"}})))},"Ve");
Ykz.idomCompat=!0;var qkE=_.ec(function(a){var z=a.progressBarProps;var I=a.playheadData;var J=a.interpolateDotPosition;var r=a.hidePlayhead;a={};var P=_.B8("ytProgressBarPlayheadProgressBarPlayheadDot",(a.ytProgressBarPlayheadProgressBarPlayheadDotLarge=function(){return z().isDragging},a.ytProgressBarPlayheadProgressBarPlayheadDotHide=function(){return!z().isDragging&&r()},a));
return _.B("yt-progress-bar-playhead",{class:"ytProgressBarPlayheadHost",style:_.sW({"margin-left":function(){return t5O(z())*100+"%"},
transform:function(){return"translateX(-"+(J()?t5O(z())*12:6)+"px)"}})},_.B(_.g,{cond:function(){var N;
return(N=_.Yi(I)())==null?void 0:N.playheadImage},
then:function(N){var u={};return _.B("div",{class:_.B8("ytProgressBarPlayheadProgressBarPlayheadCustom",(u.ytProgressBarPlayheadProgressBarPlayheadCustomLarge=function(){return z().isDragging},u.ytProgressBarPlayheadProgressBarPlayheadCustomHide=function(){return!z().isDragging&&r()},u)),
style:_.sW({"transform-origin":function(){return(J()?t5O(z())*20:10)+"px center"}})},_.B(_.qp,{data:N,
alt:"","aria-hidden":"true"}))},
else:function(){return _.B("div",{class:P,style:_.sW({"transform-origin":function(){return(J()?t5O(z())*12:6)+"px center"}})})}}))},"We");
qkE.idomCompat=!0;var Rg=function(a,z,I,J,r,P){this.getProgressBarRect=a;this.updateProgressBarRect=z;this.getFilmstripYPosition=I;this.setFineScrubbingDraggedTime=J;this.updateFilmStripDraggedYDistance=r;this.resetFilmStripYOffset=P;this.startPosition=null;this.controlsWereVisibleBeforeDragging=this.isDraggedForFineScrubbing=this.hasDraggedTheMinimumDistance=!1;this.seekThrottle=new _.kc(this.onThrottledSeek,100,this)},eE0=function(a,z,I){return function(J){a.handleClick(J,z(),I())}},zt0=function(a,z){return function(I){amE(a,
I,jNV(I),z())}},Im0=function(a,z){return function(I){amE(a,I,{x:I.clientX,
y:I.clientY},z())}},rzG=function(a,z,I){return function(J){var r=z(),P=I();
JzZ(a,J,jNV(J),r,P,!0);if(P.onTouchMove)P.onTouchMove(r)}},ZBV=function(a,z,I){return function(J){PpE(a,J,z(),I())}},Cpi=function(a,z){return function(){a.handleMouseLeave(z())}},NJe=function(a,z,I){return function(){var J=z(),r=I();
Lj(a,J,r);if(r.onTouchEnd)r.onTouchEnd(J)}},tTG=function(a,z,I){return function(){var J=z(),r=I();
Lj(a,J,r);if(r.onTouchEnd)r.onTouchEnd(J)}},umZ=function(a,z,I){return function(){Lj(a,z(),I())}},E8Y=function(a){return function(z){if(z.keyCode===39||z.keyCode===38){var I,J;
(I=a())==null||(J=I.playerApi)==null||J.seekBy(5,void 0,void 0,72)}else if(z.keyCode===37||z.keyCode===40){var r,P;(r=a())==null||(P=r.playerApi)==null||P.seekBy(-5,void 0,void 0,71)}}},BJZ=function(a,z,I){return function(J){!I().disableScrubbing&&a.startPosition&&PpE(a,J,z(),I())}},g8f=function(a,z,I){return function(){if(!I().disableScrubbing)if(a.startPosition){var J=z(),r=I();
Lj(a,z(),I());if(r.onTouchEnd)r.onTouchEnd(J)}else z().setState({isDragging:!1})}},jNV=function(a){a=a.touches[0];
return{x:a.clientX,y:a.clientY}},PpE=function(a,z,I,J){if(z.buttons!==1){if(z.movementX||z.movementY)z.preventDefault(),z.stopPropagation(),a=OBi(a,I,z.clientX),I.setState({isHovering:!0,
hoveredTime:a*I.videoDuration})}else fm0(I),JzZ(a,z,{x:z.clientX,y:z.clientY},I,J,!1)};
Rg.prototype.handleMouseLeave=function(a){fm0(a)};
var fm0=function(a){a.isHovering&&a.setState({isHovering:!1,hoveredTime:0})},amE=function(a,z,I,J){a.startPosition||(a.startPosition=I,a.updateProgressBarRect(),a.controlsWereVisibleBeforeDragging=J.controlsVisible,z.stopPropagation(),_.K("medium_progress_bar_modification")||z.preventDefault())},JzZ=function(a,z,I,J,r,P){if(a.startPosition)if(P&&r.isInlinePlayback&&a.startPosition&&!a.hasDraggedTheMinimumDistance&&Math.abs(I.y-a.startPosition.y)>Math.abs(I.x-a.startPosition.x))Lj(a,J,r);
else if(z.preventDefault(),z.stopPropagation(),J.videoDuration&&(a.startPosition&&!a.hasDraggedTheMinimumDistance&&(a.hasDraggedTheMinimumDistance=Math.abs(I.x-a.startPosition.x)>=1),r.enableFineScrubbing&&(a.startPosition&&(a.isDraggedForFineScrubbing=-(I.y-a.startPosition.y)>=60),!a.startPosition||I.y>=a.startPosition.y||(J.setState({fineScrubbingActiveState:"dragging",filmStripXDistance:vWi(J.draggedTime,J,r.chapterData)}),a.setFineScrubbingDraggedTime(J.draggedTime),a.updateFilmStripDraggedYDistance(a.startPosition.y,
I.y,J))),a.hasDraggedTheMinimumDistance)){z=OBi(a,J,I.x);if(a.isDraggedForFineScrubbing){var N;(N=J.playerApi)==null||N.pauseVideo();J.setState({fineScrubbingActiveState:"on",fineScrubbingEnteredTime:J.draggedTime,filmStripXDistance:vWi(z*J.videoDuration,J,r.chapterData)})}r.enableFineScrubbing&&(!r.enableFineScrubbing||a.getFilmstripYPosition(J)<68)||J.setState({draggedTime:z*J.videoDuration,controlsVisible:!0,isDragging:!0,shouldWaitToHideControls:a.controlsWereVisibleBeforeDragging});var u;(u=
r.cancelAutohideControlsFn)==null||u.call(r)}},Lj=function(a,z,I){var J=I.enableFineScrubbing&&z.fineScrubbingActiveState!=="off";
if(z.isDragging||J){J={isDragging:!1,playedTime:z.draggedTime,controlsVisible:a.controlsWereVisibleBeforeDragging};I.enableFineScrubbing&&z.fineScrubbingActiveState!=="on"&&(a.resetFilmStripYOffset(),J.fineScrubbingActiveState="off");var r=r===void 0?KRE:r;var P=_.TX(0);if(P&&r){var N=Math.round(z.playedTime*1E3),u=Math.round(z.draggedTime*1E3);N>2147483647||u>2147483647||_.kA(P,r,"INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK",{seekData:{startMediaTimeMs:String(N),endMediaTimeMs:String(u),seekSource:"SEEK_SOURCE_SLIDE_ON_SCRUBBER_BAR"}})}z.setState(J);
a.seekThrottle.fire(z.draggedTime,z,7);_.K("mweb_new_progress_bar_play_on_seek")&&a.resumeVideo(z);I.unmuteOnSeek&&(I=z.playerApi,z.volumeMuted&&(I==null||I.unMute()))}else z.setState({controlsVisible:!z.controlsVisible}),(P=I.triggerAutohideControlsAfterDelayFn)==null||P.call(I);a.startPosition=null;a.hasDraggedTheMinimumDistance=!1;a.isDraggedForFineScrubbing=!1;a.controlsWereVisibleBeforeDragging=!1};
Rg.prototype.handleClick=function(a,z,I){this.updateProgressBarRect();a.stopPropagation();a=OBi(this,z,a.clientX)*z.videoDuration;z.setState({playedTime:a});if(z.playerState!==2){var J;(J=I.triggerAutohideControlsAfterDelayFn)==null||J.call(I)}this.seekThrottle.fire(a,z,7)};
var OBi=function(a,z,I){a=a.getProgressBarRect(z);return _.TO(0,(I-a.left)/a.width,1)};
Rg.prototype.resumeVideo=function(a){if(a.draggedTime<a.videoDuration){var z;(z=a.playerApi)==null||z.playVideo()}};
Rg.prototype.onThrottledSeek=function(a,z,I){if(z=z.playerApi){var J;if((J=z.getVideoData())==null?0:J.isLive)J=this.getProgressState(z),a+=(J==null?void 0:J.seekableStart)||0;z.seekTo(a,void 0,void 0,void 0,I)}};
Rg.prototype.getProgressState=function(a){var z=a==null?void 0:a.getPresentingPlayerType();return a==null?void 0:a.getProgressState(z)};var n8Z,sN4,KO4,HBG,Azz,bB0,hte,VTZ,QNZ;n8Z=_.ec(function(a){var z=a.progressBarProps;var I=a.config;var J=a.progressBarWidthPx;var r=a.chapterData;var P=dD3(z,function(){return I().isShortsPage}),N=function(){return!z().isHovering&&!I().isShortsPage};
a={};var u=_.B8("ytPlayerStoryboardHost","ytPlayerStoryboardHostBigboard",(a.ytPlayerStoryboardHostMwebShorts=function(){return I().isShortsPage&&!1},a));
return _.B("yt-player-storyboard",null,_.B(_.g,{cond:function(){return z().isDragging||z().isHovering},
then:function(){return _.B(_.g,{cond:P,then:function(E){return _.B(_.g,{cond:N,then:function(){return _.B("div",{class:u,"aria-hidden":"true"},_.B(Azz,{props:z,config:I,isBigboard:!0,chapterData:r}))},
else:function(){return _.B(sN4,{props:z,frame:E,config:I,progressBarWidthPx:J,chapterData:r})}})}})}}))},"Xe");
_.FOZ=_.ec(function(a){var z=a.progressBarProps;var I=dD3(z,a.isShortsPage);return _.B("yt-player-big-storyboard",{class:"ytPlayerStoryboardBigboardWrapper"},_.B(_.g,{cond:function(){return z().isDragging||z().isHovering},
then:function(){return _.B(_.g,{cond:I,then:function(J){return _.B(KO4,{frame:J,props:z,isBigboard:!0})}})}}))},"Ye");
sN4=_.ec(function(a){var z=a.props;var I=a.frame;var J=a.config;var r=a.progressBarWidthPx;a=a.chapterData;var P={};P=_.B8("ytPlayerStoryboardHost",(P.ytPlayerStoryboardHostMwebShorts=function(){return J().isShortsPage&&!1},P.ytPlayerStoryboardHostInlinePlayer=function(){return J().isInlinePlayer},P.ytPlayerStoryboardHostFadeIn=function(){return J().useFadeInAnimation},P));
return _.B("div",{class:P,"aria-hidden":"true",style:function(){var N=z(),u=Gup(I()),E=r();N=$Di(N)/N.videoDuration;var O=E*N,f=u/2+6;u=E-(u/2+6);return"left: "+(O<=f?f/E*100:O>=u?u/E*100:N*100)+"%"}},_.B(_.g,{cond:function(){var N=z();
return!(J().isShortsPage&&N.videoDuration<15)},
then:function(){return _.B(KO4,{frame:I,props:z,isBigboard:!1})}}),_.B(Azz,{props:z,
config:J,isBigboard:!1,chapterData:a}))},"Ze");
KO4=_.ec(function(a){var z=a.frame;var I=a.props;var J=a.isBigboard;var r=function(){var u,E;return(E=(u=I().playerApi)==null?void 0:u.getVideoContentRect())!=null?E:{width:0,height:0}},P=function(){return Gup(z())},N=function(){var u=z();
return u?u.height/u.rows:0};
a={};a=_.B8((a.ytPlayerStoryboardBigboardImageWrapper=J,a.ytPlayerStoryboardStoryboardImageWrapper=function(){return!J()},a));
return _.B("div",{class:a,style:function(){return"width: "+(J()?r().width:P())+"px; height: "+(J()?r().height:N())+"px;"}},_.B(HBG,{frame:z,
storyboardWidth:P,storyboardHeight:N,storyboardScale:function(){return(J()?r().width:P())/P()}}))},"$e");
HBG=_.ec(function(a){var z=a.frame;var I=a.storyboardWidth;var J=a.storyboardHeight;var r=a.storyboardScale;var P=function(){var N=z().row,u=z().column,E=I(),O=J(),f=r();return{left:-u*E*f,top:-N*O*f}};
return _.B("img",{src:function(){return z().url},
class:"ytPlayerStoryboardStoryboardImage",alt:"preview-image",style:function(){return"left: "+P().left+"px; top: "+P().top+"px; width: "+z().width*r()+"px; height: "+z().height*r()+"px;"}})},"af");
Azz=_.ec(function(a){var z=a.props;var I=a.config;var J=a.isBigboard;var r=a.chapterData;a={};a=_.B8("ytPlayerStoryboardMetadata",(a.ytPlayerStoryboardMetadataBigboard=J,a));return _.B("div",{class:a},_.B(_.g,{cond:J,then:function(){return _.B(_.eJ,null,_.B(bB0,{props:z,config:I}),_.B(_.g,{cond:function(){a:{var P=z();var N=I(),u=r(),E;if((N==null?0:N.activeChapter)&&((E=_.H(N==null?void 0:N.activeChapter,d0))==null?0:E.title))P=!0;else{N=_.C(Bkm(u));for(N=N.next();!N.done;N=N.next()){P=(N=_.H(N.value,
tYo))&&XRd(P,N);break a}P=!1}}return P},
then:function(){return _.B(hte,{props:z,config:I,isBigboard:!0,chapterData:r})}}))},
else:function(){return _.B(_.eJ,null,_.B(hte,{props:z,config:I,isBigboard:!0,chapterData:r}),_.B(bB0,{props:z,config:I}))}}))},"bf");
bB0=_.ec(function(a){var z=a.props;var I=a.config;a={};a=_.B8("ytPlayerStoryboardTimestamp",(a.ytPlayerStoryboardTimestampShorts=function(){return I().isShortsPage},a.ytPlayerStoryboardTimestampIsHovering=function(){return z().isHovering||I().isShortsPage&&!0},a));
return _.B("div",{class:a},_.B(_.eJ,null,function(){return _.Tkm($Di(z()))}))},"cf");
hte=_.ec(function(a){var z=a.props;var I=a.config;var J=a.isBigboard;var r=a.chapterData;a={};J=_.B8("ytPlayerStoryboardTitle",(a.ytPlayerStoryboardTitleBigboard=J,a));return _.B("div",{class:J},_.B(_.g,{cond:function(){return!I().isShortsPage},
then:function(){return _.B(VTZ,{props:z,activeChapter:function(){return I().activeChapter},
chapterData:r})}}))},"df");
VTZ=_.ec(function(a){var z=a.props;var I=a.activeChapter;var J=a.chapterData;return _.B(_.eJ,null,_.B(_.se,{each:function(){return Bkm(J())},
keyBy:"INDEX"},function(r){return _.B(_.eJ,null,_.B(_.g,{cond:function(){return _.H(r(),tYo)&&XRd(z(),_.H(r(),tYo))},
then:function(){return _.B(QNZ,{timedMarker:function(){return _.H(r(),tYo)}})}}))}),_.B(_.g,{cond:function(){var r;
return I()&&((r=_.H(I(),d0))==null?void 0:r.title)},
then:function(r){return _.B(_.xs,{text:r,noPreWrap:!0})}}))},"ef");
QNZ=_.ec(function(a){var z=a.timedMarker;return _.B(_.eJ,null,_.B("div",{class:"ytPlayerStoryboardTimedMarkerIconWrapper"},_.B(_.nS,{icon:function(){return z().icon},
className:"ytPlayerStoryboardTimedMarkerIcon"})),_.B(_.xs,{text:function(){return z().label},
noPreWrap:!0}))},"ff");_.Shf=_.ec(function(a){var z=a.progressBarProps;var I=a.playheadData;var J=a.config;a=_.Mm("yt-progress-bar");var r=_.Mm("div"),P=_.Mm("div"),N=_.C(_.CW({width:0,left:0},void 0,"NcXsUb")),u=N.next().value,E=N.next().value,O=function(){P.value&&E(P.value.getBoundingClientRect())},f=function(){u().width<=0&&O();
return u()};
aG("resize",O);var A=new Rg(f,function(){},function(){return 0},function(){},function(){},function(){}),n=function(){return z()};
N=_.C(_.CW(!1,void 0,"ZsF6Xc"));var F=N.next().value,h=N.next().value;N=_.g4(function(){h(!0);J().position===2?setTimeout(function(){O()},100):O()});
var v=_.g4(function(){h(!1);Cpi(A,n)()}),d=_.g4(function(oE){J().doSeekOnClick&&eE0(A,n,J)(oE);
return!1}),W=_.g4(function(oE){zt0(A,n)(oE);
return!1}),l=_.g4(function(oE){Im0(A,n)(oE);
return!1}),q=_.g4(function(oE){rzG(A,n,J)(oE);
return!1}),m=_.g4(function(oE){ZBV(A,n,J)(oE);
return!1}),M=_.g4(function(){NJe(A,n,J)();
return!1}),y=_.g4(function(){tTG(A,n,J)();
return!1}),e=_.g4(function(){umZ(A,n,J)();
return!1}),Bp=_.g4(function(oE){E8Y(n)(oE);
return!1});
aG("mousemove",BJZ(A,n,J));aG("mouseup",g8f(A,n,J));_.QO(function(){FRO(r.value);h(!1);O();g8f(A,n,J)()});
var Em={};Em=_.B8("ytPlayerProgressBarHost",function(){return J().className},(Em.ytPlayerProgressBarHostReadOnly=function(){return J().disableScrubbing},Em.ytPlayerProgressBarHostHidden=function(){return J().hideProgressBar&&!F()},Em.ytPlayerProgressBarHostLowerPlayer=function(){return J().position===0},Em.ytPlayerProgressBarHostBottomEdge=function(){return J().position===1},Em.ytPlayerProgressBarHostBottomInset=function(){return J().position===2},Em.ytPlayerProgressBarHostCustom=function(){return J().position===
3},Em));
var nG={},bG=_.B8("ytPlayerProgressBarBackground",(nG.ytPlayerProgressBarBackgroundHide=function(){return J().position===2&&!F()&&!z().isDragging},nG));
nG={};nG=_.B8("ytPlayerProgressBarDragContainer",(nG.ytPlayerProgressBarDragContainerBottomEdge=function(){return J().position===1},nG));
var Hp={};Hp=_.B8("ytPlayerProgressBarProgressBar",(Hp.ytPlayerProgressBarProgressBarInset=function(){return J().position===2},Hp.ytPlayerProgressBarProgressBarInsetMinimized=function(){return J().position===2&&!F()&&!z().isDragging},Hp));
var LG=function(){return Math.floor(Nkd(z())*100)};
return _.B("yt-progress-bar",{el:a,class:Em},_.B(_.g,{cond:function(){return J().position===2},
then:function(){return _.B("div",{class:bG})}}),_.B("div",{el:r,
"on:click":d,"on:touchstart":W,"on:touchmove":q,"on:mouseenter":N,"on:mousedown":l,"on:mouseleave":v,"on:mousemove":m,"on:mouseup":y,"on:touchend":M,"on:touchcancel":e,"on:keydown":Bp,class:nG,role:"slider","aria-valuenow":LG,"aria-valuetext":function(){return LG()+"%"},
"aria-valuemin":function(){return 0},
"aria-valuemax":function(){return z().videoDuration},
draggable:"true",tabindex:0,"aria-label":_.AR("SEEK_SLIDER")},_.B("div",{el:P,class:Hp},_.B(cy4,{progressBarProps:z,config:J,highContrast:function(){return!!J().isInlinePlayback}}),_.B(_.g,{cond:function(){return J().chapterData&&gWG(J().chapterData)},
then:function(){return _.B(kji,{progressState:z,multiMarkersPlayerBarRenderer:function(){return J().chapterData},
progressBarWidth:function(){return u().width}})},
else:function(){return _.B(Ykz,{progressBarProps:z,config:J})}}),_.B(qkE,{progressBarProps:z,
playheadData:I,interpolateDotPosition:function(){return J().position!==2},
hidePlayhead:function(){return J().playheadDotBehavior===1&&!F()}}))),_.B(n8Z,{progressBarProps:z,
config:function(){return{activeChapter:Qzi(z(),J().chapterData),getProgressBarWidthPx:function(){return f().width},
isShortsPage:!!J().isShortsPage,isInlinePlayer:!!J().isInlinePlayback,useFadeInAnimation:!!J().isInlinePlayback}},
progressBarWidthPx:function(){return u().width},
chapterData:function(){return J().chapterData}}))},"gf");
_.Shf.idomCompat=!0;Object.assign({},_.ODG(),{setState:function(){},
domMeasurements:{},appApi:_.CLO(),playerApi:void 0,playerContainer:void 0,playerControlContainer:void 0,uxConfig:{}});var iBz;
_.xMf=_.ec(function(){var a,z=(a=_.ov(WRG().playerApi))!=null?a:void 0;a=_.C(_.CW(!1,void 0,"HLFBmb"));var I=a.next().value,J=a.next().value;a=_.C(_.CW(!1,void 0,"lHH9bc"));var r=a.next().value,P=a.next().value;a=_.C(_.CW(!1,void 0,"zsY7yd"));var N=a.next().value,u=a.next().value;a=_.C(_.CW(!1,void 0,"KeHQgc"));var E=a.next().value,O=a.next().value;a=_.C(_.CW(0,void 0,"gLLCj"));var f=a.next().value,A=a.next().value;a=_.C(_.CW(0,void 0,"s3RYkf"));var n=a.next().value,F=a.next().value;a=_.C(_.CW(!1,void 0,
"Dn608e"));var h=a.next().value,v=a.next().value;a=_.C(_.CW(0,void 0,"AnkH1b"));var d=a.next().value,W=a.next().value;a=_.C(_.CW(0,void 0,"QYNL0b"));var l=a.next().value,q=a.next().value;a=_.C(_.CW("",void 0,"Yzw45d"));var m=a.next().value,M=a.next().value;a=_.C(_.CW(-1,void 0,"iiVI0c"));var y=a.next().value,e=a.next().value,Bp=_.Bg(function(){var Em={controlsVisible:I(),isOverlayHidden:r(),shouldWaitToHideControls:N(),isDragging:E(),isHovering:h(),videoDuration:d(),playedTime:l(),videoId:m(),draggedTime:n(),
hoveredTime:f(),playerState:y()};return Object.assign({},_.ODG(),Em,{domMeasurements:{},setState:function(nG){nG.controlsVisible!==void 0&&J(nG.controlsVisible);nG.isOverlayHidden!==void 0&&P(nG.isOverlayHidden);nG.shouldWaitToHideControls!==void 0&&u(nG.shouldWaitToHideControls);nG.isDragging!==void 0&&O(nG.isDragging);nG.isHovering!==void 0&&v(nG.isHovering);nG.draggedTime!==void 0&&F(nG.draggedTime);nG.hoveredTime!==void 0&&A(nG.hoveredTime);nG.videoDuration!==void 0&&W(nG.videoDuration);nG.playedTime!==
void 0&&q(nG.playedTime);nG.videoId!==void 0&&M(nG.videoId);nG.playerState!==void 0&&e(nG.playerState)},
appApi:_.CLO(),playerApi:z})},void 0,"ZW7y9");
_.hD(function(){z==null||z.addEventListener("onVideoProgress",nW7(Bp));z==null||z.addEventListener("onVideoDataChange",szd(Bp));z==null||z.addEventListener("onStateChange",f60(Bp))});
_.V3(function(){if(z==null?0:z.isReady())z==null||z.removeEventListener("onVideoProgress",nW7(Bp)),z==null||z.removeEventListener("onVideoDataChange",szd(Bp)),z==null||z.removeEventListener("onStateChange",f60(Bp))});
return _.B("desktop-shorts-player-controls",null,_.B(iBz,{playerControlsProps:Bp}))},"hf");
iBz=_.ec(function(a){var z=a.playerControlsProps;return _.B("div",{class:"desktopShortsPlayerControlsWizHost"},_.B(_.Shf,{progressBarProps:z,config:function(){return{isShortsPage:!0,hideProgressBar:z().videoDuration<30&&z().playerState!==2&&!z().isDragging,rounded:!0,position:3,unmuteOnSeek:!1,playheadDotBehavior:1,doSeekOnClick:!0}}}))},"jf");_.v84=_.ec(function(a){function z(Em){Em!==0||A()?Em>50&&(A()||!F())?(n(!1),h(!0)):Em<=50&&(A()||F())&&(n(!1),h(!1)):n(!0)}
function I(Em,nG){var bG;return _.t(function(Hp){if(Hp.nextAddress==1)return Hp.yield(_.EN(),2);bG=Hp.yieldResult;nG&&bG?(bG.unMute(!0),Em&&(UD7(Em,bG.getVolume()),d(bG.getVolume()))):bG&&(bG.mute(!0),Em&&UD7(Em,0));_.nu(Hp)})}
function J(Em){var nG,bG;return _.t(function(Hp){if(Hp.nextAddress==1)return Hp.yield(_.EN(),2);nG=Hp.yieldResult;bG=50;nG&&(bG=nG.getVolume(),nG.isMuted()?UD7(Em,0):UD7(Em,bG));d(bG);_.nu(Hp)})}
var r=a.orientation;a=_.Mm("desktop-shorts-volume-controls");var P=_.Mm("button"),N=_.ca("input"),u=_.C(_.CW(!1,void 0,"F6vt0d")),E=u.next().value,O=u.next().value,f=_.C(_.CW(!1,void 0,"S5PCqb"));u=f.next().value;f=f.next().value;var A=u,n=f;f=_.C(_.CW(!0,void 0,"Tgy4e"));u=f.next().value;f=f.next().value;var F=u,h=f;u=_.C(_.CW(50,void 0,"Dq3efd"));var v=u.next().value,d=u.next().value;u=_.Bg(function(){var Em=A();return _.K("web_shorts_keyboard_enable_mute_shortcut")?Em?_.AR("PLAYER_LABEL_UNMUTE",
void 0,"Unmute (m)"):_.AR("PLAYER_LABEL_MUTE",void 0,"Mute (m)"):Em?_.AR("UNMUTE_VOLUME",void 0,"Unmute"):_.AR("MUTE_VOLUME",void 0,"Mute")},void 0,"zjOD8c");
f=_.Bg(function(){var Em=A(),nG=F();return{sources:[{clientResource:{imageName:Em?_.K("web_shorts_modern_controls")?"VOLUME_OFF_DELHI_PLAYER":"VOLUME_OFF_FILLED":nG?_.K("web_shorts_modern_controls")?"VOLUME_UP_DELHI_PLAYER_FILLED":"VOLUME_UP_FILLED":_.K("web_shorts_modern_controls")?"VOLUME_DOWN_DELHI_PLAYER_FILLED":"VOLUME_DOWN_FILLED"}}]}},void 0,"bIZ5A");
var W=_.Bg(function(){var Em=v();return A()?Em+"% volume muted":Em+"% volume"},void 0,"kvkmyc"),l=_.Bg(function(){return r()==="vertical_down"},void 0,"zaNsZ");
_.QO(function(){function Em(){O(!0)}
function nG(){O(!1)}
N&&N.value&&(N.value.addEventListener("focus",Em),N.value.addEventListener("focusout",nG),J(N.value).then(function(){z(Number(DDp(N.value)))}));
P&&P.value&&(P.value.addEventListener("focus",Em),P.value.addEventListener("focusout",nG));_.V3(function(){var bG;N==null||(bG=N.value)==null||bG.removeEventListener("focus",Em);var Hp;N==null||(Hp=N.value)==null||Hp.removeEventListener("focusout",nG);var LG;P==null||(LG=P.value)==null||LG.removeEventListener("focus",Em);var oE;P==null||(oE=P.value)==null||oE.removeEventListener("focusout",nG)})});
var q=_.g4(function(){if(N&&N.value){var Em=Number(DDp(N.value));oW7(Em);d(Em);N.value.style.setProperty("--gradient-percent",Em+"%");z(Em)}return!1}),m=_.g4(function(){O(!0)}),M=_.g4(function(){N&&N.value&&(I(N.value,A()),n(!A()));
return!1}),y={},e={},Bp={};
return _.B("desktop-shorts-volume-controls",{"on:pointerleave":_.g4(function(){O(!1)}),
class:_.B8("ytdDesktopShortsVolumeControlsHost",(y.ytdDesktopShortsVolumeControlsHostVertical=l,y.ytdDesktopShortsVolumeControlsHostExpanded=E,y)),el:a},_.B(_.g,{cond:function(){return!l()},
then:function(){var Em={};return _.B("div",{class:_.B8("ytdDesktopShortsVolumeControlsBackgroundScrim",(Em.ytdDesktopShortsVolumeControlsBackgroundScrimExpanded=E,Em))})}}),_.B("div",{class:_.B8((e.ytdDesktopShortsVolumeControlsMuteIconButtonContainer=l,e))},_.B("button",{"aria-label":u,
title:u,el:P,"on:click":M,"on:pointerenter":m,class:"ytdDesktopShortsVolumeControlsMuteIconButton"},f?_.B(_.qp,{data:f,alt:u,className:"ytdDesktopShortsVolumeControlsMuteIcon"}):null)),_.B("div",{class:_.B8("ytdDesktopShortsVolumeControlsSliderContainer",(Bp.ytdDesktopShortsVolumeControlsSliderContainerExpanded=E,Bp.ytdDesktopShortsVolumeControlsSliderContainerVertical=l,Bp.ytdDesktopShortsVolumeControlsSliderContainerVerticalDown=l,Bp.ytdDesktopShortsVolumeControlsSliderContainerVerticalExpanded=
function(){return E()&&l()},Bp))},_.B("input",{"aria-label":_.AR("VOLUME"),
title:_.AR("VOLUME"),el:N,"on:input":q,type:"range",class:"ytdDesktopShortsVolumeControlsNativeSlider",id:"volume-input",role:"slider","aria-valuenow":v,"aria-valuetext":W,"aria-valuemin":0,"aria-valuemax":100})))},"kf");_.GBY=_.ec(function(a){var z=a.data;return _.B("player-disclosure-view-model",{class:"ytwPlayerDisclosureViewModelHost"},_.B(_.lq,{command:function(){return z().navigationEndpoint},
className:"ytwPlayerDisclosureViewModelEndpoint"},_.B(_.g,{cond:function(){return z().iconName},
then:function(I){return _.B(_.nS,{icon:I})}}),_.B("span",{class:"ytwPlayerDisclosureViewModelText"},function(){return z().text}),_.B(_.g,{cond:function(){return z().showEndChevron},
then:function(){return _.B(_.nS,{icon:"CHEVRON_RIGHT"})}})))},"lf");var $MY=_.ec(function(a){var z=a.data;var I=a.overlayDensity;a={};return _.B("yt-reel-channel-bar-view-model",{class:"ytReelChannelBarViewModelHost"},_.B(_.V0,{data:function(){return z().decoratedAvatarViewModel}},{decoratedAvatarViewModel:function(J){var r=J.data;
return _.B(_.Uj,{data:function(){return(I==null?void 0:I())===1?Object.assign({},r(),{avatar:{avatarViewModel:Object.assign({},_.H(r().avatar,_.Dc),{avatarImageSize:"AVATAR_SIZE_48"})}}):r()}})}}),_.B(_.V0,{data:function(){return z().avatarStackViewModel}},{avatarStackViewModel:function(J){return _.B(_.DU,{data:J.data})}}),_.B(_.xs,{className:_.B8("ytReelChannelBarViewModelChannelName",(a.ytReelChannelBarViewModelChannelNameLarge=function(){return(I==null?void 0:I())===1},a)),
text:function(){return z().channelName},
linkInheritColor:!0,userInput:!0}),_.B("div",{class:"ytReelChannelBarViewModelReelSubscribeButton"},_.B(_.V0,{data:function(){return z().subscribeButtonViewModel}},{subscribeButtonViewModel:function(J){var r=J.data;
return _.B(_.op,{data:function(){return(I==null?void 0:I())===1?Object.assign({},r(),{backgroundStyle:"SUBSCRIBE_BUTTON_VIEW_MODEL_BACKGROUND_STYLE_TONAL",buttonStyle:Object.assign({},r().buttonStyle,{buttonSize:"SUBSCRIBE_BUTTON_VIEW_MODEL_SIZE_MEDIUM"})}):r()},
isOverlay:!1})},
buttonViewModel:_.At})),_.B("div",{class:"ytReelChannelBarViewModelReelSponsorButton"},_.B(_.V0,{data:function(){var J,r;return(r=_.H((J=z())==null?void 0:J.sponsorButtonViewModel,hoJ))==null?void 0:r.sponsorButton}},{buttonViewModel:function(J){return _.B(_.At,{data:J.data,
buttonOverrides:function(){return{toggled:!0}}})}})))},"mf");var XHG=_.ec(function(a){var z=function(){var J;return(a==null?void 0:(J=a.overlayDensity)==null?void 0:J.call(a))===1?22:16},I={};
return _.B("yt-reel-multi-format-link-view-model",{class:_.B8("ytReelMultiFormatLinkViewModelHost",(I.ytReelMultiFormatLinkViewModelHostTall=!0,I.ytReelMultiFormatLinkViewModelHostLarge=function(){var J;return((J=a.overlayDensity)==null?void 0:J.call(a))===1},I))},_.B(_.lq,{ariaLabel:function(){return a.data().a11yLabel},
className:"ytReelMultiFormatLinkViewModelEndpoint",command:function(){return a.data().command}},_.B("h3",{class:"ytReelMultiFormatLinkViewModelLink"},_.B(_.g,{cond:function(){return a.data().icon},
then:function(J){return _.B(_.qp,{data:J,className:"ytReelMultiFormatLinkViewModelIcon",alt:"",size:z})}}),_.B(_.xs,{text:function(){return a.data().title},
className:"ytReelMultiFormatLinkViewModelTitle"}))))},"nf");
XHG.idomCompat=!0;var TJY=_.ec(function(a){var z=a.data;var I=a.overlayDensity;var J=_.Mm("yt-shorts-suggested-action-view-model");a=_.C(_.CW(!1,void 0,"xDqzhe"));var r=a.next().value,P=a.next().value;a=_.C(_.CW(!1,void 0,"LI9CFd"));var N=a.next().value,u=a.next().value,E=function(){return z().isMultiLineSa},O=_.KU(Tl1,function(){var m,M;
return(M=(m=z().toggleableContent)==null?void 0:m.entityKey)!=null?M:""}),f=function(){var m,M,y;
return(y=z().toggleableContent)!=null&&y.entityKey?(M=(m=O())==null?void 0:m.value)!=null?M:!1:!1},A=function(){var m,M,y,e,Bp,Em,nG,bG,Hp,LG,oE;
return z().toggleableContent?f()?(m=z().toggleableContent)==null?void 0:m.toggledData:(M=z().toggleableContent)==null?void 0:M.untoggledData:{primaryText:(bG=(y=z().defaultContent)==null?void 0:y.primaryText)!=null?bG:z().text,secondaryText:(e=z().defaultContent)==null?void 0:e.secondaryText,onTapCommand:(Hp=(Bp=z().defaultContent)==null?void 0:Bp.onTapCommand)!=null?Hp:z().onTapCommand,icon:(LG=(Em=z().defaultContent)==null?void 0:Em.icon)!=null?LG:z().icon,image:(oE=(nG=z().defaultContent)==null?
void 0:nG.image)!=null?oE:z().image}},n=function(){return E()?z().trailingTapTarget:void 0},F=function(m,M){return function(){return r()?M:m}},h=function(){return{leadingSection:F("ytShortsSuggestedActionViewModelDynamicHostCollapsedLeadingSection","ytShortsSuggestedActionViewModelDynamicHostExpandedLeadingSection"),
secondaryText:(I==null?void 0:I())===1?F("ytShortsSuggestedActionViewModelDynamicHostCollapsedSecondary","ytShortsSuggestedActionViewModelExpansiveContainerExpandedSecondary"):F("ytShortsSuggestedActionViewModelDynamicHostCollapsedSecondary","ytShortsSuggestedActionViewModelDynamicHostExpandedSecondary"),trailingSection:F("ytShortsSuggestedActionViewModelDynamicHostCollapsedTrailingSection","ytShortsSuggestedActionViewModelDynamicHostExpandedTrailingSection"),leadingIcon:F("ytShortsSuggestedActionViewModelDynamicHostCollapsedLeadingIcon",
"ytShortsSuggestedActionViewModelDynamicHostExpandedLeadingIcon")}};
a={};a=_.B8((a.ytShortsSuggestedActionViewModelStaticHost=function(){return!E()},a.ytShortsSuggestedActionViewModelDynamicHost=E,a.ytShortsSuggestedActionViewModelDynamicHostShown=function(){return E()&&N()},a.ytShortsSuggestedActionViewModelDynamicHostHidden=function(){return E()&&!N()},a));
_.QO(function(){if(E()){var m=0,M;if((M=z().animationParams)==null?0:M.shouldExpand){var y,e;m=((e=(y=z().animationParams)==null?void 0:y.expansionDelaySecs)!=null?e:0)*1E3}var Bp,Em=((Bp=z().animationParams)==null?0:Bp.shouldExpand)?setTimeout(function(){P(!0)},m):void 0,nG,bG;
m=((nG=z().animationParams)==null?0:nG.visibilityDelaySecs)?((bG=z().animationParams)==null?NaN:bG.visibilityDelaySecs)*1E3:0;var Hp=setTimeout(function(){u(!0)},m);
_.V3(function(){Em&&clearTimeout(Em);clearTimeout(Hp)})}});
var v=function(m){_.lN(m,Object.assign({},{form:{element:J.value}}))},d=_.g4(function(){var m,M=(m=A())==null?void 0:m.onTapCommand;
M&&v(M)}),W=_.g4(function(){var m,M;
if(m=(M=n())==null?void 0:M.onTapCommand)return v(m),!1}),l=_.sW({"vertical-align":"bottom",
"border-radius":function(){var m;return E()?((m=z().defaultContent)==null?0:m.isCircleImage)?"50%":"4px":"0px"},
width:function(){var m,M,y;return E()&&((m=z().defaultContent)==null?0:m.imageSize)?((y=(M=z().defaultContent)==null?void 0:M.imageSize)!=null?y:24)+"px":null},
height:function(){var m,M,y;return E()&&((m=z().defaultContent)==null?0:m.imageSize)?((y=(M=z().defaultContent)==null?void 0:M.imageSize)!=null?y:24)+"px":null}}),q={};
return _.B("yt-shorts-suggested-action-view-model",{class:a,el:J},_.B("div",{style:"display: flex; flex-direction: row; align-items: center;"},_.B("button",{class:_.B8(function(){return E()?"ytShortsSuggestedActionViewModelDynamicHostContainer":"ytShortsSuggestedActionViewModelStaticHostContainer"},function(){var m;
return(m=z().useFullRoundedBorder)!=null&&m?"ytShortsSuggestedActionViewModelDynamicHostUseRoundBorder":!n()&&E()?"ytShortsSuggestedActionViewModelDynamicHostRoundAllCorners":E()?"ytShortsSuggestedActionViewModelDynamicHostOnlyRoundLeadingCorners":""},function(){var m;
return(m=z().disableFixedHeight)!=null&&m?"ytShortsSuggestedActionViewModelDynamicHostFixedHeightAuto":""},(q.ytShortsSuggestedActionViewModelExpansiveContainer=function(){return(I==null?void 0:I())===1},q)),
"on:click":d},_.B(_.Bc,{model:{color:4}}),_.B("div",{class:_.B8(function(){return E()?h().leadingSection():"ytShortsSuggestedActionViewModelStaticHostLeadingSection"})},_.B(_.g,{cond:function(){var m;
return(m=A())==null?void 0:m.image},
then:function(m){return _.B(_.qp,{data:m,alt:"",className:function(){return E()?"ytShortsSuggestedActionViewModelDynamicHostLeadingImage":"ytShortsSuggestedActionViewModelStaticHostLeadingImage"},
contentMode:"CONTENT_MODE_SCALE_TO_FILL",preserveHeight:!0,preserveWidth:!0,useWidth:!0,style:l})}}),_.B(_.g,{cond:function(){var m,M;
return(m=A())==null?void 0:(M=m.icon)==null?void 0:M.iconType},
then:function(m){return _.B(_.nS,{icon:m,active:f,className:function(){return E()?r()?"ytShortsSuggestedActionViewModelDynamicHostExpandedLeadingIcon":"ytShortsSuggestedActionViewModelDynamicHostCollapsedLeadingIcon":"ytShortsSuggestedActionViewModelStaticHostLeadingIcon"}})}})),_.B("div",{class:"ytShortsSuggestedActionViewModelStaticHostTextSection"},_.B(_.g,{cond:function(){var m;
return(m=A())==null?void 0:m.primaryText},
then:function(m){return _.B("div",{class:"ytShortsSuggestedActionViewModelStaticHostPrimaryText"},_.B(_.xs,{text:m}))}}),_.B(_.g,{cond:function(){var m;
return(m=A())==null?void 0:m.secondaryText},
then:function(m){return _.B("div",{class:function(){return h().secondaryText()}},_.B(_.xs,{text:m}))}}))),_.B(_.g,{cond:n,
then:function(m){return _.B("div",{class:function(){return h().trailingSection()},
"aria-label":function(){var M;return(M=m().a11yLabel)!=null?M:""},
"on:click":W,role:"button",tabindex:0},_.B(_.Bc,{model:{color:4}}),_.B(_.nS,{icon:"CHEVRON_DOWN",className:"ytShortsSuggestedActionViewModelDynamicHostTrailingIcon"}))}})))},"of");var dMZ=_.ec(function(a){var z=a.data;var I=a.overlayDensity;var J=_.Mm("yt-shorts-video-title-view-model");a=_.g4(function(N){if(_.di(_.TI(N),J.value,["A".toString()]))return!1;(N=z().truncatedTextOnTapCommand)&&_.lN(N);return!1});
var r={},P={};return _.B("yt-shorts-video-title-view-model",{el:J,class:_.B8("ytShortsVideoTitleViewModelHost",(r.ytShortsVideoTitleViewModelHostClickable=function(){return!!z().truncatedTextOnTapCommand},r)),
"on:click":a},_.B("h2",{class:_.B8("ytShortsVideoTitleViewModelShortsVideoTitle",(P.ytShortsVideoTitleViewModelShortsVideoTitleLarge=function(){return(I==null?void 0:I())===1},P))},_.B(_.xs,{text:function(){return z().text},
linkInheritColor:!0,noEndpoints:!1,stopPropagation:!0,userInput:!0})))},"pf");_.WOi=_.ec(function(a){var z=a.data;var I=a.overlayDensity;return _.B("yt-reel-metapanel-view-model",{class:"ytReelMetapanelViewModelHost"},_.B(_.V0,{data:function(){return z().metadataItems}},{badgeViewModel:function(J){return _.B("div",{class:"ytReelMetapanelViewModelMetapanelItem"},_.B(_.N8,{data:J.data}))},
playerDisclosureViewModel:function(J){return _.B("div",{class:"ytReelMetapanelViewModelMetapanelItem"},_.B(_.GBY,{data:J.data}))},
shortsSuggestedActionViewModel:function(J){return _.B("div",{class:"ytReelMetapanelViewModelMetapanelItem"},_.B(TJY,{data:J.data,overlayDensity:I}))},
reelChannelBarViewModel:function(J){return _.B("div",{class:"ytReelMetapanelViewModelMetapanelItem"},_.B($MY,{data:J.data,overlayDensity:I}))},
reelMultiFormatLinkViewModel:function(J){return _.B("div",{class:"ytReelMetapanelViewModelMetapanelItem"},_.B(XHG,{data:J.data,overlayDensity:I}))},
shortsVideoTitleViewModel:function(J){return _.B("div",{class:"ytReelMetapanelViewModelMetapanelItem"},_.B(dMZ,{data:J.data,overlayDensity:I}))},
reelSoundMetadataViewModel:function(J){return _.B("div",{class:"ytReelMetapanelViewModelMetapanelItem"},_.B(_.d0Y,{data:J.data,overlayDensity:I}))},
toggleButtonViewModel:function(J){return _.B("div",{class:"ytReelMetapanelViewModelMetapanelItem"},_.B(_.Wc,{data:J.data}))}}))},"qf");var o80=_.ec(function(a){var z=_.q3(a,{size:"M",disabled:!1,tooltipText:"",onTap:void 0}),I=z.size,J=z.onTap,r=z.disabled,P=z.tooltipText;return _.B("div",{class:"ytdShortsMiniplayerOverlayInteractive"},_.B(_.f_,{data:function(){return{style:"overlay-dark",type:"tonal",state:"active",iconPosition:"icon-only",size:I(),disabled:r(),tooltipText:P(),onTap:J}},
iconName:a.iconType}))},"rf"),UMG=_.ec(function(a){function z(f){f.stopPropagation();
f.code==="ArrowUp"?(f.preventDefault(),l6E(u.value)):f.code==="ArrowDown"?(f.preventDefault(),pRG(u.value)):f.code==="KeyM"?Rad():(f.code==="KeyK"||f.code==="Space")&&LR7(E())}
var I=_.q3(a,{previousButtonDisabled:!1,nextButtonDisabled:!1,data:void 0,playabilityStatus:void 0,previewThumbnail:void 0});a=I.previousButtonDisabled;var J=I.nextButtonDisabled,r=I.data,P=I.playabilityStatus,N=I.previewThumbnail,u=_.Mm("ytd-shorts-miniplayer-overlay"),E=_.o5(_.wSM),O;_.hD(function(){(O=_.Xm(u.value))&&O.addEventListener("keydown",z)});
_.V3(function(){var f;(f=O)==null||f.removeEventListener("keydown",z)});
I=function(){var f,A,n;return(f=r())==null?void 0:(A=f.reelPlayerOverlayRenderer)==null?void 0:(n=A.likeButton)==null?void 0:n.likeButtonRenderer};
return _.B("ytd-shorts-miniplayer-overlay",{el:u,class:"ytdShortsMiniplayerOverlayHost"},_.B("div",{class:"ytdShortsMiniplayerOverlayThumbnailBackground",style:_.sW({"background-image":function(){var f=N();return f?'url("'+_.P8(f.thumbnails)+'")':""}})}),_.B("div",{class:"ytdShortsMiniplayerOverlayOverlay"},_.B("div",{class:"ytdShortsMiniplayerOverlayTopButtons"},_.B(o80,{iconType:function(){var f=E();
return f===2||f===-1||f===5?"PLAY_ARROW":"PAUSE_FILLED"},
size:"L",onTap:function(){LR7(E())},
tooltipText:function(){var f=E();return f===1||f===3?_.AR("PLAYER_LABEL_PAUSE"):_.AR("PLAYER_LABEL_PLAY")}}),_.B(_.v84,{orientation:"horizontal_right"})),_.B("div",{class:"ytdShortsMiniplayerOverlayActionButtons"},_.B(o80,{iconType:"YOUTUBE_SHORTS_ARROW_UP",
disabled:a,onTap:function(){l6E(u.value)},
tooltipText:_.AR("PREVIOUS_VIDEO_LABEL")}),_.B(o80,{iconType:"YOUTUBE_SHORTS_ARROW_DOWN",disabled:J,onTap:function(){pRG(u.value)},
tooltipText:_.AR("NEXT_VIDEO_LABEL")}),_.K("web_shorts_pip_like_button")?_.B("div",{class:"ytdShortsMiniplayerOverlayInteractive"},_.B(muw,{buttonTooltipPosition:"left",data:I,overrides:{iconPosition:"icon-with-label",size:"M",style:"overlay-dark",type:"tonal"},textTransform:"none",useShortsIcon:!0,vertical:!0})):null),_.B("div",{class:"ytdShortsMiniplayerOverlayVideoMetaData"},_.B(_.g,{cond:function(){var f,A;return _.H((f=r())==null?void 0:(A=f.reelPlayerOverlayRenderer)==null?void 0:A.metapanel,
_.KSj)},
then:function(f){return _.B("div",{class:_.B8("ytdShortsMiniplayerOverlayInteractive")},_.B(_.WOi,{data:f}))}})),_.B("div",{class:_.B8("ytdShortsMiniplayerOverlayPlayerControls","ytdShortsMiniplayerOverlayInteractive"),
hidden:function(){var f;return!((f=r())==null||!f.adsOverlay)||P()&&!UPp(P())}},_.B("div",{class:"ytdShortsMiniplayerOverlayPlayerControlsInner"},_.B(_.xMf,null)))),_.B(_.g,{cond:function(){var f=r(),A,n;
f=_.H(f==null?void 0:(A=f.adsOverlay)==null?void 0:(n=A.fulfillmentContent)==null?void 0:n.fulfilledLayout,dHi);return _.H(f==null?void 0:f.renderingContent,RCI)},
then:function(f){return _.B("div",{class:"ytdShortsMiniplayerOverlayAdsOverlay"},_.B($9i,{data:f}))}}))},"sf");var wRI=_.ec(function(){var a=_.C(_.CW(new _.fB(NaN,NaN),void 0,"HSMFk")),z=a.next().value,I=a.next().value;a=_.C(_.CW(!1,void 0,"uaAxwf"));var J=a.next().value,r=a.next().value,P=_.C(_.CW(!1,void 0,"nVSwef"));a=P.next().value;var N=P.next().value,u=_.ab().resolve(_.UJ).miniplayerPropSignalMap[0],E=u.data,O=u.shortsData,f=u.nextButtonDisabled,A=u.shortsPreviewThumbnail,n=u.previousButtonDisabled,F=u.externalPlaylistData;P=u.toastData;var h=u.playabilityStatus,v=u.isDisabled,d=u.playerVe,W=u.closeVe;
u=_.o5(_.NA);_.k0("yt-pip-window-resized",function(M){I(M)});
_.k0("yt-activate-pip-miniplayer",function(){return _.t(function(M){N(!0);_.nu(M)})});
var l=function(){var M;return!((M=F())==null||!M.contents)&&J()},q=function(){var M=z(),y=!!E(),e=l();
M=M.clone();y&&(M.height-=76);e&&(M.height-=285);return M},m=function(){r(!J())};
_.h2(function(){var M=d(),y=_.TX(11),e=_.XZ(11);y&&e&&M&&(_.Lt(y,e,M),e=W())&&(_.lI(y,M,[e]),_.we(y,[e]))},"HPkp0c");
return _.B("ytd-pip-container",{class:"ytdPipContainerHost"},_.B(_.g,{cond:a,then:function(){return _.B(_.wPE,{isDisabled:v,playabilityStatus:h,size:q})}}),_.B(_.g,{cond:E,
then:function(){return _.B(_.lIY,{data:E,expanded:J,onExpandClick:m,playlistData:F})}}),_.B(_.g,{cond:l,
then:function(){return _.B("div",{class:"ytdPipContainerPlaylistPanel"},_.B(_.pfw,{data:F,hideHeaderText:!0,withinMiniplayer:!0}))}}),_.B(_.g,{cond:u,
then:function(){return _.B(UMG,{data:O,nextButtonDisabled:f,previousButtonDisabled:n,playabilityStatus:h,previewThumbnail:A})}}),_.B("div",{class:"ytdPipContainerToast"},_.B(_.mRE,{toastData:P})))},"tf");var ls=function(a,z){var I=this;this.pipController=a;this.JSC$18587_clientRoot=z;this.active=!1;this.player=this.playerElement=this.miniplayerFetchRequest=null;this.miniplayerPropSignalMap=J8x();this.watchPipEnabled=_.K("web_watch_pip");this.shortsPipEnabled=_.K("web_shorts_pip");this.JSC$18587_watchWhileEnabled=_.K("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;_.QT(_.qo(),D_m,function(J){I.isSingleOptionSurveyActive=J});
this.JSC$18587_onPlayerPlayVideo=this.JSC$18587_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);_.m_(_.w2.getInstance(),this.miniplayerServiceActionMap,this.JSC$18587_clientRoot);a.pictureInPictureSupported()&&_.x0("genericClientExperimentEvent",
{eventType:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_DOCUMENT_PICTURE_IN_PICTURE_SUPPORTED"})},Pij,MT0,wHZ,cz0,Yh0,OTJ;
ls.prototype.handleMediaSessionPipActivation=function(){var a=this,z;return _.t(function(I){_.hq().mediaSessionPipActivation=!0;z=_.ab().resolve(_.aK);return z.isOnWatch()&&a.watchPipEnabled?(_.hq().watchPipActivation=!0,_.DME(a,z.data),I.jumpTo(0)):z.isOnShorts()&&a.shortsPipEnabled?(_.hq().shortsPipActivation=!0,_.RtM(a),I.jumpTo(0)):a.isMiniplayerActive()&&a.watchPipEnabled&&!a.watchWhileMode?I.yield(LOf(a),0):I.jumpTo(0)})};
var LOf=function(a){var z,I,J,r;return _.t(function(P){if(P.nextAddress==1)return z=!a.miniplayerToPipMode,I=a.playerElement,J=a.miniplayerData,r=a.watchResponse,P.yield(a.deactivate(),2);if(P.nextAddress!=3)return z?(_.hq().mediaSessionPipActivation=!0,_.hq().watchPipActivation=!0):_.hq().miniplayerButtonActivation=!0,P.yield(a.activate(I,J,r),3);a.miniplayerToPipMode=z;_.nu(P)})};
ls.prototype.onDownloadedVideoDeleted=function(a){var z,I=_.H((z=this.miniplayerData)==null?void 0:z.watchEndpoint,_.MZ),J,r;I&&((J=this.watchResponse)==null?void 0:(r=J.playerResponse)==null?void 0:r.offlineState)!==void 0&&(z=I.videoId)&&a&&z===a&&this.close()};
ls.prototype.onShowMiniplayerCommand=function(a){var z=this,I,J,r,P,N,u,E,O,f,A,n;return _.t(function(F){switch(F.nextAddress){case 1:return I=_.H(a,t$J),r=(J=I)==null?void 0:J.miniplayerCommand,P=_.H(r,_.MZ),r&&P&&!z.active?F.yield(_.Xo.getInstance(),2):F.return();case 2:return N=F.yieldResult,F.yield((u=N)==null?void 0:u.get("yt-miniplayer-shown-video-id"),3);case 3:E=F.yieldResult;O=P.videoId;if(!O||E===O)return F.return();f=_.ab().resolve(_.aK);if(f.isOnWatch())return _.Xd(Error("Hj")),F.return();
A={channelItem:{externalId:btoa(O)}};z.readyToResumeVe=_.uq(121253,void 0,void 0,A);_.hq().showMiniplayerCommandActivation=!0;return F.yield(_.fKE(z,r,!0),4);case 4:return z.active&&(_.pj(z,{readyToResumeVe:z.readyToResumeVe,isReadyToResume:!0}),z.isReadyToResume=!0),F.yield((n=N)==null?void 0:n.set("yt-miniplayer-shown-video-id",P.videoId),5);case 5:z.readyToResumeVe=void 0,_.nu(F)}})};
ls.prototype.init=function(a){this.miniplayerEl?_.Xd(new _.Fn("MiniplayerService already initialized.")):this.miniplayerEl=a};
ls.prototype.isInitialized=function(){var a=!!this.miniplayerEl;a||_.Xd(new _.Fn("MiniplayerService used before initialized."));return a};
_.DME=function(a,z){if(a.isInitialized()){var I=_.Xx(z.response,!1,z.playerResponse),J=_.ab().resolve(_.aK).getPlayerFromWatch();_.hq().currentEndpoint=I.watchEndpoint||null;a.activate(J,I,z)}};
_.RtM=function(a){if(a.isInitialized()){var z=_.ab().resolve(_.aK).getPlayerFromShorts();a.activate(z)}};
Pij=function(a,z){var I;(I=!a.isInitialized())||(I=_.ab().resolve(_.aK).isOnWatch()&&a.watchPipMode,I=!(a.isMiniplayerActive()&&(_.hq().userActivation||_.hq().lockupActivation||I)));if(I)return!1;lmf(a,z)?_.Dp(a):OTJ(a,z);return a.watchPipMode?!_.ab().resolve(_.aK).isOnWatch():!0};
ls.prototype.isMiniplayerActive=function(){return this.active};
var lmf=function(a,z){var I;z=(I=_.H(z,_.MZ))==null?void 0:I.videoId;var J,r;a=(r=_.H((J=a.miniplayerData)==null?void 0:J.watchEndpoint,_.MZ))==null?void 0:r.videoId;return z!=null&&z===a};
ls.prototype.collapse=function(){this.isInitialized()&&(this.backgroundPageData?_.PA(this.miniplayerEl,"yt-navigate-cache",{url:this.backgroundPageData.url,endpoint:this.backgroundPageData.endpoint,data:this.backgroundPageData}):_.ZF(this.miniplayerEl,"yt-navigate-home-action"))};
_.fKE=function(a,z,I,J){I=I===void 0?!1:I;var r,P,N;return _.t(function(u){switch(u.nextAddress){case 1:if(a.active){u.jumpTo(2);break}r=_.ab().resolve(_.aK);if(N=(P=a.playerElement)!=null?P:r.getPlayerFromWatch()){u.jumpTo(3);break}return u.yield(_.ab().resolve(_.Zc),4);case 4:N=r.getPlayerFromWatch();case 3:if(!N){_.Xd(Error("Jj"));u.jumpTo(2);break}return u.yield(a.activate(N,J),2);case 2:return a.active?u.yield(OTJ(a,z,I),0):u.return()}})};
ls.prototype.activate=function(a,z,I){var J=this,r,P,N,u,E,O,f,A,n;return _.t(function(F){switch(F.nextAddress){case 1:if(!J.isInitialized())return F.return();if(!a)return _.Xd(Error("Jj")),F.return();if(_.FVI()||J.isMiniplayerActive())var h=!0;else h=_.hq().watchPipActivation||_.hq().watchWhileActivation,_.ab().resolve(_.aK).isOnWatch()&&!h?(_.Xd(new _.Fn("miniplayer activated on watch page")),h=!0):h=_.hq().watchWhileActivation?J.userDeactivatedWatchWhile||!!document.pictureInPictureElement||n5x():
!1;if(h)return KVi(),F.return();r=_.hq().mediaSessionPipActivation;P=_.hq().shortsPipActivation;N=_.hq().watchPipActivation;E=(u=_.hq().watchWhileActivation)||N;O=N||P;if(!J.pictureInPictureEnabled()||!O){F.jumpTo(2);break}return F.yield(pHE(J,r),3);case 3:if(!F.yieldResult)return _.Xd(Error("Ij")),KVi(),F.return();case 2:return J.setActive(!0),J.watchResponse=I,J.playerElement=a,J.updateMiniplayerData(z),F.yield(wHZ(J,a),4);case 4:if(!J.active)return _.Xd(new _.Fn("miniplayer deactivated during activation")),
J.removePlayerListeners(),F.return();h=_.ab().resolve(_.wR);h.addEventListener("yt-navigate",_.BK(J,J.onPlaylistNavigate));h.addEventListener("yt-playlist-data-updated",_.BK(J,J.JSC$18587_onPlaylistDataUpdated));J.JSC$18587_onPlaylistDataUpdated();KVi();J.JSC$18587_watchWhileEnabled&&_.mMe(J,u);J.pictureInPictureEnabled()&&J.shortsPipEnabled&&(J.shortsPipMode=P,_.qo().dispatch(PbI(J.shortsPipMode)));J.pictureInPictureEnabled()&&J.watchPipEnabled&&(J.watchPipMode=N,_.FuI(J.handleMediaSessionPipActivation));
J.player&&(f=J.player.getPlayerState(),A=f===1,_.qo().dispatch(gti(f)),_.Ct(J.miniplayerEl,"yt-miniplayer-play-state-changed",[A]),_.hq().isVideoPlaying=A);_.Ct(J.miniplayerEl,"yt-miniplayer-endpoint-changed");yzY(J);_.kBM(J);if(J.shortsPipMode||J.watchPipMode)F=F.yield(_.ZF(J.miniplayerEl,"yt-activate-pip-miniplayer")[0],6);else{h=F.yield;var v=_.ZF(J.miniplayerEl,"yt-activate-miniplayer",[E])[0];F=h.call(F,v,6)}return F;case 6:if(J.watchResponse&&!_.K("miniplayer_copy_screen_on_activation_killswitch")){h=
J.getScreenLayer();v=_.TX(0);var d=FqI(0);v&&d&&(_.WJ(v,d,h),h===0&&nQm(void 0,0))}MT0(J);cz0(J,!0);(n=J.getPlayerElement())==null||n.focusOnPlayer();_.nu(F)}})};
ls.prototype.updateMiniplayerData=function(a){this.miniplayerData=a;_.pj(this,{data:a})};
_.kBM=function(a){var z,I,J=((z=a.miniplayerData)==null?void 0:(I=z.miniplayerRenderer)==null?void 0:I.playbackMode)==="PLAYBACK_MODE_PAUSED_ONLY";z=a.watchWhileMode||a.watchPipMode?J&&!_.ab().resolve(_.aK).isOnWatch():J;_.pj(a,{isDisabled:z});var r,P;I=_.H((r=a.miniplayerData)==null?void 0:(P=r.miniplayerRenderer)==null?void 0:P.minimizedEndpoint,_.G7);z&&I&&_.ab().resolve(_.T4).openSheet({openPopupActionCommand:{openPopupAction:I}},a.miniplayerEl)};
MT0=function(a){if(a.watchResponse&&!Yh0(a)){var z,I=(z=a.watchResponse.playerResponse)==null?void 0:z.trackingParams;I&&(_.pj(a,{expandVe:_.uq(35989),closeVe:_.uq(34699),readyToResumeCloseVe:_.uq(131070),repositionVe:_.uq(226204),resizeVe:_.uq(226205)}),_.pj(a,{playerVe:_.VX(I)}))}};
wHZ=function(a,z){return _.t(function(I){if(I.nextAddress==1)return z.preparePlayer(),I.yield(z.getPlayerPromise(),2);a.player=I.yieldResult;a.player&&(a.player.addEventListener("onPlayVideo",a.JSC$18587_onPlayerPlayVideo),a.player.addEventListener("onCloseMiniplayer",a.onPlayerCloseMiniplayer),a.player.addEventListener("onExpandMiniplayer",a.onPlayerExpandMiniplayer),a.player.addEventListener("onStateChange",a.onPlayerStateChange));_.nu(I)})};
_.Z=ls.prototype;_.Z.JSC$18587_onPlayerPlayVideo=function(a){var z=a.sessionData&&"autonav"in a.sessionData,I;a.sessionData&&a.sessionData.itct&&(I=a.sessionData.itct);var J=a.watchEndpoint;z=J&&z?_.yiG(J,I):_.jx(a.videoId,a.listId||void 0,I);a.sessionData&&_.el(_.H(z.commandMetadata,_.O_).url,a.sessionData);OTJ(this,z)};
_.Z.onPlayerExpandMiniplayer=function(){_.Dp(this)};
_.Z.onPlayerCloseMiniplayer=function(){this.watchWhileMode&&(this.userDeactivatedWatchWhile=!0);this.close(this.watchWhileMode)};
_.Z.onPlayerStateChange=function(){if(this.player){var a=this.player.getPlayerState(),z=a===1;_.qo().dispatch(gti(a));_.qo().dispatch(_.A0i(a));_.Ct(this.miniplayerEl,"yt-miniplayer-play-state-changed",[z]);_.hq().isVideoPlaying=z;if(a===0){z=!_.PS.getInstance().isAutoplaySetExplicitly();var I,J,r,P,N,u,E=(I=this.watchResponse.response)==null?void 0:(J=I.contents)==null?void 0:(r=J.twoColumnWatchNextResults)==null?void 0:(P=r.autoplay)==null?void 0:(N=P.autoplay)==null?void 0:(u=N.autoplayExplicitChoiceDialogRenderer)==
null?void 0:u.confirmDialogRenderer;z&&E&&this.player.setAutonavState(1)}a===0&&this.watchWhileMode&&this.deactivate()}};
_.Z.onPlaylistNavigate=function(a,z){var I=this,J,r,P,N,u,E,O;return _.t(function(f){if(f.nextAddress==1){if(!_.H(z.endpoint,_.MZ))return f.return();_.hq().currentEndpoint=z.endpoint;_.Ct(I.miniplayerEl,"yt-miniplayer-endpoint-changed");if(_.ab().resolve(_.aK).isOnWatch()&&(I.watchWhileMode||I.watchPipMode))return f.return();a.stopPropagation();(P=(r=_.H((J=z.endpoint)==null?void 0:J.commandMetadata,_.O_))==null?void 0:r.url)&&z.tempData&&!_.x8.isEmpty(z.tempData)&&_.el(P,z.tempData);N={clientParams:{miniplayer:!0,
autoSaveToQueue:!1}};u=new nJo(function(){return I.getPlayerElement()},N,{layer:I.getScreenLayer()});
E=function(A){u.processChunk({endpoint:z.endpoint,data:A})};
qhz(I);I.miniplayerFetchRequest=etZ(I,z.endpoint,E);_.BP(f,2);return f.yield(I.miniplayerFetchRequest,4)}if(f.nextAddress!=2)return O=f.yieldResult,aJG(I,O),_.p1(f,0);_.sk(f);_.nu(f)})};
_.Z.JSC$18587_onPlaylistDataUpdated=function(){var a=_.ab().resolve(_.wR).getPlaylistData();this.hasPlaylistData=!!a;_.pj(this,{externalPlaylistData:a||{}})};
_.Z.close=function(a){if(this.isInitialized())if(a){if(!((this.watchWhileMode||this.watchPipMode)&&_.ab().resolve(_.aK).isOnWatch()||this.shortsPipMode)){var z;(z=this.getPlayerElement())==null||z.stop()}this.deactivate()}else _.cS().closeMiniplayer(this.miniplayerEl)};
_.Z.deactivate=function(a){var z=this,I,J,r,P;return _.t(function(N){if(N.nextAddress==1){if(!z.isInitialized()||!z.active)return N.return();z.setActive(!1);qhz(z);(I=!!a&&lmf(z,a))&&z.isSingleOptionSurveyActive&&_.ZF(z.miniplayerEl,"yt-show-watch-page-survey",[z.isSingleOptionSurveyActive]);return N.yield(jfG(z),2)}if(N.nextAddress!=3){cz0(z,!1);z.isReadyToResume=!1;z.watchResponse=void 0;z.updateMiniplayerData(void 0);z.shortsPipMode&&(z.shortsPipMode=!1,_.qo().dispatch(PbI(z.shortsPipMode)),EZV(z.pipController),
(J=z.player)==null||J.setInternalSize(NaN,NaN));z.watchPipMode&&(z.watchPipMode=!1,EZV(z.pipController));(r=z.watchWhileMode)&&_.mMe(z,!1);z.removePlayerListeners();var u=_.ab().resolve(_.wR);u.removeEventListener("yt-navigate",_.BK(z,z.onPlaylistNavigate));u.removeEventListener("yt-playlist-data-updated",_.BK(z,z.JSC$18587_onPlaylistDataUpdated));_.hq().currentEndpoint=null;_.Ct(z.miniplayerEl,"yt-miniplayer-endpoint-changed");z.playerElement=null;KVi();if(z.shortsPipMode||z.watchPipMode)N=N.jumpTo(3);
else{u=N.yield;var E=_.ZF(z.miniplayerEl,"yt-deactivate-miniplayer",[I,r])[0];N=u.call(N,E,3)}return N}(P=z.player)==null||P.setInternalSize(NaN,NaN);z.player=null;_.nu(N)})};
var jfG=function(a){var z;return _.t(function(I){z=_.ab().resolve(_.aK);return a.shortsPipMode?I.yield(z.movePlayerToShorts(a.playerElement),0):I.yield(z.movePlayerToWatch(a.playerElement),0)})};
ls.prototype.removePlayerListeners=function(){this.player&&(this.player.removeEventListener("onPlayVideo",this.JSC$18587_onPlayerPlayVideo),this.player.removeEventListener("onCloseMiniplayer",this.onPlayerCloseMiniplayer),this.player.removeEventListener("onExpandMiniplayer",this.onPlayerExpandMiniplayer),this.player.removeEventListener("onStateChange",this.onPlayerStateChange))};
ls.prototype.setActive=function(a){this.active=a;this.isSingleOptionSurveyActive?_.ZF(this.miniplayerEl,"yt-close-popup-action",["ytd-single-option-survey-renderer"]):_.ZF(this.miniplayerEl,"yt-close-popup-action",["ytd-survey-follow-up-renderer"]);_.qo().dispatch(_.rg({type:"SET_MINIPLAYER_IS_ACTIVE",payload:this.active}))};
_.mMe=function(a,z){a.watchWhileMode=z;_.pj(a,{watchWhile:z})};
cz0=function(a,z){if(!Yh0(a))if(a.shortsPipMode||a.watchPipMode){var I;(I=a.player)==null||I.setDocumentPictureInPicture(z)}else{var J;(J=a.player)==null||J.setMinimized(z)}};
Yh0=function(a){return a.watchWhileMode&&_.K("kevlar_watch_while_counterfactual")};
_.Dp=function(a){var z;return _.t(function(I){switch(I.nextAddress){case 1:if(!a.isInitialized())return I.return();_.BP(I,2);return I.yield(a.miniplayerFetchRequest,4);case 4:_.p1(I,3);break;case 2:_.sk(I);case 3:a.watchResponse&&a.miniplayerData&&a.miniplayerData.watchEndpoint?(z={url:a.watchResponse.url,endpoint:a.miniplayerData.watchEndpoint,data:a.watchResponse,miniplayer:!0},_.PA(a.miniplayerEl,"yt-navigate-cache",z)):a.miniplayerData&&a.miniplayerData.watchEndpoint&&_.PA(a.miniplayerEl,"yt-navigate",
{endpoint:a.miniplayerData.watchEndpoint}),_.nu(I)}})};
OTJ=function(a,z,I){var J,r,P,N;return _.t(function(u){if(u.nextAddress==1){if(lmf(a,z))return u.return();_.hq().currentEndpoint=z;_.Ct(a.miniplayerEl,"yt-miniplayer-endpoint-changed");_.Ct(a.miniplayerEl,"yt-miniplayer-play-state-changed",[!1]);_.hq().isVideoPlaying=!1;J={clientParams:{miniplayer:!0,autoSaveToQueue:!I}};r=new nJo(function(){return a.getPlayerElement()},J,{layer:a.getScreenLayer(),
parentLayer:0},void 0,a.readyToResumeVe);P=function(E){var O,f,A=Object.assign({},(O=E.playerResponse)==null?void 0:(f=O.playerConfig)==null?void 0:f.playbackStartConfig,{startPaused:!0}),n;I&&((n=E.playerResponse)==null?0:n.playerConfig)&&(E.playerResponse.playerConfig.playbackStartConfig=A);r.processChunk({endpoint:z,data:E})};
qhz(a);a.miniplayerFetchRequest=etZ(a,z,P);_.BP(u,2);return u.yield(a.miniplayerFetchRequest,4)}if(u.nextAddress!=2)return N=u.yieldResult,aJG(a,N),_.p1(u,0);_.sk(u);_.nu(u)})};
ls.prototype.getScreenLayer=function(){return this.shortsPipMode||this.watchPipMode?11:3};
var qhz=function(a){a.miniplayerFetchRequest&&(a.miniplayerFetchRequest.cancel&&a.miniplayerFetchRequest.cancel("Active request obsolete"),a.miniplayerFetchRequest=null)},etZ=function(a,z,I){var J=_.ir.instance,r,P=(r=_.H(z.commandMetadata,_.O_))==null?void 0:r.url,N;
r=!P||_.K("disable_miniplayer_tempdata")?{}:(N=Zem(P))!=null?N:{};return Lh(J,z,r,window.location.href,"watch",function(u,E){I(E)},function(u){return u!==a.miniplayerFetchRequest})},aJG=function(a,z){var I;
_.t(function(J){if(!z)return J.return();a.watchResponse=z;MT0(a);yzY(a);I=_.Xx(z.response,!1,z.playerResponse);if(a.isMiniplayerActive()){z.response&&(a.playerElement.watchNextData=z.response);var r=_.x8.getValueByKeys.apply(_.x8,[z].concat(_.ih(x8i)));_.x8.getValueByKeys.apply(_.x8,[z].concat(_.ih(TWG)))&&r&&_.ab().resolve(_.wR).setAutoplayRenderer(r);if(r)if(_.K("kevlar_is_pupi_enabled")){var P,N,u,E,O,f=((P=z.response)==null?0:(N=P.playerOverlays)==null?0:(u=N.playerOverlayRenderer)==null?0:(E=
u.autonavToggle)==null?0:(O=E.autoplaySwitchButtonRenderer)==null?0:O.enabled)?2:1;_.PS.getInstance().setState(f,!1,!1)}else P=KUE()?2:1,(f=a.player)==null||f.setAutonavState(P);a.updateMiniplayerData(I);_.kBM(a)}_.nu(J)})},yzY=function(a){var z,I,J=(z=a.watchResponse)==null?void 0:(I=z.playerResponse)==null?void 0:I.playabilityStatus,r;
z=J==null?void 0:(r=J.miniplayer)==null?void 0:r.miniplayerRenderer;(z==null?void 0:z.playbackMode)==="PLAYBACK_MODE_PAUSED_ONLY"&&z.minimizedEndpoint&&_.N$(a.miniplayerEl,[z.minimizedEndpoint]);_.pj(a,{playabilityStatus:J})};
ls.prototype.openToast=function(a,z){_.pj(this,{toastData:{data:a,label:z}})};
_.pj=function(a,z){(0,a.miniplayerPropSignalMap[1])(z)};
ls.prototype.getPlayerElement=function(){if(!this.isInitialized())return null;var a;return this.playerElement?this.playerElement:(a=_.PK(this.miniplayerEl).querySelector("#player-container"))==null?void 0:a.firstElementChild};
ls.prototype.pictureInPictureSupported=function(){return this.pipController.pictureInPictureSupported()};
var pHE=function(a,z){z=z===void 0?!1:z;var I,J,r,P,N,u,E;return _.t(function(O){if(O.nextAddress==1){I=navigator.userActivation.isActive||z;if(!I||!a.pictureInPictureSupported())return O.return(!1);J=z2i(a);r=J.width;P=J.height;return O.yield(a.pipController.openWindow({width:r,height:P}),2)}N=O.yieldResult;u=a.pipController.getWindow();if(!u||!N)return O.return(!1);u.document.body.style.overflow="hidden";E=mD0(u);BEY(a.pipController,function(){IJf(a);E()});
return O.return(!0)})},z2i=function(a){var z=_.hq().shortsPipActivation,I,J;
a=z?.5625:(J=(I=a.player)==null?void 0:I.getVideoAspectRatio())!=null?J:16/9;I=Math.min(window.innerWidth,window.innerHeight)/2;z=z?0:76;return a>1?new _.fB(I,z+I/a):new _.fB(I*a,z+I)},IJf=function(a){var z;
_.t(function(I){z=_.ab().resolve(_.aK);return z.isOnWatch()&&a.watchPipMode||z.isOnShorts()&&a.shortsPipMode?I.yield(a.deactivate(),0):a.miniplayerToPipMode?I.yield(LOf(a),0):a.watchPipMode?I.yield(_.Dp(a),0):I.jumpTo(0)})};
ls.prototype.pictureInPictureEnabled=function(){return this.pictureInPictureSupported()&&(this.watchPipEnabled||this.shortsPipEnabled)};
_.eH.Object.defineProperties(ls.prototype,{TEST_ONLY:{configurable:!0,enumerable:!0,get:function(){}}});
ls[zp]=[gZE,IWj];var J70="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(" "),
r7M="add_circle alert_bubble audio bag bell clapperboard clock copy creator_studio_red_logo download download fashion flag gaming gear help_circle history home lightbulb live menu mic news offline_no_content overflow_horizontal overflow_vertical play_square_stack playlist podcast search subscriptions thumb_up trash_can trending trophy unplugged_logo video video_camera_add x youtube_kids_round youtube_music youtube_round youtube_shorts yt-logo-updated".split(" "),PEZ="arrow_down arrow_up overflow_horizontal pause play-arrow shorts-comment shorts-dislike shorts-like shorts-share volume-off volume-up waveform".split(" "),
ZoM="arrow_down arrow_up overflow_horizontal pause play share text_bubble thumb_down thumb_up volume_max volume_mute waveform".split(" ");var CEi=null;var NQe={},tWG=(NQe.initialized={priority:10,callback:function(a){var z=_.ab();z.addProvider({provide:jhv,useClass:O4Z});z.addProvider({provide:_.gP0,useFactory:function(){return new z0E}});
z.addProvider({provide:dm,useValue:_.Xw("INNERTUBE_CONTEXT_CLIENT_NAME","WEB")});z.addProvider({provide:fi0,useValue:5184E6});z.addProvider({provide:DO0,useValue:_.ig()});z.addProvider({provide:kJ0,useClass:IC1});z.addProvider({provide:yy,useClass:yy});z.addProvider({provide:_.Zc,useFactory:function(){return Z0O.promise}});
z.addProvider({provide:_.NW1,useFactory:function(){return _.Cbl.promise}});
z.addProvider({provide:pOO,useValue:function(){var E;return((E=_.zI())==null?void 0:E.getPlayer())||null}});
var I={};z.addProvider((I.provide=_.Zp,I.useFactory=function(E,O){return function(){return JpM(E,O)}},I[zp]=[dm,
fi0],I));I={};z.addProvider((I.provide=_.AM,I.useClass=u1E,I[zp]=[dm,fi0],I));I={};z.addProvider((I.provide=_.CBd,I.useClass=Oli,I[zp]=[_.AM],I));z.addProvider({provide:Qv,useFactory:_.qo});z.addProvider({provide:r0,useFactory:_.qo});z.addProvider({provide:evZ,useFactory:_.qo});z.addProvider({provide:wMX,useFactory:_.qo});z.addProvider({provide:_.mP,useFactory:_.qo});z.addProvider({provide:FS,useValue:_.f5});z.addProvider({provide:NOZ,useClass:F1m});z.addProvider({provide:yho,useClass:mNf});z.addProvider({provide:yf,
useClass:yf});z.addProvider({provide:Hw,useClass:Hw});z.addProvider({provide:br,useClass:br});z.addProvider({provide:Vb,useClass:Vb});z.addProvider({provide:ag,useClass:ag});z.addProvider({provide:iX,useClass:iX});z.addProvider({provide:FL,useClass:FL});z.addProvider({provide:_.aji,useValue:GjE});z.addProvider({provide:_.d7,useFactory:_.Kw});z.addProvider({provide:gA,useFactory:_.Kt});I={};z.addProvider((I.provide=y6p,I.useFactory=function(E){return function(O){var f=f===void 0?{}:f;var A,n,F=(n=
_.H((A=O.endpoint)==null?void 0:A.commandMetadata,_.O_))==null?void 0:n.rootVe;if(F){var h,v;if(A=O.previousCsn||((v=_.H((h=O.endpoint)==null?void 0:h.commandMetadata,Dyo))==null?void 0:v.parentCsn)){var d=d===void 0?{}:d;if(A!==_.TX(d.layer)||F!==FqI(d.layer))Q4$(A,d.cttAuthInfo,d.layer||0),nQm(A,d.layer||0),h=d.layer||0,_.$S(Kq$(h===void 0?0:h),F);f.parentCsn=A}O.endpoint&&A?JrO(E,O.endpoint,f):_.fJ(E,F,void 0,f);var W;((W=O.response)==null?0:W.trackingParams)&&E.graftServerVe(O.response.trackingParams);
var l;((l=O.playerResponse)==null?0:l.trackingParams)&&E.graftServerVe(O.playerResponse.trackingParams);var q;((q=O.reelWatchSequenceResponse)==null?0:q.trackingParams)&&E.graftServerVe(O.reelWatchSequenceResponse.trackingParams)}}},I[zp]=[_.d7],I));
I={};z.addProvider((I.provide=jZV,I.useClass=aEG,I[zp]=[FS,_.mP],I));I={};z.addProvider((I.provide=sU,I.useClass=sU,I[zp]=[_.Zc,_.mP],I));I={};z.addProvider((I.provide=gH,I.useClass=gH,I[zp]=[r0,_.j6],I));z.addProvider({provide:_.ZZE,useClass:fEz});I={};z.addProvider((I.provide=_.X3,I.useClass=tf0,I[zp]=[_.ZZE],I));z.addProvider({provide:_.T4,useClass:Ff});z.addProvider({provide:_.XpM,useClass:YGZ});z.addProvider({provide:_.dP,useClass:nj});I={};z.addProvider((I.provide=_.tO,I.useClass=OZV,I[zp]=
[_.tO],I));z.addProvider({provide:_.Ep,useClass:DNj});z.addProvider({provide:G_,useClass:G_});z.addProvider({provide:ew,useClass:ew});z.addProvider({provide:oe,useClass:oe});z.addProvider({provide:dH,useClass:dH});I={};z.addProvider((I.provide=sv,I.useClass=sv,I[zp]=[_.j6,_.dY],I));z.addProvider({provide:mx,useClass:Kj});I={};z.addProvider((I.provide=c1,I.useClass=c1,I[zp]=[_.T4,mx],I));_.K("web_enable_feedback_endpoint_resolver")&&(I={},z.addProvider((I.provide=Sw,I.useClass=Sw,I[zp]=[Qv,Vv],I)),
z.addProvider({provide:Vv,useClass:N$G}));_.K("web_enable_feedback_endpoint_resolver_batch_2")&&(I={},z.addProvider((I.provide=xC,I.useClass=xC,I[zp]=[Qv],I)),I={},z.addProvider((I.provide=iD,I.useClass=iD,I[zp]=[Vv],I)));I={};z.addProvider((I.provide=yv,I.useClass=yv,I[zp]=[_.dP,mx],I));I={};z.addProvider((I.provide=Ly,I.useClass=Ly,I[zp]=[_.dP],I));I={};z.addProvider((I.provide=MG,I.useClass=MG,I[zp]=[_.dY,_.X3],I));I={};z.addProvider((I.provide=wm,I.useClass=wm,I[zp]=[_.dY,_.d7],I));z.addProvider({provide:Kq,
useClass:Kq});I={};z.addProvider((I.provide=B2,I.useClass=B2,I[zp]=[Qv],I));z.addProvider({provide:TF,useClass:TF});z.addProvider({provide:Xi,useClass:Xi});I={};z.addProvider((I.provide=W2,I.useClass=W2,I[zp]=[Qv],I));I={};z.addProvider((I.provide=oS,I.useClass=oS,I[zp]=[_.dY,Qv],I));I={};z.addProvider((I.provide=UV,I.useClass=UV,I[zp]=[Qv],I));I={};z.addProvider((I.provide=DM,I.useClass=DM,I[zp]=[Qv],I));I={};z.addProvider((I.provide=lD,I.useClass=lD,I[zp]=[_.X3],I));I={};z.addProvider((I.provide=
VZ,I.useClass=VZ,I[zp]=[_.d7],I));I={};z.addProvider((I.provide=GF,I.useClass=GF,I[zp]=[sV],I));I={};z.addProvider((I.provide=$D,I.useClass=$D,I[zp]=[sV],I));z.addProvider({provide:iW,useClass:iW});z.addProvider({provide:xD,useClass:xD});z.addProvider({provide:hO,useClass:hO});I={};z.addProvider((I.provide=YC,I.useClass=YC,I[zp]=[_.X3,_.j6],I));z.addProvider({provide:T_,useClass:T_});I={};z.addProvider((I.provide=py,I.useClass=py,I[zp]=[_.dY,_.X3],I));z.addProvider({provide:Uv,useClass:Uv});I={};
z.addProvider((I.provide=uW,I.useClass=uW,I[zp]=[Qv,_.dY,_.tO],I));I={};z.addProvider((I.provide=Cq,I.useClass=Cq,I[zp]=[_.dY,_.j6],I));z.addProvider({provide:MZj,useValue:frE});z.addProvider({provide:agG,useValue:tAE});z.addProvider({provide:Nz,useClass:Nz});I={};z.addProvider((I.provide=ZM,I.useClass=ZM,I[zp]=[Qv],I));I={};z.addProvider((I.provide=EV,I.useClass=EV,I[zp]=[_.Ep,_.j6],I));I={};z.addProvider((I.provide=v1,I.useClass=v1,I[zp]=[_.j6],I));z.addProvider({provide:hF,useFactory:function(){return new hF(_.qo())}});
z.addProvider({provide:EUd,useFactory:_.$h.getInstance});I={};z.addProvider((I.provide=W1,I.useClass=W1,I[zp]=[dm,EUd,_.j6],I));z.addProvider({provide:$C,useClass:$C});z.addProvider({provide:ny,useClass:ny});z.addProvider({provide:FA,useClass:FA});z.addProvider({provide:_.Ky,useClass:_.Ky});z.addProvider({provide:lW,useClass:lW});I={};z.addProvider((I.provide=JO,I.useClass=JO,I[zp]=[r0],I));I={};z.addProvider((I.provide=rA,I.useClass=rA,I[zp]=[_.j6],I));_.K("web_enable_prefetching_videos_on_home")&&
(z.addProvider({provide:BO,useClass:BO}),z.addProvider({provide:Xf,useClass:Xf}));I={};z.addProvider((I.provide=Lq,I.useClass=Lq,I[zp]=[_.j6],I));z.addProvider({provide:H1,useClass:H1});I={};z.addProvider((I.provide=Fi,I.useClass=Fi,I[zp]=[_.dY,_.j6],I));I={};z.addProvider((I.provide=bD,I.useClass=bD,I[zp]=[_.j6],I));z.addProvider({provide:Tk,useClass:Tk});z.addProvider({provide:jA,useClass:jA});I={};z.addProvider((I.provide=aS,I.useClass=aS,I[zp]=[r0,_.j6],I));z.addProvider({provide:zF,useClass:zF});
I={};z.addProvider((I.provide=mp,I.useClass=mp,I[zp]=[r0,_.j6,_.dY],I));I={};z.addProvider((I.provide=yZ,I.useClass=yZ,I[zp]=[_.j6],I));I={};z.addProvider((I.provide=wA,I.useClass=wA,I[zp]=[_.j6,_.dY],I));I={};z.addProvider((I.provide=P2,I.useClass=P2,I[zp]=[_.Zc],I));I={};z.addProvider((I.provide=IS,I.useClass=IS,I[zp]=[_.Zc],I));z.addProvider({provide:AO,useClass:AO});z.addProvider({provide:nq,useClass:nq});z.addProvider({provide:dA,useClass:dA});z.addProvider({provide:H2,useClass:H2});z.addProvider({provide:fq,
useClass:fq});z.addProvider({provide:DQ,useClass:DQ});z.addProvider({provide:OV,useClass:OV});_.K("kevlar_enable_mss_lazy_load")&&z.addProvider({provide:_.Rv,useClass:qaf});z.addProvider({provide:_.Qb,useClass:bs});z.addProvider({provide:rR,useFactory:function(){return _.w2.getInstance()}});
z.addProvider({provide:YO0,useFactory:sqM});z.addProvider({provide:sV,useFactory:function(){return _.Xo.getInstance()}});
z.addProvider({provide:ePE,useValue:{singleEntityType:"mainVideoEntity",listEntityType:"mainPlaylistEntity"}});I={};z.addProvider((I.provide=_.OU,I.useClass=_.OU,I[zp]=[_.Zc,_.j6,_.d7,YO0,sV,rR,ePE,FS],I));z.addProvider({provide:_.Hs,useClass:RUo});z.addProvider({provide:_.sE4,useClass:A1E});I={};z.addProvider((I.provide=Re,I.useClass=Re,I[zp]=[_.sE4],I));I={};z.addProvider((I.provide=_.fj,I.useFactory=function(E){return E.upliftCompletionResolver.promise},I[zp]=[jZV],I));
I=_.TZ("IS_SHELL_LOAD")?"aa":"eocs";var J=_.TZ("IS_SHELL_LOAD")?3:2;_.yT().parkOrScheduleJob(function(){IEi()},J,I);
_.yT().parkOrScheduleJob(function(){_.ab().resolve(sU).start()},2,"eocs");
_.yT().parkOrScheduleJob(function(){qO0()},2,"eocs");
_.yT().parkOrScheduleJob(function(){_.ab().resolve(gH).start()},2,"eocs");
_.K("kevlar_debug_data_app_registration_ks")||Oj1();z.addProvider({provide:_.V7,useValue:new cwe(a.root)});z.addProvider({provide:l9,useValue:new Uhx});z.addProvider({provide:_.Jhf,useValue:new zDe(a.root)});z.addProvider({provide:_.Tr,useValue:new Iqi});z.addProvider({provide:_.vw,useClass:Qn});z.addProvider({provide:gZE,useClass:HO});_.K("kevlar_network_sli_killswitch")||z.addProvider({provide:h7Z,useValue:pT1});z.addProvider({provide:vO,useFactory:ZYE});_.K("web_bind_fetch")&&(I={},z.addProvider((I.provide=
tuE,I.useFactory=C7I,I[zp]=[_.eL(vO)],I)));_.K("web_bind_parse")&&(I={},z.addProvider((I.provide=uGY,I.useFactory=Nvi,I[zp]=[_.eL(vO)],I)));_.K("web_bind_window_request")&&(I={},z.addProvider((I.provide=EPZ,I.useFactory=tXM,I[zp]=[_.eL(vO)],I)));_.K("web_bind_text_decoder")&&(I={},z.addProvider((I.provide=BOE,I.useFactory=u$$,I[zp]=[_.eL(vO)],I)));I={};z.addProvider((I.provide=ppz,I.useFactory=p77,I[zp]=[_.fj,Qv,_.Zp],I));I={};z.addProvider((I.provide=li4,I.useClass=kD,I[zp]=[ppz],I));z.addProvider({provide:roE,
useClass:jwV});z.addProvider({provide:UOe,useClass:RIi});I=[].concat(_.ih(MK));_.K("web_continuation_response_processing")&&I.push(_.R5);I.push(O_f);_.K("enable_share_panel_navigation_logging_fix_on_web")&&I.push(_.Tho);z.addProvider({provide:v4G,useValue:I});z.addProvider({provide:OkM,useClass:o7M});z.addProvider({provide:xLZ,useClass:VuY});I={};z.addProvider((I.provide=uI0,I.useClass=grw,I[zp]=[r0],I));_.GW.addLowPriorityJob(function(){ozI()});
I={};z.addProvider((I.provide=kvv,I.useFactory=function(E){return function(O){var f,A=(f=_.H(O.commandMetadata,_.O_))==null?void 0:f.url;if(!A)throw new _.Fn("No URL for PBJ Command",O);A=s_7(A,{pbj:"1"});f=U$M(A,{})||{};f=Object.assign({},f,{"Content-Type":"application/x-www-form-urlencoded","x-youtube-csoc":"1","X-YouTube-STS":_.Xw("STS").toString()});O=_.By({command:JSON.stringify(O),session_token:_.Xw("XSRF_TOKEN")});return E.fetch(A,{method:"POST",headers:f,body:O})}},I[zp]=[xLZ],I));
I=[];I.push(z.resolve(UOe));J={};J=(J.client_location=_.$h.getInstance(),J.consistency=_.Vzd(),J.entities=z.resolve(yho),J.response_received_commands=z.resolve(OkM),J.store=z.resolve(_.CBd),J.tokens=z.resolve(UOe),J);_.K("web_service_params_response_processor")&&(z.addProvider({provide:F9f,useFactory:function(){var E={};return E.CSI=BvG(),E.ECATCHER=EmG(),E}}),z.addProvider({provide:Jnd,
useClass:H4Z}),J.service_params=z.resolve(Jnd));if(_.K("web_shorts_prefetch_service_enabled")){var r=new fjM(z.resolve(_.AM));J.shorts_prefetch=r}J.adblock_detection=z.resolve(uI0);z.addProvider({provide:_.wo,useClass:_.wo});r=z.resolve(_.aji);var P=[];_.K("PremiumClientSharedConfig__enable_att_context_processor")&&(z.addProvider({provide:vrX,useClass:SPv}),P.push(z.resolve(vrX)));if(_.K("owl_pl_await")){var N={};z.addProvider((N.provide=IxZ,N.useFactory=function(E){return new jt0(E)},N[zp]=[_.wo],
N));
P.push(z.resolve(IxZ))}rO1(r,z.resolve(xLZ),z.resolve(NOZ),J,z.resolve(_.AM),I,P,z.resolve(li4),z.resolve(roE));z.addProvider({provide:_.dY,useValue:_.w4.instance});_.K("start_client_gcf")&&z.addProvider({provide:hJ,useValue:drv()});z.addProvider({provide:rez,useFactory:function(){return new rez(_.ab().resolve(_.wo),_.Xo.getInstance())}});
_.yT().parkOrScheduleJob(function(){P0Z()},1,"eocs");
I={};z.addProvider((I.provide=As,I.useClass=As,I[zp]=[_.Zp,_.dY],I));z.addProvider({provide:_.HZM,useFactory:_.$n.getInstance});_.yT().parkOrScheduleJob(function(){_.ab().resolve(As).refresh()},0,"eocs");
M0j(GjE.watchEndpointMap||{},r.reelWatchEndpointMap||{},a.injector.resolve(_.dY));z.addProvider({provide:Hq,useValue:_.ir.instance});_.K("kevlar_signal_collection_killswitch")||(I={},z.addProvider((I.provide=yoZ,I.useClass=yoZ,I[zp]=[dm,gA],I)),_.yT().parkOrScheduleJob(function(){_.ab().resolve(yoZ).record()},1,"eocs"));
_.K("web_debug_handler_registration_killswitch")||_.yT().parkOrScheduleJob(function(){BH0("DOWNLOAD_PES",Apx);_.K("offline_client_state_export_ks")||BH0("OFFLINE_CLIENT_STATE",g50)},0,"eocs");
_.K("kevlar_prevent_polymer_dynamic_font_load")&&_.yT().parkOrScheduleJob(function(){var E=[_.Jz(DLY),_.Jz(R7f)];E=_.C(E);for(var O=E.next();!O.done;O=E.next()){O=O.value;var f=document.createElement("link");_.eu(f,O,"stylesheet");document.head.appendChild(f)}},1,"eocs");
I=a.injector.resolve(_.dY);_.xNl.instance=new _.xNl(I);cg0(F2e(new izX(I)));I={};a.injector.addProvider((I.provide=jH,I.useFactory=function(E){(E=E==null?void 0:E.getCurrentPage())?E=E.visibilityObserver:(CEi||(CEi=G4d()),E=CEi);return E},I[zp]=[_.eL(_.aK)],I.skipCache=!0,I));
z.addProvider({provide:_.UJ,useClass:ls});z.addProvider({provide:Vn,useClass:kkO});a.injector.addProvider({provide:lbX,useValue:MCJ});z.addProvider({provide:$fo,useValue:Ez1});z.addProvider({provide:_.kN,useValue:b21});a=z.addProvider;hiE||(hiE=new bZG);a.call(z,{provide:_.hs,useValue:hiE});z.addProvider({provide:_.cl,useValue:_.Xw("HTML_DIR")==="rtl"?"rtl":"ltr"});z.addProvider({provide:Mmw,useClass:PG0});z.addProvider({provide:_.gd,useClass:Vm});_.ab().addProvider({provide:YPv,useValue:_.K("enable_web_delhi_icons")?
r7M.concat(ZoM):J70.concat(PEZ)});z.addProvider({provide:_.SO,useClass:_.SO});z.addProvider({provide:_.dLe,useValue:new TOG});z.addProvider({provide:pCJ,useClass:pje});z.addProvider({provide:bW,useClass:bW});z.addProvider({provide:QZ,useClass:QZ});a={};z.addProvider((a.provide=qG,a.useClass=qG,a[zp]=[_.dY,_.X3],a));z.addProvider({provide:pq,useClass:pq});z.addProvider({provide:Npi,useClass:sZ0});z.addProvider({provide:v2,useClass:v2});z.addProvider({provide:x6O,useValue:gyj});z.addProvider({provide:_.cQ,
useClass:wjv});_.K("enable_payments_purchase_manager")&&z.addProvider({provide:TwE,useClass:GAX});z.addProvider({provide:ULZ,useFactory:function(){return function(E){return _.oPV(E)}}});
z.addProvider({provide:_.dOV,useClass:Wde});a={};z.addProvider((a.provide=RS,a.useClass=RS,a[zp]=[_.dOV],a));z.addProvider({provide:SA,useClass:SA});z.addProvider({provide:Inw,useValue:WnO});z.addProvider({provide:CTO,useValue:_.X44});z.addProvider({provide:hUO,useClass:AeZ});z.addProvider({provide:Vfe,useValue:oxM});a={};z.addProvider((a.provide=QZM,a.useClass=SGE,a[zp]=[Vfe],a));a={};z.addProvider((a.provide=_.bH,a.useClass=DR4,a[zp]=[QZM],a));a={};z.addProvider((a.provide=_.xn,a.useClass=is,a[zp]=
[_.mP,_.vw],a));if(_.K("web_explore_hub_on_hover")||_.K("web_client_explore_hub_on_hover"))a={},z.addProvider((a.provide=XA,a.useClass=XA,a[zp]=[_.dY,rR],a));if(_.K("web_enable_renderer_logger")){var u=new CjZ;EV3(function(){u.abort()});
z.addProvider({provide:mdm,useValue:new MI0(u.signal)})}z.addProvider({provide:mBJ,useValue:Ua0});a={};z.addProvider((a.provide=xd0,a.useClass=AoZ,a[zp]=[_.dY],a))}},NQe);var uCz={},Ele=(uCz.initialized={priority:10,callback:function(){if(!b4Z){mpx();OYx("FOREGROUND_HEARTBEAT_TRIGGER_ON_FOREGROUND");_.Ne(_.nt(OYx,"FOREGROUND_HEARTBEAT_TRIGGER_ON_INTERVAL"),3E4);if(_.K("log_heartbeat_with_lifecycles")){var a={};Ps.instance||(Ps.instance=new Ps);Ps.instance.install((a.document_visible={callback:f2x,priority:10},a.document_hidden={callback:f2x,priority:10},a))}else _.ep(document,"visibilitychange",f2x);b4Z=!0}(a=_.TX())&&a!=="UNDEFINED_CSN"&&AAd(a)}},uCz);var BQG={},glM=(BQG.initialized={callback:function(a){var z=_.uq(232091),I=a.injector.resolve(_.d7);_.Aq(I,z);window.performance&&window.performance.getEntriesByType&&typeof window.performance.getEntriesByType==="function"?y8m()&&_.nJ(I,z):(a=a.injector.resolve(ULZ)("refresh_detector"))&&(a.get("first_tab_load")?_.nJ(I,z):a.set("first_tab_load","1"))}},BQG);var OoZ={},fJf=(OoZ.initialized={priority:10,callback:j6G},OoZ);var A70={},sfZ=(A70.initialized={priority:0,callback:function(){var a=new $Co,z="other";_.gL?z="chrome":_.Bb?z="firefox":_.Wy?z="safari":cy&&(z="edge");document.hasStorageAccess?document.hasStorageAccess().then(function(I){a.increment(_.sz(),I,z)}).catch(function(){a.increment(_.sz(),!1,z)}):a.increment(_.sz(),!1,z)}},A70);var nlE={},KGZ=(nlE.rendering={priority:8,callback:zWi},nlE);var FG0={},Hoz=(FG0.rendering={priority:10,callback:Anx},FG0.rendered={callback:fnx},FG0),boM={},h2z=(boM.rendering={callback:Anx},boM.rendered={callback:fnx},boM);var VW0=!1,QfE={},SSM=(QfE.initialized={priority:10,callback:function(){VW0||(A$O({didPatch:function(a){a.el&&Q93(a.el,a.props)},
didUnmount:function(a){h97(a.el)}}),VW0=!0)}},QfE);var ioi=/^\/shorts\/?$/;_.$S("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(_.K("kevlar_enable_mss")){_.YzO(new s_G);var xC0=!0,vlE,wH;xC0=xC0===void 0?!1:xC0;vlE=vlE===void 0?!1:vlE;wH=wH===void 0?{}:wH;var Gaf=wH.cssRowKey||"",$Ce=wH.combinedSignature||"";!Gaf&&window&&window._F_cssRowKey&&(Gaf=window._F_cssRowKey,!$Ce&&window._F_combinedSignature&&($Ce=window._F_combinedSignature));if(Gaf&&typeof window._F_installCss!=="function")throw Error("td");var XWV=wH.loaderClass||_.wa,mC=ok7("base-js"),TQi,dCZ=DVO("",mC);TQi=_.H9(dCZ);var ym=new XWV(TQi,Gaf,$Ce,xC0,vlE),WGe=
wH.useCors||mC&&mC.hasAttribute("crossorigin"),olG=wH.corsMode||mC&&mC.getAttribute("crossorigin");WGe&&(ym.useCors_=WGe);olG&&(ym.corsMode_=olG);wH.urlMaxLength&&(ym.urlMaxLength=wH.urlMaxLength);wH.fetchPriority&&(ym.fetchPriority=wH.fetchPriority);var UCZ=SW();UCZ.JSC$10011_loader_=ym;UCZ.setBatchModeEnabled(!0)}
(function(){var a=document.querySelector("ytd-app");if(!a)throw Error("Kj");a=new Gk({root:a,injector:_.ab()});a.install(Ele);var z={};a.install((z.initialized={priority:10,callback:HO$},z));_.K("wp_lat_b")&&(z={},a.install((z.initialized={priority:10,callback:function(){J6$()}},z)));
z={};a.install((z.rendered={priority:0,callback:ned},z));z={};a.install((z.rendered={priority:0,callback:function(){_.GW.addLowPriorityJob(function(){_.ZG4>1&&(Ee1(),Ar3())},4E4)}},z));
a.install(Exe);a.install(glM);a.install(SSM);UW0();a.install(K6M);a.install(PhV);a.install(tdV);a.install(DE0);a.install(wef);a.install(slZ);a.install(tWG);_.K("kevlar_enable_mss_lazy_load")&&a.install(fJf);a.install(ChE);a.install(sfZ);if(!_.TZ("IS_SHELL_LOAD")||_.K("kevlar_fetch_initial_data_promise_client")||_.K("sw_nav_preload_pbj")){var I=_.ul(window.location.href);z=I&&I==="/watch";I=I&&I.match(ioi);z?a.install(h2z):I?a.install(KGZ):a.install(Hoz)}else a.install(IIY);a.install(gxZ);_.K("web_enable_prefetching_videos_on_home")&&
a.install(hEz);_.K("start_client_gcf")&&a.install(K9E);a.install(TfZ);(new XWi).increment("INSTALLED");a.install(HuY);a.install(aI4);a.transition("initialized");cpG()})();
_.uk=[[["ejMza2luZCN2anNjbzVjanM=","MnZhbHVlI2ljazJhN3hiZWhs"],"cGdkQURfUExBQ0VNRU5UX0tJTkRfRU5EI3Y3eWRoMXB6Mw=="]];_.tv=["aWUxanFycWYyZ2xvYmFsQ2FsbGJhY2tzI3hncQ==","bno0b25BYm5vcm1hbGl0eURldGVjdGVkIzRjZDR1cWUydw==","a2lwI2RraHl1aGo1ZmhnbW9uQWRT","cmNpeGpyYXdfcGxheWVyX3Jlc3BvbnNlI2RvZjQxbms=","NHJ0bXQwcGFkUGxhY2VtZW50Q29uZmlnI2V0cHE3"];_.eK="aWUxanFycWYyZ2xvYmFsQ2FsbGJhY2tzI3hncQ== bno0b25BYm5vcm1hbGl0eURldGVjdGVkIzRjZDR1cWUydw== a2lwI2RraHl1aGo1ZmhnbW9uQWRT cmNpeGpyYXdfcGxheWVyX3Jlc3BvbnNlI2RvZjQxbms= X3F1ZXVlX211bHRpcGxlX3NraXBzX2tzI3JlYWZlbzdudmw1OXdlYl9wbGF5bGlzdA== X2VmI2Z6Z2hmNzNna2YwOGFiX3Nh NHJ0bXQwcGFkUGxhY2VtZW50Q29uZmlnI2V0cHE3".split(" ");
_._ModuleManager_initialize=function(a,z){if(!_.Vc){if(!_.Qc)return;_.YzO(_.Qc())}_.Vc.setAllModuleInfoString(a,z)};
_._ModuleManager_initialize('kevlar_base_module/sy1/sy2/sy3/sy4:2,3/sy5:2,3/sy6/sy7/sy8/sy9/sya/syb/kevlar_main_module:1,4,5,6,7,8,9/syd:2/syc:5,a,d/sye:e/syf/syg:6/syh/h8y2qb:4,f,g,h,i/syi/JzFVk:d,h,i,k/syj:8/xwEKAe:3,9,g,i,m/syk:e/syl:1,b,e,g,k,m/sym:p/nmfa2d:i,o,q/syn:7,p/syo:h,i,q,s/CF909:o,t/Tm0L3c:t/L3n37:f,h,i,o,s/iuT5Oc',['sy2','sy3','sy8','syd','sya','sy5','syj','syi','syf','syc','syb','sy1','syl','sy7','sy6','syn','sym','syh','syg','syk','sye','syo','sy9','sy4','iuT5Oc','L3n37','Tm0L3c','CF909','nmfa2d','xwEKAe','JzFVk','h8y2qb','kevlar_main_module']);
}catch(e){_._DumpException(e)}
try{
_.Yn=function(a,z,I,J,r){var P={};z&&(P[z]=I);J?P.errorType=J:r&&(P.errorReason=r);_.x0(a,P);_.va()};
_.q7=function(a){var z=_.yT();return _.LBI(z,a,1)};
_.vK({is:"iron-media-query",_template:null,properties:{queryMatches:{type:Boolean,value:!1,readOnly:!0,notify:!0},query:{type:String,observer:"queryChanged"},full:{type:Boolean,value:!1},_boundMQHandler:{value:function(){return this.queryHandler.bind(this)}},
_mq:{value:null}},attached:function(){this.style.display="none";this.queryChanged()},
detached:function(){this._remove()},
_add:function(){this._mq&&this._mq.addListener(this._boundMQHandler)},
_remove:function(){this._mq&&this._mq.removeListener(this._boundMQHandler);this._mq=null},
queryChanged:function(){this._remove();var a=this.query;a&&(this.full||a[0]==="("||(a="("+a+")"),this._mq=window.matchMedia(a),this._add(),this.queryHandler(this._mq))},
queryHandler:function(a){this._setQueryMatches(a.matches)}});var c7E;var YSY;var qSG=function(){};
_.Z=qSG.prototype;_.Z.addOwnKeyBinding=function(){};
_.Z.removeOwnKeyBindings=function(){};
_.Z.keyboardEventMatchesKeys=function(){};
_.Z._collectKeyBindings=function(){};
_.Z._prepKeyBindings=function(){};
_.Z._addKeyBinding=function(){};
_.Z._resetKeyEventListeners=function(){};
_.Z._listenKeyEventListeners=function(){};
_.Z._unlistenKeyEventListeners=function(){};
_.Z._onKeyBindingEvent=function(){};
_.Z._triggerKeyHandler=function(){};
_.Z._tapHandler=function(){};
_.Z._focusChanged=function(){};
_.Z._detectKeyboardFocus=function(){};
_.Z._userActivate=function(){};
_.Z._upHandler=function(){};
_.Z._spaceKeyDownHandler=function(){};
_.Z._spaceKeyUpHandler=function(){};
_.Z._asyncClick=function(){};
_.Z._pressedChanged=function(){};
_.Z._ariaActiveAttributeChanged=function(){};
_.Z._activeChanged=function(){};
_.Z._controlStateChanged=function(){};
_.Z._changedButtonState=function(){};
_.Z._focusBlurHandler=function(){};
_.Z._disabledChanged=function(){};
_.Z._changedControlState=function(){};
_.Z._downHandler=function(){};
_.Z.ensureRipple=function(){};
_.Z.getRipple=function(){};
_.Z.hasRipple=function(){};
_.Z._noinkChanged=function(){};
_.Z._focusedChanged=function(){};
_.Z._createRipple=function(){};
_.Z.registered=function(){};
_.Z._invalidChanged=function(){};
_.Z.hasValidator=function(){};
_.Z.validate=function(){};
_.Z._getValidity=function(){};
_.Z._requiredChanged=function(){};
_.Z._valueChanged=function(){};
_.Z._checkedChanged=function(){};
_.Z._buttonStateChanged=function(){};
_.Z._setPressed=function(){};
_.Z._setPointerDown=function(){};
_.Z._setReceivedFocusFromKeyboard=function(){};
_.Z._setFocused=function(){};
qSG=_.vK({is:"tp-yt-paper-radio-button",_template:function(){if(YSY!==void 0)return YSY;var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:tp-yt-paper-radio-button--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,third_party.javascript.youtube_components.tp_yt_paper_radio_button.tp.yt.paper.radio.button.css.js--\x3e<div id="radioContainer" style-target="container" class="style-scope tp-yt-paper-radio-button">\n  <div id="offRadio" class="style-scope tp-yt-paper-radio-button"></div>\n  <div id="onRadio" class="style-scope tp-yt-paper-radio-button"></div>\n</div><div id="radioLabel" style-target="label" class="style-scope tp-yt-paper-radio-button"><slot class="style-scope tp-yt-paper-radio-button"></slot></div>\n');
a.content.insertBefore(_.w().content.cloneNode(!0),a.content.firstChild);var z=a.content,I=z.insertBefore;c7E===void 0&&(c7E=document.createElement("template"));var J=c7E;I.call(z,J.content.cloneNode(!0),a.content.firstChild);return YSY=a},
behaviors:[_.Pgw],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(){_.Yv(this,function(){if(this.getComputedStyleValue("--calculated-paper-radio-button-ink-size").trim()==="-1px"){var a=parseFloat(this.getComputedStyleValue("--calculated-paper-radio-button-size").trim()),z=Math.floor(3*a);z%2!==a%2&&z++;this.updateStyles({"--paper-radio-button-ink-size":z+"px"})}})}});var e20;var aTZ;_.vK({_template:function(){if(aTZ!==void 0)return aTZ;var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:tp-yt-paper-radio-group--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,third_party.javascript.youtube_components.tp_yt_paper_radio_group.tp.yt.paper.radio.group.css.js--\x3e<slot class="style-scope tp-yt-paper-radio-group"></slot>\n');a.content.insertBefore(_.w().content.cloneNode(!0),
a.content.firstChild);var z=a.content,I=z.insertBefore;e20===void 0&&(e20=document.createElement("template"));var J=e20;I.call(z,J.content.cloneNode(!0),a.content.firstChild);return aTZ=a},
is:"tp-yt-paper-radio-group",behaviors:[_.nci],hostAttributes:{role:"radiogroup"},properties:{attrForSelected:{type:String,value:"name"},selectedAttribute:{type:String,value:"checked"},selectable:{type:String,value:"tp-yt-paper-radio-button"},allowEmptySelection:{type:Boolean,value:!1}},select:function(a){var z=this._valueToItem(a);if(!z||!z.hasAttribute("disabled")){if(this.selected){z=this._valueToItem(this.selected);if(this.selected==a)if(this.allowEmptySelection)a="";else{z&&(z.checked=!0);return}z&&
(z.checked=!1)}_.mZ.select.apply(this,[a]);this.fire("paper-radio-group-changed")}},
_activateFocusedItem:function(){this._itemActivate(this._valueForItem(this.focusedItem),this.focusedItem)},
_onUpKey:function(a){this._focusPrevious();a.preventDefault();this._activateFocusedItem()},
_onDownKey:function(a){this._focusNext();a.preventDefault();this._activateFocusedItem()},
_onLeftKey:function(a){_.sKo._onLeftKey.apply(this,arguments);this._activateFocusedItem()},
_onRightKey:function(a){_.sKo._onRightKey.apply(this,arguments);this._activateFocusedItem()},
_applySelection:function(){_.mZ._applySelection.apply(this,arguments)},
_resetTabindices:function(){_.X7._resetTabindices.apply(this,arguments);this.items.forEach(function(a){a.removeAttribute("aria-selected")},this)}});var jhi;_.$q("multiPageMenuSectionItems","compactLinkRenderer","ytd-compact-link-renderer");var eO=function(){return _.G.apply(this,arguments)||this};
_.b(eO,_.G);_.Z=eO.prototype;_.Z.computeHasPrimaryIcon=function(a){return!(!a.icon&&!a.thumbnail)};
_.Z.computeHasSecondary=function(a){return!(!a.secondaryIcon&&!a.secondaryNotificationText)};
_.Z.computeHideSecondaryString=function(a){return!_.K("disable_hide_empty_secondary_string")&&!a.secondaryNotificationText};
_.Z.computeCompactLinkStyle=function(a){return a?a.toLowerCase().replace(/_/g,"-"):""};
_.Z.computeHasFitHeight=function(a){return a==="COMPACT_LINK_STYLE_TYPE_TVFILM_ENTITY_PROVIDER_ATTRIBUTION"};
_.Z.isActiveEndpoint=function(a){return(a=this.get("commandMetadata.webCommandMetadata.url",a))?_.ul(window.location.href)!=="/account_transfer_channel"&&_.ul(window.location.href)!=="/gaia_link"&&_.ul(window.location.href)!=="/channel_switcher"||a!=="/account"?_.ul(window.location.href)===a:!0:!1};
_.Z.onTap=function(){var a;((a=this.data)==null?0:a.serviceEndpoint)&&_.N$(this.hostElement,[this.data.serviceEndpoint])};
eO.prototype.onTap=eO.prototype.onTap;_.L([_.Q(_.k.YtRendererBehavior),_.p("design:type",Object)],eO.prototype,"ytRendererBehavior",void 0);_.L([_.x(),_.p("design:type",Object)],eO.prototype,"data",void 0);_.L([_.x({reflectToAttribute:!0,computed:"isActiveEndpoint(data.navigationEndpoint)"}),_.p("design:type",Boolean)],eO.prototype,"active",void 0);_.L([_.x({reflectToAttribute:!0,computed:"computeCompactLinkStyle(data.style)"}),_.p("design:type",String)],eO.prototype,"compactLinkStyle",void 0);
_.L([_.x({computed:"computeIcon_(data.icon)"}),_.p("design:type",Object)],eO.prototype,"icon",void 0);_.L([_.x({computed:"computeIcon_(data.secondaryIcon)"}),_.p("design:type",Object)],eO.prototype,"secondaryIcon",void 0);_.L([_.x({computed:"computeHasSecondary(data)",reflectToAttribute:!0}),_.p("design:type",Boolean)],eO.prototype,"hasSecondary",void 0);_.L([_.x({computed:"computeHideSecondaryString(data)",reflectToAttribute:!0}),_.p("design:type",Boolean)],eO.prototype,"hideSecondaryString",void 0);
_.L([_.gz("tap"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],eO.prototype,"onTap",null);_.L([_.U({is:"ytd-compact-link-renderer",disableElementRegistration:!0})],eO);
_.D(eO,"ytd-compact-link-renderer",function(){if(jhi!==void 0)return jhi;var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-compact-link-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<a id="endpoint" class="yt-simple-endpoint style-scope ytd-compact-link-renderer" href$="[[computeHref_(data.navigationEndpoint)]]" data="[[data.navigationEndpoint]]" role="link" tabindex="-1">\n  \n  <tp-yt-paper-item role="none" class="style-scope ytd-compact-link-renderer">\n    <div id="content-icon" hidden="[[!computeHasPrimaryIcon(data)]]" class="style-scope ytd-compact-link-renderer">\n      <yt-img-shadow fit-height="[[computeHasFitHeight(data.style)]]" height="40" hidden="[[!data.thumbnail]]" thumbnail="[[data.thumbnail]]" width="40" class="style-scope ytd-compact-link-renderer">\n      </yt-img-shadow>\n      <yt-icon disable-upgrade$="[[!icon]]" hidden="[[!icon]]" icon="[[icon]]" class="style-scope ytd-compact-link-renderer">\n      </yt-icon>\n    </div>\n    <div id="primary-text-container" class="style-scope ytd-compact-link-renderer">\n      <yt-formatted-string id="label" text="[[data.title]]" class="style-scope ytd-compact-link-renderer"></yt-formatted-string>\n      <yt-formatted-string id="subtitle" text="[[data.subtitle]]" class="style-scope ytd-compact-link-renderer"></yt-formatted-string>\n    </div>\n    <yt-icon id="right-icon" disable-upgrade$="[[!secondaryIcon]]" hidden="[[!secondaryIcon]]" icon="[[secondaryIcon]]" class="style-scope ytd-compact-link-renderer">\n    </yt-icon>\n    <yt-formatted-string id="secondary-text" hidden="[[hideSecondaryString]]" text="[[data.secondaryNotificationText]]" class="style-scope ytd-compact-link-renderer">\n    </yt-formatted-string>\n  </tp-yt-paper-item>\n</a>\n');a.content.insertBefore(_.w().content.cloneNode(!0),
a.content.firstChild);return jhi=a},{mode:1});var z00;_.$q("multiPageMenuSectionItems","toggleThemeCompactLinkRenderer","ytd-toggle-theme-compact-link-renderer");
var aF=function(){var a=_.G.apply(this,arguments)||this;a.role="link";a.tabindex="0";a.actionMap=_.K("kevlar_move_theme_action_handlers_killswitch")?{"yt-signal-action-toggle-dark-theme-on":"handleSignalActionToggleDarkThemeOn","yt-signal-action-toggle-dark-theme-off":"handleSignalActionToggleDarkThemeOff","yt-signal-action-toggle-dark-theme-device":"handleSignalActionToggleDarkThemeDevice"}:{};return a};
_.b(aF,_.G);_.Z=aF.prototype;_.Z.dataChanged=function(){this.data&&(this.data.label?this.label=this.data.label:this.label=_.xh()==="USER_INTERFACE_THEME_DARK"?this.data.toggledOnTitle:this.data.toggledOffTitle)};
_.Z.getCurrentTheme=function(){return _.vh()?document.documentElement.hasAttribute("dark")?"USER_INTERFACE_THEME_DARK":"USER_INTERFACE_THEME_LIGHT":_.xh()};
_.Z.onThemeSelected=function(a,z){var I=a||z?a:_.ik(),J=(I&&this.getCurrentTheme()!=="USER_INTERFACE_THEME_DARK"||!I&&this.getCurrentTheme()!=="USER_INTERFACE_THEME_LIGHT")&&!_.HdG(_.ul(window.location.href));_.Fz(0,165,a);_.Fz(0,174,z);this.prefs.save();J&&_.ZF(this.hostElement,"yt-dark-mode-toggled-action",[I]);_.ZF(this.hostElement,"yt-close-popup-action",["ytd-multi-page-menu-renderer"])};
_.Z.onTap=function(){this.data.serviceEndpoint&&_.N$(this.hostElement,[this.data.serviceEndpoint])};
_.Z.handleSignalActionToggleDarkThemeOn=function(){this.onThemeSelected(!0,!1)};
_.Z.handleSignalActionToggleDarkThemeOff=function(){this.onThemeSelected(!1,!0)};
_.Z.handleSignalActionToggleDarkThemeDevice=function(){this.onThemeSelected(!1,!1)};
aF.prototype.onTap=aF.prototype.onTap;aF.prototype.dataChanged=aF.prototype.dataChanged;_.L([_.Q(_.Hc.YtActionHandlerBehavior),_.p("design:type",Object)],aF.prototype,"actionHandlerBehavior",void 0);_.L([_.Q(_.k.YtRendererBehavior),_.p("design:type",Object)],aF.prototype,"ytRendererBehavior",void 0);_.L([_.Q(_.e_),_.p("design:type",Object)],aF.prototype,"paperItemBehaviors",void 0);_.L([_.x(),_.p("design:type",Object)],aF.prototype,"data",void 0);_.L([_.x({value:function(){return _.Kt()}}),
_.p("design:type",_.ra)],aF.prototype,"prefs",void 0);_.L([_.x(),_.p("design:type",Object)],aF.prototype,"label",void 0);_.L([_.x({reflectToAttribute:!0}),_.p("design:type",Object)],aF.prototype,"role",void 0);_.L([_.x({reflectToAttribute:!0}),_.p("design:type",Object)],aF.prototype,"tabindex",void 0);_.L([_.Fe("data"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],aF.prototype,"dataChanged",null);
_.L([_.gz("tap"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],aF.prototype,"onTap",null);_.L([_.U({is:"ytd-toggle-theme-compact-link-renderer",disableElementRegistration:!0})],aF);
_.Cw()(aF,"ytd-toggle-theme-compact-link-renderer",function(){if(z00===void 0){var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-toggle-theme-compact-link-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="content-icon style-scope ytd-toggle-theme-compact-link-renderer">\n  <yt-icon id="primary-icon" disable-upgrade$="[[!data.primaryIcon.iconType]]" hidden="[[!data.primaryIcon.iconType]]" icon="[[data.primaryIcon.iconType]]" class="style-scope ytd-toggle-theme-compact-link-renderer">\n  </yt-icon>\n</div>\n<div id="label" class="style-scope ytd-toggle-theme-compact-link-renderer">[[getSimpleString(label)]]</div>\n<yt-icon id="secondary-icon" disable-upgrade$="[[!data.secondaryIcon.iconType]]" hidden="[[!data.secondaryIcon.iconType]]" icon="[[data.secondaryIcon.iconType]]" class="style-scope ytd-toggle-theme-compact-link-renderer">\n</yt-icon>\n');a.content.insertBefore(_.w().content.cloneNode(!0),
a.content.firstChild);z00=a}a=z00;return a},{allowedProps:["data"],
mode:1});
}catch(e){_._DumpException(e)}
try{
var J2G,r20;_.jb=function(a){return!!a.getOptions("captions")};
_.ITZ=function(a){return(a=a.getOption("captions","track"))?!!a.displayName:!1};
_.zh=function(a,z){_.Vr(z,a,function(){return J2G[z]},function(I){J2G[z]=I;
if(!_.K("mweb_player_ve_show_ks")){var J=_.TX(0);J&&I&&_.pt(J,I)}})};
_.IF=function(a){(a=J2G[a])&&_.nJ(_.Kw(),a)};
J2G={};var PFM;/*

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
*/
_.vK({_template:function(){if(PFM!==void 0)return PFM;var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:tp-yt-paper-checkbox--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,third_party.javascript.youtube_components.tp_yt_paper_checkbox.tp.yt.paper.checkbox.css.js--\x3e<div id="checkboxContainer" class="style-scope tp-yt-paper-checkbox">\n  <div id="checkbox" class$="[[_computeCheckboxClass(checked, invalid)]] style-scope tp-yt-paper-checkbox">\n    <div id="checkmark" class$="[[_computeCheckmarkClass(checked)]] style-scope tp-yt-paper-checkbox"></div>\n  </div>\n</div><div id="checkboxLabel" style-target="label" class="style-scope tp-yt-paper-checkbox"><slot class="style-scope tp-yt-paper-checkbox"></slot></div>\n');
a.content.insertBefore(_.w().content.cloneNode(!0),a.content.firstChild);var z=a.content,I=z.insertBefore;r20===void 0&&(r20=document.createElement("template"));var J=r20;I.call(z,J.content.cloneNode(!0),a.content.firstChild);return PFM=a},
is:"tp-yt-paper-checkbox",behaviors:[_.Pgw],hostAttributes:{role:"checkbox","aria-checked":!1,tabindex:0},properties:{ariaActiveAttribute:{type:String,value:"aria-checked"}},attached:function(){_.Yv(this,function(){if(this.getComputedStyleValue("--calculated-paper-checkbox-ink-size").trim()==="-1px"){var a=this.getComputedStyleValue("--calculated-paper-checkbox-size").trim(),z="px",I=a.match(/[A-Za-z]+$/);I!==null&&(z=I[0]);a=parseFloat(a);I=8/3*a;z==="px"&&(I=Math.floor(I),I%2!==a%2&&I++);this.updateStyles({"--paper-checkbox-ink-size":I+
z})}})},
_computeCheckboxClass:function(a,z){var I="";a&&(I+="checked ");z&&(I+="invalid");return I},
_computeCheckmarkClass:function(a){return a?"":"hidden"},
_createRipple:function(){this._rippleContainer=this.$.checkboxContainer;return _.JIJ._createRipple.call(this)}});var ZWz=new _.jv("radioButtonSurveyOptionRenderer"),CF4=new _.jv("checkboxSurveyOptionRenderer");var N1Y;var tJz;var upZ=0,J_=function(){var a=_.G.call(this)||this;a.selected=!1;a.isOverlay=!1;a.inputId="toggle-option-"+upZ;upZ++;return a};
_.b(J_,_.G);J_.prototype.onTap=function(){_.PA(this.hostElement,"ytd-toggle-option-clicked")};
_.L([_.x(),_.p("design:type",String)],J_.prototype,"label",void 0);_.L([_.x(),_.p("design:type",String)],J_.prototype,"inputId",void 0);_.L([_.x({reflectToAttribute:!0}),_.p("design:type",Object)],J_.prototype,"selected",void 0);_.L([_.x({reflectToAttribute:!0}),_.p("design:type",Object)],J_.prototype,"isOverlay",void 0);_.L([_.U({is:"ytd-toggle-option-renderer",disableElementRegistration:!0}),_.p("design:paramtypes",[])],J_);
_.D(J_,"ytd-toggle-option-renderer",function(){if(tJz!==void 0)return tJz;var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-toggle-option-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<input type="checkbox" id$="[[inputId]]" checked="[[selected]]" on-click="onTap" class="style-scope ytd-toggle-option-renderer">\n<label for$="[[inputId]]" class="style-scope ytd-toggle-option-renderer">[[label]]</label>\n');
a.content.insertBefore(_.w().content.cloneNode(!0),a.content.firstChild);return tJz=a},{mode:1});var r8=function(){var a=_.G.apply(this,arguments)||this;a.isToggleOption=!1;a.isOverlay=!1;return a};
_.b(r8,_.G);r8.prototype.onTap=function(a){a.preventDefault();this.data&&(a=!this.data.checked,this.set("data.checked",a),_.PA(this.hostElement,"ytd-checkbox-survey-option-changed",{checked:a,value:this.data.value}))};
_.eH.Object.defineProperties(r8.prototype,{label:{configurable:!0,enumerable:!0,get:function(){return this.data&&this.data.responseText?this.ytRendererBehavior.getSimpleString(this.data.responseText):""}}});
r8.prototype.onTap=r8.prototype.onTap;_.L([_.Q(_.k.YtRendererBehavior),_.p("design:type",Object)],r8.prototype,"ytRendererBehavior",void 0);_.L([_.x(),_.p("design:type",Object)],r8.prototype,"data",void 0);_.L([_.x(),_.p("design:type",Object)],r8.prototype,"isToggleOption",void 0);_.L([_.x(),_.p("design:type",Object)],r8.prototype,"isOverlay",void 0);_.L([_.S("data.responseText"),_.p("design:type",String),_.p("design:paramtypes",[])],r8.prototype,"label",null);
_.L([_.gz("ytd-toggle-option-clicked"),_.p("design:type",Function),_.p("design:paramtypes",[Event]),_.p("design:returntype")],r8.prototype,"onTap",null);_.L([_.U({is:"ytd-checkbox-survey-option-renderer",disableElementRegistration:!0})],r8);
_.D(r8,"ytd-checkbox-survey-option-renderer",function(){if(N1Y!==void 0)return N1Y;var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-checkbox-survey-option-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e\n<template is="dom-if" if="[[!isToggleOption]]" class="style-scope ytd-checkbox-survey-option-renderer">\n  <tp-yt-paper-checkbox checked="[[data.checked]]" on-tap="onTap" class="style-scope ytd-checkbox-survey-option-renderer">\n    [[label]]\n  </tp-yt-paper-checkbox>\n</template>\n\n<template is="dom-if" if="[[isToggleOption]]" class="style-scope ytd-checkbox-survey-option-renderer">\n  <ytd-toggle-option-renderer is-overlay="[[isOverlay]]" label="[[label]]" selected="[[data.checked]]" class="style-scope ytd-checkbox-survey-option-renderer"></ytd-toggle-option-renderer>\n</template>');a.content.insertBefore(_.w().content.cloneNode(!0),
a.content.firstChild);return N1Y=a},{mode:1});var EXM;var B1Z;var PF=function(){var a=_.G.apply(this,arguments)||this;a.checked=!1;a.isToggleOption=!1;return a};
_.b(PF,_.G);PF.prototype.onTap=function(){this.data&&(this.checked?_.ZF(this.hostElement,"ytd-inline-survey-option-deselect-action"):_.ZF(this.hostElement,"ytd-inline-survey-option-select-action",[this.hostElement]))};
PF.prototype.onTap=PF.prototype.onTap;_.L([_.Q(_.k.YtRendererBehavior),_.p("design:type",Object)],PF.prototype,"ytRendererBehavior",void 0);_.L([_.x(),_.p("design:type",Object)],PF.prototype,"data",void 0);_.L([_.x(),_.p("design:type",Object)],PF.prototype,"checked",void 0);_.L([_.x(),_.p("design:type",Object)],PF.prototype,"isToggleOption",void 0);_.L([_.gz("ytd-toggle-option-clicked"),_.p("design:type",Function),_.p("design:paramtypes",[Event]),_.p("design:returntype")],PF.prototype,"onTap",null);
_.L([_.U({is:"ytd-radio-button-survey-option-renderer",disableElementRegistration:!0})],PF);
_.D(PF,"ytd-radio-button-survey-option-renderer",function(){if(B1Z!==void 0)return B1Z;var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-radio-button-survey-option-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<template is="dom-if" if="[[!isToggleOption]]" class="style-scope ytd-radio-button-survey-option-renderer">\n  <tp-yt-paper-radio-button id="radio" checked="[[checked]]" on-click="onTap" class="style-scope ytd-radio-button-survey-option-renderer">\n    [[getSimpleString(data.option)]]\n  </tp-yt-paper-radio-button>\n</template>\n\n<template is="dom-if" if="[[isToggleOption]]" class="style-scope ytd-radio-button-survey-option-renderer">\n  <ytd-toggle-option-renderer label="[[getSimpleString(data.option)]]" selected="[[checked]]" class="style-scope ytd-radio-button-survey-option-renderer"></ytd-toggle-option-renderer>\n</template>\n');a.content.insertBefore(_.w().content.cloneNode(!0),
a.content.firstChild);return B1Z=a},{mode:1});var ZW=function(){var a=_.G.apply(this,arguments)||this;a.disableAnimation=!1;a.isToggleOption=!0;a.followUpSurveyCommand=null;a.selectedRatingEndpoint=null;a.isSlimlineSurveyFollowUp=!1;a.isShortsStyle=!1;a.styleOverrideAttribute=!0;a.isDarkMode=!1;a.isSubmitted=!1;a.roundedContainer=!0;a.improveShortsResponseRate=_.K("web_improve_shorts_response_rate");a.actionMap={"ytd-inline-survey-rating-select-action":"handleInlineSurveyRatingSelect","ytd-inline-survey-option-select-action":"handleInlineSurveyOptionSelect",
"ytd-inline-survey-option-deselect-action":"handleInlineSurveyOptionDeselect","yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return a};
_.b(ZW,_.G);_.Z=ZW.prototype;
_.Z.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"}}}}};
_.Z.attached=function(){var a=this;this.isDarkMode=document.documentElement.hasAttribute("dark");this.intersectionObserver=new IntersectionObserver(function(I){var J;if((J=I[0])!=null&&J.isIntersecting){_.sg().reportShown(a.hostElement);var r;(r=a.intersectionObserver)==null||r.unobserve(a.hostElement)}},{rootMargin:"0px",
threshold:.6});var z;(z=this.intersectionObserver)==null||z.observe(this.hostElement)};
_.Z.onDarkModeToggledAction=function(a){this.isDarkMode=a};
_.Z.dataChanged=function(){var a;if(((a=this.data)==null?void 0:a.style)==="INLINE_SURVEY_RENDERER_STYLE_SLIMLINE_FOLLOW_UP")this.isSlimlineSurveyFollowUp=!0;else{var z;((z=this.data)==null?void 0:z.style)==="INLINE_SURVEY_RENDERER_STYLE_SHORTS"?this.isShortsStyle=!0:this.expanded=!1}this.selectedRatingEndpoint=this.followUpSurveyCommand=null;var I,J,r,P;this.darkColorPalette=(I=this.data)==null?void 0:(J=I.inlineContent)==null?void 0:(r=J.compactVideoRenderer)==null?void 0:(P=r.thumbnail)==null?
void 0:P.darkColorPalette;var N,u,E,O;this.lightColorPalette=(N=this.data)==null?void 0:(u=N.inlineContent)==null?void 0:(E=u.compactVideoRenderer)==null?void 0:(O=E.thumbnail)==null?void 0:O.lightColorPalette;var f,A;if(((f=this.data)==null?0:(A=f.inlineContent)==null?0:A.compactVideoRenderer)&&this.isShortsStyle){var n,F,h,v;a=_.P8((n=this.data)==null?void 0:(F=n.inlineContent)==null?void 0:(h=F.compactVideoRenderer)==null?void 0:(v=h.thumbnail)==null?void 0:v.thumbnails);_.uK(this.hostElement,
{"--yt-background-url":"url("+a+")"})}};
_.Z.handleRequestCompletion=function(){this.hostElement.hidden&&_.PA(this.hostElement,"yt-dismissible-item-dismissed")};
_.Z.onPopupClosed=function(a){var z;((z=a.detail)==null?void 0:z.popupRenderer)===this.hostElement&&(this.isSlimlineSurveyFollowUp&&!this.isSubmitted?_.ZF(this.hostElement,"ytd-slimline-survey-show-action"):this.isSlimlineSurveyFollowUp&&this.isSubmitted&&(this.isSubmitted=!1))};
_.Z.handleInlineSurveyRatingSelect=function(a,z){var I=this;this.selectedRatingEndpoint=a;this.followUpSurveyCommand=z;this.expanded=!!a;this.getOptionRenderers().forEach(function(J,r){I.notifyPath("followUpSurveyCommand.followUpOptions."+r+".checkboxSurveyOptionRenderer.checked");I.set("followUpSurveyCommand.followUpOptions."+r+".checkboxSurveyOptionRenderer.checked",!1)});
this.optionSelector.selectIndex(-1);this.improveShortsResponseRate&&(this.onSubmitTap(),a=this.get("data.response.expandableSurveyResponseRenderer.submitButton.buttonRenderer.command"),_.ZF(this.hostElement,"yt-reel-non-video-content-dismissal-command",[a]))};
_.Z.onDismissTap=function(){if(this.isSlimlineSurveyFollowUp)_.ZF(this.hostElement,"yt-close-popup-action");else{this.hostElement.hidden=!0;var a,z=(a=this.data)==null?void 0:a.dismissalEndpoint;z&&this.ytComponentBehavior.resolveCommand(z)}};
_.Z.onSubmitTap=function(){this.selectedRatingEndpoint&&(this.ytComponentBehavior.resolveCommand(this.selectedRatingEndpoint),this.followUpSurveyCommand&&this.submitFollowUpResponses());this.isSlimlineSurveyFollowUp&&(this.isSubmitted=!0,_.ZF(this.hostElement,"yt-close-popup-action"))};
_.Z.submitFollowUpResponses=function(){if(this.getOptionRenderers().length!==0){if(this.isSingleSelect){if(!this.optionSelector.selectedItem)return;var a=[this.optionSelector.selectedItem.data.submissionEndpoint]}else{a=this.getOptionRenderers().filter(function(J){return J.checked});
if(a.length===0)return;a=a.map(function(J){return J.responseEndpoint})}var z=[];
a.forEach(function(J,r){r!==0&&(J=_.H(J,_.$K))&&J.feedbackToken&&z.push(J.feedbackToken)});
if(a=a[0]){var I={};z.length>0&&(I.extra_feedback_tokens=z);this.ytComponentBehavior.resolveCommand(a,{form:I})}}};
_.Z.getOptionRenderers=function(){var a=this;return this.followUpSurveyCommand&&this.followUpSurveyCommand.followUpOptions?this.get("followUpSurveyCommand.followUpOptions").map(function(z){a.isSingleSelect=!!_.H(z,ZWz);return a.isSingleSelect?_.H(z,ZWz):_.H(z,CF4)}):[]};
_.Z.handleInlineSurveyOptionSelect=function(a){a=this.optionSelector.indexOf(a);a!==-1&&this.optionSelector.selectIndex(a)};
_.Z.handleInlineSurveyOptionDeselect=function(){this.optionSelector.selectIndex(-1)};
_.Z.maybeGetBackgroundColor=function(a){return this.isDarkMode?a.section2Color:a.section3Color};
_.Z.colorPaletteChanged=function(){var a=this.isDarkMode?this.darkColorPalette:this.lightColorPalette;a=a&&this.maybeGetBackgroundColor(a);this.dismissibleEl.style.backgroundColor=!a||this.isShortsStyle||this.isSlimlineSurveyFollowUp?"":_.Da(a)};
_.eH.Object.defineProperties(ZW.prototype,{isOptionSelected:{configurable:!0,enumerable:!0,get:function(){return!!this.selectedRatingEndpoint}}});
ZW.prototype.colorPaletteChanged=ZW.prototype.colorPaletteChanged;ZW.prototype.onPopupClosed=ZW.prototype.onPopupClosed;ZW.prototype.handleRequestCompletion=ZW.prototype.handleRequestCompletion;ZW.prototype.dataChanged=ZW.prototype.dataChanged;_.L([_.Q(_.u4.YtRendererstamperBehavior),_.p("design:type",Object)],ZW.prototype,"ytRendererstamperBehavior",void 0);_.L([_.Q(_.Hc.YtActionHandlerBehavior),_.p("design:type",Object)],ZW.prototype,"actionHandlerBehavior",void 0);
_.L([_.Q(_.Ms.YtComponentBehavior),_.p("design:type",Object)],ZW.prototype,"ytComponentBehavior",void 0);_.L([_.Q(_.k.YtRendererBehavior),_.p("design:type",Object)],ZW.prototype,"ytRendererBehavior",void 0);_.L([_.Q(_.mD),_.p("design:type",Object)],ZW.prototype,"ytdDismissibleItemBehavior",void 0);_.L([_.A3("#follow-up-survey-options"),_.p("design:type",Object)],ZW.prototype,"optionSelector",void 0);_.L([_.x(),_.p("design:type",Object)],ZW.prototype,"data",void 0);
_.L([_.x(),_.p("design:type",Object)],ZW.prototype,"disableAnimation",void 0);_.L([_.x(),_.p("design:type",Object)],ZW.prototype,"isToggleOption",void 0);_.L([_.x(),_.p("design:type",Object)],ZW.prototype,"followUpSurveyCommand",void 0);_.L([_.x(),_.p("design:type",Object)],ZW.prototype,"selectedRatingEndpoint",void 0);_.L([_.x({reflectToAttribute:!0,value:!1}),_.p("design:type",Boolean)],ZW.prototype,"expanded",void 0);
_.L([_.x({reflectToAttribute:!0}),_.p("design:type",Object)],ZW.prototype,"isSlimlineSurveyFollowUp",void 0);_.L([_.x({reflectToAttribute:!0}),_.p("design:type",Object)],ZW.prototype,"isShortsStyle",void 0);_.L([_.x({reflectToAttribute:!0}),_.p("design:type",Object)],ZW.prototype,"styleOverrideAttribute",void 0);_.L([_.x(),_.p("design:type",Boolean)],ZW.prototype,"isSingleSelect",void 0);_.L([_.x(),_.p("design:type",Object)],ZW.prototype,"isDarkMode",void 0);
_.L([_.x(),_.p("design:type",Object)],ZW.prototype,"lightColorPalette",void 0);_.L([_.x(),_.p("design:type",Object)],ZW.prototype,"darkColorPalette",void 0);_.L([_.S("selectedRatingEndpoint","isShortsStyle"),_.x({reflectToAttribute:!0}),_.p("design:type",Boolean),_.p("design:paramtypes",[])],ZW.prototype,"isOptionSelected",null);_.L([_.x({reflectToAttribute:!0}),_.p("design:type",Object)],ZW.prototype,"roundedContainer",void 0);
_.L([_.x({reflectToAttribute:!0}),_.p("design:type",Object)],ZW.prototype,"improveShortsResponseRate",void 0);_.L([_.A3("#dismissible"),_.p("design:type",HTMLElement)],ZW.prototype,"dismissibleEl",void 0);_.L([_.A3("#dismiss-button yt-icon-button"),_.p("design:type",HTMLElement)],ZW.prototype,"dismissButtonEl",void 0);_.L([_.A3("#inline-survey-header yt-icon-button"),_.p("design:type",HTMLElement)],ZW.prototype,"inlineHeaderDismissButtonEl",void 0);
_.L([_.Fe("data"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],ZW.prototype,"dataChanged",null);_.L([_.gz("yt-service-request-completed"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],ZW.prototype,"handleRequestCompletion",null);_.L([_.gz("yt-popup-closed"),_.p("design:type",Function),_.p("design:paramtypes",[CustomEvent]),_.p("design:returntype")],ZW.prototype,"onPopupClosed",null);
_.L([_.O8("darkColorPalette","lightColorPalette","isDarkMode"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],ZW.prototype,"colorPaletteChanged",null);_.L([_.U({is:"ytd-inline-survey-renderer",disableElementRegistration:!0})],ZW);
_.D(ZW,"ytd-inline-survey-renderer",function(){if(EXM!==void 0)return EXM;var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-inline-survey-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="dismissible" class="style-scope ytd-inline-survey-renderer">\n  <div class="survey-wrapper style-scope ytd-inline-survey-renderer">\n    <div id="star-survey" class="style-scope ytd-inline-survey-renderer">\n      <div id="inline-survey-header" class="style-scope ytd-inline-survey-renderer">\n        <h2 class="header-text style-scope ytd-inline-survey-renderer">\n          <span id="title" class="style-scope ytd-inline-survey-renderer">[[getSimpleString(data.title)]]</span>\n          <span id="subtitle" class="style-scope ytd-inline-survey-renderer">[[getSimpleString(data.subtitle)]]</span>\n        </h2>\n        <yt-icon-button hidden="[[expanded]]" label="[[getSimpleString(data.dismissalText)]]" on-click="onDismissTap" class="style-scope ytd-inline-survey-renderer">\n          <yt-icon icon="yt-icons:close" class="style-scope ytd-inline-survey-renderer"></yt-icon>\n        </yt-icon-button>\n      </div>\n      <div id="inline-survey-compact-video-renderer" class="style-scope ytd-inline-survey-renderer"></div>\n      <div id="rating-survey" class="style-scope ytd-inline-survey-renderer"></div>\n    </div>\n    <div id="follow-up-survey" hidden="[[!expanded]]" class="style-scope ytd-inline-survey-renderer">\n      <div id="follow-up-header" class="style-scope ytd-inline-survey-renderer">\n        <h2 class="header-text style-scope ytd-inline-survey-renderer">\n          <span id="follow-up-title" class="style-scope ytd-inline-survey-renderer">\n            [[getSimpleString(followUpSurveyCommand.followUpText)]]\n          </span>\n        </h2>\n      </div>\n      <iron-selector id="follow-up-survey-options" activate-event="" selected-attribute="checked" class="style-scope ytd-inline-survey-renderer">\n      </iron-selector>\n      <div id="submit-btn-footer" class="style-scope ytd-inline-survey-renderer">\n        <ytd-button-renderer id="submit-button" data="[[data.response.expandableSurveyResponseRenderer.submitButton.buttonRenderer]]" on-click="onSubmitTap" class="style-scope ytd-inline-survey-renderer">\n        </ytd-button-renderer>\n      </div>\n    </div>\n  </div>\n  <div id="skip-btn-footer" class="style-scope ytd-inline-survey-renderer"></div>\n  <div id="dismiss-button" hidden="[[!expanded]]" class="style-scope ytd-inline-survey-renderer">\n    <yt-icon-button label="[[getSimpleString(data.dismissalText)]]" on-click="onDismissTap" class="style-scope ytd-inline-survey-renderer">\n      <yt-icon icon="yt-icons:close" class="style-scope ytd-inline-survey-renderer"></yt-icon>\n    </yt-icon-button>\n  </div>\n</div>\n<div id="dismissed" class="style-scope ytd-inline-survey-renderer">\n  <div id="post-submit-message" class="style-scope ytd-inline-survey-renderer"></div>\n  <div id="continue-btn-footer" class="style-scope ytd-inline-survey-renderer"></div>\n</div>\n');a.content.insertBefore(_.w().content.cloneNode(!0),
a.content.firstChild);return EXM=a},{mode:1});var gXf=["en-CA","en","es-MX","fr-CA"];_.OWZ=_.ec(function(a){var z=_.q3(a,{isOverlay:!1,isModern:!1}),I=z.captionIconType,J=z.onClick;a=z.ariaLabel;var r=z.ariaPressed,P=z.isOverlay,N=z.isModern;z=_.Mm("button",function(O){_.zh(O,127299)});
var u=_.g4(function(O){_.IF(127299);J==null||J(O);return!1}),E={};
return _.B("ytm-closed-captioning-button",{class:_.B8("ytmClosedCaptioningButtonHost",(E.ytmClosedCaptioningButtonIconDisabledOverlay=function(){return I()===-1&&P()},E.ytmClosedCaptioningButtonIconDisabled=function(){return I()===-1&&!P()},E))},_.B("button",{el:z,
class:"ytmClosedCaptioningButtonButton",title:a,"aria-label":a,"aria-pressed":r,"on:click":u},_.B(_.nS,{icon:function(){var O="",f=N();var A=f?"CLOSED_CAPTION_DELHI_PLAYER":"CLOSED_CAPTION";f=f?"SUBTITLES_DELHI_PLAYER":"SUBTITLES";var n=_.Kt().get("hl");A=!n||gXf.includes(n)?A:f;f=I();switch(f){case -1:case 0:O=A;break;case 1:O=A+"_FILLED";break;default:_.Rw(f)}return O}})))},"uf");
_.OWZ.idomCompat={callbacks:{onClick:!0}};
}catch(e){_._DumpException(e)}
try{
_.gy=function(a){return function(z,I){var J=a||I.replace(/([A-Z])/g,"-$1").toLowerCase();Object.defineProperty(z,I,{get:function(){var r;return this.$?this.$[J]:(r=_.fM(this))==null?void 0:r.querySelector("#"+J)},
enumerable:!0,configurable:!0})}};_.Ol=function(a){a=a===void 0?!1:a;_.FC.call(this);this.pubSub_=new _.gM(a);_.t7(this,this.pubSub_)};
_.rL(_.Ol,_.FC);_.Ol.prototype.subscribe=function(a,z,I){return this.isDisposed()?0:this.pubSub_.subscribe(a,z,I)};
_.Ol.prototype.unsubscribe=function(a,z,I){return this.isDisposed()?!1:this.pubSub_.unsubscribe(a,z,I)};
_.Ol.prototype.unsubscribeByKey=function(a){return this.isDisposed()?!1:this.pubSub_.unsubscribeByKey(a)};
_.Ol.prototype.publish=function(a,z){return this.isDisposed()?!1:this.pubSub_.publish.apply(this.pubSub_,arguments)};
}catch(e){_._DumpException(e)}
try{
var bYE=function(){_.Yn("ypcRedeemFlowStarted")},fY=function(a){_.Yn("ypcRedeemFlowFailed",void 0,void 0,void 0,a)},h9Z=function(a,z,I){z&&I&&(a.videos.forEach(function(J){J.videoId===z&&(J.itemId=I)}),a.recommendedVideos.forEach(function(J){J.videoId===z&&(J.itemId=I)}))};var VXZ;var Q9Y;/*

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
*/
_.vK({_template:function(){if(Q9Y!==void 0)return Q9Y;var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:tp-yt-iron-image--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,third_party.javascript.youtube_components.tp_yt_iron_image.tp.yt.iron.image.css.js--\x3e<a id="baseURIAnchor" href="#" class="style-scope tp-yt-iron-image"></a>\n<div id="sizedImgDiv" role="img" hidden$="[[_computeImgDivHidden(sizing)]]" aria-hidden$="[[_computeImgDivARIAHidden(alt)]]" aria-label$="[[_computeImgDivARIALabel(alt, src)]]" class="style-scope tp-yt-iron-image"></div>\n<img id="img" alt$="[[alt]]" hidden$="[[_computeImgHidden(sizing)]]" crossorigin$="[[crossorigin]]" on-load="_imgOnLoad" on-error="_imgOnError" class="style-scope tp-yt-iron-image">\n<div id="placeholder" hidden$="[[_computePlaceholderHidden(preload, fade, loading, loaded)]]" class$="[[_computePlaceholderClassName(preload, fade, loading, loaded)]] style-scope tp-yt-iron-image"></div>\n');
a.content.insertBefore(_.w().content.cloneNode(!0),a.content.firstChild);var z=a.content,I=z.insertBefore;VXZ===void 0&&(VXZ=document.createElement("template"));var J=VXZ;I.call(z,J.content.cloneNode(!0),a.content.firstChild);return Q9Y=a},
is:"tp-yt-iron-image",properties:{src:{type:String,value:""},alt:{type:String,value:null},crossorigin:{type:String,value:null},preventLoad:{type:Boolean,value:!1},sizing:{type:String,value:null,reflectToAttribute:!0},position:{type:String,value:"center"},preload:{type:Boolean,value:!1},placeholder:{type:String,value:null,observer:"_placeholderChanged"},fade:{type:Boolean,value:!1},loaded:{notify:!0,readOnly:!0,type:Boolean,value:!1},loading:{notify:!0,readOnly:!0,type:Boolean,value:!1},error:{notify:!0,
readOnly:!0,type:Boolean,value:!1},width:{observer:"_widthChanged",type:Number,value:null},height:{observer:"_heightChanged",type:Number,value:null}},observers:["_transformChanged(sizing, position)","_loadStateObserver(src, preventLoad)"],created:function(){this._resolvedSrc=""},
_imgOnLoad:function(){this.$.img.src===this._resolveSrc(this.src)&&(this._setLoading(!1),this._setLoaded(!0),this._setError(!1))},
_imgOnError:function(){this.$.img.src===this._resolveSrc(this.src)&&(this.$.img.removeAttribute("src"),this.$.sizedImgDiv.style.backgroundImage="",this._setLoading(!1),this._setLoaded(!1),this._setError(!0))},
_computePlaceholderHidden:function(){return!this.preload||!this.fade&&!this.loading&&this.loaded},
_computePlaceholderClassName:function(){return this.preload&&this.fade&&!this.loading&&this.loaded?"faded-out":""},
_computeImgDivHidden:function(){return!this.sizing},
_computeImgDivARIAHidden:function(){return this.alt===""?"true":void 0},
_computeImgDivARIALabel:function(){return this.alt!==null?this.alt:this.src===""?"":this._resolveSrc(this.src).replace(/[?|#].*/g,"").split("/").pop()},
_computeImgHidden:function(){return!!this.sizing},
_widthChanged:function(){this.style.width=isNaN(this.width)?this.width:this.width+"px"},
_heightChanged:function(){this.style.height=isNaN(this.height)?this.height:this.height+"px"},
_loadStateObserver:function(a,z){var I=this._resolveSrc(a);I!==this._resolvedSrc&&(this._resolvedSrc="",this.$.img.removeAttribute("src"),this.$.sizedImgDiv.style.backgroundImage="",a===""||z?this._setLoading(!1):(this._resolvedSrc=I,this.$.img.src=this._resolvedSrc,this.$.sizedImgDiv.style.backgroundImage='url("'+this._resolvedSrc+'")',this._setLoading(!0)),this._setLoaded(!1),this._setError(!1))},
_placeholderChanged:function(){this.$.placeholder.style.backgroundImage=this.placeholder?'url("'+this.placeholder+'")':""},
_transformChanged:function(){var a=this.$.sizedImgDiv.style,z=this.$.placeholder.style;a.backgroundSize=z.backgroundSize=this.sizing;a.backgroundPosition=z.backgroundPosition=this.sizing?this.position:"";a.backgroundRepeat=z.backgroundRepeat=this.sizing?"no-repeat":""},
_resolveSrc:function(a){a=_.Pv(a,this.$.baseURIAnchor.href);a.length>=2&&a[0]==="/"&&a[1]!=="/"&&(a=(location.origin||location.protocol+"//"+location.host)+a);return a}});var S2Y;var iY4;_.vK({_template:function(){if(iY4!==void 0)return iY4;var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:tp-yt-paper-card--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,third_party.javascript.youtube_components.tp_yt_paper_card.tp.yt.paper.card.css.js--\x3e<div class="header style-scope tp-yt-paper-card">\n  <tp-yt-iron-image hidden$="[[!image]]" aria-hidden$="[[_isHidden(image)]]" src="[[image]]" alt="[[alt]]" placeholder="[[placeholderImage]]" preload="[[preloadImage]]" fade="[[fadeImage]]" class="style-scope tp-yt-paper-card"></tp-yt-iron-image>\n  <div hidden$="[[!heading]]" class$="title-text [[_computeHeadingClass(image)]] style-scope tp-yt-paper-card">\n    [[heading]]\n  </div>\n</div>\n\n<slot class="style-scope tp-yt-paper-card"></slot>\n');
a.content.insertBefore(_.w().content.cloneNode(!0),a.content.firstChild);var z=a.content,I=z.insertBefore;S2Y===void 0&&(S2Y=document.createElement("template"));var J=S2Y;I.call(z,J.content.cloneNode(!0),a.content.firstChild);return iY4=a},
is:"tp-yt-paper-card",properties:{heading:{type:String,value:"",observer:"_headingChanged"},image:{type:String,value:""},alt:{type:String},preloadImage:{type:Boolean,value:!1},fadeImage:{type:Boolean,value:!1},placeholderImage:{type:String,value:null},elevation:{type:Number,value:1,reflectToAttribute:!0},animatedShadow:{type:Boolean,value:!1},animated:{type:Boolean,reflectToAttribute:!0,readOnly:!0,computed:"_computeAnimated(animatedShadow)"}},_isHidden:function(a){return a?"false":"true"},
_headingChanged:function(a){var z=this.getAttribute("heading"),I=this.getAttribute("aria-label");typeof I==="string"&&I!==z||this.setAttribute("aria-label",a)},
_computeHeadingClass:function(a){return a?" over-image":""},
_computeAnimated:function(a){return a}});var xW0=new _.jv("addRendererToItemSectionAction");var vme;var A6=function(){return _.G.apply(this,arguments)||this};
_.b(A6,_.G);A6.prototype.configureRendererStamper=function(){return{"data.actionMenu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}}}};
_.L([_.Q(_.k.YtRendererBehavior),_.p("design:type",Object)],A6.prototype,"rendererBehavior",void 0);_.L([_.Q(_.mD),_.p("design:type",Object)],A6.prototype,"dismissibleItemBehavior",void 0);_.L([_.Q(_.u4.YtRendererstamperBehavior),_.p("design:type",Object)],A6.prototype,"rendererstamperBehavior",void 0);_.L([_.x(),_.p("design:type",Object)],A6.prototype,"data",void 0);_.L([_.U({is:"ytd-comment-history-entry-renderer",disableElementRegistration:!0})],A6);
_.D(A6,"ytd-comment-history-entry-renderer",function(){if(vme!==void 0)return vme;var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-comment-history-entry-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="main style-scope ytd-comment-history-entry-renderer">\n  <yt-formatted-string class="summary style-scope ytd-comment-history-entry-renderer" link-inherit-color="" text="[[data.summary]]"></yt-formatted-string>\n  <ytd-expander class="content-expander style-scope ytd-comment-history-entry-renderer" hidden="[[!data.content]]" max-number-of-lines="4">\n    <yt-formatted-string class="content style-scope ytd-comment-history-entry-renderer" slot="content" force-default-style="" split-lines="" text="[[data.content]]">\n    </yt-formatted-string>\n    <span class="more-button style-scope ytd-comment-history-entry-renderer" slot="more-button">[[getSimpleString(data.readMoreText)]]</span>\n    <span class="less-button style-scope ytd-comment-history-entry-renderer" slot="less-button">[[getSimpleString(data.showLessText)]]</span>\n  </ytd-expander>\n  <yt-formatted-string class="timestamp style-scope ytd-comment-history-entry-renderer" text="[[data.timestamp]]"></yt-formatted-string>\n</div>\n<div id="menu" class="style-scope ytd-comment-history-entry-renderer"></div>\n');
a.content.insertBefore(_.w().content.cloneNode(!0),a.content.firstChild);return vme=a},{mode:1});var GnG;_.$q("itemSectionRenderer","notificationRenderer","ytd-notification-renderer");_.$q("multiPageMenuSectionItems","notificationRenderer","ytd-notification-renderer");var s2=function(){return _.G.apply(this,arguments)||this};
_.b(s2,_.G);_.Z=s2.prototype;_.Z.configureRendererStamper=function(){return{"data.contextualMenu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}},"data.highPriorityNotificationActionButton":{id:"call-to-action",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.Z.onKeyUp=function(a){if(a.keyCode===13)this.onTap()};
_.Z.onTap=function(){this.data.recordClickEndpoint&&_.ab().resolve(_.j6).resolveCommand(this.data.recordClickEndpoint,{form:{element:this.hostElement}});var a=this.data.navigationEndpoint;a&&_.H(a,_.UL)&&_.ab().resolve(_.j6).resolveCommand(a,{form:{element:this.hostElement}})};
_.Z.readChanged=function(){var a;_.CM(this.hostElement,"unread",!((a=this.data)==null?0:a.read))};
_.Z.dataChanged=function(){this.data&&_.CM(this.hostElement,"high-priority-notification",!!this.data.highPriorityNotification)};
_.Z.computeThumbnailSize=function(){var a;return((a=this.data)==null?0:a.highPriorityNotification)?32:48};
_.Z.getEndpointURL=function(a){return a&&!_.H(a,_.UL)?this.componentBehavior.computeHref_(a):null};
_.Z.getEndpointData=function(a){return a&&!_.H(a,_.UL)?a:null};
s2.prototype.computeThumbnailSize=s2.prototype.computeThumbnailSize;s2.prototype.dataChanged=s2.prototype.dataChanged;s2.prototype.readChanged=s2.prototype.readChanged;s2.prototype.onKeyUp=s2.prototype.onKeyUp;_.L([_.Q(_.k.YtRendererBehavior),_.p("design:type",Object)],s2.prototype,"ytRendererBehavior",void 0);_.L([_.Q(_.u4.YtRendererstamperBehavior),_.p("design:type",Object)],s2.prototype,"ytRendererstamperBehavior",void 0);
_.L([_.Q(_.Ms.YtComponentBehavior),_.p("design:type",Object)],s2.prototype,"componentBehavior",void 0);_.L([_.x(),_.p("design:type",Object)],s2.prototype,"data",void 0);_.L([_.x({computed:"computeThumbnailSize(data.highPriorityNotification)"}),_.p("design:type",Number)],s2.prototype,"thumbnailSize",void 0);_.L([_.gz("keyup"),_.p("design:type",Function),_.p("design:paramtypes",[KeyboardEvent]),_.p("design:returntype")],s2.prototype,"onKeyUp",null);
_.L([_.O8("data.read"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],s2.prototype,"readChanged",null);_.L([_.O8("data"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],s2.prototype,"dataChanged",null);_.L([_.O8("data.highPriorityNotification"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],s2.prototype,"computeThumbnailSize",null);
_.L([_.U({is:"ytd-notification-renderer",disableElementRegistration:!0})],s2);
_.D(s2,"ytd-notification-renderer",function(){if(GnG!==void 0)return GnG;var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-notification-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<a class="yt-simple-endpoint style-scope ytd-notification-renderer" href$="[[getEndpointURL(data.navigationEndpoint)]]" data="[[getEndpointData(data.navigationEndpoint)]]" on-tap="onTap" tabindex="0" role="link">\n  <div id="new" class="style-scope ytd-notification-renderer"></div>\n  <yt-img-shadow id="avatar" class="thumbnail  style-scope ytd-notification-renderer" height="[[thumbnailSize]]" thumbnail="[[data.thumbnail]]" width="[[thumbnailSize]]">\n  </yt-img-shadow>\n  <div class="text style-scope ytd-notification-renderer">\n    <yt-formatted-string class="message style-scope ytd-notification-renderer" text="[[data.shortMessage]]"></yt-formatted-string>\n    <div id="call-to-action" hidden="[[!data.highPriorityNotificationActionButton]]" class="style-scope ytd-notification-renderer"></div>\n    <div class="metadata style-scope ytd-notification-renderer">\n      <yt-formatted-string text="[[data.footer]]" class="style-scope ytd-notification-renderer"></yt-formatted-string>\n      <yt-formatted-string text="[[data.sentTimeText]]" class="style-scope ytd-notification-renderer"></yt-formatted-string>\n    </div>\n  </div>\n  <template is="dom-if" if="[[data.videoThumbnail]]" class="style-scope ytd-notification-renderer">\n    <div class="thumbnail-container style-scope ytd-notification-renderer">\n      <yt-img-shadow thumbnail="[[data.videoThumbnail]]" width="86" class="style-scope ytd-notification-renderer"></yt-img-shadow>\n    </div>\n  </template>\n</a>\n<div id="menu" class="style-scope ytd-notification-renderer"></div>\n');a.content.insertBefore(_.w().content.cloneNode(!0),
a.content.firstChild);return GnG=a},{mode:1});var $WE;var nY=function(){return _.G.apply(this,arguments)||this};
_.b(nY,_.G);nY.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"}}}};
nY.prototype.computeActionButtonClass=function(a){return!a.actionButtons||a.actionButtons.length<=1?"single-button":a.description?"vertical-buttons":"horizontal-buttons"};
_.L([_.Q(_.k.YtRendererBehavior),_.p("design:type",Object)],nY.prototype,"ytRendererBehavior",void 0);_.L([_.Q(_.u4.YtRendererstamperBehavior),_.p("design:type",Object)],nY.prototype,"ytRendererstamperBehavior",void 0);_.L([_.x(),_.p("design:type",Object)],nY.prototype,"data",void 0);_.L([_.U({is:"ytd-playlist-show-metadata-renderer",disableElementRegistration:!0})],nY);
_.D(nY,"ytd-playlist-show-metadata-renderer",function(){if($WE!==void 0)return $WE;var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-playlist-show-metadata-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="content-desc" class="style-scope ytd-playlist-show-metadata-renderer">\n  <div id="dropdown" class="style-scope ytd-playlist-show-metadata-renderer"></div>\n  <ytd-expander class="description style-scope ytd-playlist-show-metadata-renderer" max-number-of-lines="2">\n    <yt-formatted-string id="description" class="content style-scope ytd-playlist-show-metadata-renderer" slot="content" split-lines="" text="[[data.description]]">\n    </yt-formatted-string>\n    <yt-formatted-string class="more-button style-scope ytd-playlist-show-metadata-renderer" slot="more-button" role="button" text="[[data.showMoreText]]">\n    </yt-formatted-string>\n    <yt-formatted-string class="less-button style-scope ytd-playlist-show-metadata-renderer" slot="less-button" role="button" text="[[data.showLessText]]">\n    </yt-formatted-string>\n  </ytd-expander>\n</div>\n<div id="action-buttons" class$="[[computeActionButtonClass(data)]] style-scope ytd-playlist-show-metadata-renderer"></div>\n');
a.content.insertBefore(_.w().content.cloneNode(!0),a.content.firstChild);return $WE=a},{mode:1});var X7z;_.$q("itemSectionRenderer","purchaseItemRenderer","ytd-purchase-item-renderer");var KY=function(){return _.G.apply(this,arguments)||this};
_.b(KY,_.G);_.L([_.Q(_.k.YtRendererBehavior),_.p("design:type",Object)],KY.prototype,"ytRendererBehavior",void 0);_.L([_.Q(_.u4.YtRendererstamperBehavior),_.p("design:type",Object)],KY.prototype,"ytRendererstamperBehavior",void 0);_.L([_.x(),_.p("design:type",Object)],KY.prototype,"data",void 0);_.L([_.U({is:"ytd-purchase-item-renderer",disableElementRegistration:!0})],KY);
_.D(KY,"ytd-purchase-item-renderer",function(){if(X7z!==void 0)return X7z;var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-purchase-item-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<a class="yt-simple-endpoint purchase-endpoint style-scope ytd-purchase-item-renderer" href$="[[computeHref_(data.navigationEndpoint)]]" data="[[data.navigationEndpoint]]">\n  <div class="thumb-container style-scope ytd-purchase-item-renderer">\n    <yt-img-shadow fit="" thumbnail="[[data.thumbnail]]" class="style-scope ytd-purchase-item-renderer"></yt-img-shadow>\n  </div>\n  <div class="details style-scope ytd-purchase-item-renderer">\n    <yt-formatted-string class="title style-scope ytd-purchase-item-renderer" text="[[data.title]]">\n    </yt-formatted-string>\n    <yt-formatted-string class="price-text style-scope ytd-purchase-item-renderer" no-endpoints="" text="[[data.priceText]]">\n    </yt-formatted-string>\n    <yt-formatted-string class="manage-subscription-text style-scope ytd-purchase-item-renderer" force-default-style="" text="[[data.manageSubscriptionText]]">\n    </yt-formatted-string>\n  </div>\n</a>\n');a.content.insertBefore(_.w().content.cloneNode(!0),
a.content.firstChild);return X7z=a},{mode:1});var Tv0;var dWi={};dWi.YtSimpleTextSectionBehavior={properties:{data:Object,layoutStyle:{type:String,computed:"computeLayoutStyle_(data.layoutStyle)",reflectToAttribute:!0},role:{type:String,computed:"computeRole_(data.layoutStyle)",reflectToAttribute:!0}},created:function(){this.LAYOUT_STYLE_PREFIX_="SIMPLE_TEXT_LAYOUT_STYLE_"},
computeLayoutStyle_:function(a){if(a)return a.replace(this.LAYOUT_STYLE_PREFIX_,"").replace(/_/g,"-").toLowerCase()},
computeRole_:function(a){if(a==="SIMPLE_TEXT_LAYOUT_STYLE_PAID_SUBSCRIPTION_TITLE")return"heading"}};_.$q("itemSectionRenderer","simpleTextSectionRenderer","ytd-simple-text-section-renderer");var F$=function(){return _.G.apply(this,arguments)||this};
_.b(F$,_.G);F$.prototype.onYtNavigate=function(a){var z=this.openPopupBehavior.getNavigationEndpointPopupAction(a.detail.endpoint);z&&(a.stopPropagation(),this.openPopupBehavior.openPopup(z))};
F$.prototype.onYtNavigate=F$.prototype.onYtNavigate;_.L([_.Q(dWi.YtSimpleTextSectionBehavior),_.p("design:type",Object)],F$.prototype,"ytSimpleTextSectionBehavior",void 0);_.L([_.Q(_.k.YtRendererBehavior),_.p("design:type",Object)],F$.prototype,"ytRendererBehavior",void 0);_.L([_.Q(_.rI),_.p("design:type",Object)],F$.prototype,"openPopupBehavior",void 0);_.L([_.x(),_.p("design:type",Object)],F$.prototype,"data",void 0);
_.L([_.gz("yt-navigate"),_.p("design:type",Function),_.p("design:paramtypes",[CustomEvent]),_.p("design:returntype")],F$.prototype,"onYtNavigate",null);_.L([_.U({is:"ytd-simple-text-section-renderer",disableElementRegistration:!0})],F$);
_.D(F$,"ytd-simple-text-section-renderer",function(){if(Tv0!==void 0)return Tv0;var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-simple-text-section-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<template is="dom-repeat" items="[[data.lines]]" class="style-scope ytd-simple-text-section-renderer">\n  <yt-formatted-string class="text style-scope ytd-simple-text-section-renderer" text="[[item]]"></yt-formatted-string>\n</template>\n');a.content.insertBefore(_.w().content.cloneNode(!0),
a.content.firstChild);return Tv0=a},{mode:1});var WLE;_.$q("itemSectionRenderer","unlimitedPageFeatureInfoRenderer","ytd-unlimited-page-feature-info-renderer");var H7=function(){return _.G.apply(this,arguments)||this};
_.b(H7,_.G);_.L([_.Q(_.k.YtRendererBehavior),_.p("design:type",Object)],H7.prototype,"ytRendererBehavior",void 0);_.L([_.x(),_.p("design:type",Object)],H7.prototype,"data",void 0);_.L([_.U({is:"ytd-unlimited-page-feature-info-renderer",disableElementRegistration:!0})],H7);
_.D(H7,"ytd-unlimited-page-feature-info-renderer",function(){if(WLE!==void 0)return WLE;var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-unlimited-page-feature-info-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="content style-scope ytd-unlimited-page-feature-info-renderer">\n  <yt-formatted-string class="info-head style-scope ytd-unlimited-page-feature-info-renderer" text="[[data.title]]"></yt-formatted-string>\n  <template is="dom-repeat" items="[[data.descriptions]]" class="style-scope ytd-unlimited-page-feature-info-renderer">\n    <yt-formatted-string class="info-desc style-scope ytd-unlimited-page-feature-info-renderer" text="[[item]]"></yt-formatted-string>\n  </template>\n</div>\n<yt-img-shadow class="icon-thumbnail style-scope ytd-unlimited-page-feature-info-renderer" height="194" thumbnail="[[data.iconThumbnail]]" width="390">\n</yt-img-shadow>\n');a.content.insertBefore(_.w().content.cloneNode(!0),
a.content.firstChild);return WLE=a},{mode:1});var omi;var UWM;var b7=function(){return _.G.apply(this,arguments)||this};
_.b(b7,_.G);b7.prototype.dataChanged=function(){if(this.data){var a=this.get("background.thumbnailLandscapePortraitRenderer.portrait.thumbnails",this.data);a&&(a=_.r4(a,screen.width),this.hostElement.style.backgroundImage="url("+a+")")}};
b7.prototype.dataChanged=b7.prototype.dataChanged;_.L([_.Q(_.k.YtRendererBehavior),_.p("design:type",Object)],b7.prototype,"ytRendererBehavior",void 0);_.L([_.x(),_.p("design:type",Object)],b7.prototype,"data",void 0);_.L([_.O8("data"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],b7.prototype,"dataChanged",null);_.L([_.U({is:"ytd-post-redemption-section-renderer",disableElementRegistration:!0})],b7);
_.D(b7,"ytd-post-redemption-section-renderer",function(){if(UWM!==void 0)return UWM;var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-post-redemption-section-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="img-container style-scope ytd-post-redemption-section-renderer">\n  <yt-img-shadow id="logo" height="25" thumbnail="[[data.logoImage.thumbnailLandscapePortraitRenderer.portrait]]" class="style-scope ytd-post-redemption-section-renderer">\n  </yt-img-shadow>\n</div>\n<div class="container style-scope ytd-post-redemption-section-renderer">\n  <div class="title style-scope ytd-post-redemption-section-renderer">[[getSimpleString(data.title)]]</div>\n  <ytd-button-renderer id="redeem-button" data="[[data.button.buttonRenderer]]" class="style-scope ytd-post-redemption-section-renderer">\n  </ytd-button-renderer>\n</div>\n');
a.content.insertBefore(_.w().content.cloneNode(!0),a.content.firstChild);return UWM=a},{mode:1});var DWY;var h6=function(){return _.G.apply(this,arguments)||this};
_.b(h6,_.G);h6.prototype.configureRendererStamper=function(){return{"data.sections":{id:"contents",mapping:{postRedemptionSectionRenderer:{component:"ytd-post-redemption-section-renderer",noInjection:!0}}}}};
_.L([_.Q(_.k.YtRendererBehavior),_.p("design:type",Object)],h6.prototype,"ytRendererBehavior",void 0);_.L([_.Q(_.u4.YtRendererstamperBehavior),_.p("design:type",Object)],h6.prototype,"ytRendererstamperBehavior",void 0);_.L([_.x(),_.p("design:type",Object)],h6.prototype,"data",void 0);_.L([_.U({is:"ytd-ypc-post-redemption-renderer",disableElementRegistration:!0})],h6);
_.D(h6,"ytd-ypc-post-redemption-renderer",function(){if(DWY!==void 0)return DWY;var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-ypc-post-redemption-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="store-value-balance" class="style-scope ytd-ypc-post-redemption-renderer">[[getSimpleString(data.storeValueBalance)]]</div>\n<div id="contents" class="style-scope ytd-ypc-post-redemption-renderer"></div>\n');a.content.insertBefore(_.w().content.cloneNode(!0),
a.content.firstChild);return DWY=a},{mode:1});_.$q("itemSectionRenderer","redeemCodeRenderer","ytd-redeem-code-renderer");var V9=function(){var a=_.G.apply(this,arguments)||this;a.MIN_CODE_LENGTH=12;a.MAX_CODE_LENGTH=24;return a};
_.b(V9,_.G);_.Z=V9.prototype;_.Z.configureRendererStamper=function(){return{postRedemptionRenderer:{id:"success-page",mapping:{ypcPostRedemptionRenderer:"ytd-ypc-post-redemption-renderer"}}}};
_.Z.created=function(){this.riskService=new _.oy0;this.loadPaymentThenable=_.D6G(_.Xw("YPC_MB_URL"))};
_.Z.ready=function(){var a=this;this.code.addEventListener("keypress",function(z){a.onCodeInputKeypress(z)})};
_.Z.dataChanged=function(){var a=this;this.redeemButtonDisabled=!0;this.observer=new MutationObserver(function(z){z=_.C(z);for(var I=z.next();!I.done;I=z.next())I=I.value,I.type==="attributes"&&I.attributeName==="dark"&&a.updateBackground()});
this.observer.observe(document.documentElement,{attributes:!0});this.updateBackground()};
_.Z.updateBackground=function(){if(document.documentElement.hasAttribute("dark"))this.hostElement.style.setProperty("background-image","none");else{var a=this.computeImageUrl(this.data.thumbnail);this.hostElement.style.setProperty("background-image","url("+a+")")}};
_.Z.computeRedeemButton=function(a){(a=this.get("redeemButton.buttonRenderer",a))&&(a=Object.assign({},a,{serviceEndpoint:void 0}));return a};
_.Z.onRedeemButtonTap=function(a){a.stopPropagation();bYE();this.redeemCode()};
_.Z.redeemCode=function(){var a=this;this.isLoading=!0;var z=this.riskService.init();_.VD([z,this.loadPaymentThenable]).then(function(){var I=a.data.redeemButton.buttonRenderer.serviceEndpoint,J=_.U6E(),r=payments.business.integration.ClientTokenFactory.createClientToken(_.H(I,_.DTG).countryCode,J);J={c:a.code.value.trim(),rd:window.btoa(J),ctk:r};I&&_.ab().resolve(_.j6).resolveCommand(I,{form:Object.assign({},J,{element:a.hostElement})})},function(){a.showGenericError();
fY("YPC_ERROR_REASON_RISK_LIB_LOAD_FAILURE")}).thenCatch(function(){_.oL(Error("oo"))})};
_.Z.onYtServiceRequestCompleted=function(a){a.stopPropagation();this.isLoading=!1;var z,I;this.errorMessage=(z=a.detail)==null?void 0:(I=z.data)==null?void 0:I.errorMessage;var J,r;this.postRedemptionRenderer=(J=a.detail)==null?void 0:(r=J.data)==null?void 0:r.renderer;var P,N;if(a=(P=a.detail)==null?void 0:(N=P.data)==null?void 0:N.redirectEndpoint)this.isLoading=!0,_.PA(this.hostElement,"yt-navigate",{endpoint:a});this.errorMessage?fY("YPC_ERROR_REASON_REDEEM_INNERTUBE_FAILURE"):(this.postRedemptionRenderer||
a)&&_.Yn("ypcRedeemFlowSucceeded")};
_.Z.onYtServiceRequestError=function(a){a.stopPropagation();this.isLoading=!1;if(a=this.get("detail.error.message",a))this.errorMessage=_.Mo(a);fY("YPC_ERROR_REASON_YPC_REDEEM_CODE_RPC_FAILURE")};
_.Z.onInvokeInstrumentManagerActionCompleted=function(a){a.stopPropagation();this.redeemCode()};
_.Z.onInvokeInstrumentManagerActionError=function(a){a.stopPropagation();this.isLoading=!1;switch(this.get("detail.error.errorCode",a)){case "instrumentManagerLoadError":this.showGenericError();fY("YPC_ERROR_REASON_INST_MANAGER_LOAD_FAILURE");break;case "instrumentManagerCallbackError":this.showGenericError();fY("YPC_ERROR_REASON_INST_MANAGER_CALLBACK_FAILURE");break;case "instrumentManagerCancelled":_.Yn("ypcRedeemFlowCancelled")}};
_.Z.onInput=function(){var a=this;_.pM(this,"onInput",function(){var z=a.code.value.trim();a.redeemButtonDisabled=z.length<a.MIN_CODE_LENGTH||z.length>a.MAX_CODE_LENGTH},200)};
_.Z.onCodeInputKeypress=function(a){a.keyCode!==13||this.redeemButtonDisabled||this.isLoading||(bYE(),this.redeemCode())};
_.Z.computeImageUrl=function(a){return a?_.r4(a.thumbnails,600):null};
_.Z.showGenericError=function(){this.isLoading=!1;this.errorMessage=this.get("errorMessage",this.data)};
V9.prototype.onInvokeInstrumentManagerActionError=V9.prototype.onInvokeInstrumentManagerActionError;V9.prototype.onInvokeInstrumentManagerActionCompleted=V9.prototype.onInvokeInstrumentManagerActionCompleted;V9.prototype.onYtServiceRequestError=V9.prototype.onYtServiceRequestError;V9.prototype.onYtServiceRequestCompleted=V9.prototype.onYtServiceRequestCompleted;V9.prototype.dataChanged=V9.prototype.dataChanged;
_.L([_.Q(_.k.YtRendererBehavior),_.p("design:type",Object)],V9.prototype,"ytRendererBehavior",void 0);_.L([_.Q(_.u4.YtRendererstamperBehavior),_.p("design:type",Object)],V9.prototype,"ytRendererstamperBehavior",void 0);_.L([_.x(),_.p("design:type",Object)],V9.prototype,"data",void 0);_.L([_.x({reflectToAttribute:!0}),_.p("design:type",Boolean)],V9.prototype,"isLoading",void 0);_.L([_.x(),_.p("design:type",Boolean)],V9.prototype,"redeemButtonDisabled",void 0);
_.L([_.x(),_.p("design:type",Object)],V9.prototype,"errorMessage",void 0);_.L([_.x(),_.p("design:type",Object)],V9.prototype,"postRedemptionRenderer",void 0);_.L([_.x(),_.p("design:type",Object)],V9.prototype,"observer",void 0);_.L([_.A3("#code"),_.p("design:type",HTMLInputElement)],V9.prototype,"code",void 0);_.L([_.O8("data"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],V9.prototype,"dataChanged",null);
_.L([_.gz("yt-service-request-completed"),_.p("design:type",Function),_.p("design:paramtypes",[CustomEvent]),_.p("design:returntype")],V9.prototype,"onYtServiceRequestCompleted",null);_.L([_.gz("yt-service-request-error"),_.p("design:type",Function),_.p("design:paramtypes",[CustomEvent]),_.p("design:returntype")],V9.prototype,"onYtServiceRequestError",null);
_.L([_.gz("yt-invoke-instrument-manager-action-completed"),_.p("design:type",Function),_.p("design:paramtypes",[CustomEvent]),_.p("design:returntype")],V9.prototype,"onInvokeInstrumentManagerActionCompleted",null);_.L([_.gz("yt-invoke-instrument-manager-action-error"),_.p("design:type",Function),_.p("design:paramtypes",[CustomEvent]),_.p("design:returntype")],V9.prototype,"onInvokeInstrumentManagerActionError",null);_.L([_.U({is:"ytd-redeem-code-renderer",disableElementRegistration:!0})],V9);
_.D(V9,"ytd-redeem-code-renderer",function(){if(omi!==void 0)return omi;var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-redeem-code-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="main" hidden="[[postRedemptionRenderer]]" class="style-scope ytd-redeem-code-renderer">\n  <div class="title style-scope ytd-redeem-code-renderer">[[getSimpleString(data.title)]]</div>\n  <div class="subtitle style-scope ytd-redeem-code-renderer">[[getSimpleString(data.subTitle)]]</div>\n  <input id="code" type="text" autocomplete="off" maxlength="24" on-input="onInput" size="24" placeholder="[[getSimpleString(data.placeholderText)]]" slot="input" class="style-scope ytd-redeem-code-renderer">\n  <yt-formatted-string id="error-message" hidden="[[!errorMessage]]" text="[[errorMessage]]" class="style-scope ytd-redeem-code-renderer">\n      </yt-formatted-string>\n  <yt-formatted-string id="terms" text="[[data.termsConditions]]" class="style-scope ytd-redeem-code-renderer"></yt-formatted-string>\n  \n  <ytd-button-renderer id="redeem-button" data="[[computeRedeemButton(data)]]" disabled="[[redeemButtonDisabled]]" on-tap="onRedeemButtonTap" class="style-scope ytd-redeem-code-renderer">\n  </ytd-button-renderer>\n</div>\n<div id="success-page" class="style-scope ytd-redeem-code-renderer"></div>\n<tp-yt-paper-spinner-lite id="loading" active="[[isLoading]]" class="style-scope ytd-redeem-code-renderer">\n</tp-yt-paper-spinner-lite>\n');
a.content.insertBefore(_.w().content.cloneNode(!0),a.content.firstChild);return omi=a},{mode:1});var R9Z;_.$q("itemSectionRenderer","channelAboutFullMetadataRenderer","ytd-channel-about-metadata-renderer");var Q9=function(){var a=_.G.apply(this,arguments)||this;a.businessEmailDisplayState="HIDE_SECTION";return a};
_.b(Q9,_.G);_.Z=Q9.prototype;_.Z.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}}}}}};
_.Z.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"};
_.Z.detached=function(){this.businessEmailErrorMessage=this.businessEmail=void 0;this.businessEmailDisplayState="HIDE_SECTION"};
_.Z.onBusinessEmailClick=function(){this.data&&(this.data.bypassBusinessEmailCaptcha?this.businessEmailDisplayState="BUSINESS_EMAIL":(_.LL(_.oy1),this.businessEmailDisplayState="CAPTCHA"))};
_.Z.onYtServiceRequestCompleted=function(a){var z;if((z=a.detail.data)==null?0:z.businessEmail)this.businessEmail=a.detail.data.businessEmail,this.businessEmailDisplayState="BUSINESS_EMAIL";else{var I;if((I=a.detail.data)==null?0:I.errorMessage)this.businessEmailErrorMessage=a.detail.data.errorMessage,this.businessEmailDisplayState="ERROR_MESSAGE"}};
_.Z.computeEmailHref=function(a){return"mailto:"+a};
_.Z.computeSafeUrl=function(a){if(a)return _.XG(a)};
_.Z.onBusinessEmailCaptchaSubmit=function(){var a;(a=this.data)!=null&&a.onBusinessEmailRevealClickCommand&&(a=this.JSC$21579_captchaTextarea.value)&&(a={recaptcha_response_token:a,channel_id:this.data.channelId},_.ab().resolve(_.j6).resolveCommand(this.data.onBusinessEmailRevealClickCommand,{form:Object.assign({},a,{element:this.hostElement})}))};
_.Z.recaptchaSiteKey=function(){return"6Lf39AMTAAAAALPbLZdcrWDa8Ygmgk_fmGmrlRog"};
_.eH.Object.defineProperties(Q9.prototype,{hideDetailsSection:{configurable:!0,enumerable:!0,get:function(){return!this.data||!this.data.country&&!this.data.businessEmailButton}},
shouldShowNewLinks:{configurable:!0,enumerable:!0,get:function(){var a,z;return!((a=this.data)==null||!a.primaryLinks)&&!((z=this.data)==null?0:z.links)&&this.data.primaryLinks.every(function(I){return I.displayUrl})}},
shouldShowLegacyLinks:{configurable:!0,enumerable:!0,get:function(){var a,z;return!((a=this.data)==null||!a.primaryLinks)&&!((z=this.data)==null?0:z.links)&&!this.shouldShowNewLinks}}});
Q9.prototype.onYtServiceRequestCompleted=Q9.prototype.onYtServiceRequestCompleted;Q9.prototype.dataChanged=Q9.prototype.dataChanged;_.L([_.Q(_.Ms.YtComponentBehavior),_.p("design:type",Object)],Q9.prototype,"ytComponentBehavior",void 0);_.L([_.Q(_.k.YtRendererBehavior),_.p("design:type",Object)],Q9.prototype,"ytRendererBehavior",void 0);_.L([_.Q(_.u4.YtRendererstamperBehavior),_.p("design:type",Object)],Q9.prototype,"ytRendererstamperBehavior",void 0);
_.L([_.A3("#g-recaptcha-response"),_.p("design:type",HTMLTextAreaElement)],Q9.prototype,"JSC$21579_captchaTextarea",void 0);_.L([_.x(),_.p("design:type",Object)],Q9.prototype,"data",void 0);_.L([_.x(),_.p("design:type",String)],Q9.prototype,"businessEmailDisplayState",void 0);_.L([_.x(),_.p("design:type",String)],Q9.prototype,"businessEmail",void 0);_.L([_.x(),_.p("design:type",String)],Q9.prototype,"businessEmailErrorMessage",void 0);
_.L([_.S("data"),_.p("design:type",Boolean),_.p("design:paramtypes",[])],Q9.prototype,"hideDetailsSection",null);_.L([_.Fe("data"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],Q9.prototype,"dataChanged",null);_.L([_.S("data"),_.p("design:type",Boolean),_.p("design:paramtypes",[])],Q9.prototype,"shouldShowNewLinks",null);_.L([_.S("data","shouldShowLinks"),_.p("design:type",Boolean),_.p("design:paramtypes",[])],Q9.prototype,"shouldShowLegacyLinks",null);
_.L([_.gz("yt-service-request-completed"),_.p("design:type",Function),_.p("design:paramtypes",[CustomEvent]),_.p("design:returntype")],Q9.prototype,"onYtServiceRequestCompleted",null);_.L([_.U({is:"ytd-channel-about-metadata-renderer",disableElementRegistration:!0})],Q9);
_.D(Q9,"ytd-channel-about-metadata-renderer",function(){if(R9Z!==void 0)return R9Z;var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-channel-about-metadata-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="left-column" class="style-scope ytd-channel-about-metadata-renderer">\n  <div id="description-container" hidden="[[!data.description]]" class="style-scope ytd-channel-about-metadata-renderer">\n    <yt-formatted-string class="subheadline style-scope ytd-channel-about-metadata-renderer" text="[[data.descriptionLabel]]">\n    </yt-formatted-string>\n    <yt-formatted-string id="description" split-lines="" text="[[data.description]]" class="style-scope ytd-channel-about-metadata-renderer">\n    </yt-formatted-string>\n  </div>\n  <div id="bio-container" hidden="[[!data.artistBio]]" class="style-scope ytd-channel-about-metadata-renderer">\n    <yt-formatted-string class="subheadline style-scope ytd-channel-about-metadata-renderer" text="[[data.artistBioLabel]]">\n    </yt-formatted-string>\n    <yt-formatted-string id="bio" split-lines="" text="[[data.artistBio]]" class="style-scope ytd-channel-about-metadata-renderer">\n    </yt-formatted-string>\n  </div>\n  <div id="photos-container" hidden="[[!data.artistGalleryPhotos]]" class="style-scope ytd-channel-about-metadata-renderer">\n    <yt-formatted-string class="subheadline style-scope ytd-channel-about-metadata-renderer" text="[[data.artistGalleryLabel]]">\n    </yt-formatted-string>\n    <div id="photos" class="style-scope ytd-channel-about-metadata-renderer">\n      <template is="dom-repeat" items="[[data.artistGalleryPhotos]]" strip-whitespace="" class="style-scope ytd-channel-about-metadata-renderer">\n        <a href="[[computeSafeUrl(item.originalPhotoUrl)]]" target="_blank" class="style-scope ytd-channel-about-metadata-renderer">\n          <img src$="[[computeSafeUrl(item.thumbnailUrl)]]" alt="" class="style-scope ytd-channel-about-metadata-renderer">\n        </a>\n      </template>\n    </div>\n  </div>\n  <div id="details-container" hidden="[[hideDetailsSection]]" class="style-scope ytd-channel-about-metadata-renderer">\n     <yt-formatted-string class="subheadline style-scope ytd-channel-about-metadata-renderer" text="[[data.detailsLabel]]">\n    </yt-formatted-string>\n    <table class="style-scope ytd-channel-about-metadata-renderer">\n      <tbody class="style-scope ytd-channel-about-metadata-renderer"><tr hidden="[[equals(businessEmailDisplayState, \'HIDE_SECTION\')]]" class="style-scope ytd-channel-about-metadata-renderer">\n        <td class="label style-scope ytd-channel-about-metadata-renderer">\n          <yt-formatted-string text="[[data.businessEmailLabel]]" class="style-scope ytd-channel-about-metadata-renderer"></yt-formatted-string>\n        </td>\n\n        <td hidden="[[!equals(businessEmailDisplayState, \'SIGN_IN_REQUIRED\')]]" class="style-scope ytd-channel-about-metadata-renderer">\n          <yt-formatted-string text="[[data.signInForBusinessEmail]]" class="style-scope ytd-channel-about-metadata-renderer"></yt-formatted-string>\n        </td>\n\n        <td hidden="[[!equals(businessEmailDisplayState, \'REVEAL_BUTTON\')]]" class="style-scope ytd-channel-about-metadata-renderer">\n          <ytd-button-renderer align-by-text="" data="[[data.businessEmailButton.buttonRenderer]]" on-click="onBusinessEmailClick" class="style-scope ytd-channel-about-metadata-renderer">\n          </ytd-button-renderer>\n        </td>\n\n        <td hidden="[[!equals(businessEmailDisplayState, \'CAPTCHA\')]]" class="style-scope ytd-channel-about-metadata-renderer">\n          \n          <div id="recaptcha" class="g-recaptcha style-scope ytd-channel-about-metadata-renderer" data-sitekey$="[[recaptchaSiteKey()]]"></div>\n          <button id="submit-btn" class="yt-uix-button yt-uix-button-size-default yt-uix-button-primary style-scope ytd-channel-about-metadata-renderer" on-click="onBusinessEmailCaptchaSubmit">\n            <span class="yt-uix-button-content style-scope ytd-channel-about-metadata-renderer">\n              <yt-formatted-string text="[[data.businessEmailRevealSubmitButtonLabel]]" class="style-scope ytd-channel-about-metadata-renderer">\n              </yt-formatted-string>\n            </span>\n          </button>\n        </td>\n        <td hidden="[[!equals(businessEmailDisplayState, \'ERROR_MESSAGE\')]]" class="style-scope ytd-channel-about-metadata-renderer">\n          [[businessEmailErrorMessage]]\n        </td>\n\n        <td hidden="[[!equals(businessEmailDisplayState, \'BUSINESS_EMAIL\')]]" class="style-scope ytd-channel-about-metadata-renderer">\n          <a id="email" href$="[[computeEmailHref(businessEmail)]]" target="_blank" class="style-scope ytd-channel-about-metadata-renderer">[[businessEmail]]</a>\n        </td>\n      </tr>\n      <tr hidden="[[!data.country]]" class="style-scope ytd-channel-about-metadata-renderer">\n        <td class="label style-scope ytd-channel-about-metadata-renderer">\n          <yt-formatted-string text="[[data.countryLabel]]" class="style-scope ytd-channel-about-metadata-renderer"></yt-formatted-string>\n        </td>\n        <td class="style-scope ytd-channel-about-metadata-renderer">\n          <yt-formatted-string text="[[data.country]]" class="style-scope ytd-channel-about-metadata-renderer"></yt-formatted-string>\n        </td>\n      </tr>\n    </tbody></table>\n  </div>\n\n  <div id="links-container" hidden="[[!data.links]]" class="style-scope ytd-channel-about-metadata-renderer">\n    <yt-formatted-string class="subheadline style-scope ytd-channel-about-metadata-renderer" text="[[data.primaryLinksLabel]]">\n    </yt-formatted-string>\n    <div id="link-list-container" class="style-scope ytd-channel-about-metadata-renderer">\n    </div>\n  </div>\n  <div id="new-links-container" hidden="[[!shouldShowNewLinks]]" class="style-scope ytd-channel-about-metadata-renderer">\n    <yt-formatted-string class="subheadline style-scope ytd-channel-about-metadata-renderer" text="[[data.primaryLinksLabel]]">\n    </yt-formatted-string>\n    <div id="custom-link-list-container" class="style-scope ytd-channel-about-metadata-renderer">\n      <template is="dom-repeat" items="[[data.primaryLinks]]" as="link" class="style-scope ytd-channel-about-metadata-renderer">\n        <div class="custom-link style-scope ytd-channel-about-metadata-renderer">\n          <yt-formatted-string class="custom-link-title style-scope ytd-channel-about-metadata-renderer" no-endpoints="" no-style="" text="[[link.title]]">\n          </yt-formatted-string>\n          <a class="yt-simple-endpoint style-scope ytd-channel-about-metadata-renderer" href$="[[computeHref_(link.navigationEndpoint)]]" data="[[link.navigationEndpoint]]">\n            [[link.displayUrl]]\n          </a>\n        </div>\n      </template>\n    </div>\n  </div>\n  <div id="legacy-links-container" hidden="[[!shouldShowLegacyLinks]]" class="style-scope ytd-channel-about-metadata-renderer">\n    <yt-formatted-string class="subheadline style-scope ytd-channel-about-metadata-renderer" text="[[data.primaryLinksLabel]]">\n    </yt-formatted-string>\n    <div id="legacy-link-list-container" class="style-scope ytd-channel-about-metadata-renderer">\n      <template is="dom-repeat" items="[[data.primaryLinks]]" as="link" class="style-scope ytd-channel-about-metadata-renderer">\n        <a class="yt-simple-endpoint style-scope ytd-channel-about-metadata-renderer" href$="[[computeHref_(link.navigationEndpoint)]]" data="[[link.navigationEndpoint]]">\n          <yt-formatted-string class="info-text style-scope ytd-channel-about-metadata-renderer" no-endpoints="" no-style="" text="[[link.title]]">\n          </yt-formatted-string>\n        </a>\n      </template>\n    </div>\n  </div>\n</div>\n<div id="right-column" class="style-scope ytd-channel-about-metadata-renderer">\n  <yt-formatted-string class="subheadline style-scope ytd-channel-about-metadata-renderer" text="[[data.statsLabel]]">\n  </yt-formatted-string>\n  <yt-formatted-string hidden="[[!data.joinedDateText]]" text="[[data.joinedDateText]]" class="style-scope ytd-channel-about-metadata-renderer">\n  </yt-formatted-string>\n  <yt-formatted-string hidden="[[!data.viewCountText]]" no-styles="" text="[[data.viewCountText]]" class="style-scope ytd-channel-about-metadata-renderer">\n  </yt-formatted-string>\n  <yt-formatted-string hidden="[[!data.phoneVerifiedText]]" text="[[data.phoneVerifiedText]]" class="style-scope ytd-channel-about-metadata-renderer">\n  </yt-formatted-string>\n  <div id="action-buttons" class="style-scope ytd-channel-about-metadata-renderer"></div>\n</div>\n');a.content.insertBefore(_.w().content.cloneNode(!0),
a.content.firstChild);return R9Z=a},{mode:1});var LLZ;_.$q("itemSectionRenderer","channelFeaturedContentRenderer","ytd-channel-featured-content-renderer");var SX=function(){return _.G.apply(this,arguments)||this};
_.b(SX,_.G);SX.prototype.configureRendererStamper=function(){return{"data.items":{id:"contents",mapping:{channelRenderer:"ytd-channel-renderer",playlistRenderer:"ytd-playlist-renderer",radioRenderer:"ytd-radio-renderer",showRenderer:"ytd-show-renderer",videoRenderer:"ytd-video-renderer",lockupViewModel:{component:"yt-lockup-view-model",params:{force16By9ThumbnailAspectRatio:!0},properties:{thumbnailFixedWidth:"[[thumbnailFixedWidth]]",containerType:"[[lockupContainerType]]"}}}}}};
_.L([_.Q(_.k.YtRendererBehavior),_.p("design:type",Object)],SX.prototype,"ytRendererBehavior",void 0);_.L([_.Q(_.u4.YtRendererstamperBehavior),_.p("design:type",Object)],SX.prototype,"ytRendererstamperBehavior",void 0);_.L([_.x(),_.p("design:type",Object)],SX.prototype,"data",void 0);_.L([_.x(),_.p("design:type",Number)],SX.prototype,"lockupContainerType",void 0);_.L([_.x(),_.p("design:type",String)],SX.prototype,"thumbnailFixedWidth",void 0);
_.L([_.U({is:"ytd-channel-featured-content-renderer",disableElementRegistration:!0})],SX);
_.D(SX,"ytd-channel-featured-content-renderer",function(){if(LLZ!==void 0)return LLZ;var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-channel-featured-content-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-channel-featured-content-renderer">\n  <h3 class="style-scope ytd-channel-featured-content-renderer">\n    <yt-formatted-string id="title" text="[[data.title]]" class="style-scope ytd-channel-featured-content-renderer"></yt-formatted-string>\n  </h3>\n  <yt-formatted-string id="subtitle" text="[[data.subTitle]]" class="style-scope ytd-channel-featured-content-renderer"></yt-formatted-string>\n</div>\n<div id="contents" class="style-scope ytd-channel-featured-content-renderer"></div>\n');a.content.insertBefore(_.w().content.cloneNode(!0),
a.content.firstChild);return LLZ=a},{mode:1});var l2V;_.$q("itemSectionRenderer","clarificationRenderer","ytd-clarification-renderer");var i7=function(){var a=_.G.apply(this,arguments)||this;a.roundContainer=!0;a.amsterdamEnabled=_.K("enable_desktop_amsterdam_info_panels");return a};
_.b(i7,_.G);_.Z=i7.prototype;_.Z.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}},"data.actionButton":{id:"action-button",mapping:{buttonRenderer:"yt-button-renderer"}}}};
_.Z.dataChanged=function(){this.imageWidth=this.imageHeight=24;var a=this.data;a.style==="CLARIFICATION_RENDERER_STYLE_MEDIUM"?this.imageWidth=this.imageHeight=80:!a.style&&a.image&&a.image.thumbnails.length&&(a=a.image.thumbnails[0],this.imageWidth=a.width||0,this.imageHeight=a.height||0)};
_.Z.computeSource=function(a){return a.secondarySource?_.cd(a.secondarySource):_.cd(a.source)};
_.Z.computeClarifyStyle=function(a){return a?a.replace("CLARIFICATION_RENDERER_STYLE_","").toLowerCase():""};
_.Z.isLargeStyle=function(a){return a==="CLARIFICATION_RENDERER_STYLE_LARGE"};
_.Z.computeBackgroundStyle=function(a){return a?a.replace("CLARIFICATION_RENDERER_BACKGROUND_","").toLowerCase():""};
_.Z.computeHasActionButton=function(a){return!!a.actionButton};
_.Z.computeHasBottomSection=function(a){return!!a.ctaHasBottomSection};
_.Z.computeIsSourceMissing=function(a){return a.ctaHasBottomSection===!1?!0:a&&this.computeSource(a)?!1:!0};
_.Z.computeSecondaryEndpoint=function(a){return a.secondaryEndpoint||a.endpoint};
i7.prototype.dataChanged=i7.prototype.dataChanged;_.L([_.Q(_.k.YtRendererBehavior),_.p("design:type",Object)],i7.prototype,"ytRendererBehavior",void 0);_.L([_.Q(_.u4.YtRendererstamperBehavior),_.p("design:type",Object)],i7.prototype,"ytRendererstamperBehavior",void 0);_.L([_.x(),_.p("design:type",Object)],i7.prototype,"data",void 0);_.L([_.x(),_.p("design:type",Number)],i7.prototype,"imageWidth",void 0);_.L([_.x(),_.p("design:type",Number)],i7.prototype,"imageHeight",void 0);
_.L([_.x({computed:"computeSecondaryEndpoint(data)"}),_.p("design:type",Object)],i7.prototype,"secondaryEndpoint",void 0);_.L([_.x({reflectToAttribute:!0,computed:"computeHasActionButton(data)"}),_.p("design:type",Boolean)],i7.prototype,"hasActionButton",void 0);_.L([_.x({reflectToAttribute:!0,computed:"computeHasBottomSection(data)"}),_.p("design:type",Boolean)],i7.prototype,"hasBottomSection",void 0);
_.L([_.x({reflectToAttribute:!0,computed:"computeIsSourceMissing(data)"}),_.p("design:type",Boolean)],i7.prototype,"missingSource",void 0);_.L([_.x({computed:"computeIcon_(data.icon)"}),_.p("design:type",String)],i7.prototype,"icon",void 0);_.L([_.x({computed:"computeIcon_(data.secondaryIcon)"}),_.p("design:type",String)],i7.prototype,"secondaryIcon",void 0);_.L([_.x({reflectToAttribute:!0,computed:"computeClarifyStyle(data.style)"}),_.p("design:type",String)],i7.prototype,"clarifyStyle",void 0);
_.L([_.x({reflectToAttribute:!0,computed:"computeBackgroundStyle(data.background)"}),_.p("design:type",String)],i7.prototype,"backgroundStyle",void 0);_.L([_.x({reflectToAttribute:!0}),_.p("design:type",Object)],i7.prototype,"roundContainer",void 0);_.L([_.x({reflectToAttribute:!0}),_.p("design:type",Boolean)],i7.prototype,"amsterdamEnabled",void 0);_.L([_.Fe("data"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],i7.prototype,"dataChanged",null);
_.L([_.U({is:"ytd-clarification-renderer",disableElementRegistration:!0})],i7);
_.D(i7,"ytd-clarification-renderer",function(){if(l2V!==void 0)return l2V;var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-clarification-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="container style-scope ytd-clarification-renderer">\n  \n  <a class="yt-simple-endpoint style-scope ytd-clarification-renderer" href$="[[computeHref_(data.endpoint)]]" data="[[data.endpoint]]">\n    <yt-icon disable-upgrade$="[[!icon]]" hidden="[[!icon]]" icon="[[icon]]" class="style-scope ytd-clarification-renderer"></yt-icon>\n    <yt-img-shadow height="[[imageHeight]]" hidden="[[!data.image]]" thumbnail="[[data.image]]" width="[[imageWidth]]" class="style-scope ytd-clarification-renderer">\n    </yt-img-shadow>\n  </a>\n  <div class="text style-scope ytd-clarification-renderer">\n    \n    <a id="section-header" class="yt-simple-endpoint style-scope ytd-clarification-renderer" href$="[[computeHref_(data.endpoint)]]" data="[[data.endpoint]]">\n      <yt-icon disable-upgrade$="[[!icon]]" hidden="[[!icon]]" icon="[[icon]]" class="style-scope ytd-clarification-renderer">\n      </yt-icon>\n      <yt-img-shadow height="[[imageHeight]]" hidden="[[!data.image]]" thumbnail="[[data.image]]" width="[[imageWidth]]" class="style-scope ytd-clarification-renderer">\n      </yt-img-shadow>\n      <yt-formatted-string class="section-title style-scope ytd-clarification-renderer" text="[[data.sectionTitle]]">\n      </yt-formatted-string>\n    </a>\n    <div class="content style-scope ytd-clarification-renderer">\n      <a class="yt-simple-endpoint style-scope ytd-clarification-renderer" href$="[[computeHref_(data.endpoint)]]" data="[[data.endpoint]]">\n        <div class="content-title style-scope ytd-clarification-renderer">\n          [[getSimpleString(data.contentTitle)]]\n          <yt-icon class="external-link-icon style-scope ytd-clarification-renderer" icon="yt-icons:open_in_new"></yt-icon>\n        </div>\n        <yt-formatted-string class="description style-scope ytd-clarification-renderer" text="[[data.text]]">\n        </yt-formatted-string>\n      </a>\n      <div id="action-button" class="style-scope ytd-clarification-renderer"></div>\n      <div id="menu" class="style-scope ytd-clarification-renderer"></div>\n    </div>\n    <a id="source-link" class="yt-simple-endpoint style-scope ytd-clarification-renderer" href$="[[computeHref_(secondaryEndpoint)]]" data="[[secondaryEndpoint]]">\n      <div class="source style-scope ytd-clarification-renderer">\n        <yt-icon class="secondary-icon style-scope ytd-clarification-renderer" disable-upgrade$="[[!secondaryIcon]]" hidden="[[!secondaryIcon]]" icon="[[secondaryIcon]]">\n        </yt-icon>\n        [[computeSource(data)]]\n        <yt-icon class="external-link-icon style-scope ytd-clarification-renderer" hidden="[[secondaryIcon]]" icon="yt-icons:open_in_new" size="16"></yt-icon>\n      </div>\n    </a>\n  </div>\n</div>\n');a.content.insertBefore(_.w().content.cloneNode(!0),
a.content.firstChild);return l2V=a},{mode:1});var p7Z;var w7E;var xm=function(){var a=_.G.apply(this,arguments)||this;a.amsterdamEnabled=_.K("enable_desktop_amsterdam_info_panels");return a};
_.b(xm,_.G);_.Z=xm.prototype;_.Z.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:{component:"ytd-button-renderer"}}},"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}}}};
_.Z.computeIcon=function(a){return a?"yt-icons:"+a.toLowerCase():null};
_.Z.computeUseContacts=function(a){return!!a.contacts&&a.contacts.length>0};
_.Z.computePhoneContact=function(a){var z,I;return(z=a.contacts)==null?void 0:(I=z.find(function(J){var r;return(J==null?void 0:(r=J.icon)==null?void 0:r.iconType)==="PHONE"}))==null?void 0:I.actionText};
_.Z.computeSmsContact=function(a){var z,I;return(z=a.contacts)==null?void 0:(I=z.find(function(J){var r;return(J==null?void 0:(r=J.icon)==null?void 0:r.iconType)==="SMS"}))==null?void 0:I.actionText};
_.L([_.Q(_.k.YtRendererBehavior),_.p("design:type",Object)],xm.prototype,"ytRendererBehavior",void 0);_.L([_.Q(_.u4.YtRendererstamperBehavior),_.p("design:type",Object)],xm.prototype,"ytRendererstamperBehavior",void 0);_.L([_.x(),_.p("design:type",Object)],xm.prototype,"data",void 0);_.L([_.x({reflectToAttribute:!0}),_.p("design:type",Boolean)],xm.prototype,"amsterdamEnabled",void 0);
_.L([_.x({reflectToAttribute:!0,computed:"computeUseContacts(data)"}),_.p("design:type",Boolean)],xm.prototype,"useContacts",void 0);_.L([_.x({reflectToAttribute:!0,computed:"computePhoneContact(data)"}),_.p("design:type",String)],xm.prototype,"phoneContact",void 0);_.L([_.U({is:"ytd-single-action-emergency-support-renderer",disableElementRegistration:!0})],xm);
_.D(xm,"ytd-single-action-emergency-support-renderer",function(){if(w7E!==void 0)return w7E;var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-single-action-emergency-support-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="content" class="style-scope ytd-single-action-emergency-support-renderer">\n  <div id="text-content" class="style-scope ytd-single-action-emergency-support-renderer">\n    <yt-formatted-string id="title" text="[[data.title]]" class="style-scope ytd-single-action-emergency-support-renderer"></yt-formatted-string>\n    <a class="yt-simple-endpoint style-scope ytd-single-action-emergency-support-renderer" href$="[[computeHref_(data.navigationEndpoint)]]" data="[[data.navigationEndpoint]]">\n      <yt-formatted-string id="navigation-text" text="[[data.navigationText]]" class="style-scope ytd-single-action-emergency-support-renderer"></yt-formatted-string>\n      <yt-icon id="nav-icon" icon="[[computeIcon(data.navigationIcon.iconType)]]" class="style-scope ytd-single-action-emergency-support-renderer"></yt-icon>\n    </a>\n    <yt-formatted-string id="details-text" text="[[data.detailsText]]" class="style-scope ytd-single-action-emergency-support-renderer"></yt-formatted-string>\n  </div>\n  <div id="action-container" class="style-scope ytd-single-action-emergency-support-renderer">\n    <div id="action-button" hidden="[[!data.actionButton]]" class="style-scope ytd-single-action-emergency-support-renderer"></div>\n    <div id="contacts" hidden="[[!data.contacts]]" class="style-scope ytd-single-action-emergency-support-renderer">\n      <div id="phone-contact" hidden="[[!computePhoneContact(data)]]" class="style-scope ytd-single-action-emergency-support-renderer">\n        <yt-icon icon="[[computeIcon(\'PHONE\')]]" class="style-scope ytd-single-action-emergency-support-renderer"></yt-icon>\n        <yt-formatted-string id="contact-text" text="[[computePhoneContact(data)]]" class="style-scope ytd-single-action-emergency-support-renderer"></yt-formatted-string>\n      </div>\n        <div id="sms-contact" hidden="[[!computeSmsContact(data)]]" class="style-scope ytd-single-action-emergency-support-renderer">\n        <yt-icon icon="[[computeIcon(\'SMS\')]]" class="style-scope ytd-single-action-emergency-support-renderer"></yt-icon>\n      <yt-formatted-string id="contact-text" text="[[computeSmsContact(data)]]" class="style-scope ytd-single-action-emergency-support-renderer"></yt-formatted-string>\n      </div>\n    </div>\n    <div id="action-text" class="action-text style-scope ytd-single-action-emergency-support-renderer" hidden="[[!data.actionText]]">\n      <yt-icon icon="[[computeIcon(data.icon.iconType)]]" class="style-scope ytd-single-action-emergency-support-renderer"></yt-icon>\n      <yt-formatted-string text="[[data.actionText]]" class="style-scope ytd-single-action-emergency-support-renderer"></yt-formatted-string>\n    </div>\n    <div id="menu" hidden="[[!data.menu]]" class="style-scope ytd-single-action-emergency-support-renderer"></div>\n  </div>\n</div>\n');
a.content.insertBefore(_.w().content.cloneNode(!0),a.content.firstChild);return w7E=a},{mode:1});_.$q("itemSectionRenderer","emergencyOneboxRenderer","ytd-emergency-onebox-renderer");var v7=function(){var a=_.G.apply(this,arguments)||this;a.roundedContainer=!0;a.amsterdamEnabled=_.K("enable_desktop_amsterdam_info_panels");return a};
_.b(v7,_.G);v7.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"}}}}};
_.L([_.Q(_.k.YtRendererBehavior),_.p("design:type",Object)],v7.prototype,"ytRendererBehavior",void 0);_.L([_.Q(_.u4.YtRendererstamperBehavior),_.p("design:type",Object)],v7.prototype,"ytRendererstamperBehavior",void 0);_.L([_.x(),_.p("design:type",Object)],v7.prototype,"data",void 0);_.L([_.x({reflectToAttribute:!0}),_.p("design:type",Object)],v7.prototype,"roundedContainer",void 0);_.L([_.x({reflectToAttribute:!0}),_.p("design:type",Boolean)],v7.prototype,"amsterdamEnabled",void 0);
_.L([_.U({is:"ytd-emergency-onebox-renderer",disableElementRegistration:!0})],v7);
_.D(v7,"ytd-emergency-onebox-renderer",function(){if(p7Z!==void 0)return p7Z;var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-emergency-onebox-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="content" class="style-scope ytd-emergency-onebox-renderer">\n  <yt-formatted-string id="header" text="[[data.title]]" class="style-scope ytd-emergency-onebox-renderer"></yt-formatted-string>\n  <div id="options" class="style-scope ytd-emergency-onebox-renderer">\n    <div id="first-option" class="option style-scope ytd-emergency-onebox-renderer"></div>\n    <div id="second-option" class="option style-scope ytd-emergency-onebox-renderer" hidden="[[!data.secondOption]]"></div>\n  </div>\n</div>\n\n<div id="menu" hidden="[[!data.menu]]" class="style-scope ytd-emergency-onebox-renderer"></div>\n');a.content.insertBefore(_.w().content.cloneNode(!0),
a.content.firstChild);return p7Z=a},{mode:1});var mWV;_.$q("itemSectionRenderer","exploratoryResultsRenderer","ytd-exploratory-results-renderer");var Gn=function(){return _.G.apply(this,arguments)||this};
_.b(Gn,_.G);Gn.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"}}}};
_.L([_.Q(_.k.YtRendererBehavior),_.p("design:type",Object)],Gn.prototype,"ytRendererBehavior",void 0);_.L([_.Q(_.u4.YtRendererstamperBehavior),_.p("design:type",Object)],Gn.prototype,"ytRendererstamperBehavior",void 0);_.L([_.x(),_.p("design:type",Object)],Gn.prototype,"data",void 0);_.L([_.U({is:"ytd-exploratory-results-renderer",disableElementRegistration:!0})],Gn);
_.D(Gn,"ytd-exploratory-results-renderer",function(){if(mWV!==void 0)return mWV;var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-exploratory-results-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-formatted-string id="title" text="[[data.title]]" class="style-scope ytd-exploratory-results-renderer"></yt-formatted-string>\n<div id="contents" class="style-scope ytd-exploratory-results-renderer"></div>\n');a.content.insertBefore(_.w().content.cloneNode(!0),
a.content.firstChild);return mWV=a},{mode:1});var y64;_.$q("itemSectionRenderer","feedbackElicitationSingleQuestionRenderer","ytd-feedback-elicitation-single-question-renderer");var $m=function(){var a=_.G.apply(this,arguments)||this;a.messageData=null;return a};
_.b($m,_.G);_.Z=$m.prototype;_.Z.onServiceRequestCompleted=function(a,z){a=z.actions||[];z=0;for(var I=a.length;z<I;z++){var J=a[z],r=void 0,P=void 0;if((r=_.H(J,_.SG))==null?0:(P=r.item)==null?0:P.messageRenderer)this.messageData=_.H(J,_.SG).item.messageRenderer}};
_.Z.dataChanged=function(){var a=this.data;this.hostElement.hidden=!1;_.CM(this.hostElement,"is-channel",a&&!a.avatarIs169);this.submitButton.disabled=!0;this.selectedResponseIndex=void 0};
_.Z.computeThumbnailWidth=function(a){return a?126:56};
_.Z.onSelectedResponseIndexChange=function(){this.selectedResponseIndex!==void 0&&(this.submitButton.disabled=!1)};
_.Z.onSubmitTap=function(){var a=this.data,z=this.selectedResponseIndex;a!==void 0&&z!==void 0&&(a=a.responses[z],a.responseData&&_.ab().resolve(_.j6).resolveCommand(a.responseData,{form:{element:this.hostElement}}))};
_.Z.onDismissTap=function(){this.hostElement.hidden=!0;var a=this.data;a!==void 0&&a.dismissalEndpoint&&_.ab().resolve(_.j6).resolveCommand(a.dismissalEndpoint,{form:{element:this.hostElement}})};
_.Z.updateSelectedResponseIndexFromBinding=function(a){this.selectedResponseIndex=a.detail.value};
$m.prototype.onSelectedResponseIndexChange=$m.prototype.onSelectedResponseIndexChange;$m.prototype.dataChanged=$m.prototype.dataChanged;$m.prototype.onServiceRequestCompleted=$m.prototype.onServiceRequestCompleted;_.L([_.Q(_.k.YtRendererBehavior),_.p("design:type",Object)],$m.prototype,"ytRendererBehavior",void 0);_.L([_.x(),_.p("design:type",Object)],$m.prototype,"data",void 0);_.L([_.x(),_.p("design:type",Object)],$m.prototype,"messageData",void 0);
_.L([_.x(),_.p("design:type",Number)],$m.prototype,"selectedResponseIndex",void 0);_.L([_.A3("#submit-button"),_.p("design:type",HTMLButtonElement)],$m.prototype,"submitButton",void 0);_.L([_.gz("yt-service-request-completed"),_.p("design:type",Function),_.p("design:paramtypes",[CustomEvent,_.Yq]),_.p("design:returntype")],$m.prototype,"onServiceRequestCompleted",null);_.L([_.O8("data"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],$m.prototype,"dataChanged",null);
_.L([_.O8("selectedResponseIndex"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],$m.prototype,"onSelectedResponseIndexChange",null);_.L([_.U({is:"ytd-feedback-elicitation-single-question-renderer",disableElementRegistration:!0})],$m);
_.D($m,"ytd-feedback-elicitation-single-question-renderer",function(){if(y64!==void 0)return y64;var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-feedback-elicitation-single-question-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<span id="dismissible" hidden="[[messageData]]" class="style-scope ytd-feedback-elicitation-single-question-renderer">\n  <div id="header" class="style-scope ytd-feedback-elicitation-single-question-renderer">\n    <yt-formatted-string id="question" text="[[data.question]]" class="style-scope ytd-feedback-elicitation-single-question-renderer"></yt-formatted-string>\n    <yt-icon-button on-tap="onDismissTap" class="style-scope ytd-feedback-elicitation-single-question-renderer">\n      <yt-icon icon="yt-icons:close" class="style-scope ytd-feedback-elicitation-single-question-renderer"></yt-icon>\n    </yt-icon-button>\n  </div>\n  <template is="dom-if" if="[[data.channelTitle]]" class="style-scope ytd-feedback-elicitation-single-question-renderer">\n    <a class="yt-simple-endpoint style-scope ytd-feedback-elicitation-single-question-renderer" href$="[[computeHref(data.channelEndpoint)]]" data="[[data.channelEndpoint]]">\n      <yt-img-shadow thumbnail="[[data.channelAvatar]]" width="[[computeThumbnailWidth(data.avatarIs169)]]" class="style-scope ytd-feedback-elicitation-single-question-renderer">\n      </yt-img-shadow>\n      <div id="item-title" class="style-scope ytd-feedback-elicitation-single-question-renderer">[[getSimpleString(data.channelTitle)]]</div>\n    </a>\n  </template>\n  <template is="dom-if" if="[[!data.canSelectMultiple]]" class="style-scope ytd-feedback-elicitation-single-question-renderer">\n    <tp-yt-paper-radio-group id="responses" selected="[[selectedResponseIndex]]" on-selected-changed="updateSelectedResponseIndexFromBinding" class="style-scope ytd-feedback-elicitation-single-question-renderer">\n      <template is="dom-repeat" items="[[data.responses]]" class="style-scope ytd-feedback-elicitation-single-question-renderer">\n        <tp-yt-paper-radio-button name="[[index]]" class="style-scope ytd-feedback-elicitation-single-question-renderer">\n          <yt-formatted-string text="[[item.responseText]]" class="style-scope ytd-feedback-elicitation-single-question-renderer"></yt-formatted-string>\n        </tp-yt-paper-radio-button>\n      </template>\n    </tp-yt-paper-radio-group>\n  </template>\n  <ytd-button-renderer id="submit-button" data="[[data.submitButton.buttonRenderer]]" on-tap="onSubmitTap" class="style-scope ytd-feedback-elicitation-single-question-renderer">\n  </ytd-button-renderer>\n</span>\n<span hidden="[[!messageData]]" class="style-scope ytd-feedback-elicitation-single-question-renderer">\n  <ytd-message-renderer data="[[messageData]]" class="style-scope ytd-feedback-elicitation-single-question-renderer"></ytd-message-renderer>\n</span>\n');a.content.insertBefore(_.w().content.cloneNode(!0),
a.content.firstChild);return y64=a},{mode:1});var knE;var X$=function(){return _.G.apply(this,arguments)||this};
_.b(X$,_.G);X$.prototype.computeThumbnailWidth=function(a){return a?602:428};
X$.prototype.updateWideFromBinding=function(a){this.wide=a.detail.value};
_.L([_.Q(_.k.YtRendererBehavior),_.p("design:type",Object)],X$.prototype,"ytRendererBehavior",void 0);_.L([_.x(),_.p("design:type",Object)],X$.prototype,"data",void 0);_.L([_.x(),_.p("design:type",Boolean)],X$.prototype,"wide",void 0);_.L([_.U({is:"ytd-newspaper-hero-video-renderer",disableElementRegistration:!0})],X$);
_.D(X$,"ytd-newspaper-hero-video-renderer",function(){if(knE!==void 0)return knE;var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-newspaper-hero-video-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<iron-media-query query="(min-width: 662px)" query-matches="[[wide]]" on-query-matches-changed="updateWideFromBinding" class="style-scope ytd-newspaper-hero-video-renderer">\n</iron-media-query>\n<ytd-thumbnail data="[[data]]" width="[[computeThumbnailWidth(wide)]]" class="style-scope ytd-newspaper-hero-video-renderer"></ytd-thumbnail>\n<div id="contents" class="style-scope ytd-newspaper-hero-video-renderer">\n  <a id="meta" class="yt-simple-endpoint style-scope ytd-newspaper-hero-video-renderer" href$="[[computeHref_(data.navigationEndpoint)]]" data="[[data.navigationEndpoint]]">\n    <h3 class="style-scope ytd-newspaper-hero-video-renderer">\n      <ytd-badge-supported-renderer top-standalone-badge="[[data.topStandaloneBadge]]" class="style-scope ytd-newspaper-hero-video-renderer">\n      </ytd-badge-supported-renderer>\n      <span id="video-title" title$="[[getSimpleString(data.title)]]" aria-label$="[[data.title.accessibility.accessibilityData.label]]" class="style-scope ytd-newspaper-hero-video-renderer">\n        [[getSimpleString(data.title)]]\n      </span>\n    </h3>\n    <ytd-video-meta-block class="title style-scope ytd-newspaper-hero-video-renderer" data="[[data]]"></ytd-video-meta-block>\n  </a>\n</div>\n<div class="content style-scope ytd-newspaper-hero-video-renderer">\n  <slot class="style-scope ytd-newspaper-hero-video-renderer"></slot>\n</div>\n');a.content.insertBefore(_.w().content.cloneNode(!0),
a.content.firstChild);return knE=a},{mode:1});var MXz;var Tn=function(){return _.G.apply(this,arguments)||this};
_.b(Tn,_.G);_.L([_.Q(_.k.YtRendererBehavior),_.p("design:type",Object)],Tn.prototype,"rendererBehavior",void 0);_.L([_.x(),_.p("design:type",Object)],Tn.prototype,"data",void 0);_.L([_.U({is:"ytd-newspaper-mini-video-renderer",disableElementRegistration:!0})],Tn);
_.D(Tn,"ytd-newspaper-mini-video-renderer",function(){if(MXz!==void 0)return MXz;var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-newspaper-mini-video-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<ytd-thumbnail data="[[data]]" width="210" class="style-scope ytd-newspaper-mini-video-renderer"></ytd-thumbnail>\n<a id="meta" class="yt-simple-endpoint style-scope ytd-newspaper-mini-video-renderer" href$="[[computeHref_(data.navigationEndpoint)]]" data="[[data.navigationEndpoint]]">\n  <h3 class="style-scope ytd-newspaper-mini-video-renderer">\n    <ytd-badge-supported-renderer top-standalone-badge="[[data.topStandaloneBadge]]" class="style-scope ytd-newspaper-mini-video-renderer">\n    </ytd-badge-supported-renderer>\n    <span id="video-title" title$="[[getSimpleString(data.title)]]" aria-label$="[[data.title.accessibility.accessibilityData.label]]" class="style-scope ytd-newspaper-mini-video-renderer">\n      [[getSimpleString(data.title)]]\n    </span>\n  </h3>\n  <ytd-video-meta-block class="grid style-scope ytd-newspaper-mini-video-renderer" data="[[data]]"></ytd-video-meta-block>\n</a>\n');a.content.insertBefore(_.w().content.cloneNode(!0),
a.content.firstChild);return MXz=a},{mode:1});var c64;_.$q("itemSectionRenderer","newspaperRenderer","ytd-newspaper-renderer");var dv=function(){return _.G.apply(this,arguments)||this};
_.b(dv,_.G);dv.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"}}}};
_.L([_.Q(_.u4.YtRendererstamperBehavior),_.p("design:type",Object)],dv.prototype,"ytRendererstamperBehavior",void 0);_.L([_.Q(_.k.YtRendererBehavior),_.p("design:type",Object)],dv.prototype,"ytRendererBehavior",void 0);_.L([_.x(),_.p("design:type",Object)],dv.prototype,"data",void 0);_.L([_.U({is:"ytd-newspaper-renderer",disableElementRegistration:!0})],dv);
_.D(dv,"ytd-newspaper-renderer",function(){if(c64!==void 0)return c64;var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-newspaper-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="primary-contents" class="style-scope ytd-newspaper-renderer"></div>\n<div id="secondary-contents" class="style-scope ytd-newspaper-renderer"></div>\n');a.content.insertBefore(_.w().content.cloneNode(!0),
a.content.firstChild);return c64=a},{mode:1});var Y2z;_.$q("itemSectionRenderer","playlistVideoListRenderer","ytd-playlist-video-list-renderer");var W7=function(){var a=_.G.apply(this,arguments)||this;a.isSegment=!1;a.actionMap={"yt-add-renderer-to-item-section-action":"handleAddRendererToItemSectionAction","yt-playlist-remove-videos-action":"handlePlaylistRemoveVideosAction","yt-update-playlist-action":"handleUpdatePlaylistAction"};a.nextContinuation={continuationType:"playlistVideoListContinuation"};return a};
_.b(W7,_.G);_.Z=W7.prototype;_.Z.attached=function(){_.ab();var a;(a=_.ab().resolve(_.eL(_.tO)))!=null&&(a.playlistVideoListElement=this.hostElement)};
_.Z.detached=function(){var a;(a=_.ab().resolve(_.eL(_.tO)))!=null&&(a.playlistVideoListElement=void 0);a=_.ab().resolve(_.eL(_.Ep));_.K("web_enable_voting_animation")&&a&&(a.parentElem=void 0,a.videos=[],a.continuationsPresent=!1,a.showRefreshPill=!1)};
_.Z.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"}}}}}};
_.Z.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"contents"}};
_.Z.dataChanged=function(){var a=_.ab().resolve(_.eL(_.Ep));if(_.K("web_enable_voting_animation")&&this.data&&a){var z=_.PK(this.hostElement).querySelector("#contents");z&&(a.parentElem=z);a.addVideos(this.data.contents)}_.nnj(this.ytReorderableBehavior)};
_.Z.onRendererstamperFinished=function(){this.canReorder&&_.KCj(this.ytReorderableBehavior,_.PK(this.hostElement).querySelector("#contents"),document.documentElement,"playlist-drag-handle")};
_.Z.onPlaylistReloading=function(){this.isReloading=!0};
_.Z.onUpdateSetVideoId=function(a){if(a.detail&&this.data&&this.data.contents){var z=a.detail;a=this.data.contents.findIndex(function(r){var P;return((P=r.playlistVideoRenderer)==null?void 0:P.videoId)===z.videoId});
if(!(a<0)&&z.setVideoId&&(this.set("data.contents."+a+".playlistVideoRenderer.setVideoId",z.setVideoId),_.K("web_enable_voting_animation"))){var I;if(a=_.H((I=this.data.contents[a].playlistVideoRenderer)==null?void 0:I.engagementBar,_.JZ$)){var J;(J=a.actions)==null||J.forEach(function(r){if(r=_.H(r,_.rZ0))r.itemId=z.setVideoId})}(I=_.ab().resolve(_.eL(_.Ep)))&&h9Z(I,z.videoId,z.setVideoId)}}};
_.Z.computeContentsClass=function(a){return a?"reloading":""};
_.Z.computeIsSortable=function(a,z){return a&&z>0&&!this.isSegment&&!_.K("shorts_in_playlists_web")};
_.Z.computeIsEditable=function(a){return a};
_.Z.computeCanReorder=function(a){return a};
_.Z.handlePlaylistRemoveVideosAction=function(a){if(this.get("playlistRemoveVideosAction.setVideoIds",a)&&this.data&&this.data.contents){a=_.H(a,_.DQv).setVideoIds;for(var z=this.data.contents.length-1;z>=0;){var I=this.data.contents[z].playlistVideoRenderer;I&&I.setVideoId&&a.includes(I.setVideoId)&&this.splice("data.contents",z,1);z--}_.ZF(this.hostElement,"yt-close-popup-action",["ytd-menu-popup-renderer"]);this.updateIndices()}};
_.Z.updateIndices=function(){if(this.data&&this.data.contents)for(var a=0;a<this.data.contents.length;a++)this.set("data.contents."+a+".playlistVideoRenderer.index",_.Mo(String(a+1)))};
_.Z.handleDrop=function(a){a=a.currDragItem;var z=_.d$(a.parentNode.childNodes,a),I=this.data.contents.splice(Number(_.cd(a.data.index))-1,1)[0];this.data.contents.splice(z,0,I);z=z?this.get("contents."+(z-1)+".playlistVideoRenderer.setVideoId",this.data):void 0;this.updateIndices();a=this.buildReorderServiceEndpoint(a.data.setVideoId,z);this.ytComponentBehavior.resolveCommand(a)};
_.Z.buildReorderServiceEndpoint=function(a,z){return this.data&&this.data.onReorderEndpoint?(this.set("data.onReorderEndpoint.playlistEditEndpoint.actions.0.setVideoId",a),this.set("data.onReorderEndpoint.playlistEditEndpoint.actions.0.movedSetVideoIdPredecessor",z),this.data.onReorderEndpoint):null};
_.Z.handleUpdatePlaylistAction=function(a){var z;(a=_.H((z=_.H(a,_.RSw))==null?void 0:z.updatedRenderer,_.uuJ))&&this.canReorder!==a.canReorder&&this.set("data.canReorder",a.canReorder);a&&a.contents&&(this.set("data.contents",a.contents),this.isReloading=!1);a&&a.continuations&&this.set("data.continuations",a.continuations)};
_.Z.handleAddRendererToItemSectionAction=function(a){var z,I=(z=_.H(a,xW0))==null?void 0:z.renderer,J;I&&((J=_.H(a,xW0))==null?void 0:J.targetItemSection)===this.data.targetId&&(this.data.contents=this.data.contents||[],this.splice("data.contents",this.data.contents.length,0,I),a=_.ab().resolve(_.eL(_.Ep)),_.K("web_enable_voting_animation")&&a&&(I&&(z=_.Ir3(I))&&a.recommendedVideos.push({itemId:z,videoId:_.P6d(I),voteCount:_.Zs$(I),voteSortTiebreaker:Date.now().toString()}),this.updateIndices()))};
_.Z.isVotingEnabledOnPlaylist=function(a){if(!a)return!1;a=_.C(a);for(a=a.next();!a.done;a=a.next()){var z=void 0;return!!_.H((z=a.value.playlistVideoRenderer)==null?void 0:z.engagementBar,_.JZ$)}return!1};
_.Z.onAppendContinuationItemsActionFinished=function(){var a;this.isVotingEnabledOnPlaylist((a=this.data)==null?void 0:a.contents)&&(this.updateIndices(),a=_.ab().resolve(_.eL(_.Ep)),_.K("web_enable_voting_animation")&&a&&this.data&&a.addVideos(this.data.contents))};
_.Z.updateVideoData=function(a){if(a.detail&&this.data&&this.data.contents){var z=a.detail;a=z.toIdx;var I=z.itemId,J=z.newVoteCount,r=z.voteStatus;z=z.hideItem;var P,N,u=(P=this.data)==null?void 0:(N=P.contents)==null?void 0:N.findIndex(function(A){return _.Ir3(A)===I});
if(!(u<0)){P=this.data.contents[u];var E;if((E=P.playlistVideoRenderer)==null?0:E.voteCount)P.playlistVideoRenderer.voteCount=J;var O;if(E=_.H((O=P.playlistVideoRenderer)==null?void 0:O.engagementBar,_.JZ$)){var f;(f=E.actions)==null||f.forEach(function(A){(A=_.H(A,_.rZ0))&&A.initialState&&(A.initialState.votes=J,A.initialState.status=r)})}this.data.contents.splice(u,1);
z||this.data.contents.splice(a,0,P);this.updateIndices()}}};
W7.prototype.updateVideoData=W7.prototype.updateVideoData;W7.prototype.onAppendContinuationItemsActionFinished=W7.prototype.onAppendContinuationItemsActionFinished;W7.prototype.onUpdateSetVideoId=W7.prototype.onUpdateSetVideoId;W7.prototype.onPlaylistReloading=W7.prototype.onPlaylistReloading;W7.prototype.onRendererstamperFinished=W7.prototype.onRendererstamperFinished;W7.prototype.dataChanged=W7.prototype.dataChanged;
_.L([_.Q(_.k.YtRendererBehavior),_.p("design:type",Object)],W7.prototype,"ytRendererBehavior",void 0);_.L([_.Q(_.u4.YtRendererstamperBehavior),_.p("design:type",Object)],W7.prototype,"ytRendererstamperBehavior",void 0);_.L([_.Q(_.Hc.YtActionHandlerBehavior),_.p("design:type",Object)],W7.prototype,"ytActionHandlerBehavior",void 0);_.L([_.Q(_.cX.YtNextContinuationBehavior),_.p("design:type",Object)],W7.prototype,"ytNextContinuationBehavior",void 0);
_.L([_.Q(_.FCE),_.p("design:type",Object)],W7.prototype,"ytReorderableBehavior",void 0);_.L([_.Q(_.M8),_.p("design:type",Object)],W7.prototype,"ytContinuationHandlerBehavior",void 0);_.L([_.Q(_.Ms.YtComponentBehavior),_.p("design:type",Object)],W7.prototype,"ytComponentBehavior",void 0);_.L([_.x(),_.p("design:type",Object)],W7.prototype,"data",void 0);_.L([_.x(),_.p("design:type",Boolean)],W7.prototype,"isReloading",void 0);
_.L([_.x({reflectToAttribute:!0}),_.p("design:type",Object)],W7.prototype,"isSegment",void 0);_.L([_.x({computed:"computeIsSortable(data.canReorder, data.contents.length)"}),_.p("design:type",Boolean)],W7.prototype,"isSortable",void 0);_.L([_.x({computed:"computeIsEditable(data.isEditable)"}),_.p("design:type",Boolean)],W7.prototype,"isEditable",void 0);_.L([_.x({computed:"computeCanReorder(data.canReorder)"}),_.p("design:type",Boolean)],W7.prototype,"canReorder",void 0);
_.L([_.x({value:101}),_.p("design:type",Number)],W7.prototype,"scrollMargin",void 0);_.L([_.O8("data"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],W7.prototype,"dataChanged",null);_.L([_.gz("yt-rendererstamper-finished"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],W7.prototype,"onRendererstamperFinished",null);
_.L([_.gz("yt-playlist-reloading"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],W7.prototype,"onPlaylistReloading",null);_.L([_.gz("yt-update-set-video-id"),_.p("design:type",Function),_.p("design:paramtypes",[CustomEvent]),_.p("design:returntype")],W7.prototype,"onUpdateSetVideoId",null);
_.L([_.gz("yt-append-continuation-items-action-finished"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],W7.prototype,"onAppendContinuationItemsActionFinished",null);_.L([_.gz("yt-update-video-data-voting-animation"),_.p("design:type",Function),_.p("design:paramtypes",[CustomEvent]),_.p("design:returntype")],W7.prototype,"updateVideoData",null);_.L([_.U({is:"ytd-playlist-video-list-renderer",disableElementRegistration:!0})],W7);
_.D(W7,"ytd-playlist-video-list-renderer",function(){if(Y2z!==void 0)return Y2z;var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-playlist-video-list-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="sort-filter-menu" hidden="[[!isSortable]]" class$="[[computeContentsClass(isReloading)]] style-scope ytd-playlist-video-list-renderer"></div>\n<div id="spinner-container" class="style-scope ytd-playlist-video-list-renderer">\n  <tp-yt-paper-spinner-lite active="[[isReloading]]" class="style-scope ytd-playlist-video-list-renderer"></tp-yt-paper-spinner-lite>\n</div>\n<div id="contents" class$="[[computeContentsClass(isReloading)]] style-scope ytd-playlist-video-list-renderer"></div>\n<div id="continuations" class="style-scope ytd-playlist-video-list-renderer"></div>\n');
a.content.insertBefore(_.w().content.cloneNode(!0),a.content.firstChild);return Y2z=a},{mode:_.Np("kevlar_poly_si_batch_j047")?1:2});var q2Z;var o9=function(){return _.G.apply(this,arguments)||this};
_.b(o9,_.G);o9.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"}}}}};
o9.prototype.onTextWrapperTap=function(a){var z=this.data&&this.data.navigationEndpoint;z&&!_.qK(_.ch(a),this.hostElement,["A".toString(),"BUTTON".toString()])&&_.PA(this.hostElement,"yt-navigate",{endpoint:z})};
o9.prototype.dataChanged=function(){var a=this.get("data.offerButton.buttonRenderer.serviceEndpoint");a&&a.commandMetadata&&_.H(a.commandMetadata,_.$F)&&_.H(a.commandMetadata,_.$F).fireAutomatically&&_.ab().resolve(_.j6).resolveCommand(a,{form:{element:this.hostElement}})};
o9.prototype.dataChanged=o9.prototype.dataChanged;_.L([_.Q(_.k.YtRendererBehavior),_.p("design:type",Object)],o9.prototype,"ytRendererBehavior",void 0);_.L([_.Q(_.u4.YtRendererstamperBehavior),_.p("design:type",Object)],o9.prototype,"ytRendererstamperBehavior",void 0);_.L([_.Q(_.eB),_.p("design:type",Object)],o9.prototype,"ytdLockupBehavior",void 0);_.L([_.x(),_.p("design:type",Object)],o9.prototype,"data",void 0);_.L([_.x({reflectToAttribute:!0,value:function(){return _.K("enable_desktop_search_bigger_thumbs")}}),
_.p("design:type",Boolean)],o9.prototype,"useBiggerThumbs",void 0);_.L([_.x({reflectToAttribute:!0,value:function(){return _.rM("desktop_search_bigger_thumbs_style")}}),
_.p("design:type",String)],o9.prototype,"biggerThumbsStyle",void 0);_.L([_.x({reflectToAttribute:!0}),_.p("design:type",Boolean)],o9.prototype,"leftAligned",void 0);_.L([_.O8("data"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],o9.prototype,"dataChanged",null);_.L([_.U({disableElementRegistration:!0,is:"ytd-movie-renderer"})],o9);
_.D(o9,"ytd-movie-renderer",function(){if(q2Z!==void 0)return q2Z;var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-movie-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="thumbnail-container style-scope ytd-movie-renderer">\n  <ytd-thumbnail data="[[data]]" use-expandable-tooltip="[[useExpandableTooltip_]]" width="246" class="style-scope ytd-movie-renderer">\n  </ytd-thumbnail>\n</div>\n<div class="text-wrapper style-scope ytd-movie-renderer" on-tap="onTextWrapperTap">\n  <div class="top-container style-scope ytd-movie-renderer">\n    <div class="top-left-container style-scope ytd-movie-renderer">\n      <h3 class="style-scope ytd-movie-renderer">\n         <a id="video-title" class="yt-simple-endpoint style-scope ytd-movie-renderer" aria-label$="[[data.title.accessibility.accessibilityData.label]]" href$="[[computeHref_(data.navigationEndpoint)]]" title$="[[getSimpleString(data.title)]]" data="[[data.navigationEndpoint]]">\n          [[getSimpleString(data.title)]]\n        </a>\n      </h3>\n      <div id="channel-info" class="style-scope ytd-movie-renderer">\n        <a hidden="[[!data.channelThumbnailSupportedRenderers.channelThumbnailWithLinkRenderer.thumbnail]]" id="channel-thumbnail" aria-label$="[[data.channelThumbnailSupportedRenderers.channelThumbnailWithLinkRenderer.accessibility.accessibilityData.label]]" href$="[[computeHref_(data.channelThumbnailSupportedRenderers.channelThumbnailWithLinkRenderer.navigationEndpoint)]]" class="style-scope ytd-movie-renderer">\n          <yt-img-shadow thumbnail="[[data.channelThumbnailSupportedRenderers.channelThumbnailWithLinkRenderer.thumbnail]]" width="24" class="style-scope ytd-movie-renderer">\n          </yt-img-shadow>\n        </a>\n        <ytd-channel-name id="channel-name" class="long-byline style-scope ytd-movie-renderer" badges="[[data.ownerBadges]]" channel-name="[[data.longBylineText]]" wrap-text="true">\n        </ytd-channel-name>\n      </div>\n    </div>\n    <div class="top-right-container style-scope ytd-movie-renderer">\n      <ytd-button-renderer data="[[data.offerButton.buttonRenderer]]" hidden="[[!data.offerButton.buttonRenderer]]" class="style-scope ytd-movie-renderer">\n      </ytd-button-renderer>\n      <div id="offer-buttons" class="style-scope ytd-movie-renderer"></div>\n      <div id="menu" class="style-scope ytd-movie-renderer"></div>\n    </div>\n  </div>\n\n  <ul class="movie-metadata-list style-scope ytd-movie-renderer">\n    <template is="dom-repeat" items="[[data.topMetadataItems]]" class="style-scope ytd-movie-renderer">\n      <li class="style-scope ytd-movie-renderer">[[getSimpleString(item)]]</li>\n    </template>\n  </ul>\n\n  <ytd-badge-supported-renderer badges="[[data.badges]]" class="style-scope ytd-movie-renderer"></ytd-badge-supported-renderer>\n\n  <yt-formatted-string id="description-text" text="[[data.descriptionSnippet]]" class="style-scope ytd-movie-renderer">\n  </yt-formatted-string>\n\n  <ul class="movie-metadata-list style-scope ytd-movie-renderer">\n    <template is="dom-repeat" items="[[data.bottomMetadataItems]]" class="style-scope ytd-movie-renderer">\n      <li class="style-scope ytd-movie-renderer">[[getSimpleString(item)]]</li>\n    </template>\n  </ul>\n\n  <div id="explore-button" class="style-scope ytd-movie-renderer"></div>\n</div>\n<yt-interaction id="interaction" class="extended style-scope ytd-movie-renderer"></yt-interaction>\n');a.content.insertBefore(_.w().content.cloneNode(!0),
a.content.firstChild);return q2Z=a},{mode:1});var e9Z;var U2=function(){var a=_.G.apply(this,arguments)||this;a.rounded=!0;a.pageAttachedTo=void 0;a.actionMap={"yt-signal-action-pause-player":"handleSignalActionPausePlayer"};return a};
_.b(U2,_.G);U2.prototype.attached=function(){this.pageAttachedTo=_.ab().resolve(_.aK).getCurrentPage();_.PA(this.hostElement,"yt-player-attached",this.player)};
U2.prototype.detached=function(){var a;if((a=this.pageAttachedTo)==null?0:a.hostElement)_.PA(this.pageAttachedTo.hostElement,"yt-player-detached",this.player),this.pageAttachedTo=void 0};
U2.prototype.dataChanged=function(){var a;if((a=this.data)==null?0:a.videoId)a={video_id:this.data.videoId,autoplay:!0},!_.K("miniplayer_stop_channel_video_autoplay_killswitch")&&_.ab().resolve(_.UJ).isMiniplayerActive()&&(a.pause_at_start=!0,a.autoplay=!1),this.player.loadVideoWithPlayerVars(a)};
U2.prototype.handleSignalActionPausePlayer=function(){_.IK().pause()};
U2.prototype.dataChanged=U2.prototype.dataChanged;_.L([_.x(),_.p("design:type",Object)],U2.prototype,"data",void 0);_.L([_.Q(_.k.YtRendererBehavior),_.p("design:type",Object)],U2.prototype,"ytRendererBehavior",void 0);_.L([_.Q(_.Hc.YtActionHandlerBehavior),_.p("design:type",Object)],U2.prototype,"ytActionHandlerBehavior",void 0);_.L([_.x({reflectToAttribute:!0}),_.p("design:type",Object)],U2.prototype,"rounded",void 0);_.L([_.A3("#player"),_.p("design:type",Object)],U2.prototype,"player",void 0);
_.L([_.O8("data"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],U2.prototype,"dataChanged",null);_.L([_.U({disableElementRegistration:!0,is:"ytd-channel-video-player-renderer"})],U2);
_.D(U2,"ytd-channel-video-player-renderer",function(){if(e9Z!==void 0)return e9Z;var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-channel-video-player-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="player-container" class="style-scope ytd-channel-video-player-renderer">\n  <ytd-player id="player" context="WEB_PLAYER_CONTEXT_CONFIG_ID_KEVLAR_CHANNEL_TRAILER" class="style-scope ytd-channel-video-player-renderer">\n  </ytd-player>\n</div>\n<div id="content" class="style-scope ytd-channel-video-player-renderer">\n  <div id="metadata-container" class="style-scope ytd-channel-video-player-renderer">\n    <yt-formatted-string id="title" aria-level="3" ellipsis-truncate="" link-inherit-color="" role="heading" text="[[data.title]]" class="style-scope ytd-channel-video-player-renderer">\n    </yt-formatted-string>\n    <ytd-video-meta-block class="title style-scope ytd-channel-video-player-renderer" data="[[data]]"></ytd-video-meta-block>\n  </div>\n  <ytd-expander id="description" disable-toggle="" max-number-of-lines="7" class="style-scope ytd-channel-video-player-renderer">\n    <yt-formatted-string class="content style-scope ytd-channel-video-player-renderer" slot="content" split-lines="" text="[[data.description]]">\n    </yt-formatted-string>\n    <yt-formatted-string class="more-button style-scope ytd-channel-video-player-renderer" slot="more-button" link-inherit-color="" text="[[data.readMoreText]]">\n    </yt-formatted-string>\n  </ytd-expander>\n</div>\n');a.content.insertBefore(_.w().content.cloneNode(!0),
a.content.firstChild);return e9Z=a},{mode:1});var a6G;var jz4;var zae;var D2=function(){var a=_.G.apply(this,arguments)||this;a.playing=!1;a.playerId="ytd-default-promo-panel-renderer-inline-playback-renderer-"+_.yx(a);a.active=!1;return a};
_.b(D2,_.G);_.Z=D2.prototype;_.Z.detached=function(){this.stop()};
_.Z.play=function(){var a=this,z,I,J,r,P;return _.t(function(N){if(N.nextAddress==1)return a.active=!0,z=a.get("data.inlinePlaybackEndpoint.watchEndpoint"),I=z.videoId||a.data.videoId,J=z.startTimeSeconds||0,r=z.playerParams||null,_.K("kevlar_player_update_killswitch")?N.yield(a.playerEl.update({args:{video_id:I,startSeconds:J,player_params:r}}),2):(a.playerEl.loadVideoWithPlayerVars({video_id:I,startSeconds:J,player_params:r,autoplay:!0}),N.jumpTo(2));if(N.nextAddress!=4)return N.yield(a.playerEl.getPlayerPromise(),
4);P=N.yieldResult;P.unloadModule("annotations_module");P.addEventListener("onStateChange",function(u){a.onPlayerStateChange(u)});
_.nu(N)})};
_.Z.onPlayerStateChange=function(a){if(this.active)switch(this.playing=a===1,a){case 1:_.PA(this.hostElement,"yt-default-promo-panel-renderer-playing");break;case 0:_.PA(this.hostElement,"yt-default-promo-panel-renderer-ended")}};
_.Z.stop=function(){this.playerEl.stop();this.playing=this.active=!1};
_.Z.resize=function(){var a=this,z;return _.t(function(I){if(I.nextAddress==1)return I.yield(a.playerEl.getPlayerPromise(),2);z=I.yieldResult;z.setSize(NaN,NaN);_.nu(I)})};
_.L([_.x(),_.p("design:type",Object)],D2.prototype,"data",void 0);_.L([_.x({reflectToAttribute:!0}),_.p("design:type",Object)],D2.prototype,"playing",void 0);_.L([_.x(),_.p("design:type",Object)],D2.prototype,"playerId",void 0);_.L([_.A3("#player"),_.p("design:type",Object)],D2.prototype,"playerEl",void 0);_.L([_.U({disableElementRegistration:!0,is:"ytd-default-promo-panel-renderer-inline-playback-renderer"})],D2);
_.D(D2,"ytd-default-promo-panel-renderer-inline-playback-renderer",function(){if(zae!==void 0)return zae;var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-default-promo-panel-renderer-inline-playback-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<ytd-player id="player" context="WEB_PLAYER_CONTEXT_CONFIG_ID_KEVLAR_VERTICAL_LANDING_PAGE_PROMO" player-id="[[playerId]]" class="style-scope ytd-default-promo-panel-renderer-inline-playback-renderer">\n</ytd-player>\n');
a.content.insertBefore(_.w().content.cloneNode(!0),a.content.firstChild);return zae=a},{mode:1});var I64;var J8V;var R9=function(){var a=_.G.apply(this,arguments)||this;a.width=0;return a};
_.b(R9,_.G);_.Z=R9.prototype;_.Z.attached=function(){this.isVideoPlaying=!1;this.videoEl.classList.add("hideit");this.placeholderEl.classList.remove("hideit");this.videoEl.addEventListener("ended",_.BK(this,this.onEnded));this.mp4El.addEventListener("error",_.BK(this,this.onError))};
_.Z.detached=function(){this.videoEl.removeEventListener("ended",_.BK(this,this.onEnded));this.mp4El.removeEventListener("error",_.BK(this,this.onError))};
_.Z.play=function(){var a=this;if(this.mp4El.getAttribute("src")&&this.isMp4Supported()){this.videoEl.currentTime=0;this.videoEl.load();var z=this.videoEl.play();z?z.then(function(){a.handleVideoStartPlaying()}).catch(function(){_.PA(a.hostElement,"yt-video-thumbnail-not-playing")}):this.handleVideoStartPlaying()}else _.PA(this.hostElement,"yt-video-thumbnail-not-playing")};
_.Z.handleVideoStartPlaying=function(){this.videoEl.classList.remove("hideit");this.placeholderEl.classList.add("hideit");this.isVideoPlaying=!0};
_.Z.stop=function(){this.isVideoPlaying&&(this.showPlaceholder(),this.isVideoPlaying=!1,this.videoEl.pause(),this.videoEl.currentTime=0)};
_.Z.dataChanged=function(){var a;if((a=this.data)==null?0:a.thumbnailPlaceholder)a=_.r4(this.data.thumbnailPlaceholder.thumbnails,this.width),this.placeholderEl.style.backgroundImage="url("+a+")";this.stop();this.autoplay&&this.play()};
_.Z.showPlaceholder=function(){this.videoEl.classList.add("hideit");this.placeholderEl.classList.remove("hideit")};
_.Z.onEnded=function(){this.stop();_.PA(this.hostElement,"yt-video-thumbnail-ended");this.loop&&this.play()};
_.Z.onError=function(){_.PA(this.hostElement,"yt-video-thumbnail-error")};
_.Z.isMp4Supported=function(){return!(!this.videoEl.canPlayType||!this.videoEl.canPlayType("video/mp4").replace(/no/,""))};
_.Z.getVideoThumbnail=function(a){if(a&&a.length)return a[0]};
R9.prototype.dataChanged=R9.prototype.dataChanged;_.L([_.x(),_.p("design:type",Object)],R9.prototype,"data",void 0);_.L([_.x({reflectToAttribute:!0}),_.p("design:type",Boolean)],R9.prototype,"animatePlaceholderOnEntrance",void 0);_.L([_.x({reflectToAttribute:!0}),_.p("design:type",Boolean)],R9.prototype,"autoplay",void 0);_.L([_.x({computed:"getVideoThumbnail(data.videoThumbnails)"}),_.p("design:type",Object)],R9.prototype,"videoThumbnail",void 0);
_.L([_.x(),_.p("design:type",Boolean)],R9.prototype,"loop",void 0);_.L([_.x(),_.p("design:type",Boolean)],R9.prototype,"isVideoPlaying",void 0);_.L([_.x(),_.p("design:type",Object)],R9.prototype,"width",void 0);_.L([_.A3("#mp4"),_.p("design:type",HTMLElement)],R9.prototype,"mp4El",void 0);_.L([_.A3("#placeholder"),_.p("design:type",HTMLElement)],R9.prototype,"placeholderEl",void 0);_.L([_.A3("#video"),_.p("design:type",HTMLVideoElement)],R9.prototype,"videoEl",void 0);
_.L([_.O8("data"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],R9.prototype,"dataChanged",null);_.L([_.dz({is:"yt-video-as-thumbnail-details",disableElementRegistration:!0})],R9);
_.D(R9,"yt-video-as-thumbnail-details",function(){if(J8V===void 0){var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-video-as-thumbnail-details--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.yt_video_as_thumbnail_details.yt.video.as.thumbnail.details.css.js--\x3e<div id="placeholder" class="style-scope yt-video-as-thumbnail-details"></div>\n<div id="video-container" class="style-scope yt-video-as-thumbnail-details">\n  <video id="video" muted="" class="style-scope yt-video-as-thumbnail-details">\n    <source id="mp4" src$="[[videoThumbnail.url]]" type="video/mp4" class="style-scope yt-video-as-thumbnail-details">\n  </video>\n</div>\n');a.content.insertBefore(_.w().content.cloneNode(!0),
a.content.firstChild);var z=a.content,I=z.insertBefore;I64===void 0&&(I64=document.createElement("template"));var J=I64;I.call(z,J.content.cloneNode(!0),a.content.firstChild);J8V=a}a=J8V;return a},{mode:2});var LY=function(){var a=_.G.apply(this,arguments)||this;a.disableGridStateAware=!1;a.animationEnabled=_.K("enable_web_ketchup_hero_animation");a.transitioningOut=!1;a.narrow=!1;a.narrower=!1;a.isCarouselInFeed=!1;a.videoTimeoutJobId=0;a.panelTimeoutJobId=0;a.panelTimeoutJobStartMs=0;a.actionMap={"yt-window-resized":"onWindowResized"};return a};
_.b(LY,_.G);_.Z=LY.prototype;_.Z.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.Z.created=function(){this.ytdGridStateAwareBehavior.gridStateAwareSizingElementSelector="#content"};
_.Z.updateSize=function(){this.narrow=this.hostElement.clientHeight*16/9>this.hostElement.clientWidth;var a;this.player&&((a=this.data)==null?0:a.inlinePlaybackRenderer)&&this.player.resize();this.narrower=this.isNarrower();this.setScrimLayer(this.data)};
_.Z.attached=function(){this.onWindowResized()};
_.Z.detached=function(){this.clearTimeouts()};
_.Z.onWindowResized=function(){this.updateSize()};
_.Z.computePanelLayout=function(a){return a&&a.panelLayout||"DEFAULT_PROMO_PANEL_RENDERER_LAYOUT_A"};
_.Z.playVideo=function(){var a;this.video&&((a=this.data)==null?0:a.videoThumbnail)&&this.video.play();var z;this.player&&((z=this.data)==null?0:z.inlinePlaybackRenderer)&&this.player.play()};
_.Z.stopVideo=function(){var a;this.video&&((a=this.data)==null?0:a.videoThumbnail)&&this.video.stop();var z;this.player&&((z=this.data)==null?0:z.inlinePlaybackRenderer)&&this.player.stop()};
_.Z.transitionOut=function(){var a=this;this.transitioningOut=!0;return new Promise(function(z){var I=function(){_.PK(a.hostElement).querySelector("#action-button").removeEventListener("animationend",I);_.GW.cancelJob(J);z();a.transitioningOut=!1};
var J=_.b9(_.GW,I,1E3);_.PK(a.hostElement).querySelector("#action-button").addEventListener("animationend",I);a.player&&(a.player.playing=!1)})};
_.Z.computeMetadataOrder=function(a){return a&&a.metadataOrder&&a.metadataOrder!=="DEFAULT_PROMO_PANEL_RENDERER_METADATA_ORDER_UNSPECIFIED"?a.metadataOrder:"DEFAULT_PROMO_PANEL_RENDERER_METADATA_ORDER_TITLE_DESCRIPTION"};
_.Z.computeByline=function(){return this.get("data.byline.defaultPromoPanelBylineRenderer")};
_.Z.computeAvatarSize=function(a){return a&&a.panelLayout==="DEFAULT_PROMO_PANEL_RENDERER_LAYOUT_C"?24:36};
_.Z.onContentClick=function(a){if(!_.qK(_.ch(a),this.hostElement,["A".toString(),"BUTTON".toString()])){var z;if((z=this.data)==null?0:z.navigationEndpoint){var I;this.componentBehavior.resolveCommand((I=this.data)==null?void 0:I.navigationEndpoint)}}};
_.Z.dataChanged=function(){this.clearTimeouts();this.setBackgroundImage(this.data);this.startPanelTimeout();this.updateSize()};
_.Z.setBackgroundImage=function(a){if(a=this.getBackgroundImageUrl(a))_.PK(this.hostElement).querySelector("#hero").style.backgroundImage="url("+a+")"};
_.Z.setScrimLayer=function(a){var z=this.getScrimLayerColorStops(a);a=((a==null?void 0:a.scrimRotation)||0)+180;this.isNarrower()&&this.panelLayout==="DEFAULT_PROMO_PANEL_RENDERER_LAYOUT_C"&&(a=180);_.Xw("HTML_DIR")==="rtl"&&(a=-a);z&&(_.PK(this.hostElement).querySelector("#scrim").style.backgroundImage="linear-gradient("+a+"deg, "+z+")")};
_.Z.isNarrower=function(){return this.hostElement.clientWidth<LY.NARROW_VERSION_SIZE};
_.Z.getScrimLayerColorStops=function(){var a,z=(a=this.data)==null?void 0:a.scrimColorValues;if(!z)return null;if(z.length===1)return a=_.RX(z[0]),a+" 0%, "+a+" 100%";if(z.length===3){var I=[0,72,98];return z.map(function(J,r){return _.RX(J)+" "+I[r]+"%"}).join(",")}return null};
_.Z.getBackgroundImageUrl=function(a){return a&&a.largeFormFactorBackgroundThumbnail?_.r4((a.largeFormFactorBackgroundThumbnail.thumbnailLandscapePortraitRenderer.landscape||a.largeFormFactorBackgroundThumbnail.thumbnailLandscapePortraitRenderer.portrait).thumbnails,screen.width):null};
_.Z.onPlaying=function(){this.startVideoTimeout()};
_.Z.onEnded=function(){this.rotate()};
_.Z.startPanelTimeout=function(){var a=this;if(!this.panelTimeoutJobId){var z=this.get("data.minPanelDisplayDurationMs");z&&(this.panelTimeoutJobStartMs=Date.now(),this.panelTimeoutJobId=_.b9(_.GW,function(){a.rotate()},z))}};
_.Z.startVideoTimeout=function(){var a=this;if(!this.videoTimeoutJobId){_.GW.cancelJob(this.panelTimeoutJobId);var z=Date.now()-this.panelTimeoutJobStartMs;z=Math.max(0,this.get("data.minPanelDisplayDurationMs")-z);z=Math.max(this.get("data.minVideoPlayDurationMs")||0,z);this.videoTimeoutJobId=_.b9(_.GW,function(){a.rotate()},z)}};
_.Z.clearTimeouts=function(){this.panelTimeoutJobId!==0&&_.GW.cancelJob(this.panelTimeoutJobId);this.videoTimeoutJobId!==0&&_.GW.cancelJob(this.videoTimeoutJobId);this.videoTimeoutJobId=this.panelTimeoutJobId=0};
_.Z.rotate=function(){this.clearTimeouts();_.PA(this.hostElement,"yt-default-promo-panel-renderer-rotate")};
_.eH.Object.defineProperties(LY.prototype,{player:{configurable:!0,enumerable:!0,get:function(){return _.PK(this.hostElement).querySelector("#player")}},
video:{configurable:!0,enumerable:!0,get:function(){return _.PK(this.hostElement).querySelector("#video")}}});
_.eH.Object.defineProperties(LY,{NARROW_VERSION_SIZE:{configurable:!0,enumerable:!0,get:function(){return 650}}});
LY.prototype.onEnded=LY.prototype.onEnded;LY.prototype.onPlaying=LY.prototype.onPlaying;LY.prototype.dataChanged=LY.prototype.dataChanged;_.L([_.Q(_.kI),_.p("design:type",Object)],LY.prototype,"ytdGridStateAwareBehavior",void 0);_.L([_.Q(_.Ms.YtComponentBehavior),_.p("design:type",Object)],LY.prototype,"componentBehavior",void 0);_.L([_.Q(_.cZ.YtdGuideStateAwareBehavior),_.p("design:type",Object)],LY.prototype,"ytdGuideStateAwareBehavior",void 0);
_.L([_.Q(_.KQG),_.p("design:type",Object)],LY.prototype,"ytBooleanLogicBehavior",void 0);_.L([_.Q(_.Hc.YtActionHandlerBehavior),_.p("design:type",Object)],LY.prototype,"ytActionHandlerBehavior",void 0);_.L([_.Q(_.u4.YtRendererstamperBehavior),_.p("design:type",Object)],LY.prototype,"ytRendererstamperBehavior",void 0);_.L([_.Q(_.k.YtRendererBehavior),_.p("design:type",Object)],LY.prototype,"ytRendererBehavior",void 0);
_.L([_.x({reflectToAttribute:!0}),_.p("design:type",Object)],LY.prototype,"disableGridStateAware",void 0);_.L([_.x(),_.p("design:type",Object)],LY.prototype,"data",void 0);_.L([_.x({computed:"computePanelLayout(data)",reflectToAttribute:!0}),_.p("design:type",String)],LY.prototype,"panelLayout",void 0);_.L([_.x({reflectToAttribute:!0}),_.p("design:type",Object)],LY.prototype,"animationEnabled",void 0);_.L([_.x({reflectToAttribute:!0}),_.p("design:type",Object)],LY.prototype,"transitioningOut",void 0);
_.L([_.x({computed:"computeMetadataOrder(data)"}),_.p("design:type",Boolean)],LY.prototype,"metadataOrder",void 0);_.L([_.x({computed:"computeByline(data)"}),_.p("design:type",Object)],LY.prototype,"byline",void 0);_.L([_.x({computed:"computeAvatarSize(data)"}),_.p("design:type",Number)],LY.prototype,"avatarSize",void 0);_.L([_.x({reflectToAttribute:!0}),_.p("design:type",Object)],LY.prototype,"narrow",void 0);_.L([_.x({reflectToAttribute:!0}),_.p("design:type",Object)],LY.prototype,"narrower",void 0);
_.L([_.x({reflectToAttribute:!0}),_.p("design:type",Object)],LY.prototype,"layoutStyle",void 0);_.L([_.x({reflectToAttribute:!0}),_.p("design:type",Object)],LY.prototype,"isCarouselInFeed",void 0);_.L([_.O8("data"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],LY.prototype,"dataChanged",null);_.L([_.gz("yt-default-promo-panel-renderer-playing"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],LY.prototype,"onPlaying",null);
_.L([_.gz("yt-default-promo-panel-renderer-ended"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],LY.prototype,"onEnded",null);_.L([_.U({disableElementRegistration:!0,is:"ytd-default-promo-panel-renderer"})],LY);
_.D(LY,"ytd-default-promo-panel-renderer",function(){if(jz4!==void 0)return jz4;var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-default-promo-panel-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="hero" class="style-scope ytd-default-promo-panel-renderer"></div>\n<yt-video-as-thumbnail-details id="video" animate-placeholder-on-entrance="" autoplay="" data="[[data.videoThumbnail]]" disable-upgrade$="[[!data.videoThumbnail]]" height="600" hidden$="[[!data.videoThumbnail]]" width="[[screen.width]]" class="style-scope ytd-default-promo-panel-renderer">\n</yt-video-as-thumbnail-details>\n<ytd-default-promo-panel-renderer-inline-playback-renderer id="player" data="[[data.inlinePlaybackRenderer.inlinePlaybackRenderer]]" disable-upgrade$="[[!data.inlinePlaybackRenderer]]" hidden$="[[!data.inlinePlaybackRenderer]]" class="style-scope ytd-default-promo-panel-renderer">\n</ytd-default-promo-panel-renderer-inline-playback-renderer>\n<div id="scrim" class="style-scope ytd-default-promo-panel-renderer"></div>\n<div id="content" on-click="onContentClick" class="style-scope ytd-default-promo-panel-renderer">\n  <yt-img-shadow id="logo" height="68" hidden="[[!data.foregroundThumbnailDetails]]" thumbnail="[[data.foregroundThumbnailDetails]]" class="style-scope ytd-default-promo-panel-renderer">\n  </yt-img-shadow>\n  <template is="dom-if" if="[[equals(metadataOrder, \'DEFAULT_PROMO_PANEL_RENDERER_METADATA_ORDER_DESCRIPTION_TITLE\')]]" class="style-scope ytd-default-promo-panel-renderer">\n    <yt-formatted-string id="description" text="[[data.description]]" class="style-scope ytd-default-promo-panel-renderer"></yt-formatted-string>\n  </template>\n  <a class="yt-simple-endpoint style-scope ytd-default-promo-panel-renderer" href$="[[computeHref_(data.navigationEndpoint)]]" data="[[data.navigationEndpoint]]">\n    <h1 id="hero-title" class="style-scope ytd-default-promo-panel-renderer">[[getSimpleString(data.title)]]</h1>\n  </a>\n  <template is="dom-if" if="[[byline]]" class="style-scope ytd-default-promo-panel-renderer">\n    <div id="byline" class="style-scope ytd-default-promo-panel-renderer">\n      <yt-img-shadow id="avatar" hidden="[[!byline.thumbnailDetails]]" thumbnail="[[byline.thumbnailDetails]]" width="[[avatarSize]]" class="style-scope ytd-default-promo-panel-renderer">\n      </yt-img-shadow>\n      <yt-formatted-string id="channel-name" link-inherit-color="" text="[[byline.bylineText]]" title="" class="style-scope ytd-default-promo-panel-renderer">\n      </yt-formatted-string>\n      <ytd-badge-supported-renderer id="video-badges" badges="[[byline.badgeRenderers]]" hidden="[[!byline.badgeRenderers]]" class="style-scope ytd-default-promo-panel-renderer">\n      </ytd-badge-supported-renderer>\n    </div>\n  </template>\n  <template is="dom-if" if="[[equals(metadataOrder, \'DEFAULT_PROMO_PANEL_RENDERER_METADATA_ORDER_TITLE_DESCRIPTION\')]]" class="style-scope ytd-default-promo-panel-renderer">\n    <yt-formatted-string id="description" text="[[data.description]]" class="style-scope ytd-default-promo-panel-renderer"></yt-formatted-string>\n  </template>\n  <div id="action-button" class="style-scope ytd-default-promo-panel-renderer"></div>\n</div>\n');a.content.insertBefore(_.w().content.cloneNode(!0),
a.content.firstChild);return jz4=a},{mode:1});_.$q("itemSectionRenderer","carouselItemRenderer","ytd-carousel-item-renderer");var l7=function(){var a=_.G.apply(this,arguments)||this;a.narrower=!1;a.dotMenuVisible=!1;a.paginationThumbnailsVisible=!1;a.active=!0;a.disableGridStateAware=!1;a.actionMap={"yt-window-resized":"onWindowResized"};return a};
_.b(l7,_.G);_.Z=l7.prototype;_.Z.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]]"}}}}}};
_.Z.attached=function(){document.addEventListener("yt-page-type-changed",_.BK(this,this.onPageTypeChange));this.currentPageSubtype=_.sM(location.pathname);this.onWindowResized()};
_.Z.detached=function(){this.jobId&&_.GW.cancelJob(this.jobId);this.updateSizeJobId&&_.GW.cancelJob(this.updateSizeJobId);document.removeEventListener("yt-page-type-changed",_.BK(this,this.onPageTypeChange))};
_.Z.onPageTypeChange=function(a){this.active=a.detail.newPageSubtype===this.currentPageSubtype};
_.Z.onWindowResized=function(){this.updateSize()};
_.Z.updateSize=function(){this.narrower=this.isNarrower(this.hostElement.clientWidth);this.scrollThumbnails(this.currentItemIndex)};
_.Z.setNextCarouselItem=function(){this.shouldRotate()&&this.setCarouselItem(this.currentItemIndex+1)};
_.Z.setCarouselItem=function(a){a>=this.data.carouselItems.length&&this.loopCount++;this.jobId&&_.GW.cancelJob(this.jobId);var z=this.getCurrentPanelElement();z&&z.stopVideo();this.currentItemIndex=a%this.data.carouselItems.length;this.currentItem=this.data.carouselItems[this.currentItemIndex];this.scrollThumbnails(this.currentItemIndex);this.currentItemHasVideo()?(z||(z=this.getCurrentPanelElement()),z.playVideo()):this.startRotationJob()};
_.Z.scrollThumbnails=function(a){if(this.computeLayoutType(this.data)==="DEFAULT_PROMO_PANEL_RENDERER_LAYOUT_C"){var z=this.getCurrentPaginationElement();if(z){var I=_.PK(this.hostElement).querySelector("#pagination-thumbnails");this.currentItemIndex<2?I.style.transform="translateX(0)":(z=z.offsetWidth+8,I.style.transform="translateX(-"+z*(a-Math.ceil(Math.floor(this.overlay.offsetWidth/z)/2)+1)+"px)")}}};
_.Z.onDataChanged=function(){var a=this;this.data&&(this.loopCount=0,this.autorotateActive=!0,this.data.autoRotateDurationMs!==void 0&&(this.rotationTimeout=this.data.autoRotateDurationMs),this.setCarouselItem(0),this.updateSizeJobId=_.hE(_.GW,function(){var z;(z=a.getCurrentPanelElement())==null||z.updateSize();a.updateSize()}))};
_.Z.getCurrentPanelElement=function(){return _.PK(_.PK(this.hostElement).querySelector("#carousel-item")).querySelector("ytd-default-promo-panel-renderer")};
_.Z.getCurrentPaginationElement=function(){return _.PK(_.PK(this.hostElement).querySelector("#pagination-thumbnails")).querySelector(".ytd-carousel-item-renderer.selected")};
_.Z.getNavigationClass=function(a,z){return a===z?"selected":""};
_.Z.getNavigationDurationStyle=function(a){return"animation-duration:"+(this.get("data.carouselItems."+a+".defaultPromoPanelRenderer.minPanelDisplayDurationMs")||0)+"ms;"};
_.Z.onNavigationTap=function(a){var z=this,I=a.model.index;I!==this.currentItemIndex&&(this.getCurrentPanelElement().transitionOut().then(function(){z.setCarouselItem(I)}),this.autorotateActive=!1)};
_.Z.onVideoThumbnailEnded=function(){var a=this;if(this.shouldRotate()){var z=this.getCurrentPaginationElement();z&&(z.classList.add("finished"),this.getCurrentPanelElement().transitionOut().then(function(){z.classList.remove("finished");a.setNextCarouselItem()}))}};
_.Z.onVideoThumbnailError=function(){this.startRotationJob()};
_.Z.onVideoNotPlaying=function(){this.startRotationJob()};
_.Z.currentItemHasVideo=function(){return!!this.get("defaultPromoPanelRenderer.videoThumbnail",this.currentItem)||!!this.get("defaultPromoPanelRenderer.inlinePlaybackRenderer",this.currentItem)};
_.Z.startRotationJob=function(){var a=this;_.GW.cancelJob(this.jobId);this.shouldRotate()&&this.rotationTimeout&&(this.jobId=_.GW.addLowPriorityJob(function(){a.getCurrentPanelElement().transitionOut().then(function(){a.setNextCarouselItem()})},this.rotationTimeout))};
_.Z.computeDotMenuVisible=function(a,z){return!!a&&!!a.carouselItems&&a.carouselItems.length>1&&!a.paginationThumbnails||!!z};
_.Z.computePaginationThumbnailsVisible=function(a,z){var I,J;return((J=a==null?void 0:(I=a.paginationThumbnails)==null?void 0:I.length)!=null?J:0)>1&&!z};
_.Z.computeLayoutType=function(){return this.get("data.carouselItems.0.defaultPromoPanelRenderer.panelLayout")||"DEFAULT_PROMO_PANEL_RENDERER_LAYOUT_A"};
_.Z.computePaginatorAlignment=function(a){return(a==null?void 0:a.paginatorAlignment)||"CAROUSEL_ITEM_RENDERER_PAGINATOR_ALIGNMENT_END"};
_.Z.shouldRotate=function(){return this.data.carouselItems.length>1&&this.active&&this.loopCount<3&&this.autorotateActive};
_.Z.activeChanged=function(){this.data&&(this.active?this.setCarouselItem(this.currentItemIndex):this.currentItem=void 0)};
_.Z.isNarrower=function(a){return(a!=null?a:0)<LY.NARROW_VERSION_SIZE};
l7.prototype.activeChanged=l7.prototype.activeChanged;l7.prototype.onVideoNotPlaying=l7.prototype.onVideoNotPlaying;l7.prototype.onVideoThumbnailError=l7.prototype.onVideoThumbnailError;l7.prototype.onVideoThumbnailEnded=l7.prototype.onVideoThumbnailEnded;l7.prototype.onDataChanged=l7.prototype.onDataChanged;_.L([_.Q(_.kI),_.p("design:type",Object)],l7.prototype,"ytdGridStateAwareBehavior",void 0);
_.L([_.Q(_.cZ.YtdGuideStateAwareBehavior),_.p("design:type",Object)],l7.prototype,"ytdGuideStateAwareBehavior",void 0);_.L([_.Q(_.u4.YtRendererstamperBehavior),_.p("design:type",Object)],l7.prototype,"ytRendererstamperBehavior",void 0);_.L([_.Q(_.k.YtRendererBehavior),_.p("design:type",Object)],l7.prototype,"ytRendererBehavior",void 0);_.L([_.x(),_.p("design:type",Object)],l7.prototype,"data",void 0);_.L([_.x(),_.p("design:type",Object)],l7.prototype,"currentItem",void 0);
_.L([_.x(),_.p("design:type",Number)],l7.prototype,"currentItemIndex",void 0);_.L([_.x(),_.p("design:type",Number)],l7.prototype,"rotationTimeout",void 0);_.L([_.x(),_.p("design:type",Number)],l7.prototype,"loopCount",void 0);_.L([_.x({computed:"computePaginatorAlignment(data)",reflectToAttribute:!0}),_.p("design:type",String)],l7.prototype,"paginatorAlignment",void 0);_.L([_.x(),_.p("design:type",Number)],l7.prototype,"jobId",void 0);
_.L([_.x(),_.p("design:type",Number)],l7.prototype,"updateSizeJobId",void 0);_.L([_.x({value:!1,reflectToAttribute:!0}),_.p("design:type",Boolean)],l7.prototype,"isCarouselInFeed",void 0);_.L([_.x({reflectToAttribute:!0}),_.p("design:type",Object)],l7.prototype,"narrower",void 0);_.L([_.x({computed:"computeDotMenuVisible(data, narrower)"}),_.p("design:type",Object)],l7.prototype,"dotMenuVisible",void 0);
_.L([_.x({computed:"computePaginationThumbnailsVisible(data, narrower)"}),_.p("design:type",Object)],l7.prototype,"paginationThumbnailsVisible",void 0);_.L([_.x({computed:"computeLayoutType(data)",reflectToAttribute:!0}),_.p("design:type",String)],l7.prototype,"layoutType",void 0);_.L([_.x({value:!0,reflectToAttribute:!0}),_.p("design:type",Boolean)],l7.prototype,"autorotateActive",void 0);_.L([_.x(),_.p("design:type",Object)],l7.prototype,"active",void 0);
_.L([_.x({reflectToAttribute:!0}),_.p("design:type",Object)],l7.prototype,"disableGridStateAware",void 0);_.L([_.A3("#overlay"),_.p("design:type",HTMLElement)],l7.prototype,"overlay",void 0);_.L([_.Fe("data"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],l7.prototype,"onDataChanged",null);
_.L([_.gz("yt-video-thumbnail-ended"),_.gz("yt-default-promo-panel-renderer-rotate"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],l7.prototype,"onVideoThumbnailEnded",null);_.L([_.gz("yt-video-thumbnail-error"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],l7.prototype,"onVideoThumbnailError",null);
_.L([_.gz("yt-video-thumbnail-not-playing"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],l7.prototype,"onVideoNotPlaying",null);_.L([_.Fe("active"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],l7.prototype,"activeChanged",null);_.L([_.U({disableElementRegistration:!0,is:"ytd-carousel-item-renderer"})],l7);
_.D(l7,"ytd-carousel-item-renderer",function(){if(a6G!==void 0)return a6G;var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-carousel-item-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="carousel-item" class="style-scope ytd-carousel-item-renderer"></div>\n<div id="menu" hidden="[[!dotMenuVisible]]" class="style-scope ytd-carousel-item-renderer">\n  <template is="dom-repeat" items="[[data.carouselItems]]" class="style-scope ytd-carousel-item-renderer">\n    <button class$="menu-dot [[getNavigationClass(index, currentItemIndex)]] style-scope ytd-carousel-item-renderer" on-click="onNavigationTap">\n    </button>\n  </template>\n</div>\n<div id="overlay" class="style-scope ytd-carousel-item-renderer">\n  <div id="pagination-thumbnails" hidden="[[!paginationThumbnailsVisible]]" class="style-scope ytd-carousel-item-renderer">\n    <template is="dom-repeat" items="[[data.paginationThumbnails]]" class="style-scope ytd-carousel-item-renderer">\n      <button class$="[[getNavigationClass(index, currentItemIndex)]] style-scope ytd-carousel-item-renderer" aria-label$="[[item.accessibility.accessibilityData.label]]" on-click="onNavigationTap">\n          <yt-img-shadow height="54" hidden="[[!equals(layoutType, \'DEFAULT_PROMO_PANEL_RENDERER_LAYOUT_C\')]]" thumbnail="[[item]]" width="96" class="style-scope ytd-carousel-item-renderer">\n          </yt-img-shadow>\n          <yt-img-shadow height="40" hidden="[[equals(layoutType, \'DEFAULT_PROMO_PANEL_RENDERER_LAYOUT_C\')]]" thumbnail="[[item]]" width="72" class="style-scope ytd-carousel-item-renderer">\n          </yt-img-shadow>\n        <div class="progress-bar style-scope ytd-carousel-item-renderer" style$="[[getNavigationDurationStyle(index)]]" hidden="[[!autorotateActive]]">\n        </div>\n      </button>\n    </template>\n  </div>\n</div>\n');
a.content.insertBefore(_.w().content.cloneNode(!0),a.content.firstChild);return a6G=a},{mode:2});var r8Z;var PLE;var ZDi;var CL0;var pY=function(){var a=_.G.apply(this,arguments)||this;a.originalQuery=null;a.originalEndpoint=null;return a};
_.b(pY,_.G);pY.prototype.computeShowOriginalQueryWithoutEndpoint_=function(a,z){return!(!a||z)};
_.L([_.Q(_.Ms.YtComponentBehavior),_.p("design:type",Object)],pY.prototype,"ytComponentBehavior",void 0);_.L([_.x(),_.p("design:type",Object)],pY.prototype,"correctedText",void 0);_.L([_.x(),_.p("design:type",Object)],pY.prototype,"correctedQuery",void 0);_.L([_.x(),_.p("design:type",Object)],pY.prototype,"correctedEndpoint",void 0);_.L([_.x(),_.p("design:type",Object)],pY.prototype,"originalText",void 0);_.L([_.x(),_.p("design:type",Object)],pY.prototype,"originalQuery",void 0);
_.L([_.x(),_.p("design:type",Object)],pY.prototype,"originalEndpoint",void 0);_.L([_.x({value:!1,computed:"computeShowOriginalQueryWithoutEndpoint_(originalQuery, originalEndpoint)"}),_.p("design:type",Boolean)],pY.prototype,"showOriginalQueryWithoutEndpoint",void 0);_.L([_.dz({is:"yt-search-query-correction",disableElementRegistration:!0})],pY);
_.D(pY,"yt-search-query-correction",function(){if(CL0===void 0){var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-search-query-correction--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.yt_search_query_correction.yt.search.query.correction.css.js--\x3e<yt-formatted-string id="corrected" text="[[correctedText]]" class="style-scope yt-search-query-correction"></yt-formatted-string>\n<a class="yt-simple-endpoint style-scope yt-search-query-correction" href$="[[computeHref_(correctedEndpoint)]]" data="[[correctedEndpoint]]">\n  <yt-formatted-string id="corrected-link" text="[[correctedQuery]]" class="style-scope yt-search-query-correction"></yt-formatted-string>\n</a>\n<template is="dom-if" if="[[originalText]]" class="style-scope yt-search-query-correction">\n  <yt-formatted-string id="original" text="[[originalText]]" class="style-scope yt-search-query-correction"></yt-formatted-string>\n  <template is="dom-if" if="[[originalEndpoint]]" class="style-scope yt-search-query-correction">\n    <a class="yt-simple-endpoint style-scope yt-search-query-correction" href$="[[computeHref_(originalEndpoint)]]" data="[[originalEndpoint]]">\n        <yt-formatted-string class="original-link style-scope yt-search-query-correction" text="[[originalQuery]]"></yt-formatted-string>\n      </a>\n  </template>\n  <template is="dom-if" if="[[showOriginalQueryWithoutEndpoint]]" class="style-scope yt-search-query-correction">\n    <yt-formatted-string class="original-link style-scope yt-search-query-correction" text="[[originalQuery]]"></yt-formatted-string>\n  </template>\n</template>\n');a.content.insertBefore(_.w().content.cloneNode(!0),
a.content.firstChild);var z=a.content,I=z.insertBefore;ZDi===void 0&&(ZDi=document.createElement("template"));var J=ZDi;I.call(z,J.content.cloneNode(!0),a.content.firstChild);CL0=a}a=CL0;return a},{mode:2});_.$q("itemSectionRenderer","didYouMeanRenderer","yt-did-you-mean-renderer");var wv=function(){return _.G.apply(this,arguments)||this};
_.b(wv,_.G);_.L([_.Q(_.k.YtRendererBehavior),_.p("design:type",Object)],wv.prototype,"ytRendererBehavior",void 0);_.L([_.x(),_.p("design:type",Object)],wv.prototype,"data",void 0);_.L([_.dz({is:"yt-did-you-mean-renderer",disableElementRegistration:!0})],wv);
_.D(wv,"yt-did-you-mean-renderer",function(){if(PLE===void 0){var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-did-you-mean-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.sections.yt_did_you_mean_renderer.yt.did.you.mean.renderer.css.js--\x3e<yt-search-query-correction corrected-text="[[data.didYouMean]]" corrected-query="[[data.correctedQuery]]" corrected-endpoint="[[data.correctedQueryEndpoint]]" class="style-scope yt-did-you-mean-renderer">\n</yt-search-query-correction>\n');a.content.insertBefore(_.w().content.cloneNode(!0),
a.content.firstChild);var z=a.content,I=z.insertBefore;r8Z===void 0&&(r8Z=document.createElement("template"));var J=r8Z;I.call(z,J.content.cloneNode(!0),a.content.firstChild);PLE=a}a=PLE;return a},{mode:2});var Nkz;var t50;_.$q("itemSectionRenderer","includingResultsForRenderer","yt-including-results-for-renderer");var mL=function(){return _.G.apply(this,arguments)||this};
_.b(mL,_.G);_.L([_.Q(_.k.YtRendererBehavior),_.p("design:type",Object)],mL.prototype,"ytRendererBehavior",void 0);_.L([_.x(),_.p("design:type",Object)],mL.prototype,"data",void 0);_.L([_.dz({is:"yt-including-results-for-renderer",disableElementRegistration:!0})],mL);
_.D(mL,"yt-including-results-for-renderer",function(){if(t50===void 0){var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-including-results-for-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.sections.yt_including_results_for_renderer.yt.including.results.for.renderer.css.js--\x3e<yt-search-query-correction corrected-text="[[data.includingResultsFor]]" corrected-query="[[data.correctedQuery]]" corrected-endpoint="[[data.correctedQueryEndpoint]]" original-text="[[data.searchOnlyFor]]" original-query="[[data.originalQuery]]" original-endpoint="[[data.originalQueryEndpoint]]" class="style-scope yt-including-results-for-renderer">\n</yt-search-query-correction>\n');a.content.insertBefore(_.w().content.cloneNode(!0),
a.content.firstChild);var z=a.content,I=z.insertBefore;Nkz===void 0&&(Nkz=document.createElement("template"));var J=Nkz;I.call(z,J.content.cloneNode(!0),a.content.firstChild);t50=a}a=t50;return a},{mode:2});var uY0;var EW4;_.$q("itemSectionRenderer","musicPassFeatureInfoRenderer","yt-music-pass-feature-info-renderer");var y9=function(){return _.G.apply(this,arguments)||this};
_.b(y9,_.G);y9.prototype.computeExtraClasses_=function(a,z){var I="";a&&(I+=" "+a.toLowerCase().replace(/_/g,"-"));z&&(I+=" "+z.toLowerCase().replace(/_/g,"-"));return I};
y9.prototype.computeUrlImg_=function(){var a=this.data;a.image&&(_.PK(this.hostElement).querySelector("#container").style.backgroundImage="url("+_.r4(a.image.thumbnails,Number.MAX_VALUE)+")")};
y9.prototype.computeUrlImg_=y9.prototype.computeUrlImg_;_.L([_.Q(_.k.YtRendererBehavior),_.p("design:type",Object)],y9.prototype,"ytRendererBehavior",void 0);_.L([_.x(),_.p("design:type",Object)],y9.prototype,"data",void 0);_.L([_.O8("data"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],y9.prototype,"computeUrlImg_",null);_.L([_.dz({is:"yt-music-pass-feature-info-renderer",disableElementRegistration:!0})],y9);
_.D(y9,"yt-music-pass-feature-info-renderer",function(){if(EW4===void 0){var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-music-pass-feature-info-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.sections.yt_music_pass_feature_info_renderer.yt.music.pass.feature.info.renderer.css.js--\x3e<div id="container" class$="[[computeExtraClasses_(data.textStyle, data.textHorizontalAlignment)]] style-scope yt-music-pass-feature-info-renderer">\n  <div id="message" dir="ltr" class="style-scope yt-music-pass-feature-info-renderer">\n    <yt-formatted-string id="header" text="[[data.header]]" class="style-scope yt-music-pass-feature-info-renderer"></yt-formatted-string>\n    <yt-formatted-string id="description" text="[[data.description]]" class="style-scope yt-music-pass-feature-info-renderer"></yt-formatted-string>\n  </div>\n</div>\n');
a.content.insertBefore(_.w().content.cloneNode(!0),a.content.firstChild);var z=a.content,I=z.insertBefore;uY0===void 0&&(uY0=document.createElement("template"));var J=uY0;I.call(z,J.content.cloneNode(!0),a.content.firstChild);EW4=a}a=EW4;return a},{mode:2});var BkG;var gWZ;_.$q("itemSectionRenderer","noResultsFoundShowingResultsForRenderer","yt-no-results-found-showing-results-for-renderer");var km=function(){return _.G.apply(this,arguments)||this};
_.b(km,_.G);_.L([_.Q(_.k.YtRendererBehavior),_.p("design:type",Object)],km.prototype,"ytRendererBehavior",void 0);_.L([_.x(),_.p("design:type",Object)],km.prototype,"data",void 0);_.L([_.dz({is:"yt-no-results-found-showing-results-for-renderer",disableElementRegistration:!0})],km);
_.D(km,"yt-no-results-found-showing-results-for-renderer",function(){if(gWZ===void 0){var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-no-results-found-showing-results-for-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.sections.yt_no_results_found_showing_results_for_renderer.yt.no.results.found.showing.results.for.renderer.css.js--\x3e<yt-search-query-correction corrected-text="[[data.showingResultsFor]]" corrected-query="[[data.correctedQuery]]" corrected-endpoint="[[data.correctedQueryEndpoint]]" original-text="[[data.noResultsFound]]" original-query="[[data.originalQuery]]" original-endpoint="[[data.originalQueryEndpoint]]" class="style-scope yt-no-results-found-showing-results-for-renderer">\n</yt-search-query-correction>\n');a.content.insertBefore(_.w().content.cloneNode(!0),
a.content.firstChild);var z=a.content,I=z.insertBefore;BkG===void 0&&(BkG=document.createElement("template"));var J=BkG;I.call(z,J.content.cloneNode(!0),a.content.firstChild);gWZ=a}a=gWZ;return a},{mode:2});var OD0;var f6M;_.$q("itemSectionRenderer","resultsWithoutQuotesRenderer","yt-results-without-quotes-renderer");var MW=function(){return _.G.apply(this,arguments)||this};
_.b(MW,_.G);_.L([_.Q(_.k.YtRendererBehavior),_.p("design:type",Object)],MW.prototype,"ytRendererBehavior",void 0);_.L([_.x(),_.p("design:type",Object)],MW.prototype,"data",void 0);_.L([_.dz({is:"yt-results-without-quotes-renderer",disableElementRegistration:!0})],MW);
_.D(MW,"yt-results-without-quotes-renderer",function(){if(f6M===void 0){var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-results-without-quotes-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.sections.yt_results_without_quotes_renderer.yt.results.without.quotes.renderer.css.js--\x3e<yt-search-query-correction corrected-text="[[data.resultsFor]]" corrected-query="[[data.correctedQuery]]" corrected-endpoint="[[data.correctedQueryEndpoint]]" original-text="[[data.withoutQuotes]]" class="style-scope yt-results-without-quotes-renderer">\n</yt-search-query-correction>\n');a.content.insertBefore(_.w().content.cloneNode(!0),
a.content.firstChild);var z=a.content,I=z.insertBefore;OD0===void 0&&(OD0=document.createElement("template"));var J=OD0;I.call(z,J.content.cloneNode(!0),a.content.firstChild);f6M=a}a=f6M;return a},{mode:2});var A8f;var szz;_.$q("itemSectionRenderer","searchNoResultsRenderer","yt-search-no-results-renderer");var c7=function(){return _.G.apply(this,arguments)||this};
_.b(c7,_.G);_.L([_.Q(_.k.YtRendererBehavior),_.p("design:type",Object)],c7.prototype,"ytRendererBehavior",void 0);_.L([_.x(),_.p("design:type",Object)],c7.prototype,"data",void 0);_.L([_.dz({is:"yt-search-no-results-renderer",disableElementRegistration:!0})],c7);
_.D(c7,"yt-search-no-results-renderer",function(){if(szz===void 0){var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-search-no-results-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.sections.yt_search_no_results_renderer.yt.search.no.results.renderer.css.js--\x3e<yt-formatted-string id="text" text="[[data.noResultsText]]" class="style-scope yt-search-no-results-renderer"></yt-formatted-string>\n<template is="dom-if" if="[[data.alternateQueryText]]" class="style-scope yt-search-no-results-renderer">\n  <a class="yt-simple-endpoint style-scope yt-search-no-results-renderer" href$="[[computeHref_(data.alternateQueryEndpoint)]]" data="[[data.alternateQueryEndpoint]]">\n    <yt-formatted-string id="link" text="[[data.alternateQueryText]]" class="style-scope yt-search-no-results-renderer"></yt-formatted-string>\n  </a>\n</template>\n');a.content.insertBefore(_.w().content.cloneNode(!0),
a.content.firstChild);var z=a.content,I=z.insertBefore;A8f===void 0&&(A8f=document.createElement("template"));var J=A8f;I.call(z,J.content.cloneNode(!0),a.content.firstChild);szz=a}a=szz;return a},{mode:2});var nWZ;var KRZ;_.$q("itemSectionRenderer","showingResultsForRenderer","yt-showing-results-for-renderer");var Ym=function(){return _.G.apply(this,arguments)||this};
_.b(Ym,_.G);_.L([_.Q(_.k.YtRendererBehavior),_.p("design:type",Object)],Ym.prototype,"ytRendererBehavior",void 0);_.L([_.x(),_.p("design:type",Object)],Ym.prototype,"data",void 0);_.L([_.dz({is:"yt-showing-results-for-renderer",disableElementRegistration:!0})],Ym);
_.D(Ym,"yt-showing-results-for-renderer",function(){if(KRZ===void 0){var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-showing-results-for-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.sections.yt_showing_results_for_renderer.yt.showing.results.for.renderer.css.js--\x3e<yt-search-query-correction corrected-endpoint="[[data.correctedQueryEndpoint]]" corrected-query="[[data.correctedQuery]]" corrected-text="[[data.showingResultsFor]]" original-endpoint="[[data.originalQueryEndpoint]]" original-query="[[data.originalQuery]]" original-text="[[data.searchInsteadFor]]" class="style-scope yt-showing-results-for-renderer">\n</yt-search-query-correction>\n');a.content.insertBefore(_.w().content.cloneNode(!0),
a.content.firstChild);var z=a.content,I=z.insertBefore;nWZ===void 0&&(nWZ=document.createElement("template"));var J=nWZ;I.call(z,J.content.cloneNode(!0),a.content.firstChild);KRZ=a}a=KRZ;return a},{mode:2});var FR0;var HDM;var bDZ;var haG;var qW=function(){var a=_.G.apply(this,arguments)||this;a.answerExpanded=!1;return a};
_.b(qW,_.G);qW.prototype.toggleAnswer_=function(a){var z=_.Yh(a);z&&z.classList.contains("yt-simple-endpoint")||(a.preventDefault(),a.stopPropagation(),this.answerExpanded=!this.answerExpanded)};
qW.prototype.toggleAnswer_=qW.prototype.toggleAnswer_;_.L([_.Q(_.k.YtRendererBehavior),_.p("design:type",Object)],qW.prototype,"ytRendererBehavior",void 0);_.L([_.x(),_.p("design:type",Object)],qW.prototype,"data",void 0);_.L([_.x({reflectToAttribute:!0}),_.p("design:type",Object)],qW.prototype,"answerExpanded",void 0);_.L([_.gz("tap"),_.p("design:type",Function),_.p("design:paramtypes",[CustomEvent]),_.p("design:returntype")],qW.prototype,"toggleAnswer_",null);
_.L([_.dz({is:"yt-generic-faq-question-renderer",disableElementRegistration:!0})],qW);
_.D(qW,"yt-generic-faq-question-renderer",function(){if(haG===void 0){var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-generic-faq-question-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.ypc.yt_generic_faq_question_renderer.yt.generic.faq.question.renderer.css.js--\x3e<div class="head style-scope yt-generic-faq-question-renderer" on-tap="toggleAnswer_">\n  <span class="question style-scope yt-generic-faq-question-renderer">[[getSimpleString(data.question)]]</span>\n  <yt-icon id="expand-arrow" class="answer-arrow style-scope yt-generic-faq-question-renderer" hidden="[[answerExpanded]]" icon="yt-icons:expand-more">\n  </yt-icon>\n  <yt-icon id="collapse-arrow" class="answer-arrow style-scope yt-generic-faq-question-renderer" hidden="[[!answerExpanded]]" icon="yt-icons:expand-less">\n  </yt-icon>\n</div>\n<tp-yt-iron-collapse id="collapse" opened="[[answerExpanded]]" class="style-scope yt-generic-faq-question-renderer">\n  <template is="dom-repeat" items="[[data.answers]]" class="style-scope yt-generic-faq-question-renderer">\n    <yt-formatted-string class="answer style-scope yt-generic-faq-question-renderer" text="[[item]]"></yt-formatted-string>\n  </template>\n</tp-yt-iron-collapse>\n');a.content.insertBefore(_.w().content.cloneNode(!0),
a.content.firstChild);var z=a.content,I=z.insertBefore;bDZ===void 0&&(bDZ=document.createElement("template"));var J=bDZ;I.call(z,J.content.cloneNode(!0),a.content.firstChild);haG=a}a=haG;return a},{mode:2});_.$q("itemSectionRenderer","faqSectionRenderer","yt-faq-section-renderer");var eX=function(){return _.G.apply(this,arguments)||this};
_.b(eX,_.G);eX.prototype.configureRendererStamper=function(){return{"data.questions":{id:"contents",mapping:{genericFaqQuestionRenderer:"yt-generic-faq-question-renderer"}}}};
_.L([_.Q(_.u4.YtRendererstamperBehavior),_.p("design:type",Object)],eX.prototype,"ytRendererstamperBehavior",void 0);_.L([_.Q(_.k.YtRendererBehavior),_.p("design:type",Object)],eX.prototype,"ytRendererBehavior",void 0);_.L([_.x(),_.p("design:type",Object)],eX.prototype,"data",void 0);_.L([_.dz({is:"yt-faq-section-renderer",disableElementRegistration:!0})],eX);
_.D(eX,"yt-faq-section-renderer",function(){if(HDM===void 0){var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-faq-section-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.ypc.yt_faq_section_renderer.yt.faq.section.renderer.css.js--\x3e<div class="container style-scope yt-faq-section-renderer">\n  <span class="header style-scope yt-faq-section-renderer">[[getSimpleString(data.header)]]</span>\n  <div id="contents" class="style-scope yt-faq-section-renderer"></div>\n</div>\n');a.content.insertBefore(_.w().content.cloneNode(!0),
a.content.firstChild);var z=a.content,I=z.insertBefore;FR0===void 0&&(FR0=document.createElement("template"));var J=FR0;I.call(z,J.content.cloneNode(!0),a.content.firstChild);HDM=a}a=HDM;return a},{mode:2});var V5M;var QzE;_.$q("itemSectionRenderer","OfferItemExpandedRenderer","yt-offer-item-expanded-renderer");var az=function(){return _.G.apply(this,arguments)||this};
_.b(az,_.G);
az.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"}}}}};
_.L([_.Q(_.k.YtRendererBehavior),_.p("design:type",Object)],az.prototype,"ytRendererBehavior",void 0);_.L([_.Q(_.u4.YtRendererstamperBehavior),_.p("design:type",Object)],az.prototype,"ytRendererstamperBehavior",void 0);_.L([_.x(),_.p("design:type",Object)],az.prototype,"data",void 0);_.L([_.dz({is:"yt-offer-item-expanded-renderer",disableElementRegistration:!0})],az);
_.D(az,"yt-offer-item-expanded-renderer",function(){if(QzE===void 0){var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-offer-item-expanded-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.ypc.yt_offer_item_expanded_renderer.yt.offer.item.expanded.renderer.css.js--\x3e<div id="image-renderer" class="style-scope yt-offer-item-expanded-renderer"></div>\n<div id="content" class="style-scope yt-offer-item-expanded-renderer">\n    <div id="heading-renderer" class="style-scope yt-offer-item-expanded-renderer"></div>\n    <div id="description-renderer" class="style-scope yt-offer-item-expanded-renderer"></div>\n    <div id="additional-info-renderer" class="style-scope yt-offer-item-expanded-renderer"></div>\n</div>\n');a.content.insertBefore(_.w().content.cloneNode(!0),
a.content.firstChild);var z=a.content,I=z.insertBefore;V5M===void 0&&(V5M=document.createElement("template"));var J=V5M;I.call(z,J.content.cloneNode(!0),a.content.firstChild);QzE=a}a=QzE;return a},{mode:2});var SKZ;var iDz;_.$q("itemSectionRenderer","OfferItemRenderer","yt-offer-item-renderer");var j5=function(){return _.G.apply(this,arguments)||this};
_.b(j5,_.G);
j5.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"}}}}};
j5.prototype.computeFullWidthMode=function(a){return!(!a||!a.fullWidthMode)};
j5.prototype.computeBorderlessMode=function(a){return!(!a||!a.borderlessMode)};
_.L([_.Q(_.k.YtRendererBehavior),_.p("design:type",Object)],j5.prototype,"ytRendererBehavior",void 0);_.L([_.Q(_.u4.YtRendererstamperBehavior),_.p("design:type",Object)],j5.prototype,"ytRendererstamperBehavior",void 0);_.L([_.x(),_.p("design:type",Object)],j5.prototype,"data",void 0);_.L([_.x({reflectToAttribute:!0,computed:"computeFullWidthMode(data)"}),_.p("design:type",Boolean)],j5.prototype,"fullWidthMode",void 0);
_.L([_.x({reflectToAttribute:!0,computed:"computeBorderlessMode(data)"}),_.p("design:type",Boolean)],j5.prototype,"borderlessMode",void 0);_.L([_.dz({is:"yt-offer-item-renderer",disableElementRegistration:!0})],j5);
_.D(j5,"yt-offer-item-renderer",function(){if(iDz===void 0){var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-offer-item-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.ypc.yt_offer_item_renderer.yt.offer.item.renderer.css.js--\x3e<div id="image-renderer" class="style-scope yt-offer-item-renderer"></div>\n<div id="heading-renderer" class="style-scope yt-offer-item-renderer"></div>\n<div id="description-renderer" class="style-scope yt-offer-item-renderer"></div>\n<div id="additional-info-renderer" class="style-scope yt-offer-item-renderer"></div>\n');a.content.insertBefore(_.w().content.cloneNode(!0),
a.content.firstChild);var z=a.content,I=z.insertBefore;SKZ===void 0&&(SKZ=document.createElement("template"));var J=SKZ;I.call(z,J.content.cloneNode(!0),a.content.firstChild);iDz=a}a=iDz;return a},{mode:2});var xD4;var vWE;_.$q("itemSectionRenderer","subscriptionProductHeaderRenderer","yt-subscription-product-header-renderer");var zu=function(){return _.G.apply(this,arguments)||this};
_.b(zu,_.G);zu.prototype.computeAriaLevel_=function(a){return this.getLevelID_(a)};
zu.prototype.getLevelID_=function(a){return(a=a.match(/[0-9]+$/))&&a.length==1?a[0]:"1"};
_.L([_.Q(_.k.YtRendererBehavior),_.p("design:type",Object)],zu.prototype,"ytRendererBehavior",void 0);_.L([_.x(),_.p("design:type",Object)],zu.prototype,"data",void 0);_.L([_.x({computed:"computeAriaLevel_(data.level)",reflectToAttribute:!0}),_.p("design:type",String)],zu.prototype,"ariaLevel",void 0);_.L([_.x({value:"heading",reflectToAttribute:!0}),_.p("design:type",String)],zu.prototype,"role",void 0);
_.L([_.x({value:-1,reflectToAttribute:!0}),_.p("design:type",Number)],zu.prototype,"tabindex",void 0);_.L([_.dz({is:"yt-subscription-product-header-renderer",disableElementRegistration:!0})],zu);
_.D(zu,"yt-subscription-product-header-renderer",function(){if(vWE===void 0){var a=document.createElement("template");_.V(a,"\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-subscription-product-header-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.ypc.yt_subscription_product_header_renderer.yt.subscription.product.header.renderer.css.js--\x3e[[getSimpleString(data.text)]]\n");a.content.insertBefore(_.w().content.cloneNode(!0),
a.content.firstChild);var z=a.content,I=z.insertBefore;xD4===void 0&&(xD4=document.createElement("template"));var J=xD4;I.call(z,J.content.cloneNode(!0),a.content.firstChild);vWE=a}a=vWE;return a},{mode:2});var Gu4;var $DE;_.$q("itemSectionRenderer","subscriptionProductRenderer","yt-subscription-product-renderer");var Iz=function(){return _.G.apply(this,arguments)||this};
_.b(Iz,_.G);Iz.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:_.XT("menuRenderer"),events:!0}}};
Iz.prototype.onStampFinished_=function(){_.PK(this.hostElement).querySelector("#menu").children[0].icon="yt-icons:more_vert"};
Iz.prototype.onStampFinished_=Iz.prototype.onStampFinished_;_.L([_.Q(_.k.YtRendererBehavior),_.p("design:type",Object)],Iz.prototype,"ytRendererBehavior",void 0);_.L([_.Q(_.u4.YtRendererstamperBehavior),_.p("design:type",Object)],Iz.prototype,"ytRendererstamperBehavior",void 0);_.L([_.x(),_.p("design:type",Object)],Iz.prototype,"data",void 0);_.L([_.gz("yt-rendererstamper-finished"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],Iz.prototype,"onStampFinished_",null);
_.L([_.dz({is:"yt-subscription-product-renderer",disableElementRegistration:!0})],Iz);
_.D(Iz,"yt-subscription-product-renderer",function(){if($DE===void 0){var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-subscription-product-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.ypc.yt_subscription_product_renderer.yt.subscription.product.renderer.css.js--\x3e<tp-yt-paper-card elevation="1" class="style-scope yt-subscription-product-renderer">\n  <div id="content" class="style-scope yt-subscription-product-renderer">\n    <yt-img-shadow id="logo-image" height="30" thumbnail="[[data.logo]]" class="style-scope yt-subscription-product-renderer">\n    </yt-img-shadow>\n    <div id="metadatas" class="style-scope yt-subscription-product-renderer">\n      <template is="dom-repeat" items="[[data.metadatas]]" class="style-scope yt-subscription-product-renderer">\n        <div class="metadata style-scope yt-subscription-product-renderer">\n          [[getSimpleString(item)]]\n        </div>\n      </template>\n    </div>\n    <div id="additional-infos" class="style-scope yt-subscription-product-renderer">\n      <template is="dom-repeat" items="[[data.additionalInfos]]" class="style-scope yt-subscription-product-renderer">\n        <div class="additional-info style-scope yt-subscription-product-renderer">\n          [[getSimpleString(item)]]\n        </div>\n      </template>\n    </div>\n    <yt-formatted-string class="description style-scope yt-subscription-product-renderer" hidden="[[!data.description]]" split-lines="" text="[[data.description]]">\n    </yt-formatted-string>\n  </div>\n  <div id="menu" class="style-scope yt-subscription-product-renderer"></div>\n  <div id="actions" class="card-actions style-scope yt-subscription-product-renderer">\n    <div id="primary-button" class="button style-scope yt-subscription-product-renderer"></div>\n    <div id="secondary-button" class="button style-scope yt-subscription-product-renderer"></div>\n  </div>\n</tp-yt-paper-card>\n');a.content.insertBefore(_.w().content.cloneNode(!0),
a.content.firstChild);var z=a.content,I=z.insertBefore;Gu4===void 0&&(Gu4=document.createElement("template"));var J=Gu4;I.call(z,J.content.cloneNode(!0),a.content.firstChild);$DE=a}a=$DE;return a},{mode:2});var XRz;var TkG;_.$q("itemSectionRenderer","subscriptionProductUpsellOfferRenderer","yt-subscription-product-upsell-offer-renderer");var J8=function(){return _.G.apply(this,arguments)||this};
_.b(J8,_.G);J8.prototype.configureRendererStamper=function(){return{"data.primaryButton":{id:"primary-button",mapping:{buttonRenderer:"yt-button-renderer"}},"data.secondaryButton":{id:"secondary-button",mapping:{buttonRenderer:"yt-button-renderer"}}}};
J8.prototype.imageScrimColorValuesChanged_=function(){var a,z=(a=this.data)==null?void 0:a.imageScrimColorValues;_.PK(this.hostElement).querySelector("#scrim").style.backgroundColor=z?_.RX(z[0]):"transparent"};
J8.prototype.imageScrimColorValuesChanged_=J8.prototype.imageScrimColorValuesChanged_;_.L([_.Q(_.k.YtRendererBehavior),_.p("design:type",Object)],J8.prototype,"ytRendererBehavior",void 0);_.L([_.Q(_.u4.YtRendererstamperBehavior),_.p("design:type",Object)],J8.prototype,"ytRendererstamperBehavior",void 0);_.L([_.x(),_.p("design:type",Object)],J8.prototype,"data",void 0);
_.L([_.O8("data.imageScrimColorValues"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],J8.prototype,"imageScrimColorValuesChanged_",null);_.L([_.dz({is:"yt-subscription-product-upsell-offer-renderer",disableElementRegistration:!0})],J8);
_.D(J8,"yt-subscription-product-upsell-offer-renderer",function(){if(TkG===void 0){var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-subscription-product-upsell-offer-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.ypc.yt_subscription_product_upsell_offer_renderer.yt.subscription.product.upsell.offer.renderer.css.js--\x3e<tp-yt-paper-card class="style-scope yt-subscription-product-upsell-offer-renderer">\n  <div id="image-container" class="style-scope yt-subscription-product-upsell-offer-renderer">\n    <yt-img-shadow id="image" object-fit="COVER" object-position="LEFT" thumbnail="[[data.image]]" class="style-scope yt-subscription-product-upsell-offer-renderer">\n    </yt-img-shadow>\n    <div id="scrim" class="style-scope yt-subscription-product-upsell-offer-renderer">\n      <yt-icon id="logo-icon" aria-label$="[[data.logoIconAccessibility.accessibilityData.label]]" hidden="[[!data.logoIcon]]" icon="[[data.logoIcon.iconType]]" class="style-scope yt-subscription-product-upsell-offer-renderer">\n      </yt-icon>\n      <yt-img-shadow id="logo-image" height="30" hidden="[[!data.logo]]" thumbnail="[[data.logo]]" class="style-scope yt-subscription-product-upsell-offer-renderer">\n      </yt-img-shadow>\n    </div>\n  </div>\n  <div id="content" class="card-content style-scope yt-subscription-product-upsell-offer-renderer">\n    <div id="title" class="style-scope yt-subscription-product-upsell-offer-renderer">\n      [[getSimpleString(data.title)]]\n    </div>\n    <yt-formatted-string id="description" text="[[data.description]]" class="style-scope yt-subscription-product-upsell-offer-renderer"></yt-formatted-string>\n    <div id="additional-infos" class="style-scope yt-subscription-product-upsell-offer-renderer">\n      <template is="dom-repeat" items="[[data.additionalInfos]]" class="style-scope yt-subscription-product-upsell-offer-renderer">\n        <yt-formatted-string id="additional-info" text="[[item]]" class="style-scope yt-subscription-product-upsell-offer-renderer"></yt-formatted-string>\n      </template>\n    </div>\n  </div>\n  <div id="actions" class="card-actions style-scope yt-subscription-product-upsell-offer-renderer">\n    <div id="primary-button" class="button style-scope yt-subscription-product-upsell-offer-renderer"></div>\n    <div id="secondary-button" class="button style-scope yt-subscription-product-upsell-offer-renderer"></div>\n  </div>\n</tp-yt-paper-card>\n');a.content.insertBefore(_.w().content.cloneNode(!0),
a.content.firstChild);var z=a.content,I=z.insertBefore;XRz===void 0&&(XRz=document.createElement("template"));var J=XRz;I.call(z,J.content.cloneNode(!0),a.content.firstChild);TkG=a}a=TkG;return a},{mode:2});var dDY;var WR0;var oWZ;var UDZ;var DD4;var Raz;var rk=function(){return _.G.apply(this,arguments)||this};
_.b(rk,_.G);rk.prototype.onYtServiceRequestError_=function(a){_.cn(this.hostElement,a.detail.error.message)};
rk.prototype.onYtServiceRequestError_=rk.prototype.onYtServiceRequestError_;_.L([_.Q(_.k.YtRendererBehavior),_.p("design:type",Object)],rk.prototype,"ytRendererBehavior",void 0);_.L([_.x(),_.p("design:type",Object)],rk.prototype,"data",void 0);_.L([_.x({value:!1,reflectToAttribute:!0}),_.p("design:type",Boolean)],rk.prototype,"collapsible",void 0);_.L([_.x({reflectToAttribute:!0,value:!1}),_.p("design:type",Boolean)],rk.prototype,"isManageRed",void 0);
_.L([_.gz("yt-service-request-error"),_.p("design:type",Function),_.p("design:paramtypes",[CustomEvent]),_.p("design:returntype")],rk.prototype,"onYtServiceRequestError_",null);_.L([_.dz({is:"yt-single-ypc-offer-renderer",disableElementRegistration:!0})],rk);
_.D(rk,"yt-single-ypc-offer-renderer",function(){if(Raz===void 0){var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-single-ypc-offer-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.ypc.yt_single_ypc_offer_renderer.yt.single.ypc.offer.renderer.css.js--\x3e<div id="yt-unlimited-metadata" class="style-scope yt-single-ypc-offer-renderer">\n  <yt-formatted-string hidden="[[!data.offerTypeName]]" text="[[data.offerTypeName]]" class="style-scope yt-single-ypc-offer-renderer">\n  </yt-formatted-string>\n  <template is="dom-repeat" items="[[data.metadatas]]" class="style-scope yt-single-ypc-offer-renderer">\n    <yt-formatted-string id="metadata-item" text="[[item]]" class="style-scope yt-single-ypc-offer-renderer">\n    </yt-formatted-string>\n  </template>\n</div>\n<yt-button-renderer id="subscription-button" data="[[data.button.buttonRenderer]]" class="style-scope yt-single-ypc-offer-renderer">\n</yt-button-renderer>\n');a.content.insertBefore(_.w().content.cloneNode(!0),
a.content.firstChild);var z=a.content,I=z.insertBefore;DD4===void 0&&(DD4=document.createElement("template"));var J=DD4;I.call(z,J.content.cloneNode(!0),a.content.firstChild);Raz=a}a=Raz;return a},{mode:2});var PR=function(){return _.G.apply(this,arguments)||this};
_.b(PR,_.G);PR.prototype.configureRendererStamper=function(){return{"data.singleYpcOfferSupportedRenderers":{id:"contents",mapping:{singleYpcOfferRenderer:{component:"yt-single-ypc-offer-renderer",properties:{isManageRed:"[[isManageRed]]"}}}}}};
_.L([_.Q(_.u4.YtRendererstamperBehavior),_.p("design:type",Object)],PR.prototype,"ytRendererstamperBehavior",void 0);_.L([_.Q(_.k.YtRendererBehavior),_.p("design:type",Object)],PR.prototype,"ytRendererBehavior",void 0);_.L([_.x(),_.p("design:type",Object)],PR.prototype,"data",void 0);_.L([_.x({reflectToAttribute:!0,value:!1}),_.p("design:type",Boolean)],PR.prototype,"isManageRed",void 0);_.L([_.dz({is:"yt-single-ypc-offer-list-renderer",disableElementRegistration:!0})],PR);
_.D(PR,"yt-single-ypc-offer-list-renderer",function(){if(UDZ===void 0){var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-single-ypc-offer-list-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.ypc.yt_single_ypc_offer_list_renderer.yt.single.ypc.offer.list.renderer.css.js--\x3e<div id="contents" class="style-scope yt-single-ypc-offer-list-renderer"></div>\n');
a.content.insertBefore(_.w().content.cloneNode(!0),a.content.firstChild);var z=a.content,I=z.insertBefore;oWZ===void 0&&(oWZ=document.createElement("template"));var J=oWZ;I.call(z,J.content.cloneNode(!0),a.content.firstChild);UDZ=a}a=UDZ;return a},{mode:2});var LRZ;var l6Z;_.$q("itemSectionRenderer","ypcOffersListRenderer","yt-ypc-offers-list-renderer");var Z6=function(){return _.G.apply(this,arguments)||this};
_.b(Z6,_.G);Z6.prototype.configureRendererStamper=function(){return{"data.offersList":{id:"contents",mapping:{singleYpcOfferListRenderer:{component:"yt-single-ypc-offer-list-renderer",properties:{isManageRed:"[[isManageRed]]"}}}}}};
_.L([_.Q(_.k.YtRendererBehavior),_.p("design:type",Object)],Z6.prototype,"ytRendererBehavior",void 0);_.L([_.Q(_.u4.YtRendererstamperBehavior),_.p("design:type",Object)],Z6.prototype,"ytRendererstamperBehavior",void 0);_.L([_.x(),_.p("design:type",Object)],Z6.prototype,"data",void 0);_.L([_.x({value:!1}),_.p("design:type",Boolean)],Z6.prototype,"isManageRed",void 0);_.L([_.dz({is:"yt-ypc-offers-list-renderer",disableElementRegistration:!0})],Z6);
_.D(Z6,"yt-ypc-offers-list-renderer",function(){if(l6Z===void 0){var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-ypc-offers-list-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.ypc.yt_ypc_offers_list_renderer.yt.ypc.offers.list.renderer.css.js--\x3e<div id="contents" class="style-scope yt-ypc-offers-list-renderer"></div>\n');
a.content.insertBefore(_.w().content.cloneNode(!0),a.content.firstChild);var z=a.content,I=z.insertBefore;LRZ===void 0&&(LRZ=document.createElement("template"));var J=LRZ;I.call(z,J.content.cloneNode(!0),a.content.firstChild);l6Z=a}a=l6Z;return a},{mode:2});_.$q("itemSectionRenderer","unlimitedManageSubscriptionPageRenderer","yt-unlimited-manage-subscription-page-renderer");var CD=function(){return _.G.apply(this,arguments)||this};
_.b(CD,_.G);
CD.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}}}}}};
_.L([_.Q(_.k.YtRendererBehavior),_.p("design:type",Object)],CD.prototype,"ytRendererBehavior",void 0);_.L([_.Q(_.u4.YtRendererstamperBehavior),_.p("design:type",Object)],CD.prototype,"ytRendererstamperBehavior",void 0);_.L([_.x(),_.p("design:type",Object)],CD.prototype,"data",void 0);_.L([_.dz({is:"yt-unlimited-manage-subscription-page-renderer",disableElementRegistration:!0})],CD);
_.D(CD,"yt-unlimited-manage-subscription-page-renderer",function(){if(WR0===void 0){var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-unlimited-manage-subscription-page-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.ypc.yt_unlimited_manage_subscription_page_renderer.yt.unlimited.manage.subscription.page.renderer.css.js--\x3e<tp-yt-paper-card elevation="1" class="style-scope yt-unlimited-manage-subscription-page-renderer">\n  <h2 class="style-scope yt-unlimited-manage-subscription-page-renderer">[[getSimpleString(data.subscriptionTitle)]]</h2>\n  <div class="card-content style-scope yt-unlimited-manage-subscription-page-renderer">\n    <template is="dom-repeat" items="[[data.subscriptionInfos]]" class="style-scope yt-unlimited-manage-subscription-page-renderer">\n      <div class="subscription-info-item style-scope yt-unlimited-manage-subscription-page-renderer">\n        <span class="subscription-info-item-title style-scope yt-unlimited-manage-subscription-page-renderer">\n          [[getSimpleString(item.unlimitedSubscriptionInfoRenderer.title)]]\n        </span>\n        <span class="subscription-info-item-content style-scope yt-unlimited-manage-subscription-page-renderer">\n          [[getSimpleString(item.unlimitedSubscriptionInfoRenderer.content)]]\n        </span>\n      </div>\n    </template>\n    <template is="dom-repeat" items="[[data.additionalInfos]]" class="style-scope yt-unlimited-manage-subscription-page-renderer">\n      <yt-formatted-string class="additional-info style-scope yt-unlimited-manage-subscription-page-renderer" text="[[item]]">\n      </yt-formatted-string>\n    </template>\n    <div class="buttons style-scope yt-unlimited-manage-subscription-page-renderer">\n      <div id="manage-fix-fop-button" class="style-scope yt-unlimited-manage-subscription-page-renderer"></div>\n      <div id="manage-family-button" class="style-scope yt-unlimited-manage-subscription-page-renderer"></div>\n      <div id="manage-subscription-button" class="style-scope yt-unlimited-manage-subscription-page-renderer"></div>\n      <div id="help-button" class="style-scope yt-unlimited-manage-subscription-page-renderer"></div>\n    </div>\n    <div id="offers" class="style-scope yt-unlimited-manage-subscription-page-renderer"></div>\n  </div>\n</tp-yt-paper-card>\n');
a.content.insertBefore(_.w().content.cloneNode(!0),a.content.firstChild);var z=a.content,I=z.insertBefore;dDY===void 0&&(dDY=document.createElement("template"));var J=dDY;I.call(z,J.content.cloneNode(!0),a.content.firstChild);WR0=a}a=WR0;return a},{mode:2});var pRZ;var wRi;var ND=function(){return _.G.apply(this,arguments)||this};
_.b(ND,_.G);_.Z=ND.prototype;_.Z.beforeRegister=function(){this.ironA11yKeysBehavior.keyBindings={"enter:keypress":"onKeypress_"}};
_.Z.configureRendererStamper=function(){return{"data.singleYpcOfferListSupportedRenderers":{id:"offers",mapping:{singleYpcOfferRenderer:{component:"yt-single-ypc-offer-renderer",params:{collapsible:!0}}}}}};
_.Z.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","button");this.hostElement.hasAttribute("tabindex")||this.hostElement.setAttribute("tabindex","0")};
_.Z.onKeypress_=function(a){a.detail.keyboardEvent.target==this&&this.expandOffers_()};
_.Z.handleHeaderTap_=function(a){a.preventDefault();a.stopPropagation();this.expandOffers_()};
_.Z.expandOffers_=function(){this.offersVisible_=!0;this.hostElement.setAttribute("tabindex","-1")};
_.Z.dataChanged_=function(){this.data&&(this.offersVisible_=!this.data.isCollapsed)};
ND.prototype.dataChanged_=ND.prototype.dataChanged_;_.L([_.Q(_.V_),_.p("design:type",Object)],ND.prototype,"ironA11yKeysBehavior",void 0);_.L([_.Q(_.u4.YtRendererstamperBehavior),_.p("design:type",Object)],ND.prototype,"ytRendererstamperBehavior",void 0);_.L([_.Q(_.k.YtRendererBehavior),_.p("design:type",Object)],ND.prototype,"ytRendererBehavior",void 0);_.L([_.x(),_.p("design:type",Object)],ND.prototype,"data",void 0);
_.L([_.x({reflectToAttribute:!0}),_.p("design:type",Boolean)],ND.prototype,"offersVisible_",void 0);_.L([_.O8("data"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],ND.prototype,"dataChanged_",null);_.L([_.dz({is:"yt-collapsible-ypc-offer-renderer",disableElementRegistration:!0})],ND);
_.D(ND,"yt-collapsible-ypc-offer-renderer",function(){if(wRi===void 0){var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-collapsible-ypc-offer-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.ypc.yt_collapsible_ypc_offer_renderer.yt.collapsible.ypc.offer.renderer.css.js--\x3e<yt-formatted-string id="more-offer-info-header" hidden="[[offersVisible_]]" text="[[data.moreOfferInfoHeader]]" on-tap="handleHeaderTap_" class="style-scope yt-collapsible-ypc-offer-renderer">\n</yt-formatted-string>\n<div id="offers" hidden="[[!offersVisible_]]" class="style-scope yt-collapsible-ypc-offer-renderer"></div>\n');a.content.insertBefore(_.w().content.cloneNode(!0),
a.content.firstChild);var z=a.content,I=z.insertBefore;pRZ===void 0&&(pRZ=document.createElement("template"));var J=pRZ;I.call(z,J.content.cloneNode(!0),a.content.firstChild);wRi=a}a=wRi;return a},{mode:2});var mDM;var y8G;_.$q("itemSectionRenderer","unlimitedPageHeaderRenderer","yt-unlimited-page-header-renderer");var t8=function(){return _.G.apply(this,arguments)||this};
_.b(t8,_.G);_.Z=t8.prototype;_.Z.configureRendererStamper=function(){return{"data.moreOffersRenderers":{id:"more-offers",mapping:{collapsibleYpcOfferRenderer:{component:"yt-collapsible-ypc-offer-renderer"}}}}};
_.Z.dataChanged_=function(){if(this.data.backgroundImage){var a=_.r4(this.data.backgroundImage.thumbnails,screen.width),z=this.getScrimLayerColorStops_();this.hostElement.style.backgroundImage=z?"linear-gradient(180deg, "+z+"), url("+a+")":"url("+a+")";this.data.gtmId&&_.dr(this.data.gtmId,_.Xw("GL",""))}};
_.Z.onYtServiceRequestError_=function(a){_.cn(this.hostElement,a.detail.error.message)};
_.Z.getScrimLayerColorStops_=function(){var a,z,I=(a=this.data.unlimitedHeaderV2Data)==null?void 0:(z=a.unlimitedHeaderV2Data)==null?void 0:z.scrimLayerColors;if(!I)return null;var J=100/I.length;return I.map(function(r,P){P*=J;return _.RX(r)+" "+P+"%"}).join(",")};
_.Z.computeLogoWithPadding=function(a){var z,I,J;return(a=(z=a.unlimitedLogoImage)==null?void 0:(I=z.thumbnails)==null?void 0:(J=I[0])==null?void 0:J.height)&&a%31===0?!0:!1};
t8.prototype.onYtServiceRequestError_=t8.prototype.onYtServiceRequestError_;t8.prototype.dataChanged_=t8.prototype.dataChanged_;_.L([_.Q(_.u4.YtRendererstamperBehavior),_.p("design:type",Object)],t8.prototype,"ytRendererstamperBehavior",void 0);_.L([_.Q(_.k.YtRendererBehavior),_.p("design:type",Object)],t8.prototype,"ytRendererBehavior",void 0);_.L([_.x({computed:"computeLogoWithPadding(data)"}),_.p("design:type",Boolean)],t8.prototype,"logoWithPadding",void 0);
_.L([_.x(),_.p("design:type",Object)],t8.prototype,"data",void 0);_.L([_.O8("data"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],t8.prototype,"dataChanged_",null);_.L([_.gz("yt-service-request-error"),_.p("design:type",Function),_.p("design:paramtypes",[CustomEvent]),_.p("design:returntype")],t8.prototype,"onYtServiceRequestError_",null);_.L([_.dz({is:"yt-unlimited-page-header-renderer",disableElementRegistration:!0})],t8);
_.D(t8,"yt-unlimited-page-header-renderer",function(){if(y8G===void 0){var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-unlimited-page-header-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.ypc.yt_unlimited_page_header_renderer.yt.unlimited.page.header.renderer.css.js--\x3e<template is="dom-if" if="[[!logoWithPadding]]" class="style-scope yt-unlimited-page-header-renderer">\n  <h1 id="logo-wrapper" class="style-scope yt-unlimited-page-header-renderer">\n    <yt-img-shadow id="logo" thumbnail="[[data.unlimitedLogoImage]]" width="[[Number.MAX_VALUE]]" class="style-scope yt-unlimited-page-header-renderer">\n    </yt-img-shadow>\n  </h1>\n</template>\n<template is="dom-if" if="[[logoWithPadding]]" class="style-scope yt-unlimited-page-header-renderer">\n  <h1 id="logo-wrapper-with-padding" class="style-scope yt-unlimited-page-header-renderer">\n    <yt-img-shadow id="logo-with-padding" thumbnail="[[data.unlimitedLogoImage]]" width="[[Number.MAX_VALUE]]" class="style-scope yt-unlimited-page-header-renderer">\n    </yt-img-shadow>\n  </h1>\n</template>\n<yt-formatted-string id="subtitle" respect-html-dir="" text="[[data.subTitle]]" class="style-scope yt-unlimited-page-header-renderer">\n</yt-formatted-string>\n<yt-button-renderer id="manage-subscription-button" data="[[data.manageSubscriptionButton.buttonRenderer]]" class="style-scope yt-unlimited-page-header-renderer">\n</yt-button-renderer>\n<div id="metadatas" class="style-scope yt-unlimited-page-header-renderer">\n  <template is="dom-repeat" items="[[data.metadatas]]" class="style-scope yt-unlimited-page-header-renderer">\n    <yt-formatted-string class="metadata-item style-scope yt-unlimited-page-header-renderer" text="[[item]]"></yt-formatted-string>\n  </template>\n  <template is="dom-if" if="[[data.additionalBillingInfo]]" class="style-scope yt-unlimited-page-header-renderer">\n    <div id="additional-billing-info" class="style-scope yt-unlimited-page-header-renderer">\n      <yt-formatted-string class="billing-info-item style-scope yt-unlimited-page-header-renderer" text="[[data.additionalBillingInfo]]">\n      </yt-formatted-string>\n    </div>\n  </template>\n</div>\n<yt-formatted-string class="promotion-text style-scope yt-unlimited-page-header-renderer" text="[[data.promotion.ypcPromotionRenderer.promotionText]]">\n</yt-formatted-string>\n<div id="more-offers" class="style-scope yt-unlimited-page-header-renderer"></div>\n<a id="restriction-apply-button" class="offer-details-link style-scope yt-unlimited-page-header-renderer" tabindex="0">\n  <yt-formatted-string text="[[data.offerDetailsLinkText]]" class="style-scope yt-unlimited-page-header-renderer"></yt-formatted-string>\n</a>\n');
a.content.insertBefore(_.w().content.cloneNode(!0),a.content.firstChild);var z=a.content,I=z.insertBefore;mDM===void 0&&(mDM=document.createElement("template"));var J=mDM;I.call(z,J.content.cloneNode(!0),a.content.firstChild);y8G=a}a=y8G;return a},{mode:2});var ku0;var M50;_.$q("itemSectionRenderer","UnlimitedUserNotificationRenderer","yt-unlimited-user-notification-renderer");var uL=function(){return _.G.apply(this,arguments)||this};
_.b(uL,_.G);uL.prototype.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:{component:"yt-button-renderer",attributes:{"dialog-confirm":!0}}}}}};
_.L([_.Q(_.u4.YtRendererstamperBehavior),_.p("design:type",Object)],uL.prototype,"ytRendererstamperBehavior",void 0);_.L([_.Q(_.k.YtRendererBehavior),_.p("design:type",Object)],uL.prototype,"ytRendererBehavior",void 0);_.L([_.x(),_.p("design:type",Object)],uL.prototype,"data",void 0);_.L([_.dz({is:"yt-unlimited-user-notification-renderer",disableElementRegistration:!0})],uL);
_.D(uL,"yt-unlimited-user-notification-renderer",function(){if(M50===void 0){var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-unlimited-user-notification-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.ypc.yt_unlimited_user_notification_renderer.yt.unlimited.user.notification.renderer.css.js--\x3e<div id="yt-notification-text" class="style-scope yt-unlimited-user-notification-renderer">\n  <yt-formatted-string id="title" text="[[data.title]]" class="style-scope yt-unlimited-user-notification-renderer"></yt-formatted-string>\n  <template is="dom-repeat" items="[[data.messages]]" class="style-scope yt-unlimited-user-notification-renderer">\n    <yt-formatted-string id="metadata-item" text="[[item]]" class="style-scope yt-unlimited-user-notification-renderer"></yt-formatted-string>\n  </template>\n</div>\n<div id="action-button" class="style-scope yt-unlimited-user-notification-renderer"></div>\n');
a.content.insertBefore(_.w().content.cloneNode(!0),a.content.firstChild);var z=a.content,I=z.insertBefore;ku0===void 0&&(ku0=document.createElement("template"));var J=ku0;I.call(z,J.content.cloneNode(!0),a.content.firstChild);M50=a}a=M50;return a},{mode:2});
}catch(e){_._DumpException(e)}
try{
_.Xvi=_.ec(function(a){var z=_.q3(a,{numberOfChips:5}).numberOfChips;return _.B("yt-ghost-chip-shelf",{class:"ytGhostChipShelfHost"},_.B(_.se,{each:function(){return Array(z==null?void 0:z())}},function(){return _.B("div",{class:"ytGhostChipShelfChip"})}))},"Pg");_.T3M=_.ec(function(a){var z=function(){var P;return((P=a.data)==null?void 0:P.call(a).animationUrl)||"https://www.gstatic.com/youtube/img/lottie/youchat_animations/progress_indicator_comp_v1.json"},I=_.gi(),J=_.ab().resolve(_.cl);
_.hD(function(){requestAnimationFrame(function(){var P;(P=I.lottieEl)==null||P.addEventListener("DOMLoaded",function(){var N;(N=a.onLottieLoaded)==null||N.call(a)})})});
var r={};return _.B("yt-chat-loading-view-model",{class:"ytChatLoadingViewModelHost","data-target-id":function(){var P;return((P=a.data)==null?void 0:P.call(a).targetId)||""}},_.B(_.b4,{className:_.B8((r.ytChatLoadingViewModelRtl=J==="rtl",r)),
animationName:"YOUCHAT_LOADER",data:function(){return{animationConfig:{autoplay:!0,loop:!0,renderer:"svg",rendererSettings:{viewBoxOnly:!0,className:z()==="https://www.gstatic.com/youtube/img/lottie/youchat_animations/gemini_twirl_v2.json"||z()==="/google3/video/youtube/web/shared/testdata/animation/gemini_twirl_v2.json"?"ytChatLoadingViewModelVerticalLoadingSvg":"ytChatLoadingViewModelLoadingSvg"},name:"YOUCHAT_LOADER",path:z()}}},
animationRef:I}))},"Qg");
}catch(e){_._DumpException(e)}
try{
var mIY,y2Y,MJ0,c2f,Yfe,qfz,e0Z,aHf,zxz,IHe,tL0,Kr,NqZ,rD4,C14,Z3e,P10,JDf,uwi,ESV,BqE,gSG,FB,O3i,fHY,nSE,bi,ADZ,Qu,HF,h_,sLY,Vu,KsY,FsM,H3Z,b3i,hxG,VLi,SeE,i34,xYY,vSZ,GZ0,$YV,X3z,Tq4,Wsz,UYM,RxV,LsM,lHM,p3i,yDZ,kZV,MLY,cDG,Yee,qe0,ex0,jbZ,rPM,JPi,zZV,PlY,IvM,Z1V,unf,t6Z,ClE,NMf,ii,Ej4,BM4,O1e,F5e,H1Z,b1Y,hZE,V6E,QbG,Szi,i1e,xeE,vjG,$ef,Xyf,TMZ,sbE;
_.sD=function(a){var z=new _.Fn("Error accessing DB");return _.WbI().then(function(I){return new Promise(function(J,r){try{var P=I.transaction("swpushnotificationsstore").objectStore("swpushnotificationsstore").get(a);P.onsuccess=function(){var N=P.result;J(N?N.value:null)};
P.onerror=function(){z.params={key:a,source:"onerror"};r(z)}}catch(N){z.params={key:a,
thrownError:String(N)},r(z)}})},function(){return null})};
_.wgi=function(a,z){var I=_.aIp(z);I!=="javascript:"&&I!=="data:"&&a.setAttribute("href",z)};
mIY=function(a,z){return _.Bd(a.entities,"flowStateEntity",z)};
y2Y=function(a,z){return _.Bd(a.entities,"contextNoteUserRatingEntityPayload",z)};
_.ke0=function(a,z){if(a&&z){var I=_.SDd();I().set(a,z);_.irM(I())}};
MJ0=function(a){return _.X0(a,function(z){return z.languageCode==="en"})};
c2f=function(a){var z=nr;if(_.ITZ(a))a.setOption("captions","stickyLoading",{}),a.setOption("captions","track",{});else{var I=_.X0(_.Si0(a),function(J){return J.displayName===z});
a.setOption("captions","track",I)}};
Yfe=function(a){if(!a)return 0;var z=a.getPresentingPlayerType(),I=a.getVideoData();return I&&I.isLive?(a=a.getProgressState(z),a.seekableEnd-a.seekableStart):a.getDuration(z)};
qfz=function(a,z){for(var I=_.C(Object.keys(a)),J=I.next();!J.done;J=I.next())if(J=J.value,a[J]!==z[J])return!1;return!0};
e0Z=function(){return document.getElementById("player-control-overlay")};
aHf=function(a){a!==-1&&!_.K("player_controls_log_creation_killswitch")&&e0Z()&&(_.Xz("pcu_cs",a),_.Xz("pcu_ce"))};
zxz=function(a){return _.B("div",{class:"yt-profile-identity-info-view-model-wiz__buttons"},(a.subscribeButton?[a.subscribeButton,a.channelAccess]:[a.channelAccess]).map(function(z){return _.B("div",{class:"yt-profile-identity-info-view-model-wiz__wrap-button"},_.B("div",{class:"yt-profile-identity-info-view-model-wiz--button"},jLV(z)))}))};
IHe=function(a){var z=a.data;var I=a.hideDivider;a=a.isChannelInfoCard;var J={};J=(J["yt-profile-identity-info-view-model-wiz__frame"]=!0,J["yt-profile-identity-info-view-model-wiz--frame-with-no-channel-banner"]=!z.channelBanner,J);J={class:_.$c(J)};var r,P={imageBannerViewModel:{image:(r=z.channelBanner)==null?void 0:r.image,style:"IMAGE_BANNER_STYLE_INSET"}};r=_.B("div",{class:"yt-profile-identity-info-view-model-wiz__channel-banner-container"},z.channelBanner?_.B("div",{class:"yt-profile-identity-info-view-model-wiz__channel-banner"},
jLV(P,{imageBannerViewModel:{isPositionRelative:!0}})):null);P=_.B("div",{class:"yt-profile-identity-info-view-model-wiz__avatar"},jLV(z.avatar));var N;var u=_.B("div",{class:"yt-profile-identity-info-view-model-wiz__channel-name-header"},_.B("div",{class:"yt-profile-identity-info-view-model-wiz__channel-name"},z.channelDisplayName),z.verifiedOrOacBadge?_.B("div",{class:"yt-profile-identity-info-view-model-wiz__badge"},_.B(_.qp,{data:{thumbnails:[{url:(N=z.verifiedOrOacBadge)==null?void 0:N.badgeUrl}]},
alt:"",targetWidth:14,targetHeight:14,preserveWidth:!0,preserveHeight:!0})):null);N=_.B("div",{class:"yt-profile-identity-info-view-model-wiz__channel-name-frame"},u,jLV(z.threeDotMenu));u=_.B("div",{class:"yt-profile-identity-info-view-model-wiz__metadata"},_.B("div",{class:"yt-profile-identity-info-view-model-wiz__metadata-content-set"},_.B("div",{dir:"auto",class:"yt-profile-identity-info-view-model-wiz__metadata-handle-with-bold-font"},z.channelHandle),z.channelPronouns&&z.channelHandle?_.B("span",
{class:"yt-profile-identity-info-view-model-wiz__metadata-delimiter"},"\u2022"):null,_.B("div",{dir:"auto",class:"yt-profile-identity-info-view-model-wiz__metadata-pronouns"},z.channelPronouns)),_.B("div",{class:"yt-profile-identity-info-view-model-wiz__metadata-content-set"},_.B("div",{class:"yt-profile-identity-info-view-model-wiz__metadata-content"},z.leftOfBulletInfo),z.leftOfBulletInfo&&z.rightOfBulletInfo?_.B("span",{class:"yt-profile-identity-info-view-model-wiz__metadata-delimiter"},"\u2022"):
null,_.B("div",{class:"yt-profile-identity-info-view-model-wiz__metadata-content"},z.rightOfBulletInfo)));N=_.B("div",{class:"yt-profile-identity-info-view-model-wiz__trio"},N,u);return _.B("yt-profile-identity-info-view-model",{class:"yt-profile-identity-info-view-model-wiz"},_.B("div",J,r,_.B("div",{class:"yt-profile-identity-info-view-model-wiz__channel-info-section"},P,N),z.channelDescription?_.B("div",{class:a?"yt-profile-identity-info-view-model-wiz__channel-description-alternate":"yt-profile-identity-info-view-model-wiz__channel-description"},
z.channelDescription):null,zxz(z),I?null:_.B("div",{class:"yt-profile-identity-info-view-model-wiz__divider"}," ")))};
tL0=function(a,z){var I=_.Yi(a,{}),J=JDf("top",z),r=JDf("bottom",z),P=JDf("left",z),N=JDf("right",z);return _.sW({top:function(){return Kr(I().position,J)},
bottom:function(){return Kr(I().position,r)},
left:function(){return Kr(I().position,P)},
right:function(){return Kr(I().position,N)},
position:function(){return Kr(I().positionType,rD4)},
height:function(){return Kr(I().height,FB)},
width:function(){return Kr(I().width,FB)},
"min-width":function(){return Kr(I().minWidth,FB)},
"min-height":function(){return Kr(I().minHeight,FB)},
"max-width":function(){return Kr(I().maxWidth,FB)},
"max-height":function(){return Kr(I().maxHeight,FB)},
"aspect-ratio":function(){return Kr(I().aspectRatio,String)},
"margin-top":function(){return Kr(I().margin,J)},
"margin-bottom":function(){return Kr(I().margin,r)},
"margin-left":function(){return Kr(I().margin,P)},
"margin-right":function(){return Kr(I().margin,N)},
"padding-top":function(){return Kr(I().padding,J)},
"padding-bottom":function(){return Kr(I().padding,r)},
"padding-left":function(){return Kr(I().padding,P)},
"padding-right":function(){return Kr(I().padding,N)},
"flex-direction":function(){return Kr(I().flexDirection,P10)},
"justify-content":function(){return Kr(I().justifyContent,Z3e)},
"align-items":function(){return Kr(I().alignItems,C14)},
"flex-grow":function(){return Kr(I().flexGrow,String)},
"flex-shrink":function(){return Kr(I().flexShrink,String)},
"flex-basis":function(){return Kr(I().flexBasis,FB)},
"align-self":function(){return Kr(I().alignSelf,C14)},
"flex-wrap":function(){return Kr(I().flexWrap,NqZ)},
"align-content":function(){return Kr(I().alignContent,C14)}})};
Kr=function(a,z){return a!==void 0?z(a):void 0};
NqZ=function(a){switch(a){case "YPC_FLEX_WRAP_NO_WRAP":return"nowrap";case "YPC_FLEX_WRAP_WRAP":return"wrap";case "YPC_FLEX_WRAP_WRAP_REVERSE":return"wrap-reverse"}};
rD4=function(a){switch(a){case "YPC_POSITION_ABSOLUTE":return"absolute";case "YPC_POSITION_RELATIVE":return"relative"}};
C14=function(a){switch(a){case "YPC_ALIGN_ITEMS_AUTO":return"auto";case "YPC_ALIGN_ITEMS_START":return"flex-start";case "YPC_ALIGN_ITEMS_END":return"flex-end";case "YPC_ALIGN_ITEMS_CENTER":return"center";case "YPC_ALIGN_ITEMS_STRETCH":return"stretch"}};
Z3e=function(a){switch(a){case "YPC_JUSTIFY_CONTENT_FLEX_START":return"flex-start";case "YPC_JUSTIFY_CONTENT_FLEX_END":return"flex-end";case "YPC_JUSTIFY_CONTENT_CENTER":return"center";case "YPC_JUSTIFY_CONTENT_BETWEEN":return"space-between";case "YPC_JUSTIFY_CONTENT_SPACE_AROUND":return"space-around"}};
P10=function(a){switch(a){case "YPC_FLEX_DIRECTION_ROW":return"row";case "YPC_FLEX_DIRECTION_ROW_REVERSE":return"row-reverse";case "YPC_FLEX_DIRECTION_COLUMN":return"column";case "YPC_FLEX_DIRECTION_COLUMN_REVERSE":return"column-reverse"}};
JDf=function(a,z){var I=z==="rtl";switch(a){case "top":var J=uwi;break;case "bottom":J=ESV;break;case "left":J=BqE;break;default:J=gSG}return function(r){return Kr(J(r,I),FB)}};
uwi=function(a){var z=a.top;var I=a.vertical;a=a.all;var J;return(J=z!=null?z:I)!=null?J:a};
ESV=function(a){var z=a.bottom;var I=a.vertical;a=a.all;var J;return(J=z!=null?z:I)!=null?J:a};
BqE=function(a,z){var I=a.left;var J=a.end;var r=a.start;var P=a.horizontal;a=a.all;var N,u;return(u=(N=I!=null?I:z?J:r)!=null?N:P)!=null?u:a};
gSG=function(a,z){var I=a.right;var J=a.end;var r=a.start;var P=a.horizontal;a=a.all;var N,u;return(u=(N=I!=null?I:z?r:J)!=null?N:P)!=null?u:a};
FB=function(a){var z=a.value;switch(a.unit){case "YPC_DIMENSION_UNIT_POINT":return z+"px";case "YPC_DIMENSION_UNIT_FRACTION":return z+"%";default:return""+z}};
O3i=function(a){switch(a){case "YPC_SEMANTIC_COLOR_TEXT_PRIMARY":return"ytStyledTextViewModelYtTextPrimary";case "YPC_SEMANTIC_COLOR_TEXT_PRIMARY_INVERSE":return"ytStyledTextViewModelYtTextPrimaryInverse";case "YPC_SEMANTIC_COLOR_TEXT_SECONDARY":return"ytStyledTextViewModelYtTextSecondary";case "YPC_SEMANTIC_COLOR_TEXT_DISABLED":return"ytStyledTextViewModelYtTextDisabled";case "YPC_SEMANTIC_COLOR_THEMED_GREEN":return"ytStyledTextViewModelYtThemedGreen"}};
fHY=function(a){var z=a!=null?a:{};a=z.fontRole;var I=z.fontSize;z=z.fontWeight;if(a!==null&&I!==null)switch(a){case "YPC_FONT_ROLE_DISPLAY":switch(I){case "YPC_FONT_SIZE_L":return z==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtDisplayLHeavy":"ytStyledTextViewModelYtDisplayL";case "YPC_FONT_SIZE_M":return z==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtDisplayMHeavy":"ytStyledTextViewModelYtDisplayM";case "YPC_FONT_SIZE_S":return z==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtDisplaySHeavy":
"ytStyledTextViewModelYtDisplayS";case "YPC_FONT_SIZE_XS":return z==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtDisplayXSHeavy":"ytStyledTextViewModelYtDisplayXS";default:return}case "YPC_FONT_ROLE_HEADLINE":switch(I){case "YPC_FONT_SIZE_L":return z==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtHeadlineLHeavy":"ytStyledTextViewModelYtHeadlineL";case "YPC_FONT_SIZE_M":return z==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtHeadlineMHeavy":"ytStyledTextViewModelYtHeadlineM";case "YPC_FONT_SIZE_S":return z===
"YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtHeadlineSHeavy":"ytStyledTextViewModelYtHeadlineS";case "YPC_FONT_SIZE_XS":return z==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtHeadlineXSHeavy":"ytStyledTextViewModelYtHeadlineXS";default:return}case "YPC_FONT_ROLE_BODY":switch(I){case "YPC_FONT_SIZE_XL":return z==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtBodyXLHeavy":"ytStyledTextViewModelYtBodyXL";case "YPC_FONT_SIZE_L":return z==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtBodyLHeavy":
"ytStyledTextViewModelYtBodyL";case "YPC_FONT_SIZE_M":return z==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtBodyMHeavy":"ytStyledTextViewModelYtBodyM";case "YPC_FONT_SIZE_S":return z==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtBodySHeavy":"ytStyledTextViewModelYtBodyS";case "YPC_FONT_SIZE_XS":return z==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtBodyXSHeavy":"ytStyledTextViewModelYtBodyXS"}}};
nSE=function(a,z,I){function J(A){return Object.values(A).map(function(n){var F=n.productId;n=n.pricingOptionIndex;return HF(r(F).pricingOptions,n).pricingOptionId})}
function r(A){return E().get(A)}
function P(A){A=J(A);I(A)}
function N(A,n){return Array.from(bi(A.pricingOptions)).filter(function(F){F=_.C(F);F.next();F=F.next().value;return h_(F.pricingGroupAttributes,n)}).map(function(F){return _.C(F).next().value})}
var u=Vu([a,z],function(A,n){var F=A==null?void 0:A.selectedPricingOptions;A={};var h=!0;if(F&&n.length)for(var v=_.C(n),d=v.next();!d.done;d=v.next()){d=d.value;var W=ADZ(d.pricingOptions,function(m){a:{m=m.pricingOptionId;for(var M=_.C(F),y=M.next();!y.done;y=M.next())if(y.value===m){m=!0;break a}m=!1}return m});
if(W>=0){h=!1;var l=HF(d.pricingOptions,W),q=void 0;A[d.groupId]={productId:d.productId,pricingOptionIndex:W,pricingGroupAttributes:(q=l)==null?void 0:q.pricingGroupAttributes}}}h&&n.length&&(h=HF(n[0].pricingOptions,0),A[n[0].groupId]={productId:n[0].productId,pricingOptionIndex:0,pricingGroupAttributes:h==null?void 0:h.pricingGroupAttributes});return A}),E=Vu([z],function(A){return new Map(A.map(function(n){return[n.productId,
n]}))}),O=Vu([z],function(A){var n=new Map;
A=_.C(A);for(var F=A.next();!F.done;F=A.next()){var h=F.value;F=h.groupId;var v=h.productId;h=_.C(bi(h.pricingOptions));for(var d=h.next();!d.done;d=h.next()){var W=_.C(d.value);d=W.next().value;W=W.next().value;n.set(W.pricingOptionId,{groupId:F,productId:v,index:d,pricingOption:W,pricingGroupAttributes:W.pricingGroupAttributes})}}return n}),f=Vu([z],function(A){var n=new Map;
A=_.C(A);for(var F=A.next();!F.done;F=A.next()){var h=F.value;F=h.groupId;var v=h.productId,d=void 0;h=_.C(bi((d=h.pricingGroups)!=null?d:[]));for(d=h.next();!d.done;d=h.next()){var W=_.C(d.value);d=W.next().value;W=W.next().value;n.set(W.pricingGroupId,{groupId:F,productId:v,index:d,pricingGroup:W,pricingGroupAttributes:W.pricingGroupAttributes})}}return n});
return{getProductById:r,isProductSelected:function(A){var n=r(A);if(!n)return!1;var F;return((F=u()[n.groupId])==null?void 0:F.productId)===A},
getSelectedPricingOptions:function(){return Object.values(u()).map(function(A){var n=A.productId;A=A.pricingOptionIndex;return HF(r(n).pricingOptions,A)})},
getSelectedPricingGroupAttributesByGroupId:function(A){var n;return(A=(n=u()[A])==null?void 0:n.pricingGroupAttributes)?Array.from(A):void 0},
getSelectedProductByGroupId:function(A){var n;return(A=(n=u()[A])==null?void 0:n.productId)?r(A):void 0},
onProductSelected:function(A){var n=r(A);if(n){var F=u(),h;if(((h=F[n.groupId])==null?void 0:h.productId)!==A){var v=(h=(v=F[n.groupId])==null?void 0:v.productId)?r(h):void 0;var d;h=(d=F[n.groupId])==null?void 0:d.pricingGroupAttributes;var W;d=(W=F[n.groupId])==null?void 0:W.pricingOptionIndex;if(v&&h&&d!==void 0){W=N(v,h).indexOf(d);if(W===-1)throw Error("Lj`"+d+"`"+v.productId);d=N(n,h);W=W<d.length?d[W]:d.length>0?d[0]:0}else W=0;Qu(n.pricingOptions)<=W&&(W=0);d=HF(n.pricingOptions,W);var l;
v={};P(Object.assign({},F,(v[n.groupId]={productId:A,pricingOptionIndex:W,pricingGroupAttributes:(l=d==null?void 0:d.pricingGroupAttributes)!=null?l:[]},v)))}}},
onPricingOptionSelected:function(A){var n=O().get(A);if(n){A=n.groupId;var F=n.productId;n=n.index;var h=u(),v,d;if(((v=h[A])==null?void 0:v.productId)!==F||((d=h[A])==null?void 0:d.pricingOptionIndex)!==n){var W,l;v={};P(Object.assign({},h,(v[A]={productId:F,pricingOptionIndex:n,pricingGroupAttributes:(l=(W=h[A])==null?void 0:W.pricingGroupAttributes)!=null?l:[]},v)))}}},
onPricingGroupSelected:function(A){var n=f().get(A);if(n){A=n.groupId;var F=n.productId,h=n.pricingGroup.pricingGroupAttributes,v=r(F);if(v){n=u();var d=n[A].pricingGroupAttributes,W;if(((W=n[A])==null?void 0:W.productId)!==F||!h_(sLY(d,Qu(h)),h)){W=Array.from(h);for(h=Qu(h);h<Qu(d);h++){var l="",q=!1,m=Array.from(W);m.push(HF(d,h));for(var M=_.C(v.pricingGroups),y=M.next();!y.done;y=M.next())if(y=y.value,h_(y.pricingGroupAttributes,m)){W.push(HF(d,h));q=!0;break}else l===""&&Qu(y.pricingGroupAttributes)===
m.length&&h_(sLY(y.pricingGroupAttributes,W.length),W)&&(l=HF(y.pricingGroupAttributes,h));q||W.push(l)}l=n[A].pricingOptionIndex;h=[];q=new Map;m=0;v=_.C(bi(v.pricingOptions));for(M=v.next();!M.done;M=v.next())y=_.C(M.value),M=y.next().value,y=y.next().value,h_(y.pricingGroupAttributes,W)&&h.push(M),h_(y.pricingGroupAttributes,d)&&q.set(M,m++);h.length===0?d=0:(d=q.get(l),d=d!==void 0&&d<h.length?h[d]:h[0]);v={};P(Object.assign({},n,(v[A]={productId:F,pricingOptionIndex:d,pricingGroupAttributes:W},
v)))}}}},
onClearGroupSelected:function(A){var n=u();n[A]&&(n=Object.fromEntries(Object.entries(n).filter(function(F){return _.C(F).next().value!==A})),P(n))}}};
bi=function(a){return function I(){var J,r,P,N,u;return _.Ch(I,function(E){switch(E.nextAddress){case 1:_.fu(E,2),J=0,r=_.C(a),P=r.next();case 4:if(P.done){E.jumpTo(2);break}N=P.value;u=_.Nl;return E.yield([J++,N],7);case 7:u(E.yieldResult);P=r.next();E.jumpTo(4);break;case 2:_.Ok(E),_.Ay(E,0)}})}()};
ADZ=function(a,z){a=_.C(bi(a));for(var I=a.next();!I.done;I=a.next()){var J=_.C(I.value);I=J.next().value;J=J.next().value;if(z(J))return I}return-1};
Qu=function(a){var z=0;for(a=a[Symbol.iterator]();!a.next().done;)++z;return z};
HF=function(a,z){a=_.C(bi(a));for(var I=a.next();!I.done;I=a.next()){var J=_.C(I.value);I=J.next().value;J=J.next().value;if(I===z)return J}};
h_=function(a,z){if(!a&&!z)return!0;if(!a||!z)return!1;a=Array.from(a);z=Array.from(z);if(a.length!==z.length)return!1;for(var I=0;I<a.length;I++)if(a[I]!==z[I])return!1;return!0};
sLY=function(a,z){z=z===void 0?Infinity:z;var I=[];a=_.C(bi(a));for(var J=a.next();!J.done;J=a.next()){var r=_.C(J.value);J=r.next().value;r=r.next().value;if(J>=z)break;J>=0&&I.push(r)}return I};
Vu=function(a,z){var I,J;return function(){for(var r=a.map(function(N){return N()}),P=0;P<r.length;P++)if(!I||r[P]!==I[P]){I=r;
J=z.apply(null,_.ih(r));break}return J}};
KsY=function(a,z,I){var J=[];a=_.C(a);for(var r=a.next();!r.done;r=a.next()){r=r.value;var P=void 0;((P=z)==null?0:P.length)&&!h_(r.pricingGroupAttributes,z)||J.push({pricingOption:r,isSelected:I.includes(r.pricingOptionId)})}return J};
FsM=function(a,z){return _.Bd(a.entities,"pdpStateEntity",z)};
H3Z=function(a){var z,I;return!!(a.productId&&a.groupId&&((z=a.pricingOptions)==null?0:z.length)&&a.pricingOptions.every(function(J){return J.pricingOptionId})&&((I=a.pricingGroups)==null||!I.length||Array.isArray(a.pricingGroups)&&a.pricingGroups.every(function(J){return J.pricingGroupId&&J.pricingGroupAttributes&&J.pricingGroupAttributes.length>0})))};
b3i=function(a,z,I){return nSE(a,Vu([z],function(J){return J.filter(H3Z)}),I)};
hxG=function(a,z){return z.length===0?[a]:[a.slice(0,z[0]),a.slice(z[0])].filter(function(I){return I.length>0})};
VLi=function(a){switch(a){case "FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_JUSTIFY_END":return"yt-flow-bottom-bar-renderer--flow-bottom-bar-button-layout-style-justify-end";case "FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_FULL_DISTRIBUTED":return"yt-flow-bottom-bar-renderer--flow-bottom-bar-button-layout-style-full-distributed";case "FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_FLEX_PRIMARY":return"yt-flow-bottom-bar-renderer--flow-bottom-bar-button-layout-style-flex-primary";case "FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_VERTICAL_CENTERED":return"yt-flow-bottom-bar-renderer--flow-bottom-bar-button-layout-style-vertical-centered";
case "FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_DISTRIBUTED_SPACE":return"yt-flow-bottom-bar-renderer--flow-bottom-bar-button-layout-style-distributed-space";default:return""}};
SeE=function(a,z,I,J){J=Object.assign({},J);_.$N(J,QLe,{selectedOptionId:a,primaryButtonOverride:I});_.M3().dispatch(_.Q0("flowStateEntity",z,J))};
i34=function(a){switch(a){case "LANDING_PAGE_YOUTUBE_FONT_SIZE_XS":return"ytLandingPageViewModelHeaderTitleContentFontSizeXS";case "LANDING_PAGE_YOUTUBE_FONT_SIZE_S":return"ytLandingPageViewModelHeaderTitleContentFontSizeS";case "LANDING_PAGE_YOUTUBE_FONT_SIZE_M":return"ytLandingPageViewModelHeaderTitleContentFontSizeM";default:return"ytLandingPageViewModelHeaderTitleContentFontSizeL"}};
xYY=function(a){switch(a){case "LANDING_PAGE_YOUTUBE_FONT_SIZE_XS":return"ytLandingPageViewModelHeaderTitleDescriptionFontSizeXS";case "LANDING_PAGE_YOUTUBE_FONT_SIZE_S":return"ytLandingPageViewModelHeaderTitleDescriptionFontSizeS";case "LANDING_PAGE_YOUTUBE_FONT_SIZE_M":return"ytLandingPageViewModelHeaderTitleDescriptionFontSizeM";case "LANDING_PAGE_YOUTUBE_FONT_SIZE_L":return"ytLandingPageViewModelHeaderTitleDescriptionFontSizeL";case "LANDING_PAGE_YOUTUBE_FONT_SIZE_XL":return"ytLandingPageViewModelHeaderTitleDescriptionFontSizeXL";
default:return"ytLandingPageViewModelHeaderTitleDescriptionFontSizeL"}};
vSZ=function(a,z){return _.Bd(a.entities,"contextNoteFeedEntityPayload",z)};
GZ0=function(a,z){switch(a){case "NOTE_HELPFULNESS_VALUE_HELPFUL":return z==null?void 0:z.ratingHelpfulText;case "NOTE_HELPFULNESS_VALUE_SOMEWHAT_HELPFUL":return z==null?void 0:z.ratingSomewhatHelpfulText;case "NOTE_HELPFULNESS_VALUE_NOT_HELPFUL":return z==null?void 0:z.ratingNotHelpfulText}};
$YV=function(a,z){return{buttonViewModel:{style:"BUTTON_VIEW_MODEL_STYLE_MONO",type:"BUTTON_VIEW_MODEL_TYPE_TEXT",state:"BUTTON_VIEW_MODEL_STATE_ACTIVE",buttonSize:"BUTTON_VIEW_MODEL_SIZE_XSMALL",iconName:"MORE_VERT",accessibilityText:a.deleteActionText,onTap:{innertubeCommand:{showSheetCommand:{panelLoadingStrategy:{inlineContent:{sheetViewModel:{content:{listViewModel:{listItems:[{listItemViewModel:{title:{content:a.deleteActionText},leadingImage:{sources:[{clientResource:{imageName:"TRASH_CAN"}}]},
rendererContext:{commandContext:{onTap:{innertubeCommand:{confirmDialogEndpoint:{content:{confirmDialogRenderer:{title:{runs:[{text:a.deleteDialogTitle}]},dialogMessages:[{runs:[{text:a.deleteDialogSubtitle}]}],confirmButton:{buttonRenderer:{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:{runs:[{text:a.deleteActionText}]},command:{performCommentActionEndpoint:{action:z}}}},cancelButton:{buttonRenderer:{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:{runs:[{text:a.cancelActionText}]},command:{dismissDialogCommand:{}}}}}}}}}}}}}]}}}}}}}}}}};
X3z=function(a){a.style.height="auto";a.style.height=a.scrollHeight+"px"};
Tq4=function(a){return[a.syncStep,a.asyncStep].filter(function(z){return z!==void 0})};
Wsz=function(a){var z,I,J;if(a=(z=a.structuredContextNoteFormSchema)==null?void 0:(I=z.fieldSchemas)==null?void 0:(J=I.noteBody)==null?void 0:J.validationSchema)for(z=_.C(Tq4(a)),I=z.next();!I.done;I=z.next()){I=I.value.rules;if(!I)break;I=_.C(I);for(I=I.next();!I.done;I=I.next())return _.H(I.value,_.dYi)}};
UYM=function(a){if(a){a=_.C(Tq4(a));for(var z=a.next();!z.done;z=a.next()){z=z.value.rules;if(!z)break;z=_.C(z);for(z=z.next();!z.done;z=z.next())return _.H(z.value,oSM)}}};
RxV=function(a){if(a){a=_.C(Tq4(a));for(var z=a.next();!z.done;z=a.next()){z=z.value.rules;if(!z)break;z=_.C(z);for(z=z.next();!z.done;z=z.next())return _.H(z.value,DYE)}}};
LsM=function(a){a=/^https?:\/\//.test(a)?a:"http://"+a;try{var z=_.Rf(a)}catch(I){return!1}if(z.toString()!==a)return!1;a=z.JSC$9989_domain_.split(".");return a.length>1&&a.every(function(I){return!!I})};
lHM=function(a,z,I,J){var r;J=(r=J.structuredContextNoteData)==null?void 0:r.createCommentEndpoint;if(r=_.H(J,_.k7f))return r.commentText=_.Mo(a),r.videoPositionMention=z,r.sources=I,J};
p3i=function(a){return a==null?void 0:a.stringValue};
_.w30=function(a){return a.talkToRecs};
yDZ=function(a,z,I){a=a.map(function(J,r){return{listItemViewModel:{title:J.title,subtitle:J.subtitle,leadingImage:J.leadingImage,trailingImage:r===z?mYG:void 0,rendererContext:{commandContext:{onTap:J.onTap}}}}});
return Object.assign({},I&&{header:{panelHeaderViewModel:{title:I}}},{content:{listViewModel:{listItems:a}}})};
kZV=function(a,z){if(a&&z)switch(z){case "SELECTION_TYPE_BOOL":return a.boolValue;case "SELECTION_TYPE_INT":return a.intValue;case "SELECTION_TYPE_STRING":return a.stringValue;case "SELECTION_TYPE_PRIVACY_STATUS":return a.privacyStatusValue}};
MLY=function(a){var z;a=(z=a.options)==null?void 0:z.findIndex(function(I){return I.isSelected});
return a===void 0?-1:a};
cDG=function(a,z,I){var J=function(){return a().label},r={},P=_.B8("ytDropdownViewModelLabel",(r.ytDropdownViewModelLabelError=z,r));
return _.B(_.g,{cond:function(){return a().label&&!(I()===-1&&a().label&&!a().placeholderText)},
then:function(){return _.B("div",{class:P},_.B(_.xs,{text:J}))}})};
Yee=function(a,z){var I={};I=_.B8("ytDropdownViewModelTitle",(I.ytDropdownViewModelTitlePlaceholder=function(){return z()===-1},I));
return _.B("div",{class:I},_.B(_.xs,{text:function(){var J=a();var r=z();if(r===-1)J=J.placeholderText?J.placeholderText:J.label;else{var P,N;J=(P=J.options)==null?void 0:(N=P[r])==null?void 0:N.title}return J}}))};
qe0=function(a,z){var I=function(){return a().hint};
return _.B(_.eJ,null,_.B(_.g,{cond:function(){return I()&&!z()},
then:function(){return _.B("div",{class:_.B8("ytDropdownViewModelSupport","ytDropdownViewModelSupportHint")},_.B(_.xs,{text:I,className:"ytDropdownViewModelSupportText"}))}}),_.B(_.g,{cond:z,
then:function(){return _.B("div",{id:"dropdown-view-model-error",role:"alert",class:_.B8("ytDropdownViewModelSupport","ytDropdownViewModelSupportError")},_.B(_.nS,{icon:"INFO",className:"ytDropdownViewModelSupportIcon"}),_.B(_.xs,{text:z,className:"ytDropdownViewModelSupportText"}))}}))};
ex0=function(a,z){var I=_.ab().resolve(_.sE4);_.QO(function(){var J=a().id;J&&I!=null&&I.dropdownMap.set(J,z)})};
jbZ=function(a){a=_.H(a.scheduleButton,av4);a=_.H(a==null?void 0:a.primaryButton,_.yw);a=_.H(a==null?void 0:a.onTap,_.Wl);var z,I,J=((I=_.H(a,_.E_))==null?void 0:I.commands)||[a];I=_.C(J);for(a=I.next();!a.done&&!(z=_.H(a.value,_.cXw));a=I.next());var r;z=(r=z)==null?void 0:r.createBroadcastRequest;if(!z)throw Error("Oj");return z};
rPM=function(a,z,I){I=I===void 0?{}:I;var J,r;return _.t(function(P){if(J=zZV(z))return P.return(J);(r=IvM(a,z,I))&&JPi(z,r);return P.return(r)})};
JPi=function(a,z){var I=PlY(a);I&&z.then(function(J){_.ab().resolve(_.AM).put(I,new _.s3({innertubeResponse:J}))})};
zZV=function(a){if(a=PlY(a)){var z=_.ab().resolve(_.AM);if(z.has(a))return z.get(a).then(function(I){return I==null?void 0:_.Iv(I)})}return null};
PlY=function(a){var z=_.H(a.endpoint,_.MZ);if(z!=null&&z.videoId)return z={videoId:z.videoId},_.K("web_imp_player_mute_params")&&(z.mutedAtStart=a.startPlaybackInMutedState),_.k2("inline_playback",z)};
IvM=function(a,z,I){a=_.y7(a,z.endpoint,Z1V(z,I)).then(function(J){return J});
return Promise.resolve(a)};
Z1V=function(a,z){z=_.K("web_imp_player_mute_params")?Object.assign({},{vis:5,inlinePlayback:!0,inlineUnmuted:!a.startPlaybackInMutedState},z):Object.assign({},{vis:5,autonav:"1"},z);var I;z={contentPlaybackContext:_.St(z,(I=_.H(a.endpoint.commandMetadata,_.O_))==null?void 0:I.url,window.location.href)};_.K("web_imp_player_mute_params")&&(z.overrideMutedAtStart=!a.startPlaybackInMutedState);return z};
unf=function(a,z){var I=window.MutationObserver;I&&(Sb=new I(function(J,r){J=_.C(J);for(var P=J.next();!P.done;P=J.next()){P=P.value;var N;if(N=P.type==="childList"&&P.target)a:{N=a;P=ClE(P.target);N=ClE(N);for(var u=null,E=0;E<P.length;E++)if(N.includes(P[E])){if(E===0){N=!1;break a}u=P[E];break}u?(P=NMf(P,u),N=NMf(N,u),N=P<N):N=!1}if(N){z();r.disconnect();break}}}),(I=t6Z())&&Sb.observe(I,{childList:!0,
subtree:!0}))};
t6Z=function(){var a=document.getElementsByTagName("ytd-rich-grid-renderer");if(a.length>0)return a[0];a=document.getElementsByTagName("ytd-section-list-renderer");return a.length>0?a[0]:null};
ClE=function(a){for(var z=[];a;)z.push(a),a=a.parentElement;return z};
NMf=function(a,z){var I=Array.from(z.children);z=a.indexOf(z);return z>0?I.indexOf(a[z-1]):-1};
ii=function(a,z,I){I=I===void 0?{}:I;return _.AR(a,I,z)};
Ej4=function(a){switch(a){case "MUSIC":return!0;default:return!1}};
BM4=function(a){return a==null?void 0:a.filter(function(z){return z.premiereTrailerBadgeRenderer})};
O1e=function(a){var z,I=a==null?void 0:(z=a.find(function(A){return A.thumbnailOverlayTimeStatusRenderer}))==null?void 0:z.thumbnailOverlayTimeStatusRenderer,J,r;
if((I==null?0:(J=I.icon)==null?0:J.iconType)&&Ej4(I==null?void 0:(r=I.icon)==null?void 0:r.iconType)){var P;return{icon:I==null?void 0:(P=I.icon)==null?void 0:P.iconType}}var N,u;var E=(a=(N=a==null?void 0:(E=a.find(function(A){return A.thumbnailBottomOverlayViewModel}))==null?void 0:E.thumbnailBottomOverlayViewModel)==null?void 0:(u=N.badges)==null?void 0:u.find(function(A){var n,F;
return((n=_.H(A,gjE))==null?void 0:(F=n.inlinePlaybackBadgeData)==null?void 0:F.replicateAsTimestamp)===!0}))?_.H(a,gjE):void 0;
if(E==null?0:E.icon){var O,f;if((E=(O=_.AFp(E==null?void 0:E.icon))==null?void 0:(f=O.clientResource)==null?void 0:f.imageName)&&Ej4(E))return{icon:E}}return{}};
F5e=function(a,z){var I=fve,J=_.C(_.CW(APZ(new sbE(function(){},I,z)),void 0,"PAnyd")),r=J.next().value,P=J.next().value,N=new sbE(function(u){P(u)},I,z);
_.h2(function(){Promise.resolve().then(function(){var u,E=(u=a())!=null?u:{};N.playerControlsData=E;_.K("player_controls_skip_double_signal_old")&&(N.lastSeenPlayerApi=_.ov(E.playerApi));_.K("player_controls_skip_double_signal_old")||(N.lastSeenPlayerApi=_.ov(E.playerApi));njE(N)});
_.V3(function(){K5f(N)})},"HikUP");
_.V3(function(){K5f(N)});
return function(){return r()}};
H1Z=function(a){return function(z){var I=a(),J={playerState:z};if(z===1){var r;(r=I.playerApi)==null||r.loadModule("captions")}if(z===0){var P;(P=I.playerApi)==null||P.unloadModule("captions")}(z!==-1||_.K("web_imp_controls_set_player_state_killswitch"))&&I.setState(J)}};
b1Y=function(a){return function(z){a().setState({playbackRate:z})}};
hZE=function(a){return function(z){var I=a(),J=I.playerApi,r=J==null?void 0:J.getVideoData(),P=(r==null?void 0:r.isLive)||!1;r=r==null?void 0:r.video_id;P={videoDuration:Yfe(J||void 0),isLive:P,videoId:r};P.videoId!==I.videoId&&(P=Object.assign({},_.ODG(J),P));if(z==null?0:z.playertype)P.playerType=z.playertype;if(J){P.captionsAvailable=_.jb(J);z=P;var N;r=(N=J.getStoryboardLevel(J.getNumberOfStoryboardLevels()-1))==null?void 0:N.intervalMs;z.storyboardInterval=r?r/1E3:void 0;P.captionsAvailable&&
(P.captionsEnabled=_.ITZ(J))}P.volumeMuted=!(J==null||!J.isMuted());I.setState(P)}};
V6E=function(a){return function(z){var I=a(),J=I.playerApi;if(J){var r=J.getPresentingPlayerType();z={playedTime:z||0,percentLoaded:J.getVideoLoadedFraction(),playerType:r};I.playerState===0&&(z.playedTime=I.videoDuration);I.isLive&&(r=J.getProgressState(r),z.playedTime-=r.seekableStart,z.videoDuration=Yfe(J));if(I.playerType===1)J=!1;else{var P;if((P=I.uxConfig)==null?0:P.showCuedOverlay){var N;J=!((N=I.playerApi)==null?0:N.getPlayerStateObject(I.playerType).isDomPaused)}else J=!0}J&&delete z.playedTime;
I.setState(z)}}};
QbG=function(a){return function(){var z=a(),I,J,r,P={volume:(r=(I=z.playerApi)==null?void 0:I.getVolume())!=null?r:0,volumeMuted:!((J=z.playerApi)==null||!J.isMuted())};z.setState(P)}};
Szi=function(a){return function(){var z=a(),I=z.playerApi;if(I){var J={captionsAvailable:_.jb(I)};J.captionsAvailable&&(J.captionsEnabled=_.ITZ(I));z.setState(J)}}};
i1e=function(a){return function(){var z=a();if(z.playerApi&&!(z.volumeMuted||z.controlsVisible&&z.isProbablyAScreenreaderUser)){z.setState({controlsVisible:!0,isProbablyAScreenreaderUser:!0});var I;(I=document.querySelector(".player-control-play-pause-icon"))==null||I.focus()}}};
xeE=function(a){return{appApi:Object.assign({},_.CLO(),{showCaptionsToggleToast:function(z){var I,J;(J=(I=a()).showCaptionsToggleToast)==null||J.call(I,z)},
openInMiniplayer:function(){var z,I;(I=(z=a()).openInMiniplayer)==null||I.call(z)}})}};
vjG=function(a,z){var I,J,r;return!!(a==null?0:(I=a.playerResponse)==null?0:(J=I.playerConfig)==null?0:(r=J.inlinePlaybackConfig)==null?0:r.showScrubbingControls)&&!(z==null?0:z.hideScrubbingControls)};
_.G9G=function(a){var z=!a.miniplayerIsActive;return[5,2,0].includes(a.miniplayerPlaybackState)||z};
$ef={FILLED:"youtube_fill",OUTLINE:"youtube_outline"};Xyf=function(a,z){var I,J,r,P,N;_.t(function(u){if(!z.length)return u.return([]);I=[];J=_.C(z);for(r=J.next();!r.done;r=J.next())P=r.value,(N=a.resolveIcon(P))&&!a.iconCache[N.url]&&I.push(_.lEY(a,N).then(function(){}).catch(function(){}));
return u.return(Promise.all(I))})};
TMZ=function(a,z){var I=[];z=(new Set(z)).values();z=_.C(z);for(var J=z.next();!J.done;J=z.next()){J=J.value;for(var r=_.C(Object.values($ef)),P=r.next();!P.done;P=r.next())I.push({iconName:J,iconStyle:P.value})}Xyf(a.iconManager,I)};
_.de0=function(a,z,I){var J=I!=null?I:a.iconsToFetch;J!=null&&J.length?z!==void 0&&z>=0?_.b9(_.GW,function(){TMZ(a,J)},z):TMZ(a,J):Promise.resolve()};
sbE=function(a,z,I){var J=this;this.renderFn=a;this.listeners=z;this.context=I;this.eventListenerCleanupFunctions=[];this.recentlyNavigated=!1;var r;this.lastSeenPlayerApi=_.ov((r=this.playerControlsData)==null?void 0:r.playerApi);this.boundSetState=this.setState.bind(this);this.state=Object.assign({},_.ODG(),void 0);_.K("player_controls_render_optimization")&&window.addEventListener("state-navigatestart",function(){APZ(J).setState({playerState:-1});J.resetRecentlyNavigatedJobId&&_.GW.cancelJob(J.resetRecentlyNavigatedJobId);
J.recentlyNavigated=!0;J.resetRecentlyNavigatedJobId=_.GW.addJob(function(){J.recentlyNavigated=!1},8,1E4)})};
sbE.prototype.setState=function(a){if(!_.K("mweb_player_skip_no_op_state_changes")||!qfz(a,this.state))if(this.state=Object.assign({},this.state,a),!_.K("player_controls_render_optimization")||this.state.playerState!==-1&&this.state.playerState!==5||!this.recentlyNavigated)a=-1,_.K("player_controls_log_creation_killswitch")||e0Z()||(a=(0,_.jp)()),_.Xz("pcu_s"),_.Xz("pcu_se"),_.Xz("pcu_rs"),this.renderFn(APZ(this)),_.Xz("pcu_re"),aHf(a),_.GW.addJob(function(){_.Xz("pcu_ap")},8)};
var APZ=function(a){var z;var I=_.ov((z=a.playerControlsData)==null?void 0:z.playerApi);return Object.assign({},a.state,{setState:a.boundSetState,domMeasurements:{progressBarLineRect:a.progressBarLineRect},playerApi:I,appApi:a.context.appApi,playerContainer:a.context.playerContainer,playerControlContainer:a.context.playerControlContainer,uxConfig:a.context.uxConfig})},njE=function(a){a.listeners.forEach(function(z){a.eventListenerCleanupFunctions.push(z.register(function(){return APZ(a)},function(){return a.getData()}))})},
K5f=function(a){a.eventListenerCleanupFunctions.forEach(function(z){z()});
a.eventListenerCleanupFunctions.length=0};
sbE.prototype.getData=function(){return this.playerControlsData};var x_=new _.jv("abuseReportFlowState");var W5E=new _.jv("feedbackFormFlowState");var ojG=new _.jv("inputBoxViewModel");var UeV=new _.jv("flowNextStepCommand");var DeY=new _.jv("flowPrevStepCommand");var RZM=new _.jv("updateFlowCommand");_.L5z=new _.jv("flowStepRenderer");_.dYi=new _.jv("lengthValidationRule");var oSM=new _.jv("regexValidationRule");var DYE=new _.jv("selectedValidationRule");var lvG=new _.jv("talkToRecsViewModel");var pyZ=new _.jv("creatorGoalSetUpFlowDropdownItemViewModel");var wyM=new _.jv("creatorGoalSetUpFlowDropdownViewModel");var gjE=new _.jv("thumbnailBadgeViewModel");_.mef=new _.jv("radioButtonGroupViewModel");var av4=new _.jv("panelFooterViewModel");var yPV=new _.jv("ypcCancelRecurrenceCommand");var k9e=new _.jv("cancellationFlowState");var QLe=new _.jv("premiumPurchaseFlowState");var M6f=new _.jv("surveyAnswerCardRenderer");var cPY=new _.jv("showMoreButtonRenderer");var Yz0;var qzM,eZZ=function(){if(qzM!==void 0)return qzM;var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-creator-goal-set-up-flow-view-model--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.pdg.yt_creator_goal_set_up_flow_view_model.yt.creator.goal.set.up.flow.view.model.css.js--\x3e<div id="container" class="style-scope yt-creator-goal-set-up-flow-view-model">\n  <div id="header" class="style-scope yt-creator-goal-set-up-flow-view-model">\n    <yt-attributed-string id="title" data="[[data.title]]" class="style-scope yt-creator-goal-set-up-flow-view-model"></yt-attributed-string>\n    <yt-image id="image" data="[[data.image]]" height="100" preserve-height="" width="100" class="style-scope yt-creator-goal-set-up-flow-view-model"></yt-image>\n  </div>\n  <div id="subheader" class="style-scope yt-creator-goal-set-up-flow-view-model">\n    <yt-attributed-string id="description" data="[[data.pageDescription]]" class="style-scope yt-creator-goal-set-up-flow-view-model"></yt-attributed-string>\n  </div>\n  <div id="goal-content" class="style-scope yt-creator-goal-set-up-flow-view-model">\n    <div id="number-goal" class="style-scope yt-creator-goal-set-up-flow-view-model">\n      <yt-attributed-string id="number-goal-label" data="[[data.purchaseTargetDropdown.creatorGoalSetUpFlowDropdownViewModel.dropdownTitle]]" class="style-scope yt-creator-goal-set-up-flow-view-model"></yt-attributed-string>\n      <tp-yt-paper-dropdown-menu-light id="goal-dropdown" no-label-float="" class="style-scope yt-creator-goal-set-up-flow-view-model">\n        <tp-yt-paper-listbox id="goal-entries" class="dropdown-content style-scope yt-creator-goal-set-up-flow-view-model" slot="dropdown-content" attr-for-selected="value" selected="[[goal]]" on-selected-changed="updateGoalValue">\n        <template is="dom-repeat" items="[[getGoalDropdownItems()]]" as="item" class="style-scope yt-creator-goal-set-up-flow-view-model">\n          <tp-yt-paper-item value="[[getDropdownItemValue(item)]]" class="style-scope yt-creator-goal-set-up-flow-view-model">\n            <yt-attributed-string data="[[getDropdownItemText(item)]]" class="style-scope yt-creator-goal-set-up-flow-view-model"></yt-attributed-string>\n          </tp-yt-paper-item>\n        </template>\n        </tp-yt-paper-listbox>\n      </tp-yt-paper-dropdown-menu-light>\n    </div>\n    <div id="tier-goal" class="style-scope yt-creator-goal-set-up-flow-view-model">\n      <yt-attributed-string id="tier-goal-label" data="[[data.colorDropdown.creatorGoalSetUpFlowDropdownViewModel.dropdownTitle]]" class="style-scope yt-creator-goal-set-up-flow-view-model"></yt-attributed-string>\n      <tp-yt-paper-dropdown-menu-light id="tier-dropdown" no-label-float="" no-underline="" class="style-scope yt-creator-goal-set-up-flow-view-model">\n        <tp-yt-paper-listbox id="tier-entries" class="dropdown-content style-scope yt-creator-goal-set-up-flow-view-model" slot="dropdown-content" attr-for-selected="value" selected="[[tier]]" on-selected-changed="updateTierValue">\n        <template is="dom-repeat" items="[[getColorDropdownItems()]]" as="item" class="style-scope yt-creator-goal-set-up-flow-view-model">\n          <tp-yt-paper-item value="[[getDropdownItemValue(item)]]" class="style-scope yt-creator-goal-set-up-flow-view-model">\n            <yt-attributed-string data="[[getDropdownItemText(item)]]" class="style-scope yt-creator-goal-set-up-flow-view-model"></yt-attributed-string>\n          </tp-yt-paper-item>\n        </template>\n        </tp-yt-paper-listbox>\n      </tp-yt-paper-dropdown-menu-light>\n      <yt-attributed-string id="tier-disclosure" data="[[data.colorDisclosureText]]" class="style-scope yt-creator-goal-set-up-flow-view-model"></yt-attributed-string>\n    </div>\n    <div id="duration-goal" class="style-scope yt-creator-goal-set-up-flow-view-model">\n      <yt-attributed-string id="duration-goal-label" data="[[data.timerDropdown.creatorGoalSetUpFlowDropdownViewModel.dropdownTitle]]" class="style-scope yt-creator-goal-set-up-flow-view-model"></yt-attributed-string>\n      <tp-yt-paper-dropdown-menu-light id="timer-dropdown" no-label-float="" no-underline="" class="style-scope yt-creator-goal-set-up-flow-view-model">\n        <tp-yt-paper-listbox id="timer-entries" class="dropdown-content style-scope yt-creator-goal-set-up-flow-view-model" slot="dropdown-content" attr-for-selected="value" selected="[[timer]]" on-selected-changed="updateTimerValue">\n        <template is="dom-repeat" items="[[getTimerDropdownItems()]]" as="item" class="style-scope yt-creator-goal-set-up-flow-view-model">\n          <tp-yt-paper-item value="[[getDropdownItemValue(item)]]" class="style-scope yt-creator-goal-set-up-flow-view-model">\n            <yt-attributed-string data="[[getDropdownItemText(item)]]" class="style-scope yt-creator-goal-set-up-flow-view-model"></yt-attributed-string>\n          </tp-yt-paper-item>\n        </template>\n        </tp-yt-paper-listbox>\n      </tp-yt-paper-dropdown-menu-light>\n    </div>\n    <div id="description-goal" class="style-scope yt-creator-goal-set-up-flow-view-model">\n      <yt-attributed-string id="number-goal-label" data="[[data.descriptionInputTitle]]" class="style-scope yt-creator-goal-set-up-flow-view-model"></yt-attributed-string>\n      <tp-yt-paper-textarea id="goal-description-input" maxlength="220" no-label-float="" placeholder="[[data.userGoalPlaceholderText.content]]" on-value-changed="onTextValueChanged" class="style-scope yt-creator-goal-set-up-flow-view-model">\n      </tp-yt-paper-textarea>\n      <yt-button-view-model id="[[exampleButtonId]]" data="[[data.exampleButton.buttonViewModel]]" scoping-class-name="[[is]]" class="style-scope yt-creator-goal-set-up-flow-view-model">\n      </yt-button-view-model>\n      <yt-attributed-string id="description-disclosure" data="[[data.descriptionDisclosureText]]" class="style-scope yt-creator-goal-set-up-flow-view-model"></yt-attributed-string>\n    </div>\n  </div>\n  <div id="footer" class="style-scope yt-creator-goal-set-up-flow-view-model">\n    <yt-button-view-model id="[[startButtonId]]" data="[[getButtonViewModel(goalDescription)]]" scoping-class-name="[[is]]" class="style-scope yt-creator-goal-set-up-flow-view-model">\n    </yt-button-view-model>\n  </div>\n</div>\n');
a.content.insertBefore(_.w().content.cloneNode(!0),a.content.firstChild);var z=a.content,I=z.insertBefore;Yz0===void 0&&(Yz0=document.createElement("template"));var J=Yz0;I.call(z,J.content.cloneNode(!0),a.content.firstChild);return qzM=a};var vF=function(){var a=_.G.apply(this,arguments)||this;a.goal="CREATOR_GOALS_PURCHASE_TARGET_10_SC";a.goalDescription="";a.timer="CREATOR_GOAL_TIME_LIMIT_30_MINUTES";a.tier="CREATOR_GOALS_ELIGIBLE_PURCHASE_TYPE_TEAL_SC";a.startButtonId="start-button";a.exampleButtonId="example-button";return a};
_.b(vF,_.G);_.Z=vF.prototype;_.Z.getGoalDropdownItems=function(){var a,z;return(z=_.H((a=this.data)==null?void 0:a.purchaseTargetDropdown,wyM))==null?void 0:z.dropdownItems};
_.Z.getTimerDropdownItems=function(){var a,z;return(z=_.H((a=this.data)==null?void 0:a.timerDropdown,wyM))==null?void 0:z.dropdownItems};
_.Z.getColorDropdownItems=function(){var a,z;return(z=_.H((a=this.data)==null?void 0:a.colorDropdown,wyM))==null?void 0:z.dropdownItems};
_.Z.getDropdownItemText=function(a){var z;return(z=_.H(a,pyZ))==null?void 0:z.itemLabel};
_.Z.getDropdownItemValue=function(a){a=_.H(a,pyZ);return(a==null?void 0:a.timeLimit)||(a==null?void 0:a.purchaseTarget)||(a==null?void 0:a.eligiblePurchaseType)};
_.Z.updateFlowState=function(a){_.ZF(this.hostElement,"yt-flow-partial-update-flow-state-entity",[{creatorGoalSetUpFlowState:a}])};
_.Z.attached=function(){this.updateFlowState({goalDescription:this.goalDescription,targetPurchases:this.goal,goalDuration:this.timer,eligiblePurchaseType:this.tier})};
_.Z.updateGoalValue=function(a){this.goal=a.detail.value;this.updateFlowState({targetPurchases:this.goal})};
_.Z.onTextValueChanged=function(a){this.goalDescription=a.detail.value;this.updateFlowState({goalDescription:this.goalDescription})};
_.Z.updateTimerValue=function(a){this.timer=a.detail.value;this.updateFlowState({goalDuration:this.timer})};
_.Z.updateTierValue=function(a){this.tier=a.detail.value;this.updateFlowState({eligiblePurchaseType:this.tier})};
_.Z.getButtonViewModel=function(a){a=(a==null?void 0:a.length)>0?"BUTTON_VIEW_MODEL_STATE_ACTIVE":"BUTTON_VIEW_MODEL_STATE_DISABLED";var z,I=_.H((z=this.data)==null?void 0:z.startGoalButton,_.yw);return Object.assign({},I,{state:a})};
_.eH.Object.defineProperties(vF,{template:{configurable:!0,enumerable:!0,get:function(){return eZZ()}}});
_.L([_.Q(_.k.YtRendererBehavior),_.p("design:type",Object)],vF.prototype,"ytRendererBehavior",void 0);_.L([_.x(),_.p("design:type",Object)],vF.prototype,"data",void 0);_.L([_.x(),_.p("design:type",Object)],vF.prototype,"goal",void 0);_.L([_.x(),_.p("design:type",Object)],vF.prototype,"goalDescription",void 0);_.L([_.x(),_.p("design:type",Object)],vF.prototype,"timer",void 0);_.L([_.x(),_.p("design:type",Object)],vF.prototype,"tier",void 0);
_.L([_.x(),_.p("design:type",Object)],vF.prototype,"startButtonId",void 0);_.L([_.x(),_.p("design:type",Object)],vF.prototype,"exampleButtonId",void 0);_.L([_.dz({is:"yt-creator-goal-set-up-flow-view-model",disableElementRegistration:!0,noInjection:!0})],vF);_.D(vF,"yt-creator-goal-set-up-flow-view-model",function(){return eZZ()},{mode:_.K("live_chat_enable_sink_wrapper")?2:0});var aZ0;var j3E;var zTV;var IZY=function(){return _.G.apply(this,arguments)||this};
_.b(IZY,_.G);_.L([_.x(),_.p("design:type",Object)],IZY.prototype,"data",void 0);_.L([_.dz({is:"yt-survey-answer-card-renderer",disableElementRegistration:!0})],IZY);
_.D(IZY,"yt-survey-answer-card-renderer",function(){if(zTV===void 0){var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-survey-answer-card-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.ypc.flow.yt_survey_answer_card_renderer.yt.survey.answer.card.renderer.css.js--\x3e<yt-formatted-string id="answer-string" force-default-style="" split-lines="1" text="[[data.answerString]]" class="style-scope yt-survey-answer-card-renderer"></yt-formatted-string><yt-icon id="card-icon" icon="CHEVRON_RIGHT" class="style-scope yt-survey-answer-card-renderer"></yt-icon>');a.content.insertBefore(_.w().content.cloneNode(!0),
a.content.firstChild);var z=a.content,I=z.insertBefore;j3E===void 0&&(j3E=document.createElement("template"));var J=j3E;I.call(z,J.content.cloneNode(!0),a.content.firstChild);zTV=a}a=zTV;return a},{mode:2});var JCM;var rCz;var Gh=function(){return _.G.apply(this,arguments)||this};
_.b(Gh,_.G);_.Z=Gh.prototype;_.Z.onSelectedItemChanged=function(){this.selectedItem&&this.selectedItemChanged(this.selectedItem)};
_.Z.selectedItemChanged=function(a){_.ZF(this.hostElement,"yt-survey-flow-step-option-changed",[{feedbackTokens:[a.feedbackToken||""]}])};
_.Z.surveyAnswerCardRendererClicked=function(a){if(a.target&&_.H(a.model.item,M6f)){var z=a.target;a=_.H(a.model.item,M6f);a.onTapCommand?_.tR(z,[a.onTapCommand],z):this.data.onTapCommand&&_.tR(z,[this.data.onTapCommand],z);this.selectedItemChanged(a)}};
_.Z.checkIsCancellationStyle=function(a){return a==="SURVEY_FLOW_STEP_RENDERER_STYLE_CANCELLATION"};
_.Z.updateSelectedItemFromBinding=function(a){this.selectedItem=a.detail.value};
Gh.prototype.onSelectedItemChanged=Gh.prototype.onSelectedItemChanged;_.L([_.Q(_.k.YtRendererBehavior),_.p("design:type",Object)],Gh.prototype,"ytRendererBehavior",void 0);_.L([_.x(),_.p("design:type",Object)],Gh.prototype,"data",void 0);_.L([_.x(),_.p("design:type",Object)],Gh.prototype,"selectedItem",void 0);_.L([_.x({computed:"checkIsCancellationStyle(data.style)",reflectToAttribute:!0}),_.p("design:type",Boolean)],Gh.prototype,"isCancellationStyle",void 0);
_.L([_.O8("selectedItem"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],Gh.prototype,"onSelectedItemChanged",null);_.L([_.dz({is:"yt-survey-flow-step-renderer",disableElementRegistration:!0})],Gh);
_.D(Gh,"yt-survey-flow-step-renderer",function(){if(rCz===void 0){var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-survey-flow-step-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.ypc.flow.yt_survey_flow_step_renderer.yt.survey.flow.step.renderer.css.js--\x3e<yt-formatted-string id="question" force-default-style="" split-lines="1" text="[[data.question]]" class="style-scope yt-survey-flow-step-renderer">\n</yt-formatted-string>\n\n<template is="dom-if" if="[[isCancellationStyle]]" restamp="" class="style-scope yt-survey-flow-step-renderer">\n  <template is="dom-repeat" items="[[data.answerCards]]" as="item" class="style-scope yt-survey-flow-step-renderer">\n    <template is="dom-if" if="[[item.surveyAnswerCardRenderer]]" restamp="" class="style-scope yt-survey-flow-step-renderer">\n      <yt-survey-answer-card-renderer data="[[item.surveyAnswerCardRenderer]]" on-click="surveyAnswerCardRendererClicked" class="style-scope yt-survey-flow-step-renderer"></yt-survey-answer-card-renderer>\n    </template>\n  </template>\n</template>\n\n<template is="dom-if" if="[[!isCancellationStyle]]" restamp="" class="style-scope yt-survey-flow-step-renderer">\n  <tp-yt-paper-radio-group id="options" selected="[[selectedItem]]" on-selected-changed="updateSelectedItemFromBinding" class="style-scope yt-survey-flow-step-renderer">\n    <template is="dom-repeat" items="[[data.answerCards]]" class="style-scope yt-survey-flow-step-renderer">\n      <template is="dom-if" if="[[item.surveyAnswerCardRenderer]]" restamp="" class="style-scope yt-survey-flow-step-renderer">\n        <tp-yt-paper-radio-button id="radio" aria-label="[[getSimpleString(item.surveyAnswerCardRenderer.answerString)]]" name="[[item.surveyAnswerCardRenderer]]" no-ink="" class="style-scope yt-survey-flow-step-renderer">\n          <yt-formatted-string id="answer-string" force-default-style="" split-lines="1" text="[[item.surveyAnswerCardRenderer.answerString]]" class="style-scope yt-survey-flow-step-renderer">\n          </yt-formatted-string>\n        </tp-yt-paper-radio-button>\n      </template>\n    </template>\n  </tp-yt-paper-radio-group>\n</template>\n');a.content.insertBefore(_.w().content.cloneNode(!0),
a.content.firstChild);var z=a.content,I=z.insertBefore;JCM===void 0&&(JCM=document.createElement("template"));var J=JCM;I.call(z,J.content.cloneNode(!0),a.content.firstChild);rCz=a}a=rCz;return a},{mode:2});var $_=function(){var a=_.G.apply(this,arguments)||this;a.actionMap={"yt-survey-flow-step-option-changed":"handleSurveyFlowStepOptionChanged"};return a};
_.b($_,_.G);$_.prototype.handleSurveyFlowStepOptionChanged=function(a){this.ytdReduxBehavior.dispatch(_.rg({type:"YPC_UPDATE_SURVEY_FEEDBACK_DATA",payload:a}));_.ZF(this.hostElement,"yt-flow-partial-update-flow-state-entity",[{cancellationFlowState:{surveyFeedback:a}}])};
_.L([_.Q(_.Hc.YtActionHandlerBehavior),_.p("design:type",Object)],$_.prototype,"ytActionHandlerBehavior",void 0);_.L([_.Q(_.pV),_.p("design:type",Object)],$_.prototype,"ytdReduxBehavior",void 0);_.L([_.x(),_.p("design:type",Object)],$_.prototype,"data",void 0);_.L([_.U({disableElementRegistration:!0,is:"ytd-survey-flow-step-renderer"})],$_);
_.D($_,"ytd-survey-flow-step-renderer",function(){if(aZ0!==void 0)return aZ0;var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-survey-flow-step-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-survey-flow-step-renderer data="[[data]]" class="style-scope ytd-survey-flow-step-renderer"></yt-survey-flow-step-renderer>\n');a.content.insertBefore(_.w().content.cloneNode(!0),
a.content.firstChild);return aZ0=a},{mode:1});var jLV=_.im({avatarViewModel:_.ok,buttonViewModel:_.At,subscribeButtonViewModel:_.op,imageBannerViewModel:_.me});_.IG(IHe);var NoZ;
NoZ=_.ec(function(a){var z=a.data;var I=a.hideDivider;var J=a.isChannelInfoCard;a={};return _.B("yt-profile-identity-info-view-model",{class:"yt-profile-identity-info-view-model-wiz"},_.B("div",{class:_.B8("yt-profile-identity-info-view-model-wiz__frame",(a["yt-profile-identity-info-view-model-wiz--frame-with-no-channel-banner"]=function(){return!z().channelBanner},a))},_.B(PPE,{profileIdentityInfoData:z}),_.B("div",{class:"yt-profile-identity-info-view-model-wiz__channel-info-section"},_.B("div",{class:"yt-profile-identity-info-view-model-wiz__avatar"},
_.B(_.V0,{data:function(){return z().avatar}},{avatarViewModel:_.ok})),_.B(ZI4,{profileIdentityInfoData:z})),_.B(_.g,{cond:function(){return z().channelDescription},
then:function(r){var P={};return _.B("div",{class:_.B8((P["yt-profile-identity-info-view-model-wiz__channel-description-alternate"]=function(){return!(J==null||!J())},P["yt-profile-identity-info-view-model-wiz__channel-description"]=function(){return!(J==null?0:J())},P))},r)}}),_.B(CPG,{profileIdentityInfoData:z}),_.B(_.g,{cond:function(){return!(I==null?0:I())},
then:function(){return _.B("div",{class:"yt-profile-identity-info-view-model-wiz__divider"})}})))},"vf");
_.tpY=_.K("web_enable_sink_profile_card_batch_ks")?IHe:NoZ;_.uy0=_.K("web_enable_sink_profile_card_batch_ks")?_.fS(IHe):NoZ;NoZ.idomCompat=!0;
var CPG=_.ec(function(a){var z=a.profileIdentityInfoData;return _.B("div",{class:"yt-profile-identity-info-view-model-wiz__buttons"},_.B(_.se,{each:function(){return z().subscribeButton?[z().subscribeButton,z().channelAccess]:[z().channelAccess]}},function(I){return _.B("div",{class:"yt-profile-identity-info-view-model-wiz__wrap-button"},_.B("div",{class:"yt-profile-identity-info-view-model-wiz--button"},_.B(_.V0,{data:function(){return I}},{buttonViewModel:_.At,
subscribeButtonViewModel:_.op})))}))},"wf"),ZI4=_.ec(function(a){var z=a.profileIdentityInfoData;
return _.B("div",{class:"yt-profile-identity-info-view-model-wiz__trio"},_.B("div",{class:"yt-profile-identity-info-view-model-wiz__channel-name-frame"},_.B(EkZ,{profileIdentityInfoData:z}),_.B(_.V0,{data:function(){return z().threeDotMenu}},{buttonViewModel:_.At})),_.B(BoZ,{profileIdentityInfoData:z}))},"xf"),EkZ=_.ec(function(a){var z=a.profileIdentityInfoData;
return _.B("div",{class:"yt-profile-identity-info-view-model-wiz__channel-name-header"},_.B("div",{class:"yt-profile-identity-info-view-model-wiz__channel-name"},function(){return z().channelDisplayName}),_.B(_.g,{cond:function(){return z().verifiedOrOacBadge},
then:function(I){return _.B("div",{class:"yt-profile-identity-info-view-model-wiz__badge"},_.B(_.qp,{data:function(){return{thumbnails:[{url:I().badgeUrl}]}},
alt:"",targetWidth:14,targetHeight:14,preserveWidth:!0,preserveHeight:!0}))}}))},"yf"),PPE=_.ec(function(a){var z=a.profileIdentityInfoData;
return _.B("div",{class:"yt-profile-identity-info-view-model-wiz__channel-banner-container"},_.B(_.V0,{data:function(){var I=z().channelBanner;if(I)return{imageBannerViewModel:{image:I.image,style:"IMAGE_BANNER_STYLE_INSET"}}}},{imageBannerViewModel:function(I){return _.B("div",{class:"yt-profile-identity-info-view-model-wiz__channel-banner"},_.B(_.me,{data:I.data,
isPositionRelative:!0}))}}))},"zf"),BoZ=_.ec(function(a){var z=a.profileIdentityInfoData;
return _.B("div",{class:"yt-profile-identity-info-view-model-wiz__metadata"},_.B("div",{class:"yt-profile-identity-info-view-model-wiz__metadata-content-set"},_.B("div",{dir:"auto",class:"yt-profile-identity-info-view-model-wiz__metadata-handle-with-bold-font"},function(){return z().channelHandle}),_.B(_.g,{cond:function(){return z().channelPronouns&&z().channelHandle},
then:function(){return _.B("span",{class:"yt-profile-identity-info-view-model-wiz__metadata-delimiter"},"\u2022")}}),_.B("div",{dir:"auto",
class:"yt-profile-identity-info-view-model-wiz__metadata-pronouns"},function(){return z().channelPronouns})),_.B("div",{class:"yt-profile-identity-info-view-model-wiz__metadata-content-set"},_.B("div",{class:"yt-profile-identity-info-view-model-wiz__metadata-content"},function(){return z().leftOfBulletInfo}),_.B(_.g,{cond:function(){return z().leftOfBulletInfo&&z().rightOfBulletInfo},
then:function(){return _.B("span",{class:"yt-profile-identity-info-view-model-wiz__metadata-delimiter"},"\u2022")}}),_.B("div",{class:"yt-profile-identity-info-view-model-wiz__metadata-content"},function(){return z().rightOfBulletInfo})))},"Af");var gki;var XB=function(){return _.G.apply(this,arguments)||this};
_.b(XB,_.G);_.L([_.Q(_.Ms.YtComponentBehavior),_.p("design:type",Object)],XB.prototype,"ytComponentBehavior",void 0);_.L([_.x(),_.p("design:type",Object)],XB.prototype,"data",void 0);_.L([_.U({is:"ytd-channel-history-renderer",disableElementRegistration:!0})],XB);
_.D(XB,"ytd-channel-history-renderer",function(){if(gki!==void 0)return gki;var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-channel-history-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="contents" class="style-scope ytd-channel-history-renderer">\n  <yt-img-shadow id="image" fit="" hidden="[[!data.image]]" thumbnail="[[data.image]]" width="160" class="style-scope ytd-channel-history-renderer">\n  </yt-img-shadow>\n  <yt-formatted-string id="title" hidden="[[!data.title]]" text="[[data.title]]" class="style-scope ytd-channel-history-renderer">\n  </yt-formatted-string>\n  <yt-formatted-string id="description" hidden="[[!data.description]]" split-lines="" text="[[data.description]]" class="style-scope ytd-channel-history-renderer">\n  </yt-formatted-string>\n</div>');a.content.insertBefore(_.w().content.cloneNode(!0),
a.content.firstChild);return gki=a},{mode:1});var OIV;var fZY=function(){return _.G.apply(this,arguments)||this};
_.b(fZY,_.G);_.L([_.x(),_.p("design:type",Object)],fZY.prototype,"data",void 0);_.L([_.U({is:"ytd-feature-enablement-info-renderer",disableElementRegistration:!0})],fZY);
_.D(fZY,"ytd-feature-enablement-info-renderer",function(){if(OIV!==void 0)return OIV;var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-feature-enablement-info-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="contents" class="style-scope ytd-feature-enablement-info-renderer">\n  <yt-formatted-string id="title" hidden="[[!data.title]]" text="[[data.title]]" class="style-scope ytd-feature-enablement-info-renderer">\n  </yt-formatted-string>\n  <yt-formatted-string id="description" hidden="[[!data.description]]" text="[[data.description]]" class="style-scope ytd-feature-enablement-info-renderer">\n  </yt-formatted-string>\n</div>');a.content.insertBefore(_.w().content.cloneNode(!0),
a.content.firstChild);return OIV=a},{mode:1});var ACf;var s3Z;var Th=function(){var a=_.G.apply(this,arguments)||this;a.textBoxMaxLength=_.K("enable_tvod_campaign_code_integration")?15:12;return a};
_.b(Th,_.G);_.Z=Th.prototype;_.Z.dataChanged=function(){this.userInput=this.data.couponCode?this.data.couponCode:"";this.validate()};
_.Z.onSubmit=function(){var a=this.data.serviceEndpoint,z=_.H(a,_.er);z&&a&&(z.couponCode=this.userInput,_.ab().resolve(_.j6).resolveCommand(a,{form:{element:this.hostElement}}))};
_.Z.validate=function(){var a=!(!this.data||!this.data.couponCode||this.data.couponCode!==this.userInput);this.showTick=a&&!this.data.errorMessage;this.showErrorMessage=a&&!!this.data.errorMessage;this.hideApplyButton=!this.userInput||this.showTick||this.showErrorMessage;this.disableApplyButton=_.K("enable_tvod_campaign_code_integration")?this.userInput.match(/^[\d\w]{5,15}$/)===null:this.userInput.match(/^[\d\w]{12}$/)===null};
_.Z.computeStyle=function(a){return a};
_.Z.computeShowValidationBelowInput=function(a){return a!=="YPC_COUPON_RENDERER_STYLE_END_ALIGN"};
_.Z.updateUserInputFromBinding=function(a){this.userInput=a.currentTarget.value};
_.Z.updateShowErrorMessageFromBinding=function(a){this.showErrorMessage=a.detail.value};
_.eH.Object.defineProperties(Th.prototype,{validationState:{configurable:!0,enumerable:!0,get:function(){return this.showTick?"success":this.showErrorMessage?"error":this.userInput?"user-input":"default"}}});
Th.prototype.dataChanged=Th.prototype.dataChanged;_.L([_.Q(_.k.YtRendererBehavior),_.p("design:type",Object)],Th.prototype,"ytRendererBehavior",void 0);_.L([_.x(),_.p("design:type",Object)],Th.prototype,"data",void 0);_.L([_.x(),_.p("design:type",String)],Th.prototype,"userInput",void 0);_.L([_.x(),_.p("design:type",Boolean)],Th.prototype,"disableApplyButton",void 0);_.L([_.x(),_.p("design:type",Boolean)],Th.prototype,"hideApplyButton",void 0);
_.L([_.x(),_.p("design:type",Boolean)],Th.prototype,"hideErrorMessage",void 0);_.L([_.x(),_.p("design:type",Boolean)],Th.prototype,"showTick",void 0);_.L([_.x(),_.p("design:type",Boolean)],Th.prototype,"showErrorMessage",void 0);_.L([_.x({reflectToAttribute:!0,computed:"computeStyle(data.style)"}),_.p("design:type",String)],Th.prototype,"couponStyle",void 0);
_.L([_.x({reflectToAttribute:!0,computed:"computeShowValidationBelowInput(data.style)"}),_.p("design:type",Boolean)],Th.prototype,"showValidationBelowInput",void 0);_.L([_.x(),_.p("design:type",Object)],Th.prototype,"textBoxMaxLength",void 0);_.L([_.Fe("data"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],Th.prototype,"dataChanged",null);
_.L([_.S("showTick","showErrorMessage","userInput"),_.p("design:type",String),_.p("design:paramtypes",[])],Th.prototype,"validationState",null);_.L([_.U({disableElementRegistration:!0,is:"ytd-ypc-coupon-renderer"})],Th);
_.D(Th,"ytd-ypc-coupon-renderer",function(){if(s3Z!==void 0)return s3Z;var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-ypc-coupon-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="style-scope ytd-ypc-coupon-renderer">\n  <tp-yt-paper-input-container class$="[[validationState]] style-scope ytd-ypc-coupon-renderer" invalid="[[showErrorMessage]]" use-v2-underline="" on-invalid-changed="updateShowErrorMessageFromBinding">\n    <input id="input" maxlength$="[[textBoxMaxLength]]" autocomplete="off" placeholder="[[data.boxHint]]" value="[[userInput]]" on-keyup="validate" slot="input" on-input="updateUserInputFromBinding" class="style-scope ytd-ypc-coupon-renderer">\n    <tp-yt-paper-input-error slot="add-on" aria-live="assertive" hidden="[[!showValidationBelowInput]]" class="style-scope ytd-ypc-coupon-renderer">\n      [[data.errorMessage]]\n    </tp-yt-paper-input-error>\n  </tp-yt-paper-input-container>\n</div>\n\n<div id="validation" class="style-scope ytd-ypc-coupon-renderer">\n  <div hidden="[[showValidationBelowInput]]" class="style-scope ytd-ypc-coupon-renderer">\n    <div class$="[[validationState]] style-scope ytd-ypc-coupon-renderer" hidden="[[!showErrorMessage]]">\n      [[data.errorMessage]]\n    </div>\n    <div class$="[[validationState]] style-scope ytd-ypc-coupon-renderer" hidden="[[!showTick]]">\n      [[data.successMessage]]\n    </div>\n  </div>\n  <yt-icon-button class="confirmation style-scope ytd-ypc-coupon-renderer" hidden="[[!showTick]]" noink="">\n    <yt-icon icon="check" class="style-scope ytd-ypc-coupon-renderer"></yt-icon>\n  </yt-icon-button>\n</div>\n\n<ytd-button-renderer id="apply" data="[[data.applyCoupon.buttonRenderer]]" disabled="[[disableApplyButton]]" hidden="[[hideApplyButton]]" on-tap="onSubmit" class="style-scope ytd-ypc-coupon-renderer">\n</ytd-button-renderer>\n');a.content.insertBefore(_.w().content.cloneNode(!0),
a.content.firstChild);return s3Z=a},{mode:1});var d8=function(){return _.G.apply(this,arguments)||this};
_.b(d8,_.G);d8.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"}}}};
d8.prototype.computeStyle=function(a){return a};
_.L([_.Q(_.k.YtRendererBehavior),_.p("design:type",Object)],d8.prototype,"ytRendererBehavior",void 0);_.L([_.Q(_.u4.YtRendererstamperBehavior),_.p("design:type",Object)],d8.prototype,"ytRendererstamperBehavior",void 0);_.L([_.x(),_.p("design:type",Object)],d8.prototype,"data",void 0);_.L([_.x({reflectToAttribute:!0,computed:"computeStyle(data.style)"}),_.p("design:type",String)],d8.prototype,"buttonStyle",void 0);_.L([_.U({is:"ytd-flow-bottom-bar-renderer",disableElementRegistration:!0})],d8);
_.D(d8,"ytd-flow-bottom-bar-renderer",function(){if(ACf!==void 0)return ACf;var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-flow-bottom-bar-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="coupon-renderer" hidden="[[!data.couponRenderer]]" class="style-scope ytd-flow-bottom-bar-renderer"></div>\n<div id="secondary-button" hidden="[[!data.secondaryButton]]" class="style-scope ytd-flow-bottom-bar-renderer"></div>\n<div id="primary-button" hidden="[[!data.primaryButton]]" class="style-scope ytd-flow-bottom-bar-renderer"></div>\n');
a.content.insertBefore(_.w().content.cloneNode(!0),a.content.firstChild);return ACf=a},{mode:1});var nkE;var Kle;var Fl0;var WF=function(){return _.G.apply(this,arguments)||this};
_.b(WF,_.G);WF.prototype.configureRendererStamper=function(){return{"data.trailingButtons":{id:"trailing-buttons",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.backButton":{id:"back-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
WF.prototype.focus=function(a){this.title&&_.kk(this.title,a)};
_.L([_.Q(_.k.YtRendererBehavior),_.p("design:type",Object)],WF.prototype,"ytRendererBehavior",void 0);_.L([_.Q(_.u4.YtRendererstamperBehavior),_.p("design:type",Object)],WF.prototype,"ytRendererstamperBehavior",void 0);_.L([_.x(),_.p("design:type",Object)],WF.prototype,"data",void 0);_.L([_.A3("#title"),_.p("design:type",HTMLElement)],WF.prototype,"title",void 0);_.L([_.U({is:"ytd-flow-top-bar-renderer",disableElementRegistration:!0})],WF);
_.D(WF,"ytd-flow-top-bar-renderer",function(){if(Fl0!==void 0)return Fl0;var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-flow-top-bar-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="back-button" class="style-scope ytd-flow-top-bar-renderer"></div>\n<div id="content" class="style-scope ytd-flow-top-bar-renderer">\n  <yt-formatted-string id="title" text="[[data.title]]" class="style-scope ytd-flow-top-bar-renderer"></yt-formatted-string>\n  <yt-formatted-string id="subtitle" text="[[data.subtitle]]" class="style-scope ytd-flow-top-bar-renderer"></yt-formatted-string>\n</div>\n<div id="trailing-buttons" class="style-scope ytd-flow-top-bar-renderer"></div>\n');
a.content.insertBefore(_.w().content.cloneNode(!0),a.content.firstChild);return Fl0=a},{mode:1});var HIz;var bIf;var hTz;var oF=function(){return _.G.apply(this,arguments)||this};
_.b(oF,_.G);oF.prototype.freeTextValueChanged=function(){_.ZF(this.hostElement,"yt-free-text-flow-step-input-changed",[{freeTextAnswers:[{answer:this.freeTextValue}]}])};
oF.prototype.updateFreeTextValueFromBinding=function(a){this.freeTextValue=a.detail.value};
_.eH.Object.defineProperties(oF.prototype,{characterLimitClass:{configurable:!0,enumerable:!0,get:function(){var a,z,I=(z=(a=this.data)==null?void 0:a.responseMaxLength)!=null?z:500,J;return((J=this.freeTextValue)!=null?J:"").length>=I?"maxed-out":""}}});
oF.prototype.freeTextValueChanged=oF.prototype.freeTextValueChanged;_.L([_.Q(_.k.YtRendererBehavior),_.p("design:type",Object)],oF.prototype,"ytRendererBehavior",void 0);_.L([_.x(),_.p("design:type",Object)],oF.prototype,"data",void 0);_.L([_.x(),_.p("design:type",String)],oF.prototype,"freeTextValue",void 0);_.L([_.A3("#user-input"),_.p("design:type",HTMLTextAreaElement)],oF.prototype,"input",void 0);
_.L([_.S("freeTextValue"),_.p("design:type",Object),_.p("design:paramtypes",[])],oF.prototype,"characterLimitClass",null);_.L([_.O8("freeTextValue"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],oF.prototype,"freeTextValueChanged",null);_.L([_.dz({is:"yt-free-text-input-flow-step-renderer",disableElementRegistration:!0})],oF);
_.D(oF,"yt-free-text-input-flow-step-renderer",function(){if(hTz===void 0){var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-free-text-input-flow-step-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.ypc.flow.yt_free_text_input_flow_step_renderer.yt.free.text.input.flow.step.renderer.css.js--\x3e<div id="question-container" class="style-scope yt-free-text-input-flow-step-renderer"><yt-formatted-string id="question" split-lines="1" text="[[data.question]]" class="style-scope yt-free-text-input-flow-step-renderer"></yt-formatted-string></div><div id="input-area" class="style-scope yt-free-text-input-flow-step-renderer"><tp-yt-paper-textarea id="user-input" class$="[[characterLimitClass]] style-scope yt-free-text-input-flow-step-renderer" char-counter="" label="[[getSimpleString(data.questionExplanation)]]" maxlength="[[data.responseMaxLength]]" placeholder="[[data.placeholderText]]" required="" rows="2" value="[[freeTextValue]]" on-value-changed="updateFreeTextValueFromBinding"></tp-yt-paper-textarea></div>');a.content.insertBefore(_.w().content.cloneNode(!0),
a.content.firstChild);var z=a.content,I=z.insertBefore;bIf===void 0&&(bIf=document.createElement("template"));var J=bIf;I.call(z,J.content.cloneNode(!0),a.content.firstChild);hTz=a}a=hTz;return a},{mode:2});var UD=function(){var a=_.G.apply(this,arguments)||this;a.actionMap={"yt-free-text-flow-step-input-changed":"handleFreeTextFlowStepInputChanged"};return a};
_.b(UD,_.G);UD.prototype.handleFreeTextFlowStepInputChanged=function(a){_.ZF(this.hostElement,"yt-flow-partial-update-flow-state-entity",[{cancellationFlowState:{surveyFeedback:a}}])};
_.L([_.Q(_.Hc.YtActionHandlerBehavior),_.p("design:type",Object)],UD.prototype,"ytActionHandlerBehavior",void 0);_.L([_.Q(_.pV),_.p("design:type",Object)],UD.prototype,"ytdReduxBehavior",void 0);_.L([_.x(),_.p("design:type",Object)],UD.prototype,"data",void 0);_.L([_.U({disableElementRegistration:!0,is:"ytd-free-text-input-flow-step-renderer"})],UD);
_.D(UD,"ytd-free-text-input-flow-step-renderer",function(){if(HIz!==void 0)return HIz;var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-free-text-input-flow-step-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-free-text-input-flow-step-renderer data="[[data]]" class="style-scope ytd-free-text-input-flow-step-renderer"></yt-free-text-input-flow-step-renderer>\n');a.content.insertBefore(_.w().content.cloneNode(!0),
a.content.firstChild);return HIz=a},{mode:1});var VpZ;var Q3E;var SnV=function(){return _.G.apply(this,arguments)||this};
_.b(SnV,_.G);_.L([_.x(),_.p("design:type",Object)],SnV.prototype,"data",void 0);_.L([_.U({disableElementRegistration:!0,is:"ytd-metadata-line-renderer"})],SnV);
_.D(SnV,"ytd-metadata-line-renderer",function(){if(Q3E!==void 0)return Q3E;var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-metadata-line-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="line-wrapper" class="style-scope ytd-metadata-line-renderer">\n  <ytd-badge-supported-renderer id="badges" badges="[[data.badge]]" hidden="[[!data.badge]]" class="style-scope ytd-metadata-line-renderer">\n  </ytd-badge-supported-renderer>\n  <yt-formatted-string id="text" text="[[data.text]]" class="style-scope ytd-metadata-line-renderer"></yt-formatted-string>\n</div>\n');a.content.insertBefore(_.w().content.cloneNode(!0),
a.content.firstChild);return Q3E=a},{mode:1});var DW=function(){return _.G.apply(this,arguments)||this};
_.b(DW,_.G);DW.prototype.configureRendererStamper=function(){return{"data.metadataLines":{id:"metadata-lines",mapping:{metadataLineRenderer:{component:"ytd-metadata-line-renderer"}}}}};
_.L([_.Q(_.k.YtRendererBehavior),_.p("design:type",Object)],DW.prototype,"ytRendererBehavior",void 0);_.L([_.Q(_.u4.YtRendererstamperBehavior),_.p("design:type",Object)],DW.prototype,"ytRendererstamperBehavior",void 0);_.L([_.x(),_.p("design:type",Object)],DW.prototype,"data",void 0);_.L([_.x({reflectToAttribute:!0}),_.p("design:type",Boolean)],DW.prototype,"isMasthead",void 0);_.L([_.U({disableElementRegistration:!0,is:"ytd-media-product-renderer"})],DW);
_.D(DW,"ytd-media-product-renderer",function(){if(VpZ!==void 0)return VpZ;var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-media-product-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="product" class="style-scope ytd-media-product-renderer">\n  <div id="image" hidden="[[!data.thumbnail]]" class="style-scope ytd-media-product-renderer">\n    <yt-img-shadow id="thumbnail" height="90" thumbnail="[[data.thumbnail]]" class="style-scope ytd-media-product-renderer"></yt-img-shadow>\n  </div>\n  <div id="metadata" class="style-scope ytd-media-product-renderer">\n    <yt-formatted-string id="title" text="[[data.title]]" class="style-scope ytd-media-product-renderer"></yt-formatted-string>\n    <div id="metadata-lines" class="style-scope ytd-media-product-renderer"></div>\n  </div>\n</div>\n');
a.content.insertBefore(_.w().content.cloneNode(!0),a.content.firstChild);return VpZ=a},{mode:1});var iIZ;var RF=function(){return _.G.apply(this,arguments)||this};
_.b(RF,_.G);RF.prototype.attached=function(){this.billboardImage.notifyOnLoaded=!0};
RF.prototype.onBillboardImageLoaded=function(){_.PA(this.hostElement,"yt-refit")};
RF.prototype.onBillboardImageLoaded=RF.prototype.onBillboardImageLoaded;_.L([_.Q(_.k.YtRendererBehavior),_.p("design:type",Object)],RF.prototype,"ytRendererBehavior",void 0);_.L([_.x(),_.p("design:type",Object)],RF.prototype,"data",void 0);_.L([_.A3("#billboardImage"),_.p("design:type",Object)],RF.prototype,"billboardImage",void 0);_.L([_.gz("yt-img-shadow-loaded"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],RF.prototype,"onBillboardImageLoaded",null);
_.L([_.U({disableElementRegistration:!0,is:"ytd-billboard-masthead-renderer"})],RF);
_.D(RF,"ytd-billboard-masthead-renderer",function(){if(iIZ!==void 0)return iIZ;var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-billboard-masthead-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-img-shadow id="billboardImage" class="billboard with-placeholder style-scope ytd-billboard-masthead-renderer" fit="" thumbnail="[[data.billboard]]">\n</yt-img-shadow>\n');a.content.insertBefore(_.w().content.cloneNode(!0),
a.content.firstChild);return iIZ=a},{mode:1});var xVe;var Lr=function(){var a=_.G.apply(this,arguments)||this;a.smallSize=!1;return a};
_.b(Lr,_.G);_.L([_.Q(_.Ms.YtComponentBehavior),_.p("design:type",Object)],Lr.prototype,"ytComponentBehaviorType",void 0);_.L([_.x(),_.p("design:type",Object)],Lr.prototype,"data",void 0);_.L([_.x({reflectToAttribute:!0}),_.p("design:type",Object)],Lr.prototype,"smallSize",void 0);_.L([_.U({disableElementRegistration:!0,is:"ytd-bullet-formatted-string"})],Lr);
_.D(Lr,"ytd-bullet-formatted-string",function(){if(xVe!==void 0)return xVe;var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-bullet-formatted-string--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-icon class="bullet-icon style-scope ytd-bullet-formatted-string" hidden="[[!data.icon.iconType]]" icon="[[computeIcon_(data.icon)]]">\n</yt-icon>\n<yt-formatted-string class="text style-scope ytd-bullet-formatted-string" split-lines="true" text="[[data.text]]">\n</yt-formatted-string>\n');a.content.insertBefore(_.w().content.cloneNode(!0),
a.content.firstChild);return xVe=a},{mode:1});var vkG;var li=function(){return _.G.apply(this,arguments)||this};
_.b(li,_.G);li.prototype.configureRendererStamper=function(){return{"data.product":{id:"product",mapping:{mediaProductRenderer:"ytd-media-product-renderer"}}}};
_.L([_.Q(_.k.YtRendererBehavior),_.p("design:type",Object)],li.prototype,"ytRendererBehavior",void 0);_.L([_.Q(_.u4.YtRendererstamperBehavior),_.p("design:type",Object)],li.prototype,"ytRendererstamperBehavior",void 0);_.L([_.x(),_.p("design:type",Object)],li.prototype,"data",void 0);_.L([_.U({disableElementRegistration:!0,is:"ytd-offer-detail-renderer"})],li);
_.D(li,"ytd-offer-detail-renderer",function(){if(vkG!==void 0)return vkG;var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-offer-detail-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-formatted-string class="description style-scope ytd-offer-detail-renderer" split-lines="true" text="[[data.description]]">\n</yt-formatted-string>\n<div id="product" hidden="[[!data.product]]" class="style-scope ytd-offer-detail-renderer"></div>\n<div class="benefits style-scope ytd-offer-detail-renderer">\n    <template is="dom-repeat" items="[[data.benefits]]" as="benefit" class="style-scope ytd-offer-detail-renderer">\n      <ytd-bullet-formatted-string class="benefit style-scope ytd-offer-detail-renderer" data="[[benefit]]">\n      </ytd-bullet-formatted-string>\n    </template>\n</div>\n<yt-formatted-string class="terms style-scope ytd-offer-detail-renderer" force-default-style="" text="[[data.terms]]">\n</yt-formatted-string>\n');a.content.insertBefore(_.w().content.cloneNode(!0),
a.content.firstChild);return vkG=a},{mode:1});var GWY;var pr=function(){return _.G.apply(this,arguments)||this};
_.b(pr,_.G);pr.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"}}}};
_.L([_.Q(_.k.YtRendererBehavior),_.p("design:type",Object)],pr.prototype,"ytRendererBehavior",void 0);_.L([_.Q(_.u4.YtRendererstamperBehavior),_.p("design:type",Object)],pr.prototype,"ytRendererstamperBehavior",void 0);_.L([_.x(),_.p("design:type",Object)],pr.prototype,"data",void 0);_.L([_.U({disableElementRegistration:!0,is:"ytd-offer-detail-step-renderer"})],pr);
_.D(pr,"ytd-offer-detail-step-renderer",function(){if(GWY!==void 0)return GWY;var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-offer-detail-step-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="masthead" class="style-scope ytd-offer-detail-step-renderer"></div>\n<div id="body" class="style-scope ytd-offer-detail-step-renderer"></div>\n\n\n');a.content.insertBefore(_.w().content.cloneNode(!0),
a.content.firstChild);return GWY=a},{mode:1});var $Vi;var w8=function(){var a=_.G.apply(this,arguments)||this;a.isInOfferModule=!1;return a};
_.b(w8,_.G);_.Z=w8.prototype;_.Z.computeHasEndpoint=function(){var a;return!((a=this.data)==null||!a.onClickCommand)};
_.Z.dataChanged=function(){var a;if((a=this.data)==null?0:a.onClickCommand)this.hostElement.addEventListener("click",this.handleClickEvent),this.hostElement.addEventListener("keydown",this.onContentKeyDown),this.hostElement.addEventListener("keyup",this.onContentKeyUp),this.hostElement.setAttribute("tabindex","0"),this.hostElement.setAttribute("role","link")};
_.Z.detached=function(){var a;if((a=this.data)==null?0:a.onClickCommand)this.hostElement.removeEventListener("click",this.handleClickEvent),this.hostElement.removeEventListener("keydown",this.onContentKeyDown),this.hostElement.removeEventListener("keyup",this.onContentKeyUp)};
_.Z.handleClickEvent=function(){var a;if((a=this.data)==null?0:a.onClickCommand){var z;this.componentBehavior.resolveCommand((z=this.data)==null?void 0:z.onClickCommand)}};
_.Z.onContentKeyDown=function(a){a.key==="Enter"?this.handleClickEvent(a):a.key===" "&&a.preventDefault()};
_.Z.onContentKeyUp=function(a){a.key===" "&&this.handleClickEvent(a)};
w8.prototype.dataChanged=w8.prototype.dataChanged;_.L([_.Q(_.k.YtRendererBehavior),_.p("design:type",Object)],w8.prototype,"ytRendererBehavior",void 0);_.L([_.Q(_.Ms.YtComponentBehavior),_.p("design:type",Object)],w8.prototype,"componentBehavior",void 0);_.L([_.x(),_.p("design:type",Object)],w8.prototype,"data",void 0);_.L([_.x({computed:"computeHasEndpoint(data)",reflectToAttribute:!0}),_.p("design:type",Boolean)],w8.prototype,"hasEndpoint",void 0);
_.L([_.x({reflectToAttribute:!0}),_.p("design:type",Object)],w8.prototype,"isInOfferModule",void 0);_.L([_.O8("data"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],w8.prototype,"dataChanged",null);_.L([_.U({disableElementRegistration:!0,is:"ytd-channel-masthead-renderer"})],w8);
_.D(w8,"ytd-channel-masthead-renderer",function(){if($Vi!==void 0)return $Vi;var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-channel-masthead-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="content" class="style-scope ytd-channel-masthead-renderer">\n  <yt-image class="channel-masthead style-scope ytd-channel-masthead-renderer" data="[[data.image]]" height="1" width="1">\n  </yt-image>\n  <div class="text style-scope ytd-channel-masthead-renderer">\n    <yt-attributed-string class="title style-scope ytd-channel-masthead-renderer" data="[[data.title]]">\n    </yt-attributed-string>\n    <yt-attributed-string class="subtitle style-scope ytd-channel-masthead-renderer" data="[[data.subtitle]]">\n    </yt-attributed-string>\n  </div>\n</div>');a.content.insertBefore(_.w().content.cloneNode(!0),
a.content.firstChild);return $Vi=a},{mode:1});var XLz;var mI=function(){var a=_.G.apply(this,arguments)||this;a.thumbnailObjectFit="CONTAIN";a.thumbnailObjectPosition="LEFT";a.isExpanded=!1;return a};
_.b(mI,_.G);_.Z=mI.prototype;_.Z.configureRendererStamper=function(){return{data:{id:"thumbnail",mapping:{thumbnail:{component:"yt-img-shadow",properties:{thumbnail:"[[data.thumbnail]]",objectFit:"[[thumbnailObjectFit]]",objectPosition:"[[thumbnailObjectPosition]]"}}}}}};
_.Z.dataChanged=function(){this.resetStates()};
_.Z.computeisTapOnOfferInfoContainerEnabled=function(){var a;return((a=this.data)==null?void 0:a.layoutType)==="CARD_LAYOUT_TYPE_COMPACT"};
_.Z.onExpandBtnClick=function(){var a,z=_.H((a=this.data)==null?void 0:a.showMoreButtonRenderer,cPY);z&&_.KJ(_.Kw(),z.trackingParams);this.isExpanded=!this.isExpanded};
_.Z.onOfferInfoClick=function(a){this.isTapOnOfferInfoContainerEnabled&&(_.qK(_.ch(a)||[],this.hostElement,["A".toString(),"BUTTON".toString()])||_.ek(_.ch(a)||[],this.hostElement,["expand-button"])||this.executeTapCommand())};
_.Z.onBottomBarClick=function(){this.executeTapCommand()};
_.Z.executeTapCommand=function(){var a,z=(a=this.data)==null?void 0:a.tapCommand;z&&this.ytComponentBehavior.resolveCommand(z)};
_.Z.resetStates=function(){this.isExpanded=!1};
_.eH.Object.defineProperties(mI.prototype,{hasThumbnail:{configurable:!0,enumerable:!0,get:function(){var a;return!((a=this.data)==null||!a.thumbnail)}},
enableExpandButton:{configurable:!0,enumerable:!0,get:function(){var a=!(!this.showMoreButtonTitle||!this.showLessButtonTitle),z,I,J;return((z=this.data)==null?void 0:z.styleType)==="CARD_STYLE_TYPE_INTERACTIVE_CARD"&&a&&!!((I=this.data)==null?0:(J=I.benefits)==null?0:J.length)}},
enableOfferContentIcon:{configurable:!0,enumerable:!0,get:function(){var a;return((a=this.data)==null?void 0:a.layoutType)==="CARD_LAYOUT_TYPE_COMPACT"&&!this.enableExpandButton}},
showMoreButtonTitle:{configurable:!0,enumerable:!0,get:function(){var a,z,I;return((z=_.H((a=this.data)==null?void 0:a.showMoreButtonRenderer,cPY))==null?void 0:z.showMoreButtonTitle)||((I=this.data)==null?void 0:I.showMoreButtonTitle)}},
showLessButtonTitle:{configurable:!0,enumerable:!0,get:function(){var a,z,I;return((z=_.H((a=this.data)==null?void 0:a.showMoreButtonRenderer,cPY))==null?void 0:z.showLessButtonTitle)||((I=this.data)==null?void 0:I.showLessButtonTitle)}},
expandedBtnText:{configurable:!0,enumerable:!0,get:function(){if(this.isExpanded){var a;return(a=this.showLessButtonTitle)!=null?a:""}var z;return(z=this.showMoreButtonTitle)!=null?z:""}},
enableBottomBar:{configurable:!0,enumerable:!0,get:function(){var a,z,I;return((a=this.data)==null?void 0:a.layoutType)==="CARD_LAYOUT_TYPE_FULL"&&!!(((z=this.data)==null?0:z.footerTitle)||((I=this.data)==null?0:I.footerSubtitle))}}});
mI.prototype.dataChanged=mI.prototype.dataChanged;_.L([_.Q(_.Ms.YtComponentBehavior),_.p("design:type",Object)],mI.prototype,"ytComponentBehavior",void 0);_.L([_.Q(_.k.YtRendererBehavior),_.p("design:type",Object)],mI.prototype,"ytRendererBehavior",void 0);_.L([_.Q(_.u4.YtRendererstamperBehavior),_.p("design:type",Object)],mI.prototype,"ytRendererstamperBehavior",void 0);_.L([_.x(),_.p("design:type",String)],mI.prototype,"thumbnailObjectFit",void 0);
_.L([_.x(),_.p("design:type",String)],mI.prototype,"thumbnailObjectPosition",void 0);_.L([_.x({reflectToAttribute:!0,computed:"computeisTapOnOfferInfoContainerEnabled(data)"}),_.p("design:type",Boolean)],mI.prototype,"isTapOnOfferInfoContainerEnabled",void 0);_.L([_.x(),_.p("design:type",Object)],mI.prototype,"isExpanded",void 0);_.L([_.x(),_.p("design:type",Object)],mI.prototype,"data",void 0);_.L([_.x({computed:"computeIcon_(data.footerIcon)"}),_.p("design:type",String)],mI.prototype,"icon",void 0);
_.L([_.Fe("data"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],mI.prototype,"dataChanged",null);_.L([_.S("data.thumbnail"),_.p("design:type",Boolean),_.p("design:paramtypes",[])],mI.prototype,"hasThumbnail",null);_.L([_.S("showMoreButtonTitle","showLessButtonTitle","data.styleType","data.benefits"),_.p("design:type",Boolean),_.p("design:paramtypes",[])],mI.prototype,"enableExpandButton",null);
_.L([_.S("data"),_.p("design:type",Boolean),_.p("design:paramtypes",[])],mI.prototype,"enableOfferContentIcon",null);_.L([_.S("data.showMoreButtonRenderer","data.showMoreButtonTitle"),_.p("design:type",Object),_.p("design:paramtypes",[])],mI.prototype,"showMoreButtonTitle",null);_.L([_.S("data.showMoreButtonRenderer","data.showLessButtonTitle"),_.p("design:type",Object),_.p("design:paramtypes",[])],mI.prototype,"showLessButtonTitle",null);
_.L([_.S("isExpanded","showMoreButtonRenderer","showLessButtonTitle"),_.p("design:type",String),_.p("design:paramtypes",[])],mI.prototype,"expandedBtnText",null);_.L([_.S("data"),_.p("design:type",Boolean),_.p("design:paramtypes",[])],mI.prototype,"enableBottomBar",null);_.L([_.U({disableElementRegistration:!0,is:"ytd-offer-card-renderer"})],mI);
_.D(mI,"ytd-offer-card-renderer",function(){if(XLz!==void 0)return XLz;var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-offer-card-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="offer-card style-scope ytd-offer-card-renderer" id="offer-card">\n  \n  <div class="top-banner style-scope ytd-offer-card-renderer" id="top-banner" hidden="[[!data.topBannerImage]]">\n    <yt-img-shadow class="top-banner-image style-scope ytd-offer-card-renderer" object-fit="COVER" thumbnail="[[data.topBannerImage]]">\n    </yt-img-shadow>\n  </div>\n  <div class="offer-info style-scope ytd-offer-card-renderer" id="offer-info" on-click="onOfferInfoClick">\n    \n    <div class="thumbnail style-scope ytd-offer-card-renderer" id="thumbnail" hidden="[[!hasThumbnail]]"></div>\n    <div class="description-section style-scope ytd-offer-card-renderer">\n      <div class="text style-scope ytd-offer-card-renderer">\n        <yt-formatted-string class="title style-scope ytd-offer-card-renderer" text="[[data.title]]">\n        </yt-formatted-string>\n        <yt-formatted-string class="description style-scope ytd-offer-card-renderer" split-lines="true" text="[[data.description]]">\n        </yt-formatted-string>\n      </div>\n      <button class="expand-button style-scope ytd-offer-card-renderer" id="expand-button" hidden="[[!enableExpandButton]]" on-click="onExpandBtnClick" aria-label="[[expandedBtnText]]">\n        <span class="style-scope ytd-offer-card-renderer">[[expandedBtnText]]</span>\n      </button>\n      <div class="offer-content-icon-div style-scope ytd-offer-card-renderer" id="offer-content-icon-div" hidden="[[!enableOfferContentIcon]]">\n        <yt-icon id="offer-content-icon" class="offer-content-icon style-scope ytd-offer-card-renderer" icon="[[icon]]">\n        </yt-icon>\n      </div>\n    </div>\n    \n    <div class="benefits style-scope ytd-offer-card-renderer" id="benefits" hidden="[[!isExpanded]]">\n      <template is="dom-repeat" items="[[data.benefits]]" as="benefit" class="style-scope ytd-offer-card-renderer">\n        <ytd-bullet-formatted-string class="benefit style-scope ytd-offer-card-renderer" data="[[benefit]]" small-size="true">\n        </ytd-bullet-formatted-string>\n      </template>\n    </div>\n  </div>\n  \n  <button class="bottom-bar style-scope ytd-offer-card-renderer" id="bottom-bar" hidden="[[!enableBottomBar]]" on-click="onBottomBarClick" aria-label="[[data.footerTitle]]">\n    <div class="bottom-bar-info style-scope ytd-offer-card-renderer">\n      <yt-formatted-string class="bottom-bar-title style-scope ytd-offer-card-renderer" text="[[data.footerTitle]]"></yt-formatted-string>\n      <yt-formatted-string class="bottom-bar-subtitle style-scope ytd-offer-card-renderer" text="[[data.footerSubtitle]]"></yt-formatted-string>\n    </div>\n    <yt-icon class="icon style-scope ytd-offer-card-renderer" icon="[[icon]]"></yt-icon>\n  </button>\n</div>\n');a.content.insertBefore(_.w().content.cloneNode(!0),
a.content.firstChild);return XLz=a},{mode:1});var Toe;var yu=function(){return _.G.apply(this,arguments)||this};
_.b(yu,_.G);yu.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"}}}};
yu.prototype.onClick=function(a){if(!_.qK(a.composedPath()||[],this.hostElement,["A".toString()])){var z,I;if((a=(I=_.H((z=this.data)==null?void 0:z.actionButton,_.lc))==null?void 0:I.command)&&!this.ytComponentBehavior.resolveCommand(a)){var J;(J=_.Kw())==null||J.clickCommand(a);_.ab().resolve(_.j6).resolveCommand(a,{form:{element:this.hostElement}})}}};
_.L([_.Q(_.Ms.YtComponentBehavior),_.p("design:type",Object)],yu.prototype,"ytComponentBehavior",void 0);_.L([_.Q(_.k.YtRendererBehavior),_.p("design:type",Object)],yu.prototype,"ytRendererBehavior",void 0);_.L([_.Q(_.u4.YtRendererstamperBehavior),_.p("design:type",Object)],yu.prototype,"ytRendererstamperBehavior",void 0);_.L([_.x(),_.p("design:type",Object)],yu.prototype,"data",void 0);_.L([_.U({disableElementRegistration:!0,is:"ytd-offer-content-renderer"})],yu);
_.D(yu,"ytd-offer-content-renderer",function(){if(Toe!==void 0)return Toe;var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-offer-content-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="offer-info style-scope ytd-offer-content-renderer">\n  <div class="offer-content style-scope ytd-offer-content-renderer" id="offer-content" on-click="onClick">\n    <div id="thumbnail" class="style-scope ytd-offer-content-renderer"></div>\n    <div class="text style-scope ytd-offer-content-renderer">\n      <yt-formatted-string class="title style-scope ytd-offer-content-renderer" text="[[data.title]]">\n      </yt-formatted-string>\n      <yt-formatted-string class="description style-scope ytd-offer-content-renderer" split-lines="true" text="[[data.description]]">\n      </yt-formatted-string>\n    </div>\n  </div>\n  <div id="action-button" class="style-scope ytd-offer-content-renderer"></div>\n</div>\n<div class="benefits style-scope ytd-offer-content-renderer">\n  <template is="dom-repeat" items="[[data.benefits]]" as="benefit" class="style-scope ytd-offer-content-renderer">\n    <ytd-bullet-formatted-string class="benefit style-scope ytd-offer-content-renderer" data="[[benefit]]">\n    </ytd-bullet-formatted-string>\n  </template>\n</div>\n');
a.content.insertBefore(_.w().content.cloneNode(!0),a.content.firstChild);return Toe=a},{mode:1});var dVz;var k_=function(){return _.G.apply(this,arguments)||this};
_.b(k_,_.G);k_.prototype.configureRendererStamper=function(){return{"data.offerList":{id:"offer-list",mapping:{offerContentRenderer:{component:"ytd-offer-content-renderer"},offerCardRenderer:{component:"ytd-offer-card-renderer"}}}}};
_.eH.Object.defineProperties(k_.prototype,{hasHeaderData:{configurable:!0,enumerable:!0,get:function(){var a,z;return!((a=this.data)==null||!a.title)||!((z=this.data)==null||!z.description)}}});
_.L([_.Q(_.k.YtRendererBehavior),_.p("design:type",Object)],k_.prototype,"ytRendererBehavior",void 0);_.L([_.Q(_.u4.YtRendererstamperBehavior),_.p("design:type",Object)],k_.prototype,"ytRendererstamperBehavior",void 0);_.L([_.x(),_.p("design:type",Object)],k_.prototype,"data",void 0);_.L([_.S("data"),_.p("design:type",Object),_.p("design:paramtypes",[])],k_.prototype,"hasHeaderData",null);_.L([_.U({disableElementRegistration:!0,is:"ytd-offer-section-renderer"})],k_);
_.D(k_,"ytd-offer-section-renderer",function(){if(dVz!==void 0)return dVz;var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-offer-section-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="heading style-scope ytd-offer-section-renderer" hidden="[[!hasHeaderData]]">\n  <yt-formatted-string class="title style-scope ytd-offer-section-renderer" text="[[data.title]]">\n  </yt-formatted-string>\n  <yt-formatted-string class="description style-scope ytd-offer-section-renderer" split-lines="" text="[[data.description]]">\n  </yt-formatted-string>\n</div>\n<div id="offer-list" class="style-scope ytd-offer-section-renderer"></div>\n');
a.content.insertBefore(_.w().content.cloneNode(!0),a.content.firstChild);return dVz=a},{mode:1});var WlZ;var Md=function(){return _.G.apply(this,arguments)||this};
_.b(Md,_.G);
Md.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"}}}}};
_.L([_.Q(_.k.YtRendererBehavior),_.p("design:type",Object)],Md.prototype,"ytRendererBehavior",void 0);_.L([_.Q(_.u4.YtRendererstamperBehavior),_.p("design:type",Object)],Md.prototype,"ytRendererstamperBehavior",void 0);_.L([_.x(),_.p("design:type",Object)],Md.prototype,"data",void 0);_.L([_.U({disableElementRegistration:!0,is:"ytd-offer-selection-step-renderer"})],Md);
_.D(Md,"ytd-offer-selection-step-renderer",function(){if(WlZ!==void 0)return WlZ;var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-offer-selection-step-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="masthead" class="style-scope ytd-offer-selection-step-renderer"></div>\n<div id="body" class="style-scope ytd-offer-selection-step-renderer"></div>\n<div id="coupon-section" class="style-scope ytd-offer-selection-step-renderer"></div>\n<div id="terms-section" class="style-scope ytd-offer-selection-step-renderer"></div>');a.content.insertBefore(_.w().content.cloneNode(!0),
a.content.firstChild);return WlZ=a},{mode:1});var okZ;var cF=function(){return _.G.apply(this,arguments)||this};
_.b(cF,_.G);cF.prototype.computeStyle=function(a){return a};
cF.prototype.computeImageWidth=function(a){return a==="CONFIRMATION_MASTHEAD_RENDERER_STYLE_WIDE"?150:90};
_.L([_.x({reflectToAttribute:!0,value:"CONFIRMATION_MASTHEAD_RENDERER_STYLE_UNKNOWN",computed:"computeStyle(data.style)"}),_.p("design:type",String)],cF.prototype,"containerStyle",void 0);_.L([_.x({reflectToAttribute:!0,value:90,computed:"computeImageWidth(data.style)"}),_.p("design:type",String)],cF.prototype,"imageWidth",void 0);_.L([_.Q(_.k.YtRendererBehavior),_.p("design:type",Object)],cF.prototype,"ytRendererBehavior",void 0);_.L([_.x(),_.p("design:type",Object)],cF.prototype,"data",void 0);
_.L([_.U({disableElementRegistration:!0,is:"ytd-confirmation-masthead-renderer"})],cF);
_.D(cF,"ytd-confirmation-masthead-renderer",function(){if(okZ!==void 0)return okZ;var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-confirmation-masthead-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-img-shadow class="thumbnail style-scope ytd-confirmation-masthead-renderer" thumbnail="[[data.thumbnail]]" width="[[imageWidth]]"></yt-img-shadow>\n<yt-icon class="entitlement-icon style-scope ytd-confirmation-masthead-renderer" hidden="[[!data.entitlementIcon.iconType]]" icon="[[data.entitlementIcon.iconType]]">\n</yt-icon>\n\n');a.content.insertBefore(_.w().content.cloneNode(!0),
a.content.firstChild);return okZ=a},{mode:1});var UVZ;var Y_=function(){return _.G.apply(this,arguments)||this};
_.b(Y_,_.G);Y_.prototype.computeStyle=function(a){return a};
_.L([_.Q(_.k.YtRendererBehavior),_.p("design:type",Object)],Y_.prototype,"ytRendererBehavior",void 0);_.L([_.x(),_.p("design:type",Object)],Y_.prototype,"data",void 0);_.L([_.x({reflectToAttribute:!0,value:"PURCHASE_COMPLETE_DETAIL_STYLE_UNKNOWN",computed:"computeStyle(data.style)"}),_.p("design:type",String)],Y_.prototype,"containerStyle",void 0);_.L([_.U({disableElementRegistration:!0,is:"ytd-purchase-complete-detail-renderer"})],Y_);
_.D(Y_,"ytd-purchase-complete-detail-renderer",function(){if(UVZ!==void 0)return UVZ;var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-purchase-complete-detail-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<template is="dom-repeat" items="[[data.description]]" as="description" class="style-scope ytd-purchase-complete-detail-renderer">\n    <yt-formatted-string class="description style-scope ytd-purchase-complete-detail-renderer" split-lines="true" text="[[description]]">\n    </yt-formatted-string>\n</template>\n<template is="dom-repeat" items="[[data.benefits]]" as="benefit" class="style-scope ytd-purchase-complete-detail-renderer">\n    <ytd-bullet-formatted-string class="benefit style-scope ytd-purchase-complete-detail-renderer" data="[[benefit]]">\n    </ytd-bullet-formatted-string>\n</template>\n');
a.content.insertBefore(_.w().content.cloneNode(!0),a.content.firstChild);return UVZ=a},{mode:1});var DV0;var qd=function(){var a=_.G.apply(this,arguments)||this;a.scriptsAppended=!1;return a};
_.b(qd,_.G);qd.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"}}}};
qd.prototype.onDataChanged=function(){var a=this.get("data.gtmId");a&&(_.dr(a,_.Xw("GL","")),this.setupConversionTracking())};
qd.prototype.setupConversionTracking=function(){if(!this.scriptsAppended){var a=document.createElement("noscript");a.textContent='<iframe src="https://www.googletagmanager.com/ns.html?id=GTM-5KBDVVN" height="0" width="0" style="display:none;visibility:hidden"></iframe>';document.body.prepend(a);this.scriptsAppended=!0}};
qd.prototype.onDataChanged=qd.prototype.onDataChanged;_.L([_.Q(_.k.YtRendererBehavior),_.p("design:type",Object)],qd.prototype,"ytRendererBehavior",void 0);_.L([_.Q(_.u4.YtRendererstamperBehavior),_.p("design:type",Object)],qd.prototype,"ytRendererstamperBehavior",void 0);_.L([_.x(),_.p("design:type",Object)],qd.prototype,"data",void 0);_.L([_.x(),_.p("design:type",Object)],qd.prototype,"scriptsAppended",void 0);
_.L([_.O8("data"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],qd.prototype,"onDataChanged",null);_.L([_.U({disableElementRegistration:!0,is:"ytd-purchase-complete-step-renderer"})],qd);
_.D(qd,"ytd-purchase-complete-step-renderer",function(){if(DV0!==void 0)return DV0;var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-purchase-complete-step-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="masthead" class="style-scope ytd-purchase-complete-step-renderer"></div>\n<div id="body" class="style-scope ytd-purchase-complete-step-renderer"></div>\n');a.content.insertBefore(_.w().content.cloneNode(!0),
a.content.firstChild);return DV0=a},{mode:1});var RTM;var eb=function(){var a=_.G.apply(this,arguments)||this;a.darkerDarkTheme=_.K("web_darker_dark_theme");return a};
_.b(eb,_.G);eb.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.L([_.Q(_.k.YtRendererBehavior),_.p("design:type",Object)],eb.prototype,"ytRendererBehavior",void 0);_.L([_.x(),_.p("design:type",Object)],eb.prototype,"data",void 0);_.L([_.x({reflectToAttribute:!0}),_.p("design:type",Object)],eb.prototype,"darkerDarkTheme",void 0);_.L([_.U({disableElementRegistration:!0,is:"ytd-ypc-transaction-error-message-renderer"})],eb);
_.D(eb,"ytd-ypc-transaction-error-message-renderer",function(){if(RTM!==void 0)return RTM;var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-ypc-transaction-error-message-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e\n<div class="error-messages style-scope ytd-ypc-transaction-error-message-renderer">\n  <template is="dom-repeat" items="[[data.errorMessages]]" as="message" class="style-scope ytd-ypc-transaction-error-message-renderer">\n    <yt-formatted-string text="[[message]]" class="style-scope ytd-ypc-transaction-error-message-renderer"></yt-formatted-string>\n  </template>\n</div>\n');a.content.insertBefore(_.w().content.cloneNode(!0),
a.content.firstChild);return RTM=a},{mode:1});var LlZ;var lZe;var aj=function(){var a=_.G.apply(this,arguments)||this;a.handlePhoneVerificationSuccess=function(z){if(a.isValidPhoneVerificationCompletionMessageEvent(z)){var I;((I=a.data)==null?0:I.nextStepCommand)&&a.ytComponentBehavior.resolveCommand(a.data.nextStepCommand)}};
return a};
_.b(aj,_.G);aj.prototype.isValidPhoneVerificationCompletionMessageEvent=function(a){if(a.data!=="yt-phone-verification-complete")return!1;a=_.MY(a.origin);return a!==null&&a.includes("youtube.com")};
aj.prototype.attached=function(){window.addEventListener("message",this.handlePhoneVerificationSuccess)};
aj.prototype.detached=function(){window.removeEventListener("message",this.handlePhoneVerificationSuccess)};
_.L([_.Q(_.Ms.YtComponentBehavior),_.p("design:type",Object)],aj.prototype,"ytComponentBehavior",void 0);_.L([_.x(),_.p("design:type",Object)],aj.prototype,"data",void 0);_.L([_.dz({is:"yt-feature-enablement-soft-entry-renderer",disableElementRegistration:!0})],aj);
_.D(aj,"yt-feature-enablement-soft-entry-renderer",function(){if(lZe===void 0){var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-feature-enablement-soft-entry-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.feature_enablement.yt_feature_enablement_soft_entry_renderer.yt.feature.enablement.soft.entry.renderer.css.js--\x3e<div id="contents" class="style-scope yt-feature-enablement-soft-entry-renderer">\n  <yt-img-shadow id="image" fit="" hidden="[[!data.image]]" thumbnail="[[data.image]]" width="160" class="style-scope yt-feature-enablement-soft-entry-renderer">\n  </yt-img-shadow>\n  <yt-formatted-string id="title" hidden="[[!data.title]]" text="[[data.title]]" class="style-scope yt-feature-enablement-soft-entry-renderer">\n  </yt-formatted-string>\n  <yt-formatted-string id="description" hidden="[[!data.description]]" split-lines="" text="[[data.description]]" class="style-scope yt-feature-enablement-soft-entry-renderer">\n  </yt-formatted-string>\n</div>\n');a.content.insertBefore(_.w().content.cloneNode(!0),
a.content.firstChild);var z=a.content,I=z.insertBefore;LlZ===void 0&&(LlZ=document.createElement("template"));var J=LlZ;I.call(z,J.content.cloneNode(!0),a.content.firstChild);lZe=a}a=lZe;return a},{mode:1});var pLV;var wLf;var mVz;var yCM;var kWE=function(){return _.G.apply(this,arguments)||this};
_.b(kWE,_.G);_.L([_.x(),_.p("design:type",Object)],kWE.prototype,"data",void 0);_.L([_.dz({is:"yt-benefits-item-renderer",disableElementRegistration:!0})],kWE);
_.D(kWE,"yt-benefits-item-renderer",function(){if(yCM===void 0){var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-benefits-item-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.ypc.flow.yt_benefits_item_renderer.yt.benefits.item.renderer.css.js--\x3e<div id="benefits-item" class="style-scope yt-benefits-item-renderer"><yt-formatted-string id="benefits-item-title" class="lhs style-scope yt-benefits-item-renderer" text="[[data.title]]"></yt-formatted-string><yt-formatted-string id="benefits-item-info-text" class="rhs style-scope yt-benefits-item-renderer" hidden="[[!data.text]]" text="[[data.text]]"></yt-formatted-string><yt-button-renderer id="benefits-item-info-button" class="rhs style-scope yt-benefits-item-renderer" data="[[data.button.buttonRenderer]]" hidden="[[!data.button.buttonRenderer]]"></yt-button-renderer></div>');a.content.insertBefore(_.w().content.cloneNode(!0),
a.content.firstChild);var z=a.content,I=z.insertBefore;mVz===void 0&&(mVz=document.createElement("template"));var J=mVz;I.call(z,J.content.cloneNode(!0),a.content.firstChild);yCM=a}a=yCM;return a},{mode:2});var MpZ;var cCz;var jD=function(){return _.G.apply(this,arguments)||this};
_.b(jD,_.G);jD.prototype.configureRendererStamper=function(){return{"data.items":{id:"benefits-items",mapping:{benefitsItemRenderer:{component:"yt-benefits-item-renderer"},cardItemRenderer:{component:"yt-card-item-renderer"}}}}};
jD.prototype.computeisWithoutPadding=function(){var a;return((a=this.data)==null?void 0:a.benefitsSectionStyle)==="BENEFITS_SECTION_RENDERER_STYLE_NO_MARGIN"};
_.L([_.Q(_.u4.YtRendererstamperBehavior),_.p("design:type",Object)],jD.prototype,"ytRendererstamperBehavior",void 0);_.L([_.x(),_.p("design:type",Object)],jD.prototype,"data",void 0);_.L([_.x({reflectToAttribute:!0,computed:"computeisWithoutPadding(data)"}),_.p("design:type",Boolean)],jD.prototype,"isWithoutPadding",void 0);_.L([_.dz({is:"yt-benefits-section-renderer",disableElementRegistration:!0})],jD);
_.D(jD,"yt-benefits-section-renderer",function(){if(cCz===void 0){var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-benefits-section-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.ypc.flow.yt_benefits_section_renderer.yt.benefits.section.renderer.css.js--\x3e<div id="benefits-section" is-without-padding$="[[isWithoutPadding]]" class="style-scope yt-benefits-section-renderer"><div id="benefits-header" hidden$="[[!data.header]]" class="style-scope yt-benefits-section-renderer"><yt-formatted-string id="benefits-header-text" split-lines="1" text="[[data.header]]" class="style-scope yt-benefits-section-renderer"></yt-formatted-string><div hidden="[[!data.tooltip]]" class="style-scope yt-benefits-section-renderer"><yt-icon id="tooltip-icon" icon="yt-icons:info-outline" class="style-scope yt-benefits-section-renderer"></yt-icon><tp-yt-paper-tooltip id="tooltip" always-display="" class="style-scope yt-benefits-section-renderer"><yt-formatted-string split-lines="1" text="[[data.tooltip]]" class="style-scope yt-benefits-section-renderer"></yt-formatted-string></tp-yt-paper-tooltip></div></div><div id="benefits-items" class="style-scope yt-benefits-section-renderer"></div></div>');
a.content.insertBefore(_.w().content.cloneNode(!0),a.content.firstChild);var z=a.content,I=z.insertBefore;MpZ===void 0&&(MpZ=document.createElement("template"));var J=MpZ;I.call(z,J.content.cloneNode(!0),a.content.firstChild);cCz=a}a=cCz;return a},{mode:2});var zP=function(){return _.G.apply(this,arguments)||this};
_.b(zP,_.G);zP.prototype.configureRendererStamper=function(){return{"data.benefitsSections":{id:"benefits-sections",mapping:{benefitsSectionRenderer:{component:"yt-benefits-section-renderer"},cardItemRenderer:{component:"yt-card-item-renderer"}}}}};
zP.prototype.computeisUsingLargeWidth=function(){var a;return((a=this.data)==null?void 0:a.widthType)==="BENEFITS_FLOW_STEP_RENDERER_WIDTH_TYPE_LARGE"};
_.L([_.Q(_.u4.YtRendererstamperBehavior),_.p("design:type",Object)],zP.prototype,"ytRendererstamperBehavior",void 0);_.L([_.x(),_.p("design:type",Object)],zP.prototype,"data",void 0);_.L([_.x({reflectToAttribute:!0,computed:"computeisUsingLargeWidth(data)"}),_.p("design:type",Boolean)],zP.prototype,"isUsingLargeWidth",void 0);_.L([_.dz({is:"yt-benefits-flow-step-renderer",disableElementRegistration:!0})],zP);
_.D(zP,"yt-benefits-flow-step-renderer",function(){if(wLf===void 0){var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-benefits-flow-step-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.ypc.flow.yt_benefits_flow_step_renderer.yt.benefits.flow.step.renderer.css.js--\x3e<div id="header-container" class="style-scope yt-benefits-flow-step-renderer"><yt-img-shadow id="avatar" height="72" hidden$="[[!data.avatar]]" thumbnail="[[data.avatar]]" width="72" class="style-scope yt-benefits-flow-step-renderer"></yt-img-shadow><div id="header-content" class="style-scope yt-benefits-flow-step-renderer"><yt-formatted-string id="subtitle-text" hidden$="[[!data.subtitleText]]" split-lines="1" text="[[data.subtitleText]]" class="style-scope yt-benefits-flow-step-renderer"></yt-formatted-string><yt-formatted-string id="title-text" hidden$="[[!data.titleText]]" split-lines="1" text="[[data.titleText]]" class="style-scope yt-benefits-flow-step-renderer"></yt-formatted-string></div></div><div id="benefits-sections" class="style-scope yt-benefits-flow-step-renderer"></div>');
a.content.insertBefore(_.w().content.cloneNode(!0),a.content.firstChild);var z=a.content,I=z.insertBefore;pLV===void 0&&(pLV=document.createElement("template"));var J=pLV;I.call(z,J.content.cloneNode(!0),a.content.firstChild);wLf=a}a=wLf;return a},{mode:2});var Yni;var qne;var Ij=function(){return _.G.apply(this,arguments)||this};
_.b(Ij,_.G);Ij.prototype.checkIsUsingLargeWidth=function(){var a;return((a=this.data)==null?void 0:a.widthType)==="CONFIRMATION_FLOW_STEP_RENDERER_WIDTH_TYPE_LARGE"};
_.L([_.x(),_.p("design:type",Object)],Ij.prototype,"data",void 0);_.L([_.Q(_.k.YtRendererBehavior),_.p("design:type",Object)],Ij.prototype,"ytRendererBehavior",void 0);_.L([_.x({reflectToAttribute:!0,computed:"checkIsUsingLargeWidth(data)"}),_.p("design:type",Boolean)],Ij.prototype,"isUsingLargeWidth",void 0);_.L([_.dz({is:"yt-confirmation-flow-step-renderer",disableElementRegistration:!0})],Ij);
_.D(Ij,"yt-confirmation-flow-step-renderer",function(){if(qne===void 0){var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-confirmation-flow-step-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.ypc.flow.yt_confirmation_flow_step_renderer.yt.confirmation.flow.step.renderer.css.js--\x3e<div id="thumbnail-container" class="style-scope yt-confirmation-flow-step-renderer"><yt-img-shadow id="thumbnail" height="209" thumbnail="[[data.image]]" width="209" class="style-scope yt-confirmation-flow-step-renderer"></yt-img-shadow></div><div id="title-container" class="style-scope yt-confirmation-flow-step-renderer"><yt-formatted-string id="title" split-lines="1" text="[[data.titleText]]" class="style-scope yt-confirmation-flow-step-renderer"></yt-formatted-string></div><div id="subtitle-container" class="style-scope yt-confirmation-flow-step-renderer"><yt-formatted-string id="subtitle" split-lines="1" text="[[data.subtitleText]]" class="style-scope yt-confirmation-flow-step-renderer"></yt-formatted-string></div>');
a.content.insertBefore(_.w().content.cloneNode(!0),a.content.firstChild);var z=a.content,I=z.insertBefore;Yni===void 0&&(Yni=document.createElement("template"));var J=Yni;I.call(z,J.content.cloneNode(!0),a.content.firstChild);qne=a}a=qne;return a},{mode:2});var eTM;var aRz;var jOe=function(){return _.G.apply(this,arguments)||this};
_.b(jOe,_.G);_.L([_.x(),_.p("design:type",Object)],jOe.prototype,"data",void 0);_.L([_.dz({is:"yt-info-flow-step-renderer",disableElementRegistration:!0})],jOe);
_.D(jOe,"yt-info-flow-step-renderer",function(){if(aRz===void 0){var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-info-flow-step-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.ypc.flow.yt_info_flow_step_renderer.yt.info.flow.step.renderer.css.js--\x3e<div id="title-container" class="style-scope yt-info-flow-step-renderer"><yt-formatted-string id="title" split-lines="1" text="[[data.titleText]]" class="style-scope yt-info-flow-step-renderer"></yt-formatted-string></div><div id="subtitle-text-container" class="style-scope yt-info-flow-step-renderer"><yt-formatted-string id="subtitle-text" split-lines="1" text="[[data.subtitleText]]" class="style-scope yt-info-flow-step-renderer"></yt-formatted-string></div>');a.content.insertBefore(_.w().content.cloneNode(!0),
a.content.firstChild);var z=a.content,I=z.insertBefore;eTM===void 0&&(eTM=document.createElement("template"));var J=eTM;I.call(z,J.content.cloneNode(!0),a.content.firstChild);aRz=a}a=aRz;return a},{mode:2});var zXM;var IRE;var JJE=function(){return _.G.apply(this,arguments)||this};
_.b(JJE,_.G);_.L([_.x(),_.p("design:type",Object)],JJE.prototype,"data",void 0);_.L([_.dz({is:"yt-info-list-flow-step-renderer",disableElementRegistration:!0})],JJE);
_.D(JJE,"yt-info-list-flow-step-renderer",function(){if(IRE===void 0){var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-info-list-flow-step-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.ypc.flow.yt_info_list_flow_step_renderer.yt.info.list.flow.step.renderer.css.js--\x3e<div id="title-container" class="style-scope yt-info-list-flow-step-renderer"><yt-formatted-string id="title" split-lines="1" text="[[data.titleText]]" class="style-scope yt-info-list-flow-step-renderer"></yt-formatted-string></div><div id="info-list-header-container" class="style-scope yt-info-list-flow-step-renderer"><yt-formatted-string id="info-list-header" force-default-style="" split-lines="1" text="[[data.infoListHeader]]" class="style-scope yt-info-list-flow-step-renderer"></yt-formatted-string></div><div id="info-items-container" class="style-scope yt-info-list-flow-step-renderer"><template is="dom-repeat" items="[[data.infoItems]]" as="item" class="style-scope yt-info-list-flow-step-renderer"><div id="info-list-item" class="style-scope yt-info-list-flow-step-renderer"><yt-icon id="info-icon" icon="[[item.icon.iconType]]" class="style-scope yt-info-list-flow-step-renderer"></yt-icon><yt-formatted-string id="info-text" split-lines="1" text="[[item.text]]" class="style-scope yt-info-list-flow-step-renderer"></yt-formatted-string></div></template></div><div id="description-text-container" class="style-scope yt-info-list-flow-step-renderer"><yt-formatted-string id="description-text" split-lines="1" text="[[data.descriptionText]]" class="style-scope yt-info-list-flow-step-renderer"></yt-formatted-string></div>');a.content.insertBefore(_.w().content.cloneNode(!0),
a.content.firstChild);var z=a.content,I=z.insertBefore;zXM===void 0&&(zXM=document.createElement("template"));var J=zXM;I.call(z,J.content.cloneNode(!0),a.content.firstChild);IRE=a}a=IRE;return a},{mode:2});var rJY=_.ec(function(a){var z=a.data;return _.B("styled-text-view-model",{class:_.B8("ytStyledTextViewModelHost",function(){return fHY(z().fontAttributes)},function(){return O3i(z().color)})},_.B(_.xs,{text:function(){return z().text},
ariaLabel:function(){var I,J,r;return(r=(I=z().accessibility)==null?void 0:(J=I.accessibilityData)==null?void 0:J.label)!=null?r:""}}))},"Bf");
rJY.idomCompat=!0;var P9f=_.ec(function(a){var z=function(){var r,P,N,u;return(u=(N=(r=a.alt)==null?void 0:r.call(a))!=null?N:(P=a.data().accessibilityData)==null?void 0:P.label)!=null?u:""},I=function(){return a.data().imageWidth},J=function(){return a.data().imageHeight};
return _.B("themed-image-view-model",{class:"ytThemedImageViewModelHost"},_.B(_.g,{cond:function(){var r=a.data();if(r){var P,N,u;var E=((P=_.ab().resolve(_.eL(_.kN)))==null?0:P())?(N=r.imageDark)!=null?N:r.imageLight:(u=r.imageLight)!=null?u:r.imageDark}else E=void 0;return E},
then:function(r){return _.B(_.qp,Object.assign({},a,{data:r,alt:z,targetWidth:I,targetHeight:J,preserveHeight:!0,preserveWidth:!0}))}}))},"Cf");
P9f.idomCompat=!0;var Ja=_.ec(function(a){var z=a.data;a=_.Yi(function(){return z().slots},[]);
var I=_.Yi(function(){return z().layoutProperties},{}),J=_.ab().resolve(_.cl);
return _.B("container-layout-view-model",{class:"ytContainerLayoutViewModelHost",style:tL0(I,J)},_.B(_.se,{each:a,keyBy:"INDEX"},function(r){return _.B("div",{class:"ytContainerLayoutViewModelSlot",style:tL0(function(){return r().layoutProperties},J)},_.B(_.V0,{data:function(){return r().contents}},{containerLayoutViewModel:Ja,
badgeViewModel:_.N8,buttonViewModel:_.At,styledTextViewModel:rJY,contentPreviewImageViewModel:function(P){return _.B(_.t0,{data:P.data,className:"ytContainerLayoutViewModelImage"})},
themedImageViewModel:function(P){return _.B(P9f,{data:P.data,preserveWidth:!0,preserveHeight:!0})}}))}))},"Df");
Ja.idomCompat=!0;var ZvM=_.ec(function(a){var z=a.data;var I=a.stateFns;var J=function(){var O=z(),f=O.productId;return!(!O.clearGroupId&&!f)},r=function(){var O=z(),f=O.clearGroupId;
return(O=O.productId)?I().isProductSelected(O):f?I().getSelectedProductByGroupId(f)==null:!1},P=function(){var O=z(),f=O.clearGroupId;
if(O=O.productId)I().onProductSelected(O);else if(f)I().onClearGroupSelected(f)},N=function(){var O=z(),f=O.clearGroupId;
if(O=O.productId){var A;return"group:"+(((A=I().getProductById(O))==null?void 0:A.groupId)||"")}return f?"group:"+f:""},u=_.Yi(function(){return z().header},[]),E=_.Yi(function(){return z().body},[]);
return _.B("pdp-card-section-view-model",{class:"ytPdpCardSectionViewModelHost"},_.B(_.g,{cond:function(){return u().length>0||J()},
then:function(){return _.B("label",{class:"ytPdpCardSectionViewModelHeaderSection"},_.B("div",{class:"ytPdpCardSectionViewModelHeaderContent"},_.B(_.V0,{data:u},{containerLayoutViewModel:function(O){return _.B("div",{class:"ytPdpCardSectionViewModelContentItem"},_.B(Ja,{data:O.data}))},
styledTextViewModel:function(O){return _.B("div",{class:"ytPdpCardSectionViewModelContentItem"},_.B(rJY,{data:O.data}))}})),_.B(_.g,{cond:J,
then:function(){return _.B("div",{class:"ytPdpCardSectionViewModelHeaderRadioContainer"},_.B(_.RP,{checked:r,name:N,onChange:P}))}}))}}),_.B(_.g,{cond:function(){return E().length>0},
then:function(){return _.B("div",null,_.B(_.V0,{data:E},{containerLayoutViewModel:function(O){return _.B("div",{class:"ytPdpCardSectionViewModelContentItem"},_.B(Ja,{data:O.data}))}}))}}))},"Ef");
ZvM.idomCompat=!0;var C90=_.ec(function(a){var z=a.data;var I=a.stateFns;return _.B("pdp-card-view-model",{class:"ytPdpCardViewModelHost"},_.B(_.g,{cond:function(){return z().banner},
then:function(J){return _.B("div",{class:"ytPdpCardViewModelBanner"},_.B(_.xs,{text:J}))}}),_.B(_.V0,{data:function(){return z().sections}},{pdpCardSectionViewModel:function(J){J=J.data;
var r={};return _.B("div",{class:_.B8("ytPdpCardViewModelSectionContainer",(r.ytPdpCardViewModelShowDividers=function(){return z().showDividers},r))},_.B(ZvM,{data:J,
stateFns:I}))}}))},"Ff");
C90.idomCompat=!0;var N2z=_.ec(function(a){var z=a.data;var I=a.isOverlay;a={};return _.B("pdp-masthead-view-model",{class:_.B8("ytPdpMastheadViewModelHost",(a.ytPdpMastheadViewModelIsOverlay=I,a))},_.B(_.V0,{data:function(){return z().image}},{contentPreviewImageViewModel:_.t0,
themedImageViewModel:function(J){return _.B(P9f,{data:J.data,alt:"",className:"ytPdpMastheadViewModelImage"})}}),_.B(_.g,{cond:function(){return z().title},
then:function(J){return _.B("h1",{class:"ytPdpMastheadViewModelHeading"},_.B(_.xs,{text:J,isOverlay:I}))}}),_.B(_.se,{each:function(){var J;
return(J=z().finePrint)!=null?J:[]}},function(J){return _.B("div",{class:"ytPdpMastheadViewModelFinePrint"},_.B(_.xs,{text:J,
isOverlay:I}))}))},"Gf");
N2z.idomCompat=!0;var tF0=_.ec(function(a){var z=a.data;var I=a.stateFns;var J=function(){return"pdp-pricing-group-selector-"+z().pricingGroupAttributeIds},r=_.Yi(function(){return z().pricingGroupSelectorSectionHeader});
return _.B("pdp-pricing-group-selector-view-model",null,_.B(_.g,{cond:function(){return!!r()},
then:function(){return _.B(_.V0,{data:r},{sectionHeaderViewModel:function(P){P=P.data;var N={};return _.B("div",{class:_.B8("ytPdpPricingGroupSelectorViewModelSectionHeader",(N.ytPdpPricingGroupSelectorViewModelFullBleed=!0,N.ytPdpPricingGroupSelectorViewModelNoVerticalPadding=!0,N))},_.B(_.fF,{data:P}))}})}}),_.B("div",{class:"ytPdpPricingGroupSelectorViewModelHost"},_.B(_.se,{each:function(){var P=I().getSelectedProductByGroupId(z().groupId);
if(!P)return _.$0(Error("Mj`"+z().groupId)),[];var N,u=(N=z().pricingGroupAttributeIds)!=null?N:[],E;if((E=P.pricingGroups)==null||!E.length||!u.length)return[];N=P.pricingGroups.filter(function(n){return u.length?n.pricingGroupAttributes.every(function(F){return u.includes(F)}):!1});
P=[];if(u.length>0){N=[].concat(_.ih(N));E=_.C(u);for(var O=E.next(),f={};!O.done;f={targetAttrId:void 0},O=E.next())f.targetAttrId=O.value,O=N.findIndex(function(n){return function(F){return F.pricingGroupAttributes.includes(n.targetAttrId)}}(f)),O!==-1&&(P.push(N[O]),N.splice(O,1))}var A=I().getSelectedPricingGroupAttributesByGroupId(z().groupId);
return P.map(function(n){var F=!1;A&&n.pricingGroupAttributes&&(F=h_(n.pricingGroupAttributes,A));return{pricingGroup:n,isSelected:F}})},
keyBy:function(P){return P.pricingGroup.pricingGroupId}},function(P){return _.B("label",{class:"ytPdpPricingGroupSelectorViewModelOption"},_.B("div",{class:"ytPdpPricingGroupSelectorViewModelOptionContent"},_.B(_.V0,{data:function(){return P().pricingGroup.pricingGroupSelectorOption}},{containerLayoutViewModel:Ja})),_.B("div",{class:"ytPdpPricingGroupSelectorViewModelOptionRadio"},_.B(_.RP,{checked:function(){return P().isSelected},
name:J,onClick:function(){I().onPricingGroupSelected(P().pricingGroup.pricingGroupId)}})))})))},"Hf");
tF0.idomCompat=!0;var ud4=_.ec(function(a){var z=a.data;var I=a.stateFns;var J=function(){var N=I().getSelectedPricingOptions().map(function(O){return O.pricingOptionId}),u=I().getSelectedProductByGroupId(z().groupId);
if(!u)return _.$0(Error("Nj`"+z().groupId)),[];var E=I().getSelectedPricingGroupAttributesByGroupId(z().groupId);return KsY(u.pricingOptions,E,N)},r=_.Yi(function(){return z().pricingOptionSelectorSectionHeader}),P=function(){return J().length>1};
return _.B("pdp-pricing-option-selector-view-model",null,_.B(_.g,{cond:function(){return!!r()&&P()},
then:function(){return _.B(_.V0,{data:r},{sectionHeaderViewModel:function(N){N=N.data;var u={};return _.B("div",{class:_.B8("ytPdpPricingOptionSelectorViewModelSectionHeader",(u.ytPdpPricingOptionSelectorViewModelFullBleed=!0,u.ytPdpPricingOptionSelectorViewModelNoVerticalPadding=!0,u))},_.B(_.fF,{data:N}))}})}}),_.B(_.g,{cond:P,
then:function(){return _.B("div",{class:"ytPdpPricingOptionSelectorViewModelHost"},_.B(_.se,{each:J,keyBy:"INDEX"},function(N){return _.B("label",{class:"ytPdpPricingOptionSelectorViewModelOption"},_.B("div",{class:"ytPdpPricingOptionSelectorViewModelOptionContent"},_.B(_.V0,{data:function(){return N().pricingOption.pricingOptionSelectorOption}},{containerLayoutViewModel:Ja})),_.B("div",{class:"ytPdpPricingOptionSelectorViewModelOptionRadio"},_.B(_.RP,{checked:function(){return N().isSelected},
onClick:function(){I().onPricingOptionSelected(N().pricingOption.pricingOptionId);var u=N().pricingOption.onSelectPricingOption;if(u=_.o0(u)){var E;(E=_.ab().resolve(_.j6))==null||E.resolveCommand(u)}}})))}))}}))},"If");
ud4.idomCompat=!0;var E0M=_.ec(function(a){var z=a.data;var I=a.stateFns;return _.B("pdp-primary-button-view-model",{class:"ytPdpPrimaryButtonViewModelHost"},_.B(_.V0,{data:function(){var J,r;return(r=(J=I().getSelectedPricingOptions()[0])==null?void 0:J.primaryButton)!=null?r:z().emptyStateButton}},{buttonViewModel:_.At}))},"Jf");
E0M.idomCompat=!0;var B2V=_.ec(function(a){var z=a.stateFns;return _.B("pdp-summary-view-model",{class:"ytPdpSummaryViewModelHost"},_.B(_.V0,{data:function(){return z().getSelectedPricingOptions().flatMap(function(I){return I.summaryLines}).filter(function(I){return!!I})}},{containerLayoutViewModel:function(I){return _.B("div",{class:"ytPdpSummaryViewModelLineItem"},_.B(Ja,{data:I.data}))}}))},"Kf");
B2V.idomCompat=!0;var g0M=_.ec(function(a){function z(d){var W=N();_.cK(_.XK("pdpStateEntity",W,{key:W,selectedPricingOptions:d}))}
var I=a.data;var J=a.internalScrolling;var r=a.stateFnsForTesting;var P=_.Yi(function(){return I().allProducts},[]),N=_.Yi(function(){return I().pdpStateEntityKey},""),u=_.KU(FsM,N),E=_.Bg(function(){_.SJ(!0);
var d;return(d=r==null?void 0:r())!=null?d:b3i(u,P,z)},void 0,"pjJzrd"),O=_.Yi(function(){return I().body},[]),f=_.Yi(function(){return I().columnBreakHints},[]),A=function(){return I().backgroundMode==="PDP_BACKGROUND_MODE_FORCE_DARK"},n=function(){return A()||I().backgroundMode==="PDP_BACKGROUND_MODE_DARK"},F=_.Bg(function(){var d=_.y0(I().background),W;
if(d==null?0:(W=d.sources)==null?0:W.length){var l=l===void 0?!0:l;d=_.KxM(void 0,d.sources,void 0,l,l?1E3:void 0,l?void 0:1E3)}else d=null;return d},void 0,"GO4GAe");
a=_.sW({"--pdp-view-model-background":function(){return F()?"url("+F()+")":void 0}});
var h={};J=_.B8("ytPdpViewModelHost",(h.ytPdpViewModelHasBackground=function(){return n()||!!F()},h.ytPdpViewModelHasDarkBackground=n,h.ytPdpViewModelHasScrim=A,h.ytPdpViewModelInternalScrolling=_.Yi(J,!1),h));
var v=function(d){var W={};return _.B8("ytPdpViewModelItem",(W.ytPdpViewModelFullBleed=function(){return _.HaG(d())==="dividerViewModel"||_.HaG(d())==="sectionHeaderViewModel"},W.ytPdpViewModelNoVerticalPadding=function(){return _.HaG(d())==="sectionHeaderViewModel"},W))};
_.QO(function(){var d=I().onStartCommand;if(d&&(d=_.o0(d))){var W;(W=_.ab().resolve(_.j6))==null||W.resolveCommand(d)}});
return _.B("pdp-view-model",{class:J,style:a},_.B("div",{class:"ytPdpViewModelColumnContainer"},_.B(_.se,{each:function(){return hxG(O(),f())},
keyBy:"INDEX"},function(d){return _.B("div",{class:"ytPdpViewModelColumn"},_.B(_.V0,{data:d},{containerLayoutViewModel:function(W,l){W=W.data;return _.B("div",{class:v(function(){return d()[l()]})},_.B(Ja,{data:W}))},
dividerViewModel:function(W,l){W=W.data;return _.B("div",{class:v(function(){return d()[l()]})},_.B(_.S2J,{data:W}))},
pdpCardViewModel:function(W,l){W=W.data;return _.B("div",{class:v(function(){return d()[l()]})},_.B(C90,{data:W,
stateFns:E}))},
pdpMastheadViewModel:function(W,l){W=W.data;return _.B("div",{class:v(function(){return d()[l()]})},_.B(N2z,{data:W,
isOverlay:n}))},
pdpPricingGroupSelectorViewModel:function(W,l){W=W.data;return _.B("div",{class:v(function(){return d()[l()]})},_.B(tF0,{data:W,
stateFns:E}))},
pdpPricingOptionSelectorViewModel:function(W,l){W=W.data;return _.B("div",{class:v(function(){return d()[l()]})},_.B(ud4,{data:W,
stateFns:E}))},
pdpPrimaryButtonViewModel:function(W,l){W=W.data;return _.B("div",{class:v(function(){return d()[l()]})},_.B(E0M,{data:W,
stateFns:E}))},
pdpSummaryViewModel:function(W,l){W=W.data;return _.B("div",{class:v(function(){return d()[l()]})},_.B(B2V,{data:W,
stateFns:E}))},
sectionHeaderViewModel:function(W,l){W=W.data;return _.B("div",{class:v(function(){return d()[l()]})},_.B(_.fF,{data:W}))}}))})))},"Lf");
g0M.idomCompat=!0;_.Jf(g0M,"pdp-view-model",{props:{data:_.zl,stateFnsForTesting:_.I5,internalScrolling:_.I5}});var OvV=_.ec(function(a){var z=a.data;var I=a.className;var J=_.KU(_.qA,function(){return z().flowStateEntityKey});
return _.B("ytm-premium-purchase-button-renderer",{class:_.B8("yt-premium-purchase-button-renderer",I)},_.B(_.V0,{data:function(){var r;return(r=_.H(J(),QLe))==null?void 0:r.primaryButtonOverride}},{buttonRenderer:function(r){return _.B(_.a1,{data:r.data,
className:I})},
buttonViewModel:function(r){return _.B(_.At,{data:r.data,className:I})}}))},"Mf");
OvV.idomCompat=!0;var fRZ=_.ec(function(a){var z=a.data;a=a.className;var I=function(){return VLi(z().style)},J=_.B8("yt-flow-bottom-bar-renderer__flow-bottom-bar-primary-button","yt-flow-bottom-bar-renderer__flow-bottom-bar-button",I),r=_.B8("yt-flow-bottom-bar-renderer__flow-bottom-bar-secondary-button","yt-flow-bottom-bar-renderer__flow-bottom-bar-button",I);
return _.B("yt-flow-bottom-bar-renderer",{class:_.B8("yt-flow-bottom-bar-renderer",a,I)},_.B(_.V0,{data:function(){return z().secondaryButton}},{buttonRenderer:function(P){return _.B(_.a1,{data:P.data,
className:r})},
buttonViewModel:function(P){return _.B(_.At,{data:P.data,className:r})},
premiumPurchaseButtonRenderer:function(P){return _.B(OvV,{data:P.data,className:r})}}),_.B(_.V0,{data:function(){return z().primaryButton}},{buttonRenderer:function(P){return _.B(_.a1,{data:P.data,
className:J})},
buttonViewModel:function(P){return _.B(_.At,{data:P.data,className:J})},
premiumPurchaseButtonRenderer:function(P){return _.B(OvV,{data:P.data,className:J})}}))},"Nf");
fRZ.idomCompat=!0;_.Jf(fRZ,"yt-flow-bottom-bar-renderer",{props:{data:_.zl,className:_.zl}});var AJe=_.ec(function(a){var z=_.B8(a.className,"ytOfferSummaryRendererHost");return _.B("yt-offer-summary-renderer",{class:z},_.B("div",{class:"ytOfferSummaryRendererTextContainer"},_.B("div",{class:"ytOfferSummaryRendererEyebrowText"},_.B(_.xs,{text:function(){return a.data().eyebrowText}})),_.B("div",{class:"ytOfferSummaryRendererTitle"},_.B(_.xs,{text:function(){return a.data().title}})),_.B("div",{class:"ytOfferSummaryRendererSubtitle"},_.B(_.xs,{text:function(){return a.data().subtitle}})),
_.B("div",{class:"ytOfferSummaryRendererFeatureListData"},_.B(_.se,{each:function(){var I;
return(I=a.data().featureListData)!=null?I:[]}},function(I){var J;
return _.B("div",{class:"ytOfferSummaryRendererFeatureList"},_.B(_.nS,{icon:(J=I.icon)==null?void 0:J.iconType,active:function(){return I.style==="BULLET_FORMATTED_STRING_STYLE_BOLD_ICON_PRIMARY_TEXT"},
className:function(){switch(I.style){case "BULLET_FORMATTED_STRING_STYLE_THEMED_GREEN_ICON_PRIMARY_TEXT":return"ytOfferSummaryRendererFeatureListIconGreen";case "BULLET_FORMATTED_STRING_STYLE_SMALL_ICON_GREY_TEXT":return"ytOfferSummaryRendererFeatureListIconSmall";default:return"ytOfferSummaryRendererFeatureListIconDefault"}}}),_.B("div",{class:"ytOfferSummaryRendererFeatureListText"},_.B(_.xs,{text:I.text,
className:function(){return I.style==="BULLET_FORMATTED_STRING_STYLE_SMALL_ICON_GREY_TEXT"?"ytOfferSummaryRendererFeatureListSecondaryText":""}})))})),_.B("div",{class:"ytOfferSummaryRendererDescription"},_.B(_.xs,{text:function(){return a.data().description}}))))},"Of");_.Jf(_.ec(function(a){var z={};z=_.B8("ytOfferSummaryFlowStepRendererHost",(z.ytOfferSummaryFlowStepRendererDisableHeaderTopMargin=a.shouldDisableHeaderTopMargin,z));return _.B("yt-offer-summary-flow-step-renderer",{id:"yt-offer-summary-flow-step-renderer",class:z},_.B("div",{class:"ytOfferSummaryFlowStepRendererHeaderContainer ytOfferSummaryFlowStepRendererChild"},_.B("div",{class:"ytOfferSummaryFlowStepRendererHeader"},_.B(_.xs,{text:function(){return a.data().header}})),_.B("div",{class:"ytOfferSummaryFlowStepRendererSubtitle"},
_.B(_.xs,{text:function(){return a.data().subtitle}}))),_.B("div",{class:"ytOfferSummaryFlowStepRendererChild"},_.B(_.V0,{data:function(){return a.data().offerSummary}},{offerSummaryRenderer:function(I){return _.B(AJe,{data:I.data,
className:a.flowClassName})}})))},"Pf"),"yt-offer-summary-flow-step-renderer",{props:{data:_.I5,
flowClassName:_.I5,flowStateEntityKey:_.I5,shouldDisableHeaderTopMargin:_.I5}});var sOi=_.ec(function(a){var z=a.data;var I=a.className;var J=a.flowStateEntityKey;var r=a.selectionStepStyle;a=_.g4(function(E){var O=z(),f=J==null?void 0:J();E.target&&(E.stopPropagation(),E=f||"",f=_.qA(_.M3().getState(),E),O=Object.assign({},f,{premiumPurchaseFlowState:{selectedOptionId:O.optionId,primaryButtonOverride:O.primaryButtonOverride}}),_.M3().dispatch(_.Q0("flowStateEntity",E,O)));return!1});
var P=function(){return(J==null?void 0:J())||""},N=_.KU(_.qA,P);
_.QO(function(){var E=z(),O=P(),f=N();E.defaultSelected&&O!==""&&E.primaryButtonOverride&&SeE(E.optionId||"",O,E.primaryButtonOverride,f)});
var u={};return _.B("ytm-option-item-renderer",{"on:click":a,class:_.B8(I,"ytm-option-item-renderer",(u["ytm-option-item-renderer--lp2-style"]=function(){return(r==null?void 0:r())==="OPTION_SELECTION_FLOW_STEP_RENDERER_STYLE_LP_2"},u))},_.B("div",{class:"ytm-option-item-renderer__option-item-radio-container"},_.B("input",{type:"radio",
class:"ytm-option-item-renderer__option-item-radio-button","prop:checked":function(){var E=z(),O=P(),f=N();f=_.H(f,QLe);return(f?(f==null?void 0:f.selectedOptionId)||"":E.defaultSelected&&O!==""?(E==null?void 0:E.optionId)||"":"")===z().optionId},
name:("input"+_.To(_.W5)).toString()})),_.B("div",{class:"ytm-option-item-renderer__option-item-text-container"},_.B(_.V0,{data:function(){return z().titleBadge}},{badgeViewModel:function(E){return _.B(_.N8,{data:E.data,
class:"ytm-option-item-renderer__option-item-title-badge"})}}),_.B(_.g,{cond:function(){return z().eyebrowText},
then:function(){return _.B("div",{class:"ytm-option-item-renderer__option-item-eyebrow-text"},_.B(_.xs,{text:function(){return z().eyebrowText}}))}}),_.B("div",{class:"ytm-option-item-renderer__option-item-title"},_.B(_.xs,{text:function(){return z().title}})),_.B("div",{class:"ytm-option-item-renderer__option-item-subtitle"},_.B(_.xs,{text:function(){return z().subtitle}})),_.B(_.g,{cond:function(){return z().featureListData},
then:function(){return _.B("div",{class:"ytm-option-item-renderer__feature-list-data"},_.B(_.se,{each:function(){return z().featureListData||[]}},function(E){var O,f=(O=E.icon)==null?void 0:O.iconType;
a:switch(E.style){case "BULLET_FORMATTED_STRING_STYLE_THEMED_GREEN_ICON_PRIMARY_TEXT":O="ytm-option-item-renderer__feature-list-icon-green";break a;case "BULLET_FORMATTED_STRING_STYLE_SMALL_ICON_GREY_TEXT":O="ytm-option-item-renderer__feature-list-icon-small";break a;default:O="ytm-option-item-renderer__feature-list-icon-default"}return _.B("div",{class:"ytm-option-item-renderer__feature-list"},_.B(_.nS,{icon:f,className:O,active:function(){return E.style==="BULLET_FORMATTED_STRING_STYLE_BOLD_ICON_PRIMARY_TEXT"}}),
_.B("div",{class:"ytm-option-item-renderer__feature-list-text"},_.B(_.xs,{text:E.text,
className:function(){return E.style==="BULLET_FORMATTED_STRING_STYLE_SMALL_ICON_GREY_TEXT"?"ytm-option-item-renderer__feature-list-secondary-text":""}})))}))}}),_.B("div",{class:"ytm-option-item-renderer__option-item-description"},_.B(_.xs,{text:function(){return z().description}}))))},"Qf");var n00=_.ec(function(a){var z=a.data;var I=a.flowClassName;var J=a.flowStateEntityKey;var r=a.selectionStepStyle;return _.B("yt-option-section-renderer",{id:"yt-option-section-renderer",class:"yt-option-section-renderer"},_.B("div",{class:"yt-option-section-renderer__option-section-header-section"},_.B("div",{class:"yt-option-section-renderer__option-section-header"},_.B(_.xs,{text:function(){return z().title}}),_.B(_.V0,{data:function(){return z().titleBadge}},{badgeViewModel:function(P){return _.B(_.N8,
{data:P.data,
class:"yt-option-section-renderer__option-section-title-badge"})}})),_.B(_.g,{cond:function(){return z().subtitle},
then:function(){return _.B("div",{class:"yt-option-section-renderer__option-section-subtitle"},_.B(_.xs,{text:function(){return z().subtitle}}))}}),_.B(_.g,{cond:function(){return z().featureListData},
then:function(P){return _.B("div",{class:"yt-option-section-renderer__option-section-feature-list"},_.B(_.se,{each:P},function(N){var u;return _.B("div",{class:"yt-option-section-renderer__option-section-feature-item"},_.B(_.nS,{icon:(u=N.icon)==null?void 0:u.iconType,active:function(){return N.style==="BULLET_FORMATTED_STRING_STYLE_BOLD_ICON_PRIMARY_TEXT"},
className:function(){switch(N.style){case "BULLET_FORMATTED_STRING_STYLE_THEMED_GREEN_ICON_PRIMARY_TEXT":return"yt-option-section-renderer__option-section-feature-item-icon-green";case "BULLET_FORMATTED_STRING_STYLE_SMALL_ICON_GREY_TEXT":return"yt-option-section-renderer__option-section-feature-item-icon-small";default:return"yt-option-section-renderer__option-section-feature-item-icon-default"}}}),_.B("div",{class:"yt-option-section-renderer__option-section-feature-item-text"},_.B(_.xs,{text:N.text,
className:function(){return N.style==="BULLET_FORMATTED_STRING_STYLE_SMALL_ICON_GREY_TEXT"?"yt-option-section-renderer__option-section-feature-item-text-secondary":""}})))}))}}),_.B(_.g,{cond:function(){return z().secondaryTitle},
then:function(){return _.B("div",{class:"yt-option-section-renderer__option-section-secondary-title"},_.B(_.xs,{text:function(){return z().secondaryTitle}}))}}),_.B(_.se,{each:function(){return z().sectionDisclaimers||[]}},function(P){return _.B("div",{class:"yt-option-section-renderer__option-section-disclaimer"},_.B(_.xs,{text:P}))})),_.B(_.V0,{data:function(){return z().optionItems}},{optionItemRenderer:function(P){return _.B("div",{class:"yt-option-section-renderer__option-item"},_.B(sOi,{data:P.data,
className:I,flowStateEntityKey:J,selectionStepStyle:r}))}}),_.B(_.g,{cond:function(){return z().offerText},
then:function(){return _.B("div",{class:"yt-option-section-renderer__option-section-offer-text"},_.B(_.xs,{text:function(){return z().offerText}}))}}))},"Rf");
n00.idomCompat=!0;var K_Z=_.ec(function(a){var z=a.data;var I=a.flowClassName;var J=a.flowStateEntityKey;a=a.isDesktop;var r=function(){var O;return(O=z().flowStateEntityKey)!=null?O:J==null?void 0:J()},P=function(){return(r==null?void 0:r())||""},N=function(){return z().style},u=_.KU(_.qA,P);
_.QO(function(){var O=z(),f=P(),A=u();!_.H(A,QLe)&&O.noPreselect&&f!==""&&O.defaultButtonOverride&&SeE("default",f,O.defaultButtonOverride,A)});
var E={};return _.B("yt-option-selection-flow-step-renderer",{id:"yt-option-selection-flow-step-renderer",class:_.B8("ytm-option-selection-flow-step-renderer",(E["ytm-option-selection-flow-step-renderer--desktop"]=a,E["ytm-option-selection-flow-step-renderer--lp2-style"]=function(){return z().style==="OPTION_SELECTION_FLOW_STEP_RENDERER_STYLE_LP_2"},E))},_.B("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"},
_.B("div",{class:"ytm-option-selection-flow-step-renderer__option-selection-flow-step-header"},_.B(_.xs,{text:function(){return z().header}})),_.B("div",{class:"ytm-option-selection-flow-step-renderer__option-selection-flow-step-subtitle"},_.B(_.xs,{text:function(){return z().subtitle}}))),_.B(_.V0,{data:function(){return z().optionItems||[]}},{optionItemRenderer:function(O){return _.B("div",{class:"ytm-option-selection-flow-step-renderer__option-selection-flow-step-child"},_.B(sOi,{data:O.data,
className:I,flowStateEntityKey:r,selectionStepStyle:N}))},
optionSectionRenderer:function(O){return _.B("div",{class:"ytm-option-selection-flow-step-renderer__option-selection-flow-step-child"},_.B(n00,{data:O.data,flowClassName:I,flowStateEntityKey:r,selectionStepStyle:N}))}}))},"Sf");
K_Z.idomCompat=!0;_.Jf(K_Z,"yt-option-selection-flow-step-renderer",{props:{data:_.zl,flowClassName:_.zl,flowStateEntityKey:_.zl,isDesktop:_.zl}});_.ry=_.ec(function(a){var z=_.q3(a,{type:1,disablePadding:!1,disablePrimaryButton:!1}),I=z.data,J=z.type;a=z.disablePadding;var r=z.disablePrimaryButton,P=z.onClickPrimaryButton,N=function(){return I().stacking==="PANEL_FOOTER_STACKING_VERTICAL"},u=function(){return{disabled:r(),
state:r()?"disabled":"active"}},E=function(){return I().leadingLabel||I().trailingLabel};
z={};return _.B("yt-panel-footer-view-model",{class:_.B8("yt-panel-footer-view-model-wiz",(z["yt-panel-footer-view-model-wiz--hide-divider"]=function(){return I().shouldHideDivider},z["yt-panel-footer-view-model-wiz--disable-padding"]=a,z))},_.B(_.g,{cond:E,
then:function(){var O={},f={};return _.B("div",{class:_.B8("yt-panel-footer-view-model-wiz__text-row",(O["yt-panel-footer-view-model-wiz--row-bottom-padding"]=function(){var A=I();return!(!A.leadingLabel&&!A.trailingLabel||!A.primaryButton&&!A.secondaryButton)},O))},_.B(_.xs,{text:function(){return I().leadingLabel},
className:_.B8((f["yt-panel-footer-view-model-wiz--text-padding"]=E,f))}),_.B(_.xs,{text:function(){return I().trailingLabel}}))}}),_.B(_.g,{cond:N,
then:function(){var O={};return _.B("div",{class:"yt-panel-footer-view-model-wiz__button-stack"},_.B("div",{class:_.B8("yt-panel-footer-view-model-wiz__primary-button",(O["yt-panel-footer-view-model-wiz__button-stack--top-button"]=function(){return I().secondaryButton},O))},_.B(_.V0,{data:function(){return I().primaryButton}},{buttonViewModel:function(f){return _.B(_.At,{data:f.data,
buttonOverrides:u,onClick:P})}})),_.B(_.V0,{data:function(){return I().secondaryButton}},{buttonViewModel:_.At}))}}),_.B(_.g,{cond:function(){return!N()},
then:function(){var O={},f={},A={};return _.B("div",{class:_.B8("yt-panel-footer-view-model-wiz__button-row",(O["yt-panel-footer-view-model-wiz__button-row--trailing"]=function(){return 3===J()},O))},_.B("div",{class:_.B8("yt-panel-footer-view-model-wiz__button-row--left-button",(f["yt-panel-footer-view-model-wiz__button-row--full-width"]=function(){return 1===J()},f["yt-panel-footer-view-model-wiz__button-row--hidden"]=function(){return!I().secondaryButton||0===J()},f["yt-panel-footer-view-model-wiz__button-row--shrink"]=
function(){return 2===J()},f))},_.B(_.V0,{data:function(){return I().secondaryButton}},{buttonViewModel:_.At})),_.B("div",{class:_.B8("yt-panel-footer-view-model-wiz__primary-button",(A["yt-panel-footer-view-model-wiz__button-row--full-width"]=function(){return 0===J()||1===J()},A["yt-panel-footer-view-model-wiz__button-row--expand"]=function(){return 2===J()},A))},_.B(_.V0,{data:function(){return I().primaryButton}},{buttonViewModel:function(n){return _.B(_.At,{data:n.data,
buttonOverrides:u,onClick:P})}})))}}))},"Tf");
_.ry.idomCompat=!0;_.F_f=_.ec(function(a){a=_.q3(a,{disablePadding:!1});var z=a.data,I=a.disablePadding;a=_.hum(function(){return z().formId});
var J=a.submitForm,r=a.isValid,P=a.isSubmitting;return _.B("yt-form-footer-view-model",{class:"ytFormFooterViewModelHost"},_.B(_.V0,{data:function(){return z().panelFooter}},{panelFooterViewModel:function(N){return _.B(_.ry,{data:N.data,
onClickPrimaryButton:function(){J()},
disablePrimaryButton:function(){return!r()||P()},
disablePadding:I})}}))},"Uf");_.Jf(_.F_f,"yt-form-footer-view-model",{props:{data:_.zl,disablePadding:_.zl}});_.Jf(_.ec(function(a){var z=_.K("enable_user_rating_web");return _.B("yt-contributor-zero-state-view-model",{class:"ytContributorZeroStateViewModelHost",style:"height: calc(var(--ytd-watch-flexy-panel-max-height, 720px) - 132px);"},_.B("div",{class:"ytContributorZeroStateViewModelCenterAlignedContent"},_.B(_.g,{cond:function(){var I;return(I=a.data())==null?void 0:I.image},
then:function(I){return _.B(_.qp,{data:I,alt:"",className:"ytContributorZeroStateViewModelCenterAlignedContentImage"})}}),_.B("div",{class:"ytContributorZeroStateViewModelCenterAlignedContentTitle"},_.B(_.xs,{text:function(){var I;
return(I=a.data())==null?void 0:I.title}})),_.B("div",{class:"ytContributorZeroStateViewModelCenterAlignedContentSubtitle"},_.B(_.xs,{text:function(){var I;
return(I=a.data())==null?void 0:I.subtitle}})),_.B(_.g,{cond:function(){return!z},
then:function(){return _.B(_.V0,{data:function(){var I;return(I=a.data())==null?void 0:I.viewTipsButton}},{buttonViewModel:function(I){return _.B(_.At,{data:I.data,
className:"ytContributorZeroStateViewModelCenterAlignedContentButton"})}})}})))},"Vf"),"yt-contributor-zero-state-view-model",{props:{data:_.zl}});var HvE=_.ec(function(a){var z=function(){var I;return(I=a.data())==null?void 0:I.image};
return _.B("yt-featured-content-item-view-model",{class:_.B8("ytFeaturedContentItemViewModelHost")},_.B("div",{class:_.B8(function(){return z()?"ytFeaturedContentItemViewModelItemWithImageContainer":"ytFeaturedContentItemViewModelItemWithIconContainer"})},_.B("div",{class:function(){return z()?"ytFeaturedContentItemViewModelItemWithImage":"ytFeaturedContentItemViewModelItemWithIcon"}},_.B(_.g,{cond:z,
then:function(){return _.B("div",{class:"ytFeaturedContentItemViewModelImage"},_.B(_.V0,{data:function(){return a.data().image}},{themedImageViewModel:function(I){return _.B(P9f,{data:I.data,
className:"ytFeaturedContentItemViewModelThemedImage"})}}))}}),_.B(_.g,{cond:function(){var I;
return!z()&&((I=a.data())==null?void 0:I.iconName)},
then:function(){return _.B("div",{class:"ytFeaturedContentItemViewModelIcon"},_.B(_.nS,{icon:function(){return a.data().iconName}}))}}),_.B("div",{class:"ytFeaturedContentItemViewModelContent"},_.B(_.g,{cond:function(){var I;
return(I=a.data())==null?void 0:I.title},
then:function(){return _.B("div",{class:"ytFeaturedContentItemViewModelContentTitle"},_.B(_.xs,{text:function(){return a.data().title}}))}}),_.B(_.g,{cond:function(){var I;
return(I=a.data())==null?void 0:I.body},
then:function(){return _.B("div",{class:"ytFeaturedContentItemViewModelContentBody"},_.B(_.xs,{text:function(){return a.data().body}}))}})))))},"Wf");var bvV=_.ec(function(a){var z=function(){var r;return i34((r=a.data())==null?void 0:r.titleFontSize)},I=function(){var r;
return xYY((r=a.data())==null?void 0:r.descriptionFontSize)},J=function(){var r;
return((r=a.data())==null?void 0:r.titleFontSize)==="LANDING_PAGE_YOUTUBE_FONT_SIZE_M"};
return _.B("yt-landing-page-view-model",{class:_.B8("ytLandingPageViewModelHost",a.className)},_.B("div",{class:"ytLandingPageViewModelHeader"},_.B(_.g,{cond:function(){var r;return(r=a.data())==null?void 0:r.bannerImage},
then:function(r){return _.B("div",{class:"ytLandingPageViewModelHeaderImage"},_.B(_.V0,{data:function(){return r()}},{imageBannerViewModel:function(P){return _.B(_.me,{data:P.data,
isPositionRelative:!0})}}))}}),_.B(_.g,{cond:function(){var r;
return(r=a.data())==null?void 0:r.bannerAnimation},
then:function(r){return _.B(_.b4,{data:function(){var P=r();if(P==null?0:P.url){var N;P={path:(N=P==null?void 0:P.url)!=null?N:"",autoplay:!0,loop:!0,renderer:"svg"}}else if(P==null?0:P.payload){var u;P={animationData:JSON.parse((u=P==null?void 0:P.payload)!=null?u:""),autoplay:!0,loop:!0,renderer:"svg"}}else P=void 0;return{animationConfig:P}},
animationName:"landing_page_banner_animation",className:"ytLandingPageViewModelHeaderBannerAnimation"})}}),_.B("div",{class:"ytLandingPageViewModelHeaderTitle"},_.B(_.g,{cond:function(){var r;
return(r=a.data())==null?void 0:r.title},
then:function(r){return _.B("div",{class:_.B8("ytLandingPageViewModelHeaderTitleContent",z)},_.B(_.xs,{text:function(){return r()}}))}}),_.B(_.g,{cond:function(){var r;
return(r=a.data())==null?void 0:r.description},
then:function(r){var P={};return _.B(_.xs,{className:_.B8("ytLandingPageViewModelHeaderTitleDescription",I,(P.ytLandingPageViewModelHeaderTitleDescriptionMargin=J,P)),text:function(){return r()}})}}))),_.B(_.g,{cond:function(){var r,P;
return(r=a.data())==null?void 0:(P=r.featuredContentList)==null?void 0:P.length},
then:function(){return _.B("div",{class:"ytLandingPageViewModelFeaturedContentSection"},_.B(_.V0,{data:function(){return a.data().featuredContentList}},{featuredContentItemViewModel:function(r){return _.B(HvE,{data:r.data})}}))}}),_.B(_.g,{cond:function(){var r,P;
return(r=a.data())==null?void 0:(P=r.expandableContentList)==null?void 0:P.length},
then:function(){return _.B("div",{class:"ytLandingPageViewModelFaqSection"},_.B(_.V0,{data:function(){return a.data().expandableContentList}},{faqEntryViewModel:function(r){return _.B("div",{class:"ytLandingPageViewModelFaqSectionEntry"},_.B(_.tXI,{data:r.data}))}}))}}),_.B("div",{class:"ytLandingPageViewModelFooter"},_.B(_.g,{cond:function(){var r;
return(r=a.data())==null?void 0:r.legalCopy},
then:function(r){return _.B("div",{class:"ytLandingPageViewModelFooterLegalCopy"},_.B(_.xs,{text:function(){return r()}}))}}),_.B(_.g,{cond:function(){var r;
return(r=a.data())==null?void 0:r.actions},
then:function(r){return _.B("div",null,_.B(_.V0,{data:function(){return r()}},{flexibleActionsViewModel:function(P){return _.B(_.Dw,{data:P.data,
layout:1,className:"ytLandingPageViewModelFooterActions"})}}))}})))},"Xf");_.Jf(_.ec(function(a){return _.B("yt-lp-section-group-view-model",{class:"ytLpSectionGroupViewModelHost"},_.B("div",{class:"ytLpSectionGroupViewModelContainer"},_.B(_.V0,{data:function(){return a.data().sections}},{landingPageViewModel:function(z){return _.B(bvV,{data:z.data,
className:"ytLpSectionGroupViewModelSection"})}})))},"Yf"),"yt-lp-section-group-view-model",{props:{data:_.zl}});var hXG=_.ec(function(a){var z=_.KU(vSZ,_.Yi(function(){var u;return(u=a.data())==null?void 0:u.noteFeedEntityKey},"")),I=_.KU(y2Y,_.Yi(function(){var u;
return(u=a.data())==null?void 0:u.userRatingEntityKey},"")),J=_.K("enable_user_rating_web"),r=function(){var u,E,O;
return((u=z())==null?0:u.contributorNote)?(E=z())==null?void 0:E.contributorNote:(O=a.data())==null?void 0:O.existingNote},P=function(){var u,E;
return!!I()&&!!GZ0((u=I())==null?void 0:u.helpfulnessValue,(E=a.data())==null?void 0:E.noteData)};
if(J){var N={};return _.B("yt-note-view-model",{class:_.B8("ytNoteViewModelHostUserRating",(N.ytNoteViewModelHostUserRatingPublishedNote=function(){var u,E;return(u=a.data())==null?void 0:(E=u.noteData)==null?void 0:E.isPublished},N))},_.B("div",{class:"ytNoteViewModelMetadataAndOverflowButton"},_.B("div",{class:"ytNoteViewModelMetadataAndOverflowButtonMetadata"},_.B(_.g,{cond:function(){var u,E;
return(u=a.data())==null?void 0:(E=u.noteData)==null?void 0:E.isPinned},
then:function(){return _.B(_.nS,{icon:"KEEP_FILLED",className:"ytNoteViewModelMetadataAndOverflowButtonMetadataIcon"})},
else:function(){return _.B(_.g,{cond:function(){var u,E;return(u=a.data())==null?void 0:(E=u.noteData)==null?void 0:E.isPublished},
then:function(){return _.B(_.nS,{icon:"PEOPLE_NOTE_FILLED",className:"ytNoteViewModelMetadataAndOverflowButtonMetadataIcon"})}})}}),_.B(_.V0,{data:function(){var u;
return(u=a.data())==null?void 0:u.metadata}},{contentMetadataViewModel:_.ub}),_.B("div",{class:"ytNoteViewModelMetadataAndOverflowButtonMetadataDelimiter"},function(){var u,E;
return(E=_.H((u=a.data())==null?void 0:u.metadata,_.Whe))==null?void 0:E.delimiter}),_.B(_.xs,{text:function(){var u;
return(u=r())==null?void 0:u.publishedTimeText},
className:"ytNoteViewModelMetadataAndOverflowButtonMetadataPublishedTimeText"})),_.B(_.V0,{data:function(){var u,E,O,f,A,n,F,h=!!((u=a.data())==null?0:(E=u.noteData)==null?0:E.isPinned);u=P();E=(O=a.data())==null?void 0:O.noteData;O=(f=z())==null?void 0:(A=f.contributorNote)==null?void 0:A.deleteAction;f=(n=a.data())==null?void 0:n.overflowButtonNoteWithRatingOnTapOverride;n=(F=a.data())==null?void 0:F.overflowButton;return h?$YV(E,O):u?{buttonViewModel:{style:"BUTTON_VIEW_MODEL_STYLE_MONO",type:"BUTTON_VIEW_MODEL_TYPE_TEXT",
state:"BUTTON_VIEW_MODEL_STATE_ACTIVE",buttonSize:"BUTTON_VIEW_MODEL_SIZE_XSMALL",iconName:"MORE_VERT",onTap:f}}:n}},{buttonViewModel:function(u){return _.B(_.At,{data:u.data,
className:"ytNoteViewModelMetadataAndOverflowButtonOverflowButton"})}})),_.B("div",{class:"ytNoteViewModelNoteContent"},_.B(_.xs,{text:function(){var u;
return(u=r())==null?void 0:u.text}})),_.B(_.g,{cond:function(){var u,E;
return!((u=a.data())==null?0:(E=u.noteData)==null?0:E.isPinned)},
then:function(){return _.B(_.g,{cond:P,then:function(){return _.B("div",{class:"ytNoteViewModelUserRatingContainer"},_.B(_.xs,{text:function(){var u,E;return GZ0((u=I())==null?void 0:u.helpfulnessValue,(E=a.data())==null?void 0:E.noteData)},
className:"ytNoteViewModelUserRatingContainerText"}))},
else:function(){return _.B(_.V0,{data:function(){var u;return(u=a.data())==null?void 0:u.userRatingButton}},{buttonViewModel:function(u){return _.B(_.At,{data:u.data,
className:"ytNoteViewModelRateThisNoteButton"})}})}})}}),_.B(_.g,{cond:function(){var u,E;
return!((u=a.data())==null?0:(E=u.noteData)==null?0:E.ignoreDivider)},
then:function(){return _.B("div",{class:"ytNoteViewModelDivider"},_.B(_.V0,{data:function(){return{dividerViewModel:{dividerStyle:"DIVIDER_STYLE_FULL_BLEED_THIN"}}}},{dividerViewModel:function(u){return _.B(_.S2J,{data:u.data})}}))}}))}return _.B("yt-note-view-model",{class:"ytNoteViewModelHost",
style:"height: calc(var(--ytd-watch-flexy-panel-max-height, 720px) - 136px);"},_.B("div",{class:"ytNoteViewModelMetadataAndOverflowButton"},_.B("div",{class:"ytNoteViewModelMetadataAndOverflowButtonMetadata"},_.B(_.g,{cond:function(){var u,E;return(u=a.data())==null?void 0:(E=u.noteData)==null?void 0:E.isPinned},
then:function(){return _.B(_.nS,{icon:"KEEP_FILLED",className:"ytNoteViewModelMetadataAndOverflowButtonMetadataNonUserRatingIcon"})},
else:function(){return _.B(_.g,{cond:function(){var u,E;return(u=a.data())==null?void 0:(E=u.noteData)==null?void 0:E.isPublished},
then:function(){return _.B(_.nS,{icon:"PEOPLE_NOTE_FILLED",className:"ytNoteViewModelMetadataAndOverflowButtonMetadataNonUserRatingIcon"})}})}}),_.B(_.g,{cond:function(){return J},
then:function(){return _.B(_.V0,{data:function(){var u;return(u=a.data())==null?void 0:u.metadata}},{contentMetadataViewModel:function(u){return _.B(_.ub,{data:u.data})}})}}),_.B(_.xs,{text:function(){var u,E;
return(u=a.data())==null?void 0:(E=u.noteData)==null?void 0:E.headerText}}),_.B("div",{class:"ytNoteViewModelMetadataAndOverflowButtonMetadataNonUserRatingDelimiter"},_.B(_.xs,{text:function(){var u,E;
return(u=a.data())==null?void 0:(E=u.noteData)==null?void 0:E.delimiter}})),_.B(_.xs,{text:function(){var u,E;
return(u=z())==null?void 0:(E=u.contributorNote)==null?void 0:E.publishedTimeText}})),_.B(_.V0,{data:function(){var u,E,O;
return $YV((u=a.data())==null?void 0:u.noteData,(E=z())==null?void 0:(O=E.contributorNote)==null?void 0:O.deleteAction)}},{buttonViewModel:function(u){return _.B(_.At,{data:u.data,
className:"ytNoteViewModelMetadataAndOverflowButtonOverflowButton"})}})),_.B("div",{class:"ytNoteViewModelNoteContent"},_.B(_.xs,{text:function(){var u,E;
return(u=z())==null?void 0:(E=u.contributorNote)==null?void 0:E.text}})))},"Zf");
hXG.idomCompat=!0;_.Jf(hXG,"yt-note-view-model",{props:{data:_.zl}});var P$=_.ec(function(a){var z=_.q3(a,{label:"",text:"",placeholder:"",hint:"",rows:1,overflowStyle:"scroll-vertically",outline:!1,disabled:!1,disableNewLines:!1,characterLimit:void 0,validation:void 0}),I=z.label,J=z.text,r=z.placeholder,P=z.hint;a=z.rows;var N=z.overflowStyle,u=z.outline,E=z.disabled,O=z.disableNewLines,f=z.characterLimit,A=z.validation,n=z.onInput,F=_.Mm("textarea");z=_.C(_.Af(function(){return J()}));
var h=z.next().value,v=z.next().value;z=_.C(_.CW(!1,void 0,"fXvinf"));var d=z.next().value,W=z.next().value,l=function(){W(!0)},q=function(){W(!1)};
_.QO(function(){var LG=F.value,oE=N(),Pe=h();oE==="expand-vertically"&&Pe&&X3z(LG);F.value.addEventListener("focusin",l);F.value.addEventListener("focusout",q)});
_.V3(function(){F.value.removeEventListener("focusin",l);F.value.removeEventListener("focusout",q)});
var m=function(){var LG;return(LG=A())==null?void 0:LG.validate(h())},M=function(){return f()&&!m()&&h().length>f().maxChars},y=function(){return!!m()||M()};
z=_.g4(function(LG){if(!LG.currentTarget)return!1;LG=LG.currentTarget;v(LG.value);N()==="expand-vertically"&&X3z(LG);n==null||n(LG.value);return!0});
var e=_.g4(function(LG){O()&&LG.key==="Enter"&&LG.preventDefault();return!1}),Bp=_.g4(function(){F.value.focus()}),Em=function(){return r()||I()},nG={},bG={},Hp={};
return _.B("textarea-shape",{class:"ytStandardsTextareaShapeHost"},_.B("div",{class:_.B8("ytStandardsTextareaShapeTextareaContainer",(nG.ytStandardsTextareaShapeTextareaContainerOutline=u,nG.ytStandardsTextareaShapeTextareaContainerOutlineDisabled=E,nG.ytStandardsTextareaShapeTextareaContainerOutlineError=y,nG)),"on:click":Bp},_.B("label",{class:_.B8("ytStandardsTextareaShapeLabel",(bG.ytStandardsTextareaShapeLabelFocused=d,bG.ytStandardsTextareaShapeLabelDisabled=E,bG.ytStandardsTextareaShapeLabelError=
function(){return y()&&!E()},bG.ytStandardsTextareaShapeLabelHidden=function(){return!d()&&!h()&&!!Em()},bG))},I),_.B("div",{class:_.B8("ytStandardsTextareaShapePlaceholder",(Hp.ytStandardsTextareaShapePlaceholderVisible=function(){return!d()&&!h()},Hp)),
"aria-hidden":"true"},Em),_.B("textarea",{el:F,class:"ytStandardsTextareaShapeTextarea",rows:a,disabled:E,placeholder:Em,"on:input":z,"on:keydown":e},h)),_.B(_.g,{cond:function(){return P()&&!y()},
then:function(){var LG={};return _.B("div",{class:_.B8("ytStandardsTextareaShapeHint",(LG.ytStandardsTextareaShapeHintDisabled=E,LG))},_.B("div",{class:"ytStandardsTextareaShapeHintHintMessage"},P))}}),_.B(_.g,{cond:m,
then:function(){return _.B(VFz,{disabled:E},_.B("div",{class:"ytStandardsTextareaShapeErrorMessage"},m))}}),_.B(_.g,{cond:f,
then:function(LG){return _.B(_.g,{cond:M,then:function(){return _.B(VFz,{disabled:E},_.B("div",{class:"ytStandardsTextareaShapeErrorMessage"},function(){return LG().errorMessage}),_.B("div",{class:"ytStandardsTextareaShapeErrorCharacterCount"},function(){return h().length+"/"+LG().maxChars}))}})}}))},"$f");
P$.idomCompat={callbacks:{onInput:!0}};var VFz=_.ec(function(a){var z={};return _.B("div",{class:_.B8("ytStandardsTextareaShapeError",(z.ytStandardsTextareaShapeErrorDisabled=a.disabled,z)),role:"alert"},_.B(_.nS,{icon:"INFO",className:"ytStandardsTextareaShapeErrorIcon",size:16}),a.children)},"ag");_.QO0=_.ec(function(a){var z=a.data;return _.B("text-field-view-model",{class:"ytTextFieldViewModelHost"},_.B(P$,{text:a.text,label:function(){var I;return(I=z().contentProperties)==null?void 0:I.labelText},
placeholder:function(){var I;return(I=z().contentProperties)==null?void 0:I.placeholderText},
hint:function(){var I;return(I=z().contentProperties)==null?void 0:I.hintText},
outline:function(){var I;return!((I=z().displayProperties)==null?0:I.hideBorder)},
overflowStyle:function(){var I;return((I=z().displayProperties)==null?0:I.isMultiline)?"expand-vertically":"scroll-vertically"},
disabled:a.disabled,disableNewLines:function(){var I;return(I=z().displayProperties)==null?void 0:I.disableNewLines},
onInput:a.onInput,characterLimit:a.characterLimit,validation:a.validation,rows:function(){var I;return(I=z().displayProperties)==null?void 0:I.rows}}))},"bg");_.SwM=_.ec(function(a){var z=a.data;return _.B("text-form-field-view-model",{class:"ytTextFormFieldViewModelHost"},_.B(P$,{text:a.text,label:function(){var I;return(I=z().contentProperties)==null?void 0:I.labelText},
placeholder:function(){var I;return(I=z().contentProperties)==null?void 0:I.placeholderText},
hint:function(){var I;return(I=z().contentProperties)==null?void 0:I.hintText},
outline:function(){var I;return!((I=z().displayProperties)==null?0:I.hideBorder)},
overflowStyle:function(){var I;return((I=z().displayProperties)==null?0:I.isMultiline)?"expand-vertically":"scroll-vertically"},
disableNewLines:function(){var I;return(I=z().displayProperties)==null?void 0:I.disableNewLines},
onInput:a.onInput,characterLimit:a.characterLimit,validation:a.validation,rows:function(){var I;return(I=z().displayProperties)==null?void 0:I.rows}}))},"cg");var ivE=_.ec(function(a){var z=_.C(_.Af(function(){var Em,nG;return((Em=a.data().structuredContextNoteFormSchema)==null?0:(nG=Em.initialValues)==null?0:nG.noteBody)?a.data().structuredContextNoteFormSchema.initialValues.noteBody:""})),I=z.next().value,J=z.next().value;
z=_.C(_.Af(function(){a.data();return!1}));
var r=z.next().value,P=z.next().value;z=_.C(_.Af(function(){a.data();return!1}));
var N=z.next().value,u=z.next().value;z=_.C(_.Af(function(){var Em,nG;return((Em=a.data().structuredContextNoteFormSchema)==null?0:(nG=Em.initialValues)==null?0:nG.timestamp)?a.data().structuredContextNoteFormSchema.initialValues.timestamp:""}));
var E=z.next().value,O=z.next().value;z=_.C(_.Af(function(){a.data();return!1}));
var f=z.next().value,A=z.next().value;z=_.C(_.Af(function(){var Em,nG;return((Em=a.data().structuredContextNoteFormSchema)==null?0:(nG=Em.initialValues)==null?0:nG.sources)?[a.data().structuredContextNoteFormSchema.initialValues.sources]:[]}));
var n=z.next().value,F=z.next().value;z=_.C(_.Af(function(){a.data();return!1}));
var h=z.next().value,v=z.next().value;z=_.C(_.Af(function(){return!1}));
var d=z.next().value,W=z.next().value;_.QO(function(){var Em;_.ke0((Em=a.data().structuredContextNoteFormSchema)==null?void 0:Em.id,{isSubmitting:d,onSubmit:function(){W(!0);var nG=lHM(I(),E(),n(),a.data()),bG=_.ab().resolve(_.j6);nG&&bG&&bG.resolveCommand(nG,{commandController:{onSuccess:function(){W(!1)}}})},
isValid:function(){return r()&&!N()&&!f()&&!h()}})});
var l=function(Em){if(Em!==void 0&&(J(Em),!r()&&Em.length>0&&P(!0),r())){var nG=Wsz(a.data());if(nG){var bG=nG.minLength;nG=nG.maxLength;bG&&Em.length<bG?u(!0):nG&&Em.length>nG?u(!0):u(!1)}}},q=function(Em){if(Em!==void 0){O(Em);
if(Em.length>0){var nG,bG,Hp,LG,oE=UYM((nG=a.data())==null?void 0:(bG=nG.structuredContextNoteFormSchema)==null?void 0:(Hp=bG.fieldSchemas)==null?void 0:(LG=Hp.timestamp)==null?void 0:LG.validationSchema);if(oE&&(nG=oE.regex)&&!(new RegExp(nG)).test(Em)){A(!0);return}}A(!1)}},m=function(Em){if(Em!==void 0){var nG=Em.split(/[ \n]/).map(function(bG){return bG.trim()});
F(nG);if(Em.length>0)for(Em=_.C(nG),nG=Em.next();!nG.done;nG=Em.next())if(!LsM(nG.value)){v(!0);return}v(!1)}},M=function(){return{validate:function(Em){if(r()){var nG=Wsz(a.data());
if(nG){var bG=nG.minLength;nG=nG.translations;if(bG&&Em.length<bG)return nG==null?void 0:nG.minLengthErrorMessage}}}}},y=function(){var Em=Wsz(a.data()),nG=Em==null?void 0:Em.maxLength,bG;
Em=Em==null?void 0:(bG=Em.translations)==null?void 0:bG.maxLengthErrorMessage;if(nG&&Em)return{maxChars:nG,errorMessage:Em}},e=function(){return{validate:function(Em){if(Em){var nG,bG,Hp,LG,oE=UYM((nG=a.data())==null?void 0:(bG=nG.structuredContextNoteFormSchema)==null?void 0:(Hp=bG.fieldSchemas)==null?void 0:(LG=Hp.timestamp)==null?void 0:LG.validationSchema);
if(oE&&(nG=oE.regex,oE=oE.translations,nG&&!(new RegExp(nG)).test(Em)))return oE==null?void 0:oE.regexErrorMessage}}}},Bp=function(){return{validate:function(Em){if(Em){var nG,bG,Hp,LG,oE=RxV((nG=a.data())==null?void 0:(bG=nG.structuredContextNoteFormSchema)==null?void 0:(Hp=bG.fieldSchemas)==null?void 0:(LG=Hp.sources)==null?void 0:LG.validationSchema);
if(oE&&(nG=oE.translations,nG==null?0:nG.selectedErrorMessage))for(Em=Em.split(/[ \n]/).map(function(Pe){return Pe.trim()}),Em=_.C(Em),bG=Em.next();!bG.done;bG=Em.next())if(!LsM(bG.value))return Em=void 0,(Em=nG)==null?void 0:Em.selectedErrorMessage}}}};
return _.B("yt-structured-context-note-view-model",{class:"ytStructuredContextNoteViewModelHost",style:"height: calc(var(--ytd-watch-flexy-panel-max-height, 720px) - 209px);"},_.B("div",{class:"ytStructuredContextNoteViewModelTextField"},_.B(_.V0,{data:function(){var Em;return(Em=a.data())==null?void 0:Em.noteContents}},{textFormFieldViewModel:function(Em){return _.B(_.SwM,{data:Em.data,
onInput:l,validation:M,characterLimit:y})},
textFieldViewModel:function(Em){return _.B(_.QO0,{data:Em.data,onInput:l,validation:M,characterLimit:y})}})),_.B("div",{class:"ytStructuredContextNoteViewModelTextField"},_.B(_.V0,{data:function(){var Em;
return(Em=a.data())==null?void 0:Em.noteTimestamp}},{textFormFieldViewModel:function(Em){return _.B(_.SwM,{data:Em.data,
onInput:q,validation:e})},
textFieldViewModel:function(Em){return _.B(_.QO0,{data:Em.data,onInput:q,validation:e})}})),_.B("div",{class:"ytStructuredContextNoteViewModelTextField"},_.B(_.V0,{data:function(){var Em;
return(Em=a.data())==null?void 0:Em.noteSources}},{textFormFieldViewModel:function(Em){return _.B(_.SwM,{data:Em.data,
onInput:m,validation:Bp})},
textFieldViewModel:function(Em){return _.B(_.QO0,{data:Em.data,onInput:m,validation:Bp})}})))},"dg");
ivE.idomCompat=!0;_.Jf(ivE,"yt-structured-context-note-view-model",{props:{data:_.zl}});var xmZ=_.ec(function(a){var z=_.C(_.Af(function(){var P;if((P=a.controlled)==null?0:P.call(a))return[];var N;return(((N=a.data())==null?void 0:N.chips)||[]).map(function(u){u=_.H(u,_.kF);if(u==null?0:u.selected)return p3i(u.chipValue)}).filter(function(u){return u!==void 0})})),I=z.next().value,J=z.next().value,r=function(P){var N=p3i(P.chipValue);
if(N!==void 0){var u;if((u=a.controlled)==null?0:u.call(a))return void a.controlled().onTap(N);P=I().includes(N)?[].concat(_.ih(I().filter(function(O){return O!==N}))):[].concat(_.ih(I()),[N]);
J(P);var E;if((E=a.uncontrolled)==null?0:E.call(a))a.uncontrolled().onUpdate(P)}};
return _.B("chip-selection-form-field-view-model",{class:"ytChipSelectionFormFieldViewModelHost"},_.B(_.se,{each:function(){return a.data().chips||[]}},function(P){return _.B("div",{class:"ytChipSelectionFormFieldViewModelChipWrapper"},_.B(_.VXG,{data:function(){return _.H(P,_.kF)},
selected:function(){var N;if(N=_.H(P,_.kF)){var u=p3i(N.chipValue);if(u!==void 0){var E;N=((E=a.controlled)==null?0:E.call(a))?a.controlled().selectedValues.includes(u):I().includes(u)}else N=void 0}else N=!1;return N},
callback:r}))}))},"eg");var v0E=_.ec(function(a){var z=a.data;var I=function(){var u;return((u=z())==null?void 0:u.flowStateKey)||""},J=_.KU(_.qA,I),r=function(){var u;
return(u=_.H(J(),W5E))==null?void 0:u.chips},P=function(u){if(u!==void 0){var E=r()||[];
E=E.find(function(O){return O===u})?E.filter(function(O){return O!==u}):[].concat(_.ih(E),[u]);
E=Object.assign({},J(),{feedbackFormFlowState:Object.assign({},_.H(J(),W5E),{chips:E})});_.cK(_.Q0("flowStateEntity",I(),E))}},N=function(){var u;
return _.H((u=z())==null?void 0:u.inputBox,ojG)};
a=_.Hr(function(u){var E=N();E=!(E==null?0:E.maxChars)||u.length<=E.maxChars;u=Object.assign({},J(),{feedbackFormFlowState:Object.assign({},_.H(J(),W5E),{detail:u}),abuseReportFlowState:Object.assign({},_.H(J(),x_),{navigationEnabled:E})});_.cK(_.Q0("flowStateEntity",I(),u))},150);
return _.B("yt-feedback-form-view-model",{class:"ytFeedbackFormViewModelHost"},_.B("div",{class:"ytFeedbackFormViewModelChips"},_.B(_.V0,{data:function(){var u;return(u=z())==null?void 0:u.chipSelection}},{chipSelectionFormFieldViewModel:function(u){return _.B(xmZ,{data:u.data,
controlled:function(){return{selectedValues:r()||[],onTap:P}}})}})),_.B("div",{class:"ytFeedbackFormViewModelInputBox"},_.B(P$,{text:function(){var u;
return(u=_.H(J(),W5E))==null?void 0:u.detail},
placeholder:function(){var u;return((u=N())==null?void 0:u.placeholderText)||""},
outline:!0,rows:4,characterLimit:function(){var u=N();if(u&&u.maxChars)return{maxChars:u.maxChars,errorMessage:u.maxCharsExceededErrorMessage||""}},
onInput:a})),_.B("div",{class:"ytFeedbackFormViewModelFooterText"},_.B(_.xs,{text:function(){return z().footerText}})))},"fg");
v0E.idomCompat=!0;_.Jf(v0E,"yt-feedback-form-view-model",{props:{data:_.zl}});var GxZ=_.ec(function(a){var z=a.data;var I=function(){return z().flowStateKey||""},J=_.KU(mIY,I),r=function(){return _.H(J(),x_)},P=function(){if(_.K("enable_gff_accessibility_fix")){var N=!0,u;
if((u=r())==null?0:u.navigationEnabled){var E;_.lN((E=r())==null?void 0:E.navigationCommand);N=!1}u=Object.assign({},J(),{abuseReportFlowState:Object.assign({},r(),{isReportFormDirty:N})});_.cK(_.Q0("flowStateEntity",I(),u))}else _.lN((N=r())==null?void 0:N.navigationCommand)};
return _.B("yt-report-form-bottom-bar-view-model",{class:"ytWebReportFormBottomBarViewModelHost"},_.B("div",{class:"ytWebReportFormBottomBarViewModelBottomBarContainer"},_.B(_.V0,{data:function(){return z().cancelButton}},{buttonViewModel:function(N){return _.B(_.At,{data:N.data,
className:"ytWebReportFormBottomBarViewModelButton",onClick:P})}}),_.B(_.V0,{data:function(){var N;
if(z().navButton){var u=Object;var E=u.assign,O=_.H(z().navButton,_.yw),f=((N=r())==null?0:N.navigationEnabled)||_.K("enable_gff_accessibility_fix")?"BUTTON_VIEW_MODEL_STATE_ACTIVE":"BUTTON_VIEW_MODEL_STATE_DISABLED",A,n;N=_.H((A=r())==null?void 0:A.navigationCommand,_.Wl);A=(n=_.H(N,_.pv))==null?void 0:n.url;u={buttonViewModel:E.call(u,{},O,{state:f,iconName:A?"OPEN_IN_NEW":""})}}else u=void 0;return u}},{buttonViewModel:function(N){return _.B(_.At,{data:N.data,
className:"ytWebReportFormBottomBarViewModelButton",onClick:P})}})))},"gg");
GxZ.idomCompat=!0;_.Jf(GxZ,"yt-report-form-bottom-bar-view-model",{props:{data:_.zl}});var $mE=_.ec(function(a){var z=a.nextStep;return _.B("div",{class:"ytWebReportFormConfirmationPageViewModelRow"},_.B("div",{class:"ytWebReportFormConfirmationPageViewModelIcon","aria-hidden":"true"},_.B(_.nS,{icon:function(){return z().iconName||""}})),_.B("div",null,_.B(_.xs,{text:function(){return z().text},
className:"ytWebReportFormConfirmationPageViewModelNextStepText"})))},"hg"),Xaz=_.ec(function(a){var z=a.data;
var I,J=(I=_.ab().resolve(_.eL(_.kN)))==null?void 0:I(),r=_.KU(_.qA,function(){return z().flowStateKey||""});
return _.B("yt-report-form-confirmation-page-view-model",{class:function(){var P;return((P=_.H(r(),x_))==null?void 0:P.pageType)==="REPORT_FORM_PAGE_TYPE_DIALOG"?"ytWebReportFormConfirmationPageViewModelHostDialog":"ytWebReportFormConfirmationPageViewModelHostPanel"}},_.B("div",{class:function(){var P;
return((P=_.H(r(),x_))==null?void 0:P.pageType)==="REPORT_FORM_PAGE_TYPE_DIALOG"?"ytWebReportFormConfirmationPageViewModelImageDialog":"ytWebReportFormConfirmationPageViewModelImagePanel"}},_.B(_.qp,{data:function(){return J&&z().imageDark?z().imageDark:z().image},
alt:"",targetHeight:115,targetWidth:178,preserveHeight:!0,preserveWidth:!0})),_.B("div",{class:"ytWebReportFormConfirmationPageViewModelConfirmationContainer"},_.B("h1",{class:"ytWebReportFormConfirmationPageViewModelHeader"},function(){return z().confirmationHeader}),_.B("div",{class:"ytWebReportFormConfirmationPageViewModelBody"},_.B(_.xs,{text:function(){return z().confirmationText}})),_.B("div",{class:"ytWebReportFormConfirmationPageViewModelLawEnforcementText"},_.B(_.xs,{text:function(){return z().lawEnforcementText}})),
_.B("h1",{class:"ytWebReportFormConfirmationPageViewModelExpectHeader"},function(){return z().whatToExpectHeader}),_.B(_.g,{cond:function(){return z().nextSteps},
then:function(P){return _.B("div",null,_.B(_.se,{each:P},function(N){return _.B($mE,{nextStep:N})}))}}),_.B(_.g,{cond:function(){return z().legalReportText},
then:function(P){return _.B("div",null,_.B(_.xs,{text:P,className:"ytWebReportFormConfirmationPageViewModelLegalText"}))}})))},"ig");
Xaz.idomCompat=!0;_.Jf(Xaz,"yt-report-form-confirmation-page-view-model",{props:{data:_.zl}});var T2E=_.ec(function(a){var z=a.data;var I=function(){var P;return((P=_.H(z().inputBox,ojG))==null?void 0:P.maxChars)||500},J=function(){return z().flowStateKey||""},r=_.KU(_.qA,J);
a=_.Hr(function(P){P=Object.assign({},r(),{flowFormState:{isValid:P.length<=I()},abuseReportFlowState:{userComments:P,navigationEnabled:!(P.length>I()),isReportFormDirty:!0}});_.M3().dispatch(_.XK("flowStateEntity",J(),P))},150);
_.QO(function(){var P=Object.assign({},r(),{flowFormState:{isValid:!0}});_.M3().dispatch(_.XK("flowStateEntity",J(),P))});
return _.B("yt-report-form-details-page-view-model",{class:function(){var P;return((P=_.H(r(),x_))==null?void 0:P.pageType)==="REPORT_FORM_PAGE_TYPE_DIALOG"?"ytWebReportFormDetailsPageViewModelHostDialog":"ytWebReportFormDetailsPageViewModelHostPanel"}},_.B("h1",{class:function(){var P;
return((P=_.H(r(),x_))==null?void 0:P.pageType)==="REPORT_FORM_PAGE_TYPE_DIALOG"?"ytWebReportFormDetailsPageViewModelHeaderDialog":"ytWebReportFormDetailsPageViewModelHeaderPanel"}},function(){return z().detailsPageHeader}),_.B("div",{class:"ytWebReportFormDetailsPageViewModelBody"},_.B(_.xs,{text:function(){return z().bodyText}})),_.B("div",{class:"ytWebReportFormDetailsPageViewModelInput"},_.B(P$,{label:function(){var P;
return((P=_.H(z().inputBox,ojG))==null?void 0:P.placeholderText)||""},
outline:!0,rows:10,characterLimit:function(){var P;return{errorMessage:((P=_.H(z().inputBox,ojG))==null?void 0:P.maxCharsExceededErrorMessage)||"",maxChars:I()}},
onInput:a})))},"jg");
T2E.idomCompat=!0;_.Jf(T2E,"yt-report-form-details-page-view-model",{props:{data:_.zl}});var dmM=_.ec(function(a){var z=a.data;var I=a.selectedKey;var J=a.onSelected;var r=a.groupName;var P=function(){return z().text},N=function(){return z().attributedText},u=function(){return z().subtext},E=function(){return z().attributedSubtext},O=_.B("div",{class:"ytRadioButtonItemViewModelLabel"},_.B(_.g,{cond:P,
then:function(){return _.B("div",null,P)}}),_.B(_.g,{cond:N,
then:function(){return _.B(_.xs,{text:N})}}),_.B(_.g,{cond:u,
then:function(){return _.B("div",{class:"ytRadioButtonItemViewModelSubText"},u)}}),_.B(_.g,{cond:E,
then:function(){return _.B("div",{class:"ytRadioButtonItemViewModelSubText"},_.B(_.xs,{text:E}))}})),f=function(){if(N()){var n;
return(n=N())==null?void 0:n.content}return P()},A=function(){if(E()){var n;
return(n=E())==null?void 0:n.content}return u()};
a={};return _.B("yt-radio-button-item-view-model",{class:"ytRadioButtonItemViewModelHost"},_.B(_.RP,{name:r,checked:function(){return!(I==null||!I()||z().key!==(I==null?void 0:I()))},
onChange:function(n){J==null||J(n.target,z(),r==null?void 0:r())},
labelRenderable:function(){return O},
ariaLabel:function(){return A()?f()+", "+A():f()},
className:_.B8((a.ytRadioButtonItemViewModelSubTitle=function(){return!!z().subtext},a))}))},"kg");_.W_Z=_.ec(function(a){var z=a.data;var I=a.onSelected;var J=a.selectedKey;var r=a.groupName;var P=function(){return(r==null?void 0:r())||z().key};
return _.B("yt-radio-button-group-view-model",{class:"ytRadioButtonGroupViewModelHost"},_.B("fieldset",{class:"ytRadioButtonGroupViewModelFieldset"},_.B(_.V0,{data:function(){return z().radioButtons}},{radioButtonItemViewModel:function(N){return _.B(dmM,{data:N.data,
onSelected:I,selectedKey:J,groupName:P})}})))},"lg");var o0e=_.ec(function(a){var z=a.data;var I=_.ca("div"),J=function(){return z().flowStateKey||""},r=_.KU(_.qA,J),P=function(){return _.H(r(),x_)};
_.h2(function(){var N,u;if(((N=P())==null?0:N.isReportFormDirty)&&((u=P())==null||!u.navigationEnabled)&&_.K("enable_gff_accessibility_fix")){var E;if(((E=P())==null?void 0:E.pageType)==="REPORT_FORM_PAGE_TYPE_DIALOG"){var O;(O=document.querySelector(".ytWebReportFormReasonSelectPageViewModelHeaderDialog"))==null||O.scrollIntoView()}else{var f;(f=document.querySelector(".ytWebReportFormReasonSelectPageViewModelHeaderPanel"))==null||f.scrollIntoView()}}},"VvP2Ne");
return _.B("yt-report-form-reason-select-page-view-model",{class:function(){var N;return((N=P())==null?void 0:N.pageType)==="REPORT_FORM_PAGE_TYPE_DIALOG"?"ytWebReportFormReasonSelectPageViewModelHostDialog":"ytWebReportFormReasonSelectPageViewModelHostPanel"}},_.B("h1",{class:function(){var N;
return((N=P())==null?void 0:N.pageType)==="REPORT_FORM_PAGE_TYPE_DIALOG"?"ytWebReportFormReasonSelectPageViewModelHeaderDialog":"ytWebReportFormReasonSelectPageViewModelHeaderPanel"}},function(){return z().pageHeader}),_.B("div",{class:"ytWebReportFormReasonSelectPageViewModelBody"},_.B(_.xs,{text:function(){return z().bodyText}})),_.B("div",{class:function(){var N;
return((N=P())==null?void 0:N.pageType)==="REPORT_FORM_PAGE_TYPE_DIALOG"?"ytWebReportFormReasonSelectPageViewModelReasonsDialog":"ytWebReportFormReasonSelectPageViewModelReasonsPanel"}},_.B(_.g,{cond:function(){var N,u;
return((N=P())==null?void 0:N.isReportFormDirty)&&!((u=P())==null?0:u.navigationEnabled)&&_.K("enable_gff_accessibility_fix")},
then:function(){return _.B("div",{class:"ytWebReportFormReasonSelectPageViewModelEmptyReasonError",el:I},_.B(_.nS,{icon:"INFO",className:"ytWebReportFormReasonSelectPageViewModelEmptyReasonErrorIcon",size:16}),_.B("div",{class:"ytWebReportFormReasonSelectPageViewModelEmptyReasonErrorMessage","aria-live":"polite"},function(){return z().emptyReasonSelectErrorMessage}))}}),_.B(_.W_Z,{data:function(){return _.H(z().radioButtonGroup,_.mef)},
onSelected:function(N,u){N=Object.assign({},r(),{abuseReportFlowState:Object.assign({},P(),{reasonKey:u.key,navigationEnabled:!0,isReportFormDirty:!0,navigationCommand:u.command})});_.cK(_.Q0("flowStateEntity",J(),N))},
selectedKey:function(){var N;return(N=P())==null?void 0:N.reasonKey},
groupName:"report-form-reason-select-page"})))},"mg");
o0e.idomCompat=!0;_.Jf(o0e,"yt-report-form-reason-select-page-view-model",{props:{data:_.zl}});var Um0=_.ec(function(a){var z=a.data;var I,J=(I=_.ab().resolve(_.eL(_.kN)))==null?void 0:I();return _.B("yt-report-form-sign-in-page-view-model",{class:"yt-report-form-sign-in-page-view-model"},_.B("div",{class:"yt-report-form-sign-in-page-view-model__sign-in-prompt-image"},_.B(_.qp,{data:function(){return J&&z().imageDark?z().imageDark:z().image},
alt:""})),_.B("div",{class:"yt-report-form-sign-in-page-view-model__sign-in-text-content"},_.B("h1",{class:"yt-report-form-sign-in-page-view-model__sign-in-prompt-header"},function(){return z().header}),_.B(_.xs,{text:function(){return z().text},
className:"yt-report-form-sign-in-page-view-model__sign-in-prompt-body"})))},"ng");
Um0.idomCompat=!0;_.Jf(Um0,"yt-report-form-sign-in-page-view-model",{props:{data:_.zl}});_.Jf(_.ec(function(a){var z=a.data;var I=_.o5(_.w30),J=function(){return z().titleSuperscript},r=function(){return z().answersShelf},P=function(){return z().videoShelf},N=function(){var y;
return(y=z().textInputPlaceholder)==null?void 0:y.content},u=function(){return z().showOpenTextInput&&!_.K("web_hide_explore_hub_until_user_navigates_back_to_home")},E=function(){var y;
return(y=z().textInputValue)==null?void 0:y.content},O=function(){return z().isMultiTurnFlow?z().resetButtonViewModel:void 0},f=!1;
a=_.C(_.CW(!1,void 0,"LyKMqb"));var A=a.next().value,n=a.next().value;a=_.C(_.CW("",void 0,"V3XG3e"));var F=a.next().value,h=a.next().value,v=function(){return{state:A()?"active":"disabled"}};
_.hD(function(){if(u()){E()&&h(E());var y;if(!O()&&((y=I())==null?0:y.stepStates)){var e;y=Object.keys((e=I())==null?void 0:e.stepStates);e=y[y.length-1];var Bp,Em;(e=(Bp=I().stepStates[e])==null?void 0:(Em=Bp.userQuery)==null?void 0:Em.userQuery)&&h(e)}}});
var d=function(y){var e=z().onUpdateText;e&&_.lN(e,{form:{userQuery:y}});h(y)},W=_.Hr(function(y){d(y.target.value.trim())},150),l=_.g4(function(y){var e;
n(!((e=y.target.value)==null||!e.trim())||f);W(y);return!1}),q=_.g4(function(y){if(y.key==="Enter"&&A()){d(y.target.value.trim());
y=void 0;var e=_.H(z().nextButtonViewModel,_.yw),Bp,Em;if(e==null?0:(Bp=e.loggingDirectives)==null?0:(Em=Bp.clientVeSpec)==null?0:Em.uiType){var nG,bG;y=_.uq((nG=e.loggingDirectives)==null?void 0:(bG=nG.clientVeSpec)==null?void 0:bG.uiType)}(Bp=z().onNextStepCommand)&&_.lN(Bp,{forceClickLogging:!0,clickedVisualElement:y})}return!1}),m=function(y,e){f=e;
n(e);if(z().isMultiTurnFlow&&e){var Bp;d((Bp=y==null?void 0:y.text)!=null?Bp:"")}if(_.K("web_hide_explore_hub_until_user_navigates_back_to_home")){var Em,nG,bG;(bG=(nG=(Em=M.value)==null?void 0:Em.closest("ytd-flow-step-renderer"))==null?void 0:nG.querySelector("yt-flow-bottom-bar-view-model button-view-model button"))==null||bG.click()}},M=_.Mm("yt-talk-to-recs-view-model");
a={};return _.B("yt-talk-to-recs-view-model",{class:"ytwTalkToRecsHost",el:M},_.B("div",{class:"ytwTalkToRecsTopCornerButton","aria-label":"More options"},_.B(_.V0,{data:function(){return z().topCornerButton}},{buttonViewModel:_.At})),_.B("div",{class:"ytwTalkToRecsTalkToRecsWrapper"},_.B("div",{class:"ytwTalkToRecsTitle",
role:"heading",tabindex:0},_.B(_.xs,{text:function(){return z().title}}),_.B(_.g,{cond:J,
then:function(){return _.B("sup",{class:"ytwTalkToRecsSuperScript"},_.B(_.xs,{text:J}))}})),_.B("div",{class:"ytwTalkToRecsSubtitle"},_.B(_.xs,{text:function(){return z().subtitle}})),_.B("div",{class:"ytwTalkToRecsResultsShelf"},_.B(_.g,{cond:r,
then:function(){return _.B(_.V0,{data:r},{chipsShelfViewModel:function(y){return _.B("div",{class:"ytwTalkToRecsChipsShelfViewModel"},_.B(_.Up,{data:y.data,callback:m,enableSingleChipSelection:!0}))}})}}),_.B(_.g,{cond:P,
then:function(){return _.B(_.V0,{data:P},{horizontalShelfViewModel:function(y){return _.B("div",{class:"ytwTalkToRecsHorizontalShelfViewModel"},_.B(_.pF,{data:y.data,includeMargin:!0,thumbnailAspectRatio:0}))}})}})),_.B("div",{class:_.B8("ytwTalkToRecsRefinementContainer",(a.ytwTalkToRecsBottomMargin=function(){return z().isMultiTurnFlow},a))},_.B(_.g,{cond:u,
then:function(){return _.B("div",{class:"ytwTalkToRecsUserInputBox"},_.B("input",{type:"text",class:"ytwTalkToRecsTextInput",placeholder:N,value:F,"on:input":l,"on:keyup":q,maxlength:200}))}}),_.B(_.V0,{data:function(){return z().isMultiTurnFlow?z().nextButtonViewModel:void 0}},{buttonViewModel:function(y){return _.B("div",{class:"ytwTalkToRecsFlowControlButtons"},_.B(_.At,{data:y.data,
buttonOverrides:v}))}}),_.B(_.V0,{data:O},{buttonViewModel:function(y){return _.B("div",{class:"ytwTalkToRecsFlowControlButtons"},_.B(_.At,{data:y.data,
onClick:function(){var e=_.H(z().resetButtonViewModel,_.yw);d(F());(e=e==null?void 0:e.onTap)&&_.lN(e)}}))}}))))},"og"),"yt-talk-to-recs-view-model",{props:{data:_.zl}});var mYG={sources:[{clientResource:{imageName:"CHECK"}}]};_.DmZ=_.ec(function(a){var z=_.Mm("div");a=_.q3(a,{error:void 0});var I=a.data,J=a.error,r=a.onSelected;a=_.C(_.Af(function(){return MLY(I())}));
var P=a.next().value,N=a.next().value;ex0(I,function(n){N(n);var F,h,v=kZV((F=I().options)==null?void 0:(h=F[n])==null?void 0:h.value,I().type);r==null||r(v);z.value.focus()});
a=_.g4(function(){if(!I().disabled){var n=I(),F=P(),h=z.value;n.options&&(n=yDZ(n.options,F,n.label),_.ab().resolve(_.T4).openSheet({viewModel:n},h))}});
var u=_.ll$(),E=function(){return!!J()},O=function(){return!!I().disabled},f={},A={};
return _.B("dropdown-view-model",{class:"ytDropdownViewModelHost"},_.B("div",{class:_.B8("ytDropdownViewModelDropdownContainer",(f.ytDropdownViewModelDropdownContainerErrorBorder=E,f.ytDropdownViewModelDropdownContainerDisabled=O,f)),"on:click":a,el:z,role:"combobox",tabindex:0,"on:keydown":u,"aria-invalid":E,"aria-disabled":O,"aria-describedby":function(){return E()?"dropdown-view-model-error":void 0}},_.B("div",{class:"ytDropdownViewModelText"},cDG(I,E,P),Yee(I,P)),_.B("div",{class:_.B8("ytDropdownViewModelChevronDown",
(A.ytDropdownViewModelChevronDownDisabled=O,A))},_.B(_.nS,{icon:"CHEVRON_DOWN"}))),qe0(I,J))},"pg");_.Jf(_.ec(function(a){var z=a.data;var I=function(r){var P=jbZ(z());P.videoMetadata||(P.videoMetadata={});P.videoMetadata.sponsorshipsMetadata||(P.videoMetadata.sponsorshipsMetadata={});P.videoMetadata.sponsorshipsMetadata.minRequiredTier=String(r)},J=function(r){var P=jbZ(z());
P.scheduledRedirectMetadata||(P.scheduledRedirectMetadata={});P.scheduledRedirectMetadata.scheduledRedirectTimeDeltaSec=String(r)};
return _.B("ytfz-schedule-fanzone-view-model",{class:"ytfzScheduleFanzoneViewModelHost"},_.B("section",{class:"ytfzScheduleFanzoneViewModelContentSection"},_.B("h2",{class:"ytfzScheduleFanzoneViewModelTitleGroup"},_.B(_.xs,{text:function(){return z().title}}),_.B(_.nS,{icon:"SCHEDULE_FANZONE",
className:"ytfzScheduleFanzoneViewModelIllustration"})),_.B(_.xs,{text:function(){return z().description},
className:"ytfzScheduleFanzoneViewModelDescription"}),_.B(_.V0,{data:function(){return z().tierChoices}},{dropdownViewModel:function(r){return _.B("div",{class:"ytfzScheduleFanzoneViewModelTierDropdown"},_.B(_.DmZ,{data:r.data,
onSelected:I}))}}),_.B(_.V0,{data:function(){return z().startTimeChoices}},{dropdownViewModel:function(r){return _.B("div",{class:"ytfzScheduleFanzoneViewModelStartTimeDropdown"},_.B(_.DmZ,{data:r.data,
onSelected:J}))}}),_.B(_.xs,{text:function(){return z().notice},
className:"ytfzScheduleFanzoneViewModelNotice"})),_.B("footer",{class:"ytfzScheduleFanzoneViewModelFooterSection"},_.B(_.V0,{data:function(){return z().scheduleButton}},{panelFooterViewModel:_.ry})))},"qg"),"ytfz-schedule-fanzone-view-model",{props:{data:_.zl}});_.Jf(_.ec(function(a){var z=a.data;a=a.className===void 0?"":a.className;var I=_.KU(mIY,function(){return z().flowStateEntityKey||""}),J={};
J=_.B8("ytFlowBottomBarViewModelFlowBottomBarButtons",(J.ytFlowBottomBarViewModelFlowBottomBarButtonsDistributed=function(){return z().style==="FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_FULL_DISTRIBUTED"||z().style==="FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_DISTRIBUTED_SPACE"},J));
var r={},P=_.B8("ytFlowBottomBarViewModelFlowBottomBarPrimaryButton",J,(r.ytFlowBottomBarViewModelFlowBottomBarPrimaryButtonVerticalCentered=function(){return z().style==="FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_VERTICAL_CENTERED"},r.ytFlowBottomBarViewModelFlowBottomBarPrimaryButtonFlexPrimary=function(){return z().style==="FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_FLEX_PRIMARY"},r));
r={};var N=_.B8("ytFlowBottomBarViewModelFlowBottomBarSecondaryButton",J,(r.ytFlowBottomBarViewModelFlowBottomBarSecondaryButtonVerticalCentered=function(){return z().style==="FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_VERTICAL_CENTERED"},r.ytFlowBottomBarViewModelFlowBottomBarSecondaryButtonFullDistributed=function(){return z().style==="FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_FULL_DISTRIBUTED"},r));
J={};J=_.B8("ytFlowBottomBarViewModelFlowBottomBarButtonSection",(J.ytFlowBottomBarViewModelFlowBottomBarButtonSectionVerticalCentered=function(){return z().style==="FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_VERTICAL_CENTERED"},J.ytFlowBottomBarViewModelFlowBottomBarButtonSectionJustifyEnd=function(){return z().style==="FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_JUSTIFY_END"},J.ytFlowBottomBarViewModelFlowBottomBarButtonSectionSpaceBetween=function(){return z().style==="FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_SPACE_BETWEEN"},
J));
a=_.B8("ytFlowBottomBarViewModelHost",a);return _.B("yt-flow-bottom-bar-view-model",{class:a},_.B(_.g,{cond:function(){var u;return(u=z())==null?void 0:u.textSection},
then:function(u){return _.B("div",{class:"ytFlowBottomBarViewModelFlowBottomBarTextSection"},_.B(_.xs,{text:u}))}}),_.B("div",{class:J},_.B(_.V0,{data:function(){return z().secondaryButton}},{buttonViewModel:function(u){return _.B(_.At,{data:u.data,
className:N})}}),_.B(_.V0,{data:function(){return z().primaryButton}},{buttonViewModel:function(u){return _.B(_.At,{data:u.data,
className:P,buttonOverrides:function(){var E;return{disabled:!((E=I())==null||!E.primaryButtonDisabled)}}})}})))},"rg"),"yt-flow-bottom-bar-view-model",{props:{data:_.zl,
className:_.I5}});var RXE="add arrow_left article check circle circle_full creator_academy lock price_tag".split(" "),Zl=function(){var a=_.G.apply(this,arguments)||this;a.enableScrollingFix=!0;a.bottomBar=!1;a.hideBottomBar=!1;a.fitContent=!1;return a};
_.b(Zl,_.G);_.Z=Zl.prototype;_.Z.ready=function(){_.K("enable_pdp_icon_prefetch")&&_.de0(_.ab().resolve(_.SO),0,RXE)};
_.Z.focus=function(a){this.topBar?_.kk(this.topBar,a):this.paperDialog.focus(a)};
_.Z.attached=function(){this.paperDialog||(this.paperDialog=this.hostElement.closest("tp-yt-paper-dialog"));this.JSC$18954_scroller&&(this.JSC$18954_scroller.dialogElement=this.paperDialog,this.JSC$18954_scroller.attached&&typeof this.JSC$18954_scroller.attached==="function"&&this.JSC$18954_scroller.attached())};
_.Z.onDataChanged=function(){var a;this.fitContent=!((a=this.data)==null||!a.fitContent);var z;this.bottomBar=!((z=this.data)==null||!z.bottomBar);this.hideBottomBar=this.containsExploreHub};
_.Z.onProgressChanged=function(){var a,z,I=((z=(a=this.data)==null?void 0:a.progress)!=null?z:0)*100;this.progressElement.style.width=I+"%"};
_.Z.isProgressHidden=function(){var a;return!((a=this.data)==null?0:a.progress)};
_.Z.configureRendererStamper=function(){return{"data.topBarOverride":{id:"top-bar",mapping:{flowTopBarRenderer:"ytd-flow-top-bar-renderer"}},"data.content":{id:"content",mapping:{benefitsFlowStepRenderer:"yt-benefits-flow-step-renderer",channelHistoryRenderer:"ytd-channel-history-renderer",confirmationFlowStepRenderer:"yt-confirmation-flow-step-renderer",creatorGoalSetUpFlowViewModel:"yt-creator-goal-set-up-flow-view-model",scheduleFanzoneViewModel:"ytfz-schedule-fanzone-view-model",contributorZeroStateViewModel:"yt-contributor-zero-state-view-model",
featureEnablementInfoRenderer:"ytd-feature-enablement-info-renderer",featureEnablementSoftEntryRenderer:"yt-feature-enablement-soft-entry-renderer",feedbackFormViewModel:"yt-feedback-form-view-model",freeTextInputFlowStepRenderer:"ytd-free-text-input-flow-step-renderer",infoFlowStepRenderer:"yt-info-flow-step-renderer",infoListFlowStepRenderer:"yt-info-list-flow-step-renderer",lpSectionGroupViewModel:"yt-lp-section-group-view-model",noteViewModel:"yt-note-view-model",offerDetailStepRenderer:"ytd-offer-detail-step-renderer",
offerSelectionStepRenderer:"ytd-offer-selection-step-renderer",pdpViewModel:{component:"pdp-view-model",params:{internalScrolling:!0}},purchaseCompleteStepRenderer:"ytd-purchase-complete-step-renderer",reportFormReasonSelectPageViewModel:"yt-report-form-reason-select-page-view-model",reportFormDetailsPageViewModel:"yt-report-form-details-page-view-model",reportFormConfirmationPageViewModel:"yt-report-form-confirmation-page-view-model",reportFormSignInPageViewModel:"yt-report-form-sign-in-page-view-model",
sectionGroupViewModel:"yt-section-group-view-model",sectionListRenderer:"ytd-section-list-renderer",structuredContextNoteViewModel:"yt-structured-context-note-view-model",surveyFlowStepRenderer:"ytd-survey-flow-step-renderer",talkToRecsViewModel:"yt-talk-to-recs-view-model",ypcTransactionErrorMessageRenderer:"ytd-ypc-transaction-error-message-renderer",optionSelectionFlowStepRenderer:{component:"yt-option-selection-flow-step-renderer",params:{flowClassName:"ytd-flow-step-renderer-content",isDesktop:!0}},
offerSummaryFlowStepRenderer:{component:"yt-offer-summary-flow-step-renderer",params:{flowClassName:"ytd-flow-step-renderer-content",shouldDisableHeaderTopMargin:!0}}}},"data.bottomBar":{id:"bottom-bar",mapping:{reportFormBottomBarViewModel:"yt-report-form-bottom-bar-view-model",formFooterViewModel:"yt-form-footer-view-model",flowBottomBarViewModel:{component:"yt-flow-bottom-bar-view-model",params:{className:"ytd-flow-step-renderer bottom-bar-view-model"}},flowBottomBarRenderer:{matcher:function(a){return _.K("enable_wiz_next_lp2_msof")&&
a&&!a.couponRenderer?"yt-flow-bottom-bar-renderer":"ytd-flow-bottom-bar-renderer"}}}}}};
_.eH.Object.defineProperties(Zl.prototype,{containsExploreHub:{configurable:!0,enumerable:!0,get:function(){var a;return _.K("web_hide_explore_hub_until_user_navigates_back_to_home")&&!!_.H((a=this.data)==null?void 0:a.content,lvG)}}});
Zl.prototype.onProgressChanged=Zl.prototype.onProgressChanged;Zl.prototype.onDataChanged=Zl.prototype.onDataChanged;_.L([_.Q(_.k.YtRendererBehavior),_.p("design:type",Object)],Zl.prototype,"ytRendererBehavior",void 0);_.L([_.Q(_.u4.YtRendererstamperBehavior),_.p("design:type",Object)],Zl.prototype,"ytRendererstamperBehavior",void 0);_.L([_.x(),_.p("design:type",Object)],Zl.prototype,"data",void 0);_.L([_.x({reflectToAttribute:!0}),_.p("design:type",Object)],Zl.prototype,"enableScrollingFix",void 0);
_.L([_.x({reflectToAttribute:!0}),_.p("design:type",Object)],Zl.prototype,"bottomBar",void 0);_.L([_.x({reflectToAttribute:!0}),_.p("design:type",Object)],Zl.prototype,"hideBottomBar",void 0);_.L([_.S("data"),_.p("design:type",Object),_.p("design:paramtypes",[])],Zl.prototype,"containsExploreHub",null);_.L([_.x({reflectToAttribute:!0}),_.p("design:type",Object)],Zl.prototype,"fitContent",void 0);_.L([_.A3("#progress"),_.p("design:type",HTMLElement)],Zl.prototype,"progressElement",void 0);
_.L([_.A3("#scroller"),_.p("design:type",Object)],Zl.prototype,"JSC$18954_scroller",void 0);_.L([_.A3("ytd-flow-top-bar-renderer"),_.p("design:type",HTMLElement)],Zl.prototype,"topBar",void 0);_.L([_.O8("data"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],Zl.prototype,"onDataChanged",null);_.L([_.O8("data.progress"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],Zl.prototype,"onProgressChanged",null);
_.L([_.U({is:"ytd-flow-step-renderer",disableElementRegistration:!0})],Zl);
_.D(Zl,"ytd-flow-step-renderer",function(){if(Kle!==void 0)return Kle;var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-flow-step-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="top-bar" class="style-scope ytd-flow-step-renderer"></div>\n<div id="progress-container" hidden="[[isProgressHidden(data)]]" class="style-scope ytd-flow-step-renderer">\n  <div id="progress" class="style-scope ytd-flow-step-renderer"></div>\n</div>\n<tp-yt-paper-dialog-scrollable id="scroller" class="style-scope ytd-flow-step-renderer">\n  <div id="content" class="style-scope ytd-flow-step-renderer"></div>\n</tp-yt-paper-dialog-scrollable>\n<div id="bottom-bar" class="style-scope ytd-flow-step-renderer"></div>\n');a.content.insertBefore(_.w().content.cloneNode(!0),
a.content.firstChild);return Kle=a},{mode:1});var L_0=function(a){this.resolveCommand=a;this.steps={}},lRZ=function(a,z){z=_.C(z||[]);
for(var I=z.next();!I.done;I=z.next()){I=I.value;var J=Object.values(I)[0],r=void 0;if((r=J)==null?0:r.stepId)a.steps[J.stepId]=I}},mmf=function(a,z){var I,J,r,P,N;
return _.t(function(u){if((I=a.state)==null||!I.currentStepId)return u.return(void 0);J=pai(a);if(!J)return u.return(waz(a));if(r=_.H(J,_.L5z)){var E;((E=r.screenLoggingData)==null?0:E.screenVeType)&&_.fJ(_.Kw(),r.screenLoggingData.screenVeType);((P=r)==null?0:P.onStepStartCommand)&&a.resolveCommand((N=r)==null?void 0:N.onStepStartCommand,{})}if(r&&z){E=r;var O,f,A,n;((O=z.flowLoggingData)==null?0:O.eventNamespace)&&((f=E.flowEventData)==null?0:f.eventType)&&((A=E.flowEventData)==null?0:A.eventMetadata)&&
((n=z.flowLoggingData)==null?0:n.flowType)&&(O=_.Bh(z.flowLoggingData.eventNamespace,E.flowEventData.eventType,E.flowEventData.eventMetadata),_.OM(_.fH(),O,z.flowLoggingData.flowType));z.steps&&!z.steps.includes(J)&&z.steps.push(J)}return u.return(J)})};
L_0.prototype.back=function(){var a;(a=this.state)!=null&&a.stepIdStack&&(this.state.currentStepId=this.state.stepIdStack.pop())};
L_0.prototype.handleUpdateFlowCommand=function(a){a.steps&&lRZ(this,a.steps);a.entityUpdateCommand&&this.resolveCommand(a.entityUpdateCommand,{});a.flowContinuationCommand&&(a=a.flowContinuationCommand)&&(this.getFlowContinuationCommand=a);this.awaitFlowContinuation&&(this.awaitFlowContinuation(pai(this)),this.awaitFlowContinuation=void 0)};
L_0.prototype.reset=function(){this.state=void 0;this.steps={};this.awaitFlowContinuation=this.getFlowContinuationCommand=void 0};
var waz=function(a){return _.t(function(z){return a.getFlowContinuationCommand?z.return(new Promise(function(I){a.awaitFlowContinuation=I;a.getFlowContinuationCommand&&a.resolveCommand(a.getFlowContinuationCommand,{flow_state:a.state})})):z.return(Promise.resolve(void 0))})},pai=function(a){var z;
if((z=a.state)!=null&&z.currentStepId)return a.steps[a.state.currentStepId]};var CC=function(){var a=_.G.apply(this,arguments)||this;a.flowState=new L_0(function(z,I){I=I===void 0?{}:I;_.Og.instance.resolveCommand(z,{form:{form:I,element:a.hostElement}})});
a.initialState=!0;a.isLoading=!1;a.actionMap={"yt-flow-prev-step-command":"handleFlowPrevStepCommand","yt-flow-next-step-command":"handleFlowNextStepCommand","yt-update-flow-command":"handleUpdateFlowCommand","yt-ypc-cancel-recurrence-command":"handleYpcCancelRecurrenceCommand","yt-flow-partial-update-flow-state-entity":"handlePartialUpdateFlowStateEntity"};a.containsTalkToRecs=!1;return a};
_.b(CC,_.G);_.Z=CC.prototype;_.Z.onPopupClosed=function(a){a&&this.hostElement!==a.detail.popupRenderer||(this.flowState.reset(),this.currentFlowStep=this.data=void 0,this.initialState=!0)};
_.Z.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"}}}};
_.Z.focus=function(a){var z=this;_.lK(function(){var I=_.PK(z.hostElement).querySelector("ytd-flow-step-renderer");(I==null?0:I.topBar)?I.focus(a):z.topBar&&_.kk(z.topBar,a)},1)};
_.Z.attached=function(){this.hostElement.setAttribute("dialog","true")};
_.Z.computeTopBarHidden=function(a){var z;return!((z=_.H(a,_.L5z))==null||!z.topBarOverride)};
_.Z.dataChanged=function(){var a=this,z,I;return _.t(function(J){if(J.nextAddress==1){((z=a.data)==null?0:z.steps)&&lRZ(a.flowState,a.data.steps);if((I=a.data)==null?0:I.flowContinuationCommand){var r=a.flowState,P=a.data.flowContinuationCommand;P&&(r.getFlowContinuationCommand=P)}return J.yield(mmf(a.flowState,a.data),2)}a.currentFlowStep=J.yieldResult;_.nu(J)})};
_.Z.flowChanged=function(){var a=this,z;return _.t(function(I){if(I.nextAddress==1){if(!a.flow)return I.return();a.flowState.state=a.flow;a.isLoading=!0;return I.yield(mmf(a.flowState,a.data),2)}z=I.yieldResult;if(!z||a.flow.isLoading)return I.return();a.currentFlowStep=z;a.initialState=!1;a.isLoading=!1;a.autofocusAndRefit();a.updateContainsTalkToRecs();_.nu(I)})};
_.Z.updateContainsTalkToRecs=function(){var a,z=(a=_.H(this.currentFlowStep,_.L5z))==null?void 0:a.content;this.containsTalkToRecs=!!z&&!!_.H(z,lvG)};
_.Z.autofocusAndRefit=function(){var a=this,z=_.ab().resolve(_.eL(_.ET)),I=document.activeElement&&(document.activeElement.tagName==="TEXTAREA"||document.activeElement.tagName==="INPUT"||document.activeElement.tagName==="BUTTON"),J=document.querySelector("yt-report-form-confirmation-page-view-model"),r=document.querySelector("yt-report-form-details-page-view-model"),P=document.querySelector("yt-report-form-reason-select-page-view-model"),N=document.querySelector("yt-contributor-zero-state-view-model"),
u=document.querySelector("yt-structured-context-note-view-model"),E=document.querySelector("yt-note-view-model");(!I&&z&&z.isKeyBoardInUse()||J||!I&&r||!I&&P||N||u||E)&&_.MV(this.hostElement);_.Yv(this,function(){_.PA(a.hostElement,"yt-refit")})};
_.Z.handleUpdateFlowCommand=function(a){this.data&&(a=_.H(a,RZM),a.targetId===this.data.targetId&&(a.flowContinuationCommand&&(this.data.flowContinuationCommand=a.flowContinuationCommand),this.flowState.handleUpdateFlowCommand(a),this.autofocusAndRefit()))};
_.Z.handleFlowNextStepCommand=function(a){this.data&&this.flow&&this.flow.key&&(a=_.H(a,UeV),a.targetId===this.data.targetId&&(a=a.stepId||"",this.ytdReduxBehavior.dispatch(_.XK("flowStateEntity",this.flow.key,{currentStepId:a,stepIdStack:(this.flow.stepIdStack||[]).concat(a)}))))};
_.Z.handleFlowPrevStepCommand=function(a){if(this.data&&this.flow&&this.flow.key&&(a=_.H(a,DeY),a.targetId===this.data.targetId)){var z=[].concat(_.ih(this.flow.stepIdStack||[]));z.length>1?(z.pop(),this.ytdReduxBehavior.dispatch(_.XK("flowStateEntity",this.flow.key,{currentStepId:z[z.length-1],stepIdStack:z}))):a.onFirstStepCommand&&this.ytComponentBehavior.resolveCommand(a.onFirstStepCommand)}};
_.Z.handleYpcCancelRecurrenceCommand=function(a){if(this.data&&this.flow&&this.flow.key&&(a=_.H(a,yPV),a.targetId===this.data.targetId&&a.endpointCommand)){var z=_.H(this.flow,k9e);z&&_.H(a.endpointCommand,_.dTw)&&(_.H(a.endpointCommand,_.dTw).feedbackData=z.surveyFeedback);this.ytComponentBehavior.resolveCommand(a.endpointCommand)}};
_.Z.handlePartialUpdateFlowStateEntity=function(a){this.data&&this.flow&&this.flow.key&&this.ytdReduxBehavior.dispatch(_.XK("flowStateEntity",this.flow.key,a,"REPEATED_FIELDS_MERGE_OPTION_REPLACE"))};
CC.prototype.flowChanged=CC.prototype.flowChanged;CC.prototype.dataChanged=CC.prototype.dataChanged;CC.prototype.onPopupClosed=CC.prototype.onPopupClosed;_.L([_.Q(_.pV),_.p("design:type",Object)],CC.prototype,"ytdReduxBehavior",void 0);_.L([_.Q(_.k.YtRendererBehavior),_.p("design:type",Object)],CC.prototype,"ytRendererBehavior",void 0);_.L([_.Q(_.Ms.YtComponentBehavior),_.p("design:type",Object)],CC.prototype,"ytComponentBehavior",void 0);
_.L([_.Q(_.u4.YtRendererstamperBehavior),_.p("design:type",Object)],CC.prototype,"ytRendererstamperBehavior",void 0);_.L([_.Q(_.Hc.YtActionHandlerBehavior),_.p("design:type",Object)],CC.prototype,"ytActionHandlerBehavior",void 0);_.L([_.x({reflectToAttribute:!0}),_.p("design:type",Object)],CC.prototype,"initialState",void 0);_.L([_.x({reflectToAttribute:!0}),_.p("design:type",Object)],CC.prototype,"isLoading",void 0);_.L([_.x(),_.p("design:type",Object)],CC.prototype,"data",void 0);
_.L([_.x(),_.p("design:type",Object)],CC.prototype,"currentFlowStep",void 0);_.L([_.gz("yt-popup-closed"),_.p("design:type",Function),_.p("design:paramtypes",[CustomEvent]),_.p("design:returntype")],CC.prototype,"onPopupClosed",null);_.L([_.x({selectorArgs:["data.flowStateEntityKey"],selector:mIY}),_.p("design:type",Object)],CC.prototype,"flow",void 0);_.L([_.A3("ytd-flow-top-bar-renderer"),_.p("design:type",HTMLElement)],CC.prototype,"topBar",void 0);
_.L([_.O8("data"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype",Promise)],CC.prototype,"dataChanged",null);_.L([_.x({reflectToAttribute:!0}),_.p("design:type",Object)],CC.prototype,"containsTalkToRecs",void 0);_.L([_.Fe("flow"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype",Promise)],CC.prototype,"flowChanged",null);_.L([_.U({is:"ytd-flow-root-renderer",disableElementRegistration:!0})],CC);
_.yJz=_.Cw()(CC,"ytd-flow-root-renderer",function(){if(nkE!==void 0)return nkE;var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-flow-root-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="top-bar" hidden="[[computeTopBarHidden(currentFlowStep)]]" class="style-scope ytd-flow-root-renderer"></div>\n<div id="content" class="style-scope ytd-flow-root-renderer">\n  <div id="flow-step" class="style-scope ytd-flow-root-renderer"></div>\n  <div id="spinner-overlay" hidden="[[!isLoading]]" class="style-scope ytd-flow-root-renderer">\n    <tp-yt-paper-spinner-lite active="[[isLoading]]" class="style-scope ytd-flow-root-renderer"></tp-yt-paper-spinner-lite>\n  </div>\n</div>\n\n');
a.content.insertBefore(_.w().content.cloneNode(!0),a.content.firstChild);return nkE=a},{mode:_.Np("kevlar_poly_si_batch_j025")?1:2});var kxM;var Sb=null;_.Jf(_.ec(function(a){return _.B("yt-thumbnail-overlay-attribution-view-model",{class:"ytThumbnailOverlayAttributionViewModelHost"},_.B("div",{class:"ytThumbnailOverlayAttributionViewModelInnerContainer"},_.B(_.xs,{text:function(){return a.data().text}}),_.B("span",{class:"ytThumbnailOverlayAttributionViewModelBottomRightCorner"})))},"sg"),"yt-thumbnail-overlay-attribution-view-model",{props:{data:_.zl}});var MF0=_.ec(function(a){var z=a.playerControlsProps;var I=a.isShortsPage;return _.B("yt-bigboard",null,_.B(_.g,{cond:function(){return z().isDragging},
then:function(){return _.B("div",{class:"ytBigboardStoryboardHost"},_.B(_.FOZ,{progressBarProps:z,isShortsPage:I}))}}))},"tg");
MF0.idomCompat=!0;_.Nx={ACCOUNT_LABEL:ii("ACCOUNT_LABEL"),ACT_ON_THIS_COMMENT:ii("ACT_ON_THIS_COMMENT"),ADD_TO_DROPDOWN_LABEL:ii("ADD_TO_DROPDOWN_LABEL"),AD_BADGE_HINT:ii("AD_BADGE_HINT"),AD_BADGE_TEXT:ii("AD_BADGE_TEXT"),ALL_CHANNELS_LABEL:ii("ALL_CHANNELS_LABEL"),AMBIENT_MODE:ii("AMBIENT_MODE"),AMBIENT_MODE_OFF:ii("AMBIENT_MODE_OFF"),AMBIENT_MODE_ON:ii("AMBIENT_MODE_ON"),ANDROID_DEPRECATION_MESSAGE_BODY:ii("ANDROID_DEPRECATION_MESSAGE_BODY"),ANDROID_DEPRECATION_MESSAGE_HEADER:ii("ANDROID_DEPRECATION_MESSAGE_HEADER"),
APP_UPSELL_SUBTITLE:ii("APP_UPSELL_SUBTITLE"),APP_UPSELL_TITLE:ii("APP_UPSELL_TITLE"),AUTONAV_TOGGLE:ii("AUTONAV_TOGGLE"),AUTOPLAY_IN_TEN_SECONDS:ii("AUTOPLAY_IN_TEN_SECONDS"),AUTOPLAY_PAUSED:ii("AUTOPLAY_PAUSED"),AUTOPLAY_PLAY_NOW:ii("AUTOPLAY_PLAY_NOW"),AUTOPLAY_UP_NEXT_IN:ii("AUTOPLAY_UP_NEXT_IN"),AUTO_ZOOM:ii("AUTO_ZOOM","Auto zoom"),BACK:ii("BACK"),CANCEL:ii("CANCEL"),CHANNEL_SWITCHER_LABEL:ii("CHANNEL_SWITCHER_LABEL"),CLOSE:ii("CLOSE","close"),CLOSED_CAPTIONS_DISABLED:ii("CLOSED_CAPTIONS_DISABLED"),
CLOSED_CAPTIONS_OFF:ii("CLOSED_CAPTIONS_OFF"),CLOSED_CAPTIONS_ON:ii("CLOSED_CAPTIONS_ON"),CLOSED_CAPTIONS_ON_LANGUAGE:ii("CLOSED_CAPTIONS_ON_LANGUAGE"),CLOSE_SEARCH_LABEL:ii("CLOSE_SEARCH_LABEL"),CLOSE_SETTINGS_LABEL:ii("CLOSE_SETTINGS_LABEL"),COMMENT_MODAL_CONTENT:ii("COMMENT_MODAL_CONTENT"),CONFIRM_OK:ii("CONFIRM_OK"),CONNECT_TO_THE_INTERNET:ii("CONNECT_TO_THE_INTERNET"),COPIED_TO_CLIPBOARD:ii("COPIED_TO_CLIPBOARD"),COPY:ii("COPY"),COPY_DEBUG_INFO:ii("COPY_DEBUG_INFO"),COPY_EMBED_CODE:ii("COPY_EMBED_CODE"),
COPY_LINK_LABEL:ii("COPY_LINK_LABEL"),COPY_VIDEO_URL:ii("COPY_VIDEO_URL"),COPY_VIDEO_URL_AT_CURRENT_TIME:ii("COPY_VIDEO_URL_AT_CURRENT_TIME"),CREATE_CHANNEL_TITLE:ii("CREATE_CHANNEL_TITLE"),DELETE_FROM_DOWNLOADS:ii("DELETE_FROM_DOWNLOADS"),DIALOG:ii("DIALOG"),DONE:ii("DONE"),DOWNLOAD:ii("DOWNLOAD"),FAILED_COPY_ERROR_MESSAGE:ii("FAILED_COPY_ERROR_MESSAGE"),FLAG_CONFIRM:ii("FLAG_CONFIRM"),FLAG_CONTENT:ii("FLAG_CONTENT"),FLAG_LABEL:ii("FLAG_LABEL"),FLAG_TITLE:ii("FLAG_TITLE"),FULLSCREEN_GENERIC_ERROR:ii("FULLSCREEN_GENERIC_ERROR"),
GOOGLE_COMPANY:ii("GOOGLE_COMPANY"),HIDE_PLAYER_CONTROLS:ii("HIDE_PLAYER_CONTROLS","Hide player controls"),HIDE_PLAYLIST_VIDEOS:ii("HIDE_PLAYLIST_VIDEOS"),HIDE_SEARCH_FILTERS_LABEL:ii("HIDE_SEARCH_FILTERS_LABEL"),HOME:ii("HOME","Home"),INVALID_RESPONSE_RECEIVED:ii("INVALID_RESPONSE_RECEIVED"),LIBRARY:ii("LIBRARY","Library"),LISTENING:ii("LISTENING"),LOADING:ii("LOADING"),LONG_PRESS_MIC_TO_SPEAK:ii("LONG_PRESS_MIC_TO_SPEAK","Long press mic_icon_placeholder to speak"),LOOP:ii("LOOP"),MENU_DESKTOP:ii("MENU_DESKTOP"),
MENU_EXIT:ii("MENU_EXIT"),MENU_FEEDBACK:ii("MENU_FEEDBACK"),MENU_HELP:ii("MENU_HELP"),MENU_IMPRESSUM:ii("MENU_IMPRESSUM"),MENU_PLAYER_SETTINGS:ii("MENU_PLAYER_SETTINGS"),MENU_SETTINGS:ii("MENU_SETTINGS"),MENU_SIGN_IN:ii("MENU_SIGN_IN"),MENU_TITLE:ii("MENU_TITLE"),MENU_YOUR_DATA:ii("MENU_YOUR_DATA"),MORE_INFO:ii("MORE_INFO"),MORE_OPTIONS:ii("MORE_OPTIONS"),MUTE_VOLUME:ii("MUTE_VOLUME"),NEW_PLAYLIST:ii("NEW_PLAYLIST"),NEXT_VIDEO:ii("NEXT_VIDEO"),NOTIFICATION_ERROR_MESSAGE:ii("NOTIFICATION_ERROR_MESSAGE"),
NOT_FOUND_CTA:ii("NOT_FOUND_CTA"),NOT_FOUND_MESSAGE:ii("NOT_FOUND_MESSAGE"),NOT_FOUND_TITLE:ii("NOT_FOUND_TITLE"),NO_DOWNLOADS:ii("NO_DOWNLOADS"),NO_MIC_INPUT:ii("NO_MIC_INPUT"),OFFLINE_CHECK_CONNECTION:ii("OFFLINE_CHECK_CONNECTION"),OOPS_MESSAGE:ii("OOPS_MESSAGE"),OPEN_APP:ii("OPEN_APP"),OPEN_YOUTUBE:ii("OPEN_YOUTUBE"),PAUSE:ii("PAUSE"),PLAY:ii("PLAY"),PLAYER_CAPTION:ii("PLAYER_CAPTION"),PLAYER_CAPTION_OFF:ii("PLAYER_CAPTION_OFF"),PLAYER_CAPTION_ON:ii("PLAYER_CAPTION_ON"),PLAYER_DOUBLE_SPEED_USER_EDU:ii("PLAYER_DOUBLE_SPEED_USER_EDU"),
PLAYER_DOUBLE_TAP_TO_SEEK:ii("PLAYER_DOUBLE_TAP_TO_SEEK"),PLAYER_DOUBLE_TAP_TO_SHOW_OR_HIDE_PLAYER_CONTROLS:ii("PLAYER_DOUBLE_TAP_TO_SHOW_OR_HIDE_PLAYER_CONTROLS"),PLAYER_EXIT_FULLSCREEN:ii("PLAYER_EXIT_FULLSCREEN"),PLAYER_FASTFORWARD_SECONDS:ii("PLAYER_FASTFORWARD_SECONDS"),PLAYER_FULLSCREEN:ii("PLAYER_FULLSCREEN"),PLAYER_LIVE_LABEL:ii("PLAYER_LIVE_LABEL"),PLAYER_LIVE_NOW:ii("PLAYER_LIVE_NOW"),PLAYER_MINIMIZE:ii("PLAYER_MINIMIZE"),PLAYER_NEXT:ii("PLAYER_NEXT"),PLAYER_PAUSE:ii("PLAYER_PAUSE"),PLAYER_PLAY:ii("PLAYER_PLAY"),
PLAYER_PREVIOUS:ii("PLAYER_PREVIOUS"),PLAYER_PROGRESS_BAR:ii("PLAYER_PROGRESS_BAR"),PLAYER_QUALITY:ii("PLAYER_QUALITY"),PLAYER_QUALITY_AUTO:ii("PLAYER_QUALITY_AUTO"),PLAYER_REPLAY:ii("PLAYER_REPLAY"),PLAYER_REWIND_SECONDS:ii("PLAYER_REWIND_SECONDS"),PLAYER_SPEED:ii("PLAYER_SPEED"),PLAYER_SPEEDUP_USER_EDU:ii("PLAYER_SPEEDUP_USER_EDU"),PLAYER_SPEED_DECREASE:ii("PLAYER_SPEED_DECREASE"),PLAYER_SPEED_INCREASE:ii("PLAYER_SPEED_INCREASE"),PLAYER_SPEED_NORMAL:ii("PLAYER_SPEED_NORMAL"),PLAYER_SPEED_RECENT:ii("PLAYER_SPEED_RECENT"),
PLAYER_TIME_DURATION:ii("PLAYER_TIME_DURATION"),PLAYER_TIME_ELAPSED:ii("PLAYER_TIME_ELAPSED"),PLAYLIST_DESCRIPTION_INVALID_CHARACTERS:ii("PLAYLIST_DESCRIPTION_INVALID_CHARACTERS"),PLAYLIST_MIX_DETAILED_LONG_BYLINE:ii("PLAYLIST_MIX_DETAILED_LONG_BYLINE"),PLAYLIST_NAME_INVALID_CHARACTERS:ii("PLAYLIST_NAME_INVALID_CHARACTERS"),PLAYLIST_NAME_MISSING:ii("PLAYLIST_NAME_MISSING"),PLAYLIST_NAME_TOO_LONG:ii("PLAYLIST_NAME_TOO_LONG"),PLAYLIST_PANEL_END_OF_PLAYLIST:ii("PLAYLIST_PANEL_END_OF_PLAYLIST"),PLAYLIST_PANEL_NEXT:ii("PLAYLIST_PANEL_NEXT"),
PLAYLIST_PANEL_UNLISTED_PLAYLIST:ii("PLAYLIST_PANEL_UNLISTED_PLAYLIST"),PLAYLIST_TEXT_INPUT_CHAR_COUNT:ii("PLAYLIST_TEXT_INPUT_CHAR_COUNT"),PLAY_ALL:ii("PLAY_ALL"),PLEASE_FIX_ERRORS:ii("PLEASE_FIX_ERRORS"),PREMIUM_BADGE_LABEL:ii("PREMIUM_BADGE_LABEL","Premium"),PREVIOUS_VIDEO:ii("PREVIOUS_VIDEO"),PRIVACY_POLICY:ii("PRIVACY_POLICY"),RELOAD:ii("RELOAD"),REQUIRED_LABEL:ii("REQUIRED_LABEL"),SAVE_PLAYLIST:ii("SAVE_PLAYLIST"),SCRUB_SLIDE_USER_EDU:ii("SCRUB_SLIDE_USER_EDU"),SEARCH:ii("SEARCH","Search"),
SEARCH_APPEND_LABEL:ii("SEARCH_APPEND_LABEL"),SEARCH_CHANNEL:ii("SEARCH_CHANNEL"),SEARCH_CLEAR_LABEL:ii("SEARCH_CLEAR_LABEL"),SEARCH_ENTITY_SUGGESTION_ALBUM_NO_ARTIST:ii("SEARCH_ENTITY_SUGGESTION_ALBUM_NO_ARTIST","Album"),SEARCH_ENTITY_SUGGESTION_MOVIE:ii("SEARCH_ENTITY_SUGGESTION_MOVIE","Movie"),SEARCH_ENTITY_SUGGESTION_SONG_NO_ARTIST:ii("SEARCH_ENTITY_SUGGESTION_SONG_NO_ARTIST","Song"),SEARCH_ENTITY_SUGGESTION_TV_SHOW:ii("SEARCH_ENTITY_SUGGESTION_TV_SHOW","TV Show"),SEARCH_FILTERS_LABEL:ii("SEARCH_FILTERS_LABEL"),
SEARCH_LABEL:ii("SEARCH_LABEL"),SEARCH_PPP_PLACEHOLDER_TEXT:ii("SEARCH_PPP_PLACEHOLDER_TEXT"),SEEK_SLIDER:ii("SEEK_SLIDER"),SETTINGS_LABEL:ii("SETTINGS_LABEL"),SETTINGS_MIC_PERMISSION:ii("SETTINGS_MIC_PERMISSION"),SHORTS_TAB_LABEL:ii("SHORTS_TAB_LABEL","Shorts"),SHOW_LESS:ii("SHOW_LESS"),SHOW_MORE:ii("SHOW_MORE"),SHOW_PLAYER_CONTROLS:ii("SHOW_PLAYER_CONTROLS","Show player controls"),SHOW_PLAYLIST_VIDEOS:ii("SHOW_PLAYLIST_VIDEOS"),SHOW_SEARCH_FILTERS_LABEL:ii("SHOW_SEARCH_FILTERS_LABEL"),SIGN_IN_LABEL:ii("SIGN_IN_LABEL"),
SIGN_IN_ON_WEB:ii("SIGN_IN_ON_WEB"),STABLE_VOLUME:ii("STABLE_VOLUME"),STABLE_VOLUME_OFF:ii("STABLE_VOLUME_OFF"),STABLE_VOLUME_ON:ii("STABLE_VOLUME_ON"),STATS_FOR_NERDS:ii("STATS_FOR_NERDS"),SUGGESTION_DISMISSED_LABEL:ii("SUGGESTION_DISMISSED_LABEL"),SUGGESTION_DISMISS_LABEL:ii("SUGGESTION_DISMISS_LABEL"),SUGGESTION_NEW_VIDEOS_TEXT:ii("SUGGESTION_NEW_VIDEOS_TEXT"),SUGGESTION_THUMBNAIL_ATTRIBUTION_LABEL:ii("SUGGESTION_THUMBNAIL_ATTRIBUTION_LABEL","View image source"),SUGGESTION_THUMBNAIL_LABEL:ii("SUGGESTION_THUMBNAIL_LABEL"),
TERMS_OF_SERVICE:ii("TERMS_OF_SERVICE"),TIMESTAMP_MINUTES:ii("TIMESTAMP_MINUTES"),TIMESTAMP_SECONDS:ii("TIMESTAMP_SECONDS"),TOGGLE_OFF:ii("TOGGLE_OFF"),TOGGLE_ON:ii("TOGGLE_ON"),TRENDING:ii("TRENDING"),TROUBLESHOOT_PLAYBACK_ISSUE:ii("TROUBLESHOOT_PLAYBACK_ISSUE"),TRY_AGAIN_LATER:ii("TRY_AGAIN_LATER"),TRY_AGAIN_MIC_PERMISSION:ii("TRY_AGAIN_MIC_PERMISSION"),TURN_OFF_AUTOPLAY_CONFIRM_BUTTON_TITLE:ii("TURN_OFF_AUTOPLAY_CONFIRM_BUTTON_TITLE"),TURN_OFF_AUTOPLAY_DIALOG_DESCRIPTION:ii("TURN_OFF_AUTOPLAY_DIALOG_DESCRIPTION"),
TURN_OFF_AUTOPLAY_DIALOG_TITLE:ii("TURN_OFF_AUTOPLAY_DIALOG_TITLE"),UNMUTE_VOLUME:ii("UNMUTE_VOLUME"),VIDEO_LINK_LABEL:ii("VIDEO_LINK_LABEL")};var cJ4=_.ec(function(a){var z=a.playerApi;a=_.Mm("button",function(J){_.zh(J,36843)});
var I=ii("PLAYER_FASTFORWARD_SECONDS","",{seconds_placeholder:"30"});return _.B("jump-forward-button",{class:"ytPlayerControlsJumpForwardButtonHost"},_.B("button",{el:a,class:"ytPlayerControlsJumpForwardButtonButton",title:I,"aria-label":I,"on:click":_.g4(function(){_.IF(36843);z&&z().seekBy(30);window.dispatchEvent(new CustomEvent("jump-forward-clicked"));return!1})},_.B("span",null,_.B(_.nS,{icon:"FAST_FORWARD"}))))},"ug");var Yw0=_.ec(function(a){var z=a.appApi;a=_.Mm("button",function(J){_.zh(J,62946)});
var I=ii("OPEN_IN_MINIPLAYER");return _.B("miniplayer-button",{class:"ytMiniplayerButtonHost"},_.B("button",{el:a,class:"ytMiniplayerButtonButton",title:I,"aria-label":I,"on:click":_.g4(function(){_.IF(62946);var J,r;(r=(J=z()).openInMiniplayer)==null||r.call(J);return!1})},_.B(_.nS,{icon:"PICTURE_IN_PICTURE",
active:!1})))},"vg");var qwZ=_.ec(function(a){var z=a.playerApi;a=_.Mm("button",function(P){_.zh(P,142812)});
var I=_.C(_.CW(!1,void 0,"I3VCyb")),J=I.next().value,r=I.next().value;I=function(){return ii("SET_PLAYBACK_SPEED_X","",{speed_rate_placeholder:""+(J()?1:2)})};
return _.B("yt-playback-speed-button",{class:"ytPlaybackSpeedButtonHost"},_.B("button",{el:a,class:"ytPlaybackSpeedButtonButton",title:I,"aria-label":I,"on:click":_.g4(function(){_.IF(142812);if(z){var P=z(),N=J();P.setPlaybackRate(N?1:2);r(!J())}return!1})},_.B("span",null,_.B(_.nS,{icon:function(){return J()?"PLAY_ARROW_HALF_CIRCLE_FILLED":"PLAY_ARROW_HALF_CIRCLE"}}))))},"wg");var eX4=_.ec(function(a){var z=a.title;var I=a.ariaLabel;var J=a.icon;var r=a.command;var P=a.veType;a=_.Mm("button",function(N){P&&_.zh(N,P())});
return _.B("ytd-thumbnail-overlay-button",{class:"ytdThumbnailOverlayButtonHost"},_.B("button",{el:a,class:"ytdThumbnailOverlayButtonButton",title:z,"aria-label":I,"on:click":_.g4(function(){P&&_.IF(P());r&&_.ab().resolve(_.j6).resolveCommand(r())})},_.B(_.nS,{icon:J})))},"xg");var nr="";var aVi=_.ec(function(a){var z=a.playerControlsProps,I=a.onClickFn;a=_.Bg(function(){var P=z(),N=-1;P.captionsAvailable&&(N=P.captionsEnabled?1:0);return N},void 0,"WecR8e");
var J=_.Bg(function(){var P=z();return P.captionsAvailable?_.AR(P.captionsEnabled?"CLOSED_CAPTIONS_ON":"CLOSED_CAPTIONS_OFF"):_.AR("CLOSED_CAPTIONS_DISABLED")},void 0,"atEfde"),r=_.Bg(function(){var P=z();
P=P.captionsAvailable?P.captionsEnabled:void 0;return P},void 0,"Q17ly");
return _.B("yt-closed-captions-toggle-button",null,_.B(_.OWZ,{captionIconType:a,ariaLabel:J,ariaPressed:r,onClick:function(P){var N=z();if(N.captionsAvailable){var u=N.playerApi;if(u){var E=N.playerApi;if(E){var O=nr;if(O){E=E.getOption("captions","track");var f;nr=(f=E?E.displayName:null)!=null?f:O}else _.jb(E)?(O=_.Si0(E),nr=O.length?(f=MJ0(O))?f.displayName:O[0].displayName:""):nr=""}c2f(u);_.K("mweb_disable_set_state_captions_killswitch")&&N.setState({captionsEnabled:!N.captionsEnabled})}}var A,
n;(n=(A=N.appApi).showCaptionsToggleToast)==null||n.call(A,N);I==null||I(P)},
isOverlay:!0}))},"yg");var jG4=_.ec(function(a){var z=a.data;return _.B("yt-premiere-trailer-badge",{class:"yt-premiere-trailer-badge"},_.B(_.pd,{data:function(){return{type:17,text:_.lz3(z().label)}}}))},"zg");var zQz=_.ec(function(a){var z=_.B8("ytPlayerControlsAnimatedSeekArrowsArrow",function(){return a.direction()===1?"ytPlayerControlsAnimatedSeekArrowsForwardArrow":"ytPlayerControlsAnimatedSeekArrowsBackwardArrow"},function(){return a.size()==="small"?"ytPlayerControlsAnimatedSeekArrowsArrowSmall":"ytPlayerControlsAnimatedSeekArrowsArrowLarge"},function(){return a.size()==="small"?a.direction()===1?"ytPlayerControlsAnimatedSeekArrowsArrowSmallForward":"ytPlayerControlsAnimatedSeekArrowsArrowSmallBackward":
a.direction()===1?"ytPlayerControlsAnimatedSeekArrowsArrowLargeForward":"ytPlayerControlsAnimatedSeekArrowsArrowLargeBackward"});
return _.B("animated-seek-arrows",{class:_.B8("ytPlayerControlsAnimatedSeekArrowsHost")},_.B("span",{class:z}),_.B("span",{class:z}),_.B("span",{class:z}))},"Ag");
zQz.idomCompat=!0;var IVG=_.ec(function(){var a=_.AR("PLAYER_SECONDS",{seconds_placeholder:"30"}),z=_.C(_.CW(!1,void 0,"Yj8msb")),I=z.next().value,J=z.next().value,r=_.C(_.CW(!1,void 0,"r9Z50e"));z=r.next().value;var P=r.next().value;r={};var N=_.B8("jumpForwardOverlayOverlay",(r.jumpForwardOverlayOverlayHidden=z,r));_.QO(function(){var u=null,E=null,O=function(){u!==null&&_.ig().cancelJob(u);E!==null&&_.ig().cancelJob(E);P(!0);J(!0);_.NK(_.ig(),function(){P(!1)});
u=_.NK(_.ig(),function(){P(!0);E=_.NK(_.ig(),function(){J(!1)},200)},600)};
window.addEventListener("jump-forward-clicked",O);_.V3(function(){window.removeEventListener("jump-forward-clicked",O)})});
return _.B("jump-forward-overlay",{class:"jumpForwardOverlayHost"},_.B(_.g,{cond:I,then:function(){return _.B("div",{class:N},_.B(zQz,{direction:1,size:"large"}),_.B("div",null,a))}}))},"Bg");var JG0=_.Nx.MUTE_VOLUME,rGZ=_.Nx.UNMUTE_VOLUME,Pa0=_.ec(function(a){var z=a.muteIconType;var I=a.onClick;var J=a.useOutlineIcon;var r=a.useDelhiIcons;a=_.Mm("button",function(u){_.zh(u,28662)});
var P=function(){var u=z(),E=J==null?void 0:J(),O=r==null?void 0:r(),f="",A="";switch(u){case -1:case 0:f=E?"VOLUME_OFF":O?"VOLUME_OFF_DELHI_PLAYER":"VOLUME_OFF_FILLED";A=rGZ;break;case 1:f=E?"VOLUME_UP_OUTLINE":O?"VOLUME_UP_DELHI_PLAYER_FILLED":"VOLUME_UP_FILLED";A=JG0;break;case 2:f=E?"VOLUME_DOWN_OUTLINE":O?"VOLUME_DOWN_DELHI_PLAYER_FILLED":"VOLUME_DOWN_FILLED";A=JG0;break;default:_.Rw(u)}return{iconName:f,ariaLabel:A}},N=function(){return P().ariaLabel};
return _.B("ytm-mute-button",{class:"ytmMuteButtonHost"},_.B("button",{el:a,class:"ytmMuteButtonButton",title:N,"aria-label":N,"on:click":_.g4(function(u){_.IF(28662);I==null||I(u);return!1})},_.B("span",null,_.B(_.nS,{icon:function(){return P().iconName}}))))},"Cg");var Z6V=_.ec(function(a){var z=a.volumeProps;var I=a.onClickFn;var J=a.useOutlineIcon;var r=a.useDelhiIcons;return _.B("yt-mute-toggle-button",null,_.B(Pa0,{muteIconType:function(){var P=z();return P.volumeMuted||P.volume===0?0:P.volume>50?1:2},
onClick:function(P){var N=z().playerApi;N&&(N.isMuted()?N.unMute():N.mute(!1));I==null||I(P)},
useOutlineIcon:function(){return!(J==null||!J())},
useDelhiIcons:function(){return!(r==null||!r())}}))},"Dg");
Z6V.idomCompat=!0;var Caf=_.ec(function(a){var z=a.data;var I=_.Mm("ytm-paid-content-overlay-renderer");return _.B("ytm-paid-content-overlay-renderer",{class:"ytmPaidContentOverlayHost",el:I,"on:animationend":_.g4(function(){I.value.classList.add("ytmPaidContentOverlayHidden");return!1})},_.B(_.lq,{command:function(){return z().navigationEndpoint},
className:"ytmPaidContentOverlayLink"},_.B(_.g,{cond:function(){var J;return(J=z().icon)==null?void 0:J.iconType},
then:function(){return _.B("span",null,_.B(_.nS,{icon:function(){var J;return(J=z().icon)==null?void 0:J.iconType}}))}}),_.B("div",{class:"ytmPaidContentOverlayText"},_.B(_.xs,{text:function(){return z().text}})),_.B(_.g,{cond:function(){return z().navigationEndpoint},
then:function(){return _.B(_.nS,{icon:"CHEVRON_RIGHT"})}})))},"Eg");
Caf.idomCompat=!0;var fve=[].concat(_.ih([{register:function(a){var z=QbG(a),I;(I=a().playerApi)==null||I.addEventListener("onVolumeChange",z);return function(){}}},
{register:function(a){var z=Szi(a);a=a().playerApi;a==null||a.addEventListener("captionschanged",z);a==null||a.addEventListener("captionssettingschanged",z);a==null||a.addEventListener("onCaptionsTrackListChanged",z);return function(){}}},
{register:function(a){if(!_.K("mweb_screenreader_accessible_player"))return function(){};
var z=i1e(a),I=document.querySelector("video");I==null||I.addEventListener("touchend",z);return function(){I==null||I.removeEventListener("touchend",z)}}},
{register:function(a){if(!_.K("mweb_screenreader_detect_screenreader_user_focus"))return function(){};
var z=i1e(a),I=document.querySelector("video");I==null||I.addEventListener("focus",z);return function(){I==null||I.removeEventListener("focus",z)}}}]),[{register:function(a){var z=H1Z(a),I;
(I=a().playerApi)==null||I.addEventListener("onStateChange",z);return function(){}}},
{register:function(a){var z=b1Y(a),I;(I=a().playerApi)==null||I.addEventListener("onPlaybackRateChange",z);return function(){}}},
{register:function(a){var z=hZE(a),I;(I=a().playerApi)==null||I.addEventListener("onVideoDataChange",z);return function(){}}},
{register:function(a){var z=V6E(a),I,J;(I=a())==null||(J=I.playerApi)==null||J.addEventListener("onVideoProgress",z);return function(){}}}]);var N3Z=_.ec(function(a){var z=a.data;var I=function(){return _.AR("PLAYBACK_SPEED_X",{speed_rate_placeholder:""+z().playbackRate})};
return _.B(_.g,{cond:function(){return z().playbackRate&&z().playbackRate!==1},
then:function(){return _.B("yt-playback-rate-overlay",{class:"ytPlaybackRateOverlayHost"},_.B("div",{class:"ytPlaybackRateOverlayOverlay"},_.B(zQz,{direction:1,size:"small"}),_.B("div",{class:"ytPlaybackRateOverlayLabel"},I)))}})},"Fg");var tHM=_.ec(function(a){var z=a.data;return _.B("div",{class:"ytInlinePlayerControlsTopLeftControls"},_.B(_.g,{cond:function(){var I,J=(I=z())==null?void 0:I.playerResponse,r;return J==null?void 0:(r=J.paidContentOverlay)==null?void 0:r.paidContentOverlayRenderer},
then:function(I){return _.B(Caf,{data:I})}}))},"Hg"),ukM=_.ec(function(a){var z=a.props;
var I=a.data;var J=a.options;var r=function(){var O,f,A,n;return(O=I())==null?void 0:(f=O.playerResponse)==null?void 0:(A=f.playerConfig)==null?void 0:(n=A.inlinePlaybackConfig)==null?void 0:n.showAudioControls},P=function(){var O,f;
if(r()&&((O=J())==null?void 0:(f=O.additionalButton)==null?void 0:f.button)!==void 0){var A,n,F;O=(A=I())==null?void 0:(n=A.playerApi)==null?void 0:(F=n.getSize())==null?void 0:F.height;if(!(O===void 0||O<180)){var h,v;return(h=J())==null?void 0:(v=h.additionalButton)==null?void 0:v.button}}},N=function(){var O,f;
return(O=J())==null?void 0:(f=O.additionalButton)==null?void 0:f.thumbnailOverlayButtonRenderers},u=function(){var O,f;
return(O=J())==null?void 0:(f=O.additionalButton)==null?void 0:f.thumbnailOverlayButtonViewModels},E=function(){var O=[_.B(Z6V,{volumeProps:z}),
_.B(aVi,{playerControlsProps:z})];P()===1&&O.push(_.B(cJ4,{playerApi:function(){return z().playerApi}}));
P()===2&&O.push(_.B(Yw0,{appApi:function(){return z().appApi}}));
P()===3&&O.push(_.B(qwZ,{playerApi:function(){return z().playerApi}}));
var f=N();if(P()===4&&f){f=_.C(f);for(var A=f.next(),n={};!A.done;n={tooltip$jscomp$2:void 0,ariaLabel$jscomp$20:void 0,icon$jscomp$50:void 0,command$jscomp$589:void 0},A=f.next()){A=A.value;n.tooltip$jscomp$2=A.tooltip;var F=void 0,h=void 0;n.ariaLabel$jscomp$20=((F=A.accessibility)==null?void 0:(h=F.accessibilityData)==null?void 0:h.label)||n.tooltip$jscomp$2;F=void 0;n.icon$jscomp$50=(F=A.icon)==null?void 0:F.iconType;n.command$jscomp$589=A.command;n.tooltip$jscomp$2&&n.ariaLabel$jscomp$20&&n.icon$jscomp$50&&
O.push(_.B(eX4,{title:function(v){return function(){return v.tooltip$jscomp$2}}(n),
ariaLabel:function(v){return function(){return v.ariaLabel$jscomp$20}}(n),
icon:function(v){return function(){return v.icon$jscomp$50}}(n),
command:function(v){return function(){return v.command$jscomp$589}}(n)}))}}f=u();
if(P()===4&&f)for(f=_.C(f),A=f.next(),n={};!A.done;n={tooltip$jscomp$3:void 0,ariaLabel$jscomp$21:void 0,icon$jscomp$51:void 0,command$jscomp$590:void 0},A=f.next())A=A.value,n.tooltip$jscomp$3=A.title,n.ariaLabel$jscomp$21=A.accessibilityText||n.tooltip$jscomp$3,n.icon$jscomp$51=A.iconName,n.command$jscomp$590=_.o0(A.onTap),n.tooltip$jscomp$3&&n.ariaLabel$jscomp$21&&n.icon$jscomp$51&&O.push(_.B(eX4,{title:function(v){return function(){return v.tooltip$jscomp$3}}(n),
ariaLabel:function(v){return function(){return v.ariaLabel$jscomp$21}}(n),
icon:function(v){return function(){return v.icon$jscomp$51}}(n),
command:function(v){return function(){return v.command$jscomp$590}}(n)}));
return O};
return _.B(_.g,{cond:r,then:function(){return _.B("div",{class:"ytInlinePlayerControlsTopRightControls"},_.B(_.se,{each:E},function(O){return _.B("div",{class:"ytInlinePlayerControlsTopRightControlsCircleButton"},_.B("div",{class:"ytInlinePlayerControlsButtonIcon"},O))}))}})},"Ig"),gvG=_.ec(function(a){var z=a.props;
var I=a.data;var J=a.options;a={};a=_.B8("ytInlinePlayerControlsBottomRightControls",(a.ytInlinePlayerControlsBottomRightControlsHidden=function(){var r;return vjG(I(),J())&&((r=J())==null?void 0:r.insetProgressBar)&&(z().isHovering||z().isDragging)},a));
return _.B("div",{class:a},_.B(EvZ,{data:I}),_.B(_.g,{cond:function(){var r;return!((r=J())==null?0:r.hideTimeDisplay)},
then:function(){return _.B(B30,{props:z,data:I})}}))},"Jg"),EvZ=_.ec(function(a){var z=a.data;
return _.B(_.V0,{data:function(){var I;return BM4((I=z())==null?void 0:I.thumbnailOverlays)}},{premiereTrailerBadgeRenderer:jG4})},"Kg"),B30=_.ec(function(a){var z=a.props;
var I=a.data;return _.B(_.g,{cond:function(){return z().isLive},
then:function(){return _.B(O60,null)},
else:function(){return _.B(fVi,{props:z,data:I})}})},"Lg"),fVi=_.ec(function(a){var z=a.props;
var I=a.data;var J=_.Bg(function(){var r;return O1e((r=I())==null?void 0:r.thumbnailOverlays)},void 0,"kUmuA");
return _.B("div",{class:_.B8("ytInlinePlayerControlsTimeDisplay"),"aria-label":function(){return _.Nx.PLAYER_TIME_ELAPSED+" "+_.Tkm(z().playedTime)}},_.B(_.pd,{data:function(){var r=_.Tkm(z().videoDuration-z().playedTime);
return Object.assign({},{type:17,text:r},J())}}))},"Mg"),O60=_.ec(function(){var a=_.B8("ytInlinePlayerControlsTimeDisplay","ytInlinePlayerControlsLiveBadge");
return _.B("div",{class:a},_.B(_.pd,{data:{type:18,text:_.Nx.PLAYER_LIVE_LABEL,icon:"LIVE"}}))},"Ng"),AGM=_.ec(function(a){var z=a.props;
var I=a.data;var J=a.options;return _.B(_.Shf,{progressBarProps:z,config:function(){var r,P=_.H((r=I())==null?void 0:r.multiMarkersPlayerBar,_.Z_w),N;r=((N=J())==null?0:N.insetProgressBar)?2:1;var u;N=(u=J())==null?void 0:u.useFinePointerTargetSizes;return{unmuteOnSeek:!1,position:r,chapterData:P,isInlinePlayback:!0,doSeekOnClick:N,playheadDotBehavior:N?1:0}}})},"Og");_.Jf(_.ec(function(a){var z=a.data;var I=a.appApi;var J=a.options;var r=F5e(z,xeE(I));a={};I={};return _.B("yt-inline-player-controls",{class:"ytInlinePlayerControlsHost"},_.B("div",{class:_.B8("ytInlinePlayerControlsDarkenedOverlay",(a.ytInlinePlayerControlsDarkenedOverlayShow=function(){return r().isHovering},a))}),_.B(IVG,null),_.B(N3Z,{data:r}),_.B(tHM,{data:z}),_.B(MF0,{playerControlsProps:r,
isShortsPage:!1}),_.B("div",{class:_.B8((I.ytInlinePlayerControlsControlsHidden=function(){return r().isDragging},I))},_.B(ukM,{props:r,
data:z,options:J}),_.B(gvG,{props:r,data:z,options:J})),_.B(_.g,{cond:function(){return vjG(z(),J())},
then:function(){return _.B(AGM,{props:r,data:z,options:J})}}))},"Gg"),"yt-inline-player-controls",{props:{data:_.zl,
appApi:_.I5,options:_.zl}});var ta=function(){var a=_.G.apply(this,arguments)||this;a.opts=null;a.playerControlsData=null;a.playerControlsAppApi={openInMiniplayer:function(){a.openInMiniplayer()}};
a.playerControlsOptions={};a.noAnimation=!1;a.playbackIntentTriggered=!1;a.positionData=null;a.hidden=!0;a.active=!1;a.playing=!1;a.videoPreviewDataIndex=0;a.JSC$19010_playerPromise=null;a.player=null;a.enableAudioControls=!1;a.hasBeenUnmuted=!1;a.captionsHaveBeenTurnedOff=!1;a.JSC$19010_playerEvents=new Map;a.videoPreviewFetchRequest=null;a.scheduledPreviewEndJobId=null;a.JSC$19010_preventProgressSaveTimer=null;a.watchEndpointStartTimeUpdaterInterval=null;a.actionMap={"yt-open-video-preview-action":"handleOpenVideoPreviewAction",
"yt-terminate-video-preview-action":"onTerminateVideoPreviewAction","yt-get-inline-preview-player-action":"getInlinePreviewPlayer","yt-window-resized":"onWindowResized"};a.windowOnBlurFn=function(){a.deactivate()};
return a};
_.b(ta,_.G);_.Z=ta.prototype;
_.Z.configureRendererStamper=function(){return{"opts.videoPreviewData.thumbnailOverlays":_.K("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"}}}};
_.Z.attached=function(){window.addEventListener("blur",this.windowOnBlurFn);this.JSC$19010_playerEvents.set("onStateChange",this.onPlayerStateChange);this.JSC$19010_playerEvents.set("onPlaybackStartExternal",this.onPlaybackStart);this.JSC$19010_playerEvents.set("SEEK_COMPLETE",this.onSeekComplete);this.JSC$19010_playerEvents.set("captionschanged",this.onCaptionsChanged);document.addEventListener("yt-page-type-changed",_.BK(this,this.onPageTypeChange));this.pagePath=location.pathname;window.addEventListener("scroll",
_.BK(this,this.onScroll))};
_.Z.detached=function(){window.removeEventListener("blur",this.windowOnBlurFn);window.removeEventListener("scroll",_.BK(this,this.onScroll))};
_.Z.onPageTypeChange=function(){this.deactivate()};
_.Z.onWindowResized=function(){this.deactivate()};
_.Z.onCaptionsChanged=function(a){a=!!a.languageCode;this.playing&&this.allowCaptions()&&(this.captionsHaveBeenTurnedOff=!a);this.setCaptionSize()};
_.Z.setCaptionSize=function(){var a;if(this.active&&!this.captionsHaveBeenTurnedOff&&((a=this.player)==null?0:a.getCaptionWindowContainerId())){var z;(z=this.player)==null||z.updateSubtitlesUserSettings({fontSizeIncrement:2},!1)}};
_.Z.currentPageAllowed=function(){return!this.isWatchPage};
_.Z.alignVideoPreviewForAnimation=function(){this.hidden=!1;this.noAnimation=!0;this.positionData=this.getThumbnailPositionData();if(!this.positionData)return!1;var a=this.positionData,z=a.initialTopPosition,I=a.initialHorizontalPosition;_.uK(this.hostElement,{"--ytd-video-preview-translate-left":a.finalHorizontalPosition-I+"px","--ytd-video-preview-translate-top":a.finalTopPosition-z+"px","--ytd-video-preview-original-top-position":z+"px","--ytd-video-preview-original-horizontal-position":I+"px",
"--ytd-video-preview-initial-scale":"scale("+a.initialScale+")","--ytd-video-preview-width":a.videoPreviewWidth+"px","--ytd-video-preview-height":a.videoPreviewHeight+"px"});return!0};
_.Z.handleOpenVideoPreviewAction=function(a){var z=this,I;return _.t(function(J){if(!z.currentPageAllowed())return J.return(0);z.opts=a;return(I=z.alignVideoPreviewForAnimation(a.thumbnail))?J.return(z.activate()):J.return(0)})};
_.Z.onMouseLeave=function(a){this.shouldDeactivateOnMouseLeave(a)&&this.deactivate()};
_.Z.onScroll=function(){var a,z;((a=this.opts)==null?0:a.isAutoplay)&&((z=this.opts)==null?0:z.mediaRenderer)&&this.opts.mediaRenderer.getBoundingClientRect().top<0&&this.deactivate()};
_.Z.optsChanged=function(){this.scheduledPreviewEndJobId&&(_.GW.cancelJob(this.scheduledPreviewEndJobId),this.scheduledPreviewEndJobId=null)};
_.Z.onInlinePreviewIsEnabledChange=function(){!this.inlinePreviewIsEnabled&&this.playbackIntentTriggered&&this.deactivate()};
_.Z.onIsAdsVideoChange=function(){this.isAdsVideo&&this.ytSparklesClickLocationBehavior.configureClickTargets("video-preview-container",ta.JSC$19009_DEFAULT_CLICK_LOCATION_BEHAVIOR,ta.JSC$19009_CLICK_LOCATION_ID_MAP)};
_.Z.shouldDeactivateOnMouseLeave=function(a){a=a.relatedTarget;if(!a)return!0;var z;return(z=this.opts)!=null&&z.mediaRenderer?!_.ZL(this.opts.mediaRenderer).contains(a):!0};
_.Z.onPlayerStateChange=function(){this.player&&this.player.getPlayerState()===0&&(this.hasMultipleVideoPreviews()?this.startPlaybackForNextVideo():this.deactivate({resetWatchEndpointStartTime:!0}))};
_.Z.onPlaybackStart=function(){var a=this;if(this.player&&this.playbackIntentTriggered&&this.currentPageAllowed()){this.playing=!0;this.allowUnmuting()&&this.hasBeenUnmuted&&(this.player.unMute(),this.player.syncVolume());this.player.isSubtitlesOn()?this.captionsHaveBeenTurnedOff||!this.allowCaptions()?this.player.toggleSubtitles():this.setCaptionSize():!this.captionsHaveBeenTurnedOff&&this.allowCaptions()&&this.player.toggleSubtitles();this.resetPreventProgressSaveTimer();this.JSC$19010_preventProgressSaveTimer=
_.NK(_.GW,function(){a.resetPreventProgressSaveTimer()},1E4);
var z;if((z=this.opts)==null?0:z.videoPreviewDurationMs)this.scheduledPreviewEndJobId=_.NK(_.GW,function(){a.hasMultipleVideoPreviews()?a.startPlaybackForNextVideo():a.deactivate()},this.opts.videoPreviewDurationMs);
var I;this.player.setGlobalCrop(((I=this.opts)==null?0:I.cropPlayerToFillThumbnailHorizontally)?"fullwidth":null)}};
_.Z.getRoundedCornersSize=function(){var a;if((a=this.opts)==null?0:a.roundedCornersSize){var z;return(z=this.opts)==null?void 0:z.roundedCornersSize}var I;if((I=this.opts)==null?0:I.enableRounding){var J;if(((J=this.opts)==null?void 0:J.thumbnailSize)==="small")return 1;var r;if(((r=this.opts)==null?void 0:r.thumbnailSize)==="medium")return 2;var P;if(((P=this.opts)==null?void 0:P.thumbnailSize)==="large")return 3}return _.K("web_imp_inset_progress_bar")?3:0};
_.Z.onSeekComplete=function(){this.resetPreventProgressSaveTimer()};
_.Z.onTerminateVideoPreviewAction=function(){this.deactivate()};
_.Z.onMediaContainerClick=function(a){this.isShortcutClick(a)||(this.navigateToWatch(a),a.preventDefault(),a.stopPropagation())};
_.Z.activate=function(){var a=this,z,I,J,r,P,N,u,E,O;return _.t(function(f){switch(f.nextAddress){case 1:if(!a.currentPageAllowed())return f.return(0);I=(z=a.videoPreviewData)==null?void 0:z.inlinePlaybackEndpoint;J=_.w4.instance;if(!I||!J)return f.return(0);a.playbackIntentTriggered=!0;((r=a.opts)==null?0:r.mediaRenderer)&&((P=a.opts)==null||!P.isAutoplay)&&unf(a.opts.mediaRenderer,function(){a.deactivate()});
_.Yv(a,function(){a.revealPreviewUi()});
N={};_.K("enable_unknown_lact_fix_on_html5")&&(_.ab().resolve(_.V7),N.lact=_.IO());a.videoPreviewFetchRequest=rPM(J,a.getInlinePlaybackRequestData(a.videoPreviewData),N);_.BP(f,2);return f.yield(a.videoPreviewFetchRequest,4);case 4:u=f.yieldResult;if(((E=u)==null?void 0:(O=E.playabilityStatus)==null?void 0:O.status)==="OK")return f.return(a.handlePlayerResponse(u));throw Error("Pj");case 2:_.sk(f),a.deactivate();case 3:return f.return(1)}})};
_.Z.getInlinePlaybackRequestData=function(a){var z,I=_.K("web_imp_player_mute_params")?((z=this.opts)==null?void 0:z.forceMutedVolume)||!this.hasBeenUnmuted:!0;return{endpoint:a.inlinePlaybackEndpoint,startPlaybackInMutedState:I}};
_.Z.handlePlayerResponse=function(a){var z=this,I,J,r,P,N,u,E,O,f,A;return _.t(function(n){if(n.nextAddress==1){I=z.getInlinePlaybackVideoId();if(!(((J=a)==null?0:(r=J.videoDetails)==null?0:r.videoId)&&z.currentPageAllowed()&&z.playbackIntentTriggered&&z.opts&&I))return z.deactivate(),n.return(0);if(a.videoDetails.videoId!==I)return n.return(0);z.enableAudioControls=!!((P=a.playerConfig)==null?0:(N=P.inlinePlaybackConfig)==null?0:N.showAudioControls);a.trackingParams=z.getInlinePlaybackTrackingParams();
if(!z.inlinePlayer)return n.return(0);u={};if(O=_.H((E=z.videoPreviewData)==null?void 0:E.inlinePlaybackEndpoint,_.MZ))u.watch_endpoint=O;if(z.videoPreviewData){var F,h=(F=_.H(z.videoPreviewData.inlinePlaybackEndpoint,_.MZ))==null?void 0:F.startTimeSeconds;h!==void 0&&(a.playerConfig||(a.playerConfig={}),a.playerConfig.playbackStartConfig||(a.playerConfig.playbackStartConfig={}),a.playerConfig.playbackStartConfig.startPosition||(a.playerConfig.playbackStartConfig.startPosition={}),a.playerConfig.playbackStartConfig.startSeconds=
h,a.playerConfig.playbackStartConfig.startPosition.streamTimeMillis=String(h*1E3))}z.inlinePlayer.loadVideoWithPlayerResponse(a,u);if(z.JSC$19010_playerPromise)return n.jumpTo(2);z.JSC$19010_playerPromise=z.inlinePlayer.getPlayerPromise();return n.yield(z.JSC$19010_playerPromise,3)}n.nextAddress!=2&&(f=n.yieldResult,f.setInlinePreview(!0),f.setSizeStyle(!1,!0),z.ytPlayerListenerBehavior.listenToPlayerEvents(f,z.JSC$19010_playerEvents),z.player=f,_.PA(z.hostElement,"player-api-ready"));((A=z.opts)==
null?0:A.showPlayerControls)&&z.videoPreviewData&&z.player&&(z.playerControlsData={playerResponse:a,isInlinePlayback:!0,thumbnailOverlays:z.videoPreviewData.thumbnailOverlays,playerApi:z.player},z.playerControlsOptions={useFinePointerTargetSizes:!0,insetProgressBar:!z.unroundCornersForPlayback,additionalButton:z.getAdditionalButtonType(z.videoPreviewData.thumbnailOverlays)});return n.return(2)})};
_.Z.revealPreviewUi=function(){var a=this;this.playbackIntentTriggered&&_.vRm(this,function(){a.hasThumbnailPositionChangedSinceTriggered()||(a.updateActiveState(!0),a.noAnimation=!1)})};
_.Z.hasThumbnailPositionChangedSinceTriggered=function(){var a=this.positionData,z=this.getThumbnailPositionData();return(a==null?void 0:a.initialTopPosition)!==(z==null?void 0:z.initialTopPosition)||(a==null?void 0:a.initialHorizontalPosition)!==(z==null?void 0:z.initialHorizontalPosition)};
_.Z.getThumbnailPositionData=function(){var a,z;if((z=this.opts)==null||!z.thumbnail)return null;z=this.opts.thumbnail;var I=((a=this.opts)==null?0:a.cropPlayerToFillThumbnailHorizontally)?!1:!0;var J=z.getBoundingClientRect();a=J.width;z=J.height;var r=J.top+window.scrollY;J=J.left+window.scrollX;var P=I?Math.ceil(a):a;I=I?Math.ceil(z):z;var N=a/P;a={initialScale:N,initialTopPosition:r-12*N,finalTopPosition:r-12-(I-z)/2,initialHorizontalPosition:J-(12+(P-a)/2),finalHorizontalPosition:J-12-(P-a)/
2,videoPreviewWidth:P,videoPreviewHeight:I};return a};
_.Z.updateActiveState=function(a){this.active=a;this.ytdReduxBehavior.dispatch(_.rg({type:"SET_INLINE_PREVIEW_IS_ACTIVE",payload:a}))};
_.Z.stopPlayer=function(a){a=a.resetWatchEndpointStartTime===void 0?!1:a.resetWatchEndpointStartTime;this.player&&(this.active&&(this.playing&&this.allowUnmuting()&&(this.hasBeenUnmuted=!this.player.isMuted()),this.updateWatchEndpointStartTime(a)),this.player.setPlaybackRate(1),this.player.stopVideo());this.playing=!1;this.videoPreviewFetchRequest=null;this.resetPreventProgressSaveTimer();this.endStartTimeUpdater();this.scheduledPreviewEndJobId&&(_.GW.cancelJob(this.scheduledPreviewEndJobId),this.scheduledPreviewEndJobId=
null)};
_.Z.deactivate=function(a){a=a===void 0?{}:a;a=a.resetWatchEndpointStartTime===void 0?!1:a.resetWatchEndpointStartTime;Sb&&(Sb.disconnect(),Sb=null);this.stopPlayer({resetWatchEndpointStartTime:a});this.updateActiveState(!1);this.playbackIntentTriggered=!1;this.videoPreviewDataIndex=0;this.opts=null;this.hidden=!0;this.playerControlsData=null};
_.Z.isValidThumbnailOverlayButton=function(a,z){a=a.thumbnailOverlayButtonRenderer;var I;return!!a&&!!a.tooltip&&!((I=a.icon)==null||!I.iconType)&&z.includes(a.icon.iconType)};
_.Z.isValidThumbnailOverlayButtonViewModel=function(a,z){var I;a=_.H((I=a.thumbnailOverlayButtonViewModel)==null?void 0:I.overlayButton,_.yw);return!!a&&!!a.title&&!!a.iconName&&z.includes(a.iconName)};
_.Z.getAdditionalButtonType=function(a){var z=this;if(_.K("web_imp_fastforward_button"))return{button:1};if(_.K("web_imp_miniplayer_button"))return{button:2};if(_.K("web_imp_playback_speed_button"))return{button:3};var I=["BOX_STACK_3"],J=(a||[]).filter(function(P){return z.isValidThumbnailOverlayButton(P,I)}).map(function(P){return P.thumbnailOverlayButtonRenderer});
if(J.length)return{button:4,thumbnailOverlayButtonRenderers:J};var r=["BOX_STACK_3"];a=(a||[]).filter(function(P){return z.isValidThumbnailOverlayButtonViewModel(P,r)}).map(function(P){return _.H(P.thumbnailOverlayButtonViewModel.overlayButton,_.yw)});
if(a.length)return{button:4,thumbnailOverlayButtonViewModels:a}};
_.Z.allowCaptions=function(){var a;return!((a=this.opts)==null?0:a.forceCaptionsOff)};
_.Z.allowUnmuting=function(){var a;return this.enableAudioControls&&!((a=this.opts)==null?0:a.forceMutedVolume)};
_.Z.beginStartTimeUpdater=function(){var a=this;this.endStartTimeUpdater();this.watchEndpointStartTimeUpdaterInterval=_.Ne(function(){a.updateWatchEndpointStartTime()},1E3)};
_.Z.endStartTimeUpdater=function(){this.watchEndpointStartTimeUpdaterInterval!==null&&window.clearInterval(this.watchEndpointStartTimeUpdaterInterval);this.watchEndpointStartTimeUpdaterInterval=null};
_.Z.resetPreventProgressSaveTimer=function(){this.JSC$19010_preventProgressSaveTimer!==null&&(_.GW.cancelJob(this.JSC$19010_preventProgressSaveTimer),this.JSC$19010_preventProgressSaveTimer=null,this.hasMultipleVideoPreviews()||this.beginStartTimeUpdater())};
_.Z.updateWatchEndpointStartTime=function(a){var z=this.videoPreviewData;if(this.player&&z!=null&&z.inlinePlaybackEndpoint&&!this.JSC$19010_preventProgressSaveTimer){a=a?0:Math.floor(this.player.getCurrentTime());var I=_.H(z.navigationEndpoint,_.MZ);I&&(I.startTimeSeconds=a);if(z=_.H(z.inlinePlaybackEndpoint,_.MZ))z.startTimeSeconds=a}};
_.Z.isShortcutClick=function(a){return!!a&&(a.ctrlKey||a.shiftKey||a.metaKey)};
_.Z.getInlinePreviewPlayer=function(){return this.inlinePlayer};
_.Z.openInMiniplayer=function(){var a=this,z,I;return _.t(function(J){if(J.nextAddress==1){I=(z=a.videoPreviewData)==null?void 0:z.navigationEndpoint;if(!I)return J.return();_.hq().lockupActivation=!0;return J.yield(_.fKE(_.ab().resolve(_.UJ),I),2)}_.hq().userActivation=!0;_.nu(J)})};
_.Z.navigateToWatch=function(a){var z,I=(z=this.videoPreviewData)==null?void 0:z.navigationEndpoint;if(I){if(this.isAdsVideo)this.ytSparklesClickLocationBehavior.handleClick(I,a,!0);else{var J;_.K("web_thumbnail_to_watch_transition")&&((J=this.opts)==null?0:J.thumbnail)&&_.B5X(_.ab().resolve(_.bH),this.opts.thumbnail);_.PA(this.hostElement,"yt-navigate",{endpoint:I})}this.deactivate()}};
_.Z.getInlinePlaybackVideoId=function(){var a,z;return(z=_.H((a=this.videoPreviewData)==null?void 0:a.inlinePlaybackEndpoint,_.MZ))==null?void 0:z.videoId};
_.Z.getInlinePlaybackTrackingParams=function(){var a,z;return(a=this.videoPreviewData)==null?void 0:(z=a.inlinePlaybackEndpoint)==null?void 0:z.clickTrackingParams};
_.Z.hasMultipleVideoPreviews=function(){var a;return!!(((a=this.opts)==null?0:a.videoPreviewData)&&Array.isArray(this.opts.videoPreviewData))};
_.Z.startPlaybackForNextVideo=function(){var a;(a=this.opts)!=null&&a.videoPreviewData&&Array.isArray(this.opts.videoPreviewData)&&this.opts.videoPreviewData.length!==0&&(this.videoPreviewDataIndex=(this.videoPreviewDataIndex+1)%this.opts.videoPreviewData.length,this.stopPlayer({resetWatchEndpointStartTime:!0}),this.activate())};
_.eH.Object.defineProperties(ta.prototype,{thumbnailData:{configurable:!0,enumerable:!0,get:function(){return this.videoPreviewData?{thumbnail:this.videoPreviewData.thumbnail}:null}},
hidePlayerControls:{configurable:!0,enumerable:!0,get:function(){var a;return!((a=this.opts)==null?0:a.showPlayerControls)||!this.active}},
isAdsVideo:{configurable:!0,enumerable:!0,get:function(){var a;return!((a=this.opts)==null||!a.isAdsVideo)}},
roundedCornersSmall:{configurable:!0,enumerable:!0,get:function(){return this.getRoundedCornersSize()===1}},
roundedCornersMedium:{configurable:!0,enumerable:!0,get:function(){return this.getRoundedCornersSize()===2}},
roundedCornersLarge:{configurable:!0,enumerable:!0,get:function(){return this.getRoundedCornersSize()===3}},
unroundCornersForPlayback:{configurable:!0,enumerable:!0,get:function(){return this.getRoundedCornersSize()===0}},
videoPreviewData:{configurable:!0,enumerable:!0,get:function(){var a;if(Array.isArray((a=this.opts)==null?void 0:a.videoPreviewData)){var z;return(z=this.opts)==null?void 0:z.videoPreviewData[this.videoPreviewDataIndex]}var I;return(I=this.opts)==null?void 0:I.videoPreviewData}}});
ta.prototype.onIsAdsVideoChange=ta.prototype.onIsAdsVideoChange;ta.prototype.onInlinePreviewIsEnabledChange=ta.prototype.onInlinePreviewIsEnabledChange;ta.prototype.optsChanged=ta.prototype.optsChanged;ta.prototype.onMouseLeave=ta.prototype.onMouseLeave;ta.JSC$19009_CLICK_LOCATION_ID_MAP=new Map([["PROMOTED_SPARKLES_CLICK_LOCATION_THUMBNAIL","media-container"]]);ta.JSC$19009_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"}];
_.L([_.Q(_.Hc.YtActionHandlerBehavior),_.p("design:type",Object)],ta.prototype,"actionHandlerBehavior",void 0);_.L([_.Q(_.u4.YtRendererstamperBehavior),_.p("design:type",Object)],ta.prototype,"ytRendererstamperBehavior",void 0);_.L([_.Q(_.jz.YtPlayerListenerBehavior),_.p("design:type",_.z4)],ta.prototype,"ytPlayerListenerBehavior",void 0);_.L([_.Q(_.Ms.YtComponentBehavior),_.p("design:type",Object)],ta.prototype,"componentBehavior",void 0);
_.L([_.Q(_.k.YtRendererBehavior),_.p("design:type",Object)],ta.prototype,"ytRendererBehavior",void 0);_.L([_.Q(_.pV),_.p("design:type",Object)],ta.prototype,"ytdReduxBehavior",void 0);_.L([_.Q(_.tM.YtSparklesClickLocationBehavior),_.p("design:type",Object)],ta.prototype,"ytSparklesClickLocationBehavior",void 0);_.L([_.x(),_.p("design:type",Object)],ta.prototype,"opts",void 0);_.L([_.x(),_.p("design:type",Object)],ta.prototype,"playerControlsData",void 0);
_.L([_.x(),_.p("design:type",Object)],ta.prototype,"playerControlsAppApi",void 0);_.L([_.x(),_.p("design:type",Object)],ta.prototype,"playerControlsOptions",void 0);_.L([_.x({reflectToAttribute:!0}),_.p("design:type",Object)],ta.prototype,"noAnimation",void 0);_.L([_.x({reflectToAttribute:!0}),_.p("design:type",Object)],ta.prototype,"hidden",void 0);_.L([_.x({reflectToAttribute:!0}),_.p("design:type",Object)],ta.prototype,"active",void 0);
_.L([_.x({reflectToAttribute:!0}),_.p("design:type",Object)],ta.prototype,"playing",void 0);_.L([_.x({selector:_.pSd}),_.p("design:type",Boolean)],ta.prototype,"inlinePreviewIsEnabled",void 0);_.L([_.x(),_.p("design:type",String)],ta.prototype,"pagePath",void 0);_.L([_.x({selector:_.R33}),_.p("design:type",Boolean)],ta.prototype,"isWatchPage",void 0);_.L([_.S("videoPreviewData"),_.p("design:type",Object),_.p("design:paramtypes",[])],ta.prototype,"thumbnailData",null);
_.L([_.S("opts","active"),_.x({reflectToAttribute:!0}),_.p("design:type",Boolean),_.p("design:paramtypes",[])],ta.prototype,"hidePlayerControls",null);_.L([_.S("opts"),_.p("design:type",Boolean),_.p("design:paramtypes",[])],ta.prototype,"isAdsVideo",null);_.L([_.S("opts"),_.x({reflectToAttribute:!0}),_.p("design:type",Boolean),_.p("design:paramtypes",[])],ta.prototype,"roundedCornersSmall",null);
_.L([_.S("opts"),_.x({reflectToAttribute:!0}),_.p("design:type",Boolean),_.p("design:paramtypes",[])],ta.prototype,"roundedCornersMedium",null);_.L([_.S("opts"),_.x({reflectToAttribute:!0}),_.p("design:type",Boolean),_.p("design:paramtypes",[])],ta.prototype,"roundedCornersLarge",null);_.L([_.S("opts"),_.x({reflectToAttribute:!0}),_.p("design:type",Boolean),_.p("design:paramtypes",[])],ta.prototype,"unroundCornersForPlayback",null);
_.L([_.S("opts","videoPreviewDataIndex"),_.p("design:type",Object),_.p("design:paramtypes",[])],ta.prototype,"videoPreviewData",null);_.L([_.x(),_.p("design:type",Object)],ta.prototype,"videoPreviewDataIndex",void 0);_.L([_.A3("#inline-player"),_.p("design:type",Object)],ta.prototype,"inlinePlayer",void 0);_.L([_.gz("mouseleave"),_.p("design:type",Function),_.p("design:paramtypes",[MouseEvent]),_.p("design:returntype")],ta.prototype,"onMouseLeave",null);
_.L([_.Fe("opts"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],ta.prototype,"optsChanged",null);_.L([_.Fe("inlinePreviewIsEnabled"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],ta.prototype,"onInlinePreviewIsEnabledChange",null);_.L([_.O8("isAdsVideo"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],ta.prototype,"onIsAdsVideoChange",null);
_.L([_.U({is:"ytd-video-preview",disableElementRegistration:!0})],ta);
_.D(ta,"ytd-video-preview",function(){if(kxM!==void 0)return kxM;var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-video-preview--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="video-preview-container" class="style-scope ytd-video-preview">\n  <div id="endorsement" class="style-scope ytd-video-preview"></div>\n  <div id="media-container" class="style-scope ytd-video-preview">\n    <a id="media-container-link" class="yt-simple-endpoint style-scope ytd-video-preview" href$="[[computeHref_(videoPreviewData.navigationEndpoint)]]" data="[[videoPreviewData.navigationEndpoint]]" aria-label$="[[videoPreviewData.accessibilityText]]" on-click="onMediaContainerClick">\n      <div id="thumbnail-container" class="style-scope ytd-video-preview">\n        <ytd-thumbnail data="[[thumbnailData]]" hovered="false" no-rounded-corners="" object-fit="COVER" rich-grid-thumbnail="" width="9999" class="style-scope ytd-video-preview">\n        </ytd-thumbnail>\n      </div>\n      <div id="player-container" class="style-scope ytd-video-preview">\n        <ytd-player id="inline-player" context="WEB_PLAYER_CONTEXT_CONFIG_ID_KEVLAR_INLINE_PREVIEW" class="style-scope ytd-video-preview">\n        </ytd-player>\n      </div>\n      <div id="overlays" class="style-scope ytd-video-preview"></div>\n    </a>\n    <div id="player-controls" class="style-scope ytd-video-preview">\n      <template is="dom-if" if="[[!!playerControlsData]]" class="style-scope ytd-video-preview">\n        <yt-inline-player-controls app-api="[[playerControlsAppApi]]" data="[[playerControlsData]]" options="[[playerControlsOptions]]" class="style-scope ytd-video-preview"></yt-inline-player-controls>\n      </template>\n    </div>\n  </div>\n</div>\n');a.content.insertBefore(_.w().content.cloneNode(!0),
a.content.firstChild);return kxM=a},{mode:2});
}catch(e){_._DumpException(e)}
try{
var orE,UNM,DNE;orE=function(a){return _.K("kevlar_watch_cinematics_invisible")||a.fullscreen&&_.K("kevlar_watch_cinematics_invisible_in_fullscreen")||a.theater&&!a.fullscreen&&_.K("kevlar_watch_cinematics_invisible_in_theater")};
UNM=function(){var a=document.createElement("canvas"),z=a.getContext("2d");if(!z)throw Error("so");_.oc(a,{position:"absolute",width:"100%",height:"100%"});return{element:a,context:z}};
DNE=function(){return!("filter"in CanvasRenderingContext2D.prototype)||_.K("kevlar_watch_cinematics_css_blur")};
_.RDV=function(a,z,I){return Math.abs(a-z)<=(I||1E-6)};
_.L2i=function(a,z){return a==z?!0:a&&z?a.width==z.width&&a.height==z.height:!1};_.lqZ=new _.jv("notificationActionRenderer");var pj4=function(a){var z=this;this.element=new Image;this.failed=this.loaded=!1;this.resolver=new _.EM;this.element.addEventListener("load",function(){z.loaded=!0;z.resolver.resolve(z.element)});
this.element.addEventListener("error",function(){z.failed=!0});
this.element.src=a};var wji=function(a,z){this.image=a;this.frame=z};
wji.prototype.drawToCanvas=function(a,z){var I=this.frame.width/this.frame.columns,J=this.frame.height/this.frame.rows,r=z.offsetX,P=z.offsetY;orE(z)?(a.fillStyle=z.fullscreen?"#000":"#0f0f0f",a.fillRect(r,P,(z==null?void 0:z.width)||I,(z==null?void 0:z.height)||J)):a.drawImage(this.image,this.frame.column*I,this.frame.row*J,I,J,r,P,(z==null?void 0:z.width)||I,(z==null?void 0:z.height)||J)};
var mNE=function(a){this.color=a};
mNE.prototype.drawToCanvas=function(a,z){var I=z.offsetX,J=z.offsetY,r=z.width,P=z.height;a.fillStyle=orE(z)?z.fullscreen?"#000":"#0f0f0f":this.color;a.fillRect(I,J,r,P)};var IY=function(a,z){_.Ol.call(this);this.playerApi=z;this.mosaics=new Map;this.colorStore=new Map;this.pendingStoryboardIndex=this.currentStoryboardIndex=this.colorStoreTimeInterval=NaN;this.currentStoryboardSize=new _.fB(NaN,NaN);this.lastUpdateTime=NaN;this.paused=!1;this.addEventListeners();yhe(this,a);kAE(this);this.update()};
_.b(IY,_.Ol);IY.prototype.addEventListeners=function(){var a=this,z=function(){a.update()},I=function(r){a.paused||(r.type==="newdata"&&(a.mosaics.clear(),MmZ(a),Jm(a)),kAE(a),a.update())},J=function(){a.onPlayerStateChange()};
this.playerApi.addEventListener("onVideoProgress",z);this.playerApi.addEventListener("onVideoDataChange",I);this.playerApi.addEventListener("onStateChange",J);this.addOnDisposeCallback(function(){a.playerApi.removeEventListener("onVideoProgress",z);a.playerApi.removeEventListener("onVideoDataChange",I);a.playerApi.removeEventListener("onStateChange",J)})};
var yhe=function(a,z){a.cinematicContainerRenderer!==z&&(a.cinematicContainerRenderer=z,MmZ(a),Jm(a),a.colorStoreUpdateJobId=_.GW.addLowPriorityJob(function(){var I;if((I=a.cinematicContainerRenderer.colorStore)!=null&&I.sampledColors){I=Infinity;for(var J=_.C(a.cinematicContainerRenderer.colorStore.sampledColors),r=J.next();!r.done;r=J.next()){r=r.value;var P=Number(r.key);P!==0&&P<I&&(I=P);P=_.RX(r.value);a.colorStore.set(r.key,P)}a.colorStoreTimeInterval=I}}))},MmZ=function(a){a.colorStoreUpdateJobId&&
(_.GW.cancelJob(a.colorStoreUpdateJobId),a.colorStoreUpdateJobId=void 0);
a.colorStore.clear();a.currentStoryboardColor=void 0},che=function(a,z){var I;
return(I=a.getStoryboardFrame(z))==null?void 0:I.url};
IY.prototype.onPlayerStateChange=function(){this.update()};
IY.prototype.isAdPlaying=function(){return this.playerApi.getPresentingPlayerType()===2};
var kAE=function(a){var z=a.getStoryboardFrame(0);z&&(z=new _.fB(z.width/z.columns,z.height/z.rows),_.L2i(a.currentStoryboardSize,z)||(a.currentStoryboardSize=z,a.publish("STORYBOARD_SIZE_CHANGED",a.currentStoryboardSize)))},YPi=function(a,z){a.currentStoryboardIndex=z;
a.pendingStoryboardIndex=NaN;z=a.getStoryboardFrame(a.currentStoryboardIndex);a.currentStoryboard=new wji(a.mosaics.get(z.url).element,z);a.publish("STORYBOARD_CHANGED",a.currentStoryboard);a.lastUpdateTime=(0,_.jp)()};
IY.prototype.isShorts=function(){return this.cinematicContainerRenderer.config.pageType==="CINEMATIC_CONTAINER_PAGE_TYPE_SHORTS"};
var Jm=function(a){a.currentStoryboardIndex=NaN;a.pendingStoryboardIndex=NaN;a.currentStoryboard&&(a.currentStoryboard=void 0,a.publish("STORYBOARD_CHANGED",void 0));a.lastUpdateTime=NaN};
IY.prototype.update=function(){if(!this.paused&&this.playerApi.getNumberOfStoryboardLevels()>0)if(this.isAdPlaying()||this.isShorts()&&this.playerApi.getProgressState().duration<15)Jm(this);else{var a=this.playerApi.getPlayerState(1);if(a===-1||a===5||a===0)Jm(this);else if(isNaN(this.lastUpdateTime)||!((0,_.jp)()<this.lastUpdateTime+this.cinematicContainerRenderer.config.animationConfig.minImageUpdateIntervalMs))if(a=this.playerApi.getCurrentTime()+(this.playerApi.getPlayerState(1)===2?0:this.cinematicContainerRenderer.config.animationConfig.crossfadeDurationMs*
this.cinematicContainerRenderer.config.animationConfig.crossfadeStartOffset/1E3),this.cinematicContainerRenderer.presentationStyle==="CINEMATIC_CONTAINER_PRESENTATION_STYLE_DYNAMIC_SINGLE_COLOR")if(this.colorStore.size){a=""+Math.round(a*1E3/this.colorStoreTimeInterval)*this.colorStoreTimeInterval;var z=this.colorStore.get(a);z?z!==this.currentStoryboardColor&&(this.currentStoryboardColor=this.currentStoryboardColor=z,this.currentStoryboard=new mNE(z),this.publish("STORYBOARD_CHANGED",this.currentStoryboard),
this.lastUpdateTime=(0,_.jp)()):(_.Xd(new _.Fn("Could not find color for timestamp: "+a,this.cinematicContainerRenderer)),Jm(this))}else Jm(this);else qP0(this,a)}};
var qP0=function(a,z){var I=a.getStoryboardFrameIndex(z);if(I!==a.currentStoryboardIndex&&I!==a.pendingStoryboardIndex){z=che(a,I);var J=a.mosaics.get(z);J?J.loaded&&YPi(a,I):(a.pendingStoryboardIndex=I,I=new pj4(z),a.mosaics.set(z,I),I.resolver.promise.then(function(){if(!a.isDisposed()&&!a.paused&&!isNaN(a.pendingStoryboardIndex)){var r=che(a,a.pendingStoryboardIndex);if(r){var P;(P=a.mosaics.get(r))!=null&&P.loaded&&YPi(a,a.pendingStoryboardIndex)}else Jm(a)}}))}};
IY.prototype.getStoryboardFrameIndex=function(a){var z=this.isShorts()&&this.playerApi.getNumberOfStoryboardLevels()>1?1:0;return this.playerApi.getStoryboardFrameIndex(a,z)};
IY.prototype.getStoryboardFrame=function(a){var z=this.isShorts()&&this.playerApi.getNumberOfStoryboardLevels()>1?1:0,I,J;return((J=(I=this.playerApi).getStoryboardFrame)==null?void 0:J.call(I,a,z))||null};
IY.prototype.pause=function(){this.lastUpdateTime=NaN;this.paused=!0};var PC=function(a,z,I,J){J=J===void 0?!1:J;_.FC.call(this);this.cinematicContainerRenderer=z;this.playerApi=I;this.theater=this.fullscreen=!1;var r;this.ambientLightThemeEnabled=!J&&!!(z==null?0:(r=z.config)==null?0:r.enableInLightTheme);this.ambientFullscreenEnabled=J&&_.K("web_cinematic_fullscreen");this.ambientTheaterModeEnabled=J&&_.K("web_cinematic_theater_mode");this.container=document.createElement("div");a.appendChild(this.container);var P;if(_.K("web_cinematic_theater_mode")||_.K("web_cinematic_fullscreen")||
(z==null?0:(P=z.config)==null?0:P.enableInLightTheme))this.ambientV2Container=document.createElement("div"),this.container.appendChild(this.ambientV2Container);eDY(this);a=this.ambientV2Container||this.container;this.backCanvas=UNM();this.frontCanvas=UNM();a.appendChild(this.backCanvas.element);a.appendChild(this.frontCanvas.element);this.storyboardManager=new IY(z,this.playerApi);_.t7(this,this.storyboardManager);this.addEventListeners();ai7(this)?jE4(this,100+rC(this)*3*2,100+rC(this)*3*2):zIL(this);
IiN(this,this.storyboardManager.currentStoryboard)};
_.b(PC,_.FC);var eDY=function(a){a.ambientV2Container?J19(a):(_.oc(a.container,{position:"absolute",top:"0",left:"0",right:"0",bottom:"0","pointer-events":"none",transform:"scale("+r1O(a)+", "+PGj(a)+")"}),DNE()&&_.oc(a.container,"filter","blur("+_.Ib("cinematic_watch_css_filter_blur_strength",40)+"px)"))},J19=function(a){if(a.ambientV2Container){var z=a.playerApi.getVideoAspectRatio();
_.oc(a.container,{"aspect-ratio":""+z,"max-width":"100%",height:"100%",margin:"0 auto",display:"flex","flex-direction":"column","justify-content":"center","pointer-events":"none"});_.oc(a.ambientV2Container,{"aspect-ratio":""+z,position:"relative","max-height":"100%","max-width":"100%","pointer-events":"none",transform:"scale("+r1O(a)+", "+PGj(a)+")"});DNE()&&_.oc(a.ambientV2Container,"filter","blur("+_.Ib("cinematic_watch_css_filter_blur_strength",40)+"px)")}};
PC.prototype.setFullscreen=function(a,z){this.fullscreen=a;this.theater=!!z;eDY(this);if(this.ambientFullscreenEnabled||this.ambientLightThemeEnabled||this.ambientTheaterModeEnabled)this.backCanvas.context.clearRect(0,0,this.backCanvas.element.width,this.backCanvas.element.height),a=this.storyboardManager.currentStoryboard,ZG9(this),a&&CGN(this,a)};
PC.prototype.addEventListeners=function(){var a=this,z=this.storyboardManager.subscribe("STORYBOARD_CHANGED",function(r){IiN(a,r)}),I=this.storyboardManager.subscribe("STORYBOARD_SIZE_CHANGED",function(){zIL(a)});
this.addOnDisposeCallback(function(){a.storyboardManager.unsubscribeByKey(z);a.storyboardManager.unsubscribeByKey(I)});
if(this.ambientV2Container){var J=function(){J19(a)};
this.playerApi.addEventListener("onVideoDataChange",J);this.addOnDisposeCallback(function(){a.playerApi.removeEventListener("onVideoDataChange",J)})}};
var zIL=function(a){if(!ai7(a)){var z=a.storyboardManager.currentStoryboardSize;isNaN(z.width)||isNaN(z.height)||jE4(a,Number(z.width)+rC(a)*3*2,Number(z.height)+rC(a)*3*2)}},jE4=function(a,z,I){a.backCanvas.element.width=z;
a.backCanvas.element.height=I;a.frontCanvas.element.width=z;a.frontCanvas.element.height=I},ai7=function(a){return a.cinematicContainerRenderer.presentationStyle==="CINEMATIC_CONTAINER_PRESENTATION_STYLE_DYNAMIC_SINGLE_COLOR"},IiN=function(a,z,I){I=I===void 0?!1:I;
var J=a.frontCanvas.element.getAnimations()[0];J?(J.pause(),a.backCanvas.context.globalAlpha=Number(getComputedStyle(a.frontCanvas.element).opacity),a.frontCanvas.element.style.opacity="0",J.finish()):a.backCanvas.context.globalAlpha=1;a.backCanvas.context.drawImage(a.frontCanvas.element,0,0,a.backCanvas.element.width,a.backCanvas.element.height);ZG9(a);z&&CGN(a,z);z=z?a.cinematicContainerRenderer.config.animationConfig.crossfadeDurationMs:_.Ib("cinematic_watch_fade_out_duration",500);J=_.Ib("cinematic_watch_transition_frame_rate")/
1E3;var r={};J&&(r={easing:"steps("+Math.round(z*J)+")"});(I===void 0?0:I)||a.frontCanvas.element.animate([{opacity:0},{opacity:1}],Object.assign({},{duration:z,iterations:1},r));a.frontCanvas.element.style.opacity="1"},ZG9=function(a){var z=a.ambientLightThemeEnabled||a.ambientTheaterModeEnabled,I=a.ambientLightThemeEnabled||a.ambientFullscreenEnabled;
a.frontCanvas.context.fillStyle=a.theater&&z||a.fullscreen&&I?"#000":"#0f0f0f";DNE()||(a.frontCanvas.context.filter="blur(0)");a.frontCanvas.context.fillRect(0,0,a.frontCanvas.element.width,a.frontCanvas.element.height)},CGN=function(a,z){DNE()||(a.frontCanvas.context.filter="blur("+rC(a)+"px)");
a.frontCanvas.context.globalAlpha=a.fullscreen&&a.ambientFullscreenEnabled||a.theater&&a.ambientTheaterModeEnabled?_.Ib("cinematic_watch_effect_letterbox_opacity",.4):_.Ib("cinematic_watch_effect_opacity",.4);var I={offsetX:rC(a)*3,offsetY:rC(a)*3,theater:a.theater,fullscreen:a.fullscreen};ai7(a)&&(I.width=100,I.height=100);z.drawToCanvas(a.frontCanvas.context,I);a.frontCanvas.context.globalAlpha=1},rC=function(a){var z;
return(z=a.cinematicContainerRenderer.config.blurStrength)!=null?z:5},r1O=function(a){var z,I;
if((a.fullscreen||a.theater)&&((z=a.cinematicContainerRenderer.config)==null?0:(I=z.watchFullscreenConfig)==null?0:I.colorSourceWidthMultiplier))return a.cinematicContainerRenderer.config.watchFullscreenConfig.colorSourceWidthMultiplier;var J;return(J=a.cinematicContainerRenderer.config.colorSourceWidthMultiplier)!=null?J:a.cinematicContainerRenderer.config.colorSourceSizeMultiplier},PGj=function(a){var z,I;
if((a.fullscreen||a.theater)&&((z=a.cinematicContainerRenderer.config)==null?0:(I=z.watchFullscreenConfig)==null?0:I.colorSourceHeightMultiplier))return a.cinematicContainerRenderer.config.watchFullscreenConfig.colorSourceHeightMultiplier;var J;return(J=a.cinematicContainerRenderer.config.colorSourceHeightMultiplier)!=null?J:a.cinematicContainerRenderer.config.colorSourceSizeMultiplier};
PC.prototype.disposeInternal=function(){_.FC.prototype.disposeInternal.call(this);this.container.remove()};
PC.prototype.clear=function(){IiN(this,void 0,!0)};
PC.prototype.pause=function(){this.storyboardManager.pause()};var N$a;N$a=_.FO(function(){var a,z,I=!((z=(a=document.createElement("canvas")).getContext)==null||!z.call(a,"2d")),J;a=!((J=CSS)==null||!J.supports("filter: blur(0)"));J=!!Element.prototype.animate&&!!Element.prototype.getAnimations;var r;return I&&a&&J&&!((r=CSS)==null||!r.supports("aspect-ratio: 1 / 1"))});
_.ZS=function(a,z){_.Ol.call(this);this.container=a;this.playerApi=z;this.fullscreen=this.theater=this.settingEnabled=this.isDarkModeEnabled=this.wasAllowed=!1;this.prefersReducedMotionQuery=tMG(this);this.update()};
_.b(_.ZS,_.Ol);_.u04=function(a){var z=document.documentElement.hasAttribute("dark");a.isDarkModeEnabled=z;a.update()};
_.E7t=function(a,z){a.settingEnabled=z;a.update()};
_.ZS.prototype.setFullscreen=function(a,z){this.fullscreen=a;this.theater=!!z;this.update()};
_.B$j=function(a,z){a.cinematicContainerRenderer=z;a.cinematicContainerRenderer&&(a.cinematicsVe=_.uq(a.isShorts()?227858:159022),_.Aq(_.Kw(),a.cinematicsVe),a.loggingClientData={watchCinematicContainerData:{presentationStyle:a.cinematicContainerRenderer.presentationStyle}});a.update()};
_.ZS.prototype.isShorts=function(){var a,z;return((a=this.cinematicContainerRenderer)==null?void 0:(z=a.config)==null?void 0:z.pageType)==="CINEMATIC_CONTAINER_PAGE_TYPE_SHORTS"};
_.ZS.prototype.isAllowed=function(){var a;if(a=N$a()){var z,I,J;a=((I=this.cinematicContainerRenderer)==null?void 0:I.presentationStyle)==="CINEMATIC_CONTAINER_PRESENTATION_STYLE_DYNAMIC_SINGLE_COLOR"&&!((J=this.cinematicContainerRenderer)==null||!J.colorStore)||((z=this.cinematicContainerRenderer)==null?void 0:z.presentationStyle)==="CINEMATIC_CONTAINER_PRESENTATION_STYLE_DYNAMIC_BLURRED"}if(a)if(_.K("web_cinematics_pausing")){var r,P;a=this.isDarkModeEnabled||!!((r=this.cinematicContainerRenderer)==
null?0:(P=r.config)==null?0:P.enableInLightTheme)}else{var N,u;r=!!((N=this.cinematicContainerRenderer)==null?0:(u=N.config)==null?0:u.enableInLightTheme)&&(_.Xw("INNERTUBE_CLIENT_NAME")==="MWEB"||this.fullscreen||this.theater);a=this.isDarkModeEnabled||r}if(N=a){var E,O;N=!((O=(E=this.prefersReducedMotionQuery)==null?void 0:E.matches)!=null&&O)}return N};
_.g7j=function(a){(a=a.currentCinematicEffect)!=null&&(a=a.storyboardManager,a.paused=!1,kAE(a),a.update())};
_.ZS.prototype.isEnabled=function(){return this.isAllowed()&&this.settingEnabled};
var tMG=function(a){if(!_.K("web_watch_cinematics_preferred_reduced_motion_default_disabled")&&window.matchMedia){var z=window.matchMedia("(prefers-reduced-motion: reduce)"),I=function(){a.update()};
z.addListener(I);a.addOnDisposeCallback(function(){z.removeListener(I)});
return z}};
_.ZS.prototype.update=function(){this.isAllowed()!==this.wasAllowed&&(this.wasAllowed=this.isAllowed(),this.publish("CINEMATICS_ALLOWED_CHANGED",this.wasAllowed));if(this.isEnabled()){var a=this.cinematicContainerRenderer;this.currentCinematicEffect||(this.currentCinematicEffect=new PC(this.container,a,this.playerApi,this.isDarkModeEnabled),_.t7(this,this.currentCinematicEffect));this.currentCinematicEffect.setFullscreen(this.fullscreen,this.theater);var z=this.currentCinematicEffect;z.cinematicContainerRenderer!==
a&&(z.cinematicContainerRenderer=a,yhe(z.storyboardManager,a),eDY(z));a=_.Kt();_.Fz(0,194,!0);a.save();a=_.TX();this.cinematicsVe&&a&&_.we(a,[this.cinematicsVe],this.loggingClientData)}else this.currentCinematicEffect&&(a=_.TX(),this.cinematicsVe&&a&&_.m8(a,[this.cinematicsVe],!1,this.loggingClientData),_.Y8(this.currentCinematicEffect),this.currentCinematicEffect=void 0)};
_.eH.Object.defineProperties(_.ZS.prototype,{TEST_ONLY:{configurable:!0,enumerable:!0,get:function(){}}});
}catch(e){_._DumpException(e)}
try{
var tmi;var u5Z;_.vK({_template:function(){if(u5Z!==void 0)return u5Z;var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:tp-yt-iron-pages--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,third_party.javascript.youtube_components.tp_yt_iron_pages.tp.yt.iron.pages.css.js--\x3e<slot class="style-scope tp-yt-iron-pages"></slot>\n');a.content.insertBefore(_.w().content.cloneNode(!0),a.content.firstChild);var z=
a.content,I=z.insertBefore;tmi===void 0&&(tmi=document.createElement("template"));var J=tmi;I.call(z,J.content.cloneNode(!0),a.content.firstChild);return u5Z=a},
is:"tp-yt-iron-pages",behaviors:[_.Ts,_.mZ],properties:{activateEvent:{type:String,value:null}},observers:["_selectedPageChanged(selected)"],_selectedPageChanged:function(){this.async(this.notifyResize)}});
}catch(e){_._DumpException(e)}
try{
var ggE;_.O7E=function(){if(_.K("kevlar_home_skeleton")&&!ggE){var a=document.querySelector("#home-page-skeleton");a&&(_.Xz("hgcr"),_.fo(a),ggE=!0)}};
ggE=!1;_.$W=new _.jv("cinematicContainerRenderer");
}catch(e){_._DumpException(e)}
try{
var YKV,eaf,an0,j60,zWE,InZ,Jnz,rnG,ZkY,CBz,uIM,BXZ,gUE,EUz,NXM,t7z,AnV;_.c8z=function(a,z,I){z=z===void 0?5:z;if(z!==0){var J=typeof a==="function"?a():document.querySelector(a);J?(I==null?0:I.enableSmartFocus)?_.k91(J):J.focus():setTimeout(function(){_.c8z(a,z-1,I)},500)}};
YKV=function(a){return String.raw.apply(String,[{raw:a}].concat(_.ih(_.dO.apply(1,arguments).map(function(z){return z instanceof Array?z.join(""):z}))))};
eaf=function(a){var z=_.dO.apply(1,arguments),I=z.length;if(!Array.isArray(a)||!Array.isArray(a.raw)||a.length!==a.raw.length||!_.g7w&&a===a.raw||!(_.g7w&&!_.OGw||_.hx(a))||I+1!==a.length)throw new TypeError("$");return new qKG(Object.freeze({strings:Object.freeze(a),args:Object.freeze(z)}))};
an0=function(a){return _.ZOi(_.POG(a&16777215))<.5};
j60=function(a,z,I){var J=I.minimumRowsOfVideosBetweenSections===void 0?1:I.minimumRowsOfVideosBetweenSections;return a<(I.minimumRowsOfVideosAtStart===void 0?2:I.minimumRowsOfVideosAtStart)||z!==null&&a-z<=J?!1:!0};
zWE=function(a,z){var I=0,J=0;a=_.C(a);for(var r=a.next();!r.done;r=a.next()){var P=r.value;if(P.richItemRenderer)P.richItemRenderer.rowIndex=J,P.richItemRenderer.colIndex=I++,I===z&&(I=0,J++);else if(P.richGroupRenderer&&P.richGroupRenderer.numColumns!==void 0)P.richGroupRenderer.rowIndex=J,P.richGroupRenderer.colIndex=I,I+=P.richGroupRenderer.numColumns,I===z&&(I=0,J++);else if(P.richSectionRenderer){var N=r=void 0;if(P=_.H((r=P)==null?void 0:(N=r.richSectionRenderer)==null?void 0:N.content,_.FmX))P.rowIndex=
J++}}};
InZ=function(a,z){var I=z.contentElement;z=z.rendererToTagNameMap;if(I&&z&&z.size!==0){for(var J=new Map,r=_.C(I.children),P=r.next();!P.done;P=r.next()){P=P.value;var N=P.tagName.toLowerCase(),u=J.get(N);u||(u=[],J.set(N,u));u.push(P)}if(J.size!==0)for(r=Math.min(a.length,I.children.length),P=new Map,N=0;N<r;N++){u=Object.keys(a[N])[0];u=z.get(u);if(!u)break;var E=P.get(u);E===void 0&&(E=0,P.set(u,E));var O=J.get(u);if(!O||E>=O.length)break;P.set(u,E+1);u=O[E];E=I.children[N];E!==u&&(_.aMM=!0,_.jSp.set(u,
!0),I.insertBefore(u,E),_.jSp.delete(u),_.aMM=!1)}}};
Jnz=function(a,z,I,J,r,P,N){J=J===void 0?{}:J;if(!a||!a.length)return{orderedContent:[]};a=a.slice();var u=[],E=[];r=null;for(var O=0,f=function(q){E.sort(function(y,e){return e.skippedOnRow-y.skippedOnRow});
for(var m,M=(m=E.shift())==null?void 0:m.content;M;)!M.richSectionRenderer&&q||u.push(M),m=void 0,M=(m=E.shift())==null?void 0:m.content},A=void 0,n=void 0,F=new Set;a.length>0||E.length>0;){for(var h=[],v=z;v>0;){var d=void 0,W=void 0,l=(W=E[0]&&E[0].skippedOnRow<O?(d=E.shift())==null?void 0:d.content:void 0)!=null?W:a.shift();
if(!l)break;if(l.richItemRenderer)d=l.richItemRenderer.targetId,W=void 0,d&&((W=N)==null?0:W.has(d))&&(W=N.get(d),!A||W&&W.timestamp>A.timestamp)&&(A=W,n&&F.add(n),n=d),h.push(l),v--;else if(l.richGroupRenderer&&l.richGroupRenderer.numColumns!==void 0)l.richGroupRenderer.numColumns<=v?(h.push(l),v-=l.richGroupRenderer.numColumns):v===z&&l.richGroupRenderer.numColumns>z?(h.push({richGroupRenderer:Object.assign({},l.richGroupRenderer,{numColumns:z})}),v=0):E.push({content:l,skippedOnRow:O});else if(l.richSectionRenderer)if(j60(O,
r,J)&&v===z){u.push(l);r=O;O++;continue}else E.push({content:l,skippedOnRow:O});else if(l.continuationItemRenderer){f(!0);u.push(l);v=0;break}if(v===0)u.push.apply(u,_.ih(h));else if(!I&&a.length===0){f(!1);u.push.apply(u,_.ih(h));v=0;break}}O++;A&&(u.push(A.content),O++);n=A=void 0}zWE(u,z);P&&InZ(u,P);return{orderedContent:u,pinnedContentNotShownTargetIds:F}};
rnG=function(){return _.dO.apply(0,arguments).flat().filter(function(a){return a}).join(";")};
ZkY=function(){return eaf(PBz,rnG.apply(null,_.ih(_.dO.apply(0,arguments))))};
CBz=function(a){switch(a){case "CARD_STYLE_OUTLINE":return"ytCardViewModelOutline";case "CARD_STYLE_TONAL":return"ytCardViewModelTonal";case "CARD_STYLE_INVERSE":return"ytCardViewModelInverted";default:return"ytCardViewModelRaised"}};
uIM=function(a,z){if(z){var I=_.qo().getState().entities.flowStateEntity,J=NXM(a),r=[z];J&&J!==z&&r.push(J);var P=!0,N;if(I&&a.flowStateEntityKey&&((N=I[a.flowStateEntityKey])==null?void 0:N.primaryButtonDisabled)!==void 0){var u;P=!((u=I[a.flowStateEntityKey])==null||!u.primaryButtonDisabled)}t7z(a,J!=null?J:z,r,P)}};
BXZ=function(a){return _.QT(_.qo(),function(z){return z.entities.flowStateEntity},function(z,I){if(a.flowStateEntityKey){var J,r=z==null?void 0:(J=z[a.flowStateEntityKey])==null?void 0:J.currentStepId,P;
I=I==null?void 0:(P=I[a.flowStateEntityKey])==null?void 0:P.currentStepId;P=_.qo().getState().talkToRecs;if(r&&r!==I){var N;z=(z==null?void 0:(N=z[a.flowStateEntityKey])==null?void 0:N.stepIdStack)||Object.keys(P.stepStates);N=!EUz(P==null?void 0:P.stepStates[r]);t7z(a,r,z,N)}}})};
gUE=function(a){return _.QT(_.qo(),_.w30,function(z){var I=NXM(a);if(I){var J=Object.keys(z.stepStates);z=!EUz(z==null?void 0:z.stepStates[I]);t7z(a,I,J,z)}})};
EUz=function(a){var z=Object.keys((a==null?void 0:a.selectionStates)||{}).reduce(function(P,N){return P||(a==null?void 0:a.selectionStates[N].isSelected)},!1),I,J,r=!!(a==null?0:(I=a.userQuery)==null?0:(J=I.userQuery)==null?0:J.trim());
return z||r};
NXM=function(a){if(a.flowStateEntityKey){var z,I,J=(z=_.qo().getState().entities.flowStateEntity)==null?void 0:(I=z[a.flowStateEntityKey])==null?void 0:I.currentStepId;if(J)return J}};
t7z=function(a,z,I,J){_.qo().dispatch(_.Q0("flowStateEntity",a.flowStateEntityKey,{currentStepId:z,stepIdStack:I,key:a.flowStateEntityKey,primaryButtonDisabled:J}))};
_.Okf=function(a,z){return _.Bd(a.entities,"youchatPendingResponseEntity",z)};
_.fnV=function(a){return function(z){_.cK(_.Q0("youchatPendingResponseEntity",a,{entityKey:a,isPendingResponse:z}))}};
AnV=function(a){a==null||a.addEventListener("DOMLoaded",function(){a.goToAndPlay(a.totalFrames-48,!0)})};
_.cg=function(a){this.__isSoyCss=!0;this.css=YKV.apply(null,[a.strings].concat(_.ih(a.args)))};
_.cg.prototype.toString=function(){return this.css};
var qKG=function(){_.cg.apply(this,arguments)};
_.b(qKG,_.cg);var PBz=_.kK(["",""]);var s6Z;var nUG;_.vK({_template:function(){if(nUG!==void 0)return nUG;var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:tp-yt-paper-material--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,third_party.javascript.youtube_components.tp_yt_paper_material.tp.yt.paper.material.css.js--\x3e<slot class="style-scope tp-yt-paper-material"></slot>\n');a.content.insertBefore(_.w().content.cloneNode(!0),a.content.firstChild);
var z=a.content,I=z.insertBefore;s6Z===void 0&&(s6Z=document.createElement("template"));var J=s6Z;I.call(z,J.content.cloneNode(!0),a.content.firstChild);return nUG=a},
is:"tp-yt-paper-material",properties:{elevation:{type:Number,reflectToAttribute:!0,value:1},animated:{type:Boolean,reflectToAttribute:!0,value:!1}}});var KT0=new _.jv("talkToRecsFlowRenderer");var FTZ=new _.jv("flowRootRenderer");var HkZ=new _.jv("learningJourneyQuizViewModel");var bke=new _.jv("chipsShelfViewModel");var hWY=new _.jv("responsiveContainerConfiguration");var V7z=new _.jv("horizontalShelfViewModel");_.Q6z=new _.jv("engagementPanelSectionListRenderer");var SyE=new _.jv("conversationResourceViewModel");var ik4=function(){this.horizontal=!1},xjV=function(a,z){a.horizontal=z};
ik4.prototype.position=function(a,z,I,J){J=J===void 0?1:J;a=this.delta(a)*J+z;J=Math.max(z,I);return a>=Math.min(z,I)&&a<=J?a:I};
ik4.prototype.axis=function(a){a=this.direction(a);return a==="up"||a==="down"?"Y":"X"};var EK=function(a,z,I){z=z===void 0?_.$o():z;this.target=a;this.manager=z;this.touchAction=I;this.events=[];this.attached=!1;this.eventMap={};this.onSwipeDown=function(){};
this.onSwipeUp=function(){};
this.onPanStart=function(){};
this.onPanMove=function(){};
this.onPanEnd=function(){}};
EK.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(_.ih(this.events)));for(var a=_.C(this.events),z=a.next();!z.done;z=a.next())this.listen(z.value)}};
EK.prototype.detach=function(){if(this.attached){this.attached=!1;this.manager.unregisterTouchEvents.apply(this.manager,[this.target].concat(_.ih(this.events)));for(var a=_.C(this.events),z=a.next();!z.done;z=a.next())this.unlisten(z.value)}};
EK.prototype.listen=function(a){this.eventMap[a]&&this.target.addEventListener(a,this.eventMap[a])};
EK.prototype.unlisten=function(a){this.eventMap[a]&&this.target.removeEventListener(a,this.eventMap[a])};var BR=function(){ik4.apply(this,arguments)};
_.b(BR,ik4);BR.prototype.direction=function(a){var z=a.detail;a=z.deltaY;z=z.deltaX;return a&&!this.horizontal?a>0?"down":"up":z&&this.horizontal?z>0?"right":"left":"none"};
BR.prototype.distance=function(a){return Math.abs(this.delta(a))};
BR.prototype.delta=function(a){var z=this.direction(a),I=a.detail;a=I.deltaX;I=I.deltaY;return z==="up"||z==="down"?I||0:a||0};
BR.prototype.velocity=function(a){var z=this.direction(a),I=a.detail;a=I.velocityX;I=I.velocityY;return Math.abs(z==="up"||z==="down"?I||0:a||0)};_.gk=function(a,z,I,J,r,P){r=r===void 0?new BR:r;P=P===void 0?_.$o():P;EK.call(this,z,P,J);var N=this;this.element=a;this.target=z;this.config=I;this.input=r;this.manager=P;this.events=["panstart","panmove","panend"];this.onPanStart=function(){N.config.draggingClass&&N.element.classList.add(N.config.draggingClass);N.config.startAction&&N.config.startAction()};
this.onPanMove=function(u){var E=vUE(N,u);if(E){N.move(u,E);E.fade&&N.fade(u,E);var O=N.input.direction(u);E.moveAction&&E.moveAction(G5M(N,u,E),O)}};
this.onPanEnd=function(u){var E,O,f,A,n,F;return _.t(function(h){if(h.nextAddress==1){N.animationRequestId&&cancelAnimationFrame(N.animationRequestId);N.animationRequestId=void 0;E=vUE(N,u);if(!E)return h.return();O=E;f=O.triggerAction;A=O.fade;n=O.disableFinish;F=O.translateBack;var v=N.input.velocity(u),d=N.input.distance(u),W=N.threshold(E);return v>.3&&d>10||d>W?n?h.jumpTo(6):A?h.yield($j4(N,u),6):h.yield(X6i(N,u,E),6):F?h.yield(N.translateBack(u),3):h.jumpTo(3)}h.nextAddress!=3&&f&&f();N.config.draggingClass&&
N.element.classList.remove(N.config.draggingClass);N.reset();_.nu(h)})};
a=Object.keys(I.triggers);this.directions=new Set(a);xjV(this.input,this.directions.has("right")||this.directions.has("left"))};
_.b(_.gk,EK);_.gk.prototype.reset=function(){this.element.style.transform="";this.element.style.opacity="";this.config.resetAction&&this.config.resetAction()};
var vUE=function(a,z){z=a.input.direction(z);return a.config.triggers[z]};
_.gk.prototype.move=function(a,z){var I=this;this.animationRequestId||(this.animationRequestId=requestAnimationFrame(function(){var J=I.input.axis(a),r=I.input.position(a,I.config.startPosition,z.endPosition,z.moveRatio||1);I.element.style.transform="translate"+J+"("+r+"px)";I.animationRequestId=void 0}))};
var G5M=function(a,z,I){var J=I.moveRatio||1;I=Math.abs(a.config.startPosition-I.endPosition);return Math.min(a.input.distance(z)*J,I)/I};
_.gk.prototype.fade=function(a,z){var I=z.endOpacity;a=G5M(this,a,z);a>0&&(this.element.style.opacity=""+(((I||0)-1)*a+1))};
_.gk.prototype.threshold=function(a){return a.threshold?a.threshold:Math.abs(a.endPosition-this.config.startPosition)/3};
var X6i=function(a,z,I){var J,r,P,N,u,E,O;return _.t(function(f){if(f.nextAddress==1)return J=a.input.delta(z)+a.config.startPosition,r=a.input.axis(z),P=I,N=P.endPosition,u=P.transitionEndPosition,O=(E=u)!=null?E:N,f.yield(a.element.animate([{transform:"translate"+r+"("+J+"px)"},{transform:"translate"+r+"("+O+"px)"}],{duration:400,easing:"cubic-bezier(.05, 0, 0, 1)"}).finished,2);a.element.style.transform="translate"+r+"("+O+"px)";_.nu(f)})};
_.gk.prototype.translateBack=function(a){var z=this,I,J;return _.t(function(r){if(r.nextAddress==1){if(!z.element.style.transform)return r.return();I=z.input.axis(a);J=z.config.startPosition;return r.yield(z.element.animate([{transform:z.element.style.transform},{transform:"translate"+I+"("+J+"px)"}],{duration:400,easing:"cubic-bezier(.05, 0, 0, 1)"}).finished,2)}z.element.style.transform="translate"+I+"("+J+"px)";_.nu(r)})};
var $j4=function(a,z){var I,J,r,P;return _.t(function(N){if(N.nextAddress==1)return I=a.input.delta(z)+a.config.startPosition,J=a.input.axis(z),r=I+70,P=a.element.style.opacity===""?1:a.element.style.opacity,N.yield(a.element.animate([{transform:"translate"+J+"("+I+"px)",opacity:P},{transform:"translate"+J+"("+r+"px)",opacity:0}],{duration:400,easing:"cubic-bezier(.05, 0, 0, 1)"}).finished,2);a.element.style.transform="translate"+J+"("+r+"px)";a.element.style.opacity="0";_.nu(N)})};var OK=function(){var a=_.nM.apply(this,arguments)||this;a._noAccessors=!0;a.scrollRate=3;a.autoScrollAnimationStart=0;a.autoScrollPaused=!1;a.autoScrollRafId=0;return a};
_.b(OK,_.nM);_.Z=OK.prototype;_.Z.created=function(){var a=this;this.boundAutoScrollHandler=function(z){a.autoScroll(z)}};
_.Z.detached=function(){this.hostElement.removeEventListener("mouseout",_.BK(this,this.startAutoScroll));this.hostElement.removeEventListener("click",_.BK(this,this.endAutoScroll));this.hostElement.removeEventListener("mouseover",_.BK(this,this.endAutoScroll));this.endAutoScroll&&this.endAutoScroll()};
_.Z.autoScrollEnabledChanged=function(){this.autoScrollEnabled?(this.hostElement.addEventListener("mouseout",_.BK(this,this.startAutoScroll)),this.hostElement.addEventListener("click",_.BK(this,this.endAutoScroll)),this.hostElement.addEventListener("mouseover",_.BK(this,this.endAutoScroll)),this.startAutoScroll()):(this.hostElement.removeEventListener("mouseout",_.BK(this,this.startAutoScroll)),this.hostElement.removeEventListener("click",_.BK(this,this.endAutoScroll)),this.hostElement.removeEventListener("mouseover",
_.BK(this,this.endAutoScroll)),this.endAutoScroll())};
_.Z.autoScroll=function(a){this.autoScrollAnimationStart||(this.autoScrollAnimationStart=a);var z;if(z=!this.autoScrollPaused&&this.scrollTarget)z=this.scrollTarget,z=z.scrollHeight-z.scrollTop!==z.clientHeight;z&&(z=1E3/this.scrollRate,a-=this.autoScrollAnimationStart,a>z&&(this.scrollTarget.scrollTop+=Math.ceil(a/z),this.autoScrollAnimationStart=0),this.startAutoScroll())};
_.Z.startAutoScroll=function(){this.autoScrollPaused=!1;this.autoScrollRafId=window.requestAnimationFrame(this.boundAutoScrollHandler)};
_.Z.endAutoScroll=function(){this.autoScrollPaused=!0;window.cancelAnimationFrame(this.autoScrollRafId)};
OK.prototype.autoScrollEnabledChanged=OK.prototype.autoScrollEnabledChanged;_.L([_.x(),_.p("design:type",Object)],OK.prototype,"scrollRate",void 0);_.L([_.x(),_.p("design:type",Object)],OK.prototype,"scrollTarget",void 0);_.L([_.x(),_.p("design:type",Boolean)],OK.prototype,"autoScrollEnabled",void 0);_.L([_.O8("autoScrollEnabled"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],OK.prototype,"autoScrollEnabledChanged",null);_.L([_.KM()],OK);_.TXi=[OK.prototype];var djE;var fD=function(){var a=_.G.apply(this,arguments)||this;a.buttonUpdate=_.K("web_button_rework");a.dismissButtonOverrides=_.K("web_button_rework")?{iconPosition:"icon-only",style:"overlay-dark",type:"tonal",size:"M",state:"active"}:void 0;a.forceDarkTheme=!1;a.forceLightTheme=!1;a.dynamicTextHeight=94;a.hasOverflowButton=!1;a.isInfeedModernization=!1;return a};
_.b(fD,_.G);_.Z=fD.prototype;_.Z.computeUrlImg=function(a){if(a)return _.P8(a.thumbnails)};
_.Z.getLogoHeight=function(a){return this.logoWithPadding(a)?"31":"24"};
_.Z.getLogoClassName=function(a){return this.logoWithPadding(a)?"ytd-banner-promo-renderer-logo-with-padding":"ytd-banner-promo-renderer-logo"};
_.Z.logoWithPadding=function(a){var z,I;return(a=(z=a.thumbnails)==null?void 0:(I=z[0])==null?void 0:I.height)&&a%31===0?!0:!1};
_.Z.sendImpressionEndpoints=function(a){a.impressionEndpoints&&_.N$(this.hostElement,a.impressionEndpoints)};
_.Z.observeBasicPalette=function(){var a,z,I=(a=this.data)==null?void 0:(z=a.colorData)==null?void 0:z.basicColorPaletteData;I?_.xq(this.hostElement,I):_.xq(this.hostElement,{})};
_.Z.observeDataChanged=function(){var a;this.dynamicTextHeight=((a=this.data)==null?0:a.supplementalText)?74:94;var z;this.hasSupplementalText=!((z=this.data)==null||!z.supplementalText);if(_.K("web_button_rework")){var I,J,r,P;a=(I=this.data)==null?void 0:(J=I.actionButton)==null?void 0:(r=J.buttonRenderer)==null?void 0:(P=r.colorData)==null?void 0:P.basicColorPaletteData;var N,u,E;if(!((N=this.data)==null?0:(u=N.actionButton)==null?0:(E=u.buttonRenderer)==null?0:E.style)&&a){this.computeIsInfeedModernization(this.data)||
(a.borderColor=a.foregroundTitleColor);var O,f;this.set("data.actionButton.buttonRenderer",_.x8.unsafeClone((O=this.data)==null?void 0:(f=O.actionButton)==null?void 0:f.buttonRenderer))}}};
_.Z.observeDataForCounterfactual=function(){if(_.K("kevlar_banner_cf_extra_logging")){var a;((a=this.data)==null?0:a.isVisible)||this.sendImpressionEndpoints(this.data)}};
_.Z.computeSupplementalStyle=function(){var a;if((a=this.data)!=null&&a.supplementalText){var z,I,J;if((z=this.data)==null?0:(I=z.colorData)==null?0:(J=I.basicColorPaletteData)==null?0:J.foregroundActivatedColor)return a=_.Da(this.data.colorData.basicColorPaletteData.foregroundActivatedColor),"--yt-endpoint-color:"+a+"; --yt-endpoint-hover-color:"+a+"; --yt-endpoint-visited-color:"+a+"; --yt-formatted-string-bold-font-weight:700;"}};
_.Z.computeForcedDarkTheme=function(){var a,z,I,J=(a=this.data)==null?void 0:(z=a.actionButton)==null?void 0:(I=z.buttonRenderer)==null?void 0:I.style,r,P,N;a=an0(((r=this.data)==null?void 0:(P=r.colorData)==null?void 0:(N=P.basicColorPaletteData)==null?void 0:N.backgroundColor)||0);return J&&a};
_.Z.computeForcedLightTheme=function(){var a,z,I,J=(a=this.data)==null?void 0:(z=a.actionButton)==null?void 0:(I=z.buttonRenderer)==null?void 0:I.style,r,P,N;a=!an0(((r=this.data)==null?void 0:(P=r.colorData)==null?void 0:(N=P.basicColorPaletteData)==null?void 0:N.backgroundColor)||0);return J&&a};
_.Z.computeHasOverflowButton=function(a){return!!a.overflowButton};
_.Z.computeHasTitle=function(a){return!!a.title};
_.Z.computeTitleMaxFontSize=function(a){return this.computeHasOverflowButton(a)?28:64};
_.Z.onDismissClick=function(){this.hostElement.classList.add("dismissed")};
_.Z.computeIsInfeedModernization=function(){var a,z,I,J,r=(a=this.data)==null?void 0:(z=a.actionButton)==null?void 0:(I=z.buttonRenderer)==null?void 0:(J=I.colorData)==null?void 0:J.basicColorPaletteData;return(r==null?void 0:r.backgroundColor)===452984831||(r==null?void 0:r.backgroundColor)===218103808};
fD.prototype.observeDataForCounterfactual=fD.prototype.observeDataForCounterfactual;fD.prototype.observeDataChanged=fD.prototype.observeDataChanged;fD.prototype.observeBasicPalette=fD.prototype.observeBasicPalette;_.L([_.Q(_.k.YtRendererBehavior),_.p("design:type",Object)],fD.prototype,"ytRendererBehavior",void 0);_.L([_.Q(_.mD),_.p("design:type",Object)],fD.prototype,"ytdDismissibleItemBehavior",void 0);
_.L([_.Q(_.cZ.YtdGuideStateAwareBehavior),_.p("design:type",Object)],fD.prototype,"ytdGuideStateAwareBehavior",void 0);_.L([_.x(),_.p("design:type",Object)],fD.prototype,"data",void 0);_.L([_.x({reflectToAttribute:!0}),_.p("design:type",Object)],fD.prototype,"buttonUpdate",void 0);_.L([_.x({reflectToAttribute:!0,value:!1}),_.p("design:type",Boolean)],fD.prototype,"hasSupplementalText",void 0);_.L([_.x(),_.p("design:type",Object)],fD.prototype,"dismissButtonOverrides",void 0);
_.L([_.x({reflectToAttribute:!0,computed:"computeHasTitle(data)"}),_.p("design:type",Boolean)],fD.prototype,"hasTitle",void 0);_.L([_.x({reflectToAttribute:!0,computed:"computeForcedDarkTheme(data)"}),_.p("design:type",Object)],fD.prototype,"forceDarkTheme",void 0);_.L([_.x({reflectToAttribute:!0,computed:"computeForcedLightTheme(data)"}),_.p("design:type",Object)],fD.prototype,"forceLightTheme",void 0);_.L([_.x(),_.p("design:type",Object)],fD.prototype,"dynamicTextHeight",void 0);
_.L([_.x({reflectToAttribute:!0,computed:"computeHasOverflowButton(data)"}),_.p("design:type",Object)],fD.prototype,"hasOverflowButton",void 0);_.L([_.x({reflectToAttribute:!0,computed:"computeIsInfeedModernization(data)"}),_.p("design:type",Object)],fD.prototype,"isInfeedModernization",void 0);_.L([_.O8("data.colorData.basicColorPaletteData"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],fD.prototype,"observeBasicPalette",null);
_.L([_.O8("data"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],fD.prototype,"observeDataChanged",null);_.L([_.O8("data.isVisible"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],fD.prototype,"observeDataForCounterfactual",null);_.L([_.U({is:"ytd-banner-promo-renderer",disableElementRegistration:!0})],fD);
_.D(fD,"ytd-banner-promo-renderer",function(){if(djE!==void 0)return djE;var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-banner-promo-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<template is="dom-if" if="[[data.isVisible]]" class="style-scope ytd-banner-promo-renderer">\n  <div class="ytd-banner-promo-renderer-background style-scope ytd-banner-promo-renderer">\n    <ytd-button-renderer id="dismiss-button" data="[[data.dismissButton.buttonRenderer]]" hidden="[[data.overflowButton]]" overrides="[[dismissButtonOverrides]]" on-click="onDismissClick" class="style-scope ytd-banner-promo-renderer">\n    </ytd-button-renderer>\n    <ytd-menu-renderer id="overflow-button" data="[[data.overflowButton.menuRenderer]]" hidden="[[!data.overflowButton]]" class="style-scope ytd-banner-promo-renderer">\n    </ytd-menu-renderer>\n    <div class="ytd-banner-promo-renderer-layout-container style-scope ytd-banner-promo-renderer">\n      <div class="ytd-banner-promo-renderer-layout style-scope ytd-banner-promo-renderer">\n        <img alt="" class="ytd-banner-promo-renderer-inline-image style-scope ytd-banner-promo-renderer" src$="[[computeUrlImg(data.backgroundImage)]]">\n        <template is="dom-if" if="[[data.logoImage]]" class="style-scope ytd-banner-promo-renderer">\n          <h1 class$="[[getLogoClassName(data.logoImage)]] style-scope ytd-banner-promo-renderer">\n            <yt-img-shadow height$="[[getLogoHeight(data.logoImage)]]" thumbnail="[[data.logoImage]]" class="style-scope ytd-banner-promo-renderer">\n            </yt-img-shadow>\n          </h1>\n        </template>\n        <div class="ytd-banner-promo-renderer-content style-scope ytd-banner-promo-renderer">\n          <div class="dynamic-text-container style-scope ytd-banner-promo-renderer">\n            <yt-dynamic-sizing-formatted-string class="dynamic-title-short style-scope ytd-banner-promo-renderer" font-family="[[data.titleFontFamily]]" hidden="[[!data.title]]" max-font-size="[[computeTitleMaxFontSize(data)]]" max-height="[[dynamicTextHeight]]" max-lines="2" max-width="440" min-font-size="20" text="[[data.title]]">\n            </yt-dynamic-sizing-formatted-string>\n            <yt-dynamic-sizing-formatted-string class="dynamic-title-long style-scope ytd-banner-promo-renderer" hidden="[[!data.promoText]]" max-font-size="[[computeTitleMaxFontSize(data)]]" max-height="[[dynamicTextHeight]]" max-lines="2" max-width="440" min-font-size="20" text="[[data.promoText]]">\n            </yt-dynamic-sizing-formatted-string>\n          </div>\n          <yt-attributed-string class="badge-text style-scope ytd-banner-promo-renderer" data="[[data.badgeText]]" hidden="[[!data.overflowButton]]">\n          </yt-attributed-string>\n          <yt-formatted-string class="supplemental-text style-scope ytd-banner-promo-renderer" style$="[[computeSupplementalStyle()]]" text="[[data.supplementalText]]">\n          </yt-formatted-string>\n          <ytd-button-renderer id="action-button" data="[[data.actionButton.buttonRenderer]]" invisible$="[[!data.actionButton.buttonRenderer]]" class="style-scope ytd-banner-promo-renderer">\n          </ytd-button-renderer>\n        </div>\n      </div>\n    </div>\n  </div>\n</template>\n');a.content.insertBefore(_.w().content.cloneNode(!0),
a.content.firstChild);return djE=a},{mode:1});var WTM;var oUV;var UjG;var A8=function(){return _.G.apply(this,arguments)||this};
_.b(A8,_.G);_.L([_.x(),_.p("design:type",Object)],A8.prototype,"data",void 0);_.L([_.Q(_.k.YtRendererBehavior),_.p("design:type",Object)],A8.prototype,"ytRendererBehavior",void 0);_.L([_.U({is:"ytd-hashtag-grid-tile-renderer",disableElementRegistration:!0})],A8);
_.D(A8,"ytd-hashtag-grid-tile-renderer",function(){if(UjG!==void 0)return UjG;var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-hashtag-grid-tile-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<a class="yt-simple-endpoint style-scope ytd-hashtag-grid-tile-renderer" href$="[[computeHref_(data.onTapCommand)]]" data="[[data.onTapCommand]]">\n  <div id="info" class="style-scope ytd-hashtag-grid-tile-renderer">\n    <yt-formatted-string id="hashtag" aria-label="[[data.suggestion]]" text="[[data.hashtag]]" class="style-scope ytd-hashtag-grid-tile-renderer">\n    </yt-formatted-string>\n    <yt-formatted-string id="hashtag-info" text="[[data.hashtagVideoCountText]]" class="style-scope ytd-hashtag-grid-tile-renderer">\n    </yt-formatted-string>\n  </div>\n</a>\n');a.content.insertBefore(_.w().content.cloneNode(!0),
a.content.firstChild);return UjG=a},{mode:1});var sK=function(){return _.G.apply(this,arguments)||this};
_.b(sK,_.G);sK.prototype.configureRendererStamper=function(){return{"data.tiles":{id:"tiles",mapping:{hashtagGridTileRenderer:"ytd-hashtag-grid-tile-renderer"}}}};
sK.prototype.updateRichGridTrendingHashtagsVisibility=function(){var a,z;if(((a=this.data)==null||!a.isExpanded)&&(z=this.data)!=null&&z.tiles){a=this.data.tiles.length;z=a>this.richGridItemsPerRow?this.richGridItemsPerRow+1:a;var I=Math.ceil(a/z);this.fullyVisibleRows=a%z===1&&I===2?1:Math.min(I,2);this.isShowMoreVisible=this.fullyVisibleRows<I}};
sK.prototype.onShowMoreClick=function(){this.isShowMoreVisible=!1;this.data&&(this.data.isExpanded=!0)};
sK.prototype.updateRichGridTrendingHashtagsVisibility=sK.prototype.updateRichGridTrendingHashtagsVisibility;_.L([_.x(),_.p("design:type",Object)],sK.prototype,"data",void 0);_.L([_.x({reflectToAttribute:!0}),_.p("design:type",Number)],sK.prototype,"fullyVisibleRows",void 0);_.L([_.x({reflectToAttribute:!0,value:!1}),_.p("design:type",Boolean)],sK.prototype,"isShowMoreVisible",void 0);_.L([_.x({selector:_.X4,value:0}),_.p("design:type",Number)],sK.prototype,"richGridItemsPerRow",void 0);
_.L([_.Q(_.k.YtRendererBehavior),_.p("design:type",Object)],sK.prototype,"ytRendererBehavior",void 0);_.L([_.Q(_.u4.YtRendererstamperBehavior),_.p("design:type",Object)],sK.prototype,"ytRendererstamperBehavior",void 0);_.L([_.Q(_.pV),_.p("design:type",Object)],sK.prototype,"ytdReduxBehavior",void 0);_.L([_.O8("data","richGridItemsPerRow"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],sK.prototype,"updateRichGridTrendingHashtagsVisibility",null);
_.L([_.U({is:"ytd-hashtag-grid-shelf-renderer",disableElementRegistration:!0})],sK);
_.D(sK,"ytd-hashtag-grid-shelf-renderer",function(){if(oUV!==void 0)return oUV;var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-hashtag-grid-shelf-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="title-text" class="style-scope ytd-hashtag-grid-shelf-renderer">\n  <yt-formatted-string id="title" text="[[data.shelfTitle]]" class="style-scope ytd-hashtag-grid-shelf-renderer"></yt-formatted-string>\n</div>\n<div id="tiles" class="style-scope ytd-hashtag-grid-shelf-renderer"></div>\n<tp-yt-paper-button id="show-more-button" aria-label$="[[data.expandButtonText]]" noink="" on-click="onShowMoreClick" class="style-scope ytd-hashtag-grid-shelf-renderer">\n  <yt-icon id="show-more-button-icon" icon="yt-icons:expand" class="style-scope ytd-hashtag-grid-shelf-renderer"></yt-icon>\n</tp-yt-paper-button>\n');a.content.insertBefore(_.w().content.cloneNode(!0),
a.content.firstChild);return oUV=a},{mode:1});var DjZ;var RWE;var nD=function(){var a=_.G.apply(this,arguments)||this;a.visibleVideos=[];a.hiddenVideos=[];a.modern=_.K("web_modern_buttons");a.actionMap={"ytd-update-elements-per-row-action":"onUpdateElementsPerRowAction","yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return a};
_.b(nD,_.G);_.Z=nD.prototype;_.Z.attached=function(){var a=!!document.documentElement.hasAttribute("dark");this.set("isDarkTheme",a);this.onDarkModeToggledAction(a)};
_.Z.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"}}}};
_.Z.dataChanged=function(){var a=this;this.requestElementsPerRow();var z,I;this.currentColorPalette=this.isDarkTheme?(z=this.data)==null?void 0:z.darkColorData:(I=this.data)==null?void 0:I.lightColorData;var J;if((J=this.currentColorPalette)==null?0:J.accentColor)this.videoMetadataColor=this.currentColorPalette.accentColor;this.updateButtonPalette();this.setHasMovieRenderer();this.setVisibleVideos(this.hasMovieRenderer);_.Yv(this,function(){a.updateVisibilityForHiddenVideos()});
this.checkExpanded(this.data)};
_.Z.elementsPerRowChanged=function(){this.updateTitleSpec();this.setVisibleVideos(this.hasMovieRenderer);this.updateVisibilityForHiddenVideos();this.checkExpanded(this.data)};
_.Z.slimItemsPerRowChanged=function(){this.setVisibleVideos(this.hasMovieRenderer);this.updateVisibilityForHiddenVideos();this.checkExpanded(this.data)};
_.Z.computeIsFirstFeedItem=function(a){return a};
_.Z.onDarkModeToggledAction=function(a){a!==this.isDarkTheme&&this.set("isDarkTheme",a);this.data&&(this.currentColorPalette=a?this.data.darkColorData:this.data.lightColorData,this.updateButtonPalette())};
_.Z.getCurrentLogo=function(a,z){if(a)return z?a.darkLogoImage:a.lightLogoImage};
_.Z.computeTitleStyle=function(a){var z;if((z=this.data)!=null&&z.title&&a&&a.textPrimary!==void 0)return"color:"+_.Da(a.textPrimary)+";"};
_.Z.computeSubtitleStyle=function(a){var z;if((z=this.data)!=null&&z.subtitle&&a&&a.textSecondary!==void 0)return"color:"+_.Da(a.textSecondary)+";"};
_.Z.computeDismissIconStyle=function(a){if(this.data&&this.data.dismissButton&&a&&a.textPrimary!==void 0)return"--yt-button-color:"+_.Da(a.textPrimary)+";"};
_.Z.computeOverflowButtonStyle=function(a){if(this.data&&this.data.overflowButton&&a&&a.textPrimary!==void 0)return"--ytd-menu-renderer-button-color:"+_.Da(a.textPrimary)+";--yt-spec-icon-active-other:"+_.Da(a.textPrimary)+";"};
_.Z.computeBackgroundStyle=function(a){if(a&&this.data){var z="";if(this.data.lightBackgroundImage&&this.data.darkBackgroundImage){var I=_.P8((this.isDarkTheme?this.data.darkBackgroundImage:this.data.lightBackgroundImage).thumbnails);I&&(z+='background-image:url("'+I+'");')}a.backgroundColor!==void 0&&(z+="background-color:"+_.RX(a.backgroundColor)+";");return z}};
_.Z.computeButton=function(){var a,z=Object.assign({},_.H((a=this.data)==null?void 0:a.showMoreButton,_.lc));if(this.modern&&z){z.style="STYLE_MONO_OUTLINE";var I;if(a=(I=this.currentColorPalette)==null?void 0:I.textPrimary)z.colorData={basicColorPaletteData:{foregroundTitleColor:a,borderColor:a}}}return z};
_.Z.shouldShowBottomButton=function(a,z){return!(a==null?0:a.header)&&!(a==null||!a.primaryButton)&&z<3};
_.Z.checkExpanded=function(a){this.isExpanded=a&&a.content?this.hiddenVideos.length===0:!0};
_.Z.onShowMoreTap=function(){this.data&&(this.isExpanded=!0,this.updateVisibilityForHiddenVideos())};
_.Z.getLogoHeight=function(a){return this.logoWithPadding(a)?"26":"20"};
_.Z.getLogoImageId=function(a){return this.logoWithPadding(a)?"logo-image-with-padding":"logo-image"};
_.Z.computeHasSectionHeader=function(a){return!!a.header};
_.Z.updateButtonPalette=function(){if(this.data)if(this.currentColorPalette){var a;if((a=this.data.primaryButton)==null?0:a.buttonRenderer)this.currentColorPalette.primaryButtonColorData?(this.data.primaryButton.buttonRenderer.colorData={basicColorPaletteData:this.currentColorPalette.primaryButtonColorData},this.data.primaryButton.buttonRenderer.style=void 0):this.currentColorPalette.primaryButtonStyleType&&(this.data.primaryButton.buttonRenderer.style=this.currentColorPalette.primaryButtonStyleType,
this.data.primaryButton.buttonRenderer.colorData=void 0),this.set("primaryButton",Object.assign({},this.data.primaryButton.buttonRenderer));var z;((z=this.data.dismissButton)==null?0:z.buttonRenderer)&&this.currentColorPalette.dismissButtonColorData&&(this.data.dismissButton.buttonRenderer.colorData={basicColorPaletteData:this.currentColorPalette.dismissButtonColorData})}else{var I,J;((I=this.data)==null?0:(J=I.primaryButton)==null?0:J.buttonRenderer)&&this.set("primaryButton",this.data.primaryButton.buttonRenderer)}};
_.Z.setVisibleVideos=function(a){if(this.data&&this.data.content)if(this.data.content.length){var z=this.data.content.length;this.data.header?a?(this.visibleVideos=this.data.content.slice(0,Math.min(z,this.slimItemsPerRow)),this.hiddenVideos=this.data.content.slice(Math.min(z,this.slimItemsPerRow),z)):(this.visibleVideos=this.data.content.slice(0,Math.min(z,this.elementsPerRow)),this.hiddenVideos=this.data.content.slice(Math.min(z,this.elementsPerRow),z)):this.elementsPerRow<3?(this.visibleVideos=
this.data.content.slice(0,Math.min(z,this.elementsPerRow)),this.hiddenVideos=this.data.content.slice(Math.min(z,this.elementsPerRow),z)):(this.visibleVideos=this.data.content.slice(0,Math.min(z,this.elementsPerRow-1)),this.hiddenVideos=this.data.content.slice(Math.min(z,this.elementsPerRow-1),z))}else this.visibleVideos=[],this.hiddenVideos=[]};
_.Z.setHasMovieRenderer=function(){var a;if((a=this.data)!=null&&a.content){var z;this.hasMovieRenderer=!!_.H((z=this.data)==null?void 0:z.content[0],_.IfI)}else this.hasMovieRenderer=!1};
_.Z.requestElementsPerRow=function(){_.PA(this.hostElement,"yt-request-elements-per-row")};
_.Z.updateVisibilityForHiddenVideos=function(){if(this.data&&this.data.content){for(var a=_.C(this.hiddenMediaRenderers),z=a.next();!z.done;z=a.next())z.value.hidden=!this.isExpanded;this.isExpanded&&this.hiddenMediaRenderers[0]&&(a=_.PK(this.hiddenMediaRenderers[0]).querySelector("#video-title-link"))&&a.focus()}};
_.Z.updateTitleSpec=function(){var a;(a=this.data)!=null&&a.titleLength&&(this.largeTitle=this.elementsPerRow===2&&this.data.titleLength>10?!0:!1)};
_.Z.logoWithPadding=function(a){var z,I,J;return(a=(z=this.getCurrentLogo(a,this.isDarkTheme))==null?void 0:(I=z.thumbnails)==null?void 0:(J=I[0])==null?void 0:J.height)&&a%31===0?!0:!1};
_.Z.onUpdateElementsPerRowAction=function(a,z,I){a&&this.elementsPerRow!==a&&(this.elementsPerRow=a);I&&this.slimItemsPerRow!==I&&(this.slimItemsPerRow=I)};
nD.prototype.slimItemsPerRowChanged=nD.prototype.slimItemsPerRowChanged;nD.prototype.elementsPerRowChanged=nD.prototype.elementsPerRowChanged;nD.prototype.dataChanged=nD.prototype.dataChanged;_.L([_.Q(_.k.YtRendererBehavior),_.p("design:type",Object)],nD.prototype,"ytRendererBehavior",void 0);_.L([_.Q(_.u4.YtRendererstamperBehavior),_.p("design:type",Object)],nD.prototype,"ytRendererstamperBehavior",void 0);_.L([_.Q(_.mD),_.p("design:type",Object)],nD.prototype,"ytdDismissibleItemBehavior",void 0);
_.L([_.Q(_.Hc.YtActionHandlerBehavior),_.p("design:type",Object)],nD.prototype,"actionHandlerBehavior",void 0);_.L([_.Q(_.pV),_.p("design:type",Object)],nD.prototype,"ytdReduxBehavior",void 0);_.L([_.x(),_.p("design:type",Object)],nD.prototype,"data",void 0);_.L([_.x(),_.p("design:type",Object)],nD.prototype,"currentColorPalette",void 0);_.L([_.x(),_.p("design:type",Array)],nD.prototype,"visibleVideos",void 0);_.L([_.x(),_.p("design:type",Array)],nD.prototype,"hiddenVideos",void 0);
_.L([_.x(),_.p("design:type",Object)],nD.prototype,"primaryButton",void 0);_.L([_.x({reflectToAttribute:!0,value:3}),_.p("design:type",Number)],nD.prototype,"elementsPerRow",void 0);_.L([_.x({reflectToAttribute:!0,value:!1}),_.p("design:type",Boolean)],nD.prototype,"isDarkTheme",void 0);_.L([_.x({reflectToAttribute:!0,value:!1}),_.p("design:type",Boolean)],nD.prototype,"isExpanded",void 0);_.L([_.x({reflectToAttribute:!0,value:!1}),_.p("design:type",Boolean)],nD.prototype,"largeTitle",void 0);
_.L([_.x({reflectToAttribute:!0,value:!1}),_.p("design:type",Boolean)],nD.prototype,"hasMovieRenderer",void 0);_.L([_.x(),_.p("design:type",Number)],nD.prototype,"slimItemsPerRow",void 0);_.L([_.x(),_.p("design:type",Boolean)],nD.prototype,"showLightVideoMetadata",void 0);_.L([_.x(),_.p("design:type",Boolean)],nD.prototype,"showDarkVideoMetadata",void 0);_.L([_.x(),_.p("design:type",Number)],nD.prototype,"videoMetadataColor",void 0);
_.L([_.x({reflectToAttribute:!0,selector:_.$p}),_.p("design:type",Boolean)],nD.prototype,"miniMode",void 0);_.L([_.x({reflectToAttribute:!0,computed:"computeIsFirstFeedItem(data.isFirstFeedItem)"}),_.p("design:type",Boolean)],nD.prototype,"isFirstFeedItem",void 0);_.L([_.x({reflectToAttribute:!0,computed:"computeHasSectionHeader(data)"}),_.p("design:type",Boolean)],nD.prototype,"hasSectionHeader",void 0);
_.L([_.x({reflectToAttribute:!0,value:!0}),_.p("design:type",Boolean)],nD.prototype,"roundedContainer",void 0);_.L([_.s8("#visible-video-container ytd-rich-grid-media"),_.p("design:type",Array)],nD.prototype,"visibleMediaRenderers",void 0);_.L([_.s8("#hidden-video-container ytd-rich-grid-media"),_.p("design:type",Array)],nD.prototype,"hiddenMediaRenderers",void 0);_.L([_.x({reflectToAttribute:!0}),_.p("design:type",Object)],nD.prototype,"modern",void 0);
_.L([_.O8("data"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],nD.prototype,"dataChanged",null);_.L([_.O8("elementsPerRow"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],nD.prototype,"elementsPerRowChanged",null);_.L([_.O8("slimItemsPerRow"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],nD.prototype,"slimItemsPerRowChanged",null);
_.L([_.U({is:"ytd-brand-video-shelf-renderer",disableElementRegistration:!0})],nD);
_.D(nD,"ytd-brand-video-shelf-renderer",function(){if(RWE!==void 0)return RWE;var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-brand-video-shelf-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="dismissible" style$="[[computeBackgroundStyle(currentColorPalette)]]" class="style-scope ytd-brand-video-shelf-renderer">\n  <div id="content-wrapper" class="style-scope ytd-brand-video-shelf-renderer">\n    <div id="shelf-header-container" hidden="[[!data.header]]" class="style-scope ytd-brand-video-shelf-renderer">\n      <div id="top-level-header-container" class="style-scope ytd-brand-video-shelf-renderer">\n        <div id="section-header-container" class="style-scope ytd-brand-video-shelf-renderer"></div>\n        <div id="top-buttons-container" hidden="[[!data.header]]" class="style-scope ytd-brand-video-shelf-renderer">\n          <ytd-button-renderer id="primary-button" data="[[primaryButton]]" hidden="[[!data.primaryButton]]" class="style-scope ytd-brand-video-shelf-renderer">\n          </ytd-button-renderer>\n          <div id="overflow-button" hidden="[[!data.overflowButton]]" style$="[[computeOverflowButtonStyle(currentColorPalette)]]" class="style-scope ytd-brand-video-shelf-renderer"></div>\n        </div>\n      </div>\n      <div id="subtitle-container" style$="[[computeSubtitleStyle(currentColorPalette)]]" class="style-scope ytd-brand-video-shelf-renderer">\n        <yt-formatted-string id="subtitle" text="[[data.subtitle]]" class="style-scope ytd-brand-video-shelf-renderer"></yt-formatted-string>\n      </div>\n    </div>\n    <div id="visible-content-wrapper" class="style-scope ytd-brand-video-shelf-renderer">\n      <div id="metadata-container" hidden="[[data.header]]" class="style-scope ytd-brand-video-shelf-renderer">\n        <div id="header-container" class="style-scope ytd-brand-video-shelf-renderer">\n          <yt-img-shadow height$="[[getLogoHeight(data)]]" hidden="[[!data.lightLogoImage]]" id$="[[getLogoImageId(data)]]" thumbnail="[[getCurrentLogo(data, isDarkTheme)]]" class="style-scope ytd-brand-video-shelf-renderer">\n          </yt-img-shadow>\n          <div id="badge-container" style$="[[computeTitleStyle(currentColorPalette)]]" class="style-scope ytd-brand-video-shelf-renderer">\n            <yt-formatted-string id="badge" text="[[data.badgeText]]" class="style-scope ytd-brand-video-shelf-renderer"></yt-formatted-string>\n          </div>\n        </div>\n        <div id="title-container" style$="[[computeTitleStyle(currentColorPalette)]]" class="style-scope ytd-brand-video-shelf-renderer">\n          <yt-formatted-string id="title" text="[[data.title]]" class="style-scope ytd-brand-video-shelf-renderer"></yt-formatted-string>\n        </div>\n        <div id="subtitle-container" style$="[[computeSubtitleStyle(currentColorPalette)]]" class="style-scope ytd-brand-video-shelf-renderer">\n          <yt-formatted-string id="subtitle" text="[[data.subtitle]]" class="style-scope ytd-brand-video-shelf-renderer"></yt-formatted-string>\n        </div>\n        <div id="metadata-button-container" hidden="[[shouldShowBottomButton(data, elementsPerRow)]]" class="style-scope ytd-brand-video-shelf-renderer">\n          <ytd-button-renderer id="primary-button" data="[[primaryButton]]" class="style-scope ytd-brand-video-shelf-renderer">\n          </ytd-button-renderer>\n        </div>\n      </div>\n      <div id="visible-video-container" class="style-scope ytd-brand-video-shelf-renderer"></div>\n    </div>\n    <div id="hidden-video-container" class="style-scope ytd-brand-video-shelf-renderer"></div>\n    <div id="bottom-button-container" hidden="[[!shouldShowBottomButton(data, elementsPerRow)]]" class="style-scope ytd-brand-video-shelf-renderer">\n      <ytd-button-renderer id="primary-button" data="[[primaryButton]]" class="style-scope ytd-brand-video-shelf-renderer">\n      </ytd-button-renderer>\n    </div>\n  </div>\n  <div id="show-more-button-container" hidden="[[isExpanded]]" class="style-scope ytd-brand-video-shelf-renderer">\n    <ytd-button-renderer id="show-more-button" data="[[computeButton(data.showMoreButton.buttonRenderer, currentColorPalette)]]" style$="[[computeDismissIconStyle(currentColorPalette)]]" on-click="onShowMoreTap" class="style-scope ytd-brand-video-shelf-renderer">\n    </ytd-button-renderer>\n  </div>\n  <div id="dismiss-button" hidden="[[data.overflowButton]]" style$="[[computeDismissIconStyle(currentColorPalette)]]" class="style-scope ytd-brand-video-shelf-renderer"></div>\n</div>\n<div id="dismissed" class="style-scope ytd-brand-video-shelf-renderer"></div>\n');a.content.insertBefore(_.w().content.cloneNode(!0),
a.content.firstChild);return RWE=a},{mode:1});var LTY;var KD=function(){var a=_.G.apply(this,arguments)||this;a.actionMap={"ytd-update-elements-per-row-action":"onUpdateElementsPerRowAction","yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return a};
_.b(KD,_.G);_.Z=KD.prototype;_.Z.attached=function(){var a=!!document.documentElement.hasAttribute("dark");this.set("isDarkTheme",a);this.onDarkModeToggledAction(a)};
_.Z.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"}}}};
_.Z.dataChanged=function(){this.requestElementsPerRow();var a,z;this.currentColorPalette=this.isDarkTheme?(a=this.data)==null?void 0:a.darkColorData:(z=this.data)==null?void 0:z.lightColorData;this.computeVideoMetadataColor(this.isDarkTheme);this.updateButtonPalette()};
_.Z.elementsPerRowChanged=function(){this.updateTitleSpec()};
_.Z.computeIsFirstFeedItem=function(a){return a};
_.Z.onDarkModeToggledAction=function(a){a!==this.isDarkTheme&&this.set("isDarkTheme",a);this.data&&(this.currentColorPalette=a?this.data.darkColorData:this.data.lightColorData,this.computeVideoMetadataColor(a),this.updateButtonPalette())};
_.Z.shouldShowThumbnailInMetadata=function(a){return a<=1};
_.Z.computeVideoMetadataColor=function(){if(this.data){var a;if((a=this.currentColorPalette)==null?0:a.accentColor)this.videoMetadataColor=this.currentColorPalette.accentColor}};
_.Z.computeTitleStyle=function(a){var z;if((z=this.data)!=null&&z.title&&a&&a.textPrimary!==void 0)return"color:"+_.Da(a.textPrimary)+";"};
_.Z.computeSubtitleStyle=function(a){var z;if((z=this.data)!=null&&z.subtitle&&a&&a.textSecondary!==void 0)return"color:"+_.Da(a.textSecondary)+";"};
_.Z.computeOverflowButtonStyle=function(a){if(this.data&&this.data.overflowButton&&a.textPrimary!==void 0)return"--ytd-menu-renderer-button-color:"+_.Da(a.textPrimary)+";--yt-spec-icon-active-other:"+_.Da(a.textPrimary)+";"};
_.Z.computeBackgroundStyle=function(a){if(a&&this.data){var z="";a.backgroundColor!==void 0&&(z+="background-color:"+_.RX(a.backgroundColor)+";");return z}};
_.Z.computeHasOverflowButton=function(a){return!!a.overflowButton};
_.Z.updateButtonPalette=function(){if(this.data){var a;if((a=this.data.primaryButton)==null?0:a.buttonRenderer){var z;if((z=this.currentColorPalette)==null?0:z.primaryButtonColorData)this.data.primaryButton.buttonRenderer.colorData={basicColorPaletteData:this.currentColorPalette.primaryButtonColorData},this.data.primaryButton.buttonRenderer.style=void 0;else{var I;((I=this.currentColorPalette)==null?0:I.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)})}}};
_.Z.requestElementsPerRow=function(){_.PA(this.hostElement,"yt-request-elements-per-row")};
_.Z.updateTitleSpec=function(){var a;(a=this.data)!=null&&a.titleLength&&(this.titleSize=this.elementsPerRow<=3?this.data.titleLength<=10?"TITLE_SIZE_MEDIUM":"TITLE_SIZE_SMALL":this.data.titleLength<=13?"TITLE_SIZE_LARGE":this.data.titleLength<=30?"TITLE_SIZE_MEDIUM":"TITLE_SIZE_SMALL")};
_.Z.onUpdateElementsPerRowAction=function(a){a&&this.elementsPerRow!==a&&(this.elementsPerRow=a)};
KD.prototype.elementsPerRowChanged=KD.prototype.elementsPerRowChanged;KD.prototype.dataChanged=KD.prototype.dataChanged;_.L([_.Q(_.k.YtRendererBehavior),_.p("design:type",Object)],KD.prototype,"ytRendererBehavior",void 0);_.L([_.Q(_.u4.YtRendererstamperBehavior),_.p("design:type",Object)],KD.prototype,"ytRendererstamperBehavior",void 0);_.L([_.Q(_.mD),_.p("design:type",Object)],KD.prototype,"ytdDismissibleItemBehavior",void 0);
_.L([_.Q(_.Hc.YtActionHandlerBehavior),_.p("design:type",Object)],KD.prototype,"actionHandlerBehavior",void 0);_.L([_.Q(_.pV),_.p("design:type",Object)],KD.prototype,"ytdReduxBehavior",void 0);_.L([_.x(),_.p("design:type",Object)],KD.prototype,"data",void 0);_.L([_.x(),_.p("design:type",Object)],KD.prototype,"currentColorPalette",void 0);_.L([_.x(),_.p("design:type",Object)],KD.prototype,"primaryButton",void 0);
_.L([_.x({reflectToAttribute:!0,value:3}),_.p("design:type",Number)],KD.prototype,"elementsPerRow",void 0);_.L([_.x({reflectToAttribute:!0,value:!1}),_.p("design:type",Boolean)],KD.prototype,"isDarkTheme",void 0);_.L([_.x({reflectToAttribute:!0}),_.p("design:type",String)],KD.prototype,"titleSize",void 0);_.L([_.x(),_.p("design:type",Number)],KD.prototype,"videoMetadataColor",void 0);_.L([_.x({reflectToAttribute:!0,selector:_.$p}),_.p("design:type",Boolean)],KD.prototype,"miniMode",void 0);
_.L([_.x({reflectToAttribute:!0,computed:"computeIsFirstFeedItem(data.isFirstFeedItem)"}),_.p("design:type",Boolean)],KD.prototype,"isFirstFeedItem",void 0);_.L([_.x({reflectToAttribute:!0,value:!0}),_.p("design:type",Boolean)],KD.prototype,"roundedContainer",void 0);_.L([_.x({reflectToAttribute:!0,computed:"computeHasOverflowButton(data)"}),_.p("design:type",Boolean)],KD.prototype,"hasOverflowButton",void 0);
_.L([_.O8("data"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],KD.prototype,"dataChanged",null);_.L([_.O8("elementsPerRow"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],KD.prototype,"elementsPerRowChanged",null);_.L([_.U({is:"ytd-brand-video-singleton-renderer",disableElementRegistration:!0})],KD);
_.D(KD,"ytd-brand-video-singleton-renderer",function(){if(LTY!==void 0)return LTY;var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-brand-video-singleton-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="dismissible" 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>');
a.content.insertBefore(_.w().content.cloneNode(!0),a.content.firstChild);return LTY=a},{mode:_.Np("kevlar_poly_si_batch_j070")?1:2});var lnZ;var p6i=_.ec(function(a){var z=a.data;return _.B(_.qp,{data:function(){return z().thumbnail},
alt:"",className:"profile-page-header-information-view-model-wiz__profile-page-header-thumbnail-image",targetHeight:function(){a:switch(z().variant){case "PROFILE_PAGE_HEADER_THUMBNAIL_VARIANT_VERTICAL":var I=108;break a;case "PROFILE_PAGE_HEADER_THUMBNAIL_VARIANT_FULL_BLEED_HORIZONTAL":I=88;break a;default:I=88}return I},
preserveHeight:!0,preserveWidth:!0,useWidth:!1,contentMode:function(){return z().thumbnail.contentMode||"CONTENT_MODE_SCALE_ASPECT_FIT"}})},"Bj"),mjZ=_.ec(function(a){var z=a.metadataRow;
var I=a.delimiter;return _.B(_.se,{each:function(){return z().textParts||[]},
keyBy:"INDEX"},function(J,r){return _.B(_.eJ,null,_.B(_.xs,{text:J,noWrap:!0,userInput:!0}),_.B(w6Z,{delimiter:I,max:function(){return z().textParts.length},
index:r}))})},"Cj"),w6Z=_.ec(function(a){var z=a.delimiter;
var I=a.max;var J=a.index;return _.B(_.g,{cond:function(){return(z==null?void 0:z())&&I()-1>J()},
then:function(){return _.B("span",null,z)}})},"Dj"),ynE=_.ec(function(a){var z=a.data;
a={};return _.B("yt-profile-page-header-information-view-model",{class:_.B8("profile-page-header-information-view-model-wiz",(a["profile-page-header-information-view-model-wiz--mobile"]=!1,a))},_.B(_.g,{cond:function(){return z().onTap},
then:function(){return _.B(_.lq,{className:"profile-page-header-information-view-model-wiz__profile-page-header-thumbnail",command:function(){return _.o0(z().onTap)}},_.B(_.V0,{data:function(){return z().thumbnail}},{profilePageHeaderThumbnailViewModel:p6i}))},
else:function(){return _.B("div",{class:"profile-page-header-information-view-model-wiz__profile-page-header-thumbnail"},_.B(_.V0,{data:function(){return z().thumbnail}},{profilePageHeaderThumbnailViewModel:p6i}))}}),_.B("div",{class:"profile-page-header-information-view-model-wiz__flex-container"},_.B(_.g,{cond:function(){return z().onTap},
then:function(){return _.B(_.V0,{data:function(){return z().title}},{profilePageHeaderTitleViewModel:function(I){var J=I.data;
return _.B(_.lq,{className:"profile-page-header-information-view-model-wiz__profile-page-header-title",command:function(){return _.o0(J().onTap)}},_.B(_.xs,{text:function(){return J().title}}))}})},
else:function(){return _.B(_.V0,{data:function(){return z().title}},{profilePageHeaderTitleViewModel:function(I){var J=I.data;
return _.B(_.xs,{text:function(){return J().title},
className:"profile-page-header-information-view-model-wiz__profile-page-header-title"})}})}}),_.B(_.V0,{data:function(){return z().metadata}},{profilePageHeaderMetadataViewModel:function(I){var J=I.data;
return _.B(_.g,{cond:function(){return J().metadataRows},
then:function(r){return _.B("div",{class:"profile-page-header-information-view-model-wiz__profile-page-header-metadata"},_.B(_.se,{each:r,keyBy:"INDEX"},function(P,N){return _.B(_.eJ,null,_.B(mjZ,{metadataRow:P,delimiter:" \u2022 "}),_.B(w6Z,{delimiter:" \u2022 ",max:function(){return r().length},
index:N}))}))}})}})))},"Ej");
ynE.idomCompat=!0;_.Jf(ynE,"yt-profile-page-header-information-view-model",{props:{data:_.zl}});var FY=function(){return _.G.apply(this,arguments)||this};
_.b(FY,_.G);FY.prototype.configureRendererStamper=function(){return{"data.information":{id:"header",mapping:{profilePageHeaderInformationViewModel:"yt-profile-page-header-information-view-model"}}}};
_.L([_.Q(_.u4.YtRendererstamperBehavior),_.p("design:type",Object)],FY.prototype,"ytRendererstamperBehavior",void 0);_.L([_.x(),_.p("design:type",Object)],FY.prototype,"data",void 0);_.L([_.U({is:"ytd-effect-pivot-header-view-model",disableElementRegistration:!0})],FY);
_.D(FY,"ytd-effect-pivot-header-view-model",function(){if(lnZ!==void 0)return lnZ;var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-effect-pivot-header-view-model--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-effect-pivot-header-view-model"></div>\n');a.content.insertBefore(_.w().content.cloneNode(!0),a.content.firstChild);return lnZ=
a},{mode:1});var k54;var HR=function(){return _.G.apply(this,arguments)||this};
_.b(HR,_.G);HR.prototype.configureRendererStamper=function(){return{"data.headerInformation":{id:"header",mapping:{profilePageHeaderInformationViewModel:"yt-profile-page-header-information-view-model"}}}};
_.L([_.Q(_.u4.YtRendererstamperBehavior),_.p("design:type",Object)],HR.prototype,"ytRendererstamperBehavior",void 0);_.L([_.x(),_.p("design:type",Object)],HR.prototype,"data",void 0);_.L([_.U({is:"ytd-source-pivot-header-renderer",disableElementRegistration:!0})],HR);
_.D(HR,"ytd-source-pivot-header-renderer",function(){if(k54!==void 0)return k54;var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-source-pivot-header-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-source-pivot-header-renderer"></div>\n');a.content.insertBefore(_.w().content.cloneNode(!0),a.content.firstChild);return k54=a},{mode:1});_.M7Z=_.ec(function(a){var z=a.data;var I=function(){var J;return _.oK((J=z())==null?void 0:J.rendererContext)};
a={};return _.B("content-list-item-view-model",{el:_.a5(_.UN(function(){return z().rendererContext})),
class:_.B8("ytContentListItemViewModelHost",(a.ytContentListItemViewModelTappable=I,a)),role:function(){return I()?"listitem":void 0},
tabindex:function(){return I()?0:void 0}},_.B("div",{class:"ytContentListItemViewModelContentListItemWrapper"},_.B("div",{class:"ytContentListItemViewModelImageContainer"},_.B(_.g,{cond:function(){return z().image},
then:function(J){return _.B(_.qp,{data:J,alt:"",targetWidth:72,targetHeight:72,preserveWidth:!0,preserveHeight:!0,className:"ytContentListItemViewModelimageClassName"})}}),_.B(_.V0,{data:function(){var J;
return(J=z())==null?void 0:J.avatar}},{avatarViewModel:_.ok})),_.B("div",{class:"ytContentListItemViewModelTitleMetadataWrapper"},_.B("div",{class:_.B8("ytContentListItemViewModelTitle",function(){a:{switch(z().titleStyle){case "CONTENT_LIST_ITEM_TITLE_STYLE_PROMINENT":var J="ytContentListItemViewModelProminentTitle";
break a}J=void 0}return J})},_.B(_.xs,{text:function(){return z().title}})),_.B("div",{class:"ytContentListItemViewModelMetadata"},_.B(_.V0,{data:function(){return z().metadata}},{contentMetadataViewModel:function(J){return _.B(_.ub,{data:J.data,
layout:1})}})))),_.B("div",{class:"ytContentListItemViewModelActionButton"},_.B(_.V0,{data:function(){var J;
return(J=z())==null?void 0:J.actionButton}},{buttonViewModel:_.At,
toggleButtonViewModel:_.Wc})))},"Fj");_.Jf(_.ec(function(a){var z=function(){return a.data().background},I=function(){return a.data().trailingActionLayout==="CARD_TRAILING_ACTION_LAYOUT_OVERLAY"},J=function(){return a.data().trailingActionLayout==="CARD_TRAILING_ACTION_LAYOUT_INLINE_CENTER"};
return _.B("yt-card-view-model",{class:_.B8("ytCardViewModelHost",a.className)},_.B(_.Eu,{contentId:function(){return a.data().contentId}},function(){return _.B("div",{class:_.B8("ytCardViewModelCardViewModelInner",function(){return CBz(a.data().cardStyle)})},_.B(_.V0,{data:z},{cinematicContainerViewModel:function(r){return _.B(_.f61,{data:r.data})}}),_.B("div",{class:"ytCardViewModelContentWrapper"},_.B(_.g,{cond:function(){return!I()},
then:function(){var r={};return _.B("div",{class:"ytCardViewModelTopContent"},_.B(_.V0,{data:function(){return a.data().topContent}},{contentListItemViewModel:function(P){return _.B(_.M7Z,{data:P.data})}}),_.B("div",{class:_.B8("ytCardViewModelInlineTrailingAction",(r.ytCardViewModelInlineCenterTrailingAction=J,r))},_.B(_.V0,{data:function(){return a.data().trailingAction}},{buttonViewModel:function(P){return _.B(_.At,{data:P.data})}})))}}),_.B("div",{class:"ytCardViewModelBodyContent"},_.B(_.V0,
{data:function(){return a.data().bodyContent}},{contentListItemViewModel:function(r){return _.B(_.M7Z,{data:r.data})}}))),_.B(_.g,{cond:function(){return I()},
then:function(){return _.B("div",{class:"ytCardViewModelOverlayTrailingAction"},_.B(_.V0,{data:function(){return a.data().trailingAction}},{buttonViewModel:function(r){return _.B(_.At,{data:r.data})}}))}}))}))},"Gj"),"yt-card-view-model",{props:{data:_.zl,
className:_.zl}});_.Jf(_.ec(function(a){var z=function(){return _.H(a.data().flowRoot,FTZ)};
_.QO(function(){var I=z(),J=function(){},r=function(){};
if(I){var P,N,u,E=((u=_.H((P=z())==null?void 0:(N=P.steps)==null?void 0:N[0],_.L5z))==null?void 0:u.stepId)||"";uIM(I,E);J=BXZ(I);r=gUE(I)}_.V3(function(){var O=z();O&&_.qo().dispatch(_.Q0("flowStateEntity",O.flowStateEntityKey));J();J=function(){};
r();r=function(){}})});
return _.B("ytd-talk-to-recs-flow-renderer",{class:"ytdTalkToRecsFlowRendererHost"},_.B(_.Eu,{contentId:function(){return a.data().contentId}},function(){return _.B("div",{class:"ytdTalkToRecsFlowRendererFlowContent"},_.B(_.g,{cond:z,
then:function(I){return _.B(_.yJz,{data:I})}}))}))},"Hj"),"ytd-talk-to-recs-flow-renderer",{props:{data:_.zl}});_.Jf(_.ec(function(){return _.B("ytd-chips-shelf-with-video-shelf-ghost-card-view-model",{class:"ytdChipsShelfWithVideoShelfGhostCardViewModelHost"},_.B("div",{class:"ytdChipsShelfWithVideoShelfGhostCardViewModelTitle"}),_.B("div",{class:"ytdChipsShelfWithVideoShelfGhostCardViewModelChipsShelf"},_.B(_.Xvi,null)),_.B(_.Q$G,{data:{rows:1},isExploreHub:!0}))},"Ij"),"ytd-chips-shelf-with-video-shelf-ghost-card-view-model");_.Jf(_.ec(function(a){var z=a.data;var I=a.standardUnitMinWidth;a=_.C((0,_.vYi)(z));var J=a.next().value,r=a.next().value,P=function(){var u,E=(u=J())==null?void 0:u.contents;return E==null||E.length===0},N=function(){r(Object.assign({},J(),{contents:[]}))};
return _.B("ytd-chips-shelf-with-video-shelf-renderer",{class:"ytdChipsShelfWithVideoShelfRendererHost",el:_.a5(_.z$({showOption:{calledOnce:!0,state:"visible"},visibilityCallback:function(){var u=_.H(z().chipsShelf,bke);if(u!=null&&u!=null&&u.autoselectChipOnVisible){var E,O,f=_.H(u==null?void 0:(E=u.contents)==null?void 0:E[(O=u.autoselectedChipIndex)!=null?O:0],_.kF);f&&f.tapCommand&&_.lN(f.tapCommand)}}}))},_.B(_.Eu,{contentId:function(){return z().contentId},
useLegacyShelfStyle:function(){return!0}},function(){return _.B("div",null,_.B("div",{class:"ytdChipsShelfWithVideoShelfRendererHeader"},_.B(_.V0,{data:function(){return z().header}},{sectionHeaderViewModel:function(u){return _.B(_.fF,{data:u.data,
disableHorizontalPadding:!0})}})),_.B("div",{class:"ytdChipsShelfWithVideoShelfRendererChipsShelf"},_.B(_.V0,{data:function(){return z().chipsShelf}},{chipsShelfViewModel:function(u){return _.B(_.Up,{data:u.data,
callback:N,enableSingleChipSelection:!0})}})),_.B("div",null,_.B(_.g,{cond:P,
then:function(){return _.B("div",{class:"ytdChipsShelfWithVideoShelfRendererGhostCards"},_.B(_.Q$G,{data:{rows:1},isExploreHub:!0}))}}),_.B(_.V0,{data:function(){var u;
return(u=J())==null?void 0:u.contents}},{richShelfRenderer:function(u){return _.B(_.$61,{data:u.data,
isInnerShelf:!0,standardUnitMinWidth:I})}})))}))},"Jj"),"ytd-chips-shelf-with-video-shelf-renderer",{props:{data:_.zl,
standardUnitMinWidth:_.zl}});var bL=function(){return _.G.apply(this,arguments)||this};
_.b(bL,_.G);
bL.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}}};
bL.prototype.configureContinuationPathMap=function(){return{"yt-reload-continuation-items-command-body":"content"}};
_.L([_.Q(_.pV),_.p("design:type",Object)],bL.prototype,"ytdReduxBehavior",void 0);_.L([_.Q(_.u4.YtRendererstamperBehavior),_.p("design:type",Object)],bL.prototype,"ytRendererstamperBehavior",void 0);_.L([_.Q(_.M8),_.p("design:type",Object)],bL.prototype,"ytContinuationHandlerBehavior",void 0);_.L([_.Q(_.k.YtRendererBehavior),_.p("design:type",Object)],bL.prototype,"ytRendererBehavior",void 0);_.L([_.x(),_.p("design:type",Object)],bL.prototype,"data",void 0);
_.L([_.x(),_.p("design:type",Number)],bL.prototype,"standardUnitMinWidth",void 0);_.L([_.U({is:"ytd-rich-section-renderer",disableElementRegistration:!0})],bL);
_.D(bL,"ytd-rich-section-renderer",function(){if(DjZ!==void 0)return DjZ;var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-rich-section-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="content" class="style-scope ytd-rich-section-renderer"></div>\n');a.content.insertBefore(_.w().content.cloneNode(!0),a.content.firstChild);return DjZ=a},{mode:_.Np("kevlar_poly_si_batch_j029")?
1:2});_.Jf(_.uy0,"yt-profile-identity-info-view-model",{props:{data:_.zl,hideDivider:_.zl,isChannelInfoCard:_.zl}});_.Jf(_.haO,"yt-page-header-view-model",{props:{data:_.zl,noPadding:_.zl,enableBanner:_.zl,cinematicContainerTopbarOffset:_.zl,allowCinematicContainerOverflow:_.zl,displayAsSidebar:_.zl,displayAsPanel:_.zl,alwaysUseMediumTextDescription:_.zl}});_.Jf(_.ec(function(a){var z=a.data;var I=function(){var r;return(r=z().numColumns)!=null?r:2},J=function(){return I()>1?3:2};
a={};return _.B("ytd-rich-grid-group",{class:_.B8("ytdRichGridGroupHost",(a.ytdRichGridGroupHostFirstColumn=function(){return z().colIndex===0},a)),
style:_.sW({"--ytd-rich-grid-group-num-columns":I,"--ytd-rich-grid-items-per-group":J})},_.B("div",{class:"ytdRichGridGroupContents"},_.B(_.V0,{data:function(){var r;return(r=z().contents)==null?void 0:r.slice(0,J())}},{richItemRenderer:function(r){return _.B(_.vyv,{data:r.data,
noGutterMargins:!0,isInlineGroupItem:!0,insetMetadata:!0})}})))},"Kj"),"ytd-rich-grid-group",{props:{data:_.zl}});var h8=function(){var a=_.G.apply(this,arguments)||this;a.resizeOnObserverInit=!1;a.isInlinePreviewDisabled=_.K("web_disable_inline_preview");a.disableStickyFilterBar=!1;a.transparentBackgroundChipsBar=!1;a.hideChipsBar=!1;a.isWatchDefaultLayout=!0;a.continuationShowButton=!1;a.rowReducedHorizontalMargin=!1;a.useCompactList=!1;a.manualDownloadsPresent=!1;a.smartDownloadsPresent=!1;a.isOnline=!1;a.shouldRenderDownloadsBanner=!1;a.shouldRenderDownloadsBannerUpsell=!1;a.hasOptedIntoSmartDownloads=!1;
a.elementsPerRow=4;a.typographyBump=!1;a.showGnomeContents=!1;a.showExploreHubContents=!1;a.slimItemsPerRow=1;a.pageLoadingFromNavigation=!1;a.loggingRefactor=_.K("kevlar_rich_grid_logging_fix");a.resizeObserver=null;a.actionMap={"yt-chip-cloud-chip-select-action":"handleChipCloudChipSelectAction","yt-chip-cloud-chip-deselect-action":"handleChipCloudChipDeselectAction","yt-signal-action-soft-reload-page":"onSoftReloadPage","yt-playlist-remove-videos-action":"handlePlaylistRemoveVideosAction","yt-insert-rich-section-action":"insertRichSection"};
a.rendererToTagNameMap=new Map(Object.entries(a.contentMapping()).map(function(z){var I=_.C(z);z=I.next().value;I=I.next().value;return[z,I.component]}));
a.insertedContent=new Map;return a};
_.b(h8,_.G);_.Z=h8.prototype;_.Z.onUseCompactListChange=function(){if(this.useCompactList!==void 0)for(var a=_.C(_.PK(this.hostElement).querySelectorAll("ytd-rich-item-renderer")),z=a.next();!z.done;z=a.next())z.value.useCompactList=this.useCompactList};
_.Z.onSizingChange=function(){if(this.sizing!==void 0&&this.typographyBump!==void 0)for(var a=_.C(_.PK(this.hostElement).querySelectorAll("ytd-rich-item-renderer")),z=a.next();!z.done;z=a.next())z=z.value,z.sizing=this.sizing,z.typographyBump=this.typographyBump};
_.Z.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"contents","yt-reload-continuation-items-command-body":"contents","yt-reload-continuation-items-command-header":"header"}};
_.Z.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]]"}}}};
_.Z.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}}};
_.Z.attached=function(){document.addEventListener("yt-page-type-changed",_.BK(this,this.onPageChange));this.updateItemMinAndMaxWidth();this.JSC$21770_throttledOnResize=new _.kc(this.resizeObserved,_.Ib("rich_grid_resize_delay_ms",50),this)};
_.Z.detached=function(){var a;(a=this.resizeObserver)==null||a.disconnect();document.removeEventListener("yt-page-type-changed",_.BK(this,this.onPageChange))};
_.Z.insertRichSection=function(a){var z=a.richItemTargetId;a=a.richSectionRendererToInsert;z&&a&&(this.insertedContent.set(z,{content:a,timestamp:Date.now()}),this.reflowContent())};
_.Z.computeIsReloading=function(){return this.ytContinuationHandlerBehavior.continuationIsReloading};
_.Z.computeIsInlinePreviewEnabled=function(a,z,I){return _.K("web_disable_inline_preview")?!1:!I&&_.G9G({miniplayerIsActive:a,miniplayerPlaybackState:z})};
_.Z.computeSizing=function(){var a=_.l7$(this.data);if(a||!(this.isShortsGrid||this.isSlimGrid||this.isCompactGrid||this.isShortsPanel))return a?this.useCompactList?"COMPACT":a:this.miniMode?"COMPACT":_.K("web_use_layout_library_for_rich_grid")?"STANDARD":void 0};
_.Z.updateItemMinAndMaxWidth=function(){var a=_.Ib("rich_grid_max_item_width",500);a>0&&_.uK(this.hostElement,{"--ytd-rich-grid-item-max-width":a+"px"});var z;a=this.getRichItemMinWidth((z=this.hostElement)==null?void 0:z.clientWidth);a>0&&_.uK(this.hostElement,{"--ytd-rich-grid-item-min-width":a+"px"})};
_.Z.forceRefreshAndLog=function(){this.refreshGridLayout(!0);this.updateRichItemGridPositions()};
_.Z.resizeObserved=function(){_.Ct(this.hostElement,"yt-rich-grid-resize-observed");this.refreshGridLayout(!1,!0)&&this.updateRichItemGridPositions()};
_.Z.navigateBackToHome=function(){_.K("web_hide_gnome_until_user_navigates_back_to_home")&&(this.showGnomeContents=!1);_.K("web_hide_explore_hub_until_user_navigates_back_to_home")&&(this.showExploreHubContents=!1);var a=_.ab().resolve(_.aK).isOnWatch(),z,I=((z=_.sM(location.pathname))==null?void 0:z.toString())||"";(["search".toString(),"subscriptions".toString(),"shorts".toString()].includes(I)||a)&&this.gnomeContents&&_.K("web_hide_gnome_until_user_navigates_back_to_home")&&(this.showGnomeContents=
!0);a&&this.exploreHubContents&&_.K("web_hide_explore_hub_until_user_navigates_back_to_home")&&(_.qo().dispatch(_.rg({type:"TALK_TO_RECS_RESET_STEP_STATES",payload:null})),this.showExploreHubContents=!0)};
_.Z.onPageChange=function(){var a=this;this.isCurrentPage()?(this.pageLoadingFromNavigation=!0,_.K("disable_chip_select_on_nav")||_.Ct(this.hostElement,"yt-chip-cloud-chip-deselect-action"),_.GW.addJob(function(){a.pageLoadingFromNavigation=!1;_.K("disable_chip_select_on_nav")&&_.K("h5_reset_cache_and_filter_before_update_masthead")&&a.resetCacheAndIsFilteredFeed();a.setMasthead();a.maybeSetBigYoodle();a.forceRefreshAndLog();a.terminateVideoPreview();_.K("web_hide_gnome_until_user_navigates_back_to_home")&&
(a.dataChanged(),_.Yv(a,function(){if(a.showGnomeContents){var z=Array.from(_.PK(a.hostElement).querySelectorAll("ytd-rich-section-renderer")).find(function(J){J=_.PK(J).querySelector("ytd-rich-shelf-renderer");return!!J&&J.isGnomeShelf()});
if(z){z=z.offsetTop-a.contentsElement.offsetTop;var I=_.ab().resolve(_.aK).getCurrentPage();I&&I.getPageScrollingElement().scrollTo({top:z,behavior:"smooth"})}}}));
_.K("web_hide_explore_hub_until_user_navigates_back_to_home")&&(a.dataChanged(),_.Yv(a,function(){if(a.showExploreHubContents&&!_.K("web_explore_hub_no_scroll")){var z=Array.from(_.PK(a.hostElement).querySelectorAll("ytd-rich-section-renderer")).find(function(J){return!!J.querySelector("ytd-talk-to-recs-flow-renderer")});
if(z){z=z.offsetTop-a.contentsElement.offsetTop;var I=_.ab().resolve(_.aK).getCurrentPage();I&&I.getPageScrollingElement().scrollTo({top:z,behavior:"smooth"})}}}))},8)):((_.K("web_hide_gnome_until_user_navigates_back_to_home")||_.K("web_hide_explore_hub_until_user_navigates_back_to_home"))&&this.navigateBackToHome(),this.mastheadData&&(this.mastheadData=void 0))};
_.Z.dataChanged=function(){var a=this;_.Ct(this.hostElement,"ytd-update-grid-state-action");this.data&&this.pageLoadingFromNavigation||(this.pagePath=location.pathname,this.resetCacheAndIsFilteredFeed(),this.maybeSetBigYoodle(),this.setMasthead(),this.refreshGridLayout(),_.Yv(this,function(){a.updateRichItemGridPositions();a.contentsElement&&_.uK(a.hostElement,{"--ytd-rich-grid-content-offset-top":a.contentsElement.offsetTop+"px"})}),this.initResizeObserver())};
_.Z.initResizeObserver=function(){var a=this;if(window.ResizeObserver){var z;(z=this.resizeObserver)==null||z.disconnect();var I=!1;this.resizeObserver=new ResizeObserver(function(){if(I){var J;(J=a.resizeObserver)==null||J.disconnect();var r;(r=a.JSC$21770_throttledOnResize)==null||r.fire();requestAnimationFrame(function(){var N;(N=a.JSC$21770_throttledOnResize)==null||N.fire();a.initResizeObserver()})}else if(I=!0,a.resizeOnObserverInit){var P;
(P=a.JSC$21770_throttledOnResize)==null||P.fire()}});
this.resizeObserver.observe(this.hostElement)}};
_.Z.contentLengthChanged=function(){if(_.K("rich_grid_contents_check_width_ks")||this.containerWidth||this.isShortsPanel)this.reflowContent(),_.Ct(this.hostElement,"ytd-rich-item-index-update-action")};
_.Z.updateElementsPerRow=function(){_.Ct(this.hostElement,"ytd-update-elements-per-row-action",[this.elementsPerRow,this.postsPerRow,this.slimItemsPerRow,this.gameCardsPerRow,this.miniGameCardsPerRow,this.containerWidth]);this.ytdReduxBehavior.dispatch(_.rg({type:"SET_RICH_GRID_ITEMS_PER_ROW",payload:this.elementsPerRow}));this.ytdReduxBehavior.dispatch(_.rg({type:"SET_RICH_GRID_SLIM_ITEMS_PER_ROW",payload:this.slimItemsPerRow}))};
_.Z.onRequestElementsPerRow=function(){this.updateElementsPerRow()};
_.Z.onRichShelfRendererCollapse=function(a){if(this.shownItems){var z=a.detail;a=this.shownItems.findIndex(function(J){var r,P;return((P=_.H(J==null?void 0:(r=J.richSectionRenderer)==null?void 0:r.content,_.FmX))==null?void 0:P.trackingParams)===z});
var I=a+1;a<0||I>=this.contentsElement.children.length||!this.shownItems[I].richItemRenderer||this.contentsElement.children[I].scrollIntoView({behavior:"smooth",block:"start"})}};
_.Z.onSoftReloadPage=function(){this.scrollUpToTop()};
_.Z.handleRerenderDownloadsData=function(){_.K("kevlar_modern_downloads_page")&&this.entityDrivenRichGridData&&this.set("data.contents",this.entityDrivenRichGridData.contents)};
_.Z.handlePlaylistRemoveVideosAction=function(a){var z;if(((z=_.H(a,_.DQv))==null?0:z.setVideoIds)&&this.data&&this.data.contents){a=_.H(a,_.DQv).setVideoIds;for(z=this.data.contents.length-1;z>=0;){var I=_.H(this.data.contents[z],_.Xu);(I=I&&_.H(I.content,_.LQ))&&I.setVideoId&&a.includes(I.setVideoId)&&this.splice("data.contents",z,1);z--}this.updateIndices()}};
_.Z.updateIndices=function(){if(this.data&&this.data.contents)for(var a=0;a<this.data.contents.length;a++)this.set("data.contents."+a+".richItemRenderer.index",_.Mo(String(a+1)))};
_.Z.hasTopRowInlinePlayableVideoWithEndorsement=function(a){var z;return!((z=a.slice(0,this.getItemsPerRow()))==null||!z.some(function(I){var J;I=_.H(I==null?void 0:(J=I.richItemRenderer)==null?void 0:J.content,_.wB);var r;return(I==null?void 0:I.inlinePlaybackEndpoint)&&(I==null?void 0:(r=I.thumbnailOverlays)==null?void 0:r.some(function(P){return P.thumbnailOverlayEndorsementRenderer}))}))};
_.Z.refreshGridLayoutNew=function(a,z,I,J){var r=J.postsPerRow;var P=J.slimItemsPerRow;var N=J.gameCardsPerRow;J=J.miniGameCardsPerRow;var u;if((u=this.data)==null||!u.contents||!this.containerWidth)return!1;var E;if((E=this.data.responsiveContainerConfiguration)==null?0:E.responsiveSize){var O=_.s8$(this.data.responsiveContainerConfiguration,this.containerWidth),f;u=_.mY(Object.assign({},O,{standardUnitMinWidth:(f=this.data)==null?void 0:f.minItemWidth}));this.useCompactList=!!(this.containerWidth<
528&&O.isCompactList)}else u=_.mY({containerWidth:this.containerWidth,sizing:this.sizing,marginSettings:2,isCompactList:this.data.layoutType==="RICH_GRID_LAYOUT_TYPE_COMPACT_LIST",standardUnitMinWidth:(O=this.data)==null?void 0:O.minItemWidth}),this.data.layoutType==="RICH_GRID_LAYOUT_TYPE_COMPACT_LIST"&&(this.useCompactList=this.containerWidth<528);this.typographyBump=u.typographyBump;f=!1;if(a||this.elementsPerRow!==u.numItems||this.postsPerRow!==r||this.slimItemsPerRow!==P||this.gameCardsPerRow!==
N||this.miniGameCardsPerRow!==J||this.gutter!==u.gutter)f=this.elementsPerRow!==u.numItems,this.elementsPerRow=u.numItems,this.postsPerRow=r,this.slimItemsPerRow=P,this.gameCardsPerRow=N,this.miniGameCardsPerRow=J,this.gutter=u.gutter,this.itemWidth=u.itemWidth,this.reflowContent(z),_.uK(this.hostElement,{"--ytd-rich-grid-items-per-row":""+this.elementsPerRow,"--ytd-rich-grid-item-margin":u.gutter+"px","--ytd-rich-grid-posts-per-row":""+this.postsPerRow,"--ytd-rich-grid-slim-items-per-row":""+this.slimItemsPerRow,
"--ytd-rich-grid-game-cards-per-row":""+this.gameCardsPerRow,"--ytd-rich-grid-mini-game-cards-per-row":""+this.miniGameCardsPerRow}),this.updateElementsPerRow(),this.updateMiniMode(I);this.ytdReduxBehavior.dispatch(_.rg({type:"SET_RICH_GRID_CONTAINER_WIDTH",payload:u.maxContainerWidth}));return f};
_.Z.refreshGridLayout=function(a,z){var I,J=(I=this.hostElement)==null?void 0:I.clientWidth;this.containerWidth=this.adjustRichGridWidth(J,!0);var r;if((r=this.data)==null||!r.contents||!this.containerWidth)return a&&(this.pendingForceReflow=!0),!1;this.pendingForceReflow&&!_.K("rg_pending_reflow_ks")&&(a=!0,this.pendingForceReflow=!1);I=this.getRichItemMinWidth(J);var P=this.isShortsPanel?146:194,N=this.getMiniGameCardMinWidth(),u=this.isShortsGridSlim?2:this.isShortsGrid||this.isCompactGrid?3:6;
J=I=this.calcElementsPerRow(I,u);(r=I<=3&&this.miniModeAllowed())&&(I=this.calcElementsPerRow(240,4));var E=this.calcMaxSlimElementsPerRow(I,u,this.isDefaultGrid);u=this.calcElementsPerRow(P,E);var O=this.calcElementsPerRow(this.isCompactGrid?P:154,E);P=this.calcElementsPerRow(this.isCompactGrid?P:N,E);N=!1;if(this.sizing)return this.refreshGridLayoutNew(a,z,r,{postsPerRow:J,slimItemsPerRow:u,gameCardsPerRow:O,miniGameCardsPerRow:P});if(a||this.elementsPerRow!==I||this.postsPerRow!==J||this.slimItemsPerRow!==
u||this.gameCardsPerRow!==O||this.miniGameCardsPerRow!==P)N=this.elementsPerRow!==I,this.elementsPerRow=I,this.postsPerRow=J,this.slimItemsPerRow=u,this.gameCardsPerRow=O,this.miniGameCardsPerRow=P,this.reflowContent(z),this.updateElementsPerRow(),_.uK(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)&&_.uK(this.hostElement,{"--ytd-rich-grid-shorts-item-margin":this.slimItemsPerRow<4?"1px":"4px"});this.updateMiniMode(r);_.Ct(this.hostElement,"yt-rich-grid-layout-refreshed");return N};
_.Z.getRichItemMinWidth=function(a){var z=_.Ib("rich_grid_min_item_width",310);if(!_.K("kevlar_disable_min_width_override")){var I,J;z=(J=(I=this.data)==null?void 0:I.minItemWidth)!=null?J:z}return z+_.df7(a)};
_.Z.calcMaxSlimElementsPerRow=function(a,z,I){return(I===void 0?0:I)?a===1?2:a%2===0?_.K("web_shorts_2_by_3_reduce_items_per_row")&&a>=4?a/2*3-1:a/2*3:_.K("web_shorts_2_by_3_reduce_items_per_row")&&a>=3?a+1:a+2:z*2};
_.Z.adjustRichGridWidth=function(a,z){var I=_.K("disable_rich_grid_guide_compensation");if(!this.isWatch&&!I){I=_.ab().resolve(_.eL(_.M5));var J=I==null?void 0:I.guideElement;if(!(!I||I.getData()||J!=null&&J.opened||I.getMiniGuideVisible()))if(I.canFitPersistentGuide(a)&&I.getGuideExpandsAutomatically()){var r,P,N=Number((r=window.getComputedStyle(this.hostElement))==null?void 0:(P=r.getPropertyValue("--app-drawer-width"))==null?void 0:P.replace("px",""));a-=N||0}else if(I.canFitMiniGuide(a)){var u;
r=Number((N=window.getComputedStyle(this.hostElement))==null?void 0:(u=N.getPropertyValue("--ytd-mini-guide-width"))==null?void 0:u.replace("px",""));a-=r||0}}a>600&&(this.isShortsGrid||this.isShortsGridSlim||this.isCompactGrid||(a-=z?32:48));return a};
_.Z.calcElementsPerRow=function(a,z){var I=this.adjustRichGridWidth(this.hostElement.clientWidth,!1),J=this.isShortsPanel?2:this.isShortsGrid||this.isCompactGrid?4:16;return Math.min(Math.floor((I+J)/(a+J))||1,z)};
_.Z.reflowContent=function(a){var z=this;if(!this.isReflowing){this.isReflowing=!0;var I,J,r=!!((I=this.data)==null?0:(J=I.contents)==null?0:J.some(function(F){return _.H(F,_.av)}));
I=this.getItemsPerRow();var P;J=(P=this.data)==null?void 0:P.reflowOptions;a&&(_.Xz("rgr_s"),_.Yv(this,function(){_.Xz("rgr_nrf")}));
a={};(P=_.PK(this.hostElement).querySelector("#contents"))&&(a={contentElement:P,rendererToTagNameMap:this.rendererToTagNameMap});P=(P=this.data.contents)?P.slice():[];var N=(_.K("web_hide_gnome_behind_feed_filter_chip")||_.K("web_hide_gnome_until_user_navigates_back_to_home"))&&!this.showGnomeContents,u=_.K("web_hide_explore_hub_until_user_navigates_back_to_home")&&!this.showExploreHubContents,E=-1,O=-1;if(this.isHomePage&&u){for(u=0;u<P.length;u++){var f=void 0,A=void 0;_.H((f=P[u])==null?void 0:
(A=f.richSectionRenderer)==null?void 0:A.content,KT0)&&(O=u)}O>-1&&(this.exploreHubContents=P.splice(O,1))}if(this.isHomePage&&N){for(O=0;O<P.length;O++)A=f=void 0,(u=_.H((f=P[O])==null?void 0:(A=f.richSectionRenderer)==null?void 0:A.content,_.FmX))&&N&&(A=f=void 0,u=_.H((f=u)==null?void 0:(A=f.contents)==null?void 0:A[0],_.Xu),f=void 0,_.H((f=u)==null?void 0:f.content,_.Fqv)&&(E=O));E>-1&&(this.gnomeContents=P.splice(E,1))}r=Jnz(P,I,r,J,this.getRichGridStyle(),a,this.insertedContent);var n=r.orderedContent;
if(r=r.pinnedContentNotShownTargetIds)for(r=_.C(r),I=r.next();!I.done;I=r.next())this.insertedContent.delete(I.value);r=function(){z.shownItems=n;z.isReflowing=!1};
this.shownItems.length===0?(this.shownItems=this.getFirstRowItems(n),_.Yv(this,r)):r()}};
_.Z.getFirstRowItems=function(a){for(var z=[],I=0;I<a.length;I++){var J=void 0,r=void 0,P=void 0,N=void 0,u=void 0,E=void 0;if(((J=a[I])==null?void 0:(r=J.richItemRenderer)==null?void 0:r.rowIndex)===0||((P=a[I])==null?void 0:(N=P.richGroupRenderer)==null?void 0:N.rowIndex)===0||((u=a[I])==null?void 0:(E=u.richSectionRenderer)==null?void 0:E.rowIndex)===0)z.push(a[I]);else break}return z};
_.Z.getItemsPerRow=function(){return this.isShortsGrid||this.isCompactGrid?this.slimItemsPerRow:this.elementsPerRow};
_.Z.resetInsertedContentIfNeeded=function(){(_.K("web_explore_hub_on_hover")||_.K("web_client_explore_hub_on_hover"))&&this.insertedContent.size>0&&(this.insertedContent.clear(),this.reflowContent())};
_.Z.handleChipCloudChipSelectAction=function(a,z){this.terminateVideoPreview();this.resetInsertedContentIfNeeded();this.cachedContents||this.setCacheAndIsFilteredFeed();_.K("web_hide_gnome_behind_feed_filter_chip")&&(z?(this.showGnomeContents=!0,this.set("data.contents",this.gnomeContents)):this.showGnomeContents=!1)};
_.Z.onReloadContinuationFinish=function(){this.data&&this.data.header&&Array.isArray(this.data.header)&&this.data.header.length>0&&(this.data.header=this.data.header[0]);_.K("enable_rich_grid_continuation_reflow_fix")||this.reflowContent();this.isShortsPanel||this.scrollUpToTop();this.ytRendererBehavior.markDirty()};
_.Z.handleChipCloudChipDeselectAction=function(){this.terminateVideoPreview();this.resetInsertedContentIfNeeded();_.K("web_hide_gnome_behind_feed_filter_chip")&&(this.showGnomeContents=!1);this.cachedContents&&(this.set("data.contents",this.cachedContents),this.resetCacheAndIsFilteredFeed(),this.reflowContent(),this.scrollUpToTop())};
_.Z.terminateVideoPreview=function(){_.Ct(this.hostElement,"yt-terminate-video-preview-action")};
_.Z.updateRichItemGridPositions=function(){var a={gridData:{gridColumnCount:this.elementsPerRow}},z;if((z=this.data)==null?0:z.trackingParams)this.loggingRefactor?_.Kw().stateChanged(this.data.trackingParams,a):(z=_.TX())&&_.M$(z,_.VX(this.data.trackingParams),a);_.Ct(this.hostElement,"ytd-rich-item-index-update-action")};
_.Z.miniModeAllowed=function(){return this.isChannelPage};
_.Z.getMiniGameCardMinWidth=function(){return 154};
_.Z.updateMiniMode=function(a){this.miniMode=this.miniModeAllowed()&&a;this.ytdReduxBehavior.dispatch(_.rg({type:"SET_RICH_GRID_MINI_MODE",payload:a}))};
_.Z.isCurrentPage=function(){return location.pathname===this.pagePath};
_.Z.scrollUpToTop=function(){if(!this.isChannelPage&&!this.isWatch){var a=_.ab().resolve(_.aK).getCurrentPage();a&&a.setScrollTop(0)}};
_.Z.setCacheAndIsFilteredFeed=function(){this.cachedContents=this.get("contents",this.data);this.isFilteredFeed=!0};
_.Z.resetCacheAndIsFilteredFeed=function(){this.cachedContents=void 0;this.isFilteredFeed=!1};
_.Z.maybeSetBigYoodle=function(){var a,z=(a=this.data)==null?void 0:a.bigYoodle;this.bigYoodleData!==z&&(this.bigYoodleData=z)};
_.Z.setMasthead=function(){var a;((a=this.data)==null?0:a.masthead)?this.mastheadData=this.data.masthead:_.K("disable_cached_masthead_data")&&(this.mastheadData=void 0)};
_.Z.getRichGridStyle=function(){var a,z;return(z=(a=this.data)==null?void 0:a.style)!=null?z:"RICH_GRID_STYLE_UNKNOWN"};
_.Z.onIsShortsGridChange=function(){var a=this.ytdReduxBehavior,z=a.dispatch,I=this.getRichGridStyle();z.call(a,_.rg({type:"SET_RICH_GRID_STYLE",payload:I}))};
_.eH.Object.defineProperties(h8.prototype,{entitySelectorType:{configurable:!0,enumerable:!0,get:function(){var a;return((a=this.data)==null?void 0:a.entitySelectorType)||"RICH_GRID_ENTITY_SELECTOR_TYPE_UNSPECIFIED"}},
isSub:{configurable:!0,enumerable:!0,get:function(){var a;return(((a=this.data)==null?void 0:a.targetId)||"")==="browse-feedFEsubscriptions_shorts"}},
isWatch:{configurable:!0,enumerable:!0,get:function(){var a;return(((a=this.data)==null?void 0:a.targetId)||"")==="watch-next-feed"}},
isShortsPanel:{configurable:!0,enumerable:!0,get:function(){var a=_.ab().resolve(_.aK).getCurrentPage(),z,I,J;return(((z=this.data)==null?void 0:z.targetId)==="browse-feedFEsfv_audio_pivot"||_.K("web_enable_channel_pivot_panel")&&((I=this.data)==null?void 0:I.targetId)==="browse-feedFEsfv_channel_pivot"||_.K("web_enable_effect_pivot_panel")&&((J=this.data)==null?void 0:J.targetId)==="browse-feedFEsfv_effect_pivot")&&(a==null?void 0:a.pageSubtype)==="shorts"}},
reducedTopMargin:{configurable:!0,enumerable:!0,get:function(){return this.isWatch&&_.K("kevlar_watch_grid_reduced_top_margin_rich_grid")}},
noTopMargin:{configurable:!0,enumerable:!0,get:function(){return this.isWatch&&!this.isWatchDefaultLayout}},
topRowEndorsement:{configurable:!0,enumerable:!0,get:function(){return this.isInlinePreviewEnabled&&this.hasTopRowInlinePlayableVideoWithEndorsement(this.shownItems)}},
hideHeader:{configurable:!0,enumerable:!0,get:function(){var a;return!((a=this.data)==null?0:a.header)}},
isChannelPage:{configurable:!0,enumerable:!0,get:function(){var a;return((a=_.ab().resolve(_.aK).getCurrentPage())==null?void 0:a.pageSubtype)==="channels"}},
isHomePage:{configurable:!0,enumerable:!0,get:function(){var a;return((a=_.ab().resolve(_.aK).getCurrentPage())==null?void 0:a.pageSubtype)==="home"}},
isSlimGrid:{configurable:!0,enumerable:!0,get:function(){return this.getRichGridStyle()==="RICH_GRID_STYLE_SLIM"}},
isShortsGrid:{configurable:!0,enumerable:!0,get:function(){return this.getRichGridStyle()==="RICH_GRID_STYLE_SHORTS_GRID"||this.getRichGridStyle()==="RICH_GRID_STYLE_SHORTS_GRID_SLIM"}},
noRichItemGutterMargins:{configurable:!0,enumerable:!0,get:function(){return this.isSlimGrid||this.isShortsGrid}},
isShortsGridSlim:{configurable:!0,enumerable:!0,get:function(){return this.getRichGridStyle()==="RICH_GRID_STYLE_SHORTS_GRID_SLIM"}},
isCompactGrid:{configurable:!0,enumerable:!0,get:function(){return this.getRichGridStyle()==="RICH_GRID_STYLE_COMPACT"}},
isDefaultGrid:{configurable:!0,enumerable:!0,get:function(){return!this.getRichGridStyle()||this.getRichGridStyle()==="RICH_GRID_STYLE_UNKNOWN"}},
hideChipsBarOnHome:{configurable:!0,enumerable:!0,get:function(){var a;return this.hideChipsBar||(((a=this.data)==null?void 0:a.targetId)||"")==="browse-feedFEwhat_to_watch"&&_.K("kevlar_hide_chips_on_home")}},
hideChipsBarOnWatch:{configurable:!0,enumerable:!0,get:function(){var a;return(((a=this.data)==null?void 0:a.targetId)||"")==="watch-next-feed"&&!_.K("swatcheroo_disable_chips")}},
force16By9ThumbnailAspectRatio:{configurable:!0,enumerable:!0,get:function(){var a,z,I;return((a=this.data)==null?0:a.enableContentSpecificAspectRatio)||((z=this.data)==null?0:(I=z.responsiveContainerConfiguration)==null?0:I.enableContentSpecificAspectRatio)?!1:!0}},
continuationTriggerOffset:{configurable:!0,enumerable:!0,get:function(){return this.isHomePage?_.Ib("web_continuation_handler_margin",0):0}}});
h8.prototype.onIsShortsGridChange=h8.prototype.onIsShortsGridChange;h8.prototype.onReloadContinuationFinish=h8.prototype.onReloadContinuationFinish;h8.prototype.reflowContent=h8.prototype.reflowContent;h8.prototype.handleRerenderDownloadsData=h8.prototype.handleRerenderDownloadsData;h8.prototype.onRichShelfRendererCollapse=h8.prototype.onRichShelfRendererCollapse;h8.prototype.onRequestElementsPerRow=h8.prototype.onRequestElementsPerRow;h8.prototype.contentLengthChanged=h8.prototype.contentLengthChanged;
h8.prototype.dataChanged=h8.prototype.dataChanged;h8.prototype.onSizingChange=h8.prototype.onSizingChange;h8.prototype.onUseCompactListChange=h8.prototype.onUseCompactListChange;_.L([_.Q(_.u4.YtRendererstamperBehavior),_.p("design:type",Object)],h8.prototype,"ytRendererstamperBehavior",void 0);_.L([_.Q(_.k.YtRendererBehavior),_.p("design:type",Object)],h8.prototype,"ytRendererBehavior",void 0);_.L([_.Q(_.Ts),_.p("design:type",Object)],h8.prototype,"ironResizableBehavior",void 0);
_.L([_.Q(_.Hc.YtActionHandlerBehavior),_.p("design:type",Object)],h8.prototype,"actionHandlerBehavior",void 0);_.L([_.Q(_.M8),_.p("design:type",Object)],h8.prototype,"ytContinuationHandlerBehavior",void 0);_.L([_.Q(_.Ms.YtComponentBehavior),_.p("design:type",Object)],h8.prototype,"componentBehavior",void 0);_.L([_.Q(_.pV),_.p("design:type",Object)],h8.prototype,"ytdReduxBehavior",void 0);_.L([_.x(),_.p("design:type",Object)],h8.prototype,"data",void 0);
_.L([_.x({reflectToAttribute:!0,selector:_.$p}),_.p("design:type",Boolean)],h8.prototype,"miniMode",void 0);_.L([_.x({value:[]}),_.p("design:type",Array)],h8.prototype,"shownItems",void 0);_.L([_.x({value:!1}),_.p("design:type",Boolean)],h8.prototype,"isReflowing",void 0);_.L([_.x({value:!1}),_.p("design:type",Boolean)],h8.prototype,"isFilteredFeed",void 0);_.L([_.x({selector:_.U_G}),_.p("design:type",Boolean)],h8.prototype,"guideIsExpanded",void 0);
_.L([_.x({selectorArgs:["entitySelectorType"],selector:function(a,z){if(_.K("kevlar_modern_downloads_page")&&z&&z!=="RICH_GRID_ENTITY_SELECTOR_TYPE_UNSPECIFIED")switch(z){case "RICH_GRID_ENTITY_SELECTOR_TYPE_DOWNLOADS":z=a.entities;var I=_.xp(z),J=_.vd(z),r=_.IGm(a),P=_.zGp(a),N=_.JKx(a),u=_.iJE(z),E=_.b8(I),O=_.Gg(z);return _.ulE(I,J,u,_.$_I(z),r,P,E,O,N,_.Pr1(a),_.Wd(a));case "RICH_GRID_ENTITY_SELECTOR_TYPE_SMART_DOWNLOADS":return a=_.xp(a.entities),_.Bb0(a);case "RICH_GRID_ENTITY_SELECTOR_TYPE_HOME_DOWNLOADS":return a=
_.VK$(a.entities),_.gwM(a);default:_.Xd(new _.Fn("Error: entitySelectorType defined but not matched in selector.",a,z))}}}),
_.p("design:type",Object)],h8.prototype,"entityDrivenRichGridData",void 0);_.L([_.x(),_.p("design:type",Object)],h8.prototype,"resizeOnObserverInit",void 0);_.L([_.x(),_.p("design:type",Object)],h8.prototype,"bigYoodleData",void 0);_.L([_.x(),_.p("design:type",Object)],h8.prototype,"mastheadData",void 0);_.L([_.x(),_.p("design:type",Boolean)],h8.prototype,"isInlinePreviewDisabled",void 0);_.L([_.x(),_.p("design:type",Object)],h8.prototype,"disableStickyFilterBar",void 0);
_.L([_.x(),_.p("design:type",Object)],h8.prototype,"transparentBackgroundChipsBar",void 0);_.L([_.x({reflectToAttribute:!0}),_.p("design:type",Object)],h8.prototype,"hideChipsBar",void 0);_.L([_.x(),_.p("design:type",Object)],h8.prototype,"isWatchDefaultLayout",void 0);_.L([_.x({reflectToAttribute:!0}),_.p("design:type",Object)],h8.prototype,"continuationShowButton",void 0);_.L([_.x({reflectToAttribute:!0}),_.p("design:type",Object)],h8.prototype,"rowReducedHorizontalMargin",void 0);
_.L([_.x({reflectToAttribute:!0}),_.p("design:type",Object)],h8.prototype,"useCompactList",void 0);_.L([_.x({selector:function(a){return _.vd(a.entities).length>0}}),
_.p("design:type",Object)],h8.prototype,"manualDownloadsPresent",void 0);_.L([_.x({selector:function(a){return _.xp(a.entities).length>0}}),
_.p("design:type",Object)],h8.prototype,"smartDownloadsPresent",void 0);_.L([_.x({selector:_.Wd}),_.p("design:type",Object)],h8.prototype,"isOnline",void 0);_.L([_.x({selector:_.zGp}),_.p("design:type",Object)],h8.prototype,"shouldRenderDownloadsBanner",void 0);_.L([_.x({selector:_.Pr1}),_.p("design:type",Object)],h8.prototype,"shouldRenderDownloadsBannerUpsell",void 0);_.L([_.x({selector:_.IGm}),_.p("design:type",Object)],h8.prototype,"hasOptedIntoSmartDownloads",void 0);
_.L([_.O8("useCompactList"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],h8.prototype,"onUseCompactListChange",null);_.L([_.O8("sizing","typographyBump"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],h8.prototype,"onSizingChange",null);_.L([_.x({selector:_.wSM}),_.p("design:type",Number)],h8.prototype,"miniplayerPlaybackState",void 0);_.L([_.x({selector:_.Tg}),_.p("design:type",Boolean)],h8.prototype,"miniplayerIsActive",void 0);
_.L([_.x({computed:"computeIsInlinePreviewEnabled(miniplayerIsActive, miniplayerPlaybackState, isInlinePreviewDisabled)"}),_.p("design:type",Boolean)],h8.prototype,"isInlinePreviewEnabled",void 0);_.L([_.x({computed:"computeSizing(data, useCompactList, miniMode, isShortsGrid, isSlimGrid, isCompactGrid, isShortsPanel)"}),_.p("design:type",String)],h8.prototype,"sizing",void 0);_.L([_.x({reflectToAttribute:!0}),_.p("design:type",Object)],h8.prototype,"elementsPerRow",void 0);
_.L([_.x(),_.p("design:type",Object)],h8.prototype,"typographyBump",void 0);_.L([_.x(),_.p("design:type",Number)],h8.prototype,"itemWidth",void 0);_.L([_.A3("#header"),_.p("design:type",HTMLElement)],h8.prototype,"headerElement",void 0);_.L([_.A3("#contents"),_.p("design:type",HTMLElement)],h8.prototype,"contentsElement",void 0);_.L([_.Fe("data"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],h8.prototype,"dataChanged",null);
_.L([_.Fe("data.contents.length"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],h8.prototype,"contentLengthChanged",null);_.L([_.gz("yt-request-elements-per-row"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],h8.prototype,"onRequestElementsPerRow",null);
_.L([_.gz("yt-rich-shelf-renderer-collapse"),_.p("design:type",Function),_.p("design:paramtypes",[CustomEvent]),_.p("design:returntype")],h8.prototype,"onRichShelfRendererCollapse",null);_.L([_.Fe("shouldRenderDownloadsBanner","shouldRenderDownloadsBannerUpsell","hasOptedIntoSmartDownloads","manualDownloadsPresent","smartDownloadsPresent","isOnline"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],h8.prototype,"handleRerenderDownloadsData",null);
_.L([_.S("data"),_.p("design:type",String),_.p("design:paramtypes",[])],h8.prototype,"entitySelectorType",null);_.L([_.x({reflectToAttribute:!0}),_.S("data.targetId"),_.p("design:type",Boolean),_.p("design:paramtypes",[])],h8.prototype,"isSub",null);_.L([_.x({reflectToAttribute:!0}),_.S("data.targetId"),_.p("design:type",Boolean),_.p("design:paramtypes",[])],h8.prototype,"isWatch",null);
_.L([_.x({reflectToAttribute:!0}),_.S("data.targetId"),_.p("design:type",Boolean),_.p("design:paramtypes",[])],h8.prototype,"isShortsPanel",null);_.L([_.x({reflectToAttribute:!0}),_.S("isWatch"),_.p("design:type",Boolean),_.p("design:paramtypes",[])],h8.prototype,"reducedTopMargin",null);_.L([_.x({reflectToAttribute:!0}),_.S("data","isWatch","isWatchDefaultLayout"),_.p("design:type",Boolean),_.p("design:paramtypes",[])],h8.prototype,"noTopMargin",null);
_.L([_.x({reflectToAttribute:!0}),_.S("isInlinePreviewEnabled","shownItems"),_.p("design:type",Boolean),_.p("design:paramtypes",[])],h8.prototype,"topRowEndorsement",null);_.L([_.S("data.header"),_.p("design:type",Boolean),_.p("design:paramtypes",[])],h8.prototype,"hideHeader",null);_.L([_.gz("yt-rich-grid-reflow"),_.p("design:type",Function),_.p("design:paramtypes",[Boolean]),_.p("design:returntype")],h8.prototype,"reflowContent",null);
_.L([_.gz("yt-reload-continuation-finish"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],h8.prototype,"onReloadContinuationFinish",null);_.L([_.S("data"),_.x({reflectToAttribute:!0}),_.p("design:type",Boolean),_.p("design:paramtypes",[])],h8.prototype,"isSlimGrid",null);_.L([_.S("data"),_.x({reflectToAttribute:!0}),_.p("design:type",Boolean),_.p("design:paramtypes",[])],h8.prototype,"isShortsGrid",null);
_.L([_.S("data","isSlimGrid","isShortsGrid"),_.x(),_.p("design:type",Boolean),_.p("design:paramtypes",[])],h8.prototype,"noRichItemGutterMargins",null);_.L([_.S("data"),_.x({reflectToAttribute:!0}),_.p("design:type",Boolean),_.p("design:paramtypes",[])],h8.prototype,"isShortsGridSlim",null);_.L([_.S("data"),_.x({reflectToAttribute:!0}),_.p("design:type",Boolean),_.p("design:paramtypes",[])],h8.prototype,"isCompactGrid",null);
_.L([_.S("data"),_.x({reflectToAttribute:!0}),_.p("design:type",Boolean),_.p("design:paramtypes",[])],h8.prototype,"isDefaultGrid",null);_.L([_.S("data.targetId"),_.p("design:type",Boolean),_.p("design:paramtypes",[])],h8.prototype,"hideChipsBarOnHome",null);_.L([_.S("data.targetId"),_.x({reflectToAttribute:!0}),_.p("design:type",Boolean),_.p("design:paramtypes",[])],h8.prototype,"hideChipsBarOnWatch",null);
_.L([_.O8("data"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],h8.prototype,"onIsShortsGridChange",null);_.L([_.S("data.enableContentSpecificAspectRatio"),_.x(),_.p("design:type",Boolean),_.p("design:paramtypes",[])],h8.prototype,"force16By9ThumbnailAspectRatio",null);_.L([_.S("data"),_.p("design:type",Number),_.p("design:paramtypes",[])],h8.prototype,"continuationTriggerOffset",null);_.L([_.U({is:"ytd-rich-grid-renderer",disableElementRegistration:!0})],h8);
_.D(h8,"ytd-rich-grid-renderer",function(){if(WTM!==void 0)return WTM;var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-rich-grid-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" hidden="[[hideHeader]]" class="style-scope ytd-rich-grid-renderer"></div>\n<div id="big-yoodle" hidden="[[isFilteredFeed]]" class="style-scope ytd-rich-grid-renderer"></div>\n<div id="masthead-ad" hidden="[[isFilteredFeed]]" class="style-scope ytd-rich-grid-renderer"></div>\n<div id="title-container" hidden="[[!data.title]]" class="style-scope ytd-rich-grid-renderer">\n  <div id="title" class="style-scope ytd-rich-grid-renderer">[[getSimpleString(data.title)]]</div>\n</div>\n<div id="spinner-container" class="style-scope ytd-rich-grid-renderer">\n  <tp-yt-paper-spinner-lite active="[[computeIsReloading()]]" class="style-scope ytd-rich-grid-renderer">\n  </tp-yt-paper-spinner-lite>\n</div>\n<div id="contents" class="style-scope ytd-rich-grid-renderer"></div>\n');
a.content.insertBefore(_.w().content.cloneNode(!0),a.content.firstChild);return WTM=a},{mode:2});var cnZ=_.ec(function(a){var z=a.thumbsUp,I=a.thumbsDown,J=a.rightAlignThumbs;a=_.C(_.CW(!1,void 0,"FjNDrf"));var r=a.next().value,P=a.next().value;a=_.C(_.CW(!1,void 0,"Tphjfb"));var N=a.next().value,u=a.next().value;a={};return _.B("div",{class:_.B8("ytwThumbsUpDownThumbs",(a.ytwThumbsUpDownRightAlign=function(){return J==null?void 0:J()},a))},_.B(_.Wc,{data:z,
onToggle:function(E){P(E);N()&&u(!1)},
buttonShapeOverrides:function(){return{toggled:r()}}}),_.B(_.Wc,{data:I,
onToggle:function(E){u(E);r()&&P(!1)},
buttonShapeOverrides:function(){return{toggled:N()}}}))},"Lj");
cnZ.idomCompat=!0;var qyV=_.ec(function(a){var z=function(){return a.data().pendingStateEntityKey||""},I=_.KU(_.Okf,z),J=function(){var u;
if(!(u=a.disabled())){var E;u=!((E=I())==null||!E.isPendingResponse)}return u},r=_.C(_.CW(ZkY(""),void 0,"aC8eBe")),P=r.next().value,N=r.next().value;
_.hD(function(){requestAnimationFrame(function(){var u=a.data().onShowAnimationMs||0;u=u>0?ZkY("--chip-animation-duration: "+u+"ms;"):ZkY("");N(u)})});
return _.B("you-chat-chips-data",{class:"ytwYouChatChipsDataHost",style:P},_.B(_.se,{each:function(){return a.data().chipData||[]},
keyBy:"REFERENCE"},function(u){return _.B(Yy0,{data:u,disabled:J,pendingStateKey:z,onError:a.onError})}))},"Mj"),Yy0=_.ec(function(a){var z=_.ca("button"),I=_.C(_.CW(!0,void 0,"NaMiCd")),J=I.next().value,r=I.next().value,P=function(){return a.data().text.content},N=_.g4(function(u){var E,O,f,A,n,F,h,v;
return _.t(function(d){switch(d.nextAddress){case 1:u.stopPropagation();if(a.disabled())return d.return();O=String(Math.floor(((E=_.Bn())==null?void 0:E.getCurrentTime())||0)*1E3);f="youchat-"+Date.now();A=function(){_.DA(a.data().onClick||{});var W={continuationCommand:{token:a.data().continuation,request:"CONTINUATION_REQUEST_TYPE_GET_PANEL"}},l={inputComposerFormData:{clientMessageId:f,playerOffsetMs:O}};return new Promise(function(q,m){_.DA(W,{form:{formData:l},commandController:{onSuccess:function(M,
y){q(y)},
onServerError:function(M,y){m(y.error)}}})})};
n=_.fnV(a.pendingStateKey());n(!0);_.c8z("#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");r(!1);_.BP(d,2);return d.yield(A(),4);case 4:_.p1(d,3);break;case 2:F=_.sk(d),(v=(h=a).onError)==null||v.call(h,F);case 3:n(!1),_.nu(d)}})});
return _.B(_.g,{cond:J,then:function(){return _.B("div",{class:"ytwYouChatChipsDataChipWrapper"},_.B("button",{el:z,class:"ytwYouChatChipsDataChip","data-disabled":a.disabled,"on:click":N,tabindex:0},P))}})},"Nj");var eWG=_.ec(function(a){var z=a.data;var I=a.initiallyExpanded;var J=function(){var O;return(O=z().conversationResourceData)==null?void 0:O.learningGuideData};
a=_.C(_.Af(function(){var O;return(O=I==null?void 0:I())!=null?O:!1}));
var r=a.next().value,P=a.next().value,N=function(){P(!0)},u=_.Bg(function(){var O,f;
return(f=(O=J())==null?void 0:O.sections)!=null?f:[]},void 0,"xl8NRc"),E=_.Bg(function(){return u().length>4},void 0,"oAM7of");
a=_.Bg(function(){var O;return!r()&&E()&&(O=J())!=null&&O.expandButton?u().slice(0,4):u()},void 0,"uzQ9rc");
return _.B("yt-conversation-resource-view-model",{class:_.B8("ytConversationResourceViewModelHost","ytConversationResourceViewModelHostSectionList")},_.B(_.V0,{data:a},{expandableMetadataViewModel:_.X44}),_.B(_.g,{cond:function(){return E()&&!r()},
then:function(){return _.B("div",{id:"showMoreButton"},_.B(_.V0,{data:function(){var O;return(O=J())==null?void 0:O.expandButton}},{buttonViewModel:function(O){return _.B(_.At,{data:O.data,
onClick:N})}}))}}))},"Oj");var aSi=_.ec(function(a){var z=function(){var y;return(y=a.data().text)==null?void 0:y.content},I=function(){var y,e;
return(y=a.data().webData)==null?void 0:(e=y.textResult)==null?void 0:e.content},J=_.ab().resolve(_.cl),r=_.gi(),P=function(){return a.data().chatResponseStyle},N=function(){return!a.data().transparentBackground},u=function(){return a.data().rightAlignThumbs},E=function(){return a.data().animationUrl==="https://www.gstatic.com/youtube/img/lottie/youchat_animations/gemini_twirl_v2.json"||a.data().animationUrl==="/google3/video/youtube/web/shared/testdata/animation/gemini_twirl_v2.json"},O=function(){return{animationConfig:{autoplay:!1,
loop:!1,renderer:"svg",rendererSettings:{viewBoxSize:E()?"0 0 1400 1400":"12 0 48 48"},name:"YOUCHAT_ICON",path:a.data().animationUrl||"https://www.gstatic.com/youtube/img/lottie/youchat_animations/progress_indicator_solo_v1.json"}}},f=function(){var y;
return a.data().webData||((y=a.data().text)==null?void 0:y.content)||a.data().videoResultsData||a.data().conversationResourceViewModel||a.data().quiz},A=function(){return!!a.data().sectionHeader||f()},n=function(){var y;
return(y=a.data().videoResultsData)==null?void 0:y.videoShelf},F=function(){var y;
return _.H(((y=a.data().videoResultsData)==null?void 0:y.videoShelf)||{},V7z)},h=function(){var y;
return(y=a.data().webData)==null?void 0:y.sourcesShelf},v=function(){var y;
return _.H(((y=a.data().webData)==null?void 0:y.sourcesShelf)||{},V7z)},d=function(){return _.H(a.data().conversationResourceViewModel||{},SyE)},W=function(){return _.H(a.data().quiz||{},HkZ)},l=function(){return P()==="CHAT_RESPONSE_STYLE_MULTI_PART_START"||P()==="CHAT_RESPONSE_STYLE_MULTI_PART_MIDDLE"?!1:a.data().thumbsDownViewModel&&a.data().thumbsUpViewModel},q=function(){return _.H(a.data().thumbsUpViewModel,_.My)},m=function(){return _.H(a.data().thumbsDownViewModel,_.My)};
_.hD(function(){requestAnimationFrame(function(){var y;(y=a.shouldAnimateIcon)!=null&&y.call(a)&&AnV(r.lottieEl)})});
var M={};return _.B("you-chat-item-view-model",{class:_.B8("ytwYouChatItemViewModelYouChatItemViewModel",(M.ytwYouChatItemViewModelColumnLayout=function(){return E()},M)),
"data-target-id":function(){return a.data().id||""}},_.B(_.g,{cond:function(){return a.data().removeIcon?!1:A()},
then:function(){var y={};return _.B("div",{"aria-hidden":"true"},_.B(_.b4,{className:_.B8("ytwYouChatItemViewModelIcon",(y.ytwYouChatItemViewModelRtl=J==="rtl",y.ytwYouChatItemViewModelHidden=function(){return!(a.data().hideIcon||P()==="CHAT_RESPONSE_STYLE_MULTI_PART_MIDDLE"||P()==="CHAT_RESPONSE_STYLE_MULTI_PART_END"?0:A())},y)),
animationName:"YOUCHAT_ICON",data:O,animationRef:r}))}}),_.B(_.g,{cond:A,
then:function(){var y={};return _.B("div",{class:_.B8("ytwYouChatItemViewModelHost",(y.ytwYouChatItemViewModelHostNoPadding=function(){return!!a.data().sectionHeader&&!f()},y.ytwYouChatItemViewModelChatResponseStyleMultiPartStart=function(){return P()==="CHAT_RESPONSE_STYLE_MULTI_PART_START"},y.ytwYouChatItemViewModelChatResponseStyleMultiPartMiddle=function(){return P()==="CHAT_RESPONSE_STYLE_MULTI_PART_MIDDLE"},y.ytwYouChatItemViewModelChatResponseStyleMultiPartEnd=function(){return P()==="CHAT_RESPONSE_STYLE_MULTI_PART_END"},
y.ytwYouChatItemViewModelGradientBackground=N,y)),
role:"alert"},_.B(_.g,{cond:z,then:function(e){return _.B(_.yA,{text:e,wrapCodeBlocks:!0})}}),_.B(_.V0,{data:function(){return a.data().sectionHeader}},{sectionHeaderViewModel:function(e){var Bp={};
return _.B(_.fF,{data:e.data,className:_.B8("ytwYouChatItemViewModelSectionHeader",(Bp.ytwYouChatItemViewModelSectionHeaderNoPadding=function(){return!!a.data().sectionHeader&&!f()},Bp))})}}),_.B(_.g,{cond:I,
then:function(e){return _.B(_.yA,{text:e,wrapCodeBlocks:!0})}}),_.B(_.g,{cond:n,
then:function(){return _.B("div",{class:"ytwYouChatItemViewModelLockupShelf"},_.B(_.pF,{data:F,hasPeek:!0,disableArrows:!1,protectBackground:!0}))}}),_.B(_.g,{cond:h,
then:function(){return _.B("div",{class:"ytwYouChatItemViewModelLockupShelf"},_.B(_.pF,{data:v,hasPeek:!0,disableArrows:!1}))}}),_.B(_.g,{cond:d,
then:function(){return _.B(eWG,{data:d})}}),_.B(_.g,{cond:W,
then:function(){return _.B(_.PLf,{data:W})}}),_.B(_.g,{cond:l,
then:function(){return _.B(cnZ,{thumbsUp:q,thumbsDown:m,rightAlignThumbs:u})}}))}}),_.B(_.g,{cond:function(){return a.data().chipsData},
then:function(y){return _.B(qyV,{data:y,disabled:a.pending,onError:a.onError})}}))},"Pj");
aSi.idomCompat={callbacks:{onError:!0,onSend:!0}};var jYE=_.ec(function(a){var z=function(){return a.data().choiceSelectedText},I=function(){return a.data().hasGradientBackground},J={};
return _.B("yt-you-chat-user-turn",{class:"ytYouChatUserTurnHost"},_.B(_.g,{cond:z,then:function(){return _.B("div",{class:"ytYouChatUserTurnChoiceSelected"},_.B(_.xs,{text:z}))}}),_.B("div",{class:_.B8("ytYouChatUserTurnUserMessage",(J.ytYouChatUserTurnGradientContainer=I,J.ytYouChatUserTurnDefaultContainer=function(){return!I()},J))},function(){return a.data().text}))},"Qj");var z5Z=_.ec(function(a){var z=_.C((0,_.XBO)(a.data)).next().value;return _.B("yt-item-section-renderer",{class:"ytItemSectionRendererHost","data-target-id":function(){return a.data().targetId||""}},_.B(_.V0,{data:function(){return a.data().header}},{chipBarViewModel:_.Q9J}),_.B(_.V0,{data:function(){return z().contents}},{accordionViewModel:_.t5E,
alertBannerViewModel:_.Tvw,chatLoadingViewModel:_.T3M,chatUserTurnViewModel:jYE,learningJourneyLoaderViewModel:_.zao,lockupViewModel:function(I){return _.B(_.Ou,{data:I.data,className:"ytItemSectionRendererLockup",containerLayoutConfig:a.containerLayoutConfig,thumbnailFixedWidth:"200px"})},
youChatItemViewModel:function(I){return _.B(aSi,{data:I.data,pending:!1})}}))},"Rj");_.Jf(_.ec(function(a){var z=_.C((0,_.XBO)(a.data)).next().value,I=_.Mm("yt-section-list-renderer"),J=_.C(_.CW(void 0,void 0,"rQpPgc")),r=J.next().value,P=J.next().value,N=function(){var u;return _.H((u=a.data().sectionListLayoutConfiguration)==null?void 0:u.layoutConfiguration,hWY)};
_.QO(function(){var u,E=(u=I.value)==null?void 0:u.clientWidth;if(N()){u=N();var O=u.responsiveSize;E=E<528?"CONTAINER_SIZE_NARROW":E<1024?"CONTAINER_SIZE_MEDIUM":"CONTAINER_SIZE_WIDE";b:{var f=_.C(u.responsiveMap||[]);for(var A=f.next();!A.done;A=f.next())if(A=A.value,A.containerSize===E){f=A.containerType;break b}f=void 0}if(f&&O){b:{if(f==="CONTAINER_TYPE_VERTICAL_LIST")if(O==="RESPONSIVE_SIZE_STANDARD"){if(E!=="CONTAINER_SIZE_NARROW"){A="50%";break b}}else{A=E==="CONTAINER_SIZE_NARROW"?"50%":
"33.3%";break b}A=void 0}u={responsiveSize:O,containerSize:E,containerType:f,force16By9ThumbnailAspectRatio:!u.enableContentSpecificAspectRatio,contentPreviewWidth:A,fullbleed:(f==="CONTAINER_TYPE_VERTICAL_LIST"||f==="CONTAINER_TYPE_GRID")&&E==="CONTAINER_SIZE_NARROW"&&!1}}else u=void 0}else u=void 0;P(u)});
return _.B("yt-section-list-renderer",{class:_.B8("ytSectionListRendererHost",a.className),el:I,"data-target-id":function(){return a.data().targetId||""}},_.B(_.V0,{data:function(){return z().contents}},{itemSectionRenderer:function(u){return _.B(z5Z,{data:u.data,
containerLayoutConfig:r})}}))},"Sj"),"yt-section-list-renderer",{props:{data:_.zl,
className:_.I5}});var ISZ;var Jm0;var rmi=function(){return _.G.apply(this,arguments)||this};
_.b(rmi,_.G);_.L([_.x(),_.p("design:type",Object)],rmi.prototype,"data",void 0);_.L([_.dz({is:"yt-alert-renderer",disableElementRegistration:!0})],rmi);
_.D(rmi,"yt-alert-renderer",function(){if(Jm0===void 0){var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-alert-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.yt_alert_renderer.yt.alert.renderer.css.js--\x3e<div id="container" class$="[[data.type]] style-scope yt-alert-renderer">\n  <yt-formatted-string text="[[data.text]]" class="style-scope yt-alert-renderer"></yt-formatted-string>\n</div>\n');a.content.insertBefore(_.w().content.cloneNode(!0),
a.content.firstChild);var z=a.content,I=z.insertBefore;ISZ===void 0&&(ISZ=document.createElement("template"));var J=ISZ;I.call(z,J.content.cloneNode(!0),a.content.firstChild);Jm0=a}a=Jm0;return a},{mode:2});
}catch(e){_._DumpException(e)}
try{
var pWi;pWi=function(a,z,I,J){I||(a?J&&(J.DOCUMENT_HIDDEN&&document.visibilityState==="hidden"||J.WINDOW_SIZE_CHANGED&&(z.width!==window.innerWidth||z.height!==window.innerHeight)||J.SAFARI_ABORTED_BY_NEW_TRANSITION&&a instanceof DOMException&&a.name==="AbortError"&&a.message.includes("Old view transition aborted by new view transition"))||_.Gx(a):_.Gx(Error("kj")))};
_.wWV=function(a,z){z=z===void 0?{}:z;var I,J,r,P,N,u,E,O,f,A,n,F,h;return _.t(function(v){switch(v.nextAddress){case 1:I=z;J=I.shouldWrap===void 0?!0:I.shouldWrap;r=I.skipTransitionTimeoutMs===void 0?300:I.skipTransitionTimeoutMs;P=I.beforeTransition;N=I.afterTransition;if(!J||!document.startViewTransition||document.visibilityState==="hidden")return v.return(a());u={width:window.innerWidth,height:window.innerHeight};E=!1;(O=P)==null||O();_.BP(v,2);f=document.startViewTransition(a);A=setTimeout(function(){f.skipTransition();
E=!0},r);
return v.yield(f.ready,4);case 4:return clearTimeout(A),v.yield(f.finished,5);case 5:clearTimeout(A);(n=N)==null||n();_.p1(v,0);break;case 2:F=_.sk(v),(h=N)==null||h(),pWi(F,u,E,z.ignoredErrors),_.nu(v)}})};
_.kn=function(){for(var a=Array(36),z=0,I,J=0;J<36;J++)J==8||J==13||J==18||J==23?a[J]="-":J==14?a[J]="4":(z<=2&&(z=33554432+Math.random()*16777216|0),I=z&15,z>>=4,a[J]=_.SNw[J==19?I&3|8:I]);return a.join("")};/*

Copyright (c) 2014 The Polymer Project Authors. All rights reserved.
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
Code distributed by Google as part of the polymer project is also
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
*/
var mC0=_.kK(['<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>']),
y7e=_.Bgf(mC0);y7e.setAttribute("style","display: none;");document.head.appendChild(y7e.content);_.M7=_.fZ3(function(a){var z=_.OS("DIV");a&&(z.className=a);z.style.cssText="overflow:auto;position:absolute;top:0;width:100px;height:100px";a=_.OS("DIV");_.BEJ(a,"200px","200px");z.appendChild(a);document.body.appendChild(z);a=z.offsetWidth-z.clientWidth;_.fo(z);return a});var kae;var MWG;var cO=function(){var a=_.G.apply(this,arguments)||this;a.icon=null;return a};
_.b(cO,_.G);cO.prototype.dismiss=function(){_.PA(this.hostElement,"yt-live-chat-error-message-dismiss")};
cO.prototype.computeIcon=function(a){return a&&a.iconType?"yt-icons:"+a.iconType.toLowerCase():"yt-icons:close"};
_.L([_.x(),_.p("design:type",Object)],cO.prototype,"data",void 0);_.L([_.x({computed:"computeIcon(data.icon)"}),_.p("design:type",Object)],cO.prototype,"icon",void 0);_.L([_.dz({disableElementRegistration:!0,is:"yt-live-chat-error-message-renderer",noInjection:!0})],cO);
_.D(cO,"yt-live-chat-error-message-renderer",function(){if(MWG===void 0){var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-live-chat-error-message-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.yt_live_chat_error_message_renderer.yt.live.chat.error.message.renderer.css.js--\x3e<yt-icon-button on-click="dismiss" class="style-scope yt-live-chat-error-message-renderer">\n  <yt-icon icon="[[icon]]" class="style-scope yt-live-chat-error-message-renderer"></yt-icon>\n</yt-icon-button>\n<yt-formatted-string text="[[data.errorText]]" class="style-scope yt-live-chat-error-message-renderer"></yt-formatted-string>\n');a.content.insertBefore(_.w().content.cloneNode(!0),
a.content.firstChild);var z=a.content,I=z.insertBefore;kae===void 0&&(kae=document.createElement("template"));var J=kae;I.call(z,J.content.cloneNode(!0),a.content.firstChild);MWG=a}a=MWG;return a},{mode:_.K("live_chat_enable_sink_wrapper")?2:0});
}catch(e){_._DumpException(e)}
try{
var Ao4,swL,nG9,KX9,hvO,SOP,ilx,xEa,xg,vGu,GJL,vC,$E4,XeI,Tft,dEP,WXG,oGa,UEa,DEj,Rv9,LXO,ljG,peu,weu,mEa,yo4,kJL,MIj,co9,YOj,G8,qOL,ev4,aEa,IE7,Jex,re9,P04,ZZO,C0j,jZI,zit,tfL,uM9,EZI,BEN,gZO,NEO,fE9;Ao4=function(a,z){return _.Bd(a.entities,"liveReactionsDataEntity",z)};
swL=function(a,z){a=_.Bd(a.entities,"booleanEntity",z);return!(!a||!a.value)};
nG9=function(a,z){var I=_.TX();I&&a&&_.Lt(I,_.VX(a),z)};
KX9=function(a,z){return _.Bd(a.entities,"timedMarkersListSyncEntity",z)};
_.FXP=function(a){return a.watch.isWatchActive};
_.Hlt=function(a){return _.Td(a)||_.d4(a)||_.CxI(a)};
_.bl9=function(a){return!_.Hlt(a)};
_.iS=function(a){return a.watch.watchScrollTop};
hvO=function(a){return a.watch.isLiveChatCollapsed};
_.VII=function(){_.K("web_watch_log_theater_mode")&&_.vH3("GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_THEATER_MODE_ENABLED")};
_.QwL=function(a,z,I){if(!a.includes("START_TIME_PLACEHOLDER")||!a.includes("END_TIME_PLACEHOLDER"))return a;var J=new Date(0),r=new Date(0);J.setUTCMilliseconds(z);r.setUTCMilliseconds(I);return a.replace("START_TIME_PLACEHOLDER",_.wg(J,7)).replace("END_TIME_PLACEHOLDER",_.wg(r,7))};
SOP=function(a,z){return _.Bd(a.entities,"booleanEntity",z)};
ilx=function(){return function(a){_.cK(_.Q0("booleanEntity","chat_input_view_model_state",{key:"chat_input_view_model_state",value:a}))}};
xEa=function(a){switch(a){case "AD_GRID_CARD_COLLECTION_STYLE_FIXED_ONE_COLUMN":return 1;case "AD_GRID_CARD_COLLECTION_STYLE_FIXED_SIX_COLUMNS":return 6;case "AD_GRID_CARD_COLLECTION_STYLE_FIXED_TWO_COLUMNS":return 2;default:return 3}};
xg=function(a,z,I){var J=_.o0(I);a&&z&&J&&a.getPlayerPromise().then(function(r){_.GkO(J)&&_.va();(new _.Gq(r)).executeCommand(J,z);_.K("continue_playback_on_desktop_companion_click")||r.pauseVideo()})};
vGu=function(a){var z=_.zI(),I;if(I=_.DH("yt.www.ads.eventcache.getLastUpdateEngagementPanelAction")){var J;I=(J=I())==null?void 0:J.layoutId}else I=null;xg(z,I,a)};
GJL=function(a){var z=_.zI(),I;if(I=_.DH("yt.www.ads.eventcache.getLastUpdateEngagementPanelAction")){var J;I=(J=I())==null?void 0:J.layoutId}else I=null;xg(z,I,a)};
vC=function(a,z){var I=a<0?"-":"";a=Math.abs(a);var J=Math.floor(a/3600),r=Math.floor(a)%3600,P=Math.floor(r/60);r=Math.floor(r)%60;var N="";(z===void 0?0:z)&&(N="."+Math.round((a-Math.floor(a))*10));return J>0?I+J+":"+(P<10?"0"+P:""+P)+":"+(r<10?"0"+r:""+r)+N:I+P+":"+(r<10?"0"+r:""+r)+N};
$E4=function(a){var z=a.match(/[^0-9:\.]/g);if(z&&z.length>0)return null;a=a.split(":");if(a.length===0||a.length>3)return null;z=1;for(var I=0;a.length>0;){var J=a.pop();if(J===void 0)break;var r=Number(J);if(J===""||isNaN(r))return null;I+=r*z;z*=60}return I};
XeI=function(a,z,I,J){a=Math.max(I,a);z=Math.min(z,J-I);a+z>J?(I=J,a=I-z):I=a+z;return{start:a,end:I}};
Tft=function(a,z,I,J,r,P){a<I?a=I:a+r>J&&(a=J-r);z>J&&(z=J);z=Math.min(a+P,Math.max(a+r,z));return{start:a,end:z}};
dEP=function(a,z,I,J,r,P){z>J?z=J:z-r<I&&(z=I+r);a<I&&(a=I);a=Math.min(z-r,Math.max(z-P,a));return{start:a,end:z}};
WXG=function(a){return _.K("web_transcript_cue_id_killswitch")?String(a):"ytd-transcript-renderer_"+a};
oGa=function(a){return _.K("web_transcript_cue_id_killswitch")?!0:a.startsWith("ytd-transcript-renderer")};
UEa=function(a){var z=_.zI(),I;if(I=_.DH("yt.www.ads.eventcache.getLastUpdateEngagementPanelAction")){var J;I=(J=I())==null?void 0:J.layoutId}else I=null;xg(z,I,a)};
DEj=function(a){a.style.height="auto";a.style.height=Math.min(a.scrollHeight||20,80)+"px"};
Rv9=function(a,z,I){return{listMutationCommand:{operations:{operations:[{insertItemSectionContent:{contents:[{chatUserTurnViewModel:{text:z,hasGradientBackground:I}}],insertByPositionInSection:{sectionTargetId:a,position:"INSERTION_POSITION_LAST"}}}]}}}};
LXO=function(a){var z=_.zI(),I;I=(I=_.DH("yt.www.ads.eventcache.getLastCompanionData"))?(I=I())&&I.layoutId:null;xg(z,I,a)};
ljG=function(a){var z=_.zI(),I;I=(I=_.DH("yt.www.ads.eventcache.getLastCompanionData"))?(I=I())&&I.layoutId:null;xg(z,I,a)};
peu=function(a,z){z=z===void 0?!1:z;if(a.simpleText)a=[{text:a.simpleText}];else{var I;a=((I=a.runs)!=null?I:[]).map(function(J){return Object.assign({},J)})}if(z)for(z=_.C(a),I=z.next();!I.done;I=z.next())I.value.bold=!0;
return a};
weu=function(a){var z=a.startEndTimeTemplate,I=a.startTimeUtcMillis;a=a.endTimeUtcMillis;if(z&&I&&a)return _.Mo(_.QwL(_.cd(z),Number(I),Number(a)))};
mEa=function(a,z){var I,J,r=a==null?void 0:(I=a.viewCount)==null?void 0:(J=I.videoViewCountRenderer)==null?void 0:J.shortViewCount;if(!z&&r)return r;var P,N;return a==null?void 0:(P=a.viewCount)==null?void 0:(N=P.videoViewCountRenderer)==null?void 0:N.viewCount};
yo4=function(a,z){var I=a==null?void 0:a.relativeDateText;return!z&&I?[I,!0]:[a==null?void 0:a.dateText,!1]};
kJL=function(a,z,I,J,r){J=J===void 0?!0:J;r=r===void 0?"":r;var P=mEa(a,z),N=_.C(yo4(a,z)),u=N.next().value;N=N.next().value;z=z?a==null?void 0:a.sponsorsOnlyFirstTimeLongText:a==null?void 0:a.sponsorsOnlyFirstTimeShortText;var E=[];I&&P&&E.push(P);!I&&N||!u||E.push(u);a=[].concat(_.ih(E),[z,a==null?void 0:a.stationName,a==null?void 0:a.rating,a?weu(a):void 0,a==null?void 0:a.upNextProgramText,a==null?void 0:a.superTitleLink]).filter(function(O){return!!O});
I={runs:[]};for(P=0;P<a.length;P++)I.runs.push.apply(I.runs,_.ih(peu(a[P],J))),P<a.length-1&&I.runs.push({text:" "+r+" ",bold:J});return I};
MIj=function(a){if(a)return{runs:[{text:a,bold:!0}]}};
co9=function(a){var z,I,J,r;if(a=a==null?void 0:(z=a.contents)==null?void 0:(I=z.twoColumnWatchNextResults)==null?void 0:(J=I.results)==null?void 0:(r=J.results)==null?void 0:r.contents){var P,N;return(N=(P=a.find(function(u){return!!u.videoPrimaryInfoRenderer}))==null?void 0:P.videoPrimaryInfoRenderer)==null?void 0:N.updatedMetadataEndpoint}};
YOj=function(a,z){var I;return(I=a.sourceConfigs)==null?void 0:I.find(function(J){return J.videoId===z})};
G8=function(a){return a==="End of video"||a==="End of playlist"};
qOL=function(a){var z,I,J,r;return(z=a.getWatchNextResponse())==null?void 0:(I=z.contents)==null?void 0:(J=I.twoColumnWatchNextResults)==null?void 0:(r=J.playlist)==null?void 0:r.playlist};
ev4=function(a){var z,I,J,r,P,N;return(z=qOL(a))==null?void 0:(I=z.playlistButtons)==null?void 0:(J=I.menuRenderer)==null?void 0:(r=J.topLevelButtons)==null?void 0:(P=r[0])==null?void 0:(N=P.playlistLoopButtonRenderer)==null?void 0:N.playlistLoopStateEntityKey};
aEa=function(a){var z=_.ab().resolve(_.wR),I;return(z=(I=_.H(z.getAutoplayEndpoint(),_.MZ))==null?void 0:I.playlistId)&&z===a};
IE7=function(a,z,I,J,r){function P(){_.GW.cancelJob($g);var N=jZI(z,I/a.getPlaybackRate()),u=N.hours,E=N.minutes;N=(N.seconds*1E3||6E4)/a.getPlaybackRate();a.setVideoTimeLeft(zit(u,E));J&&a.getPlayerState()!==0&&a.setSleepTimerTimeLeft(zit(u,E,!0));(u>0||E>0)&&!r&&($g=_.xc(_.GW,P,N))}
_.GW.cancelJob($g);$g=_.xc(_.GW,P)};
Jex=function(a,z,I){function J(){_.GW.cancelJob(X9);var r=jZI(z,I),P=r.hours;r=r.minutes;var N=6E4/a.getPlaybackRate();if(P>0||r>0)a.setSleepTimerTimeLeft(zit(P,r,!0)),X9=_.xc(_.GW,J,N)}
_.GW.cancelJob(X9);X9=_.xc(_.GW,J)};
re9=function(a,z){var I=a.getVolume()/(z/500),J=function(r){_.GW.cancelJob(T8);var P=Math.floor(r-I);a.setVolume(P,!1);P>0&&(T8=_.xc(_.GW,function(){J(P)},500))};
_.GW.cancelJob(T8);T8=_.xc(_.GW,function(){J(a.getVolume())})};
P04=function(a,z){_.GW.cancelJob(T8);z&&a.syncVolume()};
ZZO=function(){var a={openPopupAction:{popupType:"TOAST",popup:{notificationActionRenderer:{responseText:{simpleText:_.AR("SLEEP_TIMER_DISRUPTED")}}}}};_.ab().resolve(_.j6).resolveCommand(a)};
C0j=function(a){return(a.getDuration()-a.getProgressState().current)*1E3};
jZI=function(a,z){a=a+z-(0,_.jp)();if(a<=0)return{hours:0,minutes:0,seconds:0};var I=new NEO(0,0,0,0,0,0,a);a=I.getHours();z=I.getMinutes();I=I.getSeconds();I!==0&&z++;z!==0&&z%60===0&&(a++,z=0);return{hours:a,minutes:z,seconds:I}};
zit=function(a,z,I){return a>0&&z>0?I?_.AR("TIME_LEFT_HOURS_MINUTES",{hours:a.toString(),minutes:z.toString()}):_.AR("TIME_HOURS_MINUTES",{hours:a.toString(),minutes:z.toString()}):a>0?I?_.s_("TIME_LEFT_HOURS",a):_.s_("TIME_HOURS",a):I?_.AR("TIME_LEFT_MINUTES",{minutes:z.toString()}):_.AR("TIME_MINUTES",{minutes:z.toString()})};
tfL=function(a,z){if(a.timelyActions)return a.timelyActions.find(function(I){var J;return((J=_.H(I,dC))==null?void 0:J.cueRangeId)===z})};
uM9=function(a){var z=["expflag","debug_forced_internalcountrycode","internalcountrycode"];_.t4(a);a.keyMap_.forEach(function(I,J){_.Um(z,J)||this.remove(J)},a)};
EZI=function(a,z){a.reloadContinuationItemsCommandMatcher=z};
_.WC=function(a,z){a.insertBefore(z,a.childNodes[0]||null)};
BEN=function(a){if(a>=48&&a<=57||a>=96&&a<=106||a>=65&&a<=90||_.ue&&a==0)return!0;switch(a){case 32:case 43:case 63:case 64:case 107:case 109:case 110:case 111:case 186:case 59:case 189:case 187:case 61:case 188:case 190:case 191:case 192:case 222:case 219:case 220:case 221:case 163:case 58:return!0;case 173:case 171:return _.tY;default:return!1}};
gZO=function(a){if(a.altKey&&!a.ctrlKey||a.metaKey||a.keyCode>=112&&a.keyCode<=123)return!1;if(BEN(a.keyCode))return!0;switch(a.keyCode){case 18:case 20:case 93:case 17:case 40:case 35:case 27:case 36:case 45:case 37:case 224:case 91:case 144:case 12:case 34:case 33:case 19:case 255:case 44:case 39:case 145:case 16:case 38:case 252:case 224:case 92:return!1;case 0:return!_.tY;default:return a.keyCode<166||a.keyCode>183}};
NEO=function(a,z,I,J,r,P,N){this.date=typeof a==="number"?new Date(a,z||0,I||1,J||0,r||0,P||0,N||0):new Date(a&&a.getTime?a.getTime():_.JY())};
_.rL(NEO,_.iA);_.Z=NEO.prototype;_.Z.getHours=function(){return this.date.getHours()};
_.Z.getMinutes=function(){return this.date.getMinutes()};
_.Z.getSeconds=function(){return this.date.getSeconds()};
_.Z.getMilliseconds=function(){return this.date.getMilliseconds()};
_.Z.getUTCDay=function(){return this.date.getUTCDay()};
_.Z.getUTCHours=function(){return this.date.getUTCHours()};
_.Z.getUTCMinutes=function(){return this.date.getUTCMinutes()};
_.Z.getUTCSeconds=function(){return this.date.getUTCSeconds()};
_.Z.getUTCMilliseconds=function(){return this.date.getUTCMilliseconds()};
_.Z.setHours=function(a){this.date.setHours(a)};
_.Z.setMinutes=function(a){this.date.setMinutes(a)};
_.Z.setSeconds=function(a){this.date.setSeconds(a)};
_.Z.setMilliseconds=function(a){this.date.setMilliseconds(a)};
_.Z.setUTCHours=function(a){this.date.setUTCHours(a)};
_.Z.setUTCMinutes=function(a){this.date.setUTCMinutes(a)};
_.Z.setUTCSeconds=function(a){this.date.setUTCSeconds(a)};
_.Z.setUTCMilliseconds=function(a){this.date.setUTCMilliseconds(a)};
_.Z.add=function(a){_.iA.prototype.add.call(this,a);a.hours&&this.setUTCHours(this.date.getUTCHours()+a.hours);a.minutes&&this.setUTCMinutes(this.date.getUTCMinutes()+a.minutes);a.seconds&&this.setUTCSeconds(this.date.getUTCSeconds()+a.seconds)};
_.Z.JSC$11228_toIsoString=function(a){var z=_.iA.prototype.JSC$11228_toIsoString.call(this,a);return a?z+"T"+_.Ic(this.getHours(),2)+":"+_.Ic(this.getMinutes(),2)+":"+_.Ic(this.getSeconds(),2):z+"T"+_.Ic(this.getHours(),2)+_.Ic(this.getMinutes(),2)+_.Ic(this.getSeconds(),2)};
_.Z.equals=function(a){return this.getTime()==a.getTime()};
_.Z.toString=function(){return this.JSC$11228_toIsoString()};
_.Z.clone=function(){var a=new NEO(this.date);a.firstDayOfWeek_=this.firstDayOfWeek_;a.firstWeekCutOffDay_=this.firstWeekCutOffDay_;return a};
_.OZI=function(a){return _.rg({type:"SET_IS_WATCH_NARROW_WIDTH",payload:{isWatchNarrowWidth:a}})};
fE9=new _.jv("imageTileRenderer");var Ae4=new _.jv("adGridCardCollectionViewModel");var sZj=new _.jv("carouselTitleViewModel");var nZG=new _.jv("ctaCarouselItemViewModel");var Kzt=new _.jv("textFieldViewModel");_.FzO=new _.jv("engagementPanelHeaderShowNavigationButtonCommand");var HZG=new _.jv("hideEngagementPanelScrimAction");var bZa=new _.jv("setActivePanelItemAction");var hiO=new _.jv("showEngagementPanelScrimAction");var Vfx=new _.jv("updateEngagementPanelAction");var QZG=new _.jv("updateSearchInVideoResultsAction");var SGx=new _.jv("transcriptCueGroupRenderer");var iZj=new _.jv("transcriptCueRenderer");var x0t=new _.jv("transcriptFooterRenderer");var vZ7=new _.jv("engagementPanelAdSubtitleRenderer");var GYx=new _.jv("videoDescriptionFantasySectionViewModel");var $0N=new _.jv("deleteClipEngagementPanelCommand");var X49=new _.jv("loopCommand");var TEP=new _.jv("changeCreatorEndscreenVisibilityCommand");var d0N=new _.jv("liveChatCallForQuestionsRenderer");var WzN=new _.jv("updateTimedMarkersSyncObserverCommand");var dC=new _.jv("timelyActionViewModel");var oZG=new _.jv("timelyActionsOverlayViewModel");var U09=new _.jv("repeatChapterCommand");var D0O=new _.jv("watchPlayerOverflowMenuCommand");var Riu=new _.jv("compositeVideoOverlayRenderer");var LzL=new _.jv("sortFilterSubMenuRenderer");var lEN=new _.jv("switchListItemViewModel");var p4x=new _.jv("inputComposerViewModel");var w4O=new _.jv("transcriptEditSegmentCommand");var m07=new _.jv("transcriptUpdateSegmentTextCommand");var yex=new _.jv("transcriptSearchBoxRenderer");var kYI=new _.jv("transcriptSegmentListRenderer");var MfL=new _.jv("transcriptSegmentRenderer");_.ceN=new _.jv("updateDateTextAction");var YGP=new _.jv("updateTitleAction");var qGu=new _.jv("updateViewershipAction");var ei4=new _.jv("carouselLockupRenderer");var oY=new _.jv("expandableVideoDescriptionBodyRenderer");var axI=new _.jv("videoDescriptionHeaderRenderer");var jtL=new _.jv("videoDescriptionYouchatSectionViewModel");_.UI=_.Ib("kevlar_watch_page_horizontal_margin",24);_.z7u=_.Ib("kevlar_watch_page_columns_top_padding",24);_.IxP=426+_.UI*2;_.DS=_.Ib("kevlar_watch_two_column_width_threshold",1E3);_.JxN=_.UI*2;_.rxP=_.Ib("kevlar_watch_secondary_width",402);_.Pju=_.Ib("kevlar_watch_max_player_width",1280);_.Z4j=_.Ib("kevlar_watch_flexy_metadata_height",136);_.CjP=_.JxN+310+_.UI;_.NOP=_.JxN+360+_.UI;var tux={PAUSE_CHAT:18};var uGN;var EPt;var RY=function(){return _.G.apply(this,arguments)||this};
_.b(RY,_.G);RY.prototype.configureRendererStamper=function(){return{"data.button":{id:"button",mapping:{buttonViewModel:{component:"yt-button-view-model",properties:{scopingClassName:"[[is]]"}}},reuseComponents:!0}}};
RY.prototype.onEnabledChange=function(){if(this.data&&this.data.button){var a=_.H(this.data.button,_.yw);a&&(a.state=this.enabled?"BUTTON_VIEW_MODEL_STATE_ACTIVE":"BUTTON_VIEW_MODEL_STATE_DISABLED",this.data=Object.assign({},this.data))}};
_.eH.Object.defineProperties(RY,{template:{configurable:!0,enumerable:!0,get:function(){if(EPt===void 0){var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-disableable-button-view-model--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.yt_disableable_button_view_model.yt.disableable.button.view.model.css.js--\x3e<div id="button" class="style-scope yt-disableable-button-view-model"></div>');
a.content.insertBefore(_.w().content.cloneNode(!0),a.content.firstChild);var z=a.content,I=z.insertBefore;uGN===void 0&&(uGN=document.createElement("template"));var J=uGN;I.call(z,J.content.cloneNode(!0),a.content.firstChild);EPt=a}a=EPt;return a}}});
_.L([_.Q(_.yb),_.p("design:type",Object)],RY.prototype,"ytLiveChatReduxBehavior",void 0);_.L([_.Q(_.u4.YtRendererstamperBehavior),_.p("design:type",Object)],RY.prototype,"ytRendererstamperBehavior",void 0);_.L([_.x({selectorArgs:["data.enabledEntityKey"],selector:swL,observer:"onEnabledChange"}),_.p("design:type",Boolean)],RY.prototype,"enabled",void 0);_.L([_.x(),_.p("design:type",Object)],RY.prototype,"data",void 0);_.L([_.dz({is:"yt-disableable-button-view-model",noInjection:!0})],RY);var BOO;var gPj;var O4t=["transVert01","transVert02","transVert03"],fxG="transHorizLeft01 transHorizRight01 transHorizLeft02 transHorizRight02 transHorizLeft03 transHorizRight03 transHorizLeft04 transHorizRight04".split(" "),L7=function(){var a=_.G.apply(this,arguments)||this;a.emojiManager=_.MT;a.isDarkTheme=document.documentElement.hasAttribute("dark");a.actionMap={"yt-create-user-reaction-animation":"createUserReactionAnimation"};a.reactionBuckets=[];a.noEmojiIdentifier="NO_EMOJI";return a};
_.b(L7,_.G);_.Z=L7.prototype;_.Z.isActiveChanged=function(){this.isActive||this.cleanupFountain()};
_.Z.desktopFountainEmojiSizePxChanged=function(){_.uK(this.hostElement,{"--emoji-size":this.desktopFountainEmojiSizePx+"px"})};
_.Z.createUserReactionAnimation=function(a){this.createEmojiAnimation(a,!0)};
_.Z.cleanupFountain=function(){clearTimeout(this.emojiBucketTimerId);clearTimeout(this.emojiAnimationTimerId);var a;((a=this.data)==null?0:a.emojiFountainDataEntityKey)&&this.ytLiveChatReduxBehavior.dispatch(_.Q0("emojiFountainDataEntity",this.data.emojiFountainDataEntityKey,{}));[].concat(_.ih(this.emojiContainer.children)).forEach(function(z){z.remove()})};
_.Z.detached=function(){this.cleanupFountain()};
_.Z.onEmojiFountainDataEntityUpdate=function(){if(this.isActive){clearTimeout(this.emojiBucketTimerId);var a;this.reactionBuckets=_.x8.unsafeClone((a=this.emojiFountainData)==null?void 0:a.reactionBuckets)||[];this.processEmojiBucket(0)}};
_.Z.processEmojiBucket=function(a){var z=this;if(this.reactionBuckets&&!(a>=this.reactionBuckets.length)){clearTimeout(this.emojiAnimationTimerId);var I=this.reactionBuckets[a];this.generateEmojiAnimations(I);if(a<this.reactionBuckets.length-1){var J;if(I==null?0:(J=I.duration)==null?0:J.seconds)this.emojiBucketTimerId=setTimeout(function(){z.processEmojiBucket(a+1)},Number(I.duration.seconds)*1E3)}}};
_.Z.generateEmojiAnimations=function(a){var z=this,I=this.getRandomEmojiIdFromBucketWithOverride(a);if(I&&I!==this.noEmojiIdentifier){var J=0;a.targetEps?(J=this.linearInterpolateBounded(1,20,100,12,a.emojiSizeIndex||0),this.createEmojiAnimation(I,!1,a.emojiAnimationMs,J),J=this.getEmojiDelayMsFromTargetEps(a.targetEps)):(this.createEmojiAnimation(I),J=this.getEmojiDelayMsFromDistribution(a.intensityScore));this.emojiAnimationTimerId=setTimeout(function(){z.generateEmojiAnimations(a)},J)}};
_.Z.getRandomEmojiIdFromBucketWithOverride=function(a){if(!(a&&a.reactionsData&&a.reactionsData.length&&a.totalReactions))return this.noEmojiIdentifier;for(var z=a.totalReactions,I=1,J=_.C(a.reactionsData),r=J.next();!r.done;r=J.next())r=r.value,(r.reactionWeightOverride||r.reactionWeightOverride===0)&&r.reactionCount&&(z-=r.reactionCount,I-=r.reactionWeightOverride);J=!0;I<0&&(J=!1,z=a.totalReactions,I=1);if(J&&I>0&&z===0)if(I===1){r=0;for(var P=_.C(a.reactionsData),N=P.next();!N.done;N=P.next())N=
N.value,N.reactionCount&&N.reactionCount>0&&r++;r=1/r;P=_.C(a.reactionsData);for(N=P.next();!N.done;N=P.next())N.value.reactionWeightOverride=r}else for(r=1/(1-I),P=_.C(a.reactionsData),N=P.next();!N.done;N=P.next())N=N.value,N.reactionWeightOverride&&(N.reactionWeightOverride*=r);r=Math.random();P=0;N=_.C(a.reactionsData);for(var u=N.next();!u.done;u=N.next())if(u=u.value,u.reactionCount&&(P=(u.reactionWeightOverride||u.reactionWeightOverride===0)&&J?P+u.reactionWeightOverride:P+I*u.reactionCount/
z,P>r&&(u.reactionCount--,a.totalReactions--,u=this.reactionItemToEmojiString(u),u!==this.noEmojiIdentifier)))return u;return this.noEmojiIdentifier};
_.Z.reactionItemToEmojiString=function(a){if(a.unicodeEmojiId)return a.unicodeEmojiId;if(a.emoteId)return a.emoteId;if(a.videoReactionType)switch(a.videoReactionType){case "VIDEO_REACTION_TYPE_LIKE":return"yt-icons:like-filled"}return this.noEmojiIdentifier};
_.Z.createEmojiAnimation=function(a,z,I,J){z=z===void 0?!1:z;this.lastEmojiRequestedForTesting=a;var r=a.startsWith("yt-icons:"),P=_.y6(this.emojiManager,a);if(P||r){var N=document.createElement("emoji");N.classList.add("yt-emoji-fountain-view-model");N.classList.add(O4t[Math.floor(Math.random()*O4t.length)]);var u=document.createElement("div");u.classList.add("yt-emoji-fountain-view-model");u.classList.add("horizontal-container");u.classList.add(fxG[Math.floor(Math.random()*fxG.length)]);z?(I=document.createElement("div"),
I.classList.add("user-reaction-bubble"),I.classList.add("yt-emoji-fountain-view-model"),u.appendChild(I)):(I&&(N.style.animationDuration=I+"ms",u.style.animationDuration=I+"ms"),J&&(N.style.width=J+"px",N.style.height=J+"px"));r?(r=document.createElement("yt-icon"),r.polymerController.icon=a,J&&(r.style.width=J+"px",r.style.height=J+"px"),a=r):a=this.emojiManager.createEmoji(P,!1);a.classList.add("yt-emoji-fountain-view-model");u.appendChild(a);N.appendChild(u);this.emojiContainer.appendChild(N);
N.addEventListener("animationend",function(){N.remove()});
var E,O;if((E=this.data)==null?0:(O=E.loggingDirectives)==null?0:O.trackingParams)z=z?_.uq(183501):_.uq(183500),nG9(this.data.loggingDirectives.trackingParams,z),_.OiG(z);setTimeout(function(){N&&N.remove()},2E3)}};
_.Z.getEmojiDelayMsFromDistribution=function(a){return Math.random()*(a||1)*1E3};
_.Z.getEmojiDelayMsFromTargetEps=function(a){return Math.random()*2*(1/a)*1E3};
_.Z.linearInterpolateBounded=function(a,z,I,J,r){r=Math.min(Math.max(r,a),I);return(z*(I-r)+J*(r-a))/(I-a)};
L7.prototype.onEmojiFountainDataEntityUpdate=L7.prototype.onEmojiFountainDataEntityUpdate;L7.prototype.desktopFountainEmojiSizePxChanged=L7.prototype.desktopFountainEmojiSizePxChanged;L7.prototype.isActiveChanged=L7.prototype.isActiveChanged;_.L([_.x(),_.p("design:type",_.mJ)],L7.prototype,"emojiManager",void 0);_.L([_.Q(_.k.YtRendererBehavior),_.p("design:type",Object)],L7.prototype,"ytRendererBehavior",void 0);_.L([_.Q(_.yb),_.p("design:type",Object)],L7.prototype,"ytLiveChatReduxBehavior",void 0);
_.L([_.Q(_.Hc.YtActionHandlerBehavior),_.p("design:type",Object)],L7.prototype,"ytActionHandlerBehavior",void 0);_.L([_.x(),_.p("design:type",Object)],L7.prototype,"data",void 0);_.L([_.x({selectorArgs:["data.emojiFountainDataEntityKey"],selector:function(a,z){return _.Bd(a.entities,"emojiFountainDataEntity",z)}}),
_.p("design:type",Object)],L7.prototype,"emojiFountainData",void 0);_.L([_.x(),_.p("design:type",Boolean)],L7.prototype,"isActive",void 0);_.L([_.O8("isActive"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],L7.prototype,"isActiveChanged",null);_.L([_.x({reflectToAttribute:!0}),_.p("design:type",Object)],L7.prototype,"isDarkTheme",void 0);_.L([_.x(),_.p("design:type",String)],L7.prototype,"lastEmojiRequestedForTesting",void 0);
_.L([_.x({value:function(){return _.Ib("desktop_fountain_emoji_size_px",20)}}),
_.p("design:type",Number)],L7.prototype,"desktopFountainEmojiSizePx",void 0);_.L([_.O8("desktopFountainEmojiSizePx"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],L7.prototype,"desktopFountainEmojiSizePxChanged",null);_.L([_.A3("#emoji-container"),_.p("design:type",HTMLElement)],L7.prototype,"emojiContainer",void 0);
_.L([_.O8("emojiFountainData"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],L7.prototype,"onEmojiFountainDataEntityUpdate",null);_.L([_.dz({disableElementRegistration:!0,is:"yt-emoji-fountain-view-model",noInjection:!0})],L7);
_.D(L7,"yt-emoji-fountain-view-model",function(){if(gPj===void 0){var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-emoji-fountain-view-model--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.yt_emoji_fountain_view_model.yt.emoji.fountain.view.model.css.js--\x3e<div id="fountain-bounds" class="style-scope yt-emoji-fountain-view-model">\n  <div id="emoji-container" class="style-scope yt-emoji-fountain-view-model"></div>\n</div>');a.content.insertBefore(_.w().content.cloneNode(!0),
a.content.firstChild);var z=a.content,I=z.insertBefore;BOO===void 0&&(BOO=document.createElement("template"));var J=BOO;I.call(z,J.content.cloneNode(!0),a.content.firstChild);gPj=a}a=gPj;return a},{mode:_.K("live_chat_enable_sink_wrapper")?2:0});var Axu;var stj;var lS=function(){return _.G.apply(this,arguments)||this};
_.b(lS,_.G);lS.prototype.onChoiceChanged=function(){this.data&&_.uK(this.hostElement,{"--yt-live-chat-poll-choice-vote-bar-transform":"translateX("+(100*(this.data.voteRatio||0)-100+"%)")})};
lS.prototype.onChoiceChanged=lS.prototype.onChoiceChanged;_.L([_.x(),_.p("design:type",Object)],lS.prototype,"data",void 0);_.L([_.O8("data"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],lS.prototype,"onChoiceChanged",null);_.L([_.U({disableElementRegistration:!0,is:"yt-live-chat-banner-poll-choice"})],lS);
_.D(lS,"yt-live-chat-banner-poll-choice",function(){if(stj===void 0){var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-live-chat-banner-poll-choice--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.yt_live_chat_banner_poll_choice.yt.live.chat.banner.poll.choice.css.js--\x3e<div id="content" class="style-scope yt-live-chat-banner-poll-choice">\n  <div id="percentage-container" class="style-scope yt-live-chat-banner-poll-choice">\n    <div id="vote-percentage-bar" class="style-scope yt-live-chat-banner-poll-choice"></div>\n  </div>\n  <div id="text-container" class="style-scope yt-live-chat-banner-poll-choice">\n    <yt-formatted-string id="label-text" no-styles="" text="[[data.text]]" class="style-scope yt-live-chat-banner-poll-choice"></yt-formatted-string>\n    <yt-formatted-string id="vote-percentage-text" no-styles="" text="[[data.votePercentage]]" class="style-scope yt-live-chat-banner-poll-choice"></yt-formatted-string>\n  </div>\n</div>\n\n');a.content.insertBefore(_.w().content.cloneNode(!0),
a.content.firstChild);var z=a.content,I=z.insertBefore;Axu===void 0&&(Axu=document.createElement("template"));var J=Axu;I.call(z,J.content.cloneNode(!0),a.content.firstChild);stj=a}a=stj;return a},{mode:_.K("live_chat_enable_sink_wrapper")?2:0});var nPu;var K9O;var p7=function(){var a=_.G.apply(this,arguments)||this;a.modern=_.K("web_button_rework_with_live");a.small=!1;return a};
_.b(p7,_.G);p7.prototype.computeIsSmall=function(){var a;return((a=this.buttonOverrides)==null?void 0:a.size)==="S"};
p7.prototype.computeId=function(){return this.data&&this.data.targetId};
_.L([_.Q(_.ko.YtLiveChatTooltipTargetingBehavior),_.p("design:type",Object)],p7.prototype,"ytLiveChatTooltipTargetingBehavior",void 0);_.L([_.x({computed:"computeId(data.targetId)",reflectToAttribute:!0}),_.p("design:type",String)],p7.prototype,"id",void 0);_.L([_.x(),_.p("design:type",Object)],p7.prototype,"buttonOverrides",void 0);_.L([_.x(),_.p("design:type",Object)],p7.prototype,"data",void 0);_.L([_.x({reflectToAttribute:!0}),_.p("design:type",Object)],p7.prototype,"modern",void 0);
_.L([_.x({reflectToAttribute:!0,computed:"computeIsSmall(buttonOverrides)"}),_.p("design:type",Object)],p7.prototype,"small",void 0);_.L([_.U({disableElementRegistration:!0,is:"yt-live-chat-button"})],p7);
_.D(p7,"yt-live-chat-button",function(){if(K9O===void 0){var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-live-chat-button--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.yt_live_chat_button.yt.live.chat.button.css.js--\x3e<yt-button-renderer data="[[data]]" overrides="[[buttonOverrides]]" class="style-scope yt-live-chat-button"></yt-button-renderer>\n');a.content.insertBefore(_.w().content.cloneNode(!0),
a.content.firstChild);var z=a.content,I=z.insertBefore;nPu===void 0&&(nPu=document.createElement("template"));var J=nPu;I.call(z,J.content.cloneNode(!0),a.content.firstChild);K9O=a}a=K9O;return a},{mode:_.K("live_chat_enable_sink_wrapper")?2:0});var F9u;var H44;var wC=function(){var a=_.G.apply(this,arguments)||this;a.inCollapsedBanner=!1;a.buttonOverrides={size:"S",style:"mono-inverse",iconPosition:"icon-only"};a.questionButtonOverrides={style:"mono",type:"filled"};return a};
_.b(wC,_.G);_.Z=wC.prototype;_.Z.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]]"}}}}}};
_.Z.onContextMenuButtonClick=function(a){this.ytLiveChatItemBehavior.showContextMenu(a)};
_.Z.onYtRendererstamperFinished=function(){this.menuButton=_.PK(this.hostElement).querySelector("#menu-button")};
_.Z.dataChanged=function(){var a,z;if((z=_.H((a=this.data)==null?void 0:a.overflowMenuButton,_.lc))==null?0:z.command)this.data.contextMenuEndpoint=_.H(this.data.overflowMenuButton,_.lc).command};
_.Z.onButtonClick=function(){var a,z=_.H((a=this.data)==null?void 0:a.askQuestionButton,_.lc);if(z){if(z.trackingParams&&(a=_.VX(z.trackingParams))){var I=_.TX();I&&_.ys(I,a)}_.PA(this.hostElement,"innertube-command",z.command)}};
wC.prototype.onYtRendererstamperFinished=wC.prototype.onYtRendererstamperFinished;_.L([_.Q(_.u4.YtRendererstamperBehavior),_.p("design:type",Object)],wC.prototype,"ytRendererstamperBehavior",void 0);_.L([_.Q(_.yb),_.p("design:type",Object)],wC.prototype,"ytLiveChatReduxBehavior",void 0);_.L([_.Q(_.cc.YtLiveChatItemBehavior),_.p("design:type",_.Yu)],wC.prototype,"ytLiveChatItemBehavior",void 0);_.L([_.x({observer:"dataChanged"}),_.p("design:type",Object)],wC.prototype,"data",void 0);
_.L([_.x({reflectToAttribute:!0}),_.p("design:type",Object)],wC.prototype,"inCollapsedBanner",void 0);_.L([_.x(),_.p("design:type",Object)],wC.prototype,"buttonOverrides",void 0);_.L([_.x(),_.p("design:type",Object)],wC.prototype,"questionButtonOverrides",void 0);_.L([_.gz("yt-rendererstamper-finished"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],wC.prototype,"onYtRendererstamperFinished",null);
_.L([_.U({disableElementRegistration:!0,is:"yt-live-chat-call-for-questions-renderer"})],wC);
_.D(wC,"yt-live-chat-call-for-questions-renderer",function(){if(H44===void 0){var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-live-chat-call-for-questions-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.yt_live_chat_call_for_questions_renderer.yt.live.chat.call.for.questions.renderer.css.js--\x3e<div id="content-top" class="style-scope yt-live-chat-call-for-questions-renderer">\n  <yt-img-shadow id="creator-avatar" height="24" hidden$="[[!data.creatorAvatar]]" thumbnail="[[data.creatorAvatar]]" width="24" class="style-scope yt-live-chat-call-for-questions-renderer">\n  </yt-img-shadow>\n\n  <div id="metadata-text" class="style-scope yt-live-chat-call-for-questions-renderer">\n    <yt-formatted-string id="author-name" hidden$="[[inCollapsedBanner]]" text="[[data.creatorAuthorName]]" class="style-scope yt-live-chat-call-for-questions-renderer">\n    </yt-formatted-string>\n\n    <yt-formatted-string id="separator-collapsed" hidden$="[[inCollapsedBanner]]" text="[[data.contentSeparator]]" class="style-scope yt-live-chat-call-for-questions-renderer">\n    </yt-formatted-string>\n\n    <yt-formatted-string id="feature-label" text="[[data.featureLabel]]" class="style-scope yt-live-chat-call-for-questions-renderer">\n    </yt-formatted-string>\n\n    <yt-formatted-string id="separator-extended" hidden$="[[!inCollapsedBanner]]" text="[[data.contentSeparator]]" class="style-scope yt-live-chat-call-for-questions-renderer">\n    </yt-formatted-string>\n\n    <yt-formatted-string id="collapsed-call-for-questions-text" hidden$="[[!inCollapsedBanner]]" text="[[data.questionMessage]]" class="style-scope yt-live-chat-call-for-questions-renderer">\n    </yt-formatted-string>\n  </div>\n\n  <div id="menu" on-click="onContextMenuButtonClick" class="style-scope yt-live-chat-call-for-questions-renderer"></div>\n</div>\n\n<div id="main-content" hidden$="[[inCollapsedBanner]]" class="style-scope yt-live-chat-call-for-questions-renderer">\n  <yt-formatted-string id="call-for-questions-text" text="[[data.questionMessage]]" class="style-scope yt-live-chat-call-for-questions-renderer">\n  </yt-formatted-string>\n\n  <div id="ask-question" on-click="onButtonClick" hidden$="[[inCollapsedBanner]]" class="style-scope yt-live-chat-call-for-questions-renderer"></div>\n</div>\n');a.content.insertBefore(_.w().content.cloneNode(!0),
a.content.firstChild);var z=a.content,I=z.insertBefore;F9u===void 0&&(F9u=document.createElement("template"));var J=F9u;I.call(z,J.content.cloneNode(!0),a.content.firstChild);H44=a}a=H44;return a},{mode:_.K("live_chat_enable_sink_wrapper")?2:0});var b44={};b44.YtLiveChatDialogBehavior={properties:{hidden:{type:Boolean,reflectToAttribute:!0,observer:"hiddenChanged_"}},observers:["isAttachedChanged_(isAttached)"],created:function(){this.restoreFocusNode_=null},
attached:function(){document.addEventListener("focus",this.onFocus_.bind(this),!0)},
detached:function(){this.restoreFocusNode_=null;document.removeEventListener("focus",this.onFocus_.bind(this),!0)},
focusChild_:function(){var a=this;window.requestAnimationFrame(function(){a.restoreFocusNode_||(a.restoreFocusNode_=document.activeElement);var z=_.UA1(a.hostElement);z.length&&z[z.length-1].focus()})},
isAttachedChanged_:function(a,z){a?this.focusChild_():z&&this.restoreFocus_()},
hiddenChanged_:function(){this.hidden?this.restoreFocus_():this.focusChild_()},
restoreFocus_:function(){this.restoreFocusNode_&&(this.restoreFocusNode_.focus(),this.restoreFocusNode_=null)},
onFocus_:function(a){this.hidden||_.ch(a).indexOf(this.hostElement)!==-1||(a.stopPropagation(),this.focusChild_())}};var h7P;var VuN;var mQ=function(){return _.G.apply(this,arguments)||this};
_.b(mQ,_.G);mQ.prototype.configureRendererStamper=function(){return{"data.confirmButton":{id:"confirm_button",mapping:{buttonRenderer:"yt-button-renderer"}},"data.cancelButton":{id:"cancel_button",mapping:{buttonRenderer:"yt-button-renderer"}}}};
mQ.prototype.onClick=function(a){a.target!==this.confirmButton&&a.target!==this.cancelButton&&(this.hidden=!0)};
_.L([_.A3("#confirm_button"),_.p("design:type",Object)],mQ.prototype,"confirmButton",void 0);_.L([_.A3("#cancel_button"),_.p("design:type",Object)],mQ.prototype,"cancelButton",void 0);_.L([_.x(),_.p("design:type",QtN)],mQ.prototype,"data",void 0);_.L([_.x({value:!0,reflectToAttribute:!0}),_.p("design:type",Boolean)],mQ.prototype,"hidden",void 0);_.L([_.Q(_.u4.YtRendererstamperBehavior),_.p("design:type",Object)],mQ.prototype,"ytRendererstamperBehavior",void 0);
_.L([_.Q(b44.YtLiveChatDialogBehavior),_.p("design:type",Object)],mQ.prototype,"ytLiveChatDialogBehavior",void 0);_.L([_.dz({disableElementRegistration:!0,is:"yt-live-chat-dialog-renderer",noInjection:!0})],mQ);
var QtN=_.D(mQ,"yt-live-chat-dialog-renderer",function(){if(VuN===void 0){var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-live-chat-dialog-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.yt_live_chat_dialog_renderer.yt.live.chat.dialog.renderer.css.js--\x3e<div id="inner" aria-describedby="live-chat-dialog-body" aria-labelledby="live-chat-dialog-title" role="dialog" class="style-scope yt-live-chat-dialog-renderer">\n  <yt-image id="image" alt="[[data.imageA11yLabel]]" data="[[data.image]]" height="200" preserve-height="" width="32" class="style-scope yt-live-chat-dialog-renderer">\n  </yt-image>\n  <yt-formatted-string id="live-chat-dialog-title" text="[[data.title]]" class="style-scope yt-live-chat-dialog-renderer"></yt-formatted-string>\n  <div id="live-chat-dialog-body" class="style-scope yt-live-chat-dialog-renderer">\n    \n    <template is="dom-repeat" items="[[data.dialogMessages]]" class="style-scope yt-live-chat-dialog-renderer">\n      <yt-formatted-string force-default-style="" split-lines="" text="[[item]]" class="style-scope yt-live-chat-dialog-renderer"></yt-formatted-string>\n    </template>\n  </div>\n  <div id="buttons" class="style-scope yt-live-chat-dialog-renderer">\n    <div id="cancel_button" on-click="onClick" class="style-scope yt-live-chat-dialog-renderer"></div>\n    <div id="confirm_button" on-click="onClick" class="style-scope yt-live-chat-dialog-renderer"></div>\n  </div>\n</div>\n');a.content.insertBefore(_.w().content.cloneNode(!0),
a.content.firstChild);var z=a.content,I=z.insertBefore;h7P===void 0&&(h7P=document.createElement("template"));var J=h7P;I.call(z,J.content.cloneNode(!0),a.content.firstChild);VuN=a}a=VuN;return a},{mode:_.K("live_chat_enable_sink_wrapper")?2:0});var Sa7;var i4u,xL4=function(){if(i4u!==void 0)return i4u;var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-live-chat-engagement-panel-input-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.yt_live_chat_engagement_panel_input_renderer.yt.live.chat.engagement.panel.input.renderer.css.js--\x3e<div id="content" class="style-scope yt-live-chat-engagement-panel-input-renderer"></div>\n');
a.content.insertBefore(_.w().content.cloneNode(!0),a.content.firstChild);var z=a.content,I=z.insertBefore;Sa7===void 0&&(Sa7=document.createElement("template"));var J=Sa7;I.call(z,J.content.cloneNode(!0),a.content.firstChild);return i4u=a};var vPI;var GNG;var kg=function(){var a=_.G.apply(this,arguments)||this;a.tooltip=null;a.data=null;a.id="";a.active=!1;a.icon="";a.disabled=!1;a.showTooltip=!1;a.useToggledActiveState=!0;a.actionMap={"yt-live-chat-actions":"handleLiveChatActions"};return a};
_.b(kg,_.G);_.Z=kg.prototype;
_.Z.dataChanged=function(){var a;((a=this.data)==null?0:a.tooltip)?(this.tooltip||(this.tooltip=document.createElement("tp-yt-paper-tooltip"),this.tooltip.position="top",this.tooltip.offset=8,this.tooltip.fitToVisibleBounds=!0,this.tooltip.style.right="0",this.hostElement.appendChild(this.tooltip)),(0,_.t3)(this.tooltip).textContent=this.data.tooltip):this.tooltip&&(this.hostElement.removeChild(this.tooltip),this.tooltip=null);var z;if((z=this.data)==null?0:z.disabled)this.disabled=!0};
_.Z.computeId=function(a){return a};
_.Z.computeIcon=function(a,z){if(!a)return"";if(this.useToggledActiveState)return"yt-icons:"+a.toLowerCase();var I,J;return z&&((I=this.data)==null?0:(J=I.toggledIcon)==null?0:J.iconType)?"yt-icons:"+this.data.toggledIcon.iconType.toLowerCase():"yt-icons:"+a.toLowerCase()};
_.Z.logPDGEntryPoint=function(){_.rMi(_.Bh("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")};
_.Z.immediatelyShowTooltip=function(){var a=_.PK(this.hostElement).querySelector("#tooltip");a.animationDelay=0;a.animationConfig={entry:[{name:"fade-in-animation",timing:{}}]};a.show()};
_.Z.disabledChanged=function(){this.disabled?this.hostElement.setAttribute("aria-disabled",""):this.hostElement.removeAttribute("aria-disabled")};
_.Z.onClick=function(a){var z;((z=this.data)==null?0:z.disabled)?this.showTooltip&&this.immediatelyShowTooltip():(this.active=!this.active,this.tooltip&&(this.tooltip.hide(),this.maybeUpdateTooltipText()),this.active&&this.data&&(this.ytRendererBehavior.logExplicitClick(this.data),this.id==="product-picker"&&(this.logPDGEntryPoint(),a.stopPropagation())),this.id!=="creator"&&this.id!=="product-picker"||this.removeBubble(),_.PA(this.hostElement,"yt-live-chat-icon-toggle-button-renderer-toggle",{targetId:this.id}))};
_.Z.computeShowTooltip=function(a,z){return!!(a&&a.tooltip&&z)};
_.Z.maybeUpdateTooltipText=function(){var a=this,z;if((z=this.data)==null?0:z.tooltip){var I=this.active&&this.data.activeTooltip?this.data.activeTooltip:this.data.tooltip;setTimeout(function(){(0,_.t3)(a.tooltip).textContent=I},250)}};
_.Z.handleLiveChatActions=function(a){var z=this;a.length&&(this.id!=="creator"&&this.id!=="product-picker"||a.forEach(function(I){(I=z.get("addLiveChatTickerItemAction.item.liveChatTickerPaidMessageItemRenderer",I))&&I.durationSec===I.fullDurationSec&&z.startBubble(z.colorFromDecimal(I.startBackgroundColor))}))};
_.Z.onAnimationEnd=function(){this.hostElement.removeAttribute("bubble")};
_.Z.startBubble=function(a){_.uK(this.hostElement,{"--yt-live-chat-monetization-button-glow":a});this.hostElement.setAttribute("bubble","")};
_.Z.removeBubble=function(){this.hostElement.removeAttribute("bubble")};
_.Z.colorFromDecimal=function(a){typeof a==="string"&&(a=Number(a));return"rgba("+[a>>16&255,a>>8&255,a&255,(a>>24&255)/255].join()+")"};
kg.prototype.onAnimationEnd=kg.prototype.onAnimationEnd;kg.prototype.disabledChanged=kg.prototype.disabledChanged;kg.prototype.dataChanged=kg.prototype.dataChanged;_.L([_.Q(_.Hc.YtActionHandlerBehavior),_.p("design:type",Object)],kg.prototype,"ytActionHandlerBehavior",void 0);_.L([_.Q(_.k.YtRendererBehavior),_.p("design:type",Object)],kg.prototype,"ytRendererBehavior",void 0);
_.L([_.Q(_.ko.YtLiveChatTooltipTargetingBehavior),_.p("design:type",Object)],kg.prototype,"ytLiveChatTooltipTargetingBehavior",void 0);_.L([_.x(),_.p("design:type",Object)],kg.prototype,"data",void 0);_.L([_.x({computed:"computeId(data.targetId)",reflectToAttribute:!0}),_.p("design:type",Object)],kg.prototype,"id",void 0);_.L([_.x({notify:!0,reflectToAttribute:!0}),_.p("design:type",Object)],kg.prototype,"active",void 0);
_.L([_.x({readOnly:!0,computed:"computeIcon(data.icon.iconType, active)"}),_.p("design:type",Object)],kg.prototype,"icon",void 0);_.L([_.x({reflectToAttribute:!0}),_.p("design:type",Object)],kg.prototype,"disabled",void 0);_.L([_.x({computed:"computeShowTooltip(data, disabled)"}),_.p("design:type",Object)],kg.prototype,"showTooltip",void 0);_.L([_.x({reflectToAttribute:!0}),_.p("design:type",Object)],kg.prototype,"useToggledActiveState",void 0);
_.L([_.O8("data"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],kg.prototype,"dataChanged",null);_.L([_.O8("disabled"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],kg.prototype,"disabledChanged",null);_.L([_.gz("animationend"),_.p("design:type",Function),_.p("design:paramtypes",[Event]),_.p("design:returntype")],kg.prototype,"onAnimationEnd",null);
_.L([_.dz({disableElementRegistration:!0,is:"yt-live-chat-icon-toggle-button-renderer",noInjection:!0})],kg);
_.D(kg,"yt-live-chat-icon-toggle-button-renderer",function(){if(GNG===void 0){var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-live-chat-icon-toggle-button-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.yt_live_chat_icon_toggle_button_renderer.yt.live.chat.icon.toggle.button.renderer.css.js--\x3e<yt-icon-button id="button" disabled="[[disabled]]" label="[[data.accessibility.accessibilityData.label]]" on-click="onClick" class="style-scope yt-live-chat-icon-toggle-button-renderer">\n  <span id="bubble" class="style-scope yt-live-chat-icon-toggle-button-renderer"></span>\n  <div class="style-scope yt-live-chat-icon-toggle-button-renderer">\n    <yt-icon active="[[active]]" icon="[[icon]]" class="style-scope yt-live-chat-icon-toggle-button-renderer"></yt-icon>\n    <span hidden="[[!data.iconBadgeText]]" id="icon-badge-text" class="style-scope yt-live-chat-icon-toggle-button-renderer">[[data.iconBadgeText]]</span>\n  </div>\n</yt-icon-button>\n<template is="dom-if" if="[[showTooltip]]" class="style-scope yt-live-chat-icon-toggle-button-renderer">\n  <tp-yt-paper-tooltip id="tooltip" for="button" class="style-scope yt-live-chat-icon-toggle-button-renderer">[[data.tooltip]]</tp-yt-paper-tooltip>\n</template>\n');a.content.insertBefore(_.w().content.cloneNode(!0),
a.content.firstChild);var z=a.content,I=z.insertBefore;vPI===void 0&&(vPI=document.createElement("template"));var J=vPI;I.call(z,J.content.cloneNode(!0),a.content.firstChild);GNG=a}a=GNG;return a},{mode:_.K("live_chat_enable_sink_wrapper")?2:0});var $Lt;var X9u;var Mw=function(){return _.G.apply(this,arguments)||this};
_.b(Mw,_.G);Mw.prototype.configureRendererStamper=function(){return{"data.helpButton":{id:"help-button",mapping:{buttonRenderer:"yt-button-renderer"}},"data.closeButton":{id:"close-button",mapping:{buttonRenderer:"yt-button-renderer"}}}};
_.L([_.x(),_.p("design:type",Object)],Mw.prototype,"data",void 0);_.L([_.Q(_.u4.YtRendererstamperBehavior),_.p("design:type",Object)],Mw.prototype,"ytRendererstamperBehavior",void 0);_.L([_.U({disableElementRegistration:!0,is:"yt-live-chat-message-input-prompt-header-renderer"})],Mw);
_.D(Mw,"yt-live-chat-message-input-prompt-header-renderer",function(){if(X9u===void 0){var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-live-chat-message-input-prompt-header-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.yt_live_chat_message_input_prompt_header_renderer.yt.live.chat.message.input.prompt.header.renderer.css.js--\x3e<div id="primary-content" class="style-scope yt-live-chat-message-input-prompt-header-renderer">\n  <div id="close-button" class="style-scope yt-live-chat-message-input-prompt-header-renderer"></div>\n  <yt-formatted-string id="label-text" text="[[data.labelText]]" class="style-scope yt-live-chat-message-input-prompt-header-renderer"></yt-formatted-string>\n  <div id="help-button" class="style-scope yt-live-chat-message-input-prompt-header-renderer"></div>\n</div>\n<div id="underline" class="style-scope yt-live-chat-message-input-prompt-header-renderer"></div>');a.content.insertBefore(_.w().content.cloneNode(!0),
a.content.firstChild);var z=a.content,I=z.insertBefore;$Lt===void 0&&($Lt=document.createElement("template"));var J=$Lt;I.call(z,J.content.cloneNode(!0),a.content.firstChild);X9u=a}a=X9u;return a},{mode:_.K("live_chat_enable_sink_wrapper")?2:0});var TOa;var dLx;var W99;var oPI;var ULP;var DLN;var R7u=function(){return _.G.apply(this,arguments)||this};
_.b(R7u,_.G);_.L([_.x(),_.p("design:type",Object)],R7u.prototype,"data",void 0);_.L([_.dz({disableElementRegistration:!0,is:"yt-live-chat-message-subtext-renderer",noInjection:!0})],R7u);
_.D(R7u,"yt-live-chat-message-subtext-renderer",function(){if(DLN===void 0){var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-live-chat-message-subtext-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.yt_live_chat_message_subtext_renderer.yt.live.chat.message.subtext.renderer.css.js--\x3e<yt-formatted-string text="[[data.text]]" class="style-scope yt-live-chat-message-subtext-renderer"></yt-formatted-string>\n');a.content.insertBefore(_.w().content.cloneNode(!0),
a.content.firstChild);var z=a.content,I=z.insertBefore;ULP===void 0&&(ULP=document.createElement("template"));var J=ULP;I.call(z,J.content.cloneNode(!0),a.content.firstChild);DLN=a}a=DLN;return a},{mode:_.K("live_chat_enable_sink_wrapper")?2:0});var cC=function(){var a=_.G.apply(this,arguments)||this;a.subtextOnBottom=!1;a.buttonOverrides={style:"mono",type:"tonal"};return a};
_.b(cC,_.G);cC.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"}}}};
_.L([_.Q(_.k.YtRendererBehavior),_.p("design:type",Object)],cC.prototype,"ytRendererBehavior",void 0);_.L([_.Q(_.u4.YtRendererstamperBehavior),_.p("design:type",Object)],cC.prototype,"ytRendererstamperBehavior",void 0);_.L([_.x(),_.p("design:type",Object)],cC.prototype,"data",void 0);_.L([_.x({reflectToAttribute:!0}),_.p("design:type",Object)],cC.prototype,"subtextOnBottom",void 0);_.L([_.x(),_.p("design:type",Object)],cC.prototype,"buttonOverrides",void 0);
_.L([_.dz({disableElementRegistration:!0,is:"yt-live-chat-message-renderer",noInjection:!0})],cC);
_.D(cC,"yt-live-chat-message-renderer",function(){if(oPI===void 0){var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-live-chat-message-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.yt_live_chat_message_renderer.yt.live.chat.message.renderer.css.js--\x3e<yt-formatted-string id="text" text="[[data.text]]" class="style-scope yt-live-chat-message-renderer"></yt-formatted-string>\n<div id="subtext" class="style-scope yt-live-chat-message-renderer"></div>\n<div id="button" class="style-scope yt-live-chat-message-renderer"></div>\n');a.content.insertBefore(_.w().content.cloneNode(!0),
a.content.firstChild);var z=a.content,I=z.insertBefore;W99===void 0&&(W99=document.createElement("template"));var J=W99;I.call(z,J.content.cloneNode(!0),a.content.firstChild);oPI=a}a=oPI;return a},{mode:_.K("live_chat_enable_sink_wrapper")?2:0});var L9j;var lxI;var Yg=function(){var a=_.G.apply(this,arguments)||this;a.isRemovable=!1;a.hasPrefilledText=!1;a.isInputDirty=!1;a.overCharacterLimit=!1;a.underCharacterLimit=!1;a.showErrorMessage=!1;return a};
_.b(Yg,_.G);_.Z=Yg.prototype;_.Z.computeId=function(){return this.data.id};
_.Z.computeInputData=function(){return this.data.inputData};
_.Z.computeHasPrefilledText=function(){return this.data.hasPrefilledText};
_.Z.computeIsRemovable=function(){return!!this.data&&!!this.data.isRemovable};
_.Z.computeShowErrorMessage=function(){return this.data&&this.data.charCountErrorText?this.overCharacterLimit||this.underCharacterLimit&&this.isInputDirty:!1};
_.Z.getLiveChatRichMessageInput=function(){return _.PK(this.hostElement).querySelector("#input").liveChatRichMessageInput};
_.Z.clearInput=function(){_.PK(this.hostElement).querySelector("#input").setLiveChatRichMessageInput(null)};
_.Z.computeCharactersRemaining=function(){if(this.data&&this.data.maxCharacterLimit!==void 0&&this.characterCount!==void 0)return this.data.maxCharacterLimit-this.characterCount};
_.Z.computeOverCharacterLimit=function(){return this.charactersRemaining!==void 0&&this.charactersRemaining<0};
_.Z.computeUnderCharacterLimit=function(){return this.hasPrefilledText?!1:!!this.data&&this.characterCount!==void 0&&this.data.minCharacterLimit>this.characterCount};
_.Z.handleTextInputCharCountChanged=function(a){a=a.detail&&a.detail.characterCount;a!==void 0&&(this.characterCount=a,a!==0&&(this.isInputDirty=!0))};
_.Z.onInputFocusOut=function(){this.isInputDirty=!0};
_.Z.onClickCloseButton=function(){_.PA(this.hostElement,"yt-live-chat-poll-editor-input-closed",{id:this.id})};
Yg.prototype.handleTextInputCharCountChanged=Yg.prototype.handleTextInputCharCountChanged;_.L([_.Q(_.k.YtRendererBehavior),_.p("design:type",Object)],Yg.prototype,"ytRendererBehavior",void 0);_.L([_.x(),_.p("design:type",Object)],Yg.prototype,"data",void 0);_.L([_.x({computed:"computeId(data.id)"}),_.p("design:type",String)],Yg.prototype,"id",void 0);_.L([_.x({computed:"computeInputData(data.inputData)"}),_.p("design:type",Object)],Yg.prototype,"inputData",void 0);
_.L([_.x({reflectToAttribute:!0,computed:"computeIsRemovable(data.isRemovable)"}),_.p("design:type",Object)],Yg.prototype,"isRemovable",void 0);_.L([_.x({reflectToAttribute:!0,computed:"computeHasPrefilledText(data.hasPrefilledText)"}),_.p("design:type",Object)],Yg.prototype,"hasPrefilledText",void 0);_.L([_.x({computed:"computeCharactersRemaining(data.maxCharacterLimit, characterCount)"}),_.p("design:type",Number)],Yg.prototype,"charactersRemaining",void 0);
_.L([_.x(),_.p("design:type",Number)],Yg.prototype,"characterCount",void 0);_.L([_.x(),_.p("design:type",Object)],Yg.prototype,"isInputDirty",void 0);_.L([_.x({reflectToAttribute:!0,computed:"computeOverCharacterLimit(charactersRemaining)"}),_.p("design:type",Object)],Yg.prototype,"overCharacterLimit",void 0);_.L([_.x({computed:"computeUnderCharacterLimit(data, characterCount, hasPrefilledText)"}),_.p("design:type",Object)],Yg.prototype,"underCharacterLimit",void 0);
_.L([_.x({reflectToAttribute:!0,computed:"computeShowErrorMessage(data.charCountErrorText, overCharacterLimit, isInputDirty, characterCount)"}),_.p("design:type",Object)],Yg.prototype,"showErrorMessage",void 0);_.L([_.gz("yt-live-chat-text-input-field-renderer-character-count-changed"),_.p("design:type",Function),_.p("design:paramtypes",[CustomEvent]),_.p("design:returntype")],Yg.prototype,"handleTextInputCharCountChanged",null);
_.L([_.dz({disableElementRegistration:!0,is:"yt-live-chat-poll-editor-input",noInjection:!0})],Yg);
_.D(Yg,"yt-live-chat-poll-editor-input",function(){if(lxI===void 0){var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-live-chat-poll-editor-input--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.yt_live_chat_poll_editor_input.yt.live.chat.poll.editor.input.css.js--\x3e<div id="input-container" class="style-scope yt-live-chat-poll-editor-input">\n  <yt-live-chat-text-input-field-renderer id="input" data="[[inputData]]" is-valid-with-no-input-text="[[hasPrefilledText]]" on-focusout="onInputFocusOut" class="style-scope yt-live-chat-poll-editor-input">\n  </yt-live-chat-text-input-field-renderer>\n  <div id="content-right" class="style-scope yt-live-chat-poll-editor-input">\n    <yt-icon-button id="close-button" aria-label$="[[getSimpleString(data.removeOptionAltText)]]" on-click="onClickCloseButton" class="style-scope yt-live-chat-poll-editor-input">\n      <yt-icon icon="yt-icons:close" class="style-scope yt-live-chat-poll-editor-input"></yt-icon>\n    </yt-icon-button>\n    <span id="char-count" aria-live="polite" aria-atomic="true" aria-label$="[[getSimpleString(data.charsRemainingAltLabel)]]" class="style-scope yt-live-chat-poll-editor-input">[[charactersRemaining]]</span>\n  </div>\n</div>\n<div id="error-message" role="alert" class="style-scope yt-live-chat-poll-editor-input">\n  [[getSimpleString(data.charCountErrorText)]]\n</div>\n');a.content.insertBefore(_.w().content.cloneNode(!0),
a.content.firstChild);var z=a.content,I=z.insertBefore;L9j===void 0&&(L9j=document.createElement("template"));var J=L9j;I.call(z,J.content.cloneNode(!0),a.content.firstChild);lxI=a}a=lxI;return a},{mode:_.K("live_chat_enable_sink_wrapper")?2:0});var p9j;var w9I;var mLP={minPollOptions:2,maxPollOptions:4,minPollOptionChars:1,maxPollOptionChars:35,maxPollQuestionChars:100,optionPlaceholderText:{simpleText:""},questionPlaceholderText:{simpleText:""},customOptionPlaceholderText:[],pollOptionData:{}},qw=function(){var a=_.G.apply(this,arguments)||this;a.modern=_.K("web_button_rework_with_live");a.closeButtonOverrides={iconPosition:"icon-only"};a.startButtonOverrides={style:"mono",type:"filled"};a.addOptionButtonOverrides={style:"mono",type:"text"};return a};
_.b(qw,_.G);_.Z=qw.prototype;
_.Z.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"}}}}};
_.Z.dataChanged=function(){this.isValidPoll=this.getIsValidPoll();var a;_.H((a=this.data)==null?void 0:a.startButton,_.lc)&&this.set("data.startButton.buttonRenderer.isDisabled",!this.isValidPoll)};
_.Z.computeId=function(){return this.data&&this.data.id||""};
_.Z.computeOverQuestionCharacterLimit=function(){return this.pollEditorInfoWithDefaults?this.pollQuestionCharacterCount>this.pollEditorInfoWithDefaults.maxPollQuestionChars:!1};
_.Z.computeCurrentNumPollOptions=function(){return this.pollOptionsData.length};
_.Z.computeHasMaxNumPollOptions=function(){return!this.pollEditorInfoWithDefaults||this.currentNumPollOptions>=this.pollEditorInfoWithDefaults.maxPollOptions};
_.Z.computeShowQuestionErrorMessage=function(){return!!this.pollEditorInfoWithDefaults&&this.overQuestionCharacterLimit&&!!this.pollEditorInfoWithDefaults.pollQuestionCharCountErrorText};
_.Z.shouldInitializePollChanged=function(){if(this.shouldInitializePoll)for(var a=0;a<this.pollEditorInfoWithDefaults.minPollOptions;a++)this.addPollOptionData()};
_.Z.getIsValidPoll=function(){var a=this;if(!this.pollEditorInfoWithDefaults)return!1;var z=this.pollEditorInfoWithDefaults,I=z.minPollOptionChars,J=z.maxPollOptionChars,r=z.customOptionPlaceholderText;if(this.pollQuestionCharacterCount>z.maxPollQuestionChars)return!1;z=_.PK(this.hostElement).querySelectorAll("yt-live-chat-poll-editor-input");return Array.from(z).every(function(P,N){P=P.characterCount;!P&&r[N]&&(P=a.ytRendererBehavior.getSimpleString(r[N]).length);return P!==void 0&&P>=I&&P<=J})};
_.Z.isValidPollChanged=function(){var a;_.H((a=this.data)==null?void 0:a.startButton,_.lc)&&this.set("data.startButton.buttonRenderer.isDisabled",!this.isValidPoll)};
_.Z.addPollOptionData=function(){var a=this.pollEditorInfoWithDefaults,z=a.maxPollOptionChars,I=a.optionPlaceholderText,J=a.customOptionPlaceholderText,r=a.pollOptionData;this.currentNumPollOptions>=a.maxPollOptions||(a={liveChatPollOptionInput:{inputData:{placeholder:J[this.currentNumPollOptions]||I,maxCharacterLimit:z},maxCharacterLimit:z,minCharacterLimit:a.minPollOptionChars,hasPrefilledText:!!J[this.currentNumPollOptions],isRemovable:this.currentNumPollOptions>=a.minPollOptions}},r.charCountErrorText&&
(a.liveChatPollOptionInput.charCountErrorText=r.charCountErrorText),r.charsRemainingAltLabel&&(a.liveChatPollOptionInput.charsRemainingAltLabel=r.charsRemainingAltLabel),r.removeOptionAltText&&(a.liveChatPollOptionInput.removeOptionAltText=r.removeOptionAltText),this.push("pollOptionsData",a),r=Array.from(_.PK(_.PK(this.hostElement).querySelector("#poll-options")).children),r.forEach(function(P,N){P.polymerController.set("data.id",N)}),_.PK(r[r.length-1]).querySelector("#input").focus())};
_.Z.getPollOptionInputValues=function(){var a=this,z=[],I=_.PK(this.hostElement).querySelectorAll("yt-live-chat-poll-editor-input"),J=this.get("data.pollEditorInfo.customOptionPlaceholderText")||[];Array.from(I).forEach(function(r,P){var N=null;r=r.getLiveChatRichMessageInput();var u;(r==null?0:(u=r.textSegments)==null?0:u.length)?N=_.LS(r):J[P]&&(N=a.formattedStringToLiveChatRichMessageInput(J[P]));z.push(N)});
return z};
_.Z.requestCreateAndStartPoll=function(a){var z=this.getPollOptionInputValues();if(!z.some(function(J){return!J})){z={optionText:z};
var I=_.PK(_.PK(this.hostElement).querySelector("#poll-question")).firstChild;I&&I.liveChatRichMessageInput&&(z.questionText=_.LS(I.liveChatRichMessageInput));_.N$(this.hostElement,[a,z])}};
_.Z.selectedChanged=function(){if(this.selected){var a=_.PK(_.PK(this.hostElement).querySelector("#start-button")).firstElementChild;if(a){var z;(z=_.PK(a).querySelector("#button")||_.ZL(a).querySelector("button"))==null||z.focus()}}};
_.Z.handleTextInputChanged=function(a){var z;((z=a.target)==null?void 0:z.id)==="poll-question-input"&&(this.pollQuestionCharacterCount=a.detail.characterCount);this.isValidPoll=this.getIsValidPoll()};
_.Z.handleStartButtonAction=function(a){a.detail.actionName==="yt-service-request"&&(a.stopPropagation(),(a=a.detail.args[1])&&this.requestCreateAndStartPoll(a))};
_.Z.handleServiceRequestSent=function(){this.createPollRequestInFlight=!0};
_.Z.handleServiceRequestCompleted=function(a){this.createPollRequestInFlight=!1;(a=a.detail&&a.detail.data)&&a.success&&(_.PA(this.hostElement,"picker-cancelled"),_.ZF(this.hostElement,"yt-live-chat-close-engage-with-audience-editor-panels"))};
_.Z.onCloseClick=function(){_.PA(this.hostElement,"picker-cancelled");_.ZF(this.hostElement,"yt-live-chat-close-engage-with-audience-editor-panels")};
_.Z.onAddOptionButtonClick=function(){this.addPollOptionData();this.isValidPoll=this.getIsValidPoll()};
_.Z.handlePollEditorInputClosed=function(a){var z=this.pollOptionsData.findIndex(function(I){return I.liveChatPollOptionInput.id===a.detail.id});
this.splice("pollOptionsData",z,1);this.isValidPoll=this.getIsValidPoll()};
_.Z.onPickerCancelled=function(){this.reset()};
_.Z.reset=function(){if(this.pollEditorInfoWithDefaults){for(;this.currentNumPollOptions>this.pollEditorInfoWithDefaults.minPollOptions;)this.pop("pollOptionsData");var a=_.PK(_.PK(this.hostElement).querySelector("#poll-question")).firstChild;a&&a.setLiveChatRichMessageInput(null);if(a=_.PK(this.hostElement).querySelectorAll("yt-live-chat-poll-editor-input")){a=_.C(Array.from(a));for(var z=a.next();!z.done;z=a.next())z.value.clearInput()}this.isValidPoll=this.getIsValidPoll()}};
_.Z.formattedStringToLiveChatRichMessageInput=function(a){return a.simpleText?{text_segments:[a.simpleText]}:{text_segments:a.runs}};
_.eH.Object.defineProperties(qw.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(mLP,this.data.pollEditorInfo)}},
shouldInitializePoll:{configurable:!0,enumerable:!0,get:function(){return!!this.pollEditorInfoWithDefaults&&!this.pollOptionsData.length}}});
qw.prototype.onPickerCancelled=qw.prototype.onPickerCancelled;qw.prototype.handlePollEditorInputClosed=qw.prototype.handlePollEditorInputClosed;qw.prototype.handleServiceRequestCompleted=qw.prototype.handleServiceRequestCompleted;qw.prototype.handleServiceRequestSent=qw.prototype.handleServiceRequestSent;qw.prototype.handleTextInputChanged=qw.prototype.handleTextInputChanged;qw.prototype.selectedChanged=qw.prototype.selectedChanged;qw.prototype.isValidPollChanged=qw.prototype.isValidPollChanged;
qw.prototype.shouldInitializePollChanged=qw.prototype.shouldInitializePollChanged;qw.prototype.dataChanged=qw.prototype.dataChanged;_.L([_.Q(_.k.YtRendererBehavior),_.p("design:type",Object)],qw.prototype,"ytRendererBehavior",void 0);_.L([_.Q(_.u4.YtRendererstamperBehavior),_.p("design:type",Object)],qw.prototype,"ytRendererstamperBehavior",void 0);_.L([_.x(),_.p("design:type",Object)],qw.prototype,"data",void 0);_.L([_.x({reflectToAttribute:!0}),_.p("design:type",Object)],qw.prototype,"modern",void 0);
_.L([_.x(),_.p("design:type",Object)],qw.prototype,"closeButtonOverrides",void 0);_.L([_.x(),_.p("design:type",Object)],qw.prototype,"startButtonOverrides",void 0);_.L([_.x(),_.p("design:type",Object)],qw.prototype,"addOptionButtonOverrides",void 0);_.L([_.x({computed:"computeId(data.id)",reflectToAttribute:!0}),_.p("design:type",String)],qw.prototype,"id",void 0);_.L([_.x({value:function(){return[]}}),
_.p("design:type",Array)],qw.prototype,"pollOptionsData",void 0);_.L([_.S("pollEditorInfoWithDefaults"),_.p("design:type",Object),_.p("design:paramtypes",[])],qw.prototype,"pollQuestionData",null);_.L([_.x({value:0}),_.p("design:type",Number)],qw.prototype,"pollQuestionCharacterCount",void 0);_.L([_.S("pollEditorInfoWithDefaults.maxPollQuestionChars","pollQuestionCharacterCount"),_.p("design:type",Object),_.p("design:paramtypes",[])],qw.prototype,"pollQuestionCharactersRemaining",null);
_.L([_.x({reflectToAttribute:!0,computed:"computeOverQuestionCharacterLimit(pollQuestionCharacterCount, pollEditorInfoWithDefaults)"}),_.p("design:type",Boolean)],qw.prototype,"overQuestionCharacterLimit",void 0);_.L([_.S("data.pollEditorInfo"),_.p("design:type",Object),_.p("design:paramtypes",[])],qw.prototype,"pollEditorInfoWithDefaults",null);_.L([_.x({computed:"computeCurrentNumPollOptions(pollOptionsData.splices)",value:0}),_.p("design:type",Number)],qw.prototype,"currentNumPollOptions",void 0);
_.L([_.x({computed:"computeHasMaxNumPollOptions(pollEditorInfoWithDefaults, currentNumPollOptions)",reflectToAttribute:!0}),_.p("design:type",Boolean)],qw.prototype,"hasMaxNumPollOptions",void 0);_.L([_.S("pollEditorInfoWithDefaults","pollOptionsData"),_.p("design:type",Boolean),_.p("design:paramtypes",[])],qw.prototype,"shouldInitializePoll",null);_.L([_.x(),_.p("design:type",Object)],qw.prototype,"isValidPoll",void 0);
_.L([_.x({value:!1,reflectToAttribute:!0}),_.p("design:type",Boolean)],qw.prototype,"createPollRequestInFlight",void 0);_.L([_.x(),_.p("design:type",Object)],qw.prototype,"selected",void 0);_.L([_.x({value:!1,reflectToAttribute:!0,computed:"computeShowQuestionErrorMessage(pollEditorInfoWithDefaults, overQuestionCharacterLimit)"}),_.p("design:type",Boolean)],qw.prototype,"showQuestionErrorMessage",void 0);
_.L([_.O8("data"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],qw.prototype,"dataChanged",null);_.L([_.O8("shouldInitializePoll"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],qw.prototype,"shouldInitializePollChanged",null);_.L([_.O8("isValidPoll"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],qw.prototype,"isValidPollChanged",null);
_.L([_.O8("selected"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],qw.prototype,"selectedChanged",null);_.L([_.gz("yt-live-chat-text-input-field-renderer-character-count-changed"),_.p("design:type",Function),_.p("design:paramtypes",[CustomEvent]),_.p("design:returntype")],qw.prototype,"handleTextInputChanged",null);
_.L([_.gz("yt-service-request-sent"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],qw.prototype,"handleServiceRequestSent",null);_.L([_.gz("yt-service-request-completed"),_.p("design:type",Function),_.p("design:paramtypes",[CustomEvent]),_.p("design:returntype")],qw.prototype,"handleServiceRequestCompleted",null);
_.L([_.gz("yt-live-chat-poll-editor-input-closed"),_.p("design:type",Function),_.p("design:paramtypes",[CustomEvent]),_.p("design:returntype")],qw.prototype,"handlePollEditorInputClosed",null);_.L([_.gz("picker-cancelled"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],qw.prototype,"onPickerCancelled",null);_.L([_.dz({disableElementRegistration:!0,is:"yt-live-chat-poll-editor-panel-renderer",noInjection:!0})],qw);
_.D(qw,"yt-live-chat-poll-editor-panel-renderer",function(){if(w9I===void 0){var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-live-chat-poll-editor-panel-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.yt_live_chat_poll_editor_panel_renderer.yt.live.chat.poll.editor.panel.renderer.css.js--\x3e<div id="panel-header" class="style-scope yt-live-chat-poll-editor-panel-renderer">\n  <yt-icon hidden$="[[!data.headerIcon]]" icon="[[data.headerIcon.iconType]]" class="style-scope yt-live-chat-poll-editor-panel-renderer"></yt-icon>\n  <yt-formatted-string id="panel-title" text="[[data.headerText]]" class="style-scope yt-live-chat-poll-editor-panel-renderer"></yt-formatted-string>\n  <div id="close-button" on-click="onCloseClick" class="style-scope yt-live-chat-poll-editor-panel-renderer"></div>\n</div>\n<div id="panel-contents" class="style-scope yt-live-chat-poll-editor-panel-renderer">\n  <div id="poll-editor" class="style-scope yt-live-chat-poll-editor-panel-renderer">\n    <div id="poll-question" class="style-scope yt-live-chat-poll-editor-panel-renderer"></div>\n    <div id="poll-question-sub-content" class="style-scope yt-live-chat-poll-editor-panel-renderer">\n      <div id="poll-question-error-message" role="alert" class="style-scope yt-live-chat-poll-editor-panel-renderer">\n        [[getSimpleString(pollEditorInfoWithDefaults.pollQuestionCharCountErrorText)]]\n      </div>\n      <div id="poll-question-count" class="style-scope yt-live-chat-poll-editor-panel-renderer">\n        [[pollQuestionCharacterCount]]/[[pollEditorInfoWithDefaults.maxPollQuestionChars]]\n      </div>\n      <div id="poll-question-count-alt-label" aria-live="polite" aria-atomic="true" aria-label$="[[getSimpleString(pollEditorInfoWithDefaults.pollOptionData.pollQuestionCharsRemainingAltLabel)]]" class="style-scope yt-live-chat-poll-editor-panel-renderer">\n        [[pollQuestionCharactersRemaining]]\n      </div>\n    </div>\n    <div id="poll-options" class="style-scope yt-live-chat-poll-editor-panel-renderer"></div>\n    <div id="add-option-button" hidden$="[[hasMaxNumPollOptions]]" on-click="onAddOptionButtonClick" class="style-scope yt-live-chat-poll-editor-panel-renderer">\n    </div>\n  </div>\n  <div id="start-button" on-yt-action="handleStartButtonAction" class="style-scope yt-live-chat-poll-editor-panel-renderer"></div>\n</div>\n<div id="spinner-container" hidden$="[[!createPollRequestInFlight]]" class="style-scope yt-live-chat-poll-editor-panel-renderer">\n  <tp-yt-paper-spinner-lite id="spinner" active="[[createPollRequestInFlight]]" class="style-scope yt-live-chat-poll-editor-panel-renderer"></tp-yt-paper-spinner-lite>\n</div>\n');
a.content.insertBefore(_.w().content.cloneNode(!0),a.content.firstChild);var z=a.content,I=z.insertBefore;p9j===void 0&&(p9j=document.createElement("template"));var J=p9j;I.call(z,J.content.cloneNode(!0),a.content.firstChild);w9I=a}a=w9I;return a},{mode:_.K("live_chat_enable_sink_wrapper")?2:0});var yxG;var kNI;var e2=function(){return _.G.apply(this,arguments)||this};
_.b(e2,_.G);e2.prototype.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","menuitem");this.hostElement.hasAttribute("tabindex")||this.hostElement.setAttribute("tabindex","-1")};
e2.prototype.onClick=function(){this.data&&this.ytRendererBehavior.logExplicitClick(this.data)};
_.eH.Object.defineProperties(e2.prototype,{itemId:{configurable:!0,enumerable:!0,get:function(){var a,z;return(a=this.data)==null?void 0:(z=a.title)==null?void 0:z.content}},
hasPromotion:{configurable:!0,enumerable:!0,get:function(){var a;return!((a=this.data)==null||!a.hasBlueDot)}},
innertubeCommand:{configurable:!0,enumerable:!0,get:function(){var a;return _.o0((a=this.data)==null?void 0:a.onTapCommand)}}});
_.L([_.Q(_.FW.YtEndpointBehavior),_.p("design:type",Object)],e2.prototype,"ytEndpointBehavior",void 0);_.L([_.Q(_.k.YtRendererBehavior),_.p("design:type",Object)],e2.prototype,"ytRendererBehavior",void 0);_.L([_.x(),_.p("design:type",Object)],e2.prototype,"data",void 0);_.L([_.x({reflectToAttribute:!0}),_.S("data"),_.p("design:type",Object),_.p("design:paramtypes",[])],e2.prototype,"itemId",null);
_.L([_.x({reflectToAttribute:!0}),_.S("data"),_.p("design:type",Boolean),_.p("design:paramtypes",[])],e2.prototype,"hasPromotion",null);_.L([_.S("data"),_.p("design:type",Object),_.p("design:paramtypes",[])],e2.prototype,"innertubeCommand",null);_.L([_.dz({disableElementRegistration:!0,is:"yt-live-chat-product-picker-panel-item-view-model",noInjection:!0})],e2);
_.D(e2,"yt-live-chat-product-picker-panel-item-view-model",function(){if(kNI===void 0){var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-live-chat-product-picker-panel-item-view-model--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.yt_live_chat_product_picker_panel_item_view_model.yt.live.chat.product.picker.panel.item.view.model.css.js--\x3e<a id="endpoint" class="yt-simple-endpoint style-scope yt-live-chat-product-picker-panel-item-view-model" data="[[innertubeCommand]]">\n  <tp-yt-paper-item id="container" on-click="onClick" class="style-scope yt-live-chat-product-picker-panel-item-view-model">\n    \n    <div id="image-container" class="style-scope yt-live-chat-product-picker-panel-item-view-model">\n      <yt-image id="image" alt="product_animation" data="[[data.productImage.themedImageViewModel.imageLight]]" height="54" preserve-height="" preserve-width="" width="54" class="style-scope yt-live-chat-product-picker-panel-item-view-model"></yt-image>\n      <span id="dot" class="style-scope yt-live-chat-product-picker-panel-item-view-model"></span>\n    </div>\n    <div id="text" class="style-scope yt-live-chat-product-picker-panel-item-view-model">\n      <yt-attributed-string id="title" data="[[data.title]]" class="style-scope yt-live-chat-product-picker-panel-item-view-model"></yt-attributed-string>\n      <yt-attributed-string id="description" data="[[data.description]]" class="style-scope yt-live-chat-product-picker-panel-item-view-model"></yt-attributed-string>\n    </div>\n    <yt-icon id="icon" icon="CHEVRON_RIGHT" class="style-scope yt-live-chat-product-picker-panel-item-view-model"></yt-icon>\n  </tp-yt-paper-item>\n</a>');a.content.insertBefore(_.w().content.cloneNode(!0),
a.content.firstChild);var z=a.content,I=z.insertBefore;yxG===void 0&&(yxG=document.createElement("template"));var J=yxG;I.call(z,J.content.cloneNode(!0),a.content.firstChild);kNI=a}a=kNI;return a},{mode:_.K("live_chat_enable_sink_wrapper")?2:0});var Mut;var cx7;var aB=function(){var a=_.G.apply(this,arguments)||this;a.id="product-picker";a.selected=!1;a.closeButtonId="close-button";a.actionMap={"yt-live-chat-close-buy-flow":"onCloseBuyFlow","yt-live-chat-close-engage-with-audience-editor-panels":"onCloseEngageWithAudienceEditorPanels"};return a};
_.b(aB,_.G);_.Z=aB.prototype;_.Z.configureRendererStamper=function(){return{"data.items":{id:"items",mapping:{liveChatProductPickerPanelItemViewModel:"yt-live-chat-product-picker-panel-item-view-model"}}}};
_.Z.observeSelected=function(){this.selected&&this.hostElement.focus();var a=_.PK(this.hostElement).querySelectorAll("yt-live-chat-product-picker-panel-item-view-model");a.length&&a[0].focus()};
_.Z.onCloseBuyFlow=function(){_.PA(this.hostElement,"picker-cancelled")};
_.Z.onCloseClick=function(){_.PA(this.hostElement,"picker-cancelled");var a;((a=this.data)==null?0:a.closeButton)&&this.ytRendererBehavior.logExplicitClick(_.H(this.data.closeButton,_.yw))};
_.Z.onCloseEngageWithAudienceEditorPanels=function(){_.PA(this.hostElement,"picker-cancelled")};
aB.prototype.observeSelected=aB.prototype.observeSelected;_.L([_.Q(_.Hc.YtActionHandlerBehavior),_.p("design:type",Object)],aB.prototype,"ytActionHandlerBehavior",void 0);_.L([_.Q(_.k.YtRendererBehavior),_.p("design:type",Object)],aB.prototype,"ytRendererBehavior",void 0);_.L([_.Q(_.u4.YtRendererstamperBehavior),_.p("design:type",Object)],aB.prototype,"ytRendererstamperBehavior",void 0);_.L([_.x(),_.p("design:type",Object)],aB.prototype,"data",void 0);
_.L([_.x({reflectToAttribute:!0}),_.p("design:type",Object)],aB.prototype,"id",void 0);_.L([_.x({reflectToAttribute:!0}),_.p("design:type",Object)],aB.prototype,"selected",void 0);_.L([_.x(),_.p("design:type",Object)],aB.prototype,"closeButtonId",void 0);_.L([_.O8("selected"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],aB.prototype,"observeSelected",null);
_.L([_.dz({disableElementRegistration:!0,is:"yt-live-chat-product-picker-panel-view-model",noInjection:!0})],aB);
_.D(aB,"yt-live-chat-product-picker-panel-view-model",function(){if(cx7===void 0){var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-live-chat-product-picker-panel-view-model--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.yt_live_chat_product_picker_panel_view_model.yt.live.chat.product.picker.panel.view.model.css.js--\x3e<div id="header" class="style-scope yt-live-chat-product-picker-panel-view-model">\n  <yt-attributed-string id="title" data="[[data.title]]" ellipsis-truncate="true" no-pre-wrap="true" class="style-scope yt-live-chat-product-picker-panel-view-model"></yt-attributed-string>\n  <yt-button-view-model id="[[closeButtonId]]" data="[[data.closeButton.buttonViewModel]]" scoping-class-name="[[is]]" on-click="onCloseClick" class="style-scope yt-live-chat-product-picker-panel-view-model">\n  </yt-button-view-model>\n</div>\n<div id="items" class="style-scope yt-live-chat-product-picker-panel-view-model"></div>');a.content.insertBefore(_.w().content.cloneNode(!0),
a.content.firstChild);var z=a.content,I=z.insertBefore;Mut===void 0&&(Mut=document.createElement("template"));var J=Mut;I.call(z,J.content.cloneNode(!0),a.content.firstChild);cx7=a}a=cx7;return a},{mode:_.K("live_chat_enable_sink_wrapper")?2:0});var Yau;var qau;var jC=function(){var a=_.G.apply(this,arguments)||this;a.iconId="";a.icon="";a.disabled=!1;a.systemIcons=_.K("kevlar_system_icons");return a};
_.b(jC,_.G);_.Z=jC.prototype;_.Z.computeIconId=function(a){return a&&a.icon&&a.icon.iconType?a.icon.iconType.toLowerCase():""};
_.Z.computeIcon=function(a){return a&&a.icon&&a.icon.iconType?(a=a.icon.iconType.toLowerCase(),(a.toLowerCase()=="gift"?"yt-sys-icons":"yt-icons")+":"+a):""};
_.Z.computeDisabled=function(a){return!!a};
_.Z.computeCommand=function(a,z){return z?void 0:a};
_.Z.computeTooltip=function(a,z){return z&&a?a:""};
_.Z.onClick=function(){this.data&&!this.disabled&&this.ytRendererBehavior.logExplicitClick(this.data)};
_.eH.Object.defineProperties(jC.prototype,{ariaLabel:{configurable:!0,enumerable:!0,get:function(){var a="",z,I,J;if((z=this.data)==null?0:(I=z.text)==null?0:(J=I.runs)==null?0:J.length)a=this.data.text.runs[0].text||"";else{var r,P;if((r=this.data)==null?0:(P=r.text)==null?0:P.simpleText)a=this.data.text.simpleText}var N,u,E;if((N=this.data)==null?0:(u=N.subtext)==null?0:(E=u.runs)==null?0:E.length)a&&(a+=". "),a+=this.data.subtext.runs[0].text||"";else{var O,f;if((O=this.data)==null?0:(f=O.subtext)==
null?0:f.simpleText)a&&(a+=". "),a+=this.data.subtext.simpleText}return a}}});
_.L([_.Q(_.FW.YtEndpointBehavior),_.p("design:type",Object)],jC.prototype,"ytEndpointBehavior",void 0);_.L([_.Q(_.k.YtRendererBehavior),_.p("design:type",Object)],jC.prototype,"ytRendererBehavior",void 0);_.L([_.x(),_.p("design:type",Object)],jC.prototype,"data",void 0);_.L([_.x({computed:"computeIconId(data)",reflectToAttribute:!0}),_.p("design:type",Object)],jC.prototype,"iconId",void 0);
_.L([_.x({computed:"computeIcon(data)",reflectToAttribute:!0}),_.p("design:type",Object)],jC.prototype,"icon",void 0);_.L([_.x({computed:"computeDisabled(data.isDisabled)",reflectToAttribute:!0}),_.p("design:type",Object)],jC.prototype,"disabled",void 0);_.L([_.x({computed:"computeCommand(data.command, disabled)"}),_.p("design:type",Object)],jC.prototype,"command",void 0);_.L([_.x({computed:"computeTooltip(data.disabledTooltip, disabled)"}),_.p("design:type",String)],jC.prototype,"tooltip",void 0);
_.L([_.x({reflectToAttribute:!0}),_.p("design:type",Object)],jC.prototype,"systemIcons",void 0);_.L([_.S("data.text","data.subtext"),_.x(),_.p("design:type",String),_.p("design:paramtypes",[])],jC.prototype,"ariaLabel",null);_.L([_.dz({disableElementRegistration:!0,is:"yt-live-chat-product-button-renderer",noInjection:!0})],jC);
_.D(jC,"yt-live-chat-product-button-renderer",function(){if(qau===void 0){var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-live-chat-product-button-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.yt_live_chat_product_button_renderer.yt.live.chat.product.button.renderer.css.js--\x3e<a id="endpoint" class="yt-simple-endpoint style-scope yt-live-chat-product-button-renderer" data="[[command]]" title$="[[tooltip]]">\n  <tp-yt-paper-item id="container" aria-label$="[[ariaLabel]]" disabled$="[[disabled]]" role="menuitem" on-click="onClick" class="style-scope yt-live-chat-product-button-renderer">\n    <div id="icon" class="style-scope yt-live-chat-product-button-renderer">\n      <yt-icon icon="[[icon]]" class="style-scope yt-live-chat-product-button-renderer"></yt-icon>\n      <span hidden="[[!data.iconBadgeText]]" id="icon-badge-text" class="style-scope yt-live-chat-product-button-renderer">[[data.iconBadgeText]]</span>\n    </div>\n    <div id="text" class="style-scope yt-live-chat-product-button-renderer">\n      <yt-formatted-string text="[[data.text]]" class="style-scope yt-live-chat-product-button-renderer"></yt-formatted-string>\n      <div id="subtext" class="style-scope yt-live-chat-product-button-renderer">\n        <yt-formatted-string text="[[data.subtext]]" class="style-scope yt-live-chat-product-button-renderer"></yt-formatted-string>\n      </div>\n    </div>\n  </tp-yt-paper-item>\n</a>\n');a.content.insertBefore(_.w().content.cloneNode(!0),
a.content.firstChild);var z=a.content,I=z.insertBefore;Yau===void 0&&(Yau=document.createElement("template"));var J=Yau;I.call(z,J.content.cloneNode(!0),a.content.firstChild);qau=a}a=qau;return a},{mode:_.K("live_chat_enable_sink_wrapper")?2:0});var e7N;var aI9;var zR=function(){var a=_.G.apply(this,arguments)||this;a.selected=!1;a.actionMap={"yt-live-chat-close-buy-flow":"onCloseBuyFlow","yt-live-chat-close-engage-with-audience-editor-panels":"onCloseEngageWithAudienceEditorPanels","yt-signal-action-close-engage-with-audience-editor-panel":"onCloseEngageWithAudienceEditorPanels"};return a};
_.b(zR,_.G);_.Z=zR.prototype;_.Z.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"}}}};
_.Z.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","menu");this.hostElement.hasAttribute("tabindex")||this.hostElement.setAttribute("tabindex","0")};
_.Z.computeId=function(a){return a.id||""};
_.Z.onCloseClick=function(){_.PA(this.hostElement,"picker-cancelled")};
_.Z.observeSelected=function(){this.selected&&this.hostElement.focus();var a=this.hostElement.querySelectorAll("yt-live-chat-product-button-renderer");a.length&&a[0].focus()};
_.Z.onCloseBuyFlow=function(){_.PA(this.hostElement,"picker-cancelled")};
_.Z.onCloseEngageWithAudienceEditorPanels=function(){_.PA(this.hostElement,"picker-cancelled")};
zR.prototype.observeSelected=zR.prototype.observeSelected;_.L([_.Q(_.Hc.YtActionHandlerBehavior),_.p("design:type",Object)],zR.prototype,"ytActionHandlerBehavior",void 0);_.L([_.Q(_.k.YtRendererBehavior),_.p("design:type",Object)],zR.prototype,"ytRendererBehavior",void 0);_.L([_.Q(_.u4.YtRendererstamperBehavior),_.p("design:type",Object)],zR.prototype,"ytRendererstamperBehavior",void 0);_.L([_.x(),_.p("design:type",Object)],zR.prototype,"data",void 0);
_.L([_.x({computed:"computeId(data)",reflectToAttribute:!0}),_.p("design:type",String)],zR.prototype,"id",void 0);_.L([_.x({reflectToAttribute:!0}),_.p("design:type",Object)],zR.prototype,"selected",void 0);_.L([_.O8("selected"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],zR.prototype,"observeSelected",null);_.L([_.dz({disableElementRegistration:!0,is:"yt-live-chat-product-picker-renderer",noInjection:!0})],zR);
_.D(zR,"yt-live-chat-product-picker-renderer",function(){if(aI9===void 0){var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-live-chat-product-picker-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.yt_live_chat_product_picker_renderer.yt.live.chat.product.picker.renderer.css.js--\x3e<yt-formatted-string id="title" text="[[data.productPickerHeaderTitle]]" class="style-scope yt-live-chat-product-picker-renderer"> </yt-formatted-string>\n<div id="buttons" class="style-scope yt-live-chat-product-picker-renderer"></div>\n<div id="close-button" on-click="onCloseClick" class="style-scope yt-live-chat-product-picker-renderer"></div>\n');
a.content.insertBefore(_.w().content.cloneNode(!0),a.content.firstChild);var z=a.content,I=z.insertBefore;e7N===void 0&&(e7N=document.createElement("template"));var J=e7N;I.call(z,J.content.cloneNode(!0),a.content.firstChild);aI9=a}a=aI9;return a},{mode:_.K("live_chat_enable_sink_wrapper")?2:0});var jl4;var zEN;var IIN;var JyL;var IB=function(){return _.G.apply(this,arguments)||this};
_.b(IB,_.G);IB.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()};
IB.prototype.computeUseRegularBackground=function(){return!this.useLargeBackground&&!this.useAnimationBackground};
IB.prototype.created=function(){this.ids={background:_.kn(),maskOne:_.kn(),maskTwo:_.kn(),gradient:_.kn(),largeBackground:_.kn(),largeGradientOne:_.kn(),largeGradientTwo:_.kn(),largeGradientPath:_.kn()}};
IB.prototype.maybeLoadAnimationBackground=IB.prototype.maybeLoadAnimationBackground;_.L([_.x({value:!1}),_.p("design:type",Boolean)],IB.prototype,"useLargeBackground",void 0);_.L([_.x({value:!1}),_.p("design:type",Boolean)],IB.prototype,"useAnimationBackground",void 0);_.L([_.x({value:!0,computed:"computeUseRegularBackground(useLargeBackground, useAnimationBackground)"}),_.p("design:type",Boolean)],IB.prototype,"useRegularBackground",void 0);
_.L([_.x(),_.p("design:type",Object)],IB.prototype,"ids",void 0);_.L([_.x(),_.p("design:type",Object)],IB.prototype,"lottieAnimation",void 0);_.L([_.A3("#animation-background"),_.p("design:type",HTMLDivElement)],IB.prototype,"animationBackground",void 0);_.L([_.O8("useAnimationBackground"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],IB.prototype,"maybeLoadAnimationBackground",null);
_.L([_.dz({disableElementRegistration:!0,is:"yt-live-interactivity-component-background",noInjection:!0})],IB);
_.D(IB,"yt-live-interactivity-component-background",function(){if(JyL===void 0){var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-live-interactivity-component-background--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.yt_live_interactivity_component_background.yt.live.interactivity.component.background.css.js--\x3e<svg id$="[[ids.background]]" hidden$="[[!useRegularBackground]]" width="100%" height="280" viewBox="2 45 400 280" preserveAspectRatio="xMinYMin slice" class="style-scope yt-live-interactivity-component-background">\n  <defs class="style-scope yt-live-interactivity-component-background">\n    <mask id$="[[ids.maskOne]]" width="611" height="468" x="1" y="-117" maskUnits="userSpaceOnUse" class="style-scope yt-live-interactivity-component-background">\n      <g class="style-scope yt-live-interactivity-component-background">\n        <rect width="500" height="350" x="1" y="1" style="fill:#fff" rx="4" class="style-scope yt-live-interactivity-component-background"></rect>\n      </g>\n    </mask>\n    <mask id$="[[ids.maskTwo]]" width="505" height="439" x="-4" y="-10" maskUnits="userSpaceOnUse" class="style-scope yt-live-interactivity-component-background">\n      <g class="style-scope yt-live-interactivity-component-background">\n        <rect width="500" height="350" x="1" y="1" style="fill:#fff" rx="4" class="style-scope yt-live-interactivity-component-background"></rect>\n      </g>\n    </mask>\n    <linearGradient id$="[[ids.gradient]]" x1="-53.35" x2="-54.44" y1="572.174" y2="571.817" gradientTransform="matrix(439 0 0 -439 23648 251318)" gradientUnits="userSpaceOnUse" class="style-scope yt-live-interactivity-component-background">\n      <stop offset="0" stop-color="#1d3863" class="style-scope yt-live-interactivity-component-background"></stop>\n      <stop class="gradient-stop style-scope yt-live-interactivity-component-background" offset="1"></stop>\n    </linearGradient>\n  </defs>\n  <g class="style-scope yt-live-interactivity-component-background">\n    <g class="style-scope yt-live-interactivity-component-background">\n      <rect width="500" height="350" x="1" y="1" fill="#224072" stroke="#000" stroke-opacity=".15" rx="4" class="style-scope yt-live-interactivity-component-background"></rect>\n      <g mask$="url(#[[ids.maskOne]])" class="style-scope yt-live-interactivity-component-background">\n        <path fill="#1a3259" fill-rule="evenodd" d="M612-117v420L192 92.998 611.99-117h.01z" opacity=".8" class="style-scope yt-live-interactivity-component-background"></path>\n      </g>\n      <g mask$="url(#[[ids.maskTwo]])" class="style-scope yt-live-interactivity-component-background">\n        <path fill$="url(#[[ids.gradient]])" fill-rule="evenodd" d="M-4-10v439l439-219.502L-3.989-10H-4z" opacity=".9" class="style-scope yt-live-interactivity-component-background"></path>\n      </g>\n    </g>\n  </g>\n</svg>\n<svg id$="[[ids.largeBackground]]" hidden$="[[!useLargeBackground]]" height="350" width="100%" viewBox="60 40 428 300" preserveAspectRatio="xMinYMin slice" class="style-scope yt-live-interactivity-component-background">\n  <defs class="style-scope yt-live-interactivity-component-background">\n    <linearGradient id$="[[ids.largeGradientOne]]" x1="104.432%" x2="10.997%" y1="62.466%" y2="44.799%" class="style-scope yt-live-interactivity-component-background">\n      <stop offset="0%" stop-color="#274C8A" class="style-scope yt-live-interactivity-component-background"></stop>\n      <stop offset="100%" stop-color="#1A3259" class="style-scope yt-live-interactivity-component-background"></stop>\n    </linearGradient>\n    <linearGradient id$="[[ids.largeGradientTwo]]" x1="53.199%" x2="-55.854%" y1="34.226%" y2="69.901%" class="style-scope yt-live-interactivity-component-background">\n      <stop offset="0%" stop-color="#284F8F" class="style-scope yt-live-interactivity-component-background"></stop>\n      <stop offset="100%" stop-color="#234275" class="style-scope yt-live-interactivity-component-background"></stop>\n    </linearGradient>\n    <path id$="[[ids.largeGradientPath]]" d="M0 3.991A3.994 3.994 0 014.006 0h491.988C498.206 0 500 1.8 500 3.991v342.018a3.994 3.994 0 01-4.006 3.991H4.006C1.794 350 0 348.2 0 346.009V3.991z" class="style-scope yt-live-interactivity-component-background"></path>\n  </defs>\n  <g fill="none" fill-rule="evenodd" class="style-scope yt-live-interactivity-component-background">\n    <mask id$="[[ids.maskTwo]]" fill="#fff" class="style-scope yt-live-interactivity-component-background">\n      <use href$="#[[ids.largeGradientPath]]" class="style-scope yt-live-interactivity-component-background"></use>\n    </mask>\n    <use fill="#224175" href$="#[[ids.largeGradientPath]]" class="style-scope yt-live-interactivity-component-background"></use>\n    <path fill$="url(#[[ids.largeGradientOne]])" d="M264-120v420L684 89.998 264.011-120z" mask="url(#[[ids.maskTwo]])" transform="matrix(-1 0 0 1 948 0)" class="style-scope yt-live-interactivity-component-background"></path>\n    <path fill$="url(#[[ids.largeGradientTwo]])" d="M-80-81v507l507-253.503L-79.987-81z" mask="url(#[[ids.maskTwo]])" opacity=".9" class="style-scope yt-live-interactivity-component-background"></path>\n  </g>\n</svg>\n<div id="animation-background" height="350" width="100%" hidden$="[[!useAnimationBackground]]" class="style-scope yt-live-interactivity-component-background"></div>\n');a.content.insertBefore(_.w().content.cloneNode(!0),
a.content.firstChild);var z=a.content,I=z.insertBefore;IIN===void 0&&(IIN=document.createElement("template"));var J=IIN;I.call(z,J.content.cloneNode(!0),a.content.firstChild);JyL=a}a=JyL;return a},{mode:_.K("live_chat_enable_sink_wrapper")?2:0});var Jw=function(){var a=_.G.apply(this,arguments)||this;a.characterCount=0;a.showInputErrorMessage=!1;a.startQnaRequestInFlight=!1;a.modern=_.K("web_button_rework_with_live");a.buttonOverrides={style:"mono",type:"filled"};a.closeButtonOverrides={iconPosition:"icon-only"};a.actionMap={"yt-live-chat-open-qna-start-panel":"handleOpenQnaStartPanel"};return a};
_.b(Jw,_.G);_.Z=Jw.prototype;
_.Z.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]]"}}}}}};
_.Z.onCharacterCountChanged=function(a){var z,I,J,r,P=(I=_.H(this==null?void 0:(z=this.data)==null?void 0:z.creatorCallForQuestions,d0N))==null?void 0:(J=I.inputField)==null?void 0:(r=J.liveChatTextInputFieldRenderer)==null?void 0:r.maxCharacterLimit,N,u;P!=null&&(a==null?void 0:(N=a.detail)==null?void 0:N.characterCount)!=null&&_.H(this==null?void 0:(u=this.data)==null?void 0:u.startButton,_.lc)&&(z=a.detail.characterCount>P,this.set("data.startButton.buttonRenderer.isDisabled",a.detail.characterCount===
0||z),this.showInputErrorMessage=z)};
_.Z.onCloseClick=function(){_.PA(this.hostElement,"picker-cancelled");_.ZF(this.hostElement,"yt-live-chat-close-engage-with-audience-editor-panels")};
_.Z.onPickerCancelled=function(){var a=_.PK(this.hostElement).querySelector("#qna-creator-text-input-field");a&&a.setLiveChatRichMessageInput(null)};
_.Z.handleOpenQnaStartPanel=function(){var a=_.PK(this.hostElement).querySelector("#qna-creator-text-input-field");a&&a.focus()};
_.Z.handleStartButtonAction=function(a){var z=this;if(a.detail.actionName==="yt-service-request"&&(a.stopPropagation(),a=a.detail.args[1])){var I=_.PK(this.hostElement).querySelector("#qna-creator-text-input-field"),J;(I==null?0:(J=I.liveChatRichMessageInput)==null?0:J.textSegments)&&I.liveChatRichMessageInput.textSegments.length!==0&&(J={rich_message:_.LS(I.liveChatRichMessageInput)},_.N$(this.hostElement,[a,J]).then(function(){_.PA(z.hostElement,"picker-cancelled")}))}};
_.Z.handleServiceRequestSent=function(){this.startQnaRequestInFlight=!0};
_.Z.handleServiceRequestCompleted=function(a){var z;a=a==null?void 0:(z=a.detail)==null?void 0:z.data;(a==null?0:a.actions)&&a.actions.length>0?this.startQnaRequestInFlight=!1:_.ZF(this.hostElement,"yt-live-chat-close-engage-with-audience-editor-panels")};
_.Z.handleServiceRequestError=function(){this.startQnaRequestInFlight=!1};
Jw.prototype.handleServiceRequestError=Jw.prototype.handleServiceRequestError;Jw.prototype.handleServiceRequestCompleted=Jw.prototype.handleServiceRequestCompleted;Jw.prototype.handleServiceRequestSent=Jw.prototype.handleServiceRequestSent;Jw.prototype.onPickerCancelled=Jw.prototype.onPickerCancelled;Jw.prototype.onCharacterCountChanged=Jw.prototype.onCharacterCountChanged;_.L([_.x(),_.p("design:type",Object)],Jw.prototype,"characterCount",void 0);
_.L([_.x(),_.p("design:type",Object)],Jw.prototype,"data",void 0);_.L([_.x({reflectToAttribute:!0}),_.p("design:type",Object)],Jw.prototype,"showInputErrorMessage",void 0);_.L([_.x({reflectToAttribute:!0}),_.p("design:type",Object)],Jw.prototype,"startQnaRequestInFlight",void 0);_.L([_.x({reflectToAttribute:!0}),_.p("design:type",Object)],Jw.prototype,"modern",void 0);_.L([_.x(),_.p("design:type",Object)],Jw.prototype,"buttonOverrides",void 0);
_.L([_.x(),_.p("design:type",Object)],Jw.prototype,"closeButtonOverrides",void 0);_.L([_.Q(_.u4.YtRendererstamperBehavior),_.p("design:type",Object)],Jw.prototype,"ytRendererstamperBehavior",void 0);_.L([_.Q(_.yb),_.p("design:type",Object)],Jw.prototype,"ytLiveChatReduxBehavior",void 0);_.L([_.Q(_.cc.YtLiveChatItemBehavior),_.p("design:type",_.Yu)],Jw.prototype,"ytLiveChatItemBehavior",void 0);
_.L([_.Q(_.Hc.YtActionHandlerBehavior),_.p("design:type",Object)],Jw.prototype,"ytActionHandlerBehavior",void 0);_.L([_.gz("yt-live-chat-text-input-field-renderer-character-count-changed"),_.p("design:type",Function),_.p("design:paramtypes",[CustomEvent]),_.p("design:returntype")],Jw.prototype,"onCharacterCountChanged",null);_.L([_.gz("picker-cancelled"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],Jw.prototype,"onPickerCancelled",null);
_.L([_.gz("yt-service-request-sent"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],Jw.prototype,"handleServiceRequestSent",null);_.L([_.gz("yt-service-request-completed"),_.p("design:type",Function),_.p("design:paramtypes",[CustomEvent]),_.p("design:returntype")],Jw.prototype,"handleServiceRequestCompleted",null);
_.L([_.gz("yt-service-request-error"),_.p("design:type",Function),_.p("design:paramtypes",[CustomEvent]),_.p("design:returntype")],Jw.prototype,"handleServiceRequestError",null);_.L([_.U({disableElementRegistration:!0,is:"yt-live-chat-qna-start-panel-renderer"})],Jw);
_.D(Jw,"yt-live-chat-qna-start-panel-renderer",function(){if(zEN===void 0){var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-live-chat-qna-start-panel-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.yt_live_chat_qna_start_panel_renderer.yt.live.chat.qna.start.panel.renderer.css.js--\x3e<div id="panel-header" class="style-scope yt-live-chat-qna-start-panel-renderer">\n  <yt-icon aria-hidden="true" hidden$="[[!data.headerIcon]]" icon="[[data.headerIcon.iconType]]" class="style-scope yt-live-chat-qna-start-panel-renderer"></yt-icon>\n  <yt-formatted-string id="panel-title" text="[[data.headerText]]" class="style-scope yt-live-chat-qna-start-panel-renderer"></yt-formatted-string>\n  <div id="close-button" on-click="onCloseClick" class="style-scope yt-live-chat-qna-start-panel-renderer"></div>\n</div>\n<div id="panel-contents" class="style-scope yt-live-chat-qna-start-panel-renderer">\n  <div id="call_for_questions_banner" class="style-scope yt-live-chat-qna-start-panel-renderer">\n    <div id="banner-content" class="style-scope yt-live-chat-qna-start-panel-renderer">\n      <div id="banner-content-top" class="style-scope yt-live-chat-qna-start-panel-renderer">\n        <yt-img-shadow id="creator-avatar" height="24" hidden$="[[!data.creatorCallForQuestions.liveChatCallForQuestionsRenderer.creatorAvatar]]" thumbnail="[[data.creatorCallForQuestions.liveChatCallForQuestionsRenderer.creatorAvatar]]" width="24" class="style-scope yt-live-chat-qna-start-panel-renderer">\n        </yt-img-shadow>\n\n        <div id="metadata-text" class="style-scope yt-live-chat-qna-start-panel-renderer">\n          <yt-formatted-string id="author-name" text="[[data.creatorCallForQuestions.liveChatCallForQuestionsRenderer.creatorAuthorName]]" class="style-scope yt-live-chat-qna-start-panel-renderer">\n          </yt-formatted-string>\n\n          <yt-formatted-string id="separator-collapsed" text="[[data.creatorCallForQuestions.liveChatCallForQuestionsRenderer.contentSeparator]]" class="style-scope yt-live-chat-qna-start-panel-renderer">\n          </yt-formatted-string>\n\n          <yt-formatted-string id="feature-label" text="[[data.creatorCallForQuestions.liveChatCallForQuestionsRenderer.featureLabel]]" class="style-scope yt-live-chat-qna-start-panel-renderer">\n          </yt-formatted-string>\n        </div>\n        <div id="menu" on-click="onContextMenuButtonClick" class="style-scope yt-live-chat-qna-start-panel-renderer"></div>\n      </div>\n\n      <div id="banner-main-content" class="style-scope yt-live-chat-qna-start-panel-renderer">\n        <div id="input-container" class="style-scope yt-live-chat-qna-start-panel-renderer">\n          <template is="dom-if" if="[[data.creatorCallForQuestions.liveChatCallForQuestionsRenderer.inputField]]" class="style-scope yt-live-chat-qna-start-panel-renderer">\n            <yt-live-chat-text-input-field-renderer id="qna-creator-text-input-field" character-count="{{characterCount}}" data="[[data.creatorCallForQuestions.liveChatCallForQuestionsRenderer.inputField.liveChatTextInputFieldRenderer]]" hidden$="[[!data.creatorCallForQuestions.liveChatCallForQuestionsRenderer.inputField]]" ignore-color-mapping="" class="style-scope yt-live-chat-qna-start-panel-renderer">\n            </yt-live-chat-text-input-field-renderer>\n          </template>\n        </div>\n        <div id="input-sub-content" class="style-scope yt-live-chat-qna-start-panel-renderer">\n          <div id="qna-error-message" role="alert" class="style-scope yt-live-chat-qna-start-panel-renderer">[[getSimpleString(data.characterLimitErrorMessage)]]</div>\n          <div id="qna-character-count" class="style-scope yt-live-chat-qna-start-panel-renderer">[[characterCount]]/[[data.creatorCallForQuestions.liveChatCallForQuestionsRenderer.inputField.liveChatTextInputFieldRenderer.maxCharacterLimit]]</div>\n        </div>\n      </div>\n    </div>\n  </div>\n  <div id="start-button" on-yt-action="handleStartButtonAction" class="style-scope yt-live-chat-qna-start-panel-renderer"></div>\n</div>\n<div id="spinner-container" hidden$="[[!startQnaRequestInFlight]]" class="style-scope yt-live-chat-qna-start-panel-renderer">\n  <tp-yt-paper-spinner-lite id="spinner" active="[[startQnaRequestInFlight]]" class="style-scope yt-live-chat-qna-start-panel-renderer"></tp-yt-paper-spinner-lite>\n</div>');a.content.insertBefore(_.w().content.cloneNode(!0),
a.content.firstChild);var z=a.content,I=z.insertBefore;jl4===void 0&&(jl4=document.createElement("template"));var J=jl4;I.call(z,J.content.cloneNode(!0),a.content.firstChild);zEN=a}a=zEN;return a},{mode:_.K("live_chat_enable_sink_wrapper")?2:0});var ryt;var PhI;var rp=function(){return _.G.apply(this,arguments)||this};
_.b(rp,_.G);rp.prototype.dismiss=function(){_.PA(this.hostElement,"yt-live-chat-error-message-dismiss")};
rp.prototype.edit=function(){_.PA(this.hostElement,"yt-live-chat-error-message-edit",this.data.originalRichMessage)};
_.L([_.x(),_.p("design:type",Object)],rp.prototype,"data",void 0);_.L([_.dz({disableElementRegistration:!0,is:"yt-live-chat-text-actions-error-message-renderer",noInjection:!0})],rp);
_.D(rp,"yt-live-chat-text-actions-error-message-renderer",function(){if(PhI===void 0){var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-live-chat-text-actions-error-message-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.yt_live_chat_text_actions_error_message_renderer.yt.live.chat.text.actions.error.message.renderer.css.js--\x3e<yt-icon-button on-click="dismiss" class="style-scope yt-live-chat-text-actions-error-message-renderer">\n  <yt-icon icon="close" class="style-scope yt-live-chat-text-actions-error-message-renderer"></yt-icon>\n</yt-icon-button>\n<div id="error-text" class="style-scope yt-live-chat-text-actions-error-message-renderer">\n  <yt-formatted-string text="[[data.errorText]]" class="style-scope yt-live-chat-text-actions-error-message-renderer"></yt-formatted-string>\n  <button id="edit" on-click="edit" class="style-scope yt-live-chat-text-actions-error-message-renderer">\n    <yt-formatted-string text="[[data.editMessageText]]" class="style-scope yt-live-chat-text-actions-error-message-renderer"></yt-formatted-string>\n  </button>\n</div>\n');a.content.insertBefore(_.w().content.cloneNode(!0),
a.content.firstChild);var z=a.content,I=z.insertBefore;ryt===void 0&&(ryt=document.createElement("template"));var J=ryt;I.call(z,J.content.cloneNode(!0),a.content.firstChild);PhI=a}a=PhI;return a},{mode:_.K("live_chat_enable_sink_wrapper")?2:0});var Zu4;var Chx;var NVx;var tdI;var Pf=function(){var a=_.G.apply(this,arguments)||this;a.isDarkTheme=document.documentElement.hasAttribute("dark");a.newnessDotEligible=!1;return a};
_.b(Pf,_.G);Pf.prototype.sendReaction=function(){var a,z,I=((a=this.data)==null?void 0:a.emojiId)||((z=this.data)==null?void 0:z.emoteId),J;I&&((J=this.data)==null?0:J.shouldTriggerAnimation)&&_.ZF(this.hostElement,"yt-create-user-reaction-animation",[I]);var r;(a=_.o0((r=this.data)==null?void 0:r.onTap))&&_.fw(a,this.hostElement);this.showNewnessDot&&_.ZF(this.hostElement,"yt-hide-newness-dot")};
Pf.prototype.onClick=function(a){(!a||a.clientX||a.clientY)&&this.sendReaction()};
Pf.prototype.onKeyDown=function(a){a.key!=="Enter"&&a.key!==" "||a.repeat||this.sendReaction()};
_.eH.Object.defineProperties(Pf.prototype,{showNewnessDot:{configurable:!0,enumerable:!0,get:function(){var a;return!((a=this.data)==null||!a.maybeShowNewnessDot)&&this.newnessDotEligible}},
useYtImage:{configurable:!0,enumerable:!0,get:function(){var a,z;return!!(((a=this.data)==null?0:a.emojiId)||((z=this.data)==null?0:z.emoteId))}}});
_.L([_.x(),_.p("design:type",Object)],Pf.prototype,"data",void 0);_.L([_.x({reflectToAttribute:!0}),_.p("design:type",Object)],Pf.prototype,"isDarkTheme",void 0);_.L([_.x(),_.p("design:type",Object)],Pf.prototype,"newnessDotEligible",void 0);_.L([_.S("data.maybeShowNewnessDot"),_.p("design:type",Boolean),_.p("design:paramtypes",[])],Pf.prototype,"showNewnessDot",null);_.L([_.S("data.emojiId","data.emoteId"),_.p("design:type",Boolean),_.p("design:paramtypes",[])],Pf.prototype,"useYtImage",null);
_.L([_.dz({disableElementRegistration:!0,is:"yt-reaction-control-panel-button-view-model",noInjection:!0})],Pf);
_.D(Pf,"yt-reaction-control-panel-button-view-model",function(){if(tdI===void 0){var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-reaction-control-panel-button-view-model--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.yt_reaction_control_panel_button_view_model.yt.reaction.control.panel.button.view.model.css.js--\x3e<button on-click="onClick" on-keydown="onKeyDown" class="style-scope yt-reaction-control-panel-button-view-model">\n  <div class="image-container style-scope yt-reaction-control-panel-button-view-model">\n    <template is="dom-if" restamp="" if="[[useYtImage]]" class="style-scope yt-reaction-control-panel-button-view-model">\n      <yt-image alt="[[data.a11yLabel]]" data="[[data.buttonIcon]]" height="24" preserve-height="" preserve-width="" should-render-lazy="" width="24" class="style-scope yt-reaction-control-panel-button-view-model"></yt-image>\n    </template>\n    <template is="dom-if" restamp="" if="[[data.buttonIconType]]" class="style-scope yt-reaction-control-panel-button-view-model">\n      <yt-icon aria-label="[[data.a11yLabel]]" icon="[[data.buttonIconType]]" class="style-scope yt-reaction-control-panel-button-view-model"></yt-icon>\n    </template>\n    <template is="dom-if" restamp="" if="[[showNewnessDot]]" class="style-scope yt-reaction-control-panel-button-view-model">\n      <div class="newness-dot style-scope yt-reaction-control-panel-button-view-model"></div>\n    </template>\n  </div>\n</button>\n');a.content.insertBefore(_.w().content.cloneNode(!0),
a.content.firstChild);var z=a.content,I=z.insertBefore;NVx===void 0&&(NVx=document.createElement("template"));var J=NVx;I.call(z,J.content.cloneNode(!0),a.content.firstChild);tdI=a}a=tdI;return a},{mode:_.K("live_chat_enable_sink_wrapper")?2:0});var uXN;var Exx;var Z$=function(){var a=_.G.apply(this,arguments)||this;a.reactionControlPanelExpanded=!1;a.isDarkTheme=document.documentElement.hasAttribute("dark");a.newnessDotEligible=!1;return a};
_.b(Z$,_.G);_.Z=Z$.prototype;_.Z.expandedButtonsChanged=function(){var a,z;_.uK(this.hostElement,{"--expanded-buttons-height":((z=(a=this.expandedButtonsData)==null?void 0:a.length)!=null?z:0)*36+"px"})};
_.Z.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}}};
_.Z.onMouseEnter=function(){clearTimeout(this.collapseTimer);this.collapseTimer=void 0;this.reactionControlPanelExpanded=!0};
_.Z.onMouseLeave=function(){var a=this;this.collapseTimer=setTimeout(function(){a.reactionControlPanelExpanded=!1},500)};
_.Z.onFocusIn=function(){this.onMouseEnter()};
_.Z.onFocusOut=function(){this.onMouseLeave()};
_.Z.onCollapsedButtonFocusIn=function(){var a=this;setTimeout(function(){var z;(z=a.expandedButtons.querySelector("button"))==null||z.focus()},100)};
_.Z.onCollapsedButtonFocusOut=function(a){a.stopPropagation()};
_.eH.Object.defineProperties(Z$.prototype,{expandedButtonsData:{configurable:!0,enumerable:!0,get:function(){var a,z;return _.x8.unsafeClone((a=this.liveReactionsData)==null?void 0:a.emojiButtonData)||((z=this.data)==null?void 0:z.expandedButtons)}},
showNewnessDot:{configurable:!0,enumerable:!0,get:function(){var a;return this.newnessDotEligible&&!this.reactionControlPanelExpanded&&!((a=this.data)==null||!a.maybeShowNewnessDot)}}});
Z$.prototype.expandedButtonsChanged=Z$.prototype.expandedButtonsChanged;_.L([_.Q(_.k.YtRendererBehavior),_.p("design:type",Object)],Z$.prototype,"ytRendererBehavior",void 0);_.L([_.Q(_.u4.YtRendererstamperBehavior),_.p("design:type",Object)],Z$.prototype,"ytRendererstamperBehavior",void 0);_.L([_.Q(_.yb),_.p("design:type",Object)],Z$.prototype,"ytLiveChatReduxBehavior",void 0);_.L([_.x(),_.p("design:type",Object)],Z$.prototype,"data",void 0);
_.L([_.x({reflectToAttribute:!0}),_.p("design:type",Object)],Z$.prototype,"reactionControlPanelExpanded",void 0);_.L([_.x({selectorArgs:["data.liveReactionsDataEntityKey"],selector:Ao4}),_.p("design:type",Object)],Z$.prototype,"liveReactionsData",void 0);_.L([_.x({reflectToAttribute:!0}),_.p("design:type",Object)],Z$.prototype,"isDarkTheme",void 0);_.L([_.x(),_.p("design:type",Object)],Z$.prototype,"newnessDotEligible",void 0);
_.L([_.S("liveReactionsData","data.expandedButtons"),_.p("design:type",Object),_.p("design:paramtypes",[])],Z$.prototype,"expandedButtonsData",null);_.L([_.S("newnessDotEligible","reactionControlPanelExpanded","data.maybeShowNewnessDot"),_.x({reflectToAttribute:!0}),_.p("design:type",Object),_.p("design:paramtypes",[])],Z$.prototype,"showNewnessDot",null);_.L([_.A3("#expanded-buttons"),_.p("design:type",HTMLElement)],Z$.prototype,"expandedButtons",void 0);
_.L([_.O8("expandedButtonsData"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],Z$.prototype,"expandedButtonsChanged",null);_.L([_.dz({disableElementRegistration:!0,is:"yt-reaction-control-panel-view-model",noInjection:!0})],Z$);
_.D(Z$,"yt-reaction-control-panel-view-model",function(){if(Exx===void 0){var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-reaction-control-panel-view-model--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.yt_reaction_control_panel_view_model.yt.reaction.control.panel.view.model.css.js--\x3e<div id="hover-area" on-mouseenter="onMouseEnter" on-mouseleave="onMouseLeave" on-focusin="onFocusIn" on-focusout="onFocusOut" class="style-scope yt-reaction-control-panel-view-model">\n  <div id="fab-container" class="style-scope yt-reaction-control-panel-view-model">\n    <div id="expanded-buttons" class="style-scope yt-reaction-control-panel-view-model"></div>\n    <div id="collapsed-button" on-focusin="onCollapsedButtonFocusIn" on-focusout="onCollapsedButtonFocusOut" class="style-scope yt-reaction-control-panel-view-model"></div>\n  </div>\n  <template is="dom-if" restamp="" if="[[showNewnessDot]]" class="style-scope yt-reaction-control-panel-view-model">\n    <div class="newness-dot style-scope yt-reaction-control-panel-view-model"></div>\n  </template>\n</div>\n');a.content.insertBefore(_.w().content.cloneNode(!0),
a.content.firstChild);var z=a.content,I=z.insertBefore;uXN===void 0&&(uXN=document.createElement("template"));var J=uXN;I.call(z,J.content.cloneNode(!0),a.content.firstChild);Exx=a}a=Exx;return a},{mode:_.K("live_chat_enable_sink_wrapper")?2:0});var Cb=new _.o3("yt-live-chat"),BVu=Date.parse("2024-7-24"),Nu=function(){var a=_.G.apply(this,arguments)||this;a.emojiManager=_.MT;a.newnessDotEligible=!1;a.newnessDotImpressionCounted=!1;a.actionMap={"yt-live-reactions-mute":"handleReactionsMute","yt-hide-newness-dot":"hideNewnessDot"};return a};
_.b(Nu,_.G);_.Z=Nu.prototype;_.Z.emojiCustomizationEnabledChanged=function(){var a;((a=this.data)==null?0:a.emojiCustomizationEnabled)&&!this.newnessDotImpressionCounted&&((a=Cb.getCreationTime("emoji-customization-count"))&&a<BVu&&Cb.set("emoji-customization-count","0"),a=Number(Cb.get("emoji-customization-count"))||0,a<3&&(this.newnessDotEligible=!0,Cb.set("emoji-customization-count",(a+1).toString())),this.newnessDotImpressionCounted=!0)};
_.Z.hideNewnessDot=function(){this.newnessDotEligible=!1;Cb.set("emoji-customization-count",(3).toString());this.data=Object.assign({},this.data||{})};
_.Z.handleReactionsMute=function(a){var z=_.TX(),I=_.uq(206221),J={checkboxData:{state:a?"CHECKBOX_STATE_OFF":"CHECKBOX_STATE_ON"}};z&&_.ys(z,I,J);this.reactionsMuted=a};
_.Z.liveReactionsSettingChanged=function(){this.data=Object.assign({},this.data||{})};
_.Z.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}}};
_.eH.Object.defineProperties(Nu.prototype,{liveReactionsEnabled:{configurable:!0,enumerable:!0,get:function(){var a;return(!((a=this.liveReactionsData)==null||!a.isEnabled)||this.liveReactionsSetting)&&!this.reactionsMuted}}});
Nu.prototype.liveReactionsSettingChanged=Nu.prototype.liveReactionsSettingChanged;Nu.prototype.emojiCustomizationEnabledChanged=Nu.prototype.emojiCustomizationEnabledChanged;_.L([_.Q(_.k.YtRendererBehavior),_.p("design:type",Object)],Nu.prototype,"ytRendererBehavior",void 0);_.L([_.Q(_.u4.YtRendererstamperBehavior),_.p("design:type",Object)],Nu.prototype,"ytRendererstamperBehavior",void 0);_.L([_.Q(_.yb),_.p("design:type",Object)],Nu.prototype,"ytLiveChatReduxBehavior",void 0);
_.L([_.Q(_.Hc.YtActionHandlerBehavior),_.p("design:type",Object)],Nu.prototype,"ytActionHandlerBehavior",void 0);_.L([_.x(),_.p("design:type",Object)],Nu.prototype,"data",void 0);_.L([_.x(),_.p("design:type",_.mJ)],Nu.prototype,"emojiManager",void 0);_.L([_.x(),_.p("design:type",Object)],Nu.prototype,"newnessDotEligible",void 0);_.L([_.x(),_.p("design:type",Object)],Nu.prototype,"newnessDotImpressionCounted",void 0);
_.L([_.x({selectorArgs:["data.liveReactionsSettingEntityKey"],selector:swL}),_.p("design:type",Boolean)],Nu.prototype,"liveReactionsSetting",void 0);_.L([_.x({selectorArgs:["data.liveReactionsDataEntityKey"],selector:Ao4}),_.p("design:type",Object)],Nu.prototype,"liveReactionsData",void 0);_.L([_.x({value:function(){var a=_.K("enable_lwe_web_mute"),z=Cb.get("allow-reactions");return z===void 0?!1:!z&&a}}),
_.p("design:type",Boolean)],Nu.prototype,"reactionsMuted",void 0);_.L([_.x({reflectToAttribute:!0}),_.S("liveReactionsSetting","reactionsMuted","liveReactionsData"),_.p("design:type",Boolean),_.p("design:paramtypes",[])],Nu.prototype,"liveReactionsEnabled",null);_.L([_.O8("data.emojiCustomizationEnabled"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],Nu.prototype,"emojiCustomizationEnabledChanged",null);
_.L([_.O8("liveReactionsEnabled"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],Nu.prototype,"liveReactionsSettingChanged",null);_.L([_.dz({disableElementRegistration:!0,is:"yt-reaction-control-panel-overlay-view-model",noInjection:!0})],Nu);
_.D(Nu,"yt-reaction-control-panel-overlay-view-model",function(){if(Chx===void 0){var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-reaction-control-panel-overlay-view-model--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.yt_reaction_control_panel_overlay_view_model.yt.reaction.control.panel.overlay.view.model.css.js--\x3e<div id="reaction-control-panel" hidden$="[[!liveReactionsEnabled]]" class="style-scope yt-reaction-control-panel-overlay-view-model"></div>\n<div id="emoji-fountain" hidden$="[[!liveReactionsEnabled]]" class="style-scope yt-reaction-control-panel-overlay-view-model"></div>\n');a.content.insertBefore(_.w().content.cloneNode(!0),
a.content.firstChild);var z=a.content,I=z.insertBefore;Zu4===void 0&&(Zu4=document.createElement("template"));var J=Zu4;I.call(z,J.content.cloneNode(!0),a.content.firstChild);Chx=a}a=Chx;return a},{mode:_.K("live_chat_enable_sink_wrapper")?2:0});var gx4={YtPickerBehavior:{listeners:{"picker-cancelled":"onPickerCancel_"},togglePicker_:function(a){var z=this.$.pickers.selected;if(z){_.PK(this.hostElement).removeAttribute(z+"-open");var I="#picker-buttons";this.hostElement.tagName=="YT-LIVE-CHAT-MESSAGE-INPUT-RENDERER"&&(I="#picker-buttons",z==="emoji"&&_.PK(this.hostElement).querySelector("#emoji-picker-button")&&(I="#emoji-picker-button"));if(I=_.PK(this.hostElement).querySelector(I).querySelector("#"+z))I.active=!1}I=a;z==a&&(I=null);z!=
a&&_.PK(this.hostElement).setAttribute(a+"-open","");this.$.pickers.selected=I;_.ZF(this.hostElement,"yt-live-chat-picker-changed",[I])},
onPickerCancel_:function(){this.togglePicker_(this.$.pickers.selected)}}};var tw=function(){var a=_.G.apply(this,arguments)||this;a.numSentMessages=0;a.timeoutDurationMs=0;a.timeoutMs=0;a.lastTimeoutTimeMs=0;a.pendingMessageId="";a.hasFiredInitialFocusActions=!1;a.isBeforeFocusEnabled=!0;a.id="";a.characterCount=0;a.maxCharacterLimit=0;a.remainingCharacterCount=0;a.inputExpanded=!1;a.buttonOverrides={iconPosition:"icon-only"};a.inReplyPanel=!1;a.countdownRatio=0;a.isTooltipVisible=!1;a.tooltipTimeout=1E4;a.systemIcons=_.K("kevlar_system_icons");a.tallerEmojiPicker=_.K("live_chat_taller_emoji_picker");
a.sendReplyMessageInFlight=!1;a.actionMap={"yt-open-popup-action":"onOpenPopupAction","yt-close-popup-action":"onClosePopupAction","yt-live-chat-disable-before-focus-action":"onDisableBeforeFocus","yt-live-chat-component-replaced":"onComponentReplaced"};a.onResize=function(){a.maybeToggleCharacterCount()};
return a};
_.b(tw,_.G);_.Z=tw.prototype;
_.Z.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"}}}};
_.Z.attached=function(){window.addEventListener("resize",this.onResize)};
_.Z.detached=function(){window.removeEventListener("resize",this.onResize)};
_.Z.dataChanged=function(){this.data.sendButton&&this.data.sendButton.buttonRenderer&&(this.data.sendButton.buttonRenderer.isDisabled=this.sendDisabled)};
_.Z.sendMessage=function(){var a=this,z,I,J,r;return _.t(function(P){if(a.sendDisabled)return P.return();a.isTooltipVisible&&_.ZF(a.hostElement,"yt-close-popup-action",["yt-tooltip-renderer"]);if(a.data.sendButton&&a.data.sendButton.buttonRenderer){a.input.completeEmojis();z=a.data.sendButton.buttonRenderer.serviceEndpoint;if(!z)return P.return();J=((I=_.H(z,_.wEv))==null?void 0:I.clientIdPrefix)||"";r={client_message_id:J+String(a.numSentMessages++),rich_message:_.LS(a.input.liveChatRichMessageInput)};
a.pendingMessageId=r.client_message_id;a.inReplyPanel&&(a.sendReplyMessageInFlight=!0);_.N$(a.hostElement,[z,r]);a.input.setLiveChatRichMessageInput(null)}_.nu(P)})};
_.Z.handleSendButtonAction=function(a){a.detail.actionName==="yt-service-request"&&(a.stopPropagation(),this.sendMessage())};
_.Z.onSendCompleted=function(a,z){this.inReplyPanel&&(this.sendReplyMessageInFlight=!1);(a=this.get("timeoutDurationUsec",z.data))&&this.handleTimeout(Number(a)/1E3);this.errorMessage=this.get("errorMessage",z.data);this.pendingMessageId=""};
_.Z.onSendError=function(){this.inReplyPanel&&(this.sendReplyMessageInFlight=!1);this.pendingMessageId&&_.ZF(this.hostElement,"yt-dim-chat-item-action",[{dimChatItemAction:{clientAssignedId:this.pendingMessageId}}]);this.pendingMessageId="";this.genericErrorMessage&&(this.errorMessage={liveChatErrorMessageRenderer:{errorText:this.genericErrorMessage}})};
_.Z.handlePickerButtonToggle=function(a){a=a.detail.targetId;this.ytPickerBehavior.togglePicker_(a);if(a==="emoji")this.input.focus();else if(a==="qna-start-panel"){var z,I;(z=_.PK(this.hostElement).querySelector("yt-live-chat-qna-start-panel-renderer"))==null||(I=z.querySelector("#qna-creator-text-input-field"))==null||I.focus()}};
_.Z.onComponentReplaced=function(a){var z,I;a.toReplace==="REPLACE_LIVE_CHAT_ACTION_PANEL"&&((z=a.replacement.liveChatMessageInputRenderer)==null?0:(I=z.headerRenderer)==null?0:I.liveChatQnaInputPromptHeaderRenderer)&&this.input.focus()};
_.Z.onEmojiSelect=function(a){this.input.focus();this.input.insertEmoji(a.detail)};
_.Z.onDisableBeforeFocus=function(){this.isBeforeFocusEnabled=!1};
_.Z.onInputFocusIn=function(){this.data&&(this.data.beforeFocusCommand&&this.isBeforeFocusEnabled?_.ZF(this.hostElement,"yt-live-chat-actions",[[this.data.beforeFocusCommand]]):this.data.onInitialFocusCommand&&!this.hasFiredInitialFocusActions&&(_.ZF(this.hostElement,"yt-live-chat-actions",[[this.data.onInitialFocusCommand]]),this.hasFiredInitialFocusActions=!0))};
_.Z.onOpenPopupAction=function(a,z){var I=this;z===this.hostElement&&(this.isTooltipVisible=!0);this.tooltipTimeout&&setTimeout(function(){_.ZF(I.hostElement,"yt-close-popup-action",["yt-tooltip-renderer"])},this.tooltipTimeout)};
_.Z.onClosePopupAction=function(){this.isTooltipVisible=!1};
_.Z.characterCountChanged=function(){this.maybeToggleCharacterCount()};
_.Z.focusChanged=function(){this.maybeToggleCharacterCount()};
_.Z.maybeToggleCharacterCount=function(){if(this.maxCharacterLimit){var a=this.characterCount/this.maxCharacterLimit*100;this.count.classList.toggle("warning",this.characterCount!==0&&this.input.clientHeight>36);this.count.classList.toggle("error",a>100)}this.inputExpanded=this.characterCount!==0&&this.inputContainer.clientHeight>36};
_.Z.computeId=function(){return this.data&&this.data.targetId||""};
_.Z.computeSendDisabled=function(a,z,I,J){a=!!(!a||z&&a>z||J);(z=_.PK(this.hostElement).querySelector("#send-button"))&&z.children.length&&(z.children[0].disabled=a);return a};
_.Z.handleTimeout=function(a){this.timeoutDurationMs=this.timeoutMs=a;this.countdownRatio=1;this.lastTimeoutTimeMs===0&&window.requestAnimationFrame(this.updateTimeout.bind(this))};
_.Z.updateTimeout=function(a){this.lastTimeoutTimeMs&&(this.timeoutMs=Math.max(0,this.timeoutMs-(a-this.lastTimeoutTimeMs)),this.countdownRatio=this.timeoutMs/this.timeoutDurationMs);this.isAttached&&this.timeoutMs?(this.lastTimeoutTimeMs=a,window.requestAnimationFrame(this.updateTimeout.bind(this))):this.lastTimeoutTimeMs=0};
_.Z.onErrorMessageDismiss=function(){this.errorMessage=void 0};
_.Z.onErrorMessageEdit=function(a){this.input.setLiveChatRichMessageInput(a.detail);this.input.focusAtEnd();this.errorMessage=void 0};
_.Z.errorMessageChanged=function(){var a=this;_.lK(function(){_.ZF(a.hostElement,"yt-live-chat-maybe-scroll-to-bottom")})};
_.Z.computeAuthorNameColor=function(a){var z;if(_.K("live_chat_author_name_color_usernames")&&(a==null?0:(z=a.authorName)==null?0:z.simpleText))return _.QPd(_.Spx(a.authorName.simpleText));if(_.K("live_chat_seed_color_usernames")&&(a==null?0:a.authorSeedColorArgb))return _.QPd(_.uN(a.authorSeedColorArgb));if(_.K("live_chat_colored_usernames"))return"#cc0000";var I;return _.K("live_chat_simple_color_usernames")&&(a==null?0:(I=a.authorName)==null?0:I.simpleText)&&(a==null?0:a.authorUsernameColorLight)&&
(a==null?0:a.authorUsernameColorDark)?document.documentElement.hasAttribute("dark")?_.uN(a.authorUsernameColorDark):_.uN(a.authorUsernameColorLight):""};
_.Z.onIsTooltipVisibleChanged=function(){var a=_.PK(this.hostElement).querySelector("#tooltip-accessibility-text");this.isTooltipVisible?setTimeout(function(){a.hidden=!1;a.setAttribute("role","alert")},0):(a.hidden=!0,a.removeAttribute("role"))};
_.Z.onFocusedChanged=function(a){this.inputFocused=a.detail.value};
_.eH.Object.defineProperties(tw.prototype,{sendDisabled:{configurable:!0,enumerable:!0,get:function(){return this.computeSendDisabled(this.characterCount,this.maxCharacterLimit,this.countdownActive,this.sendReplyMessageInFlight)}},
countdownStrokeDashOffset:{configurable:!0,enumerable:!0,get:function(){return this.countdownRatio*10*2*Math.PI}},
countdownActive:{configurable:!0,enumerable:!0,get:function(){return!!this.countdownRatio}},
hasInteractionMessage:{configurable:!0,enumerable:!0,get:function(){return!!this.data.interactionMessage}},
hasEmojiPickerButton:{configurable:!0,enumerable:!0,get:function(){return!!this.data.emojiPickerButton}},
showAvatar:{configurable:!0,enumerable:!0,get:function(){var a;return!((a=this.data)==null||!a.authorPhoto)&&this.characterCount>0}},
hasProductPickerPanelViewModel:{configurable:!0,enumerable:!0,get:function(){var a,z;return((a=this.data)==null?void 0:(z=a.pickers)==null?void 0:z.find(function(I){return I.liveChatProductPickerPanelViewModel}))!==void 0}},
tooltipMessage:{configurable:!0,enumerable:!0,get:function(){var a=this.get("data.onInitialFocusCommand.showLiveChatTooltipCommand.tooltip.tooltipRenderer.detailsText");return a?this.ytRendererBehavior.getSimpleString(a):""}},
authorNameColor:{configurable:!0,enumerable:!0,get:function(){return this.computeAuthorNameColor(this.data)}}});
tw.prototype.onIsTooltipVisibleChanged=tw.prototype.onIsTooltipVisibleChanged;tw.prototype.errorMessageChanged=tw.prototype.errorMessageChanged;tw.prototype.onErrorMessageEdit=tw.prototype.onErrorMessageEdit;tw.prototype.onErrorMessageDismiss=tw.prototype.onErrorMessageDismiss;tw.prototype.focusChanged=tw.prototype.focusChanged;tw.prototype.characterCountChanged=tw.prototype.characterCountChanged;tw.prototype.onEmojiSelect=tw.prototype.onEmojiSelect;tw.prototype.handlePickerButtonToggle=tw.prototype.handlePickerButtonToggle;
tw.prototype.onSendError=tw.prototype.onSendError;tw.prototype.onSendCompleted=tw.prototype.onSendCompleted;tw.prototype.sendMessage=tw.prototype.sendMessage;tw.prototype.dataChanged=tw.prototype.dataChanged;_.L([_.Q(_.k.YtRendererBehavior),_.p("design:type",Object)],tw.prototype,"ytRendererBehavior",void 0);_.L([_.Q(_.Hc.YtActionHandlerBehavior),_.p("design:type",Object)],tw.prototype,"ytActionHandlerBehavior",void 0);
_.L([_.Q(gx4.YtPickerBehavior),_.p("design:type",Object)],tw.prototype,"ytPickerBehavior",void 0);_.L([_.Q(_.u4.YtRendererstamperBehavior),_.p("design:type",Object)],tw.prototype,"ytRendererstamperBehavior",void 0);_.L([_.Q(_.ko.YtLiveChatTooltipTargetingBehavior),_.p("design:type",Object)],tw.prototype,"ytLiveChatTooltipTargetingBehavior",void 0);_.L([_.x(),_.p("design:type",Object)],tw.prototype,"hasFiredInitialFocusActions",void 0);
_.L([_.x(),_.p("design:type",Object)],tw.prototype,"isBeforeFocusEnabled",void 0);_.L([_.x(),_.p("design:type",Object)],tw.prototype,"data",void 0);_.L([_.x({computed:"computeId(data.targetId)",reflectToAttribute:!0}),_.p("design:type",Object)],tw.prototype,"id",void 0);_.L([_.x(),_.p("design:type",Object)],tw.prototype,"characterCount",void 0);_.L([_.x(),_.p("design:type",Object)],tw.prototype,"maxCharacterLimit",void 0);
_.L([_.x(),_.p("design:type",Object)],tw.prototype,"remainingCharacterCount",void 0);_.L([_.x({reflectToAttribute:!0}),_.p("design:type",Object)],tw.prototype,"inputExpanded",void 0);_.L([_.x({reflectToAttribute:!0}),_.p("design:type",Boolean)],tw.prototype,"inputFocused",void 0);_.L([_.x({value:!1}),_.p("design:type",Boolean)],tw.prototype,"disableEmojiPickerIncrementalLoading",void 0);_.L([_.x(),_.p("design:type",_.aW)],tw.prototype,"participantsManager",void 0);
_.L([_.x(),_.p("design:type",Object)],tw.prototype,"buttonOverrides",void 0);_.L([_.x({reflectToAttribute:!0}),_.p("design:type",Object)],tw.prototype,"inReplyPanel",void 0);_.L([_.S("characterCount, maxCharacterLimit, countdownActive"),_.p("design:type",Boolean),_.p("design:paramtypes",[])],tw.prototype,"sendDisabled",null);_.L([_.x(),_.p("design:type",Object)],tw.prototype,"countdownRatio",void 0);
_.L([_.S("countdownRatio"),_.p("design:type",Number),_.p("design:paramtypes",[])],tw.prototype,"countdownStrokeDashOffset",null);_.L([_.S("countdownRatio"),_.p("design:type",Boolean),_.p("design:paramtypes",[])],tw.prototype,"countdownActive",null);_.L([_.S("data.interactionMessage"),_.x({reflectToAttribute:!0}),_.p("design:type",Boolean),_.p("design:paramtypes",[])],tw.prototype,"hasInteractionMessage",null);
_.L([_.S("data.emojiPickerButton"),_.x({reflectToAttribute:!0}),_.p("design:type",Boolean),_.p("design:paramtypes",[])],tw.prototype,"hasEmojiPickerButton",null);_.L([_.S("data, characterCount"),_.p("design:type",Boolean),_.p("design:paramtypes",[])],tw.prototype,"showAvatar",null);_.L([_.S("data.pickers"),_.x({reflectToAttribute:!0}),_.p("design:type",Boolean),_.p("design:paramtypes",[])],tw.prototype,"hasProductPickerPanelViewModel",null);
_.L([_.x(),_.p("design:type",Object)],tw.prototype,"errorMessage",void 0);_.L([_.x(),_.p("design:type",Object)],tw.prototype,"genericErrorMessage",void 0);_.L([_.x(),_.p("design:type",Object)],tw.prototype,"isTooltipVisible",void 0);_.L([_.x(),_.p("design:type",Object)],tw.prototype,"tooltipTimeout",void 0);_.L([_.S("data.onInitialFocusCommand"),_.p("design:type",String),_.p("design:paramtypes",[])],tw.prototype,"tooltipMessage",null);
_.L([_.x({reflectToAttribute:!0}),_.p("design:type",Object)],tw.prototype,"systemIcons",void 0);_.L([_.x({reflectToAttribute:!0}),_.p("design:type",Object)],tw.prototype,"tallerEmojiPicker",void 0);_.L([_.S("data"),_.p("design:type",String),_.p("design:paramtypes",[])],tw.prototype,"authorNameColor",null);_.L([_.x(),_.p("design:type",Object)],tw.prototype,"sendReplyMessageInFlight",void 0);_.L([_.A3("#input"),_.p("design:type",_.TAj)],tw.prototype,"input",void 0);
_.L([_.A3("#count"),_.p("design:type",HTMLElement)],tw.prototype,"count",void 0);_.L([_.A3("#input-container"),_.p("design:type",HTMLElement)],tw.prototype,"inputContainer",void 0);_.L([_.O8("data"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],tw.prototype,"dataChanged",null);_.L([_.gz("yt-live-chat-send-message"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype",Promise)],tw.prototype,"sendMessage",null);
_.L([_.gz("yt-service-request-completed"),_.p("design:type",Function),_.p("design:paramtypes",[Event,_.Yq]),_.p("design:returntype")],tw.prototype,"onSendCompleted",null);_.L([_.gz("yt-service-request-error"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],tw.prototype,"onSendError",null);
_.L([_.gz("yt-live-chat-icon-toggle-button-renderer-toggle"),_.p("design:type",Function),_.p("design:paramtypes",[CustomEvent]),_.p("design:returntype")],tw.prototype,"handlePickerButtonToggle",null);_.L([_.gz("yt-emoji-select"),_.p("design:type",Function),_.p("design:paramtypes",[CustomEvent]),_.p("design:returntype")],tw.prototype,"onEmojiSelect",null);
_.L([_.O8("characterCount"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],tw.prototype,"characterCountChanged",null);_.L([_.O8("inputFocused"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],tw.prototype,"focusChanged",null);_.L([_.gz("yt-live-chat-error-message-dismiss"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],tw.prototype,"onErrorMessageDismiss",null);
_.L([_.gz("yt-live-chat-error-message-edit"),_.p("design:type",Function),_.p("design:paramtypes",[CustomEvent]),_.p("design:returntype")],tw.prototype,"onErrorMessageEdit",null);_.L([_.O8("errorMessage"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],tw.prototype,"errorMessageChanged",null);_.L([_.O8("isTooltipVisible"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],tw.prototype,"onIsTooltipVisibleChanged",null);
_.L([_.dz({disableElementRegistration:!0,is:"yt-live-chat-message-input-renderer",noInjection:!0})],tw);
_.D(tw,"yt-live-chat-message-input-renderer",function(){if(dLx===void 0){var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-live-chat-message-input-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.yt_live_chat_message_input_renderer.yt.live.chat.message.input.renderer.css.js--\x3e<yt-live-chat-message-input-prompt-header-renderer data="[[data.headerRenderer.liveChatQnaInputPromptHeaderRenderer]]" hidden$="[[!data.headerRenderer.liveChatQnaInputPromptHeaderRenderer]]" class="style-scope yt-live-chat-message-input-renderer"></yt-live-chat-message-input-prompt-header-renderer><div id="container" class="style-scope yt-live-chat-message-input-renderer"><div id="top" class="style-scope yt-live-chat-message-input-renderer"><yt-img-shadow id="avatar" height="24" hidden$="[[!showAvatar]]" thumbnail="[[data.authorPhoto]]" width="24" class="style-scope yt-live-chat-message-input-renderer"></yt-img-shadow><div id="input-container" class="style-scope yt-live-chat-message-input-renderer"><yt-live-chat-author-chip author-badges="[[data.authorBadges]]" author-name="[[data.authorName]]" author-name-color="[[authorNameColor]]" hidden="" class="style-scope yt-live-chat-message-input-renderer"></yt-live-chat-author-chip><yt-live-chat-text-input-field-renderer id="input" character-count="{{characterCount}}" data="[[data.inputField.liveChatTextInputFieldRenderer]]" disabled="[[hasInteractionMessage]]" input-expanded="[[inputExpanded]]" is-chat-message-input="" max-character-limit="{{maxCharacterLimit}}" no-underline="" participants-manager="[[participantsManager]]" remaining-character-count="{{remainingCharacterCount}}" on-focused-changed="onFocusedChanged" on-focusin="onInputFocusIn" class="style-scope yt-live-chat-message-input-renderer"></yt-live-chat-text-input-field-renderer><div id="emoji-picker-button" class="style-scope yt-live-chat-message-input-renderer"></div></div><div id="right" class="style-scope yt-live-chat-message-input-renderer"><div id="count-container" class="style-scope yt-live-chat-message-input-renderer"><div id="count" class="style-scope yt-live-chat-message-input-renderer">[[remainingCharacterCount]]</div></div><div id="message-buttons" class="style-scope yt-live-chat-message-input-renderer"><div id="send-button" countdown-active$="[[countdownActive]]" hidden="[[!characterCount]]" on-yt-action="handleSendButtonAction" class="style-scope yt-live-chat-message-input-renderer"></div><svg id="countdown" countdown-active$="[[countdownActive]]" hidden$="[[!characterCount]]" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg" class="style-scope yt-live-chat-message-input-renderer"><circle id="countdown-background" cx="12" cy="12" r="10" class="style-scope yt-live-chat-message-input-renderer"></circle><circle id="countdown-line" cx="12" cy="12" r="10" stroke-dashoffset$="[[countdownStrokeDashOffset]]" class="style-scope yt-live-chat-message-input-renderer"></circle></svg></div><div id="picker-buttons" hidden="[[characterCount]]" class="style-scope yt-live-chat-message-input-renderer"></div></div></div><div id="error-message" class="style-scope yt-live-chat-message-input-renderer"></div><tp-yt-iron-pages id="pickers" attr-for-selected="id" selected-attribute="selected" class="style-scope yt-live-chat-message-input-renderer"></tp-yt-iron-pages></div><div id="interaction-message" class="style-scope yt-live-chat-message-input-renderer"></div><div id="tooltip-accessibility-text" class="style-scope yt-live-chat-message-input-renderer">[[tooltipMessage]]</div>');a.content.insertBefore(_.w().content.cloneNode(!0),
a.content.firstChild);var z=a.content,I=z.insertBefore;TOa===void 0&&(TOa=document.createElement("template"));var J=TOa;I.call(z,J.content.cloneNode(!0),a.content.firstChild);dLx=a}a=dLx;return a},{mode:_.K("live_chat_enable_sink_wrapper")?2:0});var OuO;var fI4;var uR=function(){var a=_.G.apply(this,arguments)||this;a.systemIcons=_.K("kevlar_system_icons");a.firedOnClickCommand=!1;a.inReplyPanel=!1;return a};
_.b(uR,_.G);
uR.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"}}}};
uR.prototype.onButtonToggle=function(a){a.target.disabled||this.ytPickerBehavior.togglePicker_(a.detail.targetId)};
uR.prototype.onClick=function(){var a=this;this.get("onClickCommand.liveChatAddToToastAction",this.data)&&!this.firedOnClickCommand&&(_.ZF(this.hostElement,"yt-live-chat-add-to-toast-action",[this.data.onClickCommand]),this.firedOnClickCommand=!0,setTimeout(function(){return a.firedOnClickCommand=!1},5E3))};
_.eH.Object.defineProperties(uR.prototype,{hasProductPickerPanelViewModel:{configurable:!0,enumerable:!0,get:function(){var a,z;return((a=this.data)==null?void 0:(z=a.panels)==null?void 0:z.find(function(I){return I.liveChatProductPickerPanelViewModel}))!==void 0}}});
uR.prototype.onButtonToggle=uR.prototype.onButtonToggle;_.L([_.Q(gx4.YtPickerBehavior),_.p("design:type",Object)],uR.prototype,"ytPickerBehavior",void 0);_.L([_.Q(_.k.YtRendererBehavior),_.p("design:type",Object)],uR.prototype,"ytRendererBehavior",void 0);_.L([_.Q(_.u4.YtRendererstamperBehavior),_.p("design:type",Object)],uR.prototype,"ytRendererstamperBehavior",void 0);_.L([_.x(),_.p("design:type",Object)],uR.prototype,"data",void 0);
_.L([_.x({reflectToAttribute:!0}),_.p("design:type",Object)],uR.prototype,"systemIcons",void 0);_.L([_.x({reflectToAttribute:!1}),_.p("design:type",Object)],uR.prototype,"firedOnClickCommand",void 0);_.L([_.x({reflectToAttribute:!0}),_.p("design:type",Object)],uR.prototype,"inReplyPanel",void 0);_.L([_.S("data.pickers"),_.x({reflectToAttribute:!0}),_.p("design:type",Boolean),_.p("design:paramtypes",[])],uR.prototype,"hasProductPickerPanelViewModel",null);
_.L([_.gz("yt-live-chat-icon-toggle-button-renderer-toggle"),_.p("design:type",Function),_.p("design:paramtypes",[CustomEvent]),_.p("design:returntype")],uR.prototype,"onButtonToggle",null);_.L([_.dz({disableElementRegistration:!0,is:"yt-live-chat-restricted-participation-renderer",noInjection:!0})],uR);
_.D(uR,"yt-live-chat-restricted-participation-renderer",function(){if(fI4===void 0){var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-live-chat-restricted-participation-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.yt_live_chat_restricted_participation_renderer.yt.live.chat.restricted.participation.renderer.css.js--\x3e<div id="container" class="style-scope yt-live-chat-restricted-participation-renderer">\n  <tp-yt-iron-pages id="pickers" attr-for-selected="id" selected-attribute="selected" class="style-scope yt-live-chat-restricted-participation-renderer"></tp-yt-iron-pages>\n  <div id="explanation" class="style-scope yt-live-chat-restricted-participation-renderer">\n    <yt-icon id="icon" hidden$="[[!data.icon]]" icon="[[data.icon.iconType]]" on-click="onClick" class="style-scope yt-live-chat-restricted-participation-renderer">\n    </yt-icon>\n    <div id="body" on-click="onClick" class="style-scope yt-live-chat-restricted-participation-renderer">\n      <div id="message" class="style-scope yt-live-chat-restricted-participation-renderer">[[getSimpleString(data.message)]]</div><div id="message-button" class="style-scope yt-live-chat-restricted-participation-renderer"></div>\n    </div>\n    <div id="picker-buttons" class="style-scope yt-live-chat-restricted-participation-renderer"></div>\n  </div>\n</div>\n');a.content.insertBefore(_.w().content.cloneNode(!0),
a.content.firstChild);var z=a.content,I=z.insertBefore;OuO===void 0&&(OuO=document.createElement("template"));var J=OuO;I.call(z,J.content.cloneNode(!0),a.content.firstChild);fI4=a}a=fI4;return a},{mode:_.K("live_chat_enable_sink_wrapper")?2:0});var E7=function(){var a=_.G.apply(this,arguments)||this;a.genericErrorMessage=_.Mo("Error, try again.");a.inReplyPanel=!1;a.hideBorder=!1;return a};
_.b(E7,_.G);E7.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}}}}}};
_.eH.Object.defineProperties(E7,{template:{configurable:!0,enumerable:!0,get:function(){return xL4()}}});
_.L([_.Q(_.u4.YtRendererstamperBehavior),_.p("design:type",Object)],E7.prototype,"ytRendererstamperBehavior",void 0);_.L([_.x(),_.p("design:type",Object)],E7.prototype,"data",void 0);_.L([_.x(),_.p("design:type",Object)],E7.prototype,"genericErrorMessage",void 0);_.L([_.x(),_.p("design:type",Object)],E7.prototype,"inReplyPanel",void 0);_.L([_.x({reflectToAttribute:!0}),_.p("design:type",Object)],E7.prototype,"hideBorder",void 0);
_.L([_.dz({is:"yt-live-chat-engagement-panel-input-renderer",disableElementRegistration:!0,noInjection:!0})],E7);_.D(E7,"yt-live-chat-engagement-panel-input-renderer",function(){return xL4()},{mode:_.K("live_chat_enable_sink_wrapper")?2:0});var Ay9,slP;Ay9=_.uq(115994);slP=_.uq(115993);_.Bf=function(a,z,I){var J=this;var r=I.dragDownAction;this.layer=0;this.JSC$22419_watchConfig={startPosition:0,draggingClass:"gesture-dragging",triggers:{down:{fade:!0,endOpacity:.6,endPosition:100,threshold:100,triggerAction:function(){return J.dragDownAction()}}}};
this.JSC$22419_watchFullScreenConfig={startPosition:0,draggingClass:"gesture-dragging",triggers:{down:{disableFinish:!0,endOpacity:.6,endPosition:100,threshold:100,triggerAction:function(){return J.dragDownAction()}}}};
this.fullscreen=!1;var P=_.Kw();_.sR(P,Ay9,this.layer);_.sR(P,slP,this.layer);this.dragDownAction=function(){r();_.pS(P,{visualElement:J.fullscreen?Ay9:slP})};
this.gesture=new _.gk(a,z,this.JSC$22419_watchConfig,"pandown");this.attach()};
_.Bf.prototype.attach=function(){this.gesture.attach()};
_.Bf.prototype.detach=function(){this.gesture.detach()};
_.Bf.prototype.update=function(a){this.fullscreen=a;this.gesture.config=a?this.JSC$22419_watchFullScreenConfig:this.JSC$22419_watchConfig};var nxL={YtMacroReplacementBehavior:[{sendServiceRequestAction:function(a){if(a&&a.length==1&&Array.isArray(a[0].loggingUrls)){a=_.x8.unsafeClone(a[0]);var z=this.macros||{},I=this.getAdModuleClient_();if(!I)return _.uI();a.loggingUrls.forEach(function(J){if(J.baseUrl){var r=J.baseUrl;var P=z;P=P===void 0?{}:P;r=I.getOptions().includes("replaceUrlMacros")?_.qQi(I,"replaceUrlMacros",{url:r,additionalMapping:P}):r;J.baseUrl=r}},this);
a=[a]}return _.N$(this.hostElement,a)},
getAdModuleClient_:function(){var a=_.zI(this);return a?(a=a.getPlayer())?new _.Gq(a):null:null}}]};var K6G;var gp=function(){var a=_.G.apply(this,arguments)||this;a.isCollapsed=!1;a.modernPanels=_.K("kevlar_watch_modern_panels");a.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction","yt-update-donation-shelf-command":"handleUpdate","yt-open-popup-action":"handleOpenPopupAction"};return a};
_.b(gp,_.G);_.Z=gp.prototype;_.Z.configureRendererStamper=function(){return{"data.donateButton":{id:"donate-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.Z.attached=function(){this.isDarkTheme=document.documentElement.hasAttribute("dark")};
_.Z.onDonateTap=function(){var a=this.get("data.donateButton.buttonRenderer.command");if(a){var z=_.TX(),I=this.get("data.donateButton.buttonRenderer.trackingParams");z&&I&&_.ys(z,_.VX(I));this.ytOpenPopupBehavior.openPopup(a)}};
_.Z.onShowMore=function(){this.isCollapsed=!1;var a=_.TX(),z=this.get("data.expandButton.buttonRenderer.trackingParams");a&&z&&_.ys(a,_.VX(z))};
_.Z.onShowLess=function(){this.isCollapsed=!0};
_.Z.dataChanged=function(){_.uK(this.hostElement,{"--progress-bar-completion":this.data.progress*100+"%"})};
_.Z.onDarkModeToggledAction=function(a){this.isDarkTheme=a};
_.Z.handleUpdate=function(a){if(a=this.get("updateDonationShelfCommand.donationShelf.donationShelfRenderer",a))this.set("data.startLabel",a.startLabel),this.set("data.endLabel",a.endLabel),this.set("data.progress",a.progress),this.set("data.amountRaisedLabel",a.amountRaisedLabel),this.dataChanged()};
_.Z.handleOpenPopupAction=function(a){this.get("openPopupAction.popup.ypcTransactionErrorMessageRenderer",a)&&_.ZF(this.hostElement,"yt-close-popup-action",["yt-loading-renderer"])};
_.Z.computeHeaderBackgroundUrl=function(a,z){if(a)return z?a.headerBackgroundDarkUrl:a.headerBackgroundUrl};
_.Z.isProgressBarVisible=function(a){return!(!a||a.progress===void 0)};
_.Z.headerBackgroundClass=function(){return _.Xw("HTML_DIR")==="rtl"?"flip":""};
gp.prototype.dataChanged=gp.prototype.dataChanged;_.L([_.Q(_.K_.YtOpenPopupBehavior),_.p("design:type",Object)],gp.prototype,"ytOpenPopupBehavior",void 0);_.L([_.Q(_.u4.YtRendererstamperBehavior),_.p("design:type",Object)],gp.prototype,"ytRendererstamperBehavior",void 0);_.L([_.Q(_.k.YtRendererBehavior),_.p("design:type",Object)],gp.prototype,"ytRendererBehavior",void 0);_.L([_.Q(_.Hc.YtActionHandlerBehavior),_.p("design:type",Object)],gp.prototype,"ytActionHandlerBehavior",void 0);
_.L([_.x(),_.p("design:type",Object)],gp.prototype,"data",void 0);_.L([_.x(),_.p("design:type",Object)],gp.prototype,"isCollapsed",void 0);_.L([_.x({computed:"computeHeaderBackgroundUrl(data, isDarkTheme)"}),_.p("design:type",String)],gp.prototype,"headerBackgroundUrl",void 0);_.L([_.x(),_.p("design:type",Boolean)],gp.prototype,"isDarkTheme",void 0);_.L([_.x({reflectToAttribute:!0}),_.p("design:type",Object)],gp.prototype,"modernPanels",void 0);
_.L([_.O8("data"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],gp.prototype,"dataChanged",null);_.L([_.U({is:"ytd-donation-shelf-renderer",disableElementRegistration:!0})],gp);
_.D(gp,"ytd-donation-shelf-renderer",function(){if(K6G!==void 0)return K6G;var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-donation-shelf-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header-section" class="style-scope ytd-donation-shelf-renderer">\n  <div id="header-text" class="style-scope ytd-donation-shelf-renderer">\n    [[getSimpleString(data.headerTitle)]]\n  </div>\n  <template is="dom-if" if="[[headerBackgroundUrl]]" class="style-scope ytd-donation-shelf-renderer">\n    <div id="header-background" class$="[[headerBackgroundClass()]] style-scope ytd-donation-shelf-renderer">\n      <yt-img-shadow delayed-src="[[headerBackgroundUrl]]" height="48" class="style-scope ytd-donation-shelf-renderer">\n      </yt-img-shadow>\n    </div>\n  </template>\n</div>\n\n<div id="donate-section" class="style-scope ytd-donation-shelf-renderer">\n  <div id="title-row" class="style-scope ytd-donation-shelf-renderer">\n    <yt-img-shadow id="campaign-logo" object-fit="CONTAIN" thumbnail="[[data.campaignThumbnail]]" class="style-scope ytd-donation-shelf-renderer">\n    </yt-img-shadow>\n    <div id="text-container" class="style-scope ytd-donation-shelf-renderer">\n      <div id="campaign-title" class="style-scope ytd-donation-shelf-renderer">\n        [[getSimpleString(data.campaignTitle)]]\n      </div>\n      <div id="campaign-subtitle" class="style-scope ytd-donation-shelf-renderer">\n        [[getSimpleString(data.campaignSubtitle)]]\n      </div>\n    </div>\n    <div id="donate-button" on-click="onDonateTap" class="style-scope ytd-donation-shelf-renderer"></div>\n  </div>\n  <template is="dom-if" if="[[isProgressBarVisible(data)]]" class="style-scope ytd-donation-shelf-renderer">\n    <div id="progress-bar" class="style-scope ytd-donation-shelf-renderer">\n      <div id="progress-bar-fill" class="style-scope ytd-donation-shelf-renderer"></div>\n    </div>\n    <div id="progress-bar-labels" class="style-scope ytd-donation-shelf-renderer">\n      <yt-formatted-string id="progress-bar-start" text="[[data.startLabel]]" class="style-scope ytd-donation-shelf-renderer">\n      </yt-formatted-string>\n      <yt-formatted-string id="progress-bar-end" text="[[data.endLabel]]" class="style-scope ytd-donation-shelf-renderer"></yt-formatted-string>\n    </div>\n  </template>\n  <template is="dom-if" if="[[data.amountRaisedLabel]]" class="style-scope ytd-donation-shelf-renderer">\n    <div id="amount-raised" class="style-scope ytd-donation-shelf-renderer">\n      <yt-formatted-string text="[[data.amountRaisedLabel]]" class="style-scope ytd-donation-shelf-renderer"></yt-formatted-string>\n    </div>\n  </template>\n  <template is="dom-if" if="[[data.matchLabel]]" class="style-scope ytd-donation-shelf-renderer">\n    <div id="matching-label" class="style-scope ytd-donation-shelf-renderer">\n      <yt-formatted-string split-lines="" text="[[data.matchLabel]]" class="style-scope ytd-donation-shelf-renderer"></yt-formatted-string>\n    </div>\n  </template>\n</div>\n\n<template is="dom-if" if="[[!isCollapsed]]" class="style-scope ytd-donation-shelf-renderer">\n  <template is="dom-if" if="[[data.creatorMessages]]" class="style-scope ytd-donation-shelf-renderer">\n    <div id="creator-messages-section" class="style-scope ytd-donation-shelf-renderer">\n      <template is="dom-repeat" items="[[data.creatorMessages]]" class="style-scope ytd-donation-shelf-renderer">\n        <div class="creator-message style-scope ytd-donation-shelf-renderer">\n          <div class="separator style-scope ytd-donation-shelf-renderer"></div>\n          <div class="creator-message-header style-scope ytd-donation-shelf-renderer">\n            <yt-img-shadow class="avatar style-scope ytd-donation-shelf-renderer" height="26" thumbnail="[[item.thumbnail]]">\n            </yt-img-shadow>\n            <yt-formatted-string class="creator-message-name style-scope ytd-donation-shelf-renderer" text="[[item.title]]">\n            </yt-formatted-string>\n          </div>\n          <div class="creator-message-description style-scope ytd-donation-shelf-renderer">\n            [[getSimpleString(item.description)]]\n          </div>\n        </div>\n      </template>\n    </div>\n  </template>\n\n  <div id="nonprofit-section" class="style-scope ytd-donation-shelf-renderer">\n    <div id="nonprofit-row" class="style-scope ytd-donation-shelf-renderer">\n      <div id="nonprofit-title" class="style-scope ytd-donation-shelf-renderer">\n        [[getSimpleString(data.nonprofitTitle)]]<span id="verified-icon-wrapper" class="style-scope ytd-donation-shelf-renderer">\u00a0<yt-icon id="verified-icon" class="inline-icon style-scope ytd-donation-shelf-renderer" default-to-filled="true" icon="check_circle"></yt-icon>\n        </span>\n      </div>\n    </div>\n    <div id="nonprofit-subtitle" class="style-scope ytd-donation-shelf-renderer">\n      <yt-formatted-string text="[[data.nonprofitSubtitle]]" class="style-scope ytd-donation-shelf-renderer">\n      </yt-formatted-string>\n    </div>\n    <div id="nonprofit-description" class="style-scope ytd-donation-shelf-renderer">\n      [[getSimpleString(data.nonprofitDescription)]]\n    </div>\n  </div>\n</template>\n\n<div id="collapse-controls-section" class="style-scope ytd-donation-shelf-renderer">\n  <template is="dom-if" if="[[isCollapsed]]" class="style-scope ytd-donation-shelf-renderer">\n    <div id="show-more" on-click="onShowMore" class="style-scope ytd-donation-shelf-renderer">\n      <yt-formatted-string text="[[data.showMoreText]]" class="style-scope ytd-donation-shelf-renderer"></yt-formatted-string>\n    </div>\n  </template>\n  <template is="dom-if" if="[[!isCollapsed]]" class="style-scope ytd-donation-shelf-renderer">\n    <div id="show-less" on-click="onShowLess" class="style-scope ytd-donation-shelf-renderer">\n      <yt-formatted-string text="[[data.showLessText]]" class="style-scope ytd-donation-shelf-renderer"></yt-formatted-string>\n    </div>\n  </template>\n</div>\n');a.content.insertBefore(_.w().content.cloneNode(!0),
a.content.firstChild);return K6G=a},{mode:1});var F6G;var HuN=function(){return _.G.apply(this,arguments)||this};
_.b(HuN,_.G);_.L([_.x(),_.p("design:type",Object)],HuN.prototype,"data",void 0);_.L([_.U({is:"ytd-donation-unavailable-renderer",disableElementRegistration:!0})],HuN);
_.D(HuN,"ytd-donation-unavailable-renderer",function(){if(F6G!==void 0)return F6G;var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-donation-unavailable-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="wrapper" class="style-scope ytd-donation-unavailable-renderer">\n  <yt-formatted-string id="message" text="[[data.text]]" class="style-scope ytd-donation-unavailable-renderer">\n  </yt-formatted-string>\n</div>\n');a.content.insertBefore(_.w().content.cloneNode(!0),
a.content.firstChild);return F6G=a},{mode:1});var buI;var O7=function(){return _.G.apply(this,arguments)||this};
_.b(O7,_.G);O7.prototype.computeIconType=function(a){return a?"yt-icons:"+a.toLowerCase():null};
_.L([_.Q(_.k.YtRendererBehavior),_.p("design:type",Object)],O7.prototype,"ytRendererBehavior",void 0);_.L([_.x(),_.p("design:type",Object)],O7.prototype,"data",void 0);_.L([_.U({is:"ytd-limited-state-message-renderer",disableElementRegistration:!0})],O7);
_.D(O7,"ytd-limited-state-message-renderer",function(){if(buI!==void 0)return buI;var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-limited-state-message-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-limited-state-message-renderer">\n  <yt-icon icon="[[computeIconType(data.icon.iconType)]]" class="style-scope ytd-limited-state-message-renderer"></yt-icon>\n  <yt-formatted-string id="title" text="[[data.headerText]]" class="style-scope ytd-limited-state-message-renderer"></yt-formatted-string>\n</div>\n<yt-formatted-string id="subtext" text="[[data.subtext]]" class="style-scope ytd-limited-state-message-renderer"></yt-formatted-string>\n<div id="action-buttons" class="style-scope ytd-limited-state-message-renderer">\n  <ytd-button-renderer data="[[data.learnMoreButton.buttonRenderer]]" class="style-scope ytd-limited-state-message-renderer"></ytd-button-renderer>\n  <ytd-button-renderer data="[[data.goHomeButton.buttonRenderer]]" class="style-scope ytd-limited-state-message-renderer">\n  </ytd-button-renderer>\n</div>\n');a.content.insertBefore(_.w().content.cloneNode(!0),
a.content.firstChild);return buI=a},{mode:1});var hE9;var fb=function(){return _.G.apply(this,arguments)||this};
_.b(fb,_.G);fb.prototype.configureRendererStamper=function(){return{"data.subscribeButton":{id:"subscribe-button",mapping:{subscribeButtonRenderer:"ytd-subscribe-button-renderer",buttonRenderer:"ytd-button-renderer"}}}};
fb.prototype.onTap=function(a){var z=this.data&&this.data.endpoint;z&&!_.qK(_.ch(a),this.hostElement,["YTD-SUBSCRIBE-BUTTON-RENDERER","YTD-BUTTON-RENDERER"])&&_.PA(this.hostElement,"yt-navigate",{endpoint:z})};
_.L([_.Q(_.u4.YtRendererstamperBehavior),_.p("design:type",Object)],fb.prototype,"ytRendererstamperBehavior",void 0);_.L([_.Q(_.k.YtRendererBehavior),_.p("design:type",Object)],fb.prototype,"ytRendererBehavior",void 0);_.L([_.x(),_.p("design:type",Object)],fb.prototype,"data",void 0);_.L([_.U({is:"ytd-autotagging-metadata-renderer",disableElementRegistration:!0})],fb);
_.D(fb,"ytd-autotagging-metadata-renderer",function(){if(hE9!==void 0)return hE9;var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-autotagging-metadata-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="outer-container" on-tap="onTap" class="style-scope ytd-autotagging-metadata-renderer">\n  <ytd-thumbnail circular="" data="[[data]]" class="style-scope ytd-autotagging-metadata-renderer">\n  </ytd-thumbnail>\n  <div id="right-container" class="style-scope ytd-autotagging-metadata-renderer">\n    <div id="title-container" class="style-scope ytd-autotagging-metadata-renderer">\n      <div id="title" class="style-scope ytd-autotagging-metadata-renderer">\n        [[getSimpleString(data.title)]]\n      </div>\n      <ytd-badge-supported-renderer id="badges" badges="[[data.badges]]" hidden="[[!data.badges]]" class="style-scope ytd-autotagging-metadata-renderer">\n      </ytd-badge-supported-renderer>\n    </div>\n    <div id="subscribe-button" class="style-scope ytd-autotagging-metadata-renderer"></div>\n  </div>\n</div>\n');a.content.insertBefore(_.w().content.cloneNode(!0),
a.content.firstChild);return hE9=a},{mode:1});var Vd4;var Aw=function(){return _.G.apply(this,arguments)||this};
_.b(Aw,_.G);Aw.prototype.configureRendererStamper=function(){return{"data.contents":{id:"contents",mapping:{autotaggingMetadataRenderer:"ytd-autotagging-metadata-renderer"}}}};
_.L([_.Q(_.u4.YtRendererstamperBehavior),_.p("design:type",Object)],Aw.prototype,"ytRendererstamperBehavior",void 0);_.L([_.Q(_.k.YtRendererBehavior),_.p("design:type",Object)],Aw.prototype,"ytRendererBehavior",void 0);_.L([_.x(),_.p("design:type",Object)],Aw.prototype,"data",void 0);_.L([_.U({is:"ytd-autotagging-metadata-row-renderer",disableElementRegistration:!0})],Aw);
_.D(Aw,"ytd-autotagging-metadata-row-renderer",function(){if(Vd4!==void 0)return Vd4;var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-autotagging-metadata-row-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-autotagging-metadata-row-renderer">\n  [[getSimpleString(data.header)]]\n</div>\n<div id="contents" class="style-scope ytd-autotagging-metadata-row-renderer"></div>\n');
a.content.insertBefore(_.w().content.cloneNode(!0),a.content.firstChild);return Vd4=a},{mode:1});var Qla;var Sk4;var s7=function(){var a=_.G.apply(this,arguments)||this;a.engagementPanelContent=!1;return a};
_.b(s7,_.G);s7.prototype.computeHasDividerLine=function(a,z){return a&&!z};
_.L([_.Q(_.k.YtRendererBehavior),_.p("design:type",Object)],s7.prototype,"ytRendererBehavior",void 0);_.L([_.x(),_.p("design:type",Object)],s7.prototype,"data",void 0);_.L([_.x({reflectToAttribute:!0,computed:"computeHasDividerLine(data.hasDividerLine, engagementPanelContent)"}),_.p("design:type",Boolean)],s7.prototype,"hasDividerLine",void 0);_.L([_.x(),_.p("design:type",Object)],s7.prototype,"engagementPanelContent",void 0);
_.L([_.U({is:"ytd-metadata-row-header-renderer",disableElementRegistration:!0})],s7);
_.D(s7,"ytd-metadata-row-header-renderer",function(){if(Sk4!==void 0)return Sk4;var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-metadata-row-header-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<h4 id="content" class="style-scope ytd-metadata-row-header-renderer">\n  <yt-formatted-string class="content style-scope ytd-metadata-row-header-renderer" text="[[data.content]]"></yt-formatted-string>\n</h4>\n');a.content.insertBefore(_.w().content.cloneNode(!0),
a.content.firstChild);return Sk4=a},{mode:1});var iuN;var nb=function(){return _.G.apply(this,arguments)||this};
_.b(nb,_.G);nb.prototype.computeHasDividerLine=function(a){return a};
_.L([_.Q(_.k.YtRendererBehavior),_.p("design:type",Object)],nb.prototype,"ytRendererBehavior",void 0);_.L([_.x(),_.p("design:type",Object)],nb.prototype,"data",void 0);_.L([_.x({reflectToAttribute:!0,computed:"computeHasDividerLine(data.hasDividerLine)"}),_.p("design:type",Boolean)],nb.prototype,"hasDividerLine",void 0);_.L([_.U({is:"ytd-metadata-row-renderer",disableElementRegistration:!0})],nb);
_.D(nb,"ytd-metadata-row-renderer",function(){if(iuN!==void 0)return iuN;var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-metadata-row-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<h4 id="title" hidden$="[[!data.title]]" class="style-scope ytd-metadata-row-renderer">\n  <yt-formatted-string text="[[data.title]]" class="style-scope ytd-metadata-row-renderer"></yt-formatted-string>\n</h4>\n<div id="content" with-extra-margin$="[[!data.title]]" class="style-scope ytd-metadata-row-renderer">\n  <template is="dom-repeat" items="[[data.contents]]" class="style-scope ytd-metadata-row-renderer">\n    <yt-formatted-string class="content content-line-height-override style-scope ytd-metadata-row-renderer" text="[[item]]">\n    </yt-formatted-string>\n  </template>\n</div>\n');
a.content.insertBefore(_.w().content.cloneNode(!0),a.content.firstChild);return iuN=a},{mode:1});var xR9;var Kb=function(){return _.G.apply(this,arguments)||this};
_.b(Kb,_.G);_.L([_.Q(_.k.YtRendererBehavior),_.p("design:type",Object)],Kb.prototype,"ytRendererBehavior",void 0);_.L([_.x(),_.p("design:type",Object)],Kb.prototype,"data",void 0);_.L([_.U({is:"ytd-metadata-with-image-row-renderer",disableElementRegistration:!0})],Kb);
_.D(Kb,"ytd-metadata-with-image-row-renderer",function(){if(xR9!==void 0)return xR9;var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-metadata-with-image-row-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<a class="yt-simple-endpoint style-scope ytd-metadata-with-image-row-renderer" href$="[[computeHref_(data.thumbnailEndpoint)]]" data="[[data.thumbnailEndpoint]]">\n  <yt-img-shadow thumbnail="[[data.thumbnail]]" width="83" class="style-scope ytd-metadata-with-image-row-renderer">\n  </yt-img-shadow>\n  <div id="content" class="style-scope ytd-metadata-with-image-row-renderer">\n    <template is="dom-repeat" as="content" items="[[data.contents]]" strip-whitespace="" class="style-scope ytd-metadata-with-image-row-renderer">\n      <span class="content-text style-scope ytd-metadata-with-image-row-renderer">[[getSimpleString(content)]]</span>\n    </template>\n  </div>\n</a>\n');a.content.insertBefore(_.w().content.cloneNode(!0),
a.content.firstChild);return xR9=a},{mode:1});var vxj;var FV=function(){var a=_.G.apply(this,arguments)||this;a.rounded=!0;a.fixie=!1;a.fullWidth=!1;return a};
_.b(FV,_.G);_.Z=FV.prototype;_.Z.configureRendererStamper=function(){return{"data.informationButton":{id:"information-button-container",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.Z.onDataChanged=function(){var a=this;this.data&&!this.endpointHref&&(this.endpointLink.classList.add("button-mode"),this.endpointLink.setAttribute("tabindex","0"),this.endpointLink.setAttribute("role","button"),this.endpointLink.addEventListener("keypress",function(z){a.onEndpointLinkKeyPress(z)}))};
_.Z.onEndpointLinkKeyPress=function(a){a.target===this.endpointLink&&a.keyCode===13&&_.PA(this.hostElement,"click")};
_.Z.onClick=function(){if(!this.endpointHref){this.endpointLink.blur();var a;if((a=this.data)==null?0:a.endpoint)_.tR(this.hostElement,[this.data.endpoint],this.hostElement),this.ytRendererBehavior.logExplicitClick(this.data)}};
_.Z.onYtNavigate=function(a){this.endpointHref||(a.stopPropagation(),a.preventDefault())};
_.Z.onInformationButtonContainerClick=function(a){a.target.id!=="information-button-container"&&(a.stopPropagation(),a.preventDefault())};
_.Z.computeStyle=function(a){return a};
_.Z.computeIsThumbnailStyle=function(a){return a==="RICH_METADATA_RENDERER_STYLE_THUMBNAIL"};
_.Z.computeThumbnailWidth=function(a){switch(a){case "RICH_METADATA_RENDERER_STYLE_THUMBNAIL":return 178;case "RICH_METADATA_RENDERER_STYLE_BOX_ART":return 72;case "RICH_METADATA_RENDERER_STYLE_TOPIC":return 96;case "RICH_METADATA_RENDERER_STYLE_SQUARE":return 100;default:return 68}};
_.Z.computeThumbnailObjectFit=function(a){switch(a){case "RICH_METADATA_RENDERER_STYLE_SQUARE":return"CONTAIN"}};
_.eH.Object.defineProperties(FV.prototype,{endpointHref:{configurable:!0,enumerable:!0,get:function(){var a;return((a=this.data)==null?0:a.endpoint)?this.componentBehavior.computeOptionalHref_(this.data.endpoint):null}}});
FV.prototype.onYtNavigate=FV.prototype.onYtNavigate;FV.prototype.onClick=FV.prototype.onClick;FV.prototype.onDataChanged=FV.prototype.onDataChanged;_.L([_.Q(_.k.YtRendererBehavior),_.p("design:type",Object)],FV.prototype,"ytRendererBehavior",void 0);_.L([_.Q(_.Ms.YtComponentBehavior),_.p("design:type",Object)],FV.prototype,"componentBehavior",void 0);_.L([_.Q(_.u4.YtRendererstamperBehavior),_.p("design:type",Object)],FV.prototype,"ytRendererstamperBehavior",void 0);
_.L([_.x(),_.p("design:type",Object)],FV.prototype,"data",void 0);_.L([_.x({reflectToAttribute:!0,computed:"computeStyle(data.style)"}),_.p("design:type",String)],FV.prototype,"componentStyle",void 0);_.L([_.x({computed:"computeIsThumbnailStyle(data.style)"}),_.p("design:type",Boolean)],FV.prototype,"isThumbnailStyle",void 0);_.L([_.x({computed:"computeThumbnailObjectFit(data.style)"}),_.p("design:type",String)],FV.prototype,"thumbnailObjectFit",void 0);
_.L([_.x({computed:"computeThumbnailWidth(data.style)"}),_.p("design:type",Number)],FV.prototype,"thumbnailWidth",void 0);_.L([_.x({reflectToAttribute:!0}),_.p("design:type",Object)],FV.prototype,"rounded",void 0);_.L([_.x({reflectToAttribute:!0}),_.p("design:type",Object)],FV.prototype,"fixie",void 0);_.L([_.x({reflectToAttribute:!0}),_.p("design:type",Object)],FV.prototype,"fullWidth",void 0);_.L([_.A3("#endpoint-link"),_.p("design:type",HTMLAnchorElement)],FV.prototype,"endpointLink",void 0);
_.L([_.O8("data"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],FV.prototype,"onDataChanged",null);_.L([_.S("data.endpoint"),_.p("design:type",Object),_.p("design:paramtypes",[])],FV.prototype,"endpointHref",null);_.L([_.gz("click"),_.p("design:type",Function),_.p("design:paramtypes",[Event]),_.p("design:returntype")],FV.prototype,"onClick",null);
_.L([_.gz("yt-navigate"),_.p("design:type",Function),_.p("design:paramtypes",[CustomEvent]),_.p("design:returntype")],FV.prototype,"onYtNavigate",null);_.L([_.U({is:"ytd-rich-metadata-renderer",disableElementRegistration:!0})],FV);
_.D(FV,"ytd-rich-metadata-renderer",function(){if(vxj!==void 0)return vxj;var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-rich-metadata-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<a id="endpoint-link" class="yt-simple-endpoint style-scope ytd-rich-metadata-renderer" href$="[[endpointHref]]" data="[[data.endpoint]]">\n  <template is="dom-if" restamp="" if="[[isThumbnailStyle]]" class="style-scope ytd-rich-metadata-renderer">\n    <ytd-thumbnail id="thumbnail" data="[[data]]" width="[[thumbnailWidth]]" class="style-scope ytd-rich-metadata-renderer">\n    </ytd-thumbnail>\n  </template>\n  <template is="dom-if" restamp="" if="[[!isThumbnailStyle]]" class="style-scope ytd-rich-metadata-renderer">\n    <div id="thumbnail" class="style-scope ytd-rich-metadata-renderer">\n      <yt-img-shadow object-fit="[[thumbnailObjectFit]]" thumbnail="[[data.thumbnail]]" width="[[thumbnailWidth]]" class="style-scope ytd-rich-metadata-renderer">\n      </yt-img-shadow>\n    </div>\n  </template>\n  <div id="text-container" class="style-scope ytd-rich-metadata-renderer">\n    <div id="title" class="style-scope ytd-rich-metadata-renderer">[[getSimpleString(data.title)]]</div>\n    <div id="subtitle" hidden$="[[!data.subtitle]]" class="style-scope ytd-rich-metadata-renderer">\n      [[getSimpleString(data.subtitle)]]\n    </div>\n    <ytd-badge-supported-renderer id="badges" badges="[[data.badges]]" hidden="[[!data.badges]]" class="style-scope ytd-rich-metadata-renderer">\n    </ytd-badge-supported-renderer>\n    <div id="call-to-action" class="style-scope ytd-rich-metadata-renderer">\n      <div class="style-scope ytd-rich-metadata-renderer">[[getSimpleString(data.callToAction)]]</div>\n      <yt-icon hidden="[[!data.callToActionIcon]]" icon="[[data.callToActionIcon.iconType]]" class="style-scope ytd-rich-metadata-renderer">\n      </yt-icon>\n    </div>\n  </div>\n  <div id="information-button-container" on-click="onInformationButtonContainerClick" hidden="[[!data.informationButton]]" class="style-scope ytd-rich-metadata-renderer"></div>\n</a>\n');a.content.insertBefore(_.w().content.cloneNode(!0),
a.content.firstChild);return vxj=a},{mode:_.Np("kevlar_poly_si_batch_j075")?1:2});var Gjx;var Hf=function(){var a=_.G.apply(this,arguments)||this;a.fixie=!1;a.fullWidth=!1;return a};
_.b(Hf,_.G);Hf.prototype.configureRendererStamper=function(){return{"data.contents":{id:"contents",mapping:{richMetadataRenderer:{component:"ytd-rich-metadata-renderer",properties:{fixie:"[[fixie]]",fullWidth:"[[fullWidth]]"}}}}}};
Hf.prototype.computeHasDividerLine=function(a){return a};
_.L([_.Q(_.u4.YtRendererstamperBehavior),_.p("design:type",Object)],Hf.prototype,"ytRendererstamperBehavior",void 0);_.L([_.x(),_.p("design:type",Object)],Hf.prototype,"data",void 0);_.L([_.x({reflectToAttribute:!0,computed:"computeHasDividerLine(data.hasDividerLine)"}),_.p("design:type",Boolean)],Hf.prototype,"hasDividerLine",void 0);_.L([_.x({reflectToAttribute:!0}),_.p("design:type",Object)],Hf.prototype,"fixie",void 0);_.L([_.x(),_.p("design:type",Object)],Hf.prototype,"fullWidth",void 0);
_.L([_.U({is:"ytd-rich-metadata-row-renderer",disableElementRegistration:!0})],Hf);
_.D(Hf,"ytd-rich-metadata-row-renderer",function(){if(Gjx!==void 0)return Gjx;var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-rich-metadata-row-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="contents" class="style-scope ytd-rich-metadata-row-renderer"></div>\n');a.content.insertBefore(_.w().content.cloneNode(!0),a.content.firstChild);return Gjx=a},{mode:1});var bR=function(){var a=_.G.apply(this,arguments)||this;a.engagementPanelContent=!1;a.fixie=!1;a.fullWidth=!1;return a};
_.b(bR,_.G);
bR.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"}}}};
bR.prototype.computeCollapsibleItems=function(a,z,I){return a===void 0||z===void 0||I===void 0||I?[]:a.slice(z)};
bR.prototype.computeAlwaysShownItems=function(a,z){return a&&a.length?a.slice(0,z):[]};
_.L([_.Q(_.k.YtRendererBehavior),_.p("design:type",Object)],bR.prototype,"ytRendererBehavior",void 0);_.L([_.Q(_.u4.YtRendererstamperBehavior),_.p("design:type",Object)],bR.prototype,"ytRendererstamperBehavior",void 0);_.L([_.x(),_.p("design:type",Object)],bR.prototype,"data",void 0);_.L([_.x({value:!1}),_.p("design:type",Boolean)],bR.prototype,"collapsed",void 0);
_.L([_.x({computed:"computeAlwaysShownItems(data.rows,data.collapsedItemCount)"}),_.p("design:type",Array)],bR.prototype,"alwaysShownItems",void 0);_.L([_.x({computed:"computeCollapsibleItems(data.rows,data.collapsedItemCount,collapsed)"}),_.p("design:type",Array)],bR.prototype,"collapsibleItems",void 0);_.L([_.x(),_.p("design:type",Object)],bR.prototype,"engagementPanelContent",void 0);_.L([_.x(),_.p("design:type",Object)],bR.prototype,"fixie",void 0);
_.L([_.x(),_.p("design:type",Object)],bR.prototype,"fullWidth",void 0);_.L([_.U({is:"ytd-metadata-row-container-renderer",disableElementRegistration:!0})],bR);
_.D(bR,"ytd-metadata-row-container-renderer",function(){if(Qla!==void 0)return Qla;var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-metadata-row-container-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="always-shown" class="style-scope ytd-metadata-row-container-renderer"></div>\n<div id="collapsible" hidden="[[collapsed]]" class="style-scope ytd-metadata-row-container-renderer"></div>\n');a.content.insertBefore(_.w().content.cloneNode(!0),
a.content.firstChild);return Qla=a},{mode:1});var $Rx;var hw=function(){var a=_.G.apply(this,arguments)||this;a.currentPageUrl="";a.baseUrl="";a.isHiddenByUser=null;a.hidden=!1;a.showAboveScrim=!1;a.watchNextGrid=_.K("kevlar_watch_grid");a.modernButtons=_.K("web_modern_buttons");a.roundedContainer=!0;a.noBorder=!1;a.roundBackground=!_.K("live_chat_round_background_killswitch");a.overflowHideChat=_.K("live_chat_overflow_hide_chat");a.forceDarkTheme=!1;a.theaterWatchWhile=!1;a.isListeningForPlayerProgress=!1;a.JSC$22455_playerEvents=new Map;a.isFrameReady=
!1;a.player=null;a.actionMap={"yt-set-live-chat-collapsed-state-action":"setCollapsedState","yt-forward-redux-action-to-live-chat-iframe":"forwardReduxActionToIframe","yt-dark-theme-action":"onDarkThemeAction","yt-light-theme-action":"onLightThemeAction","yt-signal-action-close-pdg-buy-flow":"onClosePdgBuyFlow"};return a};
_.b(hw,_.G);_.Z=hw.prototype;_.Z.onShowHideChat=function(){this.isHiddenByUser=!this.collapsed;_.Ct(this.hostElement,"yt-set-live-chat-collapsed",[this.collapsed])};
_.Z.created=function(){var a=this;this.handleIframeEventListener=function(z){a.handleIframeEvent(z)};
this.handleKeyboardEventListener=function(z){a.handleKeyboardEvent(z)};
this.JSC$22455_playerEvents.set("onVideoProgress",this.playerProgressHandler);this.JSC$22455_playerEvents.set("onAdStart",this.playerAdStartHandler);this.JSC$22455_playerEvents.set("onAdEnd",this.playerAdEndHandler);this.JSC$22455_playerEvents.set("onStateChange",this.playerStateChangeHandler);this.JSC$22455_playerEvents.set("onLoopRangeChange",this.onLoopRangeChange)};
_.Z.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()};
_.Z.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};
_.Z.computeBaseUrl=function(a){var z="/live_chat";this.isChatReplay()&&(z="/live_chat_replay");return _.rG(_.J4(_.IR(_.Rf(a),z),null),"").toString()};
_.Z.dataChanged=function(){_.K("web_watch_theater_chat")&&(this.isHiddenByUser=null)};
_.Z.urlChanged=function(){if(this.url!==void 0){this.isFrameReady=!this.isChatReplay();var a=this.url;if(this.isChatReplay()&&this.player){var z=Math.floor(this.player.getProgressState().current*1E3);a=_.lE(_.Rf(a),"playerOffsetMs",z.toString()).toString()}z=this.chatframe;try{var I=a==="about:blank"?_.fiw:_.XG(a),J=z.contentDocument.location,r=_.W9(I);r!==void 0&&J.replace(r)}catch(P){z.src=a}}};
_.Z.collapsedChanged=function(){_.PA(this.hostElement,"yt-chat-collapsed-changed",this.collapsed)};
_.Z.handleIframeEvent=function(a){if(a&&this.baseUrl.startsWith(a.origin)&&a.source===this.chatframe.contentWindow&&_.md(a.data))if(a.data["yt-iframed-buyflow-launcher"])this.handleBuyflowMessages(a);else if(a.data["yt-iframed-player-progress-relay"])this.handleChatFrameReady();else if(a.data["yt-show-feedback-dialog"]){var z=_.ab().resolve(_.eL(_.Jhf));if(z){var I=a.ports,J;I&&I.length&&(J=function(){I[0].postMessage({})});
a=a.data["yt-show-feedback-dialog"];z.showFeedbackDialog(a.customProductData,a.feedbackContent,J,a.bucket)}}else if(a.data["yt-show-survey"])_.PA(this.hostElement,"yt-show-survey",a.data["yt-show-survey"]);else if(a.data["yt-purchase-membership"])_.ab().resolve(_.j6).resolveCommand(a.data["yt-purchase-membership"],{form:{element:this.hostElement}});else if(a.data["yt-tunnel-out-live-service-request"])this.ytComponentBehavior.resolveCommand(a.data["yt-tunnel-out-live-service-request"]);else if(a.data["yt-user-activity"])_.zx();
else if(a.data["yt-attach-live-chat-response-tracking-params"])this.attachLiveChatResponseVeTrackingParams(a.data["yt-attach-live-chat-response-tracking-params"].trackingParams);else if(a.data["yt-open-popup"])this.ytOpenPopupBehavior.openPopup(a.data["yt-open-popup"]);else if(a.data["yt-log-flow-logging-event-command"])this.ytComponentBehavior.resolveCommand(a.data["yt-log-flow-logging-event-command"]);else if(a.data["yt-hide-live-chat"])this.onShowHideChat();else a.data["yt-report-moderation-state-log"]&&
this.player&&(z={cpn:this.player.getVideoData().cpn},_.x0("liveChatBeingModerated",z))};
_.Z.attachLiveChatResponseVeTrackingParams=function(a){a=_.VX(a);var z=_.TX(),I=_.DH("liveChatRenderer.trackingParams",this.data);z&&I&&_.Lt(z,_.VX(I),a)};
_.Z.handleBuyflowMessages=function(a){var z=a.data["yt-iframed-buyflow-launcher"].encryptedPurchaseParams,I=a.data["yt-iframed-buyflow-launcher"].serializedTransactionFlowLoggingParams,J=a.data["yt-iframed-buyflow-launcher"].serializedPaymentsClientParams;_.lr7(_.ji(_.M1),z.replace(/-/g,"+").replace(/_/g,"/"),function(r){a.ports[0].postMessage({success:!0,buyFlowResponse:r})},void 0,function(r){a.ports[0].postMessage({success:!1,
error:r&&r.message||"Buyflow rejected without error."})},_.Kt().get("hl"),void 0,function(){a.ports[0].postMessage({closed:!0})},I,J)};
_.Z.setupPlayerProgressRelay=function(){var a=this;if(!this.isListeningForPlayerProgress){var z=_.IK();z!=null&&z.getPlayerPromise&&(z.getPlayerPromise().then(function(I){a.playerApiReady(I)}),this.isListeningForPlayerProgress=!0)}};
_.Z.handleChatFrameReady=function(){this.isFrameReady=!0;this.player&&this.player.getAdState()===1&&this.postToContentWindow({"yt-player-ad-start":""})};
_.Z.playerApiReady=function(a){this.setPlayer(a)};
_.Z.playerProgressHandler=function(){if(this.player){var a=this.player.getProgressState();this.postToContentWindow({"yt-player-video-progress":a.current})}};
_.Z.playerAdStartHandler=function(a){this.postToContentWindow({"yt-player-ad-start":a})};
_.Z.playerAdEndHandler=function(){this.postToContentWindow({"yt-player-ad-end":!0})};
_.Z.playerStateChangeHandler=function(a){this.postToContentWindow({"yt-player-state-change":a})};
_.Z.setPlayer=function(a){this.player&&this.ytPlayerListenerBehavior.unlistenFromPlayerEvents(this.player,this.JSC$22455_playerEvents);a&&(this.player=a,this.ytPlayerListenerBehavior.listenToPlayerEvents(a,this.JSC$22455_playerEvents),_.PA(this.hostElement,"player-api-ready"))};
_.Z.liveChatPageUrl=function(a,z,I,J){return!I||z?"about:blank":I.liveChatRenderer?(z=_.Rf(this.currentPageUrl).JSC$9989_queryData_,uM9(z),a=_.Rf(a),z.add("continuation",I.liveChatRenderer.continuations[0].reloadContinuationData.continuation),I=_.xh()==="USER_INTERFACE_THEME_DARK",(J||I)&&z.add("dark_theme","true"),_.J4(a,z),J=_.Rf(a.toString()),I=J.JSC$9989_queryData_,"SESSION_INDEX"in _.GZ&&(I.add("authuser",_.Xw("SESSION_INDEX")),"DELEGATED_SESSION_ID"in _.GZ&&I.add("pageId",_.Xw("DELEGATED_SESSION_ID"))),
"INNERTUBE_CONTEXT_SERIALIZED_DELEGATION_CONTEXT"in _.GZ&&I.add("sdc",_.Xw("INNERTUBE_CONTEXT_SERIALIZED_DELEGATION_CONTEXT")),J.toString()):""};
_.Z.isCollapsed=function(a,z){return z!==null?z:this.isChatReplay()||a&&a.conversationBarRenderer&&a.conversationBarRenderer.availabilityMessage?!0:a?a.liveChatRenderer?a.liveChatRenderer.initialDisplayState==="LIVE_CHAT_DISPLAY_STATE_COLLAPSED":!_.K("live_chat_hide_premiere_replay_message")||a.conversationBarRenderer&&a.conversationBarRenderer.availabilityMessage?!1:!0:!1};
_.Z.isHidden=function(a,z,I){var J=z&&z.conversationBarRenderer&&z.conversationBarRenderer.availabilityMessage,r=z&&z.liveChatRenderer&&z.liveChatRenderer.showHideButton,P=z&&z.liveChatRenderer&&z.liveChatRenderer.showButton;return I&&a&&!J&&!P||!I&&a&&!J&&!r?!0:z&&z.liveChatRenderer&&z.liveChatRenderer.initialDisplayState?z.liveChatRenderer.initialDisplayState==="LIVE_CHAT_DISPLAY_STATE_HIDDEN":!1};
_.Z.computeButtonOverride=function(a,z){if(a&&z)return{type:"outline"}};
_.Z.setCollapsedState=function(a){_.H(a,_.vQw)&&(this.isHiddenByUser=!!_.H(a,_.vQw).collapsed,!this.isHiddenByUser&&_.K("enable_teaser_framework_web_client")&&_.ZF(this.hostElement,"yt-scroll-to-watch-element",[this.hostElement]))};
_.Z.forwardReduxActionToIframe=function(a){this.postToContentWindow({"yt-live-chat-forward-redux-action":a})};
_.Z.onLoopRangeChange=function(a){this.showAboveScrim=!(a==null||!a.postId)};
_.Z.onDarkThemeAction=function(){this.sendDarkThemePostMessage(!0)};
_.Z.onLightThemeAction=function(){this.sendDarkThemePostMessage(!1)};
_.Z.onClosePdgBuyFlow=function(){this.postToContentWindow({"yt-live-chat-close-buy-flow":!0})};
_.Z.sendDarkThemePostMessage=function(a){this.postToContentWindow({"yt-live-chat-set-dark-theme":a})};
_.Z.onLiveChatBuyFlowCallback=function(a){this.postToContentWindow({"yt-live-chat-buy-flow-callback":a})};
_.Z.handleKeyboardEvent=function(a){(0,_.x8.containsValue)(tux,a.keyCode)&&this.postToContentWindow({"yt-live-chat-keyboard-event":{eventType:a.type,keyCode:a.keyCode}})};
_.Z.isChatReplay=function(){return!!(this.data&&this.data.liveChatRenderer&&this.data.liveChatRenderer.isReplay)};
_.Z.postToContentWindow=function(a){if(this.isFrameReady)try{var z=window.location.protocol+"//"+window.location.host,I;(I=this.chatframe)!=null&&I.contentWindow?this.chatframe.contentWindow.postMessage(a,z):_.Xd(new _.Fn("Tried posting a message to an iframe with no content window",a))}catch(J){_.Gx(J)}};
_.Z.shouldHideChatFrame=function(a){return a&&_.K("hide_live_chat_button_when_collapsed")};
_.eH.Object.defineProperties(hw.prototype,{enableShowWithoutHideChatButton:{configurable:!0,enumerable:!0,get:function(){if(_.K("live_chat_overflow_hide_chat")||_.K("web_watch_chat_hide_button_killswitch"))return _.K("live_chat_overflow_hide_chat");var a,z,I,J;return!!((a=this.data)==null?0:(z=a.liveChatRenderer)==null?0:(I=z.header)==null?0:(J=I.liveChatHeaderRenderer)==null?0:J.collapseButton)}}});
hw.prototype.collapsedChanged=hw.prototype.collapsedChanged;hw.prototype.urlChanged=hw.prototype.urlChanged;hw.prototype.dataChanged=hw.prototype.dataChanged;hw.prototype.onShowHideChat=hw.prototype.onShowHideChat;_.L([_.Q(_.Hc.YtActionHandlerBehavior),_.p("design:type",Object)],hw.prototype,"ytActionHandlerBehavior",void 0);_.L([_.Q(_.k.YtRendererBehavior),_.p("design:type",Object)],hw.prototype,"ytRendererBehavior",void 0);
_.L([_.Q(_.Ms.YtComponentBehavior),_.p("design:type",Object)],hw.prototype,"ytComponentBehavior",void 0);_.L([_.Q(_.jz.YtPlayerListenerBehavior),_.p("design:type",_.z4)],hw.prototype,"ytPlayerListenerBehavior",void 0);_.L([_.Q(_.K_.YtOpenPopupBehavior),_.p("design:type",Object)],hw.prototype,"ytOpenPopupBehavior",void 0);_.L([_.x(),_.p("design:type",Object)],hw.prototype,"data",void 0);_.L([_.x(),_.p("design:type",Object)],hw.prototype,"currentPageUrl",void 0);
_.L([_.x({computed:"computeBaseUrl(currentPageUrl,data)"}),_.p("design:type",Object)],hw.prototype,"baseUrl",void 0);_.L([_.x({computed:"liveChatPageUrl(baseUrl, collapsed, data, forceDarkTheme)"}),_.p("design:type",String)],hw.prototype,"url",void 0);_.L([_.x(),_.p("design:type",Object)],hw.prototype,"isHiddenByUser",void 0);_.L([_.x({reflectToAttribute:!0,computed:"isHidden(collapsed, data, enableShowWithoutHideChatButton)"}),_.p("design:type",Object)],hw.prototype,"hidden",void 0);
_.L([_.x({reflectToAttribute:!0,computed:"isCollapsed(data,isHiddenByUser)"}),_.p("design:type",Boolean)],hw.prototype,"collapsed",void 0);_.L([_.x({reflectToAttribute:!0,computed:"shouldHideChatFrame(collapsed)"}),_.p("design:type",Boolean)],hw.prototype,"hideChatFrame",void 0);_.L([_.x({reflectToAttribute:!0}),_.p("design:type",Object)],hw.prototype,"showAboveScrim",void 0);_.L([_.x({reflectToAttribute:!0}),_.p("design:type",Object)],hw.prototype,"watchNextGrid",void 0);
_.L([_.x({reflectToAttribute:!0}),_.p("design:type",Boolean)],hw.prototype,"modernButtons",void 0);_.L([_.x({reflectToAttribute:!0}),_.p("design:type",Object)],hw.prototype,"roundedContainer",void 0);_.L([_.x({reflectToAttribute:!0}),_.p("design:type",Object)],hw.prototype,"noBorder",void 0);_.L([_.x({reflectToAttribute:!0}),_.p("design:type",Boolean)],hw.prototype,"roundBackground",void 0);
_.L([_.x({computed:"computeButtonOverride(collapsed,modernButtons)"}),_.p("design:type",Object)],hw.prototype,"toggleButtonOverride",void 0);_.L([_.x({reflectToAttribute:!0}),_.p("design:type",Boolean)],hw.prototype,"overflowHideChat",void 0);_.L([_.x({reflectToAttribute:!0}),_.p("design:type",Object)],hw.prototype,"forceDarkTheme",void 0);_.L([_.S("data"),_.p("design:type",Boolean),_.p("design:paramtypes",[])],hw.prototype,"enableShowWithoutHideChatButton",null);
_.L([_.x({reflectToAttribute:!0}),_.p("design:type",Object)],hw.prototype,"theaterWatchWhile",void 0);_.L([_.A3("#chatframe"),_.p("design:type",HTMLIFrameElement)],hw.prototype,"chatframe",void 0);_.L([_.gz("yt-toggle-button"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],hw.prototype,"onShowHideChat",null);_.L([_.Fe("data"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],hw.prototype,"dataChanged",null);
_.L([_.O8("url"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],hw.prototype,"urlChanged",null);_.L([_.O8("collapsed"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],hw.prototype,"collapsedChanged",null);_.L([_.U({is:"ytd-live-chat-frame",disableElementRegistration:!0})],hw);
_.D(hw,"ytd-live-chat-frame",function(){if($Rx!==void 0)return $Rx;var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-live-chat-frame--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<iframe frameborder="0" scrolling="no" id="chatframe" class="style-scope ytd-live-chat-frame"></iframe>\n<template is="dom-if" if="[[data.conversationBarRenderer.availabilityMessage]]" class="style-scope ytd-live-chat-frame">\n  <ytd-message-renderer data="[[data.conversationBarRenderer.availabilityMessage.messageRenderer]]" class="style-scope ytd-live-chat-frame">\n  </ytd-message-renderer>\n</template>\n<template is="dom-if" if="[[!enableShowWithoutHideChatButton]]" class="style-scope ytd-live-chat-frame">\n  <div id="show-hide-button" class="style-scope ytd-live-chat-frame">\n    <ytd-toggle-button-renderer data="[[data.liveChatRenderer.showHideButton.toggleButtonRenderer]]" noink="" overrides="[[toggleButtonOverride]]" class="style-scope ytd-live-chat-frame">\n    </ytd-toggle-button-renderer>\n  </div>\n</template>\n<template is="dom-if" if="[[enableShowWithoutHideChatButton]]" class="style-scope ytd-live-chat-frame">\n  <div id="show-hide-button" hidden="[[!collapsed]]" class="style-scope ytd-live-chat-frame">\n    <ytd-button-renderer data="[[data.liveChatRenderer.showButton.buttonRenderer]]" noink="" overrides="[[toggleButtonOverride]]" on-click="onShowHideChat" class="style-scope ytd-live-chat-frame">\n    </ytd-button-renderer>\n  </div>\n</template>\n');a.content.insertBefore(_.w().content.cloneNode(!0),
a.content.firstChild);return $Rx=a},{mode:1});var XPx;var Vl=function(){var a=_.G.apply(this,arguments)||this;a.modern=_.K("web_modern_buttons");a.buttonOverrides={style:"call-to-action",type:"filled"};return a};
_.b(Vl,_.G);Vl.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=_.Da(this.data.backgroundColor)))};
Vl.prototype.onHeadlineClick=function(){if(this.data&&this.data.headline){var a=this.getFormattedStringLoggingDirectives(this.data.headline);a&&this.rendererBehavior.logExplicitClick(a)}};
Vl.prototype.onDescriptionClick=function(){if(this.data&&this.data.description){var a=this.getFormattedStringLoggingDirectives(this.data.description);a&&this.rendererBehavior.logExplicitClick(a)}};
Vl.prototype.getFormattedStringLoggingDirectives=function(a){return a&&a.runs&&a.runs.length>0&&a.runs[0]&&a.runs[0].loggingDirectives?a.runs[0].loggingDirectives:null};
Vl.prototype.dataChanged=Vl.prototype.dataChanged;_.L([_.Q(_.k.YtRendererBehavior),_.p("design:type",Object)],Vl.prototype,"rendererBehavior",void 0);_.L([_.Q(nxL.YtMacroReplacementBehavior),_.p("design:type",Object)],Vl.prototype,"macroReplacementBehavior",void 0);_.L([_.x(),_.p("design:type",Object)],Vl.prototype,"data",void 0);_.L([_.x(),_.p("design:type",Object)],Vl.prototype,"navigationEndpoint",void 0);
_.L([_.x({reflectToAttribute:!0}),_.p("design:type",Boolean)],Vl.prototype,"enableColors",void 0);_.L([_.x({reflectToAttribute:!0}),_.p("design:type",Object)],Vl.prototype,"modern",void 0);_.L([_.x(),_.p("design:type",Object)],Vl.prototype,"buttonOverrides",void 0);_.L([_.O8("data"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],Vl.prototype,"dataChanged",null);_.L([_.U({is:"ytd-action-basic-immersive-content-renderer",disableElementRegistration:!0})],Vl);
_.D(Vl,"ytd-action-basic-immersive-content-renderer",function(){if(XPx!==void 0)return XPx;var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-action-basic-immersive-content-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-img-shadow id="icon" hidden="[[!data.iconImage]]" thumbnail="[[data.iconImage]]" class="style-scope ytd-action-basic-immersive-content-renderer"></yt-img-shadow>\n<yt-formatted-string id="headline" text="[[data.headline]]" on-click="onHeadlineClick" class="style-scope ytd-action-basic-immersive-content-renderer"></yt-formatted-string>\n<yt-formatted-string id="desc" text="[[data.description]]" on-click="onDescriptionClick" class="style-scope ytd-action-basic-immersive-content-renderer"></yt-formatted-string>\n<ytd-button-renderer id="action" data="[[data.actionButton.buttonRenderer]]" overrides="[[buttonOverrides]]" class="style-scope ytd-action-basic-immersive-content-renderer">\n</ytd-button-renderer>\n');
a.content.insertBefore(_.w().content.cloneNode(!0),a.content.firstChild);return XPx=a},{mode:1});var TVG;var dRI;var Ql=function(){return _.G.apply(this,arguments)||this};
_.b(Ql,_.G);Ql.prototype.dataChanged=function(){var a;((a=this.data)==null?void 0:a.backgroundColor)!==void 0&&_.uK(this.hostElement,{"--bgu-color":_.Da(this.data.backgroundColor)})};
Ql.prototype.onImageTileClick=function(){var a;((a=this.data)==null?0:a.navigationEndpoint)&&_.PA(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint});var z;((z=this.data)==null?0:z.clickCommand)&&this.componentBehavior.resolveCommand(this.data.clickCommand)};
_.eH.Object.defineProperties(Ql.prototype,{hasBackgroundColor:{configurable:!0,enumerable:!0,get:function(){var a;return((a=this.data)==null?void 0:a.backgroundColor)!==void 0}},
getObjectFit:{configurable:!0,enumerable:!0,get:function(){var a;if(((a=this.data)==null?void 0:a.objectFit)!==void 0)switch(this.data.objectFit){case "OBJECT_FIT_CONTAIN":return"CONTAIN";case "OBJECT_FIT_COVER":return"COVER";case "OBJECT_FIT_FILL":return"FILL"}return null}},
hasTileMetadata:{configurable:!0,enumerable:!0,get:function(){var a;return((a=this.data)==null?void 0:a.tileRenderingStyle)==="TILE_RENDERING_STYLE_FOOTERED_METADATA"}},
getSecondaryDetails:{configurable:!0,enumerable:!0,get:function(){var a,z,I;if(((a=this.data)==null?void 0:(z=a.detailsLine)==null?void 0:z.texts)!=null&&((I=this.data)==null?void 0:I.detailsLine.texts.length)>0){var J;return(J=this.data)==null?void 0:J.detailsLine.texts.map(function(r){return r.text}).join("")}return null}},
getOptionalDetails:{configurable:!0,enumerable:!0,get:function(){var a,z,I;if(((a=this.data)==null?void 0:(z=a.optionalDetailsLine)==null?void 0:z.texts)!=null&&((I=this.data)==null?void 0:I.optionalDetailsLine.texts.length)>0){var J;return(J=this.data)==null?void 0:J.optionalDetailsLine.texts.map(function(r){return r.text}).join("")}return null}}});
Ql.prototype.dataChanged=Ql.prototype.dataChanged;_.L([_.Q(_.k.YtRendererBehavior),_.p("design:type",Object)],Ql.prototype,"rendererBehavior",void 0);_.L([_.Q(_.Ms.YtComponentBehavior),_.p("design:type",Object)],Ql.prototype,"componentBehavior",void 0);_.L([_.x(),_.p("design:type",Object)],Ql.prototype,"data",void 0);_.L([_.x({reflectToAttribute:!0}),_.S("data.backgroundColor"),_.p("design:type",Boolean),_.p("design:paramtypes",[])],Ql.prototype,"hasBackgroundColor",null);
_.L([_.S("data.objectFit"),_.p("design:type",Object),_.p("design:paramtypes",[])],Ql.prototype,"getObjectFit",null);_.L([_.x({reflectToAttribute:!0}),_.S("data.tileRenderingStyle"),_.p("design:type",Boolean),_.p("design:paramtypes",[])],Ql.prototype,"hasTileMetadata",null);_.L([_.S("data.detailsLine"),_.p("design:type",Object),_.p("design:paramtypes",[])],Ql.prototype,"getSecondaryDetails",null);
_.L([_.S("data.optionalDetailsLine"),_.p("design:type",Object),_.p("design:paramtypes",[])],Ql.prototype,"getOptionalDetails",null);_.L([_.O8("data"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],Ql.prototype,"dataChanged",null);_.L([_.U({is:"ytd-image-tile-renderer",disableElementRegistration:!0})],Ql);
_.D(Ql,"ytd-image-tile-renderer",function(){if(dRI!==void 0)return dRI;var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-image-tile-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e  <button class="remove-default-button-style background-adjusted style-scope ytd-image-tile-renderer" on-click="onImageTileClick">\n      <yt-img-shadow class="thumbnail style-scope ytd-image-tile-renderer" aria-label$="[[data.image.thumbnail.accessibility.accessibility_data.label]]" hidden="[[!data.image]]" object-fit="[[getObjectFit]]" thumbnail="[[data.image.thumbnail]]"></yt-img-shadow>\n      <div class="badge style-scope ytd-image-tile-renderer" hidden="[[!data.imageBadge]]">\n        <yt-img-shadow class="badge-image style-scope ytd-image-tile-renderer" thumbnail="[[data.imageBadge.thumbnail]]"></yt-img-shadow>\n      </div>\n      <div class="metadata style-scope ytd-image-tile-renderer" hidden="[[!hasTileMetadata]]">\n        <div class="headline style-scope ytd-image-tile-renderer">[[data.headline.simpleText]]</div>\n        <div class="secondary-details style-scope ytd-image-tile-renderer">[[getSecondaryDetails]]</div>\n        <div class="price style-scope ytd-image-tile-renderer">[[getOptionalDetails]]</div>\n      </div>\n </button>\n');a.content.insertBefore(_.w().content.cloneNode(!0),
a.content.firstChild);return dRI=a},{mode:1});var W64;var SC=function(){return _.G.apply(this,arguments)||this};
_.b(SC,_.G);SC.prototype.getOpenLinkIcon=function(){return _.K("swap_open_in_new_with_arrow_diagonal_up_right_on_desktop")?"arrow_diagonal_up_right":"open_in_new"};
SC.prototype.onSitelinkTap=function(){_.PA(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint});if(this.data&&this.data.clickCommands)if(_.K("kevlar_command_handler_migration_killswitch"))_.tR(this.hostElement,this.data.clickCommands,this.hostElement);else for(var a=_.C(this.data.clickCommands),z=a.next();!z.done;z=a.next())this.ytComponentBehavior.resolveCommand(z.value)};
_.L([_.Q(_.Ms.YtComponentBehavior),_.p("design:type",Object)],SC.prototype,"ytComponentBehavior",void 0);_.L([_.Q(_.k.YtRendererBehavior),_.p("design:type",Object)],SC.prototype,"rendererBehavior",void 0);_.L([_.x(),_.p("design:type",Object)],SC.prototype,"data",void 0);_.L([_.U({is:"ytd-sitelink-renderer",disableElementRegistration:!0})],SC);
_.D(SC,"ytd-sitelink-renderer",function(){if(W64!==void 0)return W64;var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-sitelink-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="style-scope ytd-sitelink-renderer">\n  <button id="clickable-area" class="remove-default-button-style style-scope ytd-sitelink-renderer" on-tap="onSitelinkTap">\n    <div id="sitelink" class="style-scope ytd-sitelink-renderer">\n      <span class="style-scope ytd-sitelink-renderer">[[data.text.text]]</span>\n      <yt-icon id="open-icon" icon="[[getOpenLinkIcon()]]" class="style-scope ytd-sitelink-renderer"></yt-icon>\n    </div>\n    <div id="description-texts" class="style-scope ytd-sitelink-renderer">\n      <template is="dom-repeat" items="[[data.descriptions]]" class="style-scope ytd-sitelink-renderer">\n        <div id="desc" class="style-scope ytd-sitelink-renderer">[[item.text]]</div>\n      </template>\n    </div>\n  </button>\n</div>\n');a.content.insertBefore(_.w().content.cloneNode(!0),
a.content.firstChild);return W64=a},{mode:1});var iR=function(){var a=_.G.apply(this,arguments)||this;a.paddingFix=_.K("enable_ads_web_ep_buenos_aires_and_padding_fix");return a};
_.b(iR,_.G);iR.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"}}}};
iR.prototype.dataChanged=function(){var a=this;this.data&&this.data.impressionCommands&&this.data.impressionCommands.forEach(function(z){z.clickTrackingParams&&delete z.clickTrackingParams;a.ytMacroReplacementBehavior.sendServiceRequestAction([z])})};
iR.prototype.shouldHideFooter=function(a){return!(a&&_.K("use_ads_engagement_panel_desktop_footer_cta"))};
_.eH.Object.defineProperties(iR.prototype,{removeBorderFromImageTiles:{configurable:!0,enumerable:!0,get:function(){var a,z;return((a=this.data)==null?void 0:a.imageTileRenderers)===void 0||((z=this.data)==null?void 0:z.imageTileRenderers.length)===0?!1:this.data.imageTileRenderers.some(function(I){var J;return(J=_.H(I,fE9))==null?void 0:J.removeBorder})}},
useFooteredMetadataRenderingStyle:{configurable:!0,enumerable:!0,get:function(){var a,z;return((a=this.data)==null?void 0:a.imageTileRenderers)===void 0||((z=this.data)==null?void 0:z.imageTileRenderers.length)===0?!1:this.data.imageTileRenderers.some(function(I){var J;return((J=_.H(I,fE9))==null?void 0:J.tileRenderingStyle)==="TILE_RENDERING_STYLE_FOOTERED_METADATA"})}}});
iR.prototype.dataChanged=iR.prototype.dataChanged;_.L([_.Q(nxL.YtMacroReplacementBehavior),_.p("design:type",Object)],iR.prototype,"ytMacroReplacementBehavior",void 0);_.L([_.Q(_.k.YtRendererBehavior),_.p("design:type",Object)],iR.prototype,"ytRendererBehavior",void 0);_.L([_.Q(_.u4.YtRendererstamperBehavior),_.p("design:type",Object)],iR.prototype,"ytRendererstamperBehavior",void 0);_.L([_.x(),_.p("design:type",Object)],iR.prototype,"data",void 0);
_.L([_.x({reflectToAttribute:!0}),_.p("design:type",Object)],iR.prototype,"paddingFix",void 0);_.L([_.x({reflectToAttribute:!0}),_.S("data.imageTileRenderers"),_.p("design:type",Boolean),_.p("design:paramtypes",[])],iR.prototype,"removeBorderFromImageTiles",null);_.L([_.x({reflectToAttribute:!0}),_.S("data.imageTileRenderers"),_.p("design:type",Boolean),_.p("design:paramtypes",[])],iR.prototype,"useFooteredMetadataRenderingStyle",null);
_.L([_.O8("data"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],iR.prototype,"dataChanged",null);_.L([_.U({is:"ytd-action-engagement-panel-content-renderer",disableElementRegistration:!0})],iR);
_.D(iR,"ytd-action-engagement-panel-content-renderer",function(){if(TVG!==void 0)return TVG;var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-action-engagement-panel-content-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="content" class="style-scope ytd-action-engagement-panel-content-renderer">\n  <div id="sitelinks" hidden="[[!data.sitelinkRenderers]]" class="style-scope ytd-action-engagement-panel-content-renderer"></div>\n  <div id="image-tiles" hidden="[[!data.imageTileRenderers]]" class="style-scope ytd-action-engagement-panel-content-renderer"></div>\n</div>\n<div id="footer" hidden="[[shouldHideFooter(data.actionButton)]]" class="style-scope ytd-action-engagement-panel-content-renderer">\n  <div id="action" class="style-scope ytd-action-engagement-panel-content-renderer"></div>\n</div>\n');a.content.insertBefore(_.w().content.cloneNode(!0),
a.content.firstChild);return TVG=a},{mode:1});var oxG;var UR9=_.ec(function(a){var z=a.data;var I=a.customCommandResolver;return _.B("ad-grid-card-image-full-metadata-view-model",{class:function(){var J;return((J=z().interaction)==null?0:J.onTap)?"ytwAdGridCardImageFullMetadataViewModelHostIsClickableAdComponent":"ytwAdGridCardImageFullMetadataViewModelHost"},
el:_.a5(_.z$({visibilityCallback:function(J){var r,P=(r=z().interaction)==null?void 0:r.onFirstVisible;J&&P&&_.lN(P)},
showOption:_.PX}),_.wi(function(){return z().interaction},I)),
"aria-label":function(){var J,r;return(J=z().interaction)==null?void 0:(r=J.accessibility)==null?void 0:r.label}},_.B("div",{class:"ytwAdGridCardImageFullMetadataViewModelHostImage"},_.B(_.V0,{data:function(){return z().adImage}},{adImageViewModel:function(J){return _.B(_.KA,{data:J.data,
customCommandResolver:I})}})),_.B("div",{class:"ytwAdGridCardImageFullMetadataViewModelHostMetadata"},_.B(_.g,{cond:function(){return z().headline},
then:function(J){return _.B(_.xs,{text:J,className:"ytwAdGridCardImageFullMetadataViewModelHostMetadataHeadline"})}}),_.B(_.g,{cond:function(){return z().detailsLine},
then:function(J){return _.B("div",{class:"ytwAdGridCardImageFullMetadataViewModelHostMetadataPrimary"},_.B(_.V0,{data:J},{adDetailsLineViewModel:function(r){return _.B(_.gW,{data:r.data,customCommandResolver:I,adRenderingContextType:function(){return"AD_RENDERING_CONTEXT_TYPE_WATCH_NEXT"}})}}))}}),_.B(_.g,{cond:function(){return z().secondaryDetailsLine},
then:function(J){return _.B("div",{class:"ytwAdGridCardImageFullMetadataViewModelHostMetadataSecondary"},_.B(_.V0,{data:J},{adDetailsLineViewModel:function(r){return _.B(_.gW,{data:r.data,customCommandResolver:I,adRenderingContextType:function(){return"AD_RENDERING_CONTEXT_TYPE_WATCH_NEXT"}})}}))}})))},"bk");var DR9=_.ec(function(a){var z=a.data;var I=a.customCommandResolver;return _.B("ad-grid-card-image-view-model",{class:function(){var J;return((J=z().interaction)==null?0:J.onTap)?"ytwAdGridCardImageViewModelHostIsClickableAdComponent":"ytwAdGridCardImageViewModelHost"},
el:_.a5(_.z$({visibilityCallback:function(J){var r,P=(r=z().interaction)==null?void 0:r.onFirstVisible;J&&P&&_.lN(P)},
showOption:_.PX}),_.wi(function(){return z().interaction},I)),
"aria-label":function(){var J,r;return(J=z().interaction)==null?void 0:(r=J.accessibility)==null?void 0:r.label}},_.B(_.V0,{data:function(){return z().adImage}},{adImageViewModel:function(J){return _.B(_.KA,{data:J.data,
customCommandResolver:I})}}),_.B("div",{class:"ytwAdGridCardImageViewModelHostCardBadge"},_.B(_.V0,{data:function(){return z().adCardBadge}},{adCardBadgeViewModel:_.F4J})))},"ck");var REx=_.ec(function(a){var z=a.data;var I=a.customCommandResolver;return _.B("ad-grid-card-text-view-model",{class:function(){var J;return((J=z().interaction)==null?0:J.onTap)?"ytwAdGridCardTextViewModelHostIsClickableAdComponent":"ytwAdGridCardTextViewModelHost"},
el:_.a5(_.z$({visibilityCallback:function(J){var r,P=(r=z().interaction)==null?void 0:r.onFirstVisible;J&&P&&_.lN(P)},
showOption:_.PX}),_.wi(function(){return z().interaction},I)),
"aria-label":function(){var J,r;return(J=z().interaction)==null?void 0:(r=J.accessibility)==null?void 0:r.label}},_.B("div",{class:"ytwAdGridCardTextViewModelHostMetadata"},_.B(_.g,{cond:function(){return z().title},
then:function(J){return _.B(_.xs,{text:J,className:"ytwAdGridCardTextViewModelHostMetadataHeadline"})}}),_.B("div",{class:function(){return _.K("desktop_sitelinks_inline_descriptions")?"ytwAdGridCardTextViewModelHostMetadataDescriptionInline":"ytwAdGridCardTextViewModelHostMetadataDescription"}},_.B(_.se,{each:function(){var J;
return((J=z())==null?void 0:J.descriptions)||[]},
keyBy:"INDEX"},function(J){return _.B(_.xs,{text:J,className:function(){return _.K("desktop_sitelinks_inline_descriptions")?"ytwAdGridCardTextViewModelHostMetadataDescriptionInlineStringInline":"ytwAdGridCardTextViewModelHostMetadataDescriptionString"}})}))),_.B("div",{class:"ytwAdGridCardTextViewModelHostButton"},_.B(_.V0,{data:function(){return z().moreInfoButton}},{adButtonViewModel:function(J){return _.B(_.C0,{data:J.data,
customCommandResolver:I})}})))},"dk");var L67=_.ec(function(a){var z=a.data;var I=a.customCommandResolver;var J=a.adGridCardCollectionStyle;return _.B("ad-grid-card-collection-view-model",{class:function(){return"ytwAdGridCardCollectionViewModelHost"},
el:_.a5(_.z$({visibilityCallback:function(r){var P,N=(P=z().interaction)==null?void 0:P.onFirstVisible;r&&N&&_.lN(N)},
showOption:_.PX})),style:function(){return"grid-template-columns: repeat("+xEa(J?J():z().style)+", minmax(0, 1fr));"}},_.B(_.V0,{data:function(){var r;
return(r=z())==null?void 0:r.gridCards}},{adGridCardImageViewModel:function(r){return _.B(DR9,{data:r.data,
customCommandResolver:I})},
adGridCardImageFullMetadataViewModel:function(r){return _.B(UR9,{data:r.data,customCommandResolver:I})},
adGridCardTextViewModel:function(r){return _.B(REx,{data:r.data,customCommandResolver:I})}}))},"ek");_.Jf(_.ec(function(a){var z=a.data;return _.B("panel-text-icon-image-tiles-button-layout-content-view-model",{class:"ytwPanelTextIconImageTilesButtonLayoutContentViewModelHost",el:_.a5(_.z$({visibilityCallback:function(I){var J,r=(J=z().interaction)==null?void 0:J.onFirstVisible;I&&r&&_.lN(r)},
showOption:_.PX}),_.wi(function(){return z().interaction},vGu))},_.B("div",{class:"ytwPanelTextIconImageTilesButtonLayoutContentViewModelHostCardCollection"},_.B(_.g,{cond:_.Ed1("(min-width: "+((0,_.M7)()+_.DS)+"px)"),
then:function(){return _.B(_.V0,{data:function(){return z().adGridCardCollection}},{adGridCardCollectionViewModel:function(I){return _.B(L67,{data:I.data,
customCommandResolver:vGu})}})},
else:function(){return _.B(_.V0,{data:function(){return z().adGridCardCollection}},{adGridCardCollectionViewModel:function(I){return _.B(L67,{data:I.data,
customCommandResolver:vGu,adGridCardCollectionStyle:"AD_GRID_CARD_COLLECTION_STYLE_FIXED_SIX_COLUMNS"})}})}})),_.B("div",{class:"ytwPanelTextIconImageTilesButtonLayoutContentViewModelHostButton"},_.B(_.V0,{data:function(){return z().adButton}},{adButtonViewModel:function(I){return _.B(_.C0,{data:I.data,
customCommandResolver:vGu})}})))},"fk"),"panel-text-icon-image-tiles-button-layout-content-view-model",{props:{data:_.zl}});_.Jf(_.ec(function(a){var z=a.data;return _.B("panel-text-icon-text-grid-cards-sub-layout-content-view-model",{class:"ytwPanelTextIconTextGridCardsSubLayoutContentViewModelHost",el:_.a5(_.z$({visibilityCallback:function(I){var J,r=(J=z().interaction)==null?void 0:J.onFirstVisible;I&&r&&_.lN(r)},
showOption:_.PX}),_.wi(function(){return z().interaction},GJL))},_.B("div",{class:"ytwPanelTextIconTextGridCardsSubLayoutContentViewModelHostCardCollection"},_.B(_.V0,{data:function(){if(_.Ed1("(min-width: "+((0,_.M7)()+_.DS)+"px)")())var I=z().adGridCardCollection;
else{I=Object.assign({},_.H(z().adGridCardCollection,Ae4));var J;I.gridCards!==void 0&&((J=I.gridCards)==null?void 0:J.length)>1?I.style="AD_GRID_CARD_COLLECTION_STYLE_FIXED_TWO_COLUMNS":I.style="AD_GRID_CARD_COLLECTION_STYLE_FIXED_ONE_COLUMN";I={adGridCardCollectionViewModel:I}}return I}},{adGridCardCollectionViewModel:function(I){return _.B(L67,{data:I.data,
customCommandResolver:GJL})}})),_.B("div",{class:"ytwPanelTextIconTextGridCardsSubLayoutContentViewModelHostButton"},_.B(_.V0,{data:function(){return z().adButton}},{adButtonViewModel:function(I){return _.B(_.C0,{data:I.data,
customCommandResolver:GJL})}})))},"gk"),"panel-text-icon-text-grid-cards-sub-layout-content-view-model",{props:{data:_.zl}});var xf=function(){var a=_.G.apply(this,arguments)||this;a.actionMap={"yt-ad-engagement-panel-click-action":"handleAdsEngagementPanelClick"};return a};
_.b(xf,_.G);_.Z=xf.prototype;_.Z.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"}}}};
_.Z.attached=function(){this.getDataFromPlayerAndRender()};
_.Z.dataChanged=function(){this.getDataFromPlayerAndRender()};
_.Z.detached=function(){this.player&&(this.ytPlayerListenerBehavior.unlistenFromPlayerEvent(this.player,"updateEngagementPanelAction",this.sendUpdateEngagementPanelAction),this.ytPlayerListenerBehavior.unlistenFromPlayerEvent(this.player,"changeEngagementPanelVisibility",this.sendChangeEngagementPanelVisibilityAction),this.player=null)};
_.Z.getDataFromPlayerAndRender=function(){var a=this,z=_.zI(this.hostElement);z&&z.getPlayerPromise().then(function(I){a.getCachedDataAndListen(I)})};
_.Z.getCachedDataAndListen=function(a){this.resolveCachedActions();this.player||(this.ytPlayerListenerBehavior.listenToPlayerEvent(a,"updateEngagementPanelAction",this.sendUpdateEngagementPanelAction),this.ytPlayerListenerBehavior.listenToPlayerEvent(a,"changeEngagementPanelVisibility",this.sendChangeEngagementPanelVisibilityAction),this.player=a)};
_.Z.resolveCachedActions=function(){var a=_.DH("yt.www.ads.eventcache.getLastUpdateEngagementPanelAction");(a=a&&a())&&!_.x8.isEmpty(a)&&this.sendUpdateEngagementPanelAction(a);(a=(a=_.DH("yt.www.ads.eventcache.getLastChangeEngagementPanelVisibilityAction"))&&a())&&!_.x8.isEmpty(a)&&this.sendChangeEngagementPanelVisibilityAction(a);(a=(a=_.DH("yt.www.ads.eventcache.getLastScrollToEngagementPanelCommand"))&&a())&&!_.x8.isEmpty(a)&&this.sendScrollToEngagementPanelCommand(a)};
_.Z.sendUpdateEngagementPanelAction=function(a){var z;_.ZF(this.hostElement,"yt-update-engagement-panel-action",[(z=_.x8.get(a,"action"))!=null?z:a])};
_.Z.sendChangeEngagementPanelVisibilityAction=function(a){_.ZF(this.hostElement,"yt-change-engagement-panel-visibility-action",[a])};
_.Z.sendScrollToEngagementPanelCommand=function(a){_.ZF(this.hostElement,"yt-scroll-to-engagement-panel-command",[a])};
_.Z.handleAdsEngagementPanelClick=function(){this.player?(this.player.onAdUxClicked("ads-engagement-panel"),_.K("pause_ad_video_on_desktop_engagement_panel_click")&&this.player.pauseVideo()):_.Xd(Error("Co"))};
xf.prototype.dataChanged=xf.prototype.dataChanged;_.L([_.Q(_.Hc.YtActionHandlerBehavior),_.p("design:type",Object)],xf.prototype,"actionHandlerBehavior",void 0);_.L([_.Q(_.Ms.YtComponentBehavior),_.p("design:type",Object)],xf.prototype,"componentBehavior",void 0);_.L([_.Q(_.jz.YtPlayerListenerBehavior),_.p("design:type",_.z4)],xf.prototype,"ytPlayerListenerBehavior",void 0);_.L([_.Q(_.k.YtRendererBehavior),_.p("design:type",Object)],xf.prototype,"ytRendererBehavior",void 0);
_.L([_.Q(_.u4.YtRendererstamperBehavior),_.p("design:type",Object)],xf.prototype,"ytRendererstamperBehavior",void 0);_.L([_.x(),_.p("design:type",Object)],xf.prototype,"data",void 0);_.L([_.x(),_.p("design:type",Object)],xf.prototype,"player",void 0);_.L([_.O8("data"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],xf.prototype,"dataChanged",null);_.L([_.U({is:"ytd-ads-engagement-panel-content-renderer",disableElementRegistration:!0})],xf);
_.D(xf,"ytd-ads-engagement-panel-content-renderer",function(){if(oxG!==void 0)return oxG;var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-ads-engagement-panel-content-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="content" class="style-scope ytd-ads-engagement-panel-content-renderer"></div>\n');a.content.insertBefore(_.w().content.cloneNode(!0),a.content.firstChild);
return oxG=a},{mode:1});var lIN;var vf=function(){var a=_.G.apply(this,arguments)||this;a.player=null;a.JSC$22492_playerEvents=new Map;a.actionMap={"yt-delete-clip-engagement-panel-command":"onYtDeleteClipEngagementPanelCommand"};return a};
_.b(vf,_.G);_.Z=vf.prototype;_.Z.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]]"}}}}}};
_.Z.created=function(){this.player=null;this.JSC$22492_playerEvents=new Map;this.JSC$22492_playerEvents.set("onLoopRangeChange",this.onLoopRangeChange);this.JSC$22492_playerEvents.set("onVideoProgress",this.onVideoProgress);this.JSC$22492_playerEvents.set("onAdStart",this.playerAdStartHandler);this.JSC$22492_playerEvents.set("onPlaybackStartExternal",this.playerAdEndHandler)};
_.Z.attached=function(){var a=this,z=_.zI();this.set("isDarkTheme",!!document.documentElement.hasAttribute("dark"));z&&z.getPlayerPromise().then(function(I){a.setPlayer(I);a.set("isPageLoad",!1)})};
_.Z.setPlayer=function(a){this.player&&this.ytPlayerListenerBehavior.unlistenFromPlayerEvents(this.player,this.JSC$22492_playerEvents);this.set("player",a);a&&(this.ytPlayerListenerBehavior.listenToPlayerEvents(a,this.JSC$22492_playerEvents),a.getPresentingPlayerType()===2&&this.playerAdStartHandler())};
_.Z.onLoopRangeChange=function(a){var z=_.ab().resolve(_.eL(_.aK));if((!z||z.isOnWatch())&&this.hostElement.clientHeight){var I;!a&&((I=this.data)==null?0:I.onScrubExit)&&this.ytComponentBehavior.resolveCommand(this.data.onScrubExit)}};
_.Z.onVideoProgress=function(a){var z,I,J=((z=this.player)==null?void 0:(I=z.getPresentingPlayerType)==null?void 0:I.call(z))===2;this.isAdPlaying!==J&&this.set("isAdPlaying",J);var r;if(!J&&(r=this.player)!=null&&r.getLoopRange()){I=this.player.getLoopRange();z=I.startTimeMs;I=I.endTimeMs;J=this.player.getProgressState(1).seekableStart;var P;z<J*1E3&&((P=this.data)==null?0:P.onClipViewInvalidCommand)&&(this.player.seekToLiveHead(),this.ytComponentBehavior.resolveCommand(this.data.onClipViewInvalidCommand));
a=I<a*1E3;var N;((N=this.player)==null?0:N.getLoopRange())&&a&&this.player.seekTo(z/1E3)}};
_.Z.playerAdStartHandler=function(){this.set("isAdPlaying",!0)};
_.Z.playerAdEndHandler=function(){this.set("isAdPlaying",!1)};
_.Z.onYtDeleteClipEngagementPanelCommand=function(a){_.H(a,$0N).command&&this.ytComponentBehavior.resolveCommand(_.H(a,$0N).command)};
_.eH.Object.defineProperties(vf.prototype,{voteCount:{configurable:!0,enumerable:!0,get:function(){var a;return((a=this.data)==null?void 0:a.voteCount)||_.Mo("0")}},
channelEndpoint:{configurable:!0,enumerable:!0,get:function(){var a;return(a=this.data)==null?void 0:a.channelNavigationEndpoint}},
channelHref:{configurable:!0,enumerable:!0,get:function(){return this.ytComponentBehavior.computeHref_(this.channelEndpoint)}}});
_.L([_.Q(_.Ms.YtComponentBehavior),_.p("design:type",Object)],vf.prototype,"ytComponentBehavior",void 0);_.L([_.Q(_.u4.YtRendererstamperBehavior),_.p("design:type",Object)],vf.prototype,"ytRendererstamperBehavior",void 0);_.L([_.Q(_.Hc.YtActionHandlerBehavior),_.p("design:type",Object)],vf.prototype,"ytActionHandlerBehavior",void 0);_.L([_.Q(_.k.YtRendererBehavior),_.p("design:type",Object)],vf.prototype,"ytRendererBehavior",void 0);
_.L([_.Q(_.jz.YtPlayerListenerBehavior),_.p("design:type",_.z4)],vf.prototype,"ytPlayerListenerBehavior",void 0);_.L([_.x(),_.p("design:type",Object)],vf.prototype,"data",void 0);_.L([_.x({reflectToAttribute:!0,value:!1}),_.p("design:type",Boolean)],vf.prototype,"isAdPlaying",void 0);_.L([_.x({reflectToAttribute:!0,value:!0}),_.p("design:type",Boolean)],vf.prototype,"isPageLoad",void 0);_.L([_.x({reflectToAttribute:!0,value:!0}),_.p("design:type",Boolean)],vf.prototype,"isDarkTheme",void 0);
_.L([_.S("data"),_.p("design:type",Object),_.p("design:paramtypes",[])],vf.prototype,"voteCount",null);_.L([_.S("data"),_.p("design:type",Object),_.p("design:paramtypes",[])],vf.prototype,"channelEndpoint",null);_.L([_.S("channelEndpoint"),_.p("design:type",Object),_.p("design:paramtypes",[])],vf.prototype,"channelHref",null);_.L([_.U({is:"ytd-clip-attribution-renderer",disableElementRegistration:!0})],vf);
_.D(vf,"ytd-clip-attribution-renderer",function(){if(lIN!==void 0)return lIN;var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-clip-attribution-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="main" class="style-scope ytd-clip-attribution-renderer">\n  <div id="top" class="style-scope ytd-clip-attribution-renderer">\n    <a aria-hidden="true" class="yt-simple-endpoint author-endpoint author-avatar style-scope ytd-clip-attribution-renderer" href$="[[channelHref]]" data="[[channelEndpoint]]" tabindex="-1">\n      <yt-img-shadow class="author-avatar style-scope ytd-clip-attribution-renderer" height="40" thumbnail="[[data.authorAvatar]]" width="40">\n      </yt-img-shadow>\n    </a>\n    <div id="author-container" class="style-scope ytd-clip-attribution-renderer">\n      <a aria-hidden="true" class="yt-simple-endpoint author-endpoint style-scope ytd-clip-attribution-renderer" href$="[[channelHref]]" data="[[channelEndpoint]]" tabindex="-1">\n        <ytd-channel-name id="author" badges="[[data.authorBadges]]" channel-name="[[data.clipAuthor]]" no-endpoints="" class="style-scope ytd-clip-attribution-renderer">\n        </ytd-channel-name>\n      </a>\n      <span class="style-scope ytd-clip-attribution-renderer">[[getSimpleString(data.createdText)]]</span>\n    </div>\n    <div id="menu" class="style-scope ytd-clip-attribution-renderer"></div>\n  </div>\n  <span id="title" class="style-scope ytd-clip-attribution-renderer">[[getSimpleString(data.title)]]</span>\n  <div id="bottom" class="style-scope ytd-clip-attribution-renderer">\n    <div id="buttons" class="style-scope ytd-clip-attribution-renderer"></div>\n  </div>\n  <div id="ad-overlay" class="style-scope ytd-clip-attribution-renderer">\n    <svg id="ad-image" viewBox="0 0 166.96 140.96" class="style-scope ytd-clip-attribution-renderer">\n      <g class="style-scope ytd-clip-attribution-renderer"><g class="style-scope ytd-clip-attribution-renderer">\n        <path class="cls-2 style-scope ytd-clip-attribution-renderer" d="M138.1,103.79l9.9-17h0l-9.9-5.44,9.9-17h0L138.1,59,148,42s-26,20.57-38.86,29.71-9.43-22.57-9.71-47.14S90.29-6,66.86,6,0,46.55,0,46.55l9.9,6.19L0,72.54l9.9,6.35L0,98.69,9.9,105,0,124.84s63.84-42,79.56-50.56c14.81-8.09,12.15,27.13,11.87,45.13s9.14,21.43,22,13.71c12.42-7.45,33.1-22.9,34.49-23.94Z" transform="translate(0 0.25)"></path>\n        <path class="cls-3 style-scope ytd-clip-attribution-renderer" d="M102.26,71.67V137c.27,0,.55,0,.84-.05V72.54A4.36,4.36,0,0,1,102.26,71.67Z" transform="translate(0 0.25)"></path>\n        <path class="cls-4 style-scope ytd-clip-attribution-renderer" d="M50.49,121.06c1.82-2.79,4.46-4.68,7.11-6.57,1.3-.93,2.61-1.85,3.86-2.84a4.06,4.06,0,0,0,.95-1.75c.22-3.44-2.51-6.92-5.93-6.42-3.62,0-7.24,2.84-10.08,4.72-3.78,2.5-7.06,6.32-9.77,9.91-1.43,1.9-2.72,3.71-4,5.68-2.76,4.13-4.4,8.7-6.6,13.21a16.79,16.79,0,0,1,.55-3.13c2-5.06,4.07-10.07,7.32-14.49,1-1.36,2-2.78,3-4.12a5.68,5.68,0,0,1,1.45-.86c.28-1.65,2-2.64,3-4.07,0-.06.5.19.77.3a7.55,7.55,0,0,1,.53-1.46c0-.09.61.11.94.17,0-.36,0-.72,0-1.08,0-.1.19-.18.28-.27,1.09-1.08,2.57-1.56,3.71-2.64a12.29,12.29,0,0,1,4.18-2.46,19.89,19.89,0,0,1,5.13-1.09c3.21-.27,6.5,3.42,7.27,5.72.21.64.41,1.28.69,2.15l3.71-1.73a1.57,1.57,0,0,1,2.13.26l-.35-1,5.12-1.33c1.06.89,2.1.2,3.16,0,.86-.18,1.78-.16,1.87-1.37,0-.06.5-.19.53-.13a4.74,4.74,0,0,1,.37.87l3.05-.58-.08.81c-3.69,1.11-7.47,1.69-11,2.9a28.1,28.1,0,0,0-7.73,4,12.91,12.91,0,0,0-4,5.89,33.12,33.12,0,0,1-7.84,11.43c-1.53,1.54-3.32,2.81-5,4.23a4.84,4.84,0,0,1-3.55,1.22c-1.33-.06-1.67-.23-2-1.49a4.81,4.81,0,0,1,.19-3.38c1.63-3.31,3.52-6.4,6.53-8.65l-.23.49c.11,0,.2.07.23.05l.86-.94Zm-6.3,11.57a1.69,1.69,0,0,0,1.3,1.43,6,6,0,0,0,2.76-1.2c2-1.71,4-3.53,5.94-5.33a4,4,0,0,0,.47-.89c.31-.52,1.52-1.1,1.84-1.61,1.49-2.4,2.76-4.89,4.22-7.31.27-.45.22-3.25-.1-3.46a19.68,19.68,0,0,0-3.49,2.44c-1,.5-1.65,1.85-2.64,2.33a13.34,13.34,0,0,0-3,2.67c-1,1-1.92,1.93-2.8,3a34.65,34.65,0,0,0-2.3,3.11C45.65,128.87,44.17,131.53,44.19,132.63Z" transform="translate(0 0.25)"></path>\n        <path class="cls-1 style-scope ytd-clip-attribution-renderer" d="M0,124.84V46.55S43.43,18,66.86,6,99.14,0,99.43,24.55s-3.14,56.29,9.71,47.14S148,42,148,42v67.14s-21.71,16.29-34.57,24-22.29,4.29-22-13.71,2.94-53.22-11.87-45.13C63.84,82.87,0,124.84,0,124.84Z" transform="translate(0 0.25)"></path>\n        <path class="cls-5 style-scope ytd-clip-attribution-renderer" d="M119,12.45c-.87,10.43-4.13,19.08-15,22.06,13.42.52,14.54,9.3,15.29,18.31,1.28-9.85,4.42-18.14,15-20.18C123.63,31.85,120.11,23.44,119,12.45Z" transform="translate(0 0.25)"></path>\n        <g class="cls-6 style-scope ytd-clip-attribution-renderer">\n          <polygon class="cls-4 style-scope ytd-clip-attribution-renderer" points="166.96 114.12 146.52 104.85 161.66 80.3 137.84 92.19 132.87 70.65 126.28 95.37 110.8 90.89 120.61 104.1 105.23 112.92 119.7 114.68 116.36 135.53 131.9 122.15 141.06 140.96 143.28 116.82 166.96 114.12"></polygon>\n          <path class="cls-5 style-scope ytd-clip-attribution-renderer" d="M73.23,20.28c1.5-8,.86-14.91-1.89-20.53L69.79.51C72.37,5.79,73,12.34,71.54,20c-3,16.13-14.32,29.76-28.12,33.92a31.14,31.14,0,0,1-7.73,1.27A39.72,39.72,0,0,0,19.94,24.42c-4-2.94-7.71-3.92-10.8-2.86-5.5,1.88-6.8,9.18-4.87,15.13,3.88,11.93,16.48,20,29.69,20.2,0,.43,0,.86-.07,1.29a37.87,37.87,0,0,1-19.27,30l.82,1.51a35.69,35.69,0,0,0,5.18-3.42,39.75,39.75,0,0,0,15-28c0-.47.06-.94.07-1.41a32.46,32.46,0,0,0,8.24-1.34C58.33,51.2,70.11,37,73.23,20.28ZM34,55.17c-12.5-.23-24.4-7.77-28.06-19C4.5,31.81,5,26.47,8.05,24.09a5.66,5.66,0,0,1,1.66-.9c3.18-1.1,6.76.82,9.2,2.62A38,38,0,0,1,34,55.17Z" transform="translate(0 0.25)"></path>\n        </g>\n        <path class="cls-3 style-scope ytd-clip-attribution-renderer" d="M17.4,46.23,17,45.51,24.42,41l.44.71Q21.2,43.94,17.4,46.23Zm14.9-9.15-.44-.71,7.42-4.6.44.71ZM47.16,27.9l-.44-.72c2.57-1.58,5.07-3.09,7.47-4.54l.44.72Q51,25.52,47.16,27.9Zm15-8.94-.42-.73c2.85-1.62,5.37-3,7.69-4.19l.39.75C67.5,16,65,17.34,62.16,19ZM96,14.42a14,14,0,0,0-2.35-3.14l.58-.6A14.64,14.64,0,0,1,96.71,14ZM77.7,11.11l-.32-.77a32.13,32.13,0,0,1,8.49-2.4l.09.83A31.86,31.86,0,0,0,77.7,11.11Z" transform="translate(0 0.25)"></path>\n        <polygon class="cls-3 style-scope ytd-clip-attribution-renderer" points="57.21 88.12 56.37 88.65 56.37 11.92 57.21 11.45 57.21 88.12"></polygon>\n        <path class="cls-3 style-scope ytd-clip-attribution-renderer" d="M109.94,80.05a6.68,6.68,0,0,1-5.19-2.48l.64-.55c1.93,2.22,4.35,2.74,7.49,1.63l.28.79A9.59,9.59,0,0,1,109.94,80.05Zm10.81-5.11-.49-.69c2.11-1.48,4.48-3.21,7.06-5.14l.51.68C125.24,71.72,122.86,73.45,120.75,74.94Z" transform="translate(0 0.25)"></path>\n        <path class="cls-3 style-scope ytd-clip-attribution-renderer" d="M17,103.93l-.46-.7,7.28-4.83.46.7Zm14.55-9.68-.46-.7q3.73-2.49,7.27-4.84l.47.7Zm14.57-9.64-.46-.7q3.84-2.5,7.36-4.73l.45.71C51.15,81.37,48.69,83,46.14,84.61Zm14.8-9.26-.43-.73c2.89-1.7,5.4-3.08,7.68-4.22l.38.75C66.3,72.28,63.81,73.66,60.94,75.35ZM84.8,68.18A10.48,10.48,0,0,0,80,67.31a13.7,13.7,0,0,0-3.47.55l-.22-.81A14.45,14.45,0,0,1,80,66.47a11.37,11.37,0,0,1,5.15,1Z" transform="translate(0 0.25)"></path>\n        <path class="cls-3 style-scope ytd-clip-attribution-renderer" d="M98.67,127.76c-2.62-.79-4.81-2.9-6.35-6.12l.76-.36c1,2.09,2.82,4.77,5.84,5.68Zm8.65-1.68-.4-.73c1.81-1,4.31-2.53,7.45-4.55l.45.7C111.67,123.53,109.15,125.07,107.32,126.08Zm14.81-9.4-.47-.7c2.38-1.59,4.82-3.26,7.24-4.92l.47.69C127,113.41,124.51,115.08,122.13,116.68Z" transform="translate(0 0.25)"></path>\n        <ellipse class="cls-4 style-scope ytd-clip-attribution-renderer" cx="71.33" cy="51.78" rx="8.55" ry="6.47" transform="translate(-6.69 93.03) rotate(-63.7)"></ellipse>\n      </g></g>\n    </svg>\n    <div id="ad-text" class="style-scope ytd-clip-attribution-renderer">[[getSimpleString(data.adPlayingText)]]</div>\n  </div>\n</div>\n');
a.content.insertBefore(_.w().content.cloneNode(!0),a.content.firstChild);return lIN=a},{mode:1});var pPI;var GR=function(){var a=_.G.apply(this,arguments)||this;a.player=null;a.JSC$22497_playerEvents=new Map;return a};
_.b(GR,_.G);_.Z=GR.prototype;_.Z.created=function(){this.player=null;this.JSC$22497_playerEvents=new Map;this.JSC$22497_playerEvents.set("onVideoProgress",this.onVideoProgress);this.JSC$22497_playerEvents.set("onAdStart",this.playerAdStartHandler);this.JSC$22497_playerEvents.set("onPlaybackStartExternal",this.playerAdEndHandler)};
_.Z.configureRendererStamper=function(){return{"data.buttons":{id:"buttons",mapping:{buttonRenderer:{component:"ytd-button-renderer"}}}}};
_.Z.attached=function(){var a=this,z=_.zI();z&&z.getPlayerPromise().then(function(I){a.setPlayer(I);a.set("isPageLoad",!1)})};
_.Z.setPlayer=function(a){this.player&&this.ytPlayerListenerBehavior.unlistenFromPlayerEvents(this.player,this.JSC$22497_playerEvents);this.set("player",a);if(a){this.ytPlayerListenerBehavior.listenToPlayerEvents(a,this.JSC$22497_playerEvents);var z;(a==null?void 0:(z=a.getPresentingPlayerType)==null?void 0:z.call(a))===2&&this.playerAdStartHandler()}};
_.Z.playerAdStartHandler=function(){this.set("isAdPlaying",!0)};
_.Z.playerAdEndHandler=function(){this.set("isAdPlaying",!1)};
_.Z.onVideoProgress=function(){var a,z,I=((a=this.player)==null?void 0:(z=a.getPresentingPlayerType)==null?void 0:z.call(a))===2;this.isAdPlaying!==I&&this.set("isAdPlaying",I)};
_.L([_.Q(_.k.YtRendererBehavior),_.p("design:type",Object)],GR.prototype,"ytRendererBehavior",void 0);_.L([_.Q(_.u4.YtRendererstamperBehavior),_.p("design:type",Object)],GR.prototype,"ytRendererstamperBehavior",void 0);_.L([_.Q(_.jz.YtPlayerListenerBehavior),_.p("design:type",_.z4)],GR.prototype,"ytPlayerListenerBehavior",void 0);_.L([_.x(),_.p("design:type",Object)],GR.prototype,"data",void 0);_.L([_.x({reflectToAttribute:!0,value:!1}),_.p("design:type",Boolean)],GR.prototype,"isAdPlaying",void 0);
_.L([_.x({reflectToAttribute:!0,value:!0}),_.p("design:type",Boolean)],GR.prototype,"isPageLoad",void 0);_.L([_.U({is:"ytd-clip-section-footer-renderer",disableElementRegistration:!0})],GR);
_.D(GR,"ytd-clip-section-footer-renderer",function(){if(pPI!==void 0)return pPI;var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-clip-section-footer-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="buttons" class="style-scope ytd-clip-section-footer-renderer"></div>\n');a.content.insertBefore(_.w().content.cloneNode(!0),a.content.firstChild);return pPI=a},{mode:1});var wPx;var mRO;var $f=function(){return _.G.apply(this,arguments)||this};
_.b($f,_.G);_.L([_.Q(_.k.YtRendererBehavior),_.p("design:type",Object)],$f.prototype,"ytRendererBehavior",void 0);_.L([_.x(),_.p("design:type",Object)],$f.prototype,"data",void 0);_.L([_.U({is:"ytd-clip-ad-state-renderer",disableElementRegistration:!0})],$f);
_.D($f,"ytd-clip-ad-state-renderer",function(){if(mRO!==void 0)return mRO;var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-clip-ad-state-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="message" class="style-scope ytd-clip-ad-state-renderer">\n  <div id="title" class="style-scope ytd-clip-ad-state-renderer">[[getSimpleString(data.title)]]</div>\n  <div id="body" class="style-scope ytd-clip-ad-state-renderer">[[getSimpleString(data.body)]]</div>\n</div>\n');a.content.insertBefore(_.w().content.cloneNode(!0),
a.content.firstChild);return mRO=a},{mode:1});var yyj;var XV=function(){var a=_.G.apply(this,arguments)||this;a.value="";a.valid=!1;a.userChangedValue=!1;a.disabled=!1;a.actionMap={"yt-clip-creation-disable":"onClipCreationDisable","yt-clip-creation-enable":"onClipCreationEnable","yt-clip-creation-visibility-changed":"onClipCreationVisibilityChange"};return a};
_.b(XV,_.G);_.Z=XV.prototype;_.Z.detached=function(){this.userChangedValue=!1};
_.Z.handleKeyDown=function(a){if(_.tY)var z=13;else _.H7x&&_.ue?z=13:z=13;a.keyCode===z&&a.preventDefault()};
_.Z.handleInput=function(){var a=_.PK(this.hostElement).querySelector("#title");if(a){var z=(a.value||"").replace(/\r|\n/g," ");this.set("value",z);a.value=z;this.valid=a.validate();this.userChangedValue=!0}};
_.Z.handleBlur=function(){this.valid=_.PK(this.hostElement).querySelector("#title").validate()};
_.Z.onValueChanged=function(){_.PA(this.hostElement,"title-changed",{title:this.value})};
_.Z.onValidChanged=function(){_.PA(this.hostElement,"title-valid-changed",{valid:this.valid})};
_.Z.setInput=function(a,z){var I=_.PK(this.hostElement).querySelector("#title");I&&(I.value=a,this.handleInput(),z&&(I.invalid=!1,this.valid=!0))};
_.Z.onClipCreationDisable=function(){this.set("disabled",!0)};
_.Z.onClipCreationEnable=function(){this.set("disabled",!1)};
_.Z.onClipCreationVisibilityChange=function(a){var z=this;a.visible?requestAnimationFrame(function(){var I;((I=_.PK(z.hostElement).querySelector("#title"))==null?void 0:I.inputElement).textarea.focus()}):(this.setInput("",!0),this.userChangedValue=!1)};
XV.prototype.onValidChanged=XV.prototype.onValidChanged;XV.prototype.onValueChanged=XV.prototype.onValueChanged;XV.prototype.handleBlur=XV.prototype.handleBlur;XV.prototype.handleInput=XV.prototype.handleInput;XV.prototype.handleKeyDown=XV.prototype.handleKeyDown;_.L([_.Q(_.k.YtRendererBehavior),_.p("design:type",Object)],XV.prototype,"ytRendererBehavior",void 0);_.L([_.Q(_.Hc.YtActionHandlerBehavior),_.p("design:type",Object)],XV.prototype,"ytActionHandlerBehavior",void 0);
_.L([_.x(),_.p("design:type",Object)],XV.prototype,"data",void 0);_.L([_.x(),_.p("design:type",Object)],XV.prototype,"value",void 0);_.L([_.x(),_.p("design:type",Object)],XV.prototype,"valid",void 0);_.L([_.x(),_.p("design:type",Object)],XV.prototype,"userChangedValue",void 0);_.L([_.x(),_.p("design:type",Object)],XV.prototype,"disabled",void 0);_.L([_.gz("keydown"),_.p("design:type",Function),_.p("design:paramtypes",[KeyboardEvent]),_.p("design:returntype")],XV.prototype,"handleKeyDown",null);
_.L([_.gz("input"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],XV.prototype,"handleInput",null);_.L([_.gz("blur"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],XV.prototype,"handleBlur",null);_.L([_.O8("value"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],XV.prototype,"onValueChanged",null);
_.L([_.O8("valid"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],XV.prototype,"onValidChanged",null);_.L([_.U({is:"ytd-clip-creation-text-input-renderer",disableElementRegistration:!0})],XV);
_.D(XV,"ytd-clip-creation-text-input-renderer",function(){if(yyj!==void 0)return yyj;var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-clip-creation-text-input-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<tp-yt-paper-textarea id="title" char-counter="" disabled="[[disabled]]" label="[[getSimpleString(data.placeholderText)]]" maxlength="[[data.maxCharacterLimit]]" no-label-float="" pattern=".+" required="" use-v2-underline="" class="style-scope ytd-clip-creation-text-input-renderer"></tp-yt-paper-textarea>\n');a.content.insertBefore(_.w().content.cloneNode(!0),
a.content.firstChild);return yyj=a},{mode:1});var kj7;var MdI;var cy9;var Yk9;var qkO;var TR=function(){var a=_.G.apply(this,arguments)||this;a.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggled_","yt-clip-creation-enable":"onClipCreationEnable_","yt-clip-creation-visibility-changed":"onVisibilityChangedAction_"};a.pendingStoryboardImages_={};a.pixelRatioBreakpoints_=["1dppx","1.5dppx","2dppx","3dppx"];a.tickLabelInterval=30;a.mediumTickInterval=5;a.largeTickInterval=15;a.aboveRulerHeight=32;a.rulerHeight=50;a.smallTickHeight=4;a.mediumTickHeight=8;a.largeTickHeight=16;a.mediaListeners_=
{};return a};
_.b(TR,_.G);_.Z=TR.prototype;_.Z.attached=function(){var a=this;this.updatePixelRatio_();this.pixelRatioBreakpoints_.forEach(function(z){z=_.C(["screen and (min-resolution: "+z+")","screen and (max-resolution: "+z+")"]);for(var I=z.next();!I.done;I=z.next()){I=I.value;var J=window.matchMedia(I);J&&(a.mediaListeners_[I]=a.updatePixelRatio_.bind(a),J.addEventListener?J.addEventListener("change",a.mediaListeners_[I]):J.addListener?J.addListener(a.mediaListeners_[I]):delete a.mediaListeners_[I])}})};
_.Z.detached=function(){this.setPlayer(null);for(var a=_.C(Object.keys(this.mediaListeners_)),z=a.next();!z.done;z=a.next()){var I=z.value;z=this.mediaListeners_[I];(I=window.matchMedia(I))&&(I.removeEventListener?I.removeEventListener("change",z):I.removeListener&&I.removeListener(z))}this.mediaListeners_={};this.storyboardImages_&&this.splice("storyboardImages_",0,this.storyboardImages_.length)};
_.Z.onVisibilityChangedAction_=function(a){var z=this;a.visible&&!this.player_&&(a=_.zI())&&a.getPlayerPromise().then(function(I){z.setPlayer(I)})};
_.Z.setPlayer=function(a){a&&this.set("player_",a)};
_.Z.updatePixelRatio_=function(){this.set("devicePixelRatio_",Math.max(1,window.devicePixelRatio))};
_.Z.setUpCanvas_=function(){var a=this.rulerWidth,z=this.devicePixelRatio_,I=this.visible;this.set("canvasReady_",!1);if(I&&z!==0){I=this.aboveRulerHeight+this.rulerHeight;var J=_.PK(this.hostElement).querySelector("#ticks");J.width=a*z;J.height=I*z;J.style.width=a+"px";J.style.height=I+"px";J.getContext("2d").scale(z,z);this.set("canvasReady_",!0)}};
_.Z.drawRuler_=function(a,z,I,J,r,P,N,u,E,O,f,A){a&&I&&z&&(a=_.PK(this.hostElement).querySelector("#ticks"),z=a.getContext("2d"),z.clearRect(0,0,a.width,a.height),z.strokeStyle=getComputedStyle(this.hostElement).getPropertyValue("--yt-spec-10-percent-layer"),z.lineWidth=2,z.beginPath(),z.moveTo(0,this.aboveRulerHeight),z.lineTo(a.width,this.aboveRulerHeight),z.moveTo(0,a.height),z.lineTo(a.width,a.height),z.stroke(),this.drawRulerTicks_(a,P,r,J),this.drawStoryboardImages_(a,I,P,r,J),z.fillStyle=getComputedStyle(this.hostElement).getPropertyValue("--yt-spec-themed-overlay-background"),
z.fillRect(0,this.aboveRulerHeight,this.timeToPixels_(N-P,J,!1),this.rulerHeight),I=this.timeToPixels_(u-P,J,!1),z.fillRect(I,this.aboveRulerHeight,a.width-I,this.rulerHeight),this.drawSpeedLines_(a,P,A))};
_.Z.drawRulerTicks_=function(a,z,I,J){var r=a.getContext("2d");r.save();r.lineWidth=1;for(var P=Math.floor(Math.max(0,z-this.tickLabelInterval));P<z+I;P++){r.strokeStyle=getComputedStyle(this.hostElement).getPropertyValue("--yt-spec-text-disabled");var N=(P-z)*J;r.beginPath();r.moveTo(N,a.height);var u=this.smallTickHeight;P%this.largeTickInterval===0?u=this.largeTickHeight:P%this.mediumTickInterval===0&&(u=this.mediumTickHeight);r.lineTo(N,a.height-u);r.stroke();P%this.tickLabelInterval===0&&(r.font=
getComputedStyle(this.hostElement).getPropertyValue("font"),r.fillStyle=getComputedStyle(this.hostElement).getPropertyValue("--yt-spec-text-disabled"),r.fillText(vC(P),N+4,12),r.strokeStyle=getComputedStyle(this.hostElement).getPropertyValue("--yt-spec-10-percent-layer"),r.moveTo(N,0),r.lineTo(N,this.aboveRulerHeight),r.stroke())}r.restore()};
_.Z.percentToHex_=function(a){a=Math.round(a*255).toString(16);a.length<2&&(a="0"+a);return a};
_.Z.drawSpeedLines_=function(a,z,I){var J=a.getContext("2d");J.save();var r=Math.min(25,Math.abs(I)-15)/25,P=a.width*.3*r,N=a.width*-.3,u=a.width*1.3,E=this.aboveRulerHeight;a=a.height;var O=Math.round(4*r),f=getComputedStyle(this.hostElement).getPropertyValue("--yt-spec-text-primary");f.length<7&&(f="#"+f.substring(1,4).repeat(2));var A=this.percentToHex_(.5+r/2);A=f+A;f+="00";if(r>0)for(r=0;r<O;r++){var n=N+Math.random()*(u-N),F=E+Math.random()*(a-E),h=P+z%P,v=J.createLinearGradient(n,F,n+h,F);
I<0?(v.addColorStop(0,A),v.addColorStop(.4,A),v.addColorStop(.9,f)):(v.addColorStop(.1,f),v.addColorStop(.6,A),v.addColorStop(1,A));J.strokeStyle=v;J.lineWidth=1;J.beginPath();J.moveTo(n,F);J.lineTo(n+h,F);J.stroke()}J.restore()};
_.Z.getStoryboardForTime_=function(a,z,I){I===void 0&&(I=z.getNumberOfStoryboardLevels()-1);a=z.getStoryboardFrameIndex(a,I);return z.getStoryboardFrame(a,I)};
_.Z.drawStoryboardImages_=function(a,z,I,J,r){if(!this.disabled){a=a.getContext("2d");var P=this.getStoryboardForTime_(0,z);if(P){var N=P.width/P.columns;P=P.height/P.rows;var u=N/P,E=this.rulerHeight*u;E=this.tickLabelInterval*(u<this.tickLabelInterval*r/this.rulerHeight?1/Math.floor(this.tickLabelInterval*r/E):Math.round(E/(this.tickLabelInterval*r)));var O=E*r,f=this.rulerHeight,A=O/this.rulerHeight,n=Math.floor(Math.max(0,I-E));for(n-=n%E;n<I+J;n+=E){var F=this.getStoryboardForTime_(n,z),h=this.getPreloadedStoryboard_(F.url);
if(h){var v=(n-I)*r,d=this.aboveRulerHeight,W=F.column*N,l=F.row*P;if(u<A){var q=f/(O/u);F=N;q*=P;l+=(P-q)/2}else F=O/(f*u)*N,q=P,W+=(N-F)/2;a.drawImage(h,W,l,F,q,v,d,O,f)}else this.fetchStoryboardImage_(F)}}}};
_.Z.getPreloadedStoryboard_=function(a){return this.storyboardImages_.find(function(z){if(z.src==a)return!0;var I=z.src.indexOf(a);return I!=-1&&I==z.src.length-a.length})};
_.Z.fetchStoryboardImage_=function(a){var z=this,I=this.getPreloadedStoryboard_(a.url),J=this.pendingStoryboardImages_[a.url];I||J!==void 0||(I=new Promise(function(r){var P=new Image(a.width,a.height);P.src=a.url;P.onload=function(){r(P)};
P.onerror=function(){r(null)}}),this.pendingStoryboardImages_[a.url]=I,I.then(function(r){r&&z.push("storyboardImages_",r);
return r}).finally(function(){delete z.pendingStoryboardImages_[a.url]}))};
_.Z.onClipCreationEnable_=function(){this.set("forceRender_",this.forceRender_+1)};
_.Z.timeToPixels_=function(a,z,I){a*=z;return I===void 0||I?a+"px":a};
_.Z.onDarkModeToggled_=function(){this.set("forceRender_",this.forceRender_+1)};
TR.prototype.drawRuler_=TR.prototype.drawRuler_;TR.prototype.setUpCanvas_=TR.prototype.setUpCanvas_;_.L([_.Q(_.Hc.YtActionHandlerBehavior),_.p("design:type",Object)],TR.prototype,"ytActionHandlerBehavior",void 0);_.L([_.Q(_.k.YtRendererBehavior),_.p("design:type",Object)],TR.prototype,"ytRendererBehavior",void 0);_.L([_.x({value:0}),_.p("design:type",Number)],TR.prototype,"start",void 0);_.L([_.x({value:30}),_.p("design:type",Number)],TR.prototype,"end",void 0);
_.L([_.x({value:!1}),_.p("design:type",Boolean)],TR.prototype,"visible",void 0);_.L([_.x(),_.p("design:type",Object)],TR.prototype,"player_",void 0);_.L([_.x(),_.p("design:type",Number)],TR.prototype,"tickSpacing",void 0);_.L([_.x(),_.p("design:type",Number)],TR.prototype,"windowSizeSec",void 0);_.L([_.x({value:0}),_.p("design:type",Number)],TR.prototype,"rulerWidth",void 0);_.L([_.x({value:0}),_.p("design:type",Number)],TR.prototype,"rulerShift",void 0);
_.L([_.x({value:!1}),_.p("design:type",Boolean)],TR.prototype,"canvasReady_",void 0);_.L([_.x({value:function(){return[]}}),
_.p("design:type",Array)],TR.prototype,"storyboardImages_",void 0);_.L([_.x({value:!1,reflectToAttribute:!0}),_.p("design:type",Boolean)],TR.prototype,"disabled",void 0);_.L([_.x({value:0}),_.p("design:type",Number)],TR.prototype,"forceRender_",void 0);_.L([_.x({value:1}),_.p("design:type",Number)],TR.prototype,"devicePixelRatio_",void 0);_.L([_.x({value:0}),_.p("design:type",Number)],TR.prototype,"windowSpeed",void 0);
_.L([_.O8("visible","devicePixelRatio_","rulerWidth"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],TR.prototype,"setUpCanvas_",null);
_.L([_.O8("visible","canvasReady_","player_","tickSpacing","windowSizeSec","rulerShift","start","end","storyboardImages_.*","forceRender_","disabled","windowSpeed"),_.p("design:type",Function),_.p("design:paramtypes",[Boolean,Boolean,Object,Number,Number,Number,Number,Number,Object,Number,Boolean,Number]),_.p("design:returntype")],TR.prototype,"drawRuler_",null);_.L([_.dz({is:"yt-clip-creation-scrubber-canvas",disableElementRegistration:!0})],TR);
_.D(TR,"yt-clip-creation-scrubber-canvas",function(){if(qkO===void 0){var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-clip-creation-scrubber-canvas--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<canvas id="ticks" class="style-scope yt-clip-creation-scrubber-canvas"></canvas>\n');a.content.insertBefore(_.w().content.cloneNode(!0),a.content.firstChild);qkO=a}a=qkO;return a},
{mode:2});var eEL;var amO;var dp=function(){var a=_.G.apply(this,arguments)||this;a.start=0;a.end=30;a.visible=!1;a.draggingLeft_=!1;a.draggingRight_=!1;a.draggingRuler_=!1;a.draggingWindow_=!1;a.seekableStart=0;a.seekableEnd=0;a.rulerWidth_=0;a.rulerShift_=0;a.windowSlideSpeed=0;a.disabled=!1;a.initialized=!1;a.durationAccessibilityLabel="";a.activeLoopRange_=!1;a.rulerDragMouseStart_=0;a.rulerDragRulerStart_=0;a.rulerDragStartTime_=0;a.rulerDragEndTime_=0;a.dragMouseLastX_=0;a.scrollInterval_=null;a.scrubberVe_=null;a.boundHandlers_=
{};a.actionMap={"yt-clip-creation-disable":"onClipCreationDisable_","yt-clip-creation-visibility-changed":"onVisibilityChangedAction_"};return a};
_.b(dp,_.G);_.Z=dp.prototype;
_.Z.created=function(){var a=this;this.JSC$22510_playerEvents=new Map;this.JSC$22510_playerEvents.set("onVideoProgress",this.onVideoProgress_);this.JSC$22510_playerEvents.set("SEEK_COMPLETE",this.onSeekComplete_);this.JSC$22510_playerEvents.set("onStateChange",this.onStateChange_);var z={mouseup:this.endDrag_,mousemove:this.handleMouseDrag_,resize:this.updateRulerSize_,handles_mousedown:this.beginHandleDrag_,ruler_mousedown:this.beginRulerDrag_};Object.keys(z).forEach(function(I){a.boundHandlers_[I]=z[I].bind(a)})};
_.Z.attached=function(){this.activeLoopRange_=!1;_.PK(this.hostElement).querySelector("#handles").addEventListener("mousedown",this.boundHandlers_.handles_mousedown);_.PK(this.hostElement).querySelector("#ticks").addEventListener("mousedown",this.boundHandlers_.ruler_mousedown);window.addEventListener("resize",this.boundHandlers_.resize);this.scrubberVe_=_.uq(156731)};
_.Z.detached=function(){this.setPlayer(null);window.removeEventListener("resize",this.boundHandlers_.resize);this.removeMouseEventHandlers_();_.PK(this.hostElement).querySelector("#handles").removeEventListener("mousedown",this.boundHandlers_.handles_mousedown);_.PK(this.hostElement).querySelector("#ticks").removeEventListener("mousedown",this.boundHandlers_.ruler_mousedown)};
_.Z.onVisibilityChangedAction_=function(a){var z=this;a.visible&&!this.player_&&(a=_.zI())&&a.getPlayerPromise().then(function(I){z.setPlayer(I)})};
_.Z.setPlayer=function(a){this.player_&&this.ytPlayerListenerBehavior.unlistenFromPlayerEvents(this.player_,this.JSC$22510_playerEvents);a&&(this.set("player_",a),this.ytPlayerListenerBehavior.listenToPlayerEvents(a,this.JSC$22510_playerEvents))};
_.Z.addMouseEventHandlers_=function(){window.addEventListener("mouseup",this.boundHandlers_.mouseup);window.addEventListener("mousemove",this.boundHandlers_.mousemove)};
_.Z.removeMouseEventHandlers_=function(){window.removeEventListener("mouseup",this.boundHandlers_.mouseup);window.removeEventListener("mousemove",this.boundHandlers_.mousemove)};
_.Z.beginHandleDrag_=function(a){this.disabled||(a.preventDefault(),this.draggingWindow_=this.draggingRuler_=this.draggingRight_=this.draggingLeft_=!1,this.dragMouseLastX_=a.clientX,a.target===_.PK(this.hostElement).querySelector("#handle-left")?this.beginLeftHandleDrag_():a.target===_.PK(this.hostElement).querySelector("#handle-right")?this.beginRightHandleDrag_():this.beginWindowDrag_())};
_.Z.beginLeftHandleDrag_=function(){this.draggingLeft_=!0;this.beginDrag_()};
_.Z.beginRightHandleDrag_=function(){this.draggingRight_=!0;this.beginDrag_()};
_.Z.beginWindowDrag_=function(){this.disabled||(this.draggingWindow_=!0,this.beginWindowScroll_(),this.beginDrag_())};
_.Z.beginRulerDrag_=function(a){this.disabled||(a.preventDefault(),this.draggingRight_=this.draggingLeft_=!1,this.draggingRuler_=!0,this.draggingWindow_=!1,this.rulerDragMouseStart_=a.clientX,this.rulerDragRulerStart_=this.rulerShift_,this.rulerDragStartTime_=this.start,this.rulerDragEndTime_=this.end,this.beginDrag_())};
_.Z.beginDrag_=function(){this.player_.pauseVideo();this.addMouseEventHandlers_()};
_.Z.beginWindowScroll_=function(){var a=this;this.scrollInterval_=setInterval(function(){var z=a.windowSlideSpeed;if(z=_.RDV(a.start,a.boundedRulerStartLimit_())?z-.1:_.RDV(a.end,a.boundedRulerEndLimit_())?z+.1:0){var I=a.capRulerOffset_(a.rulerShift_+z);I==a.rulerShift_?z=0:(a.set("rulerShift_",I),_.PA(a.hostElement,"set-fixed-length-range",{start:a.start+z,duration:a.end-a.start}))}a.set("windowSlideSpeed",z)},33)};
_.Z.endWindowScroll_=function(){this.scrollInterval_&&(clearInterval(this.scrollInterval_),this.scrollInterval_=null,this.windowSlideSpeed=0)};
_.Z.endDrag_=function(){this.logClick();var a=void 0;this.draggingRight_?a=this.end-1:this.draggingLeft_&&(a=this.start);this.draggingWindow_=this.draggingRuler_=this.draggingRight_=this.draggingLeft_=!1;this.endWindowScroll_();this.updateLoopRange_(this.player_,this.visible,this.disabled,this.initialized,this.start,this.end,a);this.removeMouseEventHandlers_();this.rulerShift_+this.windowSizeSec_<this.end+this.pixelsToTime_(16)&&this.set("rulerShift_",this.end-this.windowSizeSec_+this.pixelsToTime_(16));
this.rulerShift_>this.start-this.pixelsToTime_(16)&&this.set("rulerShift_",this.start-this.pixelsToTime_(16))};
_.Z.onVisibleChanged_=function(){this.visible&&this.updateRulerSize_()};
_.Z.updateRulerSize_=function(){this.set("rulerWidth_",_.PK(this.hostElement).querySelector("#ruler").getBoundingClientRect().width)};
_.Z.handleMouseDrag_=function(a){a.buttons==0&&(this.draggingLeft_||this.draggingRight_||this.draggingRuler_||this.draggingWindow_)&&this.endDrag_();this.disabled||(this.draggingRuler_?this.handleRulerDrag_(a):this.draggingLeft_||this.draggingRight_?this.handleWindowHandleDrag_(a):this.draggingWindow_&&this.handleWindowDrag_(a))};
_.Z.handleRulerDrag_=function(a){a=this.pixelsToTime_(a.clientX-this.rulerDragMouseStart_);a=this.capRulerOffset_(this.rulerDragRulerStart_-a);this.set("rulerShift_",a);var z=this.rulerDragStartTime_-(this.rulerDragRulerStart_-a);_.PA(this.hostElement,"set-fixed-length-range",{start:z,duration:this.rulerDragEndTime_-(this.rulerDragRulerStart_-a)-z})};
_.Z.handleWindowDrag_=function(a){var z=a.clientX-this.dragMouseLastX_;this.dragMouseLastX_=a.clientX;a=this.pixelsToTime_(z);_.PA(this.hostElement,"set-fixed-length-range",{start:this.start+a,duration:this.end-this.start,startLimit:this.draggableStartLimit_(),endLimit:this.draggableEndLimit_()})};
_.Z.capRulerOffset_=function(a){var z=this.seekableStart-this.pixelsToTime_(16),I=this.seekableEnd-this.windowSizeSec_+this.pixelsToTime_(16);return Math.min(Math.max(z,a),I)};
_.Z.boundedRulerStartLimit_=function(){return this.rulerShift_+this.pixelsToTime_(16)};
_.Z.boundedRulerEndLimit_=function(){return this.rulerShift_+this.windowSizeSec_-this.pixelsToTime_(16)};
_.Z.draggableStartLimit_=function(){return Math.max(this.boundedRulerStartLimit_(),this.seekableStart)};
_.Z.draggableEndLimit_=function(){return Math.min(this.boundedRulerEndLimit_(),this.seekableEnd)};
_.Z.handleWindowHandleDrag_=function(a){var z=a.clientX-this.dragMouseLastX_;this.dragMouseLastX_=a.clientX;a=this.pixelsToTime_(z);if(this.draggingLeft_){var I=this.start+a;var J=this.end}else this.draggingRight_&&(I=this.start,J=this.end+a);_.PA(this.hostElement,"set-range",{start:I,end:J,startLimit:this.draggableStartLimit_(),endLimit:this.draggableEndLimit_()})};
_.Z.onVideoProgress_=function(a){this.disabled||(a=this.timeToPixels_(a-this.rulerShift_,this.tickSpacing_),_.PK(this.hostElement).querySelector("#playhead").style.transform="translateX("+a+")")};
_.Z.onClipCreationDisable_=function(){this.endDrag_()};
_.Z.timeToPixels_=function(a,z,I){a*=z;return I===void 0||I?a+"px":a};
_.Z.pixelsToTime_=function(a){return a/this.tickSpacing_};
_.Z.onInitializedChanged_=function(){this.initialized&&this.centerRuler_(this.start,this.end,this.windowSizeSec_)};
_.Z.centerRuler_=function(a,z,I){this.set("rulerShift_",this.capRulerOffset_(a+(z-a)/2-I/2))};
_.Z.onUpdateLoopRange=function(){this.updateLoopRange_(this.player_,this.visible,this.disabled,this.initialized,this.start,this.end)};
_.Z.updateLoopRange_=function(a,z,I,J,r,P,N){a&&(z&&J&&!I?(this.draggingLeft_||this.draggingRuler_||this.draggingWindow_?(a.pauseVideo(),a.seekTo(r,!1,void 0,void 0,50)):this.draggingRight_?(a.pauseVideo(),a.seekTo(P-.1,!1,void 0,void 0,50)):(N!==void 0?a.seekTo(N,!0,void 0,void 0,50):(z=a.getCurrentTime(),z<r||z>P?a.seekTo(r,!0,void 0,void 0,50):a.seekTo(z,!0,void 0,void 0,50)),a.playVideo()),a.setLoopRange({startTimeMs:r*1E3,endTimeMs:P*1E3,type:"clips"}),this.activeLoopRange_=!0,this.onVideoProgress_(a.getCurrentTime())):
this.activeLoopRange_&&(a.setLoopRange(null),this.activeLoopRange_=!1))};
_.Z.updateHandles_=function(){_.PK(this.hostElement).querySelector("#handles").style.left=String(this.timeToPixels_(this.start-this.rulerShift_,this.tickSpacing_));_.PK(this.hostElement).querySelector("#handles").style.width=String(this.timeToPixels_(this.end-this.start,this.tickSpacing_))};
_.Z.updateRuler_=function(){var a=this.end,z=this.start,I=this.draggableStartLimit_(),J=this.draggableEndLimit_();(z<I-.001||a>J+.001)&&this.centerRuler_(this.start,this.end,this.windowSizeSec_)};
_.Z.computeDurationLabel_=function(a,z){return a?a.replace("$clip_length",parseFloat(z).toFixed(1)):""};
_.Z.computeDuration_=function(a,z){return this.isValidTime_(a)&&this.isValidTime_(z)&&a<z?z-a:0};
_.Z.isValidTime_=function(a){return isNaN(parseFloat(a))||a<0?!1:this.player_?a>=this.seekableStart&&a<=this.seekableEnd:!0};
_.Z.computeWindowSizeSec_=function(a,z,I){return Math.min((a||12E4)/1E3,I-z)};
_.Z.computeTickSpacing_=function(a,z){return z?z/a:1};
_.Z.onDragStateChanged_=function(){_.PA(this.hostElement,"clips-drag-state",{startChanging:this.draggingLeft_||this.draggingWindow_||this.draggingRuler_,endChanging:this.draggingRight_||this.draggingWindow_||this.draggingRuler_})};
_.Z.centerRangeOnTime_=function(a){var z=this.duration;a=XeI(a-z/2,z,this.seekableStart,this.seekableEnd);_.PA(this.hostElement,"set-fixed-length-range",{start:a.start,duration:a.end-a.start})};
_.Z.nearlyLessThan_=function(a,z,I){return a+(I===void 0?1E-6:I)<z};
_.Z.onSeekComplete_=function(){if(this.visible&&!this.disabled&&this.dragState=="none"){var a=this.player_.getCurrentTime();(!this.player_.getLoopRange()||this.nearlyLessThan_(a,this.start)||this.nearlyLessThan_(this.end,a))&&this.centerRangeOnTime_(a)}};
_.Z.onStateChange_=function(a){this.visible&&!this.disabled&&a==0&&this.centerRangeOnTime_(this.seekableEnd)};
_.Z.computeDragState_=function(a,z,I,J){return a?"left":z?"right":I?"ruler":J?"window":"none"};
_.Z.logClick=function(){var a=_.TX(),z=_.XZ();a&&z&&this.scrubberVe_&&(_.K("combine_ve_grafts")?_.Aq(_.Kw(),this.scrubberVe_,z):_.Lt(a,z,this.scrubberVe_),_.ys(a,this.scrubberVe_))};
dp.prototype.onDragStateChanged_=dp.prototype.onDragStateChanged_;dp.prototype.updateRuler_=dp.prototype.updateRuler_;dp.prototype.updateHandles_=dp.prototype.updateHandles_;dp.prototype.onUpdateLoopRange=dp.prototype.onUpdateLoopRange;dp.prototype.onInitializedChanged_=dp.prototype.onInitializedChanged_;dp.prototype.onVisibleChanged_=dp.prototype.onVisibleChanged_;_.L([_.Q(_.Hc.YtActionHandlerBehavior),_.p("design:type",Object)],dp.prototype,"ytActionHandlerBehavior",void 0);
_.L([_.Q(_.jz.YtPlayerListenerBehavior),_.p("design:type",Object)],dp.prototype,"ytPlayerListenerBehavior",void 0);_.L([_.Q(_.k.YtRendererBehavior),_.p("design:type",Object)],dp.prototype,"ytRendererBehavior",void 0);_.L([_.x(),_.p("design:type",Object)],dp.prototype,"start",void 0);_.L([_.x(),_.p("design:type",Object)],dp.prototype,"end",void 0);_.L([_.x({computed:"computeDuration_(start, end)"}),_.p("design:type",Number)],dp.prototype,"duration",void 0);
_.L([_.x(),_.p("design:type",String)],dp.prototype,"lengthTemplate",void 0);_.L([_.x({computed:"computeDurationLabel_(lengthTemplate, duration)"}),_.p("design:type",String)],dp.prototype,"durationLabel",void 0);_.L([_.x(),_.p("design:type",Object)],dp.prototype,"visible",void 0);_.L([_.x(),_.p("design:type",Object)],dp.prototype,"player_",void 0);_.L([_.x(),_.p("design:type",Object)],dp.prototype,"draggingLeft_",void 0);_.L([_.x(),_.p("design:type",Object)],dp.prototype,"draggingRight_",void 0);
_.L([_.x(),_.p("design:type",Object)],dp.prototype,"draggingRuler_",void 0);_.L([_.x({value:!1}),_.p("design:type",Object)],dp.prototype,"draggingWindow_",void 0);_.L([_.x({computed:"computeTickSpacing_(windowSizeSec_, rulerWidth_)"}),_.p("design:type",Number)],dp.prototype,"tickSpacing_",void 0);_.L([_.x(),_.p("design:type",Object)],dp.prototype,"seekableStart",void 0);_.L([_.x(),_.p("design:type",Object)],dp.prototype,"seekableEnd",void 0);
_.L([_.x(),_.p("design:type",Number)],dp.prototype,"windowSizeMs",void 0);_.L([_.x({computed:"computeWindowSizeSec_(windowSizeMs, seekableStart, seekableEnd)"}),_.p("design:type",Number)],dp.prototype,"windowSizeSec_",void 0);_.L([_.x(),_.p("design:type",Object)],dp.prototype,"rulerWidth_",void 0);_.L([_.x(),_.p("design:type",Object)],dp.prototype,"rulerShift_",void 0);_.L([_.x(),_.p("design:type",Object)],dp.prototype,"windowSlideSpeed",void 0);
_.L([_.x({reflectToAttribute:!0}),_.p("design:type",Object)],dp.prototype,"disabled",void 0);_.L([_.x(),_.p("design:type",Object)],dp.prototype,"initialized",void 0);_.L([_.x(),_.p("design:type",Object)],dp.prototype,"durationAccessibilityLabel",void 0);_.L([_.x({computed:"computeDragState_(draggingLeft_, draggingRight_, draggingRuler_, draggingWindow_)",reflectToAttribute:!0}),_.p("design:type",String)],dp.prototype,"dragState",void 0);
_.L([_.O8("visible"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],dp.prototype,"onVisibleChanged_",null);_.L([_.O8("initialized"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],dp.prototype,"onInitializedChanged_",null);_.L([_.O8("player_","visible","disabled","initialized","start","end"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],dp.prototype,"onUpdateLoopRange",null);
_.L([_.O8("start","end","rulerShift_","tickSpacing_","windowSizeSec_"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],dp.prototype,"updateHandles_",null);_.L([_.O8("start","end"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],dp.prototype,"updateRuler_",null);
_.L([_.O8("draggingLeft_","draggingRight_","draggingRuler_","draggingWindow_"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],dp.prototype,"onDragStateChanged_",null);_.L([_.dz({is:"yt-clip-creation-scrubber-view",disableElementRegistration:!0})],dp);
_.D(dp,"yt-clip-creation-scrubber-view",function(){if(amO===void 0){var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-clip-creation-scrubber-view--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.gaming.clips.yt_clip_creation_scrubber_view.yt.clip.creation.scrubber.view.css.js--\x3e<div id="trimmer" class="style-scope yt-clip-creation-scrubber-view">\n  <div id="ruler" aria-hidden="true" class="style-scope yt-clip-creation-scrubber-view">\n    <yt-clip-creation-scrubber-canvas id="ticks" disabled="[[disabled]]" end="[[end]]" ruler-shift="[[rulerShift_]]" ruler-width="[[rulerWidth_]]" start="[[start]]" tick-spacing="[[tickSpacing_]]" visible="[[visible]]" window-size-sec="[[windowSizeSec_]]" window-speed="[[windowSlideSpeed]]" class="style-scope yt-clip-creation-scrubber-view">\n    </yt-clip-creation-scrubber-canvas>\n    <div id="handles" class="style-scope yt-clip-creation-scrubber-view">\n      <div class="handle style-scope yt-clip-creation-scrubber-view" id="handle-left">\n        <div class="handle-grip style-scope yt-clip-creation-scrubber-view"></div>\n      </div>\n      <div class="handle style-scope yt-clip-creation-scrubber-view" id="handle-right">\n        <div class="handle-grip style-scope yt-clip-creation-scrubber-view"></div>\n      </div>\n    </div>\n    <div id="playhead" class="style-scope yt-clip-creation-scrubber-view"></div>\n  </div>\n</div>\n<div id="duration" aria-label="[[durationAccessibilityLabel]]" class="style-scope yt-clip-creation-scrubber-view">[[durationLabel]]</div>\n');a.content.insertBefore(_.w().content.cloneNode(!0),
a.content.firstChild);var z=a.content,I=z.insertBefore;eEL===void 0&&(eEL=document.createElement("template"));var J=eEL;I.call(z,J.content.cloneNode(!0),a.content.firstChild);amO=a}a=amO;return a},{mode:2});var Wf=function(){var a=_.G.apply(this,arguments)||this;a.actionMap={"yt-clip-creation-visibility-changed":"onVisibilityChangedAction_","yt-clip-creation-disable":"onClipCreationDisable_","yt-clip-creation-enable":"onClipCreationEnable_"};a.startHighlightTimeout=0;a.endHighlightTimeout=0;return a};
_.b(Wf,_.G);_.Z=Wf.prototype;_.Z.attached=function(){var a=this;this.startInput.addEventListener("input",function(z){return a.handleStartInput_(z)});
this.endInput.addEventListener("input",function(z){return a.handleEndInput_(z)});
this.startInput.addEventListener("focusout",function(z){return a.handleStartBlur_(z)});
this.endInput.addEventListener("focusout",function(z){return a.handleEndBlur_(z)})};
_.Z.setPlayer=function(a){this.set("player_",a)};
_.Z.onSetFixedLengthRange_=function(a){var z=a.detail;a=z.start;var I=z.duration,J=z.startLimit;z=z.endLimit;J||(J=this.seekableStart_);z||(z=this.seekableEnd_);a=XeI(a,I,J,z);this.start=a.start;this.end=a.end};
_.Z.onSetRange_=function(a){var z=a.detail;a=z.start;var I=z.end,J=z.startLimit;z=z.endLimit;J||(J=this.seekableStart_);z||(z=this.seekableEnd_);if(a=Tft(a,I,J,z,this.minLengthSec,this.maxLengthSec))this.start=a.start,this.end=a.end};
_.Z.updateInputs_=function(){var a=this.end,z=this.start;this.startInput.focused||(this.startInput.value=vC(z,!0));this.endInput.focused||(this.endInput.value=vC(a,!0))};
_.Z.handleStartInput_=function(a){a=$E4(a.target.value);if(a===null)this.set("startValid",!1);else{var z=this.end,I=Tft(a,this.end,this.seekableStart_,this.seekableEnd_,this.minLengthSec,this.maxLengthSec);I?(this.set("endWillUpdate",I.end!==z),this.set("startValid",I.start===a)):this.set("startValid",!1)}};
_.Z.handleEndInput_=function(a){a=$E4(a.target.value);if(a===null)this.set("endValid",!1);else{var z=this.start,I=dEP(this.start,a,this.seekableStart_,this.seekableEnd_,this.minLengthSec,this.maxLengthSec);I?(this.set("startWillUpdate",I.start!==z),this.set("endValid",I.end===a)):this.set("endValid",!1)}};
_.Z.handleStartBlur_=function(a){a=$E4(a.target.value);a===null?this.startInput.value=vC(this.start,!0):this.forceUpdateInputs_(Tft(a,this.end,this.seekableStart_,this.seekableEnd_,this.minLengthSec,this.maxLengthSec))};
_.Z.handleEndBlur_=function(a){a=$E4(a.target.value);a===null?this.endInput.value=vC(this.end,!0):this.forceUpdateInputs_(dEP(this.start,a,this.seekableStart_,this.seekableEnd_,this.minLengthSec,this.maxLengthSec))};
_.Z.forceUpdateInputs_=function(a){a&&(this.start=a.start,this.end=a.end);this.startInput.value=vC(this.start,!0);this.endInput.value=vC(this.end,!0);this.endValid=this.startValid=!0;this.startWillUpdate=this.endWillUpdate=!1};
_.Z.initializeClipRange_=function(){var a=this.seekableEnd_,z=this.seekableStart_,I=this.visible_,J=this.player_;if(!J||!I||z===null||!a)this.set("initialized",!1);else if(!this.initialized){var r=J.getCurrentTime(),P=this.getDefaultLengthSec_();I=J.getVideoData();var N=J.getPlayerState()==1,u=I.isLive;P=Math.min(P,a-z);r=Math.max(0,r);a=u?dEP(r-P,r,z,a,this.minLengthSec,this.maxLengthSec):N?XeI(r-P/2,P,z,a):XeI(r,P,z,a);this.start=a.start;this.end=a.end;this.set("initialized",!0);I.isLive&&J.seekTo(a.start);
this.startInput.value=vC(this.start,!0);this.endInput.value=vC(this.end,!0)}};
_.Z.onStartChanged_=function(){var a=this;_.PA(this.hostElement,"start-changed",{start:this.start});var z;isNaN((z=this.oldStart)!=null?z:NaN)||(this.set("highlightStart",!0),clearTimeout(this.startHighlightTimeout),this.startHighlightTimeout=setTimeout(function(){a.set("highlightStart",!1);a.startHighlightTimeout=0;a.oldStart=a.start},3E3))};
_.Z.onEndChanged_=function(){var a=this;_.PA(this.hostElement,"end-changed",{end:this.end});var z;isNaN((z=this.oldEnd)!=null?z:NaN)||(this.set("highlightEnd",!0),clearTimeout(this.endHighlightTimeout),this.endHighlightTimeout=setTimeout(function(){a.set("highlightEnd",!1);a.endHighlightTimeout=0;a.oldEnd=a.end},3E3))};
_.Z.onVisibilityChangedAction_=function(a){var z=this;this.set("visible_",a.visible);this.visible_&&!this.player_&&(a=_.zI())&&a.getPlayerPromise().then(function(I){z.setPlayer(I)})};
_.Z.computeMinLengthSec_=function(a){return a/1E3||5};
_.Z.computeMaxLengthSec_=function(a){return a/1E3||60};
_.Z.computeDefaultLengthSec_=function(a){return a/1E3};
_.Z.getDefaultLengthSec_=function(){return this.defaultLengthSec||30};
_.Z.computeSeekableStart_=function(a,z){return a&&z?a.getProgressState(1).seekableStart:0};
_.Z.computeSeekableEnd_=function(a,z){return a&&z?a.getProgressState(1).seekableEnd:0};
_.Z.onClipCreationDisable_=function(){this.set("disabled",!0)};
_.Z.onClipCreationEnable_=function(){this.set("disabled",!1)};
_.Z.onDragState_=function(a){this.set("highlightStart",a.detail.startChanging);this.set("highlightEnd",a.detail.endChanging)};
Wf.prototype.onDragState_=Wf.prototype.onDragState_;Wf.prototype.onEndChanged_=Wf.prototype.onEndChanged_;Wf.prototype.onStartChanged_=Wf.prototype.onStartChanged_;Wf.prototype.initializeClipRange_=Wf.prototype.initializeClipRange_;Wf.prototype.updateInputs_=Wf.prototype.updateInputs_;Wf.prototype.onSetRange_=Wf.prototype.onSetRange_;Wf.prototype.onSetFixedLengthRange_=Wf.prototype.onSetFixedLengthRange_;
_.L([_.Q(_.Hc.YtActionHandlerBehavior),_.p("design:type",Object)],Wf.prototype,"ytActionHandlerBehavior",void 0);_.L([_.Q(_.k.YtRendererBehavior),_.p("design:type",Object)],Wf.prototype,"ytRendererBehavior",void 0);_.L([_.x(),_.p("design:type",Object)],Wf.prototype,"data",void 0);_.L([_.x({value:0}),_.p("design:type",Number)],Wf.prototype,"start",void 0);_.L([_.x({value:!0}),_.p("design:type",Boolean)],Wf.prototype,"startValid",void 0);
_.L([_.x({value:!1,reflectToAttribute:!0}),_.p("design:type",Boolean)],Wf.prototype,"startWillUpdate",void 0);_.L([_.x({value:30}),_.p("design:type",Number)],Wf.prototype,"end",void 0);_.L([_.x({value:!0}),_.p("design:type",Boolean)],Wf.prototype,"endValid",void 0);_.L([_.x({value:!1,reflectToAttribute:!0}),_.p("design:type",Boolean)],Wf.prototype,"endWillUpdate",void 0);_.L([_.x({computed:"computeMinLengthSec_(data.minLengthMs)"}),_.p("design:type",Number)],Wf.prototype,"minLengthSec",void 0);
_.L([_.x({computed:"computeMaxLengthSec_(data.maxLengthMs)"}),_.p("design:type",Number)],Wf.prototype,"maxLengthSec",void 0);_.L([_.x({computed:"computeDefaultLengthSec_(data.defaultLengthMs)"}),_.p("design:type",Number)],Wf.prototype,"defaultLengthSec",void 0);_.L([_.x({value:!1}),_.p("design:type",Boolean)],Wf.prototype,"visible_",void 0);_.L([_.x(),_.p("design:type",Object)],Wf.prototype,"player_",void 0);
_.L([_.x({value:0,computed:"computeSeekableStart_(player_, visible_)"}),_.p("design:type",Number)],Wf.prototype,"seekableStart_",void 0);_.L([_.x({computed:"computeSeekableEnd_(player_, visible_)"}),_.p("design:type",Number)],Wf.prototype,"seekableEnd_",void 0);_.L([_.x({value:!1}),_.p("design:type",Boolean)],Wf.prototype,"initialized",void 0);_.L([_.x({value:!1,reflectToAttribute:!0}),_.p("design:type",Boolean)],Wf.prototype,"disabled",void 0);
_.L([_.x({value:!1,reflectToAttribute:!0}),_.p("design:type",Boolean)],Wf.prototype,"highlightStart",void 0);_.L([_.x({value:!1,reflectToAttribute:!0}),_.p("design:type",Boolean)],Wf.prototype,"highlightEnd",void 0);_.L([_.A3("#start"),_.p("design:type",HTMLInputElement)],Wf.prototype,"startInput",void 0);_.L([_.A3("#end"),_.p("design:type",HTMLInputElement)],Wf.prototype,"endInput",void 0);
_.L([_.gz("set-fixed-length-range"),_.p("design:type",Function),_.p("design:paramtypes",[CustomEvent]),_.p("design:returntype")],Wf.prototype,"onSetFixedLengthRange_",null);_.L([_.gz("set-range"),_.p("design:type",Function),_.p("design:paramtypes",[CustomEvent]),_.p("design:returntype")],Wf.prototype,"onSetRange_",null);_.L([_.O8("start","end"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],Wf.prototype,"updateInputs_",null);
_.L([_.O8("player_","visible_","seekableStart_","seekableEnd_"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],Wf.prototype,"initializeClipRange_",null);_.L([_.O8("start"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],Wf.prototype,"onStartChanged_",null);_.L([_.O8("end"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],Wf.prototype,"onEndChanged_",null);
_.L([_.gz("clips-drag-state"),_.p("design:type",Function),_.p("design:paramtypes",[CustomEvent]),_.p("design:returntype")],Wf.prototype,"onDragState_",null);_.L([_.dz({is:"yt-clip-creation-scrubber-renderer",disableElementRegistration:!0})],Wf);
_.D(Wf,"yt-clip-creation-scrubber-renderer",function(){if(Yk9===void 0){var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-clip-creation-scrubber-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.gaming.clips.yt_clip_creation_scrubber_renderer.yt.clip.creation.scrubber.renderer.css.js--\x3e<div id="text-inputs" class="style-scope yt-clip-creation-scrubber-renderer">\n  <yt-icon id="warning-start" icon="warning" class="style-scope yt-clip-creation-scrubber-renderer"></yt-icon>\n  <tp-yt-iron-input allowed-pattern="[\\d\\.\\:]" disabled="[[disabled]]" prevent-invalid-input="" role="presentation" class="style-scope yt-clip-creation-scrubber-renderer">\n    <input id="start" placeholder="[[data.startAccessibility.accessibilityData.label]]" type="text" class="style-scope yt-clip-creation-scrubber-renderer">\n  </tp-yt-iron-input>\n  <span id="spacer" aria-hidden="true" class="style-scope yt-clip-creation-scrubber-renderer">\u2013</span>\n  <tp-yt-iron-input allowed-pattern="[\\d\\.\\:]" disabled="[[disabled]]" prevent-invalid-input="" role="presentation" class="style-scope yt-clip-creation-scrubber-renderer">\n    <input id="end" placeholder="[[data.endAccessibility.accessibilityData.label]]" type="text" class="style-scope yt-clip-creation-scrubber-renderer">\n  </tp-yt-iron-input>\n  <yt-icon id="warning-end" icon="warning" class="style-scope yt-clip-creation-scrubber-renderer"></yt-icon>\n</div>\n<yt-clip-creation-scrubber-view disabled="[[disabled]]" duration-accessibility-label="[[data.durationAccessibility.accessibilityData.label]]" end="[[end]]" initialized="[[initialized]]" length-template="[[data.lengthTemplate]]" seekable-end="[[seekableEnd_]]" seekable-start="[[seekableStart_]]" start="[[start]]" visible="[[visible_]]" window-size-ms="[[data.windowSizeMs]]" class="style-scope yt-clip-creation-scrubber-renderer">\n</yt-clip-creation-scrubber-view>\n');a.content.insertBefore(_.w().content.cloneNode(!0),
a.content.firstChild);var z=a.content,I=z.insertBefore;cy9===void 0&&(cy9=document.createElement("template"));var J=cy9;I.call(z,J.content.cloneNode(!0),a.content.firstChild);Yk9=a}a=Yk9;return a},{mode:2});var oB=function(){var a=_.G.apply(this,arguments)||this;a.player_=null;a.JSC$22524_playerEvents=new Map;a.actionMap={"yt-clip-creation-visibility-changed":"onVisibilityChangedAction_"};return a};
_.b(oB,_.G);_.Z=oB.prototype;_.Z.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"}}}};
_.Z.created=function(){this.JSC$22524_playerEvents.set("onAdStart",this.playerAdStartHandler_);this.JSC$22524_playerEvents.set("onPlaybackStartExternal",this.playerAdEndHandler_);this.JSC$22524_playerEvents.set("onVideoDataChange",this.onVideoDataChange_);this.JSC$22524_playerEvents.set("onVideoProgress",this.onVideoProgress_)};
_.Z.detached=function(){this.setPlayer(null)};
_.Z.onVisibilityChangedAction_=function(a){var z=this,I;if((I=this.data)==null?0:I.externalVideoId){var J;this.videoId=(J=this.data)==null?void 0:J.externalVideoId}this.getPlayer().then(function(r){if(a.visible)z.returnTime=r.getCurrentTime(),z.isAtLiveHead=r.getProgressState().isAtLiveHead;else{var P=z.returnTime;z.isAtLiveHead&&(P=Number.POSITIVE_INFINITY);r.seekTo(P,void 0,void 0,void 0,51)}})};
_.Z.getPlayer=function(){var a=this;if(!this.player_){var z=_.zI();if(z)return z.getPlayerPromise().then(function(I){a.setPlayer(I);return I})}return Promise.resolve(this.player_)};
_.Z.setPlayer=function(a){this.player_&&this.ytPlayerListenerBehavior.unlistenFromPlayerEvents(this.player_,this.JSC$22524_playerEvents);if(a){this.player_=a;var z;((z=this.data)==null?0:z.externalVideoId)||this.set("videoId",a.getVideoData().video_id||"");var I;(a==null?void 0:(I=a.getPresentingPlayerType)==null?void 0:I.call(a))===2&&(this.set("isAdPlaying",!0),_.ZF(this.hostElement,"yt-clip-creation-disable"));this.ytPlayerListenerBehavior.listenToPlayerEvents(a,this.JSC$22524_playerEvents)}};
_.Z.ready=function(){_.PK(this.hostElement).querySelector("#share").addEventListener("tap",this.onSubmit_.bind(this))};
_.Z.onTitleChanged_=function(a){this.set("titleValue",a.detail.title)};
_.Z.onStartChanged_=function(a){this.set("start",a.detail.start)};
_.Z.onEndChanged_=function(a){this.set("end",a.detail.end)};
_.Z.onTitleValidChanged_=function(a){this.set("titleValid",a.detail.valid)};
_.Z.onStartValidChanged_=function(a){this.set("startValid",a.detail.valid)};
_.Z.onEndValidChanged_=function(a){this.set("endValid",a.detail.valid)};
_.Z.onVideoDataChange_=function(){var a;if((a=this.data)==null||!a.externalVideoId){var z;this.set("videoId",((z=this.player_)==null?void 0:z.getVideoData().video_id)||"")}};
_.Z.computeFormValid_=function(a,z,I,J){return!!(a&&z&&I&&J)};
_.Z.computeCancelButton_=function(a,z,I){return a&&_.H(a,_.lc)?{buttonRenderer:Object.assign({},_.H(a,_.lc),{isDisabled:z||I})}:null};
_.Z.computeSubmitButton_=function(a,z,I){return a&&_.H(a,_.lc)?{buttonRenderer:Object.assign({},_.H(a,_.lc),{command:void 0,isDisabled:!this.formValid||z||I})}:null};
_.Z.computeSubmitCommand_=function(a){return a||null};
_.Z.onSubmit_=function(a){var z=this;a.stopPropagation();a.preventDefault();this.submitCommand_&&(a={},a.comment_text=this.titleValue,a.clip_external_video_id=this.videoId,a.clip_offset_ms=parseInt(this.start*1E3,10),a.clip_duration_ms=parseInt((this.end-this.start)*1E3,10),this.set("isLoading_",!0),_.N$(this.hostElement,[this.submitCommand_,a]).then(function(){z.set("isLoading_",!1)},function(){z.set("isLoading_",!1)}))};
_.Z.playerAdStartHandler_=function(){_.ZF(this.hostElement,"yt-clip-creation-disable");this.set("isAdPlaying",!0)};
_.Z.playerAdEndHandler_=function(){_.ZF(this.hostElement,"yt-clip-creation-enable");this.set("isAdPlaying",!1)};
_.Z.onVideoProgress_=function(){var a=this;this.getPlayer().then(function(z){var I,J=(z==null?void 0:(I=z.getPresentingPlayerType)==null?void 0:I.call(z))===2;a.isAdPlaying!==J&&(J?a.playerAdStartHandler_():a.playerAdEndHandler_())})};
oB.prototype.onEndValidChanged_=oB.prototype.onEndValidChanged_;oB.prototype.onStartValidChanged_=oB.prototype.onStartValidChanged_;oB.prototype.onTitleValidChanged_=oB.prototype.onTitleValidChanged_;oB.prototype.onEndChanged_=oB.prototype.onEndChanged_;oB.prototype.onStartChanged_=oB.prototype.onStartChanged_;oB.prototype.onTitleChanged_=oB.prototype.onTitleChanged_;_.L([_.Q(_.Hc.YtActionHandlerBehavior),_.p("design:type",Object)],oB.prototype,"ytActionHandlerBehavior",void 0);
_.L([_.Q(_.jz.YtPlayerListenerBehavior),_.p("design:type",Object)],oB.prototype,"ytPlayerListenerBehavior",void 0);_.L([_.Q(_.u4.YtRendererstamperBehavior),_.p("design:type",Object)],oB.prototype,"ytRendererstamperBehavior",void 0);_.L([_.Q(_.k.YtRendererBehavior),_.p("design:type",Object)],oB.prototype,"ytRendererBehavior",void 0);_.L([_.x(),_.p("design:type",Object)],oB.prototype,"data",void 0);_.L([_.x({value:""}),_.p("design:type",String)],oB.prototype,"titleValue",void 0);
_.L([_.x({value:!1}),_.p("design:type",Boolean)],oB.prototype,"titleValid",void 0);_.L([_.x({value:0}),_.p("design:type",Number)],oB.prototype,"start",void 0);_.L([_.x({value:!0}),_.p("design:type",Boolean)],oB.prototype,"startValid",void 0);_.L([_.x({value:0}),_.p("design:type",Number)],oB.prototype,"end",void 0);_.L([_.x({value:!0}),_.p("design:type",Boolean)],oB.prototype,"endValid",void 0);_.L([_.x({value:""}),_.p("design:type",String)],oB.prototype,"videoId",void 0);
_.L([_.x({computed:"computeFormValid_(data, titleValid, startValid, endValid)"}),_.p("design:type",Boolean)],oB.prototype,"formValid",void 0);_.L([_.x({computed:"computeSubmitButton_(data.saveButton, isAdPlaying, isLoading_, formValid)"}),_.p("design:type",Object)],oB.prototype,"submitButton_",void 0);_.L([_.x({computed:"computeSubmitCommand_(data.saveButton.buttonRenderer.command)"}),_.p("design:type",Object)],oB.prototype,"submitCommand_",void 0);
_.L([_.x({computed:"computeCancelButton_(data.cancelButton, isAdPlaying, isLoading_)"}),_.p("design:type",Object)],oB.prototype,"cancelButton_",void 0);_.L([_.x({value:!1}),_.p("design:type",Boolean)],oB.prototype,"isLoading_",void 0);_.L([_.x({value:!1,reflectToAttribute:!0}),_.p("design:type",Boolean)],oB.prototype,"isAdPlaying",void 0);_.L([_.x({value:0}),_.p("design:type",Number)],oB.prototype,"returnTime",void 0);_.L([_.x({value:!1}),_.p("design:type",Boolean)],oB.prototype,"isAtLiveHead",void 0);
_.L([_.gz("title-changed"),_.p("design:type",Function),_.p("design:paramtypes",[CustomEvent]),_.p("design:returntype")],oB.prototype,"onTitleChanged_",null);_.L([_.gz("start-changed"),_.p("design:type",Function),_.p("design:paramtypes",[CustomEvent]),_.p("design:returntype")],oB.prototype,"onStartChanged_",null);_.L([_.gz("end-changed"),_.p("design:type",Function),_.p("design:paramtypes",[CustomEvent]),_.p("design:returntype")],oB.prototype,"onEndChanged_",null);
_.L([_.gz("title-valid-changed"),_.p("design:type",Function),_.p("design:paramtypes",[CustomEvent]),_.p("design:returntype")],oB.prototype,"onTitleValidChanged_",null);_.L([_.gz("start-valid-changed"),_.p("design:type",Function),_.p("design:paramtypes",[CustomEvent]),_.p("design:returntype")],oB.prototype,"onStartValidChanged_",null);_.L([_.gz("end-valid-changed"),_.p("design:type",Function),_.p("design:paramtypes",[CustomEvent]),_.p("design:returntype")],oB.prototype,"onEndValidChanged_",null);
_.L([_.dz({is:"yt-clip-creation-renderer",disableElementRegistration:!0})],oB);
_.D(oB,"yt-clip-creation-renderer",function(){if(MdI===void 0){var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-clip-creation-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.gaming.clips.yt_clip_creation_renderer.yt.clip.creation.renderer.css.js--\x3e<div id="container" class="style-scope yt-clip-creation-renderer">\n  <div id="title" class="style-scope yt-clip-creation-renderer">\n    <div class="left-container style-scope yt-clip-creation-renderer">\n      <yt-img-shadow id="user-avatar" height="32" thumbnail="[[data.userAvatar]]" width="32" class="style-scope yt-clip-creation-renderer">\n      </yt-img-shadow>\n      <div id="display-name" class="style-scope yt-clip-creation-renderer">[[getSimpleString(data.displayName)]]</div>\n    </div>\n    <div id="publicity-label" class="style-scope yt-clip-creation-renderer">\n      <yt-icon id="publicity-icon" icon="yt-icons:privacy_public" class="style-scope yt-clip-creation-renderer"></yt-icon>\n      [[data.publicityLabel]]\n    </div>\n  </div>\n  <div id="title-input" class="style-scope yt-clip-creation-renderer"></div>\n  <div id="scrubber" class="style-scope yt-clip-creation-renderer"></div>\n</div>\n<div id="footer" class="style-scope yt-clip-creation-renderer">\n  <tp-yt-paper-spinner-lite active="[[isLoading_]]" hidden="[[!isLoading_]]" class="style-scope yt-clip-creation-renderer"></tp-yt-paper-spinner-lite>\n  <div id="cancel" class="style-scope yt-clip-creation-renderer"></div>\n  <div id="share" class="style-scope yt-clip-creation-renderer"></div>\n</div>\n<div id="ad-state" class="style-scope yt-clip-creation-renderer"></div>\n');a.content.insertBefore(_.w().content.cloneNode(!0),
a.content.firstChild);var z=a.content,I=z.insertBefore;kj7===void 0&&(kj7=document.createElement("template"));var J=kj7;I.call(z,J.content.cloneNode(!0),a.content.firstChild);MdI=a}a=MdI;return a},{mode:2});var U7=function(){return _.G.apply(this,arguments)||this};
_.b(U7,_.G);U7.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"}}}};
U7.prototype.onPanelContentVisibleChanged=function(){this.data&&this.data.contents&&this.data.contents.some(function(a){return a.hasOwnProperty("clipCreationRenderer")})&&_.ZF(this.hostElement,"yt-clip-creation-visibility-changed",[{visible:!!this.panelContentVisible}])};
U7.prototype.onPanelContentVisibleChanged=U7.prototype.onPanelContentVisibleChanged;_.L([_.Q(_.u4.YtRendererstamperBehavior),_.p("design:type",Object)],U7.prototype,"ytRendererstamperBehavior",void 0);_.L([_.Q(_.k.YtRendererBehavior),_.p("design:type",Object)],U7.prototype,"ytRendererBehavior",void 0);_.L([_.Q(_.qs.YtVisibilityBehavior),_.p("design:type",Object)],U7.prototype,"ytVisibilityBehavior",void 0);_.L([_.Q(_.pV),_.p("design:type",Object)],U7.prototype,"ytdReduxBehavior",void 0);
_.L([_.x(),_.p("design:type",Object)],U7.prototype,"data",void 0);_.L([_.x({reflectToAttribute:!0}),_.p("design:type",Boolean)],U7.prototype,"panelContentVisible",void 0);_.L([_.O8("panelContentVisible"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],U7.prototype,"onPanelContentVisibleChanged",null);_.L([_.U({is:"ytd-clip-section-renderer",disableElementRegistration:!0})],U7);
_.D(U7,"ytd-clip-section-renderer",function(){if(wPx!==void 0)return wPx;var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-clip-section-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="contents" class="style-scope ytd-clip-section-renderer"></div>\n<div id="footer" class="style-scope ytd-clip-section-renderer"></div>\n');a.content.insertBefore(_.w().content.cloneNode(!0),
a.content.firstChild);return wPx=a},{mode:1});var jNI;var D$=function(){return _.G.apply(this,arguments)||this};
_.b(D$,_.G);_.Z=D$.prototype;
_.Z.onKeyDown=function(a){if(this.snippetElements.length!==0&&(a=a.keyCode,a===38||a===40)){this.highlightedIndex>=0&&this.removeSnippetHighlight(this.snippetElements[this.highlightedIndex]);a===38?this.highlightedIndex--:this.highlightedIndex++;this.highlightedIndex=_.TO(this.highlightedIndex,-1,this.snippetElements.length);a=this.snippetElements.length;var z=this.highlightedIndex%a;this.highlightedIndex=z*a<0?z+a:z;a=this.snippetElements[this.highlightedIndex];this.highlightSnippet(a);this.ensureVisible(a)}};
_.Z.onKeyUp=function(a){var z=this;gZO(a)&&(a.keyCode===13?(this.selectSnippet(this.snippetElements[this.highlightedIndex]),this.inputElement.blur()):this.filterSnippets(this.snippets,this.typedValue),this.inputTimerId&&_.GW.cancelJob(this.inputTimerId),this.inputTimerId=_.GW.addLowPriorityJob(function(){z.typedValue&&(z.fetchSnippets(z.typedValue),z.logInputGesture(z.data))},1E3))};
_.Z.onClick=function(a){(a=_.NEf(a.target,null,"snippet-item"))&&this.selectSnippet(a)};
_.Z.panelContentVisibleChanged=function(){this.panelContentVisible&&this.inputElement.focus()};
_.Z.created=function(){this.ytActionHandlerBehavior.actionMap={"yt-update-search-in-video-results-action":"onUpdateSearchInVideoResults"}};
_.Z.ready=function(){var a=this;this.inputElement.addEventListener("focus",function(){a.snippetsWrapper.style.removeProperty("display")})};
_.Z.dataChanged=function(){this.typedValue="";this.snippets=[];this.fetchSnippets("")};
_.Z.getSourceTimelines=function(){if(!this.data)return[];var a=[];if(this.data.searchInVideoSources)for(var z=_.C(this.data.searchInVideoSources),I=z.next();!I.done;I=z.next())I=I.value,I==="SEARCH_IN_VIDEO_SOURCE_ASR"?a.push({type:"TIMELINE_TYPE_STRUCTURAL_ASR"}):I==="SEARCH_IN_VIDEO_SOURCE_OCR"&&a.push({type:"TIMELINE_TYPE_OCR_LABEL_SPAN"});return a};
_.Z.fetchSnippets=function(a){var z=_.ZF(this.hostElement,"yt-get-current-video-id-action")[0],I=this.getSourceTimelines();a={getSearchInVideoCommand:{externalVideoId:z,query:a!=null?a:"",sourceTimelines:I},commandMetadata:{webCommandMetadata:{apiUrl:"/youtubei/v1/in_video/search",sendPost:!0}}};_.ab().resolve(_.j6).resolveCommand(a,{form:{element:this.hostElement}})};
_.Z.filterSnippets=function(a,z){var I=this;if(z){this.filteredSnippets=(0,_.x8.unsafeClone)(a);var J=RegExp(_.UQO(z),"i");this.filteredSnippets=this.filteredSnippets.filter(function(N){return J.test(I.ytRendererBehavior.getSimpleString(N.snippet))});
a=_.C(this.filteredSnippets);for(var r=a.next();!r.done;r=a.next()){r=r.value;var P=this.ytRendererBehavior.getSimpleString(r.snippet);r.snippet={runs:[{text:P.substring(0,P.toLowerCase().indexOf(z))},{text:P.substring(P.toLowerCase().indexOf(z),P.toLowerCase().indexOf(z)+z.length),bold:!0},{text:P.substring(P.toLowerCase().indexOf(z)+z.length,P.length)}]}}}else this.filteredSnippets=a};
_.Z.onUpdateSearchInVideoResults=function(a){if(!(this.snippets.length>0)){var z,I,J;if((J=(z=_.H(a,QZG))==null?void 0:(I=z.results)==null?void 0:I.length)!=null&&J){var r;this.filteredSnippets=this.snippets=((r=_.H(a,QZG))==null?void 0:r.results).map(function(P){var N,u,E;return{startMs:P==null?void 0:(N=P.searchInVideoResultRenderer)==null?void 0:N.startMs,startTimeText:P==null?void 0:(u=P.searchInVideoResultRenderer)==null?void 0:u.startTimeText,snippet:P==null?void 0:(E=P.searchInVideoResultRenderer)==
null?void 0:E.snippet}})}}};
_.Z.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};
_.Z.highlightSnippet=function(a){a.classList.add("highlighted")};
_.Z.removeSnippetHighlight=function(a){a.classList.remove("highlighted")};
_.Z.selectSnippet=function(a){this.typedValue=String(a.dataset.text);this.filterSnippets(this.snippets,this.typedValue);this.snippetsWrapper.style.display="none";this.seekPlayer(a);this.data&&this.ytRendererBehavior.logExplicitClick(this.data)};
_.Z.ensureVisible=function(a){var z=this.snippetsWrapper.scrollTop,I=z+this.snippetsWrapper.clientHeight,J=a.offsetTop-this.snippetsWrapper.offsetTop;a=J+a.clientHeight;J<z?this.snippetsWrapper.scrollTop-=z-J:a>I&&(this.snippetsWrapper.scrollTop+=a-I)};
_.Z.seekPlayer=function(a){var z,I;return _.t(function(J){if(J.nextAddress==1){if(!a)return J.jumpTo(0);z=Number(a.dataset.startOffset);return J.yield(_.IK().getPlayerPromise(),3)}I=J.yieldResult;I.seekTo(z/1E3,!0);I.wakeUpControls();_.nu(J)})};
_.Z.logInputGesture=function(a){var z=_.TX();z&&(a==null?0:a.trackingParams)&&_.kA(z,_.VX(a.trackingParams),"INTERACTION_LOGGING_GESTURE_TYPE_INPUT_TEXT")};
_.Z.typedValueChangedForBinding=function(){this.hostElement.dispatchEvent(new _.eY("typed-value-changed",this.typedValue))};
_.Z.updateTypedValueFromBinding=function(a){this.typedValue=a.currentTarget.value};
D$.prototype.typedValueChangedForBinding=D$.prototype.typedValueChangedForBinding;D$.prototype.dataChanged=D$.prototype.dataChanged;D$.prototype.panelContentVisibleChanged=D$.prototype.panelContentVisibleChanged;D$.prototype.onClick=D$.prototype.onClick;D$.prototype.onKeyUp=D$.prototype.onKeyUp;D$.prototype.onKeyDown=D$.prototype.onKeyDown;_.L([_.Q(_.k.YtRendererBehavior),_.p("design:type",Object)],D$.prototype,"ytRendererBehavior",void 0);
_.L([_.Q(_.Hc.YtActionHandlerBehavior),_.p("design:type",Object)],D$.prototype,"ytActionHandlerBehavior",void 0);_.L([_.x(),_.p("design:type",Object)],D$.prototype,"data",void 0);_.L([_.x({value:[]}),_.p("design:type",Array)],D$.prototype,"snippets",void 0);_.L([_.x({value:[]}),_.p("design:type",Array)],D$.prototype,"filteredSnippets",void 0);_.L([_.x({value:[]}),_.p("design:type",Array)],D$.prototype,"snippetElements",void 0);
_.L([_.A3("#siv-input"),_.p("design:type",HTMLElement)],D$.prototype,"inputElement",void 0);_.L([_.A3("#siv-snippets-wrapper"),_.p("design:type",HTMLElement)],D$.prototype,"snippetsWrapper",void 0);_.L([_.x(),_.p("design:type",String)],D$.prototype,"typedValue",void 0);_.L([_.x({value:-1}),_.p("design:type",Number)],D$.prototype,"highlightedIndex",void 0);_.L([_.gz("keydown"),_.p("design:type",Function),_.p("design:paramtypes",[_.ss]),_.p("design:returntype")],D$.prototype,"onKeyDown",null);
_.L([_.gz("keyup"),_.p("design:type",Function),_.p("design:paramtypes",[_.ss]),_.p("design:returntype")],D$.prototype,"onKeyUp",null);_.L([_.gz("click"),_.p("design:type",Function),_.p("design:paramtypes",[Event]),_.p("design:returntype")],D$.prototype,"onClick",null);_.L([_.x({reflectToAttribute:!0}),_.p("design:type",Boolean)],D$.prototype,"panelContentVisible",void 0);
_.L([_.O8("panelContentVisible"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],D$.prototype,"panelContentVisibleChanged",null);_.L([_.O8("data"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],D$.prototype,"dataChanged",null);_.L([_.O8("typedValue"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],D$.prototype,"typedValueChangedForBinding",null);
_.L([_.U({is:"ytd-search-in-video-renderer",disableElementRegistration:!0})],D$);
_.D(D$,"ytd-search-in-video-renderer",function(){if(jNI!==void 0)return jNI;var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-search-in-video-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<tp-yt-paper-input-container class="input-container style-scope ytd-search-in-video-renderer" aria-owns="siv-snippets-wrapper" no-label-float="true">\n  <yt-icon class="icon style-scope ytd-search-in-video-renderer" slot="prefix" icon="yt-icons:find_in_page"></yt-icon>\n  <input id="siv-input" slot="input" value="[[typedValue]]" type="text" placeholder="[[getSimpleString(data.placeholderText)]]" aria-autocomplete="list" aria-controls="siv-snippets-wrapper" aria-haspopup="listbox" role="combobox" on-input="updateTypedValueFromBinding" class="style-scope ytd-search-in-video-renderer">\n</tp-yt-paper-input-container>\n<div id="siv-snippets-wrapper" class="snippets-wrapper style-scope ytd-search-in-video-renderer" role="listbox">\n  <div class="no-results-item style-scope ytd-search-in-video-renderer" hidden="[[filteredSnippets.length]]">\n    [[getSimpleString(data.noResultsMessage)]]\n  </div>\n  <template is="dom-repeat" items="[[filteredSnippets]]" hidden="[[!filteredSnippets.length]]" on-dom-change="updateSnippetElements" class="style-scope ytd-search-in-video-renderer">\n    \n    <div class="snippet-item style-scope ytd-search-in-video-renderer" role="option" data-start-offset$="[[item.startMs]]" data-text$="[[getSimpleString(item.snippet)]]">\n      <yt-formatted-string class="start-time-text style-scope ytd-search-in-video-renderer" text="[[item.startTimeText]]">\n      </yt-formatted-string>\n      <yt-formatted-string class="snippet-text style-scope ytd-search-in-video-renderer" text="[[item.snippet]]">\n      </yt-formatted-string>\n    </div>\n  </template>\n</div>\n');a.content.insertBefore(_.w().content.cloneNode(!0),
a.content.firstChild);return jNI=a},{mode:1});var ztj;var RB=function(){return _.G.apply(this,arguments)||this};
_.b(RB,_.G);RB.prototype.computeButtonOverride=function(){if(this.data)return{size:"S"}};
RB.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]]"}}}}}};
RB.prototype.showSnackbarIfPlaceholder=function(){if(this.isProductPlaceholder){var a,z,I,J,r=(z=_.H((a=this.data)==null?void 0:a.onClickCommand,_.Qw))==null?void 0:(I=z.item)==null?void 0:(J=I.notificationTextRenderer)==null?void 0:J.successResponseText;r&&_.FFO(this.hostElement,r)}};
_.eH.Object.defineProperties(RB.prototype,{useCenterLayoutContainer:{configurable:!0,enumerable:!0,get:function(){return this.isProductPlaceholder}},
isProductPlaceholder:{configurable:!0,enumerable:!0,get:function(){var a;return!((a=this.data)==null||!a.isProductPlaceholder)}},
showDropCountdown:{configurable:!0,enumerable:!0,get:function(){var a,z,I,J;return this.isProductPlaceholder&&((a=this.data)==null?void 0:(z=a.hiddenProductOptions)==null?void 0:z.showDropCountdown)&&!!((I=this.data)==null?0:(J=I.hiddenProductOptions)==null?0:J.dropTimestamp)}},
showBrandName:{configurable:!0,enumerable:!0,get:function(){var a;return!this.isProductPlaceholder&&!((a=this.data)==null?0:a.merchantName)}},
showPriceReplacementText:{configurable:!0,enumerable:!0,get:function(){var a;return!((a=this.data)==null||!a.priceReplacementText)}},
showPrice:{configurable:!0,enumerable:!0,get:function(){var a,z;return!((a=this.data)==null?0:a.priceReplacementText)&&!((z=this.data)==null||!z.price)}},
showMetadata:{configurable:!0,enumerable:!0,get:function(){return!this.isProductPlaceholder}}});
_.L([_.Q(_.k.YtRendererBehavior),_.p("design:type",Object)],RB.prototype,"ytRendererBehavior",void 0);_.L([_.Q(_.Ms.YtComponentBehavior),_.p("design:type",Object)],RB.prototype,"componentBehavior",void 0);_.L([_.Q(_.u4.YtRendererstamperBehavior),_.p("design:type",Object)],RB.prototype,"ytRendererstamperBehavior",void 0);_.L([_.x(),_.p("design:type",Object)],RB.prototype,"data",void 0);
_.L([_.x({reflectToAttribute:!0}),_.S("isProductPlaceholder"),_.p("design:type",Object),_.p("design:paramtypes",[])],RB.prototype,"useCenterLayoutContainer",null);_.L([_.x({computed:"computeButtonOverride(data)"}),_.p("design:type",Object)],RB.prototype,"buttonOverride",void 0);_.L([_.S("data"),_.p("design:type",Object),_.p("design:paramtypes",[])],RB.prototype,"isProductPlaceholder",null);
_.L([_.S("isProductPlaceholder"),_.p("design:type",Object),_.p("design:paramtypes",[])],RB.prototype,"showDropCountdown",null);_.L([_.S("isProductPlaceholder","data"),_.p("design:type",Object),_.p("design:paramtypes",[])],RB.prototype,"showBrandName",null);_.L([_.S("data"),_.p("design:type",Object),_.p("design:paramtypes",[])],RB.prototype,"showPriceReplacementText",null);_.L([_.S("data"),_.p("design:type",Object),_.p("design:paramtypes",[])],RB.prototype,"showPrice",null);
_.L([_.S("isProductPlaceholder"),_.p("design:type",Object),_.p("design:paramtypes",[])],RB.prototype,"showMetadata",null);_.L([_.U({disableElementRegistration:!0,is:"ytd-product-list-item-renderer"})],RB);
_.D(RB,"ytd-product-list-item-renderer",function(){if(ztj!==void 0)return ztj;var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-product-list-item-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div data-offer-version-id$="[[data.debugOfferVersionId]]" id="product-list-item" class="style-scope ytd-product-list-item-renderer"><a id="container" class="yt-simple-endpoint style-scope ytd-product-list-item-renderer" href$="[[computeHref_(data.onClickCommand)]]" rel="[[computeNofollow_(data.onClickCommand)]]" data="[[data.onClickCommand]]" on-click="showSnackbarIfPlaceholder"><div id="product-thumbnail" class="style-scope ytd-product-list-item-renderer"><yt-img-shadow object-fit="CONTAIN" thumbnail="[[data.thumbnail]]" class="style-scope ytd-product-list-item-renderer"></yt-img-shadow></div><div id="product-info-and-view" class="style-scope ytd-product-list-item-renderer"><div id="product-info" class="style-scope ytd-product-list-item-renderer"><h4 id="product-title" class="style-scope ytd-product-list-item-renderer">[[getSimpleString(data.title)]]</h4><template is="dom-if" if="[[showDropCountdown]]" class="style-scope ytd-product-list-item-renderer"><yt-countdown target-timestamp="[[data.hiddenProductOptions.dropTimestamp]]" class="style-scope ytd-product-list-item-renderer"></yt-countdown></template><template is="dom-if" if="[[showMetadata]]" class="style-scope ytd-product-list-item-renderer"><div id="merchant-name" class="style-scope ytd-product-list-item-renderer">[[data.merchantName]]</div></template><template is="dom-if" if="[[showBrandName]]" class="style-scope ytd-product-list-item-renderer"><div id="brand-name" class="style-scope ytd-product-list-item-renderer">[[data.brandName]]</div></template><template is="dom-if" restamp="" if="[[showPriceReplacementText]]" class="style-scope ytd-product-list-item-renderer"><div id="product-price-replacement" class="style-scope ytd-product-list-item-renderer">[[data.priceReplacementText]]</div></template><template is="dom-if" restamp="" if="[[showPrice]]" class="style-scope ytd-product-list-item-renderer"><div id="product-price" class="style-scope ytd-product-list-item-renderer">[[data.price]]</div></template><template is="dom-if" if="[[showMetadata]]" class="style-scope ytd-product-list-item-renderer"><div id="affiliate-disclaimer-text" class="style-scope ytd-product-list-item-renderer">\n            [[data.affiliateDisclaimerText]]\n          </div></template></div><div id="view-button" hidden="[[!showMetadata]]" class="style-scope ytd-product-list-item-renderer"></div></div></a><div id="action-button" class="style-scope ytd-product-list-item-renderer"></div></div>');a.content.insertBefore(_.w().content.cloneNode(!0),
a.content.firstChild);return ztj=a},{mode:1});var ImL;var Lb=function(){return _.G.apply(this,arguments)||this};
_.b(Lb,_.G);Lb.prototype.created=function(){this.ytRendererBehavior.monitorScroll=!0};
Lb.prototype.configureRendererStamper=function(){return{"data.contents":{id:"contents",mapping:{productListHeaderRenderer:"ytd-product-list-header-renderer",productListItemRenderer:"ytd-product-list-item-renderer"}}}};
Lb.prototype.panelContentVisibleChanged=function(){var a=this,z;return _.t(function(I){if(I.nextAddress==1)return a.playerApi?I.jumpTo(2):I.yield(_.IK().getPlayerPromise(),3);I.nextAddress!=2&&(a.playerApi=I.yieldResult);(z=a.playerApi)==null||z.productsInVideoVisibilityUpdated(!!a.panelContentVisible);_.nu(I)})};
Lb.prototype.panelContentVisibleChanged=Lb.prototype.panelContentVisibleChanged;_.L([_.Q(_.k.YtRendererBehavior),_.p("design:type",Object)],Lb.prototype,"ytRendererBehavior",void 0);_.L([_.Q(_.u4.YtRendererstamperBehavior),_.p("design:type",Object)],Lb.prototype,"ytRendererstamperBehavior",void 0);_.L([_.x({reflectToAttribute:!0}),_.p("design:type",Boolean)],Lb.prototype,"panelContentVisible",void 0);_.L([_.x(),_.p("design:type",Object)],Lb.prototype,"data",void 0);
_.L([_.O8("panelContentVisible"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype",Promise)],Lb.prototype,"panelContentVisibleChanged",null);_.L([_.U({disableElementRegistration:!0,is:"ytd-product-list-renderer"})],Lb);
_.D(Lb,"ytd-product-list-renderer",function(){if(ImL!==void 0)return ImL;var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-product-list-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="contents" class="style-scope ytd-product-list-renderer"></div>\n');a.content.insertBefore(_.w().content.cloneNode(!0),a.content.firstChild);return ImL=a},{mode:1});var Jzt;var lR=function(){var a=_.G.apply(this,arguments)||this;a.hideTimestamps=!!_.nN("hide-transcript-timestamps");a.currentCueIndex=-1;a.flatCues=[];a.actionMap={"yt-signal-action-toggle-transcript-timestamps":"handleSignalActionToggleTranscriptTimestamps","yt-player-time-changed":"onYtPlayerTimeChanged"};a.TEST_ONLY={getFlatCues:function(){return a.flatCues}};
return a};
_.b(lR,_.G);_.Z=lR.prototype;_.Z.hideTimestampsChanged=function(){_.s4("hide-transcript-timestamps",this.hideTimestamps)};
_.Z.toggleTranscriptTimestampAction=function(){this.hideTimestamps=!this.hideTimestamps};
_.Z.handleSignalActionToggleTranscriptTimestamps=function(){this.toggleTranscriptTimestampAction()};
_.Z.dataChanged=function(){var a;if((a=this.data)!=null&&a.cueGroups){this.flatCues.length=0;this.currentCueIndex=-1;a=_.C(this.data.cueGroups);for(var z=a.next();!z.done;z=a.next()){z=_.C(_.H(z.value,SGx).cues);for(var I=z.next();!I.done;I=z.next())this.flatCues.push(Number(_.H(I.value,iZj).startOffsetMs))}}};
_.Z.onYtPlayerTimeChanged=function(a){if(!(a<0)){for(var z=this.currentCueIndex,I=z;;){var J=I>=0?this.flatCues[I]/1E3:-1;if(a+.5<J)--I;else if(J=I+1<this.flatCues.length?this.flatCues[I+1]/1E3:Infinity,a+.5>J)I+=1;else break}I!==z&&(z>=0&&((a=this.getCueElement(z))&&a.classList.remove("active"),(z=this.getCueGroupElement(z))&&z.classList.remove("active")),(z=this.getCueElement(I))&&z.classList.add("active"),(z=this.getCueGroupElement(I))&&z.classList.add("active"),this.currentCueIndex=I,this.isHovered||
this.scrollElementToTop(I))}};
_.Z.scrollElementToTop=function(a){a=this.getCueElement(a>=3?a-3:0);this.hostElement.scrollTop=Math.min(a.offsetTop-this.hostElement.offsetTop,this.hostElement.scrollHeight-this.hostElement.offsetHeight)};
_.Z.getCueElement=function(a){return _.PK(this.hostElement).querySelector('.cue[start-offset="'+this.flatCues[a]+'"]')};
_.Z.getCueGroupElement=function(a){return(a=this.getCueElement(a))&&a.parentElement?a.parentElement.parentElement:null};
_.Z.onTap=function(a){var z=_.Yh(a);a.target.classList.contains("cue")&&this.seekCueElement(z)};
_.Z.onKeyPress=function(a){a.keyCode==13&&(a=_.NEf(a.target,null,"cue"))&&this.seekCueElement(a)};
_.Z.seekCueElement=function(a){a=Number(a.getAttribute("start-offset"));_.ZF(this.hostElement,"yt-transcript-player-seek",[a/1E3])};
_.Z.onMouseEnter=function(){this.isHovered=!0};
_.Z.onMouseLeave=function(){this.isHovered=!1};
lR.prototype.onMouseLeave=lR.prototype.onMouseLeave;lR.prototype.onMouseEnter=lR.prototype.onMouseEnter;lR.prototype.onKeyPress=lR.prototype.onKeyPress;lR.prototype.onTap=lR.prototype.onTap;lR.prototype.dataChanged=lR.prototype.dataChanged;lR.prototype.hideTimestampsChanged=lR.prototype.hideTimestampsChanged;_.L([_.Q(_.Hc.YtActionHandlerBehavior),_.p("design:type",Object)],lR.prototype,"ytActionHandlerBehavior",void 0);
_.L([_.Q(_.k.YtRendererBehavior),_.p("design:type",Object)],lR.prototype,"ytRendererBehavior",void 0);_.L([_.x(),_.p("design:type",Object)],lR.prototype,"data",void 0);_.L([_.x({reflectToAttribute:!0}),_.p("design:type",Object)],lR.prototype,"hideTimestamps",void 0);_.L([_.x(),_.p("design:type",Boolean)],lR.prototype,"isHovered",void 0);_.L([_.O8("hideTimestamps"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],lR.prototype,"hideTimestampsChanged",null);
_.L([_.O8("data"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],lR.prototype,"dataChanged",null);_.L([_.gz("tap"),_.p("design:type",Function),_.p("design:paramtypes",[Event]),_.p("design:returntype")],lR.prototype,"onTap",null);_.L([_.gz("keypress"),_.p("design:type",Function),_.p("design:paramtypes",[Event]),_.p("design:returntype")],lR.prototype,"onKeyPress",null);
_.L([_.gz("mouseenter"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],lR.prototype,"onMouseEnter",null);_.L([_.gz("mouseleave"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],lR.prototype,"onMouseLeave",null);_.L([_.U({disableElementRegistration:!0,is:"ytd-transcript-body-renderer"})],lR);
_.D(lR,"ytd-transcript-body-renderer",function(){if(Jzt!==void 0)return Jzt;var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-transcript-body-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<template as="cueGroup" is="dom-repeat" items="[[data.cueGroups]]" class="style-scope ytd-transcript-body-renderer">\n  <div class="cue-group style-scope ytd-transcript-body-renderer">\n    <div class="cue-group-start-offset style-scope ytd-transcript-body-renderer">\n      [[getSimpleString(cueGroup.transcriptCueGroupRenderer.formattedStartOffset)]]\n    </div>\n    <div class="cues style-scope ytd-transcript-body-renderer">\n      <template is="dom-repeat" items="[[cueGroup.transcriptCueGroupRenderer.cues]]" class="style-scope ytd-transcript-body-renderer">\n        <div class="cue style-scope ytd-transcript-body-renderer" role="button" start-offset$="[[item.transcriptCueRenderer.startOffsetMs]]" tabindex="0">\n          [[getSimpleString(item.transcriptCueRenderer.cue)]]\n        </div>\n      </template>\n    </div>\n  </div>\n</template>\n');a.content.insertBefore(_.w().content.cloneNode(!0),
a.content.firstChild);return Jzt=a},{mode:1});var rza;var pb=function(){var a=_.G.apply(this,arguments)||this;a.darkerPanels=_.K("web_watch_darker_panels");return a};
_.b(pb,_.G);pb.prototype.configureRendererStamper=function(){return{"data.languageMenu":{id:"menu",mapping:{sortFilterSubMenuRenderer:"yt-sort-filter-sub-menu-renderer"}}}};
_.L([_.Q(_.k.YtRendererBehavior),_.p("design:type",Object)],pb.prototype,"ytRendererBehavior",void 0);_.L([_.Q(_.u4.YtRendererstamperBehavior),_.p("design:type",Object)],pb.prototype,"ytRendererstamperBehavior",void 0);_.L([_.x(),_.p("design:type",Object)],pb.prototype,"data",void 0);_.L([_.x({reflectToAttribute:!0}),_.p("design:type",Object)],pb.prototype,"darkerPanels",void 0);_.L([_.U({disableElementRegistration:!0,is:"ytd-transcript-footer-renderer"})],pb);
_.D(pb,"ytd-transcript-footer-renderer",function(){if(rza!==void 0)return rza;var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-transcript-footer-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="menu" class="style-scope ytd-transcript-footer-renderer"></div>\n');a.content.insertBefore(_.w().content.cloneNode(!0),a.content.firstChild);return rza=a},{mode:1});var Ppx;var ZBI;var wp=function(){var a=_.G.apply(this,arguments)||this;a.systemIcons=_.K("kevlar_system_icons");a.showClearButton=!1;return a};
_.b(wp,_.G);_.Z=wp.prototype;_.Z.handleInput=function(a){var z=this;a.target.value.length?_.pM(this,"ytdTranscriptSearchBoxSearch",function(){z.emitSearchEvent(a)},500):(_.GyG(this,"ytdTranscriptSearchBoxSearch"),this.emitClearEvent());
this.showClearButton=a.target.value.length>0};
_.Z.clear=function(){this.inputBox.value="";this.showClearButton=!1};
_.Z.handleClick=function(){var a,z=(a=this.data)==null?void 0:a.trackingParams;z&&_.KJ(_.Kw(),z)};
_.Z.handleClear=function(){_.GyG(this,"ytdTranscriptSearchBoxSearch");this.emitClearEvent();var a,z,I=(z=_.H((a=this.data)==null?void 0:a.clearButton,_.lc))==null?void 0:z.trackingParams;I&&_.KJ(_.Kw(),I);this.clear()};
_.Z.emitSearchEvent=function(a){_.PA(this.hostElement,"yt-transcript-search-box-search",{query:a.target.value});var z,I;(a=(I=_.H((z=this.data)==null?void 0:z.searchButton,_.lc))==null?void 0:I.trackingParams)&&_.KJ(_.Kw(),a)};
_.Z.emitClearEvent=function(){_.PA(this.hostElement,"yt-transcript-search-box-clear")};
_.eH.Object.defineProperties(wp.prototype,{inputBox:{configurable:!0,enumerable:!0,get:function(){return _.PK(this.hostElement).querySelector("#transcript-search-box-input")}},
value:{configurable:!0,enumerable:!0,get:function(){return this.inputBox.value}}});
_.L([_.Q(_.k.YtRendererBehavior),_.p("design:type",Object)],wp.prototype,"ytRendererBehavior",void 0);_.L([_.x(),_.p("design:type",Object)],wp.prototype,"data",void 0);_.L([_.x({reflectToAttribute:!0}),_.p("design:type",Object)],wp.prototype,"systemIcons",void 0);_.L([_.U({disableElementRegistration:!0,is:"ytd-transcript-search-box-renderer"})],wp);
_.D(wp,"ytd-transcript-search-box-renderer",function(){if(ZBI!==void 0)return ZBI;var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-transcript-search-box-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<tp-yt-paper-input-container class="input-container style-scope ytd-transcript-search-box-renderer" no-label-float="true">\n  <yt-icon class="icon style-scope ytd-transcript-search-box-renderer" slot="prefix" icon="yt-icons:search"></yt-icon>\n  <input id="transcript-search-box-input" slot="input" type="text" placeholder="[[getSimpleString(data.formattedPlaceholder)]]" aria-autocomplete="list" aria-haspopup="listbox" maxlength="1000" role="combobox" on-click="handleClick" on-input="handleInput" class="style-scope ytd-transcript-search-box-renderer">\n  <tp-yt-paper-icon-button class="clear-button style-scope ytd-transcript-search-box-renderer" slot="suffix" hidden="[[!showClearButton]]" icon="yt-sys-icons:close" on-click="handleClear"></tp-yt-paper-icon-button>\n</tp-yt-paper-input-container>\n');a.content.insertBefore(_.w().content.cloneNode(!0),
a.content.firstChild);return ZBI=a},{mode:1});var Cp7;var NJx;var mn=function(){return _.G.apply(this,arguments)||this};
_.b(mn,_.G);mn.prototype.dataChanged=function(){if(this.data&&this.data.accessibility&&this.data.accessibility.accessibilityData){var a,z;this.sectionHeaderAriaLabel=(a=this.data)==null?void 0:(z=a.accessibility)==null?void 0:z.accessibilityData.label}};
mn.prototype.fireSelectedEvent=function(a){_.PA(this.hostElement,"ytd-transcript-section-header",{startMs:a})};
mn.prototype.handleClick=function(){this.data&&this.fireSelectedEvent(Number(this.data.startMs))};
mn.prototype.handleKeyPress=function(a){this.data&&a.key==="Enter"&&this.fireSelectedEvent(Number(this.data.startMs))};
_.eH.Object.defineProperties(mn.prototype,{enableTappableTranscriptHeader:{configurable:!0,enumerable:!0,get:function(){var a,z;return(z=(a=this.data)==null?void 0:a.enableTappableTranscriptHeader)!=null?z:!1}}});
mn.prototype.dataChanged=mn.prototype.dataChanged;_.L([_.x(),_.p("design:type",Object)],mn.prototype,"data",void 0);_.L([_.x(),_.p("design:type",String)],mn.prototype,"sectionHeaderAriaLabel",void 0);_.L([_.S("data"),_.p("design:type",Object),_.p("design:paramtypes",[])],mn.prototype,"enableTappableTranscriptHeader",null);_.L([_.O8("data"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],mn.prototype,"dataChanged",null);
_.L([_.U({disableElementRegistration:!0,is:"ytd-transcript-section-header-renderer"})],mn);
_.D(mn,"ytd-transcript-section-header-renderer",function(){if(NJx!==void 0)return NJx;var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-transcript-section-header-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<template is="dom-if" restamp="" if="[[enableTappableTranscriptHeader]]" class="style-scope ytd-transcript-section-header-renderer">\n  <div id="header" class="transcript-section-header style-scope ytd-transcript-section-header-renderer" aria-label$="[[sectionHeaderAriaLabel]]" tabindex="0" role="button" on-click="handleClick" on-keypress="handleKeyPress">\n    <yt-section-header-view-model data="[[data.sectionHeader.sectionHeaderViewModel]]" disable-vertical-padding="true" force-small-layout="true" class="style-scope ytd-transcript-section-header-renderer">\n  </yt-section-header-view-model></div>\n</template>\n<template is="dom-if" restamp="" if="[[!enableTappableTranscriptHeader]]" class="style-scope ytd-transcript-section-header-renderer">\n  <div id="header" aria-label$="[[sectionHeaderAriaLabel]]" class="style-scope ytd-transcript-section-header-renderer">\n    <yt-formatted-string id="title" aria-hidden="true" tabindex="-1" text="[[data.snippet]]" class="style-scope ytd-transcript-section-header-renderer">\n    </yt-formatted-string>\n  </div>\n</template>\n');a.content.insertBefore(_.w().content.cloneNode(!0),
a.content.firstChild);return NJx=a},{mode:1});var tTa;var um4;var yl=function(){var a=_.G.apply(this,arguments)||this;a.isEditMode=!1;a.touchCaptionsEnabled=!1;a.deleteCaptionCorrectionPopupCommand=null;a.voteCaptionCorrectionPopupCommand=null;a.roundedContainer=!0;a.mouseOver=!1;a.textChanged=!1;a.messages={suggest_correction:_.AR("suggest_correction",void 0,"Edit caption"),suggested_caption:_.AR("suggested_caption",void 0,"Suggested caption"),submit_correction:_.AR("submit_correction",void 0,"Submit for review"),cancel_correction:_.AR("cancel_correction",
void 0,"Cancel"),replay_segment:_.AR("replay_segment",void 0,"Re-play segment"),delete_correction:_.AR("delete_correction",void 0,"Delete correction")};a.actionMap={"yt-transcript-update-segment-text-command":"handleUpdateSegmentText","yt-transcript-edit-segment-command":"handleEditSegmentCommand"};return a};
_.b(yl,_.G);_.Z=yl.prototype;_.Z.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)};
_.Z.handleDelete=function(a){if(this.deleteCaptionCorrectionPopupCommand){var z=this.ytdOpenPopupBehavior.getNavigationEndpointPopupAction(this.deleteCaptionCorrectionPopupCommand);z&&this.ytdOpenPopupBehavior.openPopup(z);a.stopPropagation()}};
_.Z.handleSubmit=function(a){if(this.data&&this.data.submitCaptionCorrectionCommand&&(a.stopPropagation(),this.textChanged)){var z;a=(z=_.H(this.data.submitCaptionCorrectionCommand,_.eGw))==null?void 0:z.params;z=Object.assign({},this.data.submitCaptionCorrectionCommand,{transcriptSubmitCaptionCorrectionCommand:{params:a,correctionText:String(this.ironTextAreaElement.value),originalText:_.cd(this.data.snippet)}});this.ytComponentBehavior.resolveCommand(z);this.isEditMode=!1}};
_.Z.handleUpdateSegmentText=function(a){(a=_.H(a,m07))&&a.targetId&&this.data&&a.targetId===this.data.targetId&&(a.userCorrection&&(this.editedText=a.userCorrection),a.restoreOriginalCaption&&(this.editedText=void 0,this.ironTextAreaElement.value=_.cd(this.data.snippet)),a.deleteCaptionCorrectionPopupCommand?this.deleteCaptionCorrectionPopupCommand=a.deleteCaptionCorrectionPopupCommand:this.deleteCaptionCorrectionPopupCommand=null,this.voteCaptionCorrectionPopupCommand=a.voteCaptionCorrectionPopupCommand?
a.voteCaptionCorrectionPopupCommand:null,a.accessibility&&(this.segmentAriaLabel=a.accessibility.accessibilityData.label))};
_.Z.handleCancel=function(a){this.isEditMode=!1;a.stopPropagation();this.logClientVe(159409)};
_.Z.handleEditSegmentCommand=function(a){(a=_.H(a,w4O))&&a.targetId&&this.data&&a.targetId===this.data.targetId&&this.handleEdit()};
_.Z.handleEditButtonClick=function(a){this.data&&(this.handleEdit(),a.stopPropagation())};
_.Z.handleEdit=function(){if(this.data){this.fireEditEvent(Number(this.data.startMs),Number(this.data.endMs));this.isEditMode=!0;var a;(a=this.ironTextAreaElement.textarea)==null||a.focus();this.logClientVe(159407)}};
_.Z.handleMouseEnter=function(){this.mouseOver=!0};
_.Z.handleMouseLeave=function(){this.mouseOver=!1};
_.Z.handleReplay=function(a){this.data&&(this.fireReplayEvent(Number(this.data.startMs),Number(this.data.endMs)),a.stopPropagation(),this.logClientVe(159408))};
_.Z.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()))};
_.Z.handleKeypress=function(a){this.data&&(this.isEditMode?a.stopPropagation():this.isEnterPress(a)?(this.fireSelectedEvent(Number(this.data.startMs)),this.logClick()):this.isCopyPress(a)&&this.logClientVe(138758))};
_.Z.handleTextboxClick=function(a){a.stopPropagation()};
_.Z.handleTextboxKeydown=function(a){this.isControlEnterPress(a)?this.handleSubmit(a):a.key==="Escape"&&this.handleCancel(a)};
_.Z.handleTextboxKeyup=function(){this.textChanged=_.cd(this.latestText)!==String(this.ironTextAreaElement.value)};
_.Z.fireSelectedEvent=function(a){_.PA(this.hostElement,"yt-transcript-segment-selected",{startMs:a})};
_.Z.fireReplayEvent=function(a,z){_.PA(this.hostElement,"yt-transcript-segment-replay",{startMs:Math.max(a-100,0),endMs:z})};
_.Z.fireEditEvent=function(a,z){_.PA(this.hostElement,"yt-transcript-segment-edit",{startMs:a,endMs:z})};
_.Z.isEnterPress=function(a){return a.key==="Enter"||a.code==="Enter"||a.code==="NumpadEnter"||a.keyCode===13?!0:!1};
_.Z.isControlEnterPress=function(a){var z=a.key==="Enter"||a.code==="Enter"||a.code==="NumpadEnter"||a.keyCode===13;return(a.ctrlKey||a.metaKey)&&z};
_.Z.isCopyPress=function(a){var z=a.ctrlKey;return a.key==="c"&&z};
_.Z.logClick=function(){var a,z=(a=this.data)==null?void 0:a.trackingParams;z&&_.KJ(_.Kw(),z)};
_.Z.logClientVe=function(a){_.nJ(_.Kw(),_.uq(a))};
_.eH.Object.defineProperties(yl.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}}});
yl.prototype.handleMouseLeave=yl.prototype.handleMouseLeave;yl.prototype.handleMouseEnter=yl.prototype.handleMouseEnter;yl.prototype.dataChanged=yl.prototype.dataChanged;_.L([_.Q(_.Hc.YtActionHandlerBehavior),_.Q(_.Ms.YtComponentBehavior),_.p("design:type",Object)],yl.prototype,"ytComponentBehavior",void 0);_.L([_.Q(_.rI),_.p("design:type",Object)],yl.prototype,"ytdOpenPopupBehavior",void 0);_.L([_.Q(_.k.YtRendererBehavior),_.p("design:type",Object)],yl.prototype,"ytRendererBehavior",void 0);
_.L([_.x(),_.p("design:type",Object)],yl.prototype,"data",void 0);_.L([_.x({reflectToAttribute:!0}),_.p("design:type",Object)],yl.prototype,"isEditMode",void 0);_.L([_.x(),_.p("design:type",Object)],yl.prototype,"touchCaptionsEnabled",void 0);_.L([_.x(),_.p("design:type",Object)],yl.prototype,"editedText",void 0);_.L([_.x(),_.p("design:type",Object)],yl.prototype,"deleteCaptionCorrectionPopupCommand",void 0);_.L([_.x(),_.p("design:type",Object)],yl.prototype,"voteCaptionCorrectionPopupCommand",void 0);
_.L([_.x(),_.p("design:type",String)],yl.prototype,"segmentAriaLabel",void 0);_.L([_.x({reflectToAttribute:!0}),_.p("design:type",Object)],yl.prototype,"roundedContainer",void 0);_.L([_.x({reflectToAttribute:!0}),_.p("design:type",Object)],yl.prototype,"mouseOver",void 0);_.L([_.x({reflectToAttribute:!0}),_.p("design:type",Object)],yl.prototype,"textChanged",void 0);_.L([_.x(),_.p("design:type",Object)],yl.prototype,"messages",void 0);
_.L([_.A3("#suggestion"),_.p("design:type",Object)],yl.prototype,"ironTextAreaElement",void 0);_.L([_.S("data","editedText"),_.p("design:type",Object),_.p("design:paramtypes",[])],yl.prototype,"latestText",null);_.L([_.S("touchCaptionsEnabled","isEditMode"),_.p("design:type",Boolean),_.p("design:paramtypes",[])],yl.prototype,"enableEditButton",null);
_.L([_.S("enableEditButton","deleteCaptionCorrectionPopupCommand"),_.p("design:type",Boolean),_.p("design:paramtypes",[])],yl.prototype,"enableUndoButton",null);_.L([_.O8("data"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],yl.prototype,"dataChanged",null);_.L([_.gz("mouseenter"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],yl.prototype,"handleMouseEnter",null);
_.L([_.gz("mouseleave"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],yl.prototype,"handleMouseLeave",null);_.L([_.U({disableElementRegistration:!0,is:"ytd-transcript-segment-renderer"})],yl);
_.D(yl,"ytd-transcript-segment-renderer",function(){if(um4!==void 0)return um4;var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-transcript-segment-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="segment style-scope ytd-transcript-segment-renderer" aria-label$="[[segmentAriaLabel]]" role="button" tabindex="0" on-click="handleClick" on-keypress="handleKeypress">\n  <div class="segment-start-offset style-scope ytd-transcript-segment-renderer" tabindex="-1" aria-hidden="true" on-keypress="handleKeypress">\n    <div class="segment-timestamp style-scope ytd-transcript-segment-renderer">\n      [[getSimpleString(data.startTimeText)]]\n    </div>\n  </div>\n  <template is="dom-if" restamp="" if="[[touchCaptionsEnabled]]" class="style-scope ytd-transcript-segment-renderer">\n    <tp-yt-paper-input-container hidden="[[!isEditMode]]" no-label-float="true" use-v2-underline="" on-click="handleTextboxClick" on-keydown="handleTextboxKeydown" on-keyup="handleTextboxKeyup" class="style-scope ytd-transcript-segment-renderer">\n      <tp-yt-iron-autogrow-textarea id="suggestion" class="paper-input-input style-scope ytd-transcript-segment-renderer" slot="input" label="[[messages.suggested_caption]]" max-rows="4" required="true" rows="1" value="[[getSimpleString(data.snippet)]]">\n      </tp-yt-iron-autogrow-textarea>\n    </tp-yt-paper-input-container>\n    <div id="actions" hidden="[[!isEditMode]]" class="style-scope ytd-transcript-segment-renderer">\n      <div class="submit style-scope ytd-transcript-segment-renderer" on-click="handleSubmit">\n        <yt-icon-button label="[[messages.submit_correction]]" class="style-scope ytd-transcript-segment-renderer">\n          <yt-icon icon="yt-icons:check" class="style-scope ytd-transcript-segment-renderer"></yt-icon>\n          <tp-yt-paper-tooltip class="style-scope ytd-transcript-segment-renderer">[[messages.submit_correction]]</tp-yt-paper-tooltip>\n        </yt-icon-button>\n      </div>\n      <div class="cancel style-scope ytd-transcript-segment-renderer" on-click="handleCancel">\n        <yt-icon-button label="[[messages.cancel_correction]]" class="style-scope ytd-transcript-segment-renderer">\n          <yt-icon icon="yt-icons:close" class="style-scope ytd-transcript-segment-renderer"></yt-icon>\n          <tp-yt-paper-tooltip class="style-scope ytd-transcript-segment-renderer">[[messages.cancel_correction]]</tp-yt-paper-tooltip>\n        </yt-icon-button>\n      </div>\n      <div class="replay style-scope ytd-transcript-segment-renderer" on-click="handleReplay">\n        <yt-icon-button label="[[messages.replay_segment]]" class="style-scope ytd-transcript-segment-renderer">\n          <yt-icon icon="yt-icons:replay_arrow" class="style-scope ytd-transcript-segment-renderer"></yt-icon>\n          <tp-yt-paper-tooltip class="style-scope ytd-transcript-segment-renderer">[[messages.replay_segment]]</tp-yt-paper-tooltip>\n        </yt-icon-button>\n      </div>\n    </div>\n  </template>\n  <yt-formatted-string class="segment-text style-scope ytd-transcript-segment-renderer" aria-hidden="true" hidden="[[isEditMode]]" tabindex="-1" text="[[latestText]]">\n  </yt-formatted-string>\n  <template is="dom-if" restamp="" if="[[touchCaptionsEnabled]]" class="style-scope ytd-transcript-segment-renderer">\n    <div class="segment-undo style-scope ytd-transcript-segment-renderer" on-click="handleDelete" hidden="[[!enableUndoButton]]">\n      <yt-icon-button label="[[messages.delete_correction]]" class="style-scope ytd-transcript-segment-renderer">\n        <yt-icon icon="yt-icons:arrow_undo" class="style-scope ytd-transcript-segment-renderer"></yt-icon>\n        <tp-yt-paper-tooltip class="style-scope ytd-transcript-segment-renderer">[[messages.delete_correction]]</tp-yt-paper-tooltip>\n      </yt-icon-button>\n    </div>\n    <div class="segment-edit style-scope ytd-transcript-segment-renderer" on-click="handleEditButtonClick" hidden="[[!enableEditButton]]">\n      <yt-icon-button label="[[messages.suggest_correction]]" class="style-scope ytd-transcript-segment-renderer">\n        <yt-icon icon="yt-icons:edit" class="style-scope ytd-transcript-segment-renderer"></yt-icon>\n        <tp-yt-paper-tooltip class="style-scope ytd-transcript-segment-renderer">[[messages.suggest_correction]]</tp-yt-paper-tooltip>\n      </yt-icon-button>\n    </div>\n  </template>\n</div>\n');a.content.insertBefore(_.w().content.cloneNode(!0),
a.content.firstChild);return um4=a},{mode:1});var kf=function(){var a=_.G.apply(this,arguments)||this;a.actionMap={"yt-player-time-changed":"onYtPlayerTimeChanged"};a.isError=!1;a.darkerPanels=_.K("web_watch_darker_panels");a.useParentMaxHeight=_.K("web_watch_transscript_use_parent_max_height");a.segmentOffsets=[];a.segmentIndex=-1;return a};
_.b(kf,_.G);_.Z=kf.prototype;_.Z.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"}}}}};
_.Z.segmentsChanged=function(){this.updateOffsets()};
_.Z.onYtPlayerTimeChanged=function(a){for(var z=this.segmentIndex,I=z;;){if(I>=0){var J=this.segmentOffsets[I].start;var r=this.segmentOffsets[I].isAutoScrollable}else J=-1,r=!0;var P=a+.5;if(!r){J=I+1<this.segmentOffsets.length?this.segmentOffsets[I+1].start:Infinity;if(P>=J){I+=1;continue}I=-1;break}if(P<J)J=I-1>=0&&this.segmentOffsets[I-1].isAutoScrollable,r=I===0||J?1:2,I-=r;else if(r=I+1<this.segmentOffsets.length&&this.segmentOffsets[I+1].isAutoScrollable?1:2,J=I+r<this.segmentOffsets.length?
this.segmentOffsets[I+r].start:Infinity,P>J)I+=r;else{if(I<0)break;I<this.segmentOffsets.length&&P>this.segmentOffsets[I].end&&(I=-1);break}}if(z!==I){if(z>=0){var N;(N=this.getSegmentElement(z))==null||N.classList.remove("active")}this.segmentIndex=I;if(!(I<0)){var u;(u=this.getSegmentElement(I))==null||u.classList.add("active");this.isHovered||this.scrollElementToTop(I)}}};
_.Z.handleSegmentEdit=function(a){a.target&&(this.lastSegmentEdited&&(this.lastSegmentEdited.isEditMode=!1),this.lastSegmentEdited=a.target,_.ZF(this.hostElement,"yt-transcript-player-edit",[a.detail.startMs/1E3,a.detail.endMs/1E3]))};
_.Z.handleSegmentSelected=function(a){_.ZF(this.hostElement,"yt-transcript-player-seek",[a.detail.startMs/1E3])};
_.Z.handleSegmentReplay=function(a){_.ZF(this.hostElement,"yt-transcript-player-replay",[a.detail.startMs/1E3,a.detail.endMs/1E3])};
_.Z.handleSectionHeaderSelected=function(a){_.ZF(this.hostElement,"yt-transcript-player-seek",[a.detail.startMs/1E3])};
_.Z.onMouseEnter=function(){this.isHovered=!0};
_.Z.onMouseLeave=function(){this.isHovered=!1};
_.Z.onRetryButtonClick=function(){_.PA(this.hostElement,"transcript-retry-button-click")};
_.Z.getSegmentElement=function(a){return _.PK(this.hostElement).querySelector(":nth-child("+(a+1)+")")};
_.Z.scrollElementToTop=function(a){a=this.getSegmentElement(a>=2?a-2:0);this.hostElement.scrollTop=Math.min(a.offsetTop-this.hostElement.offsetTop,this.hostElement.scrollHeight-this.hostElement.offsetHeight)};
_.Z.updateOffsets=function(){this.segmentOffsets=this.segments.map(function(a){var z,I=(z=a.transcriptSegmentRenderer)!=null?z:a.transcriptSectionHeaderRenderer;return{start:Number(I.startMs)/1E3,end:Number(I.endMs)/1E3,isAutoScrollable:a.transcriptSegmentRenderer!==void 0}});
this.segmentIndex=-1;this.clearHighlightedSegments()};
_.Z.clearHighlightedSegments=function(){var a=_.PK(this.hostElement);a=_.C(a.querySelectorAll("ytd-transcript-segment-renderer"));for(var z=a.next();!z.done;z=a.next())z.value.classList.remove("active")};
_.eH.Object.defineProperties(kf.prototype,{segments:{configurable:!0,enumerable:!0,get:function(){var a,z;return((a=this.data)==null?void 0:a.searchResultSegments)||((z=this.data)==null?void 0:z.initialSegments)||[]}},
displayNoResults:{configurable:!0,enumerable:!0,get:function(){return!!this.segments&&this.segments.length===0&&!!this.noResultLabel}}});
kf.prototype.onMouseLeave=kf.prototype.onMouseLeave;kf.prototype.onMouseEnter=kf.prototype.onMouseEnter;kf.prototype.handleSectionHeaderSelected=kf.prototype.handleSectionHeaderSelected;kf.prototype.handleSegmentReplay=kf.prototype.handleSegmentReplay;kf.prototype.handleSegmentSelected=kf.prototype.handleSegmentSelected;kf.prototype.handleSegmentEdit=kf.prototype.handleSegmentEdit;kf.prototype.segmentsChanged=kf.prototype.segmentsChanged;
_.L([_.Q(_.Hc.YtActionHandlerBehavior),_.p("design:type",Object)],kf.prototype,"ytActionHandlerBehavior",void 0);_.L([_.Q(_.k.YtRendererBehavior),_.p("design:type",Object)],kf.prototype,"ytRendererBehavior",void 0);_.L([_.Q(_.u4.YtRendererstamperBehavior),_.p("design:type",Object)],kf.prototype,"ytRendererstamperBehavior",void 0);_.L([_.x(),_.p("design:type",Object)],kf.prototype,"data",void 0);_.L([_.x(),_.p("design:type",Object)],kf.prototype,"isError",void 0);
_.L([_.x(),_.p("design:type",Object)],kf.prototype,"noResultLabel",void 0);_.L([_.x({reflectToAttribute:!0}),_.p("design:type",Object)],kf.prototype,"darkerPanels",void 0);_.L([_.x({reflectToAttribute:!0}),_.p("design:type",Object)],kf.prototype,"useParentMaxHeight",void 0);_.L([_.S("data"),_.p("design:type",Array),_.p("design:paramtypes",[])],kf.prototype,"segments",null);
_.L([_.S("segments","noResultLabel"),_.p("design:type",Boolean),_.p("design:paramtypes",[])],kf.prototype,"displayNoResults",null);_.L([_.O8("segments"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],kf.prototype,"segmentsChanged",null);_.L([_.gz("yt-transcript-segment-edit"),_.p("design:type",Function),_.p("design:paramtypes",[Event]),_.p("design:returntype")],kf.prototype,"handleSegmentEdit",null);
_.L([_.gz("yt-transcript-segment-selected"),_.p("design:type",Function),_.p("design:paramtypes",[Event]),_.p("design:returntype")],kf.prototype,"handleSegmentSelected",null);_.L([_.gz("yt-transcript-segment-replay"),_.p("design:type",Function),_.p("design:paramtypes",[Event]),_.p("design:returntype")],kf.prototype,"handleSegmentReplay",null);
_.L([_.gz("ytd-transcript-section-header"),_.p("design:type",Function),_.p("design:paramtypes",[Event]),_.p("design:returntype")],kf.prototype,"handleSectionHeaderSelected",null);_.L([_.gz("mouseenter"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],kf.prototype,"onMouseEnter",null);_.L([_.gz("mouseleave"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],kf.prototype,"onMouseLeave",null);
_.L([_.U({disableElementRegistration:!0,is:"ytd-transcript-segment-list-renderer"})],kf);
_.D(kf,"ytd-transcript-segment-list-renderer",function(){if(tTa!==void 0)return tTa;var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-transcript-segment-list-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="segments-container" class="style-scope ytd-transcript-segment-list-renderer"></div>\n<div id="message-container" hidden="[[!displayNoResults]]" class="style-scope ytd-transcript-segment-list-renderer">\n  <yt-formatted-string id="no-results" text="[[noResultLabel]]" class="style-scope ytd-transcript-segment-list-renderer">\n  </yt-formatted-string>\n</div>');a.content.insertBefore(_.w().content.cloneNode(!0),
a.content.firstChild);return tTa=a},{mode:1});var Mu=function(){var a=_.G.apply(this,arguments)||this;a.hideTimestamps=!!_.nN("hide-transcript-timestamps");a.isLoadingTranscripts=!1;a.darkerPanels=_.K("web_watch_darker_panels");a.isError=!1;a.actionMap={"yt-signal-action-toggle-transcript-timestamps":"handleSignalActionToggleTranscriptTimestamps","yt-signal-action-copy-transcript":"handleSignalActionCopyTranscript"};return a};
_.b(Mu,_.G);_.Z=Mu.prototype;_.Z.headerChanged=function(){var a,z;this.baseGetTranscriptsCommand=(z=_.H((a=this.data)==null?void 0:a.header,yex))==null?void 0:z.onTextChangeCommand};
_.Z.bodyChanged=function(){var a=this.getBodyRenderer();a&&(a.initialSegments&&(this.initialTranscriptsRenderer=a),a.noResultLabel&&(this.noResultLabel=a.noResultLabel),a.retryLabel&&(this.retryLabel=a.retryLabel))};
_.Z.detached=function(){this.clearSearchBoxText()};
_.Z.configureContinuationPathMap=function(){return{"yt-reload-continuation-items-command-body":"body"}};
_.Z.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"}}}};
_.Z.onReloadContinuationFinish=function(){this.isLoadingTranscripts=!1};
_.Z.fireSearch=function(a){var z=this;if(a){var I=a.detail.query;if(this.baseGetTranscriptsCommand){var J;a=(J=_.H(this.baseGetTranscriptsCommand,_.iRe))==null?void 0:J.params;var r;J=_.H((r=this.data)==null?void 0:r.footer,x0t);var P;if((r=(P=_.H(J==null?void 0:J.languageMenu,LzL))==null?void 0:P.subMenuItems)&&r.length>0&&(P=r.find(function(E){return E.selected}))){var N,u;
a=(N=P.continuation)==null?void 0:(u=N.reloadContinuationData)==null?void 0:u.continuation}N=Object.assign({},this.baseGetTranscriptsCommand,{getTranscriptEndpoint:{params:a,searchQuery:I}});this.ytComponentBehavior.resolveCommand(N,{commandController:{onServerError:function(){z.setError()}}});
this.isLoadingTranscripts=!0;this.set("data.body",{});EZI(this.ytContinuationHandlerBehavior,function(){return I===z.getCurrentSearchBoxText()})}}};
_.Z.searchCleared=function(){this.data&&this.data.body&&(this.isLoadingTranscripts=!1,this.set("data.body",{transcriptSegmentListRenderer:this.initialTranscriptsRenderer}))};
_.Z.onRetryButtonClick=function(){this.isError=!1;var a={query:this.getCurrentSearchBoxText()};this.fireSearch(new CustomEvent("yt-transcript-search-box-search",{detail:a}))};
_.Z.hideTimestampsChanged=function(){_.s4("hide-transcript-timestamps",this.hideTimestamps)};
_.Z.toggleTranscriptTimestampAction=function(){this.hideTimestamps=!this.hideTimestamps};
_.Z.handleSignalActionToggleTranscriptTimestamps=function(){this.toggleTranscriptTimestampAction()};
_.Z.handleSignalActionCopyTranscript=function(){var a=this,z=this.getBodyRenderer();z&&(z=((z==null?void 0:z.searchResultSegments)||(z==null?void 0:z.initialSegments)||[]).map(function(I){return _.H(I,MfL)}).filter(function(I){return!!I}).map(function(I){return{snippet:I.snippet||{runs:[{text:""}]},
startTimeText:I.startTimeText||{simpleText:""}}}).map(function(I){var J=(I.snippet.runs||[]).reduce(function(r,P){return r+P.text},"");
return a.hideTimestamps?J:I.startTimeText.simpleText+" "+J}).join("\n"),this.copyToClipboard(z))};
_.Z.copyToClipboard=function(a){navigator.clipboard&&navigator.clipboard.writeText(a)};
_.Z.getCurrentSearchBoxText=function(){var a;return(a=this.searchBox)==null?void 0:a.value};
_.Z.clearSearchBoxText=function(){this.searchBox&&this.searchBox.clear()};
_.Z.getBodyRenderer=function(){var a;return _.H((a=this.data)==null?void 0:a.body,kYI)};
_.Z.setError=function(){this.isLoadingTranscripts=!1;this.isError=!0};
_.eH.Object.defineProperties(Mu.prototype,{searchBox:{configurable:!0,enumerable:!0,get:function(){return _.PK(this.hostElement).querySelector("ytd-transcript-search-box-renderer")}}});
Mu.prototype.hideTimestampsChanged=Mu.prototype.hideTimestampsChanged;Mu.prototype.searchCleared=Mu.prototype.searchCleared;Mu.prototype.fireSearch=Mu.prototype.fireSearch;Mu.prototype.onReloadContinuationFinish=Mu.prototype.onReloadContinuationFinish;Mu.prototype.bodyChanged=Mu.prototype.bodyChanged;Mu.prototype.headerChanged=Mu.prototype.headerChanged;_.L([_.Q(_.k.YtRendererBehavior),_.p("design:type",Object)],Mu.prototype,"ytRendererBehavior",void 0);
_.L([_.Q(_.Ms.YtComponentBehavior),_.p("design:type",Object)],Mu.prototype,"ytComponentBehavior",void 0);_.L([_.Q(_.u4.YtRendererstamperBehavior),_.p("design:type",Object)],Mu.prototype,"ytRendererstamperBehavior",void 0);_.L([_.Q(_.M8),_.p("design:type",Object)],Mu.prototype,"ytContinuationHandlerBehavior",void 0);_.L([_.x(),_.p("design:type",Object)],Mu.prototype,"data",void 0);_.L([_.x({reflectToAttribute:!0}),_.p("design:type",Object)],Mu.prototype,"hideTimestamps",void 0);
_.L([_.x(),_.p("design:type",Object)],Mu.prototype,"isLoadingTranscripts",void 0);_.L([_.x({reflectToAttribute:!0}),_.p("design:type",Object)],Mu.prototype,"darkerPanels",void 0);_.L([_.x(),_.p("design:type",Object)],Mu.prototype,"isError",void 0);_.L([_.O8("data.header"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],Mu.prototype,"headerChanged",null);
_.L([_.Fe("data.body"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],Mu.prototype,"bodyChanged",null);_.L([_.gz("yt-reload-continuation-finish"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],Mu.prototype,"onReloadContinuationFinish",null);_.L([_.gz("yt-transcript-search-box-search"),_.p("design:type",Function),_.p("design:paramtypes",[Event]),_.p("design:returntype")],Mu.prototype,"fireSearch",null);
_.L([_.gz("yt-transcript-search-box-clear"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],Mu.prototype,"searchCleared",null);_.L([_.O8("hideTimestamps"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],Mu.prototype,"hideTimestampsChanged",null);_.L([_.U({disableElementRegistration:!0,is:"ytd-transcript-search-panel-renderer"})],Mu);
_.D(Mu,"ytd-transcript-search-panel-renderer",function(){if(Cp7!==void 0)return Cp7;var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-transcript-search-panel-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-transcript-search-panel-renderer"></div>\n<div id="body" class="style-scope ytd-transcript-search-panel-renderer"></div>\n<div id="error-container" hidden="[[!isError]]" class="style-scope ytd-transcript-search-panel-renderer">\n  <tp-yt-paper-button id="retry-button" on-click="onRetryButtonClick" class="style-scope ytd-transcript-search-panel-renderer">\n    <yt-formatted-string text="[[retryLabel]]" class="style-scope ytd-transcript-search-panel-renderer">\n    </yt-formatted-string>\n  </tp-yt-paper-button>\n</div>\n<div class="spinner-container style-scope ytd-transcript-search-panel-renderer" hidden="[[!isLoadingTranscripts]]">\n  <tp-yt-paper-spinner active="[[isLoadingTranscripts]]" class="style-scope ytd-transcript-search-panel-renderer"></tp-yt-paper-spinner>\n</div>\n<div id="footer" class="style-scope ytd-transcript-search-panel-renderer"></div>\n');
a.content.insertBefore(_.w().content.cloneNode(!0),a.content.firstChild);return Cp7=a},{mode:1});var cf=function(){var a=_.G.apply(this,arguments)||this;a.player=null;a.playerPollJobId=0;return a};
_.b(cf,_.G);_.Z=cf.prototype;_.Z.panelContentVisibleChanged=function(){this.updatePlayerListening()};
_.Z.onLoadReloadContinuation=function(a){_.K("web_generate_att_data_for_get_transcript_request")?this.ytComponentBehavior.resolveCommand({getTranscriptEndpoint:{params:a.target.data.continuation}}):(a={clickTrackingParams:a.target.data.clickTrackingParams,getTranscriptEndpoint:{params:a.target.data.continuation},commandMetadata:{webCommandMetadata:{apiUrl:"/youtubei/v1/get_transcript",sendPost:!0}}},_.ab().resolve(_.j6).resolveCommand(a,{form:{element:this.hostElement}}))};
_.Z.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"}}}};
_.Z.created=function(){this.ytActionHandlerBehavior.actionMap={"yt-transcript-player-edit":"onYtTranscriptPlayerEdit","yt-transcript-player-seek":"onYtTranscriptPlayerSeek","yt-transcript-player-replay":"onYtTranscriptPlayerReplay"}};
_.Z.attached=function(){this.updatePlayerListening()};
_.Z.detached=function(){this.updatePlayerListening()};
_.Z.updatePlayerListening=function(){this.isAttached&&this.panelContentVisible?(this.player&&this.stopPlayerListening(),this.startPlayerListening()):this.stopPlayerListening()};
_.Z.startPlayerListening=function(){var a=this,z;return _.t(function(I){if(I.nextAddress==1)return(z=_.zI())?I.yield(z.getPlayerPromise(),2):I.return();a.player=I.yieldResult;a.playerPollJobId=_.GW.addLowPriorityJob(function(){a.getPlayerVideoProgress()},1E3);
a.player.addEventListener("onCueRangeEnter",function(J){a.onCueRangeEnter(J)});
a.player.addEventListener("onCueRangeExit",function(J){a.onCueRangeExit(J)});
a.player.addEventListener("onStateChange",function(J){a.onPlayerStateChange(J)});
a.player.addEventListener("SEEK_TO",function(J){a.onPlayerSeek(J)});
_.nu(I)})};
_.Z.getPlayerVideoProgress=function(){var a=this;_.GW.cancelJob(this.playerPollJobId);if(this.player){var z=this.player.getCurrentTime();_.ZF(this.hostElement,"yt-player-time-changed",[z])}this.playerPollJobId=_.GW.addLowPriorityJob(function(){a.getPlayerVideoProgress()},1E3)};
_.Z.stopPlayerListening=function(){this.player=null;_.GW.cancelJob(this.playerPollJobId)};
_.Z.onPlayerStateChange=function(a){a===2&&this.removePendingCue()};
_.Z.onPlayerSeek=function(a){var z;if(z=this.pendingReplayCueId)z=this.pendingReplayCueId,z=a===(_.K("web_transcript_cue_id_killswitch")?Number(z):Number(z.split("_")[1]));z||this.removePendingCue()};
_.Z.onCueRangeEnter=function(a){oGa(a)&&(this.pendingReplayCueId=a)};
_.Z.onCueRangeExit=function(a){oGa(a)&&this.player&&(this.player.pauseVideo(),this.removePendingCue())};
_.Z.removePendingCue=function(){this.player&&this.pendingReplayCueId&&this.player.removeCueRange(this.pendingReplayCueId);this.pendingReplayCueId=void 0};
_.Z.onYtTranscriptPlayerSeek=function(a){this.player&&this.player.seekTo(a,!0)};
_.Z.onYtTranscriptPlayerReplay=function(a,z){this.player&&(this.player.addCueRange(WXG(a),a,z),this.player.seekTo(a,!0),this.player.playVideo())};
_.Z.onYtTranscriptPlayerEdit=function(a,z){this.player&&(this.player.getPlayerState()===1&&this.player.addCueRange(WXG(a),a,z),this.player.seekTo(a,!0))};
cf.prototype.onLoadReloadContinuation=cf.prototype.onLoadReloadContinuation;cf.prototype.panelContentVisibleChanged=cf.prototype.panelContentVisibleChanged;_.L([_.Q(_.k.YtRendererBehavior),_.p("design:type",Object)],cf.prototype,"ytRendererBehavior",void 0);_.L([_.Q(_.Ms.YtComponentBehavior),_.p("design:type",Object)],cf.prototype,"ytComponentBehavior",void 0);_.L([_.Q(_.u4.YtRendererstamperBehavior),_.p("design:type",Object)],cf.prototype,"ytRendererstamperBehavior",void 0);
_.L([_.Q(_.Hc.YtActionHandlerBehavior),_.p("design:type",Object)],cf.prototype,"ytActionHandlerBehavior",void 0);_.L([_.x(),_.p("design:type",Object)],cf.prototype,"data",void 0);_.L([_.x({reflectToAttribute:!0}),_.p("design:type",Boolean)],cf.prototype,"panelContentVisible",void 0);_.L([_.O8("panelContentVisible"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],cf.prototype,"panelContentVisibleChanged",null);
_.L([_.gz("yt-load-reload-continuation"),_.p("design:type",Function),_.p("design:paramtypes",[Object]),_.p("design:returntype")],cf.prototype,"onLoadReloadContinuation",null);_.L([_.U({disableElementRegistration:!0,is:"ytd-transcript-renderer"})],cf);
_.D(cf,"ytd-transcript-renderer",function(){if(Ppx!==void 0)return Ppx;var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-transcript-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="body" class="style-scope ytd-transcript-renderer"></div>\n<div id="content" class="style-scope ytd-transcript-renderer"></div>\n<div id="footer" class="style-scope ytd-transcript-renderer"></div>\n');a.content.insertBefore(_.w().content.cloneNode(!0),
a.content.firstChild);return Ppx=a},{mode:1});var E8N;var BJ4;var Yf=function(){return _.G.apply(this,arguments)||this};
_.b(Yf,_.G);Yf.prototype.onTap=function(){this.data&&(this.data.navigationEndpoint&&_.PA(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint}),this.data.clickCommand&&_.tR(this.hostElement,[this.data.clickCommand],this.hostElement))};
Yf.prototype.computeHideMediaQuery=function(){return"(min-width: 600px) and (max-width: "+((0,_.M7)()+_.DS)+"px)"};
Yf.prototype.updateShouldHideFromBinding=function(a){this.shouldHide=a.detail.value};
_.L([_.Q(_.k.YtRendererBehavior),_.p("design:type",Object)],Yf.prototype,"rendererBehavior",void 0);_.L([_.x(),_.p("design:type",Object)],Yf.prototype,"data",void 0);_.L([_.x(),_.p("design:type",Boolean)],Yf.prototype,"shouldHide",void 0);_.L([_.U({is:"ytd-ad-engagement-panel-banner-renderer",disableElementRegistration:!0})],Yf);
_.D(Yf,"ytd-ad-engagement-panel-banner-renderer",function(){if(BJ4!==void 0)return BJ4;var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-ad-engagement-panel-banner-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<iron-media-query query="[[computeHideMediaQuery()]]" query-matches="[[shouldHide]]" on-query-matches-changed="updateShouldHideFromBinding" class="style-scope ytd-ad-engagement-panel-banner-renderer">\n</iron-media-query>\n<a class="yt-simple-endpoint banner-click-container style-scope ytd-ad-engagement-panel-banner-renderer" hidden="[[shouldHide]]" on-tap="onTap">\n  <yt-img-shadow class="banner-image style-scope ytd-ad-engagement-panel-banner-renderer" fit="" thumbnail="[[data.bannerImage]]">\n  </yt-img-shadow>\n</a>\n');a.content.insertBefore(_.w().content.cloneNode(!0),
a.content.firstChild);return BJ4=a},{mode:_.Np("kevlar_poly_si_batch_j070")?1:2});var g8u;var qu=function(){var a=_.G.apply(this,arguments)||this;a.modernPanels=_.K("kevlar_watch_modern_panels");a.buttonUpdate=_.K("web_modern_buttons");a.adsSemanticText=_.K("enable_ads_web_ep_buenos_aires_and_padding_fix");return a};
_.b(qu,_.G);qu.prototype.computeHideDefaultAdBadge=function(){return this.data&&!this.data.badges};
_.L([_.x(),_.p("design:type",Object)],qu.prototype,"data",void 0);_.L([_.x({computed:"computeHideDefaultAdBadge(data)"}),_.p("design:type",Boolean)],qu.prototype,"hideDefaultAdBadge",void 0);_.L([_.x({reflectToAttribute:!0}),_.p("design:type",Object)],qu.prototype,"modernPanels",void 0);_.L([_.x({reflectToAttribute:!0}),_.p("design:type",Object)],qu.prototype,"buttonUpdate",void 0);_.L([_.x({reflectToAttribute:!0}),_.p("design:type",Object)],qu.prototype,"adsSemanticText",void 0);
_.L([_.U({is:"ytd-engagement-panel-ad-subtitle-renderer",disableElementRegistration:!0})],qu);
_.D(qu,"ytd-engagement-panel-ad-subtitle-renderer",function(){if(g8u!==void 0)return g8u;var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-engagement-panel-ad-subtitle-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<ytd-badge-supported-renderer id="ad-badge" badges="[[data.badges]]" hidden="[[hideDefaultAdBadge]]" class="style-scope ytd-engagement-panel-ad-subtitle-renderer">\n</ytd-badge-supported-renderer>\n<ytd-ad-hover-text-button-renderer id="ad-info-button" data="[[data.adInfoRenderer.adHoverTextButtonRenderer]]" hidden="[[!data.adInfoRenderer.adHoverTextButtonRenderer]]" class="style-scope ytd-engagement-panel-ad-subtitle-renderer">\n</ytd-ad-hover-text-button-renderer>\n<yt-formatted-string id="subtitle" ellipsis-truncate="" text="[[data.subtitle]]" class="style-scope ytd-engagement-panel-ad-subtitle-renderer">\n</yt-formatted-string>\n');a.content.insertBefore(_.w().content.cloneNode(!0),
a.content.firstChild);return g8u=a},{mode:1});var OB7;var eC=function(){var a=_.G.apply(this,arguments)||this;a.darkerPanels=_.K("web_watch_darker_panels");a.enableSqueezebackPanels=_.K("web_shorts_enable_squeezeback_panels");a.enableAnchoredPanel=_.K("desktop_shorts_v2_anchored_panel");a.modernPanels=_.K("kevlar_watch_modern_panels");a.headerClickListener=function(z){a.onHeaderClick(z)};
a.actionMap={"yt-engagement-panel-header-show-navigation-button-command":"onYtEngagementPanelHeaderShowNavigationButtonCommand"};return a};
_.b(eC,_.G);_.Z=eC.prototype;_.Z.computeAdsInfoButton=function(){if(_.K("web_modern_buttons")){var a,z;return(z=_.H((a=this.data)==null?void 0:a.subtitleComplex,vZ7))==null?void 0:z.adInfoRenderer}};
_.Z.updateHeaderClickListener=function(){var a,z,I;((a=this.data)==null?0:a.navigationEndpoint)||((z=this.data)==null?0:z.onClickCommand)||_.H((I=this.data)==null?void 0:I.visibilityButton,_.pQ)?this.headerElement.addEventListener("click",this.headerClickListener):this.headerElement.removeEventListener("click",this.headerClickListener)};
_.Z.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}}}}}};
_.Z.collapsedChanged=function(){var a;(a=this.data)!=null&&a.actionButton?this.hideActionButton=this.targetId==="engagement-panel-ads"&&_.K("use_ads_engagement_panel_desktop_footer_cta")?!this.collapsed:!1:this.hideActionButton=!0};
_.Z.focus=function(a){var z=this;this.titleElement&&_.GW.addJob(function(){_.kk(z.titleElement,a)},0,500)};
_.Z.computeTitleAriaLabel=function(a){var z=[];if(a.title){var I,J;z.push(this.ytRendererBehavior.getSimpleString(a.title)||((I=a.title.accessibility)==null?void 0:(J=I.accessibilityData)==null?void 0:J.label))}a.contextualInfo&&z.push(this.ytRendererBehavior.getSimpleString(a.contextualInfo));return z.join(" ")};
_.Z.onHeaderClick=function(a){this.shouldTriggerHeaderClick(a)&&this.data&&(this.data.navigationEndpoint||this.data.onClickCommand?(this.data.navigationEndpoint&&_.PA(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint}),this.data.onClickCommand&&_.tR(this.hostElement,[this.data.onClickCommand],this.hostElement)):(a=this.getVisibilityToggleButton())&&a.click())};
_.Z.onVisibilityButtonClick=function(){if(this.data&&this.data.visibilityButton){var a=_.H(this.data.visibilityButton,_.lc)||_.H(this.data.visibilityButton,_.pQ);a&&this.ytRendererBehavior.logExplicitClick(a)}};
_.Z.getVisibilityToggleButton=function(){var a=_.PK(this.hostElement).querySelector("#visibility-button").firstElementChild;return(a==null?void 0:a.is)==="ytd-toggle-button-renderer"?a:null};
_.Z.shouldTriggerHeaderClick=function(a){return!_.qK(_.ch(a),this.hostElement,["YTD-MENU-RENDERER","YTD-BUTTON-RENDERER","YTD-TOGGLE-BUTTON-RENDERER"])};
_.Z.onYtEngagementPanelHeaderShowNavigationButtonCommand=function(a){a=_.H(a,_.FzO);this.targetId&&(a==null?void 0:a.targetId)===this.targetId&&(a=a.navigationButton)&&this.set("data.navigationButton",a)};
_.eH.Object.defineProperties(eC.prototype,{adsSemanticText:{configurable:!0,enumerable:!0,get:function(){return _.K("enable_ads_web_ep_buenos_aires_and_padding_fix")&&this.targetId==="engagement-panel-ads"}},
isActionButtonHidden:{configurable:!0,enumerable:!0,get:function(){var a;return!!(((a=this.entity)==null?0:a.isActionButtonHidden)||this.hideActionButton)}}});
eC.prototype.collapsedChanged=eC.prototype.collapsedChanged;eC.prototype.updateHeaderClickListener=eC.prototype.updateHeaderClickListener;_.L([_.Q(_.Hc.YtActionHandlerBehavior),_.p("design:type",Object)],eC.prototype,"actionHandlerBehavior",void 0);_.L([_.Q(_.k.YtRendererBehavior),_.p("design:type",Object)],eC.prototype,"ytRendererBehavior",void 0);_.L([_.Q(_.u4.YtRendererstamperBehavior),_.p("design:type",Object)],eC.prototype,"ytRendererstamperBehavior",void 0);
_.L([_.Q(_.pV),_.p("design:type",Object)],eC.prototype,"ytdReduxBehavior",void 0);_.L([_.x(),_.p("design:type",Object)],eC.prototype,"data",void 0);_.L([_.x(),_.p("design:type",String)],eC.prototype,"targetId",void 0);_.L([_.x(),_.p("design:type",Boolean)],eC.prototype,"collapsed",void 0);_.L([_.x(),_.p("design:type",Boolean)],eC.prototype,"hideActionButton",void 0);_.L([_.x({reflectToAttribute:!0}),_.p("design:type",Boolean)],eC.prototype,"shortsPanel",void 0);
_.L([_.x({reflectToAttribute:!0}),_.p("design:type",Boolean)],eC.prototype,"liveChatEngagementPanel",void 0);_.L([_.x({reflectToAttribute:!0}),_.p("design:type",Boolean)],eC.prototype,"learningChatEngagementPanel",void 0);_.L([_.x({reflectToAttribute:!0}),_.p("design:type",Object)],eC.prototype,"darkerPanels",void 0);_.L([_.A3("#title"),_.p("design:type",HTMLElement)],eC.prototype,"titleElement",void 0);_.L([_.A3("#header"),_.p("design:type",HTMLElement)],eC.prototype,"headerElement",void 0);
_.L([_.x({computed:"computeAdsInfoButton(data)"}),_.p("design:type",Object)],eC.prototype,"adsInfoButton",void 0);_.L([_.x({reflectToAttribute:!0}),_.p("design:type",Object)],eC.prototype,"enableSqueezebackPanels",void 0);_.L([_.x({reflectToAttribute:!0}),_.p("design:type",Object)],eC.prototype,"enableAnchoredPanel",void 0);_.L([_.x({selectorArgs:["data.engagementPanelTitleHeaderEntityKey"],selector:function(a,z){return _.Bd(a.entities,"engagementPanelTitleHeaderEntity",z)}}),
_.p("design:type",Object)],eC.prototype,"entity",void 0);_.L([_.x({reflectToAttribute:!0}),_.p("design:type",Object)],eC.prototype,"modernPanels",void 0);_.L([_.x({reflectToAttribute:!0}),_.S("targetId"),_.p("design:type",Boolean),_.p("design:paramtypes",[])],eC.prototype,"adsSemanticText",null);_.L([_.O8("data","data.navigationEndpoint","data.onClickCommand"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],eC.prototype,"updateHeaderClickListener",null);
_.L([_.Fe("collapsed"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],eC.prototype,"collapsedChanged",null);_.L([_.S("entity","hideActionButton"),_.p("design:type",Boolean),_.p("design:paramtypes",[])],eC.prototype,"isActionButtonHidden",null);_.L([_.U({is:"ytd-engagement-panel-title-header-renderer",disableElementRegistration:!0})],eC);
_.D(eC,"ytd-engagement-panel-title-header-renderer",function(){if(OB7!==void 0)return OB7;var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-engagement-panel-title-header-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="banner" aria-hidden="true" class="style-scope ytd-engagement-panel-title-header-renderer"></div>\n<div id="ads-info-button" class="style-scope ytd-engagement-panel-title-header-renderer"></div>\n<div id="header" class="style-scope ytd-engagement-panel-title-header-renderer">\n  <div id="navigation-button" hidden="[[!data.navigationButton]]" class="style-scope ytd-engagement-panel-title-header-renderer"></div>\n  <yt-img-shadow id="icon" hidden="[[!data.icon]]" thumbnail="[[data.icon]]" class="style-scope ytd-engagement-panel-title-header-renderer"></yt-img-shadow>\n  <div id="title-container" class="style-scope ytd-engagement-panel-title-header-renderer">\n    <h2 id="title" aria-label$="[[computeTitleAriaLabel(data)]]" class="style-scope ytd-engagement-panel-title-header-renderer">\n      <yt-formatted-string id="title-text" ellipsis-truncate="" text="[[data.title]]" class="style-scope ytd-engagement-panel-title-header-renderer">\n      </yt-formatted-string>\n      <yt-formatted-string id="contextual-info" hidden="[[!data.contextualInfo]]" text="[[data.contextualInfo]]" class="style-scope ytd-engagement-panel-title-header-renderer">\n      </yt-formatted-string>\n    </h2>\n    <yt-formatted-string id="subtitle" hidden="[[!data.subtitle]]" text="[[data.subtitle]]" class="style-scope ytd-engagement-panel-title-header-renderer">\n    </yt-formatted-string>\n    <ytd-badge-supported-renderer hidden="[[!data.titleBadge]]" top-standalone-badge="[[data.titleBadge]]" class="style-scope ytd-engagement-panel-title-header-renderer">\n    </ytd-badge-supported-renderer>\n    <div id="subtitle-complex" class="style-scope ytd-engagement-panel-title-header-renderer"></div>\n  </div>\n  <div id="action-button" hidden="[[isActionButtonHidden]]" class="style-scope ytd-engagement-panel-title-header-renderer"></div>\n  <div id="information-button" hidden="[[!data.informationButton]]" class="style-scope ytd-engagement-panel-title-header-renderer"></div>\n  <div id="menu" class="style-scope ytd-engagement-panel-title-header-renderer"></div>\n  <div id="visibility-button" on-click="onVisibilityButtonClick" class="style-scope ytd-engagement-panel-title-header-renderer"></div>\n</div>\n<div id="subheader" class="style-scope ytd-engagement-panel-title-header-renderer"></div>\n');
a.content.insertBefore(_.w().content.cloneNode(!0),a.content.firstChild);return OB7=a},{mode:1});var fmj;var an=function(){return _.G.apply(this,arguments)||this};
_.b(an,_.G);an.prototype.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}},"data.editButton":{id:"edit",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.L([_.Q(_.k.YtRendererBehavior),_.p("design:type",Object)],an.prototype,"ytRendererBehavior",void 0);_.L([_.Q(_.u4.YtRendererstamperBehavior),_.p("design:type",Object)],an.prototype,"ytRendererstamperBehavior",void 0);_.L([_.x(),_.p("design:type",Object)],an.prototype,"data",void 0);_.L([_.U({is:"ytd-macro-markers-info-item-renderer",disableElementRegistration:!0})],an);
_.D(an,"ytd-macro-markers-info-item-renderer",function(){if(fmj!==void 0)return fmj;var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-macro-markers-info-item-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-formatted-string text="[[data.infoText]]" class="style-scope ytd-macro-markers-info-item-renderer"></yt-formatted-string>\n<div id="menu" class="style-scope ytd-macro-markers-info-item-renderer"></div>\n<div id="edit" class="style-scope ytd-macro-markers-info-item-renderer"></div>\n');
a.content.insertBefore(_.w().content.cloneNode(!0),a.content.firstChild);return fmj=a},{mode:1});var Az9;var KO9=function(a,z,I,J,r,P){_.FC.call(this);var N=this;this.JSC$22626_containerElement=a;this.hostElement=z;this.supportedSyncItems=I;this.syncEntityKey=J;this.options=r;this.renderLazyListItems=P;this.activeItemBelowSyncPosition=this.contentVisible=this.browsingMode=!1;sN9(this);n8P(this);this.JSC$22626_scrollAnimation=new _.MB(function(u){a.scrollTop=u});
_.t7(this,this.JSC$22626_scrollAnimation);this.addOnDisposeCallback(function(){N.exitBrowsingMode(!1);N.activeItem&&N.activeItem.dispatchEvent(new CustomEvent("yt-synced-panel-active-item-update",{detail:{active:!1}}))})};
_.b(KO9,_.FC);var sN9=function(a){var z=_.QT(_.ab().resolve(_.mP),function(I){return I.entities.markersEngagementPanelSyncEntity||{}},function(I,J){var r;
I[a.syncEntityKey]!==J[a.syncEntityKey]&&((r=I[a.syncEntityKey])==null?void 0:r.activeItemIndex)!==void 0&&a.updatePanelActiveItem(I[a.syncEntityKey].activeItemIndex)});
a.unsubscribeFromTimedMarkersListSyncEntity=z;a.addOnDisposeCallback(z);FO4(a)},FO4=function(a){var z=_.ab().resolve(_.mP);
z=_.vb1(z.getState(),a.syncEntityKey);(z==null?void 0:z.activeItemIndex)!==void 0&&(z=a.getItemByIndex(z.activeItemIndex))&&a.setActiveItem(z)},n8P=function(a){var z=new _.kc(a.onScroll,50,a);
_.t7(a,z);var I=function(){z.fire()};
a.JSC$22626_containerElement.addEventListener("scroll",I);a.addOnDisposeCallback(function(){a.JSC$22626_containerElement.removeEventListener("scroll",I)})};
_.Z=KO9.prototype;
_.Z.updatePanelActiveItem=function(a){var z=this.getItemByIndex(a);if(z){if(this.setActiveItem(z),this.contentVisible)if(this.browsingMode){var I;((I=this.options)==null?void 0:I.floatingPillType)==="FLOATING_PILL_TYPE_MODERN_TRANSCRIPT"&&(a=HBa(this),z.offsetTop<this.JSC$22626_containerElement.clientHeight+this.JSC$22626_containerElement.scrollTop&&a&&!this.activeItemBelowSyncPosition&&this.exitBrowsingMode(!1));bBj(this)}else this.scrollToItem(z)}else _.Xd(new _.Fn("Could not find "+this.supportedSyncItems+
" sync child to set active.",a,this.JSC$22626_containerElement.querySelectorAll(this.supportedSyncItems).length))};
_.Z.getItemByIndex=function(a){var z;(z=this.renderLazyListItems)==null||z.call(this,a);z=this.JSC$22626_containerElement.querySelectorAll(this.supportedSyncItems);if(z.length>a)return z[a]};
_.Z.setActiveItem=function(a){this.activeItem&&this.activeItem.dispatchEvent(new CustomEvent("yt-synced-panel-active-item-update",{detail:{active:!1}}));a.dispatchEvent(new CustomEvent("yt-synced-panel-active-item-update",{detail:{active:!0}}));this.activeItem=a};
_.Z.scrollToItem=function(a){a=this.getScrollPositionForItem(a);this.JSC$22626_containerElement.scrollTop!==a&&this.JSC$22626_scrollAnimation.start(this.JSC$22626_containerElement.scrollTop,a,300)};
_.Z.getScrollPositionForItem=function(a){if(this.JSC$22626_containerElement.querySelectorAll(this.supportedSyncItems)[0]===a)return 0;var z,I=((z=this.options)==null?0:z.percentOffset)?this.JSC$22626_containerElement.clientHeight*this.options.percentOffset:0;a=_.TB(a).y+this.JSC$22626_containerElement.scrollTop-(_.TB(this.JSC$22626_containerElement).y+I);return Math.max(0,Math.min(a,this.JSC$22626_containerElement.scrollHeight-this.JSC$22626_containerElement.offsetHeight))};
_.Z.onScroll=function(){this.activeItemBelowSyncPosition=HBa(this);if(this.activeItem&&!this.JSC$22626_scrollAnimation.isAnimating()&&Math.abs(this.JSC$22626_containerElement.scrollTop-this.getScrollPositionForItem(this.activeItem))>10){var a;switch((a=this.options)==null?void 0:a.floatingPillType){case "FLOATING_PILL_TYPE_MODERN_TRANSCRIPT":this.enterBrowsingMode(!htx(this));bBj(this);break;default:this.enterBrowsingMode(!0)}}};
_.Z.enterBrowsingMode=function(a){var z=this,I,J;return _.t(function(r){if(r.nextAddress==1){if(z.browsingMode)return r.return();z.browsingMode=!0;a&&z.hostElement.classList.add("browsing-mode");z.playerExitBrowsingModeListener=function(){z.exitBrowsingMode(!1)};
return r.yield(_.EN(),2)}I=r.yieldResult;(J=I)==null||J.addEventListener("SEEK_TO",z.playerExitBrowsingModeListener);_.nu(r)})};
_.Z.exitBrowsingMode=function(a){a=a===void 0?!0:a;this.browsingMode&&(this.browsingMode=!1,this.hostElement.classList.remove("browsing-mode"),a&&this.scrollToItem(this.activeItem),this.removePlayerSeekListener())};
_.Z.removePlayerSeekListener=function(){var a=this,z,I;return _.t(function(J){if(J.nextAddress==1)return a.playerExitBrowsingModeListener?J.yield(_.EN(),3):J.jumpTo(0);z=J.yieldResult;(I=z)==null||I.removeEventListener("SEEK_TO",a.playerExitBrowsingModeListener);a.playerExitBrowsingModeListener=void 0;_.nu(J)})};
var bBj=function(a){var z;((z=a.options)==null?void 0:z.floatingPillType)==="FLOATING_PILL_TYPE_MODERN_TRANSCRIPT"&&(htx(a)?a.hostElement.classList.remove("browsing-mode"):a.activeItem&&a.hostElement.classList.add("browsing-mode"))},HBa=function(a){if(!a.activeItem)return!1;
var z,I=((z=a.options)==null?0:z.percentOffset)?a.JSC$22626_containerElement.clientHeight*a.options.percentOffset:0;return a.activeItem.offsetTop>=a.JSC$22626_containerElement.scrollTop+I},htx=function(a){if(!a.activeItem)return!1;
var z=a.activeItem.offsetTop+14<=a.JSC$22626_containerElement.scrollTop+a.JSC$22626_containerElement.clientHeight;return a.activeItem.offsetTop+a.activeItem.clientHeight-14>=a.JSC$22626_containerElement.scrollTop&&z};
KO9.prototype.panelContentVisibleChanged=function(a){(this.contentVisible=a)&&!this.browsingMode&&this.activeItem&&this.scrollToItem(this.activeItem)};
var VTt=function(a,z){a.syncEntityKey=z;var I;(I=a.unsubscribeFromTimedMarkersListSyncEntity)==null||I.call(a);sN9(a)},QNt=function(a,z){a.options=z};var jm=function(){var a=_.G.apply(this,arguments)||this;a.browsingMode=!1;a.actionMap={"yt-set-active-panel-item-action":"handleSetActivePanelItemAction"};return a};
_.b(jm,_.G);_.Z=jm.prototype;_.Z.activeItemChanged=function(){if(!_.K("synced_panel_scrolling_controller")){var a;((a=this.syncEntity)==null?void 0:a.activeItemIndex)!==void 0&&this.updatePanelActiveItem(this.syncEntity.activeItemIndex)}};
_.Z.created=function(){var a=this;_.K("synced_panel_scrolling_controller")||(this.JSC$22630_scrollAnimation=new _.MB(function(z){a.contents.scrollTop=z}),this.boundExitBrowsingMode=function(){a.exitBrowsingMode(!1)})};
_.Z.detached=function(){if(_.K("synced_panel_scrolling_controller")){var a;(a=this.scrollController)==null||a.dispose();this.scrollController=void 0}else this.removePlayerSeekListener()};
_.Z.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"}}}};
_.Z.dataChanged=function(){var a=this;_.K("synced_panel_scrolling_controller")?_.Yv(this,function(){if(a.scrollController){var z;(z=a.scrollController)==null||z.exitBrowsingMode(!1);var I,J,r;(J=a.scrollController)==null||VTt(J,(r=(I=a.data)==null?void 0:I.syncModelEntityKey)!=null?r:"default-macro-markers-list-renderer-entity-key");var P,N,u;(u=a.scrollController)==null||QNt(u,{percentOffset:(P=a.data)==null?void 0:P.selectedItemAlignmentPercentOffset,floatingPillType:(N=a.data)==null?void 0:N.floatingPillType})}else{var E,
O,f,A;a.scrollController=new KO9(a.contents,a.hostElement,"ytd-macro-markers-list-item-renderer,macro-markers-panel-item-view-model",(A=(E=a.data)==null?void 0:E.syncModelEntityKey)!=null?A:"default-macro-markers-list-renderer-entity-key",{percentOffset:(O=a.data)==null?void 0:O.selectedItemAlignmentPercentOffset,floatingPillType:(f=a.data)==null?void 0:f.floatingPillType},function(n){a.renderLazyListItems(n)})}a.scrollController.panelContentVisibleChanged(!!a.panelContentVisible)}):this.exitBrowsingMode()};
_.Z.computeButtonShape=function(){var a=this;if(this.data&&this.data.syncButtonLabel)return{onTap:function(){a.onSyncClick()},
style:"mono",type:"filled",state:"active",size:"S",focused:!1,buttonText:this.ytRendererBehavior.getSimpleString(this.data.syncButtonLabel)}};
_.Z.computeSyncEnabled=function(a){return!(a==null||!a.syncButtonLabel)};
_.Z.renderLazyListItems=function(a){for(var z=this.contents.children,I=0,J=0;J<z.length;J++){var r=void 0;(r=z[J].ytLazyListBehavior)==null||r.fillRemainingListItems();var P=void 0,N=void 0;r=_.H((P=this.data)==null?void 0:(N=P.contents)==null?void 0:N[J],_.WSw);N=P=void 0;if((P=r)==null?0:(N=P.contents)==null?0:N.length)I+=r.contents.length;if(I>=a)break}};
_.Z.getItemByIndex=function(a){this.renderLazyListItems(a);var z=this.contents.querySelectorAll("ytd-macro-markers-list-item-renderer,macro-markers-panel-item-view-model");if(z.length>a)return z[a]};
_.Z.setActiveItem=function(a){this.currentActiveItem&&this.currentActiveItem.active!==void 0&&(this.currentActiveItem.active=!1);a.active!==void 0&&(a.active=!0);this.currentActiveItem=a};
_.Z.handleSetActivePanelItemAction=function(a){if((a=_.H(a,bZa))&&this.panelTargetId===a.panelTargetId){a=a.itemIndex;if(_.K("synced_panel_scrolling_controller")){var z,I;var J=(I=(z=this.data)==null?void 0:z.syncModelEntityKey)!=null?I:"default-macro-markers-list-renderer-entity-key"}else{var r;J=(r=this.data)==null?void 0:r.syncModelEntityKey}if(J){var P;((P=this.syncEntity)==null?void 0:P.activeItemIndex)!==a&&this.ytdReduxBehavior.dispatch(_.Q0("markersEngagementPanelSyncEntity",J,{key:J,activeItemIndex:a}))}else this.updatePanelActiveItem(a)}};
_.Z.updatePanelActiveItem=function(a){var z=this.getItemByIndex(a);z?(this.setActiveItem(z),!this.browsingMode&&this.panelContentVisible&&this.scrollToItem(z)):_.Xd(new _.Fn("Could not find ytd-macro-markers-list-renderer sync child to set active.",a,this.contents.querySelectorAll("ytd-macro-markers-list-item-renderer,macro-markers-panel-item-view-model").length))};
_.Z.scrollToItem=function(a){a=this.getScrollPositionForItem(a);this.contents.scrollTop!==a&&this.JSC$22630_scrollAnimation.start(this.contents.scrollTop,a,300)};
_.Z.getScrollPositionForItem=function(a){if(this.contents.querySelectorAll("ytd-macro-markers-list-item-renderer,macro-markers-panel-item-view-model")[0]===a)return 0;a=_.TB(a).y+this.contents.scrollTop-_.TB(this.contents).y-this.getStickyHeaderHeight(a);return Math.min(a,this.contents.scrollHeight-this.contents.offsetHeight)};
_.Z.getStickyHeaderHeight=function(a){if(a.nodeName==="MACRO-MARKERS-PANEL-ITEM-VIEW-MODEL"){var z,I,J;return(J=(z=a.closest('ytd-item-section-renderer[header-style="sticky-header"]'))==null?void 0:(I=z.header)==null?void 0:I.offsetHeight)!=null?J:0}return 0};
_.Z.onScroll=function(){_.K("synced_panel_scrolling_controller")||(this.ytRendererBehavior.markDirty(),this.syncEnabled&&!this.browsingMode&&this.currentActiveItem&&!this.JSC$22630_scrollAnimation.isAnimating()&&Math.abs(this.contents.scrollTop-this.getScrollPositionForItem(this.currentActiveItem))>10&&this.enterBrowsingMode())};
_.Z.enterBrowsingMode=function(){var a=this;return _.t(function(z){if(z.nextAddress==1){if(a.browsingMode)return z.return();a.browsingMode=!0;return z.yield(_.IK().getPlayerPromise(),2)}a.player=z.yieldResult;a.player.addEventListener("SEEK_TO",a.boundExitBrowsingMode);_.nu(z)})};
_.Z.exitBrowsingMode=function(a){this.browsingMode&&(this.browsingMode=!1,(a===void 0||a)&&this.scrollToItem(this.currentActiveItem),this.removePlayerSeekListener())};
_.Z.removePlayerSeekListener=function(){this.player&&(this.player.removeEventListener("SEEK_TO",this.boundExitBrowsingMode),this.player=void 0)};
_.Z.onSyncClick=function(){if(_.K("synced_panel_scrolling_controller")){var a;(a=this.scrollController)==null||a.exitBrowsingMode()}else this.exitBrowsingMode()};
_.Z.panelContentVisibleChanged=function(){if(_.K("synced_panel_scrolling_controller")){var a;(a=this.scrollController)==null||a.panelContentVisibleChanged(!!this.panelContentVisible)}else this.panelContentVisible&&this.syncEnabled&&!this.browsingMode&&this.currentActiveItem&&this.scrollToItem(this.currentActiveItem)};
jm.prototype.panelContentVisibleChanged=jm.prototype.panelContentVisibleChanged;jm.prototype.dataChanged=jm.prototype.dataChanged;jm.prototype.activeItemChanged=jm.prototype.activeItemChanged;_.L([_.Q(_.Hc.YtActionHandlerBehavior),_.p("design:type",Object)],jm.prototype,"actionHandlerBehavior",void 0);_.L([_.Q(_.k.YtRendererBehavior),_.p("design:type",Object)],jm.prototype,"ytRendererBehavior",void 0);
_.L([_.Q(_.u4.YtRendererstamperBehavior),_.p("design:type",Object)],jm.prototype,"ytRendererstamperBehavior",void 0);_.L([_.Q(_.pV),_.p("design:type",Object)],jm.prototype,"ytdReduxBehavior",void 0);_.L([_.x(),_.p("design:type",Object)],jm.prototype,"data",void 0);_.L([_.x({value:!1,reflectToAttribute:!0}),_.p("design:type",Boolean)],jm.prototype,"useCustomColors",void 0);_.L([_.x({computed:"computeSyncEnabled(data)"}),_.p("design:type",Boolean)],jm.prototype,"syncEnabled",void 0);
_.L([_.x({reflectToAttribute:!0}),_.p("design:type",String)],jm.prototype,"panelTargetId",void 0);_.L([_.x({reflectToAttribute:!0}),_.p("design:type",Boolean)],jm.prototype,"panelContentVisible",void 0);_.L([_.A3("#contents"),_.p("design:type",HTMLElement)],jm.prototype,"contents",void 0);_.L([_.A3("#sync-container"),_.p("design:type",HTMLElement)],jm.prototype,"syncContainer",void 0);_.L([_.x({reflectToAttribute:!0}),_.p("design:type",Object)],jm.prototype,"browsingMode",void 0);
_.L([_.x({selectorArgs:["data.syncModelEntityKey"],selector:_.vb1}),_.p("design:type",Object)],jm.prototype,"syncEntity",void 0);_.L([_.O8("syncEntity.activeItemIndex"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],jm.prototype,"activeItemChanged",null);_.L([_.Fe("data"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],jm.prototype,"dataChanged",null);
_.L([_.O8("panelContentVisible"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],jm.prototype,"panelContentVisibleChanged",null);_.L([_.U({is:"ytd-macro-markers-list-renderer",disableElementRegistration:!0})],jm);
_.D(jm,"ytd-macro-markers-list-renderer",function(){if(Az9!==void 0)return Az9;var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-macro-markers-list-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="contents" on-scroll="onScroll" class="style-scope ytd-macro-markers-list-renderer"></div>\n<div id="sync-container" hidden="[[!syncEnabled]]" class="style-scope ytd-macro-markers-list-renderer">\n  <yt-button-shape id="sync-button-modern" data="[[computeButtonShape(data)]]" class="style-scope ytd-macro-markers-list-renderer">\n  </yt-button-shape>\n</div>\n');a.content.insertBefore(_.w().content.cloneNode(!0),
a.content.firstChild);return Az9=a},{mode:1});var Shu;var zA=function(){return _.G.apply(this,arguments)||this};
_.b(zA,_.G);_.L([_.Q(_.k.YtRendererBehavior),_.p("design:type",Object)],zA.prototype,"ytRendererBehavior",void 0);_.L([_.Q(_.Ms.YtComponentBehavior),_.p("design:type",Object)],zA.prototype,"ytComponentBehavior",void 0);_.L([_.x(),_.p("design:type",Object)],zA.prototype,"data",void 0);_.L([_.U({is:"ytd-error-corrections-section-item-renderer",disableElementRegistration:!0})],zA);
_.D(zA,"ytd-error-corrections-section-item-renderer",function(){if(Shu!==void 0)return Shu;var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-error-corrections-section-item-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-img-shadow id="channel-thumbnail" height="36" thumbnail="[[data.thumbnail]]" width="36" class="style-scope ytd-error-corrections-section-item-renderer">\n</yt-img-shadow>\n<a id="correction-timestamp" class="yt-simple-endpoint style-scope ytd-error-corrections-section-item-renderer" data="[[data.onTap]]" href$="[[computeHref_(data.onTap)]]" on-click="onEndpointClick">\n  <yt-formatted-string text="[[data.timeLabel]]" class="style-scope ytd-error-corrections-section-item-renderer"></yt-formatted-string>\n</a>\n<div id="correction-text" class="style-scope ytd-error-corrections-section-item-renderer">\n  <yt-formatted-string text="[[data.correctionText]]" class="style-scope ytd-error-corrections-section-item-renderer"></yt-formatted-string>\n</div>\n');
a.content.insertBefore(_.w().content.cloneNode(!0),a.content.firstChild);return Shu=a},{mode:1});var iB9;var In=function(){return _.G.apply(this,arguments)||this};
_.b(In,_.G);In.prototype.configureRendererStamper=function(){return{"data.items":{id:"items",mapping:{errorCorrectionsSectionItemRenderer:"ytd-error-corrections-section-item-renderer"}}}};
_.L([_.Q(_.k.YtRendererBehavior),_.p("design:type",Object)],In.prototype,"ytRendererBehavior",void 0);_.L([_.Q(_.Ms.YtComponentBehavior),_.p("design:type",Object)],In.prototype,"ytComponentBehavior",void 0);_.L([_.Q(_.u4.YtRendererstamperBehavior),_.p("design:type",Object)],In.prototype,"ytRendererstamperBehavior",void 0);_.L([_.x(),_.p("design:type",Object)],In.prototype,"data",void 0);_.L([_.U({is:"ytd-error-corrections-section-renderer",disableElementRegistration:!0})],In);
_.D(In,"ytd-error-corrections-section-renderer",function(){if(iB9!==void 0)return iB9;var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-error-corrections-section-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-error-corrections-section-renderer">\n  <yt-formatted-string id="title" text="[[data.title]]" class="style-scope ytd-error-corrections-section-renderer"></yt-formatted-string>\n  <div id="flex" class="style-scope ytd-error-corrections-section-renderer"></div>\n  <ytd-button-renderer id="view_all_button" data="[[data.viewAllButton.buttonRenderer]]" class="style-scope ytd-error-corrections-section-renderer">\n  </ytd-button-renderer>\n</div>\n<div id="items" class="style-scope ytd-error-corrections-section-renderer"></div>\n');
a.content.insertBefore(_.w().content.cloneNode(!0),a.content.firstChild);return iB9=a},{mode:1});var xMu;var Jh=function(){return _.G.apply(this,arguments)||this};
_.b(Jh,_.G);_.L([_.Q(_.k.YtRendererBehavior),_.p("design:type",Object)],Jh.prototype,"ytRendererBehavior",void 0);_.L([_.Q(_.Ms.YtComponentBehavior),_.p("design:type",Object)],Jh.prototype,"componentBehavior",void 0);_.L([_.x(),_.p("design:type",Object)],Jh.prototype,"data",void 0);_.L([_.U({is:"ytd-topic-link-renderer",disableElementRegistration:!0})],Jh);
_.D(Jh,"ytd-topic-link-renderer",function(){if(xMu!==void 0)return xMu;var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-topic-link-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<a id="topic-link-container" class="yt-simple-endpoint style-scope ytd-topic-link-renderer" data="[[data.endpoint]]" href$="[[computeOptionalHref_(data.endpoint)]]">\n    <yt-img-shadow id="thumbnail" alt="[[getSimpleString(data.title)]]" thumbnail="[[data.thumbnailDetails]]" width="32" class="style-scope ytd-topic-link-renderer">\n    </yt-img-shadow>\n    <div id="title" class="style-scope ytd-topic-link-renderer">[[getSimpleString(data.title)]]</div>\n    <yt-icon id="call-to-action-icon" hidden="[[!data.callToActionIcon]]" icon="[[data.callToActionIcon.iconType]]" class="style-scope ytd-topic-link-renderer">\n    </yt-icon>\n</a>\n');a.content.insertBefore(_.w().content.cloneNode(!0),
a.content.firstChild);return xMu=a},{mode:1});var v89;var rw=function(){var a=_.G.apply(this,arguments)||this;a.modern=_.K("kevlar_modern_sd_v2");a.modernLockupV2=_.K("modernize_structured_description_playlist_lockups_v2");a.modernTypography=_.K("web_modern_typography");return a};
_.b(rw,_.G);rw.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"}}}};
_.L([_.Q(_.k.YtRendererBehavior),_.p("design:type",Object)],rw.prototype,"ytRendererBehavior",void 0);_.L([_.Q(_.u4.YtRendererstamperBehavior),_.p("design:type",Object)],rw.prototype,"ytRendererstamperBehavior",void 0);_.L([_.x(),_.p("design:type",Object)],rw.prototype,"data",void 0);_.L([_.x({reflectToAttribute:!0}),_.p("design:type",Object)],rw.prototype,"modern",void 0);_.L([_.x({reflectToAttribute:!0}),_.p("design:type",Object)],rw.prototype,"modernLockupV2",void 0);
_.L([_.x({reflectToAttribute:!0}),_.p("design:type",Object)],rw.prototype,"modernTypography",void 0);_.L([_.U({is:"ytd-video-description-course-section-renderer",disableElementRegistration:!0})],rw);
_.D(rw,"ytd-video-description-course-section-renderer",function(){if(v89!==void 0)return v89;var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-video-description-course-section-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-video-description-course-section-renderer">\n  <div id="title" class="style-scope ytd-video-description-course-section-renderer">[[getSimpleString(data.sectionTitle)]]</div>\n</div>\n<div id="media-lockups" class="style-scope ytd-video-description-course-section-renderer"></div>\n<div id="topic-link" class="style-scope ytd-video-description-course-section-renderer"></div>\n');a.content.insertBefore(_.w().content.cloneNode(!0),
a.content.firstChild);return v89=a},{mode:1});var GBN;var Pj=function(){var a=_.G.apply(this,arguments)||this;a.modern=_.K("kevlar_modern_sd_v2");a.modernTypography=_.K("web_modern_typography");return a};
_.b(Pj,_.G);Pj.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"}}}};
_.L([_.Q(_.k.YtRendererBehavior),_.p("design:type",Object)],Pj.prototype,"ytRendererBehavior",void 0);_.L([_.Q(_.u4.YtRendererstamperBehavior),_.p("design:type",Object)],Pj.prototype,"ytRendererstamperBehavior",void 0);_.L([_.x(),_.p("design:type",Object)],Pj.prototype,"data",void 0);_.L([_.x({reflectToAttribute:!0}),_.p("design:type",Object)],Pj.prototype,"modern",void 0);_.L([_.x({reflectToAttribute:!0}),_.p("design:type",Object)],Pj.prototype,"modernTypography",void 0);
_.L([_.U({is:"ytd-video-description-files-section-renderer",disableElementRegistration:!0})],Pj);
_.D(Pj,"ytd-video-description-files-section-renderer",function(){if(GBN!==void 0)return GBN;var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-video-description-files-section-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-video-description-files-section-renderer">\n  <div id="title" class="style-scope ytd-video-description-files-section-renderer">[[getSimpleString(data.sectionTitle)]]</div>\n  <div id="flex" class="style-scope ytd-video-description-files-section-renderer"></div>\n  <div id="view-all-button" class="style-scope ytd-video-description-files-section-renderer"></div>\n</div>\n<div id="description" class="style-scope ytd-video-description-files-section-renderer">[[getSimpleString(data.sectionDescription)]]</div>\n<div id="file-buttons" class="style-scope ytd-video-description-files-section-renderer"></div>\n');a.content.insertBefore(_.w().content.cloneNode(!0),
a.content.firstChild);return GBN=a},{mode:1});var $MN;var Zq=function(){return _.G.apply(this,arguments)||this};
_.b(Zq,_.G);Zq.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"}}}};
_.L([_.Q(_.k.YtRendererBehavior),_.p("design:type",Object)],Zq.prototype,"ytRendererBehavior",void 0);_.L([_.Q(_.u4.YtRendererstamperBehavior),_.p("design:type",Object)],Zq.prototype,"ytRendererstamperBehavior",void 0);_.L([_.x(),_.p("design:type",Object)],Zq.prototype,"data",void 0);_.L([_.U({is:"ytd-video-description-gaming-section-renderer",disableElementRegistration:!0})],Zq);
_.D(Zq,"ytd-video-description-gaming-section-renderer",function(){if($MN!==void 0)return $MN;var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-video-description-gaming-section-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-video-description-gaming-section-renderer">\n  <h3 id="title" class="style-scope ytd-video-description-gaming-section-renderer">[[getSimpleString(data.sectionTitle)]]</h3>\n</div>\n<div id="media-lockups" class="style-scope ytd-video-description-gaming-section-renderer"></div>\n<div id="topic-link" class="style-scope ytd-video-description-gaming-section-renderer"></div>\n');
a.content.insertBefore(_.w().content.cloneNode(!0),a.content.firstChild);return $MN=a},{mode:1});var XHa;var Cz=function(){var a=_.G.apply(this,arguments)||this;a.isExpanded=!1;return a};
_.b(Cz,_.G);Cz.prototype.computeHasDefaultMetadataEndpoint=function(a){var z;a=a==null?void 0:(z=a.defaultMetadata)==null?void 0:z.runs;return!(!a||a.length!==1||!a[0].navigationEndpoint)};
Cz.prototype.onRowExpand=function(){this.isExpandable&&!this.isExpanded&&(this.isExpanded=!0)};
_.eH.Object.defineProperties(Cz.prototype,{isExpandable:{configurable:!0,enumerable:!0,get:function(){var a;return!((a=this.data)==null||!a.expandedMetadata)}},
showExpandedMetadata:{configurable:!0,enumerable:!0,get:function(){return!(!this.isExpandable||!this.isExpanded)}}});
_.L([_.Q(_.k.YtRendererBehavior),_.p("design:type",Object)],Cz.prototype,"ytRendererBehavior",void 0);_.L([_.x(),_.p("design:type",Object)],Cz.prototype,"data",void 0);_.L([_.x({reflectToAttribute:!0}),_.p("design:type",Object)],Cz.prototype,"isExpanded",void 0);_.L([_.x({computed:"computeHasDefaultMetadataEndpoint(data)",reflectToAttribute:!0}),_.p("design:type",Boolean)],Cz.prototype,"hasDefaultMetadataEndpoint",void 0);
_.L([_.S("data"),_.p("design:type",Boolean),_.p("design:paramtypes",[])],Cz.prototype,"isExpandable",null);_.L([_.S("data","isExpandable","isExpanded"),_.p("design:type",Boolean),_.p("design:paramtypes",[])],Cz.prototype,"showExpandedMetadata",null);_.L([_.U({is:"ytd-info-row-renderer",disableElementRegistration:!0})],Cz);
_.D(Cz,"ytd-info-row-renderer",function(){if(XHa!==void 0)return XHa;var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-info-row-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="info-row-container" on-click="onRowExpand" class="style-scope ytd-info-row-renderer">\n  <div id="info-row-header" class="style-scope ytd-info-row-renderer">\n    <div id="title" class="style-scope ytd-info-row-renderer">[[getSimpleString(data.title)]]</div>\n    <div id="default-metadata-section" hidden="[[isExpanded]]" class="style-scope ytd-info-row-renderer">\n      <yt-formatted-string id="default-metadata" bold-links="" text="[[data.defaultMetadata]]" class="style-scope ytd-info-row-renderer">\n      </yt-formatted-string>\n      <span id="truncation-text" class="style-scope ytd-info-row-renderer">[[getSimpleString(data.truncationText)]]</span>\n      <yt-icon id="icon" class="expand-icon style-scope ytd-info-row-renderer" hidden="[[!data.expandIcon.iconType]]" icon="[[data.expandIcon.iconType]]">\n      </yt-icon>\n    </div>\n  </div>\n  <yt-formatted-string id="expanded-metadata" hidden="[[!showExpandedMetadata]]" text="[[data.expandedMetadata]]" class="style-scope ytd-info-row-renderer">\n  </yt-formatted-string>\n</div>\n\n');a.content.insertBefore(_.w().content.cloneNode(!0),
a.content.firstChild);return XHa=a},{mode:1});var TJN;var NN=function(){var a=_.G.apply(this,arguments)||this;a.currentIndex=0;a.supportComponentResize=!0;a.modern=_.K("kevlar_modern_sd_v2");a.JSC$22656_lastScrollContainerWidth=NaN;return a};
_.b(NN,_.G);_.Z=NN.prototype;
_.Z.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"}}}};
_.Z.getItemsPath=function(){return"videoLockups"};
_.Z.hiddenChanged=function(){this.contentHidden||this.updateVideoLockupStyles()};
_.Z.onIronResize=function(){this.updateVideoLockupStyles()};
_.Z.dataChanged=function(){this.updateVideoLockupStyles();this.ytdHorizontalListBehavior.reset()};
_.Z.updateVideoLockupStyles=function(){var a;this.JSC$22656_scrollContainer!==void 0&&(a=this.videoLockups)!=null&&a.length&&(a=this.JSC$22656_scrollContainer.clientWidth,a!==this.JSC$22656_lastScrollContainerWidth&&(this.JSC$22656_lastScrollContainerWidth=a,_.uK(this.hostElement,{"--ytd-compact-video-renderer-width":Math.min(a*.8,415)+"px"}),_.PA(this.hostElement,"iron-resize")))};
_.eH.Object.defineProperties(NN.prototype,{videoLockups:{configurable:!0,enumerable:!0,get:function(){var a=[],z;if((z=this.data)==null||!z.carouselLockups)return a;z=_.C(this.data.carouselLockups);for(var I=z.next();!I.done;I=z.next()){I=I.value;var J=void 0;((J=_.H(I,ei4))==null?0:J.videoLockup)&&a.push(_.H(I,ei4).videoLockup)}return a}},
hasVideoLockups:{configurable:!0,enumerable:!0,get:function(){var a;return!((a=this.videoLockups)==null||!a.length)}},
infoRows:{configurable:!0,enumerable:!0,get:function(){var a=[],z;if((z=this.data)==null||!z.carouselLockups)return a;var I;return(I=_.H(this.data.carouselLockups[this.scrollCount],ei4))==null?void 0:I.infoRows}}});
NN.prototype.dataChanged=NN.prototype.dataChanged;NN.prototype.onIronResize=NN.prototype.onIronResize;NN.prototype.hiddenChanged=NN.prototype.hiddenChanged;_.L([_.Q(_.k.YtRendererBehavior),_.p("design:type",Object)],NN.prototype,"ytRendererBehavior",void 0);_.L([_.Q(_.Ms.YtComponentBehavior),_.p("design:type",Object)],NN.prototype,"componentBehavior",void 0);_.L([_.Q(_.E3.YtdHorizontalListBehavior),_.p("design:type",Object)],NN.prototype,"ytdHorizontalListBehavior",void 0);
_.L([_.Q(_.u4.YtRendererstamperBehavior),_.p("design:type",Object)],NN.prototype,"ytRendererstamperBehavior",void 0);_.L([_.x(),_.p("design:type",Object)],NN.prototype,"data",void 0);_.L([_.x({reflectToAttribute:!0}),_.p("design:type",Boolean)],NN.prototype,"inlineStructuredDescription",void 0);_.L([_.x({value:2}),_.p("design:type",Number)],NN.prototype,"initialCount",void 0);_.L([_.x(),_.p("design:type",Object)],NN.prototype,"currentIndex",void 0);
_.L([_.x(),_.p("design:type",Number)],NN.prototype,"scrollCount",void 0);_.L([_.x(),_.p("design:type",Object)],NN.prototype,"supportComponentResize",void 0);_.L([_.x({reflectToAttribute:!0}),_.p("design:type",Boolean)],NN.prototype,"contentHidden",void 0);_.L([_.x({reflectToAttribute:!0}),_.p("design:type",Object)],NN.prototype,"modern",void 0);_.L([_.A3("#scroll-container"),_.p("design:type",HTMLDivElement)],NN.prototype,"JSC$22656_scrollContainer",void 0);
_.L([_.O8("contentHidden"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],NN.prototype,"hiddenChanged",null);_.L([_.S("data"),_.p("design:type",Array),_.p("design:paramtypes",[])],NN.prototype,"videoLockups",null);_.L([_.S("videoLockups"),_.p("design:type",Boolean),_.p("design:paramtypes",[])],NN.prototype,"hasVideoLockups",null);
_.L([_.gz("iron-resize"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],NN.prototype,"onIronResize",null);_.L([_.S("data","scrollCount"),_.p("design:type",Object),_.p("design:paramtypes",[])],NN.prototype,"infoRows",null);_.L([_.Fe("data"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],NN.prototype,"dataChanged",null);_.L([_.U({is:"ytd-video-description-music-section-renderer",disableElementRegistration:!0})],NN);
_.D(NN,"ytd-video-description-music-section-renderer",function(){if(TJN!==void 0)return TJN;var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-video-description-music-section-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-video-description-music-section-renderer">\n  <h3 id="title" class="style-scope ytd-video-description-music-section-renderer">[[getSimpleString(data.sectionTitle)]]</h3>\n</div>\n<div id="video-lockups" hidden="[[!hasVideoLockups]]" class="style-scope ytd-video-description-music-section-renderer">\n  <div id="left-arrow-container" class="arrow-container style-scope ytd-video-description-music-section-renderer">\n    <div id="left-arrow-button" class="arrow style-scope ytd-video-description-music-section-renderer" hidden="[[atStart]]"></div>\n  </div>\n  <div id="scroll-container" class="style-scope ytd-video-description-music-section-renderer">\n    <div id="items" class="style-scope ytd-video-description-music-section-renderer"></div>\n  </div>\n  <div id="right-arrow-container" class="arrow-container style-scope ytd-video-description-music-section-renderer">\n    <div id="right-arrow-button" class="arrow style-scope ytd-video-description-music-section-renderer" hidden="[[atEnd]]"></div>\n  </div>\n</div>\n<div id="info-rows" class="style-scope ytd-video-description-music-section-renderer"></div>\n<a id="premium-upsell-link" class="yt-simple-endpoint style-scope ytd-video-description-music-section-renderer" aria-label$="[[data.premiumUpsellLink.title.accessibility.accessibilityData.label]]" hidden="[[!data.premiumUpsellLink]]" href$="[[computeOptionalHref_(data.premiumUpsellLink.navigationEndpoint)]]" title$="[[getSimpleString(data.premiumUpsellLink.title)]]" data="[[data.premiumUpsellLink.navigationEndpoint]]">\n  <yt-formatted-string id="premium-upsell-text" text="[[data.premiumUpsellLink]]" class="style-scope ytd-video-description-music-section-renderer">\n  </yt-formatted-string>\n</a>\n<div id="topic-link" class="style-scope ytd-video-description-music-section-renderer"></div>\n');
a.content.insertBefore(_.w().content.cloneNode(!0),a.content.firstChild);return TJN=a},{mode:_.Np("kevlar_poly_si_batch_j081")?1:2});var dM4;var th=function(){var a=_.G.apply(this,arguments)||this;a.modern=_.K("kevlar_modern_sd_v2");a.modernTypography=_.K("web_modern_typography");return a};
_.b(th,_.G);th.prototype.configureRendererStamper=function(){return{"data.primaryButton":{id:"primary-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.L([_.Q(_.u4.YtRendererstamperBehavior),_.p("design:type",Object)],th.prototype,"ytRendererstamperBehavior",void 0);_.L([_.Q(_.k.YtRendererBehavior),_.p("design:type",Object)],th.prototype,"ytRendererBehavior",void 0);_.L([_.x({}),_.p("design:type",Object)],th.prototype,"data",void 0);_.L([_.x({reflectToAttribute:!0}),_.p("design:type",Object)],th.prototype,"modern",void 0);_.L([_.x({reflectToAttribute:!0}),_.p("design:type",Object)],th.prototype,"modernTypography",void 0);
_.L([_.U({is:"ytd-video-description-transcript-section-renderer",disableElementRegistration:!0})],th);
_.D(th,"ytd-video-description-transcript-section-renderer",function(){if(dM4!==void 0)return dM4;var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-video-description-transcript-section-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e\n<div id="header" class="style-scope ytd-video-description-transcript-section-renderer">\n  <div id="title" class="style-scope ytd-video-description-transcript-section-renderer">[[getSimpleString(data.sectionTitle)]]</div>\n</div>\n<div id="sub-header" class="style-scope ytd-video-description-transcript-section-renderer">\n  <p id="sub-header-text" class="style-scope ytd-video-description-transcript-section-renderer">[[getSimpleString(data.subHeaderText)]]</p>\n</div>\n<div id="button-container" class="style-scope ytd-video-description-transcript-section-renderer">\n  <div id="primary-button" class="style-scope ytd-video-description-transcript-section-renderer"></div>\n</div>\n\n');a.content.insertBefore(_.w().content.cloneNode(!0),
a.content.firstChild);return dM4=a},{mode:1});var WO7;_.Jf(_.ec(function(a){var z=_.KU(_.HC7,function(){return a.data().firstProviderLinkStatusEntityKey}),I=_.KU(_.HC7,function(){return a.data().secondProviderLinkStatusEntityKey}),J=function(){var r,P;
return((r=z())==null?void 0:r.linked)||((P=I())==null?void 0:P.linked)};
return _.B("ytw-video-description-fantasy-section-view-model",{class:"ytwVideoDescriptionFantasySectionViewModelHost"},_.B(_.xs,{className:"ytwVideoDescriptionFantasySectionViewModelTitle",text:function(){return a.data().sectionTitle}}),_.B(_.xs,{className:"ytwVideoDescriptionFantasySectionViewModelMessage",
text:function(){return J()?a.data().connectedMessage:a.data().notConnectedMessage}}),_.B(_.g,{cond:J,
then:function(){return _.B(_.V0,{data:function(){return a.data().connectedButton}},{buttonViewModel:function(r){return _.B(_.At,{data:r.data,
className:"ytwVideoDescriptionFantasySectionViewModelButton"})}})}}),_.B(_.g,{cond:function(){return!J()},
then:function(){return _.B(_.V0,{data:function(){return a.data().notConnectedButton}},{buttonViewModel:function(r){return _.B(_.At,{data:r.data,
className:"ytwVideoDescriptionFantasySectionViewModelButton"})}})}}))},"hk"),"ytw-video-description-fantasy-section-view-model",{props:{data:_.zl}});_.Jf(_.ec(function(a){var z=a.data;return _.B("how-this-was-made-section-view-model",{class:"ytwHowThisWasMadeSectionViewModelHost",tabindex:-1},_.B("div",{class:"ytwHowThisWasMadeSectionViewModelSectionTitle"},_.B(_.xs,{text:function(){return z().sectionTitle}})),_.B("div",{class:"ytwHowThisWasMadeSectionViewModelBodyHeader"},_.B(_.xs,{text:function(){return z().bodyHeader}})),_.B("div",{class:"ytwHowThisWasMadeSectionViewModelBodyText"},_.B(_.xs,{text:function(){return z().bodyText}})),_.B(_.g,
{cond:function(){return z().attributionText},
then:function(){return _.B("div",{class:"ytwHowThisWasMadeSectionViewModelAttributionText"},_.B(_.xs,{text:function(){return z().attributionText}}))}}))},"ik"),"how-this-was-made-section-view-model",{props:{data:_.zl}});_.Jf(_.ec(function(a){return _.B("yt-video-description-youchat-section-view-model",{class:_.B8("ytVideoDescriptionYouchatSectionViewModelHost")},_.B("div",{class:"ytVideoDescriptionYouchatSectionViewModelSectionTitle"},_.B(_.xs,{text:function(){return a.data().sectionTitle}})),_.B("div",{class:"ytVideoDescriptionYouchatSectionViewModelSubHeaderText"},_.B(_.xs,{text:function(){return a.data().subHeaderText}})),_.B("div",{class:"ytVideoDescriptionYouchatSectionViewModelPrimaryButton"},_.B(_.At,{data:function(){return _.H(a.data().primaryButton,
_.yw)}})))},"jk"),"yt-video-description-youchat-section-view-model",{props:{data:_.zl}});var u2=function(){var a=_.G.apply(this,arguments)||this;a.actionMap={"yt-set-active-panel-item-action":"handleSetActiveItemAction"};return a};
_.b(u2,_.G);_.Z=u2.prototype;
_.Z.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}}}}}};
_.Z.panelContentVisibleChanged=function(){this.description&&(this.description.panelContentVisible=this.panelContentVisible)};
_.Z.dataChanged=function(){var a,z;this.hasDescriptionOnly=!(((a=this.data)==null?void 0:(z=a.items)==null?void 0:z.length)!==1||!_.H(this.data.items[0],oY))};
_.Z.onHiddenChanged=function(){this.musicMetadataSection&&(this.musicMetadataSection.contentHidden=this.hidden);this.hidden||this.resize()};
_.Z.onYtExpanderMoreTapped=function(){this.autoFocusDescription()};
_.Z.autoFocusDescription=function(){var a;((a=_.ab().resolve(_.eL(_.ET)))==null?0:a.isKeyBoardInUse())&&this.description&&_.MV(this.description)};
_.Z.resize=function(){if(_.K("kevlar_disable_sd_resize"))this.JSC$22665_cardList&&_.PA(this.JSC$22665_cardList,"iron-resize"),this.problemWalkthroughCardList&&_.PA(this.problemWalkthroughCardList,"iron-resize"),this.musicMetadataSection&&_.PA(this.musicMetadataSection,"iron-resize");else if(this.ironResizableBehavior.notifyResize(),this.shelfSection)this.shelfSection.onParentResize()};
_.Z.scrollToSection=function(a){if(a=this.getSectionElement(a))_.ZF(this.hostElement,"yt-scroll-to-watch-element",[a]),a.focus()};
_.Z.getSectionElement=function(a){switch(a){case "infocards-item-section":var z;return(z=this.infocardsSection)!=null?z:null;case "transcript-item-section":var I;return(I=this.transcriptSection)!=null?I:null;case "how-this-was-made-section-item-section":var J;return(J=this.howThisWasMadeSection)!=null?J:null;case "files-item-section":var r;return(r=this.filesSection)!=null?r:null;default:return null}};
_.Z.handleSetActiveItemAction=function(a){var z=_.H(a,bZa),I=z&&(z==null?void 0:z.panelTargetId)==="engagement-panel-macro-markers-problem-walkthroughs"?this.problemWalkthroughCardList:this.JSC$22665_cardList;if(z&&I){a=this.currentActiveChapter;var J=this.currentActiveProblem;z=I==null?void 0:I.getItemByIndex(z.itemIndex);var r=I=!0;z&&(z.active=!0,z.carouselType==="MACRO_MARKERS_LIST_ITEM_RENDERER_CAROUSEL_TYPE_DEFAULT"?(I=a!==z,r=!1,this.currentActiveChapter=z):(z==null?void 0:z.carouselType)===
"MACRO_MARKERS_LIST_ITEM_RENDERER_CAROUSEL_TYPE_TEXT_ONLY"&&(I=!1,r=J!==z,this.currentActiveProblem=z));a&&I&&(a.active=!1);J&&r&&(J.active=!1)}};
_.eH.Object.defineProperties(u2.prototype,{showVideoSummary:{configurable:!0,enumerable:!0,get:function(){return _.K("web_watch_move_summary_to_sd")&&!!this.videoSummary}}});
u2.prototype.onYtExpanderMoreTapped=u2.prototype.onYtExpanderMoreTapped;u2.prototype.onHiddenChanged=u2.prototype.onHiddenChanged;u2.prototype.dataChanged=u2.prototype.dataChanged;u2.prototype.panelContentVisibleChanged=u2.prototype.panelContentVisibleChanged;_.L([_.Q(_.k.YtRendererBehavior),_.p("design:type",Object)],u2.prototype,"ytRendererBehavior",void 0);_.L([_.Q(_.u4.YtRendererstamperBehavior),_.p("design:type",Object)],u2.prototype,"ytRendererstamperBehavior",void 0);
_.L([_.Q(_.Hc.YtActionHandlerBehavior),_.p("design:type",Object)],u2.prototype,"actionHandlerBehavior",void 0);_.L([_.Q(_.Ts),_.p("design:type",Object)],u2.prototype,"ironResizableBehavior",void 0);_.L([_.x(),_.p("design:type",Object)],u2.prototype,"data",void 0);_.L([_.x(),_.p("design:type",Boolean)],u2.prototype,"panelContentVisible",void 0);_.L([_.x(),_.p("design:type",Boolean)],u2.prototype,"hasDescriptionOnly",void 0);
_.L([_.x({reflectToAttribute:!0}),_.p("design:type",Boolean)],u2.prototype,"inlineStructuredDescription",void 0);_.L([_.x({reflectToAttribute:!0}),_.p("design:type",Boolean)],u2.prototype,"hidden",void 0);_.L([_.x({reflectToAttribute:!0}),_.p("design:type",Boolean)],u2.prototype,"shortsPanel",void 0);_.L([_.x(),_.p("design:type",Object)],u2.prototype,"videoSummary",void 0);_.L([_.x(),_.p("design:type",Object)],u2.prototype,"merchShelf",void 0);
_.L([_.S("videoSummary"),_.p("design:type",Boolean),_.p("design:paramtypes",[])],u2.prototype,"showVideoSummary",null);_.L([_.x({reflectToAttribute:!0}),_.p("design:type",Boolean)],u2.prototype,"engagementPanel",void 0);_.L([_.x({reflectToAttribute:!0}),_.p("design:type",Boolean)],u2.prototype,"watchWhileSdp",void 0);_.L([_.A3("ytd-expandable-video-description-body-renderer"),_.p("design:type",Object)],u2.prototype,"description",void 0);
_.L([_.A3("ytd-horizontal-card-list-renderer"),_.p("design:type",Object)],u2.prototype,"JSC$22665_cardList",void 0);_.L([_.A3("ytd-horizontal-card-list-renderer[center-items]"),_.p("design:type",Object)],u2.prototype,"problemWalkthroughCardList",void 0);_.L([_.A3("ytd-shelf-renderer"),_.p("design:type",Object)],u2.prototype,"shelfSection",void 0);_.L([_.A3("ytd-video-description-music-section-renderer"),_.p("design:type",Object)],u2.prototype,"musicMetadataSection",void 0);
_.L([_.A3("ytd-video-description-infocards-section-renderer"),_.p("design:type",Object)],u2.prototype,"infocardsSection",void 0);_.L([_.A3("ytd-video-description-transcript-section-renderer"),_.p("design:type",Object)],u2.prototype,"transcriptSection",void 0);_.L([_.A3("how-this-was-made-section-view-model"),_.p("design:type",Object)],u2.prototype,"howThisWasMadeSection",void 0);_.L([_.A3("ytd-video-description-files-section-renderer"),_.p("design:type",Object)],u2.prototype,"filesSection",void 0);
_.L([_.O8("panelContentVisible"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],u2.prototype,"panelContentVisibleChanged",null);_.L([_.O8("data"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],u2.prototype,"dataChanged",null);_.L([_.O8("hidden"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],u2.prototype,"onHiddenChanged",null);
_.L([_.gz("yt-expander-more-tapped"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],u2.prototype,"onYtExpanderMoreTapped",null);_.L([_.U({is:"ytd-structured-description-content-renderer",disableElementRegistration:!0})],u2);
_.D(u2,"ytd-structured-description-content-renderer",function(){if(WO7!==void 0)return WO7;var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-structured-description-content-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="video-summary" hidden="[[!showVideoSummary]]" class="style-scope ytd-structured-description-content-renderer"></div>\n<div id="merch-shelf" hidden="[[!merchShelf]]" class="style-scope ytd-structured-description-content-renderer"></div>\n<div id="items" class="style-scope ytd-structured-description-content-renderer"></div>\n');a.content.insertBefore(_.w().content.cloneNode(!0),
a.content.firstChild);return WO7=a},{mode:2});var o8j;var UMa;var EP=function(){return _.G.apply(this,arguments)||this};
_.b(EP,_.G);EP.prototype.computeAriaLabel=function(a){var z,I;return(a==null?void 0:(z=a.accessibility)==null?void 0:(I=z.accessibilityData)==null?void 0:I.label)||_.AR("LOADING",void 0,"Loading")};
_.L([_.Q(_.k.YtRendererBehavior),_.p("design:type",Object)],EP.prototype,"ytRendererBehavior",void 0);_.L([_.x(),_.p("design:type",Object)],EP.prototype,"data",void 0);_.L([_.x({computed:"computeAriaLabel(data)"}),_.p("design:type",String)],EP.prototype,"ariaLabel",void 0);_.L([_.dz({disableElementRegistration:!0,is:"yt-content-loading-renderer"})],EP);
_.D(EP,"yt-content-loading-renderer",function(){if(UMa===void 0){var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-content-loading-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.yt_content_loading_renderer.yt.content.loading.renderer.css.js--\x3e<tp-yt-paper-spinner id="spinner" active="[[data.useSpinner]]" alt="[[ariaLabel]]" class="style-scope yt-content-loading-renderer">\n</tp-yt-paper-spinner>\n');a.content.insertBefore(_.w().content.cloneNode(!0),
a.content.firstChild);var z=a.content,I=z.insertBefore;o8j===void 0&&(o8j=document.createElement("template"));var J=o8j;I.call(z,J.content.cloneNode(!0),a.content.firstChild);UMa=a}a=UMa;return a},{mode:_.Np("kevlar_poly_si_batch_j043")?1:2});_.Jf(_.ec(function(a){var z=_.C(_.CW(!1,void 0,"QkPiwb")),I=z.next().value,J=z.next().value;z=_.C(_.CW(!1,void 0,"AFECB"));var r=z.next().value,P=z.next().value;_.QO(function(){var E=_.H(a.data().collaboratePlaylistCollaborationSetting,lEN);E&&J(E.switchedOnByDefault);var O=_.H(a.data().allowNewCollaboratorsPlaylistCollaborationSetting,lEN);O&&P(O.switchedOnByDefault);if(!E&&!O||!E&&a.data().collaborationType==="COLLABORATION_TYPE_TASTE_MATCH")J(!0),P(!0)});
var N=function(E){J(E);P(E);var O=a.data().playlistCollaborationEntityKey||"";var f=_.M3().getState();(f=_.Bd(f.entities,"playlistCollaborationEntity",O))&&(f==null?void 0:f.isCollaborative)===E||_.M3().dispatch(_.Q0("playlistCollaborationEntity",O,Object.assign({},f,{isCollaborative:E})))},u=function(E){P(E)};
return _.B("playlist-collaboration-view-model",{class:"ytPlaylistCollaborationViewModelHost"},_.B("div",{class:"ytPlaylistCollaborationViewModelSwitchListItemViewModelWrapper"},_.B(_.V0,{data:function(){return a.data().collaboratePlaylistCollaborationSetting}},{switchListItemViewModel:function(E){return _.B(_.l2i,{data:E.data,
onSwitch:N})}})),_.B(_.g,{cond:I,
then:function(){return _.B(_.eJ,null,_.B("div",{class:"ytPlaylistCollaborationViewModelSwitchListItemViewModelWrapper"},_.B(_.V0,{data:function(){return a.data().allowNewCollaboratorsPlaylistCollaborationSetting}},{switchListItemViewModel:function(E){return _.B(_.l2i,{data:E.data,
onSwitch:u,overrideDisabled:!1})}})),_.B(_.g,{cond:r,
then:function(){return _.B("div",{class:"ytPlaylistCollaborationViewModelButtonViewModelWrapper"},_.B(_.V0,{data:function(){return a.data().copyLinkButton}},{buttonViewModel:_.At}))}}),_.B("div",{class:"ytPlaylistCollaborationViewModelContentListItemViewModelWrapper"},_.B(_.V0,{data:function(){return a.data().playlistCollaborators}},{contentListItemViewModel:_.M7Z})))}}))},"kk"),"playlist-collaboration-view-model",{props:{data:_.zl}});var DMO=_.ec(function(a){var z=a.data;var I=a.customCommandResolver;return _.B(_.eJ,null,_.B("div",{class:"ytwAdAvatarLockupViewModelHostAvatarStyleCompact"},_.B(_.V0,{data:function(){return z().adAvatar}},{adAvatarViewModel:function(J){return _.B(_.hrG,{data:J.data,
customCommandResolver:I})}})),_.B("div",{class:"ytwAdAvatarLockupViewModelHostTextsStyleCompact"},_.B(_.g,{cond:function(){return z().headline},
then:function(J){return _.B(_.xs,{text:J,className:function(){return"ytwAdAvatarLockupViewModelHostTextsStyleCompactHeadlineWidthUnlocked"}})}}),_.B("div",{class:function(){return"ytwAdAvatarLockupViewModelHostTextsStyleCompactDescriptionWidthUnlocked"}},_.B(_.V0,{data:function(){return z().adBadge}},{adBadgeViewModel:function(J){return _.B(_.BX,{data:J.data,
hasDot:function(){return z().primaryDetailsLine!==void 0},
customCommandResolver:I,adRenderingContextType:function(){return"AD_RENDERING_CONTEXT_TYPE_WATCH_NEXT"}})}}),_.B(_.V0,{data:function(){return z().primaryDetailsLine}},{adDetailsLineViewModel:function(J){return _.B(_.gW,{data:J.data,
customCommandResolver:I,adRenderingContextType:function(){return"AD_RENDERING_CONTEXT_TYPE_WATCH_NEXT"}})}}))))},"lk"),RtG=_.ec(function(a){var z=a.data;
var I=a.customCommandResolver;return _.B("ad-avatar-lockup-view-model",{class:function(){var J;return((J=z().interaction)==null?0:J.onTap)?"ytwAdAvatarLockupViewModelHostIsClickableAdComponent":"ytwAdAvatarLockupViewModelHost"},
el:_.a5(_.z$({visibilityCallback:function(J){var r,P=(r=z().interaction)==null?void 0:r.onFirstVisible;J&&P&&_.lN(P)},
showOption:_.PX}),_.wi(function(){return z().interaction},I)),
"aria-label":function(){var J,r;return(J=z().interaction)==null?void 0:(r=J.accessibility)==null?void 0:r.label}},_.B(_.Fw,null,_.B(_.n3,{when:function(){return z().style==="AD_AVATAR_LOCKUP_STYLE_COMPACT"}},function(){return _.B(DMO,{data:z,
customCommandResolver:I})}),_.B(_.K3,null,function(){return null})))},"mk");_.Jf(_.ec(function(a){var z=a.data;var I=a.panelContentVisibility;a=_.z$({visibilityCallback:function(P){var N,u=(N=z().interaction)==null?void 0:N.onFirstVisible;P&&u&&_.lN(u)},
showOption:_.PX});var J=_.wi(function(){return z().interaction},UEa);
_.iF(function(){var P,N;if(N=_.DH("yt.www.ads.eventcache.getLastUpdateEngagementPanelAction")){var u;N=(u=N())==null?void 0:u.onLayoutVisibleCallback}else N=null;(P=N)==null||P()});
var r=function(){return I()==="ENGAGEMENT_PANEL_VISIBILITY_COLLAPSED"};
return _.B("panel-ad-header-image-lockup-view-model",{class:"ytwPanelAdHeaderImageLockupViewModelHost",el:_.a5(a,J)},_.B("div",{class:"ytwPanelAdHeaderImageLockupViewModelHostHeader"},_.B("div",{class:"ytwPanelAdHeaderImageLockupViewModelHostHeaderBannerImage"},_.B(_.g,{cond:_.Ed1("(min-width: "+((0,_.M7)()+_.DS)+"px) or (max-width: 600px)"),then:function(){return _.B(_.V0,{data:function(){return z().adImage}},{adImageViewModel:function(P){return _.B(_.KA,{data:P.data,
targetHeight:80,customCommandResolver:UEa})}})}})),_.B("div",{class:"ytwPanelAdHeaderImageLockupViewModelHostHeaderMetadata"},_.B("div",{class:"ytwPanelAdHeaderImageLockupViewModelHostHeaderMetadataAvatarLockup"},_.B(_.V0,{data:function(){return z().adAvatarLockup}},{adAvatarLockupViewModel:function(P){return _.B(RtG,{data:P.data,
customCommandResolver:UEa})}})),_.B(_.g,{cond:r,
then:function(){return _.B(_.V0,{data:function(){return z().adButton}},{adButtonViewModel:function(P){return _.B(_.C0,{data:P.data,
customCommandResolver:UEa})}})},
else:function(){return _.B(_.V0,{data:function(){return z().menu}},{buttonViewModel:_.At})}}),_.B("div",{class:"ytwPanelAdHeaderImageLockupViewModelHostHeaderMetadataMenu"},_.B(_.V0,{data:function(){var P=_.H(z().toggleButton,_.My);
return{toggleButtonViewModel:Object.assign({},P,{isTogglingDisabled:!0,isToggled:r()})}}},{toggleButtonViewModel:_.Wc})))))},"nk"),"panel-ad-header-image-lockup-view-model",{props:{data:_.zl,
panelContentVisibility:_.zl}});_.Jf(_.ec(function(a){var z=function(){return _.H(a.data().inputComposerViewModel,p4x)},I=function(){var h;
return((h=z())==null?void 0:h.youchatPendingResponseEntityKey)||""},J=_.KU(_.Okf,I),r=function(){var h;
return!((h=J())==null||!h.isPendingResponse)},P=_.C(_.CW(!0,void 0,"DR0q1d")),N=P.next().value,u=P.next().value,E=function(){return z().sectionTargetId||"youchat_messages_section"};
P=_.ca("yt-chat-input-view-model");var O=_.Mm("textarea"),f=_.KU(SOP,"chat_input_view_model_state"),A=ilx(),n=function(){var h;return!((h=f())==null||!h.value)};
_.QO(function(){var h;if(!n()&&((h=z())==null?0:h.welcomeFeatureContinuation)){var v;((v=z())==null?0:v.setPendingResponseOnWelcome)&&_.fnV(I())(!0);h={continuationCommand:{token:z().welcomeFeatureContinuation,request:"CONTINUATION_REQUEST_TYPE_GET_PANEL"}};var d;v=String(Math.floor(((d=_.Bn())==null?void 0:d.getCurrentTime())||0)*1E3);d={inputComposerFormData:{clientMessageId:"youchat-"+Date.now(),playerOffsetMs:v}};_.DA(h,{form:{formData:d}});A(!0)}var W=E(),l;(l=_.ab().resolve(_.eL(_.vw)))==null||
l.addEventListener("yt-navigate-start",function(){_.Hn.remove(W);A(!1)},{once:!0})});
var F=function(){var h=O.value.value;O.value.value="";DEj(O.value);var v,d=((v=z())==null?void 0:v.enableGradientColorBg)||!1;v=Rv9(E(),h,d);_.DA(v);var W=_.fnV(I()),l;_.lN(((l=z())==null?void 0:l.onSubmitCommand)||{});W(!0);var q;l=String(Math.floor(((q=_.Bn())==null?void 0:q.getCurrentTime())||0)*1E3);var m;q={continuationCommand:{token:(m=z())==null?void 0:m.continuation,request:"CONTINUATION_REQUEST_TYPE_GET_PANEL"}};h={inputComposerFormData:{clientMessageId:"youchat-"+Date.now(),userInputText:h,
playerOffsetMs:l}};_.DA(q,{form:{formData:h},commandController:{onSuccess:function(){W(!1)},
onServerError:function(){var M=E();_.DA({listMutationCommand:{operations:{operations:[{removeItem:{removeByTargetId:{targetIds:["loading_response_message_id"]},sectionTargetId:M}}]}}});W(!1)}}})};
return _.B("yt-chat-input-view-model",{class:"chatInputViewModelChatInputViewModel",el:P},_.B("div",{class:"chatInputViewModelChatInputWrapper"},_.B("form",{class:"chatInputViewModelChatInputForm"},_.B("textarea",{class:"chatInputViewModelChatInput",el:O,"on:keydown":_.g4(function(h){var v=r()||!1;DEj(O.value);v||h.key!=="Enter"||h.shiftKey||(h.preventDefault(),F());return!1}),
"on:keyup":_.g4(function(){u(O.value.value.length===0);return!1}),
placeholder:function(){var h,v;var d=_.H((v=z())==null?void 0:v.inputFormField,Kzt);return d==null?void 0:(h=d.contentProperties)==null?void 0:h.placeholderText},
rows:1}),_.B(_.At,{data:function(){return _.H(a.data().sendButton,_.yw)},
onClick:function(h){h.preventDefault();F();u(O.value.value.length===0)},
buttonOverrides:function(){return{disabled:N()||r()}}})),_.B(_.xs,{className:"chatInputViewModelChatDisclaimer",
text:function(){var h;return(h=_.H(a.data().disclaimer,_.oFe))==null?void 0:h.text}})))},"ok"),"yt-chat-input-view-model",{props:{data:_.zl}});var LOu=["engagement-panel-clip-create","engagement-panel-clip-view"],lmu=0,Bj=function(){var a=_.G.apply(this,arguments)||this;var z;a.headerData=(z=a.data)==null?void 0:z.header;a.darkerPanels=_.K("web_watch_darker_panels");a.matchContentTheme=_.K("web_watch_panel_content_match_theme");a.disableAutoFill=!1;a.isFullscreen=!1;a.isTheaterMode=!1;a.modernPanels=_.K("kevlar_watch_modern_panels");a.liveChatReplyPanel=!1;a.enableAnchoredPanel=_.K("desktop_shorts_v2_anchored_panel");a.disableBackdropFilter=
_.K("web_disable_backdrop_filter");a.trackEngagementPanelVisibility=_.K("web_watch_track_engagement_panel_visibility");a.actionMap={"yt-change-engagement-panel-visibility-action":"onYtChangeEngagementPanelVisibilityAction","yt-scroll-to-engagement-panel-command":"onYtScrollToEngagementPanelCommand","yt-update-engagement-panel-action":"onYtUpdateEngagementPanelAction","yt-show-engagement-panel-scrim-action":"onYtShowEngagementPanelScrimAction","yt-hide-engagement-panel-scrim-action":"onYtHideEngagementPanelScrimAction"};
return a};
_.b(Bj,_.G);_.Z=Bj.prototype;
_.Z.configureRendererStamper=function(){return{headerData:{id:"header",mapping:{engagementPanelTitleHeaderRenderer:{component:"ytd-engagement-panel-title-header-renderer",properties:{liveChatEngagementPanel:"[[liveChatEngagementPanel]]",targetId:"[[data.targetId]]",shortsPanel:"[[shortsPanel]]",learningChatEngagementPanel:"[[learningChatEngagementPanel]]"}},panelAdHeaderImageLockupViewModel:{component:"panel-ad-header-image-lockup-view-model"},pageHeaderViewModel:{component:"yt-page-header-view-model"}},events:!0},
"data.content":{id:"content",mapping:{sectionListRenderer:{matcher:function(a){var z;return(a==null?void 0:(z=a.webComponentHint)==null?void 0:z.componentVersion)==="WEB_COMPONENT_VERSION_SHARED"?"yt-section-list-renderer":"ytd-section-list-renderer"},
params:{engagementPanel:!0},properties:{liveChatEngagementPanel:"[[liveChatEngagementPanel]]",inReplyPanel:"[[liveChatReplyPanel]]",engagementPanelDropdown:"[[dropdown]]",engagementPanelDialog:"[[dialog]]",disableAutoFill:"[[disableAutoFill]]"}},continuationItemRenderer:"ytd-continuation-item-renderer",richGridRenderer:"ytd-rich-grid-renderer",transcriptRenderer:"ytd-transcript-renderer",clipSectionRenderer:"ytd-clip-section-renderer",adsEngagementPanelContentRenderer:"ytd-ads-engagement-panel-content-renderer",
macroMarkersListRenderer:"ytd-macro-markers-list-renderer",searchInVideoRenderer:"ytd-search-in-video-renderer",structuredDescriptionContentRenderer:{component:"ytd-structured-description-content-renderer",params:{engagementPanel:!0},properties:{shortsPanel:"[[shortsPanel]]",watchWhileSdp:"[[isWatchWhilePanel]]"}},mediaUpsellRenderer:"ytd-media-upsell-renderer",productListRenderer:"ytd-product-list-renderer",contentLoadingRenderer:"yt-content-loading-renderer",flowRootRenderer:"ytd-flow-root-renderer",
sponsorshipsGiftingOptInRenderer:"ytd-sponsorships-gifting-opt-in-renderer",playlistCollaborationViewModel:"playlist-collaboration-view-model"},events:!0},"data.footer":{id:"footer",mapping:{commerceCartCheckoutButtonRenderer:{component:"ytd-commerce-cart-checkout-button-renderer",params:{fullWidth:!0}},cardItemRenderer:"yt-card-item-renderer",chatInputViewModel:"yt-chat-input-view-model",liveChatEngagementPanelInputRenderer:{component:"yt-live-chat-engagement-panel-input-renderer",properties:{inReplyPanel:"[[liveChatReplyPanel]]",
hideBorder:"[[hideFooterBorder]]"}},liveLeaderboardItemViewModel:"ytvl-live-leaderboard-item-view-model",disableableButtonViewModel:"yt-disableable-button-view-model"}}}};
_.Z.attached=function(){this.hostElement.parentElement&&this.hostElement.parentElement.is==="tp-yt-paper-dialog"&&(this.dialog=!0);var a;if((a=this.hostElement.parentElement)==null?0:a.classList.contains("tp-yt-iron-dropdown"))this.dropdown=!0;this.disableAutoFill=!(!this.dialog&&!this.dropdown)};
_.Z.detached=function(){this.updateTheaterDisablement()};
_.Z.showPanel=function(){var a=this;this.notifyVisibilityChanged("ENGAGEMENT_PANEL_VISIBILITY_EXPANDED");this.showDelayMs?_.GW.addJob(function(){a.visibility="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED"},2,this.showDelayMs):this.visibility="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED"};
_.Z.maybeScrollToItemSection=function(a){var z=this,I,J=a==null?void 0:(I=a.sectionListEngagementPanelExtras)==null?void 0:I.scrollToItemSectionIdentifier;J&&_.GW.addJob(function(){var r;(r=z.sectionListRendererElement)==null||r.scrollToItemSection(J)},8)};
_.Z.hidePanel=function(){var a=this;this.notifyVisibilityChanged("ENGAGEMENT_PANEL_VISIBILITY_HIDDEN");this.hideDelayMs?_.GW.addJob(function(){a.visibility="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"},2,this.hideDelayMs):this.visibility="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"};
_.Z.isVisible=function(){return!!this.visibility&&this.visibility!=="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"};
_.Z.getPanelContent=function(){return{engagementPanelSectionListRenderer:this.data}};
_.Z.updatePanel=function(a,z,I,J){var r=this;if((a=a==null?void 0:a.engagementPanelSectionListRenderer)||J){if(a){J=a.header;var P=a.content,N=a.footer;(a=a.targetId)&&this.set("data.targetId",a);J&&this.set("data.header",J);P&&this.set("data.content",P);N&&this.set("data.footer",N)}else J&&(a=J.content,P=J.secondaryHeaderContent,(J=J.targetId)&&this.set("data.targetId",J),a&&this.set("data.content",a),P&&(this.secondaryHeaderData=P));this.updateChildVisibilityProperties();if(z){var u;_.K("kevlar_update_panel_focus_scroll_killswitch")||
(u={preventScroll:!0});this.focus(u)}_.Yv(this,function(){_.PA(r.hostElement,"yt-refit");r.maybeScrollToItemSection(I)})}};
_.Z.computeHeaderData=function(){var a,z=(0,_.x8.unsafeClone)((a=this.data)==null?void 0:a.header);if(z){a=new _.jv(Object.keys(z)[0]);var I=_.H(z,a),J=_.H(this.secondaryHeaderData,a);J&&_.$N(z,a,Object.assign({},J,I))}return z};
_.Z.getReloadContinuation=function(){var a,z,I,J=_.C(((a=this.data)==null?void 0:(z=a.content)==null?void 0:(I=z.sectionListRenderer)==null?void 0:I.continuations)||[]);for(a=J.next();!a.done;a=J.next())if(a=a.value,a.reloadContinuationData)return a.reloadContinuationData.continuation};
_.Z.onYtRendererstamperFinished=function(){this.updateChildVisibilityProperties();var a;((a=this.data)==null?0:a.targetId)&&(a=this.contentElement.firstElementChild)&&a.setAttribute("panel-target-id",this.data.targetId)};
_.Z.forwardPopupClosedToFlowRootRenderer=function(){var a=_.PK(this.hostElement).querySelector("ytd-flow-root-renderer");if(a)a.onPopupClosed()};
_.Z.dataChanged=function(){this.getSurface()==="ENGAGEMENT_PANEL_SURFACE_LIVE_CHAT"&&(this.liveChatEngagementPanel=!0,this.getIdentifier()==="PAreply_thread"&&(this.liveChatReplyPanel=!0));var a;if(!LOu.includes((a=this.theaterDisablementPanelIdentifier)!=null?a:""))if(a=_.K("web_watch_imax_theater_mode")&&this.isTheaterMode,a=_.K("web_watch_enable_fs_squeezeback_panels")&&this.isFullscreen||a,_.K("kevlar_watch_metadata_ep_killswitch")||this.getIdentifier()!=="engagement-panel-structured-description"||
this.getSurface()==="ENGAGEMENT_PANEL_SURFACE_SHORTS"||a){var z;this.visibility=(z=this.data)==null?void 0:z.visibility;var I;this.trackEngagementPanelVisibility&&((I=this.data)==null?void 0:I.visibility)==="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED"&&this.notifyVisibilityChanged("ENGAGEMENT_PANEL_VISIBILITY_EXPANDED");var J,r,P,N;this.contentEmpty=!!(((J=this.data)==null?0:(r=J.content)==null?0:r.structuredDescriptionContentRenderer)&&Object.keys((P=this.data)==null?void 0:(N=P.content)==null?void 0:
N.structuredDescriptionContentRenderer).length===0);(z=_.ab().resolve(_.X3))&&z.registerPanel(this.getIdentifier(),this);this.updateTheaterDisablement()}else this.data.visibility="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN",this.visibility=this.data.visibility};
_.Z.isTheaterModeChanged=function(){_.K("web_watch_imax_theater_mode")&&(this.liveChatEngagementPanel||this.hidePanel())};
_.Z.isFullscreenChanged=function(){_.K("web_watch_close_eps_on_fullscreen")&&(this.liveChatEngagementPanel||this.hidePanel())};
_.Z.focus=function(a){if(this.header)this.header.focus(a);else{var z;(z=_.PK(this.hostElement).querySelector("ytd-flow-root-renderer"))==null||z.focus(a)}};
_.Z.visibilityChanged=function(){if(!_.K("kevlar_use_engagement_panel_management_component")){this.updateChildVisibilityProperties();var a=this.visibility&&this.visibility!=="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN",z=this.visibility==="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN",I=this.lastVisibility&&this.lastVisibility!=="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN",J=this.lastVisibility==="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN",r=J||!this.lastVisibility,P,N,u,E=((P=this.data)==null?void 0:(N=P.identifier)==null?void 0:
N.tag)||((u=this.data)==null?void 0:u.panelIdentifier);if(a&&r){var O;((O=this.data)==null?0:O.onShowCommands)&&_.tR(this.hostElement,this.data.onShowCommands,this.hostElement);E&&_.qo().dispatch(_.rg({type:"ADD_OPEN_ENGAGEMENT_PANEL",payload:{panelToAdd:E}}))}else if(z&&I){var f;((f=this.data)==null?0:f.onHideCommands)&&_.tR(this.hostElement,this.data.onHideCommands,this.hostElement);E&&_.qo().dispatch(_.rg({type:"REMOVE_OPEN_ENGAGEMENT_PANEL",payload:{panelToRemove:E}}))}a&&this.lastVisibility!==
void 0&&(this.hostElement.style.order=String(-1*lmu++));_.K("kevlar_watch_focus_on_engagement_panels")&&a&&J&&this.focus({preventScroll:!0});this.updateTheaterDisablement()}this.lastVisibility=this.visibility};
_.Z.notifyVisibilityChanged=function(a){var z;_.Ct(this.hostElement,"yt-engagement-panel-visible-changed",[this.data,a,(z=this.data)==null?void 0:z.targetId])};
_.Z.updateTheaterDisablement=function(){if(!_.K("kevlar_watch_theater_disablement_killswitch")){var a=this.theaterDisablementPanelIdentifier||this.getIdentifier()||"";if(this.isWatch&&LOu.includes(a)&&!_.K("watch_next_grid_ignore_disallowed_panels")){var z=_.Td(_.qo().getState()),I=this.visibility!=="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN";a!==this.getIdentifier()&&this.originalTheaterState?this.clearTheaterDisablement():I?(this.originalTheaterState===void 0&&(this.originalTheaterState=z,this.theaterDisablementPanelIdentifier=
a),z&&_.ZF(this.hostElement,"yt-toggle-theater-mode",[!1,!1])):this.originalTheaterState&&this.clearTheaterDisablement()}}};
_.Z.clearTheaterDisablement=function(){_.ZF(this.hostElement,"yt-toggle-theater-mode",[!0,!1]);this.theaterDisablementPanelIdentifier=this.originalTheaterState=void 0};
_.Z.updateChildVisibilityProperties=function(){this.hostElement||_.K("kevlar_panel_property_init_killswitch")||this._enableProperties();var a=this.visibility;this.adHeaderImageLockupViewModel&&(this.adHeaderImageLockupViewModel.panelContentVisibility=a);var z,I=(z=this.headerElement)==null?void 0:z.firstElementChild;if(I&&!this.adHeaderImageLockupViewModel){z=a==="ENGAGEMENT_PANEL_VISIBILITY_COLLAPSED";I.collapsed=z;I=_.PK(I).querySelector("#visibility-button");if(!I)return;(I=I.firstElementChild)&&
I.polymerController.is==="ytd-toggle-button-renderer"&&I.polymerController.data.isToggled!==z&&I.polymerController.set("data.isToggled",z)}var J;if(z=(J=this.contentElement)==null?void 0:J.firstElementChild)if(a&&a!=="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED")z.removeAttribute("panel-content-visible");else{z.setAttribute("panel-content-visible","");var r;(r=z.markDirty)==null||r.call(z)}};
_.Z.onYtChangeEngagementPanelVisibilityAction=function(a){var z=this,I,J=(I=this.data)==null?void 0:I.targetId,r,P,N;I=((r=this.data)==null?void 0:(P=r.identifier)==null?void 0:P.tag)||((N=this.data)==null?void 0:N.panelIdentifier);var u=_.H(a,_.dQe),E;a=J&&(u==null?void 0:u.targetId)===J||I&&(u==null?void 0:(E=u.panelIdentifier)==null?void 0:E.tag)===I;this.dialog&&a&&(u==null?void 0:u.visibility)==="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"&&(J==="engagement-panel-comments-section"?_.ZF(this.hostElement,
"yt-close-popup-action",["ytd-engagement-panel-section-list-renderer"]):_.ZF(this.hostElement,"yt-close-popup-action",["ytd-engagement-panel-section-list-renderer",I]));!_.K("kevlar_use_engagement_panel_management_component")&&a&&(J=u.visibility==="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED",this.hideDelayMs&&!J?_.GW.addJob(function(){z.visibility=u.visibility},2,this.hideDelayMs):this.visibility=u.visibility,u.visibility&&this.notifyVisibilityChanged(u.visibility))};
_.Z.onYtScrollToEngagementPanelCommand=function(a){var z,I=(z=this.data)==null?void 0:z.targetId,J,r,P;z=((J=this.data)==null?void 0:(r=J.identifier)==null?void 0:r.tag)||((P=this.data)==null?void 0:P.panelIdentifier);a=_.H(a,_.kV1);var N;(I&&(a==null?void 0:a.targetId)===I||z&&(a==null?void 0:(N=a.panelIdentifier)==null?void 0:N.tag)===z)&&this.visibility==="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED"&&_.ZF(this.hostElement,"yt-scroll-to-watch-element",[this.hostElement])};
_.Z.attachVEs=function(a){var z,I;(a==null?0:(z=a.content)==null?0:(I=z.productListRenderer)==null?0:I.trackingParams)&&_.Kw().graftServerVe(a.content.productListRenderer.trackingParams);var J,r;(a==null?0:(J=a.content)==null?0:(r=J.transcriptRenderer)==null?0:r.trackingParams)&&_.Kw().graftServerVe(a.content.transcriptRenderer.trackingParams)};
_.Z.onYtUpdateEngagementPanelAction=function(a){var z,I=(z=this.data)==null?void 0:z.targetId;a=_.H(a,Vfx);I&&(a==null?void 0:a.targetId)===I&&(this.updatePanel({engagementPanelSectionListRenderer:{header:a==null?void 0:a.header,content:a==null?void 0:a.content}},!1),this.attachVEs(a))};
_.Z.onYtShowEngagementPanelScrimAction=function(a){var z,I=(z=this.data)==null?void 0:z.targetId;a=_.H(a,hiO);I&&(a==null?void 0:a.engagementPanelTargetId)===I&&(this.scrimmed=!0)};
_.Z.onYtHideEngagementPanelScrimAction=function(a){var z,I=(z=this.data)==null?void 0:z.targetId;a=_.H(a,HZG);I&&(a==null?void 0:a.engagementPanelTargetId)===I&&(this.scrimmed=!1)};
_.Z.getIdentifier=function(){var a,z,I;return((a=this.data)==null?void 0:a.panelIdentifier)||((z=this.data)==null?void 0:(I=z.identifier)==null?void 0:I.tag)};
_.Z.getSurface=function(){var a,z;return(a=this.data)==null?void 0:(z=a.identifier)==null?void 0:z.surface};
_.eH.Object.defineProperties(Bj.prototype,{targetId:{configurable:!0,enumerable:!0,get:function(){var a;return(a=this.data)==null?void 0:a.targetId}},
webSize:{configurable:!0,enumerable:!0,get:function(){var a;return(a=this.data)==null?void 0:a.size}},
hideFooterBorder:{configurable:!0,enumerable:!0,get:function(){var a=this.getIdentifier();return a==="engagement-panel-youchat"||a==="PAyouchat"}}});
Bj.prototype.visibilityChanged=Bj.prototype.visibilityChanged;Bj.prototype.isFullscreenChanged=Bj.prototype.isFullscreenChanged;Bj.prototype.isTheaterModeChanged=Bj.prototype.isTheaterModeChanged;Bj.prototype.dataChanged=Bj.prototype.dataChanged;Bj.prototype.forwardPopupClosedToFlowRootRenderer=Bj.prototype.forwardPopupClosedToFlowRootRenderer;Bj.prototype.onYtRendererstamperFinished=Bj.prototype.onYtRendererstamperFinished;
_.L([_.Q(_.Hc.YtActionHandlerBehavior),_.p("design:type",Object)],Bj.prototype,"actionHandlerBehavior",void 0);_.L([_.Q(_.u4.YtRendererstamperBehavior),_.p("design:type",Object)],Bj.prototype,"ytRendererstamperBehavior",void 0);_.L([_.Q(_.pV),_.p("design:type",Object)],Bj.prototype,"ytdReduxBehavior",void 0);_.L([_.Q(_.iO.YtEventForwardingBehavior),_.p("design:type",Object)],Bj.prototype,"ytEventForwardingBehavior",void 0);_.L([_.x(),_.p("design:type",Object)],Bj.prototype,"data",void 0);
_.L([_.x({computed:"computeHeaderData(data.header, secondaryHeaderData)"}),_.p("design:type",Object)],Bj.prototype,"headerData",void 0);_.L([_.x(),_.p("design:type",Object)],Bj.prototype,"secondaryHeaderData",void 0);_.L([_.x({reflectToAttribute:!0}),_.p("design:type",Object)],Bj.prototype,"visibility",void 0);_.L([_.x({reflectToAttribute:!0}),_.p("design:type",Boolean)],Bj.prototype,"contentEmpty",void 0);_.L([_.x({reflectToAttribute:!0}),_.p("design:type",Boolean)],Bj.prototype,"scrimmed",void 0);
_.L([_.x({reflectToAttribute:!0}),_.p("design:type",Boolean)],Bj.prototype,"dialog",void 0);_.L([_.x({reflectToAttribute:!0}),_.p("design:type",Boolean)],Bj.prototype,"dropdown",void 0);_.L([_.x({reflectToAttribute:!0}),_.p("design:type",Object)],Bj.prototype,"darkerPanels",void 0);_.L([_.x({reflectToAttribute:!0}),_.p("design:type",Object)],Bj.prototype,"matchContentTheme",void 0);_.L([_.x(),_.p("design:type",Object)],Bj.prototype,"disableAutoFill",void 0);
_.L([_.x({reflectToAttribute:!0,value:_.K("optimal_reading_width_comments_ep")}),_.p("design:type",Boolean)],Bj.prototype,"optimalReadingWidthComments",void 0);_.L([_.x(),_.p("design:type",Number)],Bj.prototype,"hideDelayMs",void 0);_.L([_.x({selector:_.d4,reflectToAttribute:!0}),_.p("design:type",Object)],Bj.prototype,"isFullscreen",void 0);_.L([_.x({selector:_.Td,reflectToAttribute:!0}),_.p("design:type",Object)],Bj.prototype,"isTheaterMode",void 0);
_.L([_.x(),_.p("design:type",Number)],Bj.prototype,"showDelayMs",void 0);_.L([_.x({reflectToAttribute:!0}),_.S("data.targetId"),_.p("design:type",Object),_.p("design:paramtypes",[])],Bj.prototype,"targetId",null);_.L([_.x({reflectToAttribute:!0}),_.S("data"),_.p("design:type",Object),_.p("design:paramtypes",[])],Bj.prototype,"webSize",null);_.L([_.x(),_.S("data"),_.p("design:type",Object),_.p("design:paramtypes",[])],Bj.prototype,"hideFooterBorder",null);
_.L([_.x(),_.p("design:type",Object)],Bj.prototype,"isWatch",void 0);_.L([_.x(),_.p("design:type",Object)],Bj.prototype,"originalTheaterState",void 0);_.L([_.x(),_.p("design:type",Object)],Bj.prototype,"theaterDisablementPanelIdentifier",void 0);_.L([_.x({reflectToAttribute:!0}),_.p("design:type",Object)],Bj.prototype,"modernPanels",void 0);_.L([_.x({reflectToAttribute:!0}),_.p("design:type",Boolean)],Bj.prototype,"isWatchWhilePanel",void 0);
_.L([_.x({reflectToAttribute:!0}),_.p("design:type",Boolean)],Bj.prototype,"shortsPanel",void 0);_.L([_.x({reflectToAttribute:!0}),_.p("design:type",Boolean)],Bj.prototype,"liveChatEngagementPanel",void 0);_.L([_.x({reflectToAttribute:!0}),_.p("design:type",Boolean)],Bj.prototype,"learningChatEngagementPanel",void 0);_.L([_.x({reflectToAttribute:!0}),_.p("design:type",Object)],Bj.prototype,"liveChatReplyPanel",void 0);
_.L([_.x({reflectToAttribute:!0}),_.p("design:type",Object)],Bj.prototype,"enableAnchoredPanel",void 0);_.L([_.x({reflectToAttribute:!0}),_.p("design:type",Object)],Bj.prototype,"disableBackdropFilter",void 0);_.L([_.x(),_.p("design:type",Object)],Bj.prototype,"trackEngagementPanelVisibility",void 0);_.L([_.A3("#header"),_.p("design:type",HTMLElement)],Bj.prototype,"headerElement",void 0);_.L([_.A3("#header > *"),_.p("design:type",HTMLElement)],Bj.prototype,"header",void 0);
_.L([_.A3("ytd-section-list-renderer"),_.p("design:type",Object)],Bj.prototype,"sectionListRendererElement",void 0);_.L([_.A3("panel-ad-header-image-lockup-view-model"),_.p("design:type",HTMLElement)],Bj.prototype,"adHeaderImageLockupViewModel",void 0);_.L([_.A3("#content"),_.p("design:type",HTMLElement)],Bj.prototype,"contentElement",void 0);
_.L([_.gz("yt-rendererstamper-finished"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],Bj.prototype,"onYtRendererstamperFinished",null);_.L([_.gz("yt-popup-closed"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],Bj.prototype,"forwardPopupClosedToFlowRootRenderer",null);_.L([_.Fe("data","isFullscreen","isTheaterMode"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],Bj.prototype,"dataChanged",null);
_.L([_.O8("isTheaterMode"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],Bj.prototype,"isTheaterModeChanged",null);_.L([_.O8("isFullscreen"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],Bj.prototype,"isFullscreenChanged",null);_.L([_.O8("visibility"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],Bj.prototype,"visibilityChanged",null);
_.L([_.U({is:"ytd-engagement-panel-section-list-renderer",disableElementRegistration:!0})],Bj);
_.D(Bj,"ytd-engagement-panel-section-list-renderer",function(){if(E8N!==void 0)return E8N;var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-engagement-panel-section-list-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-engagement-panel-section-list-renderer"></div>\n<div id="content" class="style-scope ytd-engagement-panel-section-list-renderer"></div>\n<div id="footer" class="style-scope ytd-engagement-panel-section-list-renderer"></div>\n');a.content.insertBefore(_.w().content.cloneNode(!0),
a.content.firstChild);return E8N=a},{mode:_.Np("kevlar_poly_si_batch_j028")?1:2});var pHO;var gw=function(){var a=_.G.apply(this,arguments)||this;a.lastRenderedPanelIds=new Set;a.visiblePanels=[];a.actionMap={"yt-change-engagement-panel-visibility-action":"onYtChangeEngagementPanelVisibilityAction"};return a};
_.b(gw,_.G);_.Z=gw.prototype;_.Z.dataChanged=function(){if(this.data){for(var a=[],z=_.C(this.data),I=z.next();!I.done;I=z.next()){I=I.value;var J=void 0,r=void 0,P=(J=I)==null?void 0:(r=J.engagementPanelSectionListRenderer)==null?void 0:r.visibility;r=J=void 0;((J=I)==null?0:(r=J.engagementPanelSectionListRenderer)==null?0:r.targetId)&&P!=="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"&&a.push(I)}this.visiblePanels=a}else this.visiblePanels=[]};
_.Z.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}}};
_.Z.withoutVisiblePanelById=function(a){return this.visiblePanels.filter(function(z){var I;return((I=z.engagementPanelSectionListRenderer)==null?void 0:I.targetId)!==a})};
_.Z.onYtChangeEngagementPanelVisibilityAction=function(a){var z=this,I=_.H(a,_.dQe);if(this.data&&(I==null?0:I.targetId)&&(I==null?0:I.visibility)){var J,r=(J=this.data.find(function(N){var u;return((u=N.engagementPanelSectionListRenderer)==null?void 0:u.targetId)===I.targetId}))==null?void 0:J.engagementPanelSectionListRenderer;
if(r){var P=this.withoutVisiblePanelById(I.targetId);I.visibility!=="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"&&(a=this.data.find(function(N){var u;return((u=N.engagementPanelSectionListRenderer)==null?void 0:u.targetId)===I.targetId}))&&(P=[a].concat(_.ih(P)));
this.hideDelayMs&&I.visibility==="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"&&P.length===0?_.GW.addJob(function(){r.visibility=I.visibility;z.visiblePanels=P},10,this.hideDelayMs):(r.visibility=I.visibility,this.visiblePanels=P);
_.Ct(this.hostElement,"yt-engagement-panels-visible-changed",[P])}}};
_.Z.onRendererstamperFinished=function(){var a=new Set(this.visiblePanels.map(function(z){var I;return(I=z.engagementPanelSectionListRenderer)==null?void 0:I.targetId}));
this.handlePanelVisibilityChange(a,this.lastRenderedPanelIds);this.lastRenderedPanelIds=a};
_.Z.handlePanelVisibilityChange=function(a,z){a=a===void 0?new Set:a;z=z===void 0?new Set:z;if(this.data)for(var I=_.C(this.data),J=I.next();!J.done;J=I.next()){J=J.value;var r=void 0,P=void 0,N=(r=J)==null?void 0:(P=r.engagementPanelSectionListRenderer)==null?void 0:P.targetId;if(N&&(r=z.has(N),P=a.has(N),N=void 0,!r&&P?(P=r=void 0,N=(r=J)==null?void 0:(P=r.engagementPanelSectionListRenderer)==null?void 0:P.onShowCommands):r&&!P&&(P=r=void 0,N=(r=J)==null?void 0:(P=r.engagementPanelSectionListRenderer)==
null?void 0:P.onHideCommands),N))for(J=_.C(N),N=J.next();!N.done;N=J.next())this.ytComponentBehavior.resolveCommand(N.value)}};
gw.prototype.onRendererstamperFinished=gw.prototype.onRendererstamperFinished;gw.prototype.dataChanged=gw.prototype.dataChanged;_.L([_.Q(_.Ms.YtComponentBehavior),_.p("design:type",Object)],gw.prototype,"ytComponentBehavior",void 0);_.L([_.Q(_.Hc.YtActionHandlerBehavior),_.p("design:type",Object)],gw.prototype,"actionHandlerBehavior",void 0);_.L([_.Q(_.u4.YtRendererstamperBehavior),_.Q(_.k.YtRendererBehavior),_.p("design:type",Object)],gw.prototype,"ytRendererBehavior",void 0);
_.L([_.Q(_.u4.YtRendererstamperBehavior),_.p("design:type",Object)],gw.prototype,"ytRendererstamperBehavior",void 0);_.L([_.x(),_.p("design:type",Object)],gw.prototype,"lastRenderedPanelIds",void 0);_.L([_.x(),_.p("design:type",Number)],gw.prototype,"hideDelayMs",void 0);_.L([_.x(),_.p("design:type",Array)],gw.prototype,"data",void 0);_.L([_.x(),_.p("design:type",Array)],gw.prototype,"visiblePanels",void 0);_.L([_.x(),_.p("design:type",Boolean)],gw.prototype,"isWatchWhilePanel",void 0);
_.L([_.O8("data"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],gw.prototype,"dataChanged",null);_.L([_.gz("yt-rendererstamper-finished"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],gw.prototype,"onRendererstamperFinished",null);_.L([_.U({is:"ytd-watch-engagement-panels",disableElementRegistration:!0})],gw);
_.D(gw,"ytd-watch-engagement-panels",function(){if(pHO!==void 0)return pHO;var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-watch-engagement-panels--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="panels" class="style-scope ytd-watch-engagement-panels"></div>\n');a.content.insertBefore(_.w().content.cloneNode(!0),a.content.firstChild);return pHO=a},{mode:1});var wHt;var OP=function(){return _.G.apply(this,arguments)||this};
_.b(OP,_.G);OP.prototype.dataChanged=function(){this.data&&this.data.companionLegalText!==void 0&&this.data.companionLegalText!==null&&_.YP(_.PK(this.hostElement).querySelector("#text"),_.ble(_.QwE,this.data.companionLegalText))};
OP.prototype.computeAutoScrollEnabled=function(a,z){return a&&!z};
OP.prototype.expandedChanged=function(){this.expanderIcon=this.expanded?"expand-less":"expand-more"};
OP.prototype.onToggleTap=function(){this.expanded=!this.expanded};
OP.prototype.expandedChanged=OP.prototype.expandedChanged;OP.prototype.dataChanged=OP.prototype.dataChanged;_.L([_.Q(_.k.YtRendererBehavior),_.p("design:type",Object)],OP.prototype,"ytRendererBehavior",void 0);_.L([_.Q(_.TXi),_.p("design:type",Object)],OP.prototype,"ytdAutoScrollBehavior",void 0);_.L([_.x(),_.p("design:type",Object)],OP.prototype,"data",void 0);_.L([_.x({reflectToAttribute:!0,value:!1}),_.p("design:type",Boolean)],OP.prototype,"expanded",void 0);
_.L([_.x({computed:"computeAutoScrollEnabled(data.companionLegalTextEnableAutoscroll, expanded)"}),_.p("design:type",Boolean)],OP.prototype,"autoScrollEnabled",void 0);_.L([_.x(),_.p("design:type",String)],OP.prototype,"expanderIcon",void 0);_.L([_.O8("data"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],OP.prototype,"dataChanged",null);
_.L([_.O8("expanded"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],OP.prototype,"expandedChanged",null);_.L([_.U({disableElementRegistration:!0,is:"ytd-companion-legal-text-renderer"})],OP);
_.D(OP,"ytd-companion-legal-text-renderer",function(){if(wHt!==void 0)return wHt;var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-companion-legal-text-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-formatted-string id="text" text="[[data.companionLegalText]]" class="style-scope ytd-companion-legal-text-renderer"></yt-formatted-string>\n\n<tp-yt-paper-material id="expand-button" elevation="1" on-tap="onToggleTap" class="style-scope ytd-companion-legal-text-renderer">\n  <yt-icon-button id="expander-icon" class="style-scope ytd-companion-legal-text-renderer">\n    <yt-icon id="expander-icon" icon="[[expanderIcon]]" class="style-scope ytd-companion-legal-text-renderer"></yt-icon>\n  </yt-icon-button>\n</tp-yt-paper-material>\n\n');a.content.insertBefore(_.w().content.cloneNode(!0),
a.content.firstChild);return wHt=a},{mode:1});var mMx;var fz=function(){var a=_.G.apply(this,arguments)||this;a.buttonUpdate=_.K("web_modern_buttons");a.kevlarWatchGrid=_.K("kevlar_watch_grid");a.centerAlignDescription=_.K("action_companion_center_align_description");a.truncateDomain=_.K("action_companion_truncate_domain");return a};
_.b(fz,_.G);_.Z=fz.prototype;_.Z.computeButtonOverride=function(){if(this.buttonUpdate)return{style:"call-to-action",type:"filled"}};
_.Z.getOnLayoutVisibleCallback=function(){var a=_.DH("yt.www.ads.eventcache.getLastCompanionData");return a?(a=a())&&a.onLayoutVisibleCallback:null};
_.Z.getLayoutId=function(){var a=_.DH("yt.www.ads.eventcache.getLastCompanionData");return a?(a=a())&&a.layoutId:null};
_.Z.dataChanged=function(){if(this.data){this.data.adBadge||this.set("data.adBadge",fz.JSC$22711_DEFAULT_AD_BADGE_RENDERER);var a=this.getOnLayoutVisibleCallback();a&&a()}};
_.Z.getButtonRenderer=function(a){return a.actionButton&&_.H(a.actionButton,_.lc)?(delete _.H(a.actionButton,_.lc).navigationEndpoint,_.H(a.actionButton,_.lc)):{}};
_.Z.onClick=function(a){var z=this;if((!_.K("web_modern_buttons")||!_.qK(_.ch(a),this.hostElement,["YTD-AD-HOVER-TEXT-BUTTON-RENDERER"]))&&this.data&&this.data.navigationEndpoint){a=_.zI();var I=this.getLayoutId();a&&I&&_.K("h5_companion_enable_adcpn_macro_substitution_for_click_pings")?a.getPlayerPromise().then(function(J){(new _.Gq(J)).executeCommand(z.data.navigationEndpoint,I)}):_.K("kevlar_companion_resolve_command_killswitch")?_.PA(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint}):
this.ytComponentBehavior.resolveCommand(this.data.navigationEndpoint);
_.ZF(this.hostElement,"yt-companion-ad-clicked",["action-companion",I])}};
_.eH.Object.defineProperties(fz.prototype,{getRating:{configurable:!0,enumerable:!0,get:function(){var a,z,I;return((a=this.data)==null?0:(z=a.detailsLine)==null?0:(I=z.adRating)==null?0:I.ratingText)?this.data.detailsLine.adRating.ratingText:null}},
computeRatingHidden:{configurable:!0,enumerable:!0,get:function(){return!this.getRating}},
iconType:{configurable:!0,enumerable:!0,get:function(){var a,z,I,J;return((a=this.data)==null?0:(z=a.detailsLine)==null?0:(I=z.adRating)==null?0:(J=I.ratingIcon)==null?0:J.iconType)?_.Bl(this.data.detailsLine.adRating.ratingIcon.iconType):null}},
getDetailsLine:{configurable:!0,enumerable:!0,get:function(){var a,z,I,J;return((a=this.data)==null?0:(z=a.detailsLine)==null?0:(I=z.texts)==null?0:(J=I[0])==null?0:J.text)?this.data.detailsLine.texts[0].text:null}},
computeDetailsLineHidden:{configurable:!0,enumerable:!0,get:function(){return!this.getDetailsLine}},
getDescriptionText:{configurable:!0,enumerable:!0,get:function(){var a,z;return((a=this.data)==null?0:(z=a.description)==null?0:z.text)?this.data.description.text:null}},
computeDescriptionTextHidden:{configurable:!0,enumerable:!0,get:function(){return!this.getDescriptionText}},
interactionLoggingClientData:{configurable:!0,enumerable:!0,get:function(){var a=_.DH("yt.www.ads.eventcache.getLastCompanionData");return a?(a=a())&&a.interactionLoggingClientData:null}},
hideBanner:{configurable:!0,enumerable:!0,get:function(){var a=this.data.bannerImage&&this.get("thumbnail.thumbnails.0.url",this.data.bannerImage);return a?a.indexOf("/default_banner")!==-1:!0}}});
fz.prototype.onClick=fz.prototype.onClick;fz.prototype.dataChanged=fz.prototype.dataChanged;fz.JSC$22711_DEFAULT_AD_BADGE_RENDERER={metadataBadgeRenderer:{label:_.AR("AD_BADGE_TEXT",void 0,"Ad"),style:"BADGE_STYLE_TYPE_AD"}};_.L([_.Q(_.Ms.YtComponentBehavior),_.p("design:type",Object)],fz.prototype,"ytComponentBehavior",void 0);_.L([_.Q(_.k.YtRendererBehavior),_.p("design:type",Object)],fz.prototype,"rendererBehavior",void 0);_.L([_.x(),_.p("design:type",Object)],fz.prototype,"data",void 0);
_.L([_.x({reflectToAttribute:!0}),_.p("design:type",Object)],fz.prototype,"buttonUpdate",void 0);_.L([_.x({reflectToAttribute:!0}),_.p("design:type",Object)],fz.prototype,"kevlarWatchGrid",void 0);_.L([_.x({reflectToAttribute:!0}),_.p("design:type",Object)],fz.prototype,"centerAlignDescription",void 0);_.L([_.x({reflectToAttribute:!0}),_.p("design:type",Object)],fz.prototype,"truncateDomain",void 0);
_.L([_.x({computed:"computeButtonOverride(buttonUpdate)"}),_.p("design:type",Object)],fz.prototype,"buttonOverride",void 0);_.L([_.S("data.detailsLine.adRating.ratingText"),_.p("design:type",Object),_.p("design:paramtypes",[])],fz.prototype,"getRating",null);_.L([_.S("getRating"),_.p("design:type",Boolean),_.p("design:paramtypes",[])],fz.prototype,"computeRatingHidden",null);
_.L([_.S("data.detailsLine.adRating.ratingIcon.iconType"),_.p("design:type",Object),_.p("design:paramtypes",[])],fz.prototype,"iconType",null);_.L([_.S("data.detailsLine.texts.0.text"),_.p("design:type",Object),_.p("design:paramtypes",[])],fz.prototype,"getDetailsLine",null);_.L([_.S("getDetailsLine"),_.p("design:type",Boolean),_.p("design:paramtypes",[])],fz.prototype,"computeDetailsLineHidden",null);
_.L([_.S("data.description.text"),_.p("design:type",Object),_.p("design:paramtypes",[])],fz.prototype,"getDescriptionText",null);_.L([_.S("getDescriptionText"),_.p("design:type",Boolean),_.p("design:paramtypes",[])],fz.prototype,"computeDescriptionTextHidden",null);_.L([_.S("data"),_.p("design:type",Object),_.p("design:paramtypes",[])],fz.prototype,"interactionLoggingClientData",null);
_.L([_.x({reflectToAttribute:!0}),_.S("data"),_.p("design:type",Boolean),_.p("design:paramtypes",[])],fz.prototype,"hideBanner",null);_.L([_.Fe("data"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],fz.prototype,"dataChanged",null);_.L([_.gz("click"),_.p("design:type",Function),_.p("design:paramtypes",[Event]),_.p("design:returntype")],fz.prototype,"onClick",null);_.L([_.U({is:"ytd-action-companion-ad-renderer",disableElementRegistration:!0})],fz);
_.D(fz,"ytd-action-companion-ad-renderer",function(){if(mMx!==void 0)return mMx;var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-action-companion-ad-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<ytd-ad-hover-text-button-renderer id="action-companion-ad-info-button" data="[[data.adInfoRenderer.adHoverTextButtonRenderer]]" hidden="[[!data.adInfoRenderer.adHoverTextButtonRenderer]]" modern-update="[[buttonUpdate]]" class="style-scope ytd-action-companion-ad-renderer">\n</ytd-ad-hover-text-button-renderer>\n<div id="action-companion-click-target" class="yt-simple-endpoint style-scope ytd-action-companion-ad-renderer">\n  <yt-img-shadow id="banner" fit="" hidden="[[hideBanner]]" thumbnail="[[data.bannerImage.thumbnail]]" class="style-scope ytd-action-companion-ad-renderer">\n  </yt-img-shadow>\n  <div id="block" class="style-scope ytd-action-companion-ad-renderer">\n    <yt-img-shadow id="icon" thumbnail="[[data.iconImage.thumbnail]]" class="style-scope ytd-action-companion-ad-renderer"></yt-img-shadow>\n    <div id="text" class="style-scope ytd-action-companion-ad-renderer">\n      <div id="header" class="style-scope ytd-action-companion-ad-renderer">\n        [[data.headline.text]]\n      </div>\n      <div id="desc" class="style-scope ytd-action-companion-ad-renderer">\n        <div id="ad-badge-container" class="style-scope ytd-action-companion-ad-renderer">\n          <ytd-badge-supported-renderer id="ad-badge" top-standalone-badge="[[data.adBadge]]" class="style-scope ytd-action-companion-ad-renderer">\n          </ytd-badge-supported-renderer>\n        </div>\n        <span id="domain" hidden="[[computeDescriptionTextHidden]]" class="style-scope ytd-action-companion-ad-renderer">[[getDescriptionText]]</span>\n        <span id="rating" hidden="[[computeRatingHidden]]" class="style-scope ytd-action-companion-ad-renderer">[[getRating]]</span>\n        <yt-icon id="star-icon" default-to-filled="true" hidden="[[computeRatingHidden]]" icon="[[iconType]]" class="style-scope ytd-action-companion-ad-renderer"></yt-icon>\n        <span id="details-line" hidden="[[computeDetailsLineHidden]]" class="style-scope ytd-action-companion-ad-renderer">[[getDetailsLine]]</span>\n      </div>\n    </div>\n    <ytd-button-renderer id="action" button-raised="" data="[[getButtonRenderer(data)]]" overrides="[[buttonOverride]]" class="style-scope ytd-action-companion-ad-renderer">\n    </ytd-button-renderer>\n  </div>\n</div>\n');
a.content.insertBefore(_.w().content.cloneNode(!0),a.content.firstChild);return mMx=a},{mode:_.Np("kevlar_poly_si_batch_j067")?1:2});var yzN;var kBG;var Ah=function(){var a=_.G.apply(this,arguments)||this;a.buttonUpdate=_.K("web_modern_buttons");a.hideLegacyBanner=_.K("enable_dsa_one_click_ata_translators_infeed_elements");a.adInfoButtonStyle="mono";a.adInfoButtonType="text";a.noDotAdBadge=!0;return a};
_.b(Ah,_.G);_.Z=Ah.prototype;_.Z.getOnLayoutVisibleCallback=function(){var a=_.DH("yt.www.ads.eventcache.getLastCompanionData");return a?(a=a())&&a.onLayoutVisibleCallback:null};
_.Z.getLayoutId=function(){var a=_.DH("yt.www.ads.eventcache.getLastCompanionData");return a?(a=a())&&a.layoutId:null};
_.Z.dataChanged=function(){if(this.data){if(this.data.image&&this.data.image.thumbnail&&this.data.image.thumbnail.thumbnails&&this.data.image.thumbnail.thumbnails.length){var a=this.data.image.thumbnail.thumbnails[0];this.imageSrc=a.url?_.XG(a.url):void 0;this.imageWidth=a.width||0;this.imageHeight=a.height||0}this.data.clickthroughEndpoint&&_.H(this.data.clickthroughEndpoint,_.pv)&&(a=_.H(this.data.clickthroughEndpoint,_.pv).url,_.K("kevlar_sanitize_image_companion_killswitch")?this.clickThroughUrl=
a||"":a?(a=_.XG(a),this.clickThroughUrl=_.ij(a)):this.clickThroughUrl=void 0);(a=this.getOnLayoutVisibleCallback())&&a()}};
_.Z.onClick=function(a){_.qK(_.ch(a),this.hostElement,["A".toString(),"BUTTON".toString()])||this.handleClick(a)};
_.Z.handleClick=function(){var a=this;this.data&&this.data.clickthroughEndpoint&&(_.PA(this.hostElement,"yt-navigate",{endpoint:this.data.clickthroughEndpoint}),this.data.onClickCommands&&this.data.onClickCommands.forEach(function(z){a.macroReplacementBehavior.sendServiceRequestAction([z])}),_.ZF(this.hostElement,"yt-companion-ad-clicked",["image-companion",
this.getLayoutId()]))};
_.Z.onLoad=function(){_.Ct(this.hostElement,"yt-refit-popups-action")};
_.eH.Object.defineProperties(Ah.prototype,{macros:{configurable:!0,enumerable:!0,get:function(){var a=_.DH("yt.www.ads.eventcache.getLastCompanionData");return a?(a=a())&&a.macros||{}:{}}},
interactionLoggingClientData:{configurable:!0,enumerable:!0,get:function(){var a=_.DH("yt.www.ads.eventcache.getLastCompanionData");return a?(a=a())&&a.interactionLoggingClientData:null}}});
Ah.prototype.onLoad=Ah.prototype.onLoad;Ah.prototype.onClick=Ah.prototype.onClick;Ah.prototype.dataChanged=Ah.prototype.dataChanged;_.L([_.Q(_.k.YtRendererBehavior),_.p("design:type",Object)],Ah.prototype,"rendererBehavior",void 0);_.L([_.Q(nxL.YtMacroReplacementBehavior),_.p("design:type",Object)],Ah.prototype,"macroReplacementBehavior",void 0);_.L([_.x(),_.p("design:type",Object)],Ah.prototype,"data",void 0);
_.L([_.x({reflectToAttribute:!0}),_.p("design:type",Object)],Ah.prototype,"buttonUpdate",void 0);_.L([_.x({reflectToAttribute:!0}),_.p("design:type",Object)],Ah.prototype,"hideLegacyBanner",void 0);_.L([_.x({reflectToAttribute:!0}),_.p("design:type",Object)],Ah.prototype,"adInfoButtonStyle",void 0);_.L([_.x({reflectToAttribute:!0}),_.p("design:type",Object)],Ah.prototype,"adInfoButtonType",void 0);_.L([_.S("data"),_.p("design:type",Object),_.p("design:paramtypes",[])],Ah.prototype,"macros",null);
_.L([_.S("data"),_.p("design:type",Object),_.p("design:paramtypes",[])],Ah.prototype,"interactionLoggingClientData",null);_.L([_.x(),_.p("design:type",String)],Ah.prototype,"clickThroughUrl",void 0);_.L([_.x(),_.p("design:type",_.VI)],Ah.prototype,"imageSrc",void 0);_.L([_.x(),_.p("design:type",Number)],Ah.prototype,"imageWidth",void 0);_.L([_.x(),_.p("design:type",Number)],Ah.prototype,"imageHeight",void 0);_.L([_.x(),_.p("design:type",Object)],Ah.prototype,"noDotAdBadge",void 0);
_.L([_.Fe("data"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],Ah.prototype,"dataChanged",null);_.L([_.gz("click"),_.p("design:type",Function),_.p("design:paramtypes",[Event]),_.p("design:returntype")],Ah.prototype,"onClick",null);_.L([_.gz("load"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],Ah.prototype,"onLoad",null);_.L([_.U({is:"ytd-image-companion-renderer",disableElementRegistration:!0})],Ah);
_.D(Ah,"ytd-image-companion-renderer",function(){if(kBG!==void 0)return kBG;var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-image-companion-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e\n<template is="dom-if" if="[[hideLegacyBanner]]" class="style-scope ytd-image-companion-renderer">\n  <div class="style-scope ytd-image-companion-renderer">\n    <yt-img-shadow id="banner" fit="" thumbnail="[[data.image.thumbnail]]" class="style-scope ytd-image-companion-renderer">\n    </yt-img-shadow>\n    <div id="block" class="style-scope ytd-image-companion-renderer">\n      <div id="text" class="style-scope ytd-image-companion-renderer">\n        <div id="desc" class="style-scope ytd-image-companion-renderer">\n          <div id="ad-badge-container" class="style-scope ytd-image-companion-renderer">\n            <ytd-badge-supported-renderer id="ad-badge" no-dot-ad-badge="[[noDotAdBadge]]" top-standalone-badge="[[data.adBadge]]" class="style-scope ytd-image-companion-renderer">\n            </ytd-badge-supported-renderer>\n          </div>\n        </div>\n      </div>\n      <ytd-ad-hover-text-button-renderer id="image-companion-ad-info-menu" button-style="[[adInfoButtonStyle]]" button-type="[[adInfoButtonType]]" data="[[data.adInfoRenderer.adHoverTextButtonRenderer]]" hidden="[[!data.adInfoRenderer.adHoverTextButtonRenderer]]" modern-update="[[buttonUpdate]]" class="style-scope ytd-image-companion-renderer">\n      </ytd-ad-hover-text-button-renderer>\n    </div>\n  </div>\n</template>\n\n\n<template is="dom-if" if="[[!hideLegacyBanner]]" class="style-scope ytd-image-companion-renderer">\n  <ytd-ad-hover-text-button-renderer id="image-companion-ad-info-button" data="[[data.adInfoRenderer.adHoverTextButtonRenderer]]" hidden="[[!data.adInfoRenderer.adHoverTextButtonRenderer]]" modern-update="[[buttonUpdate]]" class="style-scope ytd-image-companion-renderer">\n  </ytd-ad-hover-text-button-renderer>\n  <div class="style-scope ytd-image-companion-renderer">\n    <img height="[[imageHeight]]" src$="[[imageSrc]]" width="[[imageWidth]]" alt="" class="style-scope ytd-image-companion-renderer">\n  </div>\n</template>\n');
a.content.insertBefore(_.w().content.cloneNode(!0),a.content.firstChild);return kBG=a},{mode:_.Np("kevlar_poly_si_batch_j067")?1:2});var MTj;var sP=function(){return _.G.apply(this,arguments)||this};
_.b(sP,_.G);_.Z=sP.prototype;_.Z.dataChanged=function(){this.set("data.adBadge",sP.JSC$22720_DEFAULT_AD_BADGE_RENDERER);if(this.data){var a=this.getOnLayoutVisibleCallback();a&&a()}};
_.Z.getOnLayoutVisibleCallback=function(){var a=_.DH("yt.www.ads.eventcache.getLastCompanionData");return a?(a=a())&&a.onLayoutVisibleCallback:null};
_.Z.getLayoutId=function(){var a=_.DH("yt.www.ads.eventcache.getLastCompanionData");return a?(a=a())&&a.layoutId:null};
_.Z.onCompanionClicked=function(a){this.data&&(a.target!==this.shopTitle&&this.sendTrackingPings(this.data.clickTrackingEndpoints),_.ZF(this.hostElement,"yt-companion-ad-clicked",["shopping-companion",this.getLayoutId()]))};
_.Z.onShopTextTap=function(){if(this.data&&this.data.clickToAdvSiteEndpoint){var a=_.zI(),z=this.getLayoutId(),I=this.data.clickToAdvSiteEndpoint;a&&z&&_.K("h5_companion_enable_adcpn_macro_substitution_for_click_pings")?a.getPlayerPromise().then(function(J){(new _.Gq(J)).executeCommand(I,z)}):_.PA(this.hostElement,"yt-navigate",{endpoint:I})}};
_.Z.sendTrackingPings=function(a){if(a&&a.length!==0&&a[0].loggingUrls&&(a=a[0].loggingUrls.map(this.getBaseUrl)))for(var z=0;z<a.length;z++)_.lP(a[z])};
_.Z.getBaseUrl=function(a){return a.baseUrl||""};
_.eH.Object.defineProperties(sP.prototype,{interactionLoggingClientData:{configurable:!0,enumerable:!0,get:function(){var a=_.DH("yt.www.ads.eventcache.getLastCompanionData");return a?(a=a())&&a.interactionLoggingClientData:null}}});
sP.prototype.onCompanionClicked=sP.prototype.onCompanionClicked;sP.prototype.dataChanged=sP.prototype.dataChanged;sP.JSC$22720_DEFAULT_AD_BADGE_RENDERER={metadataBadgeRenderer:{label:_.AR("AD_BADGE_TEXT",void 0,"Ad"),style:"BADGE_STYLE_TYPE_AD"}};_.L([_.Q(_.k.YtRendererBehavior),_.p("design:type",Object)],sP.prototype,"ytRendererBehavior",void 0);_.L([_.x(),_.p("design:type",Object)],sP.prototype,"data",void 0);_.L([_.A3("#title"),_.p("design:type",HTMLElement)],sP.prototype,"shopTitle",void 0);
_.L([_.Fe("data.impressionEndpoints"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],sP.prototype,"dataChanged",null);_.L([_.S("data"),_.p("design:type",Object),_.p("design:paramtypes",[])],sP.prototype,"interactionLoggingClientData",null);_.L([_.gz("yt-navigate"),_.p("design:type",Function),_.p("design:paramtypes",[Event]),_.p("design:returntype")],sP.prototype,"onCompanionClicked",null);
_.L([_.U({is:"ytd-shopping-companion-renderer",disableElementRegistration:!0})],sP);
_.D(sP,"ytd-shopping-companion-renderer",function(){if(MTj!==void 0)return MTj;var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-shopping-companion-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<ytd-ad-hover-text-button-renderer id="shopping-companion-ad-info-button" data="[[data.adInfoRenderer.adHoverTextButtonRenderer]]" hidden="[[!data.adInfoRenderer.adHoverTextButtonRenderer]]" class="style-scope ytd-shopping-companion-renderer">\n</ytd-ad-hover-text-button-renderer>\n<div on-tap="onCompanionClicked" class="style-scope ytd-shopping-companion-renderer">\n  <div id="banner" class="style-scope ytd-shopping-companion-renderer">\n    <div id="ad-badge-container" class="style-scope ytd-shopping-companion-renderer">\n      <ytd-badge-supported-renderer id="ad-badge" large-font-ad-badge="true" top-standalone-badge="[[data.adBadge]]" class="style-scope ytd-shopping-companion-renderer">\n      </ytd-badge-supported-renderer>\n    </div>\n    <div id="title" on-tap="onShopTextTap" class="style-scope ytd-shopping-companion-renderer">\n      [[getSimpleString(data.shopText)]]\n    </div>\n  </div>\n  <yt-horizontal-list-renderer id="companion-shelf" data="[[data.itemList.horizontalListRenderer]]" class="style-scope ytd-shopping-companion-renderer">\n  </yt-horizontal-list-renderer>\n</div>\n');a.content.insertBefore(_.w().content.cloneNode(!0),
a.content.firstChild);return MTj=a},{mode:1});_.Jf(_.ec(function(a){var z=a.data;a=_.z$({visibilityCallback:function(J){var r,P=(r=z().interaction)==null?void 0:r.onFirstVisible;J&&P&&_.lN(P)},
showOption:_.PX});var I=_.wi(function(){return z().interaction},LXO);
_.iF(function(){var J,r;r=(r=_.DH("yt.www.ads.eventcache.getLastCompanionData"))?(r=r())&&r.onLayoutVisibleCallback:null;(J=r)==null||J()});
return _.B("banner-image-layout-view-model",{class:"ytwBannerImageLayoutViewModelHost","on:load":_.g4(function(J){_.Ct(J.currentTarget,"yt-refit-popups-action")}),
el:_.a5(a,I),"aria-label":function(){var J,r;return(J=z().interaction)==null?void 0:(r=J.accessibility)==null?void 0:r.label}},_.B("div",{class:"ytwBannerImageLayoutViewModelHostBannerImage"},_.B(_.V0,{data:function(){return z().adImage}},{adImageViewModel:function(J){return _.B(_.KA,{data:J.data,
targetHeight:80,customCommandResolver:LXO})}})),_.B("div",{class:"ytwBannerImageLayoutViewModelHostMetadata"},_.B("div",{class:"ytwBannerImageLayoutViewModelHostMetadataAdBadge"},_.B(_.V0,{data:function(){return z().adBadge}},{adBadgeViewModel:function(J){return _.B(_.BX,{data:J.data,
hasDot:!1,adRenderingContextType:function(){return"AD_RENDERING_CONTEXT_TYPE_WATCH_NEXT"}})}})),_.B("div",{class:"ytwBannerImageLayoutViewModelHostMetadataMenu"},_.B(_.V0,{data:function(){return z().menu}},{buttonViewModel:_.At}))))},"pk"),"banner-image-layout-view-model",{props:{data:_.zl}});_.Jf(_.ec(function(a){var z=a.data;a=_.z$({visibilityCallback:function(J){var r,P=(r=z().interaction)==null?void 0:r.onFirstVisible;J&&P&&_.lN(P)},
showOption:_.PX});var I=_.wi(function(){return z().interaction},ljG);
_.iF(function(){var J,r;r=(r=_.DH("yt.www.ads.eventcache.getLastCompanionData"))?(r=r())&&r.onLayoutVisibleCallback:null;(J=r)==null||J()});
return _.B("top-banner-image-text-icon-buttoned-layout-view-model",{class:"ytwTopBannerImageTextIconButtonedLayoutViewModelHost",el:_.a5(a,I)},_.B("div",{class:"ytwTopBannerImageTextIconButtonedLayoutViewModelHostBannerImage"},_.B(_.V0,{data:function(){return z().adImage}},{adImageViewModel:function(J){return _.B(_.KA,{data:J.data,
targetHeight:80,customCommandResolver:ljG})}})),_.B("div",{class:"ytwTopBannerImageTextIconButtonedLayoutViewModelHostMetadata"},_.B("div",{class:"ytwTopBannerImageTextIconButtonedLayoutViewModelHostMetadataAvatarLockup"},_.B(_.V0,{data:function(){return z().adAvatarLockup}},{adAvatarLockupViewModel:function(J){return _.B(RtG,{data:J.data,
customCommandResolver:ljG})}})),_.B(_.V0,{data:function(){return z().adButton}},{adButtonViewModel:function(J){return _.B(_.C0,{data:J.data,
customCommandResolver:ljG})}}),_.B("div",{class:"ytwTopBannerImageTextIconButtonedLayoutViewModelHostMetadataMenu"},_.B(_.V0,{data:function(){return z().menu}},{buttonViewModel:_.At}))))},"qk"),"top-banner-image-text-icon-buttoned-layout-view-model",{props:{data:_.zl}});var czj={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"},nz=function(){var a=_.G.apply(this,arguments)||this;a.updateCompanionDataJobId=0;a.contentVideoId=null;a.player=null;a.actionMap={"yt-companion-ad-clicked":"handleCompanionAdClicked"};
return a};
_.b(nz,_.G);_.Z=nz.prototype;_.Z.configureRendererStamper=function(){return{oneofRenderer:{id:"companion",mapping:czj}}};
_.Z.attached=function(){var a=this,z=_.zI();z&&z.getPlayerPromise().then(function(I){a.getCachedDataAndListen(I)})};
_.Z.detached=function(){this.player&&(this.ytPlayerListenerBehavior.unlistenFromPlayerEvent(this.player,"updateKevlarOrC3Companion",this.receiveCompanionData),this.player=null)};
_.Z.updateRendererStamper=function(){var a={};if(this.data)for(var z in czj)if(this.data[z]){a[z]=this.data[z];break}if(this.oneofRenderer!=void 0||Object.keys(a).length)this.oneofRenderer=a};
_.Z.getCachedDataAndListen=function(a){var z=this.retrieveCachedCompanionData();z&&Object.keys(z).length&&this.receiveCompanionData(z);this.ytPlayerListenerBehavior.listenToPlayerEvent(a,"updateKevlarOrC3Companion",this.receiveCompanionData);this.player=a};
_.Z.retrieveCachedCompanionData=function(){return _.IE.yt&&_.IE.yt.www&&_.IE.yt.www.ads&&_.IE.yt.www.ads.eventcache&&_.IE.yt.www.ads.eventcache.getLastCompanionData?_.IE.yt.www.ads.eventcache.getLastCompanionData():null};
_.Z.receiveCompanionData=function(a){a&&Object.keys(a).length?(this.contentVideoId=a.contentVideoId,this.setCompanionData(a)):this.setCompanionData(a)};
_.Z.setCompanionData=function(a){this.cancelPendingCompanionAdJobs();if(a){this.updateCompanionDataJobId=0;for(var z in czj)czj.hasOwnProperty(z)&&(this.data[z]=void 0);a.shoppingCompanionCarouselRenderer?this.set("data.shoppingCompanionCarouselRenderer",a.shoppingCompanionCarouselRenderer):a.imageCompanionAdRenderer?this.set("data.imageCompanionAdRenderer",a.imageCompanionAdRenderer):a.actionCompanionAdRenderer?(this.set("data.actionCompanionAdRenderer",a.actionCompanionAdRenderer),_.Ct(this.hostElement,
"yt-hide-unlimited-offer-module"),_.Ct(this.hostElement,"yt-hide-tvfilm-offer-module")):a.bannerImageLayoutViewModel?this.set("data.bannerImageLayoutViewModel",a.bannerImageLayoutViewModel):a.topBannerImageTextIconButtonedLayoutViewModel&&this.set("data.topBannerImageTextIconButtonedLayoutViewModel",a.topBannerImageTextIconButtonedLayoutViewModel);this.updateRendererStamper()}};
_.Z.dataChanged=function(){var a=this,z=_.zI();z?z.getPlayerPromise().then(function(I){a.contentVideoId&&I.getVideoUrl().includes("v="+a.contentVideoId)||(a.cancelPendingCompanionAdJobs(),a.updateRendererStamper())}):_.RL(Error("Do"))};
_.Z.cancelPendingCompanionAdJobs=function(){this.updateCompanionDataJobId&&(_.GW.cancelJob(this.updateCompanionDataJobId),this.updateCompanionDataJobId=0)};
_.Z.handleCompanionAdClicked=function(a,z){this.player.onAdUxClicked(a,z);this.player.pauseVideo()};
nz.prototype.dataChanged=nz.prototype.dataChanged;_.L([_.Q(_.Ms.YtComponentBehavior),_.p("design:type",Object)],nz.prototype,"ytComponentBehavior",void 0);_.L([_.Q(_.Hc.YtActionHandlerBehavior),_.p("design:type",Object)],nz.prototype,"ytActionHandlerBehavior",void 0);_.L([_.Q(_.k.YtRendererBehavior),_.p("design:type",Object)],nz.prototype,"ytRendererBehavior",void 0);_.L([_.Q(_.u4.YtRendererstamperBehavior),_.p("design:type",Object)],nz.prototype,"ytRendererstamperBehavior",void 0);
_.L([_.Q(_.jz.YtPlayerListenerBehavior),_.p("design:type",_.z4)],nz.prototype,"ytPlayerListenerBehavior",void 0);_.L([_.x(),_.p("design:type",Object)],nz.prototype,"data",void 0);_.L([_.x(),_.p("design:type",Object)],nz.prototype,"oneofRenderer",void 0);_.L([_.Fe("data"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],nz.prototype,"dataChanged",null);_.L([_.U({is:"ytd-companion-slot-renderer",disableElementRegistration:!0})],nz);
_.D(nz,"ytd-companion-slot-renderer",function(){if(yzN!==void 0)return yzN;var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-companion-slot-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="companion" class="style-scope ytd-companion-slot-renderer"></div>\n');a.content.insertBefore(_.w().content.cloneNode(!0),a.content.firstChild);return yzN=a},{mode:_.Np("kevlar_poly_si_batch_j067")?
1:2});var YhL;var Kz=function(){return _.G.apply(this,arguments)||this};
_.b(Kz,_.G);Kz.prototype.dataChanged=function(){this.companionSlotData={hack:!0}};
Kz.prototype.dataChanged=Kz.prototype.dataChanged;_.L([_.Q(_.k.YtRendererBehavior),_.p("design:type",Object)],Kz.prototype,"ytRendererBehavior",void 0);_.L([_.x(),_.p("design:type",Object)],Kz.prototype,"data",void 0);_.L([_.x(),_.p("design:type",Object)],Kz.prototype,"companionSlotData",void 0);_.L([_.Fe("data"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],Kz.prototype,"dataChanged",null);
_.L([_.U({disableElementRegistration:!0,is:"ytd-player-legacy-desktop-watch-ads-renderer"})],Kz);
_.D(Kz,"ytd-player-legacy-desktop-watch-ads-renderer",function(){if(YhL!==void 0)return YhL;var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-player-legacy-desktop-watch-ads-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<ytd-companion-legal-text-renderer data="[[data]]" disable-upgrade$="[[!data.companionLegalText]]" hidden="[[!data.companionLegalText]]" class="style-scope ytd-player-legacy-desktop-watch-ads-renderer">\n</ytd-companion-legal-text-renderer>\n<ytd-companion-slot-renderer data="[[companionSlotData]]" disable-upgrade$="[[!companionSlotData]]" hidden="[[!companionSlotData]]" class="style-scope ytd-player-legacy-desktop-watch-ads-renderer">\n</ytd-companion-slot-renderer>\n');a.content.insertBefore(_.w().content.cloneNode(!0),
a.content.firstChild);return YhL=a},{mode:1});var qh9;var F5=function(){var a=_.G.apply(this,arguments)||this;a.skinnyMode=!1;a.COMPACT_EVENT_COUNT=4;a.onShelfToggleButtonTap=function(){a.logTap(a.data);a.showingMore=!a.showingMore};
a.onShelfToggleButtonFocus=function(){a.showingMore||(a.logTap(a.data),a.showingMore=!0,_.Yv(a,function(){var z=a.COMPACT_EVENT_COUNT-1,I;(I=_.PK(a.hostElement).querySelector("#event-"+z))==null||I.focus()}))};
return a};
_.b(F5,_.G);_.Z=F5.prototype;_.Z.attached=function(){this.shelfToggleButton.addEventListener("tap",this.onShelfToggleButtonTap);this.shelfToggleButton.addEventListener("focus",this.onShelfToggleButtonFocus);this.addInfoTooltipListeners()};
_.Z.detached=function(){this.shelfToggleButton.removeEventListener("tap",this.onShelfToggleButtonTap);this.shelfToggleButton.removeEventListener("focus",this.onShelfToggleButtonFocus);this.removeInfoTooltipListeners()};
_.Z.addInfoTooltipListeners=function(){this.infoContainer.addEventListener("tap",_.BK(this.infoTooltip,this.infoTooltip.show));this.infoContainer.addEventListener("mouseenter",_.BK(this.infoTooltip,this.infoTooltip.show));this.infoContainer.addEventListener("focus",_.BK(this.infoTooltip,this.infoTooltip.show));this.infoContainer.addEventListener("mouseleave",_.BK(this.infoTooltip,this.infoTooltip.hide));this.infoContainer.addEventListener("blur",_.BK(this.infoTooltip,this.infoTooltip.hide))};
_.Z.removeInfoTooltipListeners=function(){this.infoContainer.removeEventListener("tap",_.BK(this.infoTooltip,this.infoTooltip.show));this.infoContainer.removeEventListener("mouseenter",_.BK(this.infoTooltip,this.infoTooltip.show));this.infoContainer.removeEventListener("focus",_.BK(this.infoTooltip,this.infoTooltip.show));this.infoContainer.removeEventListener("mouseleave",_.BK(this.infoTooltip,this.infoTooltip.hide));this.infoContainer.removeEventListener("blur",_.BK(this.infoTooltip,this.infoTooltip.hide))};
_.Z.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)};
_.Z.onShowingMoreChanged=function(){var a;this.showingMoreChanged((a=this.showingMore)!=null?a:!1)};
_.Z.showingMoreChanged=function(a){var z=this.get("data.events")||[];this.set("restEvents",z.slice(1,a?z.length:this.COMPACT_EVENT_COUNT).map(function(I){return I.ticketEventRenderer}));
z.slice(0,a?z.length:this.COMPACT_EVENT_COUNT).forEach(function(I){var J=_.TX();I=I.ticketEventRenderer.trackingParams;_.XZ()&&J&&I&&(I=_.VX(I),J&&_.pt(J,I))});
this.shelfTogglerLabelText=this.showingMore?this.data.showLess||"":this.data.showMore||"";this.shelfTogglerIcon=this.showingMore?"yt-icons:expand-less":"yt-icons:expand-more"};
_.Z.computeAriaLabel=function(a){return a.subtitle1+", "+a.subtitle2};
_.Z.logTap=function(a){_.XZ()&&this.ytRendererBehavior.logExplicitClick(a)};
_.Z.isKeyboardAction=function(a){return this.get("detail.x",a)===0&&this.get("detail.y",a)===0};
_.Z.onFirstEventTap=function(a){a.target&&this.handleTap(a.target,this.firstEvent,this.isKeyboardAction(a))};
_.Z.onTicketLinkTap=function(a){a.target&&this.handleTap(a.target,a.model.item,this.isKeyboardAction(a))};
_.Z.handleTap=function(a,z,I){if(z.buttonCommand)if(z.hasMultipleOffers)Object.assign(_.H(z.buttonCommand,_.G7),{properties:{source:I?"keyboard":"tap"}}),this.logTap(z),this.popupPositionTarget=a,_.tR(this.hostElement,[z.buttonCommand],this.hostElement);else{var J;if((J=_.H(z.buttonCommand,_.pv))==null?0:J.url)this.logTap(z),_.wO(window,_.H(z.buttonCommand,_.pv).url)}};
F5.prototype.onShowingMoreChanged=F5.prototype.onShowingMoreChanged;F5.prototype.dataChanged=F5.prototype.dataChanged;_.L([_.Q(_.k.YtRendererBehavior),_.p("design:type",Object)],F5.prototype,"ytRendererBehavior",void 0);_.L([_.x(),_.p("design:type",Object)],F5.prototype,"data",void 0);_.L([_.x(),_.p("design:type",Object)],F5.prototype,"firstEvent",void 0);_.L([_.x(),_.p("design:type",Object)],F5.prototype,"restEvents",void 0);_.L([_.x(),_.p("design:type",String)],F5.prototype,"imageUrl",void 0);
_.L([_.x({reflectToAttribute:!0}),_.p("design:type",Boolean)],F5.prototype,"showingMore",void 0);_.L([_.x({reflectToAttribute:!0}),_.p("design:type",Boolean)],F5.prototype,"canShowMore",void 0);_.L([_.x({reflectToAttribute:!0}),_.p("design:type",Object)],F5.prototype,"skinnyMode",void 0);_.L([_.x(),_.p("design:type",HTMLElement)],F5.prototype,"popupPositionTarget",void 0);_.L([_.A3("#banner-info-tooltip"),_.p("design:type",Object)],F5.prototype,"infoTooltip",void 0);
_.L([_.A3("#info-container"),_.p("design:type",HTMLElement)],F5.prototype,"infoContainer",void 0);_.L([_.A3("#shelf-toggler"),_.p("design:type",HTMLElement)],F5.prototype,"shelfToggleButton",void 0);_.L([_.A3("#separator"),_.p("design:type",HTMLDivElement)],F5.prototype,"separator",void 0);_.L([_.x(),_.p("design:type",String)],F5.prototype,"shelfTogglerLabelText",void 0);_.L([_.x(),_.p("design:type",String)],F5.prototype,"shelfTogglerIcon",void 0);
_.L([_.Fe("data"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],F5.prototype,"dataChanged",null);_.L([_.Fe("showingMore"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],F5.prototype,"onShowingMoreChanged",null);_.L([_.U({disableElementRegistration:!0,is:"ytd-ticket-shelf-renderer"})],F5);
_.D(F5,"ytd-ticket-shelf-renderer",function(){if(qh9!==void 0)return qh9;var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-ticket-shelf-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="head" class="style-scope ytd-ticket-shelf-renderer">\n  <h1 id="title" role="heading" aria-label$="[[firstEvent.title]]" class="style-scope ytd-ticket-shelf-renderer">[[firstEvent.title]]</h1>\n\n  <a id="info-container" href="javascript:" role="complementary" aria-label$="[[data.informationText]]" class="style-scope ytd-ticket-shelf-renderer">\n    <yt-icon id="info-icon" icon="yt-icons:info" class="style-scope ytd-ticket-shelf-renderer"></yt-icon>\n  </a>\n  \n  <tp-yt-paper-tooltip id="banner-info-tooltip" for="info-container" manual-mode="" position="bottom" class="style-scope ytd-ticket-shelf-renderer">\n    <div class="style-scope ytd-ticket-shelf-renderer">[[data.informationText]]</div>\n  </tp-yt-paper-tooltip>\n</div>\n<div id="body" class="style-scope ytd-ticket-shelf-renderer">\n  <div id="primary-event" class="style-scope ytd-ticket-shelf-renderer">\n    <template is="dom-if" if="[[data.useCalendarAvatar]]" class="style-scope ytd-ticket-shelf-renderer">\n      <a id="calendar-avatar" href="javascript:void(0)" on-tap="onFirstEventTap" class="style-scope ytd-ticket-shelf-renderer">\n        <div id="calendar-avatar-month" class="style-scope ytd-ticket-shelf-renderer">\n          <div id="calendar-avatar-month-text" class="style-scope ytd-ticket-shelf-renderer">[[firstEvent.timeMonth]]</div>\n        </div>\n        <div id="calendar-avatar-day" class="style-scope ytd-ticket-shelf-renderer">\n          <div id="calendar-avatar-day-text" class="style-scope ytd-ticket-shelf-renderer">[[firstEvent.timeDay]]</div>\n        </div>\n      </a>\n    </template>\n\n    <template is="dom-if" if="[[!data.useCalendarAvatar]]" class="style-scope ytd-ticket-shelf-renderer">\n      <div id="thumbnail" class="style-scope ytd-ticket-shelf-renderer">\n        <yt-img-shadow id="thumbnail-img" fit="" thumbnail="[[firstEvent.thumbnail]]" class="style-scope ytd-ticket-shelf-renderer">\n        </yt-img-shadow>\n      </div>\n    </template>\n\n    <div id="meta" class="style-scope ytd-ticket-shelf-renderer">\n      <div id="meta-info" class="style-scope ytd-ticket-shelf-renderer">\n        <a id="nearest-with-location" href="javascript:void(0)" on-tap="onFirstEventTap" class="style-scope ytd-ticket-shelf-renderer">[[data.title]]</a>\n        <div id="subtitle1" class="style-scope ytd-ticket-shelf-renderer">[[firstEvent.subtitle1]]</div>\n        <template is="dom-if" if="[[firstEvent.hasMultipleOffers]]" class="style-scope ytd-ticket-shelf-renderer">\n          <div id="subtitle2" class="style-scope ytd-ticket-shelf-renderer">\n            [[firstEvent.subtitle2]]\n          </div>\n        </template>\n        <template is="dom-if" if="[[!firstEvent.hasMultipleOffers]]" class="style-scope ytd-ticket-shelf-renderer">\n          <a class="vendor style-scope ytd-ticket-shelf-renderer" target="_blank" on-tap="onFirstEventTap" href$="[[firstEvent.buttonCommand.urlEndpoint.url]]">\n            [[firstEvent.linkText]]\n          </a>\n        </template>\n      </div>\n      <a id="view-tickets-link" href="javascript:void(0)" on-tap="onFirstEventTap" class="style-scope ytd-ticket-shelf-renderer">\n        [[firstEvent.buttonText]]\n        <template is="dom-if" if="[[!firstEvent.hasMultipleOffers]]" class="style-scope ytd-ticket-shelf-renderer">\n          <yt-icon class="launch-icon style-scope ytd-ticket-shelf-renderer" icon="yt-icons:launch"></yt-icon>\n        </template>\n      </a>\n    </div>\n  </div>\n\n  <div id="separator" class="style-scope ytd-ticket-shelf-renderer"></div>\n\n  <div id="rest-events" class="style-scope ytd-ticket-shelf-renderer">\n    <div id="table" class="style-scope ytd-ticket-shelf-renderer">\n      <table cellspacing="0" cellpadding="0" class="style-scope ytd-ticket-shelf-renderer">\n        <template is="dom-repeat" items="[[restEvents]]" as="item" class="style-scope ytd-ticket-shelf-renderer">\n          <tr on-tap="onTicketLinkTap" class="style-scope ytd-ticket-shelf-renderer">\n            <td class="style-scope ytd-ticket-shelf-renderer">\n              <div class="when-date-column style-scope ytd-ticket-shelf-renderer">[[item.timeDate]]</div>\n            </td>\n            <td class="style-scope ytd-ticket-shelf-renderer">\n              <div class="when-weekday-column style-scope ytd-ticket-shelf-renderer">\n                <div class="style-scope ytd-ticket-shelf-renderer">\n                  [[item.timeWeekday]]<span id="time" class="style-scope ytd-ticket-shelf-renderer">[[item.timeTime]]</span>\n                </div>\n              </div>\n            </td>\n            <td class="where-column-td style-scope ytd-ticket-shelf-renderer">\n              <div class="where-column style-scope ytd-ticket-shelf-renderer">\n                <div class="venue-vendor-container style-scope ytd-ticket-shelf-renderer">\n                  <div class="venue style-scope ytd-ticket-shelf-renderer">[[item.subtitle2]]</div>\n                  <b class="dot style-scope ytd-ticket-shelf-renderer">\u00b7</b>\n                  <a class="vendor style-scope ytd-ticket-shelf-renderer" href="javascript:void(0)" id$="event-[[index]]">\n                    [[item.linkText]]\n                    <template is="dom-if" if="[[!item.hasMultipleOffers]]" class="style-scope ytd-ticket-shelf-renderer">\n                      <yt-icon class="launch-icon style-scope ytd-ticket-shelf-renderer" icon="yt-icons:launch"></yt-icon>\n                    </template>\n                  </a>\n                </div>\n              </div>\n            </td>\n          </tr>\n        </template>\n      </table>\n      <yt-icon-button id="shelf-toggler" hidden="[[!canShowMore]]" label="[[shelfTogglerLabelText]]" class="style-scope ytd-ticket-shelf-renderer">\n        <yt-icon icon="[[shelfTogglerIcon]]" class="style-scope ytd-ticket-shelf-renderer"></yt-icon>\n      </yt-icon-button>\n    </div>\n  </div>\n</div>\n');a.content.insertBefore(_.w().content.cloneNode(!0),
a.content.firstChild);return qh9=a},{mode:1});var etP;var aJa;var Hj=function(){return _.G.apply(this,arguments)||this};
_.b(Hj,_.G);_.L([_.Q(_.k.YtRendererBehavior),_.p("design:type",Object)],Hj.prototype,"ytRendererBehavior",void 0);_.L([_.x(),_.p("design:type",Object)],Hj.prototype,"data",void 0);_.L([_.U({disableElementRegistration:!0,is:"ytd-comments-entry-point-message-renderer"})],Hj);
_.D(Hj,"ytd-comments-entry-point-message-renderer",function(){if(aJa!==void 0)return aJa;var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-comments-entry-point-message-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-formatted-string id="message" text="[[data.messageText]]" class="style-scope ytd-comments-entry-point-message-renderer"></yt-formatted-string>\n');a.content.insertBefore(_.w().content.cloneNode(!0),
a.content.firstChild);return aJa=a},{mode:1});var jfa;var b2=function(){return _.G.apply(this,arguments)||this};
_.b(b2,_.G);_.eH.Object.defineProperties(b2.prototype,{hasAvatar:{configurable:!0,enumerable:!0,get:function(){var a;return!((a=this.data)==null||!a.teaserAvatar)}}});
_.L([_.Q(_.k.YtRendererBehavior),_.p("design:type",Object)],b2.prototype,"ytRendererBehavior",void 0);_.L([_.x(),_.p("design:type",Object)],b2.prototype,"data",void 0);_.L([_.S("data"),_.p("design:type",Boolean),_.p("design:paramtypes",[])],b2.prototype,"hasAvatar",null);_.L([_.U({disableElementRegistration:!0,is:"ytd-comments-entry-point-teaser-renderer"})],b2);
_.D(b2,"ytd-comments-entry-point-teaser-renderer",function(){if(jfa!==void 0)return jfa;var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-comments-entry-point-teaser-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="teaser" class="style-scope ytd-comments-entry-point-teaser-renderer"><yt-img-shadow class="avatar style-scope ytd-comments-entry-point-teaser-renderer" height="24" hidden="[[!hasAvatar]]" thumbnail="[[data.teaserAvatar]]" width="24"></yt-img-shadow><div id="teaser-text" class="style-scope ytd-comments-entry-point-teaser-renderer">[[getSimpleString(data.teaserContent)]]</div></div>');a.content.insertBefore(_.w().content.cloneNode(!0),
a.content.firstChild);return jfa=a},{mode:1});var z27;var hh=function(){return _.G.apply(this,arguments)||this};
_.b(hh,_.G);_.L([_.Q(_.k.YtRendererBehavior),_.p("design:type",Object)],hh.prototype,"ytRendererBehavior",void 0);_.L([_.x(),_.p("design:type",Object)],hh.prototype,"data",void 0);_.L([_.U({disableElementRegistration:!0,is:"ytd-comments-simplebox-renderer"})],hh);
_.D(hh,"ytd-comments-simplebox-renderer",function(){if(z27!==void 0)return z27;var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-comments-simplebox-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="simplebox" class="style-scope ytd-comments-simplebox-renderer"><yt-img-shadow class="avatar style-scope ytd-comments-simplebox-renderer" height="24" thumbnail="[[data.simpleboxAvatar]]" width="24"></yt-img-shadow><div id="simplebox-input" class="style-scope ytd-comments-simplebox-renderer">[[getSimpleString(data.simpleboxPlaceholder)]]</div></div>');a.content.insertBefore(_.w().content.cloneNode(!0),
a.content.firstChild);return z27=a},{mode:1});var Ve=function(){var a=_.G.apply(this,arguments)||this;a.fullHeight=!_.K("comment_teaser_full_height_kill_switch")&&_.K("kevlar_watch_grid");return a};
_.b(Ve,_.G);Ve.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"}}}};
Ve.prototype.attached=function(){this.hostElement.setAttribute("role","button");this.hostElement.setAttribute("tabindex","0")};
Ve.prototype.onTap=function(){var a=this.tapCommand;a&&(this.data&&this.ytRendererBehavior.logExplicitClick(this.data),this.ytComponentBehavior.resolveCommand(a))};
Ve.prototype.onKeyUp=function(a){if(a.keyCode===13)this.onTap()};
_.eH.Object.defineProperties(Ve.prototype,{tapCommand:{configurable:!0,enumerable:!0,get:function(){var a;if((a=this.data)==null?0:a.onTap)return this.data.onTap;var z,I;if(((z=this.data)==null?0:z.teaserContent)||((I=this.data)==null?0:I.simpleboxPlaceholder))return{signalAction:{signal:"SCROLL_TO_COMMENTS"}}}},
simpleboxPlaceholder:{configurable:!0,enumerable:!0,get:function(){var a;return(a=this.data)==null?void 0:a.simpleboxPlaceholder}},
hasSimpleboxPlaceholder:{configurable:!0,enumerable:!0,get:function(){return!!this.simpleboxPlaceholder}},
simpleboxAvatar:{configurable:!0,enumerable:!0,get:function(){var a;return(a=this.data)==null?void 0:a.simpleboxAvatar}},
teaserContent:{configurable:!0,enumerable:!0,get:function(){var a;return(a=this.data)==null?void 0:a.teaserContent}},
hasTeaserContent:{configurable:!0,enumerable:!0,get:function(){return!!this.teaserContent}},
teaserAvatar:{configurable:!0,enumerable:!0,get:function(){var a;return(a=this.data)==null?void 0:a.teaserAvatar}},
hasTeaserAvatar:{configurable:!0,enumerable:!0,get:function(){return!!this.teaserAvatar}},
messageText:{configurable:!0,enumerable:!0,get:function(){var a;return(a=this.data)==null?void 0:a.messageText}},
contentRenderer:{configurable:!0,enumerable:!0,get:function(){var a;return(a=this.data)==null?void 0:a.contentRenderer}},
hasContents:{configurable:!0,enumerable:!0,get:function(){var a;return(a=this.data)!=null&&a.contents?this.data.contents.length>0:!1}},
hasContentRenderer:{configurable:!0,enumerable:!0,get:function(){return!!this.contentRenderer}}});
Ve.prototype.onKeyUp=Ve.prototype.onKeyUp;Ve.prototype.onTap=Ve.prototype.onTap;_.L([_.Q(_.u4.YtRendererstamperBehavior),_.p("design:type",Object)],Ve.prototype,"ytRendererstamperBehavior",void 0);_.L([_.Q(_.k.YtRendererBehavior),_.p("design:type",Object)],Ve.prototype,"ytRendererBehavior",void 0);_.L([_.Q(_.Ms.YtComponentBehavior),_.p("design:type",Object)],Ve.prototype,"ytComponentBehavior",void 0);_.L([_.x(),_.p("design:type",Object)],Ve.prototype,"data",void 0);
_.L([_.x({reflectToAttribute:!0}),_.p("design:type",Object)],Ve.prototype,"fullHeight",void 0);_.L([_.S("data"),_.p("design:type",Object),_.p("design:paramtypes",[])],Ve.prototype,"tapCommand",null);_.L([_.S("data"),_.p("design:type",Object),_.p("design:paramtypes",[])],Ve.prototype,"simpleboxPlaceholder",null);_.L([_.S("data"),_.p("design:type",Boolean),_.p("design:paramtypes",[])],Ve.prototype,"hasSimpleboxPlaceholder",null);
_.L([_.S("data"),_.p("design:type",Object),_.p("design:paramtypes",[])],Ve.prototype,"simpleboxAvatar",null);_.L([_.S("data"),_.p("design:type",Object),_.p("design:paramtypes",[])],Ve.prototype,"teaserContent",null);_.L([_.S("data"),_.p("design:type",Boolean),_.p("design:paramtypes",[])],Ve.prototype,"hasTeaserContent",null);_.L([_.S("data"),_.p("design:type",Object),_.p("design:paramtypes",[])],Ve.prototype,"teaserAvatar",null);
_.L([_.S("data"),_.p("design:type",Boolean),_.p("design:paramtypes",[])],Ve.prototype,"hasTeaserAvatar",null);_.L([_.S("data"),_.p("design:type",Object),_.p("design:paramtypes",[])],Ve.prototype,"messageText",null);_.L([_.S("data"),_.p("design:type",Object),_.p("design:paramtypes",[])],Ve.prototype,"contentRenderer",null);_.L([_.S("data"),_.x({reflectToAttribute:!0}),_.p("design:type",Boolean),_.p("design:paramtypes",[])],Ve.prototype,"hasContents",null);
_.L([_.S("data"),_.x({reflectToAttribute:!0}),_.p("design:type",Boolean),_.p("design:paramtypes",[])],Ve.prototype,"hasContentRenderer",null);_.L([_.gz("click"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],Ve.prototype,"onTap",null);_.L([_.gz("keypress"),_.p("design:type",Function),_.p("design:paramtypes",[_.ss]),_.p("design:returntype")],Ve.prototype,"onKeyUp",null);_.L([_.U({disableElementRegistration:!0,is:"ytd-comments-entry-point-header-renderer"})],Ve);
_.D(Ve,"ytd-comments-entry-point-header-renderer",function(){if(etP!==void 0)return etP;var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-comments-entry-point-header-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-comments-entry-point-header-renderer"><div id="title" class="style-scope ytd-comments-entry-point-header-renderer">[[getSimpleString(data.headerText)]]</div><div id="count" class="style-scope ytd-comments-entry-point-header-renderer">[[getSimpleString(data.commentCount)]]</div></div><div id="content" class="style-scope ytd-comments-entry-point-header-renderer"><div id="simplebox" hidden="[[!hasSimpleboxPlaceholder]]" class="style-scope ytd-comments-entry-point-header-renderer"><yt-img-shadow class="avatar style-scope ytd-comments-entry-point-header-renderer" height="24" thumbnail="[[simpleboxAvatar]]" width="24"></yt-img-shadow><div id="simplebox-input" class="style-scope ytd-comments-entry-point-header-renderer">[[getSimpleString(simpleboxPlaceholder)]]</div></div><div id="teaser" hidden="[[!hasTeaserContent]]" class="style-scope ytd-comments-entry-point-header-renderer"><yt-img-shadow class="avatar style-scope ytd-comments-entry-point-header-renderer" height="24" hidden="[[!hasTeaserAvatar]]" thumbnail="[[teaserAvatar]]" width="24"></yt-img-shadow><div id="teaser-text" class="style-scope ytd-comments-entry-point-header-renderer">[[getSimpleString(teaserContent)]]</div></div><yt-formatted-string id="message" text="[[messageText]]" class="style-scope ytd-comments-entry-point-header-renderer"></yt-formatted-string><div id="content-renderer" hidden="[[!hasContentRenderer]]" class="style-scope ytd-comments-entry-point-header-renderer"></div><div id="contents" class="style-scope ytd-comments-entry-point-header-renderer"></div></div>');
a.content.insertBefore(_.w().content.cloneNode(!0),a.content.firstChild);return etP=a},{mode:1});var IJu;_.K("web_enable_sink_animated_rolling_character_and_number")?_.Jf(_.QCE,"yt-animated-rolling-number",{props:{numberText:_.zl,numberValue:_.zl,heightPx:_.zl,fontSizeMultiplier:_.zl,shouldAnimate:_.zl,forceRollUp:_.zl}}):_.EW(_.VRi,"yt-animated-rolling-number",{propNames:["numberText","numberValue","heightPx","shouldAnimate","forceRollUp"]});var J7L=Number(getComputedStyle(document.documentElement).fontSize.replace("px","")),r7G={numberText:"",heightPx:2*J7L,shouldAnimate:!1},Qe=function(){var a=_.G.apply(this,arguments)||this;a.usingAnimatedComponents=!0;a.wasDetailed=!1;a.JSC$22757_browserSupportsAnimation=_.K("web_supports_animations_api");a.actionMap={"yt-update-viewership-action":"onYtUpdateViewershipAction","yt-update-date-text-action":"onYtUpdateDateTextAction"};a.detailed=!1;a.shouldAnimate=!1;a.viewCountProps=r7G;a.dateTextProps=
r7G;a.metadataBadgesInDescription=_.K("web_metadata_badges_in_description");return a};
_.b(Qe,_.G);_.Z=Qe.prototype;_.Z.resetAnimationState=function(){this.shouldAnimate=!1};
_.Z.updateDynamicMetadata=function(){if(this.JSC$22757_browserSupportsAnimation){if(!this.detailed){var a,z,I,J;var r=(a=this.videoPrimaryInfoRenderer)==null?void 0:(z=a.viewCount)==null?void 0:(I=z.videoViewCountRenderer)==null?void 0:(J=I.extraShortViewCount)==null?void 0:J.simpleText;var P,N,u,E;var O=(P=this.videoPrimaryInfoRenderer)==null?void 0:(N=P.viewCount)==null?void 0:(u=N.videoViewCountRenderer)==null?void 0:(E=u.shortViewCount)==null?void 0:E.simpleText}if(!O){var f,A,n,F;r=(f=this.videoPrimaryInfoRenderer)==
null?void 0:(A=f.viewCount)==null?void 0:(n=A.videoViewCountRenderer)==null?void 0:(F=n.unlabeledViewCountValue)==null?void 0:F.simpleText;var h,v,d,W;O=(h=this.videoPrimaryInfoRenderer)==null?void 0:(v=h.viewCount)==null?void 0:(d=v.videoViewCountRenderer)==null?void 0:(W=d.viewCount)==null?void 0:W.simpleText}var l,q,m;a=Number((l=this.videoPrimaryInfoRenderer)==null?void 0:(q=l.viewCount)==null?void 0:(m=q.videoViewCountRenderer)==null?void 0:m.originalViewCount);var M,y;l=(M=this.videoPrimaryInfoRenderer)==
null?void 0:(y=M.relativeDateText)==null?void 0:y.simpleText;var e;M=!((e=this.videoPrimaryInfoRenderer)==null||!e.relativeDateText);if(r&&O&&a&&(l||!M)){this.wasDetailed!==this.detailed&&(this.shouldAnimate=!1);this.wasDetailed=this.detailed;e=O.split(new RegExp("("+r+")"));r=MIj(e[0]);var Bp;O={numberText:(Bp=e[1])!=null?Bp:"",numberValue:a,heightPx:2*J7L,shouldAnimate:this.shouldAnimate&&!!this.viewCountProps.numberText};var Em;Bp=((Em=e[2])!=null?Em:"")+"  ";this.setViewCount(O,r,MIj(Bp));if(!this.detailed&&
M){r=l.split(/(\d+)/);Em=MIj(r[0]);var nG;Bp={numberText:(nG=r[1])!=null?nG:"",heightPx:2*J7L,shouldAnimate:this.shouldAnimate&&!!this.dateTextProps.numberText};var bG;nG=((bG=r[2])!=null?bG:"")+"  ";this.setDateText(Bp,Em,MIj(nG))}else this.setDateText();this.usingAnimatedComponents=!0;this.shouldAnimate=!1}else this.usingAnimatedComponents=!1,this.setViewCount(),this.setDateText()}else this.usingAnimatedComponents=!1};
_.Z.setViewCount=function(a,z,I){_.cd(z)!==_.cd(this.viewCountPreNumberText)&&(this.viewCountPreNumberText=z);this.viewCountProps.numberText!==(a==null?void 0:a.numberText)&&(this.viewCountProps=a||r7G);_.cd(I)!==_.cd(this.viewCountPostNumberText)&&(this.viewCountPostNumberText=I)};
_.Z.setDateText=function(a,z,I){_.cd(z)!==_.cd(this.dateTextPreNumberText)&&(this.dateTextPreNumberText=z);this.dateTextProps.numberText!==(a==null?void 0:a.numberText)&&(this.dateTextProps=a||r7G);_.cd(I)!==_.cd(this.dateTextPostNumberText)&&(this.dateTextPostNumberText=I)};
_.Z.onYtUpdateViewershipAction=function(a){this.videoPrimaryInfoRenderer&&(_.H(a,qGu).isEmpty?this.set("videoPrimaryInfoRenderer.viewCount",null):_.H(a,qGu).viewCount&&(this.shouldAnimate=!0,this.set("videoPrimaryInfoRenderer.viewCount",_.H(a,qGu).viewCount)))};
_.Z.onYtUpdateDateTextAction=function(a){if(this.videoPrimaryInfoRenderer){a=_.H(a,_.ceN).dateText;this.shouldAnimate=!0;var z;((z=this.videoPrimaryInfoRenderer)==null?0:z.relativeDateText)?this.set("videoPrimaryInfoRenderer.relativeDateText",a):this.set("videoPrimaryInfoRenderer.dateText",a)}};
_.eH.Object.defineProperties(Qe.prototype,{infoText:{configurable:!0,enumerable:!0,get:function(){return kJL(this.videoPrimaryInfoRenderer,this.detailed,!this.usingAnimatedComponents)}},
descriptionInfoTooltipText:{configurable:!0,enumerable:!0,get:function(){return _.cd(kJL(this.videoPrimaryInfoRenderer,!0,!0,!1,"\u2022"))}},
showDescriptionInfoTooltip:{configurable:!0,enumerable:!0,get:function(){return!this.detailed}},
animatedViewCountAccessibilityLabel:{configurable:!0,enumerable:!0,get:function(){return[_.cd(this.viewCountPreNumberText),this.viewCountProps.numberText,_.cd(this.viewCountPostNumberText)].join("")}},
animatedDateTextAccessibilityLabel:{configurable:!0,enumerable:!0,get:function(){return[_.cd(this.dateTextPreNumberText),this.dateTextProps.numberText,_.cd(this.dateTextPostNumberText)].join("")}}});
Qe.prototype.updateDynamicMetadata=Qe.prototype.updateDynamicMetadata;Qe.prototype.resetAnimationState=Qe.prototype.resetAnimationState;_.L([_.Q(_.Ms.YtComponentBehavior),_.p("design:type",Object)],Qe.prototype,"ytComponentBehavior",void 0);_.L([_.Q(_.k.YtRendererBehavior),_.p("design:type",Object)],Qe.prototype,"ytRendererBehavior",void 0);_.L([_.Q(_.u4.YtRendererstamperBehavior),_.p("design:type",Object)],Qe.prototype,"ytRendererstamperBehavior",void 0);
_.L([_.Q(_.Hc.YtActionHandlerBehavior),_.p("design:type",Object)],Qe.prototype,"ytActionHandlerBehavior",void 0);_.L([_.x(),_.p("design:type",Object)],Qe.prototype,"videoPrimaryInfoRenderer",void 0);_.L([_.x({reflectToAttribute:!0}),_.p("design:type",Object)],Qe.prototype,"detailed",void 0);_.L([_.x(),_.p("design:type",Object)],Qe.prototype,"shouldAnimate",void 0);_.L([_.x({reflectToAttribute:!0}),_.p("design:type",Object)],Qe.prototype,"viewCountPreNumberText",void 0);
_.L([_.x({reflectToAttribute:!0}),_.p("design:type",Object)],Qe.prototype,"viewCountProps",void 0);_.L([_.x({reflectToAttribute:!0}),_.p("design:type",Object)],Qe.prototype,"viewCountPostNumberText",void 0);_.L([_.x({reflectToAttribute:!0}),_.p("design:type",Object)],Qe.prototype,"dateTextPreNumberText",void 0);_.L([_.x({reflectToAttribute:!0}),_.p("design:type",Object)],Qe.prototype,"dateTextProps",void 0);
_.L([_.x({reflectToAttribute:!0}),_.p("design:type",Object)],Qe.prototype,"dateTextPostNumberText",void 0);_.L([_.x({reflectToAttribute:!0}),_.p("design:type",Object)],Qe.prototype,"metadataBadgesInDescription",void 0);_.L([_.S("videoPrimaryInfoRenderer","videoPrimaryInfoRenderer.dateText","videoPrimaryInfoRenderer.viewCount","detailed","usingAnimatedComponents"),_.p("design:type",Object),_.p("design:paramtypes",[])],Qe.prototype,"infoText",null);
_.L([_.S("videoPrimaryInfoRenderer","videoPrimaryInfoRenderer.dateText","videoPrimaryInfoRenderer.viewCount"),_.p("design:type",String),_.p("design:paramtypes",[])],Qe.prototype,"descriptionInfoTooltipText",null);_.L([_.S("detailed"),_.p("design:type",Boolean),_.p("design:paramtypes",[])],Qe.prototype,"showDescriptionInfoTooltip",null);
_.L([_.S("viewCountPreNumberText","viewCountProps.numberText","viewCountPostNumberText"),_.p("design:type",String),_.p("design:paramtypes",[])],Qe.prototype,"animatedViewCountAccessibilityLabel",null);_.L([_.S("dateTextPreNumberText","dateTextProps.numberText","dateTextPostNumberText"),_.p("design:type",String),_.p("design:paramtypes",[])],Qe.prototype,"animatedDateTextAccessibilityLabel",null);
_.L([_.O8("videoPrimaryInfoRenderer"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],Qe.prototype,"resetAnimationState",null);_.L([_.O8("videoPrimaryInfoRenderer","videoPrimaryInfoRenderer.dateText","videoPrimaryInfoRenderer.viewCount","detailed"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],Qe.prototype,"updateDynamicMetadata",null);_.L([_.U({disableElementRegistration:!0,is:"ytd-watch-info-text"})],Qe);
_.D(Qe,"ytd-watch-info-text",function(){if(IJu!==void 0)return IJu;var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-watch-info-text--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="info-container" class="style-scope ytd-watch-info-text">\n  <div id="view-count" aria-label$="[[animatedViewCountAccessibilityLabel]]" class="style-scope ytd-watch-info-text">\n    <yt-formatted-string aria-hidden="true" text="[[viewCountPreNumberText]]" class="style-scope ytd-watch-info-text"></yt-formatted-string>\n    <yt-animated-rolling-number force-roll-up="[[viewCountProps.forceRollUp]]" height-px="[[viewCountProps.heightPx]]" number-text="[[viewCountProps.numberText]]" number-value="[[viewCountProps.numberValue]]" should-animate="[[viewCountProps.shouldAnimate]]" class="style-scope ytd-watch-info-text"></yt-animated-rolling-number>\n    <yt-formatted-string aria-hidden="true" text="[[viewCountPostNumberText]]" class="style-scope ytd-watch-info-text"></yt-formatted-string>\n  </div>\n  <div id="date-text" aria-label$="[[animatedDateTextAccessibilityLabel]]" class="style-scope ytd-watch-info-text">\n    <yt-formatted-string aria-hidden="true" text="[[dateTextPreNumberText]]" class="style-scope ytd-watch-info-text"></yt-formatted-string>\n    <yt-animated-rolling-number force-roll-up="true" height-px="[[dateTextProps.heightPx]]" number-text="[[dateTextProps.numberText]]" number-value="[[dateTextProps.numberValue]]" should-animate="[[dateTextProps.shouldAnimate]]" class="style-scope ytd-watch-info-text"></yt-animated-rolling-number>\n    <yt-formatted-string aria-hidden="true" text="[[dateTextPostNumberText]]" class="style-scope ytd-watch-info-text"></yt-formatted-string>\n  </div>\n  <yt-formatted-string id="info" text="[[infoText]]" class="style-scope ytd-watch-info-text"></yt-formatted-string>\n  <template is="dom-if" if="[[metadataBadgesInDescription]]" class="style-scope ytd-watch-info-text">\n    <ytd-badge-supported-renderer badges="[[videoPrimaryInfoRenderer.badges]]" hidden="[[!videoPrimaryInfoRenderer.badges]]" class="style-scope ytd-watch-info-text">\n    </ytd-badge-supported-renderer>\n  </template>\n</div>\n<template is="dom-if" restamp="" if="[[showDescriptionInfoTooltip]]" class="style-scope ytd-watch-info-text">\n  <tp-yt-paper-tooltip class="style-scope ytd-watch-info-text">[[descriptionInfoTooltipText]]</tp-yt-paper-tooltip>\n</template>\n');
a.content.insertBefore(_.w().content.cloneNode(!0),a.content.firstChild);return IJu=a},{mode:1});var PE4;var ZoG="baseBackground raisedBackground additiveBackground textPrimary textSecondary outline keyLight collectionStack invertedBackground textPrimaryInverse textDisabled dropShadow cardOutline overlayBackground overlayTextPrimary".split(" ");var CE7=_.ec(function(a){var z=a.data;var I=a.setTapCommand;_.h2(function(){var J=_.o0(z().onTap);I(J)},"X4onJd");
return _.B("yt-comment-input-box-carousel-item-view-model",{class:"ytCommentInputBoxCarouselItemViewModelHost"},_.B(_.V0,{data:function(){return z().avatar}},{avatarViewModel:_.ok}),_.B("div",{class:"ytCommentInputBoxCarouselItemViewModelInputBox"},_.B("span",null,function(){return z().simpleboxText})))},"rk");var NQx=_.ec(function(a){return _.B("comments-entry-point-teaser-view-model",{class:"ytCommentsEntryPointTeaserViewModelHost"},_.B(_.g,{cond:function(){return _.H(a.data().avatar,_.Dc)},
then:function(z){return _.B(_.ok,{data:z,avatarButtonCustomClassName:"ytCommentsEntryPointTeaserViewModelAvatar"})}}),_.B("div",{class:"ytCommentsEntryPointTeaserViewModelTeaser"},_.B(_.xs,{text:function(){return a.data().teaserText}})))},"sk");var tWa=_.ec(function(a){var z=a.data;var I=a.setTapCommand;_.h2(function(){var J=_.o0(z().onTap);I(J)},"PmAol");
return _.B("yt-comment-teaser-carousel-item-view-model",{class:"ytCommentTeaserCarouselItemViewModelHost"},_.B(_.V0,{data:function(){return z().teasers}},{commentsEntryPointTeaserViewModel:NQx}))},"tk");var uC9=_.ec(function(a){var z=a.data;var I=a.setTapCommand;_.h2(function(){var J=_.o0(z().onTap);I(J)},"Nh3Hjd");
return _.B("yt-comments-entry-point-message-view-model",{class:"ytCommentsEntryPointMessageViewModelHost"},_.B(_.xs,{text:function(){return z().messageText}}))},"uk");var Elx=_.ec(function(a){var z=a.data;var I=a.setTapCommand;var J=a.isDisabled;_.h2(function(){var r=(J==null?0:J())?void 0:_.o0(z().onTap);I(r)},"omeiWe");
return _.B("yt-text-carousel-item-view-model",{class:"ytTextCarouselItemViewModelHost"},_.B(_.nS,{icon:function(){return z().iconName},
className:"ytTextCarouselItemViewModelImageType"}),_.B(_.g,{cond:function(){return z().image},
then:function(r){return _.B(_.qp,{data:r,alt:"",className:"ytTextCarouselItemViewModelImageType"})}}),_.B(_.xs,{text:function(){return z().text},
className:function(){return z().image||z().iconName?"ytTextCarouselItemViewModelText":"ytTextCarouselItemViewModelTextWithoutImage"},
ellipsisTruncate:!0}),_.B(_.V0,{data:function(){return z().button}},{buttonViewModel:function(r){return _.B(_.At,{data:r.data,
className:"ytTextCarouselItemViewModelButton",buttonOverrides:function(){return{disabled:J==null?void 0:J()}}})}}))},"vk");var BQa=_.ec(function(a){var z=a.data;var I=a.itemIndex;var J=a.selectedIndex;var r=a.indexUpdatedCallback;var P=a.observer;a=a.title;var N=_.Mm("yt-carousel-item-view-model",function(A){P&&P().observe(A)}),u=function(A){I()===J()&&r(A)},E=_.o5(hvO),O=_.o5(_.N9E),f=function(){var A,n,F;
return((A=z())==null?void 0:A.itemType)==="VIDEO_METADATA_CAROUSEL_PAGINATION_TYPE_LIVE_CHAT_STATIC_TEXT"&&!E()||((n=z())==null?void 0:n.itemType)==="VIDEO_METADATA_CAROUSEL_PAGINATION_TYPE_QUIZ_TEASER_STATIC_TEXT"&&O().includes("PAposts_by_host")||((F=z())==null?void 0:F.itemType)==="VIDEO_METADATA_CAROUSEL_PAGINATION_TYPE_YOUCHAT_STATIC_TEXT"&&O().includes("PAyouchat")};
return _.B("yt-carousel-item-view-model",{el:N,class:"ytCarouselItemViewModelHost",tabindex:0,"aria-label":a},_.B(_.V0,{data:function(){var A,n;return(n=(A=_.H(z().carouselItem,nZG))==null?void 0:A.textCarousel)!=null?n:z().carouselItem}},{textCarouselItemViewModel:function(A){return _.B(Elx,{data:A.data,
setTapCommand:u,isDisabled:f})},
commentTeaserCarouselItemViewModel:function(A){return _.B(tWa,{data:A.data,setTapCommand:u})},
commentInputBoxCarouselItemViewModel:function(A){return _.B(CE7,{data:A.data,setTapCommand:u})},
commentsEntryPointMessageViewModel:function(A){return _.B(uC9,{data:A.data,setTapCommand:u})}}))},"wk");var glG=_.ec(function(a){var z=a.numDots;var I=a.activeIndex;return _.B("yt-carousel-dots-shape",{class:"ytCarouselDotsShapeHost"},_.B(_.se,{each:function(){return Array.from({length:z()})},
keyBy:"INDEX"},function(J,r){return _.B("div",{class:function(){var P={};return _.$c("ytCarouselDotsShapeDot",(P.ytCarouselDotsShapeDotActive=r===I(),P))}})}))},"xk");var Oot=_.ec(function(a){var z=a.data;var I=a.handleCarouselNavigation;var J=a.numItems;var r=a.selectedIndex;var P=function(){return{disabled:r()===0}},N=function(){return{disabled:r()===J()-1}};
return _.B("yt-carousel-title-view-model",{class:"ytCarouselTitleViewModelHost"},_.B("div",null,_.B("h2",{class:"ytCarouselTitleViewModelTitle","aria-live":"polite"},function(){return z().title}),_.B(_.g,{cond:function(){return z().subtitle},
then:function(u){return _.B("span",{class:"ytCarouselTitleViewModelSubtitle","aria-label":function(){return z().subtitleAccessibilityText}},u)}})),_.B(_.g,{cond:function(){return J()>1},
then:function(){return _.B("div",{class:"ytCarouselTitleViewModelNavigation"},_.B(glG,{numDots:J,activeIndex:r}),_.B(_.g,{cond:function(){return z().previousButton},
then:function(u){return _.B(_.V0,{data:u},{buttonViewModel:function(E){return _.B(_.At,{data:E.data,className:"ytCarouselTitleViewModelNavigationButton",onClick:function(){return I(-1)},
buttonOverrides:P})}})}}),_.B(_.g,{cond:function(){return z().nextButton},
then:function(u){return _.B(_.V0,{data:u},{buttonViewModel:function(E){return _.B(_.At,{data:E.data,className:"ytCarouselTitleViewModelNavigationButton",onClick:function(){return I(1)},
buttonOverrides:N})}})}}))}}))},"yk");_.Jf(_.ec(function(a){var z=a.data;var I,J=_.Mm("yt-video-metadata-carousel-view-model"),r=_.Mm("div",function(M){var y=function(){var e=M.offsetWidth*v(),Bp=24*(v()-1);n(e+Bp)};
y();window.ResizeObserver&&(I=new ResizeObserver(y),I.observe(M))}),P=_.Xw("HTML_DIR")==="rtl",N=!1,u=0,E=0;
a=_.C(_.CW(0,void 0,"fCZdg"));var O=a.next().value,f=a.next().value;a=_.C(_.CW(0,void 0,"FQiAle"));var A=a.next().value,n=a.next().value;a=_.C(_.CW(!1,void 0,"O4owzd"));var F=a.next().value,h=a.next().value,v=function(){var M,y,e;return(e=(M=z())==null?void 0:(y=M.carouselTitles)==null?void 0:y.length)!=null?e:0},d=function(){r.value&&r.value.scrollLeft!==u&&f((P?r.value.scrollLeft<u:r.value.scrollLeft>u)?Math.min(O()+1,v()-1):Math.max(O()-1,0))},W;
window.IntersectionObserver&&(W=new IntersectionObserver(function(M){M=_.C(M);for(var y=M.next();!y.done;y=M.next())if(y.value.isIntersecting){if(N){N=!1;break}d()}else f(E)},{threshold:.2}));
_.h2(function(){if(r.value){var M=(P?-1:1)*(A()/v()+12)*(F()&&W?E:O());typeof r.value.scrollTo==="function"?r.value.scrollTo({left:M,behavior:"smooth"}):r.value.scrollLeft=M;u=M;E=F()&&W?E:O()}},"oi9Jzd");
var l,q=function(M){l=M};
_.V3(function(){var M;(M=I)==null||M.disconnect();var y;(y=W)==null||y.disconnect()});
var m=function(M){M=O()+M;M>=0&&M<v()&&(N=!0,f(M))};
return _.B("yt-video-metadata-carousel-view-model",{class:"ytVideoMetadataCarouselViewModelHost",el:J,"on:click":_.g4(function(M){if(_.di(_.TI(M),J.value,["BUTTON".toString()])||!l)return!1;_.ab().resolve(_.j6).resolveCommand(l,{forceClickLogging:!0});return!1}),
"on:touchstart":_.g4(function(){h(!0);return!1}),
"on:touchend":_.g4(function(){W||d();h(!1);return!1}),
hidden:function(){var M,y;return!((M=z())==null?0:(y=M.carouselItems)==null?0:y.length)}},_.B("div",{class:"ytVideoMetadataCarouselViewModelTitleSection"},_.B(_.g,{cond:function(){return z().carouselTitles},
then:function(M){return _.B(_.V0,{data:function(){return M()[F()&&W?E:O()]}},{carouselTitleViewModel:function(y){return _.B(Oot,{data:y.data,
handleCarouselNavigation:m,numItems:v,selectedIndex:O})}})}})),_.B("div",{class:"ytVideoMetadataCarouselViewModelCarouselContainer",
el:r},_.B("div",{class:"ytVideoMetadataCarouselViewModelItemSection",style:function(){return"min-width: "+A()+"px;"}},_.B(_.g,{cond:function(){return z().carouselItems},
then:function(M){return _.B(_.se,{each:M},function(y,e){return _.B(_.V0,{data:function(){return y}},{carouselItemViewModel:function(Bp){return _.B(BQa,{data:Bp.data,
itemIndex:e,selectedIndex:O,indexUpdatedCallback:q,observer:W,title:function(){a:{var Em=e();var nG,bG=(nG=z())==null?void 0:nG.carouselTitles;if(bG&&(Em=bG[Em])){var Hp;Em=(Hp=_.H(Em,sZj))==null?void 0:Hp.title;break a}Em=void 0}return Em}})}})})}}))))},"zk"),"yt-video-metadata-carousel-view-model",{props:{data:_.zl}});var fJu=_.K("web_action_buttons_update_owner_width")?32:12,Sm=function(){var a=_.G.apply(this,arguments)||this;a.isHovering=!1;a.enableColorSampling=_.K("web_delhi_colorful_sd");a.metadataBadgesInDescription=_.K("web_metadata_badges_in_description");a.descriptionCollapsed=!0;a.useFadedScrimDescription=_.K("kevlar_enable_faded_scrim_on_description");a.skinnyMode=!1;a.playlist=!1;a.isDark=document.documentElement.hasAttribute("dark");a.disableVideoOwnerOnTap=_.K("swatchie_video_owner_on_tap_ks");a.swatcherooDelayLoad=
_.K("swatcheroo_enable_ghost_cards");a.primaryMenuWidth=0;a.videoId="";a.titleHeadlineXs=_.K("web_watch_typography_title_headline_xs");a.titleHeadlineS=_.K("web_watch_typography_title_headline_s");a.titleHeadlineM=_.K("web_watch_typography_title_headline_m");a.titleHashtagBlackLinkified=_.K("web_title_hashtag_black_linkified");a.titleHashtagGreyLinkified=_.K("web_title_hashtag_grey_linkified");a.actionButtonsUpdateOwnerWidth=_.K("web_action_buttons_update_owner_width");a.shouldForceIconOnly=!1;a.actionMap=
{"yt-update-title-action":"onYtUpdateTitleAction","yt-update-description-action":"onYtUpdateDescriptionAction","yt-dark-mode-toggled-action":"onYtDarkModeToggledAction"};a.isFullscreen=!1;a.isTheaterMode=!1;return a};
_.b(Sm,_.G);_.Z=Sm.prototype;_.Z.ready=function(){this.updateOwnerAndDescriptionPosition()};
_.Z.updateOwnerAndDescriptionPosition=function(){_.K("kevlar_watch_grid")&&(this.skinnyMode?(this.titleElement.appendChild(this.descriptionElement),_.WC(this.bottomRowElement,this.ownerElement)):(_.WC(this.bottomRowElement,this.descriptionElement),_.WC(this.topRowElement,this.ownerElement)))};
_.Z.titleOnTap=function(a){if(this.descriptionExpandCommand&&this.skinnyMode&&!_.qK(_.ch(a)||[],this.hostElement,["A".toString(),"BUTTON".toString(),"TP-YT-PAPER-BUTTON"])){var z;((z=window.getSelection())==null?0:z.toString().length)||this.handleExpandDescriptionCommands()}};
_.Z.videoOwnerOnTap=function(a){this.disableVideoOwnerOnTap||this.skinnyMode&&this.videoOwnerCommand&&(_.qK(_.ch(a)||[],this.hostElement,["A".toString(),"BUTTON".toString(),"TP-YT-PAPER-BUTTON"])||this.ytComponentBehavior.resolveCommand(this.videoOwnerCommand))};
_.Z.detached=function(){var a=this,z;return _.t(function(I){(z=a.resizeObserver)==null||z.disconnect();_.nu(I)})};
_.Z.maybeAttachResizeObserver=function(){var a=this;this.flexMenuEnabled&&window.ResizeObserver&&(this.resizeThrottle||(this.resizeThrottle=new _.kc(this.resize,200,this)),this.resizeObserver=this.resizeObserver||new ResizeObserver(function(){a.resizeThrottle.fire()}),this.resizeObserver.observe(this.hostElement))};
_.Z.maybeUpdateActionsOnSeparateLine=function(){if(this.skinnyMode)this.actionsOnSeparateLine=!0;else if(this.primaryMenuWidth){var a=this.hostElement.clientWidth,z=Math.max(this.largerItemWrap?400:350,a/2-fJu);if(_.K("web_action_buttons_update_owner_width")){var I;z=(((I=document.getElementById("owner"))==null?void 0:I.clientWidth)||0)+fJu}this.actionsOnSeparateLine=this.primaryMenuWidth>a-z?!0:!1}};
_.Z.stripAttributedDescription=function(a){return{content:a.content.replace(/[\r\n]{2,}/g,"\n")}};
_.Z.configureRendererStamper=function(){return{"videoPrimaryInfoRenderer.videoActions":{id:"menu",mapping:{menuRenderer:{component:"ytd-menu-renderer",params:{icon:"yt-icons:more",styleActionButton:!0,disableTextTransformOnButtons:!0,tonalOverride:_.K("web_modern_buttons"),forceIconButton:!_.K("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:_.K("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"}}}};
_.Z.videoPrimaryInfoRendererChanged=function(){var a;if((a=this.videoPrimaryInfoRenderer)==null?0:a.trackingParams)this.data={trackingParams:this.videoPrimaryInfoRenderer.trackingParams};this.flexMenuEnabled&&(this.maybeAttachResizeObserver(),this.updatePrimaryMenuWidth())};
_.Z.videoSecondaryInfoRendererChanged=function(){var a,z;(z=(a=this.descriptionInlineExpander).collapse)==null||z.call(a);this.descriptionExpandClientVe=_.uq(110509);this.descriptionCollapseClientVe=_.uq(110510);a=_.TX();z=_.XZ();a&&z&&(_.K("combine_ve_grafts")?(_.Aq(_.Kw(),this.descriptionExpandClientVe,z),_.Aq(_.Kw(),this.descriptionCollapseClientVe,z)):_.lI(a,z,[this.descriptionExpandClientVe,this.descriptionCollapseClientVe]))};
_.Z.structuredDescriptionContentRendererChanged=function(){this.useFadedScrimDescription&&this.fadedStructuredDescriptionContentRendererElement?this.fadedStructuredDescriptionContentRendererElement.data=this.structuredDescriptionContentRendererComputed:this.structuredDescriptionContentRendererElement&&(this.structuredDescriptionContentRendererElement.data=this.structuredDescriptionContentRendererComputed)};
_.Z.updateTopLevelIconsOnly=function(){var a=this;_.K("top_level_update_killswitch")||this.menu&&_.GW.addLowPriorityJob(function(){a.menu.topLevelIconsOnly=a.skinnyMode},_.Ib("swathceroo_delay_flexible_menu_update",100))};
_.Z.updateShouldForceIconOnly=function(){this.shouldForceIconOnly=this.skinnyMode||_.K("web_action_buttons_minimize_subscribe")};
_.Z.moveActionsElement=function(){this.skinnyMode?this.bottomActionsElement.appendChild(this.actionsElement):this.topRowElement.appendChild(this.actionsElement)};
_.Z.onYtTextInlineExpanderExpandClicked=function(){this.logExpandClick()};
_.Z.onYtTextInlineExpanderCollapseClicked=function(){this.logCollapseClick();this.isWatchFlexy&&this.scrollToTopOfContainer()};
_.Z.onYtTextInlineExpanderExpandedChanged=function(){if(!_.K("kevlar_watch_grid")){this.descriptionCollapsed=!this.descriptionInlineExpander.isExpanded;var a,z;(z=(a=this.structuredDescriptionContentRendererElement).resize)==null||z.call(a)}};
_.Z.onRenderStamperFinished=function(a){(a==null?void 0:a.target)===this.hostElement&&this.updatePrimaryMenuWidth()};
_.Z.onYtExpanderMoreTapped=function(){this.handleExpandDescriptionCommands()};
_.Z.onYtExpanderLessTapped=function(){var a,z=(a=this.videoSecondaryInfoRenderer)==null?void 0:a.showLessCommand;z&&this.ytComponentBehavior.resolveCommand(z)};
_.Z.onDescriptionDown=function(){this.descriptionCollapsed&&this.descriptionInteraction.triggerDown()};
_.Z.onDescriptionUp=function(){this.descriptionCollapsed&&this.descriptionInteraction.triggerUp()};
_.Z.onDescriptionClick=function(a){if(!_.qK(_.ch(a)||[],this.hostElement,["A".toString(),"BUTTON".toString(),"TP-YT-PAPER-BUTTON"])){var z;((z=window.getSelection())==null?0:z.toString().length)||(this.descriptionCollapsed?this.handleExpandDescriptionClick():_.K("kevlar_watch_metadata_entire_collapse_click_target")&&this.handleCollapseDescriptionClick())}};
_.Z.handleExpandDescriptionClick=function(){this.descriptionCollapsed&&(this.useFadedScrimDescription&&this.logExpandClick(),this.expandDescription())};
_.Z.handleCollapseDescriptionClick=function(){!this.descriptionCollapsed&&this.useFadedScrimDescription&&(this.collapseDescription(),this.scrollToTopOfContainer(),this.logCollapseClick())};
_.Z.logCollapseClick=function(){var a=_.TX();a&&this.descriptionCollapseClientVe&&_.ys(a,this.descriptionCollapseClientVe)};
_.Z.logExpandClick=function(){var a=_.TX();a&&this.descriptionExpandClientVe&&_.ys(a,this.descriptionExpandClientVe)};
_.Z.collapseDescription=function(){this.descriptionCollapsed=!0};
_.Z.scrollToTopOfContainer=function(){_.ZF(this.hostElement,"yt-scroll-to-watch-element",[this.titleElement])};
_.Z.expandDescription=function(){if(this.descriptionCollapsed)if(this.useFadedScrimDescription)this.descriptionCollapsed=!1,this.handleExpandDescriptionCommands();else this.descriptionInlineExpander.onExpandClick()};
_.Z.handleExpandDescriptionCommands=function(){this.descriptionExpandCommand&&!this.structuredDescriptionContentRendererComputed&&this.ytComponentBehavior.resolveCommand(this.descriptionExpandCommand)};
_.Z.getAboveTheFoldHeight=function(){return this.aboveTheFoldContainer.offsetHeight};
_.Z.resize=function(){if(this.descriptionInlineExpander){var a,z;(z=(a=this.descriptionInlineExpander).resize)==null||z.call(a)}else _.Xd(new _.Fn("Tried to resize description inline expander when the HTML element was null",this.videoSecondaryInfoRenderer));if(this.flexMenuEnabled){var I;(I=this.menu)==null||I.maybeFlushDebouncer();this.updatePrimaryMenuWidth();this.primaryMenuWidth!==0&&this.maybeUpdateActionsOnSeparateLine()}};
_.Z.updatePrimaryMenuWidth=function(){if(this.flexMenuEnabled&&this.menu){var a,z,I,J,r=_.K("web_action_buttons_update_owner_width")?(I=(a=_.PK(this.menu).querySelector("#button-shape"))==null?void 0:a.clientWidth)!=null?I:0:(J=(z=_.PK(this.menu).querySelector("#button"))==null?void 0:z.clientWidth)!=null?J:0,P,N;a=((N=(P=_.PK(this.menu).querySelector("#top-level-buttons-computed"))==null?void 0:P.clientWidth)!=null?N:0)+8+r;var u,E;r=(E=(u=_.PK(this.menu).querySelector("#top-level-buttons-computed"))==
null?void 0:u.children.length)!=null?E:2;a<=8*r||(this.primaryMenuWidth=a)}};
_.Z.onYtUpdateTitleAction=function(a){this.videoPrimaryInfoRenderer&&this.set("videoPrimaryInfoRenderer.title",_.H(a,YGP).title)};
_.Z.onYtUpdateDescriptionAction=function(a){if(a=_.H(a,_.Jti)){var z,I=!((z=this.videoSecondaryInfoRenderer)==null||!z.attributedDescription);a.isEmpty||!a.description&&!a.attributedDescription?(this.set("videoSecondaryInfoRenderer.attributedDescription",null),this.set("videoSecondaryInfoRenderer.description",null)):a.attributedDescription?this.set("videoSecondaryInfoRenderer.attributedDescription",a.attributedDescription):a.description&&(I?this.set("videoSecondaryInfoRenderer.attributedDescription",
_.XJ(a.description)):this.set("videoSecondaryInfoRenderer.description",a.description))}};
_.Z.onYtDarkModeToggledAction=function(a){this.isDark=a};
_.Z.registerPanel=function(){if(!_.K("kevlar_watch_metadata_ep_killswitch")&&this.hasInlineStructuredDescription){var a=_.K("web_watch_imax_theater_mode")&&this.isTheaterMode;a=_.K("web_watch_enable_fs_squeezeback_panels")&&this.isFullscreen||a;var z=_.ab().resolve(_.X3);z&&!a&&z.registerPanel("engagement-panel-structured-description",this)}};
_.Z.resetDescriptionState=function(){this.useFadedScrimDescription&&(this.descriptionCollapsed=!0)};
_.Z.parseColorSamplingData=function(){var a;if(_.K("web_delhi_colorful_sd")&&((a=this.structuredDescriptionContentRenderer)==null?0:a.items)&&(a=this.structuredDescriptionContentRenderer.items.find(function(r){return!!_.H(r,oY)}))){var z,I;
this.hoverColor={lightTheme:(z=_.H(a,oY))==null?void 0:z.lightThemeColorPalette,darkTheme:(I=_.H(a,oY))==null?void 0:I.darkThemeColorPalette};var J;this.hoverText=(J=_.H(a,oY))==null?void 0:J.colorSampledDescriptionBodyText}};
_.Z.updateHoverColor=function(){if(_.K("web_delhi_colorful_sd")){var a=this.hoverColor,z={},I;a=(I=this.isDark?a==null?void 0:a.darkTheme:a==null?void 0:a.lightTheme)!=null?I:{};I=_.C(ZoG);for(var J=I.next();!J.done;J=I.next()){J=J.value;var r=a[J];z["--yt-saturated-"+_.sX(J)]=r?_.RX(r):"initial"}_.uK(this.hostElement,z)}};
_.Z.onDescriptionMouseEnter=function(){this.isHovering=!0};
_.Z.onDescriptionMouseLeave=function(){this.isHovering=!1};
_.Z.showPanel=function(a){this.expandDescription();var z=this.useFadedScrimDescription?this.fadedStructuredDescriptionContentRendererElement:this.structuredDescriptionContentRendererElement;z.resize();var I,J=a==null?void 0:(I=a.sectionListEngagementPanelExtras)==null?void 0:I.scrollToItemSectionIdentifier;J?_.GW.addJob(function(){z==null||z.scrollToSection(J)},8):this.scrollToTopOfContainer()};
_.Z.isVisible=function(){return!this.descriptionCollapsed};
_.Z.getReloadContinuation=function(){};
_.Z.hidePanel=function(){};
_.Z.updatePanel=function(){};
_.eH.Object.defineProperties(Sm.prototype,{structuredDescriptionContentRendererComputed:{configurable:!0,enumerable:!0,get:function(){var a;return _.K("web_delhi_colorful_sd")&&(a=this.structuredDescriptionContentRenderer)!=null&&a.items?Object.assign({},this.structuredDescriptionContentRenderer,{items:this.structuredDescriptionContentRenderer.items.filter(function(z){return!_.H(z,oY)&&!_.H(z,axI)})}):this.structuredDescriptionContentRenderer}},
productShelf:{configurable:!0,enumerable:!0,get:function(){var a;if((a=this.structuredDescriptionContentRendererComputed)!=null&&a.items){var z;a=_.C((z=this.structuredDescriptionContentRendererComputed)==null?void 0:z.items);for(z=a.next();!z.done;z=a.next())if(z=_.H(z.value,_.jJe))return z}}},
shouldHideBadges:{configurable:!0,enumerable:!0,get:function(){var a;return!((a=this.videoPrimaryInfoRenderer)==null?0:a.badges)||this.metadataBadgesInDescription}},
shouldShowProductShelf:{configurable:!0,enumerable:!0,get:function(){return!(!this.productShelf||this.descriptionCollapsed)}},
largerItemWrap:{configurable:!0,enumerable:!0,get:function(){var a,z,I;return!!((a=this.videoSecondaryInfoRenderer)==null?0:(z=a.owner)==null?0:(I=z.videoOwnerRenderer)==null?0:I.membershipButton)}},
descriptionText:{configurable:!0,enumerable:!0,get:function(){if(this.skinnyMode){var a,z;if((a=this.videoSecondaryInfoRenderer)==null?0:(z=a.attributedDescription)==null?0:z.content){var I,J;return(J=this.stripAttributedDescription((I=this.videoSecondaryInfoRenderer)==null?void 0:I.attributedDescription))!=null?J:{runs:[]}}}if(_.K("web_delhi_colorful_sd")&&this.isHovering&&this.descriptionCollapsed&&this.hoverText)return this.hoverText;var r,P,N,u;return(u=(N=(r=this.videoSecondaryInfoRenderer)==
null?void 0:r.description)!=null?N:(P=this.videoSecondaryInfoRenderer)==null?void 0:P.attributedDescription)!=null?u:{runs:[]}}},
headerRuns:{configurable:!0,enumerable:!0,get:function(){var a,z;return(z=(a=this.videoSecondaryInfoRenderer)==null?void 0:a.headerRuns)!=null?z:[]}},
hasTeaser:{configurable:!0,enumerable:!0,get:function(){var a;return!((a=this.commentsEntryPointHeaderRenderer)==null||!a.commentsEntryPointHeaderRenderer)}},
hasTeaserCarousel:{configurable:!0,enumerable:!0,get:function(){var a;return!((a=this.videoMetadataCarousel)==null||!a.videoMetadataCarouselViewModel)}},
descriptionMaxLines:{configurable:!0,enumerable:!0,get:function(){return this.skinnyMode?_.Ib("swatchie_desc_lines",3):this.hasTeaserCarousel?_.Ib("teaser_carousel_desc_lines",2):3}},
collapsibleMetadataRows:{configurable:!0,enumerable:!0,get:function(){var a,z,I=Object.assign({},(a=this.videoSecondaryInfoRenderer)==null?void 0:(z=a.metadataRowContainer)==null?void 0:z.metadataRowContainerRenderer);if(I&&I.rows&&I.collapsedItemCount!==void 0&&!(I.rows.length<=I.collapsedItemCount))return I.rows=I.rows.slice(I.collapsedItemCount),I.collapsedItemCount=0,I}},
alwaysVisibleMetadataRows:{configurable:!0,enumerable:!0,get:function(){if(!this.suppressTopLevelMetadataRows){var a,z,I=Object.assign({},(a=this.videoSecondaryInfoRenderer)==null?void 0:(z=a.metadataRowContainer)==null?void 0:z.metadataRowContainerRenderer);if(I&&I.rows&&I.collapsedItemCount!==void 0)return I.rows=I.rows.slice(0,I.collapsedItemCount),I.collapsedItemCount=I.rows.length,I}}},
hasInlineStructuredDescription:{configurable:!0,enumerable:!0,get:function(){var a,z;return!!((a=this.structuredDescriptionContentRendererComputed)==null?0:(z=a.items)==null?0:z.length)}},
showInlineStructuredDescription:{configurable:!0,enumerable:!0,get:function(){return!this.useFadedScrimDescription&&this.hasInlineStructuredDescription&&!this.descriptionCollapsed}},
descriptionExpandCommand:{configurable:!0,enumerable:!0,get:function(){if(this.structuredDescriptionContentRendererComputed)return null;var a;return(a=this.videoSecondaryInfoRenderer)==null?void 0:a.showMoreCommand}},
videoOwnerCommand:{configurable:!0,enumerable:!0,get:function(){var a,z,I;return((a=this.videoSecondaryInfoRenderer)==null?0:(z=a.owner)==null?0:(I=z.videoOwnerRenderer)==null?0:I.navigationEndpoint)?this.videoSecondaryInfoRenderer.owner.videoOwnerRenderer.navigationEndpoint:null}},
flexMenuEnabled:{configurable:!0,enumerable:!0,get:function(){var a,z,I,J;return!!((a=this.videoPrimaryInfoRenderer)==null?0:(z=a.videoActions)==null?0:(I=z.menuRenderer)==null?0:(J=I.flexibleItems)==null?0:J.length)}},
showAttributedStringDescription:{configurable:!0,enumerable:!0,get:function(){return this.useFadedScrimDescription&&_.Mp(this.descriptionText)}},
showFormattedStringDescription:{configurable:!0,enumerable:!0,get:function(){return this.useFadedScrimDescription&&!_.Mp(this.descriptionText)}},
showFadedStructuredDescription:{configurable:!0,enumerable:!0,get:function(){return!(!this.useFadedScrimDescription||!this.hasInlineStructuredDescription||this.descriptionCollapsed)}},
videoTitle:{configurable:!0,enumerable:!0,get:function(){var a=this;if(_.K("web_title_hashtag_grey_delinkified")){var z,I=_.x8.unsafeClone((z=this.videoPrimaryInfoRenderer)==null?void 0:z.title);(z=I==null?void 0:I.runs)&&z.forEach(function(J){if(J==null?0:J.navigationEndpoint)J.textColor=4284506208,a.isDark&&(J.textColor=4289374890)});
return I}return(I=this.videoPrimaryInfoRenderer)==null?void 0:I.title}},
noEndpoints:{configurable:!0,enumerable:!0,get:function(){return _.K("web_title_hashtag_black_delinkified")||_.K("web_title_hashtag_grey_delinkified")}}});
Sm.prototype.updateHoverColor=Sm.prototype.updateHoverColor;Sm.prototype.parseColorSamplingData=Sm.prototype.parseColorSamplingData;Sm.prototype.resetDescriptionState=Sm.prototype.resetDescriptionState;Sm.prototype.registerPanel=Sm.prototype.registerPanel;Sm.prototype.onYtExpanderLessTapped=Sm.prototype.onYtExpanderLessTapped;Sm.prototype.onYtExpanderMoreTapped=Sm.prototype.onYtExpanderMoreTapped;Sm.prototype.onRenderStamperFinished=Sm.prototype.onRenderStamperFinished;
Sm.prototype.onYtTextInlineExpanderExpandedChanged=Sm.prototype.onYtTextInlineExpanderExpandedChanged;Sm.prototype.onYtTextInlineExpanderCollapseClicked=Sm.prototype.onYtTextInlineExpanderCollapseClicked;Sm.prototype.onYtTextInlineExpanderExpandClicked=Sm.prototype.onYtTextInlineExpanderExpandClicked;Sm.prototype.moveActionsElement=Sm.prototype.moveActionsElement;Sm.prototype.updateShouldForceIconOnly=Sm.prototype.updateShouldForceIconOnly;Sm.prototype.updateTopLevelIconsOnly=Sm.prototype.updateTopLevelIconsOnly;
Sm.prototype.structuredDescriptionContentRendererChanged=Sm.prototype.structuredDescriptionContentRendererChanged;Sm.prototype.videoSecondaryInfoRendererChanged=Sm.prototype.videoSecondaryInfoRendererChanged;Sm.prototype.videoPrimaryInfoRendererChanged=Sm.prototype.videoPrimaryInfoRendererChanged;Sm.prototype.maybeUpdateActionsOnSeparateLine=Sm.prototype.maybeUpdateActionsOnSeparateLine;Sm.prototype.updateOwnerAndDescriptionPosition=Sm.prototype.updateOwnerAndDescriptionPosition;
_.L([_.Q(_.Hc.YtActionHandlerBehavior),_.p("design:type",Object)],Sm.prototype,"ytActionHandlerBehavior",void 0);_.L([_.Q(_.Ms.YtComponentBehavior),_.p("design:type",Object)],Sm.prototype,"ytComponentBehavior",void 0);_.L([_.Q(_.k.YtRendererBehavior),_.p("design:type",Object)],Sm.prototype,"ytRendererBehavior",void 0);_.L([_.Q(_.u4.YtRendererstamperBehavior),_.p("design:type",Object)],Sm.prototype,"ytRendererstamperBehavior",void 0);
_.L([_.Q(_.pV),_.p("design:type",Object)],Sm.prototype,"ytdReduxBehavior",void 0);_.L([_.A3("#above-the-fold"),_.p("design:type",HTMLElement)],Sm.prototype,"aboveTheFoldContainer",void 0);_.L([_.A3("#menu ytd-menu-renderer"),_.p("design:type",Object)],Sm.prototype,"menu",void 0);_.L([_.A3("#description-inline-expander"),_.p("design:type",Object)],Sm.prototype,"descriptionInlineExpander",void 0);
_.L([_.A3("#faded-structured-description"),_.p("design:type",Object)],Sm.prototype,"fadedStructuredDescriptionContentRendererElement",void 0);_.L([_.A3("#structured-description"),_.p("design:type",Object)],Sm.prototype,"structuredDescriptionContentRendererElement",void 0);_.L([_.A3("#title"),_.p("design:type",HTMLElement)],Sm.prototype,"titleElement",void 0);_.L([_.A3("#description"),_.p("design:type",HTMLElement)],Sm.prototype,"descriptionElement",void 0);
_.L([_.A3("#description-interaction"),_.p("design:type",Object)],Sm.prototype,"descriptionInteraction",void 0);_.L([_.A3("#owner"),_.p("design:type",HTMLElement)],Sm.prototype,"ownerElement",void 0);_.L([_.A3("#top-row"),_.p("design:type",HTMLElement)],Sm.prototype,"topRowElement",void 0);_.L([_.A3("#bottom-row"),_.p("design:type",HTMLElement)],Sm.prototype,"bottomRowElement",void 0);_.L([_.A3("#actions"),_.p("design:type",HTMLElement)],Sm.prototype,"actionsElement",void 0);
_.L([_.A3("#bottom-actions"),_.p("design:type",HTMLElement)],Sm.prototype,"bottomActionsElement",void 0);_.L([_.A3("#ytd-watch-info-text"),_.p("design:type",Object)],Sm.prototype,"watchInfoTextElement",void 0);_.L([_.x(),_.p("design:type",Object)],Sm.prototype,"data",void 0);_.L([_.x(),_.p("design:type",Object)],Sm.prototype,"videoPrimaryInfoRenderer",void 0);_.L([_.x(),_.p("design:type",Object)],Sm.prototype,"videoSecondaryInfoRenderer",void 0);
_.L([_.x(),_.p("design:type",Object)],Sm.prototype,"commentsEntryPointHeaderRenderer",void 0);_.L([_.x(),_.p("design:type",Object)],Sm.prototype,"videoMetadataCarousel",void 0);_.L([_.x(),_.p("design:type",Object)],Sm.prototype,"structuredDescriptionContentRenderer",void 0);_.L([_.S("structuredDescriptionContentRenderer"),_.p("design:type",Object),_.p("design:paramtypes",[])],Sm.prototype,"structuredDescriptionContentRendererComputed",null);
_.L([_.x(),_.p("design:type",Object)],Sm.prototype,"videoSummary",void 0);_.L([_.x(),_.p("design:type",Object)],Sm.prototype,"merchShelf",void 0);_.L([_.x(),_.p("design:type",Object)],Sm.prototype,"infoPanelBelowMetadata",void 0);_.L([_.x(),_.p("design:type",Object)],Sm.prototype,"hoverColor",void 0);_.L([_.x(),_.p("design:type",Object)],Sm.prototype,"hoverText",void 0);_.L([_.x(),_.p("design:type",Object)],Sm.prototype,"isHovering",void 0);
_.L([_.x({reflectToAttribute:!0}),_.p("design:type",Object)],Sm.prototype,"enableColorSampling",void 0);_.L([_.S("structuredDescriptionContentRendererComputed"),_.p("design:type",Object),_.p("design:paramtypes",[])],Sm.prototype,"productShelf",null);_.L([_.x({reflectToAttribute:!0}),_.p("design:type",Object)],Sm.prototype,"metadataBadgesInDescription",void 0);_.L([_.S("videoPrimaryInfoRenderer"),_.p("design:type",Object),_.p("design:paramtypes",[])],Sm.prototype,"shouldHideBadges",null);
_.L([_.S("productShelf","descriptionCollapsed"),_.p("design:type",Boolean),_.p("design:paramtypes",[])],Sm.prototype,"shouldShowProductShelf",null);_.L([_.x(),_.p("design:type",Boolean)],Sm.prototype,"isWatchFlexy",void 0);_.L([_.x({reflectToAttribute:!0}),_.p("design:type",Object)],Sm.prototype,"descriptionCollapsed",void 0);_.L([_.x({reflectToAttribute:!0}),_.p("design:type",Boolean)],Sm.prototype,"useFadedScrimDescription",void 0);
_.L([_.x({reflectToAttribute:!0}),_.p("design:type",Object)],Sm.prototype,"skinnyMode",void 0);_.L([_.x({reflectToAttribute:!0}),_.S("videoSecondaryInfoRenderer"),_.p("design:type",Object),_.p("design:paramtypes",[])],Sm.prototype,"largerItemWrap",null);_.L([_.x(),_.p("design:type",Object)],Sm.prototype,"playlist",void 0);_.L([_.x(),_.p("design:type",Object)],Sm.prototype,"clarifyBox",void 0);_.L([_.x(),_.p("design:type",Object)],Sm.prototype,"playerAds",void 0);
_.L([_.x(),_.p("design:type",Boolean)],Sm.prototype,"isDark",void 0);_.L([_.x({reflectToAttribute:!0}),_.p("design:type",Boolean)],Sm.prototype,"actionsOnSeparateLine",void 0);_.L([_.x({reflectToAttribute:!0}),_.p("design:type",Object)],Sm.prototype,"disableVideoOwnerOnTap",void 0);_.L([_.x({reflectToAttribute:!0}),_.p("design:type",Object)],Sm.prototype,"swatcherooDelayLoad",void 0);_.L([_.x(),_.p("design:type",Boolean)],Sm.prototype,"suppressTopLevelMetadataRows",void 0);
_.L([_.x(),_.p("design:type",Object)],Sm.prototype,"primaryMenuWidth",void 0);_.L([_.x({reflectToAttribute:!0}),_.p("design:type",Object)],Sm.prototype,"videoId",void 0);_.L([_.x({reflectToAttribute:!0}),_.p("design:type",Object)],Sm.prototype,"titleHeadlineXs",void 0);_.L([_.x({reflectToAttribute:!0}),_.p("design:type",Object)],Sm.prototype,"titleHeadlineS",void 0);_.L([_.x({reflectToAttribute:!0}),_.p("design:type",Object)],Sm.prototype,"titleHeadlineM",void 0);
_.L([_.x({reflectToAttribute:!0}),_.p("design:type",Object)],Sm.prototype,"titleHashtagBlackLinkified",void 0);_.L([_.x({reflectToAttribute:!0}),_.p("design:type",Object)],Sm.prototype,"titleHashtagGreyLinkified",void 0);_.L([_.x({reflectToAttribute:!0}),_.p("design:type",Object)],Sm.prototype,"actionButtonsUpdateOwnerWidth",void 0);_.L([_.x(),_.p("design:type",Object)],Sm.prototype,"shouldForceIconOnly",void 0);
_.L([_.Fe("skinnyMode"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],Sm.prototype,"updateOwnerAndDescriptionPosition",null);_.L([_.Fe("skinnyMode"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],Sm.prototype,"maybeUpdateActionsOnSeparateLine",null);
_.L([_.S("videoSecondaryInfoRenderer.description","videoSecondaryInfoRenderer.attributedDescription","isHovering","hoverText","descriptionCollapsed"),_.p("design:type",Object),_.p("design:paramtypes",[])],Sm.prototype,"descriptionText",null);_.L([_.S("videoSecondaryInfoRenderer.headerRuns"),_.p("design:type",Array),_.p("design:paramtypes",[])],Sm.prototype,"headerRuns",null);
_.L([_.x({value:!1}),_.S("commentsEntryPointHeaderRenderer"),_.p("design:type",Object),_.p("design:paramtypes",[])],Sm.prototype,"hasTeaser",null);_.L([_.x({value:!1,reflectToAttribute:!0}),_.S("videoMetadataCarousel"),_.p("design:type",Object),_.p("design:paramtypes",[])],Sm.prototype,"hasTeaserCarousel",null);_.L([_.x({value:3}),_.S("skinnyMode","playerAds","clarifyBox","hasTeaserCarousel"),_.p("design:type",Object),_.p("design:paramtypes",[])],Sm.prototype,"descriptionMaxLines",null);
_.L([_.S("videoSecondaryInfoRenderer.metadataRowContainer"),_.p("design:type",Object),_.p("design:paramtypes",[])],Sm.prototype,"collapsibleMetadataRows",null);_.L([_.S("videoSecondaryInfoRenderer.metadataRowContainer","suppressTopLevelMetadataRows"),_.p("design:type",Object),_.p("design:paramtypes",[])],Sm.prototype,"alwaysVisibleMetadataRows",null);
_.L([_.S("videoSecondaryInfoRenderer","structuredDescriptionContentRendererComputed"),_.p("design:type",Boolean),_.p("design:paramtypes",[])],Sm.prototype,"hasInlineStructuredDescription",null);_.L([_.S("useFadedScrimDescription","hasInlineStructuredDescription","descriptionCollapsed"),_.p("design:type",Boolean),_.p("design:paramtypes",[])],Sm.prototype,"showInlineStructuredDescription",null);
_.L([_.S("data","hasInlineStructuredDescription","videoSecondaryInfoRenderer"),_.p("design:type",Object),_.p("design:paramtypes",[])],Sm.prototype,"descriptionExpandCommand",null);_.L([_.S("videoSecondaryInfoRenderer.owner"),_.p("design:type",Object),_.p("design:paramtypes",[])],Sm.prototype,"videoOwnerCommand",null);_.L([_.x({reflectToAttribute:!0}),_.S("videoPrimaryInfoRenderer.videoActions"),_.p("design:type",Boolean),_.p("design:paramtypes",[])],Sm.prototype,"flexMenuEnabled",null);
_.L([_.x({selector:_.d4,reflectToAttribute:!0}),_.p("design:type",Object)],Sm.prototype,"isFullscreen",void 0);_.L([_.x({selector:_.Td,reflectToAttribute:!0}),_.p("design:type",Object)],Sm.prototype,"isTheaterMode",void 0);_.L([_.S("descriptionText","useFadedScrimDescription"),_.p("design:type",Boolean),_.p("design:paramtypes",[])],Sm.prototype,"showAttributedStringDescription",null);
_.L([_.S("descriptionText","useFadedScrimDescription"),_.p("design:type",Boolean),_.p("design:paramtypes",[])],Sm.prototype,"showFormattedStringDescription",null);_.L([_.S("useFadedScrimDescription","descriptionCollapsed","hasInlineStructuredDescription"),_.p("design:type",Boolean),_.p("design:paramtypes",[])],Sm.prototype,"showFadedStructuredDescription",null);
_.L([_.Fe("videoPrimaryInfoRenderer"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],Sm.prototype,"videoPrimaryInfoRendererChanged",null);_.L([_.S("videoPrimaryInfoRenderer.title"),_.p("design:type",Object),_.p("design:paramtypes",[])],Sm.prototype,"videoTitle",null);_.L([_.S("videoPrimaryInfoRenderer"),_.p("design:type",Object),_.p("design:paramtypes",[])],Sm.prototype,"noEndpoints",null);
_.L([_.Fe("videoSecondaryInfoRenderer"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],Sm.prototype,"videoSecondaryInfoRendererChanged",null);_.L([_.O8("videoPrimaryInfoRenderer","structuredDescriptionContentRendererComputed"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],Sm.prototype,"structuredDescriptionContentRendererChanged",null);
_.L([_.O8("skinnyMode"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],Sm.prototype,"updateTopLevelIconsOnly",null);_.L([_.O8("skinnyMode"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],Sm.prototype,"updateShouldForceIconOnly",null);_.L([_.O8("skinnyMode"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],Sm.prototype,"moveActionsElement",null);
_.L([_.gz("yt-text-inline-expander-expand-clicked"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],Sm.prototype,"onYtTextInlineExpanderExpandClicked",null);_.L([_.gz("yt-text-inline-expander-collapse-clicked"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],Sm.prototype,"onYtTextInlineExpanderCollapseClicked",null);
_.L([_.gz("yt-text-inline-expander-expanded-changed"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],Sm.prototype,"onYtTextInlineExpanderExpandedChanged",null);_.L([_.gz("yt-rendererstamper-finished"),_.p("design:type",Function),_.p("design:paramtypes",[Event]),_.p("design:returntype")],Sm.prototype,"onRenderStamperFinished",null);
_.L([_.gz("yt-expander-more-tapped"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],Sm.prototype,"onYtExpanderMoreTapped",null);_.L([_.gz("yt-expander-less-tapped"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],Sm.prototype,"onYtExpanderLessTapped",null);
_.L([_.O8("videoPrimaryInfoRenderer","hasInlineStructuredDescription","isFullscreen"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],Sm.prototype,"registerPanel",null);_.L([_.O8("videoSecondaryInfoRenderer"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],Sm.prototype,"resetDescriptionState",null);
_.L([_.O8("structuredDescriptionContentRenderer"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],Sm.prototype,"parseColorSamplingData",null);_.L([_.O8("hoverColor","isDark"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],Sm.prototype,"updateHoverColor",null);_.L([_.U({disableElementRegistration:!0,is:"ytd-watch-metadata"})],Sm);
_.D(Sm,"ytd-watch-metadata",function(){if(PE4!==void 0)return PE4;var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-watch-metadata--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="above-the-fold" class="style-scope ytd-watch-metadata">\n  <div id="title" on-click="titleOnTap" class="style-scope ytd-watch-metadata">\n    <ytd-badge-supported-renderer hidden="[[!videoPrimaryInfoRenderer.topStandaloneBadge]]" top-standalone-badge="[[videoPrimaryInfoRenderer.topStandaloneBadge]]" class="style-scope ytd-watch-metadata">\n    </ytd-badge-supported-renderer>\n    <h1 class="style-scope ytd-watch-metadata">\n      <yt-formatted-string force-default-style="" no-endpoints="[[noEndpoints]]" text="[[videoTitle]]" title="[[getSimpleString(videoPrimaryInfoRenderer.title)]]" class="style-scope ytd-watch-metadata">\n      </yt-formatted-string>\n    </h1>\n    <ytd-badge-supported-renderer badges="[[videoPrimaryInfoRenderer.badges]]" hidden="[[shouldHideBadges]]" class="style-scope ytd-watch-metadata">\n    </ytd-badge-supported-renderer>\n  </div>\n\n  <div id="top-row" class="style-scope ytd-watch-metadata">\n    <div id="owner" class="item style-scope ytd-watch-metadata" hidden="[[!videoSecondaryInfoRenderer.owner.videoOwnerRenderer]]" on-click="videoOwnerOnTap">\n      <ytd-video-owner-renderer data="[[videoSecondaryInfoRenderer.owner.videoOwnerRenderer]]" subscribe-key="[[videoSecondaryInfoRenderer.subscribeButton.subscribeButtonRenderer.subscribedEntityKey]]" watch-metadata-refresh="" class="style-scope ytd-watch-metadata">\n      </ytd-video-owner-renderer>\n      <div id="subscribe-button" class="style-scope ytd-watch-metadata"></div>\n    </div>\n    <div id="actions" class="item style-scope ytd-watch-metadata">\n      <div id="actions-inner" class="style-scope ytd-watch-metadata">\n        <div id="menu" class="style-scope ytd-watch-metadata"></div>\n      </div>\n    </div>\n  </div>\n\n  <div id="middle-row" class="style-scope ytd-watch-metadata"></div>\n\n  <div id="bottom-row" class="style-scope ytd-watch-metadata">\n    <div id="description" class="item style-scope ytd-watch-metadata" on-down="onDescriptionDown" on-up="onDescriptionUp" on-click="onDescriptionClick" on-mouseenter="onDescriptionMouseEnter" on-mouseleave="onDescriptionMouseLeave">\n      <div id="description-inner" class="style-scope ytd-watch-metadata">\n        <ytd-watch-info-text id="ytd-watch-info-text" detailed="[[!descriptionCollapsed]]" video-primary-info-renderer="[[videoPrimaryInfoRenderer]]" class="style-scope ytd-watch-metadata"></ytd-watch-info-text>\n        \n        <template is="dom-if" if="[[shouldShowProductShelf]]" restamp="" id="product-shelf" class="style-scope ytd-watch-metadata">\n          <ytd-merch-shelf-renderer data="[[productShelf]]" class="style-scope ytd-watch-metadata"> </ytd-merch-shelf-renderer>\n        </template>\n        <yt-formatted-string id="description-placeholder" hidden="[[!videoSecondaryInfoRenderer.descriptionPlaceholder]]" text="[[videoSecondaryInfoRenderer.descriptionPlaceholder]]" class="style-scope ytd-watch-metadata">\n        </yt-formatted-string>\n        <div id="description-text-container" hidden="[[!useFadedScrimDescription]]" class="style-scope ytd-watch-metadata">\n          <yt-attributed-string id="attributed-description-text" data="[[descriptionText]]" disable-upgrade$="[[!showAttributedStringDescription]]" header-runs="[[headerRuns]]" hidden="[[!showAttributedStringDescription]]" user-input="" class="style-scope ytd-watch-metadata">\n          </yt-attributed-string>\n          \n          <yt-formatted-string id="formatted-description-text" disable-upgrade$="[[!showFormattedStringDescription]]" hidden="[[!showFormattedStringDescription]]" split-lines="[[showFormattedStringDescription]]" text="[[descriptionText]]" class="style-scope ytd-watch-metadata">\n          </yt-formatted-string>\n          <ytd-structured-description-content-renderer id="faded-structured-description" data="[[structuredDescriptionContentRendererComputed]]" disable-upgrade$="[[!showFadedStructuredDescription]]" hidden="[[!showFadedStructuredDescription]]" inline-structured-description="" video-summary="[[videoSummary]]" class="style-scope ytd-watch-metadata">\n          </ytd-structured-description-content-renderer>\n          <ytd-metadata-row-container-renderer data="[[collapsibleMetadataRows]]" disable-upgrade$="[[!collapsibleMetadataRows]]" full-width="[[skinnyMode]]" class="style-scope ytd-watch-metadata">\n          </ytd-metadata-row-container-renderer>\n          <tp-yt-paper-button id="collapse-button" class="button style-scope ytd-watch-metadata" hidden="[[descriptionCollapsed]]" on-click="handleCollapseDescriptionClick">[[getSimpleString(videoSecondaryInfoRenderer.showLessText)]]</tp-yt-paper-button>\n        </div>\n        <ytd-text-inline-expander id="description-inline-expander" always-show-expand-button="" collapse-label="[[getSimpleString(videoSecondaryInfoRenderer.showLessText)]]" disable-upgrade$="[[useFadedScrimDescription]]" expand-command="[[descriptionExpandCommand]]" expand-label="[[getSimpleString(videoSecondaryInfoRenderer.showMoreText)]]" header-runs="[[headerRuns]]" hidden="[[useFadedScrimDescription]]" max-lines="[[descriptionMaxLines]]" text="[[descriptionText]]" class="style-scope ytd-watch-metadata">\n          <div slot="extra-content" class="style-scope ytd-watch-metadata">\n            <ytd-structured-description-content-renderer id="structured-description" data="[[structuredDescriptionContentRendererComputed]]" hidden="[[!showInlineStructuredDescription]]" inline-structured-description="" merch-shelf="[[merchShelf]]" video-summary="[[videoSummary]]" class="style-scope ytd-watch-metadata">\n            </ytd-structured-description-content-renderer>\n            <ytd-metadata-row-container-renderer data="[[collapsibleMetadataRows]]" disable-upgrade$="[[!collapsibleMetadataRows]]" full-width="[[skinnyMode]]" class="style-scope ytd-watch-metadata">\n            </ytd-metadata-row-container-renderer>\n          </div>\n        </ytd-text-inline-expander>\n      </div>\n      <yt-interaction id="description-interaction" class="rounded-large style-scope ytd-watch-metadata" hidden="[[skinnyMode]]"></yt-interaction>\n    </div>\n    <div id="bottom-actions" class="style-scope ytd-watch-metadata"></div>\n    <div id="comment-teaser" class="item style-scope ytd-watch-metadata" hidden="[[!hasTeaser]]"></div>\n    <div id="teaser-carousel" class="item style-scope ytd-watch-metadata" hidden="[[!hasTeaserCarousel]]"></div>\n  </div>\n</div>\n\n<ytd-metadata-row-container-renderer data="[[alwaysVisibleMetadataRows]]" full-width="[[skinnyMode]]" class="style-scope ytd-watch-metadata">\n</ytd-metadata-row-container-renderer>\n');
a.content.insertBefore(_.w().content.cloneNode(!0),a.content.firstChild);return PE4=a},{mode:2});_.h29=function(a){_.FC.call(this);this.JSC$22782_watchApi=a;this.temporaryTheaterMode=this.autonavCancelledBySignal=!1;A7j(this);sfP(this);nlx(this);KG4(this);FGj(this);Ho9(this);boG(this)};
_.b(_.h29,_.FC);var nlx=function(a){var z=function(){_.K("kevlar_is_pupi_enabled")||i2(a)};
a.JSC$22782_watchApi.getRoot().addEventListener("yt-player-updated",z);a.addOnDisposeCallback(function(){a.JSC$22782_watchApi.getRoot().removeEventListener("yt-player-updated",z)})},FGj=function(a){if(_.K("kevlar_endscreen_auto_theater_mode")){var z=a.JSC$22782_watchApi.subscribeToActiveChanged(function(){VWj(a)},!1);
a.addOnDisposeCallback(z)}},A7j=function(a){var z,I,J,r,P;
_.t(function(N){if(N.nextAddress==1)return N.yield(a.JSC$22782_watchApi.playerApi,2);z=N.yieldResult;I=function(u){u=!!u;xr(a)&&(u=u?2:1,_.PS.getInstance().setState(u,!0,!1))};
J=function(u){u&&_.bl9(_.qo().getState())&&(_.ZF(a.JSC$22782_watchApi.getRoot(),"yt-toggle-theater-mode",[!0,!1]),a.temporaryTheaterMode=!0)};
r=function(u){_.K("kevlar_player_update_autonav_on_new_data")&&u.type==="newdata"&&(_.K("kevlar_is_pupi_enabled")||i2(a))};
P=function(u){a.onPlayerStateChange(u)};
_.K("kevlar_endscreen_auto_theater_mode")&&z.addEventListener("onAutonavCancelled",J);z.addEventListener("onAutonavChangeRequest",I);z.addEventListener("onVideoDataChange",r);z.addEventListener("onStateChange",P);a.addOnDisposeCallback(function(){z.removeEventListener("onAutonavChangeRequest",I);z.removeEventListener("onVideoDataChange",r);z.removeEventListener("onStateChange",P);_.K("kevlar_endscreen_auto_theater_mode")&&z.removeEventListener("onAutonavCancelled",J)});
_.nu(N)})},sfP=function(a){a.JSC$22782_watchApi.registerActionHandler("yt-signal-action-cancel-autonav",function(){a.autonavCancelledBySignal=!0;
_.K("kevlar_is_pupi_enabled")||i2(a)});
a.JSC$22782_watchApi.registerActionHandler("yt-autonav-state-changed-action",function(z,I,J){I&&i2(a,J)});
a.JSC$22782_watchApi.registerActionHandler("yt-enable-autoplay-command",function(){xr(a)&&_.PS.getInstance().setState(2,!0,!0)});
a.JSC$22782_watchApi.registerActionHandler("yt-disable-autoplay-command",function(){xr(a)&&_.PS.getInstance().setState(1,!0,!0)});
a.addOnDisposeCallback(function(){a.JSC$22782_watchApi.unregisterActionHandler("yt-signal-action-cancel-autonav");a.JSC$22782_watchApi.unregisterActionHandler("yt-autonav-state-changed-action");a.JSC$22782_watchApi.unregisterActionHandler("yt-enable-autoplay-command");a.JSC$22782_watchApi.unregisterActionHandler("yt-disable-autoplay-command")})},KG4=function(a){var z=a.JSC$22782_watchApi.subscribe("PLAYER_RESPONSE_UPDATED",function(){boG(a)}),I=a.JSC$22782_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",
function(){Ho9(a)});
a.addOnDisposeCallback(function(){a.JSC$22782_watchApi.unsubscribeByKey(z);a.JSC$22782_watchApi.unsubscribeByKey(I)})},boG=function(a){a.autonavCancelledBySignal=!1;
_.K("kevlar_is_pupi_enabled")||i2(a)},Ho9=function(a){var z=a.JSC$22782_watchApi.getWatchNextResponse(),I,J;
var r=(z=(J=_.H(z==null?void 0:(r=z.playerOverlays)==null?void 0:(I=r.playerOverlayRenderer)==null?void 0:I.autonavToggle,_.P4v))==null?void 0:J.enabled)?2:1;_.K("kevlar_is_pupi_enabled")?_.PS.getInstance().setState(r,!1,!1):i2(a);_.K("web_persist_server_autonav_state_on_client")&&typeof z==="boolean"&&_.FUx(r===2)},xr=function(a){if(a.autonavCancelledBySignal)return!1;
var z,I,J,r;return!!((z=a.JSC$22782_watchApi.getWatchNextResponse())==null?0:(I=z.contents)==null?0:(J=I.twoColumnWatchNextResults)==null?0:(r=J.autoplay)==null?0:r.autoplay)};
_.h29.prototype.onPlayerStateChange=function(a){if(a===0){a=!_.PS.getInstance().isAutoplaySetExplicitly();var z=this.JSC$22782_watchApi.getWatchNextResponse(),I,J,r,P;z=_.H(z==null?void 0:(I=z.contents)==null?void 0:(J=I.twoColumnWatchNextResults)==null?void 0:(r=J.autoplay)==null?void 0:(P=r.autoplay)==null?void 0:P.autoplayExplicitChoiceDialogRenderer,_.SLi);xr(this)&&a&&z&&_.Og.instance.resolveCommand({openPopupAction:{popup:{confirmDialogRenderer:z},popupType:"DIALOG"}})}else VWj(this)};
var VWj=function(a){a.temporaryTheaterMode&&(a.temporaryTheaterMode=!1,_.ZF(a.JSC$22782_watchApi.getRoot(),"yt-toggle-theater-mode",[!1,!1]))},i2=function(a,z){z=z===void 0?!1:z;
var I;_.t(function(J){if(J.nextAddress==1)return J.yield(a.JSC$22782_watchApi.playerApi,2);I=J.yieldResult;xr(a)?I.setAutonavState(_.PS.getInstance().getState(),z):I.setAutonavState(1,z);_.nu(J)})};var Qfx={PLAYLIST:"PLAYLIST",ERROR_SCREEN:"ERROR_SCREEN",PRIMARY_INFO:"PRIMARY_INFO",SECONDARY_INFO:"SECONDARY_INFO",CLARIFICATION:"CLARIFICATION",INFO_PANEL_BELOW_METADATA:"INFO_PANEL_BELOW_METADATA",RICH_METADATA:"RICH_METADATA",COMMENTS_ENTRY_POINT_HEADER:"COMMENTS_ENTRY_POINT_HEADER",MERCH_SHELF:"MERCH_SHELF",MERCH_SHELF_IN_SD:"MERCH_SHELF_IN_SD",DONATION_SHELF:"DONATION_SHELF",OFFER_MODULE:"OFFER_MODULE",TICKET_SHELF:"TICKET_SHELF",LIMITED_STATE:"LIMITED_STATE",ALERTS:"ALERTS",SINGLE_COLUMN_CONTENTS:"SINGLE_COLUMN_CONTENTS",
COMMENTS:"COMMENTS",ENGAGEMENT_PANELS:"ENGAGEMENT_PANELS",INLINE_ENGAGEMENT_PANELS:"INLINE_ENGAGEMENT_PANELS",RICH_GRID_RENDERER:"RICH_GRID_RENDERER",WATCH_NEXT_SECONDARY_RESULTS:"WATCH_NEXT_SECONDARY_RESULTS",EXPANDABLE_METADATA:"EXPANDABLE_METADATA",LIVE_CHAT:"LIVE_CHAT",VIDEO_METADATA_CAROUSEL:"VIDEO_METADATA_CAROUSEL",SHOPPING_TIMELY_SHELF:"SHOPPING_TIMELY_SHELF"};_.io7=function(a){_.FC.call(this);var z=this;this.JSC$22787_watchApi=a;var I=this.JSC$22787_watchApi.subscribe("PLAYER_RESPONSE_UPDATED",function(){SSG(z)});
this.addOnDisposeCallback(function(){z.JSC$22787_watchApi.unsubscribeByKey(I)});
SSG(this)};
_.b(_.io7,_.FC);var SSG=function(a){var z=a.JSC$22787_watchApi.getPlayerResponse(),I=a.JSC$22787_watchApi.getWatchNextResponse();if(!_.DPi(z==null?void 0:z.playabilityStatus,I==null?void 0:I.playerOverlays)){var J;var r=z==null?void 0:(J=z.playabilityStatus)==null?void 0:J.errorScreen}a.JSC$22787_watchApi.provideRenderingData("ERROR_SCREEN",r)};var xCj=_.ec(function(a){var z=a.data;a=_.K("web_watch_video_details_hide_subtitle");var I=_.K("web_watch_video_details_single_line_title"),J=_.g4(function(){var u=z().onTap;u&&_.ab().resolve(_.j6).resolveCommand(u)}),r={},P={},N={};
return _.B("yt-player-overlay-video-details-renderer",{class:_.B8("ytPlayerOverlayVideoDetailsRendererHost",(r.ytPlayerOverlayVideoDetailsRendererFrostedGlass=!_.K("web_watch_video_details_transparent_background"),r)),"on:click":J,role:"button"},_.B("h2",{class:_.B8("ytPlayerOverlayVideoDetailsRendererTitle",(P.ytPlayerOverlayVideoDetailsRendererSingleLineTitle=function(){return I},P))},_.B(_.xs,{text:function(){return z().title}})),_.B("div",{class:_.B8("ytPlayerOverlayVideoDetailsRendererSubtitle",
(N.ytPlayerOverlayVideoDetailsRendererHideSubtitle=a,N))},_.B(_.xs,{text:function(){return z().subtitle}})))},"Ak");var vj={LIKE:"LIKE_DELHI_PLAYER",DISLIKE:"DISLIKE_DELHI_PLAYER",SHARE:"SHARE_DELHI_PLAYER",COMMENT:"COMMENT_DELHI_PLAYER",MESSAGE_BUBBLE_OVERLAP:"MESSAGE_BUBBLE_OVERLAP_DELHI_PLAYER"},vlO=_.ec(function(a){var z=a.data;var I=_.o5(_.d4),J=_.K("web_watch_action_bar_resize_buttons"),r=_.K("delhi_modern_web_player_icons")&&!_.K("enable_web_delhi_icons"),P=function(){return J&&!I()?{size:"M"}:void 0};
a={};return _.B("yt-player-quick-action-buttons",{class:_.B8("ytPlayerQuickActionButtonsHost",(a.ytPlayerQuickActionButtonsHostTheaterMode=function(){return!I()},a))},_.B(_.se,{each:function(){if(r){var N=z();
N=JSON.parse(JSON.stringify(N));for(var u=_.C(N),E=u.next();!E.done;E=u.next()){var O=E.value,f=void 0;E=_.H((f=_.H(O,_.oy))==null?void 0:f.toggleButtonViewModel,_.My);var A=void 0;f=_.H((A=_.H(O,_.WU))==null?void 0:A.toggleButtonViewModel,_.My);A=_.H(O,_.yw);O=_.H(O,_.My);if(E)f=_.H(E.defaultButtonViewModel,_.yw),E=_.H(E.toggledButtonViewModel,_.yw),f&&f.iconName&&(f.iconName=vj[f.iconName]),E&&E.iconName&&(E.iconName=vj[E.iconName]);else if(f)E=_.H(f.defaultButtonViewModel,_.yw),f=_.H(f.toggledButtonViewModel,
_.yw),E&&E.iconName&&(E.iconName=vj[E.iconName]),f&&f.iconName&&(f.iconName=vj[f.iconName]);else if(A)A.iconName&&(A.iconName=vj[A.iconName]);else if(O){E=_.H(O.defaultButtonViewModel,_.yw);f=_.H(O.toggledButtonViewModel,_.yw);O=void 0;if((O=E)==null?0:O.iconName)E.iconName=vj[E.iconName];E=void 0;if((E=f)==null?0:E.iconName)f.iconName=vj[f.iconName]}}}else N=z();return N}},function(N){return _.B(_.V0,{data:function(){return N}},{buttonViewModel:function(u){return _.B(_.At,{data:u.data,
buttonOverrides:P})},
likeButtonViewModel:function(u){return _.B(_.Ld,{data:u.data,buttonShapeOverrideables:P})},
dislikeButtonViewModel:function(u){return _.B(_.Rp,{data:u.data,buttonShapeOverrideables:P})},
toggleButtonViewModel:function(u){return _.B(_.Wc,{data:u.data,buttonShapeOverrides:P})}})}))},"Bk");_.$Cx=function(a){_.FC.call(this);var z=this;this.JSC$22791_watchApi=a;a=_.C(_.CW({},void 0,"n9wCVe"));this.quickActionsViewModel=a.next().value;this.setQuickActionsViewModel=a.next().value;a=_.C(_.CW({},void 0,"JD2YUd"));this.playerOverlayVideoDetailsRenderer=a.next().value;this.setPlayerOverlayVideoDetailsRenderer=a.next().value;var I=this.JSC$22791_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){Gau(z)});
this.addOnDisposeCallback(function(){z.JSC$22791_watchApi.unsubscribeByKey(I)});
Gau(this)};
_.b(_.$Cx,_.FC);
var Gau=function(a){var z,I,J,r,P,N,u,E,O,f,A,n,F,h;_.t(function(v){if(v.nextAddress==1)return v.yield(a.JSC$22791_watchApi.playerApi,2);z=v.yieldResult;I=a.JSC$22791_watchApi.getWatchNextResponse();P=(J=I)==null?void 0:(r=J.playerOverlays)==null?void 0:r.playerOverlayRenderer;u=_.H((N=P)==null?void 0:N.fullscreenQuickActionsBar,_.Cc1);(O=(E=a).setQuickActionsViewModel)==null||O.call(E,u||{});u&&XWI(a,z);n=(f=P)==null?void 0:(A=f.videoDetails)==null?void 0:A.playerOverlayVideoDetailsRenderer;(h=(F=
a).setPlayerOverlayVideoDetailsRenderer)==null||h.call(F,n||{});n&&TQ7(a,z);_.nu(v)})},XWI=function(a,z){if(!a.quickActionButtonsContainer)if(z.setFullscreenQuickActions){a.quickActionButtonsContainer=document.createElement("div");
z.setFullscreenQuickActions(a.quickActionButtonsContainer);var I=function(){return a.quickActionsViewModel().quickActionButtons||[]},J=_.b1(a.quickActionButtonsContainer,function(){return _.B(vlO,{data:I})});
a.addOnDisposeCallback(function(){z.setFullscreenQuickActions(void 0);J()})}else _.Xd(new _.Fn("setFullscreenQuickActions not defined",{playerApi:Object.keys(z),
isReady:z.isReady(),appState:z.getAppState()}))},TQ7=function(a,z){if(!a.playerOverlayVideoDetailsRendererContainer)if(z.setPlayerOverlayVideoDetailsRenderer){a.playerOverlayVideoDetailsRendererContainer=document.createElement("div");
z.setPlayerOverlayVideoDetailsRenderer(a.playerOverlayVideoDetailsRendererContainer);var I=_.b1(a.playerOverlayVideoDetailsRendererContainer,function(){return _.B(xCj,{data:a.playerOverlayVideoDetailsRenderer})});
a.addOnDisposeCallback(function(){z.setPlayerOverlayVideoDetailsRenderer(void 0);I()})}else _.Xd(new _.Fn("setPlayerOverlayVideoDetailsRenderer not defined",{playerApi:Object.keys(z),
isReady:z.isReady(),appState:z.getAppState()}))};_.GA=function(a){_.FC.call(this);var z=this;this.JSC$22797_watchApi=a;this.JSC$22797_miniplayerActive=this.isFullscreen=this.shouldShowFullerscreenEdu=this.fullerscreenEduButtonClickedThisPlayback=this.fullerscreenEduButtonShownThisPlayback=!1;a=_.QT(_.qo(),_.d4,function(I){z.onFullscreenChanged(I)});
this.addOnDisposeCallback(a);a=_.QT(_.qo(),_.iS,function(I){z.onWatchScroll(I)});
this.addOnDisposeCallback(a);_.K("kevlar_watch_while_v2")&&(a=_.QT(_.qo(),_.Tg,function(I){dCt(z,I)}),this.addOnDisposeCallback(a));
WGx(this);ola(this);UC4();this.onWatchScroll(_.iS(_.qo().getState()));_.TZ("START_IN_FULL_WINDOW_MODE")&&this.JSC$22797_watchApi.dispatchEvent("yt-set-fullerscreen-styles")};
_.b(_.GA,_.FC);var WGx=function(a){a.JSC$22797_watchApi.registerActionHandler("yt-fullscreen-change-action",function(z){var I=a.JSC$22797_watchApi.isActive();z&&!I||_.qo().dispatch(_.rg({type:"SET_IS_WATCH_FULLSCREEN",payload:{isWatchFullscreen:!!z}}))});
a.addOnDisposeCallback(function(){a.JSC$22797_watchApi.unregisterActionHandler("yt-fullscreen-change-action")})},ola=function(a){var z,I;
_.t(function(J){if(J.nextAddress==1)return J.yield(a.JSC$22797_watchApi.playerApi,2);z=J.yieldResult;I=function(){a.onFullerscreenEduClicked()};
z.addEventListener("onFullerscreenEduClicked",I);a.addOnDisposeCallback(function(){z.removeEventListener("onFullerscreenEduClicked",I)});
_.nu(J)})};
_.GA.prototype.onFullscreenChanged=function(a){var z=this,I;return _.t(function(J){if(J.nextAddress==1)return z.isFullscreen=!!_.jE(),J.yield(z.JSC$22797_watchApi.playerApi,2);I=J.yieldResult;z.JSC$22797_miniplayerActive||I.setFauxFullscreen(z.isFullscreen);if(a&&(z.JSC$22797_watchApi.focusOnPlayer(),!z.fullerscreenEduButtonShownThisPlayback)){z.fullerscreenEduButtonShownThisPlayback=!0;var r=_.nN("yt-fullerscreen-edu-button-shown-count")||0;_.s4("yt-fullerscreen-edu-button-shown-count",r+1,31536E3);
z.updateFullerscreenEduButtonSubtleModeState()}_.nu(J)})};
var dCt=function(a,z){var I;_.t(function(J){if(J.nextAddress==1)return a.JSC$22797_miniplayerActive=z,J.yield(a.JSC$22797_watchApi.playerApi,2);I=J.yieldResult;I.setFauxFullscreen(!a.JSC$22797_miniplayerActive&&a.isFullscreen);_.nu(J)})};
_.GA.prototype.onWatchScroll=function(a){var z=this,I,J;return _.t(function(r){if(r.nextAddress==1)return _.K("external_fullscreen_with_edu")?r.yield(z.JSC$22797_watchApi.playerApi,2):r.return();I=r.yieldResult;J=a<=0;z.shouldShowFullerscreenEdu!==J&&(z.shouldShowFullerscreenEdu=J,I.updateFullerscreenEduButtonVisibility(!z.shouldShowFullerscreenEdu));_.nu(r)})};
_.GA.prototype.onFullerscreenEduClicked=function(){this.JSC$22797_watchApi.scrollWatchTo(186,!0);if(!this.fullerscreenEduButtonClickedThisPlayback){this.fullerscreenEduButtonClickedThisPlayback=!0;var a=_.nN("yt-fullerscreen-edu-button-click-count")||0;_.s4("yt-fullerscreen-edu-button-click-count",a+1,31536E3);this.updateFullerscreenEduButtonSubtleModeState()}};
_.GA.prototype.updateFullerscreenEduButtonSubtleModeState=function(){var a=this,z,I,J,r,P,N;return _.t(function(u){if(u.nextAddress==1)return z=_.nN("yt-fullerscreen-edu-button-click-count")||0,I=_.nN("yt-fullerscreen-edu-button-shown-count")||0,J=_.Ib("external_fullscreen_button_click_threshold"),r=_.Ib("external_fullscreen_button_shown_threshold"),P=z>=J||I>=r,u.yield(a.JSC$22797_watchApi.playerApi,2);N=u.yieldResult;N.updateFullerscreenEduButtonSubtleModeState(P);_.nu(u)})};
_.GA.prototype.disposeInternal=function(){_.FC.prototype.disposeInternal.call(this);var a=_.jE();_.K("kevlar_exit_fullscreen_leaving_watch")&&a&&_.zb(a)};
var UC4=function(){if(_.K("web_watch_add_viewport_meta_tag")){var a=document.querySelector("meta[name=viewport]"),z=document.head;z&&!a&&(a=document.createElement("meta"),a.name="viewport",a.content="width=device-width, initial-scale=1.0, viewport-fit=cover",z.appendChild(a))}};_.$r=function(a){_.FC.call(this);var z=this;this.JSC$22801_watchApi=a;this.jobId=0;this.pendingRequestId=void 0;var I=this.JSC$22801_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){DCG(z)});
this.addOnDisposeCallback(function(){z.JSC$22801_watchApi.unsubscribeByKey(I)});
DCG(this)};
_.b(_.$r,_.FC);var R2a=function(a){_.GW.cancelJob(a.jobId);a.pendingRequestId=void 0},DCG=function(a){R2a(a);
var z=co9(a.JSC$22801_watchApi.getWatchNextResponse());if(z){var I=250,J,r=(J=_.H(z,_.PzX))==null?void 0:J.initialDelayMs;_.K("web_watch_updated_metadata_server_initial_delay")&&r&&(I=r);a.jobId=_.GW.addLowPriorityJob(function(){return a.fetchUpdatedMetadata(z)},I)}};
_.$r.prototype.fetchUpdatedMetadata=function(a,z){var I=this,J,r,P,N,u,E,O,f,A,n,F,h,v,d,W;return _.t(function(l){switch(l.nextAddress){case 1:z&&(J={continuation:z});if(!_.K("web_get_updated_metadata_fantasy_panel_continuation_params")){l.jumpTo(2);break}r=_.ab().resolve(_.X3);P="PAsports_fantasy";return l.yield(r.isVisible(P,!0),3);case 3:l.yieldResult&&(O=(u=(N=r).getUpdatePanelContinuationData)==null?void 0:(E=u.call(N,P))==null?void 0:E.updatePanelContinuationRequest)&&(J||(J={}),J.clientParams=
{panelContinuationParams:{panelContinuation:O}});case 2:f=_.ab().resolve(_.dY);if(!f)return _.Gx(Error("Eo")),l.return();A={};I.pendingRequestId=A;return l.yield(_.y7(f,a,J),4);case 4:n=l.yieldResult;if(A!==I.pendingRequestId)return l.return();v=(F=n)==null?void 0:(h=F.continuation)==null?void 0:h.timedContinuationData;((d=v)==null?0:d.continuation)&&((W=v)==null?0:W.timeoutMs)&&(I.jobId=_.GW.addLowPriorityJob(function(){return I.fetchUpdatedMetadata(a,v.continuation)},v.timeoutMs));
_.nu(l)}})};
_.$r.prototype.disposeInternal=function(){_.FC.prototype.disposeInternal.call(this);R2a(this)};var LGx=_.ec(function(a){var z=_.g4(function(){var J=a.data().videoId;if(a.active())J=_.jx(J),_.ab().resolve(_.j6).resolveCommand(J);else{var r=a.playerApi(),P=r.getAvailableAudioTracks(),N,u,E=(N=a.sourceVideoConfig().audioTracks)==null?void 0:(u=N.find(function(O){return O.isDefaultForSource}))==null?void 0:u.id;
if(P=P.find(function(O){return O.getLanguageInfo().getId()===E}))r.setAudioTrack(P,!0),r.setCompositeParam({activeVideoId:J}),a.setActiveSourceId(J)}}),I={};
return _.B("ytw-composite-source-video-overlay",{class:_.B8("ytwCompositeSourceVideoOverlayHost",(I.ytwCompositeSourceVideoOverlayActive=a.active,I.ytwCompositeSourceVideoOverlayInteracting=a.interacting,I)),style:_.sW({left:function(){var J;return((J=a.data().topLeftCornerX)!=null?J:0)*100+"%"},
top:function(){var J;return((J=a.data().topLeftCornerY)!=null?J:0)*100+"%"},
width:function(){var J;return((J=a.data().width)!=null?J:0)*100+"%"},
height:function(){var J;return((J=a.data().height)!=null?J:0)*100+"%"}}),
"on:click":z},_.B("div",{class:"ytwCompositeSourceVideoOverlayOutline"}))},"Ck");var lJP=_.ec(function(a){var z=_.C(_.Af(function(){var N,u=(N=a.data().sources)==null?void 0:N.find(function(E){return E.isActive});
if(u)return u.videoId})),I=z.next().value,J=z.next().value;
z=_.C(_.CW(!1,void 0,"WI4BUb"));var r=z.next().value,P=z.next().value;return _.B("ytw-composite-video-overlay-renderer",{class:"ytwCompositeVideoOverlayRendererHost","on:mouseover":_.g4(function(){P(!0)}),
"on:mouseout":_.g4(function(){P(!1)})},_.B(_.g,{cond:function(){return a.data().sources},
then:function(N){return _.B(_.se,{each:N},function(u){return _.B(LGx,{data:u,active:function(){return u.videoId===I()},
setActiveSourceId:J,interacting:r,playerApi:a.playerApi,sourceVideoConfig:function(){return YOj(a.compositeVideoConfig(),u.videoId)}})})}}))},"Dk");_.mCL=function(a){_.FC.call(this);this.JSC$22817_watchApi=a;a=_.C(_.CW({},void 0,"RgF9Ae"));this.compositeVideoOverlayRenderer=a.next().value;this.setCompositeVideoOverlayRenderer=a.next().value;a=_.C(_.CW({},void 0,"OlaJpc"));this.compositeVideoConfig=a.next().value;this.setCompositeVideoConfig=a.next().value;pW7(this);wWI(this)};
_.b(_.mCL,_.FC);var pW7=function(a){var z=a.JSC$22817_watchApi.subscribe("PLAYER_RESPONSE_UPDATED",function(){wWI(a)});
a.addOnDisposeCallback(function(){a.JSC$22817_watchApi.unsubscribeByKey(z)})},y7x=function(a){var z;
return _.t(function(I){if(I.nextAddress==1)return I.yield(a.JSC$22817_watchApi.playerApi,2);z=I.yieldResult;z.setCompositeVideoOverlayRendererComponent(a.container);_.nu(I)})},kax=function(a){var z;
return _.t(function(I){if(I.nextAddress==1)return I.yield(a.JSC$22817_watchApi.playerApi,2);z=I.yieldResult;z.setCompositeVideoOverlayRendererComponent(void 0);_.nu(I)})},MWa=function(a){var z,I;
return _.t(function(J){if(J.nextAddress==1)return J.yield(a.JSC$22817_watchApi.playerApi,2);z=J.yieldResult;a.container=document.createElement("div");I=_.b1(a.container,function(){return _.B(lJP,{data:a.compositeVideoOverlayRenderer,compositeVideoConfig:a.compositeVideoConfig,playerApi:z})});
a.addOnDisposeCallback(I);_.nu(J)})},wWI=function(a){var z,I,J,r,P,N,u,E;
_.t(function(O){return O.nextAddress==1?(z=a.JSC$22817_watchApi.getPlayerResponse(),P=_.H((I=z)==null?void 0:(J=I.overlay)==null?void 0:(r=J.playerControlsOverlayRenderer)==null?void 0:r.compositeVideoOverlay,Riu),E=(N=z)==null?void 0:(u=N.playerConfig)==null?void 0:u.compositeVideoConfig,P&&a.setCompositeVideoOverlayRenderer(P),E&&a.setCompositeVideoConfig(E),P&&E?a.container?O.jumpTo(6):O.yield(MWa(a),6):c7O(a)?O.yield(kax(a),0):O.jumpTo(0)):c7O(a)?O.jumpTo(0):O.yield(y7x(a),0)})},c7O=function(a){var z;
return!((z=a.container)==null||!z.parentElement)};
_.mCL.prototype.disposeInternal=function(){c7O(this)&&kax(this);_.FC.prototype.disposeInternal.call(this)};_.jh7=function(a){_.FC.call(this);var z=this;this.JSC$22823_watchApi=a;var I=this.JSC$22823_watchApi.subscribe("PLAYER_RESPONSE_UPDATED",function(){var J=z.JSC$22823_watchApi.getPlayerResponse();if(J){var r,P;if(J=_.H((r=J.endscreen)==null?void 0:(P=r.endscreenRenderer)==null?void 0:P.hideButton,_.My)){var N;(N=z.setEndscreenHideButton)==null||N.call(z,J);YSN(z)}}});
this.addOnDisposeCallback(function(){z.JSC$22823_watchApi.unsubscribeByKey(I)});
a=_.C(_.CW({},void 0,"ER3tqb"));this.endscreenHideButton=a.next().value;this.setEndscreenHideButton=a.next().value;qSa(this);e2j(this);aTP(this)};
_.b(_.jh7,_.FC);var YSN=function(a){var z,I;_.t(function(J){if(J.nextAddress==1)return a.creatorEndscreenHideButtonContainer?J.return():J.yield(a.JSC$22823_watchApi.playerApi,2);z=J.yieldResult;a.creatorEndscreenHideButtonContainer=document.createElement("div");_.po(a.creatorEndscreenHideButtonContainer,!1);z.setCreatorEndscreenHideButton(a.creatorEndscreenHideButtonContainer);I=_.b1(a.creatorEndscreenHideButtonContainer,function(){return _.B(_.Wc,{data:a.endscreenHideButton,useOutlinedIcon:!0})});
a.addOnDisposeCallback(function(){I();var r;(r=z)==null||r.setCreatorEndscreenHideButton(void 0)});
_.nu(J)})},qSa=function(a){var z,I;
_.t(function(J){if(J.nextAddress==1)return J.yield(a.JSC$22823_watchApi.playerApi,2);z=J.yieldResult;I=function(){a.creatorEndscreenHideButtonContainer&&_.po(a.creatorEndscreenHideButtonContainer,!0)};
z.addEventListener("endscreenelementshown",I);a.addOnDisposeCallback(function(){var r;(r=z)==null||r.removeEventListener("endscreenelementshown",I)});
_.nu(J)})},e2j=function(a){var z=function(){a.creatorEndscreenHideButtonContainer&&_.po(a.creatorEndscreenHideButtonContainer,!1)},I=a.JSC$22823_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",z),J=a.JSC$22823_watchApi.subscribe("WATCH_NEXT_RESPONSE_RELOADED",z);
a.addOnDisposeCallback(function(){a.JSC$22823_watchApi.unsubscribeByKey(I);a.JSC$22823_watchApi.unsubscribeByKey(J)})},aTP=function(a){a.JSC$22823_watchApi.registerActionHandler("yt-change-creator-endscreen-visibility-command",function(z){var I=_.H(z,TEP);
a.JSC$22823_watchApi.playerApi.then(function(J){J==null||J.setCreatorEndscreenVisibility(!!I.hide)})});
a.addOnDisposeCallback(function(){a.JSC$22823_watchApi.unregisterActionHandler("yt-change-creator-endscreen-visibility-command")})};_.IT4=function(a){_.FC.call(this);this.JSC$22829_watchApi=a;z0L(this)};
_.b(_.IT4,_.FC);var z0L=function(a){var z,I;_.t(function(J){if(J.nextAddress==1)return J.yield(a.JSC$22829_watchApi.playerApi,2);z=J.yieldResult;I=function(r){_.qo().dispatch(_.rg({type:"SET_IS_WATCH_RETRO_MODE",payload:{isWatchRetroMode:r}}))};
z.addEventListener("onRetroModeChanged",I);a.addOnDisposeCallback(function(){z.removeEventListener("onRetroModeChanged",I)});
_.nu(J)})};var X9=0,$g=0,T8=0;var J2a;J2a=new Map([["10",6E5],["15",9E5],["20",12E5],["30",18E5],["45",27E5],["60",36E5]]);_.X5=function(a){_.FC.call(this);this.JSC$22842_watchApi=a;this.selectedOption="Off";this.pauseAutonavPlayback=!1;this.adjustmentsCount=this.presetPauseSchedulerId=this.presetFadeSchedulerId=0;r2j(this)};
_.b(_.X5,_.FC);
var r2j=function(a){var z,I,J;_.t(function(r){if(r.nextAddress==1)return r.yield(a.JSC$22842_watchApi.playerApi,2);z=r.yieldResult;if(a.isDisposed())return r.return();a.sessionStorage=_.oPV("yt-sleep-timer");a.sessionStorage||_.Xd(new _.Fn("SessionStorage for Sleep Timer is undefined."));((I=a.sessionStorage)==null?void 0:I.get("yt-sleep-timer"))==="true"&&(ZZO(),(J=a.sessionStorage)==null||J.remove("yt-sleep-timer"),z.syncVolume());PFG(a,z);ZW9(a,z);CF9(a,z);_.nu(r)})},PFG=function(a,z){var I=function(O){a.onSleepTimerSettingsChanged(O,
z)},J=function(O){a.onPlayerStateChange(O,z)},r=function(){a.onLoopChange(z)},P=function(){a.onCloseMiniplayer(z)},N=function(){IE7(z,(0,_.jp)(),C0j(z),a.selectedOption==="End of video",z.getPlayerState()!==1)},u=function(){a.onSeekComplete(z)},E=function(){_.GW.cancelJob($g);
var O=z.getCurrentTime()>=z.getDuration(),f=a.selectedOption==="End of video"||a.selectedOption==="End of playlist"&&!aEa(a.playlistId);O&&f&&N1N(a,z)};
z.addEventListener("onSleepTimerSettingsChanged",I);z.addEventListener("onLoopChange",r);z.addEventListener("onLoopRangeChange",r);z.addEventListener("onStateChange",J);z.addEventListener("onCloseMiniplayer",P);z.addEventListener("onSleepTimerFeatureAvailable",N);z.addEventListener("SEEK_COMPLETE",u);z.addEventListener("onAdStart",E);a.addOnDisposeCallback(function(){z.removeEventListener("onSleepTimerSettingsChanged",I);z.removeEventListener("onLoopChange",r);z.removeEventListener("onLoopRangeChange",
r);z.removeEventListener("onStateChange",J);z.removeEventListener("onCloseMiniplayer",P);z.removeEventListener("onSleepTimerFeatureAvailable",N);z.removeEventListener("SEEK_COMPLETE",u);z.removeEventListener("onAdStart",E)})},ZW9=function(a,z){var I=a.JSC$22842_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){a:{var J=z.getVideoData().video_id,r,P=(r=qOL(a.JSC$22842_watchApi))==null?void 0:r.playlistId;
a.pauseAutonavPlayback&&(z.pauseVideo(),z.syncVolume(),a.pauseAutonavPlayback=!1);if(a.selectedOption==="End of video"&&J!==a.videoId)TA(a,z);else{if(a.selectedOption==="End of playlist"){r=aEa(a.playlistId);if(P!==a.playlistId){TA(a,z);break a}r?r&&tJ9(a,z):upP(a,z)}a.videoId=J;a.playlistId=P}}});
a.addOnDisposeCallback(function(){a.JSC$22842_watchApi.unsubscribeByKey(I)})},CF9=function(a,z){var I=_.ab().resolve(_.mP),J=_.QT(I,_.LhG,function(P){P&&a.selectedOption!=="Off"&&TA(a,z)}),r=a.JSC$22842_watchApi.subscribeToActiveChanged(function(P){var N,u;
return _.t(function(E){if(E.nextAddress==1)return E.yield(_.hq().navigationFinishPromise,2);N=!_.FVI();u=_.ab().resolve(_.UJ).isMiniplayerActive();P||!G8(a.selectedOption)||u||N||TA(a,z);_.nu(E)})},!1);
I=_.QT(I,function(P){return P.entities.playlistLoopStateEntity||{}},function(P){P=P===void 0?{}:P;
var N=ev4(a.JSC$22842_watchApi);if(N){var u;((u=P[N])==null?void 0:u.state)==="PLAYLIST_LOOP_STATE_ALL"&&G8(a.selectedOption)&&TA(a,z)}});
a.addOnDisposeCallback(J);a.addOnDisposeCallback(I);a.addOnDisposeCallback(r)};
_.X5.prototype.onSleepTimerSettingsChanged=function(a,z){switch(a){case "Off":this.selectedOption!=="Off"&&TA(this,z);break;case "End of video":case "End of playlist":EXG(this,a,z);break;default:EXG(this,a,z,J2a.get(a))}};
_.X5.prototype.onLoopChange=function(a){(a.getLoopVideo()||a.getLoopRange())&&G8(this.selectedOption)&&TA(this,a)};
_.X5.prototype.onCloseMiniplayer=function(a){G8(this.selectedOption)&&TA(this,a)};
var EXG=function(a,z,I,J){B1P(a,I);a.selectedOption=z;a.videoId=I.getVideoData().video_id;a.playlistId="";var r;(r=a.sessionStorage)==null||r.set("yt-sleep-timer","true");a.adjustmentsCount++;IE7(I,(0,_.jp)(),C0j(I),a.selectedOption==="End of video");if(a.selectedOption==="End of video")upP(a,I),gXu(a,I);else if(a.selectedOption==="End of playlist"){gXu(a,I);var P,N;a.playlistId=(N=(P=qOL(a.JSC$22842_watchApi))==null?void 0:P.playlistId)!=null?N:"";aEa(a.playlistId)||upP(a,I)}else J&&(a.presetFadeSchedulerId=
_.xc(_.GW,function(){re9(I,15E3)},J-15E3),a.presetPauseSchedulerId=_.xc(_.GW,function(){N1N(a,I)},J),Jex(I,(0,_.jp)(),J))},N1N=function(a,z){if(a.JSC$22842_watchApi.isActive()){var I={dismissDialogEndpoint:{}};
var J={commandExecutorCommand:{commands:[I,{watchPlayerOverflowMenuCommand:{openMenuItemKey:"menu_item_sleep_timer"}}]}};I={buttonViewModel:{title:_.AR("CLOSE"),style:"BUTTON_VIEW_MODEL_STYLE_MONO",type:"BUTTON_VIEW_MODEL_TYPE_FILLED",onTap:{innertubeCommand:I}}};J={buttonViewModel:{title:_.AR("SLEEP_TIMER_ADD_TIME_LABEL"),style:"BUTTON_VIEW_MODEL_STYLE_MONO",type:"BUTTON_VIEW_MODEL_TYPE_TONAL",onTap:{innertubeCommand:J}}};var r={dialogHeaderViewModel:{headline:{content:_.AR("SLEEP_TIMER_ENDED_TITLE")}}},
P={basicContentViewModel:{paragraphs:[{text:{content:_.AR("SLEEP_TIMER_ENDED_TEXT")}}]}};I={showDialogCommand:{panelLoadingStrategy:{inlineContent:{dialogViewModel:{header:r,content:P,footer:{panelFooterViewModel:{primaryButton:I,secondaryButton:J,shouldHideDivider:!0}}}}}}};_.ab().resolve(_.j6).resolveCommand(I,{form:{element:a}})}else ZZO();OW4(a,!1);fT4(a,z);z.pauseVideo();_.PS.getInstance().getState()===2&&z.getPlayerState()===5&&(a.pauseAutonavPlayback=!0)},TA=function(a,z){OW4(a,!0);
fT4(a,z);ZZO()},fT4=function(a,z){B1P(a,z);
a.selectedOption="Off";a.videoId="";a.playlistId="";a.adjustmentsCount=0;var I;(I=a.sessionStorage)==null||I.remove("yt-sleep-timer");_.GW.cancelJob(X9);z.resetSleepTimerMenuSettings()},OW4=function(a,z){z={timer_length_adjustment_times_during_session:a.adjustmentsCount-1,
is_session_cancelled:z};switch(a.selectedOption){case "Off":z.option_type="SLEEP_TIMER_OPTION_TYPE_OFF";break;case "End of video":z.option_type="SLEEP_TIMER_OPTION_TYPE_END_OF_VIDEO";break;case "End of playlist":z.option_type="SLEEP_TIMER_OPTION_TYPE_END_OF_PLAYLIST";break;default:z.option_type="SLEEP_TIMER_OPTION_TYPE_FIXED_MINUTES_DURATION",z.option_duration_in_minutes=J2a.get(a.selectedOption)/6E4}_.x0("sleepTimerSessionFinishEvent",z)};
_.X5.prototype.onPlayerStateChange=function(a,z){a===1?IE7(z,(0,_.jp)(),C0j(z),this.selectedOption==="End of video"):a===0?(_.GW.cancelJob($g),z.setVideoTimeLeft(zit(0,0))):a===2&&_.GW.cancelJob($g);this.selectedOption==="End of video"?a===0?N1N(this,z):a===2&&P04(z):this.selectedOption!=="End of playlist"||aEa(this.playlistId)||(a===0?N1N(this,z):a===2&&P04(z))};
_.X5.prototype.onSeekComplete=function(a){a.getPlayerState()===2&&IE7(a,(0,_.jp)(),C0j(a),this.selectedOption==="End of video",!0)};
_.X5.prototype.onCueRangeEnter=function(a,z){a==="sleep-timer-fade-audio"&&re9(z,(z.getDuration()-z.getProgressState().current)*1E3)};
_.X5.prototype.onCueRangeExit=function(a,z){a==="sleep-timer-fade-audio"&&z.getPlayerState()!==0&&P04(z,!0)};
var upP=function(a,z){z.addCueRange("sleep-timer-fade-audio",z.getDuration()-15,z.getDuration());z.addEventListener("onCueRangeEnter",function(I){a.onCueRangeEnter(I,z)});
z.addEventListener("onCueRangeExit",function(I){a.onCueRangeExit(I,z)})},tJ9=function(a,z){z.removeCueRange("sleep-timer-fade-audio");
z.removeEventListener("onCueRangeEnter",function(I){a.onCueRangeEnter(I,z)});
z.removeEventListener("onCueRangeExit",function(I){a.onCueRangeExit(I,z)})},B1P=function(a,z){G8(a.selectedOption)?tJ9(a,z):(_.GW.cancelJob(a.presetPauseSchedulerId),_.GW.cancelJob(a.presetFadeSchedulerId),a.presetPauseSchedulerId=0,a.presetFadeSchedulerId=0);
P04(z,!0)},gXu=function(a,z){z.setLoop(!1);
z.setLoopVideo(!1);z.setLoopRange(null);(a=ev4(a.JSC$22842_watchApi))&&_.ab().resolve(_.mP).dispatch(_.Q0("playlistLoopStateEntity",a,{key:a,state:"PLAYLIST_LOOP_STATE_NONE"}))};_.KAL=function(a){_.FC.call(this);this.JSC$22845_watchApi=a;A2O(this);sh9(this);nXt(this);a=a.getRoot();if(a.is==="ytd-watch-flexy"||a.is==="ytd-watch-grid")a.onTheaterReduxValueUpdate(this.getState());this.getState()&&_.VII();_.K("web_watch_log_theater_mode_cookie_state")&&_.f1.get("wide","0")==="1"&&_.vH3("GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_USER_HAS_THEATER_MODE_COOKIE_ENABLED")};
_.b(_.KAL,_.FC);var A2O=function(a){var z,I;_.t(function(J){if(J.nextAddress==1)return J.yield(a.JSC$22845_watchApi.playerApi,2);z=J.yieldResult;I=function(r){FAa(a,!!r)};
z.addEventListener("SIZE_CLICKED",I);a.addOnDisposeCallback(function(){z.removeEventListener("SIZE_CLICKED",I)});
_.nu(J)})},sh9=function(a){a.JSC$22845_watchApi.registerActionHandler("yt-toggle-theater-mode",function(z,I){FAa(a,z,I===void 0?!0:I)});
a.addOnDisposeCallback(function(){a.JSC$22845_watchApi.unregisterActionHandler("yt-toggle-theater-mode")})};
_.KAL.prototype.getState=function(){return _.Td(_.qo().getState())};
var FAa=function(a,z,I){I=I===void 0?!0:I;var J,r,P,N=_.K("enable_player_resize_transition")&&!!a.JSC$22845_watchApi.getWatchNextResponse()&&!((J=a.JSC$22845_watchApi.getWatchNextResponse())==null?0:(r=J.contents)==null?0:(P=r.twoColumnWatchNextResults)==null?0:P.conversationBar);_.wWV(function(){_.qo().dispatch(_.rg({type:"SET_IS_THEATER_MODE",payload:{isTheaterMode:z}}));_.K("theater_mode_scroll_to_top_killswitch")||a.JSC$22845_watchApi.scrollWatchTo(0,!1);_.jE()&&_.K("external_fullscreen")&&_.zb(document.documentElement);
nXt(a);I&&_.AP("wide",z?"1":"0",-1);_.ZF(a.JSC$22845_watchApi.getRoot(),"yt-close-popup-action",["yt-tooltip-renderer"]);a.JSC$22845_watchApi.dispatchEvent("yt-set-theater-mode-enabled",{enabled:z});z&&_.VII()},{shouldWrap:N})},nXt=function(a){var z;
_.t(function(I){if(I.nextAddress==1)return I.yield(a.JSC$22845_watchApi.playerApi,2);z=I.yieldResult;z.setSizeStyle(!0,a.getState());_.nu(I)})};var h09=function(a){_.FC.call(this);var z=this;this.playerApi=a;this.timeToPanelSyncKeyMap={};var I;if(a==null?0:(I=a.isReady)==null?0:I.call(a)){I=_.QT(_.ab().resolve(_.mP),function(r){return r.entities.timedMarkersListSyncEntity||{}},function(r,P){r=r===void 0?{}:r;
P=P===void 0?{}:P;for(var N=_.C(Object.keys(P)),u=N.next();!u.done;u=N.next())u=u.value,r[u]!==P[u]&&HW4(z,P[u]);P=_.C(Object.keys(r));for(N=P.next();!N.done;N=P.next())N=N.value,u=r[N],z.timeToPanelSyncKeyMap[N]&&bW9(z,u)});
this.addOnDisposeCallback(I);var J=function(r){z.onCueRangeEnter(r)};
a.addEventListener("onCueRangeEnter",J);this.addOnDisposeCallback(function(){var r;(r=a.removeEventListener)==null||r.call(a,"onCueRangeEnter",J)})}};
_.b(h09,_.FC);
var bW9=function(a,z){var I,J;if((I=a.playerApi)==null?0:(J=I.isReady)==null?0:J.call(I)){var r;if((I=z==null?void 0:(r=z.timedListData)==null?void 0:r.sections)&&z!=null&&z.key)for(r=_.C(I),I=r.next();!I.done;I=r.next())if(I=I.value,I.timedSyncDataList&&I.sectionId)for(J=0;J<I.timedSyncDataList.length;J++){var P=I.timedSyncDataList[J];P.syncItemId&&a.playerApi.addCueRange(I.sectionId+"_"+z.key+"_"+P.syncItemId,Number(P.videoTimeMs)/1E3,J===I.timedSyncDataList.length-1?0x8000000000000:Number(I.timedSyncDataList[J+
1].videoTimeMs)/1E3)}}},HW4=function(a,z){var I,J;
if((I=a.playerApi)==null?0:(J=I.isReady)==null?0:J.call(I)){var r;if((I=z==null?void 0:(r=z.timedListData)==null?void 0:r.sections)&&z!=null&&z.key)for(r=_.C(I),I=r.next();!I.done;I=r.next())if(I=I.value,I.timedSyncDataList&&I.sectionId){J=_.C(I.timedSyncDataList);for(var P=J.next();!P.done;P=J.next())P=P.value,P.syncItemId&&a.playerApi.removeCueRange(I.sectionId+"_"+z.key+"_"+P.syncItemId)}}};
h09.prototype.onCueRangeEnter=function(a){for(var z=_.C(Object.keys(this.timeToPanelSyncKeyMap)),I=z.next();!I.done;I=z.next()){I=I.value;var J=_.C(a.split("_"+I+"_")),r=J.next().value;J=J.next().value;if(r&&J){a=_.ab().resolve(_.mP);z=this.timeToPanelSyncKeyMap[I];var P=_.vb1(a.getState(),z);I=VJL(I,r,J);if(I===-1)break;I={activeSyncId:J,activeItemIndex:I,activeSectionInfo:{sectionIdentifier:r}};P?a.dispatch(_.XK("markersEngagementPanelSyncEntity",z,I)):a.dispatch(_.Q0("markersEngagementPanelSyncEntity",
z,Object.assign({},{key:z},I)));break}}};
var VJL=function(a,z,I){var J=_.ab().resolve(_.mP),r,P;a=(r=KX9(J.getState(),a))==null?void 0:(P=r.timedListData)==null?void 0:P.sections;if(!a)return-1;r=0;P=_.C(a);for(a=P.next();!a.done;a=P.next()){a=a.value;J=a.timedSyncDataList||[];if(a.sectionId===z)return z=J.findIndex(function(N){return N.syncItemId===I}),z===-1?z:r+z;
r+=J.length}return-1};_.iW9=function(a){_.FC.call(this);var z=this;this.JSC$22858_watchApi=a;this.unresolvedCommands=[];this.JSC$22858_watchApi.registerActionHandler("yt-update-timed-markers-sync-observer-command",function(I){Qha(z,I)});
this.addOnDisposeCallback(function(){z.JSC$22858_watchApi.unregisterActionHandler("yt-update-timed-markers-sync-observer-command")});
SfI(this)};
_.b(_.iW9,_.FC);var SfI=function(a){var z;_.t(function(I){if(I.nextAddress==1)return I.yield(a.JSC$22858_watchApi.playerApi,2);z=I.yieldResult;if(a.isDisposed())return I.return();a.timedSyncObserver=new h09(z);a.unresolvedCommands.length&&(a.unresolvedCommands.forEach(function(J){return Qha(a,J)}),a.unresolvedCommands=[]);
_.t7(a,a.timedSyncObserver);_.nu(I)})},Qha=function(a,z){if(a.timedSyncObserver){var I=_.H(z,WzN);
if(I&&I.timedSyncEntityKey&&I.panelSyncEntityKey){a=a.timedSyncObserver;z=I.timedSyncEntityKey;var J=I.panelSyncEntityKey;I=!!I.isEnabled;I=I===void 0?!0:I;var r=_.ab().resolve(_.mP);r=KX9(r.getState(),z);I?a.timeToPanelSyncKeyMap[z]||(a.timeToPanelSyncKeyMap[z]=J,bW9(a,r)):(delete a.timeToPanelSyncKeyMap[z],HW4(a,r))}}else a.unresolvedCommands.push(z)};var xI9=_.ec(function(a){var z=a.data,I=a.maybeLogSmartSkipClientData,J=null,r=null,P=_.K("web_enable_auto_focus_for_timely_action_button"),N=function(){J=document.activeElement},u=function(){z().smartSkipMetadata&&(J=document.activeElement,_.c8z(function(){return r}))},E=function(f){if(z().smartSkipMetadata&&(!f||f.key!=="Enter")){J&&J.isConnected&&(_.c8z(function(){return J}),J=null);
var A;(A=r)==null||A.blur()}};
a=_.g4(function(){I==null||I(!0,z());return!1});
var O=_.a5(_.UN(function(){return z().rendererContext},{onTap:function(f,A){A({disableClickTracking:!0})}}),_.z$({visibilityCallback:function(f){if(P)f?r&&z().smartSkipMetadata&&(u(),document.addEventListener("focusin",N)):(document.removeEventListener("focusin",N),E());
else if(f){f=_.Wn(z().rendererContext);var A=Number(z().maxVisibleDurationMilliseconds),n,F=(n=_.H(z().rendererContext,_.Vw))==null?void 0:n.label;f&&A&&F&&(n={label:F,command:f,durationMs:A},_.ab().resolve(_.xn).enqueue(n))}},
showOption:{calledOnce:!1,state:"visible"},hideOption:{calledOnce:!1,state:"hidden"}}));_.hD(function(){if(P){var f;if((r=(f=O.value)==null?void 0:f.querySelector("button"))&&z().smartSkipMetadata){var A;(A=O.value)==null||A.addEventListener("keydown",E)}}});
_.V3(function(){P&&(r&&z().smartSkipMetadata&&r.removeEventListener("keydown",E),document.removeEventListener("focusin",N),E())});
return _.B("ytw-timely-action-view-model",{class:"ytwTimelyActionViewModelHost",el:O,"on:click":a},_.B(_.V0,{data:function(){return z().content}},{buttonViewModel:_.At}))},"Ek");var vXI=_.ec(function(a){var z=a.data,I=a.playerApi,J=_.ab().resolve(_.dOV);a=_.C(_.Af(function(){z()}));
var r=a.next().value,P=a.next().value,N=function(){return tfL(z(),r())},u=function(O,f){var A,n,F=(A=_.H(f==null?void 0:f.rendererContext,_.FJ))==null?void 0:(n=A.loggingDirectives)==null?void 0:n.trackingParams;
if((f=f==null?void 0:f.smartSkipMetadata)&&f.loggingData&&(n=f.loggingData,f=n.algorithmId,A=n.startMilliseconds,n=n.endMilliseconds,f&&A!==void 0&&n!==void 0)){var h,v;O={smartSkipData:Object.assign({},{versionName:f,startMediaTimeMs:A,endMediaTimeMs:n},O&&{userInteractionMediaTimeMs:(Math.floor(((h=_.zI())==null?void 0:(v=h.getPlayer())==null?void 0:v.getCurrentTime())||0)*1E3).toString()})};h=_.TX();var d;F&&(d=_.VX(F));h&&d&&_.M$(h,d,O)}},E=function(O,f){var A=tfL(z(),O);
if(A){var n=_.H(A,dC),F;if(F=f)F=I(),A=_.H(A,dC),F=A!=null&&A.smartSkipMetadata?!(F==null?0:F.isSameMarkerTypeVisible((A==null?void 0:A.smartSkipMetadata.markerKey)||"")):!0;if(F){var h,v;(n==null?0:(h=n.smartSkipMetadata)==null?0:(v=h.loggingData)==null?0:v.isCounterfactual)||(u(!1,n),P(O))}else f||r()!==O||P(void 0)}};
_.h2(function(){var O=z().timelyActions;if(O){O=_.C(O);for(var f=O.next();!f.done;f=O.next()){f=_.H(f.value,dC);var A=void 0;(A=f)!=null&&A.cueRangeId&&J.timelyActionsMap.set(f.cueRangeId,E)}_.V3(function(){J.timelyActionsMap.clear()})}},"Z1Qwtc");
return _.B("ytw-timely-actions-overlay-view-model",{class:"ytwTimelyActionsOverlayViewModelHost"},_.B(_.V0,{data:N},{timelyActionViewModel:function(O){return _.B(xI9,{data:O.data,maybeLogSmartSkipClientData:function(){u(!0,_.H(N(),dC))}})}}))},"Fk");_.$I7=function(a){_.FC.call(this);this.JSC$22870_watchApi=a;a=_.C(_.CW({},void 0,"UN7k5e"));this.timelyActionsOverlay=a.next().value;this.setTimelyActionsOverlay=a.next().value;GeP(this)};
_.b(_.$I7,_.FC);var GeP=function(a){var z,I,J,r;_.t(function(P){if(P.nextAddress==1)return XgG(a),T19(a),a.timelyActionsContainer=document.createElement("div"),P.yield(a.JSC$22870_watchApi.playerApi,2);z=P.yieldResult;(J=(I=z).insertTimelyActionUi)==null||J.call(I,a.timelyActionsContainer);r=_.b1(a.timelyActionsContainer,function(){return _.B(vXI,{data:a.timelyActionsOverlay,playerApi:z})});
a.addOnDisposeCallback(r);_.nu(P)})},T19=function(a){var z=a.JSC$22870_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){XgG(a)});
a.addOnDisposeCallback(function(){a.JSC$22870_watchApi.unsubscribeByKey(z)})},XgG=function(a){var z=a.JSC$22870_watchApi.getWatchNextResponse();
if(z){var I,J;if(z=_.H((I=z.playerOverlays)==null?void 0:(J=I.playerOverlayRenderer)==null?void 0:J.timelyActionsOverlayViewModel,oZG)){var r;(r=a.setTimelyActionsOverlay)==null||r.call(a,z)}}};_.WAN=function(a){_.FC.call(this);this.JSC$22874_watchApi=a;dIj(this)};
_.b(_.WAN,_.FC);var dIj=function(a){var z,I;_.t(function(J){if(J.nextAddress==1)return J.yield(a.JSC$22874_watchApi.playerApi,2);z=J.yieldResult;I=function(r){_.Og.instance.resolveCommand({openPopupAction:{popup:{notificationActionRenderer:_.H(r,_.lqZ)},popupType:"TOAST"}})};
z.addEventListener("onYtShowToast",I);a.addOnDisposeCallback(function(){z.removeEventListener("onYtShowToast",I)});
_.nu(J)})};var oXG,R0L,mIN,UI9,DIx,wg7,lTI,pgt,y2N,kej;oXG=!1;_.LA9=function(a){_.FC.call(this);this.JSC$22877_watchApi=a;this.fullscreen=this.theater=!1;UI9(this);DIx(this);R0L(this)};
_.b(_.LA9,_.FC);R0L=function(a){var z,I,J;_.t(function(r){if(r.nextAddress==1)return r.yield(a.JSC$22877_watchApi.playerApi,2);z=r.yieldResult;if(a.isDisposed())return r.return();I=a.JSC$22877_watchApi.getElement("CINEMATICS");if(!I)return r.return();a.JSC$22877_cinematicController=new _.ZS(I,z);_.t7(a,a.JSC$22877_cinematicController);_.u04(a.JSC$22877_cinematicController);lTI(a,_.spM());J=a.JSC$22877_cinematicController.subscribe("CINEMATICS_ALLOWED_CHANGED",function(P){pgt(a,P)});
a.addOnDisposeCallback(function(){a.JSC$22877_watchApi.unsubscribeByKey(J)});
wg7(a);pgt(a,a.JSC$22877_cinematicController.isAllowed());_.K("web_cinematic_manager_redux_killswitch")?_.dw(a,a.fullscreen,a.theater):mIN(a);y2N(a);_.nu(r)})};
mIN=function(a){a.fullscreen=_.d4(_.qo().getState());a.theater=_.Td(_.qo().getState());_.dw(a,a.fullscreen,a.theater);var z=_.QT(_.qo(),_.d4,function(J){a.fullscreen=J;_.dw(a,a.fullscreen,a.theater)}),I=_.QT(_.qo(),_.Td,function(J){a.theater=J;
_.dw(a,a.fullscreen,a.theater)});
a.addOnDisposeCallback(z);a.addOnDisposeCallback(I)};
UI9=function(a){var z=a.JSC$22877_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){wg7(a)});
a.addOnDisposeCallback(function(){a.JSC$22877_watchApi.unsubscribeByKey(z)})};
DIx=function(a){var z,I;_.t(function(J){if(J.nextAddress==1)return J.yield(a.JSC$22877_watchApi.playerApi,2);z=J.yieldResult;I=function(r){lTI(a,r)};
z.addEventListener("cinematicSettingsToggleChange",I);a.addOnDisposeCallback(function(){z.removeEventListener("cinematicSettingsToggleChange",I)});
_.nu(J)})};
wg7=function(a){var z=a.JSC$22877_watchApi.getWatchNextResponse(),I;z=_.H(z==null?void 0:(I=z.pageVisualEffects)==null?void 0:I[0],_.$W);var J;(J=a.JSC$22877_cinematicController)==null||_.B$j(J,z)};
lTI=function(a,z){var I;(I=a.JSC$22877_cinematicController)==null||_.E7t(I,z);kej(a)};
pgt=function(a,z){var I;_.t(function(J){if(J.nextAddress==1)return _.K("kevlar_watch_cinematics_invisible")&&(z=!1),J.yield(a.JSC$22877_watchApi.playerApi,2);I=J.yieldResult;I.updateCinematicSettings(z);kej(a);_.nu(J)})};
y2N=function(a){var z=_.Kt();if(_.K("kevlar_measure_ambient_mode_idle")&&!z.getFlag(192)&&!oXG){oXG=!0;var I=_.b9(_.GW,function(){_.ab().resolve(_.dLe).start(1E4)},5E3);
a.addOnDisposeCallback(function(){_.GW.cancelJob(I);_.ab().resolve(_.dLe).stop()})}};
_.dw=function(a,z,I){a.fullscreen=z;a.theater=I;var J;(J=a.JSC$22877_cinematicController)==null||J.setFullscreen(a.fullscreen,a.theater);if(_.K("web_cinematics_pausing")&&!document.documentElement.hasAttribute("dark"))if(a.theater||a.fullscreen){var r;(r=a.JSC$22877_cinematicController)==null||_.g7j(r)}else if((a=a.JSC$22877_cinematicController)!=null){var P;(P=a.currentCinematicEffect)==null||P.pause()}};
kej=function(a){if(_.K("web_cinematic_theater_mode")||_.K("web_cinematic_fullscreen")){var z;a.JSC$22877_watchApi.getRoot().toggleCinematicsActive(!((z=a.JSC$22877_cinematicController)==null||!z.isEnabled()))}};_.qf9=function(a){_.FC.call(this);var z=this;this.JSC$22880_watchApi=a;this.commentsReady=!1;this.setCommentsJobId=0;a=_.QT(_.qo(),_.iS,function(){MJL(z)});
this.addOnDisposeCallback(a);var I=this.JSC$22880_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){c2u(z)}),J=this.JSC$22880_watchApi.subscribe("WATCH_NEXT_RESPONSE_RELOADED",function(){c2u(z)});
this.addOnDisposeCallback(function(){z.JSC$22880_watchApi.unsubscribeByKey(I);z.JSC$22880_watchApi.unsubscribeByKey(J)});
var r=function(){_.K("kevlar_cancel_scheduled_comment_jobs_on_navigate")&&Yfx(z,"false")};
this.JSC$22880_watchApi.getRoot().addEventListener("yt-page-data-will-update",r);this.addOnDisposeCallback(function(){z.JSC$22880_watchApi.getRoot().removeEventListener("yt-page-data-will-update",r)});
c2u(this)};
_.b(_.qf9,_.FC);var c2u=function(a){a.commentsReady=!1;_.GW.cancelJob(a.setCommentsJobId);a.setCommentsJobId=_.b9(_.GW,function(){MJL(a)},1E3)},MJL=function(a){if(!a.commentsReady){_.Xz("cmi");
_.GW.cancelJob(a.setCommentsJobId);var z,I,J,r,P=(z=a.JSC$22880_watchApi.getWatchNextResponse())==null?void 0:(I=z.contents)==null?void 0:(J=I.twoColumnWatchNextResults)==null?void 0:(r=J.results)==null?void 0:r.results.contents;z=void 0;if(P&&P.length)for(P=_.C(P),I=P.next();!I.done;I=P.next())if(I=I.value,r=J=void 0,((J=I)==null?void 0:(r=J.itemSectionRenderer)==null?void 0:r.sectionIdentifier)==="comment-item-section"){_.K("web_watch_provide_undefined_comments")?z=I.itemSectionRenderer:a.JSC$22880_watchApi.provideRenderingData("COMMENTS",
I.itemSectionRenderer);Yfx(a,"true");break}_.K("web_watch_provide_undefined_comments")&&a.JSC$22880_watchApi.provideRenderingData("COMMENTS",z);a.commentsReady=!0;a.JSC$22880_watchApi.dispatchEvent("yt-watch-comments-ready")}},Yfx=function(a,z){var I;
(I=a.JSC$22880_watchApi.getElement("COMMENTS"))==null||I.setAttribute("canScheduleJobs",z)};_.IHx=function(a){_.FC.call(this);var z=this;this.JSC$22883_watchApi=a;this.providePlayerJobId=this.provideWatchNextJobId=this.provideRichGridJobId=0;this.directlyProvideComments=_.K("swatcheroo_directly_provide_comments");this.provideWatchNextSecondaryResults=_.K("web_watch_provide_secondary_results_renderer");this.swatcherooProvideAllDataOnScheduledJob=_.K("swatcheroo_provide_all_data_on_scheduled_job");this.provideAllDataDelayMs=_.Ib("swatcheroo_provide_all_data_delay_ms",250);if(this.swatcherooProvideAllDataOnScheduledJob)e0t(this);
else{var I=this.JSC$22883_watchApi.subscribe("PLAYER_RESPONSE_UPDATED",function(){aHu(z);Wj(z)}),J=this.JSC$22883_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){on(z);
Wj(z)});
this.JSC$22883_watchApi.getRoot().is==="ytd-watch-grid"&&_.K("swatcheroo_pbs_load_grid")&&(jLI(this),zx9(this));this.addOnDisposeCallback(function(){z.JSC$22883_watchApi.unsubscribeByKey(I);z.JSC$22883_watchApi.unsubscribeByKey(J);_.GW.cancelJob(z.provideRichGridJobId)});
aHu(this);on(this)}};
_.b(_.IHx,_.FC);var e0t=function(a){var z=a.JSC$22883_watchApi.subscribe("PLAYER_RESPONSE_UPDATED",function(){a.providePlayerJobId=_.hE(_.GW,function(){aHu(a);Wj(a)},a.provideAllDataDelayMs)}),I=a.JSC$22883_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){a.provideWatchNextJobId=_.hE(_.GW,function(){on(a);
Wj(a)},a.provideAllDataDelayMs)}),J=a.JSC$22883_watchApi.subscribe("WATCH_NEXT_RESPONSE_RELOADED",function(){a.provideWatchNextJobId=_.hE(_.GW,function(){on(a);
Wj(a)},a.provideAllDataDelayMs)});
a.JSC$22883_watchApi.registerActionHandler("yt-pending-navigation-cancelled",function(){_.b9(_.GW,function(){aHu(a);on(a);Wj(a)},100)});
a.JSC$22883_watchApi.addPageDisposeJob(function(){_.GW.cancelJob(a.provideWatchNextJobId);_.GW.cancelJob(a.providePlayerJobId)});
a.addOnDisposeCallback(function(){a.JSC$22883_watchApi.unregisterActionHandler("yt-pending-navigation-cancelled");a.JSC$22883_watchApi.unsubscribeByKey(z);a.JSC$22883_watchApi.unsubscribeByKey(I);a.JSC$22883_watchApi.unsubscribeByKey(J);_.GW.cancelJob(a.providePlayerJobId);_.GW.cancelJob(a.provideWatchNextJobId)});
aHu(a);on(a)},aHu=function(a){var z=a.JSC$22883_watchApi.getPlayerResponse(),I,J,r=(J=z==null?void 0:(I=z.playabilityStatus)==null?void 0:I.messageRenderers)!=null?J:[],P,N;
z=(N=z==null?void 0:(P=z.playabilityStatus)==null?void 0:P.messages)!=null?N:[];P=_.C(z);for(N=P.next();!N.done;N=P.next())r.push({alertRenderer:{text:_.Mo(N.value),type:"WARNING"}});a.JSC$22883_watchApi.provideRenderingData("ALERTS",r)},on=function(a){var z=[],I,J,r,P=a.JSC$22883_watchApi.getWatchNextResponse(),N,u,E,O,f=P==null?void 0:(N=P.contents)==null?void 0:(u=N.twoColumnWatchNextResults)==null?void 0:(E=u.results)==null?void 0:(O=E.results)==null?void 0:O.contents;
if(f)for(N=_.C(f),u=N.next();!u.done;u=N.next())if(u=u.value,u.videoPrimaryInfoRenderer)var A=u;else if(u.videoSecondaryInfoRenderer){var n=u;O=E=void 0;u=Object.assign({},(E=u.videoSecondaryInfoRenderer)==null?void 0:(O=E.metadataRowContainer)==null?void 0:O.metadataRowContainerRenderer);if(u.rows&&u.collapsedItemCount!==void 0){u.rows=u.rows.slice(0,u.collapsedItemCount).filter(function(jf){return!!jf.richMetadataRowRenderer});
u.collapsedItemCount=u.rows.length;var F={metadataRowContainerRenderer:u}}}else if(u.merchandiseShelfRenderer)var h=u;else if(u.ticketShelfRenderer)var v=u;else if(u.expandableMetadataRenderer)var d=u;else if(u.itemSectionRenderer)if(E=u.itemSectionRenderer.contents,O=void 0,a.directlyProvideComments&&((O=u.itemSectionRenderer)==null?void 0:O.sectionIdentifier)==="comment-item-section")_.Xz("cmi"),a.JSC$22883_watchApi.provideRenderingData("COMMENTS",u.itemSectionRenderer);else if(E)for(u=_.C(E),E=
u.next();!E.done;E=u.next())if(E=E.value,E.commentsEntryPointHeaderRenderer)var W=E;else if(E.clarificationRenderer||E.infoPanelContainerRenderer||E.infoPanelContentRenderer||E.emergencyOneboxRenderer){z.push(E);var l=l||!!n}else E.limitedStateMessageRenderer?J=E:E.videoMetadataCarouselViewModel&&(r=E);if(_.K("web_watch_merch_in_sd_when_ticket_shelf_present")&&h&&v){var q=h;h=void 0}if(a.provideWatchNextSecondaryResults){var m,M,y;a.JSC$22883_watchApi.provideRenderingData("WATCH_NEXT_SECONDARY_RESULTS",
P==null?void 0:(m=P.contents)==null?void 0:(M=m.twoColumnWatchNextResults)==null?void 0:(y=M.secondaryResults)==null?void 0:y.secondaryResults)}if(a.JSC$22883_watchApi.getRoot().is==="ytd-watch-grid"){var e,Bp;a.JSC$22883_watchApi.provideRenderingData("LIVE_CHAT",P==null?void 0:(e=P.contents)==null?void 0:(Bp=e.twoColumnWatchNextResults)==null?void 0:Bp.conversationBar)}var Em,nG,bG,Hp;(m=P==null?void 0:(Em=P.contents)==null?void 0:(nG=Em.twoColumnWatchNextResults)==null?void 0:(bG=nG.secondaryResults)==
null?void 0:(Hp=bG.secondaryResults)==null?void 0:Hp.offerModule)&&(m.donationShelfRenderer||m.donationUnavailableRenderer)&&a.JSC$22883_watchApi.getRoot().is!=="ytd-watch-grid"&&(I=m);Em=a.JSC$22883_watchApi.getPlayerResponse();if(!Em||!_.DPi(Em.playabilityStatus,P==null?void 0:P.playerOverlays)){var LG;if(P==null?0:(LG=P.contents)==null?0:LG.singleColumnWatchNextResults){var oE,Pe;var TJ=P==null?void 0:(oE=P.contents.singleColumnWatchNextResults.results)==null?void 0:(Pe=oE.results)==null?void 0:
Pe.contents}else{var Be,eM,Ao,gf;LG=!!(f==null?0:(Be=f[0])==null?0:(eM=Be.itemSectionRenderer)==null?0:(Ao=eM.contents)==null?0:(gf=Ao[0])==null?0:gf.backgroundPromoRenderer);var GJ,Sf;Be=!!(P==null?0:(GJ=P.contents)==null?0:(Sf=GJ.twoColumnWatchNextResults)==null?0:Sf.secondaryResults);LG&&!Be&&(TJ=f)}}f=z[0];GJ=z[1];l&&z.length===1&&(GJ=f,f=void 0);a.JSC$22883_watchApi.provideRenderingData("PRIMARY_INFO",A);a.JSC$22883_watchApi.provideRenderingData("SECONDARY_INFO",n);a.JSC$22883_watchApi.provideRenderingData("COMMENTS_ENTRY_POINT_HEADER",
W);a.JSC$22883_watchApi.provideRenderingData("VIDEO_METADATA_CAROUSEL",r);a.JSC$22883_watchApi.provideRenderingData("CLARIFICATION",f);a.JSC$22883_watchApi.provideRenderingData("RICH_METADATA",F);a.JSC$22883_watchApi.provideRenderingData("MERCH_SHELF",h);_.K("web_watch_merch_in_sd_when_ticket_shelf_present")&&a.JSC$22883_watchApi.provideRenderingData("MERCH_SHELF_IN_SD",q);a.JSC$22883_watchApi.provideRenderingData("TICKET_SHELF",v);a.JSC$22883_watchApi.provideRenderingData("LIMITED_STATE",J);a.JSC$22883_watchApi.getRoot().is!==
"ytd-watch-grid"&&a.JSC$22883_watchApi.provideRenderingData("DONATION_SHELF",I);a.JSC$22883_watchApi.provideRenderingData("SINGLE_COLUMN_CONTENTS",TJ);a.JSC$22883_watchApi.provideRenderingData("INFO_PANEL_BELOW_METADATA",GJ);a.JSC$22883_watchApi.provideRenderingData("EXPANDABLE_METADATA",d);if(a.swatcherooProvideAllDataOnScheduledJob){var ce,r$,aw,Kl,EG,F1;A=P==null?void 0:(ce=P.contents)==null?void 0:(r$=ce.twoColumnWatchNextResults)==null?void 0:(aw=r$.secondaryResults)==null?void 0:(Kl=aw.secondaryResults)==
null?void 0:(EG=Kl.results)==null?void 0:(F1=EG[0])==null?void 0:F1.richGridRenderer;a.JSC$22883_watchApi.provideRenderingData("RICH_GRID_RENDERER",A)}};
_.IHx.prototype.hasCompanionAds=function(a){var z,I;return(I=a==null?void 0:(z=a.adPlacements)==null?void 0:z.some(function(J){var r,P,N,u;return(J==null?void 0:(r=J.adPlacementRenderer)==null?void 0:(P=r.renderer)==null?void 0:P.actionCompanionAdRenderer)||(J==null?void 0:(N=J.adPlacementRenderer)==null?void 0:(u=N.renderer)==null?void 0:u.topBannerImageTextIconButtonedLayoutViewModel)}))!=null?I:!1};
var Wj=function(a){if(!_.K("swaterdoo_ps_wn_handle_ks")){a.swatcherooProvideAllDataOnScheduledJob||zx9(a,3E3);var z=a.JSC$22883_watchApi.getPlayerResponse(),I,J,r,P,N,u=(I=a.JSC$22883_watchApi.getWatchNextResponse())==null?void 0:(J=I.contents)==null?void 0:(r=J.twoColumnWatchNextResults)==null?void 0:(P=r.secondaryResults)==null?void 0:(N=P.secondaryResults)==null?void 0:N.offerModule;z=a.hasCompanionAds(z);var E,O;I=(u==null?void 0:(E=u.tvfilmOfferModuleRenderer)==null?void 0:E.clientShouldSuppressIfCompanionAdDisplayed)||
(u==null?void 0:(O=u.unlimitedOfferModuleRenderer)==null?void 0:O.suppressIfCompanionAds);E=z&&I;a.JSC$22883_watchApi.getRoot().is==="ytd-watch-grid"&&a.JSC$22883_watchApi.provideRenderingData("OFFER_MODULE",E?void 0:u)}},zx9=function(a,z){_.K("swatcheroo_pbs_load_grid")&&(a.provideRichGridJobId&&_.GW.cancelJob(a.provideRichGridJobId),a.provideRichGridJobId=_.hE(_.GW,function(){a.provideRichGridJobId=0;
var I,J,r,P,N,u,E,O=(I=a.JSC$22883_watchApi.getWatchNextResponse())==null?void 0:(J=I.contents)==null?void 0:(r=J.twoColumnWatchNextResults)==null?void 0:(P=r.secondaryResults)==null?void 0:(N=P.secondaryResults)==null?void 0:(u=N.results)==null?void 0:(E=u[0])==null?void 0:E.richGridRenderer;O&&a.JSC$22883_watchApi.provideRenderingData("RICH_GRID_RENDERER",O)},z))},jLI=function(a){var z,I;
_.t(function(J){if(J.nextAddress==1)return J.yield(a.JSC$22883_watchApi.playerApi,2);z=J.yieldResult;I=function(){a.onPlaybackStart()};
z.addEventListener("onPlaybackStartExternal",I);a.addOnDisposeCallback(function(){z.removeEventListener("onPlaybackStartExternal",I)});
_.nu(J)})};
_.IHx.prototype.onPlaybackStart=function(){zx9(this)};_.rD9=function(a){_.FC.call(this);var z=this;this.JSC$22893_watchApi=a;a.playerApi.then(function(I){z.player=I});
this.gestures=new _.Bf(this.JSC$22893_watchApi.getRoot(),a.getElement("PLAYER_CONTAINER"),{dragDownAction:function(){if(_.FXP(_.qo().getState())&&_.iS(_.qo().getState())<=0)if(_.d4(_.qo().getState())){var I;(I=z.player)==null||I.toggleFullscreen()}else _.ZF(z.JSC$22893_watchApi.getRoot(),"yt-activate-miniplayer-from-watch-action")}});
JDu(this)};
_.b(_.rD9,_.FC);var JDu=function(a){var z=_.QT(_.qo(),_.d4,function(I){a.onFullscreenChanged(I)});
a.addOnDisposeCallback(z);z=_.QT(_.qo(),_.iS,function(I){a.gestures&&(I>0?a.gestures.detach():a.gestures.attach())});
a.addOnDisposeCallback(z)};
_.rD9.prototype.onFullscreenChanged=function(a){this.gestures&&this.gestures.update(a)};_.Z3x=function(a){_.FC.call(this);var z=this;this.JSC$22896_watchApi=a;this.clearDataJobId=0;this.pageDisposalDataTypes=[];this.runPageDisposeJob=function(){};
this.runClearDataJob=function(){};
this.runOnYtNavigateAwayFinish=function(){};
this.addOnDisposeCallback(a.subscribeToActiveChanged(function(I){z.onActiveChanged(I)}));
P1j(this)};
_.b(_.Z3x,_.FC);var C19=function(a){if(_.K("swatcheroo_page_dispose_all_watch_data"))a.pageDisposalDataTypes=Object.values(Qfx).filter(function(I){return I!=="PLAYLIST"});
else if(_.K("swatcheroo_page_dispose_rich_grid")){var z;(z=a.pageDisposalDataTypes)==null||z.push("RICH_GRID_RENDERER")}},P1j=function(a){_.K("swatcheroo_enable_ghost_cards")&&(C19(a),a.JSC$22896_watchApi.registerActionHandler("yt-pending-navigation-cancelled",function(){_.GW.cancelJob(a.clearDataJobId);
a.clearDataJobId=0}),a.runPageDisposeJob=function(){var z=_.ab().resolve(_.aK).getDestinationPageType()==="watch";
a.clearDataJobId=_.hE(_.GW,a.runClearDataJob,z?0:_.Ib("web_watch_delay_page_dispose_ms",1E4))},a.runClearDataJob=function(){Nqt(a)},a.runOnYtNavigateAwayFinish=function(){a.clearDataJobId&&(_.GW.cancelJob(a.clearDataJobId),a.clearDataJobId=0,Nqt(a))},document.addEventListener("yt-navigate-finish",a.runOnYtNavigateAwayFinish),a.JSC$22896_watchApi.addPageDisposeJob(a.runPageDisposeJob),a.addOnDisposeCallback(function(){a.JSC$22896_watchApi.removePageDisposeJob(a.runPageDisposeJob);
a.JSC$22896_watchApi.unregisterActionHandler("yt-pending-navigation-cancelled");document.removeEventListener("yt-navigate-finish",a.runOnYtNavigateAwayFinish)}))},Nqt=function(a){a.pageDisposalDataTypes.forEach(function(z){a.JSC$22896_watchApi.provideRenderingData(z,void 0)});
a.clearDataJobId=0};
_.Z3x.prototype.onActiveChanged=function(a){a&&((a=document.querySelector("#watch-page-skeleton"))&&_.fo(a),tLj(this),document.body.removeAttribute("no-y-overflow"),_.TZ("IS_SHELL_LOAD")&&_.O7E())};
var tLj=function(a){_.t(function(z){if(z.nextAddress==1)return z.yield(a.JSC$22896_watchApi.playerApi,2);_.ws();_.nu(z)})};var uw7;uw7=_.K("kevlar_watch_while_counterfactual")?0:.25;_.O37=function(a){_.FC.call(this);this.JSC$22899_watchApi=a;this.JSC$22899_watchWhileEnabled=_.K("kevlar_watch_while_v2");this.pipEnabled=_.K("web_enable_pip_on_miniplayer");ESI(this);BqO(this);gSa(this)};
_.b(_.O37,_.FC);var ESI=function(a){a.JSC$22899_watchApi.registerActionHandler("yt-activate-miniplayer-from-watch-action",function(){fHN(a)});
a.addOnDisposeCallback(function(){a.JSC$22899_watchApi.unregisterActionHandler("yt-activate-miniplayer-from-watch-action")})},BqO=function(a){var z,I;
_.t(function(J){if(J.nextAddress==1)return J.yield(a.JSC$22899_watchApi.playerApi,2);z=J.yieldResult;I=function(){fHN(a)};
z.addEventListener("onCollapseMiniplayer",I);a.addOnDisposeCallback(function(){z.removeEventListener("onCollapseMiniplayer",I)});
_.nu(J)})},gSa=function(a){var z=a.JSC$22899_watchApi.getElement("PLAYER_CONTAINER");
window.IntersectionObserver&&z&&a.JSC$22899_watchWhileEnabled&&(a.playerIntersectionObserver=new IntersectionObserver(function(I){a.handleIntersect(I)},{threshold:[uw7]}),a.playerIntersectionObserver.observe(z),a.addOnDisposeCallback(function(){var I;
(I=a.playerIntersectionObserver)==null||I.disconnect()}))},fHN=function(a){var z,I,J;
_.t(function(r){if(r.nextAddress==1){z=_.ab().resolve(_.aK);I=z.data;J=_.Xx(I.response,!1,I.playerResponse);_.hq().miniplayerButtonActivation=!0;if(a.pipEnabled)return _.hq().watchPipActivation=!0,r.jumpTo(2);_.ab().resolve(_.UJ).collapse();return r.yield(_.hq().navigationFinishPromise,2)}if(r.nextAddress!=4)return _.hq().currentEndpoint=J.watchEndpoint||null,r.yield(_.ab().resolve(_.UJ).activate(a.JSC$22899_watchApi.getElement("PLAYER"),J,I),4);_.hq().userActivation=!0;_.nu(r)})};
_.O37.prototype.handleIntersect=function(a){ADt(this,a[a.length-1])};
var ADt=function(a,z){a.watchWhileJobId&&_.GW.cancelJob(a.watchWhileJobId);a.watchWhileJobId=_.GW.addLowPriorityJob(function(){var I,J;return _.t(function(r){if(r.nextAddress==1)return a.watchWhileJobId=void 0,I=_.ab().resolve(_.UJ),z.intersectionRatio>uw7?I.isMiniplayerActive()?r.yield(I.deactivate(),0):r.jumpTo(0):(J=!I.isMiniplayerActive())?r.yield(sLN(a),5):r.jumpTo(4);r.nextAddress!=4&&(J=r.yieldResult);if(!J)return r.jumpTo(0);_.hq().watchWhileActivation=!0;return r.yield(nSO(a),0)})},100)},
sLN=function(a){return _.t(function(z){return z.nextAddress==1?_.K("kevlar_watch_while_paused")?z.return(!0):z.yield(a.isPlayerPlaying(),2):z.return(z.yieldResult)})};
_.O37.prototype.isPlayerPlaying=function(){var a=this,z;return _.t(function(I){if(I.nextAddress==1)return I.yield(a.JSC$22899_watchApi.playerApi,2);z=I.yieldResult;return I.return(z.getPlayerStateObject().isPlaying)})};
var nSO=function(a){var z,I;return _.t(function(J){z=_.ab().resolve(_.aK).data;I=_.Xx(z.response,!1,z.playerResponse);_.hq().currentEndpoint=I.watchEndpoint||null;return J.yield(_.ab().resolve(_.UJ).activate(a.JSC$22899_watchApi.getElement("PLAYER"),I,z),0)})};_.H3t=function(a){_.FC.call(this);this.JSC$22903_watchApi=a;KsN(this);FsG(this)};
_.b(_.H3t,_.FC);var FsG=function(a){var z,I;_.t(function(J){if(J.nextAddress==1)return J.yield(a.JSC$22903_watchApi.playerApi,2);z=J.yieldResult;I=function(r){var P;r.sessionData&&r.sessionData.itct&&(P=r.sessionData.itct);var N=r.watchEndpoint;if(N&&r.sessionData&&r.sessionData.autonav)N=_.yiG(N,P);else{var u;N=_.jx(r.videoId,(u=r.listId)!=null?u:void 0,P)}P={endpoint:N};r.sessionData&&(P.tempData=r.sessionData);a.JSC$22903_watchApi.dispatchEvent("yt-navigate",P)};
z.addEventListener("onPlayVideo",I);a.addOnDisposeCallback(function(){z.removeEventListener("onPlayVideo",I)});
_.nu(J)})},KsN=function(a){var z=function(I){a.onYtNavigate(I)};
a.JSC$22903_watchApi.getRoot().addEventListener("yt-navigate",z);a.addOnDisposeCallback(function(){a.JSC$22903_watchApi.getRoot().removeEventListener("yt-navigate",z)})};
_.H3t.prototype.onYtNavigate=function(a){var z=this,I,J,r,P,N,u,E,O,f;return _.t(function(A){if(A.nextAddress==1){if(!((I=a.detail)==null?0:(J=I.endpoint)==null?0:J.watchEndpoint))return A.return();r=a.detail.endpoint.watchEndpoint;P=z.JSC$22903_watchApi.getWatchNextResponse();u=_.H((N=P)==null?void 0:N.currentVideoEndpoint,_.MZ);if(!u)return A.return();if(r.videoId!==u.videoId||r.playlistId&&r.playlistId!==u.playlistId||typeof r.startTimeSeconds!=="number")return A.jumpTo(0);a.stopPropagation();
(E=_.K("kevlar_watch_while_v2")&&!_.K("kevlar_watch_while_counterfactual"))&&_.ab().resolve(_.UJ).isMiniplayerActive()||z.JSC$22903_watchApi.scrollWatchTo(0,!0);return A.yield(z.JSC$22903_watchApi.playerApi,3)}O=A.yieldResult;f=r.startTimeSeconds;O.seekTo(f,void 0,void 0,void 0,84);O.wakeUpControls();f<O.getDuration()&&O.playVideo();_.nu(A)})};_.hxa=function(a){_.FC.call(this);var z=this;this.JSC$22906_watchApi=a;var I=this.JSC$22906_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){b37(z)});
this.addOnDisposeCallback(function(){z.JSC$22906_watchApi.unsubscribeByKey(I)});
b37(this)};
_.b(_.hxa,_.FC);var b37=function(a){var z=a.JSC$22906_watchApi.getWatchNextResponse();if(z){var I,J=[].concat(_.ih((I=z==null?void 0:z.engagementPanels)!=null?I:[]));J.unshift.apply(J,_.ih(VL7(z)));a.JSC$22906_watchApi.provideRenderingData("ENGAGEMENT_PANELS",J)}},QLx=function(a){var z,I,J,r=(z=a.engagementPanels)==null?void 0:(I=z.find(function(F){var h;
return((h=F.engagementPanelSectionListRenderer)==null?void 0:h.panelIdentifier)==="engagement-panel-structured-description"}))==null?void 0:(J=I.engagementPanelSectionListRenderer.content)==null?void 0:J.structuredDescriptionContentRenderer,P;
if(_.H(r==null?void 0:(P=r.items)==null?void 0:P.find(function(F){return!!_.H(F,jtL)}),jtL))return!0;
var N,u,E,O;if(a=(((N=a.contents)==null?void 0:(u=N.twoColumnWatchNextResults)==null?void 0:(E=u.results)==null?void 0:(O=E.results)==null?void 0:O.contents)||[]).find(function(F){return F.videoPrimaryInfoRenderer})){var f,A,n;
return(((f=a.videoPrimaryInfoRenderer)==null?void 0:(A=f.videoActions)==null?void 0:(n=A.menuRenderer)==null?void 0:n.flexibleItems)||[]).some(function(F){F=_.H(F,_.xyw);if(!F)return!1;var h,v;F=(h=F.topLevelButton)==null?void 0:(v=h.buttonViewModel)==null?void 0:v.onTap;if(!F)return!1;h=_.o0(F);if(!h)return!1;var d;return((d=_.H(h,_.GO))==null?void 0:d.panelIdentifier)==="PAyouchat"})}return!1},VL7=function(a){var z=[];
if(!_.K("web_watch_inject_placeholder_fantasy_panel_killswitch")){var I,J,r,P=(I=a.engagementPanels)==null?void 0:(J=I.find(function(u){var E;return((E=u.engagementPanelSectionListRenderer)==null?void 0:E.panelIdentifier)==="engagement-panel-structured-description"}))==null?void 0:(r=J.engagementPanelSectionListRenderer.content)==null?void 0:r.structuredDescriptionContentRenderer,N;
_.H(P==null?void 0:(N=P.items)==null?void 0:N.find(function(u){return!!_.H(u,GYx)}),GYx)&&(I=_.hbx("PAsports_fantasy"),I.engagementPanelSectionListRenderer.visibility="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN",z.push(I))}QLx(a)&&(a=_.hbx("PAyouchat"),a.engagementPanelSectionListRenderer.targetId="PAyouchat",a.engagementPanelSectionListRenderer.visibility="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN",z.push(a));
return z};_.i39=function(a){_.FC.call(this);this.JSC$22909_watchApi=a;Sex(this)};
_.b(_.i39,_.FC);var Sex=function(a){a.JSC$22909_watchApi.registerActionHandler("yt-loop-command",function(z){xYN(a,z)});
a.JSC$22909_watchApi.registerActionHandler("yt-repeat-chapter-command",function(z){vS4(a,z)});
a.addOnDisposeCallback(function(){a.JSC$22909_watchApi.unregisterActionHandler("yt-loop-command");a.JSC$22909_watchApi.unregisterActionHandler("yt-repeat-chapter-command")})},xYN=function(a,z){var I;
_.t(function(J){if(J.nextAddress==1)return J.yield(a.JSC$22909_watchApi.playerApi,2);I=J.yieldResult;_.H(z,X49).loop?(I.setLoopRange({startTimeMs:Number(_.H(z,X49).startTimeMs),endTimeMs:Number(_.H(z,X49).endTimeMs),postId:_.H(z,X49).postId,type:"clips"}),I.playVideo()):I.setLoopRange(null);_.nu(J)})},vS4=function(a,z){var I,J;
_.t(function(r){if(r.nextAddress==1)return r.yield(a.JSC$22909_watchApi.playerApi,2);I=r.yieldResult;J=_.H(z,U09).repeat;J==="REPEAT_CHAPTER_TYPE_ENABLE_REPEAT"?(I.setLoopRange({startTimeMs:Number(_.H(z,U09).startTimeMs),endTimeMs:Number(_.H(z,U09).endTimeMs),type:"repeatChapter"}),I.playVideo()):J==="REPEAT_CHAPTER_TYPE_DISABLE_REPEAT"&&I.setLoopRange(null);_.nu(r)})};_.$YI=function(a){_.FC.call(this);this.JSC$22914_watchApi=a;GZj(this)};
_.b(_.$YI,_.FC);var GZj=function(a){a.JSC$22914_watchApi.registerActionHandler("yt-watch-player-overflow-menu-command",function(z){X39(a,z)});
a.addOnDisposeCallback(function(){a.JSC$22914_watchApi.unregisterActionHandler("yt-watch-player-overflow-menu-command")})},X39=function(a,z){var I,J,r,P,N,u,E,O,f,A,n;
_.t(function(F){if(F.nextAddress==1)return F.yield(a.JSC$22914_watchApi.playerApi,2);I=F.yieldResult;if(P=(r=(J=_.H(z,D0O))==null?void 0:J.highlightedMenuItemKey)!=null?r:"")(u=(N=I).highlightSettingsMenuItem)==null||u.call(N,P);if(f=(O=(E=_.H(z,D0O))==null?void 0:E.openMenuItemKey)!=null?O:"")(n=(A=I).openSettingsMenuItem)==null||n.call(A,f);_.nu(F)})};var Tq9=_.Er("/youtube/app/watch/player_state","playerStateEntity");_.Ws9=function(a){_.FC.call(this);this.JSC$22917_watchApi=a;dY7(this)};
_.b(_.Ws9,_.FC);var oSG=function(a){switch(a){case 0:return"PLAYER_STATE_FINISHED";case 1:return"PLAYER_STATE_PLAYING";case 2:return"PLAYER_STATE_PAUSED";case 3:return"PLAYER_STATE_LOADING_CONTENT";default:return"PLAYER_STATE_UNKNOWN"}},dY7=function(a){var z,I;
_.t(function(J){if(J.nextAddress==1)return J.yield(a.JSC$22917_watchApi.playerApi,2);z=J.yieldResult;I=function(r){a.onPlayerStateChange(r)};
z.addEventListener("onStateChange",I);a.addOnDisposeCallback(function(){z.removeEventListener("onStateChange",I)});
_.nu(J)})};
_.Ws9.prototype.onPlayerStateChange=function(a){var z=this,I,J;return _.t(function(r){if(r.nextAddress==1)return r.yield(z.JSC$22917_watchApi.playerApi,2);I=r.yieldResult;J=I.getVideoData().video_id;_.M3().dispatch(_.Q0("playerStateEntity",Tq9,{key:Tq9,playerState:oSG(a),videoId:J}));_.nu(r)})};_.DYO=function(a){_.FC.call(this);var z=this;this.JSC$22921_watchApi=a;this.enableExternalPlaylistPanelInPlayer=_.K("delhi_web_player_use_external_playlist_panel");_.ab().resolve(_.wR).setPlayer(this.JSC$22921_watchApi.getElement("PLAYER"));a=this.JSC$22921_watchApi.subscribeToActiveChanged(function(I){z.onActiveChanged(I)});
this.addOnDisposeCallback(a);UYG(this)};
_.b(_.DYO,_.FC);var UYG=function(a){var z,I;_.t(function(J){if(J.nextAddress==1)return a.enableExternalPlaylistPanelInPlayer?J.yield(a.JSC$22921_watchApi.playerApi,2):J.return();z=J.yieldResult;I=function(){if(a.playlistPanelElement)a.playlistPanelElement.onToggleExpanded()};
z.addEventListener("onToggleExternalPlaylistPanel",I);a.addOnDisposeCallback(function(){z.removeEventListener("onToggleExternalPlaylistPanel",I)});
_.nu(J)})};
_.DYO.prototype.onActiveChanged=function(a){var z=this,I=_.ab().resolve(_.wR),J=function(){RxI(z)};
a?(this.playlistPanelElement=this.JSC$22921_watchApi.getElement("PLAYLIST_PANEL"))?(I.setPlaylistComponent(this.playlistPanelElement),I.addEventListener("yt-playlist-data-updated",J),this.addOnDisposeCallback(function(){I.removeEventListener("yt-playlist-data-updated",J)}),RxI(this)):_.RL(Error("Fo")):(I.removeEventListener("yt-playlist-data-updated",J),I.cancelVideoSkip())};
var RxI=function(a){var z=_.ab().resolve(_.wR);a.JSC$22921_watchApi.provideRenderingData("PLAYLIST",z.getPlaylistData())};_.UP=function(a){_.FC.call(this);var z=this;this.JSC$22924_watchApi=a;this.onPageScroll=function(){z.scrollThrottle.fire();z.mastheadScrollThrottle.fire()};
this.scrollThrottle=new _.kc(this.onThrottledScroll,200,this);_.t7(this,this.scrollThrottle);this.mastheadScrollThrottle=new _.kc(this.onMastheadThrottledScroll,50,this);_.t7(this,this.mastheadScrollThrottle);this.animation=new _.MB(function(I){z.JSC$22924_watchApi.getRoot().setScrollTop(I)});
a=_.QT(_.qo(),_.d4,function(){z.onFullscreenChanged()});
this.addOnDisposeCallback(a);LsG(this);lHG(this);this.onThrottledScroll()};
_.b(_.UP,_.FC);
_.UP.prototype.onFullscreenChanged=function(){var a=this,z=this.JSC$22924_watchApi.getRoot();!this.pageScrollElement&&z.pageScrollElement?(this.pageScrollElement=z.pageScrollElement,z.pageScrollElement.addEventListener("scroll",this.onPageScroll),this.addOnDisposeCallback(function(){a.pageScrollElement&&a.pageScrollElement.removeEventListener("scroll",a.onPageScroll)})):this.pageScrollElement&&!z.pageScrollElement&&(this.pageScrollElement.removeEventListener("scroll",this.onPageScroll),this.pageScrollElement=
void 0)};
var LsG=function(a){window.addEventListener("scroll",a.onPageScroll);a.addOnDisposeCallback(function(){window.removeEventListener("scroll",a.onPageScroll)})},lHG=function(a){a.JSC$22924_watchApi.registerActionHandler("yt-scroll-to-watch-element",function(z){a:{var I;
if(I=a.JSC$22924_watchApi.getRoot().contains(z)&&!a.animation.isAnimating()){I=z.tagName==="YTD-ENGAGEMENT-PANEL-SECTION-LIST-RENDERER";var J,r,P=(z==null?void 0:(J=z.parentElement)==null?void 0:(r=J.parentElement)==null?void 0:r.id)==="fixed-secondary";I=!(I&&P)}if(I){if(_.K("kevlar_watch_scroll_manager_absolute_offset_killswitch"))J=z.offsetTop;else for(J=0,r=z;r!==null;)J+=r.offsetTop,J-=r.scrollTop,r=r.offsetParent;r=J;J=r-24;z=r+z.offsetHeight+24;r=a.JSC$22924_watchApi.getRoot().getPageScrollingElement();
I=a.JSC$22924_watchApi.getRoot().getScrollTop();P=I+r.clientHeight-56;if(J<I+56)z=J-56;else if(z>P)z-=r.clientHeight;else break a;a.scrollWatchTo(Math.max(0,z),!0)}}});
a.addOnDisposeCallback(function(){a.JSC$22924_watchApi.unregisterActionHandler("yt-scroll-to-watch-element")})};
_.UP.prototype.onThrottledScroll=function(){var a=_.qo(),z=a.dispatch,I=this.JSC$22924_watchApi.getRoot().getScrollTop();z.call(a,_.rg({type:"SET_WATCH_SCROLL_TOP",payload:{watchScrollTop:I}}))};
_.UP.prototype.onMastheadThrottledScroll=function(){this.JSC$22924_watchApi.dispatchEvent("yt-watch-masthead-scroll",this.JSC$22924_watchApi.getRoot().getScrollTop())};
_.UP.prototype.scrollWatchTo=function(a,z){(z===void 0?0:z)?this.animation.start(this.JSC$22924_watchApi.getRoot().getScrollTop(),Math.max(0,a),500):this.JSC$22924_watchApi.getRoot().setScrollTop(a)};_.mYa=function(a){_.FC.call(this);var z=this;this.JSC$22927_watchApi=a;var I=this.JSC$22927_watchApi.subscribe("PLAYER_RESPONSE_UPDATED",function(){p37(z)}),J=this.JSC$22927_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){w3L(z)});
this.addOnDisposeCallback(function(){z.JSC$22927_watchApi.unsubscribeByKey(I);z.JSC$22927_watchApi.unsubscribeByKey(J)});
p37(this);w3L(this)};
_.b(_.mYa,_.FC);
var p37=function(a){var z,I,J,r=(J=(z=a.JSC$22927_watchApi.getPlayerResponse())==null?void 0:(I=z.videoDetails)==null?void 0:I.title)!=null?J:"";a.JSC$22927_watchApi.dispatchEvent("yt-update-title",r)},w3L=function(a){var z,I,J,r,P,N,u,E=(u=((N=(z=a.JSC$22927_watchApi.getWatchNextResponse())==null?void 0:(I=z.contents)==null?void 0:(J=I.twoColumnWatchNextResults)==null?void 0:(r=J.results)==null?void 0:(P=r.results)==null?void 0:P.contents)!=null?N:[]).find(function(O){return!!O.videoPrimaryInfoRenderer}))==null?
void 0:u.videoPrimaryInfoRenderer;
(z=_.cd(E==null?void 0:E.title))&&a.JSC$22927_watchApi.dispatchEvent("yt-update-title",z)};_.kZI=function(a){_.FC.call(this);this.JSC$22930_watchApi=a;yD4(this)};
_.b(_.kZI,_.FC);var yD4=function(a){var z,I;_.t(function(J){if(J.nextAddress==1)return J.yield(a.JSC$22930_watchApi.playerApi,2);z=J.yieldResult;I=function(){a.onYpcContentRequest()};
z.addEventListener("onYpcContentRequest",I);a.addOnDisposeCallback(function(){z.removeEventListener("onYpcContentRequest",I)});
_.nu(J)})};
_.kZI.prototype.onYpcContentRequest=function(){var a,z,I,J,r,P=(a=this.JSC$22930_watchApi.getWatchNextResponse())==null?void 0:(z=a.contents)==null?void 0:(I=z.twoColumnWatchNextResults)==null?void 0:(J=I.secondaryResults)==null?void 0:(r=J.secondaryResults)==null?void 0:r.offerModule,N,u,E,O;a=(O=(E=(u=(N=P==null?void 0:P.episodeOfferModuleRenderer)!=null?N:P==null?void 0:P.movieOfferModuleRenderer)!=null?u:P==null?void 0:P.unlimitedOfferModuleRenderer)!=null?E:P==null?void 0:P.liveOfferModuleRenderer)!=
null?O:P==null?void 0:P.tvfilmOfferModuleRenderer;var f,A,n;P=(n=P==null?void 0:(f=P.tvfilmOfferModuleRenderer)==null?void 0:(A=f.actionButtons)==null?void 0:A.length)!=null?n:0;A=Math.max(P-1,0);var F,h,v;f=(v=a==null?void 0:(F=a.offerButton)==null?void 0:F.buttonRenderer)!=null?v:a==null?void 0:(h=a.actionButtons)==null?void 0:h[A].buttonRenderer;var d,W;(F=(W=(d=f==null?void 0:f.navigationEndpoint)!=null?d:f==null?void 0:f.serviceEndpoint)!=null?W:f==null?void 0:f.command)&&_.Og.instance.resolveCommand(F)};
}catch(e){_._DumpException(e)}
try{
var VH0,H6Z,Kke;_.FkV=function(){var a=_.x8.clone(nvZ),z;return(new _.Ba(function(I,J){a.onSuccess=function(r){_.Te3(r)?I(new Kke(r)):J(new _.uC("Request failed, status="+_.Zv(r),"net.badstatus",r))};
a.onError=function(r){J(new _.uC("Unknown request error","net.unknown",r))};
a.onTimeout=function(r){J(new _.uC("Request timed out","net.timeout",r))};
z=_.Ez("//googleads.g.doubleclick.net/pagead/id",a)})).thenCatch(function(I){if(I instanceof _.Lc){var J;
(J=z)==null||J.abort()}return _.xN(I)})};
_.b64=function(a){a:{var z="EMBEDDED_PLAYER_MODE_UNKNOWN";window.location.hostname.includes("youtubeeducation.com")&&(z="EMBEDDED_PLAYER_MODE_PFL");var I=a.raw_embedded_player_response;if(!I&&(a=a.embedded_player_response))try{I=JSON.parse(a)}catch(r){break a}if(I)b:for(var J in H6Z)if(H6Z[J]==I.embeddedPlayerMode){z=H6Z[J];break b}}return z==="EMBEDDED_PLAYER_MODE_PFL"};
_.hQ0=function(){if(_.K("disable_biscotti_fetch_entirely_for_all_web_clients"))return Error("mf");if(!_.zz1())return Error("nf");var a=_.Xw("PLAYER_VARS",{});if(_.x8.get(a,"privembed",!1)=="1")return Error("of");if(_.b64(a))return Error("pf")};
VH0=function(a){switch(a){case 0:return"BISCOTTI_BASED_DETECTION_RESULT_DETECTED";case 1:return"BISCOTTI_BASED_DETECTION_RESULT_NOT_DETECTED";case 2:return"BISCOTTI_BASED_DETECTION_RESULT_UNSPECIFIED";case 3:return"BISCOTTI_BASED_DETECTION_RESULT_KNOWN_FAILURE";case 4:return"BISCOTTI_BASED_DETECTION_RESULT_UNKNOWN_FAILURE";default:_.Rw(a,"unknown result type")}};
_.QG4=function(a,z,I){z=_.IwG[z];I={detected:a===0,source:z.iyw,detectionResult:VH0(a),contentCpn:I};_.x0("biscottiBasedDetection",I);_.u8J.increment(z.iyw,a);z.mmy!==void 0&&_.$S("CATSTAT",_.jp1(a,z))};
_.El=function(a,z){var I={};I.key=a;I.value=z;return _.WbI().then(function(J){return new Promise(function(r,P){try{var N=J.transaction("swpushnotificationsstore","readwrite").objectStore("swpushnotificationsstore").put(I);N.onsuccess=function(){r()};
N.onerror=function(){P()}}catch(u){P(u)}})})};
_.i6M=function(){var a=_.Ib("user_engagement_experiments_rate_limit_ms"),z=ScZ.get("last-user-engagement-exp-trigger-timestamp");return!z||(0,_.jp)()>=z+a?(ScZ.set("last-user-engagement-exp-trigger-timestamp",(0,_.jp)()),!0):!1};
_.B$=function(a,z,I,J,r){z=z===void 0?null:z;I=I===void 0?null:I;J=J===void 0?null:J;r=r===void 0?null:r;a={youThereEventType:a};I&&(a.lactThresholdMs=I.lactThresholdMs,a.mediaPosSec=I.promptDelaySec,a.lactServerRequestMs=I.lactServerRequestMs,a.triggerReason=I.triggerReason);r!=null&&(a.renderingMediaPosSec=Math.round(r));z||(z=_.TX());z&&(a.clientScreenNonce=z);J&&(a.clientPlaybackNonce=J);_.x0("youThere",a)};
H6Z={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"};Kke=function(a){this.xhr=a};
_.uC=function(a,z,I){_.aE.call(this,a+", errorCode="+z);this.errorCode=z;this.xhr=I;this.name="PromiseAjaxError"};
_.b(_.uC,_.aE);var nvZ={format:"RAW",method:"GET",timeout:5E3,withCredentials:!0};var ScZ=new _.o3("ratelimit");
}catch(e){_._DumpException(e)}
try{
_.sGe=function(a){return _.rg({type:"SET_SINGLE_OPTION_SURVEY_IS_ACTIVE",payload:a})};
}catch(e){_._DumpException(e)}
try{
var l2,fvx,sbO,njx,K5u,F5x,b1N,$eu,Xyu,TMt,H1t,APP,Sz7,Qba,oja;_.O1x=function(){var a=window.location.hash;a.charAt(0)==="#"&&(a=a.charAt(1)==="!"?a.substring(2):a.substring(1));return _.p3(a)};
l2=function(a,z,I){var J;return _.t(function(r){if(r.nextAddress==1)return r.yield(z(),2);J=r.yieldResult;I(J,a);_.nu(r)})};
fvx=function(){return _.t(function(a){return a.nextAddress==1?a.yield((_.hQ0()!==void 0?_.xN(Error("qf")):_.FkV()).then(function(){return 1},function(z){if(z.message==="Biscotti id is disabled")return 3;
_.Xd("Failed fetching bid");return 0}),2):a.return(a.yieldResult)})};
sbO=function(){var a=_.zr("cW1yeXQtaGF2ZW4tZW1iZWQtcGxheWVyI2V6Z3B2cnJmZA=="),z=_.zr("ZnJhbWUjNjJld2o0bWJodHlkaQ==");return document.querySelector(z+APP+a)?0:1};
njx=function(){return _.LDp(_.eK)};
K5u=function(){return _.led()===0?0:_.pZm()};
F5x=function(){return _.MBm(_.tB$([["player-ads",["ytd-merch-shelf-renderer","ytp-featured-product"],null]]))};
b1N=function(){return _.XZG(H1t)};
_.hZO=function(a){_.t(function(z){switch(z.nextAddress){case 1:return z.yield(l2("b.f_",fvx,a),2);case 2:return z.yield(l2("j.s_",_.GtO,a),3);case 3:return z.yield(l2("r.s_",_.iV7,a),4);case 4:return z.yield(l2("e.h_",b1N,a),5);case 5:if(!_.K("ab_det_sc_inj")){z.jumpTo(6);break}return z.yield(l2("s.i_",_.D5M,a),6);case 6:if(_.K("ab_deg_unex_thr")){z.jumpTo(8);break}return z.yield(l2("a.o_",_.oIG,a),8);case 8:if(_.K("ks_get_o_pp")){z.jumpTo(10);break}return z.yield(l2("g.o_",_.WDE,a),10);case 10:if(_.K("ks_det_gpbl")){z.jumpTo(12);
break}return z.yield(l2("p.i_",_.d5m,a),12);case 12:return z.yield(l2("f.i_",_.Acp,a),14);case 14:return z.yield(l2("a.b_",_.QWI,a),15);case 15:return z.yield(l2("p.m_",_.KDi,a),16);case 16:if(!_.K("ab_det_el_h_v2")){z.jumpTo(17);break}return z.yield(l2("n.h_",F5x,a),17);case 17:return z.yield(l2("o.p_",njx,a),19);case 19:return z.yield(l2("e.i_",sbO,a),20);case 20:if(_.K("ab_det_apm"))return z.yield(l2("o.a_",K5u,a),0);z.jumpTo(0)}})};
_.V6O=function(a,z){a={videoId:a};z&&(a.playlistId=z);return a};
_.i1x=function(){if(_.zz1()){var a=_.Xw("PLAYER_VARS",{});if(_.x8.get(a,"privembed",!1)!="1"&&!_.b64(a)){var z=function(){Qba=!0;"google_ad_status"in window?_.$S("DCLKSTAT",1):_.$S("DCLKSTAT",2)};
try{_.LL(_.Ahi,z)}catch(I){}Sz7.push(_.GW.addLowPriorityJob(function(){if(!(Qba||"google_ad_status"in window)){try{_.kpO(_.Ahi.toString(),z)}catch(I){}Qba=!0;_.$S("DCLKSTAT",3)}},5E3))}}};
_.xeO=function(a,z,I){I=I===void 0?!1:I;var J=Math.max(a.width,_.IxP);if(_.K("kevlar_watch_feed_big_thumbs")&&a.width>=1550-_.M7()&&a.height>=800)J-=_.NOP;else if(a.width>=_.DS){var r=_.JxN+_.rxP+_.UI;_.K("kevlar_watch_feed_big_thumbs")&&(r=_.CjP);J-=r}else J-=_.JxN;J=Math.min(J,_.Pju);r=240;I&&(r=380);z<.5624||(!_.K("kevlar_watch_flexy_disable_small_window_sizing")&&(a.height<630&&a.width>=657||a.height>=630&&a.width>=_.DS&&a.width<1327)?r=360:!_.K("kevlar_watch_flexy_disable_large_window_sizing")&&
a.height>=630&&a.width>=1327&&(r=480));var P=Math.min(J*z,a.height-(56+_.z7u+_.Z4j));P=Math.max(P,r);z<1?J=P/z:a.width>=_.DS&&(J=_.xeO(a,.5625,I).width);return new _.fB(Math.round(J),Math.round(P))};
_.vja=function(a){var z=0;a.indexOf("h")!=-1&&(a=a.split("h"),z=a[0]*60*60,a=a[1]);a.indexOf("m")!=-1&&(a=a.split("m"),z=a[0]*60+z,a=a[1]);a.indexOf("s")!=-1?(a=a.split("s"),z=a[0]*1+z):z=a*1+z;return z};
_.G9a=function(){_.Ib("service_worker_push_logged_out_prompt_watches")!=-1&&_.sD("WatchCount").then(function(a){a>=100||_.El("WatchCount",a+1)})};
$eu=function(a){var z=a.externalVideoId||"";return z?a.isShortsEligible?"https://www.youtube.com/shorts/"+z:"https://www.youtube.com/watch?v="+z:""};
Xyu=function(a){var z=[];a.viewCount&&z.push({"@type":"InteractionCounter",interactionType:"https://schema.org/WatchAction",userInteractionCount:a.viewCount});a.likeCount&&z.push({"@type":"InteractionCounter",interactionType:"https://schema.org/LikeAction",userInteractionCount:a.likeCount});return z};
TMt=function(a){var z,I,J={"@context":"https://schema.org","@type":"VideoObject",description:_.cd(a.description),duration:"PT"+(a.lengthSeconds||"0")+"S",embedUrl:a.embed?a.embed.iframeUrl:"",name:_.cd(a.title),thumbnailUrl:((z=a.thumbnail)==null?void 0:(I=z.thumbnails)==null?void 0:I.map(function(f){return f&&f.url||""}))||[],
uploadDate:a.publishDate};_.K("mweb_video_schema_id_killswitch")||(J["@id"]=$eu(a));z=Xyu(a);z.length&&(J.interactionStatistic=z);a.category&&(J.genre=a.category);a.ownerChannelName&&(J.author=a.ownerChannelName);a.liveBroadcastDetails&&(J.publication=[{"@type":"BroadcastEvent",isLiveBroadcast:!0,startDate:a.liveBroadcastDetails.startTimestamp,endDate:a.liveBroadcastDetails.endTimestamp}]);if(a.learningResource){a=a.learningResource;J["@type"]=["VideoObject","LearningResource"];var r;if((r=a.learningResourceType)==
null?0:r.length)J.learningResourceType=a.learningResourceType[0];var P;if((P=a.educationalAlignment)==null?0:P.length)J.educationalAlignment={"@type":"AlignmentObject",targetName:a.educationalAlignment[0]};var N;if((N=a.educationalLevel)==null?0:N.length){r=a.educationalLevel[0];var u;if((u=a.educationalLevelCountry)==null?0:u.length)r+=" ("+a.educationalLevelCountry+")";J.educationalLevel=r}var E,O;if(((E=a.learningResourceType)==null?0:E.length)&&a.learningResourceType[0]==="Problem walkthrough"&&
((O=a.problemDescriptions)==null?0:O.length))for(J.hasPart=[],u=_.C(a.problemDescriptions),E=u.next();!E.done;E=u.next())r=E.value,E=r.problemDescriptionText,O=r.startOffset,r=r.url,E&&O!==void 0&&r&&J.hasPart.push({"@type":["Clip","LearningResource"],learningResourceType:"Problem walkthrough",name:E,text:E,startOffset:O,url:r})}return J};
_.dej=function(a){return _.rg({type:"SET_IS_LIVE_CHAT_COLLAPSED",payload:{isLiveChatCollapsed:a}})};
H1t=[[["bWFyeSN5dTNnbXkzNDdrYTZwcmk=",null,null],[null,["LWJyb3dzZS1yZXN1bHRzLXJlbmRlcmVyI2M4OTducjF1MjM1Z3l0ZC10d28tY29sdW1u","IzF1MDJqdW1oZm45dnN0eWxlLXNjb3Bl"],null],["Izk2cThuemdneGFxdm1hc3RoZWFkLWFk",["bnZ5dGQtcmljaC1ncmlkLXJlbmRlcmVyI2Foand6eGVjZ2g="],null],[null,["NzZ5dGQtcmljaC1ncmlkLXJlbmRlcmVyI2QxYWxzMzg5bzM=","IzlkZDQwbmJmaWtudnN0eWxlLXNjb3Bl"],null],[null,["dGQtYmFubmVyLXByb21vLXJlbmRlcmVyIzZ0aTlveTZidHRoYnk=","I2ZwYmd0YmNheW0yZHN0eWxlLXNjb3Bl"],null],[null,["N3BzMnl0ZC1hZC1zbG90LXJlbmRlcmVyI2lrODJlNm53"],
null]],[["cyM5MjRmcnVtN2J6M3lwbGF5ZXItYWQ=",null,null]],[["dXlia3I5cWRlc2NyaXB0aW9uLWlubmVyIzJlaGlp",null,null],[null,null,"eXRkLW1lcmNoLXNoZWxmLXJlbmRlcmVyI2t0amY3bWRuMDh4Zw=="],["b3VhbWFpbiM0Ym56MnhqaTQ=",["eXRkLW1lcmNoLXNoZWxmLXJlbmRlcmVyI3lvdmN1emI4Z2lkeg=="],null]]];APP="#";Sz7=[];Qba=!1;_.W5x=["engagement-panel-ads"];oja=new _.jv("updateSentimentBarStateCommand");_.UeI=new _.jv("showSurveyCommand");_.pz=new _.jv("changeMarkersVisibilityCommand");var RZG,L59,meu,wyG,py4,ww;_.DeN=function(a,z){this.playerProvider_=a;this.actionSenderElement_=z;this.pausePlaybackJob_=this.showBlockingWarningJob_=this.showWarningJob_=0;this.youThereData_=null;this.inYouThereFlow_=this.ignoreFullscreenExitUserActivity_=this.isUserPredictedAbsent_=!1};
_.DeN.prototype.reset=function(){RZG(this);this.isUserPredictedAbsent_=!1};
RZG=function(a,z){!a.youThereData_||a.showWarningJob_||z!==void 0&&z||(_.B$("YOU_THERE_EVENT_TYPE_NAVIGATED_OUT",_.TX(),a.youThereData_,a.clientPlaybackNonce_),_.va());_.GW.cancelJob(a.showWarningJob_);a.showWarningJob_=0;_.GW.cancelJob(a.showBlockingWarningJob_);a.showBlockingWarningJob_=0;_.GW.cancelJob(a.pausePlaybackJob_);a.pausePlaybackJob_=0;a.youThereData_=null;a.clientPlaybackNonce_=void 0;a.inYouThereFlow_=!1};
_.lva=function(a,z){var I,J,r;_.t(function(P){if(P.nextAddress==1)return a.reset(),P.yield(a.playerProvider_().getPlayerPromise(),2);I=P.yieldResult;a.clientPlaybackNonce_=I.getVideoData().cpn;a.youThereData_=z.configData.youThereData;if(!a.youThereData_)return P.return();if(a.youThereData_.triggerReason&&a.youThereData_.triggerReason=="YOU_THERE_TRIGGER_REASON_3"&&!_.i6M())return _.B$("YOU_THERE_EVENT_TYPE_RATE_LIMITED",_.TX(),a.youThereData_,a.clientPlaybackNonce_),P.return();J=a.youThereData_.promptDelaySec;
r=I.getCurrentTime();a.showWarningJob_=_.GW.addLowPriorityJob(function(){return _.t(function(N){a.showWarningJob_=0;return N.yield(L59(a),0)})},Math.max(J-r,0)*1E3);
_.nu(P)})};
L59=function(a){var z,I,J,r,P,N;return _.t(function(u){if(u.nextAddress==1)return u.yield(a.playerProvider_().getPlayerPromise(),2);if(u.nextAddress!=3)return z=u.yieldResult,I=z.getCurrentTime(),u.yield(py4(a),3);J=u.yieldResult;if(!J||!a.youThereData_)return u.return();if(_.K("check_user_lact_at_prompt_shown_time_on_web")&&(r=parseInt(a.youThereData_.lactThresholdMs,10),_.IO()<r))return _.B$("YOU_THERE_EVENT_TYPE_BELOW_LACT_THRESHOLD",_.TX(),a.youThereData_,a.clientPlaybackNonce_),u.return();if(a.youThereData_.playbackPauseDelayMs<=
0)return wyG(a),u.return();!_.K("external_fullscreen")&&(P=_.jE())&&(a.ignoreFullscreenExitUserActivity_=!0,_.GW.addLowPriorityJob(function(){a.ignoreFullscreenExitUserActivity_=!1},2E3),_.zb(P));
a.youThereData_.showToastWarningPrompt&&(ww(a,a.youThereData_.showWarningActions),a.inYouThereFlow_=!0,_.B$("YOU_THERE_EVENT_TYPE_PROMPT_SHOWN",_.TX(),a.youThereData_,a.clientPlaybackNonce_,I),_.B$("YOU_THERE_EVENT_TYPE_WARNING_PROMPT_SHOWN",_.TX(),a.youThereData_,a.clientPlaybackNonce_,I));N=0;a.youThereData_.blockingPromptDelayMs&&(N=a.youThereData_.blockingPromptDelayMs);a.showBlockingWarningJob_=_.GW.addLowPriorityJob(function(){return _.t(function(E){a.showBlockingWarningJob_=0;return E.yield(meu(a),
0)})},N);
_.nu(u)})};
meu=function(a){var z,I,J;return _.t(function(r){if(r.nextAddress==1)return r.yield(py4(a),2);z=r.yieldResult;if(!a.youThereData_)return r.return();z&&(a.youThereData_.showBlockingWarningAction&&(_.B$("YOU_THERE_EVENT_TYPE_WARNING_PROMPT_SHOWN_IN_DIALOG",_.TX(),a.youThereData_,a.clientPlaybackNonce_),(I=_.H(a.youThereData_.showBlockingWarningAction,_.E_))?ww(a,I.commands):ww(a,[a.youThereData_.showBlockingWarningAction]),a.inYouThereFlow_=!0),J=a.youThereData_.playbackPauseDelayMs,a.pausePlaybackJob_=
_.GW.addLowPriorityJob(function(){return _.t(function(P){a.pausePlaybackJob_=0;return P.yield(wyG(a),0)})},J));
_.nu(r)})};
wyG=function(a){var z;return _.t(function(I){if(I.nextAddress==1)return I.yield(py4(a),2);z=I.yieldResult;if(!a.youThereData_)return I.return();z&&(_.B$("YOU_THERE_EVENT_TYPE_PLAYBACK_PAUSED",_.TX(),a.youThereData_,a.clientPlaybackNonce_),ww(a,a.youThereData_.showPausedActions),a.inYouThereFlow_=!0);_.nu(I)})};
_.DeN.prototype.onUserActivity=function(){if(this.youThereData_){if(this.ignoreFullscreenExitUserActivity_)return;if(this.youThereData_.userActiveDuringFlowAction){var a=_.H(this.youThereData_.userActiveDuringFlowAction,_.E_);a?ww(this,a.commands):ww(this,[this.youThereData_.userActiveDuringFlowAction])}this.inYouThereFlow_&&(_.B$("YOU_THERE_EVENT_TYPE_LACT_RESET",_.TX(),this.youThereData_,this.clientPlaybackNonce_),_.va());RZG(this,!0)}_.yPI(this,!1)};
_.k9x=function(a){_.B$("YOU_THERE_EVENT_TYPE_USER_RESPONDED",_.TX(),a.youThereData_,a.clientPlaybackNonce_)};
py4=function(a){var z,I;return _.t(function(J){if(J.nextAddress==1)return J.yield(a.playerProvider_().getPlayerPromise(),2);z=J.yieldResult;I=z.getPlayerState();return J.return(I==-1||I==1||I==3)})};
_.yPI=function(a,z){var I;_.t(function(J){if(J.nextAddress==1){if(a.isUserPredictedAbsent_==z)return J.jumpTo(0);a.isUserPredictedAbsent_=z;return J.yield(a.playerProvider_().getPlayerPromise(),3)}I=J.yieldResult;I.setUserEngagement(z);z&&_.B$("YOU_THERE_EVENT_TYPE_ABR_TRIGGERED",_.TX(),a.youThereData_,a.clientPlaybackNonce_);_.nu(J)})};
ww=function(a,z){if(_.K("handle_service_request_actions")||_.K("kevlar_youthere_service_endpoint_actions_killswitch"))_.tR(a.actionSenderElement_,z,a.actionSenderElement_);else{z=_.C(z);for(var I=z.next();!I.done;I=z.next())I=I.value,I.commandMetadata&&I.commandMetadata.webCommandMetadata&&I.commandMetadata.webCommandMetadata.sendPost?_.N$(a.actionSenderElement_,[I]):_.tR(a.actionSenderElement_,[I],a.actionSenderElement_)}};var M6u;var cPN;var m2=function(){var a=_.G.apply(this,arguments)||this;a.systemIcons=_.K("kevlar_system_icons");a.actionMap={"yt-update-sentiment-bar-state-command":"handleUpdateSentimentBarStateCommand"};return a};
_.b(m2,_.G);m2.prototype.observeLikeStatus=function(){if(this.data){if(this.data.likeStatus==="DISLIKE"){var a=this.data.percentIfDisliked||0;this.activated=!0}else this.data.likeStatus==="LIKE"?(a=this.data.percentIfLiked||0,this.activated=!0):(a=this.data.percentIfIndifferent||0,this.activated=!1);_.PK(this.hostElement).querySelector("#like-bar").style.width=a+"%"}};
m2.prototype.handleUpdateSentimentBarStateCommand=function(a){this.data&&this.set("data.likeStatus",_.H(a,oja).likeStatus)};
m2.prototype.observeLikeStatus=m2.prototype.observeLikeStatus;_.L([_.Q(_.k.YtRendererBehavior),_.p("design:type",Object)],m2.prototype,"ytRendererBehavior",void 0);_.L([_.Q(_.Hc.YtActionHandlerBehavior),_.p("design:type",Object)],m2.prototype,"ytActionHandlerBehavior",void 0);_.L([_.x(),_.p("design:type",Object)],m2.prototype,"data",void 0);_.L([_.x({reflectToAttribute:!0}),_.p("design:type",Boolean)],m2.prototype,"activated",void 0);
_.L([_.x({reflectToAttribute:!0}),_.p("design:type",Object)],m2.prototype,"systemIcons",void 0);_.L([_.O8("data.likeStatus"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],m2.prototype,"observeLikeStatus",null);_.L([_.U({is:"ytd-sentiment-bar-renderer",disableElementRegistration:!0})],m2);
_.D(m2,"ytd-sentiment-bar-renderer",function(){if(cPN!==void 0)return cPN;var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-sentiment-bar-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="container" class="style-scope ytd-sentiment-bar-renderer">\n  <div id="like-bar" class="style-scope ytd-sentiment-bar-renderer"></div>\n</div>\n<tp-yt-paper-tooltip position="top" class="style-scope ytd-sentiment-bar-renderer">[[data.tooltip]]</tp-yt-paper-tooltip>\n');a.content.insertBefore(_.w().content.cloneNode(!0),
a.content.firstChild);return cPN=a},{mode:1});var YzL;var ye=function(){var a=_.G.apply(this,arguments)||this;a.small=!0;return a};
_.b(ye,_.G);_.L([_.Q(_.Ms.YtComponentBehavior),_.p("design:type",Object)],ye.prototype,"ytComponentBehavior",void 0);_.L([_.x(),_.p("design:type",Object)],ye.prototype,"data",void 0);_.L([_.x({reflectToAttribute:!0}),_.p("design:type",Object)],ye.prototype,"small",void 0);_.L([_.U({disableElementRegistration:!0,is:"ytd-video-view-count-renderer"})],ye);
_.D(ye,"ytd-video-view-count-renderer",function(){if(YzL!==void 0)return YzL;var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-video-view-count-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<span class="view-count style-scope ytd-video-view-count-renderer">[[getSimpleString(data.viewCount)]]</span><span class="short-view-count style-scope ytd-video-view-count-renderer">[[getSimpleString(data.shortViewCount)]]</span>');a.content.insertBefore(_.w().content.cloneNode(!0),
a.content.firstChild);return YzL=a},{mode:_.Np("kevlar_poly_si_batch_j080")?1:2});var kr=function(){var a=_.G.apply(this,arguments)||this;a.infoFormattedStrings=[];a.wrapVideoActions=_.K("kevar_watch_wrap_video_actions");a.hideSentimentBar=_.K("kevlar_watch_hide_sentiment_bar");a.actionMap={};return a};
_.b(kr,_.G);_.Z=kr.prototype;_.Z.configureRendererStamper=function(){return{"data.videoActions":{id:"menu",mapping:{menuRenderer:{component:"ytd-menu-renderer",params:{icon:"yt-icons:more",styleActionButton:!0,tonalOverride:_.K("web_modern_buttons"),forceIconButton:!_.K("web_modern_buttons")}}}},"data.viewCount":{id:"count",mapping:{videoViewCountRenderer:"ytd-video-view-count-renderer"}}}};
_.Z.dataChanged=function(){_.K("web_watch_get_updated_metadata_manager")||this.scheduleInitialUpdatedMetadataRequest();this.setSentimentBarWidth()};
_.Z.computeInfoFormattedStrings=function(a){if(!a)return[];var z=[];a.dateText&&z.push(a.dateText);a.stationName&&z.push(a.stationName);a.rating&&z.push(a.rating);a.startEndTimeTemplate&&a.startTimeUtcMillis&&a.endTimeUtcMillis&&z.push(_.Mo(_.QwL(_.cd(a.startEndTimeTemplate),Number(a.startTimeUtcMillis),Number(a.endTimeUtcMillis))));a.upNextProgramText&&z.push(a.upNextProgramText);return z};
_.Z.scheduleInitialUpdatedMetadataRequest=function(){var a,z=(a=this.data)==null?void 0:a.updatedMetadataEndpoint;if(z){var I;a=Number((I=_.H(z,_.PzX))==null?void 0:I.initialDelayMs);I=isNaN(a)?250:a;this.ytTaskEmitterBehavior.getTaskManager().addLowPriorityJob(this.fetchUpdatedMetadata.bind(this),I)}};
_.Z.setSentimentBarWidth=function(){var a=this;_.Yv(this,function(){var z=_.PK(a.hostElement).querySelector("ytd-menu-renderer");if(z){z=z.topLevelButtons;for(var I=0,J=0;J<z.length;J++){var r=z[J],P=a.get("toggleButtonSupportedData.toggleButtonIdData.id",r.data);if(P==="TOGGLE_BUTTON_ID_TYPE_DISLIKE"||P==="TOGGLE_BUTTON_ID_TYPE_LIKE")I+=r.clientWidth+8;else break}I&&(a.sentiment.style.width=I-8+" px")}})};
_.Z.fetchUpdatedMetadata=function(a){var z;a&&(z={continuation:a});var I;(a=(I=this.data)==null?void 0:I.updatedMetadataEndpoint)&&_.ab().resolve(_.j6).resolveCommand(a,{form:Object.assign({},z,{element:this.hostElement})})};
_.Z.onYtServiceRequestSent=function(a,z){z.endpoint&&_.H(z.endpoint,_.Rd)&&(this.hasUpdateSentimentBarStateCommands()&&!_.K("kevlar_sentiment_bar_update_killswitch")||this.set("data.sentimentBar.sentimentBarRenderer.likeStatus",_.H(z.endpoint,_.Rd).status),this.setSentimentBarWidth())};
_.Z.hasUpdateSentimentBarStateCommands=function(){var a,z,I,J,r=(J=(a=this.data)==null?void 0:(z=a.videoActions)==null?void 0:(I=z.menuRenderer)==null?void 0:I.topLevelButtons)!=null?J:[];a=_.C(r);for(z=a.next();!z.done;z=a.next()){z=z.value;r=J=I=void 0;var P=(I=z.toggleButtonRenderer)==null?void 0:(J=I.toggleButtonSupportedData)==null?void 0:(r=J.toggleButtonIdData)==null?void 0:r.id;if(P==="TOGGLE_BUTTON_ID_TYPE_LIKE"||P==="TOGGLE_BUTTON_ID_TYPE_DISLIKE"){J=I=void 0;z=(J=_.H((I=z.toggleButtonRenderer)==
null?void 0:I.defaultServiceEndpoint,_.E_))==null?void 0:J.commands;if(!z)break;z=_.C(z);for(I=z.next();!I.done;I=z.next())if(_.H(I.value,oja))return!0}}return!1};
_.Z.onYtServiceRequestCompleted=function(a,z){var I;(a=(I=z.data)==null?void 0:I.loggingDirectives)&&_.$Wi(_.Kw(),a);this.get("continuation.timedContinuationData",z.data)&&this.data&&this.data.updatedMetadataEndpoint&&(z=z.data.continuation.timedContinuationData,this.ytTaskEmitterBehavior.getTaskManager().addLowPriorityJob(this.fetchUpdatedMetadata.bind(this,z.continuation),z.timeoutMs))};
_.Z.computeHasDateText=function(a){return!!a&&!!a.dateText};
_.eH.Object.defineProperties(kr.prototype,{flexMenuEnabled:{configurable:!0,enumerable:!0,get:function(){var a,z,I,J;return!((J=(a=this.data)==null?void 0:(z=a.videoActions)==null?void 0:(I=z.menuRenderer)==null?void 0:I.flexibleItems)==null||!J.length)}}});
kr.prototype.onYtServiceRequestCompleted=kr.prototype.onYtServiceRequestCompleted;kr.prototype.onYtServiceRequestSent=kr.prototype.onYtServiceRequestSent;kr.prototype.dataChanged=kr.prototype.dataChanged;_.L([_.Q(_.Hc.YtActionHandlerBehavior),_.p("design:type",Object)],kr.prototype,"ytActionHandlerBehavior",void 0);_.L([_.Q(_.k.YtRendererBehavior),_.p("design:type",Object)],kr.prototype,"ytRendererBehavior",void 0);
_.L([_.Q(_.u4.YtRendererstamperBehavior),_.p("design:type",Object)],kr.prototype,"ytRendererstamperBehavior",void 0);_.L([_.Q(_.Zs.YtTaskEmitterBehavior),_.p("design:type",Object)],kr.prototype,"ytTaskEmitterBehavior",void 0);_.L([_.x(),_.p("design:type",Object)],kr.prototype,"data",void 0);_.L([_.x({computed:"computeInfoFormattedStrings(data)"}),_.p("design:type",Array)],kr.prototype,"infoFormattedStrings",void 0);
_.L([_.x({computed:"computeHasDateText(data)",reflectToAttribute:!0}),_.p("design:type",Boolean)],kr.prototype,"hasDateText",void 0);_.L([_.x({reflectToAttribute:!0}),_.p("design:type",Object)],kr.prototype,"wrapVideoActions",void 0);_.L([_.x({reflectToAttribute:!0}),_.p("design:type",Object)],kr.prototype,"hideSentimentBar",void 0);_.L([_.x({reflectToAttribute:!0}),_.S("data"),_.p("design:type",Boolean),_.p("design:paramtypes",[])],kr.prototype,"flexMenuEnabled",null);
_.L([_.A3("#sentiment"),_.p("design:type",Object)],kr.prototype,"sentiment",void 0);_.L([_.O8("data"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],kr.prototype,"dataChanged",null);_.L([_.gz("yt-service-request-sent"),_.p("design:type",Function),_.p("design:paramtypes",[CustomEvent,_.lJ]),_.p("design:returntype")],kr.prototype,"onYtServiceRequestSent",null);
_.L([_.gz("yt-service-request-completed"),_.p("design:type",Function),_.p("design:paramtypes",[CustomEvent,_.Yq]),_.p("design:returntype")],kr.prototype,"onYtServiceRequestCompleted",null);
_.D(kr,"ytd-video-primary-info-renderer",function(){if(M6u===void 0){var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-video-primary-info-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="container" class="style-scope ytd-video-primary-info-renderer"><ytd-badge-supported-renderer hidden="[[!data.topStandaloneBadge]]" top-standalone-badge="[[data.topStandaloneBadge]]" class="style-scope ytd-video-primary-info-renderer"></ytd-badge-supported-renderer><a class="yt-simple-endpoint style-scope ytd-video-primary-info-renderer" hidden="[[!data.superTitleIcon]]" href$="[[computeHref_(data.superTitleLink.runs.0.navigationEndpoint)]]" aria-label$="[[data.superTitleLink.accessibility.accessibilityData.label]]" data="[[data.superTitleLink.runs.0.navigationEndpoint]]"><yt-icon class="super-title-icon style-scope ytd-video-primary-info-renderer" icon="yt-icons:location_pin"></yt-icon></a><yt-formatted-string class="super-title style-scope ytd-video-primary-info-renderer" force-default-style="" text="[[data.superTitleLink]]"></yt-formatted-string><h1 class="title style-scope ytd-video-primary-info-renderer"><yt-formatted-string force-default-style="" text="[[data.title]]" class="style-scope ytd-video-primary-info-renderer"></yt-formatted-string></h1><ytd-badge-supported-renderer badges="[[data.badges]]" hidden="[[!data.badges]]" class="style-scope ytd-video-primary-info-renderer"></ytd-badge-supported-renderer><div id="info" class="style-scope ytd-video-primary-info-renderer"><div id="info-text" class="style-scope ytd-video-primary-info-renderer"><div id="count" hidden="[[!data.viewCount]]" class="style-scope ytd-video-primary-info-renderer"></div><div id="info-strings" hidden="[[!infoFormattedStrings.length]]" class="style-scope ytd-video-primary-info-renderer"><span id="dot" hidden="[[!data.viewCount]]" class="style-scope ytd-video-primary-info-renderer"></span><template is="dom-repeat" items="[[infoFormattedStrings]]" class="style-scope ytd-video-primary-info-renderer"><yt-formatted-string text="[[item]]" class="style-scope ytd-video-primary-info-renderer"></yt-formatted-string></template></div></div><div id="flex" class="style-scope ytd-video-primary-info-renderer"></div><div id="menu-container" class="style-scope ytd-video-primary-info-renderer"><div id="menu" class="style-scope ytd-video-primary-info-renderer"></div><ytd-sentiment-bar-renderer id="sentiment" data="[[data.sentimentBar.sentimentBarRenderer]]" hidden="[[!data.sentimentBar.sentimentBarRenderer]]" class="style-scope ytd-video-primary-info-renderer"></ytd-sentiment-bar-renderer></div></div></div>');a.content.insertBefore(_.w().content.cloneNode(!0),
a.content.firstChild);M6u=a}a=M6u;return a},{mode:1});var qzG;var MN=function(){var a=_.G.apply(this,arguments)||this;a.actionMap={"yt-update-date-text-action":"handleUpdateDateTextAction","yt-update-description-action":"handleUpdateDescriptionAction","yt-change-engagement-panel-visibility-action":"onYtChangeEngagementPanelVisibilityAction"};return a};
_.b(MN,_.G);_.Z=MN.prototype;_.Z.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"}}}};
_.Z.dataChanged=function(){var a;this.descriptionToggled=!((a=this.data)==null||!a.defaultExpanded);var z;this.collapsed=this.descriptionAlwaysCollapsed||!((z=this.data)==null?0:z.defaultExpanded);this.subscribeButtonData=this.data.subscribeButton;this.descriptionCollapsedHeight=(this.data.descriptionCollapsedLines||3)*20;this.showMoreClientVe=_.uq(110509);this.showLessClientVe=_.uq(110510);a=_.TX();z=_.XZ();a&&z&&_.lI(a,z,[this.showMoreClientVe,this.showLessClientVe])};
_.Z.onYtExpanderMoreTapped=function(){var a,z=(a=this.data)==null?void 0:a.showMoreCommand;z&&!this.hasInlineStructuredDescription&&this.componentBehavior.resolveCommand(z);(a=_.TX())&&this.showMoreClientVe&&_.ys(a,this.showMoreClientVe)};
_.Z.onYtExpanderLessTapped=function(){var a=_.TX();a&&this.showLessClientVe&&_.ys(a,this.showLessClientVe);var z;(a=(z=this.data)==null?void 0:z.showLessCommand)&&this.componentBehavior.resolveCommand(a)};
_.Z.handleUpdateDateTextAction=function(a){this.data&&this.data.dateText&&this.set("data.dateText",_.H(a,_.ceN).dateText)};
_.Z.handleUpdateDescriptionAction=function(a){if(a=_.H(a,_.Jti))a.isEmpty||!a.description?this.description.hidden=!0:this.hasAttributedDescription?this.set("data.attributedDescription",_.XJ(a.description)):this.set("data.description",a.description)};
_.Z.onYtChangeEngagementPanelVisibilityAction=function(a){if(_.K("web_structured_description_show_more")||_.K("web_engagement_panel_open_description")){var z,I=(z=_.H(a,_.dQe))==null?void 0:z.targetId,J;a=((J=_.H(a,_.dQe))==null?void 0:J.visibility)==="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED";I==="engagement-panel-structured-description"&&a&&(this.descriptionToggled=!0)}};
_.Z.updateCollapsedFromBinding=function(a){this.collapsed=a.detail.value};
_.Z.updateDescriptionToggledFromBinding=function(a){this.descriptionToggled=a.detail.value};
_.Z.updateCanCollapseFromBinding=function(a){this.canCollapse=a.detail.value};
_.eH.Object.defineProperties(MN.prototype,{metadataCollapsible:{configurable:!0,enumerable:!0,get:function(){var a,z,I=(a=this.data)==null?void 0:(z=a.metadataRowContainer)==null?void 0:z.metadataRowContainerRenderer;return!!I&&!!I.rows&&I.rows.length>I.collapsedItemCount}},
hasInlineStructuredDescription:{configurable:!0,enumerable:!0,get:function(){return!!this.structuredDescriptionContentRenderer}},
hasAttributedDescription:{configurable:!0,enumerable:!0,get:function(){var a;return!((a=this.data)==null||!a.attributedDescription)}},
loadStructuredDescription:{configurable:!0,enumerable:!0,get:function(){return 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}}});
MN.prototype.onYtExpanderLessTapped=MN.prototype.onYtExpanderLessTapped;MN.prototype.onYtExpanderMoreTapped=MN.prototype.onYtExpanderMoreTapped;MN.prototype.dataChanged=MN.prototype.dataChanged;_.L([_.Q(_.Hc.YtActionHandlerBehavior),_.p("design:type",Object)],MN.prototype,"ytActionHandlerBehavior",void 0);_.L([_.Q(_.k.YtRendererBehavior),_.p("design:type",Object)],MN.prototype,"ytRendererBehavior",void 0);
_.L([_.Q(_.u4.YtRendererstamperBehavior),_.p("design:type",Object)],MN.prototype,"ytRendererstamperBehavior",void 0);_.L([_.Q(_.Ms.YtComponentBehavior),_.p("design:type",Object)],MN.prototype,"componentBehavior",void 0);_.L([_.x(),_.p("design:type",Object)],MN.prototype,"data",void 0);_.L([_.x(),_.p("design:type",Boolean)],MN.prototype,"collapsed",void 0);_.L([_.x(),_.p("design:type",Boolean)],MN.prototype,"descriptionToggled",void 0);
_.L([_.x(),_.p("design:type",Boolean)],MN.prototype,"canCollapse",void 0);_.L([_.x(),_.p("design:type",Object)],MN.prototype,"subscribeButtonData",void 0);_.L([_.x(),_.p("design:type",Number)],MN.prototype,"descriptionCollapsedHeight",void 0);_.L([_.x(),_.p("design:type",Object)],MN.prototype,"structuredDescriptionContentRenderer",void 0);_.L([_.x({value:function(){return _.K("web_watch_description_always_collapsed")}}),
_.p("design:type",Boolean)],MN.prototype,"descriptionAlwaysCollapsed",void 0);_.L([_.A3("#description"),_.p("design:type",HTMLDivElement)],MN.prototype,"description",void 0);_.L([_.Fe("data"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],MN.prototype,"dataChanged",null);_.L([_.gz("yt-expander-more-tapped"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],MN.prototype,"onYtExpanderMoreTapped",null);
_.L([_.gz("yt-expander-less-tapped"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],MN.prototype,"onYtExpanderLessTapped",null);_.L([_.S("data.metadataRowContainer"),_.p("design:type",Boolean),_.p("design:paramtypes",[])],MN.prototype,"metadataCollapsible",null);_.L([_.S("data","structuredDescriptionContentRenderer"),_.p("design:type",Boolean),_.p("design:paramtypes",[])],MN.prototype,"hasInlineStructuredDescription",null);
_.L([_.S("data.attributedDescription"),_.p("design:type",Boolean),_.p("design:paramtypes",[])],MN.prototype,"hasAttributedDescription",null);_.L([_.S("hasInlineStructuredDescription","collapsed"),_.p("design:type",Boolean),_.p("design:paramtypes",[])],MN.prototype,"loadStructuredDescription",null);_.L([_.S("data","structuredDescriptionContentRenderer","collapsed"),_.p("design:type",Boolean),_.p("design:paramtypes",[])],MN.prototype,"showInlineStructuredDescription",null);
_.L([_.S("data","hasInlineStructuredDescription","metadataCollapsible"),_.p("design:type",Boolean),_.p("design:paramtypes",[])],MN.prototype,"descriptionAlwaysCollapsible",null);
_.D(MN,"ytd-video-secondary-info-renderer",function(){if(qzG===void 0){var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-video-secondary-info-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="container" class="style-scope ytd-video-secondary-info-renderer"><div id="top-row" class="style-scope ytd-video-secondary-info-renderer"><ytd-video-owner-renderer data="[[data.owner.videoOwnerRenderer]]" subscribe-key="[[subscribeButtonData.subscribedEntityKey]]" class="style-scope ytd-video-secondary-info-renderer"><span class="date style-scope ytd-video-secondary-info-renderer" slot="date">[[getSimpleString(data.dateText)]]</span></ytd-video-owner-renderer><div id="subscribe-button" class="style-scope ytd-video-secondary-info-renderer"></div></div><ytd-expander always-collapsed="[[descriptionAlwaysCollapsed]]" always-toggleable="[[descriptionAlwaysCollapsible]]" can-toggle="[[canCollapse]]" collapsed="[[collapsed]]" collapsed-height="[[descriptionCollapsedHeight]]" is-toggled="[[descriptionToggled]]" on-can-toggle-changed="updateCanCollapseFromBinding" on-collapsed-changed="updateCollapsedFromBinding" on-is-toggled-changed="updateDescriptionToggledFromBinding" class="style-scope ytd-video-secondary-info-renderer"><div id="description" slot="content" class="style-scope ytd-video-secondary-info-renderer"><yt-attributed-string class="content style-scope ytd-video-secondary-info-renderer" data="[[data.attributedDescription]]" disable-upgrade$="[[!hasAttributedDescription]]" hidden="[[!hasAttributedDescription]]" user-input=""></yt-attributed-string><yt-formatted-string class="content style-scope ytd-video-secondary-info-renderer" disable-upgrade$="[[hasAttributedDescription]]" force-default-style="" hidden="[[hasAttributedDescription]]" split-lines="[[!hasAttributedDescription]]" text="[[data.description]]"></yt-formatted-string><ytd-structured-description-content-renderer data="[[structuredDescriptionContentRenderer]]" disable-upgrade$="[[!loadStructuredDescription]]" hidden="[[!showInlineStructuredDescription]]" inline-structured-description="[[hasInlineStructuredDescription]]" class="style-scope ytd-video-secondary-info-renderer"></ytd-structured-description-content-renderer></div><ytd-metadata-row-container-renderer class="sticky style-scope ytd-video-secondary-info-renderer" slot="sticky" collapsed="[[collapsed]]" data="[[data.metadataRowContainer.metadataRowContainerRenderer]]"></ytd-metadata-row-container-renderer><yt-formatted-string class="more-button style-scope ytd-video-secondary-info-renderer" slot="more-button" role="button" text="[[data.showMoreText]]"></yt-formatted-string><yt-formatted-string class="less-button style-scope ytd-video-secondary-info-renderer" slot="less-button" role="button" text="[[data.showLessText]]"></yt-formatted-string></ytd-expander></div>');a.content.insertBefore(_.w().content.cloneNode(!0),
a.content.firstChild);qzG=a}a=qzG;return a},{mode:2});var eZ4;var cj=function(){return _.G.apply(this,arguments)||this};
_.b(cj,_.G);cj.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:_.K("web_modern_buttons"),forceIconButton:!_.K("web_modern_buttons")}}}},"data.subscribeButton":{id:"subscribe",mapping:{buttonRenderer:"ytd-button-renderer",subscribeButtonRenderer:"ytd-subscribe-button-renderer"}}}};
cj.prototype.activate=function(a){a.appendTo(this.player);a.getPlayerPromise().then(function(z){z.setMinimized(!0)});
this.active=!0};
cj.prototype.deactivate=function(){var a=this.player.firstElementChild;a.getPlayerPromise().then(function(z){z.setMinimized(!1)});
this.active=!1;return a};
cj.prototype.onScrollUpTap=function(){var a=_.ab().resolve(_.aK).getCurrentPage();a&&a.setScrollTop(0)};
_.L([_.Q(_.k.YtRendererBehavior),_.p("design:type",Object)],cj.prototype,"ytRendererBehavior",void 0);_.L([_.Q(_.u4.YtRendererstamperBehavior),_.p("design:type",Object)],cj.prototype,"ytRendererstamperBehavior",void 0);_.L([_.Q(_.Ms.YtComponentBehavior),_.p("design:type",Object)],cj.prototype,"componentBehavior",void 0);_.L([_.x(),_.p("design:type",Object)],cj.prototype,"data",void 0);_.L([_.x({reflectToAttribute:!0}),_.p("design:type",Boolean)],cj.prototype,"active",void 0);
_.L([_.x({reflectToAttribute:!0,value:function(){return _.K("kevlar_watch_while_miniplayer_bar_dark_launch")}}),
_.p("design:type",Boolean)],cj.prototype,"darkLaunch",void 0);_.L([_.A3("#player"),_.p("design:type",HTMLDivElement)],cj.prototype,"player",void 0);_.L([_.U({disableElementRegistration:!0,is:"ytd-miniplayer-bar-renderer"})],cj);
_.D(cj,"ytd-miniplayer-bar-renderer",function(){if(eZ4!==void 0)return eZ4;var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-miniplayer-bar-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="player" class="style-scope ytd-miniplayer-bar-renderer"></div>\n<div id="meta" class="style-scope ytd-miniplayer-bar-renderer">\n  <div id="title-row" class="style-scope ytd-miniplayer-bar-renderer">\n    <h1 id="title" class="style-scope ytd-miniplayer-bar-renderer">[[getSimpleString(data.title)]]</h1>\n    <div id="scroll-up" on-tap="onScrollUpTap" class="style-scope ytd-miniplayer-bar-renderer"></div>\n  </div>\n  <yt-formatted-string id="owner" link-inherit-color="" text="[[data.owner]]" class="style-scope ytd-miniplayer-bar-renderer"></yt-formatted-string>\n  <div id="buttons" class="style-scope ytd-miniplayer-bar-renderer">\n    <div id="menu" class="style-scope ytd-miniplayer-bar-renderer"></div>\n    <div id="subscribe" class="style-scope ytd-miniplayer-bar-renderer"></div>\n  </div>\n</div>\n');a.content.insertBefore(_.w().content.cloneNode(!0),
a.content.firstChild);return eZ4=a},{mode:1});_.Jf(_.ec(function(a){var z=_.Mm("script");_.h2(function(){var I;if(I=JSON)I=TMt(a.data()),I=_.kP(JSON.stringify(I).replace(/</g,"\\u003C"));var J=a.data(),r=_.cd(J.title).trim().length===0,P=!J.publishDate||J.publishDate.trim().length===0,N,u,E,O,f=!((N=J.thumbnail)==null?0:(u=N.thumbnails)==null?0:u.length)||!((E=J.thumbnail)==null?0:E.thumbnails[0].url)||((O=J.thumbnail)==null?void 0:O.thumbnails[0].url.trim().length)===0;z.value&&I&&!(r||P||f)&&_.ML(z.value,I)},"I9AhLd");
return _.B("player-microformat-renderer",{class:"playerMicroformatRendererHost"},_.B("script",{el:z,type:"application/ld+json"}))},"Gk"),"player-microformat-renderer",{props:{data:_.I5}});
}catch(e){_._DumpException(e)}
try{
var cDa;_.MLN=function(a){return a.watch.watchWindowSize};
cDa=function(a,z,I,J){if(a.isLockupToWatchTransitionEnabled){if(z){var r={};a.viewTransitionCoordinator.registerElement(z,(r["lockup-to-watch"]="player-lockup-to-watch",r["watch-next-appears"]="player-watch-next-loaded",r))}I&&(z={},a.viewTransitionCoordinator.registerElement(I,(z["lockup-to-watch"]="below-lockup-to-watch",z["watch-next-appears"]="below-watch-next-loaded",z)));J&&(I={},a.viewTransitionCoordinator.registerElement(J,(I["watch-next-appears"]="secondary-watch-next-loaded",I)))}};
_.Yex=function(a){return _.rg({type:"SET_IS_WATCH_ACTIVE",payload:{isWatchActive:a}})};var exj=function(a){_.FC.call(this);this.JSC$22934_watchApi=a;qeL(this)};
_.b(exj,_.FC);var qeL=function(a){_.t(function(z){if(z.nextAddress==1)return z.yield(av9(a),2);jbP(a);_.nu(z)})},av9=function(a){var z,I,J,r;
return _.t(function(P){if(P.nextAddress==1)return P.yield(a.JSC$22934_watchApi.playerApi,2);z=P.yieldResult;a.JSC$22934_watchApi.registerActionHandler("yt-dismiss-shopping-timely-shelf-action",function(){zZI(a)});
I=a.JSC$22934_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){jbP(a)});
J=function(N){a.onCueRangeEnter(N)};
z.addEventListener("onCueRangeEnter",J);r=function(N){a.onCueRangeExit(N)};
z.addEventListener("onCueRangeExit",r);a.addOnDisposeCallback(function(){a.JSC$22934_watchApi.unsubscribeByKey(I);z.removeEventListener("onCueRangeEnter",J);z.removeEventListener("onCueRangeExit",r)});
_.nu(P)})},IvG=function(a){var z,I,J,r,P,N,u,E,O;
return(P=(z=a.contents)==null?void 0:(I=z.twoColumnWatchNextResults)==null?void 0:(J=I.results)==null?void 0:(r=J.results)==null?void 0:r.contents)==null?void 0:(N=P.find(function(f){var A,n,F;return(A=f.itemSectionRenderer)==null?void 0:(n=A.contents)==null?void 0:(F=n[0])==null?void 0:F.shoppingTimelyShelfViewModel}))==null?void 0:(u=N.itemSectionRenderer)==null?void 0:(E=u.contents)==null?void 0:(O=E[0])==null?void 0:O.shoppingTimelyShelfViewModel},jbP=function(a){var z;
_.t(function(I){if(I.nextAddress==1)return(z=a.JSC$22934_watchApi.getWatchNextResponse())?I.yield(zZI(a),2):I.return();a.shoppingTimelyShelfViewModel=IvG(z);JP7(a);rPG(a);_.nu(I)})},JP7=function(a){var z,I=(z=a.shoppingTimelyShelfViewModel)==null?void 0:z.offerIdToVariants;
I&&(z=I.filter(function(J){return J.key&&J.value}).map(function(J){return[J.key,
J.value]}),a.variantsMap=new Map(z))},rPG=function(a){var z,I,J,r,P,N;
_.t(function(u){if(u.nextAddress==1)return(I=(z=a.shoppingTimelyShelfViewModel)==null?void 0:z.cueRanges)?u.yield(a.JSC$22934_watchApi.playerApi,2):u.return();J=u.yieldResult;a.cueRanges=I;r=_.C(I);for(P=r.next();!P.done;P=r.next())N=P.value,N.startTime!==void 0&&N.endTime!==void 0&&N.id!==void 0&&J.addCueRange("shopping_timely_shelf"+N.id,PlN(N.startTime),PlN(N.endTime));_.nu(u)})},PlN=function(a){return Number(a.seconds||0)+(a.nanos||0)/1E9};
exj.prototype.onCueRangeEnter=function(a){if(a.startsWith("shopping_timely_shelf")){var z=a.substring(21),I,J;a=(I=this.variantsMap)==null?void 0:(J=I.get(z))==null?void 0:J.shelf;if(_.K("web_enable_shopping_timely_shelf_client_overwrite")){var r,P,N,u,E;I=a==null?void 0:(r=a.shoppingTimelyShelfContentViewModel)==null?void 0:(P=r.button)==null?void 0:(N=P[1])==null?void 0:(u=N.buttonViewModel)==null?void 0:(E=u.onTap)==null?void 0:E.innertubeCommand;var O,f;if(I==null?0:(O=I.menuEndpoint)==null?0:
(f=O.menu)==null?0:f.menuRenderer)I.openPopupAction=I.menuEndpoint,I.openPopupAction.popup=I.openPopupAction.menu,I.openPopupAction.popup.menuPopupRenderer=I.openPopupAction.popup.menuRenderer,I.openPopupAction.popupType="DROPDOWN",delete I.menuEndpoint,delete I.openPopupAction.menu,delete I.openPopupAction.popup.menuRenderer}a&&this.JSC$22934_watchApi.provideRenderingData("SHOPPING_TIMELY_SHELF",a)}};
exj.prototype.onCueRangeExit=function(a){a.startsWith("shopping_timely_shelf")&&this.JSC$22934_watchApi.provideRenderingData("SHOPPING_TIMELY_SHELF",{})};
var zZI=function(a){var z,I,J,r,P;return _.t(function(N){if(N.nextAddress==1)return N.yield(a.JSC$22934_watchApi.playerApi,2);z=N.yieldResult;if(a.cueRanges)for(I=_.C(a.cueRanges),J=I.next();!J.done;J=I.next())r=J.value,r.id&&(P="shopping_timely_shelf"+r.id,z.removeCueRange(P));a.JSC$22934_watchApi.provideRenderingData("SHOPPING_TIMELY_SHELF",{});a.shoppingTimelyShelfViewModel=void 0;a.cueRanges=void 0;a.variantsMap=void 0;_.nu(N)})};var unu=function(a){_.FC.call(this);var z=this;this.JSC$22941_watchApi=a;a=_.QT(_.qo(),_.CxI,function(){Z1I(z)});
this.addOnDisposeCallback(a);a=_.QT(_.qo(),_.MLN,function(){Z1I(z)});
this.addOnDisposeCallback(a);Clx(this);NMu(this);t6t()};
_.b(unu,_.FC);var Clx=function(a){var z=function(J){_.qo().dispatch(_.OZI(J.matches))},I=window.matchMedia("(max-width: "+(999+_.M7())+"px)");
I.addListener(z);a.addOnDisposeCallback(function(){I.removeListener(z)});
z(I)},NMu=function(a){a.JSC$22941_watchApi.registerActionHandler("yt-window-resized",function(){t6t()});
a.addOnDisposeCallback(function(){a.JSC$22941_watchApi.unregisterActionHandler("yt-window-resized")})},t6t=function(){var a=_.bk();
_.qo().dispatch(_.rg({type:"SET_WATCH_WINDOW_SIZE",payload:{watchWindowSize:{width:a.width,height:a.height}}}))},Z1I=function(a){var z;
_.t(function(I){if(I.nextAddress==1)return I.yield(a.JSC$22941_watchApi.playerApi,2);z=I.yieldResult;z.setSize(NaN,NaN);_.nu(I)})};var Ej9=function(a){_.FC.call(this);var z=_.ab().resolve(_.bH);cDa(z,a.getElement("PLAYER_CONTAINER"),a.getElement("BELOW_THE_PLAYER"),a.getElement("SECONDARY"));this.addOnDisposeCallback(function(){var I=a.getElement("PLAYER_CONTAINER"),J=a.getElement("BELOW_THE_PLAYER"),r=a.getElement("SECONDARY");z.isLockupToWatchTransitionEnabled&&(I&&_.pU(z.viewTransitionCoordinator,I),J&&_.pU(z.viewTransitionCoordinator,J),r&&_.pU(z.viewTransitionCoordinator,r))})};
_.b(Ej9,_.FC);_.Dq=function(a){_.Ol.call(this);var z=this;this.rootElement=a;this.activeModules=[];this.actionHandlers=new Map;this.TEST_ONLY={getActiveModules:function(){return z.activeModules}};
this.initPersistentModules();this.addOnDisposeCallback(this.subscribeToActiveChanged(function(I){z.initOrDisposeActiveModules(I)}));
this.onAttached()};
_.b(_.Dq,_.Ol);_.Z=_.Dq.prototype;_.Z.getRoot=function(){return this.rootElement};
_.Z.getElement=function(a){return this.rootElement.getElement(a)};
_.Z.setPlayerResponse=function(a){this.playerResponse=a;this.publish("PLAYER_RESPONSE_UPDATED",a)};
_.Z.getPlayerResponse=function(){return this.playerResponse};
_.Z.setWatchNextResponse=function(a){this.watchNextResponse===a?this.publish("WATCH_NEXT_RESPONSE_RELOADED"):(this.watchNextResponse=a,this.publish("WATCH_NEXT_RESPONSE_UPDATED",a))};
_.Z.getWatchNextResponse=function(){return this.watchNextResponse};
_.Z.registerActionHandler=function(a,z){var I=this;if(_.K("web_watch_controller_reg_multiple_handlers_killswitch")){var J={};_.m_(_.w2.getInstance(),(J[a]=z,J),this.getRoot())}else this.actionHandlers.has(a)||(this.actionHandlers.set(a,[]),J={},_.m_(_.w2.getInstance(),(J[a]=function(){var r=_.dO.apply(0,arguments);return(I.actionHandlers.get(a)||[]).map(function(P){return P.apply(null,_.ih(r))})},J),this.getRoot())),this.actionHandlers.get(a).push(z)};
_.Z.unregisterActionHandler=function(a){if(_.K("web_watch_controller_reg_multiple_handlers_killswitch")){var z={};_.y4(_.w2.getInstance(),(z[a]=!0,z),this.getRoot())}else(z=this.actionHandlers.get(a))?(z.pop(),z.length===0&&(z={},_.y4(_.w2.getInstance(),(z[a]=!0,z),this.getRoot()),this.actionHandlers.delete(a))):_.Xd(new _.Fn("Attempted to unregister an action handler which is not registered.",a))};
_.Z.addPageDisposeJob=function(a){this.rootElement.pageDisposeJobs||(this.rootElement.pageDisposeJobs=[]);_.HGG(this.rootElement.pageDisposeJobs,a)};
_.Z.removePageDisposeJob=function(a){this.rootElement.pageDisposeJobs&&_.Di(this.rootElement.pageDisposeJobs,a)};
_.Z.dispatchEvent=function(a,z){_.PA(this.rootElement,a,z)};
_.Z.provideRenderingData=function(a,z){this.rootElement.provideRenderingData(a,z)};
_.Z.scrollWatchTo=function(a,z){var I;(I=this.watchScrollManager)==null||I.scrollWatchTo(a,z)};
_.Z.focusOnPlayer=function(){var a=this.getElement("PLAYER");_.Yv(a,function(){if(a&&a.firstElementChild){var z=a.querySelector(".html5-video-player");z&&(_.Cd(_.ab().resolve(_.V7)),z.focus())}else _.Xd(Error("Go"))})};
_.Z.updateCinematicFullscreenConfig=function(){if(_.K("web_cinematic_manager_redux_killswitch")){var a=!!this.rootElement.theater,z=!!this.rootElement.fullscreen,I;(I=this.watchCinematicManager)==null||_.dw(I,z,a)}};
_.Z.subscribeToActiveChanged=function(a,z){z=z===void 0?!0:z;var I=_.QT(_.qo(),_.FXP,function(J){a(J)});
z&&a(_.FXP(_.qo().getState()));return I};
_.Z.isActive=function(){return _.FXP(_.qo().getState())};
_.Z.onAttached=function(){var a=_.K("external_fullscreen");_.K("use_unified_flag_accessor")&&(a=_.ab().resolve(_.gP0).retriever.getFlag(_.aTG));(a||_.TZ("START_IN_FULL_WINDOW_MODE"))&&this.dispatchEvent("yt-set-fullerscreen-styles")};
var BM9=function(a){return a.getRoot().is==="ytd-watch-flexy"||a.getRoot().is==="ytd-watch-grid"},Rn=function(a){return a.getRoot().is==="ytd-watch-fixie"};
_.Dq.prototype.initPersistentModules=function(){if(Rn(this)||BM9(this)&&_.K("kevlar_watch_flexy_theater_manager")){var a=new _.KAL(this);_.t7(this,a)}a=new _.Z3x(this);_.t7(this,a);a=new _.GA(this);_.t7(this,a);a=new _.IHx(this);_.t7(this,a);a=new _.Ws9(this);_.t7(this,a);a=new _.X5(this);_.t7(this,a);if(Rn(this)||BM9(this)&&_.K("kevlar_watch_flexy_playlist_manager"))a=new _.DYO(this),_.t7(this,a);_.K("web_thumbnail_to_watch_transition")&&(a=new Ej9(this),_.t7(this,a))};
_.Dq.prototype.initOrDisposeActiveModules=function(a){a?(this.watchScrollManager=new _.UP(this),this.activeModules.push(this.watchScrollManager),this.activeModules.push(new _.H3t(this)),_.K("web_enable_shopping_timely_shelf_client")&&this.activeModules.push(new exj(this)),this.activeModules.push(new _.h29(this)),Rn(this)&&this.activeModules.push(new unu(this)),this.activeModules.push(new _.mYa(this)),this.activeModules.push(new _.O37(this)),(Rn(this)||_.K("kevlar_watch_flexy_error_screen_data_provider"))&&
this.activeModules.push(new _.io7(this)),this.activeModules.push(new _.i39(this)),(Rn(this)||_.K("kevlar_watch_flexy_ypc_manager"))&&this.activeModules.push(new _.kZI(this)),(Rn(this)||_.K("kevlar_watch_flexy_ads_manager"))&&this.activeModules.push(new _.WAN(this)),_.K("kevlar_watch_cinematics")&&(this.watchCinematicManager=new _.LA9(this),this.activeModules.push(this.watchCinematicManager),this.updateCinematicFullscreenConfig()),_.K("kevlar_watch_player_menu_highlight_manager_killswitch")||this.activeModules.push(new _.$YI(this)),
_.K("kevlar_watch_flexy_gestures_manager")&&this.activeModules.push(new _.rD9(this)),a=_.K("swatcheroo_directly_provide_comments")&&this.getRoot().is==="ytd-watch-grid",_.K("kevlar_watch_flexy_comments_manager")&&!a&&this.activeModules.push(new _.qf9(this)),_.K("web_watch_get_updated_metadata_manager")&&this.activeModules.push(new _.$r(this)),this.activeModules.push(new _.iW9(this)),this.activeModules.push(new _.hxa(this)),_.K("web_enable_timely_actions")&&this.activeModules.push(new _.$I7(this)),
_.K("web_enable_player_creator_endscreen_manager")&&this.activeModules.push(new _.jh7(this)),_.K("web_watch_enable_multiview_manager")&&this.activeModules.push(new _.mCL(this)),_.K("web_fullscreen_components")&&this.activeModules.push(new _.$Cx(this)),_.K("web_player_rtr_ctrls")&&this.activeModules.push(new _.IT4(this))):(_.qM(this.activeModules),this.activeModules.length=0,this.watchScrollManager=void 0)};
_.Dq.prototype.disposeInternal=function(){_.Ol.prototype.disposeInternal.call(this);this.initOrDisposeActiveModules(!1)};
_.eH.Object.defineProperties(_.Dq.prototype,{playerApi:{configurable:!0,enumerable:!0,get:function(){return this.getRoot().getPlayer().getPlayerPromise()}}});
}catch(e){_._DumpException(e)}
try{
var AmZ,Tu,sYf,ngM,FQY,H7V,KQZ,b70;AmZ=function(){var a=_.HA();a.info||(a.info={});return a.info};
Tu=function(a){return Math.round(_.Qs()+a)};
sYf=function(){var a;if(_.K("csi_use_performance_navigation_timing")){var z,I,J,r=_.Vs==null?void 0:(a=_.Vs.getEntriesByType)==null?void 0:(z=a.call(_.Vs,"navigation"))==null?void 0:(I=z[0])==null?void 0:(J=I.toJSON)==null?void 0:J.call(I);r?(r.requestStart=Tu(r.requestStart),r.responseEnd=Tu(r.responseEnd),r.redirectStart=Tu(r.redirectStart),r.redirectEnd=Tu(r.redirectEnd),r.domainLookupEnd=Tu(r.domainLookupEnd),r.connectStart=Tu(r.connectStart),r.connectEnd=Tu(r.connectEnd),r.responseStart=Tu(r.responseStart),
r.secureConnectionStart=Tu(r.secureConnectionStart),r.domainLookupStart=Tu(r.domainLookupStart),r.isPerformanceNavigationTiming=!0,a=r):a=_.Vs.timing}else a=_.K("csi_performance_timing_to_object")?JSON.parse(JSON.stringify(_.Vs.timing)):_.Vs.timing;return a};
ngM=function(){if(_.Vs.getEntriesByType){var a=_.Vs.getEntriesByType("paint");if(a=_.X0(a,function(I){return I.name==="first-paint"}))return Tu(a.startTime)}var z;
_.K("csi_use_performance_navigation_timing")?z=_.Vs.getEntriesByType("first-paint")[0].startTime:z=_.Vs.timing.msFirstPaint;return z?Math.max(0,z):0};
FQY=function(){var a=window.location.protocol,z=_.Vs.getEntriesByType("resource");z=_.Z8(z,function(I){return I.name.indexOf(a+"//fonts.gstatic.com/s/")===0});
(z=KQZ(z,function(I,J){return J.duration>I.duration?J:I}))&&z.startTime>0&&z.responseEnd>0&&(_.SE("wffs",Tu(z.startTime)),_.SE("wffe",Tu(z.responseEnd)))};
H7V=function(a,z){a=document.querySelector(a);if(!a)return!1;var I="",J=a.nodeName;J==="SCRIPT"?(I=a.src,I||(I=a.getAttribute("data-timing-href"))&&(I=window.location.protocol+I)):J==="LINK"&&(I=a.href);_.m9(document)&&a.setAttribute("nonce",_.m9(document));return I?(a=_.Vs.getEntriesByName(I))&&a[0]&&(a=a[0],I=_.Qs(),_.SE("rsf_"+z,I+Math.round(a.fetchStart)),_.SE("rse_"+z,I+Math.round(a.responseEnd)),a.transferSize!==void 0&&a.transferSize===0)?!0:!1:!1};
_.dk=function(a,z){_.Ue(function(){_.hR("").info.actionType=a;z&&_.$S("TIMING_AFT_KEYS",z);_.$S("TIMING_ACTION",a);var I=_.yXI(_.Xw("TIMING_INFO",{}));Object.keys(I).length>0&&_.iI(I);I={isNavigation:!0,actionType:_.XGM(_.Xw("TIMING_ACTION"))};var J=_.Xw("PREVIOUS_ACTION");J&&(I.previousAction=_.XGM(J));if(J=_.Xw("CLIENT_PROTOCOL"))I.httpProtocol=J;if(J=_.Xw("CLIENT_TRANSPORT"))I.transportProtocol=J;(J=_.TX())&&J!=="UNDEFINED_CSN"&&(I.clientScreenNonce=J);J=_.mg0();if(J===1||J===-1)I.isVisible=!0;
J=_.V$x().loadType==="cold";var r=AmZ();J||(J=r.yt_lt==="cold");if(J){I.loadType="cold";J=AmZ();r=sYf();var P=_.Qs(),N=_.Xw("CSI_START_TIMESTAMP_MILLIS",0);N>0&&!_.K("embeds_web_enable_csi_start_override_killswitch")&&(P=N);P&&(_.SE("srt",r.responseStart),J.prerender!==1&&_.Ug7(P));J=ngM();J>0&&_.SE("fpt",J);J=sYf();J.isPerformanceNavigationTiming&&_.iI({performanceNavigationTiming:!0},void 0);_.SE("nreqs",J.requestStart,void 0);_.SE("nress",J.responseStart,void 0);_.SE("nrese",J.responseEnd,void 0);
J.redirectEnd-J.redirectStart>0&&(_.SE("nrs",J.redirectStart,void 0),_.SE("nre",J.redirectEnd,void 0));J.domainLookupEnd-J.domainLookupStart>0&&(_.SE("ndnss",J.domainLookupStart,void 0),_.SE("ndnse",J.domainLookupEnd,void 0));J.connectEnd-J.connectStart>0&&(_.SE("ntcps",J.connectStart,void 0),_.SE("ntcpe",J.connectEnd,void 0));J.secureConnectionStart>=_.Qs()&&J.connectEnd-J.secureConnectionStart>0&&(_.SE("nstcps",J.secureConnectionStart,void 0),_.SE("ntcpe",J.connectEnd,void 0));_.Vs&&"getEntriesByType"in
_.Vs&&FQY();J=[];if(document.querySelector&&_.Vs&&_.Vs.getEntriesByName)for(var u in b70)b70.hasOwnProperty(u)&&(r=b70[u],H7V(u,r)&&J.push(r));if(J.length>0)for(I.resourceInfo=[],u=_.C(J),J=u.next();!J.done;J=u.next())I.resourceInfo.push({resourceCache:J.value})}_.iI(I);I=_.bI();I.preLoggedGelInfos||(I.preLoggedGelInfos=[]);u=I.preLoggedGelInfos;I=_.SHO();J=void 0;for(r=0;r<u.length;r++)if(P=u[r],P.loadType){J=P.loadType;break}if(_.V$x().loadType==="cold"&&(I.loadType==="cold"||J==="cold")){J=_.QoI();
r=_.bI();r=r.gelTicks?r.gelTicks:r.gelTicks={};for(var E in J)if(!(E in r))if(typeof J[E]==="number")_.SE(E,_.xA(E));else if(_.K("log_repeated_ytcsi_ticks"))for(P=_.C(J[E]),N=P.next();!N.done;N=P.next())N=N.value,_.SE(E.slice(1),N);E={};J=!1;u=_.C(u);for(r=u.next();!r.done;r=u.next())J=r.value,_.UX(I,J),_.UX(E,J),J=!0;J&&_.iI(E)}_.YHO(!0);E=_.Xw("TIMING_ACTION");_.DH("ytglobal.timingready_")&&E&&_.Z$1()&&_.cXE()&&_.pGi()})()};
KQZ=function(a,z){return Array.prototype.reduce.call(a,z,{duration:0})};
b70={'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 h5V={};h5V.YtVisibilityRootBehavior=[_.r9X.YtVisibilityObserverBehavior,{isVisibilityRoot:!0,resetVisibilityRoot:function(){_.Y8(this.visibilityObserverForChild_)},
disconnectVisibilityRoot:function(){this.visibilityObserverForChild_&&this.visibilityObserverForChild_.disconnect(_.Xw("INNERTUBE_CLIENT_NAME")==="WEB")},
reconnectVisibilityRoot:function(){this.visibilityObserverForChild_&&this.visibilityObserverForChild_.reconnect();var a=_.Xw("INNERTUBE_CLIENT_NAME")!=="WEB";_.K("kevlar_use_vimio_behavior")&&a&&_.IUO()}}];_.WR={};_.WR.YtPageBehavior=[[{listeners:{"yt-get-context-provider":"getContextProvider_"},attached:function(){this.getProvidedContext()&&this.getProvidedContext().start()},
detached:function(){this.getProvidedContext()&&this.getProvidedContext().pause()},
getContextProvider_:function(a){a.detail.contextProvider=this;a.stopPropagation()},
getProvidedContext:function(){return null}},
{created:function(){this.pageContext=null},
getProvidedContext:function(){return this.pageContext}}],
h5V.YtVisibilityRootBehavior,{_noAccessors:!0,properties:{active:Boolean,data:Object,loading:Boolean,pageDisposeJobs:Array},observers:["ytPageBehaviorActiveObserver_(active)"],created:function(){this.pageCount=0;this.readyResolver_=_.kq();this.pageScrollElement=null;this.isVisibilityRoot=!0},
ready:function(){this.readyResolver_.resolve()},
getReady:function(){return this.readyResolver_.promise},
loadPage:function(a){var z=this;this.pageCount+=1;_.K("kevlar_use_vimio_behavior")&&(_.Xw("INNERTUBE_CLIENT_NAME")==="WEB"?_.GW.addJob(function(){z.reconnectVisibilityRoot()},8):(this.disconnectVisibilityRoot(),this.reconnectVisibilityRoot()));
this.loadPage_(a)},
loadPage_:function(a){this.data=a},
ytPageBehaviorActiveObserver_:function(a){var z=this;_.K("kevlar_use_vimio_behavior")&&(a?_.Xw("INNERTUBE_CLIENT_NAME")==="WEB"?_.GW.addJob(function(){z.reconnectVisibilityRoot()},8):this.reconnectVisibilityRoot():this.disconnectVisibilityRoot())},
setScrollTop:function(a){if(!this.setScrollTopJobId_){var z=this;this.setScrollTopJobId_=window.requestAnimationFrame(function(){z.setScrollTopJobId_=0;var I=_.ab().resolve(_.eL(_.V7));I&&_.Cd(I);this.getPageScrollingElement().scrollTop=a}.bind(this))}},
getPageScrollingElement:function(){return this.pageScrollElement||_.SN(document)},
getScrollTop:function(){return this.getPageScrollingElement().scrollTop}}];
}catch(e){_._DumpException(e)}
try{
var fSE;var XY=function(){var a=_.G.apply(this,arguments)||this;a.playerListenerConfig=null;a.actionMap={"yt-show-watch-page-survey":"openSurvey"};return a};
_.b(XY,_.G);_.Z=XY.prototype;_.Z.dataChanged=function(){var a=this,z=_.zI();z&&z.getPlayerPromise().then(function(J){a.maybeRemovePlayerListeners(J)});
var I=this.data&&this.data.survey;I&&((I=(I=I.singleOptionSurveyRenderer||I.checkboxSurveyRenderer||I.multiStageSurveyRenderer)&&I.watchPageDisplayTriggers)?this.triggerWatchPageSurvey(z,I):this.openSurvey())};
_.Z.triggerWatchPageSurvey=function(a,z){var I=this,J,r,P,N,u,E,O,f,A;return _.t(function(n){if(n.nextAddress==1)return a?n.yield(a.getPlayerPromise(),2):n.return();I.player=n.yieldResult;if(!I.player)return n.return();J={};r=_.C(z);for(P=r.next();!P.done;P=r.next())N=P.value,u=_.C(I.createEventListenerPair(N)),E=u.next().value,O=u.next().value,f=E,A=O,f&&A&&(J[f]=A,I.ytPlayerListenerBehavior.listenToPlayerEvent(I.player,f,A));I.playerListenerConfig=J;_.nu(n)})};
_.Z.createEventListenerPair=function(a){var z=a.playbackEventTrigger;return z?this.handlePlaybackTrigger(z):(a=a.watchTimeTrigger)?this.handleWatchTimeTrigger(a):[void 0,void 0]};
_.Z.handleWatchTimeTrigger=function(a){var z=this;this.accumulatedMediaTime=this.lastKnownPlaybackPosition=0;var I=a.videoWatchFraction,J=a.watchTimeSec;return J&&I?["onVideoProgress",function(){z.player&&z.isWatchTimeConditionMet(z.player,I,J)&&z.showSurvey()}]:[void 0,
void 0]};
_.Z.isWatchTimeConditionMet=function(a,z,I){var J=a.getProgressState(),r=J.current-this.lastKnownPlaybackPosition;r<5&&(this.accumulatedMediaTime+=r);this.lastKnownPlaybackPosition=J.current;J=Math.round(this.accumulatedMediaTime/J.duration*1E3)/1E3;return a.getPresentingPlayerType&&a.getPresentingPlayerType()===1&&(this.accumulatedMediaTime>I||J>z)};
_.Z.handlePlaybackTrigger=function(a){var z=this;a=a.playbackEvent;if(a==="SURVEY_DISPLAY_TRIGGER_PLAYBACK_EVENT_PLAYBACK_FINISH"){var I="onStateChange";var J=function(r){r===0&&z.showSurvey()}}else a==="SURVEY_DISPLAY_TRIGGER_PLAYBACK_EVENT_CONTENT_VIDEO_START"?(I="onVideoProgress",J=function(r){z.player&&z.player.getPresentingPlayerType&&z.player.getPresentingPlayerType()===1&&r&&z.showSurvey()}):a==="SURVEY_DISPLAY_TRIGGER_PLAYBACK_EVENT_AD_FINISH"&&(I="onAdEnd",J=this.showSurvey);
return[I,J]};
_.Z.showSurvey=function(){this.openSurvey();this.player&&this.maybeRemovePlayerListeners(this.player)};
_.Z.openSurvey=function(){var a=this,z=this.data&&this.data.survey;this.ytdReduxBehavior.dispatch(_.sGe(!!z));_.GW.addJob(function(){a.ytdOpenPopupBehavior.openPopup({openPopupAction:{popupType:"SURVEY",popup:z}})},0,0)};
_.Z.maybeRemovePlayerListeners=function(a){if(this.playerListenerConfig){for(var z=_.C(Object.keys(this.playerListenerConfig)),I=z.next();!I.done;I=z.next())I=I.value,this.ytPlayerListenerBehavior.unlistenFromPlayerEvent(a,I,this.playerListenerConfig[I]);this.playerListenerConfig=null}};
XY.prototype.dataChanged=XY.prototype.dataChanged;_.L([_.Q(_.k.YtRendererBehavior),_.p("design:type",Object)],XY.prototype,"ytRendererBehavior",void 0);_.L([_.Q(_.rI),_.p("design:type",Object)],XY.prototype,"ytdOpenPopupBehavior",void 0);_.L([_.Q(_.jz.YtPlayerListenerBehavior),_.p("design:type",_.z4)],XY.prototype,"ytPlayerListenerBehavior",void 0);_.L([_.Q(_.Hc.YtActionHandlerBehavior),_.p("design:type",Object)],XY.prototype,"ytActionHandlerBehavior",void 0);
_.L([_.Q(_.pV),_.p("design:type",Object)],XY.prototype,"ytdReduxBehavior",void 0);_.L([_.x(),_.p("design:type",Object)],XY.prototype,"data",void 0);_.L([_.x(),_.p("design:type",Object)],XY.prototype,"playerListenerConfig",void 0);_.L([_.x({value:0}),_.p("design:type",Number)],XY.prototype,"lastKnownPlaybackPosition",void 0);_.L([_.x({value:0}),_.p("design:type",Number)],XY.prototype,"accumulatedMediaTime",void 0);_.L([_.x(),_.p("design:type",Object)],XY.prototype,"player",void 0);
_.L([_.O8("data"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],XY.prototype,"dataChanged",null);_.L([_.U({is:"ytd-survey-trigger-renderer",disableElementRegistration:!0})],XY);
_.D(XY,"ytd-survey-trigger-renderer",function(){if(fSE!==void 0)return fSE;var a=document.createElement("template");_.V(a,"\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-survey-trigger-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e\n");a.content.insertBefore(_.w().content.cloneNode(!0),a.content.firstChild);return fSE=a},{mode:1});
}catch(e){_._DumpException(e)}
try{
var roO=new _.jv("promotedSparklesWebRenderer");var Pwj=new _.jv("relatedChipCommand");var Zlx;var Cwu;var n7=function(){return _.G.apply(this,arguments)||this};
_.b(n7,_.G);n7.prototype.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:{component:"ytd-button-renderer"}}}}};
_.L([_.Q(_.k.YtRendererBehavior),_.p("design:type",Object)],n7.prototype,"ytRendererBehavior",void 0);_.L([_.Q(_.u4.YtRendererstamperBehavior),_.p("design:type",Object)],n7.prototype,"ytRendererstamperBehavior",void 0);_.L([_.x(),_.p("design:type",Object)],n7.prototype,"data",void 0);_.L([_.U({disableElementRegistration:!0,is:"ytd-compact-tvfilm-entry-point-renderer"})],n7);
_.D(n7,"ytd-compact-tvfilm-entry-point-renderer",function(){if(Cwu!==void 0)return Cwu;var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-compact-tvfilm-entry-point-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="style-scope ytd-compact-tvfilm-entry-point-renderer"><span id="title" class="style-scope ytd-compact-tvfilm-entry-point-renderer">[[getSimpleString(data.title)]]</span><span id="subtitle" class="style-scope ytd-compact-tvfilm-entry-point-renderer">[[getSimpleString(data.subtitle)]]</span></div><div id="action-button" class="style-scope ytd-compact-tvfilm-entry-point-renderer"></div>');
a.content.insertBefore(_.w().content.cloneNode(!0),a.content.firstChild);return Cwu=a},{mode:1});var Nfx;var tI4;var u1O;var K7=function(){return _.G.apply(this,arguments)||this};
_.b(K7,_.G);K7.prototype.ready=function(){this.initializeDefs()};
K7.prototype.initializeDefs=function(){var a=this.meta.byKey("yt-icons"),z=_.PK(a).querySelector("#star"),I=_.PK(a).querySelector("#star_half");a=_.PK(a).querySelector("#star_border");z&&this.defs.appendChild(z.cloneNode(!0));I&&this.defs.appendChild(I.cloneNode(!0));a&&this.defs.appendChild(a.cloneNode(!0))};
K7.prototype.percentChanged=function(){for(var a=this.rating;a.firstChild;)a.removeChild(a.firstChild);var z=Math.round(this.percent/10);a=Math.floor(z/2);z%=2;var I=5-a-z;this.appendStars("star",a,0);this.appendStars("star_half",z,a);this.appendStars("star_border",I,a+z)};
K7.prototype.appendStars=function(a,z,I){for(var J=0;J<z;J++){var r=(18+this.spacing)*(J+I),P=document.createElementNS("http://www.w3.org/2000/svg","use");_.wgi(P,"#"+a);P.setAttribute("x",""+r);P.setAttribute("y","0");this.rating.appendChild(P)}};
K7.prototype.percentChanged=K7.prototype.percentChanged;_.L([_.A3("#defs"),_.p("design:type",HTMLElement)],K7.prototype,"defs",void 0);_.L([_.A3("#rating"),_.p("design:type",HTMLElement)],K7.prototype,"rating",void 0);_.L([_.x(),_.p("design:type",Number)],K7.prototype,"percent",void 0);_.L([_.x({value:6}),_.p("design:type",Number)],K7.prototype,"spacing",void 0);_.L([_.x({value:_.S$.create("iron-meta",{type:"iconset"})}),_.p("design:type",_.vY)],K7.prototype,"meta",void 0);
_.L([_.O8("percent"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],K7.prototype,"percentChanged",null);_.L([_.U({disableElementRegistration:!0,is:"ytd-ratings"})],K7);
_.D(K7,"ytd-ratings",function(){if(u1O!==void 0)return u1O;var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-ratings--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<svg id="svg" width="90px" height="18px" viewBox="0 0 120 24" class="style-scope ytd-ratings">\n  <defs id="defs" class="style-scope ytd-ratings">\n  </defs>\n  <g id="rating" class="style-scope ytd-ratings"></g>\n</svg>\n');a.content.insertBefore(_.w().content.cloneNode(!0),
a.content.firstChild);return u1O=a},{mode:1});var F9=function(){return _.G.apply(this,arguments)||this};
_.b(F9,_.G);_.L([_.Q(_.k.YtRendererBehavior),_.p("design:type",Object)],F9.prototype,"ytRendererBehavior",void 0);_.L([_.x(),_.p("design:type",Object)],F9.prototype,"data",void 0);_.L([_.U({is:"ytd-offer-review-renderer",disableElementRegistration:!0})],F9);
_.D(F9,"ytd-offer-review-renderer",function(){if(tI4!==void 0)return tI4;var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-offer-review-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<ytd-ratings percent="[[data.percent]]" class="style-scope ytd-offer-review-renderer"></ytd-ratings>\n<yt-formatted-string text="[[data.score]]" class="style-scope ytd-offer-review-renderer"></yt-formatted-string>\n-\n<yt-formatted-string link-inherit-color="" text="[[data.source]]" class="style-scope ytd-offer-review-renderer"></yt-formatted-string>\n');a.content.insertBefore(_.w().content.cloneNode(!0),
a.content.firstChild);return tI4=a},{mode:1});var HC=function(){var a=_.G.apply(this,arguments)||this;a.badges=[{textBadge:{label:_.Mo("CC")}}];return a};
_.b(HC,_.G);_.Z=HC.prototype;_.Z.configureRendererStamper=function(){return{"data.storefrontEntryPoint":{id:"storefront-entry-point",mapping:{compactTvfilmEntryPointRenderer:"ytd-compact-tvfilm-entry-point-renderer"}}}};
_.Z.dataChanged=function(){var a=this.get("data.offerButton.buttonRenderer.serviceEndpoint");if(a&&a.commandMetadata&&_.H(a.commandMetadata,_.$F)&&_.H(a.commandMetadata,_.$F).fireAutomatically)_.ab().resolve(_.j6).resolveCommand(a,{form:{element:this.hostElement}});else{var z;a&&((z=_.H(a,_.$F))==null?0:z.fireAutomatically)&&_.ab().resolve(_.j6).resolveCommand(a,{form:{element:this.hostElement}})}};
_.Z.isEmptyContent=function(a){return this.isStorefrontEntryPointEmpty(a)&&this.shouldHideOfferModule(a)};
_.Z.isStorefrontEntryPointEmpty=function(a){return!a||!a.storefrontEntryPoint};
_.Z.shouldHideOfferModule=function(a){return!!a.hideVideoDetails};
_.Z.isOfferModuleNavigationInactive=function(a){return!a.navigationEndpoint&&!a.serviceEndpoint};
_.Z.maybeNavigateWithServiceEndpoint=function(){this.data&&this.data.navigationEndpoint||this.data&&this.data.serviceEndpoint&&_.ab().resolve(_.j6).resolveCommand(this.data.serviceEndpoint,{form:{element:this.hostElement}})};
HC.prototype.dataChanged=HC.prototype.dataChanged;_.L([_.Q(_.k.YtRendererBehavior),_.p("design:type",Object)],HC.prototype,"ytRendererBehavior",void 0);_.L([_.Q(_.u4.YtRendererstamperBehavior),_.p("design:type",Object)],HC.prototype,"ytRendererstamperBehavior",void 0);_.L([_.x(),_.p("design:type",Object)],HC.prototype,"data",void 0);_.L([_.x({reflectToAttribute:!0,computed:"isEmptyContent(data)"}),_.p("design:type",Boolean)],HC.prototype,"hidden",void 0);
_.L([_.x(),_.p("design:type",Object)],HC.prototype,"badges",void 0);_.L([_.O8("data"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],HC.prototype,"dataChanged",null);_.L([_.U({disableElementRegistration:!0,is:"ytd-movie-offer-module-renderer"})],HC);
_.D(HC,"ytd-movie-offer-module-renderer",function(){if(Nfx!==void 0)return Nfx;var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-movie-offer-module-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="offer-module-container" hidden="[[shouldHideOfferModule(data)]]" class="style-scope ytd-movie-offer-module-renderer">\n  <div id="header" class="style-scope ytd-movie-offer-module-renderer">\n    <yt-formatted-string id="title" link-inherit-color="" text="[[data.title]]" class="style-scope ytd-movie-offer-module-renderer"></yt-formatted-string>\n    <ytd-button-renderer data="[[data.offerButton.buttonRenderer]]" hidden="[[!data.offerButton.buttonRenderer]]" class="style-scope ytd-movie-offer-module-renderer">\n    </ytd-button-renderer>\n    <yt-formatted-string id="manage-purchase-text" link-inherit-color="" text="[[data.managePurchasesText]]" class="style-scope ytd-movie-offer-module-renderer">\n    </yt-formatted-string>\n  </div>\n  <a aria-label$="[[getSimpleString(data.title)]]" id="wide-clickable-area" class="yt-simple-endpoint flexed style-scope ytd-movie-offer-module-renderer" href$="[[computeHref_(data.navigationEndpoint)]]" data="[[data.navigationEndpoint]]" inactive$="[[isOfferModuleNavigationInactive(data)]]" on-tap="maybeNavigateWithServiceEndpoint">\n    <yt-img-shadow id="img" thumbnail="[[data.thumbnail]]" class="style-scope ytd-movie-offer-module-renderer"></yt-img-shadow>\n    <div id="info" class="style-scope ytd-movie-offer-module-renderer">\n      <template is="dom-if" if="[[data.headline]]" class="style-scope ytd-movie-offer-module-renderer">\n        <yt-formatted-string id="headline" text="[[data.headline]]" class="style-scope ytd-movie-offer-module-renderer"></yt-formatted-string>\n      </template>\n      <template is="dom-if" if="[[data.details]]" class="style-scope ytd-movie-offer-module-renderer">\n        <yt-formatted-string id="details" split-lines="true" text="[[data.details]]" class="style-scope ytd-movie-offer-module-renderer"></yt-formatted-string>\n      </template>\n      <template is="dom-repeat" items="[[data.reviews]]" as="review" class="style-scope ytd-movie-offer-module-renderer">\n        <ytd-offer-review-renderer data="[[review.offerReviewRenderer]]" class="style-scope ytd-movie-offer-module-renderer"></ytd-offer-review-renderer>\n      </template>\n      <template is="dom-repeat" items="[[data.attributes]]" as="attribute" class="style-scope ytd-movie-offer-module-renderer">\n        <p class="style-scope ytd-movie-offer-module-renderer">\n          <template is="dom-if" if="[[attribute.name]]" class="style-scope ytd-movie-offer-module-renderer">\n            <yt-formatted-string text="[[attribute.name]]" class="style-scope ytd-movie-offer-module-renderer"></yt-formatted-string>:\n          </template>\n          <yt-formatted-string ellipsis-truncate="" link-inherit-color="" text="[[attribute.value]]" title="[[getSimpleString(attribute.value)]]" class="style-scope ytd-movie-offer-module-renderer">\n          </yt-formatted-string>\n        </p>\n      </template>\n     <ytd-badge-supported-renderer badges="[[badges]]" hidden="[[!data.showCc]]" class="style-scope ytd-movie-offer-module-renderer">\n     </ytd-badge-supported-renderer>\n    </div>\n  </a>\n</div>\n<div id="storefront-entry-point" hidden="[[isStorefrontEntryPointEmpty(data)]]" class="style-scope ytd-movie-offer-module-renderer"></div>\n');a.content.insertBefore(_.w().content.cloneNode(!0),
a.content.firstChild);return Nfx=a},{mode:1});var EGt;var bS=function(){return _.G.apply(this,arguments)||this};
_.b(bS,_.G);_.L([_.Q(_.Ms.YtComponentBehavior),_.p("design:type",Object)],bS.prototype,"componentBehavior",void 0);_.L([_.x(),_.p("design:type",Object)],bS.prototype,"data",void 0);_.L([_.U({disableElementRegistration:!0,is:"ytd-media-masthead-renderer"})],bS);
_.D(bS,"ytd-media-masthead-renderer",function(){if(EGt!==void 0)return EGt;var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-media-masthead-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<template is="dom-if" if="[[data.navigationEndpoint]]" class="style-scope ytd-media-masthead-renderer">\n  <a class="yt-simple-endpoint style-scope ytd-media-masthead-renderer" href$="[[computeHref_(data.navigationEndpoint)]]" data="[[data.navigationEndpoint]]">\n    <div id="masthead" class="style-scope ytd-media-masthead-renderer">\n      <div id="image" class="style-scope ytd-media-masthead-renderer">\n        <yt-img-shadow id="thumbnail" thumbnail="[[data.thumbnail]]" class="style-scope ytd-media-masthead-renderer"></yt-img-shadow>\n      </div>\n      <div id="metadata" class="style-scope ytd-media-masthead-renderer">\n        <yt-formatted-string id="title" text="[[data.title]]" class="style-scope ytd-media-masthead-renderer"></yt-formatted-string>\n        <template is="dom-repeat" items="[[data.metadataLines]]" as="line" class="style-scope ytd-media-masthead-renderer">\n          <ytd-metadata-line-renderer id="metadata-line" data="[[line.metadataLineRenderer]]" class="style-scope ytd-media-masthead-renderer"></ytd-metadata-line-renderer>\n        </template>\n      </div>\n    </div>\n  </a>\n</template>\n<template is="dom-if" if="[[!data.navigationEndpoint]]" class="style-scope ytd-media-masthead-renderer">\n  <div id="masthead" class="style-scope ytd-media-masthead-renderer">\n    <div id="image" class="style-scope ytd-media-masthead-renderer">\n      <yt-img-shadow id="thumbnail" thumbnail="[[data.thumbnail]]" class="style-scope ytd-media-masthead-renderer"></yt-img-shadow>\n    </div>\n    <div id="metadata" class="style-scope ytd-media-masthead-renderer">\n      <yt-formatted-string id="title" text="[[data.title]]" class="style-scope ytd-media-masthead-renderer"></yt-formatted-string>\n      <template is="dom-repeat" items="[[data.metadataLines]]" as="line" class="style-scope ytd-media-masthead-renderer">\n        <ytd-metadata-line-renderer id="metadata-line" data="[[line.metadataLineRenderer]]" class="style-scope ytd-media-masthead-renderer"></ytd-metadata-line-renderer>\n      </template>\n    </div>\n  </div>\n</template>\n');a.content.insertBefore(_.w().content.cloneNode(!0),
a.content.firstChild);return EGt=a},{mode:1});var BfP;_.Jf(_.KRw,"course-metadata-view-model",{props:{data:_.I5,isOverlay:_.I5}});var hm=function(){var a=_.G.apply(this,arguments)||this;a.isMetadataVisible=!1;a.modernPanels=_.K("kevlar_watch_modern_panels");a.actionMap={"yt-hide-tvfilm-offer-module":"handleHideAction"};return a};
_.b(hm,_.G);_.Z=hm.prototype;
_.Z.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"}}}}};
_.Z.descriptionChanged=function(){this.expander.collapsed=!0;this.expander.reset()};
_.Z.dataChanged=function(){this.hostElement.hidden=!1;this.isMetadataVisible=this.isExpandButtonToggled()};
_.Z.expanderChanged=function(){var a;if((a=this.data)==null?0:a.expandedMetadata)this.expander.hidden=this.isMetadataVisible};
_.Z.isExpandButtonToggled=function(){var a,z;return(z=_.H((a=this.data)==null?void 0:a.expandMetadataButton,_.My))==null?void 0:z.isToggled};
_.Z.onVisibilityButtonClick=function(){var a;if((a=this.data)==null?0:a.expandMetadataButton)this.isMetadataVisible=!this.isMetadataVisible};
_.Z.handleHideAction=function(){this.data&&this.data.clientShouldSuppressIfCompanionAdDisplayed&&(this.hostElement.hidden=!0)};
hm.prototype.expanderChanged=hm.prototype.expanderChanged;hm.prototype.dataChanged=hm.prototype.dataChanged;hm.prototype.descriptionChanged=hm.prototype.descriptionChanged;_.L([_.Q(_.k.YtRendererBehavior),_.p("design:type",Object)],hm.prototype,"ytRendererBehavior",void 0);_.L([_.Q(_.u4.YtRendererstamperBehavior),_.p("design:type",Object)],hm.prototype,"ytRendererstamperBehavior",void 0);_.L([_.Q([_.Hc.YtActionHandlerBehavior]),_.p("design:type",Object)],hm.prototype,"actionHandlerBehavior",void 0);
_.L([_.x(),_.p("design:type",Object)],hm.prototype,"data",void 0);_.L([_.x(),_.p("design:type",Object)],hm.prototype,"isMetadataVisible",void 0);_.L([_.x({reflectToAttribute:!0}),_.p("design:type",Object)],hm.prototype,"modernPanels",void 0);_.L([_.A3("#expander"),_.p("design:type",Object)],hm.prototype,"expander",void 0);_.L([_.O8("data.description"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],hm.prototype,"descriptionChanged",null);
_.L([_.O8("data"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],hm.prototype,"dataChanged",null);_.L([_.O8("isMetadataVisible"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],hm.prototype,"expanderChanged",null);_.L([_.U({disableElementRegistration:!0,is:"ytd-tvfilm-offer-module-renderer"})],hm);
_.D(hm,"ytd-tvfilm-offer-module-renderer",function(){if(BfP!==void 0)return BfP;var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-tvfilm-offer-module-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<h2 id="header" hidden="[[!data.headerTitle]]" class="style-scope ytd-tvfilm-offer-module-renderer">\n  <yt-formatted-string id="title" text="[[data.headerTitle]]" class="style-scope ytd-tvfilm-offer-module-renderer"></yt-formatted-string>\n  <div id="expand-metadata-button" on-click="onVisibilityButtonClick" class="style-scope ytd-tvfilm-offer-module-renderer"></div>\n</h2>\n\n<div id="masthead" class="style-scope ytd-tvfilm-offer-module-renderer"></div>\n\n<div id="action-buttons" class="style-scope ytd-tvfilm-offer-module-renderer"></div>\n\n<ytd-expander id="expander" hidden="[[!data.description]]" max-number-of-lines="3" class="style-scope ytd-tvfilm-offer-module-renderer">\n  <yt-formatted-string id="description" slot="content" disable-upgrade$="[[!data.description]]" hidden="[[!data.description]]" text="[[data.description]]" class="style-scope ytd-tvfilm-offer-module-renderer">\n  </yt-formatted-string>\n  <div class="more-button style-scope ytd-tvfilm-offer-module-renderer" slot="more-button">\n    <span class="style-scope ytd-tvfilm-offer-module-renderer">[[getSimpleString(data.moreButtonText)]]</span>\n    <yt-icon id="expand-more-icon" icon="yt-icons:expand-more" class="style-scope ytd-tvfilm-offer-module-renderer"></yt-icon>\n  </div>\n  <div class="less-button style-scope ytd-tvfilm-offer-module-renderer" slot="less-button">\n    <span class="style-scope ytd-tvfilm-offer-module-renderer">[[getSimpleString(data.lessButtonText)]]</span>\n    <yt-icon id="expand-less-icon" icon="yt-icons:expand-less" class="style-scope ytd-tvfilm-offer-module-renderer"></yt-icon>\n  </div>\n</ytd-expander>\n\n<div id="expanded-metadata" hidden="[[!isMetadataVisible]]" class="style-scope ytd-tvfilm-offer-module-renderer"></div>\n\n');a.content.insertBefore(_.w().content.cloneNode(!0),
a.content.firstChild);return BfP=a},{mode:2});var gGO;var Vt=function(){var a=_.G.apply(this,arguments)||this;a.actionMap={"yt-hide-unlimited-offer-module":"handleHideAction"};return a};
_.b(Vt,_.G);Vt.prototype.dataChanged=function(){this.hostElement.hidden=!1};
Vt.prototype.configureRendererStamper=function(){return{"data.storefrontEntryPoint":{id:"storefront-entry-point",mapping:{compactTvfilmEntryPointRenderer:"ytd-compact-tvfilm-entry-point-renderer"}}}};
Vt.prototype.onThumbnailTap=function(a){this.data&&this.data.serviceEndpoint&&(_.ab().resolve(_.j6).resolveCommand(this.data.serviceEndpoint,{form:{element:this.hostElement}}),a.stopPropagation())};
Vt.prototype.handleHideAction=function(){this.data&&this.data.suppressIfCompanionAds&&(this.hostElement.hidden=!0)};
Vt.prototype.dataChanged=Vt.prototype.dataChanged;_.L([_.Q(_.u4.YtRendererstamperBehavior),_.p("design:type",Object)],Vt.prototype,"ytRendererstamperBehavior",void 0);_.L([_.Q(_.k.YtRendererBehavior),_.p("design:type",Object)],Vt.prototype,"rendererBehaviors",void 0);_.L([_.Q([_.Hc.YtActionHandlerBehavior]),_.p("design:type",Object)],Vt.prototype,"actionHandlerBehavior",void 0);_.L([_.x(),_.p("design:type",Object)],Vt.prototype,"data",void 0);
_.L([_.O8("data"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],Vt.prototype,"dataChanged",null);_.L([_.U({is:"ytd-unlimited-offer-module-renderer",disableElementRegistration:!0})],Vt);
_.D(Vt,"ytd-unlimited-offer-module-renderer",function(){if(gGO!==void 0)return gGO;var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-unlimited-offer-module-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="watch-checkout-offers" class="style-scope ytd-unlimited-offer-module-renderer">\n  <div id="header" class="style-scope ytd-unlimited-offer-module-renderer">\n    <div id="title-section" class="style-scope ytd-unlimited-offer-module-renderer">\n      <yt-formatted-string id="main-title" text="[[data.title]]" class="style-scope ytd-unlimited-offer-module-renderer"></yt-formatted-string>\n      <yt-formatted-string id="sub-title" text="[[data.subtitle]]" class="style-scope ytd-unlimited-offer-module-renderer"></yt-formatted-string>\n    </div>\n    <ytd-button-renderer data="[[data.offerButton.buttonRenderer]]" class="style-scope ytd-unlimited-offer-module-renderer">\n    </ytd-button-renderer>\n  </div>\n  <ytd-thumbnail id="thumbnail" data="[[data]]" hidden$="[[!data.thumbnail]]" width="402" on-click="onThumbnailTap" class="style-scope ytd-unlimited-offer-module-renderer">\n  </ytd-thumbnail>\n  <div id="storefront-entry-point" hidden="[[!data.storefrontEntryPoint]]" class="style-scope ytd-unlimited-offer-module-renderer"></div>\n</div>\n');a.content.insertBefore(_.w().content.cloneNode(!0),
a.content.firstChild);return gGO=a},{mode:1});var Ol7;var fjG;var Qt=function(){var a=_.G.apply(this,arguments)||this;a.actionMap={"yt-related-chip-command":"handleRelatedChipCommand"};return a};
_.b(Qt,_.G);Qt.prototype.configureRendererStamper=function(){return{"data.content":{id:"content",mapping:{chipCloudRenderer:{component:"yt-chip-cloud-renderer"}}}}};
Qt.prototype.handleRelatedChipCommand=function(a){a=_.H(a,Pwj);var z=a.contents;z?_.Ct(this.hostElement,"yt-item-section-replace-action",[z,a.targetSectionIdentifier]):_.Ct(this.hostElement,"yt-item-section-continuation-action",[a.continuationData,a.targetSectionIdentifier])};
_.L([_.Q(_.u4.YtRendererstamperBehavior),_.p("design:type",Object)],Qt.prototype,"ytRendererstamperBehavior",void 0);_.L([_.Q(_.k.YtRendererBehavior),_.p("design:type",Object)],Qt.prototype,"ytRendererBehavior",void 0);_.L([_.Q(_.Hc.YtActionHandlerBehavior),_.p("design:type",Object)],Qt.prototype,"actionHandlerBehavior",void 0);_.L([_.x(),_.p("design:type",Object)],Qt.prototype,"data",void 0);_.L([_.dz({is:"yt-related-chip-cloud-renderer",disableElementRegistration:!0})],Qt);
_.D(Qt,"yt-related-chip-cloud-renderer",function(){if(fjG===void 0){var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-related-chip-cloud-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.sections.yt_related_chip_cloud_renderer.yt.related.chip.cloud.renderer.css.js--\x3e<div id="content" class="style-scope yt-related-chip-cloud-renderer"></div>\n');
a.content.insertBefore(_.w().content.cloneNode(!0),a.content.firstChild);var z=a.content,I=z.insertBefore;Ol7===void 0&&(Ol7=document.createElement("template"));var J=Ol7;I.call(z,J.content.cloneNode(!0),a.content.firstChild);fjG=a}a=fjG;return a},{mode:2});var S2=function(){var a=_.G.apply(this,arguments)||this;a.isTwoColumns=!0;a.hideOfferModules=!1;a.watchFeedBigThumbs=_.K("kevlar_watch_feed_big_thumbs");a.watchFeedBigThumbsOnLockup=_.K("web_watch_next_big_thumbs");a.watchNextGridHideChips=_.K("kevlar_watch_grid_hide_chips");a.eligibleToSwitchToGrid=_.K("web_watch_eligible_to_switch_to_grid");a.disableShortsShelfHeightOverride=_.K("web_shorts_wn_shelf_ratio_tuning");a.isWatchNextGrid=!1;a.reuseComponents=!_.K("kevlar_watch_grid");a.nextContinuation=
{continuationType:"watchNextSecondaryResultsContinuation",contentsArray:"data.results",continuationsArray:"data.continuations",responseContentsKey:"results",requestPath:"/related_ajax"};return a};
_.b(S2,_.G);_.Z=S2.prototype;
_.Z.configureRendererStamper=function(){return{"data.offerModule":{id:"offer-module",mapping:{movieOfferModuleRenderer:"ytd-movie-offer-module-renderer",episodeOfferModuleRenderer:"ytd-movie-offer-module-renderer",liveOfferModuleRenderer:"ytd-movie-offer-module-renderer",channelOfferModuleRenderer:"ytd-movie-offer-module-renderer",unlimitedOfferModuleRenderer:{component:"ytd-unlimited-offer-module-renderer",properties:{hidden:"[[hideUnlimitedOfferModule]]"}},tvfilmOfferModuleRenderer:{component:"ytd-tvfilm-offer-module-renderer",properties:{hidden:"[[hideTvfilmOfferModule]]"}},
ctaShelfRenderer:"ytd-brandconnect-cta-shelf-card-renderer"}},shownItems:{id:"items",reuseComponents:this.reuseComponents,mapping:{lockupViewModel:{component:"yt-lockup-view-model",params:{className:"ytd-watch-next-secondary-results-renderer lockup",sizing:"COMPACT",thumbnailFixedWidth:"168px",force16By9ThumbnailAspectRatio:!0},properties:{containerType:"[[lockupContainerType]]"}},compactMovieRenderer:"ytd-compact-movie-renderer",compactVideoRenderer:"ytd-compact-video-renderer",compactCourseVideoRenderer:"ytd-compact-video-renderer",
compactPromotedVideoRenderer:"ytd-compact-promoted-video-renderer",compactRadioRenderer:"ytd-compact-radio-renderer",compactPlaylistRenderer:"ytd-compact-playlist-renderer",promotedSparklesWebRenderer:"ytd-promoted-sparkles-web-renderer",adSlotRenderer:"ytd-ad-slot-renderer",relatedChipCloudRenderer:"yt-related-chip-cloud-renderer",itemSectionRenderer:{component:"ytd-item-section-renderer",params:{isWatch:!0},properties:{continuationShowButton:"[[showButton]]",eligibleToSwitchToGrid:"[[eligibleToSwitchToGrid]]",
useBigThumbs:"[[watchFeedBigThumbsOnLockup]]"}},reelShelfRenderer:"ytd-reel-shelf-renderer",richGridRenderer:{component:"ytd-rich-grid-renderer",properties:{disableStickyFilterBar:"[[isWatchNextGrid]]",transparentBackgroundChipsBar:"[[isWatchNextGrid]]",reducedBottomMargin:"[[isWatchNextGrid]]",rowReducedHorizontalMargin:"[[isWatchNextGrid]]"},params:{resizeOnObserverInit:!_.K("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}}};
_.Z.getItemsPath=function(){return"data.results"};
_.Z.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"results","yt-reload-continuation-items-command-body":"results"}};
_.Z.created=function(){this.ytLazyListBehavior.initialCount=1};
_.Z.ready=function(){_.uK(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%"})};
_.Z.resultsChanged=function(){if(this.data&&this.data.results){for(var a=this.data.results,z=null,I=null,J=0;J<a.length;J++)a[J].relatedChipCloudRenderer?z=a[J].relatedChipCloudRenderer:a[J].itemSectionRenderer&&(I=a[J].itemSectionRenderer);if(z&&I)for(this.set("data.continuations",[]),a=_.H(z.content,_.$yX).chips,z=0;z<a.length;z++)if(J=this.get("chipCloudChipRenderer.navigationEndpoint.relatedChipCommand",a[z]),J.loadCached||!J.contents){J.contents=I.contents;break}}};
_.Z.dataChanged=function(){var a=this,z;if((z=this.data)!=null&&z.results&&this.hasAllowedInstreamAd(this.playerData)){if(z=this.data.results.filter(function(u){return!!u.promotedSparklesWebRenderer})){for(var I=0;I<z.length;I++){var J=this.get("promotedSparklesWebRenderer.errorCommand.loggingUrls",z[I]);
if(J)for(var r=0;r<J.length;r++)J[r]&&J[r].baseUrl&&_.lP(J[r].baseUrl)}this.set("data.results",this.data.results.filter(function(u){return!u.promotedSparklesWebRenderer}))}if(z=this.data.results.filter(function(u){return!!a.getSparklesAd(u)})){z=_.C(z);
for(r=z.next();!r.done;r=z.next())if(J=I=void 0,r=(I=this.getSparklesAd(r.value))==null?void 0:(J=I.errorCommand)==null?void 0:J.loggingUrls)for(I=_.C(r),J=I.next();!J.done;J=I.next())(J=J.value)&&J.baseUrl&&_.lP(J.baseUrl);var P,N;this.set("data.results",(P=this.data)==null?void 0:(N=P.results)==null?void 0:N.filter(function(u){return!u.adSlotRenderer}))}}};
_.Z.getSparklesAd=function(a){var z,I;a=_.H((z=a.adSlotRenderer)==null?void 0:(I=z.fulfillmentContent)==null?void 0:I.fulfilledLayout,_.Tco);return _.H(a==null?void 0:a.renderingContent,roO)};
_.Z.hasAllowedInstreamAd=function(a){a=this.get("adPlacements",a)||[];for(var z=0;z<a.length;z++){var I=this.get("adPlacementRenderer.config.adPlacementConfig",a[z]);if(I&&I.suppressDisplayAd)return!0}return!1};
_.Z.computeHideUnlimitedOfferModule=function(a,z){return a&&a.offerModule&&z&&a.offerModule.unlimitedOfferModuleRenderer&&a.offerModule.unlimitedOfferModuleRenderer.suppressIfCompanionAds&&this.hasCompanionAds(z)?!0:!1};
_.Z.hideUnlimitedOfferModuleChanged=function(){var a=_.PK(this.hostElement).querySelector("ytd-unlimited-offer-module-renderer");a&&(a.hidden=this.hideUnlimitedOfferModule)};
_.Z.updateLockupContainerTypes=function(a){if(this.eligibleToSwitchToGrid){var z;(z=Array.from(this.hostElement.querySelectorAll("#items yt-lockup-view-model")))==null||z.forEach(function(I){I.containerType=a})}};
_.Z.computeHideTvfilmOfferModule=function(a,z){var I,J;return!!((a==null?0:(I=a.offerModule)==null?0:(J=I.tvfilmOfferModuleRenderer)==null?0:J.clientShouldSuppressIfCompanionAdDisplayed)&&z&&this.hasCompanionAds(z))};
_.Z.hideTvfilmOfferModuleChanged=function(){var a=_.PK(this.hostElement).querySelector("ytd-tvfilm-offer-module-renderer");a&&(a.hidden=this.hideTvfilmOfferModule)};
_.Z.hasCompanionAds=function(a){a=this.get("adPlacements",a)||[];for(var z=0;z<a.length;z++){if(this.get("adPlacementRenderer.renderer.actionCompanionAdRenderer",a[z]))return!0;var I=void 0,J=void 0,r=void 0;if(!_.K("web_watch_top_banner_companion_check_killswitch")&&((I=a[z])==null?0:(J=I.adPlacementRenderer)==null?0:(r=J.renderer)==null?0:r.topBannerImageTextIconButtonedLayoutViewModel))return!0}return!1};
_.Z.hasSuppressedResults=function(a){return a==null?!0:a.filter(function(z){return!z.continuationItemRenderer&&!z.compactPromotedVideoRenderer&&!z.promotedSparklesWebRenderer}).length===0};
_.Z.computeShowButton=function(a,z){return this.isWatchNextGrid?a:a||this.hasSuppressedResults(z)};
_.Z.showButtonChanged=function(){if(this.isWatchNextGrid){var a=_.PK(this.hostElement).querySelector("ytd-rich-grid-renderer");a&&this.showButton!==null&&(a.continuationShowButton=this.showButton)}else{a=_.PK(this.hostElement).querySelector("yt-next-continuation");var z=_.PK(this.hostElement).querySelector("ytd-continuation-item-renderer"),I=_.PK(this.hostElement).querySelector("ytd-item-section-renderer");a&&(a.showButton=this.showButton);z&&(z.showButton=this.showButton);I&&(I.continuationShowButton=
this.showButton)}};
_.Z.continuationTap=function(a){var z;if(((z=this.data)==null?void 0:z.continuations)!=null&&a.target.tagName==="TP-YT-PAPER-BUTTON")for(a=this.data.continuations,z=0;z<a.length;z++)a[z].nextContinuationData&&this.ytRendererBehavior.logExplicitClick(a[z].nextContinuationData||{})};
_.Z.shownItemsChangedForBinding=function(){this.hostElement.dispatchEvent(new _.eY("shown-items-changed",this.shownItems))};
_.eH.Object.defineProperties(S2.prototype,{lockupContainerType:{configurable:!0,enumerable:!0,get:function(){return this.watchFeedBigThumbsOnLockup?2:this.eligibleToSwitchToGrid?this.isGridViewEnabled?2:3:3}},
containsLockups:{configurable:!0,enumerable:!0,get:function(){var a;return!((a=this.shownItems)==null||!a.some(function(z){return!!z.lockupViewModel||z.compactVideoRenderer}))}}});
S2.prototype.shownItemsChangedForBinding=S2.prototype.shownItemsChangedForBinding;S2.prototype.showButtonChanged=S2.prototype.showButtonChanged;S2.prototype.hideTvfilmOfferModuleChanged=S2.prototype.hideTvfilmOfferModuleChanged;S2.prototype.updateLockupContainerTypes=S2.prototype.updateLockupContainerTypes;S2.prototype.hideUnlimitedOfferModuleChanged=S2.prototype.hideUnlimitedOfferModuleChanged;S2.prototype.dataChanged=S2.prototype.dataChanged;S2.prototype.resultsChanged=S2.prototype.resultsChanged;
_.L([_.Q(_.k.YtRendererBehavior),_.p("design:type",Object)],S2.prototype,"ytRendererBehavior",void 0);_.L([_.Q(_.u4.YtRendererstamperBehavior),_.p("design:type",Object)],S2.prototype,"ytRendererstamperBehavior",void 0);_.L([_.Q(_.uQ.YtLazyListBehavior),_.p("design:type",Object)],S2.prototype,"ytLazyListBehavior",void 0);_.L([_.Q(_.cX.YtNextContinuationBehavior),_.p("design:type",Object)],S2.prototype,"ytNextContinuationBehavior",void 0);
_.L([_.Q(_.M8),_.p("design:type",Object)],S2.prototype,"ytContinuationHandlerBehavior",void 0);_.L([_.Q(_.pV),_.p("design:type",Object)],S2.prototype,"ytdReduxBehavior",void 0);_.L([_.x(),_.p("design:type",Object)],S2.prototype,"data",void 0);_.L([_.x(),_.p("design:type",Object)],S2.prototype,"playerData",void 0);_.L([_.x({value:!0}),_.p("design:type",Boolean)],S2.prototype,"autoFill",void 0);_.L([_.x({value:60}),_.p("design:type",Number)],S2.prototype,"targetFramerate",void 0);
_.L([_.x({reflectToAttribute:!0}),_.p("design:type",Object)],S2.prototype,"isTwoColumns",void 0);_.L([_.x({reflectToAttribute:!0}),_.p("design:type",Object)],S2.prototype,"hideOfferModules",void 0);_.L([_.x(),_.p("design:type",Object)],S2.prototype,"shownItems",void 0);_.L([_.x({computed:"computeHideUnlimitedOfferModule(data, playerData)"}),_.p("design:type",Boolean)],S2.prototype,"hideUnlimitedOfferModule",void 0);
_.L([_.x({computed:"computeHideTvfilmOfferModule(data, playerData)"}),_.p("design:type",Boolean)],S2.prototype,"hideTvfilmOfferModule",void 0);_.L([_.x({reflectToAttribute:!0}),_.p("design:type",Object)],S2.prototype,"watchFeedBigThumbs",void 0);_.L([_.x(),_.p("design:type",Object)],S2.prototype,"watchFeedBigThumbsOnLockup",void 0);_.L([_.x(),_.p("design:type",Object)],S2.prototype,"watchNextGridHideChips",void 0);_.L([_.x(),_.p("design:type",Object)],S2.prototype,"eligibleToSwitchToGrid",void 0);
_.L([_.x({reflectToAttribute:!0}),_.p("design:type",Object)],S2.prototype,"disableShortsShelfHeightOverride",void 0);_.L([_.x({selector:_.W8,reflectToAttribute:!0}),_.p("design:type",Object)],S2.prototype,"isGridViewEnabled",void 0);_.L([_.x({value:!1}),_.p("design:type",Boolean)],S2.prototype,"showMoreButton",void 0);_.L([_.x({reflectToAttribute:!0}),_.p("design:type",Object)],S2.prototype,"isWatchNextGrid",void 0);
_.L([_.x({computed:"computeShowButton(showMoreButton, data.results)"}),_.p("design:type",Boolean)],S2.prototype,"showButton",void 0);_.L([_.Fe("data.results.*"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],S2.prototype,"resultsChanged",null);_.L([_.O8("data"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],S2.prototype,"dataChanged",null);
_.L([_.O8("hideUnlimitedOfferModule"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],S2.prototype,"hideUnlimitedOfferModuleChanged",null);_.L([_.S("isGridViewEnabled","containsLockups","data"),_.x({reflectToAttribute:!0}),_.p("design:type",Number),_.p("design:paramtypes",[])],S2.prototype,"lockupContainerType",null);
_.L([_.O8("lockupContainerType","data"),_.p("design:type",Function),_.p("design:paramtypes",[Number]),_.p("design:returntype")],S2.prototype,"updateLockupContainerTypes",null);_.L([_.O8("hideTvfilmOfferModule"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],S2.prototype,"hideTvfilmOfferModuleChanged",null);_.L([_.O8("showButton"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],S2.prototype,"showButtonChanged",null);
_.L([_.O8("shownItems"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],S2.prototype,"shownItemsChangedForBinding",null);_.L([_.S("shownItems"),_.x({reflectToAttribute:!0}),_.p("design:type",Boolean),_.p("design:paramtypes",[])],S2.prototype,"containsLockups",null);
_.D(S2,"ytd-watch-next-secondary-results-renderer",function(){if(Zlx===void 0){var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-watch-next-secondary-results-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="offer-module" hidden="[[hideOfferModules]]" class="style-scope ytd-watch-next-secondary-results-renderer"></div>\n<div id="items" class="style-scope ytd-watch-next-secondary-results-renderer"></div>\n<div id="continuations" hidden="[[canShowMore]]" on-click="continuationTap" class="style-scope ytd-watch-next-secondary-results-renderer"></div>\n');a.content.insertBefore(_.w().content.cloneNode(!0),
a.content.firstChild);Zlx=a}a=Zlx;return a},{mode:1});
}catch(e){_._DumpException(e)}
try{
var PSZ=new _.jv("replaceFeedContentAction");var Z7f;var CSV;var VY=function(){return _.G.apply(this,arguments)||this};
_.b(VY,_.G);_.L([_.Q(_.k.YtRendererBehavior),_.p("design:type",Object)],VY.prototype,"ytRendererBehavior",void 0);_.L([_.x(),_.p("design:type",Object)],VY.prototype,"data",void 0);_.L([_.U({is:"ytd-sub-feed-option-renderer",disableElementRegistration:!0})],VY);
_.D(VY,"ytd-sub-feed-option-renderer",function(){if(CSV!==void 0)return CSV;var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-sub-feed-option-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<a class="yt-simple-endpoint style-scope ytd-sub-feed-option-renderer" href$="[[computeHref_(data.navigationEndpoint)]]" data="[[data.navigationEndpoint]]" tabindex="-1">\n  <tp-yt-paper-radio-button checked="[[data.isSelected]]" class="style-scope ytd-sub-feed-option-renderer">\n    <yt-formatted-string text="[[data.name]]" class="style-scope ytd-sub-feed-option-renderer"></yt-formatted-string>\n  </tp-yt-paper-radio-button>\n</a>\n');a.content.insertBefore(_.w().content.cloneNode(!0),
a.content.firstChild);return CSV=a},{mode:1});var NCZ;var QY=function(){return _.G.apply(this,arguments)||this};
_.b(QY,_.G);QY.prototype.configureRendererStamper=function(){return{"data.options":{id:"options",mapping:{subFeedOptionRenderer:{component:"ytd-sub-feed-option-renderer",noInjection:!0}}}}};
_.L([_.Q(_.k.YtRendererBehavior),_.p("design:type",Object)],QY.prototype,"ytRendererBehavior",void 0);_.L([_.Q(_.u4.YtRendererstamperBehavior),_.p("design:type",Object)],QY.prototype,"ytRendererStamperBehavior",void 0);_.L([_.x(),_.p("design:type",Object)],QY.prototype,"data",void 0);_.L([_.U({is:"ytd-sub-feed-selector-renderer",disableElementRegistration:!0})],QY);
_.D(QY,"ytd-sub-feed-selector-renderer",function(){if(NCZ!==void 0)return NCZ;var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-sub-feed-selector-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<h2 id="title" class="style-scope ytd-sub-feed-selector-renderer">\n   [[getSimpleString(data.title)]]\n</h2>\n<div id="options" class="style-scope ytd-sub-feed-selector-renderer"></div>\n');a.content.insertBefore(_.w().content.cloneNode(!0),
a.content.firstChild);return NCZ=a},{mode:1});var S5=function(){return _.G.apply(this,arguments)||this};
_.b(S5,_.G);
S5.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}}}}};
_.L([_.Q(_.k.YtRendererBehavior),_.p("design:type",Object)],S5.prototype,"ytRendererBehavior",void 0);_.L([_.Q(_.u4.YtRendererstamperBehavior),_.p("design:type",Object)],S5.prototype,"ytRendererstamperBehavior",void 0);_.L([_.x(),_.p("design:type",Object)],S5.prototype,"data",void 0);_.L([_.U({is:"ytd-browse-feed-actions-renderer",disableElementRegistration:!0})],S5);
_.D(S5,"ytd-browse-feed-actions-renderer",function(){if(Z7f!==void 0)return Z7f;var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-browse-feed-actions-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="contents" class="style-scope ytd-browse-feed-actions-renderer"></div>\n');a.content.insertBefore(_.w().content.cloneNode(!0),a.content.firstChild);return Z7f=a},{mode:1});var t2M;var u9f;var iL=function(){return _.G.apply(this,arguments)||this};
_.b(iL,_.G);iL.prototype.configureRendererStamper=function(){return{"data.subscribeButton":{id:"subscribe",mapping:{subscribeButtonRenderer:"ytd-subscribe-button-renderer",buttonRenderer:"ytd-button-renderer"}}}};
_.L([_.Q(_.k.YtRendererBehavior),_.p("design:type",Object)],iL.prototype,"ytRendererBehavior",void 0);_.L([_.Q(_.u4.YtRendererstamperBehavior),_.p("design:type",Object)],iL.prototype,"ytRendererstamperBehavior",void 0);_.L([_.x(),_.p("design:type",Object)],iL.prototype,"data",void 0);_.L([_.U({is:"ytd-mini-channel-renderer",disableElementRegistration:!0})],iL);
_.D(iL,"ytd-mini-channel-renderer",function(){if(u9f!==void 0)return u9f;var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-mini-channel-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<a id="channel-info" class="yt-simple-endpoint style-scope ytd-mini-channel-renderer" href$="[[computeHref_(data.navigationEndpoint)]]" rel$="[[computeNofollow_(data.navigationEndpoint)]]" data="[[data.navigationEndpoint]]">\n  <yt-img-shadow height="24" thumbnail="[[data.thumbnail]]" width="24" class="style-scope ytd-mini-channel-renderer">\n  </yt-img-shadow>\n  <span class="title style-scope ytd-mini-channel-renderer">[[getSimpleString(data.title)]]</span>\n</a>\n\n<div id="subscribe" class="style-scope ytd-mini-channel-renderer"></div>\n');a.content.insertBefore(_.w().content.cloneNode(!0),
a.content.firstChild);return u9f=a},{mode:1});var EgY;var xW=function(){return _.G.apply(this,arguments)||this};
_.b(xW,_.G);xW.prototype.configureRendererStamper=function(){return{"data.items":{id:"items",mapping:{miniChannelRenderer:"ytd-mini-channel-renderer"}}}};
_.L([_.Q(_.k.YtRendererBehavior),_.p("design:type",Object)],xW.prototype,"ytRendererBehavior",void 0);_.L([_.Q(_.u4.YtRendererstamperBehavior),_.p("design:type",Object)],xW.prototype,"ytRendererstamperBehavior",void 0);_.L([_.x(),_.p("design:type",Object)],xW.prototype,"data",void 0);_.L([_.U({disableElementRegistration:!0,is:"ytd-vertical-channel-section-renderer"})],xW);
_.D(xW,"ytd-vertical-channel-section-renderer",function(){if(EgY!==void 0)return EgY;var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-vertical-channel-section-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<h2 id="title" class="style-scope ytd-vertical-channel-section-renderer">[[data.title]]</h2>\n<div id="items" class="style-scope ytd-vertical-channel-section-renderer"></div>\n');
a.content.insertBefore(_.w().content.cloneNode(!0),a.content.firstChild);return EgY=a},{mode:1});var vR=function(){return _.G.apply(this,arguments)||this};
_.b(vR,_.G);vR.prototype.configureRendererStamper=function(){return{"data.contents":{id:"contents",mapping:{verticalChannelSectionRenderer:{component:"ytd-vertical-channel-section-renderer",noInjection:!0}}}}};
_.L([_.Q(_.k.YtRendererBehavior),_.p("design:type",Object)],vR.prototype,"ytRendererBehavior",void 0);_.L([_.Q(_.u4.YtRendererstamperBehavior),_.p("design:type",Object)],vR.prototype,"ytRendererstamperBehavior",void 0);_.L([_.x(),_.p("design:type",Object)],vR.prototype,"data",void 0);_.L([_.U({is:"ytd-browse-secondary-contents-renderer",disableElementRegistration:!0})],vR);
_.D(vR,"ytd-browse-secondary-contents-renderer",function(){if(t2M!==void 0)return t2M;var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-browse-secondary-contents-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="contents" class="style-scope ytd-browse-secondary-contents-renderer">\n</div>');a.content.insertBefore(_.w().content.cloneNode(!0),a.content.firstChild);
return t2M=a},{mode:1});var BCE;var Gu=function(){var a=_.G.apply(this,arguments)||this;a.actionMap={"yt-replace-feed-content-action":"onReplaceFeedContentAction"};a.notActive=!1;a.isConstrainedList=!1;return a};
_.b(Gu,_.G);_.Z=Gu.prototype;
_.Z.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(a){var z;return(a==null?void 0:(z=a.webComponentHint)==null?void 0:z.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}}}}};
_.Z.getPath=function(a,z){var I="data.tabs.#"+z+".";a.tabs[z].tabRenderer?I+="tabRenderer.":a.tabs[z].expandableTabRenderer&&(I+="expandableTabRenderer.");return I+"content.sectionListRenderer"};
_.Z.computeDisplayedContent=function(a){this.unlinkPaths("content");if(a&&a.tabs)for(var z=a.tabs.length,I=0;I<z;I++){var J=a.tabs[I].tabRenderer||a.tabs[I].expandableTabRenderer;if(J.selected&&J.content)return this.linkPaths("content",this.getPath(a,I)),J.content}return null};
_.Z.computeHasSecondaryColumnData=function(a){return!!a&&!!a.secondaryContents};
_.Z.onRetrieveLocation=function(a,z){z.locationRetrieved(z.hasComments?"/comment_service_ajax?action_get_comments=1&pbj=1":"/browse_ajax",void 0);a.stopPropagation()};
_.Z.onYtServiceRequestSent=function(a,z){_.K("replace_feed_content_action_killswitch")&&this.handleServiceRequestActions(z)};
_.Z.onYtServiceRequestCompleted=function(a,z){_.K("replace_feed_content_action_killswitch")&&this.handleServiceRequestActions(z)};
_.Z.onReplaceFeedContentAction=function(a){if(!_.K("replace_feed_content_action_killswitch")&&!this.notActive){var z;(a=(z=_.H(a,PSZ))==null?void 0:z.items)&&this.listRenderer&&this.listRenderer.replacePrimaryContent(a)}};
_.Z.handleServiceRequestActions=function(a){if(a=a.actions){a=_.C(a);for(var z=a.next();!z.done;z=a.next()){z=z.value;var I=void 0;((I=_.H(z,PSZ))==null?0:I.items)&&this.listRenderer&&this.listRenderer.replacePrimaryContent(_.H(z,PSZ).items)}}};
Gu.prototype.onYtServiceRequestCompleted=Gu.prototype.onYtServiceRequestCompleted;Gu.prototype.onYtServiceRequestSent=Gu.prototype.onYtServiceRequestSent;Gu.prototype.onRetrieveLocation=Gu.prototype.onRetrieveLocation;_.L([_.Q(_.kI),_.p("design:type",Object)],Gu.prototype,"ytdGridStateAwareBehavior",void 0);_.L([_.Q(_.u4.YtRendererstamperBehavior),_.p("design:type",Object)],Gu.prototype,"ytRendererstamperBehavior",void 0);
_.L([_.Q(_.Hc.YtActionHandlerBehavior),_.p("design:type",Object)],Gu.prototype,"ytActionHandlerBehavior",void 0);_.L([_.Q(_.k.YtRendererBehavior),_.p("design:type",Object)],Gu.prototype,"ytRendererBehavior",void 0);_.L([_.x(),_.p("design:type",Object)],Gu.prototype,"data",void 0);_.L([_.x({computed:"computeDisplayedContent(data)"}),_.p("design:type",Object)],Gu.prototype,"content",void 0);
_.L([_.x({computed:"computeHasSecondaryColumnData(data)",reflectToAttribute:!0}),_.p("design:type",Boolean)],Gu.prototype,"hasSecondaryColumnData",void 0);_.L([_.x({value:function(){return window.outerHeight>1024?3:2}}),
_.p("design:type",Number)],Gu.prototype,"initialCount",void 0);_.L([_.x({reflectToAttribute:!0}),_.p("design:type",String)],Gu.prototype,"pageSubtype",void 0);_.L([_.A3("ytd-section-list-renderer"),_.p("design:type",Object)],Gu.prototype,"listRenderer",void 0);_.L([_.x(),_.p("design:type",Object)],Gu.prototype,"notActive",void 0);_.L([_.x({reflectToAttribute:!0}),_.p("design:type",Object)],Gu.prototype,"isConstrainedList",void 0);
_.L([_.x(),_.p("design:type",String)],Gu.prototype,"responsiveSizing",void 0);_.L([_.gz("yt-retrieve-location"),_.p("design:type",Function),_.p("design:paramtypes",[CustomEvent,Object]),_.p("design:returntype")],Gu.prototype,"onRetrieveLocation",null);_.L([_.gz("yt-service-request-sent"),_.p("design:type",Function),_.p("design:paramtypes",[CustomEvent,_.lJ]),_.p("design:returntype")],Gu.prototype,"onYtServiceRequestSent",null);
_.L([_.gz("yt-service-request-completed"),_.p("design:type",Function),_.p("design:paramtypes",[CustomEvent,_.Yq]),_.p("design:returntype")],Gu.prototype,"onYtServiceRequestCompleted",null);_.L([_.U({disableElementRegistration:!0,is:"ytd-two-column-browse-results-renderer"})],Gu);
_.D(Gu,"ytd-two-column-browse-results-renderer",function(){if(BCE!==void 0)return BCE;var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-two-column-browse-results-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="primary" class="style-scope ytd-two-column-browse-results-renderer"></div>\n<div id="secondary" class="style-scope ytd-two-column-browse-results-renderer">\n</div>\n');a.content.insertBefore(_.w().content.cloneNode(!0),
a.content.firstChild);return BCE=a},{mode:2});
}catch(e){_._DumpException(e)}
try{
var aZj=function(a){if((a==null?void 0:a.value)===void 0||a==null||!a.unit)return"initial";a:{switch(a.unit){case "SHOPPING_DIMENSION_UNIT_POINT":var z="px";break a;case "SHOPPING_DIMENSION_UNIT_FRACTION":z="%";break a}z=void 0}return z?""+a.value+z:"initial"},j3O=new _.jv("shoppingContentLineItemViewModel");var zTI=_.ec(function(a){var z=_.q3(a,{}).data;return _.B("yt-shopping-content-line-item-view-model",{class:_.B8("ytShoppingContentLineItemViewModelHost")},_.B(_.xs,{text:function(){var I;return(I=z().text)==null?void 0:I.attributedString}}))},"Hk");var IZN=_.ec(function(a){a=_.q3(a,{});var z=a.data;return _.B("yt-shopping-content-line-view-model",{class:_.B8("ytShoppingContentLineViewModelHost",a.className),style:_.sW({"--shopping-content-line-gap":function(){return z().itemGap?z().itemGap+"px":void 0},
"--shopping-content-line-height":function(){return z().lineHeight?z().lineHeight+"px":void 0}})},_.B(_.se,{each:function(){return(z().items||[]).map(function(I){return _.H(I,j3O)}).filter(function(I){return!!I})}},function(I){return _.B(zTI,{data:I})}))},"Ik");_.Jf(_.ec(function(a){var z=_.q3(a,{}).data,I=function(){var r;return((r=z().image)==null?void 0:r.width)||40},J=function(){var r;
return((r=z().image)==null?void 0:r.height)||40};
return _.B("yt-shopping-timely-shelf-content-view-model",{el:_.a5(_.UN(function(){var r;return(r=z())==null?void 0:r.rendererContext},void 0,void 0,["BUTTON".toString(),
"A".toString()])),class:_.B8("ytShoppingTimelyShelfContentViewModelHost"),style:_.sW({"--shopping-timely-shelf-content-padding-top":function(){var r;return aZj((r=z().padding)==null?void 0:r.top)},
"--shopping-timely-shelf-content-padding-bottom":function(){var r;return aZj((r=z().padding)==null?void 0:r.bottom)},
"--shopping-timely-shelf-content-padding-start":function(){var r;return aZj((r=z().padding)==null?void 0:r.start)},
"--shopping-timely-shelf-content-padding-end":function(){var r;return aZj((r=z().padding)==null?void 0:r.end)}})},_.B(_.g,{cond:function(){var r;
return(r=z().image)==null?void 0:r.image},
then:function(r){return _.B(_.qp,{preserveHeight:!0,preserveWidth:!0,width:I,height:J,data:r,alt:"",className:"ytShoppingTimelyShelfContentViewModelImage"})}}),_.B(_.V0,{data:function(){return z().avatar}},{avatarViewModel:_.ok}),_.B("div",{class:"ytShoppingTimelyShelfContentViewModelText"},_.B(_.V0,{data:function(){return z().line1}},{shoppingContentLineViewModel:function(r){return _.B(IZN,{data:r.data})}}),_.B(_.V0,{data:function(){return z().line2}},{shoppingContentLineViewModel:function(r){return _.B(IZN,
{data:r.data})}})),_.B("div",{class:"ytShoppingTimelyShelfContentViewModelButtons"},_.B(_.se,{each:function(){var r;
return(r=z().button)!=null?r:[]}},function(r){return _.B(_.V0,{data:function(){return r}},{buttonViewModel:_.At})})))},"Jk"),"yt-shopping-timely-shelf-content-view-model",{props:{data:_.zl}});_.JCG={};
_.JCG.YtdWatchBehavior=[_.k.YtRendererBehavior,_.jz.YtPlayerListenerBehavior,_.u4.YtRendererstamperBehavior,_.Hc.YtActionHandlerBehavior,_.WR.YtPageBehavior,_.FW.YtEndpointBehavior,{_noAccessors:!0,properties:{data:{type:Object,observer:"dataChanged_"},info:{type:Object},meta:{type:Object},ticket:{type:Object},donation:{type:Object},clarifyBox:{type:Object,computed:"getClarifyBox(data, clarifyBoxValue)"},shoppingTimelyShelf:{type:Object,computed:"getShoppingTimelyShelf(data, shoppingTimelyShelfValue)"},offerModule:{type:Object},
engagementPanels:{type:Object},inlineEngagementPanels:{type:Object},clarifyBoxValue:{type:Object},shoppingTimelyShelfValue:{type:Object},conversationBar:{type:Object},infoPanelBelowMetadata:{type:Object},expandableMetadata:{type:Object},limitedState:{type:Object,computed:"getLimitedState(data, limitedStateValue)"},limitedStateValue:{type:Object},merchShelf:{type:Object,computed:"getMerchShelf(data, merchShelfValue)"},merchShelfValue:{type:Object},merchShelfInSd:{type:Object},singleColumn:{type:Object,
computed:"getSingleColumn(playerData.playabilityStatus, data, singleColumnValue)"},singleColumnValue:{type:Object},comments:{type:Object,value:null},playerData:{type:Object,observer:"playerDataChanged_"},playerAds:{type:Object,value:null},localPlaylistData_:{type:Object,value:{},computed:"setPlaylistData_(data.contents.twoColumnWatchNextResults.playlist.playlist)"},externalPlaylistData_:{type:Object,value:{}},playlistData:{type:Object,computed:"computePlaylistData_(localPlaylistData_, externalPlaylistData_)"},
theater:{type:Boolean,value:!1,reflectToAttribute:!0},fullWindowMode_:{type:Boolean,reflectToAttribute:!0,value:function(){return _.TZ("START_IN_FULL_WINDOW_MODE")}},
useProviderForSecondaryResultsRenderer:{type:Boolean,value:function(){return _.K("web_watch_provide_secondary_results_renderer")}},
enableFullBleedSingleColumnDefaultPlayer:{type:Boolean,reflectToAttribute:!0,value:function(){return _.K("full_bleed_single_column_default_player")}},
fullscreen:{type:Boolean,reflectToAttribute:!0},playlist:{type:Boolean,reflectToAttribute:!0,computed:"hasPlaylist_(playlistData, loadingData.playlist)",observer:"secondaryColumnModulePresenceChanged_"},alerts:{type:Object,computed:"getAlerts_(playerData.playabilityStatus, alertsValue)"},alertsValue:{type:Object},microformat:{type:Object,computed:"getPlayerMicroformatRenderer_(playerData.microformat)"},commentsReady:{type:Boolean,observer:"commentsReadyChanged_"},theaterRequested_:{type:Boolean,reflectToAttribute:!0,
value:function(){return _.TZ("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)"},playerUnavailableFixedVisibility:{type:Boolean,reflectToAttribute:!0,value:function(){return _.K("web_watch_error_screen_fix")}},
playerOverlays:{type:Object,value:null,computed:"getPlayerOverlays_(data)"},plaShelfEnabled_:{type:Boolean,value:!1,computed:"isPlaShelfEnabled_(playerData)"},monetizationShelvesEnabled_:{type:Boolean,value:!0},watchNextShownItems:Array,watchNextCanShowMore:Boolean,hidden:{type:Boolean,reflectToAttribute:!0,value:!1},shouldStampChat:{type:Boolean,value:!1,computed:"computeShouldStampChat_(data, hidden)",observer:"secondaryColumnModulePresenceChanged_",reflectToAttribute:!0},shouldCollapseDonationShelf:{type:Boolean,
value:!1,computed:"computeIsDonationShelfCollapsed_(shouldStampChat)",reflectToAttribute:!0},shouldShowMerchShelf:{type:Boolean,value:!1,computed:"computeShouldShowMerchShelf(merchShelf, monetizationShelvesEnabled_)",reflectToAttribute:!0},canScheduleCommentJobs_:{type:Boolean,value:!0},videoId:{type:String,value:"",computed:"identity(data.currentVideoEndpoint.watchEndpoint.videoId)",reflectToAttribute:!0},isTwoColumns_:{type:Boolean,reflectToAttribute:!0,observer:"isTwoColumnsChanged_"},isTwoColumnsInitialized:{type:Boolean,
value:!1},isSingleColumn:{type:Boolean,computed:"computeIsSingleColumn(isTwoColumns_, isTwoColumnsInitialized)"},isVerticalVideo_:{type:Boolean,reflectToAttribute:!0,computed:"computeIsVerticalVideo_(videoHeightToWidthRatio_)"},isFourThreeToSixteenNineVideo_:{type:Boolean,reflectToAttribute:!0,computed:"computeIsFourThreeToSixteenNineVideo_(videoHeightToWidthRatio_)"},isExtraWideVideo_:{type:Boolean,reflectToAttribute:!0,computed:"computeIsExtraWideVideo_(videoHeightToWidthRatio_)"},videoHeightToWidthRatio_:{type:Number,
value:.5625,observer:"videoHeightToWidthRatioChanged_"},flexySmallWindow_:{type:Boolean,reflectToAttribute:!0},flexyLargeWindow_:{type:Boolean,reflectToAttribute:!0},playerLoading_:{type:Boolean,value:!1},showEngagementPanelScrim_:{type:Boolean,reflectToAttribute:!0,observer:"showEngagementPanelScrimChanged_"},watchFeedBigThumbs_:{type:Boolean,reflectToAttribute:!0,value:function(){return _.K("kevlar_watch_feed_big_thumbs")}},
useEngagementPanelManagementComponent:{type:Boolean,value:function(){return _.K("kevlar_use_engagement_panel_management_component")}},
watchMetadataRefresh:{type:Boolean,value:!1,computed:"computeWatchMetadataRefresh(videoPrimaryInfoRenderer)",reflectToAttribute:!0},liveChatCollapsed:{type:Boolean},liveChatPresentAndExpanded:{type:Boolean,reflectToAttribute:!0,computed:"computeLiveChatPresentAndExpanded(shouldStampChat, liveChatCollapsed)"},playlistPanelExpanded:{type:Boolean,reflectToAttribute:!0,value:!1},engagementPanelExpanded:{type:Boolean,reflectToAttribute:!0,value:!1},panelExpanded:{type:Boolean,reflectToAttribute:!0,value:!1,
computed:"computePanelExpanded(engagementPanelExpanded, playlistPanelExpanded, liveChatPresentAndExpanded)"},swatcherooSqueezeback:{type:Boolean,reflectToAttribute:!0,value:!1,observer:"swatcherooSqueezebackChanged",computed:"computeSwatcherooSqueezeback(panelExpanded, fullBleedPlayer, isTwoColumns_)"},squeezeback:{type:Boolean,reflectToAttribute:!0,value:!1,observer:"squeezebackChanged",computed:"computeSqueezeback(engagementPanelExpanded,liveChatPresentAndExpanded, playlistPanelExpanded, fullscreen, theater)"},
richItemMinWidth:{type:Number,value:function(){return _.Ib("wn_grid_min_item_width",310)}},
richItemMaxWidth:{type:Number,value:function(){return _.Ib("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!_.K("kevlar_watch_flexy_disable_small_window_sizing")}},
flexyEnableLargeWindowSizing:{type:Boolean,reflectToAttribute:!0,value:function(){return!_.K("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 _.K("kevlar_watch_cinematics")}},
responseHasComments:{type:Boolean,reflectToAttribute:!0,value:function(){return!0}},
deprecateFullerscreenUi:{type:Boolean,reflectToAttribute:!0,value:function(){return _.K("web_watch_fullerscreen_deprecation_ui")}},
iMaxTheaterMode:{type:Boolean,reflectToAttribute:!0,value:function(){return _.K("web_watch_imax_theater_mode")}},
swatcherooDirectUseRichGrid:{type:Boolean,value:function(){return _.K("swatcheroo_direct_use_rich_grid")}},
cinematicsActive:{type:Boolean,value:!1,reflectToAttribute:!0},noTopMargin:{type:Boolean,reflectToAttribute:!0,value:function(){return _.K("kevlar_watch_no_top_margin")}},
reducedTopMargin:{type:Boolean,reflectToAttribute:!0,value:function(){return _.K("kevlar_watch_reduced_top_margin")}},
frame0LoadingState:{type:Boolean,reflectToAttribute:!0,value:function(){return _.K("kevlar_watch_frame0_loading_state")}},
retroMode:{type:Boolean,value:!1},roundedPlayer:{type:Boolean,reflectToAttribute:!0,computed:"computeRoundedPlayer(defaultLayout, retroMode)"},showExpandableMetadata:{type:Boolean,reflectToAttribute:!0,computed:"computeShowExpandableMetadata(expandableMetadata)"},fullBleedPlayer:{type:Boolean,reflectToAttribute:!0,computed:"computeFullBleedPlayer(fullscreen, theater, isSingleColumn)"},defaultLayout:{type:Boolean,reflectToAttribute:!0,computed:"computeDefaultLayout(fullBleedPlayer)"},defaultTwoColumnLayout:{type:Boolean,
reflectToAttribute:!0,computed:"computeDefaultTwoColumnLayout(fullBleedPlayer, isTwoColumns_)"},swatcherooSplitScroll:{type:Boolean,reflectToAttribute:!0,value:function(){return _.K("swatcheroo_split_scroll")}},
trackEngagementPanelVisibility:{type:Boolean,value:function(){return _.K("web_watch_track_engagement_panel_visibility")}},
commentTeaserEnabled:{type:Boolean,value:function(){return _.K("web_watch_show_comment_teaser")}},
swatcherooBinaryLayout:{type:Boolean,reflectToAttribute:!0,value:function(){return _.K("swatcheroo_binary_layout")}},
swatcherooGhostCards:{type:Boolean,reflectToAttribute:!0,value:function(){return _.K("swatcheroo_enable_ghost_cards")}},
metadataSkinnyMode:{type:Boolean,reflectToAttribute:!0,value:!1,computed:"computeMetadataSkinnyMode(swatcherooBinaryLayout, isTwoColumns_, defaultTwoColumnLayout)"},fullBleedNoMaxWidthColumns:{type:Boolean,reflectToAttribute:!0,value:function(){return _.K("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 _.K("web_watch_while_wider_panels")}},
watchWhileMargin:{type:Boolean,reflectToAttribute:!0,value:function(){return _.K("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 _.K("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);updatePanelsLocation(liveChatPresentAndExpanded);swatcherooUpdatePanelsLocation(isTwoColumns_, fullBleedPlayer, squeezeback, playlistPanelExpanded, liveChatPresentAndExpanded, engagementPanelExpanded);scheduleFullHeightPanelPositionUpdate(defaultTwoColumnLayout, panelExpanded);swatcherooRichGridRendererDataChanged(data);watchNextSecondaryResultsChanged(data);defaultTwoColumnLayoutChanged(defaultTwoColumnLayout);onMiniplayerActiveReduxValueUpdate(miniplayerIsActive)".split(";"),
monitorScroll:!0,configureRendererStamper:function(){var a={info:{id:"info-contents",mapping:{videoPrimaryInfoRenderer:{component:"ytd-video-primary-info-renderer"}}},meta:{id:"meta-contents",mapping:{videoSecondaryInfoRenderer:{component:"ytd-video-secondary-info-renderer",properties:{structuredDescriptionContentRenderer:"[[inlineStructuredDescriptionData]]"}}}},ticket:{id:"ticket-shelf",mapping:{ticketShelfRenderer:{component:"ytd-ticket-shelf-renderer",properties:{skinnyMode:"[[isTwoColumns_]]"}}}},
offerModule:{id:"offer-module",mapping:{donationShelfRenderer:{component:"ytd-donation-shelf-renderer",properties:{isCollapsed:"[[shouldCollapseDonationShelf]]"}},donationUnavailableRenderer:{component:"ytd-donation-unavailable-renderer"},movieOfferModuleRenderer:"ytd-movie-offer-module-renderer",episodeOfferModuleRenderer:"ytd-movie-offer-module-renderer",liveOfferModuleRenderer:"ytd-movie-offer-module-renderer",channelOfferModuleRenderer:"ytd-movie-offer-module-renderer",unlimitedOfferModuleRenderer:{component:"ytd-unlimited-offer-module-renderer",
properties:{hidden:"[[hideUnlimitedOfferModule]]"}},tvfilmOfferModuleRenderer:{component:"ytd-tvfilm-offer-module-renderer",properties:{hidden:"[[hideTvfilmOfferModule]]"}},ctaShelfRenderer:"ytd-brandconnect-cta-shelf-card-renderer"}},expandableMetadata:{id:"expandable-metadata",mapping:{expandableMetadataRenderer:{component:"ytd-expandable-metadata-renderer",params:{isWatch:!0}}}},donation:{id:"donation-shelf",mapping:{donationShelfRenderer:{component:"ytd-donation-shelf-renderer",properties:{isCollapsed:"[[shouldCollapseDonationShelf]]"}},
donationUnavailableRenderer:{component:"ytd-donation-unavailable-renderer"}}},shoppingTimelyShelf:{id:"shopping-timely-shelf",mapping:{shoppingTimelyShelfContentViewModel:"yt-shopping-timely-shelf-content-view-model"}},clarifyBox:{id:"clarify-box",mapping:{clarificationRenderer:"ytd-clarification-renderer",infoPanelContainerRenderer:"ytd-info-panel-container-renderer",infoPanelContentRenderer:"ytd-info-panel-content-renderer",emergencyOneboxRenderer:{component:"ytd-emergency-onebox-renderer",attributes:{"class":"watch"}}}},
limitedState:{id:"limited-state",mapping:{limitedStateMessageRenderer:"ytd-limited-state-message-renderer"}},playerAds:{id:"player-ads",mapping:{playerLegacyDesktopWatchAdsRenderer:"ytd-player-legacy-desktop-watch-ads-renderer"},initialRenderPriority:3,waitForSignal:_.q7(["aa","eocs"])},"data.survey":{id:"survey",mapping:{surveyTriggerRenderer:"ytd-survey-trigger-renderer"},initialRenderPriority:3,waitForSignal:_.q7(["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"||_.K("swa_prov_panels_ks")?a.engagementPanels={id:"panels",mapping:{engagementPanelSectionListRenderer:{component:"ytd-engagement-panel-section-list-renderer",
params:{isWatch:!0}}}}:(a.engagementPanels={id:"panels",mapping:{engagementPanelSectionListRenderer:{component:"ytd-engagement-panel-section-list-renderer",params:{isWatch:!0}}}},a.inlineEngagementPanels={id:"inline-panels",mapping:{engagementPanelSectionListRenderer:{component:"ytd-engagement-panel-section-list-renderer",params:{isWatch:!0}}},reuseComponents:!1});return a},
listeners:{"yt-retrieve-location":"onRetrieveLocation_","yt-subscription-changed":"onSubscriptionChanged_","yt-show-survey":"onYtShowSurvey_","yt-chat-collapsed-changed":"onYtChatCollapsedChanged"},actionMap:{"yt-sync-with-remote-video":"syncWithRemoteVideo_","yt-window-resized":"onWindowResized_","yt-initial-video-aspect-ratio":"onYtInitialVideoAspectRatio_","yt-update-player-next-video":"onUpdatePlayerNextVideo_","yt-signal-action-pause-player":"handleSignalActionPausePlayer_","yt-signal-action-play-player":"handleSignalActionPlayPlayer_",
"yt-signal-action-acknowledge-youthere":"handleSignalActionAcknowledgeYouThere_","yt-user-activity":"onYtUserActivity_","yt-show-engagement-panel-scrim-action":"onYtShowEngagementPanelScrimAction_","yt-hide-engagement-panel-scrim-action":"onYtHideEngagementPanelScrimAction_","yt-get-current-video-id-action":"onGetCurrentVideoIdAction_","yt-show-survey-command":"onYtShowSurveyCommand_","yt-signal-action-scroll-to-comments":"onYtSignalActionScrollToComments","yt-engagement-panel-visible-changed":"onYtEngagementPanelVisibleChanged",
"yt-downloaded-video-deleted":"onDownloadedVideoDeleted","yt-change-markers-visibility-command":"onChangeMarkersVisibility","yt-set-playlist-collapsed":"onSetPlaylistCollapsed","yt-updated-playability-status":"onYtUpdatedPlayabilityStatus"},created:function(){var a=this;this.watchController=void 0;this.pageDisposeJobs=[function(){a.showMetadataPlaceholder_()},
function(){_.K("web_watch_dont_clear_comments")||a.clearComments_()},
function(){a.clearPlayerAds_()},
function(){a.resetAutonavCanceledForNewPlayback_()}];
this.player=this.playerContainerEl=this.playerEl=this.watchNextSkeletonEl_=null;this.onPlayingCallbacks_=[];this.clearPlayerAdsJobId_=this.setRichGridJobId_=this.setCommentsJobId_=0;this.showFullerscreenEdu_=!1;this.windowSize_=null;this.is==="ytd-watch-grid"&&(this.visiblePanelIdentifiers_=new Set);this.trackEngagementPanelVisibility&&(this.visiblePanelIdentifiers_=new Set);this.autonavCanceledSignal_=!1;_.K("kevlar_watch_while")&&(this.watchWhileScrollThreshold_=NaN);_.K("web_watch_start_chat_in_theater_mode")&&
(this.theaterEnabledForChat=!1);this.youThereManager_=new _.DeN(function(){return _.jr(a)},this.hostElement);
this.pageDisposeJobs.push(function(){a.youThereManager_.reset()});
_.K("external_fullscreen")&&(this.fullerscreenEduButtonShownThisPlayback_=this.fullerscreenEduButtonClickedThisPlayback_=!1,this.pageDisposeJobs.push(function(){a.resetFullerscreenEduButtonForNewPlayback_()}));
this.fullHeightPanelPositionUpdateJobId=this.panelMaxHeightUpdateJob_=0;this.playerEvents_=new _.BY;this.playerEvents_.set("onFeedbackStartRequest",this.onPlayerFeedbackStartRequest_);this.playerEvents_.set("onFeedbackArticleRequest",this.onPlayerFeedbackArticleRequest_);this.playerEvents_.set("onYpcContentRequest",this.onPlayerYpcContentRequest_);this.playerEvents_.set("onAutonavPauseRequest",this.onPlayerAutonavPauseRequest_);this.playerEvents_.set("onAdStateChange",this.onAdStateChange_);this.playerEvents_.set("onStateChange",
this.onPlayerStateChange_);this.playerEvents_.set("SUBSCRIBE",this.onPlayerSubscribe_);this.playerEvents_.set("UNSUBSCRIBE",this.onPlayerUnsubscribe_);this.playerEvents_.set("onYtShowToast",this.onPlayerAdYtShowToast_);this.playerEvents_.set("onFullscreenChange",this.onPlayerFullscreenChange_);this.playerEvents_.set("onVideoDataChange",this.onPlayerPresentingVideoDataChange_);this.engagementPanelScrimOnClickCommands_=null;this.watchMetadata=void 0;_.K("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));_.K("kevlar_watch_flexy_comments_manager")||this.hostElement.addEventListener("yt-page-data-will-update",_.BK(this,this.onYtPageDataWillUpdate_))},
onYtUpdatedPlayabilityStatus:function(a){a&&(this.playerData=Object.assign({},this.playerData,{playabilityStatus:a}),a.status==="ERROR"&&(this.playerData.videoDetails=void 0))},
onTheaterReduxValueUpdate:function(a){_.K("kevlar_watch_flexy_theater_manager")&&(this.theater=a,this.updateFullBleedElementLocations(),this.schedulePlayerSizeUpdate_(),this.active!==void 0&&this.schedulePanelMaxHeightUpdate_())},
onMiniplayerActiveReduxValueUpdate:function(a){!_.K("kevlar_watch_while_v2")&&!_.K("web_watch_pip")||a||(this.player&&this.setPlayerTheaterMode_(),this.schedulePlayerSizeUpdate_())},
onFullscreenReduxValueUpdate:function(a){this.active!==void 0&&(this.fullscreen=a,_.K("kevlar_watch_flexy_gestures_manager")||this.gestures_&&this.gestures_.update(this.fullscreen),this.updateFullBleedElementLocations())},
onScrollReduxValueUpdate:function(a){this.active!==void 0&&(_.PA(this.hostElement,"yt-autonav-pause-scroll"),this.setComments_(),_.K("kevlar_watch_while")&&this.updateMiniplayerBarVisibility_(),_.K("kevlar_watch_flexy_gestures_manager")||this.gestures_&&(a>0?this.gestures_.detach():this.gestures_.attach()))},
loadPage_:function(a){this.initCsi_();this.updatePageData_(a)},
updatePageData_:function(a){var z=this;if(a)if(this.data===a){this.onPageLoadWithSameData_();var I;(I=this.watchController)==null||I.setWatchNextResponse(this.data)}else this.data=a;this.playlist&&_.Gb({watchInfo:{isPlaylist:!0}});this.pageCount===1&&_.Xz("nw");this.loading=!1;_.b9(_.GW,function(){z.initDclkstatus_();var J,r=((J=z.player)==null?void 0:J.getVideoData().cpn)||"";_.hZO(function(P,N){_.QG4(P,N,r)})})},
onPageLoadWithSameData_:function(){_.K("kevlar_watch_flexy_comments_manager")||this.initComments_();this.setPlayerAds_()},
setLoadingState_:function(){this.hostElement.classList.remove("hide-skeleton");this.hostElement.classList.add("show-skeleton");this.setPlayerLoadingState_();this.hostElement.classList.add("loading");var a=this.get("endpoint.watchEndpoint.playlistId",this.loadingData);this.set("loadingData.playlist",!!a);this.set("loadingData.playlistLoading",a&&a!==this.get("playlistId",this.playlistData));this.toggleBodyScrolling_(!1);if(this.watchNextSkeletonEl_)for(this.playlist?this.watchNextSkeletonEl_.setAttribute("playlist",
""):this.watchNextSkeletonEl_.removeAttribute("playlist"),a=this.watchNextSkeletonEl_.firstElementChild;a;)a.classList.remove("hidden"),a=a.nextElementSibling;if(_.K("kevlar_watch_frame0_loading_state")){var z,I,J;a=(z=this.loadingData)==null?void 0:(I=z.endpoint)==null?void 0:(J=I.watchEndpoint)==null?void 0:J.videoId;var r;a&&(r="https://i.ytimg.com/vi/"+a+"/frame0.jpg");_.PK(this.hostElement).querySelector("#player").style.backgroundImage=r?"url("+r+")":""}},
clearLoadingState_:function(){this.hostElement.classList.remove("show-skeleton");this.hostElement.classList.add("hide-skeleton");var a=_.PK(this.hostElement).querySelector("#related-skeleton");!this.get("data.contents.twoColumnWatchNextResults.secondaryResults.secondaryResults")&&a&&(a.hidden=!0);this.clearPlayerLoadingState_();this.hostElement.classList.remove("loading");this.loadingData={playlist:!1};this.toggleBodyScrolling_(!0);if(this.watchMetadata){var z,I;(I=(z=this.watchMetadata).updateSentimentBarWidth)==
null||I.call(z);var J,r;(r=(J=this.watchMetadata).resize)==null||r.call(J)}_.K("kevlar_watch_frame0_loading_state")&&(_.PK(this.hostElement).querySelector("#player").style.backgroundImage="")},
addSplitScrollMouseTrap:function(a){var z=_.PK(this.hostElement).querySelector(a);z?_.I_(z,!1):_.Xd(new _.Fn("Overscroll monitor not found for component: ",a))},
removeSplitScrollMouseTrap:function(a){var z=_.PK(this.hostElement).querySelector(a);z?_.JR(z):_.Xd(new _.Fn("Disposal component for  overscroll monitoring not found: ",a))},
onLoadingChanged_:function(a){a?this.setLoadingState_():this.clearLoadingState_()},
setPlayerLoadingState_:function(){this.playerLoading_||(this.playerLoading_=!0,_.K("web_thumbnail_to_watch_transition")&&!_.dRV||this.hostElement.classList.add("loading-player"))},
clearPlayerLoadingState_:function(){this.playerLoading_&&(this.playerLoading_=!1,_.K("web_thumbnail_to_watch_transition")&&!_.dRV||this.hostElement.classList.remove("loading-player"))},
toggleBodyScrolling_:function(a){var z=this;a?document.body.removeAttribute("no-y-overflow"):document.body.setAttribute("no-y-overflow","");_.GW.addLowPriorityJob(function(){z.onWindowResized_(_.bk(!0))})},
updateTheaterModeState_:function(a){if(!_.K("kevlar_watch_flexy_theater_manager")){a=a||this.fullWindowMode_;if(this.theater!==void 0||a)this.theater=a;this.updateFullBleedElementLocations();this.player&&this.setPlayerTheaterMode_();this.togglePageSwatchActive_();a&&_.VII()}},
updateFullBleedElementLocations:function(){this.updateChatLocation();this.updatePlayerLocation();this.updateCinematicsLocation();this.updatePanelsLocation();_.K("web_watch_error_screen_fix")&&this.updateErrorScreenLocation()},
updatePlayerLocation:function(){var a=this.theater||this.enableFullBleedSingleColumnDefaultPlayer&&this.fullBleedPlayer;_.K("external_fullscreen")&&this.fullscreen&&(a=!0);_.K("web_watch_error_screen_fix")&&(a=this.fullBleedPlayer);a=a?_.PK(this.hostElement).querySelector("#player-full-bleed-container"):_.PK(this.hostElement).querySelector("#player-container-inner");var z=this.getPlayerContainer(),I=_.K("kevlar_watch_while_v2")||_.K("web_watch_pip");z.parentElement!==a&&(I&&this.isMiniplayerActive()?
this.deactivateMiniplayerAndResetPlayer():(_.jr(this).appendTo(a,z),_.K("web_watch_error_screen_fix")||a.appendChild(_.PK(this.hostElement).querySelector("#error-screen"))))},
updateErrorScreenLocation:function(){var a=_.PK(this.hostElement).querySelector("#error-screen"),z=this.fullBleedPlayer?_.PK(this.hostElement).querySelector("#player-full-bleed-container"):_.PK(this.hostElement).querySelector("#player");a.parentElement!==z&&z.appendChild(a)},
deactivateMiniplayerAndResetPlayer:function(){var a=this;return _.t(function(z){if(z.nextAddress==1)return z.yield(_.ab().resolve(_.UJ).deactivate(),2);a.updatePlayerLocation();_.nu(z)})},
updateCinematicsLocation:function(){var a=this.getElement("CINEMATICS");if(a){var z=this.getCinematicsLocationContainer();a.parentElement!==z&&z.appendChild(a);var I;(I=this.watchController)==null||I.updateCinematicFullscreenConfig()}},
getCinematicsLocationContainer:function(){return this.shouldCinematicsBeInFullBleedContainer(this.theater&&!this.fullscreen,this.fullscreen,this.enableFullBleedSingleColumnDefaultPlayer&&this.isSingleColumn)?_.PK(this.hostElement).querySelector("#cinematics-full-bleed-container"):_.PK(this.hostElement).querySelector("#cinematics-container")},
shouldCinematicsBeInFullBleedContainer:function(a,z,I){var J=document.documentElement.hasAttribute("dark"),r=J&&_.K("web_cinematic_theater_mode"),P=J&&_.K("web_cinematic_fullscreen");J=!J&&this.cinematicLightTheme;return I||a&&r||z&&P||(z||a)&&J},
isTheater_:function(){return this.theater&&this.active},
dataChanged_:function(){var a=this,z;(z=this.watchController)==null||z.setWatchNextResponse(this.data);_.K("kevlar_watch_flexy_comments_manager")||this.initComments_();_.K("kevlar_metadata_reset_on_nav")&&this.hostElement.classList.add("hide-skeleton");_.ab().resolve(_.wR).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,_.K("kevlar_watch_grid_auto_open_playlist"))this.onSetPlaylistCollapsed(!1),_.GW.addLowPriorityJob(function(){_.Ct(a.hostElement,"yt-set-playlist-collapsed",[!1])},1E3);
else this.onSetPlaylistCollapsed(!this.playlistPanelExpanded);this.data&&this.updateCinematicsLocation();if(_.K("web_watch_start_chat_in_theater_mode")){var I,J,r;if((I=this.data)==null?0:(J=I.contents)==null?0:(r=J.twoColumnWatchNextResults)==null?0:r.conversationBar)this.setTheaterModeRequested(!0,!1),this.theaterEnabledForChat=!0;else{var P,N;((P=this.data)==null?0:(N=P.contents)==null?0:N.twoColumnWatchNextResults)&&this.theaterEnabledForChat&&(this.setTheaterModeRequested(!1,!1),this.theaterEnabledForChat=
!1)}}},
playerDataChanged_:function(a){var z;(z=this.watchController)==null||z.setPlayerResponse(this.playerData);a&&a.playabilityStatus&&(z=this.isVideoPlayable_(a.playabilityStatus,this.getPlayerOverlays_(this.data)),a=this.isLiveStreamOffline_(a.playabilityStatus),z&&!a||_.Yv(this,function(){_.Xz("pbu")}));
this.setPlayerAds_();_.Ct(this.hostElement,"ytd-watch-player-data-changed")},
computePlayerContainerBackgroundImage:function(a,z){if((_.K("kevlar_watch_while_v2")||_.K("web_watch_pip"))&&this.playerData&&z)return this.playerData.videoDetails},
watchPageActiveChanged_:function(a){_.qo().dispatch(_.Yex(this.active));a?this.activate_():this.deactivate_()},
attached:function(){var a=this;this.watchController=new _.Dq(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);_.K("web_watch_common_class_killswitch")||this.hostElement.classList.add("watch-root-element");var z=_.jr(this);_.K("kevlar_disable_prepare_player")||
z.preparePlayer();_.K("kevlar_watch_flexy_playlist_manager")||_.ab().resolve(_.wR).setPlayer(z);this.is!=="ytd-watch-grid"&&this.attachWatchPageSkeleton_();this.updatePageMediaQueries();z={"--ytd-watch-flexy-scrollbar-width":_.M7()+"px"};this.is==="ytd-watch-grid"&&(z["--ytd-watch-flexy-sidebar-width"]=_.rxP+"px",z["--ytd-watch-grid-horizontal-page-margins"]=_.UI+"px",z["--ytd-watch-grid-columns-top-margins"]=_.z7u+"px",z["--ytd-watch-grid-min-player-height-medium"]="360px");!_.Ib("kv_pl_mx_sz_ks")&&
_.Ib("kevlar_watch_max_player_width")&&(z["--ytd-watch-flexy-max-player-width-wide-screen"]=_.Pju+"px");_.Ib("kevlar_watch_flexy_metadata_height")&&(z["--ytd-watch-flexy-space-below-player"]=_.Z4j+"px");this.safeUpdateStyles(z);_.K("kevlar_watch_flexy_gestures_manager")||(this.gestures_=new _.Bf(this.hostElement,this.getPlayerContainer(),{dragDownAction:function(){return a.onPlayerTouchPanDown_()}}));
this.watchMetadata=_.PK(this.hostElement).querySelector("ytd-watch-metadata:not([swatcheroo-secondary-below-metadata])")},
updatePageMediaQueries:function(){var a=_.M7(),z=_.DS+a,I=z;this.fixedPanels&&(z+=_.rxP);var J=657+a;a=1327+a;_.PK(this.hostElement).querySelector("#two-column-query").query="(min-width: "+z+"px)";_.PK(this.hostElement).querySelector("#small-window-query").query="(max-height: 629px) and (min-width: "+(J+"px), (min-height: 630px) and (min-width: ")+(z+"px) and (max-width: ")+(a+"px)");_.PK(this.hostElement).querySelector("#large-window-query").query="(min-height: 630px) and (min-width: "+(a+"px)");
_.PK(this.hostElement).querySelector("#watch-while-query").query="(min-width: "+I+"px)";this.isTwoColumnsInitialized=!0},
calculateCurrentPlayerSize_:function(){var a=_.PK(this.hostElement).querySelector("#miniplayer-bar").firstChild,z=this.squeezeback&&!_.K("web_watch_squeezeback_player_size_killswitch");return a&&a.active||this.theater||_.K("web_watch_fullscreen_panels")&&this.fullscreen||this.swatcherooSqueezeback||z||!this.active||!this.windowSize_||this.enableFullBleedSingleColumnDefaultPlayer&&this.fullBleedPlayer?new _.fB(NaN,NaN):_.xeO(this.windowSize_,this.videoHeightToWidthRatio_,this.isTwoColumns_&&(this.playlist||
this.shouldStampChat))},
calculateNormalPlayerSize_:function(){return _.xeO(this.windowSize_,this.videoHeightToWidthRatio_,this.isTwoColumns_&&(this.playlist||this.shouldStampChat))},
detached:function(){_.Y8(this.watchController);this.watchController=void 0;this.deactivate_()},
activate_:function(){var a=this;this.onWindowResized_(_.bk());_.K("browse_skeleton_removal_on_watch_killswitch")||_.TZ("IS_SHELL_LOAD")&&_.O7E();this.theaterRequested_=this.theater;this.togglePageSwatchActive_();var z=_.jr(this);z.addEventListener("yt-player-updated",_.BK(this,this.onPlayerUpdated_));z.getPlayerPromise().then(function(I){a.playerApiReady_(I)});
_.K("kevlar_watch_flexy_playlist_manager")||(z=_.ab().resolve(_.wR),_.K("kevlar_watch_observe_playlist_navigations_killswitch")&&z.addEventListener("yt-navigate",_.BK(this,this.onYtNavigate_)),z.setPlaylistComponent(_.PK(this.hostElement).querySelector("#playlist")),z.addEventListener("yt-playlist-data-updated",_.BK(this,this.onYtPlaylistDataUpdated_)),this.onYtPlaylistDataUpdated_());_.GW.addLowPriorityJob(function(){_.PA(a.hostElement,"yt-autonav-pause-scroll")})},
deactivate_:function(){this.disconnectFromPlayer_();_.jr(this).removeEventListener("yt-player-updated",_.BK(this,this.onPlayerUpdated_));this.swatcherooSplitScroll&&this.defaultTwoColumnLayout&&(this.removeSplitScrollMouseTrap("#secondary-inner"),this.removeSplitScrollMouseTrap("#fixed-secondary"));if(!_.K("kevlar_watch_flexy_playlist_manager")){var a=_.ab().resolve(_.wR);_.K("kevlar_watch_observe_playlist_navigations_killswitch")&&a.removeEventListener("yt-navigate",_.BK(this,this.onYtNavigate_));
a.cancelVideoSkip();a.removeEventListener("yt-playlist-data-updated",_.BK(this,this.onYtPlaylistDataUpdated_))}this.loading&&this.toggleBodyScrolling_(!0);_.K("kevlar_watch_while")&&this.updateMiniplayerBarVisibility_();this.schedulePlayerSizeUpdate_();_.PA(this.hostElement,"yt-autonav-pause-player",!1);a=_.jE();_.K("kevlar_exit_fullscreen_leaving_watch")&&a&&_.zb(a)},
disconnectFromPlayer_:function(){this.player&&(this.unlistenFromPlayerEvents(this.player,this.playerEvents_),this.player=null)},
onUpdatePlayerNextVideo_:function(a){this.player&&this.player.updateVideoData({rvs:a.rvs})},
getPageContents:function(a){return a&&a.contents&&a.contents.twoColumnWatchNextResults&&a.contents.twoColumnWatchNextResults.results&&a.contents.twoColumnWatchNextResults.results.results.contents},
getClarifyBox:function(){return this.clarifyBoxValue},
getShoppingTimelyShelf:function(){return this.shoppingTimelyShelfValue},
getLimitedState:function(){return this.limitedStateValue},
getMerchShelf:function(){return this.merchShelfValue},
getSingleColumn:function(){return this.singleColumnValue},
getOfferModule:function(a){return this.get("contents.twoColumnWatchNextResults.secondaryResults.secondaryResults.offerModule",a)},
onRetrieveLocation_:function(a,z){z.hasComments?z.locationRetrieved("/comment_service_ajax?action_get_comments=1&pbj=1",void 0):z.locationRetrieved("/related_ajax",void 0);a.stopPropagation()},
onSubscriptionChanged_:function(a,z){this.player&&(z?this.player.channelSubscribed():this.player.channelUnsubscribed())},
initCsi_:function(){_.dk("watch",["pbs","pbp","pbu"])},
getPlayerContainer:function(){this.playerContainerEl||(this.playerContainerEl=_.PK(this.hostElement).querySelector("#player-container"));return this.playerContainerEl},
getPlayer:function(){this.playerEl||(this.playerEl=_.PK(this.hostElement).querySelector("#ytd-player"));return this.playerEl},
playerApiReady_:function(a){this.player=a;this.setPlayerState(a.getPlayerState());this.listenToPlayerEvents(this.player,this.playerEvents_);this.updatePlayerStartTime_();this.setPlayerTheaterMode_();this.onPlayerPresentingVideoDataChange_();this.handlePlayerUpdated_();_.K("external_fullscreen")&&this.updateFullerscreenEduButtonSubtleModeState_();(_.K("kevlar_unified_player")||_.K("kevlar_player_new_bootstrap_adoption"))&&_.ws()},
onFullerscreenEduClicked_:function(){this.scrollToAnimation_.start(0,186,500);this.fullerscreenEduButtonClickedThisPlayback_||(this.fullerscreenEduButtonClickedThisPlayback_=!0,this.incrementFullerscreenEduButtonCount_("yt-fullerscreen-edu-button-click-count"))},
setTheaterModeRequested:function(a,z){z=z===void 0?!0:z;_.jE()&&_.K("external_fullscreen")&&_.zb(document.documentElement);this.theaterRequested_=a;z&&_.AP("wide",a?"1":"0",-1);this.togglePageSwatchActive_();this.player&&this.setPlayerTheaterMode_();this.schedulePlayerSizeUpdate_();this.schedulePanelMaxHeightUpdate_();_.ZF(this.hostElement,"yt-close-popup-action",["yt-tooltip-renderer"])},
togglePageSwatchActive_:function(){this.theater!==void 0&&this.active&&_.PA(this.hostElement,"yt-set-theater-mode-enabled",{enabled:this.theater})},
onWatchScroll_:function(){this.scrollThrottle_.fire();this.mastheadScrollThrottle.fire()},
setPlayerTheaterMode_:function(){try{this.player.setSizeStyle(!0,this.theater)}catch(a){_.Tx(a,typeof this.player),this.player&&_.Tx(a,this.player.setSizeStyle)}},
onPlayerTouchPanDown_:function(){if(this.active&&this.getScrollTop()<=0){var a;((a=this.player)==null?0:a.isFullscreen())?this.player.toggleFullscreen():_.ZF(this.hostElement,"yt-activate-miniplayer-from-watch-action")}},
hasPlaylist_:function(a,z){return this.loading?z:!!Object.keys(a).length},
autonavAllowed_:function(){return this.autonavCanceledSignal_?!1:!!this.get("contents.twoColumnWatchNextResults.autoplay.autoplay",this.data)},
youthereDataChanged_:function(a){if(a){a=_.C(a);for(var z=a.next();!z.done;z=a.next())z=z.value,z.youThereRenderer&&_.lva(this.youThereManager_,z.youThereRenderer)}},
setPlaylistData_:function(a){return a||{}},
userEngagementConfigDataChanged_:function(a){if(a)if(a.lowUserEngagementAction==="LOW_USER_ENGAGEMENT_ACTION_LOWER_QUALITY"){var z=this.youThereManager_;_.IO()<a.lowEngagementThresholdMs||_.yPI(z,!0)}else a.lowUserEngagementAction==="LOW_USER_ENGAGEMENT_ACTION_PAUSE_AUTOPLAY"&&_.ZF(this.hostElement,"yt-autonav-pause-user-engagement",[a])},
isPlayerUnavailable_:function(a,z,I){return!!a&&!this.isVideoPlayable_(a,I)&&!z},
getPlayerOverlays_:function(a){return(a==null?void 0:a.playerOverlays)||null},
isVideoPlayable_:function(a,z){if(!a)return!1;var I=a.status==="OK"||a.status==="LIVE_STREAM_OFFLINE",J=this.get("errorScreen.playerLegacyDesktopYpcTrailerRenderer",a)||this.get("errorScreen.ypcTrailerRenderer",a);a=this.get("errorScreen.playerLegacyDesktopYpcOfferRenderer",a);var r;z=z==null?void 0:(r=z.playerOverlayRenderer)==null?void 0:r.gatedActionsOverlayRenderer;return!!I||!!J||!!a||!!z},
hasWatchNextResponseErrorRenderer:function(a){var z=this.getPageContents(a),I,J,r,P,N;return!(a==null?0:(I=a.contents)==null?0:(J=I.twoColumnWatchNextResults)==null?0:J.secondaryResults)&&!!((r=z[0])==null?0:(P=r.itemSectionRenderer)==null?0:(N=P.contents[0])==null?0:N.backgroundPromoRenderer)},
isLiveStreamOffline_:function(a){return a?a.status==="LIVE_STREAM_OFFLINE":!1},
shouldProceedToNextVideo_:function(a,z,I){var J=!!this.get("contents.twoColumnWatchNextResults.secondaryResults.secondaryResults.offerModule",z),r=["AGE_CHECK_REQUIRED","CONTENT_CHECK_REQUIRED","AGE_VERIFICATION_REQUIRED"];r=_.K("web_no_skip_video_on_verification_checks")?(a==null?void 0:a.status)&&r.includes(a.status):a&&a.status==="AGE_CHECK_REQUIRED";var P=this.get("skip.playabilityErrorSkipConfig.skipOnPlayabilityError",a);P==void 0&&(P=!0);!I||this.isVideoPlayable_(a,this.getPlayerOverlays_(z))||
J||r||!P||_.ab().resolve(_.wR).skipVideo()},
getServiceTrackingParams:function(){if(this.data&&this.data.responseContext)return this.data.responseContext.serviceTrackingParams},
onPlayerUpdated_:function(){this.handlePlayerUpdated_();_.G9a()},
onPlayerFeedbackStartRequest_:function(a){_.ZF(this.hostElement,"yt-feedback-dialog-requested",[{customProductData:a}])},
onPlayerFeedbackArticleRequest_:function(a){_.ZF(this.hostElement,"yt-help-dialog-requested",[a])},
onPlayerYpcContentRequest_:function(){var a,z,I,J,r,P,N,u,E=((a=this.data)==null?NaN:(z=a.contents)==null?NaN:(I=z.twoColumnWatchNextResults)==null?NaN:(J=I.secondaryResults)==null?NaN:(r=J.secondaryResults)==null?NaN:(P=r.offerModule)==null?NaN:(N=P.tvfilmOfferModuleRenderer)==null?NaN:(u=N.actionButtons)==null?NaN:u.length)-1;a=[".offerButton.buttonRenderer.",".actionButtons."+(E>=0?E:0)+".buttonRenderer."];z=_.C(["episodeOfferModuleRenderer","movieOfferModuleRenderer","unlimitedOfferModuleRenderer",
"liveOfferModuleRenderer","tvfilmOfferModuleRenderer"]);for(I=z.next();!I.done;I=z.next())for(I=I.value,J=_.C(a),r=J.next();!r.done;r=J.next())if(r="contents.twoColumnWatchNextResults.secondaryResults.secondaryResults.offerModule."+I+r.value,r=this.get(r+"navigationEndpoint",this.data)||this.get(r+"serviceEndpoint",this.data)||this.get(r+"command",this.data)){_.fw(r,this.hostElement);return}},
onPlayerAutonavPauseRequest_:function(a){_.PA(this.hostElement,"yt-autonav-pause-player",a)},
onPlayerPlaying_:function(){this.onPlayingCallbacks_.forEach(function(a){a()});
this.onPlayingCallbacks_.length=0},
onAdStateChange_:function(a){switch(a){case 3:this.clearPlayerLoadingState_();break;case 1:this.clearPlayerLoadingState_(),this.onPlayerPlaying_()}},
onPlayerStateChange_:function(a){switch(a){case 3:this.clearPlayerLoadingState_();break;case 1:this.clearPlayerLoadingState_();this.onPlayerPlaying_();break;case 0:_.PA(this.hostElement,"yt-autonav-pause-player-ended")}this.setPlayerState(a)},
setPlayerState:function(a){_.qo().dispatch(_.A0i(a))},
onPlayerSubscribe_:function(a){_.ZF(this.hostElement,"yt-player-subscribe",[a])},
onPlayerUnsubscribe_:function(a){_.ZF(this.hostElement,"yt-player-unsubscribe",[a])},
onPlayerAdYtShowToast_:function(a){_.ZF(this.hostElement,"yt-open-popup-action",[{openPopupAction:{popup:{notificationActionRenderer:a.notificationActionRenderer},popupType:"TOAST"}},this])},
getAlerts_:function(){return this.alertsValue},
getPlayerMicroformatRenderer_:function(a){if(a)return a},
computeCommentsEntryPointHeaderRenderer:function(){if(this.commentTeaserEnabled)return this.swatcherooBinaryLayout?this.defaultTwoColumnLayout?void 0:this.commentsEntryPointHeaderRendererValue:this.isTwoColumns_?void 0:this.commentsEntryPointHeaderRendererValue},
computeShowRichGridContinuationButton:function(){return this.is!=="ytd-watch-grid"?!1:this.commentTeaserEnabled?this.swatcherooBinaryLayout?!1:!this.commentsEntryPointHeaderRenderer:!this.isTwoColumns_},
computeShowExpandableMetadata:function(a){return!_.K("web_watch_move_summary_to_sd")&&!!a},
computeWatchMetadataRefresh:function(){return _.K("kevlar_watch_metadata_refresh")&&this.videoPrimaryInfoRenderer?!0:!1},
computeRoundedPlayer:function(){return this.defaultLayout&&!(_.K("web_player_rtr_ctrls")&&this.retroMode)},
watchNextSecondaryResultsChanged:function(){if(this.is!=="ytd-watch-grid"&&!this.useProviderForSecondaryResultsRenderer){var a,z,I,J;this.watchNextSecondaryResults=(a=this.data)==null?void 0:(z=a.contents)==null?void 0:(I=z.twoColumnWatchNextResults)==null?void 0:(J=I.secondaryResults)==null?void 0:J.secondaryResults}},
swatcherooRichGridRendererDataChanged:function(){if(this.is==="ytd-watch-grid"&&this.swatcherooDirectUseRichGrid&&!_.K("swatcheroo_pbs_load_grid")&&!_.K("swatcheroo_provide_all_data_on_scheduled_job")){_.GW.cancelJob(this.setRichGridJobId_);var a,z,I,J,r,P,N;this.setRichGridRendererData((a=this.data)==null?void 0:(z=a.contents)==null?void 0:(I=z.twoColumnWatchNextResults)==null?void 0:(J=I.secondaryResults)==null?void 0:(r=J.secondaryResults)==null?void 0:(P=r.results)==null?void 0:(N=P[0])==null?
void 0:N.richGridRenderer)}},
setRichGridRendererData:function(a){this.richGridRendererData=a},
computeVideoPrimaryInfoRenderer:function(){return this.videoPrimaryInfoRendererValue},
computeVideoSecondaryInfoRenderer:function(){return this.videoSecondaryInfoRendererValue},
computeInlineStructuredDescriptionData:function(){var a,z=(a=this.data)==null?void 0:a.engagementPanels;if(z==null?0:z.length){a=null;z=_.C(z);for(var I=z.next();!I.done;I=z.next()){I=I.value;var J=void 0;if(((J=I.engagementPanelSectionListRenderer)==null?void 0:J.targetId)==="engagement-panel-structured-description"){a=I;break}}var r,P,N;a=(r=a)==null?void 0:(P=r.engagementPanelSectionListRenderer)==null?void 0:(N=P.content)==null?void 0:N.structuredDescriptionContentRenderer;if(a==null?0:a.items){r=
[];P=_.C(a.items);for(N=P.next();!N.done;N=P.next()){N=N.value;if(!_.K("sd_horizontal_list_show_nav_killswitch")){var u=J=I=z=a=void 0,E=void 0,O=(a=N.horizontalCardListRenderer)==null?void 0:(z=a.header)==null?void 0:(I=z.richListHeaderRenderer)==null?void 0:(J=I.navigationButton)==null?void 0:(u=J.buttonRenderer)==null?void 0:(E=u.command)==null?void 0:E.commandExecutorCommand;O&&O.commands&&(O.commands=O.commands.filter(function(f){return!_.H(f,_.FzO)}))}(!N.expandableVideoDescriptionBodyRenderer&&
!N.videoDescriptionHeaderRenderer||_.K("web_delhi_colorful_sd"))&&r.push(N)}return{items:r}}}},
constructWarning_:function(a){return{text:_.Mo(a),type:"WARNING"}},
isPlaShelfEnabled_:function(a){if((this.get("adPlacements",a)||[]).length)return!0;a=this.get("playerAds",a)||[];return!(!a.length||!this.get("playerLegacyDesktopWatchAdsRenderer.playerAdParams.allowBelowThePlayerCompanion",a[0]))},
resetAutonavCanceledForNewPlayback_:function(){this.autonavCanceledSignal_=!1},
onThrottledScroll_:function(){var a=this;_.PA(this.hostElement,"yt-autonav-pause-scroll");this.setComments_();_.K("kevlar_watch_while")&&this.updateMiniplayerBarVisibility_();var z=this.getScrollTop()>0;this.gestures_&&(z?this.gestures_.detach():this.gestures_.attach());z!==this.showFullerscreenEdu_&&_.K("external_fullscreen_with_edu")&&this.fullscreen&&(this.showFullerscreenEdu_=z,_.jr(this).getPlayerPromise().then(function(I){I.updateFullerscreenEduButtonVisibility(a.getScrollTop()>0)}))},
onMastheadThrottledScroll:function(){_.PA(this.hostElement,"yt-watch-masthead-scroll",this.getScrollTop())},
onYtPageDataWillUpdate_:function(){this.preparePageReset_()},
preparePageReset_:function(){this.clearScheduledCommentJobs_()},
initComments_:function(){var a=this;this.commentsReady=!1;_.GW.cancelJob(this.setCommentsJobId_);this.setCommentsJobId_=_.b9(_.GW,function(){a.setComments_()},1E3)},
setComments_:function(){if(!_.K("kevlar_watch_flexy_comments_manager")&&!this.commentsReady){_.Xz("cmi");_.GW.cancelJob(this.setCommentsJobId_);var a=this.getPageContents(this.data);if(a&&a.length){a=_.C(a);for(var z=a.next();!z.done;z=a.next())if(z=z.value,this.get("itemSectionRenderer.sectionIdentifier",z)==="comment-item-section"){this.comments=z.itemSectionRenderer;this.canScheduleCommentJobs_=!0;break}}this.commentsReady=!0}},
commentsReadyChanged_:function(){this.commentsReady&&_.PA(this.hostElement,"yt-watch-comments-ready")},
clearScheduledCommentJobs_:function(){_.K("kevlar_cancel_scheduled_comment_jobs_on_navigate")&&(this.canScheduleCommentJobs_=!1)},
showMetadataPlaceholder_:function(){_.K("kevlar_metadata_reset_on_nav")&&this.hostElement.classList.remove("hide-skeleton")},
clearComments_:function(){this.doRemoveComments_();_.Xz("cmc")},
doRemoveComments_:function(){this.comments={};_.K("kevlar_watch_hide_comments_while_panel_open")&&(this.hideComments=!1)},
setPlayerAds_:function(){_.GW.cancelJob(this.clearPlayerAdsJobId_);this.playerAds=this.get("playerAds",this.playerData)},
clearPlayerAds_:function(){_.GW.cancelJob(this.clearPlayerAdsJobId_);this.playerAds=void 0},
onYtNavigate_:function(a,z){var I=_.H(z.endpoint,_.MZ);I&&(!(z=this.get("data.currentVideoEndpoint.watchEndpoint"))||I.videoId!==z.videoId||I.playlistId&&I.playlistId!==z.playlistId||I.index!==void 0&&I.index!==z.index||typeof I.startTimeSeconds!=="number"||(a.stopPropagation(),this.setScrollTop(0),_.jr(this).getPlayerPromise().then(function(J){var r=I.startTimeSeconds;J.seekTo(r);J.wakeUpControls();r<J.getDuration()&&J.playVideo()})))},
updatePlayerStartTime_:function(){var a=_.O1x();"t"in a&&(a=_.vja(a.t),this.player.seekTo(a,!0))},
updateTitleFromWatchNext:function(a){a=this.getPageContents(a);var z,I;(a=_.cd(a==null?void 0:(z=a[0])==null?void 0:(I=z.videoPrimaryInfoRenderer)==null?void 0:I.title))&&_.PA(this.hostElement,"yt-update-title",a)},
updateTitle_:function(a){a=this.get("videoDetails.title",a)||"";_.PA(this.hostElement,"yt-update-title",a)},
syncWithRemoteVideo_:function(a,z,I){if(this.active&&this.player){var J=this.player.getVideoData();if(J.video_id===I&&(I=J.list,_.K("polymer_enable_mdx_queue")&&I&&I.startsWith("RQ")&&(I=void 0),J.video_id!==a||I!=z)){var r;_.K("kevlar_player_watch_endpoint_navigation")?r=_.yiG(_.V6O(a,z)):r=this.buildWatchEndpoint_(a,z);_.PA(this.hostElement,"yt-navigate",{endpoint:r,isRemotePlayback:!0})}}},
buildWatchEndpoint_:function(a,z,I){return _.jx(a,z,I)},
initDclkstatus_:function(){_.i1x()},
attachWatchPageSkeleton_:function(){var a=document.querySelector("#watch-page-skeleton");if(a){var z=a.querySelector("#primary-info"),I=a.querySelector("#secondary-info"),J=a.querySelector("#related");z&&_.PK(this.hostElement).querySelector("#info-skeleton").appendChild(z);I&&_.PK(this.hostElement).querySelector("#meta-skeleton").appendChild(I);J&&(_.PK(this.hostElement).querySelector("#related-skeleton").appendChild(J),this.watchNextSkeletonEl_=J);_.fo(a)}},
handlePlayerUpdated_:function(){_.jr(this).focusOnPlayer()},
watchNextShownItemsAddedOrRemoved_:function(a,z){if((this.is!=="ytd-watch-grid"||!this.swatcherooDirectUseRichGrid)&&this.watchNextSkeletonEl_&&typeof z!=="undefined"){var I=this.watchNextSkeletonEl_.children,J=a&&a.indexSplices.length?a.indexSplices[0].index:0;a=Math.min(this.watchNextShownItems.length,I.length);z||(J=0,a=I.length);for(z=J;z<a;z++)I[z].classList.add("hidden")}},
onPlayerFullscreenChange_:function(a){_.K("external_fullscreen")||_.ZF(this.hostElement,"yt-player-fullscreen",[a.fullscreen])},
onFullscreenChange_:function(a){this.fullscreen=a;this.gestures_&&this.gestures_.update(this.fullscreen);var z=_.jr(this);z.getPlayerPromise().then(function(I){I.setFauxFullscreen(!!_.jE())});
this.updateFullBleedElementLocations();a&&(z.focusOnPlayer(),this.fullerscreenEduButtonShownThisPlayback_||(this.fullerscreenEduButtonShownThisPlayback_=!0,this.incrementFullerscreenEduButtonCount_("yt-fullerscreen-edu-button-shown-count")))},
computeShouldStampChat_:function(a,z){return!!this.get("data.contents.twoColumnWatchNextResults.conversationBar")&&!z},
computeIsDonationShelfCollapsed_:function(a){return a},
computeShouldShowMerchShelf:function(a,z){return z&&!!a},
computeResponseHasComments:function(a){var z,I,J,r,P;return!!(a==null?0:(z=a.contents)==null?0:(I=z.twoColumnWatchNextResults)==null?0:(J=I.results)==null?0:(r=J.results)==null?0:(P=r.contents)==null?0:P.some(function(N){var u;return(N==null?void 0:(u=N.itemSectionRenderer)==null?void 0:u.sectionIdentifier)==="comment-item-section"}))},
computeShowComments_:function(a,z,I,J){this.responseHasComments=this.computeResponseHasComments(this.data);return this.is==="ytd-watch-grid"&&J?!1:!!a&&!!Object.keys(a).length&&!z},
identity:_.T3,onWindowResized_:function(a){this.windowSize_=a;this.active&&(this.schedulePlayerSizeUpdate_(!0),this.schedulePanelMaxHeightUpdate_(),this.scheduleFullHeightPanelPositionUpdate());_.K("kevlar_watch_while")&&this.updateMiniplayerBarVisibility_()},
onPlayerPresentingVideoDataChange_:function(a){var z=this;a&&a.type!=="dataloaded"&&a.type!=="dataupdated"||_.jr(this).getPlayerPromise().then(function(I){var J=I.getPlayerState();J!==5&&J!==0&&(I=1/I.getVideoAspectRatio(),z.videoHeightToWidthRatio_!==I&&(z.videoHeightToWidthRatio_=I))})},
schedulePlayerSizeUpdate_:function(a){var z=this,I=_.K("kevlar_watch_while_v2")||_.K("web_watch_pip"),J=function(){if(z.watchMetadata){var r,P;(P=(r=z.watchMetadata).resize)==null||P.call(r)}_.jr(z).getPlayerPromise().then(function(N){if(_.K("kevlar_set_internal_player_size")){if(!I||!z.isMiniplayerActive()){var u=z.calculateCurrentPlayerSize_();N.setInternalSize(u.width,u.height)}}else N.setSize(NaN,NaN);_.K("kevlar_watch_while")&&z.updateWatchWhileScrollThreshold_()})};
a?J():_.hE(_.GW,J)},
secondaryColumnModulePresenceChanged_:function(){this.isAttached&&this.schedulePlayerSizeUpdate_()},
onYtShowSurvey_:function(a){this.set("data.survey",a.detail)},
onYtShowSurveyCommand_:function(a){this.set("data.survey",_.H(a,_.UeI).survey)},
onDownloadedVideoDeleted:function(a){var z=this,I,J;return _.t(function(r){if(r.nextAddress==1){if(!z.active||(I=z.playerData)==null||!I.offlineState||z.videoId!==a)return r.return();(J=z.player)==null||J.stopVideo();_.hq().navigatingAwayFromWatchDeletedVideo=!0;_.fw(_.cBO,z.hostElement);return r.yield(_.hq().navigationFinishPromise,2)}_.hq().navigatingAwayFromWatchDeletedVideo=!1;_.nu(r)})},
updateWatchWhileScrollThreshold_:function(){if(this.windowSize_){var a;this.theater?a=_.TO(.5625*this.windowSize_.width,480,this.windowSize_.height-185):a=this.calculateNormalPlayerSize_().height+24;this.watchWhileScrollThreshold_!==a&&(this.watchWhileScrollThreshold_=a,this.updateMiniplayerBarVisibility_())}},
updateMiniplayerBarVisibility_:function(){var a=_.PK(this.hostElement).querySelector("ytd-miniplayer-bar-renderer");if(this.windowSize_&&a){var z=this.windowSize_.height>=624,I=this.active?this.getScrollTop():0;!a.active&&z&&I>=this.watchWhileScrollThreshold_?(a.activate(this.getPlayer()),this.schedulePlayerSizeUpdate_()):a.active&&(!z||I<this.watchWhileScrollThreshold_&&!_.jE())&&(a.deactivate().appendTo(this.getPlayerContainer()),this.schedulePlayerSizeUpdate_())}},
defaultTwoColumnLayoutChanged:function(){if(this.swatcherooBinaryLayout&&this.is==="ytd-watch-grid"){var a=_.PK(this.hostElement).querySelector("#secondary-inner");if(a){var z=_.PK(this.hostElement).querySelector("#below"),I=_.PK(this.hostElement).querySelector("#secondary"),J=_.PK(this.hostElement).querySelector("#comments");J&&I&&z&&(this.defaultTwoColumnLayout?(a.appendChild(J),I.appendChild(a)):(z.appendChild(J),_.WC(z,a)))}}},
isTwoColumnsChanged_:function(a,z){if(a!==!0||z!==void 0)if(this.enableFullBleedSingleColumnDefaultPlayer&&this.updateFullBleedElementLocations(),this.is==="ytd-watch-grid"){if(!this.swatcherooBinaryLayout&&(a=_.PK(this.hostElement).querySelector("#secondary-inner"))){z=_.PK(this.hostElement).querySelector("#below");var I=_.PK(this.hostElement).querySelector("#secondary"),J=_.PK(this.hostElement).querySelector("#comments");J&&I&&z&&(this.isTwoColumns_?(a.appendChild(J),I.appendChild(a)):(z.appendChild(J),
_.WC(z,a)))}}else{a=!_.K("web_watch_enable_fs_squeezeback_panels")||!(this.fullscreen||this.iMaxTheaterMode&&this.theater);z=_.PK(this.hostElement).querySelector("#panels");var r=_.PK(this.hostElement).querySelector("#alerts");I=_.PK(this.hostElement).querySelector("#playlist");J=_.PK(this.hostElement).querySelector("#related");var P=_.PK(this.hostElement).querySelector("#donation-shelf"),N=_.PK(this.hostElement).querySelector("#comments");this.isTwoColumns_?(r=_.PK(this.hostElement).querySelector("#secondary-inner"),
a&&(r.appendChild(z),r.appendChild(I)),r.appendChild(P),r.appendChild(J)):(a&&(_.$B(z,r),_.$B(I,r)),_.$B(P,r),N&&_.$B(J,N));this.active&&(this.schedulePanelMaxHeightUpdate_(),this.scheduleFullHeightPanelPositionUpdate())}},
watchWhileWindowSizeSufficientChanged:function(){_.K("web_watch_theater_chat")&&this.updateChatLocation()},
updateChatLocation:function(){if(this.is!=="ytd-watch-grid"&&!_.K("web_watch_enable_fs_squeezeback_panels")&&_.K("web_watch_theater_chat")){var a=_.PK(this.hostElement).querySelector("#chat-container"),z=this.theater&&!this.fullscreen||_.K("web_watch_fullscreen_panels")&&this.fullscreen;this.watchWhileWindowSizeSufficient&&this.liveChatPresentAndExpanded&&z?(z=_.PK(this.hostElement).querySelector("#columns"),(a==null?void 0:a.parentElement)!==z&&z.append(a),this.fixedPanels=!0):(this.fixedPanels=
!1,z=_.PK(this.hostElement).querySelector("#playlist"),a&&z?_.XO(a,z):_.Xd(new _.Fn("Missing element when updating chat location",{"chatContainer defined":!!a,"playlist defined":!!z})));this.updatePageMediaQueries();this.schedulePlayerSizeUpdate_()}},
computeHasMetadata:function(a,z){return _.K("sw_metadata_vis_toggle_ks")?!0:!!a||!!z},
computeForceDarkPanelTheme:function(a){return _.K("web_watch_theater_chat_beside_player_dark")?!document.documentElement.hasAttribute("dark")&&a:!1},
safeUpdateStyles:function(a){try{_.uK(this.hostElement,a)}catch(z){_.Xd(z)}},
videoHeightToWidthRatioChanged_:function(a,z){z&&(this.safeUpdateStyles({"--ytd-watch-flexy-width-ratio":1,"--ytd-watch-flexy-height-ratio":this.videoHeightToWidthRatio_}),this.schedulePlayerSizeUpdate_(),this.schedulePanelMaxHeightUpdate_())},
onYtInitialVideoAspectRatio_:function(a){this.videoHeightToWidthRatio_=1/a},
computeIsVerticalVideo_:function(a){return a>=1},
computeIsFourThreeToSixteenNineVideo_:function(a){return a<=.7501&&a>=.5624},
computeIsExtraWideVideo_:function(a){return a<.5624},
onYtUserActivity_:function(){this.youThereManager_.onUserActivity()},
handleSignalActionPausePlayer_:function(){this.active&&_.jr(this).pause()},
handleSignalActionPlayPlayer_:function(){this.active&&_.jr(this).play()},
handleSignalActionAcknowledgeYouThere_:function(){_.k9x(this.youThereManager_)},
incrementFullerscreenEduButtonCount_:function(a){var z=_.nN(a)||0;_.s4(a,z+1,31536E3);this.updateFullerscreenEduButtonSubtleModeState_()},
updateFullerscreenEduButtonSubtleModeState_:function(){var a=_.nN("yt-fullerscreen-edu-button-click-count")||0,z=_.nN("yt-fullerscreen-edu-button-shown-count")||0,I=_.Ib("external_fullscreen_button_shown_threshold"),J=a>=_.Ib("external_fullscreen_button_click_threshold")||z>=I;_.jr(this).getPlayerPromise().then(function(r){r.updateFullerscreenEduButtonSubtleModeState(J)})},
resetFullerscreenEduButtonForNewPlayback_:function(){this.fullerscreenEduButtonShownThisPlayback_=this.fullerscreenEduButtonClickedThisPlayback_=!1},
computePlaylistData_:function(a,z){return z},
onYtPlaylistDataUpdated_:function(){this.externalPlaylistData_=_.ab().resolve(_.wR).getPlaylistData()||{}},
scheduleFullHeightPanelPositionUpdate:function(){var a=this;this.is==="ytd-watch-grid"&&(this.panelExpanded||this.playlist)&&(this.fullHeightPanelPositionUpdateJobId&&_.GW.cancelJob(this.fullHeightPanelPositionUpdateJobId),this.fullHeightPanelPositionUpdateJobId=_.GW.addLowPriorityJob(function(){a.fullHeightPanelPositionUpdateJobId=0;var z=_.PK(a.hostElement).querySelector("#secondary"),I=_.PK(a.hostElement).querySelector("#fixed-secondary");z=z.getBoundingClientRect();var J=z.width;a.swatcherooSqueezeback&&
(J+=_.UI);if(a.swatcherooSqueezeback){var r=_.PK(a.hostElement).querySelector("#squeezeback-constraining-container");r.style.width=J+"px";r.style.flex="0 0 "+J+"px"}I.style.width=J+"px";I.style.left=z.left+"px"}))},
schedulePanelMaxHeightUpdate_:function(){var a=this;this.is!=="ytd-watch-grid"&&(this.panelMaxHeightUpdateJob_&&_.GW.cancelJob(this.panelMaxHeightUpdateJob_),this.panelMaxHeightUpdateJob_=_.GW.addLowPriorityJob(function(){a.panelMaxHeightUpdateJob_=0;var z;!a.isTwoColumns_||a.theater||a.fullscreen?z=460:z=a.calculateNormalPlayerSize_().height;var I=z+"px";_.K("live_chat_taller_height")&&!a.theater&&(I="calc(100vh - var(--ytd-toolbar-height) -\n                        (var(--ytd-margin-6x) * 2))");
_.K("live_chat_medium_height")&&!a.theater&&(I="calc(100vh - var(--ytd-toolbar-height) - 144px)");_.K("live_chat_scaled_height")&&!a.theater&&(I="calc(100vh - var(--ytd-toolbar-height) - 238px)");a.safeUpdateStyles({"--ytd-watch-flexy-panel-max-height":z+"px","--ytd-watch-flexy-chat-max-height":I,"--ytd-watch-flexy-structured-description-max-height":z+"px","--ytd-watch-flexy-comments-panel-max-height":z+"px","--ytd-comments-engagement-panel-content-height":z+"px"})}))},
onYtShowEngagementPanelScrimAction_:function(a){this.engagementPanelScrimOnClickCommands_=this.get("showEngagementPanelScrimAction.onClickCommands",a)||null;this.showEngagementPanelScrim_=!0},
onYtHideEngagementPanelScrimAction_:function(){this.engagementPanelScrimOnClickCommands_=null;this.showEngagementPanelScrim_=!1},
onEngagementPanelScrimClick_:function(){this.engagementPanelScrimOnClickCommands_&&_.tR(this.hostElement,this.engagementPanelScrimOnClickCommands_,this.hostElement)},
showEngagementPanelScrimChanged_:function(a){var z=_.PK(this.hostElement).querySelector("#engagement-panel-scrim");a?z.addEventListener("tap",_.BK(this,this.onEngagementPanelScrimClick_)):z.removeEventListener("tap",_.BK(this,this.onEngagementPanelScrimClick_))},
onGetCurrentVideoIdAction_:function(){if(this.active)return this.videoId},
onYtScrollToWatchElement_:function(a){if(this.hostElement.contains(a)&&!this.scrollToAnimation_.isAnimating()){var z=a.offsetTop-24;a=a.offsetTop+a.offsetHeight+24;var I=this.getPageScrollingElement(),J=this.getScrollTop(),r=J+I.clientHeight-56;if(z<J+56)z-=56;else if(a>r)z=a-I.clientHeight;else return;this.scrollToAnimation_.start(this.getScrollTop(),Math.max(0,z),500)}},
onYtSignalActionScrollToComments:function(){var a=this.hostElement.querySelector("#comments");if(a&&!this.scrollToAnimation_.isAnimating()){a=a.offsetTop-56-24;if(_.K("kevlar_comment_teaser_scroll_to_midpoint")&&(a-=_.Az().height/3,a<this.getScrollTop()))return;this.scrollToAnimation_.start(this.getScrollTop(),Math.max(0,a),500)}},
onYtEngagementPanelVisibleChanged:function(a,z,I){if(this.active&&this.trackEngagementPanelVisibility&&!_.W5x.includes(I)){if(z==="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED"){if(this.swatcherooBinaryLayout||this.squeezeback){this.onSetPlaylistCollapsed(!0);_.Ct(this.hostElement,"yt-set-live-chat-collapsed-state-action",[{setLiveChatCollapsedStateAction:{collapsed:!0}}]);var J=_.ab().resolve(_.X3);this.visiblePanelIdentifiers_.forEach(function(r){r!==I&&J.hidePanel(r)})}this.visiblePanelIdentifiers_.add(I)}z!==
"ENGAGEMENT_PANEL_VISIBILITY_COLLAPSED"&&z!=="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"||this.visiblePanelIdentifiers_.delete(I);
this.engagementPanelExpanded=this.visiblePanelIdentifiers_.size>0}},
computeLegacyMetadataClass:function(a){return a?"":"watch-active-metadata"},
computeNewMetadataClass:function(a){return a?"watch-active-metadata":""},
computeIsSingleColumn:function(a,z){return z&&!a},
computeFullBleedPlayer:function(a,z,I){return _.K("web_watch_error_screen_fix")?_.K("external_fullscreen")&&a||z||this.enableFullBleedSingleColumnDefaultPlayer&&I:a||z||this.enableFullBleedSingleColumnDefaultPlayer&&I},
computeDefaultLayout:function(a){return!a},
computeDefaultTwoColumnLayout:function(a,z){return!a&&z},
updatePanelsLocation:function(){if(_.K("web_watch_enable_fs_squeezeback_panels")){var a=_.PK(this.hostElement).querySelector("#below"),z=_.PK(this.hostElement).querySelector("#panels"),I=_.PK(this.hostElement).querySelector("#playlist"),J=_.PK(this.hostElement).querySelector("#chat-container"),r=_.PK(this.hostElement).querySelector("#panels-full-bleed-container"),P=_.PK(this.hostElement).querySelector("#secondary-inner");if(a&&z&&I&&J&&r&&P){var N=this.fullscreen||this.theater&&this.iMaxTheaterMode,
u=this.theater&&!this.iMaxTheaterMode&&this.liveChatPresentAndExpanded;this.fixedPanels=!1;N?(r.appendChild(z),r.appendChild(J),r.appendChild(I)):this.isTwoColumns_?(u?(a=_.PK(this.hostElement).querySelector("#columns"),(J==null?void 0:J.parentElement)!==a&&a.append(J),this.fixedPanels=!0,this.updatePageMediaQueries(),this.schedulePlayerSizeUpdate_()):_.WC(P,J),_.WC(P,z),_.WC(P,I)):(a.appendChild(z),a.appendChild(J),a.appendChild(I))}}},
swatcherooUpdatePanelsLocation:function(a,z,I,J,r,P){if(this.is==="ytd-watch-grid"){z=a&&!z;this.swatcherooSplitScroll&&(z?(this.addSplitScrollMouseTrap("#secondary-inner"),this.addSplitScrollMouseTrap("#fixed-secondary")):(this.removeSplitScrollMouseTrap("#secondary-inner"),this.removeSplitScrollMouseTrap("#fixed-secondary")));I=_.PK(this.hostElement).querySelector("#panels");var N=_.PK(this.hostElement).querySelector("#playlist"),u=_.PK(this.hostElement).querySelector("#fixed-secondary"),E=_.PK(this.hostElement).querySelector("#fixed-below"),
O=_.PK(this.hostElement).querySelector("ytd-watch-metadata:not([swatcheroo-secondary-below-metadata])"),f=_.PK(this.hostElement).querySelector("#chat-container");P&&(a?u.appendChild(I):E.appendChild(I));r?a?u.appendChild(f):E.appendChild(f):_.XO(f,O);J?a?u.appendChild(N):E.appendChild(N):_.XO(N,O);this.swatcherooSplitScroll&&(a=_.PK(this.hostElement).querySelector("#secondary"),J=_.PK(this.hostElement).querySelector("#columns"),r=_.PK(this.hostElement).querySelector("#fixed-columns-secondary"),z?
r.appendChild(a):J.appendChild(a))}},
computeMetadataSkinnyMode:function(a,z,I){return this.is!=="ytd-watch-grid"?!1:a?I:z},
computeWatchWhilePanelsActive:function(a,z){return a||z},
computeNoBorderOnChat:function(a){return _.K("web_watch_theater_chat_no_border")&&a},
computeLiveChatPresentAndExpanded:function(a,z){return a&&!z},
computePanelExpanded:function(a,z,I){return a||z||I},
computeSqueezeback:function(a,z,I,J){if(_.K("web_watch_enable_fs_squeezeback_panels")){var r=this.iMaxTheaterMode&&this.theater;return(a||z||I)&&(J||r)}},
computeSwatcherooSqueezeback:function(a,z,I){return this.is!=="ytd-watch-grid"||_.K("ww_squeezeback_killswitch")?!1:a&&z&&I},
swatcherooSqueezebackChanged:function(){this.is==="ytd-watch-grid"&&this.schedulePlayerSizeUpdate_()},
squeezebackChanged:function(){this.schedulePlayerSizeUpdate_()},
onChangeMarkersVisibility:function(a){_.jr(this).getPlayerPromise().then(function(z){var I;(I=z.changeMarkerVisibility)==null||I.call(z,_.H(a,_.pz).isVisible||!1,_.H(a,_.pz).entityKeys||[],_.H(a,_.pz).visibilityRestrictionMode||void 0)})},
onYtChatCollapsedChanged:function(a){this.liveChatCollapsed=a.detail;_.qo().dispatch(_.dej(a.detail));if(!this.liveChatCollapsed&&this.squeezeback){var z=_.ab().resolve(_.X3);this.visiblePanelIdentifiers_.forEach(function(I){z.hidePanel(I)})}},
onSetPlaylistCollapsed:function(a){_.K("delhi_web_player_use_external_playlist_panel")&&(this.playlistPanelExpanded=this.playlist&&!a)},
provideRenderingData:function(a,z){switch(a){case "SINGLE_COLUMN_CONTENTS":this.singleColumnValue=z;break;case "PRIMARY_INFO":_.K("kevlar_watch_metadata_refresh_no_old_primary_data")||(this.info=z);this.videoPrimaryInfoRendererValue=z==null?void 0:z.videoPrimaryInfoRenderer;break;case "SECONDARY_INFO":_.K("kevlar_watch_metadata_refresh_no_old_secondary_data")||(this.meta=z);this.videoSecondaryInfoRendererValue=z==null?void 0:z.videoSecondaryInfoRenderer;break;case "COMMENTS_ENTRY_POINT_HEADER":this.commentsEntryPointHeaderRendererValue=
z;break;case "CLARIFICATION":this.clarifyBoxValue=z;break;case "LIVE_CHAT":this.conversationBar=z;break;case "INFO_PANEL_BELOW_METADATA":this.infoPanelBelowMetadata=z;break;case "PLAYLIST":this.externalPlaylistData_=z!=null?z:{};break;case "MERCH_SHELF":this.merchShelfValue=z==null?void 0:z.merchandiseShelfRenderer;break;case "MERCH_SHELF_IN_SD":this.merchShelfInSd=z;break;case "TICKET_SHELF":this.ticket=z;break;case "OFFER_MODULE":this.offerModule=z;break;case "LIMITED_STATE":this.limitedStateValue=
z;break;case "DONATION_SHELF":this.donation=z;break;case "ALERTS":this.alertsValue=z;break;case "COMMENTS":this.comments=z;break;case "WATCH_NEXT_SECONDARY_RESULTS":this.watchNextSecondaryResults=z;break;case "ENGAGEMENT_PANELS":this.engagementPanels=z;break;case "INLINE_ENGAGEMENT_PANELS":this.inlineEngagementPanels=z;break;case "RICH_GRID_RENDERER":this.richGridRendererData=z;break;case "EXPANDABLE_METADATA":this.expandableMetadata=z;break;case "VIDEO_METADATA_CAROUSEL":this.videoMetadataCarousel=
z;break;case "SHOPPING_TIMELY_SHELF":this.shoppingTimelyShelfValue=z}},
toggleCinematicsActive:function(a){this.cinematicsActive=a},
isMiniplayerActive:function(){return _.ab().resolve(_.UJ).isMiniplayerActive()}}];
}catch(e){_._DumpException(e)}
try{
var vve;_.xrZ=function(a){if(!(0,_.cm3)(a))throw Error("K``"+String(a));};
_.G$V=function(a){return a.findIndex(function(z){return vve.indexOf(z.tagName)>-1})>-1};
_.$ri=function(){var a=_.ab().resolve(_.Qb);_.Wo0(["requestFullscreen","webkitRequestFullscreen","mozRequestFullScreen","msRequestFullscreen"],document.body)!=null&&(a.isFullscreenEnabled()?_.zb(document.documentElement):_.Nn1(document.documentElement))};
vve=["INPUT".toString(),"SELECT".toString(),"TEXTAREA".toString(),"EMBED".toString(),"YTD-COMMENTBOX","YT-LIVE-CHAT-RENDERER","YTD-PDG-BUY-FLOW-RENDERER"];_.fC=new Map;_.fC.set(32,59972);_.fC.set(27,50765);_.fC.set(70,60102);_.fC.set(76,60221);_.fC.set(77,60222);_.fC.set(74,60223);_.fC.set(84,60224);_.fC.set(38,61941);_.fC.set(40,61942);_.fC.set(73,62521);_.fC.set(67,62522);_.fC.set(80,63390);_.fC.set(78,63397);_.fC.set(75,59972);_.fC.set(188,63385);_.fC.set(190,63384);_.fC.set(36,63387);
_.fC.set(35,63386);_.fC.set(37,63388);_.fC.set(39,63389);_.fC.set(79,63423);_.fC.set(87,63424);_.fC.set(107,63426);_.fC.set(109,63425);_.fC.set(65,63428);_.fC.set(83,63430);_.fC.set(68,63429);_.fC.set(221,63431);_.fC.set(219,63432);_.fC.set(97,63439);_.fC.set(98,63440);_.fC.set(99,63441);_.fC.set(100,63442);_.fC.set(101,63443);_.fC.set(102,63444);_.fC.set(103,63445);_.fC.set(104,63446);_.fC.set(105,63447);_.Aa=new Map;_.Aa.set(80,63390);_.Aa.set(78,63397);_.Aa.set(188,63400);_.Aa.set(190,63401);
_.Aa.set(191,60765);_.Aa.set(13,247917);_.sl=new Map;_.nC=new Map;
}catch(e){_._DumpException(e)}
try{
var KA0,bW4,h04,VJ0;_.fTZ=function(a){return a.ui.guideIsVisibleButNotPersistent};
_.A2E=function(a){return a.ui.tabGesturesIsActive};
_.sh4=function(){var a=_.rM("service_worker_scope");try{return navigator.serviceWorker.getRegistration(a)}catch(z){return Promise.reject(z)}};
_.nXZ=function(a){return!(!a||!a.pushManager)};
KA0=function(){return _.sh4().then(_.nXZ).catch(function(){return!1})};
_.FAG=function(){return navigator.serviceWorker&&navigator.serviceWorker.getRegistration&&window.Notification?KA0():Promise.resolve(!1)};
_.HWZ=function(){return window.MediaSource&&window.MediaSource.isTypeSupported&&window.MediaSource.isTypeSupported('video/mp4; codecs="av01.0.05M.08"')};
bW4=function(){var a,z,I;return _.t(function(J){switch(J.nextAddress){case 1:return J.yield(_.Xo.getInstance(),2);case 2:a=J.yieldResult;if(!a){z=void 0;J.jumpTo(3);break}return J.yield(a.get("lmqf"),4);case 4:z=J.yieldResult;case 3:switch((I=z)||(I="SD"),I){case "HD":return J.return("SETTINGS_OPTIONS_ID_TYPE_DOWNLOAD_QUALITY_HD");case "HD_1080":return J.return("SETTINGS_OPTIONS_ID_TYPE_DOWNLOAD_QUALITY_HD_1080");case "SD":return J.return("SETTINGS_OPTIONS_ID_TYPE_DOWNLOAD_QUALITY_SD");case "LD":return J.return("SETTINGS_OPTIONS_ID_TYPE_DOWNLOAD_QUALITY_LD");
default:return J.return("SETTINGS_OPTIONS_ID_TYPE_DOWNLOAD_QUALITY_UNKNOWN")}}})};
h04=function(a){var z,I,J;return _.t(function(r){if(r.nextAddress==1){if(window.localStorage&&window.localStorage["yt-player-av1-pref"]&&!_.K("disable_av1_setting")){var P=window.localStorage["yt-player-av1-pref"];P=P==="480"?"SETTINGS_OPTIONS_ID_TYPE_AV1_SD":P==="8192"?"SETTINGS_OPTIONS_ID_TYPE_AV1_ALWAYS":"SETTINGS_OPTIONS_ID_TYPE_UNKNOWN"}else P="SETTINGS_OPTIONS_ID_TYPE_AV1_AUTO";if(z=a===P)return r.jumpTo(2);J=I=a;return r.yield(bW4(),3)}r.nextAddress!=2&&(z=J===r.yieldResult);return r.return(z)})};var QhG;var SfV=_.iY.IronButtonState,iWz=(0,_.Q1)(HTMLElement);
_.vK({_template:function(){if(QhG!==void 0)return QhG;var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:tp-yt-paper-dropdown-menu--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,third_party.javascript.youtube_components.tp_yt_paper_dropdown_menu.tp.yt.paper.dropdown.menu.css.js--\x3e<tp-yt-paper-menu-button id="menuButton" vertical-align="[[verticalAlign]]" horizontal-align="[[horizontalAlign]]" dynamic-align="[[dynamicAlign]]" vertical-offset="[[_computeMenuVerticalOffset(noLabelFloat, verticalOffset)]]" disabled="[[disabled]]" no-animations="[[noAnimations]]" on-iron-select="_onIronSelect" on-iron-deselect="_onIronDeselect" opened="{{opened}}" close-on-activate="" allow-outside-scroll="[[allowOutsideScroll]]" restore-focus-on-close="[[restoreFocusOnClose]]" expand-sizing-target-for-scrollbars="[[expandSizingTargetForScrollbars]]" 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');a.content.insertBefore(_.w().content.cloneNode(!0),
a.content.firstChild);var z=a.content,I=z.insertBefore;VJ0===void 0&&(VJ0=document.createElement("template"));var J=VJ0;I.call(z,J.content.cloneNode(!0),a.content.firstChild);return QhG=a},
is:"tp-yt-paper-dropdown-menu",hostAttributes:{"style-target":"host"},behaviors:[SfV,_.Q_,_.xE,_.$E],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(a){var z=(0,_.sc)(this);z.attachShadow({mode:"open",delegatesFocus:!0,
shadyUpgradeFragment:a});z.shadowRoot.appendChild(a);return iWz.prototype._attachDom.call(this,a)},
focus:function(){this.$.input._focusableElement.focus()},
attached:function(){var a=this.contentElement;a&&a.selectedItem&&this._setSelectedItem(a.selectedItem)},
get contentElement(){for(var a=_.Q$(this.$.content).getDistributedNodes(),z=0,I=a.length;z<I;z++)if(a[z].nodeType===Node.ELEMENT_NODE)return a[z]},open:function(){this.$.menuButton.open()},
close:function(){this.$.menuButton.close()},
_onIronSelect:function(a){this._setSelectedItem(a.detail.item)},
_onIronDeselect:function(){this._setSelectedItem(null)},
_onTap:function(a){_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(a)===this&&this.open()},
_selectedItemChanged:function(a){var z="";a?z=a.label||a.getAttribute("label")||a.textContent.trim():z="";this.value=z;this._setSelectedItemLabel(z)},
_computeMenuVerticalOffset:function(a,z){return z?z:a?-4:8},
_getValidity:function(){return this.disabled||!this.required||this.required&&!!this.value},
_openedChanged:function(){var a=this.opened?"true":"false",z=this.contentElement;z&&z.setAttribute("aria-expanded",a)}});_.Cr=new _.jv("navigateAction");var xI4=new _.jv("formRenderer");var Nd=function(){var a=_.nM.apply(this,arguments)||this;a.showInput=!1;return a};
_.b(Nd,_.nM);_.Z=Nd.prototype;_.Z.detached=function(){this.showInput&&window.removeEventListener("click",_.BK(this,this.closeOnOutsideClick_))};
_.Z.stopPropagation_=function(a){this.showInput&&a.stopPropagation()};
_.Z.closeOnOutsideClick_=function(a){this.closeOnOutsideClickCondition(a)&&(this.showInput=!1,window.removeEventListener("click",_.BK(this,this.closeOnOutsideClick_)),this.closeOnOutsideClickHandler())};
_.Z.closeOnOutsideClickCondition=function(){return!0};
_.Z.closeOnOutsideClickHandler=function(){};
_.Z.openOnClick_=function(){this.showInput=!0;window.addEventListener("click",_.BK(this,this.closeOnOutsideClick_));this.openOnClickHandler()};
_.Z.openOnClickHandler=function(){};
_.Z.showInputChanged=function(){};
_.Z.setShowInput=function(a){this.showInput=a};
Nd.prototype.setShowInput=Nd.prototype.setShowInput;Nd.prototype.showInputChanged=Nd.prototype.showInputChanged;Nd.prototype.openOnClickHandler=Nd.prototype.openOnClickHandler;Nd.prototype.openOnClick_=Nd.prototype.openOnClick_;Nd.prototype.closeOnOutsideClickHandler=Nd.prototype.closeOnOutsideClickHandler;Nd.prototype.closeOnOutsideClickCondition=Nd.prototype.closeOnOutsideClickCondition;Nd.prototype.closeOnOutsideClick_=Nd.prototype.closeOnOutsideClick_;Nd.prototype.stopPropagation_=Nd.prototype.stopPropagation_;
_.L([_.x({reflectToAttribute:!0}),_.p("design:type",Object)],Nd.prototype,"showInput",void 0);_.L([_.gz("click"),_.gz("keydown"),_.p("design:type",Function),_.p("design:paramtypes",[Event]),_.p("design:returntype")],Nd.prototype,"stopPropagation_",null);_.L([_.O8("showInput"),_.p("design:type",Function),_.p("design:paramtypes",[Boolean]),_.p("design:returntype")],Nd.prototype,"showInputChanged",null);_.L([_.KM()],Nd);_.vXV=[Nd.prototype];var GeZ;var $Ii;var t_=function(){return _.G.apply(this,arguments)||this};
_.b(t_,_.G);_.Z=t_.prototype;_.Z.computePreselectedOption=function(a,z){return z===this.itemSelected_?a:void 0};
_.Z.dataChanged_=function(){var a=this;this.preselectedSubreason=this.itemSelected_=-1;var z;(z=this.data)!=null&&z.key&&_.Yv(this,function(){var I,J=Number((I=a.data)==null?void 0:I.key);!Number.isNaN(J)&&(a.itemSelected_=J,I=(I=(a.data.items||[])[J])&&I.optionSelectableItemRenderer&&I.optionSelectableItemRenderer.preselectedIndex)&&(a.preselectedSubreason=I)})};
_.Z.isSubReasonHidden_=function(a,z){return a!=z};
_.Z.onTopItemSelected_=function(a,z){for(var I=_.PK(this.hostElement).querySelectorAll("tp-yt-paper-listbox"),J=0,r=I.length;J<r;J++)I[J].select(0);_.ZF(this.hostElement,"yt-report-form-update",[z.item.value]);a.stopPropagation()};
_.Z.onItemSelected_=function(a,z){_.ZF(this.hostElement,"yt-report-form-update",[z.item.value]);a.stopPropagation()};
_.Z.getItem_=function(a){return a.serviceItem?a.serviceItem:a.navigationItem?a.navigationItem:a.optionSelectableItemRenderer?a.optionSelectableItemRenderer:null};
_.Z.computeText_=function(a){return(a=this.getItem_(a))?this.ytRendererBehavior.getSimpleString(a.text):null};
_.Z.validate=function(){return this.itemSelected_!==-1};
_.Z.computeAriaLabel_=function(a){var z=_.cd(a.text);(a=a.accessibility&&a.accessibility.accessibilityData&&a.accessibility.accessibilityData.label)&&(z+=". "+a);return z};
_.Z.computeItemSelected_=function(a){return a};
_.Z.preventSelection_=function(a){a.stopPropagation();this.tooltipTapped=!0};
_.Z.onPaperRippleTransitionEnd_=function(){this.tooltipTapped=!1};
_.Z.updateItemSelectedFromBinding=function(a){this.itemSelected_=a.detail.value};
_.Z.save=function(){var a;this.validate()&&(a=this.data)!=null&&a.items&&(a=this.data.items[this.itemSelected_],a!=null&&a.optionSelectableItemRenderer&&(this.ytComponentBehavior.resolveCommand(a.optionSelectableItemRenderer.submitEndpoint)||_.N$(this.hostElement,[a.optionSelectableItemRenderer.submitEndpoint])))};
t_.prototype.onPaperRippleTransitionEnd_=t_.prototype.onPaperRippleTransitionEnd_;t_.prototype.dataChanged_=t_.prototype.dataChanged_;_.L([_.Q(_.Ms.YtComponentBehavior),_.p("design:type",Object)],t_.prototype,"ytComponentBehavior",void 0);_.L([_.Q(_.k.YtRendererBehavior),_.p("design:type",Object)],t_.prototype,"ytRendererBehavior",void 0);_.L([_.x(),_.p("design:type",Object)],t_.prototype,"data",void 0);_.L([_.x({value:-1}),_.p("design:type",Number)],t_.prototype,"itemSelected_",void 0);
_.L([_.x({computed:"computeItemSelected_(itemSelected_)"}),_.p("design:type",Number)],t_.prototype,"value",void 0);_.L([_.x({value:!1}),_.p("design:type",Boolean)],t_.prototype,"restoreFocusOnClose",void 0);_.L([_.x({reflectToAttribute:!0,value:!1}),_.p("design:type",Boolean)],t_.prototype,"tooltipTapped",void 0);_.L([_.x({value:-1}),_.p("design:type",Number)],t_.prototype,"preselectedSubreason",void 0);
_.L([_.O8("data"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],t_.prototype,"dataChanged_",null);_.L([_.gz("transitionend"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],t_.prototype,"onPaperRippleTransitionEnd_",null);_.L([_.dz({is:"yt-options-renderer",disableElementRegistration:!0})],t_);
_.D(t_,"yt-options-renderer",function(){if($Ii===void 0){var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-options-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.menus.yt_options_renderer.yt.options.renderer.css.js--\x3e<div id="options-select" class="style-scope yt-options-renderer">\n  <tp-yt-paper-radio-group id="yt-options-renderer-options" selected="[[itemSelected_]]" on-iron-select="onTopItemSelected_" on-selected-changed="updateItemSelectedFromBinding" class="style-scope yt-options-renderer">\n    <template is="dom-repeat" items="[[data.items]]" class="style-scope yt-options-renderer">\n      <tp-yt-paper-radio-button class="radio style-scope yt-options-renderer" aria-label$="[[computeAriaLabel_(item.optionSelectableItemRenderer)]]" name$="[[index]]" value="[[item.optionSelectableItemRenderer]]">\n        <div class="content style-scope yt-options-renderer">\n          <div class="text style-scope yt-options-renderer">\n            <yt-formatted-string text="[[item.optionSelectableItemRenderer.text]]" class="style-scope yt-options-renderer">\n            </yt-formatted-string>\n            <yt-formatted-string class="subtext style-scope yt-options-renderer" hidden="[[!item.optionSelectableItemRenderer.subtext]]" text="[[item.optionSelectableItemRenderer.subtext]]">\n            </yt-formatted-string>\n          </div>\n          <template is="dom-if" if="[[item.optionSelectableItemRenderer.accessibility.accessibilityData.label]]" class="style-scope yt-options-renderer">\n            <div class="info-container style-scope yt-options-renderer" on-tap="preventSelection_">\n              <yt-icon icon="yt-icons:help_outline" size="16" class="style-scope yt-options-renderer"></yt-icon>\n              <tp-yt-paper-tooltip animation-delay="0" class="style-scope yt-options-renderer">\n                [[item.optionSelectableItemRenderer.accessibility.accessibilityData.label]]\n              </tp-yt-paper-tooltip>\n            </div>\n          </template>\n        </div>\n      </tp-yt-paper-radio-button>\n      <template is="dom-if" if="[[item.optionSelectableItemRenderer.subOptions]]" class="style-scope yt-options-renderer">\n        <tp-yt-paper-dropdown-menu aria-label$="[[item.optionSelectableItemRenderer.subOptionsAccessibility.label]]" hidden="[[isSubReasonHidden_(index, itemSelected_)]]" no-label-float="" restore-focus-on-close="[[restoreFocusOnClose]]" on-iron-select="onItemSelected_" class="style-scope yt-options-renderer">\n          <tp-yt-paper-listbox class="dropdown-content style-scope yt-options-renderer" slot="dropdown-content" selected="[[computePreselectedOption(preselectedSubreason, index)]]">\n            <template is="dom-repeat" items="[[item.optionSelectableItemRenderer.subOptions]]" as="subOption" class="style-scope yt-options-renderer">\n              <tp-yt-paper-item value="[[getItem_(subOption)]]" class="style-scope yt-options-renderer">\n                [[computeText_(subOption)]]\n              </tp-yt-paper-item>\n            </template>\n         </tp-yt-paper-listbox>\n        </tp-yt-paper-dropdown-menu>\n      </template>\n    </template>\n  </tp-yt-paper-radio-group>\n</div>\n');a.content.insertBefore(_.w().content.cloneNode(!0),
a.content.firstChild);var z=a.content,I=z.insertBefore;GeZ===void 0&&(GeZ=document.createElement("template"));var J=GeZ;I.call(z,J.content.cloneNode(!0),a.content.firstChild);$Ii=a}a=$Ii;return a},{mode:2});var XgM;var T14;var dI0;var WAY;var oXM;var UI4;var ui=function(){return _.G.apply(this,arguments)||this};
_.b(ui,_.G);ui.prototype.onDataChanged=function(){if(this.thumbnail)this.thumbnail.onShow()};
ui.prototype.onFocus=function(){getComputedStyle(this.hostElement).getPropertyValue("pointer-events")==="none"?this.hostElement.setAttribute("aria-disabled","true"):this.hostElement.removeAttribute("aria-disabled")};
ui.prototype.onTap=function(a){if(this.hostElement.classList.contains("selected")||_.ZF(this.hostElement,"yt-share-panel-can-select-contact-action")[0])a&&a.detail&&(a.detail.x||a.detail.y)&&_.PK(this.hostElement).querySelector("#target").blur(),(a=this.hostElement.classList.toggle("selected"))?this.hostElement.setAttribute("aria-checked","true"):this.hostElement.removeAttribute("aria-checked"),a={name:this.componentTitle,id:this.data.contactId,isGroup:!1,isSuggested:!1,serialization:a?this.data.serializedContactInvitee:
null,undoFn:this.onTap.bind(this)},_.ZF(this.hostElement,"yt-share-panel-select-contact-action",[a])};
_.L([_.Q(_.k.YtRendererBehavior),_.p("design:type",Object)],ui.prototype,"ytRendererBehavior",void 0);_.L([_.x({observer:"onDataChanged"}),_.p("design:type",Object)],ui.prototype,"data",void 0);_.L([_.x({reflectToAttribute:!0,computed:"getSimpleString(data.name)"}),_.p("design:type",String)],ui.prototype,"componentTitle",void 0);_.L([_.A3("#thumbnail"),_.p("design:type",Object)],ui.prototype,"thumbnail",void 0);_.L([_.dz({is:"yt-enrolled-contact-renderer",disableElementRegistration:!0})],ui);
_.D(ui,"yt-enrolled-contact-renderer",function(){if(UI4===void 0){var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-enrolled-contact-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.sharing.yt_enrolled_contact_renderer.yt.enrolled.contact.renderer.css.js--\x3e<button id="target" on-focus="onFocus" on-tap="onTap" class="style-scope yt-enrolled-contact-renderer">\n  <yt-img-shadow id="thumbnail" thumbnail="[[data.thumbnail]]" class="style-scope yt-enrolled-contact-renderer"></yt-img-shadow>\n  <div id="selection-highlight" class="style-scope yt-enrolled-contact-renderer"></div>\n  <div id="name" class="style-scope yt-enrolled-contact-renderer">[[componentTitle]]</div>\n</button>\n');
a.content.insertBefore(_.w().content.cloneNode(!0),a.content.firstChild);var z=a.content,I=z.insertBefore;oXM===void 0&&(oXM=document.createElement("template"));var J=oXM;I.call(z,J.content.cloneNode(!0),a.content.firstChild);UI4=a}a=UI4;return a},{mode:2});var DIE;var R00;var ED=function(){return _.G.apply(this,arguments)||this};
_.b(ED,_.G);ED.prototype.onDataChanged=function(){if(this.thumbnail)this.thumbnail.polymerController.onShow_()};
ED.prototype.onFocus=function(){getComputedStyle(this.hostElement).getPropertyValue("pointer-events")==="none"?this.hostElement.setAttribute("aria-disabled","true"):this.hostElement.removeAttribute("aria-disabled")};
ED.prototype.onTap=function(a){if(this.hostElement.classList.contains("selected")||_.ZF(this.hostElement,"yt-share-panel-can-select-contact-action")[0])a&&a.detail&&(a.detail.x||a.detail.y)&&_.PK(this.hostElement).querySelector("#target").blur(),(a=this.hostElement.classList.toggle("selected"))?this.hostElement.setAttribute("aria-checked","true"):this.hostElement.removeAttribute("aria-checked"),a={name:this.componentTitle,id:this.data.contactId,isGroup:!1,isSuggested:!0,serialization:a?this.data.serializedSuggestedContact:
null,undoFn:this.onTap.bind(this)},_.ZF(this.hostElement,"yt-share-panel-select-contact-action",[a])};
_.L([_.Q(_.k.YtRendererBehavior),_.p("design:type",Object)],ED.prototype,"ytRendererBehavior",void 0);_.L([_.x({observer:"onDataChanged"}),_.p("design:type",Object)],ED.prototype,"data",void 0);_.L([_.x({reflectToAttribute:!0,computed:"getSimpleString(data.name)"}),_.p("design:type",String)],ED.prototype,"componentTitle",void 0);_.L([_.A3("#thumbnail"),_.p("design:type",Object)],ED.prototype,"thumbnail",void 0);_.L([_.dz({is:"yt-suggested-contact-renderer",disableElementRegistration:!0})],ED);
_.D(ED,"yt-suggested-contact-renderer",function(){if(R00===void 0){var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-suggested-contact-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.sharing.yt_suggested_contact_renderer.yt.suggested.contact.renderer.css.js--\x3e<button id="target" on-focus="onFocus" on-tap="onTap" class="style-scope yt-suggested-contact-renderer">\n  <yt-img-shadow id="thumbnail" thumbnail="[[data.avatar.thumbnail]]" class="style-scope yt-suggested-contact-renderer"></yt-img-shadow>\n  <div id="selection-highlight" class="style-scope yt-suggested-contact-renderer"></div>\n  <div id="name" class="style-scope yt-suggested-contact-renderer">[[componentTitle]]</div>\n</button>\n');
a.content.insertBefore(_.w().content.cloneNode(!0),a.content.firstChild);var z=a.content,I=z.insertBefore;DIE===void 0&&(DIE=document.createElement("template"));var J=DIE;I.call(z,J.content.cloneNode(!0),a.content.firstChild);R00=a}a=R00;return a},{mode:2});var BF=function(){var a=_.G.apply(this,arguments)||this;a.actionMap={"yt-share-panel-reset-action":"onReset"};return a};
_.b(BF,_.G);BF.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"}}}}}};
BF.prototype.onDataChanged=function(){this.data&&this.data.selectMessageRenderer&&this.data.selectMessageRenderer.contactSelectMessageRenderer&&_.ZF(this.hostElement,"yt-share-panel-set-select-message-renderer-action",[this.data.selectMessageRenderer.contactSelectMessageRenderer])};
BF.prototype.onReset=function(){for(var a=_.PK(this.hostElement).querySelector("#contents").getElementsByClassName("selected"),z=a.length-1;z>=0;z--)a[z].classList.toggle("selected")};
_.L([_.Q(_.Hc.YtActionHandlerBehavior),_.p("design:type",Object)],BF.prototype,"ytActionHandlerBehavior",void 0);_.L([_.Q(_.k.YtRendererBehavior),_.p("design:type",Object)],BF.prototype,"ytRendererBehavior",void 0);_.L([_.Q(_.u4.YtRendererstamperBehavior),_.p("design:type",Object)],BF.prototype,"ytRendererstamperBehavior",void 0);_.L([_.x({observer:"onDataChanged"}),_.p("design:type",Object)],BF.prototype,"data",void 0);
_.L([_.dz({is:"yt-contact-section-renderer",disableElementRegistration:!0})],BF);
_.D(BF,"yt-contact-section-renderer",function(){if(WAY===void 0){var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-contact-section-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.sharing.yt_contact_section_renderer.yt.contact.section.renderer.css.js--\x3e<yt-formatted-string id="title" text="[[data.title]]" class="style-scope yt-contact-section-renderer"></yt-formatted-string>\n<yt-formatted-string id="description" hidden="[[!data.description]]" text="[[data.description]]" class="style-scope yt-contact-section-renderer">\n</yt-formatted-string>\n<div id="contents" role="listbox" class="style-scope yt-contact-section-renderer"></div>\n');a.content.insertBefore(_.w().content.cloneNode(!0),
a.content.firstChild);var z=a.content,I=z.insertBefore;dI0===void 0&&(dI0=document.createElement("template"));var J=dI0;I.call(z,J.content.cloneNode(!0),a.content.firstChild);WAY=a}a=WAY;return a},{mode:2});var g8=function(){var a=_.G.apply(this,arguments)||this;a.actionMap={"yt-refresh-form-command":"onYtRefreshFormCommand"};return a};
_.b(g8,_.G);_.Z=g8.prototype;_.Z.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"}}}};
_.Z.onYtRefreshFormCommand=function(a){var z;(a=_.H((z=_.H(a,_.mQX))==null?void 0:z.formRenderer,xI4))&&this.set("data",a)};
_.Z.reset=function(){var a=_.PK(this.hostElement).querySelector("#fields").children;a=_.C(a);for(var z=a.next();!z.done;z=a.next())z=z.value,z.reset&&z.reset()};
_.Z.getForm=function(){var a={},z=_.PK(this.hostElement).querySelector("#fields").children;z=_.C(z);for(var I=z.next();!I.done;I=z.next()){I=I.value;if(!I.validate())return null;a[I.data.key]=I.value}return a};
_.Z.submitFormFields=function(){if(this.fields)for(var a=_.C(this.fields),z=a.next();!z.done;z=a.next())z=z.value,z.nodeName==="YT-TEXT-INPUT-FORM-FIELD-RENDERER"?z.save():z.nodeName==="YT-OPTIONS-RENDERER"&&z.save()};
_.L([_.Q(_.Hc.YtActionHandlerBehavior),_.p("design:type",Object)],g8.prototype,"ytActionHandlerBehavior",void 0);_.L([_.Q(_.k.YtRendererBehavior),_.p("design:type",Object)],g8.prototype,"ytRendererBehavior",void 0);_.L([_.Q(_.u4.YtRendererstamperBehavior),_.p("design:type",Object)],g8.prototype,"ytRendererstamperBehavior",void 0);_.L([_.x(),_.p("design:type",Object)],g8.prototype,"data",void 0);_.L([_.s8("#fields > *"),_.p("design:type",Array)],g8.prototype,"fields",void 0);
_.L([_.dz({is:"yt-form-renderer",disableElementRegistration:!0})],g8);
_.D(g8,"yt-form-renderer",function(){if(T14===void 0){var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-form-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.forms.yt_form_renderer.yt.form.renderer.css.js--\x3e<div id="fields" class="style-scope yt-form-renderer"></div>\n');a.content.insertBefore(_.w().content.cloneNode(!0),
a.content.firstChild);var z=a.content,I=z.insertBefore;XgM===void 0&&(XgM=document.createElement("template"));var J=XgM;I.call(z,J.content.cloneNode(!0),a.content.firstChild);T14=a}a=T14;return a},{mode:2});var LA4;var OD=function(){var a=_.G.apply(this,arguments)||this;a.actionMap={"yt-settings-update-checkbox-command":"handleUpdateCheckboxCommand"};return a};
_.b(OD,_.G);OD.prototype.onCheckboxChange=function(a){this.data&&(a=(this.checked=_.Yh(a).checked)?this.data.enableServiceEndpoint:this.data.disableServiceEndpoint)&&_.ab().resolve(_.j6).resolveCommand(a,{form:{element:this.hostElement}})};
OD.prototype.handleUpdateCheckboxCommand=function(a){(a=_.H(a,_.NGO))&&this.data&&this.data.id===a.id&&(this.set("data.disabled",a.disabled),this.set("data.title",a.title))};
_.L([_.Q(_.k.YtRendererBehavior),_.p("design:type",Object)],OD.prototype,"ytRendererBehavior",void 0);_.L([_.Q(_.Hc.YtActionHandlerBehavior),_.p("design:type",Object)],OD.prototype,"ytActionHandlerBehavior",void 0);_.L([_.x(),_.p("design:type",Object)],OD.prototype,"data",void 0);_.L([_.x(),_.p("design:type",Boolean)],OD.prototype,"checked",void 0);_.L([_.U({is:"ytd-settings-checkbox-renderer",disableElementRegistration:!0})],OD);
_.D(OD,"ytd-settings-checkbox-renderer",function(){if(LA4!==void 0)return LA4;var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-settings-checkbox-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="main-option" class="style-scope ytd-settings-checkbox-renderer">\n  <tp-yt-paper-checkbox id="checkbox" aria-label$="[[getSimpleString(data.title)]]" checked="[[data.enabled]]" disabled="[[data.disabled]]" on-change="onCheckboxChange" class="style-scope ytd-settings-checkbox-renderer">\n    <div id="checkbox-container" class="style-scope ytd-settings-checkbox-renderer"></div>\n    <div id="checkbox-label" class="style-scope ytd-settings-checkbox-renderer">\n      <yt-formatted-string id="label" split-lines="" text="[[data.title]]" class="style-scope ytd-settings-checkbox-renderer"></yt-formatted-string>\n    </div>\n  </tp-yt-paper-checkbox>\n  <yt-icon id="help-icon" hidden="[[!data.helpText]]" icon="yt-icons:help" size="16" class="style-scope ytd-settings-checkbox-renderer"></yt-icon>\n  <tp-yt-paper-tooltip animation-delay="0" for="help-icon" hidden="[[!data.helpText]]" offset="5" position="top" class="style-scope ytd-settings-checkbox-renderer">\n    [[getSimpleString(data.helpText)]]\n  </tp-yt-paper-tooltip>\n</div>\n');
a.content.insertBefore(_.w().content.cloneNode(!0),a.content.firstChild);return LA4=a},{mode:1});var lTV;var fr=function(){var a=_.G.apply(this,arguments)||this;a.actionMap={"yt-select-settings-radio-option":"onSelectOption"};return a};
_.b(fr,_.G);fr.prototype.dataChanged=function(){var a=this,z;return _.t(function(I){if(I.nextAddress==1)return a.radio.removeAttribute("checked"),!a.data||!a.data.id||a.data.id!=="SETTINGS_OPTIONS_ID_TYPE_AV1_SD"||_.HWZ()&&window.SourceBuffer&&window.SourceBuffer.prototype.changeType?(z=a.data&&a.data.id)?I.yield(h04(a.data.id),4):I.jumpTo(3):(a.set("data.hidden",!0),I.jumpTo(0));I.nextAddress!=3&&(z=I.yieldResult);z&&_.ZF(a.hostElement,"yt-select-settings-radio-option",[a.data.id]);_.nu(I)})};
fr.prototype.onButtonChanged=function(a){_.Yh(a).checked?this.data&&this.data.id&&(this.data.serviceEndpoint&&_.ab().resolve(_.j6).resolveCommand(this.data.serviceEndpoint,{form:{element:this.hostElement}}),_.ZF(this.hostElement,"yt-select-settings-radio-option",[this.data.id])):this.radio.setAttribute("checked","")};
fr.prototype.onSelectOption=function(a){this.data&&this.data.id&&(this.data.id===a?this.radio.setAttribute("checked",""):this.radio.removeAttribute("checked"))};
fr.prototype.dataChanged=fr.prototype.dataChanged;_.L([_.Q(_.k.YtRendererBehavior),_.p("design:type",Object)],fr.prototype,"ytRendererBehavior",void 0);_.L([_.Q(_.Hc.YtActionHandlerBehavior),_.p("design:type",Object)],fr.prototype,"ytActionHandlerBehavior",void 0);_.L([_.A3("#radio"),_.p("design:type",Object)],fr.prototype,"radio",void 0);_.L([_.x(),_.p("design:type",Object)],fr.prototype,"data",void 0);
_.L([_.Fe("data"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype",Promise)],fr.prototype,"dataChanged",null);_.L([_.U({is:"ytd-settings-radio-option-renderer",disableElementRegistration:!0})],fr);
_.D(fr,"ytd-settings-radio-option-renderer",function(){if(lTV!==void 0)return lTV;var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-settings-radio-option-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="start" class="style-scope ytd-settings-radio-option-renderer">\n  <tp-yt-paper-radio-button id="radio" aria-label$="[[getSimpleString(data.title)]]" hidden="[[data.hidden]]" on-change="onButtonChanged" class="style-scope ytd-settings-radio-option-renderer">\n    <div id="label" class="style-scope ytd-settings-radio-option-renderer">[[getSimpleString(data.title)]]</div>\n  </tp-yt-paper-radio-button>\n  <yt-icon id="help-icon" hidden="[[!data.helpText]]" icon="yt-icons:help" size="16" class="style-scope ytd-settings-radio-option-renderer"></yt-icon>\n  <tp-yt-paper-tooltip animation-delay="0" for="help-icon" hidden="[[!data.helpText]]" offset="3" position="top" class="style-scope ytd-settings-radio-option-renderer">\n    [[getSimpleString(data.helpText)]]\n  </tp-yt-paper-tooltip>\n</div>\n<div id="end" class="style-scope ytd-settings-radio-option-renderer">\n  <div id="aside-text" class="style-scope ytd-settings-radio-option-renderer">[[getSimpleString(data.asideText)]]</div>\n</div>\n');a.content.insertBefore(_.w().content.cloneNode(!0),
a.content.firstChild);return lTV=a},{mode:1});var pgZ;var A_=function(){var a=_.G.apply(this,arguments)||this;a.actionMap={"yt-settings-update-text-command":"handleUpdateTextCommand","yt-settings-update-connected-app-renderer-command":"handleUpdateConnectedAppRendererCommand"};return a};
_.b(A_,_.G);
A_.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"}}}};
A_.prototype.handleUpdateTextCommand=function(a){(a=_.H(a,_.taw))&&this.data&&this.data.id===a.id&&this.set("data",a)};
A_.prototype.handleUpdateConnectedAppRendererCommand=function(a){if(_.H(a,_.BGv)&&this.data){var z,I;if(a=(z=_.H(a,_.BGv))==null?void 0:(I=z.newConnectedAppRenderer)==null?void 0:I.connectedAppRenderer)this.data=a}};
A_.prototype.computeConnectedAppStyle=function(a){return a.style?a.style.toLowerCase().replace(/_/g,"-"):""};
_.L([_.Q(_.u4.YtRendererstamperBehavior),_.p("design:type",Object)],A_.prototype,"ytRendererstamperBehavior",void 0);_.L([_.Q(_.Hc.YtActionHandlerBehavior),_.p("design:type",Object)],A_.prototype,"ytActionHandlerBehavior",void 0);_.L([_.Q(_.k.YtRendererBehavior),_.p("design:type",Object)],A_.prototype,"ytRendererBehavior",void 0);_.L([_.x(),_.p("design:type",Object)],A_.prototype,"data",void 0);
_.L([_.x({reflectToAttribute:!0,computed:"computeConnectedAppStyle(data)"}),_.p("design:type",String)],A_.prototype,"connectedAppStyle",void 0);_.L([_.U({is:"ytd-connected-app-renderer",disableElementRegistration:!0})],A_);
_.D(A_,"ytd-connected-app-renderer",function(){if(pgZ!==void 0)return pgZ;var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-connected-app-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-img-shadow hidden="[[!data.icon]]" thumbnail="[[data.icon]]" class="style-scope ytd-connected-app-renderer"></yt-img-shadow>\n<div id="app" class="style-scope ytd-connected-app-renderer">\n  <div id="app-info" class="style-scope ytd-connected-app-renderer">\n    <div id="title" class="style-scope ytd-connected-app-renderer">[[getSimpleString(data.title)]]</div>\n    <yt-formatted-string id="text" force-default-style="" split-lines="" text="[[data.text]]" class="style-scope ytd-connected-app-renderer">\n    </yt-formatted-string>\n  </div>\n  <div id="button-row" class="style-scope ytd-connected-app-renderer">\n    <div id="button-container" hidden="[[!data.connectButton]]" class="style-scope ytd-connected-app-renderer">\n      <div id="connect-button" class="style-scope ytd-connected-app-renderer"></div>\n    </div>\n    <div id="button-container" hidden="[[!data.disconnectButton]]" class="style-scope ytd-connected-app-renderer">\n      <div id="disconnect-button" class="style-scope ytd-connected-app-renderer"></div>\n    </div>\n  </div>\n</div>\n');a.content.insertBefore(_.w().content.cloneNode(!0),
a.content.firstChild);return pgZ=a},{mode:1});
}catch(e){_._DumpException(e)}
try{
_.iE("iuT5Oc");

_.xl();
}catch(e){_._DumpException(e)}
try{
_.iE("L3n37");
var uyL=function(a){return a.watch.isLearningJourneyActive},Ek4=_.uq(115994),Bo4=_.uq(115993),gk7=function(a,z,I){var J=this;
var r=I.dragDownAction;this.layer=0;this.JSC$23010_watchConfig={startPosition:0,draggingClass:"gesture-dragging",triggers:{down:{fade:!0,endOpacity:.6,endPosition:100,threshold:100,triggerAction:function(){return J.dragDownAction()}}}};
this.JSC$23010_watchFullScreenConfig={startPosition:0,draggingClass:"gesture-dragging",triggers:{down:{disableFinish:!0,endOpacity:.6,endPosition:100,threshold:100,triggerAction:function(){return J.dragDownAction()}}}};
this.fullscreen=!1;var P=_.Kw();_.sR(P,Ek4,this.layer);_.sR(P,Bo4,this.layer);this.dragDownAction=function(){r();_.pS(P,{visualElement:J.fullscreen?Ek4:Bo4})};
this.gesture=new _.gk(a,z,this.JSC$23010_watchConfig,"pandown");this.attach()};
gk7.prototype.attach=function(){this.gesture.attach()};
gk7.prototype.detach=function(){this.gesture.detach()};
gk7.prototype.update=function(a){this.fullscreen=a;this.gesture.config=a?this.JSC$23010_watchFullScreenConfig:this.JSC$23010_watchConfig};var OII=function(a){_.Ol.call(this);var z=this;this.rootElement=a;this.activeModules=[];this.actionHandlers=new Map;this.TEST_ONLY={getActiveModules:function(){return z.activeModules}};
this.initPersistentModules();this.addOnDisposeCallback(this.subscribeToActiveChanged(function(I){z.initOrDisposeActiveModules(I)}));
this.onAttached()};
_.b(OII,_.Ol);_.Z=OII.prototype;_.Z.getRoot=function(){return this.rootElement};
_.Z.getElement=function(a){return this.rootElement.getElement(a)};
_.Z.setPlayerResponse=function(a){this.playerResponse=a;this.publish("PLAYER_RESPONSE_UPDATED",a)};
_.Z.getPlayerResponse=function(){return this.playerResponse};
_.Z.setWatchNextResponse=function(a){this.watchNextResponse===a?this.publish("WATCH_NEXT_RESPONSE_RELOADED"):(this.watchNextResponse=a,this.publish("WATCH_NEXT_RESPONSE_UPDATED",a))};
_.Z.getWatchNextResponse=function(){return this.watchNextResponse};
_.Z.registerActionHandler=function(a,z){var I=this;if(_.K("web_watch_controller_reg_multiple_handlers_killswitch")){var J={};_.m_(_.w2.getInstance(),(J[a]=z,J),this.getRoot())}else this.actionHandlers.has(a)||(this.actionHandlers.set(a,[]),J={},_.m_(_.w2.getInstance(),(J[a]=function(){var r=_.dO.apply(0,arguments);return(I.actionHandlers.get(a)||[]).map(function(P){return P.apply(null,_.ih(r))})},J),this.getRoot())),this.actionHandlers.get(a).push(z)};
_.Z.unregisterActionHandler=function(a){if(_.K("web_watch_controller_reg_multiple_handlers_killswitch")){var z={};_.y4(_.w2.getInstance(),(z[a]=!0,z),this.getRoot())}else(z=this.actionHandlers.get(a))?(z.pop(),z.length===0&&(z={},_.y4(_.w2.getInstance(),(z[a]=!0,z),this.getRoot()),this.actionHandlers.delete(a))):_.Xd(new _.Fn("Attempted to unregister an action handler which is not registered.",a))};
_.Z.addPageDisposeJob=function(a){this.rootElement.pageDisposeJobs||(this.rootElement.pageDisposeJobs=[]);_.HGG(this.rootElement.pageDisposeJobs,a)};
_.Z.removePageDisposeJob=function(a){this.rootElement.pageDisposeJobs&&_.Di(this.rootElement.pageDisposeJobs,a)};
_.Z.dispatchEvent=function(a,z){_.PA(this.rootElement,a,z)};
_.Z.provideRenderingData=function(a,z){this.rootElement.provideRenderingData(a,z)};
_.Z.scrollWatchTo=function(a,z){var I;(I=this.watchScrollManager)==null||I.scrollWatchTo(a,z)};
_.Z.focusOnPlayer=function(){var a=this.getElement("PLAYER");_.Yv(a,function(){if(a&&a.firstElementChild){var z=a.querySelector(".html5-video-player");z&&(_.Cd(_.ab().resolve(_.V7)),z.focus())}else _.Xd(Error("Go"))})};
_.Z.updateCinematicFullscreenConfig=function(){var a=!!this.rootElement.theater,z=!!this.rootElement.fullscreen,I;(I=this.watchCinematicManager)==null||_.dw(I,z,a)};
_.Z.subscribeToActiveChanged=function(a,z){z=z===void 0?!0:z;var I=_.QT(_.qo(),uyL,function(J){a(J)});
z&&a(uyL(_.qo().getState()));return I};
_.Z.isActive=function(){return uyL(_.qo().getState())};
_.Z.onAttached=function(){var a=_.K("external_fullscreen");_.K("use_unified_flag_accessor")&&(a=_.ab().resolve(_.gP0).retriever.getFlag(_.aTG));(a||_.TZ("START_IN_FULL_WINDOW_MODE"))&&this.dispatchEvent("yt-set-fullerscreen-styles")};
_.Z.initPersistentModules=function(){if(_.K("kevlar_watch_flexy_theater_manager")){var a=new _.KAL(this);_.t7(this,a)}a=new _.Z3x(this);_.t7(this,a);a=new _.GA(this);_.t7(this,a);a=new _.IHx(this);_.t7(this,a);a=new _.Ws9(this);_.t7(this,a);a=new _.X5(this);_.t7(this,a);_.K("kevlar_watch_flexy_playlist_manager")&&(a=new _.DYO(this),_.t7(this,a))};
_.Z.initOrDisposeActiveModules=function(a){a?(this.watchScrollManager=new _.UP(this),this.activeModules.push(this.watchScrollManager),this.activeModules.push(new _.H3t(this)),this.activeModules.push(new _.h29(this)),this.activeModules.push(new _.mYa(this)),this.activeModules.push(new _.O37(this)),_.K("kevlar_watch_flexy_error_screen_data_provider")&&this.activeModules.push(new _.io7(this)),this.activeModules.push(new _.i39(this)),_.K("kevlar_watch_flexy_ypc_manager")&&this.activeModules.push(new _.kZI(this)),
_.K("kevlar_watch_flexy_ads_manager")&&this.activeModules.push(new _.WAN(this)),_.K("kevlar_watch_cinematics")&&(this.watchCinematicManager=new _.LA9(this),this.activeModules.push(this.watchCinematicManager),this.updateCinematicFullscreenConfig()),_.K("kevlar_watch_player_menu_highlight_manager_killswitch")||this.activeModules.push(new _.$YI(this)),_.K("kevlar_watch_flexy_gestures_manager")&&this.activeModules.push(new _.rD9(this)),a=_.K("swatcheroo_directly_provide_comments")&&this.getRoot().is===
"ytd-watch-grid",_.K("kevlar_watch_flexy_comments_manager")&&!a&&this.activeModules.push(new _.qf9(this)),_.K("web_watch_get_updated_metadata_manager")&&this.activeModules.push(new _.$r(this)),this.activeModules.push(new _.iW9(this)),this.activeModules.push(new _.hxa(this)),_.K("web_enable_timely_actions")&&this.activeModules.push(new _.$I7(this)),_.K("web_enable_player_creator_endscreen_manager")&&this.activeModules.push(new _.jh7(this)),_.K("web_watch_enable_multiview_manager")&&this.activeModules.push(new _.mCL(this)),
_.K("web_fullscreen_components")&&this.activeModules.push(new _.$Cx(this)),_.K("web_player_rtr_ctrls")&&this.activeModules.push(new _.IT4(this))):(_.qM(this.activeModules),this.activeModules.length=0,this.watchScrollManager=void 0)};
_.Z.disposeInternal=function(){_.Ol.prototype.disposeInternal.call(this);this.initOrDisposeActiveModules(!1)};
_.eH.Object.defineProperties(OII.prototype,{playerApi:{configurable:!0,enumerable:!0,get:function(){return this.getRoot().getPlayer().getPlayerPromise()}}});var fZN={},ACu=["learning-journey-engagement-panel","PAlearning_chat"];
fZN.YtdLearningJourneyWatchBehavior=[_.k.YtRendererBehavior,_.jz.YtPlayerListenerBehavior,_.u4.YtRendererstamperBehavior,_.Hc.YtActionHandlerBehavior,_.WR.YtPageBehavior,_.FW.YtEndpointBehavior,{_noAccessors:!0,properties:{data:{type:Object,observer:"dataChanged_"},info:{type:Object},meta:{type:Object},ticket:{type:Object},donation:{type:Object},clarifyBox:{type:Object,computed:"getClarifyBox(data, clarifyBoxValue)"},offerModule:{type:Object},engagementPanels:{type:Object},inlineEngagementPanels:{type:Object},
learningJourneyEngagementPanels:{type:Object,computed:"getLearningJourneyEngagementPanels(engagementPanels, learningJourneyEngagementPanelsValue)"},nonLearningJourneyEngagementPanels:{type:Object,computed:"getNonLearningJourneyEngagementPanels(engagementPanels, learningJourneyEngagementPanelsValue)"},clarifyBoxValue:{type:Object},conversationBar:{type:Object},infoPanelBelowMetadata:{type:Object},expandableMetadata:{type:Object},limitedState:{type:Object,computed:"getLimitedState(data, limitedStateValue)"},
limitedStateValue:{type:Object},merchShelf:{type:Object,computed:"getMerchShelf(data, merchShelfValue)"},merchShelfValue:{type:Object},singleColumn:{type:Object,computed:"getSingleColumn(playerData.playabilityStatus, data, singleColumnValue)"},singleColumnValue:{type:Object},comments:{type:Object,value:null},playerData:{type:Object,observer:"playerDataChanged_"},playerAds:{type:Object,value:null},localPlaylistData_:{type:Object,value:{},computed:"setPlaylistData_(data.contents.twoColumnWatchNextResults.playlist.playlist)"},
externalPlaylistData_:{type:Object,value:{}},playlistData:{type:Object,computed:"computePlaylistData_(localPlaylistData_, externalPlaylistData_)"},theater:{type:Boolean,value:!1,reflectToAttribute:!0},fullWindowMode_:{type:Boolean,reflectToAttribute:!0,value:function(){return _.TZ("START_IN_FULL_WINDOW_MODE")}},
useProviderForSecondaryResultsRenderer:{type:Boolean,value:function(){return _.K("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 _.TZ("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 _.K("kevlar_watch_js_panel_height")},
reflectToAttribute:!0},showEngagementPanelScrim_:{type:Boolean,reflectToAttribute:!0,observer:"showEngagementPanelScrimChanged_"},watchFeedBigThumbs_:{type:Boolean,reflectToAttribute:!0,value:function(){return _.K("kevlar_watch_feed_big_thumbs")}},
useEngagementPanelManagementComponent:{type:Boolean,value:function(){return _.K("kevlar_use_engagement_panel_management_component")}},
watchMetadataRefresh:{type:Boolean,value:!1,computed:"computeWatchMetadataRefresh(videoPrimaryInfoRenderer)",reflectToAttribute:!0},liveChatCollapsed:{type:Boolean},liveChatPresentAndExpanded:{type:Boolean,reflectToAttribute:!0,computed:"computeLiveChatPresentAndExpanded(shouldStampChat, liveChatCollapsed)"},playlistPanelExpanded:{type:Boolean,reflectToAttribute:!0,value:!1},engagementPanelExpanded:{type:Boolean,value:!1},panelExpanded:{type:Boolean,reflectToAttribute:!0,value:!1,computed:"computePanelExpanded(engagementPanelExpanded, playlistPanelExpanded, liveChatPresentAndExpanded)"},
richItemMinWidth:{type:Number,value:function(){return _.Ib("wn_grid_min_item_width",310)}},
richItemMaxWidth:{type:Number,value:function(){return _.Ib("wn_grid_max_item_width",700)}},
commentsEntryPointHeaderRenderer:{type:Object,computed:"computeCommentsEntryPointHeaderRenderer(data, commentsEntryPointHeaderRendererValue, defaultTwoColumnLayout, isTwoColumns_)"},commentsEntryPointHeaderRendererValue:{type:Object},videoMetadataCarousel:{type:Object},richGridRendererData:{type:Object},watchNextSecondaryResults:{type:Object},videoPrimaryInfoRenderer:{type:Object,computed:"computeVideoPrimaryInfoRenderer(data, videoPrimaryInfoRendererValue)"},videoPrimaryInfoRendererValue:{type:Object},
videoSecondaryInfoRenderer:{type:Object,computed:"computeVideoSecondaryInfoRenderer(data, videoSecondaryInfoRendererValue)"},videoSecondaryInfoRendererValue:{type:Object},inlineStructuredDescriptionData:{type:Object,computed:"computeInlineStructuredDescriptionData(data)"},flexyEnableSmallWindowSizing:{type:Boolean,reflectToAttribute:!0,value:function(){return!_.K("kevlar_watch_flexy_disable_small_window_sizing")}},
flexyEnableLargeWindowSizing:{type:Boolean,reflectToAttribute:!0,value:function(){return!_.K("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 _.K("kevlar_watch_cinematics")}},
responseHasComments:{type:Boolean,reflectToAttribute:!0,value:function(){return!0}},
deprecateFullerscreenUi:{type:Boolean,reflectToAttribute:!0,value:function(){return _.K("web_watch_fullerscreen_deprecation_ui")}},
cinematicsActive:{type:Boolean,value:!1,reflectToAttribute:!0},noTopMargin:{type:Boolean,reflectToAttribute:!0,value:function(){return _.K("kevlar_watch_no_top_margin")}},
reducedTopMargin:{type:Boolean,reflectToAttribute:!0,value:function(){return _.K("kevlar_watch_reduced_top_margin")}},
frame0LoadingState:{type:Boolean,reflectToAttribute:!0,value:function(){return!0}},
roundedPlayerMedium:{type:Boolean,reflectToAttribute:!0,value:function(){return!0}},
roundedPlayerLarge:{type:Boolean,reflectToAttribute:!0,value:function(){return _.K("web_watch_rounded_player_large")||_.K("watch_next_grid_round_player")}},
showExpandableMetadata:{type:Boolean,reflectToAttribute:!0,computed:"computeShowExpandableMetadata(expandableMetadata)"},fullBleedPlayer:{type:Boolean,reflectToAttribute:!0,computed:"computeFullBleedPlayer(fullscreen, theater)"},defaultLayout:{type:Boolean,reflectToAttribute:!0,computed:"computeDefaultLayout(fullBleedPlayer)"},defaultTwoColumnLayout:{type:Boolean,reflectToAttribute:!0,computed:"computeDefaultTwoColumnLayout(fullBleedPlayer, isTwoColumns_)"},trackEngagementPanelVisibility:{type:Boolean,
value:function(){return _.K("web_watch_track_engagement_panel_visibility")}},
commentTeaserEnabled:{type:Boolean,value:function(){return _.K("web_watch_show_comment_teaser")}},
fullBleedNoMaxWidthColumns:{type:Boolean,reflectToAttribute:!0,value:function(){return _.K("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 _.K("web_watch_while_wider_panels")}},
watchWhileMargin:{type:Boolean,reflectToAttribute:!0,value:function(){return _.K("web_watch_while_panel_margin")}},
watchWhilePanelsActive:{type:Boolean,reflectToAttribute:!0,computed:"computeWatchWhilePanelsActive(fixedPanels, panelsBesidePlayer)"},noBorderOnChat:{type:Boolean,computed:"computeNoBorderOnChat(watchWhilePanelsActive)"},forceDarkPanelTheme:{type:Boolean,computed:"computeForceDarkPanelTheme(panelsBesidePlayer)"},hasMetadata:{type:Boolean,reflectToAttribute:!0,computed:"computeHasMetadata(videoPrimaryInfoRenderer)"},watchWhileWindowSizeSufficient:{type:Boolean,observer:"watchWhileWindowSizeSufficientChanged"},
thumbnailToWatchTransition:{type:Boolean,reflectToAttribute:!0,value:function(){return!0}}},
observers:"watchPageActiveChanged_(active);shouldProceedToNextVideo_(playerData.playabilityStatus, data, playlist);userEngagementConfigDataChanged_(data.userEngagementConfig);updateTheaterModeState_(theaterRequested_);watchNextShownItemsAddedOrRemoved_(watchNextShownItems.splices, watchNextCanShowMore);youthereDataChanged_(playerData.messages);updateChatLocation(liveChatPresentAndExpanded);watchNextSecondaryResultsChanged(data)".split(";"),monitorScroll:!0,configureRendererStamper:function(){return{info:{id:"info-contents",
mapping:{videoPrimaryInfoRenderer:{component:"ytd-video-primary-info-renderer"}}},meta:{id:"meta-contents",mapping:{videoSecondaryInfoRenderer:{component:"ytd-video-secondary-info-renderer",properties:{structuredDescriptionContentRenderer:"[[inlineStructuredDescriptionData]]"}}}},ticket:{id:"ticket-shelf",mapping:{ticketShelfRenderer:{component:"ytd-ticket-shelf-renderer",properties:{skinnyMode:"[[isTwoColumns_]]"}}}},offerModule:{id:"offer-module",mapping:{donationShelfRenderer:{component:"ytd-donation-shelf-renderer",
properties:{isCollapsed:"[[shouldCollapseDonationShelf]]"}},donationUnavailableRenderer:{component:"ytd-donation-unavailable-renderer"},movieOfferModuleRenderer:"ytd-movie-offer-module-renderer",episodeOfferModuleRenderer:"ytd-movie-offer-module-renderer",liveOfferModuleRenderer:"ytd-movie-offer-module-renderer",channelOfferModuleRenderer:"ytd-movie-offer-module-renderer",unlimitedOfferModuleRenderer:{component:"ytd-unlimited-offer-module-renderer",properties:{hidden:"[[hideUnlimitedOfferModule]]"}},
tvfilmOfferModuleRenderer:{component:"ytd-tvfilm-offer-module-renderer",properties:{hidden:"[[hideTvfilmOfferModule]]"}},ctaShelfRenderer:"ytd-brandconnect-cta-shelf-card-renderer"}},expandableMetadata:{id:"expandable-metadata",mapping:{expandableMetadataRenderer:{component:"ytd-expandable-metadata-renderer",params:{isWatch:!0}}}},donation:{id:"donation-shelf",mapping:{donationShelfRenderer:{component:"ytd-donation-shelf-renderer",properties:{isCollapsed:"[[shouldCollapseDonationShelf]]"}},donationUnavailableRenderer:{component:"ytd-donation-unavailable-renderer"}}},
clarifyBox:{id:"clarify-box",mapping:{clarificationRenderer:"ytd-clarification-renderer",infoPanelContainerRenderer:"ytd-info-panel-container-renderer",infoPanelContentRenderer:"ytd-info-panel-content-renderer",emergencyOneboxRenderer:{component:"ytd-emergency-onebox-renderer",attributes:{"class":"watch"}}}},limitedState:{id:"limited-state",mapping:{limitedStateMessageRenderer:"ytd-limited-state-message-renderer"}},playerAds:{id:"player-ads",mapping:{playerLegacyDesktopWatchAdsRenderer:"ytd-player-legacy-desktop-watch-ads-renderer"},
initialRenderPriority:3,waitForSignal:_.q7(["aa","eocs"])},"data.survey":{id:"survey",mapping:{surveyTriggerRenderer:"ytd-survey-trigger-renderer"},initialRenderPriority:3,waitForSignal:_.q7(["aa","eocs"])},alerts:{id:"alerts",mapping:{alertRenderer:"yt-alert-renderer",alertWithButtonRenderer:"ytd-alert-with-button-renderer"}},"data.contents.twoColumnWatchNextResults.miniplayerBar":{id:"miniplayer-bar",mapping:{miniplayerBarRenderer:"ytd-miniplayer-bar-renderer"}},microformat:{id:"microformat",mapping:{playerMicroformatRenderer:"player-microformat-renderer"}},
singleColumn:{id:"single-column-container",mapping:{itemSectionRenderer:"ytd-item-section-renderer"}},learningJourneyEngagementPanels:{id:"plj-panels",mapping:{engagementPanelSectionListRenderer:{component:"ytd-engagement-panel-section-list-renderer",params:{isWatch:!0,learningChatEngagementPanel:!0}}}},nonLearningJourneyEngagementPanels:{id:"panels",mapping:{engagementPanelSectionListRenderer:{component:"ytd-engagement-panel-section-list-renderer",params:{isWatch:!0}}}}}},
listeners:{"yt-retrieve-location":"onRetrieveLocation_","yt-subscription-changed":"onSubscriptionChanged_","yt-show-survey":"onYtShowSurvey_","yt-chat-collapsed-changed":"onYtChatCollapsedChanged"},actionMap:{"yt-sync-with-remote-video":"syncWithRemoteVideo_","yt-window-resized":"onWindowResized_","yt-initial-video-aspect-ratio":"onYtInitialVideoAspectRatio_","yt-update-player-next-video":"onUpdatePlayerNextVideo_","yt-signal-action-pause-player":"handleSignalActionPausePlayer_","yt-signal-action-play-player":"handleSignalActionPlayPlayer_",
"yt-signal-action-acknowledge-youthere":"handleSignalActionAcknowledgeYouThere_","yt-user-activity":"onYtUserActivity_","yt-show-engagement-panel-scrim-action":"onYtShowEngagementPanelScrimAction_","yt-hide-engagement-panel-scrim-action":"onYtHideEngagementPanelScrimAction_","yt-get-current-video-id-action":"onGetCurrentVideoIdAction_","yt-show-survey-command":"onYtShowSurveyCommand_","yt-signal-action-scroll-to-comments":"onYtSignalActionScrollToComments","yt-engagement-panel-visible-changed":"onYtEngagementPanelVisibleChanged",
"yt-downloaded-video-deleted":"onDownloadedVideoDeleted","yt-change-markers-visibility-command":"onChangeMarkersVisibility","yt-updated-playability-status":"onYtUpdatedPlayabilityStatus"},created:function(){var a=this;this.watchController=void 0;this.pageDisposeJobs=[function(){a.showMetadataPlaceholder_()},
function(){_.K("web_watch_dont_clear_comments")||a.clearComments_()},
function(){a.clearPlayerAds_()},
function(){a.resetAutonavCanceledForNewPlayback_()}];
this.player=this.playerContainerEl=this.playerEl=this.watchNextSkeletonEl_=null;this.onPlayingCallbacks_=[];this.clearPlayerAdsJobId_=this.setRichGridJobId_=this.setCommentsJobId_=0;this.showFullerscreenEdu_=!1;this.windowSize_=null;this.trackEngagementPanelVisibility&&(this.visiblePanelIdentifiers_=new Set);this.autonavCanceledSignal_=!1;_.K("kevlar_watch_while")&&(this.watchWhileScrollThreshold_=NaN);_.K("web_watch_start_chat_in_theater_mode")&&(this.theaterEnabledForChat=!1);this.youThereManager_=
new _.DeN(function(){return _.jr(a)},this.hostElement);
this.pageDisposeJobs.push(function(){a.youThereManager_.reset()});
_.K("external_fullscreen")&&(this.fullerscreenEduButtonShownThisPlayback_=this.fullerscreenEduButtonClickedThisPlayback_=!1,this.pageDisposeJobs.push(function(){a.resetFullerscreenEduButtonForNewPlayback_()}));
_.K("kevlar_watch_js_panel_height")&&(this.panelMaxHeightUpdateJob_=0);this.fullHeightPanelPositionUpdateJobId=0;this.playerEvents_=new _.BY;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;_.K("kevlar_watch_metadata_refresh")&&
(this.watchMetadata=void 0);_.K("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));_.K("kevlar_watch_flexy_comments_manager")||this.hostElement.addEventListener("yt-page-data-will-update",_.BK(this,this.onYtPageDataWillUpdate_))},
onYtUpdatedPlayabilityStatus:function(a){a&&(this.playerData=Object.assign({},this.playerData,{playabilityStatus:a}),a.status==="ERROR"&&(this.playerData.videoDetails=void 0))},
onTheaterReduxValueUpdate:function(a){_.K("kevlar_watch_flexy_theater_manager")&&(this.theater=a,this.updateFullBleedElementLocations(),this.schedulePlayerSizeUpdate_(),_.K("kevlar_watch_js_panel_height")&&this.active!==void 0&&this.schedulePanelMaxHeightUpdate_())},
onMiniplayerActiveReduxValueUpdate:function(a){!_.K("kevlar_watch_while_v2")&&!_.K("web_watch_pip")||a||(this.player&&this.setPlayerTheaterMode_(),this.schedulePlayerSizeUpdate_())},
onFullscreenReduxValueUpdate:function(a){this.active!==void 0&&(this.fullscreen=a,_.K("kevlar_watch_flexy_gestures_manager")||this.gestures_&&this.gestures_.update(this.fullscreen),this.updateFullBleedElementLocations())},
onScrollReduxValueUpdate:function(a){this.active!==void 0&&(_.PA(this.hostElement,"yt-autonav-pause-scroll"),this.setComments_(),_.K("kevlar_watch_while")&&this.updateMiniplayerBarVisibility_(),_.K("kevlar_watch_flexy_gestures_manager")||this.gestures_&&(a>0?this.gestures_.detach():this.gestures_.attach()))},
loadPage_:function(a){this.initCsi_();this.updatePageData_(a)},
updatePageData_:function(a){var z=this;if(a)if(this.data===a){this.onPageLoadWithSameData_();var I;(I=this.watchController)==null||I.setWatchNextResponse(this.data)}else this.data=a;this.playlist&&_.Gb({watchInfo:{isPlaylist:!0}});this.pageCount===1&&_.Xz("nw");this.loading=!1;_.b9(_.GW,function(){z.initDclkstatus_();var J,r=((J=z.player)==null?void 0:J.getVideoData().cpn)||"";_.hZO(function(P,N){_.QG4(P,N,r)})})},
onPageLoadWithSameData_:function(){_.K("kevlar_watch_flexy_comments_manager")||this.initComments_();this.setPlayerAds_()},
setLoadingState_:function(){this.hostElement.classList.remove("hide-skeleton");this.hostElement.classList.add("show-skeleton");this.setPlayerLoadingState_();this.hostElement.classList.add("loading");var a=this.get("endpoint.watchEndpoint.playlistId",this.loadingData);this.set("loadingData.playlist",!!a);this.set("loadingData.playlistLoading",a&&a!==this.get("playlistId",this.playlistData));this.toggleBodyScrolling_(!1);if(this.watchNextSkeletonEl_)for(this.playlist?this.watchNextSkeletonEl_.setAttribute("playlist",
""):this.watchNextSkeletonEl_.removeAttribute("playlist"),a=this.watchNextSkeletonEl_.firstElementChild;a;)a.classList.remove("hidden"),a=a.nextElementSibling;var z,I,J;a=(z=this.loadingData)==null?void 0:(I=z.endpoint)==null?void 0:(J=I.watchEndpoint)==null?void 0:J.videoId;var r;a&&(r="https://i.ytimg.com/vi/"+a+"/frame0.jpg");_.PK(this.hostElement).querySelector("#player").style.backgroundImage=r?"url("+r+")":""},
clearLoadingState_:function(){this.hostElement.classList.remove("show-skeleton");this.hostElement.classList.add("hide-skeleton");var a=_.PK(this.hostElement).querySelector("#related-skeleton");!this.get("data.contents.twoColumnWatchNextResults.secondaryResults.secondaryResults")&&a&&(a.hidden=!0);this.clearPlayerLoadingState_();this.hostElement.classList.remove("loading");this.loadingData={playlist:!1};this.toggleBodyScrolling_(!0);if(this.watchMetadata){var z,I;(I=(z=this.watchMetadata).updateSentimentBarWidth)==
null||I.call(z);var J,r;(r=(J=this.watchMetadata).resize)==null||r.call(J)}_.PK(this.hostElement).querySelector("#player").style.backgroundImage=""},
addSplitScrollMouseTrap:function(a){var z=_.PK(this.hostElement).querySelector(a);z?_.I_(z,!1):_.Xd(new _.Fn("Overscroll monitor not found for component: ",a))},
removeSplitScrollMouseTrap:function(a){var z=_.PK(this.hostElement).querySelector(a);z?_.JR(z):_.Xd(new _.Fn("Disposal component for  overscroll monitoring not found: ",a))},
onLoadingChanged_:function(a){a?this.setLoadingState_():this.clearLoadingState_()},
setPlayerLoadingState_:function(){this.playerLoading_||(this.playerLoading_=!0,this.hostElement.classList.add("loading-player"))},
clearPlayerLoadingState_:function(){this.playerLoading_&&(this.playerLoading_=!1,this.hostElement.classList.remove("loading-player"))},
toggleBodyScrolling_:function(a){var z=this;a?document.body.removeAttribute("no-y-overflow"):document.body.setAttribute("no-y-overflow","");_.GW.addLowPriorityJob(function(){z.onWindowResized_(_.bk(!0))})},
updateTheaterModeState_:function(a){if(!_.K("kevlar_watch_flexy_theater_manager")){a=a||this.fullWindowMode_;if(this.theater!==void 0||a)this.theater=a;this.updateFullBleedElementLocations();this.player&&this.setPlayerTheaterMode_();this.togglePageSwatchActive_();a&&_.VII()}},
updateFullBleedElementLocations:function(){this.updateChatLocation();this.updatePlayerLocation();this.updateCinematicsLocation()},
updatePlayerLocation:function(){var a=this.theater;_.K("external_fullscreen")&&this.fullscreen&&(a=!0);a=a?_.PK(this.hostElement).querySelector("#player-full-bleed-container"):_.PK(this.hostElement).querySelector("#player-container-inner");var z=this.getPlayerContainer(),I=_.K("kevlar_watch_while_v2")||_.K("web_watch_pip");z.parentElement!==a&&(I&&this.isMiniplayerActive()?this.deactivateMiniplayerAndResetPlayer():(_.jr(this).appendTo(a,z),a.appendChild(_.PK(this.hostElement).querySelector("#error-screen"))))},
deactivateMiniplayerAndResetPlayer:function(){var a=this;return _.t(function(z){if(z.nextAddress==1)return z.yield(_.ab().resolve(_.UJ).deactivate(),2);a.updatePlayerLocation();_.nu(z)})},
updateCinematicsLocation:function(){var a=this.getElement("CINEMATICS");if(a){var z=this.getCinematicsLocationContainer();a.parentElement!==z&&z.appendChild(a);var I;(I=this.watchController)==null||I.updateCinematicFullscreenConfig()}},
getCinematicsLocationContainer:function(){return this.shouldCinematicsBeInWideContainer(this.theater&&!this.fullscreen,this.fullscreen)?_.PK(this.hostElement).querySelector("#cinematics-full-bleed-container"):_.PK(this.hostElement).querySelector("#cinematics-container")},
shouldCinematicsBeInWideContainer:function(a,z){var I=document.documentElement.hasAttribute("dark"),J=I&&_.K("web_cinematic_theater_mode"),r=I&&_.K("web_cinematic_fullscreen");I=!I&&this.cinematicLightTheme;return a&&J||z&&r||(z||a)&&I},
isTheater_:function(){return this.theater&&this.active},
dataChanged_:function(){var a;(a=this.watchController)==null||a.setWatchNextResponse(this.data);_.K("kevlar_watch_flexy_comments_manager")||this.initComments_();_.K("kevlar_metadata_reset_on_nav")&&this.hostElement.classList.add("hide-skeleton");_.ab().resolve(_.wR).cancelVideoSkip();this.showEngagementPanelScrim_=!1;this.trackEngagementPanelVisibility&&(this.engagementPanelExpanded=!1,this.visiblePanelIdentifiers_.clear());this.data&&this.updateCinematicsLocation();if(_.K("web_watch_start_chat_in_theater_mode")){var z,
I,J;if((z=this.data)==null?0:(I=z.contents)==null?0:(J=I.twoColumnWatchNextResults)==null?0:J.conversationBar)this.setTheaterModeRequested(!0,!1),this.theaterEnabledForChat=!0;else{var r,P;((r=this.data)==null?0:(P=r.contents)==null?0:P.twoColumnWatchNextResults)&&this.theaterEnabledForChat&&(this.setTheaterModeRequested(!1,!1),this.theaterEnabledForChat=!1)}}},
playerDataChanged_:function(a){var z;(z=this.watchController)==null||z.setPlayerResponse(this.playerData);a&&a.playabilityStatus&&(z=this.isVideoPlayable_(a.playabilityStatus,this.getPlayerOverlays_(this.data)),a=this.isLiveStreamOffline_(a.playabilityStatus),z&&!a||_.Yv(this,function(){_.Xz("pbu")}));
this.setPlayerAds_();_.Ct(this.hostElement,"ytd-watch-player-data-changed")},
watchPageActiveChanged_:function(a){_.qo().dispatch(_.rg({type:"SET_IS_LEARNING_JOURNEY_ACTIVE",payload:{isLearningJourneyActive:this.active}}));a?this.activate_():this.deactivate_()},
attached:function(){var a=this;this.watchController=new OII(this.hostElement);this.playerData&&this.watchController.setPlayerResponse(this.playerData);this.data&&this.watchController.setWatchNextResponse(this.data);_.K("web_watch_common_class_killswitch")||this.hostElement.classList.add("watch-root-element");var z=_.jr(this);_.K("kevlar_disable_prepare_player")||z.preparePlayer();_.K("kevlar_watch_flexy_playlist_manager")||_.ab().resolve(_.wR).setPlayer(z);this.updatePageMediaQueries();z={"--ytd-watch-flexy-scrollbar-width":_.M7()+
"px"};!_.Ib("kv_pl_mx_sz_ks")&&_.Ib("kevlar_watch_max_player_width")&&(z["--ytd-watch-flexy-max-player-width-wide-screen"]=_.Pju+"px");_.Ib("kevlar_watch_flexy_metadata_height")&&(z["--ytd-watch-flexy-space-below-player"]=_.Z4j+"px");this.safeUpdateStyles(z);_.K("kevlar_watch_flexy_gestures_manager")||(this.gestures_=new gk7(this.hostElement,this.getPlayerContainer(),{dragDownAction:function(){return a.onPlayerTouchPanDown_()}}));
_.K("kevlar_watch_metadata_refresh")&&(this.watchMetadata=_.PK(this.hostElement).querySelector("ytd-watch-metadata:not([swatcheroo-secondary-below-metadata])"))},
updatePageMediaQueries:function(){var a=_.M7(),z=_.DS+a,I=z;this.fixedPanels&&(z+=_.rxP);var J=657+a;a=1327+a;_.PK(this.hostElement).querySelector("#two-column-query").query="(min-width: "+z+"px)";_.PK(this.hostElement).querySelector("#small-window-query").query="(max-height: 629px) and (min-width: "+(J+"px), (min-height: 630px) and (min-width: ")+(z+"px) and (max-width: ")+(a+"px)");_.PK(this.hostElement).querySelector("#large-window-query").query="(min-height: 630px) and (min-width: "+(a+"px)");
_.PK(this.hostElement).querySelector("#watch-while-query").query="(min-width: "+I+"px)"},
calculateCurrentPlayerSize_:function(){var a=_.PK(this.hostElement).querySelector("#miniplayer-bar").firstChild;return a&&a.active||this.theater||_.K("web_watch_fullscreen_panels")&&this.fullscreen||!this.active||!this.windowSize_?new _.fB(NaN,NaN):_.xeO(this.windowSize_,this.videoHeightToWidthRatio_,this.isTwoColumns_&&(this.playlist||this.shouldStampChat))},
calculateNormalPlayerSize_:function(){return _.xeO(this.windowSize_,this.videoHeightToWidthRatio_,this.isTwoColumns_&&(this.playlist||this.shouldStampChat))},
detached:function(){_.Y8(this.watchController);this.watchController=void 0;this.deactivate_()},
activate_:function(){var a=this;this.onWindowResized_(_.bk());_.K("browse_skeleton_removal_on_watch_killswitch")||_.TZ("IS_SHELL_LOAD")&&_.O7E();this.theaterRequested_=this.theater;this.togglePageSwatchActive_();var z=_.jr(this);z.addEventListener("yt-player-updated",_.BK(this,this.onPlayerUpdated_));z.getPlayerPromise().then(function(I){a.playerApiReady_(I)});
_.K("kevlar_watch_flexy_playlist_manager")||(z=_.ab().resolve(_.wR),_.K("kevlar_watch_observe_playlist_navigations_killswitch")&&z.addEventListener("yt-navigate",_.BK(this,this.onYtNavigate_)),z.setPlaylistComponent(_.PK(this.hostElement).querySelector("#playlist")),z.addEventListener("yt-playlist-data-updated",_.BK(this,this.onYtPlaylistDataUpdated_)),this.onYtPlaylistDataUpdated_());_.GW.addLowPriorityJob(function(){_.PA(a.hostElement,"yt-autonav-pause-scroll")})},
deactivate_:function(){this.disconnectFromPlayer_();_.jr(this).removeEventListener("yt-player-updated",_.BK(this,this.onPlayerUpdated_));if(!_.K("kevlar_watch_flexy_playlist_manager")){var a=_.ab().resolve(_.wR);_.K("kevlar_watch_observe_playlist_navigations_killswitch")&&a.removeEventListener("yt-navigate",_.BK(this,this.onYtNavigate_));a.cancelVideoSkip();a.removeEventListener("yt-playlist-data-updated",_.BK(this,this.onYtPlaylistDataUpdated_))}this.loading&&this.toggleBodyScrolling_(!0);_.K("kevlar_watch_while")&&
this.updateMiniplayerBarVisibility_();this.schedulePlayerSizeUpdate_();_.PA(this.hostElement,"yt-autonav-pause-player",!1);a=_.jE();_.K("kevlar_exit_fullscreen_leaving_watch")&&a&&_.zb(a)},
disconnectFromPlayer_:function(){this.player&&(this.unlistenFromPlayerEvents(this.player,this.playerEvents_),this.player=null)},
onUpdatePlayerNextVideo_:function(a){this.player&&this.player.updateVideoData({rvs:a.rvs})},
getPageContents:function(a){return a&&a.contents&&a.contents.twoColumnWatchNextResults&&a.contents.twoColumnWatchNextResults.results&&a.contents.twoColumnWatchNextResults.results.results.contents},
getClarifyBox:function(){return this.clarifyBoxValue},
getLimitedState:function(){return this.limitedStateValue},
getMerchShelf:function(){return this.merchShelfValue},
getSingleColumn:function(){return this.singleColumnValue},
getOfferModule:function(a){return this.get("contents.twoColumnWatchNextResults.secondaryResults.secondaryResults.offerModule",a)},
onRetrieveLocation_:function(a,z){z.hasComments?z.locationRetrieved("/comment_service_ajax?action_get_comments=1&pbj=1",void 0):z.locationRetrieved("/related_ajax",void 0);a.stopPropagation()},
onSubscriptionChanged_:function(a,z){this.player&&(z?this.player.channelSubscribed():this.player.channelUnsubscribed())},
initCsi_:function(){_.dk("learning_journey_watch",["pbs","pbp","pbu"])},
getPlayerContainer:function(){this.playerContainerEl||(this.playerContainerEl=_.PK(this.hostElement).querySelector("#player-container"));return this.playerContainerEl},
getPlayer:function(){this.playerEl||(this.playerEl=_.PK(this.hostElement).querySelector("#ytd-plj-player"));return this.playerEl},
playerApiReady_:function(a){this.player=a;this.setPlayerState(a.getPlayerState());this.listenToPlayerEvents(this.player,this.playerEvents_);this.updatePlayerStartTime_();this.setPlayerTheaterMode_();this.onPlayerPresentingVideoDataChange_();this.handlePlayerUpdated_();_.K("external_fullscreen")&&this.updateFullerscreenEduButtonSubtleModeState_();(_.K("kevlar_unified_player")||_.K("kevlar_player_new_bootstrap_adoption"))&&_.ws()},
onFullerscreenEduClicked_:function(){this.scrollToAnimation_.start(0,186,500);this.fullerscreenEduButtonClickedThisPlayback_||(this.fullerscreenEduButtonClickedThisPlayback_=!0,this.incrementFullerscreenEduButtonCount_("yt-fullerscreen-edu-button-click-count"))},
setTheaterModeRequested:function(a,z){z=z===void 0?!0:z;_.jE()&&_.K("external_fullscreen")&&_.zb(document.documentElement);this.theaterRequested_=a;z&&_.AP("wide",a?"1":"0",-1);this.togglePageSwatchActive_();this.player&&this.setPlayerTheaterMode_();this.schedulePlayerSizeUpdate_();_.K("kevlar_watch_js_panel_height")&&this.schedulePanelMaxHeightUpdate_();_.ZF(this.hostElement,"yt-close-popup-action",["yt-tooltip-renderer"])},
togglePageSwatchActive_:function(){this.theater!==void 0&&this.active&&_.PA(this.hostElement,"yt-set-theater-mode-enabled",{enabled:this.theater})},
onWatchScroll_:function(){this.scrollThrottle_.fire();this.mastheadScrollThrottle.fire()},
setPlayerTheaterMode_:function(){try{this.player.setSizeStyle(!0,this.theater)}catch(a){_.Tx(a,typeof this.player),this.player&&_.Tx(a,this.player.setSizeStyle)}},
onPlayerTouchPanDown_:function(){if(this.active&&this.getScrollTop()<=0){var a;((a=this.player)==null?0:a.isFullscreen())?this.player.toggleFullscreen():_.ZF(this.hostElement,"yt-activate-miniplayer-from-watch-action")}},
hasPlaylist_:function(a,z){return this.loading?z:!!Object.keys(a).length},
autonavAllowed_:function(){return this.autonavCanceledSignal_?!1:!!this.get("contents.twoColumnWatchNextResults.autoplay.autoplay",this.data)},
youthereDataChanged_:function(a){if(a){a=_.C(a);for(var z=a.next();!z.done;z=a.next())z=z.value,z.youThereRenderer&&_.lva(this.youThereManager_,z.youThereRenderer)}},
setPlaylistData_:function(a){return a||{}},
userEngagementConfigDataChanged_:function(a){if(a)if(a.lowUserEngagementAction==="LOW_USER_ENGAGEMENT_ACTION_LOWER_QUALITY"){var z=this.youThereManager_;_.IO()<a.lowEngagementThresholdMs||_.yPI(z,!0)}else a.lowUserEngagementAction==="LOW_USER_ENGAGEMENT_ACTION_PAUSE_AUTOPLAY"&&_.ZF(this.hostElement,"yt-autonav-pause-user-engagement",[a])},
isPlayerUnavailable_:function(a,z,I){return!!a&&!this.isVideoPlayable_(a,I)&&!z},
getPlayerOverlays_:function(a){return(a==null?void 0:a.playerOverlays)||null},
isVideoPlayable_:function(a,z){if(!a)return!1;var I=a.status==="OK"||a.status==="LIVE_STREAM_OFFLINE",J=this.get("errorScreen.playerLegacyDesktopYpcTrailerRenderer",a)||this.get("errorScreen.ypcTrailerRenderer",a);a=this.get("errorScreen.playerLegacyDesktopYpcOfferRenderer",a);var r;z=z==null?void 0:(r=z.playerOverlayRenderer)==null?void 0:r.gatedActionsOverlayRenderer;return!!I||!!J||!!a||!!z},
hasWatchNextResponseErrorRenderer:function(a){var z=this.getPageContents(a),I,J,r,P,N;return!(a==null?0:(I=a.contents)==null?0:(J=I.twoColumnWatchNextResults)==null?0:J.secondaryResults)&&!!((r=z[0])==null?0:(P=r.itemSectionRenderer)==null?0:(N=P.contents[0])==null?0:N.backgroundPromoRenderer)},
isLiveStreamOffline_:function(a){return a?a.status==="LIVE_STREAM_OFFLINE":!1},
shouldProceedToNextVideo_:function(a,z,I){var J=!!this.get("contents.twoColumnWatchNextResults.secondaryResults.secondaryResults.offerModule",z),r=["AGE_CHECK_REQUIRED","CONTENT_CHECK_REQUIRED","AGE_VERIFICATION_REQUIRED"];r=_.K("web_no_skip_video_on_verification_checks")?(a==null?void 0:a.status)&&r.includes(a.status):a&&a.status==="AGE_CHECK_REQUIRED";var P=this.get("skip.playabilityErrorSkipConfig.skipOnPlayabilityError",a);P==void 0&&(P=!0);!I||this.isVideoPlayable_(a,this.getPlayerOverlays_(z))||
J||r||!P||_.ab().resolve(_.wR).skipVideo()},
getServiceTrackingParams:function(){if(this.data&&this.data.responseContext)return this.data.responseContext.serviceTrackingParams},
onPlayerUpdated_:function(){this.handlePlayerUpdated_();_.G9a()},
onPlayerFeedbackStartRequest_:function(a){_.ZF(this.hostElement,"yt-feedback-dialog-requested",[{customProductData:a}])},
onPlayerFeedbackArticleRequest_:function(a){_.ZF(this.hostElement,"yt-help-dialog-requested",[a])},
onPlayerYpcContentRequest_:function(){var a,z,I,J,r,P,N,u,E=((a=this.data)==null?NaN:(z=a.contents)==null?NaN:(I=z.twoColumnWatchNextResults)==null?NaN:(J=I.secondaryResults)==null?NaN:(r=J.secondaryResults)==null?NaN:(P=r.offerModule)==null?NaN:(N=P.tvfilmOfferModuleRenderer)==null?NaN:(u=N.actionButtons)==null?NaN:u.length)-1;a=[".offerButton.buttonRenderer.",".actionButtons."+(E>=0?E:0)+".buttonRenderer."];z=_.C(["episodeOfferModuleRenderer","movieOfferModuleRenderer","unlimitedOfferModuleRenderer",
"liveOfferModuleRenderer","tvfilmOfferModuleRenderer"]);for(I=z.next();!I.done;I=z.next())for(I=I.value,J=_.C(a),r=J.next();!r.done;r=J.next())if(r="contents.twoColumnWatchNextResults.secondaryResults.secondaryResults.offerModule."+I+r.value,r=this.get(r+"navigationEndpoint",this.data)||this.get(r+"serviceEndpoint",this.data)||this.get(r+"command",this.data)){_.fw(r,this.hostElement);return}},
onPlayerAutonavPauseRequest_:function(a){_.PA(this.hostElement,"yt-autonav-pause-player",a)},
onPlayerPlaying_:function(){this.onPlayingCallbacks_.forEach(function(a){a()});
this.onPlayingCallbacks_.length=0},
onAdStateChange_:function(a){switch(a){case 3:this.clearPlayerLoadingState_();break;case 1:this.clearPlayerLoadingState_(),this.onPlayerPlaying_()}},
onPlayerStateChange_:function(a){switch(a){case 3:this.clearPlayerLoadingState_();break;case 1:this.clearPlayerLoadingState_();this.onPlayerPlaying_();break;case 0:_.PA(this.hostElement,"yt-autonav-pause-player-ended")}this.setPlayerState(a)},
setPlayerState:function(a){_.qo().dispatch(_.A0i(a))},
onPlayerSubscribe_:function(a){_.ZF(this.hostElement,"yt-player-subscribe",[a])},
onPlayerUnsubscribe_:function(a){_.ZF(this.hostElement,"yt-player-unsubscribe",[a])},
onPlayerAdYtShowToast_:function(a){_.ZF(this.hostElement,"yt-open-popup-action",[{openPopupAction:{popup:{notificationActionRenderer:a.notificationActionRenderer},popupType:"TOAST"}},this])},
getAlerts_:function(){return this.alertsValue},
getPlayerMicroformatRenderer_:function(a){if(a)return a},
computeCommentsEntryPointHeaderRenderer:function(){if(this.commentTeaserEnabled)return this.defaultTwoColumnLayout?void 0:this.commentsEntryPointHeaderRendererValue},
computeShowExpandableMetadata:function(a){return!_.K("web_watch_move_summary_to_sd")&&!!a},
computeWatchMetadataRefresh:function(){return _.K("kevlar_watch_metadata_refresh")&&this.videoPrimaryInfoRenderer?!0:!1},
watchNextSecondaryResultsChanged:function(){if(!this.useProviderForSecondaryResultsRenderer){var a,z,I,J;this.watchNextSecondaryResults=(a=this.data)==null?void 0:(z=a.contents)==null?void 0:(I=z.twoColumnWatchNextResults)==null?void 0:(J=I.secondaryResults)==null?void 0:J.secondaryResults}},
setRichGridRendererData:function(a){this.richGridRendererData=a},
computeVideoPrimaryInfoRenderer:function(){return this.videoPrimaryInfoRendererValue},
computeVideoSecondaryInfoRenderer:function(){return this.videoSecondaryInfoRendererValue},
computeInlineStructuredDescriptionData:function(){var a,z=(a=this.data)==null?void 0:a.engagementPanels;if(z==null?0:z.length){a=null;z=_.C(z);for(var I=z.next();!I.done;I=z.next()){I=I.value;var J=void 0;if(((J=I.engagementPanelSectionListRenderer)==null?void 0:J.targetId)==="engagement-panel-structured-description"){a=I;break}}var r,P,N;a=(r=a)==null?void 0:(P=r.engagementPanelSectionListRenderer)==null?void 0:(N=P.content)==null?void 0:N.structuredDescriptionContentRenderer;if(a==null?0:a.items){r=
[];P=_.C(a.items);for(N=P.next();!N.done;N=P.next()){N=N.value;if(!_.K("sd_horizontal_list_show_nav_killswitch")){var u=J=I=z=a=void 0,E=void 0,O=(a=N.horizontalCardListRenderer)==null?void 0:(z=a.header)==null?void 0:(I=z.richListHeaderRenderer)==null?void 0:(J=I.navigationButton)==null?void 0:(u=J.buttonRenderer)==null?void 0:(E=u.command)==null?void 0:E.commandExecutorCommand;O&&O.commands&&(O.commands=O.commands.filter(function(f){return!_.H(f,_.FzO)}))}N.expandableVideoDescriptionBodyRenderer||
N.videoDescriptionHeaderRenderer||r.push(N)}return{items:r}}}},
constructWarning_:function(a){return{text:_.Mo(a),type:"WARNING"}},
isPlaShelfEnabled_:function(a){if((this.get("adPlacements",a)||[]).length)return!0;a=this.get("playerAds",a)||[];return!(!a.length||!this.get("playerLegacyDesktopWatchAdsRenderer.playerAdParams.allowBelowThePlayerCompanion",a[0]))},
resetAutonavCanceledForNewPlayback_:function(){this.autonavCanceledSignal_=!1},
onThrottledScroll_:function(){var a=this;_.PA(this.hostElement,"yt-autonav-pause-scroll");this.setComments_();_.K("kevlar_watch_while")&&this.updateMiniplayerBarVisibility_();var z=this.getScrollTop()>0;this.gestures_&&(z?this.gestures_.detach():this.gestures_.attach());z!==this.showFullerscreenEdu_&&_.K("external_fullscreen_with_edu")&&this.fullscreen&&(this.showFullerscreenEdu_=z,_.jr(this).getPlayerPromise().then(function(I){I.updateFullerscreenEduButtonVisibility(a.getScrollTop()>0)}))},
onMastheadThrottledScroll:function(){_.PA(this.hostElement,"yt-watch-masthead-scroll",this.getScrollTop())},
onYtPageDataWillUpdate_:function(){this.preparePageReset_()},
preparePageReset_:function(){this.clearScheduledCommentJobs_()},
initComments_:function(){var a=this;this.commentsReady=!1;_.GW.cancelJob(this.setCommentsJobId_);this.setCommentsJobId_=_.b9(_.GW,function(){a.setComments_()},1E3)},
setComments_:function(){if(!_.K("kevlar_watch_flexy_comments_manager")&&!this.commentsReady){_.Xz("cmi");_.GW.cancelJob(this.setCommentsJobId_);var a=this.getPageContents(this.data);if(a&&a.length){a=_.C(a);for(var z=a.next();!z.done;z=a.next())if(z=z.value,this.get("itemSectionRenderer.sectionIdentifier",z)==="comment-item-section"){this.comments=z.itemSectionRenderer;this.canScheduleCommentJobs_=!0;break}}this.commentsReady=!0}},
commentsReadyChanged_:function(){this.commentsReady&&_.PA(this.hostElement,"yt-watch-comments-ready")},
clearScheduledCommentJobs_:function(){_.K("kevlar_cancel_scheduled_comment_jobs_on_navigate")&&(this.canScheduleCommentJobs_=!1)},
showMetadataPlaceholder_:function(){_.K("kevlar_metadata_reset_on_nav")&&this.hostElement.classList.remove("hide-skeleton")},
clearComments_:function(){this.doRemoveComments_();_.Xz("cmc")},
doRemoveComments_:function(){this.comments={};_.K("kevlar_watch_hide_comments_while_panel_open")&&(this.hideComments=!1)},
setPlayerAds_:function(){_.GW.cancelJob(this.clearPlayerAdsJobId_);this.playerAds=this.get("playerAds",this.playerData)},
clearPlayerAds_:function(){_.GW.cancelJob(this.clearPlayerAdsJobId_);this.playerAds=void 0},
onYtNavigate_:function(a,z){var I=_.H(z.endpoint,_.MZ);I&&(!(z=this.get("data.currentVideoEndpoint.watchEndpoint"))||I.videoId!==z.videoId||I.playlistId&&I.playlistId!==z.playlistId||I.index!==void 0&&I.index!==z.index||typeof I.startTimeSeconds!=="number"||(a.stopPropagation(),this.setScrollTop(0),_.jr(this).getPlayerPromise().then(function(J){var r=I.startTimeSeconds;J.seekTo(r);J.wakeUpControls();r<J.getDuration()&&J.playVideo()})))},
updatePlayerStartTime_:function(){var a=_.O1x();"t"in a&&(a=_.vja(a.t),this.player.seekTo(a,!0))},
updateTitleFromWatchNext:function(a){a=this.getPageContents(a);var z,I;(a=_.cd(a==null?void 0:(z=a[0])==null?void 0:(I=z.videoPrimaryInfoRenderer)==null?void 0:I.title))&&_.PA(this.hostElement,"yt-update-title",a)},
updateTitle_:function(a){a=this.get("videoDetails.title",a)||"";_.PA(this.hostElement,"yt-update-title",a)},
syncWithRemoteVideo_:function(a,z,I){if(this.active&&this.player){var J=this.player.getVideoData();if(J.video_id===I&&(I=J.list,_.K("polymer_enable_mdx_queue")&&I&&I.startsWith("RQ")&&(I=void 0),J.video_id!==a||I!=z)){var r;_.K("kevlar_player_watch_endpoint_navigation")?r=_.yiG(_.V6O(a,z)):r=this.buildWatchEndpoint_(a,z);_.PA(this.hostElement,"yt-navigate",{endpoint:r,isRemotePlayback:!0})}}},
buildWatchEndpoint_:function(a,z,I){return _.jx(a,z,I)},
initDclkstatus_:function(){_.i1x()},
attachWatchPageSkeleton_:function(){var a=document.querySelector("#watch-page-skeleton");if(a){var z=a.querySelector("#primary-info"),I=a.querySelector("#secondary-info"),J=a.querySelector("#related");z&&_.PK(this.hostElement).querySelector("#info-skeleton").appendChild(z);I&&_.PK(this.hostElement).querySelector("#meta-skeleton").appendChild(I);J&&(_.PK(this.hostElement).querySelector("#related-skeleton").appendChild(J),this.watchNextSkeletonEl_=J);_.fo(a)}},
handlePlayerUpdated_:function(){_.jr(this).focusOnPlayer()},
watchNextShownItemsAddedOrRemoved_:function(a,z){if(this.watchNextSkeletonEl_&&typeof z!=="undefined"){var I=this.watchNextSkeletonEl_.children,J=a&&a.indexSplices.length?a.indexSplices[0].index:0;a=Math.min(this.watchNextShownItems.length,I.length);z||(J=0,a=I.length);for(z=J;z<a;z++)I[z].classList.add("hidden")}},
onPlayerFullscreenChange_:function(a){_.K("external_fullscreen")||_.ZF(this.hostElement,"yt-player-fullscreen",[a.fullscreen])},
onFullscreenChange_:function(a){this.fullscreen=a;this.gestures_&&this.gestures_.update(this.fullscreen);var z=_.jr(this);z.getPlayerPromise().then(function(I){I.setFauxFullscreen(!!_.jE())});
this.updateFullBleedElementLocations();a&&(z.focusOnPlayer(),this.fullerscreenEduButtonShownThisPlayback_||(this.fullerscreenEduButtonShownThisPlayback_=!0,this.incrementFullerscreenEduButtonCount_("yt-fullerscreen-edu-button-shown-count")))},
computeShouldStampChat_:function(a,z){return!!this.get("data.contents.twoColumnWatchNextResults.conversationBar")&&!z},
computeIsDonationShelfCollapsed_:function(a){return a},
computeShouldShowMerchShelf:function(a,z){return z&&!!a},
computeResponseHasComments:function(a){var z,I,J,r,P;return!!(a==null?0:(z=a.contents)==null?0:(I=z.twoColumnWatchNextResults)==null?0:(J=I.results)==null?0:(r=J.results)==null?0:(P=r.contents)==null?0:P.some(function(N){var u;return(N==null?void 0:(u=N.itemSectionRenderer)==null?void 0:u.sectionIdentifier)==="comment-item-section"}))},
computeShowComments_:function(a,z){this.responseHasComments=this.computeResponseHasComments(this.data);return!!a&&!!Object.keys(a).length&&!z},
identity:_.T3,onWindowResized_:function(a){this.windowSize_=a;this.active&&(this.schedulePlayerSizeUpdate_(!0),_.K("kevlar_watch_js_panel_height")&&this.schedulePanelMaxHeightUpdate_());_.K("kevlar_watch_while")&&this.updateMiniplayerBarVisibility_()},
onPlayerPresentingVideoDataChange_:function(a){var z=this;a&&a.type!=="dataloaded"&&a.type!=="dataupdated"||_.jr(this).getPlayerPromise().then(function(I){var J=I.getPlayerState();J!==5&&J!==0&&(I=1/I.getVideoAspectRatio(),z.videoHeightToWidthRatio_!==I&&(z.videoHeightToWidthRatio_=I))})},
schedulePlayerSizeUpdate_:function(a){var z=this,I=_.K("kevlar_watch_while_v2")||_.K("web_watch_pip"),J=function(){if(z.watchMetadata){var r,P;(P=(r=z.watchMetadata).resize)==null||P.call(r)}_.jr(z).getPlayerPromise().then(function(N){if(_.K("kevlar_set_internal_player_size")){if(!I||!z.isMiniplayerActive()){var u=z.calculateCurrentPlayerSize_();N.setInternalSize(u.width,u.height)}}else N.setSize(NaN,NaN);_.K("kevlar_watch_while")&&z.updateWatchWhileScrollThreshold_()})};
a?J():_.hE(_.GW,J)},
secondaryColumnModulePresenceChanged_:function(){this.isAttached&&this.schedulePlayerSizeUpdate_()},
onYtShowSurvey_:function(a){this.set("data.survey",a.detail)},
onYtShowSurveyCommand_:function(a){this.set("data.survey",_.H(a,_.UeI).survey)},
onDownloadedVideoDeleted:function(a){var z=this,I,J;return _.t(function(r){if(r.nextAddress==1){if(!z.active||(I=z.playerData)==null||!I.offlineState||z.videoId!==a)return r.return();(J=z.player)==null||J.stopVideo();_.hq().navigatingAwayFromWatchDeletedVideo=!0;_.fw(_.cBO,z.hostElement);return r.yield(_.hq().navigationFinishPromise,2)}_.hq().navigatingAwayFromWatchDeletedVideo=!1;_.nu(r)})},
updateWatchWhileScrollThreshold_:function(){if(this.windowSize_){var a;this.theater?a=_.TO(.5625*this.windowSize_.width,480,this.windowSize_.height-185):a=this.calculateNormalPlayerSize_().height+24;this.watchWhileScrollThreshold_!==a&&(this.watchWhileScrollThreshold_=a,this.updateMiniplayerBarVisibility_())}},
updateMiniplayerBarVisibility_:function(){var a=_.PK(this.hostElement).querySelector("ytd-miniplayer-bar-renderer");if(this.windowSize_&&a){var z=this.windowSize_.height>=624,I=this.active?this.getScrollTop():0;!a.active&&z&&I>=this.watchWhileScrollThreshold_?(a.activate(this.getPlayer()),this.schedulePlayerSizeUpdate_()):a.active&&(!z||I<this.watchWhileScrollThreshold_&&!_.jE())&&(a.deactivate().appendTo(this.getPlayerContainer()),this.schedulePlayerSizeUpdate_())}},
isTwoColumnsChanged_:function(a,z){if(a!==!0||z!==void 0){a=!_.K("live_chat_over_engagement_panels");z=_.PK(this.hostElement).querySelector("#chat-container");var I=_.PK(this.hostElement).querySelector("#plj-sidebar"),J=_.PK(this.hostElement).querySelector("#panels"),r=_.PK(this.hostElement).querySelector("#plj-panels"),P=_.PK(this.hostElement).querySelector("#plj-playlist"),N=_.PK(this.hostElement).querySelector("#alerts"),u=_.PK(this.hostElement).querySelector("#playlist"),E=_.PK(this.hostElement).querySelector("#related"),
O=_.PK(this.hostElement).querySelector("#donation-shelf"),f=_.PK(this.hostElement).querySelector("#comments");this.isTwoColumns_?(N=_.PK(this.hostElement).querySelector("#secondary-inner"),N.appendChild(I),I.appendChild(P),P.appendChild(u),I.appendChild(r),a&&N.appendChild(J),_.K("web_watch_theater_chat")||N.appendChild(z),a||N.appendChild(J),N.appendChild(O),N.appendChild(E)):(a&&_.$B(J,N),_.$B(u,N),_.K("web_watch_theater_chat")||_.$B(z,N),a||_.$B(J,N),_.$B(O,N),f&&(r&&_.$B(r,f),_.$B(E,f)));_.K("kevlar_watch_js_panel_height")&&
this.active&&this.schedulePanelMaxHeightUpdate_()}},
watchWhileWindowSizeSufficientChanged:function(){_.K("web_watch_theater_chat")&&this.updateChatLocation()},
updateChatLocation:function(){if(_.K("web_watch_theater_chat")){var a=_.PK(this.hostElement).querySelector("#chat-container"),z=this.theater&&!this.fullscreen||_.K("web_watch_fullscreen_panels")&&this.fullscreen;this.watchWhileWindowSizeSufficient&&this.liveChatPresentAndExpanded&&z?_.K("web_watch_theater_chat_beside_player")?(z=_.PK(this.hostElement).querySelector("#panels-full-bleed-container"),(a==null?void 0:a.parentElement)!==z&&z.append(a),this.panelsBesidePlayer=!0):_.K("web_watch_theater_fixed_chat")&&
(z=_.PK(this.hostElement).querySelector("#columns"),(a==null?void 0:a.parentElement)!==z&&z.append(a),this.fixedPanels=!0):(_.K("web_watch_theater_chat_beside_player")?this.panelsBesidePlayer=!1:_.K("web_watch_theater_fixed_chat")&&(this.fixedPanels=!1),z=_.PK(this.hostElement).querySelector("#playlist"),a&&z?_.XO(a,z):_.Xd(new _.Fn("Missing element when updating chat location",{"chatContainer defined":!!a,"playlist defined":!!z})));this.updatePageMediaQueries();this.schedulePlayerSizeUpdate_()}},
computeHasMetadata:function(a,z){return _.K("sw_metadata_vis_toggle_ks")?!0:!!a||!!z},
computeForceDarkPanelTheme:function(a){return _.K("web_watch_theater_chat_beside_player_dark")?!document.documentElement.hasAttribute("dark")&&a:!1},
safeUpdateStyles:function(a){try{_.uK(this.hostElement,a)}catch(z){_.Xd(z)}},
videoHeightToWidthRatioChanged_:function(a,z){z&&(this.safeUpdateStyles({"--ytd-watch-flexy-width-ratio":1,"--ytd-watch-flexy-height-ratio":this.videoHeightToWidthRatio_}),this.schedulePlayerSizeUpdate_(),_.K("kevlar_watch_js_panel_height")&&this.schedulePanelMaxHeightUpdate_())},
onYtInitialVideoAspectRatio_:function(a){this.videoHeightToWidthRatio_=1/a},
computeIsVerticalVideo_:function(a){return a>=1},
computeIsFourThreeToSixteenNineVideo_:function(a){return a<=.7501&&a>=.5624},
computeIsExtraWideVideo_:function(a){return a<.5624},
onYtUserActivity_:function(){this.youThereManager_.onUserActivity()},
handleSignalActionPausePlayer_:function(){this.active&&_.jr(this).pause()},
handleSignalActionPlayPlayer_:function(){this.active&&_.jr(this).play()},
handleSignalActionAcknowledgeYouThere_:function(){_.k9x(this.youThereManager_)},
incrementFullerscreenEduButtonCount_:function(a){var z=_.nN(a)||0;_.s4(a,z+1,31536E3);this.updateFullerscreenEduButtonSubtleModeState_()},
updateFullerscreenEduButtonSubtleModeState_:function(){var a=_.nN("yt-fullerscreen-edu-button-click-count")||0,z=_.nN("yt-fullerscreen-edu-button-shown-count")||0,I=_.Ib("external_fullscreen_button_shown_threshold"),J=a>=_.Ib("external_fullscreen_button_click_threshold")||z>=I;_.jr(this).getPlayerPromise().then(function(r){r.updateFullerscreenEduButtonSubtleModeState(J)})},
resetFullerscreenEduButtonForNewPlayback_:function(){this.fullerscreenEduButtonShownThisPlayback_=this.fullerscreenEduButtonClickedThisPlayback_=!1},
computePlaylistData_:function(a,z){return z},
onYtPlaylistDataUpdated_:function(){this.externalPlaylistData_=_.ab().resolve(_.wR).getPlaylistData()||{}},
schedulePanelMaxHeightUpdate_:function(){var a=this;this.panelMaxHeightUpdateJob_&&_.GW.cancelJob(this.panelMaxHeightUpdateJob_);this.panelMaxHeightUpdateJob_=_.GW.addLowPriorityJob(function(){a.panelMaxHeightUpdateJob_=0;var z;!a.isTwoColumns_||a.theater||a.fullscreen?z=460:z=a.calculateNormalPlayerSize_().height;var I=z+"px";_.K("live_chat_taller_height")&&!a.theater&&(I="calc(100vh - var(--ytd-toolbar-height) -\n                        (var(--ytd-margin-6x) * 2))");_.K("live_chat_medium_height")&&
!a.theater&&(I="calc(100vh - var(--ytd-toolbar-height) - 144px)");_.K("live_chat_scaled_height")&&!a.theater&&(I="calc(100vh - var(--ytd-toolbar-height) - 238px)");a.safeUpdateStyles({"--ytd-watch-flexy-panel-max-height":z+"px","--ytd-watch-flexy-chat-max-height":I,"--ytd-watch-flexy-structured-description-max-height":z+"px","--ytd-watch-flexy-comments-panel-max-height":z+"px","--ytd-comments-engagement-panel-content-height":z+"px"})})},
onYtShowEngagementPanelScrimAction_:function(a){this.engagementPanelScrimOnClickCommands_=this.get("showEngagementPanelScrimAction.onClickCommands",a)||null;this.showEngagementPanelScrim_=!0},
onYtHideEngagementPanelScrimAction_:function(){this.engagementPanelScrimOnClickCommands_=null;this.showEngagementPanelScrim_=!1},
onEngagementPanelScrimClick_:function(){this.engagementPanelScrimOnClickCommands_&&_.tR(this.hostElement,this.engagementPanelScrimOnClickCommands_,this.hostElement)},
showEngagementPanelScrimChanged_:function(a){var z=_.PK(this.hostElement).querySelector("#engagement-panel-scrim");a?z.addEventListener("tap",_.BK(this,this.onEngagementPanelScrimClick_)):z.removeEventListener("tap",_.BK(this,this.onEngagementPanelScrimClick_))},
onGetCurrentVideoIdAction_:function(){if(this.active)return this.videoId},
onYtScrollToWatchElement_:function(a){if(this.hostElement.contains(a)&&!this.scrollToAnimation_.isAnimating()){var z=a.offsetTop-24;a=a.offsetTop+a.offsetHeight+24;var I=this.getPageScrollingElement(),J=this.getScrollTop(),r=J+I.clientHeight-56;if(z<J+56)z-=56;else if(a>r)z=a-I.clientHeight;else return;this.scrollToAnimation_.start(this.getScrollTop(),Math.max(0,z),500)}},
onYtSignalActionScrollToComments:function(){var a=this.hostElement.querySelector("#comments");if(a&&!this.scrollToAnimation_.isAnimating()){a=a.offsetTop-56-24;if(_.K("kevlar_comment_teaser_scroll_to_midpoint")&&(a-=_.Az().height/3,a<this.getScrollTop()))return;this.scrollToAnimation_.start(this.getScrollTop(),Math.max(0,a),500)}},
onYtEngagementPanelVisibleChanged:function(a,z,I){this.active&&this.trackEngagementPanelVisibility&&!_.W5x.includes(I)&&(z==="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED"&&this.visiblePanelIdentifiers_.add(I),z!=="ENGAGEMENT_PANEL_VISIBILITY_COLLAPSED"&&z!=="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"||this.visiblePanelIdentifiers_.delete(I),this.engagementPanelExpanded=this.visiblePanelIdentifiers_.size>0)},
computeLegacyMetadataClass:function(a){return a?"":"watch-active-metadata"},
computeNewMetadataClass:function(a){return a?"watch-active-metadata":""},
computeFullBleedPlayer:function(a,z){return a||z},
computeDefaultLayout:function(a){return!a},
computeDefaultTwoColumnLayout:function(a,z){return!a&&z},
computeWatchWhilePanelsActive:function(a,z){return a||z},
computeNoBorderOnChat:function(a){return _.K("web_watch_theater_chat_no_border")&&a},
computeLiveChatPresentAndExpanded:function(a,z){return a&&!z},
computePanelExpanded:function(a,z,I){return a||z||I},
onChangeMarkersVisibility:function(a){_.jr(this).getPlayerPromise().then(function(z){var I;(I=z.changeMarkerVisibility)==null||I.call(z,_.H(a,_.pz).isVisible||!1,_.H(a,_.pz).entityKeys||[],_.H(a,_.pz).visibilityRestrictionMode||void 0)})},
onYtChatCollapsedChanged:function(a){this.liveChatCollapsed=a.detail;_.qo().dispatch(_.dej(a.detail))},
provideRenderingData:function(a,z){switch(a){case "SINGLE_COLUMN_CONTENTS":this.singleColumnValue=z;break;case "PRIMARY_INFO":_.K("kevlar_watch_metadata_refresh_no_old_primary_data")||(this.info=z);this.videoPrimaryInfoRendererValue=z==null?void 0:z.videoPrimaryInfoRenderer;break;case "SECONDARY_INFO":_.K("kevlar_watch_metadata_refresh_no_old_secondary_data")||(this.meta=z);this.videoSecondaryInfoRendererValue=z==null?void 0:z.videoSecondaryInfoRenderer;break;case "COMMENTS_ENTRY_POINT_HEADER":this.commentsEntryPointHeaderRendererValue=
z;break;case "CLARIFICATION":this.clarifyBoxValue=z;break;case "LIVE_CHAT":this.conversationBar=z;break;case "INFO_PANEL_BELOW_METADATA":this.infoPanelBelowMetadata=z;break;case "PLAYLIST":this.externalPlaylistData_=z!=null?z:{};break;case "MERCH_SHELF":this.merchShelfValue=z==null?void 0:z.merchandiseShelfRenderer;break;case "TICKET_SHELF":this.ticket=z;break;case "OFFER_MODULE":this.offerModule=z;break;case "LIMITED_STATE":this.limitedStateValue=z;break;case "DONATION_SHELF":this.donation=z;break;
case "ALERTS":this.alertsValue=z;break;case "COMMENTS":this.comments=z;break;case "WATCH_NEXT_SECONDARY_RESULTS":this.watchNextSecondaryResults=z;break;case "ENGAGEMENT_PANELS":this.engagementPanels=z;break;case "INLINE_ENGAGEMENT_PANELS":this.inlineEngagementPanels=z;break;case "RICH_GRID_RENDERER":this.richGridRendererData=z;break;case "EXPANDABLE_METADATA":this.expandableMetadata=z;break;case "VIDEO_METADATA_CAROUSEL":this.videoMetadataCarousel=z}},
toggleCinematicsActive:function(a){this.cinematicsActive=a},
isMiniplayerActive:function(){return _.ab().resolve(_.UJ).isMiniplayerActive()},
getLearningJourneyEngagementPanels:function(a){return ACu.map(function(z){return a.find(function(I){var J;return(I==null?void 0:(J=I.engagementPanelSectionListRenderer)==null?void 0:J.targetId)===z})}).filter(function(z){return z!==void 0})},
getNonLearningJourneyEngagementPanels:function(a){return a.filter(function(z){var I;return!ACu.includes((z==null?void 0:(I=z.engagementPanelSectionListRenderer)==null?void 0:I.targetId)||"")})}}];var s34;var em=function(){var a=_.G.apply(this,arguments)||this;a.flexy=!0;a.learningJourney=!0;a.roundedInfoPanel=!0;a.viewTransitionEnabled=_.K("enable_player_resize_transition");a.smallerChatMinHeight=_.K("live_chat_smaller_min_height");a.cinematicTheaterMode=_.K("web_cinematic_theater_mode");a.transparentTheaterMode=_.K("web_transparent_theater_mode");a.cinematicFullscreen=_.K("web_cinematic_fullscreen");a.useLargerMaxPlayerValue=_.K("kevlar_flexy_use_larger_player_value");a.cinematicFullscreenV2=_.K("web_cinematic_fullscreen_v2");
a.isDarkTheme=document.documentElement.hasAttribute("dark");a.theaterLargerPlayer=_.K("web_watch_theater_larger_player");a.defaultCollapsePlaylist=_.K("web_watch_default_collapse_playlist");a.enableCanvasLayout=_.K("web_enable_canvas_on_learning_journey");return a};
_.b(em,_.G);_.Z=em.prototype;_.Z.updateTheaterValue=function(){this.ytdWatchBehavior.onTheaterReduxValueUpdate(!!this.theaterValue)};
_.Z.updateFullscreenValue=function(){this.ytdWatchBehavior.onFullscreenReduxValueUpdate(!!this.fullscreenValue)};
_.Z.updateScrollTopValue=function(){this.ytdWatchBehavior.onScrollReduxValueUpdate(this.scrollTopValue||0)};
_.Z.updateMiniplayerIsActiveValue=function(){this.ytdWatchBehavior.onMiniplayerActiveReduxValueUpdate(!!this.miniplayerIsActiveValue)};
_.Z.ready=function(){var a=this,z=function(){a.onColumnScroll()};
this.primary.addEventListener("scroll",z);this.secondary.addEventListener("scroll",z)};
_.Z.onColumnScroll=function(){this.ytRendererBehavior.markDirty()};
_.Z.updateIsTwoColumnsFromBinding=function(a){_.K("web_watch_update_narrow_width_killswitch")||_.qo().dispatch(_.OZI(!a.detail.value));this.ytdWatchBehavior.isTwoColumns_=a.detail.value};
_.Z.updateFlexySmallWindowFromBinding=function(a){this.ytdWatchBehavior.flexySmallWindow_=a.detail.value};
_.Z.updateFlexyLargeWindowFromBinding=function(a){this.ytdWatchBehavior.flexyLargeWindow_=a.detail.value};
_.Z.updateWatchWhileWindowSizeSufficientFromBinding=function(a){this.ytdWatchBehavior.watchWhileWindowSizeSufficient=a.detail.value};
_.Z.updateWatchNextCanShowMoreFromBinding=function(a){this.ytdWatchBehavior.watchNextCanShowMore=a.detail.value};
_.Z.updateShownItemsFromBinding=function(a){a.detail.path?this.set(a.detail.path,a.detail.value):this.ytdWatchBehavior.watchNextShownItems=a.detail.value};
_.Z.getElement=function(a){switch(a){case "PLAYER":return this.ytdPlayer;case "PLAYLIST_PANEL":return this.JSC$23019_ytdPlaylistPanelRenderer;case "CINEMATICS":return this.JSC$23019_cinematics;case "PLAYER_CONTAINER":return this.playerContainer;case "COMMENTS":return this.ytdComments}};
_.eH.Object.defineProperties(em.prototype,{showBrowseResponse:{configurable:!0,enumerable:!0,get:function(){return!!this.browseData&&!this.playerData&&this.enableCanvasLayout}},
showWatchResponse:{configurable:!0,enumerable:!0,get:function(){return!!this.playerData||!this.enableCanvasLayout}},
cinematicLightTheme:{configurable:!0,enumerable:!0,get:function(){var a;if((a=this.data)==null||!a.pageVisualEffects)return!1;for(var z=0;z<this.data.pageVisualEffects.length;z++)if(a=_.H(this.data.pageVisualEffects[z],_.$W))return z=void 0,(z=a.config)==null?void 0:z.enableInLightTheme;return!1}},
hasLearningJourneyPanels:{configurable:!0,enumerable:!0,get:function(){var a;return((a=this.learningJourneyEngagementPanels)==null?void 0:a.length)>0}},
backButtonData:{configurable:!0,enumerable:!0,get:function(){var a,z=(a=this.learningJourneyEngagementPanels)==null?void 0:a.find(function(n){var F;return(n==null?void 0:(F=n.engagementPanelSectionListRenderer)==null?void 0:F.panelIdentifier)==="learning-journey-engagement-panel"});
if(z){var I,J,r,P,N,u,E,O,f;if(a=(O=((E=(N=((P=z==null?void 0:(I=z.engagementPanelSectionListRenderer)==null?void 0:(J=I.content)==null?void 0:(r=J.sectionListRenderer)==null?void 0:r.contents)!=null?P:[])[0])==null?void 0:(u=N.itemSectionRenderer)==null?void 0:u.contents)!=null?E:[])[0])==null?void 0:(f=O.accordionViewModel)==null?void 0:f.onTitleTap){var A=_.o0(a);if(A)return{type:"filled",style:"mono",state:"active",size:"M",iconPosition:"icon-only",onTap:function(){_.Og.instance.resolveCommand(A)}}}}}}});
_.eH.Object.defineProperties(em,{template:{configurable:!0,enumerable:!0,get:function(){if(s34===void 0){var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-watch-learning-journey--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e\n<iron-media-query id="two-column-query" query-matches="[[isTwoColumns_]]" on-query-matches-changed="updateIsTwoColumnsFromBinding" class="style-scope ytd-watch-learning-journey"></iron-media-query>\n<iron-media-query id="small-window-query" query-matches="[[flexySmallWindow_]]" on-query-matches-changed="updateFlexySmallWindowFromBinding" class="style-scope ytd-watch-learning-journey">\n</iron-media-query>\n<iron-media-query id="large-window-query" query-matches="[[flexyLargeWindow_]]" on-query-matches-changed="updateFlexyLargeWindowFromBinding" class="style-scope ytd-watch-learning-journey">\n</iron-media-query>\n<iron-media-query id="watch-while-query" query-matches="[[watchWhileWindowSizeSufficient]]" on-query-matches-changed="updateWatchWhileWindowSizeSufficientFromBinding" class="style-scope ytd-watch-learning-journey"></iron-media-query>\n\n<div id="microformat" class="style-scope ytd-watch-learning-journey"></div>\n\n<div id="miniplayer-bar" class="style-scope ytd-watch-learning-journey"></div>\n\n<div id="full-bleed-container" hidden="[[singleColumn]]" class="style-scope ytd-watch-learning-journey">\n  <div id="player-full-bleed-container" class="style-scope ytd-watch-learning-journey">\n    <div id="cinematics-full-bleed-container" class="style-scope ytd-watch-learning-journey"></div>\n  </div>\n  <div id="panels-full-bleed-container" class="style-scope ytd-watch-learning-journey"></div>\n</div>\n\n<div id="single-column-container" hidden="[[!singleColumn]]" class="style-scope ytd-watch-learning-journey"></div>\n<div id="columns" hidden="[[singleColumn]]" class="style-scope ytd-watch-learning-journey">\n  <div id="secondary" class="style-scope ytd-watch-learning-journey">\n    <div id="secondary-inner" class="style-scope ytd-watch-learning-journey">\n      <div id="plj-sidebar" class="style-scope ytd-watch-learning-journey">\n        <div id="plj-playlist" class="style-scope ytd-watch-learning-journey"></div>\n        <div id="plj-panels" class="style-scope ytd-watch-learning-journey"></div>\n      </div>\n      <div id="panels" class="style-scope ytd-watch-learning-journey">\n        <ytd-watch-engagement-panels data="[[data.engagementPanels]]" disable-upgrade$="[[!useEngagementPanelManagementComponent]]" hidden="[[!useEngagementPanelManagementComponent]]" class="style-scope ytd-watch-learning-journey">\n        </ytd-watch-engagement-panels>\n      </div>\n      <ytd-playlist-panel-renderer id="playlist" autoplay-data="[[data.contents.twoColumnWatchNextResults.autoplay.autoplay]]" collapsed="[[defaultCollapsePlaylist]]" data="[[playlistData]]" hidden="[[!playlist]]" loading$="[[loadingData.playlistLoading]]" class="style-scope ytd-watch-learning-journey">\n      </ytd-playlist-panel-renderer>\n      <div id="donation-shelf" class="style-scope ytd-watch-learning-journey"></div>\n      <div id="chat-container" class="style-scope ytd-watch-learning-journey">\n        \n        <template is="dom-if" if="[[shouldStampChat]]" restamp="" id="chat-template" class="style-scope ytd-watch-learning-journey">\n          <ytd-live-chat-frame id="chat" data="[[data.contents.twoColumnWatchNextResults.conversationBar]]" force-dark-theme="[[forceDarkPanelTheme]]" no-border="[[noBorderOnChat]]" theater-watch-while="[[watchWhilePanelsActive]]" class="style-scope ytd-watch-learning-journey">\n          </ytd-live-chat-frame>\n        </template>\n      </div>\n      <div id="related" class="style-scope ytd-watch-learning-journey">\n        <div id="player-ads" class="style-scope ytd-watch-learning-journey"></div>\n        <ytd-watch-next-secondary-results-renderer can-show-more="[[watchNextCanShowMore]]" data="[[watchNextSecondaryResults]]" disable-upgrade$="[[!watchNextSecondaryResults]]" hidden="[[!watchNextSecondaryResults]]" is-two-columns="[[isTwoColumns_]]" player-data="[[playerData]]" show-more-button="[[!isTwoColumns_]]" shown-items="[[watchNextShownItems]]" on-can-show-more-changed="updateWatchNextCanShowMoreFromBinding" on-shown-items-changed="updateShownItemsFromBinding" class="style-scope ytd-watch-learning-journey">\n        </ytd-watch-next-secondary-results-renderer>\n        <div id="related-skeleton" class="watch-skeleton style-scope ytd-watch-learning-journey"></div>\n      </div>\n    </div>\n  </div>\n\n  <div id="primary" class="style-scope ytd-watch-learning-journey">\n    <div id="primary-inner" class="style-scope ytd-watch-learning-journey">\n      <div id="watch-content" hidden="[[!showWatchResponse]]" class="style-scope ytd-watch-learning-journey">\n        <div id="player" class="style-scope ytd-watch-learning-journey">\n          <div id="cinematics-container" class="style-scope ytd-watch-learning-journey">\n            <div id="cinematics" class="style-scope ytd-watch-learning-journey"></div>\n          </div>\n          <div id="player-container-outer" class="style-scope ytd-watch-learning-journey">\n            <div id="player-container-inner" class="style-scope ytd-watch-learning-journey">\n              <div id="player-container" role="complementary" class="style-scope ytd-watch-learning-journey">\n                <ytd-player id="ytd-plj-player" context="WEB_PLAYER_CONTEXT_CONFIG_ID_LEARNING_JOURNEY_WATCH" watch-next-data="[[data]]" class="style-scope ytd-watch-learning-journey">\n                </ytd-player>\n              </div>\n            </div>\n            <div id="player-button-overlays" class="style-scope ytd-watch-learning-journey">\n              <yt-button-shape data="[[backButtonData]]" hidden$="[[!backButtonData]]" icon-name="x_cairo" class="style-scope ytd-watch-learning-journey">\n            </yt-button-shape></div>\n          </div>\n          <yt-playability-error-supported-renderers id="error-screen" data="[[playerData.playabilityStatus.errorScreen]]" disable-upgrade$="[[!playerUnavailable]]" hidden$="[[!playerUnavailable]]" status="[[playerData.playabilityStatus.status]]" class="style-scope ytd-watch-learning-journey">\n          </yt-playability-error-supported-renderers>\n        </div>\n        <div id="below" class="style-scope ytd-watch-learning-journey">\n          <div id="alerts" class="style-scope ytd-watch-learning-journey"></div>\n          <div id="messages" class="style-scope ytd-watch-learning-journey"></div>\n          <div id="clarify-box" class="attached-message style-scope ytd-watch-learning-journey"></div>\n          <div id="limited-state" class="attached-message style-scope ytd-watch-learning-journey"></div>\n          <ytd-watch-metadata class$="[[newMetadataClass]] style-scope ytd-watch-learning-journey" comments-entry-point-header-renderer="[[commentsEntryPointHeaderRenderer]]" disable-upgrade$="[[!watchMetadataRefresh]]" hidden="[[!watchMetadataRefresh]]" info-panel-below-metadata="[[infoPanelBelowMetadata]]" is-watch-learning-journey="" structured-description-content-renderer="[[inlineStructuredDescriptionData]]" video-id="[[videoId]]" video-metadata-carousel="[[videoMetadataCarousel]]" video-primary-info-renderer="[[videoPrimaryInfoRenderer]]" video-secondary-info-renderer="[[videoSecondaryInfoRenderer]]" video-summary="[[expandableMetadata]]">\n          </ytd-watch-metadata>\n          <div class$="[[legacyMetadataClass]] style-scope ytd-watch-learning-journey">\n            <div id="info" class="style-scope ytd-watch-learning-journey">\n              <div id="info-skeleton" class="watch-skeleton style-scope ytd-watch-learning-journey"></div>\n              <div id="info-contents" hidden="[[watchMetadataRefresh]]" class="style-scope ytd-watch-learning-journey"></div>\n            </div>\n            <div id="meta" class="style-scope ytd-watch-learning-journey">\n              <div id="meta-skeleton" class="watch-skeleton style-scope ytd-watch-learning-journey"></div>\n              <div id="meta-contents" hidden="[[watchMetadataRefresh]]" class="style-scope ytd-watch-learning-journey"></div>\n            </div>\n          </div>\n          <div id="expandable-metadata" hidden="[[!showExpandableMetadata]]" class="style-scope ytd-watch-learning-journey"></div>\n          <div id="ticket-shelf" hidden="[[!monetizationShelvesEnabled_]]" class="style-scope ytd-watch-learning-journey"></div>\n          \n          <template is="dom-if" if="[[shouldShowMerchShelf]]" restamp="" id="merch-shelf" class="style-scope ytd-watch-learning-journey">\n            <ytd-merch-shelf-renderer data="[[merchShelf]]" watch-metadata-refresh="[[watchMetadataRefresh]]" class="style-scope ytd-watch-learning-journey">\n            </ytd-merch-shelf-renderer>\n          </template>\n          <ytd-comments id="comments" can-schedule-jobs="[[canScheduleCommentJobs_]]" data="[[comments]]" disable-upgrade$="[[!computeShowComments_(comments, hideComments, shouldStampChat)]]" hidden="[[!computeShowComments_(comments, hideComments, shouldStampChat)]]" class="style-scope ytd-watch-learning-journey">\n          </ytd-comments>\n        </div>\n      </div>\n      <div id="browse-content" hidden="[[!showBrowseResponse]]" class="style-scope ytd-watch-learning-journey">\n        <ytd-two-column-browse-results-renderer id="ytd-plj-browse" data="[[browseData.contents.twoColumnBrowseResultsRenderer]]" class="style-scope ytd-watch-learning-journey"></ytd-two-column-browse-results-renderer>\n      </div>\n    </div>\n  </div>\n</div>\n\n<div id="survey" class="style-scope ytd-watch-learning-journey"></div>\n<div id="engagement-panel-scrim" hidden="[[!showEngagementPanelScrim_]]" class="style-scope ytd-watch-learning-journey"></div>\n');
a.content.insertBefore(_.w().content.cloneNode(!0),a.content.firstChild);s34=a}a=s34;return a}}});
em.prototype.updateMiniplayerIsActiveValue=em.prototype.updateMiniplayerIsActiveValue;em.prototype.updateScrollTopValue=em.prototype.updateScrollTopValue;em.prototype.updateFullscreenValue=em.prototype.updateFullscreenValue;em.prototype.updateTheaterValue=em.prototype.updateTheaterValue;_.L([_.Q(_.k.YtRendererBehavior),_.p("design:type",Object)],em.prototype,"ytRendererBehavior",void 0);_.L([_.Q(_.Ms.YtComponentBehavior),_.p("design:type",Object)],em.prototype,"ytComponentBehavior",void 0);
_.L([_.Q(fZN.YtdLearningJourneyWatchBehavior),_.p("design:type",Object)],em.prototype,"ytdWatchBehavior",void 0);_.L([_.Q(_.pV),_.p("design:type",Object)],em.prototype,"ytdReduxBehavior",void 0);_.L([_.x(),_.p("design:type",Object)],em.prototype,"data",void 0);_.L([_.x(),_.p("design:type",Object)],em.prototype,"playerData",void 0);_.L([_.x(),_.p("design:type",Object)],em.prototype,"browseData",void 0);_.L([_.x({reflectToAttribute:!0}),_.p("design:type",Object)],em.prototype,"flexy",void 0);
_.L([_.x({reflectToAttribute:!0}),_.p("design:type",Object)],em.prototype,"learningJourney",void 0);_.L([_.x({reflectToAttribute:!0}),_.p("design:type",Object)],em.prototype,"roundedInfoPanel",void 0);_.L([_.x({reflectToAttribute:!0}),_.p("design:type",Object)],em.prototype,"viewTransitionEnabled",void 0);_.L([_.x({reflectToAttribute:!0}),_.p("design:type",Object)],em.prototype,"smallerChatMinHeight",void 0);
_.L([_.x({reflectToAttribute:!0}),_.p("design:type",Object)],em.prototype,"cinematicTheaterMode",void 0);_.L([_.x({reflectToAttribute:!0}),_.p("design:type",Object)],em.prototype,"transparentTheaterMode",void 0);_.L([_.x({reflectToAttribute:!0}),_.p("design:type",Object)],em.prototype,"cinematicFullscreen",void 0);_.L([_.x({reflectToAttribute:!0}),_.p("design:type",Object)],em.prototype,"useLargerMaxPlayerValue",void 0);
_.L([_.x({reflectToAttribute:!0}),_.p("design:type",Object)],em.prototype,"cinematicFullscreenV2",void 0);_.L([_.x({reflectToAttribute:!0}),_.p("design:type",Object)],em.prototype,"isDarkTheme",void 0);_.L([_.x({reflectToAttribute:!0}),_.p("design:type",Object)],em.prototype,"theaterLargerPlayer",void 0);_.L([_.x(),_.p("design:type",Object)],em.prototype,"defaultCollapsePlaylist",void 0);_.L([_.x(),_.p("design:type",Object)],em.prototype,"enableCanvasLayout",void 0);
_.L([_.x({reflectToAttribute:!0}),_.S("playerData","browseData","enableCanvasLayout"),_.p("design:type",Boolean),_.p("design:paramtypes",[])],em.prototype,"showBrowseResponse",null);_.L([_.x({reflectToAttribute:!0}),_.S("playerData","enableCanvasLayout"),_.p("design:type",Boolean),_.p("design:paramtypes",[])],em.prototype,"showWatchResponse",null);_.L([_.x({selector:_.Td}),_.p("design:type",Object)],em.prototype,"theaterValue",void 0);
_.L([_.x({selector:_.d4}),_.p("design:type",Object)],em.prototype,"fullscreenValue",void 0);_.L([_.x({selector:_.iS}),_.p("design:type",Object)],em.prototype,"scrollTopValue",void 0);_.L([_.x({selector:_.Tg}),_.p("design:type",Object)],em.prototype,"miniplayerIsActiveValue",void 0);_.L([_.A3("#ytd-plj-player"),_.p("design:type",HTMLElement)],em.prototype,"ytdPlayer",void 0);_.L([_.A3("#playlist"),_.p("design:type",HTMLElement)],em.prototype,"JSC$23019_ytdPlaylistPanelRenderer",void 0);
_.L([_.gy("ytd-comments"),_.p("design:type",HTMLElement)],em.prototype,"ytdComments",void 0);_.L([_.A3("#primary"),_.p("design:type",HTMLElement)],em.prototype,"primary",void 0);_.L([_.A3("#secondary"),_.p("design:type",HTMLElement)],em.prototype,"secondary",void 0);_.L([_.A3("#player-container"),_.p("design:type",HTMLElement)],em.prototype,"playerContainer",void 0);_.L([_.A3("#cinematics"),_.p("design:type",HTMLElement)],em.prototype,"JSC$23019_cinematics",void 0);
_.L([_.O8("theaterValue"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],em.prototype,"updateTheaterValue",null);_.L([_.O8("fullscreenValue"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],em.prototype,"updateFullscreenValue",null);_.L([_.O8("scrollTopValue"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],em.prototype,"updateScrollTopValue",null);
_.L([_.O8("miniplayerIsActiveValue"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],em.prototype,"updateMiniplayerIsActiveValue",null);_.L([_.x({reflectToAttribute:!0}),_.S("data"),_.p("design:type",Object),_.p("design:paramtypes",[])],em.prototype,"cinematicLightTheme",null);_.L([_.x({reflectToAttribute:!0}),_.S("learningJourneyEngagementPanels"),_.p("design:type",Object),_.p("design:paramtypes",[])],em.prototype,"hasLearningJourneyPanels",null);
_.L([_.S("learningJourneyEngagementPanels"),_.p("design:type",Object),_.p("design:paramtypes",[])],em.prototype,"backButtonData",null);_.L([_.U({is:"ytd-watch-learning-journey"})],em);_.gr.registerService(_.anO,em);
_.xl();
}catch(e){_._DumpException(e)}
try{
_.iE("Tm0L3c");
var PPx;var ZI9;var CPa=function(){return _.G.apply(this,arguments)||this};
_.b(CPa,_.G);_.L([_.U({is:"ytd-ghost-comments-renderer",disableElementRegistration:!0})],CPa);
_.D(CPa,"ytd-ghost-comments-renderer",function(){if(ZI9===void 0){var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-ghost-comments-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="comment-section style-scope ytd-ghost-comments-renderer">\n  <div class="header ghost-card style-scope ytd-ghost-comments-renderer">\n    <div class="ghost-line style-scope ytd-ghost-comments-renderer"></div>\n  </div>\n  <div class="input-box ghost-card style-scope ytd-ghost-comments-renderer">\n    <div class="avatar style-scope ytd-ghost-comments-renderer">\n      <div class="circle style-scope ytd-ghost-comments-renderer"></div>\n    </div>\n    <div class="ghost-input style-scope ytd-ghost-comments-renderer"></div>\n  </div>\n  <div class="comments style-scope ytd-ghost-comments-renderer">\n    <div class="comment ghost-card style-scope ytd-ghost-comments-renderer">\n      <div class="avatar style-scope ytd-ghost-comments-renderer">\n        <div class="circle style-scope ytd-ghost-comments-renderer"></div>\n      </div>\n      <div class="content style-scope ytd-ghost-comments-renderer">\n        <div class="meta style-scope ytd-ghost-comments-renderer">\n          <div class="ghost-line style-scope ytd-ghost-comments-renderer"></div>\n        </div>\n        <div class="ghost-text style-scope ytd-ghost-comments-renderer"></div>\n        <div class="ghost-text line-2 style-scope ytd-ghost-comments-renderer"></div>\n        <div class="ghost-text line-3 style-scope ytd-ghost-comments-renderer"></div>\n      </div>\n    </div>\n    <div class="comment ghost-card style-scope ytd-ghost-comments-renderer">\n      <div class="avatar style-scope ytd-ghost-comments-renderer">\n        <div class="circle style-scope ytd-ghost-comments-renderer"></div>\n      </div>\n      <div class="content style-scope ytd-ghost-comments-renderer">\n        <div class="meta style-scope ytd-ghost-comments-renderer">\n          <div class="ghost-line style-scope ytd-ghost-comments-renderer"></div>\n        </div>\n        <div class="ghost-text style-scope ytd-ghost-comments-renderer"></div>\n        <div class="ghost-text line-2 style-scope ytd-ghost-comments-renderer"></div>\n        <div class="ghost-text line-3 style-scope ytd-ghost-comments-renderer"></div>\n      </div>\n    </div>\n    <div class="comment ghost-card style-scope ytd-ghost-comments-renderer">\n      <div class="avatar style-scope ytd-ghost-comments-renderer">\n        <div class="circle style-scope ytd-ghost-comments-renderer"></div>\n      </div>\n      <div class="content style-scope ytd-ghost-comments-renderer">\n        <div class="meta style-scope ytd-ghost-comments-renderer">\n          <div class="ghost-line style-scope ytd-ghost-comments-renderer"></div>\n        </div>\n        <div class="ghost-text style-scope ytd-ghost-comments-renderer"></div>\n        <div class="ghost-text line-2 style-scope ytd-ghost-comments-renderer"></div>\n        <div class="ghost-text line-3 style-scope ytd-ghost-comments-renderer"></div>\n      </div>\n    </div>\n    <div class="comment ghost-card style-scope ytd-ghost-comments-renderer">\n      <div class="avatar style-scope ytd-ghost-comments-renderer">\n        <div class="circle style-scope ytd-ghost-comments-renderer"></div>\n      </div>\n      <div class="content style-scope ytd-ghost-comments-renderer">\n        <div class="meta style-scope ytd-ghost-comments-renderer">\n          <div class="ghost-line style-scope ytd-ghost-comments-renderer"></div>\n        </div>\n        <div class="ghost-text style-scope ytd-ghost-comments-renderer"></div>\n        <div class="ghost-text line-2 style-scope ytd-ghost-comments-renderer"></div>\n        <div class="ghost-text line-3 style-scope ytd-ghost-comments-renderer"></div>\n      </div>\n    </div>\n    <div class="comment ghost-card style-scope ytd-ghost-comments-renderer">\n      <div class="avatar style-scope ytd-ghost-comments-renderer">\n        <div class="circle style-scope ytd-ghost-comments-renderer"></div>\n      </div>\n      <div class="content style-scope ytd-ghost-comments-renderer">\n        <div class="meta style-scope ytd-ghost-comments-renderer">\n          <div class="ghost-line style-scope ytd-ghost-comments-renderer"></div>\n        </div>\n        <div class="ghost-text style-scope ytd-ghost-comments-renderer"></div>\n        <div class="ghost-text line-2 style-scope ytd-ghost-comments-renderer"></div>\n        <div class="ghost-text line-3 style-scope ytd-ghost-comments-renderer"></div>\n      </div>\n    </div>\n  <div class="comments style-scope ytd-ghost-comments-renderer">\n    <div class="comment ghost-card style-scope ytd-ghost-comments-renderer">\n      <div class="avatar style-scope ytd-ghost-comments-renderer">\n        <div class="circle style-scope ytd-ghost-comments-renderer"></div>\n      </div>\n      <div class="content style-scope ytd-ghost-comments-renderer">\n        <div class="meta style-scope ytd-ghost-comments-renderer">\n          <div class="ghost-line style-scope ytd-ghost-comments-renderer"></div>\n        </div>\n        <div class="ghost-text style-scope ytd-ghost-comments-renderer"></div>\n        <div class="ghost-text line-2 style-scope ytd-ghost-comments-renderer"></div>\n        <div class="ghost-text line-3 style-scope ytd-ghost-comments-renderer"></div>\n      </div>\n    </div>\n  <div class="comments style-scope ytd-ghost-comments-renderer">\n    <div class="comment ghost-card style-scope ytd-ghost-comments-renderer">\n      <div class="avatar style-scope ytd-ghost-comments-renderer">\n        <div class="circle style-scope ytd-ghost-comments-renderer"></div>\n      </div>\n      <div class="content style-scope ytd-ghost-comments-renderer">\n        <div class="meta style-scope ytd-ghost-comments-renderer">\n          <div class="ghost-line style-scope ytd-ghost-comments-renderer"></div>\n        </div>\n        <div class="ghost-text style-scope ytd-ghost-comments-renderer"></div>\n        <div class="ghost-text line-2 style-scope ytd-ghost-comments-renderer"></div>\n        <div class="ghost-text line-3 style-scope ytd-ghost-comments-renderer"></div>\n      </div>\n    </div>\n  </div>\n  <div class="comments style-scope ytd-ghost-comments-renderer">\n    <div class="comment ghost-card style-scope ytd-ghost-comments-renderer">\n      <div class="avatar style-scope ytd-ghost-comments-renderer">\n        <div class="circle style-scope ytd-ghost-comments-renderer"></div>\n      </div>\n      <div class="content style-scope ytd-ghost-comments-renderer">\n        <div class="meta style-scope ytd-ghost-comments-renderer">\n          <div class="ghost-line style-scope ytd-ghost-comments-renderer"></div>\n        </div>\n        <div class="ghost-text style-scope ytd-ghost-comments-renderer"></div>\n        <div class="ghost-text line-2 style-scope ytd-ghost-comments-renderer"></div>\n        <div class="ghost-text line-3 style-scope ytd-ghost-comments-renderer"></div>\n      </div>\n    </div>\n  </div>\n  <div class="comments style-scope ytd-ghost-comments-renderer">\n    <div class="comment ghost-card style-scope ytd-ghost-comments-renderer">\n      <div class="avatar style-scope ytd-ghost-comments-renderer">\n        <div class="circle style-scope ytd-ghost-comments-renderer"></div>\n      </div>\n      <div class="content style-scope ytd-ghost-comments-renderer">\n        <div class="meta style-scope ytd-ghost-comments-renderer">\n          <div class="ghost-line style-scope ytd-ghost-comments-renderer"></div>\n        </div>\n        <div class="ghost-text style-scope ytd-ghost-comments-renderer"></div>\n        <div class="ghost-text line-2 style-scope ytd-ghost-comments-renderer"></div>\n        <div class="ghost-text line-3 style-scope ytd-ghost-comments-renderer"></div>\n      </div>\n    </div>\n  </div>\n  <div class="comments style-scope ytd-ghost-comments-renderer">\n    <div class="comment ghost-card style-scope ytd-ghost-comments-renderer">\n      <div class="avatar style-scope ytd-ghost-comments-renderer">\n        <div class="circle style-scope ytd-ghost-comments-renderer"></div>\n      </div>\n      <div class="content style-scope ytd-ghost-comments-renderer">\n        <div class="meta style-scope ytd-ghost-comments-renderer">\n          <div class="ghost-line style-scope ytd-ghost-comments-renderer"></div>\n        </div>\n        <div class="ghost-text style-scope ytd-ghost-comments-renderer"></div>\n        <div class="ghost-text line-2 style-scope ytd-ghost-comments-renderer"></div>\n        <div class="ghost-text line-3 style-scope ytd-ghost-comments-renderer"></div>\n      </div>\n    </div>\n  </div>\n    <div class="comment ghost-card style-scope ytd-ghost-comments-renderer">\n      <div class="avatar style-scope ytd-ghost-comments-renderer">\n        <div class="circle style-scope ytd-ghost-comments-renderer"></div>\n      </div>\n      <div class="content style-scope ytd-ghost-comments-renderer">\n        <div class="meta style-scope ytd-ghost-comments-renderer">\n          <div class="ghost-line style-scope ytd-ghost-comments-renderer"></div>\n        </div>\n        <div class="ghost-text style-scope ytd-ghost-comments-renderer"></div>\n        <div class="ghost-text line-2 style-scope ytd-ghost-comments-renderer"></div>\n        <div class="ghost-text line-3 style-scope ytd-ghost-comments-renderer"></div>\n      </div>\n    </div>\n  </div>\n  </div>\n</div>\n');a.content.insertBefore(_.w().content.cloneNode(!0),
a.content.firstChild);ZI9=a}a=ZI9;return a},{mode:1});var Not;var tpN=function(){return _.G.apply(this,arguments)||this};
_.b(tpN,_.G);_.L([_.U({is:"ytd-ghost-watch-metadata-renderer",disableElementRegistration:!0})],tpN);
_.D(tpN,"ytd-ghost-watch-metadata-renderer",function(){if(Not===void 0){var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-ghost-watch-metadata-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="ghost-card style-scope ytd-ghost-watch-metadata-renderer">\n  <div class="title style-scope ytd-ghost-watch-metadata-renderer">\n    <div class="line line-1 style-scope ytd-ghost-watch-metadata-renderer"></div>\n    <div class="line line-2 style-scope ytd-ghost-watch-metadata-renderer"></div>\n  </div>\n  <div class="byline style-scope ytd-ghost-watch-metadata-renderer">\n    <span class="word style-scope ytd-ghost-watch-metadata-renderer"></span>\n    <span class="word style-scope ytd-ghost-watch-metadata-renderer"></span>\n    <span class="word style-scope ytd-ghost-watch-metadata-renderer"></span>\n  </div>\n  <div class="description style-scope ytd-ghost-watch-metadata-renderer">\n    <div class="line line-1 style-scope ytd-ghost-watch-metadata-renderer"></div>\n    <div class="line line-2 style-scope ytd-ghost-watch-metadata-renderer"></div>\n    <div class="line line-3 style-scope ytd-ghost-watch-metadata-renderer"></div>\n  </div>\n  <div class="owner-box style-scope ytd-ghost-watch-metadata-renderer">\n    <div class="left style-scope ytd-ghost-watch-metadata-renderer">\n      <div class="circle style-scope ytd-ghost-watch-metadata-renderer"></div>\n      <div class="text style-scope ytd-ghost-watch-metadata-renderer">\n        <div class="top style-scope ytd-ghost-watch-metadata-renderer"></div>\n        <div class="bottom style-scope ytd-ghost-watch-metadata-renderer"></div>\n      </div>\n    </div>\n    <div class="right style-scope ytd-ghost-watch-metadata-renderer">\n      <div class="oval style-scope ytd-ghost-watch-metadata-renderer"></div>\n    </div>\n  </div>\n  <div class="action-bar style-scope ytd-ghost-watch-metadata-renderer">\n    <div class="oval style-scope ytd-ghost-watch-metadata-renderer"></div>\n    <div class="circle style-scope ytd-ghost-watch-metadata-renderer"></div>\n    <div class="circle style-scope ytd-ghost-watch-metadata-renderer"></div>\n    <div class="circle style-scope ytd-ghost-watch-metadata-renderer"></div>\n    <div class="circle style-scope ytd-ghost-watch-metadata-renderer"></div>\n  </div>\n</div>\n');a.content.insertBefore(_.w().content.cloneNode(!0),
a.content.firstChild);Not=a}a=Not;return a},{mode:1});var qN=function(){var a=_.G.apply(this,arguments)||this;a.ghostGridRenderer={rows:6};a.roundedInfoPanel=!0;a.hideOfferModules=!0;a.smallerChatMinHeight=_.K("live_chat_smaller_min_height");a.cinematicTheaterMode=_.K("web_cinematic_theater_mode");a.transparentTheaterMode=_.K("web_transparent_theater_mode");a.darkerPanels=_.K("web_watch_darker_panels");a.cinematicFullscreen=_.K("web_cinematic_fullscreen");a.cinematicFullscreenV2=_.K("web_cinematic_fullscreen_v2");a.isDarkTheme=document.documentElement.hasAttribute("dark");
return a};
_.b(qN,_.G);_.Z=qN.prototype;_.Z.updateTheaterValue=function(){this.ytdWatchBehavior.onTheaterReduxValueUpdate(!!this.theaterValue)};
_.Z.updateFullscreenValue=function(){this.ytdWatchBehavior.onFullscreenReduxValueUpdate(!!this.fullscreenValue)};
_.Z.updateScrollTopValue=function(){this.ytdWatchBehavior.onScrollReduxValueUpdate(this.scrollTopValue||0)};
_.Z.updateMiniplayerIsActiveValue=function(){this.ytdWatchBehavior.onMiniplayerActiveReduxValueUpdate(!!this.miniplayerIsActiveValue)};
_.Z.ready=function(){var a=this,z=function(){a.onColumnScroll()};
this.primary.addEventListener("scroll",z);this.secondary.addEventListener("scroll",z)};
_.Z.onColumnScroll=function(){this.ytRendererBehavior.markDirty()};
_.Z.updateIsTwoColumnsFromBinding=function(a){this.ytdWatchBehavior.isTwoColumns_=a.detail.value};
_.Z.updateFlexySmallWindowFromBinding=function(a){this.ytdWatchBehavior.flexySmallWindow_=a.detail.value};
_.Z.updateFlexyLargeWindowFromBinding=function(a){this.ytdWatchBehavior.flexyLargeWindow_=a.detail.value};
_.Z.updateWatchWhileWindowSizeSufficientFromBinding=function(a){this.ytdWatchBehavior.watchWhileWindowSizeSufficient=a.detail.value};
_.Z.updateWatchNextCanShowMoreFromBinding=function(a){this.ytdWatchBehavior.watchNextCanShowMore=a.detail.value};
_.Z.updateShownItemsFromBinding=function(a){_.K("swatcheroo_direct_use_rich_grid")||(a.detail.path?this.set(a.detail.path,a.detail.value):this.ytdWatchBehavior.watchNextShownItems=a.detail.value)};
_.Z.getElement=function(a){switch(a){case "PLAYER":return this.ytdPlayer;case "PLAYLIST_PANEL":return this.JSC$23007_ytdPlaylistPanelRenderer;case "CINEMATICS":return this.JSC$23007_cinematics;case "PLAYER_CONTAINER":return this.playerContainer;case "COMMENTS":return this.ytdComments}};
_.eH.Object.defineProperties(qN.prototype,{cinematicLightTheme:{configurable:!0,enumerable:!0,get:function(){var a;if((a=this.data)==null||!a.pageVisualEffects)return!1;for(var z=0;z<this.data.pageVisualEffects.length;z++)if(a=_.H(this.data.pageVisualEffects[z],_.$W))return z=void 0,(z=a.config)==null?void 0:z.enableInLightTheme;return!1}}});
qN.prototype.updateMiniplayerIsActiveValue=qN.prototype.updateMiniplayerIsActiveValue;qN.prototype.updateScrollTopValue=qN.prototype.updateScrollTopValue;qN.prototype.updateFullscreenValue=qN.prototype.updateFullscreenValue;qN.prototype.updateTheaterValue=qN.prototype.updateTheaterValue;_.L([_.Q(_.k.YtRendererBehavior),_.p("design:type",Object)],qN.prototype,"ytRendererBehavior",void 0);_.L([_.Q(_.Ms.YtComponentBehavior),_.p("design:type",Object)],qN.prototype,"ytComponentBehavior",void 0);
_.L([_.Q(_.JCG.YtdWatchBehavior),_.p("design:type",Object)],qN.prototype,"ytdWatchBehavior",void 0);_.L([_.Q(_.pV),_.p("design:type",Object)],qN.prototype,"ytdReduxBehavior",void 0);_.L([_.x(),_.p("design:type",Object)],qN.prototype,"data",void 0);_.L([_.x(),_.p("design:type",Object)],qN.prototype,"ghostGridRenderer",void 0);_.L([_.x(),_.p("design:type",Object)],qN.prototype,"playerData",void 0);_.L([_.x({reflectToAttribute:!0}),_.p("design:type",Object)],qN.prototype,"roundedInfoPanel",void 0);
_.L([_.x({reflectToAttribute:!0}),_.p("design:type",Object)],qN.prototype,"hideOfferModules",void 0);_.L([_.x({reflectToAttribute:!0}),_.p("design:type",Object)],qN.prototype,"smallerChatMinHeight",void 0);_.L([_.x({reflectToAttribute:!0}),_.p("design:type",Object)],qN.prototype,"cinematicTheaterMode",void 0);_.L([_.x({reflectToAttribute:!0}),_.p("design:type",Object)],qN.prototype,"transparentTheaterMode",void 0);
_.L([_.x({reflectToAttribute:!0}),_.p("design:type",Object)],qN.prototype,"darkerPanels",void 0);_.L([_.x({reflectToAttribute:!0}),_.p("design:type",Object)],qN.prototype,"cinematicFullscreen",void 0);_.L([_.x({reflectToAttribute:!0}),_.p("design:type",Object)],qN.prototype,"cinematicFullscreenV2",void 0);_.L([_.x({reflectToAttribute:!0}),_.p("design:type",Object)],qN.prototype,"isDarkTheme",void 0);_.L([_.x({selector:_.Td}),_.p("design:type",Object)],qN.prototype,"theaterValue",void 0);
_.L([_.x({selector:_.d4}),_.p("design:type",Object)],qN.prototype,"fullscreenValue",void 0);_.L([_.x({selector:_.iS}),_.p("design:type",Object)],qN.prototype,"scrollTopValue",void 0);_.L([_.x({selector:_.Tg}),_.p("design:type",Object)],qN.prototype,"miniplayerIsActiveValue",void 0);_.L([_.A3("#ytd-player"),_.p("design:type",HTMLElement)],qN.prototype,"ytdPlayer",void 0);_.L([_.A3("#playlist"),_.p("design:type",HTMLElement)],qN.prototype,"JSC$23007_ytdPlaylistPanelRenderer",void 0);
_.L([_.A3("#ytd-comments"),_.p("design:type",HTMLElement)],qN.prototype,"ytdComments",void 0);_.L([_.A3("#primary"),_.p("design:type",HTMLElement)],qN.prototype,"primary",void 0);_.L([_.A3("#secondary"),_.p("design:type",HTMLElement)],qN.prototype,"secondary",void 0);_.L([_.A3("#player-container"),_.p("design:type",HTMLElement)],qN.prototype,"playerContainer",void 0);_.L([_.A3("#cinematics"),_.p("design:type",HTMLElement)],qN.prototype,"JSC$23007_cinematics",void 0);
_.L([_.O8("theaterValue"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],qN.prototype,"updateTheaterValue",null);_.L([_.O8("fullscreenValue"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],qN.prototype,"updateFullscreenValue",null);_.L([_.O8("scrollTopValue"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],qN.prototype,"updateScrollTopValue",null);
_.L([_.O8("miniplayerIsActiveValue"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],qN.prototype,"updateMiniplayerIsActiveValue",null);_.L([_.x({reflectToAttribute:!0}),_.S("data"),_.p("design:type",Object),_.p("design:paramtypes",[])],qN.prototype,"cinematicLightTheme",null);
_.D(qN,"ytd-watch-grid",function(){if(PPx===void 0){var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-watch-grid--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e\n<iron-media-query id="two-column-query" query-matches="[[isTwoColumns_]]" on-query-matches-changed="updateIsTwoColumnsFromBinding" class="style-scope ytd-watch-grid"></iron-media-query>\n<iron-media-query id="small-window-query" query-matches="[[flexySmallWindow_]]" on-query-matches-changed="updateFlexySmallWindowFromBinding" class="style-scope ytd-watch-grid">\n</iron-media-query>\n<iron-media-query id="large-window-query" query-matches="[[flexyLargeWindow_]]" on-query-matches-changed="updateFlexyLargeWindowFromBinding" class="style-scope ytd-watch-grid">\n</iron-media-query>\n<iron-media-query id="watch-while-query" query-matches="[[watchWhileWindowSizeSufficient]]" on-query-matches-changed="updateWatchWhileWindowSizeSufficientFromBinding" class="style-scope ytd-watch-grid">\n</iron-media-query>\n\n<div id="microformat" class="style-scope ytd-watch-grid"></div>\n\n<div id="miniplayer-bar" class="style-scope ytd-watch-grid"></div>\n\n<div id="player-full-bleed-container" hidden="[[singleColumn]]" class="style-scope ytd-watch-grid">\n  <div id="cinematics-full-bleed-container" class="style-scope ytd-watch-grid">\n  </div>\n  <div id="squeezeback-constraining-container" hidden="[[!squeezeback]]" class="style-scope ytd-watch-grid"></div>\n</div>\n\n<div id="single-column-container" hidden="[[!singleColumn]]" class="style-scope ytd-watch-grid"></div>\n<div id="columns" hidden="[[singleColumn]]" class="style-scope ytd-watch-grid">\n  <div id="primary" class="style-scope ytd-watch-grid">\n    <div id="primary-inner" class="style-scope ytd-watch-grid">\n      <div id="player" class="style-scope ytd-watch-grid">\n        <div id="cinematics-container" class="style-scope ytd-watch-grid">\n          <div id="cinematics" class="style-scope ytd-watch-grid"></div>\n        </div>\n        <div id="player-container-outer" class="style-scope ytd-watch-grid">\n          <div id="player-container-inner" class="style-scope ytd-watch-grid">\n            <div id="player-container" role="complementary" class="style-scope ytd-watch-grid">\n              <ytd-player id="ytd-player" context="WEB_PLAYER_CONTEXT_CONFIG_ID_KEVLAR_WATCH" watch-next-data="[[data]]" class="style-scope ytd-watch-grid">\n              </ytd-player>\n            </div>\n          </div>\n        </div>\n        <yt-playability-error-supported-renderers id="error-screen" data="[[playerData.playabilityStatus.errorScreen]]" disable-upgrade$="[[!playerUnavailable]]" hidden$="[[!playerUnavailable]]" status="[[playerData.playabilityStatus.status]]" class="style-scope ytd-watch-grid">\n        </yt-playability-error-supported-renderers>\n      </div>\n      <div id="below" class="style-scope ytd-watch-grid">\n        <div id="fixed-below" class="style-scope ytd-watch-grid"></div>\n        <div id="bottom-grid" class="style-scope ytd-watch-grid">\n          <ytd-rich-grid-renderer continuation-show-button="[[showRichGridContinuationButton]]" data="[[richGridRendererData]]" disable-upgrade$="[[!richGridRendererData]]" hidden="[[!richGridRendererData]]" hide-chips-bar="" is-watch-default-layout="[[defaultTwoColumnLayout]]" item-max-width="[[richItemMaxWidth]]" item-min-width="[[richItemMinWidth]]" reduced-bottom-margin="" row-reduced-horizontal-margin="" transparent-background-chips-bar="" class="style-scope ytd-watch-grid">\n          </ytd-rich-grid-renderer>\n          <ytd-ghost-grid-renderer data="[[ghostGridRenderer]]" hidden="[[richGridRendererData]]" is-watch-next="" rich-item-min-width="[[richItemMinWidth]]" class="style-scope ytd-watch-grid"></ytd-ghost-grid-renderer>\n        </div>\n      </div>\n    </div>\n  </div>\n  <div id="secondary" class="style-scope ytd-watch-grid">\n    <div id="fixed-secondary" class="style-scope ytd-watch-grid">\n      <div id="panels" class="style-scope ytd-watch-grid">\n        <ytd-watch-engagement-panels data="[[data.engagementPanels]]" disable-upgrade$="[[!useEngagementPanelManagementComponent]]" hidden="[[!useEngagementPanelManagementComponent]]" class="style-scope ytd-watch-grid">\n        </ytd-watch-engagement-panels>\n      </div>\n      <div id="chat-container" class="style-scope ytd-watch-grid">\n        \n        <template is="dom-if" if="[[shouldStampChat]]" restamp="" id="chat-template" class="style-scope ytd-watch-grid">\n          <ytd-live-chat-frame id="chat" data="[[conversationBar]]" class="style-scope ytd-watch-grid">\n          </ytd-live-chat-frame>\n        </template>\n      </div>\n    </div>\n    <div id="secondary-inner" class="style-scope ytd-watch-grid">\n        <ytd-watch-metadata clarify-box="[[clarifyBox]]" comments-entry-point-header-renderer="[[commentsEntryPointHeaderRenderer]]" hidden="[[!videoPrimaryInfoRenderer]]" info-panel-below-metadata="[[infoPanelBelowMetadata]]" player-ads="[[playerAds]]" playlist="[[playlist]]" skinny-mode="[[metadataSkinnyMode]]" swatcheroo-enable-double-metadata="[[swatcherooUseDoubleMetadata]]" video-primary-info-renderer="[[videoPrimaryInfoRenderer]]" video-secondary-info-renderer="[[videoSecondaryInfoRenderer]]" class="style-scope ytd-watch-grid">\n        </ytd-watch-metadata>\n        <ytd-ghost-watch-metadata-renderer hidden="[[hasMetadata]]" class="style-scope ytd-watch-grid"></ytd-ghost-watch-metadata-renderer>\n        <div id="inline-panels" class="style-scope ytd-watch-grid"></div>\n        <div id="clarify-box" class="attached-message style-scope ytd-watch-grid"></div>\n        <div id="alerts" class="style-scope ytd-watch-grid"></div>\n        <div id="messages" class="style-scope ytd-watch-grid"></div>\n        <div id="related" class="style-scope ytd-watch-grid">\n          <div id="player-ads" class="style-scope ytd-watch-grid"></div>\n          <div id="related-skeleton" class="watch-skeleton style-scope ytd-watch-grid"></div>\n        </div>\n        <ytd-playlist-panel-renderer id="playlist" autoplay-data="[[data.contents.twoColumnWatchNextResults.autoplay.autoplay]]" collapsed="[[!playlistPanelExpanded]]" data="[[playlistData]]" hidden="[[!playlist]]" loading$="[[loadingData.playlistLoading]]" meta-panel="[[swatcherooSplitScroll]]" class="style-scope ytd-watch-grid">\n        </ytd-playlist-panel-renderer>\n        <div id="expandable-metadata" hidden="[[!expandableMetadata]]" class="style-scope ytd-watch-grid"></div>\n        <div class$="[[legacyMetadataClass]] style-scope ytd-watch-grid" hidden="">\n          <div id="info" class="style-scope ytd-watch-grid">\n            <div id="info-skeleton" class="watch-skeleton style-scope ytd-watch-grid"></div>\n            <div id="info-contents" hidden="[[watchMetadataRefresh]]" class="style-scope ytd-watch-grid"></div>\n          </div>\n          <div id="meta" class="style-scope ytd-watch-grid">\n            <div id="meta-skeleton" class="watch-skeleton style-scope ytd-watch-grid"></div>\n            <div id="meta-contents" hidden="[[watchMetadataRefresh]]" class="style-scope ytd-watch-grid"></div>\n          </div>\n        </div>\n        <div id="limited-state" class="attached-message style-scope ytd-watch-grid"></div>\n      <div id="offer-module" class="style-scope ytd-watch-grid"></div>\n      <div id="donation-shelf" class="style-scope ytd-watch-grid"></div>\n      <div id="ticket-shelf" hidden="[[!monetizationShelvesEnabled_]]" class="style-scope ytd-watch-grid"></div>\n      \n      <template is="dom-if" if="[[shouldShowMerchShelf]]" restamp="" id="merch-shelf" class="style-scope ytd-watch-grid">\n        <ytd-merch-shelf-renderer data="[[merchShelf]]" meta-panel="[[swatcherooSplitScroll]]" skinny-mode="[[isTwoColumns_]]" watch-metadata-refresh="[[watchMetadataRefresh]]" class="style-scope ytd-watch-grid">\n        </ytd-merch-shelf-renderer>\n      </template>\n      <ytd-ghost-comments-renderer hidden="[[comments]]" class="style-scope ytd-watch-grid"></ytd-ghost-comments-renderer>\n      <ytd-comments id="comments" can-schedule-jobs="[[canScheduleCommentJobs_]]" data="[[comments]]" hidden="[[!computeShowComments_(comments, hideComments, shouldStampChat, commentsEntryPointHeaderRenderer)]]" hide-panel-button="[[!defaultTwoColumnLayout]]" is-watch-grid="" class="style-scope ytd-watch-grid">\n      </ytd-comments>\n    </div>\n  </div>\n</div>\n<div id="fixed-columns-secondary" hidden="[[!swatcherooSplitScroll]]" class="style-scope ytd-watch-grid"> </div>\n\n<div id="survey" class="style-scope ytd-watch-grid"></div>\n<div id="engagement-panel-scrim" hidden="[[!showEngagementPanelScrim_]]" class="style-scope ytd-watch-grid"></div>\n');a.content.insertBefore(_.w().content.cloneNode(!0),
a.content.firstChild);PPx=a}a=PPx;return a},{mode:2});_.gr.registerService(_.eaM,qN);
_.xl();
}catch(e){_._DumpException(e)}
try{
_.iE("CF909");
var rC9;var Yr=function(){var a=_.G.apply(this,arguments)||this;a.flexy=!0;a.roundedInfoPanel=!0;a.viewTransitionEnabled=_.K("enable_player_resize_transition");a.smallerChatMinHeight=_.K("live_chat_smaller_min_height");a.cinematicTheaterMode=_.K("web_cinematic_theater_mode");a.transparentTheaterMode=_.K("web_transparent_theater_mode");a.cinematicFullscreen=_.K("web_cinematic_fullscreen");a.useLargerMaxPlayerValue=_.K("kevlar_flexy_use_larger_player_value");a.isDarkTheme=document.documentElement.hasAttribute("dark");
a.defaultCollapsePlaylist=_.K("web_watch_default_collapse_playlist");a.retroModeReduxValue=!1;return a};
_.b(Yr,_.G);_.Z=Yr.prototype;_.Z.updateTheaterValue=function(){this.ytdWatchBehavior.onTheaterReduxValueUpdate(!!this.theaterValue)};
_.Z.updateFullscreenValue=function(){this.ytdWatchBehavior.onFullscreenReduxValueUpdate(!!this.fullscreenValue)};
_.Z.updateScrollTopValue=function(){this.ytdWatchBehavior.onScrollReduxValueUpdate(this.scrollTopValue||0)};
_.Z.updateRetroModeReduxValue=function(){_.K("web_player_rtr_ctrls")&&(this.ytdWatchBehavior.retroMode=this.retroModeReduxValue)};
_.Z.ready=function(){var a=this,z=function(){a.onColumnScroll()};
this.primary.addEventListener("scroll",z);this.secondary.addEventListener("scroll",z)};
_.Z.onColumnScroll=function(){this.ytRendererBehavior.markDirty()};
_.Z.updateIsTwoColumnsFromBinding=function(a){_.K("web_watch_update_narrow_width_killswitch")||_.qo().dispatch(_.OZI(!a.detail.value));this.ytdWatchBehavior.isTwoColumns_=a.detail.value};
_.Z.updateFlexySmallWindowFromBinding=function(a){this.ytdWatchBehavior.flexySmallWindow_=a.detail.value};
_.Z.updateFlexyLargeWindowFromBinding=function(a){this.ytdWatchBehavior.flexyLargeWindow_=a.detail.value};
_.Z.updateWatchWhileWindowSizeSufficientFromBinding=function(a){this.ytdWatchBehavior.watchWhileWindowSizeSufficient=a.detail.value};
_.Z.updateWatchNextCanShowMoreFromBinding=function(a){this.ytdWatchBehavior.watchNextCanShowMore=a.detail.value};
_.Z.updateShownItemsFromBinding=function(a){a.detail.path?this.set(a.detail.path,a.detail.value):this.ytdWatchBehavior.watchNextShownItems=a.detail.value};
_.Z.getElement=function(a){switch(a){case "PLAYER":return this.ytdPlayer;case "PLAYLIST_PANEL":return this.JSC$23002_ytdPlaylistPanelRenderer;case "CINEMATICS":return this.JSC$23002_cinematics;case "PLAYER_CONTAINER":return this.playerContainer;case "COMMENTS":return this.ytdComments;case "BELOW_THE_PLAYER":return this.below;case "SECONDARY":return this.secondary}};
_.eH.Object.defineProperties(Yr.prototype,{cinematicLightTheme:{configurable:!0,enumerable:!0,get:function(){var a;if((a=this.data)==null||!a.pageVisualEffects)return!1;for(var z=0;z<this.data.pageVisualEffects.length;z++)if(a=_.H(this.data.pageVisualEffects[z],_.$W))return z=void 0,(z=a.config)==null?void 0:z.enableInLightTheme;return!1}}});
_.eH.Object.defineProperties(Yr,{template:{configurable:!0,enumerable:!0,get:function(){if(rC9===void 0){var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-watch-flexy--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e\n<iron-media-query id="two-column-query" query-matches="[[isTwoColumns_]]" on-query-matches-changed="updateIsTwoColumnsFromBinding" class="style-scope ytd-watch-flexy"></iron-media-query>\n<iron-media-query id="small-window-query" query-matches="[[flexySmallWindow_]]" on-query-matches-changed="updateFlexySmallWindowFromBinding" class="style-scope ytd-watch-flexy">\n</iron-media-query>\n<iron-media-query id="large-window-query" query-matches="[[flexyLargeWindow_]]" on-query-matches-changed="updateFlexyLargeWindowFromBinding" class="style-scope ytd-watch-flexy">\n</iron-media-query>\n<iron-media-query id="watch-while-query" query-matches="[[watchWhileWindowSizeSufficient]]" on-query-matches-changed="updateWatchWhileWindowSizeSufficientFromBinding" class="style-scope ytd-watch-flexy"></iron-media-query>\n\n<div id="microformat" class="style-scope ytd-watch-flexy"></div>\n\n<div id="miniplayer-bar" class="style-scope ytd-watch-flexy"></div>\n\n<div id="full-bleed-container" hidden="[[singleColumn]]" class="style-scope ytd-watch-flexy">\n  <div id="player-full-bleed-container" class="style-scope ytd-watch-flexy">\n    <div class="player-container-background style-scope ytd-watch-flexy" hidden="[[!playerContainerBackgroundImage]]">\n      <ytd-thumbnail class="player-container-background-image style-scope ytd-watch-flexy" data="[[playerContainerBackgroundImage]]"></ytd-thumbnail>\n    </div>\n    <div id="cinematics-full-bleed-container" class="style-scope ytd-watch-flexy"></div>\n  </div>\n  <div id="panels-full-bleed-container" class="style-scope ytd-watch-flexy"></div>\n</div>\n\n<div id="single-column-container" hidden="[[!singleColumn]]" class="style-scope ytd-watch-flexy"></div>\n<div id="columns" hidden="[[singleColumn]]" class="style-scope ytd-watch-flexy">\n  <div id="primary" class="style-scope ytd-watch-flexy">\n    <div id="primary-inner" class="style-scope ytd-watch-flexy">\n      <div id="player" class="style-scope ytd-watch-flexy">\n        <div id="cinematics-container" class="style-scope ytd-watch-flexy">\n          <div id="cinematics" class="style-scope ytd-watch-flexy"></div>\n        </div>\n        <div id="player-container-outer" class="style-scope ytd-watch-flexy">\n          <div id="player-container-inner" class="style-scope ytd-watch-flexy">\n            <div class="player-container-background style-scope ytd-watch-flexy" hidden="[[!playerContainerBackgroundImage]]">\n              <ytd-thumbnail class="player-container-background-image style-scope ytd-watch-flexy" data="[[playerContainerBackgroundImage]]"></ytd-thumbnail>\n            </div>\n            <div id="player-container" role="complementary" class="style-scope ytd-watch-flexy">\n              <ytd-player id="ytd-player" context="WEB_PLAYER_CONTEXT_CONFIG_ID_KEVLAR_WATCH" watch-next-data="[[data]]" class="style-scope ytd-watch-flexy">\n              </ytd-player>\n            </div>\n          </div>\n        </div>\n        <yt-playability-error-supported-renderers id="error-screen" data="[[playerData.playabilityStatus.errorScreen]]" disable-upgrade$="[[!playerUnavailable]]" hidden$="[[!playerUnavailable]]" status="[[playerData.playabilityStatus.status]]" class="style-scope ytd-watch-flexy">\n        </yt-playability-error-supported-renderers>\n      </div>\n      <div id="below" class="style-scope ytd-watch-flexy">\n        <div id="alerts" class="style-scope ytd-watch-flexy"></div>\n        <div id="messages" class="style-scope ytd-watch-flexy"></div>\n        <div id="shopping-timely-shelf" class="attached-message style-scope ytd-watch-flexy"></div>\n        <div id="clarify-box" class="attached-message style-scope ytd-watch-flexy"></div>\n        <div id="limited-state" class="attached-message style-scope ytd-watch-flexy"></div>\n        <ytd-watch-metadata class$="[[newMetadataClass]] style-scope ytd-watch-flexy" comments-entry-point-header-renderer="[[commentsEntryPointHeaderRenderer]]" disable-upgrade$="[[!watchMetadataRefresh]]" hidden="[[!watchMetadataRefresh]]" info-panel-below-metadata="[[infoPanelBelowMetadata]]" is-watch-flexy="" merch-shelf="[[merchShelfInSd]]" structured-description-content-renderer="[[inlineStructuredDescriptionData]]" video-id="[[videoId]]" video-metadata-carousel="[[videoMetadataCarousel]]" video-primary-info-renderer="[[videoPrimaryInfoRenderer]]" video-secondary-info-renderer="[[videoSecondaryInfoRenderer]]" video-summary="[[expandableMetadata]]">\n        </ytd-watch-metadata>\n        <div class$="[[legacyMetadataClass]] style-scope ytd-watch-flexy">\n          <div id="info" class="style-scope ytd-watch-flexy">\n            <div id="info-skeleton" class="watch-skeleton style-scope ytd-watch-flexy"></div>\n            <div id="info-contents" hidden="[[watchMetadataRefresh]]" class="style-scope ytd-watch-flexy"></div>\n          </div>\n          <div id="meta" class="style-scope ytd-watch-flexy">\n            <div id="meta-skeleton" class="watch-skeleton style-scope ytd-watch-flexy"></div>\n            <div id="meta-contents" hidden="[[watchMetadataRefresh]]" class="style-scope ytd-watch-flexy"></div>\n          </div>\n        </div>\n        <div id="expandable-metadata" hidden="[[!showExpandableMetadata]]" class="style-scope ytd-watch-flexy"></div>\n        <div id="ticket-shelf" hidden="[[!monetizationShelvesEnabled_]]" class="style-scope ytd-watch-flexy"></div>\n        \n        <template is="dom-if" if="[[shouldShowMerchShelf]]" restamp="" id="merch-shelf" class="style-scope ytd-watch-flexy">\n          <ytd-merch-shelf-renderer data="[[merchShelf]]" watch-metadata-refresh="[[watchMetadataRefresh]]" class="style-scope ytd-watch-flexy">\n          </ytd-merch-shelf-renderer>\n        </template>\n        <ytd-comments id="comments" can-schedule-jobs="[[canScheduleCommentJobs_]]" data="[[comments]]" disable-upgrade$="[[!computeShowComments_(comments, hideComments, shouldStampChat)]]" hidden="[[!computeShowComments_(comments, hideComments, shouldStampChat)]]" class="style-scope ytd-watch-flexy">\n        </ytd-comments>\n      </div>\n    </div>\n  </div>\n\n  <div id="secondary" class="style-scope ytd-watch-flexy">\n    <div id="secondary-inner" class="style-scope ytd-watch-flexy">\n      <div id="panels" class="style-scope ytd-watch-flexy">\n        <ytd-watch-engagement-panels data="[[data.engagementPanels]]" disable-upgrade$="[[!useEngagementPanelManagementComponent]]" hidden="[[!useEngagementPanelManagementComponent]]" class="style-scope ytd-watch-flexy">\n        </ytd-watch-engagement-panels>\n      </div>\n      <ytd-playlist-panel-renderer id="playlist" autoplay-data="[[data.contents.twoColumnWatchNextResults.autoplay.autoplay]]" collapsed="[[defaultCollapsePlaylist]]" data="[[playlistData]]" hidden="[[!playlist]]" loading$="[[loadingData.playlistLoading]]" class="style-scope ytd-watch-flexy">\n      </ytd-playlist-panel-renderer>\n      <div id="donation-shelf" class="style-scope ytd-watch-flexy"></div>\n      <div id="chat-container" class="style-scope ytd-watch-flexy">\n        \n        <template is="dom-if" if="[[shouldStampChat]]" restamp="" id="chat-template" class="style-scope ytd-watch-flexy">\n          <ytd-live-chat-frame id="chat" data="[[data.contents.twoColumnWatchNextResults.conversationBar]]" force-dark-theme="[[forceDarkPanelTheme]]" no-border="[[noBorderOnChat]]" theater-watch-while="[[watchWhilePanelsActive]]" class="style-scope ytd-watch-flexy">\n          </ytd-live-chat-frame>\n        </template>\n      </div>\n      <div id="related" class="style-scope ytd-watch-flexy">\n        <div id="player-ads" class="style-scope ytd-watch-flexy"></div>\n        <ytd-watch-next-secondary-results-renderer can-show-more="[[watchNextCanShowMore]]" data="[[watchNextSecondaryResults]]" disable-upgrade$="[[!watchNextSecondaryResults]]" hidden="[[!watchNextSecondaryResults]]" is-two-columns="[[isTwoColumns_]]" player-data="[[playerData]]" show-more-button="[[!isTwoColumns_]]" shown-items="[[watchNextShownItems]]" on-can-show-more-changed="updateWatchNextCanShowMoreFromBinding" on-shown-items-changed="updateShownItemsFromBinding" class="style-scope ytd-watch-flexy">\n        </ytd-watch-next-secondary-results-renderer>\n        <div id="related-skeleton" class="watch-skeleton style-scope ytd-watch-flexy"></div>\n      </div>\n    </div>\n  </div>\n</div>\n\n<div id="survey" class="style-scope ytd-watch-flexy"></div>\n<div id="engagement-panel-scrim" hidden="[[!showEngagementPanelScrim_]]" class="style-scope ytd-watch-flexy"></div>\n');
a.content.insertBefore(_.w().content.cloneNode(!0),a.content.firstChild);rC9=a}a=rC9;return a}}});
Yr.prototype.updateRetroModeReduxValue=Yr.prototype.updateRetroModeReduxValue;Yr.prototype.updateScrollTopValue=Yr.prototype.updateScrollTopValue;Yr.prototype.updateFullscreenValue=Yr.prototype.updateFullscreenValue;Yr.prototype.updateTheaterValue=Yr.prototype.updateTheaterValue;_.L([_.Q(_.k.YtRendererBehavior),_.p("design:type",Object)],Yr.prototype,"ytRendererBehavior",void 0);_.L([_.Q(_.Ms.YtComponentBehavior),_.p("design:type",Object)],Yr.prototype,"ytComponentBehavior",void 0);
_.L([_.Q(_.JCG.YtdWatchBehavior),_.p("design:type",Object)],Yr.prototype,"ytdWatchBehavior",void 0);_.L([_.Q(_.pV),_.p("design:type",Object)],Yr.prototype,"ytdReduxBehavior",void 0);_.L([_.x(),_.p("design:type",Object)],Yr.prototype,"data",void 0);_.L([_.x(),_.p("design:type",Object)],Yr.prototype,"playerData",void 0);_.L([_.x({reflectToAttribute:!0}),_.p("design:type",Object)],Yr.prototype,"flexy",void 0);
_.L([_.x({reflectToAttribute:!0}),_.p("design:type",Object)],Yr.prototype,"roundedInfoPanel",void 0);_.L([_.x({reflectToAttribute:!0}),_.p("design:type",Object)],Yr.prototype,"viewTransitionEnabled",void 0);_.L([_.x({reflectToAttribute:!0}),_.p("design:type",Object)],Yr.prototype,"smallerChatMinHeight",void 0);_.L([_.x({reflectToAttribute:!0}),_.p("design:type",Object)],Yr.prototype,"cinematicTheaterMode",void 0);
_.L([_.x({reflectToAttribute:!0}),_.p("design:type",Object)],Yr.prototype,"transparentTheaterMode",void 0);_.L([_.x({reflectToAttribute:!0}),_.p("design:type",Object)],Yr.prototype,"cinematicFullscreen",void 0);_.L([_.x({reflectToAttribute:!0}),_.p("design:type",Object)],Yr.prototype,"useLargerMaxPlayerValue",void 0);_.L([_.x({reflectToAttribute:!0}),_.p("design:type",Object)],Yr.prototype,"isDarkTheme",void 0);_.L([_.x(),_.p("design:type",Object)],Yr.prototype,"defaultCollapsePlaylist",void 0);
_.L([_.x({selector:_.Td}),_.p("design:type",Object)],Yr.prototype,"theaterValue",void 0);_.L([_.x({selector:_.d4}),_.p("design:type",Object)],Yr.prototype,"fullscreenValue",void 0);_.L([_.x({selector:_.iS}),_.p("design:type",Object)],Yr.prototype,"scrollTopValue",void 0);_.L([_.x({selector:_.Tg}),_.p("design:type",Object)],Yr.prototype,"miniplayerIsActive",void 0);_.L([_.x({selector:function(a){return a.watch.isWatchRetroMode}}),
_.p("design:type",Object)],Yr.prototype,"retroModeReduxValue",void 0);_.L([_.gy("ytd-player"),_.p("design:type",HTMLElement)],Yr.prototype,"ytdPlayer",void 0);_.L([_.A3("#playlist"),_.p("design:type",HTMLElement)],Yr.prototype,"JSC$23002_ytdPlaylistPanelRenderer",void 0);_.L([_.gy("ytd-comments"),_.p("design:type",HTMLElement)],Yr.prototype,"ytdComments",void 0);_.L([_.A3("#primary"),_.p("design:type",HTMLElement)],Yr.prototype,"primary",void 0);
_.L([_.A3("#secondary"),_.p("design:type",HTMLElement)],Yr.prototype,"secondary",void 0);_.L([_.A3("#player-container"),_.p("design:type",HTMLElement)],Yr.prototype,"playerContainer",void 0);_.L([_.A3("#below"),_.p("design:type",HTMLElement)],Yr.prototype,"below",void 0);_.L([_.A3("#cinematics"),_.p("design:type",HTMLElement)],Yr.prototype,"JSC$23002_cinematics",void 0);
_.L([_.O8("theaterValue"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],Yr.prototype,"updateTheaterValue",null);_.L([_.O8("fullscreenValue"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],Yr.prototype,"updateFullscreenValue",null);_.L([_.O8("scrollTopValue"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],Yr.prototype,"updateScrollTopValue",null);
_.L([_.O8("retroModeReduxValue"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],Yr.prototype,"updateRetroModeReduxValue",null);_.L([_.x({reflectToAttribute:!0}),_.S("data"),_.p("design:type",Object),_.p("design:paramtypes",[])],Yr.prototype,"cinematicLightTheme",null);_.L([_.U({is:"ytd-watch-flexy"})],Yr);_.gr.registerService(_.qKm,Yr);
_.xl();
}catch(e){_._DumpException(e)}
try{
_.iE("nmfa2d");
var gjx;var Lz=function(){var a=_.G.apply(this,arguments)||this;a.hidden=!1;a.errorScreen=null;a.playlistData={};return a};
_.b(Lz,_.G);_.Z=Lz.prototype;_.Z.getPlayer=function(){return this.ytdPlayer};
_.Z.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:_.q7(["aa","eocs"])}}};
_.Z.onActiveChanged=function(){_.qo().dispatch(_.Yex(this.ytPageBehavior.active))};
_.Z.playerDataChanged=function(){var a;(a=this.watchController)==null||a.setPlayerResponse(this.playerData)};
_.Z.dataChanged=function(){var a;(a=this.watchController)==null||a.setWatchNextResponse(this.data)};
_.Z.sizeChanged=function(){var a,z;(z=(a=this.metadata).resize)==null||z.call(a)};
_.Z.attached=function(){this.watchController=new _.Dq(this);this.playerData&&this.watchController.setPlayerResponse(this.playerData);this.data&&this.watchController.setWatchNextResponse(this.data)};
_.Z.detached=function(){_.Y8(this.watchController);this.watchController=void 0};
_.Z.getPlayerContainer=function(){return this.playerContainer};
_.Z.getElement=function(a){switch(a){case "PLAYER":return this.ytdPlayer;case "PLAYLIST_PANEL":return this.playlistPanel}};
_.Z.provideRenderingData=function(a,z){switch(a){case "SINGLE_COLUMN_CONTENTS":this.singleColumnContents=z;break;case "ERROR_SCREEN":this.errorScreen=z!=null?z:null;break;case "PRIMARY_INFO":this.videoPrimaryInfoRenderer=z;break;case "SECONDARY_INFO":this.videoSecondaryInfoRenderer=z;break;case "COMMENTS_ENTRY_POINT_HEADER":this.commentsEntryPointHeaderRenderer=z;break;case "RICH_METADATA":this.richMetadataRowContainer=z;break;case "CLARIFICATION":this.clarificationData=z;break;case "PLAYLIST":this.playlistData=
z!=null?z:{};break;case "MERCH_SHELF":this.merchShelf=z;break;case "TICKET_SHELF":this.ticketShelf=z;break;case "LIMITED_STATE":this.limitedState=z;break;case "DONATION_SHELF":this.donationShelf=z;break;case "ALERTS":this.alerts=z}};
_.eH.Object.defineProperties(Lz.prototype,{hasPlaylistData:{configurable:!0,enumerable:!0,get:function(){return this.playlistData&&!!Object.keys(this.playlistData).length}},
hasChat:{configurable:!0,enumerable:!0,get:function(){var a,z,I;return!this.hidden&&!!((a=this.data)==null?0:(z=a.contents)==null?0:(I=z.twoColumnWatchNextResults)==null?0:I.conversationBar)}}});
Lz.prototype.sizeChanged=Lz.prototype.sizeChanged;Lz.prototype.dataChanged=Lz.prototype.dataChanged;Lz.prototype.playerDataChanged=Lz.prototype.playerDataChanged;Lz.prototype.onActiveChanged=Lz.prototype.onActiveChanged;_.L([_.Q(_.WR.YtPageBehavior),_.p("design:type",Object)],Lz.prototype,"ytPageBehavior",void 0);_.L([_.Q(_.Ms.YtComponentBehavior),_.p("design:type",Object)],Lz.prototype,"ytComponentBehavior",void 0);
_.L([_.Q(_.k.YtRendererBehavior),_.p("design:type",Object)],Lz.prototype,"ytRendererBehavior",void 0);_.L([_.Q(_.u4.YtRendererstamperBehavior),_.p("design:type",Object)],Lz.prototype,"ytRendererstamperBehavior",void 0);_.L([_.Q(_.pV),_.p("design:type",Object)],Lz.prototype,"ytdReduxBehavior",void 0);_.L([_.x(),_.p("design:type",Object)],Lz.prototype,"data",void 0);_.L([_.x(),_.p("design:type",Object)],Lz.prototype,"playerData",void 0);
_.L([_.x({reflectToAttribute:!0}),_.p("design:type",Object)],Lz.prototype,"hidden",void 0);_.L([_.A3("#ytd-player"),_.p("design:type",HTMLElement)],Lz.prototype,"ytdPlayer",void 0);_.L([_.A3("#player-container"),_.p("design:type",HTMLElement)],Lz.prototype,"playerContainer",void 0);_.L([_.A3("#metadata"),_.p("design:type",Object)],Lz.prototype,"metadata",void 0);_.L([_.A3("#playlist"),_.p("design:type",HTMLElement)],Lz.prototype,"playlistPanel",void 0);
_.L([_.x({selector:_.bl9,reflectToAttribute:!0}),_.p("design:type",Object)],Lz.prototype,"fixie",void 0);_.L([_.x({selector:_.Hlt,reflectToAttribute:!0}),_.p("design:type",Object)],Lz.prototype,"singleColumn",void 0);_.L([_.x({selector:function(a){return _.Td(a)&&!_.d4(a)},
reflectToAttribute:!0}),_.p("design:type",Object)],Lz.prototype,"theater",void 0);_.L([_.x({selector:_.d4,reflectToAttribute:!0}),_.p("design:type",Object)],Lz.prototype,"fullscreen",void 0);_.L([_.x({selector:_.MLN}),_.p("design:type",Object)],Lz.prototype,"windowSize",void 0);_.L([_.x(),_.p("design:type",Object)],Lz.prototype,"singleColumnContents",void 0);_.L([_.x(),_.p("design:type",Object)],Lz.prototype,"errorScreen",void 0);_.L([_.x(),_.p("design:type",Object)],Lz.prototype,"playlistData",void 0);
_.L([_.x(),_.p("design:type",Object)],Lz.prototype,"videoPrimaryInfoRenderer",void 0);_.L([_.x(),_.p("design:type",Object)],Lz.prototype,"videoSecondaryInfoRenderer",void 0);_.L([_.x(),_.p("design:type",Object)],Lz.prototype,"richMetadataRowContainer",void 0);_.L([_.x(),_.p("design:type",Object)],Lz.prototype,"clarificationData",void 0);_.L([_.x(),_.p("design:type",Object)],Lz.prototype,"commentsEntryPointHeaderRenderer",void 0);_.L([_.x(),_.p("design:type",Object)],Lz.prototype,"ticketShelf",void 0);
_.L([_.x(),_.p("design:type",Object)],Lz.prototype,"merchShelf",void 0);_.L([_.x(),_.p("design:type",Object)],Lz.prototype,"donationShelf",void 0);_.L([_.x(),_.p("design:type",Object)],Lz.prototype,"limitedState",void 0);_.L([_.x(),_.p("design:type",Object)],Lz.prototype,"alerts",void 0);_.L([_.S("playlistData"),_.p("design:type",Object),_.p("design:paramtypes",[])],Lz.prototype,"hasPlaylistData",null);
_.L([_.S("data","hidden"),_.p("design:type",Boolean),_.p("design:paramtypes",[])],Lz.prototype,"hasChat",null);_.L([_.O8("active"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],Lz.prototype,"onActiveChanged",null);_.L([_.O8("playerData"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],Lz.prototype,"playerDataChanged",null);
_.L([_.O8("data"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],Lz.prototype,"dataChanged",null);_.L([_.O8("windowSize","singleColumn"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],Lz.prototype,"sizeChanged",null);
_.D(Lz,"ytd-watch-fixie",function(){if(gjx===void 0){var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-watch-fixie--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e\n<div id="single-column" hidden="[[!singleColumnContents]]" class="style-scope ytd-watch-fixie"></div>\n\n<div id="fixed-layer" hidden="[[singleColumnContents]]" class="style-scope ytd-watch-fixie">\n  <div id="primary" class="style-scope ytd-watch-fixie">\n    <div id="player" class="style-scope ytd-watch-fixie">\n      <div id="player-container" class="style-scope ytd-watch-fixie">\n        <ytd-player id="ytd-player" context="WEB_PLAYER_CONTEXT_CONFIG_ID_KEVLAR_WATCH" watch-next-data="[[data]]" class="style-scope ytd-watch-fixie">\n        </ytd-player>\n      </div>\n      <yt-playability-error-supported-renderers id="error-screen" data="[[errorScreen]]" disable-upgrade$="[[!errorScreen]]" hidden$="[[!errorScreen]]" class="style-scope ytd-watch-fixie">\n      </yt-playability-error-supported-renderers>\n    </div>\n    <div id="alerts" class="style-scope ytd-watch-fixie"></div>\n    <ytd-watch-metadata id="metadata" comments-entry-point-header-renderer="[[commentsEntryPointHeaderRenderer]]" suppress-top-level-metadata-rows="" video-id="[[data.currentVideoEndpoint.watchEndpoint.videoId]]" video-primary-info-renderer="[[videoPrimaryInfoRenderer.videoPrimaryInfoRenderer]]" video-secondary-info-renderer="[[videoSecondaryInfoRenderer.videoSecondaryInfoRenderer]]" class="style-scope ytd-watch-fixie">\n    </ytd-watch-metadata>\n  </div>\n</div>\n\n<div id="static-layer" hidden="[[singleColumnContents]]" class="style-scope ytd-watch-fixie">\n  <div id="secondary" class="style-scope ytd-watch-fixie">\n    <div id="clarify-box" class="feed-item style-scope ytd-watch-fixie"></div>\n    <div id="limited-state" class="feed-item style-scope ytd-watch-fixie"></div>\n    \n    <template is="dom-if" if="[[merchShelf.merchandiseShelfRenderer]]" restamp="" id="merch-shelf" class="style-scope ytd-watch-fixie">\n      <ytd-merch-shelf-renderer class="feed-item style-scope ytd-watch-fixie" data="[[merchShelf.merchandiseShelfRenderer]]" watch-metadata-refresh="">\n      </ytd-merch-shelf-renderer>\n    </template>\n    \n    <div id="ticket-shelf" class="feed-item style-scope ytd-watch-fixie" hidden=""></div>\n    <ytd-watch-engagement-panels data="[[data.engagementPanels]]" class="style-scope ytd-watch-fixie"></ytd-watch-engagement-panels>\n    \n    <template is="dom-if" if="[[hasChat]]" restamp="" class="style-scope ytd-watch-fixie">\n      <ytd-live-chat-frame id="chat" class="feed-item style-scope ytd-watch-fixie" data="[[data.contents.twoColumnWatchNextResults.conversationBar]]">\n      </ytd-live-chat-frame>\n    </template>\n    <div id="donation-shelf" class="feed-item style-scope ytd-watch-fixie"></div>\n    <ytd-playlist-panel-renderer id="playlist" class="feed-item style-scope ytd-watch-fixie" autoplay-data="[[data.contents.twoColumnWatchNextResults.autoplay.autoplay]]" data="[[playlistData]]" disable-upgrade$="[[!hasPlaylistData]]" hidden="[[!hasPlaylistData]]" js-panel-height="">\n    </ytd-playlist-panel-renderer>\n    <div id="rich-metadata" class="feed-item style-scope ytd-watch-fixie"></div>\n    <div id="player-ads" class="style-scope ytd-watch-fixie"></div>\n    <ytd-watch-next-secondary-results-renderer data="[[data.contents.twoColumnWatchNextResults.secondaryResults.secondaryResults]]" disable-upgrade$="[[!data.contents.twoColumnWatchNextResults.secondaryResults.secondaryResults]]" hidden="[[!data.contents.twoColumnWatchNextResults.secondaryResults.secondaryResults]]" player-data="[[playerData]]" class="style-scope ytd-watch-fixie">\n    </ytd-watch-next-secondary-results-renderer>\n  </div>\n</div>\n\n\n\n');a.content.insertBefore(_.w().content.cloneNode(!0),
a.content.firstChild);gjx=a}a=gjx;return a},{mode:1});_.gr.registerService(_.YKx,Lz);
_.xl();
}catch(e){_._DumpException(e)}
try{
_.iE("xwEKAe");
var OGj=function(a){return _.cL(a)?a.getAttribute("jsname")==="coFSxe":!1},fij=function(a,z){z.id||(z.id="ow"+_.yx(z));
a.setAttribute("jsowner",z.id);a.__owner=z;var I=_.dJ(z,OGj);I&&(_.g01.has(I)||_.g01.set(I,[]),_.g01.get(I).push(a));(I=_.B2i.get(z))||_.B2i.set(z,I=[]);I.includes(a)||I.push(a);z.setAttribute("__IS_OWNER",!0)},A1x=function(){var a=_.HId(1);
a=_.cW(a,_.iIG);if(!(_.FlG(a)||a[_.kXp]&&!a.__hasBeenSet))return a.value},sE9=function(a){var z=_.Kt();
if(z.getFlag(202))z=z.getFlag(201);else{var I;z=(a==null?void 0:(I=a.config)==null?void 0:I.settingOnByDefault)!==void 0?a.config.settingOnByDefault:!_.K("web_shorts_cinematics_disabled_by_default")}return z},n79=function(a){var z=_.Kt();
_.Fz(0,201,a);_.Fz(0,202,!0);z.save()},KdP=function(a){return(a=_.gC1(a))?_.fQ0(a):0},Fd9=function(a){return a.shorts.isSmallScreenSqueezeback},HG4=function(a){return a.shorts.isPlaybackStarted},VMj=function(a){var z=_.HId(2),I=new Set;
_.V3(function(){return void I.forEach(function(J){return void J()})});
return function(J){var r=_.MC(z);try{var P=bGt(hIj(a),J);I.add(P);return function(){P();I.delete(P)}}finally{_.MC(r)}}},QEa=function(a){var z=a.children;
var I=a.root;_.hD(function(){var J=VMj(I)(z);_.V3(J)});
return document.createTextNode("")},bGt=function(a,z){var I=Sm7(a);
(a=A1x())&&fij(I,a);z=_.C(_.fkm(z,!0));a=z.next().value;var J=z.next().value;I.append.apply(I,_.ih(a));return function(){J();I.remove()}},hIj=function(a){if(typeof a==="string")return a=document.querySelector(a),_.xrZ(a),a;
if(_.jL(a)&&a.nodeType===Node.ELEMENT_NODE)return a;if(!a.__value&&!a.__optional){var z=_.c$G.USE_ELEMENT_NOT_ASSIGNED(a.__expectedTagName);a.__hasErrored=!0;throw z;}return a.value},Sm7=function(a){var z=document.createElementNS(a.namespaceURI,a.namespaceURI==="http://www.w3.org/2000/svg"?"g":"div");
return a.appendChild(z)},iGI=function(a,z,I,J){a=z-a;
I=J-I;return Math.sqrt(a*a+I*I)},xOx=function(a,z){a&&_.ab().resolve(_.j6).resolveCommand(a,{forceClickLogging:!0,
form:{element:z}})},v7u=function(a,z,I,J){a=z-a;
I=J-I;return Math.sqrt(a*a+I*I)},G3t=function(a,z){a&&_.ab().resolve(_.j6).resolveCommand(a,{forceClickLogging:!0,
form:{element:z}})},$O9=function(){return _.ab().resolve(_.Qb).dismissedIndices},XpG=function(a,z){var I,J,r,P,N,u,E,O,f;
return _.t(function(A){if(A.nextAddress==1){I=_.ab().resolve(_.aji);P=(J=I)==null?void 0:(r=J.reelWatchEndpointMap)==null?void 0:r.reelWatchSequence;u=(N=a.innertubeTransportService)!=null?N:_.ab().resolve(_.dY);if(!P)return A.jumpTo(2);E=P();return(O=E.JSC$13006_getRequest(z,{}))?A.yield(_.pJ(u,O.innerTubeRequest,O.input,z.clickTrackingParams,O.config),4):A.jumpTo(2)}return A.nextAddress!=2?(f=A.yieldResult,A.return(f)):A.return(void 0)})},T$N=function(a){return _.rg({type:"SET_IS_WATCH_WHILE_MODE",
payload:{isWatchWhileMode:a}})},dOI=function(a){return _.rg({type:"SET_IS_SMALL_SCREEN_SQUEEZEBACK",
payload:{isSmallScreenSqueezeback:a}})},C7=function(a){return _.rg({type:"SET_IS_PLAYBACK_STARTED",
payload:{isPlaybackStarted:a}})};var Nw=function(a,z){if(a instanceof Nw)this.array_=a.array_;else{var I;if(I=_.lG(a))a:{for(var J=I=0;J<a.length;J++){if(!_.lG(a[J])||I>0&&a[J].length!=I){I=!1;break a}for(var r=0;r<a[J].length;r++)if(typeof a[J][r]!=="number"){I=!1;break a}I==0&&(I=a[J].length)}I=I!=0}if(I)this.array_=_.RE(a);else if(a instanceof _.fB)this.array_=Wdx(a.height,a.width);else if(typeof a==="number"&&typeof z==="number"&&a>0&&z>0)this.array_=Wdx(a,z);else throw Error("to");}this.size_=new _.fB(this.array_[0].length,
this.array_.length)},o7G=function(a,z,I){for(var J=0;J<a.getSize().height;J++)for(var r=0;r<a.getSize().width;r++)z.call(I,a.array_[J][r],J,r,a)},UOx=function(a,z){var I=new Nw(a.getSize());
o7G(a,function(J,r,P){I.array_[r][P]=z.call(void 0,J,r,P,a)});
return I},Wdx=function(a,z){for(var I=[],J=0;J<a;J++){I[J]=[];
for(var r=0;r<z;r++)I[J][r]=0}return I};
Nw.prototype.add=function(a){if(!_.L2i(this.size_,a.getSize()))throw Error("uo");return UOx(this,function(z,I,J){return z+a.array_[I][J]})};
Nw.prototype.equals=function(a,z){if(this.size_.width!=a.size_.width||this.size_.height!=a.size_.height)return!1;z=z||0;for(var I=0;I<this.size_.height;I++)for(var J=0;J<this.size_.width;J++)if(!_.RDV(this.array_[I][J],a.array_[I][J],z))return!1;return!0};
Nw.prototype.getSize=function(){return this.size_};
var tm=function(a,z,I){return z>=0&&z<a.size_.height&&I>=0&&I<a.size_.width?a.array_[z][I]:null};
Nw.prototype.isSquare=function(){return this.size_.width==this.size_.height};
var uS=function(a,z,I,J){if(!(z>=0&&z<a.size_.height&&I>=0&&I<a.size_.width))throw Error("vo`"+z+"`"+I+"`"+a.size_.height+"`"+a.size_.width);a.array_[z][I]=J};
Nw.prototype.multiply=function(a){if(a instanceof Nw){if(this.size_.width!=a.getSize().height)throw Error("wo");return DOL(this,a)}if(typeof a==="number")return RI7(this,a);throw Error("xo");};
var DOL=function(a,z){var I=new Nw(a.size_.height,z.getSize().width);o7G(I,function(J,r,P){for(var N=J=0;N<this.size_.width;N++)J+=tm(this,r,N)*tm(z,N,P);uS(I,r,P,J)},a);
return I},RI7=function(a,z){return UOx(a,function(I){return I*z})};var Ldj=new _.jv("inlineSurveyRenderer");var li9=new _.jv("interstitialViewModel");var pp9=new _.jv("reelNavigateCommand");var wpx=new _.jv("reelNonVideoContentDismissalCommand");var mO4=new _.jv("showReelsCommentsOverlayCommand");var y1G=new _.jv("shortsSuggestedActionViewModel");var k3O=new _.jv("videoInteractionPopUpRenderer");var MMO;var c1t;var Ymt;var EI=function(){var a=_.G.apply(this,arguments)||this;a.ctaVisualElement=null;a.currentCsn=null;return a};
_.b(EI,_.G);_.Z=EI.prototype;_.Z.onDataChanged=function(){this.maybeLogShows()};
_.Z.computeButtonShape=function(){var a=this;if(this.data)return{buttonText:_.cd(this.data.text),state:"active",onTap:function(){a.onTap()},
iconPosition:"leading",style:"overlay-dark",type:"tonal",size:"M"}};
_.Z.maybeCreateCtaVe=function(){var a;if((a=this.data)!=null&&a.badgeInteractionLogging){var z;if(a=(z=this.data.badgeInteractionLogging)==null?void 0:z.trackingParams)this.ctaVisualElement=_.VX(a)}};
_.Z.maybeLogClicks=function(){this.currentCsn=_.TX(this.ytRendererBehavior.getScreenLayer());this.maybeCreateCtaVe();this.ctaVisualElement&&this.currentCsn&&_.ys(this.currentCsn,this.ctaVisualElement)};
_.Z.maybeLogShows=function(){this.currentCsn=_.TX(this.ytRendererBehavior.getScreenLayer());this.maybeCreateCtaVe();this.ctaVisualElement&&this.currentCsn&&_.we(this.currentCsn,[this.ctaVisualElement])};
_.Z.onTap=function(){var a;if((a=this.data)!=null&&a.onClickCommand){var z;this.ytComponentBehavior.resolveCommand((z=this.data)==null?void 0:z.onClickCommand);this.maybeLogClicks()}};
EI.prototype.onDataChanged=EI.prototype.onDataChanged;_.L([_.Q(_.k.YtRendererBehavior),_.p("design:type",Object)],EI.prototype,"ytRendererBehavior",void 0);_.L([_.Q(_.Ms.YtComponentBehavior),_.p("design:type",Object)],EI.prototype,"ytComponentBehavior",void 0);_.L([_.x({}),_.p("design:type",Object)],EI.prototype,"data",void 0);_.L([_.O8("data"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],EI.prototype,"onDataChanged",null);
_.L([_.U({disableElementRegistration:!0,is:"ytd-shopping-overlay-badge-renderer"})],EI);
_.D(EI,"ytd-shopping-overlay-badge-renderer",function(){if(Ymt!==void 0)return Ymt;var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-shopping-overlay-badge-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-button-shape data="[[computeButtonShape(data)]]" icon-name="bag" class="style-scope ytd-shopping-overlay-badge-renderer">\n</yt-button-shape>\n');a.content.insertBefore(_.w().content.cloneNode(!0),
a.content.firstChild);return Ymt=a},{mode:1});_.Jf(_.d0Y,"reel-sound-metadata-view-model",{props:{data:_.I5,overlayDensity:_.I5}});_.Jf(_.GBY,"player-disclosure-view-model",{props:{data:_.zl}});_.Jf(_.Q8w,"pivot-button-view-model",{props:{data:_.I5,className:_.I5}});_.Jf(_.S6I,"reel-action-bar-view-model",{props:{data:_.zl,buttonShapeOverrideables:_.zl}});_.Jf(_.ec(function(a){function z(){var Bp,Em,nG,bG,Hp=(Em=_.H((Bp=q())==null?void 0:Bp.command,_.Qw))==null?void 0:(nG=Em.item)==null?void 0:(bG=nG.notificationTextRenderer)==null?void 0:bG.successResponseText;if(Hp)_.ZF(J.value,"yt-open-popup-action",[_.aX(Hp),J.value]);else if(m())xOx(m(),h.value);else{var LG;xOx((LG=q())==null?void 0:LG.command,h.value);document.dispatchEvent(new CustomEvent("yt-shorts-reset"))}}
var I=a.data;var J=_.Mm("yt-player-overlay-video-interactions");a=_.C(_.CW("0px",void 0,"O1N7Ce"));var r=a.next().value,P=a.next().value;a=_.C(_.CW("0px",void 0,"tTDBdb"));var N=a.next().value,u=a.next().value;a=_.C(_.CW(0,void 0,"fh8Zkc"));var E=a.next().value,O=a.next().value;a=_.C(_.CW(0,void 0,"CUjqGd"));var f=a.next().value,A=a.next().value,n=function(){var Bp;if(((Bp=_.Bn())==null?void 0:Bp.getPlayerState())!==-1){J.value.style.display="inherit";var Em;(Em=_.Bn())==null||Em.removeEventListener("onStateChange",
n)}F()},F=function(){var Bp=document.querySelector("video");
if(Bp){O(Bp.getBoundingClientRect().width);A(Bp.getBoundingClientRect().height);var Em;P((Bp==null?void 0:(Em=Bp.style)==null?void 0:Em.left)||"0px");var nG;u((Bp==null?void 0:(nG=Bp.style)==null?void 0:nG.top)||"0px")}};
_.h2(function(){var Bp,Em,nG;if(((Bp=_.Bn())==null?void 0:Bp.getPlayerState())===-1&&Math.round(((nG=(Em=_.Bn())==null?void 0:Em.getVideoAspectRatio())!=null?nG:0)*100)!==Math.round(E()/f()*100)){J.value.style.display="none";var bG,Hp;A(E()/((Hp=(bG=_.Bn())==null?void 0:bG.getVideoAspectRatio())!=null?Hp:1))}},"VB5m5");
_.hD(function(){var Bp;(Bp=_.Bn())==null||Bp.addEventListener("onStateChange",n);window.addEventListener("resize",F);F();var Em,nG,bG;if((bG=(Em=I())==null?void 0:(nG=Em.regions)==null?void 0:nG[0])==null||!bG.transformationMatrix)throw Error("Bo");var Hp;if((Hp=I())==null?0:Hp.trackingParams){var LG;_.Kw().graftServerVe((LG=I().trackingParams)!=null?LG:"")}_.V3(function(){var oE;(oE=_.Bn())==null||oE.removeEventListener("onStateChange",n);window.removeEventListener("resize",F)})});
var h=_.Mm("svg"),v=_.C(_.CW(!1,void 0,"TPsTce"));a=v.next().value;var d=v.next().value,W=_.C(_.CW(!1,void 0,"Uz6CHf"));v=W.next().value;var l=W.next().value,q=function(){var Bp;return _.H((Bp=I())==null?void 0:Bp.popUp,k3O)},m=function(){var Bp;
return(Bp=I())==null?void 0:Bp.command},M=function(){return _.H(m(),_.Sr)!==void 0};
W=_.g4(function(){z();return!1});
var y={},e={};return _.B("yt-player-overlay-video-interactions",{el:J},_.B("svg",{"on:mouseover":_.g4(function(){M()&&d(!0);l(!0);return!1}),
"on:mouseout":_.g4(function(){d(!1);l(!1);return!1}),
"on:keydown":_.g4(function(Bp){Bp.key==="Enter"&&z();return!1}),
"on:focus":_.g4(function(){M()&&d(!0);return!1}),
"on:blur":_.g4(function(){M()&&d(!1);return!1}),
el:h,tabindex:0,"aria-label":function(){var Bp;return(Bp=I())==null?void 0:Bp.a11yString},
id:"player-overlay-video-interaction-svg",class:_.B8("yt-player-overlay-video-interactions__interactions-svg",(y["yt-player-overlay-video-interactions__interactions-svg-hover"]=a,y),(e["yt-player-overlay-video-interactions__interactions-svg-hide-outline"]=v,e)),role:"button",style:function(){var Bp,Em,nG,bG=(nG=(Bp=I())==null?void 0:(Em=Bp.regions)==null?void 0:Em[0].transformationMatrix)!=null?nG:[];Bp=E();Em=f();nG=[];for(var Hp=0,LG=-1;Hp<bG.length;Hp++)Hp%3===0&&(LG++,nG[LG]=[]),nG[LG].push(bG[Hp]);
bG=new Nw(nG);nG=new Nw([[0,1,1,0],[0,0,1,1],[1,1,1,1]]);nG=bG.multiply(nG);bG=new Nw([[0,0],[0,0],[0,0],[0,0]]);for(Hp=0;Hp<nG.getSize().width;Hp++){LG=tm(nG,0,Hp);var oE=tm(nG,1,Hp);if(LG===null||oE===null)throw Error("Ao`"+(Hp+1).toString());uS(bG,Hp,0,LG*Bp);uS(bG,Hp,1,oE*Em)}Bp=tm(bG,0,0);Hp=tm(bG,1,0);Em=tm(bG,0,1);LG=tm(bG,1,1);if(Bp===null||Hp===null||Em===null||LG===null)throw Error("yo");nG=iGI(Bp,Hp,Em,LG);oE=tm(bG,3,0);bG=tm(bG,3,1);if(oE===null||bG===null)throw Error("zo");bG=iGI(Bp,
oE,Em,bG);LG=(Number((LG*-1).toFixed(2))-Number((Em*-1).toFixed(2)))/(Number(Hp.toFixed(2))-Number(Bp.toFixed(2)));oE=Math.atan(LG)*180/Math.PI;Hp=LG===Number.POSITIVE_INFINITY?-90:LG===Number.NEGATIVE_INFINITY?90:Object.is(LG,-0)?180:LG===0?0:LG>0?oE*-1:Bp<Hp?oE*-1:Math.abs(oE)+180;return"left:calc("+Bp+"px + "+r()+"); top:calc("+(Em+"px + "+N()+"); width:")+(nG+"px; height:")+(bG+"px; transform:rotate(")+(Hp+"deg);")},
"on:click":W}))},"Xj"),"yt-player-overlay-video-interactions",{props:{data:_.zl}});_.Jf(_.WOi,"yt-reel-metapanel-view-model",{props:{data:_.zl,overlayDensity:_.zl}});var qmI=_.ec(function(a){var z=a.children;var I=a.region;a=_.C(_.CW(void 0,void 0,"rwJZyc"));var J=a.next().value,r=a.next().value;a=_.C(_.CW("0px",void 0,"H14H5c"));var P=a.next().value,N=a.next().value;a=_.C(_.CW("0px",void 0,"Mn8Uvf"));var u=a.next().value,E=a.next().value;a=_.C(_.CW(0,void 0,"QQCIqc"));var O=a.next().value,f=a.next().value;a=_.C(_.CW(0,void 0,"HyEvh"));var A=a.next().value,n=a.next().value,F=function(){var q=J();if(q){var m;if(((m=_.Bn())==null?void 0:m.getPlayerState())!==-1){q.style.display=
"inherit";var M;(M=_.Bn())==null||M.removeEventListener("onStateChange",F)}v()}},h=function(){var q=document.querySelectorAll("video");
return Array.from(q).find(function(m){var M;return m==null?void 0:(M=m.style)==null?void 0:M.width})},v=function(){var q=h();
if(q){f(q.getBoundingClientRect().width);n(q.getBoundingClientRect().height);var m;N((q==null?void 0:(m=q.style)==null?void 0:m.left)||"0px");var M;E((q==null?void 0:(M=q.style)==null?void 0:M.top)||"0px")}};
_.h2(function(){var q=J();if(q){var m,M,y;if(((m=_.Bn())==null?void 0:m.getPlayerState())===-1&&Math.round(((y=(M=_.Bn())==null?void 0:M.getVideoAspectRatio())!=null?y:0)*100)!==Math.round(O()/A()*100)){q.style.display="none";var e,Bp;n(O()/((Bp=(e=_.Bn())==null?void 0:e.getVideoAspectRatio())!=null?Bp:1))}}},"RdGxIf");
var d=function(){v()},W;
_.hD(function(){v();var q;if(!(I==null?0:(q=I())==null?0:q.transformationMatrix))throw Error("Bo");var m;(m=_.Bn())==null||m.addEventListener("onStateChange",F);if(window.ResizeObserver){if(q=h())W=new ResizeObserver(d),W.observe(q)}else window.addEventListener("resize",v);_.V3(function(){var M;(M=_.Bn())==null||M.removeEventListener("onStateChange",F);W?W.disconnect():window.removeEventListener("resize",v)})});
var l=function(){var q,m,M=(m=I==null?void 0:(q=I())==null?void 0:q.transformationMatrix)!=null?m:[];q=O();m=A();for(var y=[],e=0,Bp=-1;e<M.length;e++)e%3===0&&(Bp++,y[Bp]=[]),y[Bp].push(M[e]);M=new Nw(y);y=new Nw([[0,1,1,0],[0,0,1,1],[1,1,1,1]]);y=M.multiply(y);M=new Nw([[0,0],[0,0],[0,0],[0,0]]);for(e=0;e<y.getSize().width;e++){Bp=tm(y,0,e);var Em=tm(y,1,e);if(Bp===null||Em===null)throw Error("Ao`"+(e+1).toString());uS(M,e,0,Bp*q);uS(M,e,1,Em*m)}q=tm(M,0,0);e=tm(M,1,0);m=tm(M,0,1);Bp=tm(M,1,1);
if(q===null||e===null||m===null||Bp===null)throw Error("yo");y=v7u(q,e,m,Bp);Em=tm(M,3,0);M=tm(M,3,1);if(Em===null||M===null)throw Error("zo");M=v7u(q,Em,m,M);Bp=(Number((Bp*-1).toFixed(2))-Number((m*-1).toFixed(2)))/(Number(e.toFixed(2))-Number(q.toFixed(2)));Em=Math.atan(Bp)*180/Math.PI;e=Bp===Number.POSITIVE_INFINITY?-90:Bp===Number.NEGATIVE_INFINITY?90:Object.is(Bp,-0)?180:Bp===0?0:Bp>0?Em*-1:q<e?Em*-1:Math.abs(Em)+180;return"left:calc("+q+"px + "+P()+"); top:calc("+(m+"px + "+u()+"); width:")+
(y+"px; height:")+(M+"px; transform:rotate(")+(e+"deg);")};
return _.B(QEa,{root:"#sticker-layer"},function(){return _.B("yt-overlay-sticker",{el:_.a5(r),style:l,class:"ytOverlayStickerHost"},z)})},"Yj");var eI4=_.ec(function(a){function z(){var F,h,v,d,W=(h=_.H((F=E())==null?void 0:F.command,_.Qw))==null?void 0:(v=h.item)==null?void 0:(d=v.notificationTextRenderer)==null?void 0:d.successResponseText;if(W)_.ZF(J.value,"yt-open-popup-action",[_.aX(W),J.value]);else if(O())G3t(O(),J.value);else{var l;G3t((l=E())==null?void 0:l.command,J.value);document.dispatchEvent(new CustomEvent("yt-shorts-reset"))}}
var I=a.data;var J=_.Mm("svg"),r=_.C(_.CW(!1,void 0,"T9Bq7b"));a=r.next().value;var P=r.next().value,N=_.C(_.CW(!1,void 0,"iMHq9c"));r=N.next().value;var u=N.next().value,E=function(){var F;return _.H((F=I())==null?void 0:F.popUp,k3O)},O=function(){var F;
return(F=I())==null?void 0:F.command},f=function(){return _.H(O(),_.Sr)!==void 0};
N=_.g4(function(){z();return!1});
var A={},n={};return _.B("svg",{"on:mouseover":_.g4(function(){f()&&P(!0);u(!0);return!1}),
"on:mouseout":_.g4(function(){P(!1);u(!1);return!1}),
"on:keydown":_.g4(function(F){F.key==="Enter"&&z();return!1}),
"on:focus":_.g4(function(){f()&&P(!0);return!1}),
"on:blur":_.g4(function(){f()&&P(!1);return!1}),
el:J,tabindex:0,"aria-label":function(){var F;return(F=I())==null?void 0:F.a11yString},
id:"player-overlay-video-interaction-svg",class:_.B8("ytPlayerOverlayInteractionInteractionsSvg",(A.ytPlayerOverlayInteractionInteractionsSvgHover=a,A),(n.ytPlayerOverlayInteractionInteractionsSvgHideOutline=r,n)),role:"button","on:click":N})},"$j");_.Jf(_.ec(function(a){var z=a.data;_.hD(function(){var I;if((I=z())==null?0:I.trackingParams){var J;_.Kw().graftServerVe((J=z().trackingParams)!=null?J:"")}});
return _.B("yt-player-overlay-interaction",null,_.B(qmI,{region:function(){var I,J;return(I=z())==null?void 0:(J=I.regions)==null?void 0:J[0]}},_.B(eI4,Object.assign({},a))))},"Zj"),"yt-player-overlay-interaction",{props:{data:_.zl}});var BC=function(){var a=_.G.apply(this,arguments)||this;a.showScrubber=!1;a.isWatchWhileMode=!1;a.enableAnchoredPanel=_.K("desktop_shorts_v2_anchored_panel");a.enableNewStickers=_.K("use_shorts_sticker_overlay_web");a.anchoredPanelActive=!1;a.enableLivingroomLayout=_.K("reels_enable_livingroom_layout");a.enablePlayerMetadataContainer=_.K("reels_web_enable_metadata_container");a.enableSqueezebackPanels=_.K("web_shorts_enable_squeezeback_panels");a.useAspectRatio=_.K("web_use_aspect_ratio");a.isSqueezebackActive=
!1;a.smallScreenSqueezeback=!1;a.isPlayerStarted=!1;a.overlayDensity=0;a.isOverlay=!1;a.isImmersive=!1;a.isImmersiveHorizontal=!1;a.isFullscreen=!1;a.onWindowResized=function(){var z;a.set("isImmersive",((z=window.getComputedStyle(a.hostElement))==null?void 0:z.getPropertyValue("--immersive-mode-on"))==="1");a.set("isImmersiveHorizontal",a.isImmersive&&a.enableLivingroomLayout&&!a.isWatchWhileMode)};
return a};
_.b(BC,_.G);_.Z=BC.prototype;_.Z.updateIsOverlay=function(a){this.isOverlay=a.detail.value};
_.Z.computeIsShortsOverlay=function(){this.enableLivingroomLayout&&(this.isWatchWhileMode?(this.isImmersiveHorizontal=!1,this.isOverlay=!0):(!this.isOverlay&&this.isImmersive&&(this.isImmersiveHorizontal=!0),this.isOverlay=!1));if(_.K("web_enable_flexible_overlay")||_.K("web_enable_format_first")||_.K("web_enable_format_first_organic_only"))this.isOverlay=this.overlayDensity===2;return this.isWatchWhileMode&&!this.enableAnchoredPanel&&!this.enableLivingroomLayout||this.isOverlay};
_.Z.computeIsShortsImmersive=function(){return!this.isWatchWhileMode&&this.isImmersive&&!this.anchoredPanelActive};
_.Z.onIsActiveChanged=function(){this.isActive||this.setEmptyOverlayMetadata()};
_.Z.computeActionBarButtonOverride=function(){return{style:this.isOverlay||this.isWatchWhileMode&&!this.enableAnchoredPanel?"overlay-dark":"mono",iconPosition:"icon-with-label",size:"L"}};
_.Z.computeButtonOverride=function(){return{style:this.isOverlay||this.isWatchWhileMode&&!this.enableAnchoredPanel?"overlay-dark":"mono",type:"tonal",iconPosition:"icon-with-label",size:"L"}};
_.Z.attached=function(){window.addEventListener("resize",this.onWindowResized);this.onWindowResized()};
_.Z.detached=function(){window.removeEventListener("resize",this.onWindowResized)};
_.Z.ready=function(){(_.K("enable_reel_action_bar_view_model")||this.get("data.likeButton")||this.get("data.viewCommentsButton")||this.get("data.shareButton")||this.get("data.remixButton")||this.get("data.menu")||this.get("data.subscribeButtonRenderer"))&&(!_.K("enable_reel_action_bar_view_model")||this.get("data.buttonBar")||this.get("data.menu"))||this.setFakeLoadingButtons();this.hostElement.style.setProperty("--metadata-justify-content",_.rM("reels_metadata_justified_content")||"flex-start");
this.hostElement.style.setProperty("--action-justify-content",_.rM("reels_action_justified_content")||"flex-start")};
_.Z.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}}};
_.Z.setFakeLoadingButtons=function(){_.K("enable_reel_action_bar_view_model")?this.set("data.buttonBar",{}):(this.set("data.likeButton",{likeButtonRenderer:{likesAllowed:!0,likeStatus:"INDIFFERENT",likeCountText:{simpleText:_.AR("LIKE_LABEL",void 0,"Like")},dislikeCountText:{simpleText:_.AR("DISLIKE_LABEL",void 0,"Dislike")}}}),this.set("data.viewCommentsButton",{buttonRenderer:{icon:{iconType:"SHORTS_COMMENT"},text:{simpleText:_.AR("COMMENT_LABEL",void 0,"Comment")}}}),this.set("data.shareButton",
{buttonRenderer:{icon:{iconType:"SHORTS_SHARE"},text:{simpleText:_.AR("SHARE_LABEL",void 0,"Share")}}}),this.set("data.remixButton",{buttonRenderer:{icon:{iconType:"REMIX_FILLED"},text:{simpleText:_.AR("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()};
_.Z.setEmptyOverlayMetadata=function(){_.K("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}))};
_.eH.Object.defineProperties(BC.prototype,{hasInfoPanel:{configurable:!0,enumerable:!0,get:function(){var a;return!((a=this.data)==null||!a.infoPanel)}}});
BC.prototype.onIsActiveChanged=BC.prototype.onIsActiveChanged;_.L([_.Q(_.Ms.YtComponentBehavior),_.p("design:type",Object)],BC.prototype,"ytComponentBehavior",void 0);_.L([_.Q(_.u4.YtRendererstamperBehavior),_.p("design:type",Object)],BC.prototype,"ytRendererstamperBehavior",void 0);_.L([_.Q(_.pV),_.p("design:type",Object)],BC.prototype,"ytdReduxBehavior",void 0);_.L([_.Q(_.cZ.YtdGuideStateAwareBehavior),_.p("design:type",Object)],BC.prototype,"ytdGuideStateAwareBehavior",void 0);
_.L([_.x(),_.p("design:type",Object)],BC.prototype,"data",void 0);_.L([_.x(),_.p("design:type",Boolean)],BC.prototype,"isActive",void 0);_.L([_.x({reflectToAttribute:!0,value:!1}),_.p("design:type",Boolean)],BC.prototype,"hidden",void 0);_.L([_.x({value:!0}),_.p("design:type",Boolean)],BC.prototype,"useShortsIcon",void 0);_.L([_.x({value:"left"}),_.p("design:type",String)],BC.prototype,"buttonTooltipPosition",void 0);
_.L([_.x({value:_.K("reels_enable_livingroom_layout")?"top":"left"}),_.p("design:type",String)],BC.prototype,"likeButtonTooltipPosition",void 0);_.L([_.x({value:"none"}),_.p("design:type",String)],BC.prototype,"textTransform",void 0);_.L([_.x({reflectToAttribute:!0}),_.p("design:type",Object)],BC.prototype,"showScrubber",void 0);_.L([_.x({reflectToAttribute:!0}),_.p("design:type",Object)],BC.prototype,"isWatchWhileMode",void 0);
_.L([_.x({reflectToAttribute:!0}),_.S("data.infoPanel"),_.p("design:type",Object),_.p("design:paramtypes",[])],BC.prototype,"hasInfoPanel",null);_.L([_.x({reflectToAttribute:!0}),_.p("design:type",Object)],BC.prototype,"enableAnchoredPanel",void 0);_.L([_.x({reflectToAttribute:!0}),_.p("design:type",Object)],BC.prototype,"enableNewStickers",void 0);_.L([_.x({reflectToAttribute:!0}),_.p("design:type",Object)],BC.prototype,"anchoredPanelActive",void 0);
_.L([_.x({reflectToAttribute:!0}),_.p("design:type",Object)],BC.prototype,"enableLivingroomLayout",void 0);_.L([_.x({reflectToAttribute:!0}),_.p("design:type",Boolean)],BC.prototype,"enablePlayerMetadataContainer",void 0);_.L([_.x({reflectToAttribute:!0}),_.p("design:type",Object)],BC.prototype,"enableSqueezebackPanels",void 0);_.L([_.x({reflectToAttribute:!0}),_.p("design:type",Object)],BC.prototype,"useAspectRatio",void 0);
_.L([_.x({selector:_.eri,reflectToAttribute:!0}),_.p("design:type",Object)],BC.prototype,"isSqueezebackActive",void 0);_.L([_.x({selector:Fd9,reflectToAttribute:!0}),_.p("design:type",Object)],BC.prototype,"smallScreenSqueezeback",void 0);_.L([_.x({selector:HG4}),_.p("design:type",Object)],BC.prototype,"isPlayerStarted",void 0);_.L([_.x({reflectToAttribute:!0}),_.p("design:type",Object)],BC.prototype,"overlayDensity",void 0);_.L([_.x(),_.p("design:type",Object)],BC.prototype,"isOverlay",void 0);
_.L([_.x({computed:"computeIsShortsOverlay(isOverlay, isWatchWhileMode, overlayDensity)"}),_.p("design:type",Boolean)],BC.prototype,"isShortsOverlay",void 0);_.L([_.x(),_.p("design:type",Object)],BC.prototype,"isImmersive",void 0);_.L([_.x(),_.p("design:type",Object)],BC.prototype,"isImmersiveHorizontal",void 0);_.L([_.x({computed:"computeIsShortsImmersive(isImmersive, isWatchWhileMode, anchoredPanelActive)"}),_.p("design:type",Boolean)],BC.prototype,"isShortsImmersive",void 0);
_.L([_.x({computed:"computeButtonOverride(isOverlay, isWatchWhileMode)"}),_.p("design:type",Object)],BC.prototype,"buttonOverride",void 0);_.L([_.x({computed:"computeActionBarButtonOverride(isOverlay, isWatchWhileMode)"}),_.p("design:type",Object)],BC.prototype,"actionBarButtonOverride",void 0);_.L([_.x({selector:_.Cc,reflectToAttribute:!0}),_.p("design:type",Object)],BC.prototype,"isFullscreen",void 0);
_.L([_.O8("isActive"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],BC.prototype,"onIsActiveChanged",null);_.L([_.U({is:"ytd-reel-player-overlay-renderer",disableElementRegistration:!0})],BC);
_.D(BC,"ytd-reel-player-overlay-renderer",function(){if(c1t!==void 0)return c1t;var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-reel-player-overlay-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="metadata-container style-scope ytd-reel-player-overlay-renderer" role="heading" aria-level="1">\n  <div id="overlay" class="style-scope ytd-reel-player-overlay-renderer">\n    <template is="dom-if" if="[[!enableNewStickers]]" class="style-scope ytd-reel-player-overlay-renderer">\n      <template is="dom-repeat" items="[[data.videoInteractions.interactions]]" as="item" class="style-scope ytd-reel-player-overlay-renderer">\n        <yt-player-overlay-video-interactions data="[[item]]" class="style-scope ytd-reel-player-overlay-renderer">\n        </yt-player-overlay-video-interactions>\n      </template>\n    </template>\n    <template is="dom-if" if="[[enableNewStickers]]" class="style-scope ytd-reel-player-overlay-renderer">\n      <template is="dom-repeat" items="[[data.videoInteractions.interactions]]" as="item" class="style-scope ytd-reel-player-overlay-renderer">\n        <yt-player-overlay-interaction data="[[item]]" class="style-scope ytd-reel-player-overlay-renderer">\n        </yt-player-overlay-interaction>\n      </template>\n    </template>\n    <template is="dom-if" if="[[data.metapanel]]" class="style-scope ytd-reel-player-overlay-renderer">\n      <div id="metapanel" class="style-scope ytd-reel-player-overlay-renderer">\n        <yt-reel-metapanel-view-model data="[[data.metapanel.reelMetapanelViewModel]]" overlay-density="[[overlayDensity]]" class="style-scope ytd-reel-player-overlay-renderer"></yt-reel-metapanel-view-model>\n      </div>\n    </template>\n  </div>\n  <div id="info-panel" class="style-scope ytd-reel-player-overlay-renderer"></div>\n</div>\n\n<div class="action-container style-scope ytd-reel-player-overlay-renderer">\n  <div id="actions" class="style-scope ytd-reel-player-overlay-renderer">\n    <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    <template is="dom-if" if="[[data.buttonBar]]" class="style-scope ytd-reel-player-overlay-renderer">\n      <div id="button-bar" class="style-scope ytd-reel-player-overlay-renderer">\n        <reel-action-bar-view-model button-shape-overrideables="[[actionBarButtonOverride]]" data="[[data.buttonBar.reelActionBarViewModel]]" class="style-scope ytd-reel-player-overlay-renderer"></reel-action-bar-view-model>\n      </div>\n    </template>\n    <template is="dom-if" if="[[data.likeButton]]" class="style-scope ytd-reel-player-overlay-renderer">\n      <div id="like-button" class="button-container style-scope ytd-reel-player-overlay-renderer">\n        <ytd-like-button-renderer button-tooltip-position="[[likeButtonTooltipPosition]]" data="[[data.likeButton.likeButtonRenderer]]" overrides="[[buttonOverride]]" text-transform="[[textTransform]]" use-shorts-icon="[[useShortsIcon]]" vertical="[[!isImmersiveHorizontal]]" class="style-scope ytd-reel-player-overlay-renderer"></ytd-like-button-renderer>\n      </div>\n    </template>\n    <template is="dom-if" if="[[data.viewCommentsButton]]" class="style-scope ytd-reel-player-overlay-renderer">\n      <div id="comments-button" class="button-container style-scope ytd-reel-player-overlay-renderer">\n        <ytd-button-renderer button-tooltip-position="[[buttonTooltipPosition]]" data="[[data.viewCommentsButton.buttonRenderer]]" overrides="[[buttonOverride]]" vertically-aligned="" class="style-scope ytd-reel-player-overlay-renderer"></ytd-button-renderer>\n      </div>\n    </template>\n    <template is="dom-if" if="[[data.shareButton]]" class="style-scope ytd-reel-player-overlay-renderer">\n      <div id="share-button" class="button-container style-scope ytd-reel-player-overlay-renderer">\n        <ytd-button-renderer button-tooltip-position="[[buttonTooltipPosition]]" data="[[data.shareButton.buttonRenderer]]" overrides="[[buttonOverride]]" vertically-aligned="" class="style-scope ytd-reel-player-overlay-renderer"></ytd-button-renderer>\n      </div>\n    </template>\n    <template is="dom-if" if="[[data.remixButton]]" class="style-scope ytd-reel-player-overlay-renderer">\n      <div id="remix-button" class="button-container style-scope ytd-reel-player-overlay-renderer">\n        <ytd-button-renderer button-tooltip-position="[[buttonTooltipPosition]]" data="[[data.remixButton.buttonRenderer]]" overrides="[[buttonOverride]]" vertically-aligned="" class="style-scope ytd-reel-player-overlay-renderer"></ytd-button-renderer>\n      </div>\n    </template>\n    <div id="pivot-button" class="button-container style-scope ytd-reel-player-overlay-renderer" tabindex="0"></div>\n  </div>\n</div>\n<iron-media-query id="overlay-query" query="(max-width: 599px)" query-matches="[[isOverlay]]" on-query-matches-changed="updateIsOverlay" class="style-scope ytd-reel-player-overlay-renderer"></iron-media-query>\n');a.content.insertBefore(_.w().content.cloneNode(!0),
a.content.firstChild);return c1t=a},{mode:1});var aj7;var gC=function(){var a=_.G.apply(this,arguments)||this;a.videoDuration=0;a.playedTime=0;a.isActive=!1;a.JSC$22198_playerEvents=new Map;return a};
_.b(gC,_.G);_.Z=gC.prototype;_.Z.created=function(){this.JSC$22198_playerEvents.set("onVideoDataChange",this.onVideoDataChange);this.JSC$22198_playerEvents.set("onVideoProgress",this.onVideoProgress)};
_.Z.attached=function(){this.getPlayerAndInitializeListeners()};
_.Z.detached=function(){this.player&&(this.ytPlayerListenerBehavior.unlistenFromPlayerEvents(this.player,this.JSC$22198_playerEvents),this.player=null);document.removeEventListener("yt-page-type-changed",_.BK(this,this.onPageChanged))};
_.Z.getPlayerAndInitializeListeners=function(){var a=this,z;return _.t(function(I){if(I.nextAddress==1)return z=_.zI(),z?I.yield(z.getPlayerPromise(),3):(document.addEventListener("yt-page-type-changed",_.BK(a,a.onPageChanged)),I.jumpTo(0));a.player=I.yieldResult;a.initializePlayerListeners();_.nu(I)})};
_.Z.onPageChanged=function(a){var z=this;return _.t(function(I){if(I.nextAddress==1)return a.detail.newPageType!=="ytd-shorts"?I.return():I.yield(_.IK().getPlayerPromise(),2);z.player=I.yieldResult;z.initializePlayerListeners();document.removeEventListener("yt-page-type-changed",_.BK(z,z.onPageChanged));_.nu(I)})};
_.Z.initializePlayerListeners=function(){this.ytPlayerListenerBehavior.listenToPlayerEvents(this.player,this.JSC$22198_playerEvents)};
_.Z.onVideoDataChange=function(a){var z=this;return _.t(function(I){if(!z.player||a.type!=="newdata")return I.return();z.videoDuration=_.K("web_shorts_use_progress_state_for_gapless")?z.player.getProgressState(a.playertype).seekableEnd:z.player.getDuration(a.playertype);z.playedTime=0;_.nu(I)})};
_.Z.onVideoProgress=function(a){var z=this,I,J;return _.t(function(r){if(!z.player)return r.return();I=z.player.getPresentingPlayerType();J=z.player.getPlayerState();z.videoDuration=_.K("web_shorts_use_progress_state_for_gapless")?z.player.getProgressState(I).seekableEnd:z.player.getDuration(I);z.playedTime=J===0?z.videoDuration:a;_.nu(r)})};
_.Z.getPercentPlayed=function(a,z){return a?_.TO(z/a,0,1):0};
_.eH.Object.defineProperties(gC.prototype,{percentPlayed:{configurable:!0,enumerable:!0,get:function(){return this.videoDuration&&this.playedTime?Math.floor(this.getPercentPlayed(this.videoDuration,this.playedTime)*100):0}},
percentPlayedStyle:{configurable:!0,enumerable:!0,get:function(){var a="";return a=this.videoDuration&&this.playedTime?a+("transform:scaleX("+this.getPercentPlayed(this.videoDuration,this.playedTime)+");"):a+"transform:scaleX(0);"}},
hideProgressBar:{configurable:!0,enumerable:!0,get:function(){return this.videoDuration?!(this.isActive&&this.videoDuration>30):!1}}});
_.L([_.Q(_.Ms.YtComponentBehavior),_.p("design:type",Object)],gC.prototype,"componentBehavior",void 0);_.L([_.Q(_.jz.YtPlayerListenerBehavior),_.p("design:type",_.z4)],gC.prototype,"ytPlayerListenerBehavior",void 0);_.L([_.x(),_.p("design:type",Object)],gC.prototype,"player",void 0);_.L([_.x(),_.p("design:type",Object)],gC.prototype,"videoDuration",void 0);_.L([_.x(),_.p("design:type",Object)],gC.prototype,"playedTime",void 0);_.L([_.x(),_.p("design:type",Object)],gC.prototype,"isActive",void 0);
_.L([_.S("videoDuration","playedTime"),_.p("design:type",Number),_.p("design:paramtypes",[])],gC.prototype,"percentPlayed",null);_.L([_.S("videoDuration","playedTime"),_.p("design:type",Object),_.p("design:paramtypes",[])],gC.prototype,"percentPlayedStyle",null);_.L([_.S("videoDuration","isActive"),_.p("design:type",Boolean),_.p("design:paramtypes",[])],gC.prototype,"hideProgressBar",null);
_.D(gC,"ytd-progress-bar-line",function(){if(aj7===void 0){var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-progress-bar-line--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="progress-bar-line" hidden="[[hideProgressBar]]" role="progressbar" aria-valuenow$="[[percentPlayed]]" class="style-scope ytd-progress-bar-line">\n  <div class="progress-bar-background style-scope ytd-progress-bar-line"></div>\n  <div class="progress-bar-played style-scope ytd-progress-bar-line" style$="[[percentPlayedStyle]]"></div>\n</div>\n');a.content.insertBefore(_.w().content.cloneNode(!0),
a.content.firstChild);aj7=a}a=aj7;return a},{mode:_.Np("kevlar_poly_si_batch_j028")?1:2});var jwI;_.Jf(_.OWZ,"ytm-closed-captioning-button",{props:{captionIconType:_.zl,onClick:_.I5,ariaLabel:_.zl,ariaPressed:_.zl,isOverlay:_.I5,isModern:_.I5}});_.Jf(_.v84,"desktop-shorts-volume-controls",{props:{orientation:_.zl}});var OI=function(){var a=_.G.apply(this,arguments)||this;a.playerState=null;a.isMuted=!1;a.shortsModernControlsEnabled=_.K("web_shorts_modern_controls");a.volumeControlsOrientationState=_.K("web_shorts_modern_controls")?"vertical_down":"horizontal_right";a.isOverlay=!0;a.captionIconType=-1;a.ariaLabel="";a.overlayDensity=0;a.JSC$22201_playerEvents=new Map;a.onClosedCaptionsButtonClick=function(){a.player&&_.jb(a.player)&&(a.player.toggleSubtitles(),a.updateCaptionIconType())};
return a};
_.b(OI,_.G);_.Z=OI.prototype;_.Z.created=function(){this.JSC$22201_playerEvents.set("onStateChange",this.onPlayerStateChange);this.JSC$22201_playerEvents.set("onVolumeChange",this.onPlayerVolumeChange);this.shortsModernControlsEnabled&&this.JSC$22201_playerEvents.set("captionschanged",this.updateCaptionIconType)};
_.Z.attached=function(){this.getPlayerAndInitializeListeners();this.muteButtonClientVE=_.uq(28662);this.playPauseButtonClientVE=_.uq(36842);this.fullscreenButtonToggleOffClientVE=_.uq(222256);this.fullscreenButtonToggleOnClientVE=_.uq(222257);var a=_.TX(),z=_.XZ();a&&z&&(_.K("combine_ve_grafts")?(_.Aq(_.Kw(),this.muteButtonClientVE,z),_.Aq(_.Kw(),this.playPauseButtonClientVE,z)):_.lI(a,z,[this.muteButtonClientVE,this.playPauseButtonClientVE,this.fullscreenButtonToggleOffClientVE,this.fullscreenButtonToggleOnClientVE]))};
_.Z.detached=function(){this.player&&(this.ytPlayerListenerBehavior.unlistenFromPlayerEvents(this.player,this.JSC$22201_playerEvents),this.player=null)};
_.Z.updateCaptionIconType=function(){var a=-1,z=void 0,I=_.AR("CLOSED_CAPTIONS_DISABLED");this.player&&_.jb(this.player)&&(_.ITZ(this.player)?(z=!0,I=_.AR("CLOSED_CAPTIONS_ON"),a=1):(z=!1,I=_.AR("CLOSED_CAPTIONS_OFF"),a=0));this.captionIconType=a;this.ariaPressedState=z;this.ariaLabel=I};
_.Z.getPlayerAndInitializeListeners=function(){var a=this,z;return _.t(function(I){if(I.nextAddress==1)return z=_.zI(),z?I.yield(z.getPlayerPromise(),3):(document.addEventListener("yt-page-type-changed",_.BK(a,a.onPageChanged)),I.jumpTo(0));a.player=I.yieldResult;a.initializePlayerListeners();_.nu(I)})};
_.Z.onPageChanged=function(a){var z=this;return _.t(function(I){if(I.nextAddress==1)return a.detail.newPageType!=="ytd-shorts"?I.return():I.yield(_.IK().getPlayerPromise(),2);z.player=I.yieldResult;z.initializePlayerListeners();document.removeEventListener("yt-page-type-changed",_.BK(z,z.onPageChanged));_.nu(I)})};
_.Z.initializePlayerListeners=function(){this.ytPlayerListenerBehavior.listenToPlayerEvents(this.player,this.JSC$22201_playerEvents);this.shortsModernControlsEnabled&&this.updateCaptionIconType()};
_.Z.onPlayerStateChange=function(a){this.playerState=a};
_.Z.onPlayerVolumeChange=function(a){this.isMuted=a.muted};
_.Z.onPlayPauseButtonClick=function(){var a=this,z,I;return _.t(function(J){if(J.nextAddress==1)return J.yield(_.IK().getPlayerPromise(),2);z=J.yieldResult;(I=_.TX())&&a.playPauseButtonClientVE&&_.ys(I,a.playPauseButtonClientVE);z.getPlayerState()!==1?z.playVideo():z.pauseVideo();_.nu(J)})};
_.Z.computePlayPauseIcon=function(a){return a===2||a===-1||a===5?_.K("web_shorts_modern_controls")?"PLAY_ARROW_DELHI_PLAYER_FILLED":"PLAY_ARROW_FILLED":_.K("web_shorts_modern_controls")?"PAUSE_DELHI_PLAYER_FILLED":_.K("enable_web_delhi_icons")?"PAUSE_FILLED":"miniplayer:shorts-pause"};
_.Z.computeFullscreenLabel=function(a){return a?_.AR("FULLSCREEN_EXIT_LABEL"):_.AR("FULLSCREEN_ENTER_LABEL")};
_.Z.computePlayPauseLabel=function(a){return a===1||a===3?_.AR("PLAYER_LABEL_PAUSE"):_.AR("PLAYER_LABEL_PLAY")};
_.Z.onMuteButtonClick=function(){var a=this,z,I;return _.t(function(J){if(J.nextAddress==1)return J.yield(_.IK().getPlayerPromise(),2);z=J.yieldResult;(I=_.TX())&&a.muteButtonClientVE&&_.ys(I,a.muteButtonClientVE);z.isMuted()?z.unMute(!0):z.mute(!0);_.nu(J)})};
_.Z.computeMuteIcon=function(a){return a?"miniplayer:volume-off":"miniplayer:volume-up"};
_.Z.computeMuteLabel=function(a){return a?_.AR("PLAYER_LABEL_UNMUTE"):_.AR("PLAYER_LABEL_MUTE")};
_.Z.onFullscreenButtonClick=function(){var a=_.TX();a&&(this.fullscreenButtonToggleOffClientVE&&this.isFullscreen?_.ys(a,this.fullscreenButtonToggleOffClientVE):this.fullscreenButtonToggleOnClientVE&&!this.isFullscreen&&_.ys(a,this.fullscreenButtonToggleOnClientVE));document.activeElement instanceof HTMLElement&&document.activeElement.blur();_.$ri()};
_.eH.Object.defineProperties(OI.prototype,{playPauseButtonData:{configurable:!0,enumerable:!0,get:function(){var a=this;return{disabled:!1,accessibilityLabel:this.computePlayPauseLabel(this.playerState),iconPosition:"icon-only",size:"L",state:"active",style:"overlay-dark",type:"tonal",tooltipText:this.computePlayPauseLabel(this.playerState),onTap:function(){a.onPlayPauseButtonClick()},
disableBackdropFilter:this.shortsModernControlsEnabled,customColors:this.shortsModernControlsEnabled?{backgroundColor:"var(--yt-spec-static-overlay-additive-background)"}:{}}}},
fullscreenButtonData:{configurable:!0,enumerable:!0,get:function(){return{disabled:!1,accessibilityLabel:this.computeFullscreenLabel(this.isFullscreen),iconPosition:"icon-only",size:"L",state:"active",style:"overlay-dark",type:"tonal",tooltipText:this.computeFullscreenLabel(this.isFullscreen),disableBackdropFilter:this.shortsModernControlsEnabled,customColors:this.shortsModernControlsEnabled?{backgroundColor:"transparent"}:{}}}},
fullscreenIcon:{configurable:!0,enumerable:!0,get:function(){return this.isFullscreen?_.K("web_shorts_modern_controls")?"player_full_exit_alt":_.K("enable_web_delhi_icons")?"player_full_exit":"screen_full_exit":_.K("web_shorts_modern_controls")?"player_full_enter_alt":_.K("enable_web_delhi_icons")?"SCREEN_FULLSCREEN":"screen_full"}}});
_.L([_.Q(_.Ms.YtComponentBehavior),_.p("design:type",Object)],OI.prototype,"componentBehavior",void 0);_.L([_.Q(_.jz.YtPlayerListenerBehavior),_.p("design:type",_.z4)],OI.prototype,"ytPlayerListenerBehavior",void 0);_.L([_.Q(_.pV),_.p("design:type",Object)],OI.prototype,"ytdReduxBehavior",void 0);_.L([_.x(),_.p("design:type",Object)],OI.prototype,"player",void 0);_.L([_.x(),_.p("design:type",Object)],OI.prototype,"playerState",void 0);_.L([_.x(),_.p("design:type",Object)],OI.prototype,"isMuted",void 0);
_.L([_.x({computed:"computePlayPauseIcon(playerState)"}),_.p("design:type",String)],OI.prototype,"playPauseIcon",void 0);_.L([_.x({computed:"computeMuteIcon(isMuted)"}),_.p("design:type",String)],OI.prototype,"muteIcon",void 0);_.L([_.x({selector:_.Cc}),_.p("design:type",Boolean)],OI.prototype,"isFullscreen",void 0);_.L([_.x({reflectToAttribute:!0}),_.p("design:type",Object)],OI.prototype,"shortsModernControlsEnabled",void 0);
_.L([_.x(),_.p("design:type",Object)],OI.prototype,"volumeControlsOrientationState",void 0);_.L([_.x(),_.p("design:type",Object)],OI.prototype,"isOverlay",void 0);_.L([_.x(),_.p("design:type",Object)],OI.prototype,"captionIconType",void 0);_.L([_.x(),_.p("design:type",Object)],OI.prototype,"ariaLabel",void 0);_.L([_.x(),_.p("design:type",Object)],OI.prototype,"ariaPressedState",void 0);_.L([_.x({reflectToAttribute:!0}),_.p("design:type",Object)],OI.prototype,"overlayDensity",void 0);
_.L([_.S("playerState"),_.p("design:type",Object),_.p("design:paramtypes",[])],OI.prototype,"playPauseButtonData",null);_.L([_.S("isFullscreen"),_.p("design:type",Object),_.p("design:paramtypes",[])],OI.prototype,"fullscreenButtonData",null);_.L([_.x(),_.p("design:type",Object)],OI.prototype,"onClosedCaptionsButtonClick",void 0);_.L([_.S("isFullscreen"),_.p("design:type",String),_.p("design:paramtypes",[])],OI.prototype,"fullscreenIcon",null);
_.D(OI,"ytd-shorts-player-controls",function(){if(jwI===void 0){var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-shorts-player-controls--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-button-shape id="play-pause-button-shape" data="[[playPauseButtonData]]" icon-name="[[playPauseIcon]]" class="style-scope ytd-shorts-player-controls">\n</yt-button-shape>\n<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    <div id="closed-captioning-button-container" class="style-scope ytd-shorts-player-controls">\n      <ytm-closed-captioning-button aria-label="[[ariaLabel]]" aria-pressed="[[ariaPressedState]]" caption-icon-type="[[captionIconType]]" is-modern="[[shortsModernControlsEnabled]]" is-overlay="[[isOverlay]]" on-click="[[onClosedCaptionsButtonClick]]" class="style-scope ytd-shorts-player-controls">\n      </ytm-closed-captioning-button>\n    </div>\n    <yt-button-shape id="fullscreen-button-shape" data="[[fullscreenButtonData]]" icon-name="[[fullscreenIcon]]" on-click="onFullscreenButtonClick" class="style-scope ytd-shorts-player-controls">\n    </yt-button-shape>\n  </div>\n</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');
a.content.insertBefore(_.w().content.cloneNode(!0),a.content.firstChild);jwI=a}a=jwI;return a},{mode:1});var zvP;_.Jf(_.u5l,"yt-interstitial-view-model",{props:{data:_.zl}});var Ijx=_.ec(function(a){var z=a.data;return _.B("reel-watch-break-view-model",{class:"reelWatchBreakViewModelHost"},_.B("h1",{class:"reelWatchBreakViewModelHostTitle"},_.B(_.xs,{text:function(){return z().title}})),_.B("h2",{class:"reelWatchBreakViewModelHostBody"},_.B(_.xs,{text:function(){return z().body},
isOverlay:!0})),_.B(_.V0,{data:function(){return z().buttons}},{buttonViewModel:function(I,J){return _.B("div",{class:function(){return J()===0?"reelWatchBreakViewModelHostContinueWatchingButton":"reelWatchBreakViewModelHostGoHomeButton"}},_.B(_.At,{data:I.data}))}}))},"ak");
Ijx.idomCompat=!0;_.Jf(Ijx,"reel-watch-break-view-model",{props:{data:_.zl}});var f7=function(){return _.G.apply(this,arguments)||this};
_.b(f7,_.G);f7.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}}};
_.eH.Object.defineProperties(f7.prototype,{isSurvey:{configurable:!0,enumerable:!0,get:function(){var a;return!!_.H((a=this.data)==null?void 0:a.renderer,Ldj)}},
isInterstitialViewModel:{configurable:!0,enumerable:!0,get:function(){var a;return!!_.H((a=this.data)==null?void 0:a.renderer,li9)}}});
_.L([_.Q(_.u4.YtRendererstamperBehavior),_.p("design:type",Object)],f7.prototype,"ytRendererstamperBehavior",void 0);_.L([_.Q(_.Ms.YtComponentBehavior),_.p("design:type",Object)],f7.prototype,"ytComponentBehavior",void 0);_.L([_.Q(_.pV),_.p("design:type",Object)],f7.prototype,"ytdReduxBehavior",void 0);_.L([_.x(),_.p("design:type",Object)],f7.prototype,"data",void 0);
_.L([_.x({reflectToAttribute:!0}),_.S("data.renderer"),_.p("design:type",Boolean),_.p("design:paramtypes",[])],f7.prototype,"isSurvey",null);_.L([_.x({reflectToAttribute:!0}),_.S("data.renderer"),_.p("design:type",Boolean),_.p("design:paramtypes",[])],f7.prototype,"isInterstitialViewModel",null);_.L([_.U({is:"ytd-reel-non-video-content-renderer",disableElementRegistration:!0})],f7);
_.D(f7,"ytd-reel-non-video-content-renderer",function(){if(zvP!==void 0)return zvP;var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-reel-non-video-content-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="nvc-container" class="nvc-container style-scope ytd-reel-non-video-content-renderer">\n</div>\n');a.content.insertBefore(_.w().content.cloneNode(!0),a.content.firstChild);
return zvP=a},{mode:_.Np("kevlar_poly_si_batch_j028")?1:2});var Jox;_.Jf(_.xMf,"desktop-shorts-player-controls",{});var Am=function(){var a=_.G.apply(this,arguments)||this;a.isPlayerPaused=!1;a.isPlayerStarted=!1;a.showPlayerControls=!1;a.showScrubber=!1;a.autoHideJobId=0;a.modern=_.K("web_button_rework");a.overlayType=_.rM("web_shorts_expanded_overlay_type");a.panelData=void 0;a.isWatchWhileMode=!1;a.hasError=!1;a.panelShowDelayMs=1;a.scrubberComponent={};a.isFullscreen=!1;a.shouldHideOverlay=!1;a.enableAnchoredPanel=_.K("desktop_shorts_v2_anchored_panel");a.enablePersistentAnchoredPanel=_.K("desktop_shorts_v2_persistent_anchored_panel");
a.hideWatchWhilePanel=_.K("web_shorts_hide_watch_while_panel");a.useAspectRatio=_.K("web_use_aspect_ratio");a.isPersistentPanelActive=!1;a.anchoredPanelActive=!1;a.isShortsPipActive=!1;a.smallScreenSqueezeback=!1;a.enableFlexibleOverlay=_.K("web_enable_flexible_overlay");a.overlayDensity=0;a.actionMap={"yt-show-reels-comments-overlay-command":"handleShowReelsCommentsOverlayCommand","yt-engagement-panel-visible-changed":"handleEngagementPanelVisibilityChanged"};a.onWindowResized=function(){_.pM(a,
"calculateOverlayDensity",function(){a.calculateOverlayDensity()},100)};
return a};
_.b(Am,_.G);_.Z=Am.prototype;_.Z.updateShouldHideOverlay=function(){this.shouldHideOverlay=this.isActive&&this.hasError};
_.Z.onScrubberDataChange=function(){this.shouldRenderScrubber?this.scrubberComponent={desktopShortsPlayerControls:{}}:this.scrubberComponent={}};
_.Z.onEngagementPanelsChanged=function(){if(this.watchWhileEngagementPanels)if(this.isActive){if(this.panelData=this.watchWhileEngagementPanels,this.isActive){var a=_.ab().resolve(_.X3);this.isWatchWhileMode&&(_.K("web_enable_shorts_new_carousel")?_.GW.addJob(function(){a.showPanel("shorts-comments-panel",void 0,void 0,void 0,null)},0):a.showPanel("shorts-comments-panel",void 0,void 0,void 0,null))}}else this.panelData=void 0};
_.Z.handleShowReelsCommentsOverlayCommand=function(a){a=_.H(a,mO4);this.isActive&&(a==null?0:a.engagementPanel)&&this.data&&(this.isWatchWhileMode&&this.isWatchWhileMode&&this.activeWatchWhilePanel==="engagement-panel-comments-section"?this.updateEngagementPanelVisibility("engagement-panel-comments-section",!1):this.updateEngagementPanelVisibility("engagement-panel-comments-section",!0))};
_.Z.updateEngagementPanelVisibility=function(a,z){a&&this.ytComponentBehavior.resolveCommand({changeEngagementPanelVisibilityAction:{visibility:z?"ENGAGEMENT_PANEL_VISIBILITY_EXPANDED":"ENGAGEMENT_PANEL_VISIBILITY_HIDDEN",targetId:a}})};
_.Z.detached=function(){this.panelData=this.watchWhileEngagementPanels=void 0;this.isWatchWhileMode=!1;(this.enableFlexibleOverlay||this.enableFormatFirst)&&window.removeEventListener("resize",this.onWindowResized)};
_.Z.handleEngagementPanelVisibilityChanged=function(){this.isActive&&!this.enablePersistentAnchoredPanel&&(_.ab().resolve(_.Qb).watchWhileIndices.has(this.index)?this.anchoredPanelActive=!0:this.anchoredPanelActive=!1)};
_.Z.handleWatchWhilePanelScrimClick=function(){var a=_.ab().resolve(_.X3);this.activeWatchWhilePanel&&(a.hidePanel(this.activeWatchWhilePanel),this.isWatchWhileMode=!1,this.activeWatchWhilePanel=void 0)};
_.Z.attached=function(){this.isFirstReel()&&this.handlePlayerClick();if(this.enableFlexibleOverlay||this.enableFormatFirst)window.addEventListener("resize",this.onWindowResized),this.calculateOverlayDensity()};
_.Z.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:_.K("web_enable_shorts_new_carousel")?0:void 0}}};
_.Z.handlePlayerClick=function(a){var z=this,I,J;if((J=(I=window).matchMedia)!=null&&J.call(I,"(any-pointer: coarse)").matches||!a)this.showPlayerControls=!0,_.GW.cancelJob(this.autoHideJobId),this.autoHideJobId=_.b9(_.GW,function(){z.showPlayerControls=!1},4E3)};
_.Z.isFirstReel=function(){return this.index===0};
_.Z.handleMouseenter=function(){_.GW.cancelJob(this.autoHideJobId);this.showPlayerControls=!0};
_.Z.handleMouseleave=function(){this.isPlayerPaused||(this.showPlayerControls=!1)};
_.Z.handleScrubberEnter=function(){this.showScrubber=!0};
_.Z.handleScrubberLeave=function(){this.showScrubber=!1};
_.Z.maybeLogNonDefaultAspectRatio=function(){var a;(a=this.data)!=null&&a.thumbnail&&this.isActive&&.5625!==KdP(this.data.thumbnail)&&_.vH3("GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_SHORTS_NON_DEFAULT_ASPECT_RATIO")};
_.Z.calculateOverlayDensity=function(){if(this.enableFlexibleOverlay||this.enableFormatFirst){var a=document.querySelector("#shorts-container");if(a){a=a.offsetWidth/2-this.playerContainer.offsetWidth/2;a=a>=368?1:a>=72?0:2;this.enableFormatFirst&&!this.enableFlexibleOverlay&&a===1&&(a=0);this.isPersistentPanelActive&&(a=0);window.innerWidth<=599&&(a=2);this.overlayDensity=a;var z;(z=this.onOverlayDensityChanged)==null||z.call(this,this.index,this.overlayDensity)}}};
_.Z.onOverlayDensityChange=function(){var a;(a=this.onOverlayDensityChanged)==null||a.call(this,this.index,this.overlayDensity);(a=_.PK(this.hostElement).querySelector("ytd-reel-player-overlay-renderer"))&&a.set("overlayDensity",this.overlayDensity);if(a=this.hostElement.querySelector("reels-player-overlay-layout-view-model"))a.overlayDensity=this.overlayDensity};
_.Z.isVideoContent=function(a){_.ab().resolve(_.Qb);return!!_.H(a,_.hv)};
_.Z.isNonVideoContent=function(a){_.ab().resolve(_.Qb);return!!_.H(a,_.Ry)};
_.Z.closeInactiveWatchWhilePanel=function(){this.activeWatchWhilePanel&&this.isWatchWhileMode&&this.updateEngagementPanelVisibility(this.activeWatchWhilePanel,!1)};
_.eH.Object.defineProperties(Am.prototype,{enableFormatFirst:{configurable:!0,enumerable:!0,get:function(){var a,z;return _.K("web_enable_format_first")||((a=this.data)==null?void 0:a.adsOverlay)&&_.K("web_enable_format_first_ads_only")||((z=this.data)==null?void 0:z.reelPlayerOverlayRenderer)&&_.K("web_enable_format_first_organic_only")}},
shouldRenderPlayerElements:{configurable:!0,enumerable:!0,get:function(){return this.isActive&&!this.hasError&&(this.isPlayerStarted||!_.K("web_shorts_modern_controls"))}},
watchWhileOrPersistentActive:{configurable:!0,enumerable:!0,get:function(){return this.isWatchWhileMode}},
shouldRenderScrubber:{configurable:!0,enumerable:!0,get:function(){var a;return!this.isActive||!this.isPlayerStarted||(a=this.data)!=null&&a.adsOverlay?!1:!0}},
overlayComponent:{configurable:!0,enumerable:!0,get:function(){var a;if(((a=this.data)==null?0:a.command)&&this.isVideoContent(this.data.command)){var z,I;if(((z=this.data)==null?0:z.adsOverlay)&&Object.keys((I=this.data)==null?void 0:I.adsOverlay).length>0)return{adsOverlay:this.data.adsOverlay};var J,r;if(((J=this.data)==null?0:J.reelPlayerOverlayRenderer)&&Object.keys((r=this.data)==null?void 0:r.reelPlayerOverlayRenderer).length>0)return{reelPlayerOverlayRenderer:this.data.reelPlayerOverlayRenderer}}return{}}}});
Am.prototype.onOverlayDensityChange=Am.prototype.onOverlayDensityChange;Am.prototype.calculateOverlayDensity=Am.prototype.calculateOverlayDensity;Am.prototype.maybeLogNonDefaultAspectRatio=Am.prototype.maybeLogNonDefaultAspectRatio;Am.prototype.onEngagementPanelsChanged=Am.prototype.onEngagementPanelsChanged;Am.prototype.onScrubberDataChange=Am.prototype.onScrubberDataChange;Am.prototype.updateShouldHideOverlay=Am.prototype.updateShouldHideOverlay;
_.L([_.Q(_.u4.YtRendererstamperBehavior),_.p("design:type",Object)],Am.prototype,"ytRendererstamperBehavior",void 0);_.L([_.Q(_.Ms.YtComponentBehavior),_.p("design:type",Object)],Am.prototype,"ytComponentBehavior",void 0);_.L([_.Q(_.cZ.YtdGuideStateAwareBehavior),_.p("design:type",Object)],Am.prototype,"ytdGuideStateAwareBehavior",void 0);_.L([_.x(),_.p("design:type",Object)],Am.prototype,"data",void 0);_.L([_.x(),_.p("design:type",Number)],Am.prototype,"index",void 0);
_.L([_.x({reflectToAttribute:!0}),_.p("design:type",Boolean)],Am.prototype,"isActive",void 0);_.L([_.x({reflectToAttribute:!0}),_.p("design:type",Boolean)],Am.prototype,"isHiddenInDom",void 0);_.L([_.x(),_.p("design:type",Object)],Am.prototype,"isPlayerPaused",void 0);_.L([_.x({selector:HG4}),_.p("design:type",Object)],Am.prototype,"isPlayerStarted",void 0);_.L([_.x({reflectToAttribute:!0}),_.p("design:type",Object)],Am.prototype,"showPlayerControls",void 0);
_.L([_.x({reflectToAttribute:!0}),_.p("design:type",Object)],Am.prototype,"showScrubber",void 0);_.L([_.x(),_.p("design:type",Object)],Am.prototype,"autoHideJobId",void 0);_.L([_.x({reflectToAttribute:!0}),_.p("design:type",Object)],Am.prototype,"modern",void 0);_.L([_.x({reflectToAttribute:!0}),_.p("design:type",Object)],Am.prototype,"overlayType",void 0);_.L([_.Q(_.pV),_.p("design:type",Object)],Am.prototype,"ytdReduxBehavior",void 0);
_.L([_.Q(_.Hc.YtActionHandlerBehavior),_.p("design:type",Object)],Am.prototype,"ytActionHandlerBehavior",void 0);_.L([_.x(),_.p("design:type",Object)],Am.prototype,"watchWhileEngagementPanels",void 0);_.L([_.x(),_.p("design:type",Object)],Am.prototype,"panelData",void 0);_.L([_.x({reflectToAttribute:!0}),_.p("design:type",Object)],Am.prototype,"isWatchWhileMode",void 0);_.L([_.x(),_.p("design:type",String)],Am.prototype,"activeWatchWhilePanel",void 0);
_.L([_.x(),_.p("design:type",Object)],Am.prototype,"hasError",void 0);_.L([_.x(),_.p("design:type",Object)],Am.prototype,"panelShowDelayMs",void 0);_.L([_.x(),_.p("design:type",Object)],Am.prototype,"scrubberComponent",void 0);_.L([_.x({selector:_.Cc,reflectToAttribute:!0}),_.p("design:type",Object)],Am.prototype,"isFullscreen",void 0);_.L([_.x(),_.p("design:type",Object)],Am.prototype,"shouldHideOverlay",void 0);
_.L([_.x({reflectToAttribute:!0}),_.p("design:type",Object)],Am.prototype,"enableAnchoredPanel",void 0);_.L([_.x({reflectToAttribute:!0}),_.p("design:type",Object)],Am.prototype,"enablePersistentAnchoredPanel",void 0);_.L([_.x({reflectToAttribute:!0}),_.p("design:type",Object)],Am.prototype,"hideWatchWhilePanel",void 0);_.L([_.x({reflectToAttribute:!0}),_.p("design:type",Object)],Am.prototype,"useAspectRatio",void 0);
_.L([_.x({selector:_.eri,reflectToAttribute:!0}),_.p("design:type",Object)],Am.prototype,"isPersistentPanelActive",void 0);_.L([_.x({reflectToAttribute:!0}),_.p("design:type",Object)],Am.prototype,"anchoredPanelActive",void 0);_.L([_.x({selector:_.NA,reflectToAttribute:!0}),_.p("design:type",Object)],Am.prototype,"isShortsPipActive",void 0);_.L([_.x({selector:Fd9,reflectToAttribute:!0}),_.p("design:type",Object)],Am.prototype,"smallScreenSqueezeback",void 0);
_.L([_.x({reflectToAttribute:!0}),_.S("data.adsOverlay","data.reelPlayerOverlayRenderer"),_.p("design:type",Object),_.p("design:paramtypes",[])],Am.prototype,"enableFormatFirst",null);_.L([_.x({reflectToAttribute:!0}),_.p("design:type",Object)],Am.prototype,"enableFlexibleOverlay",void 0);_.L([_.x({reflectToAttribute:!0}),_.p("design:type",Object)],Am.prototype,"overlayDensity",void 0);_.L([_.x(),_.p("design:type",Function)],Am.prototype,"onOverlayDensityChanged",void 0);
_.L([_.x(),_.S("isActive","hasError","isPlayerStarted"),_.p("design:type",Object),_.p("design:paramtypes",[])],Am.prototype,"shouldRenderPlayerElements",null);_.L([_.x(),_.S("isActive","isWatchWhileMode"),_.p("design:type",Object),_.p("design:paramtypes",[])],Am.prototype,"watchWhileOrPersistentActive",null);_.L([_.O8("isActive","hasError","showingExpandedOverlay"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],Am.prototype,"updateShouldHideOverlay",null);
_.L([_.x({reflectToAttribute:!0}),_.S("isActive","isPlayerStarted","data"),_.p("design:type",Object),_.p("design:paramtypes",[])],Am.prototype,"shouldRenderScrubber",null);_.L([_.O8("shouldRenderScrubber"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],Am.prototype,"onScrubberDataChange",null);_.L([_.S("data.adsOverlay","data.reelPlayerOverlayRenderer"),_.p("design:type",Object),_.p("design:paramtypes",[])],Am.prototype,"overlayComponent",null);
_.L([_.O8("watchWhileEngagementPanels"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],Am.prototype,"onEngagementPanelsChanged",null);_.L([_.A3("#player-container"),_.p("design:type",HTMLElement)],Am.prototype,"playerContainer",void 0);_.L([_.A3("#cinematic-container"),_.p("design:type",HTMLElement)],Am.prototype,"cinematicContainer",void 0);
_.L([_.O8("isPersistentPanelActive","data.thumbnail"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],Am.prototype,"maybeLogNonDefaultAspectRatio",null);_.L([_.O8("isPersistentPanelActive"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],Am.prototype,"calculateOverlayDensity",null);_.L([_.O8("overlayDensity"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],Am.prototype,"onOverlayDensityChange",null);
_.L([_.U({is:"ytd-reel-video-renderer",disableElementRegistration:!0})],Am);
_.D(Am,"ytd-reel-video-renderer",function(){if(Jox!==void 0)return Jox;var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-reel-video-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="short-video-container style-scope ytd-reel-video-renderer" id="short-video-container" hidden="[[!isVideoContent(data.command)]]">\n  <div id="sticker-layer" class="sticker-layer style-scope ytd-reel-video-renderer"></div>\n  <div id="cinematic-container" class="cinematic-container style-scope ytd-reel-video-renderer"></div>\n  <div class="player-wrapper style-scope ytd-reel-video-renderer">\n    <div id="player-container" class="player-container style-scope ytd-reel-video-renderer" on-click="handlePlayerClick" on-mouseenter="handleMouseenter" on-mouseleave="handleMouseleave">\n      <div class="pip-blur-filter style-scope ytd-reel-video-renderer" hidden="[[!isShortsPipActive]]"></div>\n          <template is="dom-if" if="[[shouldRenderPlayerElements]]" restamp="" class="style-scope ytd-reel-video-renderer">\n            <div class="player-controls style-scope ytd-reel-video-renderer">\n              <ytd-shorts-player-controls disable-upgrade="[[!isActive]]" overlay-density="[[overlayDensity]]" class="style-scope ytd-reel-video-renderer"></ytd-shorts-player-controls>\n            </div>\n          </template>\n    </div>\n    <div id="scrubber" on-mouseenter="handleScrubberEnter" on-mouseleave="handleScrubberLeave" class="style-scope ytd-reel-video-renderer">\n    </div>\n  </div>\n</div>\n<div id="experiment-overlay" class="overlay style-scope ytd-reel-video-renderer"></div>\n<template is="dom-if" if="[[isNonVideoContent(data.command)]]" class="style-scope ytd-reel-video-renderer">\n  <ytd-reel-non-video-content-renderer data="[[data.reelNonVideoContentRenderer]]" class="style-scope ytd-reel-video-renderer">\n  </ytd-reel-non-video-content-renderer>\n</template>\n');a.content.insertBefore(_.w().content.cloneNode(!0),
a.content.firstChild);return Jox=a},{mode:_.Np("kevlar_poly_si_batch_j028")?1:2});var sI=function(){var a=_.G.apply(this,arguments)||this;a.isPreviousPageShorts=!1;a.index=0;a.delayedActiveIndex=0;a.playablePreviousIndex=null;a.isPlayerPaused=!1;a.isPlayerStarted=!1;a.intersectionObserverThreshold=.6;a.fitToVisibleBounds=!1;a.pageSubtype="shorts";a.enablePreviousContinuation=_.K("shorts_in_playlists_web");a.shortsPipEnabled=_.K("web_shorts_pip");a.isDark=document.documentElement.hasAttribute("dark");a.shortsViewTransitions=_.K("web_shorts_view_transitions");a.isFullscreen=!1;a.isShortsPipActive=
!1;a.buttonOverride={iconPosition:"icon-only",size:"XL"};a.anchoredPanelActive=!1;a.isActive=!1;a.smallScreenPersistentPanel=!1;a.isPersistentPanelActive=!1;a.smallScreenSqueezeBack=!1;a.enableScrollIntoViewCenter=_.K("web_scroll_into_view_center");a.formatFirst=_.K("web_enable_format_first")||_.K("web_enable_format_first_ads_only")||_.K("web_enable_format_first_organic_only");a.enableFlexibleOverlay=_.K("web_enable_flexible_overlay");a.useAspectRatio=_.K("web_use_aspect_ratio");a.isShortsInitialized=
!1;a.hidePreviousButtonImmediately=!1;a.showPreviousButtonImmediately=!1;a.endOfNextContinuation=!1;a.currentPlayerIndex=0;a.nextReelVe=_.uq(56921);a.prevReelVe=_.uq(56922);a.loopToggleOffVe=_.uq(198013);a.loopToggleOnVe=_.uq(198014);a.ambientModeToggleVe=_.uq(227860);a.reelPlayerPausedStateRendererVe=_.uq(141313);a.storedPlaybackSpeed=null;a.actionMap={"yt-append-reel-watch-sequence-continuation-entries-action":"processAppendReelWatchSequenceContinuationEntriesAction","yt-reel-navigate-command":"handleReelNavigateCommand",
"yt-reel-non-video-content-dismissal-command":"processReelNonVideoContentDismissalCommand","yt-signal-action-toggle-cinematic-shorts-on":"handleSignalActionToggleCinematicShortsOn","yt-signal-action-toggle-cinematic-shorts-off":"handleSignalActionToggleCinematicShortsOff","yt-engagement-panel-visible-changed":"handleEngagementPanelVisibilityChanged","yt-signal-action-toggle-loop-shorts-on":"handleSignalActionToggleLoopShortsOn","yt-signal-action-toggle-loop-shorts-off":"handleSignalActionToggleLoopShortsOff",
"yt-miniplayer-navigate-shorts":"handleMiniplayerNavigateShorts","yt-signal-action-toggle-shorts-picture-in-picture":"handleSignalActionToggleShortsPictureInPicture"};a.onOverlayDensityChanged=function(z,I){var J;(J=a.getActiveReelVideo(z))==null||J.setAttribute("overlay-density",String(I))};
return a};
_.b(sI,_.G);_.Z=sI.prototype;
_.Z.deflateInactivePreviousSlides=function(){var a=_.Ib("web_shorts_deflate_inactive_slides_aggressive_distance");if(a>0&&this.shortsProcessedSequence&&this.activeIndex){a=this.activeIndex-a;for(var z=0;z<=a;z++){var I=void 0;((I=this.shortsProcessedSequence[z].reelPlayerOverlayRenderer)==null?0:I.metapanel)&&this.set("shortsProcessedSequence."+z+".reelPlayerOverlayRenderer",{});I=void 0;((I=this.shortsProcessedSequence[z].adsOverlay)==null?0:I.adSlotMetadata)&&this.set("shortsProcessedSequence."+z+
".adsOverlay",{})}}};
_.Z.calculateIsSmallWidth=function(){return window.innerWidth<=599};
_.Z.onResize=function(){var a=_.qo(),z=a.dispatch,I=this.calculateIsSmallWidth();z.call(a,_.rg({type:"SET_IS_DESKTOP_SMALL_WIDTH",payload:{isDesktopSmallWidth:I}}));this.updateBackNavContainerWidth();this.calculateSqueezebackPanelSize()};
_.Z.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:_.K("web_enable_shorts_new_carousel")?0:void 0},anchoredEngagementPanels:{id:"anchored-panel",mapping:{engagementPanelSectionListRenderer:{component:"ytd-engagement-panel-section-list-renderer",
params:{isWatchWhilePanel:!0,shortsPanel:!0}}},renderPriority:0}}};
_.Z.updateBackNavContainerWidth=function(){if(this.player&&this.backNavButton){var a=(this.hostElement.clientWidth-this.shortsInnerContainer.clientWidth)/2,z=a,I=0;a<250&&(z=a+this.shortsInnerContainer.clientWidth,I=24);_.uK(this.hostElement,{"--ytd-shorts-header-width":z+"px","--ytd-shorts-top-spacing":I+"px"})}};
_.Z.isFirstShorts=function(a){return a?this.index===-a.length:this.index===0};
_.Z.isActiveReel=function(a,z,I){I&&(z=this.calculatePrevIndex(z,I));return a===z};
_.Z.onFullscreenChange=function(){if(_.K("web_fullscreen_shorts")){var a;(a=this.getActiveReelVideo(this.activeIndex))==null||a.scrollIntoView({behavior:"instant",block:"nearest",inline:this.enableScrollIntoViewCenter?"center":"start"});this.isFullscreen&&this.isShortsPipActive&&_.ab().resolve(_.UJ).close(!0)}};
_.Z.engagementPanelsChanged=function(){var a;this.watchWhileEngagementPanels=(a=this.data)==null?void 0:a.engagementPanels};
_.Z.unregisterPanels=function(){var a=_.ab().resolve(_.X3);if(this.watchWhileEngagementPanels)for(var z=_.C(this.watchWhileEngagementPanels),I=z.next();!I.done;I=z.next()){var J=I.value,r=void 0,P=void 0;I=(r=J.engagementPanelSectionListRenderer)==null?void 0:(P=r.identifier)==null?void 0:P.tag;J=this.getPanelContentIdentifier(J.engagementPanelSectionListRenderer);a&&(I&&a.panelMap.delete(I),J&&_.K("web_shorts_panel_caching_bugfix")&&(r=I=void 0,(r=(I=a).unregisterPanelContent)==null||r.call(I,J)))}};
_.Z.isVideoContent=function(a){return this.isVideoContentCommand(a==null?void 0:a.command)};
_.Z.getActiveReelVideo=function(a){return _.PK(this.hostElement).querySelector('.reel-video-in-sequence-new[id="'+a+'"]')};
_.Z.calculatePrevIndex=function(a,z){return z?a-((z==null?void 0:z.length)||0):-1};
_.Z.onKeydown=function(a){var z=_.ch(a)||[];if(!_.G$V(z))if(a.code==="ArrowUp")a.preventDefault(),this.handlePrevButtonClick();else if(a.code==="ArrowDown")a.preventDefault(),this.handleNextButtonClick();else if(a.code==="KeyM")this.toggleMuteUnmuteVideo();else if(a.code==="KeyK"||a.code==="Space")this.togglePlayPauseVideo();else if((a.code==="KeyA"||a.code==="ArrowLeft")&&_.K("web_shorts_keyboard_enable_seek_shortcuts")){var I;(I=this.player)==null||I.seekBy(-5)}else if((a.code==="KeyD"||a.code===
"ArrowRight")&&_.K("web_shorts_keyboard_enable_seek_shortcuts")&&this.player&&this.player.getDuration()>this.player.getCurrentTime()+6){var J;(J=this.player)==null||J.seekBy(5)}};
_.Z.onServiceRequestCompleted=function(a,z){a=z.data;a.continuationEndpoint&&a.entries?this.processAppendReelWatchSequenceContinuationEntriesAction({appendReelWatchSequenceContinuationEntriesAction:{entries:a.entries,continuationEndpoint:a.continuationEndpoint}}):a.prevContinuationEndpoint&&a.prevEntries?this.processAppendReelWatchSequenceContinuationEntriesAction({appendReelWatchSequenceContinuationEntriesAction:{prevEntries:a.prevEntries,prevContinuationEndpoint:a.prevContinuationEndpoint}}):this.shortsProcessedSequence&&
this.index>0&&(this.endOfNextContinuation=!0)};
_.Z.handleEngagementPanelVisibilityChanged=function(a,z){var I=_.ab().resolve(_.X3);if(a&&I){var J=this.getPanelIdentifier(a);if(z==="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED")if(this.anchoredPanelActive&&this.activePanel!==J){I.hidePanel(this.activePanel);var r;this.activePanel=((r=a.identifier)==null?void 0:r.tag)||a.panelIdentifier}else this.isPersistentPanelActive=!0,_.qo().dispatch(T$N(!0)),this.anchoredPanelActive=!0,this.activePanel=J;else z==="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"&&this.activePanel===
J&&(this.isPersistentPanelActive=this.anchoredPanelActive=!1,_.qo().dispatch(T$N(!1)))}};
_.Z.handlePanelScrimClick=function(){var a=_.ab().resolve(_.X3);this.activePanel&&(a.hidePanel(this.activePanel),_.qo().dispatch(T$N(!1)))};
_.Z.getShortsLoopSetting=function(){var a,z,I,J,r;return _.t(function(P){switch(P.nextAddress){case 1:return _.K("kevlar_shorts_auto_advance")?P.yield(_.Xo.getInstance(),2):P.return(!0);case 2:return(a=P.yieldResult)?P.yield(a.get("sfvles"),3):P.return(!0);case 3:return I=(z=P.yieldResult)!=null?z:!1,P.yield(a.get("sfvle"),4);case 4:return r=(J=P.yieldResult)!=null?J:!0,I?P.return(r):P.return(!0)}})};
_.Z.handleSignalActionToggleLoopShortsOff=function(){var a=this,z,I,J;return _.t(function(r){switch(r.nextAddress){case 1:if(!a.player)return r.return();a.player.setLoopVideo(!1);z=_.Kw();_.nJ(z,a.loopToggleOffVe);return r.yield(_.Xo.getInstance(),2);case 2:return(I=r.yieldResult)?r.yield(I.set("sfvle",!1),3):r.return();case 3:return r.yield(I.set("sfvles",!0),4);case 4:J=_.Kt(),_.Fz(0,203,!1),_.Fz(0,204,!0),J.save(),_.nu(r)}})};
_.Z.handleSignalActionToggleLoopShortsOn=function(){var a=this,z,I,J;return _.t(function(r){switch(r.nextAddress){case 1:if(!a.player)return r.return();a.player.setLoopVideo(!0);z=_.Kw();_.nJ(z,a.loopToggleOnVe);return r.yield(_.Xo.getInstance(),2);case 2:return(I=r.yieldResult)?r.yield(I.set("sfvle",!0),3):r.return();case 3:return r.yield(I.set("sfvles",!0),4);case 4:J=_.Kt(),_.Fz(0,203,!0),_.Fz(0,204,!0),J.save(),_.nu(r)}})};
_.Z.handleSignalActionToggleCinematicShortsOn=function(){n79(!0);var a;(a=this.JSC$22225_cinematicController)==null||_.E7t(a,!0);_.nJ(_.Kw(),this.ambientModeToggleVe,{toggleButtonData:{isToggledOn:!1}})};
_.Z.handleSignalActionToggleCinematicShortsOff=function(){n79(!1);var a;(a=this.JSC$22225_cinematicController)==null||_.E7t(a,!1);_.nJ(_.Kw(),this.ambientModeToggleVe,{toggleButtonData:{isToggledOn:!0}})};
_.Z.toggleMuteUnmuteVideo=function(){this.player&&(this.player.isMuted()?this.player.unMute():this.player.mute())};
_.Z.togglePlayPauseVideo=function(){this.player&&(this.player.getPlayerState()===1?this.player.pauseVideo():this.player.getPlayerState()===2&&this.player.playVideo())};
_.Z.unhideCurrentOverlay=function(){if(this.overlayContainer){var a=this.overlayContainer.querySelector("#experiment-overlay");a&&_.GW.addLowPriorityJob(function(){a.style.display="unset"},100)}};
_.Z.getCurrentShort=function(){if(this.currentEndpoint){var a=this.currentEndpoint;if(this.isNonVideoContentCommand(a)){var z=_.H(a,_.Ry);return{reelNonVideoContentRenderer:_.H(z==null?void 0:z.renderer,_.FSG),command:a}}if(this.data){var I;z=(I=_.H(this.currentEndpoint,_.hv))==null?void 0:I.thumbnail;var J;I=(J=this.data.overlay)==null?void 0:J.reelPlayerOverlayRenderer;_.ab().resolve(_.Qb);a=this.data;var r,P;J=(r=a.overlay)==null?void 0:(P=r.shortsAdsRenderer)==null?void 0:P.adSlots;if(J!==void 0)J.length===
0?(_.Mh("Shorts ads returned no ad slots."),a=void 0):(J.length>1&&_.Mh("Shorts ads has more than one ad slots."),a=_.H(J[0],_.WgG));else{var N,u;a=_.H((N=a.overlay)==null?void 0:(u=N.shortsAdsRenderer)==null?void 0:u.overlay,_.WgG)}N=a;a=Object.assign({},this.currentEndpoint,{reelWatchEndpoint:Object.assign({},_.H(this.currentEndpoint,_.hv),{sequenceParams:void 0,sequenceProvider:void 0,racyCheckOk:void 0,contentCheckOk:void 0})});return{reelPlayerOverlayRenderer:I,thumbnail:z,command:a,adsOverlay:N}}}};
_.Z.created=function(){var a=this;this.scrollToVideoThrottle=new _.kc(function(z){var I;(I=a.getActiveReelVideo(z))==null||I.scrollIntoView({behavior:"smooth",block:"nearest",inline:a.enableScrollIntoViewCenter?"center":"start"})},500,this);
this.transitionToVideoThrottle=new _.kc(function(z){var I;(I=a.getActiveReelVideo(z))==null||I.scrollIntoView({behavior:"auto",block:"nearest",inline:a.enableScrollIntoViewCenter?"center":"start"})},500,this);
this.maybeCreateIntersectionObserver()};
_.Z.onScroll=function(){this.scrollToVideoThrottle.fire(this.index)};
_.Z.attached=function(){var a=this;_.ab().resolve(_.Qb).registerRootElement(this);this.pageScrollElement=_.PK(this.hostElement).querySelector("#shorts-container");document.addEventListener("yt-shorts-reset",_.BK(this,this.processResetAction));_.K("web_fullscreen_shorts")&&window.ResizeObserver&&!this.resizeObserver&&(this.resizeObserver=this.onResizeFinished(this.shortsContainer,function(){var z=a.getActiveReelVideo(a.activeIndex);a.maybeCreateIntersectionObserver();z==null||z.scrollIntoView({behavior:"instant",
block:"nearest",inline:a.enableScrollIntoViewCenter?"center":"start"});a.shortsContainer.style.overflowY="scroll"}))};
_.Z.updateReelWatchSequenceResponse=function(){var a=this;if(_.K("web_enable_delay_shorts_sequence_call_new")&&this.currentEndpoint&&_.H(this.currentEndpoint,_.hv).sequenceParams&&!this.reelWatchSequenceResponse){var z=_.ab().resolve(_.Qb);z&&XpG(z,this.currentEndpoint).then(function(I){I&&(a.reelWatchSequenceResponse=I,_.GW.addLowPriorityJob(function(){a.maybeCreateIntersectionObserver(!0)}))})}};
_.Z.calculateSqueezebackPanelSize=function(){var a=this,z=window.innerWidth-456-(window.innerHeight-106)*.5625;_.GW.addLowPriorityJob(function(){z<360?_.qo().dispatch(dOI(!0)):(a.hostElement.style.setProperty("--anchored-panel-width",Math.min(z,480)+"px"),_.qo().dispatch(dOI(!1)))})};
_.Z.detached=function(){var a=_.ab().resolve(_.Qb);a.rootElement=void 0;var z;(z=a.unsubscribeFromStore)==null||z.call(a);a.unsubscribeFromStore=void 0;document.removeEventListener("yt-shorts-reset",_.BK(this,this.processResetAction));this.intersectionObserver=this.resizeObserver=void 0};
_.Z.onResizeFinished=function(a,z){var I=this,J=new ResizeObserver(function(){I.shortsContainer.style.overflowY="hidden";_.GW.addLowPriorityJob(function(){z()},100)});
J.observe(a);return J};
_.Z.resetDocumentScrollTop=function(){var a,z;if((a=document)==null?0:(z=a.scrollingElement)==null?0:z.scrollTop)document.scrollingElement.scrollTop=0};
_.Z.loadPage_=function(a){var z=this;this.resetDocumentScrollTop();if(this.currentEndpoint&&this.isNonVideoContentCommand(this.currentEndpoint))this.data=this.playerData=void 0;else if(this.initCsi(),this.updateTitle(this.playerData),a){var I;!_.K("web_enable_delay_shorts_sequence_call")&&((I=_.H(this.currentEndpoint,_.hv))==null?0:I.sequenceParams)&&(this.index=0,this.scrollToVideoThrottle.fire(this.index),this.movePlayerToVideo(this.index));this.data=a;this.isPlayerStarted?this.handleOnPlaybackCommand():
this.afterPlayerStarted=function(){z.isPlayerStarted&&(z.handleOnPlaybackCommand(),z.afterPlayerStarted=function(){})};
this.registerPanel(a)}};
_.Z.afterPlayerStarted=function(){};
_.Z.handleOnPlaybackCommand=function(){if(_.K("web_shorts_comment_stickers")&&this.isPlayerStarted){var a,z=(a=_.H(this.currentEndpoint,_.hv))==null?void 0:a.onPlaybackCommand;z&&this.ytComponentBehavior.resolveCommand(z)}};
_.Z.maybeCreateIntersectionObserver=function(a){var z=this;a=a===void 0?!1:a;var I=this.calculateIntersectionObserverThreshold();if(!this.intersectionObserver||this.intersectionObserverThreshold!==I||a){this.intersectionObserverThreshold=I;a={rootMargin:"0px",threshold:I};var J;(J=this.intersectionObserver)==null||J.disconnect();this.intersectionObserver=new IntersectionObserver(function(r){r=_.C(r);for(var P=r.next();!P.done;P=r.next())if(P=P.value,P.intersectionRatio>I){P=Number(P.target.id);if(isNaN(P))break;
if(P===z.index)break;_.IfM();z.loadVideo(P);_.de("r_vtc")}},a);
this.observeShorts()}};
_.Z.observeShorts=function(){var a=[].concat(_.ih(_.PK(this.hostElement).querySelectorAll(".reel-video-in-sequence-new")));a=_.C(a);for(var z=a.next();!z.done;z=a.next()){z=z.value;var I=void 0;(I=this.intersectionObserver)==null||I.observe(z)}};
_.Z.initCsi=function(){_.dk("reel_watch","pbs pbp pbu r_vtc r_tr cpt".split(" "));var a={reelInfo:{transitionType:this.isPreviousPageShorts?"LATENCY_REEL_TRANSITION_TYPE_REEL_TO_REEL":"LATENCY_REEL_TRANSITION_TYPE_START",videoType:this.isAd()?"REEL_VIDEO_TYPE_AD":"REEL_VIDEO_TYPE_VIDEO",reelToReelBaseline:"REEL_TO_REEL_BASELINE_VIEW_TRANSITION_START"}},z,I;if((z=this.playerData)==null?0:(I=z.cacheMetadata)==null?0:I.isCacheHit)a.isCacheHit=!0;var J;if(z=(J=_.H(this.currentEndpoint,_.hv))==null?void 0:
J.prefetchTaskId)a.prefetchInfo={taskId:z};_.Gb(a)};
_.Z.isAd=function(){var a,z;return!!((a=_.H(this.currentEndpoint,_.hv))==null?0:(z=a.adClientParams)==null?0:z.isAd)};
_.Z.getPlayer=function(){this.$||this._enableProperties();return this.playerElement};
_.Z.getPlayerContainer=function(){var a;return(a=_.PK(this.hostElement).querySelector("ytd-reel-video-renderer"))==null?void 0:a.playerContainer};
_.Z.onPlayerStateChange=function(a){var z=this;this.isPlayerPaused=a===2;a!==1&&this.isShortPlayable()||this.currentPlayerIndex===this.index?a===1&&this.index===0&&(this.isPlayerStarted||_.qo().dispatch(C7(!0))):(this.movePlayerToVideo(this.index),this.isPlayerStarted||_.qo().dispatch(C7(!0)));this.player&&!this.player.getLoopVideo()&&_.GW.addLowPriorityJob(function(){z.getShortsLoopSetting().then(function(I){var J;(J=z.player)==null||J.setLoopVideo(I)})});
this.isPlayerPaused&&_.K("web_shorts_paused_state_logging")&&_.we(_.TX(),[this.reelPlayerPausedStateRendererVe])};
_.Z.isInBackground=function(){var a=window.document.visibilityState;return!(!a||a==="visible")};
_.Z.isShortPlayable=function(){if(_.K("kevlar_playable_short_killswitch"))return!0;var a;return(a=this.playerData)!=null&&a.playabilityStatus?this.playerData.playabilityStatus.status==="OK":!1};
_.Z.setNormalPlaybackSpeed=function(){var a=this,z,I;return _.t(function(J){if(J.nextAddress==1)return J.yield(a.getPlayer().getPlayerPromise(),2);z=J.yieldResult;I=z.getPlaybackRate();I!==1&&(a.storedPlaybackSpeed=I,z.setPlaybackRate(1));_.nu(J)})};
_.Z.restorePlaybackSpeed=function(){var a=this,z;return _.t(function(I){if(I.nextAddress==1)return a.storedPlaybackSpeed===null?I.jumpTo(0):I.yield(a.getPlayer().getPlayerPromise(),3);z=I.yieldResult;z.setPlaybackRate(a.storedPlaybackSpeed);a.storedPlaybackSpeed=null;_.nu(I)})};
_.Z.playerDataChanged=function(){var a=this,z,I,J,r,P,N,u,E,O;return _.t(function(f){if(f.nextAddress==1){z=a.getPlayer();(I=a.intersectionObserver)==null||I.disconnect();if(a.playerData){if(((J=a.playerData.videoDetails)==null?void 0:J.videoId)!==((r=z.getPlayer())==null?void 0:r.getVideoData().video_id)){P={};if(N=_.H(a.currentEndpoint,_.hv))P.watch_endpoint=N,N.endTimeSeconds&&(P.end=N.endTimeSeconds);z.loadVideoWithPlayerResponse(a.playerData,P)}}else return f.return();return a.player?f.jumpTo(2):
f.yield(z.getPlayerPromise(),3)}f.nextAddress!=2&&(a.player=f.yieldResult,a.JSC$22225_playerStateChangeListener=a.onPlayerStateChange.bind(a),a.player.addEventListener("onStateChange",a.JSC$22225_playerStateChangeListener),_.K("kevlar_client_enable_shorts_player_bootstrap")&&_.ws(),a.scrollToVideoThrottle.fire(a.index),a.movePlayerToVideo(a.index),_.GW.addLowPriorityJob(function(){a.getShortsLoopSetting().then(function(A){var n;(n=a.player)==null||n.setLoopVideo(A)})}),_.Cbl.resolve(a.player),a.player.syncVolume(),
a.getPlayer().focusOnPlayer());
_.GW.addLowPriorityJob(function(){a.observeShorts()},100);
u=a.player.getPlayerState(a.player.getPresentingPlayerType());u!==1||a.isPlayerStarted||_.qo().dispatch(C7(!0));a.updateBackNavContainerWidth();E=_.H(a.currentEndpoint,_.hv);((O=E)==null?0:O.startTimeSeconds)&&a.player.seekTo(E.startTimeSeconds);if(a.JSC$22225_cinematicController||a.cinematicsInitializeJobId)return f.return();a.cinematicsInitializeJobId=_.GW.addLowPriorityJob(function(){a.initCinematicController();a.cinematicsInitializeJobId=void 0});
_.nu(f)})};
_.Z.onShortUndoDismiss=function(){var a=this,z=$O9().pop();z!==void 0&&(_.Yv(this,function(){a.showCardWithIndex(z)}),this.playablePreviousIndex=this.getPlayablePreviousIndex())};
_.Z.onShortsDismiss=function(a){if(a=a.detail.reelDismissalActionRenderer)(a=_.H(a.onDismissalCompletionRenderer,_.lqZ))&&this.ytComponentBehavior.resolveCommand({openPopupAction:{popupType:"TOAST",popup:{notificationActionRenderer:a}}}),this.scrollAndDismissCard()};
_.Z.processReelNonVideoContentDismissalCommand=function(a){var z=this;this.activeDimissalTimeout&&(clearTimeout(this.activeDimissalTimeout),this.activeDimissalTimeout=void 0);a=_.H(a,wpx);this.activeDimissalTimeout=setTimeout(function(){z.scrollAndDismissCard()},Number(a==null?void 0:a.delayMs))};
_.Z.scrollAndDismissCard=function(){var a=this,z=this.index;$O9().push(z);_.Yv(this,function(){var I=a.getPlayableNextIndex();I!==null&&(I=a.getActiveReelVideo(I),a.hideCardWithIndex(z),I==null||I.scrollIntoView({behavior:"smooth",block:"nearest",inline:a.enableScrollIntoViewCenter?"center":"start"}))})};
_.Z.hideCardWithIndex=function(a){if(a=this.getActiveReelVideo(a))a.hidden=!0};
_.Z.showCardWithIndex=function(a){if(a=this.getActiveReelVideo(a))a.hidden=!1};
_.Z.onActiveChanged=function(){this.activeChanged(this.ytPageBehavior.active)};
_.Z.activeChanged=function(a){_.qo().dispatch(_.rg({type:"SET_IS_SHORTS_ACTIVE",payload:{isShortsActive:a}}));if(a)document.addEventListener("keydown",_.BK(this,this.onKeydown)),document.body.setAttribute("no-y-overflow",""),this.setNormalPlaybackSpeed(),this.getPlayer().focusOnPlayer();else{if(this.isAd()){var z;(z=this.player)==null||z.sendAbandonmentPing()}var I;(I=this.player)==null||I.cueVideoByPlayerVars({videoId:"00000000"});document.removeEventListener("keydown",_.BK(this,this.onKeydown));
document.body.removeAttribute("no-y-overflow");this.restorePlaybackSpeed();this.processResetAction()}};
_.Z.graftClientVisualElements=function(){if(this.data){var a=_.Kw();_.ZOj(a,_.uI({response:this.reelWatchSequenceResponse}));_.Aq(a,this.nextReelVe);_.Aq(a,this.prevReelVe);_.K("kevlar_shorts_auto_advance")&&(_.Aq(a,this.loopToggleOffVe),_.Aq(a,this.loopToggleOnVe));_.Aq(a,this.ambientModeToggleVe);_.we(_.TX(),[this.nextReelVe,this.prevReelVe]);_.K("web_shorts_paused_state_logging")&&_.Aq(a,this.reelPlayerPausedStateRendererVe)}};
_.Z.graftNvcRenderer=function(){var a,z,I,J,r=this.index<0?(a=this.shortsProcessedPrevSequence)==null?void 0:(z=a[this.shortsProcessedPrevSequence.length+this.index])==null?void 0:z.command:(I=this.shortsProcessedSequence)==null?void 0:(J=I[this.index])==null?void 0:J.command;if(r&&this.isNonVideoContentCommand(r)){a=_.H(r,_.Ry);var P,N;(a=(P=_.H(a==null?void 0:a.renderer,_.FSG))==null?void 0:(N=P.loggingDirectives)==null?void 0:N.trackingParams)&&_.Kw().graftServerVe(a)}};
_.Z.setActiveIndex=function(){_.ab().resolve(_.Qb).setActiveIndex(this.index)};
_.Z.onShortsPipActiveChanged=function(){this.isShortsMiniplayerActive()&&this.updateMiniplayerData()};
_.Z.lazyUpdateMiniplayerData=function(){var a=this;this.isShortsMiniplayerActive()&&(this.cancelPreviousMiniplayerDataUpdate(),this.updateMiniplayerDataJobId=_.GW.addLowPriorityJob(function(){a.updateMiniplayerData();a.updateMiniplayerDataJobId=void 0}))};
_.Z.cancelPreviousMiniplayerDataUpdate=function(){this.updateMiniplayerDataJobId&&_.GW.cancelJob(this.updateMiniplayerDataJobId)};
_.Z.updateMiniplayerData=function(){var a,z,I,J=_.ab().resolve(_.UJ),r={shortsData:this.getCurrentShort(),previousButtonDisabled:!((a=this.prevButtonData)==null||!a.isDisabled),nextButtonDisabled:!((z=this.nextButtonData)==null||!z.isDisabled),playabilityStatus:(I=this.playerData)==null?void 0:I.playabilityStatus};_.pj(J,r)};
_.Z.resetPlayerLocation=function(){var a=this.getPlayer();this.initialPlayerContainer&&a.appendTo(this.initialPlayerContainer,void 0,!0);this.shortsInnerContainer&&this.overlayContainer&&(this.shortsInnerContainer.appendChild(this.overlayContainer),this.overlayContainer=void 0)};
_.Z.movePlayerToVideo=function(a,z){var I=this;z=z===void 0?!0:z;var J=this.getActiveReelVideo(a),r=this.getPlayer();if(J){this.overlayContainer?J.appendChild(this.overlayContainer):(this.overlayContainer=_.PK(this.hostElement).querySelector("ytd-reel-video-renderer")||void 0,J.appendChild(this.overlayContainer),this.isShortsMiniplayerActive()||r.appendTo(this.overlayContainer.playerContainer,void 0,!0));var P;(P=this.player)==null||P.setSize(NaN,NaN);this.isActive||_.b9(_.GW,function(){I.isActive=
!0});
r.style.visibility="visible";_.K("reels_web_disable_rtr_tick")||_.K("reels_web_use_pbs_first_shorts")&&a===0||_.Xz("r_tr");this.currentPlayerIndex=a;J.appendChild(this.errorScreenContainer);var N;(N=this.JSC$22225_cinematicController)==null||_.g7j(N)}else z?_.GW.addLowPriorityJob(function(){I.movePlayerToVideo(I.index,!1)}):Math.random()<=_.Ib("web_shorts_error_logging_threshold")&&_.$0(new _.Fn("Trying to movePlayerToVideo with undefined container.",{firstAttempt:z,
index:a}))};
_.Z.enableFormatFirst=function(a){return _.K("web_enable_format_first")||a.adsOverlay&&_.K("web_enable_format_first_ads_only")||a.reelPlayerOverlayRenderer&&_.K("web_enable_format_first_organic_only")};
_.Z.getAspectRatio=function(a){if(a!=null&&a.thumbnail&&this.enableFormatFirst(a))return"--ytd-shorts-player-ratio: "+KdP(a.thumbnail)};
_.Z.getBackgroundImage=function(a){if(a!=null&&a.thumbnail)return(a=_.P8(a.thumbnail.thumbnails))?'background-image:url("'+a+'");':"background-color:black;"};
_.Z.onPersistentPanelActiveChanged=function(){var a=this.getCurrentShort();if(a&&this.enableFormatFirst(a)&&(a==null?0:a.thumbnail)&&KdP(a.thumbnail)!==.5625){var z;(z=this.player)==null||z.setSize(NaN,NaN)}};
_.Z.isShortsMiniplayerActive=function(){return this.shortsPipEnabled&&this.isShortsPipActive};
_.Z.moveCinematicsToVideo=function(){var a=_.PK(this.hostElement).querySelector("ytd-reel-video-renderer");(a==null?0:a.cinematicContainer)&&a.cinematicContainer!==this.shortsCinematicContainer.parentElement&&a.cinematicContainer.appendChild(this.shortsCinematicContainer)};
_.Z.onPrevButtonDataChange=function(){this.updatePrevButtonData()};
_.Z.updatePrevButtonData=function(){var a=this.get("overlay.reelPlayerOverlayRenderer.prevItemButton.buttonRenderer",this.data);if(a){var z;this.prevButtonData=a=Object.assign({},a,{accessibility:{label:_.AR("PREVIOUS_VIDEO_LABEL")},icon:{iconType:"YOUTUBE_SHORTS_ARROW_UP"},isDisabled:a.isDisabled||this.index===-(((z=this.shortsProcessedPrevSequence)==null?void 0:z.length)||0),tooltip:this.isUpArrowHidden?"":_.AR("PREVIOUS_VIDEO_LABEL")})}else this.prevButtonData&&(this.prevButtonData=a=Object.assign({},
this.prevButtonData,{isDisabled:!1}))};
_.Z.onNextButtonDataChange=function(){this.updateNextButtonData()};
_.Z.updateNextButtonData=function(){var a=this.get("overlay.reelPlayerOverlayRenderer.nextItemButton.buttonRenderer",this.data);if(a){var z;this.nextButtonData=a=Object.assign({},a,{accessibility:{label:_.AR("NEXT_VIDEO_LABEL")},icon:{iconType:"YOUTUBE_SHORTS_ARROW_DOWN"},isDisabled:a.isDisabled||this.index===((z=this.shortsProcessedSequence)==null?void 0:z.length),tooltip:_.AR("NEXT_VIDEO_LABEL")||""})}};
_.Z.getPlayablePreviousIndex=function(){for(var a,z=this.index-1;z>=-(((a=this.prevShortsSequence)==null?void 0:a.length)||0);z--)if(!$O9().includes(z))return z;return null};
_.Z.getIndexInSequence=function(a,z){return a.findIndex(function(I){var J;return((J=_.H(I.command,_.hv))==null?void 0:J.videoId)===z})};
_.Z.handlePrevButtonClick=function(a){var z=this,I,J;return _.t(function(r){I=z.getPlayablePreviousIndex();if(I===null)return r.return();z.gestureType=((J=a)==null?void 0:J.type)==="click"?"INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK":"INTERACTION_LOGGING_GESTURE_TYPE_KEY_PRESS";I===0&&(z.hidePreviousButtonImmediately=!0);if(z.shortsViewTransitions&&document.startViewTransition)return document.startViewTransition(function(){z.transitionToVideoThrottle.fire(I)}),r.return();
z.scrollToVideoThrottle.fire(I);_.nu(r)})};
_.Z.getPlayableNextIndex=function(){for(var a,z=this.index+1;z<(((a=this.shortsProcessedSequence)==null?void 0:a.length)||0);z++)if(!$O9().includes(z))return z;return null};
_.Z.handleNextButtonClick=function(a,z){var I=this,J,r;return _.t(function(P){J=I.getPlayableNextIndex();if(J===null)return P.return();J===1&&(I.showPreviousButtonImmediately=!0);I.gestureType=((r=a)==null?void 0:r.type)==="click"?"INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK":"INTERACTION_LOGGING_GESTURE_TYPE_KEY_PRESS";z&&(I.gestureType=z);if(I.shortsViewTransitions&&document.startViewTransition)return document.startViewTransition(function(){I.transitionToVideoThrottle.fire(J)}),P.return();
I.scrollToVideoThrottle.fire(J);_.nu(P)})};
_.Z.handleReelNavigateCommand=function(a,z,I){(a=_.H(a,pp9))&&z&&a.destination==="REEL_NAVIGATION_DESTINATION_NEXT"&&this.handleNextButtonClick(I)};
_.Z.loadVideo=function(a,z){z=z===void 0?!1:z;if(a!==this.currentPlayerIndex){_.qo().dispatch(C7(!1));if(this.isAd()&&!z){var I;(I=this.player)==null||I.notifyShortsAdSwipeEvent()}if((z=this.JSC$22225_cinematicController)!=null){var J;(J=z.currentCinematicEffect)==null||J.pause()}if((J=this.JSC$22225_cinematicController)!=null){var r;(r=J.currentCinematicEffect)==null||r.clear()}J=a>this.index;this.isShortsMiniplayerActive()&&(this.cancelPreviousMiniplayerDataUpdate(),this.setMiniplayerPreview(J));
this.getPlayer().style.visibility="hidden";this.overlayContainer&&(this.overlayContainer.querySelector("#experiment-overlay").style.display="none");var P,N,u,E;r=a<0?(P=this.shortsProcessedPrevSequence)==null?void 0:(N=P[this.shortsProcessedPrevSequence.length+a])==null?void 0:N.command:(u=this.shortsProcessedSequence)==null?void 0:(E=u[a])==null?void 0:E.command;this.index=a;this.gestureType||(this.gestureType=J?"INTERACTION_LOGGING_GESTURE_TYPE_SWIPE":"INTERACTION_LOGGING_GESTURE_TYPE_BACK_SWIPE");
r&&this.isVideoContentCommand(r)&&(this.ytComponentBehavior.resolveCommand(r,{form:{createScreenConfig:{clickedVisualElement:J?this.nextReelVe:this.prevReelVe,implicitGestureType:this.gestureType}}}),this.gestureType=void 0);if(r&&this.isNonVideoContentCommand(r)){this.currentEndpoint=r;this.data=void 0;P=_.Kw();N=_.H(r,_.Ry);var O,f;(N=(O=_.H(N==null?void 0:N.renderer,_.FSG))==null?void 0:(f=O.screenLoggingData)==null?void 0:f.screenVeType)&&_.fJ(P,N);this.currentPlayerIndex=-1;this.player&&this.isShortPlayable()&&
this.player.pauseVideo();(O=this.getActiveReelVideo(a))&&O.appendChild(this.overlayContainer)}var A,n;if(((A=this.reelWatchSequenceResponse)==null?0:A.continuationEndpoint)&&((n=this.reelWatchSequenceResponse)==null?0:n.entries)&&a===this.reelWatchSequenceResponse.entries.length-1){var F,h;A={contentPlaybackContext:_.St({},(h=_.H((F=this.currentEndpoint)==null?void 0:F.commandMetadata,_.O_))==null?void 0:h.url,window.location.href)};this.ytComponentBehavior.resolveCommand(this.reelWatchSequenceResponse.continuationEndpoint,
{form:A})}var v,d,W;((v=this.reelWatchSequenceResponse)==null?0:v.prevContinuationEndpoint)&&a===-(((d=this.reelWatchSequenceResponse)==null?void 0:(W=d.prevEntries)==null?void 0:W.length)||0)&&this.ytComponentBehavior.resolveCommand(this.reelWatchSequenceResponse.prevContinuationEndpoint)}};
_.Z.setMiniplayerPreview=function(a){a=(a===void 0?0:a)?this.getPlayableNextIndex():this.getPlayablePreviousIndex();var z,I,J=_.ab().resolve(_.UJ),r={shortsData:void 0,shortsPreviewThumbnail:a?(z=this.shortsProcessedSequence)==null?void 0:(I=z[a])==null?void 0:I.thumbnail:void 0};_.pj(J,r)};
_.Z.updateTitle=function(a){var z,I;a=(a==null?0:a.adSlots)?"":(I=a==null?void 0:(z=a.videoDetails)==null?void 0:z.title)!=null?I:"";_.PA(this.hostElement,"yt-update-title",a)};
_.Z.registerPanel=function(a){var z=_.ab().resolve(_.X3);if(z){a=_.C(a.engagementPanels||[]);for(var I=a.next();!I.done;I=a.next()){I=I.value;var J=this.getPanelContentIdentifier(I.engagementPanelSectionListRenderer),r=void 0,P=void 0;(P=(r=z).registerPanelContent)==null||P.call(r,J,I)}}};
_.Z.getPanelIdentifier=function(a){var z;return(a==null?void 0:(z=a.identifier)==null?void 0:z.tag)||(a==null?void 0:a.panelIdentifier)||(a==null?void 0:a.targetId)};
_.Z.getPanelContentIdentifier=function(a){var z;return(a==null?void 0:a.targetId)||(a==null?void 0:a.panelIdentifier)||(a==null?void 0:(z=a.identifier)==null?void 0:z.tag)};
_.Z.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;_.qo().dispatch(C7(!1));this.isShortsInitialized=!1;this.resetPlayerLocation();this.shortsContainer.scrollTop=0;_.qo().dispatch(T$N(!1));var a=_.ab().resolve(_.Qb);a.dismissedIndices=[];a.watchWhileIndices.clear();this.isShortsMiniplayerActive()&&
_.ab().resolve(_.UJ).close(!0)};
_.Z.processAppendReelWatchSequenceContinuationEntriesAction=function(a){var z=this,I;(I=this.intersectionObserver)==null||I.disconnect();a=a.appendReelWatchSequenceContinuationEntriesAction;if(a==null?0:a.entries){var J;this.reelWatchSequenceResponse=Object.assign({},this.reelWatchSequenceResponse,{entries:[].concat(_.ih(((J=this.reelWatchSequenceResponse)==null?void 0:J.entries)||[]),_.ih(a.entries)),continuationEndpoint:a.continuationEndpoint})}else if(a==null?0:a.prevEntries){var r;this.reelWatchSequenceResponse=
Object.assign({},this.reelWatchSequenceResponse,{prevEntries:[].concat(_.ih(((r=this.reelWatchSequenceResponse)==null?void 0:r.prevEntries)||[]),_.ih(a.prevEntries)),prevContinuationEndpoint:a.prevContinuationEndpoint});_.GW.addLowPriorityJob(function(){z.movePlayerToVideo(z.index);var P;(P=z.getActiveReelVideo(z.index))==null||P.scrollIntoView({block:"nearest",inline:z.enableScrollIntoViewCenter?"center":"start"})})}else return;
_.GW.addLowPriorityJob(function(){z.observeShorts()},100)};
_.Z.processWatchSequence=function(a){var z=this;return a.map(function(I){I=I.command;if(z.isVideoContentCommand(I)){var J=_.H(I,_.hv);return{reelPlayerOverlayRenderer:_.H(J==null?void 0:J.overlay,_.HQO),thumbnail:J.thumbnail,command:I}}return z.isNonVideoContentCommand(I)?(J=_.H(I,_.Ry),{reelNonVideoContentRenderer:_.H(J==null?void 0:J.renderer,_.FSG),command:I}):{command:I}})};
_.Z.calculateIntersectionObserverThreshold=function(){var a=_.PK(this.hostElement).querySelector("ytd-reel-video-renderer"),z=1;(a==null?0:a.offsetHeight)&&(a==null?0:a.offsetWidth)&&(z=Math.min(a.offsetHeight,this.shortsContainer.offsetHeight)/a.offsetHeight*(Math.min(a.offsetWidth,this.shortsContainer.offsetWidth)/a.offsetWidth));return Math.round(z*.6*10)/10};
_.Z.isVideoContentCommand=function(a){_.ab().resolve(_.Qb);return!!_.H(a,_.hv)};
_.Z.isNonVideoContentCommand=function(a){_.ab().resolve(_.Qb);return!!_.H(a,_.Ry)};
_.Z.initCinematicController=function(){var a=this;if(this.player&&this.shortsCinematicContainer){this.JSC$22225_cinematicController=new _.ZS(this.shortsCinematicContainer,this.player);var z,I=_.H((z=this.data)==null?void 0:z.background,_.$W);_.B$j(this.JSC$22225_cinematicController,I);_.E7t(this.JSC$22225_cinematicController,sE9(I));_.u04(this.JSC$22225_cinematicController);_.GW.addLowPriorityJob(function(){a.moveCinematicsToVideo()})}};
_.Z.handleMiniplayerNavigateShorts=function(a){a==="REEL_NAVIGATION_DESTINATION_NEXT"?this.handleNextButtonClick():a==="REEL_NAVIGATION_DESTINATION_PREV"&&this.handlePrevButtonClick()};
_.Z.handleSignalActionToggleShortsPictureInPicture=function(){if(_.ab().resolve(_.UJ).pictureInPictureSupported()){var a=_.ab().resolve(_.Qb);if(_.K("web_shorts_pip")){var z=_.ab().resolve(_.UJ);a.isShortsPipActive()?z.deactivate():z.isMiniplayerActive()||(_.hq().shortsPipActivation=!0,_.RtM(z))}}else(a=this.player)==null||a.togglePictureInPicture()};
_.eH.Object.defineProperties(sI.prototype,{prevShortsSequence:{configurable:!0,enumerable:!0,get:function(){var a;if((a=this.reelWatchSequenceResponse)!=null&&a.prevEntries)return this.processWatchSequence([].concat(_.ih(this.reelWatchSequenceResponse.prevEntries)).reverse())}},
shortsProcessedPrevSequence:{configurable:!0,enumerable:!0,get:function(){if(this.prevShortsSequence){var a=this.getCurrentShort();if(this.index>=0&&this.shortsProcessedPrevSequence||!a)return this.shortsProcessedPrevSequence;if(this.shortsProcessedPrevSequence){if(this.shortsProcessedPrevSequence.length<this.prevShortsSequence.length){var z=this.prevShortsSequence.length-this.shortsProcessedPrevSequence.length;return[].concat(_.ih(this.prevShortsSequence.slice(0,z)),[a],_.ih(this.prevShortsSequence.slice(z+
1)))}z=this.index+this.shortsProcessedPrevSequence.length;a.thumbnail=this.shortsProcessedPrevSequence[z].thumbnail;return[].concat(_.ih(this.shortsProcessedPrevSequence.slice(0,z)),[a],_.ih(this.shortsProcessedPrevSequence.slice(z+1)))}return this.prevShortsSequence}}},
shortsSequence:{configurable:!0,enumerable:!0,get:function(){var a;if((a=this.reelWatchSequenceResponse)!=null&&a.entries)return this.processWatchSequence(this.reelWatchSequenceResponse.entries)}},
shortsProcessedSequence:{configurable:!0,enumerable:!0,get:function(){if(this.data||this.shortsSequence){var a=this.getCurrentShort();if(!a||this.index<0)return this.shortsProcessedSequence;if(!this.shortsSequence)return[a];if(a==null||!a.reelNonVideoContentRenderer){var z=this.getIndexInSequence(this.shortsSequence,_.H(this.currentEndpoint,_.hv).videoId);if(this.index===0&&z!==-1)return this.currentPlayerIndex=this.index=z,this.scrollToVideoThrottle.fire(this.index),this.movePlayerToVideo(this.index),
[].concat(_.ih(this.shortsSequence.slice(0,this.index)),[a],_.ih(this.shortsSequence.slice(this.index+1)))}if(this.shortsProcessedSequence){a.thumbnail=this.shortsProcessedSequence[this.index].thumbnail;var I,J,r,P;z=((J=_.H((I=this.shortsProcessedSequence[0])==null?void 0:I.command,_.hv))==null?void 0:J.videoId)===((P=_.H((r=this.shortsSequence[0])==null?void 0:r.command,_.hv))==null?void 0:P.videoId)?this.index+1:this.index;this.deflateInactivePreviousSlides();return[].concat(_.ih(this.shortsProcessedSequence.slice(0,
this.index)),[a],_.ih(this.shortsSequence.slice(z)))}return[a].concat(_.ih(this.shortsSequence))}}},
isUpArrowHidden:{configurable:!0,enumerable:!0,get:function(){this.playablePreviousIndex=this.getPlayablePreviousIndex();var a=this.isFirstShorts(this.prevShortsSequence)||this.playablePreviousIndex===null;a&&(this.hidePreviousButtonImmediately=!1);if(this.showPreviousButtonImmediately){if(a)return!1;this.showPreviousButtonImmediately=!1}return this.hidePreviousButtonImmediately||this.isFirstShorts(this.prevShortsSequence)||this.playablePreviousIndex===null}},
isDownArrowHidden:{configurable:!0,enumerable:!0,get:function(){if(this.endOfNextContinuation){var a,z;return this.index===((a=this.reelWatchSequenceResponse)==null?void 0:(z=a.entries)==null?void 0:z.length)}var I;return!((I=this.reelWatchSequenceResponse)==null?0:I.entries)&&this.index===0}},
activeIndex:{configurable:!0,enumerable:!0,get:function(){var a;(a=this.delayedActiveIndexUpdateDebouncer)==null||a.fire(this.index);return this.index}},
shouldRenderOfflineContent:{configurable:!0,enumerable:!0,get:function(){var a,z,I;return this.isShortPlayable()||((z=_.H((a=this.data)==null?void 0:a.watchStatus,_.G7I))==null?void 0:(I=z.style)==null?void 0:I.value)!=="BACKGROUND_PROMO_STYLE_TYPE_FULL_HEIGHT"?!1:!0}},
anchoredEngagementPanels:{configurable:!0,enumerable:!0,get:function(){var a=this,z=this.currentEndpoint&&this.isNonVideoContentCommand(this.currentEndpoint),I;if((this.data||z)&&(((I=this.data)==null?0:I.engagementPanels)||this.isAd()||z)){z=!1;this.activePanel="shorts-comments-panel";var J;I=_.C(((J=this.data)==null?void 0:J.engagementPanels)||[]);for(J=I.next();!J.done;J=I.next())if(this.getPanelIdentifier(J.value.engagementPanelSectionListRenderer)===this.activePanel){z=!0;break}if(this.isPersistentPanelActive){var r=
_.ab().resolve(_.X3);_.b9(_.GW,function(){r.showPanel(a.activePanel,void 0,void 0,void 0,null)},100)}var P;
J=[].concat(_.ih(Object.values(((P=this.data)==null?void 0:P.engagementPanels)||{})));if(_.K("enable_preview_panel_for_shorts_search_suggested_action")){var N,u,E,O,f;((O=_.H((N=this.data)==null?void 0:(u=N.overlay)==null?void 0:(E=u.reelPlayerOverlayRenderer)==null?void 0:E.metapanel,_.KSj))==null?void 0:(f=O.metadataItems)==null?void 0:f.find(function(A){var n,F;return((n=_.H(A,y1G))==null?void 0:(F=n.icon)==null?void 0:F.iconType)==="SEARCH"}))!==void 0&&J.push({engagementPanelSectionListRenderer:{identifier:{tag:"PAsearch_preview"},
targetId:"PAsearch_preview"}})}P=this.get("overlay.reelPlayerOverlayRenderer.viewCommentsButton.buttonRenderer",this.data);N=this.get("overlay.reelPlayerOverlayRenderer.buttonBar.reelActionBarViewModel.buttonViewModels.2.buttonViewModel",this.data);return P===void 0&&N===void 0||(P==null?0:P.isDisabled)||(N==null?void 0:N.state)==="BUTTON_VIEW_MODEL_STATE_DISABLED"||this.currentEndpoint&&this.isNonVideoContentCommand(this.currentEndpoint)||this.isAd()||!z?(z=J==null?void 0:J.findIndex(function(A){var n,
F;return((n=A.engagementPanelSectionListRenderer)==null?void 0:(F=n.identifier)==null?void 0:F.tag)==="shorts-comments-panel"}),z===-1||z===void 0||J!=null&&J.splice(z,1),[{engagementPanelSectionListRenderer:{header:{engagementPanelTitleHeaderRenderer:{title:{runs:[{text:_.AR("COMMENTS",void 0,"Comments")}]},
visibilityButton:{buttonRenderer:{style:"STYLE_DEFAULT",size:"SIZE_DEFAULT",icon:{iconType:"CLOSE"},accessibilityData:{accessibilityData:{label:_.AR("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:_.AR("COMMENTS_OFF",void 0,"Comments are turned off. ")},
{text:" "},{text:_.AR("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(_.ih(Object.values(J||
{})))):J}}},
activeReel:{configurable:!0,enumerable:!0,get:function(){var a;return(a=this.shortsProcessedSequence)==null?void 0:a[this.activeIndex]}},
errorScreen:{configurable:!0,enumerable:!0,get:function(){var a=this,z,I,J;if((z=this.playerData)==null?0:(I=z.playabilityStatus)==null?0:(J=I.errorScreen)==null?0:J.playerInterstitialRenderer)return _.GW.addLowPriorityJob(function(){a.movePlayerToVideo(a.index)}),this.playerData.playabilityStatus.errorScreen;
var r,P;return((r=this.data)==null?void 0:r.status)==="REEL_ITEM_WATCH_STATUS_EMPTY"&&((P=this.data)==null?0:P.watchStatus)&&_.H(this.data.watchStatus,_.bEj)?(_.GW.addLowPriorityJob(function(){a.movePlayerToVideo(a.index)}),this.data.watchStatus):null}},
hasError:{configurable:!0,enumerable:!0,get:function(){return!!this.errorScreen}}});
_.eH.Object.defineProperties(sI,{template:{configurable:!0,enumerable:!0,get:function(){if(MMO===void 0){var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-shorts--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-shorts">\n  <div id="back-nav-button" class="style-scope ytd-shorts"></div>\n</div>\n<div id="offline-container" hidden="[[!shouldRenderOfflineContent]]" class="style-scope ytd-shorts"></div>\n<div id="shorts-container" hidden="[[shouldRenderOfflineContent]]" class="style-scope ytd-shorts">\n  <div id="cinematic-shorts-scrim" class="style-scope ytd-shorts"></div>\n  <div id="shorts-inner-container" class="style-scope ytd-shorts">\n    <div id="initial-player-container" class="style-scope ytd-shorts">\n      <div id="shorts-cinematic-container" class="style-scope ytd-shorts"></div>\n      <ytd-player id="player" aria-hidden="[[hasError]]" context="WEB_PLAYER_CONTEXT_CONFIG_ID_KEVLAR_SHORTS" disable-touch-gestures="" class="style-scope ytd-shorts">\n      </ytd-player>\n      <yt-playability-error-supported-renderers id="error-screen" data="[[errorScreen]]" hidden$="[[!errorScreen]]" no-backgrounds="" class="style-scope ytd-shorts">\n      </yt-playability-error-supported-renderers>\n    </div>\n    <template is="dom-if" if="[[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    <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');
a.content.insertBefore(_.w().content.cloneNode(!0),a.content.firstChild);MMO=a}a=MMO;return a}}});
sI.prototype.onNextButtonDataChange=sI.prototype.onNextButtonDataChange;sI.prototype.onPrevButtonDataChange=sI.prototype.onPrevButtonDataChange;sI.prototype.onPersistentPanelActiveChanged=sI.prototype.onPersistentPanelActiveChanged;sI.prototype.lazyUpdateMiniplayerData=sI.prototype.lazyUpdateMiniplayerData;sI.prototype.onShortsPipActiveChanged=sI.prototype.onShortsPipActiveChanged;sI.prototype.setActiveIndex=sI.prototype.setActiveIndex;sI.prototype.graftNvcRenderer=sI.prototype.graftNvcRenderer;
sI.prototype.graftClientVisualElements=sI.prototype.graftClientVisualElements;sI.prototype.onActiveChanged=sI.prototype.onActiveChanged;sI.prototype.onShortsDismiss=sI.prototype.onShortsDismiss;sI.prototype.onShortUndoDismiss=sI.prototype.onShortUndoDismiss;sI.prototype.playerDataChanged=sI.prototype.playerDataChanged;sI.prototype.afterPlayerStarted=sI.prototype.afterPlayerStarted;sI.prototype.updateReelWatchSequenceResponse=sI.prototype.updateReelWatchSequenceResponse;
sI.prototype.unhideCurrentOverlay=sI.prototype.unhideCurrentOverlay;sI.prototype.onServiceRequestCompleted=sI.prototype.onServiceRequestCompleted;sI.prototype.engagementPanelsChanged=sI.prototype.engagementPanelsChanged;sI.prototype.onFullscreenChange=sI.prototype.onFullscreenChange;sI.prototype.onResize=sI.prototype.onResize;_.L([_.Q(_.Ms.YtComponentBehavior),_.p("design:type",Object)],sI.prototype,"ytComponentBehavior",void 0);
_.L([_.Q(_.WR.YtPageBehavior),_.p("design:type",Object)],sI.prototype,"ytPageBehavior",void 0);_.L([_.Q(_.Hc.YtActionHandlerBehavior),_.p("design:type",Object)],sI.prototype,"ytActionHandlerBehavior",void 0);_.L([_.Q(_.Ts),_.p("design:type",Object)],sI.prototype,"ironResizableBehavior",void 0);_.L([_.Q(_.u4.YtRendererstamperBehavior),_.p("design:type",Object)],sI.prototype,"ytRendererstamperBehavior",void 0);_.L([_.Q(_.mD),_.p("design:type",Object)],sI.prototype,"ytdDismissibleItemBehavior",void 0);
_.L([_.Q(_.cZ.YtdGuideStateAwareBehavior),_.p("design:type",Object)],sI.prototype,"ytdGuideStateAwareBehavior",void 0);_.L([_.Q(_.pV),_.p("design:type",Object)],sI.prototype,"ytdReduxBehavior",void 0);_.L([_.x(),_.p("design:type",Object)],sI.prototype,"data",void 0);_.L([_.x(),_.p("design:type",Object)],sI.prototype,"playerData",void 0);_.L([_.x(),_.p("design:type",Object)],sI.prototype,"reelWatchSequenceResponse",void 0);
_.L([_.x(),_.p("design:type",Object)],sI.prototype,"cachedReelWatchSequenceResponse",void 0);_.L([_.x(),_.p("design:type",Object)],sI.prototype,"cachedSequenceParams",void 0);_.L([_.x(),_.p("design:type",Object)],sI.prototype,"cachedSequenceProvider",void 0);_.L([_.x(),_.p("design:type",Object)],sI.prototype,"currentEndpoint",void 0);_.L([_.x(),_.p("design:type",Object)],sI.prototype,"nextButtonData",void 0);_.L([_.x(),_.p("design:type",Object)],sI.prototype,"prevButtonData",void 0);
_.L([_.x(),_.p("design:type",Object)],sI.prototype,"isPreviousPageShorts",void 0);_.L([_.x(),_.p("design:type",Object)],sI.prototype,"index",void 0);_.L([_.x(),_.p("design:type",Object)],sI.prototype,"delayedActiveIndex",void 0);_.L([_.x(),_.p("design:type",Object)],sI.prototype,"playablePreviousIndex",void 0);_.L([_.x(),_.p("design:type",Object)],sI.prototype,"player",void 0);_.L([_.x(),_.p("design:type",Object)],sI.prototype,"isPlayerPaused",void 0);
_.L([_.x({selector:HG4}),_.p("design:type",Object)],sI.prototype,"isPlayerStarted",void 0);_.L([_.x(),_.p("design:type",Object)],sI.prototype,"intersectionObserver",void 0);_.L([_.x(),_.p("design:type",Number)],sI.prototype,"cinematicsInitializeJobId",void 0);_.L([_.x(),_.p("design:type",Number)],sI.prototype,"updateMiniplayerDataJobId",void 0);_.L([_.x(),_.p("design:type",Object)],sI.prototype,"fitToVisibleBounds",void 0);_.L([_.x(),_.p("design:type",Object)],sI.prototype,"pageSubtype",void 0);
_.L([_.x({reflectToAttribute:!0}),_.p("design:type",Boolean)],sI.prototype,"enablePreviousContinuation",void 0);_.L([_.x({reflectToAttribute:!0}),_.p("design:type",Object)],sI.prototype,"shortsPipEnabled",void 0);_.L([_.x({reflectToAttribute:!0}),_.p("design:type",Object)],sI.prototype,"isDark",void 0);_.L([_.x({reflectToAttribute:!0}),_.p("design:type",Object)],sI.prototype,"shortsViewTransitions",void 0);
_.L([_.x({selector:_.Cc,reflectToAttribute:!0}),_.p("design:type",Object)],sI.prototype,"isFullscreen",void 0);_.L([_.x({selector:_.NA,reflectToAttribute:!0}),_.p("design:type",Object)],sI.prototype,"isShortsPipActive",void 0);_.L([_.A3("#shorts-inner-container"),_.p("design:type",HTMLElement)],sI.prototype,"shortsInnerContainer",void 0);_.L([_.A3("#back-nav-button ytd-button-renderer"),_.p("design:type",_.Ze)],sI.prototype,"backNavButton",void 0);
_.L([_.A3("#shorts-container"),_.p("design:type",HTMLElement)],sI.prototype,"shortsContainer",void 0);_.L([_.gy("error-screen"),_.p("design:type",HTMLElement)],sI.prototype,"errorScreenContainer",void 0);_.L([_.gy("player"),_.p("design:type",Object)],sI.prototype,"playerElement",void 0);_.L([_.gy("shorts-cinematic-container"),_.p("design:type",HTMLElement)],sI.prototype,"shortsCinematicContainer",void 0);
_.L([_.gy("initial-player-container"),_.p("design:type",HTMLElement)],sI.prototype,"initialPlayerContainer",void 0);_.L([_.x(),_.p("design:type",Object)],sI.prototype,"buttonOverride",void 0);_.L([_.x({reflectToAttribute:!0}),_.p("design:type",Object)],sI.prototype,"anchoredPanelActive",void 0);_.L([_.x(),_.p("design:type",String)],sI.prototype,"activePanel",void 0);_.L([_.x(),_.p("design:type",Object)],sI.prototype,"isActive",void 0);
_.L([_.x({selector:Fd9,reflectToAttribute:!0}),_.p("design:type",Object)],sI.prototype,"smallScreenPersistentPanel",void 0);_.L([_.x({reflectToAttribute:!0}),_.p("design:type",Object)],sI.prototype,"isPersistentPanelActive",void 0);_.L([_.x(),_.p("design:type",Object)],sI.prototype,"smallScreenSqueezeBack",void 0);_.L([_.x(),_.p("design:type",Object)],sI.prototype,"enableScrollIntoViewCenter",void 0);_.L([_.x({reflectToAttribute:!0}),_.p("design:type",Object)],sI.prototype,"formatFirst",void 0);
_.L([_.x({reflectToAttribute:!0}),_.p("design:type",Object)],sI.prototype,"enableFlexibleOverlay",void 0);_.L([_.x({reflectToAttribute:!0}),_.p("design:type",Object)],sI.prototype,"useAspectRatio",void 0);_.L([_.x(),_.p("design:type",Object)],sI.prototype,"panelContainer",void 0);_.L([_.x(),_.p("design:type",Object)],sI.prototype,"overlayContainer",void 0);_.L([_.x(),_.p("design:type",Object)],sI.prototype,"isShortsInitialized",void 0);
_.L([_.S("reelWatchSequenceResponse"),_.p("design:type",Object),_.p("design:paramtypes",[])],sI.prototype,"prevShortsSequence",null);_.L([_.S("data","prevShortsSequence"),_.p("design:type",Object),_.p("design:paramtypes",[])],sI.prototype,"shortsProcessedPrevSequence",null);_.L([_.S("reelWatchSequenceResponse"),_.p("design:type",Object),_.p("design:paramtypes",[])],sI.prototype,"shortsSequence",null);
_.L([_.S("data","shortsSequence"),_.p("design:type",Object),_.p("design:paramtypes",[])],sI.prototype,"shortsProcessedSequence",null);_.L([_.x({reflectToAttribute:!0}),_.S("index","playablePreviousIndex","prevShortsSequence","hidePreviousButtonImmediately","showPreviousButtonImmediately"),_.p("design:type",Boolean),_.p("design:paramtypes",[])],sI.prototype,"isUpArrowHidden",null);
_.L([_.x({reflectToAttribute:!0}),_.S("reelWatchSequenceResponse","index","endOfNextContinuation"),_.p("design:type",Boolean),_.p("design:paramtypes",[])],sI.prototype,"isDownArrowHidden",null);_.L([_.x(),_.S("index"),_.p("design:type",Number),_.p("design:paramtypes",[])],sI.prototype,"activeIndex",null);_.L([_.S("isShortPlayable","data"),_.p("design:type",Boolean),_.p("design:paramtypes",[])],sI.prototype,"shouldRenderOfflineContent",null);
_.L([_.gz("iron-resize"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],sI.prototype,"onResize",null);_.L([_.S("data"),_.p("design:type",Object),_.p("design:paramtypes",[])],sI.prototype,"anchoredEngagementPanels",null);_.L([_.x(),_.p("design:type",Object)],sI.prototype,"watchWhileEngagementPanels",void 0);_.L([_.O8("isFullscreen"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],sI.prototype,"onFullscreenChange",null);
_.L([_.O8("data"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],sI.prototype,"engagementPanelsChanged",null);_.L([_.gz("yt-service-request-completed"),_.p("design:type",Function),_.p("design:paramtypes",[CustomEvent,_.Yq]),_.p("design:returntype")],sI.prototype,"onServiceRequestCompleted",null);_.L([_.S("data","shortsSequence","index"),_.p("design:type",Object),_.p("design:paramtypes",[])],sI.prototype,"activeReel",null);
_.L([_.O8("data"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],sI.prototype,"unhideCurrentOverlay",null);_.L([_.O8("currentEndpoint"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],sI.prototype,"updateReelWatchSequenceResponse",null);_.L([_.O8("isPlayerStarted"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],sI.prototype,"afterPlayerStarted",null);
_.L([_.S("playerData","reelWatchSequenceResponse","data"),_.p("design:type",Object),_.p("design:paramtypes",[])],sI.prototype,"errorScreen",null);_.L([_.S("errorScreen"),_.p("design:type",Boolean),_.p("design:paramtypes",[])],sI.prototype,"hasError",null);_.L([_.O8("playerData"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype",Promise)],sI.prototype,"playerDataChanged",null);
_.L([_.gz("yt-dismissible-item-undo-feedback"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],sI.prototype,"onShortUndoDismiss",null);_.L([_.gz("yt-disable-lockup-interaction"),_.p("design:type",Function),_.p("design:paramtypes",[Object]),_.p("design:returntype")],sI.prototype,"onShortsDismiss",null);_.L([_.Fe("active"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],sI.prototype,"onActiveChanged",null);
_.L([_.O8("data"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],sI.prototype,"graftClientVisualElements",null);_.L([_.O8("currentPlayerIndex"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],sI.prototype,"graftNvcRenderer",null);_.L([_.O8("index"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],sI.prototype,"setActiveIndex",null);
_.L([_.O8("isShortsPipActive"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],sI.prototype,"onShortsPipActiveChanged",null);_.L([_.O8("data"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],sI.prototype,"lazyUpdateMiniplayerData",null);_.L([_.x(),_.p("design:type",Object)],sI.prototype,"onOverlayDensityChanged",void 0);
_.L([_.O8("isPersistentPanelActive"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],sI.prototype,"onPersistentPanelActiveChanged",null);_.L([_.O8("index","data","isUpArrowHidden"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],sI.prototype,"onPrevButtonDataChange",null);_.L([_.O8("index","data"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],sI.prototype,"onNextButtonDataChange",null);
_.L([_.U({is:"ytd-shorts"})],sI);_.gr.registerService(_.c8d,sI);
_.xl();
}catch(e){_._DumpException(e)}
try{
_.iE("JzFVk");
var BwZ=function(a){return _.B("ytd-button-banner-view-model",{class:"ytwYtdButtonBannerViewModelHost"},Ere(a.data.ctaButton,{buttonViewModel:{}}),_.B(_.xs,{text:a.data.subtext,className:"ytwYtdButtonBannerViewModelSubtext"}))};var grZ;var Oze;var W6=function(){return _.G.apply(this,arguments)||this};
_.b(W6,_.G);W6.prototype.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}}}};
W6.prototype.computeBlueBottomLink=function(a){return a};
_.L([_.Q(_.u4.YtRendererstamperBehavior),_.p("design:type",Object)],W6.prototype,"ytRendererstamperBehavior",void 0);_.L([_.Q(_.k.YtRendererBehavior),_.p("design:type",Object)],W6.prototype,"ytRendererBehavior",void 0);_.L([_.x(),_.p("design:type",Object)],W6.prototype,"data",void 0);_.L([_.x({computed:"computeIcon_(data.bottomIcon)"}),_.p("design:type",String)],W6.prototype,"bottomIcon",void 0);
_.L([_.x({computed:"computeBlueBottomLink(data.blueBottomLink)",reflectToAttribute:!0}),_.p("design:type",Boolean)],W6.prototype,"enableBlueBottomLink",void 0);_.L([_.U({is:"ytd-web-answer-renderer",disableElementRegistration:!0})],W6);
_.D(W6,"ytd-web-answer-renderer",function(){if(Oze!==void 0)return Oze;var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-web-answer-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="section-header" class="style-scope ytd-web-answer-renderer">\n  <yt-formatted-string id="section-title" text="[[data.sectionTitle]]" class="style-scope ytd-web-answer-renderer"></yt-formatted-string>\n  <div id="menu" class="style-scope ytd-web-answer-renderer"></div>\n</div>\n<a class="yt-simple-endpoint style-scope ytd-web-answer-renderer" href$="[[computeHref_(data.command)]]" data="[[data.command]]">\n  <div id="content" class="style-scope ytd-web-answer-renderer">\n    <div id="content-text" class="style-scope ytd-web-answer-renderer">\n      <div id="content-title" class="style-scope ytd-web-answer-renderer">\n        <yt-formatted-string id="content-title" text="[[data.contentTitle]]" class="style-scope ytd-web-answer-renderer">\n        </yt-formatted-string>\n        <yt-icon class="external-link-icon style-scope ytd-web-answer-renderer" icon="yt-icons:open_in_new"></yt-icon>\n      </div>\n      <yt-formatted-string id="body-text" text="[[data.bodyText]]" class="style-scope ytd-web-answer-renderer"></yt-formatted-string>\n      <div id="source-group" class="style-scope ytd-web-answer-renderer">\n        <yt-formatted-string text="[[data.sourceName]]" class="style-scope ytd-web-answer-renderer"></yt-formatted-string>\n        <div id="separator" hidden="[[!data.publishedDate]]" class="style-scope ytd-web-answer-renderer">\u2022</div>\n        <yt-formatted-string text="[[data.publishedDate]]" class="style-scope ytd-web-answer-renderer"></yt-formatted-string>\n      </div>\n    </div>\n    <yt-img-shadow id="answer-image" hidden="[[!data.image]]" thumbnail="[[data.image]]" width="100" class="style-scope ytd-web-answer-renderer">\n    </yt-img-shadow>\n  </div>\n</a>\n<a class="yt-simple-endpoint style-scope ytd-web-answer-renderer" hidden="[[!data.bottomLink]]" href$="[[computeHref_(data.bottomLinkCommand)]]" data="[[data.bottomLinkCommand]]">\n  <div id="bottom-section" class="style-scope ytd-web-answer-renderer">\n    <yt-icon id="bottom-icon" icon="[[bottomIcon]]" class="style-scope ytd-web-answer-renderer"></yt-icon>\n    <yt-formatted-string id="bottom-link" text="[[data.bottomLink]]" class="style-scope ytd-web-answer-renderer"></yt-formatted-string>\n    <yt-icon class="external-link-icon style-scope ytd-web-answer-renderer" icon="yt-icons:open_in_new"></yt-icon>\n  </div>\n</a>\n');a.content.insertBefore(_.w().content.cloneNode(!0),
a.content.firstChild);return Oze=a},{mode:_.Np("kevlar_poly_si_batch_j035")?1:2});var fqG;var o6=function(){var a=_.G.apply(this,arguments)||this;a.hasChipBar=!1;return a};
_.b(o6,_.G);o6.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}}};
o6.prototype.computeHasChipBar=function(a){return!(a==null||!a.chipBar)};
_.L([_.Q(_.k.YtRendererBehavior),_.p("design:type",Object)],o6.prototype,"ytRendererBehavior",void 0);_.L([_.Q(_.u4.YtRendererstamperBehavior),_.p("design:type",Object)],o6.prototype,"ytRendererstamperBehavior",void 0);_.L([_.x(),_.p("design:type",Object)],o6.prototype,"data",void 0);_.L([_.x({reflectToAttribute:!0,computed:"computeHasChipBar(data)"}),_.p("design:type",Object)],o6.prototype,"hasChipBar",void 0);_.L([_.U({is:"ytd-search-header-renderer",disableElementRegistration:!0})],o6);
_.D(o6,"ytd-search-header-renderer",function(){if(fqG!==void 0)return fqG;var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-search-header-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="chip-bar" class="style-scope ytd-search-header-renderer"></div>\n<div id="about-these-results" class="style-scope ytd-search-header-renderer"></div>\n<div id="filter-button" class="style-scope ytd-search-header-renderer"></div>\n\n');
a.content.insertBefore(_.w().content.cloneNode(!0),a.content.firstChild);return fqG=a},{mode:1});var AhV;var Uy=function(){return _.G.apply(this,arguments)||this};
_.b(Uy,_.G);Uy.prototype.configureRendererStamper=function(){return{"data.pages":{id:"pages",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.L([_.Q(_.k.YtRendererBehavior),_.p("design:type",Object)],Uy.prototype,"ytRendererBehavior",void 0);_.L([_.Q(_.u4.YtRendererstamperBehavior),_.p("design:type",Object)],Uy.prototype,"ytRendererstamperBehavior",void 0);_.L([_.x(),_.p("design:type",Object)],Uy.prototype,"data",void 0);_.L([_.U({disableElementRegistration:!0,is:"ytd-page-continuation"})],Uy);
_.D(Uy,"ytd-page-continuation",function(){if(AhV!==void 0)return AhV;var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-page-continuation--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="pages" class="style-scope ytd-page-continuation"></div>\n');a.content.insertBefore(_.w().content.cloneNode(!0),a.content.firstChild);return AhV=a},{mode:1});var snZ;var nrZ;var K2f;var Dn=function(){return _.G.apply(this,arguments)||this};
_.b(Dn,_.G);_.L([_.Q(_.k.YtRendererBehavior),_.p("design:type",Object)],Dn.prototype,"ytRendererBehavior",void 0);_.L([_.x(),_.p("design:type",Object)],Dn.prototype,"data",void 0);_.L([_.U({disableElementRegistration:!0,is:"ytd-watch-card-one-vs-one-event"})],Dn);
_.D(Dn,"ytd-watch-card-one-vs-one-event",function(){if(K2f!==void 0)return K2f;var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-watch-card-one-vs-one-event--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="team-row style-scope ytd-watch-card-one-vs-one-event">\n  <span class="style-scope ytd-watch-card-one-vs-one-event">[[getSimpleString(data.homeName)]]</span>\n  <span class="style-scope ytd-watch-card-one-vs-one-event">[[getSimpleString(data.homeParticipantResult)]]</span>\n</div>\n<div class="team-row style-scope ytd-watch-card-one-vs-one-event">\n  <span class="style-scope ytd-watch-card-one-vs-one-event">[[getSimpleString(data.awayName)]]</span>\n  <span class="style-scope ytd-watch-card-one-vs-one-event">[[getSimpleString(data.awayParticipantResult)]]</span>\n</div>\n<div class="main-event event-description style-scope ytd-watch-card-one-vs-one-event">[[getSimpleString(data.eventDescription)]]</div>\n<div class="event-description style-scope ytd-watch-card-one-vs-one-event">[[getSimpleString(data.additionalEventDescription)]]</div>\n');a.content.insertBefore(_.w().content.cloneNode(!0),
a.content.firstChild);return K2f=a},{mode:1});var R6=function(){return _.G.apply(this,arguments)||this};
_.b(R6,_.G);_.L([_.Q(_.k.YtRendererBehavior),_.p("design:type",Object)],R6.prototype,"ytRendererBehavior",void 0);_.L([_.x(),_.p("design:type",Object)],R6.prototype,"data",void 0);_.L([_.U({is:"ytd-watch-card-hero-one-vs-one-event-renderer",disableElementRegistration:!0})],R6);
_.D(R6,"ytd-watch-card-hero-one-vs-one-event-renderer",function(){if(nrZ!==void 0)return nrZ;var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-watch-card-hero-one-vs-one-event-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<a id="wc-endpoint" class="yt-simple-endpoint style-scope ytd-watch-card-hero-one-vs-one-event-renderer" href$="[[computeHref_(data.navigationEndpoint)]]" data="[[data.navigationEndpoint]]">\n<ytd-thumbnail data="[[data]]" disable-rounding="" width="386" class="style-scope ytd-watch-card-hero-one-vs-one-event-renderer"></ytd-thumbnail>\n\n<div id="bottom-fade" class="style-scope ytd-watch-card-hero-one-vs-one-event-renderer">\n  <ytd-watch-card-one-vs-one-event class="hero style-scope ytd-watch-card-hero-one-vs-one-event-renderer" data="[[data.oneVsOneEvent]]">\n  </ytd-watch-card-one-vs-one-event>\n</div>\n    </a>\n');a.content.insertBefore(_.w().content.cloneNode(!0),
a.content.firstChild);return nrZ=a},{mode:1});var F24;var Lk=function(){return _.G.apply(this,arguments)||this};
_.b(Lk,_.G);_.L([_.Q(_.k.YtRendererBehavior),_.p("design:type",Object)],Lk.prototype,"ytRendererBehavior",void 0);_.L([_.x(),_.p("design:type",Object)],Lk.prototype,"data",void 0);_.L([_.U({is:"ytd-banner-and-box-hero-image-renderer",disableElementRegistration:!0})],Lk);
_.D(Lk,"ytd-banner-and-box-hero-image-renderer",function(){if(F24!==void 0)return F24;var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-banner-and-box-hero-image-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-img-shadow id="banner" thumbnail="[[data.banner]]" width="386" class="style-scope ytd-banner-and-box-hero-image-renderer"></yt-img-shadow><svg id="bg" viewBox="0 0 1300 304" preserveAspectRatio="xMaxYMid slice" class="style-scope ytd-banner-and-box-hero-image-renderer"><path opacity="0.5" d="M 0,304 V 0 H 963 L 1439,304 Z" class="style-scope ytd-banner-and-box-hero-image-renderer"></path><path opacity="0.5" d="M 0,0 l 0,304 580,0 L 1055,0 0,0 Z" class="style-scope ytd-banner-and-box-hero-image-renderer"></path><path opacity="0.9" d="M 0,304 V 0 H 780 L 1247,304 Z" class="style-scope ytd-banner-and-box-hero-image-renderer"></path></svg><yt-img-shadow id="box" height="184" thumbnail="[[data.box]]" width="131" class="style-scope ytd-banner-and-box-hero-image-renderer"></yt-img-shadow>');a.content.insertBefore(_.w().content.cloneNode(!0),
a.content.firstChild);return F24=a},{mode:1});var Hze;var lB=function(){var a=_.G.apply(this,arguments)||this;a.modern=_.K("web_modern_buttons");return a};
_.b(lB,_.G);lB.prototype.computeIcon=function(){var a,z,I=(a=this.data)==null?void 0:(z=a.icon)==null?void 0:z.iconType;if(I)return _.Bl(I)};
lB.prototype.computeButtonShape=function(){var a;return{buttonText:_.cd((a=this.data)==null?void 0:a.label),iconPosition:"leading",style:"overlay",type:"filled",size:"M",state:"active"}};
_.eH.Object.defineProperties(lB.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"}}});
_.L([_.Q(_.k.YtRendererBehavior),_.p("design:type",Object)],lB.prototype,"ytRendererBehavior",void 0);_.L([_.x(),_.p("design:type",Object)],lB.prototype,"data",void 0);_.L([_.x({reflectToAttribute:!0}),_.p("design:type",Object)],lB.prototype,"modern",void 0);_.L([_.x({type:_.K("kevlar_property_type_migration_killswitch")?String:void 0,reflectToAttribute:!0}),_.S("data.style"),_.p("design:type",Object),_.p("design:paramtypes",[])],lB.prototype,"buttonColor",null);
_.L([_.U({is:"ytd-call-to-action-button-renderer",disableElementRegistration:!0})],lB);
_.D(lB,"ytd-call-to-action-button-renderer",function(){if(Hze!==void 0)return Hze;var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-call-to-action-button-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<tp-yt-paper-button id="overlay-button" hidden="[[modern]]" raised="" tabindex="-1" class="style-scope ytd-call-to-action-button-renderer">\n  <yt-icon id="overlay-icon" icon="[[data.icon.iconType]]" class="style-scope ytd-call-to-action-button-renderer"></yt-icon>\n  <span id="overlay-text" class="style-scope ytd-call-to-action-button-renderer">[[getSimpleString(data.label)]]</span>\n</tp-yt-paper-button>\n<yt-button-shape data="[[computeButtonShape(data)]]" disable-upgrade="[[!modern]]" hidden$="[[!modern]]" icon-name="[[computeIcon(data.icon.iconType)]]" class="style-scope ytd-call-to-action-button-renderer">\n</yt-button-shape>\n');a.content.insertBefore(_.w().content.cloneNode(!0),
a.content.firstChild);return Hze=a},{mode:1});var bzZ;var pk=function(){return _.G.apply(this,arguments)||this};
_.b(pk,_.G);pk.prototype.onLeftThumbnailChanged=function(){this.data&&this.data.leftThumbnail&&(_.PK(this.hostElement).querySelector("#section-left").style.backgroundImage="url("+_.r4(this.data.leftThumbnail.thumbnails,216)+")")};
pk.prototype.onLeftThumbnailChanged=pk.prototype.onLeftThumbnailChanged;_.L([_.Q(_.k.YtRendererBehavior),_.p("design:type",Object)],pk.prototype,"ytRendererBehavior",void 0);_.L([_.x(),_.p("design:type",Object)],pk.prototype,"data",void 0);_.L([_.O8("data.leftThumbnail"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],pk.prototype,"onLeftThumbnailChanged",null);_.L([_.U({is:"ytd-collage-hero-image-renderer",disableElementRegistration:!0})],pk);
_.D(pk,"ytd-collage-hero-image-renderer",function(){if(bzZ!==void 0)return bzZ;var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-collage-hero-image-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="collage" class="style-scope ytd-collage-hero-image-renderer"><div id="section-left" class="style-scope ytd-collage-hero-image-renderer"></div><div id="section-right" class="style-scope ytd-collage-hero-image-renderer"><yt-img-shadow id="top-right" height="105" thumbnail="[[data.topRightThumbnail]]" width="167" class="style-scope ytd-collage-hero-image-renderer"></yt-img-shadow><yt-img-shadow height="105" thumbnail="[[data.bottomRightThumbnail]]" width="167" class="style-scope ytd-collage-hero-image-renderer"></yt-img-shadow></div></div>');
a.content.insertBefore(_.w().content.cloneNode(!0),a.content.firstChild);return bzZ=a},{mode:1});var hDE;var wX=function(){return _.G.apply(this,arguments)||this};
_.b(wX,_.G);wX.prototype.computeStyle=function(a){return a};
_.L([_.Q(_.k.YtRendererBehavior),_.p("design:type",Object)],wX.prototype,"ytRendererBehavior",void 0);_.L([_.x(),_.p("design:type",Object)],wX.prototype,"data",void 0);_.L([_.x({reflectToAttribute:!0,computed:"computeStyle(data.style)"}),_.p("design:type",String)],wX.prototype,"componentStyle",void 0);_.L([_.U({is:"ytd-single-hero-image-renderer",disableElementRegistration:!0})],wX);
_.D(wX,"ytd-single-hero-image-renderer",function(){if(hDE!==void 0)return hDE;var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-single-hero-image-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-img-shadow id="image" thumbnail="[[data.thumbnail]]" width="386" class="style-scope ytd-single-hero-image-renderer"></yt-img-shadow>\n');a.content.insertBefore(_.w().content.cloneNode(!0),
a.content.firstChild);return hDE=a},{mode:1});var VmZ;var mT=function(){return _.G.apply(this,arguments)||this};
_.b(mT,_.G);_.Z=mT.prototype;
_.Z.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:_.K("defer_overlays")?0:void 0,waitForSignal:"eocs"}}};
_.Z.computeSubtitle=function(a){if(this.data){var z;if(this.data.upcomingEventData){a=_.cd(a.subtitle);var I=Number(this.data.upcomingEventData.startTime);isNaN(I)||(z=_.Mo(_.vn(a,I)))}else z=a.subtitle;return z}};
_.Z.onHeroTap=function(a){a.preventDefault();var z=this.data&&this.data.navigationEndpoint;!z||!_.qK(_.ch(a),this.hostElement,["YTD-CALL-TO-ACTION-BUTTON-RENDERER"])&&_.qK(_.ch(a),this.hostElement,["A".toString(),"BUTTON".toString()])||(_.K("kevlar_watchcard_hero_video_renderer_killswitch")?_.PA(this.hostElement,"yt-navigate",{navigationEndpoint:z}):this.ytComponentBehavior.resolveCommand(z))};
_.Z.computeHeroTabIndex=function(a){return a&&a.simpleText?-1:0};
_.Z.computeHeroRole=function(a){return a&&a.simpleText?"":"link"};
_.Z.computeIsReminderButtonPresent=function(a){return!(!a||!a.reminderButton)};
_.Z.computeHideBottomItems=function(a){return!(this.computeIsReminderButtonPresent(a)||a.subtitle)};
_.Z.dataChanged=function(){var a=this.get("data.buttons.buttonRenderer.serviceEndpoint"),z;((z=_.H(a==null?void 0:a.commandMetadata,_.$F))==null?0:z.fireAutomatically)&&this.ytComponentBehavior.resolveCommand(a)};
mT.prototype.dataChanged=mT.prototype.dataChanged;_.L([_.Q(_.Ms.YtComponentBehavior),_.p("design:type",Object)],mT.prototype,"ytComponentBehavior",void 0);_.L([_.Q(_.k.YtRendererBehavior),_.p("design:type",Object)],mT.prototype,"ytRendererBehavior",void 0);_.L([_.Q(_.u4.YtRendererstamperBehavior),_.p("design:type",Object)],mT.prototype,"ytRendererstamperBehavior",void 0);_.L([_.x(),_.p("design:type",Object)],mT.prototype,"data",void 0);
_.L([_.x({computed:"computeSubtitle(data)"}),_.p("design:type",String)],mT.prototype,"subtitle",void 0);_.L([_.x({computed:"computeIsReminderButtonPresent(data)",reflectToAttribute:!0}),_.p("design:type",Boolean)],mT.prototype,"isReminderButtonPresent",void 0);_.L([_.x({computed:"computeHideBottomItems(data)",reflectToAttribute:!0}),_.p("design:type",Boolean)],mT.prototype,"hideBottomItems",void 0);
_.L([_.O8("data"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],mT.prototype,"dataChanged",null);_.L([_.U({is:"ytd-watch-card-hero-video-renderer",disableElementRegistration:!0})],mT);
_.D(mT,"ytd-watch-card-hero-video-renderer",function(){if(VmZ!==void 0)return VmZ;var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-watch-card-hero-video-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="watch-card-endpoint" class="yt-simple-endpoint style-scope ytd-watch-card-hero-video-renderer" on-tap="onHeroTap" href$="[[computeHref_(data.navigationEndpoint)]]" data="[[data.navigationEndpoint]]" tabindex$="[[computeHeroTabIndex(data.title)]]" role$="[[computeHeroRole(data.title)]]">\n  <ytd-thumbnail data="[[data]]" disable-rounding="" hidden$="[[!data.thumbnail]]" width="386" class="style-scope ytd-watch-card-hero-video-renderer">\n  </ytd-thumbnail>\n  <div id="hero-image" class="style-scope ytd-watch-card-hero-video-renderer"></div>\n  <div class="title-container style-scope ytd-watch-card-hero-video-renderer" hidden="[[!data.title]]">\n    <div class="title-fade style-scope ytd-watch-card-hero-video-renderer">\n      <a id="watch-card-title" class="yt-simple-endpoint style-scope ytd-watch-card-hero-video-renderer" href$="[[computeHref_(data.navigationEndpoint)]]" data="[[data.navigationEndpoint]]">\n        <yt-formatted-string id="watch-card-title" text="[[data.title]]" class="style-scope ytd-watch-card-hero-video-renderer">\n        </yt-formatted-string>\n      </a>\n      <div id="bottom-items" hidden="[[hideBottomItems]]" class="style-scope ytd-watch-card-hero-video-renderer">\n        <ytd-badge-supported-renderer id="watch-card-badge" badges="[[data.badges]]" hidden="[[!data.badges]]" class="style-scope ytd-watch-card-hero-video-renderer">\n        </ytd-badge-supported-renderer>\n        <yt-formatted-string id="watch-card-subtitle" text="[[subtitle]]" class="style-scope ytd-watch-card-hero-video-renderer">\n        </yt-formatted-string>\n        <div id="reminder-button" class="style-scope ytd-watch-card-hero-video-renderer"></div>\n      </div>\n    </div>\n  </div>\n  <div id="call-to-action-button" class="style-scope ytd-watch-card-hero-video-renderer"></div>\n  <div id="overlays" class="style-scope ytd-watch-card-hero-video-renderer"></div>\n</div>\n');a.content.insertBefore(_.w().content.cloneNode(!0),
a.content.firstChild);return VmZ=a},{mode:1});var QnM;var yh=function(){return _.G.apply(this,arguments)||this};
_.b(yh,_.G);_.Z=yh.prototype;_.Z.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"}}}};
_.Z.computeTitleBadges=function(a){return a?[a]:[]};
_.Z.computeHeaderStyle=function(a){return a?a.replace("WATCH_CARD_RICH_HEADER_RENDERER_STYLE_","").toLowerCase():""};
_.Z.computeAvatarAriaLabel=function(a){if(a){var z,I,J,r;return(r=(z=a.avatar)==null?void 0:(I=z.accessibility)==null?void 0:(J=I.accessibilityData)==null?void 0:J.label)!=null?r:_.cd(a==null?void 0:a.title)}};
_.Z.computeAvatarHeight=function(a){return a==="WATCH_CARD_RICH_HEADER_RENDERER_STYLE_LEFT_AVATAR"?72:48};
_.Z.computeBadgeRowClass=function(a){return(a==null?0:a[0].metadataBadgeRenderer)?"layout-block":"layout-inline"};
_.L([_.Q(_.k.YtRendererBehavior),_.p("design:type",Object)],yh.prototype,"ytRendererBehavior",void 0);_.L([_.Q(_.u4.YtRendererstamperBehavior),_.p("design:type",Object)],yh.prototype,"ytRendererstamperBehavior",void 0);_.L([_.x(),_.p("design:type",Object)],yh.prototype,"data",void 0);_.L([_.x({computed:"computeTitleBadges(data.titleBadge)"}),_.p("design:type",Array)],yh.prototype,"titleBadges",void 0);
_.L([_.x({reflectToAttribute:!0,computed:"computeHeaderStyle(data.style)"}),_.p("design:type",String)],yh.prototype,"headerStyle",void 0);_.L([_.x({reflectToAttribute:!0,computed:"computeBadgeRowClass(data.badges)"}),_.p("design:type",String)],yh.prototype,"badgeRowClass",void 0);_.L([_.U({is:"ytd-watch-card-rich-header-renderer",disableElementRegistration:!0})],yh);
_.D(yh,"ytd-watch-card-rich-header-renderer",function(){if(QnM!==void 0)return QnM;var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-watch-card-rich-header-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="container" class="style-scope ytd-watch-card-rich-header-renderer">\n  <div id="body" class="style-scope ytd-watch-card-rich-header-renderer">\n    <a class="yt-simple-endpoint style-scope ytd-watch-card-rich-header-renderer" href$="[[computeHref_(data.titleNavigationEndpoint)]]" data="[[data.titleNavigationEndpoint]]">\n      <ytd-channel-name id="channel-name" badges="[[titleBadges]]" channel-name="[[data.title]]" tooltip-position="bottom" wrap-text="" class="style-scope ytd-watch-card-rich-header-renderer">\n      </ytd-channel-name>\n      <div id="badge-row" class$="[[badgeRowClass]] style-scope ytd-watch-card-rich-header-renderer">\n        <span id="watch-card-subtitle" class="style-scope ytd-watch-card-rich-header-renderer">\n          <yt-formatted-string respect-lang-dir="" text="[[data.subtitle]]" class="style-scope ytd-watch-card-rich-header-renderer"></yt-formatted-string>\n        </span>\n        <template is="dom-if" if="[[data.badges.0.metadataBadgeRenderer]]" class="style-scope ytd-watch-card-rich-header-renderer">\n          <ytd-badge-supported-renderer badges="[[data.badges]]" hidden="[[!data.badges]]" class="style-scope ytd-watch-card-rich-header-renderer">\n          </ytd-badge-supported-renderer>\n        </template>\n      </div>\n    </a>\n    \n    <div id="call-to-action-buttons" hidden="[[!data.callToActionButtons]]" class="style-scope ytd-watch-card-rich-header-renderer"></div>\n  </div>\n  <a id="avatar-endpoint" class="yt-simple-endpoint style-scope ytd-watch-card-rich-header-renderer" href$="[[computeHref_(data.titleNavigationEndpoint)]]" data="[[data.titleNavigationEndpoint]]" aria-label="[[computeAvatarAriaLabel(data)]]" hidden="[[!data.avatar]]">\n    <yt-img-shadow id="avatar" height="[[computeAvatarHeight(data.style)]]" thumbnail="[[data.avatar]]" class="style-scope ytd-watch-card-rich-header-renderer">\n    </yt-img-shadow>\n  </a>\n</div>\n');a.content.insertBefore(_.w().content.cloneNode(!0),
a.content.firstChild);return QnM=a},{mode:1});var SPi;var izz;var kU=function(){return _.G.apply(this,arguments)||this};
_.b(kU,_.G);kU.prototype.onMetadataTap=function(a){var z=this.data&&this.data.navigationEndpoint;z&&!_.qK(_.ch(a),this.hostElement,["A".toString()])&&_.PA(this.hostElement,"yt-navigate",{endpoint:z})};
_.eH.Object.defineProperties(kU.prototype,{isCondensed:{configurable:!0,enumerable:!0,get:function(){return this.data&&this.data.style?this.data.style==="WATCH_CARD_COMPACT_VIDEO_RENDERER_STYLE_CONDENSED":!1}},
subtitle:{configurable:!0,enumerable:!0,get:function(){if(this.data){var a;if(this.data.upcomingEventData){var z=_.cd(this.data.subtitle),I=Number(this.data.upcomingEventData.startTime);isNaN(I)||(a=_.Mo(_.vn(z,I)))}else a=this.data.subtitle;return a}}}});
_.L([_.Q(_.k.YtRendererBehavior),_.p("design:type",Object)],kU.prototype,"ytRendererBehavior",void 0);_.L([_.x(),_.p("design:type",Object)],kU.prototype,"data",void 0);_.L([_.x({reflectToAttribute:!0}),_.S("data.style"),_.p("design:type",Boolean),_.p("design:paramtypes",[])],kU.prototype,"isCondensed",null);_.L([_.x({reflectToAttribute:!0}),_.S("data"),_.p("design:type",Object),_.p("design:paramtypes",[])],kU.prototype,"subtitle",null);
_.L([_.U({is:"ytd-watch-card-compact-video-renderer",disableElementRegistration:!0})],kU);
_.D(kU,"ytd-watch-card-compact-video-renderer",function(){if(izz!==void 0)return izz;var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-watch-card-compact-video-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<template is="dom-if" if="[[!isCondensed]]" class="style-scope ytd-watch-card-compact-video-renderer">\n  <ytd-thumbnail data="[[data]]" width="120" class="style-scope ytd-watch-card-compact-video-renderer"></ytd-thumbnail>\n  <div class="text-wrapper style-scope ytd-watch-card-compact-video-renderer" on-click="onMetadataTap">\n    <div class="title-wrapper style-scope ytd-watch-card-compact-video-renderer">\n      <a class="yt-simple-endpoint style-scope ytd-watch-card-compact-video-renderer" href$="[[computeHref_(data.navigationEndpoint)]]" data="[[data.navigationEndpoint]]">\n        <yt-formatted-string class="title style-scope ytd-watch-card-compact-video-renderer" link-inherit-color="" text="[[data.title]]"></yt-formatted-string>\n      </a>\n    </div>\n    <yt-formatted-string class="byline style-scope ytd-watch-card-compact-video-renderer" hidden="[[!data.byline]]" link-inherit-color="" text="[[data.byline]]">\n    </yt-formatted-string>\n    <yt-formatted-string class="subtitle style-scope ytd-watch-card-compact-video-renderer" link-inherit-color="" text="[[subtitle]]"></yt-formatted-string>\n    <ytd-badge-supported-renderer badges="[[data.badges]]" hidden="[[!data.badges]]" class="style-scope ytd-watch-card-compact-video-renderer">\n    </ytd-badge-supported-renderer>\n  </div>\n</template>\n<template is="dom-if" if="[[isCondensed]]" class="style-scope ytd-watch-card-compact-video-renderer">\n  <a class="yt-simple-endpoint style-scope ytd-watch-card-compact-video-renderer" href$="[[computeHref_(data.navigationEndpoint)]]" data="[[data.navigationEndpoint]]">\n    <div class="metadata style-scope ytd-watch-card-compact-video-renderer">\n      <div class="text style-scope ytd-watch-card-compact-video-renderer">\n        <yt-formatted-string class="title style-scope ytd-watch-card-compact-video-renderer" link-inherit-color="" text="[[data.title]]"></yt-formatted-string>\n        <ytd-badge-supported-renderer badges="[[data.badges]]" hidden="[[!data.badges]]" class="style-scope ytd-watch-card-compact-video-renderer">\n        </ytd-badge-supported-renderer>\n        <yt-formatted-string class="subtitle style-scope ytd-watch-card-compact-video-renderer" text="[[subtitle]]"></yt-formatted-string>\n      </div>\n      <yt-formatted-string class="duration style-scope ytd-watch-card-compact-video-renderer" text="[[data.lengthText]]">\n      </yt-formatted-string>\n    </div>\n  </a>\n</template>\n');a.content.insertBefore(_.w().content.cloneNode(!0),
a.content.firstChild);return izz=a},{mode:1});var xNZ;var Mj=function(){return _.G.apply(this,arguments)||this};
_.b(Mj,_.G);_.L([_.Q(_.k.YtRendererBehavior),_.p("design:type",Object)],Mj.prototype,"ytRendererBehavior",void 0);_.L([_.x(),_.p("design:type",Object)],Mj.prototype,"data",void 0);_.L([_.U({is:"ytd-watch-card-one-vs-one-event-compact-video-renderer",disableElementRegistration:!0})],Mj);
_.D(Mj,"ytd-watch-card-one-vs-one-event-compact-video-renderer",function(){if(xNZ!==void 0)return xNZ;var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-watch-card-one-vs-one-event-compact-video-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<ytd-thumbnail data="[[data]]" width="120" class="style-scope ytd-watch-card-one-vs-one-event-compact-video-renderer"></ytd-thumbnail>\n<a class="yt-simple-endpoint metadata style-scope ytd-watch-card-one-vs-one-event-compact-video-renderer" data="[[data.navigationEndpoint]]" href$="[[computeHref_(data.navigationEndpoint)]]">\n  <ytd-watch-card-one-vs-one-event class="compact style-scope ytd-watch-card-one-vs-one-event-compact-video-renderer" data="[[data.oneVsOneEvent]]">\n  </ytd-watch-card-one-vs-one-event>\n</a>\n');a.content.insertBefore(_.w().content.cloneNode(!0),
a.content.firstChild);return xNZ=a},{mode:1});var c6=function(){return _.G.apply(this,arguments)||this};
_.b(c6,_.G);c6.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}}}}};
_.L([_.Q(_.u4.YtRendererstamperBehavior),_.p("design:type",Object)],c6.prototype,"ytRendererStamperBehavior",void 0);_.L([_.Q(_.k.YtRendererBehavior),_.p("design:type",Object)],c6.prototype,"ytRendererBehavior",void 0);_.L([_.x(),_.p("design:type",Object)],c6.prototype,"data",void 0);_.L([_.U({is:"ytd-vertical-watch-card-list-renderer",disableElementRegistration:!0})],c6);
_.D(c6,"ytd-vertical-watch-card-list-renderer",function(){if(SPi!==void 0)return SPi;var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-vertical-watch-card-list-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="items" class="style-scope ytd-vertical-watch-card-list-renderer">\n  \n</div>\n<a id="view-all-endpoint" class="yt-simple-endpoint style-scope ytd-vertical-watch-card-list-renderer" href$="[[computeHref_(data.viewAllEndpoint)]]" data="[[data.viewAllEndpoint]]" hidden="[[!data.viewAllEndpoint]]" disable-upgrade$="[[!data.viewAllEndpoint]]">\n    [[getSimpleString(data.viewAllText)]]\n</a>\n');
a.content.insertBefore(_.w().content.cloneNode(!0),a.content.firstChild);return SPi=a},{mode:1});var vrz;var YU=function(){var a=_.G.apply(this,arguments)||this;a.ariaExpanded="false";return a};
_.b(YU,_.G);_.Z=YU.prototype;_.Z.configureRendererStamper=function(){return{"data.lists":{id:"lists",mapping:{verticalWatchCardListRenderer:"ytd-vertical-watch-card-list-renderer"}}}};
_.Z.dataChanged=function(){var a;this.currentSeasonIndex=((a=this.data)==null?void 0:a.dropdownDefaultSelectedIndex)||0;this.lists.select(this.currentSeasonIndex);this.label=this.getUppercaseSimpleString(this.data.dropdownTitles[this.currentSeasonIndex])};
_.Z.computeEpisodesInfo=function(a,z,I){if(a!==void 0&&z.length===a.length)return a[I]};
_.Z.onSeasonSelect=function(){this.ytRendererBehavior.markDirty()};
_.Z.currentSeasonIndexChanged=function(){this.data&&this.data.dropdownTitles&&(this.label=this.getUppercaseSimpleString(this.data.dropdownTitles[this.currentSeasonIndex]))};
_.Z.onLabelClick=function(){this.hostElement.ariaExpanded="true"};
_.Z.onIronOverlayClosed=function(){this.hostElement.ariaExpanded="false"};
_.Z.getUppercaseSimpleString=function(a){return this.ytRendererBehavior.getSimpleString(a).toUpperCase()};
_.Z.updateCurrentSeasonIndexFromBinding=function(a){this.currentSeasonIndex=a.detail.value};
YU.prototype.onIronOverlayClosed=YU.prototype.onIronOverlayClosed;YU.prototype.currentSeasonIndexChanged=YU.prototype.currentSeasonIndexChanged;YU.prototype.dataChanged=YU.prototype.dataChanged;_.L([_.Q(_.k.YtRendererBehavior),_.p("design:type",Object)],YU.prototype,"ytRendererBehavior",void 0);_.L([_.Q(_.u4.YtRendererstamperBehavior),_.p("design:type",Object)],YU.prototype,"ytRendererstamperBehavior",void 0);_.L([_.x(),_.p("design:type",Object)],YU.prototype,"data",void 0);
_.L([_.x(),_.p("design:type",String)],YU.prototype,"label",void 0);_.L([_.x({value:0}),_.p("design:type",Number)],YU.prototype,"currentSeasonIndex",void 0);_.L([_.x({computed:"computeEpisodesInfo(data.dropdownSubtitles,data.dropdownTitles,currentSeasonIndex)"}),_.p("design:type",Object)],YU.prototype,"episodesInfo",void 0);_.L([_.x({value:"false"}),_.p("design:type",Object)],YU.prototype,"ariaExpanded",void 0);_.L([_.A3("#lists"),_.p("design:type",Object)],YU.prototype,"lists",void 0);
_.L([_.Fe("data"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],YU.prototype,"dataChanged",null);_.L([_.Fe("currentSeasonIndex"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],YU.prototype,"currentSeasonIndexChanged",null);_.L([_.gz("iron-overlay-closed"),_.p("design:type",Function),_.p("design:paramtypes",[Event]),_.p("design:returntype")],YU.prototype,"onIronOverlayClosed",null);
_.L([_.U({is:"ytd-watch-card-section-dropdown-renderer",disableElementRegistration:!0})],YU);
_.D(YU,"ytd-watch-card-section-dropdown-renderer",function(){if(vrz!==void 0)return vrz;var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-watch-card-section-dropdown-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="season-picker-container style-scope ytd-watch-card-section-dropdown-renderer">\n  <tp-yt-paper-menu-button id="input" dynamic-align="" horizontal-align="left" class="style-scope ytd-watch-card-section-dropdown-renderer">\n    <tp-yt-paper-button id="label" class="dropdown-trigger style-scope ytd-watch-card-section-dropdown-renderer" slot="dropdown-trigger" aria-expanded$="[[ariaExpanded]]" aria-label$="[[label]]" on-tap="onLabelClick">\n      <div id="label-text" class="style-scope ytd-watch-card-section-dropdown-renderer">[[label]]</div>\n      <yt-icon id="label-icon" icon="EXPAND" class="style-scope ytd-watch-card-section-dropdown-renderer">\n      </yt-icon>\n    </tp-yt-paper-button>\n    <tp-yt-paper-listbox id="seasons" class="dropdown-content style-scope ytd-watch-card-section-dropdown-renderer" slot="dropdown-content" selected="[[currentSeasonIndex]]" on-iron-select="onSeasonSelect" on-selected-changed="updateCurrentSeasonIndexFromBinding">\n      <template is="dom-repeat" items="[[data.dropdownTitles]]" class="style-scope ytd-watch-card-section-dropdown-renderer">\n        <tp-yt-paper-item aria-label$="[[item.accessibility.accessibilityData.label]]" class="style-scope ytd-watch-card-section-dropdown-renderer">\n          [[getUppercaseSimpleString(item)]]\n        </tp-yt-paper-item>\n      </template>\n    </tp-yt-paper-listbox>\n  </tp-yt-paper-menu-button>\n  <span id="spacer" class="style-scope ytd-watch-card-section-dropdown-renderer"></span>\n  <yt-formatted-string id="episodes" text="[[episodesInfo]]" class="style-scope ytd-watch-card-section-dropdown-renderer">\n  </yt-formatted-string>\n</div>\n<tp-yt-iron-pages id="lists" selected="[[currentSeasonIndex]]" on-selected-changed="updateCurrentSeasonIndexFromBinding" class="style-scope ytd-watch-card-section-dropdown-renderer">\n  \n</tp-yt-iron-pages>\n');a.content.insertBefore(_.w().content.cloneNode(!0),
a.content.firstChild);return vrz=a},{mode:1});var GAz;var qj=function(){var a=_.G.apply(this,arguments)||this;a.isSearch=!1;return a};
_.b(qj,_.G);qj.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}}}}};
_.L([_.Q(_.u4.YtRendererstamperBehavior),_.p("design:type",Object)],qj.prototype,"ytRendererstamperBehavior",void 0);_.L([_.Q(_.k.YtRendererBehavior),_.p("design:type",Object)],qj.prototype,"ytRendererBehavior",void 0);_.L([_.x(),_.p("design:type",Object)],qj.prototype,"data",void 0);_.L([_.x(),_.p("design:type",Object)],qj.prototype,"isSearch",void 0);_.L([_.U({is:"ytd-watch-card-section-sequence-renderer",disableElementRegistration:!0})],qj);
_.D(qj,"ytd-watch-card-section-sequence-renderer",function(){if(GAz!==void 0)return GAz;var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-watch-card-section-sequence-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="lists" class="style-scope ytd-watch-card-section-sequence-renderer">\n  \n</div>\n');a.content.insertBefore(_.w().content.cloneNode(!0),a.content.firstChild);
return GAz=a},{mode:1});var Ere=_.im({buttonViewModel:_.At});_.IG(BwZ);var $NV=_.ec(function(a){return _.B("ytd-button-banner-view-model",{class:"ytwYtdButtonBannerViewModelHost"},_.B(_.V0,{data:function(){return a.data().ctaButton}},{buttonViewModel:_.At}),_.B(_.xs,{text:function(){return a.data().subtext},
className:"ytwYtdButtonBannerViewModelSubtext"}))},"Vj"),Xj0=_.K("web_enable_sink_ytd_button_banner_view_model_ks")?BwZ:$NV,Tw0=_.K("web_enable_sink_ytd_button_banner_view_model_ks")?_.fS(BwZ):$NV;
$NV.idomCompat=!0;_.K("web_enable_sink_ytd_button_banner_view_model_ks")?_.EW(Xj0,"ytd-button-banner-view-model",{propNames:["data"]}):_.Jf(Tw0,"ytd-button-banner-view-model",{props:{data:_.zl}});var e7=function(){var a=_.G.apply(this,arguments)||this;a.isSearch=!1;return a};
_.b(e7,_.G);
e7.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"}}}};
_.L([_.Q(_.u4.YtRendererstamperBehavior),_.p("design:type",Object)],e7.prototype,"ytRendererstamperBehavior",void 0);_.L([_.Q(_.k.YtRendererBehavior),_.p("design:type",Object)],e7.prototype,"ytRendererBehavior",void 0);_.L([_.x(),_.p("design:type",Object)],e7.prototype,"data",void 0);_.L([_.x({reflectToAttribute:!0,value:!0}),_.p("design:type",Boolean)],e7.prototype,"rounded",void 0);_.L([_.x(),_.p("design:type",Object)],e7.prototype,"isSearch",void 0);
_.L([_.U({is:"ytd-universal-watch-card-renderer",disableElementRegistration:!0})],e7);
_.D(e7,"ytd-universal-watch-card-renderer",function(){if(snZ!==void 0)return snZ;var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-universal-watch-card-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-universal-watch-card-renderer"></div>\n<div id="hero" class="style-scope ytd-universal-watch-card-renderer"></div>\n<div id="action-buttons" hidden="[[!data.actionButtons]]" class="style-scope ytd-universal-watch-card-renderer"></div>\n<div id="sections" class="style-scope ytd-universal-watch-card-renderer"></div>\n<div id="footer" class="style-scope ytd-universal-watch-card-renderer"></div>\n');a.content.insertBefore(_.w().content.cloneNode(!0),
a.content.firstChild);return snZ=a},{mode:1});var dNM;_.Jf(_.ec(function(a){var z=a.data;var I;a=!((I=_.ab().resolve(_.eL(_.kN)))==null||!I());I={};return _.B("overview-message-view-model",{class:_.B8("ytwOverviewMessageViewModelHost",(I.ytwOverviewMessageViewModelDarkBackground=a,I.ytwOverviewMessageViewModelLightBackground=!a,I))},_.B(_.g,{cond:function(){return z().primaryImage},
then:function(J){return _.B(_.qp,{data:J,contentMode:"CONTENT_MODE_CENTER",alt:"",targetWidth:120,targetHeight:120,className:"ytwOverviewMessageViewModelMessageImage"})}}),_.B(_.g,{cond:function(){return z().primaryText},
then:function(){return _.B("div",{class:"ytwOverviewMessageViewModelPrimaryMessageText"},_.B(_.xs,{text:function(){return z().primaryText}}))}}),_.B(_.g,{cond:function(){return z().secondaryText},
then:function(){return _.B("div",{class:"ytwOverviewMessageViewModelSecondaryMessageText"},_.B(_.xs,{text:function(){return z().secondaryText}}))}}))},"Wj"),"overview-message-view-model",{props:{data:_.zl}});_.Jf(_.$Dj,"ytd-overview-answer-view-model",{props:{data:_.zl}});var aY=function(){return _.G.apply(this,arguments)||this};
_.b(aY,_.G);aY.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"}}}};
aY.prototype.configureContinuationPathMap=function(){return{"yt-reload-continuation-items-command-body":"contents"}};
_.L([_.Q(_.u4.YtRendererstamperBehavior),_.p("design:type",Object)],aY.prototype,"ytRendererstamperBehavior",void 0);_.L([_.Q(_.k.YtRendererBehavior),_.p("design:type",Object)],aY.prototype,"ytRendererBehavior",void 0);_.L([_.Q(_.M8),_.p("design:type",Object)],aY.prototype,"ytContinuationHandlerBehavior",void 0);_.L([_.x(),_.p("design:type",Object)],aY.prototype,"data",void 0);_.L([_.x({value:!1}),_.p("design:type",Boolean)],aY.prototype,"isSearch",void 0);
_.L([_.U({disableElementRegistration:!0,is:"ytd-secondary-search-container-renderer"})],aY);
_.D(aY,"ytd-secondary-search-container-renderer",function(){if(dNM!==void 0)return dNM;var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-secondary-search-container-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="contents" class="style-scope ytd-secondary-search-container-renderer"></div>\n');a.content.insertBefore(_.w().content.cloneNode(!0),a.content.firstChild);
return dNM=a},{mode:1});var W2G;var j2=function(){var a=_.G.apply(this,arguments)||this;a.renderSecondarySearchContainer=!1;a.isSearch=!1;return a};
_.b(j2,_.G);_.Z=j2.prototype;_.Z.configureRendererStamper=function(){return{"data.primaryContents":{id:"primary",mapping:{sectionListRenderer:{component:"ytd-section-list-renderer",properties:{isSearch:"[[isSearch]]"}}}},"data.continuations":{id:"continuations",mapping:{pageContinuationData:"ytd-page-continuation"}}}};
_.Z.created=function(){var a=this;this.boundStampSecondarySearchContainerIfFits=function(){a.stampSecondarySearchContainerIfFits()};
_.$S("REMAINING_DOVA_DEFERRED_CHUNKS",1)};
_.Z.computeIsSearchFrictionPage=function(a){var z,I,J,r,P;a=a==null?void 0:(z=a.primaryContents)==null?void 0:(I=z.sectionListRenderer)==null?void 0:(J=I.contents)==null?void 0:(r=J[0])==null?void 0:(P=r.itemSectionRenderer)==null?void 0:P.contents;if(!a)return!1;z=_.C(a);for(I=z.next();!I.done;I=z.next())if(J=void 0,(J=I.value)==null?0:J.searchFrictionViewModel)return!0;return!1};
_.Z.computeShowSecondaryColumn=function(a,z){return!!(z&&z.secondaryContents&&a)};
_.Z.activeChanged=function(){var a=this;this.active&&!this.renderSecondarySearchContainer?(window.addEventListener("resize",_.BK(this,this.debounceStampSecondarySearchContainerIfFits)),_.lK(function(){a.debounceStampSecondarySearchContainerIfFits()})):this.active||window.removeEventListener("resize",_.BK(this,this.debounceStampSecondarySearchContainerIfFits))};
_.Z.persistentGuideChanged=function(){this.active&&!this.renderSecondarySearchContainer&&this.debounceStampSecondarySearchContainerIfFits()};
_.Z.stampSecondarySearchContainerIfFits=function(){!this.renderSecondarySearchContainer&&window.innerWidth>=1090&&(this.renderSecondarySearchContainer=!0)};
_.Z.debounceStampSecondarySearchContainerIfFits=function(){_.pM(this,"stampSecondarySearchContainerIfFits",this.boundStampSecondarySearchContainerIfFits)};
_.Z.onRetrieveLocation=function(a,z){z.locationRetrieved(location.pathname+location.search+"&pbj=1",void 0);a.stopPropagation()};
_.Z.dataChanged=function(){this.active&&!this.renderSecondarySearchContainer&&this.debounceStampSecondarySearchContainerIfFits()};
j2.prototype.dataChanged=j2.prototype.dataChanged;j2.prototype.onRetrieveLocation=j2.prototype.onRetrieveLocation;j2.prototype.persistentGuideChanged=j2.prototype.persistentGuideChanged;j2.prototype.activeChanged=j2.prototype.activeChanged;_.L([_.Q(_.u4.YtRendererstamperBehavior),_.p("design:type",Object)],j2.prototype,"ytRendererstamperBehavior",void 0);_.L([_.Q(_.k.YtRendererBehavior),_.p("design:type",Object)],j2.prototype,"ytRendererBehavior",void 0);
_.L([_.Q(_.cZ.YtdGuideStateAwareBehavior),_.p("design:type",Object)],j2.prototype,"ytdGuideStateAwareBehavior",void 0);_.L([_.Q(_.Ts),_.p("design:type",Object)],j2.prototype,"ironResizableBehavior",void 0);_.L([_.x(),_.p("design:type",Boolean)],j2.prototype,"active",void 0);_.L([_.x(),_.p("design:type",Object)],j2.prototype,"data",void 0);_.L([_.x({reflectToAttribute:!0,value:function(){return _.K("enable_desktop_search_bigger_thumbs")}}),
_.p("design:type",Boolean)],j2.prototype,"useBiggerThumbs",void 0);_.L([_.x({reflectToAttribute:!0,value:function(){return _.rM("desktop_search_bigger_thumbs_style")}}),
_.p("design:type",String)],j2.prototype,"biggerThumbsStyle",void 0);_.L([_.x(),_.p("design:type",Object)],j2.prototype,"renderSecondarySearchContainer",void 0);_.L([_.x({computed:"computeShowSecondaryColumn(renderSecondarySearchContainer, data)"}),_.p("design:type",Boolean)],j2.prototype,"showSecondaryColumn",void 0);_.L([_.x({reflectToAttribute:!0,computed:"computeIsSearchFrictionPage(data)"}),_.p("design:type",Boolean)],j2.prototype,"isSearchFrictionPage",void 0);
_.L([_.x(),_.p("design:type",Object)],j2.prototype,"isSearch",void 0);_.L([_.O8("active"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],j2.prototype,"activeChanged",null);_.L([_.O8("guidePersistentAndVisible"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],j2.prototype,"persistentGuideChanged",null);
_.L([_.gz("yt-retrieve-location"),_.p("design:type",Function),_.p("design:paramtypes",[CustomEvent,Object]),_.p("design:returntype")],j2.prototype,"onRetrieveLocation",null);_.L([_.Fe("data"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],j2.prototype,"dataChanged",null);_.L([_.U({disableElementRegistration:!0,is:"ytd-two-column-search-results-renderer"})],j2);
_.D(j2,"ytd-two-column-search-results-renderer",function(){if(W2G!==void 0)return W2G;var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-two-column-search-results-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="primary" class="style-scope ytd-two-column-search-results-renderer">\n  <div id="continuations" class="style-scope ytd-two-column-search-results-renderer"></div>\n</div>\n<ytd-secondary-search-container-renderer id="secondary" data="[[data.secondaryContents.secondarySearchContainerRenderer]]" disable-upgrade$="[[!showSecondaryColumn]]" hidden="[[!showSecondaryColumn]]" is-search="[[isSearch]]" class="style-scope ytd-two-column-search-results-renderer">\n</ytd-secondary-search-container-renderer>\n');
a.content.insertBefore(_.w().content.cloneNode(!0),a.content.firstChild);return W2G=a},{mode:1});var z8=function(){var a=_.G.apply(this,arguments)||this;a.hasSearchHeader=!1;a.hasSecondaryContent=!1;a.hasBiggerThumbs=_.K("enable_desktop_search_bigger_thumbs");a.actionMap={"yt-show-search-contents-command":"onYtShowSearchContentsCommand"};return a};
_.b(z8,_.G);_.Z=z8.prototype;_.Z.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:_.q7(["aa","eocs"])}}};
_.Z.configureContinuationPathMap=function(){return{"yt-reload-continuation-items-command-body":"contents","yt-reload-continuation-items-command-header":"header"}};
_.Z.loadPage_=function(a){this.initCsi();a&&(this.data=a,_.$S("REFINEMENTS_TUPLE",["FromSearchResponse",a.refinements||[]]),this.ytRendererBehavior.parentComponent&&_.MV(this.ytRendererBehavior.parentComponent));this.updateTitle()};
_.Z.initCsi=function(){_.dk("results",["ol","cpt"])};
_.Z.updateTitle=function(){var a=_.US(window.location.href,"q");a||(a=_.US(window.location.href,"search_query"));_.PA(this.hostElement,"yt-update-title",a||"")};
_.Z.onYtShowSearchContentsCommand=function(){this.set("data.hideContents",!1)};
_.Z.dataChanged=function(){this.hasSearchHeader=this.computeHasSearchHeader(this.data);this.hasSecondaryContent=this.computeHasSecondaryContent(this.data);_.K("web_srp_data_changed_terminate_imp_killswitch")||_.ZF(this.hostElement,"yt-terminate-video-preview-action")};
_.Z.onReloadContinuationFinish=function(){this.hasSearchHeader=this.computeHasSearchHeader(this.data);this.hasSecondaryContent=this.computeHasSecondaryContent(this.data)};
_.Z.computeHasSearchHeader=function(a){var z;a=a==null?void 0:(z=a.header)==null?void 0:z.searchHeaderRenderer;return!!a&&(!!a.searchFilterButton||!!a.chipBar)};
_.Z.computeHasSecondaryContent=function(a){var z,I;return!!(a==null?0:(z=a.contents)==null?0:(I=z.twoColumnSearchResultsRenderer)==null?0:I.secondaryContents)};
_.eH.Object.defineProperties(z8,{template:{configurable:!0,enumerable:!0,get:function(){if(grZ===void 0){var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-search--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e\n<div id="container" class="style-scope ytd-search">\n  <div id="header" class="style-scope ytd-search"></div>\n  <ytd-two-column-search-results-renderer active="[[active]]" data="[[data.contents.twoColumnSearchResultsRenderer]]" hidden="[[data.hideContents]]" is-search="true" class="style-scope ytd-search">\n  </ytd-two-column-search-results-renderer>\n</div>\n<div id="survey" class="style-scope ytd-search"></div>\n');
a.content.insertBefore(_.w().content.cloneNode(!0),a.content.firstChild);grZ=a}a=grZ;return a}}});
z8.prototype.onReloadContinuationFinish=z8.prototype.onReloadContinuationFinish;z8.prototype.dataChanged=z8.prototype.dataChanged;_.L([_.Q(_.WR.YtPageBehavior),_.p("design:type",Object)],z8.prototype,"ytPageBehavior",void 0);_.L([_.Q(_.Hc.YtActionHandlerBehavior),_.p("design:type",Object)],z8.prototype,"actionHandlerBehavior",void 0);_.L([_.Q(_.k.YtRendererBehavior),_.p("design:type",Object)],z8.prototype,"ytRendererBehavior",void 0);
_.L([_.Q(_.u4.YtRendererstamperBehavior),_.p("design:type",Object)],z8.prototype,"ytRendererstamperBehavior",void 0);_.L([_.Q(_.M8),_.p("design:type",Object)],z8.prototype,"ytContinuationHandlerBehavior",void 0);_.L([_.x(),_.p("design:type",Object)],z8.prototype,"data",void 0);_.L([_.x({value:!0}),_.p("design:type",Boolean)],z8.prototype,"monitorScroll",void 0);_.L([_.x({reflectToAttribute:!0}),_.p("design:type",Object)],z8.prototype,"hasSearchHeader",void 0);
_.L([_.x({reflectToAttribute:!0}),_.p("design:type",Object)],z8.prototype,"hasSecondaryContent",void 0);_.L([_.x({reflectToAttribute:!0}),_.p("design:type",Object)],z8.prototype,"hasBiggerThumbs",void 0);_.L([_.Fe("data"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],z8.prototype,"dataChanged",null);
_.L([_.gz("yt-reload-continuation-finish"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],z8.prototype,"onReloadContinuationFinish",null);_.L([_.U({is:"ytd-search"})],z8);_.gr.registerService(_.M5O,z8);
_.xl();
}catch(e){_._DumpException(e)}
try{
_.iE("h8y2qb");
var V20=function(a){if(a=_.gC1(a)){var z;(z=a.sources)!=null&&z[0]?(z=_.fQ0(a),z=z<1?"VERTICAL":z>1?"HORIZONTAL":"SQUARE"):z=void 0;return z}},oz=function(a){_.h4.call(this,"upload");
this.opts.query=a},SI4=function(a,z){return _.B(QYi,{data:a,
onYtNavigate:z})},i7Z=function(a,z){return _.Bd(a.entities,"pageHeaderEntity",z)},vgG=function(a,z){return a.map(function(I){if(I.tabRenderer)return xwZ(I.tabRenderer);
if(I.expandableTabRenderer&&z){var J=I.expandableTabRenderer;return{customTabRenderable:function(){return z(J)}}}return{}})},xwZ=function(a){return{identifier:a.tabIdentifier,
aTagConfig:_.R0({innertubeCommand:a.endpoint,forceNewState:!0}),title:a.title,selected:a.selected,disabled:a.unselectable,icon:a.icon}},G8M=function(a){return _.rg({type:"SET_TAB_GESTURES_IS_ACTIVE",
payload:a})},$wV=function(a){if(!_.JE(document,"gtm-noscript")){var z=document.createElement("noscript");
z.id="gtm-noscript";z.textContent='<iframe src="https://www.googletagmanager.com/ns.html?id='+a+'" height="0" width="0" style="display:none;visibility:hidden"></iframe>';document.body.prepend(z)}};_.rL(oz,_.h4);oz.prototype.JSC$10031_setLabel=function(a){oz.superClass_.JSC$10031_setLabel.call(this,a);return this};
oz.prototype.addUploadMetadata=function(a,z){oz.superClass_.addUploadMetadata.call(this,a,z);return this};var XCz=function(a){if(a!=="youtubebanner"&&a!=="youtube-channel-banner")throw Error("po");oz.call(this,a)};
_.b(XCz,oz);XCz.prototype.JSC$10031_setLabel=function(a){oz.prototype.JSC$10031_setLabel.call(this,a);return this};
XCz.prototype.addUploadMetadata=function(a,z){oz.prototype.addUploadMetadata.call(this,a,z);return this};var TCE=[_.Ts,{listeners:{"app-reset-layout":"_appResetLayoutHandler","iron-resize":"resetLayout"},attached:function(){this.fire("app-reset-layout")},
_appResetLayoutHandler:function(a){_.Q$(a).path[0]!==this&&(this.resetLayout(),a.stopPropagation())},
_updateLayoutStates:function(){console.error("unimplemented")},
resetLayout:function(){var a=this._updateLayoutStates.bind(this);this._layoutDebouncer=_.EH(this._layoutDebouncer,_.iN,a);_.BG(this._layoutDebouncer);this._notifyDescendantResize()},
_notifyLayoutChanged:function(){var a=this;requestAnimationFrame(function(){a.fire("app-reset-layout")})},
_notifyDescendantResize:function(){this.isAttached&&this._interestedResizables.forEach(function(a){this.resizerShouldNotify(a)&&this._notifyDescendant(a)},this)}}];_._scrollEffects$$module$third_party$javascript$youtube_components$tp_yt_app_layout$tp_yt_helpers$tp_yt_helpers={};_._scrollTimer$$module$third_party$javascript$youtube_components$tp_yt_app_layout$tp_yt_helpers$tp_yt_helpers=null;var dwZ=[_.FYw,{properties:{effects:{type:String},effectsConfig:{type:Object,value:function(){return{}}},
disabled:{type:Boolean,reflectToAttribute:!0,value:!1},threshold:{type:Number,value:0},thresholdTriggered:{type:Boolean,notify:!0,readOnly:!0,reflectToAttribute:!0}},observers:["_effectsChanged(effects, effectsConfig, isAttached)"],_updateScrollState:function(){},
isOnScreen:function(){return!1},
isContentBelow:function(){return!1},
_effectsRunFn:null,_effects:null,get _clampedScrollTop(){return Math.max(0,this._scrollTop)},attached:function(){this._scrollStateChanged()},
detached:function(){this._tearDownEffects()},
createEffect:function(a,z){var I=_._scrollEffects$$module$third_party$javascript$youtube_components$tp_yt_app_layout$tp_yt_helpers$tp_yt_helpers[a];if(!I)throw new ReferenceError(this._getUndefinedMsg(a));a=this._boundEffect(I,z||{});a.setUp();return a},
_effectsChanged:function(a,z,I){this._tearDownEffects();a&&I&&(a.split(" ").forEach(function(J){var r;J!==""&&((r=_._scrollEffects$$module$third_party$javascript$youtube_components$tp_yt_app_layout$tp_yt_helpers$tp_yt_helpers[J])?this._effects.push(this._boundEffect(r,z[J])):console.warn(this._getUndefinedMsg(J)))},this),this._setUpEffect())},
_layoutIfDirty:function(){return this.offsetWidth},
_boundEffect:function(a,z){z=z||{};var I=parseFloat(z.startsAt||0),J=parseFloat(z.endsAt||1),r=J-I,P=function(){};
J=I===0&&J===1?a.run:function(N,u){a.run.call(this,Math.max(0,(N-I)/r),u)};
return{setUp:a.setUp?a.setUp.bind(this,z):P,run:a.run?J.bind(this):P,tearDown:a.tearDown?a.tearDown.bind(this):P}},
_setUpEffect:function(){this.isAttached&&this._effects&&(this._effectsRunFn=[],this._effects.forEach(function(a){a.setUp()!==!1&&this._effectsRunFn.push(a.run)},this))},
_tearDownEffects:function(){this._effects&&this._effects.forEach(function(a){a.tearDown()});
this._effectsRunFn=[];this._effects=[]},
_runEffects:function(a,z){this._effectsRunFn&&this._effectsRunFn.forEach(function(I){I(a,z)})},
_scrollHandler:function(){this._scrollStateChanged()},
_scrollStateChanged:function(){if(!this.disabled){var a=this._clampedScrollTop;this._updateScrollState(a);this.threshold>0&&this._setThresholdTriggered(a>=this.threshold)}},
_getDOMRef:function(a){console.warn("_getDOMRef","`"+a+"` is undefined")},
_getUndefinedMsg:function(a){return"Scroll effect `"+a+"` is undefined. Did you forget to import app-layout/app-scroll-effects/effects/"+a+".html ?"}}];if(_._scrollEffects$$module$third_party$javascript$youtube_components$tp_yt_app_layout$tp_yt_helpers$tp_yt_helpers["parallax-background"]!=null)throw Error("qo`parallax-background");
_._scrollEffects$$module$third_party$javascript$youtube_components$tp_yt_app_layout$tp_yt_helpers$tp_yt_helpers["parallax-background"]={setUp:function(a){var z={};a=parseFloat(a.scalar);z.background=this._getDOMRef("background");z.backgroundFrontLayer=this._getDOMRef("backgroundFrontLayer");z.backgroundRearLayer=this._getDOMRef("backgroundRearLayer");z.deltaBg=z.backgroundFrontLayer.offsetHeight-z.background.offsetHeight;z.deltaBg===0?(isNaN(a)&&(a=.8),z.deltaBg=(this._dHeight||0)*a):(isNaN(a)&&(a=
1),z.deltaBg*=a);this._fxParallaxBackground=z},
run:function(a){var z=this._fxParallaxBackground;this.transform("translate3d(0px, "+z.deltaBg*Math.min(1,a)+"px, 0px)",z.backgroundFrontLayer);z.backgroundRearLayer&&this.transform("translate3d(0px, "+z.deltaBg*Math.min(1,a)+"px, 0px)",z.backgroundRearLayer)},
tearDown:function(){delete this._fxParallaxBackground}};var WQE;var ogZ;var UwY=function(){};
_.Z=UwY.prototype;_.Z._scrollTargetChanged=function(){};
_.Z.scroll=function(){};
_.Z._isValidScrollTarget=function(){};
_.Z._toggleScrollListener=function(){};
_.Z.toggleScrollListener=function(){};
_.Z.createEffect=function(){};
_.Z._effectsChanged=function(){};
_.Z._layoutIfDirty=function(){};
_.Z._boundEffect=function(){};
_.Z._setUpEffect=function(){};
_.Z._tearDownEffects=function(){};
_.Z._runEffects=function(){};
_.Z._scrollHandler=function(){};
_.Z._scrollStateChanged=function(){};
_.Z._getUndefinedMsg=function(){};
_.Z.notifyResize=function(){};
_.Z.assignParentResizable=function(){};
_.Z.stopResizeNotificationsFor=function(){};
_.Z._subscribeIronResize=function(){};
_.Z._unsubscribeIronResize=function(){};
_.Z.resizerShouldNotify=function(){};
_.Z._onDescendantIronResize=function(){};
_.Z._fireResize=function(){};
_.Z._onIronRequestResizeNotifications=function(){};
_.Z._parentResizableChanged=function(){};
_.Z._notifyDescendant=function(){};
_.Z._requestResizeNotifications=function(){};
_.Z._findParent=function(){};
_.Z._appResetLayoutHandler=function(){};
_.Z.resetLayout=function(){};
_.Z._notifyLayoutChanged=function(){};
_.Z._notifyDescendantResize=function(){};
_.Z._setThresholdTriggered=function(){};
UwY=_.vK({_template:function(){if(ogZ!==void 0)return ogZ;var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:tp-yt-app-header--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,third_party.javascript.youtube_components.tp_yt_app_layout.tp_yt_app_header.tp.yt.app.header.css.js--\x3e<div id="contentContainer" class="style-scope tp-yt-app-header">\n  <slot id="slot" class="style-scope tp-yt-app-header"></slot>\n</div>\n');
a.content.insertBefore(_.w().content.cloneNode(!0),a.content.firstChild);var z=a.content,I=z.insertBefore;WQE===void 0&&(WQE=document.createElement("template"));var J=WQE;I.call(z,J.content.cloneNode(!0),a.content.firstChild);return ogZ=a},
is:"tp-yt-app-header",behaviors:[dwZ,TCE],properties:{condenses:{type:Boolean,value:!1},fixed:{type:Boolean,value:!1},reveals:{type:Boolean,value:!1},shadow:{type:Boolean,reflectToAttribute:!0,value:!1}},observers:["_configChanged(isAttached, condenses, fixed)"],_height:0,_dHeight:0,_stickyElTop:0,_stickyElRef:null,_top:0,_progress:0,_wasScrollingDown:!1,_initScrollTop:0,_initTimestamp:0,_lastTimestamp:0,_lastScrollTop:0,get _maxHeaderTop(){return this.fixed?this._dHeight:this._height+5},get _stickyEl(){if(this._stickyElRef)return this._stickyElRef;
for(var a=_.Q$(this.$.slot).getDistributedNodes(),z=0,I;I=a[z];z++)if(I.nodeType===Node.ELEMENT_NODE)if(I.hasAttribute("sticky")){this._stickyElRef=I;break}else this._stickyElRef||(this._stickyElRef=I);return this._stickyElRef},_configChanged:function(){this.resetLayout();this._notifyLayoutChanged()},
_updateLayoutStates:function(){if(this.offsetWidth!==0||this.offsetHeight!==0){var a=this._clampedScrollTop,z=this._height===0||a===0,I=this.disabled;this._height=this.offsetHeight;this._stickyElRef=null;this.disabled=!0;z||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();z?this._updateScrollState(a,!0):(this._updateScrollState(this._lastScrollTop,
!0),this._layoutIfDirty());this.disabled=I}},
_updateScrollState:function(a,z){if(this._height!==0){var I=0,J=this._top;var r=this._maxHeaderTop;var P=a-this._lastScrollTop,N=Math.abs(P),u=a>this._lastScrollTop,E=performance.now();this._mayMove()&&(I=this._clamp(this.reveals?J+P:a,0,r));a>=this._dHeight&&(I=this.condenses&&!this.fixed?Math.max(this._dHeight,I):I,this.style.transitionDuration="0ms");if(this.reveals&&!this.disabled&&N<100){if(E-this._initTimestamp>300||this._wasScrollingDown!==u)this._initScrollTop=a,this._initTimestamp=E;a>=r&&
(Math.abs(this._initScrollTop-a)>30||N>10?(u&&a>=r?I=r:!u&&a>=this._dHeight&&(I=this.condenses&&!this.fixed?this._dHeight:0),this.style.transitionDuration=this._clamp((I-J)/(P/(E-this._lastTimestamp)),0,300)+"ms"):I=this._top)}r=this._dHeight===0?a>0?1:0:I/this._dHeight;z||(this._lastScrollTop=a,this._top=I,this._wasScrollingDown=u,this._lastTimestamp=E);if(z||r!==this._progress||J!==I||a===0)this._progress=r,this._runEffects(r,I),this._transformHeader(I)}},
_mayMove:function(){return this.condenses||!this.fixed},
willCondense:function(){return this._dHeight>0&&this.condenses},
isOnScreen:function(){return this._height!==0&&this._top<this._height},
isContentBelow:function(){return this._top===0?this._clampedScrollTop>0:this._clampedScrollTop-this._maxHeaderTop>=0},
_transformHeader:function(a){this.translate3d(0,-a+"px",0);this._stickyEl&&this.translate3d(0,this.condenses&&a>=this._stickyElTop?Math.min(a,this._dHeight)-this._stickyElTop+"px":0,0,this._stickyEl)},
_clamp:function(a,z,I){return Math.min(I,Math.max(z,a))},
_ensureBgContainers:function(){this._bgContainer||(this._bgContainer=document.createElement("div"),this._bgContainer.id="background",this._bgRear=document.createElement("div"),this._bgRear.id="backgroundRearLayer",this._bgContainer.appendChild(this._bgRear),this._bgFront=document.createElement("div"),this._bgFront.id="backgroundFrontLayer",this._bgContainer.appendChild(this._bgFront),_.Q$(this.root).insertBefore(this._bgContainer,this.$.contentContainer))},
_getDOMRef:function(a){switch(a){case "backgroundFrontLayer":return this._ensureBgContainers(),this._bgFront;case "backgroundRearLayer":return this._ensureBgContainers(),this._bgRear;case "background":return this._ensureBgContainers(),this._bgContainer;case "mainTitle":return _.Q$(this).querySelector("[main-title]");case "condensedTitle":return _.Q$(this).querySelector("[condensed-title]")}return null},
getScrollState:function(){return{progress:this._progress,top:this._top}}});var Dwf;var R5V;_.vK({_template:function(){if(R5V!==void 0)return R5V;var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:tp-yt-app-header-layout--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,third_party.javascript.youtube_components.tp_yt_app_layout.tp_yt_app_header_layout.tp.yt.app.header.layout.css.js--\x3e<div id="wrapper" class="initializing style-scope tp-yt-app-header-layout">\n  <slot id="headerSlot" name="header" class="style-scope tp-yt-app-header-layout"></slot>\n\n  <div id="contentContainer" class="style-scope tp-yt-app-header-layout">\n    <slot class="style-scope tp-yt-app-header-layout"></slot>\n  </div>\n</div>\n');
a.content.insertBefore(_.w().content.cloneNode(!0),a.content.firstChild);var z=a.content,I=z.insertBefore;Dwf===void 0&&(Dwf=document.createElement("template"));var J=Dwf;I.call(z,J.content.cloneNode(!0),a.content.firstChild);return R5V=a},
is:"tp-yt-app-header-layout",behaviors:[TCE],properties:{hasScrollingRegion:{type:Boolean,value:!1,reflectToAttribute:!0}},observers:["resetLayout(isAttached, hasScrollingRegion)"],get header(){return _.Q$(this.$.headerSlot).getDistributedNodes()[0]},_updateLayoutStates:function(){var a=this.header;if(this.isAttached&&a){this.$.wrapper.classList.remove("initializing");a.scrollTarget=this.hasScrollingRegion?this.$.contentContainer:this.ownerDocument.documentElement;if(this.hasScrollingRegion)a.style.left=
"",a.style.right="";else{var z=this.getBoundingClientRect(),I=document.documentElement.clientWidth-z.right;a.style.left=z.left+"px";a.style.right=I+"px"}z=this.$.contentContainer.style;I=a.offsetHeight;a.fixed&&!a.condenses&&this.hasScrollingRegion?(z.marginTop=I+"px",z.paddingTop=""):(z.paddingTop=I+"px",z.marginTop="")}}});var LQZ=new _.jv("alertCommand");var lSe=new _.jv("manageLabsStateCommand");var pCY=new _.jv("inlineFormRenderer");var UK=new _.jv("playlistSidebarPrimaryInfoRenderer");var wCe=new _.jv("productDetailsThumbnailRenderer"),mwE=new _.jv("productDetailsVariantRenderer"),ym0=new _.jv("productDetailsVariantOptionRenderer"),k80=new _.jv("productDetailsOffersContainerRenderer"),M2z=new _.jv("productDetailsOfferRenderer");var cmY=new _.jv("shoppingFlaggingRenderer");var YIE=new _.jv("playlistBylineRenderer");var qIG=new _.jv("insertChannelTabCommand");var D6=function(){return _.nM.apply(this,arguments)||this};
_.b(D6,_.nM);_.Z=D6.prototype;_.Z.activeChanged=function(){if(this.active){var a=_.PK(this.hostElement).querySelector("#header");a&&_.PA(a,"iron-resize");window.addEventListener("scroll",_.BK(this,this.onScroll))}else window.removeEventListener("scroll",_.BK(this,this.onScroll)),_.PA(this.hostElement,"yt-request-panel-mode-change",{mode:"seamed"})};
_.Z.guideVisibleChanged=function(){var a=_.PK(this.hostElement).querySelector("#header");a&&_.PA(a,"iron-resize")};
_.Z.onScroll=function(){var a=this;_.pM(this,"onScroll",function(){var z=_.PK(a.hostElement).querySelector("#header");z&&z.polymerController&&(z=z.polymerController.getScrollState().progress===1?"standard":"seamed",_.PA(a.hostElement,"yt-request-panel-mode-change",{mode:z}))},10)};
_.Z.tabsChanged=function(){if(this.tabs){for(var a=null,z=0,I=this.tabs.length;z<I;++z){var J=this.tabs[z].tabRenderer;if(J&&J.selected){a=z;break}}this.selected=a}};
_.Z.onTabsActivate=function(a){_.PA(this.hostElement,"yt-navigate",{endpoint:this.tabs[a.detail.selected].tabRenderer.endpoint})};
D6.prototype.tabsChanged=D6.prototype.tabsChanged;D6.prototype.guideVisibleChanged=D6.prototype.guideVisibleChanged;D6.prototype.activeChanged=D6.prototype.activeChanged;_.L([_.Q(_.k.YtRendererBehavior),_.p("design:type",Object)],D6.prototype,"ytRendererBehavior",void 0);_.L([_.Q(_.cZ.YtdGuideStateAwareBehavior),_.p("design:type",Object)],D6.prototype,"ytdGuideStateAwareBehavior",void 0);_.L([_.x(),_.p("design:type",Array)],D6.prototype,"tabs",void 0);
_.L([_.x(),_.p("design:type",Object)],D6.prototype,"selected",void 0);_.L([_.x(),_.p("design:type",Boolean)],D6.prototype,"active",void 0);_.L([_.x({reflectToAttribute:!0}),_.p("design:type",Boolean)],D6.prototype,"disableHeaderFluidWidth",void 0);_.L([_.O8("active"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],D6.prototype,"activeChanged",null);
_.L([_.O8("guidePersistentAndVisible"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],D6.prototype,"guideVisibleChanged",null);_.L([_.O8("tabs"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],D6.prototype,"tabsChanged",null);_.L([_.KM()],D6);var e5Z=[_.k.YtRendererBehavior,_.cZ.YtdGuideStateAwareBehavior,D6.prototype];var a$0=2/3,jBe=_.uq(130749),zmE=function(a,z){var I=this;this.element=a;this.layer=0;this.refreshConfig={startPosition:0,startAction:function(){I.startAction()},
draggingClass:"gesture-dragging",triggers:{down:{endPosition:80,threshold:120,disableFinish:!0,translateBack:!0,moveRatio:a$0,moveAction:function(J){I.moveAction(J)},
triggerAction:function(){I.element.isReloading=!0;_.pS(_.Kw(),{visualElement:jBe});_.Og.instance.resolveCommand({signalAction:{signal:"SOFT_RELOAD_PAGE"}},{form:{element:I.element}})}}}};
_.sR(_.Kw(),jBe,this.layer);this.gesture=new _.gk(a,z,this.refreshConfig,"pan-down");this.attach()};
_.Z=zmE.prototype;_.Z.attach=function(){this.gesture.attach()};
_.Z.detach=function(){this.gesture.detach()};
_.Z.reset=function(){this.element.close()};
_.Z.startAction=function(){this.element.reset();this.element.isReloading=!1};
_.Z.moveAction=function(a){this.element.rotation=a*360};var I$G=_.uq(130750),Rz=function(a,z,I,J,r){var P=this;this.element=a;this.parent=I;this.channelHeader=J;this.ytdReduxDispatch=r;this.layer=0;this.scrollPositionNeedsUpdate=!1;this.scrollPositionForTabs=new Map;this.tabConfig={startPosition:0,draggingClass:"gesture-tab-dragging",startAction:function(){P.tabsStartAtInPx=P.channelHeader.clientHeight-48;var N;(N=P.selectedTab)!=null&&N.title&&(N=_.ab().resolve(_.eL(_.aK)))&&(N=N.getCurrentPage(),P.lastVisitedTabScrollPosition=N.getScrollTop(),P.previousTab&&
((P.lastVisitedTabScrollPosition===void 0?0:P.lastVisitedTabScrollPosition<P.channelHeader.clientHeight-48)?P.scrollPositionForTabs.has(P.selectedTab.title)&&P.scrollPositionForTabs.delete(P.selectedTab.title):P.scrollPositionForTabs.set(P.selectedTab.title,N.getScrollTop())))},
triggers:{right:{endPosition:500,threshold:100,transitionEndPosition:Jw0(),triggerAction:function(){P.navigate(P.previousTab)},
moveAction:function(N,u){P.moveAction(N,u)}},
left:{endPosition:-500,threshold:-100,transitionEndPosition:-Jw0(),triggerAction:function(){P.navigate(P.nextTab)},
moveAction:function(N,u){P.moveAction(N,u)}}}};
_.sR(_.Kw(),I$G,this.layer);this.gesture=new _.gk(a,z,this.tabConfig);this.attach()};
Rz.prototype.attach=function(){this.gesture.attach()};
Rz.prototype.detach=function(){this.gesture.detach()};
Rz.prototype.tabsChanged=function(a){if(a){var z=void 0;this.nextTab=this.previousTab=this.selectedTab=void 0;a=_.C(a);for(var I=a.next();!I.done;I=a.next()){I=I.value.tabRenderer;this.selectedTab&&!this.nextTab&&(this.nextTab=I);var J=void 0;if((J=I)==null?0:J.selected)this.previousTab=z,this.selectedTab=I;z=I}z=this.gesture;a=this.previousTab?this.nextTab?this.tabConfig:Object.assign({},this.tabConfig,{triggers:{right:this.tabConfig.triggers.right}}):Object.assign({},this.tabConfig,{triggers:{left:this.tabConfig.triggers.left}});
z.config=a;this.scrollPositionNeedsUpdate=!0}};
Rz.prototype.moveAction=function(a,z){if(!this.tabsElement){var I;this.tabsElement=(I=this.parent.header)==null?void 0:I.tabsElement;z==="right"&&this.previousTab?_.J5J(_.ir.instance,this.previousTab.endpoint,{},""):z==="left"&&this.nextTab&&_.J5J(_.ir.instance,this.nextTab.endpoint,{},"");if(!this.tabsElement)return}I=this.tabsElement._pos;z==="right"&&(a*=-1);this.tabsElement._positionBar(I.width,I.left*1+I.width*a)};
var Jw0=function(){var a,z;return(z=(a=_.ab().resolve(_.aK).getCurrentPage())==null?void 0:a.clientWidth)!=null?z:0};
Rz.prototype.navigate=function(a){this.element.data=void 0;if(a=a==null?void 0:a.endpoint)this.ytdReduxDispatch(G8M(!0)),_.pS(_.Kw(),{visualElement:I$G}),_.Og.instance.resolveCommand({navigateAction:{endpoint:a}},{form:{element:this.element}})};var rwZ;var PRY;var LD=function(){return _.G.apply(this,arguments)||this};
_.b(LD,_.G);LD.prototype.configureRendererStamper=function(){return{"data.deleteButton":{id:"delete-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{alignByText:!0}}}}}};
_.L([_.Q(_.k.YtRendererBehavior),_.p("design:type",Object)],LD.prototype,"ytRendererBehavior",void 0);_.L([_.Q(_.u4.YtRendererstamperBehavior),_.p("design:type",Object)],LD.prototype,"ytRendererstamperBehavior",void 0);_.L([_.x(),_.p("design:type",Object)],LD.prototype,"data",void 0);_.L([_.U({is:"ytd-labs-edit-renderer",disableElementRegistration:!0})],LD);
_.D(LD,"ytd-labs-edit-renderer",function(){if(PRY!==void 0)return PRY;var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-labs-edit-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="contents" class="style-scope ytd-labs-edit-renderer">\n  <h2 id="title" class="style-scope ytd-labs-edit-renderer">[[getSimpleString(data.title)]]</h2>\n  <div id="delete-button" class="style-scope ytd-labs-edit-renderer"></div>\n</div>\n');a.content.insertBefore(_.w().content.cloneNode(!0),
a.content.firstChild);return PRY=a},{mode:1});var ZbM;var lL=function(){var a=_.G.apply(this,arguments)||this;a.dark=!1;a.headerBackgroundLight="https://www.gstatic.com/youtube/img/labs/early_access_web_background_expanded_ai_2x.jpg";a.headerBackgroundDark="https://www.gstatic.com/youtube/img/labs/early_access_web_background_expanded_ai_2x.jpg";a.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return a};
_.b(lL,_.G);lL.prototype.configureRendererStamper=function(){return{"data.primaryButton":{id:"primary-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
lL.prototype.ready=function(){var a=document.documentElement.hasAttribute("dark");this.setBackgroundImage(a);this.dark=a};
lL.prototype.onDarkModeToggledAction=function(a){this.setBackgroundImage(a);this.dark=a};
lL.prototype.setBackgroundImage=function(a){_.uK(this.hostElement,{"--yt-labs-header-background":"url("+(a?this.headerBackgroundDark:this.headerBackgroundLight)+")"})};
_.L([_.Q(_.k.YtRendererBehavior),_.p("design:type",Object)],lL.prototype,"ytRendererBehavior",void 0);_.L([_.Q(_.u4.YtRendererstamperBehavior),_.p("design:type",Object)],lL.prototype,"ytRendererstamperBehavior",void 0);_.L([_.Q(_.Hc.YtActionHandlerBehavior),_.p("design:type",Object)],lL.prototype,"ytActionHandlerBehavior",void 0);_.L([_.x(),_.p("design:type",Object)],lL.prototype,"data",void 0);_.L([_.x({reflectToAttribute:!0}),_.p("design:type",Object)],lL.prototype,"dark",void 0);
_.L([_.U({is:"ytd-labs-header-renderer",disableElementRegistration:!0})],lL);
_.D(lL,"ytd-labs-header-renderer",function(){if(ZbM!==void 0)return ZbM;var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-labs-header-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="wrapper" class="style-scope ytd-labs-header-renderer">\n  <div id="contents" class="style-scope ytd-labs-header-renderer">\n    <div id="metadata" class="style-scope ytd-labs-header-renderer">\n      <ytd-badge-supported-renderer hidden="[[!data.badge]]" top-standalone-badge="[[data.badge]]" class="style-scope ytd-labs-header-renderer">\n      </ytd-badge-supported-renderer>\n      <h3 id="title" class="style-scope ytd-labs-header-renderer">[[getSimpleString(data.title)]]</h3>\n      <yt-formatted-string id="text" split-lines="" text="[[data.text]]" class="style-scope ytd-labs-header-renderer"></yt-formatted-string>\n      <div id="primary-button" class="style-scope ytd-labs-header-renderer"></div>\n    </div>\n  </div>\n</div>\n');a.content.insertBefore(_.w().content.cloneNode(!0),
a.content.firstChild);return ZbM=a},{mode:1});var CRe;var pD=function(){var a=_.G.apply(this,arguments)||this;a.actionMap={"yt-check-labs-opted-in-state":"onCheckLabsOptedInState","yt-manage-labs-state-command":"onManageLabsState"};return a};
_.b(pD,_.G);pD.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"}}}}}};
pD.prototype.onYtToggleButton=function(a){this.notifyPath("data.primaryButton.toggleButtonRenderer.isToggled",a.detail.toggled)};
pD.prototype.onManageLabsState=function(a){if(a=_.H(a,lSe))a.stateChange==="LABS_STATE_TYPE_OVERRIDE_OPT_IN"&&this.data?a.labsItemId!==this.data.labsItemId?this.set("data.primaryButton.toggleButtonRenderer.isToggled",!1):this.set("data.primaryButton.toggleButtonRenderer.isToggled",!0):this.data&&a.labsItemId===this.data.labsItemId&&(a.stateChange==="LABS_STATE_TYPE_OPT_IN"?_.ZF(this.hostElement,"yt-check-labs-opted-in-state").some(function(z){return z})&&this.data.confirmationDialogCommand?_.tR(this.hostElement,
[this.data.confirmationDialogCommand],this.hostElement):this.data.optInCommand&&(_.ab().resolve(_.j6).resolveCommand(this.data.optInCommand,{form:{element:this.hostElement}}),this.set("data.primaryButton.toggleButtonRenderer.isToggled",!0)):this.data.optOutCommand&&a.stateChange==="LABS_STATE_TYPE_OPT_OUT"&&(_.ab().resolve(_.j6).resolveCommand(this.data.optOutCommand,{form:{element:this.hostElement}}),this.set("data.primaryButton.toggleButtonRenderer.isToggled",!1)))};
pD.prototype.onCheckLabsOptedInState=function(){var a=this.get("data.primaryButton.toggleButtonRenderer");return a?a.isToggled:!1};
_.eH.Object.defineProperties(pD.prototype,{itemStyle:{configurable:!0,enumerable:!0,get:function(){return this.data&&this.data.itemStyle}}});
pD.prototype.onYtToggleButton=pD.prototype.onYtToggleButton;_.L([_.Q(_.k.YtRendererBehavior),_.p("design:type",Object)],pD.prototype,"ytRendererBehavior",void 0);_.L([_.Q(_.u4.YtRendererstamperBehavior),_.p("design:type",Object)],pD.prototype,"ytRendererstamperBehavior",void 0);_.L([_.Q(_.Hc.YtActionHandlerBehavior),_.p("design:type",Object)],pD.prototype,"ytActionHandlerBehavior",void 0);_.L([_.x(),_.p("design:type",Object)],pD.prototype,"data",void 0);
_.L([_.x({reflectToAttribute:!0}),_.S("data"),_.p("design:type",Object),_.p("design:paramtypes",[])],pD.prototype,"itemStyle",null);_.L([_.gz("yt-toggle-button"),_.p("design:type",Function),_.p("design:paramtypes",[CustomEvent]),_.p("design:returntype")],pD.prototype,"onYtToggleButton",null);_.L([_.U({is:"ytd-labs-item-renderer",disableElementRegistration:!0})],pD);
_.D(pD,"ytd-labs-item-renderer",function(){if(CRe!==void 0)return CRe;var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-labs-item-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="contents" class="style-scope ytd-labs-item-renderer">\n  <div id="metadata" class="style-scope ytd-labs-item-renderer">\n    <div id="badge" hidden="[[!data.badgeTitle]]" class="style-scope ytd-labs-item-renderer">[[getSimpleString(data.badgeTitle)]]</div>\n    <h2 id="title" class="style-scope ytd-labs-item-renderer">[[getSimpleString(data.title)]]</h2>\n    <div id="expiration-date" class="style-scope ytd-labs-item-renderer">[[getSimpleString(data.expirationDate)]]</div>\n    <yt-formatted-string id="availability-text" hidden="[[data.primaryButton.toggleButtonRenderer.isToggled]]" text="[[data.experimentalInfo.availabilityText]]" class="style-scope ytd-labs-item-renderer"></yt-formatted-string>\n    <yt-formatted-string id="text" split-lines="" text="[[data.text]]" class="style-scope ytd-labs-item-renderer"></yt-formatted-string>\n    <yt-formatted-string id="disclaimer-text" split-lines="" text="[[data.experimentalInfo.disclaimerText]]" class="style-scope ytd-labs-item-renderer"></yt-formatted-string>\n    <div id="buttons" class="style-scope ytd-labs-item-renderer">\n      <div id="primary-button" class="style-scope ytd-labs-item-renderer"></div>\n      <div id="feedback-button" hidden="[[!data.primaryButton.toggleButtonRenderer.isToggled]]" class="style-scope ytd-labs-item-renderer">\n      </div>\n    </div>\n    <yt-formatted-string id="no-availability-text" text="[[data.experimentalInfo.noAvailabilityText]]" class="style-scope ytd-labs-item-renderer"></yt-formatted-string>\n  </div>\n  <yt-img-shadow id="promo-image" hidden="[[data.experimentalLabelText]]" thumbnail="[[data.promoImage]]" width="395" class="style-scope ytd-labs-item-renderer">\n  </yt-img-shadow>\n  <div id="experimental-img" hidden="[[!data.experimentalLabelText]]" width="395" class="style-scope ytd-labs-item-renderer">\n    <yt-img-shadow id="promo-image" thumbnail="[[data.promoImage]]" width="395" class="style-scope ytd-labs-item-renderer">\n    </yt-img-shadow>\n    <yt-formatted-string id="experimental-label" text="[[data.experimentalLabelText]]" class="style-scope ytd-labs-item-renderer"></yt-formatted-string>\n  </div>\n</div>\n');a.content.insertBefore(_.w().content.cloneNode(!0),
a.content.firstChild);return CRe=a},{mode:1});var NpV;var tCM;var wk=function(){return _.G.apply(this,arguments)||this};
_.b(wk,_.G);_.L([_.Q(_.k.YtRendererBehavior),_.p("design:type",Object)],wk.prototype,"ytRendererBehavior",void 0);_.L([_.x(),_.p("design:type",Object)],wk.prototype,"data",void 0);_.L([_.U({is:"ytd-live-chat-history-new-sponsor-chip-renderer",disableElementRegistration:!0})],wk);
_.D(wk,"ytd-live-chat-history-new-sponsor-chip-renderer",function(){if(tCM!==void 0)return tCM;var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-live-chat-history-new-sponsor-chip-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-formatted-string text="[[data.newSponsorMessage]]" class="style-scope ytd-live-chat-history-new-sponsor-chip-renderer"></yt-formatted-string>\n');a.content.insertBefore(_.w().content.cloneNode(!0),
a.content.firstChild);return tCM=a},{mode:1});var uVE;var mR=function(){return _.G.apply(this,arguments)||this};
_.b(mR,_.G);mR.prototype.observeSuperchatChip=function(){if(this.data){var a={"--yt-live-chat-history-super-chat-chip-renderer-background-color":this.colorFromDecimal(this.data.backgroundColor),"--yt-live-chat-history-super-chat-chip-renderer-text-color":this.colorFromDecimal(this.data.textColor)};_.uK(this.hostElement,a)}};
mR.prototype.colorFromDecimal=function(a){return _.RX(Number(a||0))};
mR.prototype.observeSuperchatChip=mR.prototype.observeSuperchatChip;_.L([_.Q(_.k.YtRendererBehavior),_.p("design:type",Object)],mR.prototype,"ytRendererBehavior",void 0);_.L([_.x(),_.p("design:type",Object)],mR.prototype,"data",void 0);_.L([_.O8("data"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],mR.prototype,"observeSuperchatChip",null);_.L([_.U({is:"ytd-live-chat-history-super-chat-chip-renderer",disableElementRegistration:!0})],mR);
_.D(mR,"ytd-live-chat-history-super-chat-chip-renderer",function(){if(uVE!==void 0)return uVE;var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-live-chat-history-super-chat-chip-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-formatted-string text="[[data.purchaseAmountText]]" class="style-scope ytd-live-chat-history-super-chat-chip-renderer"></yt-formatted-string>\n');
a.content.insertBefore(_.w().content.cloneNode(!0),a.content.firstChild);return uVE=a},{mode:1});var yY=function(){return _.G.apply(this,arguments)||this};
_.b(yY,_.G);yY.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"}}}};
_.eH.Object.defineProperties(yY.prototype,{hideMessageBlock:{configurable:!0,enumerable:!0,get:function(){return!!this.data&&!this.data.charityName&&!!this.data.chip}}});
_.L([_.Q(_.k.YtRendererBehavior),_.p("design:type",Object)],yY.prototype,"ytRendererBehavior",void 0);_.L([_.Q(_.u4.YtRendererstamperBehavior),_.p("design:type",Object)],yY.prototype,"ytRendererstamperBehavior",void 0);_.L([_.Q(_.mD),_.p("design:type",Object)],yY.prototype,"ytdDismissibleItemBehavior",void 0);_.L([_.x(),_.p("design:type",Object)],yY.prototype,"data",void 0);_.L([_.S("data"),_.p("design:type",Boolean),_.p("design:paramtypes",[])],yY.prototype,"hideMessageBlock",null);
_.L([_.U({is:"ytd-live-chat-history-entry-renderer",disableElementRegistration:!0})],yY);
_.D(yY,"ytd-live-chat-history-entry-renderer",function(){if(NpV!==void 0)return NpV;var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-live-chat-history-entry-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="content" class="style-scope ytd-live-chat-history-entry-renderer">\n  <div id="text" class="style-scope ytd-live-chat-history-entry-renderer">\n    <yt-formatted-string id="title" link-inherit-color="" text="[[data.videoTitle]]" class="style-scope ytd-live-chat-history-entry-renderer"></yt-formatted-string>\n    <div id="chip-container" class="style-scope ytd-live-chat-history-entry-renderer">\n      <div id="superchat-container" hidden="[[!data.chip]]" class="style-scope ytd-live-chat-history-entry-renderer">\n        <span id="chips" class="style-scope ytd-live-chat-history-entry-renderer"></span>\n        <yt-formatted-string id="charity-name" text="[[data.charityName]]" class="style-scope ytd-live-chat-history-entry-renderer">\n        </yt-formatted-string>\n        <yt-formatted-string id="sc4g-message" hidden="[[data.charityName]]" text="[[data.message]]" class="style-scope ytd-live-chat-history-entry-renderer">\n        </yt-formatted-string>\n      </div>\n      <yt-formatted-string id="message" hidden="[[hideMessageBlock]]" text="[[data.message]]" class="style-scope ytd-live-chat-history-entry-renderer">\n      </yt-formatted-string>\n    </div>\n    <div id="sticker" class="style-scope ytd-live-chat-history-entry-renderer">\n      <yt-img-shadow height="64" hidden="[[!data.stickerThumbnail]]" thumbnail="[[data.stickerThumbnail]]" width="64" class="style-scope ytd-live-chat-history-entry-renderer">\n      </yt-img-shadow>\n    </div>\n    <span id="timestamp" class="style-scope ytd-live-chat-history-entry-renderer">[[getSimpleString(data.timestamp)]]</span>\n  </div>\n  <div id="delete-button" class="style-scope ytd-live-chat-history-entry-renderer"></div>\n</div>\n');a.content.insertBefore(_.w().content.cloneNode(!0),
a.content.firstChild);return NpV=a},{mode:1});var EfG;var kW=function(){return _.G.apply(this,arguments)||this};
_.b(kW,_.G);_.L([_.Q(_.k.YtRendererBehavior),_.p("design:type",Object)],kW.prototype,"ytRendererBehavior",void 0);_.L([_.x(),_.p("design:type",Object)],kW.prototype,"data",void 0);_.L([_.U({is:"ytd-channel-options-renderer",disableElementRegistration:!0})],kW);
_.D(kW,"ytd-channel-options-renderer",function(){if(EfG!==void 0)return EfG;var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-channel-options-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="channel-info" hidden="[[!data.name]]" class="style-scope ytd-channel-options-renderer">\n  <a class="yt-simple-endpoint style-scope ytd-channel-options-renderer" href$="[[computeHref_(data.avatarEndpoint)]]" data="[[data.avatarEndpoint]]" aria-label$="[[data.avatarAccessibility.accessibilityData.label]]">\n    <yt-img-shadow height="50" thumbnail="[[data.avatar]]" width="50" class="style-scope ytd-channel-options-renderer">\n    </yt-img-shadow>\n  </a>\n  <div id="channel-info-text" class="style-scope ytd-channel-options-renderer">\n    <div id="name" class="style-scope ytd-channel-options-renderer">[[data.name]]</div>\n  </div>\n</div>\n<template is="dom-repeat" items="[[data.links]]" class="style-scope ytd-channel-options-renderer">\n  <yt-formatted-string class="link style-scope ytd-channel-options-renderer" force-default-style="" split-lines="" text="[[item]]">\n  </yt-formatted-string>\n</template>\n');a.content.insertBefore(_.w().content.cloneNode(!0),
a.content.firstChild);return EfG=a},{mode:1});var BpZ;var MD=function(){return _.G.apply(this,arguments)||this};
_.b(MD,_.G);MD.prototype.configureRendererStamper=function(){return{"data.resumeButton":{id:"resume-button",mapping:{buttonRenderer:"ytd-button-renderer",toggleButtonRenderer:"ytd-toggle-button-renderer"}}}};
_.L([_.Q(_.k.YtRendererBehavior),_.p("design:type",Object)],MD.prototype,"ytRendererBehavior",void 0);_.L([_.Q(_.u4.YtRendererstamperBehavior),_.p("design:type",Object)],MD.prototype,"ytRendererstamperBehavior",void 0);_.L([_.x(),_.p("design:type",Object)],MD.prototype,"data",void 0);_.L([_.U({is:"ytd-settings-email-item-renderer",disableElementRegistration:!0})],MD);
_.D(MD,"ytd-settings-email-item-renderer",function(){if(BpZ!==void 0)return BpZ;var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-settings-email-item-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="info" class="style-scope ytd-settings-email-item-renderer">\n  <yt-img-shadow height="36" hidden="[[!data.avatar]]" thumbnail="[[data.avatar]]" width="36" class="style-scope ytd-settings-email-item-renderer">\n  </yt-img-shadow>\n  <div id="title" class="style-scope ytd-settings-email-item-renderer">[[getSimpleString(data.title)]]</div>\n</div>\n<div id="button-container" class="style-scope ytd-settings-email-item-renderer">\n  <div id="resume-button" class="style-scope ytd-settings-email-item-renderer"></div>\n</div>\n');a.content.insertBefore(_.w().content.cloneNode(!0),
a.content.firstChild);return BpZ=a},{mode:1});var gf4;var cR=function(){return _.G.apply(this,arguments)||this};
_.b(cR,_.G);cR.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"}}}};
cR.prototype.getExpansionIcon=function(a){return a?"COLLAPSE":"EXPAND"};
cR.prototype.onToggleListExpansion=function(){this.expanded=!this.expanded};
_.eH.Object.defineProperties(cR.prototype,{emailListExpanded:{configurable:!0,enumerable:!0,get:function(){return this.expanded?"true":"false"}}});
_.L([_.Q(_.k.YtRendererBehavior),_.p("design:type",Object)],cR.prototype,"ytRendererBehavior",void 0);_.L([_.Q(_.u4.YtRendererstamperBehavior),_.p("design:type",Object)],cR.prototype,"ytRendererstamperBehavior",void 0);_.L([_.x(),_.p("design:type",Object)],cR.prototype,"data",void 0);_.L([_.x({value:!1,reflectToAttribute:!0}),_.p("design:type",Boolean)],cR.prototype,"expanded",void 0);_.L([_.S("expanded"),_.p("design:type",String),_.p("design:paramtypes",[])],cR.prototype,"emailListExpanded",null);
_.L([_.A3("#options"),_.p("design:type",Object)],cR.prototype,"options",void 0);_.L([_.U({is:"ytd-settings-email-list-renderer",disableElementRegistration:!0})],cR);
_.D(cR,"ytd-settings-email-list-renderer",function(){if(gf4!==void 0)return gf4;var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-settings-email-list-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-settings-email-list-renderer">\n  <tp-yt-paper-button id="list-expansion" aria-expanded$="[[emailListExpanded]]" aria-label$="[[getSimpleString(data.title)]]" noink="" on-tap="onToggleListExpansion" class="style-scope ytd-settings-email-list-renderer">\n    <div id="title" class="style-scope ytd-settings-email-list-renderer">[[getSimpleString(data.title)]]</div>\n    <yt-icon id="help-icon" hidden="[[!data.helpText]]" icon="yt-icons:help" class="style-scope ytd-settings-email-list-renderer"></yt-icon>\n    <tp-yt-paper-tooltip for="help-icon" hidden="[[!data.helpText]]" offset="5" position="top" class="style-scope ytd-settings-email-list-renderer">\n      [[getSimpleString(data.helpText)]]\n    </tp-yt-paper-tooltip>\n    <yt-icon class="expand-icon style-scope ytd-settings-email-list-renderer" icon="[[getExpansionIcon(expanded)]]"></yt-icon>\n  </tp-yt-paper-button>\n  <div id="button-container" hidden="[[!data.resumeButton]]" on-tap="onResumeAll" class="style-scope ytd-settings-email-list-renderer">\n    <div id="resume-button" class="style-scope ytd-settings-email-list-renderer"></div>\n  </div>\n</div>\n<div id="content" class="style-scope ytd-settings-email-list-renderer">\n  <div id="options" class="style-scope ytd-settings-email-list-renderer"></div>\n</div>\n');a.content.insertBefore(_.w().content.cloneNode(!0),
a.content.firstChild);return gf4=a},{mode:1});var ObE;var YW=function(){var a=_.G.apply(this,arguments)||this;a.actionMap={"yt-signal-action-submit-form":"handleSignalActionSubmitForm"};return a};
_.b(YW,_.G);YW.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"}}}};
YW.prototype.handleSignalActionSubmitForm=function(){var a,z=(a=this.formRenderer)==null?void 0:a.getForm();z&&this.data.serviceEndpoint&&_.ab().resolve(_.j6).resolveCommand(this.data.serviceEndpoint,{form:Object.assign({},z,{element:this.hostElement})})};
_.L([_.Q(_.k.YtRendererBehavior),_.p("design:type",Object)],YW.prototype,"ytRendererBehavior",void 0);_.L([_.Q(_.u4.YtRendererstamperBehavior),_.p("design:type",Object)],YW.prototype,"ytRendererstamperBehavior",void 0);_.L([_.Q(_.Hc.YtActionHandlerBehavior),_.p("design:type",Object)],YW.prototype,"ytActionHandlerBehavior",void 0);_.L([_.x(),_.p("design:type",Object)],YW.prototype,"data",void 0);_.L([_.A3("yt-form-renderer"),_.p("design:type",Object)],YW.prototype,"formRenderer",void 0);
_.L([_.U({is:"ytd-settings-gaia-link-renderer",disableElementRegistration:!0})],YW);
_.D(YW,"ytd-settings-gaia-link-renderer",function(){if(ObE!==void 0)return ObE;var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-settings-gaia-link-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="form-container" class="style-scope ytd-settings-gaia-link-renderer">\n  <div id="username-password-form" class="style-scope ytd-settings-gaia-link-renderer"></div>\n  <div id="claim-button" class="style-scope ytd-settings-gaia-link-renderer"></div>\n</div>\n');a.content.insertBefore(_.w().content.cloneNode(!0),
a.content.firstChild);return ObE=a},{mode:1});var f$E;var qD=function(){var a=_.G.apply(this,arguments)||this;a.actionMap={"yt-settings-update-options-command":"handleUpdateOptionsCommand"};return a};
_.b(qD,_.G);qD.prototype.dataChanged=function(){this.data&&this.data.id&&this.data.id==="SETTINGS_OPTIONS_ID_TYPE_AV1_OPTIONS"&&_.HWZ()&&this.set("data.hidden",!1)};
qD.prototype.onSwitchReady=function(){var a=this;this.data&&this.data.id&&this.data.id==="SETTINGS_OPTIONS_ID_TYPE_PUSH_NOTIFICATIONS_ENABLED"&&_.K("service_worker_push_enabled")&&navigator.serviceWorker.ready.then(function(){_.FAG().then(function(z){z&&(Notification.permission==="default"?a.set("data.hidden",!1):Notification.permission==="granted"&&_.sD("NotificationsDisabled").then(function(I){I||_.ZF(a.hostElement,"yt-toggle-settings-switch",[a.data.id,!I]);a.set("data.hidden",!1)}).catch(function(){}))})})};
qD.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}}}}};
qD.prototype.handleUpdateOptionsCommand=function(a){(a=_.H(a,_.u6X))&&this.data&&this.data.id===a.id&&(this.set("data.hidden",a.hidden),a.text!==void 0&&this.set("data.text",a.text),a.clearOptions&&this.set("data.options",[]))};
qD.prototype.onSwitchReady=qD.prototype.onSwitchReady;qD.prototype.dataChanged=qD.prototype.dataChanged;_.L([_.Q(_.k.YtRendererBehavior),_.p("design:type",Object)],qD.prototype,"ytRendererBehavior",void 0);_.L([_.Q(_.u4.YtRendererstamperBehavior),_.p("design:type",Object)],qD.prototype,"ytRendererstamperBehavior",void 0);_.L([_.Q(_.Hc.YtActionHandlerBehavior),_.p("design:type",Object)],qD.prototype,"ytActionHandlerBehavior",void 0);_.L([_.x(),_.p("design:type",Object)],qD.prototype,"data",void 0);
_.L([_.Fe("data"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],qD.prototype,"dataChanged",null);_.L([_.gz("yt-settings-switch-ready"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],qD.prototype,"onSwitchReady",null);_.L([_.U({is:"ytd-settings-options-renderer",disableElementRegistration:!0})],qD);
_.D(qD,"ytd-settings-options-renderer",function(){if(f$E!==void 0)return f$E;var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-settings-options-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="section" hidden="[[data.hidden]]" class="style-scope ytd-settings-options-renderer">\n  <div id="title" class="style-scope ytd-settings-options-renderer">[[getSimpleString(data.title)]]</div>\n  <div id="content" class="style-scope ytd-settings-options-renderer">\n    <div id="options" class="style-scope ytd-settings-options-renderer"></div>\n    <yt-formatted-string id="text" force-default-style="" hidden="[[!data.text]]" split-lines="" text="[[data.text]]" class="style-scope ytd-settings-options-renderer">\n    </yt-formatted-string>\n  </div>\n</div>\n');a.content.insertBefore(_.w().content.cloneNode(!0),
a.content.firstChild);return f$E=a},{mode:1});var Awf;var e5=function(){return _.G.apply(this,arguments)||this};
_.b(e5,_.G);e5.prototype.onYtExpanderMoreTapped=function(){this.data&&this.ytRendererBehavior.logExplicitClick(this.data)};
e5.prototype.configureRendererStamper=function(){return{"data.attributionLinkButtonRenderer":{id:"attribution-link-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{disableTextTransform:!0}}}}}};
e5.prototype.onYtExpanderMoreTapped=e5.prototype.onYtExpanderMoreTapped;_.L([_.Q(_.k.YtRendererBehavior),_.p("design:type",Object)],e5.prototype,"ytRendererBehavior",void 0);_.L([_.Q(_.Ms.YtComponentBehavior),_.p("design:type",Object)],e5.prototype,"ytComponentBehavior",void 0);_.L([_.Q(_.u4.YtRendererstamperBehavior),_.p("design:type",Object)],e5.prototype,"ytRendererstamperBehavior",void 0);_.L([_.x(),_.p("design:type",Object)],e5.prototype,"data",void 0);
_.L([_.gz("yt-expander-more-tapped"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],e5.prototype,"onYtExpanderMoreTapped",null);_.L([_.U({disableElementRegistration:!0,is:"ytd-product-details-description-renderer"})],e5);
_.D(e5,"ytd-product-details-description-renderer",function(){if(Awf!==void 0)return Awf;var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-product-details-description-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="container style-scope ytd-product-details-description-renderer">\n  <div class="description-row row style-scope ytd-product-details-description-renderer">\n      <ytd-expander id="expander" hidden="[[!data.description]]" max-number-of-lines="4" recompute-on-resize="" class="style-scope ytd-product-details-description-renderer">\n        <div class="description style-scope ytd-product-details-description-renderer" slot="content">[[data.description]]\n        </div>\n        <span id="attribution-link-button" slot="sticky-secondary" hidden="[[!data.attributionLinkButtonRenderer]]" class="style-scope ytd-product-details-description-renderer"></span>\n        <span class="more-button style-scope ytd-product-details-description-renderer" slot="more-button">[[getSimpleString(data.moreButtonRenderer.buttonRenderer.text)]]</span>\n        <span class="less-button style-scope ytd-product-details-description-renderer" slot="less-button">[[getSimpleString(data.lessButtonRenderer.buttonRenderer.text)]]</span>\n      </ytd-expander>\n    </div>\n</div>\n');a.content.insertBefore(_.w().content.cloneNode(!0),
a.content.firstChild);return Awf=a},{mode:1});var sB0;var a6=function(){var a=_.G.apply(this,arguments)||this;a.shippingIcon="https://www.gstatic.com/images/icons/material/system/1x/local_shipping_grey600_48dp.png";a.shippingAddressIcon="https://www.gstatic.com/images/icons/material/system/1x/location_on_grey600_48dp.png";a.googleGuaranteeIcon="https://www.gstatic.com/images/icons/material/system/1x/google_guarantee_grey600_48dp.png";a.returnPolicyIcon="https://www.gstatic.com/images/icons/material/system/1x/undo_grey600_48dp.png";return a};
_.b(a6,_.G);a6.prototype.configureRendererStamper=function(){return{"data.purchaseButtonRenderer":{id:"purchase-button",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.purchaseButtonRenderers":{id:"purchase-buttons",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.eH.Object.defineProperties(a6.prototype,{showAdditionalFees:{configurable:!0,enumerable:!0,get:function(){var a,z;return((a=this.data)==null?void 0:(z=a.offerData)==null?void 0:z.additionalFeesText)!==""}},
showMultiPurchaseButtons:{configurable:!0,enumerable:!0,get:function(){var a,z;return((a=this.data)==null?void 0:a.purchaseButtonRenderers)!==void 0&&((z=this.data)==null?void 0:z.purchaseButtonRenderers.length)!==0}},
showPurchaseData:{configurable:!0,enumerable:!0,get:function(){var a,z;return!((a=this.data)==null||!a.formattedFromMerchantText)&&(!((z=this.data)==null||!z.purchaseButtonRenderer)||this.showMultiPurchaseButtons)}}});
_.L([_.Q(_.u4.YtRendererstamperBehavior),_.p("design:type",Object)],a6.prototype,"ytRendererstamperBehavior",void 0);_.L([_.Q(_.k.YtRendererBehavior),_.p("design:type",Object)],a6.prototype,"ytRendererBehavior",void 0);_.L([_.Q(_.Ms.YtComponentBehavior),_.p("design:type",Object)],a6.prototype,"ytComponentBehavior",void 0);_.L([_.x(),_.p("design:type",Object)],a6.prototype,"data",void 0);
_.L([_.x({type:_.K("kevlar_property_type_migration_killswitch")?String:void 0}),_.p("design:type",Object)],a6.prototype,"shippingIcon",void 0);_.L([_.x({type:_.K("kevlar_property_type_migration_killswitch")?String:void 0}),_.p("design:type",Object)],a6.prototype,"shippingAddressIcon",void 0);_.L([_.x({type:_.K("kevlar_property_type_migration_killswitch")?String:void 0}),_.p("design:type",Object)],a6.prototype,"googleGuaranteeIcon",void 0);
_.L([_.x({type:_.K("kevlar_property_type_migration_killswitch")?String:void 0}),_.p("design:type",Object)],a6.prototype,"returnPolicyIcon",void 0);_.L([_.S("data"),_.p("design:type",Boolean),_.p("design:paramtypes",[])],a6.prototype,"showAdditionalFees",null);_.L([_.S("data"),_.p("design:type",Boolean),_.p("design:paramtypes",[])],a6.prototype,"showMultiPurchaseButtons",null);
_.L([_.S("data","showMultiPurchaseButtons"),_.p("design:type",Boolean),_.p("design:paramtypes",[])],a6.prototype,"showPurchaseData",null);_.L([_.U({disableElementRegistration:!0,is:"ytd-product-details-hero-offer-renderer"})],a6);
_.D(a6,"ytd-product-details-hero-offer-renderer",function(){if(sB0!==void 0)return sB0;var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-product-details-hero-offer-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e\n\n<div class="price-and-action-row row style-scope ytd-product-details-hero-offer-renderer" hidden="[[!showPurchaseData]]" data-offer-version-id$="[[data.offerData.debugOfferVersionId]]">\n  <div class="price-column style-scope ytd-product-details-hero-offer-renderer">\n    <div class="price style-scope ytd-product-details-hero-offer-renderer">\n      <span class="item-price style-scope ytd-product-details-hero-offer-renderer">[[data.offerData.price]]</span>\n      <template is="dom-if" restamp="" if="[[showAdditionalFees]]" class="style-scope ytd-product-details-hero-offer-renderer">\n        <span class="additional-fees style-scope ytd-product-details-hero-offer-renderer">[[data.offerData.additionalFeesText]]</span>\n      </template>\n    </div>\n    <div class="offer-title style-scope ytd-product-details-hero-offer-renderer">[[data.offerData.title]]</div>\n    <template is="dom-if" restamp="" if="[[!data.shippingDetails]]" class="style-scope ytd-product-details-hero-offer-renderer">\n      <div class="merchant-row row style-scope ytd-product-details-hero-offer-renderer">\n        <div class="logo style-scope ytd-product-details-hero-offer-renderer">\n          <img src$="[[data.offerData.vendorLogoUrl]]" alt="" class="logo-url style-scope ytd-product-details-hero-offer-renderer" onerror="this.style.visibility=\'hidden\';">\n        </div>\n        <yt-formatted-string text="[[data.formattedFromMerchantText]]" class="style-scope ytd-product-details-hero-offer-renderer">\n      </yt-formatted-string></div>\n    </template>\n    <template is="dom-if" restamp="" if="[[data.shippingDetails]]" class="style-scope ytd-product-details-hero-offer-renderer">\n      <div class="shipping-details row style-scope ytd-product-details-hero-offer-renderer">\n        <div class="shipping-details-inner column style-scope ytd-product-details-hero-offer-renderer">\n          <div class="row shipping-details-inner-row secondary-color style-scope ytd-product-details-hero-offer-renderer">\n            <div class="logo style-scope ytd-product-details-hero-offer-renderer">\n              <img src$="[[data.offerData.vendorLogoUrl]]" alt="" class="logo-url style-scope ytd-product-details-hero-offer-renderer" onerror="this.style.visibility=\'hidden\';">\n            </div>\n            <yt-formatted-string link-inherit-color="" text="[[data.formattedFromMerchantText]]" class="style-scope ytd-product-details-hero-offer-renderer">\n          </yt-formatted-string></div>\n          <template is="dom-if" restamp="" if="[[data.shippingDetails.shippingDate]]" class="style-scope ytd-product-details-hero-offer-renderer">\n            <div id="date-and-price" class="row shipping-details-inner-row style-scope ytd-product-details-hero-offer-renderer">\n              <div class="logo style-scope ytd-product-details-hero-offer-renderer">\n                <img src$="[[shippingIcon]]" alt="" class="logo-url style-scope ytd-product-details-hero-offer-renderer" onerror="this.style.visibility=\'hidden\';">\n              </div>\n              <yt-formatted-string text="[[data.shippingDetails.shippingDate]]" class="style-scope ytd-product-details-hero-offer-renderer">\n            </yt-formatted-string></div>\n          </template>\n          <template is="dom-if" restamp="" if="[[data.shippingDetails.returnPolicy]]" class="style-scope ytd-product-details-hero-offer-renderer">\n            <div id="return-policy" class="row shipping-details-inner-row style-scope ytd-product-details-hero-offer-renderer">\n              <div class="logo style-scope ytd-product-details-hero-offer-renderer">\n                <img src$="[[returnPolicyIcon]]" alt="" class="logo-url style-scope ytd-product-details-hero-offer-renderer" onerror="this.style.visibility=\'hidden\';">\n              </div>\n              <yt-formatted-string link-inherit-color="" text="[[data.shippingDetails.returnPolicy]]" class="style-scope ytd-product-details-hero-offer-renderer">\n            </yt-formatted-string></div>\n          </template>\n          <template is="dom-if" restamp="" if="[[data.shippingDetails.shippingAddress]]" class="style-scope ytd-product-details-hero-offer-renderer">\n            <div id="shipping-address" class="row shipping-details-inner-row style-scope ytd-product-details-hero-offer-renderer">\n              <div class="logo style-scope ytd-product-details-hero-offer-renderer">\n                <img src$="[[shippingAddressIcon]]" alt="" class="logo-url style-scope ytd-product-details-hero-offer-renderer" onerror="this.style.visibility=\'hidden\';">\n              </div>\n              <yt-formatted-string text="[[data.shippingDetails.shippingAddress]]" class="style-scope ytd-product-details-hero-offer-renderer">\n            </yt-formatted-string></div>\n          </template>\n          <template is="dom-if" restamp="" if="[[data.shoutoutText]]" class="style-scope ytd-product-details-hero-offer-renderer">\n            <div id="google-guarantee" class="row shipping-details-inner-row style-scope ytd-product-details-hero-offer-renderer">\n              <div class="logo style-scope ytd-product-details-hero-offer-renderer">\n                <img src$="[[googleGuaranteeIcon]]" alt="" class="logo-url style-scope ytd-product-details-hero-offer-renderer" onerror="this.style.visibility=\'hidden\';">\n              </div>\n              <span class="shoutout-text secondary-color style-scope ytd-product-details-hero-offer-renderer">[[data.shoutoutText]]</span>\n              <ytd-button-renderer class="google-guarantee-info style-scope ytd-product-details-hero-offer-renderer" data="[[data.shoutoutButtonRenderer.buttonRenderer]]">\n              </ytd-button-renderer>\n            </div>\n          </template>\n        </div>\n      </div>\n    </template>\n    <template is="dom-if" restamp="" if="[[data.affiliateDisclaimerText]]" class="style-scope ytd-product-details-hero-offer-renderer">\n      <div id="affiliate-disclaimer" class="affiliate-disclaimer-text-row row style-scope ytd-product-details-hero-offer-renderer">\n        <span class="secondary-color style-scope ytd-product-details-hero-offer-renderer"> [[data.affiliateDisclaimerText]] </span>\n      </div>\n    </template>\n    <div class="purchase-buttons-row row style-scope ytd-product-details-hero-offer-renderer" hidden="[[!showMultiPurchaseButtons]]">\n      <div id="purchase-buttons" class="purchase-buttons-inner column style-scope ytd-product-details-hero-offer-renderer">\n      </div>\n    </div>\n  </div>\n  <div class="action-column style-scope ytd-product-details-hero-offer-renderer">\n    <div id="purchase-button" class="style-scope ytd-product-details-hero-offer-renderer"></div>\n  </div>\n</div>\n');a.content.insertBefore(_.w().content.cloneNode(!0),
a.content.firstChild);return sB0=a},{mode:1});var nf0;var KnZ;var j7=function(){return _.G.apply(this,arguments)||this};
_.b(j7,_.G);_.Z=j7.prototype;_.Z.attached=function(){this.hostElement.addEventListener("click",this.handleSelection);this.hostElement.addEventListener("mouseenter",this.onMouseEnterImage);this.hostElement.addEventListener("mouseleave",this.onMouseLeaveImage)};
_.Z.onKeyDown=function(a){a=a.keyCode;a!==13&&a!==32||this.handleSelection()};
_.Z.onMouseEnterImage=function(){var a;((a=this.data)==null?void 0:a.thumbnailDetails)!==void 0&&_.Ct(this.polymerController.hostElement,"ytd-product-details-variant-image-select",[this.data.thumbnailDetails])};
_.Z.onMouseLeaveImage=function(){_.Ct(this.polymerController.hostElement,"ytd-product-details-variant-image-unselect")};
_.Z.handleSelection=function(){this.data&&_.PA(this.hostElement,"ytd-product-details-thumbnail-renderer-selected",this.data.index)};
_.eH.Object.defineProperties(j7.prototype,{isSelected:{configurable:!0,enumerable:!0,get:function(){var a;return!((a=this.data)==null||!a.isSelected)}}});
_.L([_.Q(_.k.YtRendererBehavior),_.p("design:type",Object)],j7.prototype,"ytRendererBehavior",void 0);_.L([_.x(),_.p("design:type",Object)],j7.prototype,"data",void 0);_.L([_.S("data"),_.p("design:type",Object),_.p("design:paramtypes",[])],j7.prototype,"isSelected",null);_.L([_.U({disableElementRegistration:!0,is:"ytd-product-details-thumbnail-renderer"})],j7);
_.D(j7,"ytd-product-details-thumbnail-renderer",function(){if(KnZ!==void 0)return KnZ;var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-product-details-thumbnail-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="product-card-renderer-container" class="style-scope ytd-product-details-thumbnail-renderer">\n  <div id="card" class="style-scope ytd-product-details-thumbnail-renderer">\n    <div hidden="[[!isSelected]]" id="card-selection-overlay" class="style-scope ytd-product-details-thumbnail-renderer"></div>\n    <div id="card-overlay" class="style-scope ytd-product-details-thumbnail-renderer"></div>\n    <yt-img-shadow id="card-image" aria-label="[[data.thumbnailDetails.accessibility.accessibilityData.label]]" object-fit="CONTAIN" thumbnail="[[data.thumbnailDetails]]" width="56px" class="style-scope ytd-product-details-thumbnail-renderer">\n    </yt-img-shadow>\n  </div>\n</div>\n');a.content.insertBefore(_.w().content.cloneNode(!0),
a.content.firstChild);return KnZ=a},{mode:1});var z5=function(){var a=_.G.apply(this,arguments)||this;var z={};a.actionMap=(z["ytd-product-details-variant-image-select"]="handlePreviewImageSelect",z["ytd-product-details-variant-image-unselect"]="handlePreviewImageDeselect",z);a.selectedThumbnailIndex=0;a.selectItem=function(I){I.target.onKeyDown(I)};
return a};
_.b(z5,_.G);_.Z=z5.prototype;_.Z.handlePreviewImageSelect=function(a){this.hoverThumbnail=a};
_.Z.handlePreviewImageDeselect=function(){this.hoverThumbnail=void 0};
_.Z.configureRendererStamper=function(){return{"populatedData.imageRenderer":{id:"items",mapping:{productDetailsThumbnailRenderer:{component:"ytd-product-details-thumbnail-renderer",attributes:{role:"option"}}}}}};
_.Z.onThumbnailSelected=function(a,z){this.selectedThumbnailIndex=z};
_.Z.dataChanged=function(){this.ytdHorizontalListBehavior.reset();this.selectedThumbnailIndex=0};
_.Z.updateOffset=function(){var a=_.PK(this.hostElement).querySelector("#scroll-container").clientWidth;this.ytdHorizontalListBehavior.offset=Math.max(0,Math.min(this.ytdHorizontalListBehavior.offset,this.items.clientWidth-a));this.ytdHorizontalListBehavior.reposition_()};
_.eH.Object.defineProperties(z5.prototype,{showThumbnails:{configurable:!0,enumerable:!0,get:function(){var a;if((a=this.data)==null?0:a.imageRenderer){var z,I;return((z=this.data)==null?void 0:(I=z.imageRenderer)==null?void 0:I.length)>1}return!1}},
thumbnailDetails:{configurable:!0,enumerable:!0,get:function(){if(this.hoverThumbnail!==void 0)return this.hoverThumbnail;var a;if((a=this.data)==null?0:a.imageRenderer){var z;return(z=_.H(this.data.imageRenderer[this.selectedThumbnailIndex],wCe))==null?void 0:z.thumbnailDetails}}},
populatedData:{configurable:!0,enumerable:!0,get:function(){var a=this,z,I,J,r=(J=(z=this.data)==null?void 0:(I=z.imageRenderer)==null?void 0:I.map(function(P,N){return{productDetailsThumbnailRenderer:Object.assign({},_.H(P,wCe),{index:N,isSelected:N===a.selectedThumbnailIndex})}}))!=null?J:[];
return Object.assign({},this.data,{imageRenderer:r})}}});
z5.prototype.updateOffset=z5.prototype.updateOffset;z5.prototype.dataChanged=z5.prototype.dataChanged;z5.prototype.onThumbnailSelected=z5.prototype.onThumbnailSelected;_.L([_.Q(_.k.YtRendererBehavior),_.p("design:type",Object)],z5.prototype,"ytRendererBehavior",void 0);_.L([_.Q(_.u4.YtRendererstamperBehavior),_.p("design:type",Object)],z5.prototype,"ytRendererstamperBehavior",void 0);_.L([_.Q(_.E3.YtdHorizontalListBehavior),_.p("design:type",Object)],z5.prototype,"ytdHorizontalListBehavior",void 0);
_.L([_.Q(_.Ms.YtComponentBehavior),_.p("design:type",Object)],z5.prototype,"componentBehavior",void 0);_.L([_.Q([_.Hc.YtActionHandlerBehavior]),_.p("design:type",Object)],z5.prototype,"actionHandlerBehavior",void 0);_.L([_.x(),_.p("design:type",Object)],z5.prototype,"data",void 0);_.L([_.x({value:"$.items.children"}),_.p("design:type",String)],z5.prototype,"itemsPath",void 0);_.L([_.x({value:3}),_.p("design:type",Number)],z5.prototype,"initialCount",void 0);
_.L([_.A3("#items"),_.p("design:type",Object)],z5.prototype,"items",void 0);_.L([_.x(),_.p("design:type",Object)],z5.prototype,"selectedThumbnailIndex",void 0);_.L([_.x(),_.p("design:type",Object)],z5.prototype,"hoverThumbnail",void 0);_.L([_.S("data"),_.p("design:type",Boolean),_.p("design:paramtypes",[])],z5.prototype,"showThumbnails",null);
_.L([_.gz("ytd-product-details-thumbnail-renderer-selected"),_.p("design:type",Function),_.p("design:paramtypes",[CustomEvent,Number]),_.p("design:returntype")],z5.prototype,"onThumbnailSelected",null);_.L([_.S("data","selectedThumbnailIndex","hoverThumbnail"),_.p("design:type",Object),_.p("design:paramtypes",[])],z5.prototype,"thumbnailDetails",null);_.L([_.S("data","selectedThumbnailIndex"),_.p("design:type",Object),_.p("design:paramtypes",[])],z5.prototype,"populatedData",null);
_.L([_.O8("data"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],z5.prototype,"dataChanged",null);_.L([_.gz("iron-resize"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],z5.prototype,"updateOffset",null);_.L([_.U({disableElementRegistration:!0,is:"ytd-product-details-image-carousel-renderer"})],z5);
_.D(z5,"ytd-product-details-image-carousel-renderer",function(){if(nf0!==void 0)return nf0;var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-product-details-image-carousel-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="preview style-scope ytd-product-details-image-carousel-renderer">\n  <template is="dom-if" restamp="" if="[[thumbnailDetails]]" class="style-scope ytd-product-details-image-carousel-renderer">\n    <yt-img-shadow class="preview-image style-scope ytd-product-details-image-carousel-renderer" object-fit="CONTAIN" thumbnail="[[thumbnailDetails]]" width="512"></yt-img-shadow>\n  </template>\n</div>\n<div id="main" class="main style-scope ytd-product-details-image-carousel-renderer" hidden="[[!showThumbnails]]">\n  <div id="left-arrow-container" class="left-arrow-container style-scope ytd-product-details-image-carousel-renderer">\n    <div id="left-arrow" class="arrow style-scope ytd-product-details-image-carousel-renderer" on-click="prevClick_" hidden="[[atStart]]">\n       <yt-icon icon="yt-icons:chevron_left" class="style-scope ytd-product-details-image-carousel-renderer"></yt-icon>\n    </div>\n  </div>\n  <div id="scroll-container" class="style-scope ytd-product-details-image-carousel-renderer">\n    <tp-yt-paper-listbox id="items" on-keydown="selectItem" class="style-scope ytd-product-details-image-carousel-renderer"></tp-yt-paper-listbox>\n  </div>\n  <div id="right-arrow-container" class="right-arrow-container style-scope ytd-product-details-image-carousel-renderer">\n    <div id="right-arrow" class="arrow style-scope ytd-product-details-image-carousel-renderer" on-click="nextClick_" hidden="[[atEnd]]">\n       <yt-icon icon="yt-icons:chevron_right" class="style-scope ytd-product-details-image-carousel-renderer"></yt-icon>\n    </div>\n  </div>\n</div>\n');
a.content.insertBefore(_.w().content.cloneNode(!0),a.content.firstChild);return nf0=a},{mode:_.Np("kevlar_poly_si_batch_j079")?1:2});var Fn4;var I6=function(){return _.G.apply(this,arguments)||this};
_.b(I6,_.G);_.L([_.Q(_.k.YtRendererBehavior),_.p("design:type",Object)],I6.prototype,"ytRendererBehavior",void 0);_.L([_.Q(_.u4.YtRendererstamperBehavior),_.p("design:type",Object)],I6.prototype,"ytRendererstamperBehavior",void 0);_.L([_.Q(_.Ms.YtComponentBehavior),_.p("design:type",Object)],I6.prototype,"componentBehavior",void 0);_.L([_.x(),_.p("design:type",Object)],I6.prototype,"data",void 0);_.L([_.U({disableElementRegistration:!0,is:"ytd-product-details-offer-renderer"})],I6);
_.D(I6,"ytd-product-details-offer-renderer",function(){if(Fn4!==void 0)return Fn4;var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-product-details-offer-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e\n\n<div class="offer-details offer-details-new-ux style-scope ytd-product-details-offer-renderer" data-offer-version-id$="[[data.offerData.debugOfferVersionId]]">\n  <div class="offer-details-information style-scope ytd-product-details-offer-renderer">\n    <div class="offer-price style-scope ytd-product-details-offer-renderer">\n      [[data.offerData.price]]\n      <span class="additional-fees style-scope ytd-product-details-offer-renderer">[[data.offerData.additionalFeesText]]</span>\n    </div>\n    <div class="offer-title style-scope ytd-product-details-offer-renderer">\n      [[data.offerData.title]]\n    </div>\n    <div class="vendor-information style-scope ytd-product-details-offer-renderer">\n      <div class="vendor-logo style-scope ytd-product-details-offer-renderer">\n        <img src$="[[data.offerData.vendorLogoUrl]]" alt="" class="vendor-logo-url style-scope ytd-product-details-offer-renderer" onerror="this.style.visibility=\'hidden\';">\n      </div>\n      <div class="vendor-name style-scope ytd-product-details-offer-renderer">[[data.offerData.vendorName]]</div>\n    </div>\n  </div>\n  <div class="offer-cta style-scope ytd-product-details-offer-renderer">\n    <div class="checkout style-scope ytd-product-details-offer-renderer">\n      <ytd-button-renderer data="[[data.purchaseButtonRenderer.buttonRenderer]]" class="style-scope ytd-product-details-offer-renderer">\n      </ytd-button-renderer>\n    </div>\n  </div>\n</div>\n');
a.content.insertBefore(_.w().content.cloneNode(!0),a.content.firstChild);return Fn4=a},{mode:1});var Hbz;var Jn=function(){var a=_.G.apply(this,arguments)||this;a.isOffersHidden=!0;return a};
_.b(Jn,_.G);Jn.prototype.toggleOffers=function(){this.isOffersHidden=!this.isOffersHidden;var a,z=_.H((a=this.data)==null?void 0:a.viewOffersButton,_.lc);z&&this.ytRendererBehavior.logExplicitClick(z)};
Jn.prototype.configureRendererStamper=function(){return{"data.offers":{id:"offer",mapping:{productDetailsOfferRenderer:"ytd-product-details-offer-renderer"}}}};
_.eH.Object.defineProperties(Jn.prototype,{firstOfferVendorLogoUrl:{configurable:!0,enumerable:!0,get:function(){var a,z,I,J;return(I=_.H((a=this.data)==null?void 0:(z=a.offers)==null?void 0:z[0],M2z))==null?void 0:(J=I.offerData)==null?void 0:J.vendorLogoUrl}}});
_.L([_.Q(_.k.YtRendererBehavior),_.p("design:type",Object)],Jn.prototype,"ytRendererBehavior",void 0);_.L([_.Q(_.u4.YtRendererstamperBehavior),_.p("design:type",Object)],Jn.prototype,"ytRendererstamperBehavior",void 0);_.L([_.Q(_.Ms.YtComponentBehavior),_.p("design:type",Object)],Jn.prototype,"componentBehavior",void 0);_.L([_.x(),_.p("design:type",Object)],Jn.prototype,"data",void 0);_.L([_.x(),_.p("design:type",Object)],Jn.prototype,"isOffersHidden",void 0);
_.L([_.S("data"),_.p("design:type",Object),_.p("design:paramtypes",[])],Jn.prototype,"firstOfferVendorLogoUrl",null);_.L([_.U({disableElementRegistration:!0,is:"ytd-product-details-offers-container-renderer"})],Jn);
_.D(Jn,"ytd-product-details-offers-container-renderer",function(){if(Hbz!==void 0)return Hbz;var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-product-details-offers-container-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="offer-container style-scope ytd-product-details-offers-container-renderer">\n  <div class="header style-scope ytd-product-details-offers-container-renderer" on-click="toggleOffers">\n    <div class="title-description-container style-scope ytd-product-details-offers-container-renderer">\n      <yt-formatted-string class="title style-scope ytd-product-details-offers-container-renderer" text="[[data.descriptionLeft]]">\n      </yt-formatted-string>\n      <div class="vendor-logo style-scope ytd-product-details-offers-container-renderer">\n        <img src$="[[firstOfferVendorLogoUrl]]" alt="" class="vendor-logo-url style-scope ytd-product-details-offers-container-renderer" onerror="this.style.visibility=\'hidden\';">\n      </div>\n      <yt-formatted-string class="title style-scope ytd-product-details-offers-container-renderer" text="[[data.descriptionRight]]">\n      </yt-formatted-string>\n    </div>\n    <div class="action style-scope ytd-product-details-offers-container-renderer">\n      <ytd-button-renderer id="view-offers" class="view-button style-scope ytd-product-details-offers-container-renderer" aria-expanded="false" data="[[data.viewOffersButton.buttonRenderer]]" hidden="[[!isOffersHidden]]" noink="">\n      </ytd-button-renderer>\n      <ytd-button-renderer id="hide-offers" class="hide-button style-scope ytd-product-details-offers-container-renderer" aria-expanded="true" data="[[data.hideOffersButton.buttonRenderer]]" hidden="[[isOffersHidden]]" noink="">\n      </ytd-button-renderer>\n    </div>\n  </div>\n  <div id="offer" hidden="[[isOffersHidden]]" class="style-scope ytd-product-details-offers-container-renderer"></div>\n</div>\n');a.content.insertBefore(_.w().content.cloneNode(!0),
a.content.firstChild);return Hbz=a},{mode:1});var bb4;var hmz;var rX=function(){return _.G.apply(this,arguments)||this};
_.b(rX,_.G);rX.prototype.ready=function(){this.hostElement.addEventListener("mouseenter",this.onMouseEnterImage);this.hostElement.addEventListener("mouseleave",this.onMouseLeaveImage)};
rX.prototype.onMouseEnterImage=function(){this.isImageButton&&this.thumbnailDetails!==void 0&&_.Ct(this,"ytd-product-details-variant-image-select",[this.thumbnailDetails])};
rX.prototype.onMouseLeaveImage=function(){this.isImageButton&&_.Ct(this,"ytd-product-details-variant-image-unselect")};
_.eH.Object.defineProperties(rX.prototype,{isImageButton:{configurable:!0,enumerable:!0,get:function(){return this.displayType==="VARIANT_ATTRIBUTE_DISPLAY_TYPE_IMAGE"}},
isPillButton:{configurable:!0,enumerable:!0,get:function(){return this.displayType==="VARIANT_ATTRIBUTE_DISPLAY_TYPE_PILL"||this.displayType==="VARIANT_ATTRIBUTE_DISPLAY_TYPE_DROPDOWN_LIST"}},
isActive:{configurable:!0,enumerable:!0,get:function(){var a;return((a=this.data)==null?void 0:a.variantOptionState)==="VARIANT_OPTION_STATE_SELECTED"}},
isUnavailable:{configurable:!0,enumerable:!0,get:function(){var a,z,I;return((a=this.data)==null?void 0:a.variantAvailability)==="VARIANT_AVAILABILITY_NO_OFFERS"||((z=this.data)==null?void 0:z.variantOptionState)==="VARIANT_OPTION_STATE_OTHER_ATTRIBUTE_WILL_CHANGE"||((I=this.data)==null?void 0:I.variantOptionState)==="VARIANT_OPTION_STATE_DISABLED"}},
thumbnailDetails:{configurable:!0,enumerable:!0,get:function(){if(this.isImageButton){var a;if(((a=this.data)==null?void 0:a.imageDetails)!==void 0)return this.data.imageDetails}}},
accessibilityLabel:{configurable:!0,enumerable:!0,get:function(){var a,z;return this.isUnavailable?(a=this.data)==null?void 0:a.variantOptionUnavailableAccessibilityLabel:(z=this.data)==null?void 0:z.variantOptionAccessibilityLabel}}});
_.L([_.Q(_.k.YtRendererBehavior),_.p("design:type",Object)],rX.prototype,"ytRendererBehavior",void 0);_.L([_.Q(_.u4.YtRendererstamperBehavior),_.p("design:type",Object)],rX.prototype,"ytRendererstamperBehavior",void 0);_.L([_.Q(_.Ms.YtComponentBehavior),_.p("design:type",Object)],rX.prototype,"componentBehavior",void 0);_.L([_.x(),_.p("design:type",Object)],rX.prototype,"data",void 0);_.L([_.x(),_.p("design:type",String)],rX.prototype,"displayType",void 0);
_.L([_.S("displayType","data"),_.p("design:type",Boolean),_.p("design:paramtypes",[])],rX.prototype,"isImageButton",null);_.L([_.S("displayType","data"),_.p("design:type",Boolean),_.p("design:paramtypes",[])],rX.prototype,"isPillButton",null);_.L([_.S("data"),_.x({reflectToAttribute:!0}),_.p("design:type",Boolean),_.p("design:paramtypes",[])],rX.prototype,"isActive",null);
_.L([_.S("data"),_.x({reflectToAttribute:!0}),_.p("design:type",Boolean),_.p("design:paramtypes",[])],rX.prototype,"isUnavailable",null);_.L([_.S("data"),_.p("design:type",Object),_.p("design:paramtypes",[])],rX.prototype,"thumbnailDetails",null);_.L([_.S("isUnavailable","data"),_.p("design:type",Object),_.p("design:paramtypes",[])],rX.prototype,"accessibilityLabel",null);_.L([_.U({disableElementRegistration:!0,is:"ytd-product-details-variant-option-renderer"})],rX);
_.D(rX,"ytd-product-details-variant-option-renderer",function(){if(hmz!==void 0)return hmz;var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-product-details-variant-option-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="container style-scope ytd-product-details-variant-option-renderer">\n  <template is="dom-if" restamp="" if="[[isImageButton]]" class="style-scope ytd-product-details-variant-option-renderer">\n    <a class="yt-simple-endpoint style-scope ytd-product-details-variant-option-renderer" href$="[[computeHref_(data.command)]]" data="[[data.command]]" aria-label="[[accessibilityLabel]]" rel="[[computeNofollow_(data.command)]]">\n      <div class="variant-option variant-option-image style-scope ytd-product-details-variant-option-renderer">\n        <yt-img-shadow alt="[[data.name]]" height="52" object-fit="CONTAIN" thumbnail="[[thumbnailDetails]]" width="52" class="style-scope ytd-product-details-variant-option-renderer"></yt-img-shadow>\n      </div>\n    </a>\n    <tp-yt-paper-tooltip fit-to-visible-bounds="" offset="4" position="top" class="style-scope ytd-product-details-variant-option-renderer">\n      [[accessibilityLabel]]\n    </tp-yt-paper-tooltip>\n  </template>\n  <template is="dom-if" restamp="" if="[[isPillButton]]" class="style-scope ytd-product-details-variant-option-renderer">\n    <a class="yt-simple-endpoint style-scope ytd-product-details-variant-option-renderer" href$="[[computeHref_(data.command)]]" data="[[data.command]]" aria-label="[[accessibilityLabel]]" rel="[[computeNofollow_(data.command)]]">\n      <div class="variant-option variant-option-pill style-scope ytd-product-details-variant-option-renderer">\n        <span class="style-scope ytd-product-details-variant-option-renderer">[[data.name]]</span>\n      </div>\n    </a>\n    <template is="dom-if" restamp="" if="[[isUnavailable]]" class="style-scope ytd-product-details-variant-option-renderer">\n      <tp-yt-paper-tooltip fit-to-visible-bounds="" offset="4" position="top" class="style-scope ytd-product-details-variant-option-renderer">\n        [[data.unavailableText]]\n      </tp-yt-paper-tooltip>\n    </template>\n  </template>\n</div>\n');
a.content.insertBefore(_.w().content.cloneNode(!0),a.content.firstChild);return hmz=a},{mode:1});var VCZ;var P6=function(){var a=_.G.apply(this,arguments)||this;a.variantsExpanded=!1;a.hideShowMoreLessVariantButton=!0;a.initialized=!1;a.computeVariantsDebouncer=null;a.computeVariants=function(z){z=z===void 0?!1:z;a.variantsExpanded||a.showOptions()||!z||(a.variantsExpanded=!0);if(a.variantsExpanded){z=_.C(a.items.children);for(var I=z.next();!I.done;I=z.next())I.value.hidden=!1}a.initialized=!0};
return a};
_.b(P6,_.G);_.Z=P6.prototype;_.Z.ready=function(){var a=this;setTimeout(function(){a.computeVariants(!0)})};
_.Z.showOptions=function(){for(var a=_.C(this.items.children),z=a.next();!z.done;z=a.next())z.value.hidden=!0;var I=this.container.getBoundingClientRect().width,J=0,r=a=0;z=!1;for(var P=_.C(this.items.children),N=P.next();!N.done;N=P.next()){N=N.value;N.hidden=!1;var u=N.getBoundingClientRect().width;if(J+u<I)J+=u;else if(++r<2)J=u;else break;a+=1;N.hasAttribute("is-active")&&(z=!0)}for(I=a;I<this.items.children.length;I++)this.items.children[I].hidden=!0;this.hideShowMoreLessVariantButton=a===this.items.children.length;
return z};
_.Z.debouncedComputeVariants=function(){this.computeVariantsDebouncer=_.EH(this.computeVariantsDebouncer,_.ao.after(100),this.computeVariants)};
_.Z.onShowMoreLessVariantsButtonClick=function(){var a;(a=this.data)!=null&&a.variantOptionRenderers&&(this.variantsExpanded=!this.variantsExpanded,this.computeVariants())};
_.Z.configureRendererStamper=function(){return{"data.variantOptionRenderers":{id:"items",mapping:{productDetailsVariantOptionRenderer:{component:"ytd-product-details-variant-option-renderer",properties:{displayType:"[[displayType]]"}}}}}};
_.eH.Object.defineProperties(P6.prototype,{selectedOptionName:{configurable:!0,enumerable:!0,get:function(){var a,z,I=(a=this.data)==null?void 0:(z=a.variantOptionRenderers)==null?void 0:z.find(function(P){return _.H(P,ym0).variantOptionState==="VARIANT_OPTION_STATE_SELECTED"}),J,r;
return(r=(J=_.H(I,ym0))==null?void 0:J.name)!=null?r:""}},
displayType:{configurable:!0,enumerable:!0,get:function(){var a;return((a=this.data)==null?void 0:a.displayType)||"VARIANT_ATTRIBUTE_DISPLAY_TYPE_UNKNOWN"}},
variantItemsClassname:{configurable:!0,enumerable:!0,get:function(){switch(this.displayType){case "VARIANT_ATTRIBUTE_DISPLAY_TYPE_PILL":return"pill";case "VARIANT_ATTRIBUTE_DISPLAY_TYPE_DROPDOWN_LIST":return"dropdown";case "VARIANT_ATTRIBUTE_DISPLAY_TYPE_IMAGE":return"image";default:return"unknown"}}}});
P6.prototype.debouncedComputeVariants=P6.prototype.debouncedComputeVariants;_.L([_.Q(_.k.YtRendererBehavior),_.p("design:type",Object)],P6.prototype,"ytRendererBehavior",void 0);_.L([_.Q(_.u4.YtRendererstamperBehavior),_.p("design:type",Object)],P6.prototype,"ytRendererstamperBehavior",void 0);_.L([_.Q(_.Ms.YtComponentBehavior),_.p("design:type",Object)],P6.prototype,"componentBehavior",void 0);_.L([_.Q(_.Ts),_.p("design:type",Object)],P6.prototype,"ironResizableBehavior",void 0);
_.L([_.x(),_.p("design:type",Object)],P6.prototype,"data",void 0);_.L([_.x(),_.p("design:type",Object)],P6.prototype,"variantsExpanded",void 0);_.L([_.x(),_.p("design:type",Object)],P6.prototype,"hideShowMoreLessVariantButton",void 0);_.L([_.x({reflectToAttribute:!0}),_.p("design:type",Object)],P6.prototype,"initialized",void 0);_.L([_.A3("#items"),_.p("design:type",HTMLDivElement)],P6.prototype,"items",void 0);_.L([_.A3("#container"),_.p("design:type",HTMLDivElement)],P6.prototype,"container",void 0);
_.L([_.A3("#more-variants-button"),_.p("design:type",HTMLElement)],P6.prototype,"moreVariantsButton",void 0);_.L([_.S("data"),_.p("design:type",String),_.p("design:paramtypes",[])],P6.prototype,"selectedOptionName",null);_.L([_.O8("data","variantsExpanded"),_.gz("iron-resize"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],P6.prototype,"debouncedComputeVariants",null);
_.L([_.S("data"),_.p("design:type",String),_.p("design:paramtypes",[])],P6.prototype,"displayType",null);_.L([_.S("displayType"),_.p("design:type",Object),_.p("design:paramtypes",[])],P6.prototype,"variantItemsClassname",null);_.L([_.U({disableElementRegistration:!0,is:"ytd-product-details-variant-renderer"})],P6);
_.D(P6,"ytd-product-details-variant-renderer",function(){if(VCZ!==void 0)return VCZ;var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-product-details-variant-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="container" class="style-scope ytd-product-details-variant-renderer">\n  <div class="variant-title-container style-scope ytd-product-details-variant-renderer">\n    <div class="variant-title style-scope ytd-product-details-variant-renderer">[[data.title]]</div><div class="variant-selected-option style-scope ytd-product-details-variant-renderer">[[selectedOptionName]]</div>\n  </div>\n  <div class$="variant-items-container variant-items-container-[[variantItemsClassname]] style-scope ytd-product-details-variant-renderer">\n    <div id="items" class="style-scope ytd-product-details-variant-renderer"></div>\n  </div>\n  <template is="dom-if" if="[[!hideShowMoreLessVariantButton]]" class="style-scope ytd-product-details-variant-renderer">\n    <ytd-button-renderer class="show-more-less-variants-button style-scope ytd-product-details-variant-renderer" data="[[data.showMoreVariants.buttonRenderer]]" hidden$="[[variantsExpanded]]" noink="" on-click="onShowMoreLessVariantsButtonClick">\n    </ytd-button-renderer>\n    <ytd-button-renderer id="more-variants-button" class="show-more-less-variants-button style-scope ytd-product-details-variant-renderer" data="[[data.showLessVariants.buttonRenderer]]" hidden$="[[!variantsExpanded]]" noink="" on-click="onShowMoreLessVariantsButtonClick">\n    </ytd-button-renderer>\n  </template>\n</div>\n');a.content.insertBefore(_.w().content.cloneNode(!0),
a.content.firstChild);return VCZ=a},{mode:1});var Zn=function(){return _.G.apply(this,arguments)||this};
_.b(Zn,_.G);
Zn.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"}}}};
_.eH.Object.defineProperties(Zn.prototype,{showPurchaseData:{configurable:!0,enumerable:!0,get:function(){var a;return!((a=this.data)==null||!a.heroOfferRenderer)}},
showHeroOfferRenderer:{configurable:!0,enumerable:!0,get:function(){var a;return!((a=this.data)==null||!a.heroOfferRenderer)}},
showBrandText:{configurable:!0,enumerable:!0,get:function(){var a;return!((a=this.data)==null||!a.formattedByBrandText)}},
showOffers:{configurable:!0,enumerable:!0,get:function(){var a,z,I=(z=_.H((a=this.data)==null?void 0:a.offersContainerRenderer,k80))==null?void 0:z.offers;return I!==void 0&&(I==null?void 0:I.length)>1}},
showBuySeparator:{configurable:!0,enumerable:!0,get:function(){return this.showOffers&&this.showPurchaseData}},
showBuyCard:{configurable:!0,enumerable:!0,get:function(){return this.showOffers||this.showPurchaseData}},
selectedVariantsText:{configurable:!0,enumerable:!0,get:function(){var a,z,I;return((I=(a=this.data)==null?void 0:(z=a.variants)==null?void 0:z.map(function(J){var r,P;J=(P=(r=_.H(J,mwE))==null?void 0:r.variantOptionRenderers)==null?void 0:P.find(function(u){var E;return((E=_.H(u,ym0))==null?void 0:E.variantOptionState)==="VARIANT_OPTION_STATE_SELECTED"});
var N;return(N=_.H(J,ym0))==null?void 0:N.name}).filter(function(J){return typeof J==="string"}))!=null?I:[]).join(" \u2022 ")}},
shoppingReportingButtonData:{configurable:!0,enumerable:!0,get:function(){var a,z,I,J=(z=_.H((a=this.data)==null?void 0:a.shoppingFlaggingRenderer,cmY))==null?void 0:(I=z.reportButton)==null?void 0:I.buttonRenderer;if(J)return{text:J.text,command:J.command,icon:{iconType:"FLAG"},accessibilityData:J.accessibilityData,trackingParams:J.trackingParams,loggingDirectives:J.loggingDirectives}}}});
_.L([_.Q(_.k.YtRendererBehavior),_.p("design:type",Object)],Zn.prototype,"ytRendererBehavior",void 0);_.L([_.Q(_.u4.YtRendererstamperBehavior),_.p("design:type",Object)],Zn.prototype,"ytRendererstamperBehavior",void 0);_.L([_.Q(_.Ms.YtComponentBehavior),_.p("design:type",Object)],Zn.prototype,"componentBehavior",void 0);_.L([_.x(),_.p("design:type",Object)],Zn.prototype,"data",void 0);_.L([_.A3("#image-carousel-renderer"),_.p("design:type",Object)],Zn.prototype,"imageCarouselRenderer",void 0);
_.L([_.A3("#hero-offer-renderer"),_.p("design:type",Object)],Zn.prototype,"productDetailsHeroOfferRenderer",void 0);_.L([_.A3("#variants"),_.p("design:type",Object)],Zn.prototype,"productDetailsVariantRenderer",void 0);_.L([_.A3("#offers"),_.p("design:type",Object)],Zn.prototype,"productDetailsOffersContainerRenderer",void 0);_.L([_.A3("#description-renderer"),_.p("design:type",Object)],Zn.prototype,"productDetailsDescriptionRenderer",void 0);
_.L([_.S("data"),_.p("design:type",Boolean),_.p("design:paramtypes",[])],Zn.prototype,"showPurchaseData",null);_.L([_.S("data"),_.p("design:type",Boolean),_.p("design:paramtypes",[])],Zn.prototype,"showHeroOfferRenderer",null);_.L([_.S("data"),_.p("design:type",Boolean),_.p("design:paramtypes",[])],Zn.prototype,"showBrandText",null);_.L([_.S("data"),_.p("design:type",Boolean),_.p("design:paramtypes",[])],Zn.prototype,"showOffers",null);
_.L([_.S("showOffers","showPurchaseData"),_.p("design:type",Boolean),_.p("design:paramtypes",[])],Zn.prototype,"showBuySeparator",null);_.L([_.S("showOffers","showPurchaseData"),_.p("design:type",Boolean),_.p("design:paramtypes",[])],Zn.prototype,"showBuyCard",null);_.L([_.S("data"),_.p("design:type",String),_.p("design:paramtypes",[])],Zn.prototype,"selectedVariantsText",null);_.L([_.S("data"),_.p("design:type",Object),_.p("design:paramtypes",[])],Zn.prototype,"shoppingReportingButtonData",null);
_.L([_.U({disableElementRegistration:!0,is:"ytd-product-details-renderer"})],Zn);
_.D(Zn,"ytd-product-details-renderer",function(){if(bb4!==void 0)return bb4;var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-product-details-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="container style-scope ytd-product-details-renderer">\n  <div class="column column-image-carousel style-scope ytd-product-details-renderer">\n    <div id="image-carousel-renderer" class="style-scope ytd-product-details-renderer"></div>\n  </div>\n  <div class="column column-description style-scope ytd-product-details-renderer">\n    <div class="title-row row style-scope ytd-product-details-renderer">\n      <div class="style-scope ytd-product-details-renderer">[[getSimpleString(data.title)]]</div>\n      <div class="title-row-buttons row style-scope ytd-product-details-renderer">\n        <div id="share-button" class="style-scope ytd-product-details-renderer"></div>\n        <div id="action-button" class="style-scope ytd-product-details-renderer"></div>\n      </div>\n    </div>\n    <div class="brand-row row style-scope ytd-product-details-renderer">\n      <template is="dom-if" restamp="" if="[[showBrandText]]" class="style-scope ytd-product-details-renderer">\n        <yt-formatted-string class="formatted-brand style-scope ytd-product-details-renderer" text="[[data.formattedByBrandText]]">\n        </yt-formatted-string>\n      </template>\n    </div>\n    <div id="description-renderer" class="style-scope ytd-product-details-renderer"></div>\n    <div id="variants" class="style-scope ytd-product-details-renderer"></div>\n    <div class="buy style-scope ytd-product-details-renderer" hidden="[[!showBuyCard]]">\n      <div hidden="[[!showHeroOfferRenderer]]" id="hero-offer-renderer" class="style-scope ytd-product-details-renderer"></div>\n      <div class="style-scope ytd-product-details-renderer">\n        <hr class="buy-separator style-scope ytd-product-details-renderer" hidden="[[!showBuySeparator]]">\n        <div id="offers" hidden="[[!showOffers]]" class="style-scope ytd-product-details-renderer"></div>\n      </div>\n    </div>\n    <div class="buy offer-unavailable style-scope ytd-product-details-renderer" hidden="[[showBuyCard]]">\n        <yt-formatted-string class="offer-unavailable-title style-scope ytd-product-details-renderer" text="[[data.unavailableText]]">\n        </yt-formatted-string>\n        <div class="offer-unavailable-variants style-scope ytd-product-details-renderer">[[selectedVariantsText]]</div>\n    </div>\n    <div class="flagging-container style-scope ytd-product-details-renderer" hidden="[[!data.shoppingFlaggingRenderer]]">\n      <ytd-button-renderer id="flagging-button" data="[[shoppingReportingButtonData]]" class="style-scope ytd-product-details-renderer">\n      </ytd-button-renderer>\n    </div>\n  </div>\n</div>\n');a.content.insertBefore(_.w().content.cloneNode(!0),
a.content.firstChild);return bb4=a},{mode:1});var QBE;var S7V;var ibf;var Ck=function(){return _.G.apply(this,arguments)||this};
_.b(Ck,_.G);Ck.prototype.configureRendererStamper=function(){return{"data.vcIcon":{id:"vc-icon",mapping:{themedImageRenderer:{component:"yt-themed-image-renderer"}}}}};
_.eH.Object.defineProperties(Ck.prototype,{vcBalanceWidgetStyle:{configurable:!0,enumerable:!0,get:function(){return this.data&&this.data.style?this.data.style:"VC_BALANCE_WIDGET_STYLE_UNKNOWN"}}});
_.L([_.Q(_.k.YtRendererBehavior),_.p("design:type",Object)],Ck.prototype,"ytRendererBehavior",void 0);_.L([_.Q(_.u4.YtRendererstamperBehavior),_.p("design:type",Object)],Ck.prototype,"ytRendererstamperBehavior",void 0);_.L([_.x(),_.p("design:type",Object)],Ck.prototype,"data",void 0);_.L([_.x(),_.p("design:type",String)],Ck.prototype,"formattedAmount",void 0);_.L([_.x({reflectToAttribute:!0}),_.p("design:type",Object)],Ck.prototype,"ariaLabel",void 0);
_.L([_.x({reflectToAttribute:!0}),_.S("data.style"),_.p("design:type",String),_.p("design:paramtypes",[])],Ck.prototype,"vcBalanceWidgetStyle",null);_.L([_.dz({is:"yt-vc-balance-renderer",disableElementRegistration:!0})],Ck);
_.D(Ck,"yt-vc-balance-renderer",function(){if(ibf===void 0){var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-vc-balance-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.ypc.yt_vc_balance_renderer.yt.vc.balance.renderer.css.js--\x3e<div id="vc-icon" hidden$="[[!data.vcIcon]]" class="style-scope yt-vc-balance-renderer">\n</div>\n<p id="vc-balance" class="style-scope yt-vc-balance-renderer">[[formattedAmount]]</p>\n');a.content.insertBefore(_.w().content.cloneNode(!0),
a.content.firstChild);var z=a.content,I=z.insertBefore;S7V===void 0&&(S7V=document.createElement("template"));var J=S7V;I.call(z,J.content.cloneNode(!0),a.content.firstChild);ibf=a}a=ibf;return a},{mode:2});_.$q("vcBalanceRenderer","vcBalanceRenderer","ytd-vc-balance-renderer");var Nj=function(){return _.G.apply(this,arguments)||this};
_.b(Nj,_.G);_.eH.Object.defineProperties(Nj.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:""}}});
_.L([_.Q(_.k.YtRendererBehavior),_.p("design:type",Object)],Nj.prototype,"ytRendererBehavior",void 0);_.L([_.Q(_.pV),_.p("design:type",Object)],Nj.prototype,"ytdReduxBehavior",void 0);_.L([_.x(),_.p("design:type",Object)],Nj.prototype,"data",void 0);_.L([_.x({selectorArgs:["data.vcBalanceEntityKey"],selector:function(a,z){return _.Bd(a.entities,"vcBalanceEntity",z)}}),
_.p("design:type",Object)],Nj.prototype,"vcBalanceEntity",void 0);_.L([_.S("vcBalanceEntity"),_.p("design:type",String),_.p("design:paramtypes",[])],Nj.prototype,"formattedAmount",null);_.L([_.S("vcBalanceEntity"),_.p("design:type",String),_.p("design:paramtypes",[])],Nj.prototype,"vcBalanceAriaLabel",null);_.L([_.U({disableElementRegistration:!0,is:"ytd-vc-balance-renderer"})],Nj);
_.D(Nj,"ytd-vc-balance-renderer",function(){if(QBE!==void 0)return QBE;var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-vc-balance-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-vc-balance-renderer aria-label="[[vcBalanceAriaLabel]]" data="[[data]]" formatted-amount="[[formattedAmount]]" class="style-scope ytd-vc-balance-renderer">\n</yt-vc-balance-renderer>\n');
a.content.insertBefore(_.w().content.cloneNode(!0),a.content.firstChild);return QBE=a},{mode:1});var xu0;var tn=function(){var a=_.G.apply(this,arguments)||this;a.rotation=0;a.isReloading=!1;return a};
_.b(tn,_.G);tn.prototype.rotationChanged=function(){this.icon.style.transform="rotate("+(this.rotation+180)+"deg)";this.icon.style.opacity=""+(.7/360*this.rotation+.3)};
tn.prototype.reset=function(){this.hostElement.style.opacity=""};
tn.prototype.close=function(){var a=this;return _.t(function(z){if(z.nextAddress==1)return z.yield(a.hostElement.animate([{transform:"scale(1)",opacity:1},{transform:"scale(.4)",opacity:0}],{duration:150,easing:"cubic-bezier(.05, 0, 0, 1)"}).finished,2);a.hostElement.style.opacity="0";_.nu(z)})};
tn.prototype.rotationChanged=tn.prototype.rotationChanged;_.L([_.x(),_.p("design:type",Object)],tn.prototype,"rotation",void 0);_.L([_.x({reflectToAttribute:!0}),_.p("design:type",Object)],tn.prototype,"isReloading",void 0);_.L([_.A3("#icon"),_.p("design:type",HTMLElement)],tn.prototype,"icon",void 0);_.L([_.O8("rotation"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],tn.prototype,"rotationChanged",null);
_.L([_.U({disableElementRegistration:!0,is:"ytd-refresh"})],tn);
_.D(tn,"ytd-refresh",function(){if(xu0!==void 0)return xu0;var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-refresh--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-icon id="icon" hidden="[[isReloading]]" icon="refresh" class="style-scope ytd-refresh"></yt-icon>\n<tp-yt-paper-spinner-lite active="[[isReloading]]" hidden="[[!isReloading]]" class="style-scope ytd-refresh">\n</tp-yt-paper-spinner-lite>\n');a.content.insertBefore(_.w().content.cloneNode(!0),
a.content.firstChild);return xu0=a},{mode:1});var vfZ;var uB=function(){return _.G.apply(this,arguments)||this};
_.b(uB,_.G);uB.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"}}}};
uB.prototype.dataChanged=function(){if(this.data){var a=this.hasBannerArt;this.hasBannerArt=!1;if(this.data&&this.data.banner){var z=_.r4(this.data.banner.thumbnails,this.hostElement.clientWidth);z&&(z.indexOf("//")===0&&(z="https:"+z),this.hasBannerArt=!0,_.uK(this.hostElement,{"--ytd-interactive-tabbed-header-renderer-banner-url":"url("+z+")"}))}this.hasBannerArt!==a&&_.PK(this.hostElement).querySelector("#header").fire("iron-resize")}};
uB.prototype.updateSelectedFromBinding=function(a){this.selected=a.detail.value};
uB.prototype.dataChanged=uB.prototype.dataChanged;_.L([_.Q(e5Z),_.p("design:type",Object)],uB.prototype,"ytdTabbedHeaderBehavior",void 0);_.L([_.Q(_.u4.YtRendererstamperBehavior),_.p("design:type",Object)],uB.prototype,"ytRendererstamperBehavior",void 0);_.L([_.Q(_.kI),_.p("design:type",Object)],uB.prototype,"ytdGridStateAwareBehavior",void 0);_.L([_.Q(_.cZ.YtdGuideStateAwareBehavior),_.p("design:type",Object)],uB.prototype,"ytdGuideStateAwareBehavior",void 0);
_.L([_.Q(_.Ms.YtComponentBehavior),_.p("design:type",Object)],uB.prototype,"componentBehavior",void 0);_.L([_.x(),_.p("design:type",Object)],uB.prototype,"data",void 0);_.L([_.x(),_.p("design:type",Number)],uB.prototype,"selected",void 0);_.L([_.x(),_.p("design:type",Boolean)],uB.prototype,"active",void 0);_.L([_.x({reflectToAttribute:!0}),_.p("design:type",Boolean)],uB.prototype,"hasBannerArt",void 0);
_.L([_.Fe("data"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],uB.prototype,"dataChanged",null);_.L([_.U({is:"ytd-interactive-tabbed-header-renderer",disableElementRegistration:!0})],uB);
_.D(uB,"ytd-interactive-tabbed-header-renderer",function(){if(vfZ!==void 0)return vfZ;var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-interactive-tabbed-header-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<tp-yt-app-header-layout class="style-scope ytd-interactive-tabbed-header-renderer"><tp-yt-app-header id="header" slot="header" condenses="" disabled="[[!active]]" effects="parallax-background" effects-config="{&quot;parallax-background&quot;: {&quot;scalar&quot;: 0.5}}" fixed="" class="style-scope ytd-interactive-tabbed-header-renderer"><svg id="bg" viewBox="0 0 1439 304" preserveAspectRatio="xMinYMid slice" class="style-scope ytd-interactive-tabbed-header-renderer"><path opacity="0.5" d="M 0,304 V 0 H 963 L 1439,304 Z" class="style-scope ytd-interactive-tabbed-header-renderer"></path><path opacity="0.5" d="M 0,0 l 0,304 580,0 L 1055,0 0,0 Z" class="style-scope ytd-interactive-tabbed-header-renderer"></path><path opacity="0.9" d="M 0,304 V 0 H 780 L 1247,304 Z" class="style-scope ytd-interactive-tabbed-header-renderer"></path></svg><div id="content-container" class="style-scope ytd-interactive-tabbed-header-renderer"><div id="content" class="style-scope ytd-interactive-tabbed-header-renderer"><yt-img-shadow id="box-art" object-fit="COVER" thumbnail="[[data.boxArt]]" class="style-scope ytd-interactive-tabbed-header-renderer"></yt-img-shadow><div id="details" class="style-scope ytd-interactive-tabbed-header-renderer"><div id="title" class="style-scope ytd-interactive-tabbed-header-renderer">[[getSimpleString(data.title)]]</div><div id="auto-generated" hidden="[[!data.autoGenerated]]" class="style-scope ytd-interactive-tabbed-header-renderer">[[getSimpleString(data.autoGenerated)]]</div><div id="description" class="style-scope ytd-interactive-tabbed-header-renderer">[[getSimpleString(data.description)]]</div><div id="metadata" class="style-scope ytd-interactive-tabbed-header-renderer">[[getSimpleString(data.metadata)]]</div><ytd-badge-supported-renderer badges="[[data.badges]]" class="style-scope ytd-interactive-tabbed-header-renderer"></ytd-badge-supported-renderer><div id="buttons" class="style-scope ytd-interactive-tabbed-header-renderer"></div></div></div></div><tp-yt-app-toolbar sticky="" class="style-scope ytd-interactive-tabbed-header-renderer"><div id="tabs-container" class="style-scope ytd-interactive-tabbed-header-renderer"><div id="tabs-inner-container" class="style-scope ytd-interactive-tabbed-header-renderer"><tp-yt-paper-tabs noink="" scrollable="" selected="[[selected]]" on-iron-activate="onTabsActivate" on-selected-changed="updateSelectedFromBinding" class="style-scope ytd-interactive-tabbed-header-renderer"><template is="dom-repeat" items="[[tabs]]" class="style-scope ytd-interactive-tabbed-header-renderer"><tp-yt-paper-tab hidden="[[!item.tabRenderer]]" class="style-scope ytd-interactive-tabbed-header-renderer">\n                [[item.tabRenderer.title]]\n              </tp-yt-paper-tab></template></tp-yt-paper-tabs></div></div></tp-yt-app-toolbar></tp-yt-app-header></tp-yt-app-header-layout>');a.content.insertBefore(_.w().content.cloneNode(!0),
a.content.firstChild);return vfZ=a},{mode:1});var GRZ;var Ey=function(){return _.G.apply(this,arguments)||this};
_.b(Ey,_.G);Ey.prototype.configureRendererStamper=function(){return{"data.leftActions":{id:"left-actions",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.actions":{id:"actions",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
Ey.prototype.computeActionsAlignment=function(a){return(a==null?void 0:a.actionsAlignment)||""};
_.L([_.Q(_.k.YtRendererBehavior),_.p("design:type",Object)],Ey.prototype,"ytRendererBehavior",void 0);_.L([_.Q(_.u4.YtRendererstamperBehavior),_.p("design:type",Object)],Ey.prototype,"ytRendererstamperBehavior",void 0);_.L([_.x(),_.p("design:type",Object)],Ey.prototype,"data",void 0);_.L([_.x({reflectToAttribute:!0,computed:"computeActionsAlignment(data)"}),_.p("design:type",String)],Ey.prototype,"actionsAlignment",void 0);_.L([_.U({is:"ytd-page-footer-renderer",disableElementRegistration:!0})],Ey);
_.D(Ey,"ytd-page-footer-renderer",function(){if(GRZ!==void 0)return GRZ;var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-page-footer-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="left-actions" class="style-scope ytd-page-footer-renderer"></div>\n<div id="actions" class="style-scope ytd-page-footer-renderer"></div>\n');a.content.insertBefore(_.w().content.cloneNode(!0),
a.content.firstChild);return GRZ=a},{mode:1});var $uM;var Xfz;var B6=function(){var a=_.G.apply(this,arguments)||this;a.isEditing=!1;a.useSlot=!1;a.isMultiline=!1;return a};
_.b(B6,_.G);_.Z=B6.prototype;_.Z.onKeydown=function(a){if(a.keyCode===13&&!this.isMultiline)this.onSave();else if(a.keyCode===27)this.onCancel()};
_.Z.computeComponentStyle=function(a){return(a==null?0:a.style)?a.style:"INLINE_FORM_STYLE_UNKNOWN"};
_.Z.computeisMultiline=function(a){if(this.multilineOverride!==void 0)return this.multilineOverride;var z,I;return!!(a==null?0:(z=a.formField)==null?0:(I=z.textInputFormFieldRenderer)==null?0:I.isMultiline)};
_.Z.computeTextDisplayed=function(a,z){if(a)return a;if(z)return z};
_.Z.onEdit=function(){this.isEditing=!0;this.textForm.focusTextInput()};
_.Z.onSave=function(){if(this.textForm.validate()){this.textForm.save();var a=this.textForm.value;if(a)this.set("data.textDisplayed",_.Mo(a));else{var z;((z=this.data)==null?0:z.placeholder)&&this.set("data.textDisplayed",this.data.placeholder)}this.hostElement.dispatchEvent(new _.eY("inline-form-changed",this.data));this.isEditing=!1}};
_.Z.onCancel=function(){var a=_.cd(this.data.textDisplayed);a===this.data.placeholder?this.textForm.reset(""):this.textForm.reset(a);this.isEditing=!1};
B6.prototype.onKeydown=B6.prototype.onKeydown;_.L([_.Q(_.iO.YtEventForwardingBehavior),_.p("design:type",Object)],B6.prototype,"ytEventForwardingBehavior",void 0);_.L([_.Q(_.u4.YtRendererstamperBehavior),_.p("design:type",Object)],B6.prototype,"ytRendererstamperBehavior",void 0);_.L([_.Q(_.k.YtRendererBehavior),_.p("design:type",Object)],B6.prototype,"ytRendererBehavior",void 0);_.L([_.x(),_.p("design:type",Object)],B6.prototype,"data",void 0);
_.L([_.x({reflectToAttribute:!0}),_.p("design:type",Object)],B6.prototype,"isEditing",void 0);_.L([_.x(),_.p("design:type",Object)],B6.prototype,"useSlot",void 0);_.L([_.x(),_.p("design:type",Boolean)],B6.prototype,"multilineOverride",void 0);_.L([_.x(),_.p("design:type",Boolean)],B6.prototype,"enableOverlayTheme",void 0);_.L([_.x({reflectToAttribute:!0,computed:"computeComponentStyle(data)"}),_.p("design:type",String)],B6.prototype,"componentStyle",void 0);
_.L([_.x({computed:"computeisMultiline(data)"}),_.p("design:type",Object)],B6.prototype,"isMultiline",void 0);_.L([_.A3("#text-form"),_.p("design:type",Object)],B6.prototype,"textForm",void 0);_.L([_.gz("keydown"),_.p("design:type",Function),_.p("design:paramtypes",[KeyboardEvent]),_.p("design:returntype")],B6.prototype,"onKeydown",null);_.L([_.U({is:"ytd-inline-form-renderer",disableElementRegistration:!0})],B6);
_.D(B6,"ytd-inline-form-renderer",function(){if(Xfz!==void 0)return Xfz;var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-inline-form-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="display-dialog" hidden="[[isEditing]]" class="style-scope ytd-inline-form-renderer">\n  <template is="dom-if" restamp="" if="[[useSlot]]" class="style-scope ytd-inline-form-renderer">\n    <slot name="text-display" id="text-displayed" class="style-scope ytd-inline-form-renderer"></slot>\n  </template>\n  <template is="dom-if" restamp="" if="[[!useSlot]]" class="style-scope ytd-inline-form-renderer">\n    <yt-formatted-string id="text-displayed" split-lines="" text="[[computeTextDisplayed(data.textDisplayed, data.placeholder)]]" class="style-scope ytd-inline-form-renderer">\n    </yt-formatted-string>\n  </template>\n</div>\n<ytd-button-renderer id="edit-button" button-tooltip-position="left" data="[[data.editButton.buttonRenderer]]" hidden="[[isEditing]]" on-click="onEdit" class="style-scope ytd-inline-form-renderer">\n</ytd-button-renderer>\n<div id="edit-dialog" hidden="[[!isEditing]]" class="style-scope ytd-inline-form-renderer">\n  <yt-text-input-form-field-renderer id="text-form" component-style="[[componentStyle]]" data="[[data.formField.textInputFormFieldRenderer]]" enable-overlay-theme="[[enableOverlayTheme]]" is-multiline-override="[[isMultilineOverride]]" no-label-float="" required-error-message="[[addToStrings.REQUIRED_LABEL]]" class="style-scope ytd-inline-form-renderer">\n  </yt-text-input-form-field-renderer>\n  <div id="edit-buttons" class="style-scope ytd-inline-form-renderer">\n    <ytd-button-renderer id="cancel-button" data="[[data.cancelButton.buttonRenderer]]" on-click="onCancel" class="style-scope ytd-inline-form-renderer">\n    </ytd-button-renderer>\n    <ytd-button-renderer id="save-button" data="[[data.saveButton.buttonRenderer]]" on-click="onSave" class="style-scope ytd-inline-form-renderer">\n    </ytd-button-renderer>\n  </div>\n</div>\n');
a.content.insertBefore(_.w().content.cloneNode(!0),a.content.firstChild);return Xfz=a},{mode:1});var TpY;var gX=function(){var a=_.G.apply(this,arguments)||this;a.previousSelectValue=void 0;a.selectedItemMessage=void 0;return a};
_.b(gX,_.G);gX.prototype.detached=function(){this.selectedItemMessage=this.previousSelectValue=void 0};
gX.prototype.selectedValueChanged=function(){if(this.selectedValue!==void 0){var a,z,I,J,r=(a=this.data)==null?void 0:(z=a.dropdown)==null?void 0:(I=z.dropdownRenderer)==null?void 0:(J=I.entries)==null?void 0:J.map(function(u){return u.privacyDropdownItemRenderer});
a=_.C(r!=null?r:[]);for(z=a.next();!z.done;z=a.next())if((z=z.value)&&z.int32Value===this.selectedValue){this.selectedItemMessage=z.itemMessage;break}}else this.selectedItemMessage=void 0;var P;(P=this.onValueChanged)==null||P.call(this);if(this.selectedValue!==-1)if(this.previousSelectValue===void 0)this.previousSelectValue=this.selectedValue;else if(this.previousSelectValue!==this.selectedValue){var N;(N=this.data)!=null&&N.key&&this.data.onChange&&(this.set(this.data.key,this.selectedValue,this.data.onChange),
this.ytComponentBehavior.resolveCommand(this.data.onChange),this.previousSelectValue=this.selectedValue)}};
gX.prototype.onValueChangedForSelectedValue=function(a){this.selectedValue=a.detail.value};
gX.prototype.selectedValueChanged=gX.prototype.selectedValueChanged;_.L([_.Q(_.iO.YtEventForwardingBehavior),_.p("design:type",Object)],gX.prototype,"ytEventForwardingBehavior",void 0);_.L([_.Q(_.Ms.YtComponentBehavior),_.p("design:type",Object)],gX.prototype,"ytComponentBehavior",void 0);_.L([_.Q(_.u4.YtRendererstamperBehavior),_.p("design:type",Object)],gX.prototype,"ytRendererstamperBehavior",void 0);
_.L([_.Q(_.k.YtRendererBehavior),_.p("design:type",Object)],gX.prototype,"ytRendererBehavior",void 0);_.L([_.x(),_.p("design:type",Object)],gX.prototype,"data",void 0);_.L([_.x(),_.p("design:type",String)],gX.prototype,"theme",void 0);_.L([_.x({reflectToAttribute:!0}),_.p("design:type",Number)],gX.prototype,"selectedValue",void 0);_.L([_.x(),_.p("design:type",Function)],gX.prototype,"onValueChanged",void 0);
_.L([_.Fe("selectedValue"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],gX.prototype,"selectedValueChanged",null);_.L([_.U({is:"ytd-dropdown-form-field-renderer",disableElementRegistration:!0})],gX);
_.D(gX,"ytd-dropdown-form-field-renderer",function(){if(TpY!==void 0)return TpY;var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-dropdown-form-field-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="style-scope ytd-dropdown-form-field-renderer">\n  <ytd-dropdown-renderer id="dropdown" autosize="" data="[[data.dropdown.dropdownRenderer]]" min-autosize-width="0" no-label-float="" no-underline="" theme="[[theme]]" value="[[selectedValue]]" on-value-changed="onValueChangedForSelectedValue" class="style-scope ytd-dropdown-form-field-renderer">\n  </ytd-dropdown-renderer>\n  <yt-formatted-string id="selected-item-message" hidden="[[!selectedItemMessage]]" text="[[selectedItemMessage]]" class="style-scope ytd-dropdown-form-field-renderer">\n  </yt-formatted-string>\n</div>\n');a.content.insertBefore(_.w().content.cloneNode(!0),
a.content.firstChild);return TpY=a},{mode:_.Np("kevlar_poly_si_batch_j025")?1:2});var du0;var Oy=function(){return _.G.apply(this,arguments)||this};
_.b(Oy,_.G);_.eH.Object.defineProperties(Oy.prototype,{byline:{configurable:!0,enumerable:!0,get:function(){for(var a=[],z=_.C(this.data||[]),I=z.next();!I.done;I=z.next())(I=_.H(I.value,YIE))&&a.push(I);return a}}});
_.L([_.x(),_.p("design:type",Array)],Oy.prototype,"data",void 0);_.L([_.S("data"),_.p("design:type",Object),_.p("design:paramtypes",[])],Oy.prototype,"byline",null);_.L([_.U({is:"ytd-playlist-byline-renderer",disableElementRegistration:!0})],Oy);
_.D(Oy,"ytd-playlist-byline-renderer",function(){if(du0!==void 0)return du0;var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-playlist-byline-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="metadata-stats style-scope ytd-playlist-byline-renderer">\n  <template is="dom-repeat" items="[[byline]]" class="style-scope ytd-playlist-byline-renderer">\n    <yt-icon id="byline-icon" hidden="[[!item.icon]]" icon="[[item.icon.iconType]]" class="style-scope ytd-playlist-byline-renderer"></yt-icon>\n    <yt-formatted-string class="byline-item style-scope ytd-playlist-byline-renderer" text="[[item.text]]"></yt-formatted-string>\n  </template>\n</div>');a.content.insertBefore(_.w().content.cloneNode(!0),
a.content.firstChild);return du0=a},{mode:1});var WnG;var fk=function(){var a=_.G.apply(this,arguments)||this;a.rtlBullet=_.K("web_playlist_stats_rtl_bullet_icon_killswitch");a.modern=_.K("web_modern_buttons");a.actionMap={"yt-update-playlist-action":"onUpdatePlaylistAction"};return a};
_.b(fk,_.G);_.Z=fk.prototype;_.Z.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"}}}}};
_.Z.attached=function(){};
_.Z.computeIsCustomThumbnail=function(a){return a?!!a.playlistCustomThumbnailRenderer:!1};
_.Z.onYtNavigate=function(a,z){if(z&&z.actions&&z.actions.indexOf("shuffle")>-1){a=_.ab().resolve(_.wR);var I=z.tempData||{};I.watch_params=this.get("menu.menuRenderer.topLevelButtons[1].buttonRenderer.navigationEndpoint.watchEndpoint.params",this.data);z.tempData=I;a.isShuffleNextPlaylist=!0}};
_.Z.onUpdatePlaylistAction=function(a){var z;a=(z=_.H(a,_.RSw))==null?void 0:z.updatedRenderer;if(z=_.H(a,UK))this.data=z};
_.Z.computeStyleType=function(a){return a?a.toLowerCase().replace(/_/g,"-"):""};
_.Z.computeThumbnailWidth=function(a){return a==="PLAYLIST_SIDEBAR_PRIMARY_INFO_RENDERER_STYLE_TYPE_SHOW"?412:357};
_.Z.computeHideThumbnailAria=function(a){if(a==null?0:a.thumbnailOverlays)for(var z=0;z<a.thumbnailOverlays.length;z++){var I=void 0;if((I=a.thumbnailOverlays[z])==null?0:I.tvfilmShowWatchForwardOverlayRenderer)return!1}return!0};
fk.prototype.onYtNavigate=fk.prototype.onYtNavigate;_.L([_.Q(_.u4.YtRendererstamperBehavior),_.p("design:type",Object)],fk.prototype,"ytRendererstamperBehavior",void 0);_.L([_.Q(_.Hc.YtActionHandlerBehavior),_.p("design:type",Object)],fk.prototype,"ytActionHandlerBehavior",void 0);_.L([_.Q(_.k.YtRendererBehavior),_.p("design:type",Object)],fk.prototype,"ytRendererBehavior",void 0);_.L([_.Q(_.Ms.YtComponentBehavior),_.p("design:type",Object)],fk.prototype,"ytComponentBehavior",void 0);
_.L([_.x(),_.p("design:type",Object)],fk.prototype,"data",void 0);_.L([_.x({reflectToAttribute:!0}),_.p("design:type",Object)],fk.prototype,"rtlBullet",void 0);_.L([_.x({reflectToAttribute:!0,computed:"computeStyleType(data.style)"}),_.p("design:type",String)],fk.prototype,"styleType",void 0);_.L([_.x({reflectToAttribute:!0,computed:"computeThumbnailWidth(data.style)"}),_.p("design:type",Number)],fk.prototype,"thumbnailWidth",void 0);
_.L([_.x({reflectToAttribute:!0}),_.p("design:type",Object)],fk.prototype,"modern",void 0);_.L([_.x({reflectToAttribute:!0,computed:"computeIsCustomThumbnail(data.thumbnailRenderer)"}),_.p("design:type",Boolean)],fk.prototype,"isCustomThumbnail",void 0);_.L([_.gz("yt-navigate"),_.p("design:type",Function),_.p("design:paramtypes",[Event,Object]),_.p("design:returntype")],fk.prototype,"onYtNavigate",null);_.L([_.U({is:"ytd-playlist-sidebar-primary-info-renderer",disableElementRegistration:!0})],fk);
_.D(fk,"ytd-playlist-sidebar-primary-info-renderer",function(){if(WnG!==void 0)return WnG;var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-playlist-sidebar-primary-info-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<ytd-playlist-thumbnail bottom-side-panel="" custom-thumbnail-size="[[thumbnailWidth]]" data="[[data]]" hidden="[[!data.thumbnailRenderer]]" hide-aria="[[computeHideThumbnailAria(data)]]" width="[[thumbnailWidth]]" class="style-scope ytd-playlist-sidebar-primary-info-renderer"></ytd-playlist-thumbnail><h1 id="title" hidden="[[!data.title]]" class="style-scope ytd-playlist-sidebar-primary-info-renderer"><yt-formatted-string link-inherit-color="" text="[[data.title]]" class="style-scope ytd-playlist-sidebar-primary-info-renderer"></yt-formatted-string></h1><template is="dom-if" restamp="" if="[[data.titleForm]]" class="style-scope ytd-playlist-sidebar-primary-info-renderer"><ytd-inline-form-renderer id="title-form" data="[[data.titleForm.inlineFormRenderer]]" class="style-scope ytd-playlist-sidebar-primary-info-renderer"></ytd-inline-form-renderer></template><div id="stats" hidden="[[!data.stats]]" class="style-scope ytd-playlist-sidebar-primary-info-renderer"><template is="dom-repeat" items="[[data.stats]]" class="style-scope ytd-playlist-sidebar-primary-info-renderer"><yt-formatted-string text="[[item]]" class="style-scope ytd-playlist-sidebar-primary-info-renderer"></yt-formatted-string></template></div><div id="privacy-stats" class="style-scope ytd-playlist-sidebar-primary-info-renderer"><ytd-badge-supported-renderer id="badges" badges="[[data.badges]]" hidden="[[!data.badges]]" class="style-scope ytd-playlist-sidebar-primary-info-renderer"></ytd-badge-supported-renderer><div id="show-stats" hidden="[[!data.showStats]]" class="style-scope ytd-playlist-sidebar-primary-info-renderer"><template is="dom-repeat" items="[[data.showStats]]" class="style-scope ytd-playlist-sidebar-primary-info-renderer"><yt-formatted-string text="[[item]]" class="style-scope ytd-playlist-sidebar-primary-info-renderer"></yt-formatted-string></template></div><template is="dom-if" restamp="" if="[[data.privacyForm]]" class="style-scope ytd-playlist-sidebar-primary-info-renderer"><ytd-dropdown-form-field-renderer id="privacy-form" data="[[data.privacyForm.dropdownFormFieldRenderer]]" class="style-scope ytd-playlist-sidebar-primary-info-renderer"></ytd-dropdown-form-field-renderer></template></div><div id="play-buttons" class="style-scope ytd-playlist-sidebar-primary-info-renderer"></div><div id="menu" class="style-scope ytd-playlist-sidebar-primary-info-renderer"></div><template is="dom-if" restamp="" if="[[data.description]]" class="style-scope ytd-playlist-sidebar-primary-info-renderer"><ytd-expander max-number-of-lines="20" class="style-scope ytd-playlist-sidebar-primary-info-renderer"><div id="description" slot="content" class="style-scope ytd-playlist-sidebar-primary-info-renderer"><yt-formatted-string id="description" split-lines="" text="[[data.description]]" class="style-scope ytd-playlist-sidebar-primary-info-renderer"></yt-formatted-string></div><yt-formatted-string class="more-button style-scope ytd-playlist-sidebar-primary-info-renderer" slot="more-button" hidden="[[!data.showMoreText]]" role="button" text="[[data.showMoreText]]"></yt-formatted-string></ytd-expander></template><template is="dom-if" restamp="" if="[[data.descriptionForm]]" class="style-scope ytd-playlist-sidebar-primary-info-renderer"><ytd-expander max-number-of-lines="20" class="style-scope ytd-playlist-sidebar-primary-info-renderer"><div id="description-form" slot="content" class="style-scope ytd-playlist-sidebar-primary-info-renderer"><ytd-inline-form-renderer id="description-form" data="[[data.descriptionForm.inlineFormRenderer]]" class="style-scope ytd-playlist-sidebar-primary-info-renderer"></ytd-inline-form-renderer></div><yt-formatted-string class="more-button style-scope ytd-playlist-sidebar-primary-info-renderer" slot="more-button" hidden="[[!data.showMoreText]]" role="button" text="[[data.showMoreText]]"></yt-formatted-string></ytd-expander></template>');
a.content.insertBefore(_.w().content.cloneNode(!0),a.content.firstChild);return WnG=a},{mode:1});var ofz;var An=function(){return _.G.apply(this,arguments)||this};
_.b(An,_.G);An.prototype.computeOwnerVisibility=function(a){return!(!a.videoOwner&&!a.button)};
An.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"}}}};
_.L([_.Q(_.k.YtRendererBehavior),_.p("design:type",Object)],An.prototype,"ytRendererBehavior",void 0);_.L([_.Q(_.u4.YtRendererstamperBehavior),_.p("design:type",Object)],An.prototype,"ytRendererstamperBehavior",void 0);_.L([_.x(),_.p("design:type",Object)],An.prototype,"data",void 0);_.L([_.U({is:"ytd-playlist-sidebar-secondary-info-renderer",disableElementRegistration:!0})],An);
_.D(An,"ytd-playlist-sidebar-secondary-info-renderer",function(){if(ofz!==void 0)return ofz;var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-playlist-sidebar-secondary-info-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-formatted-string id="title" hidden="[[!data.title]]" split-lines="" text="[[data.title]]" class="style-scope ytd-playlist-sidebar-secondary-info-renderer">\n</yt-formatted-string>\n<div id="owner-container" hidden$="[[!computeOwnerVisibility(data)]]" class="style-scope ytd-playlist-sidebar-secondary-info-renderer">\n  <div id="video-owner" class="style-scope ytd-playlist-sidebar-secondary-info-renderer"></div>\n  <div id="button" class="style-scope ytd-playlist-sidebar-secondary-info-renderer"></div>\n</div>\n<yt-formatted-string id="description" split-lines="" text="[[data.description]]" class="style-scope ytd-playlist-sidebar-secondary-info-renderer">\n</yt-formatted-string>\n');
a.content.insertBefore(_.w().content.cloneNode(!0),a.content.firstChild);return ofz=a},{mode:1});var UuM;var sy=function(){var a=_.G.apply(this,arguments)||this;a.expanded=!1;a.isCompact=!1;return a};
_.b(sy,_.G);_.Z=sy.prototype;_.Z.attached=function(){this.ytdAutoScrollBehavior.scrollTarget=this.text};
_.Z.dataChanged=function(){this.data&&_.YP(_.PK(this.text),_.ble(_.QwE,_.cd(this.data.text||null)))};
_.Z.computeAutoScrollEnabled=function(a,z){return a&&!z};
_.Z.expandedChanged=function(){this.expanderIcon.icon="yt-icons:expand-"+(this.expanded?"less":"more")};
_.Z.toggleOnTap=function(){this.expanded=!this.expanded};
sy.prototype.expandedChanged=sy.prototype.expandedChanged;sy.prototype.dataChanged=sy.prototype.dataChanged;_.L([_.Q(_.TXi),_.p("design:type",Object)],sy.prototype,"ytdAutoScrollBehavior",void 0);_.L([_.Q(_.k.YtRendererBehavior),_.p("design:type",Object)],sy.prototype,"ytRendererBehavior",void 0);_.L([_.x(),_.p("design:type",Object)],sy.prototype,"data",void 0);_.L([_.x({reflectToAttribute:!0}),_.p("design:type",Object)],sy.prototype,"expanded",void 0);
_.L([_.x({reflectToAttribute:!0}),_.p("design:type",Object)],sy.prototype,"isCompact",void 0);_.L([_.x({computed:"computeAutoScrollEnabled(data.autoscroll, expanded)"}),_.p("design:type",Boolean)],sy.prototype,"autoScrollEnabled",void 0);_.L([_.A3("#text"),_.p("design:type",Object)],sy.prototype,"text",void 0);_.L([_.A3("#expander-icon"),_.p("design:type",Object)],sy.prototype,"expanderIcon",void 0);
_.L([_.O8("data"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],sy.prototype,"dataChanged",null);_.L([_.O8("expanded"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],sy.prototype,"expandedChanged",null);_.L([_.U({disableElementRegistration:!0,is:"ytd-channel-legal-info-renderer"})],sy);
_.D(sy,"ytd-channel-legal-info-renderer",function(){if(UuM!==void 0)return UuM;var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-channel-legal-info-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-formatted-string id="text" class="style-scope ytd-channel-legal-info-renderer"></yt-formatted-string>\n<tp-yt-paper-material id="expand-button" elevation="1" on-click="toggleOnTap" class="style-scope ytd-channel-legal-info-renderer">\n  <yt-icon-button class="style-scope ytd-channel-legal-info-renderer">\n    <yt-icon id="expander-icon" class="style-scope ytd-channel-legal-info-renderer"></yt-icon>\n  </yt-icon-button>\n</tp-yt-paper-material>\n');a.content.insertBefore(_.w().content.cloneNode(!0),
a.content.firstChild);return UuM=a},{mode:1});var DuM;var RmV=_.AR("DOWNLOAD",{},"Download"),Ln0=_.AR("DOWNLOADING",{},"Downloading"),l$f=_.AR("DOWNLOADED",{},"Downloaded"),nk=function(){var a=_.G.apply(this,arguments)||this;a.downloadProgress=0;a.isDownloadComplete=!1;a.transferState="TRANSFER_STATE_UNKNOWN";return a};
_.b(nk,_.G);_.Z=nk.prototype;_.Z.attached=function(){this.hostElement.hasAttribute("button-renderer")||this.hostElement.setAttribute("button-renderer","true")};
_.Z.dataChanged=function(){var a;(a=this.data)!=null&&a.tooltip||(a=_.Ur(_.qo().getState(),this.playlistId),this.updateButtonState(a))};
_.Z.computePlaylistId=function(a){return a};
_.Z.onTransferStateChanged=function(){this.updateButtonState(this.transferState)};
_.Z.updateButtonState=function(a){if(this.data&&(this.data.tooltip!==Ln0||!_.Hd(a))){this.isDownloadComplete=!1;switch(a){case "TRANSFER_STATE_UNKNOWN":a=RmV;var z="OFFLINE_DOWNLOAD";var I="ACTION_ADD";break;case "TRANSFER_STATE_FAILED":case "TRANSFER_STATE_COMPLETE":a=l$f;z="OFFLINE_PIN";I="ACTION_REMOVE_WITH_PROMPT";this.isDownloadComplete=!0;break;case "TRANSFER_STATE_PRE_TRANSFER":case "TRANSFER_STATE_TRANSFER_IN_QUEUE":case "TRANSFER_STATE_TRANSFERRING":a=Ln0;z="OFFLINE_DOWNLOADING_ZERO";I="ACTION_REMOVE_WITH_PROMPT";
break;default:a=RmV,z="OFFLINE_DOWNLOAD",I="ACTION_ADD"}var J=Object.assign({},this.data);J.tooltip=a;J.accessibilityData={accessibilityData:{label:a}};J.icon={iconType:z};J.size="SIZE_DEFAULT";_.H(J.command,_.nU)&&(_.H(J.command,_.nU).action=I);this.set("data",J)}};
_.Z.updateProgress=function(){if(this.data&&this.transferState!=="TRANSFER_STATE_COMPLETE"){this.isDownloadComplete=!1;var a="OFFLINE_DOWNLOAD";this.downloadProgress>0&&this.downloadProgress<=.1?a="OFFLINE_DOWNLOADING_ZERO":this.downloadProgress>.1&&this.downloadProgress<=.3?a="OFFLINE_DOWNLOADING_TWENTY":this.downloadProgress>.3&&this.downloadProgress<=.5?a="OFFLINE_DOWNLOADING_FORTY":this.downloadProgress>.5&&this.downloadProgress<=.7?a="OFFLINE_DOWNLOADING_SIXTY":this.downloadProgress>.7&&this.downloadProgress<
1?a="OFFLINE_DOWNLOADING_EIGHTY":this.downloadProgress===1&&(a="OFFLINE_PIN",this.isDownloadComplete=!0);var z;a!==((z=this.data.icon)==null?void 0:z.iconType)&&(z=Object.assign({},this.data),z.tooltip=Ln0,z.accessibilityData={accessibilityData:{label:Ln0}},z.icon={iconType:a},_.H(z.command,_.nU)&&(_.H(z.command,_.nU).action="ACTION_REMOVE_WITH_PROMPT"),this.set("data",z))}};
nk.prototype.updateProgress=nk.prototype.updateProgress;nk.prototype.onTransferStateChanged=nk.prototype.onTransferStateChanged;nk.prototype.dataChanged=nk.prototype.dataChanged;_.L([_.Q(_.k.YtRendererBehavior),_.p("design:type",Object)],nk.prototype,"ytRendererBehavior",void 0);_.L([_.Q(_.pV),_.p("design:type",Object)],nk.prototype,"ytdReduxBehavior",void 0);_.L([_.x({value:!1}),_.p("design:type",Boolean)],nk.prototype,"forceIconButton",void 0);
_.L([_.x({value:!0}),_.p("design:type",Boolean)],nk.prototype,"forceIconOnly",void 0);_.L([_.x({value:!1}),_.p("design:type",Boolean)],nk.prototype,"overrides",void 0);_.L([_.x({value:!1}),_.p("design:type",Boolean)],nk.prototype,"buttonTooltipPosition",void 0);_.L([_.x({value:!1}),_.p("design:type",Boolean)],nk.prototype,"styleActionButton",void 0);_.L([_.x({value:!1}),_.p("design:type",Boolean)],nk.prototype,"disableTextTransform",void 0);
_.L([_.x({computed:"computePlaylistId(data.command.offlinePlaylistEndpoint.playlistId)"}),_.p("design:type",String)],nk.prototype,"playlistId",void 0);_.L([_.x(),_.p("design:type",Object)],nk.prototype,"data",void 0);_.L([_.x({selector:_.qR$,selectorArgs:["playlistId"]}),_.p("design:type",Object)],nk.prototype,"downloadProgress",void 0);_.L([_.x({reflectToAttribute:!0}),_.p("design:type",Object)],nk.prototype,"isDownloadComplete",void 0);
_.L([_.x({selector:_.Ur,selectorArgs:["playlistId"]}),_.p("design:type",String)],nk.prototype,"transferState",void 0);_.L([_.x({value:!0}),_.p("design:type",Boolean)],nk.prototype,"showTooltips",void 0);_.L([_.x({value:!0}),_.p("design:type",Boolean)],nk.prototype,"sendCommandWhenDisabled",void 0);_.L([_.x({value:!1}),_.p("design:type",Boolean)],nk.prototype,"disabled",void 0);
_.L([_.Fe("data"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],nk.prototype,"dataChanged",null);_.L([_.Fe("transferState"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],nk.prototype,"onTransferStateChanged",null);_.L([_.Fe("downloadProgress"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],nk.prototype,"updateProgress",null);
_.L([_.U({disableElementRegistration:!0,is:"ytd-download-playlist-button-renderer"})],nk);
_.D(nk,"ytd-download-playlist-button-renderer",function(){if(DuM!==void 0)return DuM;var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-download-playlist-button-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<ytd-button-renderer button-tooltip-position="[[buttonTooltipPosition]]" data="[[data]]" disable-text-transform="[[disableTextTransform]]" disabled="[[disabled]]" force-icon-button="[[forceIconButton]]" force-icon-only="[[forceIconOnly]]" force-modern-icon-button="" overrides="[[overrides]]" style-action-button="[[styleActionButton]]" class="style-scope ytd-download-playlist-button-renderer"></ytd-button-renderer>');a.content.insertBefore(_.w().content.cloneNode(!0),
a.content.firstChild);return DuM=a},{mode:1});var pfZ;_.Jf(_.zr1,"thumbnail-overlay-button-view-model",{props:{data:_.zl,lockupExperiments:_.zl}});var Kk=function(){var a=_.G.apply(this,arguments)||this;a.isSquare=!1;a.isVertical=!1;return a};
_.b(Kk,_.G);Kk.prototype.computeIsSquare=function(a){return a!=null&&a.thumbnail?V20(a.thumbnail)==="SQUARE":!1};
Kk.prototype.computeIsVertical=function(a){return a!=null&&a.thumbnail?V20(a.thumbnail)==="VERTICAL":!1};
Kk.prototype.configureRendererStamper=function(){return{"data.thumbnailOverlays":{id:"overlays",mapping:{thumbnailOverlayHoverTextRenderer:"ytd-thumbnail-overlay-hover-text-renderer",thumbnailOverlayButtonViewModel:"thumbnail-overlay-button-view-model"}}}};
_.L([_.Q(_.k.YtRendererBehavior),_.p("design:type",Object)],Kk.prototype,"ytRendererBehavior",void 0);_.L([_.Q(_.u4.YtRendererstamperBehavior),_.p("design:type",Object)],Kk.prototype,"ytRendererstamperBehavior",void 0);_.L([_.x({reflectToAttribute:!0,computed:"computeIsSquare(data)"}),_.p("design:type",Object)],Kk.prototype,"isSquare",void 0);_.L([_.x({reflectToAttribute:!0,computed:"computeIsVertical(data)"}),_.p("design:type",Object)],Kk.prototype,"isVertical",void 0);
_.L([_.x(),_.p("design:type",Object)],Kk.prototype,"data",void 0);_.L([_.U({disableElementRegistration:!0,is:"ytd-hero-playlist-thumbnail-renderer"})],Kk);
_.D(Kk,"ytd-hero-playlist-thumbnail-renderer",function(){if(pfZ!==void 0)return pfZ;var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-hero-playlist-thumbnail-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="horizontally-centered-container style-scope ytd-hero-playlist-thumbnail-renderer">\n  <div class="image-wrapper style-scope ytd-hero-playlist-thumbnail-renderer">\n    <yt-img-shadow class="image style-scope ytd-hero-playlist-thumbnail-renderer" alt="hidden" aria-hidden="true" thumbnail="[[data.thumbnail]]">\n    </yt-img-shadow>\n    <div id="overlays" class="style-scope ytd-hero-playlist-thumbnail-renderer"></div>\n  </div>\n</div>\n');a.content.insertBefore(_.w().content.cloneNode(!0),
a.content.firstChild);return pfZ=a},{mode:1});var FI=function(){var a=_.G.apply(this,arguments)||this;a.isDarkTheme=!1;a.isUltraWide=!1;a.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction","yt-window-resized":"onWindowResize"};return a};
_.b(FI,_.G);_.Z=FI.prototype;_.Z.attached=function(){this.isDarkTheme=!!document.documentElement.hasAttribute("dark");_.ab();var a;(a=_.ab().resolve(_.eL(_.tO)))!=null&&(a.headerElement=this.hostElement)};
_.Z.detached=function(){var a;(a=_.ab().resolve(_.eL(_.tO)))!=null&&(a.headerElement=void 0)};
_.Z.onUpdateHeader=function(a){(a=a.detail)&&this.set("data",a)};
_.Z.computeTextDisplayed=function(a){if(a)return a.textDisplayed?a.textDisplayed:a.placeholder};
_.Z.gradientColorToLinearGradientStop=function(a){var z=this.isDarkTheme?a.darkThemeColor:a.lightThemeColor;return z?_.RX(z)+" "+((a==null?void 0:a.startLocation)||0)*100+"%":"transparent"};
_.Z.onWindowResize=function(){var a;((a=this.data)==null?0:a.descriptionForm)?this.editableDescriptionInlineExpander.resize():this.descriptionInlineExpander.resize()};
_.Z.onIronResize=function(a){this.isUltraWide=!a.detail.value};
_.Z.onDarkModeToggledAction=function(a){this.isDarkTheme=a};
_.Z.onUpdatePlaylistName=function(a){var z=this;this.set("data.titleForm.inlineFormRenderer",Object.assign({},a.detail.value));_.Yv(this,function(){var I;(I=z.editableTitle)==null||I.resize()})};
_.Z.onUpdatePlaylistDescription=function(a){var z=this;this.set("data.descriptionForm.inlineFormRenderer",Object.assign({},a.detail.value));_.Yv(this,function(){var I;(I=z.editableDescriptionInlineExpander)==null||I.resize()})};
_.Z.getCinematicData=function(a){return _.H(a==null?void 0:a.cinematicContainer,_.$W)};
_.eH.Object.defineProperties(FI.prototype,{maxDescriptionLines:{configurable:!0,enumerable:!0,get:function(){return this.isUltraWide?999:2}},
noCinematicData:{configurable:!0,enumerable:!0,get:function(){return!this.getCinematicData(this.data)}},
backgroundStyle:{configurable:!0,enumerable:!0,get:function(){var a,z=(a=this.getCinematicData(this.data))==null?void 0:a.config;return(a=this.isDarkTheme?z==null?void 0:z.darkThemeBackgroundColor:z==null?void 0:z.lightThemeBackgroundColor)?"background-color:"+_.Da(a)+";":"background-color:transparent;"}},
descriptionFormData:{configurable:!0,enumerable:!0,get:function(){var a;return _.H((a=this.data)==null?void 0:a.descriptionForm,pCY)}},
getDropdownTheme:{configurable:!0,enumerable:!0,get:function(){return this.noCinematicData?"":"WHITE_THEME"}},
gradientStyle:{configurable:!0,enumerable:!0,get:function(){var a=this,z,I,J;return"background:linear-gradient(to bottom, "+(((J=(z=this.getCinematicData(this.data))==null?void 0:(I=z.gradientColorConfig)==null?void 0:I.map(function(r){return a.gradientColorToLinearGradientStop(r)}))==null?void 0:J.join(", "))+");")}},
descriptionTapText:{configurable:!0,enumerable:!0,get:function(){var a;return _.cd((a=this.data)==null?void 0:a.descriptionTapText)}}});
FI.prototype.onUpdateHeader=FI.prototype.onUpdateHeader;_.L([_.Q(_.k.YtRendererBehavior),_.p("design:type",Object)],FI.prototype,"ytRendererBehavior",void 0);_.L([_.Q(_.Hc.YtActionHandlerBehavior),_.p("design:type",Object)],FI.prototype,"actionHandlerBehavior",void 0);_.L([_.A3("#description-inline-expander"),_.p("design:type",Object)],FI.prototype,"descriptionInlineExpander",void 0);
_.L([_.A3("#editable-description-inline-expander"),_.p("design:type",Object)],FI.prototype,"editableDescriptionInlineExpander",void 0);_.L([_.x(),_.p("design:type",Object)],FI.prototype,"data",void 0);_.L([_.x(),_.p("design:type",Object)],FI.prototype,"isUltraWide",void 0);_.L([_.A3("#editable-title-display"),_.p("design:type",Object)],FI.prototype,"editableTitle",void 0);_.L([_.S("isUltraWide"),_.p("design:type",Object),_.p("design:paramtypes",[])],FI.prototype,"maxDescriptionLines",null);
_.L([_.x({reflectToAttribute:!0}),_.S("data"),_.p("design:type",Object),_.p("design:paramtypes",[])],FI.prototype,"noCinematicData",null);_.L([_.gz("yt-new-playlist-header"),_.p("design:type",Function),_.p("design:paramtypes",[CustomEvent]),_.p("design:returntype")],FI.prototype,"onUpdateHeader",null);_.L([_.S("data","isDarkTheme"),_.p("design:type",Object),_.p("design:paramtypes",[])],FI.prototype,"backgroundStyle",null);
_.L([_.S("data"),_.p("design:type",Object),_.p("design:paramtypes",[])],FI.prototype,"descriptionFormData",null);_.L([_.S("data"),_.p("design:type",Object),_.p("design:paramtypes",[])],FI.prototype,"getDropdownTheme",null);_.L([_.S("data","isDarkTheme"),_.p("design:type",String),_.p("design:paramtypes",[])],FI.prototype,"gradientStyle",null);_.L([_.S("data"),_.p("design:type",Object),_.p("design:paramtypes",[])],FI.prototype,"descriptionTapText",null);
_.L([_.U({is:"ytd-playlist-header-renderer",disableElementRegistration:!0})],FI);
_.D(FI,"ytd-playlist-header-renderer",function(){if($uM!==void 0)return $uM;var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-playlist-header-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<iron-media-query id="resize-query" query="(max-width: 1080px)" on-query-matches-changed="onIronResize" class="style-scope ytd-playlist-header-renderer"></iron-media-query>\n\n<div class="immersive-header-container style-scope ytd-playlist-header-renderer" style="">\n  <div class="immersive-header-background-wrapper style-scope ytd-playlist-header-renderer" style$="[[backgroundStyle]]">\n    <yt-img-shadow class="blurred-image style-scope ytd-playlist-header-renderer" alt="hidden" aria-hidden="true" fit-width="" hidden="[[!data.cinematicContainer.cinematicContainerRenderer.backgroundImageConfig.thumbnail]]" thumbnail="[[data.cinematicContainer.cinematicContainerRenderer.backgroundImageConfig.thumbnail]]">\n    </yt-img-shadow>\n    <div class="immersive-header-gradient style-scope ytd-playlist-header-renderer" style$="[[gradientStyle]]"></div>\n  </div>\n  <div class="immersive-header-content style-scope ytd-playlist-header-renderer">\n    <div class="thumbnail-and-metadata-wrapper style-scope ytd-playlist-header-renderer">\n      <a class="yt-simple-endpoint style-scope ytd-playlist-header-renderer" href$="[[computeHref_(data.playlistHeaderBanner.heroPlaylistThumbnailRenderer.onTap)]]" data="[[data.playlistHeaderBanner.heroPlaylistThumbnailRenderer.onTap]]">\n        <div class="thumbnail-wrapper style-scope ytd-playlist-header-renderer" hidden="[[!data.playlistHeaderBanner.heroPlaylistThumbnailRenderer.thumbnail]]">\n          <ytd-hero-playlist-thumbnail-renderer data="[[data.playlistHeaderBanner.heroPlaylistThumbnailRenderer]]" class="style-scope ytd-playlist-header-renderer"></ytd-hero-playlist-thumbnail-renderer>\n        </div>\n      </a>\n\n      <div class="metadata-wrapper style-scope ytd-playlist-header-renderer">\n        <yt-dynamic-sizing-formatted-string hidden="[[data.titleForm]]" hide-overflow="" max-font-size="28" max-lines="2" text="[[data.title]]" class="style-scope ytd-playlist-header-renderer"></yt-dynamic-sizing-formatted-string>\n\n        <ytd-inline-form-renderer data="[[data.titleForm.inlineFormRenderer]]" enable-overlay-theme="[[!noCinematicData]]" hidden="[[!data.titleForm]]" use-slot="" on-inline-form-changed="onUpdatePlaylistName" class="style-scope ytd-playlist-header-renderer">\n          <yt-dynamic-sizing-formatted-string id="editable-title-display" slot="text-display" hide-overflow="" max-font-size="28" max-lines="2" text="[[data.titleForm.inlineFormRenderer.textDisplayed]]" class="style-scope ytd-playlist-header-renderer"></yt-dynamic-sizing-formatted-string>\n        </ytd-inline-form-renderer>\n\n        <div class="metadata-action-bar style-scope ytd-playlist-header-renderer">\n          <div class="metadata-text-wrapper style-scope ytd-playlist-header-renderer">\n            <div class="metadata-owner style-scope ytd-playlist-header-renderer">\n              <yt-formatted-string id="owner-text" hidden="[[!data.ownerText]]" link-inherit-color="" text="[[data.ownerText]]" class="style-scope ytd-playlist-header-renderer"></yt-formatted-string>\n              <yt-formatted-string hidden="[[!data.subtitle]]" text="[[data.subtitle]]" class="style-scope ytd-playlist-header-renderer"></yt-formatted-string>\n\n              <div class="badges style-scope ytd-playlist-header-renderer" hidden="[[!data.playlistBadges]]">\n                <span class="middot style-scope ytd-playlist-header-renderer">\u00b7</span>\n                <ytd-badge-supported-renderer badges="[[data.playlistBadges]]" class="style-scope ytd-playlist-header-renderer">\n                </ytd-badge-supported-renderer>\n              </div>\n            </div>\n\n            <ytd-dropdown-form-field-renderer id="privacy-form" data="[[data.privacyForm.dropdownFormFieldRenderer]]" hidden="[[!data.privacyForm]]" theme="[[getDropdownTheme]]" class="style-scope ytd-playlist-header-renderer">\n            </ytd-dropdown-form-field-renderer>\n            <ytd-playlist-byline-renderer data="[[data.byline]]" class="style-scope ytd-playlist-header-renderer"></ytd-playlist-byline-renderer>\n          </div>\n          <div class="metadata-buttons-wrapper style-scope ytd-playlist-header-renderer">\n            <ytd-toggle-button-renderer data="[[data.saveButton.toggleButtonRenderer]]" force-modern-icon-button="" hidden="[[!data.saveButton.toggleButtonRenderer]]" class="style-scope ytd-playlist-header-renderer">\n            </ytd-toggle-button-renderer>\n            <ytd-button-renderer data="[[data.shareButton.buttonRenderer]]" force-modern-icon-button="" hidden="[[!data.shareButton.buttonRenderer]]" class="style-scope ytd-playlist-header-renderer">\n            </ytd-button-renderer>\n            <ytd-button-renderer data="[[data.addVideosButton.buttonRenderer]]" force-modern-icon-button="" hidden="[[!data.addVideosButton.buttonRenderer]]" class="style-scope ytd-playlist-header-renderer">\n            </ytd-button-renderer>\n            <ytd-download-playlist-button-renderer data="[[data.offlineability.downloadButtonRenderer]]" force-icon-button="" force-modern-icon-button="" hidden="[[!data.offlineability.downloadButtonRenderer]]" class="style-scope ytd-playlist-header-renderer">\n            </ytd-download-playlist-button-renderer>\n            <ytd-menu-renderer data="[[data.moreActionsMenu.menuRenderer]]" force-icon-button="" hidden="[[!data.moreActionsMenu.menuRenderer]]" is-overlay="[[!noCinematicData]]" tonal-override="" class="style-scope ytd-playlist-header-renderer"></ytd-menu-renderer>\n          </div>\n        </div>\n\n        <div class="play-menu spaced-row wide-screen-form style-scope ytd-playlist-header-renderer">\n          <ytd-button-renderer class="play-button style-scope ytd-playlist-header-renderer" data="[[data.playButton.buttonRenderer]]" hidden="[[!data.playButton.buttonRenderer]]">\n          </ytd-button-renderer>\n          <ytd-button-renderer class="shuffle-button style-scope ytd-playlist-header-renderer" data="[[data.shufflePlayButton.buttonRenderer]]" hidden="[[!data.shufflePlayButton.buttonRenderer]]">\n          </ytd-button-renderer>\n        </div>\n\n        <div class="description style-scope ytd-playlist-header-renderer">\n          <ytd-text-inline-expander id="description-inline-expander" expand-command="[[data.onDescriptionTap]]" expand-label="[[descriptionTapText]]" hidden="[[data.descriptionForm]]" max-lines="[[maxDescriptionLines]]" text="[[data.descriptionText]]" class="style-scope ytd-playlist-header-renderer">\n          </ytd-text-inline-expander>\n          <ytd-inline-form-renderer data="[[descriptionFormData]]" enable-overlay-theme="[[!noCinematicData]]" hidden="[[!data.descriptionForm]]" use-slot="" on-inline-form-changed="onUpdatePlaylistDescription" class="style-scope ytd-playlist-header-renderer">\n            <ytd-text-inline-expander id="editable-description-inline-expander" slot="text-display" expand-command="[[data.onDescriptionTap]]" expand-label="[[descriptionTapText]]" max-lines="[[maxDescriptionLines]]" text="[[computeTextDisplayed(data.descriptionForm.inlineFormRenderer)]]" class="style-scope ytd-playlist-header-renderer">\n            </ytd-text-inline-expander>\n          </ytd-inline-form-renderer>\n        </div>\n      </div>\n    </div>\n    <div class="play-menu spaced-row small-screen-form style-scope ytd-playlist-header-renderer">\n      <ytd-button-renderer class="play-button style-scope ytd-playlist-header-renderer" data="[[data.playButton.buttonRenderer]]" hidden="[[!data.playButton.buttonRenderer]]">\n      </ytd-button-renderer>\n      <ytd-button-renderer class="shuffle-button style-scope ytd-playlist-header-renderer" data="[[data.shufflePlayButton.buttonRenderer]]" hidden="[[!data.shufflePlayButton.buttonRenderer]]">\n      </ytd-button-renderer>\n    </div>\n  </div>\n\n  <tp-yt-paper-tooltip for="owner-text" offset="5" position="top" class="style-scope ytd-playlist-header-renderer">\n    [[getSimpleString(data.ownerText)]]\n  </tp-yt-paper-tooltip>\n</div>\n');a.content.insertBefore(_.w().content.cloneNode(!0),
a.content.firstChild);return $uM=a},{mode:_.Np("kevlar_poly_si_batch_j078")?1:2});var wfZ;var muZ;var H6=function(){return _.G.apply(this,arguments)||this};
_.b(H6,_.G);H6.prototype.configureRendererStamper=function(){return{"data.items":{id:"items",mapping:{gridShowRenderer:"ytd-grid-show-renderer"}}}};
_.L([_.Q(_.k.YtRendererBehavior),_.p("design:type",Object)],H6.prototype,"ytRendererBehavior",void 0);_.L([_.Q(_.u4.YtRendererstamperBehavior),_.p("design:type",Object)],H6.prototype,"ytRendererstamperBehavior",void 0);_.L([_.x(),_.p("design:type",Object)],H6.prototype,"data",void 0);_.L([_.U({is:"ytd-playlist-sidebar-tertiary-info-renderer",disableElementRegistration:!0})],H6);
_.D(H6,"ytd-playlist-sidebar-tertiary-info-renderer",function(){if(muZ!==void 0)return muZ;var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-playlist-sidebar-tertiary-info-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-formatted-string id="title" split-lines="" text="[[data.title]]" class="style-scope ytd-playlist-sidebar-tertiary-info-renderer">\n</yt-formatted-string>\n<div id="items" class="style-scope ytd-playlist-sidebar-tertiary-info-renderer"></div>\n');
a.content.insertBefore(_.w().content.cloneNode(!0),a.content.firstChild);return muZ=a},{mode:1});var bB=function(){return _.G.apply(this,arguments)||this};
_.b(bB,_.G);
bB.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}}}}};
bB.prototype.computeUsePremiumShowStyle=function(a){if(!a||!a.items)return!1;for(var z=0;z<a.items.length;z++)if(_.H(a.items[z],UK)){var I=void 0;return((I=_.H(a.items[z],UK))==null?void 0:I.style)==="PLAYLIST_SIDEBAR_PRIMARY_INFO_RENDERER_STYLE_TYPE_SHOW"}return!1};
_.L([_.Q(_.k.YtRendererBehavior),_.p("design:type",Object)],bB.prototype,"ytRendererBehavior",void 0);_.L([_.Q(_.u4.YtRendererstamperBehavior),_.p("design:type",Object)],bB.prototype,"ytRendererstamperBehavior",void 0);_.L([_.x(),_.p("design:type",Object)],bB.prototype,"data",void 0);_.L([_.x({reflectToAttribute:!0,computed:"computeUsePremiumShowStyle(data)"}),_.p("design:type",Boolean)],bB.prototype,"usePremiumShowStyle",void 0);
_.L([_.U({is:"ytd-playlist-sidebar-renderer",disableElementRegistration:!0})],bB);
_.D(bB,"ytd-playlist-sidebar-renderer",function(){if(wfZ!==void 0)return wfZ;var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-playlist-sidebar-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="items" class="style-scope ytd-playlist-sidebar-renderer"></div>\n');a.content.insertBefore(_.w().content.cloneNode(!0),a.content.firstChild);return wfZ=a},{mode:1});var ywz;var kRz;var MCY=function(a,z,I,J,r,P,N,u){this.minWidth=a;this.minHeight=z;this.recommendedWidth=I;this.recommendedHeight=J;this.JSC$22005_maxFileSize=r;this.title=P;this.bannerGalleryTitle=N;this.channelId=u;this.picker_=null;a=_.S3i("yt-banner");z=a.addView;I=(new XCz("youtubebanner")).addUploadMetadata("silo_id","19");I.opts.ytMaxFileSize=this.JSC$22005_maxFileSize;J=this.recommendedHeight;I.opts.ytRecWidth=this.recommendedWidth;I.opts.ytRecHeight=J;z.call(a,I);a.addView(new _.Sa);z=a.addView;I=new _.Sa;
I.opts.type="ytbanner";z.call(a,I.JSC$10031_setLabel(this.bannerGalleryTitle));z=a.setTitle(this.title).setSize(1E3);z.urlParamMap_.set("thumbs","orig");I=this.minWidth;J=this.minHeight;if(isNaN(I)||isNaN(J))throw Error("gb`"+I+"`"+J);z.urlParamMap_.set("minSize",I+"x"+J);z.urlParamMap_.set("cropMode","ytcb");this.builder_=a};
MCY.prototype.open=function(){var a=this;return new _.Ba(function(z,I){_.Eje(a.builder_,function(J){J.action=="picked"?z(J):J.action=="cancel"&&I(Error("ro"))});
a.picker_&&a.picker_.dispose();a.picker_=a.builder_.build();a.picker_.setVisible(!0)})};
MCY.prototype.dispose=function(){this.picker_&&(this.picker_.dispose(),this.picker_=null)};var cw4=function(a){this.channelId=a};
cw4.prototype.upload=function(a){var z="";a.viewToken&&(z=a.viewToken[2].type);var I=a.docs[0];a=I.crop;z={channel_id:this.channelId,fife_url:I.thumbnails[0].url,photo_id:I.id,is_gallery_image:z=="ytbanner"};a&&(z.crop_top=a.top,z.crop_right=a.right,z.crop_bottom=a.bottom,z.crop_left=a.left);return _.suE("/channels_profile_ajax?action_update_banner_image=1",{method:"POST",postParams:z})};var hn=function(){var a=_.G.apply(this,arguments)||this;a.ariaLabel=null;return a};
_.b(hn,_.G);_.Z=hn.prototype;_.Z.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","button");this.hostElement.hasAttribute("tabindex")||this.hostElement.setAttribute("tabindex","0")};
_.Z.detached=function(){this.picker&&this.picker.dispose()};
_.Z.dataChanged=function(){this.uploader=this.picker=this.message=null};
_.Z.computeAriaLabel=function(a){return a};
_.Z.onTap=function(){var a=this,z;if((z=this.data)==null||!z.editBannerCommand){this.message=null;!this.picker&&this.data&&(this.picker=new MCY(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 I;(I=this.picker)==null||I.open().then(function(J){a.handleBannerPicked(J)},function(){})}};
_.Z.handleBannerPicked=function(a){var z=this;this.uploader||(this.uploader=new cw4(this.data.channelId||""));this.message=this.data.uploadingText;this.uploader.upload(a).then(function(I){z.handleBannerUploadSucceeded(I)},function(I){z.handleBannerUploadFailed(I)})};
_.Z.handleBannerUploadSucceeded=function(a){a&&a.errors?this.handleBannerUploadFailed(a):(_.PA(this.hostElement,"yt-banner-updated",a),this.message=null)};
_.Z.handleBannerUploadFailed=function(a){this.message=a&&a.errors&&a.errors.length?a.errors[0]:null};
hn.prototype.dataChanged=hn.prototype.dataChanged;_.L([_.Q(_.Ms.YtComponentBehavior),_.p("design:type",Object)],hn.prototype,"componentBehavior",void 0);_.L([_.Q(_.WY),_.p("design:type",Object)],hn.prototype,"ironButtonState",void 0);_.L([_.x(),_.p("design:type",Object)],hn.prototype,"data",void 0);_.L([_.x({reflectToAttribute:!0,readOnly:!0,computed:"computeAriaLabel(data.buttonLabel)"}),_.p("design:type",Object)],hn.prototype,"ariaLabel",void 0);
_.L([_.x(),_.p("design:type",Object)],hn.prototype,"message",void 0);_.L([_.x(),_.p("design:type",Object)],hn.prototype,"picker",void 0);_.L([_.x(),_.p("design:type",Object)],hn.prototype,"uploader",void 0);_.L([_.Fe("data"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],hn.prototype,"dataChanged",null);_.L([_.U({is:"ytd-channel-banner-editor-renderer",disableElementRegistration:!0})],hn);
_.D(hn,"ytd-channel-banner-editor-renderer",function(){if(kRz!==void 0)return kRz;var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-channel-banner-editor-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<a id="edit-banner-link" class="yt-simple-endpoint style-scope ytd-channel-banner-editor-renderer" data="[[data.editBannerCommand]]" href$="[[computeHref_(data.editBannerCommand)]]" target="_blank" on-click="onTap">\n  <yt-icon icon="camera_alt" class="style-scope ytd-channel-banner-editor-renderer"></yt-icon>\n  <tp-yt-paper-tooltip position="top" class="style-scope ytd-channel-banner-editor-renderer">[[ariaLabel]]</tp-yt-paper-tooltip>\n  <div id="message" hidden$="[[!message]]" class="style-scope ytd-channel-banner-editor-renderer">[[message]]</div>\n</a>\n');
a.content.insertBefore(_.w().content.cloneNode(!0),a.content.firstChild);return kRz=a},{mode:1});var Y70;var q7Y=_.kK(["#"]),Vh=function(){return _.G.apply(this,arguments)||this};
_.b(Vh,_.G);Vh.prototype.computeHrefWithDefault=function(a){return this.ytComponentBehavior.computeHref_(a,!0)||_.qaM(q7Y)};
Vh.prototype.dataChanged=function(){var a=this.data;a&&a.targetId&&_.KaG(_.Gc(),a.targetId,this.moreIcon)};
Vh.prototype.dataChanged=Vh.prototype.dataChanged;_.L([_.Q(_.Ms.YtComponentBehavior),_.p("design:type",Object)],Vh.prototype,"ytComponentBehavior",void 0);_.L([_.x(),_.p("design:type",Object)],Vh.prototype,"data",void 0);_.L([_.A3("#more-icon"),_.p("design:type",Object)],Vh.prototype,"moreIcon",void 0);_.L([_.O8("data"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],Vh.prototype,"dataChanged",null);
_.L([_.U({is:"ytd-channel-tagline-renderer",disableElementRegistration:!0})],Vh);
_.D(Vh,"ytd-channel-tagline-renderer",function(){if(Y70!==void 0)return Y70;var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-channel-tagline-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<a id="endpoint" class="yt-simple-endpoint style-scope ytd-channel-tagline-renderer" href$="[[computeHrefWithDefault(data.moreEndpoint)]]" data="[[data.moreEndpoint]]">\n  <div id="wrapper" class="style-scope ytd-channel-tagline-renderer">\n    <div id="content" dir="auto" class="style-scope ytd-channel-tagline-renderer">\n      [[data.content]]\n    </div>\n    <yt-icon id="more-icon" hidden="[[!data.moreIcon]]" icon="[[data.moreIcon.iconType]]" class="style-scope ytd-channel-tagline-renderer">\n    </yt-icon>\n  </div>\n</a>\n');a.content.insertBefore(_.w().content.cloneNode(!0),
a.content.firstChild);return Y70=a},{mode:1});var emz;var Qh=function(){return _.G.apply(this,arguments)||this};
_.b(Qh,_.G);_.Z=Qh.prototype;_.Z.ready=function(){var a=this;_.PK(this.hostElement).querySelector("#form").addEventListener("submit",function(z){a.onSubmit(z)})};
_.Z.onDataChanged=function(){var a;((a=this.data)==null?0:a.selected)&&this.ytdExpandableInputBehavior.setShowInput(!0)};
_.Z.onIconButtonKeydown=function(a){a.keyCode===13&&this.iconButton.click()};
_.Z.closeOnOutsideClickHandler=function(){this.set("data.expandedText","")};
_.Z.openOnClickHandler=function(){this.input.focus()};
_.Z.onSubmit=function(a){a.preventDefault();return!1};
_.Z.submitOnEnterKeyUp=function(a){var z;if(a.keyCode===13&&((z=this.data)==null?0:z.expandedText)){a=this.data.endpoint;z=_.x8.unsafeClone(a);var I;((I=_.H(z==null?void 0:z.commandMetadata,_.O_))==null?0:I.url)?(_.H(z.commandMetadata,_.O_).url=_.oO(_.H(z.commandMetadata,_.O_).url,"query",this.data.expandedText),_.H(z,_.KH)&&(_.H(z,_.KH).query=this.data.expandedText),_.PA(this.hostElement,"yt-navigate",{endpoint:z,tempData:{disableCache:!0}})):(I=new _.Fn("Error: Trying to navigate to an endpoint without url",
a),_.Gx(I))}};
_.Z.updateDataExpandedTextFromBinding=function(a){this.set("data.expandedText",a.detail.value)};
_.eH.Object.defineProperties(Qh.prototype,{searchIcon:{configurable:!0,enumerable:!0,get:function(){return _.K("enable_web_delhi_icons")?"search":"yt-icons:search"}}});
Qh.prototype.onDataChanged=Qh.prototype.onDataChanged;_.L([_.Q(_.k.YtRendererBehavior),_.p("design:type",Object)],Qh.prototype,"ytRendererBehavior",void 0);_.L([_.Q(_.vXV),_.p("design:type",Object)],Qh.prototype,"ytdExpandableInputBehavior",void 0);_.L([_.x(),_.p("design:type",Object)],Qh.prototype,"data",void 0);_.L([_.A3("#input"),_.p("design:type",Object)],Qh.prototype,"input",void 0);_.L([_.A3("#icon-button"),_.p("design:type",HTMLElement)],Qh.prototype,"iconButton",void 0);
_.L([_.x(),_.p("design:type",String),_.p("design:paramtypes",[])],Qh.prototype,"searchIcon",null);_.L([_.Fe("data"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],Qh.prototype,"onDataChanged",null);_.L([_.U({disableElementRegistration:!0,is:"ytd-expandable-tab-renderer"})],Qh);
var QYi=_.Cw()(Qh,"ytd-expandable-tab-renderer",function(){if(emz===void 0){var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-expandable-tab-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-icon-button id="icon-button" label="[[data.title]]" on-click="openOnClick_" on-keydown="onIconButtonKeydown" class="style-scope ytd-expandable-tab-renderer">\n  <yt-icon icon="[[searchIcon]]" class="style-scope ytd-expandable-tab-renderer"></yt-icon>\n</yt-icon-button>\n<form id="form" action="[[data.endpoint.commandMetadata.webCommandMetadata.url]]" class="style-scope ytd-expandable-tab-renderer">\n  <tp-yt-paper-input id="input" autocomplete="off" label="[[data.title]]" max-length="100" name="query" no-label-float="" value="[[data.expandedText]]" on-keyup="submitOnEnterKeyUp" on-value-changed="updateDataExpandedTextFromBinding" class="style-scope ytd-expandable-tab-renderer">\n   </tp-yt-paper-input>\n</form>\n');a.content.insertBefore(_.w().content.cloneNode(!0),
a.content.firstChild);emz=a}a=emz;return a},{allowedProps:["data"],
callbackProps:["onYtNavigate"],mode:1});var aqZ;var S7=function(){var a=_.G.apply(this,arguments)||this;a.avatarSize=80;a.ariaLabel=_.AR("EDIT_AVATAR_LABEL",void 0,"Edit channel icon");return a};
_.b(S7,_.G);S7.prototype.attached=function(){this.hostElement.setAttribute("role","button");this.hostElement.setAttribute("tabindex","0")};
S7.prototype.computeHref=function(a){var z;return((z=_.H(a,_.pv))==null?0:z.url)?this.componentBehavior.computeHref_(a):null};
S7.prototype.onTap=function(){var a,z;(a=this.data)==null||!a.editAvatarServiceEndpoint||((z=_.H(this.data.editAvatarServiceEndpoint,_.pv))==null?0:z.url)||_.ab().resolve(_.j6).resolveCommand(this.data.editAvatarServiceEndpoint,{form:{element:this.hostElement}})};
_.L([_.Q(_.WY),_.p("design:type",Object)],S7.prototype,"ironButtonState",void 0);_.L([_.Q(_.Ms.YtComponentBehavior),_.p("design:type",Object)],S7.prototype,"componentBehavior",void 0);_.L([_.x(),_.p("design:type",Object)],S7.prototype,"data",void 0);_.L([_.x(),_.p("design:type",Object)],S7.prototype,"avatarSize",void 0);_.L([_.x({reflectToAttribute:!0}),_.p("design:type",String)],S7.prototype,"ariaLabel",void 0);_.L([_.U({disableElementRegistration:!0,is:"ytd-channel-avatar-editor"})],S7);
_.D(S7,"ytd-channel-avatar-editor",function(){if(aqZ!==void 0)return aqZ;var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-channel-avatar-editor--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<a class="yt-simple-endpoint style-scope ytd-channel-avatar-editor" href$="[[computeHref(data.editAvatarServiceEndpoint)]]" data="[[data.editAvatarServiceEndpoint]]" target="_blank" on-click="onTap">\n  <yt-icon icon="camera_alt" class="style-scope ytd-channel-avatar-editor"></yt-icon>\n  <yt-img-shadow thumbnail="[[data.avatar]]" width="[[avatarSize]]" class="style-scope ytd-channel-avatar-editor"></yt-img-shadow>\n  <tp-yt-paper-tooltip position="bottom" class="style-scope ytd-channel-avatar-editor">[[ariaLabel]]</tp-yt-paper-tooltip>\n</a>\n');
a.content.insertBefore(_.w().content.cloneNode(!0),a.content.firstChild);return aqZ=a},{mode:1});var jnE=_.ec(function(a){var z=a.data;var I=a.noPadding;var J=a.enableBanner;var r=a.cinematicContainerTopbarOffset;var P=a.allowCinematicContainerOverflow;var N=a.displayAsSidebar;a=a.className;_.h2(function(){z().tagManagerId&&(_.dr(z().tagManagerId,_.Xw("GL")),$wV(z().tagManagerId))},"xVTVTe");
var u=_.KU(i7Z,function(){return z().pageHeaderEntityKey});
return _.B("yt-page-header-renderer",{class:_.B8("page-header-renderer-wiz",a)},_.B(_.V0,{data:function(){var E;return((E=u())==null?0:E.header)?u().header:(N==null?0:N())&&z().sidebarContent?z().sidebarContent:z().content}},{pageHeaderViewModel:function(E){return _.B(_.haO,{data:E.data,
noPadding:I,enableBanner:J,cinematicContainerTopbarOffset:r,allowCinematicContainerOverflow:P,displayAsSidebar:function(){return(N==null?void 0:N())&&z().enableSidebarView}})}}))},"Tj");
jnE.idomCompat=!0;_.Jf(jnE,"yt-page-header-renderer",{props:{data:_.zl,noPadding:_.zl,enableBanner:_.zl,cinematicContainerTopbarOffset:_.zl,allowCinematicContainerOverflow:_.zl,displayAsSidebar:_.zl,className:_.zl}});_.Jf(_.me,"yt-image-banner-view-model",{props:{data:_.zl,isPositionRelative:_.zl}});_.Jf(_.pRl,"yt-tab-group-shape",{props:{shape:_.zl}});var iB=function(){var a=_.G.apply(this,arguments)||this;a.expandableCustomTabRenderable=function(z){return SI4(z,function(){return void a.onSearchNavigate()})};
a.isRichGrid=!1;a.isConstrainedList=!1;a.richGridMiniMode=!1;a.richGridStyle="RICH_GRID_STYLE_UNKNOWN";a.isRichGridShorts=!1;a.responsiveSizing="COMPACT";a.disableGridStateAware=!1;a.actionMap={"yt-insert-channel-tab-command":"handleInsertTabCommand","ytd-refresh-channel-tab-action":"handleRefreshChannelTabAction","yt-window-resized":"onWindowResize"};return a};
_.b(iB,_.G);_.Z=iB.prototype;_.Z.computeHeaderDisabled=function(a,z){return z||!a||this.tabsHidden};
_.Z.computeTabsHidden=function(){return!this.tabs||this.tabs.length<=1};
_.Z.computeIsRichGridShorts=function(a){return a==="RICH_GRID_STYLE_SHORTS_GRID"||a==="RICH_GRID_STYLE_SHORTS_GRID_SLIM"};
_.Z.computeImageBannerViewModel=function(){var a,z;return _.H((z=_.H((a=this.data)==null?void 0:a.content,_.lGO))==null?void 0:z.banner,_.GGw)};
_.Z.computeHasCinematicContainer=function(){var a,z;return!((z=_.H((a=this.data)==null?void 0:a.content,_.lGO))==null||!z.background)};
_.Z.handleHeaderResize=function(){var a=_.PK(this.hostElement).querySelector("#header");a&&_.PA(a,"iron-resize")};
_.Z.handleInsertTabCommand=function(a){var z=_.H(a,qIG);z&&(z.tabIdentifier&&this.ytdTabbedHeaderBehavior.tabs.some(function(I){return I.tabRenderer&&I.tabRenderer.tabIdentifier===z.tabIdentifier})||this.splice("tabs",z.tabIndex||-1,0,z.tab))};
_.Z.handleRefreshChannelTabAction=function(a){this.ytdTabbedHeaderBehavior.selected&&this.ytdTabbedHeaderBehavior.tabs[this.ytdTabbedHeaderBehavior.selected].tabRenderer.tabIdentifier===a&&_.PA(this.hostElement,"yt-navigate",{endpoint:this.ytdGuideStateAwareBehavior.activeEndpoint,tempData:{disableCache:!0}})};
_.Z.observerRichGridItemsPerRow=function(){this.isRichGrid&&this.richGridItemsPerRow&&_.uK(this.hostElement,{"--ytd-rich-grid-items-per-row":""+this.richGridItemsPerRow})};
_.Z.observerRichGridSlimItemsPerRow=function(){_.uK(this.hostElement,{"--ytd-rich-grid-slim-items-per-row":""+this.richGridSlimItemsPerRow})};
_.Z.updateCssVars=function(){this.richGridItemsPerRow&&_.uK(this.hostElement,{"--ytd-rich-grid-max-width":this.richGridItemsPerRow*((this.richGridMiniMode?320:_.Ib("rich_grid_max_item_width",500))+16)-16+"px"})};
_.Z.updateCssVarsForResponsiveGrid=function(){this.richGridContainerWidth&&_.uK(this.hostElement,{"--ytd-rich-grid-max-width":this.richGridContainerWidth+"px"})};
_.Z.onDataChanged=function(){this.handleHeaderResize()};
_.Z.onWindowResize=function(){this.handleHeaderResize()};
_.Z.onFocusedChanged=function(a){(a=_.Yh(a))&&a.is==="tp-yt-paper-tab"&&a.hasRipple()&&(a.getRipple().holdDown=!a.pointerDown&&a.focused)};
_.Z.updateSelectedFromBinding=function(a){this.ytdTabbedHeaderBehavior.selected=a.detail.value};
_.Z.onSearchNavigate=function(){this.tabsElement.selected=-1};
_.eH.Object.defineProperties(iB.prototype,{tabGroupShape:{configurable:!0,enumerable:!0,get:function(){return this.tabs?{isOverflowHidden:!0,tabs:vgG(this.tabs,this.expandableCustomTabRenderable)}:{}}},
hasBanner:{configurable:!0,enumerable:!0,get:function(){return!!this.imageBannerViewModel}},
hasInsetBanner:{configurable:!0,enumerable:!0,get:function(){var a;return((a=this.imageBannerViewModel)==null?void 0:a.style)==="IMAGE_BANNER_STYLE_INSET"}}});
iB.prototype.onDataChanged=iB.prototype.onDataChanged;iB.prototype.updateCssVarsForResponsiveGrid=iB.prototype.updateCssVarsForResponsiveGrid;iB.prototype.updateCssVars=iB.prototype.updateCssVars;iB.prototype.observerRichGridSlimItemsPerRow=iB.prototype.observerRichGridSlimItemsPerRow;iB.prototype.observerRichGridItemsPerRow=iB.prototype.observerRichGridItemsPerRow;_.L([_.Q(_.kI),_.p("design:type",Object)],iB.prototype,"ytdGridStateAwareBehavior",void 0);
_.L([_.Q(e5Z),_.p("design:type",Object)],iB.prototype,"ytdTabbedHeaderBehavior",void 0);_.L([_.Q(_.Hc.YtActionHandlerBehavior),_.p("design:type",Object)],iB.prototype,"ytActionHandlerBehavior",void 0);_.L([_.Q(_.u4.YtRendererstamperBehavior),_.p("design:type",Object)],iB.prototype,"ytRendererstamperBehavior",void 0);_.L([_.Q(_.cZ.YtdGuideStateAwareBehavior),_.p("design:type",Object)],iB.prototype,"ytdGuideStateAwareBehavior",void 0);
_.L([_.Q(_.pV),_.p("design:type",Object)],iB.prototype,"ytdReduxBehavior",void 0);_.L([_.A3("#tabs"),_.p("design:type",Object)],iB.prototype,"tabsElement",void 0);_.L([_.x(),_.p("design:type",Array)],iB.prototype,"tabs",void 0);_.L([_.x(),_.p("design:type",Object)],iB.prototype,"expandableCustomTabRenderable",void 0);_.L([_.S("tabs.*"),_.p("design:type",Object),_.p("design:paramtypes",[])],iB.prototype,"tabGroupShape",null);
_.L([_.x({reflectToAttribute:!0}),_.p("design:type",Object)],iB.prototype,"isRichGrid",void 0);_.L([_.x({reflectToAttribute:!0}),_.p("design:type",Object)],iB.prototype,"isConstrainedList",void 0);_.L([_.x({reflectToAttribute:!0,selector:_.$p}),_.p("design:type",Object)],iB.prototype,"richGridMiniMode",void 0);_.L([_.x({selector:function(a){return a.ui.richGridStyle}}),
_.p("design:type",Object)],iB.prototype,"richGridStyle",void 0);_.L([_.x({reflectToAttribute:!0,computed:"computeIsRichGridShorts(richGridStyle)"}),_.p("design:type",Object)],iB.prototype,"isRichGridShorts",void 0);_.L([_.x({selector:_.X4}),_.p("design:type",Number)],iB.prototype,"richGridItemsPerRow",void 0);_.L([_.x({selector:function(a){return a.ui.richGridContainerWidth}}),
_.p("design:type",Number)],iB.prototype,"richGridContainerWidth",void 0);_.L([_.x({selector:_.o33}),_.p("design:type",Number)],iB.prototype,"richGridSlimItemsPerRow",void 0);_.L([_.x(),_.p("design:type",Object)],iB.prototype,"data",void 0);_.L([_.x({reflectToAttribute:!0}),_.p("design:type",Object)],iB.prototype,"responsiveSizing",void 0);_.L([_.x({reflectToAttribute:!0}),_.p("design:type",Object)],iB.prototype,"disableGridStateAware",void 0);
_.L([_.x({computed:"computeImageBannerViewModel(data)"}),_.p("design:type",Object)],iB.prototype,"imageBannerViewModel",void 0);_.L([_.x({reflectToAttribute:!0,computed:"computeHasCinematicContainer(data)"}),_.p("design:type",Boolean)],iB.prototype,"hasCinematicContainer",void 0);_.L([_.x({selector:_.fTZ,reflectToAttribute:!0}),_.p("design:type",Boolean)],iB.prototype,"guideIsVisibleButNotPersistent",void 0);
_.L([_.x({reflectToAttribute:!0}),_.S("imageBannerViewModel"),_.p("design:type",Object),_.p("design:paramtypes",[])],iB.prototype,"hasBanner",null);_.L([_.x({reflectToAttribute:!0}),_.S("imageBannerViewModel"),_.p("design:type",Object),_.p("design:paramtypes",[])],iB.prototype,"hasInsetBanner",null);_.L([_.x({computed:"computeTabsHidden(tabs)",value:!0}),_.p("design:type",Boolean)],iB.prototype,"tabsHidden",void 0);
_.L([_.O8("richGridItemsPerRow","isRichGrid"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],iB.prototype,"observerRichGridItemsPerRow",null);_.L([_.O8("richGridSlimItemsPerRow"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],iB.prototype,"observerRichGridSlimItemsPerRow",null);
_.L([_.O8("richGridItemsPerRow","richGridMiniMode"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],iB.prototype,"updateCssVars",null);_.L([_.O8("richGridContainerWidth"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],iB.prototype,"updateCssVarsForResponsiveGrid",null);_.L([_.O8("data"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],iB.prototype,"onDataChanged",null);
_.L([_.U({is:"ytd-tabbed-page-header",disableElementRegistration:!0})],iB);
_.D(iB,"ytd-tabbed-page-header",function(){if(ywz!==void 0)return ywz;var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-tabbed-page-header--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<template is="dom-if" if="[[!tabsHidden]]" class="style-scope ytd-tabbed-page-header">\n  <tp-yt-app-header-layout class="style-scope ytd-tabbed-page-header">\n    <tp-yt-app-header id="header" slot="header" condenses="" disabled="[[computeHeaderDisabled(active, guideIsVisibleButNotPersistent, tabs)]]" effects="parallax-background" effects-config="{&quot;parallax-background&quot;: {&quot;scalar&quot;: 0.5}}" fixed="" class="style-scope ytd-tabbed-page-header">\n      <div id="page-header-container" class="style-scope ytd-tabbed-page-header">\n        <template is="dom-if" if="[[hasBanner]]" class="style-scope ytd-tabbed-page-header">\n          <div id="page-header-banner" class="style-scope ytd-tabbed-page-header">\n            <div id="page-header-banner-sizer" class="style-scope ytd-tabbed-page-header">\n              <yt-image-banner-view-model data="[[imageBannerViewModel]]" class="style-scope ytd-tabbed-page-header">\n              </yt-image-banner-view-model>\n            </div>\n          </div>\n        </template>\n        <div id="page-header" class="style-scope ytd-tabbed-page-header">\n          <yt-page-header-renderer allow-cinematic-container-overflow="" data="[[data]]" disable-upgrade$="[[tabsHidden]]" no-padding="" class="style-scope ytd-tabbed-page-header"></yt-page-header-renderer>\n        </div>\n      </div>\n      <tp-yt-app-toolbar disable-upgrade$="[[tabsHidden]]" sticky="" class="style-scope ytd-tabbed-page-header">\n        <div id="tabs-container" class="style-scope ytd-tabbed-page-header">\n          \n          <div id="tabs-inner-container" class="style-scope ytd-tabbed-page-header">\n            <div id="tabs-divider" class="style-scope ytd-tabbed-page-header"></div>\n            <tp-yt-paper-tabs id="tabs" disable-upgrade$="[[tabsHidden]]" noink="" remove-idle-scroll-buttons="" scrollable="" selected="[[selected]]" on-iron-activate="onTabsActivate" on-selected-changed="updateSelectedFromBinding" class="style-scope ytd-tabbed-page-header">\n              <yt-tab-group-shape shape="[[tabGroupShape]]" class="style-scope ytd-tabbed-page-header"> </yt-tab-group-shape>\n            </tp-yt-paper-tabs>\n          </div>\n        </div>\n      </tp-yt-app-toolbar>\n    </tp-yt-app-header>\n  </tp-yt-app-header-layout>\n</template>\n<template is="dom-if" if="[[tabsHidden]]" class="style-scope ytd-tabbed-page-header">\n  <div id="page-header-container" class="style-scope ytd-tabbed-page-header">\n    <template is="dom-if" if="[[hasBanner]]" class="style-scope ytd-tabbed-page-header">\n      <div id="page-header-banner" class="style-scope ytd-tabbed-page-header">\n        <div id="page-header-banner-sizer" class="style-scope ytd-tabbed-page-header">\n          <yt-image-banner-view-model data="[[imageBannerViewModel]]" class="style-scope ytd-tabbed-page-header"> </yt-image-banner-view-model>\n        </div>\n      </div>\n    </template>\n    <div id="page-header" class="style-scope ytd-tabbed-page-header">\n      <yt-page-header-renderer allow-cinematic-container-overflow="" data="[[data]]" disable-upgrade$="[[!tabsHidden]]" no-padding="true" class="style-scope ytd-tabbed-page-header"></yt-page-header-renderer>\n    </div>\n  </div>\n</template>\n');a.content.insertBefore(_.w().content.cloneNode(!0),
a.content.firstChild);return ywz=a},{mode:1});var zD4;var xU=function(){return _.G.apply(this,arguments)||this};
_.b(xU,_.G);xU.prototype.observerRichGridItemsPerRow=function(){this.richGridItemsPerRow&&_.uK(this.hostElement,{"--ytd-rich-grid-items-per-row":""+this.richGridItemsPerRow})};
_.eH.Object.defineProperties(xU.prototype,{badgeIconName:{configurable:!0,enumerable:!0,get:function(){var a,z;return this.componentBehavior.computeIcon_(((z=_.H((a=this.data)==null?void 0:a.badge,_.HRf))==null?void 0:z.icon)||null)}},
badgeLabel:{configurable:!0,enumerable:!0,get:function(){var a,z;return(z=_.H((a=this.data)==null?void 0:a.badge,_.HRf))==null?void 0:z.label}}});
xU.prototype.observerRichGridItemsPerRow=xU.prototype.observerRichGridItemsPerRow;_.L([_.Q(_.k.YtRendererBehavior),_.p("design:type",Object)],xU.prototype,"ytRendererBehavior",void 0);_.L([_.Q(_.Ms.YtComponentBehavior),_.p("design:type",Object)],xU.prototype,"componentBehavior",void 0);_.L([_.Q(_.pV),_.p("design:type",Object)],xU.prototype,"ytdReduxBehavior",void 0);_.L([_.x({reflectToAttribute:!0,selector:_.$p}),_.p("design:type",Boolean)],xU.prototype,"richGridMiniMode",void 0);
_.L([_.x({selector:_.X4}),_.p("design:type",Number)],xU.prototype,"richGridItemsPerRow",void 0);_.L([_.x(),_.p("design:type",Object)],xU.prototype,"data",void 0);_.L([_.O8("richGridItemsPerRow"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],xU.prototype,"observerRichGridItemsPerRow",null);_.L([_.S("data"),_.p("design:type",Object),_.p("design:paramtypes",[])],xU.prototype,"badgeIconName",null);
_.L([_.S("data"),_.p("design:type",Object),_.p("design:paramtypes",[])],xU.prototype,"badgeLabel",null);_.L([_.U({is:"ytd-member-hub-profile-renderer",disableElementRegistration:!0})],xU);
_.D(xU,"ytd-member-hub-profile-renderer",function(){if(zD4!==void 0)return zD4;var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-member-hub-profile-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="content" class="style-scope ytd-member-hub-profile-renderer">\n  <yt-img-shadow id="avatar" hidden="[[!data.avatar]]" thumbnail="[[data.avatar]]" class="style-scope ytd-member-hub-profile-renderer">\n  </yt-img-shadow>\n  <div id="details-container" class="style-scope ytd-member-hub-profile-renderer">\n    <ytd-badge-supported-renderer top-standalone-badge="[[data.badge]]" class="style-scope ytd-member-hub-profile-renderer">\n    </ytd-badge-supported-renderer>\n    <h2 class="style-scope ytd-member-hub-profile-renderer">\n      <yt-formatted-string id="title" hidden="[[!data.title]]" text="[[data.title]]" class="style-scope ytd-member-hub-profile-renderer">\n      </yt-formatted-string>\n    </h2>\n    <yt-formatted-string id="subtitle" hidden="[[!data.subtitle]]" text="[[data.subtitle]]" class="style-scope ytd-member-hub-profile-renderer">\n    </yt-formatted-string>\n  </div>\n</div>\n');a.content.insertBefore(_.w().content.cloneNode(!0),
a.content.firstChild);return zD4=a},{mode:1});var IqV;var v6=function(){return _.G.apply(this,arguments)||this};
_.b(v6,_.G);v6.prototype.configureRendererStamper=function(){return{"data.items":{id:"items",mapping:{compactLinkRenderer:{component:"ytd-compact-link-renderer",noInjection:!0}}}}};
_.L([_.Q(_.u4.YtRendererstamperBehavior),_.p("design:type",Object)],v6.prototype,"ytRendererstamperBehavior",void 0);_.L([_.Q(_.k.YtRendererBehavior),_.p("design:type",Object)],v6.prototype,"ytRendererBehavior",void 0);_.L([_.x(),_.p("design:type",Object)],v6.prototype,"data",void 0);_.L([_.U({is:"ytd-settings-sidebar-renderer",disableElementRegistration:!0})],v6);
_.D(v6,"ytd-settings-sidebar-renderer",function(){if(IqV!==void 0)return IqV;var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-settings-sidebar-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="title" class="style-scope ytd-settings-sidebar-renderer">[[getSimpleString(data.title)]]</div>\n<div id="items" class="style-scope ytd-settings-sidebar-renderer"></div>\n');a.content.insertBefore(_.w().content.cloneNode(!0),
a.content.firstChild);return IqV=a},{mode:1});var JhE;var G5=function(){var a=_.G.apply(this,arguments)||this;a.expandableCustomTabRenderable=function(z){return SI4(z,function(){return void a.onSearchNavigate()})};
return a};
_.b(G5,_.G);G5.prototype.configureRendererStamper=function(){return{"data.subscribeButton":{id:"subscribe-button",mapping:{buttonRenderer:"ytd-button-renderer",subscribeButtonRenderer:"ytd-subscribe-button-renderer"}}}};
G5.prototype.onSearchNavigate=function(){this.selected=void 0};
G5.prototype.onTabsChange=function(){var a,z=(a=this.tabs)==null?void 0:a.findIndex(function(I){var J;return I==null?void 0:(J=I.tabRenderer)==null?void 0:J.selected});
z!==void 0&&(this.selected=z)};
G5.prototype.onTabsActive=function(a){if(this.tabs!==void 0){var z,I;(a=(z=this.tabs[a.detail.selected])==null?void 0:(I=z.tabRenderer)==null?void 0:I.endpoint)&&_.PA(this.hostElement,"yt-navigate",{endpoint:a})}};
_.eH.Object.defineProperties(G5.prototype,{tabGroupShape:{configurable:!0,enumerable:!0,get:function(){return this.tabs?{isOverflowHidden:!0,tabs:vgG(this.tabs,this.expandableCustomTabRenderable)}:{}}},
tabsEnabled:{configurable:!0,enumerable:!0,get:function(){return this.tabs!==void 0&&this.tabs.length>1}}});
G5.prototype.onTabsChange=G5.prototype.onTabsChange;_.L([_.Q(_.u4.YtRendererstamperBehavior),_.p("design:type",Object)],G5.prototype,"ytRendererstamperBehavior",void 0);_.L([_.Q(_.kI),_.p("design:type",Object)],G5.prototype,"ytdGridStateAwareBehavior",void 0);_.L([_.Q(_.k.YtRendererBehavior),_.p("design:type",Object)],G5.prototype,"ytRendererBehavior",void 0);_.L([_.Q(_.cZ.YtdGuideStateAwareBehavior),_.p("design:type",Object)],G5.prototype,"ytdGuideStateAwareBehavior",void 0);
_.L([_.x(),_.p("design:type",Object)],G5.prototype,"data",void 0);_.L([_.x(),_.p("design:type",Array)],G5.prototype,"tabs",void 0);_.L([_.x(),_.p("design:type",Number)],G5.prototype,"selected",void 0);_.L([_.S("tabs.*"),_.p("design:type",Object),_.p("design:paramtypes",[])],G5.prototype,"tabGroupShape",null);_.L([_.x(),_.p("design:type",Object)],G5.prototype,"expandableCustomTabRenderable",void 0);
_.L([_.S("tabs"),_.p("design:type",Boolean),_.p("design:paramtypes",[])],G5.prototype,"tabsEnabled",null);_.L([_.Fe("tabs"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],G5.prototype,"onTabsChange",null);_.L([_.U({is:"ytd-topic-channel-details-renderer",disableElementRegistration:!0})],G5);
_.D(G5,"ytd-topic-channel-details-renderer",function(){if(JhE!==void 0)return JhE;var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-topic-channel-details-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-topic-channel-details-renderer">\n  <div id="channel-header-container" class="style-scope ytd-topic-channel-details-renderer">\n    <a class="yt-simple-endpoint style-scope ytd-topic-channel-details-renderer" href$="[[computeHref_(data.navigationEndpoint)]]" data="[[data.navigationEndpoint]]">\n      <yt-img-shadow id="avatar" thumbnail="[[data.avatar]]" width="80" class="style-scope ytd-topic-channel-details-renderer"> </yt-img-shadow>\n      <div id="inner-header-container" class="style-scope ytd-topic-channel-details-renderer">\n        <h1 class="style-scope ytd-topic-channel-details-renderer">\n          <yt-formatted-string id="title" text="[[data.title]]" class="style-scope ytd-topic-channel-details-renderer"> </yt-formatted-string>\n        </h1>\n        <yt-formatted-string id="subtitle" text="[[data.subtitle]]" class="style-scope ytd-topic-channel-details-renderer"> </yt-formatted-string>\n      </div>\n    </a>\n    <div id="subscribe-button" class="style-scope ytd-topic-channel-details-renderer"></div>\n  </div>\n  <div id="tabs-container" hidden="[[!tabsEnabled]]" class="style-scope ytd-topic-channel-details-renderer">\n    <div id="tabs-inner-container" class="style-scope ytd-topic-channel-details-renderer">\n      <tp-yt-paper-tabs id="tabs" noink="" remove-idle-scroll-buttons="true" scrollable="" selected="[[selected]]" on-iron-activate="onTabsActive" class="style-scope ytd-topic-channel-details-renderer">\n        <template is="dom-if" if="[[tabGroupShape]]" class="style-scope ytd-topic-channel-details-renderer">\n          <yt-tab-group-shape shape="[[tabGroupShape]]" class="style-scope ytd-topic-channel-details-renderer"> </yt-tab-group-shape>\n        </template>\n      </tp-yt-paper-tabs>\n    </div>\n  </div>\n</div>\n');a.content.insertBefore(_.w().content.cloneNode(!0),
a.content.firstChild);return JhE=a},{mode:1});var rhi;var $U=function(){var a=_.G.apply(this,arguments)||this;a.disableGridStateAware=!1;return a};
_.b($U,_.G);$U.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]]"}}}}}};
$U.prototype.activeChanged=function(){this.carousel&&(this.carousel.active=this.active)};
$U.prototype.updateCssVars=function(){_.uK(this.hostElement,{"--ytd-rich-grid-max-width":this.richGridItemsPerRow*((this.richGridMiniMode?320:_.Ib("rich_grid_max_item_width",500))+16)-16+"px"})};
$U.prototype.updateCssVars=$U.prototype.updateCssVars;$U.prototype.activeChanged=$U.prototype.activeChanged;_.L([_.Q(_.cZ.YtdGuideStateAwareBehavior),_.p("design:type",Object)],$U.prototype,"ytdGuideStateAwareBehavior",void 0);_.L([_.Q(_.pV),_.p("design:type",Object)],$U.prototype,"ytdReduxBehavior",void 0);_.L([_.Q(_.k.YtRendererBehavior),_.p("design:type",Object)],$U.prototype,"ytRendererBehavior",void 0);
_.L([_.Q(_.u4.YtRendererstamperBehavior),_.p("design:type",Object)],$U.prototype,"ytRendererstamperBehavior",void 0);_.L([_.x(),_.p("design:type",Object)],$U.prototype,"data",void 0);_.L([_.x(),_.p("design:type",Array)],$U.prototype,"tabs",void 0);_.L([_.x(),_.p("design:type",Boolean)],$U.prototype,"active",void 0);_.L([_.x({reflectToAttribute:!0}),_.p("design:type",Object)],$U.prototype,"disableGridStateAware",void 0);
_.L([_.x({selector:_.X4}),_.p("design:type",Number)],$U.prototype,"richGridItemsPerRow",void 0);_.L([_.x({selector:_.$p}),_.p("design:type",Boolean)],$U.prototype,"richGridMiniMode",void 0);_.L([_.A3("ytd-carousel-item-renderer"),_.p("design:type",Object)],$U.prototype,"carousel",void 0);_.L([_.O8("active"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],$U.prototype,"activeChanged",null);
_.L([_.O8("richGridItemsPerRow","richGridMiniMode"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],$U.prototype,"updateCssVars",null);_.L([_.U({disableElementRegistration:!0,is:"ytd-carousel-header-renderer"})],$U);
_.D($U,"ytd-carousel-header-renderer",function(){if(rhi!==void 0)return rhi;var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-carousel-header-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="contents" class="style-scope ytd-carousel-header-renderer"></div>\n');a.content.insertBefore(_.w().content.cloneNode(!0),a.content.firstChild);return rhi=a},{mode:1});var P2Z;var Zz0=_.kK(["https://www.google-analytics.com/analytics.js"]),XI=function(){var a=_.G.apply(this,arguments)||this;a.scriptAnalyticsAdded=!1;return a};
_.b(XI,_.G);XI.prototype.dataChanged=function(){this.data&&this.data.analyticsId&&this.sendGoogleAnalyticsPageview(this.data.analyticsId);var a,z=(a=this.data)==null?void 0:a.tagManagerId;z&&(_.dr(z,_.Xw("GL")),$wV(z))};
XI.prototype.sendGoogleAnalyticsPageview=function(a){this.scriptAnalyticsAdded||this.appendAnalyticsScript();window.ga=window.ga||function(){var I=_.dO.apply(0,arguments);(window.ga.q=window.ga.q||[]).push(I)};
var z=window.ga;z("set","page",window.location.pathname);z.l=+new Date;z("set","forceSSL",!0);z("create",a,"'auto'");z("send","pageview")};
XI.prototype.appendAnalyticsScript=function(){this.scriptAnalyticsAdded=!0;var a=_.OS("SCRIPT");a.name="ga-analytics";var z=_.Jz(Zz0);_.c9(a,z);a.async=!0;_.PK(this.hostElement).appendChild(a)};
XI.prototype.dataChanged=XI.prototype.dataChanged;_.L([_.x(),_.p("design:type",Object)],XI.prototype,"data",void 0);_.L([_.O8("data"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],XI.prototype,"dataChanged",null);_.L([_.U({disableElementRegistration:!0,is:"ytd-channel-metadata-renderer"})],XI);
_.D(XI,"ytd-channel-metadata-renderer",function(){if(P2Z!==void 0)return P2Z;var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-channel-metadata-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<template is="dom-if" if="[[data.trackingImageUrl]]" class="style-scope ytd-channel-metadata-renderer">\n  <img src$="[[data.trackingImageUrl]]" border="0" width="1" height="1" alt="" class="style-scope ytd-channel-metadata-renderer">\n</template>\n<template is="dom-if" if="[[data.channelConversionUrl]]" class="style-scope ytd-channel-metadata-renderer">\n  <img src$="[[data.channelConversionUrl]]" border="0" width="1" height="1" alt="" class="style-scope ytd-channel-metadata-renderer">\n</template>\n');a.content.insertBefore(_.w().content.cloneNode(!0),
a.content.firstChild);return P2Z=a},{mode:1});var C2E;var NwV;var T5=function(){var a=_.G.apply(this,arguments)||this;a.closeOnDismissButton=new Set(["ALERT_WITH_ACTIONS_DISMISS_STRATEGY_UNKNOWN","ALERT_WITH_ACTIONS_DISMISS_STRATEGY_ON_LINK_TAP","ALERT_WITH_ACTIONS_DISMISS_STRATEGY_ONLY_DISMISS_BUTTON_TAP"]);a.closeOnAcceptButton=new Set(["ALERT_WITH_ACTIONS_DISMISS_STRATEGY_UNKNOWN","ALERT_WITH_ACTIONS_DISMISS_STRATEGY_ON_LINK_TAP","ALERT_WITH_ACTIONS_DISMISS_STRATEGY_ONLY_ACTION_BUTTON_TAP"]);a.actionMap={"ytd-update-elements-per-row-action":"onUpdateElementsPerRowAction"};
return a};
_.b(T5,_.G);_.Z=T5.prototype;_.Z.attached=function(){this.requestElementsPerRow()};
_.Z.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_]]"}}}}}};
_.Z.onUpdateElementsPerRowAction=function(a){a&&this.elementsPerRow!==a&&(this.elementsPerRow=a)};
_.Z.dismissButtonTap_=function(){this.set("data.isVisible",!this.closeOnDismissButton.has(this.data.dismissStrategy||"ALERT_WITH_ACTIONS_DISMISS_STRATEGY_UNKNOWN"))};
_.Z.acceptButtonTap_=function(){this.set("data.isVisible",!this.closeOnAcceptButton.has(this.data.dismissStrategy||"ALERT_WITH_ACTIONS_DISMISS_STRATEGY_UNKNOWN"))};
_.Z.computeAlertStyle_=function(a){return a};
_.Z.observerElementsPerRow=function(){this.elementsPerRow&&_.uK(this.hostElement,{"--ytd-rich-grid-items-per-row":""+this.elementsPerRow})};
_.Z.onIsVisibleChanged_=function(){this.data&&!this.data.isVisible&&this.ytRendererBehavior.impressionLog()};
_.Z.requestElementsPerRow=function(){_.PA(this.hostElement,"yt-request-elements-per-row")};
T5.prototype.onIsVisibleChanged_=T5.prototype.onIsVisibleChanged_;T5.prototype.observerElementsPerRow=T5.prototype.observerElementsPerRow;_.L([_.Q(_.u4.YtRendererstamperBehavior),_.p("design:type",Object)],T5.prototype,"ytRendererstamperBehavior",void 0);_.L([_.Q(_.k.YtRendererBehavior),_.p("design:type",Object)],T5.prototype,"ytRendererBehavior",void 0);_.L([_.Q(_.Hc.YtActionHandlerBehavior),_.p("design:type",Object)],T5.prototype,"actionHandlerBehavior",void 0);
_.L([_.x(),_.p("design:type",Object)],T5.prototype,"data",void 0);_.L([_.x({value:6,reflectToAttribute:!0}),_.p("design:type",Number)],T5.prototype,"elementsPerRow",void 0);_.L([_.x({value:!1,reflectToAttribute:!0}),_.p("design:type",Boolean)],T5.prototype,"wrapButtons",void 0);_.L([_.x({value:_.Xw("INNERTUBE_CLIENT_NAME")==="WEB_REMIX",reflectToAttribute:!0}),_.p("design:type",Boolean)],T5.prototype,"isMusic",void 0);
_.L([_.x({reflectToAttribute:!0,computed:"computeAlertStyle_(data.alertType.type)"}),_.p("design:type",String)],T5.prototype,"alertStyle",void 0);_.L([_.x({value:function(){return this.dismissButtonTap_.bind(this)}}),
_.p("design:type",Function)],T5.prototype,"dismissBoundButtonTap_",void 0);_.L([_.x({value:function(){return this.acceptButtonTap_.bind(this)}}),
_.p("design:type",Function)],T5.prototype,"acceptBoundButtonTap_",void 0);_.L([_.O8("elementsPerRow"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],T5.prototype,"observerElementsPerRow",null);_.L([_.O8("data.isVisible"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],T5.prototype,"onIsVisibleChanged_",null);_.L([_.dz({is:"yt-alert-with-actions-renderer",disableElementRegistration:!0})],T5);
_.D(T5,"yt-alert-with-actions-renderer",function(){if(NwV===void 0){var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-alert-with-actions-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.yt_alert_with_actions_renderer.yt.alert.with.actions.renderer.css.js--\x3e<div id="content-wrapper" hidden="[[!data.isVisible]]" class="style-scope yt-alert-with-actions-renderer">\n  <div id="content" class="style-scope yt-alert-with-actions-renderer">\n    <yt-icon id="icon" hidden="[[!data.icon]]" icon="[[data.icon.iconType]]" class="style-scope yt-alert-with-actions-renderer"></yt-icon>\n    <div id="text-content" class="style-scope yt-alert-with-actions-renderer">\n      <yt-formatted-string id="title" hidden$="[[!!data.title]]" text="[[data.title]]" class="style-scope yt-alert-with-actions-renderer"></yt-formatted-string>\n      <yt-formatted-string id="alert-message" text="[[data.alertMessage]]" class="style-scope yt-alert-with-actions-renderer"></yt-formatted-string>\n    </div>\n  </div>\n  <div id="actions" class="style-scope yt-alert-with-actions-renderer">\n    <div id="dismiss-button" hidden$="[[!!data.dismissButton]]" class="style-scope yt-alert-with-actions-renderer"></div>\n    <div id="action-buttons" hidden$="[[!!data.actionButtons]]" class="style-scope yt-alert-with-actions-renderer"></div>\n  </div>\n</div>\n');
a.content.insertBefore(_.w().content.cloneNode(!0),a.content.firstChild);var z=a.content,I=z.insertBefore;C2E===void 0&&(C2E=document.createElement("template"));var J=C2E;I.call(z,J.content.cloneNode(!0),a.content.firstChild);NwV=a}a=NwV;return a},{mode:2});_.Jf(_.ec(function(a){function z(n){var F={};return _.B(_.xs,{text:n,className:_.B8("ytPersonalGreetingViewModelHeadline",(F.ytPersonalGreetingViewModelHeadlineSmall=function(){return u()===48},F))})}
function I(n,F){return _.B("span",{el:n,class:"ytPersonalGreetingViewModelHeadlineInvisible","aria-hidden":"true"},z(F))}
var J=_.a5(_.UN(function(){var n;return(n=a.data())==null?void 0:n.rendererContext},void 0,void 0,void 0,!0)),r=_.Mm("span"),P=_.Mm("span"),N=function(){return a.data().canvasPromoData},u=function(){var n;
return(n=a.data().bannerHeight)!=null?n:56},E=_.L4p(J,{throttleMs:100}),O=_.L4p(r,{throttleMs:100}),f=_.L4p(P,{throttleMs:100}),A=function(){return O.width()-E.width()>1};
return _.B("yt-personal-greeting-view-model",{el:J,"aria-hidden":A,class:_.B8(a.className,"ytPersonalGreetingViewModelHost"),style:_.sW({height:(0,_.oP)(function(){return A()?0:u()})})},_.B(_.g,{cond:function(){return a.data().avatar&&!(f.width()+(a.data().avatar?48:0)-E.width()>1)},
then:function(){return _.B(_.V0,{data:function(){return a.data().avatar}},{decoratedAvatarViewModel:function(n){return _.B(_.Uj,{data:n.data,
className:_.B8("ytPersonalGreetingViewModelAvatar")})}})}}),_.B("h1",null,z(function(){var n;
return(N==null?void 0:(n=N())==null?void 0:n.headline)||(f.width()+(a.data().avatar?48:0)-E.width()>1?a.data().shorterGreeting:a.data().greeting)})),I(P,function(){return a.data().greeting}),I(r,function(){return a.data().shorterGreeting}))},"Uj"),"yt-personal-greeting-view-model",{props:{data:_.zl,
className:_.zl}});var dX=function(){var a=_.G.apply(this,arguments)||this;a.hidden=!1;a.isConstrainedList=!1;a.darkerDarkTheme=_.K("web_darker_dark_theme");a.responsiveSizing="COMPACT";a.attachedPlayers=_.K("kevlar_channel_trailer_multi_attach")?[]:void 0;a.player=null;a.actionMap={"yt-alert-command":"handleAlertCommand","yt-playlist-deletion-redirect-command":"handleYtPlaylistDeletionRedirect"};return a};
_.b(dX,_.G);_.Z=dX.prototype;
_.Z.configureRendererStamper=function(){return{mastheadAdData:{id:"masthead-ad",mapping:{bannerPromoRenderer:{component:"ytd-banner-promo-renderer",noInjection:!0},videoMastheadAdV3Renderer:{component:"ytd-video-masthead-ad-v3-renderer",noInjection:!0}},reuseComponents:!1},alertBannerData:{id:"alert-banner",mapping:{alertWithActionsRenderer:{component:"yt-alert-with-actions-renderer",noInjection:!0}}},greetingData:{id:"personal-greeting",mapping:{personalGreetingViewModel:{component:"yt-personal-greeting-view-model",properties:{className:"[[is]]"},
noInjection:!0}}},"data.alerts":{id:"alerts",mapping:{alertRenderer:{component:"yt-alert-renderer",noInjection:!0},unlimitedUserNotificationRenderer:{component:"yt-unlimited-user-notification-renderer",noInjection:!0},alertWithButtonRenderer:{component:"ytd-alert-with-button-renderer",noInjection:!0}},initialRenderPriority:3,waitForSignal:"eocs"},"data.survey":{id:"survey",mapping:{surveyTriggerRenderer:{component:"ytd-survey-trigger-renderer",noInjection:!0}},initialRenderPriority:3,waitForSignal:"eocs"},
"data.metadata":{id:"metadata",mapping:{channelMetadataRenderer:{component:"ytd-channel-metadata-renderer",noInjection:!0}}},"data.header":{id:"header",mapping:{pageHeaderRenderer:{component:"ytd-tabbed-page-header",properties:{active:"[[active]]",tabs:"[[data.contents.twoColumnBrowseResultsRenderer.tabs]]",isRichGrid:"[[richGrid]]",disableGridStateAware:"[[fluidWidth]]",disableHeaderFluidWidth:"[[disableHeaderFluidWidth]]",isConstrainedList:"[[isConstrainedList]]",responsiveSizing:"[[responsiveSizing]]"}},
interactiveTabbedHeaderRenderer:{component:"ytd-interactive-tabbed-header-renderer",properties:{active:"[[active]]",tabs:"[[data.contents.twoColumnBrowseResultsRenderer.tabs]]"},noInjection:!0},carouselHeaderRenderer:{component:"ytd-carousel-header-renderer",properties:{active:"[[active]]",disableGridStateAware:"[[fluidWidth]]",tabs:"[[data.contents.twoColumnBrowseResultsRenderer.tabs]]"},noInjection:!0},memberHubProfileRenderer:{component:"ytd-member-hub-profile-renderer",noInjection:!0}},events:!0},
"data.footer":{id:"footer",mapping:{pageFooterRenderer:{component:"ytd-page-footer-renderer",noInjection:!0}}}}};
_.Z.created=function(){var a=this;this.ytRendererBehavior.monitorScroll=!0;this.ytPageBehavior.pageDisposeJobs=[function(){a.disposeMastheadAd()}]};
_.Z.attached=function(){this.pageSubtype==="home"&&this.refresh&&this.contents&&(this.refreshGesture=new zmE(this.refresh,this.contents))};
_.Z.detached=function(){this.tabGestures&&(this.tabGestures.detach(),this.tabGestures=void 0);this.refreshGesture&&(this.refreshGesture.detach(),this.refreshGesture=void 0)};
_.Z.activeChanged=function(){var a=this.ytPageBehavior.active;this.header&&this.header.firstChild&&(this.header.firstChild.active=a)};
_.Z.tabsChanged=function(){var a=this,z,I;if(this.pageSubtype==="channels"||_.K("kevlar_tab_gestures_for_tabbed_header_data")&&((z=this.data)==null?0:(I=z.header)==null?0:I.carouselHeaderRenderer))this.tabGestures=new Rz(this.contents,this.contents,this.hostElement,this.header,function(N){a.ytdReduxBehavior.dispatch(N)});
var J,r,P;z=(J=this.data)==null?void 0:(r=J.contents)==null?void 0:(P=r.twoColumnBrowseResultsRenderer)==null?void 0:P.tabs;this.tabGestures&&this.tabGestures.tabsChanged(z)};
_.Z.scrollAtTopChanged=function(){this.refreshGesture&&(this.scrollAtTop?this.refreshGesture.attach():this.refreshGesture.detach())};
_.Z.engagementPanelsChanged=function(){var a=_.ab().resolve(_.X3);if(a){if(this.engagementPanels)for(var z=_.C(this.engagementPanels),I=z.next();!I.done;I=z.next()){var J=void 0;(I=(J=I.value.identifier)==null?void 0:J.tag)&&a.panelMap.delete(I)}this.engagementPanels=[];var r;z=_.C(((r=this.data)==null?void 0:r.panels)||[]);for(r=z.next();!r.done;r=z.next()){r=_.H(r.value,_.Q6z);var P=I=void 0,N=void 0,u=void 0;if(J=((I=r)==null?void 0:I.targetId)||((P=r)==null?void 0:P.panelIdentifier)||((N=r)==
null?void 0:(u=N.identifier)==null?void 0:u.tag))P=I=void 0,(P=(I=a).registerPanelContent)==null||P.call(I,J,{engagementPanelSectionListRenderer:r}),this.engagementPanels.push(r)}}};
_.Z.onStampFinished=function(){var a=this;_.Yv(this,function(){if(a.tabGestures){var z=a.tabGestures;if(z.scrollPositionNeedsUpdate){var I=_.ab().resolve(_.eL(_.aK)),J;if((J=z.selectedTab)!=null&&J.title&&I&&(J=I.getCurrentPage())){if(z.scrollPositionForTabs.has(z.selectedTab.title)){var r,P;I=(P=(r=I.getCurrentPage())==null?void 0:r.clientHeight)!=null?P:0;r=z.scrollPositionForTabs.get(z.selectedTab.title);J.setScrollTop(r);I>r+100&&(z.scrollPositionNeedsUpdate=!1)}else J.setScrollTop(Math.min(z.lastVisitedTabScrollPosition!==
void 0?z.lastVisitedTabScrollPosition:Number.MAX_SAFE_INTEGER,z.tabsStartAtInPx)),z.scrollPositionNeedsUpdate=!1;z.ytdReduxDispatch(G8M(!1))}}}})};
_.Z.loadPage_=function(a){this.initCsi();a&&(this.data=a);this.updateTitle(this.data);this.setMastheadAd(this.data)};
_.Z.getTitle=function(a){if(this.pageSubtype=="home")return"";if(this.get("microformat.microformatDataRenderer.title",a))return this.get("microformat.microformatDataRenderer.title",a);if(this.get("header.feedTabbedHeaderRenderer.title",a))return _.cd(this.get("header.feedTabbedHeaderRenderer.title",a));if(this.get("header.interactiveTabbedHeaderRenderer.title",a))return this.get("header.interactiveTabbedHeaderRenderer.title",a);if(this.get("contents.twoColumnBrowseResultsRenderer.tabs.0.tabRenderer.content.richGridRenderer.contents.0.richSectionRenderer.content.sourcePivotHeaderRenderer.headerInformation.profilePageHeaderInformationRenderer.title.profilePageHeaderTitleRenderer.title",
a))return _.cd(this.get("contents.twoColumnBrowseResultsRenderer.tabs.0.tabRenderer.content.richGridRenderer.contents.0.richSectionRenderer.content.sourcePivotHeaderRenderer.headerInformation.profilePageHeaderInformationRenderer.title.profilePageHeaderTitleRenderer.title",a));var z,I;return(a==null?0:(z=a.header)==null?0:(I=z.pageHeaderRenderer)==null?0:I.pageTitle)?a.header.pageHeaderRenderer.pageTitle:""};
_.Z.updateTitle=function(a){_.PA(this.hostElement,"yt-update-title",this.getTitle(a))};
_.Z.initCsi=function(){_.dk(this.pageSubtype||"browse",["ol","cpt"])};
_.Z.getPlayer=function(){if(_.K("kevlar_channel_trailer_multi_attach")){for(var a=_.C(this.attachedPlayers),z=a.next();!z.done;z=a.next())if(z=z.value,z.isConnected||_.of(this.hostElement,z))return z;return null}return this.player};
_.Z.getPlayerContainer=function(){return null};
_.Z.onPlayerAttached=function(a,z){_.K("kevlar_channel_trailer_multi_attach")?this.attachedPlayers.push(z):this.player=z};
_.Z.onPlayerDetached=function(a,z){_.K("kevlar_channel_trailer_multi_attach")?(a=this.attachedPlayers.indexOf(z),a<0||this.attachedPlayers.splice(a,1)):this.player=null};
_.Z.getServiceTrackingParams=function(){var a,z;return((a=this.data)==null?void 0:(z=a.responseContext)==null?void 0:z.serviceTrackingParams)||[]};
_.Z.setMastheadAd=function(a){a&&a.mastheadAd&&(this.mastheadAdData=void 0);this.mastheadAdData=a&&a.mastheadAd};
_.Z.dataChanged=function(){var a=this;this.refreshGesture&&this.refreshGesture.reset();this.get("filler",this.data)||_.O7E();_.Yv(this,function(){_.Ct(a.hostElement,"ytd-update-grid-state-action")})};
_.Z.disposeMastheadAd=function(){this.mastheadAdData=void 0};
_.Z.computeAlertBannerData=function(){if(this.data&&this.data.alerts){var a=this.data.alerts;return a&&a.find(function(z){return!!z.alertWithActionsRenderer})}};
_.Z.computeGreetingData=function(){if(this.data&&this.data.alerts){var a=this.data.alerts;return a&&a.find(function(z){return!!z.personalGreetingViewModel})}};
_.Z.computeHasMemberHubProfileRenderer=function(a){var z;return!!(a==null?0:(z=a.header)==null?0:z.memberHubProfileRenderer)};
_.Z.handleAlertCommand=function(a){this.get("alertCommand.alert.alertWithActionsRenderer",a)&&(a=_.H(a,LQZ),this.data.alerts||this.set("data.alerts",[]),this.unshift("data.alerts",a.alert))};
_.Z.handleYtPlaylistDeletionRedirect=function(a){a=this.get("playlistDeletionRedirectCommand.redirectEndpoint",a);_.PA(this.hostElement,"yt-navigate",{endpoint:a})};
_.Z.computeFluidWidth=function(a,z,I){if(z==="mini_app"||I)return!0;var J,r,P;a=a==null?void 0:(J=a.contents)==null?void 0:(r=J.twoColumnBrowseResultsRenderer)==null?void 0:(P=r.tabs)==null?void 0:P.find(function(E){var O;return E==null?void 0:(O=E.tabRenderer)==null?void 0:O.selected});
if(!a)return!1;var N,u;return!!((N=a.tabRenderer)==null?0:(u=N.content)==null?0:u.richGridRenderer)&&!["channel","channels","playables"].includes(z)};
_.Z.computeHeaderFluidWidth=function(a){return a==="hashtag-landing-page"};
_.Z.computeHasSidebar=function(a){var z;return!!(a.sidebar||((z=a.header)==null?0:z.playlistHeaderRenderer))};
_.Z.computeHasPageHeaderSidebar=function(a){var z,I;return!!((z=a.header)==null?0:(I=z.pageHeaderRenderer)==null?0:I.enableSidebarView)};
_.Z.computeUseUnifiedShowPageLayout=function(a){if(!a||this.pageSubtype!=="show"||!a.sidebar||!a.sidebar.playlistSidebarRenderer)return!1;a=a.sidebar.playlistSidebarRenderer;if(!a.items)return!1;for(var z=0;z<a.items.length;z++)if(_.H(a.items[z],UK)){var I=void 0;return((I=_.H(a.items[z],UK))==null?void 0:I.style)==="PLAYLIST_SIDEBAR_PRIMARY_INFO_RENDERER_STYLE_TYPE_SHOW"}return!1};
_.Z.computeIsConstrainedList=function(a){return _.K("web_enable_constrained_list_subscriptions_channels")&&a==="subscriptions-channels"};
_.Z.computeResponsiveSizing=function(a){return a==="subscriptions-channels"?"STANDARD":"COMPACT"};
_.eH.Object.defineProperties(dX.prototype,{usePlaylistHeaderRenderer:{configurable:!0,enumerable:!0,get:function(){var a,z;return((a=this.data)==null?0:(z=a.header)==null?0:z.playlistHeaderRenderer)?!0:!1}},
useOldPlaylistSidebarRenderer:{configurable:!0,enumerable:!0,get:function(){var a,z;if(!((a=this.data)==null?0:(z=a.sidebar)==null?0:z.playlistSidebarRenderer))return!1;var I;return(I=this.data)!=null&&I.header?!1:!0}}});
_.eH.Object.defineProperties(dX,{template:{configurable:!0,enumerable:!0,get:function(){if(rwZ===void 0){var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-browse--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="alert-banner" class="style-scope ytd-browse"></div>\n<div id="personal-greeting" class="style-scope ytd-browse"></div>\n<div id="masthead-ad" class="style-scope ytd-browse"></div>\n<div id="header" class="style-scope ytd-browse"></div>\n<div id="alerts" class="style-scope ytd-browse"></div>\n\n<ytd-channel-legal-info-renderer data="[[data.contents.twoColumnBrowseResultsRenderer.secondaryContents.browseSecondaryContentsRenderer.contents.0.channelLegalInfoRenderer]]" disable-upgrade$="[[!data.contents.twoColumnBrowseResultsRenderer.secondaryContents.browseSecondaryContentsRenderer.contents.0.channelLegalInfoRenderer]]" hidden="[[!data.contents.twoColumnBrowseResultsRenderer.secondaryContents.browseSecondaryContentsRenderer.contents.0.channelLegalInfoRenderer]]" class="style-scope ytd-browse">\n</ytd-channel-legal-info-renderer>\n<ytd-playlist-sidebar-renderer data="[[data.sidebar.playlistSidebarRenderer]]" disable-upgrade$="[[!useOldPlaylistSidebarRenderer]]" hidden="[[!useOldPlaylistSidebarRenderer]]" class="style-scope ytd-browse">\n</ytd-playlist-sidebar-renderer>\n<ytd-playlist-header-renderer data="[[data.header.playlistHeaderRenderer]]" disable-upgrade$="[[!usePlaylistHeaderRenderer]]" hidden="[[!usePlaylistHeaderRenderer]]" class="style-scope ytd-browse">\n</ytd-playlist-header-renderer>\n<ytd-settings-sidebar-renderer data="[[data.sidebar.settingsSidebarRenderer]]" disable-upgrade$="[[!data.sidebar.settingsSidebarRenderer]]" hidden="[[!data.sidebar.settingsSidebarRenderer]]" class="style-scope ytd-browse">\n</ytd-settings-sidebar-renderer>\n<template is="dom-if" if="[[hasPageHeaderSidebar]]" class="style-scope ytd-browse">\n    <yt-page-header-renderer class="page-header-sidebar style-scope ytd-browse" data="[[data.header.pageHeaderRenderer]]" 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');
a.content.insertBefore(_.w().content.cloneNode(!0),a.content.firstChild);rwZ=a}a=rwZ;return a}}});
dX.prototype.dataChanged=dX.prototype.dataChanged;dX.prototype.onPlayerDetached=dX.prototype.onPlayerDetached;dX.prototype.onPlayerAttached=dX.prototype.onPlayerAttached;dX.prototype.onStampFinished=dX.prototype.onStampFinished;dX.prototype.engagementPanelsChanged=dX.prototype.engagementPanelsChanged;dX.prototype.scrollAtTopChanged=dX.prototype.scrollAtTopChanged;dX.prototype.tabsChanged=dX.prototype.tabsChanged;dX.prototype.activeChanged=dX.prototype.activeChanged;
_.L([_.Q(_.Hc.YtActionHandlerBehavior),_.p("design:type",Object)],dX.prototype,"ytActionHandlerBehavior",void 0);_.L([_.Q(_.rI),_.p("design:type",Object)],dX.prototype,"ytdOpenPopupBehavior",void 0);_.L([_.Q(_.u4.YtRendererstamperBehavior),_.p("design:type",Object)],dX.prototype,"ytRendererstamperBehavior",void 0);_.L([_.Q(_.pV),_.p("design:type",Object)],dX.prototype,"ytdReduxBehavior",void 0);_.L([_.Q(_.WR.YtPageBehavior),_.p("design:type",Object)],dX.prototype,"ytPageBehavior",void 0);
_.L([_.Q(_.k.YtRendererBehavior),_.p("design:type",Object)],dX.prototype,"ytRendererBehavior",void 0);_.L([_.Q(_.cZ.YtdGuideStateAwareBehavior),_.p("design:type",Object)],dX.prototype,"ytdGuideStateAwareBehavior",void 0);_.L([_.Q(_.Ms.YtComponentBehavior),_.p("design:type",Object)],dX.prototype,"ytComponentBehavior",void 0);_.L([_.x(),_.p("design:type",Object)],dX.prototype,"data",void 0);_.L([_.x({reflectToAttribute:!0}),_.p("design:type",Object)],dX.prototype,"hidden",void 0);
_.L([_.x(),_.p("design:type",Object)],dX.prototype,"mastheadAdData",void 0);_.L([_.x({readOnly:!0,computed:"computeAlertBannerData(data.alerts.*)"}),_.p("design:type",Object)],dX.prototype,"alertBannerData",void 0);_.L([_.x({readOnly:!0,computed:"computeGreetingData(data.alerts.*)"}),_.p("design:type",Object)],dX.prototype,"greetingData",void 0);_.L([_.x({reflectToAttribute:!0}),_.p("design:type",String)],dX.prototype,"pageSubtype",void 0);
_.L([_.x({reflectToAttribute:!0,computed:"computeHasMemberHubProfileRenderer(data)"}),_.p("design:type",Boolean)],dX.prototype,"hasMemberHubProfileRenderer",void 0);_.L([_.x({computed:"computeHasSidebar(data)",reflectToAttribute:!0}),_.p("design:type",Boolean)],dX.prototype,"hasSidebar",void 0);_.L([_.x({computed:"computeHasPageHeaderSidebar(data)",reflectToAttribute:!0}),_.p("design:type",Boolean)],dX.prototype,"hasPageHeaderSidebar",void 0);
_.L([_.x({reflectToAttribute:!0,value:!0}),_.p("design:type",Boolean)],dX.prototype,"roundedContainer",void 0);_.L([_.x({computed:"computeUseUnifiedShowPageLayout(data)",reflectToAttribute:!0}),_.p("design:type",Boolean)],dX.prototype,"useUnifiedShowPageLayout",void 0);_.L([_.x({computed:"computeIsConstrainedList(pageSubtype)"}),_.p("design:type",Object)],dX.prototype,"isConstrainedList",void 0);
_.L([_.S("data"),_.p("design:type",Boolean),_.p("design:paramtypes",[])],dX.prototype,"usePlaylistHeaderRenderer",null);_.L([_.S("data"),_.p("design:type",Boolean),_.p("design:paramtypes",[])],dX.prototype,"useOldPlaylistSidebarRenderer",null);_.L([_.x({computed:"computeFluidWidth(data, pageSubtype, isConstrainedList)"}),_.p("design:type",Boolean)],dX.prototype,"fluidWidth",void 0);_.L([_.x({selector:function(a){return a.ui.scrollAtTop}}),
_.p("design:type",Boolean)],dX.prototype,"scrollAtTop",void 0);_.L([_.x({selector:_.A2E}),_.p("design:type",Boolean)],dX.prototype,"tabGesturesIsActive",void 0);_.L([_.x({reflectToAttribute:!0}),_.p("design:type",Object)],dX.prototype,"darkerDarkTheme",void 0);_.L([_.x({reflectToAttribute:!0,computed:"computeHeaderFluidWidth(pageSubtype)"}),_.p("design:type",Boolean)],dX.prototype,"disableHeaderFluidWidth",void 0);
_.L([_.x({reflectToAttribute:!0,computed:"computeResponsiveSizing(pageSubtype)"}),_.p("design:type",String)],dX.prototype,"responsiveSizing",void 0);_.L([_.A3("ytd-two-column-browse-results-renderer"),_.p("design:type",HTMLElement)],dX.prototype,"contents",void 0);_.L([_.A3("#header"),_.p("design:type",HTMLElement)],dX.prototype,"header",void 0);_.L([_.A3("ytd-refresh"),_.p("design:type",Object)],dX.prototype,"refresh",void 0);
_.L([_.O8("active"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],dX.prototype,"activeChanged",null);_.L([_.O8("data.contents.twoColumnBrowseResultsRenderer.tabs"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],dX.prototype,"tabsChanged",null);_.L([_.O8("scrollAtTop"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],dX.prototype,"scrollAtTopChanged",null);
_.L([_.x(),_.p("design:type",Object)],dX.prototype,"engagementPanels",void 0);_.L([_.O8("data.panels"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],dX.prototype,"engagementPanelsChanged",null);_.L([_.gz("yt-rendererstamper-finished"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],dX.prototype,"onStampFinished",null);
_.L([_.gz("yt-player-attached"),_.p("design:type",Function),_.p("design:paramtypes",[CustomEvent,Element]),_.p("design:returntype")],dX.prototype,"onPlayerAttached",null);_.L([_.gz("yt-player-detached"),_.p("design:type",Function),_.p("design:paramtypes",[CustomEvent,Element]),_.p("design:returntype")],dX.prototype,"onPlayerDetached",null);_.L([_.Fe("data"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],dX.prototype,"dataChanged",null);
_.L([_.U({is:"ytd-browse"})],dX);_.gr.registerService(_.kuG,dX);
_.xl();
}catch(e){_._DumpException(e)}
try{
_.iE("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 KC,dri,WkZ,ovZ,UrG,Dr4,RQf,LkZ,lVG,pv0,wvM,mrV,k$Y,MH4,YcE,qcf,eQV,jAz,zFe,I1e,J$f,Fh,Pd4,H$,ZLE,CdV,NFf,tlE,uZY,BFZ,OLZ,E2f,yGZ,f1z,A$0,sAE,n2G,KKZ,FKZ,hFV,Vlf,QAf,SXG,xZV,v2Z,$Zi,TFE,dZE,WKG,UZZ,RFi,LKf,l1Z,pJY,wJ0,mZY,y$V,kX4,MlM,c$Z,YXi,qXz,eFf,aFY,j_f,zgZ,IFG,JRE,rRe,Zt4,CI4,NeZ,tE0,uz0,EAZ,Bez,gA0,Ot0,fF0,ARi,s_Z,nA0,K8G,F8f,Htf,btz,hgz,VEZ,Q_E,S_4,it0,x$4,vAV,Gbe,$$Z,XAi,TeY,d$z,W8E,GP,oAZ,U$f,D$E,L8Z,lFV,pAZ,wA0,m$z,yRE,kbZ,Y_E,P8G,txV,u4Y,fYM,AWM,O5Z,BgE,FHG,hY4,vpV,Epi,QU4,H50,oj,$oZ,
doY,Uo0,WHz,opf,DoZ,pdG,LHE,wdE,moZ,lYM,RYG,yWi,LC,lC,eY0,aa0,pC,jXZ,zV0,IaZ,NYZ,ttG,wy,mw,Ehi,ube,BY0,gh4,OHG,yQ,kH,Mx,bHe,hVZ,Vt0,YH,vhY,QXz,x1f,GrE,SMz,Xhz,iHe,W1e,TYe,d1Z,qx,U10,ohY,laz,yvz,zC,Ia,whf,MtE,m1f,kr4,r_,Z7,C9,Nf,fLi,PKZ,niZ,KZG,FZE,HMZ,hwG,jQY,zwi,E0,J3e,tU,uV,r34,bME,A3V,IL0,g_,QQe,S80,iM0,viE,$30,XKZ,TzE,d3V,oi0,WZi,D3E,Rw0,lLM,pKE,m3G,y3E,kze,McZ,c3M,q8Z,ewZ,aAG,j00,zL4,JjZ,rjV,ZwY,CN0,Ndz,tgM,uJE,BdZ,EN0,gNE,OwE,f9,fAZ,Aji,AU,s0E,nNZ,Kof,Fo0,HwY,bwZ,hL4,Vg0,Q0z,iwz,s0,xpG,vNZ,
XlG,dpV,WoM,Up4,oN0,DpY,RLZ,Loz,pl0,wli,mpV,yjV,kQG,Mgi,cj0,YgV,qgG,eLM,atZ,j50,rf0,PJi,It0,JfY,zhe,ZSY,tkE,CJe,N4M,B4f,uTe,EqM,gq4,OSG,ft4,Afz,nqi,Kfi,FfZ,bSz,hhY,Q5E,iSe,vqZ,$KZ,T4Z,Wfz,UK0,Rhi,p8G,w8Z,mKi,kdf,yfZ,cfZ,YWZ,qWf,eh0,K9,acZ,jKE,zpe,Eci,gcZ,OUM,ncV,KY0,FYZ,HUe,hpz,bUf,Vrz,QK0,SN0,iUZ,xhY,$H,vcz,VJ,Gd4,GIZ,$hM;
KC=function(a){if(!a)return"browse";var z=a.page,I=a.url,J,r,P,N=(J=a.response)==null?void 0:(r=J.responseContext)==null?void 0:(P=r.webResponseContextExtensionData)==null?void 0:P.pageTheme;if(N)z=N.toLowerCase().replace(/_/g,"-");else if(z!=="watch"&&z!=="learning_journey_watch"){var u,E;if((z==="browse"||z==="settings")&&((u=a.response)==null?0:(E=u.sidebar)==null?0:E.settingsSidebarRenderer))z="WEB_PAGE_TYPE_SETTINGS";else{var O,f;z==="browse"&&((O=a.response)==null?0:(f=O.metadata)==null?0:f.channelMetadataRenderer)?
z="channel":I&&(z=_.sM(I)||z)}}return z};
dri=function(){var a=_.DH("yt.aba.att");return a?a:_.gm.instance!==void 0?_.gm.instance.jEg.bind(_.gm.instance):null};
WkZ=function(a,z){var I;return _.t(function(J){return(I=dri())?J.return(I(a,z,6E4)):J.return(Promise.resolve({error:"ATTESTATION_ERROR_API_NOT_READY"}))})};
ovZ=function(a,z,I,J,r){z=z===void 0?[]:z;r=r?{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{signalAction:r}]}}:void 0;return{popupType:"DIALOG",popup:{confirmDialogRenderer:{title:_.zg(a),dialogMessages:z.map(function(P){return _.zg(P)}),
confirmButton:{buttonRenderer:{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:_.zg(I),serviceEndpoint:r}},cancelButton:{buttonRenderer:{style:"STYLE_TEXT",size:"SIZE_DEFAULT",text:_.zg(J)}}}}}};
UrG=function(a){var z=!!_.cS().queueProxy;var I,J,r;a=a==null?void 0:(I=a.response)==null?void 0:(J=I.currentVideoEndpoint)==null?void 0:(r=J.watchEndpoint)==null?void 0:r.playlistId;return!(!z&&!a)};
Dr4=function(a,z){var I=_.hq();if(UrG(a))return I.playlistWatchPageActivation=!0;switch(KC(z)){case "yts-products":return I.productDetailsPageActivation=!0;case "mini_app":return I.miniAppPageActivation=!0;case "playables":return I.playablesDestPageActivation=!0;default:return!1}};
RQf=function(a,z,I){for(var J=typeof a==="string"?a.split(""):a,r=a.length-1;r>=0;--r)r in J&&z.call(I,J[r],r,a)};
LkZ=function(a,z){z=_.Kd7(a,z);z>=0&&_.bGE(a,z)};
lVG=function(a){return Array.prototype.concat.apply([],arguments)};
pv0=function(a){var z=0;z=z===void 0?0:z;if(!_.mX(a))throw _.qO("uint64");var I=typeof a;switch(z){case 512:switch(I){case "string":return _.QwO(a);case "bigint":return String((0,_.N0)(64,a));default:return _.hv$(a)}case 1024:switch(I){case "string":return _.SO7(a);case "bigint":return _.X1((0,_.N0)(64,a));default:return _.VIx(a)}case 0:switch(I){case "string":return _.QwO(a);case "bigint":return _.X1((0,_.N0)(64,a));default:return _.blp(a)}default:return _.Rw(z,"Unknown format requested type for int64")}};
wvM=function(a){a!=null&&(a=a.JSC$8777_value_||"",a=typeof a==="string"?a:new Uint8Array(a));return a};
mrV=function(a,z){if(/-[a-z]/.test(z))return null;if(_.LzE&&a.dataset){if(_.u0G()&&!(z in a.dataset))return null;a=a.dataset[z];return a===void 0?null:a}return a.getAttribute("data-"+_.sX(z))};
k$Y=function(){var a=yGZ;_.DH("yt.ads.biscotti.getId_")||_.qe("yt.ads.biscotti.getId_",a)};
MH4=function(a){_.qe("yt.ads.biscotti.lastId_",a)};
YcE=function(){var a={};for(_.Q2=new cGi(a.handleError===void 0?_.$0:a.handleError,a.logEvent===void 0?_.x0:a.logEvent);_.S6.length>0;)switch(a=_.S6.shift(),a.type){case "ERROR":_.Q2.logError(a.payload);break;case "EVENT":_.Q2.logEvent(a.eventType,a.payload)}};
qcf=function(a,z,I){return _.opM(function(J){return I?J.userIdentifier!==void 0&&!a.includes(J.userIdentifier)&&I.includes(J.publicName):J.userIdentifier!==void 0&&!a.includes(J.userIdentifier)},z)};
eQV=function(a){var z,I;return _.t(function(J){if(J.nextAddress==1)return z=_.n1("YtIdbMeta hasAnyMeta other"),J.yield(_.opM(function(r){return r.userIdentifier!==void 0&&r.userIdentifier!==z},a),2);
I=J.yieldResult;return J.return(I.length>0)})};
jAz=function(a,z){a1f||(a1f=_.GW.addLowPriorityJob(function(){var I,J,r,P,N;return _.t(function(u){switch(u.nextAddress){case 1:return u.yield(_.e6(),2);case 2:I=u.yieldResult;if(!I)return u.return();J=!0;_.BP(u,3);return u.yield(qcf(a,I,z),5);case 5:r=u.yieldResult;if(!r.length){J=!1;u.jumpTo(6);break}P=r[0];return u.yield(_.wM(P.actualName),7);case 7:return u.yield(_.kj(P.actualName,I),6);case 6:_.p1(u,4);break;case 3:N=_.sk(u),_.il(N),J=!1;case 4:_.GW.cancelJob(a1f),a1f=0,J&&jAz(a,z),_.nu(u)}})}))};
zFe=function(){var a;return _.t(function(z){return z.nextAddress==1?z.yield(_.e6(),2):(a=z.yieldResult)?z.return(eQV(a)):z.return(!1)})};
I1e=function(a){var z=100;z=z===void 0?500:z;var I,J,r,P,N,u;return _.t(function(E){return E.nextAddress==1?(I=_.Xw("INNERTUBE_CONTEXT_CLIENT_NAME",0),J=[I,(0,_.jp)()-2592E6],r=[I,(0,_.jp)()],P=IDBKeyRange.bound(J,r),E.yield(_.tg0(a),2)):E.nextAddress!=3?(N=E.yieldResult,u=[],E.yield(_.y2(N,["SWHealthLog"],{mode:"readwrite",enableRetries:!0},function(O){u.length=0;return _.zW(O.objectStore("SWHealthLog").index("swHealthNewRequest"),{query:P,direction:"prev"},function(f){if(f.getValue()&&u.length<
z)return u.push(f.getValue()),f.delete().then(function(){return f.continue()})})}),3)):E.return(u)})};
J$f=function(){var a;return _.t(function(z){if(z.nextAddress==1)return z.yield(_.e6(),2);a=z.yieldResult;if(!a||!_.K1()&&!_.K("nwl_init_require_datasync_id_killswitch")||!_.xpm())return z.jumpTo(0);_.GQ3=!0;_.vNG.isNwlInitialized=_.GQ3;return z.yield(_.NFI().awaitInitialization(),0)})};
Fh=function(a,z){_.kQm[a]=!0;var I=_.JJ();I&&I.publish.apply(I,arguments);_.kQm[a]=!1};
Pd4=function(){if(_.Vci()&&!r$0){var a=function(I){I=I.data;if(I.op==="serializedGelBatch"){var J=_.MkI.get(I.key);J&&(_.YWE(I.serializedBatch,J.client,J.resolve,J.networklessOptions,J.isIsolated,J.useVSSEndpoint,J.dangerousLogToVisitorSession,J.requestsOutstanding),_.MkI.delete(I.key))}},z=_.hwm();
z&&(z.addEventListener("message",a),z.onerror=function(){_.MkI.clear()});
r$0=!0}};
H$=function(){this.relativeTimeStart_=_.JY()};
ZLE=function(a,z){a!=null&&this.append.apply(this,arguments)};
CdV=function(){return _.D1("SLI_NAME_YOUTUBE_WEB_YT_GUIDE_DATA_PRESENT","GUIDE_DATA_PRESENT",6E4,"FAILURE")};
NFf=function(a,z,I){I=I===void 0?!1:I;var J,r,P,N,u;return _.t(function(E){switch(E.nextAddress){case 1:_.AP("SOCS",a,34128E3,"youtube.com",!0);if(_.Bb)return r=fetch(z,{method:"POST",mode:_.mK(z),credentials:_.wF(z),cache:"no-store",headers:{"Content-Type":"text/plain"}}).catch(function(){}),P=fetch("/upgrade_visitor_cookie?eom=1",{method:"POST",
mode:_.mK("/upgrade_visitor_cookie?eom=1"),credentials:_.wF("/upgrade_visitor_cookie?eom=1"),cache:"no-store",headers:{"Content-Type":"application/x-www-form-urlencoded"}}),E.yield(Promise.all([r,P]).then(function(O){return O[1]}),5);
fetch(z,{method:"POST",mode:_.mK(z),credentials:_.wF(z),cache:"no-store",headers:{"Content-Type":"text/plain"}});return E.yield(fetch("/upgrade_visitor_cookie?eom=1",{method:"POST",mode:_.mK("/upgrade_visitor_cookie?eom=1"),credentials:_.wF("/upgrade_visitor_cookie?eom=1"),cache:"no-store",headers:{"Content-Type":"application/x-www-form-urlencoded"}}),4);case 4:J=E.yieldResult;E.jumpTo(3);break;case 5:J=N=E.yieldResult;case 3:if(!J.ok)throw Error("lf");return E.yield(J.text(),7);case 7:u=E.yieldResult,
!u.includes('"state_switch":true')&&!I||u.includes("skip_reload_for_test")||window.location.reload(),_.nu(E)}})};
tlE=function(a){return _.t(function(z){return z.nextAddress==1?z.yield(NFf(a.socsCookie,a.savePreferenceUrl,!0),2):z.return()})};
uZY=function(a){return _.t(function(z){return z.nextAddress==1?z.yield(NFf(a.socsCookie,a.savePreferenceUrl),2):z.return()})};
BFZ=function(a){a=a.xhr.responseText;if(!_.Pp(a,")]}'"))throw new bC;a=JSON.parse(a.substr(4));if((a.type||1)>1)throw new bC;a=a.id;MH4(a);ha=_.a7(a);E2f(18E5,2);return a};
OLZ=function(a,z){z=new g2V(z);MH4("");ha=_.eRe(z);a>0&&E2f(12E4,a-1);throw z;};
E2f=function(a,z){_.C1(function(){_.FkV().then(BFZ,function(I){return OLZ(z,I)}).thenCatch(_.Kx)},a)};
yGZ=function(){var a=_.hQ0();if(a!==void 0)return _.xN(a);ha||(ha=_.FkV().then(BFZ).thenCatch(function(z){return OLZ(2,z)}));
return ha};
f1z=function(){var a=document;return _.X0(["fullscreenchange","webkitfullscreenchange","mozfullscreenchange","MSFullscreenChange"],function(z){return"on"+z.toLowerCase()in a})};
A$0=function(a){a.addEventListener("click",function(z){var I=z.target;I&&I.getAttribute("href")&&(I=I.getAttribute("href"),_.wO(window,I,"_blank"),z.preventDefault(),z.stopImmediatePropagation())})};
sAE=function(a){var z,I,J,r=(J=(I=((z=a.mainDownloadsListEntity)!=null?z:{})[_.x_E])==null?void 0:I.refresh)!=null?J:"",P;a=(P=a.refresh)==null?void 0:P[r];r=a!=null?a:{};return(r==null?0:r.refreshTime)?Number(r==null?void 0:r.refreshTime):0};
n2G=function(a,z){var I=_.Sx(a);return z.every(function(J){var r;J=J==null?void 0:(r=J.playbackDataEntity)==null?void 0:r.key;if(!J)return!1;r=_.Er(_.ZY(J).entityId,"mainVideoEntity");return!!I[r]})};
KKZ=function(a){a=_.hW(a.entities);return _.pUx(a).length};
FKZ=function(a,z){if(z){var I;a=(I=_.Bd(a.entities,"downloadQualityPickerEntity",z))!=null?I:void 0}else a=void 0;return a};
hFV=function(){HLG||(_.kp=_.iNG,HLG=new bLz);return HLG};
Vlf=function(a){var z=document.getElementsByTagName("ytd-enforcement-message-view-model");z.length===0||getComputedStyle(z[0]).display==="none"?a(0,"p.h_"):a(1,"p.h_")};
QAf=function(){VQ=0;var a=[_.bk(!0)];QQ&&_.Ct(QQ,"yt-window-resized",a)};
SXG=function(){VQ||(VQ=_.GW.addLowPriorityJob(QAf,200))};
xZV=function(){SD=0;iL0=_.lj1(document);var a=[iL0];QQ&&_.Ct(QQ,"yt-window-scrolled",a)};
v2Z=function(){SD||(SD=_.GW.addLowPriorityJob(xZV,200))};
$Zi=function(a){a=a===void 0?null:a;GXf.push(_.ep(window,"resize",SXG));GXf.push(_.ep(window,"scroll",v2Z));a&&(QQ=a)};
TFE=function(){var a={isWide:_.f1.get("wide","0")==="1"},z=_.Kt();if(z=z.getFlag(165)||z.getFlag(174))a.theme=_.xh(!0);if(_.Fb3()){var I=_.ik()?"USER_INTERFACE_THEME_DARK":"USER_INTERFACE_THEME_LIGHT";a.systemTheme=I}!z&&_.K("parent_tools_enable_app_settings")&&_.wq(window.location.href).theme!==void 0&&(a.theme=_.xh());if((z=iC)?!_.x8.equals(z,a):a)z={currentValue:a},XJe&&(z.timeSinceLastSnapshotSecs=Math.round(((0,_.jp)()-XJe)/1E3)),iC&&(z.previousValue=iC),_.x0("appSettingsCaptured",z),iC=a,XJe=
(0,_.jp)()};
dZE=function(a){_.t(function(z){if(z.nextAddress==1)return z.yield(a.delete("yt-appshell-assets"),2);_.nu(z)})};
WKG=function(a){return _.m5((0,_.xcJ)(),a)};
UZZ=function(){var a;_.t(function(z){return z.nextAddress==1?z.yield(xH.getInstance(),2):(a=z.yieldResult)?z.yield(o2V(a),0):z.jumpTo(0)})};
RFi=function(){var a;_.t(function(z){return z.nextAddress==1?z.yield(v$.getInstance(),2):(a=z.yieldResult)?z.yield(DZZ(a),0):z.jumpTo(0)})};
LKf=function(a){dZE(a);UZZ();RFi()};
l1Z=function(a){var z,I;return _.t(function(J){if(J.nextAddress==1)return J.yield(_.ps$(a),2);if(z=J.yieldResult){var r;a:{if(z.headers&&(r=z.headers.get("date"))&&(r=Date.parse(r),!isNaN(r))){r=Math.round((0,_.jp)()-r);break a}r=-1}I=r;if(I>-1)return J.return(I)}return J.return(-1)})};
pJY=function(){var a=_.IE.caches,z=_.TZ("IS_SHELL_LOAD"),I,J;_.t(function(r){if(r.nextAddress==1)return I=-1,z?r.yield(l1Z(a),3):(J=_.Qs(),I=Math.round((0,_.jp)()-J),r.jumpTo(2));r.nextAddress!=2&&(I=r.yieldResult);I>=0&&I<2147483648&&_.Gb({appInstallDataAgeMs:I});_.nu(r)})};
wJ0=function(a){var z=_.Rf(_.IE.location.href),I={};"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(J){var r=z.JSC$9989_queryData_.getValues(J);if(r==null?0:r.length)I[J]=r});
return _.rJ(a,new Map(Object.entries(I)))};
mZY=function(a){a=a.match(/(.*)::.*::.*/);if(a!==null)return a[1]};
y$V=function(a){if(_.COx()){var z=Object.keys(window.localStorage);z=_.C(z);for(var I=z.next();!I.done;I=z.next()){I=I.value;var J=mZY(I);J===void 0||a.includes(J)||self.localStorage.removeItem(I)}}};
kX4=function(){if(!_.COx())return!1;var a=_.n1(),z=Object.keys(window.localStorage);z=_.C(z);for(var I=z.next();!I.done;I=z.next())if(I=mZY(I.value),I!==void 0&&I!==a)return!0;return!1};
MlM=function(a){return _.El("NotificationsDisabled",a)};
c$Z=function(){return Notification.permission!="granted"?Promise.resolve():_.sh4().then(function(a){return a?a.pushManager.getSubscription().then(function(z){if(z)return Promise.resolve();z={userVisibleOnly:!0,applicationServerKey:_.cp("BPr83OIQ0ehMqbAUQWSaFHZOJeRvvXddR5EONgwwQcHR6FRe6G43LgD36pJq1IuGN10mmMv-V7IKSIZludF9G1k")};return a.pushManager.subscribe(z).then(function(){return Promise.resolve()},function(){return Promise.resolve()})}):Promise.resolve()}).catch(function(){})};
YXi=function(a){return _.sh4().then(function(z){if(!z||!z.active)return Promise.reject(new _.Fn("serviceworker.postMessage",a,z));try{return z.active.postMessage(a),Promise.resolve()}catch(I){return Promise.reject(I)}})};
qXz=function(){YXi({type:"notifications_register",data:_.Xw("ID_TOKEN")})};
eFf=function(){if(!_.TZ("LOGGED_IN"))return Promise.resolve(!1);var a=_.rM("service_worker_push_force_notification_prompt_tag");return a?_.sD("PromptTags").then(function(z){if(!z)return!0;var I=[];try{I=JSON.parse(z)}catch(J){return!1}return I&&I.indexOf(a)==-1}):Promise.resolve(!1)};
aFY=function(){var a=_.Ib("service_worker_push_prompt_delay_microseconds");return a?_.sD("PromptTime").then(function(z){return Promise.resolve(Date.now()-a>(z||0))}):Promise.resolve(!0)};
j_f=function(){var a=_.Ib("service_worker_push_logged_out_prompt_watches");return a==-1?Promise.resolve(!1):_.sD("WatchCount").then(function(z){return z>=a})};
zgZ=function(){var a=_.JE(document,"yt-push-prompt-modal-bg");a&&_.fo(a)};
IFG=function(){return _.Ib("service_worker_push_prompt_cap")==-1?Promise.resolve(!0):_.sD("PromptCount").then(function(a){a||(a=0);return Promise.resolve(a<_.Ib("service_worker_push_prompt_cap"))})};
JRE=function(a){return _.TZ("SERVICE_WORKER_PROMPT_NOTIFICATIONS")||_.TZ("LOGGED_IN")&&(a===void 0?0:a)?eFf().then(function(z){if(z)return!0;z=[IFG(),aFY()];_.TZ("LOGGED_IN")||z.push(j_f());return Promise.all(z).then(function(I){return I.every(function(J){return J})})}):Promise.resolve(!1)};
rRe=function(){_.sD("PromptCount").then(function(a){return _.El("PromptCount",a+1)}).then(function(){return _.El("PromptTime",Date.now())}).then(function(){var a=_.rM("service_worker_push_force_notification_prompt_tag");
if(a)return _.sD("PromptTags").then(function(z){var I=[];if(z)try{I=JSON.parse(z)}catch(J){return!1}I||(I=[]);I.push(a);return _.El("PromptTags",JSON.stringify(I))})})};
Zt4=function(){PIZ||zgZ()};
CI4=function(a){a.style.zIndex=2147483648;a.style.pointerEvents="auto";a.style.backgroundColor="rgba(0, 0, 0, 0.6)";a.style.width="100%";a.style.height="100vh";a.style.position="absolute";a.style.top="0";a.style.left="0";a.style.border="none"};
NeZ=function(){var a=_.JE(document,"yt-push-prompt-modal-bg");PIZ=_.K("service_worker_push_prompt_modal_ignore_click");a?CI4(a):(a=_.i3("div",{id:"yt-push-prompt-modal-bg"}),CI4(a),document.body.appendChild(a),_.plO(document,"click",Zt4))};
tE0=function(){var a=arguments;_.K("service_worker_push_prompt_modal_enable")&&NeZ();return Notification.requestPermission().then(function(z){zgZ();var I=document.getElementById("ticker");I&&(I.className=I.classList.remove("show"));if(z=="granted")return c$Z().then(function(){MlM(!1);qXz();return Promise.resolve(!0)});
z=="denied"&&qXz();return Promise.resolve(!1)}).catch(function(){zgZ();
return Promise.reject.apply(Promise,_.ih(a))})};
uz0=function(a){a=a===void 0?!1:a;var z=_.QpM().client;if(z&&z.browserVersion){var I=z.browserVersion,J=z.browserName=="CHROME"&&_.Om(I,"50.0.0")<0;z=z.browserName=="OPERA"&&_.Om(I,"42.0.0")<0;if(J||z)return Promise.resolve()}return _.FAG().then(function(r){if(!r)return Promise.resolve();r=c$Z().then(function(){return YXi({type:"notifications_check_registration",data:_.Xw("ID_TOKEN")})});
return Notification.permission!="default"?r.catch(function(){}):r.then(function(){return JRE(a)}).then(function(P){if(P)return rRe(),tE0().then(function(){})}).catch(function(){})})};
EAZ=function(a){return _.nXZ(a)?uz0():Promise.resolve()};
Bez=function(a){var z=a.installing||a.waiting;return a.active||!z?Promise.resolve(a):new Promise(function(I){var J=function(r){r=r.target;if(r.state==="activated"||r.state==="redundant")z.removeEventListener("statechange",J),I(a)};
z.addEventListener("statechange",J)})};
gA0=function(){var a=new _.TaG("SLI_NAME_YOUTUBE_WEB_SERVICE_WORKER_REGISTRATION","",12E4,"TIMEOUT");_.tI(a,{mainAppWeb:_.m1()});var z=_.y5l;_.K("service_worker_forward_exp_params")&&(z=wJ0(z));try{var I=_.iOi(z).catch(function(){_.ug(a,"FAILURE");return new Promise(function(){})});
_.K("service_worker_push_enabled")&&I.then(function(J){_.ug(a,"SUCCESS");return J}).then(Bez).then(EAZ)}catch(J){if(_.ug(a,"FAILURE"),J.name!=="SecurityError")throw J;
}};
Ot0=function(){navigator.serviceWorker&&navigator.serviceWorker.getRegistrations&&window.location.protocol==="https:"&&gA0()};
fF0=function(a,z){var I={};z&&(I.serializedYpcFamilyCreateLoggingParams=z);_.x0(a,I);_.va()};
ARi=function(a,z){var I={};I.serializedYpcRefundFlowLoggingParams=z;a&&(I.eventType=a);_.x0("ypcRefundFlowEvent",I);_.va()};
s_Z=function(a){a&&_.veO("transactionFlowSucceeded",a)};
nA0=function(a){a&&_.Yn("ypcCancelFlowFailed","serializedYpcCancelFlowLoggingParams",a,void 0,"YPC_ERROR_REASON_YPC_CANCEL_RECURRENCE_TRANSACTION_FAILURE")};
K8G=function(a){a.currentTarget._data&&_.dB0(a.currentTarget._data)};
F8f=function(a,z){if(z=_.H(z,_.pv))(z==null?void 0:z.target)==="TARGET_NEW_WINDOW"&&(a.target="_blank"),z.nofollow&&(a.rel="nofollow")};
Htf=function(a){a=_.H(a==null?void 0:a.commandMetadata,_.O_);return(a==null?0:a.url)?a.url:null};
btz=function(a){var z,I,J,r,P,N,u;_.t(function(E){if(E.nextAddress==1)return E.yield(_.gDG(),2);if(E.nextAddress!=3){if(!E.yieldResult)return E.return(!1);z=[];return E.yield(_.tf.keys(),3)}I=E.yieldResult;J=_.C(I);for(r=J.next();!r.done;r=J.next())P=r.value,N=_.EDx(P),u=N.datasyncId,!u||a.includes(u)||z.push(_.tf.delete(P));return E.return(Promise.all(z).then(function(O){return O.some(function(f){return f})}))})};
hgz=function(){var a,z,I,J,r,P,N;return _.t(function(u){if(u.nextAddress==1)return u.yield(_.gDG(),2);if(u.nextAddress!=3){if(!u.yieldResult)return u.return(!1);a=_.n1("cache contains other");return u.yield(_.tf.keys(),3)}z=u.yieldResult;I=_.C(z);for(J=I.next();!J.done;J=I.next())if(r=J.value,P=_.EDx(r),(N=P.datasyncId)&&N!==a)return u.return(!0);return u.return(!1)})};
VEZ=function(){var a=_.ab().resolve(_.eL(_.pz1));return a?a.getCurrentTime():0};
Q_E=function(){var a,z,I,J,r,P,N,u,E,O,f,A,n,F;return _.t(function(h){switch(h.nextAddress){case 1:a={},z=_.ufI(),I=_.C(Object.entries(z)),J=I.next();case 4:if(J.done){h.jumpTo(3);break}r=J.value;P=_.C(r);N=P.next().value;u=P.next().value;E=N;O=u;if(!O){h.jumpTo(5);break}return h.yield(O(),8);case 8:a[E]=h.yieldResult;case 5:J=I.next();h.jumpTo(4);break;case 2:f=_.C(void 0),A=f.next();case 9:if(A.done){h.jumpTo(3);break}n=A.value;F=z[n];if(!F){h.jumpTo(10);break}return h.yield(F(),13);case 13:a[n]=
h.yieldResult;case 10:A=f.next();h.jumpTo(9);break;case 3:return h.return(a)}})};
S_4=function(){var a;_.t(function(z){if(z.nextAddress==1)return z.yield(Q_E(),2);a=z.yieldResult;return z.yield(navigator.clipboard.writeText(JSON.stringify(a,null,2)),0)})};
it0=function(a,z){return _.Bd(a.entities,"superThanksSelectedTierEntity",z)};
x$4=function(a,z){var I=_.H8();_.VO(function(){var J=a.value;if(J)return _.mxx(J,z),_.yax(J,z,void 0,void 0,void 0,I)},[z])};
vAV=function(a){var z;return(z=a.sharedUi)==null?void 0:z.currentPageType};
Gbe=function(a,z){return{popup:{searchSuggestionReportDialog:{searchQuery:a,title:_.AR("SBOX_INAPPROPRIATE_TITLE"),suggestions:z,categoryLabel:_.AR("SBOX_INAPPROPRIATE_CATEGORY"),categories:[{id:1,label:_.AR("SBOX_INAPPROPRIATE_HATEFUL")},{id:2,label:_.AR("SBOX_INAPPROPRIATE_EXPLICIT")},{id:3,label:_.AR("SBOX_INAPPROPRIATE_VIOLENT")},{id:4,label:_.AR("SBOX_INAPPROPRIATE_DANGEROUS")},{id:5,label:_.AR("SBOX_INAPPROPRIATE_OTHER"),reasonLabel:_.AR("SBOX_INAPPROPRIATE_REASON")}],detailsPlaceholderLabel:_.AR("SBOX_INAPPROPRIATE_ADDITIONAL"),
cancelButtonLabel:_.AR("SBOX_INAPPROPRIATE_CANCEL"),submitButtonLabel:_.AR("SBOX_INAPPROPRIATE_REPORT")}},popupType:"DIALOG"}};
$$Z=function(a){var z,I,J,r,P,N,u,E,O,f,A,n,F,h,v,d,W,l,q;return _.t(function(m){switch(m.nextAddress){case 1:return m.yield(_.f5(),2);case 2:return(z=m.yieldResult)?m.yield(_.Bux(z),3):m.return();case 3:I=m.yieldResult;if(!I)return m.return();r=((J=I.offlineVideos)==null?void 0:J.length)||0;N=((P=I.offlinePlaylists)==null?void 0:P.length)||0;if(r===0&&N===0)return m.return();u=0;if(I.offlineVideos)for(E=_.C(I.offlineVideos),O=E.next();!O.done;O=E.next())f=O.value,"OFFLINE_VIDEO_STATE_PLAYABLE"===
f.videoState&&(u+=1);a.offline_videos_count=r.toString();_.K("kevlar_log_offline_current_network_type_ks")||(a.offline_current_network_type=(A=_.EpI())!=null?A:"CONN_INVALID");_.K("kevlar_log_updated_time_for_smart_downloads")&&(n=_.qo().getState().entities,F=_.Gg(n),h=sAE(n),a.offline_smart_downloads_last_sync_time_ms=F.toString(),a.offline_smart_downloads_next_sync_time_ms=h.toString());a.offline_videos_playable=u.toString();a.offline_playlists_count=N.toString();I.offlineVideos&&(v=I.offlineVideos.reduce(function(M,
y){y.downloadedBytes&&(M+=Number(y.downloadedBytes));return M},0).toString())&&(a.offline_used_disk_space_bytes=v);
if(!((d=navigator)==null?0:(W=d.storage)==null?0:W.estimate)){m.jumpTo(4);break}return m.yield(navigator.storage.estimate(),5);case 5:l=m.yieldResult,a.offline_free_disk_space_bytes=(((q=l)==null?void 0:q.quota)||0).toString();case 4:a.offline_client_state=JSON.stringify(I),_.nu(m)}})};
XAi=function(a){a=_.C(a);for(var z=a.next(),I={};!z.done;I={setter$jscomp$5:void 0},z=a.next()){var J=z.value;z=J.params;J=J.service;z&&J&&(I.setter$jscomp$5=_.st0[J],I.setter$jscomp$5&&z.forEach(function(r){return function(P){var N=P.key;P=P.value;N&&P&&(0,r.setter$jscomp$5)(N,P)}}(I)))}};
TeY=function(a){a=a.match(/(.*)::.*::.*/);if(a!==null)return a[1]};
d$z=function(a){if(_.nm0()){var z=Object.keys(window.sessionStorage);z=_.C(z);for(var I=z.next();!I.done;I=z.next()){I=I.value;var J=TeY(I);J===void 0||a.includes(J)||self.sessionStorage.removeItem(I)}}};
W8E=function(){if(!_.nm0())return!1;var a=_.n1(),z=Object.keys(window.sessionStorage);z=_.C(z);for(var I=z.next();!I.done;I=z.next())if(I=TeY(I.value),I!==void 0&&I!==a)return!0;return!1};
GP=function(a,z,I){(_.K("desktop_keyboard_shortcut_usage_log")||I&&_.K("web_shorts_keyboard_shortcut_usage_log"))&&(z?_.Aa.get(a):_.fC.get(a))&&(a=z?_.nC.get(a):_.sl.get(a))&&_.ys(_.TX(),a)};
oAZ=function(a,z){return a.findIndex(function(I){return I.tagName==="INPUT".toString()})>-1?[9,
38,40,37,39].includes(z.keyCode):!1};
U$f=function(){var a,z;return typeof CSS!=="undefined"&&((z=(a=CSS).supports)==null?void 0:z.call(a,"selector(:has(*))"))};
D$E=function(a){return a.visibility!=="hidden"&&a.display!=="none"};
L8Z=function(a){if(U$f()||a.tagName!=="DETAILS"?!a.matches(Rgf):a.querySelector("summary")!==null)return-1;a=a.getAttribute("tabindex")||"0";return Number(a)};
lFV=function(a){return a.some(function(z){return L8Z(z)>0})};
pAZ=function(a){if(a.textContent)return!0;if(a instanceof HTMLInputElement){if(!a.labels)return!1;a=_.C(a.labels);for(var z=a.next();!z.done;z=a.next())if(z.value.textContent)return!0}return!1};
wA0=function(a){return a.sort(function(z,I){return L8Z(I)-L8Z(z)})};
m$z=function(a){a=Array.from(a.querySelectorAll(Rgf)).filter(function(z){return(D$E(z.style)?D$E(window.getComputedStyle(z)):!1)&&pAZ(z)});
return lFV(a)?wA0(a):a};
yRE=function(a){a=m$z(a);a.length>0&&a[0].focus()};
kbZ=function(a,z){z.stack&&(a.stack+="\n"+z.stack);return a};
Y_E=function(a){var z=$H(a,"Content-Type");if(!z)return null;z=z.toLowerCase();if(z.startsWith("application/json"))return z.startsWith("application/json+protobuf")?new MEG:new _.tN;if(z.startsWith("application/x-protobuf")){a=$H(a,"Content-Transfer-Encoding");if(!a)return new Xh;if(a.toLowerCase()=="base64")return new cRY}return null};
P8G=function(a,z,I,J){var r=new q_Z(function(u,E){return egE.has(E)?u.sentinel==="gal"&&u.event!==void 0:!1},function(u){u.event?(u=aY0(u.event),u=!u||jUf(J,u)?!0:_.Kn(a.lastEvent,TP,2,dy)?!_.Kn(u,W$,1,dy)&&!_.Kn(u,TP,2,dy):!_.Kn(u,W$,1,dy)&&!_.Kn(u,TP,3,dy)):u=!0;
return u});
I=_.rJ(a.trustedUrl,new Map([["result_channel","5"],["origin",(new URL(window.location.href)).origin],["color_scheme",zYe(I)]]));if(a.nestedOrigins!==void 0)for(var P=_.C(a.nestedOrigins),N=P.next();!N.done;N=P.next())I=_.rJ(I,new Map([["origin",N.value]]));return IYe(r,I,z).then(function(u){u=JW0(u.event);if(_.Kn(u,W$,1,dy)){var E,O=(E=_.TL(u,W$,1,dy))==null?void 0:_.GL(E,2);O&&J.JSC$19228_logErrorEvent(rWz(O));E=_.TL(u,W$,1,dy);_.GL(E,2)===4?(u=_.TL(u,W$,1,dy),u={statusCode:11,statusMessage:_.vb(u,
3)}):(u=_.TL(u,W$,1,dy),u={statusCode:12,statusMessage:_.vb(u,3)});return u}_.Kn(u,TP,3,dy)?(u=_.TL(u,TP,3,dy),u={statusCode:1,consentLanguageKeys:_.vb(u,2)}):u={statusCode:1};return u}).catch(function(u){return u.errorCode!==void 0?{statusCode:u.errorCode,
statusMessage:u.errorMessage}:{statusCode:7,statusMessage:"Data Usage Notice screen did not return result"}})};
txV=function(a){var z={};if(a===void 0||a===null)return z;a.getToken()!==void 0&&Z5Z(a.getToken())&&Z5Z(a.getToken()).length>0&&(z.scopes=new Set(Z5Z(a.getToken())));a.getToken()!==void 0&&C8Y(a.getToken())&&C8Y(a.getToken()).length>0&&(z.capabilities=new Set(C8Y(a.getToken())));_.vb(a,3)!==void 0&&(z.consistencyKey=_.vb(a,3));a.getName()!==void 0&&a.getName()!==""&&(z.linkName=a.getName());_.nn(a,NgG,4)&&(a=_.JC(a,NgG,4),a=Object.assign({},_.vb(a,1)&&{userId:_.vb(a,1)},_.vb(a,2)&&{displayName:_.vb(a,
2)},_.vb(a,3)&&{email:_.vb(a,3)},_.vb(a,5)&&{username:_.vb(a,5)},_.vb(a,4)&&{profilePicture:_.vb(a,4)}),z.profile=a);return z};
u4Y=function(a,z){var I=a.flowParams,J;return{serviceId:I.serviceId,sessionId:I.sessionId,currentFlow:a.currentFlow,googleScopesString:z,linkingSessionSerialized:a.session.serialize(),consentLanguageKeys:I.consentLanguageKeys,callerState:a.callerState,dynamicUrlParameters:I.dynamicUrlParameters,partnerConfigMinReadTimestampSerialized:(J=I.partnerConfigMinReadTimestamp)==null?void 0:J.serialize()}};
fYM=function(a){var z=a.googleScopes!==void 0?Array.from(a.googleScopes).join(","):"";Epi(u4Y(a,z));z=BgE(a);return z===null?Promise.resolve(gpG):z.start().then(function(I){var J,r=(J=I.link)==null?void 0:J.consistencyKey;return I.statusCode===1&&a.googleScopes!==void 0&&a.googleScopes.size>0&&r!==void 0?(J=a.flowParams,O5Z(J.serviceId,J.sessionId,a.googleScopes,r,J.galService,a.config,I)):I})};
AWM=function(a){var z=BgE(a);return z===null?Promise.resolve(oj({statusCode:7,statusMessage:"Failed to create flow object"},a.callerState)):z.complete().then(function(I){var J,r=(J=I.link)==null?void 0:J.consistencyKey;return I.statusCode===1&&a.googleScopes!==void 0&&a.googleScopes.size>0&&r!==void 0?(J=a.flowParams,O5Z(J.serviceId,J.sessionId,a.googleScopes,r,J.galService,a.config,I)):oj(I,a.callerState)},function(I){return oj({statusCode:12,
statusMessage:"Failed to complete the flow: "+I.message},a.callerState)})};
O5Z=function(a,z,I,J,r,P,N){return sUz(r,{serviceId:a,sessionId:z,googleScopes:I,consistencyKey:J}).then(function(){return N},function(u){return r.deleteLink({serviceId:a,
sessionId:z,accountLinkingEntryPoint:P.accountLinkingEntryPoint}).then(function(){return{statusCode:12,statusMesaage:"2-way linking failed: "+u.message}},function(E){return{statusCode:12,
statusMesaage:"2-way linking failed and did not cleanup the link:\n                            "+E.message}})})};
BgE=function(a){switch(a.currentFlow){case 1:var z=a.flowParams;a=_.JC(a.session,npZ,1);return Ul.createOAuthFlow(z,a);case 2:case 3:return z=a.flowParams,a=_.JC(a.session,KHz,6),Dl.createStreamlinedFlow(z,a);default:return null}};
FHG=function(a,z){a===2&&(a=3);var I=0;Rj.indexOf(a)!==-1&&(I=Rj.indexOf(a)+1);for(a=I;a<Rj.length;a++)if(z.has(Rj[a]))return Rj[a]};
hY4=function(a){var z=a.serviceId;var I=a.sessionId;var J=a.config;var r=a.galService;var P=a.capabilities;var N=a.scopes;var u=a.loginHint;var E=a.callerState;var O=a.consentLanguageKeys;var f=a.linkName;var A=a.dynamicUrlParameters;var n=a.partnerConfigMinReadTimestamp;a=J.dataUsageNoticeConfig?J.dataUsageNoticeConfig.enabledDataUsageNoticeUis:void 0;return r.startLinkingSession({serviceId:z,sessionId:I,capabilities:P,scopes:N,loginHint:u,callerState:E,supportedFlows:H50(J.supportedFlows),completionUrl:J.completionUrl,
accountLinkingEntryPoint:J.accountLinkingEntryPoint,consentLanguageKeys:O,dataUsageNoticeConfig:a,linkName:f,dynamicUrlParameters:A,partnerConfigMinReadTimestamp:n}).then(function(F){return new b5Z(z,I,J,r,F,void 0,E,O,A,n)})};
vpV=function(a,z,I){var J=(new VxY).getSession(a);if(J===null)return Promise.resolve({statusCode:2});QU4(a);var r=Srz(J.linkingSessionSerialized),P=J.googleScopesString!==""&&J.googleScopesString!==void 0?new Set(J.googleScopesString.split(",")):void 0,N=J.partnerConfigMinReadTimestampSerialized?i5M(J.partnerConfigMinReadTimestampSerialized):void 0;return xoz(new b5Z(a,J.sessionId,z,I,r,P,J.callerState,J.consentLanguageKeys,J.dynamicUrlParameters,N),J.currentFlow,J.consentLanguageKeys)};
Epi=function(a){var z=new VxY;z.storage!==null&&z.storage.set("SAVED_SESSION",a)};
QU4=function(a){var z=new VxY;if(z.storage!==null){var I=z.storage.get("SAVED_SESSION");I!==void 0&&I.serviceId===a&&z.storage.remove("SAVED_SESSION")}};
H50=function(a){var z=new Set;a=_.C(a);for(var I=a.next();!I.done;I=a.next())I=I.value,I!==1&&Ggi.has(I)&&z.add(Ggi.get(I));return z};
oj=function(a,z){z!==void 0&&(a.callerState=z);return a};
$oZ=function(a){switch(a){case 5:return 3;case 7:return 4;case 16:return 5;case 13:return 7;default:return 12}};
doY=function(a){return new XdZ(a,new Tge(a))};
Uo0=function(a,z){z=z===void 0?!1:z;var I=document.createElement("div");a&&(I.style.transform="scaleX(-1)");I.style.backgroundColor=z?"rgba(138,180,248,.24)":"#e8f0fe";I.style.height="4px";I.style.overflow="hidden";I.style.position="absolute";I.style.top="0";I.style.width="100%";I.style.zIndex="1500";I.setAttribute("aria-label","Loading");I.setAttribute("aria-live","polite");a=document.createElement("style");a.textContent="@keyframes omdc-linear-progress-primary-indeterminate-translate {\n    0% {\n      transform: translateX(0);\n    }\n\n    20% {\n      animation-timing-function: cubic-bezier(0.5, 0, 0.701732, 0.495819);\n      transform: translateX(0);\n    }\n\n    59.15% {\n      animation-timing-function: cubic-bezier(\n        0.302435,\n        0.381352,\n        0.55,\n        0.956352\n      );\n\n      transform: translateX(83.67142%);\n    }\n\n    100% {\n      transform: translateX(200.611057%);\n    }\n  }@keyframes omdc-linear-progress-primary-indeterminate-scale {\n    0% {\n      transform: scaleX(0.08);\n    }\n\n    36.65% {\n      animation-timing-function: cubic-bezier(0.334731, 0.12482, 0.785844, 1);\n      transform: scaleX(0.08);\n    }\n\n    69.15% {\n      animation-timing-function: cubic-bezier(0.06, 0.11, 0.6, 1);\n      transform: scaleX(0.661479);\n    }\n\n    100% {\n      transform: scaleX(0.08);\n    }\n  }@keyframes omdc-linear-progress-secondary-indeterminate-translate {\n    0% {\n      animation-timing-function: cubic-bezier(0.15, 0, 0.515058, 0.409685);\n      transform: translateX(0);\n    }\n\n    25% {\n      animation-timing-function: cubic-bezier(0.31033, 0.284058, 0.8, 0.733712);\n      transform: translateX(37.651913%);\n    }\n\n    48.35% {\n      animation-timing-function: cubic-bezier(0.4, 0.627035, 0.6, 0.902026);\n      transform: translateX(84.386165%);\n    }\n\n    100% {\n      transform: translateX(160.277782%);\n    }\n  }@keyframes omdc-linear-progress-secondary-indeterminate-scale {\n    0% {\n      animation-timing-function: cubic-bezier(\n        0.205028,\n        0.057051,\n        0.57661,\n        0.453971\n      );\n      transform: scaleX(0.08);\n    }\n\n    19.15% {\n      animation-timing-function: cubic-bezier(\n        0.152313,\n        0.196432,\n        0.648374,\n        1.004315\n      );\n      transform: scaleX(0.457104);\n    }\n\n    44.15% {\n      animation-timing-function: cubic-bezier(\n        0.257759,\n        -0.003163,\n        0.211762,\n        1.38179\n      );\n      transform: scaleX(0.72796);\n    }\n\n    100% {\n      transform: scaleX(0.08);\n    }\n  }";
I.appendChild(a);a=WHz();a.style.animation="omdc-linear-progress-primary-indeterminate-translate 2s infinite linear";a.style.left="-145.166611%";var J=opf(z);J.style.animation="omdc-linear-progress-primary-indeterminate-scale 2s infinite linear";a.appendChild(J);I.appendChild(a);a=WHz();a.style.animation="omdc-linear-progress-secondary-indeterminate-translate 2s infinite linear";a.style.left="-54.888891%";z=opf(z);z.style.animation="omdc-linear-progress-secondary-indeterminate-scale 2s infinite linear";
a.appendChild(z);I.appendChild(a);return I};
WHz=function(){var a=document.createElement("div");a.style.height="100%";a.style.position="absolute";a.style.transformOrigin="top left";a.style.width="100%";return a};
opf=function(a){var z=document.createElement("span");z.style.borderTop=a?"4px solid #669df6":"4px solid #4285f4";z.style.display="inline-block";z.style.position="absolute";z.style.width="100%";return z};
DoZ=function(a){return a==null?void 0:_.ceJ(a).valueOf()};
pdG=function(a){var z=document.body,I=!1,J=function(){I||(I=!0,RYG(r,P),setTimeout(function(){z.removeChild(P);z.removeChild(r)},150))},r=LHE(a,getComputedStyle(z).direction==="rtl",J),P=lYM(J);
RYG(r,P);z.appendChild(P);z.appendChild(r);window.requestAnimationFrame(function(){P.style.opacity="1";r.style.opacity="1";r.style.transform="translate(-50%, -50%) scale(1)";r.children[0].focus()})};
LHE=function(a,z,I){var J=document.createElement("div");J.style.position="fixed";J.style.alignItems="center";J.style.backgroundColor=a?"rgb(32, 33, 36)":"white";J.style.boxShadow="0px 1px 2px rgba(60,64,67,0.3), 0px 2px 6px 2px rgba(60,64,67,0.15);";J.style.display="flex";J.style.flexDirection="column";J.style.justifyContent="center";J.style.left="50%";J.style.top="50%";J.style.transition="opacity 75ms linear,transform 150ms cubic-bezier(0,0,0.2,1)";J.style.zIndex="2002";document.body.clientWidth>=
660?(J.style.borderRadius="8px",J.style.minHeight="220px",J.style.maxHeight="90%",J.style.maxWidth="90%",J.style.minWidth="540px"):(J.style.height="100%",J.style.width="100%");J.setAttribute("aria-label","Error");J.setAttribute("aria-modal","true");J.setAttribute("role","alertdialog");J.addEventListener("keydown",function(P){P.key==="Escape"&&I()});
z=wdE(a,z,I);J.appendChild(moZ(z));J.appendChild(z);var r=document.createElement("img");r.src=a?"https://fonts.gstatic.com/s/i/googlematerialicons/alert/v11/gm_grey200-36dp/2x/gm_alert_gm_grey200_36dp.png":"https://fonts.gstatic.com/s/i/googlematerialicons/alert/v11/gm_grey600-36dp/2x/gm_alert_gm_grey600_36dp.png";r.style.height="72px";r.style.width="72px";r.style.color="#9aa0a6";r.setAttribute("alt","");J.appendChild(r);r=document.createElement("h1");r.textContent="Something went wrong.  Try again.";
r.style.fontFamily="'Google Sans', Roboto, Arial, sans-serif";r.style.lineHeight="24px";r.style.fontSize="16px";r.style.textAlign="center";r.style.letterSpacing="0.1px";r.style.color=a?"rgb(232,234,237)":"#3c4043";J.appendChild(r);J.appendChild(moZ(z));return J};
wdE=function(a,z,I){var J=document.createElement("button");J.style.backgroundColor="transparent";J.style.border="none";J.style.borderRadius="50%";J.style.cursor="pointer";J.style.outline="none";J.style.padding="12px";J.setAttribute("aria-label","Close dialog");J.style.position="absolute";J.style.top="0";z?J.style.right="0":J.style.left="0";J.addEventListener("focus",function(){J.style.backgroundColor=a?"rgba(232, 234, 237,.12)":"rgba(0,0,0,.12)"});
J.addEventListener("blur",function(){J.style.backgroundColor="transparent"});
J.addEventListener("mouseenter",function(){J.style.backgroundColor=a?"rgba(232, 234, 237, .04) ":"rgba(0,0,0,.04)"});
J.addEventListener("mouseleave",function(){J.style.backgroundColor="transparent"});
J.addEventListener("click",I);J.addEventListener("keydown",function(r){r.key!=="Enter"&&r.key!=="Space"||I()});
z=document.createElement("img");z.src=a?"https://fonts.gstatic.com/s/i/googlematerialicons/close/v19/gm_grey200-24dp/1x/gm_close_gm_grey200_24dp.png":"https://fonts.gstatic.com/s/i/googlematerialicons/close/v19/gm_grey600-24dp/1x/gm_close_gm_grey600_24dp.png";z.style.display="block";z.style.height="24px";z.style.width="24px";z.setAttribute("alt","");J.appendChild(z);return J};
moZ=function(a){var z=document.createElement("div");z.setAttribute("tabindex","0");z.setAttribute("aria-hidden","true");z.addEventListener("focus",function(){return void a.focus()});
return z};
lYM=function(a){var z=document.createElement("div");z.style.backgroundColor="rgba(32,33,36,0.6)";z.style.bottom="0";z.style.left="0";z.style.position="fixed";z.style.right="0";z.style.top="0";z.style.transition=" opacity 150 ms linear";z.style.zIndex="2001";z.addEventListener("click",a);return z};
RYG=function(a,z){z.style.opacity="0";a.style.opacity="0";a.style.transform="translate(-50%, -50%) scale(0.8)"};
yWi=function(a,z){a.sandbox&&a.sandbox.add&&(a.sandbox.add("allow-same-origin","allow-scripts","allow-forms","allow-popups","allow-popups-to-escape-sandbox","allow-storage-access-by-user-activation"),a.sandbox.add("allow-downloads"));a.src=z};
LC=function(a){kgY.call(this,a)};
lC=function(a,z){z=z===void 0?!1:z;this.parsedImageUrl_=null;a instanceof Mxz||(cWV==void 0&&(cWV=new YrE),a=cWV.parse(a.toString(),z));a=this.parsedImageUrl_=a;a.JSC$19440_parsedOptions_==void 0&&((z=a.getOptions())||(z=""),a.JSC$19440_parsedOptions_=(new qrG).parse(z));kgY.call(this,a.JSC$19440_parsedOptions_);this.protocolPrefix_=this.parsedImageUrl_.originalPrefix_;a=this.parsedImageUrl_;z=a.uri_.JSC$9989_port_;this.JSC$19442_domain_=a.uri_.JSC$9989_domain_+(z?":"+z:"");this.JSC$19442_query_=
this.parsedImageUrl_.uri_.JSC$9989_queryData_.toString()};
eY0=function(a){this.mode=4;this.data=a;this.parsedData=[];a=0;for(var z=this.data.length;a<z;a++){var I=[],J=this.data.charCodeAt(a);J>65536?(I[0]=240|(J&1835008)>>>18,I[1]=128|(J&258048)>>>12,I[2]=128|(J&4032)>>>6,I[3]=128|J&63):J>2048?(I[0]=224|(J&61440)>>>12,I[1]=128|(J&4032)>>>6,I[2]=128|J&63):J>128?(I[0]=192|(J&1984)>>>6,I[1]=128|J&63):I[0]=J;this.parsedData.push(I)}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))};
aa0=function(a){this.typeNumber=0;this.errorCorrectLevel=a===void 0?2:a;this.modules=null;this.moduleCount=0;this.dataCache=null;this.dataList=[]};
pC=function(a,z){if(a.length==void 0)throw Error("wk`"+a.length+"`"+z);for(var I=0;I<a.length&&a[I]==0;)I++;this.num=Array(a.length-I+z);for(z=0;z<a.length-I;z++)this.num[z]=a[z+I]};
jXZ=function(a,z){this.totalCount=a;this.dataCount=z};
zV0=function(){this.buffer=[];this.length=0};
IaZ=function(){var a=!1;if(_.OGG()){a=_.fG();var z="";_.sEp()?(z=/Windows (?:NT|Phone) ([0-9.]+)/,z=(a=z.exec(a))?a[1]:"0.0"):_.vp()?(z=/(?:iPhone|iPod|iPad|CPU)\s+OS\s+(\S+)/,z=(a=z.exec(a))&&a[1].replace(/_/g,".")):_.A1i()?(z=/Mac OS X ([0-9_.]+)/,z=(a=z.exec(a))?a[1].replace(/_/g,"."):"10"):_.uG(_.fG(),"KaiOS")?(z=/(?:KaiOS)\/(\S+)/i,z=(a=z.exec(a))&&a[1]):_.OGG()?(z=/Android\s+([^\);]+)(\)|;)/,z=(a=z.exec(a))&&a[1]):_.n7d()&&(z=/(?:CrOS\s+(?:i686|x86_64)\s+([0-9.]+))/,z=(a=z.exec(a))&&a[1]);a=
z||""}return a};
NYZ=function(a,z){this.JSC$19465__htOption={width:256,height:256,typeNumber:4,colorDark:"#000000",colorLight:"#ffffff",correctLevel:2};if(z)for(var I in z)this.JSC$19465__htOption[I]=z[I];this.JSC$19465__htOption.useSVG&&(Jv4=rvM);this.JSC$19465__android=IaZ();this.JSC$19465__el=a;this._oQRCode=null;this._oDrawing=new Jv4(this.JSC$19465__el,this.JSC$19465__htOption);this.JSC$19465__htOption.text&&(a=this.JSC$19465__htOption.text,this._oQRCode=new aa0(this.JSC$19465__htOption.correctLevel),PkZ(this._oQRCode,
a),z=this._oQRCode,ZHY(z,!1,Ck0(z)),this.JSC$19465__el.title=a,this._oDrawing.draw(this._oQRCode),this.makeImage())};
ttG=function(a,z,I,J,r){a.save();var P=new Path2D;P.roundRect(z,I,J*7,J*7,J*2);P.roundRect(z+J,I+J,J*5,J*5,J*1.3);P.roundRect(z+2*J,I+2*J,J*3,J*3,J);a.clip(P,"evenodd");a.fillStyle=r;a.fillRect(0,0,a.canvas.width,a.canvas.height);a.restore()};
wy=function(a,z){if(typeof a!=="function")throw Error("zk");return _.IE.setTimeout(function(){a()},z)};
mw=function(){};
Ehi=function(a,z,I,J,r){(new mw).debug("TestLoadImageWithRetries: "+r);if(J==0)I(!1);else{var P=r||0;J--;ube(a,z,function(N){N?I(!0):_.IE.setTimeout(function(){Ehi(a,z,I,J,P)},P)})}};
ube=function(a,z,I){var J=new mw;J.debug("TestLoadImage: loading "+a);var r=new Image;r.onload=function(){try{J.debug("TestLoadImage: loaded"),BY0(r),I(!0)}catch(P){}};
r.onerror=function(){try{J.debug("TestLoadImage: error"),BY0(r),I(!1)}catch(P){}};
r.onabort=function(){try{J.debug("TestLoadImage: abort"),BY0(r),I(!1)}catch(P){}};
r.ontimeout=function(){try{J.debug("TestLoadImage: timeout"),BY0(r),I(!1)}catch(P){}};
_.IE.setTimeout(function(){if(r.ontimeout)r.ontimeout()},z);
r.src=a};
BY0=function(a){a.onload=null;a.onerror=null;a.onabort=null;a.ontimeout=null};
gh4=function(){this.front_=[];this.back_=[]};
OHG=function(a,z){_.FC.call(this);this.delay_=new _.bE(this.JSC$19591_onTick_,0,this);_.t7(this,this.delay_);this.JSC$19589_interval_=5E3;this.nextTickTime_=0;if(typeof a==="function")z&&(a=(0,_.HW)(a,z));else if(a&&typeof a.handleEvent==="function")a=(0,_.HW)(a.handleEvent,a);else throw Error("ya");this.JSC$19591_listener_=a};
yQ=function(a,z,I,J,r,P,N,u,E,O,f,A,n,F){I=I===void 0?!1:I;J=J===void 0?function(){return""}:J;
r=r===void 0?!1:r;P=P===void 0?!1:P;N=N===void 0?!1:N;u=u===void 0?function(){return _.uI({})}:u;
E=E===void 0?!1:E;f=f===void 0?!1:f;A=A===void 0?!1:A;n=n===void 0?!1:n;F=F===void 0?!1:F;this.JSC$19592_pathPrefix_=a;this.defaultQueryParams_=z;this.pubsub_=new _.gM;this.reconnectTimer_=new OHG(this.safeReconnect_,this);this.JSC$19592_channel_=null;this.JSC$19592_disposed_=!1;this.connectionParams_=null;this.sCookie_="";this.disconnectUi_=this.connectUi_=0;this.JSC$19592_pendingMessages_=[];this.enableAsyncTest_=I;this.JSC$19592_getXsrfToken_=J;this.useAsyncBrowserChannelHandler_=P;this.getAuthorizationHeader_=
u;this.getAuthorizationHeaderSync_=O;this.enableCachedUpdateAuthorizationHeader_=N;this.updateAuthorizationHeaderPromise_=null;this.connectPromise_=_.uI();this.enableLoungeTokenRefresh_=r;this.enableAsyncMdxLibraryWithoutAuthHeaderFetch_=E;this.disableMdxAuthForNonPlaybackMessages_=f;this.disableMdxAuthForAdMessages_=A;this.enableMdxAuthForConnectionOnly_=n;this.disableMdxAuthForShortsMessages_=F;this.JSC$19592_channelOpenedCounter=new fae;this.JSC$19592_channelClosedCounter=new AvV;this.channelMessageSentCounter=
new sXG;this.JSC$19592_channelMessageReceivedCounter=new nhf;this.JSC$19592_channelErrorCounter=new K1f;this.pendingMapsOnClosedCounter=new F1G;this.undeliveredMapsOnClosedCounter=new HHY};
kH=function(a){this.scheme="https";this.port=this.domain="";this.basePath="/api/lounge";this.supportCors=!0;a=a||document.location.href;var z=Number(_.kS(a)[4]||null)||"";z&&(this.port=":"+z);this.domain=_.MY(a)||"";a=_.fG();a.search("MSIE")>=0&&_.Om(a.match(/MSIE ([\d.]+)/)[1],"10.0")<0&&(this.supportCors=!1)};
Mx=function(a){a=a||{};this.name=a.name||"";this.id=a.id||a.screenId||"";this.token=a.token||a.loungeToken||"";this.uuid=a.uuid||a.dialId||"";this.idType=a.screenIdType||"normal"};
bHe=function(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(a){var z=Math.random()*16|0;return(a=="x"?z:z&3|8).toString(16)})};
hVZ=function(a){return _.vH(a,function(z){return{key:z.id,name:z.name}})};
Vt0=function(a,z){return _.X0(a,function(I){return I||z?!I!=!z?!1:I.id==z.id:!0})};
YH=function(a,z){return _.X0(a,function(I){return c$(I,z)})};
vhY=function(){var a=QXz(),z=SMz();if(iHe()){var I=a,J=_.iGx(I,z);J<0&&_.VMG(I,-(J+1),0,z)}a=x1f(a);if(a.length==0)try{_.C83("remote_sid")}catch(r){}else try{_.AP("remote_sid",a.join(","),-1)}catch(r){}};
QXz=function(){var a=_.nN("yt-remote-connected-devices")||[];a.sort(_.SmI);return a};
x1f=function(a){if(a.length==0)return[];var z=a[0].indexOf("#"),I=z==-1?a[0]:a[0].substring(0,z);return _.vH(a,function(J,r){return r==0?J:J.substring(I.length)})};
GrE=function(a){_.s4("yt-remote-connected-devices",a,86400)};
SMz=function(){if($1Z)return $1Z;var a=_.nN("yt-remote-device-id");a||(a=bHe(),_.s4("yt-remote-device-id",a,31536E3));for(var z=QXz(),I=1,J=a;_.Um(z,J);)I++,J=a+"#"+I;return $1Z=J};
Xhz=function(){return _.nN("yt-remote-session-browser-channel")};
iHe=function(){return _.nN("yt-remote-session-screen-id")};
W1e=function(a){a.length>5&&(a=a.slice(a.length-5));var z=_.vH(TYe(),function(J){return J.loungeToken}),I=_.vH(a,function(J){return J.loungeToken});
_.rrp(I,function(J){return!_.Um(z,J)})&&d1Z();
_.s4("yt-remote-local-screens",a,31536E3)};
TYe=function(){return _.nN("yt-remote-local-screens")||[]};
d1Z=function(){_.s4("yt-remote-lounge-token-expiration",!0,86400)};
qx=function(a){a||(_.KN("yt-remote-session-screen-id"),_.KN("yt-remote-session-video-id"));vhY();a=QXz();_.Di(a,SMz());GrE(a)};
U10=function(){ohY();return eD?!!eD.get("yt-remote-use-staging-server"):!1};
ohY=function(){if(!eD){var a=_.AW0();a&&(eD=new _.Hy(a))}};
laz=function(a,z,I,J,r){I=I===void 0?function(){return""}:I;
var P=function(){return new yQ(aa(a,"/bc"),z,!1,I,J)};
return _.K("enable_mdx_web_channel_desktop")?new D1Z(function(){return new RVz(aa(a,"/wc"),z,I)}):new L1Y(P,r)};
yvz=function(){var a=phZ;whf();jZ.push(a);m1f()};
zC=function(a,z){whf();var I=kr4(a,String(z));jZ.length==0?MtE(I):(m1f(),_.l1(jZ,function(J){J(I)}))};
Ia=function(a){zC("CP",a)};
whf=function(){jZ||(jZ=_.DH("yt.mdx.remote.debug.handlers_")||[],_.qe("yt.mdx.remote.debug.handlers_",jZ))};
MtE=function(a){var z=(JU+1)%50;JU=z;cvM[z]=a;YM0||(YM0=z==49)};
m1f=function(){var a=jZ;if(cvM[0]){var z=YM0?JU:-1,I={};do I={record$jscomp$15:void 0},z=(z+1)%50,I.record$jscomp$15=cvM[z],_.l1(a,function(J){return function(r){r(J.record$jscomp$15)}}(I));
while(z!=JU);cvM=Array(50);JU=-1;YM0=!1}};
kr4=function(a,z){var I=(Date.now()-qMi)/1E3;I.toFixed&&(I=I.toFixed(3));var J=[];J.push("[",I+"s","] ");J.push("[","yt.mdx.remote","] ");J.push(a+": "+z,"\n");return J.join("")};
r_=function(a){_.Ol.call(this);this.JSC$19616_logName_=a;this.screens=[]};
Z7=function(a){r_.call(this,"LocalScreenService");this.JSC$19623_http_=a;this.loungeTokenRefreshTimer_=NaN;Pm(this);this.info("Initializing with "+eVf(this.screens))};
C9=function(a,z){z=z===void 0?!1:z;r_.call(this,"ScreenService");this.JSC$19629_http_=a;this.disableAutomaticScreenCache_=z;this.onlineScreenService_=this.localScreenService_=null;this.automaticScreens_=[];this.deviceToScreenId_={};aLz(this)};
Nf=function(a,z,I){_.Ol.call(this);this.JSC$19633_logName_=I;this.JSC$19633_screenService_=a;this.receiver_=z;this.screen_=null};
fLi=function(a,z,I){I.disableCastApi?tU("Cannot initialize because disabled by Mdx config."):jQY()?zwi(a,I)&&(IL0(!0),window.chrome&&chrome.cast&&chrome.cast.isAvailable?J3e(z):(window.__onGCastApiAvailable=function(J,r){J?J3e(z):(uV("Failed to load cast API: "+r),r34(!1),IL0(!1),_.KN("yt-remote-cast-available"),_.KN("yt-remote-cast-receiver"),PKZ(),z(!1))},I.loadCastApiSetupScript?_.LL(ZMV):window.navigator.userAgent.indexOf("Android")>=0&&window.navigator.userAgent.indexOf("Chrome/")>=0&&window.navigator.presentation?
CKf()>=60&&NzE():!window.chrome||!window.navigator.presentation||window.navigator.userAgent.indexOf("Edge")>=0?tce():CKf()>=89?ueZ():(Ei4(),Bze(giZ.map(OMV))))):tU("Cannot initialize because not running Chrome")};
PKZ=function(){tU("dispose");var a=E0();a&&a.dispose();_.qe("yt.mdx.remote.cloudview.instance_",null);A3V(!1);_.MgI(sQi);sQi.length=0};
niZ=function(){return!!_.nN("yt-remote-cast-installed")};
KZG=function(){var a=_.nN("yt-remote-cast-receiver");return a?a.friendlyName:null};
FZE=function(){tU("clearCurrentReceiver");_.KN("yt-remote-cast-receiver")};
HMZ=function(){return niZ()?E0()?E0().getCastSession():(uV("getCastSelector: Cast is not initialized."),null):(uV("getCastSelector: Cast API is not installed!"),null)};
hwG=function(a,z){bME()?E0().setConnectedScreenStatus(a,z):uV("setConnectedScreenStatus called before ready.")};
jQY=function(){var a=_.fG().search(/ (CrMo|Chrome|CriOS)\//)>=0;return _.gL||a};
zwi=function(a,z){var I=!1;E0()||(a=new Bm(a,z),a.subscribe("yt-remote-cast2-availability-change",function(J){_.s4("yt-remote-cast-available",J);Fh("yt-remote-cast2-availability-change",J)}),a.subscribe("yt-remote-cast2-receiver-selected",function(J){tU("onReceiverSelected: "+J.friendlyName);
_.s4("yt-remote-cast-receiver",J);Fh("yt-remote-cast2-receiver-selected",J)}),a.subscribe("yt-remote-cast2-receiver-resumed",function(J){tU("onReceiverResumed: "+J.friendlyName);
_.s4("yt-remote-cast-receiver",J);Fh("yt-remote-cast2-receiver-resumed",J)}),a.subscribe("yt-remote-cast2-session-change",function(J){tU("onSessionChange: "+VcE(J));
J||_.KN("yt-remote-cast-receiver");Fh("yt-remote-cast2-session-change",J)}),_.qe("yt.mdx.remote.cloudview.instance_",a),I=!0);
tU("cloudview.createSingleton_: "+I);return I};
E0=function(){return _.DH("yt.mdx.remote.cloudview.instance_")};
J3e=function(a){r34(!0);IL0(!1);E0().init(!1,function(z){z?(A3V(!0),_.cjG("yt-remote-cast2-api-ready")):(uV("Failed to initialize cast API."),r34(!1),_.KN("yt-remote-cast-available"),_.KN("yt-remote-cast-receiver"),PKZ());a(z)})};
tU=function(a){zC("cloudview",a)};
uV=function(a){zC("cloudview",a)};
r34=function(a){tU("setCastInstalled_ "+a);_.s4("yt-remote-cast-installed",a)};
bME=function(){return!!_.DH("yt.mdx.remote.cloudview.apiReady_")};
A3V=function(a){tU("setApiReady_ "+a);_.qe("yt.mdx.remote.cloudview.apiReady_",a)};
IL0=function(a){_.qe("yt.mdx.remote.cloudview.initializing_",a)};
g_=function(a){this.index=-1;this.videoId=this.listId="";this.volume=this.playerState=-1;this.muted=!1;this.audioTrackId=null;this.playerTimeAt_=this.playerTime_=0;this.trackData=null;this.hasNext=this.hasPrevious=!1;this.loadedTime=this.duration_=this.seekableEnd_=this.seekableStart_=0;this.liveIngestionTime_=NaN;this.isLive_=!1;this.reset(a)};
QQe=function(){var a,z;return _.t(function(I){if(I.nextAddress==1)return(_.$pG()||_.K("use_new_nwl"))&&_.iwd().isNetworkAvailable()?I.yield(_.e6(),2):I.return();if(I.nextAddress!=3)return(a=I.yieldResult)?I.yield(I1e(a),3):I.return();z=I.yieldResult;if(!z.length)return I.return();z.forEach(function(J){var r={timestamp:J.timestamp};J=J.appShellAssetLoadReport?{payloadName:"appShellAssetLoadReport",payload:J.appShellAssetLoadReport,options:r}:J.clientError?{payloadName:"clientError",payload:J.clientError,
options:r}:void 0;J&&_.x0(J.payloadName,J.payload,J.options)});
z.length===100&&_.GW.addLowPriorityJob(QQe);_.nu(I)})};
S80=function(a){if(a.playerResponse){if(a=a.playerResponse,a.messages&&a.messages.length>0&&(a=a.messages.find(function(z){return!(!z||!z.mealbarPromoRenderer)}))&&a.mealbarPromoRenderer)return a.mealbarPromoRenderer}else if(a.response&&(a=a.response)&&a.overlay&&a.overlay.mealbarPromoRenderer)return a.overlay.mealbarPromoRenderer};
iM0=function(a){if(a.response){var z=a.response;if(z&&z.overlay&&z.overlay.tooltipRenderer)return z.overlay.tooltipRenderer}if(a.playerResponse&&(a=a.playerResponse,a.messages&&a.messages.length>0&&(a=a.messages.find(function(I){return!(!I||!I.tooltipRenderer)}))&&a.tooltipRenderer))return a.tooltipRenderer};
viE=function(a){if(!x3Y&&(a=a||_.Xw("ZWIEBACK_PING_URLS"))&&a.length){x3Y=!0;for(var z=0;z<a.length;z++)_.lP(a[z])}};
$30=function(a){if(_.x8.get(_.Xw("PLAYER_VARS",{}),"privembed",!1)!="1"){a&&k$Y();try{GzM().then(function(){},function(){}),_.C1($30,18E5)}catch(z){_.oL(z)}}};
XKZ=function(){var a=_.Kt(),z=a.getFlag(119),I=window.devicePixelRatio>1;document.body&&_.pp(document.body,"exp-invert-logo")&&(I&&!_.pp(document.body,"inverted-hdpi")?_.eg(document.body,"inverted-hdpi"):!I&&_.pp(document.body,"inverted-hdpi")&&_.YN(document.body,"inverted-hdpi"));z!=I&&(_.Fz(0,119,I),a.save())};
TzE=function(a){return a.filter(function(z){return"ypcGetCartEndpoint"in z||"ypcFixInstrumentEndpoint"in z})};
d3V=function(a){return a.filter(function(z){return!_.H(z,_.ouG)})};
oi0=function(a,z){var I,J,r,P,N,u,E;_.t(function(O){switch(O.nextAddress){case 1:I=_.$h.getInstance();J=_.Og.instance;r=_.w4.instance;if(!r)return WZi(a,J,z),O.return();_.BP(O,2);a.onLoadingCommand&&J.resolveCommand(a.onLoadingCommand);return O.yield(I.getCurrentPositionFromGeolocation(),4);case 4:P=O.yieldResult;if(!a.resolveLocationCommand){O.jumpTo(5);break}N=I.createLocationInfo(P);return O.yield(_.y7(r,a.resolveLocationCommand,{locationInfo:N}),6);case 6:u=O.yieldResult;if(!u||"error"in u&&u.error||
u.errorMetadata)return WZi(a,J,z),O.return();var f;if(u==null?0:(f=u.onResponseReceivedActions)==null?0:f.length){f=_.C(u.onResponseReceivedActions);for(var A=f.next();!A.done;A=f.next())J.resolveCommand(A.value)}(_.H(a.onSuccessCommand,_.MZ)||_.H(a.onSuccessCommand,_.KH))&&_.PA(z.hostElement,"yt-navigate",{endpoint:a.onSuccessCommand,reload:!0});case 5:_.p1(O,0);break;case 2:E=_.sk(O);if(E instanceof GeolocationPositionError&&E.code===GeolocationPositionError.PERMISSION_DENIED)return a.onDeniedCommand&&
J.resolveCommand(a.onDeniedCommand),O.return();WZi(a,J,z);_.nu(O)}})};
WZi=function(a,z,I){a.onFailureCommand&&(z.resolveCommand(a.onFailureCommand),_.ZF(I.hostElement,"yt-close-popup-action",["yt-confirm-dialog-renderer"]))};
D3E=function(a,z){var I=_.H(a,_.LiI);if(I&&z){a=I.videoIds||[I.videoId];var J;z=(J=_.PA(z,"yt-lockup-requested",{videoIds:a}).detail)==null?void 0:J.returnValue;var r;I.listType==="PLAYLIST_EDIT_LIST_TYPE_QUEUE"?r=z?z:a.map(function(P){return{videoId:P,navigationEndpoint:I.videoCommand}}):z&&(r=z);
r&&(J=r.map(function(P){var N=Object,u=N.assign;var E=P.navigationEndpoint;if(!_.H(E,_.hv)){var O=_.H(E,_.MZ);if(O){if(delete O.index,delete O.playlistId,O=_.H(E==null?void 0:E.commandMetadata,_.O_),O==null?0:O.url){var f=O.url;f=_.a_(f,"list");f=_.a_(f,"index");O.url=f}}else E=void 0}return u.call(N,{},P,{ownerBadges:void 0,topStandaloneBadge:void 0,menu:void 0,navigationEndpoint:E})}),U3Z(J,I))}};
Rw0=function(a){var z=_.cS();if(a=_.H(a,_.loi))a.listType==="PLAYLIST_EDIT_LIST_TYPE_QUEUE"&&z.clearQueue(),a.closeMiniplayer&&_.ab().resolve(_.UJ).close(!0)};
lLM=function(a){LZY(_.cS(),a)};
pKE=function(a){var z;(a=(z=_.H(a,_.DQv))==null?void 0:z.setVideoIds)&&a.forEach(function(I){_.c0J(_.cS(),I)})};
m3G=function(a){wKV(_.cS(),a)};
y3E=function(){try{return!(!window.AudioContext&&!window.webkitAudioContext)}catch(a){return!1}};
kze=function(a){var z=["h","m","s"],I=_.RE(z);I.reverse();var J={};a=(a.toLowerCase().match(/\d+\s*[hms]?/g)||[]).filter(function(N){var u=(N.match(/[hms]/)||[""])[0];return u?(J[u]=parseInt(N.match(/\d+/)[0],10),!1):!0});
for(a.reverse();a.length&&I.length;){var r=I.shift();r in J||(J[r]=parseInt(a.shift(),10))}if(a.length||J.s>59||J.m>59||J.h>9)return null;var P="";z.forEach(function(N){J[N]&&(P+=""+J[N]+N)});
return P||null};
McZ=function(a){a=a.data;return _.B("yt-profile-badge-view-model",{class:"profile-badge-view-model-wiz"},_.B("div",{class:"profile-badge-view-model-wiz__badge-icon-container"},_.B(_.qp,{data:{thumbnails:[{url:a.badgeIconUrl}]},alt:"",targetWidth:36,targetHeight:36})),_.B("div",{class:"profile-badge-view-model-wiz__content"},_.B("div",{class:"profile-badge-view-model-wiz__badge-description"},a.badgeDesc),a.badgeSubtitle?_.B("div",{class:"profile-badge-view-model-wiz__badge-subtitle"},a.badgeSubtitle):
null))};
c3M=function(a){a=a.data;var z=_.Mm("yt-comment-interaction-view-model");x$4(z,a.rendererContext);return _.B("yt-comment-interaction-view-model",{el:z,class:"yt-comment-interaction-view-model-wiz"},_.B("div",{class:"yt-comment-interaction-view-model-wiz__frame",role:"button","aria-label":a.onTapA11yLabel,"on:keydown":_.XF(),tabindex:0},_.B("div",{class:"yt-comment-interaction-view-model-wiz__header"},_.B("div",{class:"yt-comment-interaction-view-model-wiz__video-title"},a.headerPrefix,' "',a.videoTitle),
_.B("div",{class:"yt-comment-interaction-view-model-wiz__video-title-quote"},'"')),_.B("div",{class:"yt-comment-interaction-view-model-wiz__content"},_.B("div",{class:"yt-comment-interaction-view-model-wiz__comment-content"},a.commentContent),_.B("div",{class:"yt-comment-interaction-view-model-wiz__chevron"},_.B(_.qp,{data:{thumbnails:[{url:a.chevronUrl}]},alt:"",targetWidth:18,targetHeight:18})))))};
q8Z=function(a){a=a.data;return _.B("yt-shared-subscription-view-model",{class:"yt-shared-subscription-view-model-wiz"},Y8Z(a.avatar),_.B("div",{class:"yt-shared-subscription-view-model-wiz__channel-name"},a.channelName))};
ewZ=function(a,z){var I=function(J){J.preventDefault()};
_.VO(function(){var J=a.value;if(J)return(J._data=z)?(J.addEventListener("touchstart",_.TxG,{passive:!0}),J.addEventListener("click",K8G),z.clickTrackingParams&&(J.params={itct:z.clickTrackingParams}),F8f(J,z),_.Ua(J,Htf(z)||"")):J.addEventListener("click",I),function(){z?(J.removeEventListener("touchstart",_.TxG,{passive:!0}),J.removeEventListener("click",K8G)):J.removeEventListener("click",I)}},[z,
void 0])};
aAG=function(a){a=a.data;var z;return _.B("div",{class:"yt-profile-info-view-model-wiz__activity"},_.B("div",{class:"yt-profile-info-view-model-wiz__header"},_.B("div",{class:"yt-profile-info-view-model-wiz__section-title"},a.commentsInteractionTitle)),(z=a.comments)==null?void 0:z.map(function(I){return _.B("div",{class:"yt-profile-info-view-model-wiz__activity"},O0(I))}))};
j00=function(a){a=a.data;var z=_.R0({elementsCommand:a.subscriptionsAccessButtonCommand}),I=_.Mm("a");ewZ(I,_.o0(a.subscriptionsAccessButtonCommand));var J;return _.B("div",{class:"yt-profile-info-view-model-wiz__sub-section"},_.B("div",{class:"yt-profile-info-view-model-wiz__sub-header"},_.B("a",{el:I,"on:click":_.g4(function(r){if(z==null?0:z.onclick)z.onclick(r);return!1}),
class:"yt-profile-info-view-model-wiz__another-header"},_.B("div",{class:"yt-profile-info-view-model-wiz__section-title-modern"},a.sharedSubscriptionsTitle),_.B("div",null,O0(a.subscriptionsAccessButton)))),_.B("div",{class:"yt-profile-info-view-model-wiz__subs"},(J=a.sharedSubscriptions)==null?void 0:J.slice(0,5).map(function(r){return _.B("div",{class:"yt-profile-info-view-model-wiz__sub"}," ",O0(r))})))};
zL4=function(a){a=a.data;var z;return _.B("div",{class:"yt-profile-info-view-model-wiz__sub-section"},_.B("div",{class:"yt-profile-info-view-model-wiz__sub-header"},_.B("h2",{class:"yt-profile-info-view-model-wiz__section-title"},a.sharedSubscriptionsTitle)),_.B("div",{class:"yt-profile-info-view-model-wiz__subs"},(z=a.sharedSubscriptions)==null?void 0:z.slice(0,5).map(function(I){return _.B("div",{class:"yt-profile-info-view-model-wiz__sub"}," ",O0(I))})))};
JjZ=function(a){a=a.data;return _.B("div",{class:"yt-profile-info-view-model-wiz__activity"},[a.profileBadgeInfoYtWide,a.profileBadgeInfoChannelWide].map(function(z){var I,J,r,P,N;return z?_.B(_.eJ,null,_.B("div",{class:"yt-profile-info-view-model-wiz__header"},_.B("div",{class:"yt-profile-info-view-model-wiz__section-title"},z==null?void 0:z.profileSectionTitle),_.B("div",{class:"yt-profile-info-view-model-wiz__section-desc"},_.B("div",{class:"yt-profile-info-view-model-wiz__section-subtitle"},z==
null?void 0:(I=z.commentBadge)==null?void 0:I.commentDesc),(z==null?0:(J=z.commentBadge)==null?0:J.blackHeartDesc)?_.B("div",{class:"yt-profile-info-view-model-wiz__section-divider"},"\u2022"):null,_.B("div",{class:"yt-profile-info-view-model-wiz__section-heart-icon"},_.B(_.qp,{data:{thumbnails:[{url:z==null?void 0:(r=z.commentBadge)==null?void 0:r.blackHeartIconUrl}]},alt:"",targetWidth:14,targetHeight:14,preserveWidth:!0,preserveHeight:!0})),_.B("div",{class:"yt-profile-info-view-model-wiz__section-subtitle"},
z==null?void 0:(P=z.commentBadge)==null?void 0:P.blackHeartDesc))),_.B("div",{class:"yt-profile-info-view-model-wiz__badge"},z==null?void 0:(N=z.badges)==null?void 0:N.map(function(u){return _.B(IAM,{data:u})}))):null}))};
rjV=function(a){a=a.data;return _.B("yt-profile-info-view-model",{class:a.videosHorizontalShelf?"yt-profile-info-view-model-wiz yt-profile-info-view-model-wiz__with-video-shelf":"yt-profile-info-view-model-wiz"},_.B(JjZ,{data:a}),a.videosHorizontalShelf?_.B("div",{class:"yt-profile-info-view-model-wiz__videoShelfContainer"},O0(a.videosHorizontalShelf)):null,a.comments?_.B(aAG,{data:a}):null,a.sharedSubscriptionsTitle?a.subscriptionsAccessButtonCommand?_.B(j00,{data:a}):_.B(zL4,{data:a}):null)};
ZwY=function(a){a=a.data;if(a){var z=a.profileCardContext==="PROFILE_CARD_CONTEXT_CHANNEL_INFO_CARD";z=PNf(a.profileIdentityInfo,{profileIdentityInfoViewModel:{hideDivider:z,isChannelInfoCard:z}})}else z=void 0;a=a?PNf(a.profileInfo):void 0;return _.B("yt-profile-card-view-model",{class:"yt-profile-card-view-model-wiz",style:"overflow: hidden"},z,a)};
CN0=function(a,z){var I=_.EBw(z,{},a,!0);return new Promise(function(J,r){I.listenOnce("n",function(){r(Error("kl`"+I.JSC$29293_getErrorDescription()))});
I.listenOnce("l",function(){var P=I.getResponseCode();if(P!==200)r(Error("ll`"+z+"`"+a.type+"`"+a.size+"`"+P));else try{J(JSON.parse(I.getResponseText()).encryptedBlobId)}catch(N){r(N)}});
I.run()})};
Ndz=function(a){return a.substring(a.indexOf(":")+1,a.indexOf(";"))};
tgM=function(a){return new Promise(function(z,I){var J=new FileReader;J.onloadend=function(){try{var r=new Uint8Array(J.result);r.length<8&&I(void 0);var P=r.subarray(0,8);r="";for(var N=0;N<P.length;N++)r+=("0"+P[N].toString(16)).substr(-2);r.startsWith("ffd8ff")?z("image/jpeg"):r.startsWith("47494638")?z("image/gif"):r.startsWith("89504e470d0a1a0a")?z("image/png"):r.startsWith("424d")?z("image/bmp"):z(void 0)}catch(u){I(u)}};
J.onerror=I;J.readAsArrayBuffer(a)})};
uJE=function(a){return new Promise(function(z,I){var J=new Image;J.crossOrigin="anonymous";J.onload=function(){var r=document.createElement("canvas");r.width=J.naturalWidth;r.height=J.naturalHeight;var P=r.getContext("2d");if(!P)throw Error("ml");P.drawImage(J,0,0);P=Ndz(a);r.toBlob(function(N){N?z(N):I()},P)};
J.src=a})};
BdZ=function(a,z){var I;if(((I=_.H(a,_.hv))==null?void 0:I.inputType)==="REEL_WATCH_INPUT_TYPE_SEEDLESS"){var J;_.PA((J=z.hostElement)!=null?J:z,"yt-shorts-reset");_.a3O(_.ab().resolve(_.Qb),a).then(function(P){EN0(P,z,a)})}else{var r;
_.N$((r=z.hostElement)!=null?r:z,[a]).then(function(P){P&&EN0(P.data,z,a)})}};
EN0=function(a,z,I){if(a){var J=_.H(a.replacementEndpoint,_.hv);if(J){a.sequenceContinuation&&(J.sequenceParams=a.sequenceContinuation);var r;_.PA((r=z.hostElement)!=null?r:z,"yt-navigate",{endpoint:a.replacementEndpoint})}else if((a==null?void 0:a.status)==="REEL_ITEM_WATCH_STATUS_EMPTY"&&(a==null?0:a.watchStatus)&&_.H(a.watchStatus,_.bEj)){var P;_.PA((P=z.hostElement)!=null?P:z,"yt-navigate",{endpoint:I})}}};
gNE=function(a){var z=_.ab().resolve(_.mP),I=vAV(z.getState())||"";z=_.QaG(z.getState())||"";I=I==="ytd-browse"&&z==="home";return _.K("web_guide_entry_enable_cache_for_non_home_pages")?(a=(a==null?void 0:a.navigationEndpoint)&&_.nH(a.navigationEndpoint)==="home",{disableCache:I&&a}):{disableCache:I}};
OwE=function(a){if(!a)return!1;try{if(a.host&&a.host.tagName==="YT-FORMATTED-STRING"&&a.host.id==="contenteditable-textarea"||a.nodeType===Node.ELEMENT_NODE&&a.tagName==="YTD-COMMENT-INPUT")return!0}catch(z){return!1}return OwE(a.parentNode)};
f9=function(a){return a?a.tagName==="A"&&a.href&&a.classList.contains("yt-simple-endpoint"):!1};
fAZ=function(a){return a?a.tagName==="IMG"&&a.classList.contains("emoji"):!1};
Aji=function(a,z,I){if(!a)return null;var J=f9(a);if(J&&I)return z=a.pathname.substring(a.pathname.indexOf("/channel/")+9),document.createTextNode("@"+z);if(J&&!I)return document.createTextNode("");if(fAZ(a))return I=a.alt,a=a.dataset.emojiId,!a&&z&&(z=_.um(z,I))&&z.isCustomEmoji&&(a=z.emojiId),a?document.createTextNode("<URehb0Lc5mi4S0dpuLG8:"+a+">"):document.createTextNode(I);J=a.cloneNode(!1);for(var r=0;r<a.childNodes.length;++r){var P=Aji(a.childNodes[r],z,I);P&&J.appendChild(P)}return J};
AU=function(a){return a?f9(a)?a:AU(a.lastChild):null};
s0E=function(a){return a?f9(a)?a:s0E(a.firstChild):null};
nNZ=function(a){if(!a)return null;for(var z=a.previousSibling;z;)if(z.nodeType===Node.ELEMENT_NODE&&z.nodeName==="BR")z=z.previousSibling;else if(z.nodeType===Node.TEXT_NODE&&/\s+/.test(z.textContent))z=z.previousSibling;else break;(z=AU(z))?a=z:a=(a=a.parentNode)?AU(a.previousElementSibling):null;return a};
Kof=function(a){if(!a)return null;for(var z=a.nextSibling;z;)if(z.nodeType===Node.ELEMENT_NODE&&z.nodeName==="BR")z=z.nextSibling;else if(z.nodeType===Node.TEXT_NODE&&/\s+/.test(z.textContent))z=z.nextSibling;else break;return(z=s0E(z))?z:Kof(a.parentNode)};
Fo0=function(a){var z=_.B0(),I=z.JSC$11245_getStartNode();if(!OwE(I.parentNode))return null;z=z.JSC$11245_getStartOffset();if(I.nodeType===Node.TEXT_NODE){var J=_.dJ(I,f9);if(J){if(a&&z===0||!a&&z===I.length)return J}else{if(a&&z===I.length)return!I||I.nodeName==="BR"||I.nextElementSibling&&_.gs(I.nextElementSibling,"display")==="block"?null:s0E(I.nextElementSibling);if(!a&&z===0)return I?AU(I.previousElementSibling):null}}if(I.nodeType===Node.ELEMENT_NODE)if(a){if(0<=z&&z<I.childNodes.length)return s0E(I.childNodes[z])}else if(0<
z&&z<=I.childNodes.length)return AU(I.childNodes[z-1]);return null};
HwY=function(a,z,I){if(!a)return null;if(a.nodeType===Node.TEXT_NODE)if(I){var J=nNZ(a);if(J&&!/^\s+\S/.test(a.wholeText.substr(0,z)))return J}else if((J=Kof(a))&&!/\S\s+/.test(a.wholeText.substr(z,a.wholeText.length)))return J;return a.nodeType===Node.ELEMENT_NODE?I?nNZ(a.childNodes[z]):Kof(a.childNodes[z]):HwY(a.parentNode,z,I)};
bwZ=function(a){if(a.hasChildNodes())switch(a.tagName){case "DIV":case "A":case "SPAN":var z="";for(a=a.firstChild;a;a=a.nextSibling)z+=bwZ(a);return z;default:return""}else switch(a.nodeType){case 3:return a.textContent;default:return""}};
hL4=function(a){a=a.data;return _.B("ytd-menu-title-renderer",{class:"ytd-menu-title-renderer"},_.B("div",null,_.B(_.xs,{text:a.title})),a.subtitle?_.B("div",{class:"ytd-menu-title-renderer__subtitle"},_.B(_.xs,{text:a.subtitle})):null)};
Vg0=function(a){switch(a){case "UNKNOWN_FORMAT_TYPE":return"SETTINGS_OPTIONS_ID_TYPE_DOWNLOAD_QUALITY_UNKNOWN";case "HD_1080":return"SETTINGS_OPTIONS_ID_TYPE_DOWNLOAD_QUALITY_HD_1080";case "SD":return"SETTINGS_OPTIONS_ID_TYPE_DOWNLOAD_QUALITY_SD";case "LD":return"SETTINGS_OPTIONS_ID_TYPE_DOWNLOAD_QUALITY_LD";default:return"SETTINGS_OPTIONS_ID_TYPE_DOWNLOAD_QUALITY_HD"}};
Q0z=function(a){return a.map(function(z){return{settingsRadioOptionRenderer:{title:_.JW(z.name),asideText:_.JW(z.approximateSize),id:Vg0(z.format)}}})};
iwz=function(a){if(a&&a.length!==0)return a.filter(SgZ()).map(function(z){return{settingsRadioOptionRenderer:{title:z.name,asideText:z.approximateSize,id:Vg0(z.formatType)}}})};
s0=function(a){if(a)return a.replaceAll("&nbsp;"," ").replaceAll("&#39;","'")};
xpG=function(a,z){a=new Set(a!=null?a:[]);if(a.has(790))return"YOUTUBE_ENTITY_TYPE_CHANNEL";if(a.has(788))return"YOUTUBE_ENTITY_TYPE_TV_SHOW";if(a.has(789))return"YOUTUBE_ENTITY_TYPE_MOVIE";if(a.has(786))return"YOUTUBE_ENTITY_TYPE_SONG";if(a.has(787))return"YOUTUBE_ENTITY_TYPE_ALBUM";if(z)return"YOUTUBE_ENTITY_TYPE_DEFAULT"};
vNZ=function(a){var z=a.indexOf("(");return z!==-1?a.substring(z+1,a.length-1):a};
_.$p0=function(a,z,I,J,r){I||(I=GQY);var P;(P=_.H(I.commandMetadata,_.O_))!=null&&P.url||(I=Error("rl`"+JSON.stringify(I)),_.Gx(I),I=GQY);I=_.x8.unsafeClone(I);P=_.oO(_.H(I.commandMetadata,_.O_).url,"search_query",a);_.US(location.href,"sv")==="1"&&(_.H(I,_.Fb).params="EgOAAgE%3D",P=_.oO(P,"sv","1"));_.H(I,_.Fb)&&(_.H(I,_.Fb).query=a);P=P.replace(/%20/g,"+");_.H(I.commandMetadata,_.O_).url=P;r=_.K("desktop_enable_entity_suggest")?{entityMid:r}:{};_.ab().resolve(_.j6).resolveCommand(I,{form:{tempData:Object.assign({},
{gs_l:z,oq:J!=null?J:a},r)}})};
XlG=function(a){switch(a){case 38:return-1;case 40:return 1;case 37:return-1;case 39:return 1;default:return 0}};
dpV=function(a,z,I,J,r,P){var N=_.x8.clone(TdV);N.locale=_.Xw("SBOX_SETTINGS",{}).REQUEST_LANGUAGE;N.report={description:r||"<empty>"};r=_.Xw("SBOX_SETTINGS",{});z=z.join(",");var u=Date.now();a={choice_cc:J,choice_id_cc:I,choices_sc:z,gl:r.REQUEST_DOMAIN,hl:r.REQUEST_LANGUAGE,query:a,time:u};P&&(a.choice_additional_comment_cc=P);_.sci(N,a)};
WoM=function(a){var z=new Map;z.set("authuser",_.Xw("SESSION_INDEX","0"));return _.rJ(a,z)};
Up4=function(a){var z;return _.t(function(I){switch(I.nextAddress){case 1:if(!a||!oN0(a))return I.return(null);z=null;switch(_.Xw("INNERTUBE_CLIENT_NAME")){case "WEB":return I.jumpTo(2);case "WEB_REMIX":z=a.getPlayer()}I.jumpTo(3);break;case 2:return I.yield(a.getPlayerPromise(),4);case 4:z=I.yieldResult;I.jumpTo(3);break;case 3:return I.return(z)}})};
oN0=function(a){return["ytd-player","ytmusic-player"].includes(String(a.tagName||"").toLowerCase())};
DpY=function(a){a=Math.round(a);return a%2?a-1:a};
RLZ=function(a){a=Math.round(a);return a%2===0?a-1:a};
Loz=function(a){var z,I,J;if(a=(z=a.createPlaylistDialogFormSchema)==null?void 0:(I=z.fieldSchemas)==null?void 0:(J=I.title)==null?void 0:J.validationSchema)for(z=[a.syncStep,a.asyncStep].filter(function(r){return r!==void 0}),z=_.C(z),I=z.next();!I.done;I=z.next()){I=I.value.rules;
if(!I)break;I=_.C(I);for(I=I.next();!I.done;I=I.next())return _.H(I.value,_.dYi)}};
pl0=function(a){var z,I,J;if(a=(z=a.createPlaylistDialogFormSchema)==null?void 0:(I=z.fieldSchemas)==null?void 0:(J=I.visibility)==null?void 0:J.validationSchema)for(z=[a.syncStep,a.asyncStep].filter(function(r){return r!==void 0}),z=_.C(z),I=z.next();!I.done;I=z.next()){I=I.value.rules;
if(!I)break;I=_.C(I);for(J=I.next();!J.done;J=I.next())if(J=_.H(J.value,lAZ))return z=void 0,(z=J.translations)==null?void 0:z.visibilityNotValidErrorMessage}};
wli=function(){var a,z;return(z=(a=_.ab().resolve(_.eL(_.kN)))==null?void 0:a())!=null?z:!1};
mpV=function(a){var z=21;if(!a)return z;z+=a.headerTitle?27:0;z+=a.headerTitle&&a.hasHeaderActionHeader?4:0;return z+=a.headerTitle&&a.headerSubtitle?16:0};
yjV=function(a){var z=0;if(!a)return z;z+=a.hasFooterPrimaryButton||a.hasFooterSecondaryButton?48:0;z+=a.footerTrailingLabel||a.footerLeadingLabel?30:0;return z+=a.hasFooterPrimaryButton||a.hasFooterSecondaryButton||!a.footerTrailingLabel&&!a.footerLeadingLabel?0:12};
kQG=function(a){var z=new _.gM,I=a;return{subscribe:function(J){z.subscribe("changed",J)},
dispatch:function(J,r){var P=I;J==="Touch Start"?I=Object.assign({},P,{isAnimating:!1,initialY:r.event.touches[0].clientY}):J==="Touch Move"?(J=Math.min(r.fullContentWrapperHeight,r.contentHeightMap[r.contentWrapperId]+mpV(r.header)-yjV(r.footer)),I=Object.assign({},P,{currentY:Math.max(r.contentScrollable?-1*(P.initialY-24):0,r.event.touches[0].clientY-P.initialY),maxHeightForContentWrapper:Math.min(J,Math.max(0,(P.isFullScreen?J:r.contentWrapperHeight)-P.currentY))})):I=J==="Snap To Full Screen"?
Object.assign({},P,{isAnimating:!1,currentY:0,isFullScreen:!0,maxHeightForContentWrapper:r.maxHeight}):J==="Snap To Neutral Position"?Object.assign({},P,{isAnimating:!1,currentY:0,isFullScreen:!1,maxHeightForContentWrapper:r.maxHeight}):J==="Close Sheet"?Object.assign({},P,{isAnimating:!0,currentY:r.clientHeight,isFullScreen:!1,maxHeightForContentWrapper:r.maxHeight}):P;z.publish("changed",I)}}};
Mgi=function(a){return _.g4(function(z){a(z);return!1})};
cj0=function(){_.ab().resolve(_.T4).closeSheet()};
YgV=function(a){var z,I,J,r,P,N,u,E,O,f,A;return{headerTitle:(z=a.headerTitle)==null?void 0:z.call(a),headerSubtitle:(I=a.headerSubtitle)==null?void 0:I.call(a),headerActionHeader:a.headerActionHeader,footerPrimaryButton:a.footerPrimaryButton,footerSecondaryButton:a.footerSecondaryButton,footerButtonType:(J=a.footerButtonType)==null?void 0:J.call(a),footerLeadingLabel:(r=a.footerLeadingLabel)==null?void 0:r.call(a),footerTrailingLabel:(P=a.footerTrailingLabel)==null?void 0:P.call(a),shouldShowIcons:(N=
a.shouldShowIcons)==null?void 0:N.call(a),skipContentClick:(u=a.skipContentClick)==null?void 0:u.call(a),additionalClassName:(E=a.additionalClassName)==null?void 0:E.call(a),onClosedCallback:a.onClosedCallback,focusOnClose:(O=a.focusOnClose)==null?void 0:O.call(a),isDisabled:(f=a.isDisabled)==null?void 0:f.call(a),disabledCommand:(A=a.disabledCommand)==null?void 0:A.call(a),headerFn:a.headerFn,contentFn:a.contentFn,footerFn:a.footerFn,hasHeaderFn:a.hasHeaderFn(),hasContentFn:a.hasContentFn(),hasFooterFn:a.hasFooterFn(),
hasFooterPrimaryButton:a.hasFooterPrimaryButton(),hasFooterSecondaryButton:a.hasFooterSecondaryButton(),hasHeaderActionHeader:a.hasHeaderActionHeader()}};
qgG=function(a){switch(a){case "FLEXBOX_FLEX_DIRECTION_ROW":return"row";case "FLEXBOX_FLEX_DIRECTION_ROW_REVERSE":return"row-reverse";case "FLEXBOX_FLEX_DIRECTION_COLUMN":return"column";case "FLEXBOX_FLEX_DIRECTION_COLUMN_REVERSE":return"column-reverse";default:return""}};
eLM=function(a){switch(a){case "FLEXBOX_JUSTIFY_CONTENT_CENTER":return"center";case "FLEXBOX_JUSTIFY_CONTENT_BETWEEN":return"space-between";case "FLEXBOX_JUSTIFY_CONTENT_FLEX_START":return"flex-start";case "FLEXBOX_JUSTIFY_CONTENT_FLEX_END":return"flex-end";case "FLEXBOX_JUSTIFY_CONTENT_SPACE_AROUND":return"space-around";default:return""}};
atZ=function(a){switch(a){case "FLEXBOX_ALIGN_ITEMS_CENTER":return"center";case "FLEXBOX_ALIGN_ITEMS_START":return"flex-start";case "FLEXBOX_ALIGN_ITEMS_END":return"flex-end";case "FLEXBOX_ALIGN_ITEMS_STRETCH":return"stretch";default:return""}};
j50=function(a,z,I){z.forEach(function(J){_.KJ(_.ab().resolve(_.d7),J)});
_.ZF(a,"yt-close-popup-action",["yt-gen-ai-feedback-form-view-model",I])};
rf0=function(a,z,I,J){var r=_.H(I,_.cU).commandLifeCycleConfig;r&&r.onStartCommand&&_.tR(a,[r.onStartCommand],z);_.lm(z);var P=_.w4.instance;P&&_.mf(P,I)?_.y7(P,I,J).then(function(N){if(!N||(N==null?0:N.error))return N=_.H(I,_.cU).serializedTransactionFlowLoggingParams,_.pc(z),_.xN(new n9("TRANSACTION_ERROR_TYPE_YPC_HANDLE_TRANSACTION_RPC_FAILURE",N));_.pc(z);return{data:N}}).then(function(N){_.pc(z);
zhe(N.data);var u=N.data.command;u&&_.tR(a,[u],z);u=It0(I,N.data);if(!u){var E=N.data;N=!1;if(E&&E.command&&_.H(E.command,_.E_)){var O;E=((O=_.H(E.command,_.E_))==null?void 0:O.commands)||[];for(O=0;O<E.length;O++)if(_.H(E[O],_.KJw)){N=!0;break}}N||_.Ww('{"event": "purchase", "eventParams" : {"purchaseStatus": "success"}}')}!u&&r&&r.onSuccessCommand?_.tR(a,[r.onSuccessCommand],z):u&&r&&r.onFailureCommand&&_.tR(a,[r.onFailureCommand],z)},function(){_.pc(z);
r&&r.onFailureCommand&&_.tR(a,[r.onFailureCommand],z);JfY(I)}):_.Gx(Error("Dl"),"ERROR")};
PJi=function(a,z,I){var J=[z];I&&J.push(I);return _.N$(a,J).then(function(r){var P=_.H(z,_.cU).serializedTransactionFlowLoggingParams,N=r.data,u=It0(z,N);u?r=_.xN(new n9(u,P)):zhe(N);return r},function(){var r=_.H(z,_.cU).serializedTransactionFlowLoggingParams;
JfY(z);return _.xN(new n9("TRANSACTION_ERROR_TYPE_YPC_HANDLE_TRANSACTION_RPC_FAILURE",r))})};
It0=function(a,z){a=_.H(a,_.cU).serializedTransactionFlowLoggingParams;var I=null;switch(z.ypcResponseCode){case "YPC_RESPONSE_CODE_ERROR":I="TRANSACTION_ERROR_TYPE_YPC_HANDLE_TRANSACTION_RPC_FAILURE";break;case "YPC_RESPONSE_CODE_ERROR_PROMO_CODE_POLICY_VIOLATION":I="TRANSACTION_ERROR_TYPE_REJECTED_WITH_PROMO_CODE_POLICY_VIOLATION";break;case "YPC_RESPONSE_CODE_LIVE_CHAT_BACKEND_ERROR":I="TRANSACTION_ERROR_TYPE_LIVE_CHAT_BACKEND_ERROR"}I?_.kh(I,a):s_Z(a);return I};
JfY=function(a){_.kh("TRANSACTION_ERROR_TYPE_YPC_HANDLE_TRANSACTION_RPC_FAILURE",_.H(a,_.cU).serializedTransactionFlowLoggingParams)};
zhe=function(a){if(a.trackingParams){var z=_.TX(),I=_.XZ();z&&I&&_.Lt(z,I,_.VX(a.trackingParams))}};
ZSY=function(a,z,I){var J=_.w4.instance,r=_.D6G(_.Xw("YPC_MB_URL")),P=(new _.oy0).init(),N=_.U6E(),u=_.H(I,_.fsO).languageCode;u===void 0?_.Gx(Error("Fi"),"ERROR"):_.VD([P,r]).then(function(){var E={ctk:payments.business.integration.ClientTokenFactory.createClientToken(u,N)};J&&_.mf(J,I)?_.y7(J,I,E).then(function(O){return{data:O}}).then(function(O){_.PA(z,"yt-service-request-completed",O);
O.code!=="ERROR"&&(O=O.data.command)&&_.tR(a,[O],z)}):_.Gx(Error("Dl"),"ERROR")})};
tkE=function(a,z,I,J){var r=_.w4.instance;r&&_.mf(r,I)?_.y7(r,I,J).then(function(P){return{data:P}}).then(function(P){CJe(a,z,I,P)},function(){N4M(I)}):(r=_.ab().resolve(_.eL(_.Tr)))&&r.requestDataForServiceEndpoint(I,J).then(function(P){CJe(a,z,I,P)},function(){N4M(I)})};
CJe=function(a,z,I,J){_.PA(z,"yt-service-request-completed",J);if(J.code&&J.code=="ERROR")N4M(I);else{(J=J.data.commands)&&_.tR(a,J,z);var r;(a=(r=_.H(I,_.H_I))==null?void 0:r.serializedYpcPauseFlowLoggingParams)&&a&&_.Yn("ypcPauseFlowSucceeded","serializedYpcPauseFlowLoggingParams",a)}};
N4M=function(a){var z;(a=(z=_.H(a,_.H_I))==null?void 0:z.serializedYpcPauseFlowLoggingParams)&&a&&_.Yn("ypcPauseFlowFailed","serializedYpcPauseFlowLoggingParams",a,void 0,"YPC_ERROR_REASON_INNERTUBE_RESPONSE_FAILURE")};
B4f=function(a,z,I){var J=_.w4.instance;J&&_.mf(J,I)?_.y7(J,I).then(function(r){return{data:r}}).then(function(r){uTe(a,z,I,r)},function(){EqM(I)}):(J=_.ab().resolve(_.eL(_.Tr)))&&J.requestDataForServiceEndpoint(I).then(function(r){uTe(a,z,I,r)},function(){EqM(I)})};
uTe=function(a,z,I,J){_.PA(z,"yt-service-request-completed",J);J.code&&J.code=="ERROR"?EqM(I):((J=J.data.commands)&&_.tR(a,J,z),(a=_.H(I,_.b_w).serializedYpcResumeFlowLoggingParams)&&a&&_.Yn("ypcResumeFlowSucceeded","serializedYpcResumeFlowLoggingParams",a))};
EqM=function(a){(a=_.H(a,_.b_w).serializedYpcResumeFlowLoggingParams)&&a&&_.Yn("ypcResumeFlowFailed","serializedYpcResumeFlowLoggingParams",a,void 0,"YPC_ERROR_REASON_INNERTUBE_RESPONSE_FAILURE")};
gq4=function(a){a=a===void 0?{}:a;_.ab().resolve(_.Jhf).showFeedbackDialog(a.customProductData,a.feedbackContent,a.onFeedbackSubmitted,a.bucket)};
OSG=function(a){a=a===void 0?{}:a;_.ab().resolve(_.Jhf).showHelpDialog(a.helpContext,a.articleId,a.productData)};
ft4=function(){OSG()};
Afz=function(){gq4()};
nqi=function(a,z,I){var J,r,P,N,u,E,O;return _.t(function(f){switch(f.nextAddress){case 1:J=_.H(a,s5f);if((r=J)==null?0:r.productId){E={productId:J.productId,bucket:J.bucket,enableAnonymousFeedback:(u=J.enableAnonymousFeedback)!=null?u:!0,allowNonLoggedInFeedback:!0};O={feedbackChoice:I.feedbackChoice};if(!_.K("web_collect_offline_state")){f.jumpTo(8);break}_.BP(f,9);return f.yield($$Z(O),11)}N={bucket:(P=J)==null?void 0:P.bucket};if(!_.K("web_collect_offline_state")){f.jumpTo(4);break}N.customProductData=
{};_.BP(f,5);return f.yield($$Z(N.customProductData),7);case 7:_.p1(f,4);break;case 5:_.sk(f);case 4:gq4(N);f.jumpTo(0);break;case 11:_.p1(f,8);break;case 9:_.sk(f);case 8:_.VV0(O),_.h8I("GFEEDBACK",O),J.productId==="5295751"&&(O.client_attestation=Number(_.Xw("CATSTAT",0))),J.productId==="5295751"&&(O.client_time=Date.now()/1E3/3600),J.productId==="5295751"&&(O.original_playback_id=_.ZA1||""),_.sci(E,O),_.nu(f)}})};
Kfi=function(a){if(a=_.H(a,_.VUd)){var z={bucket:a.bucketIdentifier};a.additionalDatas&&(z.customProductData={},a.additionalDatas.forEach(function(I){if(I=I.userFeedbackEndpointProductSpecificValueData)z.customProductData[I.key]=I.value}));
gq4(z)}};
FfZ=function(a){var z=_.w2.getInstance();var I=_.AR("DELETE_ALL_DOWNLOADS_PROMPT",void 0,"Delete all downloads?");var J=_.AR("DELETE",void 0,"Delete"),r=_.AR("CANCEL",void 0,"Cancel");I=ovZ(I,void 0,J,r,{signal:"DELETE_ALL_DOWNLOADS"});_.DN(z,[{openPopupAction:I}],a)};
bSz=function(){return _.t(function(a){return a.nextAddress==1?a.yield(_.ab().resolve(_.fj),2):a.yield(HSZ(),0)})};
hhY=function(a){var z,I;return _.t(function(J){return J.nextAddress==1?(I=(z=_.H(a,_.DR))==null?void 0:z.targetId)?J.yield(_.ab().resolve(_.fj),3):J.jumpTo(0):J.yield(_.ab().resolve(_.OU).deleteVideo(I),0)})};
Q5E=function(a){var z,I;return _.t(function(J){return J.nextAddress==1?(I=(z=_.H(a,_.DR))==null?void 0:z.targetId)?J.yield(_.ab().resolve(_.fj),3):J.jumpTo(0):J.yield(VkG(_.ab().resolve(_.OU),I),0)})};
iSe=function(a){var z,I;return _.t(function(J){return(I=(z=_.H(a,_.DR))==null?void 0:z.targetId)?J.yield(SWM(I),0):J.jumpTo(0)})};
vqZ=function(){_.K("kevlar_woffle_refresh_dl_load_killswitch")||xKE()};
$KZ=function(){_.K("kevlar_woffle")&&_.Gr.instance&&Gd4()};
T4Z=function(a){var z;if((z=_.H(a,_.fU))==null||!z.videoId)return!1;X8Z(_.ab().resolve(_.OU),_.H(a,_.fU),a.clickTrackingParams);return!0};
Wfz=function(a){var z;if((z=_.H(a,_.nU))==null||!z.playlistId)return!1;dKY(_.ab().resolve(_.OU),_.H(a,_.nU),a.clickTrackingParams);return!0};
UK0=function(a){var z=_.H(a,_.Cze);(z==null?void 0:z.settingItemId)!=="SMART_DOWNLOADS_ENABLED"&&(z==null?void 0:z.settingItemId)!=="SMART_DOWNLOADS_OPT_IN_BANNER_DISMISSED"||oqE(_.ab().resolve(_.OU),_.H(a,_.Cze))};
Rhi=function(a){a=_.H(a,_.Dbi);var z;(a==null?0:(z=a.actions)==null?0:z.length)&&DKV(a)};
p8G=function(a){var z,I;return _.t(function(J){z=_.H(a,Lf0);return(I=z)!=null&&I.localWatchHistoryCommandType?J.yield(ltY(z),0):J.return()})};
w8Z=function(a){setTimeout(function(){requestAnimationFrame(a)},80)};
mKi=function(a){return Object.entries(a).map(function(z){return z.join(":")}).join(";")};
kdf=function(a){var z,I,J;_.t(function(r){if(r.nextAddress==1)return r.yield(yfZ(),2);z=r.yieldResult;I=_.Og.instance;switch(z){case "granted":J=a.getLocationCommand;break;case "denied":J=a.openDeniedDialogAction;break;case "prompt":J=a.openCollectionDialogAction;break;default:J=a.openCollectionDialogAction}J&&I.resolveCommand(J);_.nu(r)})};
yfZ=function(){var a,z;return _.t(function(I){if(I.nextAddress==1)return a="prompt",navigator.permissions?I.yield(navigator.permissions.query({name:"geolocation"}),3):I.jumpTo(2);I.nextAddress!=2&&(z=I.yieldResult,a=z.state);return I.return(a)})};
cfZ=function(){_.t(function(a){return a.yield(_.Mki(),0)})};
YWZ=function(){var a,z,I;return _.t(function(J){if(J.nextAddress==1)return a=_.ab().resolve(_.dY),a?J.yield(_.y7(a,{signalServiceEndpoint:{signal:"GET_DATASYNC_IDS"}}),2):(_.Xd(Error("Gl")),J.return(void 0));if(z=J.yieldResult){if(z.errorMetadata)return _.Xd(Error("Hl`"+z.errorMetadata.status+"`"+z.error)),J.return(void 0);I=z.datasyncIds;_.ZG4=I.length;return J.return(I)}_.Xd(Error("Il"));return J.return(void 0)})};
qWf=function(){YWZ().then(function(a){a&&(jAz(a),btz(a),y$V(a),d$z(a))})};
eh0=function(a){_.GW.addLowPriorityJob(function(){var z,I,J,r,P;return _.t(function(N){switch(N.nextAddress){case 1:if(_.K("ytidb_clear_optimizations_killswitch")){N.jumpTo(2);break}z=_.n1("clear");if(z.startsWith("V")&&z.endsWith("||")){var u=[z];jAz(u);btz(u);y$V(u);d$z(u);return N.return()}I=kX4();J=W8E();return N.yield(hgz(),3);case 3:return r=N.yieldResult,N.yield(zFe(),4);case 4:if(P=N.yieldResult,!(I||J||r||P))return N.return();case 2:a.isNetworkAvailable()?qWf():a.listenOnce("publicytnetworkstatus-online",
qWf),_.nu(N)}})})};
K9=function(a){a={openPopupAction:{popupType:"TOAST",popup:{notificationActionRenderer:{responseText:_.Mo(a)}}}};_.Og.instance&&_.Og.instance.resolveCommand(a)};
acZ=function(a){if(a){var z=_.Kw();_.fJ(z,3854,void 0,{layer:0,parentLayer:4});switch(a){case 1:var I=238708;break;case 2:I=238715;break;case 3:I=238710;break;case 6:I=238709}I&&(a=_.nw(z,{veType:I}))&&_.nJ(z,a)}};
jKE=function(a){if(a){var z=_.Kw();_.fJ(z,3854,void 0,{layer:0,parentLayer:4});switch(a){case 1:var I=238714;break;case 2:I=238711;break;case 8:I=238709;break;case 7:I=238713;break;case 3:case 4:case 5:I=238712}I&&(a=_.nw(z,{veType:I}))&&_.nJ(z,a)}};
zpe=function(a){switch(a.latencyType){case 0:_.$A("consent_primitive_flow");_.Xz("cpit",a.timestampEpochMillis,"consent_primitive_flow");break;case 3:_.Xz("cpist",a.timestampEpochMillis,"consent_primitive_flow");break;case 5:_.Xz("cprtif",a.timestampEpochMillis,"consent_primitive_flow");break;case 4:_.Xz("cprtli",a.timestampEpochMillis,"consent_primitive_flow");break;case 6:_.Xz("cprt",a.timestampEpochMillis,"consent_primitive_flow");break;case 7:_.Xz("cpdt",a.timestampEpochMillis,"consent_primitive_flow");
break;case 8:_.Xz("cpjct",a.timestampEpochMillis,"consent_primitive_flow")}};
Eci=function(a,z){var I,J,r,P,N,u,E,O,f,A,n,F,h,v,d,W,l,q,m,M;return _.t(function(y){switch(y.nextAddress){case 1:_.BP(y,2);(J=(I=_.H(a,Ice))==null?void 0:I.serializedConsentRequest)||(J=(r=_.H(a,JEY))==null?void 0:r.serializedConsentRequest);J&&(P=rEz(_.cp(J)));if(P===void 0)return y.return();N=PqM(P);N.latencyCallback=zpe;z&&ZUE(N,function(){z.then(function(e){e.pauseVideo();(new CqM).increment()})});
return((u=_.H(a,Ice))==null?void 0:u.consentAction)==="CONSENT_ACTION_PREWARM"||((E=_.H(a,JEY))==null?void 0:E.consentAction)==="CONSENT_ACTION_PREWARM"?y.yield(Niz(N),5):y.yield(trZ(N),6);case 6:O=y.yieldResult;f=_.be(O,FH);if(f===1){if(((A=_.TL(O,Hm,1,FH))==null?void 0:_.GL(A,1))===1||((n=_.TL(O,Hm,1,FH))==null?void 0:_.GL(n,1))===2||((F=_.TL(O,Hm,1,FH))==null?void 0:_.GL(F,1))===3)_.H(a,JEY)?K9(_.AR("MMG_CONFIRMATION",{},"Your choices have been saved. You can change your choices anytime in your Google Account.")):
K9(_.AR("DMA_CONSENT_CONFIRMATION2",{},"Your choices have been saved. You can change your choices anytime in your Google Account."));acZ((h=_.TL(O,Hm,1,FH))==null?void 0:_.GL(h,1),_.af(O,uFZ,3,_.jW()))}else f===2?(((v=bV(O))==null?void 0:_.GL(v,1))===5?_.H(a,JEY)?K9(_.AR("MMG_CONSENT_RECORD_ERROR",{},"Something went wrong while loading")):K9(_.AR("DMA_CONSENT_RECORD_ERROR",{},"Something went wrong while loading")):((d=bV(O))==null?void 0:_.GL(d,1))===1||((W=bV(O))==null?void 0:_.GL(W,1))===4?K9(_.AR("DMA_CONSENT_GENERAL_ERROR",
{},"Something went wrong while loading")):((l=bV(O))==null?void 0:_.GL(l,1))===7&&((q=P)==null?void 0:(m=_.JC(q,hU,4))==null?void 0:_.GL(m,4))!==1&&K9(_.AR("DMA_CONSENT_GENERAL_ERROR",{},"Something went wrong while loading")),jKE((M=bV(O))==null?void 0:_.GL(M,1))):K9(_.AR("DMA_CONSENT_GENERAL_ERROR",{},"Something went wrong while loading"));y.jumpTo(5);break;case 5:_.p1(y,0);break;case 2:_.sk(y),K9(_.AR("DMA_CONSENT_GENERAL_ERROR",{},"Something went wrong while loading")),_.nu(y)}})};
gcZ=function(){if(!BiE.has("Worker")){BiE.set("Worker",!0);var a={api:"BROWSER_API_WEB_WORKER"};a.available="Worker"in window?!0:!1;_.x0("apiTest",a)}};
OUM=function(a){return typeof a==="undefined"?"-1":String(Math.ceil(a/1048576))};
ncV=function(a,z){fcZ(new AE0(_.H(z,sKe).addToken,_.H(z,sKe).commonToken)).then(function(){_.PA(a,"yt-invoke-instrument-manager-action-completed")},function(I){_.PA(a,"yt-invoke-instrument-manager-action-error",I)})};
KY0=function(){var a,z;return(z=(a=window).matchMedia)==null?void 0:z.call(a,"(prefers-reduced-motion: reduce)").matches};
FYZ=function(a){var z=_.ab().resolve(_.eL(_.bH));if(z&&z.isAnyTransitionEnabled){var I={};z.viewTransitionCoordinator.registerElement(a,(I.slide="miniplayer-page-transition",I["lockup-to-watch"]="miniplayer-page-transition",I["learning-journey"]="miniplayer-page-transition",I))}};
HUe=function(a,z,I){return{horizontalAlignment:a.x+I.width/2<z.width/2?"west":"east",verticalAlignment:a.y+I.height/2<z.height/2?"north":"south"}};
hpz=function(a,z,I,J,r){r=r===void 0?new _.GB(0,0):r;a=bUf(a,z,I,J);return new _.GB(a.x+r.x,a.y+r.y)};
bUf=function(a,z,I,J){return new _.GB(a==="west"?16:I.width-J.width-16,z==="north"?16:I.height-J.height-16)};
Vrz=function(a,z){var I=0;a&&(I+=76);z&&(I+=285);return I};
QK0=function(a){return _.Rs(a)};
SN0=function(a){var z=1;a=a.split(":");for(var I=[];z>0&&a.length;)I.push(a.shift()),z--;a.length&&I.push(a.join(":"));return I};
iUZ=function(a){var z=new _.tH;return _.dL(z,11,a)};
xhY=function(a){var z={};a=a.getAllResponseHeaders().split("\r\n");for(var I=0;I<a.length;I++)if(!_.NO(a[I])){var J=SN0(a[I]),r=J[0];J=J[1];if(typeof J==="string"){J=J.trim();var P=z[r]||[];z[r]=P;P.push(J)}}return _.x8.map(z,function(N){return N.join(", ")})};
$H=function(a,z){return a.JSC$9754_xhr_?a.JSC$9754_xhr_.getResponseHeader(z):null};
vcz=function(a,z){if(a.isDisposed())throw Error("Ea");a.v6.t6("n");var I=_.TV(a.v6,function(){return a.fV8([z.hD,z.iET,z.yIP,z.suC])},"n");
a.v6.w03(I.length);a.v6.mh();return I};
VJ=function(a,z,I){Array.isArray(I)||(I=[String(I)]);_.MJE(a.JSC$9989_queryData_,z,I);return a};
Gd4=function(){var a=_.Gr.instance;_.t(function(z){return a.deferredInstallPrompt?z.yield(a.deferredInstallPrompt.prompt(),0):z.jumpTo(0)})};
GIZ=function(a,z,I){if(_.lG(a))_.l1(a,z,I);else for(a=_.CaI(a);;){var J=a.next();if(J.done)break;z.call(I,J.value,void 0,a)}};
$hM={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}"]};
$hM={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 XnZ=function(a,z){var I=[];GIZ(z,function(J){try{var r=_.CL.prototype.getWrapper.call(this,J,!0)}catch(P){if(P=="Storage: Invalid value was encountered")return;throw P;}r===void 0?I.push(J):_.Z6i(r)&&I.push(J)},a);
return I},TiZ=function(a,z){XnZ(a,z).forEach(function(I){_.CL.prototype.remove.call(this,I)},a)},dh4=function(a){var z=_.y_;
z._minimumZ=Math.max(z._minimumZ,a)},WYM=["www.youtube-nocookie.com",
"www.youtubeeducation.com","youtube.googleapis.com"],ocf=function(a,z){_.Y8(a.vm);a.vm=z},UhV=function(a,z,I,J){a.setState(5);
var r=!!a.lrs&&WYM.includes(_.MY(a.lrs)||"");try{var P=new _.dZ({program:z,globalName:I,tys:{disable:!_.K("att_web_record_metrics")||!_.K("att_skip_metrics_for_cookieless_domains_ks")&&r,a3:"aGIf"}});P.h8I.then(function(){a.setState(6);J&&J(z)});
ocf(a,P)}catch(N){a.setState(7),N instanceof Error&&_.Xd(N)}},Dh0=function(a,z,I,J,r,P){var N=N===void 0?"trayride":N;
I?(a.setState(2),_.LL(_.h7(I),function(){if(window[N])UhV(a,J,N,r);else{a.setState(3);var u=_.Mvd(I),E=document.getElementById(u);E&&(_.qgm(u),E.parentNode.removeChild(E));_.Xd(new _.Fn("BL:ULB",I))}},P)):z?(P=_.OS("SCRIPT"),z instanceof _.yI?_.ML(P,z):P.textContent=z,P.nonce=_.m9(document),document.head.appendChild(P),document.head.removeChild(P),window[N]?UhV(a,J,N,r):(a.setState(4),_.Xd(new _.Fn("BL:ULBJ")))):_.Xd(new _.Fn("BL:ULV"))},Rpf=function(){this.state=1;
this.vm=null;this.lrs=void 0};
_.Z=Rpf.prototype;_.Z.initialize=function(a,z,I,J){this.lrs=J;if(a.program){var r;J=(r=a.interpreterUrl)!=null?r:null;if(a.interpreterSafeScript)r=_.KZm(a.interpreterSafeScript);else{var P;r=(P=a.interpreterScript)!=null?P:null}a.interpreterSafeUrl&&(J=_.$k(a.interpreterSafeUrl).toString());Dh0(this,r,J,a.program,z,I)}else _.Xd(Error("jf"))};
_.Z.isInitialized=function(){return!!this.vm};
_.Z.getState=function(){return this.state};
_.Z.isLoading=function(){return this.state===2};
_.Z.invoke=function(a){a=a===void 0?{}:a;var z;this.vm?z=vcz(this.vm,{hD:a}):z=null;return z};
_.Z.dispose=function(){ocf(this,null);this.setState(8)};
_.Z.setState=function(a){this.state=a};
var LYZ=function(a,z){return a.vm.snapshot(z)},lcE=function(a,z){var I=_.Ib("botguard_async_snapshot_timeout_ms",3E3);
z=z===void 0?{}:z;I=I===void 0?3E3:I;return a.vm?new Promise(function(J,r){var P=!1,N=_.GW.addJob(function(){P=!0;r(Error("kf"))},1,I);
a.vm?LYZ(a,{hD:z}).then(function(u){_.GW.cancelJob(N);P||J(u)}).catch(function(u){_.GW.cancelJob(N);
P||r(u)}):(_.GW.cancelJob(N),J(null))}):Promise.resolve(null)},pn0=["att/log"],GQY;
GQY={searchEndpoint:{},commandMetadata:{webCommandMetadata:{url:"/results?search_query=",rootVe:4724,webPageType:"WEB_PAGE_TYPE_SEARCH"}}};var wnZ={signalServiceEndpoint:{signal:"LOAD_GUIDE"}},mhG=function(a,z){return _.n5(a,{mode:"readwrite",enableRetries:!0},function(I){return _.iQ7(I,z,"settingEntity")})},yEZ=function(a,z,I){return _.n5(a,{mode:"readonly",
enableRetries:!0},function(J){return _.wIj(J,z,I)})},kIZ=function(a){if(!a.storage)return!1;
a:{if(a.storage){try{var z=a.storage.get("TLPQtimestamp")}catch(I){}a=Number(z);if(!isNaN(a))break a}a=void 0}return a?Date.now()-a<864E5:!1},Mr0=function(a){if(a.storage){try{var z=a.storage.get("TLPQindex")}catch(I){}a=Number(z);
if(!isNaN(a))return a}},cEE=function(a,z){a.queueProxy&&z.forEach(function(I){if(I.videoId&&I.trackingParams&&a.queueProxy instanceof _.LJ){var J=_.TX();
a.queueProxy.attributionData.set(I.videoId,{enqueueingVe:_.VX(I.trackingParams).getAsJson(),enqueueingCsn:J?J:void 0,clientEnqueueingTimeMs:Math.floor((0,_.jp)()).toString()})}})},YN4=function(a){var z=_.V0I(a);
z!=a.currentSnapState_&&(a.currentSnapState_=z,a.actionRouter_.triggerOptionalAction("ytd-update-grid-state-action"))},QJ=function(a){this.JSC$13058_networkManager_=a;
this.partCallbacks_=[]};
QJ.prototype.getCacheKeyForEndpoint=function(a){return _.BPd(a,!1)};
QJ.prototype.onPartsCallback_=function(a){this.partCallbacks_.forEach(function(z){a&&z(a)})};
var SZ=function(a,z,I){QJ.call(this,a);this.player_=z;this.autoplayData_=I};
_.b(SZ,QJ);SZ.prototype.getCacheKeyForEndpoint=function(a){return _.BPd(a,!!this.autoplayData_)};
SZ.prototype.getTempData=function(a,z){z=z.timeBeforeNextVideo;a={itct:a.clickTrackingParams,lact:_.IO(),pbis:z,prefetch_reason:"hc_pbis",vis:this.player_.getVisibilityState()};this.autoplayData_&&(a.autonav=1);return a};
SZ.prototype.getXhrParams=function(a){return Object.assign({pbj:"prefetch"},a)};
SZ.prototype.getParams=function(a){a={frags:a.fragmentsRequested.join(",")};_.K("kevlar_droppable_prefetchable_requests")&&(a.prefetch=1);return a};
var qN4=function(a){a.playerEvents_.forEach(function(z){a.player.removeEventListener(z.eventName,z.callback)});
a.playerEvents_.length=0},iV=function(a,z,I){this.player=a;
this.JSC$13068_taskManager=z;this.prefetchDelay=I;this.completionResolver_=null;this.playerEvents_=[]};
iV.prototype.start=function(){var a=this;this.completionResolver_=_.kq();_.QD(this.completionResolver_.promise,function(){qN4(a);a.completionResolver_=null});
this.prepareTrigger(this.completionResolver_);return this.completionResolver_.promise};
var ep4=function(a,z,I){a.player.addEventListener(z,I);a.playerEvents_.push({eventName:z,callback:I})},akE={watch:{pageFragments:["pl",
"wn"],prefetchedFragments:["pl"]},shorts:{pageFragments:["pl","riw"],prefetchedFragments:["pl"]}},jd0={pl:{requiredKeys:["playerResponse"],graftedKeys:["playerResponse"]},wn:{requiredKeys:["response"],graftedKeys:["response"]}},zkf=function(a,z,I){iV.call(this,a,z,I);this.cueId_="playbackTrigger-"+Math.random()};
_.b(zkf,iV);
zkf.prototype.prepareTrigger=function(a){var z=this,I=this.player.getDuration(),J=this.player.getVideoData(),r=J.isLive&&J.hasProgressBarBoundaries;if(r&&J.progressBarEndPositionUtcTimeMillis){var P=J.progressBarEndPositionUtcTimeMillis/1E3;isNaN(P)||(I=P)}var N=0;this.prefetchDelay>=0?r?J.progressBarStartPositionUtcTimeMillis&&(J=J.progressBarStartPositionUtcTimeMillis/1E3,isNaN(J)||(N=J+this.prefetchDelay)):N=this.prefetchDelay:N=I+this.prefetchDelay;r?this.player.addUtcCueRange(this.cueId_,N,I):
this.player.addCueRange(this.cueId_,N,I);_.QD(a.promise,function(){z.player.removeCueRange(z.cueId_)});
ep4(this,"onCueRangeEnter",function(u){u==z.cueId_&&a.resolve(I-N)})};
var IkZ=function(a,z){a.fragmentConfiguration_[z].requiredKeys.every(function(I){return!!a.prefetchedData_[I]})&&(a.validatedFragments_.push(z),z=a.missingFragments_.indexOf(z),z!==-1&&a.missingFragments_.splice(z,1))},JQE=function(a){a.prefetchedFragments_.forEach(function(z){IkZ(a,z)})},rQf=function(a,z,I){this.pageFragments_=a;
this.prefetchedFragments_=z;this.fragmentConfiguration_=jd0;this.prefetchedData_=I;this.validatedFragments_=[];this.missingFragments_=this.pageFragments_.slice();this.mergedPrefetchedData_=null;JQE(this)},Pmf=function(){},ZcE=function(a){this.JSC$13082_playlistManager_=a};
_.b(ZcE,Pmf);ZcE.prototype.getPrefetchEndpoint=function(){return this.JSC$13082_playlistManager_.getAutoplayEndpoint()};
var Cm0=function(a){this.autonavEndpoints_=a};
_.b(Cm0,Pmf);Cm0.prototype.getPrefetchEndpoint=function(){return this.autonavEndpoints_.length?this.autonavEndpoints_[0]:void 0};
var NsY=function(a,z,I,J,r){this.autonavEndpoints=a;this.foregroundTrigger=z;this.backgroundTrigger=I;this.pageType=J;this.isInPlaylist=r},t8M=function(a,z){if(a.webPrefetchData&&a.webPrefetchData.navigationEndpoints&&a.webPrefetchData.navigationEndpoints.length){a=a.webPrefetchData.navigationEndpoints;
var I=_.H(a[0],_.MZ);if(I.watchEndpointSupportedPrefetchConfig&&I.watchEndpointSupportedPrefetchConfig.prefetchHintConfig){var J=I.watchEndpointSupportedPrefetchConfig.prefetchHintConfig;I=J.playbackRelativeSecondsPrefetchCondition;I=typeof I==="number"&&Math.abs(I)<z.videoDuration?I:void 0;J=J.countdownUiRelativeSecondsPrefetchCondition;J=typeof J!=="number"||_.K("prefetch_job_config_cleanup_ks")&&z.inPlaylist?void 0:J;if(typeof J==="number")return new NsY(a,z.makeUpNextTrigger(J),z.makePlaybackTrigger(J),
"watch",z.inPlaylist);if(typeof I==="number")return new NsY(a,z.makePlaybackTrigger(I),null,"watch",z.inPlaylist)}}},uKe=function(a){return a.prefetchJobConfig_.backgroundTrigger?_.Ue(_.mg0)()==0?a.prefetchJobConfig_.backgroundTrigger:a.prefetchJobConfig_.foregroundTrigger:a.prefetchJobConfig_.foregroundTrigger},Es4=function(a){_.FU(document,"visibilitychange",a.onVisibilityChange_,!1,a)},x9=function(a){QJ.call(this,a)};
_.b(x9,QJ);x9.prototype.getCacheKeyForEndpoint=function(a){return QJ.prototype.getCacheKeyForEndpoint.call(this,a)};
x9.prototype.getTempData=function(){return{}};
x9.prototype.getXhrParams=function(a){return a};
x9.prototype.getParams=function(){return{}};
var BsZ=function(a,z,I){var J=a.prefetchDelay*1E3;if(Math.abs(J)>z)I.promise.cancel("Not enough time to prefetch, cancelling prefetch job");else{var r=J,P=z-J;J<0&&(r=z+J,P=Math.abs(J));var N=a.JSC$13068_taskManager.addJob(function(){I.resolve(P/1E3)},10,r);
I.promise.thenCatch(function(){a.JSC$13068_taskManager.cancelJob(N)})}},gsz=function(a,z,I){iV.call(this,a,z,I)};
_.b(gsz,iV);gsz.prototype.prepareTrigger=function(a){var z=this;ep4(this,"onAutonavCoundownStarted",function(I){BsZ(z,I,a)})};
var OcY=function(a){a.pendingPrefetchJob_&&(a.pendingPrefetchJob_.cancel(),a.pendingPrefetchJob_=null)},fkG=function(a,z,I){if(!a.triggeredTargets.has(z)){var J=_.n$v(a,z);
J.action=I;_.A5w(a,z,J)}},AQe=function(a){_.rdf();
_.PYM("cpt")&&_.Xd(Error("kh"));_.IE.requestAnimationFrame(function(){_.IE.setTimeout(function(){_.Xz("cpt");var z=_.WA("vpl"),I=_.WA("cpt");z&&I&&_.Xz("ol",Math.max(z,I))})});
try{_.Xz("fr_s"),a()}catch(z){_.Gx(z)}_.IE.requestAnimationFrame(function(){_.Xz("bcp")})},sde=function(a,z){a.serviceEndpointHandlers.push(z)},nsY=function(a,z){z=a.pendingPages_.indexOf(z);
z>-1&&a.pendingPages_.splice(z,1)},KyE=function(a,z){var I=_.xtv.indexOf(z);
I>-1&&_.xtv.splice(I,1);a.targetPage_==z?(a.abort(),_.GTX(a)):nsY(a,z)},FyM=function(a,z,I,J){z={challenge:z};
I&&(z.webResponse=I);return _.pJ(a.innertubeTransportService,z,_.ex(pn0),J)},HcZ=function(a,z,I){if(!z.challenge)throw Error("ni");
if(z.botguardData&&z.botguardData.program){var J=new Rpf;J.initialize(z.botguardData,function(){lcE(J,{atr_challenge:z.challenge}).then(function(r){if(!r)throw Error("oi");return FyM(a,z.challenge,r,I)}).catch(function(r){_.Xd(r);
return FyM(a,z.challenge,void 0,I)})},void 0)}else FyM(a,z.challenge,void 0,I)},bcz=function(a,z,I){var J={};
z.ids&&(J.ids=[].concat(_.ih(z.ids)));z.engagementType&&(J.engagementType=z.engagementType);return _.pJ(a.innertubeTransportService,J,_.ex(_.Cfj),I).then(function(r){if(!r)throw new _.Fn("GetAttestationChallenge returned falsy");HcZ(a,r,I)}).thenCatch(function(r){_.Gx(r)})},hkZ=function(a,z,I){return new _.Ba(function(J,r){var P;
return _.t(function(N){if(N.nextAddress==1){var u=N.yield,E=z.engagementType,O=z.ids,f={};O=_.C(O!=null?O:[]);for(var A=O.next();!A.done;A=O.next())A=A.value,A.encryptedVideoId?f.encryptedVideoId=A.encryptedVideoId:A.externalChannelId?f.externalChannelId=A.externalChannelId:A.commentId?f.commentId=A.commentId:A.externalOwnerId?f.externalOwnerId=A.externalOwnerId:A.artistId?f.artistId=A.artistId:A.playlistId?f.playlistId=A.playlistId:A.externalPostId?f.externalPostId=A.externalPostId:A.shareId&&(f.shareId=
A.shareId);return u.call(N,WkZ(E,f),2)}P=N.yieldResult;if(!P.challenge)return _.Xd(Error("pi")),bcz(a,z,I).then(J,r),N.return();u=P;E={challenge:u.challenge};E.webResponse=u.webResponse;E.engagementType=z.engagementType;E.ids=z.ids;_.pJ(a.innertubeTransportService,E,_.ex(pn0),I).then(J,r);_.nu(N)})})},wKV=function(a,z){var I,J,r,P;
_.t(function(N){if(N.nextAddress==1){I=_.H(z,_.wVe);if(!(I&&I.listId&&a.response&&a.response.playingVideoId)||a.listId!==I.listId)return N.return();a.index===void 0&&(a.index=0);return N.yield(_.Suw(a.JSC$12813_playlistNetworkManager,I.listId,a.index,a.response.playingVideoId),2)}J=N.yieldResult;if(!J)return N.return();r=J.playlistId;P=J.playlistPanelRenderer;a.setPlaylistData(r,P,J.autoplayRenderer);_.nu(N)})},V8z=function(a,z,I){var J=a.getParams(I),r=_.xh3(z,J),P=a.getTempData(z,I);
P.endpoint=JSON.stringify(z);_.K("enable_unknown_lact_fix_on_html5")&&(_.ab().resolve(_.V7),P.lact=_.IO());var N={headers:{"X-YouTube-STS":_.Xw("STS"),"x-youtube-csoc":1}};_.el(r,P);return new _.Ba(function(u,E){var O=a.getXhrParams(J),f;_.K("kevlar_cache_on_ttl_player")&&(f=_.ir.instance);f&&_.cLE(f,z)?_.J5J(f,z,P,window.location.href).then(function(A){A?u(A):E()},E):_.VAX(a.JSC$13058_networkManager_,z,O,a.onPartsCallback_.bind(a),N).then(function(A){A?u(A):E()},E)})},Qdz=function(a,z){a.triggerPromise_=
z.start();
a.triggerPromise_.then(function(I){var J=a.prefetchEndpointProvider_.getPrefetchEndpoint();if(J){var r=akE[a.prefetchJobConfig_.pageType].prefetchedFragments;a.prefetchRequestPromise_=V8z(a.JSC$13094_networkPrefetchRequest_,J,{fragmentsRequested:r,timeBeforeNextVideo:I});a.prefetchResponseCacheKey_=a.JSC$13094_networkPrefetchRequest_.getCacheKeyForEndpoint(J);Es4(a);a.prefetchRequestPromise_.then(function(P){a.storePrefetchedDataCallback_(a.prefetchResponseCacheKey_,P);if(_.K("web_prefetch_preload_video")&&
r.length===1&&r[0]==="pl"&&P&&!P.playerAds&&!P.adPlacements){var N=_.H(J,_.hv),u=N!=null,E={raw_player_response:P,watch_endpoint:N};(P=_.ab().resolve(u?_.NW1:_.Zc))&&J&&P.then(function(O){u&&_.K("web_queue_preload_video")?(E.prefer_gapless=!0,O.queueNextVideo(E)):O.preloadVideoByPlayerVars(E)})}})}})},GC=function(a,z,I,J){this.prefetchEndpointProvider_=a;
this.prefetchRequestPromise_=this.triggerPromise_=null;this.storePrefetchedDataCallback_=z;this.prefetchJobConfig_=I;this.JSC$13094_networkPrefetchRequest_=J;this.prefetchResponseCacheKey_=null};
GC.prototype.enqueue=function(){this.triggerPromise_||(Qdz(this,uKe(this)),_.Sg(document,"visibilitychange",this.onVisibilityChange_,!1,this))};
GC.prototype.resolve=function(){this.cancel()};
GC.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.");Es4(this)};
GC.prototype.onVisibilityChange_=function(){var a=this;_.Ue(_.mg0)()==0?this.triggerPromise_&&(this.triggerPromise_.thenCatch(function(){a.triggerPromise_=null}),this.triggerPromise_.cancel("Visibility changed to background, trigger promise cancelled.")):this.triggerPromise_||Qdz(this,uKe(this))};
var S1i=function(a,z,I,J,r){z&&(z==null?0:z.videoId)&&I&&I.entries&&_.K("kevlar_enable_shorts_prefetch_in_sequence")&&(OcY(a),z=I.entries.map(function(P){var N;return(N=_.H(P.command,_.hv))==null?void 0:N.videoId}).indexOf(z.videoId),I=I.entries[z+1],I!=null&&I.command&&!_.H(I==null?void 0:I.command,_.Ry)&&(J=new NsY([I.command],new zkf(J,_.GW,1),null,"shorts",!1),a.pendingPrefetchJob_=new GC(new Cm0(J.autonavEndpoints),function(){return!1},J,new x9(r)),a.pendingPrefetchJob_.enqueue()))},icE=function(a,
z,I,J,r,P){var N=_.PS.getInstance();
if(!_.K("block_all_player_prefetch_requests")){OcY(a);var u=!!I.getPlaylistId(),E=I.getVideoData().isLive&&I.getVideoData().hasProgressBarBoundaries;if((N.getState()==2||u||E)&&(!I.getVideoData().isLive||E)){N={inPlaylist:u,videoDuration:I.getDuration(),makeUpNextTrigger:function(f){return new gsz(I,_.GW,f)},
makePlaybackTrigger:function(f){return new zkf(I,_.GW,f)}};
var O=t8M(z,N);O&&(a.pendingPrefetchJob_=new GC(O.isInPlaylist?new ZcE(r):new Cm0(O.autonavEndpoints),function(f,A){A=new rQf(akE[O.pageType].pageFragments,akE[O.pageType].prefetchedFragments,A);return _.Cvw(A)?(a.prefetchCache_.set(f,A),!0):!1},O,new SZ(J,I,P,r)),a.pendingPrefetchJob_.enqueue())}}},xAe=function(){var a=_.cS();
a.signals.parkOrScheduleJob(function(){var z=a.storage;if(z.storage)if(kIZ(z)){var I=z.getPlaylistId();z=Mr0(z);I=!!I&&z!==void 0}else z.clear(),I=!1;else I=!1;if(I){I=a.pageManager.isOnWatch();a:{var J=a.storage;if(J.storage&&kIZ(J)&&(z=J.getPlaylistId(),J=Mr0(J),z&&J!==void 0)){I={recoverPlaylistCommand:{listId:z,index:J,openMiniplayer:!I,openListPanel:I,listType:"PLAYLIST_EDIT_LIST_TYPE_QUEUE"}};break a}I=void 0}I&&_.DN(a.JSC$12813_actionRouter,[I],null)}},0,"ma")},vsV=function(a,z,I,J,r,P){var N=
_.uq(7111);
_.Aq(a.JSC$18199_screenManager,N,P?_.VX(P):void 0);_.nJ(a.JSC$18199_screenManager,N,{offlineabilityData:{offlineModeType:"OFFLINE_NOW",offlineObjectType:J,offlineId:z,offlineabilityFormatType:I,isDefaultFormatType:r==="DOWNLOAD_QUALITY_SETTINGS_ACTION_ALREADY_SAVED",downloadQualitySettingsAction:r}})},G0V=function(a,z,I,J,r){var P,N,u,E,O;
return _.t(function(f){if(f.nextAddress==1)return f.yield(a.JSC$18199_playerApiPromise,2);P=f.yieldResult;vsV(a,z,I,"OFFLINE_OBJECT_TYPE_PLAYLIST",J,r);if(u=_.qj1[a.entityTypeMap.listEntityType])O={},N=(O[u]={maximumDownloadQuality:(E=I)!=null?E:void 0},O);return f.yield(P.queueOfflineAction(z,a.entityTypeMap.listEntityType,"OFFLINE_ORCHESTRATION_ACTION_TYPE_ADD",N),0)})},$AZ=function(a,z){var I,J,r,P;
return _.t(function(N){if(N.nextAddress==1)return N.yield(a.JSC$18199_persistentStorePromiseAccessor(),2);if(N.nextAddress!=3){I=N.yieldResult;if(!I)return _.Xd(new _.Fn("PES is undefined")),N.return();J=_.Er(z,"downloadStatusEntity");return N.yield(yEZ(I,J,"downloadStatusEntity"),3)}r=N.yieldResult;return N.return((P=r)==null?void 0:P.downloadState)})},X0Z=function(a,z,I,J,r){var P,N,u,E,O,f;
return _.t(function(A){switch(A.nextAddress){case 1:return A.yield(a.JSC$18199_playerApiPromise,2);case 2:P=A.yieldResult;vsV(a,z,I,"OFFLINE_OBJECT_TYPE_VIDEO",J,r);if(u=_.qj1[a.entityTypeMap.singleEntityType])O={},N=(O[u]={maximumDownloadQuality:(E=I)!=null?E:void 0},O);return A.yield($AZ(a,z),3);case 3:f=A.yieldResult;if(f!=="DOWNLOAD_STATE_USER_DELETED"){A.jumpTo(4);break}return A.yield(a.deleteVideo(z),4);case 4:return A.yield(P.queueOfflineAction(z,a.entityTypeMap.singleEntityType,"OFFLINE_ORCHESTRATION_ACTION_TYPE_ADD",
N),0)}})},TsZ=function(a,z,I,J,r){return _.t(function(P){return P.nextAddress==1?P.yield(a.deleteVideo(z,"OFFLINE_DELETE_REASON_FAILED_VIDEO_RETRY"),2):P.yield(X0Z(a,z,I,J,r),0)})},dAM=function(a,z,I){var J,r;
return _.t(function(P){if(P.nextAddress==1)return P.yield(a.JSC$18199_playerApiPromise,2);J=P.yieldResult;r=_.Er(z,"mainVideoDownloadStateEntity");return P.yield(J.updateDownloadState(r,I),0)})},SWM=function(a){var z=_.ab().resolve(_.OU);
return _.t(function(I){if(I.nextAddress==1)return z.previousDownloadStateForVideo[a]!=="DOWNLOAD_STATE_DOWNLOAD_IN_PROGRESS"&&z.previousDownloadStateForVideo[a]!=="DOWNLOAD_STATE_PENDING_DOWNLOAD"?I.jumpTo(2):I.yield(z.resumeVideoDownload(a),2);if(I.nextAddress!=4)return I.yield(dAM(z,a,z.previousDownloadStateForVideo[a]),4);delete z.previousDownloadStateForVideo[a];_.nu(I)})},VkG=function(a,z){var I;
return _.t(function(J){if(J.nextAddress==1)return J.yield(a.JSC$18199_playerApiPromise,2);I=J.yieldResult;return J.yield(I.queueOfflineAction(z,a.entityTypeMap.listEntityType,"OFFLINE_ORCHESTRATION_ACTION_TYPE_DELETE"),0)})},HSZ=function(){var a=_.ab().resolve(_.OU),z,I;
return _.t(function(J){if(J.nextAddress==1)return J.yield(a.JSC$18199_playerApiPromise,2);if(J.nextAddress!=3)return z=J.yieldResult,I={offlineLoggingData:{offlineDeleteReason:"OFFLINE_DELETE_REASON_SETTINGS_DELETE_ALL"}},J.yield(z.queueOfflineAction("!*$_ALL_ENTITIES_!*$",a.entityTypeMap.singleEntityType,"OFFLINE_ORCHESTRATION_ACTION_TYPE_DELETE",I),3);var r=a.JSC$18199_commandHandler,P=r.resolveCommand,N=_.AR("DELETING_ALL",void 0,"Downloads are being deleted");P.call(r,{openPopupAction:{popup:{notificationActionRenderer:{responseText:_.zg(N)}},
popupType:"TOAST"}});_.nu(J)})},WyV=function(a,z){var I,J,r,P,N,u;
return _.t(function(E){if(E.nextAddress==1)return E.yield(a.JSC$18199_persistentStorePromiseAccessor(),2);if(E.nextAddress!=3)return I=E.yieldResult,I?E.yield(yEZ(I,_.i8,"downloadsPageViewConfigurationEntity"),3):(_.Xd(new _.Fn("PES is undefined")),E.return());r=(J=E.yieldResult)!=null?J:{};u=(N=(P=r)==null?void 0:P.downloadsUpsellBannerVisibility)!=null?N:{};return u.visibleWithConnection?E.yield(z.refreshAllStaleEntities(0),0):E.jumpTo(0)})},ose=function(a){var z,I;
return _.t(function(J){if(J.nextAddress==1)return J.yield(a.JSC$18199_prefStorage,2);z=J.yieldResult;return J.return((I=z)==null?void 0:I.get("sdois"))})},UAM=function(a){var z,I,J,r,P,N;
return _.t(function(u){if(u.nextAddress==1)return u.yield(a.JSC$18199_persistentStorePromiseAccessor(),2);if(u.nextAddress!=3){z=u.yieldResult;if(!z)return _.Xd(new _.Fn("PES is undefined")),u.return();I=_.Er("SMART_DOWNLOADS_OPT_IN_BANNER_DISMISSED","settingEntity");return u.yield(yEZ(z,I,"settingEntity"),3)}J=u.yieldResult;return u.return((N=(r=J)==null?void 0:(P=r.settingOptionValue)==null?void 0:P.boolValue)!=null?N:!1)})},DAE=function(a,z){var I,J,r,P;
return _.t(function(N){switch(N.nextAddress){case 1:return((I=z)==null?void 0:I.formatType)===void 0?N.return():N.yield(a.JSC$18199_prefStorage,2);case 2:J=N.yieldResult;if(J===void 0)return N.return();if(((r=z)==null?void 0:r.settingsAction)==="DOWNLOAD_QUALITY_SETTINGS_ACTION_SAVE")return N.yield(J.set("lmqf",z.formatType),8);if(((P=z)==null?void 0:P.settingsAction)!=="DOWNLOAD_QUALITY_SETTINGS_ACTION_EXPIRING_SAVE"){N.jumpTo(0);break}return N.yield(J.set("lmqf",z.formatType),6);case 6:return N.yield(J.set("lmqflst",
Math.floor((0,_.jp)())),0);case 8:return N.yield(J.remove("lmqflst"),0)}})},Rk4=function(a){var z,I;
return _.t(function(J){switch(J.nextAddress){case 1:return J.yield(a.JSC$18199_prefStorage,2);case 2:z=J.yieldResult;if(!z){J.jumpTo(3);break}return J.yield(z.get("lmqflst"),4);case 4:if(I=J.yieldResult,I!==void 0)return J.return(I);case 3:return J.return(0)}})},Lye=function(a){var z,I;
return _.t(function(J){switch(J.nextAddress){case 1:return J.yield(a.JSC$18199_prefStorage,2);case 2:z=J.yieldResult;if(z===void 0){J.jumpTo(3);break}return J.yield(z.get("lmqf"),4);case 4:if(I=J.yieldResult,I!==void 0)return J.return(I);case 3:return J.return("SD")}})},dKY=function(a,z,I){var J,r,P,N,u,E,O,f;
_.t(function(A){switch(A.nextAddress){case 1:return A.yield(DAE(a,(J=z)==null?void 0:J.actionParams),2);case 2:r=z.playlistId;if(!r)return A.return();if(z.action==="ACTION_ADD")return((N=z.actionParams)==null?0:N.formatType)?A.yield(G0V(a,r,z.actionParams.formatType,(f=z.actionParams)==null?void 0:f.settingsAction,I),0):A.yield(a.offlineWebClientEligibility,14);if(z.action==="ACTION_REMOVE_WITH_PROMPT"){var n=a.JSC$18199_commandHandler,F=n.resolveCommand,h=_.Xw("INNERTUBE_CLIENT_NAME");var v=h===
"WEB_REMIX"?_.AR("REMOVE_DOWNLOAD_QUESTION",void 0,"Remove download?"):_.AR("DELETE_FROM_DOWNLOADS",void 0,"Remove from downloads");var d=h==="WEB_REMIX"?[_.AR("REMOVE_DOWNLOAD_CONFIRMATION",void 0,"Items you remove will no longer play without an internet connection.")]:[];h=h==="WEB_REMIX"?_.AR("REMOVE_DOWNLOAD_BUTTON",void 0,"Remove"):_.AR("DELETE",void 0,"Delete");var W=_.AR("CANCEL",void 0,"Cancel");v=ovZ(v,d,h,W,{signal:"DELETE_PLAYLIST_DOWNLOAD",targetId:r});F.call(n,{openPopupAction:v});return A.return()}if(z.action===
"ACTION_REMOVE")return A.yield(VkG(a,r),0);if(z.action!=="ACTION_SYNC"){A.jumpTo(0);break}return A.yield(a.JSC$18199_playerApiPromise,9);case 9:return P=A.yieldResult,A.yield(P.queueOfflineAction(r,a.entityTypeMap.listEntityType,"OFFLINE_ORCHESTRATION_ACTION_TYPE_REFRESH"),0);case 14:return u=A.yieldResult,A.yield(Lye(a),15);case 15:return E=A.yieldResult,A.yield(Rk4(a),16);case 16:O=A.yieldResult,z.onAddCommand&&a.JSC$18199_commandHandler.resolveCommand(z.onAddCommand,{form:{preferredFormatType:E,
offlineWebClientEligibility:u,lastOfflineQualitySettingsSavedMs:O.toString()}}),A.jumpTo(0)}})},X8Z=function(a,z,I){var J,r,P,N,u,E,O,f,A,n,F,h,v,d;
_.t(function(W){switch(W.nextAddress){case 1:return W.yield(DAE(a,(J=z)==null?void 0:J.actionParams),2);case 2:r=z.videoId;if(!r)return W.return();if(z.action==="ACTION_REMOVE_WITH_PROMPT"){var l=a.JSC$18199_commandHandler,q=l.resolveCommand,m=_.Xw("INNERTUBE_CLIENT_NAME");var M=m==="WEB_REMIX"?_.AR("REMOVE_DOWNLOAD_QUESTION",void 0,"Remove download?"):_.AR("DELETE_FROM_DOWNLOADS",void 0,"Remove from downloads");var y=m==="WEB_REMIX"?[_.AR("REMOVE_DOWNLOAD_CONFIRMATION_TRACK_OFFLINE",void 0,"This track won't be available to listen offline.")]:
[];m=m==="WEB_REMIX"?_.AR("REMOVE_DOWNLOAD_BUTTON",void 0,"Remove"):_.AR("DELETE",void 0,"Delete");var e=_.AR("CANCEL",void 0,"Cancel");M=ovZ(M,y,m,e,{signal:"DELETE_DOWNLOAD",targetId:r});q.call(l,{openPopupAction:M});return W.return()}if(z.action==="ACTION_ADD")return((n=z.actionParams)==null?0:n.formatType)?W.yield(X0Z(a,r,z.actionParams.formatType,(d=z.actionParams)==null?void 0:d.settingsAction,I),0):W.yield(a.offlineWebClientEligibility,23);if(z.action==="ACTION_RETRY")return W.yield(Lye(a),
19);if(z.action==="ACTION_PAUSE")return W.yield(a.pauseVideoDownload(r),0);if(z.action==="ACTION_RESUME")return W.yield(a.resumeVideoDownload(r),0);if(z.action!=="ACTION_REMOVE"){W.jumpTo(0);break}return W.yield($AZ(a,r),13);case 13:return P=W.yieldResult,a.previousDownloadStateForVideo[r]=(N=P)!=null?N:"DOWNLOAD_STATE_UNKNOWN",W.yield(dAM(a,r,"DOWNLOAD_STATE_USER_DELETED"),14);case 14:if(a.previousDownloadStateForVideo[r]!=="DOWNLOAD_STATE_DOWNLOAD_IN_PROGRESS"&&a.previousDownloadStateForVideo[r]!==
"DOWNLOAD_STATE_PENDING_DOWNLOAD"){W.jumpTo(15);break}return W.yield(a.pauseVideoDownload(r),15);case 15:l=_.AR("DELETED_VIDEO",void 0,"Video deleted from downloads.");q=_.AR("UNDO_ACTION",void 0,"Undo");M=_.AR("CLOSE",void 0,"Close");u={openPopupAction:{popup:{notificationActionRenderer:{responseText:_.zg(l),actionButton:{buttonRenderer:{style:"STYLE_LIGHT_TEXT",size:"SIZE_DEFAULT",text:_.zg(q),serviceEndpoint:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{signalAction:{signal:"UNDO_DELETE_DOWNLOAD",
targetId:r}}]}},loggingDirectives:{clientVeSpec:{uiType:169048}},accessibilityData:{accessibilityData:{label:l+" "+q}}}},closeActionButton:{buttonRenderer:{icon:{iconType:"CLOSE"},serviceEndpoint:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{signalAction:{signal:"DELETE_DOWNLOAD",targetId:r}}]}},loggingDirectives:{clientVeSpec:{uiType:169049}},accessibilityData:{accessibilityData:{label:M}}}},loggingDirectives:{clientVeSpec:{uiType:169047}}}},popupType:"TOAST"}};a.JSC$18199_commandHandler.resolveCommand(u);
W.jumpTo(0);break;case 19:E=W.yieldResult;E==="UNKNOWN_FORMAT_TYPE"&&(E="SD");O="DOWNLOAD_QUALITY_SETTINGS_ACTION_ALREADY_SAVED";if((f=z.actionParams)==null?0:f.formatType)E=z.actionParams.formatType,O=(A=z.actionParams)==null?void 0:A.settingsAction;return W.yield(TsZ(a,r,E,O,I),20);case 20:return W.return();case 23:return F=W.yieldResult,W.yield(Lye(a),24);case 24:return h=W.yieldResult,W.yield(Rk4(a),25);case 25:v=W.yieldResult,z.onAddCommand&&a.JSC$18199_commandHandler.resolveCommand(z.onAddCommand,
{form:{preferredFormatType:h,offlineWebClientEligibility:F,lastOfflineQualitySettingsSavedMs:v.toString()}}),W.jumpTo(0)}})},lkZ=function(a,z){var I,J,r,P,N,u,E;
return _.t(function(O){if(O.nextAddress==1)return O.yield(a.JSC$18199_persistentStorePromiseAccessor(),2);I=O.yieldResult;if(!I)return _.Xd(new _.Fn("PES is undefined")),O.return();if((J=z)==null||!J.settingItemId)return O.return();r=z;P=r.settingItemId;N=r.boolValue;u=_.Er(P,"settingEntity");E={key:u,settingOptionValue:{boolValue:N}};return O.yield(mhG(I,E),0)})},p0Y=function(a,z){var I,J,r,P,N,u,E;
return _.t(function(O){switch(O.nextAddress){case 1:return O.yield(a.JSC$18199_prefStorage,2);case 2:return I=O.yieldResult,J=_.Kt(),O.yield(a.JSC$18199_persistentStorePromiseAccessor(),3);case 3:return r=O.yieldResult,I?r?O.yield(I.get("sdois"),4):(_.Xd(new _.Fn("PES is undefined")),O.return()):(_.Xd(new _.Fn("prefStorage is undefined")),O.return());case 4:P=O.yieldResult;u=(N=z)==null?void 0:N.boolValue;u===void 0||_.K("kevlar_set_sd_enabled_flag_killswitch")||_.Fz(0,197,!0);P===void 0&&u===void 0&&
(u=!1);if(u===void 0){O.jumpTo(0);break}return O.yield(I.set("sdois",u),6);case 6:return _.K("kevlar_set_sd_enabled_flag_killswitch")||(_.Fz(0,196,u),J.save()),E={settingItemId:"SMART_DOWNLOADS_ENABLED",boolValue:u},O.yield(lkZ(a,E),0)}})},w0Y=function(a,z,I){var J,r,P,N,u;
return _.t(function(E){switch(E.nextAddress){case 1:return E.yield(ose(a),2);case 2:return J=E.yieldResult,E.yield(p0Y(a,I),3);case 3:return E.yield(ose(a),4);case 4:return r=E.yieldResult,P=r!==J,E.yield(UAM(a),5);case 5:N=E.yieldResult&&!_.K("kevlar_modern_downloads_page");if((u=!r&&!N)||P)return E.yield(z.queueOfflineAction("DOWNLOADS_LIST_ENTITY_ID_SMART_DOWNLOADS","mainDownloadsListEntity","OFFLINE_ORCHESTRATION_ACTION_TYPE_REFRESH"),0);E.jumpTo(0)}})},xKE=function(){var a=_.ab().resolve(_.OU),
z;
_.t(function(I){switch(I.nextAddress){case 1:return I.yield(a.JSC$18199_playerApiPromise,2);case 2:z=I.yieldResult;if(!_.K("kevlar_force_refresh_smart_downloads")){I.jumpTo(3);break}return I.yield(z.refreshAllStaleEntities(0),4);case 4:return I.return();case 3:return I.yield(z.refreshAllStaleEntities(),5);case 5:return I.yield(w0Y(a,z),6);case 6:if(_.K("enable_download_pep_for_premium_countries_web"))return I.yield(WyV(a,z),0);I.jumpTo(0)}})},oqE=function(a,z){var I,J;
_.t(function(r){switch(r.nextAddress){case 1:return r.yield(a.JSC$18199_playerApiPromise,2);case 2:I=r.yieldResult;switch((J=z)==null?void 0:J.settingItemId){case "SMART_DOWNLOADS_ENABLED":return r.jumpTo(3);case "SMART_DOWNLOADS_OPT_IN_BANNER_DISMISSED":return r.jumpTo(4)}r.jumpTo(0);break;case 3:return r.yield(w0Y(a,I,z),6);case 6:r.jumpTo(0);break;case 4:return r.yield(lkZ(a,z),7);case 7:r.jumpTo(0)}})},mAz=function(a,z){var I,J,r;
return _.t(function(P){if(P.nextAddress==1)return P.yield(a.JSC$18199_persistentStorePromiseAccessor(),2);if(P.nextAddress!=3){I=P.yieldResult;if(!I)return _.Xd(new _.Fn("PES is undefined")),P.return(!1);if(!z)return P.return(!1);J=_.Er(z,"mainVideoEntity");return P.yield(yEZ(I,J,"mainVideoEntity"),3)}r=P.yieldResult;return P.return(r!==void 0)})},DKV=function(a){var z=_.ab().resolve(_.OU),I,J,r,P,N,u,E,O,f,A,n;
_.t(function(F){switch(F.nextAddress){case 1:return F.yield(z.JSC$18199_playerApiPromise,2);case 2:I=F.yieldResult;r=(J=a)==null?void 0:J.actions;if(!r)return F.return();P=_.C(r);N=P.next();case 3:if(N.done){F.jumpTo(0);break}u=N.value;O=E=void 0;if(!(((E=u)==null?0:E.entityKey)&&((O=u)==null?0:O.actionType))){F.jumpTo(4);break}f=_.ZY(u.entityKey);A=f.entityId;n=f.entityType;return F.yield(I.queueOfflineAction(A,n,u.actionType),4);case 4:N=P.next(),F.jumpTo(3)}})},yQE=function(a,z){var I,J,r,P,N;
return _.t(function(u){if(u.nextAddress==1)return u.yield(a.JSC$18199_prefStorage,2);if(u.nextAddress!=3)return(I=u.yieldResult)?u.yield(I.get("psi"),3):u.return();J=u.yieldResult;N={isPaused:z,lastSyncTimestamp:(P=(r=J)==null?void 0:r.lastSyncTimestamp)!=null?P:"0"};return u.yield(I.set("psi",N),0)})},ltY=function(a){var z=_.ab().resolve(_.OU),I,J,r,P,N,u,E,O;
return _.t(function(f){switch(f.nextAddress){case 1:return f.yield(z.JSC$18199_playerApiPromise,2);case 2:I=f.yieldResult;r=((J=a)==null?void 0:J.localWatchHistoryCommandType)==="LOCAL_WATCH_HISTORY_COMMAND_TYPE_PAUSE";switch((u=a)==null?void 0:u.localWatchHistoryCommandType){case "LOCAL_WATCH_HISTORY_COMMAND_TYPE_CLEAR":P="!*$_ALL_ENTITIES_!*$";N="OFFLINE_ORCHESTRATION_ACTION_TYPE_DELETE";break;case "LOCAL_WATCH_HISTORY_COMMAND_TYPE_PAUSE":case "LOCAL_WATCH_HISTORY_COMMAND_TYPE_RESUME":return f.jumpTo(3);
case "LOCAL_WATCH_HISTORY_COMMAND_TYPE_REMOVE":return f.jumpTo(4)}f.jumpTo(5);break;case 3:return f.yield(yQE(z,r),6);case 6:f.jumpTo(5);break;case 4:return f.yield(mAz(z,(E=a)==null?void 0:E.videoId),7);case 7:f.yieldResult&&(P=(O=a)==null?void 0:O.videoId,N="OFFLINE_ORCHESTRATION_ACTION_TYPE_DELETE");f.jumpTo(5);break;case 5:if(P&&N)return f.yield(I.queueOfflineAction(P,"videoPlaybackPositionEntity",N),0);f.jumpTo(0)}})},k0V=function(a,z){var I;
z!==1||((I=a.currentPersistentToast)==null?0:I.isOpened())?a.openToast():a.currentPersistentToast=void 0},M8G=function(a,z){var I;
return(I=a.transitionTasksMap.get(z))!=null?I:[]},cQM=function(a,z){var I=[];
a.elementTasksMap.forEach(function(J){(J=J.get(z))&&I.push(J)});
return I},Y1f=function(a,z,I,J,r){r=r===void 0?{}:r;
var P=z.defaultViewTransitionOptions;return Object.assign({},P,r,{beforeTransition:function(){J.forEach(function(O){O.beforeTransition()});
var N;(N=P.beforeTransition)==null||N.call(P);var u,E;(E=(u=r).beforeTransition)==null||E.call(u);I.forEach(function(O){O.beforeTransition()})},
afterTransition:function(){J.forEach(function(O){O.afterTransition()});
var N;(N=P.afterTransition)==null||N.call(P);var u,E;(E=(u=r).afterTransition)==null||E.call(u);I.forEach(function(O){O.afterTransition()})},
ignoredErrors:a.config.ignoredErrors})},q1f=function(a,z,I){a.transitionTasksMap.has(z)?a.transitionTasksMap.get(z).push(I):(a=new _.Fn("Transition task registered for unknown transition type",z),_.Gx(a))},ekZ=function(a,z,I){if(a.transitionTasksMap.has(z)){var J=a.transitionTasksMap.get(z).filter(function(r){return r!==I});
a.transitionTasksMap.set(z,J)}},ay4=function(a,z){var I=M8G(a,z);
I=_.C(I);for(var J=I.next();!J.done;J=I.next())J=J.value,J.runOnce&&ekZ(a,z,J);a.elementTasksMap.forEach(function(r,P){r.forEach(function(N,u){N.runOnce&&z===u&&(r.delete(u),r.size===0&&a.elementTasksMap.delete(P))})})},jvi=function(a,z,I){var J,r,P,N,u,E,O,f,A;
_.t(function(n){if(n.nextAddress==1){if(a.config.disableAllTransitions)return n.return(z());if((J=I)==null||!J.transitionType)return n.return(_.wWV(z,Object.assign({},(r=I)==null?void 0:r.viewTransitionOptions,{ignoredErrors:a.config.ignoredErrors})));P=I;N=P.transitionType;u=P.viewTransitionOptions;E=a.config.transitionConfigs.get(N);if(!E)return n.return(z());O=M8G(a,N);f=cQM(a,N);A=_.wWV(z,Y1f(a,E,O,f,u));return n.yield(A,2)}ay4(a,N);_.nu(n)})},zOG=function(){var a,z,I,J;
return _.t(function(r){if(r.nextAddress==1)return a=navigator,(z=a.storage)!=null&&z.persisted?r.yield((I=a.storage)==null?void 0:I.persisted(),2):r.return("PERSISTED_STATE_NOT_SUPPORTED");J=r.yieldResult;return r.return(J?"PERSISTED_STATE_GRANTED":"PERSISTED_STATE_NOT_GRANTED")})},IyG=function(){var a,z,I,J;
return _.t(function(r){if(r.nextAddress==1)return a=navigator,(z=a.storage)!=null&&z.persist?r.yield((I=a.storage)==null?void 0:I.persist(),2):r.return("PERSISTED_STATE_NOT_SUPPORTED");J=r.yieldResult;return r.return(J?"PERSISTED_STATE_GRANTED":"PERSISTED_STATE_NOT_GRANTED")})},JIY=function(){var a,z;
return _.t(function(I){switch(I.nextAddress){case 1:return a="PERSISTED_STATE_NOT_SUPPORTED",_.BP(I,2),I.yield(zOG(),4);case 4:a=I.yieldResult;if(a!=="PERSISTED_STATE_NOT_GRANTED"){I.jumpTo(5);break}return I.yield(IyG(),6);case 6:a=I.yieldResult;case 5:_.p1(I,3);break;case 2:z=_.sk(I),z instanceof Error&&_.Gx(z);case 3:return _.x0("persistentStorageStateChecked",{persistedState:a}),I.return(a)}})},rIE=function(a,z){var I=[],J=!1;
z=_.C(z);for(var r=z.next();!r.done;r=z.next()){r=a.moduleRegistry[r.value];var P=void 0,N=void 0;((P=r)==null?0:P.isFetching)&&((N=r)==null?0:N.resolver)?(I.push(r.resolver.promise),J=!0):(r=new _.EM,r.resolve(void 0),I.push(r.promise))}return J?Promise.all(I):void 0},Pg0=function(a,z,I){if(a.isAnyTransitionEnabled){var J={beforeTransition:function(){I(!0);
z.style.viewTransitionName="masthead-page-transition"},
afterTransition:function(){z.style.viewTransitionName&&(z.style.viewTransitionName="",I(!1))}};
q1f(a.viewTransitionCoordinator,"slide",J);q1f(a.viewTransitionCoordinator,"lockup-to-watch",J);q1f(a.viewTransitionCoordinator,"watch-next-appears",J);q1f(a.viewTransitionCoordinator,"learning-journey",J)}},ZhZ=function(a,z){a.isBrowseTransitionEnabled?jvi(a.viewTransitionCoordinator,z,{transitionType:"slide"}):(z(),Promise.resolve())},CgZ=function(a,z){a.isLockupToWatchTransitionEnabled?jvi(a.viewTransitionCoordinator,z,{transitionType:"lockup-to-watch",
viewTransitionOptions:{afterTransition:function(){a.registeredLockupThumbnail=void 0;a.lockupThumbnailRegisteredFromWatchEndpoint=!1}}}):(z(),Promise.resolve())},N0z=function(a,z){a.isLockupToWatchTransitionEnabled?jvi(a.viewTransitionCoordinator,z,{transitionType:"watch-next-appears"}):(z(),Promise.resolve())},tiz=function(a,z){a.isLearningJourneyTransitionEnabled?jvi(a.viewTransitionCoordinator,z,{transitionType:"learning-journey"}):(z(),Promise.resolve())},uxZ=function(a,z,I){if(a.isInitialized()){var J=
KC(I),r=J==="watch";
J=J==="shorts";var P=KC(z)==="watch";if(r)P||(a.backgroundPageData=z),a.watchPipMode&&P||a.deactivate(I.endpoint);else if(J){if(KC(z)!=="shorts"){var N;(N=a.getPlayerElement())==null||N.pause()}}else P&&!a.watchPipMode&&(Dr4(z,I)?(a.watchWhileMode&&_.mMe(a,!1),_.DME(a,z)):a.isMiniplayerActive()&&a.watchWhileMode&&a.deactivate());P&&_.kBM(a);a.shortsPipMode&&!J&&(window.focus(),a.deactivate());if(a.pictureInPictureEnabled())if(J&&a.shortsPipEnabled||r&&a.watchPipEnabled)_.FuI(a.handleMediaSessionPipActivation);
else if(!a.isMiniplayerActive()&&(a.shortsPipEnabled||a.watchPipEnabled)&&window.documentPictureInPicture&&_.iG()&&_.g7G("Chromium")>=120){a=_.Kux().mediaSession;try{a.setActionHandler("enterpictureinpicture",null)}catch(u){}}}},EKZ=function(a,z){var I,J;
_.t(function(r){if(r.nextAddress==1){if(!a||!a.navigationEndpoint)return r.return();_.hq().lockupActivation=!0;var P;z?P=_.Mo(_.AR("QUEUE",void 0,"Queue")):P=a.longBylineText;J=(I=P)&&a.title?{miniplayerTitle:a.title,miniplayerSubtitle:I,playlistData:null}:void 0;return r.yield(_.fKE(_.ab().resolve(_.UJ),a.navigationEndpoint,!0,J),2)}_.hq().userActivation=!0;_.nu(r)})},LZY=function(a,z){var I,J,r,P,N,u;
_.t(function(E){if(E.nextAddress==1){I=_.H(z,_.pVv);if(!I||!I.listId)return E.return();a.index=I.index||a.index||0;J=a.response&&a.response.playingVideoId||void 0;return E.yield(_.Suw(a.JSC$12813_playlistNetworkManager,I.listId,a.index,J),2)}r=E.yieldResult;if(!r)return E.return();P=r.playlistId;N=r.playlistPanelRenderer;!a.queueProxy&&P&&N&&P.startsWith("TLPQ")&&(a.queueProxy=new _.LJ(a.JSC$12813_playlistNetworkManager,P,a.setPlaylistData.bind(a),a.clearQueue.bind(a),_.rc7(N),a.storage));if(I.openMiniplayer&&
(u=_.Pf7(N))&&!a.pageManager.isOnWatch()){var O=u,f=I.listType==="PLAYLIST_EDIT_LIST_TYPE_QUEUE";a.isMiniplayerActive()?a.openToast(O):EKZ(O,f)}a.setPlaylistData(P,N,r.autoplayRenderer);_.nu(E)})},U3Z=function(a,z){var I=_.cS();
I.index===void 0&&(I.index=0);I.temporaryItems.push.apply(I.temporaryItems,_.ih(a));if((z.videoId||z.videoIds)&&I.index!==void 0&&z.listType==="PLAYLIST_EDIT_LIST_TYPE_QUEUE"){if(!I.queueProxy){var J=[];if(I.response){var r=_.ab().resolve(_.UJ).isMiniplayerActive();if(I.response.playlistPanelRenderer&&I.response.playlistId&&!I.response.playlistId.startsWith("TLPQ")){if(I.pageManager.isOnWatch()||r)J=_.rc7(I.response.playlistPanelRenderer)}else I.response.playingVideoId&&!z.openMiniplayer?J.push(I.response.playingVideoId):
r&&I.response.playingVideoId&&z.openMiniplayer&&J.push(I.response.playingVideoId)}I.queueProxy=new _.LJ(I.JSC$12813_playlistNetworkManager,"",I.setPlaylistData.bind(I),I.clearQueue.bind(I),J,I.storage);I.queueProxy.JSC$12759_setCurrentIndex(I.index)}I.queueProxy.addVideos(z.videoIds||[z.videoId],z)}cEE(I,a);I.response&&_.Y3(I,_.q_(I,I.response.autoplayRenderer));I.pageManager.isOnWatch()?I.isMiniplayerActive()&&I.openToast(a[0]):(a=a[0],z=z.listType==="PLAYLIST_EDIT_LIST_TYPE_QUEUE",I.isMiniplayerActive()?
I.openToast(a):EKZ(a,z))},B0V=function(a){var z=_.pl(a);
if(z=="object"||z=="array"){if(typeof a.clone==="function")return a.clone();if(typeof Map!=="undefined"&&a instanceof Map)return new Map(a);if(typeof Set!=="undefined"&&a instanceof Set)return new Set(a);z=z=="array"?[]:{};for(var I in a)z[I]=B0V(a[I]);return z}return a},$9=function(a,z){return _.tIG(_.sB(a,z,void 0,_.AY))},XH=function(a,z){return _.eI(_.sB(a,z,void 0,_.AY))},TC=function(a,z){return _.GJO(_.sB(a,z,void 0,_.AY))},d_=function(a,z){return _.sB(a,z,void 0,_.AY,_.CwM)},gKZ=_.It(function(a,
z,I){if(a.nextWireType_!==0)return!1;
_.Jx(z,I,_.D8(a.decoder_,_.PwG));return!0},_.C4,_.pn),OhE=_.It(function(a,z,I,J){if(a.nextWireType_!==0)return!1;
_.Hb(z,I,J,_.D8(a.decoder_,_.PwG));return!0},_.C4,_.pn),fyf=_.It(function(a,z,I){if(a.nextWireType_!==1)return!1;
var J=a.decoder_;a=_.Ln(J);J=_.Ln(J);a=_.UO(a,J);_.Jx(z,I,a);return!0},_.i4M,_.Tp3),AIi=_.It(function(a,z,I){if(a.nextWireType_!==5)return!1;
_.Jx(z,I,_.Ln(a.decoder_));return!0},function(a,z,I){z=_.Bf7(z);
z!=null&&(_.rO(a,I,5),_.Zx(a.encoder_,z))},_.Xfd),svZ=_.It(function(a,z,I){if(a.nextWireType_!==0)return!1;
a=_.gfp(a.decoder_);_.Jx(z,I,a===!1?void 0:a);return!0},_.xLG,_.xuO),nK0=_.It(function(a,z,I){if(a.nextWireType_!==2)return!1;
a=_.KnG(a);_.Jx(z,I,a===""?void 0:a);return!0},_.GN0,_.vfG),K3f=_.It(function(a,z,I){if(a.nextWireType_!==2)return!1;
a=_.Fnp(a);_.Jx(z,I,a===_.Vi()?void 0:a);return!0},_.X9M,_.ofd),F3Y=_.nPM(function(a,z,I){if(a.nextWireType_!==0&&a.nextWireType_!==2)return!1;
z=_.iZG(z,z[_.rf]|0,I);a.nextWireType_==2?_.Hbd(a,QK0,z):z.push(_.Rs(a.decoder_));return!0},function(a,z,I){z=_.stG(_.eI,z,!0);
if(z!=null&&z.length){I=_.lE3(a,I);for(var J=0;J<z.length;J++)_.Vu3(a.encoder_,z[J]);_.p41(a,I)}},_.Uu0),HhG=_.It(function(a,z,I){if(a.nextWireType_!==0)return!1;
a=_.Rs(a.decoder_);_.Jx(z,I,a===0?void 0:a);return!0},_.TOm,_.Uu0),bhE=_.It(function(a,z,I,J){if(a.nextWireType_!==0)return!1;
_.Hb(z,I,J,_.Rs(a.decoder_));return!0},_.TOm,_.Uu0),hOZ=function(a){return a.previousElementSibling!==void 0?a.previousElementSibling:_.coe(a.previousSibling,!1)},ViY=function(a,z){var I=[];
for(z=z||0;z<a.length;z+=2)_.U0e(a[z],a[z+1],I);return I.join("&")},Qve=function(a,z){var I=arguments.length==2?ViY(arguments[1],0):ViY(arguments,1);
return _.oZ1(a,I)},i5M=_.Ea(_.T0),SJ4=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.GY(a)};
_.b(SJ4,_.ju);SJ4.prototype.getTypeName=function(){return _.vb(this,1).split("/").pop()};
SJ4.prototype.getValue=function(){var a=_.sB(this,2);if(Array.isArray(a)||a instanceof _.ju)throw Error("W");return _.Fg(this,2)};
var fae=function(){var a=_.CH();this.JSC$9875_streamzService=a;a.addNewCounter("/client_streamz/youtube/living_room/mdx/channel/opened",_.rQ("channel_type"))};
fae.prototype.increment=function(a){this.JSC$9875_streamzService.JSC$9745_incrementCounter("/client_streamz/youtube/living_room/mdx/channel/opened",a)};
var AvV=function(){var a=_.CH();this.JSC$9878_streamzService=a;a.addNewCounter("/client_streamz/youtube/living_room/mdx/channel/closed",_.rQ("channel_type"))};
AvV.prototype.increment=function(a){this.JSC$9878_streamzService.JSC$9745_incrementCounter("/client_streamz/youtube/living_room/mdx/channel/closed",a)};
var nhf=function(){var a=_.CH();this.JSC$9881_streamzService=a;a.addNewCounter("/client_streamz/youtube/living_room/mdx/channel/message_received",_.rQ("channel_type"))};
nhf.prototype.increment=function(a){this.JSC$9881_streamzService.JSC$9745_incrementCounter("/client_streamz/youtube/living_room/mdx/channel/message_received",a)};
var sXG=function(){var a=_.CH();this.JSC$9884_streamzService=a;a.addNewCounter("/client_streamz/youtube/living_room/mdx/channel/success")};
sXG.prototype.increment=function(){this.JSC$9884_streamzService.JSC$9745_incrementCounter("/client_streamz/youtube/living_room/mdx/channel/success")};
var K1f=function(){var a=_.CH();this.JSC$9887_streamzService=a;a.addNewCounter("/client_streamz/youtube/living_room/mdx/channel/error",_.rQ("channel_type"),_.rQ("error_type"))};
K1f.prototype.increment=function(a,z){this.JSC$9887_streamzService.JSC$9745_incrementCounter("/client_streamz/youtube/living_room/mdx/channel/error",a,z)};
var F1G=function(){var a=_.CH();this.JSC$9890_streamzService=a;a.addNewCounter("/client_streamz/youtube/living_room/mdx/browser_channel/pending_maps")};
F1G.prototype.increment=function(){this.JSC$9890_streamzService.JSC$9745_incrementCounter("/client_streamz/youtube/living_room/mdx/browser_channel/pending_maps")};
var HHY=function(){var a=_.CH();this.JSC$9893_streamzService=a;a.addNewCounter("/client_streamz/youtube/living_room/mdx/browser_channel/undelivered_maps")};
HHY.prototype.increment=function(){this.JSC$9893_streamzService.JSC$9745_incrementCounter("/client_streamz/youtube/living_room/mdx/browser_channel/undelivered_maps")};
var CqM=function(){var a=_.CH();this.JSC$9899_streamzService=a;a.addNewCounter("/client_streamz/youtube/identity/dma_pause_player")};
CqM.prototype.increment=function(){this.JSC$9899_streamzService.JSC$9745_incrementCounter("/client_streamz/youtube/identity/dma_pause_player")};
var ihZ=function(a){return a.getCount&&typeof a.getCount=="function"?a.getCount():_.lG(a)||typeof a==="string"?a.length:_.x8.getCount(a)},xli=function(a,z){if(typeof a.every=="function")return a.every(z,void 0);
if(_.lG(a)||typeof a==="string")return Array.prototype.every.call(a,z,void 0);for(var I=_.DIj(a),J=_.eq(a),r=J.length,P=0;P<r;P++)if(!z.call(void 0,J[P],I&&I[P],a))return!1;return!0},vKY=function(a,z,I,J){var r=new _.cJ(null);
a&&_.aR(r,a);z&&_.ja(r,z);I&&_.zo(r,I);J&&_.IR(r,J);return r},GOY=function(){var a=_.Wy&&_.Om(_.aZw,10)>=0,z;
if(z=_.i7E)z=_.Om(_.eZl,10)>=0;var I=_.gL&&_.Om(_.aZw,85)>=0;return _.tY||a||z||I},$lV=function(a){var z=_.sZw(a);
return z&&GOY()?-a.scrollLeft:z&&_.WW(a,"overflowX")!="visible"?a.scrollWidth-a.clientWidth-a.scrollLeft:a.scrollLeft},XqZ=function(a,z){z=Math.max(z,0);
_.sZw(a)?GOY()?a.scrollLeft=-z:a.scrollLeft=a.scrollWidth-z-a.clientWidth:a.scrollLeft=z},a1f=0,r$0=!1;
H$.prototype.set=function(a){this.relativeTimeStart_=a};
H$.prototype.reset=function(){this.set(_.JY())};
H$.prototype.get=function(){return this.relativeTimeStart_};
var T0f=null,dl4=function(){T0f||(T0f=new H$)},W34=function(){T0f||(T0f=new H$)};
_.rL(W34,dl4);_.Z=ZLE.prototype;_.Z.JSC$11254_buffer_="";_.Z.set=function(a){this.JSC$11254_buffer_=""+a};
_.Z.append=function(a,z,I){this.JSC$11254_buffer_+=String(a);if(z!=null)for(var J=1;J<arguments.length;J++)this.JSC$11254_buffer_+=arguments[J];return this};
_.Z.clear=function(){this.JSC$11254_buffer_=""};
_.Z.getLength=function(){return this.JSC$11254_buffer_.length};
_.Z.toString=function(){return this.JSC$11254_buffer_};
var oK0=function(){var a={type:"unit",style:"narrow"};this.listType_=a&&a.type?a.type:"conjunction";this.listStyle_=a&&a.style?a.style:"long";this.listSymbols_=$hM;a=0;switch(this.listStyle_){case "short":a=1;break;case "narrow":a=2}switch(this.listType_){case "conjunction":this.listStartPattern_=this.listSymbols_.AND_START[a];this.listTwoPattern_=(this.listSymbols_.AND_TWO||this.listSymbols_.AND_END)[a];this.listMiddlePattern_=(this.listSymbols_.AND_MIDDLE||this.listSymbols_.AND_START)[a];this.listEndPattern_=
this.listSymbols_.AND_END[a];break;case "disjunction":this.listStartPattern_=(this.listSymbols_.OR_START||this.listSymbols_.AND_START)[a];this.listTwoPattern_=(this.listSymbols_.OR_TWO||this.listSymbols_.OR_END)[a];this.listMiddlePattern_=(this.listSymbols_.OR_MIDDLE||this.listSymbols_.AND_START)[a];this.listEndPattern_=this.listSymbols_.OR_END[a];break;case "unit":this.listStartPattern_=(this.listSymbols_.UNIT_START||this.listSymbols_.AND_START)[a],this.listTwoPattern_=(this.listSymbols_.UNIT_TWO||
this.listSymbols_.UNIT_END)[a],this.listMiddlePattern_=(this.listSymbols_.UNIT_MIDDLE||this.listSymbols_.AND_START)[a],this.listEndPattern_=this.listSymbols_.UNIT_END[a]}};
oK0.prototype.format=function(a){return UlZ(this,a)};
var UlZ=function(a,z){var I=z.length;switch(I){case 0:return"";case 1:return String(z[0]);case 2:return a.listTwoPattern_.replace("{0}",String(z[0])).replace("{1}",String(z[1]))}for(var J=a.listStartPattern_.replace("{0}",String(z[0])).replace("{1}",String(z[1])),r=2;r<I-1;++r)J=a.listMiddlePattern_.replace("{0}",J).replace("{1}",String(z[r]));return a.listEndPattern_.replace("{0}",J).replace("{1}",String(z[I-1]))},bLz=function(){var a={style:1};
this.style_=(a==null?void 0:a.style)||0;this.durationSymbols_=_.aXw||_.U3l},Dlf=function(a,z){switch(z){default:case "years":return a.durationSymbols_.YEAR;
case "months":return a.durationSymbols_.MONTH;case "weeks":return a.durationSymbols_.WEEK;case "days":return a.durationSymbols_.DAY;case "hours":return a.durationSymbols_.HOUR;case "minutes":return a.durationSymbols_.MINUTE;case "seconds":return a.durationSymbols_.SECOND}},Wm=function(a,z,I){a:{I=Dlf(a,I);
switch(a.style_){case 1:if(I.LONG!=void 0){a=I.LONG;break a}case 2:if(I.NARROW!=void 0){a=I.NARROW;break a}default:a=I.SHORT;break a}a=void 0}return a?(new _.ZwJ("{DURATION_VALUE,plural,"+a+"}")).format({DURATION_VALUE:z}):""};
bLz.prototype.format=function(a){var z=[],I=a.years,J=a.months,r=a.weeks,P=a.days,N=a.hours,u=a.minutes;a=a.seconds;I!=null&&z.push(Wm(this,I,"years"));J!=null&&z.push(Wm(this,J,"months"));r!=null&&z.push(Wm(this,r,"weeks"));P!=null&&z.push(Wm(this,P,"days"));N!=null&&z.push(Wm(this,N,"hours"));u!=null&&z.push(Wm(this,u,"minutes"));a!=null&&z.push(Wm(this,a,"seconds"));return(new oK0).format(z)};
var ROE=!1,g2V=function(a){_.aE.call(this,a.message||a.description||a.name);this.isMissing=a instanceof bC;this.isTimeout=a instanceof _.uC&&a.errorCode=="net.timeout";this.isCanceled=a instanceof _.Lc};
_.b(g2V,_.aE);g2V.prototype.name="BiscottiError";var bC=function(){_.aE.call(this,"Biscotti ID is missing from server")};
_.b(bC,_.aE);bC.prototype.name="BiscottiMissingError";var ha=null,GzM=function(){try{var a=_.DH("yt.ads.biscotti.getId_");return a?a():yGZ()}catch(z){return _.xN(z)}},HLG,L30=function(a,z){return _.rg({type:"SET_COMMAND_FOR_GROUP_ID",
payload:{groupId:a,command:z}})},lyZ=function(a){return _.rg({type:"SET_GUIDE_IS_EXPANDED",
payload:a})},pqZ=function(a){return _.rg({type:"SET_ONLINE_STATUS",
payload:a})},wq0=function(a,z){return _.rg({type:"SET_TRANSCRIPTION_STATE",
payload:{high:a,low:z}})},ml0=function(a){return _.rg({type:"SET_OVERLAY_STATE",
payload:a})},yIE=0,kO0=function(a,z,I){var J=this;
this.priority=z;this.delay=I;this.jobId=0;this.completionCallback=_.Kx;this.wrappedJob=function(){a();J.completionCallback()};
this.id=++yIE};
kO0.prototype.enqueue=function(a){this.completionCallback=a;this.jobId=_.GW.addJob(this.wrappedJob,this.priority,this.delay)};
var oa=function(){_.PE.call(this);this.isActive=!1;this.suspendedTasks=new Set;this.scheduledTasks=new Set;this.taskIdToTask=new Map};
_.b(oa,_.PE);oa.prototype.addJob=function(a,z,I){a=new kO0(a,z,I);this.taskIdToTask.set(a.id,a);this.isActive?Mi0(this,a):this.suspendedTasks.add(a);return a.id};
var Mi0=function(a,z){a.scheduledTasks.add(z);z.enqueue(function(){a.scheduledTasks.delete(z)})};
oa.prototype.cancelJob=function(a){(a=this.taskIdToTask.get(a))&&(this.scheduledTasks.delete(a)?_.GW.cancelJob(a.jobId):this.suspendedTasks.delete(a))};
oa.prototype.pause=function(){var a=this;this.isActive=!1;this.scheduledTasks.forEach(function(z){_.GW.cancelJob(z.jobId);a.suspendedTasks.add(z)});
this.scheduledTasks.clear()};
oa.prototype.start=function(){var a=this;this.isActive=!0;this.suspendedTasks.forEach(function(z){Mi0(a,z)});
this.suspendedTasks.clear()};
oa.prototype.reset=function(){this.scheduledTasks.forEach(function(a){_.GW.cancelJob(a.jobId)});
this.scheduledTasks.clear();this.suspendedTasks.clear();this.taskIdToTask.clear()};
var U0=function(a,z){this.JSC$12942_networkService_=a;this.pageRequestPromise=z};
U0.prototype.fetchData=function(a){cIV(this,this.JSC$12942_networkService_.fetchData(a))};
U0.prototype.postData=function(a,z){cIV(this,this.JSC$12942_networkService_.postData(a,z))};
U0.prototype.requestDataForServiceEndpoint=function(a,z){cIV(this,this.JSC$12942_networkService_.requestDataForServiceEndpoint(a,z))};
var cIV=function(a,z){z.then(a.pageRequestPromise.onSuccess,a.pageRequestPromise.onFailure,a.pageRequestPromise)};
U0.prototype.cancel=function(){this.pageRequestPromise.cancel()};
var D7=function(a){this.buildNetworkRequest_=a;this.pendingRequests_=new Set};
D7.prototype.reset=function(){this.pendingRequests_.forEach(function(a){a.cancel()});
this.pendingRequests_.clear()};
D7.prototype.fetchData=function(a){var z=YJY(this);z.fetchData(a);return z.pageRequestPromise};
D7.prototype.postData=function(a,z){var I=YJY(this);I.postData(a,z);return I.pageRequestPromise};
D7.prototype.requestDataForServiceEndpoint=function(a,z){var I=YJY(this);I.requestDataForServiceEndpoint(a,z);return I.pageRequestPromise};
var YJY=function(a){var z=a.buildNetworkRequest_();a.pendingRequests_.add(z);var I=function(){a.pendingRequests_.delete(z)};
z.pageRequestPromise.then(I,I);return z},qJZ=function(a){var z=new oa;
this.JSC$12949_networkService_=a;this.JSC$12949_taskManager_=z;this.JSC$12949_networkManager_=new D7(this.networkRequestFactory_.bind(this))};
_.Z=qJZ.prototype;_.Z.networkRequestFactory_=function(){return new U0(this.JSC$12949_networkService_,new _.ur(this.JSC$12949_taskManager_))};
_.Z.reset=function(){this.JSC$12949_taskManager_.reset();this.JSC$12949_networkManager_.reset()};
_.Z.start=function(){this.JSC$12949_taskManager_.start()};
_.Z.pause=function(){this.JSC$12949_taskManager_.pause()};
_.Z.getTaskManager=function(){return this.JSC$12949_taskManager_};
_.Z.getNetworkManager=function(){return this.JSC$12949_networkManager_};
var iL0=null,GXf=[],VQ=0,SD=0,QQ=null,eOE=!1,iC=null,XJe=void 0,a8Z=function(){var a=(0,_.RHo)();a&&TiZ(a,a.mechanism.__iterator__(!0))},v$=function(a){this.token=a};
v$.getInstance=function(){var a;return _.t(function(z){if(z.nextAddress==1)return z.yield(_.e6(),2);a=z.yieldResult;if(!a)return z.return();v$.instance||(v$.instance=new v$(a));return z.return(v$.instance)})};
var DZZ=function(a){var z;return _.t(function(I){if(I.nextAddress==1)return I.yield(WKG(a.token),2);z=I.yieldResult;return I.return(z.clear("resource-manifest-assets"))})},xH=function(a){this.token=a};
xH.getInstance=function(){var a;return _.t(function(z){if(z.nextAddress==1)return z.yield(_.e6(),2);a=z.yieldResult;if(!a)return z.return();xH.instance||(xH.instance=new xH(a));return z.return(xH.instance)})};
var o2V=function(a){var z;return _.t(function(I){if(I.nextAddress==1)return I.yield(WKG(a.token),2);z=I.yieldResult;return I.yield(z.clear("auth"),0)})},PIZ=!1,js4=function(a){_.aE.call(this,a)};
_.b(js4,_.nYw);var zsE="a[href] a[tabindex] area[href] iframe [tabindex] [contentEditable] summary input:not([disabled]) select:not([disabled]) textarea:not([disabled]) button:not([disabled]) object:not([disabled])".split(" ");U$f()&&zsE.push("details:not(:has(summary))");var Rgf=zsE.join(",");var CKf=function(){var a=window.navigator.userAgent.match(/Chrome\/([0-9]+)/);return a?parseInt(a[1],10):0},I8V=function(a){return!!document.currentScript&&(document.currentScript.src.indexOf("?"+a)!=-1||document.currentScript.src.indexOf("&"+a)!=-1)},JYY=function(){return typeof window.__onGCastApiAvailable=="function"?window.__onGCastApiAvailable:null},Bze=function(a){a.length?rYE(a.shift(),function(){Bze(a)}):tce()},OMV=function(a){return"chrome-extension://"+a+"/cast_sender.js"},rYE=function(a,
z,I){var J=document.createElement("script");
J.onerror=z;I&&(J.onload=I);_.c9(J,_.h7(a));(document.head||document.documentElement).appendChild(J)},Pei=function(){var a=CKf(),z=[];
if(a>1){var I=a-1;z.push("//www.gstatic.com/eureka/clank/"+a+"/cast_sender.js");z.push("//www.gstatic.com/eureka/clank/"+I+"/cast_sender.js")}return z},tce=function(){var a=JYY();
a&&a(!1,"No cast extension found")},Ei4=function(){if(Zn0){var a=2,z=JYY(),I=function(){a--;
a==0&&z&&z(!0)};
window.__onGCastApiAvailable=I;rYE("//www.gstatic.com/cast/sdk/libs/sender/1.0/cast_framework.js",tce,I)}},NzE=function(){Ei4();
var a=Pei();a.push("//www.gstatic.com/eureka/clank/cast_sender.js");Bze(a)},ueZ=function(){Ei4();
var a=Pei();a.push.apply(a,_.ih(giZ.map(OMV)));a.push("//www.gstatic.com/eureka/clank/cast_sender.js");Bze(a)},Zn0=I8V("loadCastFramework")||I8V("loadCastApplicationFramework"),giZ=["pkedcjkdefgpdelpbcmbmeomcjbeemfm",
"enhhojjnijigcajfphajepfemndkmdlo"];var Cef=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.GY(a)};
_.b(Cef,_.ju);var NLZ=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.GY(a)};
_.b(NLZ,_.ju);var tQe=function(){var a=new NLZ;return _.Wb(a,1,3)};var Ra=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.GY(a)};
_.b(Ra,_.ju);var NgG=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.GY(a)};
_.b(NgG,_.ju);var ugi=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.GY(a)};
_.b(ugi,_.ju);ugi.prototype.getToken=function(){return _.vb(this,1)};
ugi.prototype.setToken=function(a){return _.yr(this,1,a)};
var Z5Z=function(a){return _.pZ(a,3,_.gE,_.jW())},C8Y=function(a){return _.pZ(a,6,_.gE,_.jW())};var L9=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.GY(a)};
_.b(L9,_.ju);L9.prototype.getToken=function(){return _.JC(this,ugi,2)};
L9.prototype.setToken=function(a){return _.gO(this,2,a)};
L9.prototype.getName=function(){return _.vb(this,6)};
var ERz=_.Ea(L9);var BL4=function(a,z,I){this.requestMessage=a;this.methodDescriptor=z;this.metadata=I};
BL4.prototype.getMetadata=function(){return this.metadata};var gRY=function(a,z){z=z===void 0?{}:z;this.responseMessage=a;this.metadata=z;this.status=null};
gRY.prototype.getMetadata=function(){return this.metadata};
gRY.prototype.getStatus=function(){return this.status};var lV=function(a,z,I,J,r){this.name=a;this.methodType="unary";this.requestType=z;this.responseType=I;this.requestSerializeFn=J;this.responseDeserializeFn=r},OnZ=function(a,z,I){I=I===void 0?{}:I;
return new BL4(z,a,I)};
lV.prototype.getName=function(){return this.name};var p9=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.GY(a)};
_.b(p9,_.ju);p9.prototype.getHeader=function(){return _.JC(this,Ra,1)};
p9.prototype.setHeader=function(a){return _.gO(this,1,a)};
p9.prototype.hasHeader=function(){return _.nn(this,Ra,1)};var f8Z=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.GY(a)};
_.b(f8Z,_.ju);var AY0=new lV("/google.internal.identity.accountlinking.v1.AccountLinkingService/DeleteLink",p9,f8Z,function(a){return a.serialize()},_.Ea(f8Z));var w_=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.GY(a)};
_.b(w_,_.ju);w_.prototype.getHeader=function(){return _.JC(this,Ra,1)};
w_.prototype.setHeader=function(a){return _.gO(this,1,a)};
w_.prototype.hasHeader=function(){return _.nn(this,Ra,1)};var ssZ=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.GY(a)};
_.b(ssZ,_.ju);var nRZ=new lV("/google.internal.identity.accountlinking.v1.AccountLinkingService/DepositGoogleCredential",w_,ssZ,function(a){return a.serialize()},_.Ea(ssZ));var mr=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.GY(a)};
_.b(mr,_.ju);mr.prototype.getHeader=function(){return _.JC(this,Ra,1)};
mr.prototype.setHeader=function(a){return _.gO(this,1,a)};
mr.prototype.hasHeader=function(){return _.nn(this,Ra,1)};var K70=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.GY(a)};
_.b(K70,_.ju);K70.prototype.getLink=function(){return _.JC(this,L9,1)};var F70=new lV("/google.internal.identity.accountlinking.v1.AccountLinkingService/FinishOAuth",mr,K70,function(a){return a.serialize()},_.Ea(K70));var yJ=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.GY(a)};
_.b(yJ,_.ju);yJ.prototype.getHeader=function(){return _.JC(this,Ra,1)};
yJ.prototype.setHeader=function(a){return _.gO(this,1,a)};
yJ.prototype.hasHeader=function(){return _.nn(this,Ra,1)};var HnE=new lV("/google.internal.identity.accountlinking.v1.AccountLinkingService/GetLink",yJ,L9,function(a){return a.serialize()},ERz);var bnZ=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.GY(a)};
_.b(bnZ,_.ju);var hsG=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.GY(a)};
_.b(hsG,_.ju);hsG.prototype.getUrl=function(){return _.vb(this,2)};
hsG.prototype.setUrl=function(a){return _.yr(this,2,a)};var VQ4=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.GY(a)};
_.b(VQ4,_.ju);var Qsz=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.GY(a)};
_.b(Qsz,_.ju);var SBZ=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.GY(a)};
_.b(SBZ,_.ju);var KHz=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.GY(a)};
_.b(KHz,_.ju);var npZ=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.GY(a)};
_.b(npZ,_.ju);var inG=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.GY(a)};
_.b(inG,_.ju);var Srz=_.Ea(inG);var xSf=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.GY(a)};
_.b(xSf,_.ju);var vRG=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.GY(a)};
_.b(vRG,_.ju);_.Z=vRG.prototype;_.Z.getHeader=function(){return _.JC(this,Ra,1)};
_.Z.setHeader=function(a){return _.gO(this,1,a)};
_.Z.hasHeader=function(){return _.nn(this,Ra,1)};
_.Z.getCompletionUrl=function(){return _.vb(this,6)};
_.Z.getDeviceId=function(){return _.vb(this,11)};var GLZ=new lV("/google.internal.identity.accountlinking.v1.AccountLinkingService/StartLinkingSession",vRG,inG,function(a){return a.serialize()},Srz);var $SZ=new Set(["SAPISIDHASH","APISIDHASH"]);var XbM=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.GY(a)};
_.b(XbM,_.ju);XbM.prototype.getMessage=function(){return _.vb(this,2)};
var TLG=_.Ea(XbM);var k9=function(a,z){this.xhrNodeReadableStream_=a.nodeReadableStream;this.grpcResponseDeserializeFn_=z;this.JSC$19155_xhr_=a.xhr;this.onDataCallbacks_=[];this.onMetadataCallbacks_=[];this.onStatusCallbacks_=[];this.onEndCallbacks_=[];this.JSC$19155_onErrorCallbacks_=[];this.xhrNodeReadableStream_&&dSZ(this)},L7e=function(a,z){var I=new W7f;
_.Sg(a.JSC$19155_xhr_,"complete",function(){if(a.JSC$19155_xhr_.isSuccess()){var J=a.JSC$19155_xhr_.getResponseText();var r;if(r=z)r=a.JSC$19155_xhr_,r.JSC$9754_xhr_&&r.isComplete()?(r=r.JSC$9754_xhr_.getResponseHeader("Content-Type"),r=r===null?void 0:r):r=void 0,r=r==="text/plain";if(r){if(!atob)throw Error("Qj");J=atob(J)}try{var P=a.grpcResponseDeserializeFn_(J)}catch(u){Mf(a,kbZ(new _.xM(13,"Error when deserializing response data; error: "+u+(", response: "+J)),I));return}J=_.ML3(a.JSC$19155_xhr_.getStatus());
oRZ(a,USM(a));J==0?DS0(a,P):Mf(a,kbZ(new _.xM(J,"Xhr succeeded but the status code is not 200"),I))}else{J=a.JSC$19155_xhr_.getResponseText();P=USM(a);if(J){var N=Rs0(a,J);J=N.code;r=N.details;N=N.metadata}else J=2,r="Rpc failed due to xhr error. uri: "+String(a.JSC$19155_xhr_.JSC$9754_lastUri_)+", error code: "+a.JSC$19155_xhr_.JSC$9754_lastErrorCode_+", error: "+a.JSC$19155_xhr_.getLastError(),N=P;oRZ(a,P);Mf(a,kbZ(new _.xM(J,r,N),I))}})},dSZ=function(a){a.xhrNodeReadableStream_.on("data",function(z){if("1"in
z){var I=z["1"];
try{var J=a.grpcResponseDeserializeFn_(I)}catch(r){Mf(a,new _.xM(13,"Error when deserializing response data; error: "+r+(", response: "+I)))}J&&DS0(a,J)}if("2"in z)for(z=Rs0(a,z["2"]),I=0;I<a.onStatusCallbacks_.length;I++)a.onStatusCallbacks_[I](z)});
a.xhrNodeReadableStream_.on("end",function(){oRZ(a,USM(a));for(var z=0;z<a.onEndCallbacks_.length;z++)a.onEndCallbacks_[z]()});
a.xhrNodeReadableStream_.on("error",function(){if(a.JSC$19155_onErrorCallbacks_.length!=0){var z=a.JSC$19155_xhr_.JSC$9754_lastErrorCode_;z!==0||a.JSC$19155_xhr_.isSuccess()||(z=6);var I=-1;switch(z){case 0:var J=2;break;case 7:J=10;break;case 8:J=4;break;case 6:I=a.JSC$19155_xhr_.getStatus();J=_.ML3(I);break;default:J=14}oRZ(a,USM(a));z=_.sNe(z)+", error: "+a.JSC$19155_xhr_.getLastError();I!=-1&&(z+=", http status code: "+I);Mf(a,new _.xM(J,z))}})},USM=function(a){var z={},I=xhY(a.JSC$19155_xhr_);
Object.keys(I).forEach(function(J){z[J]=I[J]});
return z},Rs0=function(a,z){var I=2,J={};
try{var r=TLG(z);I=_.za(r,1);var P=r.getMessage();_.af(r,SJ4,3,_.jW()).length&&(J["grpc-web-status-details-bin"]=z)}catch(N){a.JSC$19155_xhr_&&a.JSC$19155_xhr_.getStatus()===404?(I=5,P="Not Found: "+String(a.JSC$19155_xhr_.JSC$9754_lastUri_)):(I=14,P="Unable to parse RpcStatus: "+N)}return{code:I,details:P,metadata:J}};
k9.prototype.on=function(a,z){a=="data"?this.onDataCallbacks_.push(z):a=="metadata"?this.onMetadataCallbacks_.push(z):a=="status"?this.onStatusCallbacks_.push(z):a=="end"?this.onEndCallbacks_.push(z):a=="error"&&this.JSC$19155_onErrorCallbacks_.push(z);return this};
var cm=function(a,z){z=a.indexOf(z);z>-1&&a.splice(z,1)};
k9.prototype.removeListener=function(a,z){a=="data"?cm(this.onDataCallbacks_,z):a=="metadata"?cm(this.onMetadataCallbacks_,z):a=="status"?cm(this.onStatusCallbacks_,z):a=="end"?cm(this.onEndCallbacks_,z):a=="error"&&cm(this.JSC$19155_onErrorCallbacks_,z);return this};
k9.prototype.cancel=function(){this.JSC$19155_xhr_.abort()};
var DS0=function(a,z){for(var I=0;I<a.onDataCallbacks_.length;I++)a.onDataCallbacks_[I](z)},oRZ=function(a,z){for(var I=0;I<a.onMetadataCallbacks_.length;I++)a.onMetadataCallbacks_[I](z)},Mf=function(a,z){for(var I=0;I<a.JSC$19155_onErrorCallbacks_.length;I++)a.JSC$19155_onErrorCallbacks_[I](z)};
k9.prototype.cancel=k9.prototype.cancel;k9.prototype.removeListener=k9.prototype.removeListener;k9.prototype.on=k9.prototype.on;var W7f=function(){var a=Error.call(this);this.message=a.message;"stack"in a&&(this.stack=a.stack);Object.setPrototypeOf(this,this.constructor.prototype);this.name="AsyncStack"};
_.b(W7f,Error);var Y9=function(a){this.JSC$19164_worker_=a.worker||null;this.JSC$19164_streamBinaryChunks_=a.streamBinaryChunks||!1;this.JSC$19164_credentialsMode_=void 0};
_.rL(Y9,_.Ye1);Y9.prototype.createInstance=function(){var a=new qf(this.JSC$19164_worker_,this.JSC$19164_streamBinaryChunks_);this.JSC$19164_credentialsMode_&&a.setCredentialsMode(this.JSC$19164_credentialsMode_);return a};
Y9.prototype.setCredentialsMode=function(a){this.JSC$19164_credentialsMode_=a};
var qf=function(a,z){_.HV.call(this);this.JSC$19168_worker_=a;this.JSC$19168_streamBinaryChunks_=z;this.JSC$19168_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$19168_responseHeaders_=null;this.JSC$19168_method_="GET";this.JSC$19168_url_="";this.inProgress_=!1;this.JSC$19168_textDecoder_=this.currentReader_=this.fetchResponse_=null;this.abortController_=
new AbortController};
_.rL(qf,_.HV);qf.prototype.open=function(a,z){if(this.readyState!=0)throw this.abort(),Error("Rj");this.JSC$19168_method_=a;this.JSC$19168_url_=z;this.readyState=1;eZ(this)};
qf.prototype.send=function(a){if(this.readyState!=1)throw this.abort(),Error("Sj");if(this.abortController_.signal.aborted)throw this.abort(),Error("Tj");this.inProgress_=!0;var z={headers:this.requestHeaders_,method:this.JSC$19168_method_,credentials:this.JSC$19168_credentialsMode_,cache:void 0,signal:this.abortController_.signal};a&&(z.body=a);(this.JSC$19168_worker_||_.IE).fetch(new Request(this.JSC$19168_url_,z)).then(this.handleResponse_.bind(this),this.handleSendFailure_.bind(this))};
qf.prototype.abort=function(){this.response=this.responseText="";this.requestHeaders_=new Headers;this.status=0;this.abortController_.abort();this.currentReader_&&this.currentReader_.cancel("Request was aborted.").catch(function(){return null});
this.readyState>=1&&this.inProgress_&&this.readyState!=4&&(this.inProgress_=!1,ai(this));this.readyState=0};
qf.prototype.handleResponse_=function(a){if(this.inProgress_&&(this.fetchResponse_=a,this.JSC$19168_responseHeaders_||(this.status=this.fetchResponse_.status,this.statusText=this.fetchResponse_.statusText,this.JSC$19168_responseHeaders_=a.headers,this.readyState=2,eZ(this)),this.inProgress_&&(this.readyState=3,eZ(this),this.inProgress_)))if(this.responseType==="arraybuffer")a.arrayBuffer().then(this.handleResponseArrayBuffer_.bind(this),this.handleSendFailure_.bind(this));else if(typeof _.IE.ReadableStream!==
"undefined"&&"body"in a){this.currentReader_=a.body.getReader();if(this.JSC$19168_streamBinaryChunks_){if(this.responseType)throw Error("Uj");this.response=[]}else this.response=this.responseText="",this.JSC$19168_textDecoder_=new TextDecoder;l8Z(this)}else a.text().then(this.handleResponseText_.bind(this),this.handleSendFailure_.bind(this))};
var l8Z=function(a){a.currentReader_.read().then(a.handleDataFromStream_.bind(a)).catch(a.handleSendFailure_.bind(a))};
qf.prototype.handleDataFromStream_=function(a){if(this.inProgress_){if(this.JSC$19168_streamBinaryChunks_&&a.value)this.response.push(a.value);else if(!this.JSC$19168_streamBinaryChunks_){var z=a.value?a.value:new Uint8Array(0);if(z=this.JSC$19168_textDecoder_.decode(z,{stream:!a.done}))this.response=this.responseText+=z}a.done?ai(this):eZ(this);this.readyState==3&&l8Z(this)}};
qf.prototype.handleResponseText_=function(a){this.inProgress_&&(this.response=this.responseText=a,ai(this))};
qf.prototype.handleResponseArrayBuffer_=function(a){this.inProgress_&&(this.response=a,ai(this))};
qf.prototype.handleSendFailure_=function(){this.inProgress_&&ai(this)};
var ai=function(a){a.readyState=4;a.fetchResponse_=null;a.currentReader_=null;a.JSC$19168_textDecoder_=null;eZ(a)};
qf.prototype.setRequestHeader=function(a,z){this.requestHeaders_.append(a,z)};
qf.prototype.getResponseHeader=function(a){return this.JSC$19168_responseHeaders_?this.JSC$19168_responseHeaders_.get(a.toLowerCase())||"":""};
qf.prototype.getAllResponseHeaders=function(){if(!this.JSC$19168_responseHeaders_)return"";for(var a=[],z=this.JSC$19168_responseHeaders_.entries(),I=z.next();!I.done;)I=I.value,a.push(I[0]+": "+I[1]),I=z.next();return a.join("\r\n")};
qf.prototype.setCredentialsMode=function(a){this.JSC$19168_credentialsMode_=a};
var eZ=function(a){a.onreadystatechange&&a.onreadystatechange.call(a)};
Object.defineProperty(qf.prototype,"withCredentials",{get:function(){return this.JSC$19168_credentialsMode_==="include"},
set:function(a){this.setCredentialsMode(a?"include":"same-origin")}});var pbi=function(a){var z="";_.x8.forEach(a,function(I,J){z+=J;z+=":";z+=I;z+="\r\n"});
return z},wbz=function(a,z,I){if(_.x8.isEmpty(I))return a;
I=pbi(I);if(typeof a==="string")return _.px(a,_.L3(z),I);_.lE(a,z,I);return a};var mS0=function(){this.isInputValid_=!0;this.JSC$19173_streamPos_=0;this.leftoverInput_=""};
mS0.prototype.isInputValid=function(){return this.isInputValid_};
mS0.prototype.decode=function(a){if(!this.isInputValid_)throw this.isInputValid_=!1,Error("Vj`"+this.JSC$19173_streamPos_+"`stream already broken`"+a);this.leftoverInput_+=a;a=Math.floor(this.leftoverInput_.length/4);if(a==0)return null;try{var z=_.R8E(this.leftoverInput_.slice(0,a*4))}catch(I){throw z=this.leftoverInput_,a=I.message,this.isInputValid_=!1,Error("Vj`"+this.JSC$19173_streamPos_+"`"+a+"`"+z);}this.JSC$19173_streamPos_+=a*4;this.leftoverInput_=this.leftoverInput_.slice(a*4);return z};var Xh=function(){this.errorMessage_=null;this.result_=[];this.countLengthBytes_=this.length_=this.tag_=this.state_=this.JSC$19176_streamPos_=0;this.messageBuffer_=null;this.countMessageBytes_=0};
Xh.prototype.isInputValid=function(){return this.state_!=3};
var j3=function(a,z,I,J){a.state_=3;a.errorMessage_="The stream is broken @"+a.JSC$19176_streamPos_+"/"+I+". Error: "+J+". With input:\n"+z;throw Error(a.errorMessage_);};
Xh.prototype.acceptsBinaryInput=function(){return!0};
Xh.prototype.parse=function(a){function z(E){E&128&&j3(P,N,u,"invalid tag");(E&7)!=2&&j3(P,N,u,"invalid wire type");P.tag_=E>>>3;P.tag_!=1&&P.tag_!=2&&P.tag_!=15&&j3(P,N,u,"unexpected tag");P.state_=1;P.length_=0;P.countLengthBytes_=0}
function I(E){P.countLengthBytes_++;P.countLengthBytes_==5&&E&240&&j3(P,N,u,"message length too long");P.length_|=(E&127)<<(P.countLengthBytes_-1)*7;E&128||(P.state_=2,P.countMessageBytes_=0,typeof Uint8Array!=="undefined"?P.messageBuffer_=new Uint8Array(P.length_):P.messageBuffer_=Array(P.length_),P.length_==0&&r())}
function J(E){P.messageBuffer_[P.countMessageBytes_++]=E;P.countMessageBytes_==P.length_&&r()}
function r(){if(P.tag_<15){var E={};E[P.tag_]=P.messageBuffer_;P.result_.push(E)}P.state_=0}
for(var P=this,N=a instanceof Array?a:new Uint8Array(a),u=0;u<N.length;){switch(P.state_){case 3:j3(P,N,u,"stream already broken");break;case 0:z(N[u]);break;case 1:I(N[u]);break;case 2:J(N[u]);break;default:throw Error("Wj`"+P.state_);}P.JSC$19176_streamPos_++;u++}a=P.result_;P.result_=[];return a.length>0?a:null};var cRY=function(){this.errorMessage_=null;this.JSC$19179_streamPos_=0;this.base64Decoder_=new mS0;this.pbParser_=new Xh};
cRY.prototype.isInputValid=function(){return this.errorMessage_===null};
var yYE=function(a,z,I){a.errorMessage_="The stream is broken @"+a.JSC$19179_streamPos_+". Error: "+I+". With input:\n"+z;throw Error(a.errorMessage_);};
cRY.prototype.acceptsBinaryInput=function(){return!1};
cRY.prototype.parse=function(a){this.errorMessage_!==null&&yYE(this,a,"stream already broken");var z=null;try{var I=this.base64Decoder_.decode(a);z=I===null?null:this.pbParser_.parse(I)}catch(J){yYE(this,a,J.message)}this.JSC$19179_streamPos_+=a.length;return z};var MEG=function(){this.errorMessage_=this.jsonStreamParser_=null;this.state_=this.JSC$19182_streamPos_=0;this.result_=[];this.statusParsed_=!1};
MEG.prototype.isInputValid=function(){return this.errorMessage_===null};
MEG.prototype.acceptsBinaryInput=function(){return!1};
MEG.prototype.parse=function(a){function z(E){P.state_=6;P.errorMessage_="The stream is broken @"+P.JSC$19182_streamPos_+"/"+N+". Error: "+E+". With input:\n";throw Error(P.errorMessage_);}
function I(){P.jsonStreamParser_=new _.tN({allowCompactJsonArrayFormat:!0,deliverMessageAsRawString:!0})}
function J(E){if(E)for(var O=0;O<E.length;O++){var f={};f[1]=E[O];P.result_.push(f)}}
function r(E){if(E){(P.statusParsed_||E.length>1)&&z("extra status: "+E);P.statusParsed_=!0;var O={};O[2]=E[0];P.result_.push(O)}}
for(var P=this,N=0;N<a.length;){var u;if(u=P.state_!==2){a:{for(;N<a.length;){if(!_.Nb(a[N])){u=!0;break a}N++;P.JSC$19182_streamPos_++}u=!1}u=!u}if(u)return null;switch(P.state_){case 6:z("stream already broken");break;case 0:a[N]==="["?(P.state_=1,N++,P.JSC$19182_streamPos_++):z("unexpected input token");break;case 1:a[N]==="["?(P.state_=2,I()):a[N]===","||a.slice(N,N+5)=="null,"?P.state_=3:a[N]==="]"?(P.state_=5,N++,P.JSC$19182_streamPos_++):z("unexpected input token");break;case 2:u=P.jsonStreamParser_.parse(a.substring(N));
J(u);P.jsonStreamParser_.done()?(P.state_=3,u=P.jsonStreamParser_.JSC$11381_buffer_,P.JSC$19182_streamPos_+=a.length-N-u.length,a=u,N=0):(P.JSC$19182_streamPos_+=a.length-N,N=a.length);break;case 3:a[N]===","||a.slice(N,N+5)=="null,"?(P.state_=4,I(),P.jsonStreamParser_.parse("["),N+=a[N]===","?1:5,P.JSC$19182_streamPos_++):a[N]==="]"&&(P.state_=5,N++,P.JSC$19182_streamPos_++);break;case 4:u=P.jsonStreamParser_.parse(a.substring(N));r(u);P.jsonStreamParser_.done()?(P.state_=5,u=P.jsonStreamParser_.JSC$11381_buffer_,
P.JSC$19182_streamPos_+=a.length-N-u.length,a=u,N=0):(P.JSC$19182_streamPos_+=a.length-N,N=a.length);break;case 5:z("extra input after stream end")}}return P.result_.length>0?(a=P.result_,P.result_=[],a):null};var kLZ=function(a){this.JSC$19185_xhr_=a;this.JSC$19185_parser_=null;this.status_=this.JSC$19185_pos_=0;this.hasStreamingResponseData_=!1;this.dataHandler_=this.statusHandler_=this.JSC$19185_textDecoder_=null;this.JSC$19185_eventHandler_=new _.PJ(this);this.JSC$19185_eventHandler_.listen(this.JSC$19185_xhr_,"readystatechange",this.JSC$19187_readyStateChangeHandler_)},zK=function(a,z){a.status_!=z&&(a.status_=z,a.statusHandler_&&a.statusHandler_())},Ii=function(a){a.JSC$19185_eventHandler_.removeAll();
if(a.JSC$19185_xhr_){var z=a.JSC$19185_xhr_;a.JSC$19185_xhr_=null;z.abort();z.dispose()}};
kLZ.prototype.getStatus=function(){return this.status_};
kLZ.prototype.JSC$19187_readyStateChangeHandler_=function(a){a=a.target;try{if(a==this.JSC$19185_xhr_)a:{var z=_.$M(this.JSC$19185_xhr_),I=this.JSC$19185_xhr_.JSC$9754_lastErrorCode_,J=this.JSC$19185_xhr_.getStatus(),r=this.JSC$19185_xhr_.getResponseText();a=[];if(this.JSC$19185_xhr_.getResponse()instanceof Array){var P=this.JSC$19185_xhr_.getResponse();P.length>0&&P[0]instanceof Uint8Array&&(this.hasStreamingResponseData_=!0,a=P)}if(!(z<3||z==3&&!r&&a.length==0))if(J=J==200||J==206,z==4&&(I==8?zK(this,
7):I==7?zK(this,8):J||zK(this,3)),this.JSC$19185_parser_||(this.JSC$19185_parser_=Y_E(this.JSC$19185_xhr_),this.JSC$19185_parser_==null&&zK(this,5)),this.status_>2)Ii(this);else{if(a.length>this.JSC$19185_pos_){var N=a.length;I=[];try{if(this.JSC$19185_parser_.acceptsBinaryInput())for(var u=0;u<N;u++){var E=this.JSC$19185_parser_.parse(Array.from(a[u]));E&&(I=I.concat(E))}else{E="";if(!this.JSC$19185_textDecoder_){if(typeof TextDecoder==="undefined")throw Error("Xj");this.JSC$19185_textDecoder_=new TextDecoder}for(u=
0;u<N;u++)E+=this.JSC$19185_textDecoder_.decode(a[u],{stream:z==4&&u==N-1});I=this.JSC$19185_parser_.parse(E)}a.splice(0,N);I&&this.dataHandler_(I)}catch(f){zK(this,5);Ii(this);break a}}else if(r.length>this.JSC$19185_pos_){u=r.slice(this.JSC$19185_pos_);this.JSC$19185_pos_=r.length;try{var O=this.JSC$19185_parser_.parse(u);O!=null&&this.dataHandler_&&this.dataHandler_(O)}catch(f){zK(this,5);Ii(this);break a}}z==4?(r.length!=0||this.hasStreamingResponseData_?zK(this,2):zK(this,4),Ii(this)):zK(this,
1)}}}catch(f){zK(this,6),Ii(this)}};var MQG=function(a){a=this.xhrReader_=a;var z=(0,_.HW)(this.onData_,this);a.dataHandler_=z;a=this.xhrReader_;z=(0,_.HW)(this.onStatusChange_,this);a.statusHandler_=z;this.JSC$19189_callbackMap_={};this.callbackOnceMap_={}};
_.Z=MQG.prototype;_.Z.on=function(a,z){var I=this.JSC$19189_callbackMap_[a];I||(I=[],this.JSC$19189_callbackMap_[a]=I);I.push(z);return this};
_.Z.addListener=function(a,z){this.on(a,z);return this};
_.Z.removeListener=function(a,z){var I=this.JSC$19189_callbackMap_[a];I&&_.Di(I,z);(a=this.callbackOnceMap_[a])&&_.Di(a,z);return this};
_.Z.once=function(a,z){var I=this.callbackOnceMap_[a];I||(I=[],this.callbackOnceMap_[a]=I);I.push(z);return this};
_.Z.onData_=function(a){var z=this.JSC$19189_callbackMap_.data;z&&cY0(a,z);(z=this.callbackOnceMap_.data)&&cY0(a,z);this.callbackOnceMap_.data=[]};
var cY0=function(a,z){for(var I={},J=0;J<a.length;I={message$jscomp$1002:void 0},J++)I.message$jscomp$1002=a[J],z.forEach(function(r){return function(P){try{P(r.message$jscomp$1002)}catch(N){}}}(I))};
MQG.prototype.onStatusChange_=function(){switch(this.xhrReader_.getStatus()){case 1:YB0(this,"readable");break;case 5:case 6:case 4:case 7:case 3:YB0(this,"error");break;case 8:YB0(this,"close");break;case 2:YB0(this,"end")}};
var YB0=function(a,z){var I=a.JSC$19189_callbackMap_[z];I&&I.forEach(function(J){try{J()}catch(r){}});
(I=a.callbackOnceMap_[z])&&I.forEach(function(J){J()});
a.callbackOnceMap_[z]=[]};var qBe=function(){var a={format:"jspb"};a=a===void 0?{}:a;this.suppressCorsPreflight=a.suppressCorsPreflight||_.DH("suppressCorsPreflight",a)||!1;this.withCredentials=a.withCredentials||_.DH("withCredentials",a)||!1;this.streamInterceptors=a.streamInterceptors||[];this.unaryInterceptors=a.unaryInterceptors||[];this.workerScope=a.workerScope;this.chunkedServerStreaming=a.useFetchDownloadStreams||!1},jce=function(a,z,I,J,r,P){P=P===void 0?{}:P;
var N=z.substring(0,z.length-r.name.length),u,E=(u=P)==null?void 0:u.signal;return esV(function(O){return new Promise(function(f,A){if(E==null?0:E.aborted){var n=new _.xM(1,"Aborted");n.cause=E.reason;A(n)}else{var F={},h=auf(a,O,N);h.on("error",function(v){return void A(v)});
h.on("metadata",function(v){F=v});
h.on("data",function(v){var d=F;d=d===void 0?{}:d;f(new gRY(v,d))});
E&&E.addEventListener("abort",function(){h.cancel();var v=new _.xM(1,"Aborted");v.cause=E.reason;A(v)})}})},a.unaryInterceptors).call(a,OnZ(r,I,J)).then(function(O){return O.responseMessage})},Jb=function(a,z,I,J,r,P){P=P===void 0?{}:P;
return jce(a,z,I,J,r,P)};
qBe.prototype.serverStreaming=function(a,z,I,J){var r=this,P=a.substring(0,a.length-J.name.length);return zCG(function(N){var u=N.methodDescriptor,E=N.getMetadata(),O=IuZ(r,!1);E=JT0(r,E,O,P+u.getName());var f=rTV(O,u.responseDeserializeFn,!0);N=u.requestSerializeFn(N.requestMessage);O.send(E,"POST",N);return f},this.streamInterceptors).call(this,OnZ(J,z,I))};
var auf=function(a,z,I){var J=z.methodDescriptor,r=z.getMetadata(),P=IuZ(a,!0);a=JT0(a,r,P,I+J.getName());I=rTV(P,J.responseDeserializeFn,!1);L7e(I,r["X-Goog-Encode-Response-If-Executable"]==="base64");z=J.requestSerializeFn(z.requestMessage);P.send(a,"POST",z);return I},IuZ=function(a,z){z=a.chunkedServerStreaming&&!z;
return a.workerScope||z?new _.GV(new Y9({worker:a.workerScope,streamBinaryChunks:z})):new _.GV},JT0=function(a,z,I,J){z["Content-Type"]="application/json+protobuf";
z["X-User-Agent"]="grpc-web-javascript/0.1";var r=z.Authorization;if(r&&$SZ.has(r.split(" ")[0])||a.withCredentials)I.JSC$9754_withCredentials_=!0;if(a.suppressCorsPreflight)J=wbz(J,"$httpHeaders",z);else for(a=_.C(Object.keys(z)),r=a.next();!r.done;r=a.next())r=r.value,I.headers.set(r,z[r]);return J},rTV=function(a,z,I){if(I){I=new kLZ(a);
var J=new MQG(I)}return new k9({xhr:a,nodeReadableStream:J},z)},zCG=function(a,z){return z.reduce(function(I,J){return function(r){return J.intercept(r,I)}},a)},esV=function(a,z){return z.reduce(function(I,J){return function(r){return J.intercept(r,I)}},a)};var P3E=function(a){this.client_=new qBe;this.hostname_=a==void 0?a:a.replace(/\/+$/,"")};
_.Z=P3E.prototype;_.Z.JSC$19207_depositGoogleCredential=function(a,z,I){return Jb(this.client_,this.hostname_+"/$rpc/google.internal.identity.accountlinking.v1.AccountLinkingService/DepositGoogleCredential",a,z||{},nRZ,I)};
_.Z.deleteLink=function(a,z,I){return Jb(this.client_,this.hostname_+"/$rpc/google.internal.identity.accountlinking.v1.AccountLinkingService/DeleteLink",a,z||{},AY0,I)};
_.Z.JSC$19207_finishOAuth=function(a,z,I){return Jb(this.client_,this.hostname_+"/$rpc/google.internal.identity.accountlinking.v1.AccountLinkingService/FinishOAuth",a,z||{},F70,I)};
_.Z.getLink=function(a,z,I){return Jb(this.client_,this.hostname_+"/$rpc/google.internal.identity.accountlinking.v1.AccountLinkingService/GetLink",a,z||{},HnE,I)};
_.Z.startLinkingSession=function(a,z,I){return Jb(this.client_,this.hostname_+"/$rpc/google.internal.identity.accountlinking.v1.AccountLinkingService/StartLinkingSession",a,z||{},GLZ,I)};var ZxV=[0,svZ,1,F3Y,[0,_.MS,[0,nK0,-1]],[0,K3f],[0,HhG,-1]];var C3E=function(){this.storage=new Map},tNV=function(a,z,I,J,r){if(!a.storage.has(z))return null;
a=_.C(a.storage.get(z));for(z=a.next();!z.done;z=a.next())if(z=z.value,!r||z.linkName===r)if(I&&z.scopes&&Nci(z.scopes,I)||J&&z.capabilities&&Nci(z.capabilities,J))return z;return null},uOZ=function(a,z,I){if(!I)a.storage.delete(z);
else if(a.storage.has(z)){var J=a.storage.get(z).filter(function(r){return r.linkName!==I});
J.length>0?a.storage.set(z,J):a.storage.delete(z)}},Nci=function(a,z){z=_.C(z);
for(var I=z.next();!I.done;I=z.next())if(!a.has(I.value))return!1;return!0};var EBZ=function(){var a=_.Xw("LINK_GAL_DOMAIN");this.alsDomain1p=_.Xw("LINK_GAL_DOMAIN");this.alsDomain3p=a;this.clientEnvironment=0;this.supportedFlows=this.clientXd3=void 0;this.accountLinkingEntryPoint=0;this.galSdkEventHandler=this.dataUsageNoticeConfig=void 0;this.loggerType=0;this.colorScheme=2;this.showCloseOption=!0},BcE=function(a,z){a.apiKey=z;
return a};
EBZ.prototype.build=function(){var a={};if(this.supportedFlows===void 0||this.supportedFlows.size===0)throw Error("Yj");a.supportedFlows=this.supportedFlows;if(this.dataUsageNoticeConfig!==void 0){if(this.dataUsageNoticeConfig.enabledDataUsageNoticeUis.size===0)throw Error("Zj");if(!this.dataUsageNoticeConfig.uiAdapter)throw Error("$j");a.dataUsageNoticeConfig=this.dataUsageNoticeConfig}this.galSdkEventHandler!==void 0&&(a.galSdkEventHandler=this.galSdkEventHandler);if(this.apiKey!==void 0)a.apiKey=
this.apiKey,a.alsDomain=this.alsDomain1p;else{if(this.oauthToken===void 0)throw Error("ak");a.oauthToken=this.oauthToken;a.alsDomain=this.alsDomain3p}a.clientXd3=this.clientXd3;a.accountLinkingEntryPoint=this.accountLinkingEntryPoint;this.authUser!==void 0&&(a.authUser=this.authUser);this.bucket!==void 0&&(a.bucket=this.bucket);this.completionUrl!==void 0&&(a.completionUrl=this.completionUrl);this.interactionMode!==void 0&&(a.interactionMode=this.interactionMode);this.redirectServiceUrl!==void 0&&
(a.redirectServiceUrl=this.redirectServiceUrl);this.locale!==void 0&&(a.locale=this.locale);a.loggerType=this.loggerType;a.clientEnvironment=this.clientEnvironment;a.colorScheme=this.colorScheme;a.showCloseOption=this.showCloseOption;return a};var TP=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.GY(a)};
_.b(TP,_.ju);var gBE=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.GY(a)};
_.b(gBE,_.ju);var OxY=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.GY(a)};
_.b(OxY,_.ju);var W$=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.GY(a)};
_.b(W$,_.ju);var fuZ=function(a){return _.GL(a,1)};var AT4=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.GY(a)};
_.b(AT4,_.ju);var JW0=_.Ea(AT4),dy=[1,2,3,4,5];var aY0=function(a){try{return JW0(a)}catch(z){return null}},scV=function(){},jUf=function(a,z){switch(_.be(z,dy)){case 4:return(z=_.TL(z,OxY,4,dy))&&a.logStateTransition(_.GL(z,1)),!0;
case 5:return(z=_.TL(z,gBE,5,dy))&&a.logInternalEvent(_.GL(z,1)),!0}return!1},rWz=function(a){switch(a){case 0:return 0;
case 1:return 6;case 2:return 2;case 3:return 3;case 4:return 50;default:_.Rw(a)}};var q_Z=function(a,z){var I=this;this.validator=a;this.messageListener=z;this.dismissCallback=function(){nBZ(I,{errorCode:9,errorMessage:"iFrame closed by parent window"})};
this.JSC$19236_receiveMessage=function(J){J.type==="message"&&(J=J.event_,J!==null&&(new URL(I.iframe.src)).origin===J.origin&&I.validator(J.data,J.origin)&&!I.messageListener(J.data)&&(I.JSC$19236_resolveCb!==void 0&&I.JSC$19236_resolveCb(J.data),Kg0(I)))}},IYe=function(a,z,I){a.uiHandler!==void 0&&nBZ(a,{errorCode:7,
errorMessage:"iFrame window is already open"});return new Promise(function(J,r){a.JSC$19236_resolveCb=J;a.JSC$19236_rejectCb=r;a.iframe=document.createElement("iframe");_.lj(a.iframe,z);a.uiHandler=I.displayContent(a.iframe,a.dismissCallback);_.Sg(window,"message",a.JSC$19236_receiveMessage,!1,a)})},nBZ=function(a,z){a.JSC$19236_rejectCb!==void 0&&a.JSC$19236_rejectCb(z);
Kg0(a)},Kg0=function(a){a.uiHandler!==void 0&&a.uiHandler.hideContent();
_.FU(window,"message",a.JSC$19236_receiveMessage,!1,a);a.JSC$19236_resolveCb=void 0;a.JSC$19236_rejectCb=void 0;a.uiHandler=void 0;a.iframe=void 0};var FgY=function(a){if(a===2){var z;a=((z=window)==null?0:z.matchMedia("(prefers-color-scheme: dark)").matches)?1:0}return a},zYe=function(a){a=FgY(a);
switch(a){case 0:return"light";case 1:return"dark";default:_.Rw(a)}};var egE=new Set(["https://myaccount.google.com","https://myaccount-dev.corp.google.com","https://myaccount-autopush.corp.google.com","https://myaccount-staging.corp.google.com"]),HxE=function(a,z){this.JSC$19248_linkingSession=a;this.noticeConfig=z;this.displayInfoMap=new Map;var I=new Map;if(_.nn(this.JSC$19248_linkingSession,VQ4,7))for(a=_.JC(this.JSC$19248_linkingSession,VQ4,7),a=_.af(a,hsG,1,_.jW()),a=_.C(a),z=a.next();!z.done;z=a.next())z=z.value,I.set(_.GL(z,1),_.unM(_.JC(z,_.mq7,3)));if(I.size>
0&&this.noticeConfig!==void 0&&this.noticeConfig.enabledDataUsageNoticeUis.size>0){z=this.noticeConfig.enabledDataUsageNoticeUis;a=z.has(0)?I.get(1):void 0;z=z.has(1)?I.get(2):void 0;I=a!==void 0&&z!==void 0?I.get(3):void 0;var J=this.noticeConfig.nestedOrigins;var r=new AT4;var P=new TP;r=_.Oa(r,2,dy,P);P=new AT4;var N=new TP;P=_.Oa(P,3,dy,N);N=[];a!==void 0&&(this.displayInfoMap.set(1,[{trustedUrl:a,lastEvent:r,nestedOrigins:J}]),N.push({trustedUrl:a,lastEvent:r,nestedOrigins:J}));z!==void 0&&(this.displayInfoMap.set(2,
[{trustedUrl:z,lastEvent:P,nestedOrigins:J}]),N.push({trustedUrl:z,lastEvent:P,nestedOrigins:J}));I!==void 0?this.displayInfoMap.set(3,[{trustedUrl:I,lastEvent:P,nestedOrigins:J}]):this.displayInfoMap.set(3,N)}};var bxz=function(a){var z=new C3E;this.galService=a;this.galCache=z};
bxz.prototype.getLink=function(a){var z=a.serviceId;var I=a.scopes;var J=a.capabilities;var r=a.linkName;var P=this,N;return _.t(function(u){if(J!==void 0&&I!==void 0)throw Error("bk");N=tNV(P.galCache,z,I,J,r);return N!==null?u.return(N):u.return(P.galService.getLink({serviceId:z,sessionId:Math.floor(Math.random()*2147483648),scopes:I,capabilities:J,linkName:r}).then(function(E){E=txV(E);var O=P.galCache;O.storage.has(z)?O.storage.get(z).push(E):O.storage.set(z,[E]);return E}))})};
bxz.prototype.deleteLink=function(a,z,I){var J=this;return _.t(function(r){uOZ(J.galCache,a,I);return r.return(J.galService.deleteLink({serviceId:a,sessionId:Math.floor(Math.random()*2147483648),accountLinkingEntryPoint:z,linkName:I}).then(function(){return!0}))})};var VN4=function(a,z){var I=this;this.validator=a;this.msgHandler=z;this.closedPopupTimeout=this.JSC$19270_rejectCb=this.JSC$19270_resolveCb=this.popup=null;this.JSC$19270_receiveMessage=function(J){if(J!==null&&(J=J.event_,J.source===I.popup)){var r=J.data;if(I.validator(r,J.origin)){var P;(P=I.msgHandler)!=null&&P.call(I,r)||(I.JSC$19270_resolveCb!==null&&I.JSC$19270_resolveCb(r),hC0(I))}}}};
VN4.prototype.open=function(a,z){var I=this;this.popup!==null&&QcY(this);return new Promise(function(J,r){I.JSC$19270_resolveCb=J;I.JSC$19270_rejectCb=r;I.popup=_.wO(window,a,"",z);_.Sg(window,"message",I.JSC$19270_receiveMessage,!1,I);Sti(I)})};
var QcY=function(a,z){a.JSC$19270_rejectCb!==null&&a.JSC$19270_rejectCb(z);hC0(a)},hC0=function(a){a.closedPopupTimeout&&(a.closedPopupTimeout.cancel(),a.closedPopupTimeout=null);
a.popup&&a.popup.close();_.FU(window,"message",a.JSC$19270_receiveMessage,!1,a);a.popup=null;a.JSC$19270_resolveCb=null;a.JSC$19270_rejectCb=null},Sti=function(a){a.closedPopupTimeout=_.BJl(100).then(function(){a.popup?a.popup.closed?ixE(a):Sti(a):QcY(a,{errorCode:8,
errorMessage:"Popup blocked by the browser"})},function(){})},ixE=function(a){a.closedPopupTimeout=_.BJl(100).then(function(){QcY(a,{errorCode:9,
errorMessage:"Popup closed by the user"})},function(){})};var xHi=new Set(["https://oauth-redirect.googleusercontent.com","https://oauth-redirect-sandbox.googleusercontent.com","https://oauth-redirect-test.googleusercontent.com"]),vBZ=function(a,z,I,J,r,P,N,u,E,O){var f=this;this.serviceId=a;this.sessionId=z;this.galService=I;this.oauthDetails=J;this.galLogger=r;this.interactionMode=P;this.redirectServiceUrl=N;this.consentLanguageKeys=u;this.dynamicUrlParameters=E;this.partnerConfigMinReadTimestamp=O;this.started=!1;this.JSC$19276_dataValidator=function(A,
n){var F=xHi.has(n);F||f.redirectServiceUrl===void 0||(F=f.redirectServiceUrl===n);return F?A.sentinel==="gdi":!1}};
vBZ.prototype.complete=function(){var a=this,z;return _.t(function(I){if(a.interactionMode!==1)return I.return(Promise.resolve({statusCode:7,statusMessage:"Flow completion is only supported for redirect mode"}));z=Ul.getRedirectStateFromUri();return z===null?I.return(Promise.resolve({statusCode:12,statusMessage:"redirect_state is missing in URI"})):I.return(G2E(a,z))})};
vBZ.prototype.start=function(){var a=this,z;return _.t(function(I){if(a.started)return I.return(Promise.resolve({statusCode:12,statusMessage:"OAuth flow is already active."}));if(!_.vb(a.oauthDetails,1))return I.return(Promise.resolve({statusCode:7,statusMessage:"OAuth flow does not have redirect URL"}));if(a.interactionMode===1)return Ul.setLocation(_.vb(a.oauthDetails,1)),I.return(Promise.resolve({statusCode:6,statusMessage:"OAuth flow redirected to different page"}));a.started=!0;a.galLogger.logStateTransition(5);
z=Ul.getPostMessagePopup(a.JSC$19276_dataValidator);return I.return(z.open(_.vb(a.oauthDetails,1),"width=500,height=700,\n        top="+Math.max((window.screen.availHeight-700)/2,0)+",left="+Math.max((window.screen.availWidth-500)/2,0)).then(function(J){a.started=!1;var r=a.galLogger;if((J==null?void 0:J.error)!==void 0)throw r.logInternalEvent(59),Error("ck");if((J==null?void 0:J.redirect_state)===void 0)throw r.logInternalEvent(131),Error("dk");return G2E(a,J.redirect_state)}).catch(function(J){a.started=
!1;
return J.errorCode!==void 0?{statusCode:J.errorCode,statusMessage:J.errorMessage}:{statusCode:7,statusMessage:"OAuth flow popup page did not return result"}}))})};
var G2E=function(a,z){return _.t(function(I){return I.return($HZ(a.galService,{serviceId:a.serviceId,sessionId:a.sessionId,dynamicUrlParameters:a.dynamicUrlParameters,redirectState:z,consentLanguageKeys:a.consentLanguageKeys,partnerConfigMinReadTimestamp:a.partnerConfigMinReadTimestamp}).then(function(J){var r={statusCode:1,link:txV(J.getLink())};wvM(_.Fg(J,3))!==void 0&&(r.callerState=wvM(_.Fg(J,3)));a.galLogger.logInternalEvent(134);return r}))})},Ul={getPostMessagePopup:function(a){return new VN4(a)},
getRedirectStateFromUri:function(){var a=_.Rf(Ul.getLocation()).fragment_;return(new _.ZP(a)).get("redirect_state",null)},
getLocation:function(){return window.location.href},
setLocation:function(a){_.tdx(window.location,_.XG(a))},
createOAuthFlow:function(a,z){return new vBZ(a.serviceId,a.sessionId,a.galService,z,a.galLogger,a.interactionMode,a.redirectServiceUrl,a.consentLanguageKeys,a.dynamicUrlParameters,a.partnerConfigMinReadTimestamp)}};var XrZ=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.GY(a)};
_.b(XrZ,_.ju);var Tce=_.Ea(XrZ);var dHV=new Set(["https://myaccount.google.com","https://myaccount-dev.corp.google.com","https://myaccount-autopush.corp.google.com","https://myaccount-staging.corp.google.com"]),WgZ=function(a,z,I,J,r,P,N,u,E){var O=this;this.serviceId=a;this.sessionId=z;this.galService=I;this.gsiWebFlowDetails=J;this.colorScheme=r;this.showCloseOption=P;this.galLogger=N;this.interactionMode=u;this.redirectServiceUrl=E;this.started=!1;this.JSC$19288_dataValidator=function(f,A){var n=dHV.has(A);n||O.redirectServiceUrl===
void 0||(n=O.redirectServiceUrl===A);return n?f.sentinel==="gal":!1};
this.logEventProcessor=function(f){return f.result?(f=aY0(f.result))?jUf(O.galLogger,f):!1:!1}};
WgZ.prototype.complete=function(){var a=this,z,I;return _.t(function(J){if(a.interactionMode!==1)return J.return(Promise.resolve({statusCode:7,statusMessage:"Flow completion is only supported for redirect mode"}));z=Dl.getRedirectStateFromUri();if(z===void 0)return a.galLogger.JSC$19228_logErrorEvent(131),J.return(Promise.resolve({statusCode:12,statusMessage:"redirect_state is missing in URI"}));try{return I=oBE(a,z),J.return(UHi(a,I))}catch(r){return J.return(Promise.resolve({statusCode:12,statusMessage:"`e`"}))}})};
WgZ.prototype.start=function(){var a=this,z;return _.t(function(I){if(a.started)return I.return(Promise.resolve({statusCode:12,statusMessage:"Streamlined flow is already active."}));if(!_.vb(a.gsiWebFlowDetails,1))return I.return(Promise.resolve({statusCode:7,statusMessage:"Streamlined flow does not have URL"}));if(a.interactionMode===1)return Dl.setLocation(DHZ(a,_.vb(a.gsiWebFlowDetails,1))),I.return(Promise.resolve({statusCode:6,statusMessage:"Streamlined flow redirected to different page"}));
a.started=!0;z=Dl.getPostMessagePopup(a.JSC$19288_dataValidator,a.logEventProcessor);return I.return(z.open(DHZ(a,_.vb(a.gsiWebFlowDetails,1)),"width=500,height=700,\n        top="+Math.max((window.screen.availHeight-700)/2,0)+",left="+Math.max((window.screen.availWidth-500)/2,0)).then(function(J){a.started=!1;if((J==null?void 0:J.result)===void 0)throw a.galLogger.JSC$19228_logErrorEvent(131),Error("dk");J=oBE(a,J.result);return UHi(a,J)}).catch(function(J){a.started=!1;
return J.errorCode!==void 0?{statusCode:J.errorCode,statusMessage:J.errorMessage}:{statusCode:7,statusMessage:"Streamlined flow popup page did not return result"}}))})};
var DHZ=function(a,z){a=["result_channel",a.interactionMode===1?"2":"1","color_scheme",zYe(a.colorScheme),"show_close_option",a.showCloseOption];return Qve(z,a)},UHi=function(a,z){if(z!==null&&_.nn(z,W$,2)){var I,J=z==null?void 0:(I=_.JC(z,W$,2))==null?void 0:_.GL(I,2);
J&&a.galLogger.JSC$19228_logErrorEvent(rWz(J));return fuZ(_.JC(z,W$,2))===1?Promise.resolve({statusCode:10,statusMessage:"flow cannot start due to recoverable reason"}):Promise.resolve({statusMessage:"Web-endpoint returned an error",statusCode:7})}return a.galService.getLink({serviceId:a.serviceId,sessionId:a.sessionId,consistencyKey:_.vb(z,1)}).then(function(r){r=txV(r);a.galLogger.logInternalEvent(134);return{statusCode:1,link:r}})},oBE=function(a,z){z=Tce(z);
if(!_.nn(z,W$,2)&&_.vb(z,1)==="")throw a.galLogger.JSC$19228_logErrorEvent(5),Error("ek");return z},Dl={getPostMessagePopup:function(a,z){return new VN4(a,z)},
getRedirectStateFromUri:function(){return _.Lo(_.Rf(Dl.getLocation()),"redirect_state")},
getLocation:function(){return window.location.href},
setLocation:function(a){_.tdx(window.location,_.XG(a))},
createStreamlinedFlow:function(a,z){return new WgZ(a.serviceId,a.sessionId,a.galService,z,a.colorScheme,a.showCloseOption,a.galLogger,a.interactionMode,a.redirectServiceUrl)}};var VxY=function(){var a=_.sUd("GAL");this.storage=a?new _.Hy(a):null};
VxY.prototype.getSession=function(a){if(this.storage!==null)try{var z=this.storage.get("SAVED_SESSION");if(z===void 0)return null;if(z.serviceId===a)return z}catch(I){}return null};var rK=function(){};
_.b(rK,scV);rK.prototype.logStateTransition=function(){};
rK.prototype.logInternalEvent=function(){};
rK.prototype.JSC$19228_logErrorEvent=function(){};var RCf=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.GY(a)};
_.b(RCf,_.ju);RCf.prototype.getCompletionUrl=function(){return _.vb(this,15)};var PN=function(a,z,I,J,r,P){this.serviceId=a;this.environment=z;this.sessionId=I;this.colorSchemeSelected=J;this.colorThemeDisplayed=r;this.JSC$19301_transport=P;this.currentState=1};
_.b(PN,scV);PN.prototype.logStateTransition=function(a){var z=LgG(this);z=_.ro(z,3,this.currentState);z=_.ro(z,1,a);this.currentState=a;a=iUZ(1);this.dispatch(z,a)};
PN.prototype.logInternalEvent=function(a){a=iUZ(a);this.dispatch(LgG(this),a)};
PN.prototype.JSC$19228_logErrorEvent=function(a){var z=LgG(this);z=_.ro(z,1,10);a=iUZ(a);this.dispatch(z,a)};
var LgG=function(a){var z=new RCf;z=_.ro(z,1,a.currentState);z=_.KB(z,7,a.serviceId);var I,J;var r=((I=window)==null?0:(J=I.location)==null?0:J.href)?_.Rf(window.location.href).JSC$9989_domain_:"NO_PACKAGE_NAME";I=_.KB(z,8,r);I=_.ro(I,6,a.environment);I=_.KB(I,5,"100");I=_.ro(I,11,a.colorSchemeSelected);return _.ro(I,12,a.colorThemeDisplayed)};
PN.prototype.dispatch=function(a,z){z===void 0&&(z=new _.tH);var I=z;a=a.serialize();I=_.KB(I,8,a);_.Fd(I,12,this.sessionId);this.JSC$19301_transport.dispatch(z)};var luE=function(a,z){this.loggerType=a;this.sessionIndex=z!=null?z:0},prf;
luE.prototype.create=function(a,z,I,J,r){switch(this.loggerType){case 0:return new rK;case 1:return prf||(prf=(new _.NC(555,this.sessionIndex.toString())).build()),new PN(a,z,I,J,r,prf);default:_.Rw(this.loggerType,"unknown logger type")}};var Rj=[6,2,3,1],Ggi=new Map([[4,1],[1,6],[2,2],[3,3]]),gpG={statusCode:7,statusMessage:"Failed to create flow object"},b5Z=function(a,z,I,J,r,P,N,u,E,O){this.serviceId=a;this.sessionId=z;this.config=I;this.galService=J;this.JSC$19308_linkingSession=r;this.googleScopes=P;this.callerState=N;this.consentLanguageKeys=u;this.dynamicUrlParameters=E;this.partnerConfigMinReadTimestamp=O;this.currentFlow=0;J=this.JSC$19308_linkingSession;r=new Set;_.nn(J,npZ,1)&&r.add(1);_.nn(J,SBZ,2)&&_.nn(J,KHz,6)&&r.add(2);
_.nn(J,Qsz,3)&&_.nn(J,KHz,6)&&r.add(3);_.nn(J,bnZ,4)&&r.add(6);this.supportedFlows=r;J=I.loggerType;r=I.clientEnvironment;a:{P=I.colorScheme;switch(P){case 0:P=1;break a;case 1:P=2;break a;case 2:P=3;break a;default:_.Rw(P)}P=void 0}a:{N=I.colorScheme;N=FgY(N);switch(N){case 0:N=1;break a;case 1:N=2;break a;default:_.Rw(N)}N=void 0}this.galLogger=(new luE(J,I.authUser)).create(a,r,z,P,N)},mHE=function(a){return new Promise(function(z){var I,J,r,P,N,u,E,O,f,A;
return _.t(function(n){switch(n.nextAddress){case 1:I=FHG(a.currentFlow,a.supportedFlows),J=!1,r=new HxE(a.JSC$19308_linkingSession,a.config.dataUsageNoticeConfig);case 2:if(I===void 0){n.jumpTo(4);break}_.BP(n,5);var F=r,h=I,v=void 0;J?h===1&&(v=F.displayInfoMap.get(2)):h===2||h===3?v=F.displayInfoMap.get(1):h===1&&(v=F.displayInfoMap.get(3));P=v?v:[];N=a.consentLanguageKeys;u=_.C(P);E=u.next();case 7:if(E.done)return a.currentFlow=I,n.yield(fYM(wrz(a,N)),11);O=E.value;return n.yield(P8G(O,a.config.dataUsageNoticeConfig.uiAdapter,
a.config.colorScheme,a.galLogger),10);case 10:f=n.yieldResult;if(f.statusCode!==1)return QU4(a.serviceId),a.currentFlow=0,z(oj({statusCode:f.statusCode,statusMessage:f.statusMessage},a.callerState)),n.return();f.consentLanguageKeys!==void 0&&(N=f.consentLanguageKeys);E=u.next();n.jumpTo(7);break;case 11:A=n.yieldResult;if(A.statusCode!==10)return A.statusCode!==6&&(QU4(a.serviceId),a.currentFlow=0),A.statusCode!==1&&a.callerState!==void 0&&(A.callerState=a.callerState),z(A),n.return();_.p1(n,6);break;
case 5:_.sk(n);case 6:I=FHG(a.currentFlow,a.supportedFlows);J=!0;n.jumpTo(2);break;case 4:QU4(a.serviceId),a.currentFlow=0,z(oj({statusCode:12,statusMessage:"Linking failed"},a.callerState)),_.nu(n)}})})},xoz=function(a,z,I){a.currentFlow=z;
return AWM(wrz(a,I)).then(function(J){return J.statusCode===10&&a.config.interactionMode===1&&FHG(a.currentFlow,a.supportedFlows)!==void 0?mHE(a):J})},wrz=function(a,z){return{flowParams:{serviceId:a.serviceId,
sessionId:a.sessionId,galService:a.galService,galLogger:a.galLogger,interactionMode:a.config.interactionMode,redirectServiceUrl:a.config.redirectServiceUrl,colorScheme:a.config.colorScheme,consentLanguageKeys:z,dynamicUrlParameters:a.dynamicUrlParameters,showCloseOption:a.config.showCloseOption,partnerConfigMinReadTimestamp:a.partnerConfigMinReadTimestamp},currentFlow:a.currentFlow,config:a.config,session:a.JSC$19308_linkingSession,googleScopes:a.googleScopes,callerState:a.callerState}};var XdZ=function(a,z){this.config=a;this.galService=z.getService();this.JSC$19321_galRepository=z.JSC$19339_galRepository};
XdZ.prototype.getLink=function(a,z){return yTZ(this,a,z)};
var yTZ=function(a,z,I){return a.JSC$19321_galRepository.getLink({serviceId:z,scopes:void 0,capabilities:void 0,linkName:I}).then(function(J){return{statusCode:1,link:J}}).catch(function(J){return{statusCode:$oZ(J.code),
statusMessage:J.message}})};
XdZ.prototype.deleteLink=function(a,z){return this.JSC$19321_galRepository.deleteLink(a,this.config.accountLinkingEntryPoint,z).then(function(){return{statusCode:1}}).catch(function(I){return{statusCode:$oZ(I.code),
statusMessage:I.message}})};
XdZ.prototype.startLinkingSession=function(a){var z=a.serviceId;var I=a.sessionId;return hY4({serviceId:z,sessionId:I!==void 0?I:Math.floor(Math.random()*2147483648),config:this.config,galService:this.galService,loginHint:a.loginHint,callerState:a.callerState,consentLanguageKeys:a.consentLanguageKeys,linkName:a.linkName,dynamicUrlParameters:a.dynamicUrlParameters,partnerConfigMinReadTimestamp:a.partnerConfigMinReadTimestamp})};var Zg=function(a,z,I,J,r,P,N){this.apiKey=z;this.authUser=I;this.oauthToken=J;this.bucket=r;this.locale=P;this.galSdkEventHandler=N;if(J===void 0){if(z===void 0)throw Error("fk");this.useFpa=!0}else this.useFpa=!1;this.galServiceClient=new P3E(a)};
Zg.prototype.deleteLink=function(a){var z=a.serviceId;var I=a.sessionId;var J=a.accountLinkingEntryPoint;var r=a.linkName;var P=this,N;return _.t(function(u){var E=(new p9).setHeader(P.getHeader(I));var O=k2G({serviceId:z,linkName:r});E=_.gO(E,2,O);N=_.Wb(E,3,J);return u.return(P.makeRequest(P.galServiceClient.deleteLink,N,[1,3],[2,4]))})};
var $HZ=function(a,z){var I=z.serviceId;var J=z.sessionId;var r=z.dynamicUrlParameters;var P=z.redirectState;var N=z.consentLanguageKeys;var u=z.partnerConfigMinReadTimestamp;var E;return _.t(function(O){var f=(new mr).setHeader(a.getHeader(J,r));f=_.yr(f,2,I);E=_.yr(f,4,P);N!==void 0&&_.yr(E,5,N);u!==void 0&&_.gO(E,6,u);return O.return(a.makeRequest(a.galServiceClient.JSC$19207_finishOAuth,E,[1,3],[2,4]))})};
Zg.prototype.getLink=function(a){var z=a.serviceId;var I=a.sessionId;var J=a.scopes;var r=a.capabilities;var P=a.consistencyKey;var N=a.linkName;var u=this,E;return _.t(function(O){var f=(new yJ).setHeader(u.getHeader(I)),A=k2G({serviceId:z,scopes:J,capabilities:r,linkName:N});E=_.gO(f,2,A);P!==void 0&&(f=tQe(),f=_.yr(f,2,P),_.gO(E,3,f));return O.return(u.makeRequest(u.galServiceClient.getLink,E,[1,3],[2,4]))})};
var sUz=function(a,z){var I=z.serviceId;var J=z.sessionId;var r=z.googleScopes;var P=z.consistencyKey;var N;return _.t(function(u){var E=(new w_).setHeader(a.getHeader(J));E=_.yr(E,2,I);var O=Array.from(r.values());E=_.kZ(E,3,O,_.te);O=tQe();O=_.yr(O,2,P);N=_.gO(E,4,O);return u.return(a.makeRequest(a.galServiceClient.JSC$19207_depositGoogleCredential,N,[1,3],[2,4]))})};
Zg.prototype.startLinkingSession=function(a){var z=a.serviceId;var I=a.sessionId;var J=a.scopes;var r=a.capabilities;var P=a.loginHint;var N=a.supportedFlows;var u=a.completionUrl;var E=a.usePingPong;var O=a.twoWayLinking;var f=a.accountLinkingEntryPoint;var A=a.callerState;var n=a.consentLanguageKeys;var F=a.googleScopes;var h=a.dataUsageNoticeConfig;var v=a.linkName;var d=a.dynamicUrlParameters;var W=a.partnerConfigMinReadTimestamp;var l=this,q,m;return _.t(function(M){if(r!==void 0&&J!==void 0)throw Error("bk");
var y=(new vRG).setHeader(l.getHeader(I,d));q=_.yr(y,2,z);v!==void 0&&_.yr(q,14,v);if(r!==void 0){y=q;var e=Array.from(r.values());_.kZ(y,5,e,_.te)}else J!==void 0&&(y=q,e=Array.from(J.values()),_.kZ(y,3,e,_.te));u!==void 0&&_.yr(q,6,u);E!==void 0&&_.vJ(q,15,E);N!==void 0&&(y=q,e=Array.from(N.values()),_.kZ(y,4,e,_.yi));if(O!==void 0){if(O&&(!F||F.size===0))throw Error("gk");_.vJ(q,8,O)}f!==void 0&&_.Wb(q,9,f);P!==void 0&&_.yr(q,13,P);A!==void 0&&(y=q,e=(new TextEncoder).encode(A),_.M0(y,12,_.Qi(e,
!1),_.Vi()));n!==void 0&&_.yr(q,16,n);W!==void 0&&_.gO(q,18,W);if(h!==void 0&&h.size>0||F!==void 0&&F.size>0)m=new xSf,F!==void 0&&F.size>0&&(y=m,e=Array.from(F.values()),_.kZ(y,1,e,_.te)),h!==void 0&&(h.has(0)&&_.d03(m,2,_.yi,1,_.YG),h.has(1)&&_.d03(m,2,_.yi,2,_.YG)),_.gO(q,17,m);return M.return(l.makeRequest(l.galServiceClient.startLinkingSession,q,[1],[2]))})};
Zg.prototype.getMetadata=function(){var a=this,z,I;return _.t(function(J){z={};a.useFpa?(z["X-Goog-Api-Key"]=a.apiKey,z["X-Goog-AuthUser"]=a.authUser!==void 0?a.authUser.toString():"0",(I=_.pK$([]))&&(z.Authorization=I)):z.Authorization="Bearer "+a.oauthToken;a.locale&&(z["accept-language"]=a.locale);return J.return(z)})};
Zg.prototype.makeRequest=function(a,z,I,J){var r=this,P;return _.t(function(N){if(N.nextAddress==1)return N.yield(r.getMetadata(),2);P=N.yieldResult;MN0(r,I);return N.return(a.bind(r.galServiceClient)(z,P).finally(function(){MN0(r,J)}))})};
var MN0=function(a,z){a.galSdkEventHandler!==void 0&&z.forEach(function(I){a.galSdkEventHandler.onEvent(I)})};
Zg.prototype.getHeader=function(a,z){var I=new Ra;a=_.M0(I,2,_.qE(a),0);a=_.Wb(a,5,3);z=_.kZ(a,8,z,_.te);this.bucket!==void 0&&_.yr(z,1,this.bucket);return z};
var k2G=function(a){var z=a.serviceId;var I=a.scopes;var J=a.capabilities;a=a.linkName;if(J!==void 0&&I!==void 0)throw Error("bk");var r=new Cef;z=_.yr(r,1,z);J!==void 0?(I=Array.from(J.values()),_.kZ(z,5,I,_.te)):I!==void 0&&(I=Array.from(I.values()),_.kZ(z,3,I,_.te));a!==void 0&&_.yr(z,6,a);return z};var Tge=function(a){this.galService=new Zg(a.alsDomain,a.apiKey,a.authUser,a.oauthToken,a.bucket,a.locale,a.galSdkEventHandler);this.JSC$19339_galRepository=new bxz(this.galService)};
Tge.prototype.getService=function(){return this.galService};var cTZ=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.GY(a)};
_.b(cTZ,_.ju);var YtE=function(a){var z=new cTZ;return _.ro(z,1,a)};
cTZ.prototype.setErrorMessage=function(a){return _.KB(this,2,a)};var qtY=[0,_.YR,_.kR,_.YR];var Cg=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.GY(a)};
_.b(Cg,_.ju);var eCf=[0,[1,2,3],_.cb,[0,gKZ,AIi,-1],_.cb,[0,fyf,-1],_.cwp];var aof=[0,_.m7,1,_.YR,_.kR,-1,1,_.emd,_.wL,_.YR,-1,eCf];var jHe=[0,_.YR,[0,_.emd,_.wL,[0,_.kR]],_.yg,[0,_.YR,-1]];var hU=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.GY(a)};
_.b(hU,_.ju);var zSZ=[0,_.kR,_.YR,-2,_.m7,_.YR,_.m7,_.YR,-2,1,_.yg];var IoY=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.GY(a)};
_.b(IoY,_.ju);var JHE=[0,_.m7];var rHe=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.GY(a)};
_.b(rHe,_.ju);var PnE=[0,_.YR,jHe,JHE,zSZ,aof];var rEz=_.tx(rHe,PnE);var ZpZ=[0,ZxV];var uFZ=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.GY(a)};
_.b(uFZ,_.ju);var Cn0=[0,[1,3],bhE,_.YR,bhE];var Hm=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.GY(a)};
_.b(Hm,_.ju);var NZe=[0,_.YR];var tqZ=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.GY(a)};
_.b(tqZ,_.ju);var bV=function(a){return _.TL(a,cTZ,2,FH)},uU0=function(a){var z=new tqZ;
return _.Oa(z,2,FH,a)},FH=[1,
2];var EMi=[0,FH,_.cb,NZe,_.cb,qtY,_.MS,Cn0,1,_.YR,ZpZ];var BZM=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.GY(a)};
_.b(BZM,_.ju);var Op0=function(a){var z=new BZM;return _.Oa(z,3,gM0,a)},gM0=[2,
3];var NX=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.GY(a)};
_.b(NX,_.ju);var foe=function(a,z){return _.gO(a,2,z)},AHz=function(a,z){return _.gO(a,8,z)},sHM=function(a,z){return _.gO(a,3,z)};var nMG=[0,_.YR,EMi,PnE,_.CjG,[0,[5,6,7],[0,_.YR,-2],[0,_.m7,_.YR,_.kR],[0,eCf],[0,_.kR,_.YR,-1,_.Z4w,_.YR],_.cb,[0,[0,_.m7],_.YR,-1],_.cb,[0,[3,4],_.YR,-1,_.cb,[0,[0,_.YR,_.yg]],_.cb,[0,[0,[0,[1,2],_.cb,[0],_.cb,[0]]]]],_.cb,[0]],_.CjG,-1,[0,gM0,_.YR,_.cb,NZe,_.cb,qtY,_.MS,Cn0,[0,ZxV]]];var KiV=_.tx(NX,nMG),FiV=_.uj(nMG);var Hpe=function(){_.FC.call(this)};
_.b(Hpe,_.FC);Hpe.prototype.init=function(){};
new Hpe;var bpi=_.kK(["data-"]),hSE=_.kK(["aria-"]),Vqi=_.kK(["aria-"]),tb=function(a,z){this.isLatencyMeasurementExperiment=a===void 0?!1:a;this.enableDialogA11yFix=z===void 0?!1:z;this.JSC$19368_win=window;this.focusChangeListener=this.handleFocusChange.bind(this);this.origin=_.X4e(_.IE.location.href)},ZUE=function(a,z){a.onConsentPrimitiveShownCallback=z},QHM=function(a,z){return a.overriddenIframeLoadTimeout?a.overriddenIframeLoadTimeout:z!==void 0?z:5E3},Niz=function(a){if(a.prewarmPromise!==void 0)return a.prewarmPromise;
a.prewarmPromise=new Promise(function(z,I){uT(a,1);Ss4(a,ipE(a,!0),xQG(a));a.iframe?a.prewarmChannel||vMz(a,a.iframe,z):I(Error("hk"))});
a.prewarmPromise.finally(function(){a.prewarmPromise=void 0});
return a.prewarmPromise};
tb.prototype.showPrimitive=function(){var a=this;if(this.consentPromise!==void 0)return this.consentPromise;var z=Date.now();GV0(this,z);this.consentPromise=new Promise(function(I,J){uT(a,0,z);var r=a.isDarkTheme();a.isLatencyMeasurementExperiment||a.initialLoadingStrategy===1||a.initialLoadingStrategy===2||(a.loadingBar||(a.loadingBar=Uo0(getComputedStyle(document.body).direction==="rtl",r),a.loadingBar.style.position="fixed",a.loadingBar.style.zIndex="15000"),document.body.appendChild(a.loadingBar));
Ss4(a,ipE(a),xQG(a));a.iframe?a.channel||$Q0(a,a.iframe,I,J):(XVE(a),J(Error("hk")))});
this.consentPromise.finally(function(){a.consentPromise=void 0});
return this.consentPromise};
var $Q0=function(a,z,I,J){var r,P;_.t(function(N){switch(N.nextAddress){case 1:uT(a,3);r=!1;setTimeout(function(){if(!r){XVE(a);TZV(a);dQ4(a);var u=YtE(7).setErrorMessage("Timeout connecting to iframe");I(AHz(foe(new NX,uU0(u)),Op0(u)))}},QHM(a,Wi4(a)));
if(!a.prewarmPromise){N.jumpTo(2);break}_.BP(N,3);return N.yield(a.prewarmPromise,5);case 5:_.p1(N,2);break;case 3:_.sk(N),P=YtE(4).setErrorMessage("Error while prewarming."),I(AHz(foe(new NX,uU0(P)),Op0(P)));case 2:a.prewarmChannel&&a.prewarmChannel.send(FiV(sHM(new NX,a.consentPrimitiveRequest))),a.channel=_.ac({destination:a.JSC$19368_win,iframe:z,origin:oMM(a),channelName:"cpw",onEstablished:function(){r=!0;XVE(a);a.isLatencyMeasurementExperiment||(a.JSC$19368_previousBodyOverflow=document.body.style.overflow,
a.JSC$19368_previousHtmlOverscroll=document.documentElement.style.overscrollBehavior,a.JSC$19368_previousBodyOverscroll=document.body.style.overscrollBehavior,document.documentElement.style.overscrollBehavior="contain",document.body.style.overscrollBehavior="contain",document.body.style.overflow="hidden",a.enableDialogA11yFix&&window.addEventListener("blur",a.focusChangeListener));var u=a.iframe;u.style.bottom="0";u.style.position="fixed";u.style.right="0";u.style.border="none";u.style.left="0";u.style.top=
"0";u.style.zIndex="5000";u.style.pointerEvents="";u.style.visibility="";a.initialLoadingStrategy===2||a.initialLoadingStrategy===3?uT(a,4):uT(a,6);var E;(E=a.onConsentPrimitiveShownCallback)==null||E.call(a)},
onMessage:function(u){u=KiV(u.data);switch(_.GL(u,1)){case 1:TZV(a);var E=DoZ(_.JC(u,_.T0,7));E&&(a.initialLoadingStrategy!==2&&a.initialLoadingStrategy!==3||uT(a,6,E),uT(a,5,E));if(E=DoZ(_.JC(u,_.T0,6)))uT(a,7,E),uT(a,8);var O,f;((O=_.JC(u,tqZ,2))==null?void 0:_.be(O,FH))!==0&&((f=_.JC(u,BZM,8))==null?void 0:_.be(f,gM0))!==0||J(Error("ik"));I(u);break;case 2:dQ4(a)}}}),_.nu(N)}})},vMz=function(a,z,I){a.prewarmChannel=_.ac({destination:a.JSC$19368_win,
iframe:z,origin:oMM(a),channelName:"pwcp",onEstablished:function(){uT(a,2);I()}})},oMM=function(a){var z=_.bj(a.src).toString();
return z&&z.indexOf("://")<0&&z.indexOf("//")!==0?a.origin:_.X4e(z)},ipE=function(a,z){z=z===void 0?!1:z;
var I,J=new Map([["origin",a.origin],["hl",(I=UQ0(a))!=null?I:null]]);z&&J.set("pw","1");z=_.C([["cpr",a.consentPrimitiveRequest.serialize()]]);for(I=z.next();!I.done;I=z.next()){var r=_.C(I.value);I=r.next().value;r=r.next().value;J.set(I,r)}a.isDarkTheme()&&J.set("color_scheme","dark");return _.rJ(a.src,J)},XVE=function(a){a.isLatencyMeasurementExperiment||a.loadingBar&&document.body.removeChild(a.loadingBar)};
tb.prototype.getSrc=function(){var a=_.MY(this.origin),z;var I=(z=_.JC(this.consentPrimitiveRequest,IoY,3))==null?void 0:_.za(z,1);z="consent.google.com";I=I?"/u/"+encodeURIComponent(I.toString()):"";(a==null?0:a.endsWith("youtube.com"))?z="consent.youtube.com":(a=a==null?void 0:a.match("google\\.(co\\.)?([a-z]{2,3})$"))&&(z="consent.google."+((a[1]?"co.":"")+encodeURIComponent(a[2])));return _.H9("https://"+z+"/signedin"+I+"/landing")};
var Ss4=function(a,z,I){a.iframe||(a.iframe=document.createElement("iframe"),a.iframe.style.width="100%",a.iframe.style.height="100%",I!==112496729&&(a.iframe.style.colorScheme="auto"),a.isLatencyMeasurementExperiment&&(a.iframe.style.display="none"),_.lj(a.iframe,z),a.iframe.setAttribute("jsname","C5o1O"),DQi(a.iframe),document.body.appendChild(a.iframe))},DQi=function(a){a.style.bottom="-200vh";
a.style.position="fixed";a.style.right="-200vw";a.style.border="";a.style.left="";a.style.top="";a.style.zIndex="";a.style.pointerEvents="none";a.style.visibility="hidden"},TZV=function(a){a.iframe&&(a.isLatencyMeasurementExperiment||(a.JSC$19368_previousHtmlOverscroll!==void 0&&(document.documentElement.style.overscrollBehavior=a.JSC$19368_previousHtmlOverscroll),a.JSC$19368_previousBodyOverscroll!==void 0&&(document.body.style.overscrollBehavior=a.JSC$19368_previousBodyOverscroll),a.JSC$19368_previousBodyOverflow!==
void 0&&(document.body.style.overflow=a.JSC$19368_previousBodyOverflow),a.enableDialogA11yFix&&RSZ(a,!1)),DQi(a.iframe))};
tb.prototype.handleFocusChange=function(){document.activeElement===this.iframe&&(RSZ(this,!0),window.removeEventListener("blur",this.focusChangeListener))};
var RSZ=function(a,z){var I,J,r=(I=a.iframe)==null?void 0:(J=I.parentElement)==null?void 0:J.children;if(r)for(I=0;I<r.length;I++)J=r[I],J!==a.iframe&&(z?(J.hasAttribute("aria-hidden")&&_.qL([_.zB(bpi)],J,"data-old-aria-hidden",J.getAttribute("aria-hidden")),_.qL([_.zB(hSE)],J,"aria-hidden","true")):(J.removeAttribute("aria-hidden"),J.hasAttribute("data-old-aria-hidden")&&(_.qL([_.zB(Vqi)],J,"aria-hidden",J.getAttribute("data-old-aria-hidden")),J.removeAttribute("data-old-aria-hidden"))))},uT=function(a,
z,I){var J;
(J=a.latencyCallback)==null||J.call(a,{latencyType:z,timestampEpochMillis:I!=null?I:Date.now()})};var Lif=function(a,z,I){tb.call(this,z,I===void 0?!1:I);this.consentPrimitiveRequest=a;a=UQ0(this);_.xrZ(a);this.src=this.getSrc();var J;this.initialLoadingStrategy=(J=_.JC(this.consentPrimitiveRequest,hU,4))==null?void 0:_.GL(J,4)},loV;
_.b(Lif,tb);var PqM=function(a){var z=_.K("enable_primitive_dialog_aria_hide_siblings");a={request:a,enableDialogA11yFix:z===void 0?!1:z};loV||(loV=new Lif(a.request,a.isLatencyMeasurementExperiment||_.GL(a.request,1)===2,a.enableDialogA11yFix));return loV},UQ0=function(a){var z;
return(z=_.JC(a.consentPrimitiveRequest,hU,4))==null?void 0:_.vb(z,1)},GV0=function(a,z){if(!_.nn(a.consentPrimitiveRequest,Cg,5)){var I=a.consentPrimitiveRequest,J=new Cg;
_.gO(I,5,J)}var r;if((r=_.JC(a.consentPrimitiveRequest,Cg,5))==null||_.xEm(_.sB(r,8))==null){var P;(P=_.JC(a.consentPrimitiveRequest,Cg,5))!=null&&_.Fd(P,8,z)}},xQG=function(a){var z;
return(z=_.JC(a.consentPrimitiveRequest,Cg,5))==null?void 0:_.za(z,1)};
Lif.prototype.isDarkTheme=function(){var a;return((a=_.JC(this.consentPrimitiveRequest,hU,4))==null?void 0:_.GL(a,2))===2};
var Wi4=function(a){var z;return((z=_.JC(a.consentPrimitiveRequest,hU,4))==null?void 0:_.za(z,5))||void 0},dQ4=function(a){a.channel=void 0;
a.prewarmChannel=void 0;a.iframe&&(document.body.contains(a.iframe)&&document.body.removeChild(a.iframe),a.iframe=void 0);loV=void 0},trZ=function(a){return tb.prototype.showPrimitive.call(a).then(function(z){return _.JC(z,tqZ,2)})};for(var EQ={},pVi=(EQ[64]="ma",EQ[73]="ogb",EQ[89]="cr",EQ[21]="test",EQ[0]="unkn",EQ[137]="con",EQ[155]="hl",EQ[78]="yt",EQ[171]="lp",EQ[172]="ap",EQ[177]="amo",EQ[178]="pqe",EQ[74]="gg",EQ[1]="gm",EQ[140]="am",EQ[193]="sc",EQ),wV4=_.C(Object.keys(pVi)),mQz=wV4.next();!mQz.done;mQz=wV4.next());var yHE=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.GY(a)};
_.b(yHE,_.ju);var kVM=[0,[2,3,4],_.YR,OhE,bhE,_.cwp];var Mqi=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.GY(a)};
_.b(Mqi,_.ju);var cHV=_.tx(Mqi,[0,HhG,_.kR,_.YR,_.kR,_.YR,kVM]);var Ysi=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.GY(a)};
_.b(Ysi,_.ju);Ysi.prototype.getCommand=function(){return _.GL(this,1)};
var qsf=function(){var a=new Ysi;return _.Wb(a,1,0)};var eSV=_.uj([0,HhG,_.kR,[0,_.YR,_.kR,-1]]);var aPe=new _.fp("s"),jR4=new _.fp("t"),znZ=new _.fp("u"),IPZ=new _.fp("v"),J4E=function(a,z,I){_.AH.call(this,aPe);this.mediaKey=a;this.photoUrl=z;this.photoSource=I};
_.b(J4E,_.AH);var r4Z=function(){_.AH.call(this,jR4)};
_.b(r4Z,_.AH);var PuZ=function(a){a=a===void 0?!1:a;_.AH.call(this,znZ);this.isError=a};
_.b(PuZ,_.AH);var ZR0=function(){_.AH.call(this,IPZ)};
_.b(ZR0,_.AH);var CuG=/^\[([a-z0-9-]+)(="([^\\"]*)")?]$/,ETV=function(a){if(typeof a=="string"){if(a.charAt(0)==".")return NGG(a.substr(1));if(a.charAt(0)=="["){var z=CuG.exec(a);a=a.indexOf("=")==-1?void 0:z[3];return taZ(z[1],a)}return u6z(a)}return a},NGG=function(a){return function(z){return z.getAttribute&&_.pp(z,a)}},taZ=function(a,z){return function(I){return z!==void 0?I.getAttribute&&I.getAttribute(a)==z:I.hasAttribute&&I.hasAttribute(a)}},u6z=function(a){a=a.toUpperCase();
return function(z){return(z=z.tagName)&&z.toUpperCase()==a}},BGi=function(){return!0};var BN=function(a,z){this.JSC$19396_key_=a;this.JSC$19396_value_=z},gK=function(a){throw Error("jk`"+a.JSC$19396_key_);
},gTZ=function(a,z){return new TypeError("kk`"+z+"`"+a.JSC$19396_key_+"`"+a.JSC$19396_value_+"`"+typeof a.JSC$19396_value_)};
BN.prototype.string=function(a){return arguments.length==0?ORf(this):fPi(this,a)};
var fPi=function(a,z){var I;return(I=A40(a))!=null?I:z},ORf=function(a){var z=A40(a);
z===null&&gK(a);return z},A40=function(a){var z=a.JSC$19396_value_;
if(z==null)return null;if(typeof z==="string")return z;throw gTZ(a,"string");};
BN.prototype.bool=function(a){if(arguments.length==0){var z=this.optionalBool();z===null&&gK(this)}else{var I;z=(I=this.optionalBool())!=null?I:a}return z};
BN.prototype.optionalBool=function(){var a=this.JSC$19396_value_;if(a==null)return null;if(typeof a==="boolean")return a;if(typeof a==="string"){a=a.toLowerCase();if(a==="true"||a==="1")return!0;if(a==="false"||a==="0")return!1}throw gTZ(this,"boolean");};
BN.prototype.number=function(a){if(arguments.length==0){var z=sRf(this);z===null&&gK(this)}else z=nTG(this,a);return z};
var nTG=function(a,z){var I;return(I=sRf(a))!=null?I:z},sRf=function(a){var z=a.JSC$19396_value_;
if(z==null)return null;if(typeof z==="number")return z;if(typeof z==="string"){var I=Number(z);if(!isNaN(I)&&(I!==0||z.trim().length!==0))return I}throw gTZ(a,"number");};
BN.prototype.toString=function(){return ORf(this)};
BN.prototype.enum=function(a,z){var I=!0,J=void 0,r;for(r in a){var P=a[r];I&&(I=!1,J=typeof P==="number"?nTG(this,z):fPi(this,z));if(P==J)return J}JSON.stringify(a);return J};
BN.prototype.array=function(a){if(arguments.length==0){var z=KmE(this);z===null&&gK(this);return z}z=KmE(this);return z==null?a:z};
var KmE=function(a){var z=a.JSC$19396_value_;if(z==null)return null;Array.isArray(z)||(typeof z!=="string"?z=[z]:(z=z.trim(),z=z==""?[]:z.split(",").map(function(I){return I.trim()})));
return Fmz(a,z)},Fmz=function(a,z){var I=a.JSC$19396_key_+"[";
return Array.from(z,function(J,r){return new BN(I+r+"]",J)})};
BN.prototype.object=function(a){var z=this.JSC$19396_value_;if(z==null)return a===void 0&&gK(this),a;if(typeof z==="object"&&z.constructor===Object){a={};var I=this.JSC$19396_key_+".",J;for(J in z)a[J]=new BN(I+J,z[J]);return a}throw gTZ(this,"object");};var OQ=function(a){this.list_=HRE(a)},HRE=function(a){if(a instanceof OQ)a=a.list_;
else if(a[0]instanceof OQ){for(var z=new Set,I=0;I<a.length;I++)for(var J=_.C(a[I].list_),r=J.next();!r.done;r=J.next())z.add(r.value);a=z}return[].concat(_.ih(a))};
_.Z=OQ.prototype;_.Z.each=function(a,z,I){((I===void 0?0:I)?RQf:_.l1)(this.list_,a,z);return this};
_.Z.size=function(){return this.list_.length};
_.Z.isEmpty=function(){return this.list_.length===0};
_.Z.get=function(a){return this.list_[a]||null};
_.Z.el=function(){return this.list_[0]||null};
_.Z.map=function(a,z){return _.vH(this.list_,a,z)};
_.Z.equals=function(a){return this===a||_.MO(this.list_,a.list_)};
_.Z.first=function(){return this.list_.length==0?null:new fg(this.list_[0])};
_.Z.last=function(){return this.list_.length==0?null:new fg(this.list_[this.list_.length-1])};
_.Z.find=function(a){var z=[];this.each(function(I){I=I.querySelectorAll(String(a));for(var J=0;J<I.length;J++)z.push(I[J])});
return new OQ(z)};
_.Z.parent=function(){var a=[];this.each(function(z){(z=z.parentElement||null)&&!_.Um(a,z)&&a.push(z)});
return new OQ(a)};
_.Z.children=function(){var a=[];this.each(function(z){z=_.T2(z);for(var I=0;I<z.length;I++)a.push(z[I])});
return new OQ(a)};
_.Z.filter=function(a){a=_.Z8(this.list_,ETV(a));return new OQ(a)};
_.Z.closest=function(a){var z=[],I=ETV(a),J=function(r){return _.cL(r)&&I(r)};
this.each(function(r){(r=_.dJ(r,J,!0))&&!_.Um(z,r)&&z.push(r)});
return new OQ(z)};
_.Z.next=function(a){return bRG(this,_.YOw,a)};
_.Z.prev=function(a){return bRG(this,hOZ,a)};
var bRG=function(a,z,I){var J=[];var r=I?ETV(I):BGi;a.each(function(P){(P=z(P))&&r(P)&&J.push(P)});
return new OQ(J)};
OQ.prototype.setClass=function(a){return this.each(function(z){_.ln(z,a)})};
var hnf=function(a,z){return a.each(function(I){_.eg(I,z)})},Va0=function(a,z){return a.each(function(I){_.YN(I,z)})};
OQ.prototype.toggleClass=function(a,z){return z===!0?hnf(this,a):z===!1?Va0(this,a):this.each(function(I){_.pp(I,a)?_.YN(I,a):_.eg(I,a)})};
OQ.prototype.setText=function(a){return this.each(function(z){_.dc(z,a)})};
var QRi=function(a){a.each(function(z){z.removeAttribute("aria-hidden")})};
OQ.prototype.getStyle=function(a){if(this.list_.length>0){var z=this.list_[0],I=z.style[_.nL(a)];return typeof I!=="undefined"?I:z.style[_.tfE(z,a)]||""}};
OQ.prototype.getData=function(a){if(this.list_.length===0)return new BN(a,null);var z=mrV(this.list_[0],a);return new BN(a,z)};
OQ.prototype.focus=function(a){try{a?this.el().focus(a):this.el().focus()}catch(z){}return this};
OQ.prototype.click=function(){var a=_.Xm(this.el());if(a.createEvent){var z=a.createEvent("MouseEvents");z.initMouseEvent("click",!0,!0,a.defaultView,1,0,0,0,0,!1,!1,!1,!1,0,null);this.el().dispatchEvent(z)}else a=a.createEventObject(),a.clientX=0,a.clientY=0,a.screenX=0,a.screenY=0,a.altKey=!1,a.ctrlKey=!1,a.shiftKey=!1,a.button=0,this.el().fireEvent("onclick",a)};
var Ab=function(a,z,I,J){function r(u,E,O){var f=E;E&&E.parentNode&&(f=E.cloneNode(!0));u(f,O)}
J=J===void 0?!1:J;if(a.list_.length==1){var P=a.list_[0],N=function(u){return z(u,P)};
I instanceof OQ?I.each(N,void 0,J):Array.isArray(I)?(J?RQf:_.l1)(I,N):N(I);return a}return a.each(function(u){I instanceof OQ?I.each(function(E){r(z,E,u)}):Array.isArray(I)?_.l1(I,function(E){r(z,E,u)}):r(z,I,u)})};
_.Z=OQ.prototype;_.Z.append=function(a){return Ab(this,function(z,I){z&&I.appendChild(z)},a)};
_.Z.appendTo=function(a){(new OQ([a])).append(this);return this};
_.Z.remove=function(){return Ab(this,function(a,z){_.fo(z)},null)};
_.Z.empty=function(){return Ab(this,function(a,z){_.G2(z)},null)};
_.Z.after=function(a,z){return Ab(this,function(I,J){I&&_.XO(I,J)},a,!(z===void 0||z))};
_.Z.before=function(a){return Ab(this,function(z,I){z&&_.$B(z,I)},a)};
_.Z.replaceWith=function(a){return Ab(this,function(z,I){z&&_.kJE(z,I)},a)};
_.Z.toggle=function(a){return this.each(function(z){_.po(z,a)})};
_.Z.show=function(){return this.toggle(!0)};
_.Z.hide=function(){return this.toggle(!1)};
_.Z.trigger=function(a,z,I,J){return S5Z(this,a,z,I,J)};
var S5Z=function(a,z,I,J,r){return a.each(function(P){_.nk$(_.Xm(P)).triggerWizEventInternal(P,z,I,J,r)})},fg=function(a,z){a instanceof OQ&&(z=a.list_,a=null);
this.list_=HRE(a!=null?[a]:z)};
_.rL(fg,OQ);_.Z=fg.prototype;_.Z.children=function(){return new OQ(Array.prototype.slice.call(_.T2(this.list_[0])))};
_.Z.each=function(a,z){a.call(z,this.list_[0],0);return this};
_.Z.size=function(){return 1};
_.Z.el=function(){return this.list_[0]};
_.Z.first=function(){return this};var sQ=function(a,z){z=z===void 0?window:z;this.hostId=a;this.JSC$19407_win=z;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$19407_previousHtmlOverscroll=this.JSC$19407_previousBodyOverscroll=this.JSC$19407_previousBodyOverflow="";this.eventTarget=new _.HV;this.JSC$19407_win.location.hostname.indexOf("youtube.com")>=0&&(this.domain="profilewidgets.youtube.com")},
vT4=function(a){var z=iR4(iR4(iR4(new xkZ(78),"po"),"hppp"),"hhc");
z.authUser=Number(_.Xw("SESSION_INDEX","0"));z.colorScheme=a;return z};
sQ.prototype.getOrigin=function(){return this.origin?this.origin:_.zo(_.ja(_.aR(new _.cJ,this.JSC$19407_win.location.protocol),this.JSC$19407_win.location.hostname),this.JSC$19407_win.location.port).toString()};
sQ.prototype.getTargetOrigin=function(){return _.zo(_.ja(_.aR(new _.cJ,this.scheme),this.domain),this.port)};
sQ.prototype.preloadIframe=function(a){var z=this;if(this.iframeLoadPromise===void 0){var I=document.createElement("iframe");this.iframe=I;yWi(I,a);this.iframeLoadPromise=new Promise(function(J,r){var P=!1,N=function(u){u.stopPropagation();I.removeEventListener("error",N);I.removeEventListener("securitypolicyviolation",N);r(Error("lk",{cause:u}))};
I.addEventListener("error",N);I.addEventListener("securitypolicyviolation",N);setTimeout(function(){P||r(Error("mk"))},3E4);
Goi(z,I,function(){P=!0;I.removeEventListener("error",N);I.removeEventListener("securitypolicyviolation",N);J()})});
$kY(this);a=this.getTargetOrigin().toString();I.setAttribute("allow","camera "+a+"; display-capture "+a);this.parentElement.appendChild(I)}return this.iframeLoadPromise};
var dkZ=function(a,z){var I,J;return _.t(function(r){if(r.nextAddress==1)return I=Uo0(getComputedStyle(a.parentElement).direction==="rtl"),a.parentElement.appendChild(I),document.activeElement instanceof HTMLElement&&(a.elementToFocusAfterClose=document.activeElement),_.BP(r,2),r.yield(a.preloadIframe(z),4);if(r.nextAddress!=2){a.parentElement.removeChild(I);a.JSC$19407_previousBodyOverflow=a.parentElement.style.overflow;a.JSC$19407_previousHtmlOverscroll=document.documentElement.style.overscrollBehavior;
a.JSC$19407_previousBodyOverscroll=a.parentElement.style.overscrollBehavior;document.documentElement.style.overscrollBehavior="contain";a.parentElement.style.overscrollBehavior="contain";a.parentElement.style.overflow="hidden";var P=a.iframe;P.style.bottom="0";P.style.border="none";P.style.height="100%";P.style.left="0";P.style.position=a.iframePosition;P.style.right="0";P.style.top="0";P.style.width="100%";P.style.zIndex="2202";P.setAttribute("aria-hidden","false");P.setAttribute("aria-modal","true");
a.opened=!0;XD0(a);return _.p1(r,0)}J=_.sk(r);a.parentElement.removeChild(I);pdG(a.isDarkTheme());TGM(a,!1);throw Error("nk",{cause:J});})},TGM=function(a,z){z=z===void 0?!0:z;
a.iframe!==void 0&&(Wmz(a),document.documentElement.style.overscrollBehavior=a.JSC$19407_previousHtmlOverscroll,a.parentElement.style.overscrollBehavior=a.JSC$19407_previousBodyOverscroll,a.parentElement.style.overflow=a.JSC$19407_previousBodyOverflow,a.elementToFocusAfterClose!==void 0&&(a.elementToFocusAfterClose.focus(),a.elementToFocusAfterClose=void 0),z?$kY(a):(a.parentElement.removeChild(a.iframe),a.iframe=void 0,a.iframeLoadPromise=void 0,a.mainChannel=void 0),a.opened=!1)},Wmz=function(a){a.backgroundElementsAriaHiddenIsNull&&
(QRi(a.backgroundElementsAriaHiddenIsNull),a.backgroundElementsAriaHiddenIsNull=void 0);
a.backgroundElementsAriaHiddenIsFalse&&(a.backgroundElementsAriaHiddenIsFalse.each(function(z){z.setAttribute("aria-hidden","false")}),a.backgroundElementsAriaHiddenIsFalse=void 0);
a.backgroundElementsWithoutInert&&(a.backgroundElementsWithoutInert.each(function(z){z.removeAttribute("inert")}),a.backgroundElementsWithoutInert=void 0)},XD0=function(a){a.backgroundElementsAriaHiddenIsNull=(new fg(a.iframe.parentElement)).children().filter(function(z){return z.getAttribute("aria-hidden")===null&&z!==a.iframe});
a.backgroundElementsAriaHiddenIsNull.each(function(z){z.setAttribute("aria-hidden","true")});
a.backgroundElementsAriaHiddenIsFalse=(new fg(a.iframe.parentElement)).children().filter(function(z){return z.getAttribute("aria-hidden")==="false"&&z!==a.iframe});
a.backgroundElementsAriaHiddenIsFalse.each(function(z){z.setAttribute("aria-hidden","true")});
a.backgroundElementsWithoutInert=(new fg(a.iframe.parentElement)).children().filter(function(z){return!z.hasAttribute("inert")&&z!==a.iframe});
a.backgroundElementsWithoutInert.each(function(z){z.setAttribute("inert","true")})},$kY=function(a){a=a.iframe;
a.style.bottom="-1000px";a.style.position="fixed";a.style.right="-1000px";a.style.border="";a.style.height="";a.style.left="";a.style.top="";a.style.width="";a.style.zIndex="";a.setAttribute("aria-hidden","true");a.setAttribute("aria-modal","false")};
sQ.prototype.isDarkTheme=function(){return this.colorScheme==="dark"||window.matchMedia("(prefers-color-scheme: dark)").matches&&this.colorScheme!=="light"};var xkZ=function(a,z){sQ.call(this,pVi[a],z);this.options=[];this.style=""};
_.b(xkZ,sQ);var oTV=function(a){a.style="youtube";return a},UkE=function(a,z){a.eventTarget.listen(znZ,z);
return a},Dk4=function(a,z){a.eventTarget.listen(aPe,z);
return a},iR4=function(a,z){a.options.push(z);
return a},Rne=function(a){var z=[a.getOrigin()];
a.ancestorOrigins&&z.push.apply(z,_.ih(a.ancestorOrigins));var I=new _.cJ(a.JSC$19407_win.location.href),J=a.startUrl?a.startUrl:a.options.includes("po")?"profile-picture/art":"profile-picture";z=VJ(_.IR(a.getTargetOrigin(),J),"origin",z);a.startUrl&&_.lE(z,"startPath",a.startUrl);a.authUser>0&&_.lE(z,"authuser",a.authUser);a.pageId!==void 0&&_.lE(z,"pageId",a.pageId);_.lE(z,"hostId",a.hostId);a.jsMode!==void 0&&_.lE(z,"jsmode",a.jsMode);a.rectangleRatio!==void 0&&_.lE(z,"rectangleRatio",a.rectangleRatio);
a.options.length>0&&_.lE(z,"opts",a.options.join(","));try{for(var r=_.C(["utm_source","utm_medium","utm_campaign","utm_content"]),P=r.next();!P.done;P=r.next()){var N=P.value;_.Lo(I,N)&&_.lE(z,N,_.Lo(I,N))}var u,E=(u=a.hl)!=null?u:_.Lo(I,"hl");E!==void 0&&_.lE(z,"hl",E)}catch(O){if(!(O instanceof URIError))throw O;}a.colorScheme&&_.lE(z,"theme",a.colorScheme);a.style&&_.lE(z,"style",a.style);return z},Lmi=function(a,z){a.mainChannel=_.ac({destination:a.JSC$19407_win,
iframe:z,origin:a.getTargetOrigin().toString(),channelName:"ow",onMessage:function(I){I=cHV(I.data);if(z===a.iframe)switch(_.GL(I,1)){case 1:a.eventTarget.dispatchEvent(new PuZ);TGM(a);break;case 2:a.eventTarget.dispatchEvent(new J4E(_.vb(I,4),_.vb(I,2),_.GL(I,5),_.JC(I,yHE,6)));break;case 0:var J;a.eventTarget.dispatchEvent(new r4Z(_.vb(I,2),(J=_.GL(I,3))!=null?J:0));break;case 3:a.eventTarget.dispatchEvent(new PuZ(!0));TGM(a,!1);break;case 4:a.eventTarget.dispatchEvent(new ZR0)}}})},Goi=function(a,
z,I){_.ac({destination:a.JSC$19407_win,
iframe:z,origin:_.zo(_.ja(_.aR(new _.cJ,a.scheme),a.domain),a.port).toString(),channelName:"owi",onMessage:function(J){z===a.iframe&&(I!==void 0&&I(),Lmi(a,z),a.opened&&a.mainChannel.send(eSV(qsf())),J.reply(),Goi(a,z))}})};
xkZ.prototype.preloadIframe=function(){return this.iframeLoadPromise===void 0?sQ.prototype.preloadIframe.call(this,Rne(this).toString()):this.iframeLoadPromise};
xkZ.prototype.openPicker=function(a){var z=this;return _.t(function(I){if(I.nextAddress==1)return z.startUrl=a?a:z.options.includes("po")?"profile-picture/art":"profile-picture",I.yield(dkZ(z,Rne(z).toString()),2);if(z.mainChannel){var J=z.mainChannel,r=J.send;var P=qsf();P=_.KB(P,2,z.startUrl);r.call(J,eSV(P))}_.nu(I)})};var lPZ=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.GY(a)};
_.b(lPZ,_.ju);_.Z=lPZ.prototype;_.Z.getSize=function(){return XH(this,1)};
_.Z.setSize=function(a){return _.dL(this,1,a)};
_.Z.getWidth=function(){return XH(this,12)};
_.Z.getHeight=function(){return XH(this,13)};
_.Z.setCenterCrop=function(a){return _.PW(this,20,a)};
_.Z.getHtml=function(){return _.SQ(this,4)};
_.Z.getToken=function(){return _.gQ(this,24)};
_.Z.setToken=function(a){return _.KB(this,24,a)};
_.Z.getBackgroundColor=function(){return XH(this,87)};
_.Z.hasBackgroundColor=function(){return _.eI(_.sB(this,87))!=null};
_.Z.getStoryboardLevel=function(){return XH(this,109)};var Kg=function(a){this.JSC$19415_value_=void 0;this.childNodes_={};if(a){var z=_.DIj(a);a=_.eq(a);for(var I=0;I<z.length;I++)this.set(z[I],a[I])}};
Kg.prototype.set=function(a,z){pDV(this,a,z,!1)};
Kg.prototype.add=function(a,z){pDV(this,a,z,!0)};
var pDV=function(a,z,I,J){for(var r=0;r<z.length;r++){var P=z.charAt(r);a.childNodes_[P]||(a.childNodes_[P]=new Kg);a=a.childNodes_[P]}if(J&&a.JSC$19415_value_!==void 0)throw Error("ok`"+z);a.JSC$19415_value_=I},wD0=function(a,z){for(var I=0;I<z.length;I++)if(a=a.childNodes_[z.charAt(I)],!a)return;
return a};
Kg.prototype.get=function(a){return(a=wD0(this,a))?a.JSC$19415_value_:void 0};
Kg.prototype.getValues=function(){var a=[];mkM(this,a);return a};
var mkM=function(a,z){a.JSC$19415_value_!==void 0&&z.push(a.JSC$19415_value_);for(var I in a.childNodes_)mkM(a.childNodes_[I],z)};
Kg.prototype.getKeys=function(a){var z=[];if(a){for(var I=this,J=0;J<a.length;J++){var r=a.charAt(J);if(!I.childNodes_[r])return[];I=I.childNodes_[r]}y4Z(I,a,z)}else y4Z(this,"",z);return z};
var y4Z=function(a,z,I){a.JSC$19415_value_!==void 0&&I.push(z);for(var J in a.childNodes_)y4Z(a.childNodes_[J],z+J,I)};
_.Z=Kg.prototype;_.Z.containsKey=function(a){return this.get(a)!==void 0};
_.Z.containsValue=function(a){if(this.JSC$19415_value_===a)return!0;for(var z in this.childNodes_)if(this.childNodes_[z].containsValue(a))return!0;return!1};
_.Z.clear=function(){this.childNodes_={};this.JSC$19415_value_=void 0};
_.Z.remove=function(a){for(var z=this,I=[],J=0;J<a.length;J++){var r=a.charAt(J);if(!z.childNodes_[r])throw Error("pk`"+a);I.push([z,r]);z=z.childNodes_[r]}a=z.JSC$19415_value_;for(delete z.JSC$19415_value_;I.length>0;)if(J=I.pop(),z=J[0],J=J[1],z.childNodes_[J].isEmpty())delete z.childNodes_[J];else break;return a};
_.Z.clone=function(){return new Kg(this)};
_.Z.getCount=function(){return ihZ(this.getValues())};
_.Z.isEmpty=function(){return this.JSC$19415_value_===void 0&&_.x8.isEmpty(this.childNodes_)};var qrG=function(){if(!koE){var a=koE=new Kg,z;for(z in MaG)a.add(z,MaG[z])}},koE,F2=function(a,z){this.types=a;
this.setters=z},MaG={a:new F2([3,
0],[function(a,z){_.PW(a,21,z)},
function(a,z){_.dL(a,56,z)}]),
al:new F2([3],[function(a,z){_.PW(a,74,z)}]),
b:new F2([3,0],[function(a,z){_.PW(a,23,z)},
function(a,z){_.dL(a,38,z)}]),
ba:new F2([0],[function(a,z){_.dL(a,85,z)}]),
bc:new F2([0],[function(a,z){_.dL(a,87,z)}]),
br:new F2([0],[function(a,z){_.dL(a,86,z)}]),
c:new F2([3,0],[function(a,z){_.PW(a,2,z)},
function(a,z){_.dL(a,39,z)}]),
cc:new F2([3],[function(a,z){_.PW(a,51,z)}]),
ci:new F2([3],[function(a,z){_.PW(a,32,z)}]),
ckm:new F2([3],[function(a,z){_.PW(a,104,z)}]),
cp:new F2([0],[function(a,z){_.dL(a,92,z)}]),
cr:new F2([3],[function(a,z){_.PW(a,108,z)}]),
cv:new F2([0],[function(a,z){_.dL(a,94,z)}]),
d:new F2([3],[function(a,z){_.PW(a,3,z)}]),
dc:new F2([5],[function(a,z){_.KB(a,99,z)}]),
df:new F2([3],[function(a,z){_.PW(a,80,z)}]),
dv:new F2([3],[function(a,z){_.PW(a,90,z)}]),
e:new F2([0],[function(a,z){_.dL(a,15,z)}]),
em:new F2([0],[function(a,z){_.dL(a,107,z)}]),
f:new F2([4],[function(a,z){_.KB(a,16,z)}]),
fg:new F2([3],[function(a,z){_.PW(a,34,z)}]),
fh:new F2([3],[function(a,z){_.PW(a,30,z)}]),
fm:new F2([3],[function(a,z){_.PW(a,84,z)}]),
fo:new F2([2],[function(a,z){_.PL(a,79,_.lw(z))}]),
ft:new F2([3],[function(a,z){_.PW(a,50,z)}]),
fv:new F2([3],[function(a,z){_.PW(a,31,z)}]),
g:new F2([3],[function(a,z){_.PW(a,14,z)}]),
gce:new F2([4],[function(a,z){_.KB(a,112,z)}]),
gd:new F2([3],[function(a,z){_.PW(a,83,z)}]),
gm:new F2([3],[function(a,z){_.PW(a,105,z)}]),
h:new F2([3,0],[function(a,z){_.PW(a,4,z)},
function(a,z){_.dL(a,13,z)}]),
i:new F2([3],[function(a,z){_.PW(a,22,z)}]),
ic:new F2([0],[function(a,z){_.dL(a,71,z)}]),
id:new F2([3],[function(a,z){_.PW(a,70,z)}]),
il:new F2([3],[function(a,z){_.PW(a,96,z)}]),
ip:new F2([3],[function(a,z){_.PW(a,54,z)}]),
iv:new F2([0],[function(a,z){_.Fd(a,75,z)}]),
j:new F2([1],[function(a,z){z=z==null?z:pv0(z);_.PL(a,29,z)}]),
k:new F2([3,0],[function(a,z){_.PW(a,17,z)},
function(a,z){_.dL(a,42,z)}]),
l:new F2([0],[function(a,z){_.dL(a,44,z)}]),
lf:new F2([3],[function(a,z){_.PW(a,65,z)}]),
lo:new F2([3],[function(a,z){_.PW(a,97,z)}]),
m:new F2([0],[function(a,z){_.dL(a,63,z)}]),
md:new F2([3],[function(a,z){_.PW(a,91,z)}]),
mm:new F2([4],[function(a,z){_.KB(a,81,z)}]),
mo:new F2([3],[function(a,z){_.PW(a,73,z)}]),
mp:new F2([0],[function(a,z){_.dL(a,115,z)}]),
mv:new F2([3],[function(a,z){_.PW(a,66,z)}]),
n:new F2([3],[function(a,z){a.setCenterCrop(z)}]),
nc:new F2([3],[function(a,z){_.PW(a,55,z)}]),
nd:new F2([3],[function(a,z){_.PW(a,53,z)}]),
ng:new F2([3],[function(a,z){_.PW(a,95,z)}]),
ngm:new F2([3],[function(a,z){_.PW(a,106,z)}]),
no:new F2([3],[function(a,z){_.PW(a,37,z)}]),
ns:new F2([3],[function(a,z){_.PW(a,40,z)}]),
nt0:new F2([4],[function(a,z){_.KB(a,36,z)}]),
ntm:new F2([3],[function(a,z){_.PW(a,114,z)}]),
nu:new F2([3],[function(a,z){_.PW(a,46,z)}]),
nw:new F2([3],[function(a,z){_.PW(a,48,z)}]),
o:new F2([1,3],[function(a,z){z=z==null?z:pv0(z);_.PL(a,7,z)},
function(a,z){_.PW(a,27,z)}]),
p:new F2([3,0],[function(a,z){_.PW(a,19,z)},
function(a,z){_.dL(a,43,z)}]),
pa:new F2([3],[function(a,z){_.PW(a,61,z)}]),
pc:new F2([0],[function(a,z){_.dL(a,88,z)}]),
pd:new F2([3],[function(a,z){_.PW(a,60,z)}]),
pf:new F2([3],[function(a,z){_.PW(a,67,z)}]),
pg:new F2([3],[function(a,z){_.PW(a,72,z)}]),
pi:new F2([2],[function(a,z){_.PL(a,76,_.lw(z))}]),
pp:new F2([3],[function(a,z){_.PW(a,52,z)}]),
pt:new F2([4],[function(a,z){_.KB(a,111,z)}]),
q:new F2([4],[function(a,z){_.KB(a,28,z)}]),
r:new F2([3,0],[function(a,z){_.PW(a,6,z)},
function(a,z){_.dL(a,26,z)}]),
ra:new F2([3],[function(a,z){_.PW(a,103,z)}]),
rf:new F2([3],[function(a,z){_.PW(a,100,z)}]),
rg:new F2([3],[function(a,z){_.PW(a,59,z)}]),
rh:new F2([3],[function(a,z){_.PW(a,49,z)}]),
rj:new F2([3],[function(a,z){_.PW(a,57,z)}]),
ro:new F2([2],[function(a,z){_.PL(a,78,_.lw(z))}]),
rp:new F2([3],[function(a,z){_.PW(a,58,z)}]),
rw:new F2([3],[function(a,z){_.PW(a,35,z)}]),
rwa:new F2([3],[function(a,z){_.PW(a,64,z)}]),
rwu:new F2([3],[function(a,z){_.PW(a,41,z)}]),
s:new F2([3,0],[function(a,z){_.PW(a,33,z)},
function(a,z){a.setSize(z)}]),
sb:new F2([0],[function(a,z){_.dL(a,110,z)}]),
sc:new F2([0],[function(a,z){_.dL(a,89,z)}]),
sg:new F2([3],[function(a,z){_.PW(a,82,z)}]),
sl:new F2([0],[function(a,z){_.dL(a,109,z)}]),
sm:new F2([3],[function(a,z){_.PW(a,93,z)}]),
t:new F2([4],[function(a,z){a.setToken(z)}]),
tm:new F2([3],[function(a,z){_.PW(a,113,z)}]),
u:new F2([3],[function(a,z){_.PW(a,18,z)}]),
ut:new F2([3],[function(a,z){_.PW(a,45,z)}]),
v:new F2([0],[function(a,z){_.dL(a,62,z)}]),
vb:new F2([0],[function(a,z){_.Fd(a,68,z)}]),
vf:new F2([4],[function(a,z){_.KB(a,102,z)}]),
vl:new F2([0],[function(a,z){_.Fd(a,69,z)}]),
vm:new F2([3],[function(a,z){_.PW(a,98,z)}]),
w:new F2([0],[function(a,z){_.dL(a,12,z)}]),
x:new F2([0],[function(a,z){_.dL(a,9,z)}]),
y:new F2([0],[function(a,z){_.dL(a,10,z)}]),
ya:new F2([2],[function(a,z){_.PL(a,77,_.lw(z))}]),
z:new F2([0],[function(a,z){_.dL(a,11,z)}])};
qrG.prototype.parse=function(a){var z=new lPZ,I=new lPZ;if(a=="")a=!0;else{a=a.split("-");for(var J=!0,r=0;r<a.length;r++){var P=a[r];if(P.length==0)J=!1;else{var N=P,u=!1;var E=N;var O=N.charAt(0);O!=O.toLowerCase()&&(u=!0,E=N.charAt(0).toLowerCase()+N.substring(1));var f=koE;for(O=1;O<=E.length;++O){var A=f,n=E.substring(0,O);if(n.length==0?A.isEmpty():!wD0(A,n))break}E=O==1?null:(E=f.get(E.substring(0,O-1)))?{option:N.substring(0,O-1),value:N.substring(O-1),signed:u,attributes:E}:null;if(E){N=
[];u=[];O=!1;for(f=0;f<E.attributes.types.length;f++){A=E.attributes.types[f];var F=E.value;n=r;if(E.signed&&A==1)for(var h=F.length;h<12&&n<a.length-1;)F+="-"+a[n+1],h=F.length,++n;else if(A==2)for(;n<a.length-1&&a[n+1].match(/^[\d\.]/);)F+="-"+a[n+1],++n;h=E.attributes.setters[f];F=c4f(this,A)(E.option,F,z,I,h);if(F===null){O=!0;r=n;break}else N.push(A),u.push(F)}if(!O)for(E=0;E<u.length;E++)f=N[E],F=u[E],Y54(this,f)(P,F);J=J&&O}else J=!1}}a=J}return new q5E(z,I,a)};
var HN=function(a,z,I,J,r,P){r(I,z);a=a.charAt(0);P=P(a==a.toUpperCase());r(J,P)};
_.Z=qrG.prototype;_.Z.parseAndSetIntOption_=function(a,z,I,J,r){if(z=="")return 0;isFinite(z)&&(z=String(z));z=typeof z==="string"?/^\s*-?0x/i.test(z)?parseInt(z,16):parseInt(z,10):NaN;if(isNaN(z))return 1;HN(a,z,I,J,r,Number);return null};
_.Z.logIntParseError_=function(){};
_.Z.parseAndSetFloatOption_=function(a,z,I,J,r){if(z=="")return 0;var P=Number(z);z=P==0&&_.NO(z)?NaN:P;if(isNaN(z))return 1;HN(a,z,I,J,r,Number);return null};
_.Z.logFloatParseError_=function(){};
_.Z.parseAndSetBoolOption_=function(a,z,I,J,r){if(z!="")return 2;HN(a,!0,I,J,r,Boolean);return null};
_.Z.logBoolParseError_=function(){};
_.Z.parseAndSetStringOption_=function(a,z,I,J,r){if(z=="")return 0;HN(a,z,I,J,r,function(P){return P?"1":""});
return null};
_.Z.logStringParseError_=function(){};
_.Z.parseAndSetUint64Base64Option_=function(a,z,I,J,r){if(z=="")return 0;HN(a,z,I,J,r,function(P){return P?1:0});
return null};
var c4f=function(a,z){switch(z){case 0:return(0,_.HW)(a.parseAndSetIntOption_,a);case 2:return(0,_.HW)(a.parseAndSetFloatOption_,a);case 3:return(0,_.HW)(a.parseAndSetBoolOption_,a);case 4:return(0,_.HW)(a.parseAndSetStringOption_,a);case 1:return(0,_.HW)(a.parseAndSetUint64Base64Option_,a);default:return function(){}}},Y54=function(a,z){switch(z){case 0:return(0,_.HW)(a.logIntParseError_,a);
case 2:return(0,_.HW)(a.logFloatParseError_,a);case 3:return(0,_.HW)(a.logBoolParseError_,a);case 4:case 1:return(0,_.HW)(a.logStringParseError_,a);default:return function(){}}},q5E=function(a,z,I){this.valueProto_=a;
this.signatureFlagProto_=z;this.JSC$19427_valid_=I};
q5E.prototype.isValid=function(){return this.JSC$19427_valid_};var kgY=function(a){this.JSC$19428_parser_=null;this.JSC$19428_components_=[];this.JSC$19428_parsedOptions_=null;ene(this,a)},aN4=function(a){a.JSC$19428_parser_==null&&(a.JSC$19428_parser_=new qrG);
return a.JSC$19428_parser_},ene=function(a,z){a.JSC$19428_parsedOptions_=z?typeof z==="string"?aN4(a).parse(z):z:aN4(a).parse("")},bT=function(a,z){return a==z?!1:!0};
_.Z=kgY.prototype;_.Z.JSC$19430_setCrop=function(a){a=a||void 0;var z=this.JSC$19428_parsedOptions_,I=z.valueProto_;bT(a,_.SQ(I,2),_.SQ(z.signatureFlagProto_,2))&&_.PW(I,2,a);return this};
_.Z.JSC$19430_setCircleCrop=function(a){a=a||void 0;var z=this.JSC$19428_parsedOptions_,I=z.valueProto_;bT(a,$9(I,51),$9(z.signatureFlagProto_,51))&&_.PW(I,51,a);return this};
_.Z.JSC$19430_setImageCrop=function(a){a=a||void 0;var z=this.JSC$19428_parsedOptions_,I=z.valueProto_;bT(a,$9(I,32),$9(z.signatureFlagProto_,32))&&_.PW(I,32,a);return this};
_.Z.JSC$19430_setHeight=function(a){var z=this.JSC$19428_parsedOptions_,I=z.valueProto_;bT(a,I.getHeight(),z.signatureFlagProto_.getHeight())&&_.dL(I,13,a);return this};
_.Z.setCenterCrop=function(a){a=a||void 0;var z=this.JSC$19428_parsedOptions_,I=z.valueProto_;bT(a,_.SQ(I,20),_.SQ(z.signatureFlagProto_,20))&&I.setCenterCrop(a);return this};
_.Z.JSC$19430_setSmartCrop=function(a){a=a||void 0;var z=this.JSC$19428_parsedOptions_,I=z.valueProto_;bT(a,_.SQ(I,19),_.SQ(z.signatureFlagProto_,19))&&_.PW(I,19,a);return this};
_.Z.JSC$19430_setPad=function(a){a=a||void 0;var z=this.JSC$19428_parsedOptions_,I=z.valueProto_;bT(a,$9(I,60),$9(z.signatureFlagProto_,60))&&_.PW(I,60,a);return this};
_.Z.JSC$19430_setSmartCropUseFace=function(a){a=a||void 0;var z=this.JSC$19428_parsedOptions_,I=z.valueProto_;bT(a,_.SQ(I,67),_.SQ(z.signatureFlagProto_,67))&&_.PW(I,67,a);return this};
_.Z.JSC$19430_setSmartCropNoClip=function(a){a=a||void 0;var z=this.JSC$19428_parsedOptions_,I=z.valueProto_;bT(a,_.SQ(I,52),_.SQ(z.signatureFlagProto_,52))&&_.PW(I,52,a);return this};
_.Z.setSize=function(a){var z=this.JSC$19428_parsedOptions_,I=z.valueProto_;bT(a,I.getSize(),z.signatureFlagProto_.getSize())&&I.setSize(a);return this};
_.Z.setToken=function(a){a=a||void 0;var z=this.JSC$19428_parsedOptions_,I=z.valueProto_;bT(a,I.getToken(),z.signatureFlagProto_.getToken())&&I.setToken(a);return this};
_.Z.JSC$19430_setWidth=function(a){var z=this.JSC$19428_parsedOptions_,I=z.valueProto_;bT(a,I.getWidth(),z.signatureFlagProto_.getWidth())&&_.dL(I,12,a);return this};
_.Z.clearOptions=function(){ene(this,"");return this};
_.Z.build=function(){this.JSC$19428_components_.length=0;var a=this.JSC$19428_parsedOptions_,z=a.valueProto_;a=a.signatureFlagProto_;hb(this,"s",z.getSize(),a.getSize());hb(this,"w",z.getWidth(),a.getWidth());Vz(this,"c",_.SQ(z,2),_.SQ(a,2));Vz(this,"d",_.SQ(z,3),_.SQ(a,3));hb(this,"h",z.getHeight(),a.getHeight());Vz(this,"s",$9(z,33),$9(a,33));Vz(this,"h",z.getHtml(),a.getHtml());Vz(this,"p",_.SQ(z,19),_.SQ(a,19));Vz(this,"pp",_.SQ(z,52),_.SQ(a,52));Vz(this,"pf",_.SQ(z,67),_.SQ(a,67));Vz(this,"n",
_.SQ(z,20),_.SQ(a,20));hb(this,"r",XH(z,26),XH(a,26));Vz(this,"r",_.SQ(z,6),_.SQ(a,6));Vz(this,"o",$9(z,27),$9(a,27));var I=_.Qg(z,7,_.AY);Qz(this,"o",I,_.Qg(a,7,_.AY));I=_.Qg(z,29,_.AY);Qz(this,"j",I,_.Qg(a,29,_.AY));hb(this,"x",XH(z,9),XH(a,9));hb(this,"y",XH(z,10),XH(a,10));hb(this,"z",XH(z,11),XH(a,11));Vz(this,"g",_.SQ(z,14),_.SQ(a,14));hb(this,"e",XH(z,15),XH(a,15));Qz(this,"f",_.gQ(z,16),_.gQ(a,16));Vz(this,"k",$9(z,17),$9(a,17));Vz(this,"u",$9(z,18),!0);Vz(this,"ut",$9(z,45),!0);Vz(this,"i",
$9(z,22),!0);Vz(this,"a",$9(z,21),$9(a,21));Vz(this,"b",_.SQ(z,23),_.SQ(a,23));hb(this,"b",XH(z,38),XH(a,38));hb(this,"c",XH(z,39),XH(a,39),16,8);Qz(this,"q",_.gQ(z,28),_.gQ(a,28));Vz(this,"fh",$9(z,30),$9(a,30));Vz(this,"fv",$9(z,31),$9(a,31));Vz(this,"fg",_.SQ(z,34),_.SQ(a,34));Vz(this,"ci",$9(z,32),$9(a,32));Qz(this,"t",z.getToken(),a.getToken());Qz(this,"nt0",_.gQ(z,36),_.gQ(a,36));Vz(this,"rw",_.SQ(z,35),_.SQ(a,35));Vz(this,"rwu",_.SQ(z,41),_.SQ(a,41));Vz(this,"rwa",_.SQ(z,64),_.SQ(a,64));Vz(this,
"nw",_.SQ(z,48),_.SQ(a,48));Vz(this,"rh",_.SQ(z,49),_.SQ(a,49));Vz(this,"no",_.SQ(z,37),_.SQ(a,37));Vz(this,"ns",$9(z,40),$9(a,40));hb(this,"k",XH(z,42),XH(a,42));hb(this,"p",XH(z,43),XH(a,43));hb(this,"l",XH(z,44),XH(a,44));hb(this,"v",XH(z,62),XH(a,62));Vz(this,"nu",$9(z,46),$9(a,46));Vz(this,"ft",$9(z,50),$9(a,50));Vz(this,"cc",$9(z,51),$9(a,51));Vz(this,"nd",$9(z,53),$9(a,53));Vz(this,"ip",$9(z,54),$9(a,54));Vz(this,"nc",$9(z,55),$9(a,55));hb(this,"a",XH(z,56),XH(a,56));Vz(this,"rj",$9(z,57),
$9(a,57));Vz(this,"rp",$9(z,58),$9(a,58));Vz(this,"rg",$9(z,59),$9(a,59));Vz(this,"pd",$9(z,60),$9(a,60));Vz(this,"pa",$9(z,61),$9(a,61));hb(this,"m",XH(z,63),XH(a,63));hb(this,"vb",TC(z,68),TC(a,68));hb(this,"vl",TC(z,69),TC(a,69));Vz(this,"lf",$9(z,65),$9(a,65));Vz(this,"mv",$9(z,66),$9(a,66));Vz(this,"id",$9(z,70),$9(a,70));hb(this,"ic",XH(z,71),!0);Vz(this,"pg",_.SQ(z,72),_.SQ(a,72));Vz(this,"mo",$9(z,73),$9(a,73));Vz(this,"al",$9(z,74),$9(a,74));hb(this,"iv",TC(z,75),TC(a,75));hb(this,"pi",d_(z,
76),d_(a,76));hb(this,"ya",d_(z,77),d_(a,77));hb(this,"ro",d_(z,78),d_(a,78));hb(this,"fo",d_(z,79),d_(a,79));Vz(this,"df",$9(z,80),$9(a,80));Qz(this,"mm",_.gQ(z,81),_.gQ(a,81));Vz(this,"sg",$9(z,82),$9(a,82));Vz(this,"gd",$9(z,83),$9(a,83));Vz(this,"fm",$9(z,84),$9(a,84));hb(this,"ba",XH(z,85),XH(a,85));hb(this,"br",XH(z,86),XH(a,86));hb(this,"bc",z.getBackgroundColor(),a.getBackgroundColor(),16,8);hb(this,"pc",XH(z,88),XH(a,88),16,8);hb(this,"sc",XH(z,89),XH(a,89),16,8);Vz(this,"dv",$9(z,90),$9(a,
90));Vz(this,"md",$9(z,91),$9(a,91));hb(this,"cp",XH(z,92),XH(a,92));Vz(this,"sm",$9(z,93),$9(a,93));hb(this,"cv",XH(z,94),XH(a,94));Vz(this,"ng",$9(z,95),$9(a,95));Vz(this,"il",$9(z,96),$9(a,96));Vz(this,"lo",$9(z,97),$9(a,97));Vz(this,"vm",$9(z,98),$9(a,98));Qz(this,"dc",_.gQ(z,99),_.gQ(a,99));Vz(this,"rf",$9(z,100),$9(a,100));Qz(this,"vf",_.gQ(z,102),_.gQ(a,102));Vz(this,"ra",_.SQ(z,103),_.SQ(a,103));Vz(this,"ckm",$9(z,104),$9(a,104));Vz(this,"gm",$9(z,105),$9(a,105));Vz(this,"ngm",$9(z,106),$9(a,
106));hb(this,"em",XH(z,107),XH(a,107));Vz(this,"cr",$9(z,108),$9(a,108));hb(this,"sl",z.getStoryboardLevel(),a.getStoryboardLevel());hb(this,"sb",XH(z,110),XH(a,110));Qz(this,"pt",_.gQ(z,111),_.gQ(a,111));Qz(this,"gce",_.gQ(z,112),_.gQ(a,112));Vz(this,"tm",$9(z,113),$9(a,113));Vz(this,"ntm",$9(z,114),$9(a,114));hb(this,"mp",XH(z,115),XH(a,115));return this.JSC$19428_components_.join("-")};
var hb=function(a,z,I,J,r,P){if(I!=null){var N=r==void 0||r!=10&&r!=16?10:r;I=Number(I).toString(N);r=new ZLE;r.append(N==16?"0x":"");N=r.append;P==void 0?P="":(P-=I.length,P=P<=0?"":(0,_.Xp1)("0",P));N.call(r,P);r.append(I);j44(a,z,r.toString(),!!Number(J))}},Vz=function(a,z,I,J){I&&j44(a,z,"",!!J)},Qz=function(a,z,I,J){I&&j44(a,z,String(I),!!Number(J))},j44=function(a,z,I,J){J&&(z=z.charAt(0).toUpperCase()+z.substring(1));
a.JSC$19428_components_.push(z+I)};_.rL(LC,kgY);_.Z=LC.prototype;_.Z.JSC$19430_setCrop=function(a){a&&S3(this);return LC.superClass_.JSC$19430_setCrop.call(this,a)};
_.Z.JSC$19430_setHeight=function(a){a=a==null||a<0?void 0:a;a!=null&&this.setSize();return LC.superClass_.JSC$19430_setHeight.call(this,a)};
_.Z.JSC$19430_setImageCrop=function(a){a&&S3(this);return LC.superClass_.JSC$19430_setImageCrop.call(this,a)};
_.Z.JSC$19430_setCircleCrop=function(a){a&&S3(this);return LC.superClass_.JSC$19430_setCircleCrop.call(this,a)};
_.Z.setSize=function(a){_.md(a)&&(a=Math.max(a.width,a.height));a=a==null||a<0?void 0:a;a!=null&&(this.JSC$19430_setWidth(),this.JSC$19430_setHeight());return LC.superClass_.setSize.call(this,a)};
_.Z.JSC$19430_setSmartCrop=function(a){a&&S3(this);return LC.superClass_.JSC$19430_setSmartCrop.call(this,a)};
_.Z.JSC$19430_setSmartCropNoClip=function(a){a&&S3(this);return LC.superClass_.JSC$19430_setSmartCropNoClip.call(this,a)};
_.Z.JSC$19430_setSmartCropUseFace=function(a){a&&S3(this);return LC.superClass_.JSC$19430_setSmartCropUseFace.call(this,a)};
_.Z.setCenterCrop=function(a){a&&S3(this);return LC.superClass_.setCenterCrop.call(this,a)};
_.Z.JSC$19430_setPad=function(a){a&&S3(this);return LC.superClass_.JSC$19430_setPad.call(this,a)};
_.Z.JSC$19430_setWidth=function(a){a=a==null||a<0?void 0:a;a!=null&&this.setSize();return LC.superClass_.JSC$19430_setWidth.call(this,a)};
var ze0=function(a){a.clearOptions();var z=a.JSC$19428_parsedOptions_,I=z.valueProto_;bT(!0,_.SQ(I,3),_.SQ(z.signatureFlagProto_,3))&&_.PW(I,3,!0);return a},S3=function(a){a.setCenterCrop();
a.JSC$19430_setCircleCrop();a.JSC$19430_setCrop();a.JSC$19430_setImageCrop();a.JSC$19430_setPad();a.JSC$19430_setSmartCrop();a.JSC$19430_setSmartCropNoClip();a.JSC$19430_setSmartCropUseFace()};
LC.prototype.build=function(){var a=this.JSC$19428_parsedOptions_.valueProto_;$9(a,18)||$9(a,45)?a.getSize()||this.setSize(0):(a=this.JSC$19428_parsedOptions_.valueProto_,a.getSize()||a.getWidth()||a.getHeight()||(this.setSize(),this.JSC$19430_setHeight(),this.JSC$19430_setWidth(),S3(this)));return LC.superClass_.build.call(this)};var INz=/^[^\/]*\/\//,iT=function(a,z){z=z===void 0?!1:z;this.original_=a;this.originalPrefix_="";(a=this.original_.match(INz))&&a[0]?(this.originalPrefix_=a[0],a=this.originalPrefix_.match(/\w+/)?this.original_:"http://"+this.original_.substring(this.originalPrefix_.length)):a="http://"+this.original_;this.uri_=_.Rf(a,!0);this.isFreeformUrl_=z;this.JSC$19434_valid_=!0;this.obfuscated_=!1},JAG=function(a,z){a.JSC$19436_pathPrefix_=a.JSC$19436_pathPrefix_?a.JSC$19436_pathPrefix_+("/"+z):z},xL=function(a){if(a.JSC$19436_components_==
void 0){var z=a.uri_.getPath().substring(1);
a.JSC$19436_pathPrefix_=null;if(a.isFreeformUrl_){a.JSC$19436_components_=[];if((z.match(/=/g)||[]).length>1)return a.JSC$19434_valid_=!1,a.JSC$19436_components_;var I=z.indexOf("=");I!=-1?(a.JSC$19436_components_.push(z.substr(0,I)),a.JSC$19436_components_.push(z.substr(I+1))):a.JSC$19436_components_.push(z);return a.JSC$19436_components_}a.JSC$19436_components_=z.split("/");z=a.JSC$19436_components_.length;z>2&&a.JSC$19436_components_[0]=="u"&&(JAG(a,a.JSC$19436_components_[0]+"/"+a.JSC$19436_components_[1]),
a.JSC$19436_components_.shift(),a.JSC$19436_components_.shift(),z-=2);if(z==0||z==4||z>7)return a.JSC$19434_valid_=!1,a.JSC$19436_components_;if(z==2)JAG(a,a.JSC$19436_components_[0]);else if(a.JSC$19436_components_[0]=="image")JAG(a,a.JSC$19436_components_[0]);else if(z==7||z==3)return a.JSC$19434_valid_=!1,a.JSC$19436_components_;if(z<=3){a.obfuscated_=!0;z==3&&(JAG(a,a.JSC$19436_components_[1]),a.JSC$19436_components_.shift(),--z);--z;I=a.JSC$19436_components_[z];var J=I.indexOf("=");J!=-1&&(a.JSC$19436_components_[z]=
I.substr(0,J),a.JSC$19436_components_.push(I.substr(J+1)))}}return a.JSC$19436_components_};
iT.prototype.isValid=function(){xL(this);return this.JSC$19434_valid_};
iT.prototype.isObfuscated=function(){xL(this);return this.obfuscated_};
var rAY=function(a){xL(a);return a.isFreeformUrl_},vN=function(a){xL(a);
a.JSC$19436_pathPrefix_==void 0&&(a.JSC$19436_pathPrefix_=null);return a.JSC$19436_pathPrefix_},P_e=function(a){switch(xL(a).length){case 7:return!0;
case 6:return vN(a)==null;case 5:return!1;case 3:return!0;case 2:return vN(a)==null;case 1:return!1;default:return!1}},GK=function(a,z){if(rAY(a))a:{switch(z){case 7:z=0;
break;case 4:if(!P_e(a)){a=null;break a}z=1;break;default:a=null;break a}a=xL(a)[z]}else if(a.isObfuscated())a:{var I=vN(a)!=null?1:0;switch(z){case 6:z=I;break;case 4:if(!P_e(a)){a=null;break a}z=1+I;break;default:a=null;break a}a=xL(a)[z]}else a:{I=vN(a)!=null?1:0;switch(z){case 0:z=I;break;case 1:z=1+I;break;case 2:z=2+I;break;case 3:z=3+I;break;case 4:if(!P_e(a)){a=null;break a}z=4+I;break;case 5:z=P_e(a)?1:0;z=4+I+z;break;default:a=null;break a}a=xL(a)[z]}return a};
iT.prototype.getOptions=function(){this.options_==void 0&&(this.options_=GK(this,4));return this.options_};var YrE=function(){};
YrE.prototype.parse=function(a,z){return new Mxz(a,z===void 0?!1:z)};
var Mxz=function(a,z){iT.call(this,a,z===void 0?!1:z)};
_.b(Mxz,iT);_.rL(lC,LC);var cWV;lC.prototype.isValid=function(){return this.parsedImageUrl_.isValid()};
lC.prototype.build=function(){if(!this.parsedImageUrl_.isValid())return this.parsedImageUrl_.original_;var a=lC.superClass_.build.call(this),z=[];vN(this.parsedImageUrl_)!=null&&z.push(vN(this.parsedImageUrl_));var I=rAY(this.parsedImageUrl_);if(this.parsedImageUrl_.isObfuscated()){var J=this.parsedImageUrl_;J.obfuscatedData_==void 0&&(J.obfuscatedData_=GK(J,6));z.push(J.obfuscatedData_+(a?"="+a:""))}else if(I){J=z.push;var r=this.parsedImageUrl_;r.freeformUrlPath_===void 0&&(r.freeformUrlPath_=GK(r,
7));J.call(z,r.freeformUrlPath_);a&&z.push(a)}else J=z.push,r=this.parsedImageUrl_,r.obfuscatedGaiaId_==void 0&&(r.obfuscatedGaiaId_=GK(r,0)),J.call(z,r.obfuscatedGaiaId_),J=z.push,r=this.parsedImageUrl_,r.photoId_==void 0&&(r.photoId_=GK(r,1)),J.call(z,r.photoId_),J=z.push,r=this.parsedImageUrl_,r.imageVersion_==void 0&&(r.imageVersion_=GK(r,2)),J.call(z,r.imageVersion_),J=z.push,r=this.parsedImageUrl_,r.signature_==void 0&&(r.signature_=GK(r,3)),J.call(z,r.signature_),a&&z.push(a),a=z.push,J=this.parsedImageUrl_,
J.filename_==void 0&&(J.filename_=GK(J,5)),a.call(z,J.filename_);z=I?z.join("="):z.join("/");z=_.Rf(this.protocolPrefix_+this.JSC$19442_domain_+"/"+z+(this.JSC$19442_query_?"?"+this.JSC$19442_query_:"")).toString();z.startsWith("%3a//")&&(z=z.replace("%3a//","://"));return z};var ZEE=_.kK(["viewBox"]),C_E=_.kK(["width"]),NaY=_.kK(["height"]),tve=_.kK(["fill"]),uNY=_.kK(["id"]),EQi=_.kK(["x"]),Ba0=_.kK(["y"]);eY0.prototype.getLength=function(){return this.parsedData.length};
eY0.prototype.write=function(a){for(var z=0,I=this.parsedData.length;z<I;z++)a.put(this.parsedData[z],8)};
var PkZ=function(a,z){var I=new eY0(z);a.dataList.push(I);I=a.errorCorrectLevel;var J=1,r=encodeURI(z).toString().replace(/%[0-9a-fA-F]{2}/g,"a");z=r.length+(r.length!=z?3:0);r=0;for(var P=$L.length;r<=P;r++){var N=0;switch(I){case 1:N=$L[r][0];break;case 0:N=$L[r][1];break;case 3:N=$L[r][2];break;case 2:N=$L[r][3]}if(z<=N)break;else J++}if(J>$L.length)throw Error("yk");a.typeNumber=J;a.dataCache=null};
aa0.prototype.isDark=function(a,z){if(a<0||this.moduleCount<=a||z<0||this.moduleCount<=z)throw Error("qk`"+a+"`"+z);return this.modules[a][z]};
for(var ZHY=function(a,z,I){a.moduleCount=a.typeNumber*4+17;a.modules=Array(a.moduleCount);for(var J=0;J<a.moduleCount;J++){a.modules[J]=Array(a.moduleCount);for(var r=0;r<a.moduleCount;r++)a.modules[J][r]=null}gQG(a,0,0);gQG(a,a.moduleCount-7,0);gQG(a,0,a.moduleCount-7);J=OEE[a.typeNumber-1];for(r=0;r<J.length;r++)for(var P=0;P<J.length;P++){var N=J[r],u=J[P];if(a.modules[N][u]==null)for(var E=-2;E<=2;E++)for(var O=-2;O<=2;O++)a.modules[N+E][u+O]=E==-2||E==2||O==-2||O==2||E==0&&O==0?!0:!1}for(J=
8;J<a.moduleCount-8;J++)a.modules[J][6]==null&&(a.modules[J][6]=J%2==0);for(J=8;J<a.moduleCount-8;J++)a.modules[6][J]==null&&(a.modules[6][J]=J%2==0);J=a.errorCorrectLevel<<3|I;for(r=J<<10;X2(r)-X2(1335)>=0;)r^=1335<<X2(r)-X2(1335);J=(J<<10|r)^21522;for(r=0;r<15;r++)P=!z&&(J>>r&1)==1,r<6?a.modules[r][8]=P:r<8?a.modules[r+1][8]=P:a.modules[a.moduleCount-15+r][8]=P;for(r=0;r<15;r++)P=!z&&(J>>r&1)==1,r<8?a.modules[8][a.moduleCount-r-1]=P:r<9?a.modules[8][15-r-1+1]=P:a.modules[8][15-r-1]=P;a.modules[a.moduleCount-
8][8]=!z;if(a.typeNumber>=7){J=a.typeNumber;for(r=J<<12;X2(r)-X2(7973)>=0;)r^=7973<<X2(r)-X2(7973);J=J<<12|r;for(r=0;r<18;r++)P=!z&&(J>>r&1)==1,a.modules[Math.floor(r/3)][r%3+a.moduleCount-8-3]=P;for(r=0;r<18;r++)P=!z&&(J>>r&1)==1,a.modules[r%3+a.moduleCount-8-3][Math.floor(r/3)]=P}if(a.dataCache==null){r=a.typeNumber;P=a.dataList;z=a.errorCorrectLevel;J=fNZ(r,z);if(J==void 0)throw Error("xk`"+r+"`"+z);N=J.length/3;z=[];for(u=0;u<N;u++){E=J[u*3];O=J[u*3+1];for(var f=J[u*3+2],A=0;A<E;A++)z.push(new jXZ(O,
f))}J=new zV0;for(N=0;N<P.length;N++)u=P[N],J.put(u.mode,4),J.put(u.getLength(),AAz(u.mode,r)),u.write(J);for(N=r=0;N<z.length;N++)r+=z[N].dataCount;if(J.length>r*8)throw Error("rk`"+J.length+"`"+r*8);for(J.length+4<=r*8&&J.put(0,4);J.length%8!=0;)s4Z(J,!1);for(;!(J.length>=r*8);){J.put(236,8);if(J.length>=r*8)break;J.put(17,8)}P=r=O=0;N=Array(z.length);u=Array(z.length);for(E=0;E<z.length;E++){A=z[E].dataCount;var n=z[E].totalCount-A;r=Math.max(r,A);P=Math.max(P,n);N[E]=Array(A);for(f=0;f<N[E].length;f++)N[E][f]=
255&J.buffer[f+O];O+=A;f=n;A=new pC([1],0);for(n=0;n<f;n++)A=A.multiply(new pC([1,nQG(n)],0));f=A;A=(new pC(N[E],f.getLength()-1)).mod(f);u[E]=Array(f.getLength()-1);for(f=0;f<u[E].length;f++)n=f+A.getLength()-u[E].length,u[E][f]=n>=0?A.get(n):0}for(f=J=0;f<z.length;f++)J+=z[f].totalCount;J=Array(J);for(f=O=0;f<r;f++)for(E=0;E<z.length;E++)f<N[E].length&&(J[O++]=N[E][f]);for(f=0;f<P;f++)for(E=0;E<z.length;E++)f<u[E].length&&(J[O++]=u[E][f]);a.dataCache=J}z=a.dataCache;J=-1;r=a.moduleCount-1;P=7;N=
0;for(u=a.moduleCount-1;u>0;u-=2)for(u==6&&u--;;){for(E=0;E<2;E++)a.modules[r][u-E]==null&&(O=!1,N<z.length&&(O=(z[N]>>>P&1)==1),KqE(I,r,u-E)&&(O=!O),a.modules[r][u-E]=O,P--,P==-1&&(N++,P=7));r+=J;if(r<0||a.moduleCount<=r){r-=J;J=-J;break}}},gQG=function(a,z,I){for(var J=-1;J<=7;J++)if(!(z+J<=-1||a.moduleCount<=z+J))for(var r=-1;r<=7;r++)I+r<=-1||a.moduleCount<=I+r||(a.modules[z+J][I+r]=0<=J&&J<=6&&(r==0||r==6)||0<=r&&r<=6&&(J==0||J==6)||2<=J&&J<=4&&2<=r&&r<=4?!0:!1)},Ck0=function(a){for(var z=0,
I=0,J=0;J<8;J++){ZHY(a,!0,J);
var r=a;for(var P=r.moduleCount,N=0,u=0;u<P;u++)for(var E=0;E<P;E++){for(var O=0,f=r.isDark(u,E),A=-1;A<=1;A++)if(!(u+A<0||P<=u+A))for(var n=-1;n<=1;n++)E+n<0||P<=E+n||(A!=0||n!=0)&&f==r.isDark(u+A,E+n)&&O++;O>5&&(N+=3+O-5)}for(u=0;u<P-1;u++)for(E=0;E<P-1;E++)if(O=0,r.isDark(u,E)&&O++,r.isDark(u+1,E)&&O++,r.isDark(u,E+1)&&O++,r.isDark(u+1,E+1)&&O++,O==0||O==4)N+=3;for(u=0;u<P;u++)for(E=0;E<P-6;E++)r.isDark(u,E)&&!r.isDark(u,E+1)&&r.isDark(u,E+2)&&r.isDark(u,E+3)&&r.isDark(u,E+4)&&!r.isDark(u,E+5)&&
r.isDark(u,E+6)&&(N+=40);for(E=0;E<P;E++)for(u=0;u<P-6;u++)r.isDark(u,E)&&!r.isDark(u+1,E)&&r.isDark(u+2,E)&&r.isDark(u+3,E)&&r.isDark(u+4,E)&&!r.isDark(u+5,E)&&r.isDark(u+6,E)&&(N+=40);for(E=O=0;E<P;E++)for(u=0;u<P;u++)r.isDark(u,E)&&O++;r=N+=Math.abs(100*O/P/P-50)/5*10;if(J==0||z>r)z=r,I=J}return I},OEE=[[],
[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]],X2=function(a){for(var z=0;a!=0;)z++,a>>>=1;return z},KqE=function(a,z,I){switch(a){case 0:return(z+I)%2==0;
case 1:return z%2==0;case 2:return I%3==0;case 3:return(z+I)%3==0;case 4:return(Math.floor(z/2)+Math.floor(I/3))%2==0;case 5:return z*I%2+z*I%3==0;case 6:return(z*I%2+z*I%3)%2==0;case 7:return(z*I%3+(z+I)%2)%2==0;default:throw Error("sk`"+a);}},AAz=function(a,z){if(1<=z&&z<10)switch(a){case 1:return 10;
case 2:return 9;case 4:return 8;case 8:return 8;default:throw Error("tk`"+a);}else if(z<27)switch(a){case 1:return 12;case 2:return 11;case 4:return 16;case 8:return 10;default:throw Error("tk`"+a);}else if(z<41)switch(a){case 1:return 14;case 2:return 13;case 4:return 16;case 8:return 12;default:throw Error("tk`"+a);}else throw Error("uk`"+z);},TK=function(a){if(a<1)throw Error("vk`"+a);
return Fqi[a]},nQG=function(a){for(;a<0;)a+=255;
for(;a>=256;)a-=255;return dK[a]},dK=Array(256),Fqi=Array(256),HEV=0;HEV<8;HEV++)dK[HEV]=1<<HEV;
for(var WN=8;WN<256;WN++)dK[WN]=dK[WN-4]^dK[WN-5]^dK[WN-6]^dK[WN-8];for(var bEE=0;bEE<255;bEE++)Fqi[dK[bEE]]=bEE;pC.prototype.get=function(a){return this.num[a]};
pC.prototype.getLength=function(){return this.num.length};
pC.prototype.multiply=function(a){for(var z=Array(this.getLength()+a.getLength()-1),I=0;I<this.getLength();I++)for(var J=0;J<a.getLength();J++)z[I+J]^=nQG(TK(this.get(I))+TK(a.get(J)));return new pC(z,0)};
pC.prototype.mod=function(a){if(this.getLength()-a.getLength()<0)return this;for(var z=TK(this.get(0))-TK(a.get(0)),I=Array(this.getLength()),J=0;J<this.getLength();J++)I[J]=this.get(J);for(J=0;J<a.getLength();J++)I[J]^=nQG(TK(a.get(J))+z);return(new pC(I,0)).mod(a)};
var heZ=[[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]],fNZ=function(a,z){switch(z){case 1:return heZ[(a-1)*4];case 0:return heZ[(a-1)*4+1];case 3:return heZ[(a-1)*4+2];case 2:return heZ[(a-1)*4+3]}};
zV0.prototype.get=function(a){return(this.buffer[Math.floor(a/8)]>>>7-a%8&1)==1};
zV0.prototype.put=function(a,z){for(var I=0;I<z;I++)s4Z(this,(a>>>z-I-1&1)==1)};
var s4Z=function(a,z){var I=Math.floor(a.length/8);a.buffer.length<=I&&a.buffer.push(0);z&&(a.buffer[I]|=128>>>a.length%8);a.length++},$L=[[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]],rvM=function(){var a=function(z,I){this.JSC$19462__el=z;this.JSC$19462__htOption=I};
a.prototype.draw=function(z){function I(f,A){f=document.createElementNS("http://www.w3.org/2000/svg",f);for(var n in A)A.hasOwnProperty(n)&&(n==="href"?_.wgi(f,A[n]):_.qL([_.zB(ZEE),_.zB(C_E),_.zB(NaY),_.zB(tve),_.zB(uNY),_.zB(EQi),_.zB(Ba0)],f,n,A[n]));return f}
var J=this.JSC$19462__htOption,r=this.JSC$19462__el,P=z.moduleCount;this.clear();var N=I("svg",{viewBox:"0 0 "+String(P)+" "+String(P),width:"100%",height:"100%",fill:J.colorLight,"xmlns:xlink":"http://www.w3.org/1999/xlink"});r.appendChild(N);N.appendChild(I("rect",{fill:J.colorLight,width:"100%",height:"100%"}));N.appendChild(I("rect",{fill:J.colorDark,width:"1",height:"1",id:"template"}));for(var u=0;u<P;u++)for(var E=0;E<P;E++)if(z.isDark(u,E)){var O=I("use",{x:String(u),y:String(E),href:"#template"});
N.appendChild(O)}};
a.prototype.clear=function(){for(;this.JSC$19462__el.hasChildNodes();)this.JSC$19462__el.removeChild(this.JSC$19462__el.lastChild)};
return a}(),Jv4=document.documentElement.tagName.toLowerCase()==="svg"?rvM:typeof CanvasRenderingContext2D!="undefined"?function(){var a=function(z,I){this._bIsPainted=!1;
IaZ();this.JSC$19462__htOption=I;this._elCanvas=document.createElement("canvas");this._elCanvas.width=I.width;this._elCanvas.height=I.height;z.appendChild(this._elCanvas);this.JSC$19462__el=z;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$19462__el.appendChild(this._elImage);this._bSupportDataURI=null};
a.prototype._onMakeImage=function(){var z=this._elCanvas.toDataURL("image/png");this._elImage.src=z;this._elImage.style.display="block";this._elCanvas.style.display="none"};
a.prototype._safeSetDataURI=function(z,I){var J=this;J._fFail=I;J._fSuccess=z;J._bSupportDataURI===null?(z=_.OS("IMG"),I=function(){J._bSupportDataURI=!1;J._fFail&&J._fFail.call(J)},z.onabort=I,z.onerror=I,z.onload=function(){J._bSupportDataURI=!0;
J._fSuccess&&J._fSuccess.call(J)},z.src="data:image/gif;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAYAAACNbyblAAAAHElEQVQI12P4//8/w38GIAXDIBKE0DHxgljNBAAO9TXL0Y4OHwAAAABJRU5ErkJggg=="):J._bSupportDataURI===!0&&J._fSuccess?J._fSuccess.call(J):J._bSupportDataURI===!1&&J._fFail&&J._fFail.call(J)};
a.prototype.draw=function(z){var I=this._oContext,J=this.JSC$19462__htOption,r=z.moduleCount,P=J.width/r,N=J.height/r,u=Math.round(P),E=Math.round(N);this._elImage.style.display="none";this.clear();for(var O=0;O<r;O++)for(var f=0;f<r;f++){var A=z.isDark(O,f),n=f*P,F=O*N;I.strokeStyle=A?J.colorDark:J.colorLight;I.lineWidth=1;I.fillStyle=A?J.colorDark:J.colorLight;I.fillRect(n,F,P,N);I.strokeRect(Math.floor(n)+.5,Math.floor(F)+.5,u,E);I.strokeRect(Math.ceil(n)-.5,Math.ceil(F)-.5,u,E)}this._bIsPainted=
!0};
a.prototype.makeImage=function(){this._bIsPainted&&this._safeSetDataURI(this._onMakeImage,function(){})};
a.prototype.clear=function(){this._oContext.clearRect(0,0,this._elCanvas.width,this._elCanvas.height);this._bIsPainted=!1};
a.prototype.round=function(z){return z?Math.floor(z*1E3)/1E3:z};
return a}():function(){var a=function(z,I){this.JSC$19462__el=z;
this.JSC$19462__htOption=I};
a.prototype.draw=function(z){for(var I=this.JSC$19462__htOption,J=this.JSC$19462__el,r=z.moduleCount,P=Math.floor(I.width/r),N=Math.floor(I.height/r),u=['<table style="border:0;border-collapse:collapse;">'],E=0;E<r;E++){u.push("<tr>");for(var O=0;O<r;O++)u.push('<td style="border:0;border-collapse:collapse;padding:0;margin:0;width:'+P+"px;height:"+N+"px;background-color:"+(z.isDark(E,O)?I.colorDark:I.colorLight)+';"></td>');u.push("</tr>")}u.push("</table>");z=u.join("");z=_.ble(_.VIi,z);_.YP(J,z);
z=J.childNodes[0];r=(I.width-z.offsetWidth)/2;P=(I.height-z.offsetHeight)/2;r>0&&P>0&&(z.style.margin=P+"px "+r+"px")};
a.prototype.clear=function(){this.JSC$19462__el.textContent=""};
return a}();
NYZ.prototype.makeImage=function(){typeof this._oDrawing.makeImage=="function"&&(!this.JSC$19465__android||this.JSC$19465__android>=3)&&this._oDrawing.makeImage()};
NYZ.prototype.clear=function(){this._oDrawing.clear()};
_.IE.QRCode=NYZ;var VvZ={cellSize:16,cellStyle:2,relativeCircleSize:.9375,color:"white",backgroundColor:"black",autoClear:!0,logoPadding:1,padding:0,borderRadius:0};var oi=function(){};
oi.prototype.stringify=function(a){return _.IE.JSON.stringify(a,void 0)};
oi.prototype.parse=function(a){return _.IE.JSON.parse(a,void 0)};var Q4E=function(){_.AH.call(this,"z")};
_.rL(Q4E,_.AH);var S9Y=function(){_.AH.call(this,"y")};
_.rL(S9Y,_.AH);var iEZ=null,xJY=function(){return iEZ=iEZ||new _.HV},vQZ=function(a){_.AH.call(this,"serverreachability",a)};
_.rL(vQZ,_.AH);var UQ=function(a){var z=xJY();z.dispatchEvent(new vQZ(z,a))},GpY=function(a,z){_.AH.call(this,"statevent",a);
this.stat=z};
_.rL(GpY,_.AH);var Dg=function(a){var z=xJY();z.dispatchEvent(new GpY(z,a))},$Je=function(a,z,I,J){_.AH.call(this,"timingevent",a);
this.size=z;this.rtt=I;this.retries=J};
_.rL($Je,_.AH);var XEY=function(a,z,I){var J=xJY();J.dispatchEvent(new $Je(J,a,z,I))},Ri=function(a,z){if(typeof a!=="function")throw Error("zk");
return _.IE.setTimeout(function(){a()},z)};var Lg=function(){this.redactEnabled_=!0};
Lg.prototype.disableRedact=function(){this.redactEnabled_=!1};
var Ta0=function(a,z,I,J,r,P){a.info(function(){if(a.redactEnabled_)if(P){var N="";for(var u=P.split("&"),E=0;E<u.length;E++){var O=u[E].split("=");if(O.length>1){var f=O[0];O=O[1];var A=f.split("_");N=A.length>=2&&A[1]=="type"?N+(f+"="+O+"&"):N+(f+"=redacted&")}}}else N=null;else N=P;return"XMLHTTP REQ ("+J+") [attempt "+r+"]: "+z+"\n"+I+"\n"+N})},dJf=function(a,z,I,J,r,P,N){a.info(function(){return"XMLHTTP RESP ("+J+") [ attempt "+r+"]: "+z+"\n"+I+"\n"+P+" "+N})},lT=function(a,z,I,J){a.info(function(){return"XMLHTTP TEXT ("+
z+"): "+Wq0(a,I)+(J?" "+J:"")})},oQZ=function(a,z){a.info(function(){return"TIMEOUT: "+z})};
Lg.prototype.debug=function(){};
Lg.prototype.info=function(){};
Lg.prototype.warning=function(){};
var Wq0=function(a,z){if(!a.redactEnabled_)return z;if(!z)return null;try{var I=JSON.parse(z);if(I)for(var J=0;J<I.length;J++)if(Array.isArray(I[J])){var r=I[J];if(!(r.length<2)){var P=r[1];if(Array.isArray(P)&&!(P.length<1)){var N=P[0];if(N!="noop"&&N!="stop"&&N!="close")for(var u=1;u<P.length;u++)P[u]=""}}}return(0,_.vV)(I)}catch(E){return a.debug("Exception parsing expected JS array - probably was not JS"),z}};var pg=function(a,z,I,J,r){this.JSC$19487_channel_=a;this.JSC$19487_channelDebug_=z;this.sid_=I;this.JSC$19487_rid_=J;this.JSC$19487_retryId_=r||1;this.JSC$19487_eventHandler_=new _.PJ(this);this.timeout_=45E3;this.JSC$19487_extraHeaders_=null;this.JSC$19487_successful_=!1;this.JSC$19487_postData_=this.JSC$19487_requestUri_=this.JSC$19487_baseUri_=this.JSC$19487_type_=this.JSC$19487_requestStartTime_=this.JSC$19487_watchDogTimeoutTime_=this.JSC$19487_watchDogTimerId_=null;this.JSC$19487_pendingMessages_=
[];this.JSC$19487_xmlHttp_=null;this.JSC$19487_xmlHttpChunkStart_=0;this.JSC$19487_lastError_=this.JSC$19487_verb_=null;this.JSC$19487_lastStatusCode_=-1;this.JSC$19487_cancelled_=!1;this.JSC$19487_readyStateChangeThrottleMs_=0;this.JSC$19487_readyStateChangeThrottle_=null;this.firstByteReceived_=this.initialResponseDecoded_=this.decodeInitialResponse_=this.decodeChunks_=!1;this.fetchResponseState_=new UJ0},UJ0=function(){this.JSC$19489_textDecoder=null;
this.responseBuffer="";this.responseArrivedForFetch=!1},DJG=function(a,z){switch(a){case 0:return"Non-200 return code ("+z+")";
case 1:return"XMLHTTP failure (no data)";case 2:return"HttpConnection timeout";default:return"Unknown error"}},ReM={},LqZ={};
pg.prototype.setTimeout=function(a){this.timeout_=a};
var pEZ=function(a,z,I){a.JSC$19487_type_=1;a.JSC$19487_baseUri_=_.Nk(z.clone());a.JSC$19487_postData_=I;a.decodeChunks_=!0;lN0(a,null)},lN0=function(a,z){a.JSC$19487_requestStartTime_=Date.now();
wEi(a);a.JSC$19487_requestUri_=a.JSC$19487_baseUri_.clone();VJ(a.JSC$19487_requestUri_,"t",a.JSC$19487_retryId_);a.JSC$19487_xmlHttpChunkStart_=0;var I=a.JSC$19487_channel_.JSC$19506_supportsCrossDomainXhrs_;a.fetchResponseState_=new UJ0;a.JSC$19487_xmlHttp_=mJY(a.JSC$19487_channel_,I?z:null,!a.JSC$19487_postData_);a.JSC$19487_readyStateChangeThrottleMs_>0&&(a.JSC$19487_readyStateChangeThrottle_=new _.kc((0,_.HW)(a.JSC$19491_xmlHttpHandler_,a,a.JSC$19487_xmlHttp_),a.JSC$19487_readyStateChangeThrottleMs_));
a.JSC$19487_eventHandler_.listen(a.JSC$19487_xmlHttp_,"readystatechange",a.JSC$19491_readyStateChangeHandler_);z=a.JSC$19487_extraHeaders_?_.x8.clone(a.JSC$19487_extraHeaders_):{};a.JSC$19487_postData_?(a.JSC$19487_verb_||(a.JSC$19487_verb_="POST"),z["Content-Type"]="application/x-www-form-urlencoded",a.JSC$19487_xmlHttp_.send(a.JSC$19487_requestUri_,a.JSC$19487_verb_,a.JSC$19487_postData_,z)):(a.JSC$19487_verb_="GET",a.JSC$19487_xmlHttp_.send(a.JSC$19487_requestUri_,a.JSC$19487_verb_,null,z));UQ(1);
Ta0(a.JSC$19487_channelDebug_,a.JSC$19487_verb_,a.JSC$19487_requestUri_,a.JSC$19487_rid_,a.JSC$19487_retryId_,a.JSC$19487_postData_)};
pg.prototype.JSC$19491_readyStateChangeHandler_=function(a){a=a.target;var z=this.JSC$19487_readyStateChangeThrottle_;z&&_.$M(a)==3?(this.JSC$19487_channelDebug_.debug("Throttling readystatechange."),z.fire()):this.JSC$19491_xmlHttpHandler_(a)};
pg.prototype.JSC$19491_xmlHttpHandler_=function(a){try{a==this.JSC$19487_xmlHttp_?yAE(this):this.JSC$19487_channelDebug_.warning("Called back with an unexpected xmlhttp")}catch(z){this.JSC$19487_channelDebug_.debug("Failed call to OnXmlHttpReadyStateChanged_"),kp0(this)}finally{}};
var yAE=function(a){var z=_.$M(a.JSC$19487_xmlHttp_),I=a.JSC$19487_xmlHttp_.JSC$9754_lastErrorCode_,J=a.JSC$19487_xmlHttp_.getStatus();if(!(z<3||z==3&&!kp0(a))){a.JSC$19487_cancelled_||z!=4||I==7||(I==8||J<=0?UQ(3):UQ(2));Mvz(a);var r=a.JSC$19487_xmlHttp_.getStatus();a.JSC$19487_lastStatusCode_=r;I=cAf(a);kp0(a)||a.JSC$19487_channelDebug_.debug(function(){return"No response text for uri "+a.JSC$19487_requestUri_+" status "+r});
a.JSC$19487_successful_=r==200;dJf(a.JSC$19487_channelDebug_,a.JSC$19487_verb_,a.JSC$19487_requestUri_,a.JSC$19487_rid_,a.JSC$19487_retryId_,z,r);if(a.JSC$19487_successful_){if(a.decodeInitialResponse_&&!a.initialResponseDecoded_)if(J=Y9z(a))lT(a.JSC$19487_channelDebug_,a.JSC$19487_rid_,J,"Initial handshake response via X-HTTP-Initial-Response"),a.initialResponseDecoded_=!0,q9E(a,J);else{a.JSC$19487_successful_=!1;a.JSC$19487_lastError_=3;Dg(12);a.JSC$19487_channelDebug_.warning("XMLHTTP Missing X_HTTP_INITIAL_RESPONSE ("+
a.JSC$19487_rid_+")");wK(a);mF(a);return}a.decodeChunks_?eeZ(a,z,I):(lT(a.JSC$19487_channelDebug_,a.JSC$19487_rid_,I,null),q9E(a,I));z==4&&wK(a);a.JSC$19487_successful_&&!a.JSC$19487_cancelled_&&(z==4?a4V(a.JSC$19487_channel_,a):(a.JSC$19487_successful_=!1,wEi(a)))}else xhY(a.JSC$19487_xmlHttp_),r==400&&I.indexOf("Unknown SID")>0?(a.JSC$19487_lastError_=3,Dg(12),a.JSC$19487_channelDebug_.warning("XMLHTTP Unknown SID ("+a.JSC$19487_rid_+")")):(a.JSC$19487_lastError_=0,Dg(13),a.JSC$19487_channelDebug_.warning("XMLHTTP Bad status "+
r+" ("+a.JSC$19487_rid_+")")),wK(a),mF(a)}},Y9z=function(a){return a.JSC$19487_xmlHttp_&&(a=$H(a.JSC$19487_xmlHttp_,"X-HTTP-Initial-Response"))&&!_.NO(a)?a:null},cAf=function(a){if(!joe(a))return a.JSC$19487_xmlHttp_.getResponseText();
var z=a.JSC$19487_xmlHttp_.getResponse();if(z==="")return"";var I="",J=z.length,r=_.$M(a.JSC$19487_xmlHttp_)==4;if(!a.fetchResponseState_.JSC$19489_textDecoder){if(typeof TextDecoder==="undefined")return wK(a),mF(a),"";a.fetchResponseState_.JSC$19489_textDecoder=new _.IE.TextDecoder}for(var P=0;P<J;P++)a.fetchResponseState_.responseArrivedForFetch=!0,I+=a.fetchResponseState_.JSC$19489_textDecoder.decode(z[P],{stream:!(r&&P==J-1)});z.length=0;a.fetchResponseState_.responseBuffer+=I;a.JSC$19487_xmlHttpChunkStart_=
0;return a.fetchResponseState_.responseBuffer},kp0=function(a){return a.JSC$19487_xmlHttp_?a.fetchResponseState_.responseArrivedForFetch?!0:!(!a.JSC$19487_xmlHttp_.getResponseText()&&!a.JSC$19487_xmlHttp_.getResponse()):!1},joe=function(a){return a.JSC$19487_xmlHttp_?a.JSC$19487_verb_=="GET"&&a.JSC$19487_type_!=2&&a.JSC$19487_channel_.usesFetchStreams_:!1},eeZ=function(a,z,I){for(var J=!0,r;!a.JSC$19487_cancelled_&&a.JSC$19487_xmlHttpChunkStart_<I.length;)if(r=zze(a,I),r==LqZ){z==4&&(a.JSC$19487_lastError_=
4,Dg(14),J=!1);
lT(a.JSC$19487_channelDebug_,a.JSC$19487_rid_,null,"[Incomplete Response]");break}else if(r==ReM){a.JSC$19487_lastError_=4;Dg(15);lT(a.JSC$19487_channelDebug_,a.JSC$19487_rid_,I,"[Invalid Chunk]");J=!1;break}else lT(a.JSC$19487_channelDebug_,a.JSC$19487_rid_,r,null),q9E(a,r);joe(a)&&a.JSC$19487_xmlHttpChunkStart_!=0&&(a.fetchResponseState_.responseBuffer=a.fetchResponseState_.responseBuffer.slice(a.JSC$19487_xmlHttpChunkStart_),a.JSC$19487_xmlHttpChunkStart_=0);z!=4||I.length!=0||a.fetchResponseState_.responseArrivedForFetch||
(a.JSC$19487_lastError_=1,Dg(16),J=!1);a.JSC$19487_successful_=a.JSC$19487_successful_&&J;J?I.length>0&&!a.firstByteReceived_&&(a.firstByteReceived_=!0,z=a.JSC$19487_channel_,z.JSC$19506_backChannelRequest_==a&&z.detectBufferingProxy_&&!z.bpDetectionDone_&&(z.JSC$19506_channelDebug_.info("Great, no buffering proxy detected. Bytes received: "+I.length),I4z(z),z.bpDetectionDone_=!0,Dg(11))):(lT(a.JSC$19487_channelDebug_,a.JSC$19487_rid_,I,"[Invalid Chunked Response]"),wK(a),mF(a))},zze=function(a,z){var I=
a.JSC$19487_xmlHttpChunkStart_,J=z.indexOf("\n",I);
if(J==-1)return LqZ;I=Number(z.substring(I,J));if(isNaN(I))return ReM;J+=1;if(J+I>z.length)return LqZ;z=z.slice(J,J+I);a.JSC$19487_xmlHttpChunkStart_=J+I;return z};
pg.prototype.cancel=function(){this.JSC$19487_cancelled_=!0;wK(this)};
var wEi=function(a){a.JSC$19487_watchDogTimeoutTime_=Date.now()+a.timeout_;JXz(a,a.timeout_)},JXz=function(a,z){if(a.JSC$19487_watchDogTimerId_!=null)throw Error("Ak");
a.JSC$19487_watchDogTimerId_=Ri((0,_.HW)(a.JSC$19491_onWatchDogTimeout_,a),z)},Mvz=function(a){a.JSC$19487_watchDogTimerId_&&(_.IE.clearTimeout(a.JSC$19487_watchDogTimerId_),a.JSC$19487_watchDogTimerId_=null)};
pg.prototype.JSC$19491_onWatchDogTimeout_=function(){this.JSC$19487_watchDogTimerId_=null;var a=Date.now();a-this.JSC$19487_watchDogTimeoutTime_>=0?(oQZ(this.JSC$19487_channelDebug_,this.JSC$19487_requestUri_),this.JSC$19487_type_!=2&&(UQ(3),Dg(17)),wK(this),this.JSC$19487_lastError_=2,mF(this)):(this.JSC$19487_channelDebug_.warning("WatchDog timer called too early"),JXz(this,this.JSC$19487_watchDogTimeoutTime_-a))};
var mF=function(a){a.JSC$19487_channel_.state_==0||a.JSC$19487_cancelled_||a4V(a.JSC$19487_channel_,a)},wK=function(a){Mvz(a);
_.Y8(a.JSC$19487_readyStateChangeThrottle_);a.JSC$19487_readyStateChangeThrottle_=null;a.JSC$19487_eventHandler_.removeAll();if(a.JSC$19487_xmlHttp_){var z=a.JSC$19487_xmlHttp_;a.JSC$19487_xmlHttp_=null;z.abort();z.dispose()}};
pg.prototype.getLastError=function(){return this.JSC$19487_lastError_};
var q9E=function(a,z){try{var I=a.JSC$19487_channel_;if(I.state_!=0&&(I.JSC$19506_backChannelRequest_==a||rXZ(I.forwardChannelRequestPool_,a)))if(!a.initialResponseDecoded_&&rXZ(I.forwardChannelRequestPool_,a)&&I.state_==3){try{var J=I.wireCodec_.JSC$19501_parser_.parse(z)}catch(u){J=null}if(Array.isArray(J)&&J.length==3){z=J;if(z[0]==0)a:if(I.JSC$19506_channelDebug_.debug("Server claims our backchannel is missing."),I.JSC$19506_backChannelTimerId_)I.JSC$19506_channelDebug_.debug("But we are currently starting the request.");
else{if(I.JSC$19506_backChannelRequest_)if(I.JSC$19506_backChannelRequest_.JSC$19487_requestStartTime_+3E3<a.JSC$19487_requestStartTime_)PAi(I),ZeG(I);else break a;else I.JSC$19506_channelDebug_.warning("We do not have a BackChannel established");CAY(I);Dg(18)}else{I.JSC$19506_lastPostResponseArrayId_=z[1];var r=I.JSC$19506_lastPostResponseArrayId_-I.JSC$19506_lastArrayId_;if(0<r){var P=z[2];I.JSC$19506_channelDebug_.debug(P+" bytes (in "+r+" arrays) are outstanding on the BackChannel");P<37500&&
I.enableStreaming_&&I.JSC$19506_backChannelRetryCount_==0&&!I.JSC$19506_deadBackChannelTimerId_&&(I.JSC$19506_deadBackChannelTimerId_=Ri((0,_.HW)(I.JSC$19508_onBackChannelDead_,I),6E3))}}if(Nne(I.forwardChannelRequestPool_)<=1&&I.forwardChannelFlushedCallback_){try{I.forwardChannelFlushedCallback_()}catch(u){}I.forwardChannelFlushedCallback_=void 0}}else I.JSC$19506_channelDebug_.debug("Bad POST response data returned"),yz(I,11)}else if((a.initialResponseDecoded_||I.JSC$19506_backChannelRequest_==
a)&&PAi(I),!_.NO(z)){var N=I.wireCodec_.JSC$19501_parser_.parse(z);I.onInput_(N,a)}UQ(4)}catch(u){}};var t$Y=function(a,z){this.JSC$19494_mapId=a;this.map=z;this.context=null};var uqZ=function(a){this.maxPoolSizeConfigured_=a||10;_.IE.PerformanceNavigationTiming?(a=_.IE.performance.getEntriesByType("navigation"),a=a.length>0&&(a[0].nextHopProtocol=="hq"||a[0].nextHopProtocol=="h2")):a=!!(_.IE.chrome&&_.IE.chrome.loadTimes&&_.IE.chrome.loadTimes()&&_.IE.chrome.loadTimes().wasFetchedViaSpdy);this.JSC$19497_maxSize_=a?this.maxPoolSizeConfigured_:1;this.requestPool_=null;this.JSC$19497_maxSize_>1&&(this.requestPool_=new Set);this.JSC$19497_request_=null;this.JSC$19497_pendingMessages_=
[]},EVY=function(a){return a.JSC$19497_request_?!0:a.requestPool_?a.requestPool_.size>=a.JSC$19497_maxSize_:!1},Nne=function(a){return a.JSC$19497_request_?1:a.requestPool_?a.requestPool_.size:0},rXZ=function(a,z){return a.JSC$19497_request_?a.JSC$19497_request_==z:a.requestPool_?a.requestPool_.has(z):!1},BnZ=function(a,z){a.requestPool_?a.requestPool_.add(z):a.JSC$19497_request_=z},gVM=function(a,z){a.JSC$19497_request_&&a.JSC$19497_request_==z?a.JSC$19497_request_=null:a.requestPool_&&a.requestPool_.has(z)&&
a.requestPool_.delete(z)};
uqZ.prototype.cancel=function(){this.JSC$19497_pendingMessages_=Oe0(this);if(this.JSC$19497_request_)this.JSC$19497_request_.cancel(),this.JSC$19497_request_=null;else if(this.requestPool_&&this.requestPool_.size!==0){for(var a=_.C(this.requestPool_.values()),z=a.next();!z.done;z=a.next())z.value.cancel();this.requestPool_.clear()}};
var Oe0=function(a){if(a.JSC$19497_request_!=null)return a.JSC$19497_pendingMessages_.concat(a.JSC$19497_request_.JSC$19487_pendingMessages_);if(a.requestPool_!=null&&a.requestPool_.size!==0){var z=a.JSC$19497_pendingMessages_;a=_.C(a.requestPool_.values());for(var I=a.next();!I.done;I=a.next())z=z.concat(I.value.JSC$19487_pendingMessages_);return z}return _.RE(a.JSC$19497_pendingMessages_)},f4Z=function(a,z){a.JSC$19497_pendingMessages_=a.JSC$19497_pendingMessages_.concat(z)};var AX0=function(a,z){var I=new Lg;I.debug("TestLoadImage: loading "+a);if(_.IE.Image){var J=new Image;J.onload=_.nt(kL,I,"TestLoadImage: loaded",!0,z,J);J.onerror=_.nt(kL,I,"TestLoadImage: error",!1,z,J);J.onabort=_.nt(kL,I,"TestLoadImage: abort",!1,z,J);J.ontimeout=_.nt(kL,I,"TestLoadImage: timeout",!1,z,J);_.IE.setTimeout(function(){if(J.ontimeout)J.ontimeout()},1E4);
J.src=a}else z(!1)},soY=function(a,z){var I=new Lg,J=new AbortController,r=setTimeout(function(){J.abort();
kL(I,"TestPingServer: timeout",!1,z)},1E4);
fetch(a,{signal:J.signal}).then(function(P){clearTimeout(r);P.ok?kL(I,"TestPingServer: ok",!0,z):kL(I,"TestPingServer: server error",!1,z)}).catch(function(){clearTimeout(r);
kL(I,"TestPingServer: error",!1,z)})},kL=function(a,z,I,J,r){try{a.debug(z),r&&(r.onload=null,r.onerror=null,r.onabort=null,r.ontimeout=null),J(I)}catch(P){}};var nVE=function(){this.JSC$19501_parser_=new oi};var MX=function(a,z,I){return I&&I.internalChannelParams?I.internalChannelParams[a]||z:z},cN=function(a){this.serverVersion_=0;
this.JSC$19506_outgoingMaps_=[];this.JSC$19506_channelDebug_=new Lg;this.JSC$19506_hostPrefix_=this.JSC$19506_backChannelUri_=this.JSC$19506_forwardChannelUri_=this.JSC$19506_path_=this.JSC$19506_backChannelRequest_=this.httpSessionId_=this.httpSessionIdParam_=this.JSC$19506_extraParams_=this.httpHeadersOverwriteParam_=this.initHeaders_=this.JSC$19506_extraHeaders_=null;this.JSC$19506_nextMapId_=this.JSC$19506_nextRid_=0;this.JSC$19506_failFast_=MX("failFast",!1,a);this.enableStreaming_=this.JSC$19506_deadBackChannelTimerId_=
this.JSC$19506_backChannelTimerId_=this.JSC$19506_forwardChannelTimerId_=this.handler_=null;this.allowStreamingMode_=!0;this.errorResponseStatusCode_=this.JSC$19506_lastPostResponseArrayId_=this.JSC$19506_lastArrayId_=-1;this.JSC$19506_backChannelAttemptId_=this.JSC$19506_backChannelRetryCount_=this.JSC$19506_forwardChannelRetryCount_=0;this.JSC$19506_baseRetryDelayMs_=MX("baseRetryDelayMs",5E3,a);this.JSC$19506_retryDelaySeedMs_=MX("retryDelaySeedMs",1E4,a);this.JSC$19506_forwardChannelMaxRetries_=
MX("forwardChannelMaxRetries",2,a);this.JSC$19506_forwardChannelRequestTimeoutMs_=MX("forwardChannelRequestTimeoutMs",2E4,a);this.JSC$19506_xmlHttpFactory_=a&&a.xmlHttpFactory||void 0;this.networkTestUrl_=a&&a.networkTestUrl||void 0;this.usesFetchStreams_=a&&a.useFetchStreams||!1;this.backChannelRequestTimeoutMs_=void 0;this.JSC$19506_supportsCrossDomainXhrs_=a&&a.supportsCrossDomainXhr||!1;this.sid_="";this.forwardChannelRequestPool_=new uqZ(a&&a.concurrentRequestLimit);this.wireCodec_=new nVE;this.fastHandshake_=
a&&a.fastHandshake||!1;this.encodeInitMessageHeaders_=a&&a.encodeInitMessageHeaders||!1;this.fastHandshake_&&this.encodeInitMessageHeaders_&&(this.JSC$19506_channelDebug_.warning("Ignore encodeInitMessageHeaders because fastHandshake is set."),this.encodeInitMessageHeaders_=!1);this.blockingHandshake_=a&&a.blockingHandshake||!1;a&&a.disableRedact&&this.JSC$19506_channelDebug_.disableRedact();a&&a.forceLongPolling&&(this.allowStreamingMode_=!1);this.detectBufferingProxy_=!this.fastHandshake_&&this.allowStreamingMode_&&
a&&a.detectBufferingProxy||!1;this.longPollingTimeout_=void 0;a&&a.longPollingTimeout&&a.longPollingTimeout>0&&(this.longPollingTimeout_=a.longPollingTimeout);this.forwardChannelFlushedCallback_=void 0;this.handshakeRttMs_=0;this.bpDetectionDone_=!1;this.nonAckedMapsAtChannelClose_=this.bpDetectionTimerId_=null};
cN.prototype.JSC$19508_channelVersion_=8;cN.prototype.state_=1;
cN.prototype.connect=function(a,z,I,J){this.JSC$19506_channelDebug_.debug("connect()");Dg(0);this.JSC$19506_path_=a;this.JSC$19506_extraParams_=z||{};I&&J!==void 0&&(this.JSC$19506_extraParams_.OSID=I,this.JSC$19506_extraParams_.OAID=J);this.enableStreaming_=this.allowStreamingMode_;this.JSC$19506_channelDebug_.debug("connectChannel_()");a=KUZ(this,null,this.JSC$19506_path_);this.JSC$19506_channelDebug_.debug("GetForwardChannelUri: "+a);this.JSC$19506_forwardChannelUri_=a;FUV(this)};
cN.prototype.disconnect=function(){this.JSC$19506_channelDebug_.debug("disconnect()");Hef(this);if(this.state_==3){var a=this.JSC$19506_nextRid_++,z=this.JSC$19506_forwardChannelUri_.clone();_.lE(z,"SID",this.sid_);_.lE(z,"RID",a);_.lE(z,"TYPE","terminate");YL(this,z);a=new pg(this,this.JSC$19506_channelDebug_,this.sid_,a);a.JSC$19487_type_=2;a.JSC$19487_baseUri_=_.Nk(z.clone());z=!1;if(_.IE.navigator&&_.IE.navigator.sendBeacon)try{z=_.IE.navigator.sendBeacon(a.JSC$19487_baseUri_.toString(),"")}catch(I){}!z&&
_.IE.Image&&((new Image).src=a.JSC$19487_baseUri_,z=!0);z||(a.JSC$19487_xmlHttp_=mJY(a.JSC$19487_channel_,null),a.JSC$19487_xmlHttp_.send(a.JSC$19487_baseUri_));a.JSC$19487_requestStartTime_=Date.now();wEi(a)}beE(this)};
var ZeG=function(a){a.JSC$19506_backChannelRequest_&&(I4z(a),a.JSC$19506_backChannelRequest_.cancel(),a.JSC$19506_backChannelRequest_=null)},Hef=function(a){ZeG(a);
a.JSC$19506_backChannelTimerId_&&(_.IE.clearTimeout(a.JSC$19506_backChannelTimerId_),a.JSC$19506_backChannelTimerId_=null);PAi(a);a.forwardChannelRequestPool_.cancel();a.JSC$19506_forwardChannelTimerId_&&(typeof a.JSC$19506_forwardChannelTimerId_==="number"&&_.IE.clearTimeout(a.JSC$19506_forwardChannelTimerId_),a.JSC$19506_forwardChannelTimerId_=null)};
cN.prototype.getState=function(){return this.state_};
var FUV=function(a){EVY(a.forwardChannelRequestPool_)||a.JSC$19506_forwardChannelTimerId_||(a.JSC$19506_forwardChannelTimerId_=!0,_.hH(a.JSC$19508_onStartForwardChannelTimer_,a),a.JSC$19506_forwardChannelRetryCount_=0)},V$V=function(a,z){if(Nne(a.forwardChannelRequestPool_)>=a.forwardChannelRequestPool_.JSC$19497_maxSize_-(a.JSC$19506_forwardChannelTimerId_?1:0))return!1;
if(a.JSC$19506_forwardChannelTimerId_)return a.JSC$19506_channelDebug_.debug("Use the retry request that is already scheduled."),a.JSC$19506_outgoingMaps_=z.JSC$19487_pendingMessages_.concat(a.JSC$19506_outgoingMaps_),!0;if(a.state_==1||a.state_==2||a.JSC$19506_forwardChannelRetryCount_>=(a.JSC$19506_failFast_?0:a.JSC$19506_forwardChannelMaxRetries_))return!1;a.JSC$19506_channelDebug_.debug("Going to retry POST");a.JSC$19506_forwardChannelTimerId_=Ri((0,_.HW)(a.JSC$19508_onStartForwardChannelTimer_,
a,z),hzV(a,a.JSC$19506_forwardChannelRetryCount_));a.JSC$19506_forwardChannelRetryCount_++;return!0};
cN.prototype.JSC$19508_onStartForwardChannelTimer_=function(a){if(this.JSC$19506_forwardChannelTimerId_)if(this.JSC$19506_forwardChannelTimerId_=null,this.JSC$19506_channelDebug_.debug("startForwardChannel_"),this.state_==1){if(!a){this.JSC$19506_channelDebug_.debug("open_()");this.JSC$19506_nextRid_=Math.floor(Math.random()*1E5);a=this.JSC$19506_nextRid_++;var z=new pg(this,this.JSC$19506_channelDebug_,"",a),I=this.JSC$19506_extraHeaders_;this.initHeaders_&&(I?(I=_.x8.clone(I),_.x8.extend(I,this.initHeaders_)):
I=this.initHeaders_);this.httpHeadersOverwriteParam_!==null||this.encodeInitMessageHeaders_||(z.JSC$19487_extraHeaders_=I,I=null);var J;if(this.fastHandshake_)a:{for(var r=J=0;r<this.JSC$19506_outgoingMaps_.length;r++){b:{var P=this.JSC$19506_outgoingMaps_[r];if("__data__"in P.map&&(P=P.map.__data__,typeof P==="string")){P=P.length;break b}P=void 0}if(P===void 0)break;J+=P;if(J>4096){J=r;break a}if(J===4096||r===this.JSC$19506_outgoingMaps_.length-1){J=r+1;break a}}J=1E3}else J=1E3;J=Qoi(this,z,J);
r=this.JSC$19506_forwardChannelUri_.clone();_.lE(r,"RID",a);_.lE(r,"CVER",22);this.httpSessionIdParam_&&_.lE(r,"X-HTTP-Session-Id",this.httpSessionIdParam_);YL(this,r);I&&(this.encodeInitMessageHeaders_?J="headers="+_.L3(pbi(I))+"&"+J:this.httpHeadersOverwriteParam_&&wbz(r,this.httpHeadersOverwriteParam_,I));BnZ(this.forwardChannelRequestPool_,z);this.blockingHandshake_&&_.lE(r,"TYPE","init");this.fastHandshake_?(_.lE(r,"$req",J),_.lE(r,"SID","null"),z.decodeInitialResponse_=!0,pEZ(z,r,null)):pEZ(z,
r,J);this.state_=2}}else this.state_==3&&(a?SH0(this,a):this.JSC$19506_outgoingMaps_.length==0?this.JSC$19506_channelDebug_.debug("startForwardChannel_ returned: nothing to send"):EVY(this.forwardChannelRequestPool_)||(SH0(this),this.JSC$19506_channelDebug_.debug("startForwardChannel_ finished, sent request")))};
var SH0=function(a,z){var I;z?I=z.JSC$19487_rid_:I=a.JSC$19506_nextRid_++;var J=a.JSC$19506_forwardChannelUri_.clone();_.lE(J,"SID",a.sid_);_.lE(J,"RID",I);_.lE(J,"AID",a.JSC$19506_lastArrayId_);YL(a,J);a.httpHeadersOverwriteParam_&&a.JSC$19506_extraHeaders_&&wbz(J,a.httpHeadersOverwriteParam_,a.JSC$19506_extraHeaders_);I=new pg(a,a.JSC$19506_channelDebug_,a.sid_,I,a.JSC$19506_forwardChannelRetryCount_+1);a.httpHeadersOverwriteParam_===null&&(I.JSC$19487_extraHeaders_=a.JSC$19506_extraHeaders_);z&&
(a.JSC$19506_outgoingMaps_=z.JSC$19487_pendingMessages_.concat(a.JSC$19506_outgoingMaps_));z=Qoi(a,I,1E3);I.setTimeout(Math.round(a.JSC$19506_forwardChannelRequestTimeoutMs_*.5)+Math.round(a.JSC$19506_forwardChannelRequestTimeoutMs_*.5*Math.random()));BnZ(a.forwardChannelRequestPool_,I);pEZ(I,J,z)},YL=function(a,z){a.JSC$19506_extraParams_&&_.x8.forEach(a.JSC$19506_extraParams_,function(I,J){_.lE(z,J,I)});
a.handler_&&_.x8.forEach({},function(I,J){_.lE(z,J,I)})},Qoi=function(a,z,I){I=Math.min(a.JSC$19506_outgoingMaps_.length,I);
var J=a.handler_?(0,_.HW)(a.handler_.JSC$19512_badMapError,a.handler_,a):null;a:{for(var r=a.JSC$19506_outgoingMaps_,P=-1;;){var N=["count="+I];P==-1?I>0?(P=r[0].JSC$19494_mapId,N.push("ofs="+P)):P=0:N.push("ofs="+P);for(var u=!0,E=0;E<I;E++){var O=r[E].JSC$19494_mapId,f=r[E].map;O-=P;if(O<0)P=Math.max(0,r[E].JSC$19494_mapId-100),u=!1;else try{O="req"+O+"_"||"";try{var A=f instanceof Map?f:Object.entries(f);for(var n=_.C(A),F=n.next();!F.done;F=n.next()){var h=_.C(F.value),v=h.next().value,d=h.next().value,
W=d;_.md(d)&&(W=(0,_.vV)(d));N.push(O+v+"="+encodeURIComponent(W))}}catch(l){throw N.push(O+"type="+encodeURIComponent("_badmap")),l;}}catch(l){J&&J(f)}}if(u){A=N.join("&");break a}}A=void 0}a=a.JSC$19506_outgoingMaps_.splice(0,I);z.JSC$19487_pendingMessages_=a;return A},ie0=function(a){a.JSC$19506_backChannelRequest_||a.JSC$19506_backChannelTimerId_||(a.JSC$19506_backChannelAttemptId_=1,_.hH(a.JSC$19508_onStartBackChannelTimer_,a),a.JSC$19506_backChannelRetryCount_=0)},CAY=function(a){if(a.JSC$19506_backChannelRequest_||
a.JSC$19506_backChannelTimerId_||a.JSC$19506_backChannelRetryCount_>=3)return!1;
a.JSC$19506_channelDebug_.debug("Going to retry GET");a.JSC$19506_backChannelAttemptId_++;a.JSC$19506_backChannelTimerId_=Ri((0,_.HW)(a.JSC$19508_onStartBackChannelTimer_,a),hzV(a,a.JSC$19506_backChannelRetryCount_));a.JSC$19506_backChannelRetryCount_++;return!0};
cN.prototype.JSC$19508_onStartBackChannelTimer_=function(){this.JSC$19506_backChannelTimerId_=null;xg4(this);if(this.detectBufferingProxy_&&!this.bpDetectionDone_)if(this.JSC$19506_backChannelRequest_==null||this.handshakeRttMs_<=0)this.JSC$19506_channelDebug_.warning("Skip bpDetectionTimerId_ "+this.JSC$19506_backChannelRequest_+" "+this.handshakeRttMs_);else{var a=4*this.handshakeRttMs_;this.JSC$19506_channelDebug_.info("BP detection timer enabled: "+a);this.bpDetectionTimerId_=Ri((0,_.HW)(this.onBpDetectionTimer_,
this),a)}};
cN.prototype.onBpDetectionTimer_=function(){if(this.bpDetectionTimerId_){this.bpDetectionTimerId_=null;this.JSC$19506_channelDebug_.info("BP detection timeout reached.");if(this.JSC$19506_backChannelRequest_.JSC$19487_xmlHttp_!=null){var a=this.JSC$19506_backChannelRequest_.JSC$19487_xmlHttp_.getResponseText();a&&this.JSC$19506_channelDebug_.warning("Timer should have been cancelled : "+a)}this.JSC$19506_channelDebug_.info("Buffering proxy detected and switch to long-polling!");this.enableStreaming_=
!1;this.bpDetectionDone_=!0;Dg(10);ZeG(this);xg4(this)}else this.JSC$19506_channelDebug_.warning("Invalid operation.")};
var I4z=function(a){a.bpDetectionTimerId_!=null&&(a.JSC$19506_channelDebug_.debug("Cancel the BP detection timer."),_.IE.clearTimeout(a.bpDetectionTimerId_),a.bpDetectionTimerId_=null)},xg4=function(a){a.JSC$19506_channelDebug_.debug("Creating new HttpRequest");
a.JSC$19506_backChannelRequest_=new pg(a,a.JSC$19506_channelDebug_,a.sid_,"rpc",a.JSC$19506_backChannelAttemptId_);a.httpHeadersOverwriteParam_===null&&(a.JSC$19506_backChannelRequest_.JSC$19487_extraHeaders_=a.JSC$19506_extraHeaders_);a.JSC$19506_backChannelRequest_.JSC$19487_readyStateChangeThrottleMs_=0;var z=a.JSC$19506_backChannelUri_.clone();_.lE(z,"RID","rpc");_.lE(z,"SID",a.sid_);_.lE(z,"AID",a.JSC$19506_lastArrayId_);_.lE(z,"CI",a.enableStreaming_?"0":"1");!a.enableStreaming_&&a.longPollingTimeout_&&
_.lE(z,"TO",a.longPollingTimeout_);_.lE(z,"TYPE","xmlhttp");YL(a,z);a.httpHeadersOverwriteParam_&&a.JSC$19506_extraHeaders_&&wbz(z,a.httpHeadersOverwriteParam_,a.JSC$19506_extraHeaders_);a.backChannelRequestTimeoutMs_&&a.JSC$19506_backChannelRequest_.setTimeout(a.backChannelRequestTimeoutMs_);var I=a.JSC$19506_backChannelRequest_,J=a.JSC$19506_hostPrefix_;I.JSC$19487_type_=1;I.JSC$19487_baseUri_=_.Nk(z.clone());I.JSC$19487_postData_=null;I.decodeChunks_=!0;lN0(I,J);a.JSC$19506_channelDebug_.debug("New Request created")};
cN.prototype.JSC$19508_onBackChannelDead_=function(){this.JSC$19506_deadBackChannelTimerId_!=null&&(this.JSC$19506_deadBackChannelTimerId_=null,ZeG(this),CAY(this),Dg(19))};
var PAi=function(a){a.JSC$19506_deadBackChannelTimerId_!=null&&(_.IE.clearTimeout(a.JSC$19506_deadBackChannelTimerId_),a.JSC$19506_deadBackChannelTimerId_=null)},a4V=function(a,z){a.JSC$19506_channelDebug_.debug("Request complete");
var I=null;if(a.JSC$19506_backChannelRequest_==z){PAi(a);I4z(a);a.JSC$19506_backChannelRequest_=null;var J=2}else if(rXZ(a.forwardChannelRequestPool_,z))I=z.JSC$19487_pendingMessages_,gVM(a.forwardChannelRequestPool_,z),J=1;else return;if(a.state_!=0)if(z.JSC$19487_successful_)J==1?(XEY(z.JSC$19487_postData_?z.JSC$19487_postData_.length:0,Date.now()-z.JSC$19487_requestStartTime_,a.JSC$19506_forwardChannelRetryCount_),FUV(a)):ie0(a);else{var r=z.JSC$19487_lastStatusCode_,P=z.getLastError();if(P==3||
P==0&&r>0)a.JSC$19506_channelDebug_.debug("Not retrying due to error type"),r>200&&(a.errorResponseStatusCode_=z.JSC$19487_lastStatusCode_);else{a.JSC$19506_channelDebug_.debug(function(){return"Maybe retrying, last error: "+DJG(P,a.errorResponseStatusCode_)});
if(J==1&&V$V(a,z)||J==2&&CAY(a))return;a.JSC$19506_channelDebug_.debug("Exceeded max number of retries")}I&&I.length>0&&f4Z(a.forwardChannelRequestPool_,I);a.JSC$19506_channelDebug_.debug("Error: HTTP request failed");switch(P){case 1:yz(a,5);break;case 4:yz(a,10);break;case 3:yz(a,6);break;default:yz(a,2)}}},hzV=function(a,z){var I=a.JSC$19506_baseRetryDelayMs_+Math.floor(Math.random()*a.JSC$19506_retryDelaySeedMs_);
a.isActive()||(a.JSC$19506_channelDebug_.debug("Inactive channel"),I*=2);return I*z};
cN.prototype.onInput_=function(a,z){for(var I=0;I<a.length;I++){var J=a[I];this.JSC$19506_lastArrayId_=J[0];J=J[1];if(this.state_==2)if(J[0]=="c"){this.sid_=J[1];this.JSC$19506_hostPrefix_=J[2];var r=J[3];r!=null&&(this.JSC$19508_channelVersion_=r,this.JSC$19506_channelDebug_.info("VER="+this.JSC$19508_channelVersion_));r=J[4];r!=null&&(this.serverVersion_=r,this.JSC$19506_channelDebug_.info("SVER="+this.serverVersion_));J=J[5];J!=null&&typeof J==="number"&&J>0&&(this.backChannelRequestTimeoutMs_=
J*=1.5,this.JSC$19506_channelDebug_.info("backChannelRequestTimeoutMs_="+J));if(J=z.JSC$19487_xmlHttp_){var P=$H(J,"X-Client-Wire-Protocol");P&&(r=this.forwardChannelRequestPool_,!r.requestPool_&&(_.t1(P,"spdy")||_.t1(P,"quic")||_.t1(P,"h2"))&&(r.JSC$19497_maxSize_=r.maxPoolSizeConfigured_,r.requestPool_=new Set,r.JSC$19497_request_&&(BnZ(r,r.JSC$19497_request_),r.JSC$19497_request_=null)));this.httpSessionIdParam_&&((J=$H(J,"X-HTTP-Session-Id"))?(this.httpSessionId_=J,_.lE(this.JSC$19506_forwardChannelUri_,
this.httpSessionIdParam_,J)):this.JSC$19506_channelDebug_.warning("Missing X_HTTP_SESSION_ID in the handshake response"))}this.state_=3;this.handler_&&this.handler_.JSC$19512_channelOpened();this.detectBufferingProxy_&&(this.handshakeRttMs_=Date.now()-z.JSC$19487_requestStartTime_,this.JSC$19506_channelDebug_.info("Handshake RTT: "+this.handshakeRttMs_+"ms"));J=z;r=KUZ(this,this.JSC$19506_supportsCrossDomainXhrs_?this.JSC$19506_hostPrefix_:null,this.JSC$19506_path_);this.JSC$19506_channelDebug_.debug("GetBackChannelUri: "+
r);this.JSC$19506_backChannelUri_=r;J.initialResponseDecoded_?(this.JSC$19506_channelDebug_.debug("Upgrade the handshake request to a backchannel."),gVM(this.forwardChannelRequestPool_,J),r=J,(P=this.backChannelRequestTimeoutMs_)&&r.setTimeout(P),r.JSC$19487_watchDogTimerId_&&(Mvz(r),wEi(r)),this.JSC$19506_backChannelRequest_=J):ie0(this);this.JSC$19506_outgoingMaps_.length>0&&FUV(this)}else J[0]!="stop"&&J[0]!="close"||yz(this,7);else this.state_==3&&(J[0]=="stop"||J[0]=="close"?J[0]=="stop"?yz(this,
7):this.disconnect():J[0]!="noop"&&this.handler_&&this.handler_.JSC$19512_channelHandleArray(J),this.JSC$19506_backChannelRetryCount_=0)}};
var yz=function(a,z){a.JSC$19506_channelDebug_.info("Error code "+z);if(z==2){var I=(0,_.HW)(a.testNetworkCallback_,a),J=a.networkTestUrl_,r=!J;J=new _.cJ(J||"//www.google.com/images/cleardot.gif");_.IE.location&&_.IE.location.protocol=="http"||_.aR(J,"https");_.Nk(J);r?AX0(J.toString(),I):soY(J.toString(),I)}else Dg(2);a.onError_(z)};
cN.prototype.testNetworkCallback_=function(a){a?(this.JSC$19506_channelDebug_.info("Successfully pinged google.com"),Dg(2)):(this.JSC$19506_channelDebug_.info("Failed to ping google.com"),Dg(1))};
cN.prototype.onError_=function(a){this.JSC$19506_channelDebug_.debug("HttpChannel: error - "+a);this.state_=0;this.handler_&&this.handler_.JSC$19512_channelError(a);beE(this);Hef(this)};
var beE=function(a){a.state_=0;a.nonAckedMapsAtChannelClose_=[];if(a.handler_){var z=Oe0(a.forwardChannelRequestPool_);if(z.length!=0||a.JSC$19506_outgoingMaps_.length!=0)a.JSC$19506_channelDebug_.debug(function(){return"Number of undelivered maps, pending: "+z.length+", outgoing: "+a.JSC$19506_outgoingMaps_.length}),_.pG(a.nonAckedMapsAtChannelClose_,z),_.pG(a.nonAckedMapsAtChannelClose_,a.JSC$19506_outgoingMaps_),a.forwardChannelRequestPool_.JSC$19497_pendingMessages_.length=0,_.RE(a.JSC$19506_outgoingMaps_),
a.JSC$19506_outgoingMaps_.length=0;
a.handler_.JSC$19512_channelClosed()}},vVZ=function(a){if(a.state_==0)return a.nonAckedMapsAtChannelClose_;
var z=[];_.pG(z,Oe0(a.forwardChannelRequestPool_));_.pG(z,a.JSC$19506_outgoingMaps_);return z},KUZ=function(a,z,I){var J=_.Rf(I);
J.JSC$9989_domain_!=""?(z&&_.ja(J,z+"."+J.JSC$9989_domain_),_.zo(J,J.JSC$9989_port_)):(J=_.IE.location,J=vKY(J.protocol,z?z+"."+J.hostname:J.hostname,+J.port,I));z=a.httpSessionIdParam_;I=a.httpSessionId_;z&&I&&_.lE(J,z,I);_.lE(J,"VER",a.JSC$19508_channelVersion_);YL(a,J);return J},mJY=function(a,z,I){if(z&&!a.JSC$19506_supportsCrossDomainXhrs_)throw Error("Bk");
z=a.usesFetchStreams_&&!a.JSC$19506_xmlHttpFactory_?new _.GV(new Y9({streamBinaryChunks:I})):new _.GV(a.JSC$19506_xmlHttpFactory_);z.JSC$9754_withCredentials_=a.JSC$19506_supportsCrossDomainXhrs_;return z};
cN.prototype.isActive=function(){return!!this.handler_&&this.handler_.isActive(this)};
var GSG=function(){};
_.Z=GSG.prototype;_.Z.JSC$19512_channelOpened=function(){};
_.Z.JSC$19512_channelHandleArray=function(){};
_.Z.JSC$19512_channelError=function(){};
_.Z.JSC$19512_channelClosed=function(){};
_.Z.isActive=function(){return!0};
_.Z.JSC$19512_badMapError=function(){};var $gZ=function(){},e3=function(a,z){_.HV.call(this);
this.JSC$19515_channel_=new cN(z);this.JSC$19515_url_=a;this.messageUrlParams_=z&&z.messageUrlParams||null;a=z&&z.messageHeaders||null;z&&z.clientProtocolHeaderRequired&&(a?_.x8.set(a,"X-Client-Protocol","webchannel"):a=_.x8.create("X-Client-Protocol","webchannel"));this.JSC$19515_channel_.JSC$19506_extraHeaders_=a;a=z&&z.initMessageHeaders||null;z&&z.messageContentType&&(a?_.x8.set(a,"X-WebChannel-Content-Type",z.messageContentType):a=_.x8.create("X-WebChannel-Content-Type",z.messageContentType));
z&&z.clientProfile&&(a?_.x8.set(a,"X-WebChannel-Client-Profile",z.clientProfile):a=_.x8.create("X-WebChannel-Client-Profile",z.clientProfile));this.JSC$19515_channel_.initHeaders_=a;(a=z&&z.httpHeadersOverwriteParam)&&!_.NO(a)&&(this.JSC$19515_channel_.httpHeadersOverwriteParam_=a);this.supportsCrossDomainXhr_=z&&z.supportsCrossDomainXhr||!1;this.sendRawJson_=z&&z.sendRawJson||!1;(z=z&&z.httpSessionIdParam)&&!_.NO(z)&&(this.JSC$19515_channel_.httpSessionIdParam_=z,_.x8.containsKey(this.messageUrlParams_,
z)&&_.x8.remove(this.messageUrlParams_,z));this.channelHandler_=new qX(this)};
_.rL(e3,_.HV);e3.prototype.open=function(){this.JSC$19515_channel_.handler_=this.channelHandler_;this.supportsCrossDomainXhr_&&(this.JSC$19515_channel_.JSC$19506_supportsCrossDomainXhrs_=!0);this.JSC$19515_channel_.connect(this.JSC$19515_url_,this.messageUrlParams_||void 0)};
e3.prototype.close=function(){this.JSC$19515_channel_.disconnect()};
e3.prototype.send=function(a){var z=this.JSC$19515_channel_;if(typeof a==="string"){var I={};I.__data__=a;a=I}else this.sendRawJson_&&(I={},I.__data__=(0,_.vV)(a),a=I);z.JSC$19506_outgoingMaps_.push(new t$Y(z.JSC$19506_nextMapId_++,a));z.state_==3&&FUV(z)};
e3.prototype.disposeInternal=function(){this.JSC$19515_channel_.handler_=null;delete this.channelHandler_;this.JSC$19515_channel_.disconnect();delete this.JSC$19515_channel_;e3.superClass_.disposeInternal.call(this)};
var XGf=function(a){Q4E.call(this);a.__headers__&&(this.headers=a.__headers__,this.statusCode=a.__status__,delete a.__headers__,delete a.__status__);var z=a.__sm__;z?this.data=(this.metadataKey=_.x8.getAnyKey(z))?_.x8.get(z,this.metadataKey):z:this.data=a};
_.rL(XGf,Q4E);var Tn0=function(a){S9Y.call(this);this.status=1;this.errorCode=a};
_.rL(Tn0,S9Y);var qX=function(a){this.JSC$19522_channel_=a};
_.rL(qX,GSG);qX.prototype.JSC$19512_channelOpened=function(){this.JSC$19522_channel_.dispatchEvent("w")};
qX.prototype.JSC$19512_channelHandleArray=function(a){this.JSC$19522_channel_.dispatchEvent(new XGf(a))};
qX.prototype.JSC$19512_channelError=function(a){this.JSC$19522_channel_.dispatchEvent(new Tn0(a))};
qX.prototype.JSC$19512_channelClosed=function(){this.JSC$19522_channel_.dispatchEvent("x")};
var dgG=function(a,z){this.transportChannel_=a;this.JSC$19525_channel_=z},WU4=function(a){return vVZ(a.JSC$19525_channel_).map(function(z){var I=a.transportChannel_;
z=z.map;"__data__"in z?(z=z.__data__,I=I.sendRawJson_?(0,_.AzX)(z):z):I=z;return I})};
dgG.prototype.commit=function(a){this.JSC$19525_channel_.forwardChannelFlushedCallback_=a};var a$=function(a){oVZ.dispatchEvent(new UgZ(oVZ,a))},oVZ=new _.HV,UgZ=function(a,z){_.AH.call(this,"statevent",a);
this.stat=z};
_.b(UgZ,_.AH);var jh=function(a,z,I,J,r){this.JSC$19530_channel_=a;this.JSC$19530_channelDebug_=z;this.sid_=I;this.JSC$19530_rid_=J;this.JSC$19530_retryId_=r||1;this.timeout_=45E3;this.JSC$19530_eventHandler_=new _.PJ(this);this.pollingTimer_=new _.rF;this.pollingTimer_.setInterval(250)};
_.Z=jh.prototype;_.Z.JSC$19532_extraHeaders_=null;_.Z.JSC$19532_successful_=!1;_.Z.JSC$19532_watchDogTimerId_=null;_.Z.JSC$19532_watchDogTimeoutTime_=null;_.Z.JSC$19532_requestStartTime_=null;_.Z.JSC$19532_type_=null;_.Z.JSC$19532_baseUri_=null;_.Z.JSC$19532_requestUri_=null;_.Z.JSC$19532_postData_=null;_.Z.JSC$19532_xmlHttp_=null;_.Z.JSC$19532_xmlHttpChunkStart_=0;_.Z.trident_=null;_.Z.JSC$19532_verb_=null;_.Z.JSC$19532_lastError_=null;_.Z.JSC$19532_lastStatusCode_=-1;_.Z.sendClose_=!0;
_.Z.JSC$19532_cancelled_=!1;_.Z.JSC$19532_readyStateChangeThrottleMs_=0;_.Z.JSC$19532_readyStateChangeThrottle_=null;var DgZ=function(a,z){switch(a){case 0:return"Non-200 return code ("+z+")";case 1:return"XMLHTTP failure (no data)";case 2:return"HttpConnection timeout";default:return"Unknown error"}},RzG={},LUE={};
jh.prototype.setTimeout=function(a){this.timeout_=a};
var pGE=function(a,z,I){a.JSC$19532_type_=1;a.JSC$19532_baseUri_=_.Nk(z.clone());a.JSC$19532_postData_=I;a.decodeChunks_=!0;l4V(a,null)},wGE=function(a,z,I,J,r){a.JSC$19532_type_=1;
a.JSC$19532_baseUri_=_.Nk(z.clone());a.JSC$19532_postData_=null;a.decodeChunks_=I;r&&(a.sendClose_=!1);l4V(a,J)},l4V=function(a,z){a.JSC$19532_requestStartTime_=Date.now();
mgM(a);a.JSC$19532_requestUri_=a.JSC$19532_baseUri_.clone();VJ(a.JSC$19532_requestUri_,"t",a.JSC$19530_retryId_);a.JSC$19532_xmlHttpChunkStart_=0;a.JSC$19532_xmlHttp_=a.JSC$19530_channel_.JSC$19539_createXhrIo(a.JSC$19530_channel_.JSC$19539_shouldUseSecondaryDomains()?z:null);a.JSC$19532_readyStateChangeThrottleMs_>0&&(a.JSC$19532_readyStateChangeThrottle_=new _.kc((0,_.HW)(a.JSC$19532_xmlHttpHandler_,a,a.JSC$19532_xmlHttp_),a.JSC$19532_readyStateChangeThrottleMs_));a.JSC$19530_eventHandler_.listen(a.JSC$19532_xmlHttp_,
"readystatechange",a.JSC$19532_readyStateChangeHandler_);z=a.JSC$19532_extraHeaders_?_.x8.clone(a.JSC$19532_extraHeaders_):{};a.JSC$19532_postData_?(a.JSC$19532_verb_="POST",z["Content-Type"]="application/x-www-form-urlencoded",a.JSC$19532_xmlHttp_.send(a.JSC$19532_requestUri_,a.JSC$19532_verb_,a.JSC$19532_postData_,z)):(a.JSC$19532_verb_="GET",a.sendClose_&&!_.ue&&(z.Connection="close"),a.JSC$19532_xmlHttp_.send(a.JSC$19532_requestUri_,a.JSC$19532_verb_,null,z));a.JSC$19530_channel_.notifyServerReachabilityEvent(1);
z=a.JSC$19530_channelDebug_;var I=a.JSC$19532_postData_;if(I){var J="";I=I.split("&");for(var r=0;r<I.length;r++){var P=I[r].split("=");if(P.length>1){var N=P[0];P=P[1];var u=N.split("_");J=u.length>=2&&u[1]=="type"?J+(N+"="+P+"&"):J+(N+"=redacted&")}}}else J=null;z.info("XMLHTTP REQ ("+a.JSC$19530_rid_+") [attempt "+a.JSC$19530_retryId_+"]: "+a.JSC$19532_verb_+"\n"+a.JSC$19532_requestUri_+"\n"+J)};
jh.prototype.JSC$19532_readyStateChangeHandler_=function(a){a=a.target;var z=this.JSC$19532_readyStateChangeThrottle_;z&&_.$M(a)==3?(this.JSC$19530_channelDebug_.debug("Throttling readystatechange."),z.fire()):this.JSC$19532_xmlHttpHandler_(a)};
jh.prototype.JSC$19532_xmlHttpHandler_=function(a){try{if(a==this.JSC$19532_xmlHttp_)a:{var z=_.$M(this.JSC$19532_xmlHttp_),I=this.JSC$19532_xmlHttp_.JSC$9754_lastErrorCode_,J=this.JSC$19532_xmlHttp_.getStatus();if(_.ue&&!_.EB("420+")){if(z<4)break a}else if(z<3||z==3&&!this.JSC$19532_xmlHttp_.getResponseText())break a;this.JSC$19532_cancelled_||z!=4||I==7||(I==8||J<=0?this.JSC$19530_channel_.notifyServerReachabilityEvent(3):this.JSC$19530_channel_.notifyServerReachabilityEvent(2));yXi(this);var r=
this.JSC$19532_xmlHttp_.getStatus();this.JSC$19532_lastStatusCode_=r;var P=this.JSC$19532_xmlHttp_.getResponseText();P||this.JSC$19530_channelDebug_.debug("No response text for uri "+this.JSC$19532_requestUri_+" status "+r);this.JSC$19532_successful_=r==200;this.JSC$19530_channelDebug_.info("XMLHTTP RESP ("+this.JSC$19530_rid_+") [ attempt "+this.JSC$19530_retryId_+"]: "+this.JSC$19532_verb_+"\n"+this.JSC$19532_requestUri_+"\n"+z+" "+r);if(this.JSC$19532_successful_){z==4&&zw(this);if(this.decodeChunks_){for(a=
!0;!this.JSC$19532_cancelled_&&this.JSC$19532_xmlHttpChunkStart_<P.length;){var N=kSV(this,P);if(N==LUE){z==4&&(this.JSC$19532_lastError_=4,a$(15),a=!1);I$(this.JSC$19530_channelDebug_,this.JSC$19530_rid_,null,"[Incomplete Response]");break}else if(N==RzG){this.JSC$19532_lastError_=4;a$(16);I$(this.JSC$19530_channelDebug_,this.JSC$19530_rid_,P,"[Invalid Chunk]");a=!1;break}else I$(this.JSC$19530_channelDebug_,this.JSC$19530_rid_,N,null),M$4(this,N)}z==4&&P.length==0&&(this.JSC$19532_lastError_=1,
a$(17),a=!1);this.JSC$19532_successful_=this.JSC$19532_successful_&&a;a||(I$(this.JSC$19530_channelDebug_,this.JSC$19530_rid_,P,"[Invalid Chunked Response]"),zw(this),cXZ(this))}else I$(this.JSC$19530_channelDebug_,this.JSC$19530_rid_,P,null),M$4(this,P);this.JSC$19532_successful_&&!this.JSC$19532_cancelled_&&(z==4?this.JSC$19530_channel_.JSC$19539_onRequestComplete(this):(this.JSC$19532_successful_=!1,mgM(this)))}else r==400&&P.indexOf("Unknown SID")>0?(this.JSC$19532_lastError_=3,a$(13),this.JSC$19530_channelDebug_.warning("XMLHTTP Unknown SID ("+
this.JSC$19530_rid_+")")):(this.JSC$19532_lastError_=0,a$(14),this.JSC$19530_channelDebug_.warning("XMLHTTP Bad status "+r+" ("+this.JSC$19530_rid_+")")),zw(this),cXZ(this)}else this.JSC$19530_channelDebug_.warning("Called back with an unexpected xmlhttp")}catch(u){this.JSC$19530_channelDebug_.debug("Failed call to OnXmlHttpReadyStateChanged_")}finally{}};
var kSV=function(a,z){var I=a.JSC$19532_xmlHttpChunkStart_,J=z.indexOf("\n",I);if(J==-1)return LUE;I=Number(z.substring(I,J));if(isNaN(I))return RzG;J+=1;if(J+I>z.length)return LUE;z=z.slice(J,J+I);a.JSC$19532_xmlHttpChunkStart_=J+I;return z};
jh.prototype.cancel=function(){this.JSC$19532_cancelled_=!0;zw(this)};
var mgM=function(a){a.JSC$19532_watchDogTimeoutTime_=Date.now()+a.timeout_;YH0(a,a.timeout_)},YH0=function(a,z){if(a.JSC$19532_watchDogTimerId_!=null)throw Error("Ak");
a.JSC$19532_watchDogTimerId_=wy((0,_.HW)(a.JSC$19532_onWatchDogTimeout_,a),z)},yXi=function(a){a.JSC$19532_watchDogTimerId_&&(_.IE.clearTimeout(a.JSC$19532_watchDogTimerId_),a.JSC$19532_watchDogTimerId_=null)};
jh.prototype.JSC$19532_onWatchDogTimeout_=function(){this.JSC$19532_watchDogTimerId_=null;var a=Date.now();a-this.JSC$19532_watchDogTimeoutTime_>=0?(this.JSC$19530_channelDebug_.info("TIMEOUT: "+this.JSC$19532_requestUri_),this.JSC$19532_type_!=2&&this.JSC$19530_channel_.notifyServerReachabilityEvent(3),zw(this),this.JSC$19532_lastError_=2,a$(18),cXZ(this)):(this.JSC$19530_channelDebug_.warning("WatchDog timer called too early"),YH0(this,this.JSC$19532_watchDogTimeoutTime_-a))};
var cXZ=function(a){a.JSC$19530_channel_.JSC$19539_isClosed()||a.JSC$19532_cancelled_||a.JSC$19530_channel_.JSC$19539_onRequestComplete(a)},zw=function(a){yXi(a);
_.Y8(a.JSC$19532_readyStateChangeThrottle_);a.JSC$19532_readyStateChangeThrottle_=null;a.pollingTimer_.stop();a.JSC$19530_eventHandler_.removeAll();if(a.JSC$19532_xmlHttp_){var z=a.JSC$19532_xmlHttp_;a.JSC$19532_xmlHttp_=null;z.abort();z.dispose()}a.trident_&&(a.trident_=null)};
jh.prototype.getLastError=function(){return this.JSC$19532_lastError_};
var M$4=function(a,z){try{a.JSC$19530_channel_.JSC$19539_onRequestData(a,z),a.JSC$19530_channel_.notifyServerReachabilityEvent(4)}catch(I){}};var I$=function(a,z,I,J){var r=a.info;a:if(I&&I!="y2f%"){try{var P=JSON.parse(I);if(P)for(var N=0;N<P.length;N++)if(Array.isArray(P[N])){var u=P[N];if(!(u.length<2)){var E=u[1];if(Array.isArray(E)&&!(E.length<1)){var O=E[0];if(O!="noop"&&O!="stop")for(var f=1;f<E.length;f++)E[f]=""}}}var A=(0,_.vV)(P);break a}catch(n){a.debug("Exception parsing expected JS array - probably was not JS");A=I;break a}A=void 0}else A=I;r.call(a,"XMLHTTP TEXT ("+z+"): "+A+(J?" "+J:""))};
mw.prototype.debug=function(a){this.info(a)};
mw.prototype.info=function(){};
mw.prototype.warning=function(){};var qHE=function(a,z){this.JSC$19537_channel_=a;this.JSC$19537_channelDebug_=z;this.JSC$19537_parser_=new oi};
_.Z=qHE.prototype;_.Z.JSC$19539_extraHeaders_=null;_.Z.JSC$19539_request_=null;_.Z.receivedIntermediateResult_=!1;_.Z.JSC$19539_path_=null;_.Z.state_=null;_.Z.JSC$19539_lastStatusCode_=-1;_.Z.JSC$19539_hostPrefix_=null;_.Z.blockedPrefix_=null;
_.Z.connect=function(a){this.JSC$19539_path_=a;a=ezG(this.JSC$19537_channel_,this.JSC$19539_path_);a$(3);Date.now();var z=this.JSC$19537_channel_.firstTestResults_;z!=null?(this.JSC$19539_hostPrefix_=z[0],(this.blockedPrefix_=z[1])?(this.state_=1,afZ(this)):(this.state_=2,jJ4(this))):(VJ(a,"MODE","init"),this.JSC$19539_request_=new jh(this,this.JSC$19537_channelDebug_),this.JSC$19539_request_.JSC$19532_extraHeaders_=this.JSC$19539_extraHeaders_,wGE(this.JSC$19539_request_,a,!1,null,!0),this.state_=
0)};
var afZ=function(a){var z=zci(a.JSC$19537_channel_,a.blockedPrefix_,"/mail/images/cleardot.gif");_.Nk(z);Ehi(z.toString(),5E3,(0,_.HW)(a.checkBlockedCallback_,a),3,2E3);a.notifyServerReachabilityEvent(1)};
qHE.prototype.checkBlockedCallback_=function(a){if(a)this.state_=2,jJ4(this);else{a$(4);var z=this.JSC$19537_channel_;z.JSC$19540_channelDebug_.debug("Test Connection Blocked");z.JSC$19544_lastStatusCode_=z.connectionTest_.JSC$19539_lastStatusCode_;JB(z,9)}a&&this.notifyServerReachabilityEvent(2)};
var jJ4=function(a){a.JSC$19537_channelDebug_.debug("TestConnection: starting stage 2");var z=a.JSC$19537_channel_.secondTestResults_;z!=null?(a.JSC$19537_channelDebug_.debug("TestConnection: skipping stage 2, precomputed result is "+z?"Buffered":"Unbuffered"),a$(5),z?(a$(11),rU(a.JSC$19537_channel_,a,!1)):(a$(12),rU(a.JSC$19537_channel_,a,!0))):(a.JSC$19539_request_=new jh(a,a.JSC$19537_channelDebug_),a.JSC$19539_request_.JSC$19532_extraHeaders_=a.JSC$19539_extraHeaders_,z=Iff(a.JSC$19537_channel_,
a.JSC$19539_hostPrefix_,a.JSC$19539_path_),a$(5),VJ(z,"TYPE","xmlhttp"),wGE(a.JSC$19539_request_,z,!1,a.JSC$19539_hostPrefix_,!1))};
_.Z=qHE.prototype;_.Z.JSC$19539_createXhrIo=function(a){return this.JSC$19537_channel_.JSC$19539_createXhrIo(a)};
_.Z.abort=function(){this.JSC$19539_request_&&(this.JSC$19539_request_.cancel(),this.JSC$19539_request_=null);this.JSC$19539_lastStatusCode_=-1};
_.Z.JSC$19539_isClosed=function(){return!1};
_.Z.JSC$19539_onRequestData=function(a,z){this.JSC$19539_lastStatusCode_=a.JSC$19532_lastStatusCode_;if(this.state_==0)if(this.JSC$19537_channelDebug_.debug("TestConnection: Got data for stage 1"),z){try{var I=this.JSC$19537_parser_.parse(z)}catch(J){JN0(this.JSC$19537_channel_,this);return}this.JSC$19539_hostPrefix_=I[0];this.blockedPrefix_=I[1]}else this.JSC$19537_channelDebug_.debug("TestConnection: Null responseText"),JN0(this.JSC$19537_channel_,this);else this.state_==2&&(this.receivedIntermediateResult_?
(a$(7),Date.now()):z=="11111"?(a$(6),this.receivedIntermediateResult_=!0,Date.now(),this.JSC$19539_lastStatusCode_=200,this.JSC$19539_request_.cancel(),this.JSC$19537_channelDebug_.debug("Test connection succeeded; using streaming connection"),a$(12),rU(this.JSC$19537_channel_,this,!0)):(a$(8),Date.now(),this.receivedIntermediateResult_=!1))};
_.Z.JSC$19539_onRequestComplete=function(){this.JSC$19539_lastStatusCode_=this.JSC$19539_request_.JSC$19532_lastStatusCode_;this.JSC$19539_request_.JSC$19532_successful_?this.state_==0?(this.JSC$19537_channelDebug_.debug("TestConnection: request complete for initial check"),this.blockedPrefix_?(this.state_=1,afZ(this)):(this.state_=2,jJ4(this))):this.state_==2&&(this.JSC$19537_channelDebug_.debug("TestConnection: request complete for stage 2"),this.receivedIntermediateResult_?(this.JSC$19537_channelDebug_.debug("Test connection succeeded; using streaming connection"),
a$(12),rU(this.JSC$19537_channel_,this,!0)):(this.JSC$19537_channelDebug_.debug("Test connection failed; not using streaming"),a$(11),rU(this.JSC$19537_channel_,this,!1))):(this.JSC$19537_channelDebug_.debug("TestConnection: request failed, in state "+this.state_),this.state_==0?a$(9):this.state_==2&&a$(10),JN0(this.JSC$19537_channel_,this,this.JSC$19539_request_.getLastError()))};
_.Z.JSC$19539_shouldUseSecondaryDomains=function(){return this.JSC$19537_channel_.JSC$19539_shouldUseSecondaryDomains()};
_.Z.isActive=function(){return this.JSC$19537_channel_.isActive()};
_.Z.notifyServerReachabilityEvent=function(a){this.JSC$19537_channel_.notifyServerReachabilityEvent(a)};var PB=function(a,z,I){this.state_=1;this.JSC$19540_outgoingMaps_=[];this.pendingMaps_=[];this.JSC$19540_channelDebug_=new mw;this.JSC$19540_parser_=new oi;this.firstTestResults_=a||null;this.secondTestResults_=z!=null?z:null;this.asyncTest_=I||!1},rN0=function(a,z){this.JSC$19542_mapId=a;
this.map=z;this.context=null};
_.Z=PB.prototype;_.Z.JSC$19544_extraHeaders_=null;_.Z.JSC$19544_extraParams_=null;_.Z.forwardChannelRequest_=null;_.Z.JSC$19544_backChannelRequest_=null;_.Z.JSC$19544_path_=null;_.Z.JSC$19544_forwardChannelUri_=null;_.Z.JSC$19544_backChannelUri_=null;_.Z.JSC$19544_hostPrefix_=null;_.Z.JSC$19544_nextRid_=0;_.Z.JSC$19544_nextMapId_=0;_.Z.handler_=null;_.Z.JSC$19544_forwardChannelTimerId_=null;_.Z.JSC$19544_backChannelTimerId_=null;_.Z.JSC$19544_deadBackChannelTimerId_=null;_.Z.connectionTest_=null;
_.Z.useChunked_=null;_.Z.JSC$19544_lastArrayId_=-1;_.Z.JSC$19544_lastPostResponseArrayId_=-1;_.Z.JSC$19544_lastStatusCode_=-1;_.Z.JSC$19544_forwardChannelRetryCount_=0;_.Z.JSC$19544_backChannelRetryCount_=0;_.Z.JSC$19544_channelVersion_=8;var PYf={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},Z$e=function(a,z,I,J){_.AH.call(this,"timingevent",a);this.size=z;this.rtt=I;this.retries=J};
_.rL(Z$e,_.AH);var CYe=function(a){_.AH.call(this,"serverreachability",a)};
_.rL(CYe,_.AH);PB.prototype.connect=function(a,z,I,J,r){this.JSC$19540_channelDebug_.debug("connect()");a$(0);this.JSC$19544_path_=z;this.JSC$19544_extraParams_=I||{};J&&r!==void 0&&(this.JSC$19544_extraParams_.OSID=J,this.JSC$19544_extraParams_.OAID=r);this.asyncTest_?(wy((0,_.HW)(this.connectTest_,this,a),100),NhE(this)):this.connectTest_(a)};
PB.prototype.disconnect=function(){this.JSC$19540_channelDebug_.debug("disconnect()");t_M(this);if(this.state_==3){var a=this.JSC$19544_nextRid_++,z=this.JSC$19544_forwardChannelUri_.clone();_.lE(z,"SID",this.sid_);_.lE(z,"RID",a);_.lE(z,"TYPE","terminate");Zz(this,z);a=new jh(this,this.JSC$19540_channelDebug_,this.sid_,a);a.JSC$19532_type_=2;a.JSC$19532_baseUri_=_.Nk(z.clone());(new Image).src=a.JSC$19532_baseUri_.toString();a.JSC$19532_requestStartTime_=Date.now();mgM(a)}u7Z(this)};
PB.prototype.connectTest_=function(a){this.JSC$19540_channelDebug_.debug("connectTest_()");this.connectionTest_=new qHE(this,this.JSC$19540_channelDebug_);this.connectionTest_.JSC$19539_extraHeaders_=this.JSC$19544_extraHeaders_;this.connectionTest_.JSC$19537_parser_=this.JSC$19540_parser_;this.connectionTest_.connect(a)};
var NhE=function(a){a.JSC$19540_channelDebug_.debug("connectChannel_()");a.JSC$19544_ensureInState_(1,0);a.JSC$19544_forwardChannelUri_=ezG(a,a.JSC$19544_path_);zG4(a)},t_M=function(a){a.connectionTest_&&(a.connectionTest_.abort(),a.connectionTest_=null);
a.JSC$19544_backChannelRequest_&&(a.JSC$19544_backChannelRequest_.cancel(),a.JSC$19544_backChannelRequest_=null);a.JSC$19544_backChannelTimerId_&&(_.IE.clearTimeout(a.JSC$19544_backChannelTimerId_),a.JSC$19544_backChannelTimerId_=null);IGG(a);a.forwardChannelRequest_&&(a.forwardChannelRequest_.cancel(),a.forwardChannelRequest_=null);a.JSC$19544_forwardChannelTimerId_&&(_.IE.clearTimeout(a.JSC$19544_forwardChannelTimerId_),a.JSC$19544_forwardChannelTimerId_=null)},JKV=function(a,z){if(a.state_==0)throw Error("Dk");
a.JSC$19540_outgoingMaps_.length==1E3&&a.JSC$19540_parser_.stringify(z);a.JSC$19540_outgoingMaps_.push(new rN0(a.JSC$19544_nextMapId_++,z));a.state_!=2&&a.state_!=3||zG4(a)};
PB.prototype.JSC$19539_isClosed=function(){return this.state_==0};
PB.prototype.getState=function(){return this.state_};
var zG4=function(a){a.forwardChannelRequest_||a.JSC$19544_forwardChannelTimerId_||(a.JSC$19544_forwardChannelTimerId_=wy((0,_.HW)(a.JSC$19544_onStartForwardChannelTimer_,a),0),a.JSC$19544_forwardChannelRetryCount_=0)};
PB.prototype.JSC$19544_onStartForwardChannelTimer_=function(a){this.JSC$19544_forwardChannelTimerId_=null;rKE(this,a)};
var rKE=function(a,z){a.JSC$19540_channelDebug_.debug("startForwardChannel_");if(a.state_==1){if(!z){a.JSC$19540_channelDebug_.debug("open_()");a.JSC$19544_nextRid_=Math.floor(Math.random()*1E5);z=a.JSC$19544_nextRid_++;var I=new jh(a,a.JSC$19540_channelDebug_,"",z);I.JSC$19532_extraHeaders_=a.JSC$19544_extraHeaders_;var J=Pre(a),r=a.JSC$19544_forwardChannelUri_.clone();_.lE(r,"RID",z);_.lE(r,"CVER","1");Zz(a,r);pGE(I,r,J);a.forwardChannelRequest_=I;a.state_=2}}else a.state_==3&&(z?ZNf(a,z):a.JSC$19540_outgoingMaps_.length==
0?a.JSC$19540_channelDebug_.debug("startForwardChannel_ returned: nothing to send"):a.forwardChannelRequest_||(ZNf(a),a.JSC$19540_channelDebug_.debug("startForwardChannel_ finished, sent request")))},ZNf=function(a,z){if(z)if(a.JSC$19544_channelVersion_>6){a.JSC$19540_outgoingMaps_=a.pendingMaps_.concat(a.JSC$19540_outgoingMaps_);
a.pendingMaps_.length=0;var I=a.JSC$19544_nextRid_-1;z=Pre(a)}else I=z.JSC$19530_rid_,z=z.JSC$19532_postData_;else I=a.JSC$19544_nextRid_++,z=Pre(a);var J=a.JSC$19544_forwardChannelUri_.clone();_.lE(J,"SID",a.sid_);_.lE(J,"RID",I);_.lE(J,"AID",a.JSC$19544_lastArrayId_);Zz(a,J);I=new jh(a,a.JSC$19540_channelDebug_,a.sid_,I,a.JSC$19544_forwardChannelRetryCount_+1);I.JSC$19532_extraHeaders_=a.JSC$19544_extraHeaders_;I.setTimeout(1E4+Math.round(1E4*Math.random()));a.forwardChannelRequest_=I;pGE(I,J,z)},
Zz=function(a,z){a.handler_&&(a=a.handler_.JSC$19551_getAdditionalParams())&&_.x8.forEach(a,function(I,J){_.lE(z,J,I)})},Pre=function(a){var z=Math.min(a.JSC$19540_outgoingMaps_.length,1E3),I=["count="+z];
if(a.JSC$19544_channelVersion_>6&&z>0){var J=a.JSC$19540_outgoingMaps_[0].JSC$19542_mapId;I.push("ofs="+J)}else J=0;for(var r={},P=0;P<z;r={mapId$jscomp$3:void 0},P++){r.mapId$jscomp$3=a.JSC$19540_outgoingMaps_[P].JSC$19542_mapId;var N=a.JSC$19540_outgoingMaps_[P].map;r.mapId$jscomp$3=a.JSC$19544_channelVersion_<=6?P:r.mapId$jscomp$3-J;try{_.x8.forEach(N,function(u){return function(E,O){I.push("req"+u.mapId$jscomp$3+"_"+O+"="+encodeURIComponent(E))}}(r))}catch(u){I.push("req"+r.mapId$jscomp$3+"_type="+
encodeURIComponent("_badmap"))}}a.pendingMaps_=a.pendingMaps_.concat(a.JSC$19540_outgoingMaps_.splice(0,z));
return I.join("&")},CrY=function(a){a.JSC$19544_backChannelRequest_||a.JSC$19544_backChannelTimerId_||(a.JSC$19544_backChannelAttemptId_=1,a.JSC$19544_backChannelTimerId_=wy((0,_.HW)(a.JSC$19544_onStartBackChannelTimer_,a),0),a.JSC$19544_backChannelRetryCount_=0)},tPf=function(a){if(a.JSC$19544_backChannelRequest_||a.JSC$19544_backChannelTimerId_||a.JSC$19544_backChannelRetryCount_>=3)return!1;
a.JSC$19540_channelDebug_.debug("Going to retry GET");a.JSC$19544_backChannelAttemptId_++;a.JSC$19544_backChannelTimerId_=wy((0,_.HW)(a.JSC$19544_onStartBackChannelTimer_,a),NrM(a,a.JSC$19544_backChannelRetryCount_));a.JSC$19544_backChannelRetryCount_++;return!0};
PB.prototype.JSC$19544_onStartBackChannelTimer_=function(){this.JSC$19544_backChannelTimerId_=null;this.JSC$19540_channelDebug_.debug("Creating new HttpRequest");this.JSC$19544_backChannelRequest_=new jh(this,this.JSC$19540_channelDebug_,this.sid_,"rpc",this.JSC$19544_backChannelAttemptId_);this.JSC$19544_backChannelRequest_.JSC$19532_extraHeaders_=this.JSC$19544_extraHeaders_;this.JSC$19544_backChannelRequest_.JSC$19532_readyStateChangeThrottleMs_=0;var a=this.JSC$19544_backChannelUri_.clone();_.lE(a,
"RID","rpc");_.lE(a,"SID",this.sid_);_.lE(a,"CI",this.useChunked_?"0":"1");_.lE(a,"AID",this.JSC$19544_lastArrayId_);Zz(this,a);_.lE(a,"TYPE","xmlhttp");wGE(this.JSC$19544_backChannelRequest_,a,!0,this.JSC$19544_hostPrefix_,!1);this.JSC$19540_channelDebug_.debug("New Request created")};
var rU=function(a,z,I){a.JSC$19540_channelDebug_.debug("Test Connection Finished");a.useChunked_=a.secondTestResults_==null?I:!a.secondTestResults_;a.JSC$19544_lastStatusCode_=z.JSC$19539_lastStatusCode_;a.asyncTest_||NhE(a)},JN0=function(a,z){a.JSC$19540_channelDebug_.debug("Test Connection Failed");
a.JSC$19544_lastStatusCode_=z.JSC$19539_lastStatusCode_;JB(a,2)};
PB.prototype.JSC$19539_onRequestData=function(a,z){if(this.state_!=0&&(this.JSC$19544_backChannelRequest_==a||this.forwardChannelRequest_==a))if(this.JSC$19544_lastStatusCode_=a.JSC$19532_lastStatusCode_,this.forwardChannelRequest_==a&&this.state_==3)if(this.JSC$19544_channelVersion_>7){try{var I=this.JSC$19540_parser_.parse(z)}catch(J){I=null}if(Array.isArray(I)&&I.length==3)if(z=I,z[0]==0)a:if(this.JSC$19540_channelDebug_.debug("Server claims our backchannel is missing."),this.JSC$19544_backChannelTimerId_)this.JSC$19540_channelDebug_.debug("But we are currently starting the request.");
else{if(this.JSC$19544_backChannelRequest_)if(this.JSC$19544_backChannelRequest_.JSC$19532_requestStartTime_+3E3<this.forwardChannelRequest_.JSC$19532_requestStartTime_)IGG(this),this.JSC$19544_backChannelRequest_.cancel(),this.JSC$19544_backChannelRequest_=null;else break a;else this.JSC$19540_channelDebug_.warning("We do not have a BackChannel established");tPf(this);a$(19)}else this.JSC$19544_lastPostResponseArrayId_=z[1],a=this.JSC$19544_lastPostResponseArrayId_-this.JSC$19544_lastArrayId_,0<
a&&(z=z[2],this.JSC$19540_channelDebug_.debug(z+" bytes (in "+a+" arrays) are outstanding on the BackChannel"),z<37500&&this.useChunked_&&this.JSC$19544_backChannelRetryCount_==0&&!this.JSC$19544_deadBackChannelTimerId_&&(this.JSC$19544_deadBackChannelTimerId_=wy((0,_.HW)(this.JSC$19544_onBackChannelDead_,this),6E3)));else this.JSC$19540_channelDebug_.debug("Bad POST response data returned"),JB(this,11)}else z!="y2f%"&&(this.JSC$19540_channelDebug_.debug("Bad data returned - missing/invald magic cookie"),
JB(this,11));else this.JSC$19544_backChannelRequest_==a&&IGG(this),_.NO(z)||(a=this.JSC$19540_parser_.parse(z),this.onInput_(a))};
PB.prototype.JSC$19544_onBackChannelDead_=function(){this.JSC$19544_deadBackChannelTimerId_!=null&&(this.JSC$19544_deadBackChannelTimerId_=null,this.JSC$19544_backChannelRequest_.cancel(),this.JSC$19544_backChannelRequest_=null,tPf(this),a$(20))};
var IGG=function(a){a.JSC$19544_deadBackChannelTimerId_!=null&&(_.IE.clearTimeout(a.JSC$19544_deadBackChannelTimerId_),a.JSC$19544_deadBackChannelTimerId_=null)};
PB.prototype.JSC$19539_onRequestComplete=function(a){this.JSC$19540_channelDebug_.debug("Request complete");if(this.JSC$19544_backChannelRequest_==a){IGG(this);this.JSC$19544_backChannelRequest_=null;var z=2}else if(this.forwardChannelRequest_==a)this.forwardChannelRequest_=null,z=1;else return;this.JSC$19544_lastStatusCode_=a.JSC$19532_lastStatusCode_;if(this.state_!=0)if(a.JSC$19532_successful_)if(z==1){z=a.JSC$19532_postData_?a.JSC$19532_postData_.length:0;a=Date.now()-a.JSC$19532_requestStartTime_;
var I=oVZ;I.dispatchEvent(new Z$e(I,z,a,this.JSC$19544_forwardChannelRetryCount_));zG4(this);this.handler_&&this.handler_.JSC$19551_channelSuccess(this,this.pendingMaps_);this.pendingMaps_.length=0}else CrY(this);else{I=a.getLastError();if(I==3||I==7||I==0&&this.JSC$19544_lastStatusCode_>0)this.JSC$19540_channelDebug_.debug("Not retrying due to error type");else{this.JSC$19540_channelDebug_.debug("Maybe retrying, last error: "+DgZ(I,this.JSC$19544_lastStatusCode_));var J;if(J=z==1)this.forwardChannelRequest_||
this.JSC$19544_forwardChannelTimerId_||this.state_==1||this.JSC$19544_forwardChannelRetryCount_>=2?J=!1:(this.JSC$19540_channelDebug_.debug("Going to retry POST"),this.JSC$19544_forwardChannelTimerId_=wy((0,_.HW)(this.JSC$19544_onStartForwardChannelTimer_,this,a),NrM(this,this.JSC$19544_forwardChannelRetryCount_)),this.JSC$19544_forwardChannelRetryCount_++,J=!0);if(J||z==2&&tPf(this))return;this.JSC$19540_channelDebug_.debug("Exceeded max number of retries")}this.JSC$19540_channelDebug_.debug("Error: HTTP request failed");
switch(I){case 1:JB(this,5);break;case 4:JB(this,10);break;case 3:JB(this,6);break;case 7:JB(this,12);break;default:JB(this,2)}}};
var NrM=function(a,z){var I=5E3+Math.floor(Math.random()*1E4);a.isActive()||(a.JSC$19540_channelDebug_.debug("Inactive channel"),I*=2);return I*z};
PB.prototype.onInput_=function(a){for(var z=0;z<a.length;z++){var I=a[z];this.JSC$19544_lastArrayId_=I[0];I=I[1];this.state_==2?I[0]=="c"?(this.sid_=I[1],this.JSC$19544_hostPrefix_=I[2],I=I[3],I!=null?this.JSC$19544_channelVersion_=I:this.JSC$19544_channelVersion_=6,this.state_=3,this.handler_&&this.handler_.JSC$19551_channelOpened(),this.JSC$19544_backChannelUri_=Iff(this,this.JSC$19544_hostPrefix_,this.JSC$19544_path_),CrY(this)):I[0]=="stop"&&JB(this,7):this.state_==3&&(I[0]=="stop"?JB(this,7):
I[0]!="noop"&&this.handler_&&this.handler_.JSC$19551_channelHandleArray(I),this.JSC$19544_backChannelRetryCount_=0)}};
PB.prototype.JSC$19544_ensureInState_=function(a){if(!_.Um(arguments,this.state_))throw Error("Ek`"+this.state_);};
var JB=function(a,z){a.JSC$19540_channelDebug_.info("Error code "+z);if(z==2||z==9){var I=null;a.handler_&&(I=null);var J=(0,_.HW)(a.testGoogleComCallback_,a);I||(I=new _.cJ("//www.google.com/images/cleardot.gif"),_.Nk(I));ube(I.toString(),1E4,J)}else a$(2);a.onError_(z)};
PB.prototype.testGoogleComCallback_=function(a){a?(this.JSC$19540_channelDebug_.info("Successfully pinged google.com"),a$(2)):(this.JSC$19540_channelDebug_.info("Failed to ping google.com"),a$(1),this.onError_(8))};
PB.prototype.onError_=function(a){this.JSC$19540_channelDebug_.debug("HttpChannel: error - "+a);this.state_=0;this.handler_&&this.handler_.JSC$19551_channelError(a);u7Z(this);t_M(this)};
var u7Z=function(a){a.state_=0;a.JSC$19544_lastStatusCode_=-1;if(a.handler_)if(a.pendingMaps_.length==0&&a.JSC$19540_outgoingMaps_.length==0)a.handler_.JSC$19551_channelClosed();else{a.JSC$19540_channelDebug_.debug("Number of undelivered maps, pending: "+a.pendingMaps_.length+", outgoing: "+a.JSC$19540_outgoingMaps_.length);var z=_.RE(a.pendingMaps_),I=_.RE(a.JSC$19540_outgoingMaps_);a.pendingMaps_.length=0;a.JSC$19540_outgoingMaps_.length=0;a.handler_.JSC$19551_channelClosed(z,I)}},ezG=function(a,
z){z=zci(a,null,z);
a.JSC$19540_channelDebug_.debug("GetForwardChannelUri: "+z);return z},Iff=function(a,z,I){z=zci(a,a.JSC$19539_shouldUseSecondaryDomains()?z:null,I);
a.JSC$19540_channelDebug_.debug("GetBackChannelUri: "+z);return z},zci=function(a,z,I){var J=_.Rf(I);
if(J.JSC$9989_domain_!="")z&&_.ja(J,z+"."+J.JSC$9989_domain_),_.zo(J,J.JSC$9989_port_);else{var r=window.location;J=vKY(r.protocol,z?z+"."+r.hostname:r.hostname,+r.port,I)}a.JSC$19544_extraParams_&&_.x8.forEach(a.JSC$19544_extraParams_,function(P,N){_.lE(J,N,P)});
_.lE(J,"VER",a.JSC$19544_channelVersion_);Zz(a,J);return J};
PB.prototype.JSC$19539_createXhrIo=function(a){if(a)throw Error("Bk");a=new _.GV;a.JSC$9754_withCredentials_=!1;return a};
PB.prototype.isActive=function(){return!!this.handler_&&this.handler_.isActive(this)};
PB.prototype.notifyServerReachabilityEvent=function(a){var z=oVZ;z.dispatchEvent(new CYe(z,a))};
PB.prototype.JSC$19539_shouldUseSecondaryDomains=function(){return!1};
new W34;var uSZ=function(){};
_.Z=uSZ.prototype;_.Z.JSC$19551_channelOpened=function(){};
_.Z.JSC$19551_channelHandleArray=function(){};
_.Z.JSC$19551_channelSuccess=function(){};
_.Z.JSC$19551_channelError=function(){};
_.Z.JSC$19551_channelClosed=function(){};
_.Z.JSC$19551_getAdditionalParams=function(){return{}};
_.Z.isActive=function(){return!0};var Eo0=function(a){a.front_.length===0&&(a.front_=a.back_,a.front_.reverse(),a.back_=[])};
_.Z=gh4.prototype;_.Z.enqueue=function(a){this.back_.push(a)};
_.Z.peek=function(){Eo0(this);return _.G3(this.front_)};
_.Z.getCount=function(){return this.front_.length+this.back_.length};
_.Z.isEmpty=function(){return this.front_.length===0&&this.back_.length===0};
_.Z.clear=function(){this.front_=[];this.back_=[]};
_.Z.contains=function(a){return _.Um(this.front_,a)||_.Um(this.back_,a)};
_.Z.remove=function(a){var z=this.front_;var I=Array.prototype.lastIndexOf.call(z,a,z.length-1);I>=0?(_.bGE(z,I),z=!0):z=!1;return z||_.Di(this.back_,a)};
_.Z.getValues=function(){for(var a=[],z=this.front_.length-1;z>=0;--z)a.push(this.front_[z]);z=this.back_.length;for(var I=0;I<z;++I)a.push(this.back_[I]);return a};var C8=function(a){this.JSC$19555_map_=new _.BY;this.size=0;a&&this.addAll(a)},BrM=function(a){var z=typeof a;
return z=="object"&&a||z=="function"?"o"+_.yx(a):z.charAt(0)+a};
_.Z=C8.prototype;_.Z.getCount=function(){return this.JSC$19555_map_.size};
_.Z.add=function(a){this.JSC$19555_map_.set(BrM(a),a);this.size=this.JSC$19555_map_.size};
_.Z.addAll=function(a){a=_.eq(a);for(var z=a.length,I=0;I<z;I++)this.add(a[I]);this.size=this.JSC$19555_map_.size};
_.Z.removeAll=function(a){a=_.eq(a);for(var z=a.length,I=0;I<z;I++)this.remove(a[I]);this.size=this.JSC$19555_map_.size};
_.Z.delete=function(a){a=this.JSC$19555_map_.remove(BrM(a));this.size=this.JSC$19555_map_.size;return a};
_.Z.remove=function(a){return this.delete(a)};
_.Z.clear=function(){this.JSC$19555_map_.clear();this.size=0};
_.Z.isEmpty=function(){return this.JSC$19555_map_.size===0};
_.Z.has=function(a){return this.JSC$19555_map_.containsKey(BrM(a))};
_.Z.contains=function(a){return this.JSC$19555_map_.containsKey(BrM(a))};
_.Z.getValues=function(){return this.JSC$19555_map_.getValues()};
_.Z.values=function(){return this.JSC$19555_map_.values()};
_.Z.clone=function(){return new C8(this)};
_.Z.equals=function(a){return this.getCount()==ihZ(a)&&goM(this,a)};
var goM=function(a,z){var I=ihZ(z);if(a.getCount()>I)return!1;!(z instanceof C8)&&I>5&&(z=new C8(z));return xli(a,function(J){var r=z;return r.contains&&typeof r.contains=="function"?r.contains(J):r.containsValue&&typeof r.containsValue=="function"?r.containsValue(J):_.lG(r)||typeof r==="string"?_.Um(r,J):_.x8.containsValue(r,J)})};
C8.prototype.__iterator__=function(){return this.JSC$19555_map_.__iterator__(!1)};
C8.prototype[Symbol.iterator]=function(){return this.values()};var ONf={properties:{value:{type:Number,value:0,notify:!0,reflectToAttribute:!0},min:{type:Number,value:0,notify:!0},max:{type:Number,value:100,notify:!0},step:{type:Number,value:1,notify:!0},ratio:{type:Number,value:0,readOnly:!0,notify:!0}},observers:["_update(value, min, max, step)"],_calcRatio:function(a){return(this._clampValue(a)-this.min)/(this.max-this.min)},
_clampValue:function(a){return Math.min(this.max,Math.max(this.min,this._calcStep(a)))},
_calcStep:function(a){a=parseFloat(a);if(!this.step)return a;a=Math.round((a-this.min)/this.step);return this.step<1?a/(1/this.step)+this.min:a*this.step+this.min},
_validateValue:function(){var a=this._clampValue(this.value);this.value=this.oldValue=isNaN(a)?this.oldValue:a;return this.value!==a},
_update:function(){this._validateValue();this._setRatio(this._calcRatio(this.value)*100)}};var fGz;var AKE;_.vK({_template:function(){if(AKE!==void 0)return AKE;var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:tp-yt-app-drawer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,third_party.javascript.youtube_components.tp_yt_app_layout.tp_yt_app_drawer.tp.yt.app.drawer.css.js--\x3e<div id="scrim" on-click="close" class="style-scope tp-yt-app-drawer"></div>\n\n\n<div id="contentContainer" opened$="[[opened]]" persistent$="[[persistent]]" position$="[[position]]" swipe-open$="[[swipeOpen]]" class="style-scope tp-yt-app-drawer">\n  <slot class="style-scope tp-yt-app-drawer"></slot>\n</div>\n');
a.content.insertBefore(_.w().content.cloneNode(!0),a.content.firstChild);var z=a.content,I=z.insertBefore;fGz===void 0&&(fGz=document.createElement("template"));var J=fGz;I.call(z,J.content.cloneNode(!0),a.content.firstChild);return AKE=a},
is:"tp-yt-app-drawer",properties:{opened:{type:Boolean,value:!1,notify:!0,reflectToAttribute:!0},persistent:{type:Boolean,value:!1,reflectToAttribute:!0},transitionDuration:{type:Number,value:200},align:{type:String,value:"left"},position:{type:String,readOnly:!0,reflectToAttribute:!0},swipeOpen:{type:Boolean,value:!1,reflectToAttribute:!0},noFocusTrap:{type:Boolean,value:!1},disableSwipe:{type:Boolean,value:!1}},observers:["resetLayout(position, isAttached)","_resetPosition(align, isAttached)","_styleTransitionDuration(transitionDuration)",
"_openedPersistentChanged(opened, persistent)"],_translateOffset:0,_trackDetails:null,_drawerState:0,_boundEscKeydownHandler:null,_firstTabStop:null,_lastTabStop:null,attached:function(){_.Yv(this,function(){this._boundEscKeydownHandler=this._escKeydownHandler.bind(this);this.addEventListener("keydown",this._tabKeydownHandler.bind(this));this.listen(this,"track","_track");this.setScrollDirection("y")});
this.fire("app-reset-layout")},
detached:function(){document.removeEventListener("keydown",this._boundEscKeydownHandler)},
open:function(){this.opened=!0},
close:function(){this.opened=!1},
toggle:function(){this.opened=!this.opened},
getWidth:function(){return this._savedWidth||this.$.contentContainer.offsetWidth},
_isRTL:function(){return window.getComputedStyle(this).direction==="rtl"},
_resetPosition:function(){switch(this.align){case "start":this._setPosition(this._isRTL()?"right":"left");return;case "end":this._setPosition(this._isRTL()?"left":"right");return}this._setPosition(this.align)},
_escKeydownHandler:function(a){a.keyCode===27&&(a.preventDefault(),this.close())},
_track:function(a){if(!this.persistent&&!this.disableSwipe)switch(a.preventDefault(),a.detail.state){case "start":this._trackStart(a);break;case "track":this._trackMove(a);break;case "end":this._trackEnd(a)}},
_trackStart:function(){this._drawerState=this._DRAWER_STATE.TRACKING;var a=this.$.contentContainer.getBoundingClientRect();this._savedWidth=a.width;this._translateOffset=this.position==="left"?a.left:a.right-window.innerWidth;this._trackDetails=[];this._styleTransitionDuration(0);this.style.visibility="visible"},
_trackMove:function(a){this._trackDetails&&(this._translateDrawer(a.detail.dx+this._translateOffset),this._trackDetails.push({dx:a.detail.dx,timeStamp:Date.now()}))},
_trackEnd:function(a){if(this._trackDetails){var z=a.detail.dx+this._translateOffset,I=this.getWidth();z=this.position==="left"?z>=0||z<=-I:z<=0||z>=I;if(!z){var J=this._trackDetails;this._trackDetails=null;this._flingDrawer(a,J);if(this._drawerState===this._DRAWER_STATE.FLINGING)return}I/=2;a.detail.dx<-I?this.opened=this.position==="right":a.detail.dx>I&&(this.opened=this.position==="left");z?this.debounce("_resetDrawerState",this._resetDrawerState):this.debounce("_resetDrawerState",this._resetDrawerState,
this.transitionDuration);this._styleTransitionDuration(this.transitionDuration);this._resetDrawerTranslate();this.style.visibility=""}},
_calculateVelocity:function(a,z){for(var I=Date.now(),J=I-100,r,P=0,N=z.length-1;P<=N;){var u=P+N>>1,E=z[u];E.timeStamp>=J?(r=E,N=u-1):P=u+1}return r?(a.detail.dx-r.dx)/(I-r.timeStamp||1):0},
_flingDrawer:function(a,z){z=this._calculateVelocity(a,z);if(!(Math.abs(z)<this._MIN_FLING_THRESHOLD)){this._drawerState=this._DRAWER_STATE.FLINGING;a=a.detail.dx+this._translateOffset;var I=this.getWidth(),J=this.position==="left",r=z>0;r?(z=Math.max(z,this._MIN_TRANSITION_VELOCITY),this.opened=this.position==="left"):(z=Math.min(z,-this._MIN_TRANSITION_VELOCITY),this.opened=this.position==="right");z=this._FLING_INITIAL_SLOPE*(!r&&J?-(a+I):r&&!J?I-a:-a)/z;this._styleTransitionDuration(z);this._styleTransitionTimingFunction(this._FLING_TIMING_FUNCTION);
this._resetDrawerTranslate();this.debounce("_resetDrawerState",this._resetDrawerState,z)}},
_styleTransitionDuration:function(a){this.style.transitionDuration=a+"ms";this.$.contentContainer.style.transitionDuration=a+"ms";this.$.scrim.style.transitionDuration=a+"ms"},
_styleTransitionTimingFunction:function(a){this.$.contentContainer.style.transitionTimingFunction=a;this.$.scrim.style.transitionTimingFunction=a},
_translateDrawer:function(a){var z=this.getWidth();this.position==="left"?(a=Math.max(-z,Math.min(a,0)),this.$.scrim.style.opacity=1+a/z):(a=Math.max(0,Math.min(a,z)),this.$.scrim.style.opacity=1-a/z);this.translate3d(a+"px","0","0",this.$.contentContainer)},
_resetDrawerTranslate:function(){this.$.scrim.style.opacity="";this.transform("",this.$.contentContainer)},
_resetDrawerState:function(){var a=this._drawerState;a===this._DRAWER_STATE.FLINGING&&(this._styleTransitionDuration(this.transitionDuration),this._styleTransitionTimingFunction(""),this.style.visibility="");this._savedWidth=null;this._drawerState=this.opened?this.persistent?this._DRAWER_STATE.OPENED_PERSISTENT:this._DRAWER_STATE.OPENED:this._DRAWER_STATE.CLOSED;a!==this._drawerState&&(this._drawerState===this._DRAWER_STATE.OPENED?(this._setKeyboardFocusTrap(),document.addEventListener("keydown",
this._boundEscKeydownHandler),document.body.style.overflow="hidden"):(document.removeEventListener("keydown",this._boundEscKeydownHandler),document.body.style.overflow=""),a!==this._DRAWER_STATE.INIT&&this.fire("app-drawer-transitioned"))},
resetLayout:function(){this.fire("app-reset-layout")},
_setKeyboardFocusTrap:function(){if(!this.noFocusTrap){var a=_.Q$(this).querySelectorAll('a[href]:not([tabindex="-1"]),area[href]:not([tabindex="-1"]),input:not([disabled]):not([tabindex="-1"]),select:not([disabled]):not([tabindex="-1"]),textarea:not([disabled]):not([tabindex="-1"]),button:not([disabled]):not([tabindex="-1"]),iframe:not([tabindex="-1"]),[tabindex]:not([tabindex="-1"]),[contentEditable=true]:not([tabindex="-1"])');a.length>0?(this._firstTabStop=a[0],this._lastTabStop=a[a.length-1]):
this._lastTabStop=this._firstTabStop=null;(a=this.getAttribute("tabindex"))&&parseInt(a,10)>-1?this.focus():this._firstTabStop&&this._firstTabStop.focus()}},
_tabKeydownHandler:function(a){this.noFocusTrap||this._drawerState!==this._DRAWER_STATE.OPENED||a.keyCode!==9||(a.shiftKey?this._firstTabStop&&_.Q$(a).localTarget===this._firstTabStop&&(a.preventDefault(),this._lastTabStop.focus()):this._lastTabStop&&_.Q$(a).localTarget===this._lastTabStop&&(a.preventDefault(),this._firstTabStop.focus()))},
_openedPersistentChanged:function(a,z){this.toggleClass("visible",a&&!z,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 sDe;var noE;_.vK({_template:function(){if(noE!==void 0)return noE;var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:tp-yt-paper-progress--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,third_party.javascript.youtube_components.tp_yt_paper_progress.tp.yt.paper.progress.css.js--\x3e<div id="progressContainer" class="style-scope tp-yt-paper-progress">\n  <div id="secondaryProgress" hidden$="[[_hideSecondaryProgress(secondaryRatio)]]" class="style-scope tp-yt-paper-progress"></div>\n  <div id="primaryProgress" class="style-scope tp-yt-paper-progress"></div>\n</div>\n');
a.content.insertBefore(_.w().content.cloneNode(!0),a.content.firstChild);var z=a.content,I=z.insertBefore;sDe===void 0&&(sDe=document.createElement("template"));var J=sDe;I.call(z,J.content.cloneNode(!0),a.content.firstChild);return noE=a},
is:"tp-yt-paper-progress",behaviors:[ONf],properties:{secondaryProgress:{type:Number,value:0},secondaryRatio:{type:Number,value:0,readOnly:!0},indeterminate:{type:Boolean,value:!1,observer:"_toggleIndeterminate"},disabled:{type:Boolean,value:!1,reflectToAttribute:!0,observer:"_disabledChanged"}},observers:["_progressChanged(secondaryProgress, value, min, max, indeterminate)"],hostAttributes:{role:"progressbar"},_toggleIndeterminate:function(a){this.toggleClass("indeterminate",a,this.$.primaryProgress)},
_transformProgress:function(a,z){a.style.transform=a.style.webkitTransform="scaleX("+z/100+")"},
_mainRatioChanged:function(a){this._transformProgress(this.$.primaryProgress,a)},
_progressChanged:function(a,z,I,J,r){a=this._clampValue(a);z=this._clampValue(z);var P=this._calcRatio(a)*100,N=this._calcRatio(z)*100;this._setSecondaryRatio(P);this._transformProgress(this.$.secondaryProgress,P);this._transformProgress(this.$.primaryProgress,N);this.secondaryProgress=a;r?this.removeAttribute("aria-valuenow"):this.setAttribute("aria-valuenow",z);this.setAttribute("aria-valuemin",I);this.setAttribute("aria-valuemax",J)},
_disabledChanged:function(a){this.setAttribute("aria-disabled",a?"true":"false")},
_hideSecondaryProgress:function(a){return a===0}});var KPG;var FP4;var HN4=function(){};
_.Z=HN4.prototype;_.Z.registered=function(){};
_.Z.addOwnKeyBinding=function(){};
_.Z.removeOwnKeyBindings=function(){};
_.Z.keyboardEventMatchesKeys=function(){};
_.Z._collectKeyBindings=function(){};
_.Z._prepKeyBindings=function(){};
_.Z._addKeyBinding=function(){};
_.Z._resetKeyEventListeners=function(){};
_.Z._listenKeyEventListeners=function(){};
_.Z._unlistenKeyEventListeners=function(){};
_.Z._onKeyBindingEvent=function(){};
_.Z._triggerKeyHandler=function(){};
_.Z._tapHandler=function(){};
_.Z._focusChanged=function(){};
_.Z._detectKeyboardFocus=function(){};
_.Z._userActivate=function(){};
_.Z._upHandler=function(){};
_.Z._spaceKeyDownHandler=function(){};
_.Z._spaceKeyUpHandler=function(){};
_.Z._asyncClick=function(){};
_.Z._pressedChanged=function(){};
_.Z._ariaActiveAttributeChanged=function(){};
_.Z._activeChanged=function(){};
_.Z._controlStateChanged=function(){};
_.Z._changedButtonState=function(){};
_.Z._focusBlurHandler=function(){};
_.Z._disabledChanged=function(){};
_.Z._changedControlState=function(){};
_.Z._buttonStateChanged=function(){};
_.Z._downHandler=function(){};
_.Z.ensureRipple=function(){};
_.Z.getRipple=function(){};
_.Z.hasRipple=function(){};
_.Z._noinkChanged=function(){};
_.Z._calcRatio=function(){};
_.Z._clampValue=function(){};
_.Z._calcStep=function(){};
_.Z._validateValue=function(){};
_.Z._update=function(){};
_.Z._setImmediateValue=function(){};
_.Z._setExpand=function(){};
_.Z._setDragging=function(){};
_.Z._setTransiting=function(){};
_.Z._setMarkers=function(){};
_.Z._setPressed=function(){};
_.Z._setPointerDown=function(){};
_.Z._setReceivedFocusFromKeyboard=function(){};
_.Z._setFocused=function(){};
_.Z._setRatio=function(){};
HN4=_.vK({_template:function(){if(FP4!==void 0)return FP4;var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:tp-yt-paper-slider--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,third_party.javascript.youtube_components.tp_yt_paper_slider.tp.yt.paper.slider.css.js--\x3e<div id="sliderContainer" class$="[[_getClassNames(disabled, pin, snaps, immediateValue, min, expand, dragging, transiting, editable)]] style-scope tp-yt-paper-slider">\n  <div class="bar-container style-scope tp-yt-paper-slider">\n    <tp-yt-paper-progress disabled$="[[disabled]]" id="sliderBar" aria-hidden="true" min="[[min]]" max="[[max]]" step="[[step]]" value="[[immediateValue]]" secondary-progress="[[secondaryProgress]]" on-down="_bardown" on-up="_resetKnob" on-track="_bartrack" on-tap="_barclick" class="style-scope tp-yt-paper-slider">\n    </tp-yt-paper-progress>\n  </div>\n\n  <template is="dom-if" if="[[snaps]]" class="style-scope tp-yt-paper-slider">\n    <div class="slider-markers style-scope tp-yt-paper-slider">\n      <template is="dom-repeat" items="[[markers]]" class="style-scope tp-yt-paper-slider">\n        <div class="slider-marker style-scope tp-yt-paper-slider"></div>\n      </template>\n    </div>\n  </template>\n\n  <div id="sliderKnobContainer" class="slider-knob-container style-scope tp-yt-paper-slider">\n    <div id="sliderKnob" class="slider-knob style-scope tp-yt-paper-slider" on-down="_knobdown" on-up="_resetKnob" on-track="_onTrack" on-transitionend="_knobTransitionEnd">\n      <div class="slider-knob-inner style-scope tp-yt-paper-slider" value$="[[immediateValue]]"></div>\n    </div>\n  </div>\n</div>\n\n<template is="dom-if" if="[[editable]]" class="style-scope tp-yt-paper-slider">\n  <tp-yt-paper-input id="input" type="number" step="[[step]]" min="[[min]]" max="[[max]]" class="slider-input style-scope tp-yt-paper-slider" disabled$="[[disabled]]" value="[[immediateValue]]" on-change="_changeValue" on-keydown="_inputKeyDown" no-label-float="">\n  </tp-yt-paper-input>\n</template>\n');
a.content.insertBefore(_.w().content.cloneNode(!0),a.content.firstChild);var z=a.content,I=z.insertBefore;KPG===void 0&&(KPG=document.createElement("template"));var J=KPG;I.call(z,J.content.cloneNode(!0),a.content.firstChild);return FP4=a},
is:"tp-yt-paper-slider",behaviors:[_.V_,_.xE,_.rIj,ONf],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&&_.d3(this.$.sliderBar,"auto")},
increment:function(){this.value=this._clampValue(this.value+this.step)},
decrement:function(){this.value=this._clampValue(this.value-this.step)},
_updateKnob:function(a,z,I){this.setAttribute("aria-valuemin",z);this.setAttribute("aria-valuemax",I);this.setAttribute("aria-valuenow",a);this._positionKnob(this._calcRatio(a)*100)},
_valueChanged:function(){this.fire("value-change",{composed:!0})},
_immediateValueChanged:function(){this.dragging?this.fire("immediate-value-change",{composed:!0}):this.value=this.immediateValue},
_secondaryProgressChanged:function(){this.secondaryProgress=this._clampValue(this.secondaryProgress)},
_expandKnob:function(){this._setExpand(!0)},
_resetKnob:function(){this.cancelDebouncer("expandKnob");this._setExpand(!1)},
_positionKnob:function(a){this._setImmediateValue(this._calcStep(this._calcKnobPosition(a)));this._setRatio(this._calcRatio(this.immediateValue)*100);this.$.sliderKnob.style.left=this.ratio+"%";this.dragging&&(this._knobstartx=this.ratio*this._w/100,this.translate3d(0,0,0,this.$.sliderKnob))},
_calcKnobPosition:function(a){return(this.max-this.min)*a/100+this.min},
_onTrack:function(a){a.stopPropagation();switch(a.detail.state){case "start":this._trackStart(a);break;case "track":this._trackX(a);break;case "end":this._trackEnd()}},
_trackStart:function(){this._setTransiting(!1);this._w=this.$.sliderBar.offsetWidth;this._knobstartx=this._startx=this._x=this.ratio*this._w/100;this._minx=-this._startx;this._maxx=this._w-this._startx;this.$.sliderKnob.classList.add("dragging");this._setDragging(!0)},
_trackX:function(a){this.dragging||this._trackStart(a);this._x=this._startx+Math.min(this._maxx,Math.max(this._minx,a.detail.dx*(this._isRTL?-1:1)));a=this._calcStep(this._calcKnobPosition(this._x/this._w*100));this._setImmediateValue(a);a=this._calcRatio(this.immediateValue)*this._w-this._knobstartx;this.translate3d(a+"px",0,0,this.$.sliderKnob)},
_trackEnd:function(){var a=this.$.sliderKnob.style;this.$.sliderKnob.classList.remove("dragging");this._setDragging(!1);this._resetKnob();this.value=this.immediateValue;a.transform=a.webkitTransform="";this.fire("change",{composed:!0})},
_knobdown:function(a){this._expandKnob();a.preventDefault();this.focus()},
_bartrack:function(a){this._allowBarEvent(a)&&this._onTrack(a)},
_barclick:function(a){this._w=this.$.sliderBar.offsetWidth;var z=this.$.sliderBar.getBoundingClientRect();z=(a.detail.x-z.left)/this._w*100;this._isRTL&&(z=100-z);var I=this.ratio;this._setTransiting(!0);this._positionKnob(z);I===this.ratio&&this._setTransiting(!1);this.async(function(){this.fire("change",{composed:!0})});
a.preventDefault();this.focus()},
_bardown:function(a){this._allowBarEvent(a)&&(this.debounce("expandKnob",this._expandKnob,60),this._barclick(a))},
_knobTransitionEnd:function(a){a.target===this.$.sliderKnob&&this._setTransiting(!1)},
_updateMarkers:function(a,z,I,J){J||this._setMarkers([]);z=Math.round((I-z)/this.step);z>a&&(z=a);if(z<0||!isFinite(z))z=0;this._setMarkers(Array(z))},
_mergeClasses:function(a){return Object.keys(a).filter(function(z){return a[z]}).join(" ")},
_getClassNames:function(){return this._mergeClasses({disabled:this.disabled,pin:this.pin,snaps:this.snaps,ring:this.immediateValue<=this.min,expand:this.expand,dragging:this.dragging,transiting:this.transiting,editable:this.editable})},
_allowBarEvent:function(a){return!this.ignoreBarTouch||a.detail.sourceEvent instanceof MouseEvent},
get _isRTL(){this.__isRTL===void 0&&(this.__isRTL=window.getComputedStyle(this).direction==="rtl");return this.__isRTL},_leftKey:function(a){this._isRTL?this._incrementKey(a):this._decrementKey(a)},
_rightKey:function(a){this._isRTL?this._decrementKey(a):this._incrementKey(a)},
_incrementKey:function(a){this.disabled||(a.detail.key==="end"?this.value=this.max:this.increment(),this.fire("change"),a.preventDefault())},
_decrementKey:function(a){this.disabled||(a.detail.key==="home"?this.value=this.min:this.decrement(),this.fire("change"),a.preventDefault())},
_changeValue:function(a){this.value=a.target.value;this.fire("change",{composed:!0})},
_inputKeyDown:function(a){a.stopPropagation()},
_createRipple:function(){this._rippleContainer=this.$.sliderKnob;return _.JIJ._createRipple.call(this)},
_focusedChanged:function(a){a&&this.ensureRipple();this.hasRipple()&&(this._ripple.style.display=a?"":"none",this._ripple.holdDown=a)}});var bNf;var hGG;var NF=null,VPf=function(){};
_.Z=VPf.prototype;_.Z.fit=function(){};
_.Z._discoverInfo=function(){};
_.Z.resetFit=function(){};
_.Z.refit=function(){};
_.Z.position=function(){};
_.Z.constrain=function(){};
_.Z._sizeDimension=function(){};
_.Z.__sizeDimension=function(){};
_.Z.center=function(){};
_.Z.__getNormalizedRect=function(){};
_.Z.__getOffscreenArea=function(){};
_.Z.__getPosition=function(){};
_.Z.notifyResize=function(){};
_.Z.assignParentResizable=function(){};
_.Z.stopResizeNotificationsFor=function(){};
_.Z._subscribeIronResize=function(){};
_.Z._unsubscribeIronResize=function(){};
_.Z.resizerShouldNotify=function(){};
_.Z._onDescendantIronResize=function(){};
_.Z._fireResize=function(){};
_.Z._onIronRequestResizeNotifications=function(){};
_.Z._parentResizableChanged=function(){};
_.Z._notifyDescendant=function(){};
_.Z._requestResizeNotifications=function(){};
_.Z._findParent=function(){};
_.Z.toggle=function(){};
_.Z.open=function(){};
_.Z.close=function(){};
_.Z.cancel=function(){};
_.Z.invalidateTabbables=function(){};
_.Z._ensureSetup=function(){};
_.Z._canceledChanged=function(){};
_.Z._withBackdropChanged=function(){};
_.Z._prepareRenderOpened=function(){};
_.Z._finishRenderOpened=function(){};
_.Z._finishRenderClosed=function(){};
_.Z._preparePositioning=function(){};
_.Z._finishPositioning=function(){};
_.Z._applyFocus=function(){};
_.Z._onCaptureClick=function(){};
_.Z._onCaptureFocus=function(){};
_.Z._onCaptureEsc=function(){};
_.Z._onCaptureTab=function(){};
_.Z._onIronResize=function(){};
_.Z._onNodesChange=function(){};
_.Z.__ensureFirstLastFocusables=function(){};
_.Z.__openedChanged=function(){};
_.Z.__deraf=function(){};
_.Z.__updateScrollObservers=function(){};
_.Z.__addScrollListeners=function(){};
_.Z.__removeScrollListeners=function(){};
_.Z.__isValidScrollAction=function(){};
_.Z.__onCaptureScroll=function(){};
_.Z.__saveScrollPosition=function(){};
_.Z.__restoreScrollPosition=function(){};
_.Z._setCanceled=function(){};
VPf=_.vK({_template:function(){if(hGG!==void 0)return hGG;var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:tp-yt-paper-toast--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,third_party.javascript.youtube_components.tp_yt_paper_toast.tp.yt.paper.toast.css.js--\x3e<span id="label" class="style-scope tp-yt-paper-toast">{{text}}</span>\n<slot class="style-scope tp-yt-paper-toast"></slot>\n');
a.content.insertBefore(_.w().content.cloneNode(!0),a.content.firstChild);var z=a.content,I=z.insertBefore;bNf===void 0&&(bNf=document.createElement("template"));var J=bNf;I.call(z,J.content.cloneNode(!0),a.content.firstChild);return hGG=a},
is:"tp-yt-paper-toast",behaviors:[_.Mb],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(){_.S$._warn("`visible` is deprecated, use `opened` instead");return this.opened},get _canAutoClose(){return this.duration>0&&this.duration!==Infinity},created:function(){this._autoClose=null;_.p$.requestAvailability()},
show:function(a){typeof a=="string"&&(a={text:a});for(var z in a)z.indexOf("_")===0?_.S$._warn('The property "'+z+'" is private and was not set.'):z in this?this[z]=a[z]:_.S$._warn('The property "'+z+'" is not valid.');this.open()},
hide:function(){this.close()},
isOpened:function(){return this.opened},
__onTransitionEnd:function(a){a&&a.target===this&&a.propertyName==="opacity"&&(this.opened?this._finishRenderOpened():this._finishRenderClosed())},
_openedChanged:function(){this._autoClose!==null&&(this.cancelAsync(this._autoClose),this._autoClose=null);this.opened?(NF&&NF!==this&&NF.close(),NF=this,this._fireIronAnnounce(),this._canAutoClose&&(this._autoClose=this.async(this.close,this.duration))):NF===this&&(NF=null);_.kE._openedChanged.apply(this,arguments)},
_onLabelChanged:function(){this.opened&&this.announceLabelUpdates&&this._fireIronAnnounce()},
_renderOpened:function(){this.classList.add("paper-toast-open")},
_renderClosed:function(){this.classList.remove("paper-toast-open")},
_onFitIntoChanged:function(a){this.positionTarget=a},
_fireIronAnnounce:function(){this.noIronAnnounce||this.fire("iron-announce",{text:this.label||this.text})}});var QDz=new _.jv("disablePersonalizationAction");var Ice=new _.jv("showDmaConsentFlowCommand");var JEY=new _.jv("showMmgNoticeCommand");var S4Z=new _.jv("saveConsentAction");var iN0=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.GY(a)};
_.b(iN0,_.ju);var xsM=_.oPx(iN0);var voV=new _.jv("updateTopbarAvatarAction");var GcZ=new _.jv("channelHandleValidationResultRenderer");var $sZ=new _.jv("generateHandleFromNameResultRenderer");var Xwf=new _.jv("channelHandleInputRenderer");var TrG=new _.jv("copyLinkRenderer");var dsV=new _.jv("timedCommand");var WPZ=new _.jv("clearCookieAction");var oo0=new _.jv("getMultiPageMenuAction");var Usz=new _.jv("addToGuideSectionAction"),DsV=new _.jv("removeFromGuideSectionAction");var RGf=new _.jv("updateNotificationsUnseenCountAction");var LP4=new _.jv("resetChannelUnreadCountCommand");var lGG=new _.jv("resetSubscriptionsUnreadDotCommand");var pwZ=new _.jv("selectLanguageCommand");var s5f=new _.jv("sendFeedbackAction");var wwz=new _.jv("uploadImageToScottyCommand");var ms4=new _.jv("registerPromoCommand");var yKZ=new _.jv("setPushNotificationsEnabledCommand");var kcM=new _.jv("desktopTopbarRenderer");var MPG=new _.jv("surveyFollowUpRenderer");var cKi=new _.jv("handlesClaimingRadioOptionRenderer");var Y4Z=new _.jv("hotkeyDialogRenderer");var q4E=new _.jv("modifyReportFormCommand");var eG0=new _.jv("accountLinkCommand");var as4=new _.jv("accountUnlinkCommand");var jTz=new _.jv("logAccountLinkingEventCommand");var zRZ=new _.jv("guideCollapsibleEntryRenderer");var IsE=new _.jv("guideDownloadsEntryRenderer");var tB=new _.jv("guideEntryRenderer");var JtV=new _.jv("getLocationCommand");var rtf=new _.jv("locationCollectionCommand");var P4i=new _.jv("storiesItemViewModel");var Z_Z=new _.jv("addToRemoteQueueAction");var C4G=new _.jv("insertInRemoteQueueAction");var N7z=new _.jv("removeFromRemoteQueueAction");var tYe=new _.jv("notificationRenderer");var Lf0=new _.jv("localWatchHistoryCommand");var uWE=new _.jv("pdgBuyFlowHeaderRenderer");var EuZ=new _.jv("pdgColorSliderRenderer");var B7Y=new _.jv("pdgCommentOptionRenderer");var guZ=new _.jv("pdgCommentPreviewRenderer");var O_E=new _.jv("superVodSelectableItemButtonRenderer");var fsG=new _.jv("switchButtonRenderer");var Ati=new _.jv("upsellDialogRenderer");var sTY=new _.jv("feedbackQuestionRenderer"),nuE=new _.jv("feedbackOptionRenderer");var KJ0=new _.jv("sponsorshipsTierRenderer"),FJG=new _.jv("sponsorshipsPromotionChannelRenderer");var H_f=new _.jv("simpleSurveyMessageRenderer");var sKe=new _.jv("invokeInstrumentManagerAction");var b_Z=new _.jv("logYpcFlowDismissCommand");var hRV=new _.jv("logYpcFlowStartCommand");var VY0=new _.jv("unlimitedCreateFamilyEndpoint");var QTM=new _.jv("iconBadgeRenderer");var lAZ=new _.jv("collaborativePlaylistVisibilityValidationRule");var STE=function(a){_.AH.call(this,"channelMessage");this.message=a};
_.b(STE,_.AH);var i_Y=function(a){_.AH.call(this,"channelError");this.error=a};
_.b(i_Y,_.AH);var xTE={AUTOPLAY:"atp",SKA_SKIPPABLE_ADS:"ska",QUEUE_SUPPORT:"que",MULTI_USER_SESSIONS:"mus",SINGLE_USER_SESSIONS:"sus",HAS_DISPLAY:"dsp",SCREEN_EXTENDED_QUEUE_SUPPORT:"seq",MIC:"mic",DPAD:"dpa",MULTISTATE_LOOP_MODE:"mlm",DISCONNECT_STRATEGY_DEFFERRED_TO_RECEIVER:"dsdtr",NATIVE_BROWSE:"ntb",VARIABLE_SPEED:"vsp",ENABLE_VIDEO_SOURCE_CLIENT_NAME:"scn",RECEIVER_PLAYLIST_EXPANSION:"rpe",DISABLE_CURRENTINDEX_IN_NOWPLAYING:"dcn",DISABLE_CURRENTINDEX_IN_PLAYLISTMODIFIED:"dcp",PAUSE_AT_START:"pas",DISABLE_QUEUE_FOR_RECEIVER_ONLY_SESSION:"drq",
ONUSERACTIVITY_POLLING_FREQUENCY:"opf",ENABLE_LOUNGE_STATUS_PLAYBACK:"els",ENABLE_IDENTITY_SWITCH_TO_GUEST:"isg",SERVER_QUEUES:"svq",MULTIVIEW_PLAYBACK:"mvp",ACTIVE_DEVICE_STORE_WRITES:"ads",STREAM_TRANSFER_CREATE_PLAYLIST:"stcp",SHORTS_ACTIVE_DEVICE_STORE_WRITES:"sads",DISABLE_LOGGED_OUT_CASTING:"dloc",DUAL_CTT_WRITES:"dcw",ACTIVE_STREAM_WRITES_FOR_CONNECTED_REMOTES:"asw",ACTIVE_PLAYBACK_WRITES_FOR_CONNECTED_REMOTES:"apw",PUNCTUAL_WATCH:"pcw",IP_VALIDATION:"ipv"},vui={UNKNOWN_THEME:"u",CLASSIC:"cl",
KIDS:"k",INSTANT:"i",CREATOR:"cr",MUSIC:"m",GAMING:"g",UNPLUGGED:"up"},GlZ={AD_PLAYING:"adPlaying",ON_AD_STATE_CHANGE:"onAdStateChange"},$TY={NOW_PLAYING:"nowPlaying",ON_STATE_CHANGE:"onStateChange",AD_PLAYING:"adPlaying",ON_AD_STATE_CHANGE:"onAdStateChange",NOW_PLAYING_SHORTS:"nowPlayingShorts",ON_SHORTS_STATE_CHANGE:"onShortsStateChange"},Xci={NOW_PLAYING_SHORTS:"nowPlayingShorts",ON_SHORTS_STATE_CHANGE:"onShortsStateChange"};var uU=function(a){this.name=this.id="";this.clientName="UNKNOWN_INTERFACE";this.app="";this.type="REMOTE_CONTROL";this.ownerObfuscatedGaiaId=this.obfuscatedGaiaId=this.avatar=this.username="";this.connected=!1;this.capabilities=new Set;this.compatibleSenderThemes=new Set;this.experiments=new Set;this.theme="u";new _.BY;this.localChannelEncryptionKey=this.remoteControllerUrl="";this.deviceContext=void 0;this.model=this.brand="";this.year=0;this.chipset=this.osVersion=this.os="";this.mdxDialServerType=
"MDX_DIAL_SERVER_TYPE_UNKNOWN";this.pairingType="unknown";this.castUserId=void 0;a&&(this.id=a.id||a.name,this.name=a.name,this.clientName=a.clientName?a.clientName.toUpperCase():"UNKNOWN_INTERFACE",this.app=a.app,this.type=a.type||"REMOTE_CONTROL",this.username=a.user||"",this.avatar=a.userAvatarUri||"",this.obfuscatedGaiaId=a.obfuscatedGaiaId||"",this.ownerObfuscatedGaiaId=a.ownerObfuscatedGaiaId||"",this.castUserId=a.castUserId||"",this.theme=a.theme||"u",T7Y(this,a.capabilities||""),dT0(this,
a.compatibleSenderThemes||""),WJz(this,a.experiments||""),this.remoteControllerUrl=a.remoteControllerUrl||"",this.localChannelEncryptionKey=a.localChannelEncryptionKey||"",this.deviceContext=a.deviceContext,this.brand=a.brand||"",this.model=a.model||"",this.year=a.year||0,this.os=a.os||"",this.osVersion=a.osVersion||"",this.chipset=a.chipset||"",this.mdxDialServerType=a.mdxDialServerType||"MDX_DIAL_SERVER_TYPE_UNKNOWN",this.pairingType=a.pairingType||"unknown",a=a.deviceInfo)&&(a=JSON.parse(a),this.brand=
a.brand||"",this.model=a.model||"",this.year=a.year||0,this.os=a.os||"",this.osVersion=a.osVersion||"",this.chipset=a.chipset||"",this.clientName=a.clientName?a.clientName.toUpperCase():"UNKNOWN_INTERFACE",this.mdxDialServerType=a.mdxDialServerType||"MDX_DIAL_SERVER_TYPE_UNKNOWN")};
uU.prototype.copy=function(){var a={id:this.id,name:this.name,app:this.app,type:this.type,user:this.username,userAvatarUri:this.avatar,obfuscatedGaiaId:this.obfuscatedGaiaId,ownerObfuscatedGaiaId:this.ownerObfuscatedGaiaId,theme:this.theme,capabilities:Array.from(this.capabilities.values()).join(","),compatibleSenderThemes:Array.from(this.compatibleSenderThemes.values()).join(","),experiments:Array.from(this.experiments.values()).join(","),pairingType:this.pairingType};this.brand&&(a.brand=this.brand);
this.model&&(a.model=this.model);this.year&&(a.year=this.year);this.os&&(a.os=this.os);this.osVersion&&(a.osVersion=this.osVersion);this.chipset&&(a.chipset=this.chipset);this.clientName!=="UNKNOWN_INTERFACE"&&(a.clientName=this.clientName);this.mdxDialServerType!=="MDX_DIAL_SERVER_TYPE_UNKNOWN"&&(a.mdxDialServerType=this.mdxDialServerType);a=new uU(a);a.connected=this.connected;a.remoteControllerUrl=this.remoteControllerUrl;a.localChannelEncryptionKey=this.localChannelEncryptionKey;a.deviceContext=
this.deviceContext;a.castUserId=this.castUserId;return a};
uU.prototype.equals=function(a){return a?this.id==a.id:!1};
var T7Y=function(a,z){a.capabilities.clear();_.Z8(z.split(","),_.nt(_.x8.contains,xTE)).forEach(function(I){a.capabilities.add(I)})},dT0=function(a,z){a.compatibleSenderThemes.clear();
_.Z8(z.split(","),_.nt(_.x8.contains,vui)).forEach(function(I){a.compatibleSenderThemes.add(I)})},WJz=function(a,z){a.experiments.clear();
z.split(",").forEach(function(I){a.experiments.add(I)})};var ouZ=function(a,z){this.action=a;this.params=z||{}};_.rL(OHG,_.FC);_.Z=OHG.prototype;_.Z.JSC$19591_onTick_=function(){this.JSC$19589_interval_=Math.min(3E5,this.JSC$19589_interval_*2);this.JSC$19591_listener_();this.nextTickTime_&&this.start()};
_.Z.start=function(){var a=this.JSC$19589_interval_+15E3*Math.random(),z=this.delay_;z.isActive()||z.start(a);this.nextTickTime_=Date.now()+a};
_.Z.stop=function(){this.delay_.stop();this.nextTickTime_=0};
_.Z.isActive=function(){return this.delay_.isActive()};
_.Z.reset=function(){this.delay_.stop();this.JSC$19589_interval_=5E3};_.rL(yQ,uSZ);_.Z=yQ.prototype;_.Z.subscribe=function(a,z,I){return this.pubsub_.subscribe(a,z,I)};
_.Z.unsubscribe=function(a,z,I){return this.pubsub_.unsubscribe(a,z,I)};
_.Z.unsubscribeByKey=function(a){return this.pubsub_.unsubscribeByKey(a)};
_.Z.publish=function(a,z){return this.pubsub_.publish.apply(this.pubsub_,arguments)};
_.Z.dispose=function(){this.JSC$19592_disposed_||(this.JSC$19592_disposed_=!0,_.Y8(this.pubsub_),this.disconnect(),_.Y8(this.reconnectTimer_),this.reconnectTimer_=null,this.JSC$19592_getXsrfToken_=function(){return""},this.getAuthorizationHeader_=function(){return _.uI({})})};
_.Z.isDisposed=function(){return this.JSC$19592_disposed_};
_.Z.connect=function(a,z,I){var J=this,r,P,N,u;return _.t(function(E){if(E.nextAddress==1)return _.fu(E,2),J.useAsyncBrowserChannelHandler_?E.yield(J.connectPromise_,2):E.jumpTo(2);_.Ok(E);if(J.JSC$19592_disposed_||J.JSC$19592_channel_&&J.JSC$19592_channel_.getState()==2)return E.return();J.sCookie_="";J.reconnectTimer_.stop();J.connectionParams_=a||null;J.connectUi_=z||0;r=J.JSC$19592_pathPrefix_+"/test";P=J.JSC$19592_pathPrefix_+"/bind";N=new PB(I?I.firstTestResults:null,I?I.secondTestResults:null,
J.enableAsyncTest_);if(u=J.JSC$19592_channel_)u.handler_=null;N.handler_=J;J.JSC$19592_channel_=N;if(J.useAsyncBrowserChannelHandler_)return J.connectPromise_=UTG(J).then(function(){return DTZ(J,r,P,u,I)}),E.return(J.connectPromise_.then(function(){J.connectPromise_=_.uI()}));
DTZ(J,r,P,u,I);return _.Ay(E,0)})};
var DTZ=function(a,z,I,J,r){RRE(a);if(a.JSC$19592_channel_){var P=_.Xw("ID_TOKEN"),N=a.JSC$19592_channel_.JSC$19544_extraHeaders_||{};P?N["x-youtube-identity-token"]=P:delete N["x-youtube-identity-token"];a.JSC$19592_channel_.JSC$19544_extraHeaders_=N}LJi(a);J?(J.getState(),a.JSC$19592_channel_.connect(z,I,a.defaultQueryParams_,J.sid_,J.JSC$19544_lastArrayId_)):r?a.JSC$19592_channel_.connect(z,I,a.defaultQueryParams_,r.sessionId,r.arrayId):a.JSC$19592_channel_.connect(z,I,a.defaultQueryParams_)};
yQ.prototype.disconnect=function(a){try{this.useAsyncBrowserChannelHandler_&&(this.connectPromise_.cancel(),this.connectPromise_=_.uI())}finally{this.disconnectUi_=a||0,this.reconnectTimer_&&this.reconnectTimer_.stop(),RRE(this),this.JSC$19592_channel_&&(this.JSC$19592_channel_.getState()==3&&rKE(this.JSC$19592_channel_),this.JSC$19592_channel_.disconnect()),this.disconnectUi_=0}};
yQ.prototype.sendMessage=function(a,z){var I=this,J;return _.t(function(r){switch(r.nextAddress){case 1:_.fu(r,2);if(!I.useAsyncBrowserChannelHandler_){r.jumpTo(2);break}return r.yield(I.connectPromise_,2);case 2:_.Ok(r);if(I.JSC$19592_disposed_)return r.return();J={_sc:a};z&&_.x8.extend(J,z);if(I.reconnectTimer_.isActive()||(I.JSC$19592_channel_?I.JSC$19592_channel_.getState():0)==2){I.JSC$19592_pendingMessages_.push(J);r.jumpTo(6);break}if(!I.isChannelOpened()){r.jumpTo(6);break}_.fu(r,8);if(!I.useAsyncBrowserChannelHandler_||
lsZ(I,a)){r.jumpTo(8);break}return r.yield(UTG(I),8);case 8:_.Ok(r,0,0,1);I.isChannelOpened()&&(lsZ(I,a)||LJi(I),RRE(I),JKV(I.JSC$19592_channel_,J));_.Ay(r,6,1);break;case 6:_.Ay(r,0)}})};
var lsZ=function(a,z){return a.enableMdxAuthForConnectionOnly_?!0:a.disableMdxAuthForAdMessages_?Object.values(GlZ).includes(z):a.disableMdxAuthForNonPlaybackMessages_?!Object.values($TY).includes(z):a.disableMdxAuthForShortsMessages_?Object.values(Xci).includes(z):!1};
yQ.prototype.JSC$19551_channelOpened=function(){this.reconnectTimer_.reset();this.connectionParams_=null;this.connectUi_=0;if(this.JSC$19592_pendingMessages_.length)if(this.useAsyncBrowserChannelHandler_)pcE(this);else{var a=this.JSC$19592_pendingMessages_;this.JSC$19592_pendingMessages_=[];var z=a.length;LJi(this);wcZ(this,a,z);mTZ(this)}else mTZ(this)};
var pcE=function(a){var z,I;_.t(function(J){if(J.nextAddress==1)return _.fu(J,2),J.yield(UTG(a),2);_.Ok(J);z=a.JSC$19592_pendingMessages_;a.JSC$19592_pendingMessages_=[];I=z.length;wcZ(a,z,I);mTZ(a);return _.Ay(J,0)})},wcZ=function(a,z,I){for(var J=0;J<I;++J)JKV(a.JSC$19592_channel_,z[J]);
mTZ(a)},mTZ=function(a){a.publish("handlerOpened");
a.JSC$19592_channelOpenedCounter.increment("BROWSER_CHANNEL")};
_.Z=yQ.prototype;_.Z.JSC$19551_channelError=function(a){var z=a==2&&this.JSC$19592_channel_.JSC$19544_lastStatusCode_==401;a==4||z||this.reconnectTimer_.start();this.publish("handlerError",a,z);z=Object.keys(PYf).find(function(I){return PYf[I]===a});
this.JSC$19592_channelErrorCounter.increment("BROWSER_CHANNEL",z!=null?z:"UNKNOWN")};
_.Z.JSC$19551_channelClosed=function(a,z){if(!this.reconnectTimer_.isActive())this.publish("handlerClosed");else if(z)for(var I=z.length,J=0;J<I;++J){var r=z[J].map;r&&this.JSC$19592_pendingMessages_.push(r)}this.JSC$19592_channelClosedCounter.increment("BROWSER_CHANNEL");a&&this.pendingMapsOnClosedCounter.JSC$9890_streamzService.JSC$9745_incrementCounterBy("/client_streamz/youtube/living_room/mdx/browser_channel/pending_maps",a.length);z&&this.undeliveredMapsOnClosedCounter.JSC$9893_streamzService.JSC$9745_incrementCounterBy("/client_streamz/youtube/living_room/mdx/browser_channel/undelivered_maps",
z.length)};
_.Z.JSC$19551_channelSuccess=function(a,z){z!=null&&a!=null&&this.channelMessageSentCounter.increment()};
_.Z.JSC$19551_getAdditionalParams=function(){var a={v:2};this.sCookie_&&(a.gsessionid=this.sCookie_);this.connectUi_!=0&&(a.ui=""+this.connectUi_);this.disconnectUi_!=0&&(a.ui=""+this.disconnectUi_);this.connectionParams_&&_.x8.extend(a,this.connectionParams_);return a};
_.Z.JSC$19551_channelHandleArray=function(a){a[0]=="S"?this.sCookie_=a[1]:a[0]=="gracefulReconnect"?(this.reconnectTimer_.start(),this.JSC$19592_channel_.disconnect()):this.publish("handlerMessage",new ouZ(a[0],a[1]));this.JSC$19592_channelMessageReceivedCounter.increment("BROWSER_CHANNEL")};
_.Z.isChannelOpened=function(){return!!this.JSC$19592_channel_&&this.JSC$19592_channel_.getState()==3};
var RRE=function(a){if(a.JSC$19592_channel_){var z=a.JSC$19592_getXsrfToken_(),I=a.JSC$19592_channel_.JSC$19544_extraHeaders_||{};z?I["x-youtube-lounge-xsrf-token"]=z:delete I["x-youtube-lounge-xsrf-token"];a.JSC$19592_channel_.JSC$19544_extraHeaders_=I}},UTG=function(a){if(a.enableAsyncMdxLibraryWithoutAuthHeaderFetch_)return _.uI();
if(!a.enableCachedUpdateAuthorizationHeader_)return ytM(a);a.updateAuthorizationHeaderPromise_===null&&(a.updateAuthorizationHeaderPromise_=ytM(a));return a.updateAuthorizationHeaderPromise_},ytM=function(a){return _.QD(a.getAuthorizationHeader_().then(function(z){klY(a,z)}).thenCatch(function(){}),function(){a.updateAuthorizationHeaderPromise_=null})},klY=function(a,z){if(a.JSC$19592_channel_){var I=a.JSC$19592_channel_.JSC$19544_extraHeaders_||{};
z&&Object.keys(z).length>0?I=Object.assign({},I,z):delete I.Authorization;a.JSC$19592_channel_.JSC$19544_extraHeaders_=I}},LJi=function(a){a.getAuthorizationHeaderSync_&&!a.useAsyncBrowserChannelHandler_&&klY(a,a.getAuthorizationHeaderSync_())};
_.Z=yQ.prototype;_.Z.setLoungeToken=function(a){(this.defaultQueryParams_.loungeIdToken=a)||this.reconnectTimer_.stop();if(this.enableLoungeTokenRefresh_&&this.JSC$19592_channel_){var z=this.JSC$19592_channel_.JSC$19544_extraHeaders_||{};a?z["X-YouTube-LoungeId-Token"]=a:delete z["X-YouTube-LoungeId-Token"];this.JSC$19592_channel_.JSC$19544_extraHeaders_=z}};
_.Z.getDeviceId=function(){return this.defaultQueryParams_.id};
_.Z.getReconnectTimeout=function(){return this.reconnectTimer_.isActive()?this.reconnectTimer_.nextTickTime_-Date.now():NaN};
_.Z.reconnect=function(){var a=this.reconnectTimer_;a.delay_.fire();a.start()};
_.Z.safeReconnect_=function(){var a=this.JSC$19592_channel_,z=0;a.JSC$19544_backChannelRequest_&&z++;a.forwardChannelRequest_&&z++;z==0&&this.connect(this.connectionParams_,this.connectUi_)};var aa=function(a,z){var I=a.basePath;a.supportCors&&(I=a.scheme+"://"+a.domain+a.port+a.basePath);return _.yO(I+z,{})};
kH.prototype.sendRequest=function(a,z,I,J,r,P,N){a={format:P?"RAW":"JSON",method:a,context:this,timeout:5E3,withCredentials:!!N,onSuccess:_.nt(this.JSC$19597_onSuccess_,J,!P),onError:_.nt(this.onError_,r),onTimeout:_.nt(this.JSC$19597_onTimeout_,r)};I&&(a.postParams=I,a.headers={"Content-Type":"application/x-www-form-urlencoded"});return _.Ez(z,a)};
kH.prototype.JSC$19597_onSuccess_=function(a,z,I,J){z?a(J):a({text:I.responseText})};
kH.prototype.onError_=function(a,z){a(Error("Fk`"+z.status))};
kH.prototype.JSC$19597_onTimeout_=function(a){a(Error("Gk"))};var c$=function(a,z){return!!z&&(a.id==z||a.uuid==z)},MYi=function(a){return{name:a.name,
screenId:a.id,loungeToken:a.token,dialId:a.uuid,screenIdType:a.idType}},ct4=function(a){return new Mx(a)},YTf=function(a){return Array.isArray(a)?_.vH(a,ct4):[]},VcE=function(a){if(!a)return"null";
var z=a.token?".."+a.token.slice(-6):"-",I=a.uuid?".."+a.uuid.slice(-6):"-";return'{name:"'+a.name+'",id:'+a.id.substr(0,6)+"..,token:"+(z+",uuid:"+I+",idType:"+a.idType+"}")},eVf=function(a){return Array.isArray(a)?"["+_.vH(a,VcE).join(",")+"]":"null"};var $1Z="",eD=null;var L1Y=function(a,z){_.HV.call(this);var I=this;this.handler=a();this.handler.subscribe("handlerOpened",this.JSC$19604_onOpened,this);this.handler.subscribe("handlerClosed",this.onClosed,this);this.handler.subscribe("handlerError",function(J,r){I.onError(r)});
this.handler.subscribe("handlerMessage",this.onMessage,this);this.currentScreenId=z};
_.b(L1Y,_.HV);_.Z=L1Y.prototype;_.Z.connect=function(a,z,I){this.handler.connect(a,z,I)};
_.Z.disconnect=function(a){this.handler.disconnect(a)};
_.Z.reconnect=function(){this.handler.reconnect()};
_.Z.getDeviceId=function(){return this.handler.getDeviceId()};
_.Z.getReconnectTimeout=function(){return this.handler.getReconnectTimeout()};
_.Z.isChannelOpened=function(){return this.handler.isChannelOpened()};
_.Z.JSC$19604_onOpened=function(){this.dispatchEvent("channelOpened");var a=this.handler,z=this.currentScreenId;_.s4("yt-remote-session-browser-channel",{firstTestResults:[""],secondTestResults:!a.JSC$19592_channel_.useChunked_,sessionId:a.JSC$19592_channel_.sid_,arrayId:a.JSC$19592_channel_.JSC$19544_lastArrayId_});_.s4("yt-remote-session-screen-id",z);a=QXz();z=SMz();_.Um(a,z)||a.push(z);GrE(a);vhY()};
_.Z.onClosed=function(){this.dispatchEvent("channelClosed")};
_.Z.onMessage=function(a){this.dispatchEvent(new STE(a))};
_.Z.onError=function(a){this.dispatchEvent(new i_Y(a?1:0))};
_.Z.sendMessage=function(a,z){this.handler.sendMessage(a,z)};
_.Z.setLoungeToken=function(a){this.handler.setLoungeToken(a)};
_.Z.dispose=function(){this.handler.dispose()};var RVz=function(a,z,I){var J=this;I=I===void 0?function(){return""}:I;
var r=r===void 0?new $gZ:r;var P=P===void 0?new _.gM:P;this.pathPrefix=a;this.defaultQueryParams=z;this.getXsrfToken=I;this.JSC$19607_pubsub=P;this.connectionParams=null;this.disconnectUi=this.connectUi=0;this.channel=null;this.channelState=0;this.reconnectTimer=new OHG(function(){var N;((N=J.channel)==null?void 0:Nne((new dgG(N,N.JSC$19515_channel_)).JSC$19525_channel_.forwardChannelRequestPool_))===0&&J.connect(J.connectionParams,J.connectUi)});
this.webChannelMessageHeaders={};this.webChannelMessageUrlParams={};this.JSC$19607_disposed=!1;this.nonAckedMessagesOnChannelClosed=[];this.lastStatusCode=void 0;this.JSC$19607_channelOpenedCounter=new fae;this.JSC$19607_channelClosedCounter=new AvV;this.JSC$19607_channelMessageReceivedCounter=new nhf;this.JSC$19607_channelErrorCounter=new K1f};
RVz.prototype.connect=function(a,z){a=a===void 0?{}:a;z=z===void 0?0:z;this.channelState!==2&&(this.reconnectTimer.stop(),this.connectionParams=a,this.connectUi=z,qTz(this),(a=_.Xw("ID_TOKEN"))?this.webChannelMessageHeaders["x-youtube-identity-token"]=a:delete this.webChannelMessageHeaders["x-youtube-identity-token"],this.defaultQueryParams&&(this.webChannelMessageUrlParams.device=this.defaultQueryParams.device,this.webChannelMessageUrlParams.name=this.defaultQueryParams.name,this.webChannelMessageUrlParams.app=
this.defaultQueryParams.app,this.webChannelMessageUrlParams.id=this.defaultQueryParams.id,this.defaultQueryParams.mdxVersion&&(this.webChannelMessageUrlParams.mdxVersion=""+this.defaultQueryParams.mdxVersion),this.defaultQueryParams.theme&&(this.webChannelMessageUrlParams.theme=this.defaultQueryParams.theme),this.defaultQueryParams.capabilities&&(this.webChannelMessageUrlParams.capabilities=this.defaultQueryParams.capabilities),this.defaultQueryParams.cst&&(this.webChannelMessageUrlParams.cst=this.defaultQueryParams.cst),
this.defaultQueryParams.authuser&&(this.webChannelMessageUrlParams.authuser=this.defaultQueryParams.authuser),this.defaultQueryParams.pageId&&(this.webChannelMessageUrlParams.pageId=this.defaultQueryParams.pageId)),this.connectUi!==0?this.webChannelMessageUrlParams.ui=""+this.connectUi:delete this.webChannelMessageUrlParams.ui,Object.assign(this.webChannelMessageUrlParams,this.connectionParams),this.channel=new e3(this.pathPrefix,{httpSessionIdParam:"gsessionid",messageHeaders:this.webChannelMessageHeaders,
messageUrlParams:this.webChannelMessageUrlParams}),this.channel.open(),this.channelState=2,eR4(this))};
var eR4=function(a){_.Sg(a.channel,"w",function(){a.channelState=3;a.reconnectTimer.reset();a.connectionParams=null;a.connectUi=0;for(var z=_.C(a.nonAckedMessagesOnChannelClosed),I=z.next();!I.done;I=z.next())I=I.value,a.channel&&a.channel.send(I);a.nonAckedMessagesOnChannelClosed=[];a.publish("webChannelOpened");a.JSC$19607_channelOpenedCounter.increment("WEB_CHANNEL")});
_.Sg(a.channel,"x",function(){a.channelState=0;a.reconnectTimer.isActive()||a.publish("webChannelClosed");var z,I=(z=a.channel)==null?void 0:WU4(new dgG(z,z.JSC$19515_channel_));I&&(a.nonAckedMessagesOnChannelClosed=[].concat(_.ih(I)));a.JSC$19607_channelClosedCounter.increment("WEB_CHANNEL")});
_.Sg(a.channel,"z",function(z){var I=z.data;I[0]==="gracefulReconnect"?(a.reconnectTimer.start(),a.channel&&a.channel.close()):a.publish("webChannelMessage",new ouZ(I[0],I[1]));a.lastStatusCode=z.statusCode;a.JSC$19607_channelMessageReceivedCounter.increment("WEB_CHANNEL")});
_.Sg(a.channel,"y",function(){a.lastStatusCode===401||a.reconnectTimer.start();a.publish("webChannelError");a.JSC$19607_channelErrorCounter.increment("WEB_CHANNEL","")})};
_.Z=RVz.prototype;_.Z.disconnect=function(a){this.disconnectUi=a===void 0?0:a;this.reconnectTimer.stop();qTz(this);this.channel&&(this.disconnectUi!==0?this.webChannelMessageUrlParams.ui=""+this.disconnectUi:delete this.webChannelMessageUrlParams.ui,this.channel.close());this.disconnectUi=0};
_.Z.getReconnectTimeout=function(){return this.reconnectTimer.isActive()?this.reconnectTimer.nextTickTime_-Date.now():NaN};
_.Z.reconnect=function(){var a=this.reconnectTimer;a.delay_.fire();a.start()};
_.Z.sendMessage=function(a,z){this.channel&&(qTz(this),a=Object.assign({},{_sc:a},z),this.channel.send(a))};
_.Z.setLoungeToken=function(a){a||this.reconnectTimer.stop();a?this.webChannelMessageHeaders["X-YouTube-LoungeId-Token"]=a:delete this.webChannelMessageHeaders["X-YouTube-LoungeId-Token"]};
var qTz=function(a){var z=a.getXsrfToken();z?a.webChannelMessageHeaders["x-youtube-lounge-xsrf-token"]=z:delete a.webChannelMessageHeaders["x-youtube-lounge-xsrf-token"]};
_.Z=RVz.prototype;_.Z.getDeviceId=function(){return this.defaultQueryParams?this.defaultQueryParams.id:""};
_.Z.publish=function(a){return this.JSC$19607_pubsub.publish.apply(this.JSC$19607_pubsub,[a].concat(_.ih(_.dO.apply(1,arguments))))};
_.Z.subscribe=function(a,z,I){return this.JSC$19607_pubsub.subscribe(a,z,I)};
_.Z.unsubscribe=function(a,z,I){return this.JSC$19607_pubsub.unsubscribe(a,z,I)};
_.Z.unsubscribeByKey=function(a){return this.JSC$19607_pubsub.unsubscribeByKey(a)};
_.Z.dispose=function(){this.JSC$19607_disposed||(this.JSC$19607_disposed=!0,_.Y8(this.JSC$19607_pubsub),this.disconnect(),_.Y8(this.reconnectTimer),this.getXsrfToken=function(){return""})};
_.Z.isDisposed=function(){return this.JSC$19607_disposed};var D1Z=function(a){_.HV.call(this);this.webChannelService=a();this.webChannelService.subscribe("webChannelOpened",this.JSC$19615_onOpened,this);this.webChannelService.subscribe("webChannelClosed",this.onClosed,this);this.webChannelService.subscribe("webChannelError",this.onError,this);this.webChannelService.subscribe("webChannelMessage",this.onMessage,this)};
_.b(D1Z,_.HV);_.Z=D1Z.prototype;_.Z.connect=function(a,z){this.webChannelService.connect(a,z)};
_.Z.disconnect=function(a){this.webChannelService.disconnect(a)};
_.Z.reconnect=function(){this.webChannelService.reconnect()};
_.Z.getDeviceId=function(){return this.webChannelService.getDeviceId()};
_.Z.getReconnectTimeout=function(){return this.webChannelService.getReconnectTimeout()};
_.Z.isChannelOpened=function(){return this.webChannelService.channelState===3};
_.Z.JSC$19615_onOpened=function(){this.dispatchEvent("channelOpened")};
_.Z.onClosed=function(){this.dispatchEvent("channelClosed")};
_.Z.onMessage=function(a){this.dispatchEvent(new STE(a))};
_.Z.onError=function(){this.dispatchEvent(new i_Y(this.webChannelService.lastStatusCode===401?1:0))};
_.Z.sendMessage=function(a,z){this.webChannelService.sendMessage(a,z)};
_.Z.setLoungeToken=function(a){this.webChannelService.setLoungeToken(a)};
_.Z.dispose=function(){this.webChannelService.dispose()};var qMi=Date.now(),jZ=null,cvM=Array(50),JU=-1,YM0=!1;_.rL(r_,_.Ol);r_.prototype.getScreens=function(){return this.screens};
r_.prototype.contains=function(a){return!!Vt0(this.screens,a)};
r_.prototype.get=function(a){return a?YH(this.screens,a):null};
var aeM=function(a,z){var I=a.get(z.uuid)||a.get(z.id);if(I)return a=I.name,I.id=z.id||I.id,I.name=z.name,I.token=z.token,I.uuid=z.uuid||I.uuid,I.name!=a;a.screens.push(z);return!0},jWz=function(a,z){var I=a.screens.length!=z.length;
a.screens=_.Z8(a.screens,function(P){return!!Vt0(z,P)});
for(var J=z.length,r=0;r<J;r++)I=aeM(a,z[r])||I;return I},z1Z=function(a,z){var I=a.screens.length;
a.screens=_.Z8(a.screens,function(J){return!(J||z?!J!=!z?0:J.id==z.id:1)});
return a.screens.length<I};
r_.prototype.info=function(a){zC(this.JSC$19616_logName_,a)};var IeG=function(a,z,I,J,r){_.Ol.call(this);this.JSC$19619_http_=a;this.pairingCode_=z;this.deviceId_=I;this.friendlyName_=J;this.enableShortLivedLoungeToken_=r;this.pollIndex_=0;this.JSC$19619_xhr_=null;this.JSC$19619_timer_=NaN};
_.b(IeG,_.Ol);_.Z=IeG.prototype;_.Z.start=function(){!this.JSC$19619_xhr_&&isNaN(this.JSC$19619_timer_)&&this.poll_()};
_.Z.stop=function(){this.JSC$19619_xhr_&&(this.JSC$19619_xhr_.abort(),this.JSC$19619_xhr_=null);isNaN(this.JSC$19619_timer_)||(_.tP(this.JSC$19619_timer_),this.JSC$19619_timer_=NaN)};
_.Z.disposeInternal=function(){this.stop();_.Ol.prototype.disposeInternal.call(this)};
_.Z.poll_=function(){this.JSC$19619_timer_=NaN;this.JSC$19619_xhr_=_.Ez(aa(this.JSC$19619_http_,"/pairing/get_screen"),{method:"POST",postParams:{pairing_code:this.pairingCode_},timeout:5E3,onSuccess:(0,_.HW)(this.JSC$19621_onSuccess_,this),onError:(0,_.HW)(this.onError_,this),onTimeout:(0,_.HW)(this.JSC$19621_onTimeout_,this)})};
_.Z.JSC$19621_onSuccess_=function(a,z){this.JSC$19619_xhr_=null;a=z.screen||{};a.dialId=this.deviceId_;a.name=this.friendlyName_;z=-1;this.enableShortLivedLoungeToken_&&a.shortLivedLoungeToken&&a.shortLivedLoungeToken.value&&a.shortLivedLoungeToken.refreshIntervalMs&&(a.screenIdType="shortLived",a.loungeToken=a.shortLivedLoungeToken.value,z=a.shortLivedLoungeToken.refreshIntervalMs);this.publish("pairingComplete",new Mx(a),z)};
_.Z.onError_=function(a){this.JSC$19619_xhr_=null;a.status&&a.status==404?this.pollIndex_>=JcY.length?this.publish("pairingFailed",Error("Hk")):(a=JcY[this.pollIndex_],this.JSC$19619_timer_=_.C1((0,_.HW)(this.poll_,this),a),this.pollIndex_++):this.publish("pairingFailed",Error("Ik`"+a.status))};
_.Z.JSC$19621_onTimeout_=function(){this.JSC$19619_xhr_=null;this.publish("pairingFailed",Error("Jk"))};
var JcY=[2E3,2E3,1E3,1E3,1E3,2E3,2E3,5E3,5E3,1E4];_.rL(Z7,r_);_.Z=Z7.prototype;_.Z.start=function(){Pm(this)&&this.publish("screenChange");!_.nN("yt-remote-lounge-token-expiration")&&rcZ(this);_.tP(this.loungeTokenRefreshTimer_);this.loungeTokenRefreshTimer_=_.C1((0,_.HW)(this.start,this),1E4)};
_.Z.add=function(a,z){Pm(this);aeM(this,a);PfZ(this,!1);this.publish("screenChange");z(a);a.token||rcZ(this)};
_.Z.remove=function(a,z){var I=Pm(this);z1Z(this,a)&&(PfZ(this,!1),I=!0);z(a);I&&this.publish("screenChange")};
_.Z.updateName=function(a,z,I,J){var r=Pm(this),P=this.get(a.id);P?(P.name!=z&&(P.name=z,PfZ(this,!1),r=!0),I(a)):J(Error("Kk"));r&&this.publish("screenChange")};
_.Z.disposeInternal=function(){_.tP(this.loungeTokenRefreshTimer_);Z7.superClass_.disposeInternal.call(this)};
var rcZ=function(a){if(a.screens.length){var z=_.vH(a.screens,function(J){return J.id}),I=aa(a.JSC$19623_http_,"/pairing/get_lounge_token_batch");
a.JSC$19623_http_.sendRequest("POST",I,{screen_ids:z.join(",")},(0,_.HW)(a.handleLoungeTokens_,a),(0,_.HW)(a.handleLoungeTokenError_,a))}};
Z7.prototype.handleLoungeTokens_=function(a){Pm(this);var z=this.screens.length;a=a&&a.screens||[];for(var I=a.length,J=0;J<I;++J){var r=a[J],P=this.get(r.screenId);P&&(P.token=r.loungeToken,--z)}PfZ(this,!z);z&&zC(this.JSC$19616_logName_,"Missed "+z+" lounge tokens.")};
Z7.prototype.handleLoungeTokenError_=function(a){zC(this.JSC$19616_logName_,"Requesting lounge tokens failed: "+a)};
var Pm=function(a){if(_.K("deprecate_pair_servlet_enabled"))return jWz(a,[]);var z=YTf(TYe());z=_.Z8(z,function(I){return!I.uuid});
return jWz(a,z)},PfZ=function(a,z){W1e(_.vH(a.screens,MYi));
z&&d1Z()};var EE=function(a,z){_.Ol.call(this);this.getScreensToCheck_=z;z=(z=_.nN("yt-remote-online-screen-ids")||"")?z.split(","):[];for(var I={},J=this.getScreensToCheck_(),r=J.length,P=0;P<r;++P){var N=J[P].id;I[N]=_.Um(z,N)}this.screenIdSet_=I;this.JSC$19626_http_=a;this.refreshTimer_=this.fastCheckEndTime_=NaN;this.currentRequest_=null;ZVe("Initialized with "+(0,_.vV)(this.screenIdSet_))};
_.b(EE,_.Ol);EE.prototype.isOnline=function(a){return!!this.screenIdSet_[a]};
EE.prototype.start=function(){var a=parseInt(_.nN("yt-remote-fast-check-period")||"0",10);(this.fastCheckEndTime_=_.JY()-144E5<a?0:a)?CfE(this):(this.fastCheckEndTime_=_.JY()+3E5,_.s4("yt-remote-fast-check-period",this.fastCheckEndTime_),this.requestScreenAvailability_())};
EE.prototype.isEmpty=function(){return _.x8.isEmpty(this.screenIdSet_)};
EE.prototype.update=function(){ZVe("Updating availability on schedule.");var a=this.getScreensToCheck_(),z=_.x8.filter(this.screenIdSet_,function(I,J){return I&&!!YH(a,J)},this);
NIV(this,z)};
var tBE=function(a,z,I){var J=aa(a.JSC$19626_http_,"/pairing/get_screen_availability");a.JSC$19626_http_.sendRequest("POST",J,{lounge_token:z.token},(0,_.HW)(function(r){r=r.screens||[];for(var P=r.length,N=0;N<P;++N)if(r[N].loungeToken==z.token){I(r[N].status=="online");return}I(!1)},a),(0,_.HW)(function(){I(!1)},a))};
EE.prototype.disposeInternal=function(){_.tP(this.refreshTimer_);this.refreshTimer_=NaN;this.currentRequest_&&(this.currentRequest_.abort(),this.currentRequest_=null);_.Ol.prototype.disposeInternal.call(this)};
var NIV=function(a,z){a:if(_.x8.getCount(z)!=_.x8.getCount(a.screenIdSet_))var I=!1;else{I=_.x8.getKeys(z);for(var J=I.length,r=0;r<J;++r)if(!a.screenIdSet_[I[r]]){I=!1;break a}I=!0}I||(ZVe("Updated online screens: "+(0,_.vV)(a.screenIdSet_)),a.screenIdSet_=z,a.publish("screenChange"));ucZ(a)},CfE=function(a){isNaN(a.refreshTimer_)||_.tP(a.refreshTimer_);
a.refreshTimer_=_.C1((0,_.HW)(a.requestScreenAvailability_,a),a.fastCheckEndTime_>0&&a.fastCheckEndTime_<_.JY()?2E4:1E4)};
EE.prototype.requestScreenAvailability_=function(){_.tP(this.refreshTimer_);this.refreshTimer_=NaN;this.currentRequest_&&this.currentRequest_.abort();var a=EIG(this);if(_.x8.getCount(a)){var z=aa(this.JSC$19626_http_,"/pairing/get_screen_availability"),I={lounge_token:_.x8.getKeys(a).join(",")};this.currentRequest_=this.JSC$19626_http_.sendRequest("POST",z,I,(0,_.HW)(this.onScreenAvailability_,this,a),(0,_.HW)(this.onScreenAvailabilityError_,this))}else NIV(this,{}),CfE(this)};
EE.prototype.onScreenAvailability_=function(a,z){this.currentRequest_=null;var I=_.x8.getKeys(EIG(this));if(_.MO(I,_.x8.getKeys(a))){z=z.screens||[];I={};for(var J=z.length,r=0;r<J;++r)I[a[z[r].loungeToken]]=z[r].status=="online";NIV(this,I);CfE(this)}else this.warn_("Changing Screen set during request."),this.requestScreenAvailability_()};
EE.prototype.onScreenAvailabilityError_=function(a){this.warn_("Screen availability failed: "+a);this.currentRequest_=null;CfE(this)};
var ZVe=function(a){zC("OnlineScreenService",a)};
EE.prototype.warn_=function(a){zC("OnlineScreenService",a)};
var EIG=function(a){var z={};_.l1(a.getScreensToCheck_(),function(I){I.token?z[I.token]=I.id:this.warn_("Requesting availability of screen w/o lounge token.")});
return z},ucZ=function(a){a=_.x8.getKeys(_.x8.filter(a.screenIdSet_,function(z){return z}));
a.sort(_.SmI);a.length?_.s4("yt-remote-online-screen-ids",a.join(","),60):_.KN("yt-remote-online-screen-ids")};_.rL(C9,r_);_.Z=C9.prototype;_.Z.start=function(){this.localScreenService_.start();this.onlineScreenService_.start();this.screens.length&&(this.publish("screenChange"),this.onlineScreenService_.isEmpty()||this.publish("onlineScreenChange"))};
_.Z.add=function(a,z,I){this.localScreenService_.add(a,z,I)};
_.Z.remove=function(a,z,I){this.localScreenService_.remove(a,z,I);this.onlineScreenService_.update()};
_.Z.updateName=function(a,z,I,J){this.localScreenService_.contains(a)?this.localScreenService_.updateName(a,z,I,J):(a="Updating name of unknown screen: "+a.name,zC(this.JSC$19616_logName_,a),J(Error(a)))};
_.Z.getScreens=function(a){return a?this.screens:lVG(this.screens,_.Z8(this.automaticScreens_,function(z){return!this.contains(z)},this))};
_.Z.JSC$19631_getOnlineScreens=function(){return _.Z8(this.getScreens(!0),function(a){return this.onlineScreenService_.isOnline(a.id)},this)};
var gIZ=function(a,z,I,J,r,P){a.info("getAutomaticScreenByIds "+I+" / "+z);I||(I=a.deviceToScreenId_[z]);var N=a.getScreens(),u=I?YH(N,I):null;I&&(a.disableAutomaticScreenCache_||u)||(u=YH(N,z));if(u){u.uuid=z;var E=BB(a,u);tBE(a.onlineScreenService_,E,function(O){r(O?E:null)})}else I?BIV(a,I,(0,_.HW)(function(O){var f=BB(this,new Mx({name:J,
screenId:I,loungeToken:O,dialId:z||""}));tBE(this.onlineScreenService_,f,function(A){r(A?f:null)})},a),P):r(null)};
C9.prototype.JSC$19631_getScreenByPollingPairingCode=function(a,z,I,J,r,P){var N=this;this.info("getDialScreenByPairingCode "+a+" / "+z);var u=new IeG(this.JSC$19629_http_,a,z,I,J);u.subscribe("pairingComplete",function(E,O){_.Y8(u);r(BB(N,E),O)});
u.subscribe("pairingFailed",function(E){_.Y8(u);P(E)});
u.start();return(0,_.HW)(u.stop,u)};
var OV0=function(a,z){for(var I=a.screens.length,J=0;J<I;++J)if(a.screens[J].name==z)return a.screens[J];return null};
C9.prototype.JSC$19631_getScreenByPairingCode=function(a,z,I,J){_.Ez(aa(this.JSC$19629_http_,"/pairing/get_screen"),{method:"POST",postParams:{pairing_code:a},timeout:5E3,onSuccess:(0,_.HW)(function(r,P){r=new Mx(P.screen||{});if(!r.name||OV0(this,r.name)){a:{P=r.name;for(var N=2,u=z(P,N);OV0(this,u);){N++;if(N>20)break a;u=z(P,N)}P=u}r.name=P}I(BB(this,r))},this),
onError:(0,_.HW)(function(r){J(Error("Lk`"+r.status))},this),
onTimeout:(0,_.HW)(function(){J(Error("Mk"))},this)})};
var feY=function(a,z,I){tBE(a.onlineScreenService_,z,I)};
C9.prototype.disposeInternal=function(){_.Y8(this.localScreenService_);_.Y8(this.onlineScreenService_);C9.superClass_.disposeInternal.call(this)};
var BIV=function(a,z,I,J){a.info("requestLoungeToken_ for "+z);var r={postParams:{screen_ids:z},method:"POST",context:a,onSuccess:function(P,N){P=N&&N.screens||[];P[0]&&P[0].screenId==z?I(P[0].loungeToken):J(Error("Nk"))},
onError:function(){J(Error("Ok"))}};
_.Ez(aa(a.JSC$19629_http_,"/pairing/get_lounge_token_batch"),r)},Ac4=function(a){a.screens=a.localScreenService_.getScreens();
for(var z=_.x8.transpose(a.deviceToScreenId_),I=a.screens.length,J=0;J<I;++J){var r=a.screens[J];r.uuid=z[r.id]||""}a.info("Updated manual screens: "+eVf(a.screens))};
C9.prototype.handleScreenChange_=function(){Ac4(this);this.publish("screenChange");this.onlineScreenService_.update()};
var aLz=function(a){sWY(a);a.localScreenService_=new Z7(a.JSC$19629_http_);a.localScreenService_.subscribe("screenChange",(0,_.HW)(a.handleScreenChange_,a));Ac4(a);a.disableAutomaticScreenCache_||(a.automaticScreens_=YTf(_.nN("yt-remote-automatic-screen-cache")||[]));sWY(a);a.info("Initializing automatic screens: "+eVf(a.automaticScreens_));a.onlineScreenService_=new EE(a.JSC$19629_http_,(0,_.HW)(a.getScreens,a,!0));a.onlineScreenService_.subscribe("screenChange",(0,_.HW)(function(){this.publish("onlineScreenChange")},
a))},BB=function(a,z){var I=a.get(z.id);
I?(I.uuid=z.uuid,z=I):((I=YH(a.automaticScreens_,z.uuid))?(I.id=z.id,I.token=z.token,z=I):a.automaticScreens_.push(z),a.disableAutomaticScreenCache_||nIf(a));sWY(a);a.deviceToScreenId_[z.uuid]=z.id;_.s4("yt-remote-device-id-map",a.deviceToScreenId_,31536E3);return z},nIf=function(a){a=_.Z8(a.automaticScreens_,function(z){return z.idType!="shortLived"});
_.s4("yt-remote-automatic-screen-cache",_.vH(a,MYi))},sWY=function(a){a.deviceToScreenId_=_.nN("yt-remote-device-id-map")||{}};
C9.prototype.dispose=C9.prototype.dispose;_.rL(Nf,_.Ol);var gU=function(a,z){a.screen_=z;a.publish("sessionScreen",a.screen_)},KDE=function(a,z){a.screen_&&(a.screen_.token=z,BB(a.JSC$19633_screenService_,a.screen_));
a.publish("sessionScreen",a.screen_)};
Nf.prototype.onSessionStopped=function(a){this.isDisposed()||(a&&(OE(this,""+a),this.publish("sessionFailed")),this.screen_=null,this.publish("sessionScreen",null))};
Nf.prototype.info=function(a){zC(this.JSC$19633_logName_,a)};
var OE=function(a,z){zC(a.JSC$19633_logName_,z)};
Nf.prototype.JSC$19635_getCastSession=function(){return null};
Nf.prototype.setDisplayStatus=function(a){var z=this.receiver_;a?(z.displayStatus=new chrome.cast.ReceiverDisplayStatus(a,[]),z.displayStatus.showStop=!0):z.displayStatus=null;chrome.cast.setReceiverDisplayStatus(z,(0,_.HW)(function(){this.info("Updated receiver status for "+z.friendlyName+": "+a)},this),(0,_.HW)(function(){OE(this,"Failed to update receiver status for: "+z.friendlyName)},this))};
Nf.prototype.disposeInternal=function(){this.setDisplayStatus("");Nf.superClass_.disposeInternal.call(this)};var f8=function(a,z,I){Nf.call(this,a,z,"CastSession");var J=this;this.config_=I;this.JSC$19638_session_=null;this.JSC$19638_boundSessionUpdate_=(0,_.HW)(this.JSC$19640_onSessionUpdate_,this);this.boundYoutubeMessage_=(0,_.HW)(this.onYoutubeMessage_,this);this.sessionStatusTimeoutKey_=_.C1(function(){FDY(J,null)},12E4);
this.getLoungeTokenTimeoutKey_=this.onLoungeTokenTimeoutKey_=this.JSC$19638_checkScreenAvailabilityTimeoutKey_=this.getScreenTimeoutKey_=0;this.JSC$19638_isInitLoungeToken_=!1;this.JSC$19638_lastLoungeTokenRefreshError_="unknown"};
_.b(f8,Nf);_.Z=f8.prototype;
_.Z.setCastSession=function(a){if(this.JSC$19638_session_){if(this.JSC$19638_session_==a)return;OE(this,"Overriding cast session with new session object");HV0(this);this.JSC$19638_isInitLoungeToken_=!1;this.JSC$19638_lastLoungeTokenRefreshError_="unknown";this.JSC$19638_session_.removeUpdateListener(this.JSC$19638_boundSessionUpdate_);this.JSC$19638_session_.removeMessageListener("urn:x-cast:com.google.youtube.mdx",this.boundYoutubeMessage_)}this.JSC$19638_session_=a;this.JSC$19638_session_.addUpdateListener(this.JSC$19638_boundSessionUpdate_);this.JSC$19638_session_.addMessageListener("urn:x-cast:com.google.youtube.mdx",
this.boundYoutubeMessage_);bV0(this,"getMdxSessionStatus")};
_.Z.launchWithParams=function(a){this.info("launchWithParams no-op for Cast: "+(0,_.vV)(a))};
_.Z.stop=function(){if(this.JSC$19638_session_)this.JSC$19638_session_.stop((0,_.HW)(function(){this.onSessionStopped()},this),(0,_.HW)(function(){this.onSessionStopped(Error("Pk"))},this));
else this.onSessionStopped(Error("Qk"))};
_.Z.setDisplayStatus=function(){};
_.Z.disposeInternal=function(){this.info("disposeInternal");HV0(this);this.JSC$19638_session_&&(this.JSC$19638_session_.removeUpdateListener(this.JSC$19638_boundSessionUpdate_),this.JSC$19638_session_.removeMessageListener("urn:x-cast:com.google.youtube.mdx",this.boundYoutubeMessage_));this.JSC$19638_session_=null;Nf.prototype.disposeInternal.call(this)};
var VBV=function(a,z){_.tP(a.getLoungeTokenTimeoutKey_);a.getLoungeTokenTimeoutKey_=0;z==0?h10(a):a.getLoungeTokenTimeoutKey_=_.C1(function(){h10(a)},z)},h10=function(a){bV0(a,"getLoungeToken");
_.tP(a.onLoungeTokenTimeoutKey_);a.onLoungeTokenTimeoutKey_=_.C1(function(){QWi(a,null)},3E4)},bV0=function(a,z){a.info("sendYoutubeMessage_: "+z+" "+(0,_.vV)(void 0));
var I={};I.type=z;a.JSC$19638_session_?a.JSC$19638_session_.sendMessage("urn:x-cast:com.google.youtube.mdx",I,function(){},(0,_.HW)(function(){OE(this,"Failed to send message: "+z+".")},a)):OE(a,"Sending yt message without session: "+(0,_.vV)(I))};
f8.prototype.onYoutubeMessage_=function(a,z){if(!this.isDisposed())if(z)if(z=(0,_.x2)(z),_.md(z))switch(a=""+z.type,z=z.data||{},this.info("onYoutubeMessage_: "+a+" "+(0,_.vV)(z)),a){case "mdxSessionStatus":FDY(this,z);break;case "loungeToken":QWi(this,z);break;default:OE(this,"Unknown youtube message: "+a)}else OE(this,"Unable to parse message.");else OE(this,"No data in message.")};
var SFE=function(a,z){if(z)a.info("onConnectedScreenId_: Received screenId: "+z),a.screen_&&a.screen_.id==z||a.getScreen_(z,function(I){gU(a,I)},function(){return a.onSessionStopped()},5);
else a.onSessionStopped(Error("Rk"))},x5E=function(a,z,I){a.info("onConnectedScreenData_: Received screenData: "+JSON.stringify(z));
var J=new Mx(z);iVZ(a,J,function(r){r?(a.JSC$19638_isInitLoungeToken_=!0,BB(a.JSC$19633_screenService_,J),gU(a,J),a.JSC$19638_lastLoungeTokenRefreshError_="unknown",VBV(a,I)):(_.oL(Error("Sk`"+JSON.stringify(z))),a.onSessionStopped())},5)},FDY=function(a,z){_.tP(a.sessionStatusTimeoutKey_);
a.sessionStatusTimeoutKey_=0;if(z)a.config_.enableCastLoungeToken&&z.loungeToken?z.deviceId?a.screen_&&a.screen_.uuid==z.deviceId||(z.loungeTokenRefreshIntervalMs?x5E(a,{name:a.receiver_.friendlyName,screenId:z.screenId,loungeToken:z.loungeToken,dialId:z.deviceId,screenIdType:"shortLived"},z.loungeTokenRefreshIntervalMs):(_.oL(Error("Uk`"+JSON.stringify(z))),SFE(a,z.screenId))):(_.oL(Error("Tk`"+JSON.stringify(z))),SFE(a,z.screenId)):SFE(a,z.screenId);else a.onSessionStopped(Error("Rk"))},QWi=function(a,
z){_.tP(a.onLoungeTokenTimeoutKey_);
a.onLoungeTokenTimeoutKey_=0;var I=null;if(z)if(z.loungeToken){var J;((J=a.screen_)==null?void 0:J.token)==z.loungeToken&&(I="staleLoungeToken")}else I="missingLoungeToken";else I="noLoungeTokenResponse";I?(a.info("Did not receive a new lounge token in onLoungeToken_ with data: "+(JSON.stringify(z)+", error: "+I)),a.JSC$19638_lastLoungeTokenRefreshError_=I,VBV(a,3E4)):(KDE(a,z.loungeToken),a.JSC$19638_isInitLoungeToken_=!1,a.JSC$19638_lastLoungeTokenRefreshError_="unknown",VBV(a,z.loungeTokenRefreshIntervalMs))};
f8.prototype.getScreen_=function(a,z,I,J){_.tP(this.getScreenTimeoutKey_);this.getScreenTimeoutKey_=0;gIZ(this.JSC$19633_screenService_,this.receiver_.label,a,this.receiver_.friendlyName,(0,_.HW)(function(r){r?z(r):J>=0?(OE(this,"Screen "+a+" appears to be offline. "+J+" retries left."),this.getScreenTimeoutKey_=_.C1((0,_.HW)(this.getScreen_,this,a,z,I,J-1),300)):I(Error("Vk"))},this),I)};
var iVZ=function(a,z,I,J){_.tP(a.JSC$19638_checkScreenAvailabilityTimeoutKey_);a.JSC$19638_checkScreenAvailabilityTimeoutKey_=0;feY(a.JSC$19633_screenService_,z,function(r){r||J<0?I(r):a.JSC$19638_checkScreenAvailabilityTimeoutKey_=_.C1(function(){iVZ(a,z,I,J-1)},300)})};
f8.prototype.JSC$19635_getCastSession=function(){return this.JSC$19638_session_};
f8.prototype.JSC$19640_onSessionUpdate_=function(a){this.isDisposed()||a||(OE(this,"Cast session died."),this.onSessionStopped())};
var HV0=function(a){_.tP(a.getScreenTimeoutKey_);a.getScreenTimeoutKey_=0;_.tP(a.JSC$19638_checkScreenAvailabilityTimeoutKey_);a.JSC$19638_checkScreenAvailabilityTimeoutKey_=0;_.tP(a.sessionStatusTimeoutKey_);a.sessionStatusTimeoutKey_=0;_.tP(a.onLoungeTokenTimeoutKey_);a.onLoungeTokenTimeoutKey_=0;_.tP(a.getLoungeTokenTimeoutKey_);a.getLoungeTokenTimeoutKey_=0};var AB=function(a,z,I,J){Nf.call(this,a,z,"DialSession");this.config_=J;this.JSC$19642_session_=this.launchData_=null;this.reversePairingCode_="";this.JSC$19642_theme_=I;this.connectData_=null;this.deferredLaunch_=function(){};
this.JSC$19642_deferredLaunchDeadlineTimer_=NaN;this.JSC$19642_boundSessionUpdate_=(0,_.HW)(this.JSC$19644_onSessionUpdate_,this);this.cancelPolling_=function(){};
this.getDialAppInfoTimeoutKey_=this.JSC$19642_checkScreenAvailabilityTimeoutKey_=0;this.JSC$19642_isInitLoungeToken_=!1;this.JSC$19642_lastLoungeTokenRefreshError_="unknown"};
_.b(AB,Nf);AB.prototype.setCastSession=function(a){this.JSC$19642_session_=a;this.JSC$19642_session_.addUpdateListener(this.JSC$19642_boundSessionUpdate_)};
AB.prototype.launchWithParams=function(a){this.connectData_=a;this.deferredLaunch_()};
AB.prototype.stop=function(){vIY(this);if(this.JSC$19642_session_)this.JSC$19642_session_.stop((0,_.HW)(this.onSessionStopped,this,null),(0,_.HW)(this.onSessionStopped,this,"Failed to stop DIAL device."));else this.onSessionStopped()};
AB.prototype.disposeInternal=function(){vIY(this);this.JSC$19642_session_&&this.JSC$19642_session_.removeUpdateListener(this.JSC$19642_boundSessionUpdate_);this.JSC$19642_session_=null;Nf.prototype.disposeInternal.call(this)};
var Gt0=function(a){var z;return!!(a.config_.enableDialLoungeToken&&((z=a.JSC$19642_session_)==null?0:z.getDialAppInfo))},$5E=function(a){a.cancelPolling_=a.JSC$19633_screenService_.JSC$19631_getScreenByPollingPairingCode(a.reversePairingCode_,a.receiver_.label,a.receiver_.friendlyName,Gt0(a),function(z,I){a.cancelPolling_=function(){};
a.JSC$19642_isInitLoungeToken_=!0;gU(a,z);z.idType=="shortLived"&&I>0&&sE(a,I)},function(z){a.cancelPolling_=function(){};
a.onSessionStopped(z)})};
AB.prototype.JSC$19644_onSessionUpdate_=function(a){this.isDisposed()||a||(OE(this,"DIAL session died."),this.cancelPolling_(),this.cancelPolling_=function(){},this.onSessionStopped())};
var XZ0=function(a){var z={};z.pairingCode=a.reversePairingCode_;z.theme=a.JSC$19642_theme_;U10()&&(z.env_useStageMdx=1);return _.By(z)},TIM=function(a){return new Promise(function(z){a.reversePairingCode_=bHe();
if(a.connectData_){var I=new chrome.cast.DialLaunchResponse(!0,XZ0(a));z(I);$5E(a)}else a.deferredLaunch_=function(){_.tP(a.JSC$19642_deferredLaunchDeadlineTimer_);a.deferredLaunch_=function(){};
a.JSC$19642_deferredLaunchDeadlineTimer_=NaN;var J=new chrome.cast.DialLaunchResponse(!0,XZ0(a));z(J);$5E(a)},a.JSC$19642_deferredLaunchDeadlineTimer_=_.C1(function(){a.deferredLaunch_()},100)})},WDZ=function(a,z,I){a.info("initOnConnectedScreenDataPromise_: Received screenData: "+JSON.stringify(z));
var J=new Mx(z);return(new Promise(function(r){d5G(a,J,function(P){P?(a.JSC$19642_isInitLoungeToken_=!0,BB(a.JSC$19633_screenService_,J),gU(a,J),sE(a,I)):_.oL(Error("Xk`"+JSON.stringify(z)));r(P)},5)})).then(function(r){return r?new chrome.cast.DialLaunchResponse(!1):TIM(a)})},oI0=function(a,z){var I=a.launchData_.receiver.label,J=a.receiver_.friendlyName;
return(new Promise(function(r){gIZ(a.JSC$19633_screenService_,I,z,J,function(P){P&&P.token&&gU(a,P);r(P)},function(P){OE(a,"Failed to get DIAL screen: "+P);
r(null)})})).then(function(r){return r&&r.token?new chrome.cast.DialLaunchResponse(!1):TIM(a)})},d5G=function(a,z,I,J){_.tP(a.JSC$19642_checkScreenAvailabilityTimeoutKey_);
a.JSC$19642_checkScreenAvailabilityTimeoutKey_=0;feY(a.JSC$19633_screenService_,z,function(r){r||J<0?I(r):a.JSC$19642_checkScreenAvailabilityTimeoutKey_=_.C1(function(){d5G(a,z,I,J-1)},300)})},sE=function(a,z){a.info("getDialAppInfoWithTimeout_ "+z);
Gt0(a)&&(_.tP(a.getDialAppInfoTimeoutKey_),a.getDialAppInfoTimeoutKey_=0,z==0?U54(a):a.getDialAppInfoTimeoutKey_=_.C1(function(){U54(a)},z))},U54=function(a){Gt0(a)&&a.JSC$19642_session_.getDialAppInfo(function(z){a.info("getDialAppInfo dialLaunchData: "+JSON.stringify(z));
z=z.extraData||{};var I=null;if(z.loungeToken){var J;((J=a.screen_)==null?void 0:J.token)==z.loungeToken&&(I="staleLoungeToken")}else I="missingLoungeToken";I?(a.JSC$19642_lastLoungeTokenRefreshError_=I,sE(a,3E4)):(a.JSC$19642_isInitLoungeToken_=!1,a.JSC$19642_lastLoungeTokenRefreshError_="unknown",KDE(a,z.loungeToken),sE(a,z.loungeTokenRefreshIntervalMs))},function(z){a.info("getDialAppInfo error: "+z);
a.JSC$19642_lastLoungeTokenRefreshError_="noLoungeTokenResponse";sE(a,3E4)})},vIY=function(a){_.tP(a.JSC$19642_checkScreenAvailabilityTimeoutKey_);
a.JSC$19642_checkScreenAvailabilityTimeoutKey_=0;_.tP(a.getDialAppInfoTimeoutKey_);a.getDialAppInfoTimeoutKey_=0;a.cancelPolling_();a.cancelPolling_=function(){};
_.tP(a.JSC$19642_deferredLaunchDeadlineTimer_)};var n8=function(a,z){Nf.call(this,a,z,"ManualSession");this.JSC$19646_deferredLaunchDeadlineTimer_=_.C1((0,_.HW)(this.launchWithParams,this,null),150)};
_.b(n8,Nf);n8.prototype.stop=function(){this.onSessionStopped()};
n8.prototype.setCastSession=function(){};
n8.prototype.launchWithParams=function(){_.tP(this.JSC$19646_deferredLaunchDeadlineTimer_);this.JSC$19646_deferredLaunchDeadlineTimer_=NaN;var a=YH(this.JSC$19633_screenService_.getScreens(),this.receiver_.label);if(a)gU(this,a);else this.onSessionStopped(Error("Yk"))};
n8.prototype.disposeInternal=function(){_.tP(this.JSC$19646_deferredLaunchDeadlineTimer_);this.JSC$19646_deferredLaunchDeadlineTimer_=NaN;Nf.prototype.disposeInternal.call(this)};var Bm=function(a,z){_.Ol.call(this);this.config_=z;this.JSC$19649_screenService_=a;this.JSC$19649_appId_=z.appId||"233637DE";this.JSC$19649_theme_=z.theme||"cl";this.disableDial_=z.disableCastApi||!1;this.forceMirroring_=z.forceMirroring||!1;this.JSC$19649_session_=null;this.hasCastReceiver_=!1;this.customReceivers_=[];this.boundReceiverActionListener_=(0,_.HW)(this.onReceiverAction_,this)};
_.b(Bm,_.Ol);
Bm.prototype.init=function(a,z){chrome.cast.timeout.requestSession=3E4;var I=new chrome.cast.SessionRequest(this.JSC$19649_appId_,[chrome.cast.Capability.AUDIO_OUT]);_.K("desktop_enable_cast_connect")&&(I.androidReceiverCompatible=!0);this.disableDial_||(I.dialRequest=new chrome.cast.DialRequest("YouTube"));var J=chrome.cast.AutoJoinPolicy.TAB_AND_ORIGIN_SCOPED;a=a||this.forceMirroring_?chrome.cast.DefaultActionPolicy.CAST_THIS_TAB:chrome.cast.DefaultActionPolicy.CREATE_SESSION;var r=(0,_.HW)(this.onReceiverUpdated_,
this);I=new chrome.cast.ApiConfig(I,(0,_.HW)(this.onSessionEstablished_,this),r,J,a);I.customDialLaunchCallback=(0,_.HW)(this.onDialLaunchRequested_,this);chrome.cast.initialize(I,(0,_.HW)(function(){this.isDisposed()||(chrome.cast.addReceiverActionListener(this.boundReceiverActionListener_),yvz(),this.JSC$19649_screenService_.subscribe("onlineScreenChange",(0,_.HW)(this.JSC$19651_onScreenChange_,this)),this.customReceivers_=D5f(this),chrome.cast.setCustomReceivers(this.customReceivers_,function(){},
(0,_.HW)(function(P){this.warn_("Failed to set initial custom receivers: "+(0,_.vV)(P))},this)),this.publish("yt-remote-cast2-availability-change",K8(this)),z(!0))},this),(0,_.HW)(function(P){this.warn_("Failed to initialize API: "+(0,_.vV)(P));
z(!1)},this))};
Bm.prototype.setConnectedScreenStatus=function(a,z){Fr("Setting connected screen ID: "+a+" -> "+z);if(this.JSC$19649_session_){var I=this.JSC$19649_session_.screen_;if(!a||I&&I.id!=a)Fr("Unsetting old screen status: "+this.JSC$19649_session_.receiver_.friendlyName),HB(this,null)}if(a&&z){if(!this.JSC$19649_session_){a=YH(this.JSC$19649_screenService_.getScreens(),a);if(!a){Fr("setConnectedScreenStatus: Unknown screen.");return}if(a.idType=="shortLived"){Fr("setConnectedScreenStatus: Screen with id type to be short lived.");
return}I=R14(this,a);I||(Fr("setConnectedScreenStatus: Connected receiver not custom..."),I=new chrome.cast.Receiver(a.uuid?a.uuid:a.id,a.name),I.receiverType=chrome.cast.ReceiverType.CUSTOM,this.customReceivers_.push(I),chrome.cast.setCustomReceivers(this.customReceivers_,function(){},(0,_.HW)(function(J){this.warn_("Failed to set initial custom receivers: "+(0,_.vV)(J))},this)));
Fr("setConnectedScreenStatus: new active receiver: "+I.friendlyName);HB(this,new n8(this.JSC$19649_screenService_,I),!0)}this.JSC$19649_session_.setDisplayStatus(z)}else Fr("setConnectedScreenStatus: no screen.")};
var R14=function(a,z){return z?_.X0(a.customReceivers_,function(I){return c$(z,I.label)},a):null};
Bm.prototype.setLaunchParams=function(a){this.isDisposed()?this.warn_("Setting connection data on disposed cast v2"):this.JSC$19649_session_?this.JSC$19649_session_.launchWithParams(a):this.warn_("Setting connection data without a session")};
Bm.prototype.JSC$19651_stopSession=function(){this.isDisposed()?this.warn_("Stopping session on disposed cast v2"):this.JSC$19649_session_?(this.JSC$19649_session_.stop(),HB(this,null)):Fr("Stopping non-existing session")};
Bm.prototype.requestSession=function(){chrome.cast.requestSession((0,_.HW)(this.onSessionEstablished_,this),(0,_.HW)(this.onSessionRequestFailed_,this))};
Bm.prototype.disposeInternal=function(){this.JSC$19649_screenService_.unsubscribe("onlineScreenChange",(0,_.HW)(this.JSC$19651_onScreenChange_,this));window.chrome&&chrome.cast&&chrome.cast.removeReceiverActionListener(this.boundReceiverActionListener_);_.Di(_.DH("yt.mdx.remote.debug.handlers_")||[],phZ);_.Y8(this.JSC$19649_session_);_.Ol.prototype.disposeInternal.call(this)};
var Fr=function(a){zC("Controller",a)};
Bm.prototype.warn_=function(a){zC("Controller",a)};
var phZ=function(a){window.chrome&&chrome.cast&&chrome.cast.logMessage&&chrome.cast.logMessage(a)},K8=function(a){return a.hasCastReceiver_||!!a.customReceivers_.length||!!a.JSC$19649_session_},HB=function(a,z,I){z!=a.JSC$19649_session_&&(_.Y8(a.JSC$19649_session_),(a.JSC$19649_session_=z)?(I?a.publish("yt-remote-cast2-receiver-resumed",z.receiver_):a.publish("yt-remote-cast2-receiver-selected",z.receiver_),z.subscribe("sessionScreen",(0,_.HW)(a.onSessionScreen_,a,z)),z.subscribe("sessionFailed",
function(){return LD4(a,z)}),z.screen_?a.publish("yt-remote-cast2-session-change",z.screen_):I&&a.JSC$19649_session_.launchWithParams(null)):a.publish("yt-remote-cast2-session-change",null))},LD4=function(a,z){a.JSC$19649_session_==z&&a.publish("yt-remote-cast2-session-failed")};
_.Z=Bm.prototype;_.Z.onSessionScreen_=function(a,z){this.JSC$19649_session_==a&&(z||HB(this,null),this.publish("yt-remote-cast2-session-change",z))};
_.Z.onReceiverAction_=function(a,z){if(!this.isDisposed())if(a)switch(a.friendlyName=chrome.cast.unescape(a.friendlyName),Fr("onReceiverAction_ "+a.label+" / "+a.friendlyName+"-- "+z),z){case chrome.cast.ReceiverAction.CAST:if(this.JSC$19649_session_)if(this.JSC$19649_session_.receiver_.label!=a.label)Fr("onReceiverAction_: Stopping active receiver: "+this.JSC$19649_session_.receiver_.friendlyName),this.JSC$19649_session_.stop();else{Fr("onReceiverAction_: Casting to active receiver.");this.JSC$19649_session_.screen_&&
this.publish("yt-remote-cast2-session-change",this.JSC$19649_session_.screen_);break}switch(a.receiverType){case chrome.cast.ReceiverType.CUSTOM:HB(this,new n8(this.JSC$19649_screenService_,a));break;case chrome.cast.ReceiverType.DIAL:HB(this,new AB(this.JSC$19649_screenService_,a,this.JSC$19649_theme_,this.config_));break;case chrome.cast.ReceiverType.CAST:HB(this,new f8(this.JSC$19649_screenService_,a,this.config_));break;default:this.warn_("Unknown receiver type: "+a.receiverType)}break;case chrome.cast.ReceiverAction.STOP:this.JSC$19649_session_&&
this.JSC$19649_session_.receiver_.label==a.label?this.JSC$19649_session_.stop():this.warn_("Stopping receiver w/o session: "+a.friendlyName)}else this.warn_("onReceiverAction_ called without receiver.")};
_.Z.onDialLaunchRequested_=function(a){if(this.isDisposed())return Promise.reject(Error("Zk"));var z=a.receiver;z.receiverType!=chrome.cast.ReceiverType.DIAL&&(this.warn_("Not DIAL receiver: "+z.friendlyName),z.receiverType=chrome.cast.ReceiverType.DIAL);var I=this.JSC$19649_session_?this.JSC$19649_session_.receiver_:null;if(!I||I.label!=z.label)return this.warn_("Receiving DIAL launch request for non-clicked DIAL receiver: "+z.friendlyName),Promise.reject(Error("$k"));if(I&&I.label==z.label&&I.receiverType!=
chrome.cast.ReceiverType.DIAL){if(this.JSC$19649_session_.screen_)return Fr("Reselecting dial screen."),this.publish("yt-remote-cast2-session-change",this.JSC$19649_session_.screen_),Promise.resolve(new chrome.cast.DialLaunchResponse(!1));this.warn_('Changing CAST intent from "'+I.receiverType+'" to "dial" for '+z.friendlyName);HB(this,new AB(this.JSC$19649_screenService_,z,this.JSC$19649_theme_,this.config_))}z=this.JSC$19649_session_;z.launchData_=a;z.launchData_.appState==chrome.cast.DialAppState.RUNNING?
(a=z.launchData_.extraData||{},I=a.screenId||null,Gt0(z)&&a.loungeToken?a.loungeTokenRefreshIntervalMs?a=WDZ(z,{name:z.receiver_.friendlyName,screenId:a.screenId,loungeToken:a.loungeToken,dialId:z.launchData_.receiver.label,screenIdType:"shortLived"},a.loungeTokenRefreshIntervalMs):(_.oL(Error("Wk`"+JSON.stringify(a))),a=oI0(z,I)):a=oI0(z,I)):a=TIM(z);return a};
_.Z.onSessionEstablished_=function(a){var z=this;if(!this.isDisposed()&&!this.forceMirroring_){Fr("New cast session ID: "+a.sessionId);var I=a.receiver;if(I.receiverType!=chrome.cast.ReceiverType.CUSTOM){if(!this.JSC$19649_session_)if(I.receiverType==chrome.cast.ReceiverType.CAST)Fr("Got resumed cast session before resumed mdx connection."),I.friendlyName=chrome.cast.unescape(I.friendlyName),HB(this,new f8(this.JSC$19649_screenService_,I,this.config_),!0);else{this.warn_("Got non-cast session without previous mdx receiver event, or mdx resume.");
return}var J=this.JSC$19649_session_.receiver_,r=YH(this.JSC$19649_screenService_.getScreens(),J.label);r&&c$(r,I.label)&&J.receiverType!=chrome.cast.ReceiverType.CAST&&I.receiverType==chrome.cast.ReceiverType.CAST&&(Fr("onSessionEstablished_: manual to cast session change "+I.friendlyName),_.Y8(this.JSC$19649_session_),this.JSC$19649_session_=new f8(this.JSC$19649_screenService_,I,this.config_),this.JSC$19649_session_.subscribe("sessionScreen",(0,_.HW)(this.onSessionScreen_,this,this.JSC$19649_session_)),
this.JSC$19649_session_.subscribe("sessionFailed",function(){return LD4(z,z.JSC$19649_session_)}),this.JSC$19649_session_.launchWithParams(null));
this.JSC$19649_session_.setCastSession(a)}}};
_.Z.JSC$19651_getCastSession=function(){return this.JSC$19649_session_?this.JSC$19649_session_.JSC$19635_getCastSession():null};
_.Z.onSessionRequestFailed_=function(a){this.isDisposed()||(this.warn_("Failed to estabilish a session: "+(0,_.vV)(a)),a.code!=chrome.cast.ErrorCode.CANCEL&&HB(this,null),this.publish("yt-remote-cast2-session-failed"))};
_.Z.onReceiverUpdated_=function(a){Fr("Receiver availability updated: "+a);if(!this.isDisposed()){var z=K8(this);this.hasCastReceiver_=a==chrome.cast.ReceiverAvailability.AVAILABLE;K8(this)!=z&&this.publish("yt-remote-cast2-availability-change",K8(this))}};
var D5f=function(a){var z=a.JSC$19649_screenService_.JSC$19631_getOnlineScreens(),I=a.JSC$19649_session_&&a.JSC$19649_session_.receiver_;a=_.vH(z,function(J){I&&c$(J,I.label)&&(I=null);var r=J.uuid?J.uuid:J.id,P=R14(this,J);P?(P.label=r,P.friendlyName=J.name):(P=new chrome.cast.Receiver(r,J.name),P.receiverType=chrome.cast.ReceiverType.CUSTOM);return P},a);
I&&(I.receiverType!=chrome.cast.ReceiverType.CUSTOM&&(I=new chrome.cast.Receiver(I.label,I.friendlyName),I.receiverType=chrome.cast.ReceiverType.CUSTOM),a.push(I));return a};
Bm.prototype.JSC$19651_onScreenChange_=function(){this.isDisposed()||(this.customReceivers_=D5f(this),Fr("Updating custom receivers: "+(0,_.vV)(this.customReceivers_)),chrome.cast.setCustomReceivers(this.customReceivers_,function(){},(0,_.HW)(function(){this.warn_("Failed to set custom receivers.")},this)),this.publish("yt-remote-cast2-availability-change",K8(this)))};
Bm.prototype.setLaunchParams=Bm.prototype.setLaunchParams;Bm.prototype.setConnectedScreenStatus=Bm.prototype.setConnectedScreenStatus;Bm.prototype.stopSession=Bm.prototype.JSC$19651_stopSession;Bm.prototype.getCastSession=Bm.prototype.JSC$19651_getCastSession;Bm.prototype.requestSession=Bm.prototype.requestSession;Bm.prototype.init=Bm.prototype.init;Bm.prototype.dispose=Bm.prototype.dispose;var lez=_.kK(["https://www.gstatic.com/cv/js/sender/v1/cast_sender.js"]),sQi=[],ZMV=_.Jz(lez);var pZG=function(a){a.audioTrackId=null;a.trackData=null;a.playerState=-1;a.hasPrevious=!1;a.hasNext=!1;a.playerTime_=0;a.playerTimeAt_=_.JY();a.seekableStart_=0;a.seekableEnd_=0;a.duration_=0;a.loadedTime=0;a.liveIngestionTime_=NaN;a.isLive_=!1};
_.Z=g_.prototype;
_.Z.reset=function(a){this.listId="";this.stopPlayer();this.volume=-1;this.muted=!1;a&&(this.index=a.index,this.listId=a.listId,this.videoId=a.videoId,this.playerState=a.playerState,this.volume=a.volume,this.muted=a.muted,this.audioTrackId=a.audioTrackId,this.trackData=a.trackData,this.hasPrevious=a.hasPrevious,this.hasNext=a.hasNext,this.playerTime_=a.playerTime,this.playerTimeAt_=a.playerTimeAt,this.seekableStart_=a.seekableStart,this.seekableEnd_=a.seekableEnd,this.duration_=a.duration,this.loadedTime=
a.loadedTime,this.liveIngestionTime_=a.liveIngestionTime,this.isLive_=!isNaN(this.liveIngestionTime_))};
_.Z.stopPlayer=function(){this.index=-1;this.videoId="";pZG(this)};
_.Z.isPlaying=function(){return this.playerState==1};
_.Z.isBuffering=function(){return this.playerState==3};
_.Z.isAdPlaying=function(){return this.playerState==1081};
var bU=function(a,z){a.playerTime_=z;a.playerTimeAt_=_.JY()},wZZ=function(a){switch(a.playerState){case 1:case 1081:return(_.JY()-a.playerTimeAt_)/1E3+a.playerTime_;
case -1E3:return 0}return a.playerTime_};
g_.prototype.getDuration=function(){return this.isLive_?this.duration_+(this.isPlaying()?(_.JY()-this.playerTimeAt_)/1E3:0):this.duration_};
var m5V=function(a,z,I){var J=a.videoId;a.videoId=z;a.index=I;z!=J&&pZG(a)},ycZ=function(a){var z={};
z.index=a.index;z.listId=a.listId;z.videoId=a.videoId;z.playerState=a.playerState;z.volume=a.volume;z.muted=a.muted;z.audioTrackId=a.audioTrackId;z.trackData=_.x8.unsafeClone(a.trackData);z.hasPrevious=a.hasPrevious;z.hasNext=a.hasNext;z.playerTime=a.playerTime_;z.playerTimeAt=a.playerTimeAt_;z.seekableStart=a.seekableStart_;z.seekableEnd=a.seekableEnd_;z.duration=a.duration_;z.loadedTime=a.loadedTime;z.liveIngestionTime=a.liveIngestionTime_;return z};
g_.prototype.clone=function(){return new g_(ycZ(this))};var hB=function(a,z){_.Ol.call(this);var I=this;this.state_=0;this.connection_=a;this.contextSubscriptions_=[];this.actionQueue_=new gh4;this.castSession_=this.castMedia_=null;this.boundCastStatusListener_=(0,_.HW)(this.onCastStatusUpdate_,this);this.boundCastMediaListener_=(0,_.HW)(this.onCastMediaChange_,this);this.boundCastMediaUpdateListener_=(0,_.HW)(this.onCastMediaUpdate_,this);this.boundCloudviewAvailabilityChange_=(0,_.HW)(this.onCloudviewAvailabilityChange_,this);var J=0;a?(J=a.getProxyState(),
J!=3&&(a.subscribe("proxyStateChange",this.setState_,this),ktf(this))):J=3;J!=0&&(z?this.setState_(J):_.C1(function(){I.setState_(J)},0));
(a=HMZ())&&MBG(this,a);this.subscribe("yt-remote-cast2-session-change",this.boundCloudviewAvailabilityChange_)};
_.b(hB,_.Ol);hB.prototype.getState=function(){return this.state_};
hB.prototype.getReconnectTimeout=function(){return this.connection_.getReconnectTimeout()};
hB.prototype.reconnect=function(){this.connection_.reconnect()};
var VN=function(a){return new g_(a.connection_.getPlayerContextData())};
_.Z=hB.prototype;_.Z.play=function(){QN(this)?(this.castMedia_?this.castMedia_.play(null,_.Kx,cc4(this,"play")):Sh(this,"play"),YFf(this,1,wZZ(VN(this))),this.publish("remotePlayerChange")):iU(this,this.play)};
_.Z.pause=function(){QN(this)?(this.castMedia_?this.castMedia_.pause(null,_.Kx,cc4(this,"pause")):Sh(this,"pause"),YFf(this,2,wZZ(VN(this))),this.publish("remotePlayerChange")):iU(this,this.pause)};
_.Z.seekTo=function(a){if(QN(this)){if(this.castMedia_){var z=VN(this),I=new chrome.cast.media.SeekRequest;I.currentTime=a;z.isPlaying()||z.isBuffering()?I.resumeState=chrome.cast.media.ResumeState.PLAYBACK_START:I.resumeState=chrome.cast.media.ResumeState.PLAYBACK_PAUSE;this.castMedia_.seek(I,_.Kx,cc4(this,"seekTo",{newTime:a}))}else Sh(this,"seekTo",{newTime:a});YFf(this,3,a);this.publish("remotePlayerChange")}else iU(this,_.nt(this.seekTo,a))};
_.Z.stop=function(){if(QN(this)){this.castMedia_?this.castMedia_.stop(null,_.Kx,cc4(this,"stopVideo")):Sh(this,"stopVideo");var a=VN(this);a.stopPlayer();xY(this,a);this.publish("remotePlayerChange")}else iU(this,this.stop)};
_.Z.setVolume=function(a,z){if(QN(this)){var I=VN(this);if(this.castSession_){if(I.volume!=a){var J=Math.round(a)/100;this.castSession_.setReceiverVolumeLevel(J,(0,_.HW)(function(){Ia("set receiver volume: "+J)},this),(0,_.HW)(function(){this.warn_("failed to set receiver volume.")},this))}I.muted!=z&&this.castSession_.setReceiverMuted(z,(0,_.HW)(function(){Ia("set receiver muted: "+z)},this),(0,_.HW)(function(){this.warn_("failed to set receiver muted.")},this))}else{var r={volume:a,
muted:z};I.volume!=-1&&(r.delta=a-I.volume);Sh(this,"setVolume",r)}I.muted=z;I.volume=a;xY(this,I)}else iU(this,_.nt(this.setVolume,a,z))};
_.Z.setAudioTrack=function(a,z){QN(this)?(z=z.getLanguageInfo().getId(),Sh(this,"setAudioTrack",{videoId:a,audioTrackId:z}),a=VN(this),a.audioTrackId=z,xY(this,a)):iU(this,_.nt(this.setAudioTrack,a,z))};
_.Z.addVideo=function(a){QN(this)?Sh(this,"addVideo",{videoId:a}):iU(this,_.nt(this.addVideo,a))};
_.Z.addPlaylist=function(a){QN(this)?Sh(this,"addVideos",{listId:a}):iU(this,_.nt(this.addPlaylist,a))};
_.Z.addVideos=function(a){a.length==0?this.warn_("Ignore add videos request due to empty list"):QN(this)?Sh(this,"addVideos",{videoIds:a.join(",")}):iU(this,_.nt(this.addVideos,a))};
_.Z.JSC$19661_removeVideo=function(a){QN(this)?Sh(this,"removeVideo",{videoId:a}):iU(this,_.nt(this.JSC$19661_removeVideo,a))};
_.Z.JSC$19661_insertVideo=function(a){QN(this)?Sh(this,"insertVideo",{videoId:a}):iU(this,_.nt(this.JSC$19661_insertVideo,a))};
_.Z.playVideo=function(a,z,I,J,r,P,N){J=J===void 0?null:J;r=r===void 0?null:r;P=P===void 0?null:P;N=N===void 0?null:N;var u=VN(this),E={videoId:a};I!==void 0&&(E.currentIndex=I);m5V(u,a,I||0);z!==void 0&&(bU(u,z),E.currentTime=z);J&&(E.listId=J);r&&(E.playerParams=r);P&&(E.clickTrackingParams=P);N&&(E.locationInfo=(0,_.vV)(N));Sh(this,"setPlaylist",E);J||xY(this,u)};
_.Z.nextVideo=function(a,z){if(QN(this)){if(a&&z){var I=VN(this);m5V(I,a,z);xY(this,I)}Sh(this,"next")}else iU(this,_.nt(this.nextVideo,a,z))};
_.Z.clearPlaylist=function(){if(QN(this)){Sh(this,"clearPlaylist");var a=VN(this);a.reset();xY(this,a);this.publish("remotePlayerChange")}else iU(this,this.clearPlaylist)};
_.Z.dispose=function(){if(this.state_!=3){var a=this.state_;this.state_=3;this.publish("proxyStateChange",a,this.state_)}_.Ol.prototype.dispose.call(this)};
_.Z.disposeInternal=function(){qF0(this);this.connection_=null;this.actionQueue_.clear();MBG(this,null);_.Ol.prototype.disposeInternal.call(this)};
var ktf=function(a){_.l1("nowAutoplaying autoplayDismissed remotePlayerChange remoteQueueChange autoplayModeChange autoplayUpNext previousNextChange multiStateLoopEnabled loopModeChange".split(" "),function(z){this.contextSubscriptions_.push(this.connection_.subscribe(z,_.nt(this.onProxyEvent_,z),this))},a)},qF0=function(a){_.l1(a.contextSubscriptions_,function(z){this.connection_.unsubscribeByKey(z)},a);
a.contextSubscriptions_.length=0},QN=function(a){return a.getState()==1},iU=function(a,z){a.actionQueue_.getCount()<50&&a.actionQueue_.enqueue(z)},YFf=function(a,z,I){var J=VN(a);
bU(J,I);J.playerState!=-1E3&&(J.playerState=z);xY(a,J)},Sh=function(a,z,I){a.connection_.sendMessage(z,I)},xY=function(a,z){qF0(a);
a.connection_.setPlayerContextData(ycZ(z));ktf(a)};
hB.prototype.setState_=function(a){if((a!=this.state_||a==2)&&this.state_!=3&&a!=0){var z=this.state_;this.state_=a;this.publish("proxyStateChange",z,a);if(a==1)for(;!this.actionQueue_.isEmpty();)a=this.actionQueue_,Eo0(a),a.front_.pop().apply(this);else a==3&&this.dispose()}};
hB.prototype.onProxyEvent_=function(a,z){this.publish(a,z)};
var MBG=function(a,z){a.castSession_&&(a.castSession_.removeUpdateListener(a.boundCastStatusListener_),a.castSession_.removeMediaListener(a.boundCastMediaListener_),a.onCastMediaChange_(null));a.castSession_=z;if(a.castSession_&&(Ia("Setting cast session: "+a.castSession_.sessionId),a.castSession_.addUpdateListener(a.boundCastStatusListener_),a.castSession_.addMediaListener(a.boundCastMediaListener_),a.castSession_.media.length))a.onCastMediaChange_(a.castSession_.media[0])};
hB.prototype.onCastStatusUpdate_=function(a){if(!a)this.onCastMediaChange_(null),MBG(this,null);else if(this.castSession_.receiver.volume){a=this.castSession_.receiver.volume;var z=VN(this),I=Math.round(100*a.level||0);if(z.volume!=I||z.muted!=a.muted)Ia("Cast volume update: "+a.level+(a.muted?" muted":"")),z.volume=I,z.muted=!!a.muted,xY(this,z)}};
hB.prototype.onCastMediaChange_=function(a){Ia("Cast media: "+!!a);this.castMedia_&&this.castMedia_.removeUpdateListener(this.boundCastMediaUpdateListener_);if(this.castMedia_=a)this.castMedia_.addUpdateListener(this.boundCastMediaUpdateListener_),e1Z(this),this.publish("remotePlayerChange")};
var e1Z=function(a){var z=a.castMedia_.media,I=a.castMedia_.customData;if(z&&I){var J=VN(a);z.contentId!=J.videoId&&Ia("Cast changing video to: "+z.contentId);J.videoId=z.contentId;J.playerState=I.playerState;bU(J,a.castMedia_.getEstimatedTime());xY(a,J)}else Ia("No cast media video. Ignoring state update.")};
hB.prototype.onCastMediaUpdate_=function(a){if(a)e1Z(this),this.publish("remotePlayerChange");else this.onCastMediaChange_(null)};
hB.prototype.onCloudviewAvailabilityChange_=function(){var a=HMZ();a&&MBG(this,a)};
hB.prototype.warn_=function(a){zC("CP",a)};
var cc4=function(a,z,I){return(0,_.HW)(function(J){this.warn_("Failed to "+z+" with cast v2 channel. Error code: "+J.code);J.code!=chrome.cast.ErrorCode.TIMEOUT&&(this.warn_("Retrying "+z+" using MDx browser channel."),Sh(this,z,I))},a)};var Gw=function(a,z,I,J){J=J===void 0?!1:J;_.Ol.call(this);var r=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$19666_http_=a;this.enableConnectWithInitialState_=J;this.listeners_.push(_.ep(window,"beforeunload",function(){r.JSC$19669_disconnect_(2)}));
this.connectedDevices_=[];this.playerContext_=new g_;this.currentScreenId_=z.id;this.currentScreenIdType_=z.idType;this.channelService=laz(this.JSC$19666_http_,I,this.JSC$19669_getXsrfToken_,this.currentScreenIdType_=="shortLived",this.currentScreenId_);this.channelService.listen("channelOpened",function(){awz(r)});
this.channelService.listen("channelClosed",function(){vB("Channel closed");isNaN(r.connectTimerId_)?qx(!0):qx();r.dispose()});
this.channelService.listen("channelError",function(P){qx();isNaN(r.getReconnectTimeout_())?(P==1&&r.currentScreenIdType_=="shortLived"&&r.publish("browserChannelAuthError",P),vB("Channel error: "+P+" without reconnection"),r.dispose()):(r.reconnecting_=!0,vB("Channel error: "+P+" with reconnection in "+r.getReconnectTimeout_()+" ms"),jpe(r,2))});
this.channelService.listen("channelMessage",function(P){z6G(r,P)});
this.channelService.setLoungeToken(z.token);this.subscribe("remoteQueueChange",function(){var P=r.playerContext_.videoId;iHe()&&_.s4("yt-remote-session-video-id",P)})};
_.b(Gw,_.Ol);
Gw.prototype.connect=function(a,z){if(z){var I=z.listId,J=z.videoId,r=z.videoIds,P=z.playerParams,N=z.clickTrackingParams,u=z.index,E={videoId:J},O=z.currentTime,f=z.locationInfo;z=z.loopMode;O!==void 0&&(E.currentTime=O<=5?0:O);P&&(E.playerParams=P);f&&(E.locationInfo=f);N&&(E.clickTrackingParams=N);I&&(E.listId=I);r&&r.length>0&&(E.videoIds=r.join(","));u!==void 0&&(E.currentIndex=u);this.enableConnectWithInitialState_&&(E.loopMode=z||"LOOP_MODE_OFF");I&&(this.playerContext_.listId=I);this.playerContext_.videoId=
J;this.playerContext_.index=u||0;this.playerContext_.state=3;bU(this.playerContext_,O);this.autoplayMode_="UNSUPPORTED";I=this.enableConnectWithInitialState_?"setInitialState":"setPlaylist";vB("Connecting with "+I+" and params: "+(0,_.vV)(E));this.channelService.connect({method:I,params:(0,_.vV)(E)},a,Xhz())}else vB("Connecting without params"),this.channelService.connect({},a,Xhz());Iw0(this)};
Gw.prototype.setLoungeToken=function(a){this.channelService.setLoungeToken(a)};
Gw.prototype.dispose=function(){this.isDisposed()||(_.qe("yt.mdx.remote.remoteClient_",null),this.publish("beforeDispose"),jpe(this,3));_.Ol.prototype.dispose.call(this)};
Gw.prototype.disposeInternal=function(){JMZ(this);rME(this);PQE(this);_.tP(this.clientSetVideoTimerId_);this.clientSetVideoTimerId_=NaN;_.tP(this.idleDisconnectTimerId_);this.idleDisconnectTimerId_=NaN;this.clientVideoId_=null;_.lAG(this.listeners_);this.listeners_.length=0;this.channelService.dispose();_.Ol.prototype.disposeInternal.call(this);this.autoplayMode_=this.autoplayVideoId_=this.connectedDevices_=this.playerContext_=this.channelService=null};
var ZdE=function(a){return _.X0(a.connectedDevices_,function(z){return z.type=="LOUNGE_SCREEN"})},vB=function(a){zC("conn",a)},jpe=function(a,z){a.publish("proxyStateChange",z)},Iw0=function(a){a.connectTimerId_=_.C1(function(){vB("Connecting timeout");
a.JSC$19669_disconnect_(1)},2E4)},JMZ=function(a){_.tP(a.connectTimerId_);
a.connectTimerId_=NaN},PQE=function(a){_.tP(a.reconnectedCheckScreenTimeout_);
a.reconnectedCheckScreenTimeout_=NaN},CQZ=function(a){rME(a);
a.playingSyncTimerId_=_.C1(function(){$Y(a,"getNowPlaying")},2E4)},rME=function(a){_.tP(a.playingSyncTimerId_);
a.playingSyncTimerId_=NaN},awz=function(a){vB("Channel opened");
a.reconnecting_&&(a.reconnecting_=!1,PQE(a),a.reconnectedCheckScreenTimeout_=_.C1(function(){vB("Timing out waiting for a screen.");a.JSC$19669_disconnect_(1)},15E3))},tzZ=function(a,z){var I=null;
if(z){var J=ZdE(a);J&&(I={clientName:J.clientName,deviceMake:J.brand,deviceModel:J.model,osVersion:J.osVersion})}_.qe("yt.mdx.remote.remoteClient_",I);z&&(JMZ(a),PQE(a));I=a.channelService.isChannelOpened()&&isNaN(a.connectTimerId_);z==I?z&&(jpe(a,1),$Y(a,"getSubtitlesTrack")):z?(a.getOtherConnectedRemoteId_()&&a.playerContext_.reset(),jpe(a,1),$Y(a,"getNowPlaying"),NPZ(a)):a.JSC$19669_disconnect_(1)},u30=function(a,z){var I=z.params.videoId;
delete z.params.videoId;I==a.playerContext_.videoId&&(_.x8.isEmpty(z.params)?a.playerContext_.trackData=null:a.playerContext_.trackData=z.params,a.publish("remotePlayerChange"))},EaZ=function(a,z,I){var J=z.params.videoId||z.params.video_id,r=parseInt(z.params.currentIndex,10);
a.playerContext_.listId=z.params.listId||a.playerContext_.listId;m5V(a.playerContext_,J,r);a.publish("remoteQueueChange",I)},BPz=function(a,z){z.params=z.params||{};
EaZ(a,z,"NOW_PLAYING_MAY_CHANGE");a.onStateChange_(z);a.publish("autoplayDismissed")};
Gw.prototype.onStateChange_=function(a){var z=parseInt(a.params.currentTime||a.params.current_time,10);bU(this.playerContext_,isNaN(z)?0:z);z=parseInt(a.params.state,10);z=isNaN(z)?-1:z;z==-1&&this.playerContext_.playerState==-1E3&&(z=-1E3);this.playerContext_.playerState=z;z=Number(a.params.loadedTime);this.playerContext_.loadedTime=isNaN(z)?0:z;z=Number(a.params.duration);this.playerContext_.duration_=isNaN(z)?0:z;z=this.playerContext_;var I=Number(a.params.liveIngestionTime);z.liveIngestionTime_=
I;z.isLive_=isNaN(I)?!1:!0;z=this.playerContext_;I=Number(a.params.seekableStartTime);a=Number(a.params.seekableEndTime);z.seekableStart_=isNaN(I)?0:I;z.seekableEnd_=isNaN(a)?0:a;this.playerContext_.playerState==1?CQZ(this):rME(this);this.publish("remotePlayerChange")};
Gw.prototype.onAdStateChange_=function(a){if(this.playerContext_.playerState!=-1E3){var z=1085;switch(parseInt(a.params.adState,10)){case 1:z=1081;break;case 2:z=1084;break;case 0:z=1083}this.playerContext_.playerState=z;a=parseInt(a.params.currentTime,10);bU(this.playerContext_,isNaN(a)?0:a);this.publish("remotePlayerChange")}};
var gaZ=function(a,z){var I=z.params.muted=="true";a.playerContext_.volume=parseInt(z.params.volume,10);a.playerContext_.muted=I;a.publish("remotePlayerChange")},OdE=function(a,z){a.autoplayVideoId_=z.params.videoId;
a.publish("nowAutoplaying",parseInt(z.params.timeout,10))},fwV=function(a,z){a.autoplayVideoId_=z.params.videoId||null;
a.publish("autoplayUpNext",a.autoplayVideoId_)},AM0=function(a,z){a.autoplayMode_=z.params.autoplayMode;
a.publish("autoplayModeChange",a.autoplayMode_);a.autoplayMode_=="DISABLED"&&a.publish("autoplayDismissed")},naV=function(a,z){var I=z.params.hasNext=="true";
a.playerContext_.hasPrevious=z.params.hasPrevious=="true";a.playerContext_.hasNext=I;a.publish("previousNextChange")};
Gw.prototype.isCapabilitySupportedOnConnectedDevices_=function(a){if(!this.connectedDevices_||this.connectedDevices_.length===0)return!1;for(var z=_.C(this.connectedDevices_),I=z.next();!I.done;I=z.next())if(!I.value.capabilities.has(a))return!1;return!0};
var z6G=function(a,z){z=z.message;z.params?vB("Received: action="+z.action+", params="+(0,_.vV)(z.params)):vB("Received: action="+z.action+" {}");switch(z.action){case "loungeStatus":z=(0,_.x2)(z.params.devices);a.connectedDevices_=_.vH(z,function(J){return new uU(J)});
z=!!_.X0(a.connectedDevices_,function(J){return J.type=="LOUNGE_SCREEN"});
tzZ(a,z);z=a.isCapabilitySupportedOnConnectedDevices_("mlm");a.publish("multiStateLoopEnabled",z);break;case "loungeScreenDisconnected":LkZ(a.connectedDevices_,function(J){return J.type=="LOUNGE_SCREEN"});
tzZ(a,!1);break;case "remoteConnected":var I=new uU((0,_.x2)(z.params.device));_.X0(a.connectedDevices_,function(J){return J.equals(I)})||_.HGG(a.connectedDevices_,I);
break;case "remoteDisconnected":I=new uU((0,_.x2)(z.params.device));LkZ(a.connectedDevices_,function(J){return J.equals(I)});
break;case "gracefulDisconnect":break;case "playlistModified":EaZ(a,z,"QUEUE_MODIFIED");break;case "nowPlaying":BPz(a,z);break;case "onStateChange":a.onStateChange_(z);break;case "onAdStateChange":a.onAdStateChange_(z);break;case "onVolumeChanged":gaZ(a,z);break;case "onSubtitlesTrackChanged":u30(a,z);break;case "nowAutoplaying":OdE(a,z);break;case "autoplayDismissed":a.publish("autoplayDismissed");break;case "autoplayUpNext":fwV(a,z);break;case "onAutoplayModeChanged":AM0(a,z);break;case "onHasPreviousNextChanged":naV(a,
z);break;case "requestAssistedSignIn":a.publish("assistedSignInRequested",z.params.authCode);break;case "onLoopModeChanged":a.publish("loopModeChange",z.params.loopMode);break;default:vB("Unrecognized action: "+z.action)}};
_.Z=Gw.prototype;_.Z.getProxyState_=function(){var a=3;this.isDisposed()||(a=0,isNaN(this.getReconnectTimeout_())?this.channelService.isChannelOpened()&&isNaN(this.connectTimerId_)&&(a=1):a=2);return a};
_.Z.JSC$19669_disconnect_=function(a){vB("Disconnecting with "+a);_.qe("yt.mdx.remote.remoteClient_",null);JMZ(this);this.publish("beforeDisconnect",a);a==1&&qx();this.channelService.disconnect(a);this.dispose()};
_.Z.getPlayerContextData_=function(){var a=this.playerContext_;this.clientVideoId_&&(a=this.playerContext_.clone(),m5V(a,this.clientVideoId_,a.index));return ycZ(a)};
_.Z.setPlayerContextData_=function(a){var z=this,I=new g_(a);I.videoId&&I.videoId!=this.playerContext_.videoId&&(this.clientVideoId_=I.videoId,_.tP(this.clientSetVideoTimerId_),this.clientSetVideoTimerId_=_.C1(function(){if(z.clientVideoId_){var r=z.clientVideoId_;z.clientVideoId_=null;z.playerContext_.videoId!=r&&$Y(z,"getNowPlaying")}},5E3));
var J=[];this.playerContext_.listId==I.listId&&this.playerContext_.videoId==I.videoId&&this.playerContext_.index==I.index||J.push("remoteQueueChange");this.playerContext_.playerState==I.playerState&&this.playerContext_.volume==I.volume&&this.playerContext_.muted==I.muted&&wZZ(this.playerContext_)==wZZ(I)&&(0,_.vV)(this.playerContext_.trackData)==(0,_.vV)(I.trackData)||J.push("remotePlayerChange");this.playerContext_.reset(a);_.l1(J,function(r){this.publish(r)},this)};
_.Z.getOtherConnectedRemoteId_=function(){var a=this.channelService.getDeviceId(),z=_.X0(this.connectedDevices_,function(I){return I.type=="REMOTE_CONTROL"&&I.id!=a});
return z?z.id:""};
_.Z.getReconnectTimeout_=function(){return this.channelService.getReconnectTimeout()};
_.Z.getAutoplayMode_=function(){return this.autoplayMode_||"UNSUPPORTED"};
_.Z.getAutoplayVideoId_=function(){return this.autoplayVideoId_||""};
_.Z.JSC$19669_reconnect_=function(){!isNaN(this.getReconnectTimeout_())&&this.channelService.reconnect()};
var NPZ=function(a){_.tP(a.idleDisconnectTimerId_);a.idleDisconnectTimerId_=_.C1(function(){a.JSC$19669_disconnect_(1)},864E5)},$Y=function(a,z,I){I?vB("Sending: action="+z+", params="+(0,_.vV)(I)):vB("Sending: action="+z);
a.channelService.sendMessage(z,I)};
Gw.prototype.sendMessageWithUserAction_=function(a,z){$Y(this,a,z);NPZ(this)};
Gw.prototype.JSC$19669_getXsrfToken_=function(){var a=_.f1.get("SAPISID","")||_.f1.get("__Secure-1PAPISID",void 0)||"",z=_.f1.get("__Secure-3PAPISID","")||"";if(!a&&!z)return"";a=_.he(_.Ko(a),2);z=_.he(_.Ko(z),2);return _.he(_.Ko(","+a+","+z),2)};
Gw.prototype.subscribe=Gw.prototype.subscribe;Gw.prototype.unsubscribeByKey=Gw.prototype.unsubscribeByKey;Gw.prototype.getProxyState=Gw.prototype.getProxyState_;Gw.prototype.disconnect=Gw.prototype.JSC$19669_disconnect_;Gw.prototype.getPlayerContextData=Gw.prototype.getPlayerContextData_;Gw.prototype.setPlayerContextData=Gw.prototype.setPlayerContextData_;Gw.prototype.getOtherConnectedRemoteId=Gw.prototype.getOtherConnectedRemoteId_;Gw.prototype.getReconnectTimeout=Gw.prototype.getReconnectTimeout_;
Gw.prototype.getAutoplayMode=Gw.prototype.getAutoplayMode_;Gw.prototype.getAutoplayVideoId=Gw.prototype.getAutoplayVideoId_;Gw.prototype.reconnect=Gw.prototype.JSC$19669_reconnect_;Gw.prototype.sendMessage=Gw.prototype.sendMessageWithUserAction_;Gw.prototype.getXsrfToken=Gw.prototype.JSC$19669_getXsrfToken_;Gw.prototype.isCapabilitySupportedOnConnectedDevices=Gw.prototype.isCapabilitySupportedOnConnectedDevices_;var KbG=function(a){r_.call(this,"ScreenServiceProxy");this.instance_=a;this.subscriptionKeys_=[];this.subscriptionKeys_.push(this.instance_.$_s("screenChange",(0,_.HW)(this.JSC$19672_onScreenChange_,this)));this.subscriptionKeys_.push(this.instance_.$_s("onlineScreenChange",(0,_.HW)(this.onOnlineScreenChange_,this)))};
_.b(KbG,r_);_.Z=KbG.prototype;_.Z.getScreens=function(a){return this.instance_.$_gs(a)};
_.Z.contains=function(a){return!!this.instance_.$_c(a)};
_.Z.get=function(a){return this.instance_.$_g(a)};
_.Z.start=function(){this.instance_.$_st()};
_.Z.add=function(a,z,I){this.instance_.$_a(a,z,I)};
_.Z.remove=function(a,z,I){this.instance_.$_r(a,z,I)};
_.Z.updateName=function(a,z,I,J){this.instance_.$_un(a,z,I,J)};
_.Z.disposeInternal=function(){for(var a=this.subscriptionKeys_.length,z=0;z<a;++z)this.instance_.$_ubk(this.subscriptionKeys_[z]);this.subscriptionKeys_.length=0;this.instance_=null;r_.prototype.disposeInternal.call(this)};
_.Z.JSC$19672_onScreenChange_=function(){this.publish("screenChange")};
_.Z.onOnlineScreenChange_=function(){this.publish("onlineScreenChange")};
C9.prototype.$_st=C9.prototype.start;C9.prototype.$_gspc=C9.prototype.JSC$19631_getScreenByPairingCode;C9.prototype.$_gsppc=C9.prototype.JSC$19631_getScreenByPollingPairingCode;C9.prototype.$_c=C9.prototype.contains;C9.prototype.$_g=C9.prototype.get;C9.prototype.$_a=C9.prototype.add;C9.prototype.$_un=C9.prototype.updateName;C9.prototype.$_r=C9.prototype.remove;C9.prototype.$_gs=C9.prototype.getScreens;C9.prototype.$_gos=C9.prototype.JSC$19631_getOnlineScreens;C9.prototype.$_s=C9.prototype.subscribe;
C9.prototype.$_ubk=C9.prototype.unsubscribeByKey;var S3E=function(a){ohY();if(!eD||!eD.get("yt-remote-disable-remote-module-for-dev")){a=_.Xw("MDX_CONFIG")||a;a8Z();vhY();Xr||(Xr=new kH(a?a.loungeApiHost:void 0),U10()&&(Xr.basePath="/api/loungedev"));Tw||(Tw=_.DH("yt.mdx.remote.deferredProxies_")||[],_.qe("yt.mdx.remote.deferredProxies_",Tw));FbY();var z=dU();if(!z){var I=new C9(Xr,a?a.disableAutomaticScreenCache||!1:!1);_.qe("yt.mdx.remote.screenService_",I);z=dU();var J={};a&&(J={appId:a.appId,disableDial:a.disableDial,theme:a.theme,loadCastApiSetupScript:a.loadCastApiSetupScript,
disableCastApi:a.disableCastApi,enableDialLoungeToken:a.enableDialLoungeToken,enableCastLoungeToken:a.enableCastLoungeToken,forceMirroring:a.forceMirroring});_.qe("yt.mdx.remote.enableConnectWithInitialState_",a?a.enableConnectWithInitialState||!1:!1);fLi(I,function(P){P?WB()&&hwG(WB(),"YouTube TV"):I.subscribe("onlineScreenChange",function(){Fh("yt-remote-receiver-availability-change")})},J)}if(a&&!_.DH("yt.mdx.remote.initialized_")){_.qe("yt.mdx.remote.initialized_",!0);
o$("Initializing: "+(0,_.vV)(a));UE.push(_.ZR("yt-remote-cast2-api-ready",function(){Fh("yt-remote-api-ready")}));
UE.push(_.ZR("yt-remote-cast2-availability-change",function(){Fh("yt-remote-receiver-availability-change")}));
UE.push(_.ZR("yt-remote-cast2-receiver-selected",function(){Hd0();Fh("yt-remote-auto-connect","cast-selector-receiver")}));
UE.push(_.ZR("yt-remote-cast2-receiver-resumed",function(){Fh("yt-remote-receiver-resumed","cast-selector-receiver")}));
UE.push(_.ZR("yt-remote-cast2-session-change",bdV));UE.push(_.ZR("yt-remote-connection-change",function(P){P?hwG(WB(),"YouTube TV"):h60()||(hwG(null,null),FZE())}));
UE.push(_.ZR("yt-remote-cast2-session-failed",function(){Fh("yt-remote-connection-failed")}));
J=Vzz();a.isAuto&&(J.id+="#dial");var r=a.capabilities||[];r.length>0&&(J.capabilities=r);J.name=a.device;J.app=a.app;(a=a.theme)&&(J.theme=a);o$(" -- with channel params: "+(0,_.vV)(J));J?(_.s4("yt-remote-session-app",J.app),_.s4("yt-remote-session-name",J.name)):(_.KN("yt-remote-session-app"),_.KN("yt-remote-session-name"));_.qe("yt.mdx.remote.channelParams_",J);z.start();WB()||Qpf()}}},xUV=function(){var a=dU().instance_.$_gos();
var z=idZ();z&&Dz()&&(Vt0(a,z)||a.push(z));return hVZ(a)},vaZ=function(){var a=xUV(),z=idZ();
z||(z=h60());return _.X0(a,function(I){return z&&c$(z,I.key)?!0:!1})},idZ=function(){var a=WB();
if(!a)return null;var z=dU().getScreens();return YH(z,a)},bdV=function(a){o$("remote.onCastSessionChange_: "+VcE(a));
if(a){var z=idZ();z&&z.id==a.id?(hwG(z.id,"YouTube TV"),a.idType=="shortLived"&&(a=a.token)&&(z=Dz())&&z.setLoungeToken(a)):(z&&G4z(),$Ui(a,1))}else Dz()&&G4z()},G4z=function(){bME()?E0().stopSession():uV("stopSession called before API ready.");
var a=Dz();a&&(a.disconnect(1),Xs0(null))},TPf=function(){var a=Dz();
return a&&a.getProxyState()!=3?new hB(Dz(),void 0):null},o$=function(a){zC("remote",a)},dU=function(){if(!dUE){var a=_.DH("yt.mdx.remote.screenService_");
dUE=a?new KbG(a):null}return dUE},WB=function(){return _.DH("yt.mdx.remote.currentScreenId_")},Wbi=function(a){_.qe("yt.mdx.remote.currentScreenId_",a)},Hd0=function(){_.qe("yt.mdx.remote.connectData_",null)},Dz=function(){return _.DH("yt.mdx.remote.connection_")},Xs0=function(a){var z=Dz();
Hd0();a||Wbi("");_.qe("yt.mdx.remote.connection_",a);Tw&&(_.l1(Tw,function(I){I(a)}),Tw.length=0);
z&&!a?Fh("yt-remote-connection-change",!1):!z&&a&&Fh("yt-remote-connection-change",!0)},h60=function(){var a=iHe();
if(!a)return null;var z=dU();if(!z)return null;z=z.getScreens();return YH(z,a)},$Ui=function(a,z){Wbi(a.id);
a=new Gw(Xr,a,Vzz(),_.DH("yt.mdx.remote.enableConnectWithInitialState_")||!1);a.connect(z,_.DH("yt.mdx.remote.connectData_"));a.subscribe("beforeDisconnect",function(I){Fh("yt-remote-before-disconnect",I)});
a.subscribe("beforeDispose",function(){Dz()&&Xs0(null)});
a.subscribe("browserChannelAuthError",function(){var I=idZ();I&&I.idType=="shortLived"&&(bME()?E0().handleBrowserChannelAuthError():uV("refreshLoungeToken called before API ready."))});
Xs0(a)},Qpf=function(){var a=h60();
a?(o$("Resume connection to: "+VcE(a)),$Ui(a,0)):(qx(),FZE(),o$("Skipping connecting because no session screen found."))},Xr=null,Tw=null,dUE=null,FbY=function(){var a=Vzz();
if(_.x8.isEmpty(a)){a=SMz();var z=_.nN("yt-remote-session-name")||"",I=_.nN("yt-remote-session-app")||"";a={device:"REMOTE_CONTROL",id:a,name:z,app:I,mdxVersion:3};a.authuser=String(_.Xw("SESSION_INDEX","0"));(z=_.Xw("DELEGATED_SESSION_ID"))&&(a.pageId=String(z));_.qe("yt.mdx.remote.channelParams_",a)}},Vzz=function(){return _.DH("yt.mdx.remote.channelParams_")||{}},UE=[];var oaZ=new _.o3("yt-menu"),UUY=function(){},R60=function(a,z,I){a=z=="right-click"?I.rightClickMenuPopupHint:I.menuPopupHint;
if(!(DUe(z)>10))return z=z||"default",oaZ.set(z+"-impression",DUe(z)+1),a},DUe=function(a){return parseInt(oaZ.get((a||"default")+"-impression")||0,10)};
_.Is(UUY);var LbG=function(){this.contexts_=new WeakMap;this.JSC$19678_networkService_=this.activeContext_=null},lw4=function(a,z,I){var J=a.contexts_.get(z);
J||(J=new qJZ(a.JSC$19678_networkService_),a.contexts_.set(z,J));a.activeContext_=J;I&&a.activeContext_.reset();a.activeContext_.start();return a.activeContext_};var R$=function(){};
R$.prototype.enqueue=function(){var a=this,z;return _.t(function(I){if(a.isCounterfactual())return(z=a.getCounterfactualData())&&a.shouldLogCounterfactualImpression()&&a.sendImpressionEndpoints(z),I.return();a.doEnqueue();_.nu(I)})};
R$.prototype.sendImpressionEndpoints=function(a){_.w2.getInstance().triggerOptionalAction("yt-service-request",{},a[0])};var L8=function(a,z){this.renderer=a;this.page=z};
_.b(L8,R$);L8.prototype.getCounterfactualData=function(){if(this.renderer.impressionCommand)return[this.renderer.impressionCommand]};
L8.prototype.isCounterfactual=function(){return!this.renderer.isVisible};
L8.prototype.shouldLogCounterfactualImpression=function(){return!0};
L8.prototype.doEnqueue=function(){var a=_.jr(this.page);a&&a.pause();this.renderer.impressionCommand&&_.w2.getInstance().triggerOptionalAction("yt-service-request",{},this.renderer.impressionCommand);this.renderer.promoCommand&&_.DN(_.w2.getInstance(),[this.renderer.promoCommand],this.page)};var psE=function(a,z){this.renderer=a;this.resolver=_.kq();this.JSC$19690_enforcementCounter=new _.UCl;z?this.JSC$19690_playerManager=_.jr(z):this.JSC$19690_playerManager=null;_.Av(1,!0)};
_.b(psE,R$);_.Z=psE.prototype;_.Z.getCounterfactualData=function(){if(this.renderer.impressionEndpoints){var a=[];this.renderer.impressionEndpoints.forEach(function(z){(z=_.o0(z))&&a.push(z)});
return a}};
_.Z.isCounterfactual=function(){return this.renderer.isVisible===!1};
_.Z.shouldLogCounterfactualImpression=function(){var a=_.TNE();a?(this.JSC$19690_enforcementCounter.increment("POPUP"),_.Av(3)):_.Av(2);return a};
_.Z.cancel=function(){this.resolver.promise.cancel()};
_.Z.doEnqueue=function(){var a=this;_.TNE()?(this.JSC$19690_enforcementCounter.increment("POPUP"),_.Av(3),wse(this)):this.JSC$19690_playerManager?(this.resolver.promise.then(function(){wse(a)}),mUG(this.resolver,this.JSC$19690_playerManager)):_.Av(2)};
var mUG=function(a,z){var I=_.kq();z.getPlayerPromise().then(function(J){I.resolve(J)});
I.promise.then(function(J){J.addEventListener("onAbnormalityDetected",a.resolve);_.QD(a.promise,function(){J.removeEventListener("onAbnormalityDetected",a.resolve)})});
a.promise.thenCatch(function(){I.promise.cancel()})},wse=function(a){_.Av(3);
var z={popupType:"LOCKED_MODAL",popup:{enforcementMessageViewModel:a.renderer}};z=_.w2.getInstance().triggerOptionalAction("yt-open-popup-action",{openPopupAction:z},{});Promise.all(z).then(function(){yMz();a.JSC$19690_playerManager&&a.JSC$19690_playerManager.pause()})},yMz=function(){Vlf(function(a,z){_.QG4(a,z);
a===0?_.Av(7):_.Av(4)})};var k4Z=function(a,z){this.renderer=a;this.page=z;this.resolver=_.kq()};
_.b(k4Z,R$);_.Z=k4Z.prototype;_.Z.cancel=function(){this.resolver.promise.cancel()};
_.Z.getCounterfactualData=function(){return this.renderer.impressionEndpoints};
_.Z.isCounterfactual=function(){return!this.renderer.isVisible};
_.Z.shouldLogCounterfactualImpression=function(){return!0};
_.Z.doEnqueue=function(){var a=this;this.resolver.promise.then(function(){var I={popup:{mealbarPromoRenderer:a.renderer},popupType:"MEALBAR"};_.w2.getInstance().triggerOptionalAction("yt-open-popup-action",{openPopupAction:I},{})});
switch(this.renderer.triggerCondition){case "TRIGGER_CONDITION_POST_AD":if(this.page){var z=_.jr(this.page);z&&Mze(this.resolver,z)}break;default:this.resolver.resolve()}};
var Mze=function(a,z){var I=_.kq();z.getPlayerPromise().then(function(J){I.resolve(J)});
I.promise.then(function(J){J.addEventListener("onAdEnd",a.resolve);_.QD(a.promise,function(){J.removeEventListener("onAdEnd",a.resolve)})});
a.promise.thenCatch(function(){I.promise.cancel()})};var cME=function(a,z){this.renderer=a;this.page=z};
_.b(cME,R$);_.Z=cME.prototype;_.Z.cancel=function(){this.JSC$19698_downloadedVideosCountSelectorUnsubscriber&&(this.JSC$19698_downloadedVideosCountSelectorUnsubscriber(),this.JSC$19698_downloadedVideosCountSelectorUnsubscriber=void 0)};
_.Z.getCounterfactualData=function(){return this.renderer.impressionEndpoints};
_.Z.isCounterfactual=function(){return!this.renderer.isVisible};
_.Z.shouldLogCounterfactualImpression=function(){return!0};
_.Z.doEnqueue=function(){var a=this,z,I;((z=this.renderer.upsellDialogTriggerConditionSupportedDatas)==null?void 0:(I=z.playbackUpsellDialogTriggerConditionData)==null?void 0:I.triggerType)==="TRIGGER_TYPE_POST_DOWNLOAD"?this.JSC$19698_downloadedVideosCountSelectorUnsubscriber=_.QT(_.qo(),KKZ,function(J,r){J>r&&(Y3Z(a),a.cancel())}):Y3Z(this)};
var Y3Z=function(a){var z={popup:{upsellDialogRenderer:a.renderer},popupType:"MODAL"};_.w2.getInstance().triggerOptionalAction("yt-open-popup-action",{openPopupAction:z},{});(a=_.jr(a.page))&&a.pause()};var lU={},q34=(lU.TOOLTIP_POSITION_TYPE_BELOW="OPEN_POPUP_POSITION_BOTTOM",lU.TOOLTIP_POSITION_TYPE_START="OPEN_POPUP_POSITION_LEFT",lU.TOOLTIP_POSITION_TYPE_END="OPEN_POPUP_POSITION_RIGHT",lU.TOOLTIP_POSITION_TYPE_BELOW_START="OPEN_POPUP_POSITION_BOTTOMLEFT",lU.TOOLTIP_POSITION_TYPE_BELOW_END="OPEN_POPUP_POSITION_BOTTOMRIGHT",lU.TOOLTIP_POSITION_TYPE_ABOVE_START="OPEN_POPUP_POSITION_TOPLEFT",lU.TOOLTIP_POSITION_TYPE_ABOVE_END="OPEN_POPUP_POSITION_TOPRIGHT",lU),e60=function(a,z){this.renderer=a;this.targetManager=
z};
_.b(e60,R$);_.Z=e60.prototype;_.Z.cancel=function(){this.renderer.triggerCondition==="TOOLTIP_TRIGGER_CONDITION_TYPE_POST_DOWNLOAD"&&this.JSC$19705_downloadedVideosCountSelectorUnsubscriber&&(this.JSC$19705_downloadedVideosCountSelectorUnsubscriber(),this.JSC$19705_downloadedVideosCountSelectorUnsubscriber=void 0)};
_.Z.getCounterfactualData=function(){if(this.isCounterfactual()){var a;return(a=this.renderer.promoConfig)==null?void 0:a.impressionEndpoints}};
_.Z.isCounterfactual=function(){return!(!this.renderer.promoConfig||!this.renderer.promoConfig.isCounterfactual)};
_.Z.shouldLogCounterfactualImpression=function(){return!0};
_.Z.doEnqueue=function(){var a=this;if(this.renderer.targetId)switch(this.renderer.triggerCondition){case "TOOLTIP_TRIGGER_CONDITION_TYPE_POST_DOWNLOAD":this.JSC$19705_downloadedVideosCountSelectorUnsubscriber=_.QT(_.qo(),KKZ,function(z,I){a.renderer.targetId&&z>I&&(fkG(a.targetManager,a.renderer.targetId,aUi(a)),a.cancel())});
break;default:fkG(this.targetManager,this.renderer.targetId,aUi(this))}};
var aUi=function(a){var z;if((z=a.renderer.suggestedPosition)==null?0:z.type)var I=q34[a.renderer.suggestedPosition.type];I||(I="OPEN_POPUP_POSITION_BOTTOM");return{openPopupAction:{popup:{tooltipRenderer:a.renderer},popupType:"HINT",position:I}}};var jkM=function(){this.previousPage=null},zPf;
jkM.prototype.registerPromoCommand=function(a,z){IUG(this,void 0,void 0,_.H(a.roadblock,Ati),void 0,void 0,z)};
var IUG=function(a,z,I,J,r,P,N){a.previousPage!==N&&a.pendingTooltipPromo&&a.pendingTooltipPromo.cancel();a.previousPage=N;r?(a.pendingEnforcementPromo&&a.pendingEnforcementPromo.cancel(),a.pendingEnforcementPromo=new psE(r,N),a.pendingEnforcementPromo.enqueue()):P?(a.pendingCommandWrapperPromo=new L8(P,N),a.pendingCommandWrapperPromo.enqueue()):J?(a.pendingRoadblockPromo&&a.pendingRoadblockPromo.cancel(),a.pendingRoadblockPromo=new cME(J,N),a.pendingRoadblockPromo.enqueue()):z?(a.pendingMealbarPromo&&
a.pendingMealbarPromo.cancel(),a.pendingMealbarPromo=new k4Z(z,N),a.pendingMealbarPromo.enqueue()):I&&(a.pendingTooltipPromo&&a.pendingTooltipPromo.cancel(),a.pendingTooltipPromo=new e60(I,_.Gc()),a.pendingTooltipPromo.enqueue())},JrG=function(){zPf||(zPf=new jkM);
return zPf};var x3Y=!1;var AE0=function(a,z){var I=_.Xw("SESSION_INDEX");this.actionToken_=a;this.commonToken_=z;this.sessionIndex_=I},fcZ=function(a){var z=_.kq(),I=_.DH("payments.business.integration.bootstrap"),J=_.DH("payments.business.integration"),r=J.Style.create().withMaterialDesignStyle(),P=J.mashupMode.popup("instrument-manager");
I.asMashupMode(P).usingUserIndex(a.sessionIndex_).usingDefaultActivityStatusChangeHandler().usingStyle(r).inStandaloneContext(J.standaloneContextAuthId.forUserId()).instrumentManager(a.actionToken_,a.commonToken_.length>0?a.commonToken_:void 0,function(N){var u=N.instrumentId;u?z.resolve(u):(u=_.DH("payments.business.integration.scenario.InstrumentManager"),z.reject(N.errorCode&&N.errorCode===u.FailureReason.CANCELLED?"instrumentManagerCancelled":"instrumentManagerCallbackError"))}).load(null,function(N){_.oL(N);
z.reject("instrumentManagerLoadError")});
return z.promise};var n9=function(a,z,I){this.payloadName="transactionFlowFailed";this.payload={errorType:a,serializedTransactionFlowLoggingParams:z,isUserDismiss:I===void 0?!1:I}};
_.qe("yt.ypc.shared.YpcTransactionFlowError",n9);var p8=function(){return _.nM.apply(this,arguments)||this};
_.b(p8,_.nM);p8.prototype.beforeRegister=function(){this.stampDom||(this.stampDom={});this.stampDom.errorRenderer={id:"error",mapping:{liveChatErrorMessageRenderer:"yt-live-chat-error-message-renderer"}}};
p8.prototype.onErrorMessageDismiss=function(){this._setErrorRenderer(null)};
p8.prototype.onErrorMessageDismiss=p8.prototype.onErrorMessageDismiss;_.L([_.x({readOnly:!0,observer:"errorRendererChanged"}),_.p("design:type",Object)],p8.prototype,"errorRenderer",void 0);_.L([_.gz("yt-live-chat-error-message-dismiss"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],p8.prototype,"onErrorMessageDismiss",null);_.L([_.KM()],p8);var rr4=[p8.prototype];var POZ;var ZOE;var COV=new _.o3("yt-live-chat"),NDz=new Map;NDz.set("timestamp_toggle","show-timestamps");NDz.set("reactions_toggle","allow-reactions");var wU=function(){return _.G.apply(this,arguments)||this};
_.b(wU,_.G);_.Z=wU.prototype;_.Z.menuItemIdentifierChanged=function(){var a;(a=this.data)!=null&&a.menuItemIdentifier&&(a=NDz.get(this.data.menuItemIdentifier))&&(_.K("enable_lwe_web_mute")?(a=COV.get(a),this.isToggled=!(a===void 0?!this.data.isToggled:!a)):this.isToggled=COV.get(a))};
_.Z.onFocus=function(){this.toggleButton.focus()};
_.Z.onTap=function(){var a=this.data.command;a&&this.componentBehavior.resolveCommand(a)};
_.Z.computeText=function(a,z,I){return this.componentBehavior.getSimpleString(a?I:z)};
_.Z.computeIcon=function(a,z,I){return(a=a?I:z)&&a.iconType?_.Bl(a.iconType):""};
wU.prototype.onTap=wU.prototype.onTap;wU.prototype.onFocus=wU.prototype.onFocus;wU.prototype.menuItemIdentifierChanged=wU.prototype.menuItemIdentifierChanged;_.L([_.Q(_.k.YtRendererBehavior),_.p("design:type",Object)],wU.prototype,"ytRendererBehavior",void 0);_.L([_.Q(_.Ms.YtComponentBehavior),_.p("design:type",Object)],wU.prototype,"componentBehavior",void 0);_.L([_.x(),_.p("design:type",Object)],wU.prototype,"data",void 0);
_.L([_.x({computed:"computeIcon(data.isToggled,data.defaultIcon,data.toggledIcon)",value:""}),_.p("design:type",String)],wU.prototype,"icon",void 0);_.L([_.x({value:!1}),_.p("design:type",Boolean)],wU.prototype,"isToggled",void 0);_.L([_.A3("tp-yt-paper-toggle-button"),_.p("design:type",Object)],wU.prototype,"toggleButton",void 0);_.L([_.O8("data.menuItemIdentifier"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],wU.prototype,"menuItemIdentifierChanged",null);
_.L([_.gz("focus"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],wU.prototype,"onFocus",null);_.L([_.gz("tap"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],wU.prototype,"onTap",null);_.L([_.dz({disableElementRegistration:!0,is:"yt-live-chat-toggle-renderer",noInjection:!0})],wU);
_.D(wU,"yt-live-chat-toggle-renderer",function(){if(ZOE===void 0){var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-live-chat-toggle-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.yt_live_chat_toggle_renderer.yt.live.chat.toggle.renderer.css.js--\x3e<tp-yt-paper-item class="style-scope yt-live-chat-toggle-renderer">\n   <yt-icon icon="[[icon]]" class="style-scope yt-live-chat-toggle-renderer"></yt-icon>\n  <span class="style-scope yt-live-chat-toggle-renderer">[[computeText(data.isToggled, data.defaultText, data.toggledText)]]</span>\n  <tp-yt-paper-toggle-button aria-label="[[computeText(data.isToggled, data.defaultText, data.toggledText)]]" checked="[[isToggled]]" class="style-scope yt-live-chat-toggle-renderer">\n  </tp-yt-paper-toggle-button>\n</tp-yt-paper-item>\n');a.content.insertBefore(_.w().content.cloneNode(!0),
a.content.firstChild);var z=a.content,I=z.insertBefore;POZ===void 0&&(POZ=document.createElement("template"));var J=POZ;I.call(z,J.content.cloneNode(!0),a.content.firstChild);ZOE=a}a=ZOE;return a},{mode:_.K("live_chat_enable_sink_wrapper")?2:0});var tnE=new _.I4("NAVIGATION_PROGRESS_TOKEN");var uD0={},Eee={},BDV=(Eee[rtf.name]=!0,Eee),m0=function(){var a=_.nM.apply(this,arguments)||this;a._noAccessors=!0;a.tabGesturesIsActive=!1;a.actionRouterIsRoot=!0;a.appBehaviorActionMap={"yt-update-notifications-unseen-count-action":"handleUpdateNotificationsUnseenCountAction","yt-clear-cookie-action":"handleClearCookieAction","yt-store-grafted-ve-action":"onStoreGraftedVeAction","yt-history-load":"onYtHistoryLoad","yt-history-pop":"onYtHistoryPop"};a.pageTitle="";a.titleSuffix="YouTube";a.unseenNotificationCount=
0;a.hasNavigated=!1;a.hasSetScrollTopForNavigation=!1;a.pagePreparer=null;a.zwiebackInitJobId=0;a.dataUpdatePromise=null;a.loadDepsPromise=_.uI();a.hasPendingNavigation=!1;a.pendingPlayerOnResponseReceivedActions=[];return a};
_.b(m0,_.nM);m0.prototype.attached=function(){geM(this);document.addEventListener("yt-navigate-cache",_.BK(this,this.onYtNavigateCache));this.ytActionHandlerBehavior.registerActionMap(this.appBehaviorActionMap);var a=yN();a.init();a.dispatchElement=this.hostElement};
var geM=function(a,z){z=z===void 0?0:z;var I=_.ab().resolve(_.eL(_.vw));if(I)OOZ(a,I);else{if(z>=5)throw Error("al");setTimeout(function(){geM(a,z+1)},0)}},OOZ=function(a,z){z.addEventListener("yt-navigate-start",_.BK(a,a.onYtNavigateStart));
z.addEventListener("yt-navigate-finish",_.BK(a,a.onYtNavigateFinish));z.addEventListener("yt-navigate-error",_.BK(a,a.onYtNavigateError));z.addEventListener("yt-page-data-fetched",_.BK(a,a.onYtPageDataFetched))};
_.Z=m0.prototype;_.Z.detached=function(){var a=_.ab().resolve(_.vw);a.removeEventListener("yt-navigate-start",_.BK(this,this.onYtNavigateStart));a.removeEventListener("yt-navigate-finish",_.BK(this,this.onYtNavigateFinish));a.removeEventListener("yt-navigate-error",_.BK(this,this.onYtNavigateError));a.removeEventListener("yt-page-data-fetched",_.BK(this,this.onYtPageDataFetched));document.removeEventListener("yt-navigate-cache",_.BK(this,this.onYtNavigateCache));this.ytActionHandlerBehavior.unregisterActionMap(this.appBehaviorActionMap)};
_.Z.setPageOffset=function(a,z){a?_.ZF(this.hostElement,"yt-set-page-offset",[a,z]):_.Gx(Error("bl"))};
_.Z.setPageOffsetForNavigation=function(a,z){this.hasSetScrollTopForNavigation||(this.hasSetScrollTopForNavigation=!0,this.setPageOffset(a,z))};
_.Z.onYtNavigateSetPageOffset=function(a,z){this.setPageOffsetForNavigation(z.page,z.offset)};
_.Z.getPageOffset=function(){var a=_.PK(this.hostElement).querySelector("#page-manager").getCurrentPage(),z=0;a&&(z=_.ZF(this.hostElement,"yt-get-page-offset",[a])[0]);return z};
_.Z.onYtHistoryPop=function(a,z){if(_.TZ("DISABLE_WARM_LOADS"))a.preventDefault(),window.location.reload();else{var I=_.ab().resolve(_.vw);I.hasPendingNavigation()&&a.preventDefault();I.cancelPendingNavigation();_.Ct(this.hostElement,"yt-pending-navigation-cancelled");z.errorMsg&&(a=z.errorMsg.split(" - "),z=Error(a[0]),a.length==2&&a[1]&&(_.Tx(z,a[1]),_.Xd(z)),window.location.reload())}};
_.Z.onYtHistoryLoad=function(a,z){var I=this;if(_.TZ("DISABLE_WARM_LOADS"))window.location.reload();else{(a=z.endpoint)&&Object.keys(a).length||(a=null);var J=z.historyEntry,r=_.ab().resolve(_.vw),P=_.ab().resolve(_.aK),N=null;J&&J.rootData&&(N=J.rootData);var u=N&&fUY(N);!N||u||N.filler?a?(r.navigate(a,!0),ArY(this,a)):(z.legacyBorder||u||(z.JSC$29999_savedComponentState==null&&N==null?_.Xd(new _.Fn("Incomplete history entry",z.forward)):_.$0(new _.Fn("Malformed history entry",z.JSC$29999_savedComponentState,
z.forward,N))),window.location.reload()):(_.IfM({isHot:!0}),_.Gb({webInfo:{navigationReason:"h"}}),_.KCi(),_.Xz("srt"),_.Xz("pdc"),this.cancelPendingTasks(),skG(this,z.forward,N),N.player&&(N.player.loaded=!1),ArY(this,a),_.g_1(r,a||{},N,2,{},!1,z).then(function(){I.setPageOffset(P.getCurrentPage(),J.scrollTop||0)}))}};
_.Z.initHistoryManager=function(a){if(!this.hasNavigated){this.hasNavigated=!0;var z=_.PK(this.hostElement).querySelector("#page-manager").getCurrentData();a=isNaN(a)?this.getPageOffset():a;var I=_.ab().resolve(_.vw).currentEndpoint;this.replaceState(I,z,a)}};
_.Z.cancelPendingTasks=function(){this.pagePreparer&&this.pagePreparer.cancel()};
_.Z.onYtNavigateStart=function(a,z){this.cancelPendingTasks();z.noProgressBar||(a=_.ab().resolve(_.eL(tnE)))&&a.start();a=this.hasPendingNavigation?null:this.data;var I=_.ab().resolve(_.aK),J,r,P;_.K("kevlar_use_vimio_behavior")&&!((J=z.endpoint)==null?0:(r=J.commandMetadata)==null?0:(P=r.webCommandMetadata)==null?0:P.ignoreNavigation)&&(J=I.getCurrentPage())&&J.disconnectVisibilityRoot();I.prepareForNavigation(z.pageType,z.endpoint);_.K("kevlar_remove_page_dom_on_switch")||(this.pagePreparer=new _.NT(1,
"pcl"),_.tt(this.pagePreparer,I.preparePage.bind(I,z.pageType,z.endpoint)));J=this.getPageOffset();this.initHistoryManager(J);z.reload||this.hasPendingNavigation?(_.K("web_enable_delay_shorts_sequence_call")&&z.pageType==="shorts"&&_.PA(this.hostElement,"yt-shorts-reset"),this.replaceState(z.endpoint,a,J)):(a==null?void 0:a.page)==="watch"&&z.pageType==="watch"&&_.K("kevlar_replace_watch_to_watch_history_state")?this.replaceState(z.endpoint,a,J):(a==null?void 0:a.page)!=="shorts"||z.pageType!=="shorts"||
z.endpoint.reelWatchEndpoint.sequenceParams||_.K("short_to_short_back_nav_killswitch")?z.type!="navigate-back"&&z.type!="navigate-forward"&&(z.pageType==="shorts"&&_.PA(this.hostElement,"yt-shorts-reset"),this.saveAndPush(z.url,z.endpoint,a,J)):(_.K("web_enable_delay_shorts_sequence_call")&&(z.endpoint.reelWatchEndpoint.sequenceParams=a==null?void 0:a.cachedSequenceParams,z.endpoint.reelWatchEndpoint.sequenceProvider=a==null?void 0:a.cachedSequenceProvider),this.replaceState(z.endpoint,a,0));this.hasPendingNavigation=
!0};
var nez=function(a){a.hasPendingNavigation=!1;(a=_.ab().resolve(_.eL(tnE)))&&a.finish()};
m0.prototype.onYtNavigateError=function(a,z){nez(this);a=this.get("endpoint.commandMetadata.webCommandMetadata.url",z);var I=_.wq(window.location.href);a&&!I.pbjreload&&(z=z.navigationErrorReason||"10",_.K("kevlar_parent_on_pbjreload")&&(I={csn:_.TX()},this.get("data.endpoint.clickTrackingParams")&&(I.itct=this.data.endpoint.clickTrackingParams),_.el(a,I)),_.wY(_.ms(a,{pbjreload:z})))};
m0.prototype.onYtNavigateCache=function(a,z){var I=this,J=z.url,r=z.endpoint,P=z.data;a=!!z.miniplayer;z=!!z.skipHistory;if(J&&r&&P){var N=this.getPageOffset(),u=this.data||null;z||this.saveAndPush(J,r,u,N);J=_.g_1(_.ab().resolve(_.vw),r,P,a?4:3,{},a);a&&J.then(function(){I.dataUpdatePromise&&I.dataUpdatePromise.then(function(){var E=_.ab().resolve(_.aK);I.setPageOffset(E.getCurrentPage(),0)})})}};
m0.prototype.onYtNavigateFinish=function(a,z){var I=this;this.dataUpdatePromise&&this.dataUpdatePromise.then(function(){KVV(I,z.fromHistory)})};
var KVV=function(a,z){nez(a);if(a.pendingPlayerOnResponseReceivedActions){for(var I=_.C(a.pendingPlayerOnResponseReceivedActions),J=I.next();!J.done;J=I.next())_.fw(J.value,a.hostElement);a.pendingPlayerOnResponseReceivedActions=[]}I=_.ab().resolve(_.aK);z||!a.hasNavigated||_.K("web_disable_scroll_on_navigate_finish")||((z=I.getCurrentPage())?z.is==="ytd-shorts"||a.tabGesturesIsActive||a.setPageOffsetForNavigation(z,0):_.Xd(Error("cl")));_.lK(function(){_.lK(function(){_.Xz("pda")})})};
m0.prototype.onYtNavigate=function(a){if(!a.detail.endpoint){var z=new _.Fn("Error: Missing yt-navigate endpoint from target:",a.target,a.target.nodeName);_.Gx(z)}if(z=_.K("cold_missing_history"))z=yN(),z.init(!1),z=!(z.browserHistory.boundHistoryReplaceState&&z.browserHistory.boundHistoryPushState);if(z){_.$S("DISABLE_WARM_LOADS",!0);z=new _.Fn("Failed to initialize history manager",this.getDebugString());var I=navigator.userAgent&&navigator.userAgent.includes("Version/11.1.2 Safari");this.getThirdPartyManipulationSuspected()||
I?_.Xd(z):_.Gx(z)}z=a.detail.endpoint;var J,r;_.K("debug_forward_web_query_parameters")&&((J=z.commandMetadata)==null?0:(r=J.webCommandMetadata)==null?0:r.url)&&(z=JSON.parse(JSON.stringify(z)),z.commandMetadata.webCommandMetadata.url=_.lFx(z.commandMetadata.webCommandMetadata.url,window.location.search));a={type:0,command:z,form:{params:a.detail.params,tempData:a.detail.tempData||{},requestType:a.detail.type,createScreenConfig:a.detail.createScreenConfig,reload:a.detail.reload?a.detail.reload:!1,
requestForm:a.detail}};_.K("kevlar_yt_navigate_command_handler")?(J=_.ab().resolve(_.j6),a.form.skipDefaultElement=!0,J.resolveCommand(z,{form:a.form})):this.handleNavigate(a)};
m0.prototype.handleNavigate=function(a){this.hasSetScrollTopForNavigation=!1;var z=_.ab().resolve(_.vw),I=a.form||{};z.navigate(a.command,I.reload,I.params,I.tempData,I.requestType,I.createScreenConfig,I.ignoreConfirmation,I.requestForm)&&ArY(this,a.command,I.tempData)};
m0.prototype.onYtPageDataFetched=function(a,z){try{_.rdf().reset();this.data=z.pageData;this.dataUpdatePromise&&(this.dataUpdatePromise.cancel("canceled dataUpdatePromise_"),this.dataUpdatePromise=null);this.pendingPlayerOnResponseReceivedActions=[];this.dataUpdatePromise=_.ab().resolve(_.aK).updatePageData(this.data);if(!_.K("web_service_params_response_processor")){var I=this.get("playerResponse.responseContext.serviceTrackingParams",this.data);I&&XAi(I);var J=this.get("response.responseContext.serviceTrackingParams",
this.data);J&&XAi(J)}var r=this.get("playerResponse.onResponseReceivedActions",this.data);r&&(r=FVf(this,r));r&&_.tR(this.hostElement,r,this.hostElement);var P=this.get("playerResponse.responseContext.consistencyTokenJar",this.data),N=this.get("response.responseContext.consistencyTokenJar",this.data);if(P||N){var u=_.Vzd(),E=(0,_.x8.getValues)(u.tokenJars);P&&u.replace(E,P);N&&u.replace(E,N)}}catch(O){_.Gx(O)}};
var ArY=function(a,z,I){try{a.onYtEndpointChangeHandler(z,I)}catch(J){_.Gx(J)}};
_.Z=m0.prototype;_.Z.onYtEndpointChangeHandler=function(){};
_.Z.setPageTitle=function(a){a=(this.pageTitle=a)?a+" - "+this.titleSuffix:this.titleSuffix;document.title=(this.unseenNotificationCount?"("+this.unseenNotificationCount+") ":"")+a};
_.Z.onYtUpdateTitle=function(a,z){this.setPageTitle(z)};
_.Z.setUnseenNotificationCount=function(a){this.unseenNotificationCount=a;this.setPageTitle(this.pageTitle)};
_.Z.handleUpdateNotificationsUnseenCountAction=function(a){_.H(a,RGf)&&((a=_.H(a,RGf).unseenCount)?this.setUnseenNotificationCount(a):this.setUnseenNotificationCount(0))};
_.Z.handleClearCookieAction=function(a){var z;(a=(z=_.H(a,WPZ))==null?void 0:z.cookieName)&&_.C83(a)};
_.Z.onYtUpdateUnseenNotificationCount=function(a,z){this.setUnseenNotificationCount(z)};
_.Z.loadData=function(a){var z=this;this.loadDepsPromise.then(function(){var I=_.ab().resolve(_.eL(_.vw));I||_.Gx(Error("dl"));if(a&&a.response){if(!a.endpoint){var J=_.pL(window.document.location.href)||"/",r="";if(J==="/"||J.startsWith("/?"))r="WEB_PAGE_TYPE_BROWSE";a.endpoint={commandMetadata:{webCommandMetadata:{url:J,webPageType:r,rootVe:3854}}}}_.g_1(I,a.endpoint,a,5,{})}else a.endpoint?I.navigate(a.endpoint):I.navigate(_.VT);_.GW.cancelJob(z.zwiebackInitJobId);z.zwiebackInitJobId=_.GW.addLowPriorityJob(viE)})};
var yN=function(){return _.ab().resolve(_.Hs)};
m0.prototype.getDebugString=function(){return yN().getDebugString()};
m0.prototype.getThirdPartyManipulationSuspected=function(){return yN().getThirdPartyManipulationSuspected()};
m0.prototype.replaceState=function(a,z,I){yN().saveAndReplace(a,z,I)};
m0.prototype.saveAndPush=function(a,z,I,J){yN().saveAndPush(a,z,I,J)};
var fUY=function(a){return _.H(a.endpoint,_.MZ)||_.H(a.endpoint,_.hv)?!0:!a||isNaN(a.expirationTime)?!1:(0,_.jp)()>a.expirationTime},skG=function(a,z,I){var J=a.get("response.trackingParams",I),r=_.XZ(),P=_.TX();
if(J&&r&&P&&(J=a.get("response.responseContext.webResponseContextExtensionData.ytConfigData.rootVisualElementType",I),!J&&I.rootVe&&(J=I.rootVe),r=z?"forwardButton":"backButton",z=a.get("playerResponse.topbar.desktopTopbarRenderer."+r+".buttonRenderer.command.clickTrackingParams",a.data),a=a.get("response.topbar.desktopTopbarRenderer."+r+".buttonRenderer.command.clickTrackingParams",a.data),z=(a=z||a)?_.VX(a):void 0,a=_.Kw(),r=[_.uI(I)],_.fJ(a,J,z,{dataPromises:r,csnToClone:I.csn}),I.graftedVes))for(I=
_.C(I.graftedVes),J=I.next();!J.done;J=I.next())_.Aq(a,J.value)};
m0.prototype.onStoreGraftedVeAction=function(a){this.data?(this.data.graftedVes||(this.data.graftedVes=[]),this.data.graftedVes.push(a)):_.Xd(Error("el"))};
var FVf=function(a,z){return z.filter(function(I){for(var J in I)if(BDV[J])return a.pendingPlayerOnResponseReceivedActions.push(I),!0;return!1})};
_.eH.Object.defineProperties(m0.prototype,{csiServiceName:{configurable:!0,enumerable:!0,get:function(){}}});
m0.prototype.onStoreGraftedVeAction=m0.prototype.onStoreGraftedVeAction;m0.prototype.loadData=m0.prototype.loadData;m0.prototype.onYtUpdateUnseenNotificationCount=m0.prototype.onYtUpdateUnseenNotificationCount;m0.prototype.handleClearCookieAction=m0.prototype.handleClearCookieAction;m0.prototype.handleUpdateNotificationsUnseenCountAction=m0.prototype.handleUpdateNotificationsUnseenCountAction;m0.prototype.setUnseenNotificationCount=m0.prototype.setUnseenNotificationCount;
m0.prototype.onYtUpdateTitle=m0.prototype.onYtUpdateTitle;m0.prototype.setPageTitle=m0.prototype.setPageTitle;m0.prototype.onYtEndpointChangeHandler=m0.prototype.onYtEndpointChangeHandler;m0.prototype.onYtPageDataFetched=m0.prototype.onYtPageDataFetched;m0.prototype.handleNavigate=m0.prototype.handleNavigate;m0.prototype.onYtNavigate=m0.prototype.onYtNavigate;m0.prototype.onYtNavigateFinish=m0.prototype.onYtNavigateFinish;m0.prototype.onYtNavigateCache=m0.prototype.onYtNavigateCache;
m0.prototype.onYtNavigateError=m0.prototype.onYtNavigateError;m0.prototype.onYtNavigateStart=m0.prototype.onYtNavigateStart;m0.prototype.cancelPendingTasks=m0.prototype.cancelPendingTasks;m0.prototype.initHistoryManager=m0.prototype.initHistoryManager;m0.prototype.onYtHistoryLoad=m0.prototype.onYtHistoryLoad;m0.prototype.onYtHistoryPop=m0.prototype.onYtHistoryPop;m0.prototype.onYtNavigateSetPageOffset=m0.prototype.onYtNavigateSetPageOffset;m0.prototype.setPageOffset=m0.prototype.setPageOffset;
_.L([_.Q(_.Hc.YtActionHandlerBehavior),_.p("design:type",Object)],m0.prototype,"ytActionHandlerBehavior",void 0);_.L([_.x(),_.p("design:type",Object)],m0.prototype,"data",void 0);_.L([_.gz("yt-navigate-set-page-offset"),_.p("design:type",Function),_.p("design:paramtypes",[CustomEvent,Object]),_.p("design:returntype")],m0.prototype,"onYtNavigateSetPageOffset",null);
_.L([_.gz("yt-history-pop"),_.p("design:type",Function),_.p("design:paramtypes",[CustomEvent,Object]),_.p("design:returntype")],m0.prototype,"onYtHistoryPop",null);_.L([_.gz("yt-history-load"),_.p("design:type",Function),_.p("design:paramtypes",[Event,_.THj]),_.p("design:returntype")],m0.prototype,"onYtHistoryLoad",null);_.L([_.gz("yt-navigate"),_.p("design:type",Function),_.p("design:paramtypes",[CustomEvent]),_.p("design:returntype")],m0.prototype,"onYtNavigate",null);
_.L([_.gz("yt-update-title"),_.p("design:type",Function),_.p("design:paramtypes",[Event,String]),_.p("design:returntype")],m0.prototype,"onYtUpdateTitle",null);_.L([_.gz("yt-update-unseen-notification-count"),_.p("design:type",Function),_.p("design:paramtypes",[Event,Number]),_.p("design:returntype")],m0.prototype,"onYtUpdateUnseenNotificationCount",null);_.L([_.KM()],m0);uD0.YtdAppBehavior=[_.Hc.YtActionHandlerBehavior,m0.prototype];var kY=function(){var a=_.nM.apply(this,arguments)||this;a._noAccessors=!0;return a};
_.b(kY,_.nM);kY.prototype.ready=function(){var a=this;_.PK(this.hostElement).querySelector("#checkbox").addEventListener("change",function(){a.onChange_()})};
kY.prototype.dataChanged_=function(){_.PK(this.hostElement).querySelector("#checkbox").checked=!1};
kY.prototype.onChange_=function(){var a=_.PK(this.hostElement).querySelector("#checkbox").checked?"selected":"deselected";_.PA(this.hostElement,"yt-dismissal-reason-"+a,this.data.feedbackToken)};
kY.prototype.dataChanged_=kY.prototype.dataChanged_;_.L([_.x(),_.p("design:type",Object)],kY.prototype,"data",void 0);_.L([_.O8("data"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],kY.prototype,"dataChanged_",null);_.L([_.KM()],kY);var HOE=[kY.prototype];var MF=function(){var a=_.nM.apply(this,arguments)||this;a.timeoutJobId=0;a.actionMap={"yt-open-popup-action":"startTimeout","yt-close-popup-action":"cancelTimeout"};return a};
_.b(MF,_.nM);MF.prototype.ytdHatsSurveyBehaviorDataChanged=function(){this.cancelTimeout()};
MF.prototype.startTimeout=function(){var a=this,z=this.data&&this.data.displayDurationSeconds;z&&!this.timeoutJobId&&(this.timeoutJobId=_.b9(_.GW,function(){_.ZF(a.hostElement,"yt-close-popup-action",[a.is]);a.timeoutJobId=0},z*1E3))};
MF.prototype.cancelTimeout=function(){_.GW.cancelJob(this.timeoutJobId);this.timeoutJobId=0};
MF.prototype.ytdHatsSurveyBehaviorDataChanged=MF.prototype.ytdHatsSurveyBehaviorDataChanged;_.L([_.Q(_.Hc.YtActionHandlerBehavior),_.p("design:type",Object)],MF.prototype,"ytActionHandlerBehavior",void 0);_.L([_.O8("data"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],MF.prototype,"ytdHatsSurveyBehaviorDataChanged",null);_.L([_.KM()],MF);var bOZ=[_.Hc.YtActionHandlerBehavior,MF.prototype];var hPV=function(a,z){var I;return((I=a.prefixMapping)==null?0:I[z])?a.prefixMapping[z]:a.SHARED_RENDERERS_.hasOwnProperty(z)?"yt":a.prefix},cB={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}};cB.MEALBAR={component:"tp-yt-paper-dialog",properties:{keepBelowPlayer:!_.K("kevlar_mealbar_above_player"),modern:_.K("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"}};
cB.BOTTOM_SHEET={component:"tp-yt-paper-dialog",properties:{},styles:{position:"fixed",bottom:"0",width:"100%",margin:"0"}};cB.MODAL={component:"tp-yt-paper-dialog",properties:{modal:!0,modern:!0},forceFocus:!0,preventAutonav:!0};cB.LOCKED_MODAL={component:"tp-yt-paper-dialog",properties:{modal:!0,modern:!0,scrollAction:"lock"},forceFocus:!0,preventAutonav:!0};
cB.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)"}};
cB.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};
cB.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};
cB.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};
cB.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};cB.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"}};
cB.TOP_ALIGNED_DIALOG={component:"tp-yt-paper-dialog",properties:{withBackdrop:!0,verticalAlign:"top",horizontalAlign:"center"},styles:{margin:"8px 0 0 0"},targetContainer:!0};cB.TOAST={component:null,properties:{}};var Vn0=new function(a,z,I){this.supportedPopups=a;this.navigationEndpointPopupMap=z;this.popupTypeMap=I;this.supportedPopups=a;this.navigationEndpointPopupMap=z;this.popupTypeMap=I}({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:_.K("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"}),QkY=new function(){this.prefix="ytd";this.prefixMapping=void 0;this.SHARED_RENDERERS_=
{aboutThisAdRenderer:!0,bubbleHintRenderer:!0,confirmDialogRenderer:!0,fancyDismissibleDialogRenderer:!0,mealbarPromoRenderer:!0,notificationActionRenderer:!0,reportDetailsFormRenderer:!0,reportFormModalRenderer:!0,sharingEmbedRenderer:!0,sharingRenderer:!0,showActionDialogRenderer:!0,sortFilterSubMenuPopupRenderer:!0,tooltipRenderer:!0,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$19755_popupConfig=cB;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 Sjf=function(){this.pageNameToElement=new Map;this.TEST_ONLY=void 0;this.elementPoolPopulator=_.RW.getInstance()},YY=function(a,z){var I=a.pageNameToElement.get(z);
if(!I){switch(z){case "watch":var J=_.K("web_watch_force_learning_journey_for_testing")?_.C_("ytd-watch-learning-journey"):_.K("kevlar_watch_fixie")?_.C_("ytd-watch-fixie"):_.K("kevlar_watch_grid")?_.C_("ytd-watch-grid"):_.C_("ytd-watch-flexy");break;case "learning_journey_watch":J=_.C_("ytd-watch-learning-journey");break;case "shorts":J=_.C_("ytd-shorts");break;case "search":J=_.C_("ytd-search");break;case "channel":J=_.C_("ytd-browse");J.pageSubtype="channels";break;case "trending":J=_.C_("ytd-browse");
J.pageSubtype="trending";break;case "playlist":case "standalone":case "home":case "explore":case "learning":case "learning_journey_browse":case "live":case "news":case "sports":case "music":case "playables":case "mini_app":case "red":case "WEB_PAGE_TYPE_SETTINGS":case "history":case "labs":case "handle":case "subscriptions":case "filteredsubscriptions":case "memberships-and-purchases":case "channel-memberships-shopfront":case "yts-products":case "ypc-offers":case "ypc-checkout":case "fashion":case "hashtag-landing-page":case "show":case "open-in-app":case "audio-pivot":case "subscriptions-channels":J=
_.C_("ytd-browse");J.pageSubtype=z;break;case "browse":J=_.C_("ytd-browse");break;default:_.Xd(new _.Fn("Error getting page element for type",z))}I=J;a.pageNameToElement.set(z,I)}return I};
Sjf.prototype.preparePage=function(a,z,I){I&&(a=_.nH(I)||a);if(a!=="watch"&&a!=="learning_journey_watch"){var J=this.elementPoolPopulator,r=a;r!=J.targetPage_&&J.pendingPages_.indexOf(r)>-1&&(J.targetPage_&&(J.pendingPages_.unshift(J.targetPage_),J.abort()),nsY(J,r),_.v4w(J,r))}if((J=YY(this,a))||!_.H(I,_.pv)){J.isAttached||J===z||(J.hidden=!0);if(!J.data&&(a!=="watch"&&a!=="learning_journey_watch"||!_.K("swatcheroo_page_pool_dont_provide_filler_data"))){var P;if(a=(P=_.Xw("FILLER_DATA",{})[a])==
null?void 0:P.response)J.data=a}return J}};var iOE=function(a){this.JSC$31893_clientRoot=a;this.playlistHandlerActionMap={"yt-add-to-playlist-command":D3E,"yt-end-playlist-command":Rw0,"yt-recover-playlist-command":lLM,"yt-refresh-playlist-command":m3G,"yt-playlist-remove-videos-action":pKE};_.m_(_.w2.getInstance(),this.playlistHandlerActionMap,this.JSC$31893_clientRoot);xAe()},xnV;var qF=function(a,z,I){this.apiKey=a;this.endpoint=z;this.confidenceThreshold=I===void 0?.5:I;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=z==="https://embeddedassistant-webchannel.googleapis.com/google.assistant.embedded.v1.EmbeddedAssistant/YTAssist/channel"||z==="https://embeddedassistant-clients6.youtube.com/google.assistant.embedded.v1.EmbeddedAssistant/YTAssist/channel"||
z==="https://embeddedassistant-frontend-webchannel.googleapis.com/google.assistant.embedded.v1.EmbeddedAssistant/YTAssist/channel"||z==="https://embeddedassistant-frontend-clients6.youtube.com/google.assistant.embedded.v1.EmbeddedAssistant/YTAssist/channel";new $gZ};
_.Z=qF.prototype;
_.Z.start=function(a){if(this.state===0)if(this.isOnline()){a.supportsHttpHeadersOverwriteParam!==void 0&&(this.supportsHttpHeadersOverwriteParam=a.supportsHttpHeadersOverwriteParam);a.startCustomCsiTimeline!==void 0&&(this.startCustomCsiTimeline=a.startCustomCsiTimeline);this.startCustomCsiTimeline&&_.$A("voice_assistant");_.Tb("voz_ms",void 0,"voice_assistant");this.state=1;this.receivedEndOfUtterance=!1;this.languageCode=a.languageCode||"en-US";this.supportsCrossDomainXhr=a.supportsCrossDomainXhr||this.supportsCrossDomainXhr;
this.youtubeAssistantRequest=a.youtubeAssistantRequest||null;this.listeningHandler=a.listeningHandler||this.listeningHandler;this.audioDetectedHandler=a.audioDetectedHandler||this.audioDetectedHandler;this.stopHandler=a.stopHandler||this.stopHandler;this.completeHandler=a.completeHandler||this.completeHandler;this.transcriptionCompleteHandler=a.transcriptionCompleteHandler||this.transcriptionCompleteHandler;this.vaaConsentUpdateHandler=a.vaaConsentUpdateHandler||this.vaaConsentUpdateHandler;this.errorHandler=
a.errorHandler||this.errorHandler;this.transcriptionUpdateHandler=a.transcriptionUpdateHandler||this.transcriptionUpdateHandler;this.accessToken=a.accessToken;this.additionalHeaders=a.additionalHeaders||{};var z;this.prefetchResponseTimeoutMs=(z=a.prefetchResponseTimeoutMs)!=null?z:this.prefetchResponseTimeoutMs;ve0(this);this.startAudio();GDY(this)}else this.errorHandler("OFFLINE")};
_.Z.stop=function(a){var z=a===void 0?{}:a;a=z.logCancel===void 0?!0:z.logCancel;var I=z.logMicClosed===void 0?!0:z.logMicClosed;var J=z.handleError===void 0?!0:z.handleError;z=z.handleStop===void 0?!0:z.handleStop;this.state!==0&&(a&&eh("voz_cx"),a8(this,{logMicClosed:I,handleStop:z}),J&&this.errorHandler("ABORTED"))};
_.Z.getState=function(){return this.state};
_.Z.isSupported=function(){return!0};
_.Z.stopAudio=function(a){(a===void 0||a)&&eh("voz_mf")};
_.Z.startAudio=function(){eh("voz_vp");return _.uI(null)};
var $nY=function(a,z){a.channelOpen&&(a.state!==2&&(a.state=2,eh("voz_ss"),a.listeningHandler()),z=new Uint8Array(z),z='{ "audioIn": "'+_.he(z)+'" }',a.channel.send(z))},a8=function(a,z){var I=z===void 0?{}:z;
z=I.logMicClosed===void 0?!0:I.logMicClosed;I=I.handleStop===void 0?!0:I.handleStop;a.vozEndOfDataTimeout>-1&&(clearTimeout(a.vozEndOfDataTimeout),a.vozEndOfDataTimeout=-1);XI4(a);a.stopAudio(z);a.channel&&(a.channelOpen=!1,a.manuallyClosedChannel=!0,a.channel.close(),a.channel=void 0);a.transcribedSpeechResults=[];a.state=0;I&&a.stopHandler()},ve0=function(a){var z={httpHeadersOverwriteParam:a.supportsHttpHeadersOverwriteParam?"$httpHeaders":void 0,
httpSessionIdParam:"gsessionid",sendRawJson:!0,initMessageHeaders:Object.assign({},a.additionalHeaders,a.accessToken&&a.isUsingVoz?{Authorization:"Bearer "+a.accessToken}:{"x-goog-api-key":a.apiKey}),supportsCrossDomainXhr:a.supportsCrossDomainXhr};a.channel=new e3(a.endpoint,z);a.channel.open();_.Sg(a.channel,"w",function(){var I=a.channel,J=I.send,r=a.isUsingVoz?"PLACEHOLDER":"example";r={config:{dialogStateIn:{languageCode:a.languageCode},deviceConfig:{deviceId:r,deviceModelId:r},audioInConfig:{encoding:"LINEAR16",
sampleRateHertz:16E3},audioOutConfig:{encoding:"MP3",sampleRateHertz:22050,volumePercentage:0}}};if(!a.isUsingVoz)r.config.requestType=4;else if(a.isUsingVoz&&a.youtubeAssistantRequest){var P=JSON.stringify(a.youtubeAssistantRequest);r.config.internalIn={youtubeAssistantS3InputJson:P}}J.call(I,r);a.channelOpen=!0;a.manuallyClosedChannel=!1});
_.Sg(a.channel,"x",function(){a.manuallyClosedChannel||(a.channelOpen=!1,a.channel=void 0,a8(a))});
_.Sg(a.channel,"z",function(I){if(I.data){XI4(a);for(var J=0;J<I.data.length;J++){var r=a,P=I.data[J],N=P.speechResults;if(N)a:{var u=[];P=[];var E=!1;N=_.C(N);for(var O=N.next();!O.done;O=N.next()){O=O.value;if(O.noSpeech){a8(r);r.errorHandler("NO_SPEECH");break a}O.transcript!==void 0&&O.stability!==void 0&&(O.stability<r.confidenceThreshold&&(E=!0),E?P.push(O.transcript):u.push(O.transcript))}if(u.length!==0||P.length!==0)u=u.join(" "),P=P.join(" "),r.receivedEndOfUtterance&&!r.isUsingVoz?r.isUsingVoz||
r.completeHandler([u,P]):(E=r,N=u,O=P,eh("voz_sf"),E.transcriptionUpdateHandler(N,O),E.transcribedSpeechResults=[N,O]),r.receivedEndOfUtterance&&(eh("voz_eou"),r.transcriptionCompleteHandler([u,P]),r.isUsingVoz&&(r.prefetchResponseTimeoutMs===0?a8(r,{logMicClosed:!1,handleStop:!0}):r.prefetchResponseTimeoutMs>0&&TDE(r)))}else r.isUsingVoz&&(P==null?0:P.internalOut)?(P=JSON.parse(P.internalOut.youtubeAssistantS3OutputJson),P.userHasOptedInToVaa||P.vaaConsent?r.vaaConsentUpdateHandler(!!P.userHasOptedInToVaa,
!!P.vaaConsent):(dnz(r),P&&(u=r.transcribedSpeechResults,eh("voz_rqf"),r.completeHandler(u,P)))):P.eventType==="END_OF_UTTERANCE"?r.receivedEndOfUtterance=!0:(eh("voz_err"),r.errorHandler("UNEXPECTED_ASSISTANT_RESPONSE"),_.Xd(Error("fl")))}}});
_.Sg(a.channel,"y",function(I){a8(a);switch(I.status){case 1:I="WEBCHANNEL_NETWORK_ERROR";break;case 2:I="WEBCHANNEL_SERVER_ERROR";break;default:I="WEBCHANNEL_UNKNOWN_ERROR"}a.errorHandler(I);a.logError(Error(I))})};
qF.prototype.logError=function(a){_.Gx(a)};
qF.prototype.isOnline=function(){return!0};
var TDE=function(a){dnz(a);a.prefetchResponseSetTimeoutId=setTimeout(function(){a8(a,{logMicClosed:!1,handleStop:!0})},a.prefetchResponseTimeoutMs)},dnz=function(a){a.prefetchResponseSetTimeoutId>-1&&(clearTimeout(a.prefetchResponseSetTimeoutId),a.prefetchResponseSetTimeoutId=-1)},GDY=function(a){XI4(a);
a.noResponseReceivedTimeout=window.setTimeout(function(){a8(a);a.errorHandler("NO_SPEECH")},11E3)},XI4=function(a){a.noResponseReceivedTimeout>-1&&(window.clearTimeout(a.noResponseReceivedTimeout),a.noResponseReceivedTimeout=-1)},eh=function(a){_.Xz(a,void 0,"voice_assistant")};var j1=function(){qF.apply(this,arguments);this.audioContext=this.processor=null;this.audioDetected=!1};
_.b(j1,qF);j1.prototype.isSupported=function(){return y3E()};
j1.prototype.startAudio=function(){var a=this;if(!navigator||!navigator.mediaDevices||!navigator.mediaDevices.getUserMedia)return _.xN(null);this.audioContext=new (window.AudioContext||window.webkitAudioContext)({latencyHint:"interactive"});this.processor=this.audioContext.createScriptProcessor(1024,1,1);this.processor.onaudioprocess=function(J){WVE(a,J)};
this.processor.connect(this.audioContext.destination);var z=function(J){a.stream=J;if(!a.audioContext)return _.uI(null);J=a.audioContext.createMediaStreamSource(J);a.processor&&J.connect(a.processor);return _.uI(null)},I={audio:{sampleSize:16,
channelCount:1},video:!1};this.stream?z(this.stream):(I=navigator.mediaDevices.getUserMedia(I))?I.then(z).catch(function(J){a8(a);J.name&&J.name==="NotAllowedError"?a.errorHandler("NO_MICROPHONE_PERMISSION"):(a.errorHandler("AUDIO_ERROR"),a.logError(J));return _.xN(null)}):(a8(this),this.errorHandler("AUDIO_ERROR"),_.Xd(Error("gl")));
return qF.prototype.startAudio.call(this)};
j1.prototype.stopAudio=function(a){a=a===void 0?!0:a;this.audioContext&&(this.audioContext.state==="running"&&this.processor&&(this.processor.onaudioprocess=function(){}),this.audioContext.close(),this.audioContext=null,this.stream&&(this.stream.getAudioTracks().forEach(function(z){z.stop()}),this.stream=null));
this.processor=null;this.audioDetected=!1;qF.prototype.stopAudio.call(this,a)};
j1.prototype.isOnline=function(){return navigator.onLine};
var WVE=function(a,z){if(a.audioContext)if(window.OfflineAudioContext){var I=a.audioContext.sampleRate,J=z.inputBuffer.getChannelData(0);z=new window.OfflineAudioContext(1,J.length,16E3);for(var r=z.createBuffer(1,J.length,I),P=r.getChannelData(0),N=0,u=0;u<J.length;u++)P[u]=J[u],N+=P[u]*P[u];!a.audioDetected&&Math.sqrt(N/J.length)>.01&&(a.audioDetected=!0,a.audioDetectedHandler());J=z.createBufferSource();J.buffer=r;J.connect(z.destination);J.start(0);z.oncomplete=function(E){E=E.renderedBuffer.getChannelData(0);
for(var O=Math.floor(16384E3/I),f=new Int16Array(O),A=0;A<O;++A)f[A]=Math.max(-1,Math.min(1,E[A]))*32767;$nY(a,f.buffer)};
z.startRendering()}else oeZ(a,z)},oeZ=function(a,z){var I=a.audioContext.sampleRate,J=z.inputBuffer.getChannelData(0),r=Math.floor((I+8E3)/16E3);
I=J.length/r;z=new Float32Array(I);for(var P=0;P<I;++P)z[P]=J[P*r];J=new Int16Array(I);for(r=0;r<I;++r)J[r]=Math.max(-1,Math.min(1,z[r]))*32767;$nY(a,J.buffer)};var UnM={FAILURE:"failure",NO_INPUT:"no_input",OPEN:"open",SUCCESS:"success"};var Dni=function(){this.JSC$19820_audioEnabled=!0;this.audioFeedbackHolder={}};
Dni.prototype.isPlaying=function(a){return a.currentTime>0&&!a.paused&&!a.ended&&a.readyState>2};
var RPe=function(a){for(var z=_.C(Object.values(UnM)),I=z.next();!I.done;I=z.next())I=I.value,a.audioFeedbackHolder[I]=new Audio,a.audioFeedbackHolder[I].src="/s/search/audio/"+I+".mp3",a.audioFeedbackHolder[I].load()},zM=function(a,z){if(a.JSC$19820_audioEnabled!==!1&&z in a.audioFeedbackHolder){for(var I=_.C(Object.values(a.audioFeedbackHolder)),J=I.next();!J.done;J=I.next())J=J.value,a.isPlaying(J)&&J.pause();
a.audioFeedbackHolder[z].currentTime=0;a.audioFeedbackHolder[z].play().catch(function(){})}};var LVM=function(a,z){var I=this;this.store=a;this.service=z;this.stream=null;this.permissionsSupported=!0;this.enableFirstPartyAuth=this.enableInlineSearchResponse=!1;this.audioPlayer=null;this.enableFPAForSignedInUsers=this.disableHttpHeadersOverwrite=!1;this.handleOfflineEvent=function(){I.setState("offline");I.stop()};
this.audioPlayer=new Dni;var J;(J=this.audioPlayer)==null||RPe(J)};
_.Z=LVM.prototype;_.Z.getService=function(){return this.service};
_.Z.isEnabled=function(){return!!this.service};
_.Z.isSupported=function(){var a;return(a=this.service)==null?void 0:a.isSupported()};
_.Z.start=function(){var a=this,z,I,J,r,P,N,u,E,O,f,A,n,F;return _.t(function(h){switch(h.nextAddress){case 1:a.store.dispatch(wq0("",""));if(!navigator.onLine)return a.setState("offline"),h.return();window.addEventListener("offline",a.handleOfflineEvent);a.stream=null;if(!a.permissionsSupported){h.jumpTo(2);break}_.BP(h,3);return h.yield(lUE(a),5);case 5:z=h.yieldResult;if(!z)return(I=a.audioPlayer)==null||zM(I,"failure"),h.return();a.service.stream=a.stream;a.setState("listening");_.p1(h,2);break;
case 3:_.sk(h),a.permissionsSupported=!1;case 2:J={context:_.ghp(_.I3())},J.youtubeAssistantParams={searchParams:{inlineSearchResponse:a.enableInlineSearchResponse}},r=function(v,d){a.store.dispatch(ml0("transcribing"));a.store.dispatch(wq0(v,d))},P=function(){var v;
(v=a.audioPlayer)==null||zM(v,"open");a.setState("listening")},N=function(){a.setState("transcribing")},u=function(v){a.setErrorState(v)},E=function(v,d){var W;
(W=a.audioPlayer)==null||zM(W,"success");d&&(_.K("kevlar_voice_search_inline_search")&&(a.responseProcessor=_.ab().resolve(_.CBd),a.responseProcessor&&(W=d.navigationAction,v=d.prefetchedSearchResponse,W&&v&&(W=(new _.tIZ).JSC$13013_getStoreKey(W),_.lg(a.responseProcessor,v,W)))),a.JSC$19838_actionRouter.triggerOptionalAction("yt-speech-query-complete-action",d))},O=function(){window.removeEventListener("offline",a.handleOfflineEvent)},f=_.bH1(!1),A=f.Authorization!=null,n=a.enableFirstPartyAuth||
a.enableFPAForSignedInUsers&&A?f:{"X-Goog-Visitor-Id":f["X-Goog-Visitor-Id"]},F={completeHandler:E,
errorHandler:u,listeningHandler:P,audioDetectedHandler:N,stopHandler:O,transcriptionUpdateHandler:r,youtubeAssistantRequest:J,languageCode:pIZ(),additionalHeaders:n,supportsCrossDomainXhr:a.enableFirstPartyAuth||a.enableFPAForSignedInUsers&&A,supportsHttpHeadersOverwriteParam:!a.disableHttpHeadersOverwrite},a.service.start(F),_.nu(h)}})};
_.Z.stop=function(){this.service.getState()!==0&&this.service.stop()};
_.Z.reset=function(){this.store.dispatch(_.rg({type:"RESET_VOICE_SEARCH_STATE"}))};
_.Z.setState=function(a){this.store.dispatch(ml0(a))};
_.Z.setErrorState=function(a){switch(a){case "OFFLINE":case "WEBCHANNEL_NETWORK_ERROR":case "WEBCHANNEL_SERVER_ERROR":case "WEBCHANNEL_UNKNOWN_ERROR":var z;(z=this.audioPlayer)==null||zM(z,"failure");this.setState("offline");break;case "NO_MICROPHONE_PERMISSION":if(this.permissionsSupported)lUE(this);else{var I;(I=this.audioPlayer)==null||zM(I,"failure");this.setState("permission-denied")}break;case "ABORTED":var J;(J=this.audioPlayer)==null||zM(J,"no_input");break;default:var r;(r=this.audioPlayer)==
null||zM(r,"no_input");this.setState("timeout")}};
var lUE=function(a){var z,I;return _.t(function(J){switch(J.nextAddress){case 1:return J.yield(navigator.permissions.query({name:"microphone"}),2);case 2:z=J.yieldResult;if(z.state==="granted")return J.return(!0);if(z.state==="denied")return a.setState("permission-denied"),J.return(!1);a.setState("permission");I={audio:{sampleSize:16,channelCount:1},video:!1};_.BP(J,3);return J.yield(navigator.mediaDevices.getUserMedia(I),5);case 5:return a.stream=J.yieldResult,J.return(!0);case 3:return _.sk(J),
a.setState("permission-denied"),J.return(!1)}})},pIZ=function(){var a=_.Xw("INNERTUBE_CONTEXT_HL"),z=_.Xw("INNERTUBE_CONTEXT_GL");
return a.indexOf("-")>-1?a:a+"-"+z};var wIE=function(a,z,I){LVM.call(this,z,I);this.JSC$19838_actionRouter=a;this.enableInlineSearchResponse=_.K("kevlar_voice_search_inline_search");this.enableFirstPartyAuth=_.K("kevlar_voice_search_auth_enabled");this.disableHttpHeadersOverwrite=!0;this.enableFPAForSignedInUsers=_.K("kevlar_voice_search_enable_fpa_signedin_users")},mnM;
_.b(wIE,LVM);
var yrM=function(){if(!mnM){var a="https://embeddedassistant-webchannel.googleapis.com/google.assistant.embedded.v1.EmbeddedAssistant/YTAssist/channel";_.K("kevlar_voice_search_auth_enabled")||_.K("kevlar_voice_search_use_yt_endpoint")?a="https://embeddedassistant-frontend-clients6.youtube.com/google.assistant.embedded.v1.EmbeddedAssistant/YTAssist/channel":_.K("kevlar_voice_search_use_fp_endpoint")&&(a="https://embeddedassistant-clients6.youtube.com/google.assistant.embedded.v1.EmbeddedAssistant/YTAssist/channel");mnM=
new wIE(_.w2.getInstance(),_.qo(),new j1(_.Xw("VOZ_API_KEY"),a,.5))}return mnM};var kD0=function(a){this.JSC$19842_clientRoot=a;this.autonavPauseReasons={scroll:!1,inputBoxFocus:!1,overlayOpen:!1,guideOpen:!1,backgroundAndMute:!1,requestedByPlayer:!1,longIdle:!1,youthereLactExperiment:!1,userEngagement:!1};this.autonavPauseActionMap={"ytd-log-youthere-nav":this.onYtEndpointChanged.bind(this),"yt-autonav-pause-user-engagement":this.onYtAutonavPauseUserEngagement.bind(this),"yt-user-activity":this.onYtUserActivity.bind(this),"yt-get-autonav-pause-debug-state":this.onYtGetAutonavPauseDebugState.bind(this)};
this.userEngagementCsn=null;this.eventListeners=new Map;this.eventListeners.set(document,new Map([["visibilitychange",this.onYtAutonavVisibilityChanged.bind(this)]]));this.eventListeners.set(this.JSC$19842_clientRoot,new Map([["iron-overlay-opened",this.onIronOverlayOpened.bind(this)],["iron-overlay-closed",this.onIronOverlayClosed.bind(this)],["yt-autonav-pause-focus",this.onYtAutonavPauseFocus.bind(this)],["yt-autonav-pause-blur",this.onYtAutonavPauseBlur.bind(this)],["yt-autonav-pause-guide-opened",
this.onYtAutonavPauseGuideOpened.bind(this)],["yt-autonav-pause-guide-closed",this.onYtAutonavPauseGuideClosed.bind(this)],["yt-autonav-pause-scroll",this.onYtAutonavPauseScroll.bind(this)],["yt-autonav-pause-player",this.onYtAutonavPausePlayer.bind(this)],["yt-autonav-pause-player-ended",this.onYtAutonavPausePlayerEnded.bind(this)]]));a=_.C(this.eventListeners);for(var z=a.next();!z.done;z=a.next()){var I=_.C(z.value);z=I.next().value;I=I.next().value;I=_.C(I);for(var J=I.next();!J.done;J=I.next()){var r=
_.C(J.value);J=r.next().value;r=r.next().value;z.addEventListener(J,r)}}_.m_(_.w2.getInstance(),this.autonavPauseActionMap,this.JSC$19842_clientRoot)},MnM,crM=function(a){return _.K("kevlar_autonav_popup_filtering")?(a=_.Yh(a))?a.hasAttribute("prevent-autonav"):!0:!0};
_.Z=kD0.prototype;_.Z.onIronOverlayOpened=function(a){crM(a)&&(this.autonavPauseReasons.overlayOpen=!0,I8(this))};
_.Z.onIronOverlayClosed=function(a){crM(a)&&(this.autonavPauseReasons.overlayOpen=!1,I8(this))};
_.Z.onYtAutonavPauseFocus=function(){this.autonavPauseReasons.inputBoxFocus=!0;I8(this)};
_.Z.onYtAutonavPauseBlur=function(){var a=this;_.GW.addJob(function(){a.isInBackground()||(a.autonavPauseReasons.inputBoxFocus=!1,I8(a))},8,0)};
_.Z.onYtAutonavPauseGuideOpened=function(){this.autonavPauseReasons.guideOpen=!0;I8(this)};
_.Z.onYtAutonavPauseGuideClosed=function(){this.autonavPauseReasons.guideOpen=!1;I8(this)};
_.Z.onYtAutonavPauseScroll=function(){var a=_.ab().resolve(_.aK);a.isOnWatch()&&(a=a.getCurrentPage().getPlayerContainer())&&(this.autonavPauseReasons.scroll=a.getBoundingClientRect().top<-200,I8(this))};
_.Z.onYtAutonavPauseUserEngagement=function(a){var z=this;if(_.K("user_engagement_enable_autoplay_pause_feature")){var I=Number(a.lowEngagementThresholdMs);isNaN(I)||I<=0||a.lowUserEngagementAction!=="LOW_USER_ENGAGEMENT_ACTION_PAUSE_AUTOPLAY"?_.B$("YOU_THERE_EVENT_TYPE_F_AUTONAV_INVALID_LACT_THRESHOLD"):(_.ab().resolve(_.V7),_.IO()<I?_.b9(_.GW,function(){_.B$("YOU_THERE_EVENT_TYPE_F_AUTONAV_BELOW_LACT_THRESHOLD")}):_.i6M()?(this.userEngagementCsn=_.TX(),_.b9(_.GW,function(){_.B$("YOU_THERE_EVENT_TYPE_F_AUTONAV_PAUSE_ENABLED",
z.userEngagementCsn)}),this.autonavPauseReasons.userEngagement=!0,I8(this)):_.B$("YOU_THERE_EVENT_TYPE_F_AUTONAV_RATE_LIMITED"))}else _.QKG(Error("hl`"+JSON.stringify(a)))};
_.Z.onYtAutonavPausePlayer=function(a){this.autonavPauseReasons.requestedByPlayer=!!a.detail;I8(this)};
_.Z.onYtAutonavVisibilityChanged=function(){var a=this,z,I,J;return _.t(function(r){if(r.nextAddress==1)return(z=_.zI())?r.yield(z.getPlayerPromise(),2):r.return();I=r.yieldResult;J=I.isMuted()||I.getVolume()===0;a.autonavPauseReasons.backgroundAndMute=a.isInBackground()&&J;I8(a);_.nu(r)})};
_.Z.onYtAutonavPausePlayerEnded=function(){_.ab().resolve(_.V7);var a=144E5;_.K("user_engagement_enable_autoplay_pause_feature")||_.K("is_part_of_any_user_engagement_experiment")||(a=45E5);this.autonavPauseReasons.longIdle=_.IO()>a;Yj4(this);I8(this)};
_.Z.onYtUserActivity=function(){var a=this;this.autonavPauseReasons.userEngagement&&(_.b9(_.GW,function(){_.B$("YOU_THERE_EVENT_TYPE_F_AUTONAV_PAUSE_DISABLED_BY_LACT_RESET",a.userEngagementCsn)}),this.autonavPauseReasons.userEngagement=!1,I8(this));
this.autonavPauseReasons.youthereLactExperiment&&(_.b9(_.GW,function(){_.B$("YOU_THERE_EVENT_TYPE_AUTOPLAY_RESUMED",a.userEngagementCsn);_.va()}),this.autonavPauseReasons.youthereLactExperiment=!1,I8(this));
this.autonavPauseReasons.longIdle&&!_.K("disable_kevlar_resume_autonav_after_user_activity")&&(this.autonavPauseReasons.longIdle=!1,I8(this))};
_.Z.isInBackground=function(){var a=window.document.visibilityState;return!(!a||a==="visible")};
var I8=function(a){for(var z=!1,I=_.C(Object.values(a.autonavPauseReasons)),J=I.next();!J.done;J=I.next())J=J.value,z=z||J;z?_.PS.getInstance().pause(a.autonavPauseReasons):(a=_.PS.getInstance(),a.autonavState_==3?(a.setState(2,!1,!1),a.autonavPauseReason_=void 0):a.autonavState_==1&&(a.disabledAutonavPauseReason_=void 0))},Yj4=function(a){var z=!1;
if(_.K("enable_autoplay_pause_by_lact")){_.ab().resolve(_.V7);z=_.Ib("autoplay_pause_by_lact_sec")*1E3;var I=_.Ib("autoplay_pause_by_lact_sampling_fraction");(z=_.IO()>=z&&Math.random()<I)&&!_.i6M()&&(_.b9(_.GW,function(){_.B$("YOU_THERE_EVENT_TYPE_AUTOPLAY_RATE_LIMITED")}),z=!1)}z!==a.autonavPauseReasons.youthereLactExperiment&&(a.autonavPauseReasons.youthereLactExperiment=z)&&(a.userEngagementCsn=_.TX(),_.b9(_.GW,function(){_.B$("YOU_THERE_EVENT_TYPE_AUTOPLAY_PAUSED",a.userEngagementCsn)}));
a.autonavPauseReasons.userEngagement&&_.b9(_.GW,function(){_.B$("YOU_THERE_EVENT_TYPE_F_AUTONAV_PAUSED",a.userEngagementCsn)})};
kD0.prototype.onYtEndpointChanged=function(){this.autonavPauseReasons.youthereLactExperiment&&(_.B$("YOU_THERE_EVENT_TYPE_AUTOPLAY_NAVIGATED_OUT",this.userEngagementCsn),_.va(),this.autonavPauseReasons.youthereLactExperiment=!1,I8(this));this.autonavPauseReasons.userEngagement&&(_.B$("YOU_THERE_EVENT_TYPE_F_AUTONAV_NAVIGATED_OUT",this.userEngagementCsn),this.autonavPauseReasons.userEngagement=!1,I8(this))};
kD0.prototype.onYtGetAutonavPauseDebugState=function(){return JSON.stringify(this.autonavPauseReasons)};var Jk=function(){var a=_.G.apply(this,arguments)||this;a.miniGuideVisible=!1;a.guideOpened=_.K("disable_initial_guide_state_fix")?!1:a.canFitPersistentGuide(a.initialBodyClientWidth);a.guideUserStateOpened=a.getInitialGuideUserStateOpened();a.isFullscreenShorts=!1;a.miniGuideWidthThreshold=_.Ib("kevlar_mini_guide_width_threshold",791);a.persistentGuideBlockedPages="/clip /musicpremium /new /handle /premium /premiumlite /red /watch /contribute-notes".split(" ");a.persistentGuideBlockedPagesPatterns=
"^/clip(/|$) ^/musicpremium(/|$) ^/new(/|$) ^/handle(/|$) ^/premium(/|$) ^/premiumlite(/|$) ^/red(/|$) ^/watch(/|$) ^/playables/(?!saved). ^/contribute-notes(/|$)".split(" ");a.persistentGuideBlockedPagePathRegex=new RegExp(a.persistentGuideBlockedPagesPatterns.join("|"));a.animationTransitionDuration=0;a.lateDataResolver=_.kq();a.initialGuideDataFetchFailed=!1;a.initialLoad=!0;a.guideRenderers=new Set;a.isMouseOverGuide=!1;a.sessionUserManuallyExpandedGuideState=!1;a.actionMap={"yt-start-loading-watch":"startLoadingWatch",
"yt-start-loading-shorts":"startLoadingShorts","yt-mini-guide-mouseentered":"handleMiniGuideMouseEnter","yt-guide-mouseleaved":"handleGuideMouseLeave"};return a};
_.b(Jk,_.G);_.Z=Jk.prototype;_.Z.onGuidePersistendAndVisibleChanged=function(){this.hostElement.dispatchEvent(new CustomEvent("guide-persistent-and-visible-changed",{detail:{value:this.guidePersistentAndVisible,queueProperty:!0}}))};
_.Z.onGuideIsVisibleButNotPersistentChanged=function(){this.hostElement.dispatchEvent(new CustomEvent("guide-is-visible-but-not-persistent-changed",{detail:{value:this.guideIsVisibleButNotPersistent,queueProperty:!0}}))};
_.Z.onMiniGuideVisibleChanged=function(){this.hostElement.dispatchEvent(new CustomEvent("mini-guide-visible-changed",{detail:{value:this.miniGuideVisible,queueProperty:!0}}))};
_.Z.onActiveEndpointChanged=function(){this.hostElement.dispatchEvent(new CustomEvent("active-endpoint-changed",{detail:{value:this.activeEndpoint,queueProperty:!0}}))};
_.Z.onRenderGuideChanged=function(){this.hostElement.dispatchEvent(new CustomEvent("render-guide-changed",{detail:{value:this.renderGuide,queueProperty:!0}}))};
_.Z.onGuidePersistentChanged=function(){this.hostElement.dispatchEvent(new CustomEvent("guide-persistent-changed",{detail:{queueProperty:!0,value:this.guidePersistent}}))};
_.Z.ready=function(){_.ab().addProvider({provide:_.M5,useValue:this.hostElement})};
_.Z.attached=function(){var a=this;this.cachedClientWidth=this.initialBodyClientWidth;this.resetGuide();document.addEventListener("yt-navigate-finish",_.BK(this,this.onYtNavigateFinish));document.addEventListener("yt-guide-toggle",_.BK(this,this.onYtGuideToggle));document.addEventListener("yt-guide-close",_.BK(this,this.onYtGuideClose));document.addEventListener("yt-guide-show",_.BK(this,this.onYtGuideShow));_.Yv(this,function(){a.animationTransitionDuration=200})};
_.Z.detached=function(){document.removeEventListener("yt-navigate-finish",_.BK(this,this.onYtNavigateFinish));document.removeEventListener("yt-guide-toggle",_.BK(this,this.onYtGuideToggle));document.removeEventListener("yt-guide-close",_.BK(this,this.onYtGuideClose));document.removeEventListener("yt-guide-show",_.BK(this,this.onYtGuideShow));this.guideElement&&(this.guideElement.removeEventListener("opened-changed",_.BK(this,this.onDrawerOpenedChanged)),this.guideElement.removeEventListener("app-drawer-transitioned",
_.BK(this,this.onAppDrawerTransitioned)),this.guideElement.removeEventListener("app-drawer-transitioned",_.BK(this,this.onAppDrawerTransitionedFromKeyInput)))};
_.Z.getData=function(){return this.data};
_.Z.load=function(){var a=this,z,I,J,r;return _.t(function(P){switch(P.nextAddress){case 1:if(!window.ytInitialGuideData&&window.ytInitialGuideDataPresent)return window.loadGuideDataHook=a.lateDataResolver.resolve.bind(a),P.return(a.lateDataResolver.promise);if(window.ytInitialGuideData)return z=_.kq(),z.resolve(window.ytInitialGuideData),P.return(z.promise);J=!1;_.BP(P,2);return P.yield(a.fetchGuideData(),4);case 4:I=P.yieldResult;_.p1(P,3);break;case 2:r=_.sk(P),r.message==="Returned error"&&(J=
!0);case 3:if(I)return P.return(I);a.onYtGuideClose();J||(a.initialGuideDataFetchFailed=!0);return P.return(a.lateDataResolver.promise)}})};
_.Z.fetchGuideData=function(){var a=this,z,I,J,r,P,N,u;return _.t(function(E){if(E.nextAddress==1)return z=_.ab(),a.guidePromise||(I=z.resolve(_.dY),a.guidePromise=_.y7(I,wnZ)),E.yield(a.guidePromise,2);if(E.nextAddress!=3)return J=E.yieldResult,r=z.resolve(_.Zp),E.yield(r(),3);(P=E.yieldResult)&&((N=J)==null?void 0:(u=N.responseContext)==null?void 0:u.maxAgeSeconds)!==0&&P.put("service:guide:fallback",new _.s3({innertubeResponse:J}));return E.return(J)})};
_.Z.initializeGuideDataIfEmpty=function(){var a=this,z,I;return _.t(function(J){if(J.nextAddress==1){if(!a.initialGuideDataFetchFailed||a.data)return J.return();_.BP(J,2);return J.yield(a.fetchGuideData(),4)}if(J.nextAddress!=2)return(z=J.yieldResult)&&a.lateDataResolver.resolve(z),_.p1(J,0);I=_.sk(J);_.Xd(I);_.nu(J)})};
_.Z.initializeGuideData=function(){var a=this,z;return _.t(function(I){switch(I.nextAddress){case 1:return _.tI(CdV(),{mainAppWeb:_.m1()}),_.BP(I,2),I.yield(a.load(),4);case 4:a.data=I.yieldResult;_.p1(I,3);break;case 2:_.sk(I),_.ug(CdV(),"FAILURE");case 3:z=a.data&&a.data.items&&a.data.items.length>0?"SUCCESS":"FAILURE",_.ug(CdV(),z),_.nu(I)}})};
_.Z.setGuideData=function(a){var z=this,I,J;return _.t(function(r){if(r.nextAddress==1)return z.disabled?r.return():z.data?(a.data=z.data,z.guideRenderers.add(a),r.return()):r.yield(z.initializeGuideData(),2);z.graftGuideToPage();I=_.TZ("IS_HOMEPAGE_COLD")?"eop":void 0;_.K("disable_element_pool_populator")?z.setGuideDataAfterInit(a):(J=new _.NT(1,I),_.tt(J,z.setGuideDataAfterInit.bind(z,a)));_.nu(r)})};
_.Z.setGuideDataAfterInit=function(a){a.data=this.data;a.markDirty();this.guideRenderers.add(a);_.lK(function(){_.Xz("gle")});
_.Yv(this,function(){_.Xz("gpe")})};
_.Z.graftGuideToPage=function(){if(this.data){var a=this.data&&this.data.trackingParams;a&&(a=_.VX(a),_.sR(_.Kw(),a))}};
_.Z.onGuideElementChanged=function(){this.guideElement.addEventListener("opened-changed",_.BK(this,this.onDrawerOpenedChanged));this.guideElement.swipeOpen=!0};
_.Z.onDrawerOpenedChanged=function(a,z){!z.value&&this.guideOpened&&(this.guideOpened=!1)};
_.Z.onYtGuideToggle=function(a){var z=this.guideOpened;this.guideOpened=!z;if(this.guidePersistent){this.guideUserStateOpened=this.guideOpened;var I=_.Kt();_.Fz(0,109,!this.guideUserStateOpened);this.sessionUserManuallyExpandedGuideState=this.guideUserStateOpened;I.save()}this.updateGuideDrawerElementState();if(this.guideElement){var J;this.guideOpened&&((J=a.detail)==null?0:J.isKeyInput)&&this.guideElement.addEventListener("app-drawer-transitioned",_.BK(this,this.onAppDrawerTransitionedFromKeyInput));
this.guideElement.addEventListener("app-drawer-transitioned",_.BK(this,this.onAppDrawerTransitioned))}z||this.initializeGuideDataIfEmpty()};
_.Z.onAppDrawerTransitionedFromKeyInput=function(){this.guideElement.removeEventListener("app-drawer-transitioned",_.BK(this,this.onAppDrawerTransitionedFromKeyInput));this.guideOpened&&this.guideElement&&_.MV(this.guideElement)};
_.Z.onAppDrawerTransitioned=function(){this.guideElement.removeEventListener("app-drawer-transitioned",_.BK(this,this.onAppDrawerTransitioned));this.ytdReduxBehavior.dispatch(lyZ(this.guideOpened))};
_.Z.guidePersistentAndVisibleChanged=function(){_.Ct(this.hostElement,"ytd-update-guide-state-action",[this.guidePersistentAndVisible])};
_.Z.guideIsVisibleButNotPersistentChanged=function(){this.ytdReduxBehavior.dispatch(_.rg({type:"SET_GUIDE_IS_VISIBLE_BUT_NOT_PERSISTENT",payload:this.guideIsVisibleButNotPersistent}))};
_.Z.miniGuideVisibleChanged=function(){_.Ct(this.hostElement,"ytd-update-mini-guide-state-action",[this.miniGuideVisible])};
_.Z.guideOpenedChanged=function(){this.initialLoad&&(this.ytdReduxBehavior.dispatch(lyZ(this.guideOpened)),this.initialLoad=!1);_.Ct(this.hostElement,"ytd-update-guide-opened-action",[this.guideOpened])};
_.Z.activeEndpointChanged=function(){_.Ct(this.hostElement,"ytd-update-active-endpoint-action",[this.activeEndpoint]);this.initializeGuideDataIfEmpty()};
_.Z.resetGuide=function(){this.forceMiniGuideClose=!1;if(this.persistentGuideEnabled(this.pageType,this.pageUrl))this.onYtGuideShow();else this.onYtGuideClose()};
_.Z.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()};
_.Z.cachedClientWidthChanged=function(){if(this.persistentGuideEnabled(this.pageType,this.pageUrl)){var a=this.canFitPersistentGuide(this.cachedClientWidth);a?this.guideOpened=this.guideUserStateOpened:this.guidePersistent&&(this.guideOpened=!1);this.guidePersistent=a}this.updateGuideDrawerElementState()};
_.Z.getGuidePersistentAndVisible=function(){return!!this.guidePersistentAndVisible};
_.Z.getGuideOpened=function(){return this.guideOpened};
_.Z.getGuideExpandsAutomatically=function(){return this.guideUserStateOpened};
_.Z.getActiveEndpoint=function(){return this.activeEndpoint};
_.Z.getMiniGuideVisible=function(){return this.miniGuideVisible};
_.Z.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&&_.PA(this.hostElement,"yt-guide-hover"),!this.guideOpened||this.guidePersistent)&&(document.body.style.overflow="")};
_.Z.handleMiniGuideMouseEnter=function(){!this.sessionUserManuallyExpandedGuideState&&_.K("web_guide_hover_expansion")&&(this.isMouseOverGuide=!0,this.miniGuideVisible&&!this.guideOpened&&(this.renderGuide=this.guideOpened=!0,this.updateGuideDrawerElementState()))};
_.Z.handleGuideMouseLeave=function(){var a=this;!this.sessionUserManuallyExpandedGuideState&&_.K("web_guide_hover_expansion")&&(this.isMouseOverGuide=!1,_.pM(this,"handleGuideMouseLeave",function(){a.isMouseOverGuide||!a.guideOpened||a.miniGuideVisible||(a.guideOpened=!1,a.updateGuideDrawerElementState())},100))};
_.Z.computeGuidePersistentAndVisible=function(){var a=this;_.pM(this,"computeGuidePersistentAndVisible",function(){a.guidePersistentAndVisible=a.guideOpened&&a.guidePersistent;a.guideIsVisibleButNotPersistent=!(!a.guideOpened||a.guidePersistent)})};
_.Z.observeForMiniGuideVisible=function(){this.guidePersistentAndVisible!==void 0&&(this.miniGuideVisible=!this.forceMiniGuideClose&&!this.guidePersistentAndVisible&&this.canFitMiniGuide(this.cachedClientWidth)&&this.persistentGuideEnabled(this.pageType,this.pageUrl))};
_.Z.closeGuide=function(){this.guideOpened=!1;this.updateGuideDrawerElementState()};
_.Z.onYtGuideClose=function(){this.closeGuide();this.forceMiniGuideClose=!0;this.guidePersistent=this.miniGuideVisible=!1};
_.Z.startLoadingWatch=function(){this.closeGuide()};
_.Z.startLoadingShorts=function(){_.K("web_hide_guide_on_shorts")&&this.closeGuide()};
_.Z.onYtNavigateFinish=function(a,z){if(!_.NS||z){this.activeEndpoint=z.endpoint;this.pageType=z.pageType;this.pageUrl=z.response.url;var I,J;a=(J=_.H((I=z.endpoint)==null?void 0:I.commandMetadata,_.O_))==null?void 0:J.url;!this.pageUrl&&a&&(this.pageUrl=a);_.K("kevlar_use_vimio_behavior")&&this.markGuideRendererDirty(this.getVisibleGuideRenderer())}};
_.Z.getVisibleGuideRenderer=function(){for(var a=_.C(this.guideRenderers),z=a.next();!z.done;z=a.next())if(z=z.value,this.miniGuideVisible&&z.is==="ytd-mini-guide-renderer"||this.guideOpened&&z.is==="ytd-guide-renderer")return z;return null};
_.Z.markGuideRendererDirty=function(a){if(a){typeof a.markDirty==="function"&&a.markDirty();a=_.C([].concat(_.ih(_.PK(a).children)));for(var z=a.next();!z.done;z=a.next())this.markGuideRendererDirty(z.value)}};
_.Z.persistentGuideEnabled=function(a,z){if(!z||a==="watch"||a==="settings"||a==="shorts"&&this.isFullscreenShorts||_.K("reels_web_disable_persistent_guide_shorts")&&a==="shorts")return!1;var I=_.ul(z)||"";return _.K("kevlar_premium_guide_collapse_killswitch")?!this.persistentGuideBlockedPages.some(function(J){return I===J}):!this.persistentGuideBlockedPagePathRegex.test(I)};
_.Z.canFitPersistentGuide=function(a){var z=_.Ib("kevlar_persistent_guide_width_threshold",1312);return z===-1||_.K("reels_web_show_mini_guide_on_shorts")&&this.pageType==="shorts"?!1:a>z};
_.Z.canFitMiniGuide=function(a){return this.miniGuideWidthThreshold===-1?!1:a>this.miniGuideWidthThreshold};
_.Z.onResize=function(){var a=this;_.pM(this,"calculateGuideState",function(){a.onResizeDebounced()})};
_.Z.onResizeDebounced=function(){this.cachedClientWidth=window.innerWidth};
_.Z.disableGuideAnimation=function(){this.guideElement.transitionDuration=0};
_.Z.enableGuideAnimation=function(){this.guideElement.transitionDuration=this.animationTransitionDuration};
_.Z.getInitialGuideUserStateOpened=function(){return _.K("web_force_mini_guide_default")?!1:!_.Kt().getFlag(109)};
_.eH.Object.defineProperties(Jk.prototype,{initialBodyClientWidth:{configurable:!0,enumerable:!0,get:function(){return _.Xw("initialBodyClientWidth")||window.innerWidth}}});
Jk.prototype.onResize=Jk.prototype.onResize;Jk.prototype.observeForMiniGuideVisible=Jk.prototype.observeForMiniGuideVisible;Jk.prototype.computeGuidePersistentAndVisible=Jk.prototype.computeGuidePersistentAndVisible;Jk.prototype.cachedClientWidthChanged=Jk.prototype.cachedClientWidthChanged;Jk.prototype.resetGuide=Jk.prototype.resetGuide;Jk.prototype.activeEndpointChanged=Jk.prototype.activeEndpointChanged;Jk.prototype.guideOpenedChanged=Jk.prototype.guideOpenedChanged;
Jk.prototype.miniGuideVisibleChanged=Jk.prototype.miniGuideVisibleChanged;Jk.prototype.guideIsVisibleButNotPersistentChanged=Jk.prototype.guideIsVisibleButNotPersistentChanged;Jk.prototype.guidePersistentAndVisibleChanged=Jk.prototype.guidePersistentAndVisibleChanged;Jk.prototype.onGuideElementChanged=Jk.prototype.onGuideElementChanged;Jk.prototype.onGuidePersistentChanged=Jk.prototype.onGuidePersistentChanged;Jk.prototype.onRenderGuideChanged=Jk.prototype.onRenderGuideChanged;
Jk.prototype.onActiveEndpointChanged=Jk.prototype.onActiveEndpointChanged;Jk.prototype.onMiniGuideVisibleChanged=Jk.prototype.onMiniGuideVisibleChanged;Jk.prototype.onGuideIsVisibleButNotPersistentChanged=Jk.prototype.onGuideIsVisibleButNotPersistentChanged;Jk.prototype.onGuidePersistendAndVisibleChanged=Jk.prototype.onGuidePersistendAndVisibleChanged;_.L([_.Q(_.Ts),_.p("design:type",Object)],Jk.prototype,"ironResizableBehavior",void 0);
_.L([_.Q(_.Hc.YtActionHandlerBehavior),_.p("design:type",Object)],Jk.prototype,"ytActionHandlerBehavior",void 0);_.L([_.Q(_.Ms.YtComponentBehavior),_.p("design:type",Object)],Jk.prototype,"ytComponentBehavior",void 0);_.L([_.Q(_.pV),_.p("design:type",Object)],Jk.prototype,"ytdReduxBehavior",void 0);_.L([_.x(),_.p("design:type",Object)],Jk.prototype,"data",void 0);_.L([_.x(),_.p("design:type",Boolean)],Jk.prototype,"disabled",void 0);
_.L([_.x(),_.p("design:type",Boolean)],Jk.prototype,"guidePersistentAndVisible",void 0);_.L([_.O8("guidePersistentAndVisible"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],Jk.prototype,"onGuidePersistendAndVisibleChanged",null);_.L([_.x(),_.p("design:type",Boolean)],Jk.prototype,"guideIsVisibleButNotPersistent",void 0);
_.L([_.O8("guideIsVisibleButNotPersistent"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],Jk.prototype,"onGuideIsVisibleButNotPersistentChanged",null);_.L([_.x(),_.p("design:type",Object)],Jk.prototype,"miniGuideVisible",void 0);_.L([_.O8("miniGuideVisible"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],Jk.prototype,"onMiniGuideVisibleChanged",null);_.L([_.x(),_.p("design:type",Boolean)],Jk.prototype,"forceMiniGuideClose",void 0);
_.L([_.x(),_.p("design:type",Object)],Jk.prototype,"activeEndpoint",void 0);_.L([_.O8("activeEndpoint"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],Jk.prototype,"onActiveEndpointChanged",null);_.L([_.x(),_.p("design:type",Boolean)],Jk.prototype,"renderGuide",void 0);_.L([_.O8("renderGuide"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],Jk.prototype,"onRenderGuideChanged",null);
_.L([_.x(),_.p("design:type",Object)],Jk.prototype,"guideOpened",void 0);_.L([_.x(),_.p("design:type",Boolean)],Jk.prototype,"guidePersistent",void 0);_.L([_.O8("guidePersistent"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],Jk.prototype,"onGuidePersistentChanged",null);_.L([_.x(),_.p("design:type",Object)],Jk.prototype,"guideUserStateOpened",void 0);_.L([_.x(),_.p("design:type",String)],Jk.prototype,"pageUrl",void 0);
_.L([_.x(),_.p("design:type",String)],Jk.prototype,"pageType",void 0);_.L([_.x(),_.p("design:type",Number)],Jk.prototype,"cachedClientWidth",void 0);_.L([_.x(),_.p("design:type",Object)],Jk.prototype,"guideElement",void 0);_.L([_.x({selector:_.Cc}),_.p("design:type",Object)],Jk.prototype,"isFullscreenShorts",void 0);_.L([_.O8("guideElement"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],Jk.prototype,"onGuideElementChanged",null);
_.L([_.O8("guidePersistentAndVisible"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],Jk.prototype,"guidePersistentAndVisibleChanged",null);_.L([_.Fe("guideIsVisibleButNotPersistent"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],Jk.prototype,"guideIsVisibleButNotPersistentChanged",null);
_.L([_.O8("miniGuideVisible"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],Jk.prototype,"miniGuideVisibleChanged",null);_.L([_.Fe("guideOpened"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],Jk.prototype,"guideOpenedChanged",null);_.L([_.O8("activeEndpoint"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],Jk.prototype,"activeEndpointChanged",null);
_.L([_.Fe("pageUrl"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],Jk.prototype,"resetGuide",null);_.L([_.Fe("cachedClientWidth"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],Jk.prototype,"cachedClientWidthChanged",null);_.L([_.O8("guideOpened","guidePersistent"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],Jk.prototype,"computeGuidePersistentAndVisible",null);
_.L([_.Fe("guidePersistentAndVisible","pageUrl","cachedClientWidth"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],Jk.prototype,"observeForMiniGuideVisible",null);_.L([_.gz("iron-resize"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],Jk.prototype,"onResize",null);_.L([_.U({disableElementRegistration:!0,is:"yt-guide-manager"})],Jk);var qjM=_.D(Jk,"yt-guide-manager",void 0,{mode:_.Np("kevlar_poly_si_batch_j081")?1:2});var rb=function(){var a=_.G.apply(this,arguments)||this;a.JSC$19852_keyboardInUse=!1;a.boundHandleCapturedKeydownEvent=function(z){a.handleCapturedKeydownEvent(z)};
return a};
_.b(rb,_.G);_.Z=rb.prototype;_.Z.attached=function(){this.listenToDocument(document)};
_.Z.listenToDocument=function(a){a.addEventListener("keydown",_.BK(this,this.onKeyDownEvent));a.addEventListener("keyup",_.BK(this,this.onKeyUpEvent));a.addEventListener("mousedown",_.BK(this,this.onMouseDownEvent));_.K("desktop_keyboard_capture_keydown_killswitch")||a.addEventListener("keydown",this.boundHandleCapturedKeydownEvent,!0);a.addEventListener("yt-page-data-updated",_.BK(this,this.onPageUpdate))};
_.Z.detached=function(){this.unlistenFromDocument(document)};
_.Z.unlistenFromDocument=function(a){a.removeEventListener("keydown",_.BK(this,this.onKeyDownEvent));a.removeEventListener("keyup",_.BK(this,this.onKeyUpEvent));a.removeEventListener("mousedown",_.BK(this,this.onMouseDownEvent));_.K("desktop_keyboard_capture_keydown_killswitch")||a.removeEventListener("keydown",this.boundHandleCapturedKeydownEvent,!0);a.removeEventListener("yt-page-data-updated",_.BK(this,this.onPageUpdate))};
_.Z.ready=function(){_.ab().addProvider({provide:_.ET,useValue:this})};
_.Z.isKeyBoardInUse=function(){return this.JSC$19852_keyboardInUse};
_.Z.handleCapturedKeydownEvent=function(a){if(a.keyCode===32&&!this.isKeyBoardInUse())this.onKeyDownEvent(a)};
_.Z.onMouseDownEvent=function(){this.JSC$19852_keyboardInUse=!1};
_.Z.onPageUpdate=function(){if(_.K("desktop_keyboard_shortcut_usage_log")||this.isShortsPage&&_.K("web_shorts_keyboard_shortcut_usage_log")){_.sl.clear();for(var a=_.C(_.fC),z=a.next();!z.done;z=a.next()){var I=_.C(z.value);z=I.next().value;I=I.next().value;I=_.uq(I);_.sl.set(z,I);_.Lt(_.TX(),_.XZ(),I)}_.nC.clear();a=_.C(_.Aa);for(z=a.next();!z.done;z=a.next())I=_.C(z.value),z=I.next().value,I=I.next().value,I=_.uq(I),_.nC.set(z,I),_.Lt(_.TX(),_.XZ(),I);_.lI(_.TX(),_.XZ(),[].concat(_.ih(_.nC.values()),
_.ih(_.sl.values())));_.we(_.TX(),[].concat(_.ih(_.nC.values()),_.ih(_.sl.values())))}};
_.Z.onMiniplayerActiveChange=function(){var a;(a=_.ab().resolve(_.UJ).pipController.getWindow())&&(this.miniplayerIsActive?this.listenToDocument(a.document):this.unlistenFromDocument(a.document))};
_.Z.ignoreKeyEvent=function(a){if(a.ctrlKey||a.altKey)if(_.K("kevlar_macro_markers_keyboard_shortcut")){if(a.keyCode!==37&&a.keyCode!==39)return!0}else return!0;var z=_.ch(a)||[];return _.G$V(z)?(_.K("web_button_or_anchor_list_item")&&oAZ(z,a)&&(this.JSC$19852_keyboardInUse=!0),!0):a.defaultPrevented?(GP(a.keyCode,a.shiftKey,this.isShortsPage),!0):a.keyCode===32&&this.isKeyBoardInUse()?this.isSpacebarClick(a):!1};
_.Z.isSpacebarClick=function(a){var z=a||window.event;var I;z.composedPath&&typeof z.composedPath==="function"?I=z.composedPath():I=z.path;I&&I.length?z=I[0]:(z=z||window.event,z=z.target||z.srcElement,z.nodeType==3&&(z=z.parentNode));return z&&a.keyCode===32&&(a=z.tagName==="BUTTON"||z.tagName==="A"||z.tagName==="INPUT",z=(z=z.getAttribute("role"))&&(z==="option"||z==="button"||z.indexOf("menuitem")===0),a||z)?!0:!1};
_.Z.onKeyDownEvent=function(a){if(!this.ignoreKeyEvent(a)&&(a.keyCode===191&&(a.shiftKey||a.metaKey?a.repeat!=null&&a.repeat||(this.openHotkeyDialog(),GP(a.keyCode,a.shiftKey,this.isShortsPage)):(this.focusSearchBox(),a.preventDefault())),!a.metaKey)){var z=_.ab().resolve(_.UJ);switch(a.keyCode){case 9:this.JSC$19852_keyboardInUse=!0;break;case 32:this.handlePlayerSpaceKey(a);break;case 84:z.pipController.getWindow()&&window.focus();this.toggleTheaterMode(a.keyCode,a.shiftKey);break;case 73:z.pipController.getWindow()&&
window.focus();this.toggleMiniplayer(a.keyCode,a.shiftKey);break;case 70:if(this.isShortsPage&&_.K("web_fullscreen_shorts")){_.$ri();break}this.isMiniplayerActive()?z.pipController.getWindow()&&(z.close(!0),window.focus()):this.passEventToPlayer(a);break;case 27:this.isPresentingTheaterMode()?this.toggleTheaterMode(a.keyCode,a.shiftKey):this.closeMiniplayer(a.keyCode,a.shiftKey)||this.passEventToPlayer(a);break;case 13:a.shiftKey&&_.ab().resolve(_.xn).activate(a);break;default:this.passEventToPlayer(a)}}};
_.Z.onKeyUpEvent=function(a){if(!this.ignoreKeyEvent(a))if(_.K("web_speedmaster_spacebar_control")&&a.keyCode===32)this.handlePlayerSpaceKey(a,!0);else{var z=this.getPlayerManager();z&&(z=z.getPlayer())&&z.handleGlobalKeyUp(a.keyCode,a.shiftKey,a.ctrlKey,a.altKey,a.metaKey,a.key,a.code)}};
_.Z.getPlayerManager=function(){var a=_.zI(),z=_.ab().resolve(_.eL(_.aK));return a&&z&&z.isOnWatch()?a:null};
_.Z.passEventToPlayer=function(a,z){var I=this,J,r,P,N;return _.t(function(u){if(u.nextAddress==1){if(!_.K("desktop_keyboard_shortcuts_enabled_miniplayer_killswitch")&&I.isMiniplayerActive())J=_.ab().resolve(_.UJ).getPlayerElement();else if(I.inlinePreviewIsActive){if(r=_.Ct(I.hostElement,"yt-get-inline-preview-player-action"),(P=r)==null?0:P[0])J=r[0]}else J=_.zI();return J?u.yield(J.getPlayerPromise(),3):u.jumpTo(0)}N=u.yieldResult;z?N.handleGlobalKeyUp(a.keyCode,a.shiftKey,a.ctrlKey,a.altKey,a.metaKey,
a.key,a.code):N.handleGlobalKeyDown(a.keyCode,a.shiftKey,a.ctrlKey,a.altKey,a.metaKey,a.key,a.code,a.repeat);a.keyCode!==38&&a.keyCode!==40&&GP(a.keyCode,a.shiftKey,I.isShortsPage);_.nu(u)})};
_.Z.focusSearchBox=function(){_.PA(this.hostElement,"yt-focus-searchbox")};
_.Z.openHotkeyDialog=function(){_.PA(this.hostElement,"yt-open-hotkey-dialog")};
_.Z.isMiniplayerActive=function(){return _.ab().resolve(_.UJ).isMiniplayerActive()};
_.Z.closeMiniplayer=function(a,z){return this.isMiniplayerActive()?(_.ab().resolve(_.UJ).close(),GP(a,z,this.isShortsPage),!0):!1};
_.Z.toggleTheaterMode=function(a,z){var I=_.Td(_.qo().getState()),J=this.getPlayerManager(),r=_.K("disable_theater_mode_keyboard")||_.TZ("START_IN_FULL_WINDOW_MODE");J&&!r&&(I=!I,_.jE()&&_.K("external_fullscreen")&&(I=!0),_.ZF(this.hostElement,"yt-toggle-theater-mode",[I]),GP(a,z,this.isShortsPage))};
_.Z.toggleMiniplayer=function(a,z){var I=this.getPlayerManager();if(this.isMiniplayerActive()){var J;((J=_.ab().resolve(_.eL(_.aK)))==null?0:J.isOnWatch())?_.ab().resolve(_.UJ).close(!0):_.Dp(_.ab().resolve(_.UJ));GP(a,z,this.isShortsPage)}else I&&(_.ZF(this.hostElement,"yt-activate-miniplayer-from-watch-action"),GP(a,z,this.isShortsPage))};
_.Z.handlePlayerSpaceKey=function(a,z){var I=!!_.zI()||this.isMiniplayerActive();I=_.K("disable_space_scroll_fix")||I;_.K("global_spacebar_pause")&&!this.isKeyBoardInUse()&&I&&(a.preventDefault(),this.passEventToPlayer(a,z))};
_.Z.isPresentingTheaterMode=function(){return _.K("web_watch_enable_tm_esc_key")?_.Td(_.qo().getState())&&!_.jE():!1};
rb.prototype.onMiniplayerActiveChange=rb.prototype.onMiniplayerActiveChange;_.L([_.Q(_.Ms.YtComponentBehavior),_.p("design:type",Object)],rb.prototype,"ytComponentBehavior",void 0);_.L([_.Q(_.pV),_.p("design:type",Object)],rb.prototype,"ytdReduxBehavior",void 0);_.L([_.x({selector:_.lOI}),_.p("design:type",Boolean)],rb.prototype,"inlinePreviewIsActive",void 0);_.L([_.x({selector:_.qQx}),_.p("design:type",Boolean)],rb.prototype,"isShortsPage",void 0);
_.L([_.x({selector:_.Tg}),_.p("design:type",Boolean)],rb.prototype,"miniplayerIsActive",void 0);_.L([_.O8("miniplayerIsActive"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],rb.prototype,"onMiniplayerActiveChange",null);_.L([_.U({disableElementRegistration:!0,is:"yt-hotkey-manager"})],rb);_.D(rb,"yt-hotkey-manager",void 0,{mode:_.Np("kevlar_poly_si_batch_j081")?1:2});var Px=function(){var a=_.G.apply(this,arguments)||this;a.loopStateEntityKey_=null;a.playlistLoopStateEntity_=null;a.isShuffleNextPlaylist=!1;a.PLAYER_EVENTS_=new Map;a.playerListenersSetup_=!1;a.videoSkipJob_=0;a.canAutoAdvance_=!1;a.playerManager_=null;a.TEST_ONLY={};return a};
_.b(Px,_.G);_.Z=Px.prototype;_.Z.ready=function(){_.ab().addProvider({provide:_.wR,useValue:this.hostElement})};
_.Z.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_)};
_.Z.attached=function(){document.addEventListener("yt-navigate-start",_.BK(this,this.onYtNavigateStart_));document.addEventListener("yt-navigate-finish",_.BK(this,this.onYtNavigateFinish_))};
_.Z.detached=function(){document.removeEventListener("yt-navigate-start",_.BK(this,this.onYtNavigateStart_));document.removeEventListener("yt-navigate-finish",_.BK(this,this.onYtNavigateFinish_))};
_.Z.updatePlaylistEventListeners=function(a,z){z&&!this.playerListenersSetup_?(this.playerManager_=a,this.registerPlaylistEventListeners_(a)):!z&&this.playerListenersSetup_&&(this.playerManager_=null,this.removePlaylistEventListeners_(a))};
_.Z.setPlayer=function(a){this.playerManager_&&this.removePlaylistEventListeners_(this.playerManager_);this.playerManager_=a};
_.Z.activate_=function(){this.playerManager_&&this.registerPlaylistEventListeners_(this.playerManager_)};
_.Z.deactivate_=function(){this.playerManager_&&this.removePlaylistEventListeners_(this.playerManager_)};
_.Z.registerPlaylistEventListeners_=function(a){var z=this;a.getPlayerPromise().then(function(I){z.playerListenersSetup_||(z.ytPlayerListenerBehavior.listenToPlayerEvents(I,z.PLAYER_EVENTS_),z.playerListenersSetup_=!0)})};
_.Z.removePlaylistEventListeners_=function(a){var z=this;a.getPlayerPromise().then(function(I){z.playerListenersSetup_&&(z.ytPlayerListenerBehavior.unlistenFromPlayerEvents(I,z.PLAYER_EVENTS_),z.playerListenersSetup_=!1)})};
_.Z.setPlaylistComponent=function(a){this.playlistComponent&&(this.playlistComponent.removeEventListener("yt-navigate",_.BK(this,this.onPlaylistYtNavigate_)),a&&(a.data&&this.playlistComponent.data&&a.data.playlistId==this.playlistComponent.data.playlistId?(a.loopOn=this.playlistComponent.loopOn,a.shuffleOn=this.playlistComponent.shuffleOn):(a.loopOn=!1,a.shuffleOn=!1),this.isShuffleNextPlaylist&&(a.shuffleOn=!0,this.isShuffleNextPlaylist=!1)));this.playlistComponent=a;this.playlistComponent.addEventListener("yt-navigate",
_.BK(this,this.onPlaylistYtNavigate_))};
_.Z.setAutoplayRenderer=function(a){this.autoplayData=a};
_.Z.setPlaylistData=function(a){this.currentPlaylistData_=a;_.PA(this.hostElement,"yt-playlist-data-updated");_.x8.isEmpty(a)?this.deactivate_():this.activate_();this.setLoopStateEntityKey_(a)};
_.Z.setPlayerPlaybackControlData=function(a){this.playerManager_&&this.playerManager_.updatePlayerComponents(a.playlistPanelRenderer)};
_.Z.getPlaylistData=function(){return this.currentPlaylistData_};
_.Z.getTempData_=function(a,z){if(this.playlistComponent==null)return null;a={};this.playlistComponent.shuffleOn&&(a.shuffle_on=this.playlistComponent.shuffleOn);this.playlistComponent.loopOn&&(a.loop_on=this.playlistComponent.loopOn);z&&(a.autonav="1",_.ab().resolve(_.V7),z=_.IO(),z>0&&(a.lact=z),this.playerManager_&&(z=this.playerManager_.getPlayer())&&z.shouldSendVisibilityState()&&(z=z.getVisibilityState(),z!=0&&(a.vis=z)));_.K("enable_unknown_lact_fix_on_html5")&&(_.ab().resolve(_.V7),a.lact=
_.IO());return a};
_.Z.getPlaylistState_=function(){return this.playlistComponent.loopOn&&this.playlistComponent.shuffleOn?"LOOP_SHUFFLE":this.playlistComponent.loopOn?"LOOP":this.playlistComponent.shuffleOn?"SHUFFLE":"NORMAL"};
_.Z.setLoopStateEntityKey_=function(a){var z;this.loopStateEntityKey_=((z=this.getPlaylistLoopData_(a))==null?void 0:z.playlistLoopStateEntityKey)||null};
_.Z.onPlaylistNext=function(){this.playlistComponent&&this.navigateToAutoplayWatchEndpoint_(this.getPlaylistState_(),"nextButtonVideo")};
_.Z.onPlaylistPrevious=function(){this.playlistComponent&&this.navigateToAutoplayWatchEndpoint_(this.getPlaylistState_(),"previousButtonVideo")};
_.Z.skipVideo=function(){var a=this,z=_.K("web_playlist_queue_multiple_skips_ks");if(!this.videoSkipJob_||z)z=this.isInBackground_()?1E3:5E3,this.videoSkipJob_=_.xc(_.GW,function(){a.onPlaylistNext();a.videoSkipJob_=0},z)};
_.Z.cancelVideoSkip=function(){this.videoSkipJob_&&(_.GW.cancelJob(this.videoSkipJob_),this.videoSkipJob_=0)};
_.Z.isInBackground_=function(){var a=window.document.visibilityState;return!(!a||a=="visible")};
_.Z.onPlaylistIndex_=function(a){this.playlistComponent&&(a=this.playlistComponent.data.contents[a].playlistPanelVideoRenderer.navigationEndpoint,_.PA(this.hostElement,"yt-navigate",{endpoint:a,tempData:this.getTempData_(a)}))};
_.Z.onPlayerStateChange_=function(a){if(a=a==0&&this.playlistComponent&&this.canAutoAdvance_)a=_.PS.getInstance(),a=!(a.autonavState_===3?a.autonavPauseReason_&&a.autonavPauseReason_.inputBoxFocus===!0:a.autonavState_===1&&a.disabledAutonavPauseReason_&&a.disabledAutonavPauseReason_.inputBoxFocus===!0);a&&this.navigateToAutoplayWatchEndpoint_(this.getPlaylistState_(),"autoplayVideo",!0)};
_.Z.onYtNavigateStart_=function(){this.canAutoAdvance_=!1};
_.Z.onYtNavigateFinish_=function(){this.canAutoAdvance_=!0};
_.Z.navigateToAutoplayWatchEndpoint_=function(a,z,I){var J=this.playlistComponent.data.currentIndex,r=this.getNumPlayableVideos_();a=="NORMAL"&&z=="autoplayVideo"&&J+1>=r&&I||!(a=this.getVideoEndpoint_(a,z))||(I=this.getTempData_(a,I),_.PA(this.hostElement,"yt-navigate",{endpoint:a,tempData:I}))};
_.Z.getNumPlayableVideos_=function(){for(var a=0,z=_.C(this.playlistComponent.data.contents||[]),I=z.next();!I.done;I=z.next())I.value.playlistPanelVideoRenderer&&(a+=1);return a};
_.Z.getVideoEndpoint_=function(a,z){if(this.autoplayData&&this.autoplayData.sets)for(var I=0,J=this.autoplayData.sets.length;I<J;I++){var r=this.autoplayData.sets[I];if(r.mode==a){if(r[z])return r[z];break}}else a=new _.Fn("AutoplayData is undefined in playlist manager","Mode: "+a+" endpoint: "+z),_.Xd(a)};
_.Z.getAutoplayEndpoint=function(){if(this.playlistComponent)return this.getVideoEndpoint_(this.getPlaylistState_(),"autoplayVideo")};
_.Z.onPlaylistYtNavigate_=function(a){if(a.detail.endpoint){a.stopPropagation();var z=a.detail;z.tempData=this.getTempData_(a.detail.endpoint);_.PA(this.hostElement,"yt-navigate",z)}};
_.Z.hasAutoplayData=function(){return!(!this.autoplayData||!this.autoplayData.sets)};
_.Z.onPlaylistLoopStateEntityChanged=function(){this.playlistLoopStateEntityChanged_(this.playlistLoopStateEntity_)};
_.Z.playlistLoopStateEntityChanged_=function(a){var z=this,I,J,r;return _.t(function(P){if(P.nextAddress==1){if(!a)return P.return();I=a.state==="PLAYLIST_LOOP_STATE_ONE";return z.playerManager_?P.yield(z.playerManager_.getPlayerPromise(),3):P.jumpTo(2)}P.nextAddress!=2&&(J=P.yieldResult,J.setLoopVideo(I));r=a.state==="PLAYLIST_LOOP_STATE_ALL";z.playlistComponent&&(z.playlistComponent.loopOn=r);_.nu(P)})};
_.Z.getPlaylistLoopData_=function(a){var z,I;if(a=a==null?void 0:(z=a.playlistButtons)==null?void 0:(I=z.menuRenderer)==null?void 0:I.topLevelButtons)for(z=_.C(a),I=z.next();!I.done;I=z.next())if(I=I.value,I.playlistLoopButtonRenderer)return I.playlistLoopButtonRenderer};
_.Z.getLoopStateCommand_=function(a){var z=this.getPlaylistData(),I;z=((I=this.getPlaylistLoopData_(z))==null?void 0:I.states)||[];var J;a=(J=_.H(z[a?1:2],_.hnI))==null?void 0:J.button;var r;return(r=_.H(a,_.lc))==null?void 0:r.command};
_.Z.onPlayerLoopChange_=function(a){this.playlistLoopStateEntity_&&(a?"PLAYLIST_LOOP_STATE_ONE":"PLAYLIST_LOOP_STATE_NONE")!==this.playlistLoopStateEntity_.state&&(a=this.getLoopStateCommand_(a))&&this.ytComponentBehavior.resolveCommand(a)};
_.Z.onSleepTimerSettingsChanged_=function(a){this.canAutoAdvance_=a!=="End of video"};
Px.prototype.onPlaylistLoopStateEntityChanged=Px.prototype.onPlaylistLoopStateEntityChanged;_.L([_.Q(_.Ms.YtComponentBehavior),_.p("design:type",Object)],Px.prototype,"ytComponentBehavior",void 0);_.L([_.Q(_.jz.YtPlayerListenerBehavior),_.p("design:type",_.z4)],Px.prototype,"ytPlayerListenerBehavior",void 0);_.L([_.Q(_.pV),_.p("design:type",Object)],Px.prototype,"ytdReduxBehavior",void 0);_.L([_.x(),_.p("design:type",Object)],Px.prototype,"loopStateEntityKey_",void 0);
_.L([_.x({selectorArgs:["loopStateEntityKey_"],selector:_.U7d}),_.p("design:type",Object)],Px.prototype,"playlistLoopStateEntity_",void 0);_.L([_.O8("playlistLoopStateEntity_"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],Px.prototype,"onPlaylistLoopStateEntityChanged",null);_.L([_.U({disableElementRegistration:!0,is:"yt-playlist-manager"})],Px);_.D(Px,"yt-playlist-manager",void 0,{mode:_.Np("kevlar_poly_si_batch_j081")?1:2});var eP0,aXZ=function(){if(eP0!==void 0)return eP0;var a=document.createElement("template");_.V(a,"\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-third-party-manager--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e");a.content.insertBefore(_.w().content.cloneNode(!0),a.content.firstChild);return eP0=a};var Z_=function(){var a=_.G.apply(this,arguments)||this;a.lastCallback=null;a.getAccountLinkPromises={};a.redirectModeProviderAllowlist=new Set(["football.fantasysports.yahoo.com","riotgames.com"]);a.actionMap={"yt-initialize-third-party":"handleInitializeRequest","yt-account-link-command":"handleAccountLinkCommand","yt-account-unlink-command":"handleAccountUnlinkCommand","yt-log-account-linking-event-command":"handleLogAccountLinkingEventCommand"};return a};
_.b(Z_,_.G);_.Z=Z_.prototype;_.Z.getLocation=function(){return window.location.href};
_.Z.getCompletionUrl=function(){return _.qZ(this.getLocation())};
_.Z.containsRedirectState=function(a){return(a=_.hI(_.AsM(a)))?(new URLSearchParams(a)).get("redirect_state")!==null:!1};
_.Z.createGalConfig=function(a,z){var I=new EBZ;a=I=z?this.getPopupOrRedirectSetting(I,_.Xw("LINK_API_KEY"),_.Xw("LINK_API_KEY_REDIRECT"),a):BcE(I,_.Xw("LINK_API_KEY"));a.authUser=_.Xw("SESSION_INDEX")||0;a.supportedFlows=new Set([4]);return a.build()};
_.Z.getPopupOrRedirectSetting=function(a,z,I,J){this.isGalInteractionPopupMode(J)?(a.interactionMode=0,a=BcE(a,z)):(a.interactionMode=1,z=this.getCompletionUrl(),a.completionUrl=z,a=BcE(a,I));return a};
_.Z.isGalInteractionPopupMode=function(a){if(this.redirectModeProviderAllowlist.has(a))switch(a){case "football.fantasysports.yahoo.com":return!1;case "riotgames.com":return!1;default:return!1}return!0};
_.Z.getStatusEntityKeyForProviderId=function(a){return _.Er(a+":all","accountLinkStatusEntity")};
_.Z.findNestedPropValue=function(a,z){var I=!1,J=null;JSON.stringify(a,function(r,P){I||r!==z||(I=!0,J=P);return I?null:P});
return J};
_.Z.findAccountLinkButtonViewModel=function(a,z){var I=null,J=!1;JSON.stringify(a,function(r,P){J||P.accountLinkStatusEntityKey!==z||P.accountLinkStatusSecondaryEntityKey||(J=!0,I=P);return J?null:P});
return I};
_.Z.executeLinkingSuccessOrFailureCommands=function(a,z,I){var J=null,r;(z==null?0:(r=z.url)==null?0:r.includes("account_sharing"))?J=z==null?void 0:z.response:J=z==null?void 0:z.response;(z=this.findAccountLinkButtonViewModel(J,a))?(a=I?this.findNestedPropValue(z,"onSuccessCommand"):this.findNestedPropValue(z,"onFailureCommand"))?_.BA([a],this.hostElement):_.RL(Error("il")):_.RL(Error("jl`"+a))};
_.Z.handleInitializeRequest=function(a,z){var I=this,J=doY(this.createGalConfig(a,!0));this.containsRedirectState(this.getLocation())?vpV(a,J.config,J.galService).then(function(r){var P=I.getStatusEntityKeyForProviderId(a);if(r.statusCode===1)z&&I.executeLinkingSuccessOrFailureCommands(P,z,!0),r=I.getLocation().indexOf("#"),r!==-1&&window.history.pushState(null,"",I.getLocation().substring(0,r));else return z&&I.executeLinkingSuccessOrFailureCommands(P,z,!1),Promise.reject(Error(r.statusMessage))}).catch(function(r){_.Xd(r);
_.x0("gamingAccountLinkStatusChanged",{serviceId:a,event:"GAMING_ACCOUNT_LINK_ACTION_LINKING",actionStatus:"GAMING_ACCOUNT_LINK_ACTION_STATUS_FAILED"});return Promise.reject(r)}):this.getAccountLinkPromises[a]=J.startLinkingSession({serviceId:a})};
_.Z.handleAccountLinkCommand=function(a){_.H(a,eG0)&&this.handleLinkRequest(_.H(a,eG0))};
_.Z.handleLinkRequest=function(a){var z=this,I=a.thirdPartyId;if(I)if(this.isGalInteractionPopupMode(I)){var J=function(){z.closeAndFire("ytd-gaming-account-link-setting-renderer",a.onFailureCommand)},r=function(){z.closeAndFire("ytd-gaming-account-link-setting-renderer",a.onSuccessCommand)};
this.lastCallback=r;this.getAccountLinkPromises[I].then(function(P){mHE(P).then(function(N){N.statusCode===1?r():J()})}).catch(function(){J()})}else this.getAccountLinkPromises[I].then(function(P){mHE(P).then(function(N){if(N.statusCode!==1)return Promise.reject(Error(N.statusMessage))})}).catch(function(P){_.Xd(P);
_.x0("gamingAccountLinkStatusChanged",{serviceId:I,event:"GAMING_ACCOUNT_LINK_ACTION_LINKING",actionStatus:"GAMING_ACCOUNT_LINK_ACTION_STATUS_FAILED"});return Promise.reject(P)})};
_.Z.closeAndFire=function(a,z){_.ZF(this.hostElement,"yt-close-popup-action",[a]);z&&_.BA([z],this.hostElement)};
_.Z.handleAccountUnlinkCommand=function(a){_.H(a,as4)&&this.handleUnlinkRequest(_.H(a,as4))};
_.Z.handleUnlinkRequest=function(a){var z=this,I=a.thirdPartyId;if(I){var J=function(){z.closeAndFire("ytd-gaming-account-link-confirm-dialog-renderer",a.onFailureCommand)},r=function(){z.closeAndFire("ytd-gaming-account-link-confirm-dialog-renderer",a.onSuccessCommand)};
this.lastCallback=r;var P=doY(this.createGalConfig(I,!1));this.unlinkUserGal(P,I).then(function(N){N.statusCode===1?r():J()}).catch(function(){J()})}};
_.Z.unlinkUserGal=function(a,z){return a.deleteLink(z)};
_.Z.handleLogAccountLinkingEventCommand=function(a){_.K("enable_gel_log_commands")&&_.H(a,jTz)&&(a=_.H(a,jTz).event)&&_.x0("gamingAccountLinkStatusChanged",a)};
_.eH.Object.defineProperties(Z_,{template:{configurable:!0,enumerable:!0,get:function(){return aXZ()}}});
_.L([_.Q(_.K_.YtOpenPopupBehavior),_.p("design:type",Object)],Z_.prototype,"ytOpenPopupBehavior",void 0);_.L([_.Q(_.Hc.YtActionHandlerBehavior),_.p("design:type",Object)],Z_.prototype,"ytActionHandlerBehavior",void 0);_.L([_.U({disableElementRegistration:!0,is:"ytd-third-party-manager"})],Z_);_.D(Z_,"ytd-third-party-manager",function(){return aXZ()},{mode:_.Np("kevlar_poly_si_batch_j081")?1:2});var j1e,zqG=function(){if(j1e!==void 0)return j1e;var a=document.createElement("template");_.V(a,"\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-page-manager--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e");a.content.insertBefore(_.w().content.cloneNode(!0),a.content.firstChild);return j1e=a};var Cm=function(){var a=_.G.apply(this,arguments)||this;a.currentPage=void 0;a.renderLoadingStateJobId=0;a.updatePageDataJobId=0;a.pageDisposeJobsets=new WeakMap;a.actionMap={"yt-start-loading-watch":"startLoadingWatch","yt-start-loading-shorts":"startLoadingShorts","yt-start-loading-learning-journey":"startLoadingLearningJourney","yt-get-page-offset":"getPageOffset","yt-set-page-offset":"setPageOffset","yt-pause-active-page-context":"pauseActiveContext","yt-prepare-page-dispose":"preparePageDispose",
"yt-stop-old-player":"onYtStopOldPlayer"};a.shouldApplyLockupToWatchTransition=_.K("web_thumbnail_to_watch_transition");a.shouldApplySlideTransition=_.rM("web_page_transition_type")==="slide"||_.K("enable_plj_landing_page");a.shouldApplyLearningJourneyTransition=_.K("enable_plj_landing_page");a.TEST_ONLY=void 0;return a};
_.b(Cm,_.G);_.Z=Cm.prototype;_.Z.ready=function(){var a=_.ab();a.addProvider({provide:_.aK,useValue:this});a.addProvider({provide:_.AwI,useValue:this})};
_.Z.created=function(){this.pagePool=new Sjf;this.contextSwitcher=new LbG};
_.Z.attached=function(){_.PA(this.hostElement,"attached");var a=_.ab().resolve(_.eL(_.Tr));a&&(this.contextSwitcher.JSC$19678_networkService_=a);this.viewTransitionManager=_.ab().resolve(_.bH)};
_.Z.getPageOffset=function(a){return a.getScrollTop()};
_.Z.setPageOffset=function(a,z){try{a.setScrollTop(z)}catch(I){}};
_.Z.setPageOffsetForNavigation=function(a,z){_.PA(this.hostElement,"yt-navigate-set-page-offset",{page:a,offset:z===void 0?0:z})};
_.Z.pauseActiveContext=function(){var a=this.contextSwitcher;a.activeContext_&&a.activeContext_.pause()};
_.Z.getModuleNameForType=function(a){return a==="watch"?_.K("kevlar_watch_fixie")?"watchFixie":_.K("kevlar_watch_grid")?"watchGrid":"watchFlexy":a==="shorts"||a==="search"?a:"browse"};
_.Z.attachPage=function(a){var z,I=!_.K("pc_is_attached_ks")&&(a==null?void 0:(z=a.polymerController)==null?void 0:z.isAttached);if(!a.isAttached&&!I)try{_.PK(this.hostElement).appendChild(a)}catch(r){var J;_.Xd(new _.Fn("Error attaching page element for component",{origin:(J=this.currentPage)==null?void 0:J.is,component:a.is}))}};
_.Z.setActivePage=function(a){var z=this,I=!1,J=function(){var r=z.isOnWatch(),P=z.currentPage;if(a)if(a!==z.currentPage){P&&(P.hidden=!0,P.active=!1,P.removeAttribute("role"));z.currentPage=a;var N,u=_.nH((N=z.data)==null?void 0:N.endpoint);P&&_.PA(z.hostElement,"yt-page-type-changed",{oldPageType:P.is,newPageType:a.is,newPageSubtype:u});_.M3().dispatch(_.rg({type:"SET_SHARED_CURRENT_PAGE_TYPE",payload:a.is}));_.M3().dispatch(_.rg({type:"SET_SHARED_CURRENT_PAGE_SUB_TYPE",payload:u||""}));a.hidden=
!1;z.attachPage(a);a.active=!0;a.setAttribute("role","main");P&&z.setPageOffsetForNavigation(a,0);_.K("kevlar_remove_page_dom_on_switch")&&!r&&P&&_.PK(z.hostElement).removeChild(P)}else I=!0;else z.handleMissingDestinationPage(P)};
this.shouldRunBrowseTransition(this.currentPage,a)?ZhZ(this.viewTransitionManager,J):this.shouldRunLearningJourneyTransition(this.currentPage,a)?tiz(this.viewTransitionManager,J):J();return I};
_.Z.handleMissingDestinationPage=function(a){if(this.isColdLoadForUnknownPage(a))_.Xd(new _.Fn("Cold load for unknown page"));else{var z;a=new _.Fn("Unable to set active page",a?a.is:"unknown origin",(z=this.data)==null?void 0:z.endpoint);_.Gx(a)}};
_.Z.isColdLoadForUnknownPage=function(a){return!a&&KC(this.data)==="unknown"};
_.Z.shouldRunBrowseTransition=function(a,z){return this.shouldApplySlideTransition&&(a==null?void 0:a.is)==="ytd-browse"&&(z==null?void 0:z.is)==="ytd-browse"&&a!==z};
_.Z.shouldRunLearningJourneyTransition=function(a,z){return this.shouldApplyLearningJourneyTransition&&(a==null?void 0:a.is)==="ytd-browse"&&((z==null?void 0:z.is)==="ytd-watch-learning-journey"||(z==null?void 0:z.tagName.toLowerCase())==="ytd-watch-learning-journey")};
_.Z.shouldRunWatchNextLoadedTransition=function(a,z){return this.viewTransitionManager&&a.is==="ytd-watch-flexy"&&z};
_.Z.updatePageData=function(a){var z=this,I=this.data;this.updatePageDataJobId&&_.GW.cancelJob(this.updatePageDataJobId);this.data=a;return new _.Ba(function(J){var r=function(){a.filler?z.performDataUpdate(a,I):AQe(function(){z.performDataUpdate(a,I)});
var E=_.yT();_.k3(E,"cr")||E.processSignal("cr");J()},P=function(){a&&a.page==="watch"?z.updatePageDataJobId=_.xc(_.GW,r):r()};
if(_.K("kevlar_enable_mss_page_modules_client")&&a){var N=_.ab().resolve(_.Rv),u=z.getModuleNameForType(a.page);(N=rIE(N,[u]))?N.then(P):P()}else P()})};
_.Z.isDownloadsPage=function(a){var z,I;return(a==null?void 0:(z=a.endpoint)==null?void 0:(I=z.browseEndpoint)==null?void 0:I.browseId)==="FEdownloads"};
_.Z.setPlayerSyncInterval=function(a){var z;return _.t(function(I){if(I.nextAddress==1)return I.yield(_.ab().resolve(_.Zc),2);z=I.yieldResult;z.setUpPositionSyncInterval(a);_.nu(I)})};
_.Z.performDataUpdate=function(a,z){_.K("kevlar_early_popup_close")||_.ZF(this.hostElement,"yt-close-all-popups-action",[["ytd-video-download-toast-renderer"]]);var I=!a.filler;I&&(_.Xz("lps"),_.K("config_age_report_killswitch")||pJY());var J=KC(a),r,P=!1;if(_.K("kevlar_remove_page_dom_on_switch")){var N=z&&KC(z);J===N&&(r=this.getCurrentPage())}r||(r=YY(this.pagePool,J));I&&KyE(this.pagePool.elementPoolPopulator,J);I&&!this.renderLoadingStateJobId&&(P=this.setActivePage(r));if(r){N=J==="watch";var u=
J==="shorts",E=J==="learning_journey_watch";_.K("kevlar_flush_jobs_before_setting_player_response")&&this.flushPageDisposeJobset(r);if(N||u||E)r.playerData=a.playerResponse;if(u)if(_.K("web_enable_delay_shorts_sequence_call")){a.reelWatchSequenceResponse&&(r.reelWatchSequenceResponse=a.reelWatchSequenceResponse);r.currentEndpoint=a.endpoint;var O;r.isPreviousPageShorts=!!(z==null?0:(O=z.endpoint)==null?0:O.reelWatchEndpoint);var f,A;a.cachedSequenceParams=((f=a.endpoint)==null?void 0:(A=f.reelWatchEndpoint)==
null?void 0:A.sequenceParams)||a.cachedSequenceParams||(z==null?void 0:z.cachedSequenceParams);var n,F;a.cachedSequenceProvider=((n=a.endpoint)==null?void 0:(F=n.reelWatchEndpoint)==null?void 0:F.sequenceProvider)||a.cachedSequenceProvider||(z==null?void 0:z.cachedSequenceProvider);r.cachedSequenceParams=a.cachedSequenceParams;r.cachedSequenceProvider=a.cachedSequenceProvider}else{a.reelWatchSequenceResponse?r.reelWatchSequenceResponse=a.reelWatchSequenceResponse:a.cachedReelWatchSequenceResponse?
r.reelWatchSequenceResponse=a.cachedReelWatchSequenceResponse:_.K("web_enable_cached_reel_sequence_fix")&&r.cachedReelWatchSequenceResponse&&!r.reelWatchSequenceResponse&&(r.reelWatchSequenceResponse=r.cachedReelWatchSequenceResponse);r.currentEndpoint=a.endpoint;var h;r.isPreviousPageShorts=!!(z==null?0:(h=z.endpoint)==null?0:h.reelWatchEndpoint);a.cachedReelWatchSequenceResponse=a.reelWatchSequenceResponse||a.cachedReelWatchSequenceResponse||(z==null?void 0:z.cachedReelWatchSequenceResponse);r.cachedReelWatchSequenceResponse=
a.cachedReelWatchSequenceResponse}O=this.isDownloadsPage(a);f=this.isDownloadsPage(z);O&&!f?this.setPlayerSyncInterval(6E5):!O&&f&&this.setPlayerSyncInterval();_.K("block_all_player_prefetch_requests")||this.preparePrefetchRequest(a,r,I,N,u,E);uxZ(_.ab().resolve(_.UJ),z,a);_.Cd(_.ab().resolve(_.V7));_.K("kevlar_flush_jobs_before_setting_player_response")||this.flushPageDisposeJobset(r);I?(I=typeof r.loadPage,I==="function"?(r.pageContext=lw4(this.contextSwitcher,r,r.data!==a.response),I=function(){r.loadPage(a.response)},
this.shouldApplySlideTransition&&r.is==="ytd-browse"&&P&&(J==="learning"||this.isDifferentBrowseId(a==null?void 0:a.endpoint,z==null?void 0:z.endpoint))?ZhZ(this.viewTransitionManager,I):this.shouldRunWatchNextLoadedTransition(r,P)?N0z(this.viewTransitionManager,I):I()):_.$0(new _.Fn("b/38014653 ",[J,
r.is,r.nodeName,I,r.isAttached,z&&KC(z),this.hostElement.children.length])),_.Xz("pdl")):(r.hidden=!0,a.response.filler=!0,r.data=a.response,this.attachPage(r));_.PA(this.hostElement,"yt-page-data-updated",{pageType:J})}_.b9(_.GW,function(){_.K("logging_avoid_blocking_during_navigation")&&_.ehO().transition("none");var v=JrG(),d=r;if(a){var W=S80(a),l=iM0(a),q;a:{if(a.playerResponse){var m=a.playerResponse,M;if((q=m.auxiliaryUi)==null?0:(M=q.messageRenderers)==null?0:M.upsellDialogRenderer){q=m.auxiliaryUi.messageRenderers.upsellDialogRenderer;
break a}}else if(a.response&&(q=a.response,(m=q.overlay)==null?0:m.upsellDialogRenderer)){q=q.overlay.upsellDialogRenderer;break a}q=void 0}var y;var e;M=(y=a.playerResponse)==null?void 0:(e=y.auxiliaryUi)==null?void 0:e.messageRenderers;y=(M==null?void 0:M.enforcementMessageViewModel)||(M==null?void 0:M.bkaEnforcementMessageViewModel);y=(y==null?void 0:y.displayType)!=="ENFORCEMENT_MESSAGE_VIEW_MODEL_DISPLAY_TYPE_PLAYER"?y:void 0;var Bp;a:{if(a.response&&(e=a.response,(Bp=e.overlay)==null?0:Bp.commandWrapperPromoRenderer)){Bp=
e.overlay.commandWrapperPromoRenderer;break a}Bp=void 0}IUG(v,W,l,q,y,Bp,d)}})};
_.Z.preparePrefetchRequest=function(a,z,I,J,r,P){var N,u,E,O,f,A,n,F,h,v,d,W,l,q,m;return _.t(function(M){if(M.nextAddress==1)return!I||!(J||r||P)||_.K("kevlar_disable_background_prefetch")&&_.Ue(_.mg0)()===0?M.return():(N=_.jr(z))?M.yield(N.getPlayerPromise(),2):M.return();u=M.yieldResult;E=_.ab().resolve(_.eL(_.Tr));if(!E)return M.return();if(r)return O=_.ji(_.xo),S1i(O,(f=a.endpoint)==null?void 0:f.reelWatchEndpoint,z.reelWatchSequenceResponse,u,E),M.return();F=(A=a.response)==null?void 0:(n=A.responseContext)==
null?void 0:n.webResponseContextExtensionData;if(!F)return M.return();l=(h=a.response)==null?void 0:(v=h.contents)==null?void 0:(d=v.twoColumnWatchNextResults)==null?void 0:(W=d.autoplay)==null?void 0:W.autoplay;q=_.ab().resolve(_.wR);m=_.ji(_.xo);icE(m,F,u,E,q,l);_.nu(M)})};
_.Z.movePlayerToWatch=function(a){var z=this,I,J;return _.t(function(r){I=YY(z.pagePool,"watch");J=I.getPlayerContainer();a.appendTo(J);_.nu(r)})};
_.Z.movePlayerToShorts=function(a){var z=this,I,J,r;return _.t(function(P){I=YY(z.pagePool,"shorts");J=I.getPlayerContainer();(r=a)==null||r.appendTo(J,void 0,!0);_.nu(P)})};
_.Z.getPlayerFromWatch=function(){var a=YY(this.pagePool,"watch");return _.jr(a)};
_.Z.getPlayerFromShorts=function(){var a=YY(this.pagePool,"shorts");return _.jr(a)};
_.Z.startLoadingWatch=function(){var a=this,z=YY(this.pagePool,"watch");this.renderLoadingStateJobId?(_.GW.cancelJob(this.renderLoadingStateJobId),this.renderLoadingStateJobId=0,_.K("web_watch_transition_enable_start_loading_watch_callsite")?CgZ(this.viewTransitionManager,function(){a.renderPageLoadingState("watch")}):this.renderPageLoadingState("watch")):this.setActivePage(z)};
_.Z.startLoadingShorts=function(){var a=YY(this.pagePool,"shorts");this.setActivePage(a)};
_.Z.startLoadingLearningJourney=function(){var a=YY(this.pagePool,"learning_journey_watch");this.setActivePage(a)};
_.Z.getCurrentPage=function(){return this.currentPage};
_.Z.getDestinationPageType=function(){return this.destinationPageType};
_.Z.getCurrentData=function(){return this.data};
_.Z.isOnWatch=function(){return this.isWatchPage(this.currentPage)};
_.Z.isOnShorts=function(){var a;return((a=this.currentPage)==null?void 0:a.is)==="ytd-shorts"};
_.Z.isWatchPage=function(a){return!!a&&(a.is==="ytd-watch-flexy"||a.is==="ytd-watch-fixie"||a.is==="ytd-watch-grid")};
_.Z.preparePage=function(a,z){var I=this,J=function(){var N=I.pagePool.preparePage(a,I.currentPage,z);N&&I.attachPage(N)},r=function(N){_.Tx(N,z);
_.Xd(N)};
if(_.K("kevlar_enable_mss_page_modules_client")){var P=this.getModuleNameForType(a);if(P=rIE(_.ab().resolve(_.Rv),[P])){P.then(J.bind(this)).catch(r.bind(this));return}}try{J()}catch(N){r(N)}};
_.Z.lazyPrepareCriticalPages=function(a,z){a=_.nH(z)||a;_.K("kevlar_enable_mss_page_modules_client")?this.downloadPageModules(a).then(this.maybePrepareWatchPage.bind(this,a)):this.maybePrepareWatchPage(a)};
_.Z.maybePrepareWatchPage=function(a){a!=="watch"&&_.b9(_.GW,this.preparePage.bind(this,"watch"))};
_.Z.downloadPageModules=function(a){a=this.getModuleNameForType(a);var z=new Set(["browse","search","shorts",this.getModuleNameForType("watch")]);z.delete(a);var I=_.ab().resolve(_.Rv);I.JSC$18432_loadModules(a);return I.JSC$18432_loadModules.apply(I,_.ih(z))};
_.Z.renderPageLoadingState=function(a,z){this.preparePage(a,z);var I=YY(this.pagePool,a);I.loadingData&&(I.loadingData.endpoint=z);I.loading=!0;this.setActivePage(I);a!=="watch"&&a!=="learning_journey_watch"||_.PA(this.hostElement,"yt-guide-close")};
_.Z.prepareForNavigation=function(a,z){var I=this;if(this.currentPage&&this.data){var J=_.nH(z)||a;this.destinationPageType=J;KC(this.data)==J&&_.PA(this.currentPage,"yt-page-data-will-update",{bubbles:!1})}if((a==="watch"||a==="learning_journey_watch")&&this.data&&this.data.page!=="watch"&&this.data.page!=="learning_journey_watch"){this.renderLoadingStateJobId&&_.GW.cancelJob(this.renderLoadingStateJobId);_.ab().resolve(_.UJ).deactivate(z);_.hE(_.GW,function(){var P=I.viewTransitionManager,N=I.currentPage;
if(P.isLockupToWatchTransitionEnabled&&P.isLockupThumbnailRegistrationEnabled&&N)if(P.registeredLockupThumbnail)P.lockupThumbnailRegisteredFromWatchEndpoint&&_.Xd(new _.Fn("Lockup thumbnail already registered from watch endpoint."));else{a:{var u=_.H(z,_.MZ);if(u==null?0:u.videoId){var E="yt-lockup-view-model ."+_.JbG(u.videoId)+" yt-thumbnail-view-model";N=N.querySelectorAll(E);if(N.length===1){u=N[0];break a}N.length>1?_.Xd(new _.Fn("Multiple LockupViewModel thumbnails found for videoId: "+u.videoId+
". Selector: "+E)):_.K("web_thumbnail_to_watch_transition_debug")&&_.Xd(new _.Fn("No LockupViewModel thumbnail found for videoId: "+u.videoId+". Selector: "+E))}u=void 0}u&&(P.registeredLockupThumbnail=u,P.lockupThumbnailRegisteredFromWatchEndpoint=!0,_.REe(P,u))}});
var r=this.data;this.renderLoadingStateJobId=_.hE(_.GW,function(){CgZ(I.viewTransitionManager,function(){if(I.data!=r){var P=YY(I.pagePool,a);I.setActivePage(P)}else I.renderPageLoadingState(a,z);I.renderLoadingStateJobId=0})},150)}};
_.Z.preparePageDispose=function(){if(this.currentPage&&Array.isArray(this.currentPage.pageDisposeJobs)&&this.currentPage.pageDisposeJobs.length!==0){var a=new _.NT(1);this.currentPage.pageDisposeJobs.forEach(function(z){_.tt(a,z)});
this.pageDisposeJobsets.set(this.currentPage,a)}};
_.Z.flushPageDisposeJobset=function(a){var z=this.pageDisposeJobsets.get(a);z&&(z.flushJobs(),this.pageDisposeJobsets.delete(a))};
_.Z.onYtStopOldPlayer=function(a,z){z=z===void 0?!1:z;var I,J=_.Py("kevlar_new_stop_old_player_logic_pages");if(_.K("kevlar_check_current_page_on_stop_old_player")&&(J.length===0||this.currentPage&&J.includes(this.currentPage.is)))if(this.data&&(I=KC(this.data)),KC(a)===I&&this.currentPage&&KC(this.currentPage.data)!==I)var r=_.jr(this.currentPage);else I=KC(this.data),r=YY(this.pagePool,I),r=_.jr(r);else this.data&&(I=KC(this.data),r=YY(this.pagePool,I),r=_.jr(r));if(r)if(a=KC(a),J=YY(this.pagePool,
a),J=_.jr(J),r==J)z&&!_.K("kevlar_disable_preemptive_player_reset")&&r.resetForNewPlayback();else if(z=I==="watch"&&a!=="watch",!z||a==="shorts"||_.FVI()&&!UrG(this.data)&&a!=="yts-products"&&a!="mini_app"&&a!="playables")I=_.ab().resolve(_.UJ),z&&I.isMiniplayerActive()&&I.pipController.getWindow()||r.stop()};
_.Z.isDifferentBrowseId=function(a,z){a=_.H(a,_.KH);z=_.H(z,_.KH);return(a==null?void 0:a.browseId)!==(z==null?void 0:z.browseId)};
_.eH.Object.defineProperties(Cm,{template:{configurable:!0,enumerable:!0,get:function(){return zqG()}}});
_.L([_.Q(_.Hc.YtActionHandlerBehavior),_.p("design:type",Object)],Cm.prototype,"ytActionHandlerBehavior",void 0);_.L([_.U({disableElementRegistration:!0,is:"ytd-page-manager"})],Cm);_.D(Cm,"ytd-page-manager",function(){return zqG()},{mode:_.Np("kevlar_poly_si_batch_j081")?1:2});var IXE;var N9=function(){var a=_.G.apply(this,arguments)||this;a.useListItemStyles=_.K("web_list_item_style_for_menu_items");a.systemIcons=_.K("kevlar_system_icons");return a};
_.b(N9,_.G);_.Z=N9.prototype;_.Z.ready=function(){this.hostElement.addEventListener("tap",_.BK(this,this.onEndpointTapExtra))};
_.Z.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","menuitem")};
_.Z.onFocus=function(){var a;(a=_.PK(this.hostElement).querySelector("tp-yt-paper-item"))==null||a.focus()};
_.Z.onEndpointTapExtra=function(a){_.PA(this.hostElement,"iron-activate");var z=this.data.navigationEndpoint;z&&_.H(z,_.VUd)&&(a.stopPropagation(),_.tR(this.hostElement,[z],this.hostElement))};
_.Z.computeIcon=function(a){return a&&a.iconType?_.Bl(a.iconType):""};
_.Z.computeHasSeparator=function(){return!(!this.data||!this.data.hasSeparator)};
_.Z.computeIconHidden=function(){return this.useIcons?!1:!this.icon};
_.Z.forceUpdateStylesOnLegacyBrowsers=function(){_.K("kevlar_legacy_browsers")&&_.uK(this.hostElement)};
N9.prototype.forceUpdateStylesOnLegacyBrowsers=N9.prototype.forceUpdateStylesOnLegacyBrowsers;N9.prototype.onFocus=N9.prototype.onFocus;_.L([_.Q(_.rI),_.p("design:type",Object)],N9.prototype,"ytdOpenPopupBehavior",void 0);_.L([_.Q(_.ywX.YtConditionalRendererBehavior),_.p("design:type",Object)],N9.prototype,"ytConditionalRendererBehavior",void 0);_.L([_.Q(_.FW.YtEndpointBehavior),_.p("design:type",Object)],N9.prototype,"ytEndpointBehavior",void 0);
_.L([_.x(),_.p("design:type",Object)],N9.prototype,"data",void 0);_.L([_.x({computed:"computeIcon(data.icon)",value:""}),_.p("design:type",String)],N9.prototype,"icon",void 0);_.L([_.x({reflectToAttribute:!0,value:!1}),_.p("design:type",Boolean)],N9.prototype,"useIcons",void 0);_.L([_.x({computed:"computeHasSeparator(data.hasSeparator)",reflectToAttribute:!0}),_.p("design:type",Boolean)],N9.prototype,"hasSeparator",void 0);
_.L([_.x({reflectToAttribute:!0}),_.p("design:type",Object)],N9.prototype,"useListItemStyles",void 0);_.L([_.x({reflectToAttribute:!0}),_.p("design:type",Object)],N9.prototype,"systemIcons",void 0);_.L([_.gz("focus"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],N9.prototype,"onFocus",null);_.L([_.O8("useIcons","hasSeparator"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],N9.prototype,"forceUpdateStylesOnLegacyBrowsers",null);
_.D(N9,"ytd-menu-navigation-item-renderer",function(){if(IXE===void 0){var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-menu-navigation-item-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<template is="dom-if" if="[[!hidden]]" class="style-scope ytd-menu-navigation-item-renderer">\n  <a class="yt-simple-endpoint style-scope ytd-menu-navigation-item-renderer" data="[[data.navigationEndpoint]]" href$="[[computeOptionalHref_(data.navigationEndpoint)]]" tabindex="-1">\n    <tp-yt-paper-item aria-label$="[[data.accessibility.accessibilityData.label]]" disabled="[[data.isDisabled]]" class="style-scope ytd-menu-navigation-item-renderer">\n      <yt-icon hidden="[[computeIconHidden(icon, useIcons)]]" icon="[[icon]]" class="style-scope ytd-menu-navigation-item-renderer"></yt-icon>\n      <yt-formatted-string text="[[data.text]]" class="style-scope ytd-menu-navigation-item-renderer"></yt-formatted-string>\n    </tp-yt-paper-item>\n  </a>\n</template>\n');
a.content.insertBefore(_.w().content.cloneNode(!0),a.content.firstChild);IXE=a}a=IXE;return a},{mode:1});var J0Z;var r0Z=_.Mo(_.AR("DOWNLOAD",{},"Download")),Pbf=_.Mo(_.AR("DELETE_FROM_DOWNLOADS",{},"Delete from downloads")),Z0G=_.Mo(_.AR("RETRY",{},"Retry")),CbZ=_.Mo(_.AR("PAUSE_DOWNLOADING",{},"Pause downloading")),NWM=_.Mo(_.AR("RESUME_DOWNLOAD",{},"Resume download")),tk=function(){var a=_.G.apply(this,arguments)||this;a.primaryText=r0Z;a.primaryIconType="OFFLINE_DOWNLOAD";a.hasSecondaryContent=!1;a.hasSeparator=!1;a.transferState="TRANSFER_STATE_UNKNOWN";a.isVideoDeletedByUser=!1;a.isHidden=!1;a.offlineabilityState=
"ADD_TO_OFFLINE_BUTTON_STATE_ENABLED";return a};
_.b(tk,_.G);_.Z=tk.prototype;_.Z.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","menuitem")};
_.Z.onFocus=function(){this.primaryEntry.focus()};
_.Z.onPrimaryClicked=function(){this.sendOfflineAction(this.primaryAction)};
_.Z.onSecondaryClicked=function(){this.sendOfflineAction(this.secondaryAction)};
_.Z.getRemoveAction=function(){return"ACTION_REMOVE"};
_.Z.sendOfflineAction=function(a){var z=this.data.serviceEndpoint;if(z){var I=_.H(z,_.fU);I&&a&&(I.action=a);this.ytComponentBehavior.resolveCommand(z)}};
_.Z.onTransferStateChange=function(){this.hasSecondaryContent=!1;this.secondaryAction=this.primaryAction=void 0;if(this.isVideoDeletedByUser)this.primaryText=r0Z,this.primaryIconType="OFFLINE_DOWNLOAD",this.primaryAction="ACTION_ADD";else switch(this.transferState){case "TRANSFER_STATE_UNKNOWN":this.primaryText=r0Z;this.primaryIconType="OFFLINE_DOWNLOAD";this.primaryAction="ACTION_ADD";break;case "TRANSFER_STATE_FAILED":case "TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH":this.primaryText=Z0G;
this.primaryIconType="OFFLINE_DOWNLOAD";this.primaryAction="ACTION_RETRY";this.secondaryText=Pbf;this.secondaryIconType="DELETE";this.secondaryAction=this.getRemoveAction();this.hasSecondaryContent=!0;break;case "TRANSFER_STATE_PAUSED_BY_USER":this.primaryText=NWM;this.primaryIconType="OFFLINE_DOWNLOAD";this.primaryAction="ACTION_RESUME";this.secondaryText=Pbf;this.secondaryIconType="DELETE";this.secondaryAction=this.getRemoveAction();this.hasSecondaryContent=!0;break;case "TRANSFER_STATE_TRANSFERRING":this.primaryText=
CbZ;this.primaryIconType="OFFLINE_PAUSE";this.primaryAction="ACTION_PAUSE";this.secondaryText=Pbf;this.secondaryIconType="DELETE";this.secondaryAction=this.getRemoveAction();this.hasSecondaryContent=!0;break;case "TRANSFER_STATE_COMPLETE":case "TRANSFER_STATE_TRANSFER_IN_QUEUE":this.primaryText=Pbf;this.primaryIconType="DELETE";this.primaryAction=this.getRemoveAction();break;default:this.primaryText=r0Z,this.primaryIconType="OFFLINE_DOWNLOAD",this.primaryAction="ACTION_ADD"}};
_.Z.showHideButton=function(){this.isHidden=this.offlineabilityState!=="ADD_TO_OFFLINE_BUTTON_STATE_ENABLED"};
_.Z.isSecondaryEntryHidden=function(a,z){return a?!0:!z};
_.Z.computeHasSeparator=function(){var a;return!((a=this.data)==null||!a.hasSeparator)};
tk.prototype.showHideButton=tk.prototype.showHideButton;tk.prototype.onTransferStateChange=tk.prototype.onTransferStateChange;tk.prototype.onFocus=tk.prototype.onFocus;_.L([_.Q(_.k.YtRendererBehavior),_.p("design:type",Object)],tk.prototype,"ytRendererBehavior",void 0);_.L([_.Q(_.pV),_.p("design:type",Object)],tk.prototype,"ytdReduxBehavior",void 0);_.L([_.Q(_.Ms.YtComponentBehavior),_.p("design:type",Object)],tk.prototype,"ytComponentBehavior",void 0);
_.L([_.x(),_.p("design:type",Object)],tk.prototype,"data",void 0);_.L([_.x(),_.p("design:type",Object)],tk.prototype,"primaryText",void 0);_.L([_.x(),_.p("design:type",String)],tk.prototype,"primaryIconType",void 0);_.L([_.x(),_.p("design:type",String)],tk.prototype,"primaryAction",void 0);_.L([_.x(),_.p("design:type",Object)],tk.prototype,"secondaryText",void 0);_.L([_.x(),_.p("design:type",String)],tk.prototype,"secondaryIconType",void 0);
_.L([_.x(),_.p("design:type",String)],tk.prototype,"secondaryAction",void 0);_.L([_.x(),_.p("design:type",Object)],tk.prototype,"hasSecondaryContent",void 0);_.L([_.x({computed:"computeHasSeparator(data.hasSeparator)",reflectToAttribute:!0}),_.p("design:type",Object)],tk.prototype,"hasSeparator",void 0);_.L([_.x({selector:_.oU,selectorArgs:["data.serviceEndpoint.offlineVideoEndpoint.videoId"]}),_.p("design:type",String)],tk.prototype,"transferState",void 0);
_.L([_.x({selector:_.ZNM,selectorArgs:["data.serviceEndpoint.offlineVideoEndpoint.videoId"]}),_.p("design:type",Object)],tk.prototype,"isVideoDeletedByUser",void 0);_.L([_.x(),_.p("design:type",Object)],tk.prototype,"isHidden",void 0);_.L([_.x({selector:_.aGi,selectorArgs:["data.serviceEndpoint.offlineVideoEndpoint.videoId"]}),_.p("design:type",Object)],tk.prototype,"offlineabilityState",void 0);_.L([_.A3("#primary-entry"),_.p("design:type",Object)],tk.prototype,"primaryEntry",void 0);
_.L([_.gz("focus"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],tk.prototype,"onFocus",null);_.L([_.Fe("transferState","isVideoDeletedByUser"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],tk.prototype,"onTransferStateChange",null);_.L([_.Fe("offlineabilityState"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],tk.prototype,"showHideButton",null);
_.D(tk,"ytd-menu-service-item-download-renderer",function(){if(J0Z===void 0){var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-menu-service-item-download-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e\n<tp-yt-paper-item id="primary-entry" hidden="[[isHidden]]" on-tap="onPrimaryClicked" class="style-scope ytd-menu-service-item-download-renderer">\n  <yt-icon icon="[[primaryIconType]]" class="style-scope ytd-menu-service-item-download-renderer"></yt-icon>\n  <yt-formatted-string text="[[primaryText]]" class="style-scope ytd-menu-service-item-download-renderer"></yt-formatted-string>\n</tp-yt-paper-item>\n<tp-yt-paper-item id="secondary-entry" hidden="[[isSecondaryEntryHidden(isHidden, hasSecondaryContent)]]" on-tap="onSecondaryClicked" class="style-scope ytd-menu-service-item-download-renderer">\n  <yt-icon icon="[[secondaryIconType]]" class="style-scope ytd-menu-service-item-download-renderer"></yt-icon>\n  <yt-formatted-string text="[[secondaryText]]" class="style-scope ytd-menu-service-item-download-renderer"></yt-formatted-string>\n</tp-yt-paper-item>\n');
a.content.insertBefore(_.w().content.cloneNode(!0),a.content.firstChild);J0Z=a}a=J0Z;return a},{mode:1});var tjf;var uZ=function(){var a=_.G.apply(this,arguments)||this;a.useIcons=!1;a.systemIcons=_.K("kevlar_system_icons");a.useListItemStyles=_.K("web_list_item_style_for_menu_items");return a};
_.b(uZ,_.G);_.Z=uZ.prototype;_.Z.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","menuitem")};
_.Z.onFocus=function(){var a;(a=_.PK(this.hostElement).querySelector("tp-yt-paper-item"))==null||a.focus()};
_.Z.onTap=function(){_.Ct(this.hostElement,"yt-menu-service-item-selected-action",[this.data]);var a=this.data.serviceEndpoint,z=this.data.command;if(a){var I,J=(I=this.data)==null?void 0:I.trackingParams;I=!!_.H(a,_.Tho);J&&I&&_.qo().dispatch(_.rg({type:"SET_PARENT_CLICK_TRACKING_PARAMS",payload:{parentClickTrackingParams:J}}));this.ytComponentBehavior.resolveCommand(a)||_.ab().resolve(_.j6).resolveCommand(a,{form:{element:this.hostElement}})}z&&(this.ytComponentBehavior.resolveCommand(z)||_.tR(this.hostElement,
[z],this.hostElement))};
_.Z.computeIcon=function(a){return a&&a.iconType?_.Bl(a.iconType):""};
_.Z.computeIconHidden=function(){return this.useIcons?!1:!this.icon};
_.Z.computeHasSeparator=function(){var a;return!((a=this.data)==null||!a.hasSeparator)};
_.Z.forceUpdateStylesOnLegacyBrowsers=function(){_.K("kevlar_legacy_browsers")&&_.uK(this.hostElement)};
_.Z.computeIsSelected=function(){var a;return!((a=this.data)==null||!a.isSelected)};
uZ.prototype.forceUpdateStylesOnLegacyBrowsers=uZ.prototype.forceUpdateStylesOnLegacyBrowsers;uZ.prototype.onTap=uZ.prototype.onTap;uZ.prototype.onFocus=uZ.prototype.onFocus;_.L([_.Q(_.k.YtRendererBehavior),_.p("design:type",Object)],uZ.prototype,"ytRendererBehavior",void 0);_.L([_.Q(_.rI),_.p("design:type",Object)],uZ.prototype,"ytdOpenPopupBehavior",void 0);_.L([_.Q(_.Ms.YtComponentBehavior),_.p("design:type",Object)],uZ.prototype,"ytComponentBehavior",void 0);
_.L([_.Q(_.ywX.YtConditionalRendererBehavior),_.p("design:type",Object)],uZ.prototype,"ytConditionalRendererBehavior",void 0);_.L([_.x(),_.p("design:type",Object)],uZ.prototype,"data",void 0);_.L([_.x({computed:"computeIcon(data.icon)",value:""}),_.p("design:type",String)],uZ.prototype,"icon",void 0);_.L([_.x({reflectToAttribute:!0}),_.p("design:type",Object)],uZ.prototype,"useIcons",void 0);
_.L([_.x({computed:"computeHasSeparator(data.hasSeparator)",reflectToAttribute:!0}),_.p("design:type",Boolean)],uZ.prototype,"hasSeparator",void 0);_.L([_.x({computed:"computeIsSelected(data.isSelected)",reflectToAttribute:!0}),_.p("design:type",Boolean)],uZ.prototype,"isSelected",void 0);_.L([_.x({reflectToAttribute:!0}),_.p("design:type",Object)],uZ.prototype,"systemIcons",void 0);_.L([_.x({reflectToAttribute:!0}),_.p("design:type",Object)],uZ.prototype,"useListItemStyles",void 0);
_.L([_.gz("focus"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],uZ.prototype,"onFocus",null);_.L([_.gz("tap"),_.p("design:type",Function),_.p("design:paramtypes",[Event]),_.p("design:returntype")],uZ.prototype,"onTap",null);_.L([_.O8("useIcons","hasSeparator"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],uZ.prototype,"forceUpdateStylesOnLegacyBrowsers",null);
_.D(uZ,"ytd-menu-service-item-renderer",function(){if(tjf===void 0){var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-menu-service-item-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<tp-yt-paper-item disabled="[[data.isDisabled]]" class="style-scope ytd-menu-service-item-renderer">\n  <yt-icon hidden="[[computeIconHidden(icon, useIcons)]]" icon="[[icon]]" class="style-scope ytd-menu-service-item-renderer"></yt-icon>\n  <yt-formatted-string text="[[data.text]]" class="style-scope ytd-menu-service-item-renderer"></yt-formatted-string>\n  <ytd-badge-supported-renderer badges="[[data.badges]]" hidden="[[!data.badges]]" class="style-scope ytd-menu-service-item-renderer">\n  </ytd-badge-supported-renderer>\n</tp-yt-paper-item>\n');
a.content.insertBefore(_.w().content.cloneNode(!0),a.content.firstChild);tjf=a}a=tjf;return a},{mode:2});var uQM;var E6=function(){return _.G.apply(this,arguments)||this};
_.b(E6,_.G);_.Z=E6.prototype;_.Z.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.Z.onDataChanged=function(){var a=this;_.Yv(this,function(){a.postbox.openDialog();a.focus();_.PA(a.hostElement,"yt-refit")})};
_.Z.focus=function(){this.postbox.focus()};
_.Z.closePopup=function(){_.ZF(this.hostElement,"yt-close-popup-action")};
_.Z.onYtCommentboxDismiss=function(){this.closePopup()};
E6.prototype.onYtCommentboxDismiss=E6.prototype.onYtCommentboxDismiss;E6.prototype.onDataChanged=E6.prototype.onDataChanged;_.L([_.Q(_.k.YtRendererBehavior),_.p("design:type",Object)],E6.prototype,"ytRendererBehavior",void 0);_.L([_.x(),_.p("design:type",Object)],E6.prototype,"data",void 0);_.L([_.x({value:function(){return _.AR("SBOX_INAPPROPRIATE_CANCEL")}}),
_.p("design:type",String)],E6.prototype,"closeButtonAriaLabel",void 0);_.L([_.A3("#postbox"),_.p("design:type",Object)],E6.prototype,"postbox",void 0);_.L([_.O8("data"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],E6.prototype,"onDataChanged",null);_.L([_.gz("yt-commentbox-dismiss"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],E6.prototype,"onYtCommentboxDismiss",null);
_.L([_.U({disableElementRegistration:!0,is:"ytd-backstage-post-dialog-popup-renderer"})],E6);
_.D(E6,"ytd-backstage-post-dialog-popup-renderer",function(){if(uQM!==void 0)return uQM;var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-backstage-post-dialog-popup-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="title-bar" class="style-scope ytd-backstage-post-dialog-popup-renderer">\n  <div id="title" class="style-scope ytd-backstage-post-dialog-popup-renderer">\n    [[getSimpleString(data.dialogRenderer.backstagePostDialogRenderer.title)]]\n  </div>\n  <yt-icon-button id="close-panel-icon" aria-label$="[[closeButtonAriaLabel]]" on-tap="closePopup" class="style-scope ytd-backstage-post-dialog-popup-renderer">\n    <yt-icon class="remove-option style-scope ytd-backstage-post-dialog-popup-renderer" icon="yt-icons:close"></yt-icon>\n  </yt-icon-button>\n</div>\n<ytd-backstage-post-dialog-renderer id="postbox" data="[[data.dialogRenderer.backstagePostDialogRenderer]]" in-popup-container="" class="style-scope ytd-backstage-post-dialog-popup-renderer">\n  <div slot="repost-preview" hidden="[[!data.dialogRenderer.backstagePostDialogRenderer.backstageAttachment.postRenderer]]" class="style-scope ytd-backstage-post-dialog-popup-renderer">\n    <ytd-post-renderer data="[[data.dialogRenderer.backstagePostDialogRenderer.backstageAttachment.postRenderer]]" class="style-scope ytd-backstage-post-dialog-popup-renderer">\n    </ytd-post-renderer>\n  </div>\n</ytd-backstage-post-dialog-renderer>\n');a.content.insertBefore(_.w().content.cloneNode(!0),
a.content.firstChild);return uQM=a},{mode:1});var EtV;var Bx=function(){return _.G.apply(this,arguments)||this};
_.b(Bx,_.G);_.L([_.Q(_.k.YtRendererBehavior),_.p("design:type",Object)],Bx.prototype,"ytRendererBehavior",void 0);_.L([_.x(),_.p("design:type",Object)],Bx.prototype,"data",void 0);_.L([_.U({disableElementRegistration:!0,is:"ytd-sender-id-section-renderer"})],Bx);
_.D(Bx,"ytd-sender-id-section-renderer",function(){if(EtV!==void 0)return EtV;var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-sender-id-section-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="text" class="style-scope ytd-sender-id-section-renderer">[[getSimpleString(data.text)]]</div>\n');a.content.insertBefore(_.w().content.cloneNode(!0),a.content.firstChild);
return EtV=a},{mode:1});var BWV;var gtV;var O0e;var gb=function(){return _.G.apply(this,arguments)||this};
_.b(gb,_.G);gb.prototype.closePopup=function(){_.ZF(this.hostElement,"yt-close-popup-action")};
_.L([_.Q(_.k.YtRendererBehavior),_.p("design:type",Object)],gb.prototype,"ytRendererBehavior",void 0);_.L([_.x(),_.p("design:type",Object)],gb.prototype,"data",void 0);_.L([_.dz({is:"yt-community-post-section-renderer",disableElementRegistration:!0})],gb);
_.D(gb,"yt-community-post-section-renderer",function(){if(O0e===void 0){var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-community-post-section-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.sharing.yt_community_post_section_renderer.yt.community.post.section.renderer.css.js--\x3e<div id="title" class="style-scope yt-community-post-section-renderer">[[getSimpleString(data.title)]]</div>\n<div class="style-scope yt-community-post-section-renderer">\n  <yt-button-renderer id="post-button" data="[[data.postButton.buttonRenderer]]" on-tap="closePopup" class="style-scope yt-community-post-section-renderer">\n  </yt-button-renderer>\n</div>\n<div id="subtitle" class="style-scope yt-community-post-section-renderer">[[getSimpleString(data.subtitle)]]</div>\n');a.content.insertBefore(_.w().content.cloneNode(!0),
a.content.firstChild);var z=a.content,I=z.insertBefore;gtV===void 0&&(gtV=document.createElement("template"));var J=gtV;I.call(z,J.content.cloneNode(!0),a.content.firstChild);O0e=a}a=O0e;return a},{mode:2});var fXZ;var A0V;var s1E;var ntZ;var KBi;var FBf;var O6=function(){return _.G.apply(this,arguments)||this};
_.b(O6,_.G);_.L([_.Q(_.k.YtRendererBehavior),_.p("design:type",Object)],O6.prototype,"ytRendererBehavior",void 0);_.L([_.x(),_.p("design:type",Object)],O6.prototype,"data",void 0);_.L([_.dz({is:"yt-share-start-time-with-context-renderer",disableElementRegistration:!0})],O6);
_.D(O6,"yt-share-start-time-with-context-renderer",function(){if(FBf===void 0){var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-share-start-time-with-context-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.sharing.yt_share_start_time_with_context_renderer.yt.share.start.time.with.context.renderer.css.js--\x3e<div id="start-time-title" class="style-scope yt-share-start-time-with-context-renderer"><yt-formatted-string aria-label$="[[getSimpleString(data.title)]]" text="[[data.title]]" class="style-scope yt-share-start-time-with-context-renderer"></yt-formatted-string></div>');a.content.insertBefore(_.w().content.cloneNode(!0),
a.content.firstChild);var z=a.content,I=z.insertBefore;KBi===void 0&&(KBi=document.createElement("template"));var J=KBi;I.call(z,J.content.cloneNode(!0),a.content.firstChild);FBf=a}a=FBf;return a},{mode:2});var fm=function(){return _.G.apply(this,arguments)||this};
_.b(fm,_.G);fm.prototype.configureRendererStamper=function(){return{"data.subtitle":{id:"subtitle",mapping:{shareStartTimeWithContextRenderer:"yt-share-start-time-with-context-renderer"}}}};
_.L([_.Q(_.k.YtRendererBehavior),_.p("design:type",Object)],fm.prototype,"ytRendererBehavior",void 0);_.L([_.Q(_.u4.YtRendererstamperBehavior),_.p("design:type",Object)],fm.prototype,"ytRendererstamperBehavior",void 0);_.L([_.x(),_.p("design:type",Object)],fm.prototype,"data",void 0);_.L([_.dz({is:"yt-share-panel-title-v15-renderer",disableElementRegistration:!0})],fm);
_.D(fm,"yt-share-panel-title-v15-renderer",function(){if(ntZ===void 0){var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-share-panel-title-v15-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.sharing.yt_share_panel_title_v15_renderer.yt.share.panel.title.v15.renderer.css.js--\x3e<h2 id="title" class="style-scope yt-share-panel-title-v15-renderer">[[getSimpleString(data.title)]]</h2>\n<div id="subtitle" hidden="[[!data.subtitle]]" class="style-scope yt-share-panel-title-v15-renderer"></div>\n');a.content.insertBefore(_.w().content.cloneNode(!0),
a.content.firstChild);var z=a.content,I=z.insertBefore;s1E===void 0&&(s1E=document.createElement("template"));var J=s1E;I.call(z,J.content.cloneNode(!0),a.content.firstChild);ntZ=a}a=ntZ;return a},{mode:2});var Ak=function(){return _.G.apply(this,arguments)||this};
_.b(Ak,_.G);Ak.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"}}}};
_.L([_.Q(_.k.YtRendererBehavior),_.p("design:type",Object)],Ak.prototype,"ytRendererBehavior",void 0);_.L([_.Q(_.u4.YtRendererstamperBehavior),_.p("design:type",Object)],Ak.prototype,"ytRendererstamperBehavior",void 0);_.L([_.x(),_.p("design:type",Object)],Ak.prototype,"data",void 0);_.L([_.dz({is:"yt-share-panel-header-renderer",disableElementRegistration:!0})],Ak);
_.D(Ak,"yt-share-panel-header-renderer",function(){if(A0V===void 0){var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-share-panel-header-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.sharing.yt_share_panel_header_renderer.yt.share.panel.header.renderer.css.js--\x3e<div id="community-post" class="style-scope yt-share-panel-header-renderer"></div>\n<div id="title-bar" class="style-scope yt-share-panel-header-renderer">\n  <div id="title" class="style-scope yt-share-panel-header-renderer"></div>\n</div>\n');a.content.insertBefore(_.w().content.cloneNode(!0),
a.content.firstChild);var z=a.content,I=z.insertBefore;fXZ===void 0&&(fXZ=document.createElement("template"));var J=fXZ;I.call(z,J.content.cloneNode(!0),a.content.firstChild);A0V=a}a=A0V;return a},{mode:2});var H0e;var b00;var s6=function(){var a=_.G.apply(this,arguments)||this;a.actionMap={"yt-open-popup-action":"onOpen"};return a};
_.b(s6,_.G);_.Z=s6.prototype;_.Z.attached=function(){this.onOpen()};
_.Z.updateTimeSecs=function(a){this.currentTimeSecs=a};
_.Z.computeTimeString=function(a){a=a.toString();var z=Math.floor(Number(a)/3600),I=Math.floor(Number(a)%3600%60);return(z>0?z+":":"")+_.Ic(Math.floor(Number(a)%3600/60),z>0?2:1)+":"+_.Ic(I,2)};
_.Z.computeTimeStringA11y=function(a){a=_.Nr0({seconds:a});var z=a.hours===void 0?0:a.hours,I=a.minutes===void 0?0:a.minutes,J=a.seconds===void 0?0:a.seconds;a=[];if(z>0){var r=hFV().format({hours:z});if(!"be bg es et hu it ka lv pl pt-PT sl sq".split(" ").includes(_.L5)||z>9999)r=r.replace(z.toString(),_.tPM(z)),_.L5==="km"&&(r=r.replace(".",","));a.push(r)}I>0&&a.push(hFV().format({minutes:I}));J>0&&a.push(hFV().format({seconds:J}));z="be gu ja kk km ko mn ru tr uz zh-HK zh-TW".split(" ");I=_.L5==
"am"?"{0}\u1363 ":_.L5=="fa"?"{0}\u060c\u200f ":_.L5=="my"?"{0} - ":_.L5=="ne"?"{0},":_.L5=="th"?"{0} ":_.L5=="ur"?"{0}\u060c ":_.L5=="ar"||_.L5=="ar-XB"?"{0} \u0648":_.L5=="ja"||_.L5=="zh-CN"||_.L5=="zh-HK"||_.L5=="zh-TW"?"{0}\u3001":"{0}, ";J=_.L5=="am"?"\u1363 ":_.L5=="fa"?"\u060c\u200f ":_.L5=="my"?" - ":_.L5=="th"?" ":_.L5=="ur"?"\u060c ":_.L5=="ar"||_.L5=="ar-XB"?" \u0648":_.L5=="ja"||_.L5=="zh-CN"||_.L5=="zh-HK"||_.L5=="zh-TW"?"\u3001":", ";r=_.L5=="am"?" \u12a5\u1293 {0}":_.L5=="as"?" \u0986\u09f0\u09c1 {0}":
_.L5=="az"?" v\u0259 {0}":_.L5=="bn"?" \u098f\u09ac\u0982 {0}":_.L5=="cs"?" a\u00a0{0}":_.L5=="de"?" und {0}":_.L5=="el"?" \u03ba\u03b1\u03b9 {0}":_.L5=="eu"?" eta {0}":_.L5=="fa"?"\u060c \u0648 {0}":_.L5=="fil"?", at {0}":_.L5=="gu"?" \u0a85\u0aa8\u0ac7 {0}":_.L5=="hi"?", \u0914\u0930 {0}":_.L5=="hu"?" \u00e9s {0}":_.L5=="hy"?" \u0587 {0}":_.L5=="id"?", dan {0}":_.L5=="iw"?" \u05d5-{0}":_.L5=="ja"?"\u3001{0}":_.L5=="ka"?" \u10d3\u10d0 {0}":_.L5=="km"?" \u1793\u17b7\u1784 {0}":_.L5=="kn"?", \u0cae\u0ca4\u0ccd\u0ca4\u0cc1 {0}":
_.L5=="ko"?" \ubc0f {0}":_.L5=="ky"?" \u0436\u0430\u043d\u0430 {0}":_.L5=="lt"?" ir {0}":_.L5=="lv"?" un {0}":_.L5=="ml"?", {0} \u0d0e\u0d28\u0d4d\u0d28\u0d3f\u0d35":_.L5=="mr"?" \u0906\u0923\u093f {0}":_.L5=="ms"?" dan {0}":_.L5=="my"?"\u1014\u103e\u1004\u1037\u103a {0}":_.L5=="ne"?" \u0930 {0}":_.L5=="or"?", \u0b13 {0}":_.L5=="pa"?" \u0a05\u0a24\u0a47 {0}":_.L5=="ro"?" \u0219i {0}":_.L5=="si"?", \u0dc3\u0dc4 {0}":_.L5=="sk"?" a {0}":_.L5=="sl"?" in {0}":_.L5=="sq"?" dhe {0}":_.L5=="sv"?" och {0}":
_.L5=="sw"?" na {0}":_.L5=="ta"?" \u0bae\u0bb1\u0bcd\u0bb1\u0bc1\u0bae\u0bcd {0}":_.L5=="te"?" \u0c2e\u0c30\u0c3f\u0c2f\u0c41 {0}":_.L5=="th"?" \u0e41\u0e25\u0e30{0}":_.L5=="tr"?" ve {0}":_.L5=="ur"?"\u060c \u0627\u0648\u0631 {0}":_.L5=="uz"?" va {0}":_.L5=="vi"?" v\u00e0 {0}":_.L5=="zh-HK"?"\u53ca{0}":_.L5=="zu"?", ne-{0}":_.L5=="af"||_.L5=="nl"?" en {0}":_.L5=="ar"||_.L5=="ar-XB"?" \u0648{0}":_.L5=="be"||_.L5=="uk"?" \u0456 {0}":_.L5=="en-GB"||_.L5=="en-IN"?" and {0}":_.L5=="en"||_.L5=="en-XA"?
", and {0}":_.L5=="et"||_.L5=="fi"?" ja {0}":_.L5=="fr"||_.L5=="fr-CA"?" et {0}":_.L5=="zh-CN"||_.L5=="zh-TW"?"\u548c{0}":_.L5=="da"||_.L5=="is"||_.L5=="no"?" og {0}":_.L5=="es"||_.L5=="es-419"||_.L5=="es-US"?" y {0}":_.L5=="kk"||_.L5=="lo"||_.L5=="mn"?", {0}":_.L5=="bg"||_.L5=="mk"||_.L5=="ru"||_.L5=="sr"?" \u0438 {0}":_.L5=="gl"||_.L5=="it"||_.L5=="pt-BR"||_.L5=="pt-PT"?" e {0}":" i {0}";var P=_.L5=="am"?"{0} \u12a5\u1293 {1}":_.L5=="as"?"{0} \u0986\u09f0\u09c1 {1}":_.L5=="az"?"{0} v\u0259 {1}":
_.L5=="bn"?"{0} \u098f\u09ac\u0982 {1}":_.L5=="de"?"{0} und {1}":_.L5=="el"?"{0} \u03ba\u03b1\u03b9 {1}":_.L5=="eu"?"{0} eta {1}":_.L5=="fa"?"{0} \u0648 {1}":_.L5=="fil"?"{0} at {1}":_.L5=="gu"?"{0} \u0a85\u0aa8\u0ac7 {1}":_.L5=="hi"?"{0} \u0914\u0930 {1}":_.L5=="hu"?"{0} \u00e9s {1}":_.L5=="hy"?"{0} \u0587 {1}":_.L5=="iw"?"{0} \u05d5-{1}":_.L5=="ja"?"{0}\u3001{1}":_.L5=="ka"?"{0} \u10d3\u10d0 {1}":_.L5=="kk"?"{0} \u0436\u04d9\u043d\u0435 {1}":_.L5=="km"?"{0} \u1793\u17b7\u1784\u200b{1}":_.L5=="kn"?
"{0} \u0cae\u0ca4\u0ccd\u0ca4\u0cc1 {1}":_.L5=="ko"?"{0} \ubc0f {1}":_.L5=="ky"?"{0} \u0436\u0430\u043d\u0430 {1}":_.L5=="lo"?"{0} \u0ec1\u0ea5\u0eb0 {1}":_.L5=="lt"?"{0} ir {1}":_.L5=="lv"?"{0} un {1}":_.L5=="ml"?"{0} \u0d15\u0d42\u0d1f\u0d3e\u0d24\u0d46 {1}":_.L5=="mn"?"{0}, {1}":_.L5=="mr"?"{0} \u0906\u0923\u093f {1}":_.L5=="my"?"{0}\u1014\u103e\u1004\u1037\u103a {1}":_.L5=="ne"?"{0} \u0930 {1}":_.L5=="or"?"{0} \u0b13 {1}":_.L5=="pa"?"{0} \u0a05\u0a24\u0a47 {1}":_.L5=="ro"?"{0} \u0219i {1}":_.L5==
"si"?"{0} \u0dc3\u0dc4 {1}":_.L5=="sl"?"{0} in {1}":_.L5=="sq"?"{0} dhe {1}":_.L5=="sv"?"{0} och {1}":_.L5=="sw"?"{0} na {1}":_.L5=="ta"?"{0} \u0bae\u0bb1\u0bcd\u0bb1\u0bc1\u0bae\u0bcd {1}":_.L5=="te"?"{0} \u0c2e\u0c30\u0c3f\u0c2f\u0c41 {1}":_.L5=="th"?"{0}\u0e41\u0e25\u0e30{1}":_.L5=="tr"?"{0} ve {1}":_.L5=="ur"?"{0} \u0627\u0648\u0631 {1}":_.L5=="uz"?"{0} va {1}":_.L5=="vi"?"{0} v\u00e0 {1}":_.L5=="zh-HK"?"{0}\u53ca{1}":_.L5=="zu"?"{0} ne-{1}":_.L5=="af"||_.L5=="nl"?"{0} en {1}":_.L5=="ar"||_.L5==
"ar-XB"?"{0} \u0648{1}":_.L5=="be"||_.L5=="uk"?"{0} \u0456 {1}":_.L5=="cs"||_.L5=="sk"?"{0} a\u00a0{1}":_.L5=="et"||_.L5=="fi"?"{0} ja {1}":_.L5=="fr"||_.L5=="fr-CA"?"{0} et {1}":_.L5=="id"||_.L5=="ms"?"{0} dan {1}":_.L5=="zh-CN"||_.L5=="zh-TW"?"{0}\u548c{1}":_.L5=="da"||_.L5=="is"||_.L5=="no"?"{0} og {1}":_.L5=="es"||_.L5=="es-419"||_.L5=="es-US"?"{0} y {1}":_.L5=="bg"||_.L5=="mk"||_.L5=="ru"||_.L5=="sr"?"{0} \u0438 {1}":_.L5=="en"||_.L5=="en-GB"||_.L5=="en-IN"||_.L5=="en-XA"?"{0} and {1}":_.L5==
"gl"||_.L5=="it"||_.L5=="pt-BR"||_.L5=="pt-PT"?"{0} e {1}":"{0} i {1}";_.L5==="sq"?(r=r.replace("dhe","e"),P=P.replace("dhe","e")):_.L5==="th"?(J=J.replace("{0}"," {0}"),P=P.replace("{0}","{0} "),P=P.replace("{1}"," {1}")):_.L5==="ne"?J=",":_.L5==="zh-CN"?J="":z.includes(_.L5)&&(J=" ");return a.length<2?a.join(""):"am ar bg bs ca cs da es es-419 es-US eu fa fi fr-CA fr gl gu hi hr hu hy is it lt lv mk my no nl pl pt-BR pt-PT ro si sl sq sr-Latn sr sw th uk".split(" ").includes(_.L5)?a.length===2?
P.replace("{0}",a[0]).replace("{1}",a[1]):I.replace("{0}",a[0])+a.slice(1,-1).join(J)+r.replace("{0}",a[a.length-1]):a.join(J)};
_.Z.getTimeParam=function(){return kze(this.timeString)};
_.Z.onChangeStartAtCheckbox=function(){this.startAtTimestamp.disabled=!this.isStartAtChecked;this.setTimestamp();var a={checkboxData:{state:this.isStartAtChecked?"CHECKBOX_STATE_ON":"CHECKBOX_STATE_OFF"}},z;_.KJ(_.Kw(),(z=this.data)==null?void 0:z.trackingParams,a,7)};
_.Z.onChangeStartAtTimestamp=function(){for(var a=this.startAtTimestamp.value.split(":"),z=0,I=1,J=a.length-1;J>=0;J--)z+=Number(a[J])*I,I*=60;this.updateTimeSecs(z);this.setTimestamp()};
_.Z.onOpen=function(){var a=this;this.updateTimeSecs(0);this.isStartAtChecked=!1;var z=_.zI();z?z.getPlayerPromise().then(function(I){I=I.getCurrentTime();a.updateTimeSecs(I)}):VEZ()&&this.updateTimeSecs(VEZ())};
_.Z.setTimestamp=function(){var a=Math.floor(this.currentTimeSecs);_.ZF(this.hostElement,"yt-share-panel-set-timestamp-action",[{isSet:this.isStartAtChecked&&!!a,timestamp:a||""}])};
_.L([_.Q(_.Hc.YtActionHandlerBehavior),_.p("design:type",Object)],s6.prototype,"ytActionHandlerBehavior",void 0);_.L([_.Q(_.k.YtRendererBehavior),_.p("design:type",Object)],s6.prototype,"ytRendererBehavior",void 0);_.L([_.x(),_.p("design:type",Object)],s6.prototype,"data",void 0);_.L([_.x({value:!1,notify:!0}),_.p("design:type",Boolean)],s6.prototype,"isStartAtChecked",void 0);_.L([_.x(),_.p("design:type",Number)],s6.prototype,"currentTimeSecs",void 0);
_.L([_.x({computed:"computeTimeString(currentTimeSecs)"}),_.p("design:type",String)],s6.prototype,"timeString",void 0);_.L([_.x({computed:"computeTimeStringA11y(currentTimeSecs)"}),_.p("design:type",String)],s6.prototype,"timeStringA11y",void 0);_.L([_.A3("#start-at-timestamp"),_.p("design:type",Object)],s6.prototype,"startAtTimestamp",void 0);_.L([_.dz({is:"yt-start-at-renderer",disableElementRegistration:!0})],s6);
_.D(s6,"yt-start-at-renderer",function(){if(b00===void 0){var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-start-at-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.sharing.yt_start_at_renderer.yt.start.at.renderer.css.js--\x3e<div id="start-at-wrapper" class="style-scope yt-start-at-renderer">\n  <tp-yt-paper-checkbox id="start-at-checkbox" checked="{{isStartAtChecked}}" on-change="onChangeStartAtCheckbox" class="style-scope yt-start-at-renderer">\n    <yt-formatted-string text="[[data.startAtOptionLabel]]" class="style-scope yt-start-at-renderer"></yt-formatted-string>\n  </tp-yt-paper-checkbox>\n  <tp-yt-paper-input id="start-at-timestamp" allowed-pattern="[:0-9]" aria-label="[[timeStringA11y]]" disabled="" no-label-float="" use-v2-underline="" value="[[timeString]]" on-blur="onChangeStartAtTimestamp" on-change="onChangeStartAtTimestamp" class="style-scope yt-start-at-renderer">\n  </tp-yt-paper-input>\n</div>\n');
a.content.insertBefore(_.w().content.cloneNode(!0),a.content.firstChild);var z=a.content,I=z.insertBefore;H0e===void 0&&(H0e=document.createElement("template"));var J=H0e;I.call(z,J.content.cloneNode(!0),a.content.firstChild);b00=a}a=b00;return a},{mode:2});var hqM;var VjZ;var Q1G=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"]]),Su0=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"]]),i0Y=new Map([["ARROW_CHART_NEUTRAL","yt-icons:"],["OFFLINE_NO_CONTENT","offline-no-content:"],["YOUTUBE","yt-logos:"]]);var x8V={};x8V.YtBindingExpressionsBehavior={identity:_.T3,msg:function(a,z){z=z===void 0?{}:z;return _.AR(a,z,a)},
msgPlural:function(a,z){return _.s_(a,z)},
getMusicIconFromType:function(a){if(_.K("music_web_enable_icon_wil"))a=_.Bl(a);else if(Su0.has(a))a="yt-sys-icons:"+Su0.get(a);else{var z=Q1G.get(a)||_.Bl(a).split(":")[1];z=_.U4G(z);var I;a=((I=i0Y.get(a))!=null?I:"yt-sys-icons:")+z}return a}};var vtZ;var Gqi;var $80;var XXM=document.head,TWZ=XXM.appendChild,d8e;if($80===void 0){var WBV=document.createElement("template");_.V(WBV,'\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>');$80=WBV}d8e=$80;TWZ.call(XXM,d8e.content);var nm=function(){var a=_.G.apply(this,arguments)||this;a.screenLayer=7;return a};
_.b(nm,_.G);nm.prototype.getScreenLayer=function(){return this.screenLayer};
nm.prototype.onTap=function(a){a&&a.detail&&(a.detail.x||a.detail.y)&&_.PK(this.hostElement).querySelector("#target").blur();this.data.serviceEndpoint?_.N$(this.hostElement,[this.data.serviceEndpoint]):this.data.navigationEndpoint&&(a=this.getScreenLayer(),_.PA(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint,createScreenConfig:{layer:a}}));this.data.onTapCommand&&this.ytComponentBehavior.resolveCommand(this.data.onTapCommand,{form:{createScreenConfig:{layer:this.getScreenLayer()}}})};
_.eH.Object.defineProperties(nm.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()}}});
nm.prototype.onTap=nm.prototype.onTap;_.L([_.Q(_.k.YtRendererBehavior),_.p("design:type",Object)],nm.prototype,"ytRendererBehavior",void 0);_.L([_.Q(_.Ms.YtComponentBehavior),_.p("design:type",Object)],nm.prototype,"ytComponentBehavior",void 0);_.L([_.x(),_.p("design:type",Object)],nm.prototype,"data",void 0);_.L([_.S("data.title"),_.p("design:type",Object),_.p("design:paramtypes",[])],nm.prototype,"title",null);
_.L([_.S("data.serviceName"),_.p("design:type",String),_.p("design:paramtypes",[])],nm.prototype,"icon",null);_.L([_.gz("tap"),_.p("design:type",Function),_.p("design:paramtypes",[CustomEvent]),_.p("design:returntype")],nm.prototype,"onTap",null);_.L([_.dz({is:"yt-share-target-renderer",disableElementRegistration:!0})],nm);
_.D(nm,"yt-share-target-renderer",function(){if(Gqi===void 0){var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-share-target-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.sharing.yt_share_target_renderer.yt.share.target.renderer.css.js--\x3e<button id="target" title="[[title]]" class="style-scope yt-share-target-renderer">\n  <yt-icon class="icon-resize style-scope yt-share-target-renderer" active="true" icon="[[icon]]" size="60"></yt-icon>\n  <div id="title" style-target="title" class="style-scope yt-share-target-renderer">[[title]]</div>\n</button>\n');a.content.insertBefore(_.w().content.cloneNode(!0),
a.content.firstChild);var z=a.content,I=z.insertBefore;vtZ===void 0&&(vtZ=document.createElement("template"));var J=vtZ;I.call(z,J.content.cloneNode(!0),a.content.firstChild);Gqi=a}a=Gqi;return a},{mode:2});var otZ;var U84;var Km=function(){var a=_.G.apply(this,arguments)||this;a.SHARE_TARGET_WIDTH=70;a.SHARE_TARGET_MARGIN_RIGHT=8;a.PAGE_SCROLL_SPEED=9;a.actionMap={"yt-share-panel-reset-action":"onReset_"};return a};
_.b(Km,_.G);_.Z=Km.prototype;_.Z.configureRendererStamper=function(){return{"data.shareTargets":{id:"contents",mapping:{shareTargetRenderer:{component:"yt-share-target-renderer",attributes:{role:"button"}}}}}};
_.Z.onDataChanged_=function(){this.data&&this.data.shareTargets&&(_.PK(this.hostElement).querySelector("#scroll-button-back").hidden=!0,_.PK(this.hostElement).querySelector("#scroll-button-forward").hidden=this.data.shareTargets.length<=6)};
_.Z.onReset_=function(){if(_.PK(this.hostElement).querySelector("#list")){var a=_.PK(this.hostElement).querySelector("#list");var z=_.PK(this.hostElement).querySelector("#list");var I=z.offsetLeft,J=z.offsetParent;J||_.EZi(z)!="fixed"||(J=_.Xm(z).documentElement);if(J){if(_.tY&&!_.EB(58)){var r=_.Kzw(J);I+=r.left}else Number(_.Uw3)>=8&&!(Number(_.Uw3)>=9)&&(r=_.Kzw(J),I-=r.left);z=_.sZw(J)?J.clientWidth-(I+z.offsetWidth):I}else z=I;XqZ(a,z);this.updateScrollButtons_()}};
_.Z.onScrollBack_=function(){this.smoothScrollByOnePage_(!1)};
_.Z.onScrollForward_=function(){this.smoothScrollByOnePage_(!0)};
_.Z.onScrollWheel_=function(a){a.stopPropagation();a.preventDefault();var z=$lV(_.PK(this.hostElement).querySelector("#list"));a=Math.abs(a.deltaX)>Math.abs(a.deltaY)?a.deltaX:a.deltaY;XqZ(_.PK(this.hostElement).querySelector("#list"),z+a);this.updateScrollButtons_()};
_.Z.smoothScrollByOnePage_=function(a){var z=_.PK(this.hostElement).querySelector("#list"),I=(Math.floor(z.clientWidth/this.SHARE_TARGET_WIDTH)*(this.SHARE_TARGET_WIDTH+this.SHARE_TARGET_MARGIN_RIGHT)-this.SHARE_TARGET_MARGIN_RIGHT)/2,J=$lV(z),r=I*(a?1:-1),P=this.PAGE_SCROLL_SPEED,N=this.updateScrollButtons_.bind(this),u=0,E;(function f(){u+=P;E=u/I*2;XqZ(z,J+r*(E<1?E*E:-E*E+4*E-2));u<I?window.requestAnimationFrame(f):N()})()};
_.Z.updateScrollButtons_=function(){var a=$lV(_.PK(this.hostElement).querySelector("#list")),z=_.PK(this.hostElement).querySelector("#list").scrollWidth-_.PK(this.hostElement).querySelector("#list").clientWidth;_.PK(this.hostElement).querySelector("#scroll-button-back").hidden=a<=0;_.PK(this.hostElement).querySelector("#scroll-button-forward").hidden=a>=z};
Km.prototype.onScrollWheel_=Km.prototype.onScrollWheel_;Km.prototype.onDataChanged_=Km.prototype.onDataChanged_;_.L([_.Q(_.u4.YtRendererstamperBehavior),_.p("design:type",Object)],Km.prototype,"ytRendererstamperBehavior",void 0);_.L([_.Q(_.Hc.YtActionHandlerBehavior),_.p("design:type",Object)],Km.prototype,"ytActionHandlerBehavior",void 0);_.L([_.Q(x8V.YtBindingExpressionsBehavior),_.p("design:type",Object)],Km.prototype,"ytBindingExpressionsBehavior",void 0);
_.L([_.Q(_.k.YtRendererBehavior),_.p("design:type",Object)],Km.prototype,"ytRendererBehavior",void 0);_.L([_.x(),_.p("design:type",Object)],Km.prototype,"data",void 0);_.L([_.O8("data"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],Km.prototype,"onDataChanged_",null);_.L([_.gz("wheel"),_.p("design:type",Function),_.p("design:paramtypes",[WheelEvent]),_.p("design:returntype")],Km.prototype,"onScrollWheel_",null);
_.L([_.dz({is:"yt-third-party-share-target-section-renderer",disableElementRegistration:!0})],Km);
_.D(Km,"yt-third-party-share-target-section-renderer",function(){if(U84===void 0){var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-third-party-share-target-section-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.sharing.yt_third_party_share_target_section_renderer.yt.third.party.share.target.section.renderer.css.js--\x3e<div id="list" class="style-scope yt-third-party-share-target-section-renderer">\n  <div id="contents" role="toolbar" aria-label$="[[data.accessibility.accessibilityData.label]]" class="style-scope yt-third-party-share-target-section-renderer"></div>\n</div>\n<yt-icon-button id="scroll-button-back" class="scroll-button style-scope yt-third-party-share-target-section-renderer" label="[[msg(\'HORIZONTAL_LIST_PREVIOUS_LABEL\')]]" on-tap="onScrollBack_">\n  <yt-icon class="scroll-button-icon style-scope yt-third-party-share-target-section-renderer" icon="chevron_left"></yt-icon>\n</yt-icon-button>\n<yt-icon-button id="scroll-button-forward" class="scroll-button style-scope yt-third-party-share-target-section-renderer" label="[[msg(\'HORIZONTAL_LIST_NEXT_LABEL\')]]" on-tap="onScrollForward_">\n  <yt-icon class="scroll-button-icon style-scope yt-third-party-share-target-section-renderer" icon="chevron_right"></yt-icon>\n</yt-icon-button>\n');a.content.insertBefore(_.w().content.cloneNode(!0),
a.content.firstChild);var z=a.content,I=z.insertBefore;otZ===void 0&&(otZ=document.createElement("template"));var J=otZ;I.call(z,J.content.cloneNode(!0),a.content.firstChild);U84=a}a=U84;return a},{mode:2});var Fl=function(){return _.G.apply(this,arguments)||this};
_.b(Fl,_.G);Fl.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"}}}};
_.L([_.Q(_.k.YtRendererBehavior),_.p("design:type",Object)],Fl.prototype,"ytRendererBehavior",void 0);_.L([_.Q(_.u4.YtRendererstamperBehavior),_.p("design:type",Object)],Fl.prototype,"ytRendererstamperBehavior",void 0);_.L([_.x(),_.p("design:type",Object)],Fl.prototype,"data",void 0);_.L([_.dz({is:"yt-third-party-network-section-renderer",disableElementRegistration:!0})],Fl);
_.D(Fl,"yt-third-party-network-section-renderer",function(){if(VjZ===void 0){var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-third-party-network-section-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.sharing.yt_third_party_network_section_renderer.yt.third.party.network.section.renderer.css.js--\x3e<div id="share-targets" class="style-scope yt-third-party-network-section-renderer"></div>\n<div id="copy-link" class="style-scope yt-third-party-network-section-renderer"></div>\n<div id="start-at" class="style-scope yt-third-party-network-section-renderer"></div>\n');
a.content.insertBefore(_.w().content.cloneNode(!0),a.content.firstChild);var z=a.content,I=z.insertBefore;hqM===void 0&&(hqM=document.createElement("template"));var J=hqM;I.call(z,J.content.cloneNode(!0),a.content.firstChild);VjZ=a}a=VjZ;return a},{mode:2});_.Jf(_.ec(function(a){return _.B("first-party-network-section-view-model",{class:"ytwFirstPartyNetworkSectionViewModelHost"},_.B("div",{class:"ytwFirstPartyNetworkSectionViewModelfirstPartyItems"},_.B(_.V0,{data:function(){return a.data().firstPartyItems}},{listItemViewModel:_.LF})))},"Rg"),"first-party-network-section-view-model",{props:{data:_.zl}});var D8Z=_.kK(["data:image/svg+xml;charset=UTF-8;base64,",""]),Hx=function(){var a=_.G.apply(this,arguments)||this;a.screenLayer=7;a.qrCodeEnabled=_.K("web_enable_sharing_qr_code");a.actionMap={"yt-share-panel-set-timestamp-action":"handleSetTimestamp"};return a};
_.b(Hx,_.G);_.Z=Hx.prototype;_.Z.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"}}}};
_.Z.attached=function(){this.JSC$19917_scroller&&(this.JSC$19917_scroller.dialogElement=this.hostElement.parentNode,this.JSC$19917_scroller.attached&&typeof this.JSC$19917_scroller.attached==="function"&&this.JSC$19917_scroller.attached(),this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true"))};
_.Z.onDataChanged=function(){var a=this,z;(z=this.data)!=null&&z.contents&&(this.hostElement.setAttribute("links-only","true"),_.N3(this.hostElement,"can-post",this.hasCommunityPostRenderer()),this.logSharePanelPage(),this.maybeRenderQrCode(this.shortUrl()),_.Yv(this,function(){_.PA(a.hostElement,"yt-refit");a.focusSharePanelHeader()}))};
_.Z.focusSharePanelHeader=function(){this.header&&(this.header.setAttribute("tabindex","-1"),this.header.focus())};
_.Z.handleSetTimestamp=function(a){var z=this.shortUrl();a.isSet&&(z=_.px(z,"t",a.timestamp));this.maybeRenderQrCode(z)};
_.Z.shortUrl=function(){var a,z=(a=this.data)==null?void 0:a.contents;if(z)for(a=0;a<z.length;a++){var I=void 0,J=void 0;if((I=z[a])==null?0:(J=I.thirdPartyNetworkSection)==null?0:J.copyLinkContainer){var r=J=I=void 0;return(r=_.H((I=z[a])==null?void 0:(J=I.thirdPartyNetworkSection)==null?void 0:J.copyLinkContainer,TrG))==null?void 0:r.shortUrl}}};
_.Z.maybeRenderQrCode=function(a){var z=this,I,J,r,P,N,u,E,O,f;return _.t(function(A){if(A.nextAddress==1){I=_.PK(z.hostElement).querySelector("#qr-code");if(!z.qrCodeEnabled||!a)return I&&(I.style.display="none"),A.return();J=_.yS0(_.ab().resolve(_.gd),{iconName:"youtube_logo_icon",iconStyle:"youtube_fill"});r=document.createElement("div");return typeof J==="function"?(J(r),A.jumpTo(2)):A.yield(J,3)}A.nextAddress!=2&&(P=A.yieldResult,P(r));E=(N=r)==null?void 0:(u=N.firstChild)==null?void 0:u.firstChild;
O=document.createElement("img");f=_.qaM(D8Z,btoa(E.outerHTML));O.onload=function(){var n={canvas:I,cellStyle:1,backgroundColor:"white",borderRadius:30,color:"black",padding:10,width:256,logo:O},F=new aa0;PkZ(F,a);ZHY(F,!1,Ck0(F));var h=F.modules,v=Object.assign({},VvZ,n);h=structuredClone(h);n=h.length;var d,W=(d=v.canvas)!=null?d:document.createElement("canvas");d=v.cellSize;F=v.logo;var l,q=(l=v.logoSize)!=null?l:Math.floor(n/4);n%2!==q%2&&q++;var m=v.logoPadding,M=v.backgroundColor;l=n*d;var y=
v.width,e=0;y&&(e=v.padding,e=Math.ceil(e*l/(y-e*2)),W.style.width=y+"px",W.style.height=y+"px");W.width!==l+e*2&&(W.width=l+e*2);W.height!==l+e*2&&(W.height=l+e*2);l=W.getContext("2d");v.autoClear&&l.clearRect(0,0,W.width,W.height);l.fillStyle=M;l.beginPath();l.roundRect(0,0,W.width,W.height,v.borderRadius);l.fill();l.save();l.translate(e,e);if(F)for(W=Math.floor(n-q)/2-m,m=Math.floor(n+q)/2+m,M=W;M<m;M++)for(y=W;y<m;y++)h[M][y]=!1;for(W=0;W<n;W++)for(m=0;m<n;m++)(W<7&&m<7||W<7&&m>=n-7||W>=n-7&&
m<7)&&(h[W][m]=!1);var Bp;W=(Bp=v.markerColor)!=null?Bp:v.color;ttG(l,0,0,d,W);ttG(l,d*(n-7),0,d,W);ttG(l,0,d*(n-7),d,W);switch(v.cellStyle){case 0:Bp=h;h=Bp.length;W=v.cellSize;l.beginPath();for(m=0;m<h;m++)for(M=0;M<h;M++)Bp[m][M]&&l.rect(m*W,M*W,W,W);l.fillStyle=v.color;l.fill();break;case 1:Bp=h;h=Bp.length;W=v.cellSize;m=W*v.relativeCircleSize;l.fillStyle=v.color;l.beginPath();for(v=0;v<h;v++)for(M=0;M<h;M++)Bp[v][M]&&(l.beginPath(),l.ellipse((v+.5)*W,(M+.5)*W,m/2,m/2,0,0,2*Math.PI),l.fill());
l.fill();break;case 2:Bp=h;h=Bp.length;W=v.cellSize;l.fillStyle=v.color;v=[[1,1],[-1,1],[-1,-1],[1,-1]];l.beginPath();for(m=0;m<h;m++)for(M=0;M<h;M++)if(Bp[m][M])l.roundRect(m*W,M*W,W,W,W/2),m+1<h&&Bp[m+1][M]&&l.rect(m*W+W/2,M*W,W,W),M+1<h&&Bp[m][M+1]&&l.rect(m*W,M*W+W/2,W,W);else{y=m*W+W/2;e=M*W+W/2;for(var Em=0;Em<4;Em++){var nG=_.C(v[Em]),bG=nG.next().value;nG=nG.next().value;m+bG>=0&&m+bG<h&&M+nG>=0&&M+nG<h&&Bp[m+bG][M]&&Bp[m][M+nG]&&Bp[m+bG][M+nG]&&(bG=Em*Math.PI/2,nG=W/2,l.moveTo(y+nG*Math.cos(bG),
e+nG*Math.sin(bG)),l.arc(y,e,W/2,bG,bG+Math.PI/2,!1),l.lineTo(y+nG*(Math.cos(bG)-Math.sin(bG)),e+nG*(Math.cos(bG)+Math.sin(bG))),l.lineTo(y+nG*Math.cos(bG),e+nG*Math.sin(bG)))}}l.fill()}F&&l.drawImage(F,(n-q)*d/2,(n-q)*d/2,q*d,q*d);l.restore();I.style.removeProperty("display")};
O.src=_.ij(f);_.nu(A)})};
_.Z.hasCommunityPostRenderer=function(){var a,z,I,J;return!!((a=this.data)==null?0:(z=a.header)==null?0:(I=z.sharePanelHeaderRenderer)==null?0:(J=I.communityPost)==null?0:J.communityPostSectionRenderer)};
_.Z.onTapClose=function(){_.ZF(this.hostElement,"yt-close-popup-action",["ytd-unified-share-panel-renderer"])};
_.Z.getScreenLayer=function(){return this.screenLayer};
_.Z.logSharePanelPage=function(){if(!_.K("enable_share_panel_navigation_logging_fix_on_web")){var a;if((a=this.data)!=null&&a.trackingParams){a=this.data.trackingParams;var z=this.parentClickTrackingParams;z=z?_.VX(z):void 0;var I=_.Kw();_.fJ(I,21760,z,{layer:7,parentLayer:0});I.graftServerVe(a,void 0,7);_.qo().dispatch(_.rg({type:"CLEAR_PARENT_CLICK_TRACKING_PARAMS"}))}}};
Hx.prototype.onDataChanged=Hx.prototype.onDataChanged;_.L([_.Q(_.u4.YtRendererstamperBehavior),_.p("design:type",Object)],Hx.prototype,"ytRendererstamperBehavior",void 0);_.L([_.Q(_.k.YtRendererBehavior),_.p("design:type",Object)],Hx.prototype,"ytRendererBehavior",void 0);_.L([_.Q(_.pV),_.p("design:type",Object)],Hx.prototype,"ytdReduxBehavior",void 0);_.L([_.Q(_.Hc.YtActionHandlerBehavior),_.p("design:type",Object)],Hx.prototype,"ytActionHandlerBehavior",void 0);
_.L([_.x(),_.p("design:type",Object)],Hx.prototype,"data",void 0);_.L([_.x({value:_.AR("SBOX_INAPPROPRIATE_CANCEL")}),_.p("design:type",String)],Hx.prototype,"closeButtonAriaLabel",void 0);_.L([_.A3("yt-share-panel-header-renderer"),_.p("design:type",HTMLElement)],Hx.prototype,"header",void 0);_.L([_.x({selector:function(a){return a.share.parentClickTrackingParams}}),
_.p("design:type",String)],Hx.prototype,"parentClickTrackingParams",void 0);_.L([_.x(),_.p("design:type",Object)],Hx.prototype,"qrCodeEnabled",void 0);_.L([_.A3("#scroller"),_.p("design:type",Object)],Hx.prototype,"JSC$19917_scroller",void 0);_.L([_.Fe("data"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],Hx.prototype,"onDataChanged",null);_.L([_.U({disableElementRegistration:!0,is:"ytd-unified-share-panel-renderer"})],Hx);
_.D(Hx,"ytd-unified-share-panel-renderer",function(){if(BWV!==void 0)return BWV;var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-unified-share-panel-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<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');
a.content.insertBefore(_.w().content.cloneNode(!0),a.content.firstChild);return BWV=a},{mode:1});var RqZ;var bZ=function(){var a=_.G.apply(this,arguments)||this;a.modernModal=!0;return a};
_.b(bZ,_.G);bZ.prototype.attached=function(){this.hostElement.setAttribute("modal","true")};
bZ.prototype.computeShouldHideOldButtons=function(){var a;return!((a=this.data)==null?0:a.button)};
_.eH.Object.defineProperties(bZ.prototype,{buttonRendererData:{configurable:!0,enumerable:!0,get:function(){var a,z;return(a=this.data)==null?void 0:(z=a.button)==null?void 0:z.buttonRenderer}}});
_.L([_.x(),_.p("design:type",Object)],bZ.prototype,"data",void 0);_.L([_.Q(_.k.YtRendererBehavior),_.p("design:type",Object)],bZ.prototype,"ytRendererBehavior",void 0);_.L([_.Q(_.iO.YtEventForwardingBehavior),_.p("design:type",Object)],bZ.prototype,"ytEventForwardingBehavior",void 0);_.L([_.x({reflectToAttribute:!0}),_.p("design:type",Object)],bZ.prototype,"modernModal",void 0);_.L([_.S("data"),_.p("design:type",Object),_.p("design:paramtypes",[])],bZ.prototype,"buttonRendererData",null);
_.L([_.U({disableElementRegistration:!0,is:"ytd-modal-with-title-and-button-renderer"})],bZ);
_.D(bZ,"ytd-modal-with-title-and-button-renderer",function(){if(RqZ!==void 0)return RqZ;var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-modal-with-title-and-button-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-formatted-string id="title" hidden="[[!data.title]]" text="[[data.title]]" class="style-scope ytd-modal-with-title-and-button-renderer">\n</yt-formatted-string>\n<yt-formatted-string id="content" split-lines="" text="[[data.content]]" class="style-scope ytd-modal-with-title-and-button-renderer">\n</yt-formatted-string>\n<div class="buttons style-scope ytd-modal-with-title-and-button-renderer" hidden="[[computeShouldHideOldButtons(data.button)]]">\n  <ytd-button-renderer id="button" align-by-text="" data="[[buttonRendererData]]" class="style-scope ytd-modal-with-title-and-button-renderer">\n  </ytd-button-renderer>\n</div>\n');a.content.insertBefore(_.w().content.cloneNode(!0),
a.content.firstChild);return RqZ=a},{mode:1});var LBf;var hk=function(){return _.G.apply(this,arguments)||this};
_.b(hk,_.G);hk.prototype.pageChangedForBinding=function(){this.hostElement.dispatchEvent(new _.eY("page-changed",this.page))};
hk.prototype.pageChangedForBinding=hk.prototype.pageChangedForBinding;_.L([_.Q(_.k.YtRendererBehavior),_.p("design:type",Object)],hk.prototype,"ytRendererBehavior",void 0);_.L([_.x(),_.p("design:type",Object)],hk.prototype,"data",void 0);_.L([_.x(),_.p("design:type",String)],hk.prototype,"page",void 0);_.L([_.O8("page"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],hk.prototype,"pageChangedForBinding",null);
_.L([_.U({is:"ytd-account-item-section-header-renderer",disableElementRegistration:!0})],hk);
_.D(hk,"ytd-account-item-section-header-renderer",function(){if(LBf!==void 0)return LBf;var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-account-item-section-header-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-formatted-string text="[[data.title]]" class="style-scope ytd-account-item-section-header-renderer"></yt-formatted-string>\n');a.content.insertBefore(_.w().content.cloneNode(!0),
a.content.firstChild);return LBf=a},{mode:1});var lXE;var Vq=function(){return _.G.apply(this,arguments)||this};
_.b(Vq,_.G);Vq.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"}}}};
Vq.prototype.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"contents"}};
_.L([_.Q(_.k.YtRendererBehavior),_.p("design:type",Object)],Vq.prototype,"ytRendererBehavior",void 0);_.L([_.Q(_.u4.YtRendererstamperBehavior),_.p("design:type",Object)],Vq.prototype,"ytRendererstamperBehavior",void 0);_.L([_.Q(_.M8),_.p("design:type",Object)],Vq.prototype,"ytContinuationHandlerBehavior",void 0);_.L([_.x(),_.p("design:type",Object)],Vq.prototype,"data",void 0);_.L([_.x({reflectToAttribute:!1}),_.p("design:type",Function)],Vq.prototype,"onAccountItemTap",void 0);
_.L([_.U({is:"ytd-account-item-section-renderer",disableElementRegistration:!0})],Vq);
_.D(Vq,"ytd-account-item-section-renderer",function(){if(lXE!==void 0)return lXE;var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-account-item-section-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-account-item-section-renderer"></div>\n<div id="contents" class="style-scope ytd-account-item-section-renderer"></div>\n');a.content.insertBefore(_.w().content.cloneNode(!0),
a.content.firstChild);return lXE=a},{mode:1});var pXE;var wXi;var Qq=function(){return _.G.apply(this,arguments)||this};
_.b(Qq,_.G);_.L([_.Q(_.k.YtRendererBehavior),_.p("design:type",Object)],Qq.prototype,"ytRendererBehavior",void 0);_.L([_.x(),_.p("design:type",Object)],Qq.prototype,"data",void 0);_.L([_.U({is:"ytd-accounts-dialog-header-renderer",disableElementRegistration:!0})],Qq);
_.D(Qq,"ytd-accounts-dialog-header-renderer",function(){if(wXi!==void 0)return wXi;var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-accounts-dialog-header-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-formatted-string text="[[data.text]]" class="style-scope ytd-accounts-dialog-header-renderer"></yt-formatted-string>\n');a.content.insertBefore(_.w().content.cloneNode(!0),
a.content.firstChild);return wXi=a},{mode:1});var m8Z;var S1=function(){return _.G.apply(this,arguments)||this};
_.b(S1,_.G);S1.prototype.configureRendererStamper=function(){return{"data.managedAccountDisclaimer":{id:"managedAccountDisclaimer",mapping:{compactLinkRenderer:"ytd-compact-link-renderer"}}}};
_.L([_.Q(_.u4.YtRendererstamperBehavior),_.p("design:type",Object)],S1.prototype,"ytRendererstamperBehavior",void 0);_.L([_.x(),_.p("design:type",Object)],S1.prototype,"data",void 0);_.L([_.U({is:"ytd-google-account-header-renderer",disableElementRegistration:!0})],S1);
_.D(S1,"ytd-google-account-header-renderer",function(){if(m8Z!==void 0)return m8Z;var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-google-account-header-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="managedAccountDisclaimer" class="style-scope ytd-google-account-header-renderer"></div>\n<div id="container" class="style-scope ytd-google-account-header-renderer">\n  <div class="style-scope ytd-google-account-header-renderer">\n    <yt-formatted-string id="name" text="[[data.name]]" class="style-scope ytd-google-account-header-renderer"></yt-formatted-string>\n  </div>\n  <div class="style-scope ytd-google-account-header-renderer">\n    <yt-formatted-string id="email" text="[[data.email]]" class="style-scope ytd-google-account-header-renderer"></yt-formatted-string>\n  </div>\n</div>\n');a.content.insertBefore(_.w().content.cloneNode(!0),
a.content.firstChild);return m8Z=a},{mode:1});var iZ=function(){return _.G.apply(this,arguments)||this};
_.b(iZ,_.G);iZ.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"}}}};
iZ.prototype.pageChangedForBinding=function(){this.hostElement.dispatchEvent(new _.eY("page-changed",this.page))};
iZ.prototype.pageChangedForBinding=iZ.prototype.pageChangedForBinding;_.L([_.Q(_.k.YtRendererBehavior),_.p("design:type",Object)],iZ.prototype,"ytRendererBehavior",void 0);_.L([_.Q(_.u4.YtRendererstamperBehavior),_.p("design:type",Object)],iZ.prototype,"ytRendererstamperBehavior",void 0);_.L([_.x(),_.p("design:type",Object)],iZ.prototype,"data",void 0);_.L([_.x(),_.p("design:type",String)],iZ.prototype,"page",void 0);
_.L([_.O8("page"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],iZ.prototype,"pageChangedForBinding",null);_.L([_.U({is:"ytd-account-section-list-renderer",disableElementRegistration:!0})],iZ);
_.Cw()(iZ,"ytd-account-section-list-renderer",function(){if(pXE===void 0){var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-account-section-list-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-account-section-list-renderer"></div>\n<div id="contents" class="style-scope ytd-account-section-list-renderer"></div>\n');a.content.insertBefore(_.w().content.cloneNode(!0),
a.content.firstChild);pXE=a}a=pXE;return a},{allowedProps:["data"],
mode:1});var y0M;var xw=function(){var a=_.G.apply(this,arguments)||this;a.enableHandlesAccountMenuSwitcher=_.K("enable_handles_account_menu_switcher");return a};
_.b(xw,_.G);xw.prototype.dataChanged=function(){if(this.data)this.avatar.onShow()};
xw.prototype.dataChanged=xw.prototype.dataChanged;_.L([_.Q(_.k.YtRendererBehavior),_.p("design:type",Object)],xw.prototype,"ytRendererBehavior",void 0);_.L([_.x(),_.p("design:type",Object)],xw.prototype,"data",void 0);_.L([_.x({reflectToAttribute:!0}),_.p("design:type",Object)],xw.prototype,"enableHandlesAccountMenuSwitcher",void 0);_.L([_.A3("#avatar"),_.p("design:type",Object)],xw.prototype,"avatar",void 0);
_.L([_.O8("data"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],xw.prototype,"dataChanged",null);_.L([_.U({is:"ytd-active-account-header-renderer",disableElementRegistration:!0})],xw);
_.Cw()(xw,"ytd-active-account-header-renderer",function(){if(y0M===void 0){var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-active-account-header-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-img-shadow id="avatar" height="40" thumbnail="[[data.accountPhoto]]" width="40" class="style-scope ytd-active-account-header-renderer">\n</yt-img-shadow>\n<div id="channel-container" class="style-scope ytd-active-account-header-renderer">\n  <yt-formatted-string id="account-name" ellipsis-truncate="" text="[[data.accountName]]" class="style-scope ytd-active-account-header-renderer">\n  </yt-formatted-string>\n  <yt-formatted-string id="email" ellipsis-truncate="" text="[[data.email]]" class="style-scope ytd-active-account-header-renderer">\n  </yt-formatted-string>\n  <yt-formatted-string id="channel-handle" ellipsis-truncate="" respect-lang-dir="" text="[[data.channelHandle]]" class="style-scope ytd-active-account-header-renderer">\n  </yt-formatted-string>\n  <yt-formatted-string id="manage-account" ellipsis-truncate="" force-default-style="" text="[[data.manageAccountTitle]]" class="style-scope ytd-active-account-header-renderer">\n  </yt-formatted-string>\n</div>\n');a.content.insertBefore(_.w().content.cloneNode(!0),
a.content.firstChild);y0M=a}a=y0M;return a},{allowedProps:["data"],
mode:1});var kqi;var Mj4;var vx=function(){return _.G.apply(this,arguments)||this};
_.b(vx,_.G);vx.prototype.configureRendererStamper=function(){return{"data.buttons":{id:"buttons",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
vx.prototype.onBackTap=function(){_.PA(this.hostElement,"yt-menu-back-tapped")};
_.L([_.Q(_.k.YtRendererBehavior),_.p("design:type",Object)],vx.prototype,"ytRendererBehavior",void 0);_.L([_.Q(_.u4.YtRendererstamperBehavior),_.p("design:type",Object)],vx.prototype,"ytRendererstamperBehavior",void 0);_.L([_.x(),_.p("design:type",Object)],vx.prototype,"data",void 0);_.L([_.U({is:"ytd-simple-menu-header-renderer",disableElementRegistration:!0})],vx);
_.Cw()(vx,"ytd-simple-menu-header-renderer",function(){if(Mj4===void 0){var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-simple-menu-header-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<ytd-button-renderer id="back-button" data="[[data.backButton.buttonRenderer]]" hidden="[[!data.backButton.buttonRenderer]]" on-tap="onBackTap" class="style-scope ytd-simple-menu-header-renderer">\n</ytd-button-renderer>\n<h2 class="style-scope ytd-simple-menu-header-renderer">\n  <yt-formatted-string text="[[data.title]]" class="style-scope ytd-simple-menu-header-renderer"></yt-formatted-string>\n</h2>\n<div id="buttons" class="style-scope ytd-simple-menu-header-renderer"></div>\n');a.content.insertBefore(_.w().content.cloneNode(!0),
a.content.firstChild);Mj4=a}a=Mj4;return a},{allowedProps:["data"],
mode:2});var c0Y;var GM=function(){return _.G.apply(this,arguments)||this};
_.b(GM,_.G);_.L([_.Q(_.k.YtRendererBehavior),_.p("design:type",Object)],GM.prototype,"ytRendererBehavior",void 0);_.L([_.x(),_.p("design:type",Object)],GM.prototype,"data",void 0);_.L([_.U({is:"ytd-comment-video-thumbnail-header-renderer",disableElementRegistration:!0})],GM);
_.D(GM,"ytd-comment-video-thumbnail-header-renderer",function(){if(c0Y!==void 0)return c0Y;var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-comment-video-thumbnail-header-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="comment-video-thumbnail style-scope ytd-comment-video-thumbnail-header-renderer">\n  <a class="yt-simple-endpoint style-scope ytd-comment-video-thumbnail-header-renderer" href$="[[computeHref_(data.navigationEndpoint)]]" data="[[data.navigationEndpoint]]">\n    <yt-formatted-string class="title style-scope ytd-comment-video-thumbnail-header-renderer" text="[[data.title]]"></yt-formatted-string>\n    <div class="thumbnail-container style-scope ytd-comment-video-thumbnail-header-renderer" hidden="[[!data.thumbnail]]">\n      <yt-img-shadow disable-upgrade$="[[!data.thumbnail]]" thumbnail="[[data.thumbnail]]" width="86" class="style-scope ytd-comment-video-thumbnail-header-renderer">\n      </yt-img-shadow>\n    </div>\n  </a>\n</div>\n<div class="subtitle-message-banner style-scope ytd-comment-video-thumbnail-header-renderer" hidden="[[!data.subtitleMessage]]">\n  <yt-attributed-string data="[[data.subtitleMessage.messageRenderer.text]]" class="style-scope ytd-comment-video-thumbnail-header-renderer">\n  </yt-attributed-string>\n  <yt-attributed-string data="[[data.subtitleMessage.messageRenderer.termsText]]" force-default-style="" class="style-scope ytd-comment-video-thumbnail-header-renderer">\n  </yt-attributed-string>\n</div>\n');a.content.insertBefore(_.w().content.cloneNode(!0),
a.content.firstChild);return c0Y=a},{mode:1});var YuM;var $w=function(){return _.G.apply(this,arguments)||this};
_.b($w,_.G);_.L([_.Q(_.k.YtRendererBehavior),_.p("design:type",Object)],$w.prototype,"ytRendererBehavior",void 0);_.L([_.x(),_.p("design:type",Object)],$w.prototype,"data",void 0);_.L([_.U({is:"ytd-abuse-type-selector-renderer",disableElementRegistration:!0})],$w);
_.D($w,"ytd-abuse-type-selector-renderer",function(){if(YuM!==void 0)return YuM;var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-abuse-type-selector-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="container style-scope ytd-abuse-type-selector-renderer">\n  <form class="style-scope ytd-abuse-type-selector-renderer">\n    <yt-options-renderer data="[[data.optionsSupportedRenderers.optionsRenderer]]" class="style-scope ytd-abuse-type-selector-renderer">\n    </yt-options-renderer>\n  </form>\n  <div id="footer" class="style-scope ytd-abuse-type-selector-renderer">[[getSimpleString(data.footer)]]</div>\n</div>\n');a.content.insertBefore(_.w().content.cloneNode(!0),
a.content.firstChild);return YuM=a},{mode:1});var quV;var Xl=function(){return _.G.apply(this,arguments)||this};
_.b(Xl,_.G);Xl.prototype.attached=function(){var a=this;this.additionalContext=this.additionalContextRedux||"";requestAnimationFrame(function(){a.additionalContextInput.focusTextInput()})};
Xl.prototype.handleAdditionalContextChanged=function(){var a=this;_.pM(this,"ytd-report-channel-additional-context-update",function(){a.ytdReduxBehavior.dispatch(_.rg({type:"ADDITIONAL_CONTEXT_UPDATED",payload:a.additionalContext}))},300)};
Xl.prototype.updateAdditionalContextFromBinding=function(a){this.additionalContext=a.detail.value};
Xl.prototype.handleAdditionalContextChanged=Xl.prototype.handleAdditionalContextChanged;_.L([_.Q(_.pV),_.p("design:type",Object)],Xl.prototype,"ytdReduxBehavior",void 0);_.L([_.x(),_.p("design:type",String)],Xl.prototype,"additionalContext",void 0);_.L([_.x({selector:function(a){return a.reportChannelAbuse.additionalContext}}),
_.p("design:type",String)],Xl.prototype,"additionalContextRedux",void 0);_.L([_.x(),_.p("design:type",Object)],Xl.prototype,"data",void 0);_.L([_.A3("yt-text-input-form-field-renderer"),_.p("design:type",Object)],Xl.prototype,"additionalContextInput",void 0);_.L([_.O8("additionalContext"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],Xl.prototype,"handleAdditionalContextChanged",null);
_.L([_.U({is:"ytd-report-channel-modal-additional-context-renderer",disableElementRegistration:!0})],Xl);
_.D(Xl,"ytd-report-channel-modal-additional-context-renderer",function(){if(quV!==void 0)return quV;var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-report-channel-modal-additional-context-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-text-input-form-field-renderer component-style="TEXT_INPUT_FORM_FIELD_OUTLINED" data="[[data.additionalDetailsTextField.textInputFormFieldRenderer]]" value="[[additionalContext]]" on-value-changed="updateAdditionalContextFromBinding" class="style-scope ytd-report-channel-modal-additional-context-renderer">\n</yt-text-input-form-field-renderer>\n');a.content.insertBefore(_.w().content.cloneNode(!0),
a.content.firstChild);return quV=a},{mode:1});var eqE;var TM=function(){var a=_.G.apply(this,arguments)||this;a.nextButtonDisabled=null;a.submitEndpoint=null;a.navigationEndpoint=null;a.actionMap={"yt-report-form-update":"handleReportFormEndpointUpdateAction","yt-signal-action-submit-form":"handleSignalActionSubmitForm","ytd-report-channel-modal-disable-next-button-action":"handleReportChannelModalDisableNextButtonAction"};return a};
_.b(TM,_.G);_.Z=TM.prototype;_.Z.computeNextButtonData=function(a,z,I){var J={};z&&(J.navigationEndpoint=z);I&&(J.serviceEndpoint=I);a&&a.buttonRenderer&&_.x8.extend(J,a.buttonRenderer);return J};
_.Z.handleReportChannelModalDisableNextButtonAction=function(a){this.setNextButtonIsDisabled(a)};
_.Z.handleReportFormEndpointUpdateAction=function(a){this.setNextButtonIsDisabled(!!a.disableSubmitButton);this.resetEndpointData();a.submitEndpoint?this.submitEndpoint=a.submitEndpoint:a.submitNavigationEndpoint&&(this.navigationEndpoint=a.submitNavigationEndpoint)};
_.Z.handleSignalActionSubmitForm=function(){var a,z=Object.keys(((a=this.reportChannelAbuseForm)==null?void 0:a.selectedVideoIds)||{}),I;a=((I=this.reportChannelAbuseForm)==null?void 0:I.additionalContext)||"";var J;I=((J=this.reportChannelAbuseForm)==null?void 0:J.impersonatedChannelUrl)||"";var r;if((r=this.data)==null?0:r.submitEndpoint){z={impersonated_channel_url:I,text:a,video_ids:z};var P;_.ab().resolve(_.j6).resolveCommand((P=this.data)==null?void 0:P.submitEndpoint,{form:Object.assign({},
z,{element:this.hostElement})})}this.setNextButtonIsDisabled(!0)};
_.Z.onYtServiceRequestCompleted=function(){this.resetEndpointData()};
_.Z.onYtServiceRequestError=function(a){this.setNextButtonIsDisabled(!1);_.cn(this.hostElement,a.detail.error.message)};
_.Z.setNextButtonIsDisabled=function(a){this.set("data.nextButton.buttonRenderer.isDisabled",a)};
_.Z.resetEndpointData=function(){this.submitEndpoint=this.navigationEndpoint=null};
TM.prototype.onYtServiceRequestError=TM.prototype.onYtServiceRequestError;TM.prototype.onYtServiceRequestCompleted=TM.prototype.onYtServiceRequestCompleted;_.L([_.x(),_.p("design:type",Object)],TM.prototype,"data",void 0);_.L([_.x(),_.p("design:type",Object)],TM.prototype,"nextButtonDisabled",void 0);_.L([_.Q(_.pV),_.p("design:type",Object)],TM.prototype,"ytdReduxBehavior",void 0);_.L([_.Q(_.Hc.YtActionHandlerBehavior),_.p("design:type",Object)],TM.prototype,"ytActionHandlerBehavior",void 0);
_.L([_.Q(_.k.YtRendererBehavior),_.p("design:type",Object)],TM.prototype,"ytRendererBehavior",void 0);_.L([_.x(),_.p("design:type",Object)],TM.prototype,"submitEndpoint",void 0);_.L([_.x(),_.p("design:type",Object)],TM.prototype,"navigationEndpoint",void 0);_.L([_.x({selector:function(a){return a.reportChannelAbuse}}),
_.p("design:type",Object)],TM.prototype,"reportChannelAbuseForm",void 0);_.L([_.gz("yt-service-request-completed"),_.p("design:type",Function),_.p("design:paramtypes",[CustomEvent]),_.p("design:returntype")],TM.prototype,"onYtServiceRequestCompleted",null);_.L([_.gz("yt-service-request-error"),_.p("design:type",Function),_.p("design:paramtypes",[CustomEvent]),_.p("design:returntype")],TM.prototype,"onYtServiceRequestError",null);
_.L([_.U({is:"ytd-report-channel-modal-footer-renderer",disableElementRegistration:!0})],TM);
_.D(TM,"ytd-report-channel-modal-footer-renderer",function(){if(eqE!==void 0)return eqE;var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-report-channel-modal-footer-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<ytd-button-renderer id="back-button" data="[[data.backButton.buttonRenderer]]" hidden="[[!data.backButton]]" class="style-scope ytd-report-channel-modal-footer-renderer">\n</ytd-button-renderer>\n<ytd-button-renderer id="next-button" data="[[computeNextButtonData(data.nextButton, navigationEndpoint, submitEndpoint)]]" disabled="[[data.nextButton.buttonRenderer.isDisabled]]" class="style-scope ytd-report-channel-modal-footer-renderer">\n</ytd-button-renderer>\n');a.content.insertBefore(_.w().content.cloneNode(!0),
a.content.firstChild);return eqE=a},{mode:1});var a0G;var db=function(){var a=_.G.apply(this,arguments)||this;a.boundOnTapDismissButton=function(){a.closePopup()};
return a};
_.b(db,_.G);db.prototype.configureRendererStamper=function(){return{"data.dismissButton":{id:"dismiss-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{"on-tap":"[[boundOnTapDismissButton]]"}}}}}};
db.prototype.handleDataChanged=function(){_.kk(this.hostElement)};
db.prototype.closePopup=function(){_.ZF(this.hostElement,"yt-close-popup-action")};
db.prototype.handleDataChanged=db.prototype.handleDataChanged;_.L([_.x(),_.p("design:type",Object)],db.prototype,"boundOnTapDismissButton",void 0);_.L([_.x(),_.p("design:type",Object)],db.prototype,"data",void 0);_.L([_.Q(_.k.YtRendererBehavior),_.p("design:type",Object)],db.prototype,"ytRendererBehavior",void 0);_.L([_.Q(_.u4.YtRendererstamperBehavior),_.p("design:type",Object)],db.prototype,"ytRendererstamperBehavior",void 0);
_.L([_.O8("data"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],db.prototype,"handleDataChanged",null);_.L([_.U({is:"ytd-report-channel-modal-header-renderer",disableElementRegistration:!0})],db);
_.D(db,"ytd-report-channel-modal-header-renderer",function(){if(a0G!==void 0)return a0G;var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-report-channel-modal-header-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="title-container" class="style-scope ytd-report-channel-modal-header-renderer">\n  <span id="title" class="style-scope ytd-report-channel-modal-header-renderer">[[getSimpleString(data.title)]]</span>\n  <span id="subtitle" class="style-scope ytd-report-channel-modal-header-renderer">[[getSimpleString(data.subtitle)]]</span>\n</div>\n<div id="dismiss-button" class="style-scope ytd-report-channel-modal-header-renderer"></div>\n');a.content.insertBefore(_.w().content.cloneNode(!0),
a.content.firstChild);return a0G=a},{mode:1});var jMM;var Wx=function(){var a=_.G.apply(this,arguments)||this;a.autoValidate=!1;a.invalid=!1;a.actionMap={"yt-modify-report-form-command":"handleModifyReportFormCommand"};return a};
_.b(Wx,_.G);_.Z=Wx.prototype;_.Z.attached=function(){var a=this;this.impersonatedChannelUrlRedux?(this.impersonatedChannelUrl=this.impersonatedChannelUrlRedux,this.handleImpersonatedChannelUrlChanged()):this.impersonatedChannelUrl="";requestAnimationFrame(function(){a.channelUrlInput.focusTextInput()})};
_.Z.disableNextButton=function(a){_.ZF(this.hostElement,"ytd-report-channel-modal-disable-next-button-action",[a])};
_.Z.handleImpersonatedChannelUrlChanged=function(){var a=this;this.disableNextButton(!0);this.invalid=!1;_.pM(this,"ytd-report-channel-impersonated-channel-update",function(){var z=a.impersonatedChannelUrl.trim();a.ytdReduxBehavior.dispatch(_.rg({type:"IMPERSONATED_CHANNEL_URL_UPDATED",payload:z}));var I;((I=a.data)==null?0:I.submitEndpoint)&&z&&_.ab().resolve(_.j6).resolveCommand(a.data.submitEndpoint,{form:{impersonated_channel_url:z,element:a.hostElement}})},500)};
_.Z.handleModifyReportFormCommand=function(a){this.invalid=this.get("modifyReportFormCommand.action",a)!=="REPORT_FORM_ACTION_ENABLE_SUBMIT_BUTTON";this.disableNextButton(this.invalid)};
_.Z.updateInvalidFromBinding=function(a){this.invalid=a.detail.value};
_.Z.updateImpersonatedChannelUrlFromBinding=function(a){this.impersonatedChannelUrl=a.detail.value};
Wx.prototype.handleImpersonatedChannelUrlChanged=Wx.prototype.handleImpersonatedChannelUrlChanged;_.L([_.Q(_.pV),_.p("design:type",Object)],Wx.prototype,"ytdReduxBehavior",void 0);_.L([_.Q(_.Hc.YtActionHandlerBehavior),_.p("design:type",Object)],Wx.prototype,"ytActionHandlerBehavior",void 0);_.L([_.x(),_.p("design:type",Object)],Wx.prototype,"autoValidate",void 0);_.L([_.x(),_.p("design:type",Object)],Wx.prototype,"invalid",void 0);
_.L([_.x(),_.p("design:type",String)],Wx.prototype,"impersonatedChannelUrl",void 0);_.L([_.x({selector:function(a){return a.reportChannelAbuse.impersonatedChannelUrl}}),
_.p("design:type",String)],Wx.prototype,"impersonatedChannelUrlRedux",void 0);_.L([_.x(),_.p("design:type",Object)],Wx.prototype,"data",void 0);_.L([_.A3("#text-input"),_.p("design:type",Object)],Wx.prototype,"channelUrlInput",void 0);_.L([_.O8("impersonatedChannelUrl"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],Wx.prototype,"handleImpersonatedChannelUrlChanged",null);
_.L([_.U({is:"ytd-report-channel-modal-impersonation-renderer",disableElementRegistration:!0})],Wx);
_.D(Wx,"ytd-report-channel-modal-impersonation-renderer",function(){if(jMM!==void 0)return jMM;var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-report-channel-modal-impersonation-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-text-input-form-field-renderer id="text-input" auto-validate="[[autoValidate]]" component-style="TEXT_INPUT_FORM_FIELD_OUTLINED" data="[[data.impersonationTextField.textInputFormFieldRenderer]]" invalid="[[invalid]]" value="[[impersonatedChannelUrl]]" on-invalid-changed="updateInvalidFromBinding" on-value-changed="updateImpersonatedChannelUrlFromBinding" class="style-scope ytd-report-channel-modal-impersonation-renderer"></yt-text-input-form-field-renderer>\n');a.content.insertBefore(_.w().content.cloneNode(!0),
a.content.firstChild);return jMM=a},{mode:1});var zHe;var I0f;var o8=function(){return _.G.apply(this,arguments)||this};
_.b(o8,_.G);o8.prototype.onCheckboxToggled=function(a){var z,I,J=(I=_.H((z=this.data)==null?void 0:z.video,_.wB))==null?void 0:I.videoId;J&&this.ytdReduxBehavior.dispatch(a.target.checked?_.rg({type:"VIDEO_SELECTED",payload:J}):_.rg({type:"VIDEO_UNSELECTED",payload:J}))};
o8.prototype.configureRendererStamper=function(){return{video:{id:"video",mapping:{videoRenderer:{component:"ytd-video-renderer",params:{isPostCompactVideo:!0}}}}}};
_.eH.Object.defineProperties(o8.prototype,{video:{configurable:!0,enumerable:!0,get:function(){var a,z=(a=this.data)==null?void 0:a.video;if(!z)return{};var I;a=(I=_.H(z,_.wB))==null?void 0:I.navigationEndpoint;if(!a)return z;_.H(a==null?void 0:a.commandMetadata,_.O_)&&(_.H(a.commandMetadata,_.O_).ignoreNavigation=!0);return z}}});
_.L([_.x({reflectToAttribute:!0,selector:function(a,z){return z in a.reportChannelAbuse.selectedVideoIds},
selectorArgs:["data.video.videoRenderer.videoId"]}),_.p("design:type",Boolean)],o8.prototype,"checked",void 0);_.L([_.x(),_.p("design:type",Object)],o8.prototype,"data",void 0);_.L([_.S("data"),_.p("design:type",Object),_.p("design:paramtypes",[])],o8.prototype,"video",null);_.L([_.Q(_.k.YtRendererBehavior),_.p("design:type",Object)],o8.prototype,"ytRendererBehavior",void 0);_.L([_.Q(_.u4.YtRendererstamperBehavior),_.p("design:type",Object)],o8.prototype,"ytRendererstamperBehavior",void 0);
_.L([_.Q(_.pV),_.p("design:type",Object)],o8.prototype,"ytdReduxBehavior",void 0);_.L([_.U({is:"ytd-selectable-video-renderer",disableElementRegistration:!0})],o8);
_.D(o8,"ytd-selectable-video-renderer",function(){if(I0f!==void 0)return I0f;var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-selectable-video-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<tp-yt-paper-checkbox checked="[[checked]]" on-change="onCheckboxToggled" class="style-scope ytd-selectable-video-renderer">\n  <div id="video" class="style-scope ytd-selectable-video-renderer"></div>\n</tp-yt-paper-checkbox>\n');a.content.insertBefore(_.w().content.cloneNode(!0),
a.content.firstChild);return I0f=a},{mode:1});var U6=function(){var a=_.G.apply(this,arguments)||this;a.monitorScroll=!0;return a};
_.b(U6,_.G);U6.prototype.configureRendererStamper=function(){return{"data.selectableVideos":{id:"selectable-videos",mapping:{selectableVideoRenderer:{component:"ytd-selectable-video-renderer"}},events:!0}}};
_.L([_.Q(_.k.YtRendererBehavior),_.p("design:type",Object)],U6.prototype,"ytRendererBehavior",void 0);_.L([_.Q(_.u4.YtRendererstamperBehavior),_.p("design:type",Object)],U6.prototype,"ytRendererstamperBehavior",void 0);_.L([_.x(),_.p("design:type",Object)],U6.prototype,"data",void 0);_.L([_.U({is:"ytd-selectable-video-list-renderer",disableElementRegistration:!0})],U6);
_.D(U6,"ytd-selectable-video-list-renderer",function(){if(zHe!==void 0)return zHe;var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-selectable-video-list-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="selectable-videos" hidden="[[!data.selectableVideos.length]]" class="style-scope ytd-selectable-video-list-renderer"></div>\n<div id="empty-state-message" hidden="[[data.selectableVideos.length]]" class="style-scope ytd-selectable-video-list-renderer">\n  [[getSimpleString(data.emptyStateMessage)]]\n</div>\n');
a.content.insertBefore(_.w().content.cloneNode(!0),a.content.firstChild);return zHe=a},{mode:1});var JLG;_.$q("multiPageMenuSectionItems","toggleItemRenderer","ytd-toggle-item-renderer");var D_=function(){return _.G.apply(this,arguments)||this};
_.b(D_,_.G);D_.prototype.onChange=function(a){if(a=_.Yh(a).checked?this.data.toggleOnActions:this.data.toggleOffActions)if(_.K("kevlar_command_handler_migration_killswitch"))_.tR(this.hostElement,a,this.hostElement);else{a=_.C(a);for(var z=a.next();!z.done;z=a.next())this.ytComponentBehavior.resolveCommand(z.value)}};
D_.prototype.isEnabled=function(){return!!this.data.toggleOnActions||!!this.data.toggleOffActions};
D_.prototype.updateDataToggledFromBinding=function(a){this.set("data.toggled",a.detail.value)};
_.L([_.Q(_.Ms.YtComponentBehavior),_.p("design:type",Object)],D_.prototype,"ytComponentBehavior",void 0);_.L([_.Q(_.k.YtRendererBehavior),_.p("design:type",Object)],D_.prototype,"ytRendererBehavior",void 0);_.L([_.x(),_.p("design:type",Object)],D_.prototype,"data",void 0);_.L([_.x({computed:"isEnabled(data)"}),_.p("design:type",Boolean)],D_.prototype,"enabled",void 0);_.L([_.U({is:"ytd-toggle-item-renderer",disableElementRegistration:!0})],D_);
_.D(D_,"ytd-toggle-item-renderer",function(){if(JLG!==void 0)return JLG;var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-toggle-item-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<template is="dom-repeat" items="[[data.descriptionLines]]" class="style-scope ytd-toggle-item-renderer">\n  <div class="description style-scope ytd-toggle-item-renderer">[[getSimpleString(item)]]</div>\n</template>\n<div id="caption-container" class="style-scope ytd-toggle-item-renderer">\n  <div id="caption" class="style-scope ytd-toggle-item-renderer">[[getSimpleString(data.label)]]</div>\n  <tp-yt-paper-toggle-button checked="[[data.toggled]]" disabled="[[!enabled]]" noink="" on-change="onChange" on-checked-changed="updateDataToggledFromBinding" class="style-scope ytd-toggle-item-renderer">\n  </tp-yt-paper-toggle-button>\n</div>\n<template is="dom-repeat" items="[[data.extraDescriptionLines]]" class="style-scope ytd-toggle-item-renderer">\n  <div class="extra-description style-scope ytd-toggle-item-renderer">\n    <yt-formatted-string text="[[item]]" class="style-scope ytd-toggle-item-renderer"></yt-formatted-string>\n  </div>\n</template>\n');
a.content.insertBefore(_.w().content.cloneNode(!0),a.content.firstChild);return JLG=a},{mode:1});var rLG;var P$Z;var ZAM;var R8=function(){var a=_.G.apply(this,arguments)||this;a.setVisible=!1;a.boundOnSubmitButtonClick=function(){a.onSubmitButtonClick()};
a.actionMap={"yt-survey-flow-step-option-changed":"handleSurveyFlowStepOptionChanged","yt-signal-action-submit-form":"handleSignalActionSubmitForm"};return a};
_.b(R8,_.G);R8.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}}}}}};
R8.prototype.handleSurveyFlowStepOptionChanged=function(){this.setVisible=!0};
R8.prototype.onSubmitButtonClick=function(){var a;((a=this.data)==null?0:a.submitEndpoint)&&!_.K("enable_ytc_refunds_submit_form_signal_action")&&_.N$(this.hostElement,[this.data.submitEndpoint,{formData:{ypcBrowseFormData:{problemFlowFormData:{surveyFeedbackData:this.surveyFeedbackData}}}}])};
R8.prototype.handleSignalActionSubmitForm=function(){var a;((a=this.data)==null?0:a.submitEndpoint)&&_.N$(this.hostElement,[this.data.submitEndpoint,{formData:{ypcBrowseFormData:{problemFlowFormData:{surveyFeedbackData:this.surveyFeedbackData}}}}])};
_.eH.Object.defineProperties(R8.prototype,{visibilityHidden:{configurable:!0,enumerable:!0,get:function(){var a;return!((a=this.data)==null||!a.hiddenByDefault)&&!this.setVisible}}});
_.L([_.Q(_.Hc.YtActionHandlerBehavior),_.p("design:type",Object)],R8.prototype,"ytActionHandlerBehavior",void 0);_.L([_.Q(_.k.YtRendererBehavior),_.p("design:type",Object)],R8.prototype,"ytRendererBehavior",void 0);_.L([_.Q(_.u4.YtRendererstamperBehavior),_.p("design:type",Object)],R8.prototype,"ytRendererstamperBehavior",void 0);_.L([_.x(),_.p("design:type",Object)],R8.prototype,"setVisible",void 0);_.L([_.x(),_.p("design:type",Object)],R8.prototype,"data",void 0);
_.L([_.x(),_.p("design:type",Object)],R8.prototype,"surveyFeedbackData",void 0);_.L([_.x(),_.p("design:type",Object)],R8.prototype,"boundOnSubmitButtonClick",void 0);_.L([_.x({reflectToAttribute:!0}),_.S("data","setVisible"),_.p("design:type",Object),_.p("design:paramtypes",[])],R8.prototype,"visibilityHidden",null);_.L([_.dz({is:"yt-flow-footer-renderer",disableElementRegistration:!0})],R8);
_.D(R8,"yt-flow-footer-renderer",function(){if(ZAM===void 0){var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-flow-footer-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.ypc.flow.yt_flow_footer_renderer.yt.flow.footer.renderer.css.js--\x3e<div id="secondary-button" hidden$="[[!data.secondaryButton]]" class="style-scope yt-flow-footer-renderer"></div><div id="primary-button" hidden$="[[!data.primaryButton]]" class="style-scope yt-flow-footer-renderer"></div>');
a.content.insertBefore(_.w().content.cloneNode(!0),a.content.firstChild);var z=a.content,I=z.insertBefore;P$Z===void 0&&(P$Z=document.createElement("template"));var J=P$Z;I.call(z,J.content.cloneNode(!0),a.content.firstChild);ZAM=a}a=ZAM;return a},{mode:2});var Lm=function(){return _.G.apply(this,arguments)||this};
_.b(Lm,_.G);_.L([_.Q(_.k.YtRendererBehavior),_.p("design:type",Object)],Lm.prototype,"ytRendererBehavior",void 0);_.L([_.Q(_.pV),_.p("design:type",Object)],Lm.prototype,"ytdReduxBehavior",void 0);_.L([_.x(),_.p("design:type",Object)],Lm.prototype,"data",void 0);_.L([_.x({selector:function(a){return a.ypc.surveyFeedbackData}}),
_.p("design:type",Object)],Lm.prototype,"surveyFeedbackData",void 0);_.L([_.U({disableElementRegistration:!0,is:"ytd-flow-footer-renderer"})],Lm);
_.D(Lm,"ytd-flow-footer-renderer",function(){if(rLG!==void 0)return rLG;var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-flow-footer-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-flow-footer-renderer data="[[data]]" survey-feedback-data="[[surveyFeedbackData]]" class="style-scope ytd-flow-footer-renderer">\n</yt-flow-footer-renderer>\n');a.content.insertBefore(_.w().content.cloneNode(!0),
a.content.firstChild);return rLG=a},{mode:_.Np("kevlar_poly_si_batch_j025")?1:2});var C$G;var Nti;var lZ=function(){var a=_.G.apply(this,arguments)||this;a.actionMap={"yt-broadcast-user-invalidation-action":"updateMenu_","yt-hide-enclosing-action":"handleHideEnclosingAction_"};return a};
_.b(lZ,_.G);_.Z=lZ.prototype;_.Z.configureRendererStamper=function(){return{"data.items":{id:"items",mapping:_.XT("multiPageMenuSectionItems")}}};
_.Z.handleHideEnclosingAction_=function(a){if(this.data&&this.data.items)for(var z=0;z<this.data.items.length;z++){var I=this.data.items[z].notificationRenderer;if(I&&I.notificationId==a.hideEnclosingAction.notificationId){this.splice("data.items",z,1);_.ZF(this.hostElement,"yt-close-popup-action",["ytd-menu-popup-renderer"]);this.maybeHideNotificationSection_();break}}};
_.Z.maybeHideNotificationSection_=function(){this.data&&this.data.items&&this.data.items.length==0&&_.N3(this.hostElement,"hidden",!0)};
_.Z.updateMenu_=function(a){if(this.ytRendererBehavior.parentComponent.isPopUpOpen&&this.data&&this.data.continuations&&a&&!a.doNotRefreshInbox){a=this.data.continuations;for(var z=0;z<a.length;z++)if(a[z].invalidationContinuationData){var I=void 0;var J=(I=a[z].invalidationContinuationData)==null?void 0:I.continuation;break}a=_.x8.clone(this.data.continuationUpdateEndpoint||null);a.continuation=J;a.click_tracking_params=this.data.trackingParams;_.N$(this.hostElement,[a])}};
_.Z.onServiceRequestCompleted_=function(a,z){if(this.data&&(a=z.actions)){z=0;for(var I=a.length;z<I;z++){var J=_.H(a[z],_.TZi);if(!J)break;if((J.target==="CONTINUATION_TARGET_NOTIFICATION_MENU"||J.target==="CONTINUATION_TARGET_CONVERSATION_MENU")&&J.continuationItems&&this.data.items){var r=this.data.items.length-1;this.data.items[r].continuationItemRenderer&&(J=["data.items",r,1].concat(J.continuationItems),this.splice.apply(this,J))}}}};
lZ.prototype.onServiceRequestCompleted_=lZ.prototype.onServiceRequestCompleted_;_.L([_.Q(_.k.YtRendererBehavior),_.p("design:type",Object)],lZ.prototype,"ytRendererBehavior",void 0);_.L([_.Q(_.u4.YtRendererstamperBehavior),_.p("design:type",Object)],lZ.prototype,"ytRendererstamperBehavior",void 0);_.L([_.Q(_.Hc.YtActionHandlerBehavior),_.p("design:type",Object)],lZ.prototype,"ytActionHandlerBehavior",void 0);_.L([_.x(),_.p("design:type",Object)],lZ.prototype,"data",void 0);
_.L([_.gz("yt-service-request-completed"),_.p("design:type",Function),_.p("design:paramtypes",[CustomEvent,_.Yq]),_.p("design:returntype")],lZ.prototype,"onServiceRequestCompleted_",null);_.L([_.dz({is:"yt-multi-page-menu-section-renderer",disableElementRegistration:!0})],lZ);
_.Cw()(lZ,"yt-multi-page-menu-section-renderer",function(){if(Nti===void 0){var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-multi-page-menu-section-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.account.yt_multi_page_menu_section_renderer.yt.multi.page.menu.section.renderer.css.js--\x3e<div id="section-title" hidden="[[!data.notificationSectionTitle]]" class="style-scope yt-multi-page-menu-section-renderer">\n  <h2 class="style-scope yt-multi-page-menu-section-renderer">\n    <yt-formatted-string text="[[data.notificationSectionTitle]]" class="style-scope yt-multi-page-menu-section-renderer"></yt-formatted-string>\n  </h2>\n</div>\n<div id="items" class="style-scope yt-multi-page-menu-section-renderer"></div>\n');a.content.insertBefore(_.w().content.cloneNode(!0),
a.content.firstChild);var z=a.content,I=z.insertBefore;C$G===void 0&&(C$G=document.createElement("template"));var J=C$G;I.call(z,J.content.cloneNode(!0),a.content.firstChild);Nti=a}a=Nti;return a},{allowedProps:["data"],
mode:2});var t0z;var u8Y;var pm=function(){return _.G.apply(this,arguments)||this};
_.b(pm,_.G);pm.prototype.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:{component:"yt-button-renderer",attributes:{"dialog-dismiss":!0},params:{noink:!0}}}}}};
_.eH.Object.defineProperties(pm.prototype,{showProgressBar:{configurable:!0,enumerable:!0,get:function(){var a;return((a=this.data)==null?void 0:a.progress)!=null}},
progress:{configurable:!0,enumerable:!0,get:function(){var a;return((a=this.data)==null?void 0:a.progress)==null?0:this.data.progress*100}}});
_.L([_.Q(_.k.YtRendererBehavior),_.p("design:type",Object)],pm.prototype,"ytRendererBehavior",void 0);_.L([_.Q(_.u4.YtRendererstamperBehavior),_.p("design:type",Object)],pm.prototype,"ytRendererstamperBehavior",void 0);_.L([_.x(),_.p("design:type",Object)],pm.prototype,"data",void 0);_.L([_.S("data.progress"),_.p("design:type",Boolean),_.p("design:paramtypes",[])],pm.prototype,"showProgressBar",null);
_.L([_.S("data.progress"),_.p("design:type",Number),_.p("design:paramtypes",[])],pm.prototype,"progress",null);_.L([_.dz({is:"yt-flow-header-renderer",disableElementRegistration:!0})],pm);
_.D(pm,"yt-flow-header-renderer",function(){if(u8Y===void 0){var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-flow-header-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.ypc.flow.yt_flow_header_renderer.yt.flow.header.renderer.css.js--\x3e<div id="top-bar" class="style-scope yt-flow-header-renderer">\n  <div id="action-button" hidden$="[[!data.actionButton]]" class="style-scope yt-flow-header-renderer"></div>\n  <yt-formatted-string id="title" force-default-style="" split-lines="1" text="[[data.title]]" class="style-scope yt-flow-header-renderer">\n  </yt-formatted-string>\n</div>\n<tp-yt-paper-progress id="progress-bar" hidden="[[!showProgressBar]]" value="[[progress]]" class="style-scope yt-flow-header-renderer"></tp-yt-paper-progress>\n');a.content.insertBefore(_.w().content.cloneNode(!0),
a.content.firstChild);var z=a.content,I=z.insertBefore;t0z===void 0&&(t0z=document.createElement("template"));var J=t0z;I.call(z,J.content.cloneNode(!0),a.content.firstChild);u8Y=a}a=u8Y;return a},{mode:2});var EJi;var Bt0;var wb=function(){return _.G.apply(this,arguments)||this};
_.b(wb,_.G);wb.prototype.configureRendererStamper=function(){return{"data.text":{id:"text",mapping:{cardItemTextCollectionRenderer:{component:"yt-card-item-text-collection-renderer"}}}}};
_.L([_.Q(_.k.YtRendererBehavior),_.p("design:type",Object)],wb.prototype,"ytRendererBehavior",void 0);_.L([_.Q(_.u4.YtRendererstamperBehavior),_.p("design:type",Object)],wb.prototype,"ytRendererstamperBehavior",void 0);_.L([_.x(),_.p("design:type",Object)],wb.prototype,"data",void 0);_.L([_.dz({is:"yt-post-confirmation-flow-step-renderer",disableElementRegistration:!0})],wb);
_.D(wb,"yt-post-confirmation-flow-step-renderer",function(){if(Bt0===void 0){var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-post-confirmation-flow-step-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.ypc.flow.yt_post_confirmation_flow_step_renderer.yt.post.confirmation.flow.step.renderer.css.js--\x3e<div id="container" class="style-scope yt-post-confirmation-flow-step-renderer"><div id="text" class="style-scope yt-post-confirmation-flow-step-renderer"></div></div>');
a.content.insertBefore(_.w().content.cloneNode(!0),a.content.firstChild);var z=a.content,I=z.insertBefore;EJi===void 0&&(EJi=document.createElement("template"));var J=EJi;I.call(z,J.content.cloneNode(!0),a.content.firstChild);Bt0=a}a=Bt0;return a},{mode:2});var gJE;var OAV;var m4=function(){return _.G.apply(this,arguments)||this};
_.b(m4,_.G);
m4.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"}}}}};
_.L([_.Q(_.k.YtRendererBehavior),_.p("design:type",Object)],m4.prototype,"ytRendererBehavior",void 0);_.L([_.Q(_.u4.YtRendererstamperBehavior),_.p("design:type",Object)],m4.prototype,"ytRendererstamperBehavior",void 0);_.L([_.x(),_.p("design:type",Object)],m4.prototype,"data",void 0);_.L([_.dz({is:"yt-refund-confirmation-flow-step-renderer",disableElementRegistration:!0})],m4);
_.D(m4,"yt-refund-confirmation-flow-step-renderer",function(){if(OAV===void 0){var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-refund-confirmation-flow-step-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.ypc.flow.yt_refund_confirmation_flow_step_renderer.yt.refund.confirmation.flow.step.renderer.css.js--\x3e<div id="container" class="style-scope yt-refund-confirmation-flow-step-renderer"><div id="user-info" class="style-scope yt-refund-confirmation-flow-step-renderer"></div><div id="confirmation-text" class="style-scope yt-refund-confirmation-flow-step-renderer"></div><div id="confirmation-details" class="style-scope yt-refund-confirmation-flow-step-renderer"></div><div id="product-details" class="style-scope yt-refund-confirmation-flow-step-renderer"></div><div id="billing-details" class="style-scope yt-refund-confirmation-flow-step-renderer"></div></div>');
a.content.insertBefore(_.w().content.cloneNode(!0),a.content.firstChild);var z=a.content,I=z.insertBefore;gJE===void 0&&(gJE=document.createElement("template"));var J=gJE;I.call(z,J.content.cloneNode(!0),a.content.firstChild);OAV=a}a=OAV;return a},{mode:2});_.IG(McZ);var f0i=_.ec(function(a){var z=a.data;return _.B("yt-profile-badge-view-model",{class:"profile-badge-view-model-wiz"},_.B("div",{class:"profile-badge-view-model-wiz__badge-icon-container"},_.B(_.qp,{data:function(){return{thumbnails:[{url:z().badgeIconUrl}]}},
alt:"",targetWidth:36,targetHeight:36})),_.B("div",{class:"profile-badge-view-model-wiz__content"},_.B("div",{class:"profile-badge-view-model-wiz__badge-description"},function(){return z().badgeDesc}),_.B(_.g,{cond:function(){return z().badgeSubtitle},
then:function(){return _.B("div",{class:"profile-badge-view-model-wiz__badge-subtitle"},function(){return z().badgeSubtitle})}})))},"Sg"),IAM=_.K("web_enable_sink_profile_card_batch_ks")?McZ:f0i;
f0i.idomCompat=!0;_.IG(c3M);var ALZ=_.ec(function(a){var z=a.data;return _.B("yt-comment-interaction-view-model",{el:_.a5(_.UN(function(){return z().rendererContext})),
class:"yt-comment-interaction-view-model-wiz"},_.B("div",{class:"yt-comment-interaction-view-model-wiz__frame",role:"button","aria-label":function(){return z().onTapA11yLabel},
"on:keydown":_.XF(),tabindex:0},_.B("div",{class:"yt-comment-interaction-view-model-wiz__header"},_.B("div",{class:"yt-comment-interaction-view-model-wiz__video-title"},function(){return z().headerPrefix},' "',function(){return z().videoTitle}),_.B("div",{class:"yt-comment-interaction-view-model-wiz__video-title-quote"},'"')),_.B("div",{class:"yt-comment-interaction-view-model-wiz__content"},_.B("div",{class:"yt-comment-interaction-view-model-wiz__comment-content"},function(){return z().commentContent}),
_.B("div",{class:"yt-comment-interaction-view-model-wiz__chevron"},_.B(_.qp,{data:function(){return{thumbnails:[{url:z().chevronUrl}]}},
alt:"",targetWidth:18,targetHeight:18})))))},"Tg");
ALZ.idomCompat=!0;var sMZ=_.K("web_enable_sink_profile_card_batch_ks")?c3M:ALZ,nJe=_.K("web_enable_sink_profile_card_batch_ks")?_.fS(c3M):ALZ;var Y8Z=_.im({avatarViewModel:_.ok});_.IG(q8Z);var KcM=_.ec(function(a){var z=a.data;return _.B("yt-shared-subscription-view-model",{class:"yt-shared-subscription-view-model-wiz"},_.B(_.V0,{data:function(){return z().avatar}},{avatarViewModel:_.ok}),_.B("div",{class:"yt-shared-subscription-view-model-wiz__channel-name"},function(){return z().channelName}))},"Ug"),FcY=_.K("web_enable_sink_profile_card_batch_ks")?q8Z:KcM,HAZ=_.K("web_enable_sink_profile_card_batch_ks")?_.fS(q8Z):KcM;
KcM.idomCompat=!0;var O0=_.im({commentInteractionViewModel:sMZ,sharedSubscriptionViewModel:FcY,buttonViewModel:_.At,horizontalShelfViewModel:_.pF});_.IG(aAG);_.IG(j00);_.IG(zL4);_.IG(JjZ);_.IG(rjV);var SAE=_.ec(function(a){var z=a.data;a={};return _.B("yt-profile-info-view-model",{class:_.B8("yt-profile-info-view-model-wiz",(a["yt-profile-info-view-model-wiz__with-video-shelf"]=function(){return z().videosHorizontalShelf},a))},_.B(bAZ,{profileInfo:z}),_.B(_.V0,{data:function(){return z().videosHorizontalShelf}},{horizontalShelfViewModel:function(I){return _.B("div",{class:"yt-profile-info-view-model-wiz__videoShelfContainer"},_.B(_.pF,{data:I.data}))}}),_.B(_.g,{cond:function(){return z().comments},
then:function(){return _.B(hHz,{profileInfo:z})}}),_.B(_.g,{cond:function(){return z().sharedSubscriptionsTitle},
then:function(){return _.B(_.g,{cond:function(){return z().subscriptionsAccessButtonCommand},
then:function(){return _.B(V0f,{profileInfo:z})},
else:function(){return _.B(QMf,{profileInfo:z})}})}}))},"Vg");
SAE.idomCompat=!0;
var iAG=_.K("web_enable_sink_profile_card_batch_ks")?_.fS(rjV):SAE,hHz=_.ec(function(a){var z=a.profileInfo;return _.B("div",{class:"yt-profile-info-view-model-wiz__activity"},_.B("div",{class:"yt-profile-info-view-model-wiz__header"},_.B("div",{class:"yt-profile-info-view-model-wiz__section-title"},function(){return z().commentsInteractionTitle})),_.B(_.V0,{data:function(){return z().comments}},{commentInteractionViewModel:function(I){return _.B("div",{class:"yt-profile-info-view-model-wiz__activity"},_.B(nJe,
{data:I.data}))}}))},"Wg"),V0f=_.ec(function(a){var z=a.profileInfo;
return _.B("div",{class:"yt-profile-info-view-model-wiz__sub-section"},_.B("div",{class:"yt-profile-info-view-model-wiz__sub-header"},_.B(_.lq,{command:function(){return z().subscriptionsAccessButtonCommand},
className:"yt-profile-info-view-model-wiz__another-header"},_.B("div",{class:"yt-profile-info-view-model-wiz__section-title-modern"},function(){return z().sharedSubscriptionsTitle}),_.B("div",null,_.B(_.V0,{data:function(){return z().subscriptionsAccessButton}},{buttonViewModel:_.At})))),_.B(xii,{sharedSubscriptions:function(){var I;
return((I=z().sharedSubscriptions)==null?void 0:I.slice(0,5))||[]}}))},"Xg"),QMf=_.ec(function(a){var z=a.profileInfo;
return _.B("div",{class:"yt-profile-info-view-model-wiz__sub-section"},_.B("div",{class:"yt-profile-info-view-model-wiz__sub-header"},_.B("h2",{class:"yt-profile-info-view-model-wiz__section-title"},function(){return z().sharedSubscriptionsTitle})),_.B(xii,{sharedSubscriptions:function(){var I;
return((I=z().sharedSubscriptions)==null?void 0:I.slice(0,5))||[]}}))},"Yg"),xii=_.ec(function(a){return _.B("div",{class:"yt-profile-info-view-model-wiz__subs"},_.B(_.V0,{data:a.sharedSubscriptions},{sharedSubscriptionViewModel:function(z){return _.B("div",{class:"yt-profile-info-view-model-wiz__sub"},_.B(HAZ,{data:z.data}))}}))},"Zg"),bAZ=_.ec(function(a){var z=a.profileInfo;
return _.B("div",{class:"yt-profile-info-view-model-wiz__activity"},_.B(_.se,{each:function(){return[z().profileBadgeInfoYtWide,z().profileBadgeInfoChannelWide].filter(function(I){return!!I})},
keyBy:"INDEX"},function(I){return _.B(_.eJ,null,_.B("div",{class:"yt-profile-info-view-model-wiz__header"},_.B("div",{class:"yt-profile-info-view-model-wiz__section-title"},function(){return I().profileSectionTitle}),_.B("div",{class:"yt-profile-info-view-model-wiz__section-desc"},_.B("div",{class:"yt-profile-info-view-model-wiz__section-subtitle"},function(){var J;
return(J=I().commentBadge)==null?void 0:J.commentDesc}),_.B(_.g,{cond:function(){var J;
return(J=I().commentBadge)==null?void 0:J.blackHeartDesc},
then:function(){return _.B("div",{class:"yt-profile-info-view-model-wiz__section-divider"},"\u2022")}}),_.B("div",{class:"yt-profile-info-view-model-wiz__section-heart-icon"},_.B(_.qp,{data:function(){var J;
return{thumbnails:[{url:(J=I().commentBadge)==null?void 0:J.blackHeartIconUrl}]}},
alt:"",targetWidth:14,targetHeight:14,preserveWidth:!0,preserveHeight:!0})),_.B("div",{class:"yt-profile-info-view-model-wiz__section-subtitle"},function(){var J;return(J=I().commentBadge)==null?void 0:J.blackHeartDesc}))),_.B("div",{class:"yt-profile-info-view-model-wiz__badge"},_.B(_.se,{each:function(){return I().badges||[]}},function(J){return _.B(IAM,{data:J})})))}))},"$g");var PNf=_.im({profileIdentityInfoViewModel:_.tpY,profileInfoViewModel:_.K("web_enable_sink_profile_card_batch_ks")?rjV:SAE});_.IG(ZwY);var vJZ=_.ec(function(a){var z=a.data;var I=function(){return z().profileCardContext==="PROFILE_CARD_CONTEXT_CHANNEL_INFO_CARD"};
return _.B("yt-profile-card-view-model",{class:"yt-profile-card-view-model-wiz",style:"overflow: hidden"},_.B(_.V0,{data:function(){return z().profileIdentityInfo}},{profileIdentityInfoViewModel:function(J){return _.B(_.uy0,{data:J.data,
hideDivider:I,isChannelInfoCard:I})},
profileInfoViewModel:iAG}),_.B(_.V0,{data:function(){return z().profileInfo}},{profileIdentityInfoViewModel:_.uy0,
profileInfoViewModel:iAG}))},"ah"),Gvf=_.K("web_enable_sink_profile_card_batch_ks")?ZwY:vJZ,$i0=_.K("web_enable_sink_profile_card_batch_ks")?_.fS(ZwY):vJZ;
vJZ.idomCompat=!0;_.K("web_enable_sink_profile_card_batch_ks")?_.EW(Gvf,"yt-profile-card-view-model",{propNames:["data"]}):_.Jf($i0,"yt-profile-card-view-model",{props:{data:_.zl}});var yq=function(){var a=_.G.apply(this,arguments)||this;a.enableFocusFix=_.K("music_web_enable_focus_on_setting_menu_fix")&&_.TZ("IS_MOBILE_WEB",!1);a.covered=!1;a.hideMenu=!1;a.isCommentNotificationOnProfileCard=!1;a.scrolledByTouch=!1;a.disableBackdropFilter=_.K("web_disable_backdrop_filter");a.HIGH_PRIORITY_NOTIFICATION_DISPLAY_TIMEOUT_MS=4E3;return a};
_.b(yq,_.G);_.Z=yq.prototype;
_.Z.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"}}}};
_.Z.ready=function(){var a=this;this.JSC$20032_containerElement.addEventListener("scroll",function(){a.ytRendererBehavior.markDirty()})};
_.Z.attributeChanged=function(a,z){a==="menu-style"&&_.ZF(this.hostElement,"yt-multi-page-menu-closed-action",[z])};
_.Z.detached=function(){this.hostElement.removeEventListener("yt-rendererstamper-finished",_.BK(this,this.focusOnStampFinished))};
_.Z.focusFirstItem=function(){this.doFocus();this.hostElement.addEventListener("yt-rendererstamper-finished",_.BK(this,this.focusOnStampFinished))};
_.Z.reset=function(){this.closeJobId&&(_.GW.cancelJob(this.closeJobId),this.closeJobId=0);this.covered=!1};
_.Z.focusOnStampFinished=function(a){a.detail.container===this.sectionsElement&&(this.hostElement.removeEventListener("yt-rendererstamper-finished",_.BK(this,this.focusOnStampFinished)),this.doFocus())};
_.Z.doFocus=function(){var a=_.UA1(this.sectionsElement);a.length&&a[0].focus()};
_.Z.computeMenuStyle=function(a){return a?a.toLowerCase().replace(/_/g,"-"):""};
_.Z.computeIsCommentNotificationOnProfileCard=function(a){return _.K("enable_profile_cards_on_comments")&&a.style==="MULTI_PAGE_MENU_STYLE_TYPE_PROFILE_CARD_COMMENTS"};
_.Z.computeHideMenu=function(a,z){return a||!(!z||!z.showLoadingSpinner)};
_.Z.onPopupClosed=function(){this.isPopUpOpen=!1;_.ZF(this.hostElement,"yt-multi-page-menu-closed-action",[this.menuStyle])};
_.Z.onPopupOpened=function(a,z){this.isPopUpOpen=!0;z.is==="ytd-multi-page-menu-renderer"&&(this.reset(),_.PA(this.hostElement,"yt-refit"),this.enableFocusFix&&this.doFocus(),this.data.style==="MULTI_PAGE_MENU_STYLE_TYPE_REPORT_CHANNEL"&&this.ytdReduxBehavior.dispatch(_.rg({type:"CHANNEL_REPORT_RESET"})))};
_.Z.onYtNavigate=function(a,z){this.shouldCloseOnNavigateEvent(z.endpoint)&&_.ZF(this.hostElement,"yt-close-all-popups-action")};
_.Z.handleEndpoint=function(a){a=_.H(a,_.UL);!this.isCommentNotificationOnProfileCard&&a&&(this.spinnerElement.hidden=!1,this.headerElement.hidden=!0,this.JSC$20032_containerElement.hidden=!0,this.submenuElement.hidden=!0)};
_.Z.handleActions=function(a){for(var z=0,I=a.length;z<I;z++){var J=_.H(a[z],oo0);J&&this.handleGetMultiPageMenuAction(J);(J=_.H(a[z],_.TZi))&&this.handleAppendContinuationItemsAction(J)}};
_.Z.onServiceRequestSentOrCompleted=function(a,z){a.detail&&a.detail.endpoint&&this.handleEndpoint(a.detail.endpoint);z.actions&&this.handleActions(z.actions)};
_.Z.handleGetMultiPageMenuAction=function(a){var z=document.createElement("ytd-multi-page-menu-renderer");this.refitAfterRender();this.emptySubmenuContainer();_.PK(this.submenuElement).appendChild(z);(a=a.menu.multiPageMenuRenderer)&&this.logSubmenu(a);z.data=a;z.covered=!1;this.covered=!0;this.spinnerElement.hidden=!0};
_.Z.handleAppendContinuationItemsAction=function(a){if(this.data&&a.target==="CONTINUATION_TARGET_NOTIFICATION_MENU"&&a.continuationItems&&this.data.sections){var z=this.data.sections.length-1;this.data.sections[z].continuationItemRenderer&&(this.splice("data.sections",this.data.sections.length-1,1),z--);if(this.data.sections[z].multiPageMenuNotificationSectionRenderer&&a.continuationItems){a=_.C(a==null?void 0:a.continuationItems);for(var I=a.next();!I.done;I=a.next())if(I=I.value,_.H(I,tYe)){var J=
void 0,r=void 0,P=void 0,N=void 0,u=void 0;((J=this)==null?0:(r=J.data)==null?0:(P=r.sections)==null?0:(N=P[z])==null?0:(u=N.multiPageMenuNotificationSectionRenderer)==null?0:u.items)&&this.push("data.sections."+z+".multiPageMenuNotificationSectionRenderer.items",I)}else if(_.H(I,_.bRO)||_.H(I,_.av))this.push("data.sections",I),z++}}};
_.Z.logSubmenu=function(a){if(!_.K("kevlar_multi_page_menu_sub_page_loggin_killswitch")){var z=this.ytRendererBehavior.getScreenLayer(),I=_.TX(z),J=_.XZ(z);if((a=a.trackingParams)&&I&&J){var r=_.VX(a);_.K("combine_ve_grafts")?_.Kw().graftServerVe(a,J,z):_.Lt(I,J,r)}}};
_.Z.emptySubmenuContainer=function(){for(var a=_.PK(this.submenuElement);a.firstChild;)a.removeChild(a.firstChild)};
_.Z.onMenuBackTap=function(a){_.PA(this.hostElement,"yt-submenu-closed");a.stopPropagation()};
_.Z.onSubmenuClosed=function(a){_.Yh(a)!==this.hostElement&&(this.covered=!1,_.PA(this.hostElement,"yt-refit"),a.stopPropagation())};
_.Z.onRetrieveLocation=function(a,z){z.hasComments&&(z.locationRetrieved("/comment_service_ajax?action_get_comments=1&pbj=1",void 0),a.stopPropagation())};
_.Z.shouldCloseOnNavigateEvent=function(a){if(!a)return!0;if(_.H(a,_.SxE)||_.H(a,_.i$X)||_.H(a,_.QJO)||_.H(a,_.pv))return!1;var z;return((z=_.H(a==null?void 0:a.commandMetadata,_.O_))==null?0:z.ignoreNavigation)?!1:!0};
_.Z.onContainerTouchStart=function(){this.scrolledByTouch=!0};
_.Z.onContainerTouchEnd=function(){this.scrolledByTouch=!1};
_.Z.refitAfterRender=function(){var a=this;_.Yv(this,function(){_.PA(a.hostElement,"yt-refit")})};
yq.prototype.refitAfterRender=yq.prototype.refitAfterRender;yq.prototype.onRetrieveLocation=yq.prototype.onRetrieveLocation;yq.prototype.onSubmenuClosed=yq.prototype.onSubmenuClosed;yq.prototype.onMenuBackTap=yq.prototype.onMenuBackTap;yq.prototype.onServiceRequestSentOrCompleted=yq.prototype.onServiceRequestSentOrCompleted;yq.prototype.onYtNavigate=yq.prototype.onYtNavigate;yq.prototype.onPopupOpened=yq.prototype.onPopupOpened;yq.prototype.onPopupClosed=yq.prototype.onPopupClosed;
_.L([_.Q(_.k.YtRendererBehavior),_.p("design:type",Object)],yq.prototype,"ytRendererBehavior",void 0);_.L([_.Q(_.iO.YtEventForwardingBehavior),_.p("design:type",Object)],yq.prototype,"ytEventForwardingBehavior",void 0);_.L([_.Q(_.u4.YtRendererstamperBehavior),_.p("design:type",Object)],yq.prototype,"ytRendererstamperBehavior",void 0);_.L([_.Q(_.pV),_.p("design:type",Object)],yq.prototype,"ytdReduxBehavior",void 0);_.L([_.x(),_.p("design:type",Object)],yq.prototype,"data",void 0);
_.L([_.x(),_.p("design:type",Object)],yq.prototype,"enableFocusFix",void 0);_.L([_.x(),_.p("design:type",Object)],yq.prototype,"covered",void 0);_.L([_.x({computed:"computeHideMenu(covered, data)"}),_.p("design:type",Object)],yq.prototype,"hideMenu",void 0);_.L([_.x({reflectToAttribute:!0,computed:"computeMenuStyle(data.style)"}),_.p("design:type",String)],yq.prototype,"menuStyle",void 0);
_.L([_.x({computed:"computeIsCommentNotificationOnProfileCard(data)"}),_.p("design:type",Object)],yq.prototype,"isCommentNotificationOnProfileCard",void 0);_.L([_.x(),_.p("design:type",Boolean)],yq.prototype,"isPopUpOpen",void 0);_.L([_.x({reflectToAttribute:!0}),_.p("design:type",Object)],yq.prototype,"scrolledByTouch",void 0);_.L([_.x({reflectToAttribute:!0}),_.p("design:type",Object)],yq.prototype,"disableBackdropFilter",void 0);
_.L([_.A3("#sections"),_.p("design:type",HTMLElement)],yq.prototype,"sectionsElement",void 0);_.L([_.A3("#spinner"),_.p("design:type",HTMLElement)],yq.prototype,"spinnerElement",void 0);_.L([_.A3("#header"),_.p("design:type",HTMLElement)],yq.prototype,"headerElement",void 0);_.L([_.A3("#container"),_.p("design:type",HTMLElement)],yq.prototype,"JSC$20032_containerElement",void 0);_.L([_.A3("#submenu"),_.p("design:type",HTMLElement)],yq.prototype,"submenuElement",void 0);
_.L([_.gz("yt-popup-closed"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],yq.prototype,"onPopupClosed",null);_.L([_.gz("yt-popup-opened"),_.p("design:type",Function),_.p("design:paramtypes",[CustomEvent,Object]),_.p("design:returntype")],yq.prototype,"onPopupOpened",null);_.L([_.gz("yt-navigate"),_.p("design:type",Function),_.p("design:paramtypes",[CustomEvent,Object]),_.p("design:returntype")],yq.prototype,"onYtNavigate",null);
_.L([_.gz("yt-service-request-completed"),_.gz("yt-service-request-sent"),_.p("design:type",Function),_.p("design:paramtypes",[CustomEvent,_.Yq]),_.p("design:returntype")],yq.prototype,"onServiceRequestSentOrCompleted",null);_.L([_.gz("yt-menu-back-tapped"),_.p("design:type",Function),_.p("design:paramtypes",[CustomEvent]),_.p("design:returntype")],yq.prototype,"onMenuBackTap",null);
_.L([_.gz("yt-submenu-closed"),_.p("design:type",Function),_.p("design:paramtypes",[CustomEvent]),_.p("design:returntype")],yq.prototype,"onSubmenuClosed",null);_.L([_.gz("yt-retrieve-location"),_.p("design:type",Function),_.p("design:paramtypes",[CustomEvent,Object]),_.p("design:returntype")],yq.prototype,"onRetrieveLocation",null);_.L([_.O8("data"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],yq.prototype,"refitAfterRender",null);
_.L([_.U({is:"ytd-multi-page-menu-renderer",disableElementRegistration:!0})],yq);
_.D(yq,"ytd-multi-page-menu-renderer",function(){if(kqi!==void 0)return kqi;var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-multi-page-menu-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="spinner" hidden="[[!data.showLoadingSpinner]]" class="style-scope ytd-multi-page-menu-renderer">\n  <tp-yt-paper-spinner active="[[data.showLoadingSpinner]]" class="style-scope ytd-multi-page-menu-renderer"></tp-yt-paper-spinner>\n</div>\n<div id="header" hidden="[[hideMenu]]" class="style-scope ytd-multi-page-menu-renderer"></div>\n<div id="container" class="menu-container style-scope ytd-multi-page-menu-renderer" hidden="[[hideMenu]]" on-touchstart="onContainerTouchStart" on-touchend="onContainerTouchEnd">\n  <div id="sections" class="style-scope ytd-multi-page-menu-renderer"></div>\n  <div id="footer" class="style-scope ytd-multi-page-menu-renderer"></div>\n</div>\n<div id="submenu" class="menu-container style-scope ytd-multi-page-menu-renderer" hidden="[[!covered]]"></div>\n');a.content.insertBefore(_.w().content.cloneNode(!0),
a.content.firstChild);return kqi=a},{mode:1});var XMe;var kw=function(){var a=_.G.apply(this,arguments)||this;a.actionMap={"yt-multi-page-menu-closed-action":"handleTopbarMenuClosedAction","yt-update-topbar-avatar-action":"handleUpdateTopbarAvatarAction"};return a};
_.b(kw,_.G);_.Z=kw.prototype;_.Z.created=function(){this.showTooltips=!0};
_.Z.computeAccessibility_=function(a){return this.get("accessibility.accessibilityData",a)||null};
_.Z.onTap=function(){var a=_.Ct(this.hostElement,"yt-get-popup-opened-action",["ytd-multi-page-menu-renderer"]);this.toggleIconState(!0);if(a&&a.length===1&&a[0])_.ZF(this.hostElement,"yt-close-popup-action",["ytd-multi-page-menu-renderer"]);else{var z;if((z=this.data)==null?0:z.menuRenderer)this.ytdOpenPopupBehavior.openPopup({openPopupAction:{popupType:"DROPDOWN",popup:this.data.menuRenderer}});else{var I;((I=this.data)==null?0:I.menuRequest)&&_.N$(this.hostElement,[this.data.menuRequest])}}};
_.Z.handleTopbarMenuClosedAction=function(a){var z,I;(new Map([["multi-page-menu-style-type-creation","VIDEO_CALL"],["multi-page-menu-style-type-notifications","NOTIFICATIONS"],["multi-page-menu-style-type-yt-apps","APPS"]])).get(a)===((z=this.data)==null?void 0:(I=z.icon)==null?void 0:I.iconType)&&this.toggleIconState(!1)};
_.Z.toggleIconState=function(a){_.K("kevlar_system_icons")&&this.iconButton&&(this.iconButton.pressed=a)};
_.Z.handleUpdateTopbarAvatarAction=function(a){var z;a=(z=_.H(a,voV))==null?void 0:z.avatarUrl;var I,J;z=(I=this.data)==null?void 0:(J=I.avatar)==null?void 0:J.thumbnails;a&&z&&(I={thumbnails:[Object.assign({},z[0],{url:a})]},this.set("data.avatar",I))};
_.eH.Object.defineProperties(kw.prototype,{container:{configurable:!0,enumerable:!0,get:function(){return _.PK(this.hostElement).querySelector("#button")}}});
kw.prototype.onTap=kw.prototype.onTap;_.L([_.Q(_.Hc.YtActionHandlerBehavior),_.p("design:type",Object)],kw.prototype,"ytActionHandlerBehavior",void 0);_.L([_.Q(_.k.YtRendererBehavior),_.p("design:type",Object)],kw.prototype,"ytRendererBehavior",void 0);_.L([_.Q(_.rI),_.p("design:type",Object)],kw.prototype,"ytdOpenPopupBehavior",void 0);_.L([_.Q(_.Nml.YtButtonBehavior),_.p("design:type",Object)],kw.prototype,"ytButtonBehavior",void 0);_.L([_.x(),_.p("design:type",Object)],kw.prototype,"data",void 0);
_.L([_.A3("yt-icon-button#button"),_.p("design:type",Object)],kw.prototype,"iconButton",void 0);_.L([_.gz("tap"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],kw.prototype,"onTap",null);_.L([_.U({is:"ytd-topbar-menu-button-renderer",disableElementRegistration:!0})],kw);
_.Cw()(kw,"ytd-topbar-menu-button-renderer",function(){if(XMe===void 0){var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-topbar-menu-button-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<template is="dom-if" if="[[data.avatar]]" class="style-scope ytd-topbar-menu-button-renderer">\n  <button id="avatar-btn" aria-haspopup="true" aria-label$="[[data.accessibility.accessibilityData.label]]" class="style-scope ytd-topbar-menu-button-renderer">\n    <yt-img-shadow height="32" thumbnail="[[data.avatar]]" width="32" class="style-scope ytd-topbar-menu-button-renderer"></yt-img-shadow>\n  </button>\n</template>\n<div id="button" class="style-scope ytd-topbar-menu-button-renderer">\n  \n</div>\n');a.content.insertBefore(_.w().content.cloneNode(!0),
a.content.firstChild);XMe=a}a=XMe;return a},{allowedProps:["data"],
mode:1});var Tte;var M9=function(){return _.G.apply(this,arguments)||this};
_.b(M9,_.G);M9.prototype.getSelected=function(){return this.reasons.selected};
_.L([_.Q(_.k.YtRendererBehavior),_.p("design:type",Object)],M9.prototype,"ytRendererBehavior",void 0);_.L([_.x(),_.p("design:type",Object)],M9.prototype,"data",void 0);_.L([_.A3("#reasons"),_.p("design:type",Object)],M9.prototype,"reasons",void 0);_.L([_.U({is:"ytd-ad-feedback-content",disableElementRegistration:!0})],M9);
_.D(M9,"ytd-ad-feedback-content",function(){if(Tte!==void 0)return Tte;var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-ad-feedback-content--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<template is="dom-if" if="[[data.reasonsTitle]]" class="style-scope ytd-ad-feedback-content">\n  <yt-formatted-string id="reasons-title" text="[[data.reasonsTitle]]" class="style-scope ytd-ad-feedback-content">\n  </yt-formatted-string>\n</template>\n<tp-yt-paper-radio-group id="reasons" class="style-scope ytd-ad-feedback-content">\n  <template is="dom-repeat" items="[[data.reasons]]" as="feedbackReason" class="style-scope ytd-ad-feedback-content">\n    <tp-yt-paper-radio-button name="[[index]]" class="style-scope ytd-ad-feedback-content">\n      <yt-formatted-string text="[[feedbackReason.reason]]" class="style-scope ytd-ad-feedback-content">\n      </yt-formatted-string>\n    </tp-yt-paper-radio-button>\n  </template>\n</tp-yt-paper-radio-group>\n');a.content.insertBefore(_.w().content.cloneNode(!0),
a.content.firstChild);return Tte=a},{mode:1});var dif;var cx=function(){return _.G.apply(this,arguments)||this};
_.b(cx,_.G);_.Z=cx.prototype;_.Z.onPopupOpened=function(){_.ZF(this.hostElement,"yt-mute-ad-action",["ytd-ad-feedback-renderer",this])};
_.Z.computeConfirmButton=function(a){return{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:a.confirmLabel}};
_.Z.computeCancelButton=function(a){return{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:a.cancelLabel}};
_.Z.onConfirmTap=function(){var a=this.content.getSelected();a!==void 0&&(a=this.data.reasons[a].endpoint)&&(_.ab().resolve(_.j6).resolveCommand(a,{form:{element:this.hostElement}}),_.ZF(this.hostElement,"yt-close-popup-action"),this.sendFeedbackSubmitToastAction())};
_.Z.sendFeedbackSubmitToastAction=function(){var a;(a=this.data)!=null&&a.completionMessage&&_.ZF(this.hostElement,"yt-open-popup-action",[_.aX(this.data.completionMessage),this])};
_.Z.onCancelTap=function(){_.ZF(this.hostElement,"yt-close-popup-action")};
cx.prototype.onPopupOpened=cx.prototype.onPopupOpened;_.L([_.Q(_.k.YtRendererBehavior),_.p("design:type",Object)],cx.prototype,"ytRendererBehavior",void 0);_.L([_.x(),_.p("design:type",Object)],cx.prototype,"data",void 0);_.L([_.A3("#content"),_.p("design:type",Object)],cx.prototype,"content",void 0);_.L([_.gz("yt-popup-opened"),_.p("design:type",Function),_.p("design:paramtypes",[CustomEvent]),_.p("design:returntype")],cx.prototype,"onPopupOpened",null);
_.L([_.U({is:"ytd-ad-feedback-renderer",disableElementRegistration:!0})],cx);
_.D(cx,"ytd-ad-feedback-renderer",function(){if(dif!==void 0)return dif;var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-ad-feedback-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-formatted-string id="title" text="[[data.title]]" class="style-scope ytd-ad-feedback-renderer"></yt-formatted-string>\n<ytd-ad-feedback-content id="content" data="[[data]]" class="style-scope ytd-ad-feedback-renderer"></ytd-ad-feedback-content>\n<div class="buttons style-scope ytd-ad-feedback-renderer">\n  <ytd-button-renderer data="[[computeCancelButton(data)]]" on-tap="onCancelTap" class="style-scope ytd-ad-feedback-renderer">\n  </ytd-button-renderer>\n  <ytd-button-renderer data="[[computeConfirmButton(data)]]" on-tap="onConfirmTap" class="style-scope ytd-ad-feedback-renderer">\n  </ytd-button-renderer>\n</div>\n');a.content.insertBefore(_.w().content.cloneNode(!0),
a.content.firstChild);return dif=a},{mode:1});var WcE;var Yw=function(){return _.G.apply(this,arguments)||this};
_.b(Yw,_.G);_.L([_.Q(_.k.YtRendererBehavior),_.p("design:type",Object)],Yw.prototype,"ytRendererBehavior",void 0);_.L([_.x(),_.p("design:type",Object)],Yw.prototype,"data",void 0);_.L([_.U({is:"ytd-ad-info-dialog-content",disableElementRegistration:!0})],Yw);
_.D(Yw,"ytd-ad-info-dialog-content",function(){if(WcE!==void 0)return WcE;var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-ad-info-dialog-content--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<template is="dom-if" if="[[data.adReasons]]" class="style-scope ytd-ad-info-dialog-content">\n  \n  <ul id="ad-reasons" class="style-scope ytd-ad-info-dialog-content">\n    <template is="dom-repeat" items="[[data.adReasons]]" as="reason" class="style-scope ytd-ad-info-dialog-content">\n      <li class="style-scope ytd-ad-info-dialog-content">\n        <yt-formatted-string text="[[reason]]" class="style-scope ytd-ad-info-dialog-content">\n        </yt-formatted-string>\n      </li>\n    </template>\n  </ul>\n</template>\n<yt-formatted-string id="message" split-lines="" text="[[data.dialogMessage]]" class="style-scope ytd-ad-info-dialog-content">\n</yt-formatted-string>\n');a.content.insertBefore(_.w().content.cloneNode(!0),
a.content.firstChild);return WcE=a},{mode:1});var oJf;var q9=function(){return _.G.apply(this,arguments)||this};
_.b(q9,_.G);q9.prototype.computeConfirmButton=function(a){return{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:a.confirmLabel}};
q9.prototype.onConfirmTap=function(){_.ZF(this.hostElement,"yt-close-popup-action",["ytd-ad-info-dialog-renderer"])};
q9.prototype.computeShouldShowTitle=function(){var a;return!((a=this.data)==null||!a.title)};
q9.prototype.onPopupClosed=function(){this.data&&this.data.confirmServiceEndpoint&&_.ab().resolve(_.j6).resolveCommand(this.data.confirmServiceEndpoint,{form:{element:this.hostElement}})};
q9.prototype.onPopupClosed=q9.prototype.onPopupClosed;_.L([_.Q(_.k.YtRendererBehavior),_.p("design:type",Object)],q9.prototype,"ytRendererBehavior",void 0);_.L([_.x(),_.p("design:type",Object)],q9.prototype,"data",void 0);_.L([_.gz("yt-popup-closed"),_.p("design:type",Function),_.p("design:paramtypes",[CustomEvent]),_.p("design:returntype")],q9.prototype,"onPopupClosed",null);_.L([_.U({is:"ytd-ad-info-dialog-renderer",disableElementRegistration:!0})],q9);
_.D(q9,"ytd-ad-info-dialog-renderer",function(){if(oJf!==void 0)return oJf;var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-ad-info-dialog-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<template is="dom-if" if="[[computeShouldShowTitle(data.title)]]" class="style-scope ytd-ad-info-dialog-renderer">\n  <h2 id="title" class="style-scope ytd-ad-info-dialog-renderer">[[getSimpleString(data.title)]]</h2>\n</template>\n<ytd-ad-info-dialog-content data="[[data]]" class="style-scope ytd-ad-info-dialog-renderer"></ytd-ad-info-dialog-content>\n<div class="buttons style-scope ytd-ad-info-dialog-renderer">\n  <ytd-button-renderer data="[[computeConfirmButton(data)]]" on-tap="onConfirmTap" class="style-scope ytd-ad-info-dialog-renderer">\n  </ytd-button-renderer>\n</div>\n');
a.content.insertBefore(_.w().content.cloneNode(!0),a.content.firstChild);return oJf=a},{mode:1});var UiG;var e1=function(){var a=_.G.apply(this,arguments)||this;a.actionButtonClass="action-button";a.dismissButtonId="dismiss-button";a.dialogDismiss=!0;return a};
_.b(e1,_.G);_.Z=e1.prototype;_.Z.computeInPlayer=function(a){return(a==null?void 0:a.displayType)==="ENFORCEMENT_MESSAGE_VIEW_MODEL_DISPLAY_TYPE_PLAYER"};
_.Z.computedLogo=function(){var a,z;return this.isDarkTheme()?(a=this.data)==null?void 0:a.logoDark:(z=this.data)==null?void 0:z.logo};
_.Z.computedHeaderImage=function(){var a,z;return this.isDarkTheme()?(a=this.data)==null?void 0:a.headerImageDark:(z=this.data)==null?void 0:z.headerImage};
_.Z.computeLogoIconId=function(){var a,z,I,J=(a=this.computedLogo())==null?void 0:(z=a.sources)==null?void 0:(I=z[0])==null?void 0:I.height;return J&&J%31===0?"logo-icon-with-padding":"logo-icon"};
_.Z.computeLogoIconHeight=function(){var a,z,I,J=(a=this.computedLogo())==null?void 0:(z=a.sources)==null?void 0:(I=z[0])==null?void 0:I.height;return J&&J%31===0?"31":"24"};
_.Z.onPopupClosed=function(){_.ab().resolve(_.Ky).dispose()};
_.Z.isDarkTheme=function(){return document.documentElement.hasAttribute("dark")||this.inPlayer};
_.Z.onShow=function(){this.inPlayer&&_.Av(6)};
_.Z.impressionLog=function(){if(this.data&&this.data.impressionEndpoints)for(var a=0;a<this.data.impressionEndpoints.length;a++){var z=_.H(this.data.impressionEndpoints[a],_.Wl);z&&this.ytComponentBehavior.resolveCommand(z)}};
_.Z.onDismissClicked=function(){getComputedStyle(this.dismissButton).getPropertyValue("pointer-events")!=="none"&&_.ZF(this.hostElement,"yt-close-popup-action",["ytd-enforcement-message-view-model"])};
_.eH.Object.defineProperties(e1.prototype,{hasHeaderImage:{configurable:!0,enumerable:!0,get:function(){var a,z;return!((a=this.data)==null||!a.headerImageDark)&&!((z=this.data)==null||!z.headerImage)}},
hasPremiumButton:{configurable:!0,enumerable:!0,get:function(){var a;return!((a=this.data)==null||!a.secondaryButton)}}});
e1.prototype.onPopupClosed=e1.prototype.onPopupClosed;_.L([_.Q(_.k.YtRendererBehavior),_.p("design:type",Object)],e1.prototype,"ytRendererBehavior",void 0);_.L([_.Q(_.Ms.YtComponentBehavior),_.p("design:type",Object)],e1.prototype,"ytComponentBehavior",void 0);_.L([_.Q(_.qs.YtVisibilityBehavior),_.p("design:type",Object)],e1.prototype,"ytVisibilityBehavior",void 0);_.L([_.x(),_.p("design:type",Object)],e1.prototype,"data",void 0);
_.L([_.x(),_.p("design:type",Object)],e1.prototype,"actionButtonClass",void 0);_.L([_.x(),_.p("design:type",Object)],e1.prototype,"dismissButtonId",void 0);_.L([_.x(),_.p("design:type",Object)],e1.prototype,"dialogDismiss",void 0);_.L([_.S("data"),_.p("design:type",Object),_.p("design:paramtypes",[])],e1.prototype,"hasHeaderImage",null);_.L([_.S("data"),_.p("design:type",Object),_.p("design:paramtypes",[])],e1.prototype,"hasPremiumButton",null);
_.L([_.x({reflectToAttribute:!0,computed:"computeInPlayer(data)"}),_.p("design:type",Boolean)],e1.prototype,"inPlayer",void 0);_.L([_.A3("#dismiss-button"),_.p("design:type",HTMLElement)],e1.prototype,"dismissButton",void 0);_.L([_.gz("yt-popup-closed"),_.p("design:type",Function),_.p("design:paramtypes",[CustomEvent]),_.p("design:returntype")],e1.prototype,"onPopupClosed",null);_.L([_.U({is:"ytd-enforcement-message-view-model",disableElementRegistration:!0})],e1);
_.D(e1,"ytd-enforcement-message-view-model",function(){if(UiG!==void 0)return UiG;var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-enforcement-message-view-model--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="container" class="style-scope ytd-enforcement-message-view-model">\n<div id="header" class="style-scope ytd-enforcement-message-view-model">\n  <yt-image data="[[computedLogo(data)]]" height$="[[computeLogoIconHeight()]]" id$="[[computeLogoIconId()]]" preserve-height="" class="style-scope ytd-enforcement-message-view-model">\n  </yt-image>\n  <yt-button-view-model id="[[dismissButtonId]]" data="[[data.dismissButton]]" icon="[[data.dismissButton.iconName]]" scoping-class-name="[[is]]" on-click="onDismissClicked" class="style-scope ytd-enforcement-message-view-model">\n  </yt-button-view-model>\n</div>\n\n<div id="header-image" hidden="[[!hasHeaderImage]]" class="style-scope ytd-enforcement-message-view-model">\n  <yt-image data="[[computedHeaderImage(data)]]" height="64" preserve-height="" class="style-scope ytd-enforcement-message-view-model">\n  </yt-image>\n</div>\n\n<div id="title" class="style-scope ytd-enforcement-message-view-model">\n  <yt-attributed-string data="[[data.title]]" class="style-scope ytd-enforcement-message-view-model"></yt-attributed-string>\n</div>\n\n<ul id="body" class="style-scope ytd-enforcement-message-view-model">\n  <template is="dom-repeat" items="[[data.bulletList.bulletListItems]]" as="item" class="style-scope ytd-enforcement-message-view-model">\n    <li class="style-scope ytd-enforcement-message-view-model">\n      <yt-attributed-string class="body-message style-scope ytd-enforcement-message-view-model" data="[[item.title]]"></yt-attributed-string>\n    </li>\n  </template>\n</ul>\n\n<div id="buttons" class="style-scope ytd-enforcement-message-view-model">\n  <yt-button-view-model classes="[[actionButtonClass]]" data="[[data.primaryButton]]" scoping-class-name="[[is]]" class="style-scope ytd-enforcement-message-view-model">\n  </yt-button-view-model>\n  <yt-button-view-model classes="[[actionButtonClass]]" data="[[data.secondaryButton]]" dialog-dismiss="[[dialogDismiss]]" hidden$="[[!hasPremiumButton]]" scoping-class-name="[[is]]" class="style-scope ytd-enforcement-message-view-model">\n  </yt-button-view-model>\n</div>\n\n<div id="divider" class="style-scope ytd-enforcement-message-view-model"></div>\n\n<div id="feedback" class="style-scope ytd-enforcement-message-view-model">\n  <yt-attributed-string id="feedback-message" data="[[data.feedbackMessage]]" class="style-scope ytd-enforcement-message-view-model">\n  </yt-attributed-string>\n</div>\n</div>');
a.content.insertBefore(_.w().content.cloneNode(!0),a.content.firstChild);return UiG=a},{mode:1});var Di0;var RHe;var ar=function(){var a=_.G.apply(this,arguments)||this;a.TEST_ONLY={immediateValidation:function(){a.immediateValidation()},
onValidationResponse:function(z){a.onValidationResponse(z)},
onGenerateHandleFromNameResponse:function(z){a.onGenerateHandleFromNameResponse(z)}};
return a};
_.b(ar,_.G);_.Z=ar.prototype;_.Z.onValueChanged=function(){this.hostElement.dispatchEvent(new CustomEvent("value-changed",{detail:{value:this.value,queueProperty:!0}}))};
_.Z.validate=function(){this.immediateValidation()};
_.Z.applyHandleEdit=function(){this.handleEdit!==void 0&&this.setHandleInputValue(this.handleEdit)};
_.Z.setHandleInputValue=function(a){this.handleDir=this.getHandleDir(a);this.handleInput.value=a;this.validationState={status:"PENDING"};this.immediateValidation()};
_.Z.getHandleDir=function(a){var z=a===""&&!1;return(z=_.ivj.test.call(_.ivj,a))?"rtl":"ltr"};
_.Z.onDataChanged=function(){var a,z;this.handleDir=this.getHandleDir((z=(a=this.data)==null?void 0:a.handle)!=null?z:"");var I;this.validationState=((I=this.data)==null?0:I.handle)?{status:"UNKNOWN",handle:this.data.handle}:void 0;var J;((J=this.data)==null?0:J.validateOnInit)&&this.immediateValidation()};
_.Z.stopPropagation=function(a){a.stopPropagation()};
_.Z.onInput=function(){var a;this.handleDir=this.getHandleDir((a=this.handleInput.value)!=null?a:"");this.wasEdited=!0;this.validationState={status:"PENDING"};this.delayedValidation()};
_.Z.onFocusout=function(a){this.handleInput.contains(a.relatedTarget)||this.validationState!==void 0&&this.validationState.status!=="PENDING"||this.immediateValidation()};
_.Z.delayedValidation=function(){var a,z;this.debouncedValidation((z=(a=this.data)==null?void 0:a.validationDelayMs)!=null?z:1E3)};
_.Z.immediateValidation=function(){this.debouncedValidation(0)};
_.Z.debouncedValidation=function(a){var z=this;_.pM(this,"debouncedValidation",function(){var I,J=z.staticValidation((I=z.handleInput.value)!=null?I:"");if(J!==void 0)z.validationState={status:"INVALID",errorIndicator:"BORDER",errorMessage:J};else{var r;if((r=z.data)!=null&&r.validateChannelHandleCommand){z.validationState={status:"LOADING"};var P;z.ytComponentBehavior.resolveCommand(z.data.validateChannelHandleCommand,{form:{handle:(P=z.handleInput.value)!=null?P:""},commandController:{onSuccess:function(N,
u){z.onValidationResponse(u)},
onServerError:function(N,u){z.onValidationServerError(u)}}})}else z.handleUnexpectedValidationError(new _.Fn("Missing validateChannelHandleCommand in ChannelHandleInputRenderer.",z.data))}},a)};
_.Z.staticValidation=function(a){var z;if(((z=this.data)==null?void 0:z.channelHandleStaticValidationParams)!==void 0){z=this.data.channelHandleStaticValidationParams;if(this.validValueRegexp!==void 0&&!this.validValueRegexp.test(a)&&z.validValueRegexpErrorMessage!==void 0)return z.validValueRegexpErrorMessage;if(z.minLength!==void 0&&a.length<z.minLength&&z.minLengthErrorMessage!==void 0)return z.minLengthErrorMessage;if(z.maxLength!==void 0&&a.length>z.maxLength&&z.maxLengthErrorMessage!==void 0)return z.maxLengthErrorMessage}};
_.Z.onValidationResponse=function(a){var z=_.H(a.result,GcZ);z===void 0?this.handleUnexpectedValidationError(new _.Fn("ValidateChannelHandleResponse does not contain ChannelHandleValidationResultRenderer.",a)):this.handleValidationResultRenderer(z)};
_.Z.onValidationServerError=function(a){this.handleUnexpectedValidationError(new _.Fn("ValidateChannelHandle request failed.",a))};
_.Z.handleValidationResultRenderer=function(a){if(a.handle===void 0)this.handleUnexpectedValidationError(new _.Fn("ChannelHandleValidationResultRenderer does not contain handle.",a));else if(a.handle===this.handleInput.value)switch(a.result){case "CHANNEL_HANDLE_VALIDATION_RESULT_OK":this.validationState={status:"OK",handle:a.handle};break;case "CHANNEL_HANDLE_VALIDATION_RESULT_UNAVAILABLE":case "CHANNEL_HANDLE_VALIDATION_RESULT_CONFORMANCE_ERROR":case "CHANNEL_HANDLE_VALIDATION_RESULT_COMPLIANCE_ERROR":this.validationState=
{status:"INVALID",errorIndicator:"ICON",errorMessage:a.errorMessage};break;case "CHANNEL_HANDLE_VALIDATION_RESULT_UNKNOWN":case void 0:this.handleUnexpectedValidationError(new _.Fn("Unrecognized ChannelHandleValidationResult",a));break;default:_.Rw(a.result)}};
_.Z.handleUnexpectedValidationError=function(a){var z;this.validationState={status:"UNKNOWN",handle:(z=this.handleInput.value)!=null?z:""};_.Xd(a)};
_.Z.stopEventPropagation=function(a){a.stopPropagation()};
_.Z.updateHandleOnChannelNameInputChange=function(a){if(!this.wasEdited){var z,I;this.debouncedGenerateHandleFromName(a,(I=(z=this.data)==null?void 0:z.validationDelayMs)!=null?I:1E3)}};
_.Z.debouncedGenerateHandleFromName=function(a,z){var I=this;_.pM(this,"debouncedGenerateHandleFromName",function(){var J;(J=I.data)!=null&&J.validateChannelHandleCommand?I.ytComponentBehavior.resolveCommand(I.data.validateChannelHandleCommand,{form:{name:a},commandController:{onSuccess:function(r,P){I.onGenerateHandleFromNameResponse(P)},
onServerError:function(r,P){_.Xd(new _.Fn("Error calling GenerateHandleFromName",P))}}}):_.Xd(new _.Fn("Missing validateChannelHandleCommand in ChannelHandleInputRenderer when generate handle from name.",I.data))},z)};
_.Z.onGenerateHandleFromNameResponse=function(a){this.wasEdited||((a=_.H(a.result,$sZ))?this.setHandleInputValue(a.handle):_.Xd(new _.Fn("Invalid results when generate handle from name")))};
_.eH.Object.defineProperties(ar.prototype,{value:{configurable:!0,enumerable:!0,get:function(){var a;if(a=this.validationState)a=this.validationState,a=a.status==="OK"||a.status==="UNKNOWN";if(a)return this.validationState.handle}},
errorIndicator:{configurable:!0,enumerable:!0,get:function(){var a;if(((a=this.validationState)==null?void 0:a.status)==="INVALID")return this.validationState.errorIndicator}},
borderErrorIndicator:{configurable:!0,enumerable:!0,get:function(){return this.errorIndicator==="BORDER"}},
handleEdit:{configurable:!0,enumerable:!0,get:function(){var a,z=(a=this.channelHandleEntity)==null?void 0:a.handleEdit;this.handleDir=this.getHandleDir(z!=null?z:"");return z}},
validValueRegexp:{configurable:!0,enumerable:!0,get:function(){var a,z;if(((a=this.data)==null?void 0:(z=a.channelHandleStaticValidationParams)==null?void 0:z.validValueRegexp)!==void 0)return new RegExp("^"+this.data.channelHandleStaticValidationParams.validValueRegexp+"$")}}});
ar.prototype.stopEventPropagation=ar.prototype.stopEventPropagation;ar.prototype.onDataChanged=ar.prototype.onDataChanged;ar.prototype.applyHandleEdit=ar.prototype.applyHandleEdit;ar.prototype.onValueChanged=ar.prototype.onValueChanged;_.L([_.Q(_.Ms.YtComponentBehavior),_.p("design:type",Object)],ar.prototype,"ytComponentBehavior",void 0);_.L([_.Q(_.pV),_.p("design:type",Object)],ar.prototype,"ytdReduxBehavior",void 0);_.L([_.x(),_.p("design:type",Object)],ar.prototype,"data",void 0);
_.L([_.x(),_.p("design:type",Boolean)],ar.prototype,"wasEdited",void 0);_.L([_.x({reflectToAttribute:!0}),_.p("design:type",String)],ar.prototype,"handleDir",void 0);_.L([_.A3("#handle-input"),_.p("design:type",Object)],ar.prototype,"handleInput",void 0);_.L([_.x(),_.S("validationState"),_.p("design:type",Object),_.p("design:paramtypes",[])],ar.prototype,"value",null);
_.L([_.O8("value"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],ar.prototype,"onValueChanged",null);_.L([_.S("validationState"),_.p("design:type",Object),_.p("design:paramtypes",[])],ar.prototype,"errorIndicator",null);_.L([_.x({reflectToAttribute:!0}),_.S("errorIndicator"),_.p("design:type",Boolean),_.p("design:paramtypes",[])],ar.prototype,"borderErrorIndicator",null);
_.L([_.x({selectorArgs:["data.channelHandleEntityKey"],selector:function(a,z){return _.Bd(a.entities,"channelHandle",z)}}),
_.p("design:type",Object)],ar.prototype,"channelHandleEntity",void 0);_.L([_.S("channelHandleEntity"),_.p("design:type",Object),_.p("design:paramtypes",[])],ar.prototype,"handleEdit",null);_.L([_.O8("handleEdit"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],ar.prototype,"applyHandleEdit",null);_.L([_.O8("data"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],ar.prototype,"onDataChanged",null);
_.L([_.S("data.channelHandleStaticValidationParams.validValueRegexp"),_.p("design:type",Object),_.p("design:paramtypes",[])],ar.prototype,"validValueRegexp",null);_.L([_.gz("yt-service-request-sent"),_.gz("yt-service-request-completed"),_.gz("yt-service-request-error"),_.p("design:type",Function),_.p("design:paramtypes",[Event]),_.p("design:returntype")],ar.prototype,"stopEventPropagation",null);_.L([_.U({is:"ytd-channel-handle-input-renderer",disableElementRegistration:!0})],ar);
_.D(ar,"ytd-channel-handle-input-renderer",function(){if(RHe!==void 0)return RHe;var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-channel-handle-input-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<tp-yt-paper-input id="handle-input" always-float-label="" dir="[[handleDir]]" input-dir="[[handleDir]]" invalid="[[equals(errorIndicator, \'BORDER\')]]" label="[[data.label]]" required="" use-v2-underline="" value="[[data.handle]]" on-focusout="onFocusout" on-input="onInput" on-keydown="stopPropagation" class="style-scope ytd-channel-handle-input-renderer">\n  <span id="prefix" slot="prefix" class="style-scope ytd-channel-handle-input-renderer">@</span>\n  <div id="suffix-container" slot="suffix" class="style-scope ytd-channel-handle-input-renderer">\n    <div id="icon-container" class="style-scope ytd-channel-handle-input-renderer">\n      <template is="dom-if" restamp="" if="[[equals(validationState.status, \'LOADING\')]]" class="style-scope ytd-channel-handle-input-renderer">\n        <tp-yt-paper-spinner-lite id="spinner" active="" class="style-scope ytd-channel-handle-input-renderer">\n        </tp-yt-paper-spinner-lite>\n      </template>\n      <template is="dom-if" restamp="" if="[[equals(errorIndicator, \'ICON\')]]" class="style-scope ytd-channel-handle-input-renderer">\n        <tp-yt-iron-icon id="error-icon" class="end-icon style-scope ytd-channel-handle-input-renderer" icon="icons:error">\n        </tp-yt-iron-icon>\n      </template>\n      <template is="dom-if" restamp="" if="[[equals(validationState.status, \'OK\')]]" class="style-scope ytd-channel-handle-input-renderer">\n        <tp-yt-iron-icon id="valid-icon" class="end-icon style-scope ytd-channel-handle-input-renderer" icon="icons:check-circle">\n        </tp-yt-iron-icon>\n      </template>\n    </div>\n  </div>\n</tp-yt-paper-input>\n<div id="error-container" class="style-scope ytd-channel-handle-input-renderer">\n  <template is="dom-if" restamp="" if="[[equals(validationState.status, \'INVALID\')]]" class="style-scope ytd-channel-handle-input-renderer">\n    <yt-formatted-string id="error-message" text="[[validationState.errorMessage]]" class="style-scope ytd-channel-handle-input-renderer">\n    </yt-formatted-string>\n  </template>\n</div>\n');
a.content.insertBefore(_.w().content.cloneNode(!0),a.content.firstChild);return RHe=a},{mode:_.Np("kevlar_poly_si_batch_j025")?1:2});var jS=function(){var a=_.G.apply(this,arguments)||this;a.data=null;a.errorMessage=null;a.isLoading=!0;a.hideContainer=!1;a.enableNewChannelCreationOnIdForAll=_.K("enable_new_channel_creation_for_id4all");a.actionMap={"yt-image-updated-action":"handleImageUpdatedAction","yt-image-selection-error-action":"handleImageSelectionErrorAction","yt-image-selection-reset-error-action":"handleImageSelectionResetErrorAction","yt-show-caller-popup-action":"showContainer"};a.testOnly={setErrorMessage:function(z){a.resetErrorState();
a.setErrorState(z)}};
return a};
_.b(jS,_.G);_.Z=jS.prototype;_.Z.created=function(){this.logScreenVe()};
_.Z.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")};
_.Z.dataChanged=function(){this.set("isLoading",!1);this.graftServerVe();this.set("errorMessage",null);var a;((a=this.zeroStepErrorMessageEntity)==null?0:a.value)&&this.set("errorMessage",_.Mo(this.zeroStepErrorMessageEntity.value))};
_.Z.onCreateTap=function(){var a=this;if(this.data&&this.data.channelCreationEndpoint){var z,I;if(!((z=this.data.createChannelButton)==null?0:(I=z.buttonRenderer)==null?0:I.isDisabled)){var J;if((J=this.nameInput)!=null&&J.value){this.setLoadingState();var r,P;z=Object.assign({},{name:this.nameInput.value},this.encryptedBlobId?{encryptedBlobId:this.encryptedBlobId}:{avatar_url:this.userSetPhotoThumbnailUrl},{handle:(r=this.handleInput)==null?void 0:r.value,isNameChanged:this.isNameChanged(this.nameInput.value),
isHandleChanged:this.isHandleChanged((P=this.handleInput)==null?void 0:P.value),isDefaultProfilePhoto:this.data.isDefaultProfilePhoto,obakeImageSource:this.obakeImageSource,enableIdentityForAllChannelCreationDialog:this.enableIdentityForAllChannelCreationDialog});this.ytComponentBehavior.resolveCommand(this.data.channelCreationEndpoint,{form:z,commandController:{onSuccess:function(N,u){a.onChannelCreationEndpointSuccess(u);a.obakeImageSource&&_.x0("channelCreatedWithObakeImage",{imageSourceType:a.obakeImageSource})},
onServerError:function(){a.onChannelCreationEndpointError()}}});
this.maybeWipeZeroStepErrorMessage()}}}};
_.Z.endpointRequiresServiceRequestAction=function(a){return!!_.H(a,_.GO)||!!_.H(a,voV)};
_.Z.isNavigateAction=function(a){var z;return!!_.H(a,_.Cr)||!!_.H((z=_.H(a,dsV))==null?void 0:z.command,_.Cr)};
_.Z.isPlaylistAction=function(a){return!!_.H(a,_.D5)||!!_.H(a,_.mS)};
_.Z.onChannelCreationEndpointSuccess=function(a){if(a.createChannelError){var z;this.setErrorState((z=a.createChannelError)==null?void 0:z.errorMessage);this.handleInput&&this.handleInput.validate()}else{_.K("enable_secondary_channel_creation_form")&&a.navigationEndpoint&&this.ytComponentBehavior.resolveCommand(a.navigationEndpoint);if(a.actions){z=_.C(a.actions);for(var I=z.next();!I.done;I=z.next())if(I=I.value,this.endpointRequiresServiceRequestAction(I)&&this.ytComponentBehavior.resolveCommand(I),
this.isNavigateAction(I)){var J=void 0;I=_.H((J=_.H(I,dsV))==null?void 0:J.command,_.Cr);J=void 0;this.isPlaylistAction((J=I)==null?void 0:J.endpoint)&&(_.ZF(this.hostElement,"yt-close-popup-action",["ytd-channel-creation-dialog-renderer"]),J=void 0,this.ytComponentBehavior.resolveCommand((J=I)==null?void 0:J.endpoint))}}a.actions&&a.actions.some(function(r){var P;return _.H(r,_.Cr)||_.H((P=_.H(r,dsV))==null?void 0:P.command,_.Cr)})||_.ZF(this.hostElement,"yt-close-popup-action",["ytd-channel-creation-dialog-renderer"])}};
_.Z.onChannelCreationEndpointError=function(){this.setErrorState();this.handleInput&&this.handleInput.validate()};
_.Z.onCancelTap=function(){var a,z,I;if(!((a=this.data)==null?0:(z=a.cancelButton)==null?0:(I=z.buttonRenderer)==null?0:I.isDisabled)){var J,r,P;a=(J=this.data)==null?void 0:(r=J.cancelButton)==null?void 0:(P=r.buttonRenderer)==null?void 0:P.command;if(!a||!_.H(a,_.QId)){var N;this.nameInput&&((N=this.data)==null?0:N.name)&&(this.nameInput.value=this.data.name);var u;this.handleInput&&((u=this.data)==null?0:u.channelHandleInput)&&(this.handleInput.data=_.H(this.data.channelHandleInput,Xwf));this.encryptedBlobId=
this.previewDataUrl=void 0;this.maybeWipeZeroStepErrorMessage()}}};
_.Z.toggleCreateChannelButton=function(){this.set("data.createChannelButton.buttonRenderer.isDisabled",!this.nameInput.value||this.handleInput&&this.handleInput.value===void 0)};
_.Z.onChannelNameInput=function(){this.toggleCreateChannelButton();this.handleInput&&this.nameInput.value&&this.handleInput.updateHandleOnChannelNameInputChange(this.nameInput.value)};
_.Z.onClearProfilePhotoTap=function(){var a,z,I;((a=this.data)==null?0:(z=a.clearProfilePhotoButton)==null?0:(I=z.buttonRenderer)==null?0:I.isDisabled)||(this.set("data.isDefaultProfilePhoto",!0),this.set("data.clearProfilePhotoButton.buttonRenderer.isDisabled",!0))};
_.Z.onEditAvatarTap=function(){var a,z,I;((a=this.data)==null?0:(z=a.editAvatarButton)==null?0:(I=z.buttonRenderer)==null?0:I.isDisabled)||(this.hideContainer=!0,this.openProfilePicturePicker())};
_.Z.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)};
_.Z.resetErrorState=function(){this.set("data.createChannelButton.buttonRenderer.isDisabled",!1);this.set("data.cancelButton.buttonRenderer.isDisabled",!1);var a;this.set("data.clearProfilePhotoButton.buttonRenderer.isDisabled",((a=this.data)==null?0:a.isDefaultProfilePhoto)?!0:!1);this.set("isLoading",!1);this.set("errorMessage",null)};
_.Z.setErrorState=function(a){this.resetErrorState();if(a)this.set("errorMessage",a);else{var z;if((z=this.zeroStepErrorMessageEntity)==null?0:z.value)this.set("errorMessage",_.Mo(this.zeroStepErrorMessageEntity.value));else{var I;((I=this.data)==null?0:I.errorMessage)?this.set("errorMessage",this.data.errorMessage):this.set("errorMessage",null)}}};
_.Z.fetchImageBlobWithAlr=function(a,z){z=z===void 0?5:z;var I=this,J,r,P,N,u;return _.t(function(E){switch(E.nextAddress){case 1:return E.yield(fetch(a,{method:"GET",mode:"cors"}),2);case 2:J=E.yieldResult;if(J.ok){E.jumpTo(3);break}if(z===0)throw Error();r=I.addJitter(Math.pow(2,5-z));return E.yield(new Promise(function(O){setTimeout(O,r*1E3)}),4);
case 4:return E.return(I.fetchImageBlobWithAlr(a,z-1));case 3:if(!J.headers.get("content-type").split(";").some(function(O){return O.trim()==="text/plain"})){E.jumpTo(5);
break}P=I;N=P.fetchImageBlobWithAlr;return E.yield(J.text(),6);case 6:return E.return(N.call(P,E.yieldResult,z-1));case 5:return E.yield(J.blob(),7);case 7:return u=E.yieldResult,E.return(u)}})};
_.Z.addJitter=function(a){var z=a*.3*Math.random();Math.random()>.5&&(z*=-1);return a+z};
_.Z.openProfilePicturePicker=function(){var a=this,z,I,J,r,P;return _.t(function(N){if(N.nextAddress==1){z=a.data.scottyUploadUrl;if(!z)return N.return();I=document.documentElement.hasAttribute("dark");J=document.body.style.colorScheme;I&&(document.body.style.colorScheme="dark");r=UkE(Dk4(oTV(vT4(I?"dark":"light")),function(u){var E,O,f,A,n;return _.t(function(F){if(F.nextAddress==1)return E=_.px(ze0(new lC(u.photoUrl,!1)).build(),"alr","yes"),a.obakeImageSource=a.pictureChangeSourceToObakeImageSourceType(u.photoSource),
_.BP(F,2),a.setLoadingState(),F.yield(a.fetchImageBlobWithAlr(E),4);if(F.nextAddress!=2)return O=F.yieldResult,f=new FileReader,f.addEventListener("load",function(){var h,v,d,W,l,q;return _.t(function(m){if(m.nextAddress==1){if(O.size>15728640)return a.setErrorState((h=a.data)==null?void 0:h.imageSizeErrorMessage),_.Xd(Error("nl")),m.return();if(!f.result)return a.setErrorState((v=a.data)==null?void 0:v.genericImageLoadErrorMessage),_.Xd(Error("ol")),m.return();d=f.result;_.BP(m,2);return m.yield(CN0(O,
z),4)}if(m.nextAddress!=2)return W=m.yieldResult,a.handleImageUpdatedAction(d,W),a.resetErrorState(),_.p1(m,0);l=_.sk(m);a.setErrorState((q=a.data)==null?void 0:q.uploadErrorMessage);if(l instanceof Error)_.Gx(l);else{var M=new _.Fn(JSON.stringify(l));_.Gx(M)}_.nu(m)})}),f.readAsDataURL(O),_.p1(F,0);
A=_.sk(F);a.setErrorState((n=a.data)==null?void 0:n.genericImageLoadErrorMessage);A instanceof Error?_.Gx(A):_.$0(new _.Fn(JSON.stringify(A)));_.nu(F)})}),function(){a.hideContainer=!1;
document.body.style.colorScheme=J});
_.BP(N,2);return N.yield(r.openPicker(),4)}if(N.nextAddress!=2)return _.p1(N,0);_.sk(N);a.setErrorState((P=a.data)==null?void 0:P.selectImageErrorMessage);_.nu(N)})};
_.Z.pictureChangeSourceToObakeImageSourceType=function(a){switch(a){case 1:return 1;case 2:return 2;case 3:return 3;case 4:return 4;default:return 0}};
_.Z.logScreenVe=function(){_.fJ(_.Kw(),124448)};
_.Z.graftServerVe=function(){var a=_.XZ(),z,I,J=(z=this.data)==null?void 0:(I=z.loggingDirectives)==null?void 0:I.trackingParams;J&&a&&(this.channelCreationFormVe=_.Kw().graftServerVe(J,a),a={visualElement:this.channelCreationFormVe},_.sg().reportShown(a))};
_.Z.isNameChanged=function(a){var z;return((z=this.data)==null?void 0:z.name)!==a};
_.Z.isHandleChanged=function(a){var z,I=_.H((z=this.data)==null?void 0:z.channelHandleInput,Xwf);return I&&a?I.handle!==a:!1};
_.Z.handleImageUpdatedAction=function(a,z){this.hideContainer=!1;this.previewDataUrl=a;this.encryptedBlobId=z};
_.Z.handleImageSelectionErrorAction=function(a){this.hideContainer=!1;this.setErrorState(a)};
_.Z.handleImageSelectionResetErrorAction=function(){this.hideContainer=!1;this.resetErrorState()};
_.Z.showContainer=function(){this.hideContainer=!1};
_.Z.maybeWipeZeroStepErrorMessage=function(){var a,z=(a=this.data)==null?void 0:a.zeroStepErrorMessageEntityKey,I;z&&((I=this.zeroStepErrorMessageEntity)==null?0:I.value)&&this.ytdReduxBehavior.dispatch(_.Q0("stringEntity",z,{key:z,value:""}))};
_.eH.Object.defineProperties(jS.prototype,{photoThumbnail:{configurable:!0,enumerable:!0,get:function(){if(this.previewDataUrl)return{thumbnails:[{url:this.previewDataUrl,width:180,height:180}]};if(this.data)return this.data.isDefaultProfilePhoto?this.data.defaultProfilePhoto:this.data.profilePhoto}},
userSetPhotoThumbnailUrl:{configurable:!0,enumerable:!0,get:function(){if(this.data&&!this.data.isDefaultProfilePhoto){var a;return((a=this.photoThumbnail)==null?0:a.thumbnails)&&this.photoThumbnail.thumbnails.length>0?this.photoThumbnail.thumbnails[0].url:void 0}}},
hideProfilePhotoButtonLayer:{configurable:!0,enumerable:!0,get:function(){return this.data?!(this.data.clearProfilePhotoButton||this.data.editAvatarButton):!0}},
enableIdentityForAllChannelCreationDialog:{configurable:!0,enumerable:!0,get:function(){var a;return!((a=this.data)==null||!a.descriptionInfo)}},
description:{configurable:!0,enumerable:!0,get:function(){var a;return(a=this.data)==null?void 0:a.descriptionInfo}}});
jS.prototype.dataChanged=jS.prototype.dataChanged;_.L([_.Q(_.Ms.YtComponentBehavior),_.p("design:type",Object)],jS.prototype,"ytComponentBehavior",void 0);_.L([_.Q(_.Hc.YtActionHandlerBehavior),_.p("design:type",Object)],jS.prototype,"ytActionHandlerBehavior",void 0);_.L([_.Q(_.pV),_.p("design:type",Object)],jS.prototype,"ytdReduxBehavior",void 0);_.L([_.x(),_.p("design:type",Object)],jS.prototype,"data",void 0);_.L([_.x(),_.p("design:type",Object)],jS.prototype,"errorMessage",void 0);
_.L([_.x(),_.p("design:type",Object)],jS.prototype,"isLoading",void 0);_.L([_.x(),_.p("design:type",String)],jS.prototype,"previewDataUrl",void 0);_.L([_.x(),_.p("design:type",Number)],jS.prototype,"obakeImageSource",void 0);_.L([_.x(),_.p("design:type",Object)],jS.prototype,"hideContainer",void 0);_.L([_.A3("#title-input"),_.p("design:type",Object)],jS.prototype,"nameInput",void 0);_.L([_.A3("#handle-input"),_.p("design:type",Object)],jS.prototype,"handleInput",void 0);
_.L([_.x(),_.p("design:type",Boolean)],jS.prototype,"enableNewChannelCreationOnIdForAll",void 0);_.L([_.x({selectorArgs:["data.zeroStepErrorMessageEntityKey"],selector:_.Dt}),_.p("design:type",Object)],jS.prototype,"zeroStepErrorMessageEntity",void 0);_.L([_.S("data","data.isDefaultProfilePhoto","previewDataUrl"),_.p("design:type",Object),_.p("design:paramtypes",[])],jS.prototype,"photoThumbnail",null);
_.L([_.S("data","data.isDefaultProfilePhoto","photoThumbnail"),_.p("design:type",Object),_.p("design:paramtypes",[])],jS.prototype,"userSetPhotoThumbnailUrl",null);_.L([_.S("data"),_.p("design:type",Boolean),_.p("design:paramtypes",[])],jS.prototype,"hideProfilePhotoButtonLayer",null);_.L([_.x({reflectToAttribute:!0}),_.S("data"),_.p("design:type",Boolean),_.p("design:paramtypes",[])],jS.prototype,"enableIdentityForAllChannelCreationDialog",null);
_.L([_.Fe("data","zeroStepErrorMessageEntity"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],jS.prototype,"dataChanged",null);_.L([_.x({reflectToAttribute:!0}),_.S("data.descriptionInfo","zeroStepErrorMessageEntity"),_.p("design:type",Object),_.p("design:paramtypes",[])],jS.prototype,"description",null);_.L([_.U({is:"ytd-channel-creation-dialog-renderer",disableElementRegistration:!0})],jS);
_.D(jS,"ytd-channel-creation-dialog-renderer",function(){if(Di0!==void 0)return Di0;var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-channel-creation-dialog-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="container style-scope ytd-channel-creation-dialog-renderer" hidden$="[[hideContainer]]">\n  <div class="popup-header style-scope ytd-channel-creation-dialog-renderer">\n    <yt-formatted-string id="title" class="popup-header-title style-scope ytd-channel-creation-dialog-renderer" text="[[data.title]]">\n    </yt-formatted-string>\n  </div>\n  <div class="channel-creation-description style-scope ytd-channel-creation-dialog-renderer" hidden="[[!enableNewChannelCreationOnIdForAll]]">\n    <yt-formatted-string id="description-info" hidden="[[!description]]" text="[[description]]" class="style-scope ytd-channel-creation-dialog-renderer">\n    </yt-formatted-string>\n  </div>\n  <div class="profile-picture-container style-scope ytd-channel-creation-dialog-renderer">\n    <div class="profile-picture style-scope ytd-channel-creation-dialog-renderer">\n      <yt-img-shadow class="profile-photo style-scope ytd-channel-creation-dialog-renderer" height="128" thumbnail="[[photoThumbnail]]" width="128">\n      </yt-img-shadow>\n    </div>\n  </div>\n  <div class="profile-photo-button-layer style-scope ytd-channel-creation-dialog-renderer" hidden="[[hideProfilePhotoButtonLayer]]">\n    <div class="profile-photo-button-container style-scope ytd-channel-creation-dialog-renderer">\n      <ytd-button-renderer data="[[data.clearProfilePhotoButton.buttonRenderer]]" on-click="onClearProfilePhotoTap" class="style-scope ytd-channel-creation-dialog-renderer">\n      </ytd-button-renderer>\n      <ytd-button-renderer data="[[data.editAvatarButton.buttonRenderer]]" hidden="[[!data.editAvatarButton]]" on-click="onEditAvatarTap" class="style-scope ytd-channel-creation-dialog-renderer">\n      </ytd-button-renderer>\n    </div>\n    <yt-formatted-string class="optional-tag style-scope ytd-channel-creation-dialog-renderer" hidden="[[!data.profilePhotoOptionalTag]]" text="[[data.profilePhotoOptionalTag]]">\n    </yt-formatted-string>\n  </div>\n  <div class="name-and-disclaimer-container style-scope ytd-channel-creation-dialog-renderer">\n    <div class="profile-name style-scope ytd-channel-creation-dialog-renderer" hidden="[[!data.isNameEditable]]">\n      <tp-yt-paper-input id="title-input" class="input style-scope ytd-channel-creation-dialog-renderer" label="[[data.nameLabel]]" maxlength="50" required="" use-v2-underline="" value="[[data.name]]" on-input="onChannelNameInput"></tp-yt-paper-input>\n      <template is="dom-if" restamp="" if="[[data.channelHandleInput]]" on-dom-change="toggleCreateChannelButton" class="style-scope ytd-channel-creation-dialog-renderer">\n        <ytd-channel-handle-input-renderer id="handle-input" data="[[data.channelHandleInput.channelHandleInputRenderer]]" on-value-changed="toggleCreateChannelButton" class="style-scope ytd-channel-creation-dialog-renderer">\n        </ytd-channel-handle-input-renderer>\n      </template>\n    </div>\n    <div class="readonly-profile-name style-scope ytd-channel-creation-dialog-renderer" hidden="[[data.isNameEditable]]">\n      [[data.name]]\n    </div>\n    <div class="error-container style-scope ytd-channel-creation-dialog-renderer" hidden="[[!errorMessage]]">\n      <yt-formatted-string class="error style-scope ytd-channel-creation-dialog-renderer" text="[[errorMessage]]"></yt-formatted-string>\n    </div>\n    <div class="disclaimer-layer style-scope ytd-channel-creation-dialog-renderer" hidden="[[!data.additionalInfos]]">\n      <div class="disclaimer-layer-paragraphs-container style-scope ytd-channel-creation-dialog-renderer">\n        <template is="dom-repeat" items="[[data.additionalInfos]]" class="style-scope ytd-channel-creation-dialog-renderer">\n          <yt-formatted-string respect-html-dir="" text="[[item]]" class="style-scope ytd-channel-creation-dialog-renderer"></yt-formatted-string>\n        </template>\n      </div>\n    </div>\n    <div class="disclaimer-layer style-scope ytd-channel-creation-dialog-renderer" hidden="[[!data.disclaimer]]">\n      <div class="style-scope ytd-channel-creation-dialog-renderer">\n        <yt-formatted-string class="warm-welcome-disclaimer style-scope ytd-channel-creation-dialog-renderer" respect-html-dir="" text="[[data.disclaimer]]">\n        </yt-formatted-string>\n      </div>\n    </div>\n    <div hidden="[[!data.infos]]" class="style-scope ytd-channel-creation-dialog-renderer">\n      <template is="dom-repeat" items="[[data.infos]]" class="style-scope ytd-channel-creation-dialog-renderer">\n        <div class="disclaimer-layer disclaimer-layer-no-icon style-scope ytd-channel-creation-dialog-renderer">\n          <yt-formatted-string respect-html-dir="" text="[[item]]" class="style-scope ytd-channel-creation-dialog-renderer"></yt-formatted-string>\n        </div>\n      </template>\n    </div>\n  </div>\n  <div class="button-layer style-scope ytd-channel-creation-dialog-renderer">\n    <ytd-button-renderer id="cancel-button" data="[[data.cancelButton.buttonRenderer]]" on-click="onCancelTap" class="style-scope ytd-channel-creation-dialog-renderer">\n    </ytd-button-renderer>\n    <ytd-button-renderer id="create-channel-button" data="[[data.createChannelButton.buttonRenderer]]" on-click="onCreateTap" class="style-scope ytd-channel-creation-dialog-renderer">\n    </ytd-button-renderer>\n  </div>\n  <div class="spinner-container style-scope ytd-channel-creation-dialog-renderer" hidden="[[!isLoading]]">\n    <tp-yt-paper-spinner-lite active="[[isLoading]]" class="style-scope ytd-channel-creation-dialog-renderer"></tp-yt-paper-spinner-lite>\n  </div>\n</div>\n');
a.content.insertBefore(_.w().content.cloneNode(!0),a.content.firstChild);return Di0=a},{mode:1});var LcZ;var zm=function(){var a=_.G.apply(this,arguments)||this;a.isLoading=!1;a.isDisabled=!1;return a};
_.b(zm,_.G);zm.prototype.attached=function(){this.hostElement.setAttribute("dialog","true")};
zm.prototype.updateDisabled=function(){var a;this.isDisabled=this.isLoading||((a=this.handleInput)==null?void 0:a.value)===void 0;this.set("data.saveButton.buttonRenderer.isDisabled",this.isDisabled)};
zm.prototype.onSaveClick=function(){var a=this;if(!this.isDisabled&&this.handleInput.value!==void 0){var z;((z=this.data)==null?void 0:z.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 I;if((I=a.data)==null?0:I.nextEndpoint){var J;a.ytComponentBehavior.resolveCommand((J=a.data)==null?void 0:J.nextEndpoint)}else a.isLoading=
!1,a.closeDialog()},
onServerError:function(){a.isLoading=!1;a.handleInput.validate();var I;a.errorMessage=(I=a.data)==null?void 0:I.errorMessage}}}))}};
zm.prototype.closeDialog=function(){_.ZF(this.hostElement,"yt-close-popup-action",[this.is])};
zm.prototype.updateDisabled=zm.prototype.updateDisabled;_.L([_.Q(_.Ms.YtComponentBehavior),_.p("design:type",Object)],zm.prototype,"ytComponentBehavior",void 0);_.L([_.x(),_.p("design:type",Object)],zm.prototype,"data",void 0);_.L([_.A3("#handle-input"),_.p("design:type",Object)],zm.prototype,"handleInput",void 0);_.L([_.O8("isLoading"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],zm.prototype,"updateDisabled",null);
_.L([_.U({is:"ytd-channel-handle-edit-dialog-renderer",disableElementRegistration:!0})],zm);
_.D(zm,"ytd-channel-handle-edit-dialog-renderer",function(){if(LcZ!==void 0)return LcZ;var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-channel-handle-edit-dialog-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="container" class="style-scope ytd-channel-handle-edit-dialog-renderer">\n  <div id="header" class="style-scope ytd-channel-handle-edit-dialog-renderer">\n    <yt-formatted-string id="title" text="[[data.title]]" class="style-scope ytd-channel-handle-edit-dialog-renderer"></yt-formatted-string>\n    <template is="dom-if" restamp="" if="[[data.dismissButton]]" class="style-scope ytd-channel-handle-edit-dialog-renderer">\n      <ytd-button-renderer id="dismiss-button" data="[[data.dismissButton.buttonRenderer]]" on-click="closeDialog" class="style-scope ytd-channel-handle-edit-dialog-renderer">\n      </ytd-button-renderer>\n    </template>\n  </div>\n\n  <div id="body" class="style-scope ytd-channel-handle-edit-dialog-renderer">\n    <yt-img-shadow id="profile-picture" height="128" thumbnail="[[data.profilePicture]]" width="128" class="style-scope ytd-channel-handle-edit-dialog-renderer">\n    </yt-img-shadow>\n\n    <div id="name" class="style-scope ytd-channel-handle-edit-dialog-renderer">[[data.channelTitle]]</div>\n\n    <template is="dom-if" restamp="" if="[[data.channelHandleInput]]" on-dom-change="updateDisabled" class="style-scope ytd-channel-handle-edit-dialog-renderer">\n      <ytd-channel-handle-input-renderer id="handle-input" data="[[data.channelHandleInput.channelHandleInputRenderer]]" on-value-changed="updateDisabled" class="style-scope ytd-channel-handle-edit-dialog-renderer">\n      </ytd-channel-handle-input-renderer>\n    </template>\n\n    <template is="dom-if" restamp="" if="[[data.existingHandle]]" class="style-scope ytd-channel-handle-edit-dialog-renderer">\n      <div id="existing-handle" dir="ltr" class="style-scope ytd-channel-handle-edit-dialog-renderer">\n        [[data.existingHandle]]\n      </div>\n    </template>\n\n    <template is="dom-if" restamp="" if="[[data.bodyText]]" class="style-scope ytd-channel-handle-edit-dialog-renderer">\n      <yt-formatted-string id="body-text" text="[[data.bodyText]]" class="style-scope ytd-channel-handle-edit-dialog-renderer">\n      </yt-formatted-string>\n    </template>\n\n    <template is="dom-if" restamp="" if="[[errorMessage]]" class="style-scope ytd-channel-handle-edit-dialog-renderer">\n      <yt-formatted-string id="error-message" text="[[errorMessage]]" class="style-scope ytd-channel-handle-edit-dialog-renderer"></yt-formatted-string>\n    </template>\n\n    <template is="dom-repeat" items="[[data.infoItems]]" as="infoItem" class="style-scope ytd-channel-handle-edit-dialog-renderer">\n      <div class="info-item style-scope ytd-channel-handle-edit-dialog-renderer">\n        <yt-icon class="info-item-icon style-scope ytd-channel-handle-edit-dialog-renderer" icon="[[infoItem.icon.iconType]]">\n        </yt-icon>\n        <yt-formatted-string class="info-item-text style-scope ytd-channel-handle-edit-dialog-renderer" text="[[infoItem.infoText]]">\n        </yt-formatted-string>\n      </div>\n    </template>\n  </div>\n\n  <div id="footer" class="style-scope ytd-channel-handle-edit-dialog-renderer">\n    <template is="dom-if" restamp="" if="[[data.cancelButton]]" class="style-scope ytd-channel-handle-edit-dialog-renderer">\n      <ytd-button-renderer id="cancel-button" data="[[data.cancelButton.buttonRenderer]]" on-click="closeDialog" class="style-scope ytd-channel-handle-edit-dialog-renderer">\n      </ytd-button-renderer>\n    </template>\n    <template is="dom-if" restamp="" if="[[data.saveButton]]" class="style-scope ytd-channel-handle-edit-dialog-renderer">\n      <ytd-button-renderer id="save-button" data="[[data.saveButton.buttonRenderer]]" on-click="onSaveClick" class="style-scope ytd-channel-handle-edit-dialog-renderer">\n      </ytd-button-renderer>\n    </template>\n  </div>\n\n  <div id="spinner-container" hidden="[[!isLoading]]" class="style-scope ytd-channel-handle-edit-dialog-renderer">\n    <tp-yt-paper-spinner-lite active="[[isLoading]]" class="style-scope ytd-channel-handle-edit-dialog-renderer"></tp-yt-paper-spinner-lite>\n  </div>\n</div>\n');a.content.insertBefore(_.w().content.cloneNode(!0),
a.content.firstChild);return LcZ=a},{mode:1});var l0M;var Ir=function(){return _.G.apply(this,arguments)||this};
_.b(Ir,_.G);Ir.prototype.configureRendererStamper=function(){return{"data.button":{id:"button",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.feedback":{id:"feedback",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.L([_.Q(_.k.YtRendererBehavior),_.p("design:type",Object)],Ir.prototype,"ytRendererBehavior",void 0);_.L([_.Q(_.u4.YtRendererstamperBehavior),_.p("design:type",Object)],Ir.prototype,"ytRendererstamperBehavior",void 0);_.L([_.x(),_.p("design:type",Object)],Ir.prototype,"data",void 0);_.L([_.U({is:"ytd-channel-switcher-footer-renderer",disableElementRegistration:!0})],Ir);
_.D(Ir,"ytd-channel-switcher-footer-renderer",function(){if(l0M!==void 0)return l0M;var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-channel-switcher-footer-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="button" class="style-scope ytd-channel-switcher-footer-renderer"></div>\n<div id="feedback" class="style-scope ytd-channel-switcher-footer-renderer"></div>\n');
a.content.insertBefore(_.w().content.cloneNode(!0),a.content.firstChild);return l0M=a},{mode:1});var pM0;var wMz;var Ju=function(){return _.G.apply(this,arguments)||this};
_.b(Ju,_.G);Ju.prototype.onIronChange=function(){if(this.checkbox&&this.onDontAskAgainChanged)this.onDontAskAgainChanged(this.checkbox.checked)};
Ju.prototype.onIronChange=Ju.prototype.onIronChange;_.L([_.x(),_.p("design:type",Object)],Ju.prototype,"data",void 0);_.L([_.x({reflectToAttribute:!1}),_.p("design:type",Function)],Ju.prototype,"onDontAskAgainChanged",void 0);_.L([_.A3("#checkbox"),_.p("design:type",Object)],Ju.prototype,"checkbox",void 0);_.L([_.gz("iron-change"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],Ju.prototype,"onIronChange",null);
_.L([_.U({is:"ytd-identity-prompt-footer-renderer",disableElementRegistration:!0})],Ju);
_.D(Ju,"ytd-identity-prompt-footer-renderer",function(){if(wMz!==void 0)return wMz;var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-identity-prompt-footer-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<tp-yt-paper-checkbox id="checkbox" class="style-scope ytd-identity-prompt-footer-renderer">\n  <yt-formatted-string text="[[data.dontShowAgainText]]" class="style-scope ytd-identity-prompt-footer-renderer"></yt-formatted-string>\n</tp-yt-paper-checkbox>\n');a.content.insertBefore(_.w().content.cloneNode(!0),
a.content.firstChild);return wMz=a},{mode:1});var rS=function(){var a=_.G.apply(this,arguments)||this;a.dontAskAgain=!1;a.showPopup=!1;a.boundDontAskAgainChanged=function(z){a.dontAskAgainChanged(z)};
a.boundOnAccountItemTap=function(z){a.onAccountItemTap(z)};
return a};
_.b(rS,_.G);_.Z=rS.prototype;
_.Z.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]]"}}}}}};
_.Z.ready=function(){var a=this;_.PK(this.hostElement).querySelector("#container").addEventListener("scroll",function(){a.ytRendererBehavior.markDirty()})};
_.Z.dontAskAgainChanged=function(a){this.dontAskAgain=a};
_.Z.onAccountItemTap=function(a){if(a){var z={};this.dontAskAgain&&(z={dont_ask_again:this.dontAskAgain});_.wY(a,z)}};
_.Z.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.Z.dataChanged=function(){this.data&&this.redirectOnlyAccount(this.data)};
_.Z.redirectOnlyAccount=function(a){a.sections&&a.sections.length>0&&(a=_.H(a.sections[0],_.bxX),(a==null?0:a.contents)&&(a==null?void 0:a.contents.length)<=1?(a=_.wq(window.location.href),(a==null?0:a.next)&&_.K8m(a.next)?_.wY(a.next):_.wY("/")):this.showPopup=!0)};
rS.prototype.dataChanged=rS.prototype.dataChanged;_.L([_.Q(_.k.YtRendererBehavior),_.p("design:type",Object)],rS.prototype,"ytRendererBehavior",void 0);_.L([_.Q(_.u4.YtRendererstamperBehavior),_.p("design:type",Object)],rS.prototype,"ytRendererstamperBehavior",void 0);_.L([_.x(),_.p("design:type",Object)],rS.prototype,"data",void 0);_.L([_.x({reflectToAttribute:!1}),_.p("design:type",Object)],rS.prototype,"dontAskAgain",void 0);
_.L([_.x({reflectToAttribute:!0}),_.p("design:type",Object)],rS.prototype,"showPopup",void 0);_.L([_.x({reflectToAttribute:!1}),_.p("design:type",Object)],rS.prototype,"boundDontAskAgainChanged",void 0);_.L([_.x({reflectToAttribute:!1}),_.p("design:type",Object)],rS.prototype,"boundOnAccountItemTap",void 0);_.L([_.Fe("data"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],rS.prototype,"dataChanged",null);
_.L([_.U({is:"ytd-channel-switcher-renderer",disableElementRegistration:!0})],rS);
_.D(rS,"ytd-channel-switcher-renderer",function(){if(pM0!==void 0)return pM0;var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-channel-switcher-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-channel-switcher-renderer"></div>\n<div id="container" class="menu-container style-scope ytd-channel-switcher-renderer">\n  <div id="sections" class="style-scope ytd-channel-switcher-renderer"></div>\n</div>\n<div id="footer" class="style-scope ytd-channel-switcher-renderer"></div>\n');a.content.insertBefore(_.w().content.cloneNode(!0),
a.content.firstChild);return pM0=a},{mode:1});var miE;var Pk=function(){return _.G.apply(this,arguments)||this};
_.b(Pk,_.G);_.eH.Object.defineProperties(Pk.prototype,{steps:{configurable:!0,enumerable:!0,get:function(){return this.data&&this.data.steps?this.data.steps:[]}}});
_.L([_.x(),_.p("design:type",Object)],Pk.prototype,"data",void 0);_.L([_.S("data"),_.p("design:type",Array),_.p("design:paramtypes",[])],Pk.prototype,"steps",null);_.L([_.U({is:"ytd-channel-transfer-stepper-renderer",disableElementRegistration:!0})],Pk);
_.D(Pk,"ytd-channel-transfer-stepper-renderer",function(){if(miE!==void 0)return miE;var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-channel-transfer-stepper-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="stepper style-scope ytd-channel-transfer-stepper-renderer">\n  <template is="dom-repeat" items="[[steps]]" as="step" class="style-scope ytd-channel-transfer-stepper-renderer">\n    <div class="step-and-separator style-scope ytd-channel-transfer-stepper-renderer">\n      <div class="step style-scope ytd-channel-transfer-stepper-renderer" state$="[[step.state]]">\n        <yt-formatted-string class="step-title style-scope ytd-channel-transfer-stepper-renderer" text="[[step.title]]"></yt-formatted-string>\n        <div class="step-badge style-scope ytd-channel-transfer-stepper-renderer"></div>\n      </div>\n      <div class="separator style-scope ytd-channel-transfer-stepper-renderer"></div>\n    </div>\n  </template>\n</div>\n');a.content.insertBefore(_.w().content.cloneNode(!0),
a.content.firstChild);return miE=a},{mode:1});var yLE;var ZD=function(){var a=_.G.apply(this,arguments)||this;a.data=null;a.isError=!1;a.isLoading=!1;return a};
_.b(ZD,_.G);_.Z=ZD.prototype;_.Z.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"}}}};
_.Z.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.Z.dataChanged=function(){this.set("isLoading",!1);this.set("isError",!1)};
_.Z.computeProfileName=function(a){return a?a.givenNameValue+" "+a.familyNameValue:""};
_.Z.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)};
_.Z.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)};
ZD.prototype.onYtServiceRequestError=ZD.prototype.onYtServiceRequestError;ZD.prototype.onYtServiceRequestSent=ZD.prototype.onYtServiceRequestSent;ZD.prototype.dataChanged=ZD.prototype.dataChanged;_.L([_.Q(_.u4.YtRendererstamperBehavior),_.p("design:type",Object)],ZD.prototype,"ytRendererstamperBehavior",void 0);_.L([_.x(),_.p("design:type",Object)],ZD.prototype,"data",void 0);
_.L([_.x({computed:"computeProfileName(data.personalAccountTile.contents.createCoreIdentityChannelContentRenderer)"}),_.p("design:type",String)],ZD.prototype,"profileName",void 0);_.L([_.x(),_.p("design:type",Object)],ZD.prototype,"isError",void 0);_.L([_.x(),_.p("design:type",Object)],ZD.prototype,"isLoading",void 0);_.L([_.O8("data"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],ZD.prototype,"dataChanged",null);
_.L([_.gz("yt-service-request-sent"),_.p("design:type",Function),_.p("design:paramtypes",[CustomEvent,_.lJ]),_.p("design:returntype")],ZD.prototype,"onYtServiceRequestSent",null);_.L([_.gz("yt-service-request-error"),_.p("design:type",Function),_.p("design:paramtypes",[CustomEvent,_.lJ]),_.p("design:returntype")],ZD.prototype,"onYtServiceRequestError",null);_.L([_.U({is:"ytd-channel-warm-welcome-cont-renderer",disableElementRegistration:!0})],ZD);
_.D(ZD,"ytd-channel-warm-welcome-cont-renderer",function(){if(yLE!==void 0)return yLE;var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-channel-warm-welcome-cont-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="container style-scope ytd-channel-warm-welcome-cont-renderer">\n  <div class="popup-header style-scope ytd-channel-warm-welcome-cont-renderer">\n    <h2 class="style-scope ytd-channel-warm-welcome-cont-renderer">\n      <yt-formatted-string id="title" class="popup-header-title style-scope ytd-channel-warm-welcome-cont-renderer" text="[[data.title]]">\n      </yt-formatted-string>\n    </h2>\n  </div>\n  <div class="tiles style-scope ytd-channel-warm-welcome-cont-renderer">\n    <div id="personal-account-tile" class="tile style-scope ytd-channel-warm-welcome-cont-renderer">\n      <div class="tile-content style-scope ytd-channel-warm-welcome-cont-renderer">\n        <div class="tile-header style-scope ytd-channel-warm-welcome-cont-renderer">\n          <h3 class="style-scope ytd-channel-warm-welcome-cont-renderer">\n            <yt-formatted-string id="personal_account_tile-title" class="tile-header-title style-scope ytd-channel-warm-welcome-cont-renderer" text="[[data.personalAccountTile.title]]">\n            </yt-formatted-string>\n          </h3>\n        </div>\n        <div class="tile-description style-scope ytd-channel-warm-welcome-cont-renderer">\n          <yt-formatted-string id="personal_account_tile-description" class="tile-description-text style-scope ytd-channel-warm-welcome-cont-renderer" text="[[data.personalAccountTile.description]]">\n          </yt-formatted-string>\n        </div>\n        <div class="tile-profile-picture style-scope ytd-channel-warm-welcome-cont-renderer">\n          <yt-img-shadow class="profile-photo style-scope ytd-channel-warm-welcome-cont-renderer" height="96" style="border-radius: 50%" thumbnail="[[data.personalAccountTile.contents.createCoreIdentityChannelContentRenderer.profilePhoto]]" width="96">\n          </yt-img-shadow>\n        </div>\n        <div class="tile-profile-name style-scope ytd-channel-warm-welcome-cont-renderer">[[profileName]]</div>\n        <div class="tos style-scope ytd-channel-warm-welcome-cont-renderer">\n          <template is="dom-repeat" items="[[data.personalAccountTile.contents.createCoreIdentityChannelContentRenderer.additionalInfos]]" class="style-scope ytd-channel-warm-welcome-cont-renderer">\n            <yt-formatted-string text="[[item]]" class="style-scope ytd-channel-warm-welcome-cont-renderer"></yt-formatted-string>\n          </template>\n        </div>\n      </div>\n      <div class="tile-button-layer style-scope ytd-channel-warm-welcome-cont-renderer">\n        <span id="personal-account-tile-select-button" class="style-scope ytd-channel-warm-welcome-cont-renderer"></span>\n      </div>\n    </div>\n    <span class="tile-separator style-scope ytd-channel-warm-welcome-cont-renderer"></span>\n    <div id="brand-account-tile" class="tile style-scope ytd-channel-warm-welcome-cont-renderer">\n      <div class="tile-content style-scope ytd-channel-warm-welcome-cont-renderer">\n        <div class="tile-header style-scope ytd-channel-warm-welcome-cont-renderer">\n          <h3 class="style-scope ytd-channel-warm-welcome-cont-renderer">\n            <yt-formatted-string id="brand_account_tile-title" class="tile-header-title style-scope ytd-channel-warm-welcome-cont-renderer" text="[[data.brandAccountTile.title]]">\n            </yt-formatted-string>\n          </h3>\n        </div>\n        <div class="tile-description style-scope ytd-channel-warm-welcome-cont-renderer">\n          <yt-formatted-string id="brand_account_tile-description" class="tile-description-text style-scope ytd-channel-warm-welcome-cont-renderer" text="[[data.brandAccountTile.description]]">\n          </yt-formatted-string>\n        </div>\n        <div class="tile-illustration style-scope ytd-channel-warm-welcome-cont-renderer">\n          <yt-img-shadow height="164" thumbnail="[[data.brandAccountTile.illustration]]" class="style-scope ytd-channel-warm-welcome-cont-renderer">\n          </yt-img-shadow>\n        </div>\n      </div>\n      <div class="tile-button-layer style-scope ytd-channel-warm-welcome-cont-renderer">\n        <span id="brand-account-tile-select-button" class="centered-button tile-button style-scope ytd-channel-warm-welcome-cont-renderer"></span>\n      </div>\n    </div>\n    <div class="spinner-container style-scope ytd-channel-warm-welcome-cont-renderer" hidden="[[!isLoading]]">\n      <tp-yt-paper-spinner-lite active="[[isLoading]]" class="style-scope ytd-channel-warm-welcome-cont-renderer"></tp-yt-paper-spinner-lite>\n    </div>\n  </div>\n  <div class="error-container style-scope ytd-channel-warm-welcome-cont-renderer" hidden="[[!isError]]">\n    <yt-formatted-string class="error style-scope ytd-channel-warm-welcome-cont-renderer" text="[[data.errorMessage]]"></yt-formatted-string>\n  </div>\n  <div class="disclaimer-layer style-scope ytd-channel-warm-welcome-cont-renderer" hidden="[[!data.disclaimer]]">\n      <yt-formatted-string class="warm-welcome-disclaimer style-scope ytd-channel-warm-welcome-cont-renderer" text="[[data.disclaimer]]"></yt-formatted-string>\n  </div>\n  <div class="button-layer style-scope ytd-channel-warm-welcome-cont-renderer">\n    <span id="cancel-button" class="centered-button tile-button style-scope ytd-channel-warm-welcome-cont-renderer"></span>\n  </div>\n</div>\n');
a.content.insertBefore(_.w().content.cloneNode(!0),a.content.firstChild);return yLE=a},{mode:1});var kvi;var Ca=function(){var a=_.G.apply(this,arguments)||this;a.data=null;return a};
_.b(Ca,_.G);Ca.prototype.configureRendererStamper=function(){return{"data.nextButton":{id:"next-button",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.cancelButton":{id:"cancel-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
Ca.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");this.hostElement.hasAttribute("autofocus")||this.hostElement.setAttribute("autofocus","true")};
_.L([_.Q(_.u4.YtRendererstamperBehavior),_.p("design:type",Object)],Ca.prototype,"ytRendererstamperBehavior",void 0);_.L([_.x(),_.p("design:type",Object)],Ca.prototype,"data",void 0);_.L([_.U({is:"ytd-channel-warm-welcome-renderer",disableElementRegistration:!0})],Ca);
_.D(Ca,"ytd-channel-warm-welcome-renderer",function(){if(kvi!==void 0)return kvi;var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-channel-warm-welcome-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="container style-scope ytd-channel-warm-welcome-renderer">\n  <div class="illustration style-scope ytd-channel-warm-welcome-renderer">\n    <yt-img-shadow height="254" thumbnail="[[data.illustration]]" class="style-scope ytd-channel-warm-welcome-renderer">\n    </yt-img-shadow>\n  </div>\n  <div class="content style-scope ytd-channel-warm-welcome-renderer">\n    <div class="popup-header style-scope ytd-channel-warm-welcome-renderer">\n      <h2 class="style-scope ytd-channel-warm-welcome-renderer">\n        <yt-formatted-string id="title" class="popup-header-title style-scope ytd-channel-warm-welcome-renderer" text="[[data.title]]">\n        </yt-formatted-string>\n      </h2>\n    </div>\n    <div class="popup-description style-scope ytd-channel-warm-welcome-renderer">\n      <yt-formatted-string id="description" class="popup-description-text style-scope ytd-channel-warm-welcome-renderer" text="[[data.description]]">\n      </yt-formatted-string>\n    </div>\n    <div class="button-layer style-scope ytd-channel-warm-welcome-renderer">\n      <div id="next-button" class="style-scope ytd-channel-warm-welcome-renderer"></div>\n      <div id="cancel-button" class="style-scope ytd-channel-warm-welcome-renderer"></div>\n    </div>\n  </div>\n</div>\n');a.content.insertBefore(_.w().content.cloneNode(!0),
a.content.firstChild);return kvi=a},{mode:1});var M0E;var Eo=function(){return _.G.apply(this,arguments)||this};
_.b(Eo,_.G);_.eH.Object.defineProperties(Eo.prototype,{thumbnailDetails:{configurable:!0,enumerable:!0,get:function(){var a;return((a=this.data)==null?void 0:a.authorThumbnail)||{}}}});
_.L([_.Q(_.k.YtRendererBehavior),_.p("design:type",Object)],Eo.prototype,"ytRendererBehavior",void 0);_.L([_.x(),_.p("design:type",Object)],Eo.prototype,"data",void 0);_.L([_.S("data"),_.p("design:type",Object),_.p("design:paramtypes",[])],Eo.prototype,"thumbnailDetails",null);_.L([_.U({is:"ytd-comment-preview-renderer",disableElementRegistration:!0})],Eo);
_.D(Eo,"ytd-comment-preview-renderer",function(){if(M0E!==void 0)return M0E;var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-comment-preview-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="avatar-block style-scope ytd-comment-preview-renderer">\n  <yt-img-shadow class="thumbnail style-scope ytd-comment-preview-renderer" fit="" thumbnail="[[thumbnailDetails]]">\n  </yt-img-shadow>\n</div>\n<div class="content-block style-scope ytd-comment-preview-renderer">\n  <div class="username style-scope ytd-comment-preview-renderer">[[data.authorName]]</div>\n  <div class="preview-text style-scope ytd-comment-preview-renderer">\n    <yt-formatted-string split-lines="true" text="[[data.commentText]]" class="style-scope ytd-comment-preview-renderer">\n    </yt-formatted-string>\n  </div>\n</div>\n');a.content.insertBefore(_.w().content.cloneNode(!0),
a.content.firstChild);return M0E=a},{mode:1});var cL0;var Bk=function(){return _.G.apply(this,arguments)||this};
_.b(Bk,_.G);Bk.prototype.configureRendererStamper=function(){return{submitButton:{id:"submit-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.eH.Object.defineProperties(Bk.prototype,{submitButton:{configurable:!0,enumerable:!0,get:function(){var a;return(a=this.data)==null?void 0:a.submitButton}}});
_.L([_.Q(_.k.YtRendererBehavior),_.p("design:type",Object)],Bk.prototype,"ytRendererBehavior",void 0);_.L([_.Q(_.u4.YtRendererstamperBehavior),_.p("design:type",Object)],Bk.prototype,"ytRendererstamperBehavior",void 0);_.L([_.x(),_.p("design:type",Object)],Bk.prototype,"data",void 0);_.L([_.S("data"),_.p("design:type",Object),_.p("design:paramtypes",[])],Bk.prototype,"submitButton",null);_.L([_.U({is:"ytd-notice-renderer",disableElementRegistration:!0})],Bk);
_.D(Bk,"ytd-notice-renderer",function(){if(cL0!==void 0)return cL0;var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-notice-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="left style-scope ytd-notice-renderer">\n  <img alt="" class="illustration style-scope ytd-notice-renderer" src$="[[data.illustrationUrl]]">\n</div>\n\n<div class="right style-scope ytd-notice-renderer">\n  <yt-icon class="youtube-logo right-item style-scope ytd-notice-renderer" icon="yt-logos-ext:yt-logo-updated"></yt-icon>\n    <div class="notice-content right-item style-scope ytd-notice-renderer">\n      <yt-formatted-string class="notice-title style-scope ytd-notice-renderer" text="[[data.title]]">\n      </yt-formatted-string>\n      <yt-formatted-string class="notice-description style-scope ytd-notice-renderer" text="[[data.description]]">\n      </yt-formatted-string>\n    </div>\n    <div class="toolbar right-item style-scope ytd-notice-renderer">\n      <div id="submit-button" class="style-scope ytd-notice-renderer"></div>\n    </div>\n</div>\n');
a.content.insertBefore(_.w().content.cloneNode(!0),a.content.firstChild);return cL0=a},{mode:1});var YAE;var gS=function(){return _.G.apply(this,arguments)||this};
_.b(gS,_.G);gS.prototype.configureRendererStamper=function(){return{"data.comment":{id:"comment-preview",mapping:{commentPreviewRenderer:{component:"ytd-comment-preview-renderer"}}}}};
_.L([_.Q(_.u4.YtRendererstamperBehavior),_.p("design:type",Object)],gS.prototype,"ytRendererstamperBehavior",void 0);_.L([_.x(),_.p("design:type",Object)],gS.prototype,"data",void 0);_.L([_.U({is:"ytd-preview-comment-dialog-content",disableElementRegistration:!0})],gS);
_.D(gS,"ytd-preview-comment-dialog-content",function(){if(YAE!==void 0)return YAE;var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-preview-comment-dialog-content--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="text-area style-scope ytd-preview-comment-dialog-content">\n  <div class="title style-scope ytd-preview-comment-dialog-content">[[data.title]]</div>\n  <div id="comment-preview" class="style-scope ytd-preview-comment-dialog-content"></div>\n  <div class="messages style-scope ytd-preview-comment-dialog-content">\n    <template is="dom-repeat" items="[[data.messages]]" class="style-scope ytd-preview-comment-dialog-content">\n      <yt-formatted-string class="message style-scope ytd-preview-comment-dialog-content" text="[[item]]"></yt-formatted-string>\n    </template>\n  </div>\n</div>\n');a.content.insertBefore(_.w().content.cloneNode(!0),
a.content.firstChild);return YAE=a},{mode:1});var qAZ;var Oo=function(){return _.G.apply(this,arguments)||this};
_.b(Oo,_.G);Oo.prototype.attached=function(){this.hostElement.setAttribute("dialog","true")};
Oo.prototype.configureRendererStamper=function(){return{"data.buttons":{id:"buttons",mapping:{buttonRenderer:{component:"yt-button-renderer"}}}}};
_.L([_.Q(_.k.YtRendererBehavior),_.p("design:type",Object)],Oo.prototype,"ytRendererBehavior",void 0);_.L([_.Q(_.u4.YtRendererstamperBehavior),_.p("design:type",Object)],Oo.prototype,"ytRendererstamperBehavior",void 0);_.L([_.x(),_.p("design:type",Object)],Oo.prototype,"data",void 0);_.L([_.U({is:"ytd-preview-comment-dialog-renderer",disableElementRegistration:!0})],Oo);
_.D(Oo,"ytd-preview-comment-dialog-renderer",function(){if(qAZ!==void 0)return qAZ;var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-preview-comment-dialog-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<ytd-preview-comment-dialog-content data="[[data]]" class="style-scope ytd-preview-comment-dialog-renderer">\n</ytd-preview-comment-dialog-content>\n<div class="bottom style-scope ytd-preview-comment-dialog-renderer">\n  <div id="buttons" class="style-scope ytd-preview-comment-dialog-renderer"></div>\n</div>\n');
a.content.insertBefore(_.w().content.cloneNode(!0),a.content.firstChild);return qAZ=a},{mode:1});var eHM;var a3G=_.K("web_button_rework")&&_.TZ("BUTTON_REWORK")||_.K("web_button_rework_with_live"),fa=function(){var a=_.G.apply(this,arguments)||this;a.closeLabel=_.AR("CLOSE");a.selectedAmountIndex=1;a.privacyCheckboxValue=!1;a.useAmsterdamStyle=a3G;a.amountPlaceholderIndex=-1;return a};
_.b(fa,_.G);_.Z=fa.prototype;_.Z.onAmountClick=function(a){this.selectedAmountIndex=_.PK(this.hostElement).querySelector("#amounts").indexForElement(a.currentTarget)};
_.Z.onCloseClick=function(){this.hostElement.hasAttribute("live-chat")&&(_.ZF(this.hostElement,"yt-live-chat-close-buy-flow"),this.ytLiveChatErrorMessageBehavior._setErrorRenderer(null))};
_.Z.onDonateButtonClick=function(){if(this.hostElement.hasAttribute("live-chat"))this.donateCommand&&_.ZF(this.hostElement,"yt-live-chat-start-buy-flow",[this.donateCommand,{},this.donationCallback.bind(this)]);else{_.ZF(this.hostElement,"yt-close-popup-action",[this.is]);var a;(a=_.zI())==null||a.getPlayerPromise().then(function(z){z.pauseVideo()})}};
_.Z.donationCallback=function(a){a.success?(this.hostElement.hasAttribute("live-chat")&&a.response&&a.response.data&&a.response.data.actions&&_.ZF(this.hostElement,"yt-live-chat-open-popup",[a.response.data.actions[0]]),_.ZF(this.hostElement,"yt-close-popup-action",[this.is]),_.ZF(this.hostElement,"yt-live-chat-close-buy-flow")):a.errorMessageRenderer&&this.ytLiveChatErrorMessageBehavior._setErrorRenderer(a.errorMessageRenderer)};
_.Z.setFocusOnCustomAmountInput=function(){this.customAmount!==null&&_.PK(this.hostElement).querySelector("#custom-amount-input").focus()};
_.Z.updateConfirmationDialogTextWithAmount=function(a){var z=this.getConfirmDialogRuns();z&&this.set(["data","confirmLargeAmount","openPopupAction","popup","confirmDialogRenderer","dialogMessages",0,"runs",this.getAmountPlaceholderIndex(z),"text"],this.getFormattedAmount(a))};
_.Z.getConfirmDialogRuns=function(){return this.get(["confirmLargeAmount","openPopupAction","popup","confirmDialogRenderer","dialogMessages",0,"runs"],this.data)};
_.Z.getAmountPlaceholderIndex=function(a){this.amountPlaceholderIndex<0&&(this.amountPlaceholderIndex=a.findIndex(function(z){return z.text==="${amount}"}));
return this.amountPlaceholderIndex};
_.Z.getFormattedAmount=function(a){var z;return(new _.l8(4,((z=this.data)==null?void 0:z.currencyCode)||"")).format(a)};
_.Z.isAmountValid=function(a){if(a==="")return!1;a=Number(a)*1E6;var z=this.get("minAmountMicros",this.data),I=this.get("maxAmountMicros",this.data);return z&&a<z||I&&a>I?!1:!0};
_.Z.setInputError=function(){this.shouldShowValidationError?_.PK(this.hostElement).querySelector("#custom-amount-input").setAttribute("invalid",""):_.PK(this.hostElement).querySelector("#custom-amount-input").removeAttribute("invalid")};
_.Z.setInitialCheckboxValue=function(){var a;this.privacyCheckboxValue=!((a=this.data)==null||!a.privacyCheckboxInitialState)};
_.Z.updateCustomAmountInputFromBinding=function(a){this.customAmountInput=a.detail.value};
_.Z.updatePrivacyCheckboxValueFromBinding=function(a){this.privacyCheckboxValue=a.detail.value};
_.eH.Object.defineProperties(fa.prototype,{suggestedAmountButtons:{configurable:!0,enumerable:!0,get:function(){var a=this,z,I;return((z=this.data)==null?void 0:(I=z.suggestedAmounts)==null?void 0:I.map(function(J,r){return{buttonRenderer:{style:a.selectedAmountIndex===r?"STYLE_PRIMARY":"STYLE_SUGGESTIVE",text:J.label}}}))||[]}},
isCustomAmountSelected:{configurable:!0,enumerable:!0,get:function(){return!this.get("suggestedAmounts."+this.selectedAmountIndex+".amountMicros",this.data)}},
showPrivacyCheckbox:{configurable:!0,enumerable:!0,get:function(){var a;return!((a=this.data)==null||!a.privacyCheckboxText)}},
amountMicros:{configurable:!0,enumerable:!0,get:function(){return this.customAmount?this.isAmountValid(this.customAmount)?Number(this.customAmount)*1E6:null:Number(this.get("suggestedAmounts."+this.selectedAmountIndex+".amountMicros",this.data))}},
customAmount:{configurable:!0,enumerable:!0,get:function(){return this.isCustomAmountSelected?this.customAmountInput||"":null}},
shouldShowValidationError:{configurable:!0,enumerable:!0,get:function(){return this.customAmount===null||this.customAmount===""?!1:!this.isAmountValid(this.customAmount)}},
isDonateButtonEnabled:{configurable:!0,enumerable:!0,get:function(){return this.customAmount===null?!0:this.isAmountValid(this.customAmount)}},
donateCommand:{configurable:!0,enumerable:!0,get:function(){var a=this.hostElement.hasAttribute("live-chat")?this.get("payFromLiveChat",this.data):this.get("donateButton.buttonRenderer.command",this.data);if(a&&this.amountMicros!==null)return Object.assign({},a,{ypcGetCartEndpoint:Object.assign({},a.ypcGetCartEndpoint,{donationAmountMicros:this.amountMicros,productData:{donationData:{isAnonymousDonation:!this.privacyCheckboxValue}}})})}},
donateCommandWithConfirmation:{configurable:!0,enumerable:!0,get:function(){return this.isCustomAmountSelected&&this.confirmLargeAmountCommand&&this.amountMicros&&this.amountMicros>=this.largeDonationThreshold?this.confirmLargeAmountCommand:this.donateCommand}},
largeDonationThreshold:{configurable:!0,enumerable:!0,get:function(){return 100*this.get("minAmountMicros",this.data)}},
confirmLargeAmountCommand:{configurable:!0,enumerable:!0,get:function(){var a=this.get("confirmLargeAmount",this.data);if(a&&this.amountMicros)return this.updateConfirmationDialogTextWithAmount(this.amountMicros/1E6),this.set("data.confirmLargeAmount.openPopupAction.popup.confirmDialogRenderer.confirmButton.buttonRenderer.command",this.donateCommand),a}},
donateButtonRenderer:{configurable:!0,enumerable:!0,get:function(){var a=this.get("donateButton.buttonRenderer",this.data);if(a)return Object.assign({},a,{isDisabled:!this.isDonateButtonEnabled,command:this.hostElement.hasAttribute("live-chat")?void 0:this.donateCommandWithConfirmation})}}});
fa.prototype.setInitialCheckboxValue=fa.prototype.setInitialCheckboxValue;fa.prototype.setInputError=fa.prototype.setInputError;fa.prototype.setFocusOnCustomAmountInput=fa.prototype.setFocusOnCustomAmountInput;_.L([_.Q(rr4),_.p("design:type",Object)],fa.prototype,"ytLiveChatErrorMessageBehavior",void 0);_.L([_.Q(_.k.YtRendererBehavior),_.p("design:type",Object)],fa.prototype,"ytRendererBehavior",void 0);
_.L([_.Q(_.u4.YtRendererstamperBehavior),_.p("design:type",Object)],fa.prototype,"ytRendererstamperBehavior",void 0);_.L([_.x(),_.p("design:type",Object)],fa.prototype,"data",void 0);_.L([_.x(),_.p("design:type",Object)],fa.prototype,"closeLabel",void 0);_.L([_.x(),_.p("design:type",Object)],fa.prototype,"selectedAmountIndex",void 0);_.L([_.x(),_.p("design:type",String)],fa.prototype,"customAmountInput",void 0);_.L([_.x(),_.p("design:type",Object)],fa.prototype,"privacyCheckboxValue",void 0);
_.L([_.x({reflectToAttribute:!0}),_.p("design:type",Boolean)],fa.prototype,"useAmsterdamStyle",void 0);_.L([_.O8("customAmount"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],fa.prototype,"setFocusOnCustomAmountInput",null);_.L([_.S("data","selectedAmountIndex"),_.p("design:type",Array),_.p("design:paramtypes",[])],fa.prototype,"suggestedAmountButtons",null);
_.L([_.S("data","selectedAmountIndex"),_.p("design:type",Boolean),_.p("design:paramtypes",[])],fa.prototype,"isCustomAmountSelected",null);_.L([_.S("data"),_.p("design:type",Boolean),_.p("design:paramtypes",[])],fa.prototype,"showPrivacyCheckbox",null);_.L([_.S("data","selectedAmountIndex","customAmount"),_.p("design:type",Object),_.p("design:paramtypes",[])],fa.prototype,"amountMicros",null);
_.L([_.S("isCustomAmountSelected","customAmountInput"),_.p("design:type",Object),_.p("design:paramtypes",[])],fa.prototype,"customAmount",null);_.L([_.S("customAmount"),_.p("design:type",Boolean),_.p("design:paramtypes",[])],fa.prototype,"shouldShowValidationError",null);_.L([_.S("customAmount"),_.p("design:type",Boolean),_.p("design:paramtypes",[])],fa.prototype,"isDonateButtonEnabled",null);
_.L([_.S("data","isDonateButtonEnabled","amountMicros","privacyCheckboxValue"),_.p("design:type",Object),_.p("design:paramtypes",[])],fa.prototype,"donateCommand",null);_.L([_.S("donateCommand","isCustomAmountSelected","confirmLargeAmountCommand","amountMicros"),_.p("design:type",Object),_.p("design:paramtypes",[])],fa.prototype,"donateCommandWithConfirmation",null);_.L([_.S("data"),_.p("design:type",Object),_.p("design:paramtypes",[])],fa.prototype,"largeDonationThreshold",null);
_.L([_.S("customAmount","donateCommand","amountMicros"),_.p("design:type",Object),_.p("design:paramtypes",[])],fa.prototype,"confirmLargeAmountCommand",null);_.L([_.S("data","isDonateButtonEnabled","donateCommandWithConfirmation"),_.p("design:type",Object),_.p("design:paramtypes",[])],fa.prototype,"donateButtonRenderer",null);_.L([_.O8("shouldShowValidationError"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],fa.prototype,"setInputError",null);
_.L([_.O8("data"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],fa.prototype,"setInitialCheckboxValue",null);_.L([_.U({is:"ytd-donation-amount-picker-renderer",disableElementRegistration:!0})],fa);
_.D(fa,"ytd-donation-amount-picker-renderer",function(){if(eHM!==void 0)return eHM;var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-donation-amount-picker-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="container" aria-label="[[getSimpleString(data.pickerTitle)]]" class="style-scope ytd-donation-amount-picker-renderer">\n  <div id="top-box" class="style-scope ytd-donation-amount-picker-renderer">\n    <div id="title-row" class="style-scope ytd-donation-amount-picker-renderer">\n      <div id="title" class="style-scope ytd-donation-amount-picker-renderer">\n        <div class="title-text style-scope ytd-donation-amount-picker-renderer">[[getSimpleString(data.pickerTitle)]]</div>\n        <yt-icon-button dialog-dismiss="" label="[[closeLabel]]" on-click="onCloseClick" class="style-scope ytd-donation-amount-picker-renderer">\n          <yt-icon icon="yt-icons:dismissal" class="style-scope ytd-donation-amount-picker-renderer"></yt-icon>\n        </yt-icon-button>\n      </div>\n    </div>\n    <div id="campaign-row" class="style-scope ytd-donation-amount-picker-renderer">\n      <yt-img-shadow object-fit="CONTAIN" thumbnail="[[data.campaignThumbnail]]" class="style-scope ytd-donation-amount-picker-renderer"> </yt-img-shadow>\n      <div id="text-container" class="style-scope ytd-donation-amount-picker-renderer">\n        <div id="campaign-title" class="style-scope ytd-donation-amount-picker-renderer">[[getSimpleString(data.campaignTitle)]]</div>\n        <div id="campaign-subtitle" class="style-scope ytd-donation-amount-picker-renderer">[[getSimpleString(data.campaignSubtitle)]]</div>\n        <div id="description-column" class="style-scope ytd-donation-amount-picker-renderer">\n          <div class="separator style-scope ytd-donation-amount-picker-renderer"></div>\n          <div class="campaign-description style-scope ytd-donation-amount-picker-renderer">[[getSimpleString(data.campaignDescription)]]</div>\n        </div>\n      </div>\n    </div>\n    <div id="live-chat-description-column" class="style-scope ytd-donation-amount-picker-renderer">\n      <div class="campaign-description style-scope ytd-donation-amount-picker-renderer">[[getSimpleString(data.campaignDescription)]]</div>\n      <div class="separator style-scope ytd-donation-amount-picker-renderer"></div>\n    </div>\n  </div>\n  <div id="bottom-box" class="style-scope ytd-donation-amount-picker-renderer">\n    <div id="nonprofit-row" class="style-scope ytd-donation-amount-picker-renderer">\n      <div class="style-scope ytd-donation-amount-picker-renderer">\n        <div id="nonprofit-title" class="style-scope ytd-donation-amount-picker-renderer">\n          [[getSimpleString(data.nonprofitTitle)]]\n          <yt-icon id="verified-icon" class="inline-icon style-scope ytd-donation-amount-picker-renderer" icon="check_circle" default-to-filled="true">\n          </yt-icon>\n        </div>\n        <yt-formatted-string id="nonprofit-subtitle" text="[[data.nonprofitSubtitle]]" class="style-scope ytd-donation-amount-picker-renderer">\n        </yt-formatted-string>\n      </div>\n    </div>\n    <div id="amount-selector" class="style-scope ytd-donation-amount-picker-renderer">\n      <div id="suggested-amount-buttons-row" class="style-scope ytd-donation-amount-picker-renderer">\n        <template id="amounts" is="dom-repeat" items="[[suggestedAmountButtons]]" class="style-scope ytd-donation-amount-picker-renderer">\n          <ytd-button-renderer class="suggested-amount style-scope ytd-donation-amount-picker-renderer" data="[[item.buttonRenderer]]" on-click="onAmountClick"></ytd-button-renderer>\n        </template>\n      </div>\n      <div id="custom-amount-container" class="style-scope ytd-donation-amount-picker-renderer">\n        <tp-yt-paper-input id="custom-amount-input" allowed-pattern="[0-9]" always-float-label="" error-message="[[getSimpleString(data.amountError)]]" hidden="[[!isCustomAmountSelected]]" label="[[getSimpleString(data.customAmountLabel)]]" use-v2-underline="" value="[[customAmountInput]]" on-value-changed="updateCustomAmountInputFromBinding" class="style-scope ytd-donation-amount-picker-renderer">\n          <div prefix="" slot="prefix" class="style-scope ytd-donation-amount-picker-renderer">[[getSimpleString(data.currencySymbol)]]\u00a0</div>\n        </tp-yt-paper-input>\n      </div>\n    </div>\n\n    <tp-yt-paper-checkbox id="privacy-checkbox" checked="[[privacyCheckboxValue]]" hidden="[[!showPrivacyCheckbox]]" on-checked-changed="updatePrivacyCheckboxValueFromBinding" class="style-scope ytd-donation-amount-picker-renderer">\n      <yt-formatted-string split-lines="" text="[[data.privacyCheckboxText]]" class="style-scope ytd-donation-amount-picker-renderer"> </yt-formatted-string>\n    </tp-yt-paper-checkbox>\n\n    <div id="button-row" class="style-scope ytd-donation-amount-picker-renderer">\n      <ytd-button-renderer data="[[donateButtonRenderer]]" on-click="onDonateButtonClick" class="style-scope ytd-donation-amount-picker-renderer">\n      </ytd-button-renderer>\n    </div>\n  </div>\n</div>\n');a.content.insertBefore(_.w().content.cloneNode(!0),
a.content.firstChild);return eHM=a},{mode:1});var jmM;var Au=function(){return _.G.apply(this,arguments)||this};
_.b(Au,_.G);_.L([_.Q(_.Ms.YtComponentBehavior),_.p("design:type",Object)],Au.prototype,"ytComponentBehavior",void 0);_.L([_.x({}),_.p("design:type",Object)],Au.prototype,"data",void 0);_.L([_.U({is:"ytd-donation-post-transaction-content",disableElementRegistration:!0})],Au);
_.D(Au,"ytd-donation-post-transaction-content",function(){if(jmM!==void 0)return jmM;var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-donation-post-transaction-content--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="icon-row" class="style-scope ytd-donation-post-transaction-content">\n  <yt-img-shadow thumbnail="[[data.donationIcon]]" width="52" class="style-scope ytd-donation-post-transaction-content"></yt-img-shadow>\n</div>\n<div id="messages" class="style-scope ytd-donation-post-transaction-content">\n  <div id="message" class="style-scope ytd-donation-post-transaction-content">\n    [[getSimpleString(data.thankYouMessage)]]\n  </div>\n  <div id="additional-info" class="style-scope ytd-donation-post-transaction-content">\n    [[getSimpleString(data.additionalInfo)]]\n  </div>\n</div>\n<div id="thankyou-messages" class="style-scope ytd-donation-post-transaction-content">\n  <div class="thankyou-message style-scope ytd-donation-post-transaction-content">\n    <div class="avatar style-scope ytd-donation-post-transaction-content">\n      <yt-img-shadow thumbnail="[[data.creatorMessage.thumbnail]]" width="32" class="style-scope ytd-donation-post-transaction-content"></yt-img-shadow>\n    </div>\n    <div class="content style-scope ytd-donation-post-transaction-content">\n      <div class="body style-scope ytd-donation-post-transaction-content">\n        [[getSimpleString(data.creatorMessage.description)]]\n      </div>\n      <div class="user style-scope ytd-donation-post-transaction-content">\n        [[getSimpleString(data.creatorMessage.title)]]\n      </div>\n    </div>\n  </div>\n</div>\n');a.content.insertBefore(_.w().content.cloneNode(!0),
a.content.firstChild);return jmM=a},{mode:1});var zAZ;var so=function(){return _.G.apply(this,arguments)||this};
_.b(so,_.G);so.prototype.configureRendererStamper=function(){return{"data.doneButton":{id:"done-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.L([_.Q(_.u4.YtRendererstamperBehavior),_.p("design:type",Object)],so.prototype,"ytRendererstamperBehavior",void 0);_.L([_.Q(_.k.YtRendererBehavior),_.p("design:type",Object)],so.prototype,"ytRendererBehavior",void 0);_.L([_.x({}),_.p("design:type",Object)],so.prototype,"data",void 0);_.L([_.U({is:"ytd-donation-post-transaction-renderer",disableElementRegistration:!0})],so);
_.D(so,"ytd-donation-post-transaction-renderer",function(){if(zAZ!==void 0)return zAZ;var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-donation-post-transaction-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="container" class="style-scope ytd-donation-post-transaction-renderer">\n  <div id="title" class="style-scope ytd-donation-post-transaction-renderer">\n    <yt-icon-button dialog-dismiss="" class="style-scope ytd-donation-post-transaction-renderer">\n      <yt-icon icon="yt-icons:dismissal" class="style-scope ytd-donation-post-transaction-renderer"></yt-icon>\n    </yt-icon-button>\n  </div>\n  <ytd-donation-post-transaction-content data="[[data]]" class="style-scope ytd-donation-post-transaction-renderer">\n  </ytd-donation-post-transaction-content>\n  <div id="button-row" class="style-scope ytd-donation-post-transaction-renderer">\n    <div id="done-button" dialog-dismiss="" class="style-scope ytd-donation-post-transaction-renderer"></div>\n    <ytd-button-renderer data="[[data.shareButton.buttonRenderer]]" class="style-scope ytd-donation-post-transaction-renderer">\n    </ytd-button-renderer>\n  </div>\n</div>\n');
a.content.insertBefore(_.w().content.cloneNode(!0),a.content.firstChild);return zAZ=a},{mode:1});var I3E;var J5Y;var na=function(){return _.G.apply(this,arguments)||this};
_.b(na,_.G);na.prototype.computeIsStreamingProvider=function(a){return!!a.isStreamingShelf};
na.prototype.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{alignByText:!1}}}}}};
_.L([_.Q(_.k.YtRendererBehavior),_.p("design:type",Object)],na.prototype,"ytRendererBehavior",void 0);_.L([_.Q(_.u4.YtRendererstamperBehavior),_.p("design:type",Object)],na.prototype,"ytRendererstamperBehavior",void 0);_.L([_.x(),_.p("design:type",Object)],na.prototype,"data",void 0);_.L([_.x({computed:"computeIsStreamingProvider(data)",reflectToAttribute:!0}),_.p("design:type",Boolean)],na.prototype,"isStreamingProvider",void 0);
_.L([_.U({is:"ytd-media-provider-renderer",disableElementRegistration:!0})],na);
_.D(na,"ytd-media-provider-renderer",function(){if(J5Y!==void 0)return J5Y;var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-media-provider-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="provider style-scope ytd-media-provider-renderer">\n  <yt-img-shadow class="thumbnail style-scope ytd-media-provider-renderer" fit="" hidden="[[!data.thumbnail]]" thumbnail="[[data.thumbnail]]">\n  </yt-img-shadow>\n  <div class="provider-details style-scope ytd-media-provider-renderer">\n    <div id="action-button" class="style-scope ytd-media-provider-renderer"></div>\n    <p id="media-price" hidden="[[!data.mediaPrice]]" class="style-scope ytd-media-provider-renderer">\n      [[getSimpleString(data.mediaPrice)]]\n    </p>\n  </div>\n</div>\n');a.content.insertBefore(_.w().content.cloneNode(!0),
a.content.firstChild);return J5Y=a},{mode:1});var r50;var Ka=function(){return _.G.apply(this,arguments)||this};
_.b(Ka,_.G);Ka.prototype.observeLightsourcePalette=function(){var a,z=(a=this.data)==null?void 0:a.vibrantsourceColorPaletteData;z&&_.xq(this.hostElement,z)};
Ka.prototype.observeLightsourcePalette=Ka.prototype.observeLightsourcePalette;_.L([_.Q(_.k.YtRendererBehavior),_.p("design:type",Object)],Ka.prototype,"ytRendererBehavior",void 0);_.L([_.Q(_.u4.YtRendererstamperBehavior),_.p("design:type",Object)],Ka.prototype,"ytRendererstamperBehavior",void 0);_.L([_.x(),_.p("design:type",Object)],Ka.prototype,"data",void 0);
_.L([_.O8("data.vibrantsourceColorPaletteData"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],Ka.prototype,"observeLightsourcePalette",null);_.L([_.U({is:"ytd-streaming-pop-up-dialog",disableElementRegistration:!0})],Ka);
_.D(Ka,"ytd-streaming-pop-up-dialog",function(){if(r50!==void 0)return r50;var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-streaming-pop-up-dialog--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="details-wrapper style-scope ytd-streaming-pop-up-dialog">\n  <div class="image-wrapper style-scope ytd-streaming-pop-up-dialog">\n    <yt-img-shadow class="media-thumbnail style-scope ytd-streaming-pop-up-dialog" thumbnail="[[data.thumbnail]]">\n    </yt-img-shadow>\n    <div class="tv-show-season-wrapper style-scope ytd-streaming-pop-up-dialog" hidden="[[!data.tvShowSeasons]]">\n      <yt-icon id="tv-show-icon" icon="tv" class="style-scope ytd-streaming-pop-up-dialog"></yt-icon>\n      <p id="tv-show-season" class="style-scope ytd-streaming-pop-up-dialog">\n        [[getSimpleString(data.tvShowSeasons)]]\n      </p>\n    </div>\n  </div>\n  <div class="providers style-scope ytd-streaming-pop-up-dialog">\n    <template is="dom-repeat" items="[[data.mediaProviders]]" as="mediaProviders" class="style-scope ytd-streaming-pop-up-dialog">\n      <ytd-media-provider-renderer data="[[mediaProviders.mediaProviderRenderer]]" class="style-scope ytd-streaming-pop-up-dialog">\n      </ytd-media-provider-renderer>\n    </template>\n  </div>\n</div>\n');a.content.insertBefore(_.w().content.cloneNode(!0),
a.content.firstChild);return r50=a},{mode:1});var Ft=function(){return _.G.apply(this,arguments)||this};
_.b(Ft,_.G);Ft.prototype.onPopupOpened_=function(){var a;((a=this.data)==null?0:a.serviceEndpoint)&&_.ab().resolve(_.j6).resolveCommand(this.data.serviceEndpoint,{form:{element:this.hostElement}})};
Ft.prototype.configureContinuationPathMap=function(){return{"yt-reload-continuation-items-command-body":"content"}};
Ft.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"}}}}};
Ft.prototype.onPopupOpened_=Ft.prototype.onPopupOpened_;_.L([_.Q(_.k.YtRendererBehavior),_.p("design:type",Object)],Ft.prototype,"ytRendererBehavior",void 0);_.L([_.Q(_.u4.YtRendererstamperBehavior),_.p("design:type",Object)],Ft.prototype,"ytRendererstamperBehavior",void 0);_.L([_.Q(_.M8),_.p("design:type",Object)],Ft.prototype,"ytContinuationHandlerBehavior",void 0);_.L([_.x(),_.p("design:type",Object)],Ft.prototype,"data",void 0);
_.L([_.gz("yt-popup-opened"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],Ft.prototype,"onPopupOpened_",null);_.L([_.U({is:"ytd-brandconnect-popup-renderer",disableElementRegistration:!0})],Ft);
_.D(Ft,"ytd-brandconnect-popup-renderer",function(){if(I3E!==void 0)return I3E;var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-brandconnect-popup-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-brandconnect-popup-renderer">\n  <yt-formatted-string id="title" text="[[data.popUpTitle]]" class="style-scope ytd-brandconnect-popup-renderer"></yt-formatted-string>\n  <div id="dismiss-button" class="style-scope ytd-brandconnect-popup-renderer"></div>\n</div>\n<div id="content" class="style-scope ytd-brandconnect-popup-renderer">\n</div>\n');a.content.insertBefore(_.w().content.cloneNode(!0),
a.content.firstChild);return I3E=a},{mode:1});var Pvi;var Hk=function(){return _.G.apply(this,arguments)||this};
_.b(Hk,_.G);_.Z=Hk.prototype;_.Z.configureRendererStamper=function(){return{"data.options":{id:"options",mapping:{checkboxSurveyOptionRenderer:"ytd-checkbox-survey-option-renderer"}}}};
_.Z.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.Z.dataChanged=function(){for(var a=0;a<this.getOptionRenderers().length;a++)this.notifyPath("data.options."+a+".checkboxSurveyOptionRenderer.checked"),this.set("data.options."+a+".checkboxSurveyOptionRenderer.checked",!1);this.updateSubmitButton(!1)};
_.Z.updateSubmitButton=function(a){this.set("data.submitButton.buttonRenderer.isDisabled",!a)};
_.Z.computeAlt=function(a){return _.cd(a)};
_.Z.onDismissTap=function(){_.ZF(this.hostElement,"yt-close-popup-action");this.data.dismissalEndpoint&&_.ab().resolve(_.j6).resolveCommand(this.data.dismissalEndpoint,{form:{element:this.hostElement}})};
_.Z.getOptionRenderers=function(a){return(a=a||this.data)&&a.options?a.options.reduce(function(z,I){I.checkboxSurveyOptionRenderer&&z.push(I.checkboxSurveyOptionRenderer);return z},[]):[]};
_.Z.onOptionChange=function(a){var z=this,I=!1;if(a.detail.checked)for(var J=this.getOptionRenderers().find(function(u){return u.value===a.detail.value}),r=this.getOptionRenderers(),P=0;P<r.length;P++){var N=r[P];
this.notifyPath("data.options."+P+".checkboxSurveyOptionRenderer.checked");N.checked&&((J==null?0:J.isExclusiveOption)?!N.isExclusiveOption:N.isExclusiveOption)?this.set("data.options."+P+".checkboxSurveyOptionRenderer.checked",!1):N.checked&&(I=!0)}else I=this.getOptionRenderers().some(function(u,E){z.notifyPath("data.options."+E+".checkboxSurveyOptionRenderer.checked");return u.checked});
this.updateSubmitButton(I)};
_.Z.onSubmitTap=function(){var a=this.getOptionRenderers().filter(function(P){return P.checked});
if(a.length!==0){var z=a.map(function(P){return P.responseEndpoint});
a=[];for(var I=1;I<z.length;I++){var J=void 0,r=(J=_.H(z[I],_.$K))==null?void 0:J.feedbackToken;r&&a.push(r)}z=[z[0]];a.length&&z.push({extra_feedback_tokens:a});_.N$(this.hostElement,z);_.ZF(this.hostElement,"yt-close-popup-action",["ytd-checkbox-survey-renderer"]);a=this.data&&this.data.submitActions||[];if(_.K("kevlar_command_handler_migration_killswitch"))_.tR(this.hostElement,a,this.hostElement);else for(a=_.C(a),z=a.next();!z.done;z=a.next())this.ytComponentBehavior.resolveCommand(z.value)}};
Hk.prototype.onOptionChange=Hk.prototype.onOptionChange;Hk.prototype.dataChanged=Hk.prototype.dataChanged;_.L([_.Q(_.iO.YtEventForwardingBehavior),_.p("design:type",Object)],Hk.prototype,"ytEventForwardingBehavior",void 0);_.L([_.Q(_.u4.YtRendererstamperBehavior),_.p("design:type",Object)],Hk.prototype,"ytRendererstamperBehavior",void 0);_.L([_.Q(_.Ms.YtComponentBehavior),_.p("design:type",Object)],Hk.prototype,"ytComponentBehavior",void 0);
_.L([_.Q(_.k.YtRendererBehavior),_.p("design:type",Object)],Hk.prototype,"ytRendererBehavior",void 0);_.L([_.Q(bOZ),_.p("design:type",Object)],Hk.prototype,"ytdHatsSurveyBehavior",void 0);_.L([_.x(),_.p("design:type",Object)],Hk.prototype,"data",void 0);_.L([_.Fe("data"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],Hk.prototype,"dataChanged",null);
_.L([_.gz("ytd-checkbox-survey-option-changed"),_.p("design:type",Function),_.p("design:paramtypes",[CustomEvent]),_.p("design:returntype")],Hk.prototype,"onOptionChange",null);_.L([_.U({is:"ytd-checkbox-survey-renderer",disableElementRegistration:!0})],Hk);
_.D(Hk,"ytd-checkbox-survey-renderer",function(){if(Pvi!==void 0)return Pvi;var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-checkbox-survey-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-checkbox-survey-renderer">\n  <yt-formatted-string text="[[data.question]]" class="style-scope ytd-checkbox-survey-renderer"></yt-formatted-string>\n  <yt-icon-button label="[[computeAlt(data.dismissalText)]]" on-click="onDismissTap" class="style-scope ytd-checkbox-survey-renderer">\n    <yt-icon icon="yt-icons:close" class="style-scope ytd-checkbox-survey-renderer"></yt-icon>\n  </yt-icon-button>\n</div>\n<div id="options" class="style-scope ytd-checkbox-survey-renderer"></div>\n<div id="footer" class="style-scope ytd-checkbox-survey-renderer">\n  <ytd-button-renderer data="[[data.submitButton.buttonRenderer]]" on-click="onSubmitTap" class="style-scope ytd-checkbox-survey-renderer">\n  </ytd-button-renderer>\n</div>\n');a.content.insertBefore(_.w().content.cloneNode(!0),
a.content.firstChild);return Pvi=a},{mode:1});var ZXM;var Cv0;var bt=function(){return _.G.apply(this,arguments)||this};
_.b(bt,_.G);_.L([_.Q(_.k.YtRendererBehavior),_.p("design:type",Object)],bt.prototype,"ytRendererBehavior",void 0);_.L([_.Q(HOE),_.p("design:type",Object)],bt.prototype,"ytdDismissalReasonBehavior",void 0);_.L([_.x(),_.p("design:type",Object)],bt.prototype,"data",void 0);_.L([_.U({is:"ytd-dismissal-reason-text-renderer",disableElementRegistration:!0})],bt);
_.D(bt,"ytd-dismissal-reason-text-renderer",function(){if(Cv0!==void 0)return Cv0;var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-dismissal-reason-text-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<tp-yt-paper-checkbox id="checkbox" class="style-scope ytd-dismissal-reason-text-renderer">\n  <yt-formatted-string text="[[data.text]]" class="style-scope ytd-dismissal-reason-text-renderer"></yt-formatted-string>\n</tp-yt-paper-checkbox>\n');a.content.insertBefore(_.w().content.cloneNode(!0),
a.content.firstChild);return Cv0=a},{mode:1});var NjZ;var hu=function(){return _.G.apply(this,arguments)||this};
_.b(hu,_.G);_.L([_.Q(_.k.YtRendererBehavior),_.p("design:type",Object)],hu.prototype,"ytRendererBehavior",void 0);_.L([_.Q(HOE),_.p("design:type",Object)],hu.prototype,"ytdDismissalReasonBehavior",void 0);_.L([_.x(),_.p("design:type",Object)],hu.prototype,"data",void 0);_.L([_.U({is:"ytd-dismissal-reason-video-renderer",disableElementRegistration:!0})],hu);
_.D(hu,"ytd-dismissal-reason-video-renderer",function(){if(NjZ!==void 0)return NjZ;var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-dismissal-reason-video-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<tp-yt-paper-checkbox id="checkbox" class="style-scope ytd-dismissal-reason-video-renderer">\n  <yt-formatted-string id="label" text="[[data.text]]" class="style-scope ytd-dismissal-reason-video-renderer">\n  </yt-formatted-string>\n</tp-yt-paper-checkbox>\n<div id="video" class="style-scope ytd-dismissal-reason-video-renderer">\n  <yt-img-shadow thumbnail="[[data.videoThumb]]" width="120" class="style-scope ytd-dismissal-reason-video-renderer"></yt-img-shadow>\n  <div id="video-metadata" class="style-scope ytd-dismissal-reason-video-renderer">\n    <yt-formatted-string id="video-title" ellipsis-truncate="" text="[[data.videoTitle]]" class="style-scope ytd-dismissal-reason-video-renderer">\n    </yt-formatted-string>\n    <yt-formatted-string id="video-creator" ellipsis-truncate="" text="[[data.creatorLine]]" class="style-scope ytd-dismissal-reason-video-renderer">\n    </yt-formatted-string>\n  </div>\n</div>\n');a.content.insertBefore(_.w().content.cloneNode(!0),
a.content.firstChild);return NjZ=a},{mode:1});var VG=function(){var a=_.G.apply(this,arguments)||this;a.darkerDarkTheme=_.K("web_darker_dark_theme");return a};
_.b(VG,_.G);_.Z=VG.prototype;_.Z.created=function(){this.selectedFeedbackTokens=new C8};
_.Z.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.Z.configureRendererStamper=function(){return{"data.reasons":{id:"reasons",mapping:{dismissalReasonTextRenderer:"ytd-dismissal-reason-text-renderer",dismissalReasonVideoRenderer:"ytd-dismissal-reason-video-renderer"}}}};
_.Z.dataChanged=function(){this.hasReasonsSelected=!1;this.selectedFeedbackTokens.clear()};
_.Z.onDismissalReasonSelected=function(a,z){_.PA(this.hostElement,"yt-invalidate-popup-tabbables");this.selectedFeedbackTokens.add(z);this.hasReasonsSelected=!0};
_.Z.onDismissalReasonDeselected=function(a,z){_.PA(this.hostElement,"yt-invalidate-popup-tabbables");this.selectedFeedbackTokens.delete(z);this.hasReasonsSelected=this.selectedFeedbackTokens.size!==0};
_.Z.onCancelTap=function(){_.ZF(this.hostElement,"yt-close-popup-action")};
_.Z.onSubmitTap=function(){var a=Array.from(this.selectedFeedbackTokens.values());this.data.submitFeedbackEndpoint&&(a={feedback_tokens:a},_.ab().resolve(_.j6).resolveCommand(this.data.submitFeedbackEndpoint,{form:Object.assign({},a,{element:this.hostElement})}));_.ZF(this.hostElement,"yt-close-popup-action")};
VG.prototype.onDismissalReasonDeselected=VG.prototype.onDismissalReasonDeselected;VG.prototype.onDismissalReasonSelected=VG.prototype.onDismissalReasonSelected;VG.prototype.dataChanged=VG.prototype.dataChanged;_.L([_.Q(_.u4.YtRendererstamperBehavior),_.p("design:type",Object)],VG.prototype,"ytRendererstamperBehavior",void 0);_.L([_.Q(_.k.YtRendererBehavior),_.p("design:type",Object)],VG.prototype,"ytRendererBehavior",void 0);_.L([_.x(),_.p("design:type",Object)],VG.prototype,"data",void 0);
_.L([_.x(),_.p("design:type",Boolean)],VG.prototype,"hasReasonsSelected",void 0);_.L([_.x(),_.p("design:type",C8)],VG.prototype,"selectedFeedbackTokens",void 0);_.L([_.x({reflectToAttribute:!0}),_.p("design:type",Object)],VG.prototype,"darkerDarkTheme",void 0);_.L([_.Fe("data"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],VG.prototype,"dataChanged",null);
_.L([_.gz("yt-dismissal-reason-selected"),_.p("design:type",Function),_.p("design:paramtypes",[CustomEvent,String]),_.p("design:returntype")],VG.prototype,"onDismissalReasonSelected",null);_.L([_.gz("yt-dismissal-reason-deselected"),_.p("design:type",Function),_.p("design:paramtypes",[CustomEvent,String]),_.p("design:returntype")],VG.prototype,"onDismissalReasonDeselected",null);_.L([_.U({is:"ytd-dismissal-follow-up-renderer",disableElementRegistration:!0})],VG);
_.D(VG,"ytd-dismissal-follow-up-renderer",function(){if(ZXM!==void 0)return ZXM;var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-dismissal-follow-up-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="content" class="style-scope ytd-dismissal-follow-up-renderer">\n  <yt-formatted-string id="title" text="[[data.dismissalReasonsPrompt]]" class="style-scope ytd-dismissal-follow-up-renderer">\n  </yt-formatted-string>\n  <div id="reasons" class="style-scope ytd-dismissal-follow-up-renderer"></div>\n</div>\n<div id="buttons" class="style-scope ytd-dismissal-follow-up-renderer">\n  <ytd-button-renderer id="cancel" data="[[data.cancelButton.buttonRenderer]]" on-tap="onCancelTap" class="style-scope ytd-dismissal-follow-up-renderer">\n  </ytd-button-renderer>\n  <ytd-button-renderer id="submit" data="[[data.submitButton.buttonRenderer]]" disabled="[[!hasReasonsSelected]]" on-tap="onSubmitTap" class="style-scope ytd-dismissal-follow-up-renderer">\n  </ytd-button-renderer>\n</div>\n');
a.content.insertBefore(_.w().content.cloneNode(!0),a.content.firstChild);return ZXM=a},{mode:1});var to4;var QG=function(){return _.G.apply(this,arguments)||this};
_.b(QG,_.G);_.Z=QG.prototype;_.Z.onCheckedChange=function(){this.multiselect||_.PA(this.hostElement,"yt-feedback-single-select-changed");_.PK(this.hostElement).querySelector("#freeform").focus();_.PA(this.hostElement,"yt-refit")};
_.Z.showTextBox=function(a,z){return a&&z};
_.Z.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))};
_.Z.updateDataCheckedFromBinding=function(a){this.set("data.checked",a.detail.value)};
_.Z.updateDataResultTextFromBinding=function(a){this.set("data.resultText",a.detail.value)};
QG.prototype.dataChanged=QG.prototype.dataChanged;_.L([_.Q(_.k.YtRendererBehavior),_.p("design:type",Object)],QG.prototype,"ytRendererBehavior",void 0);_.L([_.x(),_.p("design:type",Object)],QG.prototype,"data",void 0);_.L([_.x({value:!1}),_.p("design:type",Boolean)],QG.prototype,"multiselect",void 0);_.L([_.O8("data"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],QG.prototype,"dataChanged",null);
_.L([_.U({is:"ytd-feedback-option-renderer",disableElementRegistration:!0})],QG);
_.D(QG,"ytd-feedback-option-renderer",function(){if(to4!==void 0)return to4;var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-feedback-option-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<tp-yt-paper-radio-button class="choice style-scope ytd-feedback-option-renderer" checked="[[data.checked]]" hidden="[[multiselect]]" on-change="onCheckedChange" on-checked-changed="updateDataCheckedFromBinding">\n  [[getSimpleString(data.description)]]\n</tp-yt-paper-radio-button>\n<tp-yt-paper-checkbox class="choice style-scope ytd-feedback-option-renderer" checked="[[data.checked]]" hidden="[[!multiselect]]" on-change="onCheckedChange" on-checked-changed="updateDataCheckedFromBinding">\n  [[getSimpleString(data.description)]]\n</tp-yt-paper-checkbox>\n<tp-yt-paper-textarea id="freeform" hidden="[[!showTextBox(data.checked, data.allowFreeTextInput)]]" label="[[getSimpleString(data.freeTextHint)]]" maxlength="1000" use-v2-underline="" value="[[data.resultText]]" on-value-changed="updateDataResultTextFromBinding" class="style-scope ytd-feedback-option-renderer">\n</tp-yt-paper-textarea>\n');a.content.insertBefore(_.w().content.cloneNode(!0),
a.content.firstChild);return to4=a},{mode:1});var uEG;var SS=function(){return _.G.apply(this,arguments)||this};
_.b(SS,_.G);SS.prototype.configureRendererStamper=function(){return{"data.options":{id:"options",mapping:{feedbackOptionRenderer:{component:"ytd-feedback-option-renderer",properties:{multiselect:"[[data.multiSelect]]"}}}}}};
SS.prototype.onSingleSelectCheckedChanged=function(a){a=_.Yh(a);for(var z=0;z<this.data.options.length;z++)if(a.data!==_.H(this.data.options[z],nuE)){var I="data.options."+z+".feedbackOptionRenderer.checked";this.notifyPath(I);this.set(I,!1)}};
SS.prototype.onSingleSelectCheckedChanged=SS.prototype.onSingleSelectCheckedChanged;_.L([_.Q(_.k.YtRendererBehavior),_.p("design:type",Object)],SS.prototype,"ytRendererBehavior",void 0);_.L([_.Q(_.u4.YtRendererstamperBehavior),_.p("design:type",Object)],SS.prototype,"ytRendererstamperBehavior",void 0);_.L([_.x(),_.p("design:type",Object)],SS.prototype,"data",void 0);
_.L([_.gz("yt-feedback-single-select-changed"),_.p("design:type",Function),_.p("design:paramtypes",[Event]),_.p("design:returntype")],SS.prototype,"onSingleSelectCheckedChanged",null);_.L([_.U({is:"ytd-feedback-question-renderer",disableElementRegistration:!0})],SS);
_.D(SS,"ytd-feedback-question-renderer",function(){if(uEG!==void 0)return uEG;var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-feedback-question-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="question-text style-scope ytd-feedback-question-renderer">\n  [[getSimpleString(data.question)]]\n</div>\n<div id="options" class="style-scope ytd-feedback-question-renderer"></div>\n');a.content.insertBefore(_.w().content.cloneNode(!0),
a.content.firstChild);return uEG=a},{mode:1});var E$i;var xd=function(){return _.G.apply(this,arguments)||this};
_.b(xd,_.G);xd.prototype.configureRendererStamper=function(){return{"data.questions":{id:"questions",mapping:{feedbackQuestionRenderer:"ytd-feedback-question-renderer"}}}};
xd.prototype.getSelectedFeedbackResults=function(){for(var a={},z=0;z<this.data.questions.length;z++)for(var I=_.H(this.data.questions[z],sTY),J=0;J<I.options.length;J++){var r=_.H(I.options[J],nuE);r&&r.checked&&(a[r.optionKey]=r.resultText)}return a};
xd.prototype.onKeyUp=function(){var a=this;_.NK(_.GW,function(){_.PA(a.hostElement,"yt-refit")});
_.GW.start()};
xd.prototype.submitSurvey=function(){var a=this.getSelectedFeedbackResults();Object.keys(a).length>0&&this.data.submitFeedbackEndpoint&&(a={survey_results:a,is_feedback_token_unencrypted:!0},_.ab().resolve(_.j6).resolveCommand(this.data.submitFeedbackEndpoint,{form:Object.assign({},a,{element:this.hostElement})}))};
_.L([_.Q(_.k.YtRendererBehavior),_.p("design:type",Object)],xd.prototype,"ytRendererBehavior",void 0);_.L([_.Q(_.u4.YtRendererstamperBehavior),_.p("design:type",Object)],xd.prototype,"ytRendererstamperBehavior",void 0);_.L([_.x(),_.p("design:type",Object)],xd.prototype,"data",void 0);_.L([_.U({is:"ytd-feedback-survey-renderer",disableElementRegistration:!0})],xd);
_.D(xd,"ytd-feedback-survey-renderer",function(){if(E$i!==void 0)return E$i;var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-feedback-survey-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="questions" on-keyup="onKeyUp" class="style-scope ytd-feedback-survey-renderer"></div>\n<yt-formatted-string id="disclaimer" text="[[data.disclaimer]]" class="style-scope ytd-feedback-survey-renderer"></yt-formatted-string>\n');a.content.insertBefore(_.w().content.cloneNode(!0),
a.content.firstChild);return E$i=a},{mode:1});var Bjf;var g$z;var vk=function(){return _.G.apply(this,arguments)||this};
_.b(vk,_.G);vk.prototype.computeAlt=function(a){return _.cd(a)};
vk.prototype.submitResponse=function(){var a,z;(a=this.data)!=null&&a.feedbackToken&&((z=this.data)==null?void 0:z.nextStageIndex)!==void 0&&(_.Ct(this.hostElement,"yt-single-select-submit-feedback",[this.data.feedbackToken]),_.Ct(this.hostElement,"yt-survey-set-stage-index",[this.data.nextStageIndex]))};
vk.prototype.onClick=function(){this.submitResponse()};
vk.prototype.onClick=vk.prototype.onClick;_.L([_.Q(_.k.YtRendererBehavior),_.p("design:type",Object)],vk.prototype,"ytRendererBehavior",void 0);_.L([_.x(),_.p("design:type",Object)],vk.prototype,"data",void 0);_.L([_.x({reflectToAttribute:!0}),_.p("design:type",Boolean)],vk.prototype,"vertical",void 0);_.L([_.gz("click"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],vk.prototype,"onClick",null);
_.L([_.U({is:"ytd-single-select-answer-option-renderer",disableElementRegistration:!0})],vk);
_.D(vk,"ytd-single-select-answer-option-renderer",function(){if(g$z!==void 0)return g$z;var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-single-select-answer-option-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-icon-button alt="[[computeAlt(data.answerText)]]" hidden="[[!data.answerIcon.iconType]]" class="style-scope ytd-single-select-answer-option-renderer">\n  <yt-icon icon="[[data.answerIcon.iconType]]" class="style-scope ytd-single-select-answer-option-renderer"></yt-icon>\n</yt-icon-button>\n<yt-formatted-string text="[[data.answerText]]" class="style-scope ytd-single-select-answer-option-renderer"></yt-formatted-string>\n');a.content.insertBefore(_.w().content.cloneNode(!0),
a.content.firstChild);return g$z=a},{mode:1});var OXZ;var Gm=function(){var a=_.G.apply(this,arguments)||this;a.darkerDarkTheme=_.K("web_darker_dark_theme");a.actionMap={"yt-single-select-submit-feedback":"submitFeedback"};return a};
_.b(Gm,_.G);Gm.prototype.configureRendererStamper=function(){return{"data.answerOptions":{id:"options",mapping:{singleSelectAnswerOptionRenderer:{component:"ytd-single-select-answer-option-renderer",properties:{vertical:"[[vertical]]"}}}}}};
Gm.prototype.dataChanged=function(){var a,z;this.vertical=((z=(a=this.data)==null?void 0:a.answerOrientation)!=null?z:"SURVEY_LAYOUT_TYPE_HORIZONTAL")==="SURVEY_LAYOUT_TYPE_VERTICAL"};
Gm.prototype.submitFeedback=function(a){var z;((z=this.data)==null?0:z.responseEndpoint)&&a&&_.N$(this.hostElement,[this.data.responseEndpoint,{extra_feedback_tokens:[a]}])};
Gm.prototype.dataChanged=Gm.prototype.dataChanged;_.L([_.Q(_.Hc.YtActionHandlerBehavior),_.p("design:type",Object)],Gm.prototype,"ytActionHandlerBehavior",void 0);_.L([_.Q(_.iO.YtEventForwardingBehavior),_.p("design:type",Object)],Gm.prototype,"eventForwardingBehavior",void 0);_.L([_.Q(_.k.YtRendererBehavior),_.p("design:type",Object)],Gm.prototype,"ytRendererBehavior",void 0);_.L([_.Q(_.u4.YtRendererstamperBehavior),_.p("design:type",Object)],Gm.prototype,"ytRendererstamperBehavior",void 0);
_.L([_.x(),_.p("design:type",Object)],Gm.prototype,"data",void 0);_.L([_.x({reflectToAttribute:!0}),_.p("design:type",Boolean)],Gm.prototype,"vertical",void 0);_.L([_.x({reflectToAttribute:!0}),_.p("design:type",Object)],Gm.prototype,"darkerDarkTheme",void 0);_.L([_.Fe("data"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],Gm.prototype,"dataChanged",null);_.L([_.U({is:"ytd-single-select-question-renderer",disableElementRegistration:!0})],Gm);
_.D(Gm,"ytd-single-select-question-renderer",function(){if(OXZ!==void 0)return OXZ;var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-single-select-question-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="question" class="style-scope ytd-single-select-question-renderer">\n  <yt-formatted-string text="[[data.questionText]]" class="style-scope ytd-single-select-question-renderer"></yt-formatted-string>\n</div>\n<div id="options" class="style-scope ytd-single-select-question-renderer"></div>\n');
a.content.insertBefore(_.w().content.cloneNode(!0),a.content.firstChild);return OXZ=a},{mode:1});var $d=function(){var a=_.G.apply(this,arguments)||this;a.actionMap={"yt-survey-set-stage-index":"jumpToStage"};return a};
_.b($d,_.G);_.Z=$d.prototype;_.Z.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"}}}};
_.Z.dataChanged=function(){this.jumpToStage(0)};
_.Z.jumpToStage=function(a){var z,I;if((z=this.data)==null?0:(I=z.stages)==null?0:I[a])this.currentStage=this.data.stages[a],this.refitAfterRender()};
_.Z.computeAlt=function(a){return _.cd(a)};
_.Z.computeSimpleMessage=function(a){var z;return(z=_.H(a,H_f))==null?void 0:z.messageText};
_.Z.computeHideDismiss=function(a){var z;return(z=_.H(a,MPG))==null?void 0:z.hideParentDismissButton};
_.Z.onDismissTap=function(){_.ZF(this.hostElement,"yt-close-popup-action");_.H(this.currentStage,H_f)||this.data.dismissalEndpoint&&_.ab().resolve(_.j6).resolveCommand(this.data.dismissalEndpoint,{form:{element:this.hostElement}})};
_.Z.refitAfterRender=function(){var a=this;_.Yv(this,function(){_.PA(a.hostElement,"yt-refit")})};
$d.prototype.dataChanged=$d.prototype.dataChanged;_.L([_.Q(_.iO.YtEventForwardingBehavior),_.p("design:type",Object)],$d.prototype,"eventForwardingBehavior",void 0);_.L([_.Q(_.k.YtRendererBehavior),_.p("design:type",Object)],$d.prototype,"ytRendererBehavior",void 0);_.L([_.Q(_.u4.YtRendererstamperBehavior),_.p("design:type",Object)],$d.prototype,"ytRendererstamperBehavior",void 0);_.L([_.Q(_.Hc.YtActionHandlerBehavior),_.p("design:type",Object)],$d.prototype,"ytActionHandlerBehavior",void 0);
_.L([_.Q(bOZ),_.p("design:type",Object)],$d.prototype,"ytdHatsSurveyBehavior",void 0);_.L([_.x(),_.p("design:type",Object)],$d.prototype,"data",void 0);_.L([_.x(),_.p("design:type",Object)],$d.prototype,"currentStage",void 0);_.L([_.Fe("data"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],$d.prototype,"dataChanged",null);_.L([_.U({is:"ytd-multi-stage-survey-renderer",disableElementRegistration:!0})],$d);
_.D($d,"ytd-multi-stage-survey-renderer",function(){if(Bjf!==void 0)return Bjf;var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-multi-stage-survey-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" hidden="[[computeHideDismiss(currentStage)]]" class="style-scope ytd-multi-stage-survey-renderer">\n  <yt-icon-button label="[[computeAlt(data.dismissalText)]]" on-click="onDismissTap" class="style-scope ytd-multi-stage-survey-renderer">\n    <yt-icon icon="yt-icons:close" class="style-scope ytd-multi-stage-survey-renderer"></yt-icon>\n  </yt-icon-button>\n</div>\n<div id="current-stage" class="style-scope ytd-multi-stage-survey-renderer"></div>\n<yt-formatted-string id="simple-message" text="[[computeSimpleMessage(currentStage)]]" class="style-scope ytd-multi-stage-survey-renderer">\n</yt-formatted-string>\n');
a.content.insertBefore(_.w().content.cloneNode(!0),a.content.firstChild);return Bjf=a},{mode:1});var f3G;var Xt=function(){return _.G.apply(this,arguments)||this};
_.b(Xt,_.G);Xt.prototype.computeAlt=function(a){return _.cd(a)};
Xt.prototype.submitResponse=function(){this.data&&this.data.submissionEndpoint&&(_.ab().resolve(_.j6).resolveCommand(this.data.submissionEndpoint,{form:{element:this.hostElement}}),_.ZF(this.hostElement,"yt-close-popup-action",["ytd-single-option-survey-renderer"]),this.ytdReduxBehavior.dispatch(_.sGe(!1)))};
Xt.prototype.onTap=function(){this.vertical&&this.submitResponse()};
Xt.prototype.onTap=Xt.prototype.onTap;_.L([_.Q(_.k.YtRendererBehavior),_.p("design:type",Object)],Xt.prototype,"ytRendererBehavior",void 0);_.L([_.Q(_.pV),_.p("design:type",Object)],Xt.prototype,"ytdReduxBehavior",void 0);_.L([_.x(),_.p("design:type",Object)],Xt.prototype,"data",void 0);_.L([_.x({reflectToAttribute:!0}),_.p("design:type",Boolean)],Xt.prototype,"vertical",void 0);
_.L([_.gz("tap"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],Xt.prototype,"onTap",null);_.L([_.U({is:"ytd-single-option-survey-option-renderer",disableElementRegistration:!0})],Xt);
_.D(Xt,"ytd-single-option-survey-option-renderer",function(){if(f3G!==void 0)return f3G;var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-single-option-survey-option-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-icon-button alt="[[computeAlt(data.option)]]" hidden="[[!data.icon.iconType]]" on-tap="submitResponse" class="style-scope ytd-single-option-survey-option-renderer">\n  <yt-icon icon="[[data.icon.iconType]]" class="style-scope ytd-single-option-survey-option-renderer"></yt-icon>\n</yt-icon-button>\n<yt-formatted-string text="[[data.option]]" class="style-scope ytd-single-option-survey-option-renderer"></yt-formatted-string>\n');a.content.insertBefore(_.w().content.cloneNode(!0),
a.content.firstChild);return f3G=a},{mode:1});var A50;var Tm=function(){return _.G.apply(this,arguments)||this};
_.b(Tm,_.G);_.Z=Tm.prototype;_.Z.configureRendererStamper=function(){return{"data.options":{id:"options",mapping:{singleOptionSurveyOptionRenderer:{component:"ytd-single-option-survey-option-renderer",properties:{vertical:"[[vertical]]"}}}}}};
_.Z.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.Z.dataChanged=function(){var a,z;this.vertical=(((a=this.data)==null?void 0:(z=a.surveyOrientation)==null?void 0:z.type)||"HORIZONTAL")==="VERTICAL"};
_.Z.computeAlt=function(a){return _.cd(a)};
_.Z.onDismissTap=function(){_.ZF(this.hostElement,"yt-close-popup-action");this.data.dismissalEndpoint&&_.ab().resolve(_.j6).resolveCommand(this.data.dismissalEndpoint,{form:{element:this.hostElement}});this.ytdReduxBehavior.dispatch(_.sGe(!1))};
Tm.prototype.dataChanged=Tm.prototype.dataChanged;_.L([_.Q(_.iO.YtEventForwardingBehavior),_.p("design:type",Object)],Tm.prototype,"eventForwardingBehavior",void 0);_.L([_.Q(_.k.YtRendererBehavior),_.p("design:type",Object)],Tm.prototype,"ytRendererBehavior",void 0);_.L([_.Q(_.u4.YtRendererstamperBehavior),_.p("design:type",Object)],Tm.prototype,"ytRendererstamperBehavior",void 0);_.L([_.Q(bOZ),_.p("design:type",Object)],Tm.prototype,"ytdHatsSurveyBehavior",void 0);
_.L([_.Q(_.pV),_.p("design:type",Object)],Tm.prototype,"ytdReduxBehavior",void 0);_.L([_.x(),_.p("design:type",Object)],Tm.prototype,"data",void 0);_.L([_.x({reflectToAttribute:!0}),_.p("design:type",Boolean)],Tm.prototype,"vertical",void 0);_.L([_.Fe("data"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],Tm.prototype,"dataChanged",null);_.L([_.U({is:"ytd-single-option-survey-renderer",disableElementRegistration:!0})],Tm);
_.D(Tm,"ytd-single-option-survey-renderer",function(){if(A50!==void 0)return A50;var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-single-option-survey-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-single-option-survey-renderer">\n  <yt-formatted-string text="[[data.question]]" class="style-scope ytd-single-option-survey-renderer"></yt-formatted-string>\n  <yt-icon-button label="[[computeAlt(data.dismissalText)]]" on-tap="onDismissTap" class="style-scope ytd-single-option-survey-renderer">\n    <yt-icon icon="yt-icons:close" class="style-scope ytd-single-option-survey-renderer"></yt-icon>\n  </yt-icon-button>\n</div>\n<div id="options" class="style-scope ytd-single-option-survey-renderer"></div>\n');
a.content.insertBefore(_.w().content.cloneNode(!0),a.content.firstChild);return A50=a},{mode:1});var sm0;var dS=function(){var a=_.G.apply(this,arguments)||this;a.darkerDarkTheme=_.K("web_darker_dark_theme");return a};
_.b(dS,_.G);dS.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
dS.prototype.onDismissTap=function(){_.ZF(this.hostElement,"yt-close-popup-action")};
dS.prototype.onNavigate=function(){_.ZF(this.hostElement,"yt-close-popup-action")};
dS.prototype.onNavigate=dS.prototype.onNavigate;_.L([_.Q(_.k.YtRendererBehavior),_.p("design:type",Object)],dS.prototype,"ytRendererBehavior",void 0);_.L([_.Q(_.iO.YtEventForwardingBehavior),_.p("design:type",Object)],dS.prototype,"ytEventForwardingBehavior",void 0);_.L([_.x(),_.p("design:type",Object)],dS.prototype,"data",void 0);_.L([_.x({reflectToAttribute:!0}),_.p("design:type",Object)],dS.prototype,"darkerDarkTheme",void 0);
_.L([_.gz("yt-navigate"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],dS.prototype,"onNavigate",null);_.L([_.U({is:"ytd-survey-follow-up-renderer",disableElementRegistration:!0})],dS);
_.D(dS,"ytd-survey-follow-up-renderer",function(){if(sm0!==void 0)return sm0;var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-survey-follow-up-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-survey-follow-up-renderer">\n  <yt-formatted-string text="[[data.description]]" class="style-scope ytd-survey-follow-up-renderer"></yt-formatted-string>\n  <ytd-button-renderer data="[[data.dismissButton.buttonRenderer]]" on-tap="onDismissTap" class="style-scope ytd-survey-follow-up-renderer">\n  </ytd-button-renderer>\n</div>\n<ytd-button-renderer align-by-text="" data="[[data.followUpButton.buttonRenderer]]" hidden="[[!data.followUpButton.buttonRenderer]]" class="style-scope ytd-survey-follow-up-renderer">\n</ytd-button-renderer>\n');a.content.insertBefore(_.w().content.cloneNode(!0),
a.content.firstChild);return sm0=a},{mode:1});var n$i;var KaZ;var Fai;var Wk=function(){var a=_.G.apply(this,arguments)||this;a.polymer2="Element"in Polymer;return a};
_.b(Wk,_.G);_.Z=Wk.prototype;_.Z.ready=function(){this.secondsEl.addEventListener("blur",this.formatSeconds.bind(this))};
_.Z.secondsChanged=function(){this.secondsEl.focused||this.formatSeconds()};
_.Z.formatSeconds=function(){this.seconds.length===1&&(this.seconds="0"+this.seconds)};
_.Z.minutesChangedForBinding=function(){this.hostElement.dispatchEvent(new _.eY("minutes-changed",this.minutes))};
_.Z.secondsChangedForBinding=function(){this.hostElement.dispatchEvent(new _.eY("seconds-changed",this.seconds))};
_.Z.updateMinutesFromBinding=function(a){this.minutes=a.detail.value};
_.Z.updateSecondsFromBinding=function(a){this.seconds=a.detail.value};
Wk.prototype.secondsChangedForBinding=Wk.prototype.secondsChangedForBinding;Wk.prototype.minutesChangedForBinding=Wk.prototype.minutesChangedForBinding;Wk.prototype.secondsChanged=Wk.prototype.secondsChanged;_.L([_.x(),_.p("design:type",String)],Wk.prototype,"minutes",void 0);_.L([_.x(),_.p("design:type",String)],Wk.prototype,"seconds",void 0);_.L([_.x({reflectToAttribute:!0}),_.p("design:type",Boolean)],Wk.prototype,"polymer2",void 0);
_.L([_.A3("#seconds"),_.p("design:type",Object)],Wk.prototype,"secondsEl",void 0);_.L([_.O8("seconds"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],Wk.prototype,"secondsChanged",null);_.L([_.O8("minutes"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],Wk.prototype,"minutesChangedForBinding",null);
_.L([_.O8("seconds"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],Wk.prototype,"secondsChangedForBinding",null);_.L([_.dz({is:"yt-timestamp-input",disableElementRegistration:!0})],Wk);
_.D(Wk,"yt-timestamp-input",function(){if(Fai===void 0){var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-timestamp-input--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.yt_timestamp_input.yt.timestamp.input.css.js--\x3e<tp-yt-paper-input id="minutes" allowed-pattern="[0-9]" maxlength="3" no-label-float="" prevent-invalid-input="" use-v2-underline="" value="[[minutes]]" on-value-changed="updateMinutesFromBinding" class="style-scope yt-timestamp-input">\n</tp-yt-paper-input>\n<span id="separator" class="style-scope yt-timestamp-input"> : </span>\n<tp-yt-paper-input id="seconds" allowed-pattern="[0-9]" maxlength="2" no-label-float="" prevent-invalid-input="" use-v2-underline="" value="[[seconds]]" on-value-changed="updateSecondsFromBinding" class="style-scope yt-timestamp-input">\n</tp-yt-paper-input>\n');a.content.insertBefore(_.w().content.cloneNode(!0),
a.content.firstChild);var z=a.content,I=z.insertBefore;KaZ===void 0&&(KaZ=document.createElement("template"));var J=KaZ;I.call(z,J.content.cloneNode(!0),a.content.firstChild);Fai=a}a=Fai;return a},{mode:2});var or=function(){return _.G.apply(this,arguments)||this};
_.b(or,_.G);_.Z=or.prototype;_.Z.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");this.JSC$20204_scroller.dialogElement=this.hostElement.parentNode};
_.Z.dataChanged=function(){var a=this;this.description.value="";this.seconds=this.minutes=this.fullName.value="";this.toggleSubmitButton(!1);this.showTimestamp&&_.IK().getPlayerPromise().then(function(z){z=z.getCurrentTime();a.minutes=Math.floor(z/60).toString();a.seconds=(Math.floor(z)%60).toString()})};
_.Z.onTapSubmit=function(a){a.stopPropagation();this.serviceEndpoint&&!this.get("submitButton.isDisabled")&&(a={flag_description:this.descriptionText.trim(),flag_issue_type:this.issueType,flag_affiliation:this.affiliation},this.fullNameText&&(a.flag_full_name=this.fullNameText.trim()),this.showTimestamp&&(a.minutes=this.minutes,a.seconds=this.seconds),_.ab().resolve(_.j6).resolveCommand(this.serviceEndpoint,{form:Object.assign({},a,{element:this.hostElement})}))};
_.Z.onYtServiceRequestSent=function(){this.toggleSubmitButton(!1)};
_.Z.onYtServiceRequestCompleted=function(a,z){z=z.actions;if(Array.isArray(z))for(var I=0,J=z.length;I<J;I++)_.H(z[I],_.G7)&&(a.stopPropagation(),this.hostElement.parentElement.close(),this.ytOpenPopupBehavior.openPopup(z[I]))};
_.Z.onYtServiceRequestError=function(){this.toggleSubmitButton(!0)};
_.Z.toggleSubmitButton=function(a){this.set("submitButton.isDisabled",!a)};
_.Z.handleInput=function(){var a=this.issueType,z=this.affiliation,I=this.minutes,J=this.seconds;I=!this.showTimestamp||!!I&&!!J;this.toggleSubmitButton(!!this.descriptionText&&!!a&&!!z&&I)};
_.Z.computeServiceEndpoint=function(a){return this.get("submitButton.buttonRenderer.serviceEndpoint",a)};
_.Z.computeSubmitButton=function(a){(a=this.get("submitButton.buttonRenderer",a))&&(a=Object.assign({},a,{serviceEndpoint:void 0}));return a};
_.Z.computeShowTimestamp=function(a){return!!a};
_.Z.onValueChangedForIssueType=function(a){this.issueType=a.detail.value};
_.Z.onValueChangedForAffiliation=function(a){this.affiliation=a.detail.value};
_.Z.updateDescriptionTextFromBinding=function(a){this.descriptionText=a.detail.value};
_.Z.updateFullNameTextFromBinding=function(a){this.fullNameText=a.detail.value};
_.Z.updateMinutesFromBinding=function(a){this.minutes=a.detail.value};
_.Z.updateSecondsFromBinding=function(a){this.seconds=a.detail.value};
or.prototype.handleInput=or.prototype.handleInput;or.prototype.onYtServiceRequestError=or.prototype.onYtServiceRequestError;or.prototype.onYtServiceRequestCompleted=or.prototype.onYtServiceRequestCompleted;or.prototype.onYtServiceRequestSent=or.prototype.onYtServiceRequestSent;or.prototype.dataChanged=or.prototype.dataChanged;_.L([_.Q(_.K_.YtOpenPopupBehavior),_.p("design:type",Object)],or.prototype,"ytOpenPopupBehavior",void 0);
_.L([_.Q(_.k.YtRendererBehavior),_.p("design:type",Object)],or.prototype,"ytRendererBehavior",void 0);_.L([_.A3("#scroller"),_.p("design:type",Object)],or.prototype,"JSC$20204_scroller",void 0);_.L([_.A3("#description"),_.p("design:type",HTMLInputElement)],or.prototype,"description",void 0);_.L([_.A3("#full-name"),_.p("design:type",Object)],or.prototype,"fullName",void 0);_.L([_.x(),_.p("design:type",Object)],or.prototype,"data",void 0);
_.L([_.x({computed:"computeShowTimestamp(data.timestampLabel)"}),_.p("design:type",Boolean)],or.prototype,"showTimestamp",void 0);_.L([_.x({readOnly:!0,computed:"computeServiceEndpoint(data)"}),_.p("design:type",Object)],or.prototype,"serviceEndpoint",void 0);_.L([_.x({computed:"computeSubmitButton(data)"}),_.p("design:type",Object)],or.prototype,"submitButton",void 0);_.L([_.x(),_.p("design:type",String)],or.prototype,"descriptionText",void 0);
_.L([_.x(),_.p("design:type",Number)],or.prototype,"issueType",void 0);_.L([_.x(),_.p("design:type",Number)],or.prototype,"affiliation",void 0);_.L([_.x(),_.p("design:type",String)],or.prototype,"fullNameText",void 0);_.L([_.x(),_.p("design:type",String)],or.prototype,"minutes",void 0);_.L([_.x(),_.p("design:type",String)],or.prototype,"seconds",void 0);_.L([_.O8("data"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],or.prototype,"dataChanged",null);
_.L([_.gz("yt-service-request-sent"),_.p("design:type",Function),_.p("design:paramtypes",[CustomEvent,_.lJ]),_.p("design:returntype")],or.prototype,"onYtServiceRequestSent",null);_.L([_.gz("yt-service-request-completed"),_.p("design:type",Function),_.p("design:paramtypes",[CustomEvent,_.Yq]),_.p("design:returntype")],or.prototype,"onYtServiceRequestCompleted",null);
_.L([_.gz("yt-service-request-error"),_.p("design:type",Function),_.p("design:paramtypes",[CustomEvent]),_.p("design:returntype")],or.prototype,"onYtServiceRequestError",null);_.L([_.O8("descriptionText","issueType","affiliation","fullNameText","minutes","seconds"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],or.prototype,"handleInput",null);_.L([_.U({is:"ytd-legal-report-details-form-renderer",disableElementRegistration:!0})],or);
_.D(or,"ytd-legal-report-details-form-renderer",function(){if(n$i!==void 0)return n$i;var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-legal-report-details-form-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<h2 id="title" class="style-scope ytd-legal-report-details-form-renderer">[[getSimpleString(data.title)]]</h2>\n<tp-yt-paper-dialog-scrollable id="scroller" class="style-scope ytd-legal-report-details-form-renderer">\n  <template is="dom-if" if="[[showTimestamp]]" class="style-scope ytd-legal-report-details-form-renderer">\n    <label id="timestamp" class="style-scope ytd-legal-report-details-form-renderer">\n      [[getSimpleString(data.timestampLabel)]]\n      <yt-timestamp-input minutes="[[minutes]]" seconds="[[seconds]]" on-minutes-changed="updateMinutesFromBinding" on-seconds-changed="updateSecondsFromBinding" class="style-scope ytd-legal-report-details-form-renderer">\n      </yt-timestamp-input>\n    </label>\n  </template>\n  <div id="description-box" class="style-scope ytd-legal-report-details-form-renderer">\n    <tp-yt-paper-input-container no-label-float="true" use-v2-underline="" class="style-scope ytd-legal-report-details-form-renderer">\n      <tp-yt-iron-autogrow-textarea id="description" class="paper-input-input style-scope ytd-legal-report-details-form-renderer" slot="input" aria-label$="[[getSimpleString(data.descriptionHint)]]" maxlength$="[[data.maxDescriptionChars]]" placeholder="[[getSimpleString(data.descriptionHint)]]" required="true" rows="4" value="[[descriptionText]]" on-value-changed="updateDescriptionTextFromBinding">\n      </tp-yt-iron-autogrow-textarea>\n      <tp-yt-paper-input-char-counter slot="add-on" class="style-scope ytd-legal-report-details-form-renderer"></tp-yt-paper-input-char-counter>\n    </tp-yt-paper-input-container>\n  </div>\n  <ytd-dropdown-renderer id="issue-type" data="[[data.issueTypeDropdown.dropdownRenderer]]" value="[[issueType]]" on-value-changed="onValueChangedForIssueType" class="style-scope ytd-legal-report-details-form-renderer">\n  </ytd-dropdown-renderer>\n  <ytd-dropdown-renderer id="affiliation" data="[[data.affiliationDropdown.dropdownRenderer]]" value="[[affiliation]]" on-value-changed="onValueChangedForAffiliation" class="style-scope ytd-legal-report-details-form-renderer">\n  </ytd-dropdown-renderer>\n  <tp-yt-paper-input id="full-name" maxlength="[[data.maxNameChars]]" placeholder="[[getSimpleString(data.nameHint)]]" use-v2-underline="" value="[[fullNameText]]" on-value-changed="updateFullNameTextFromBinding" class="style-scope ytd-legal-report-details-form-renderer">\n  </tp-yt-paper-input>\n  <div id="name-subtext" class="style-scope ytd-legal-report-details-form-renderer">[[getSimpleString(data.nameSubtext)]]</div>\n  <div id="footer-text" class="style-scope ytd-legal-report-details-form-renderer">[[getSimpleString(data.footerText)]]</div>\n</tp-yt-paper-dialog-scrollable>\n<div class="footer style-scope ytd-legal-report-details-form-renderer">\n  <div id="required-label" class="style-scope ytd-legal-report-details-form-renderer">[[getSimpleString(data.requiredLabel)]]</div>\n  <div class="buttons style-scope ytd-legal-report-details-form-renderer">\n    <yt-button-renderer id="cancel-button" data="[[data.cancelButton.buttonRenderer]]" dialog-dismiss="" class="style-scope ytd-legal-report-details-form-renderer">\n    </yt-button-renderer>\n    <yt-button-renderer id="submit-button" data="[[submitButton]]" dialog-confirm="" on-click="onTapSubmit" class="style-scope ytd-legal-report-details-form-renderer">\n    </yt-button-renderer>\n  </div>\n</div>\n');
a.content.insertBefore(_.w().content.cloneNode(!0),a.content.firstChild);return n$i=a},{mode:1});var HXZ;var Uo=function(){var a=_.G.apply(this,arguments)||this;a.actionMap={"yt-signal-action-submit-form":"handleSignalActionSubmitForm","yt-signal-action-submit-popup-form-fields":"handleSignalActionSubmitPopupFormFields"};return a};
_.b(Uo,_.G);Uo.prototype.configureRendererStamper=function(){return{"data.form":{id:"form",mapping:{formRenderer:"yt-form-renderer"}}}};
Uo.prototype.handleSignalActionSubmitForm=function(){if(this.formRenderer){var a=this.formRenderer.getForm();a&&this.data.submitEndpoint&&(_.ab().resolve(_.j6).resolveCommand(this.data.submitEndpoint,{form:Object.assign({},a,{element:this.hostElement})}),_.ZF(this.hostElement,"yt-close-popup-action"))}};
Uo.prototype.handleSignalActionSubmitPopupFormFields=function(){this.formRenderer&&(this.formRenderer.submitFormFields(),_.ZF(this.hostElement,"yt-close-popup-action"))};
Uo.prototype.onPopupClosed=function(){this.formRenderer&&this.formRenderer.reset()};
Uo.prototype.onPopupClosed=Uo.prototype.onPopupClosed;_.L([_.Q(_.iO.YtEventForwardingBehavior),_.p("design:type",Object)],Uo.prototype,"ytEventForwardingBehavior",void 0);_.L([_.Q(_.u4.YtRendererstamperBehavior),_.p("design:type",Object)],Uo.prototype,"ytRendererstamperBehavior",void 0);_.L([_.Q(_.Hc.YtActionHandlerBehavior),_.p("design:type",Object)],Uo.prototype,"ytActionHandlerBehavior",void 0);_.L([_.Q(_.k.YtRendererBehavior),_.p("design:type",Object)],Uo.prototype,"ytRendererBehavior",void 0);
_.L([_.A3("yt-form-renderer"),_.p("design:type",Object)],Uo.prototype,"formRenderer",void 0);_.L([_.x(),_.p("design:type",Object)],Uo.prototype,"data",void 0);_.L([_.gz("yt-popup-closed"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],Uo.prototype,"onPopupClosed",null);_.L([_.U({is:"ytd-form-popup-content",disableElementRegistration:!0})],Uo);
_.D(Uo,"ytd-form-popup-content",function(){if(HXZ!==void 0)return HXZ;var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-form-popup-content--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="form" class="style-scope ytd-form-popup-content"></div>');a.content.insertBefore(_.w().content.cloneNode(!0),a.content.firstChild);return HXZ=a},{mode:1});var bXZ;var DD=function(){return _.G.apply(this,arguments)||this};
_.b(DD,_.G);DD.prototype.configureRendererStamper=function(){return{"data.buttons":{id:"buttons",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
DD.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
DD.prototype.onPopupOpened=function(){_.PA(this.hostElement,"yt-invalidate-popup-tabbables")};
DD.prototype.onYtServiceRequestCompleted=function(a,z){z.data&&z.data.success&&(this.set("data.buttons.1.buttonRenderer.isDisabled",!1),_.PA(this.hostElement,"yt-invalidate-popup-tabbables"))};
DD.prototype.onYtServiceRequestCompleted=DD.prototype.onYtServiceRequestCompleted;DD.prototype.onPopupOpened=DD.prototype.onPopupOpened;_.L([_.Q(_.iO.YtEventForwardingBehavior),_.p("design:type",Object)],DD.prototype,"ytEventForwardingBehavior",void 0);_.L([_.Q(_.u4.YtRendererstamperBehavior),_.p("design:type",Object)],DD.prototype,"ytRendererstamperBehavior",void 0);_.L([_.Q(_.k.YtRendererBehavior),_.p("design:type",Object)],DD.prototype,"ytRendererBehavior",void 0);
_.L([_.x(),_.p("design:type",Object)],DD.prototype,"data",void 0);_.L([_.gz("yt-popup-opened"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],DD.prototype,"onPopupOpened",null);_.L([_.gz("yt-service-request-completed"),_.p("design:type",Function),_.p("design:paramtypes",[CustomEvent,_.Yq]),_.p("design:returntype")],DD.prototype,"onYtServiceRequestCompleted",null);_.L([_.U({is:"ytd-form-popup-renderer",disableElementRegistration:!0})],DD);
_.D(DD,"ytd-form-popup-renderer",function(){if(bXZ!==void 0)return bXZ;var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-form-popup-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="title" class="style-scope ytd-form-popup-renderer">[[getSimpleString(data.title)]]</div>\n<ytd-form-popup-content data="[[data]]" class="style-scope ytd-form-popup-renderer"></ytd-form-popup-content>\n<div id="buttons" class="style-scope ytd-form-popup-renderer"></div>\n');
a.content.insertBefore(_.w().content.cloneNode(!0),a.content.firstChild);return bXZ=a},{mode:1});var hA0;var Rr=function(){var a=_.G.apply(this,arguments)||this;a.isLoading=!1;return a};
_.b(Rr,_.G);_.Z=Rr.prototype;_.Z.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");A$0(this.hostElement)};
_.Z.onYtServiceRequestSent=function(){this.isLoading=!0};
_.Z.onYtServiceRequestCompleted=function(){_.ZF(this.hostElement,"yt-close-popup-action",["ytd-gaming-account-link-confirm-dialog-renderer"])};
_.Z.fireOnCloseActions=function(){this.isLoading=!1;this.data&&this.data.onClosedActions&&_.tR(this.hostElement,this.data.onClosedActions,this.hostElement)};
_.Z.closePopupHandler=function(){this.fireOnCloseActions()};
_.Z.onHeaderImageChanged=function(){if(this.data){this.data.headerImage?this.hostElement.setAttribute("dialog-with-header-image",""):this.hostElement.removeAttribute("dialog-with-header-image");var a=this.get("data.headerImage.thumbnails");a&&(a=_.r4(a,this.hostElement.clientWidth),this.header.style.backgroundImage="url("+a+")")}};
_.Z.onYtNavigate=function(a){(a=_.Yh(a))&&a.parentElement===this.confirmButton&&this.hostElement.parentElement&&this.hostElement.parentElement.close()};
Rr.prototype.onYtNavigate=Rr.prototype.onYtNavigate;Rr.prototype.onHeaderImageChanged=Rr.prototype.onHeaderImageChanged;Rr.prototype.closePopupHandler=Rr.prototype.closePopupHandler;Rr.prototype.onYtServiceRequestCompleted=Rr.prototype.onYtServiceRequestCompleted;Rr.prototype.onYtServiceRequestSent=Rr.prototype.onYtServiceRequestSent;_.L([_.Q(_.k.YtRendererBehavior),_.p("design:type",Object)],Rr.prototype,"ytRendererBehavior",void 0);
_.L([_.Q(_.iO.YtEventForwardingBehavior),_.p("design:type",Object)],Rr.prototype,"ytEventForwardingBehavior",void 0);_.L([_.x(),_.p("design:type",Object)],Rr.prototype,"data",void 0);_.L([_.x({reflectToAttribute:!0}),_.p("design:type",Object)],Rr.prototype,"isLoading",void 0);_.L([_.A3("#header"),_.p("design:type",HTMLDivElement)],Rr.prototype,"header",void 0);_.L([_.A3("#confirm-button"),_.p("design:type",_.vc)],Rr.prototype,"confirmButton",void 0);
_.L([_.gz("yt-service-request-sent"),_.p("design:type",Function),_.p("design:paramtypes",[CustomEvent]),_.p("design:returntype")],Rr.prototype,"onYtServiceRequestSent",null);_.L([_.gz("yt-service-request-completed"),_.p("design:type",Function),_.p("design:paramtypes",[CustomEvent]),_.p("design:returntype")],Rr.prototype,"onYtServiceRequestCompleted",null);
_.L([_.gz("yt-popup-closed"),_.p("design:type",Function),_.p("design:paramtypes",[CustomEvent,Object]),_.p("design:returntype")],Rr.prototype,"closePopupHandler",null);_.L([_.O8("data.headerImage"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],Rr.prototype,"onHeaderImageChanged",null);_.L([_.gz("yt-navigate"),_.p("design:type",Function),_.p("design:paramtypes",[CustomEvent]),_.p("design:returntype")],Rr.prototype,"onYtNavigate",null);
_.L([_.U({is:"ytd-gaming-account-link-confirm-dialog-renderer",disableElementRegistration:!0})],Rr);
_.D(Rr,"ytd-gaming-account-link-confirm-dialog-renderer",function(){if(hA0!==void 0)return hA0;var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-gaming-account-link-confirm-dialog-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-gaming-account-link-confirm-dialog-renderer">\n  <div class="avatar-support style-scope ytd-gaming-account-link-confirm-dialog-renderer" aria-hidden="true">\n    <yt-img-shadow class="avatar left style-scope ytd-gaming-account-link-confirm-dialog-renderer" thumbnail="[[data.userAvatar]]">\n    </yt-img-shadow>\n    <yt-icon class="third-party-icon style-scope ytd-gaming-account-link-confirm-dialog-renderer" icon="[[data.icon.iconType]]"></yt-icon>\n    <yt-img-shadow class="avatar right style-scope ytd-gaming-account-link-confirm-dialog-renderer" thumbnail="[[data.thirdPartyAvatar]]">\n    </yt-img-shadow>\n  </div>\n  <div id="dismiss-button" dialog-dismiss="" class="style-scope ytd-gaming-account-link-confirm-dialog-renderer"></div>\n</div>\n<div id="main" hidden="[[data.showLoadingSpinner]]" class="style-scope ytd-gaming-account-link-confirm-dialog-renderer">\n  <yt-formatted-string id="title" hidden$="[[!data.title]]" role="heading" text="[[data.title]]" class="style-scope ytd-gaming-account-link-confirm-dialog-renderer"></yt-formatted-string>\n  <div id="dialog-messages" class="style-scope ytd-gaming-account-link-confirm-dialog-renderer">\n    <template is="dom-repeat" items="[[data.dialogMessages]]" class="style-scope ytd-gaming-account-link-confirm-dialog-renderer">\n      <yt-formatted-string class="line-text style-scope ytd-gaming-account-link-confirm-dialog-renderer" text="[[item]]"></yt-formatted-string>\n    </template>\n  </div>\n  <div class="buttons style-scope ytd-gaming-account-link-confirm-dialog-renderer" hidden="[[isLoading]]">\n    <yt-button-renderer id="cancel-button" data="[[data.cancelButton.buttonRenderer]]" hidden$="[[!data.cancelButton]]" class="style-scope ytd-gaming-account-link-confirm-dialog-renderer">\n    </yt-button-renderer>\n    <yt-button-renderer id="confirm-button" data="[[data.confirmButton.buttonRenderer]]" dialog-confirm="" class="style-scope ytd-gaming-account-link-confirm-dialog-renderer">\n    </yt-button-renderer>\n  </div>\n  <div class="spinner style-scope ytd-gaming-account-link-confirm-dialog-renderer" hidden="[[!isLoading]]">\n    <tp-yt-paper-spinner active="" class="style-scope ytd-gaming-account-link-confirm-dialog-renderer"></tp-yt-paper-spinner>\n  </div>\n</div>\n');a.content.insertBefore(_.w().content.cloneNode(!0),
a.content.firstChild);return hA0=a},{mode:1});var Voz;var La=function(){var a=_.G.apply(this,arguments)||this;a.isLoading=!1;return a};
_.b(La,_.G);_.Z=La.prototype;_.Z.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"}}}};
_.Z.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");this.scrollable&&(this.scrollable.dialogElement=this.hostElement.parentNode);A$0(this.hostElement)};
_.Z.onYtServiceRequestCompleted=function(){_.ZF(this.hostElement,"yt-close-popup-action",["ytd-gaming-account-link-setting-renderer"])};
_.Z.onYtServiceRequestError=function(a){_.cn(this.hostElement,a.detail.error.message)};
_.Z.onDomChange=function(){this.ytRendererBehavior.markDirty()};
_.Z.onButtonClick=function(){this.data&&(this.data.isContinueDialog||this.data.thirdPartyId&&this.data.thirdPartyId!=="gpg"&&_.ZF(this.hostElement,"yt-initialize-third-party",[this.data.thirdPartyId]),this.isLoading=!0)};
_.Z.onDataChanged=function(){this.isLoading=!1;var a=this.get("data.headerImage.thumbnails");a&&(a=_.r4(a,this.hostElement.clientWidth),this.header.style.backgroundImage="url("+a+")");a=_.TX();var z=_.XZ(),I=this.get("data.trackingParams");I&&z&&a&&_.Lt(a,z,_.VX(I))};
_.eH.Object.defineProperties(La.prototype,{hasDescription:{configurable:!0,enumerable:!0,get:function(){return!(!this.data||!this.data.descriptions)}}});
La.prototype.onDataChanged=La.prototype.onDataChanged;La.prototype.onDomChange=La.prototype.onDomChange;La.prototype.onYtServiceRequestError=La.prototype.onYtServiceRequestError;La.prototype.onYtServiceRequestCompleted=La.prototype.onYtServiceRequestCompleted;_.L([_.Q(_.u4.YtRendererstamperBehavior),_.p("design:type",Object)],La.prototype,"ytRendererstamperBehavior",void 0);_.L([_.Q(_.k.YtRendererBehavior),_.p("design:type",Object)],La.prototype,"ytRendererBehavior",void 0);
_.L([_.x(),_.p("design:type",Object)],La.prototype,"data",void 0);_.L([_.x({reflectToAttribute:!0}),_.p("design:type",Object)],La.prototype,"isLoading",void 0);_.L([_.x({reflectToAttribute:!0}),_.S("data"),_.p("design:type",Boolean),_.p("design:paramtypes",[])],La.prototype,"hasDescription",null);_.L([_.A3("tp-yt-paper-dialog-scrollable"),_.p("design:type",Object)],La.prototype,"scrollable",void 0);_.L([_.A3("#header"),_.p("design:type",HTMLElement)],La.prototype,"header",void 0);
_.L([_.gz("yt-service-request-completed"),_.p("design:type",Function),_.p("design:paramtypes",[CustomEvent]),_.p("design:returntype")],La.prototype,"onYtServiceRequestCompleted",null);_.L([_.gz("yt-service-request-error"),_.p("design:type",Function),_.p("design:paramtypes",[CustomEvent]),_.p("design:returntype")],La.prototype,"onYtServiceRequestError",null);
_.L([_.gz("dom-change"),_.p("design:type",Function),_.p("design:paramtypes",[CustomEvent]),_.p("design:returntype")],La.prototype,"onDomChange",null);_.L([_.O8("data"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],La.prototype,"onDataChanged",null);_.L([_.U({is:"ytd-gaming-account-link-setting-renderer",disableElementRegistration:!0})],La);
_.D(La,"ytd-gaming-account-link-setting-renderer",function(){if(Voz!==void 0)return Voz;var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-gaming-account-link-setting-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-gaming-account-link-setting-renderer">\n  <div class="avatar-support style-scope ytd-gaming-account-link-setting-renderer" aria-hidden="true">\n    <yt-img-shadow class="avatar style-scope ytd-gaming-account-link-setting-renderer" thumbnail="[[data.userAvatar]]">\n    </yt-img-shadow>\n    <yt-icon class="third-party-icon style-scope ytd-gaming-account-link-setting-renderer" icon="[[data.icon.iconType]]"></yt-icon>\n    <yt-img-shadow class="avatar style-scope ytd-gaming-account-link-setting-renderer" thumbnail="[[data.thirdPartyAvatar]]">\n    </yt-img-shadow>\n  </div>\n  <div id="dismiss-button" class="style-scope ytd-gaming-account-link-setting-renderer"></div>\n</div>\n<div id="content" class="style-scope ytd-gaming-account-link-setting-renderer">\n  <yt-formatted-string id="title" role="heading" text="[[data.header]]" class="style-scope ytd-gaming-account-link-setting-renderer"></yt-formatted-string>\n  <div id="description-container" hidden="[[!hasDescription]]" class="style-scope ytd-gaming-account-link-setting-renderer">\n    <template is="dom-repeat" items="[[data.descriptions]]" as="description" class="style-scope ytd-gaming-account-link-setting-renderer">\n      <yt-formatted-string class="description style-scope ytd-gaming-account-link-setting-renderer" split-lines="" text="[[description]]"></yt-formatted-string>\n    </template>\n  </div>\n</div>\n<div id="link-button-container" class="style-scope ytd-gaming-account-link-setting-renderer">\n  <tp-yt-paper-spinner class="spinner style-scope ytd-gaming-account-link-setting-renderer" active="" hidden="[[!isLoading]]"></tp-yt-paper-spinner>\n  <div id="link-button" hidden="[[isLoading]]" on-click="onButtonClick" class="style-scope ytd-gaming-account-link-setting-renderer"></div>\n</div>\n');
a.content.insertBefore(_.w().content.cloneNode(!0),a.content.firstChild);return Voz=a},{mode:1});var Qmi;var SdE;var lt=function(){var a=_.G.apply(this,arguments)||this;a.isHeader=!1;a.getEndpointForm=function(){return gNE(a.data)};
return a};
_.b(lt,_.G);_.Z=lt.prototype;_.Z.triggerHintActions=function(){var a=this;this.data&&this.data.hintActions&&this.taskEmitterBehavior.getTaskManager().addLowPriorityJob(function(){var z=_.Ct(a.hostElement,"yt-get-opened-popups-action");!(z&&z.length===1?z[0]:[]).some(function(I){I=I.openPopupAction.popupType;return I==="SURVEY"||I==="MEALBAR"||I==="HINT"})&&a.data.hintActions&&a.guideOpened&&(_.tR(a.hostElement,a.data.hintActions,a.hostElement),a.data.hintActions=void 0)})};
_.Z.getBadgeIconType=function(a){return a&&a.liveBroadcasting?"live":null};
_.Z.onDown=function(){this.interaction.triggerDown()};
_.Z.onUp=function(){this.interaction.triggerUp()};
_.Z.onTap=function(a){if(this.data.serviceEndpoint){var z;_.K("shorts_controller_retrieve_seedless_sequence_v2")&&((z=_.H(this.data.serviceEndpoint,_.hv))==null?void 0:z.inputType)==="REEL_WATCH_INPUT_TYPE_SEEDLESS"?this.componentBehavior.resolveCommand(this.data.serviceEndpoint):BdZ(this.data.serviceEndpoint,this);a.preventDefault()}else this.data.navigationEndpoint&&!_.qK(_.ch(a),this.hostElement,["A".toString()])&&_.PA(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint})};
_.Z.computeActive=function(a,z){if(!a)return!1;var I=a.navigationEndpoint;a=a.serviceEndpoint;if(!I&&!a||!z)return!1;if(I){a=(a=_.nH(z))&&["subscriptions","filteredsubscriptions"].includes(a);if(_.H(I,_.KH)&&_.H(z,_.KH)&&!a){var J=_.H(I,_.KH).browseId;z=_.H(z,_.KH).browseId;return J!==void 0&&z!==void 0&&(J===z||J==="VLWL"&&z==="FEwatch_later"||J==="FEwatch_later"&&z==="VLWL")}var r;I=(r=_.H(I.commandMetadata,_.O_))==null?void 0:r.url;z=(J=_.H(z.commandMetadata,_.O_))==null?void 0:J.url;return!(!I||
!z||I!==z&&I!==_.ul(z))}return this.isActiveShortsTab(a,z)};
_.Z.isActiveShortsTab=function(a,z){z=!!_.H(z,_.hv)||!!_.H(z,_.Ry);return(!!_.H(a,_.hv)||!!_.H(a,_.Ry))&&z};
_.Z.computeIsPrimary=function(a){return!!a};
_.eH.Object.defineProperties(lt.prototype,{active:{configurable:!0,enumerable:!0,get:function(){return this.data&&this.computeActive(this.data,this.activeEndpoint)}},
isPrimary:{configurable:!0,enumerable:!0,get:function(){return this.computeIsPrimary(this.data.isPrimary)}},
lineEndStyle:{configurable:!0,enumerable:!0,get:function(){return this.data?this.data.badges&&this.getBadgeIconType(this.data.badges)?"badge":this.data.presentationStyle==="GUIDE_ENTRY_PRESENTATION_STYLE_NEW_CONTENT"?"dot":this.data.count?"count":"none":"none"}},
ariaLabel:{configurable:!0,enumerable:!0,get:function(){var a=this.get("data.accessibility.accessibilityData.label");if(this.lineEndStyle!=="none"&&a)return a}}});
lt.prototype.onTap=lt.prototype.onTap;lt.prototype.onUp=lt.prototype.onUp;lt.prototype.onDown=lt.prototype.onDown;lt.prototype.triggerHintActions=lt.prototype.triggerHintActions;_.L([_.Q(_.Ms.YtComponentBehavior),_.p("design:type",Object)],lt.prototype,"componentBehavior",void 0);_.L([_.Q(_.k.YtRendererBehavior),_.p("design:type",Object)],lt.prototype,"rendererBehavior",void 0);_.L([_.Q(_.Zs.YtTaskEmitterBehavior),_.p("design:type",Object)],lt.prototype,"taskEmitterBehavior",void 0);
_.L([_.x(),_.p("design:type",Object)],lt.prototype,"activeEndpoint",void 0);_.L([_.x(),_.p("design:type",Object)],lt.prototype,"data",void 0);_.L([_.x(),_.p("design:type",Boolean)],lt.prototype,"guideOpened",void 0);_.L([_.x(),_.p("design:type",String)],lt.prototype,"type",void 0);_.L([_.A3("yt-interaction"),_.p("design:type",Object)],lt.prototype,"interaction",void 0);_.L([_.x({reflectToAttribute:!0}),_.p("design:type",Object)],lt.prototype,"isHeader",void 0);
_.L([_.x({reflectToAttribute:!0}),_.S("data","activeEndpoint"),_.p("design:type",Boolean),_.p("design:paramtypes",[])],lt.prototype,"active",null);_.L([_.x({reflectToAttribute:!0}),_.S("data"),_.p("design:type",Boolean),_.p("design:paramtypes",[])],lt.prototype,"isPrimary",null);_.L([_.x({reflectToAttribute:!0}),_.S("data.count","data.presentationStyle","data.badges.*"),_.p("design:type",String),_.p("design:paramtypes",[])],lt.prototype,"lineEndStyle",null);
_.L([_.S("lineEndStyle"),_.p("design:type",Object),_.p("design:paramtypes",[])],lt.prototype,"ariaLabel",null);_.L([_.O8("data.hintActions","guideOpened"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],lt.prototype,"triggerHintActions",null);_.L([_.gz("down"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],lt.prototype,"onDown",null);
_.L([_.gz("up"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],lt.prototype,"onUp",null);_.L([_.gz("tap"),_.p("design:type",Function),_.p("design:paramtypes",[CustomEvent]),_.p("design:returntype")],lt.prototype,"onTap",null);_.L([_.U({is:"ytd-guide-entry-renderer",disableElementRegistration:!0})],lt);
_.D(lt,"ytd-guide-entry-renderer",function(){if(SdE!==void 0)return SdE;var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-guide-entry-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<a id="endpoint" class="yt-simple-endpoint style-scope ytd-guide-entry-renderer" href$="[[computeHref_(data.navigationEndpoint)]]" data="[[data.navigationEndpoint]]" tabindex="-1" title="[[getSimpleString(data.formattedTitle)]]" aria-label$="[[ariaLabel]]" role="link" get-form="[[getEndpointForm]]">\n  <tp-yt-paper-item role="link" class="style-scope ytd-guide-entry-renderer">\n    <yt-icon class="guide-icon style-scope ytd-guide-entry-renderer" active="[[active]]" disable-upgrade$="[[data.thumbnail]]" hidden="[[data.thumbnail]]" icon="[[computeIcon_(data.icon)]]">\n    </yt-icon>\n    <yt-img-shadow height="24" hidden="[[!data.thumbnail]]" thumbnail="[[data.thumbnail]]" width="24" class="style-scope ytd-guide-entry-renderer">\n    </yt-img-shadow>\n    <yt-formatted-string class="title style-scope ytd-guide-entry-renderer" text="[[data.formattedTitle]]"></yt-formatted-string>\n    <yt-icon class="arrow-icon style-scope ytd-guide-entry-renderer" disable-upgrade$="[[!isHeader]]" hidden="[[!isHeader]]" icon="chevron_right" size="16">\n    </yt-icon>\n    <span class="guide-entry-count style-scope ytd-guide-entry-renderer"> [[data.count]] </span>\n    <yt-icon class="guide-entry-badge style-scope ytd-guide-entry-renderer" disable-upgrade$="[[!getBadgeIconType(data.badges)]]" icon="[[getBadgeIconType(data.badges)]]" size="16">\n    </yt-icon>\n    <div id="newness-dot" class="style-scope ytd-guide-entry-renderer"></div>\n  </tp-yt-paper-item>\n</a>\n<yt-interaction class="style-scope ytd-guide-entry-renderer"></yt-interaction>\n');a.content.insertBefore(_.w().content.cloneNode(!0),
a.content.firstChild);return SdE=a},{mode:1});var pa=function(){var a=_.G.apply(this,arguments)||this;a.userToggled=!1;return a};
_.b(pa,_.G);_.Z=pa.prototype;_.Z.getItemsPath=function(){return"data.expandableItems"};
_.Z.configureRendererStamper=function(){return{shownItems:{id:"expandable-items",mapping:{guideEntryRenderer:{component:"ytd-guide-entry-renderer",properties:{activeEndpoint:"[[activeEndpoint]]"},noInjection:!0}}}}};
_.Z.onExpanderItemTapped=function(a){var z=this;this._setExpanded(!0);this.userToggled=!0;this.ytLazyListBehavior.fillRemainingListItems();this.expandableItems&&!_.K("kevlar_guide_expandable_items_killswitch")&&_.Yv(this,function(){_.MV(z.expandableItems)});
a.preventDefault()};
_.Z.onCollapserItemTapped=function(a){var z=this;this._setExpanded(!1);this.userToggled=!0;a.preventDefault();this.expandableItems&&!_.K("kevlar_guide_collapsible_items_killswitch")&&_.Yv(this,function(){_.kk(z.hostElement)})};
_.Z.observeActiveEndpoint=function(){for(var a=this.activeEndpoint,z=this.data,I=this.expandableItems.children,J=0,r=I.length;J<r;J++)I[J].activeEndpoint=a;z&&z.autoExpandCommand&&a&&!this.userToggled&&(I=this.data.autoExpandCommand,z=!(!_.H(I,_.KH)||!_.H(a,_.KH)||_.H(I,_.KH).browseId!==_.H(a,_.KH).browseId),a=this.get("commandMetadata.webCommandMetadata.url",a),I=this.get("commandMetadata.webCommandMetadata.url",I),z=z||!!(a&&I&&a.includes(I)),this._setExpanded(z),z&&this.ytLazyListBehavior.fillRemainingListItems())};
pa.prototype.observeActiveEndpoint=pa.prototype.observeActiveEndpoint;_.L([_.Q(_.k.YtRendererBehavior),_.p("design:type",Object)],pa.prototype,"ytRendererBehavior",void 0);_.L([_.Q(_.u4.YtRendererstamperBehavior),_.p("design:type",Object)],pa.prototype,"ytRendererstamperBehavior",void 0);_.L([_.Q(_.uQ.YtLazyListBehavior),_.p("design:type",Object)],pa.prototype,"ytLazyListBehavior",void 0);_.L([_.A3("#expandable-items"),_.p("design:type",HTMLElement)],pa.prototype,"expandableItems",void 0);
_.L([_.x(),_.p("design:type",Object)],pa.prototype,"data",void 0);_.L([_.x({readOnly:!0,reflectToAttribute:!0}),_.p("design:type",Boolean)],pa.prototype,"expanded",void 0);_.L([_.x({value:0}),_.p("design:type",Number)],pa.prototype,"initialCount",void 0);_.L([_.x(),_.p("design:type",Object)],pa.prototype,"activeEndpoint",void 0);_.L([_.O8("data","activeEndpoint","canShowMore"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],pa.prototype,"observeActiveEndpoint",null);
_.L([_.U({is:"ytd-guide-collapsible-entry-renderer",disableElementRegistration:!0})],pa);
_.D(pa,"ytd-guide-collapsible-entry-renderer",function(){if(Qmi!==void 0)return Qmi;var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-guide-collapsible-entry-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<ytd-guide-entry-renderer id="expander-item" 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');a.content.insertBefore(_.w().content.cloneNode(!0),
a.content.firstChild);return Qmi=a},{mode:_.Np("kevlar_poly_si_batch_j079")?1:2});var iXz;var xcY;var wS=function(){var a=_.G.apply(this,arguments)||this;a.allVideosCount=0;a.renderGuideEntry=!1;return a};
_.b(wS,_.G);wS.prototype.observeRenderEntry=function(){var a;this.renderGuideEntry=!((a=this.data)==null||!a.alwaysShow)||!!this.allVideosCount};
wS.prototype.observeRenderEntry=wS.prototype.observeRenderEntry;_.L([_.Q(_.k.YtRendererBehavior),_.p("design:type",Object)],wS.prototype,"ytRendererBehavior",void 0);_.L([_.Q(_.pV),_.p("design:type",Object)],wS.prototype,"ytdReduxBehavior",void 0);_.L([_.x(),_.p("design:type",Object)],wS.prototype,"data",void 0);_.L([_.x(),_.p("design:type",Object)],wS.prototype,"activeEndpoint",void 0);_.L([_.x({selector:_.MKx}),_.p("design:type",Object)],wS.prototype,"allVideosCount",void 0);
_.L([_.x(),_.p("design:type",Object)],wS.prototype,"renderGuideEntry",void 0);_.L([_.Fe("allVideosCount","data.alwaysShow"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],wS.prototype,"observeRenderEntry",null);_.L([_.U({is:"ytd-guide-downloads-entry-renderer",disableElementRegistration:!0})],wS);
_.D(wS,"ytd-guide-downloads-entry-renderer",function(){if(xcY===void 0){var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-guide-downloads-entry-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e  <ytd-guide-entry-renderer id="downloads-entry" active-endpoint="[[activeEndpoint]]" data="[[data.entryRenderer.guideEntryRenderer]]" hidden="[[!renderGuideEntry]]" class="style-scope ytd-guide-downloads-entry-renderer">\n  </ytd-guide-entry-renderer>\n');a.content.insertBefore(_.w().content.cloneNode(!0),
a.content.firstChild);xcY=a}a=xcY;return a},{mode:1});var mN=function(){var a=_.G.apply(this,arguments)||this;a.youtab=_.K("web_enable_youtab");a.actionMap={"yt-add-to-guide-section-action":"handleAddToGuideSectionAction","yt-remove-from-guide-section-action":"handleRemoveFromGuideSectionAction"};return a};
_.b(mN,_.G);_.Z=mN.prototype;_.Z.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]]"}}}}}};
_.Z.activeEndpointChanged=function(){if(this.activeEndpoint){this.headerEntry.activeEndpoint=this.activeEndpoint;for(var a=this.sectionItems.children,z=0,I=a.length;z<I;z++)a[z].activeEndpoint=this.activeEndpoint}};
_.Z.handleAddToGuideSectionAction=function(a){var z=_.H(a,Usz);if(z&&this.data&&(a=z.items,z=z.handlerData,a&&z&&this.data.handlerDatas&&this.data.handlerDatas.indexOf(z)>-1)){z=0;for(var I=a.length;z<I;z++)a[z].guideEntryRenderer&&this.data.sectionItems&&this.splice("data.sectionItems",this.data.sectionItems.length-1,0,a[z])}};
_.Z.handleRemoveFromGuideSectionAction=function(a){var z=_.H(a,DsV);z&&this.data&&(a=z.guideEntryId,z=z.handlerData,a&&z&&this.data.handlerDatas&&this.data.handlerDatas.indexOf(z)>-1&&this.data&&this.data.sectionItems&&(this.removeFromExpandedSection(a,this.data.sectionItems),this.removeFromCollapsedSection(a,this.data.sectionItems)))};
_.Z.removeFromExpandedSection=function(a,z){a=this.getEntryIndexMatchingId(a,z);a!==-1&&this.splice("data.sectionItems",a,1)};
_.Z.removeFromCollapsedSection=function(a,z){var I=z.findIndex(function(J){return!!_.H(J,zRZ)});
I&&I!==-1&&z[I]&&_.H(z[I],zRZ)&&(z=_.H(z[I],zRZ).expandableItems)&&(a=this.getEntryIndexMatchingId(a,z),a!==-1&&this.splice("data.sectionItems."+I+".guideCollapsibleEntryRenderer.expandableItems",a,1))};
_.Z.getEntryIndexMatchingId=function(a,z){var I=this;return z.findIndex(function(J){return I.get("guideEntryRenderer.entryData.guideEntryData.guideEntryId",J)===a})};
mN.prototype.activeEndpointChanged=mN.prototype.activeEndpointChanged;_.L([_.Q(_.k.YtRendererBehavior),_.p("design:type",Object)],mN.prototype,"ytRendererBehavior",void 0);_.L([_.Q(_.Hc.YtActionHandlerBehavior),_.p("design:type",Object)],mN.prototype,"actionHandlerBehavior",void 0);_.L([_.Q(_.u4.YtRendererstamperBehavior),_.p("design:type",Object)],mN.prototype,"ytRendererstamperBehavior",void 0);_.L([_.A3("#section-items"),_.p("design:type",HTMLDivElement)],mN.prototype,"sectionItems",void 0);
_.L([_.A3("#header-entry"),_.p("design:type",Object)],mN.prototype,"headerEntry",void 0);_.L([_.x(),_.p("design:type",Object)],mN.prototype,"data",void 0);_.L([_.x(),_.p("design:type",Object)],mN.prototype,"activeEndpoint",void 0);_.L([_.x(),_.p("design:type",Object)],mN.prototype,"youtab",void 0);_.L([_.O8("activeEndpoint"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],mN.prototype,"activeEndpointChanged",null);
_.L([_.U({is:"ytd-guide-collapsible-section-entry-renderer",disableElementRegistration:!0})],mN);
_.D(mN,"ytd-guide-collapsible-section-entry-renderer",function(){if(iXz===void 0){var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-guide-collapsible-section-entry-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-guide-collapsible-section-entry-renderer">\n  <ytd-guide-entry-renderer id="header-entry" data="[[data.headerEntry.guideEntryRenderer]]" is-header="[[youtab]]" class="style-scope ytd-guide-collapsible-section-entry-renderer">\n  </ytd-guide-entry-renderer>\n</div>\n<div id="section-items" class="style-scope ytd-guide-collapsible-section-entry-renderer"></div>\n');a.content.insertBefore(_.w().content.cloneNode(!0),
a.content.firstChild);iXz=a}a=iXz;return a},{mode:1});var v$M;var GyZ;var yG=function(){var a=_.G.apply(this,arguments)||this;a.modernTypography=_.K("web_modern_typography");a.actionMap={"yt-add-to-guide-section-action":"handleAddToGuideSectionAction","yt-remove-from-guide-section-action":"handleRemoveFromGuideSectionAction","yt-reset-channel-unread-count-command":"handleResetChannelUnreadCountCommand","yt-reset-subscriptions-unread-dot-command":"handleResetSubscriptionsUnreadDotCommand"};return a};
_.b(yG,_.G);_.Z=yG.prototype;
_.Z.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}}}}};
_.Z.persistentGuideChanged=function(){if(!this.ytdGuideStateAwareBehavior.guidePersistentAndVisible){var a=_.Ct(this.hostElement,"yt-get-popup-opened-action",["yt-bubble-hint-renderer"]);a&&a.length===1&&a[0]&&_.Ct(this.hostElement,"yt-close-popup-action",["yt-bubble-hint-renderer"])}};
_.Z.handleResetChannelUnreadCountCommand=function(a){var z;(a=(z=_.H(a,LP4))==null?void 0:z.channelId)&&this.data&&this.data.items&&(z=this.getPathToEntryMatchingId(a))&&(this.set(z+".guideEntryRenderer.count",0),this.set(z+".guideEntryRenderer.presentationStyle","GUIDE_ENTRY_PRESENTATION_STYLE_NONE"))};
_.Z.handleResetSubscriptionsUnreadDotCommand=function(a){var z,I=(z=_.H(a,lGG))==null?void 0:z.targetId,J;I&&(J=this.data)!=null&&J.items&&(a=this.data.items.findIndex(function(r){var P;return((P=r.guideEntryRenderer)==null?void 0:P.targetId)===I}),a<0||this.set("data.items."+a+".guideEntryRenderer.presentationStyle","GUIDE_ENTRY_PRESENTATION_STYLE_NONE"))};
_.Z.getPathToEntryMatchingId=function(a){if(this.data&&this.data.items){var z=this.getEntryIndexMatchingId(a,this.data.items);if(z>-1)return"data.items."+z;for(var I=0;I<this.data.items.length;I++)if(z=this.get("guideCollapsibleEntryRenderer.expandableItems",this.data.items[I]))if(z=this.getEntryIndexMatchingId(a,z),z>-1)return"data.items."+I+".guideCollapsibleEntryRenderer.expandableItems."+z}};
_.Z.handleAddToGuideSectionAction=function(a){var z=this;if(_.H(a,Usz)){var I=_.H(a,Usz).items;a=_.H(a,Usz).handlerData;var J,r;if(I&&a&&((J=this.data)==null?void 0:(r=J.handlerDatas)==null?void 0:r.indexOf(a))>-1){I=I.filter(function(N){return(N=z.get("guideEntryRenderer.entryData.guideEntryData.guideEntryId",N))&&!z.isGuideItemPresent(N)});
var P;if(a==="GUIDE_ACTION_ADD_TO_SUBSCRIPTIONS"&&((P=this.data)==null?0:P.items)&&(J=this.getHeaderEntryIndexMatchingIdFromCollapsibleSection("subscriptions-channels-header",this.data.items),J>-1)){this.splice.apply(this,["data.items",J+1,0].concat(_.ih(I)));return}this.unshift.apply(this,["data.items"].concat(_.ih(I)))}}};
_.Z.isGuideItemPresent=function(a){if(this.data&&this.data.items){if(this.getEntryIndexMatchingId(a,this.data.items)!==-1)return!0;var z=this.data.items.find(function(I){return!!I.guideCollapsibleEntryRenderer});
if((z==null?0:z.guideCollapsibleEntryRenderer.expandableItems)&&this.getEntryIndexMatchingId(a,z.guideCollapsibleEntryRenderer.expandableItems)!==-1)return!0}return!1};
_.Z.getEntryIndexMatchingId=function(a,z){var I=this;return z.findIndex(function(J){return I.get("guideEntryRenderer.entryData.guideEntryData.guideEntryId",J)===a})};
_.Z.getHeaderEntryIndexMatchingIdFromCollapsibleSection=function(a,z){var I=this;return z.findIndex(function(J){return I.get("guideCollapsibleSectionEntryRenderer.headerEntry.guideEntryRenderer.entryData.guideEntryData.guideEntryId",J)===a})};
_.Z.handleRemoveFromGuideSectionAction=function(a){if(_.H(a,DsV)){var z=_.H(a,DsV).guideEntryId;a=_.H(a,DsV).handlerData;var I,J;z&&a&&((I=this.data)==null?void 0:(J=I.handlerDatas)==null?void 0:J.indexOf(a))>-1&&this.data&&this.data.items&&(this.removeFromExpandedSection(z,this.data.items),this.removeFromCollapsedSection(z,this.data.items))}};
_.Z.removeFromExpandedSection=function(a,z){a=this.getEntryIndexMatchingId(a,z);a!==-1&&this.splice("data.items",a,1)};
_.Z.removeFromCollapsedSection=function(a,z){var I=z.findIndex(function(J){return!!J.guideCollapsibleEntryRenderer});
I!==-1&&(z=z[I].guideCollapsibleEntryRenderer.expandableItems)&&(a=this.getEntryIndexMatchingId(a,z),a!==-1&&this.splice("data.items."+I+".guideCollapsibleEntryRenderer.expandableItems",a,1))};
_.Z.activeEndpointChanged=function(){for(var a=_.PK(this.hostElement).querySelector("#items").children,z=0,I=a.length;z<I;z++)a[z].activeEndpoint=this.ytdGuideStateAwareBehavior.activeEndpoint};
_.Z.guideOpenedChanged=function(){for(var a=_.PK(this.hostElement).querySelector("#items").children,z=0,I=a.length;z<I;z++)a[z].guideOpened=this.ytdGuideStateAwareBehavior.guideOpened};
yG.prototype.guideOpenedChanged=yG.prototype.guideOpenedChanged;yG.prototype.activeEndpointChanged=yG.prototype.activeEndpointChanged;yG.prototype.persistentGuideChanged=yG.prototype.persistentGuideChanged;_.L([_.Q(_.k.YtRendererBehavior),_.p("design:type",Object)],yG.prototype,"ytRendererBehavior",void 0);_.L([_.Q(_.u4.YtRendererstamperBehavior),_.p("design:type",Object)],yG.prototype,"ytRendererstamperBehavior",void 0);
_.L([_.Q(_.Hc.YtActionHandlerBehavior),_.p("design:type",Object)],yG.prototype,"ytActionHandlerBehavior",void 0);_.L([_.Q(_.uQ.YtLazyListBehavior),_.p("design:type",Object)],yG.prototype,"ytLazyListBehavior",void 0);_.L([_.Q(_.cZ.YtdGuideStateAwareBehavior),_.p("design:type",Object)],yG.prototype,"ytdGuideStateAwareBehavior",void 0);_.L([_.Q(_.Ms.YtComponentBehavior),_.p("design:type",Object)],yG.prototype,"ytComponentBehavior",void 0);_.L([_.x(),_.p("design:type",Object)],yG.prototype,"data",void 0);
_.L([_.x({reflectToAttribute:!0}),_.p("design:type",Object)],yG.prototype,"modernTypography",void 0);_.L([_.x(),_.p("design:type",String)],yG.prototype,"type",void 0);_.L([_.x({value:20}),_.p("design:type",Number)],yG.prototype,"initialCount",void 0);_.L([_.x({value:10}),_.p("design:type",Number)],yG.prototype,"targetFramerate",void 0);_.L([_.x({value:!0}),_.p("design:type",Boolean)],yG.prototype,"autoFill",void 0);_.L([_.x({value:50}),_.p("design:type",Number)],yG.prototype,"renderDelay",void 0);
_.L([_.O8("guidePersistentAndVisible"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],yG.prototype,"persistentGuideChanged",null);_.L([_.Fe("activeEndpoint"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],yG.prototype,"activeEndpointChanged",null);_.L([_.Fe("guideOpened"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],yG.prototype,"guideOpenedChanged",null);
_.L([_.U({is:"ytd-guide-section-renderer",disableElementRegistration:!0})],yG);
_.D(yG,"ytd-guide-section-renderer",function(){if(GyZ!==void 0)return GyZ;var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-guide-section-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<h3 hidden="[[!data.formattedTitle]]" class="style-scope ytd-guide-section-renderer">\n  <yt-formatted-string id="guide-section-title" link-inherit-color="" text="[[data.formattedTitle]]" class="style-scope ytd-guide-section-renderer">\n  </yt-formatted-string>\n</h3>\n<div id="items" class="style-scope ytd-guide-section-renderer"></div>\n');a.content.insertBefore(_.w().content.cloneNode(!0),
a.content.firstChild);return GyZ=a},{mode:_.Np("kevlar_poly_si_batch_j073")?1:2});var $c0;var kd=function(){return _.G.apply(this,arguments)||this};
_.b(kd,_.G);_.eH.Object.defineProperties(kd.prototype,{alignByText:{configurable:!0,enumerable:!0,get:function(){return this.get("data.signInButton.buttonRenderer.style")==="STYLE_BLUE_TEXT"}}});
_.L([_.Q(_.k.YtRendererBehavior),_.p("design:type",Object)],kd.prototype,"rendererBehaviors",void 0);_.L([_.x(),_.p("design:type",Object)],kd.prototype,"data",void 0);_.L([_.x(),_.S("data.signInButton.buttonRenderer.style"),_.p("design:type",Object),_.p("design:paramtypes",[])],kd.prototype,"alignByText",null);_.L([_.U({is:"ytd-guide-signin-promo-renderer",disableElementRegistration:!0})],kd);
_.D(kd,"ytd-guide-signin-promo-renderer",function(){if($c0===void 0){var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-guide-signin-promo-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-formatted-string text="[[data.descriptiveText]]" class="style-scope ytd-guide-signin-promo-renderer"></yt-formatted-string>\n<ytd-button-renderer id="sign-in-button" align-by-text="[[alignByText]]" data="[[data.signInButton.buttonRenderer]]" on-tap="onSignInTap" class="style-scope ytd-guide-signin-promo-renderer">\n</ytd-button-renderer>\n');
a.content.insertBefore(_.w().content.cloneNode(!0),a.content.firstChild);$c0=a}a=$c0;return a},{mode:1});var M2=function(){var a=_.G.apply(this,arguments)||this;a.showFooter=!1;return a};
_.b(M2,_.G);M2.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}}}}};
M2.prototype.attached=function(){var a=this,z;return _.t(function(I){if(I.nextAddress==1){z=_.ab().resolve(_.eL(_.M5));if(!z)return I.jumpTo(0);z.setGuideData(a.hostElement);return I.yield(0,3)}a.ytLazyListBehavior.initialCount=2;return I.return()})};
M2.prototype.onMouseExit=function(){_.K("web_guide_hover_expansion")&&_.Ct(this.hostElement,"yt-guide-mouseleaved",[])};
M2.prototype.dataChanged=function(){this.data&&(this.showFooter=!0)};
M2.prototype.dataChanged=M2.prototype.dataChanged;M2.prototype.onMouseExit=M2.prototype.onMouseExit;_.L([_.Q(_.k.YtRendererBehavior),_.p("design:type",Object)],M2.prototype,"ytRendererBehavior",void 0);_.L([_.Q(_.Ms.YtComponentBehavior),_.p("design:type",Object)],M2.prototype,"ytComponentBehavior",void 0);_.L([_.Q(_.uQ.YtLazyListBehavior),_.p("design:type",Object)],M2.prototype,"ytLazyListBehavior",void 0);
_.L([_.Q(_.u4.YtRendererstamperBehavior),_.p("design:type",Object)],M2.prototype,"ytRendererstamperBehavior",void 0);_.L([_.x(),_.p("design:type",Object)],M2.prototype,"data",void 0);_.L([_.x(),_.p("design:type",Object)],M2.prototype,"showFooter",void 0);_.L([_.x({value:!0}),_.p("design:type",Boolean)],M2.prototype,"autoFill",void 0);_.L([_.gz("mouseleave"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],M2.prototype,"onMouseExit",null);
_.L([_.Fe("data"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],M2.prototype,"dataChanged",null);_.L([_.U({is:"ytd-guide-renderer",disableElementRegistration:!0})],M2);
_.D(M2,"ytd-guide-renderer",function(){if(v$M!==void 0)return v$M;var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-guide-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="sections" class="style-scope ytd-guide-renderer"></div>\n<div id="footer" hidden="[[!showFooter]]" class="style-scope ytd-guide-renderer">\n  <div id="guide-links-primary" class="style-scope ytd-guide-renderer">\n    <slot name="guide-links-primary" class="style-scope ytd-guide-renderer"></slot>\n  </div>\n  <div id="guide-links-secondary" class="style-scope ytd-guide-renderer">\n    <slot name="guide-links-secondary" class="style-scope ytd-guide-renderer"></slot>\n  </div>\n  <slot name="vat-notice" class="style-scope ytd-guide-renderer"></slot>\n  <slot name="copyright" class="style-scope ytd-guide-renderer"></slot>\n</div>\n');a.content.insertBefore(_.w().content.cloneNode(!0),
a.content.firstChild);return v$M=a},{mode:_.Np("kevlar_poly_si_batch_j073")?1:2});var XTZ;var ck=function(){var a=_.G.apply(this,arguments)||this;a.systemIcons=_.K("kevlar_system_icons");a.frostedGlass=_.K("web_frosted_glass");a.getEndpointForm=function(){return gNE(a.data)};
return a};
_.b(ck,_.G);_.Z=ck.prototype;_.Z.attached=function(){this.hostElement.setAttribute("role","tab");this.hostElement.setAttribute("tabindex","0")};
_.Z.dataChanged=function(){this.hostElement.setAttribute("aria-selected",""+this.isActive);this.hostElement.setAttribute("aria-label",_.cd(this.data.formattedTitle))};
_.Z.onActiveStateChange=function(){this.hostElement.setAttribute("aria-selected",""+this.isActive)};
_.Z.onDown=function(){this.interaction.triggerDown()};
_.Z.onUp=function(){this.interaction.triggerUp()};
_.Z.onTap=function(a){if(this.data.serviceEndpoint){var z;_.K("shorts_controller_retrieve_seedless_sequence_v2")&&((z=_.H(this.data.serviceEndpoint,_.hv))==null?void 0:z.inputType)==="REEL_WATCH_INPUT_TYPE_SEEDLESS"?this.ytComponentBehavior.resolveCommand(this.data.serviceEndpoint):BdZ(this.data.serviceEndpoint,this);a.preventDefault()}else{var I;((I=this.data)==null?0:I.navigationEndpoint)&&!_.qK(_.ch(a),this.hostElement,["A".toString()])&&_.PA(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint})}};
_.Z.computeActive=function(a,z){if(!a)return!1;var I=a.navigationEndpoint;a=a.serviceEndpoint;if(!I&&!a||!z)return!1;if(I){a=_.H(I,_.KH);var J=_.H(z,_.KH);if(a&&J)return a.browseId===J.browseId&&a.params===J.params;var r;I=(r=_.H(I.commandMetadata,_.O_))==null?void 0:r.url;var P;z=(P=_.H(z.commandMetadata,_.O_))==null?void 0:P.url;return!(!I||!z||I!==z&&I!==_.ul(z))}return this.isActiveShortsTab(a,z)};
_.Z.isActiveShortsTab=function(a,z){z=!!_.H(z,_.hv)||!!_.H(z,_.Ry);return(!!_.H(a,_.hv)||!!_.H(a,_.Ry))&&z};
_.Z.computeTitle=function(a,z){return z?"":_.cd(a)};
_.eH.Object.defineProperties(ck.prototype,{ariaSelected:{configurable:!0,enumerable:!0,get:function(){if(this.isActive!==void 0)return this.isActive.toString()}}});
ck.prototype.onTap=ck.prototype.onTap;ck.prototype.onUp=ck.prototype.onUp;ck.prototype.onDown=ck.prototype.onDown;ck.prototype.onActiveStateChange=ck.prototype.onActiveStateChange;ck.prototype.dataChanged=ck.prototype.dataChanged;_.L([_.Q(_.k.YtRendererBehavior),_.p("design:type",Object)],ck.prototype,"ytRendererBehavior",void 0);_.L([_.Q(_.Ms.YtComponentBehavior),_.p("design:type",Object)],ck.prototype,"ytComponentBehavior",void 0);
_.L([_.Q(_.WY),_.p("design:type",Object)],ck.prototype,"ironButtonState",void 0);_.L([_.x(),_.p("design:type",Object)],ck.prototype,"data",void 0);_.L([_.x(),_.p("design:type",Object)],ck.prototype,"activeEndpoint",void 0);_.L([_.x({reflectToAttribute:!0}),_.p("design:type",Boolean)],ck.prototype,"noLabels",void 0);_.L([_.x({reflectToAttribute:!0,computed:"computeActive(data,activeEndpoint)"}),_.p("design:type",Boolean)],ck.prototype,"isActive",void 0);
_.L([_.x({reflectToAttribute:!0}),_.p("design:type",Object)],ck.prototype,"systemIcons",void 0);_.L([_.A3("yt-interaction"),_.p("design:type",Object)],ck.prototype,"interaction",void 0);_.L([_.S("isActive"),_.p("design:type",Object),_.p("design:paramtypes",[])],ck.prototype,"ariaSelected",null);_.L([_.x({reflectToAttribute:!0}),_.p("design:type",Object)],ck.prototype,"frostedGlass",void 0);
_.L([_.Fe("data"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],ck.prototype,"dataChanged",null);_.L([_.O8("isActive"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],ck.prototype,"onActiveStateChange",null);_.L([_.gz("down"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],ck.prototype,"onDown",null);
_.L([_.gz("up"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],ck.prototype,"onUp",null);_.L([_.gz("tap"),_.p("design:type",Function),_.p("design:paramtypes",[CustomEvent]),_.p("design:returntype")],ck.prototype,"onTap",null);_.L([_.U({is:"ytd-mini-guide-entry-renderer",disableElementRegistration:!0})],ck);
_.D(ck,"ytd-mini-guide-entry-renderer",function(){if(XTZ!==void 0)return XTZ;var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-mini-guide-entry-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<a id="endpoint" tabindex="-1" class="yt-simple-endpoint style-scope ytd-mini-guide-entry-renderer" href$="[[computeHref_(data.navigationEndpoint)]]" data="[[data.navigationEndpoint]]" title="[[computeTitle(data.formattedTitle, noLabels)]]" get-form="[[getEndpointForm]]">\n  <yt-icon id="icon" class="guide-icon style-scope ytd-mini-guide-entry-renderer" active="[[isActive]]" disable-upgrade$="[[data.thumbnail]]" hidden="[[data.thumbnail]]" icon="[[data.icon.iconType]]">\n  </yt-icon>\n  <span class="title style-scope ytd-mini-guide-entry-renderer" hidden="[[noLabels]]">[[getSimpleString(data.formattedTitle)]]</span>\n  <tp-yt-paper-tooltip animation-delay="0" hidden="[[!noLabels]]" offset="4" position="right" class="style-scope ytd-mini-guide-entry-renderer">\n    [[getSimpleString(data.formattedTitle)]]\n  </tp-yt-paper-tooltip>\n  <yt-interaction class="style-scope ytd-mini-guide-entry-renderer"></yt-interaction>\n</a>\n');a.content.insertBefore(_.w().content.cloneNode(!0),
a.content.firstChild);return XTZ=a},{mode:_.Np("kevlar_poly_si_batch_j063")?1:2});var TjZ;var Yd=function(){var a=_.G.apply(this,arguments)||this;a.allVideosCount=0;a.noLabels=_.K("kevlar_mini_guide_no_labels");a.frostedGlass=_.K("web_frosted_glass");return a};
_.b(Yd,_.G);_.Z=Yd.prototype;_.Z.configureRendererStamper=function(){return{miniGuideItems:{id:"items",mapping:{guideEntryRenderer:{component:"ytd-mini-guide-entry-renderer",properties:{activeEndpoint:"[[activeEndpoint]]",noLabels:"[[noLabels]]"},noInjection:!0}}}}};
_.Z.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","navigation");this.registerWithViewTransitionManager()};
_.Z.onMouseEnter=function(){_.K("web_guide_hover_expansion")&&_.Ct(this.hostElement,"yt-mini-guide-mouseentered",[])};
_.Z.visibleChanged=function(){if(this.visible&&!this.data){var a=_.ab().resolve(_.eL(_.M5));a&&a.setGuideData(this.hostElement)}};
_.Z.dataChanged=function(){var a=[],z;if((z=this.data)!=null&&z.items){z=_.C(this.data.items);for(var I=z.next();!I.done;I=z.next()){I=I.value;var J=void 0;if((J=I.guideSectionRenderer)==null?0:J.items)for(J=void 0,I=_.C((J=I.guideSectionRenderer)==null?void 0:J.items),J=I.next();!J.done;J=I.next())if(J=J.value,J.guideEntryRenderer)J=J.guideEntryRenderer,J.isPrimary&&a.push({guideEntryRenderer:J});else if(J.guideCollapsibleSectionEntryRenderer){var r=void 0;((r=_.H(J.guideCollapsibleSectionEntryRenderer.headerEntry,
tB))==null?0:r.isPrimary)&&a.push({guideEntryRenderer:_.H(J.guideCollapsibleSectionEntryRenderer.headerEntry,tB)});if(J=J.guideCollapsibleSectionEntryRenderer.sectionItems)for(J=_.C(J),r=J.next();!r.done;r=J.next()){var P=r.value;r=_.H(P,IsE);var N=void 0;((N=_.H(P,tB))==null?0:N.isPrimary)?a.push({guideEntryRenderer:_.H(P,tB)}):r&&(P=void 0,_.H((P=r)==null?void 0:P.entryRenderer,tB)&&(r.alwaysShow||this.allVideosCount)&&a.push({guideEntryRenderer:_.H(r.entryRenderer,tB)}))}}}}this.miniGuideItems=
a};
_.Z.activeEndpointChanged=function(){for(var a=this.items.children,z=0;z<a.length;z++)a[z].activeEndpoint=this.ytdGuideStateAwareBehavior.activeEndpoint};
_.Z.registerWithViewTransitionManager=function(){var a=this;_.b9(_.GW,function(){var z=_.ab().resolve(_.eL(_.bH));if(z&&z.isAnyTransitionEnabled){var I={};z.viewTransitionCoordinator.registerElement(a.hostElement,(I.slide="mini-guide-page-transition",I))}})};
Yd.prototype.activeEndpointChanged=Yd.prototype.activeEndpointChanged;Yd.prototype.dataChanged=Yd.prototype.dataChanged;Yd.prototype.visibleChanged=Yd.prototype.visibleChanged;Yd.prototype.onMouseEnter=Yd.prototype.onMouseEnter;_.L([_.Q(_.pV),_.p("design:type",Object)],Yd.prototype,"ytdReduxBehavior",void 0);_.L([_.Q(_.k.YtRendererBehavior),_.p("design:type",Object)],Yd.prototype,"ytRendererBehavior",void 0);
_.L([_.Q(_.u4.YtRendererstamperBehavior),_.p("design:type",Object)],Yd.prototype,"ytRendererstamperBehavior",void 0);_.L([_.Q(_.cZ.YtdGuideStateAwareBehavior),_.p("design:type",Object)],Yd.prototype,"ytdGuideStateAwareBehavior",void 0);_.L([_.Q(_.Ms.YtComponentBehavior),_.p("design:type",Object)],Yd.prototype,"ytComponentBehavior",void 0);_.L([_.A3("#items"),_.p("design:type",Object)],Yd.prototype,"items",void 0);_.L([_.x(),_.p("design:type",Object)],Yd.prototype,"data",void 0);
_.L([_.x(),_.p("design:type",Boolean)],Yd.prototype,"visible",void 0);_.L([_.x(),_.p("design:type",Object)],Yd.prototype,"miniGuideItems",void 0);_.L([_.x({selector:_.MKx}),_.p("design:type",Object)],Yd.prototype,"allVideosCount",void 0);_.L([_.x({reflectToAttribute:!0}),_.p("design:type",Object)],Yd.prototype,"noLabels",void 0);_.L([_.x({reflectToAttribute:!0}),_.p("design:type",Object)],Yd.prototype,"frostedGlass",void 0);
_.L([_.gz("mouseenter"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],Yd.prototype,"onMouseEnter",null);_.L([_.Fe("visible"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],Yd.prototype,"visibleChanged",null);_.L([_.Fe("data","allVideosCount"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],Yd.prototype,"dataChanged",null);
_.L([_.Fe("activeEndpoint"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],Yd.prototype,"activeEndpointChanged",null);_.L([_.U({is:"ytd-mini-guide-renderer",disableElementRegistration:!0})],Yd);
_.D(Yd,"ytd-mini-guide-renderer",function(){if(TjZ===void 0){var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-mini-guide-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="items" class="style-scope ytd-mini-guide-renderer"></div>\n');a.content.insertBefore(_.w().content.cloneNode(!0),a.content.firstChild);TjZ=a}a=TjZ;return a},{mode:1});var dcZ;var WaG=/^[\x00-\x7F]+$/,q2=function(){var a=_.G.apply(this,arguments)||this;a.darkerDarkTheme=_.K("web_darker_dark_theme");return a};
_.b(q2,_.G);_.eH.Object.defineProperties(q2.prototype,{displayHandle:{configurable:!0,enumerable:!0,get:function(){var a,z=_.cd((a=this.data)==null?void 0:a.handle);if(z)return _.Mo("@"+z)}},
displayHandleUrl:{configurable:!0,enumerable:!0,get:function(){var a=_.cd(this.displayHandle),z,I=_.cd((z=this.data)==null?void 0:z.handleUrl);if(a&&I)return _.Mo(I+a)}},
warningText:{configurable:!0,enumerable:!0,get:function(){var a=_.cd(this.displayHandle);if(a&&!WaG.test(a)){var z;return(z=this.data)==null?void 0:z.warningText}}},
urlInfoTextWithUrl:{configurable:!0,enumerable:!0,get:function(){var a=_.cd(this.displayHandleUrl),z,I=_.cd((z=this.data)==null?void 0:z.urlInfoText);if(a&&I)return _.Mo(I+" "+a)}}});
_.L([_.x(),_.p("design:type",Object)],q2.prototype,"data",void 0);_.L([_.S("data"),_.p("design:type",Object),_.p("design:paramtypes",[])],q2.prototype,"displayHandle",null);_.L([_.S("displayHandle"),_.p("design:type",Object),_.p("design:paramtypes",[])],q2.prototype,"displayHandleUrl",null);_.L([_.S("displayHandle"),_.p("design:type",Object),_.p("design:paramtypes",[])],q2.prototype,"warningText",null);
_.L([_.S("displayHandleUrl"),_.p("design:type",Object),_.p("design:paramtypes",[])],q2.prototype,"urlInfoTextWithUrl",null);_.L([_.x({reflectToAttribute:!0}),_.p("design:type",Object)],q2.prototype,"darkerDarkTheme",void 0);_.L([_.U({is:"ytd-handles-claiming-confirm-dialog-content",disableElementRegistration:!0})],q2);
_.D(q2,"ytd-handles-claiming-confirm-dialog-content",function(){if(dcZ!==void 0)return dcZ;var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-handles-claiming-confirm-dialog-content--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="container" class="style-scope ytd-handles-claiming-confirm-dialog-content">\n  <div id="handle-container" class="style-scope ytd-handles-claiming-confirm-dialog-content">\n    <yt-img-shadow id="profile-picture" height="100" thumbnail="[[data.profilePicture]]" width="100" class="style-scope ytd-handles-claiming-confirm-dialog-content">\n    </yt-img-shadow>\n    <yt-formatted-string id="display-name" text="[[data.displayName]]" class="style-scope ytd-handles-claiming-confirm-dialog-content"></yt-formatted-string>\n    <yt-formatted-string id="handle" text="[[displayHandle]]" class="style-scope ytd-handles-claiming-confirm-dialog-content"></yt-formatted-string>\n    <yt-formatted-string id="handle-url" text="[[displayHandleUrl]]" class="style-scope ytd-handles-claiming-confirm-dialog-content"></yt-formatted-string>\n  </div>\n  <div id="info-container" class="style-scope ytd-handles-claiming-confirm-dialog-content">\n    <yt-formatted-string id="first-info-text" class="line-text style-scope ytd-handles-claiming-confirm-dialog-content" split-lines="" text="[[data.firstInfoText]]"></yt-formatted-string>\n    <yt-formatted-string id="url-info-text" class="line-text style-scope ytd-handles-claiming-confirm-dialog-content" split-lines="" text="[[urlInfoTextWithUrl]]"></yt-formatted-string>\n    <div id="messages" class="style-scope ytd-handles-claiming-confirm-dialog-content">\n      <template is="dom-repeat" items="[[data.infoText]]" class="style-scope ytd-handles-claiming-confirm-dialog-content">\n        <yt-formatted-string class="line-text style-scope ytd-handles-claiming-confirm-dialog-content" split-lines="" text="[[item]]"></yt-formatted-string>\n      </template>\n      <template is="dom-if" restamp="" if="[[warningText]]" class="style-scope ytd-handles-claiming-confirm-dialog-content">\n        <yt-formatted-string class="line-text style-scope ytd-handles-claiming-confirm-dialog-content" split-lines="" text="[[warningText]]"></yt-formatted-string>\n      </template>\n    </div>\n  </div>\n</div>\n');a.content.insertBefore(_.w().content.cloneNode(!0),
a.content.firstChild);return dcZ=a},{mode:1});var o$f;var eS=function(){var a=_.G.apply(this,arguments)||this;a.okButtonOverride={style:"mono",type:"outline",size:"M"};return a};
_.b(eS,_.G);eS.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
eS.prototype.configureRendererStamper=function(){return{"data.okButton":{id:"ok-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{overrides:"[[okButtonOverride]]"}}}}}};
_.L([_.Q(_.k.YtRendererBehavior),_.p("design:type",Object)],eS.prototype,"ytRendererBehavior",void 0);_.L([_.Q(_.u4.YtRendererstamperBehavior),_.p("design:type",Object)],eS.prototype,"ytRendererstamperBehavior",void 0);_.L([_.x(),_.p("design:type",Object)],eS.prototype,"okButtonOverride",void 0);_.L([_.x(),_.p("design:type",Object)],eS.prototype,"data",void 0);_.L([_.U({is:"ytd-handles-claiming-confirm-dialog-renderer",disableElementRegistration:!0})],eS);
_.D(eS,"ytd-handles-claiming-confirm-dialog-renderer",function(){if(o$f!==void 0)return o$f;var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-handles-claiming-confirm-dialog-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-handles-claiming-confirm-dialog-renderer">\n  <yt-formatted-string id="title" text="[[data.title]]" class="style-scope ytd-handles-claiming-confirm-dialog-renderer"></yt-formatted-string>\n</div>\n<ytd-handles-claiming-confirm-dialog-content data="[[data]]" class="style-scope ytd-handles-claiming-confirm-dialog-renderer">\n</ytd-handles-claiming-confirm-dialog-content>\n<div id="footer" class="style-scope ytd-handles-claiming-confirm-dialog-renderer">\n  <div id="ok-button" class="style-scope ytd-handles-claiming-confirm-dialog-renderer"></div>\n</div>\n');
a.content.insertBefore(_.w().content.cloneNode(!0),a.content.firstChild);return o$f=a},{mode:1});var Uce;var DcE=/^[\x00-\x7F]+$/,au=function(){var a=_.G.apply(this,arguments)||this;a.isLoading=!1;a.darkerDarkTheme=_.K("web_darker_dark_theme");return a};
_.b(au,_.G);au.prototype.selectedHandleChanged=function(){if(this.handleInput&&this.onSelectedHandleChanged){var a;this.selectedHandle=(a=this.handleInput)==null?void 0:a.value;this.onSelectedHandleChanged(this.selectedHandle);_.Ct(this.hostElement,"yt-refit-popups-action")}};
_.eH.Object.defineProperties(au.prototype,{handleUrlPrefix:{configurable:!0,enumerable:!0,get:function(){var a;return(a=this.data)==null?void 0:a.handleUrlPrefix}},
displayHandle:{configurable:!0,enumerable:!0,get:function(){if(this.selectedHandle)return _.Mo("@"+this.selectedHandle)}},
displayHandleUrl:{configurable:!0,enumerable:!0,get:function(){if(this.handleUrlPrefix&&this.selectedHandle)return _.Mo(this.handleUrlPrefix+"@"+this.selectedHandle)}},
warningText:{configurable:!0,enumerable:!0,get:function(){if(this.selectedHandle&&!DcE.test(this.selectedHandle)){var a;return(a=this.data)==null?void 0:a.warningText}}}});
_.L([_.Q(_.Ms.YtComponentBehavior),_.p("design:type",Object)],au.prototype,"ytComponentBehavior",void 0);_.L([_.x(),_.p("design:type",Object)],au.prototype,"data",void 0);_.L([_.x(),_.p("design:type",String)],au.prototype,"selectedHandle",void 0);_.L([_.x(),_.p("design:type",Object)],au.prototype,"isLoading",void 0);_.L([_.x(),_.p("design:type",Function)],au.prototype,"onSelectedHandleChanged",void 0);_.L([_.A3("#channel-handle-input"),_.p("design:type",Object)],au.prototype,"handleInput",void 0);
_.L([_.S("data"),_.p("design:type",Object),_.p("design:paramtypes",[])],au.prototype,"handleUrlPrefix",null);_.L([_.S("selectedHandle"),_.p("design:type",Object),_.p("design:paramtypes",[])],au.prototype,"displayHandle",null);_.L([_.S("selectedHandle"),_.p("design:type",Object),_.p("design:paramtypes",[])],au.prototype,"displayHandleUrl",null);_.L([_.S("selectedHandle"),_.p("design:type",Object),_.p("design:paramtypes",[])],au.prototype,"warningText",null);
_.L([_.x({reflectToAttribute:!0}),_.p("design:type",Object)],au.prototype,"darkerDarkTheme",void 0);_.L([_.Q(_.k.YtRendererBehavior),_.p("design:type",Object)],au.prototype,"ytRendererBehavior",void 0);_.L([_.U({is:"ytd-handles-claiming-edit-dialog-content",disableElementRegistration:!0})],au);
_.D(au,"ytd-handles-claiming-edit-dialog-content",function(){if(Uce!==void 0)return Uce;var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-handles-claiming-edit-dialog-content--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="container" class="style-scope ytd-handles-claiming-edit-dialog-content">\n  <div id="handle-container" class="style-scope ytd-handles-claiming-edit-dialog-content">\n    <yt-img-shadow id="profile-picture" height="100" thumbnail="[[data.profilePicture]]" width="100" class="style-scope ytd-handles-claiming-edit-dialog-content">\n    </yt-img-shadow>\n    <yt-formatted-string id="display-name" text="[[data.displayName]]" class="style-scope ytd-handles-claiming-edit-dialog-content"></yt-formatted-string>\n    <yt-formatted-string id="display-handle" respect-lang-dir="" text="[[displayHandle]]" class="style-scope ytd-handles-claiming-edit-dialog-content">\n    </yt-formatted-string>\n    <yt-formatted-string id="display-handle-url" text="[[displayHandleUrl]]" class="style-scope ytd-handles-claiming-edit-dialog-content"></yt-formatted-string>\n    <template is="dom-if" restamp="" if="[[warningText]]" class="style-scope ytd-handles-claiming-edit-dialog-content">\n      <yt-formatted-string id="warning-text" class="line-text style-scope ytd-handles-claiming-edit-dialog-content" split-lines="" text="[[warningText]]">\n      </yt-formatted-string>\n    </template>\n  </div>\n  <div id="info-container" class="style-scope ytd-handles-claiming-edit-dialog-content">\n    <div id="messages" class="style-scope ytd-handles-claiming-edit-dialog-content">\n      <template is="dom-repeat" items="[[data.infoText]]" class="style-scope ytd-handles-claiming-edit-dialog-content">\n        <yt-formatted-string class="line-text style-scope ytd-handles-claiming-edit-dialog-content" split-lines="" text="[[item]]"></yt-formatted-string>\n      </template>\n    </div>\n  </div>\n  <div id="input-container" class="style-scope ytd-handles-claiming-edit-dialog-content">\n    <template is="dom-if" restamp="" if="[[data.inputField]]" class="style-scope ytd-handles-claiming-edit-dialog-content">\n      <ytd-channel-handle-input-renderer id="channel-handle-input" data="[[data.inputField.channelHandleInputRenderer]]" on-value-changed="selectedHandleChanged" class="style-scope ytd-handles-claiming-edit-dialog-content">\n      </ytd-channel-handle-input-renderer>\n    </template>\n  </div>\n</div>\n<div id="spinner" hidden="[[!isLoading]]" class="style-scope ytd-handles-claiming-edit-dialog-content">\n  <tp-yt-paper-spinner active="[[isLoading]]" class="style-scope ytd-handles-claiming-edit-dialog-content"></tp-yt-paper-spinner>\n</div>\n');a.content.insertBefore(_.w().content.cloneNode(!0),
a.content.firstChild);return Uce=a},{mode:1});var RAz;var jV=function(){var a=_.G.apply(this,arguments)||this;a.actionButtonOverride={style:"mono",type:"filled",size:"M"};a.cancelButtonOverride={style:"mono",type:"text",size:"M"};a.selectButtonDisabled=!1;a.isLoading=!1;a.hasSelectedHandleEventListener=!1;a.selectedHandleChanged=function(z){a.selectedHandle=z};
return a};
_.b(jV,_.G);_.Z=jV.prototype;_.Z.onSelectedHandleChanged=function(){this.updateSelectButtonDisabled()};
_.Z.onDataChanged=function(){var a,z;this.selectedHandle=(z=_.H((a=this.data)==null?void 0:a.inputField,Xwf))==null?void 0:z.handle};
_.Z.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.Z.onCancel=function(){this.selectedHandle="";_.ZF(this.hostElement,"yt-close-popup-action",[this.is])};
_.Z.onSelectHandle=function(){var a=this;if(this.selectedHandle!==void 0){var z;((z=this.data)==null?void 0:z.updateChannelPageSettings)!==void 0&&(this.isLoading=!0,this.ytComponentBehavior.resolveCommand(this.data.updateChannelPageSettings,{form:{handle:this.selectedHandle},commandController:{onSuccess:function(I,J){if(J.newHandleUpdateStatus!==void 0&&J.newHandleUpdateStatus.error==="HANDLE_UPDATE_ERROR_HANDLE_CHANGE_QUOTA_EXCEEDED"&&J.newHandleUpdateStatus.errorMessage)_.cn(a.hostElement,_.cd(J.newHandleUpdateStatus.errorMessage)),
a.isLoading=!1;else{var r;if((r=a.data)==null?0:r.onChannelUpdateSuccess){I=a.data.onChannelUpdateSuccess;var P,N;if(J=(P=_.H(I,_.G7))==null?void 0:(N=P.popup)==null?void 0:N.handlesClaimingConfirmDialogRenderer)J.handle=_.Mo(a.selectedHandle);a.ytComponentBehavior.resolveCommand(I);_.ZF(a.hostElement,"yt-close-popup-action",[a.is])}else a.isLoading=!1}},
onServerError:function(){var I;a.content&&((I=a.content)==null?0:I.handleInput)&&a.content.handleInput.validate();a.isLoading=!1;_.cn(a.hostElement,_.AR("TRY_AGAIN_LATER"))}}}))}};
_.Z.updateSelectButtonDisabled=function(){this.selectButtonDisabled=this.isLoading||this.selectedHandle===void 0||this.selectedHandle===""||!this.selectedHandle};
jV.prototype.onDataChanged=jV.prototype.onDataChanged;jV.prototype.onSelectedHandleChanged=jV.prototype.onSelectedHandleChanged;_.L([_.Q(_.Ms.YtComponentBehavior),_.p("design:type",Object)],jV.prototype,"ytComponentBehavior",void 0);_.L([_.x(),_.p("design:type",Object)],jV.prototype,"actionButtonOverride",void 0);_.L([_.x(),_.p("design:type",Object)],jV.prototype,"cancelButtonOverride",void 0);_.L([_.x(),_.p("design:type",Object)],jV.prototype,"data",void 0);
_.L([_.x(),_.p("design:type",String)],jV.prototype,"selectedHandle",void 0);_.L([_.x(),_.p("design:type",Object)],jV.prototype,"selectButtonDisabled",void 0);_.L([_.x(),_.p("design:type",Object)],jV.prototype,"isLoading",void 0);_.L([_.x(),_.p("design:type",Object)],jV.prototype,"hasSelectedHandleEventListener",void 0);_.L([_.x(),_.p("design:type",Object)],jV.prototype,"handleInput",void 0);
_.L([_.O8("selectedHandle"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],jV.prototype,"onSelectedHandleChanged",null);_.L([_.O8("data"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],jV.prototype,"onDataChanged",null);_.L([_.A3("ytd-handles-claiming-edit-dialog-content"),_.p("design:type",Object)],jV.prototype,"content",void 0);_.L([_.Q(_.k.YtRendererBehavior),_.p("design:type",Object)],jV.prototype,"ytRendererBehavior",void 0);
_.L([_.Q(_.u4.YtRendererstamperBehavior),_.p("design:type",Object)],jV.prototype,"ytRendererstamperBehavior",void 0);_.L([_.U({is:"ytd-handles-claiming-edit-dialog-renderer",disableElementRegistration:!0})],jV);
_.D(jV,"ytd-handles-claiming-edit-dialog-renderer",function(){if(RAz!==void 0)return RAz;var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-handles-claiming-edit-dialog-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-handles-claiming-edit-dialog-renderer">\n  <yt-formatted-string id="title" text="[[data.title]]" class="style-scope ytd-handles-claiming-edit-dialog-renderer"></yt-formatted-string>\n</div>\n<ytd-handles-claiming-edit-dialog-content data="[[data]]" is-loading="[[isLoading]]" selected-handle="[[selectedHandle]]" on-selected-handle-changed="[[selectedHandleChanged]]" class="style-scope ytd-handles-claiming-edit-dialog-renderer">\n</ytd-handles-claiming-edit-dialog-content>\n<div id="footer" class="style-scope ytd-handles-claiming-edit-dialog-renderer">\n  <ytd-button-renderer id="cancel-button" data="[[data.cancelButton.buttonRenderer]]" overrides="[[cancelButtonOverride]]" on-click="onCancel" class="style-scope ytd-handles-claiming-edit-dialog-renderer">\n  </ytd-button-renderer>\n  <ytd-button-renderer id="select-button" data="[[data.selectButton.buttonRenderer]]" disabled="[[selectButtonDisabled]]" overrides="[[actionButtonOverride]]" on-click="onSelectHandle" class="style-scope ytd-handles-claiming-edit-dialog-renderer">\n  </ytd-button-renderer>\n</div>\n');a.content.insertBefore(_.w().content.cloneNode(!0),
a.content.firstChild);return RAz=a},{mode:1});var La0;var zE=function(){return _.G.apply(this,arguments)||this};
_.b(zE,_.G);_.eH.Object.defineProperties(zE.prototype,{formattedHandle:{configurable:!0,enumerable:!0,get:function(){var a;if((a=this.data)==null?0:a.handle){var z;return _.Mo("@"+_.cd((z=this.data)==null?void 0:z.handle))}}}});
_.L([_.S("data"),_.p("design:type",Object),_.p("design:paramtypes",[])],zE.prototype,"formattedHandle",null);_.L([_.x(),_.p("design:type",Object)],zE.prototype,"data",void 0);_.L([_.U({is:"ytd-handles-claiming-radio-option-renderer",disableElementRegistration:!0})],zE);
_.D(zE,"ytd-handles-claiming-radio-option-renderer",function(){if(La0!==void 0)return La0;var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-handles-claiming-radio-option-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-formatted-string id="handle" respect-lang-dir="" text="[[formattedHandle]]" class="style-scope ytd-handles-claiming-radio-option-renderer">\n</yt-formatted-string>\n');a.content.insertBefore(_.w().content.cloneNode(!0),
a.content.firstChild);return La0=a},{mode:1});var l3Z;var pTM=/^[\x00-\x7F]+$/,Iu=function(){var a=_.G.apply(this,arguments)||this;a.initialRadioIndex="-1";a.isLoading=!1;a.darkerDarkTheme=_.K("web_darker_dark_theme");a.maybeSubmitFeedback=function(){a.feedbackSurveyRenderer.submitSurvey()};
return a};
_.b(Iu,_.G);Iu.prototype.updateSelectedHandleIndexFromBinding=function(a){this.selectedRadioIndex=+a.detail.value;if(this.onSelectedRadioIndexChanged)this.onSelectedRadioIndexChanged(a)};
Iu.prototype.selectedHandleChanged=function(a){if(this.handleInput&&Number(this.selectedRadioIndex)===this.radioButtonLength&&this.onSelectedHandleChanged){var z;this.selectedHandle=(z=this.handleInput)==null?void 0:z.value;this.onSelectedHandleChanged(a)}};
_.eH.Object.defineProperties(Iu.prototype,{radioButtonLength:{configurable:!0,enumerable:!0,get:function(){var a;return(((a=this.data)==null?void 0:a.radioButton)||[]).length}},
handleUrlPrefix:{configurable:!0,enumerable:!0,get:function(){var a;return this.ytRendererBehavior.getSimpleString((a=this.data)==null?void 0:a.handleUrlPrefix)}},
displayHandle:{configurable:!0,enumerable:!0,get:function(){if(this.selectedHandle)return _.Mo("@"+this.selectedHandle)}},
displayHandleUrl:{configurable:!0,enumerable:!0,get:function(){if(this.handleUrlPrefix&&this.selectedHandle)return _.Mo(this.handleUrlPrefix+"@"+this.selectedHandle)}},
warningText:{configurable:!0,enumerable:!0,get:function(){if(this.selectedHandle&&!pTM.test(this.selectedHandle)){var a;return(a=this.data)==null?void 0:a.warningText}}}});
_.L([_.x(),_.p("design:type",Object)],Iu.prototype,"data",void 0);_.L([_.x(),_.p("design:type",Object)],Iu.prototype,"initialRadioIndex",void 0);_.L([_.x(),_.p("design:type",Number)],Iu.prototype,"selectedRadioIndex",void 0);_.L([_.x(),_.p("design:type",String)],Iu.prototype,"selectedHandle",void 0);_.L([_.x(),_.p("design:type",Object)],Iu.prototype,"isLoading",void 0);_.L([_.x(),_.p("design:type",Function)],Iu.prototype,"onSelectedHandleChanged",void 0);
_.L([_.x(),_.p("design:type",Function)],Iu.prototype,"onSelectedRadioIndexChanged",void 0);_.L([_.A3("#channel-handle-input"),_.p("design:type",Object)],Iu.prototype,"handleInput",void 0);_.L([_.A3("ytd-feedback-survey-renderer"),_.p("design:type",Object)],Iu.prototype,"feedbackSurveyRenderer",void 0);_.L([_.S("data"),_.p("design:type",Number),_.p("design:paramtypes",[])],Iu.prototype,"radioButtonLength",null);
_.L([_.S("data"),_.p("design:type",Object),_.p("design:paramtypes",[])],Iu.prototype,"handleUrlPrefix",null);_.L([_.S("selectedHandle"),_.p("design:type",Object),_.p("design:paramtypes",[])],Iu.prototype,"displayHandle",null);_.L([_.S("selectedHandle"),_.p("design:type",Object),_.p("design:paramtypes",[])],Iu.prototype,"displayHandleUrl",null);_.L([_.S("selectedHandle"),_.p("design:type",Object),_.p("design:paramtypes",[])],Iu.prototype,"warningText",null);
_.L([_.x({reflectToAttribute:!0}),_.p("design:type",Object)],Iu.prototype,"darkerDarkTheme",void 0);_.L([_.Q(_.k.YtRendererBehavior),_.p("design:type",Object)],Iu.prototype,"ytRendererBehavior",void 0);_.L([_.U({is:"ytd-handles-claiming-select-dialog-content",disableElementRegistration:!0})],Iu);
_.D(Iu,"ytd-handles-claiming-select-dialog-content",function(){if(l3Z!==void 0)return l3Z;var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-handles-claiming-select-dialog-content--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="container" class="style-scope ytd-handles-claiming-select-dialog-content">\n  <div id="handle-container" class="style-scope ytd-handles-claiming-select-dialog-content">\n    <yt-img-shadow id="profile-picture" height="100" thumbnail="[[data.profilePicture]]" width="100" class="style-scope ytd-handles-claiming-select-dialog-content">\n    </yt-img-shadow>\n    <yt-formatted-string id="display-name" text="[[data.displayName]]" class="style-scope ytd-handles-claiming-select-dialog-content"></yt-formatted-string>\n    <yt-formatted-string id="display-handle" respect-lang-dir="" text="[[displayHandle]]" class="style-scope ytd-handles-claiming-select-dialog-content">\n    </yt-formatted-string>\n    <yt-formatted-string id="display-handle-url" text="[[displayHandleUrl]]" class="style-scope ytd-handles-claiming-select-dialog-content"></yt-formatted-string>\n    <template is="dom-if" restamp="" if="[[warningText]]" class="style-scope ytd-handles-claiming-select-dialog-content">\n      <yt-formatted-string id="warning-text" class="line-text style-scope ytd-handles-claiming-select-dialog-content" split-lines="" text="[[warningText]]">\n      </yt-formatted-string>\n    </template>\n  </div>\n  <div id="info-container" class="style-scope ytd-handles-claiming-select-dialog-content">\n    <div id="messages" class="style-scope ytd-handles-claiming-select-dialog-content">\n      <template is="dom-repeat" items="[[data.infoText]]" class="style-scope ytd-handles-claiming-select-dialog-content">\n        <yt-formatted-string class="line-text style-scope ytd-handles-claiming-select-dialog-content" split-lines="" text="[[item]]"></yt-formatted-string>\n      </template>\n    </div>\n  </div>\n  <tp-yt-paper-radio-group id="radio-container" selected="[[initialRadioIndex]]" on-selected-changed="updateSelectedHandleIndexFromBinding" class="style-scope ytd-handles-claiming-select-dialog-content">\n    <template is="dom-repeat" items="[[data.radioButton]]" class="style-scope ytd-handles-claiming-select-dialog-content">\n      <tp-yt-paper-radio-button id="radio-item" name$="[[index]]" class="style-scope ytd-handles-claiming-select-dialog-content">\n        <ytd-handles-claiming-radio-option-renderer data="[[item.handlesClaimingRadioOptionRenderer]]" class="style-scope ytd-handles-claiming-select-dialog-content">\n        </ytd-handles-claiming-radio-option-renderer>\n      </tp-yt-paper-radio-button>\n    </template>\n    <template is="dom-if" restamp="" if="[[data.inputField]]" class="style-scope ytd-handles-claiming-select-dialog-content">\n      <tp-yt-paper-radio-button id="radio-item" name$="[[radioButtonLength]]" class="style-scope ytd-handles-claiming-select-dialog-content">\n        <ytd-channel-handle-input-renderer id="channel-handle-input" data="[[data.inputField.channelHandleInputRenderer]]" on-value-changed="selectedHandleChanged" class="style-scope ytd-handles-claiming-select-dialog-content">\n        </ytd-channel-handle-input-renderer>\n      </tp-yt-paper-radio-button>\n    </template>\n  </tp-yt-paper-radio-group>\n</div>\n<div id="spinner" hidden="[[!isLoading]]" class="style-scope ytd-handles-claiming-select-dialog-content">\n  <tp-yt-paper-spinner active="[[isLoading]]" class="style-scope ytd-handles-claiming-select-dialog-content"></tp-yt-paper-spinner>\n</div>\n');a.content.insertBefore(_.w().content.cloneNode(!0),
a.content.firstChild);return l3Z=a},{mode:1});var wT0;var Jg=function(){var a=_.G.apply(this,arguments)||this;a.actionButtonOverride={style:"mono",type:"filled",size:"M"};a.cancelButtonOverride={style:"mono",type:"text",size:"M"};a.initialRadioIndex="-1";a.selectButtonDisabled=!1;a.isLoading=!1;a.selectedRadioIndexChanged=function(z){a.selectedRadioIndex=Number(z.detail.value)};
a.selectedHandleChanged=function(z){a.selectedHandle=z.detail.value};
a.darkerDarkTheme=_.K("web_darker_dark_theme");return a};
_.b(Jg,_.G);_.Z=Jg.prototype;_.Z.onDataChanged=function(){this.initialRadioIndex="0";this.selectedRadioIndex=0};
_.Z.onSelectedHandleIndexChanged=function(){this.updateSelectedHandle()};
_.Z.onSelectedHandleChanged=function(){this.updateSelectButtonDisabled();_.Ct(this.hostElement,"yt-refit-popups-action")};
_.Z.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.Z.onCancel=function(){this.initialRadioIndex="-1";this.selectedRadioIndex=-1;_.ZF(this.hostElement,"yt-close-popup-action",[this.is])};
_.Z.onSelectHandle=function(){var a=this;if(this.selectedHandle!==void 0){var z;((z=this.data)==null?void 0:z.updateChannelPageSettings)!==void 0&&(this.isLoading=!0,this.ytComponentBehavior.resolveCommand(this.data.updateChannelPageSettings,{form:{handle:this.selectedHandle},commandController:{onSuccess:function(I,J){if(J.newHandleUpdateStatus!==void 0&&J.newHandleUpdateStatus.error==="HANDLE_UPDATE_ERROR_HANDLE_CHANGE_QUOTA_EXCEEDED"&&J.newHandleUpdateStatus.errorMessage)_.cn(a.hostElement,_.cd(J.newHandleUpdateStatus.errorMessage)),
a.isLoading=!1;else{var r;if((r=a.data)==null?0:r.onChannelUpdateSuccess){I=a.data.onChannelUpdateSuccess;J=_.H(I,_.G7);var P;if(J==null?0:(P=J.popup)==null?0:P.handlesClaimingConfirmDialogRenderer)J.popup.handlesClaimingConfirmDialogRenderer.handle=_.Mo(a.selectedHandle);a.ytComponentBehavior.resolveCommand(I);_.ZF(a.hostElement,"yt-close-popup-action",[a.is])}else a.isLoading=!1}},
onServerError:function(){if(a.selectedRadioIndex===a.radioButtonLength){var I;a.content&&((I=a.content)==null?0:I.handleInput)&&a.content.handleInput.validate()}a.isLoading=!1;_.cn(a.hostElement,_.AR("TRY_AGAIN_LATER"))}}}))}};
_.Z.updateSelectedHandle=function(){if(this.selectedRadioIndex!==void 0)if(this.selectedRadioIndex<0)this.selectedHandle=void 0;else if(this.selectedRadioIndex===this.radioButtonLength){var a,z;this.selectedHandle=(a=this.content)==null?void 0:(z=a.handleInput)==null?void 0:z.value}else this.selectedRadioIndex>=0&&((a=this.getRadioItem(this.selectedRadioIndex))?this.selectedHandle=this.ytRendererBehavior.getSimpleString(a==null?void 0:a.handle):this.selectedHandle=void 0)};
_.Z.updateSelectButtonDisabled=function(){this.selectButtonDisabled=this.isLoading||this.selectedHandle===void 0||this.selectedHandle===""||!this.selectedHandle};
_.Z.getRadioItem=function(a){if(this.radioButtonLength>a&&a>=0)return _.H(this.data.radioButton[a],cKi)};
_.eH.Object.defineProperties(Jg.prototype,{radioButtonLength:{configurable:!0,enumerable:!0,get:function(){var a;return(((a=this.data)==null?void 0:a.radioButton)||[]).length}}});
Jg.prototype.onSelectedHandleChanged=Jg.prototype.onSelectedHandleChanged;Jg.prototype.onSelectedHandleIndexChanged=Jg.prototype.onSelectedHandleIndexChanged;Jg.prototype.onDataChanged=Jg.prototype.onDataChanged;_.L([_.Q(_.Ms.YtComponentBehavior),_.p("design:type",Object)],Jg.prototype,"ytComponentBehavior",void 0);_.L([_.x(),_.p("design:type",Object)],Jg.prototype,"actionButtonOverride",void 0);_.L([_.x(),_.p("design:type",Object)],Jg.prototype,"cancelButtonOverride",void 0);
_.L([_.x(),_.p("design:type",Object)],Jg.prototype,"data",void 0);_.L([_.x(),_.p("design:type",Object)],Jg.prototype,"initialRadioIndex",void 0);_.L([_.x(),_.p("design:type",Number)],Jg.prototype,"selectedRadioIndex",void 0);_.L([_.x(),_.p("design:type",String)],Jg.prototype,"selectedHandle",void 0);_.L([_.x(),_.p("design:type",Object)],Jg.prototype,"selectButtonDisabled",void 0);_.L([_.x(),_.p("design:type",Object)],Jg.prototype,"isLoading",void 0);
_.L([_.S("data"),_.p("design:type",Number),_.p("design:paramtypes",[])],Jg.prototype,"radioButtonLength",null);_.L([_.A3("ytd-handles-claiming-select-dialog-content"),_.p("design:type",Object)],Jg.prototype,"content",void 0);_.L([_.O8("data"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],Jg.prototype,"onDataChanged",null);
_.L([_.O8("selectedRadioIndex"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],Jg.prototype,"onSelectedHandleIndexChanged",null);_.L([_.O8("selectedHandle"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],Jg.prototype,"onSelectedHandleChanged",null);_.L([_.x({reflectToAttribute:!0}),_.p("design:type",Object)],Jg.prototype,"darkerDarkTheme",void 0);
_.L([_.Q(_.k.YtRendererBehavior),_.p("design:type",Object)],Jg.prototype,"ytRendererBehavior",void 0);_.L([_.Q(_.u4.YtRendererstamperBehavior),_.p("design:type",Object)],Jg.prototype,"ytRendererstamperBehavior",void 0);_.L([_.U({is:"ytd-handles-claiming-select-dialog-renderer",disableElementRegistration:!0})],Jg);
_.D(Jg,"ytd-handles-claiming-select-dialog-renderer",function(){if(wT0!==void 0)return wT0;var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-handles-claiming-select-dialog-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-handles-claiming-select-dialog-renderer">\n  <yt-formatted-string id="title" text="[[data.title]]" class="style-scope ytd-handles-claiming-select-dialog-renderer"></yt-formatted-string>\n</div>\n<ytd-handles-claiming-select-dialog-content data="[[data]]" initial-radio-index="[[initialRadioIndex]]" is-loading="[[isLoading]]" selected-handle="[[selectedHandle]]" selected-radio-index="[[selectedRadioIndex]]" on-selected-handle-changed="[[selectedHandleChanged]]" on-selected-radio-index-changed="[[selectedRadioIndexChanged]]" class="style-scope ytd-handles-claiming-select-dialog-renderer">\n</ytd-handles-claiming-select-dialog-content>\n<div id="footer" class="style-scope ytd-handles-claiming-select-dialog-renderer">\n  <ytd-button-renderer id="cancel-button" data="[[data.cancelButton.buttonRenderer]]" overrides="[[cancelButtonOverride]]" on-click="onCancel" class="style-scope ytd-handles-claiming-select-dialog-renderer">\n  </ytd-button-renderer>\n  <ytd-button-renderer id="select-button" data="[[data.selectButton.buttonRenderer]]" disabled="[[selectButtonDisabled]]" overrides="[[actionButtonOverride]]" on-click="onSelectHandle" class="style-scope ytd-handles-claiming-select-dialog-renderer">\n  </ytd-button-renderer>\n</div>\n');a.content.insertBefore(_.w().content.cloneNode(!0),
a.content.firstChild);return wT0=a},{mode:1});var mcE;var y5Z;var rN=function(){return _.G.apply(this,arguments)||this};
_.b(rN,_.G);rN.prototype.configureRendererStamper=function(){return{"data.badge":{id:"standalone-badge",mapping:{metadataBadgeRenderer:{component:"ytd-badge-supported-renderer",properties:{topStandaloneBadge:"[[data.badge]]"}}}}}};
_.L([_.Q(_.u4.YtRendererstamperBehavior),_.p("design:type",Object)],rN.prototype,"ytRendererstamperBehavior",void 0);_.L([_.Q(_.k.YtRendererBehavior),_.p("design:type",Object)],rN.prototype,"ytRendererBehavior",void 0);_.L([_.x(),_.p("design:type",Object)],rN.prototype,"data",void 0);_.L([_.U({is:"ytd-hotkey-dialog-section-option-renderer",disableElementRegistration:!0})],rN);
_.D(rN,"ytd-hotkey-dialog-section-option-renderer",function(){if(y5Z!==void 0)return y5Z;var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-hotkey-dialog-section-option-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="label-container" class="label-container style-scope ytd-hotkey-dialog-section-option-renderer">\n  <div id="label" class="style-scope ytd-hotkey-dialog-section-option-renderer">[[getSimpleString(data.label)]]</div>\n  <div id="standalone-badge" class="standalone-badge style-scope ytd-hotkey-dialog-section-option-renderer"></div>\n</div>\n<div id="hotkey" aria-label$="[[data.hotkeyAccessibilityLabel.accessibilityData.label]]" class="style-scope ytd-hotkey-dialog-section-option-renderer">[[data.hotkey]]</div>\n');
a.content.insertBefore(_.w().content.cloneNode(!0),a.content.firstChild);return y5Z=a},{mode:1});var kyf;var Pt=function(){return _.G.apply(this,arguments)||this};
_.b(Pt,_.G);Pt.prototype.configureRendererStamper=function(){return{"data.options":{id:"options",mapping:{hotkeyDialogSectionOptionRenderer:"ytd-hotkey-dialog-section-option-renderer"}}}};
_.L([_.Q(_.u4.YtRendererstamperBehavior),_.p("design:type",Object)],Pt.prototype,"ytRendererstamperBehavior",void 0);_.L([_.Q(_.k.YtRendererBehavior),_.p("design:type",Object)],Pt.prototype,"ytRendererBehavior",void 0);_.L([_.x(),_.p("design:type",Object)],Pt.prototype,"data",void 0);_.L([_.U({is:"ytd-hotkey-dialog-section-renderer",disableElementRegistration:!0})],Pt);
_.D(Pt,"ytd-hotkey-dialog-section-renderer",function(){if(kyf!==void 0)return kyf;var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-hotkey-dialog-section-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="sub-title" class="style-scope ytd-hotkey-dialog-section-renderer">[[getSimpleString(data.title)]]</div>\n<div id="options" class="style-scope ytd-hotkey-dialog-section-renderer"></div>\n');
a.content.insertBefore(_.w().content.cloneNode(!0),a.content.firstChild);return kyf=a},{mode:1});var Z9=function(){var a=_.G.apply(this,arguments)||this;a.darkerDarkTheme=_.K("web_darker_dark_theme");return a};
_.b(Z9,_.G);Z9.prototype.configureRendererStamper=function(){return{"data.sections":{id:"sections",mapping:{hotkeyDialogSectionRenderer:"ytd-hotkey-dialog-section-renderer"}}}};
_.L([_.Q(_.u4.YtRendererstamperBehavior),_.p("design:type",Object)],Z9.prototype,"ytRendererstamperBehavior",void 0);_.L([_.x(),_.p("design:type",Object)],Z9.prototype,"data",void 0);_.L([_.x({reflectToAttribute:!0}),_.p("design:type",Object)],Z9.prototype,"darkerDarkTheme",void 0);_.L([_.U({is:"ytd-hotkey-dialog-content",disableElementRegistration:!0})],Z9);
_.D(Z9,"ytd-hotkey-dialog-content",function(){if(mcE!==void 0)return mcE;var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-hotkey-dialog-content--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<tp-yt-paper-dialog-scrollable id="scrollable" class="style-scope ytd-hotkey-dialog-content">\n  <div id="sections" class="style-scope ytd-hotkey-dialog-content"></div>\n</tp-yt-paper-dialog-scrollable>\n');a.content.insertBefore(_.w().content.cloneNode(!0),
a.content.firstChild);return mcE=a},{mode:1});var Moi;var C2=function(){return _.G.apply(this,arguments)||this};
_.b(C2,_.G);C2.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");var a=document.querySelector("ytd-hotkey-dialog-content #scrollable");a&&(a.dialogElement=this.hostElement.parentElement)};
C2.prototype.onCloseTap=function(){_.ZF(this.hostElement,"yt-close-popup-action")};
_.L([_.Q(_.k.YtRendererBehavior),_.p("design:type",Object)],C2.prototype,"ytRendererBehavior",void 0);_.L([_.x(),_.p("design:type",Object)],C2.prototype,"data",void 0);_.L([_.U({is:"ytd-hotkey-dialog-renderer",disableElementRegistration:!0})],C2);
_.D(C2,"ytd-hotkey-dialog-renderer",function(){if(Moi!==void 0)return Moi;var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-hotkey-dialog-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="title" class="style-scope ytd-hotkey-dialog-renderer">[[getSimpleString(data.title)]]</div>\n<ytd-hotkey-dialog-content data="[[data]]" class="style-scope ytd-hotkey-dialog-renderer"></ytd-hotkey-dialog-content>\n<div id="action-buttons" class="style-scope ytd-hotkey-dialog-renderer">\n  <ytd-button-renderer id="cancel" data="[[data.dismissButton.buttonRenderer]]" on-tap="onCloseTap" class="style-scope ytd-hotkey-dialog-renderer">\n  </ytd-button-renderer>\n</div>\n');a.content.insertBefore(_.w().content.cloneNode(!0),
a.content.firstChild);return Moi=a},{mode:1});var c54;var Nq=function(){return _.G.apply(this,arguments)||this};
_.b(Nq,_.G);Nq.prototype.onYtServiceRequestError=function(){if(this.blocked){var a;var z=(a=this.data)==null?void 0:a.defaultServiceEndpoint}else{var I;z=(I=this.data)==null?void 0:I.toggledServiceEndpoint}var J;(z=(J=_.H(z,_.Vvl))==null?void 0:J.onFailureAction)&&this.ytComponentBehavior.resolveCommand(z);this.updateBlockState(!this.blocked)};
Nq.prototype.onYtToggleButton=function(a){this.updateBlockState(a.detail.toggled)};
Nq.prototype.updateBlockState=function(a){if(a!==this.blocked){var z=this.blockedEntityKey;z&&this.ytdReduxBehavior.dispatch(_.Q0("blockStateEntity",z,{key:z,blocked:a}));this.set("data.isToggled",a)}};
_.eH.Object.defineProperties(Nq.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)}}});
Nq.prototype.onYtToggleButton=Nq.prototype.onYtToggleButton;Nq.prototype.onYtServiceRequestError=Nq.prototype.onYtServiceRequestError;_.L([_.Q(_.Ms.YtComponentBehavior),_.p("design:type",Object)],Nq.prototype,"ytComponentBehavior",void 0);_.L([_.Q(_.pV),_.p("design:type",Object)],Nq.prototype,"ytdReduxBehavior",void 0);_.L([_.x(),_.p("design:type",Object)],Nq.prototype,"data",void 0);_.L([_.x(),_.p("design:type",Object)],Nq.prototype,"blockedEntityKey",void 0);
_.L([_.x({selectorArgs:["blockedEntityKey"],selector:function(a,z){return _.Bd(a.entities,"blockStateEntity",z)}}),
_.p("design:type",Object)],Nq.prototype,"blockStateEntity",void 0);_.L([_.S("data","blockStateEntity"),_.p("design:type",Boolean),_.p("design:paramtypes",[])],Nq.prototype,"blocked",null);_.L([_.gz("yt-service-request-error"),_.p("design:type",Function),_.p("design:paramtypes",[CustomEvent]),_.p("design:returntype")],Nq.prototype,"onYtServiceRequestError",null);
_.L([_.gz("yt-toggle-button"),_.p("design:type",Function),_.p("design:paramtypes",[CustomEvent]),_.p("design:returntype")],Nq.prototype,"onYtToggleButton",null);_.L([_.U({is:"ytd-block-button",disableElementRegistration:!0})],Nq);
_.D(Nq,"ytd-block-button",function(){if(c54!==void 0)return c54;var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-block-button--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<ytd-toggle-button-renderer data="[[data]]" class="style-scope ytd-block-button">\n</ytd-toggle-button-renderer>\n');a.content.insertBefore(_.w().content.cloneNode(!0),a.content.firstChild);return c54=a},
{mode:1});var YdG;var qdZ;var tg=function(){return _.G.apply(this,arguments)||this};
_.b(tg,_.G);_.L([_.Q(_.Ms.YtComponentBehavior),_.p("design:type",Object)],tg.prototype,"ytComponentBehavior",void 0);_.L([_.Q(_.k.YtRendererBehavior),_.p("design:type",Object)],tg.prototype,"ytRendererBehavior",void 0);_.L([_.x(),_.p("design:type",Object)],tg.prototype,"data",void 0);_.L([_.U({is:"ytd-kids-blocklist-picker-item-renderer",disableElementRegistration:!0})],tg);
_.D(tg,"ytd-kids-blocklist-picker-item-renderer",function(){if(qdZ!==void 0)return qdZ;var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-kids-blocklist-picker-item-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="account-info style-scope ytd-kids-blocklist-picker-item-renderer">\n  <div class="account-avatar style-scope ytd-kids-blocklist-picker-item-renderer">\n    <yt-img-shadow id="account-icon" thumbnail="[[data.avatar]]" width="44" class="style-scope ytd-kids-blocklist-picker-item-renderer">\n    </yt-img-shadow>\n  </div>\n  <div class="account-text-info style-scope ytd-kids-blocklist-picker-item-renderer">\n    <yt-formatted-string class="account-name style-scope ytd-kids-blocklist-picker-item-renderer" text="[[data.childDisplayName]]">\n    </yt-formatted-string>\n    <yt-formatted-string class="account-description style-scope ytd-kids-blocklist-picker-item-renderer" text="[[data.childAccountDescription]]">\n    </yt-formatted-string>\n  </div>\n</div>\n<div class="action-button style-scope ytd-kids-blocklist-picker-item-renderer">\n  <ytd-block-button blocked-entity-key="[[data.blockedEntityKey]]" data="[[data.blockButton.toggleButtonRenderer]]" class="style-scope ytd-kids-blocklist-picker-item-renderer">\n  </ytd-block-button>\n</div>\n');
a.content.insertBefore(_.w().content.cloneNode(!0),a.content.firstChild);return qdZ=a},{mode:1});var uy=function(){return _.G.apply(this,arguments)||this};
_.b(uy,_.G);uy.prototype.configureRendererStamper=function(){return{"data.childRows":{id:"child-rows",mapping:{kidsBlocklistPickerItemRenderer:"ytd-kids-blocklist-picker-item-renderer"}}}};
_.L([_.Q(_.u4.YtRendererstamperBehavior),_.p("design:type",Object)],uy.prototype,"ytRendererstamperBehavior",void 0);_.L([_.x(),_.p("design:type",Object)],uy.prototype,"data",void 0);_.L([_.U({is:"ytd-kids-blocklist-picker-content",disableElementRegistration:!0})],uy);
_.D(uy,"ytd-kids-blocklist-picker-content",function(){if(YdG!==void 0)return YdG;var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-kids-blocklist-picker-content--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="child-rows" class="style-scope ytd-kids-blocklist-picker-content"></div>\n');a.content.insertBefore(_.w().content.cloneNode(!0),a.content.firstChild);return YdG=
a},{mode:_.Np("kevlar_poly_si_batch_j025")?1:2});var eA4;var Eb=function(){var a=_.G.apply(this,arguments)||this;a.hasAnyRequestSucceeded=!1;a.hasAnyRequestFailed=!1;a.numPendingRequests=0;return a};
_.b(Eb,_.G);_.Z=Eb.prototype;_.Z.attached=function(){this.hostElement.setAttribute("dialog","")};
_.Z.onDoneButtonTap=function(){_.ZF(this.hostElement,"yt-close-popup-action",["ytd-kids-blocklist-picker-renderer"])};
_.Z.onYtServiceRequestSent=function(){this.numPendingRequests+=1};
_.Z.onYtServiceRequestCompleted=function(){--this.numPendingRequests;this.hasAnyRequestSucceeded=!0};
_.Z.onYtServiceRequestError=function(){--this.numPendingRequests;this.hasAnyRequestFailed=!0};
_.Z.onPopupClosed=function(a){var z,I;if(((z=a.detail)==null?void 0:(I=z.popup)==null?void 0:I.is)==="tp-yt-paper-dialog"){var J;this.numPendingRequests<=0&&this.hasAnyRequestSucceeded&&!this.hasAnyRequestFailed&&((J=this.data)==null?0:J.successfulToastActionMessage)&&this.ytComponentBehavior.resolveCommand(_.aX(this.data.successfulToastActionMessage));this.hasAnyRequestFailed=this.hasAnyRequestSucceeded=!1;this.numPendingRequests=0}};
Eb.prototype.onPopupClosed=Eb.prototype.onPopupClosed;Eb.prototype.onYtServiceRequestError=Eb.prototype.onYtServiceRequestError;Eb.prototype.onYtServiceRequestCompleted=Eb.prototype.onYtServiceRequestCompleted;Eb.prototype.onYtServiceRequestSent=Eb.prototype.onYtServiceRequestSent;_.L([_.Q(_.Ms.YtComponentBehavior),_.p("design:type",Object)],Eb.prototype,"ytComponentBehavior",void 0);_.L([_.Q(_.k.YtRendererBehavior),_.p("design:type",Object)],Eb.prototype,"ytRendererBehavior",void 0);
_.L([_.x(),_.p("design:type",Object)],Eb.prototype,"data",void 0);_.L([_.gz("yt-service-request-sent"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],Eb.prototype,"onYtServiceRequestSent",null);_.L([_.gz("yt-service-request-completed"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],Eb.prototype,"onYtServiceRequestCompleted",null);
_.L([_.gz("yt-service-request-error"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],Eb.prototype,"onYtServiceRequestError",null);_.L([_.gz("yt-popup-closed"),_.p("design:type",Function),_.p("design:paramtypes",[CustomEvent]),_.p("design:returntype")],Eb.prototype,"onPopupClosed",null);_.L([_.U({is:"ytd-kids-blocklist-picker-renderer",disableElementRegistration:!0})],Eb);
_.D(Eb,"ytd-kids-blocklist-picker-renderer",function(){if(eA4!==void 0)return eA4;var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-kids-blocklist-picker-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="content" class="style-scope ytd-kids-blocklist-picker-renderer">\n  <div id="title" class="style-scope ytd-kids-blocklist-picker-renderer">\n    <yt-formatted-string text="[[data.title]]" class="style-scope ytd-kids-blocklist-picker-renderer"> </yt-formatted-string>\n  </div>\n  <ytd-kids-blocklist-picker-content data="[[data]]" class="style-scope ytd-kids-blocklist-picker-renderer"> </ytd-kids-blocklist-picker-content>\n</div>\n<div id="footer" class="style-scope ytd-kids-blocklist-picker-renderer">\n  <div id="action-buttons" class="style-scope ytd-kids-blocklist-picker-renderer">\n    <ytd-button-renderer id="done-button" data="[[data.doneButton.buttonRenderer]]" on-click="onDoneButtonTap" class="style-scope ytd-kids-blocklist-picker-renderer">\n    </ytd-button-renderer>\n  </div>\n</div>\n');
a.content.insertBefore(_.w().content.cloneNode(!0),a.content.firstChild);return eA4=a},{mode:1});var ahZ;var jxz;var Bt=function(){return _.G.apply(this,arguments)||this};
_.b(Bt,_.G);Bt.prototype.setTip=function(a){var z=this;this.data&&(this.tip=R60(UUY.getInstance(),a,this.data),_.Yv(this,function(){_.PA(z.hostElement,"yt-refit")}))};
Bt.prototype.clearTip=function(){this.tip=void 0};
Bt.prototype.computeHidden=function(a){return!a};
_.L([_.Q(_.k.YtRendererBehavior),_.p("design:type",Object)],Bt.prototype,"ytRendererBehavior",void 0);_.L([_.x(),_.p("design:type",Object)],Bt.prototype,"data",void 0);_.L([_.x({reflectToAttribute:!0,computed:"computeHidden(tip)",value:!0}),_.p("design:type",Boolean)],Bt.prototype,"hidden",void 0);_.L([_.x(),_.p("design:type",Object)],Bt.prototype,"tip",void 0);_.L([_.U({is:"ytd-menu-popup-tip-renderer",disableElementRegistration:!0})],Bt);
_.D(Bt,"ytd-menu-popup-tip-renderer",function(){if(jxz!==void 0)return jxz;var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-menu-popup-tip-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-formatted-string text="[[tip]]" class="style-scope ytd-menu-popup-tip-renderer"></yt-formatted-string>\n');a.content.insertBefore(_.w().content.cloneNode(!0),a.content.firstChild);
return jxz=a},{mode:1});var zyE;var gN=function(){var a=_.G.apply(this,arguments)||this;a.useIcons=!1;a.systemIcons=_.K("kevlar_system_icons");a.useListItemStyles=_.K("web_list_item_style_for_menu_items");return a};
_.b(gN,_.G);_.Z=gN.prototype;_.Z.onFocus=function(){var a;(a=_.PK(this.hostElement).querySelector("tp-yt-paper-item"))==null||a.focus()};
_.Z.onTap=function(){var a=this.data.isToggled?this.data.toggledServiceEndpoint:this.data.defaultServiceEndpoint;if(a&&_.H(a,_.E_))this.componentBehavior.resolveCommand(a),this.updateToggledStateInEntity();else if(a){this.componentBehavior.resolveCommand(a)||_.ab().resolve(_.j6).resolveCommand(a,{form:{element:this.hostElement}});var z;((z=_.H(a,_.ge))==null?void 0:z.signal)==="CLIENT_SIGNAL"&&this.updateToggledStateInEntity()}};
_.Z.onYtServiceRequestCompleted=function(){this.updateToggledStateInEntity()};
_.Z.toggledStateEntityChanged=function(){this.toggleMenuServiceItemEntity&&this.set("data.isToggled",!!this.toggleMenuServiceItemEntity.isToggled)};
_.Z.updateToggledStateInEntity=function(){var a=this.data.toggleMenuServiceItemEntityKey,z=!this.data.isToggled;a&&this.ytdReduxBehavior.dispatch(_.Q0("toggleMenuServiceItemEntity",a,{key:a,isToggled:z}))};
_.Z.computeIcon=function(a,z,I){return(a=a?I:z)&&a.iconType?_.Bl(a.iconType):""};
_.Z.computeIconHidden=function(){return this.useIcons?!1:!this.icon};
_.Z.isIconActive=function(a){return!_.K("toggle_menu_active_icon_killswitch")&&a};
_.eH.Object.defineProperties(gN.prototype,{toggleButtonText:{configurable:!0,enumerable:!0,get:function(){var a,z,I;return((a=this.data)==null?0:a.isToggled)?(z=this.data)==null?void 0:z.toggledText:(I=this.data)==null?void 0:I.defaultText}}});
gN.prototype.toggledStateEntityChanged=gN.prototype.toggledStateEntityChanged;gN.prototype.onYtServiceRequestCompleted=gN.prototype.onYtServiceRequestCompleted;gN.prototype.onTap=gN.prototype.onTap;gN.prototype.onFocus=gN.prototype.onFocus;_.L([_.Q(_.k.YtRendererBehavior),_.p("design:type",Object)],gN.prototype,"ytRendererBehavior",void 0);_.L([_.Q(_.Ms.YtComponentBehavior),_.p("design:type",Object)],gN.prototype,"componentBehavior",void 0);
_.L([_.Q(_.pV),_.p("design:type",Object)],gN.prototype,"ytdReduxBehavior",void 0);_.L([_.x(),_.p("design:type",Object)],gN.prototype,"data",void 0);_.L([_.x({reflectToAttribute:!0}),_.p("design:type",Object)],gN.prototype,"useIcons",void 0);_.L([_.x({computed:"computeIcon(data.isToggled,data.defaultIcon,data.toggledIcon)",value:""}),_.p("design:type",String)],gN.prototype,"icon",void 0);
_.L([_.x({selectorArgs:["data.toggleMenuServiceItemEntityKey"],selector:function(a,z){return _.Bd(a.entities,"toggleMenuServiceItemEntity",z)}}),
_.p("design:type",Object)],gN.prototype,"toggleMenuServiceItemEntity",void 0);_.L([_.x({reflectToAttribute:!0}),_.p("design:type",Object)],gN.prototype,"systemIcons",void 0);_.L([_.x({reflectToAttribute:!0}),_.p("design:type",Object)],gN.prototype,"useListItemStyles",void 0);_.L([_.gz("focus"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],gN.prototype,"onFocus",null);
_.L([_.S("data.isToggled"),_.p("design:type",Object),_.p("design:paramtypes",[])],gN.prototype,"toggleButtonText",null);_.L([_.gz("tap"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],gN.prototype,"onTap",null);_.L([_.gz("yt-service-request-completed"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],gN.prototype,"onYtServiceRequestCompleted",null);
_.L([_.O8("toggleMenuServiceItemEntity.isToggled","data"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],gN.prototype,"toggledStateEntityChanged",null);_.L([_.U({is:"ytd-toggle-menu-service-item-renderer",disableElementRegistration:!0})],gN);
_.D(gN,"ytd-toggle-menu-service-item-renderer",function(){if(zyE!==void 0)return zyE;var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-toggle-menu-service-item-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<tp-yt-paper-item class="style-scope ytd-toggle-menu-service-item-renderer">\n  <yt-icon active="[[isIconActive(data.isToggled)]]" hidden="[[computeIconHidden(icon, useIcons)]]" icon="[[icon]]" class="style-scope ytd-toggle-menu-service-item-renderer"></yt-icon>\n  <yt-formatted-string text="[[toggleButtonText]]" class="style-scope ytd-toggle-menu-service-item-renderer"></yt-formatted-string>\n  <tp-yt-paper-toggle-button checked="[[data.isToggled]]" hidden="[[!data.hasToggleSwitch]]" class="style-scope ytd-toggle-menu-service-item-renderer"></tp-yt-paper-toggle-button>\n</tp-yt-paper-item>\n');a.content.insertBefore(_.w().content.cloneNode(!0),
a.content.firstChild);return zyE=a},{mode:1});var Ihz;var Ob=function(){return _.G.apply(this,arguments)||this};
_.b(Ob,_.G);Ob.prototype.onFocus=function(){var a;(a=_.PK(this.hostElement).querySelector("tp-yt-paper-item"))==null||a.focus()};
_.eH.Object.defineProperties(Ob.prototype,{imageSource:{configurable:!0,enumerable:!0,get:function(){if(this.data&&this.data.iconUrl)return _.XG(this.data.iconUrl)}}});
Ob.prototype.onFocus=Ob.prototype.onFocus;_.L([_.Q(_.k.YtRendererBehavior),_.p("design:type",Object)],Ob.prototype,"rendererBehavior",void 0);_.L([_.Q(_.FW.YtEndpointBehavior),_.p("design:type",Object)],Ob.prototype,"ytEndpointBehavior",void 0);_.L([_.x(),_.p("design:type",Object)],Ob.prototype,"data",void 0);_.L([_.gz("focus"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],Ob.prototype,"onFocus",null);
_.L([_.S("data.iconUrl"),_.p("design:type",Object),_.p("design:paramtypes",[])],Ob.prototype,"imageSource",null);_.L([_.U({disableElementRegistration:!0,is:"ytd-menu-custom-icon-item-renderer"})],Ob);
_.D(Ob,"ytd-menu-custom-icon-item-renderer",function(){if(Ihz!==void 0)return Ihz;var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-menu-custom-icon-item-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<a class="yt-simple-endpoint style-scope ytd-menu-custom-icon-item-renderer" data="[[data.command]]" href$="[[computeHref_(data.command)]]" tabindex="-1">\n  <tp-yt-paper-item class="style-scope ytd-menu-custom-icon-item-renderer">\n    <img class="custom-icon style-scope ytd-menu-custom-icon-item-renderer" hidden$="[[!data.iconUrl]]" alt="icon" src$="[[imageSource]]">\n    <div class="action-text style-scope ytd-menu-custom-icon-item-renderer">\n      [[getSimpleString(data.actionText)]]\n      <yt-icon class="launch-icon style-scope ytd-menu-custom-icon-item-renderer" icon="yt-icons:launch"></yt-icon>\n    </div>\n  </tp-yt-paper-item>\n</a>\n');a.content.insertBefore(_.w().content.cloneNode(!0),
a.content.firstChild);return Ihz=a},{mode:_.Np("kevlar_poly_si_batch_j028")?1:2});_.Jf(_.LF,"yt-list-item-view-model",{props:{data:_.zl,isMenuItem:_.zl,isCompact:_.zl,onTap:_.I5,trailingAccessory:_.I5,hideSelectionTextChevron:_.zl,disabled:_.zl,inPopup:_.zl,disableHorizontalPadding:_.zl,isOverlay:_.zl,isToggled:_.zl,ariaLabel:_.zl,ariaPressed:_.zl}});var f2=function(){var a=_.G.apply(this,arguments)||this;a.disableBackdropFilter=_.K("web_disable_backdrop_filter");return a};
_.b(f2,_.G);_.Z=f2.prototype;
_.Z.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"}}}};
_.Z.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","menu")};
_.Z.computeAriaLabel=function(a){return a};
_.Z.onPopupOpened=function(){this.items.selected=0;for(var a=_.C(_.PK(this.items).children),z=a.next();!z.done;z=a.next())z.value.popupPositionTarget=this.positionTarget;if(a=this.popupTip||void 0)a.setTip(this.source||""),this.source=void 0;this.veData&&(a=_.TX())&&_.we(a,[this.veData])};
_.Z.onPopupClosed=function(){var a=this.popupTip||void 0;a&&a.clearTip()};
_.Z.onIronActivate=function(a){this.shouldPersist(a)||_.ZF(this.hostElement,"yt-close-popup-action",["ytd-menu-popup-renderer"]);this.veData&&(a=_.TX())&&_.ys(a,this.veData)};
_.Z.shouldPersist=function(a){var z,I;if(((z=a.detail)==null?void 0:z.selected)===void 0||(I=this.data)==null||!I.items)return!1;var J,r;return!((r=(J=this.data.items[a.detail.selected])==null?void 0:J.toggleMenuServiceItemRenderer)==null||!r.persistentOnMenuPopup)};
_.Z.computeUseIcons=function(){return this.data&&this.data.items?this.data.items.some(function(a){return a.menuNavigationItemRenderer?!!a.menuNavigationItemRenderer.icon:a.menuServiceItemRenderer?!!a.menuServiceItemRenderer.icon:a.menuConditionalServiceItemRenderer?!!a.menuConditionalServiceItemRenderer.icon:a.menuConditionalNavigationItemRenderer?!!a.menuConditionalNavigationItemRenderer.icon:a.toggleMenuServiceItemRenderer?!!a.toggleMenuServiceItemRenderer.defaultIcon:!1}):!1};
f2.prototype.onPopupClosed=f2.prototype.onPopupClosed;f2.prototype.onPopupOpened=f2.prototype.onPopupOpened;_.L([_.Q(_.iO.YtEventForwardingBehavior),_.p("design:type",Object)],f2.prototype,"ytEventForwardingBehavior",void 0);_.L([_.Q(_.u4.YtRendererstamperBehavior),_.p("design:type",Object)],f2.prototype,"ytRendererstamperBehavior",void 0);_.L([_.Q(_.k.YtRendererBehavior),_.p("design:type",Object)],f2.prototype,"ytRendererBehavior",void 0);
_.L([_.x(),_.p("design:type",Object)],f2.prototype,"data",void 0);_.L([_.x(),_.p("design:type",Object)],f2.prototype,"veData",void 0);_.L([_.x({reflectToAttribute:!0,readOnly:!0,computed:"computeAriaLabel(data.menuPopupAccessibility.label)"}),_.p("design:type",String)],f2.prototype,"ariaLabel",void 0);_.L([_.x({computed:"computeUseIcons(data)",reflectToAttribute:!0}),_.p("design:type",Boolean)],f2.prototype,"useIcons",void 0);
_.L([_.x({reflectToAttribute:!0}),_.p("design:type",Object)],f2.prototype,"disableBackdropFilter",void 0);_.L([_.A3("#items"),_.p("design:type",Object)],f2.prototype,"items",void 0);_.L([_.A3("ytd-menu-popup-tip-renderer"),_.p("design:type",Object)],f2.prototype,"popupTip",void 0);_.L([_.gz("yt-popup-opened"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],f2.prototype,"onPopupOpened",null);
_.L([_.gz("yt-popup-closed"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],f2.prototype,"onPopupClosed",null);_.L([_.U({is:"ytd-menu-popup-renderer",disableElementRegistration:!0})],f2);
_.D(f2,"ytd-menu-popup-renderer",function(){if(ahZ!==void 0)return ahZ;var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-menu-popup-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<tp-yt-paper-listbox id="items" on-iron-activate="onIronActivate" class="style-scope ytd-menu-popup-renderer"></tp-yt-paper-listbox>\n<div id="footer" class="style-scope ytd-menu-popup-renderer"></div>\n');a.content.insertBefore(_.w().content.cloneNode(!0),
a.content.firstChild);return ahZ=a},{mode:1});var JlZ;var rlZ=_.ec(function(a){a=_.q3(a,{icon:void 0});var z=a.data;a=a.icon;var I=function(){return z().iconBadgeText},J={},r=_.B8("yt-spec-icon-badge-shape",function(){a:switch(z().iconBadgeType){case "notification":var P="yt-spec-icon-badge-shape--type-notification";
break a;case "cart":P="yt-spec-icon-badge-shape--type-cart";break a;default:P=""}return P},function(){a:switch(z().iconBadgeStyle){case "overlay":var P="yt-spec-icon-badge-shape--style-overlay";
break a;default:P=""}return P},(J["yt-spec-icon-badge-shape--text-size-small"]=function(){var P=I();
return!!((P==null?0:P.length)&&P.length>2)},J));
return _.B("yt-icon-badge-shape",null,_.B(_.g,{cond:a,then:function(P){return _.B("div",{class:r},_.B("div",{class:"yt-spec-icon-badge-shape__icon"},_.B(_.nS,{icon:P})),_.B(_.g,{cond:I,then:function(N){return _.B("div",{class:"yt-spec-icon-badge-shape__badge"},N)}}))}}))},"bh");
rlZ.idomCompat=!0;_.Jf(rlZ,"yt-icon-badge-shape",{props:{data:_.zl,icon:_.zl}});var Ag=function(){var a=_.G.apply(this,arguments)||this;a.actionMap={"yt-update-notifications-unseen-count-action":"handleUpdateNotificationsUnseenCountAction","yt-multi-page-menu-closed-action":"handleTopbarMenuClosedAction"};a.unseenCount=0;a.isOverlay=!1;return a};
_.b(Ag,_.G);_.Z=Ag.prototype;_.Z.attached=function(){var a=this;this.data&&this.data.updateUnseenCountEndpoint&&this.sendUnseenCountRequest(this.data.updateUnseenCountEndpoint);navigator&&navigator.serviceWorker&&navigator.serviceWorker.addEventListener("message",function(z){a.onServiceWorkerMessage(z)})};
_.Z.onDataChanged=function(){this.isAttached&&!this.JSC$20335_lastData&&this.data&&this.data.updateUnseenCountEndpoint&&this.sendUnseenCountRequest(this.data.updateUnseenCountEndpoint);this.JSC$20335_lastData=this.data};
_.Z.computeIconBadgeShape=function(){return{iconBadgeType:"notification",iconBadgeText:this.unseenCount,iconBadgeStyle:this.isOverlay?"overlay":"mono"}};
_.Z.computeIcon=function(){var a,z;return(a=this.data)==null?void 0:(z=a.icon)==null?void 0:z.iconType};
_.Z.onServiceWorkerMessage=function(a){a.data.type==="update_unseen_notifications_count_signal"&&this.data&&this.data.updateUnseenCountEndpoint&&this.hasUnseenNotificationCountEndpoint()&&this.sendUnseenCountRequest(this.data.updateUnseenCountEndpoint)};
_.Z.hasUnseenNotificationCountEndpoint=function(){return!!this.data&&!!this.data.updateUnseenCountEndpoint&&!!_.H(this.data.updateUnseenCountEndpoint,_.ge)&&_.H(this.data.updateUnseenCountEndpoint,_.ge).signal==="GET_UNSEEN_NOTIFICATION_COUNT"};
_.Z.handleUpdateNotificationsUnseenCountAction=function(a){var z=this;a=_.H(a,RGf);a!=null&&a.unseenCount&&a.handlerData==="NOTIFICATION_ACTION_UPDATE_UNSEEN_COUNT"&&(this.updateCountUI(a.unseenCount),_.GW.addLowPriorityJob(function(){z.data.updateUnseenCountEndpoint&&z.ytComponentBehavior.resolveCommand(z.data.updateUnseenCountEndpoint)},a.timeoutMs))};
_.Z.onClick=function(){_.PA(this.hostElement,"yt-update-unseen-notification-count",0);this.set("unseenCount",0);this.toggleIconState(!0);var a=_.Ct(this.hostElement,"yt-get-popup-opened-action",["ytd-multi-page-menu-renderer"]),z=this.data.menuRequest;a&&a.length===1&&a[0]?_.ZF(this.hostElement,"yt-close-popup-action",["ytd-multi-page-menu-renderer"]):z&&this.ytComponentBehavior.resolveCommand(z)};
_.Z.handleTopbarMenuClosedAction=function(a){a==="multi-page-menu-style-type-notifications"&&this.toggleIconState(!1)};
_.Z.toggleIconState=function(a){this.iconButton&&(this.iconButton.pressed=a)};
_.Z.sendUnseenCountRequest=function(a){var z=this;_.b9(_.GW,function(){z.ytComponentBehavior.resolveCommand(a)})};
_.Z.updateCountUI=function(a){this.set("unseenCount",a<9?a:"9+")};
_.eH.Object.defineProperties(Ag.prototype,{showNotificationCount:{configurable:!0,enumerable:!0,get:function(){return this.unseenCount}}});
Ag.prototype.handleUpdateNotificationsUnseenCountAction=Ag.prototype.handleUpdateNotificationsUnseenCountAction;Ag.prototype.onDataChanged=Ag.prototype.onDataChanged;_.L([_.Q(_.k.YtRendererBehavior),_.p("design:type",Object)],Ag.prototype,"ytRendererBehavior",void 0);_.L([_.Q(_.Ms.YtComponentBehavior),_.p("design:type",Object)],Ag.prototype,"ytComponentBehavior",void 0);_.L([_.Q(_.rI),_.p("design:type",Object)],Ag.prototype,"ytdOpenPopupBehavior",void 0);
_.L([_.Q(_.Hc.YtActionHandlerBehavior),_.p("design:type",Object)],Ag.prototype,"ytActionHandlerBehavior",void 0);_.L([_.x(),_.p("design:type",Object)],Ag.prototype,"data",void 0);_.L([_.x(),_.p("design:type",Object)],Ag.prototype,"unseenCount",void 0);_.L([_.x(),_.p("design:type",Object)],Ag.prototype,"isOverlay",void 0);_.L([_.x({value:!0}),_.p("design:type",Boolean)],Ag.prototype,"showTooltips",void 0);_.L([_.A3("yt-icon-button"),_.p("design:type",Object)],Ag.prototype,"iconButton",void 0);
_.L([_.S("unseenCount"),_.p("design:type",Object),_.p("design:paramtypes",[])],Ag.prototype,"showNotificationCount",null);_.L([_.O8("data"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],Ag.prototype,"onDataChanged",null);_.L([_.gz("yt-update-notifications-unseen-count-action"),_.p("design:type",Function),_.p("design:paramtypes",[Object]),_.p("design:returntype")],Ag.prototype,"handleUpdateNotificationsUnseenCountAction",null);
_.L([_.U({is:"ytd-notification-topbar-button-renderer",disableElementRegistration:!0})],Ag);
_.D(Ag,"ytd-notification-topbar-button-renderer",function(){if(JlZ!==void 0)return JlZ;var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-notification-topbar-button-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-icon-button id="icon" label="[[data.accessibility.accessibilityData.label]]" on-click="onClick" class="style-scope ytd-notification-topbar-button-renderer">\n  <yt-icon-badge-shape data="[[computeIconBadgeShape(unseenCount, isOverlay)]]" icon="[[computeIcon(data)]]" class="style-scope ytd-notification-topbar-button-renderer">\n  </yt-icon-badge-shape>\n</yt-icon-button>\n<tp-yt-paper-tooltip class="style-scope ytd-notification-topbar-button-renderer">[[data.tooltip]]</tp-yt-paper-tooltip>\n');a.content.insertBefore(_.w().content.cloneNode(!0),
a.content.firstChild);return JlZ=a},{mode:_.Np("kevlar_poly_si_batch_j025")?1:2});var PHV;var sb=function(){var a=_.G.apply(this,arguments)||this;a.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggled"};return a};
_.b(sb,_.G);sb.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}}}}}};
sb.prototype.attached=function(){this.dark=document.documentElement.hasAttribute("dark")};
sb.prototype.onDarkModeToggled=function(a){this.dark=a};
_.L([_.Q(_.Hc.YtActionHandlerBehavior),_.p("design:type",Object)],sb.prototype,"ytActionHandlerBehavior",void 0);_.L([_.Q(_.u4.YtRendererstamperBehavior),_.p("design:type",Object)],sb.prototype,"ytRendererstamperBehavior",void 0);_.L([_.Q(_.k.YtRendererBehavior),_.p("design:type",Object)],sb.prototype,"ytRendererBehavior",void 0);_.L([_.x(),_.p("design:type",Object)],sb.prototype,"data",void 0);_.L([_.x({value:!0,reflectToAttribute:!0}),_.p("design:type",Boolean)],sb.prototype,"dark",void 0);
_.L([_.U({disableElementRegistration:!0,is:"yt-pdg-buy-flow-header-renderer"})],sb);
_.D(sb,"yt-pdg-buy-flow-header-renderer",function(){if(PHV!==void 0)return PHV;var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-pdg-buy-flow-header-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="text-container" class="style-scope yt-pdg-buy-flow-header-renderer">\n  <yt-formatted-string id="title" text="[[data.text]]" class="style-scope yt-pdg-buy-flow-header-renderer"></yt-formatted-string>\n</div>\n<div id="button-container" class="style-scope yt-pdg-buy-flow-header-renderer">\n  <div id="help-button" class="style-scope yt-pdg-buy-flow-header-renderer"></div>\n  <div id="dismiss-button" class="style-scope yt-pdg-buy-flow-header-renderer"></div>\n</div>\n');a.content.insertBefore(_.w().content.cloneNode(!0),
a.content.firstChild);return PHV=a},{mode:1});var ZfG;var CHM;var n2=function(){var a=_.G.apply(this,arguments)||this;a.immediateValue=0;a.isDarkTheme=!1;a.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return a};
_.b(n2,_.G);_.Z=n2.prototype;_.Z.created=function(){_.p$.requestAvailability()};
_.Z.attached=function(){this.isDarkTheme=document.documentElement.hasAttribute("dark")};
_.Z.dataChanged=function(){var a=_.PK(this.hostElement).querySelector("#color-slider");a.immediateValue&&this.updateSliderKnobAndGradientStyles(a.immediateValue);this.data.notches[0].knobColorArgb&&_.uK(this.hostElement,{"--ytd-pdg-color-slider-first-knob-color":_.RX(this.data.notches[0].knobColorArgb)});this.data.notches&&(this.maxMarkers=this.data.notches.length-1);_.Xw("HTML_DIR")==="rtl"&&_.PK(this.hostElement).querySelector("#color-slider").setAttribute("dir","rtl");this.updateSliderAria()};
_.Z.onSliderImmediateChange=function(){var a=_.PK(this.hostElement).querySelector("#color-slider");a.dragging&&(a.immediateValue!==void 0&&(this.updateSuperThanksSelectedTierEntity(a.immediateValue),this.updateSliderKnobAndGradientStyles(a.immediateValue)),this.updateSliderAria())};
_.Z.onSliderChange=function(){var a=_.PK(this.hostElement).querySelector("#color-slider");a.immediateValue!==void 0&&(this.updateSuperThanksSelectedTierEntity(a.immediateValue),this.updateSliderKnobAndGradientStyles(a.immediateValue));this.updateSliderAria()};
_.Z.updateSliderAria=function(){var a=_.PK(this.hostElement).querySelector("#color-slider"),z=_.PK(this.hostElement).querySelector("#color-slider");z=_.cd(this.data.notches[z.immediateValue].tierValue);_.tM0()&&_.PA(this.hostElement,"iron-announce",{text:z});a.setAttribute("aria-valuetext",z)};
_.Z.updateSuperThanksSelectedTierEntity=function(a){if(a!==this.immediateValue){var z,I,J=this==null?void 0:(z=this.data)==null?void 0:(I=z.superThanksSelectedTierEntity)==null?void 0:I.key;J&&J.length>0&&this.ytdReduxBehavior.dispatch(_.Q0("superThanksSelectedTierEntity",J,{key:J,index:a}))}};
_.Z.onDarkModeToggledAction=function(a){this.isDarkTheme=a};
_.Z.updateSliderKnobAndGradientStyles=function(a){this.immediateValue=a;a=this.data.notches[a];if(a==null?0:a.knobColorArgb)var z={"--ytd-pdg-color-slider-knob-color":_.RX(a.knobColorArgb)};(a==null?0:a.linearGradientCssStyle)&&z!==null&&(z=Object.assign({},z,{"--ytd-pdg-color-slider-active-color":a==null?void 0:a.linearGradientCssStyle}));z!==null&&_.uK(this.hostElement,z)};
n2.prototype.onSliderChange=n2.prototype.onSliderChange;n2.prototype.onSliderImmediateChange=n2.prototype.onSliderImmediateChange;n2.prototype.dataChanged=n2.prototype.dataChanged;_.L([_.x(),_.p("design:type",Object)],n2.prototype,"data",void 0);_.L([_.x(),_.p("design:type",Object)],n2.prototype,"immediateValue",void 0);_.L([_.x(),_.p("design:type",Number)],n2.prototype,"maxMarkers",void 0);
_.L([_.x({selectorArgs:["data.superThanksSelectedTierEntity.key"],selector:it0}),_.p("design:type",Object)],n2.prototype,"superThanksSelectedTierEntity",void 0);_.L([_.x({reflectToAttribute:!0}),_.p("design:type",Object)],n2.prototype,"isDarkTheme",void 0);_.L([_.Q(_.pV),_.p("design:type",Object)],n2.prototype,"ytdReduxBehavior",void 0);_.L([_.O8("data"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],n2.prototype,"dataChanged",null);
_.L([_.gz("immediate-value-change"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],n2.prototype,"onSliderImmediateChange",null);_.L([_.gz("change"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],n2.prototype,"onSliderChange",null);_.L([_.U({disableElementRegistration:!0,is:"ytd-pdg-color-slider-renderer"})],n2);
_.D(n2,"ytd-pdg-color-slider-renderer",function(){if(CHM!==void 0)return CHM;var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-pdg-color-slider-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<tp-yt-paper-slider id="color-slider" max="[[maxMarkers]]" max-markers="[[maxMarkers]]" min="0" snaps="" step="1" value="[[immediateValue]]" class="style-scope ytd-pdg-color-slider-renderer"></tp-yt-paper-slider>');
a.content.insertBefore(_.w().content.cloneNode(!0),a.content.firstChild);return CHM=a},{mode:1});var NTZ;var te4;var K2=null;
_.vK({is:"ytd-comment-input",_template:function(){if(te4!==void 0)return te4;var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-comment-input--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="creation-box" class$="[[computeCreationBoxClass_(isInputFocus_)]] style-scope ytd-comment-input">\n  <tp-yt-paper-input-container id="input-container" focused="{{isInputFocus_}}" no-label-float="" use-v2-underline="" class="style-scope ytd-comment-input">\n    <div slot="after-input" class="paper-input-input style-scope ytd-comment-input">\n      <ytd-emoji-input id="emoji" emoji-manager="[[emojiManager]]" vertical-suggestions-offset="[[verticalSuggestionsOffset]]" class="style-scope ytd-comment-input">\n        <yt-user-mention-autosuggest-input slot="input" suggestions-endpoint="[[data.userMentionSuggestionsEndpoint]]" class="style-scope ytd-comment-input">\n          <div id="content" slot="input" on-click="onContentClick" class="style-scope ytd-comment-input">\n            <yt-pdg-comment-chip-renderer id="paid-comment-chip" slot="input" data="[[commentChip]]" hidden="[[!hasCommentChip]]" class="style-scope ytd-comment-input">\n            </yt-pdg-comment-chip-renderer>\n            <yt-formatted-string id="contenteditable-textarea" slot="input" enable-content-editable="true" maxlength="10000" override-aria-label="[[computePlaceholderText_(placeholderText)]]" plaintext-only="true" required="true" split-lines="1" text="[[editableText]]" on-dragenter="preventDefault_" on-dragleave="preventDefault_" on-dragover="preventDefault_" on-drop="plaintextDrop_" on-focus="focus" on-input="onInput_" on-keyup="onKeyUp_" on-paste="onPaste_" class="style-scope ytd-comment-input"></yt-formatted-string>\n          </div>\n        </yt-user-mention-autosuggest-input>\n      </ytd-emoji-input>\n    </div>\n  </tp-yt-paper-input-container>\n  <span id="char-count" hidden="[[!charLimit]]" class="style-scope ytd-comment-input">[[charCount]]/[[charLimit]]</span>\n</div>\n');a.content.insertBefore(_.w().content.cloneNode(!0),
a.content.firstChild);return te4=a},
behaviors:[_.NtI.YtHostElementBehavior,_.V_,_.Ms.YtComponentBehavior,_.u4.YtRendererstamperBehavior,_.LMO.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 _.MT}},
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",_.BK(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;_.AX();this.focus()},
detached:function(){document.removeEventListener("tap",_.BK(this,this.onTap_))},
created:function(){document.addEventListener("selectionchange",this.onSelectionChange_);this.textRequiresScrolling=!1},
onEmojiSelect:function(a){a=a.detail;a=a.isCustomEmoji?a.shortcuts[0]:a.emojiId;var z=this.getInputRange_().cloneRange();this.insertTextWithEmojis_(z,a);this.maybeUpdateTextDirection_();_.PA(this.hostElement,"input")},
getInputRange_:function(){var a=_.B0();if(a){a=a.getBrowserRangeObject();for(var z=a.commonAncestorContainer;z;){if(z===this.getEditableTextArea_())return a;z=z.parentNode}}a=this.getEditableTextArea_();a=_.Ro(a,a.childNodes.length);a.select();return a.getBrowserRangeObject()},
insertTextWithEmojis_:function(a,z,I){(z=this.emojiManager.createDocumentFragment(z,!0,!1,I===void 0?!0:I))&&z.childNodes.length!==0&&(a.collapsed||a.deleteContents(),I=z.lastChild,a.insertNode(z),_.D1l(I).select(),this.getInputRange_().collapse(!1),this.getEditableTextArea_().normalize())},
onSelectionChange_:function(){var a=_.B0();if(a){var z=a.JSC$11245_getStartNode(),I=a.JSC$11245_getEndNode();if(OwE(z)&&OwE(I)){var J=a.JSC$11245_getStartOffset(),r;if(_.Bb&&z.nodeType===Node.ELEMENT_NODE&&(r=_.DEw(z)))_.Ro(r,0).select();else{r=f9(z)?z:_.dJ(z,f9);var P=f9(I)?I:_.dJ(I,f9);if(r||P)if(a.isCollapsed()){if(z.nodeType===Node.TEXT_NODE){a=!0;J===z.length&&(a=!1);if(K2==="end"||K2==="right")a=!1;z=z.parentNode;a=[].concat(_.ih(z.parentNode.childNodes)).indexOf(z)+(a?0:1);_.Ro(z.parentNode,
a).select()}}else r?r.previousSibling&&r.previousSibling.length>0?_.Le(I,a.JSC$11245_getEndOffset(),r.previousSibling,r.previousSibling.length-1).select():(z=document.createTextNode("\u200b"),r.parentNode.insertBefore(z,r),_.Le(I,a.JSC$11245_getEndOffset(),z,0).select()):P&&(P.nextSibling&&P.nextSibling.length>0?_.Le(z,a.JSC$11245_getStartOffset(),P.nextSibling,1).select():(I=document.createTextNode("\u200b"),P.parentNode.insertBefore(I,P.nextSibling),_.Le(z,a.JSC$11245_getStartOffset(),I,I.length).select()));
K2=null}}else K2=null}else K2=null},
leftKeyPressed_:function(){K2="left"},
rightKeyPressed_:function(){K2="right"},
endKeyPressed_:function(){K2="end"},
maybeDeleteChip_:function(){var a=Fo0(!0);if(a){var z=_.B0(),I=z.JSC$11245_getStartNode();z=z.JSC$11245_getStartOffset();_.dn(I,z,a,a.childNodes.length).select()}},
maybeBackspaceChip_:function(){var a=Fo0(!1);if(a){var z=_.B0(),I=z.JSC$11245_getStartNode();z=z.JSC$11245_getStartOffset();_.dn(I,z,a,0).select()}},
maybeBackspaceChipWordMode_:function(a){var z=_.B0();if(z.isCollapsed()){var I=z.JSC$11245_getStartNode();z=z.JSC$11245_getStartOffset();var J=HwY(I,z,!0);J&&(_.dn(I,z,J,0).select(),document.execCommand("delete"),a.preventDefault(),a.stopImmediatePropagation())}},
maybeDeleteChipWordMode_:function(a){var z=_.B0();if(z.isCollapsed()){var I=z.JSC$11245_getStartNode();z=z.JSC$11245_getStartOffset();var J=HwY(I,z,!1);J&&(_.dn(I,z,J,J.childNodes.length).select(),document.execCommand("delete"),a.preventDefault(),a.stopImmediatePropagation())}},
onContentClick:function(a){a.target.id==="content"&&this.getEditableTextArea_().focus()},
onTap_:function(a){a.defaultPrevented||a.currentTarget.tagName==="YTD-COMMENT-INPUT"&&f9(a.target)&&a.preventDefault()},
clear:function(){this.errorMessage_=null;this.setTextAreaValue(this.editableText);this.previousText_=this.getTextAreaValue().trim();this.updateCharCount_();this.receivedFocusPreviously_=!1},
getEditableTextArea_:function(){return _.PK(this.hostElement).querySelector("#contenteditable-textarea").getRoot().root.node},
getEditableFormattedString_:function(){return _.PK(this.hostElement).querySelector("#contenteditable-textarea")},
getTextAreaValue:function(){return this.convertHrefToAtMentionAndImgToEmoji_(this.getEditableTextArea_(),!0)},
getTextLength:function(){return this.convertHrefToAtMentionAndImgToEmoji_(this.getEditableTextArea_(),!1).trim().length},
convertHrefToAtMentionAndImgToEmoji_:function(a,z){a=Aji(a,this.emojiManager,z).cloneNode(!0);for(z=a.firstChild;z;)if(z.nodeType!==1)z=z.nextSibling;else switch(z.tagName){case "BR":var I=_.xB();_.kJE(I,z);z=I.nextSibling;break;case "DIV":(I=z.lastChild)&&z.nextSibling&&_.XO(_.xB(),I);z.previousSibling&&(z.previousSibling.nodeType===1||z.previousSibling.nodeType===3&&!z.previousSibling.textContent.endsWith("\n"))&&_.$B(_.xB(),z);I&&I.nodeName==="BR"&&_.fo(I);I=z;z.hasChildNodes()?(z=z.firstChild,
_.MIw(I)):(z=z.nextSibling,_.fo(I));break;default:z=z.nextSibling}return bwZ(a)},
setTextAreaValue:function(a){a||(a="");var z=this.getEditableFormattedString_();z.text="";this.getEditableTextArea_().innerText="";typeof a==="string"&&(a={runs:[{text:a}]});z.text=a},
focus:function(){this.getEditableTextArea_().focus();this.maybeSetCursorAtEnd_();this.maybeUpdateTextDirection_();K2=null},
maybeSetCursorAtEnd_:function(){if(!this.receivedFocusPreviously_){var a=this.getEditableTextArea_();a&&(_.Ro(a,a.childNodes.length).select(),this.receivedFocusPreviously_=!0)}},
maybeUpdateTextDirection_:function(){if(_.Xw("HTML_DIR")==="rtl"){var a=this.getEditableTextArea_(),z=this.getTextAreaValue()!==""?"auto":"rtl";a.setAttribute("dir",z)}},
handleInputEvent_:function(){var a=null;if(this.isEmojiButtonDisplayed){var z=this.getInputRange_();z&&(a=this.emojiInput.retrieveTextBeforeRange(z))}this.insertText_(a,!0);this.updateCharCount_();a=this.getEditableTextArea_();this.isBackstagePost&&(this.textRequiresScrolling=a.scrollHeight>a.clientHeight);this.maybeHeightChanged()},
maybeHeightChanged:function(){var a=52+this.getEditableTextArea_().offsetHeight;this.fire("yt-commentbox-resize",{height:a})},
onInput_:function(){this.inputEventSupported_=!0;this.handleInputEvent_()},
onKeyUp_:function(){this.inputEventSupported_||this.handleInputEvent_()},
updateCharCount_:function(){this.charCount=this.getTextLength();this.aboveCharLimit_=!!this.charLimit&&this.charCount>this.charLimit},
onPaste_:function(a){this.isEmojiButtonDisplayed&&(a.preventDefault(),a.stopImmediatePropagation(),a=a.clipboardData.getData("text/plain"),this.insertText_(a,!1,!1),_.PA(this.hostElement,"input"))},
insertText_:function(a,z,I){z=z===void 0?!1:z;I=I===void 0?!0:I;this.maybeUpdateTextDirection_();if(this.isEmojiButtonDisplayed&&a){var J=this.getInputRange_().cloneRange();this.emojiManager&&J&&(z&&this.emojiInput.offsetStartOfRangeBy(J,a.length),this.insertTextWithEmojis_(J,a,I),fAZ(this.getEditableTextArea_().lastChild)||(J=this.getInputRange_().cloneRange()),J&&(this.emojiInput.updateSuggestions(J,a),this.updateSuggestionOffset_(J)))}},
getSimpleString:_.cd,computeHasCommentChip_:function(){return this.commentChip!==void 0},
computeCreationBoxClass_:function(a){return a?"focused":"not-focused"},
computePlaceholderText_:function(a){return this.getSimpleString(a)},
computeEditableText_:function(a){return this.getSimpleString(a)},
onPrefilledContentDismissed_:function(a){a.stopPropagation();this.dismissPrefilledContent_();this.getEditableTextArea_().focus()},
onInsertMention_:function(){this.updateCharCount_()},
isValidInput_:function(){return this.aboveCharLimit_?!1:!!this.getTextAreaValue().trim()},
onIsInputFocusChanged_:function(a,z){a?this.fire("yt-autonav-pause-focus"):z!==void 0&&this.fire("yt-autonav-pause-blur")},
plaintextDrop_:function(a){var z=this.getEditableTextArea_();[].concat(_.ih(a.dataTransfer.items)).forEach(function(I){I.kind==="string"&&I.type.match("^text/plain")&&I.getAsString(function(J){z.appendChild(document.createTextNode(J))})});
a.preventDefault()},
preventDefault_:function(a){a.preventDefault()},
onSuggestionInsert_:function(a){this.insertTextWithEmojis_(a.detail.range,a.detail.text)},
onEmojiSuggestionClick_:function(a){this.emojiInput.insertSuggestion(a.detail)},
updateSuggestionOffset_:function(a){if(this.emojiInput&&_.PK(this.emojiInput).querySelector("#dropdown")){var z=this.getEditableTextArea_().getBoundingClientRect().bottom,I=a.getBoundingClientRect().top;this.verticalSuggestionsOffset=Math.ceil(z-I)+5;z=this.getEditableTextArea_().getBoundingClientRect().left;a=a.getBoundingClientRect().left-z;_.PK(this.emojiInput).querySelector("#dropdown").style.marginLeft=a+"px"}},
getLocalStorage_:function(){this.localStorage||(this.localStorage=new _.o3("yt-post"));return this.localStorage}});var Fj=function(){var a=_.G.apply(this,arguments)||this;a.currentCommentOptionIndex=0;a.isEmojiPickerDisplayed=!1;a.emojiManager=_.MT;a.isUgcEmpty=!1;a.userGeneratedCommentChangedHandler=function(){_.PA(a.hostElement,"ytd-pdg-user-generated-comment-changed");a.isEmojiYtdCommentInputEnabled&&(a.isUgcEmpty=!a.ytdCommentInputEl.getTextAreaValue())};
a.pasteHandler=function(z){z.preventDefault();z.stopImmediatePropagation();var I;if(z=(I=z.clipboardData)==null?void 0:I.getData("text/plain"))I=document.getSelection().getRangeAt(0),I.collapsed||I.deleteContents(),z=document.createTextNode(z),I.insertNode(z),I.selectNodeContents(z),I.collapse(!1),z=window.getSelection(),z.removeAllRanges(),z.addRange(I)};
a.onDocumentClick=function(z){if(a.isEmojiPickerDisplayed){var I,J,r;!(z.target instanceof Node)||(I=z.composedPath())!=null&&I.includes(a.editableTextEl)||(J=z.composedPath())!=null&&J.includes(a.emojiButtonEl)||(r=z.composedPath())!=null&&r.includes(a.emojiPickerEl)||(a.isEmojiPickerDisplayed=!1)}};
return a};
_.b(Fj,_.G);_.Z=Fj.prototype;_.Z.configureRendererStamper=function(){return{emojiPicker:{id:"emoji-picker",mapping:{emojiPickerRenderer:{component:"yt-emoji-picker-renderer",properties:{emojiManager:"[[emojiManager]]"}}}}}};
_.Z.attached=function(){this.containerEl.addEventListener("input",this.userGeneratedCommentChangedHandler);this.containerEl.addEventListener("paste",this.pasteHandler);document.addEventListener("click",this.onDocumentClick)};
_.Z.detached=function(){var a;(a=this.contentEl)==null||a.removeEventListener("input",this.userGeneratedCommentChangedHandler);var z;(z=this.contentEl)==null||z.removeEventListener("paste",this.pasteHandler);document.removeEventListener("click",this.onDocumentClick)};
_.Z.currentCommentOptionChanged=function(){this.handleBackgroundColorStyling()};
_.Z.dataChanged=function(){this.containerEl.classList.add("ugc");if(this.contentEl){var a;this.contentEl.textContent=this.rendererBehavior.getSimpleString((a=this.data)==null?void 0:a.defaultCommentText)}this.isEmojiYtdCommentInputEnabled&&(this.containerEl.classList.add("emojis"),this.reloadEmojis());this.handleTextScrolling()};
_.Z.reloadEmojis=function(){this.emojiPickerEl&&_.H(this.emojiPicker,_.oQG)&&this.emojiPickerEl.updateEmojiCategories()};
_.Z.handleTextScrolling=function(){this.isEmojiYtdCommentInputEnabled||_.uK(this.hostElement,{"--ytd-pdg-comment-preview-max-height":"300px","--ytd-pdg-comment-preview-overflow":"auto"})};
_.Z.handleBackgroundColorStyling=function(){var a;if((a=this.currentCommentOption)==null?0:a.commentBackgroundColorArgb){var z;_.uK(this.hostElement,{"--ytd-pdg-comment-preview-background-color":_.RX((z=this.currentCommentOption)==null?void 0:z.commentBackgroundColorArgb)})}else _.uK(this.hostElement,{"--ytd-pdg-comment-preview-background-color":"initial"})};
_.Z.onContainerClick=function(){if(this.isEmojiYtdCommentInputEnabled)this.containerEl.focus();else if(this.containerEl.classList.contains("ugc")){var a;(a=this.contentEl)==null||a.focus()}};
_.Z.onEditButtonClick=function(a){var z=document.getSelection();z&&this.contentEl&&(a.stopPropagation(),a.preventDefault(),z.selectAllChildren(this.contentEl),z.collapseToEnd())};
_.Z.onContentDrop=function(a){var z=this;if(a.dataTransfer){a=_.C(a.dataTransfer.items);for(var I=a.next();!I.done;I=a.next())I=I.value,I.kind==="string"&&I.type.match("^text/plain")&&I.getAsString(function(J){var r;(r=z.contentEl)==null||r.appendChild(document.createTextNode(J))})}};
_.Z.onEmojiButtonClick=function(){this.isEmojiPickerDisplayed=!this.isEmojiPickerDisplayed;this.emojiPickerEl.selected=!this.emojiPickerEl.selected};
_.Z.getUserGeneratedCommentText=function(){var a,z=this.isEmojiYtdCommentInputEnabled?this.ytdCommentInputEl.getTextAreaValue():(a=this.contentEl)==null?void 0:a.textContent;return z?z.trim():""};
_.Z.getIsEmojiYtdCommentInputEnabled=function(){return this.isEmojiYtdCommentInputEnabled};
_.Z.onEmojiSelect=function(a){this.ytdCommentInputEl.onEmojiSelect(a)};
_.eH.Object.defineProperties(Fj.prototype,{isEmojiYtdCommentInputEnabled:{configurable:!0,enumerable:!0,get:function(){var a;return!((a=this.data)==null||!a.commentDialog)}},
title:{configurable:!0,enumerable:!0,get:function(){return this.rendererBehavior.getSimpleString(this.data.title)}},
channelName:{configurable:!0,enumerable:!0,get:function(){return this.rendererBehavior.getSimpleString(this.data.authorText)}},
shouldShowPaidCommentChipRenderer:{configurable:!0,enumerable:!0,get:function(){var a;return!((a=this.currentCommentOption)==null||!a.chipRenderer)}},
paidCommentChipRenderer:{configurable:!0,enumerable:!0,get:function(){var a;if(_.H((a=this.currentCommentOption)==null?void 0:a.chipRenderer,_.I5G)){var z;return _.H((z=this.currentCommentOption)==null?void 0:z.chipRenderer,_.I5G)}}},
currentCommentOption:{configurable:!0,enumerable:!0,get:function(){if(this.superThanksSelectedTierEntity&&this.superThanksSelectedTierEntity.index!==void 0){var a,z;return((a=this.data)==null?0:a.commentOptionRenderers)?_.H((z=this.data)==null?void 0:z.commentOptionRenderers[this.superThanksSelectedTierEntity.index],B7Y):void 0}var I,J;return((I=this.data)==null?0:I.commentOptionRenderers)?_.H((J=this.data)==null?void 0:J.commentOptionRenderers[this.currentCommentOptionIndex],B7Y):void 0}},
commentText:{configurable:!0,enumerable:!0,get:function(){var a;return this.rendererBehavior.getSimpleString((a=this.data)==null?void 0:a.defaultCommentText)}},
placeholderText:{configurable:!0,enumerable:!0,get:function(){var a;return this.rendererBehavior.getSimpleString((a=this.data)==null?void 0:a.placeholderText)}},
editableText:{configurable:!0,enumerable:!0,get:function(){var a,z;return(z=_.H((a=this.data)==null?void 0:a.commentDialog,_.Sse))==null?void 0:z.editableText}},
emojiButton:{configurable:!0,enumerable:!0,get:function(){var a,z;return(z=_.H((a=this.data)==null?void 0:a.commentDialog,_.Sse))==null?void 0:z.emojiButton}},
emojiPicker:{configurable:!0,enumerable:!0,get:function(){var a,z;return(z=_.H((a=this.data)==null?void 0:a.commentDialog,_.Sse))==null?void 0:z.emojiPicker}},
isEmojiButtonDisplayed:{configurable:!0,enumerable:!0,get:function(){var a,z,I=(z=_.H((a=this.data)==null?void 0:a.commentDialog,_.Sse))==null?void 0:z.emojiPicker;if(!_.H(I,_.oQG)||!_.H(I,_.oQG).categories)return!1;a=function(P){return P.emojiPickerCategoryRenderer?P.emojiPickerCategoryRenderer.emojiIds&&P.emojiPickerCategoryRenderer.emojiIds.length>0:P.emojiPickerUpsellCategoryRenderer?P.emojiPickerUpsellCategoryRenderer.emojis&&P.emojiPickerUpsellCategoryRenderer.emojis.length>0:!1};
var J,r;return((J=_.H(I,_.oQG))==null?0:(r=J.categories)==null?0:r.find(a))?!0:!1}}});
Fj.prototype.onEmojiSelect=Fj.prototype.onEmojiSelect;Fj.prototype.dataChanged=Fj.prototype.dataChanged;Fj.prototype.currentCommentOptionChanged=Fj.prototype.currentCommentOptionChanged;_.L([_.Q(_.pV),_.p("design:type",Object)],Fj.prototype,"ytdReduxBehavior",void 0);_.L([_.Q(_.k.YtRendererBehavior),_.p("design:type",Object)],Fj.prototype,"rendererBehavior",void 0);_.L([_.Q(_.u4.YtRendererstamperBehavior),_.p("design:type",Object)],Fj.prototype,"ytRendererstamperBehavior",void 0);
_.L([_.A3("#content-dom-if"),_.p("design:type",_.$i)],Fj.prototype,"contentDomIfEl",void 0);_.L([_.A3("#content-no-emojis"),_.p("design:type",HTMLElement)],Fj.prototype,"contentEl",void 0);_.L([_.A3("#container"),_.p("design:type",HTMLElement)],Fj.prototype,"containerEl",void 0);_.L([_.A3("#comment-chip-container"),_.p("design:type",HTMLElement)],Fj.prototype,"paidCommentChipContainerEl",void 0);_.L([_.A3("#text-input"),_.p("design:type",HTMLElement)],Fj.prototype,"editableTextEl",void 0);
_.L([_.A3("#emoji-button"),_.p("design:type",HTMLElement)],Fj.prototype,"emojiButtonEl",void 0);_.L([_.A3("#emoji-picker > yt-emoji-picker-renderer"),_.p("design:type",Object)],Fj.prototype,"emojiPickerEl",void 0);_.L([_.A3("#text-input > ytd-comment-input"),_.p("design:type",Object)],Fj.prototype,"ytdCommentInputEl",void 0);_.L([_.x(),_.p("design:type",Object)],Fj.prototype,"data",void 0);_.L([_.x(),_.p("design:type",Object)],Fj.prototype,"currentCommentOptionIndex",void 0);
_.L([_.x({selectorArgs:["data.superThanksSelectedTierEntity.key"],selector:it0}),_.p("design:type",Object)],Fj.prototype,"superThanksSelectedTierEntity",void 0);_.L([_.x(),_.p("design:type",Object)],Fj.prototype,"isEmojiPickerDisplayed",void 0);_.L([_.x(),_.p("design:type",Object)],Fj.prototype,"emojiManager",void 0);_.L([_.x({reflectToAttribute:!0}),_.p("design:type",Object)],Fj.prototype,"isUgcEmpty",void 0);
_.L([_.O8("currentCommentOption"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],Fj.prototype,"currentCommentOptionChanged",null);_.L([_.O8("data"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],Fj.prototype,"dataChanged",null);_.L([_.S("data"),_.p("design:type",Boolean),_.p("design:paramtypes",[])],Fj.prototype,"isEmojiYtdCommentInputEnabled",null);
_.L([_.S("data.title"),_.p("design:type",Object),_.p("design:paramtypes",[])],Fj.prototype,"title",null);_.L([_.S("data.authorText"),_.p("design:type",Object),_.p("design:paramtypes",[])],Fj.prototype,"channelName",null);_.L([_.S("data.commentOptionRenderers","currentCommentOption"),_.p("design:type",Boolean),_.p("design:paramtypes",[])],Fj.prototype,"shouldShowPaidCommentChipRenderer",null);
_.L([_.S("data.commentOptionRenderers","currentCommentOption"),_.p("design:type",Object),_.p("design:paramtypes",[])],Fj.prototype,"paidCommentChipRenderer",null);_.L([_.S("data.commentOptionRenderers","currentCommentOptionIndex","superThanksSelectedTierEntity"),_.p("design:type",Object),_.p("design:paramtypes",[])],Fj.prototype,"currentCommentOption",null);
_.L([_.S("data.defaultCommentText","superThanksSelectedTierEntity"),_.p("design:type",Object),_.p("design:paramtypes",[])],Fj.prototype,"commentText",null);_.L([_.S("data.placeholderText"),_.p("design:type",Object),_.p("design:paramtypes",[])],Fj.prototype,"placeholderText",null);_.L([_.S("data.commentDialog.commentDialogRenderer.editableText"),_.p("design:type",Object),_.p("design:paramtypes",[])],Fj.prototype,"editableText",null);
_.L([_.S("data.commentDialog.commentDialogRenderer.emojiButton"),_.p("design:type",Object),_.p("design:paramtypes",[])],Fj.prototype,"emojiButton",null);_.L([_.S("data.commentDialog.commentDialogRenderer.emojiPicker"),_.p("design:type",Object),_.p("design:paramtypes",[])],Fj.prototype,"emojiPicker",null);
_.L([_.S("data.commentDialog.commentDialogRenderer.emojiPicker","data.commentDialog.commentDialogRenderer.emojiButton"),_.p("design:type",Boolean),_.p("design:paramtypes",[])],Fj.prototype,"isEmojiButtonDisplayed",null);_.L([_.gz("yt-emoji-select"),_.p("design:type",Function),_.p("design:paramtypes",[Event]),_.p("design:returntype")],Fj.prototype,"onEmojiSelect",null);_.L([_.U({disableElementRegistration:!0,is:"ytd-pdg-comment-preview-renderer"})],Fj);
_.D(Fj,"ytd-pdg-comment-preview-renderer",function(){if(NTZ!==void 0)return NTZ;var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-pdg-comment-preview-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="container" on-click="onContainerClick" class="style-scope ytd-pdg-comment-preview-renderer">\n  <div id="comment-container" class="style-scope ytd-pdg-comment-preview-renderer">\n    <div id="title-background" class="style-scope ytd-pdg-comment-preview-renderer">\n      <h2 id="comment-title" class="style-scope ytd-pdg-comment-preview-renderer">[[title]]</h2>\n    </div>\n    <div id="comment" class="style-scope ytd-pdg-comment-preview-renderer">\n      <yt-img-shadow id="author-thumbnail" fit="" height="40" thumbnail="[[data.authorThumbnail]]" width="40" class="style-scope ytd-pdg-comment-preview-renderer">\n      </yt-img-shadow>\n      <div id="text" class="style-scope ytd-pdg-comment-preview-renderer">\n        <div id="header" class="style-scope ytd-pdg-comment-preview-renderer">\n          <span id="channel-name" dir="auto" class="style-scope ytd-pdg-comment-preview-renderer">[[channelName]]</span>\n        </div>\n        <template id="content-dom-if" is="dom-if" if="[[!isEmojiYtdCommentInputEnabled]]" restamp="" class="style-scope ytd-pdg-comment-preview-renderer">\n          <span id="comment-chip-container" class="style-scope ytd-pdg-comment-preview-renderer">\n            <template is="dom-if" if="[[shouldShowPaidCommentChipRenderer]]" class="style-scope ytd-pdg-comment-preview-renderer">\n              <yt-pdg-comment-chip-renderer id="paid-comment-chip-renderer" data="[[paidCommentChipRenderer]]" class="style-scope ytd-pdg-comment-preview-renderer">\n              </yt-pdg-comment-chip-renderer>\n            </template>\n          </span>\n          <span id="content-no-emojis" on-drop="onContentDrop" contenteditable="true" placeholder$="[[placeholderText]]" class="style-scope ytd-pdg-comment-preview-renderer">[[commentText]]</span>\n        </template>\n        <template is="dom-if" if="[[isEmojiYtdCommentInputEnabled]]" restamp="" class="style-scope ytd-pdg-comment-preview-renderer">\n          <div id="content-emojis" class="style-scope ytd-pdg-comment-preview-renderer">\n            <div id="text-input" class="style-scope ytd-pdg-comment-preview-renderer">\n              <ytd-comment-input comment-chip="[[paidCommentChipRenderer]]" editable-text="[[editableText]]" hide-underline="" is-emoji-button-displayed="[[isEmojiButtonDisplayed]]" is-emoji-picker-displayed="[[isEmojiPickerDisplayed]]" class="style-scope ytd-pdg-comment-preview-renderer"></ytd-comment-input>\n            </div>\n          </div>\n        </template>\n      </div>\n      <div id="emoji-input" class="style-scope ytd-pdg-comment-preview-renderer">\n        <template is="dom-if" if="[[isEmojiButtonDisplayed]]" class="style-scope ytd-pdg-comment-preview-renderer">\n          <ytd-button-renderer id="emoji-button" data="[[emojiButton.buttonRenderer]]" on-click="onEmojiButtonClick" class="style-scope ytd-pdg-comment-preview-renderer"></ytd-button-renderer>\n        </template>\n      </div>\n    </div>\n  </div>\n  <ytd-button-renderer data="[[data.editButton.buttonRenderer]]" hidden$="[[!data.editButton.buttonRenderer]]" on-click="onEditButtonClick" class="style-scope ytd-pdg-comment-preview-renderer"></ytd-button-renderer>\n</div>\n<div id="emojis" hidden="[[!isEmojiPickerDisplayed]]" class="style-scope ytd-pdg-comment-preview-renderer">\n  <span id="emoji-picker" class="style-scope ytd-pdg-comment-preview-renderer">\n  </span>\n</div>\n');
a.content.insertBefore(_.w().content.cloneNode(!0),a.content.firstChild);return NTZ=a},{mode:2});var usz;var Ht=function(){var a=_.G.apply(this,arguments)||this;a.selected=!1;return a};
_.b(Ht,_.G);_.Z=Ht.prototype;_.Z.beforeRegister=function(){this.ironA11yKeysBehavior.keyBindings={"enter:keydown":"onKeyboardSelect","space:keydown":"onKeyboardSelect"}};
_.Z.attached=function(){this.hostElement.setAttribute("tabindex","0");this.hostElement.setAttribute("role","radio")};
_.Z.dataChanged=function(){this.data&&(_.ZL(this.hostElement).setAttribute("selectable","true"),this.data.chipColorArgb&&this.data.chipFontColorArgb&&_.uK(this.hostElement,{"--yt-pdg-super-vod-selectable-item-button-chip-background-color":_.RX(this.data.chipColorArgb),"--yt-pdg-super-vod-selectable-item-button-chip-font-color":_.RX(this.data.chipFontColorArgb)}),this.basePriceText=this.data.basePriceText,this.purchaseCommand=this.data.purchaseCommand)};
_.Z.selectedChanged=function(){this.hostElement.setAttribute("aria-checked",this.selected.toString())};
_.Z.onClick=function(){this.logClick()};
_.Z.onKeyboardSelect=function(){_.PA(this.hostElement,"tap");this.onClick()};
_.Z.logClick=function(){this.data&&this.ytRendererBehavior.logExplicitClick(this.data)};
Ht.prototype.onClick=Ht.prototype.onClick;Ht.prototype.selectedChanged=Ht.prototype.selectedChanged;Ht.prototype.dataChanged=Ht.prototype.dataChanged;_.L([_.Q(_.Ms.YtComponentBehavior),_.p("design:type",Object)],Ht.prototype,"componentBehavior",void 0);_.L([_.Q(_.k.YtRendererBehavior),_.p("design:type",Object)],Ht.prototype,"ytRendererBehavior",void 0);_.L([_.Q(_.V_),_.p("design:type",Object)],Ht.prototype,"ironA11yKeysBehavior",void 0);
_.L([_.Q(_.mZ),_.p("design:type",Object)],Ht.prototype,"ironSelectableBehavior",void 0);_.L([_.x(),_.p("design:type",Object)],Ht.prototype,"data",void 0);_.L([_.x(),_.p("design:type",Object)],Ht.prototype,"shownThumbnail",void 0);_.L([_.x(),_.p("design:type",Object)],Ht.prototype,"basePriceText",void 0);_.L([_.x(),_.p("design:type",Object)],Ht.prototype,"purchaseCommand",void 0);_.L([_.x({reflectToAttribute:!0}),_.p("design:type",Object)],Ht.prototype,"selected",void 0);
_.L([_.O8("data"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],Ht.prototype,"dataChanged",null);_.L([_.O8("selected"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],Ht.prototype,"selectedChanged",null);_.L([_.gz("click"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],Ht.prototype,"onClick",null);
_.L([_.U({disableElementRegistration:!0,is:"ytd-pdg-super-vod-selectable-item-button-renderer"})],Ht);
_.D(Ht,"ytd-pdg-super-vod-selectable-item-button-renderer",function(){if(usz!==void 0)return usz;var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-pdg-super-vod-selectable-item-button-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<span id="price" class="style-scope ytd-pdg-super-vod-selectable-item-button-renderer">[[getSimpleString(data.basePriceText)]]</span>\n');a.content.insertBefore(_.w().content.cloneNode(!0),
a.content.firstChild);return usz=a},{mode:1});var by=function(){var a=_.G.apply(this,arguments)||this;a.selectedItemIndex=0;a.buyButtonDisabled=!1;return a};
_.b(by,_.G);_.Z=by.prototype;
_.Z.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]]"}}}}}};
_.Z.onBuyButtonClick=function(){if(!this.buyButtonDisabled&&this.selectedItemIndex!==void 0){if(this.isColorSlider){var a;var z=(a=_.H(this.data.colorSlider,EuZ))==null?void 0:a.notches[this.selectedItemIndex].purchaseCommand}else{var I;z=(I=_.H(this.data.selectableItemButtons[this.selectedItemIndex],O_E))==null?void 0:I.purchaseCommand}if(z){a=_.H(z,_.ouG);a.productData||(a.productData={});var J;a.productData={pdgData:{commentMessageText:(J=this.commentPreviewRenderer)==null?void 0:J.getUserGeneratedCommentText()}};
_.PA(this.hostElement,"yt-pdg-buy-flow-selection-submitted");this.ytComponentBehavior.resolveCommand(z)}}};
_.Z.dataChanged=function(){if(this.data){_.MT.emojis.length===0&&(this.data.unicodeEmojisUrl&&_.AOv(_.MT,this.data.unicodeEmojisUrl),this.data.customEmojis&&_.MT.load(this.data.customEmojis));this.isColorSlider=!!this.data.colorSlider;var a;this.buyButtonDisabled=!((a=_.H(this.data.commentPreview,guZ))==null||!a.placeholderText);this.updatePriceSelectorStatus();var z;if((z=this.data)==null?0:z.defaultPriceTier)this.selectedItemIndex=this.data.defaultPriceTier||0;a=[];this.data.preloadImages&&(a=this.data.preloadImages);
a=a.map(function(I){return _.r4(I.thumbnails,1920)});
a=_.C(a);for(z=a.next();!z.done;z=a.next())(z=z.value)&&_.o4d(z).thenCatch(function(){_.Xd(Error("pl"))})}};
_.Z.superThanksSelectedTierEntityChanged=function(){var a;(this==null?void 0:(a=this.superThanksSelectedTierEntity)==null?void 0:a.index)!==void 0&&(this.selectedItemIndex=this.superThanksSelectedTierEntity.index)};
_.Z.selectedItemIndexChanged=function(){this.commentPreviewRenderer&&(this.commentPreviewRenderer.currentCommentOptionIndex=this.selectedItemIndex)};
_.Z.updatePriceSelectorStatus=function(){this.isColorSlider?(_.PK(this.hostElement).querySelector("#selectable-items").setAttribute("hidden","true"),_.PK(this.hostElement).querySelector("#slider").removeAttribute("hidden")):(_.PK(this.hostElement).querySelector("#selectable-items").removeAttribute("hidden"),_.PK(this.hostElement).querySelector("#slider").setAttribute("hidden","true"))};
_.Z.closeBuyFlow=function(){_.ZF(this.hostElement,"yt-close-popup-action",["ytd-pdg-buy-flow-renderer"])};
_.Z.onUserGeneratedContentChanged=function(){var a;this.buyButtonDisabled=!((a=this.commentPreviewRenderer)==null?0:a.getUserGeneratedCommentText())};
_.Z.updateSelectedItemIndexFromBinding=function(a){this.selectedItemIndex=a.detail.value};
_.eH.Object.defineProperties(by.prototype,{isDisclaimerTextShown:{configurable:!0,enumerable:!0,get:function(){var a;return!((a=this.data)==null||!a.disclaimerText)}}});
by.prototype.onUserGeneratedContentChanged=by.prototype.onUserGeneratedContentChanged;by.prototype.closeBuyFlow=by.prototype.closeBuyFlow;by.prototype.selectedItemIndexChanged=by.prototype.selectedItemIndexChanged;by.prototype.superThanksSelectedTierEntityChanged=by.prototype.superThanksSelectedTierEntityChanged;by.prototype.dataChanged=by.prototype.dataChanged;_.L([_.Q(_.k.YtRendererBehavior),_.p("design:type",Object)],by.prototype,"ytRendererBehavior",void 0);
_.L([_.Q(_.u4.YtRendererstamperBehavior),_.p("design:type",Object)],by.prototype,"ytRendererstamperBehavior",void 0);_.L([_.Q(_.Ms.YtComponentBehavior),_.p("design:type",Object)],by.prototype,"ytComponentBehavior",void 0);_.L([_.x(),_.p("design:type",Object)],by.prototype,"data",void 0);_.L([_.x(),_.p("design:type",Object)],by.prototype,"selectedItemIndex",void 0);_.L([_.x(),_.p("design:type",Boolean)],by.prototype,"isColorSlider",void 0);
_.L([_.x(),_.p("design:type",Object)],by.prototype,"buyButtonDisabled",void 0);_.L([_.x({selectorArgs:["data.superThanksSelectedTierEntity.key"],selector:it0}),_.p("design:type",Object)],by.prototype,"superThanksSelectedTierEntity",void 0);_.L([_.A3("ytd-pdg-comment-preview-renderer"),_.p("design:type",Object)],by.prototype,"commentPreviewRenderer",void 0);_.L([_.Q(_.pV),_.p("design:type",Object)],by.prototype,"ytdReduxBehavior",void 0);
_.L([_.Fe("data"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],by.prototype,"dataChanged",null);_.L([_.O8("superThanksSelectedTierEntity"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],by.prototype,"superThanksSelectedTierEntityChanged",null);_.L([_.O8("selectedItemIndex"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],by.prototype,"selectedItemIndexChanged",null);
_.L([_.gz("yt-service-request-completed"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],by.prototype,"closeBuyFlow",null);_.L([_.gz("ytd-pdg-user-generated-comment-changed"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],by.prototype,"onUserGeneratedContentChanged",null);_.L([_.S("data"),_.p("design:type",Boolean),_.p("design:paramtypes",[])],by.prototype,"isDisclaimerTextShown",null);
_.L([_.U({disableElementRegistration:!0,is:"yt-super-vod-buy-flow-content-renderer"})],by);
_.D(by,"yt-super-vod-buy-flow-content-renderer",function(){if(ZfG!==void 0)return ZfG;var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-super-vod-buy-flow-content-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-formatted-string text="[[data.description]]" class="style-scope yt-super-vod-buy-flow-content-renderer"></yt-formatted-string><div id="comment-preview" class="style-scope yt-super-vod-buy-flow-content-renderer"></div><div id="slider" class="style-scope yt-super-vod-buy-flow-content-renderer"></div><iron-selector id="selectable-items" role="radiogroup" selected="[[selectedItemIndex]]" selected-attribute="selected" on-selected-changed="updateSelectedItemIndexFromBinding" class="style-scope yt-super-vod-buy-flow-content-renderer"></iron-selector><div id="footer" class="style-scope yt-super-vod-buy-flow-content-renderer"><div id="cancel-button" class="style-scope yt-super-vod-buy-flow-content-renderer"></div><yt-formatted-string id="disclaimer-text" hidden="[[!isDisclaimerTextShown]]" text="[[data.disclaimerText]]" class="style-scope yt-super-vod-buy-flow-content-renderer"></yt-formatted-string><ytd-button-renderer id="buy-button" data="[[data.buyButton.buttonRenderer]]" disabled="[[buyButtonDisabled]]" on-click="onBuyButtonClick" class="style-scope yt-super-vod-buy-flow-content-renderer"></ytd-button-renderer></div>');a.content.insertBefore(_.w().content.cloneNode(!0),
a.content.firstChild);return ZfG=a},{mode:1});var EOM;var hg=function(){var a=_.G.apply(this,arguments)||this;a.lottieAnimationRef={};return a};
_.b(hg,_.G);_.Z=hg.prototype;_.Z.created=function(){_.p$.requestAvailability();this.hostElement.addEventListener("iron-overlay-opened",_.BK(this,this.onPopupIronOverlayOpened));this.ironOverlayBehavior.scrollAction="lock";this.ironOverlayBehavior.noCancelOnEscKey=!0;this.ironOverlayBehavior.noCancelOnOutsideClick=!0;this.ironOverlayBehavior.allowClickThrough=!1};
_.Z.onPopupIronOverlayOpened=function(){this.data&&this.data.accessibility&&this.data.accessibility.accessibilityData&&this.data.accessibility.accessibilityData.label&&_.PA(this.hostElement,"iron-announce",{text:this.data.accessibility.accessibilityData.label})};
_.Z.detached=function(){this.autoCloseJobId&&_.GW.cancelJob(this.autoCloseJobId);this.hostElement.removeEventListener("iron-overlay-opened",_.BK(this,this.onPopupIronOverlayOpened))};
_.Z.dataChanged=function(){var a=this;this.data&&this.data.autoCloseDelay&&(_.ZF(this.hostElement,"yt-close-popup-action",["ytd-pdg-buy-flow-renderer"]),this.data.lottie||(this.autoCloseJobId=_.NK(_.GW,function(){a.closePopup()},(Number(this.data.autoCloseDelay.seconds)||0)*1E3)),this.data.lottieImageScalePercent&&this.data.lottie&&_.uK(this.hostElement,{"--ytd-desktop-image-overlay-scale-percent":this.data.lottieImageScalePercent+"%"}))};
_.Z.onDOMLoadedLottie=function(){var a=this,z,I,J=Number((z=this.data)==null?void 0:(I=z.autoCloseDelay)==null?void 0:I.seconds)||0;this.fadeOutJobId=_.NK(_.GW,function(){a.lottiePlayerEl.classList.add("fadeout")},(J-.25)*1E3);
this.autoCloseJobId=_.NK(_.GW,function(){a.closePopup()},J*1E3)};
_.Z.openPopup=function(){this.ironOverlayBehavior.open()};
_.Z.closePopup=function(){this.ironOverlayBehavior.close();this.data&&(_.ZF(this.hostElement,"yt-close-popup-action",["ytd-desktop-image-overlay-renderer"]),this.data.onCloseCommand&&_.tR(this.hostElement,[this.data.onCloseCommand],this.hostElement),this.data.onCloseSurveyCommand&&_.ab().resolve(_.j6).resolveCommand(this.data.onCloseSurveyCommand,{form:{element:this.hostElement}}),this.autoCloseJobId&&_.GW.cancelJob(this.autoCloseJobId),this.fadeOutJobId&&_.GW.cancelJob(this.fadeOutJobId),this.lottiePlayerEl.classList.contains("fadeout")&&
this.lottiePlayerEl.classList.remove("fadeout"))};
_.Z.maybeInitializeLottie=function(){if(this.hasLottieAnimation){var a,z;(a=this.lottieAnimationRef)==null||(z=a.lottieEl)==null||z.destroy();a=this.data.lottie;var I,J;this.lottiePlayerProps={animationRef:this.lottieAnimationRef,animationConfig:{name:a.url+"_"+Math.random(),path:a.url,autoplay:!0,loop:(J=(I=a.settings)==null?void 0:I.loop)!=null?J:!1,renderer:"svg",rendererSettings:{viewBoxOnly:!1,preserveAspectRatio:"xMidYMid meet"}},listeners:{DOMLoaded:this.onDOMLoadedLottie.bind(this)}}}};
_.eH.Object.defineProperties(hg.prototype,{hasLottieAnimation:{configurable:!0,enumerable:!0,get:function(){var a,z;return!!((a=this.data)==null?0:(z=a.lottie)==null?0:z.url)}}});
hg.prototype.maybeInitializeLottie=hg.prototype.maybeInitializeLottie;hg.prototype.dataChanged=hg.prototype.dataChanged;_.L([_.Q(_.k.YtRendererBehavior),_.p("design:type",Object)],hg.prototype,"rendererBehavior",void 0);_.L([_.Q(_.Mb),_.p("design:type",Object)],hg.prototype,"ironOverlayBehavior",void 0);_.L([_.x(),_.p("design:type",Object)],hg.prototype,"data",void 0);_.L([_.x(),_.p("design:type",Object)],hg.prototype,"lottiePlayerProps",void 0);
_.L([_.x(),_.p("design:type",Object)],hg.prototype,"lottieAnimationRef",void 0);_.L([_.A3("ytd-lottie-player"),_.p("design:type",HTMLElement)],hg.prototype,"lottiePlayerEl",void 0);_.L([_.O8("data"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],hg.prototype,"dataChanged",null);_.L([_.S("data"),_.p("design:type",Boolean),_.p("design:paramtypes",[])],hg.prototype,"hasLottieAnimation",null);
_.L([_.O8("data.lottie.url"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],hg.prototype,"maybeInitializeLottie",null);_.L([_.U({disableElementRegistration:!0,is:"ytd-desktop-image-overlay-renderer"})],hg);
_.D(hg,"ytd-desktop-image-overlay-renderer",function(){if(EOM!==void 0)return EOM;var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-desktop-image-overlay-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="container" class="style-scope ytd-desktop-image-overlay-renderer">\n  <yt-img-shadow hidden$="[[hasLottieAnimation]]" thumbnail="[[data.image]]" width="1920" class="style-scope ytd-desktop-image-overlay-renderer"></yt-img-shadow>\n  <ytd-lottie-player class-name="[[is]] lottie-player" data="[[lottiePlayerProps]]" hidden$="[[!hasLottieAnimation]]" class="style-scope ytd-desktop-image-overlay-renderer">\n</ytd-lottie-player></div>\n');a.content.insertBefore(_.w().content.cloneNode(!0),
a.content.firstChild);return EOM=a},{mode:1});var BTZ;var Vd=function(){return _.G.apply(this,arguments)||this};
_.b(Vd,_.G);_.Z=Vd.prototype;_.Z.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"}}}}};
_.Z.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",_.BK(this,this.closePopup))};
_.Z.detached=function(){this.hostElement.removeEventListener("yt-popup-closed",_.BK(this,this.closePopup))};
_.Z.dataChanged=function(){_.Ct(this.hostElement,"yt-close-popup-action",["yt-loading-renderer"]);this.data&&this.data.header&&_.H(this.data.header,uWE)&&(this.hasBackgroundBanner=!!_.H(this.data.header,uWE).backgroundBanner)};
_.Z.handleBuyflowSelectionSubmitted=function(){this.hostElement.removeEventListener("yt-popup-closed",_.BK(this,this.closePopup))};
_.Z.closePopup=function(){this.data&&this.data.onCloseCommand&&_.N$(this.hostElement,[this.data.onCloseCommand])};
Vd.prototype.handleBuyflowSelectionSubmitted=Vd.prototype.handleBuyflowSelectionSubmitted;Vd.prototype.dataChanged=Vd.prototype.dataChanged;_.L([_.Q(_.k.YtRendererBehavior),_.p("design:type",Object)],Vd.prototype,"ytRendererBehavior",void 0);_.L([_.Q(_.u4.YtRendererstamperBehavior),_.p("design:type",Object)],Vd.prototype,"ytRendererstamperBehavior",void 0);_.L([_.x(),_.p("design:type",Object)],Vd.prototype,"data",void 0);
_.L([_.x({value:!0,reflectToAttribute:!0}),_.p("design:type",Boolean)],Vd.prototype,"hasBackgroundBanner",void 0);_.L([_.Fe("data"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],Vd.prototype,"dataChanged",null);_.L([_.gz("yt-pdg-buy-flow-selection-submitted"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],Vd.prototype,"handleBuyflowSelectionSubmitted",null);
_.L([_.U({disableElementRegistration:!0,is:"ytd-pdg-buy-flow-renderer"})],Vd);
_.D(Vd,"ytd-pdg-buy-flow-renderer",function(){if(BTZ!==void 0)return BTZ;var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-pdg-buy-flow-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-pdg-buy-flow-renderer"></div>\n<div id="content" class="style-scope ytd-pdg-buy-flow-renderer"></div>');a.content.insertBefore(_.w().content.cloneNode(!0),
a.content.firstChild);return BTZ=a},{mode:1});var gOZ;var Qd=function(){var a=_.G.apply(this,arguments)||this;a.isOpen=!1;a.isPlaylistCreated=!1;return a};
_.b(Qd,_.G);_.Z=Qd.prototype;_.Z.reset=function(){this.isPlaylistCreated=this.isOpen=!1;this.nameInput.reset();this.privacyInput.reset()};
_.Z.onOpenTap=function(){this.isOpen=!0;this.isPlaylistCreated=!1;this.nameInput.focusTextInput();_.PA(this.hostElement,"yt-refit")};
_.Z.onCreateTap=function(){var a=this;!this.isPlaylistCreated&&this.nameInput.validate()&&(_.N$(this.hostElement,[this.data.serviceEndpoint,{create_playlist_title:this.nameInput.value,create_playlist_privacy_status:this.privacyInput.value},{onSuccess:function(z,I){if(!_.K("killswitch_ep_in_create_playlist_response")&&(I==null?0:I.actions))for(z=_.C(I.actions),I=z.next();!I.done;I=z.next())I=I.value,_.H(I,_.GO)&&a.ytComponentBehavior.resolveCommand(I)}}]),this.isPlaylistCreated=!0)};
_.Z.onKeydown=function(a){if(a.keyCode===13)this.onCreateTap()};
_.Z.onServiceRequestCompleted=function(a){a.stopPropagation();_.ZF(this.hostElement,"yt-close-popup-action",["ytd-add-to-playlist-renderer"])};
_.Z.computePrivacyBadge=function(a){return a?[{metadataBadgeRenderer:a}]:[]};
Qd.prototype.onServiceRequestCompleted=Qd.prototype.onServiceRequestCompleted;Qd.prototype.onKeydown=Qd.prototype.onKeydown;_.L([_.Q(_.k.YtRendererBehavior),_.p("design:type",Object)],Qd.prototype,"ytRendererBehavior",void 0);_.L([_.Q(_.Ms.YtComponentBehavior),_.p("design:type",Object)],Qd.prototype,"ytComponentBehavior",void 0);_.L([_.x(),_.p("design:type",Object)],Qd.prototype,"data",void 0);_.L([_.x(),_.p("design:type",Object)],Qd.prototype,"isOpen",void 0);
_.L([_.x(),_.p("design:type",Object)],Qd.prototype,"isPlaylistCreated",void 0);_.L([_.x({value:{REQUIRED_LABEL:_.AR("REQUIRED_LABEL",void 0,"Required"),NO_ANGLE_BRACKET_LABEL:_.AR("NO_ANGLE_BRACKET_LABEL",void 0,"Cannot contain < or >")}}),_.p("design:type",Object)],Qd.prototype,"addToStrings",void 0);_.L([_.x({computed:"computePrivacyBadge(data.privacyInput.metadataBadgeRenderer)"}),_.p("design:type",Array)],Qd.prototype,"privacyBadge",void 0);
_.L([_.A3("#privacy-input"),_.p("design:type",Object)],Qd.prototype,"privacyInput",void 0);_.L([_.A3("#name-input"),_.p("design:type",Object)],Qd.prototype,"nameInput",void 0);_.L([_.gz("keydown"),_.p("design:type",Function),_.p("design:paramtypes",[KeyboardEvent]),_.p("design:returntype")],Qd.prototype,"onKeydown",null);_.L([_.gz("yt-service-request-completed"),_.p("design:type",Function),_.p("design:paramtypes",[CustomEvent]),_.p("design:returntype")],Qd.prototype,"onServiceRequestCompleted",null);
_.L([_.U({is:"ytd-add-to-playlist-create-renderer",disableElementRegistration:!0})],Qd);
_.D(Qd,"ytd-add-to-playlist-create-renderer",function(){if(gOZ!==void 0)return gOZ;var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-add-to-playlist-create-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<ytd-compact-link-renderer data="[[data.openCreateLink.compactLinkRenderer]]" hidden="[[isOpen]]" on-tap="onOpenTap" class="style-scope ytd-add-to-playlist-create-renderer">\n</ytd-compact-link-renderer>\n<div id="create-playlist-form" hidden="[[!isOpen]]" class="style-scope ytd-add-to-playlist-create-renderer">\n  <yt-text-input-form-field-renderer id="name-input" data="[[data.nameInput.textInputFormFieldRenderer]]" required-error-message="[[addToStrings.REQUIRED_LABEL]]" class="style-scope ytd-add-to-playlist-create-renderer">\n  </yt-text-input-form-field-renderer>\n  <ytd-badge-supported-renderer badges="[[privacyBadge]]" hidden="[[!data.privacyInput.metadataBadgeRenderer]]" class="style-scope ytd-add-to-playlist-create-renderer">\n  </ytd-badge-supported-renderer>\n  <ytd-dropdown-renderer id="privacy-input" data="[[data.privacyInput.dropdownRenderer]]" hidden="[[!data.privacyInput.dropdownRenderer]]" class="style-scope ytd-add-to-playlist-create-renderer">\n  </ytd-dropdown-renderer>\n  <ytd-button-renderer id="privacy-button" data="[[data.privacyInput.buttonRenderer]]" hidden="[[!data.privacyInput.buttonRenderer]]" class="style-scope ytd-add-to-playlist-create-renderer">\n  </ytd-button-renderer>\n  <div id="actions" class="style-scope ytd-add-to-playlist-create-renderer">\n    <ytd-button-renderer data="[[data.createAction.buttonRenderer]]" on-tap="onCreateTap" class="style-scope ytd-add-to-playlist-create-renderer">\n    </ytd-button-renderer>\n  </div>\n</div>\n');a.content.insertBefore(_.w().content.cloneNode(!0),
a.content.firstChild);return gOZ=a},{mode:1});var OfZ;var fh4;var SV=function(){var a=_.G.apply(this,arguments)||this;a.transferState="TRANSFER_STATE_UNKNOWN";return a};
_.b(SV,_.G);SV.prototype.dataChanged=function(){this.data&&(this.checkbox.checked=this.data.containsSelectedVideos==="ALL")};
SV.prototype.onCheckboxChange=function(a){var z=this;this.data&&_.pM(this,"yt-playlist-checkbox-changed",function(){var I=_.Yh(a).checked?z.data.addToPlaylistServiceEndpoint:z.data.removeFromPlaylistServiceEndpoint;I&&_.ab().resolve(_.j6).resolveCommand(I,{form:{element:z.hostElement}});_.K("dl_playlist_killswitch")||z.transferState!=="TRANSFER_STATE_UNKNOWN"&&z.transferState!=="TRANSFER_STATE_FAILED"&&z.ytComponentBehavior.resolveCommand({offlinePlaylistEndpoint:{playlistId:z.data.playlistId,action:"ACTION_SYNC"}})},
100)};
SV.prototype.computeIconType=function(a){return a?"yt-icons:"+a.toLowerCase():null};
SV.prototype.dataChanged=SV.prototype.dataChanged;_.L([_.Q(_.k.YtRendererBehavior),_.p("design:type",Object)],SV.prototype,"ytRendererBehavior",void 0);_.L([_.x(),_.p("design:type",Object)],SV.prototype,"data",void 0);_.L([_.Q(_.pV),_.p("design:type",Object)],SV.prototype,"ytdReduxBehavior",void 0);_.L([_.Q(_.Ms.YtComponentBehavior),_.p("design:type",Object)],SV.prototype,"ytComponentBehavior",void 0);_.L([_.A3("#checkbox"),_.p("design:type",HTMLInputElement)],SV.prototype,"checkbox",void 0);
_.L([_.x({selector:_.Ur,selectorArgs:["data.playlistId"]}),_.p("design:type",String)],SV.prototype,"transferState",void 0);_.L([_.O8("data"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],SV.prototype,"dataChanged",null);_.L([_.U({is:"ytd-playlist-add-to-option-renderer",disableElementRegistration:!0})],SV);
_.D(SV,"ytd-playlist-add-to-option-renderer",function(){if(fh4!==void 0)return fh4;var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-playlist-add-to-option-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<tp-yt-paper-checkbox id="checkbox" checked="[[checked_]]" on-change="onCheckboxChange" class="style-scope ytd-playlist-add-to-option-renderer">\n  <div id="checkbox-container" class="style-scope ytd-playlist-add-to-option-renderer">\n    <div id="checkbox-label" class="style-scope ytd-playlist-add-to-option-renderer">\n      <yt-formatted-string id="label" class="checkbox-height style-scope ytd-playlist-add-to-option-renderer" ellipsis-truncate="" text="[[data.title]]">\n      </yt-formatted-string>\n      <yt-formatted-string id="byline" ellipsis-truncate="" link-inherit-color="" text="[[data.shortBylineText]]" class="style-scope ytd-playlist-add-to-option-renderer">\n      </yt-formatted-string>\n    </div>\n    <yt-icon icon="[[computeIconType(data.privacyIcon.iconType)]]" size="18" class="style-scope ytd-playlist-add-to-option-renderer"></yt-icon>\n  </div>\n</tp-yt-paper-checkbox>\n');a.content.insertBefore(_.w().content.cloneNode(!0),
a.content.firstChild);return fh4=a},{mode:1});_.IG(hL4);var Al4=_.ec(function(a){var z=a.data;return _.B("ytd-menu-title-renderer",{class:"ytd-menu-title-renderer"},_.B("div",null,_.B(_.xs,{text:function(){return z().title}})),_.B(_.g,{cond:function(){return z().subtitle},
then:function(I){return _.B("div",{class:"ytd-menu-title-renderer__subtitle"},_.B(_.xs,{text:I}))}}))},"ch"),sxE=_.K("web_enable_sink_ytd_menu_title_renderer_ks")?hL4:Al4,nOi=_.K("web_enable_sink_ytd_menu_title_renderer_ks")?_.fS(hL4):Al4;
Al4.idomCompat=!0;_.K("web_enable_sink_ytd_menu_title_renderer_ks")?_.EW(sxE,"ytd-menu-title-renderer",{propNames:["data"]}):_.Jf(nOi,"ytd-menu-title-renderer",{props:{data:_.zl}});var iy=function(){var a=_.G.apply(this,arguments)||this;a.addToStrings={ADD_TO_DROPDOWN_LABEL:_.AR("ADD_TO_DROPDOWN_LABEL",void 0,"Save to...")};a.closeButtonAriaLabel=_.AR("SBOX_INAPPROPRIATE_CANCEL");a.dialog=_.K("desktop_add_to_playlist_renderer_dialog_popup");return a};
_.b(iy,_.G);_.Z=iy.prototype;_.Z.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"}}}};
_.Z.onPopupOpened=function(){_.CM(this.playlists,"scrollable",!0);this.createRenderer&&this.createRenderer.reset()};
_.Z.onPopupClosed=function(){_.CM(this.playlists,"scrollable",!1)};
_.Z.computeAriaLabel=function(){var a;if(this==null?0:(a=this.data)==null?0:a.actions){a=_.C(this.data.actions);for(var z=a.next();!z.done;z=a.next())if(z=z.value,z.menuTitleRenderer)return _.cd(z.menuTitleRenderer.title)}};
_.Z.onTapClose=function(){_.ZF(this.hostElement,"yt-close-popup-action",["ytd-add-to-playlist-renderer"])};
_.eH.Object.defineProperties(iy.prototype,{menuTitleRenderer:{configurable:!0,enumerable:!0,get:function(){var a;if(this==null?0:(a=this.data)==null?0:a.actions){a=_.C(this.data.actions);for(var z=a.next();!z.done;z=a.next())if(z=z.value,z.menuTitleRenderer)return z.menuTitleRenderer}return!1}}});
iy.prototype.onPopupClosed=iy.prototype.onPopupClosed;iy.prototype.onPopupOpened=iy.prototype.onPopupOpened;_.L([_.Q(_.k.YtRendererBehavior),_.p("design:type",Object)],iy.prototype,"ytRendererBehavior",void 0);_.L([_.Q(_.iO.YtEventForwardingBehavior),_.p("design:type",Object)],iy.prototype,"ytEventForwardingBehavior",void 0);_.L([_.Q(_.u4.YtRendererstamperBehavior),_.p("design:type",Object)],iy.prototype,"ytRendererStamperBehavior",void 0);
_.L([_.x(),_.p("design:type",Object)],iy.prototype,"data",void 0);_.L([_.x(),_.p("design:type",Object)],iy.prototype,"addToStrings",void 0);_.L([_.x({reflectToAttribute:!0,readOnly:!0,computed:"computeAriaLabel(data)"}),_.p("design:type",String)],iy.prototype,"ariaLabel",void 0);_.L([_.x(),_.p("design:type",String)],iy.prototype,"closeButtonAriaLabel",void 0);_.L([_.x({reflectToAttribute:!0}),_.p("design:type",Boolean)],iy.prototype,"dialog",void 0);
_.L([_.A3("#playlists"),_.p("design:type",HTMLElement)],iy.prototype,"playlists",void 0);_.L([_.A3("ytd-add-to-playlist-create-renderer"),_.p("design:type",Object)],iy.prototype,"createRenderer",void 0);_.L([_.S("data"),_.p("design:type",Object),_.p("design:paramtypes",[])],iy.prototype,"menuTitleRenderer",null);_.L([_.gz("yt-popup-opened"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],iy.prototype,"onPopupOpened",null);
_.L([_.gz("yt-popup-closed"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],iy.prototype,"onPopupClosed",null);_.L([_.U({is:"ytd-add-to-playlist-renderer",disableElementRegistration:!0})],iy);
_.D(iy,"ytd-add-to-playlist-renderer",function(){if(OfZ!==void 0)return OfZ;var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-add-to-playlist-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-add-to-playlist-renderer">\n  <template is="dom-if" if="[[menuTitleRenderer]]" class="style-scope ytd-add-to-playlist-renderer">\n    <ytd-menu-title-renderer data="[[menuTitleRenderer]]" class="style-scope ytd-add-to-playlist-renderer"></ytd-menu-title-renderer>\n  </template>\n  <div hidden="[[menuTitleRenderer]]" id="title" class="style-scope ytd-add-to-playlist-renderer">\n    [[addToStrings.ADD_TO_DROPDOWN_LABEL]]\n  </div>\n  <yt-icon-button id="close-button" hidden="[[!dialog]]" label="[[closeButtonAriaLabel]]" on-tap="onTapClose" class="style-scope ytd-add-to-playlist-renderer">\n    <yt-icon icon="close" class="style-scope ytd-add-to-playlist-renderer"></yt-icon>\n  </yt-icon-button>\n</div>\n<div id="playlists" class="style-scope ytd-add-to-playlist-renderer"></div>\n<div id="actions" class="style-scope ytd-add-to-playlist-renderer"></div>\n');a.content.insertBefore(_.w().content.cloneNode(!0),
a.content.firstChild);return OfZ=a},{mode:1});var Kj0;var xz=function(){var a=_.G.apply(this,arguments)||this;a.isPlaylistEditComplete=!1;a.isCollabEngagementDisabled=!1;a.closeButtonAriaLabel=_.AR("SBOX_INAPPROPRIATE_CANCEL");a.saveButton={title:_.AR("SAVE_PLAYLIST",void 0,"Save"),style:"BUTTON_VIEW_MODEL_STYLE_MONO",type:"BUTTON_VIEW_MODEL_TYPE_FILLED",buttonSize:"BUTTON_VIEW_MODEL_SIZE_DEFAULT",state:"BUTTON_VIEW_MODEL_STATE_DISABLED"};a.onValueChanged=function(){a.updateSaveButtonState();a.computeCollabEngagementDisabled()};
return a};
_.b(xz,_.G);_.Z=xz.prototype;_.Z.attached=function(){this.JSC$20391_scroller&&(this.JSC$20391_scroller.dialogElement=this.hostElement.parentNode,this.JSC$20391_scroller.attached&&typeof this.JSC$20391_scroller.attached==="function"&&this.JSC$20391_scroller.attached())};
_.Z.reset=function(){this.isPlaylistEditComplete=!1;this.nameInput.reset();this.descriptionInput.reset();this.computeCollabEngagementDisabled();this.updateSaveButtonState()};
_.Z.onPopupClosed=function(){this.reset()};
_.Z.close=function(){_.ZF(this.hostElement,"yt-close-popup-action",["ytd-playlist-settings-editor-renderer"])};
_.Z.onClickSave=function(){var a=this;if(!this.isPlaylistEditComplete&&this.nameInput.validate()&&this.descriptionInput.validate()){var z=[];this.nameInput.value!==null&&z.push({action:"ACTION_SET_PLAYLIST_NAME",playlistName:this.nameInput.value});this.descriptionInput.value!==null&&z.push({action:"ACTION_SET_PLAYLIST_DESCRIPTION",playlistDescription:this.descriptionInput.value});if(this.privacyInput.value!==null){var I=Number(this.privacyInput.value);isNaN(I)||z.push({action:"ACTION_SET_PLAYLIST_PRIVACY",
playlistPrivacy:I})}this.votingInput.value!==null&&(I=this.votingInput.value)&&z.push({action:"ACTION_SET_ALLOW_ITEM_VOTE",itemVotePermission:I});if(z.length>0){var J;_.H((J=this.data)==null?void 0:J.updateSettingsEndpoint,_.D5).actions=z;var r;if((r=this.data)==null?0:r.updateSettingsEndpoint)this.ytComponentBehavior.resolveCommand(this.data.updateSettingsEndpoint,{commandController:{onSuccess:function(){a.close()}}}),this.isPlaylistEditComplete=!0}}};
_.Z.computePrivacyBadge=function(a){return a?[{metadataBadgeRenderer:a}]:[]};
_.Z.computeEditorData=function(a){var z,I;return a==null?void 0:(z=a.sections)==null?void 0:(I=z[0])==null?void 0:I.playlistSettingsEditorCasualSectionRenderer};
_.Z.computeCollabEngagementDisabled=function(){this.isCollabEngagementDisabled=this.privacyInput.value===0};
_.Z.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}}}}}};
_.Z.computeAriaLabel=function(){var a,z,I,J=(a=this.data)==null?void 0:(z=a.sections)==null?void 0:(I=z[0])==null?void 0:I.playlistSettingsEditorCasualSectionRenderer;return _.cd(J==null?void 0:J.title)};
_.Z.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"}))};
_.Z.isFormValid=function(){return this.nameInput.validate()&&this.descriptionInput.validate()};
_.Z.isFormChanged=function(){return this.isNameChanged()||this.isDescriptionChanged()||this.isPrivacyChanged()||this.isVotingChanged()};
_.Z.isNameChanged=function(){var a,z,I;return(((a=this.editorData)==null?void 0:(z=a.name)==null?void 0:(I=z.textInputFormFieldRenderer)==null?void 0:I.value)||"")!==(this.nameInput.value||"")};
_.Z.isDescriptionChanged=function(){var a,z,I;return(((a=this.editorData)==null?void 0:(z=a.description)==null?void 0:(I=z.textInputFormFieldRenderer)==null?void 0:I.value)||"")!==(this.descriptionInput.value||"")};
_.Z.isPrivacyChanged=function(){var a,z,I,J,r,P,N,u;return((N=(a=this.editorData)==null?void 0:(z=a.privacy)==null?void 0:(I=z.dropdownFormFieldRenderer)==null?void 0:(J=I.dropdown)==null?void 0:(r=J.dropdownRenderer)==null?void 0:(P=r.entries)==null?void 0:P.find(function(E){var O;return E==null?void 0:(O=E.privacyDropdownItemRenderer)==null?void 0:O.isSelected}))==null?void 0:(u=N.privacyDropdownItemRenderer)==null?void 0:u.int32Value)!==this.privacyInput.value};
_.Z.isVotingChanged=function(){var a,z,I,J,r,P,N,u;return((N=(a=this.editorData)==null?void 0:(z=a.voting)==null?void 0:(I=z.dropdownFormFieldRenderer)==null?void 0:(J=I.dropdown)==null?void 0:(r=J.dropdownRenderer)==null?void 0:(P=r.entries)==null?void 0:P.find(function(E){var O;return E==null?void 0:(O=E.privacyDropdownItemRenderer)==null?void 0:O.isSelected}))==null?void 0:(u=N.privacyDropdownItemRenderer)==null?void 0:u.int32Value)!==this.votingInput.value};
xz.prototype.onPopupClosed=xz.prototype.onPopupClosed;_.L([_.Q(_.k.YtRendererBehavior),_.p("design:type",Object)],xz.prototype,"ytRendererBehavior",void 0);_.L([_.Q(_.Ms.YtComponentBehavior),_.p("design:type",Object)],xz.prototype,"ytComponentBehavior",void 0);_.L([_.Q(_.iO.YtEventForwardingBehavior),_.p("design:type",Object)],xz.prototype,"ytEventForwardingBehavior",void 0);_.L([_.Q(_.u4.YtRendererstamperBehavior),_.p("design:type",Object)],xz.prototype,"ytRendererStamperBehavior",void 0);
_.L([_.x(),_.p("design:type",Object)],xz.prototype,"data",void 0);_.L([_.x({computed:"computePrivacyBadge(editorData.privacy.metadataBadgeRenderer)"}),_.p("design:type",Array)],xz.prototype,"privacyBadge",void 0);_.L([_.x({computed:"computeEditorData(data)"}),_.p("design:type",Object)],xz.prototype,"editorData",void 0);_.L([_.x(),_.p("design:type",Object)],xz.prototype,"isPlaylistEditComplete",void 0);_.L([_.x(),_.p("design:type",Object)],xz.prototype,"isCollabEngagementDisabled",void 0);
_.L([_.x({value:{REQUIRED_LABEL:_.AR("REQUIRED_LABEL",void 0,"Required"),NO_ANGLE_BRACKET_LABEL:_.AR("NO_ANGLE_BRACKET_LABEL",void 0,"Cannot contain < or >")}}),_.p("design:type",Object)],xz.prototype,"addToStrings",void 0);_.L([_.x({reflectToAttribute:!0,readOnly:!0,computed:"computeAriaLabel(data)"}),_.p("design:type",String)],xz.prototype,"ariaLabel",void 0);_.L([_.x(),_.p("design:type",String)],xz.prototype,"closeButtonAriaLabel",void 0);
_.L([_.x(),_.p("design:type",Object)],xz.prototype,"saveButton",void 0);_.L([_.A3("#name-input"),_.p("design:type",Object)],xz.prototype,"nameInput",void 0);_.L([_.A3("#description-input"),_.p("design:type",Object)],xz.prototype,"descriptionInput",void 0);_.L([_.A3("#privacy-input"),_.p("design:type",Object)],xz.prototype,"privacyInput",void 0);_.L([_.A3("#voting-input"),_.p("design:type",Object)],xz.prototype,"votingInput",void 0);
_.L([_.A3("#scroller"),_.p("design:type",Object)],xz.prototype,"JSC$20391_scroller",void 0);_.L([_.gz("yt-popup-closed"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],xz.prototype,"onPopupClosed",null);_.L([_.x(),_.p("design:type",Object)],xz.prototype,"onValueChanged",void 0);_.L([_.U({is:"ytd-playlist-settings-editor-renderer",disableElementRegistration:!0})],xz);
_.D(xz,"ytd-playlist-settings-editor-renderer",function(){if(Kj0===void 0){var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-playlist-settings-editor-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-playlist-settings-editor-renderer">\n  <div id="header-title" class="style-scope ytd-playlist-settings-editor-renderer">\n    <yt-formatted-string text="[[editorData.title]]" class="style-scope ytd-playlist-settings-editor-renderer"></yt-formatted-string>\n  </div>\n  <yt-icon-button id="close-button" label="[[closeButtonAriaLabel]]" on-click="close" class="style-scope ytd-playlist-settings-editor-renderer">\n    <yt-icon icon="close" class="style-scope ytd-playlist-settings-editor-renderer"></yt-icon>\n  </yt-icon-button>\n</div>\n<tp-yt-paper-dialog-scrollable id="scroller" class="style-scope ytd-playlist-settings-editor-renderer">\n  <div id="content" class="style-scope ytd-playlist-settings-editor-renderer">\n    <div id="thumbnail" class="style-scope ytd-playlist-settings-editor-renderer"></div>\n    <div id="edit-playlist-form" class="style-scope ytd-playlist-settings-editor-renderer">\n      <yt-text-input-form-field-renderer id="name-input" data="[[editorData.name.textInputFormFieldRenderer]]" disabled="[[editorData.name.textInputFormFieldRenderer.disabled]]" on-value-changed="[[onValueChanged]]" class="style-scope ytd-playlist-settings-editor-renderer">\n      </yt-text-input-form-field-renderer>\n      <yt-text-input-form-field-renderer id="description-input" data="[[editorData.description.textInputFormFieldRenderer]]" disabled="[[editorData.name.textInputFormFieldRenderer.disabled]]" on-value-changed="[[onValueChanged]]" class="style-scope ytd-playlist-settings-editor-renderer">\n      </yt-text-input-form-field-renderer>\n      <ytd-badge-supported-renderer badges="[[privacyBadge]]" hidden="[[!editorData.privacy.metadataBadgeRenderer]]" class="style-scope ytd-playlist-settings-editor-renderer">\n      </ytd-badge-supported-renderer>\n      <ytd-dropdown-renderer id="privacy-input" data="[[editorData.privacy.dropdownFormFieldRenderer.dropdown.dropdownRenderer]]" hidden="[[!editorData.privacy]]" on-value-changed="onValueChanged" class="style-scope ytd-playlist-settings-editor-renderer">\n      </ytd-dropdown-renderer>\n      <ytd-dropdown-renderer id="voting-input" data="[[editorData.voting.dropdownFormFieldRenderer.dropdown.dropdownRenderer]]" disabled="[[isCollabEngagementDisabled]]" hidden="[[!editorData.voting]]" on-value-changed="onValueChanged" class="style-scope ytd-playlist-settings-editor-renderer">\n      </ytd-dropdown-renderer>\n      <div id="collaborate" class="style-scope ytd-playlist-settings-editor-renderer">\n        <yt-list-item-view-model data="[[editorData.collaborate.listItemViewModel]]" disabled="[[isCollabEngagementDisabled]]" hidden$="[[!editorData.collaborate]]" class="style-scope ytd-playlist-settings-editor-renderer"></yt-list-item-view-model>\n      </div>\n    </div>\n  </div>\n</tp-yt-paper-dialog-scrollable>\n<div id="actions" class="style-scope ytd-playlist-settings-editor-renderer">\n  <yt-button-view-model data="[[saveButton]]" scoping-class-name="[[is]]" on-click="onClickSave" class="style-scope ytd-playlist-settings-editor-renderer">\n  </yt-button-view-model>\n</div>\n');
a.content.insertBefore(_.w().content.cloneNode(!0),a.content.firstChild);Kj0=a}a=Kj0;return a},{mode:1});var FjV;_.$q("itemSectionRenderer","redCancelSurveyRenderer","ytd-red-cancel-survey-renderer");var vt=function(){return _.G.apply(this,arguments)||this};
_.b(vt,_.G);_.Z=vt.prototype;_.Z.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}}}}}};
_.Z.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.Z.dataChanged=function(){switch(this.get("data.singleOptions.preselectMode")){case "SINGLE_OPTION_PRESELECT_MODE_LAST":this.selectedResponseIndex=this.get("data.singleOptions.styles").length-1;break;default:this.selectedResponseIndex=void 0}var a=this.get("data.nextButton.buttonRenderer.navigationEndpoint");a&&(this.nextNavigationEndpoint=a,this.set("data.nextButton.buttonRenderer.navigationEndpoint",void 0))};
_.Z.onSelectedResponseIndexChange=function(){if(this.get("data.nextButton.buttonRenderer")!=null){switch(this.get("data.submissionMode")){case "SURVEY_SUBMISSION_MODE_ONE_SELECTED_OPTION":this.set("data.nextButton.buttonRenderer.isDisabled",this.selectedResponseIndex===void 0);break;default:this.set("data.nextButton.buttonRenderer.isDisabled",!1)}if(this.selectedResponseIndex!=null){var a={feedbackTokens:[this.get(["data.singleOptions.styles",this.selectedResponseIndex]).radioButtonSurveyOptionRenderer.submissionEndpoint.feedbackEndpoint.feedbackToken]};
this.set("nextNavigationEndpoint.confirmDialogEndpoint.content.confirmDialogRenderer.confirmButton.buttonRenderer.serviceEndpoint.ypcCancelRecurrenceEndpoint.feedbackData",a)}}};
_.Z.onPopupOpened=function(a){a.detail!==this&&a.detail!==this.hostElement||!_.K("enable_premium_voluntary_pause")||_.ZF(this.hostElement,"yt-close-popup-action",["yt-confirm-dialog-renderer"])};
_.Z.onNextButtonTap=function(){var a=this.nextNavigationEndpoint&&this.ytdOpenPopupBehavior.getNavigationEndpointPopupAction(this.nextNavigationEndpoint);a&&this.ytdOpenPopupBehavior.openPopup(a)};
_.Z.updateSelectedResponseIndexFromBinding=function(a){this.selectedResponseIndex=a.detail.value};
vt.prototype.onPopupOpened=vt.prototype.onPopupOpened;vt.prototype.onSelectedResponseIndexChange=vt.prototype.onSelectedResponseIndexChange;vt.prototype.dataChanged=vt.prototype.dataChanged;_.L([_.Q(_.rI),_.p("design:type",Object)],vt.prototype,"ytdOpenPopupBehavior",void 0);_.L([_.Q(_.k.YtRendererBehavior),_.p("design:type",Object)],vt.prototype,"ytRendererBehavior",void 0);_.L([_.Q(_.u4.YtRendererstamperBehavior),_.p("design:type",Object)],vt.prototype,"ytRendererstamperBehavior",void 0);
_.L([_.x(),_.p("design:type",Object)],vt.prototype,"data",void 0);_.L([_.x(),_.p("design:type",Number)],vt.prototype,"selectedResponseIndex",void 0);_.L([_.O8("data"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],vt.prototype,"dataChanged",null);_.L([_.O8("selectedResponseIndex"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],vt.prototype,"onSelectedResponseIndexChange",null);
_.L([_.gz("yt-popup-opened"),_.p("design:type",Function),_.p("design:paramtypes",[CustomEvent,Object]),_.p("design:returntype")],vt.prototype,"onPopupOpened",null);_.L([_.U({is:"ytd-red-cancel-survey-renderer",disableElementRegistration:!0})],vt);
_.D(vt,"ytd-red-cancel-survey-renderer",function(){if(FjV!==void 0)return FjV;var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-red-cancel-survey-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="content" class="style-scope ytd-red-cancel-survey-renderer">\n  <div id="question" class="style-scope ytd-red-cancel-survey-renderer">[[getSimpleString(data.question)]]</div>\n  <tp-yt-paper-radio-group id="responses" selected="[[selectedResponseIndex]]" on-selected-changed="updateSelectedResponseIndexFromBinding" class="style-scope ytd-red-cancel-survey-renderer">\n    <template is="dom-repeat" items="[[data.singleOptions.styles]]" class="style-scope ytd-red-cancel-survey-renderer">\n      <tp-yt-paper-radio-button name="[[index]]" class="style-scope ytd-red-cancel-survey-renderer">\n        [[getSimpleString(item.radioButtonSurveyOptionRenderer.option)]]\n      </tp-yt-paper-radio-button>\n    </template>\n  </tp-yt-paper-radio-group>\n</div>\n<div class="buttons style-scope ytd-red-cancel-survey-renderer">\n  <div id="dismiss-button" class="style-scope ytd-red-cancel-survey-renderer"></div>\n  <div id="next-button" on-click="onNextButtonTap" class="style-scope ytd-red-cancel-survey-renderer"></div>\n</div>\n');a.content.insertBefore(_.w().content.cloneNode(!0),
a.content.firstChild);return FjV=a},{mode:1});var Hf0;var GE=function(){var a=_.G.apply(this,arguments)||this;a.closeButtonAriaLabel=_.AR("SBOX_INAPPROPRIATE_CANCEL");return a};
_.b(GE,_.G);GE.prototype.configureRendererStamper=function(){return{"data.groups":{id:"options",mapping:{searchFilterGroupRenderer:{component:"ytd-search-filter-group-renderer"}}}}};
GE.prototype.onClickClose=function(){_.ZF(this.hostElement,"yt-close-popup-action",["ytd-search-filter-options-dialog-renderer"])};
_.L([_.Q(_.k.YtRendererBehavior),_.p("design:type",Object)],GE.prototype,"ytRendererBehavior",void 0);_.L([_.Q(_.u4.YtRendererstamperBehavior),_.p("design:type",Object)],GE.prototype,"rendererStamperBehavior",void 0);_.L([_.x(),_.p("design:type",Object)],GE.prototype,"data",void 0);_.L([_.x(),_.p("design:type",String)],GE.prototype,"closeButtonAriaLabel",void 0);_.L([_.U({is:"ytd-search-filter-options-dialog-renderer",disableElementRegistration:!0})],GE);
_.D(GE,"ytd-search-filter-options-dialog-renderer",function(){if(Hf0!==void 0)return Hf0;var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-search-filter-options-dialog-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-search-filter-options-dialog-renderer">\n  <div id="title" class="style-scope ytd-search-filter-options-dialog-renderer">\n    <yt-formatted-string id="title" text="[[data.title]]" class="style-scope ytd-search-filter-options-dialog-renderer"></yt-formatted-string>\n  </div>\n  <yt-icon-button id="close-button" label="[[closeButtonAriaLabel]]" on-click="onClickClose" class="style-scope ytd-search-filter-options-dialog-renderer">\n    <yt-icon icon="close" class="style-scope ytd-search-filter-options-dialog-renderer"></yt-icon>\n  </yt-icon-button>\n</div>\n<div id="options" class="style-scope ytd-search-filter-options-dialog-renderer"></div>\n');
a.content.insertBefore(_.w().content.cloneNode(!0),a.content.firstChild);return Hf0=a},{mode:1});var bf0;var SgZ=function(){return function(a){a=a.availabilityType;return a===void 0||a==="OFFLINEABILITY_AVAILABILITY_TYPE_UNKNOWN"||a==="OFFLINEABILITY_AVAILABILITY_TYPE_PREMIUM_LOCKED"?!0:!1}};var $z=function(){var a=_.G.apply(this,arguments)||this;a.qualityOptions=[];a.upsellOptions=[];a.showUpsellSection=!1;a.darkerDarkTheme=_.K("web_darker_dark_theme");a.rememberSettingsChecked=!1;return a};
_.b($z,_.G);_.Z=$z.prototype;_.Z.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}}}}};
_.Z.dataChanged=function(){this.updateRememberString();this.updateQualityOptions()};
_.Z.updateQualityOptions=function(){if(this.formats===void 0)_.ZF(this.hostElement,"yt-close-popup-action",["ytd-download-quality-selector-renderer"]);else{var a=[],z=[];this.showUpsellSection=!1;for(var I=_.C(this.formats),J=I.next();!J.done;J=I.next())(J=J.value)&&(J.availabilityType==="OFFLINEABILITY_AVAILABILITY_TYPE_PREMIUM_LOCKED"?z.push(J):a.push(J));a.length&&(this.qualityOptions=Q0z(a));z.length&&(this.showUpsellSection=!0,this.upsellOptions=Q0z(z))}};
_.Z.updateRememberString=function(){if(this.downloadQualityPickerEntity)var a=this.downloadQualityPickerEntity.rememberSettingString;else if(this.selectedUpsellQuality){var z;a=(z=this.data)==null?void 0:z.premiumRememberSettingString}else{var I;a=(I=this.data)==null?void 0:I.rememberSettingString}a=a===void 0?_.AR("REMEMBER_MY_SETTINGS",void 0,"Remember my settings"):a;this.rememberSettingsCheckboxRenderer={title:_.zg(a),disabled:!1}};
_.Z.rememberSettingsCheckedChanged=function(){if(this.onRememberSettingsCheckedChanged)this.onRememberSettingsCheckedChanged(this.rememberSettingsCheckbox.checked)};
_.eH.Object.defineProperties($z.prototype,{formats:{configurable:!0,enumerable:!0,get:function(){var a;return this.downloadQualityPickerEntity?this.downloadQualityPickerEntity.formats:(a=this.data)==null?void 0:a.qualityFormats}}});
$z.prototype.updateRememberString=$z.prototype.updateRememberString;$z.prototype.updateQualityOptions=$z.prototype.updateQualityOptions;$z.prototype.dataChanged=$z.prototype.dataChanged;_.L([_.Q(_.u4.YtRendererstamperBehavior),_.p("design:type",Object)],$z.prototype,"ytRendererstamperBehavior",void 0);_.L([_.Q(_.Ms.YtComponentBehavior),_.p("design:type",Object)],$z.prototype,"ytComponentBehavior",void 0);_.L([_.x(),_.p("design:type",Object)],$z.prototype,"data",void 0);
_.L([_.Q(_.pV),_.p("design:type",Object)],$z.prototype,"ytdReduxBehavior",void 0);_.L([_.x(),_.p("design:type",Boolean)],$z.prototype,"selectedUpsellQuality",void 0);_.L([_.x({computed:"computeIcon_(data.premiumIcon)",value:""}),_.p("design:type",String)],$z.prototype,"premiumIcon",void 0);_.L([_.x({selector:FKZ,selectorArgs:["data.downloadQualityPickerEntityKey"]}),_.p("design:type",Object)],$z.prototype,"downloadQualityPickerEntity",void 0);
_.L([_.x(),_.p("design:type",Array)],$z.prototype,"qualityOptions",void 0);_.L([_.x(),_.p("design:type",Array)],$z.prototype,"upsellOptions",void 0);_.L([_.x(),_.p("design:type",Object)],$z.prototype,"showUpsellSection",void 0);_.L([_.x({reflectToAttribute:!0}),_.p("design:type",Object)],$z.prototype,"darkerDarkTheme",void 0);_.L([_.x(),_.p("design:type",Object)],$z.prototype,"rememberSettingsCheckboxRenderer",void 0);
_.L([_.A3("#remember-settings"),_.p("design:type",HTMLInputElement)],$z.prototype,"rememberSettingsCheckbox",void 0);_.L([_.x(),_.p("design:type",Object)],$z.prototype,"rememberSettingsChecked",void 0);_.L([_.x(),_.p("design:type",Function)],$z.prototype,"onRememberSettingsCheckedChanged",void 0);_.L([_.O8("data"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],$z.prototype,"dataChanged",null);
_.L([_.O8("downloadQualityPickerEntity"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],$z.prototype,"updateQualityOptions",null);_.L([_.O8("selectedUpsellQuality"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],$z.prototype,"updateRememberString",null);_.L([_.U({is:"ytd-download-quality-selector-content",disableElementRegistration:!0})],$z);
_.D($z,"ytd-download-quality-selector-content",function(){if(bf0!==void 0)return bf0;var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-download-quality-selector-content--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="quality-options" class="style-scope ytd-download-quality-selector-content"></div>\n<div id="upsell-section" hidden="[[!showUpsellSection]]" class="style-scope ytd-download-quality-selector-content">\n    <yt-icon id="premium-icon" icon="[[premiumIcon]]" class="style-scope ytd-download-quality-selector-content"></yt-icon>\n    <yt-formatted-string id="premium-description" text="[[data.premiumDescription]]" class="style-scope ytd-download-quality-selector-content"></yt-formatted-string>\n    <div id="upsell-options" class="style-scope ytd-download-quality-selector-content"></div>\n</div>\n<ytd-settings-checkbox-renderer id="remember-settings" data="[[rememberSettingsCheckboxRenderer]]" on-click="rememberSettingsCheckedChanged" class="style-scope ytd-download-quality-selector-content">\n</ytd-settings-checkbox-renderer>\n');
a.content.insertBefore(_.w().content.cloneNode(!0),a.content.firstChild);return bf0=a},{mode:1});var hye;var Xj=function(){var a=_.G.apply(this,arguments)||this;a.selectedUpsellQuality=!1;a.qualityOptions=[];a.darkerDarkTheme=_.K("web_darker_dark_theme");a.useUpsellDismissAlternate=_.K("use_not_now_dl_upsell_dismiss_cta");a.shouldShowAlternateUpsellDimiss=!1;a.rememberSettings=!1;a.rememberSettingsChecked=!1;a.actionMap={"yt-select-settings-radio-option":"onQualityOptionsSelect"};a.rememberSettingsCheckedChanged=function(z){a.rememberSettingsChecked=z};
return a};
_.b(Xj,_.G);_.Z=Xj.prototype;
_.Z.dataChanged=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");this.rememberSettingsCheckedChanged(!1);this.downloadButtonRenderer={style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:_.zg(_.AR("DOWNLOAD",void 0,"Download")),isDisabled:!0};this.upsellButtonRenderer={style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:_.zg(_.AR("GET_PREMIUM",void 0,"Get Premium")),isDisabled:!0};this.cancelButtonRenderer={style:"STYLE_TEXT",size:"SIZE_DEFAULT",text:_.zg(_.AR("SBOX_INAPPROPRIATE_CANCEL",
void 0,"Cancel"))};this.upsellCancelButtonRenderer={style:"STYLE_TEXT",size:"SIZE_DEFAULT",text:_.zg(_.AR("NOT_NOW",void 0,"Not now"))};this.updateQualityOptions()};
_.Z.updateQualityOptions=function(){this.formats===void 0?_.ZF(this.hostElement,"yt-close-popup-action",["ytd-download-quality-selector-renderer"]):this.qualityOptions=Q0z(this.formats)};
_.Z.onQualityOptionsSelect=function(a){if(this.qualityOptions&&a){a!==void 0&&(this.downloadButtonRenderer&&(this.downloadButtonRenderer=Object.assign({},this.downloadButtonRenderer,{isDisabled:!1})),this.upsellButtonRenderer&&(this.upsellButtonRenderer=Object.assign({},this.upsellButtonRenderer,{isDisabled:!1})),this.upsellCancelButtonRenderer&&(this.upsellCancelButtonRenderer=Object.assign({},this.upsellCancelButtonRenderer,{isDisabled:!1})));for(var z=_.C(this.qualityOptions.entries()),I=z.next();!I.done;I=
z.next()){I=_.C(I.value);var J=I.next().value;I=I.next().value;var r=void 0,P=void 0;if(((r=I)==null?void 0:(P=r.settingsRadioOptionRenderer)==null?void 0:P.id)===a){this.selectedQualityIndex=J;a=void 0;this.shouldShowAlternateUpsellDimiss=(this.selectedUpsellQuality=((a=this.formats[J])==null?void 0:a.availabilityType)==="OFFLINEABILITY_AVAILABILITY_TYPE_PREMIUM_LOCKED")&&this.useUpsellDismissAlternate;break}}}};
_.Z.onClickSubmit=function(){var a;if((a=this.downloadButtonRenderer)==null||!a.isDisabled){var z,I;a=(I=(z=this.data)==null?void 0:z.onSubmitEndpoint)!=null?I:{};var J,r;if(this.formats&&(((J=_.H(a,_.fU))==null?0:J.videoId)||((r=_.H(a,_.nU))==null?0:r.playlistId))){var P,N,u,E,O,f;z={formatType:(E=(P=this.formats)==null?void 0:(N=P[(u=this.selectedQualityIndex)!=null?u:0])==null?void 0:N.format)!=null?E:"UNKNOWN_FORMAT_TYPE",settingsAction:this.getOfflineSettingsAction(this.rememberSettingsChecked,
(O=this.getOfflineEndpoint(a))==null?void 0:(f=O.actionParams)==null?void 0:f.settingsAction)};this.getOfflineEndpoint(a).actionParams=z;this.ytComponentBehavior.resolveCommand(a)}_.ZF(this.hostElement,"yt-close-popup-action",["ytd-download-quality-selector-renderer"])}};
_.Z.onClickUpsell=function(){var a;if((a=this.upsellButtonRenderer)==null||!a.isDisabled){var z,I;a=(I=(z=this.data)==null?void 0:z.upsellEndpoint)!=null?I:{};this.ytComponentBehavior.resolveCommand(a);_.ZF(this.hostElement,"yt-close-popup-action",["ytd-download-quality-selector-renderer"]);z="UNKNOWN_FORMAT_TYPE";if(this.rememberSettingsChecked){var J,r,P,N;z=(N=(J=this.formats)==null?void 0:(r=J[(P=this.selectedQualityIndex)!=null?P:0])==null?void 0:r.format)!=null?N:"UNKNOWN_FORMAT_TYPE"}this.ytComponentBehavior.resolveCommand({setPrefStorageEntryCommand:{key:"lmqf",
value:z}})}};
_.Z.onClickClose=function(){_.ZF(this.hostElement,"yt-close-popup-action",["ytd-download-quality-selector-renderer"])};
_.Z.getOfflineSettingsAction=function(a,z){return a?z===void 0?"DOWNLOAD_QUALITY_SETTINGS_ACTION_SAVE":z:"DOWNLOAD_QUALITY_SETTINGS_ACTION_DONT_SAVE"};
_.Z.getOfflineEndpoint=function(a){return _.H(a,_.fU)?_.H(a,_.fU):_.H(a,_.nU)};
_.eH.Object.defineProperties(Xj.prototype,{titleText:{configurable:!0,enumerable:!0,get:function(){return _.zg(_.AR("DOWNLOAD_QUALITY",void 0,"Download Quality"))}},
formats:{configurable:!0,enumerable:!0,get:function(){var a;return this.downloadQualityPickerEntity?this.downloadQualityPickerEntity.formats:(a=this.data)==null?void 0:a.qualityFormats}}});
Xj.prototype.updateQualityOptions=Xj.prototype.updateQualityOptions;Xj.prototype.dataChanged=Xj.prototype.dataChanged;_.L([_.Q(_.u4.YtRendererstamperBehavior),_.p("design:type",Object)],Xj.prototype,"ytRendererstamperBehavior",void 0);_.L([_.Q(_.Ms.YtComponentBehavior),_.p("design:type",Object)],Xj.prototype,"ytComponentBehavior",void 0);_.L([_.Q(_.k.YtRendererBehavior),_.p("design:type",Object)],Xj.prototype,"ytRendererBehavior",void 0);
_.L([_.Q(_.Hc.YtActionHandlerBehavior),_.p("design:type",Object)],Xj.prototype,"ytActionHandlerBehavior",void 0);_.L([_.x(),_.p("design:type",Object)],Xj.prototype,"data",void 0);_.L([_.x(),_.p("design:type",Number)],Xj.prototype,"selectedQualityIndex",void 0);_.L([_.x(),_.p("design:type",Object)],Xj.prototype,"selectedUpsellQuality",void 0);_.L([_.Q(_.pV),_.p("design:type",Object)],Xj.prototype,"ytdReduxBehavior",void 0);
_.L([_.x({selector:FKZ,selectorArgs:["data.downloadQualityPickerEntityKey"]}),_.p("design:type",Object)],Xj.prototype,"downloadQualityPickerEntity",void 0);_.L([_.x(),_.p("design:type",Array)],Xj.prototype,"qualityOptions",void 0);_.L([_.x({reflectToAttribute:!0}),_.p("design:type",Object)],Xj.prototype,"darkerDarkTheme",void 0);_.L([_.x({reflectToAttribute:!0}),_.p("design:type",Boolean)],Xj.prototype,"useUpsellDismissAlternate",void 0);
_.L([_.x(),_.p("design:type",Object)],Xj.prototype,"shouldShowAlternateUpsellDimiss",void 0);_.L([_.x(),_.p("design:type",Object)],Xj.prototype,"downloadButtonRenderer",void 0);_.L([_.x(),_.p("design:type",Object)],Xj.prototype,"upsellButtonRenderer",void 0);_.L([_.x(),_.p("design:type",Object)],Xj.prototype,"cancelButtonRenderer",void 0);_.L([_.x(),_.p("design:type",Object)],Xj.prototype,"upsellCancelButtonRenderer",void 0);_.L([_.x(),_.p("design:type",Object)],Xj.prototype,"rememberSettings",void 0);
_.L([_.x(),_.p("design:type",Object)],Xj.prototype,"rememberSettingsChecked",void 0);_.L([_.O8("data"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],Xj.prototype,"dataChanged",null);_.L([_.O8("downloadQualityPickerEntity"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],Xj.prototype,"updateQualityOptions",null);_.L([_.U({is:"ytd-download-quality-selector-renderer",disableElementRegistration:!0})],Xj);
_.D(Xj,"ytd-download-quality-selector-renderer",function(){if(hye!==void 0)return hye;var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-download-quality-selector-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-formatted-string id="title" text="[[titleText]]" class="style-scope ytd-download-quality-selector-renderer"></yt-formatted-string>\n<ytd-download-quality-selector-content data="[[data]]" remember-settings-checked="[[rememberSettingsChecked]]" selected-upsell-quality="[[selectedUpsellQuality]]" on-remember-settings-checked-changed="[[rememberSettingsCheckedChanged]]" class="style-scope ytd-download-quality-selector-renderer">\n</ytd-download-quality-selector-content>\n<div class="buttons style-scope ytd-download-quality-selector-renderer">\n  <yt-button-renderer id="cancel-button" data="[[cancelButtonRenderer]]" dialog-dismiss="" hidden="[[shouldShowAlternateUpsellDimiss]]" on-click="onClickClose" class="style-scope ytd-download-quality-selector-renderer">\n  </yt-button-renderer>\n  <yt-button-renderer id="upsell-cancel-button" data="[[upsellCancelButtonRenderer]]" dialog-dismiss="" hidden="[[!shouldShowAlternateUpsellDimiss]]" on-click="onClickClose" class="style-scope ytd-download-quality-selector-renderer">\n  </yt-button-renderer>\n  <yt-button-renderer id="download-button" data="[[downloadButtonRenderer]]" hidden="[[selectedUpsellQuality]]" on-click="onClickSubmit" class="style-scope ytd-download-quality-selector-renderer">\n  </yt-button-renderer>\n  <yt-button-renderer id="upsell-button" data="[[upsellButtonRenderer]]" hidden="[[!selectedUpsellQuality]]" on-click="onClickUpsell" class="style-scope ytd-download-quality-selector-renderer">\n  </yt-button-renderer>\n</div>\n');
a.content.insertBefore(_.w().content.cloneNode(!0),a.content.firstChild);return hye=a},{mode:1});var VeG;var TE=function(){var a=_.G.apply(this,arguments)||this;a.darkerDarkTheme=_.K("web_darker_dark_theme");return a};
_.b(TE,_.G);TE.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
TE.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"}}}}};
_.L([_.Q(_.k.YtRendererBehavior),_.p("design:type",Object)],TE.prototype,"ytRendererBehavior",void 0);_.L([_.Q(_.u4.YtRendererstamperBehavior),_.p("design:type",Object)],TE.prototype,"ytRendererstamperBehavior",void 0);_.L([_.x(),_.p("design:type",Object)],TE.prototype,"data",void 0);_.L([_.x({reflectToAttribute:!0}),_.p("design:type",Object)],TE.prototype,"darkerDarkTheme",void 0);_.L([_.x({computed:"computeIcon_(data.infoIcon)"}),_.p("design:type",Object)],TE.prototype,"infoIcon",void 0);
_.L([_.x({computed:"computeIcon_(data.warningIcon)"}),_.p("design:type",Object)],TE.prototype,"warningIcon",void 0);_.L([_.U({is:"ytd-cross-account-transfer-channel-confirm-dialog-renderer",disableElementRegistration:!0})],TE);
_.D(TE,"ytd-cross-account-transfer-channel-confirm-dialog-renderer",function(){if(VeG!==void 0)return VeG;var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-cross-account-transfer-channel-confirm-dialog-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<tp-yt-paper-dialog-scrollable id="scroller" class="style-scope ytd-cross-account-transfer-channel-confirm-dialog-renderer">\n  <div id="header" class="style-scope ytd-cross-account-transfer-channel-confirm-dialog-renderer">\n    <yt-formatted-string id="title" text="[[data.title]]" class="style-scope ytd-cross-account-transfer-channel-confirm-dialog-renderer"></yt-formatted-string>\n  </div>\n  <div id="content" class="style-scope ytd-cross-account-transfer-channel-confirm-dialog-renderer">\n    <div id="source" class="style-scope ytd-cross-account-transfer-channel-confirm-dialog-renderer">\n      <yt-formatted-string id="source-title" text="[[data.sourceTitle]]" class="style-scope ytd-cross-account-transfer-channel-confirm-dialog-renderer"></yt-formatted-string>\n      <yt-formatted-string id="source-subtitle" text="[[data.sourceSubtitle]]" class="style-scope ytd-cross-account-transfer-channel-confirm-dialog-renderer"></yt-formatted-string>\n      <yt-formatted-string id="source-account-name" text="[[data.sourceAccountName]]" class="style-scope ytd-cross-account-transfer-channel-confirm-dialog-renderer">\n      </yt-formatted-string>\n      <yt-formatted-string id="source-account-email" text="[[data.sourceAccountEmail]]" class="style-scope ytd-cross-account-transfer-channel-confirm-dialog-renderer">\n      </yt-formatted-string>\n    </div>\n    <div id="target" class="style-scope ytd-cross-account-transfer-channel-confirm-dialog-renderer">\n      <yt-formatted-string id="target-title" text="[[data.targetTitle]]" class="style-scope ytd-cross-account-transfer-channel-confirm-dialog-renderer"></yt-formatted-string>\n      <yt-formatted-string id="target-subtitle" text="[[data.targetSubtitle]]" class="style-scope ytd-cross-account-transfer-channel-confirm-dialog-renderer">\n      </yt-formatted-string>\n      <div id="target-account" class="style-scope ytd-cross-account-transfer-channel-confirm-dialog-renderer">\n        <yt-img-shadow hidden="[[!data.sourceAccountThumbnail]]" thumbnail="[[data.sourceAccountThumbnail]]" class="style-scope ytd-cross-account-transfer-channel-confirm-dialog-renderer">\n        </yt-img-shadow>\n        <div id="target-account-info" class="style-scope ytd-cross-account-transfer-channel-confirm-dialog-renderer">\n          <yt-formatted-string id="target-account-name" text="[[data.targetAccountName]]" class="style-scope ytd-cross-account-transfer-channel-confirm-dialog-renderer">\n          </yt-formatted-string>\n          <yt-formatted-string id="target-account-email" text="[[data.targetAccountEmail]]" class="style-scope ytd-cross-account-transfer-channel-confirm-dialog-renderer">\n          </yt-formatted-string>\n          <yt-formatted-string id="sournce-channel-details" text="[[data.sourceChannelDetails]]" class="style-scope ytd-cross-account-transfer-channel-confirm-dialog-renderer">\n          </yt-formatted-string>\n        </div>\n      </div>\n    </div>\n    <div id="info-warning" class="style-scope ytd-cross-account-transfer-channel-confirm-dialog-renderer">\n      <div id="info-title" class="style-scope ytd-cross-account-transfer-channel-confirm-dialog-renderer">\n        <yt-icon disable-upgrade$="[[!infoIcon]]" hidden="[[!infoIcon]]" icon="[[infoIcon]]" class="style-scope ytd-cross-account-transfer-channel-confirm-dialog-renderer">\n        </yt-icon>\n        <yt-formatted-string id="info-title-text" text="[[data.infoTitle]]" class="style-scope ytd-cross-account-transfer-channel-confirm-dialog-renderer"></yt-formatted-string>\n      </div>\n      <yt-formatted-string id="info-text" split-lines="" text="[[data.infoText]]" class="style-scope ytd-cross-account-transfer-channel-confirm-dialog-renderer">\n      </yt-formatted-string>\n      <div id="warning-title" class="style-scope ytd-cross-account-transfer-channel-confirm-dialog-renderer">\n        <yt-icon disable-upgrade$="[[!warningIcon]]" hidden="[[!warningIcon]]" icon="[[warningIcon]]" class="style-scope ytd-cross-account-transfer-channel-confirm-dialog-renderer">\n        </yt-icon>\n        <yt-formatted-string id="warning-title-text" text="[[data.warningTitle]]" class="style-scope ytd-cross-account-transfer-channel-confirm-dialog-renderer">\n        </yt-formatted-string>\n      </div>\n      <yt-formatted-string id="warning-text" split-lines="" text="[[data.warningText]]" class="style-scope ytd-cross-account-transfer-channel-confirm-dialog-renderer">\n      </yt-formatted-string>\n      <yt-formatted-string id="footer" text="[[data.footer]]" class="style-scope ytd-cross-account-transfer-channel-confirm-dialog-renderer"></yt-formatted-string>\n    </div>\n  </div>\n  <div id="buttons" class="style-scope ytd-cross-account-transfer-channel-confirm-dialog-renderer">\n    <div id="cancel-button" class="style-scope ytd-cross-account-transfer-channel-confirm-dialog-renderer"></div>\n    <div id="next-button" class="style-scope ytd-cross-account-transfer-channel-confirm-dialog-renderer"></div>\n  </div>\n</tp-yt-paper-dialog-scrollable>\n');a.content.insertBefore(_.w().content.cloneNode(!0),
a.content.firstChild);return VeG=a},{mode:1});var Qxi;var dN=function(){var a=_.G.apply(this,arguments)||this;a.darkerDarkTheme=_.K("web_darker_dark_theme");return a};
_.b(dN,_.G);dN.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
dN.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"}}}}};
_.L([_.Q(_.k.YtRendererBehavior),_.p("design:type",Object)],dN.prototype,"ytRendererBehavior",void 0);_.L([_.Q(_.u4.YtRendererstamperBehavior),_.p("design:type",Object)],dN.prototype,"ytRendererstamperBehavior",void 0);_.L([_.x(),_.p("design:type",Object)],dN.prototype,"data",void 0);_.L([_.x({reflectToAttribute:!0}),_.p("design:type",Object)],dN.prototype,"darkerDarkTheme",void 0);_.L([_.U({is:"ytd-cross-account-transfer-channel-overview-renderer",disableElementRegistration:!0})],dN);
_.D(dN,"ytd-cross-account-transfer-channel-overview-renderer",function(){if(Qxi!==void 0)return Qxi;var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-cross-account-transfer-channel-overview-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<tp-yt-paper-dialog-scrollable id="scroller" class="style-scope ytd-cross-account-transfer-channel-overview-renderer">\n  <div id="header" class="style-scope ytd-cross-account-transfer-channel-overview-renderer">\n    <yt-formatted-string id="title" text="[[data.title]]" class="style-scope ytd-cross-account-transfer-channel-overview-renderer"></yt-formatted-string>\n  </div>\n  <div id="content" class="style-scope ytd-cross-account-transfer-channel-overview-renderer">\n    <div id="stepper" class="style-scope ytd-cross-account-transfer-channel-overview-renderer"></div>\n    <yt-formatted-string id="subtitle" text="[[data.subtitle]]" class="style-scope ytd-cross-account-transfer-channel-overview-renderer"></yt-formatted-string>\n    <div id="messages" class="style-scope ytd-cross-account-transfer-channel-overview-renderer">\n      <template is="dom-repeat" items="[[data.messages]]" class="style-scope ytd-cross-account-transfer-channel-overview-renderer">\n        <yt-formatted-string class="line-text style-scope ytd-cross-account-transfer-channel-overview-renderer" split-lines="" text="[[item]]"></yt-formatted-string>\n      </template>\n    </div>\n  </div>\n  <div id="buttons" class="style-scope ytd-cross-account-transfer-channel-overview-renderer">\n    <div id="cancel-button" class="style-scope ytd-cross-account-transfer-channel-overview-renderer"></div>\n    <div id="signin-button" class="style-scope ytd-cross-account-transfer-channel-overview-renderer"></div>\n  </div>\n</tp-yt-paper-dialog-scrollable>\n');
a.content.insertBefore(_.w().content.cloneNode(!0),a.content.firstChild);return Qxi=a},{mode:1});var SCf;var Wt=function(){var a=_.G.apply(this,arguments)||this;a.darkerDarkTheme=_.K("web_darker_dark_theme");return a};
_.b(Wt,_.G);Wt.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
Wt.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"}}}}};
Wt.prototype.onServiceRequestSentOrCompleted=function(a,z){z&&z.actions&&z.actions.length>0&&_.ZF(this.hostElement,"yt-close-popup-action",[this.is])};
Wt.prototype.onServiceRequestSentOrCompleted=Wt.prototype.onServiceRequestSentOrCompleted;_.L([_.Q(_.k.YtRendererBehavior),_.p("design:type",Object)],Wt.prototype,"ytRendererBehavior",void 0);_.L([_.Q(_.u4.YtRendererstamperBehavior),_.p("design:type",Object)],Wt.prototype,"ytRendererstamperBehavior",void 0);_.L([_.x({reflectToAttribute:!0}),_.p("design:type",Object)],Wt.prototype,"darkerDarkTheme",void 0);_.L([_.x(),_.p("design:type",Object)],Wt.prototype,"data",void 0);
_.L([_.gz("yt-service-request-completed"),_.gz("yt-service-request-sent"),_.p("design:type",Function),_.p("design:paramtypes",[CustomEvent,_.Yq]),_.p("design:returntype")],Wt.prototype,"onServiceRequestSentOrCompleted",null);_.L([_.U({is:"ytd-cross-account-transfer-channel-tnc-dialog-renderer",disableElementRegistration:!0})],Wt);
_.D(Wt,"ytd-cross-account-transfer-channel-tnc-dialog-renderer",function(){if(SCf!==void 0)return SCf;var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-cross-account-transfer-channel-tnc-dialog-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<tp-yt-paper-dialog-scrollable id="scroller" class="style-scope ytd-cross-account-transfer-channel-tnc-dialog-renderer">\n  <div id="header" class="style-scope ytd-cross-account-transfer-channel-tnc-dialog-renderer">\n    <yt-formatted-string id="title" text="[[data.title]]" class="style-scope ytd-cross-account-transfer-channel-tnc-dialog-renderer"></yt-formatted-string>\n  </div>\n  <div id="content" class="style-scope ytd-cross-account-transfer-channel-tnc-dialog-renderer">\n    <yt-formatted-string id="agree-title" text="[[data.agreeTitle]]" class="style-scope ytd-cross-account-transfer-channel-tnc-dialog-renderer"></yt-formatted-string>\n    <yt-formatted-string id="agree-text" split-lines="" text="[[data.agreeText]]" class="style-scope ytd-cross-account-transfer-channel-tnc-dialog-renderer"></yt-formatted-string>\n    <yt-formatted-string id="understand-title" text="[[data.understandTitle]]" class="style-scope ytd-cross-account-transfer-channel-tnc-dialog-renderer"></yt-formatted-string>\n    <yt-formatted-string id="understand-text" split-lines="" text="[[data.understandText]]" class="style-scope ytd-cross-account-transfer-channel-tnc-dialog-renderer"></yt-formatted-string>\n  </div>\n  <div id="buttons" class="style-scope ytd-cross-account-transfer-channel-tnc-dialog-renderer">\n    <div id="cancel-button" class="style-scope ytd-cross-account-transfer-channel-tnc-dialog-renderer"></div>\n    <div id="confirm-button" class="style-scope ytd-cross-account-transfer-channel-tnc-dialog-renderer"></div>\n  </div>\n</tp-yt-paper-dialog-scrollable>\n');a.content.insertBefore(_.w().content.cloneNode(!0),
a.content.firstChild);return SCf=a},{mode:1});var ifZ;var ou=function(){var a=_.G.apply(this,arguments)||this;a.darkerDarkTheme=_.K("web_darker_dark_theme");a.submitButtonDisabled=!0;return a};
_.b(ou,_.G);_.Z=ou.prototype;_.Z.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.Z.configureRendererStamper=function(){return{"data.sections":{id:"sections",mapping:{itemSectionRenderer:{component:"ytd-item-section-renderer",noInjection:!0}}}}};
_.Z.onDataChanged=function(){var a,z,I;if(((a=this.data)==null?void 0:(z=a.confirmButton)==null?void 0:(I=z.buttonRenderer)==null?void 0:I.isDisabled)!==void 0){var J,r,P;this.submitButtonDisabled=(J=this.data)==null?void 0:(r=J.confirmButton)==null?void 0:(P=r.buttonRenderer)==null?void 0:P.isDisabled}};
_.Z.checkboxChanged=function(){this.submitButtonDisabled=!this.submitButtonDisabled};
_.Z.updateSubmitButtonDisabledFromBinding=function(a){this.submitButtonDisabled=a.detail.value};
_.Z.updateSubmitButtonDisabledFromConfirmCheckbox=function(a){this.submitButtonDisabled=!a.detail.value};
ou.prototype.onDataChanged=ou.prototype.onDataChanged;_.L([_.Q(_.u4.YtRendererstamperBehavior),_.p("design:type",Object)],ou.prototype,"ytRendererstamperBehavior",void 0);_.L([_.Q(_.k.YtRendererBehavior),_.p("design:type",Object)],ou.prototype,"ytRendererBehavior",void 0);_.L([_.x(),_.p("design:type",Object)],ou.prototype,"data",void 0);_.L([_.x({reflectToAttribute:!0}),_.p("design:type",Object)],ou.prototype,"darkerDarkTheme",void 0);
_.L([_.x(),_.p("design:type",Object)],ou.prototype,"submitButtonDisabled",void 0);_.L([_.O8("data"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],ou.prototype,"onDataChanged",null);_.L([_.U({is:"ytd-transfer-channel-confirm-dialog-renderer",disableElementRegistration:!0})],ou);
_.D(ou,"ytd-transfer-channel-confirm-dialog-renderer",function(){if(ifZ!==void 0)return ifZ;var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-transfer-channel-confirm-dialog-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<tp-yt-paper-dialog-scrollable id="scroller" class="style-scope ytd-transfer-channel-confirm-dialog-renderer">\n  <div id="header" class="style-scope ytd-transfer-channel-confirm-dialog-renderer">\n    <yt-formatted-string id="title" hidden$="[[!data.title]]" text="[[data.title]]" class="style-scope ytd-transfer-channel-confirm-dialog-renderer"></yt-formatted-string>\n  </div>\n  <div id="content" class="style-scope ytd-transfer-channel-confirm-dialog-renderer">\n    <div id="sections" class="style-scope ytd-transfer-channel-confirm-dialog-renderer"></div>\n    <div id="messages" class="style-scope ytd-transfer-channel-confirm-dialog-renderer">\n      <template is="dom-repeat" items="[[data.messages]]" class="style-scope ytd-transfer-channel-confirm-dialog-renderer">\n        <yt-formatted-string class="line-text style-scope ytd-transfer-channel-confirm-dialog-renderer" split-lines="" text="[[item]]"></yt-formatted-string>\n      </template>\n    </div>\n    <div id="confirm" class="style-scope ytd-transfer-channel-confirm-dialog-renderer">\n      <template is="dom-if" if="[[data.confirmText]]" class="style-scope ytd-transfer-channel-confirm-dialog-renderer">\n        <tp-yt-paper-checkbox id="confirm-checkbox" checked="[[!submitButtonDisabled]]" on-checked-changed="updateSubmitButtonDisabledFromConfirmCheckbox" class="style-scope ytd-transfer-channel-confirm-dialog-renderer">\n          <yt-formatted-string id="confirm-text" text="[[data.confirmText]]" class="style-scope ytd-transfer-channel-confirm-dialog-renderer"></yt-formatted-string>\n        </tp-yt-paper-checkbox>\n      </template>\n    </div>\n  </div>\n  <div id="buttons" class="style-scope ytd-transfer-channel-confirm-dialog-renderer">\n    <yt-button-renderer id="cancel-button" data="[[data.cancelButton.buttonRenderer]]" dialog-dismiss="" hidden="[[isCancelButtonHidden]]" class="style-scope ytd-transfer-channel-confirm-dialog-renderer">\n    </yt-button-renderer>\n    <yt-button-renderer id="confirm-button" data="[[data.confirmButton.buttonRenderer]]" dialog-confirm="" disabled="[[submitButtonDisabled]]" on-disabled-changed="updateSubmitButtonDisabledFromBinding" class="style-scope ytd-transfer-channel-confirm-dialog-renderer">\n    </yt-button-renderer>\n  </div>\n</tp-yt-paper-dialog-scrollable>\n');a.content.insertBefore(_.w().content.cloneNode(!0),
a.content.firstChild);return ifZ=a},{mode:1});var xvf;var Ub=function(){return _.G.apply(this,arguments)||this};
_.b(Ub,_.G);_.eH.Object.defineProperties(Ub.prototype,{ariaLabel:{configurable:!0,enumerable:!0,get:function(){var a,z,I;return((a=this.data)==null?void 0:a.title)+" "+((z=this.data)==null?void 0:z.metadataPrimary)+" "+((I=this.data)==null?void 0:I.metadataSecondary)}}});
_.L([_.Q(_.k.YtRendererBehavior),_.p("design:type",Object)],Ub.prototype,"ytRendererBehavior",void 0);_.L([_.Q(_.Ms.YtComponentBehavior),_.p("design:type",Object)],Ub.prototype,"ytComponentBehavior",void 0);_.L([_.x(),_.p("design:type",Object)],Ub.prototype,"data",void 0);_.L([_.S("data"),_.p("design:type",Object),_.p("design:paramtypes",[])],Ub.prototype,"ariaLabel",null);_.L([_.U({disableElementRegistration:!0,is:"ytd-compact-product-list-item-renderer"})],Ub);
_.D(Ub,"ytd-compact-product-list-item-renderer",function(){if(xvf!==void 0)return xvf;var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-compact-product-list-item-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<a class="yt-simple-endpoint style-scope ytd-compact-product-list-item-renderer" href$="[[computeHref_(data.onClickCommand)]]" data="[[data.onClickCommand]]" aria-label$="[[ariaLabel]]">\n  <div class="compact-product-list-item style-scope ytd-compact-product-list-item-renderer">\n    <yt-img-shadow class="item-image style-scope ytd-compact-product-list-item-renderer" height="40" object-fit="CONTAIN" thumbnail="[[data.thumbnail]]" width="40"></yt-img-shadow>\n    <div class="column style-scope ytd-compact-product-list-item-renderer">\n      <template is="dom-if" if="[[data.title]]" class="style-scope ytd-compact-product-list-item-renderer">\n        <div class="row title style-scope ytd-compact-product-list-item-renderer">[[data.title]]</div>\n      </template>\n      <div class="row metadata style-scope ytd-compact-product-list-item-renderer">\n        <template is="dom-if" if="[[data.metadataPrimary]]" class="style-scope ytd-compact-product-list-item-renderer">\n          <span class="style-scope ytd-compact-product-list-item-renderer">[[data.metadataPrimary]]</span>\n        </template>\n        <template is="dom-if" if="[[data.metadataSecondary]]" class="style-scope ytd-compact-product-list-item-renderer">\n          <span class="style-scope ytd-compact-product-list-item-renderer">[[data.metadataSecondary]]</span>\n          <yt-icon class="open-in-new style-scope ytd-compact-product-list-item-renderer" icon="yt-icons:open_in_new"></yt-icon>\n        </template>\n      </div>\n    </div>\n  </div>\n</a>');
a.content.insertBefore(_.w().content.cloneNode(!0),a.content.firstChild);return xvf=a},{mode:1});var vOZ;var D9=function(){return _.G.apply(this,arguments)||this};
_.b(D9,_.G);D9.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]]"}}}}}};
_.eH.Object.defineProperties(D9.prototype,{buttonOverrides:{configurable:!0,enumerable:!0,get:function(){return{style:"mono"}}}});
_.L([_.Q(_.k.YtRendererBehavior),_.p("design:type",Object)],D9.prototype,"ytRendererBehavior",void 0);_.L([_.Q(_.Ms.YtComponentBehavior),_.p("design:type",Object)],D9.prototype,"ytComponentBehavior",void 0);_.L([_.Q(_.u4.YtRendererstamperBehavior),_.p("design:type",Object)],D9.prototype,"ytRendererstamperBehavior",void 0);_.L([_.x(),_.p("design:type",Object)],D9.prototype,"data",void 0);_.L([_.U({disableElementRegistration:!0,is:"ytd-compact-product-list-renderer"})],D9);
_.D(D9,"ytd-compact-product-list-renderer",function(){if(vOZ!==void 0)return vOZ;var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-compact-product-list-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="container style-scope ytd-compact-product-list-renderer">\n  <div id="title" class="style-scope ytd-compact-product-list-renderer">[[data.title]]</div>\n  <div id="items" class="style-scope ytd-compact-product-list-renderer"></div>\n  <div id="action-button" class="style-scope ytd-compact-product-list-renderer"></div>\n</div>');
a.content.insertBefore(_.w().content.cloneNode(!0),a.content.firstChild);return vOZ=a},{mode:1});var Gff;var Ru=function(){var a=_.G.apply(this,arguments)||this;a.darkerDarkTheme=_.K("web_darker_dark_theme");return a};
_.b(Ru,_.G);_.Z=Ru.prototype;_.Z.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.Z.configureRendererStamper=function(){return{"data.okayButton":{id:"okay-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",attributes:{"dialog-dismiss":!0}}}}}};
_.Z.getBackgroundUrl=function(){var a=this.get("data.headerImage.thumbnails");return a?"url("+_.r4(a,this.hostElement.clientWidth)+")":""};
_.Z.onDataChanged=function(){var a=this.getBackgroundUrl();a&&(this.header.style.backgroundImage=a);a=_.TX();var z=_.XZ(),I=this.get("data.trackingParams");I&&z&&a&&_.Lt(a,z,_.VX(I));a=_.C(this.hostElement.querySelectorAll("yt-img-shadow"));for(z=a.next();!z.done;z=a.next())z.value.onShow()};
_.Z.onPopupClosed=function(a){_.Yh(a).localName==="ytd-membership-post-cancel-renderer"&&_.ZF(this.hostElement,"ytd-refresh-channel-tab-action",["TAB_ID_SPONSORSHIPS"])};
Ru.prototype.onPopupClosed=Ru.prototype.onPopupClosed;Ru.prototype.onDataChanged=Ru.prototype.onDataChanged;_.L([_.Q(_.k.YtRendererBehavior),_.p("design:type",Object)],Ru.prototype,"ytRendererBehavior",void 0);_.L([_.Q(_.u4.YtRendererstamperBehavior),_.p("design:type",Object)],Ru.prototype,"ytRendererstamperBehavior",void 0);_.L([_.x(),_.p("design:type",Object)],Ru.prototype,"data",void 0);_.L([_.x({reflectToAttribute:!0}),_.p("design:type",Object)],Ru.prototype,"darkerDarkTheme",void 0);
_.L([_.A3("#header"),_.p("design:type",HTMLDivElement)],Ru.prototype,"header",void 0);_.L([_.O8("data"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],Ru.prototype,"onDataChanged",null);_.L([_.gz("yt-popup-closed"),_.p("design:type",Function),_.p("design:paramtypes",[CustomEvent]),_.p("design:returntype")],Ru.prototype,"onPopupClosed",null);_.L([_.U({disableElementRegistration:!0,is:"ytd-membership-post-cancel-renderer"})],Ru);
_.D(Ru,"ytd-membership-post-cancel-renderer",function(){if(Gff!==void 0)return Gff;var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-membership-post-cancel-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-membership-post-cancel-renderer">\n  <div class="avatar-support style-scope ytd-membership-post-cancel-renderer" aria-hidden="true">\n    <yt-img-shadow class="avatar style-scope ytd-membership-post-cancel-renderer" thumbnail="[[data.viewerThumbnail]]"></yt-img-shadow>\n    <yt-icon class="membership-icon style-scope ytd-membership-post-cancel-renderer" default-to-filled="true" icon="sponsorship_star"></yt-icon>\n    <yt-img-shadow class="avatar style-scope ytd-membership-post-cancel-renderer" thumbnail="[[data.channelThumbnail]]"></yt-img-shadow>\n  </div>\n</div>\n\n<yt-formatted-string class="header-title style-scope ytd-membership-post-cancel-renderer" text="[[data.header]]"></yt-formatted-string>\n\n<div class="messages style-scope ytd-membership-post-cancel-renderer">\n  <template is="dom-repeat" items="[[data.messages]]" class="style-scope ytd-membership-post-cancel-renderer">\n    <yt-formatted-string text="[[item]]" class="style-scope ytd-membership-post-cancel-renderer"></yt-formatted-string>\n  </template>\n</div>\n\n<div class="footer style-scope ytd-membership-post-cancel-renderer">\n  <div id="okay-button" class="style-scope ytd-membership-post-cancel-renderer"></div>\n</div>\n');
a.content.insertBefore(_.w().content.cloneNode(!0),a.content.firstChild);return Gff=a},{mode:1});var $vE;var L2=function(){var a=_.G.apply(this,arguments)||this;a.darkerDarkTheme=_.K("web_darker_dark_theme");return a};
_.b(L2,_.G);L2.prototype.maybeSubmitFeedback=function(){this.feedbackSurveyRenderer&&this.feedbackSurveyRenderer.submitSurvey()};
L2.prototype.configureRendererStamper=function(){return{"data.feedbackSurvey":{id:"feedback-survey",mapping:{feedbackSurveyRenderer:"ytd-feedback-survey-renderer"}}}};
_.L([_.Q(_.u4.YtRendererstamperBehavior),_.p("design:type",Object)],L2.prototype,"ytRendererstamperBehavior",void 0);_.L([_.x(),_.p("design:type",Object)],L2.prototype,"data",void 0);_.L([_.x({reflectToAttribute:!0}),_.p("design:type",Object)],L2.prototype,"darkerDarkTheme",void 0);_.L([_.A3("ytd-feedback-survey-renderer"),_.p("design:type",Object)],L2.prototype,"feedbackSurveyRenderer",void 0);_.L([_.U({disableElementRegistration:!0,is:"ytd-sponsorship-confirm-cancel-content"})],L2);
_.D(L2,"ytd-sponsorship-confirm-cancel-content",function(){if($vE!==void 0)return $vE;var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-sponsorship-confirm-cancel-content--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="description" class="style-scope ytd-sponsorship-confirm-cancel-content">\n  <yt-formatted-string text="[[data.description]]" class="style-scope ytd-sponsorship-confirm-cancel-content"></yt-formatted-string>\n</div>\n<div id="feedback-survey" class="style-scope ytd-sponsorship-confirm-cancel-content"></div>\n');
a.content.insertBefore(_.w().content.cloneNode(!0),a.content.firstChild);return $vE=a},{mode:1});var X_z;var ly=function(){var a=_.G.apply(this,arguments)||this;a.darkerDarkTheme=_.K("web_darker_dark_theme");a.maybeSubmitFeedback=function(){a.content&&a.content.maybeSubmitFeedback()};
return a};
_.b(ly,_.G);_.Z=ly.prototype;_.Z.configureRendererStamper=function(){return{"data.confirmButton":{id:"confirm-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{"on-tap":"[[maybeSubmitFeedback]]"}}}}}};
_.Z.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");this.scrollable.dialogElement=this.hostElement.parentNode;this.scrollable._ensureTarget();this.onDataChanged()};
_.Z.onYtPopupOpened=function(a,z){z===this&&this.data&&this.data.onOpenCommands&&_.tR(this.hostElement,this.data.onOpenCommands,this.hostElement);_.ZF(this.hostElement,"yt-close-popups-action",[["ytd-manage-membership-renderer","ytd-membership-offer-renderer"]])};
_.Z.onYtPopupClosed=function(a,z){(z&&z.canceled===!0||z&&z.canceled===!1&&z.confirmed===!1)&&this.data&&this.data.onDismissCommands&&_.tR(this.hostElement,this.data.onDismissCommands,this.hostElement)};
_.Z.onYtServiceRequestCompleted=function(){_.ZF(this.hostElement,"yt-close-popup-action",["ytd-sponsorship-confirm-cancel-renderer"])};
_.Z.onYtServiceRequestError=function(a){_.cn(this.hostElement,a.detail.error.message)};
_.Z.onDataChanged=function(){if(this.isAttached){var a=this.backgroundUrl;a&&(_.PK(this.hostElement).querySelector("#header").style.backgroundImage=a)}};
_.eH.Object.defineProperties(ly.prototype,{backgroundUrl:{configurable:!0,enumerable:!0,get:function(){var a=this.get("data.header.sponsorshipDialogHeaderRenderer.headerImage.thumbnails");return a?"url("+_.r4(a,this.hostElement.clientWidth)+")":""}}});
ly.prototype.onDataChanged=ly.prototype.onDataChanged;ly.prototype.onYtServiceRequestError=ly.prototype.onYtServiceRequestError;ly.prototype.onYtServiceRequestCompleted=ly.prototype.onYtServiceRequestCompleted;ly.prototype.onYtPopupClosed=ly.prototype.onYtPopupClosed;ly.prototype.onYtPopupOpened=ly.prototype.onYtPopupOpened;_.L([_.Q(_.k.YtRendererBehavior),_.p("design:type",Object)],ly.prototype,"ytRendererBehavior",void 0);
_.L([_.Q(_.u4.YtRendererstamperBehavior),_.p("design:type",Object)],ly.prototype,"ytRendererstamperBehavior",void 0);_.L([_.x(),_.p("design:type",Object)],ly.prototype,"data",void 0);_.L([_.x({value:function(){return _.AR("SBOX_INAPPROPRIATE_CANCEL")}}),
_.p("design:type",String)],ly.prototype,"closeButtonAriaLabel",void 0);_.L([_.x({reflectToAttribute:!0}),_.p("design:type",Object)],ly.prototype,"darkerDarkTheme",void 0);_.L([_.A3("#scrollable"),_.p("design:type",Object)],ly.prototype,"scrollable",void 0);_.L([_.A3("ytd-sponsorship-confirm-cancel-content"),_.p("design:type",Object)],ly.prototype,"content",void 0);
_.L([_.gz("yt-popup-opened"),_.p("design:type",Function),_.p("design:paramtypes",[CustomEvent,Object]),_.p("design:returntype")],ly.prototype,"onYtPopupOpened",null);_.L([_.gz("yt-popup-closed"),_.p("design:type",Function),_.p("design:paramtypes",[CustomEvent,Object]),_.p("design:returntype")],ly.prototype,"onYtPopupClosed",null);
_.L([_.gz("yt-service-request-completed"),_.p("design:type",Function),_.p("design:paramtypes",[CustomEvent]),_.p("design:returntype")],ly.prototype,"onYtServiceRequestCompleted",null);_.L([_.gz("yt-service-request-error"),_.p("design:type",Function),_.p("design:paramtypes",[CustomEvent]),_.p("design:returntype")],ly.prototype,"onYtServiceRequestError",null);_.L([_.O8("data"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],ly.prototype,"onDataChanged",null);
_.L([_.U({disableElementRegistration:!0,is:"ytd-sponsorship-confirm-cancel-renderer"})],ly);
_.D(ly,"ytd-sponsorship-confirm-cancel-renderer",function(){if(X_z!==void 0)return X_z;var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-sponsorship-confirm-cancel-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-sponsorship-confirm-cancel-renderer">\n  <div id="dismiss-button" class="style-scope ytd-sponsorship-confirm-cancel-renderer">\n    <tp-yt-paper-icon-button aria-label$="[[closeButtonAriaLabel]]" dialog-dismiss="" icon="yt-icons:dismissal" class="style-scope ytd-sponsorship-confirm-cancel-renderer"></tp-yt-paper-icon-button>\n  </div>\n  <div class="avatar-support style-scope ytd-sponsorship-confirm-cancel-renderer">\n    <template is="dom-if" restamp="" if="[[data.header.sponsorshipDialogHeaderRenderer.viewerThumbnail]]" class="style-scope ytd-sponsorship-confirm-cancel-renderer">\n      <yt-img-shadow class="avatar style-scope ytd-sponsorship-confirm-cancel-renderer" thumbnail="[[data.header.sponsorshipDialogHeaderRenderer.viewerThumbnail]]">\n      </yt-img-shadow>\n      <yt-icon class="membership-icon style-scope ytd-sponsorship-confirm-cancel-renderer" default-to-filled="true" icon="sponsorship_star"></yt-icon>\n    </template>\n    <yt-img-shadow class="avatar style-scope ytd-sponsorship-confirm-cancel-renderer" thumbnail="[[data.header.sponsorshipDialogHeaderRenderer.channelThumbnail]]">\n    </yt-img-shadow>\n  </div>\n</div>\n<div id="content" class="style-scope ytd-sponsorship-confirm-cancel-renderer">\n  <tp-yt-paper-dialog-scrollable id="scrollable" class="style-scope ytd-sponsorship-confirm-cancel-renderer">\n    <div id="title" class="style-scope ytd-sponsorship-confirm-cancel-renderer">\n      <yt-formatted-string text="[[data.title]]" class="style-scope ytd-sponsorship-confirm-cancel-renderer"></yt-formatted-string>\n    </div>\n    <ytd-sponsorship-confirm-cancel-content data="[[data]]" class="style-scope ytd-sponsorship-confirm-cancel-renderer">\n    </ytd-sponsorship-confirm-cancel-content>\n  </tp-yt-paper-dialog-scrollable>\n</div>\n<div class="footer style-scope ytd-sponsorship-confirm-cancel-renderer">\n  <div id="confirm-button" class="style-scope ytd-sponsorship-confirm-cancel-renderer"></div>\n</div>\n');a.content.insertBefore(_.w().content.cloneNode(!0),
a.content.firstChild);return X_z=a},{mode:_.Np("kevlar_poly_si_batch_j081")?1:2});var TTE;var p2=function(){var a=_.G.apply(this,arguments)||this;a.darkerDarkTheme=_.K("web_darker_dark_theme");return a};
_.b(p2,_.G);p2.prototype.configureRendererStamper=function(){return{"data.contents":{id:"content",mapping:{sponsorshipsListTileRenderer:{component:"ytd-sponsorships-list-tile-renderer"}}}}};
_.L([_.Q(_.u4.YtRendererstamperBehavior),_.p("design:type",Object)],p2.prototype,"ytRendererstamperBehavior",void 0);_.L([_.x(),_.p("design:type",Object)],p2.prototype,"data",void 0);_.L([_.x({reflectToAttribute:!0}),_.p("design:type",Object)],p2.prototype,"darkerDarkTheme",void 0);_.L([_.U({disableElementRegistration:!0,is:"ytd-sponsorships-celebration-content"})],p2);
_.D(p2,"ytd-sponsorships-celebration-content",function(){if(TTE!==void 0)return TTE;var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-sponsorships-celebration-content--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="content" class="style-scope ytd-sponsorships-celebration-content"></div>\n');a.content.insertBefore(_.w().content.cloneNode(!0),a.content.firstChild);return TTE=
a},{mode:1});var dv0;var Wj4=_.kK(["\n      window.dataLayer = window.dataLayer || [];\n      function gtag(){dataLayer.push(arguments);}\n      gtag('event', 'conversion', {'send_to': 'AW-10800507011/WarlCOX0sIIDEIPRip4o', 'transaction_id': ''});\n    "]),wN=function(){var a=_.G.apply(this,arguments)||this;a.scriptsAppended=!1;a.useFullWidthPrimaryButton=!1;a.buttonOverrides={type:"tonal",style:"overlay-dark"};return a};
_.b(wN,_.G);_.Z=wN.prototype;_.Z.dataChanged=function(){var a;this.useFullWidthPrimaryButton=!((a=this.data)==null||!a.useFullWidthPrimaryButton)};
_.Z.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:_.K("web_modern_buttons")}}}},"data.primaryButton":{id:"primary-button",mapping:{buttonRenderer:{component:"yt-button-renderer",attributes:{"dialog-dismiss":!0}}}}}};
_.Z.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.Z.onDataChanged=function(){var a;(a=this.header)==null||a.style.setProperty("background-color",this.backgroundColor);if(a=this.headerImageUrl){var z;(z=this.header)==null||z.style.setProperty("background-image",a)}z=_.TX(4);a=_.XZ(4);var I=this.get("data.trackingParams");if(I&&a&&z){var J=_.VX(I);_.Lt(z,a,J);_.K("combine_ve_grafts")?_.Kw().graftServerVe(I,a,4):_.Lt(z,a,J)}z=_.C(this.hostElement.querySelectorAll("yt-img-shadow"));for(a=z.next();!a.done;a=z.next())a.value.onShow();if(z=this.get("data.gtmId"))_.dr(z,
_.Xw("GL","")),this.setupConversionTracking()};
_.Z.setupConversionTracking=function(){if(!this.scriptsAppended){var a=document.createElement("script");var z=_.kP(Wj4.join(""));_.ML(a,z);document.head.appendChild(a);a=document.createElement("noscript");a.textContent='<iframe src="https://www.googletagmanager.com/ns.html?id=GTM-TGBSZFB" height="0" width="0" style="display:none;visibility:hidden"></iframe>';document.body.prepend(a);this.scriptsAppended=!0}};
_.Z.onPopupClosed=function(a){if(_.Yh(a).localName==="ytd-sponsorships-celebration-renderer"){_.ZF(this.hostElement,"ytd-refresh-channel-tab-action",["TAB_ID_SPONSORSHIPS"]);var z;this.data&&((z=this.data)==null?0:z.dismissCommand)&&_.Og.instance.resolveCommand(this.data.dismissCommand,{form:{element:this.hostElement}})}};
_.eH.Object.defineProperties(wN.prototype,{backgroundColor:{configurable:!0,enumerable:!0,get:function(){var a=this.get("data.header.sponsorshipsHeaderRenderer.backgroundColor");return _.RX(a)}},
headerImageUrl:{configurable:!0,enumerable:!0,get:function(){var a=this.get("data.header.sponsorshipsHeaderRenderer.backgroundImage.thumbnails");return a?"url("+_.r4(a,this.hostElement.getBoundingClientRect().width)+")":""}}});
wN.prototype.onPopupClosed=wN.prototype.onPopupClosed;wN.prototype.onDataChanged=wN.prototype.onDataChanged;wN.prototype.dataChanged=wN.prototype.dataChanged;_.L([_.Q(_.k.YtRendererBehavior),_.p("design:type",Object)],wN.prototype,"ytRendererBehavior",void 0);_.L([_.Q(_.u4.YtRendererstamperBehavior),_.p("design:type",Object)],wN.prototype,"ytRendererstamperBehavior",void 0);_.L([_.x(),_.p("design:type",Object)],wN.prototype,"data",void 0);
_.L([_.A3("#header"),_.p("design:type",HTMLElement)],wN.prototype,"header",void 0);_.L([_.x(),_.p("design:type",Object)],wN.prototype,"scriptsAppended",void 0);_.L([_.x({type:Boolean,reflectToAttribute:!0}),_.p("design:type",Object)],wN.prototype,"useFullWidthPrimaryButton",void 0);_.L([_.x(),_.p("design:type",Object)],wN.prototype,"buttonOverrides",void 0);_.L([_.O8("data"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],wN.prototype,"dataChanged",null);
_.L([_.O8("data"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],wN.prototype,"onDataChanged",null);_.L([_.gz("yt-popup-closed"),_.p("design:type",Function),_.p("design:paramtypes",[CustomEvent]),_.p("design:returntype")],wN.prototype,"onPopupClosed",null);_.L([_.U({disableElementRegistration:!0,is:"ytd-sponsorships-celebration-renderer"})],wN);
_.D(wN,"ytd-sponsorships-celebration-renderer",function(){if(dv0!==void 0)return dv0;var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-sponsorships-celebration-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-sponsorships-celebration-renderer">\n  <div id="avatar-container" class="style-scope ytd-sponsorships-celebration-renderer">\n    <yt-img-shadow class="avatar style-scope ytd-sponsorships-celebration-renderer" fit="true" thumbnail="[[data.header.sponsorshipsHeaderRenderer.channelImage]]">\n    </yt-img-shadow>\n  </div>\n  <div class="title-container style-scope ytd-sponsorships-celebration-renderer">\n    <yt-formatted-string class="title style-scope ytd-sponsorships-celebration-renderer" text="[[data.header.sponsorshipsHeaderRenderer.title]]">\n    </yt-formatted-string>\n    <yt-formatted-string class="subtitle style-scope ytd-sponsorships-celebration-renderer" text="[[data.header.sponsorshipsHeaderRenderer.subtitle]]">\n    </yt-formatted-string>\n  </div>\n</div>\n<ytd-sponsorships-celebration-content data="[[data]]" class="style-scope ytd-sponsorships-celebration-renderer"></ytd-sponsorships-celebration-content>\n<div id="top-bar" class="style-scope ytd-sponsorships-celebration-renderer">\n  <div id="dismiss-button" class="style-scope ytd-sponsorships-celebration-renderer"></div>\n</div>\n<div id="button-bar" class="style-scope ytd-sponsorships-celebration-renderer">\n  <div id="primary-button" class="style-scope ytd-sponsorships-celebration-renderer"></div>\n</div>\n');
a.content.insertBefore(_.w().content.cloneNode(!0),a.content.firstChild);return dv0=a},{mode:1});var oO0;var mW=function(){var a=_.G.apply(this,arguments)||this;a.isToggleChecked=!1;return a};
_.b(mW,_.G);mW.prototype.onDataChanged=function(){var a;this.isToggleChecked=((a=this.data)==null?void 0:a.initialOptInStatus)==="SPONSORSHIPS_GIFTING_OPT_IN_STATUS_ENABLED"};
mW.prototype.close=function(){var a;((a=this.data)==null?0:a.closeCommand)&&this.ytComponentBehavior.resolveCommand(this.data.closeCommand)};
mW.prototype.handleOptInToggle=function(){this.isToggleChecked=!this.isToggleChecked;var a,z=_.H((a=this.data)==null?void 0:a.switchButton,fsG);z&&(this.isToggleChecked&&z.switchOnInnertubeCommand&&this.ytComponentBehavior.resolveCommand(z.switchOnInnertubeCommand),!this.isToggleChecked&&z.switchOffInnertubeCommand&&this.ytComponentBehavior.resolveCommand(z.switchOffInnertubeCommand))};
mW.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
mW.prototype.onDataChanged=mW.prototype.onDataChanged;_.L([_.Q(_.Ms.YtComponentBehavior),_.p("design:type",Object)],mW.prototype,"ytComponentBehavior",void 0);_.L([_.Q(_.k.YtRendererBehavior),_.p("design:type",Object)],mW.prototype,"ytRendererBehavior",void 0);_.L([_.x(),_.p("design:type",Object)],mW.prototype,"data",void 0);_.L([_.x(),_.p("design:type",Object)],mW.prototype,"isToggleChecked",void 0);_.L([_.x({value:_.AR("CLOSE")}),_.p("design:type",String)],mW.prototype,"closeButtonAriaLabel",void 0);
_.L([_.O8("data"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],mW.prototype,"onDataChanged",null);_.L([_.U({disableElementRegistration:!0,is:"ytd-sponsorships-gifting-opt-in-renderer"})],mW);
_.D(mW,"ytd-sponsorships-gifting-opt-in-renderer",function(){if(oO0!==void 0)return oO0;var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-sponsorships-gifting-opt-in-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="close" class="style-scope ytd-sponsorships-gifting-opt-in-renderer">\n  <yt-icon-button id="close-button" label="[[closeButtonAriaLabel]]" on-click="close" class="style-scope ytd-sponsorships-gifting-opt-in-renderer">\n    <yt-icon icon="close" class="style-scope ytd-sponsorships-gifting-opt-in-renderer"></yt-icon>\n  </yt-icon-button>\n</div>\n<div id="content" class="style-scope ytd-sponsorships-gifting-opt-in-renderer">\n  <div id="header" class="style-scope ytd-sponsorships-gifting-opt-in-renderer">\n    <yt-img-shadow class="thumbnail style-scope ytd-sponsorships-gifting-opt-in-renderer" thumbnail="[[data.thumbnail]]">\n    </yt-img-shadow>\n  </div>\n  <div id="optin" class="style-scope ytd-sponsorships-gifting-opt-in-renderer">\n    <div id="title" class="style-scope ytd-sponsorships-gifting-opt-in-renderer">\n      <yt-formatted-string class="title style-scope ytd-sponsorships-gifting-opt-in-renderer" text="[[data.title]]">\n      </yt-formatted-string>\n      <yt-formatted-string class="subtitle style-scope ytd-sponsorships-gifting-opt-in-renderer" text="[[data.subtitle]]">\n      </yt-formatted-string>\n    </div>\n    <div id="toggle" class="style-scope ytd-sponsorships-gifting-opt-in-renderer">\n      <ytcp-ve track-click="true" ve-type="[[ve.client.SPONSORSHIPS_GIFTING_OPT_IN_DIALOG_TOGGLE_BUTTON]]" class="style-scope ytd-sponsorships-gifting-opt-in-renderer">\n        <tp-yt-paper-toggle-button class="toggle style-scope ytd-sponsorships-gifting-opt-in-renderer" checked="[[isToggleChecked]]" on-click="handleOptInToggle">\n        </tp-yt-paper-toggle-button>\n      </ytcp-ve>\n    </div>\n  </div>\n  <div class="separator style-scope ytd-sponsorships-gifting-opt-in-renderer"></div>\n  <yt-formatted-string class="disclaimer style-scope ytd-sponsorships-gifting-opt-in-renderer" text="[[data.disclaimer]]">\n  </yt-formatted-string>\n</div>\n');a.content.insertBefore(_.w().content.cloneNode(!0),
a.content.firstChild);return oO0=a},{mode:1});var UvZ;var yd=function(){return _.G.apply(this,arguments)||this};
_.b(yd,_.G);_.Z=yd.prototype;_.Z.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"}}}}};
_.Z.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.Z.detached=function(){this.playerElement.stop()};
_.Z.onYtServiceRequestCompleted=function(){_.ZF(this.hostElement,"yt-close-popup-action",["ytd-sponsorships-offer-renderer"])};
_.Z.onYtServiceRequestError=function(a){_.cn(this.hostElement,a.detail.error.message)};
_.Z.onYtPopupOpened=function(){this.scrollable&&(this.scrollable.scrollTarget.scrollTop=0)};
_.Z.onYtPopupClosed=function(){this.playerElement.stop();this.backgroundPlayerElement&&this.isBackgroundPlayerAlreadyPlaying&&!this.tierRenderer.purchaseButtonClicked&&this.backgroundPlayerElement.play();this.set("selectedTier",0)};
_.Z.getTier=function(a,z){return!a||!a.tiers||z<0?null:_.H(a.tiers[z],KJ0)};
_.Z.moreThanOne=function(a){return!!(a&&a.length>1)};
_.Z.tierOverviewTap=function(a){var z=this;this.selectedTier=a.model.index;_.Yv(this,function(){_.PA(z.hostElement,"yt-refit")})};
_.Z.computeSelectedClass=function(a,z){return this.isSelected(a,z)?"selected":""};
_.Z.computeButtonAriaPressed=function(a,z){return this.isSelected(a,z)?"true":"false"};
_.Z.isSelected=function(a,z){return a===z};
_.Z.onDataChanged=function(){_.PK(this.hostElement).querySelector("#header-overlay").style.visibility="";_.PK(this.hostElement).querySelector("#header-overlay").classList.remove("header-overlay-transition");this.offerVideo=this.get("data.header.sponsorshipsHeaderRenderer.inlineVideo.sponsorshipsOfferVideoRenderer.externalVideoId");this.setHeaderBackground();this.initializeVe(this.offerVideo);this.offerVideo&&this.setupVideoPlayer(this.offerVideo);for(var a=_.C(this.hostElement.querySelectorAll("yt-img-shadow")),
z=a.next();!z.done;z=a.next())z.value.onShow();var I;this.set("selectedTier",(I=this.get("data.targetTierIndex"))!=null?I:0);var J;(a=(J=this.data)==null?void 0:J.onVisible)&&this.ytComponentBehavior.resolveCommand(a)};
_.Z.initializeVe=function(a){var z=_.TX(),I=_.XZ(),J=this.get("data.trackingParams");I&&z&&(this.screenLayer=4,z=_.Ue(_.ffM)(void 0,69877,{clientScreenNonce:z,visualElement:I},void 0,void 0,void 0),_.WJ(z,69877,4),I=_.XZ(4),J&&I&&(J=_.VX(J),_.Lt(z,I,J),a&&(this.offerVideoVe=_.uq(74659),_.Lt(z,J,this.offerVideoVe))))};
_.Z.setHeaderBackground=function(){var a=this.get("data.header.sponsorshipsHeaderRenderer.backgroundColor");_.PK(this.hostElement).querySelector("#background-image-layer").style.backgroundColor=_.RX(a);if(a=this.getHeaderImage())a=_.r4(a,screen.width),_.PK(this.hostElement).querySelector("#background-image-layer").style.backgroundImage="url("+a+")"};
_.Z.getHeaderImage=function(){var a=this.get("data.header.sponsorshipsHeaderRenderer.backgroundImageDarkMode.thumbnails");return this.isAppDarkTheme()&&a?a:this.get("data.header.sponsorshipsHeaderRenderer.backgroundImage.thumbnails")};
_.Z.isAppDarkTheme=function(){return document.documentElement.hasAttribute("dark")};
_.Z.setupVideoPlayer=function(a){var z=this,I,J,r,P;return _.t(function(N){if(N.nextAddress==1)return I=z.get("data.header.sponsorshipsHeaderRenderer.inlineVideo.sponsorshipsOfferVideoRenderer.autoplay"),J=z.get("data.header.sponsorshipsHeaderRenderer.inlineVideo.sponsorshipsOfferVideoRenderer.playerWatchEndpointParams"),_.K("kevlar_player_update_killswitch")?z.playerElement.update({args:{autoplay:I,video_id:a,player_params:J}}):z.playerElement.loadVideoWithPlayerVars({autoplay:I,video_id:a,player_params:J}),
N.yield(z.playerElement.getPlayerPromise(),2);r=N.yieldResult;r.addEventListener("onStateChange",function(u){z.onPlayerStateChange(u)});
r.setScreenLayer(z.screenLayer);(P=_.TX(4))&&z.offerVideoVe&&_.pt(P,z.offerVideoVe);I&&(z.pauseOtherPlayers(),z.playerElement.focusOnPlayer(),z.playerElement.getPlayer().hideControls(),_.b9(_.GW,function(){z.fadeOutHeaderOverlay()},4E3));
_.nu(N)})};
_.Z.onPlayerStateChange=function(a){a===1?this.backgroundPlayerElement&&(a=this.backgroundPlayerElement.player_.getPlayerState(),a!==1&&a!==3||this.backgroundPlayerElement.pause()):a===0&&(_.PK(this.hostElement).querySelector("#header-overlay").style.visibility="",this.playerElement.getPlayer().hideControls(),_.PK(this.hostElement).querySelector("#header-overlay").classList.remove("header-overlay-transition"))};
_.Z.fadeOutHeaderOverlay=function(){_.PK(this.hostElement).querySelector("#header-overlay").classList.add("header-overlay-transition");this.playerElement.getPlayer().showControls()};
_.Z.onHeaderTap=function(){if(this.offerVideo){_.PK(this.hostElement).querySelector("#header-overlay").style.visibility="hidden";this.pauseOtherPlayers();var a;((a=this.playerElement.player_)==null?void 0:a.getPlayerState())===1?this.playerElement.pause():this.playerElement.play();(a=_.TX(4))&&this.offerVideoVe&&_.ys(a,this.offerVideoVe)}};
_.Z.getBackgroundImageLayerClass=function(a){return a?"background-image-layer-with-video":""};
_.Z.getHeaderClass=function(a){return a?"header-with-video":""};
_.Z.getHeaderOverlayClass=function(a){return a?"header-overlay-with-video":""};
_.Z.getTitleContainerClass=function(a,z){return a?"title-container-with-video":z?"title-container-without-video-flexible":"title-container-without-video"};
_.Z.tierTitleDisplayStatus=function(a){return this.moreThanOne(a)?"hide":"show"};
_.Z.pauseOtherPlayers=function(){this.isMiniplayerActive()?this.backgroundPlayerElement=_.ab().resolve(_.UJ).getPlayerElement():this.backgroundPlayerElement=_.zI();if(this.backgroundPlayerElement&&this.backgroundPlayerElement.player_){var a=this.backgroundPlayerElement.player_.getPlayerState();this.isBackgroundPlayerAlreadyPlaying=a===1||a===3;this.backgroundPlayerElement.pause()}};
_.Z.isMiniplayerActive=function(){return _.ab().resolve(_.UJ).isMiniplayerActive()};
_.Z.selectedTierChangedForBinding=function(){this.hostElement.dispatchEvent(new _.eY("selected-tier-changed",this.selectedTier))};
yd.prototype.selectedTierChangedForBinding=yd.prototype.selectedTierChangedForBinding;yd.prototype.onDataChanged=yd.prototype.onDataChanged;yd.prototype.onYtPopupClosed=yd.prototype.onYtPopupClosed;yd.prototype.onYtPopupOpened=yd.prototype.onYtPopupOpened;yd.prototype.onYtServiceRequestError=yd.prototype.onYtServiceRequestError;yd.prototype.onYtServiceRequestCompleted=yd.prototype.onYtServiceRequestCompleted;
_.L([_.Q(_.k.YtRendererBehavior),_.p("design:type",Object)],yd.prototype,"ytRendererBehavior",void 0);_.L([_.Q(_.Ms.YtComponentBehavior),_.p("design:type",Object)],yd.prototype,"ytComponentBehavior",void 0);_.L([_.Q(_.u4.YtRendererstamperBehavior),_.p("design:type",Object)],yd.prototype,"ytRendererstamperBehavior",void 0);_.L([_.x(),_.p("design:type",Object)],yd.prototype,"data",void 0);_.L([_.x({value:0}),_.p("design:type",Number)],yd.prototype,"selectedTier",void 0);
_.L([_.x({value:""}),_.p("design:type",String)],yd.prototype,"offerVideo",void 0);_.L([_.x({value:!1}),_.p("design:type",Boolean)],yd.prototype,"isBackgroundPlayerAlreadyPlaying",void 0);_.L([_.x({value:function(){return"ytd-sponsorships-offer-with-video-renderer-"+_.yx(this)}}),
_.p("design:type",String)],yd.prototype,"playerId",void 0);_.L([_.A3("tp-yt-paper-dialog-scrollable"),_.p("design:type",Object)],yd.prototype,"scrollable",void 0);_.L([_.A3("ytd-sponsorships-tier-renderer"),_.p("design:type",Object)],yd.prototype,"tierRenderer",void 0);_.L([_.A3("#player"),_.p("design:type",Object)],yd.prototype,"playerElement",void 0);
_.L([_.gz("yt-service-request-completed"),_.p("design:type",Function),_.p("design:paramtypes",[CustomEvent]),_.p("design:returntype")],yd.prototype,"onYtServiceRequestCompleted",null);_.L([_.gz("yt-service-request-error"),_.p("design:type",Function),_.p("design:paramtypes",[CustomEvent]),_.p("design:returntype")],yd.prototype,"onYtServiceRequestError",null);
_.L([_.gz("yt-popup-opened"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],yd.prototype,"onYtPopupOpened",null);_.L([_.gz("yt-popup-closed"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],yd.prototype,"onYtPopupClosed",null);_.L([_.Fe("data"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],yd.prototype,"onDataChanged",null);
_.L([_.O8("selectedTier"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],yd.prototype,"selectedTierChangedForBinding",null);_.L([_.U({disableElementRegistration:!0,is:"ytd-sponsorships-offer-renderer"})],yd);
_.D(yd,"ytd-sponsorships-offer-renderer",function(){if(UvZ!==void 0)return UvZ;var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-sponsorships-offer-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="top-bar" class="style-scope ytd-sponsorships-offer-renderer">\n  <div id="titlebar-text" class="style-scope ytd-sponsorships-offer-renderer">\n    <yt-formatted-string text="[[data.header.sponsorshipsHeaderRenderer.titlebarText]]" class="style-scope ytd-sponsorships-offer-renderer">\n    </yt-formatted-string>\n  </div>\n  <div id="action-menu" class="style-scope ytd-sponsorships-offer-renderer"></div>\n  <div id="dismiss-button" class="style-scope ytd-sponsorships-offer-renderer"></div>\n</div>\n<tp-yt-paper-dialog-scrollable id="scroller" class="style-scope ytd-sponsorships-offer-renderer">\n  <div id="header" class$="[[getHeaderClass(offerVideo)]] style-scope ytd-sponsorships-offer-renderer">\n    <div id="header-overlay" on-click="onHeaderTap" class="style-scope ytd-sponsorships-offer-renderer">\n      <div id="header-title-overlay" class$="[[getHeaderOverlayClass(offerVideo)]] style-scope ytd-sponsorships-offer-renderer">\n        <div id="avatar-container" class="style-scope ytd-sponsorships-offer-renderer">\n          <yt-img-shadow class="avatar style-scope ytd-sponsorships-offer-renderer" fit="true" thumbnail="[[data.header.sponsorshipsHeaderRenderer.channelImage]]">\n          </yt-img-shadow>\n        </div>\n        <div class$="title-container [[getTitleContainerClass(offerVideo,\n            data.header.sponsorshipsHeaderRenderer.backgroundImageDarkMode)]] style-scope ytd-sponsorships-offer-renderer">\n          <yt-formatted-string class="channel-title style-scope ytd-sponsorships-offer-renderer" text="[[data.header.sponsorshipsHeaderRenderer.superTitle]]">\n          </yt-formatted-string>\n          <yt-formatted-string class="title style-scope ytd-sponsorships-offer-renderer" text="[[data.header.sponsorshipsHeaderRenderer.title]]">\n          </yt-formatted-string>\n          <yt-formatted-string class="subtitle style-scope ytd-sponsorships-offer-renderer" text="[[data.header.sponsorshipsHeaderRenderer.subtitle]]">\n          </yt-formatted-string>\n        </div>\n      </div>\n      <div id="background-image-layer" class$="[[getBackgroundImageLayerClass(offerVideo)]] style-scope ytd-sponsorships-offer-renderer"></div>\n    </div>\n    <div id="video-container" hidden$="[[!offerVideo]]" class="style-scope ytd-sponsorships-offer-renderer">\n      <ytd-player id="player" context="WEB_PLAYER_CONTEXT_CONFIG_ID_KEVLAR_SPONSORSHIPS_OFFER" player-id="[[playerId]]" class="style-scope ytd-sponsorships-offer-renderer">\n      </ytd-player>\n    </div>\n  </div>\n  <div id="alert-renderer" hidden="[[!data.alert]]" class="style-scope ytd-sponsorships-offer-renderer"></div>\n  <div id="content" class="style-scope ytd-sponsorships-offer-renderer">\n    <template is="dom-if" if="[[moreThanOne(data.tiers)]]" class="style-scope ytd-sponsorships-offer-renderer">\n      <div id="tier-overview" class="style-scope ytd-sponsorships-offer-renderer">\n        <template is="dom-repeat" items="[[data.tiers]]" as="tier" class="style-scope ytd-sponsorships-offer-renderer">\n          <button class$="offer-overview-item [[computeSelectedClass(index, selectedTier)]] style-scope ytd-sponsorships-offer-renderer" aria-pressed="[[computeButtonAriaPressed(index, selectedTier)]]" on-click="tierOverviewTap">\n            <yt-formatted-string class="title style-scope ytd-sponsorships-offer-renderer" text="[[tier.sponsorshipsTierRenderer.title]]">\n            </yt-formatted-string>\n            <yt-formatted-string class="subtitle style-scope ytd-sponsorships-offer-renderer" text="[[tier.sponsorshipsTierRenderer.subtitle]]">\n            </yt-formatted-string>\n          </button>\n        </template>\n      </div>\n    </template>\n    <ytd-sponsorships-tier-renderer id="tier" data="[[getTier(data, selectedTier)]]" titledisplaystatus="[[tierTitleDisplayStatus(data.tiers)]]" class="style-scope ytd-sponsorships-offer-renderer">\n    </ytd-sponsorships-tier-renderer>\n  </div>\n</tp-yt-paper-dialog-scrollable>\n');a.content.insertBefore(_.w().content.cloneNode(!0),
a.content.firstChild);return UvZ=a},{mode:_.Np("kevlar_poly_si_batch_j077")?1:2});var Dve;var kz=function(){var a=_.G.apply(this,arguments)||this;a.buttonOverrides={type:"filled",style:"mono"};return a};
_.b(kz,_.G);kz.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}}}}}};
kz.prototype.backgroundColorChanged=function(){var a,z,I,J=(z=_.H((a=this.data)==null?void 0:a.content,FJG))==null?void 0:(I=z.backgroundColor)==null?void 0:I.backgroundColor;J&&(a=_.Da(J),_.PK(this.hostElement).querySelector("#banner").style.backgroundColor=a,_.PK(this.hostElement).querySelector("#abstract-art").style.backgroundColor=a)};
kz.prototype.attached=function(){this.JSC$20477_scroller&&(this.JSC$20477_scroller.dialogElement=this.hostElement.parentNode,this.JSC$20477_scroller.attached&&typeof this.JSC$20477_scroller.attached==="function"&&this.JSC$20477_scroller.attached());this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
kz.prototype.backgroundColorChanged=kz.prototype.backgroundColorChanged;_.L([_.x(),_.p("design:type",Object)],kz.prototype,"data",void 0);_.L([_.Q(_.u4.YtRendererstamperBehavior),_.p("design:type",Object)],kz.prototype,"ytRendererstamperBehavior",void 0);_.L([_.A3("#scroller"),_.p("design:type",Object)],kz.prototype,"JSC$20477_scroller",void 0);_.L([_.x(),_.p("design:type",Object)],kz.prototype,"buttonOverrides",void 0);
_.L([_.O8("data.content.sponsorshipsPromotionChannelRenderer.backgroundColor"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],kz.prototype,"backgroundColorChanged",null);_.L([_.U({disableElementRegistration:!0,is:"ytd-sponsorships-promotion-celebration-renderer"})],kz);
_.D(kz,"ytd-sponsorships-promotion-celebration-renderer",function(){if(Dve!==void 0)return Dve;var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-sponsorships-promotion-celebration-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<tp-yt-paper-dialog-scrollable id="scroller" class="style-scope ytd-sponsorships-promotion-celebration-renderer">\n   <div id="dismiss-button" class="style-scope ytd-sponsorships-promotion-celebration-renderer"></div>\n   <div id="header" class="style-scope ytd-sponsorships-promotion-celebration-renderer">\n    <yt-img-shadow class="premium-icon style-scope ytd-sponsorships-promotion-celebration-renderer" thumbnail="[[data.header.sponsorshipsPromotionHeaderRenderer.icon]]">\n    </yt-img-shadow>\n    <yt-img-shadow class="illustration style-scope ytd-sponsorships-promotion-celebration-renderer" hidden="[[!data.header.sponsorshipsPromotionHeaderRenderer.illustrationThumbnail]]" thumbnail="[[data.header.sponsorshipsPromotionHeaderRenderer.illustrationThumbnail]]">\n    </yt-img-shadow>\n    <yt-formatted-string class="title style-scope ytd-sponsorships-promotion-celebration-renderer" text="[[data.header.sponsorshipsPromotionHeaderRenderer.title]]">\n    </yt-formatted-string>\n    <yt-formatted-string class="subtitle style-scope ytd-sponsorships-promotion-celebration-renderer" split-lines="" text="[[data.header.sponsorshipsPromotionHeaderRenderer.subtitle]]">\n    </yt-formatted-string>\n  </div>\n</tp-yt-paper-dialog-scrollable>\n  <div id="banner" class="style-scope ytd-sponsorships-promotion-celebration-renderer">\n    <div id="content" class="style-scope ytd-sponsorships-promotion-celebration-renderer">\n      <div id="content-background" class="banner-shade style-scope ytd-sponsorships-promotion-celebration-renderer">\n        <yt-img-shadow id="abstract-art" fit-height="" thumbnail="[[data.content.sponsorshipsPromotionChannelRenderer.backgroundImage]]" class="style-scope ytd-sponsorships-promotion-celebration-renderer">\n        </yt-img-shadow>\n      </div>\n      <div id="subcontent" class="style-scope ytd-sponsorships-promotion-celebration-renderer">\n        <yt-img-shadow class="channel-image style-scope ytd-sponsorships-promotion-celebration-renderer" fit="" thumbnail="[[data.content.sponsorshipsPromotionChannelRenderer.channelImage]]">\n        </yt-img-shadow>\n        <div class="channel-info style-scope ytd-sponsorships-promotion-celebration-renderer">\n          <yt-formatted-string class="channel-info-title style-scope ytd-sponsorships-promotion-celebration-renderer" ellipsis-truncate="" text="[[data.content.sponsorshipsPromotionChannelRenderer.title]]">\n          </yt-formatted-string>\n          <yt-formatted-string class="channel-title style-scope ytd-sponsorships-promotion-celebration-renderer" ellipsis-truncate="" text="[[data.content.sponsorshipsPromotionChannelRenderer.channelTitle]]">\n          </yt-formatted-string>\n          <yt-formatted-string class="membership-detail style-scope ytd-sponsorships-promotion-celebration-renderer" ellipsis-truncate="" hidden="[[!data.content.sponsorshipsPromotionChannelRenderer.membershipDetail]]" text="[[data.content.sponsorshipsPromotionChannelRenderer.membershipDetail]]">\n          </yt-formatted-string>\n        </div>\n      </div>\n    </div>\n    <div id="button-bar" class="banner-shade style-scope ytd-sponsorships-promotion-celebration-renderer">\n      <div id="primary-button" class="style-scope ytd-sponsorships-promotion-celebration-renderer"></div>\n    </div>\n  </div>\n');a.content.insertBefore(_.w().content.cloneNode(!0),
a.content.firstChild);return Dve=a},{mode:_.Np("kevlar_poly_si_batch_j077")?1:2});var Rye;var Ljf;var Mq=function(){return _.G.apply(this,arguments)||this};
_.b(Mq,_.G);Mq.prototype.getValue=function(){return this.checkbox.checked?this.data.params:void 0};
Mq.prototype.computeIsInitiallyChecked=function(a){return a===1};
_.L([_.Q(_.k.YtRendererBehavior),_.p("design:type",Object)],Mq.prototype,"ytRendererBehavior",void 0);_.L([_.x(),_.p("design:type",Object)],Mq.prototype,"data",void 0);_.L([_.A3("#checkbox"),_.p("design:type",Object)],Mq.prototype,"checkbox",void 0);_.L([_.U({disableElementRegistration:!0,is:"ytd-subscription-toggle-option-renderer"})],Mq);
_.D(Mq,"ytd-subscription-toggle-option-renderer",function(){if(Ljf!==void 0)return Ljf;var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-subscription-toggle-option-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<tp-yt-paper-checkbox id="checkbox" checked="[[computeIsInitiallyChecked(data.initialValue)]]" class="style-scope ytd-subscription-toggle-option-renderer">\n  [[getSimpleString(data.label)]]\n</tp-yt-paper-checkbox>\n');a.content.insertBefore(_.w().content.cloneNode(!0),
a.content.firstChild);return Ljf=a},{mode:1});var ct=function(){var a=_.G.apply(this,arguments)||this;a.darkerDarkTheme=_.K("web_darker_dark_theme");a.actionMap={"yt-signal-action-submit-notification-options-form":"handleSignalActionSubmitNotificationOptionsForm"};return a};
_.b(ct,_.G);ct.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"}}}};
ct.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
ct.prototype.handleSignalActionSubmitNotificationOptionsForm=function(){var a=_.PK(this.hostElement).querySelector("#options").selected;a=this.data.options[a].subscriptionRadioOptionRenderer.serviceEndpoint;var z=_.PK(this.hostElement).querySelector("ytd-subscription-toggle-option-renderer");z&&a&&a.modifyChannelNotificationPreferenceEndpoint&&(z=z.getValue())&&(a.modifyChannelNotificationPreferenceEndpoint.secondaryParams=[z]);_.ab().resolve(_.j6).resolveCommand(a,{form:{element:this.hostElement}});
_.ZF(this.hostElement,"yt-close-popup-action")};
_.eH.Object.defineProperties(ct.prototype,{initialIndex:{configurable:!0,enumerable:!0,get:function(){if(!this.data||!this.data.options)return null;for(var a=this.data.options,z=0;z<a.length;z++){var I=a[z].subscriptionRadioOptionRenderer;if(I&&I.selected)return z}return null}}});
_.L([_.Q(_.u4.YtRendererstamperBehavior),_.p("design:type",Object)],ct.prototype,"ytRendererstamperBehavior",void 0);_.L([_.Q(_.Hc.YtActionHandlerBehavior),_.p("design:type",Object)],ct.prototype,"ytActionHandlerBehavior",void 0);_.L([_.Q(_.iO.YtEventForwardingBehavior),_.p("design:type",Object)],ct.prototype,"eventForwardingBehavior",void 0);_.L([_.Q(_.k.YtRendererBehavior),_.p("design:type",Object)],ct.prototype,"ytRendererBehavior",void 0);
_.L([_.x(),_.p("design:type",Object)],ct.prototype,"data",void 0);_.L([_.x({reflectToAttribute:!0}),_.p("design:type",Object)],ct.prototype,"darkerDarkTheme",void 0);_.L([_.S("data.options"),_.p("design:type",Object),_.p("design:paramtypes",[])],ct.prototype,"initialIndex",null);_.L([_.U({disableElementRegistration:!0,is:"ytd-subscription-notification-options-renderer"})],ct);
_.D(ct,"ytd-subscription-notification-options-renderer",function(){if(Rye!==void 0)return Rye;var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-subscription-notification-options-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="title" class="style-scope ytd-subscription-notification-options-renderer">[[getSimpleString(data.title)]]</div>\n<div id="body" class="style-scope ytd-subscription-notification-options-renderer">\n  <tp-yt-paper-radio-group id="options" selected="[[initialIndex]]" class="style-scope ytd-subscription-notification-options-renderer">\n    <template is="dom-repeat" items="[[data.options]]" class="style-scope ytd-subscription-notification-options-renderer">\n      <tp-yt-paper-radio-button name="[[index]]" value="[[item.subscriptionRadioOptionRenderer.serviceEndpoint]]" class="style-scope ytd-subscription-notification-options-renderer">\n        <div class="content style-scope ytd-subscription-notification-options-renderer">\n          <div class="label style-scope ytd-subscription-notification-options-renderer">\n            [[getSimpleString(item.subscriptionRadioOptionRenderer.text)]]\n          </div>\n          <yt-icon icon="[[item.subscriptionRadioOptionRenderer.choiceIcon.iconType]]" class="style-scope ytd-subscription-notification-options-renderer">\n          </yt-icon>\n        </div>\n      </tp-yt-paper-radio-button>\n    </template>\n  </tp-yt-paper-radio-group>\n  <div id="secondary-options" class="style-scope ytd-subscription-notification-options-renderer"></div>\n</div>\n<div class="buttons style-scope ytd-subscription-notification-options-renderer">\n  <div id="cancel-button" class="style-scope ytd-subscription-notification-options-renderer"></div>\n  <div id="confirm-button" class="style-scope ytd-subscription-notification-options-renderer"></div>\n</div>\n');
a.content.insertBefore(_.w().content.cloneNode(!0),a.content.firstChild);return Rye=a},{mode:1});var lhE;var Yz=function(){return _.G.apply(this,arguments)||this};
_.b(Yz,_.G);_.L([_.Q(_.k.YtRendererBehavior),_.p("design:type",Object)],Yz.prototype,"ytRendererBehavior",void 0);_.L([_.x(),_.p("design:type",Object)],Yz.prototype,"data",void 0);_.L([_.U({disableElementRegistration:!0,is:"ytd-tvfilm-offer-groups-renderer"})],Yz);
_.D(Yz,"ytd-tvfilm-offer-groups-renderer",function(){if(lhE!==void 0)return lhE;var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-tvfilm-offer-groups-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<template is="dom-repeat" items="[[data.offerGroups]]" class="style-scope ytd-tvfilm-offer-groups-renderer">\n  <div class="offer-group style-scope ytd-tvfilm-offer-groups-renderer">\n    <div class="offer-header style-scope ytd-tvfilm-offer-groups-renderer">\n      <h2 class="offer-title style-scope ytd-tvfilm-offer-groups-renderer">[[getSimpleString(item.offerGroupRenderer.title)]]</h2>\n      <h3 class="style-scope ytd-tvfilm-offer-groups-renderer">\n        <yt-formatted-string class="offer-subtitle standard-text style-scope ytd-tvfilm-offer-groups-renderer" split-lines="" text="[[item.offerGroupRenderer.subtitle]]">\n        </yt-formatted-string>\n      </h3>\n    </div>\n    <div class="offer-list style-scope ytd-tvfilm-offer-groups-renderer">\n      <template is="dom-repeat" items="[[item.offerGroupRenderer.offers]]" class="style-scope ytd-tvfilm-offer-groups-renderer">\n        <ytd-button-renderer class="offer-button style-scope ytd-tvfilm-offer-groups-renderer" data="[[item.buttonRenderer]]" dialog-dismiss="true" ellipsis-truncate="">\n        </ytd-button-renderer>\n      </template>\n    </div>\n  </div>\n</template>\n');a.content.insertBefore(_.w().content.cloneNode(!0),
a.content.firstChild);return lhE=a},{mode:1});var p_E;var qq=function(){var a=_.G.apply(this,arguments)||this;a.darkerDarkTheme=_.K("web_darker_dark_theme");return a};
_.b(qq,_.G);_.Z=qq.prototype;_.Z.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"}}}};
_.Z.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");this.hostElement.hasAttribute("aria-label")||this.hostElement.setAttribute("aria-label","Offers")};
_.Z.computeThumbnailClass=function(a){return a.thumbnailOverlays?a.isShow?"thumbnail-show":"thumbnail-movie":a.isShow?"thumbnail-no-overlay-show":"thumbnail-no-overlay-movie"};
_.Z.computeCommerceSectionClass=function(a){return a.offers&&a.offers.tvfilmOffersRenderer?"commerce-section-groups":"commerce-section-tabs"};
_.Z.computeTitleClass=function(a){return a.offers&&a.offers.tvfilmOffersRenderer?"title-with-offer-groups":""};
_.Z.onDataChanged=function(){[].concat(_.ih(this.hostElement.querySelectorAll("yt-img-shadow"))).forEach(function(a){a.onShow()})};
qq.prototype.onDataChanged=qq.prototype.onDataChanged;_.L([_.Q(_.u4.YtRendererstamperBehavior),_.p("design:type",Object)],qq.prototype,"ytRendererstamperBehavior",void 0);_.L([_.Q(_.k.YtRendererBehavior),_.p("design:type",Object)],qq.prototype,"ytRendererBehavior",void 0);_.L([_.x(),_.p("design:type",Object)],qq.prototype,"data",void 0);_.L([_.x({reflectToAttribute:!0}),_.p("design:type",Object)],qq.prototype,"darkerDarkTheme",void 0);
_.L([_.O8("data"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],qq.prototype,"onDataChanged",null);_.L([_.U({disableElementRegistration:!0,is:"ytd-ypc-offers-overlay-renderer"})],qq);
_.D(qq,"ytd-ypc-offers-overlay-renderer",function(){if(p_E!==void 0)return p_E;var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-ypc-offers-overlay-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="spinner" hidden="[[!data.showLoadingSpinner]]" class="style-scope ytd-ypc-offers-overlay-renderer">\n  <tp-yt-paper-spinner active="[[data.showLoadingSpinner]]" class="style-scope ytd-ypc-offers-overlay-renderer"></tp-yt-paper-spinner>\n</div>\n<div class="content style-scope ytd-ypc-offers-overlay-renderer" hidden="[[data.showLoadingSpinner]]">\n  <div class="header style-scope ytd-ypc-offers-overlay-renderer" hidden="[[!data.title]]">\n    <div class="metadata style-scope ytd-ypc-offers-overlay-renderer">\n      <div class$="title-badge [[computeTitleClass(data)]] style-scope ytd-ypc-offers-overlay-renderer">\n        [[getSimpleString(data.title)]]\n      </div>\n    </div>\n    <template is="dom-if" if="[[data.title]]" class="style-scope ytd-ypc-offers-overlay-renderer">\n      <ytd-button-renderer class="dismiss-button style-scope ytd-ypc-offers-overlay-renderer" data="[[data.dismissButton.buttonRenderer]]" dialog-dismiss="true">\n      </ytd-button-renderer>\n    </template>\n  </div>\n\n  <div class="content-dismiss-section style-scope ytd-ypc-offers-overlay-renderer">\n    <div id="thumbnail-commerce-section" class="style-scope ytd-ypc-offers-overlay-renderer">\n      <div id="thumbnail" class$="[[computeThumbnailClass(data)]] style-scope ytd-ypc-offers-overlay-renderer">\n        <yt-img-shadow id="thumbnail-image" fit="" thumbnail="[[data.thumbnail]]" class="style-scope ytd-ypc-offers-overlay-renderer">\n        </yt-img-shadow>\n        <div id="overlays" class="style-scope ytd-ypc-offers-overlay-renderer"></div>\n      </div>\n      <div id="commerce-metadata-section" class$="[[computeCommerceSectionClass(data)]] style-scope ytd-ypc-offers-overlay-renderer">\n        <div id="commerce-section" class="style-scope ytd-ypc-offers-overlay-renderer">\n          <div id="offers" class="style-scope ytd-ypc-offers-overlay-renderer"></div>\n        </div>\n        <div id="badges-metadata-section" hidden="[[!data.badges]]" class="style-scope ytd-ypc-offers-overlay-renderer">\n          <hr class="metadata-separator-line style-scope ytd-ypc-offers-overlay-renderer">\n          <ytd-badge-supported-renderer class="left-aligned-badges style-scope ytd-ypc-offers-overlay-renderer" badges="[[data.badges]]">\n          </ytd-badge-supported-renderer>\n          <div class="subtitle standard-text style-scope ytd-ypc-offers-overlay-renderer">[[getSimpleString(data.metadata)]]</div>\n        </div>\n      </div>\n    </div>\n    <template is="dom-if" if="[[!data.title]]" class="style-scope ytd-ypc-offers-overlay-renderer">\n      <ytd-button-renderer class="dismiss-button style-scope ytd-ypc-offers-overlay-renderer" data="[[data.dismissButton.buttonRenderer]]" dialog-dismiss="true">\n      </ytd-button-renderer>\n    </template>\n  </div>\n  <yt-formatted-string class="info-section standard-text style-scope ytd-ypc-offers-overlay-renderer" text="[[data.additionalInfo]]">\n  </yt-formatted-string>\n\n  <div class="footer style-scope ytd-ypc-offers-overlay-renderer">\n    <div id="coupon" class="style-scope ytd-ypc-offers-overlay-renderer"></div>\n    <ytd-button-renderer id="help-button" data="[[data.helpButton.buttonRenderer]]" class="style-scope ytd-ypc-offers-overlay-renderer">\n    </ytd-button-renderer>\n  </div>\n</div>\n');a.content.insertBefore(_.w().content.cloneNode(!0),
a.content.firstChild);return p_E=a},{mode:_.Np("kevlar_poly_si_batch_j028")?1:2});var w_i;var mvV=function(){this.usedMethods=new Set};
mvV.prototype.add=function(a){this.usedMethods.add(a)};
mvV.prototype.reset=function(){this.usedMethods.clear()};var Mef=function(a,z){this.query=a;this.previousSearchQuery=z;this.id=yle++;if(!kfG){z=_.Xw("SBOX_SETTINGS");a="https://"+((z==null?void 0:z.SEARCHBOX_HOST_OVERRIDE)||"suggestqueries-clients6.youtube.com")+"/complete/search?ds=yt";var I=z==null?void 0:z.REQUEST_LANGUAGE;I&&(a+="&hl="+I);(I=z==null?void 0:z.REQUEST_DOMAIN)&&(a+="&gl="+I);a+="&client=youtube&gs_ri=youtube";(I=z==null?void 0:z.SUGG_EXP_ID)&&(a+="&sugexp="+encodeURIComponent(I));(I=z==null?void 0:z.PSUGGEST_TOKEN)&&(a+="&tok="+I);(z=
z==null?void 0:z.SESSION_INDEX)&&(a+="&authuser="+z);_.K("desktop_enable_visual_suggest")&&(a+="&h=180&w=320&ytvs=1");kfG=a}},clV=function(a){var z="q="+encodeURIComponent(a.query);
a.previousSearchQuery&&(z+="&pq="+encodeURIComponent(a.previousSearchQuery));return z},YCG=function(){var a=_.Xw("SBOX_SETTINGS"),z={};
if(a==null?0:a.SEND_VISITOR_DATA)z["X-Goog-Visitor-Id"]=a==null?void 0:a.VISITOR_DATA;return z},qCE=function(a){var z=kfG;
z+="&gs_id="+a.id.toString(36);z+="&q="+encodeURIComponent(a.query);z+="&cp="+a.query.length;a.previousSearchQuery&&(z+="&pq="+encodeURIComponent(a.previousSearchQuery));(a=window.URLSearchParams?(new URLSearchParams(window.location.search)).get("v"):null)&&(z+="&video_id="+a);return z},yle=0,kfG="";var eyV=_.Nx.SEARCH_ENTITY_SUGGESTION_ALBUM_NO_ARTIST,abz=_.Nx.SEARCH_ENTITY_SUGGESTION_MOVIE,jPZ=_.Nx.SEARCH_ENTITY_SUGGESTION_SONG_NO_ARTIST,zJY=_.Nx.SEARCH_ENTITY_SUGGESTION_TV_SHOW,IbZ=function(a,z){this.text=a;this.bold=z},J9Y=function(a,z,I){this.input=z;
this.index=I;this.text="";this.suggestionSources={COMPLETE_SERVER:1};this.text=a[0];this.type=a[1];this.subtypes=a[2];var J;this.displayText=s0((J=a[3])==null?void 0:J.b);var r;this.ignoredPrefix=s0((r=a[3])==null?void 0:r.a);var P,N;this.hasNewVideo=((P=a[3])==null?void 0:(N=P.zam)==null?void 0:N.toString())==="true"?!0:!1;var u;this.visualSuggestUrl=(u=a[3])==null?void 0:u.zai;var E;this.entityType=s0((E=a[3])==null?void 0:E.zap);var O;this.entityName=s0((O=a[3])==null?void 0:O.zao);var f;z=s0((f=
a[3])==null?void 0:f.zaf);var A;this.entityMid=(A=a[3])==null?void 0:A.zae;f=xpG(this.subtypes,this.entityMid);if(z&&f){if(z){A="";switch(f){case "YOUTUBE_ENTITY_TYPE_SONG":A=jPZ;break;case "YOUTUBE_ENTITY_TYPE_ALBUM":A=eyV;break;case "YOUTUBE_ENTITY_TYPE_TV_SHOW":A=zJY;break;case "YOUTUBE_ENTITY_TYPE_MOVIE":A=abz}f=f==="YOUTUBE_ENTITY_TYPE_SONG"||f==="YOUTUBE_ENTITY_TYPE_ALBUM"?A+" \u2022  \u2022 "+z:z}else f="";this.entitySubtitle=f}var n;this.externalChannelId=(n=a[3])==null?void 0:n.zav;var F;
this.entityThumbnailAttributionUrl=(F=a[3])==null?void 0:F.zaq},PMV=function(a,z){var I=[],J,r=(J=a.displayText)!=null?J:a.text;
(z==null?0:z.useEntityName)&&r9z(a)&&a.entityName&&(r=a.entityName);if(a.type===33)return I.push(new IbZ(r,!1)),I;if(r.length>=a.input.length&&r.substring(0,a.input.length)===a.input)I.push(new IbZ(a.input,!1)),I.push(new IbZ(r.substring(a.input.length),!0));else{var P=new Set(a.input.split(/\s/)),N=r.split(/\s/);I=N.map(function(u,E){return new IbZ(u.trim()+(E===N.length-1?"":" "),!P.has(u))})}return I},r9z=function(a){var z=!!xpG(a.subtypes);
a=!!a.entityMid;return z||a};var ZFZ=function(a){this.rawResponse=["",[],{}];this.suggestions=[];try{var z=JSON.parse(vNZ(a));if(typeof z==="object"&&z!==null)this.rawResponse=z;else{console.log("Suggest: Unexpected type from JSON.parse!");return}}catch(J){console.log("Suggest: Failed to parse SuggestResponse!");return}var I=this.rawResponse[0];this.suggestions=this.rawResponse[1].map(function(J,r){return new J9Y(J,I,r)})};var CM0=function(){this.sessionNumber=this.startTime=-1;this.outOfSyncResponseCount=0;this.zeroPrefixSuggestionCount=-1;this.availableSuggestions=[];this.previousSuggestions={};this.selectedSuggestionIndex=-1;this.inputMethodsTracker=new mvV;this.zeroPrefixRoundTripTime=this.maxRoundTripTime=this.JSC$20514_totalRoundTripTime=0;this.roundTripTimeHistogram=Array.from({length:10}).fill(0);this.lastEditTime=this.firstEditTime=this.lastQueryBuildTime=-1;this.experimentTriggeredBeforeFinal=this.experimentTriggeredFinal=
!1},N6G,tyZ=function(){N6G||(N6G=new CM0);
return N6G};
CM0.prototype.updateSuggestions=function(a){var z=this;this.availableSuggestions.forEach(function(I){z.previousSuggestions[I]=!0});
this.availableSuggestions=a.map(function(I){var J=I.type.toString();I.subtypes.length>0&&(J+="i"+I.subtypes.join("i"),J+="k"+I.suggestionSources.COMPLETE_SERVER.toString());return J})};
var uRE=function(a,z){var I=Date.now();a.firstEditTime<0&&(a.firstEditTime=I);z&&(a.lastQueryBuildTime=I);a.lastEditTime=I};
CM0.prototype.reset=function(){this.startTime=Date.now();++this.sessionNumber;this.inputMethodsTracker.reset();this.selectedSuggestionIndex=-1;this.maxRoundTripTime=this.JSC$20514_totalRoundTripTime=this.outOfSyncResponseCount=0;this.roundTripTimeHistogram.fill(0);this.zeroPrefixSuggestionCount=this.lastQueryBuildTime=this.lastEditTime=this.firstEditTime=-1};
var E1V=function(a){var z="";a.availableSuggestions.forEach(function(r){delete a.previousSuggestions[r]});
for(var I=_.C(Object.keys(a.previousSuggestions)),J=I.next();!J.done;J=I.next())J=J.value,a.previousSuggestions[J]&&(z+=(z?"j":"")+J);return z},B6M=function(a,z){var I=[];
z&&(I[1]=z.toString());I[0]="youtube";I[7]=Date.now()-a.startTime;I[6]=a.sessionNumber;a.zeroPrefixSuggestionCount>=0&&(I[33]=a.zeroPrefixSuggestionCount);I[13]=a.outOfSyncResponseCount;if(a.availableSuggestions.length>0){for(var J=z="",r=0,P=_.C(a.availableSuggestions),N=P.next();!N.done;N=P.next())N=N.value,N!==J&&(r>1&&(z+="l"+r),z+=(J?"j":"")+N,r=0,J=N),r+=1;r>1&&(z+="l"+r);I[3]=z}I[35]=E1V(a);a.selectedSuggestionIndex>=0&&(I[2]=a.selectedSuggestionIndex);var u;if(z=(u=_.Xw("SBOX_SETTINGS"))==
null?void 0:u.SUGG_EXP_ID)I[19]=a.normalize(z),u=0,a.experimentTriggeredBeforeFinal&&(u|=1),a.experimentTriggeredFinal&&(u|=2),I[20]=u;I[26]=Array.from(a.inputMethodsTracker.usedMethods).join("j");if(a.JSC$20514_totalRoundTripTime>0){I[15]=a.JSC$20514_totalRoundTripTime;I[14]=a.maxRoundTripTime;u=[];for(r=z=0;r<10;r++)J=a.roundTripTimeHistogram[r],J===0?z++:(z>1?u.push(r+"-"+J):z===1?u.push("0j"+J):u.push(J.toString()),z=0);u=u.join("j");I[16]=u}a.zeroPrefixRoundTripTime>0&&(I[36]=a.zeroPrefixRoundTripTime);
a.lastQueryBuildTime>0&&(I[18]=a.lastQueryBuildTime-a.startTime);a.firstEditTime>0&&(I[4]=a.firstEditTime-a.startTime);a.lastEditTime>0&&(I[5]=a.lastEditTime-a.startTime);return I.join(".")};
CM0.prototype.normalize=function(a){return a.replaceAll(".","-")};
var g1E=[0,1,2,3,4,5,5,6,6,6,7,7,7,7,7,8,8,8,8,8];var eV=function(){var a=_.G.apply(this,arguments)||this;a.microphoneSpinnerActive=!1;a.noAnimations=!1;a.boundExitClick=function(){a.onExitButtonClick()};
a.speechOverlayClassName="";a.isLevelAnimating=!1;a.playCloseDialogAudioFeedback=!0;a.actionMap={"yt-speech-query-complete-action":"handleSpeechQueryCompleteAction"};return a};
_.b(eV,_.G);_.Z=eV.prototype;_.Z.configureRendererStamper=function(){return{"data.exitButton":{id:"exit-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{"on-tap":"[[boundExitClick]]"}}}}}};
_.Z.attached=function(){this.hostElement.setAttribute("dialog","true");this.manager=yrM()};
_.Z.dataChanged=function(){this.logDialog()};
_.Z.onPopupClosed=function(){if(this.manager){this.manager.reset();if(!this.playCloseDialogAudioFeedback){var a;(a=this.manager.audioPlayer)!=null&&(a.JSC$19820_audioEnabled=!1)}this.manager.stop();(a=this.manager.audioPlayer)!=null&&(a.JSC$19820_audioEnabled=!0);this.playCloseDialogAudioFeedback=!0}};
_.Z.handleSpeechQueryCompleteAction=function(a){var z=a.navigationAction;z&&(a.trackingParams&&_.Kw().graftServerVe(a.trackingParams,this.dialogVe,5),_.PA(this.hostElement,"yt-navigate",{endpoint:z,tempData:this.getNavigationParams(z),createScreenConfig:{parentLayer:5}}),this.playCloseDialogAudioFeedback=!1,this.closeDialog())};
_.Z.onExitButtonClick=function(){this.closeDialog()};
_.Z.onMicrophoneTap=function(){if(this.state==="listening"||this.state==="transcribing"){var a;if((a=this.manager)!=null){var z;(z=a.audioPlayer)==null||zM(z,"failure");a.setState("microphone-off");a.stop()}}else(a=this.manager)==null||a.start()};
_.Z.transcriptionChanged=function(){var a,z;(((a=this.transcription)==null?0:a.low)||((z=this.transcription)==null?0:z.high))&&this.setState("transcribing",this.transcription)};
_.Z.stateChanged=function(){this.setState(this.state,this.transcription)};
_.Z.logDialog=function(){var a;(a=this.data)!=null&&a.trackingParams&&(a=_.Kw(),_.fJ(a,22678,void 0,{layer:5,parentLayer:0}),this.dialogVe=a.graftServerVe(this.data.trackingParams,void 0,5))};
_.Z.getNavigationParams=function(a){var z={};if(_.K("web_yt_searchbox")){var I=tyZ();I.inputMethodsTracker.add(6);I=B6M(I,15);z.gs_l=I;var J;z.oq=((J=_.H(a,_.Fb))==null?void 0:J.query)||""}else if(a=window.ytvoicesearchloggingparams){if(a=a())z.oq=a.oq,z.gs_l=a.gs_l}else _.RL(Error("ql"));return z};
_.Z.closeDialog=function(){_.ZF(this.hostElement,"yt-close-popup-action",["ytd-voice-search-dialog-renderer"])};
_.Z.setState=function(a,z){if(this.data){var I=this.data,J={};switch(a){case "listening":J={headerText:I.placeholderHeader,microphoneState:"listening",microphoneAriaLabel:I.microphoneButtonAriaLabel};break;case "timeout":J={headerText:I.promptHeader,microphoneState:"try-again",microphoneLabel:I.promptMicrophoneLabel,microphoneAriaLabel:I.promptMicrophoneLabel};break;case "microphone-off":J={headerText:I.microphoneOffPromptHeader,microphoneState:"try-again",microphoneLabel:I.promptMicrophoneLabel,
microphoneAriaLabel:I.promptMicrophoneLabel};break;case "transcribing":(z==null?0:z.low)||(z==null?0:z.high)?J={transcriptionLow:z==null?void 0:z.low,transcriptionHigh:z==null?void 0:z.high,microphoneState:"speaking",microphoneAriaLabel:I.microphoneButtonAriaLabel}:J={headerText:I.placeholderHeader,microphoneState:"speaking",microphoneAriaLabel:I.microphoneButtonAriaLabel};break;case "processing":J={headerText:I.loadingHeader,microphoneState:"processing",microphoneAriaLabel:I.microphoneButtonAriaLabel};
break;case "offline":J={headerText:I.connectionErrorHeader,microphoneState:"try-again",microphoneLabel:I.connectionErrorMicrophoneLabel,microphoneAriaLabel:I.connectionErrorMicrophoneLabel};break;case "permission":J={headerText:I.permissionsHeader,bodyLine1:I.permissionsSubtext,microphoneState:"try-again",microphoneAriaLabel:I.permissionsSubtext};break;case "permission-denied":J={headerText:I.disabledHeader,bodyLine1:I.disabledSubtext,microphoneState:"try-again",microphoneAriaLabel:I.disabledSubtext}}J.className=
a;this.speechOverlayState=J;this.setClass(this.speechOverlayState.className);this.setMicrophoneState(this.speechOverlayState.microphoneState)}};
_.Z.setMicrophoneState=function(a){var z=this.isLevelAnimating;this.isLevelAnimating=a==="speaking";!z&&this.isLevelAnimating&&this.runLevelAnimation();this.microphoneSpinnerActive=a==="processing"&&!this.noAnimations};
_.Z.setClass=function(a){this.speechOverlayClassName&&_.CM(this.hostElement,this.speechOverlayClassName,!1);a&&(this.speechOverlayClassName=a,_.CM(this.hostElement,a,!0))};
_.Z.runLevelAnimation=function(){var a=this;if(!this.noAnimations&&this.level)if(this.isLevelAnimating){var z=1+Math.random()*.75,I=Math.round(110+Math.random()*10);this.level.style.setProperty("transition","transform "+I/1E3+"s ease-in-out");this.level.style.setProperty("transform","scale("+z+")");_.GW.addJob(function(){a.runLevelAnimation()},3,I)}else this.level.style.removeProperty("opacity"),this.level.style.removeProperty("transition"),this.level.style.removeProperty("transform")};
eV.prototype.stateChanged=eV.prototype.stateChanged;eV.prototype.transcriptionChanged=eV.prototype.transcriptionChanged;eV.prototype.onPopupClosed=eV.prototype.onPopupClosed;eV.prototype.dataChanged=eV.prototype.dataChanged;_.L([_.Q(_.Hc.YtActionHandlerBehavior),_.p("design:type",Object)],eV.prototype,"ytActionHandlerBehavior",void 0);_.L([_.Q(_.k.YtRendererBehavior),_.p("design:type",Object)],eV.prototype,"ytRendererBehavior",void 0);
_.L([_.Q(_.u4.YtRendererstamperBehavior),_.p("design:type",Object)],eV.prototype,"rendererStamperBehavior",void 0);_.L([_.Q(_.pV),_.p("design:type",Object)],eV.prototype,"ytdReduxBehavior",void 0);_.L([_.Q(_.iO.YtEventForwardingBehavior),_.p("design:type",Object)],eV.prototype,"eventForwardingBehavior",void 0);_.L([_.x(),_.p("design:type",Object)],eV.prototype,"data",void 0);_.L([_.x(),_.p("design:type",Object)],eV.prototype,"speechOverlayState",void 0);
_.L([_.x(),_.p("design:type",Object)],eV.prototype,"microphoneSpinnerActive",void 0);_.L([_.x({type:_.K("kevlar_property_type_migration_killswitch")?Boolean:void 0,reflectToAttribute:!0}),_.p("design:type",Object)],eV.prototype,"noAnimations",void 0);_.L([_.x({selector:function(a){var z;return(z=a.voiceSearch)==null?void 0:z.transcription}}),
_.p("design:type",Object)],eV.prototype,"transcription",void 0);_.L([_.x({selector:function(a){var z;return(z=a.voiceSearch)==null?void 0:z.overlay}}),
_.p("design:type",String)],eV.prototype,"state",void 0);_.L([_.x(),_.p("design:type",Object)],eV.prototype,"boundExitClick",void 0);_.L([_.A3("#microphone-levels"),_.p("design:type",HTMLElement)],eV.prototype,"level",void 0);_.L([_.O8("data"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],eV.prototype,"dataChanged",null);_.L([_.gz("yt-popup-closed"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],eV.prototype,"onPopupClosed",null);
_.L([_.Fe("transcription"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],eV.prototype,"transcriptionChanged",null);_.L([_.Fe("state"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],eV.prototype,"stateChanged",null);_.L([_.U({disableElementRegistration:!0,is:"ytd-voice-search-dialog-renderer"})],eV);
_.D(eV,"ytd-voice-search-dialog-renderer",function(){if(w_i!==void 0)return w_i;var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-voice-search-dialog-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-voice-search-dialog-renderer">\n  <div id="header-text" class="style-scope ytd-voice-search-dialog-renderer">\n    <div id="prompt" hidden="[[!speechOverlayState.headerText]]" class="style-scope ytd-voice-search-dialog-renderer">\n      [[getSimpleString(speechOverlayState.headerText)]]\n    </div>\n    <div id="transcription-high" class="style-scope ytd-voice-search-dialog-renderer">[[speechOverlayState.transcriptionHigh]]</div>\n    <div id="transcription-low" class="style-scope ytd-voice-search-dialog-renderer">[[speechOverlayState.transcriptionLow]]</div>\n  </div>\n  <div id="exit-button" class="style-scope ytd-voice-search-dialog-renderer"></div>\n</div>\n<div id="body" class="style-scope ytd-voice-search-dialog-renderer">\n  <div class="body-line style-scope ytd-voice-search-dialog-renderer">[[getSimpleString(speechOverlayState.bodyLine1)]]</div>\n  <div class="body-line style-scope ytd-voice-search-dialog-renderer">[[getSimpleString(speechOverlayState.bodyLine2)]]</div>\n</div>\n<div id="microphone" state$="[[speechOverlayState.microphoneState]]" class="style-scope ytd-voice-search-dialog-renderer">\n  <tp-yt-paper-spinner-lite active="[[microphoneSpinnerActive]]" class="style-scope ytd-voice-search-dialog-renderer">\n  </tp-yt-paper-spinner-lite>\n  <div id="microphone-container" class="style-scope ytd-voice-search-dialog-renderer">\n    <div id="microphone-pulse" class="style-scope ytd-voice-search-dialog-renderer"></div>\n    <div id="microphone-levels" class="style-scope ytd-voice-search-dialog-renderer"></div>\n    <div id="microphone-circle" aria-label$="[[getSimpleString(speechOverlayState.microphoneAriaLabel)]]" role="button" tabindex="0" on-tap="onMicrophoneTap" class="style-scope ytd-voice-search-dialog-renderer">\n      <tp-yt-paper-ripple class="style-scope ytd-voice-search-dialog-renderer"></tp-yt-paper-ripple>\n      <yt-icon icon="yt-icons:microphone_on" class="style-scope ytd-voice-search-dialog-renderer"></yt-icon>\n    </div>\n  </div>\n  <div id="microphone-label" class="style-scope ytd-voice-search-dialog-renderer">[[getSimpleString(speechOverlayState.microphoneLabel)]]</div>\n</div>\n');a.content.insertBefore(_.w().content.cloneNode(!0),
a.content.firstChild);return w_i=a},{mode:1});var OFZ;var aV=function(){var a=_.G.apply(this,arguments)||this;a.isOverlay=!1;a.hidden=!1;return a};
_.b(aV,_.G);_.Z=aV.prototype;_.Z.onPopupClosed=function(){this.toggleIconState(!1)};
_.Z.computeIcon=function(){var a,z,I;return(z=_.H((a=this.data)==null?void 0:a.icon,QTM))==null?void 0:(I=z.icon)==null?void 0:I.iconType};
_.Z.computeIconBadgeShape=function(){var a;return{iconBadgeType:"cart",iconBadgeText:(a=this.iconBadgeEntity)==null?void 0:a.badgeText,iconBadgeStyle:this.isOverlay?"overlay":"mono"}};
_.Z.onClick=function(){var a;(a=this.data)!=null&&a.onClick&&(this.toggleIconState(!0),this.ytComponentBehavior.resolveCommand(this.data.onClick))};
_.Z.computeHidden=function(a){return!a};
_.Z.toggleIconState=function(a){this.iconButton&&(this.iconButton.pressed=a)};
aV.prototype.onPopupClosed=aV.prototype.onPopupClosed;_.L([_.Q(_.pV),_.p("design:type",Object)],aV.prototype,"ytdReduxBehavior",void 0);_.L([_.Q(_.k.YtRendererBehavior),_.p("design:type",Object)],aV.prototype,"ytRendererBehavior",void 0);_.L([_.Q(_.Ms.YtComponentBehavior),_.p("design:type",Object)],aV.prototype,"ytComponentBehavior",void 0);_.L([_.x(),_.p("design:type",Object)],aV.prototype,"data",void 0);_.L([_.x(),_.p("design:type",Object)],aV.prototype,"isOverlay",void 0);
_.L([_.x({computed:"computeHidden(iconBadgeEntity.isVisible)",reflectToAttribute:!0}),_.p("design:type",Object)],aV.prototype,"hidden",void 0);_.L([_.x({selectorArgs:["data.iconBadgeEntityKey"],selector:function(a,z){return _.Bd(a.entities,"iconBadgeEntity",z)}}),
_.p("design:type",Object)],aV.prototype,"iconBadgeEntity",void 0);_.L([_.A3("yt-icon-button"),_.p("design:type",HTMLButtonElement)],aV.prototype,"iconButton",void 0);_.L([_.gz("yt-popup-closed"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],aV.prototype,"onPopupClosed",null);_.L([_.U({disableElementRegistration:!0,is:"ytd-icon-badge-topbar-button-renderer"})],aV);
_.D(aV,"ytd-icon-badge-topbar-button-renderer",function(){if(OFZ!==void 0)return OFZ;var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-icon-badge-topbar-button-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-icon-button id="icon" label="[[data.accessibilityData.accessibilityData.label]]" on-click="onClick" class="style-scope ytd-icon-badge-topbar-button-renderer">\n  <yt-icon-badge-shape data="[[computeIconBadgeShape(iconBadgeEntity, isOverlay)]]" icon="[[computeIcon(data)]]" class="style-scope ytd-icon-badge-topbar-button-renderer">\n  </yt-icon-badge-shape>\n</yt-icon-button>\n<tp-yt-paper-tooltip class="style-scope ytd-icon-badge-topbar-button-renderer">[[data.tooltip]]</tp-yt-paper-tooltip>\n');
a.content.insertBefore(_.w().content.cloneNode(!0),a.content.firstChild);return OFZ=a},{mode:1});var fbG;var js=function(){var a=_.G.apply(this,arguments)||this;a.premiumOptions=[];a.darkerDarkTheme=_.K("web_darker_dark_theme");return a};
_.b(js,_.G);js.prototype.configureRendererStamper=function(){return{premiumOptions:{id:"premium-options",mapping:{settingsRadioOptionRenderer:{component:"ytd-settings-radio-option-renderer",noInjection:!0}}}}};
_.eH.Object.defineProperties(js.prototype,{hasPremiumOptions:{configurable:!0,enumerable:!0,get:function(){return!!this.premiumOptions}}});
_.L([_.Q(_.u4.YtRendererstamperBehavior),_.p("design:type",Object)],js.prototype,"ytRendererstamperBehavior",void 0);_.L([_.x(),_.p("design:type",Object)],js.prototype,"data",void 0);_.L([_.x(),_.p("design:type",Array)],js.prototype,"premiumOptions",void 0);_.L([_.x({reflectToAttribute:!0}),_.p("design:type",Object)],js.prototype,"darkerDarkTheme",void 0);_.L([_.S("premiumOptions"),_.p("design:type",Object),_.p("design:paramtypes",[])],js.prototype,"hasPremiumOptions",null);
_.L([_.U({disableElementRegistration:!0,is:"ytd-offline-promo-content"})],js);
_.D(js,"ytd-offline-promo-content",function(){if(fbG!==void 0)return fbG;var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-offline-promo-content--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-formatted-string id="subtitle" text="[[data.subtitle]]" class="style-scope ytd-offline-promo-content"></yt-formatted-string>\n<div id="premium-options" hidden="[[!hasPremiumOptions]]" class="style-scope ytd-offline-promo-content"></div>\n<yt-formatted-string id="description" hidden="[[!data.description]]" text="[[data.description]]" class="style-scope ytd-offline-promo-content"></yt-formatted-string>\n');a.content.insertBefore(_.w().content.cloneNode(!0),
a.content.firstChild);return fbG=a},{mode:1});var A9z;var zi=function(){var a=_.G.apply(this,arguments)||this;a.premiumOptions=[];return a};
_.b(zi,_.G);zi.prototype.dataChanged=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");var a;this.premiumOptions=iwz((a=this.data)==null?void 0:a.formats)};
zi.prototype.onClickSubmit=function(){_.ZF(this.hostElement,"yt-close-popup-action",["ytd-offline-promo-renderer"]);var a;(a=_.zI())==null||a.pause()};
zi.prototype.attached=function(){this.JSC$20534_scroller&&(this.JSC$20534_scroller.dialogElement=this.hostElement.parentNode)};
_.eH.Object.defineProperties(zi.prototype,{showIcon:{configurable:!0,enumerable:!0,get:function(){return this.headersIcon}}});
zi.prototype.dataChanged=zi.prototype.dataChanged;_.L([_.Q(_.u4.YtRendererstamperBehavior),_.p("design:type",Object)],zi.prototype,"ytRendererstamperBehavior",void 0);_.L([_.Q(_.Ms.YtComponentBehavior),_.p("design:type",Object)],zi.prototype,"ytComponentBehavior",void 0);_.L([_.Q(_.k.YtRendererBehavior),_.p("design:type",Object)],zi.prototype,"ytRendererBehavior",void 0);_.L([_.x(),_.p("design:type",Object)],zi.prototype,"data",void 0);
_.L([_.x({computed:"computeIcon_(data.headersIcon)",value:""}),_.p("design:type",String)],zi.prototype,"headersIcon",void 0);_.L([_.x(),_.p("design:type",Array)],zi.prototype,"premiumOptions",void 0);_.L([_.A3("#scroller"),_.p("design:type",Object)],zi.prototype,"JSC$20534_scroller",void 0);_.L([_.S("headersIcon"),_.p("design:type",Object),_.p("design:paramtypes",[])],zi.prototype,"showIcon",null);
_.L([_.Fe("data"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],zi.prototype,"dataChanged",null);_.L([_.U({disableElementRegistration:!0,is:"ytd-offline-promo-renderer"})],zi);
_.D(zi,"ytd-offline-promo-renderer",function(){if(A9z!==void 0)return A9z;var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-offline-promo-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<tp-yt-paper-dialog-scrollable id="scroller" class="style-scope ytd-offline-promo-renderer">\n<div id="container" class="style-scope ytd-offline-promo-renderer">\n<yt-icon id="headers-icon" hidden="[[!showIcon]]" icon="[[headersIcon]]" class="style-scope ytd-offline-promo-renderer"></yt-icon>\n<yt-formatted-string id="title" text="[[data.title]]" class="style-scope ytd-offline-promo-renderer"></yt-formatted-string>\n<ytd-offline-promo-content data="[[data]]" premium-options="[[premiumOptions]]" class="style-scope ytd-offline-promo-renderer">\n</ytd-offline-promo-content>\n<div class="buttons style-scope ytd-offline-promo-renderer">\n  <yt-button-renderer id="dismiss-button" data="[[data.dismissButton.buttonRenderer]]" class="style-scope ytd-offline-promo-renderer">\n  </yt-button-renderer>\n  <yt-button-renderer id="action-button" data="[[data.actionButton.buttonRenderer]]" on-click="onClickSubmit" class="style-scope ytd-offline-promo-renderer">\n  </yt-button-renderer>\n</div>\n</div>\n</tp-yt-paper-dialog-scrollable>\n');a.content.insertBefore(_.w().content.cloneNode(!0),
a.content.firstChild);return A9z=a},{mode:1});var sPZ;var IV=function(){var a=_.G.apply(this,arguments)||this;a.playbackPauseInterval=NaN;a.isLoading=!1;a.hasError=!1;a.dialogClass="";a.youtubeLabel=_.AR("LOGO_ALT_LABEL",{},"YouTube Home");a.logoName="yt-logos-ext:yt-logo-updated";a.actionMap={"yt-save-consent-action":"handleSaveConsent","yt-disable-personalization-action":"handleDisablePersonalization"};return a};
_.b(IV,_.G);_.Z=IV.prototype;_.Z.onDataChange=function(){var a;if(this.showEOMV1Text=!((a=this.data)==null||!a.eomV1Text))this.dialogClass="eom-v1-dialog"};
_.Z.attached=function(){this.pausePlayer()};
_.Z.detached=function(){this.playbackPauseInterval&&(window.clearInterval(this.playbackPauseInterval),this.playbackPauseInterval=NaN)};
_.Z.handleLangSelect=function(a){this.langSelect.style.display="none";this.ytComponentBehavior.resolveCommand(this.data.languageList.dropdownRenderer.entries[a.target.selectedIndex].dropdownItemRenderer.onSelectCommand)};
_.Z.showLangPicker=function(){this.langSelect.style.display=this.langSelect.style.display&&this.langSelect.style.display!=="none"?"none":"block"};
_.Z.handleSaveConsent=function(a){var z=this;this.showLoadingSpinner();this.showLoadingSpinner();tlE(_.H(a,S4Z)).catch(function(I){_.Xd(new _.Fn("Something went wrong when save consent "+(I.message?I.message:I)+"."));z.hideLoadingSpinner();z.showErrorMessage()})};
_.Z.handleDisablePersonalization=function(a){var z=this;this.showLoadingSpinner();uZY(_.H(a,QDz)).then(function(){z.dialog.close();z.resumePlayer()}).catch(function(I){_.Xd(new _.Fn("Something went wrong when disable personalization "+(I.message?I.message:I)+"."));
z.hideLoadingSpinner();z.showErrorMessage()})};
_.Z.showLoadingSpinner=function(){var a=this;this.showSpinnerJobId=_.GW.addLowPriorityJob(function(){a.isLoading=!0},500)};
_.Z.hideLoadingSpinner=function(){this.isLoading=!1;this.showSpinnerJobId!==void 0&&(_.GW.cancelJob(this.showSpinnerJobId),this.showSpinnerJobId=void 0)};
_.Z.showErrorMessage=function(){var a=this;this.hasError=!0;_.GW.addLowPriorityJob(function(){a.hasError=!1},2E3)};
_.Z.pausePlayer=function(){this.playbackPauseInterval||(this.playbackPauseInterval=_.Ne(function(){try{var a=_.zI();a&&a.pause()}catch(z){}},100))};
_.Z.resumePlayer=function(){this.playbackPauseInterval&&(window.clearInterval(this.playbackPauseInterval),this.playbackPauseInterval=NaN);try{var a=_.zI();a&&a.play()}catch(z){}};
_.eH.Object.defineProperties(IV.prototype,{eomEssentialCookieMsgItems:{configurable:!0,enumerable:!0,get:function(){var a;if((a=this.data)==null||!a.eomV1Text)return[];a=[];for(var z=["SHIELD","WARNING","BAR_CHART"],I=this.data.eomV1Text.essentialCookieMsg.items,J=0;J<z.length&&J<I.length;J++)a.push({icon:z[J],text:I[J]});return a}},
eomNonEssentialCookieMsgItems:{configurable:!0,enumerable:!0,get:function(){var a;if((a=this.data)==null||!a.eomV1Text)return[];a=[];for(var z=["TRENDING_UP","BAR_CHART","AUTO_AWESOME","PURCHASES"],I=this.data.eomV1Text.nonEssentialCookieMsg.items,J=0;J<z.length&&J<I.length;J++)a.push({icon:z[J],text:I[J]});return a}}});
IV.prototype.onDataChange=IV.prototype.onDataChange;_.L([_.x(),_.p("design:type",Object)],IV.prototype,"data",void 0);_.L([_.x(),_.p("design:type",Boolean)],IV.prototype,"showEOMV1Text",void 0);_.L([_.x(),_.p("design:type",Object)],IV.prototype,"isLoading",void 0);_.L([_.x(),_.p("design:type",Object)],IV.prototype,"hasError",void 0);_.L([_.x(),_.p("design:type",Number)],IV.prototype,"showSpinnerJobId",void 0);_.L([_.x(),_.p("design:type",Object)],IV.prototype,"dialogClass",void 0);
_.L([_.A3("#dialog"),_.p("design:type",Object)],IV.prototype,"dialog",void 0);_.L([_.A3("#cb-header"),_.p("design:type",HTMLElement)],IV.prototype,"header",void 0);_.L([_.A3("#lang-select"),_.p("design:type",HTMLElement)],IV.prototype,"langSelect",void 0);_.L([_.Q(_.Hc.YtActionHandlerBehavior),_.p("design:type",Object)],IV.prototype,"ytActionHandlerBehavior",void 0);_.L([_.Q(_.Ms.YtComponentBehavior),_.p("design:type",Object)],IV.prototype,"ytComponentBehavior",void 0);
_.L([_.x(),_.p("design:type",String)],IV.prototype,"youtubeLabel",void 0);_.L([_.x(),_.p("design:type",Object)],IV.prototype,"logoName",void 0);_.L([_.Fe("data"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],IV.prototype,"onDataChange",null);_.L([_.S("data"),_.p("design:type",Array),_.p("design:paramtypes",[])],IV.prototype,"eomEssentialCookieMsgItems",null);
_.L([_.S("data"),_.p("design:type",Array),_.p("design:paramtypes",[])],IV.prototype,"eomNonEssentialCookieMsgItems",null);_.L([_.U({disableElementRegistration:!0,is:"ytd-consent-bump-v2-lightbox"})],IV);
_.D(IV,"ytd-consent-bump-v2-lightbox",function(){if(sPZ!==void 0)return sPZ;var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-consent-bump-v2-lightbox--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<tp-yt-paper-dialog id="dialog" class$="[[dialogClass]] style-scope ytd-consent-bump-v2-lightbox" aria-labelledby="cb-header" modal="">\n  <div class="loading-overlay style-scope ytd-consent-bump-v2-lightbox" hidden="[[!isLoading]]">\n    <div class="style-scope ytd-consent-bump-v2-lightbox">\n      <tp-yt-paper-spinner-lite active="[[isLoading]]" class="style-scope ytd-consent-bump-v2-lightbox"></tp-yt-paper-spinner-lite>\n    </div>\n    <yt-formatted-string class="loading-message style-scope ytd-consent-bump-v2-lightbox" text="[[data.loadingMessage]]">\n    </yt-formatted-string>\n  </div>\n  <div class="error-overlay style-scope ytd-consent-bump-v2-lightbox" hidden="[[!hasError]]">\n    <div class="error-message style-scope ytd-consent-bump-v2-lightbox">\n      <yt-formatted-string text="[[data.errorMessage]]" class="style-scope ytd-consent-bump-v2-lightbox"></yt-formatted-string>\n    </div>\n  </div>\n  <div id="topbar" class="style-scope ytd-consent-bump-v2-lightbox">\n    <div id="logoandaside" class="style-scope ytd-consent-bump-v2-lightbox">\n      <div id="icon-container" class="style-scope ytd-consent-bump-v2-lightbox">\n        <yt-icon id="logo-icon" icon="[[logoName]]" class="style-scope ytd-consent-bump-v2-lightbox">\n        </yt-icon>\n      </div>\n      <yt-formatted-string class="logo-aside style-scope ytd-consent-bump-v2-lightbox" text="[[data.interstitialLogoAside]]"></yt-formatted-string>\n    </div>\n    <div class="top-buttons style-scope ytd-consent-bump-v2-lightbox">\n      <div class="lang-picker-container style-scope ytd-consent-bump-v2-lightbox">\n        <div class="style-scope ytd-consent-bump-v2-lightbox">\n          <ytd-button-renderer data="[[data.languagePickerButton.buttonRenderer]]" on-click="showLangPicker" class="style-scope ytd-consent-bump-v2-lightbox"></ytd-button-renderer>\n        </div>\n        <div id="lang-select" class="style-scope ytd-consent-bump-v2-lightbox">\n          <select size="20" on-change="handleLangSelect" class="style-scope ytd-consent-bump-v2-lightbox">\n            <template is="dom-repeat" items="[[data.languageList.dropdownRenderer.entries]]" class="style-scope ytd-consent-bump-v2-lightbox">\n              <template is="dom-if" if="[[item.dropdownItemRenderer.isSelected]]" class="style-scope ytd-consent-bump-v2-lightbox">\n                <option selected="" class="style-scope ytd-consent-bump-v2-lightbox">\n                  <yt-formatted-string text="[[item.dropdownItemRenderer.label]]" class="style-scope ytd-consent-bump-v2-lightbox">\n                  </yt-formatted-string>\n                </option>\n              </template>\n              <template is="dom-if" if="[[!item.dropdownItemRenderer.isSelected]]" class="style-scope ytd-consent-bump-v2-lightbox">\n                <option class="style-scope ytd-consent-bump-v2-lightbox">\n                  <yt-formatted-string text="[[item.dropdownItemRenderer.label]]" class="style-scope ytd-consent-bump-v2-lightbox">\n                  </yt-formatted-string>\n                </option>\n              </template>\n            </template>\n          </select>\n        </div>\n      </div>\n\n      <div class="style-scope ytd-consent-bump-v2-lightbox">\n        <ytd-button-renderer class="signin style-scope ytd-consent-bump-v2-lightbox" data="[[data.signInButton.buttonRenderer]]"></ytd-button-renderer>\n      </div>\n    </div>\n  </div>\n  <div id="content" class="style-scope ytd-consent-bump-v2-lightbox">\n    <template is="dom-if" if="[[showEOMV1Text]]" restamp="" class="style-scope ytd-consent-bump-v2-lightbox">\n      <h2 tabindex="-1" id="cb-header" class="eom-title style-scope ytd-consent-bump-v2-lightbox">\n        <yt-formatted-string text="[[data.interstitialTitle]]" class="style-scope ytd-consent-bump-v2-lightbox"></yt-formatted-string>\n      </h2>\n      <div class="ica-claimer style-scope ytd-consent-bump-v2-lightbox" hidden="[[!data.icaClaimer]]">\n        <yt-formatted-string text="[[data.icaClaimer]]" class="style-scope ytd-consent-bump-v2-lightbox"> </yt-formatted-string>\n      </div>\n      <div class="body style-scope ytd-consent-bump-v2-lightbox">\n        <div class="style-scope ytd-consent-bump-v2-lightbox">\n          <div class="legal-text style-scope ytd-consent-bump-v2-lightbox">\n            <yt-formatted-string text="[[data.eomV1Text.essentialCookieMsg.begin]]" class="style-scope ytd-consent-bump-v2-lightbox">\n            </yt-formatted-string>\n          </div>\n          <ul class="style-scope ytd-consent-bump-v2-lightbox">\n            <template is="dom-repeat" items="[[eomEssentialCookieMsgItems]]" class="style-scope ytd-consent-bump-v2-lightbox">\n              <li class="icon-li style-scope ytd-consent-bump-v2-lightbox">\n                <yt-icon class="item-icon style-scope ytd-consent-bump-v2-lightbox" icon="[[item.icon]]"></yt-icon>\n                <div class="style-scope ytd-consent-bump-v2-lightbox">\n                  <yt-formatted-string text="[[item.text]]" class="style-scope ytd-consent-bump-v2-lightbox"></yt-formatted-string>\n                </div>\n              </li>\n            </template>\n          </ul>\n        </div>\n        <div class="style-scope ytd-consent-bump-v2-lightbox">\n          <div class="legal-text style-scope ytd-consent-bump-v2-lightbox">\n            <yt-formatted-string text="[[data.eomV1Text.nonEssentialCookieMsg.begin]]" class="style-scope ytd-consent-bump-v2-lightbox"></yt-formatted-string>\n          </div>\n          <ul class="style-scope ytd-consent-bump-v2-lightbox">\n            <template is="dom-repeat" items="[[eomNonEssentialCookieMsgItems]]" class="style-scope ytd-consent-bump-v2-lightbox">\n              <li class="icon-li style-scope ytd-consent-bump-v2-lightbox">\n                <yt-icon class="item-icon style-scope ytd-consent-bump-v2-lightbox" icon="[[item.icon]]"></yt-icon>\n                <div class="style-scope ytd-consent-bump-v2-lightbox">\n                  <yt-formatted-string text="[[item.text]]" class="style-scope ytd-consent-bump-v2-lightbox"></yt-formatted-string>\n                </div>\n              </li>\n            </template>\n          </ul>\n        </div>\n        <div class="legal-text style-scope ytd-consent-bump-v2-lightbox">\n          <yt-formatted-string text="[[data.eomV1Text.ifReject]]" class="style-scope ytd-consent-bump-v2-lightbox"></yt-formatted-string>\n        </div>\n        <div class="legal-text style-scope ytd-consent-bump-v2-lightbox">\n          <yt-formatted-string text="[[data.eomV1Text.personalization]]" class="style-scope ytd-consent-bump-v2-lightbox"></yt-formatted-string>\n        </div>\n        <div class="legal-text style-scope ytd-consent-bump-v2-lightbox">\n          <yt-formatted-string text="[[data.eomV1Text.moreOptions]]" class="style-scope ytd-consent-bump-v2-lightbox"></yt-formatted-string>\n        </div>\n        <div class="eom-buttons style-scope ytd-consent-bump-v2-lightbox">\n          <div class="eom-button-row style-scope ytd-consent-bump-v2-lightbox">\n            <ytd-button-renderer data="[[data.disableP13nButton.buttonRenderer]]" class="style-scope ytd-consent-bump-v2-lightbox"></ytd-button-renderer>\n            <ytd-button-renderer data="[[data.agreeButton.buttonRenderer]]" class="style-scope ytd-consent-bump-v2-lightbox"></ytd-button-renderer>\n          </div>\n          <div class="eom-button-row style-scope ytd-consent-bump-v2-lightbox">\n            <ytd-button-renderer data="[[data.customizeButton.buttonRenderer]]" class="style-scope ytd-consent-bump-v2-lightbox"></ytd-button-renderer>\n          </div>\n        </div>\n        <div class="termlinks style-scope ytd-consent-bump-v2-lightbox">\n          <yt-formatted-string class="link style-scope ytd-consent-bump-v2-lightbox" link-inherit-color="" sec="" text="[[data.privacyLink]]"></yt-formatted-string>\n          \n          \n          <span class="term_separator style-scope ytd-consent-bump-v2-lightbox" aria-hidden="true">\u2022</span>\n          <yt-formatted-string class="link style-scope ytd-consent-bump-v2-lightbox" link-inherit-color="" text="[[data.termsLink]]"></yt-formatted-string>\n        </div>\n      </div>\n    </template>\n  </div>\n</tp-yt-paper-dialog>\n');a.content.insertBefore(_.w().content.cloneNode(!0),
a.content.firstChild);return sPZ=a},{mode:1});var n14;var JZ=function(){return _.G.apply(this,arguments)||this};
_.b(JZ,_.G);JZ.prototype.ready=function(){if(!_.sz()||ROE)var a=!0;else ROE=!0,a=!1;a||(a=document.querySelector("ytd-app"),a||(a=document.body),this.internalLightBox=_.PK(a).appendChild(this.lightBox),this.internalLightBox.dialog.open())};
_.L([_.x(),_.p("design:type",Object)],JZ.prototype,"data",void 0);_.L([_.A3("#lightbox"),_.p("design:type",Object)],JZ.prototype,"lightBox",void 0);_.L([_.U({disableElementRegistration:!0,is:"ytd-consent-bump-v2-renderer"})],JZ);
_.D(JZ,"ytd-consent-bump-v2-renderer",function(){if(n14!==void 0)return n14;var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-consent-bump-v2-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<ytd-consent-bump-v2-lightbox id="lightbox" data="[[data]]" class="style-scope ytd-consent-bump-v2-renderer"></ytd-consent-bump-v2-lightbox>');a.content.insertBefore(_.w().content.cloneNode(!0),
a.content.firstChild);return n14=a},{mode:1});var KeZ;var Fe0;var HF4;var r5=function(){return _.G.apply(this,arguments)||this};
_.b(r5,_.G);_.Z=r5.prototype;_.Z.toastOpenedChanged=function(){this.toastManager&&this.hasOpened&&this.toast&&!this.toast.opened&&this.toastType!==1&&k0V(this.toastManager,this.toastType)};
_.Z.open=function(a){this.toast&&(this.ephemeralAction&&_.ab().resolve(_.xn).enqueue(this.ephemeralAction),this.hasOpened=!0,this.toastManager?(this.toastType=a!=null?a:0,this.toastManager.enqueue(this.toast,a)):this.toast.open())};
_.Z.close=function(a){var z;(z=this.toast)==null||z.close();this.toastManager&&a===1&&k0V(this.toastManager,a)};
_.Z.refit=function(){var a;(a=this.toast)==null||a.refit()};
_.Z.tapClose=function(){if(!this.useCloseButton||this.closeToastOnActionButtonClick){var a;(a=this.toast)==null||a.close()}};
_.Z.setVerticalOffset=function(a){this.toast&&(this.toast.verticalOffset=a,this.toast.fit())};
_.Z.computeButtonClass_=function(a){return a?"toast-button":""};
_.Z.computeText_=function(a){return _.cd(a)};
_.Z.toastOpenedChangedForBinding=function(){this.hostElement.dispatchEvent(new _.eY("toast-opened-changed",this.toastOpened))};
_.Z.updateToastOpenedFromBinding=function(a){this.toastOpened=a.detail.value};
_.eH.Object.defineProperties(r5.prototype,{command:{configurable:!0,enumerable:!0,get:function(){var a,z,I=(a=this.data)==null?void 0:(z=a.actionButton)==null?void 0:z.buttonRenderer;return(I==null?void 0:I.command)||(I==null?void 0:I.serviceEndpoint)||(I==null?void 0:I.navigationEndpoint)}},
ephemeralAction:{configurable:!0,enumerable:!0,get:function(){if(this.labelText&&this.command&&this.duration)return{label:this.labelText,command:this.command,durationMs:this.duration}}},
hasEphemeralAction:{configurable:!0,enumerable:!0,get:function(){return!!this.ephemeralAction}},
labelText:{configurable:!0,enumerable:!0,get:function(){var a=[],z;((z=this.data)==null?0:z.responseText)&&a.push(_.cd(this.data.responseText));var I;((I=this.data)==null?0:I.subText)&&a.push(_.cd(this.data.subText));var J,r;if((J=this.data)==null?0:(r=J.actionButton)==null?0:r.buttonRenderer){var P,N;a.push(((P=this.data.actionButton.buttonRenderer.accessibilityData)==null?void 0:(N=P.accessibilityData)==null?void 0:N.label)||_.cd(this.data.actionButton.buttonRenderer.text))}return a.filter(function(u){return u}).join(". ")}},
opened:{configurable:!0,enumerable:!0,get:function(){var a,z;return(z=(a=this.toast)==null?void 0:a.opened)!=null?z:!1}}});
r5.prototype.toastOpenedChangedForBinding=r5.prototype.toastOpenedChangedForBinding;r5.prototype.toastOpenedChanged=r5.prototype.toastOpenedChanged;_.L([_.Q(_.k.YtRendererBehavior),_.p("design:type",Object)],r5.prototype,"ytRendererBehavior",void 0);_.L([_.Q(_.iO.YtEventForwardingBehavior),_.p("design:type",Object)],r5.prototype,"ytEventForwardingBehavior",void 0);_.L([_.x(),_.p("design:type",Object)],r5.prototype,"data",void 0);_.L([_.x(),_.p("design:type",Object)],r5.prototype,"duration",void 0);
_.L([_.x(),_.p("design:type",Number)],r5.prototype,"toastType",void 0);_.L([_.x({value:!1}),_.p("design:type",Boolean)],r5.prototype,"useCloseButton",void 0);_.L([_.x({value:!1}),_.p("design:type",Boolean)],r5.prototype,"closeToastOnActionButtonClick",void 0);_.L([_.x({value:function(){return _.AR("SBOX_INAPPROPRIATE_CANCEL")}}),
_.p("design:type",String)],r5.prototype,"closeButtonAriaLabel",void 0);_.L([_.x(),_.p("design:type",Boolean)],r5.prototype,"toastOpened",void 0);_.L([_.x(),_.p("design:type",Boolean)],r5.prototype,"hasOpened",void 0);_.L([_.S("data"),_.p("design:type",Object),_.p("design:paramtypes",[])],r5.prototype,"command",null);_.L([_.S("labelText","command","duration"),_.p("design:type",Object),_.p("design:paramtypes",[])],r5.prototype,"ephemeralAction",null);
_.L([_.S("ephemeralAction"),_.p("design:type",Boolean),_.p("design:paramtypes",[])],r5.prototype,"hasEphemeralAction",null);_.L([_.A3("#toast"),_.p("design:type",Object)],r5.prototype,"toast",void 0);_.L([_.x({value:function(){return{style:"call-to-action-inverse"}}}),
_.p("design:type",Object)],r5.prototype,"buttonOverrides",void 0);_.L([_.x({value:{style:"mono-inverse"}}),_.p("design:type",Object)],r5.prototype,"closeButtonOverrides",void 0);_.L([_.x({value:function(){return _.ab().resolve(_.eL(_.hs))}}),
_.p("design:type",Object)],r5.prototype,"toastManager",void 0);_.L([_.S("data.responseText","data.subText","data.actionButton"),_.p("design:type",Object),_.p("design:paramtypes",[])],r5.prototype,"labelText",null);_.L([_.O8("toastOpened"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],r5.prototype,"toastOpenedChanged",null);
_.L([_.O8("toastOpened"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],r5.prototype,"toastOpenedChangedForBinding",null);_.L([_.dz({is:"yt-notification-action-renderer",disableElementRegistration:!0})],r5);
_.D(r5,"yt-notification-action-renderer",function(){if(HF4===void 0){var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-notification-action-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.yt_notification_action_renderer.yt.notification.action.renderer.css.js--\x3e\n<tp-yt-paper-toast id="toast" class$="[[computeButtonClass_(data.actionButton.buttonRenderer)]] style-scope yt-notification-action-renderer" allow-click-through="" announce-label-updates="" aria-label="toast" duration="[[duration]]" label="[[labelText]]" no-iron-announce="[[hasEphemeralAction]]" opened="[[toastOpened]]" role="region" on-opened-changed="updateToastOpenedFromBinding">\n  <div id="text-container" class="style-scope yt-notification-action-renderer">\n    <yt-formatted-string id="text" respect-html-dir="" split-lines="" text="[[data.responseText]]" class="style-scope yt-notification-action-renderer">\n    </yt-formatted-string>\n    <yt-formatted-string id="sub-text" hidden="[[!data.subText]]" respect-html-dir="" split-lines="" text="[[data.subText]]" class="style-scope yt-notification-action-renderer">\n    </yt-formatted-string>\n  </div>\n  <template is="dom-if" if="[[data.actionButton]]" class="style-scope yt-notification-action-renderer">\n    <yt-button-renderer id="action-button" data="[[data.actionButton.buttonRenderer]]" overrides="[[buttonOverrides]]" on-tap="tapClose" class="style-scope yt-notification-action-renderer">\n    </yt-button-renderer>\n  </template>\n  <template is="dom-if" if="[[data.closeActionButton]]" class="style-scope yt-notification-action-renderer">\n    <yt-button-renderer id="close-action-button" data="[[data.closeActionButton.buttonRenderer]]" overrides="[[closeButtonOverrides]]" on-tap="close" class="style-scope yt-notification-action-renderer">\n    </yt-button-renderer>\n  </template>\n  <template is="dom-if" if="[[!data.closeActionButton]]" class="style-scope yt-notification-action-renderer">\n    <yt-icon-button id="close-button" hidden="[[!useCloseButton]]" label="[[closeButtonAriaLabel]]" on-tap="close" class="style-scope yt-notification-action-renderer">\n      <yt-icon icon="yt-icons:close" class="style-scope yt-notification-action-renderer"></yt-icon>\n    </yt-icon-button>\n  </template>\n  <slot class="style-scope yt-notification-action-renderer"></slot>\n</tp-yt-paper-toast>\n');a.content.insertBefore(_.w().content.cloneNode(!0),
a.content.firstChild);var z=a.content,I=z.insertBefore;Fe0===void 0&&(Fe0=document.createElement("template"));var J=Fe0;I.call(z,J.content.cloneNode(!0),a.content.firstChild);HF4=a}a=HF4;return a},{mode:2});var Po=function(){var a=_.G.apply(this,arguments)||this;a.duration=4E3;a.downloadingCount=0;a.downloadedCount=0;a.downloadingOnlySmartDownloads=!1;a.sessionTotalDownloads=0;a.sessionDownloaded=0;a.previousSessionsDownloaded=0;a.totalDownloadPercentage=0;a.currentDownloadProgress=0;a.currentDownloadPercentage=0;a.isLeaderTab=!0;a.isFullScreen=!1;a.actionMap={"yt-fullscreen-change-action":"handleFullscreenChange"};a.boundBeforeUnload=function(z){a.isLeaderTab&&a.downloadingCount>0&&(z.preventDefault(),
z.returnValue=!0)};
return a};
_.b(Po,_.G);_.Z=Po.prototype;
_.Z.open=function(){this.updateDownloadState();if(this.data){var a=this.sessionDownloaded+1,z=this.sessionTotalDownloads>1?_.AR("VIDEOS_DOWNLOADING_RATIO",{downloaded:a.toString(),total:this.sessionTotalDownloads.toString()},"Downloading... "+a+"/"+this.sessionTotalDownloads):_.AR("DOWNLOADING",void 0,"Downloading")+"...";this.downloadingOnlySmartDownloads&&(z=this.sessionTotalDownloads>1?_.AR("SMART_DOWNLOADS_UPDATING_RATIO",{downloaded:a.toString(),total:this.sessionTotalDownloads.toString()},"Updating Smart downloads... "+
a+"/"+this.sessionTotalDownloads):_.AR("SMART_DOWNLOADS_UPDATING",void 0,"`Updating Smart downloads..."));a=this.isLeaderTab?_.AR("KEEP_OPEN",{},"Keep window open to continue"):"";if(_.cd(this.data.responseText)!==z||_.cd(this.data.subText)!==a)this.set("data.responseText",_.Mo(z)),this.set("data.subText",_.Mo(a)),this.notificationActionRenderer.refit()}this.notificationActionRenderer.open(1);window.addEventListener("beforeunload",this.boundBeforeUnload)};
_.Z.close=function(){this.previousSessionsDownloaded=this.sessionDownloaded=this.sessionTotalDownloads=0;this.notificationActionRenderer.hasOpened&&this.notificationActionRenderer.close(1);window.removeEventListener("beforeunload",this.boundBeforeUnload)};
_.Z.updatePopup=function(){!this.data||this.isFullScreen||this.downloadingCount===0?this.close():this.open()};
_.Z.updateCurrentDownloadProgress=function(){this.currentDownloadPercentage=Math.floor(this.currentDownloadProgress*100)};
_.Z.updateDownloadState=function(){this.previousSessionsDownloaded===0&&(this.previousSessionsDownloaded=this.downloadedCount);var a=this.downloadedCount-this.previousSessionsDownloaded;a<this.sessionDownloaded&&(this.previousSessionsDownloaded-=this.sessionDownloaded-a);this.sessionDownloaded=this.downloadedCount-this.previousSessionsDownloaded;this.sessionTotalDownloads=this.downloadingCount+this.sessionDownloaded};
_.Z.handleFullscreenChange=function(a){(this.isFullScreen=a)||this.updatePopup()};
Po.prototype.updateCurrentDownloadProgress=Po.prototype.updateCurrentDownloadProgress;Po.prototype.updatePopup=Po.prototype.updatePopup;_.L([_.Q(_.k.YtRendererBehavior),_.p("design:type",Object)],Po.prototype,"ytRendererBehavior",void 0);_.L([_.Q(_.pV),_.p("design:type",Object)],Po.prototype,"ytdReduxBehavior",void 0);_.L([_.Q(_.iO.YtEventForwardingBehavior),_.p("design:type",Object)],Po.prototype,"ytEventForwardingBehavior",void 0);
_.L([_.Q(_.Hc.YtActionHandlerBehavior),_.p("design:type",Object)],Po.prototype,"actionHandlerBehavior",void 0);_.L([_.x(),_.p("design:type",Object)],Po.prototype,"data",void 0);_.L([_.x(),_.p("design:type",Object)],Po.prototype,"duration",void 0);_.L([_.x({selector:function(a){return _.k7$(a.entities).length}}),
_.p("design:type",Object)],Po.prototype,"downloadingCount",void 0);_.L([_.x({selector:KKZ}),_.p("design:type",Object)],Po.prototype,"downloadedCount",void 0);_.L([_.x({selector:function(a){var z=_.k7$(a.entities);return n2G(a.entities,z)}}),
_.p("design:type",Object)],Po.prototype,"downloadingOnlySmartDownloads",void 0);_.L([_.x(),_.p("design:type",Object)],Po.prototype,"sessionTotalDownloads",void 0);_.L([_.x(),_.p("design:type",Object)],Po.prototype,"sessionDownloaded",void 0);_.L([_.x(),_.p("design:type",Object)],Po.prototype,"previousSessionsDownloaded",void 0);_.L([_.x(),_.p("design:type",Object)],Po.prototype,"totalDownloadPercentage",void 0);
_.L([_.x({selector:function(a){var z;a=(z=_.k7$(a.entities))!=null?z:[];return a.length>0?_.WSE(a.slice(-1)):0}}),
_.p("design:type",Object)],Po.prototype,"currentDownloadProgress",void 0);_.L([_.x(),_.p("design:type",Object)],Po.prototype,"currentDownloadPercentage",void 0);_.L([_.x({selector:_.e3$}),_.p("design:type",Object)],Po.prototype,"isLeaderTab",void 0);_.L([_.A3("yt-notification-action-renderer"),_.p("design:type",Object)],Po.prototype,"notificationActionRenderer",void 0);
_.L([_.Fe("downloadingCount","downloadedCount","downloadingOnlySmartDownloads","isLeaderTab"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],Po.prototype,"updatePopup",null);_.L([_.Fe("currentDownloadProgress"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],Po.prototype,"updateCurrentDownloadProgress",null);_.L([_.U({disableElementRegistration:!0,is:"ytd-video-download-toast-renderer"})],Po);
_.D(Po,"ytd-video-download-toast-renderer",function(){if(KeZ!==void 0)return KeZ;var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-video-download-toast-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-notification-action-renderer id="notification" class="is-download style-scope ytd-video-download-toast-renderer" data="[[data]]" duration="[[duration]]" use-close-button=""><tp-yt-paper-progress class="transiting style-scope ytd-video-download-toast-renderer" value="[[currentDownloadPercentage]]"></tp-yt-paper-progress></yt-notification-action-renderer>');
a.content.insertBefore(_.w().content.cloneNode(!0),a.content.firstChild);return KeZ=a},{mode:1});var bFV;var hJZ;var Zr=function(){return _.G.apply(this,arguments)||this};
_.b(Zr,_.G);Zr.prototype.computeIsRedLogo=function(a,z){!a&&z&&(a=z);return a==="YOUTUBE_RED_LOGO"||a==="YOUTUBE_PREMIUM_LOGO"};
Zr.prototype.computeLogoName=function(a){a=this.componentBehavior.computeIcon_(a);return a===""?"yt-logos-ext:yt-logo-updated":a};
_.L([_.Q(_.Ms.YtComponentBehavior),_.p("design:type",Object)],Zr.prototype,"componentBehavior",void 0);_.L([_.x({value:!1,reflectToAttribute:!0,computed:"computeIsRedLogo(data.iconType, logoType)"}),_.p("design:type",Boolean)],Zr.prototype,"isRedLogo",void 0);_.L([_.x({computed:"computeLogoName(data)"}),_.p("design:type",String)],Zr.prototype,"logoName",void 0);_.L([_.x({value:{}}),_.p("design:type",Object)],Zr.prototype,"data",void 0);
_.L([_.x(),_.p("design:type",Object)],Zr.prototype,"logoType",void 0);_.L([_.U({disableElementRegistration:!0,is:"ytd-logo"})],Zr);
_.D(Zr,"ytd-logo",function(){if(hJZ!==void 0)return hJZ;var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-logo--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-icon id="logo-icon" icon="[[logoName]]" class="style-scope ytd-logo">\n</yt-icon>');a.content.insertBefore(_.w().content.cloneNode(!0),a.content.firstChild);return hJZ=a},{mode:_.Np("kevlar_poly_si_batch_j074")?1:2});var Cs=function(){var a=_.G.apply(this,arguments)||this;a.animationRef={};return a};
_.b(Cs,_.G);_.Z=Cs.prototype;_.Z.attached=function(){document.addEventListener("yt-navigate-finish",_.BK(this,this.logYoodle))};
_.Z.detached=function(){document.removeEventListener("yt-navigate-finish",_.BK(this,this.logYoodle))};
_.Z.logYoodle=function(){var a,z;if((a=this.data)==null?0:(z=a.loggingDirectives)==null?0:z.trackingParams)this.ytRendererBehavior.markDirty(),_.Kw().graftServerVe(this.data.loggingDirectives.trackingParams)};
_.Z.computeHideImg=function(a,z){return!!a||!!z};
_.Z.computeHideYtdLogo=function(a,z){return!a||!!z};
_.Z.computeHideLottie=function(a){return!a};
_.Z.computeIsRedLogo=function(a){return a==="YOUTUBE_RED_LOGO"||a==="YOUTUBE_PREMIUM_LOGO"};
_.Z.renderLogoEntity=function(){var a=this.getThumbnailUrl(this.useDarkThemeYoodle,this.data),z=this.getAnimatedThumbnailUrl(this.useDarkThemeYoodle,this.data),I=this.getLogoTitleText(this.data),J=this.getLottieUrl(this.useDarkThemeYoodle,this.data);this.url!==a&&(this.url=a);this.animatedUrl!==z&&(this.animatedUrl=z);this.logoTitleText!==I&&(this.logoTitleText=I);this.lottieUrl!==J&&(this.lottieUrl=J,this.lottiePlayerProps=this.computeLottiePlayerProps(J))};
_.Z.getSanitizedThumbnail=function(a){return a&&a.thumbnails?_.IM7(a.thumbnails,122)||"":""};
_.Z.getThumbnailUrl=function(a,z){if(!z)return"";var I,J;a=a?(I=z.darkThemeLogo)==null?void 0:I.thumbnail:(J=z.lightThemeLogo)==null?void 0:J.thumbnail;return this.getSanitizedThumbnail(a)};
_.Z.getAnimatedThumbnailUrl=function(a,z){return z?this.getSanitizedThumbnail(a?z.darkThemeAnimatedLogo:z.lightThemeAnimatedLogo):""};
_.Z.getLogoTitleText=function(a){if(a)return _.cd(a.tooltipText)};
_.Z.computeLogoIcon=function(a,z){if(z){var I,J;return a?(I=z.darkThemeLogo)==null?void 0:I.icon:(J=z.lightThemeLogo)==null?void 0:J.icon}};
_.Z.playAnimation=function(){this.hideLottie||this.animationRef.lottieEl&&this.animationRef.lottieEl.isPaused&&this.animationRef.lottieEl.goToAndPlay(0)};
_.Z.getLottieUrl=function(a,z){var I,J,r,P;return a?z==null?void 0:(I=z.darkThemeLogo)==null?void 0:(J=I.lottieAnimation)==null?void 0:J.url:z==null?void 0:(r=z.lightThemeLogo)==null?void 0:(P=r.lottieAnimation)==null?void 0:P.url};
_.Z.computeLottiePlayerProps=function(a){if(a){var z;if((z=this.animationRef)==null?0:z.lottieEl){var I;(I=this.animationRef)==null||I.lottieEl.destroy()}return{animationRef:this.animationRef,animationConfig:{name:"LOGO_ENTITY_ANIMATION_NAME",path:a,autoplay:!0,loop:!1,rendererSettings:{viewBoxOnly:!1}},listeners:{data_failed:this.onLottieError.bind(this),error:this.onLottieError.bind(this)}}}};
_.Z.onLottieError=function(){this.data&&this.lottieUrl&&_.PA(this.hostElement,"yoodle-error")};
_.Z.onImgError=function(){this.data&&!this.lottieUrl&&_.PA(this.hostElement,"yoodle-error")};
Cs.prototype.playAnimation=Cs.prototype.playAnimation;Cs.prototype.renderLogoEntity=Cs.prototype.renderLogoEntity;_.L([_.Q(_.k.YtRendererBehavior),_.p("design:type",Object)],Cs.prototype,"ytRendererBehavior",void 0);_.L([_.x(),_.p("design:type",Object)],Cs.prototype,"data",void 0);_.L([_.x({value:!1,computed:"computeHideImg(logoIcon, lottiePlayerProps)"}),_.p("design:type",Boolean)],Cs.prototype,"hideImg",void 0);
_.L([_.x({value:!0,computed:"computeHideYtdLogo(logoIcon, lottiePlayerProps)"}),_.p("design:type",Boolean)],Cs.prototype,"hideYtdLogo",void 0);_.L([_.x({value:!0,reflectToAttribute:!0,computed:"computeHideLottie(lottiePlayerProps)"}),_.p("design:type",Boolean)],Cs.prototype,"hideLottie",void 0);_.L([_.x({value:!1,reflectToAttribute:!0,computed:"computeIsRedLogo(logoType)"}),_.p("design:type",Boolean)],Cs.prototype,"isRedLogo",void 0);
_.L([_.x(),_.p("design:type",Boolean)],Cs.prototype,"useDarkThemeYoodle",void 0);_.L([_.x(),_.p("design:type",String)],Cs.prototype,"url",void 0);_.L([_.x(),_.p("design:type",String)],Cs.prototype,"animatedUrl",void 0);_.L([_.x(),_.p("design:type",String)],Cs.prototype,"logoTitleText",void 0);_.L([_.x({value:{},computed:"computeLogoIcon(useDarkThemeYoodle, data)"}),_.p("design:type",Object)],Cs.prototype,"logoIcon",void 0);_.L([_.x(),_.p("design:type",Object)],Cs.prototype,"logoType",void 0);
_.L([_.x(),_.p("design:type",String)],Cs.prototype,"lottieUrl",void 0);_.L([_.x(),_.p("design:type",Object)],Cs.prototype,"lottiePlayerProps",void 0);_.L([_.x(),_.p("design:type",Object)],Cs.prototype,"animationRef",void 0);_.L([_.O8("data"),_.O8("useDarkThemeYoodle"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],Cs.prototype,"renderLogoEntity",null);
_.L([_.gz("click"),_.p("design:type",Function),_.p("design:paramtypes",[Event]),_.p("design:returntype")],Cs.prototype,"playAnimation",null);_.L([_.U({disableElementRegistration:!0,is:"ytd-yoodle-renderer"})],Cs);
_.D(Cs,"ytd-yoodle-renderer",function(){if(bFV!==void 0)return bFV;var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-yoodle-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<picture hidden="[[hideImg]]" class="style-scope ytd-yoodle-renderer">\n  <source srcset$="[[animatedUrl]]" type="image/webp" class="style-scope ytd-yoodle-renderer">\n  <img src$="[[url]]" alt="[[logoTitleText]]" on-error="onImgError" class="style-scope ytd-yoodle-renderer">\n</picture>\n<ytd-logo data="[[logoIcon]]" hidden="[[hideYtdLogo]]" logo-type="[[logoType]]" class="style-scope ytd-yoodle-renderer">\n</ytd-logo>\n<ytd-lottie-player aria-label="[[logoTitleText]]" class-name="[[is]] lottie-player" data="[[lottiePlayerProps]]" class="style-scope ytd-yoodle-renderer">\n</ytd-lottie-player>');a.content.insertBefore(_.w().content.cloneNode(!0),
a.content.firstChild);return bFV=a},{mode:_.Np("kevlar_poly_si_batch_j074")?1:2});var Vyf;var QPz;var N6=function(){var a=_.G.apply(this,arguments)||this;a.actionMap={"yt-navigate-home-action":"onNavigateHomeAction"};return a};
_.b(N6,_.G);_.Z=N6.prototype;_.Z.onYoodleError=function(){_.K("kevlar_yoodle_handle_load_failure_killswitch")||(this.yoodleError=!0)};
_.Z.computeLogoName=function(a){a=this.componentBehavior.computeIcon_(a);return a===""?"yt-logos-ext:yt-logo-updated":a};
_.Z.computeTitle=function(a,z,I){return I&&(z==null?0:z.tooltipText)?_.cd(z.tooltipText):_.cd(a)};
_.Z.computeAriaLabel=function(a,z,I){return I&&(z==null?0:z.tooltipText)?_.cd(a):""};
_.Z.computeShowYoodle=function(a,z,I){return!a||!z&&!!I&&!_.x8.isEmpty(I)};
_.Z.onNavigateHomeAction=function(){if(_.K("kevlar_miniplayer_navigate_home_from_app_killswitch")){var a;(a=_.PK(this.hostElement).querySelector(".yt-simple-endpoint"))==null||a.click()}};
_.Z.computeLogoHref=function(a,z,I){var J;(I==null?0:I.onTapCommand)?J=this.componentBehavior.computeHref_(I.onTapCommand):a&&(J=this.componentBehavior.computeHref_(a));return J?J:z};
_.Z.computeCommand=function(a,z){return(z==null?void 0:z.onTapCommand)||a};
_.Z.getEndpointForm=function(){if(_.K("kevlar_topbar_disable_cache_only_home")){var a=_.ab().resolve(_.mP),z=vAV(a.getState())||"";a=_.QaG(a.getState())||"";return{disableCache:z==="ytd-browse"&&a==="home"}}return{disableCache:!0}};
N6.prototype.onYoodleError=N6.prototype.onYoodleError;_.L([_.Q(_.Hc.YtActionHandlerBehavior),_.p("design:type",Object)],N6.prototype,"ytActionHandlerBehavior",void 0);_.L([_.Q(_.k.YtRendererBehavior),_.p("design:type",Object)],N6.prototype,"ytRendererBehavior",void 0);_.L([_.Q(_.Ms.YtComponentBehavior),_.p("design:type",Object)],N6.prototype,"componentBehavior",void 0);_.L([_.Q(_.pV),_.p("design:type",Object)],N6.prototype,"ytdReduxBehavior",void 0);
_.L([_.x(),_.p("design:type",Object)],N6.prototype,"data",void 0);_.L([_.x(),_.p("design:type",String)],N6.prototype,"countryCode",void 0);_.L([_.x({selectorArgs:["data.overrideEntityKey"],selector:function(a,z){return _.Bd(a.entities,"logoEntity",z)}}),
_.p("design:type",Object)],N6.prototype,"logoEntity",void 0);_.L([_.x({reflectToAttribute:!0,computed:"computeShowYoodle(data, yoodleError, logoEntity)"}),_.p("design:type",Boolean)],N6.prototype,"showYoodle",void 0);_.L([_.x({value:!1}),_.p("design:type",Boolean)],N6.prototype,"yoodleError",void 0);_.L([_.x({computed:"computeTitle(data.tooltipText, logoEntity, showYoodle)"}),_.p("design:type",String)],N6.prototype,"titleText",void 0);
_.L([_.x({value:"",computed:"computeAriaLabel(data.tooltipText, logoEntity, showYoodle)"}),_.p("design:type",String)],N6.prototype,"ariaLabelText",void 0);_.L([_.x({value:"/"}),_.p("design:type",String)],N6.prototype,"defaultEndpointUrl",void 0);_.L([_.x({computed:"computeLogoHref(data.endpoint, defaultEndpointUrl, logoEntity)"}),_.p("design:type",String)],N6.prototype,"endpointUrl",void 0);
_.L([_.x({computed:"computeCommand(data.endpoint, logoEntity)"}),_.p("design:type",String)],N6.prototype,"command",void 0);_.L([_.x(),_.p("design:type",Object)],N6.prototype,"logoType",void 0);_.L([_.x({}),_.p("design:type",Boolean)],N6.prototype,"useDarkThemeYoodle",void 0);_.L([_.gz("yoodle-error"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],N6.prototype,"onYoodleError",null);_.L([_.U({disableElementRegistration:!0,is:"ytd-topbar-logo-renderer"})],N6);
_.D(N6,"ytd-topbar-logo-renderer",function(){if(QPz!==void 0)return QPz;var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-topbar-logo-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<a aria-label="[[ariaLabelText]]" class="yt-simple-endpoint style-scope ytd-topbar-logo-renderer" href$="[[endpointUrl]]" id="logo" data="[[command]]" title="[[titleText]]" get-form="[[getEndpointForm]]">\n  <div hidden="[[showYoodle]]" class="style-scope ytd-topbar-logo-renderer">\n    <ytd-logo data="[[data.iconImage]]" logo-type="[[logoType]]" class="style-scope ytd-topbar-logo-renderer">\n    </ytd-logo>\n  </div>\n  <ytd-yoodle-renderer data="[[logoEntity]]" hidden="[[!showYoodle]]" logo-type="[[logoType]]" use-dark-theme-yoodle="[[useDarkThemeYoodle]]" class="style-scope ytd-topbar-logo-renderer">\n  </ytd-yoodle-renderer>\n</a>\n<span hidden="[[showYoodle]]" id="country-code" class="style-scope ytd-topbar-logo-renderer">\n  [[countryCode]]\n</span>\n');
a.content.insertBefore(_.w().content.cloneNode(!0),a.content.firstChild);return QPz=a},{mode:_.Np("kevlar_poly_si_batch_j027")?1:2});var SpV=0;var iFf=_.Nx.SEARCH_APPEND_LABEL,x4V=_.Nx.SUGGESTION_NEW_VIDEOS_TEXT,v1z=_.Nx.SUGGESTION_THUMBNAIL_LABEL,GUE=_.Nx.SUGGESTION_THUMBNAIL_ATTRIBUTION_LABEL,$40=_.ec(function(a){function z(iw){var H4,ty;return _.t(function(fZ){if(fZ.nextAddress==1)return H4=new Request(iw),_.BP(fZ,2),fZ.yield(fetch(H4,{credentials:"include"}),4);if(fZ.nextAddress!=2)return Sf(!0),_.p1(fZ,0);ty=_.sk(fZ);_.Xd(ty);_.nu(fZ)})}
var I=a.isHighlighted;var J=a.suggestion;var r=a.onClickCallback;var P=a.onHoverUpdateCallback;var N=a.labels;var u=a.queryBuilderFunction;var E=a.onRemoveCallback;var O=a.suggestionIndex;var f=a.generateUniqueId;var A=a.highlightedId;var n=a.useScrollMargin;var F=a.isKeyboardMode;var h=null,v=null,d=_.Mm("div"),W=_.Mm("span");a=_.C(_.CW(!1,void 0,"CgAMgc"));var l=a.next().value,q=a.next().value,m=_.ca("a",function(iw){iw&&_.Vr(237477,iw,v,function(H4){v=H4})}),M=_.ca("button",function(iw){iw&&_.Vr(237477,
iw,v,function(H4){v=H4})}),y=_.g4(function(iw){if((iw==null?void 0:iw.button)===2)return iw.preventDefault(),!1;
var H4=_.TX();H4&&h&&_.kA(H4,h,"INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK");var ty;r(iw,J().text,J().index,J().entityMid,iw==null?void 0:(ty=iw.detail)==null?void 0:ty.wasSelectedByKeyboard);return!1}),e=function(){return J().type===35},Bp=function(){return _.K("desktop_enable_single_suggestion_highlight")},Em=function(){return _.Ib("desktop_suggestions_panel_row_height")||0},nG=function(){var iw;
return _.K("desktop_enable_new_video_metadata")&&((iw=J())==null?void 0:iw.hasNewVideo)===!0},bG=function(){return _.K("desktop_enable_visual_suggest")},Hp=function(){return _.K("desktop_enable_entity_suggest")&&r9z(J())},LG=function(){return J().entitySubtitle},oE=function(){return Bp()?(I==null?void 0:I())||aw()&&!(F==null?0:F()):(I==null?void 0:I())||aw()},Pe=function(){var iw=_.Xw("SBOX_SETTINGS");
return e()&&!(iw==null?0:iw.HIDE_REMOVE_LINK)},TJ=function(){return PMV(J(),{useEntityName:Hp()})},Be,eM=!((Be=_.ab().resolve(_.eL(_.kN)))==null||!Be()),Ao=function(){return e()?_.K("enable_web_delhi_icons")?"HISTORY":"ARROW_TIME":"SEARCH"},gf=function(){return N==null?void 0:N().SUGGESTION_DISMISS_LABEL},GJ=function(){return N==null?void 0:N().SUGGESTION_DISMISSED_LABEL};
a=_.C(_.CW(!1,void 0,"RcUcKd"));Be=a.next().value;var Sf=a.next().value;a=_.C(_.CW(!1,void 0,"yGR7je"));var ce=a.next().value,r$=a.next().value,aw=ce,Kl=_.g4(function(){u(W.value.innerText);return!1}),EG=_.g4(function(iw){iw.preventDefault();
return!1}),F1=_.g4(function(iw){var H4=J().text,ty=_.Xw("SBOX_SETTINGS"),fZ="https://"+(ty.SEARCHBOX_HOST_OVERRIDE||"suggestqueries-clients6.youtube.com")+"/complete/deleteitems?client=youtube";
fZ+="&delq="+encodeURIComponent(H4);(H4=ty==null?void 0:ty.PSUGGEST_TOKEN)&&(fZ+="&tok="+H4);(ty=ty==null?void 0:ty.SESSION_INDEX)&&(fZ+="&authuser="+ty);z(fZ);iw.preventDefault();(iw=_.TX())&&v&&_.kA(iw,v,"INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK");E(O==null?void 0:O());return!1}),jf=_.g4(function(){if(Bp()&&(F==null?0:F()))return!1;
r$(!0);P(!0);return!1}),zj=_.g4(function(){r$(!1);
P(!1);return!1}),aZ=_.g4(function(){q(!0);
return!1}),Cl=_.g4(function(){q(!1);
return!1}),kG=_.g4(function(iw){iw.preventDefault();
var H4;(iw=(H4=J().entityThumbnailAttributionUrl)!=null?H4:"")&&_.bOE(iw);return!1});
a=_.C(_.CW("",void 0,"k9uVge"));var sG=a.next().value,SI=a.next().value;_.hD(function(){Pe()&&SI(f==null?void 0:f(O==null?void 0:O()));d.value&&_.Vr(12453,d.value,h,function(iw){h=iw})});
return _.B(_.g,{cond:Be,then:function(){var iw={};return _.B("div",{class:_.B8("ytSuggestionComponentRemovedText",(iw.ytSuggestionComponentLargerRemovedText=function(){return bG()},iw)),
style:function(){return Em()>0?"height: "+Em()+"px;":""},
role:"button"},GJ)},
else:function(){var iw={},H4={};return _.B("div",{class:_.B8("ytSuggestionComponentSuggestion",(iw.ytSuggestionComponentSuggestionHover=function(){return!Bp()},iw.ytSuggestionComponentHighlighted=oE,iw.ytSuggestionComponentPersonalizedSuggestion=e,iw.ytSuggestionComponentMweb=!1,iw.ytSuggestionComponentLargerSuggestion=function(){return nG()||bG()},iw.ytSuggestionComponentThumbnailSuggestion=function(){return bG()},iw.ytSuggestionComponentRoundedSuggestion=function(){return _.K("desktop_enable_scrollable_suggestions_panel")&&
_.K("desktop_enable_suggestions_panel_padding")},iw.ytSuggestionComponentThumbnailPadding=function(){return bG()&&!e()},iw)),
style:function(){return Em()>0?"height: "+Em()+"px;":""},
role:"presentation","on:mousedown":y,"on:mouseover":jf,"on:mouseout":zj,el:d},_.B("div",{class:_.B8("ytSuggestionComponentText",(H4.ytSuggestionComponentScrollMargin=n,H4)),"aria-label":function(){return nG()?J().text+" "+x4V:J().text},
id:function(){return f==null?void 0:f(O==null?void 0:O())},
"on:mousedown":y,role:"option"},_.B(_.g,{cond:function(){return J().type!==33},
then:function(){return _.B(_.nS,{icon:Ao,className:"ytSuggestionComponentIcon"})}}),_.B("div",{class:"ytSuggestionComponentLeftContainer"},_.B("span",{el:W,
role:"button",tabindex:0},_.B(_.se,{each:TJ},function(ty){return ty.bold?_.B("span",{class:"ytSuggestionComponentBold"},ty.text):_.B("span",null,ty.text)})),_.B(_.g,{cond:function(){return Hp()&&!!J().entitySubtitle||nG()},
then:function(){return _.B("div",{class:"ytSuggestionComponentMetadataContainer"},_.B(_.g,{cond:function(){return Hp()&&!!J().entitySubtitle},
then:function(){return _.B("div",{class:"ytSuggestionComponentEntitySubtitle"},LG)}}),_.B(_.g,{cond:function(){return nG()},
then:function(){return _.B("div",{class:"ytSuggestionComponentNewVideoContainer"},_.B("div",{class:"ytSuggestionComponentNewVideoIcon"}),_.B("div",{class:"ytSuggestionComponentNewVideoText"},x4V))}}))}}))),_.B("div",{class:"ytSuggestionComponentRightContainer"},_.B(_.g,{cond:function(){return bG()&&J().visualSuggestUrl!==void 0},
then:function(){var ty={};return _.B("div",{class:"ytSuggestionComponentThumbnailContainer"},_.B("img",{"aria-label":v1z,class:_.B8("ytSuggestionComponentVisualSuggestThumbnail",(ty.ytSuggestionComponentCircularFrame=function(){return Hp()&&J().subtypes.includes(790)},ty.ytSuggestionComponentEntitySuggestThumbnail=function(){return Hp()},ty)),
src:function(){return J().visualSuggestUrl}}),_.B(_.g,{cond:function(){return Hp()&&!!J().entityThumbnailAttributionUrl},
then:function(){var fZ={};return _.B("span",{title:GUE,role:"tooltip"},_.B("div",{"on:mouseover":aZ,"on:mouseout":Cl,"on:mousedown":kG,class:_.B8("ytSuggestionComponentThumbnailOverlay",(fZ.ytSuggestionComponentThumbnailOverlayHidden=function(){return!l()},fZ))},_.B(_.nS,{icon:"INFO",
className:"ytSuggestionComponentInfoIcon"})))}}))}}),_.B(_.Fw,null,_.B(_.n3,{when:function(){return bG()&&Pe()}},function(){var ty={};
return _.B("button",{class:_.B8("ytSuggestionComponentRemoveLinkClearButton",(ty.ytSuggestionComponentRemoveLinkClearButtonSelected=function(){return sG()&&sG()===(A==null?void 0:A())},ty.ytSuggestionComponentRemoveLinkClearButtonHidden=function(){return!oE()},ty)),
el:M,"on:mousedown":F1,"aria-label":gf,id:function(){return sG()}},_.B(_.nS,{icon:"DISMISSAL",
className:"ytSuggestionComponentClearButtonIcon"}))}),_.B(_.n3,{when:function(){return!(bG()&&J().visualSuggestUrl!==void 0)&&Pe()}},function(){var ty={};
return _.B("a",{class:_.B8("ytSuggestionComponentRemoveLink",(ty.ytSuggestionComponentRemoveLinkDark=eM,ty.ytSuggestionComponentRemoveLinkSelected=function(){return sG()&&sG()===(A==null?void 0:A())},ty)),
el:m,"on:mousedown":F1,"aria-label":gf,tabindex:0,role:"button",id:function(){return sG()}},gf)}),_.B(_.n3,{when:function(){return!1}},function(){return _.B("button",{class:"ytSuggestionComponentQueryBuilderButton",
"on:click":Kl,"on:mousedown":EG,role:"button","aria-label":iFf},_.B(_.nS,{icon:"ARROW_DIAGONAL",className:"ytSuggestionComponentQueryBuilderButtonIcon"}))}))))}})},"dh");var X5M=_.kK(["//www.google.com/textinputassistant/","/","_tia.js"]),T6E=_.ec(function(){return _.B("ytd-text-input-assistant",{class:"ytdTextInputAssistantHost"},_.B("button",{class:"ytdTextInputAssistantButton","on:click":_.g4(function(){tyZ().inputMethodsTracker.add(3);var a,z=(a=_.Xw("SBOX_SETTINGS"))==null?void 0:a.REQUEST_LANGUAGE;if(z)return _.LL(_.Jz(X5M,14,z)),!1})},_.B("img",{class:"ytdTextInputAssistantIcon",
tia_field_name:"search_query",tia_disable_swap:"true",tia_property:"youtube",src:"//www.gstatic.com/inputtools/images/tia.png",alt:""})))},"eh");var d4M=function(){this.cache=new Map},WeE=function(a){for(var z=_.C(a.cache.entries()),I=z.next();!I.done;I=z.next()){var J=_.C(I.value);
I=J.next().value;J=J.next().value;J.suggestions.some(function(r){return r.type===35})&&a.cache.delete(I)}};var o1V=_.Nx.SEARCH,U40=_.Nx.SEARCH_CLEAR_LABEL,D4e=new _.I4("FAKE_SUGGEST_RESPONSE");_.Jf(_.ec(function(a){function z(){aZ||(aZ=setTimeout(function(){kG()},1E3))}
function I(bw,He,XM){if(bw.trim()){zj=bw;_.$S("REFINEMENTS_TUPLE",void 0);F1=!0;var f4;He=B6M(ce,He);var fl=(f4=a.searchEndpoint)==null?void 0:f4.call(a);_.$p0(bw,He,fl,Ao.value.value,XM);kG();Ao.value.value=bw;Ao.value.blur();ce.reset()}}
function J(bw){return _.t(function(He){return He.return(new Promise(function(XM){var f4=new XMLHttpRequest;f4.open("GET",qCE(bw),!0);f4.withCredentials=!0;var fl=_.Xw("SBOX_SETTINGS");(fl==null?0:fl.SEND_VISITOR_DATA)&&f4.setRequestHeader("X-Goog-Visitor-Id",fl==null?void 0:fl.VISITOR_DATA);f4.onload=function(){XM(f4.responseText)};
f4.onerror=function(){_.Xd(Error("sl"));XM(null)};
setTimeout(function(){f4.abort()},1E4);
f4.send(null)}))})}
function r(bw){var He,XM,f4,fl;return _.t(function(Fm){switch(Fm.nextAddress){case 1:return He={credentials:"include",headers:YCG()},window.AbortController&&(XM=new AbortController,setTimeout(function(){XM.abort("ytsbox-suggest-timeout")},1E4),He.signal=XM.signal),_.BP(Fm,2),Fm.yield(fetch(qCE(bw),He),4);
case 4:f4=Fm.yieldResult.text();_.p1(Fm,3);break;case 2:return fl=_.sk(Fm),fl!=="ytsbox-abort-last"&&fl!=="ytsbox-suggest-timeout"&&_.Xd(fl),Fm.return(null);case 3:return Fm.return(f4)}})}
function P(bw){var He,XM,f4;return _.t(function(fl){switch(fl.nextAddress){case 1:if(He=_.ab().resolve(_.eL(D4e)))return fl.return(He);XM=Date.now();z();return _.K("yt_searchbox_xhr")?fl.yield(J(bw),5):fl.yield(r(bw),4);case 4:f4=fl.yieldResult;fl.jumpTo(3);break;case 5:f4=fl.yieldResult;case 3:if(f4){aZ&&(clearTimeout(aZ),aZ=null);var Fm=ce,XC=XM,ot=bw.query.length===0;XC=Date.now()-XC;ot?Fm.zeroPrefixRoundTripTime=XC:(Fm.JSC$20514_totalRoundTripTime+=XC,Fm.maxRoundTripTime=Math.max(Fm.maxRoundTripTime,
XC),ot=Math.floor(XC/100),ot>=g1E.length?++Fm.roundTripTimeHistogram[9]:++Fm.roundTripTimeHistogram[g1E[ot]])}return fl.return(f4)}})}
function N(bw){var He,XM,f4;return _.t(function(fl){if(fl.nextAddress==1)return(He=Sf.cache.get(clV(bw)))?fl.return(He):fl.yield(P(bw),2);XM=fl.yieldResult;if(XM===null)return fl.return(null);f4=new ZFZ(XM);bw.query.length===0&&f4.suggestions.length===0||Sf.cache.set(clV(bw),f4);return fl.return(f4)})}
function u(bw){var He,XM;return _.t(function(f4){if(f4.nextAddress==1){jf=!1;var fl=zj;fl=_.igG()==="search"?(_.US(location.href,"search_query")||_.US(location.href,"q"))===fl:!1;He=new Mef(bw,fl?zj:null);return f4.yield(N(He),2)}XM=f4.yieldResult;if(XM===null)return f4.return();He.query.length===0&&(ce.zeroPrefixSuggestionCount=XM.suggestions.length);if(He.id<=Cl)return ce.outOfSyncResponseCount++,f4.return();if(document.activeElement!==Ao.value)return f4.return();Cl=He.id;var Fm=ce,XC=XM.rawResponse[2]||
{};Fm.experimentTriggeredBeforeFinal||(Fm.experimentTriggeredBeforeFinal=Fm.experimentTriggeredFinal);Fm.experimentTriggeredFinal=!!XC.e;ce.updateSuggestions(XM.suggestions);d(-1);Pe([]);XM.suggestions!==F()&&vy(XM.suggestions.length);h(XM.suggestions);Bp(XM.suggestions.length>0&&XM.suggestions[0].type===33);GJ&&(GJ.hidden=XM.suggestions.length===0,e()?(GJ.style.minWidth="",Fm=GJ.style,XC=(fl=F()[0])==null?void 0:fl.ignoredPrefix,Fm.marginLeft=(XC?Math.min(XC.length*6,gf.value.offsetWidth):0).toString()+
"px"):(GJ.style.minWidth=gf.value.offsetWidth+"px",GJ.style.marginLeft="0"),CB());_.nu(f4)})}
function E(){if(!F1)return!1;var bw=_.Xw("REFINEMENTS_TUPLE");return bw?(bw=bw[1].map(function(He,XM){return new J9Y([He,0,[71]],Ao.value.value,XM)}),F()!==bw&&vy(bw.length),Pe([]),h(bw),ce.updateSuggestions(bw),F1=!1,GJ.hidden=bw.length===0,jf=bw.length>0,!0):!1}
function O(){var bw=Ao.value.value;(typeof bw==="string"||bw instanceof String)&&bw!==""?m(!0):m(!1)}
function f(){if(_.igG()==="search"){var bw=window.location.href;try{var He=_.US(bw,"search_query")||_.US(bw,"q")||""}catch(XM){He=""}He&&(Ao.value.value=He,m(!0))}}
var A=_.C(_.CW([],void 0,"kGFAjf")),n=A.next().value;A=A.next().value;var F=n,h=A;n=_.C(_.CW(-1,void 0,"mLGL9e"));var v=n.next().value,d=n.next().value;n=_.C(_.CW(-1,void 0,"u2rYdc"));var W=n.next().value,l=n.next().value;n=_.C(_.CW(!1,void 0,"W9DFC"));var q=n.next().value,m=n.next().value;n=_.C(_.CW(!1,void 0,"Ip4dNc"));var M=n.next().value,y=n.next().value;A=_.C(_.CW(!1,void 0,"ZNKSQb"));n=A.next().value;A=A.next().value;var e=n,Bp=A;A=_.C(_.CW(!1,void 0,"JBrGLd"));n=A.next().value;var Em=A.next().value;
A=_.C(_.CW(!1,void 0,"P2pD6e"));var nG=A.next().value,bG=A.next().value;A=_.C(_.CW(1,void 0,"SjP20c"));var Hp=A.next().value,LG=A.next().value;A=_.C(_.CW([],void 0,"h4dRaf"));var oE=A.next().value,Pe=A.next().value;A=_.C(_.CW(!1,void 0,"TUTzaf"));var TJ=A.next().value,Be=A.next().value;A=_.K("web_searchbox_animate_suggestions")&&"contentVisibility"in document.documentElement.style&&"interpolateSize"in document.documentElement.style;var eM=_.Mm("yt-searchbox"),Ao=_.Mm("input"),gf=_.Mm("div"),GJ,Sf=
new d4M,ce=tyZ(),r$=_.ab().resolve(_.eL(_.kN)),aw=function(){var bw;return((bw=a.forceDarkMode)==null?void 0:bw.call(a))||!(r$==null||!r$())},Kl=function(){return _.K("desktop_enable_scrollable_suggestions_panel")},EG="i"+SpV++,F1=!1,jf=!1,zj="",aZ=null,Cl=-1,kG=function(){Pe([]);
h([]);Bp(!1);GJ&&(GJ.hidden=!0);aZ&&(clearTimeout(aZ),aZ=null);d(-1)},sG=function(bw,He){bw.preventDefault();
Be(!0);GJ&&(GJ.hidden=!1);var XM=v();bw=F();var f4=oE();He=XlG(He);XM+=He;for(XM>=bw.length?XM=-1:XM<-1&&(XM=bw.length-1);XM!==-1&&(f4.includes(XM)||XM>=bw.length||XM<0);)XM+=He,XM>=bw.length&&(XM=-1);d(XM);v()>=0&&(Ao.value.value=F()[v()].text,l(0),O(),bw=v(),f4=W(),(f4=document.getElementById(ed[bw][f4]))&&Kl()&&(bw===F().length-1?GJ.scrollTop=GJ.scrollHeight:f4.scrollIntoView({block:"nearest",inline:"start"})))},SI=_.g4(function(bw){if(!(bw.relatedTarget instanceof Element&&bw.relatedTarget.className.includes("ytSuggestionComponentRemoveLinkClearButton"))){y(!0);
var He;(He=a.focusCallback)==null||He.call(a,!0);E()||(jf?GJ.hidden=!1:(_.PA(eM.value,"yt-autonav-pause-focus",{}),u(bw.target.value)))}}),iw=_.g4(function(bw){if(!(bw.relatedTarget instanceof Element&&bw.relatedTarget.className.includes("ytSuggestionComponentRemoveLinkClearButton"))){y(!1);
var He;(He=a.focusCallback)==null||He.call(a,!1);GJ.scrollTop=0;GJ.hidden=!0;_.PA(eM.value,"yt-autonav-pause-blur",{})}}),H4=function(bw){bw=XlG(bw);
var He;((He=ed[v()])==null?0:He[W()+bw])&&l(W()+bw)},ty=_.g4(function(bw){var He=bw.target;
switch(bw.keyCode){case 13:bw.preventDefault();var XM;if((XM=ed[v()])==null?0:XM[W()]){var f4;(f4=document.getElementById(ed[v()][W()]))==null||f4.dispatchEvent(new CustomEvent("mousedown",{detail:{wasSelectedByKeyboard:!0}}));break}bw=bw.shiftKey?4:3;XM=ce;f4=v();XM.selectedSuggestionIndex=f4;I(He.value,bw);break;case 27:GJ&&(GJ.hidden=!0);break;case 40:sG(bw,40);break;case 38:sG(bw,38);break;case 39:H4(39);break;case 37:H4(37);break;case 229:ce.inputMethodsTracker.add(4);break;default:ce.inputMethodsTracker.add(1),
uRE(ce)}return!1}),fZ=_.g4(function(bw){u(bw.target.value);
O();Kl()&&GJ&&(GJ.scrollTop=0);return!1}),ST=_.g4(function(){ce.inputMethodsTracker.add(2);
uRE(ce);return!1});
_.hD(function(){if(GJ){ce.reset();if(window.ResizeObserver){var bw=new ResizeObserver(function(){e()||(GJ.style.minWidth=gf.value.offsetWidth+"px")});
bw.observe(gf.value);(new ResizeObserver(function(){CB()})).observe(GJ);
_.V3(function(){bw.disconnect()})}f();
window.addEventListener("yt-navigate-finish",f);window.addEventListener("yt-focus-searchbox",function(){Ao.value.focus()});
var He;Em((He=_.Xw("SBOX_SETTINGS"))==null?void 0:He.HAS_ON_SCREEN_KEYBOARD)}else _.Gx(new _.Fn("suggestionsEl was not set in onInit. Component may be broken."),"WARNING")});
var K6=_.g4(function(bw){bw.preventDefault();I(Ao.value.value,12);return!1}),Ll=_.g4(function(bw){bw.preventDefault();
var He,XM;(He=Ao)==null||(XM=He.value)==null||XM.focus();var f4,fl;((f4=Ao)==null?void 0:(fl=f4.value)==null?void 0:fl.value)!==""&&(Ao.value.value="",Ao.value.dispatchEvent(new Event("input")));return!1}),dE=_.g4(function(){var bw=Gbe(Ao.value.value,F().filter(function(He){return He.type!==35}).map(function(He){return{label:He.text}}));
_.ZF(eM.value,"yt-open-popup-action",[{openPopupAction:bw},document.body]);return!1}),wE=_.g4(function(){Ao.value.focus();
return!1}),NL=function(bw,He,XM,f4,fl){ce.selectedSuggestionIndex=XM;
I(He,fl?3:1,f4)},SL=function(bw){Ao.value.value=bw;
Ao.value.dispatchEvent(new Event("input"));ce.inputMethodsTracker.add(5);uRE(ce,!0)},ed=[[]],HL=function(bw){var He="searchbox-suggestion"+_.To(_.W5);
ed[bw].push(He);return He},vy=function(bw){if(F()){ed=[[]];
for(var He=0;He<bw;He++)ed.push([])}},CB=function(){if(Kl()){var bw=GJ,He=bw.scrollTop;
bw=bw.scrollHeight-bw.clientHeight;bG(He>=bw);He=Math.abs(bw-He);He<=40?LG(1-(40-He)/40):LG(1)}},q$=function(){return"opacity: "+Hp()*100+"%"},SM=_.g4(function(){CB();
return!1}),Wp=_.g4(function(){Be(!1);
return!1}),w$,sO={},B4={},v9={},VV={};
return _.B("yt-searchbox",{class:_.B8("ytSearchboxComponentHost",(sO.ytSearchboxComponentMweb=!1,sO.ytSearchboxComponentDesktop=!0,sO["yt-searchbox-filled-query"]=function(){return q()},sO["ytd-masthead"]=function(){return!M()},sO.ytSearchboxComponentHostDark=aw,sO)),
role:"search",el:eM,"client-ve-type":10349},_.B("div",{el:gf,"on:click":wE,class:_.B8("ytSearchboxComponentInputBox",(B4.ytSearchboxComponentInputBoxDark=aw,B4.ytSearchboxComponentInputBoxHasFocus=M,B4))},_.B("form",{action:"/results",class:"ytSearchboxComponentSearchForm","on:submit":K6},_.B(_.g,{cond:M,then:function(){return _.B("div",{class:"ytSearchboxComponentInnerSearchIcon"},_.B(_.nS,{icon:"SEARCH"}))}}),_.B("input",{el:Ao,
class:_.B8("ytSearchboxComponentInput","yt-searchbox-input","title"),name:"search_query","aria-controls":EG,"aria-expanded":!((w$=GJ)==null?0:w$.hidden),type:"text",autocomplete:"off",autocorrect:"off",spellcheck:!1,"on:blur":iw,"on:focus":SI,"on:input":fZ,"on:keydown":ty,"on:paste":ST,placeholder:a.placeholderText,"aria-activedescendant":function(){var bw;return(bw=ed[v()])==null?void 0:bw[W()]},
"aria-autocomplete":"list",role:"combobox"})),_.B(_.g,{cond:n,then:function(){return _.B("div",{class:"ytSearchboxComponentYtdTextInputAssistantWrapper"},_.B(T6E,null))}}),_.B(_.g,{cond:q,
then:function(){return _.B("div",{class:"ytSearchboxComponentClearButtonWrapper"},_.B("button",{class:"ytSearchboxComponentClearButton","on:click":Ll,"aria-label":a.clearButtonAriaLabel||U40},_.B(_.nS,{icon:"DISMISSAL",className:"ytSearchboxComponentClearButtonIcon"}),_.B(_.Bc,{model:{}})))}})),_.B("button",{class:_.B8("ytSearchboxComponentSearchButton",(v9.ytSearchboxComponentSearchButtonDark=aw,v9)),
"on:click":K6,"aria-label":o1V,title:a.placeholderText},_.B(_.nS,{icon:"SEARCH"})),_.B(_.g,{cond:function(){if(y3E()&&_.K("mweb_voice_search")&&a.voiceSearchButton)return a.voiceSearchButton()},
then:function(bw){var He={};return _.B("div",{class:_.B8("ytSearchboxComponentVoiceSearchWrapper",(He.ytSearchboxComponentHideVoiceSearchButton=function(){return q()},He))},_.B(_.V0,{data:bw},{buttonRenderer:function(XM){return _.B(_.a1,{data:XM.data,
onButtonClickCallback:function(){}})}}))}}),_.B("div",{el:_.a5(function(bw){return void(GJ=bw)}),
id:EG,class:_.B8("ytSearchboxComponentSuggestionsContainer",(VV.ytSearchboxComponentSuggestionsContainerDark=aw,VV["yt-searchbox-suggestions-container"]=!1,VV.ytSearchboxComponentSuggestionsContainerScrollable=Kl(),VV.ytSearchboxComponentSuggestionsContainerAnimated=A,VV)),"on:scroll":SM,"on:mousemove":Wp,role:"listbox",hidden:!0},_.B(_.se,{each:F},function(bw,He){return _.B($40,{suggestion:bw,isHighlighted:function(){return He()===v()},
onClickCallback:NL,onHoverUpdateCallback:function(XM){if(_.K("desktop_enable_single_suggestion_highlight")){var f4=He();XM&&(l(0),d(f4))}},
onRemoveCallback:function(XM){WeE(Sf);XM===void 0||XM<0||oE().includes(XM)||Pe([].concat(_.ih(oE()),[XM]))},
labels:a.labels,queryBuilderFunction:SL,suggestionIndex:He,generateUniqueId:HL,highlightedId:function(){var XM;return(XM=ed[v()])==null?void 0:XM[W()]},
useScrollMargin:Kl(),isKeyboardMode:TJ})}),_.B(_.g,{cond:function(){return!e()&&F().find(function(bw){return bw.type!==35})&&_.K("searchbox_reporting")},
then:function(){return _.B("button",{class:"ytSearchboxComponentReportButton","on:mousedown":dE},_.AR("SBOX_INAPPROPRIATE_PROMPT",void 0,"Report search predictions"))}}),_.B(_.g,{cond:function(){return!nG()&&Kl()},
then:function(){return _.B("div",{class:"ytSearchboxComponentSuggestionsContainerFooter"},_.B("div",{class:"ytSearchboxComponentSuggestionsContainerFooterGradient",style:q$}))}})))},"fh"),"yt-searchbox",{props:{searchEndpoint:_.zl,
placeholderText:_.zl,labels:_.zl,voiceSearchButton:_.zl,focusCallback:_.I5,clearButtonAriaLabel:_.zl,forceDarkMode:_.zl}});var tZ=function(){var a=_.G.apply(this,arguments)||this;a.menuButtonTargetId="topbar-guide-menu";a.narrow=!1;a.menuStrings={BACK_ALT_LABEL:_.AR("BACK_ALT_LABEL",void 0,"Back"),GUIDE_ALT_LABEL:_.AR("GUIDE_ALT_LABEL",void 0,"Guide"),LOGO_ALT_LABEL:_.AR("LOGO_ALT_LABEL",void 0,"YouTube Home"),SEARCH_ALT_LABEL:_.AR("SBOX_PLACEHOLDER",void 0,"Search")};a.pageDarkTheme=document.documentElement.hasAttribute("dark");a.watchPageScrollTop=0;a.theater=!1;a.fullscreen=!1;a.disableFrostedGlassDuringViewTransition=
!1;a.desktopUnifiedSearchPanelMode=_.K("desktop_enable_unified_search_panel");a.cinematicTheaterMode=_.K("web_cinematic_theater_mode");a.ytSearchboxFocused=!1;a.searchboxLabels=_.Xw("SBOX_LABELS");a.topbarIsAboveChipbar=!1;a.isDarkThemeForced=!1;a.areGhostCardsHidden=!1;a.guideKeyboardToggle=!1;a.voiceSearchManager=yrM();a.actionMap={"yt-send-feedback-action":"onYtSendFeedbackAction","yt-fullscreen-change-action":"onFullscreenChangeAction"};a.setYtSearchboxFocused=function(z){a.ytSearchboxFocused=
z};
a.toggleFrostedGlassDuringViewTransition=function(z){a.disableFrostedGlassDuringViewTransition=z};
return a};
_.b(tZ,_.G);_.Z=tZ.prototype;_.Z.computeSimpleText=function(a){return _.cd(a)};
_.Z.onDarkChanged=function(){for(var a=_.C(this.buttons||[]),z=a.next();!z.done;z=a.next())z.value.isOverlay=!!this.dark;a=_.C(this.buttonRenderers||[]);for(z=a.next();!z.done;z=a.next())z.value.overrides=this.computeButtonOverride()};
_.Z.computeButtonOverride=function(){return this.dark?{style:"overlay"}:void 0};
_.Z.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"}}}};
_.Z.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","banner");var a=_.k3(_.yT(),"aa");_.CM(this.hostElement,"shell",!1);!this.hostElement.classList.contains("dark")&&!this.hostElement.classList.contains("theater")||a||(this.isDarkThemeForced=this.dark=!0);this.logoType?(a=this.hostElement.querySelector("#masthead-logo"))&&(_.K("polymer_on_demand_shady_dom")?a.setAttribute("slot","masthead-logo-old"):_.fo(a)):this.logo.hidden=!0;document.addEventListener("yt-watch-masthead-scroll",
_.BK(this,this.onWatchScroll));document.addEventListener("yt-set-theater-mode-enabled",_.BK(this,this.onSetTheaterModeEnabled));this.registerWithViewTransitionManager()};
_.Z.detached=function(){document.removeEventListener("yt-watch-masthead-scroll",_.BK(this,this.onWatchScroll));document.removeEventListener("yt-set-theater-mode-enabled",_.BK(this,this.onSetTheaterModeEnabled))};
_.Z.dataChanged=function(){var a=this.data;a&&(this.voiceEnabled=a.voiceSearchButton?yrM().isSupported():!1,_.KaG(_.Gc(),this.menuButtonTargetId,this.guideButton),a.onReceivedActions&&a.onReceivedActions.length>0&&!this.hasShownCreatorEmailOptInPopup&&(_.tR(this.hostElement,a.onReceivedActions,this.hostElement),this.hasShownCreatorEmailOptInPopup=!0),!this.hasRenderedWithData&&a&&(this.hasRenderedWithData=!0,this.logo.hidden=!1,_.CM(this.hostElement,"dark",!1),_.CM(this.hostElement,"theater",!1),
(a=this.hostElement.querySelector("#masthead-logo"))&&(_.K("polymer_on_demand_shady_dom")?a.setAttribute("slot","masthead-logo-old"):_.fo(a))))};
_.Z.computeCenterHidden=function(){var a;return this.data&&!((a=this.data.searchbox)==null?0:a.fusionSearchboxRenderer)};
_.Z.onRendererStamperFinished=function(){this.areGhostCardsHidden||(_.CM(this.hostElement,"masthead-finish",!0),this.areGhostCardsHidden=!0)};
_.Z.onWatchPageChange=function(){this.isWatchPage||this.resetBackground()};
_.Z.onWatchScroll=function(a){this.watchPageScrollTop=a.detail||0;this.updateMastheadBackgroundOpacity()};
_.Z.onFullscreenChangeAction=function(a){a||(this.watchPageScrollTop=0);this.fullscreen=a;this.updateMastheadBackgroundOpacity()};
_.Z.onSetTheaterModeEnabled=function(a){this.theater=a.detail.enabled;this.updateMastheadBackgroundOpacity()};
_.Z.updateMastheadBackgroundOpacity=function(){this.shouldShowCinematicMastHead()&&(this.isBigPlayer()?this.resetBackground():document.body.className.indexOf("lock-scrollbar")===-1&&this.setBackgroundOpacity(this.watchPageScrollTop))};
_.Z.resetBackground=function(){this.background.style.removeProperty("opacity");this.watchPageScrollTop=0};
_.Z.setBackgroundOpacity=function(a){a=this.calculateBackgroundOpacity(a);this.background.style.opacity=""+a};
_.Z.calculateBackgroundOpacity=function(a){var z=this.theater&&this.cinematicTheaterMode?.6:0,I=this.hostElement.clientHeight/2;return Math.min(Math.max(a,0),I)/I*(1-z)+z};
_.Z.shouldShowCinematicMastHead=function(){var a=_.K("kevlar_watch_grid")&&!_.K("swatchie_cinematic_masthead_ks");return this.isWatchPage&&(a||this.pageDarkTheme)};
_.Z.isBigPlayer=function(){return this.fullscreen||this.theater&&!this.cinematicTheaterMode};
_.Z.focusGuide=function(){this.guideButton.focus()};
_.Z.onGuideToggleTap=function(){_.PA(this.hostElement,"yt-guide-toggle",{isKeyInput:this.guideKeyboardToggle});this.guideKeyboardToggle=!1};
_.Z.onGuideButtonKeydown=function(){this.guideKeyboardToggle=!0};
_.Z.onGuideToggleHover=function(){_.PA(this.hostElement,"yt-guide-hover")};
_.Z.onSearchCloseClick=function(){this.ytdExpandableInputBehavior.showInput=!1};
_.Z.narrowChanged=function(){this.narrow?this.ytSearchboxFocused&&this.ytdExpandableInputBehavior.openOnClick_():this.ytdExpandableInputBehavior.showInput=!1};
_.Z.closeOnOutsideClickCondition=function(a){for(a=_.ch(a);a[0];){var z=a.shift();if(z instanceof Element&&z.id==="kbd")return!1}return!0};
_.Z.onVoiceTap=function(){this.pausePlayer();this.voiceSearchManager.start()};
_.Z.pausePlayer=function(){var a;(a=_.zI())==null||a.pause();this.pauseMiniplayer()};
_.Z.pauseMiniplayer=function(){if(this.isMiniplayerActive()){var a;(a=_.ab().resolve(_.UJ).getPlayerElement())==null||a.pause()}};
_.Z.isMiniplayerActive=function(){return _.ab().resolve(_.UJ).isMiniplayerActive()};
_.Z.updateNarrowFromBinding=function(a){this.narrow=a.detail.value};
_.Z.onYtSendFeedbackAction=function(){_.ZF(this.hostElement,"yt-close-popup-action",["ytd-multi-page-menu-renderer"])};
_.Z.registerWithViewTransitionManager=function(){Pg0(_.ab().resolve(_.bH),this.hostElement,this.toggleFrostedGlassDuringViewTransition)};
_.eH.Object.defineProperties(tZ.prototype,{guideIcon:{configurable:!0,enumerable:!0,get:function(){return _.K("enable_web_delhi_icons")?"menu":"yt-icons:menu"}},
shouldShowVoiceSearchButton:{configurable:!0,enumerable:!0,get:function(){return!!this.voiceEnabled&&!this.desktopUnifiedSearchPanelMode}},
voiceSearchButton:{configurable:!0,enumerable:!0,get:function(){if(this.desktopUnifiedSearchPanelMode){var a;return(a=this.data)==null?void 0:a.voiceSearchButton}}}});
tZ.prototype.narrowChanged=tZ.prototype.narrowChanged;tZ.prototype.onWatchPageChange=tZ.prototype.onWatchPageChange;tZ.prototype.onRendererStamperFinished=tZ.prototype.onRendererStamperFinished;tZ.prototype.dataChanged=tZ.prototype.dataChanged;tZ.prototype.onDarkChanged=tZ.prototype.onDarkChanged;_.L([_.Q(_.Ts),_.p("design:type",Object)],tZ.prototype,"ironResizableBehavior",void 0);_.L([_.Q(_.vXV),_.p("design:type",Object)],tZ.prototype,"ytdExpandableInputBehavior",void 0);
_.L([_.Q(_.cZ.YtdGuideStateAwareBehavior),_.p("design:type",Object)],tZ.prototype,"ytdGuideStateAwareBehavior",void 0);_.L([_.Q(_.u4.YtRendererstamperBehavior),_.p("design:type",Object)],tZ.prototype,"ytRendererstamperBehavior",void 0);_.L([_.Q(_.Ms.YtComponentBehavior),_.p("design:type",Object)],tZ.prototype,"ytComponentBehavior",void 0);_.L([_.Q(_.k.YtRendererBehavior),_.p("design:type",Object)],tZ.prototype,"ytRendererBehavior",void 0);
_.L([_.Q(_.Hc.YtActionHandlerBehavior),_.p("design:type",Object)],tZ.prototype,"ytActionHandlerBehavior",void 0);_.L([_.Q(_.pV),_.p("design:type",Object)],tZ.prototype,"ytdReduxBehavior",void 0);_.L([_.x(),_.p("design:type",Object)],tZ.prototype,"data",void 0);_.L([_.x(),_.p("design:type",Object)],tZ.prototype,"narrow",void 0);_.L([_.x(),_.p("design:type",Object)],tZ.prototype,"logoType",void 0);_.L([_.x(),_.p("design:type",Boolean)],tZ.prototype,"voiceEnabled",void 0);
_.L([_.x(),_.p("design:type",Object)],tZ.prototype,"menuStrings",void 0);_.L([_.x({reflectToAttribute:!0}),_.p("design:type",Boolean)],tZ.prototype,"dark",void 0);_.L([_.x({reflectToAttribute:!0}),_.p("design:type",Object)],tZ.prototype,"pageDarkTheme",void 0);_.L([_.x(),_.p("design:type",Object)],tZ.prototype,"watchPageScrollTop",void 0);_.L([_.x({reflectToAttribute:!0,selector:_.R33}),_.p("design:type",Boolean)],tZ.prototype,"isWatchPage",void 0);
_.L([_.x({reflectToAttribute:!0,selector:_.LhG}),_.p("design:type",Boolean)],tZ.prototype,"isShortsPage",void 0);_.L([_.x({reflectToAttribute:!0}),_.p("design:type",Object)],tZ.prototype,"theater",void 0);_.L([_.x({reflectToAttribute:!0}),_.p("design:type",Object)],tZ.prototype,"fullscreen",void 0);_.L([_.x({reflectToAttribute:!0,selector:_.m_1}),_.p("design:type",String)],tZ.prototype,"frostedGlassMode",void 0);
_.L([_.x({reflectToAttribute:!0}),_.p("design:type",Object)],tZ.prototype,"disableFrostedGlassDuringViewTransition",void 0);_.L([_.x(),_.p("design:type",Object)],tZ.prototype,"ytSearchboxFocused",void 0);_.L([_.s8("#buttons > *"),_.p("design:type",Array)],tZ.prototype,"buttons",void 0);_.L([_.s8("ytd-button-renderer"),_.p("design:type",Array)],tZ.prototype,"buttonRenderers",void 0);_.L([_.A3("#background"),_.p("design:type",HTMLDivElement)],tZ.prototype,"background",void 0);
_.L([_.A3("#guide-button"),_.p("design:type",Object)],tZ.prototype,"guideButton",void 0);_.L([_.A3("#logo"),_.p("design:type",Object)],tZ.prototype,"logo",void 0);_.L([_.x({computed:"computeButtonOverride(dark)"}),_.p("design:type",Object)],tZ.prototype,"buttonOverrides",void 0);_.L([_.Fe("dark"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],tZ.prototype,"onDarkChanged",null);_.L([_.x({value:function(){return this.onVoiceTap.bind(this)}}),
_.p("design:type",Function)],tZ.prototype,"boundOnTapVoiceButton",void 0);_.L([_.x(),_.p("design:type",Object)],tZ.prototype,"topbarIsAboveChipbar",void 0);_.L([_.x(),_.p("design:type",String),_.p("design:paramtypes",[])],tZ.prototype,"guideIcon",null);_.L([_.S("voiceEnabled"),_.p("design:type",Boolean),_.p("design:paramtypes",[])],tZ.prototype,"shouldShowVoiceSearchButton",null);_.L([_.S("data"),_.p("design:type",Object),_.p("design:paramtypes",[])],tZ.prototype,"voiceSearchButton",null);
_.L([_.Fe("data"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],tZ.prototype,"dataChanged",null);_.L([_.gz("yt-rendererstamper-finished"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],tZ.prototype,"onRendererStamperFinished",null);_.L([_.Fe("isWatchPage"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],tZ.prototype,"onWatchPageChange",null);
_.L([_.Fe("narrow"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],tZ.prototype,"narrowChanged",null);_.L([_.U({disableElementRegistration:!0,is:"ytd-masthead"})],tZ);
_.D(tZ,"ytd-masthead",function(){if(Vyf!==void 0)return Vyf;var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-masthead--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<iron-media-query query="max-width: 656px" query-matches="[[narrow]]" on-query-matches-changed="updateNarrowFromBinding" class="style-scope ytd-masthead">\n</iron-media-query>\n<div id="ticker" class="style-scope ytd-masthead"></div>\n<div id="interstitial" class="style-scope ytd-masthead"></div>\n<div id="background" hidden="[[hideBackground]]" class="style-scope ytd-masthead"></div>\n<div id="container" class="style-scope ytd-masthead">\n  <div id="start" class="style-scope ytd-masthead">\n    <yt-icon-button id="back-button" label="[[menuStrings.BACK_ALT_LABEL]]" on-click="onSearchCloseClick" class="style-scope ytd-masthead">\n      <yt-icon disable-upgrade$="[[!showInput]]" icon="yt-icons:arrow-back" class="style-scope ytd-masthead">\n      </yt-icon>\n    </yt-icon-button>\n    <tp-yt-paper-tooltip id="back-button-tooltip" disable-upgrade$="[[!showInput]]" for="back-button" class="style-scope ytd-masthead">\n      [[menuStrings.BACK_ALT_LABEL]]\n    </tp-yt-paper-tooltip>\n    <yt-icon-button id="guide-button" label="[[menuStrings.GUIDE_ALT_LABEL]]" pressed="[[guideOpened]]" toggleable="true" on-click="onGuideToggleTap" on-keydown="onGuideButtonKeydown" on-mouseenter="onGuideToggleHover" class="style-scope ytd-masthead">\n      <yt-icon id="guide-icon" icon="[[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');a.content.insertBefore(_.w().content.cloneNode(!0),
a.content.firstChild);return Vyf=a},{mode:_.Np("kevlar_poly_si_batch_j036")?1:2});var RJZ;var Lef={},lbz={},p5G={},w5z={},m44=(w5z.OFFLINE=(Lef["publicytnetworkstatus-online"]="BACK_ONLINE",Lef),w5z.ONLINE=(lbz["publicytnetworkstatus-offline"]="OFFLINE",lbz),w5z.BACK_ONLINE=(p5G["publicytnetworkstatus-offline"]="OFFLINE",p5G.TIMER_TRIGGER="ONLINE",p5G),w5z),u6=function(){var a=_.G.apply(this,arguments)||this;a.currentState="ONLINE";a.scheduledJobId=0;a.bannerString="";a.bannerVe=null;a.networkStatusManagerInstance=new _.wo;return a};
_.b(u6,_.G);_.Z=u6.prototype;_.Z.attached=function(){var a=this;this.networkStatusManagerInstance.isNetworkAvailable()||this.stateChangeHandler("publicytnetworkstatus-offline");this.networkStatusManagerInstance.listen("publicytnetworkstatus-online",function(){a.stateChangeHandler("publicytnetworkstatus-online")});
this.networkStatusManagerInstance.listen("publicytnetworkstatus-offline",function(){a.stateChangeHandler("publicytnetworkstatus-offline")})};
_.Z.detached=function(){var a=this;this.networkStatusManagerInstance.unlisten("publicytnetworkstatus-online",function(){a.stateChangeHandler("publicytnetworkstatus-online")});
this.networkStatusManagerInstance.unlisten("publicytnetworkstatus-offline",function(){a.stateChangeHandler("publicytnetworkstatus-offline")})};
_.Z.enterState=function(a){var z=this;this.scheduledJobId&&_.GW.cancelJob(this.scheduledJobId);a==="ONLINE"?(this.logVisibility(!1),this.bannerString=""):a==="OFFLINE"?(this.logVisibility(!0),this.bannerString=_.AR("NO_INTERNET_CONNECTION",void 0,"No internet connection")):a==="BACK_ONLINE"&&(this.bannerString=_.AR("BACK_ONLINE",void 0,"Back Online"),this.scheduledJobId=_.b9(_.GW,function(){z.stateChangeHandler("TIMER_TRIGGER")},3E3));
this.currentState=a};
_.Z.stateChangeHandler=function(a){(a=m44[this.currentState][a])&&this.enterState(a)};
_.Z.logVisibility=function(a){var z=_.TX();this.createBannerVe(a);z&&this.bannerVe&&(a?_.we(z,[this.bannerVe]):_.m8(z,[this.bannerVe]))};
_.Z.createBannerVe=function(a){!this.bannerVe&&a&&(this.bannerVe=_.uq(37929),_.sR(_.Kw(),this.bannerVe))};
_.L([_.x({reflectToAttribute:!0}),_.p("design:type",String)],u6.prototype,"currentState",void 0);_.L([_.x(),_.p("design:type",Object)],u6.prototype,"scheduledJobId",void 0);_.L([_.x(),_.p("design:type",Object)],u6.prototype,"bannerString",void 0);_.L([_.U({disableElementRegistration:!0,is:"ytd-network-status-banner"})],u6);
_.D(u6,"ytd-network-status-banner",function(){if(RJZ!==void 0)return RJZ;var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-network-status-banner--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="status-banner style-scope ytd-network-status-banner">\n       [[bannerString]]\n</div>\n');a.content.insertBefore(_.w().content.cloneNode(!0),a.content.firstChild);return RJZ=
a},{mode:1});var y9Z;var Ei=function(){var a=_.G.apply(this,arguments)||this;a.actionMap={"yt-update-permission-role-command":"handleUpdatePermissionRoleCommand"};a.hidden=!0;a.frostedGlass=_.K("web_frosted_glass");return a};
_.b(Ei,_.G);Ei.prototype.computeHidden=function(a){return a&&a.status?!1:!0};
Ei.prototype.handleUpdatePermissionRoleCommand=function(a){if(a=_.H(a,_.rVO))if(a=_.H(a.renderer,_.JVO))this.data=a};
_.L([_.Q(_.Hc.YtActionHandlerBehavior),_.p("design:type",Object)],Ei.prototype,"ytActionHandlerBehavior",void 0);_.L([_.Q(_.Ms.YtComponentBehavior),_.p("design:type",Object)],Ei.prototype,"componentBehavior",void 0);_.L([_.x({value:!0,computed:"computeHidden(data)"}),_.p("design:type",Object)],Ei.prototype,"hidden",void 0);_.L([_.x(),_.p("design:type",Object)],Ei.prototype,"data",void 0);_.L([_.x({reflectToAttribute:!0}),_.p("design:type",Boolean)],Ei.prototype,"frostedGlass",void 0);
_.L([_.U({disableElementRegistration:!0,is:"ytd-permission-role-bottom-bar-renderer"})],Ei);
_.D(Ei,"ytd-permission-role-bottom-bar-renderer",function(){if(y9Z!==void 0)return y9Z;var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-permission-role-bottom-bar-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="pom-role-text style-scope ytd-permission-role-bottom-bar-renderer" hidden="[[hidden]]">\n  <yt-formatted-string text="[[data.status]]" class="style-scope ytd-permission-role-bottom-bar-renderer"></yt-formatted-string>\n</div>\n');a.content.insertBefore(_.w().content.cloneNode(!0),
a.content.firstChild);return y9Z=a},{mode:1});var kUe;var My0;var TdV={productId:"5047190",bucket:"suggest",enableAnonymousFeedback:!0,flow:"submit",allowNonLoggedInFeedback:!0};var Bo=function(){return _.G.apply(this,arguments)||this};
_.b(Bo,_.G);_.Z=Bo.prototype;_.Z.attached=function(){this.JSC$20617_scroller&&(this.JSC$20617_scroller.dialogElement=this.hostElement.parentNode,this.JSC$20617_scroller.attached&&typeof this.JSC$20617_scroller.attached==="function"&&this.JSC$20617_scroller.attached());this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.Z.dataChanged=function(){if(this.data!==void 0){Array.prototype.slice.call(this.hostElement.querySelectorAll("tp-yt-paper-checkbox")).forEach(function(I){I.checked=!1});
this.catagorySelected=this.suggestionSelected=!1;var a=_.PK(this.hostElement);a.querySelector("tp-yt-paper-radio-group").selected="";var z=a.querySelector("#reason-text");z&&(z.value="");a.querySelector("#description-text").value=""}};
_.Z.canSubmit=function(a,z){_.PA(this.hostElement,"yt-invalidate-popup-tabbables");return!(a&&z)};
_.Z.onCancel=function(){_.ZF(this.hostElement,"yt-close-popup-action",["ytd-search-suggestion-report-dialog"])};
_.Z.onSubmit=function(){var a=Array.prototype.slice.call(this.hostElement.querySelectorAll("tp-yt-paper-checkbox")).filter(function(P){return P.active}).map(function(P){return P.innerText.trim()}),z=this.hostElement.querySelector("tp-yt-paper-radio-group"),I=z.selectedItem,J=I.name;
I=I.innerText.trim();var r=z.querySelector("#reason-text");z=void 0;r&&(z=r.value);(r=this.descriptionText.value)&&(r=r.trim());dpV(this.data.searchQuery,a,J,I,r,z);_.ZF(this.hostElement,"yt-close-popup-action",["ytd-search-suggestion-report-dialog"]);this.sendFormSubmitToast()};
_.Z.sendFormSubmitToast=function(){var a=_.jt(_.AR("SBOX_INAPPROPRIATE_TOAST"));_.ZF(this.hostElement,"yt-open-popup-action",[a,this])};
_.Z.onIronChange=function(){this.suggestionSelected=Array.prototype.slice.call(this.hostElement.querySelectorAll("tp-yt-paper-checkbox")).some(function(a){return a.active})};
_.Z.onIronSelect=function(){this.catagorySelected=!!this.hostElement.querySelector("tp-yt-paper-radio-group").selected};
Bo.prototype.onIronSelect=Bo.prototype.onIronSelect;Bo.prototype.onIronChange=Bo.prototype.onIronChange;Bo.prototype.dataChanged=Bo.prototype.dataChanged;_.L([_.x(),_.p("design:type",Object)],Bo.prototype,"data",void 0);_.L([_.x({value:!0,computed:"canSubmit(suggestionSelected,catagorySelected)"}),_.p("design:type",Boolean)],Bo.prototype,"submitDisabled",void 0);_.L([_.x(),_.p("design:type",Boolean)],Bo.prototype,"suggestionSelected",void 0);
_.L([_.x(),_.p("design:type",Boolean)],Bo.prototype,"catagorySelected",void 0);_.L([_.A3("#scroller"),_.p("design:type",Object)],Bo.prototype,"JSC$20617_scroller",void 0);_.L([_.A3("#description-text"),_.p("design:type",Object)],Bo.prototype,"descriptionText",void 0);_.L([_.Fe("data"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],Bo.prototype,"dataChanged",null);
_.L([_.gz("iron-change"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],Bo.prototype,"onIronChange",null);_.L([_.gz("iron-select"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],Bo.prototype,"onIronSelect",null);_.L([_.U({disableElementRegistration:!0,is:"ytd-search-suggestion-report-dialog"})],Bo);
_.D(Bo,"ytd-search-suggestion-report-dialog",function(){if(My0!==void 0)return My0;var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-search-suggestion-report-dialog--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<tp-yt-paper-dialog-scrollable id="scroller" class="style-scope ytd-search-suggestion-report-dialog">\n  <div id="content" class="style-scope ytd-search-suggestion-report-dialog">\n    <h2 id="title" class="style-scope ytd-search-suggestion-report-dialog">[[data.title]]</h2>\n    <div id="suggestions" class="style-scope ytd-search-suggestion-report-dialog">\n      <template is="dom-repeat" items="[[data.suggestions]]" class="style-scope ytd-search-suggestion-report-dialog">\n        <tp-yt-paper-checkbox class="style-scope ytd-search-suggestion-report-dialog">[[item.label]]</tp-yt-paper-checkbox>\n      </template>\n    </div>\n    <tp-yt-paper-radio-group id="categories" class="style-scope ytd-search-suggestion-report-dialog">\n      <h2 id="category-title" class="style-scope ytd-search-suggestion-report-dialog">[[data.categoryLabel]]</h2>\n      <yt-formatted-string id="category-title" text="[[data.categoryLabel]]" class="style-scope ytd-search-suggestion-report-dialog">\n      </yt-formatted-string>\n      <template is="dom-repeat" items="[[data.categories]]" class="style-scope ytd-search-suggestion-report-dialog">\n        <tp-yt-paper-radio-button name="[[item.id]]" class="style-scope ytd-search-suggestion-report-dialog">\n          [[item.label]]\n          <template is="dom-if" if="[[item.reasonLabel]]" class="style-scope ytd-search-suggestion-report-dialog">\n            <tp-yt-paper-input-container id="reason" no-label-float="" use-v2-underline="" class="style-scope ytd-search-suggestion-report-dialog">\n              <tp-yt-iron-autogrow-textarea id="reason-text" class="paper-input-input style-scope ytd-search-suggestion-report-dialog" slot="input" maxlength="500" placeholder="[[item.reasonLabel]]" rows="1">\n              </tp-yt-iron-autogrow-textarea>\n            </tp-yt-paper-input-container>\n          </template>\n        </tp-yt-paper-radio-button>\n      </template>\n    </tp-yt-paper-radio-group>\n    <tp-yt-paper-input-container id="details" no-label-float="" use-v2-underline="" class="style-scope ytd-search-suggestion-report-dialog">\n      <tp-yt-iron-autogrow-textarea id="description-text" class="paper-input-input style-scope ytd-search-suggestion-report-dialog" slot="input" maxlength="500" placeholder="[[data.detailsPlaceholderLabel]]" rows="2">\n      </tp-yt-iron-autogrow-textarea>\n      <tp-yt-paper-input-char-counter slot="add-on" class="style-scope ytd-search-suggestion-report-dialog"></tp-yt-paper-input-char-counter>\n    </tp-yt-paper-input-container>\n  </div>\n</tp-yt-paper-dialog-scrollable>\n<div id="footer" class="style-scope ytd-search-suggestion-report-dialog">\n  <tp-yt-paper-button id="cancel" on-tap="onCancel" class="style-scope ytd-search-suggestion-report-dialog">[[data.cancelButtonLabel]]</tp-yt-paper-button>\n  <tp-yt-paper-button id="submit" disabled="[[submitDisabled]]" on-tap="onSubmit" class="style-scope ytd-search-suggestion-report-dialog">\n    [[data.submitButtonLabel]]\n  </tp-yt-paper-button>\n</div>\n');a.content.insertBefore(_.w().content.cloneNode(!0),
a.content.firstChild);return My0=a},{mode:1});var g5=function(a){var z=a.openPopupAction;var I=a.target;var J=a.container;var r=a.popupContainerConfig;var P=a.getElement;a=a.removeWhenClosed===void 0?!1:a.removeWhenClosed;this.naturalHeight=this.popupContent=this.popup=void 0;this.openPopupAction=z;this.target=I;this.container=J;this.popupContainerConfig=r;this.getElement=P;this.JSC$20623_popupConfig=this.popupContainerConfig.JSC$19755_popupConfig[this.openPopupAction.popupType];this.rendererName=(z=this.getName())?_.$h0(z,hPV(this.popupContainerConfig,
z)):"";_.K("ytpopup_disable_default_html_caching")&&(this.removeWhenClosed=a);this.createPopup()};
g5.prototype.updatePopup=function(a){this.openPopupAction=a;this.JSC$20623_popupConfig=this.popupContainerConfig.JSC$19755_popupConfig[this.openPopupAction.popupType];c9i(this);_.K("kevlar_keyboard_button_focus")&&(this.popup.restoreFocusOnClose=!0)};
g5.prototype.refit=function(){this.popup.opened&&this.popup.refit()};
var eJM=function(a,z,I){(z=z&&a.JSC$20623_popupConfig.narrowProperties?a.JSC$20623_popupConfig.narrowProperties:a.JSC$20623_popupConfig.properties)&&I!==void 0&&(z.isAriaModal=I);YpG(a,z);a.isRtl()&&YpG(a,a.JSC$20623_popupConfig.rtlProperties);qpZ(a)};
g5.prototype.createPopup=function(){var a=this.JSC$20623_popupConfig.component;if(this.popupContent=aCV(this,this.rendererName)){if(a){this.popup=aCV(this,a);var z=this.popupContent;_.K("web_enable_wrapper_for_cow_component_in_popup")&&(z=document.createElement("div"),z.appendChild(this.popupContent));_.K("kevlar_keyboard_button_focus")&&(this.popup.restoreFocusOnClose=!0);this.JSC$20623_popupConfig.slotName&&z.setAttribute("slot",this.JSC$20623_popupConfig.slotName);a=this.popup;var I=this.container.tagName.toLowerCase(),
J=_.q1(z);_.uQ0(_.aQ(a),_.IQ(z,I,J));document.body.appendChild(this.popup)}else this.popup=this.popupContent;_.K("ytpopup_disable_default_html_caching")&&(this.popup.removeWhenClosed=this.removeWhenClosed);_.PK(this.container).appendChild(this.popup)}};
var c9i=function(a){var z,I,J=(z=a.openPopupAction.accessibilityData)==null?void 0:(I=z.accessibilityData)==null?void 0:I.label;J&&(a.popup.ariaLabel=J);var r;((r=a.popupContent.polymerController)!=null?r:a.popupContent).data=(0,_.x8.unsafeClone)(a.openPopupAction.popup[a.getName()]);a.popupContent.duration=jCM(a);a.popupContent.positionType=a.openPopupAction.position;var P=a.openPopupAction.properties;P&&Object.keys(P).forEach(function(N){a.popupContent[N]=P[N]})},YpG=function(a,z){if(z)for(var I=
_.C(Object.keys(z)),J=I.next();!J.done;J=I.next())J=J.value,a.popup[J]=z[J]},qpZ=function(a){if(a.openPopupAction.position){var z=a.JSC$20623_popupConfig.positionalProperties&&a.JSC$20623_popupConfig.positionalProperties[a.openPopupAction.position],I=a.JSC$20623_popupConfig.rtlPositionalProperties&&a.JSC$20623_popupConfig.rtlPositionalProperties[a.openPopupAction.position];
z=a.isRtl()&&I?I:z;z.shiftedHorizontalOffset&&(I=a.popup.style.display,a.popup.style.display="block",a.popupContent&&a.popup.positionTarget&&a.popupContent.clientWidth>a.popup.positionTarget.clientWidth&&(z.horizontalOffset=a.popup.positionTarget.clientWidth/2-z.shiftedHorizontalOffset),a.popup.style.display=I);YpG(a,z)}},zlE=function(a,z){if(z)for(var I=_.C(Object.keys(z)),J=I.next();!J.done;J=I.next())J=J.value,a.popup.style[J]=z[J]};
g5.prototype.getName=function(){return _.v3(this.openPopupAction.popup,"renderer")||_.v3(this.openPopupAction.popup,"dialog")||_.v3(this.openPopupAction.popup,"model")||void 0};
var jCM=function(a){a=a.openPopupAction.durationHintMs;return a===0?a:Math.max(4E3,a||4E3)};
g5.prototype.isRtl=function(){return _.Xw("HTML_DIR")==="rtl"};
var aCV=function(a,z){a=a.getElement(z,a.target);a==null&&_.Xd(new _.Fn("popup getElement returned null",z));return a};var ICM={};
ICM.YtPopupContainerBehavior=[_.Ms.YtComponentBehavior,_.Hc.YtActionHandlerBehavior,{created:function(){this.popupContainerConfig=null;this.popups_={};this.shownPopupKeys_=new Set;this.popupContainerActionMap_={"yt-close-popup-action":"handleClosePopupAction_","yt-close-popup-command":"handleClosePopupCommand_","yt-close-popups-action":"handleClosePopupsAction_","yt-close-all-popups-action":"handleCloseAllPopupsAction_","yt-get-popup-opened-action":"handleGetPopupOpenedAction_","yt-get-opened-popups-action":"handleGetOpenedPopupsAction_","yt-open-popup-action":"handleOpenPopupAction",
"yt-signal-action-close-popup":"handleSignalActionClosePopup_","yt-window-scrolled":"windowResizedOrScrolled_","yt-window-resized":"windowResizedOrScrolled_","yt-refit-popups-action":"refitPopups_"};this.narrowMediaQuery_=void 0;this.repositionEventsBound_=!1;this.setPopupVisibilityJobId_=this.setPopupPositioningJobId_=0;this.dynamicallyPositionedElements_=new Set;this.isAriaModal=!1},
attached:function(){this.registerActionMap(this.popupContainerActionMap_);_.I_(this.hostElement,!1)},
detached:function(){this.unregisterActionMap(this.popupContainerActionMap_);_.JR(this.hostElement)},
closePopup:function(a){var z=this.createCacheKey(void 0,a);this.popups_[z]&&this.handleClosePopupAction_(void 0,a)},
windowResizedOrScrolled_:function(){this.setPopupPositioningJobId_||(this.setPopupPositioningJobId_=_.GW.addLowPriorityJob(this.setPopupPositioning_.bind(this)));this.setPopupVisibilityJobId_||(this.setPopupVisibilityJobId_=_.GW.addLowPriorityJob(this.setPopupVisibility_.bind(this)))},
setPopupPositioning_:function(){this.dynamicallyPositionedElements_.forEach(function(a){a.opened&&a.keepBelowPlayer&&this.ensurePopupBelowPlayer(a)},this);
this.setPopupPositioningJobId_=0},
setPopupVisibility_:function(){for(var a in this.popups_){var z=this.popups_[a];if(z.popup.scrollAction==="refit"){var I=z.popup.positionTarget.getBoundingClientRect(),J=z.popup;I=I.top;var r=z;if(!r.naturalHeight){r.popup.hidden=!1;r.popup.style.position="fixed";r.popup.style.top="0px";r.popup.style.left="0px";var P=r.popup.getBoundingClientRect();r.naturalHeight=P.bottom-P.top;r.popup.refit()}J.hidden=!(I>=r.naturalHeight+60);z.popupContent.clientHeight===0&&z.popup.refit()}}this.setPopupVisibilityJobId_=
0},
ensurePopupBelowPlayer:function(){return!1},
initPopupContainerBehavior:function(a){this.popupContainerConfig=a},
handleOpenPopupAction:function(a,z){var I=a.openPopupAction,J=_.ab().resolve(_.eL(_.hs))&&I.popupType==="TOAST";J&&!I.uniqueId&&(I.uniqueId=_.kn());if(!_.K("popup_container_parent_target_killswitch")){var r;z=(r=this.getParentTarget(z))!=null?r:z}var P=this.ensurePopup_(I,z);return new _.Ba(function(N){P.then(function(u){if(!u)return N();this.maybeCreateNarrowMediaQuery_();var E=this.createCacheKey(u.rendererName,u.openPopupAction.uniqueId);if(I.showOncePerUniqueId){if(this.shownPopupKeys_.has(E))return N();
this.shownPopupKeys_.add(E)}E=this.popups_[E];var O=!(!E||!E.openPopupAction.beReused);O=!!I.reusePopup||O;if(u.popup.opened&&!O){J&&!u.openPopupAction.replacePopup||this.handleClosePopupAction_(u.rendererName,u.openPopupAction.uniqueId);O=I.popupType==="DIALOG"&&!_.K("popup_container_dialog_reopen_killswitch");if(!J&&!O&&E&&E.target==z&&!u.openPopupAction.replacePopup)return N();_.Yv(u.popup,function(){this.completeOpenPopupAction_(I,z,u);N()}.bind(this))}else u.popup.opened?u.updatePopup(I):this.completeOpenPopupAction_(I,
z,u),N()}.bind(this))}.bind(this))},
getParentTarget:function(a){if(a&&a instanceof HTMLElement)for(var z=_.C(Object.entries(this.popups_)),I=z.next();!I.done;I=z.next())if(I=_.C(I.value),I.next(),I=I.next().value,I.popup.tagName==="TP-YT-IRON-DROPDOWN"&&a.closest(I.rendererName))return I.target},
completeOpenPopupAction_:function(a,z,I){I.updatePopup(a);a=this.narrowMediaQuery_.queryMatches;var J=this.isAriaModal;I.target=z;var r;z=((r=I.target.polymerController)!=null?r:I.target).popupPositionTarget||I.target;I.JSC$20623_popupConfig.targetContainer&&(z=I.container);I.popup.positionTarget=z;I.popupContent.positionTarget=z;qpZ(I);I.JSC$20623_popupConfig.forceFocus&&(I.popupContent.style.outline="none");I.popupContent.tabIndex=-1;I.JSC$20623_popupConfig.narrowProperties&&(I.popup.style.position=
"static");I.JSC$20623_popupConfig.preventAutonav&&I.popup.setAttribute("prevent-autonav",!0);I.JSC$20623_popupConfig.forceCloseOnOutsideClick&&I.popup.setAttribute("force-close-on-outside-click",!0);eJM(I,a,J);zlE(I,I.JSC$20623_popupConfig.styles);I.isRtl()&&zlE(I,I.JSC$20623_popupConfig.rtlStyles);if(!I.openPopupAction.shouldStopParentSignal){var P;r=(P=I.target.polymerController)!=null?P:I.target;(I.popupContent.startForwardingEvents||I.popupContainerConfig.forwardingEnabledPopups.has(I.rendererName))&&
r.parentComponent!==I.popupContent&&I.popupContent!==I.target&&I.target!==document.body&&(I.popupContent.startForwardingEvents?I.popupContent.startForwardingEvents(I.popupContainerConfig.forwardedEvents,I.target):(I.JSC$20623_eventForwarder||(I.JSC$20623_eventForwarder=new _.Zy(I.popupContent)),I.JSC$20623_eventForwarder.start(I.popupContainerConfig.forwardedEvents,I.target)))}I=I.popup;I.addEventListener("iron-overlay-opened",_.BK(this,this.onPopupIronOverlayOpened_));I.addEventListener("iron-overlay-closed",
_.BK(this,this.onPopupIronOverlayClosed_));I.addEventListener("iron-overlay-canceled",_.BK(this,this.onPopupIronOverlayCanceled_));I.addEventListener("yt-refit",_.BK(this,this.refitPopup_));I.addEventListener("yt-invalidate-popup-tabbables",_.BK(this,this.handleInvalidatePopupTabbables_));I.open()},
getPopupDurationMs_:function(a){return a.durationHintMs===0?a.durationHintMs:Math.max(4E3,a.durationHintMs||4E3)},
handleClosePopupAction_:function(a,z){var I=_.K("web_popup_cache_key_killswitch")||!!z;if(a||I){var J=this.createCacheKey(a,z);a=(a=this.popups_[J])&&a.popup}else a=_.Lyo(_.y_);if(a&&a.close){if(z=_.ab().resolve(_.eL(_.ET)))a.restoreFocusOnClose=z.isKeyBoardInUse();a.close();this.removePopup_(a,J)}},
handleClosePopupCommand_:function(a){a.closePopupCommand&&a.closePopupCommand.uniquePopupId&&this.handleClosePopupAction_(void 0,a.closePopupCommand.uniquePopupId)},
handleCloseAllPopupsAction_:function(a){var z={},I;for(I in this.popups_)if(z={key$jscomp$1185:z.key$jscomp$1185},z.key$jscomp$1185=I,!a||!a.some(function(P){return function(N){return N==P.key$jscomp$1185}}(z))){var J=this.popups_[z.key$jscomp$1185],r=J.popup;
_.ab().resolve(_.eL(_.hs))&&J.openPopupAction.popupType==="TOAST"||(r&&r.close&&r.close(),this.removePopup_(r,z.key$jscomp$1185))}},
handleClosePopupsAction_:function(a){a.forEach(function(z){var I=this.popups_[z];I&&((I=I.popup)&&I.close&&I.close(),this.removePopup_(I,z))}.bind(this))},
handleGetPopupOpenedAction_:function(a,z){return(z=this.createCacheKey(a,z))&&this.popups_[z]?this.popups_[a].popup.opened:!1},
handleGetOpenedPopupsAction_:function(){var a=[],z;for(z in this.popups_){var I=this.popups_[z];I.popup.opened&&a.push(I)}return a},
getOpenedPopups:function(){this.handleGetOpenedPopupsActions_()},
handleSignalActionClosePopup_:function(){this.handleCloseAllPopupsAction_()},
removePopup_:function(a,z){_.K("ytpopup_disable_default_html_caching")&&a&&a.removeWhenClosed&&(_.PK(this.hostElement).removeChild(a),z&&this.popups_[z]&&delete this.popups_[z])},
shouldReusePopup_:function(a){return!(!a||!a.reusePopup)||!(!a||!a.beReused)},
ensurePopup_:function(a,z){this.maybeCreateNarrowMediaQuery_();var I=_.v3(a.popup,"renderer")||_.v3(a.popup,"dialog")||_.v3(a.popup,"model");if(!I)return _.uI();I=_.$h0(I,hPV(this.popupContainerConfig,I));return _.uI(this.getAndMaybeCreatePopup_(a,I,z))},
getAndMaybeCreatePopup_:function(a,z,I){var J=this.createCacheKey(z,a.uniqueId);if(this.popups_[J])return this.popups_[J];a=new g5({openPopupAction:a,target:I,container:this.hostElement,popupContainerConfig:this.popupContainerConfig,getElement:this.getElement.bind(this),removeWhenClosed:this.shouldRemoveWhenClosed_(z)});return this.popups_[J]=a},
getElement:function(){return null},
shouldRemoveWhenClosed_:function(a){return _.K("ytpopup_disable_default_html_caching")?a&&a.includes("view-model"):!1},
maybeCreateNarrowMediaQuery_:function(){this.narrowMediaQuery_||(this.narrowMediaQuery_=document.createElement("iron-media-query"),this.narrowMediaQuery_.query="(max-width: 656px)",this.narrowMediaQuery_.addEventListener("query-matches-changed",_.BK(this,this.openPopupQueryMatchesChanged_)),_.PK(this.hostElement).appendChild(this.narrowMediaQuery_))},
openPopupQueryMatchesChanged_:function(a){a=a.detail.value;for(var z in this.popups_)eJM(this.popups_[z],a)},
onPopupIronOverlayClosed_:function(a){var z=a.currentTarget,I=_.GqI(z);I=I.length>0?I[0]:z;if(I.is!=="ytd-reel-watch-while-dialog-renderer"||a.target.is!=="tp-yt-iron-dropdown"){a.detail.popup=z;a.detail.popupRenderer=I;var J,r={context:{openingElement:((J=this.popups_[(I==null?void 0:I.is)||""])==null?void 0:J.target)||void 0}};Object.assign(r,a.detail);var P;_.PA((P=I.hostElement)!=null?P:I,"yt-popup-closed",r);z.removeEventListener("yt-refit",_.BK(this,this.refitPopup_));z.removeEventListener("yt-invalidate-popup-tabbables",
_.BK(this,this.handleInvalidatePopupTabbables_));z.removeEventListener("iron-overlay-canceled",_.BK(this,this.onPopupIronOverlayCanceled_));z.removeEventListener("iron-overlay-closed",_.BK(this,this.onPopupIronOverlayClosed_));this.dynamicallyPositionedElements_.delete(z)}},
onPopupIronOverlayCanceled_:function(a,z){var I=a.currentTarget,J=_.GqI(I);J=J.length>0?J[0]:I;if(J.is!=="ytd-reel-watch-while-dialog-renderer"||a.target.is!=="tp-yt-iron-dropdown"){var r;_.PA((r=J.hostElement)!=null?r:J,"yt-popup-canceled",a.detail);r=z?_.ch(z):null;(!z||["click","tap"].includes(z.type))&&!I.hasAttribute("force-close-on-outside-click")&&I.positionTarget&&r&&r.includes(I.positionTarget)&&a.preventDefault();I.restoreFocusOnClose=_.V_.keyboardEventMatchesKeys(z,"esc")}},
onPopupIronOverlayOpened_:function(a){a=a.currentTarget;var z=_.GqI(a);z=z.length>0?z[0]:a;var I,J;_.PA((I=z.hostElement)!=null?I:z,"yt-popup-opened",(J=z.hostElement)!=null?J:z);a.keepBelowPlayer&&(this.ensurePopupBelowPlayer(a,!0),this.dynamicallyPositionedElements_.add(a));I=_.ab().resolve(_.eL(_.ET));J=!!z.querySelector("#toast");I&&I.isKeyBoardInUse()&&!J&&(typeof z.focusFirstItem==="function"?z.focusFirstItem():(z=_.UA1(a),z.length&&z[0].focus()));a.removeEventListener("iron-overlay-opened",
_.BK(this,this.onPopupIronOverlayOpened_))},
refitPopup_:function(a){a=a.currentTarget;a.refit&&a.refit()},
refitPopups_:function(){for(var a in this.popups_)this.popups_[a].refit()},
handleInvalidatePopupTabbables_:function(a){a=a.currentTarget;a.invalidateTabbables&&a.invalidateTabbables()},
createCacheKey:function(a,z){return _.K("web_popup_cache_key_killswitch")?z?a+"#"+z:a:z?"#"+z:a},
openSheet:function(a,z){var I=a==null?void 0:a.openPopupActionCommand;!I&&(a==null?0:a.viewModel)&&(I={openPopupAction:{popup:{sheetViewModel:a.viewModel},popupType:"CONTEXTUAL_SHEET"}});I&&this.handleOpenPopupAction(I,z)},
closeSheet:function(){this.handleClosePopupAction_("yt-sheet-view-model")},
isSheetOpen:function(){var a=this;return _.t(function(z){return z.return(a.handleGetOpenedPopupsAction_().filter(function(I){var J;return((J=I.openPopupAction)==null?void 0:J.popupType)==="CONTEXTUAL_SHEET"}).length>0)})},
getSheetContainerElement:function(){return this.hostElement},
openDialog:function(a,z,I){if(_.K("web_dialog_utils_killswitch")){var J=a==null?void 0:a.openPopupActionCommand,r=(I==null?0:I.ariaLabel)?{accessibilityData:{accessibilityData:{label:I.ariaLabel}}}:void 0;!J&&(a==null?0:a.viewModel)&&(J={openPopupAction:Object.assign({},{popup:{dialogViewModel:a.viewModel},popupType:(I==null?0:I.isModal)?"MODAL":"DIALOG"},r&&r)});J&&this.handleOpenPopupAction(J,z)}else{if(r=a==null?void 0:a.viewModel){var P=I=I===void 0?{}:I;I=P.ariaLabel;r={popup:{dialogViewModel:r},
popupType:P.isModal?"MODAL":"DIALOG"};P={accessibilityData:{label:I}};I&&(r.accessibilityData=P);r={openPopupAction:r}}else r=void 0;if(r=(J=r)!=null?J:a==null?void 0:a.openPopupActionCommand)this.isAriaModal=_.K("web_dialog_aria_modal_killswitch")?!1:!0,this.handleOpenPopupAction(r,z)}},
closeDialog:function(){this.handleClosePopupAction_("yt-dialog-view-model")},
isDialogOpen:function(){var a=this;return _.t(function(z){return z.return(a.handleGetOpenedPopupsAction_().filter(function(I){var J;return((J=I.openPopupAction)==null?void 0:J.popupType)==="DIALOG"}).length>0)})}}];var JdY;var rdE;var P50=_.kK(["about:blank"]),Oi=function(){var a=_.G.apply(this,arguments)||this;a.isMuted=!1;a.pageLoadTimeoutId=void 0;return a};
_.b(Oi,_.G);_.Z=Oi.prototype;_.Z.dataChanged=function(){var a=this;if(this.data){this.ytRendererBehavior.markDirty();this.isMuted=!1;var z=this.data.url,I=_.$k(z);_.K("enable_yt_ata_iframe_authuser")?(I=_.$k(z),_.lj(this.iframe,WoM(I))):_.lj(this.iframe,I);this.pageLoadTimeoutId=_.b9(_.ig(),function(){return void a.logStateChanged({pageLoadTimedOut:!0})},5E3);
_.ac({destination:window,iframe:this.iframe,origin:_.X4e(I.toString()),channelName:"ataiframe",onMessage:_.UN0(iN0,function(J){xsM(J.data)?(J=_.pZ(J.data,1,_.YG,_.jW()),J.length!==1?_.Xd(Error("tl")):(J=J[0],J===3?(a.isMuted=!0,a.logStateChanged({adMuteRequested:!0})):J===1&&a.close())):_.Xd(Error("ul"))}),
onEstablished:function(){a.cancelPageLoadTimeout();a.logStateChanged({pageLoadSucceeded:!0})}})}};
_.Z.cancelPageLoadTimeout=function(){this.pageLoadTimeoutId!==void 0&&(_.ig().cancelJob(this.pageLoadTimeoutId),this.pageLoadTimeoutId=void 0)};
_.Z.logStateChanged=function(a){var z;if((z=this.data)==null?0:z.trackingParams)a={adsClientData:{aboutThisAdData:a}},_.Kw().stateChanged(this.data.trackingParams,a)};
_.Z.close=function(){_.ZF(this.hostElement,"yt-close-popup-action",[this.is])};
_.Z.handlesPopupClosed=function(a,z){var I=this,J,r;return _.t(function(P){if(P.nextAddress==1)return _.Xw("INNERTUBE_CLIENT_NAME")==="WEB_KIDS"?(_.ZF(I.hostElement,"on-about-this-ad-popup-closed",[I.isMuted,z]),P.jumpTo(0)):a&&oN0(a)?P.yield(Up4(a),4):(I.isMuted&&_.ZF(I.hostElement,"yt-mute-ad-action",[I.is,I]),P.jumpTo(0));if(J=P.yieldResult){var N=r=new _.Gq(J),u=I.isMuted;N.getOptions().includes("onAboutThisAdPopupClosed")?_.qQi(N,"onAboutThisAdPopupClosed",{isMuted:u,layoutId:z}):_.Mh("Calling onAboutThisAdPopupClosed when adModule is not loaded")}_.nu(P)})};
_.Z.onPopupClosed=function(a){var z=this,I,J;return _.t(function(r){I=_.Jz(P50);_.lj(z.iframe,I);z.cancelPageLoadTimeout();if(!z.data)return r.jumpTo(0);z.ytRendererBehavior.markDirty();J=a.detail.context.openingElement;return r.yield(z.handlesPopupClosed(J,z.data.layoutId),0)})};
_.Z.detached=function(){this.cancelPageLoadTimeout()};
_.Z.ready=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
Oi.prototype.onPopupClosed=Oi.prototype.onPopupClosed;Oi.prototype.dataChanged=Oi.prototype.dataChanged;_.L([_.Q(_.k.YtRendererBehavior),_.p("design:type",Object)],Oi.prototype,"ytRendererBehavior",void 0);_.L([_.A3("#iframe"),_.p("design:type",HTMLIFrameElement)],Oi.prototype,"iframe",void 0);_.L([_.x(),_.p("design:type",Object)],Oi.prototype,"data",void 0);_.L([_.O8("data"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],Oi.prototype,"dataChanged",null);
_.L([_.gz("yt-popup-closed"),_.p("design:type",Function),_.p("design:paramtypes",[CustomEvent]),_.p("design:returntype",Promise)],Oi.prototype,"onPopupClosed",null);_.L([_.dz({is:"yt-about-this-ad-renderer",disableElementRegistration:!0})],Oi);
_.D(Oi,"yt-about-this-ad-renderer",function(){if(rdE===void 0){var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-about-this-ad-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.ads.yt_about_this_ad_renderer.yt.about.this.ad.renderer.css.js--\x3e<iframe id="iframe" class="style-scope yt-about-this-ad-renderer"></iframe>');a.content.insertBefore(_.w().content.cloneNode(!0),
a.content.firstChild);var z=a.content,I=z.insertBefore;JdY===void 0&&(JdY=document.createElement("template"));var J=JdY;I.call(z,J.content.cloneNode(!0),a.content.firstChild);rdE=a}a=rdE;return a},{mode:2});var ZK4;var C5E;var AZ=function(a){var z=Error.call(this,"Try adding a file that's {$maxFileSizeMB}MB or smaller");this.message=z.message;"stack"in z&&(this.stack=z.stack);this.maxFileSizeMB=a;Object.setPrototypeOf(this,AZ.prototype)};
_.b(AZ,Error);var Nx0=function(a,z){var I=Error.call(this,"Images must be at least {$minWidth} x {$minHeight} pixels");this.message=I.message;"stack"in I&&(this.stack=I.stack);this.minWidth=a;this.minHeight=z;Object.setPrototypeOf(this,Nx0.prototype)};
_.b(Nx0,Error);var tRY=function(a){this.requirements=a;this.JSC$20651_maxFileSize=a.maxFileSizeMB*1024*1024},uaf=function(a,z){if(z.size>a.JSC$20651_maxFileSize)throw new AZ(a.requirements.maxFileSizeMB);
};var E6e=function(a,z){this.canvas=a;this.imageEditorBuilder=z};
E6e.prototype.addEventListeners=function(a){var z=function(r){Bxf(a,r)};
this.JSC$20657_mouseDownEvent=z;var I=function(r){g6f(a,r)};
this.JSC$20657_mouseMoveEvent=I;var J=function(){OKZ(a)};
this.JSC$20657_mouseUpEvent=J;this.canvas.addEventListener("mousedown",z);this.canvas.addEventListener("mousemove",I);document.addEventListener("mouseup",J)};
E6e.prototype.removeEventListeners=function(){this.JSC$20657_mouseDownEvent&&this.canvas.removeEventListener("mousedown",this.JSC$20657_mouseDownEvent);this.JSC$20657_mouseMoveEvent&&this.canvas.removeEventListener("mousemove",this.JSC$20657_mouseMoveEvent);this.JSC$20657_mouseUpEvent&&document.removeEventListener("mouseup",this.JSC$20657_mouseUpEvent)};
var fCG=function(a,z){a.removeEventListeners();return new Promise(function(I){var J=new Image;J.crossOrigin="anonymous";J.onload=function(){var r=a.imageEditorBuilder(a.canvas,J);a.addEventListeners(r);I(r)};
J.src=z})},si=function(a,z,I,J,r,P,N,u){this.canvas=a;
this.image=z;this.requiredRatio=I;this.minImageCropDimension=J;this.minOutputImageResolution=r;this.component=P;this.styleFocusedCorner=u===void 0?!0:u;this.action=2;this.focusedCorner=this.resizeCorner=0;a=this.canvas.getContext("2d");if(!a)throw Error("vl");this.ctx=a;this.canvasMargin=N!=null?N:24;this.canvasInnerWidth=this.canvas.width-2*this.canvasMargin;N=this.image;a=this.canvasInnerWidth/N.width;N.height*a>912&&(a=N.width/N.height*912/N.width);N=a;this.scaledImageWidth=this.canvas.width%2?
RLZ(this.image.width*N):DpY(this.image.width*N);this.scaledImageHeight=Math.round(this.image.height*N);this.canvas.height=this.scaledImageHeight+2*this.canvasMargin;this.horizontalMargin=(this.canvas.width-this.scaledImageWidth)/2;this.JSC$20660_overlayMarginBottom=this.JSC$20660_overlayMarginTop=this.canvasMargin;this.JSC$20660_overlayMarginRight=this.JSC$20660_overlayMarginLeft=this.horizontalMargin;this.JSC$20660_overlayWidth=this.scaledImageWidth;this.JSC$20660_overlayHeight=this.scaledImageHeight;
a=this.image.width/this.image.height;a>this.requiredRatio?(this.JSC$20660_overlayWidth=this.canvas.width%2?RLZ(this.scaledImageHeight*this.requiredRatio):DpY(this.scaledImageHeight*this.requiredRatio),this.JSC$20660_overlayMarginRight=this.JSC$20660_overlayMarginLeft=(this.canvas.width-this.JSC$20660_overlayWidth)/2):a<this.requiredRatio&&(this.JSC$20660_overlayHeight=this.canvas.height%2?RLZ(this.scaledImageWidth/this.requiredRatio):DpY(this.scaledImageWidth/this.requiredRatio),this.JSC$20660_overlayMarginBottom=
this.JSC$20660_overlayMarginTop=(this.canvas.height-this.JSC$20660_overlayHeight)/2);this.minOverlayWidth=Math.min(this.minImageCropDimension[0]*N,this.scaledImageWidth);Adf(this)};
si.prototype.getContext=function(){return this.ctx};
var Bxf=function(a,z){z={x:Math.round(z.pageX-a.canvas.getBoundingClientRect().left),y:Math.round(z.pageY-a.canvas.getBoundingClientRect().top)};a.dragStart=z;sCM(a,z)!==0?(a.action=1,n6M(a,z),a.resizeCorner=sCM(a,z)):z.x>a.JSC$20660_overlayMarginLeft&&z.x<a.JSC$20660_overlayMarginLeft+a.JSC$20660_overlayWidth&&z.y>a.JSC$20660_overlayMarginTop&&z.y<a.JSC$20660_overlayMarginTop+a.JSC$20660_overlayHeight&&(a.action=0)},Kv0=function(a,z){switch(z){case 1:return{x:a.JSC$20660_overlayMarginLeft,
y:a.JSC$20660_overlayMarginTop};case 2:return{x:a.JSC$20660_overlayMarginLeft,y:a.JSC$20660_overlayMarginTop+a.JSC$20660_overlayHeight};case 3:return{x:a.JSC$20660_overlayMarginLeft+a.JSC$20660_overlayWidth,y:a.JSC$20660_overlayMarginTop};case 4:return{x:a.JSC$20660_overlayMarginLeft+a.JSC$20660_overlayWidth,y:a.JSC$20660_overlayMarginTop+a.JSC$20660_overlayHeight};default:throw Error("wl");}},HKe=function(a,z){if(a.focusedCorner!==0){a.dragStart=Kv0(a,a.focusedCorner);
a.action=1;a.resizeCorner=a.focusedCorner;var I=a.dragStart.x,J=a.dragStart.y;switch(z){case 0:a.focusedCorner===1||a.focusedCorner===4?(I-=10,J-=10):(I-=10,J+=10);break;case 1:a.focusedCorner===1||a.focusedCorner===4?(I+=10,J+=10):(I+=10,J-=10);break;case 2:I=a.focusedCorner===1||a.focusedCorner===4?I-10:I+10;J-=10;break;case 3:I=a.focusedCorner===1||a.focusedCorner===4?I+10:I-10;J+=10;break;default:throw Error("xl");}Fv0(a,{x:I,y:J});Adf(a);a.action=2;a.dragStart=void 0}},g6f=function(a,z){z={x:Math.round(z.pageX-
a.canvas.getBoundingClientRect().left),
y:Math.round(z.pageY-a.canvas.getBoundingClientRect().top)};n6M(a,z);switch(a.action){case 1:Fv0(a,z);break;case 0:a.dragStart&&(a.JSC$20660_overlayMarginLeft=Math.max(a.horizontalMargin,Math.min(a.JSC$20660_overlayMarginLeft-(a.dragStart.x-z.x),a.horizontalMargin+a.scaledImageWidth-a.JSC$20660_overlayWidth)),a.JSC$20660_overlayMarginRight=a.canvas.width-a.JSC$20660_overlayMarginLeft-a.JSC$20660_overlayWidth,a.JSC$20660_overlayMarginTop=Math.max(a.canvasMargin,Math.min(a.JSC$20660_overlayMarginTop-
(a.dragStart.y-z.y),a.scaledImageHeight-a.JSC$20660_overlayHeight+a.canvasMargin)),a.JSC$20660_overlayMarginBottom=a.canvas.height-(a.JSC$20660_overlayMarginTop+a.JSC$20660_overlayHeight));break;default:return}Adf(a);a.dragStart=z},OKZ=function(a){a.action=2;
a.dragStart=void 0;document.body.style.cursor="auto"},n6M=function(a,z){switch(sCM(a,z)){case 1:document.body.style.cursor="nw-resize";
break;case 3:document.body.style.cursor="ne-resize";break;case 2:document.body.style.cursor="sw-resize";break;case 4:document.body.style.cursor="se-resize";break;default:a.action!==1&&(document.body.style.cursor="auto")}},sCM=function(a,z){var I=a.JSC$20660_overlayMarginLeft-5,J=a.JSC$20660_overlayMarginTop-5,r=a.JSC$20660_overlayMarginLeft+a.JSC$20660_overlayWidth-5;
a=a.JSC$20660_overlayMarginTop+a.JSC$20660_overlayHeight-5;return bK4(z,{x:I,y:J})?1:bK4(z,{x:r,y:J})?3:bK4(z,{x:I,y:a})?2:bK4(z,{x:r,y:a})?4:0},bK4=function(a,z){return a.x>=z.x&&a.x<=z.x+10&&a.y>=z.y&&a.y<=z.y+10},Fv0=function(a,z){if(a.dragStart)switch(a.resizeCorner){case 2:Math.abs((a.JSC$20660_overlayMarginLeft+a.JSC$20660_overlayWidth-z.x)/(z.y-a.JSC$20660_overlayMarginTop))>=a.requiredRatio?hle(a,z.x):VRV(a,z.y);
break;case 1:Math.abs((a.JSC$20660_overlayMarginLeft+a.JSC$20660_overlayWidth-z.x)/(a.JSC$20660_overlayMarginTop+a.JSC$20660_overlayHeight-z.y))>=a.requiredRatio?QC0(a,z.x):VRV(a,z.y);break;case 4:Math.abs((z.x-a.JSC$20660_overlayMarginLeft)/(z.y-a.JSC$20660_overlayMarginTop))>=a.requiredRatio?hle(a,z.x):Sqi(a,z.y);break;case 3:Math.abs((z.x-a.JSC$20660_overlayMarginLeft)/(a.JSC$20660_overlayMarginTop+a.JSC$20660_overlayHeight-z.y))>=a.requiredRatio?QC0(a,z.x):Sqi(a,z.y);break;default:throw Error("yl");
}},hle=function(a,z){var I=a.JSC$20660_overlayMarginTop;
a.JSC$20660_overlayMarginBottom=iKf(a,z);a.JSC$20660_overlayHeight=a.canvas.height-a.JSC$20660_overlayMarginBottom-I;a.JSC$20660_overlayWidth=Math.round(a.JSC$20660_overlayHeight*a.requiredRatio);xBM(a)},QC0=function(a,z){var I=a.JSC$20660_overlayMarginTop+a.JSC$20660_overlayHeight;
a.JSC$20660_overlayMarginTop=iKf(a,z);a.JSC$20660_overlayHeight=I-a.JSC$20660_overlayMarginTop;a.JSC$20660_overlayWidth=Math.round(a.JSC$20660_overlayHeight*a.requiredRatio);xBM(a)},xBM=function(a){switch(a.resizeCorner){case 2:case 1:a.JSC$20660_overlayMarginLeft=a.canvas.width-a.JSC$20660_overlayMarginRight-a.JSC$20660_overlayWidth;
break;case 4:case 3:a.JSC$20660_overlayMarginRight=a.canvas.width-a.JSC$20660_overlayMarginLeft-a.JSC$20660_overlayWidth;break;default:throw Error("yl");}},VRV=function(a,z){var I=a.JSC$20660_overlayMarginLeft+a.JSC$20660_overlayWidth;
a.JSC$20660_overlayMarginLeft=v6z(a,z);a.JSC$20660_overlayWidth=I-a.JSC$20660_overlayMarginLeft;a.JSC$20660_overlayHeight=Math.round(a.JSC$20660_overlayWidth/a.requiredRatio);G6Z(a)},Sqi=function(a,z){var I=a.JSC$20660_overlayMarginLeft;
a.JSC$20660_overlayMarginRight=v6z(a,z);a.JSC$20660_overlayWidth=a.canvas.width-a.JSC$20660_overlayMarginRight-I;a.JSC$20660_overlayHeight=Math.round(a.JSC$20660_overlayWidth/a.requiredRatio);G6Z(a)},G6Z=function(a){switch(a.resizeCorner){case 2:case 4:a.JSC$20660_overlayMarginBottom=a.canvas.height-a.JSC$20660_overlayMarginTop-a.JSC$20660_overlayHeight;
break;case 1:case 3:a.JSC$20660_overlayMarginTop=a.canvas.height-a.JSC$20660_overlayMarginBottom-a.JSC$20660_overlayHeight;break;default:throw Error("yl");}},iKf=function(a,z){switch(a.resizeCorner){case 2:z=a.canvas.height-(a.JSC$20660_overlayMarginTop+$Be(a,z));
break;case 4:z=a.canvas.height-(a.JSC$20660_overlayMarginTop+XQ0(a,z));break;case 1:z=a.JSC$20660_overlayMarginTop+a.JSC$20660_overlayHeight-$Be(a,z);break;case 3:z=a.JSC$20660_overlayMarginTop+a.JSC$20660_overlayHeight-XQ0(a,z);break;default:throw Error("yl");}return Math.max(z,a.canvasMargin)},$Be=function(a,z){z=a.JSC$20660_overlayMarginLeft+a.JSC$20660_overlayWidth-Math.max(z,a.horizontalMargin);
z=z<0?a.JSC$20660_overlayWidth:Math.max(z,a.minOverlayWidth);return Math.round(z/a.requiredRatio)},XQ0=function(a,z){z=a.canvas.width-Math.max(a.canvas.width-z,a.horizontalMargin)-a.JSC$20660_overlayMarginLeft;
z=z<0?a.JSC$20660_overlayWidth:Math.max(z,a.minOverlayWidth);return Math.round(z/a.requiredRatio)},v6z=function(a,z){switch(a.resizeCorner){case 2:z=a.canvas.width-a.JSC$20660_overlayMarginRight-TxZ(a,z);
break;case 4:z=a.canvas.width-a.JSC$20660_overlayMarginLeft-TxZ(a,z);break;case 1:z=a.canvas.width-a.JSC$20660_overlayMarginRight-dBM(a,z);break;case 3:z=a.canvas.width-a.JSC$20660_overlayMarginLeft-dBM(a,z);break;default:throw Error("yl");}return Math.max(z,a.horizontalMargin)},TxZ=function(a,z){z=a.canvas.height-Math.max(a.canvas.height-z,a.canvasMargin)-a.JSC$20660_overlayMarginTop;
return z<0?a.JSC$20660_overlayWidth:Math.max(Math.round(z*a.requiredRatio),a.minOverlayWidth)},dBM=function(a,z){z=a.JSC$20660_overlayMarginTop+a.JSC$20660_overlayHeight-Math.max(z,a.canvasMargin);
return z<0?a.JSC$20660_overlayWidth:Math.max(Math.round(z*a.requiredRatio),a.minOverlayWidth)},Adf=function(a){a.ctx.clearRect(0,0,a.canvas.width,a.canvas.height);
a.ctx.drawImage(a.image,0,0,a.image.width,a.image.height,a.horizontalMargin,a.canvasMargin,a.canvas.width-2*a.horizontalMargin,a.scaledImageHeight);a.ctx.fillStyle="rgba(0, 0, 0, 0.7)";a.ctx.fillRect(a.horizontalMargin,a.JSC$20660_overlayMarginTop,a.JSC$20660_overlayMarginLeft-a.horizontalMargin,a.JSC$20660_overlayHeight);a.ctx.fillRect(a.JSC$20660_overlayMarginLeft+a.JSC$20660_overlayWidth,a.JSC$20660_overlayMarginTop,a.JSC$20660_overlayMarginRight-a.horizontalMargin,a.JSC$20660_overlayHeight);a.ctx.fillRect(a.horizontalMargin,
a.canvasMargin,a.scaledImageWidth,a.JSC$20660_overlayMarginTop-a.canvasMargin);a.ctx.fillRect(a.horizontalMargin,a.JSC$20660_overlayMarginTop+a.JSC$20660_overlayHeight,a.scaledImageWidth,a.JSC$20660_overlayMarginBottom-a.canvasMargin);a.drawOverlay();a.component&&_.PA(a.component,"image-updated")};
si.prototype.drawOverlay=function(){this.ctx.lineWidth=2;this.ctx.strokeStyle="#3EA6FF";this.ctx.strokeRect(this.JSC$20660_overlayMarginLeft,this.JSC$20660_overlayMarginTop,this.JSC$20660_overlayWidth,this.JSC$20660_overlayHeight);WvE(this)};
var WvE=function(a){var z=a.JSC$20660_overlayMarginLeft-5,I=a.JSC$20660_overlayMarginTop-5,J=a.JSC$20660_overlayMarginLeft+a.JSC$20660_overlayWidth-5,r=a.JSC$20660_overlayMarginTop+a.JSC$20660_overlayHeight-5;a.ctx.fillStyle="#FFF";a.ctx.fillRect(z,I,10,10);a.ctx.strokeRect(z,I,10,10);a.ctx.fillRect(J,I,10,10);a.ctx.strokeRect(J,I,10,10);a.ctx.fillRect(z,r,10,10);a.ctx.strokeRect(z,r,10,10);a.ctx.fillRect(J,r,10,10);a.ctx.strokeRect(J,r,10,10);if(a.focusedCorner!==0&&a.styleFocusedCorner){a.ctx.lineWidth=
4;a.ctx.strokeStyle="#3EA6FF";switch(a.focusedCorner){case 1:--z;--I;break;case 2:--z;I=r-1;break;case 3:z=J-1;--I;break;case 4:z=J-1;I=r-1;break;default:return}a.ctx.strokeRect(z,I,12,12)}};
si.prototype.crop=function(a,z){z=z===void 0?!0:z;var I=this.image.width/this.scaledImageWidth,J=document.createElement("canvas"),r=this.minOutputImageResolution?this.minOutputImageResolution[1]:this.minImageCropDimension[1],P=this.JSC$20660_overlayWidth*I,N=this.JSC$20660_overlayHeight*I;J.width=Math.max(P,this.minOutputImageResolution?this.minOutputImageResolution[0]:this.minImageCropDimension[0]);J.height=Math.max(N,r);a&&(J.width=Math.min(J.width,J.height),J.height=Math.min(J.width,J.height));
a=J.getContext("2d");if(!a)throw Error("ml");r=(this.JSC$20660_overlayMarginLeft-this.horizontalMargin)*I;I*=this.JSC$20660_overlayMarginTop-this.canvasMargin;z||(a.fillStyle="white",a.fillRect(0,0,J.width,J.height));a.drawImage(this.image,r,I,P,N,0,0,J.width,J.height);return J};var o6G=function(a,z,I,J,r){si.call(this,a,z,I,J,void 0,r,8,!1)};
_.b(o6G,si);o6G.prototype.drawOverlay=function(){var a=this.getContext(),z=this.JSC$20660_overlayWidth,I=this.JSC$20660_overlayHeight,J=this.JSC$20660_overlayMarginTop,r=this.JSC$20660_overlayMarginLeft;a.lineWidth=2;a.strokeStyle="#3EA6FF";a.beginPath();a.arc(r+z/2,J+I/2,z/2,0,2*Math.PI);a.stroke();a.strokeRect(r,J,z,I);WvE(this)};
var UBY={maxFileSizeMB:15,minWidth:98,minHeight:98},DB0=["image/png","image/jpeg","image/gif"],ns=function(){var a=_.G.apply(this,arguments)||this;a.fileSelectorFocusListener=null;a.errorMessage=null;a.isLoading=!0;a.hideContainer=!0;a.actionMap={"yt-upload-image-to-scotty-command":"handleUploadImageToScottyCommand","yt-image-selection-error-action":"handleImageSelectionErrorAction"};return a};
_.b(ns,_.G);_.Z=ns.prototype;_.Z.cleanupFocusListener=function(){this.fileSelectorFocusListener&&window.removeEventListener("focus",this.fileSelectorFocusListener)};
_.Z.setLoadingState=function(){this.set("data.updateButton.buttonRenderer.isDisabled",!0);this.set("data.cancelButton.buttonRenderer.isDisabled",!0);this.isLoading=!0;this.errorMessage=null};
_.Z.computePlaylistThumbnail=function(a){return a==="IMAGE_TYPE_PLAYLIST_THUMBNAIL"};
_.Z.resetErrorState=function(){this.set("data.updateButton.buttonRenderer.isDisabled",!1);this.set("data.cancelButton.buttonRenderer.isDisabled",!1);this.isLoading=!1;this.errorMessage=null;this.isPlaylistThumbnail||_.ZF(this.hostElement,"yt-image-selection-reset-error-action",[])};
_.Z.setErrorState=function(a){this.resetErrorState();a&&(this.errorMessage=a)};
_.Z.showPopup=function(){var a=this;this.hideContainer=!1;_.b9(_.GW,function(){_.PA(a.hostElement,"yt-refit")});
this.isLoading=!1};
_.Z.resetFileSelector=function(){this.fileSelector.value="";this.cleanupFocusListener();this.fileSelectorFocusListener=null};
_.Z.closePopup=function(){this.resetFileSelector();_.ZF(this.hostElement,"yt-close-popup-action",[this.is])};
_.Z.onCancelTap=function(){this.isPlaylistThumbnail||_.ZF(this.hostElement,"yt-show-caller-popup-action",[]);this.closePopup()};
_.Z.openFileSelector=function(){var a=this;this.resetErrorState();try{this.fileSelector.click(),this.fileSelectorFocusListener=function(){_.b9(_.GW,function(){setTimeout(function(){if(!a.fileSelector.files||a.fileSelector.files.length===0)a.onCancelTap();a.cleanupFocusListener()},2E3)},500)},window.addEventListener("focus",this.fileSelectorFocusListener)}catch(z){z instanceof Error?_.Gx(z):_.$0(new _.Fn(JSON.stringify(z)))}};
_.Z.handleFileSelection=function(){var a=this,z,I,J,r,P,N;return _.t(function(u){switch(u.nextAddress){case 1:_.BP(u,2);if(!a.fileSelector.files||!a.imageEditorCanvas)return a.onCancelTap(),u.return();z=a.fileSelector.files[0];uaf(a.imageChecker,z);_.BP(u,4);return u.yield(tgM(z),6);case 6:a.mimeType=u.yieldResult;_.p1(u,5,2);break;case 4:_.sk(u,2),_.ZF(a.hostElement,"yt-image-selection-error-action",[(I=a.data)==null?void 0:I.genericImageLoadErrorMessage]),a.onCancelTap();case 5:J=new FileReader;
J.addEventListener("load",function(){var E,O;return _.t(function(f){if(f.nextAddress==1){if(!J.result)return _.Xd(Error("ol")),f.return();E=J.result;O=new Image;O.src=E;O.onload=function(){try{var A=a.imageChecker;if(O.width<A.requirements.minWidth||O.height<A.requirements.minHeight)throw new Nx0(A.requirements.minWidth,A.requirements.minHeight);}catch(F){if(F instanceof Nx0){var n;_.ZF(a.hostElement,"yt-image-selection-error-action",[(n=a.data)==null?void 0:n.imageDimensionErrorMessage]);a.logImageDimensionErrorVe()}else F instanceof
Error?_.Gx(F):(A=new _.Fn(JSON.stringify(F)),_.Gx(A));a.onCancelTap()}a.showPopup()};
O.onerror=function(){var A;_.ZF(a.hostElement,"yt-image-selection-error-action",[(A=a.data)==null?void 0:A.genericImageLoadErrorMessage]);a.onCancelTap()};
return f.yield(fCG(a.imageEditorCanvas,E),2)}a.imageEditor=f.yieldResult;a.updatePositionOfAllCorners();a.addEventListeners(a.imageEditor);_.nu(f)})},!1);
J.readAsDataURL(z);_.p1(u,0);break;case 2:r=_.sk(u),r instanceof AZ?_.ZF(a.hostElement,"yt-image-selection-error-action",[(P=a.data)==null?void 0:P.imageSizeErrorMessage]):(r instanceof Error?_.Gx(r):_.$0(new _.Fn(JSON.stringify(r))),_.ZF(a.hostElement,"yt-image-selection-error-action",[(N=a.data)==null?void 0:N.genericImageLoadErrorMessage])),a.onCancelTap(),_.nu(u)}})};
_.Z.logImageDimensionErrorVe=function(){if(this.isPlaylistThumbnail){var a=_.nw(_.Kw(),{veType:232707,visualElement:_.uq(232707)});a&&(a={visualElement:a},_.sg().reportShown(a))}};
_.Z.handleImageSelectionErrorAction=function(a){this.isPlaylistThumbnail&&_.FFO(this.hostElement,a)};
_.Z.convertToImageFormatBundle=function(a){var z=this,I,J,r;return _.t(function(P){switch(P.nextAddress){case 1:return I=a.toDataURL(z.outputMimeType,1),P.yield(uJE(I),2);case 2:J=P.yieldResult;_.BP(P,3);uaf(z.imageChecker,J);_.p1(P,4);break;case 3:r=_.sk(P);if(!(r instanceof AZ))throw r;_.Xd(new _.Fn("Output size is bigger than input size for image",z.mimeType,z.outputMimeType,J.size));I=a.toDataURL("image/jpeg",.95);return P.yield(uJE(I),6);case 6:J=P.yieldResult;case 4:return P.return({dataUrl:I,
imageFile:J})}})};
_.Z.handleUploadImageToScottyCommand=function(a){var z=this,I,J,r,P,N,u,E,O,f,A;return _.t(function(n){switch(n.nextAddress){case 1:if(!z.imageEditor||!_.H(a,wwz))return n.return();I=_.H(a,wwz).scottyUploadUrl;if(!I){var F=new _.Fn("Cannot handle UploadImageToScottyCommand without scotty upload\n    URL");_.Gx(F);return n.return()}_.BP(n,2);z.setLoadingState();J=z.imageEditor.crop(!1,!1);return n.yield(z.convertToImageFormatBundle(J),4);case 4:return r=n.yieldResult,n.yield(CN0(r.imageFile,I),5);
case 5:P=n.yieldResult;((N=z.data)==null?0:N.onUploadEndpoint)?(u=z.buildUploadServiceEndpoint(P),z.ytComponentBehavior.resolveCommand(u),E=_.H(u,_.D5),((O=E)==null?0:O.params)?z.closePopup():z.resetFileSelector()):(_.ZF(z.hostElement,"yt-image-updated-action",[r.dataUrl,P]),z.closePopup());_.p1(n,0);break;case 2:f=_.sk(n),z.setErrorState((A=z.data)==null?void 0:A.uploadErrorMessage),f instanceof Error?_.Gx(f):(F=new _.Fn(JSON.stringify(f)),_.Gx(F)),_.nu(n)}})};
_.Z.buildUploadServiceEndpoint=function(a){return this.data&&this.data.onUploadEndpoint?(this.set("data.onUploadEndpoint.playlistEditEndpoint.actions.0.addedCustomThumbnail.playlistScottyEncryptedBlobId",a),this.data.onUploadEndpoint):null};
_.Z.dataChanged=function(){var a=this,z;return _.t(function(I){if(I.nextAddress==1){if(!a.data||!a.canvasElement)return I.return();a.data.imageRatio&&a.data.minImageCropWidth||_.$0(new _.Fn("Renderer data is incomplete: missing image_ratio or \nmin_image_crop_width"));z=function(J,r){return a.data.imageType==="IMAGE_TYPE_AVATAR"?new o6G(J,r,a.data.imageRatio,[a.data.minImageCropWidth,a.data.minImageCropWidth/a.data.imageRatio],a.hostElement):new si(J,r,a.data.imageRatio,[a.data.minImageCropWidth,
a.data.minImageCropWidth/a.data.imageRatio],void 0,a.hostElement,8,!1)};
a.imageEditorCanvas=new E6e(a.canvasElement,z);return a.data.url?I.yield(fCG(a.imageEditorCanvas,a.data.url),3):(a.hideContainer=!0,a.openFileSelector(),I.jumpTo(0))}a.imageEditor=I.yieldResult;a.showPopup();a.addEventListeners(a.imageEditor);_.nu(I)})};
_.Z.addEventListeners=function(a){this.removeEventListeners();var z=function(r){Bxf(a,r)};
this.JSC$20668_mouseDownEvent=z;var I=function(r){g6f(a,r)};
this.JSC$20668_mouseMoveEvent=I;var J=function(){OKZ(a)};
this.JSC$20668_mouseUpEvent=J;this.topLeftCorner.addEventListener("mousedown",z);this.topLeftCorner.addEventListener("mousemove",I);this.topLeftCorner.addEventListener("mouseup",J);this.topRightCorner.addEventListener("mousedown",z);this.topRightCorner.addEventListener("mousemove",I);this.topRightCorner.addEventListener("mouseup",J);this.bottomLeftCorner.addEventListener("mousedown",z);this.bottomLeftCorner.addEventListener("mousemove",I);this.bottomLeftCorner.addEventListener("mouseup",J);this.bottomRightCorner.addEventListener("mousedown",
z);this.bottomRightCorner.addEventListener("mousemove",I);this.bottomRightCorner.addEventListener("mouseup",J)};
_.Z.removeEventListeners=function(){this.JSC$20668_mouseDownEvent&&(this.topLeftCorner.removeEventListener("mousedown",this.JSC$20668_mouseDownEvent),this.topRightCorner.removeEventListener("mousedown",this.JSC$20668_mouseDownEvent),this.bottomLeftCorner.removeEventListener("mousedown",this.JSC$20668_mouseDownEvent),this.bottomRightCorner.removeEventListener("mousedown",this.JSC$20668_mouseDownEvent));this.JSC$20668_mouseMoveEvent&&(this.topLeftCorner.removeEventListener("mousemove",this.JSC$20668_mouseMoveEvent),
this.topRightCorner.removeEventListener("mousemove",this.JSC$20668_mouseMoveEvent),this.bottomLeftCorner.removeEventListener("mousemove",this.JSC$20668_mouseMoveEvent),this.bottomRightCorner.removeEventListener("mousemove",this.JSC$20668_mouseMoveEvent));this.JSC$20668_mouseUpEvent&&(this.topLeftCorner.removeEventListener("mouseup",this.JSC$20668_mouseUpEvent),this.topRightCorner.removeEventListener("mouseup",this.JSC$20668_mouseUpEvent),this.bottomLeftCorner.removeEventListener("mouseup",this.JSC$20668_mouseUpEvent),
this.bottomRightCorner.removeEventListener("mouseup",this.JSC$20668_mouseUpEvent))};
_.Z.setFocusInImageEditor=function(){if(!this.imageEditor)return!1;for(var a=document.activeElement;a&&a.shadowRoot&&a.shadowRoot.activeElement;)a=a.shadowRoot.activeElement;switch(a){case this.topLeftCorner:this.imageEditor.focusedCorner=1;break;case this.topRightCorner:this.imageEditor.focusedCorner=3;break;case this.bottomLeftCorner:this.imageEditor.focusedCorner=2;break;case this.bottomRightCorner:this.imageEditor.focusedCorner=4;break;default:return this.imageEditor.focusedCorner=0,!1}return!0};
_.Z.updatePositionOfCorner=function(a,z){var I=a.y-z.offsetHeight/2+4;z.style.left=a.x-z.offsetWidth/2+16+"px";z.style.top=I+"px"};
_.Z.updatePositionOfAllCorners=function(){if(this.imageEditor)for(var a=_.C([{corner:1,div:this.topLeftCorner},{corner:3,div:this.topRightCorner},{corner:2,div:this.bottomLeftCorner},{corner:4,div:this.bottomRightCorner}]),z=a.next();!z.done;z=a.next()){z=z.value;var I=Kv0(this.imageEditor,z.corner);this.updatePositionOfCorner(I,z.div)}};
_.Z.onLeft=function(a){this.imageEditor&&this.setFocusInImageEditor()&&(HKe(this.imageEditor,0),this.updatePositionOfAllCorners(),a.preventDefault())};
_.Z.onRight=function(a){this.imageEditor&&this.setFocusInImageEditor()&&(HKe(this.imageEditor,1),this.updatePositionOfAllCorners(),a.preventDefault())};
_.Z.onUp=function(a){this.imageEditor&&this.setFocusInImageEditor()&&(HKe(this.imageEditor,2),this.updatePositionOfAllCorners(),a.preventDefault())};
_.Z.onDown=function(a){this.imageEditor&&this.setFocusInImageEditor()&&(HKe(this.imageEditor,3),this.updatePositionOfAllCorners(),a.preventDefault())};
_.Z.beforeRegister=function(){this.ironA11yKeysBehavior.keyBindings={left:"onLeft",right:"onRight",up:"onUp",down:"onDown"}};
_.Z.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.Z.detached=function(){this.removeEventListeners();this.cleanupFocusListener();this.fileSelectorFocusListener=null};
_.eH.Object.defineProperties(ns.prototype,{outputMimeType:{configurable:!0,enumerable:!0,get:function(){return this.mimeType&&DB0.includes(this.mimeType)?this.mimeType:"image/jpeg"}},
imageChecker:{configurable:!0,enumerable:!0,get:function(){var a,z,I;((z=this.data)==null?0:z.imageRatio)&&((I=this.data)==null?0:I.minImageCropWidth)?a={maxFileSizeMB:15,minWidth:this.data.minImageCropWidth,minHeight:this.data.minImageCropWidth/this.data.imageRatio}:a=UBY;return new tRY(a)}}});
ns.prototype.updatePositionOfAllCorners=ns.prototype.updatePositionOfAllCorners;ns.prototype.dataChanged=ns.prototype.dataChanged;_.L([_.Q(_.Hc.YtActionHandlerBehavior),_.p("design:type",Object)],ns.prototype,"ytActionHandlerBehavior",void 0);_.L([_.Q(_.Ms.YtComponentBehavior),_.p("design:type",Object)],ns.prototype,"ytComponentBehavior",void 0);_.L([_.Q(_.V_),_.p("design:type",Object)],ns.prototype,"ironA11yKeysBehavior",void 0);
_.L([_.A3("#canvas"),_.p("design:type",HTMLCanvasElement)],ns.prototype,"canvasElement",void 0);_.L([_.A3("#file-selector"),_.p("design:type",HTMLInputElement)],ns.prototype,"fileSelector",void 0);_.L([_.A3("#top-left-corner"),_.p("design:type",HTMLDivElement)],ns.prototype,"topLeftCorner",void 0);_.L([_.A3("#top-right-corner"),_.p("design:type",HTMLDivElement)],ns.prototype,"topRightCorner",void 0);
_.L([_.A3("#bottom-left-corner"),_.p("design:type",HTMLDivElement)],ns.prototype,"bottomLeftCorner",void 0);_.L([_.A3("#bottom-right-corner"),_.p("design:type",HTMLDivElement)],ns.prototype,"bottomRightCorner",void 0);_.L([_.x(),_.p("design:type",Object)],ns.prototype,"data",void 0);_.L([_.x(),_.p("design:type",Object)],ns.prototype,"errorMessage",void 0);_.L([_.x(),_.p("design:type",Object)],ns.prototype,"isLoading",void 0);_.L([_.x(),_.p("design:type",Object)],ns.prototype,"hideContainer",void 0);
_.L([_.x({reflectToAttribute:!0,computed:"computePlaylistThumbnail(data.imageType)"}),_.p("design:type",Boolean)],ns.prototype,"isPlaylistThumbnail",void 0);_.L([_.Fe("data"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype",Promise)],ns.prototype,"dataChanged",null);_.L([_.gz("image-updated"),_.gz("yt-refit"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],ns.prototype,"updatePositionOfAllCorners",null);
_.L([_.dz({is:"yt-image-editor-renderer",disableElementRegistration:!0})],ns);
_.D(ns,"yt-image-editor-renderer",function(){if(C5E===void 0){var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-image-editor-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.channels.yt_image_editor_renderer.yt.image.editor.renderer.css.js--\x3e<div class="container style-scope yt-image-editor-renderer" hidden$="[[hideContainer]]">\n  <div class="popup-header style-scope yt-image-editor-renderer">\n    <h2 class="style-scope yt-image-editor-renderer">\n      <yt-formatted-string id="title" class="popup-header-title style-scope yt-image-editor-renderer" text="[[data.title]]">\n      </yt-formatted-string>\n    </h2>\n  </div>\n  <div class="content style-scope yt-image-editor-renderer" slot="content" no-padding="" id="canvas-container">\n    <div class="error style-scope yt-image-editor-renderer" hidden="[[!errorMessage]]">\n      <yt-icon id="info-icon" icon="yt-icons:info" class="style-scope yt-image-editor-renderer"></yt-icon>\n      <yt-formatted-string id="error" class="error-message style-scope yt-image-editor-renderer" text="[[errorMessage]]">\n    </yt-formatted-string>\n    </div>\n    <canvas id="canvas" width="600" height="600" class="style-scope yt-image-editor-renderer">\n    </canvas>\n    <div class="drag top-left style-scope yt-image-editor-renderer" id="top-left-corner" aria-label="[[data.topLeftCornerImageCropAriaLabel]]" role="button" tabindex="0">\n    </div>\n    <div class="drag top-right style-scope yt-image-editor-renderer" id="top-right-corner" aria-label="[[data.topRightCornerImageCropAriaLabel]]" role="button" tabindex="0">\n    </div>\n    <div class="drag bottom-left style-scope yt-image-editor-renderer" id="bottom-left-corner" aria-label="[[data.bottomLeftCornerImageCropAriaLabel]]" role="button" tabindex="0">\n    </div>\n    <div class="drag bottom-right style-scope yt-image-editor-renderer" id="bottom-right-corner" aria-label="[[data.bottomRightCornerImageCropAriaLabel]]" role="button" tabindex="0">\n    </div>\n  </div>\n  <div class="button-layer style-scope yt-image-editor-renderer">\n    <input id="file-selector" accept="image/*" hidden="" type="file" on-change="handleFileSelection" class="style-scope yt-image-editor-renderer">\n    <yt-button-renderer id="cancel-button" data="[[data.cancelButton.buttonRenderer]]" on-click="onCancelTap" class="style-scope yt-image-editor-renderer">\n    </yt-button-renderer>\n    <yt-button-renderer id="update-button" data="[[data.updateButton.buttonRenderer]]" class="style-scope yt-image-editor-renderer">\n    </yt-button-renderer>\n  </div>\n  <div class="spinner-container style-scope yt-image-editor-renderer" hidden="[[!isLoading]]">\n    <tp-yt-paper-spinner-lite active="[[isLoading]]" class="style-scope yt-image-editor-renderer"></tp-yt-paper-spinner-lite>\n  </div>\n</div>\n');a.content.insertBefore(_.w().content.cloneNode(!0),
a.content.firstChild);var z=a.content,I=z.insertBefore;ZK4===void 0&&(ZK4=document.createElement("template"));var J=ZK4;I.call(z,J.content.cloneNode(!0),a.content.firstChild);C5E=a}a=C5E;return a},{mode:2});var Rle;var Lvi;var Ks=function(){return _.G.apply(this,arguments)||this};
_.b(Ks,_.G);Ks.prototype.updateMinutesFromBinding=function(a){this.handleMinutesChanged&&this.handleMinutesChanged(a)};
Ks.prototype.updateSecondsFromBinding=function(a){this.handleSecondsChanged&&this.handleSecondsChanged(a)};
Ks.prototype.updateDescriptionFromBinding=function(a){this.handleDescriptionChanged&&this.handleDescriptionChanged(a)};
_.L([_.Q(_.Ms.YtComponentBehavior),_.p("design:type",Object)],Ks.prototype,"ytComponentBehavior",void 0);_.L([_.x(),_.p("design:type",Object)],Ks.prototype,"data",void 0);_.L([_.x(),_.p("design:type",String)],Ks.prototype,"minutes",void 0);_.L([_.x(),_.p("design:type",String)],Ks.prototype,"seconds",void 0);_.L([_.x(),_.p("design:type",String)],Ks.prototype,"description",void 0);_.L([_.x(),_.p("design:type",Function)],Ks.prototype,"handleMinutesChanged",void 0);
_.L([_.x(),_.p("design:type",Function)],Ks.prototype,"handleSecondsChanged",void 0);_.L([_.x(),_.p("design:type",Function)],Ks.prototype,"handleDescriptionChanged",void 0);_.L([_.x(),_.p("design:type",Number)],Ks.prototype,"characterLimit",void 0);_.L([_.x(),_.p("design:type",Number)],Ks.prototype,"textNumRows",void 0);_.L([_.dz({is:"yt-report-details-form-content",disableElementRegistration:!0})],Ks);
_.D(Ks,"yt-report-details-form-content",function(){if(Lvi===void 0){var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-report-details-form-content--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.flag.yt_report_details_form_content.yt.report.details.form.content.css.js--\x3e<div id="content" class="style-scope yt-report-details-form-content"><label id="timestamp" class="style-scope yt-report-details-form-content">\n    [[getSimpleString(data.timestampLabel)]]\n    <yt-timestamp-input minutes="[[minutes]]" seconds="[[seconds]]" on-minutes-changed="updateMinutesFromBinding" on-seconds-changed="updateSecondsFromBinding" class="style-scope yt-report-details-form-content"></yt-timestamp-input></label><div id="description" class="style-scope yt-report-details-form-content"><tp-yt-paper-input-container no-label-float="" use-v2-underline="" class="style-scope yt-report-details-form-content"><tp-yt-iron-autogrow-textarea id="description-text" class="paper-input-input style-scope yt-report-details-form-content" slot="input" aria-label$="[[getSimpleString(data.descriptionHint)]]" maxlength$="[[characterLimit]]" placeholder="[[getSimpleString(data.descriptionHint)]]" rows$="[[textNumRows]]" value="[[description]]" on-value-changed="updateDescriptionFromBinding"></tp-yt-iron-autogrow-textarea><tp-yt-paper-input-char-counter slot="add-on" class="style-scope yt-report-details-form-content"></tp-yt-paper-input-char-counter></tp-yt-paper-input-container></div><yt-formatted-string id="footer" text="[[data.footer]]" class="style-scope yt-report-details-form-content"></yt-formatted-string></div>');
a.content.insertBefore(_.w().content.cloneNode(!0),a.content.firstChild);var z=a.content,I=z.insertBefore;Rle===void 0&&(Rle=document.createElement("template"));var J=Rle;I.call(z,J.content.cloneNode(!0),a.content.firstChild);Lvi=a}a=Lvi;return a},{mode:2});var lCf;var pQV;var F_=function(){var a=_.G.apply(this,arguments)||this;a.updateMinutesFromBinding=function(z){a.minutes=z.detail.value};
a.updateSecondsFromBinding=function(z){a.seconds=z.detail.value};
a.updateDescriptionFromBinding=function(z){a.description=z.detail.value};
return a};
_.b(F_,_.G);_.Z=F_.prototype;_.Z.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");this.isMusic&&(this.seconds=this.minutes="0")};
_.Z.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"}}}};
_.Z.ready=function(){_.PK(this.hostElement).querySelector("#submit-button").addEventListener("yt-action",this.onSubmitYtAction.bind(this))};
_.Z.onSubmitYtAction=function(a){var z=a.detail;z.actionName==="yt-service-request"&&(z=z.args[1],z.flagEndpoint&&(a.stopPropagation(),this.refireAction(z)))};
_.Z.refireAction=function(a){var z={text:this.description,minutes:Number(this.minutes),seconds:Number(this.seconds)};this.vssId&&(z.vss_id=this.vssId);_.N$(this.hostElement,[a,z]);this.submitDisabled=!0};
_.Z.dataChanged=function(){var a=this;this.seconds=this.minutes="";this.isMusic&&(this.seconds=this.minutes="0");this.vssId=this.description="";this.submitDisabled=!1;var z=_.zI();z&&z.getPlayerPromise().then(function(I){var J=I.getOption("cc","track")||I.getOption("captions","track");J&&(a.vssId=J.vss_id);I=I.getCurrentTime();a.minutes=Math.floor(I/60).toString();a.seconds=(Math.floor(I)%60).toString()})};
_.Z.updateSubmitButtonState=function(){var a;((a=this.data)==null?0:a.isFreeformReason)?this.set("data.submitButton.buttonRenderer.isDisabled",this.submitDisabled||this.minutes===""||this.seconds===""||!this.description||this.description.length<3):this.set("data.submitButton.buttonRenderer.isDisabled",this.submitDisabled||this.minutes===""||this.seconds==="")};
_.Z.onYtServiceRequestCompleted=function(){_.ZF(this.hostElement,"yt-close-popup-action")};
_.Z.onYtServiceRequestError=function(){this.submitDisabled=!1};
_.eH.Object.defineProperties(F_.prototype,{characterLimit:{configurable:!0,enumerable:!0,get:function(){var a;return((a=this.data)==null?void 0:a.characterLimit)||500}},
textNumRows:{configurable:!0,enumerable:!0,get:function(){var a;return((a=this.data)==null?void 0:a.textNumRows)||4}}});
F_.prototype.onYtServiceRequestError=F_.prototype.onYtServiceRequestError;F_.prototype.onYtServiceRequestCompleted=F_.prototype.onYtServiceRequestCompleted;F_.prototype.updateSubmitButtonState=F_.prototype.updateSubmitButtonState;_.L([_.Q(_.u4.YtRendererstamperBehavior),_.p("design:type",Object)],F_.prototype,"ytRendererstamperBehavior",void 0);_.L([_.Q(_.k.YtRendererBehavior),_.p("design:type",Object)],F_.prototype,"ytRendererBehavior",void 0);
_.L([_.x({observer:"dataChanged"}),_.p("design:type",Object)],F_.prototype,"data",void 0);_.L([_.x(),_.p("design:type",Boolean)],F_.prototype,"submitDisabled",void 0);_.L([_.x(),_.p("design:type",String)],F_.prototype,"minutes",void 0);_.L([_.x(),_.p("design:type",String)],F_.prototype,"seconds",void 0);_.L([_.x(),_.p("design:type",String)],F_.prototype,"description",void 0);_.L([_.x(),_.p("design:type",String)],F_.prototype,"vssId",void 0);
_.L([_.x({value:_.Xw("INNERTUBE_CLIENT_NAME")==="WEB_REMIX",reflectToAttribute:!0}),_.p("design:type",Boolean)],F_.prototype,"isMusic",void 0);_.L([_.S("data"),_.p("design:type",Number),_.p("design:paramtypes",[])],F_.prototype,"characterLimit",null);_.L([_.S("data"),_.p("design:type",Number),_.p("design:paramtypes",[])],F_.prototype,"textNumRows",null);
_.L([_.Fe("minutes","seconds","description","submitDisabled"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],F_.prototype,"updateSubmitButtonState",null);_.L([_.gz("yt-service-request-completed"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],F_.prototype,"onYtServiceRequestCompleted",null);
_.L([_.gz("yt-service-request-error"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],F_.prototype,"onYtServiceRequestError",null);_.L([_.dz({is:"yt-report-details-form-renderer",disableElementRegistration:!0})],F_);
_.D(F_,"yt-report-details-form-renderer",function(){if(pQV===void 0){var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-report-details-form-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.flag.yt_report_details_form_renderer.yt.report.details.form.renderer.css.js--\x3e<div id="header" class="style-scope yt-report-details-form-renderer">\n  <div id="back-button" class="style-scope yt-report-details-form-renderer"></div>\n  <h2 id="title" class="style-scope yt-report-details-form-renderer">[[getSimpleString(data.title)]]</h2>\n</div>\n  <yt-report-details-form-content character-limit="[[characterLimit]]" data="[[data]]" description="[[description]]" handle-description-changed="[[updateDescriptionFromBinding]]" handle-minutes-changed="[[updateMinutesFromBinding]]" handle-seconds-changed="[[updateSecondsFromBinding]]" minutes="[[minutes]]" seconds="[[seconds]]" text-num-rows="[[textNumRows]]" class="style-scope yt-report-details-form-renderer">\n  </yt-report-details-form-content>\n<div id="buttons" class="style-scope yt-report-details-form-renderer">\n  <div id="cancel-button" class="style-scope yt-report-details-form-renderer"></div>\n  <div id="submit-button" class="style-scope yt-report-details-form-renderer"></div>\n</div>\n');a.content.insertBefore(_.w().content.cloneNode(!0),
a.content.firstChild);var z=a.content,I=z.insertBefore;lCf===void 0&&(lCf=document.createElement("template"));var J=lCf;I.call(z,J.content.cloneNode(!0),a.content.firstChild);pQV=a}a=pQV;return a});var wQE;var mBY;var ydY;var k6G;var Ho=function(){return _.G.apply(this,arguments)||this};
_.b(Ho,_.G);
Ho.prototype.onCheckedChanged_=function(){if(this.data){var a=_.PK(this.hostElement).querySelector("#checkbox").checked;this.data.identifier==="yt-external-links-checkbox"?_.ZF(this.hostElement,"yt-additional-detail-checkbox-update",[a]):this.data.identifier==="yt-hide-user-checkbox"?_.ZF(this.hostElement,"yt-hide-user-checkbox-update",[a]):a&&this.data.enableCommand?_.ZF(this.hostElement,"yt-modify-report-form-command",[_.H(this.data.enableCommand,q4E)]):!a&&this.data.disableCommand&&_.ZF(this.hostElement,
"yt-modify-report-form-command",[_.H(this.data.enableCommand,q4E)])}};
Ho.prototype.onLabelTap_=function(a){a.target.tagName!="A"&&(_.PK(this.hostElement).querySelector("#checkbox").checked=!_.PK(this.hostElement).querySelector("#checkbox").checked)};
_.L([_.Q(_.k.YtRendererBehavior),_.p("design:type",Object)],Ho.prototype,"ytRendererBehavior",void 0);_.L([_.x(),_.p("design:type",Object)],Ho.prototype,"data",void 0);_.L([_.dz({is:"yt-boolean-form-field-v2-renderer",disableElementRegistration:!0})],Ho);
_.D(Ho,"yt-boolean-form-field-v2-renderer",function(){if(k6G===void 0){var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-boolean-form-field-v2-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.sections.yt_boolean_form_field_v2_renderer.yt.boolean.form.field.v2.renderer.css.js--\x3e<tp-yt-paper-checkbox id="checkbox" aria-labelledby="yt-boolean-form-field-v2-renderer-label" checked="[[data.value]]" on-checked-changed="onCheckedChanged_" class="style-scope yt-boolean-form-field-v2-renderer">\n</tp-yt-paper-checkbox>\n<div id="content" class="style-scope yt-boolean-form-field-v2-renderer">\n  <yt-formatted-string id="yt-boolean-form-field-v2-renderer-label" class="label style-scope yt-boolean-form-field-v2-renderer" text="[[data.label]]" on-tap="onLabelTap_">\n  </yt-formatted-string>\n  <yt-formatted-string id="yt-boolean-form-field-v2-renderer-tooltip" class="tooltip style-scope yt-boolean-form-field-v2-renderer" text="[[data.tooltip]]">\n  </yt-formatted-string>\n</div>\n');a.content.insertBefore(_.w().content.cloneNode(!0),
a.content.firstChild);var z=a.content,I=z.insertBefore;ydY===void 0&&(ydY=document.createElement("template"));var J=ydY;I.call(z,J.content.cloneNode(!0),a.content.firstChild);k6G=a}a=k6G;return a});var b6=function(){var a=_.G.apply(this,arguments)||this;a.canShowAdditionalDetailCheckbox=!1;a.canShowCheckbox=!1;a.keepDropdownFocusedAfterSelection=!0;return a};
_.b(b6,_.G);b6.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}}}}};
_.L([_.Q(_.u4.YtRendererstamperBehavior),_.p("design:type",Object)],b6.prototype,"ytRendererstamperBehavior",void 0);_.L([_.x(),_.p("design:type",Object)],b6.prototype,"data",void 0);_.L([_.x(),_.p("design:type",Object)],b6.prototype,"canShowAdditionalDetailCheckbox",void 0);_.L([_.x(),_.p("design:type",Object)],b6.prototype,"canShowCheckbox",void 0);_.L([_.x(),_.p("design:type",Object)],b6.prototype,"keepDropdownFocusedAfterSelection",void 0);
_.L([_.dz({is:"yt-report-form-modal-content",disableElementRegistration:!0})],b6);
_.D(b6,"yt-report-form-modal-content",function(){if(mBY===void 0){var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-report-form-modal-content--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.flag.yt_report_form_modal_content.yt.report.form.modal.content.css.js--\x3e<div id="container" hidden="[[!data]]" class="style-scope yt-report-form-modal-content"><yt-formatted-string id="description" hidden="[[!data.description]]" text="[[data.description]]" class="style-scope yt-report-form-modal-content"></yt-formatted-string><yt-options-renderer data="[[data.optionsSupportedRenderers.optionsRenderer]]" restore-focus-on-close="[[keepDropdownFocusedAfterSelection]]" class="style-scope yt-report-form-modal-content"></yt-options-renderer><div id="additional-detail-checkbox-container" hidden="[[!canShowAdditionalDetailCheckbox]]" class="style-scope yt-report-form-modal-content"></div><div id="checkbox-container" hidden="[[!canShowCheckbox]]" class="style-scope yt-report-form-modal-content"></div><yt-formatted-string id="footer" hidden="[[!data.footer]]" split-lines="" text="[[data.footer]]" class="style-scope yt-report-form-modal-content"></yt-formatted-string></div>');a.content.insertBefore(_.w().content.cloneNode(!0),
a.content.firstChild);var z=a.content,I=z.insertBefore;wQE===void 0&&(wQE=document.createElement("template"));var J=wQE;I.call(z,J.content.cloneNode(!0),a.content.firstChild);mBY=a}a=mBY;return a},{mode:2});var MRZ;var cd0;var hZ=function(){var a=_.G.apply(this,arguments)||this;a.submitting=!1;a.submitButtonDisabled=!0;a.command=null;a.canShowCheckbox=!1;a.canShowAdditionalDetailCheckbox=!1;a.canShowNextButton=!1;a.additionalDetailCheckboxChecked=!1;a.refitJob=0;a.keepDropdownFocusedAfterSelection=!0;a.actionMap={"yt-report-form-update":"handleReportFormEndpointUpdateAction","yt-report-form-endpoint-update":"handleReportFormEndpointUpdateAction","yt-confirm-dialog-close-action":"handleConfirmDialogCloseAction","yt-modify-report-form-command":"handleModifyReportFormCommand",
"yt-additional-detail-checkbox-update":"handleAdditionalDetailCheckboxUpdateAction"};return a};
_.b(hZ,_.G);_.Z=hZ.prototype;_.Z.created=function(){this.refitJob=0};
_.Z.attached=function(){this.JSC$20691_scroller&&(this.JSC$20691_scroller.dialogElement=this.hostElement.parentNode,this.JSC$20691_scroller.attached&&typeof this.JSC$20691_scroller.attached==="function"&&this.JSC$20691_scroller.attached());this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.Z.dataChanged=function(a){a&&(this.toggleSubmitButton(!!this.get("data.submitButton.buttonRenderer.isDisabled")),this.set("data.submitButton.buttonRenderer.isDisabled",void 0),this.set("data.nextButton.buttonRenderer.isDisabled",void 0),this.command=null,this.additionalDetailCheckboxChecked=this.canShowNextButton=this.canShowAdditionalDetailCheckbox=this.canShowCheckbox=this.hideReportForm=this.submitting=!1,a.legalReportCheckbox&&this.set("data.legalReportCheckbox.booleanFormFieldV2Renderer.value",
!1),a.additionalDetailCheckbox&&this.set("data.additionalDetailCheckbox.booleanFormFieldV2Renderer.value",!1),this.updateDialogStyling())};
_.Z.onYtPopupOpened=function(){var a=_.zI();a&&a.getPlayerPromise().then(function(z){z.pauseVideo()})};
_.Z.onYtNavigate=function(a){_.H(a.detail.endpoint,_.zSG)&&(a.stopPropagation(),this.hideReportForm=!0)};
_.Z.onYtServiceRequestSent=function(){this.toggleSubmitButton(!0)};
_.Z.onYtServiceRequestCompleted=function(a,z){var I=z.actions;if(I){if(I.length===1&&_.H(I[0],_.E_)){var J;I=((J=_.H(I[0],_.E_))==null?void 0:J.commands)||[]}J=0;for(var r=I.length;J<r;J++)_.H(I[J],_.G7)&&(a.stopPropagation(),this.hostElement.parentElement.close(),this.openPopupBehavior.openPopup(I[J]))}if(z.data&&(a=this.get("feedbackResponses",z.data)))for(z=0;z<a.length;z++)if(a[z].isThumbnailReporting){this.hostElement.parentElement.close();break}};
_.Z.onYtServiceRequestError=function(){this.toggleSubmitButton(!1)};
_.Z._onDescendantIronResize=function(a){a.stopPropagation();return!1};
_.Z.handleReportFormEndpointUpdateAction=function(a){if(a.submitEndpoint){var z=this.command=a.submitEndpoint;z=_.H(z,_.eno);if(z==null?0:z.additionalDetailCheckboxChecked)z.additionalDetailCheckboxChecked=this.additionalDetailCheckboxChecked;this.toggleSubmitButton(!1)}else a.submitNavigationEndpoint?(this.command=a.submitNavigationEndpoint,this.toggleSubmitButton(!1)):a.confirmDialog?(this.command={confirmDialogEndpoint:{content:{confirmDialogRenderer:a.confirmDialog.confirmDialogRenderer}}},this.toggleSubmitButton(!1)):
this.command=null;a.disableSubmitButton&&this.toggleSubmitButton(!0);this.handleModifyReportFormCommand(this.get("clickCommands.0.modifyReportFormCommand",a));this.refit()};
_.Z.handleConfirmDialogCloseAction=function(a){a.confirmed?this.hostElement.parentElement.close():this.hideReportForm=!1};
_.Z.submitButtonDisabledChanged=function(){var a=this.hostElement.parentElement;a&&a.invalidateTabbables&&a.invalidateTabbables()};
_.Z.handleModifyReportFormCommand=function(a){a=this.get("action",a);a==="REPORT_FORM_ACTION_LEGAL_CHECKBOX_HIDE"?this.canShowCheckbox=!1:a==="REPORT_FORM_ACTION_LEGAL_CHECKBOX_SHOW"?this.canShowCheckbox=!0:a==="REPORT_FORM_ACTION_ADDITIONAL_DETAIL_CHECKBOX_HIDE"?this.canShowAdditionalDetailCheckbox=!1:a==="REPORT_FORM_ACTION_ADDITIONAL_DETAIL_CHECKBOX_SHOW"?this.canShowAdditionalDetailCheckbox=!0:a==="REPORT_FORM_ACTION_SUBMIT_BUTTON_SHOW"?this.canShowNextButton=!1:a==="REPORT_FORM_ACTION_NEXT_BUTTON_SHOW"&&
(this.canShowNextButton=!0);this.refit()};
_.Z.updateDialogStyling=function(){var a,z,I,J,r,P=((r=(a=this.data)==null?void 0:(z=a.optionsSupportedRenderers)==null?void 0:(I=z.optionsRenderer)==null?void 0:(J=I.items)==null?void 0:J.length)!=null?r:0)<=2?0:240;_.uK(this.hostElement,{"--yt-report-form-modal-renderer-min-width":P+"px"})};
_.Z.toggleSubmitButton=function(a){this.submitButtonDisabled=!a;this.submitButtonDisabled=a};
_.Z.computeSubmitButtonData=function(a,z){var I={};_.H(z,_.zSG)?I.navigationEndpoint=z:I.command=z||void 0;a&&a.buttonRenderer&&_.x8.extend(I,a.buttonRenderer);return I};
_.Z.computeNextButtonData=function(a,z){var I={};if(!a||!a.buttonRenderer)return I;_.x8.extend(I,a.buttonRenderer);if(!z)return I;if(_.H(z,_.zSG))I.navigationEndpoint=B0V(z);else if(I.command=B0V(z),a=_.H(I.command,_.eno))a.legalCheckboxChecked=!0;return I};
_.Z.computeShowNextButton=function(a,z,I){return!!a&&z&&I};
_.Z.refit=function(){var a=this;this.refitJob||(this.refitJob=_.GW.addLowPriorityJob(function(){_.PA(a.hostElement,"yt-refit");a.refitJob=0}))};
_.Z.handleAdditionalDetailCheckboxUpdateAction=function(a){this.additionalDetailCheckboxChecked=a;_.H(this.command,_.eno).additionalDetailCheckboxChecked=a};
_.eH.Object.defineProperties(hZ,{template:{configurable:!0,enumerable:!0,get:function(){if(cd0===void 0){var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-report-form-modal-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.flag.yt_report_form_modal_renderer.yt.report.form.modal.renderer.css.js--\x3e<template is="dom-if" if="[[submitting]]" restamp="" class="style-scope yt-report-form-modal-renderer">\n  <div id="container" class="style-scope yt-report-form-modal-renderer">\n    <div id="loading-indicator" class="style-scope yt-report-form-modal-renderer">\n      <tp-yt-paper-spinner-lite active="" class="style-scope yt-report-form-modal-renderer"></tp-yt-paper-spinner-lite>\n    </div>\n  </div>\n</template>\n<yt-formatted-string id="title" text="[[data.title]]" class="style-scope yt-report-form-modal-renderer"></yt-formatted-string>\n<tp-yt-paper-dialog-scrollable id="scroller" class="style-scope yt-report-form-modal-renderer">\n  <yt-report-form-modal-content can-show-additional-detail-checkbox="[[canShowAdditionalDetailCheckbox]]" can-show-checkbox="[[canShowCheckbox]]" data="[[data]]" keep-dropdown-focused-after-selection="[[keepDropdownFocusedAfterSelection]]" class="style-scope yt-report-form-modal-renderer">\n  </yt-report-form-modal-content>\n</tp-yt-paper-dialog-scrollable>\n<div class="buttons style-scope yt-report-form-modal-renderer">\n  <yt-button-renderer id="cancel-button" data="[[data.cancelButton.buttonRenderer]]" dialog-dismiss="" class="style-scope yt-report-form-modal-renderer">\n  </yt-button-renderer>\n  <yt-button-renderer id="submit-button" data="[[computeSubmitButtonData(data.submitButton, command)]]" dialog-confirm="" disabled="[[submitButtonDisabled]]" hidden="[[computeShowNextButton(data.nextButton, canShowNextButton,\n              canShowCheckbox)]]" class="style-scope yt-report-form-modal-renderer">\n  </yt-button-renderer>\n  <yt-button-renderer id="next-button" data="[[computeNextButtonData(data.nextButton, command)]]" dialog-confirm="" hidden="[[!computeShowNextButton(data.nextButton, canShowNextButton,\n              canShowCheckbox)]]" class="style-scope yt-report-form-modal-renderer">\n  </yt-button-renderer>\n</div>\n');
a.content.insertBefore(_.w().content.cloneNode(!0),a.content.firstChild);var z=a.content,I=z.insertBefore;MRZ===void 0&&(MRZ=document.createElement("template"));var J=MRZ;I.call(z,J.content.cloneNode(!0),a.content.firstChild);cd0=a}a=cd0;return a}}});
hZ.prototype.onYtServiceRequestError=hZ.prototype.onYtServiceRequestError;hZ.prototype.onYtServiceRequestCompleted=hZ.prototype.onYtServiceRequestCompleted;hZ.prototype.onYtServiceRequestSent=hZ.prototype.onYtServiceRequestSent;hZ.prototype.onYtNavigate=hZ.prototype.onYtNavigate;hZ.prototype.onYtPopupOpened=hZ.prototype.onYtPopupOpened;_.L([_.Q(_.K_.YtOpenPopupBehavior),_.p("design:type",Object)],hZ.prototype,"openPopupBehavior",void 0);
_.L([_.Q(_.k.YtRendererBehavior),_.p("design:type",Object)],hZ.prototype,"ytRendererBehavior",void 0);_.L([_.Q(_.Hc.YtActionHandlerBehavior),_.p("design:type",Object)],hZ.prototype,"ytActionHandlerBehavior",void 0);_.L([_.Q(_.iO.YtEventForwardingBehavior),_.p("design:type",Object)],hZ.prototype,"eventForwardingBehavior",void 0);_.L([_.Q(_.Ts),_.p("design:type",Object)],hZ.prototype,"ironResizableBehavior",void 0);_.L([_.x({observer:"dataChanged"}),_.p("design:type",Object)],hZ.prototype,"data",void 0);
_.L([_.x(),_.p("design:type",Object)],hZ.prototype,"submitting",void 0);_.L([_.x({observer:"submitButtonDisabledChanged"}),_.p("design:type",Object)],hZ.prototype,"submitButtonDisabled",void 0);_.L([_.x(),_.p("design:type",Object)],hZ.prototype,"command",void 0);_.L([_.x({reflectToAttribute:!0}),_.p("design:type",Boolean)],hZ.prototype,"hideReportForm",void 0);_.L([_.x(),_.p("design:type",Object)],hZ.prototype,"canShowCheckbox",void 0);
_.L([_.x(),_.p("design:type",Object)],hZ.prototype,"canShowAdditionalDetailCheckbox",void 0);_.L([_.x(),_.p("design:type",Object)],hZ.prototype,"canShowNextButton",void 0);_.L([_.x(),_.p("design:type",Object)],hZ.prototype,"additionalDetailCheckboxChecked",void 0);_.L([_.x(),_.p("design:type",Object)],hZ.prototype,"refitJob",void 0);_.L([_.x(),_.p("design:type",Object)],hZ.prototype,"keepDropdownFocusedAfterSelection",void 0);
_.L([_.A3("#scroller"),_.p("design:type",Object)],hZ.prototype,"JSC$20691_scroller",void 0);_.L([_.gz("yt-popup-opened"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],hZ.prototype,"onYtPopupOpened",null);_.L([_.gz("yt-navigate"),_.p("design:type",Function),_.p("design:paramtypes",[CustomEvent]),_.p("design:returntype")],hZ.prototype,"onYtNavigate",null);
_.L([_.gz("yt-service-request-sent"),_.p("design:type",Function),_.p("design:paramtypes",[CustomEvent,_.lJ]),_.p("design:returntype")],hZ.prototype,"onYtServiceRequestSent",null);_.L([_.gz("yt-service-request-completed"),_.p("design:type",Function),_.p("design:paramtypes",[CustomEvent,_.Yq]),_.p("design:returntype")],hZ.prototype,"onYtServiceRequestCompleted",null);
_.L([_.gz("yt-service-request-error"),_.p("design:type",Function),_.p("design:paramtypes",[CustomEvent]),_.p("design:returntype")],hZ.prototype,"onYtServiceRequestError",null);_.L([_.dz({is:"yt-report-form-modal-renderer",notifyObserversOnUndefined:!1,noInjection:!0})],hZ);var YqV;var qq4;var VW=function(){return _.G.apply(this,arguments)||this};
_.b(VW,_.G);_.Z=VW.prototype;_.Z.attached=function(){this.isDarkTheme=!!document.documentElement.hasAttribute("dark");this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");this.hostElement.id="mealbar-promo-renderer"};
_.Z.onVisible=function(){var a,z;(z=_.ab().resolve(_.eL(_.xn)))==null||z.enqueue({label:_.cd((a=this.data)==null?void 0:a.messageTitle),elementToFocus:this.hostElement})};
_.Z.onThumbnailLoaded=function(){_.PA(this.hostElement,"yt-refit")};
_.Z.onDismissTap=function(){_.ZF(this.hostElement,"yt-close-popup-action",["yt-mealbar-promo-renderer"])};
_.Z.computeAlternateIcon=function(a){return a?a==="BACKSTAGE_ARTWORK"?"backstage:artwork":a:null};
_.Z.computeFontFamily=function(a){return a==="PROMO_FONT_FAMILY_YOUTUBE_SANS_BOLD"};
_.Z.computeBackgroundStyle=function(a,z){if(a=this.computeBackgroundImage(a,z))if(a=_.P8(a.thumbnails))return'background-image: url("'+a+'");'};
_.Z.computeHasFullHeightImage=function(a){return!(!(a&&a.thumbnails&&a.thumbnails.length>0)||this.modern)};
_.Z.isModernStyle=function(a){return a.style==="STYLE_MODERN"};
_.Z.computeIcon=function(a,z){if(a&&a.icon)return z?a.iconDark:a.icon};
_.Z.computeBackgroundImage=function(a,z){if(a&&a.backgroundImage)return z?a.backgroundImageDark:a.backgroundImage};
_.Z.computeLogo=function(a,z){if(a&&a.logo)return z?a.logoDark:a.logo};
_.Z.computeShouldShowModernIcon=function(a,z){return a&&!!z};
_.Z.getLogoContainerClassName=function(a){return this.logoWithPadding(a)?"yt-mealbar-promo-renderer-logo-with-padding":"yt-mealbar-promo-renderer-logo"};
_.Z.getLogoImageId=function(a){return this.logoWithPadding(a)?"mealbar-logo-with-padding":"mealbar-logo"};
_.Z.logoWithPadding=function(a){var z,I,J;return(a=(z=this.computeLogo(a,this.isDarkTheme))==null?void 0:(I=z.thumbnails)==null?void 0:(J=I[0])==null?void 0:J.height)&&a%31===0?!0:!1};
VW.prototype.onThumbnailLoaded=VW.prototype.onThumbnailLoaded;_.L([_.Q(_.k.YtRendererBehavior),_.p("design:type",Object)],VW.prototype,"ytRendererBehavior",void 0);_.L([_.x({}),_.p("design:type",Object)],VW.prototype,"data",void 0);_.L([_.x({reflectToAttribute:!0,computed:"isModernStyle(data)"}),_.p("design:type",Boolean)],VW.prototype,"modern",void 0);_.L([_.x({value:!1}),_.p("design:type",Boolean)],VW.prototype,"isDarkTheme",void 0);
_.L([_.x({computed:"computeIcon(data, isDarkTheme)"}),_.p("design:type",Object)],VW.prototype,"icon",void 0);_.L([_.x({computed:"computeLogo(data, isDarkTheme)"}),_.p("design:type",Object)],VW.prototype,"logo",void 0);_.L([_.x({computed:"computeBackgroundStyle(data, isDarkTheme)"}),_.p("design:type",Object)],VW.prototype,"backgroundStyle",void 0);_.L([_.x({computed:"computeAlternateIcon(data.alternateIcon.iconType)"}),_.p("design:type",Object)],VW.prototype,"alternateIcon",void 0);
_.L([_.x({reflectToAttribute:!0,computed:"computeHasFullHeightImage(data.icon)"}),_.p("design:type",Boolean)],VW.prototype,"hasFullHeightImage",void 0);_.L([_.x({reflectToAttribute:!0,computed:"computeFontFamily(data.font)"}),_.p("design:type",Boolean)],VW.prototype,"useYoutubeSans",void 0);_.L([_.x({computed:"computeShouldShowModernIcon(modern, icon)"}),_.p("design:type",Boolean)],VW.prototype,"shouldShowModernIcon",void 0);
_.L([_.gz("yt-img-shadow-loaded"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],VW.prototype,"onThumbnailLoaded",null);_.L([_.dz({is:"yt-mealbar-promo-renderer",disableElementRegistration:!0})],VW);
_.D(VW,"yt-mealbar-promo-renderer",function(){if(qq4===void 0){var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-mealbar-promo-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.promos.yt_mealbar_promo_renderer.yt.mealbar.promo.renderer.css.js--\x3e<template is="dom-if" if="[[!modern]]" class="style-scope yt-mealbar-promo-renderer">\n  <yt-img-shadow id="icon" hidden="[[!data.icon]]" notify-on-loaded="" thumbnail="[[data.icon]]" class="style-scope yt-mealbar-promo-renderer">\n  </yt-img-shadow>\n  <yt-icon id="alternate-icon" hidden="[[!alternateIcon]]" icon="[[alternateIcon]]" class="style-scope yt-mealbar-promo-renderer"></yt-icon>\n</template>\n<div id="main" style$="[[backgroundStyle]]" class="style-scope yt-mealbar-promo-renderer">\n  <div class="yt-mealbar-promo-renderer-content style-scope yt-mealbar-promo-renderer">\n    <div class="style-scope yt-mealbar-promo-renderer">\n      <template is="dom-if" if="[[logo]]" class="style-scope yt-mealbar-promo-renderer">\n        <div class$="[[getLogoContainerClassName(data)]] style-scope yt-mealbar-promo-renderer">\n          <yt-img-shadow dimension="HEIGHT" height="20" hidden="[[!logo]]" id$="[[getLogoImageId(data)]]" notify-on-loaded="" object-fit="CONTAIN" thumbnail="[[logo]]" class="style-scope yt-mealbar-promo-renderer">\n          </yt-img-shadow>\n        </div>\n      </template>\n      <h2 class="yt-mealbar-promo-renderer-message-title style-scope yt-mealbar-promo-renderer">\n        <yt-formatted-string text="[[data.messageTitle]]" class="style-scope yt-mealbar-promo-renderer"></yt-formatted-string>\n      </h2>\n      <template is="dom-repeat" items="[[data.messageTexts]]" class="style-scope yt-mealbar-promo-renderer">\n        <div id="message-text" class="yt-mealbar-promo-renderer-message-text style-scope yt-mealbar-promo-renderer">\n          <yt-formatted-string text="[[item]]" class="style-scope yt-mealbar-promo-renderer"></yt-formatted-string>\n        </div>\n      </template>\n      <template is="dom-if" if="[[data.supplementalText]]" class="style-scope yt-mealbar-promo-renderer">\n        <yt-formatted-string class="yt-mealbar-promo-renderer-supplemental-text style-scope yt-mealbar-promo-renderer" text="[[data.supplementalText]]"></yt-formatted-string>\n      </template>\n    </div>\n    <template is="dom-if" if="[[shouldShowModernIcon]]" class="style-scope yt-mealbar-promo-renderer">\n      <yt-img-shadow class="yt-mealbar-promo-renderer-modern-icon style-scope yt-mealbar-promo-renderer" hidden="[[!icon]]" notify-on-loaded="" thumbnail="[[icon]]">\n      </yt-img-shadow>\n    </template>\n  </div>\n  <div class="button-container style-scope yt-mealbar-promo-renderer">\n    <template is="dom-if" if="[[data.dismissButton.buttonRenderer]]" class="style-scope yt-mealbar-promo-renderer">\n      <yt-button-renderer id="dismiss-button" data="[[data.dismissButton.buttonRenderer]]" on-click="onDismissTap" class="style-scope yt-mealbar-promo-renderer">\n      </yt-button-renderer>\n    </template>\n    <template is="dom-if" if="[[data.actionButton.buttonRenderer]]" class="style-scope yt-mealbar-promo-renderer">\n      <yt-button-renderer id="action-button" data="[[data.actionButton.buttonRenderer]]" on-click="onDismissTap" class="style-scope yt-mealbar-promo-renderer">\n      </yt-button-renderer>\n    </template>\n  </div>\n</div>\n');a.content.insertBefore(_.w().content.cloneNode(!0),
a.content.firstChild);var z=a.content,I=z.insertBefore;YqV===void 0&&(YqV=document.createElement("template"));var J=YqV;I.call(z,J.content.cloneNode(!0),a.content.firstChild);qq4=a}a=qq4;return a},{mode:2});var elV;var aQz;var QW=function(){return _.G.apply(this,arguments)||this};
_.b(QW,_.G);_.Z=QW.prototype;_.Z.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]]"}}}}}};
_.Z.computeHasButtons_=function(a){return!(!a.dismissButton&&!a.acceptButton)};
_.Z.computeStyle_=function(a){return a||"BUBBLE_HINT_STYLE_UNKNOWN"};
_.Z.observeImpressionEndpoints_=function(){var a=this;this.data&&this.data.promoConfig&&this.data.promoConfig.impressionEndpoints&&this.data.promoConfig.impressionEndpoints.forEach(function(z){z.clickTrackingParams&&delete z.clickTrackingParams;_.N$(a.hostElement,[z])})};
_.Z.onTap_=function(){_.ZF(this.hostElement,"yt-close-popup-action",["yt-tooltip-renderer"])};
QW.prototype.observeImpressionEndpoints_=QW.prototype.observeImpressionEndpoints_;_.L([_.Q(_.k.YtRendererBehavior),_.p("design:type",Object)],QW.prototype,"ytRendererBehavior",void 0);_.L([_.Q(_.iO.YtEventForwardingBehavior),_.p("design:type",Object)],QW.prototype,"ytEventForwardingBehavior",void 0);_.L([_.Q(_.u4.YtRendererstamperBehavior),_.p("design:type",Object)],QW.prototype,"ytRendererstamperBehavior",void 0);_.L([_.x(),_.p("design:type",Object)],QW.prototype,"data",void 0);
_.L([_.x({reflectToAttribute:!0}),_.p("design:type",Object)],QW.prototype,"positionType",void 0);_.L([_.x({value:!1,reflectToAttribute:!0,computed:"computeHasButtons_(data)"}),_.p("design:type",Boolean)],QW.prototype,"hasButtons_",void 0);_.L([_.x({value:function(){return this.onTap_.bind(this)}}),
_.p("design:type",Function)],QW.prototype,"boundOnTap_",void 0);_.L([_.x({value:{style:"mono-inverse"}}),_.p("design:type",Object)],QW.prototype,"buttonOverride",void 0);_.L([_.O8("data.promoConfig.impressionEndpoints"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],QW.prototype,"observeImpressionEndpoints_",null);_.L([_.dz({is:"yt-tooltip-renderer",disableElementRegistration:!0})],QW);
_.D(QW,"yt-tooltip-renderer",function(){if(aQz===void 0){var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-tooltip-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.promos.yt_tooltip_renderer.yt.tooltip.renderer.css.js--\x3e<div id="content" class="style-scope yt-tooltip-renderer">\n  <yt-formatted-string id="text" hidden$="[[!data.text]]" text="[[data.text]]" class="style-scope yt-tooltip-renderer">\n  </yt-formatted-string>\n  <yt-formatted-string id="details-text" hidden$="[[!data.detailsText]]" text="[[data.detailsText]]" class="style-scope yt-tooltip-renderer">\n  </yt-formatted-string>\n</div>\n<div class="buttons style-scope yt-tooltip-renderer" hidden="[[!hasButtons_]]">\n  <div id="dismiss-button" hidden$="[[!data.dismissButton]]" class="style-scope yt-tooltip-renderer"></div>\n  <div id="accept-button" hidden$="[[!data.acceptButton]]" class="style-scope yt-tooltip-renderer"></div>\n</div>\n');
a.content.insertBefore(_.w().content.cloneNode(!0),a.content.firstChild);var z=a.content,I=z.insertBefore;elV===void 0&&(elV=document.createElement("template"));var J=elV;I.call(z,J.content.cloneNode(!0),a.content.firstChild);aQz=a}a=aQz;return a},{mode:2});var je0;var zfe;var IQE={},JF4=(IQE.WEB_REMIX="music.youtube.com",IQE),Ss=function(){var a=_.G.apply(this,arguments)||this;a.actionMap={"yt-signal-action-copy-share-embed-url":"handleSignalActionCopyShareEmbedUrl_","yt-share-panel-set-timestamp-action":"handleSetTimestamp_"};return a};
_.b(Ss,_.G);_.Z=Ss.prototype;_.Z.configureRendererStamper=function(){return{"data.actionButtons":{id:"action-buttons",mapping:{buttonRenderer:"yt-button-renderer"}},"data.startAt":{id:"start-at",mapping:{startAtRenderer:"yt-start-at-renderer"}}}};
_.Z.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.Z.created=function(){this.embedHost_=JF4[_.Xw("INNERTUBE_CLIENT_NAME")]||"www.youtube.com"};
_.Z.ready=function(){_.PK(this.hostElement).querySelector("#embed-code").addEventListener("tap",this.onEmbedCode_.bind(this))};
_.Z.computeEmbedCode_=function(a,z,I,J,r){if(!a)return"";var P=a.videoId,N=a.fullListId,u=[];a.attributionId&&u.push("si="+a.attributionId);J||u.push("controls=0");I&&Number(z)>0&&u.push("start="+z);N&&(P="videoseries",u.push("list="+N));I="https://"+(r?"www.youtube-nocookie.com":this.embedHost_)+"/embed/"+P;a.clipId&&(u.push("clip="+a.clipId),u.push("clipt="+a.clipTiming));z=u.length>0?I+"?"+u.join("&amp;"):I;a.encryptedEmbedConfig&&u.push("embed_config="+JSON.stringify({enc:a.encryptedEmbedConfig}));
u=u.length>0?I+"?"+u.join("&amp;"):I;_.K("web_sharing_embed_preview_killswitch")?_.PK(this.videoPreviewContainer).innerHTML=this.getEmbedCode_(u,a.previewWidth||854,a.previewHeight||480):(_.G2(this.videoPreviewContainer),_.PK(this.videoPreviewContainer).appendChild(this.buildIframeElement(u)));return this.getEmbedCode_(z,a.width||560,a.height||315)};
_.Z.buildIframeElement=function(a){var z=document.createElement("iframe"),I,J;z.width=""+((J=(I=this.data)==null?void 0:I.previewWidth)!=null?J:854);var r,P;z.height=""+((P=(r=this.data)==null?void 0:r.previewHeight)!=null?P:480);_.JyO(z,2,a);z.title="YouTube video player";z.frameBorder="0";z.allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share";z.referrerPolicy="strict-origin-when-cross-origin";z.allowFullscreen=!0;return z};
_.Z.computeIsSquareAspectRatio_=function(a){return a.previewHeight&&a.previewWidth?a.previewHeight==a.previewWidth:!1};
_.Z.computeShowEmbedOptions_=function(a){return!!a.enablePrivacyModeOptionLabel||!!a.showPlayerControlsOptionLabel};
_.Z.getEmbedCode_=function(a,z,I){return'<iframe width="'+z+'" height="'+I+'" src="'+a+'" title="YouTube video player" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share" referrerpolicy="strict-origin-when-cross-origin" allowfullscreen></iframe>'};
_.Z.handleSignalActionCopyShareEmbedUrl_=function(){_.PK(this.hostElement).querySelector("#embed-code").inputElement.textarea.select();document.execCommand("copy");this.trackEmbedCopyUrl_()};
_.Z.handleSetTimestamp_=function(a){this.startAtTimeStamp_=(this.startAtChecked_=a.isSet)?a.timestamp:0};
_.Z.closePanel_=function(){_.ZF(this.hostElement,"yt-close-popup-action",["yt-sharing-embed-renderer"])};
_.Z.onEmbedCode_=function(){_.PK(this.hostElement).querySelector("#embed-code").inputElement.textarea.select();this.trackEmbedCopyUrl_()};
_.Z.onYtPopupClosed_=function(){_.G2(_.PK(this.hostElement).querySelector("#video-preview"))};
_.Z.trackEmbedCopyUrl_=function(){this&&this.data&&this.data.actionButtons&&this.data.actionButtons.length>0&&_.H(this.data.actionButtons[0],_.lc)&&this.ytRendererBehavior.logExplicitClick(_.H(this.data.actionButtons[0],_.lc))};
Ss.prototype.onYtPopupClosed_=Ss.prototype.onYtPopupClosed_;_.L([_.Q(_.u4.YtRendererstamperBehavior),_.p("design:type",Object)],Ss.prototype,"ytRendererstamperBehavior",void 0);_.L([_.Q(_.k.YtRendererBehavior),_.p("design:type",Object)],Ss.prototype,"ytRendererBehavior",void 0);_.L([_.Q(_.Hc.YtActionHandlerBehavior),_.p("design:type",Object)],Ss.prototype,"ytActionHandlerBehavior",void 0);_.L([_.x(),_.p("design:type",Object)],Ss.prototype,"data",void 0);
_.L([_.x({computed:"computeEmbedCode_(data, startAtTimeStamp_, startAtChecked_, isPlayerControlsOptionChecked_, isPrivacyModeOptionChecked_)"}),_.p("design:type",String)],Ss.prototype,"embedCode_",void 0);_.L([_.x({value:!0}),_.p("design:type",Boolean)],Ss.prototype,"isPlayerControlsOptionChecked_",void 0);_.L([_.x({value:!1}),_.p("design:type",Boolean)],Ss.prototype,"isPrivacyModeOptionChecked_",void 0);_.L([_.x({value:!1,notify:!0}),_.p("design:type",Boolean)],Ss.prototype,"startAtChecked_",void 0);
_.L([_.x({value:0}),_.p("design:type",Number)],Ss.prototype,"startAtTimeStamp_",void 0);_.L([_.x({computed:"computeIsSquareAspectRatio_(data)",reflectToAttribute:!0}),_.p("design:type",Boolean)],Ss.prototype,"isSquareAspectRatio_",void 0);_.L([_.A3("#video-preview"),_.p("design:type",HTMLElement)],Ss.prototype,"videoPreviewContainer",void 0);_.L([_.gz("yt-popup-closed"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],Ss.prototype,"onYtPopupClosed_",null);
_.L([_.dz({is:"yt-sharing-embed-renderer",disableElementRegistration:!0})],Ss);
_.D(Ss,"yt-sharing-embed-renderer",function(){if(zfe===void 0){var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-sharing-embed-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.sharing.yt_sharing_embed_renderer.yt.sharing.embed.renderer.css.js--\x3e<div id="video-preview" class="style-scope yt-sharing-embed-renderer"></div>\n<div id="embed-panel" class="style-scope yt-sharing-embed-renderer">\n  <div id="title-bar" class="style-scope yt-sharing-embed-renderer">\n    <div id="embed-label" class="style-scope yt-sharing-embed-renderer">\n      <yt-formatted-string text="[[data.title]]" class="style-scope yt-sharing-embed-renderer"></yt-formatted-string>\n    </div>\n    <yt-icon id="close-panel-icon" icon="yt-icons:close" on-tap="closePanel_" class="style-scope yt-sharing-embed-renderer"></yt-icon>\n  </div>\n  <tp-yt-paper-dialog-scrollable id="content" class="style-scope yt-sharing-embed-renderer">\n    <div id="basic" class="style-scope yt-sharing-embed-renderer">\n      <tp-yt-paper-textarea id="embed-code" no-label-float="" use-v2-underline="" value="{{embedCode_}}" class="style-scope yt-sharing-embed-renderer"></tp-yt-paper-textarea>\n      <div id="start-at" class="style-scope yt-sharing-embed-renderer"></div>\n    </div>\n    <template is="dom-if" if="[[computeShowEmbedOptions_(data)]]" class="style-scope yt-sharing-embed-renderer">\n      <div id="embed-options" class="style-scope yt-sharing-embed-renderer">\n        <yt-formatted-string id="embed-options-label" text="[[data.embedOptionsLabel]]" class="style-scope yt-sharing-embed-renderer">\n        </yt-formatted-string>\n        <div id="layout-size" class="style-scope yt-sharing-embed-renderer">\n          \n        </div>\n        <tp-yt-paper-checkbox id="player-controls-option" checked="{{isPlayerControlsOptionChecked_}}" class="style-scope yt-sharing-embed-renderer">\n          <yt-formatted-string text="[[data.showPlayerControlsOptionLabel]]" class="style-scope yt-sharing-embed-renderer">\n          </yt-formatted-string>\n        </tp-yt-paper-checkbox>\n        <span id="privacy-mode-wrapper" class="style-scope yt-sharing-embed-renderer">\n          <tp-yt-paper-checkbox id="privacy-mode-option" checked="{{isPrivacyModeOptionChecked_}}" class="style-scope yt-sharing-embed-renderer">\n            <yt-formatted-string text="[[data.enablePrivacyModeOptionLabel]]" class="style-scope yt-sharing-embed-renderer">\n            </yt-formatted-string>\n          </tp-yt-paper-checkbox>\n          <yt-icon id="privacy-mode-info" icon="yt-icons:info-outline" class="style-scope yt-sharing-embed-renderer"></yt-icon>\n          <tp-yt-paper-tooltip id="privacy-tooltip" for="privacy-mode-info" position="top" class="style-scope yt-sharing-embed-renderer">\n            [[data.enablePrivacyModeOptionLabel.accessibility.accessibilityData.label]]\n          </tp-yt-paper-tooltip>\n        </span>\n      </div>\n    </template>\n    <div id="additional-info" class="style-scope yt-sharing-embed-renderer">\n      <div id="additional-links" class="style-scope yt-sharing-embed-renderer">\n        <yt-formatted-string class="link style-scope yt-sharing-embed-renderer" link-inherit-color="" text="[[data.apiReferenceLinkLabel]]">\n        </yt-formatted-string>\n        <yt-formatted-string class="link style-scope yt-sharing-embed-renderer" link-inherit-color="" text="[[data.developerSampleLinkLabel]]"></yt-formatted-string>\n      </div>\n      <yt-formatted-string id="legal-info" text="[[data.legalInfo]]" class="style-scope yt-sharing-embed-renderer"></yt-formatted-string>\n    </div>\n  </tp-yt-paper-dialog-scrollable>\n  <div id="action-buttons" class="style-scope yt-sharing-embed-renderer"></div>\n</div>\n');a.content.insertBefore(_.w().content.cloneNode(!0),
a.content.firstChild);var z=a.content,I=z.insertBefore;je0===void 0&&(je0=document.createElement("template"));var J=je0;I.call(z,J.content.cloneNode(!0),a.content.firstChild);zfe=a}a=zfe;return a},{mode:2});var rFZ={};
rFZ.YtUnlimitedFamilyInterstitialBehavior=[_.K_.YtOpenPopupBehavior,_.Hc.YtActionHandlerBehavior,{actionMap:{"yt-signal-action-show-previous-family-dialog":"handleSignalActionShowPreviousFamilyDialog_","yt-open-popup-action":"handleOpenPopupAction_","yt-unlimited-create-family-endpoint":"handleUnlimitedCreateFamilyEndpoint_"},listeners:{"yt-popup-closed":"onPopupClosed_"},created:function(){window.familyDialogHistory||(window.familyDialogHistory=[]);this.dialogHistory_=window.familyDialogHistory;this.showingPreviousDialog_=
!1},
maybeCloseDialogOnFooterButtonTap:function(a){a=_.NEf(_.Yh(a),"yt-button-renderer");return a?a.hasAttribute("footer-button")?(this.hostElement.parentElement.close(),!0):!1:!1},
pushToHistory:function(a){this.dialogHistory_.push(a)},
popFromHistory:function(){return this.dialogHistory_.pop()},
handleSignalActionShowPreviousFamilyDialog_:function(){var a=this.popFromHistory();if(a){var z={openPopupAction:{popupType:"DIALOG",popup:{}}};z.openPopupAction.popup[a.renderer]=a.data;this.showingPreviousDialog_=!0;this.openPopup(z)}},
handleOpenPopupAction_:function(a){if(this.showingPreviousDialog_)this.showingPreviousDialog_=!1;else{var z=["unlimitedFamilyMessageInterstitialRenderer","unlimitedFamilyProfileInterstitialRenderer"].some(function(J){return!!a.openPopupAction.popup[J]}),I=this.getElementName_();
z&&this.data&&(this.pushToHistory({renderer:I,data:this.data}),this.hostElement.parentElement.close())}},
handleUnlimitedCreateFamilyEndpoint_:function(a){if(a=_.H(a,VY0))this.loading=!0,_.ZF(this.hostElement,"yt-open-create-family-dialog",[a,this.unicornReadyCallback_.bind(this)])},
getElementName_:function(){var a=this.hostElement.nodeName.split("-").slice(1).map(function(z){return""+z[0].toUpperCase()+z.slice(1).toLowerCase()}).join("");
return a[0].toLowerCase()+a.slice(1)},
unicornReadyCallback_:function(){this.hostElement.parentElement.close&&this.hostElement.parentElement.close();this.loading=!1}}];var PD0;var Zyz;var i6=function(){return _.G.apply(this,arguments)||this};
_.b(i6,_.G);_.Z=i6.prototype;_.Z.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}}}}}};
_.Z.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");_.ZF(this.hostElement,"yt-register-create-family-dialog");_.PK(this.hostElement).querySelector("#thumbnail").onShow()};
_.Z.fireOnCloseCommand_=function(){var a;((a=this.data)==null?0:a.onCloseCommand)&&_.tR(this.hostElement,[this.data.onCloseCommand],this.hostElement)};
_.Z.onYtServiceRequestSent_=function(a,z){z&&z.endpoint&&_.H(z.endpoint,_.ge)||(this.loading=!0)};
_.Z.onYtServiceRequestCompleted_=function(){var a=this.hostElement.parentElement;a.close&&a.close();this.loading=!1};
_.Z.openPopupHandler_=function(a){if(a.detail==this){var z;((z=this.data)==null?0:z.onOpenCommands)&&_.tR(this.hostElement,this.data.onOpenCommands,this.hostElement)}};
_.Z.closePopupHandler_=function(a,z){this.fireOnCloseCommand_();if(z&&z.canceled===!0||z&&z.canceled===!1&&z.confirmed===!1){var I;((I=this.data)==null?0:I.onDismissCommands)&&_.tR(this.hostElement,this.data.onDismissCommands,this.hostElement)}};
_.Z.dataChanged_=function(){this.loading=!1};
i6.prototype.dataChanged_=i6.prototype.dataChanged_;i6.prototype.closePopupHandler_=i6.prototype.closePopupHandler_;i6.prototype.openPopupHandler_=i6.prototype.openPopupHandler_;i6.prototype.onYtServiceRequestCompleted_=i6.prototype.onYtServiceRequestCompleted_;i6.prototype.onYtServiceRequestSent_=i6.prototype.onYtServiceRequestSent_;_.L([_.Q(_.iO.YtEventForwardingBehavior),_.p("design:type",Object)],i6.prototype,"ytEventForwardingBehavior",void 0);
_.L([_.Q(_.u4.YtRendererstamperBehavior),_.p("design:type",Object)],i6.prototype,"ytRendererstamperBehavior",void 0);_.L([_.Q(rFZ.YtUnlimitedFamilyInterstitialBehavior),_.p("design:type",Object)],i6.prototype,"ytUnlimitedFamilyInterstitialBehavior",void 0);_.L([_.Q(_.k.YtRendererBehavior),_.p("design:type",Object)],i6.prototype,"ytRendererBehavior",void 0);_.L([_.x(),_.p("design:type",Object)],i6.prototype,"data",void 0);
_.L([_.x({reflectToAttribute:!0,value:!1}),_.p("design:type",Boolean)],i6.prototype,"loading",void 0);_.L([_.gz("yt-service-request-sent"),_.p("design:type",Function),_.p("design:paramtypes",[CustomEvent,_.lJ]),_.p("design:returntype")],i6.prototype,"onYtServiceRequestSent_",null);_.L([_.gz("yt-service-request-completed"),_.p("design:type",Function),_.p("design:paramtypes",[CustomEvent,_.Yq]),_.p("design:returntype")],i6.prototype,"onYtServiceRequestCompleted_",null);
_.L([_.gz("yt-popup-opened"),_.p("design:type",Function),_.p("design:paramtypes",[CustomEvent,Object]),_.p("design:returntype")],i6.prototype,"openPopupHandler_",null);_.L([_.gz("yt-popup-closed"),_.p("design:type",Function),_.p("design:paramtypes",[CustomEvent,Object]),_.p("design:returntype")],i6.prototype,"closePopupHandler_",null);_.L([_.O8("data"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],i6.prototype,"dataChanged_",null);
_.L([_.dz({is:"yt-unlimited-family-message-interstitial-renderer",disableElementRegistration:!0})],i6);
_.D(i6,"yt-unlimited-family-message-interstitial-renderer",function(){if(Zyz===void 0){var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-unlimited-family-message-interstitial-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.ypc.yt_unlimited_family_message_interstitial_renderer.yt.unlimited.family.message.interstitial.renderer.css.js--\x3e<tp-yt-paper-spinner active="[[loading]]" class="style-scope yt-unlimited-family-message-interstitial-renderer"></tp-yt-paper-spinner>\n<div class="content-container style-scope yt-unlimited-family-message-interstitial-renderer" hidden="[[loading]]">\n  <div class="main-content style-scope yt-unlimited-family-message-interstitial-renderer">\n    <h2 class="style-scope yt-unlimited-family-message-interstitial-renderer">[[getSimpleString(data.title)]]</h2>\n    <yt-formatted-string class="content style-scope yt-unlimited-family-message-interstitial-renderer" text="[[data.content]]"></yt-formatted-string>\n  </div>\n  <yt-img-shadow id="thumbnail" thumbnail="[[data.thumbnail]]" width="252" class="style-scope yt-unlimited-family-message-interstitial-renderer"></yt-img-shadow>\n</div>\n<div class="footer-container style-scope yt-unlimited-family-message-interstitial-renderer" hidden="[[loading]]">\n  <yt-formatted-string class="footer style-scope yt-unlimited-family-message-interstitial-renderer" text="[[data.footer]]"></yt-formatted-string>\n  <div class="buttons style-scope yt-unlimited-family-message-interstitial-renderer">\n    <div id="dismiss-button" class="footer-button style-scope yt-unlimited-family-message-interstitial-renderer"></div>\n    <div id="action-button" class="footer-button style-scope yt-unlimited-family-message-interstitial-renderer"></div>\n  </div>\n</div>\n');a.content.insertBefore(_.w().content.cloneNode(!0),
a.content.firstChild);var z=a.content,I=z.insertBefore;PD0===void 0&&(PD0=document.createElement("template"));var J=PD0;I.call(z,J.content.cloneNode(!0),a.content.firstChild);Zyz=a}a=Zyz;return a},{mode:2});var CDE;var NmZ;var xy=function(){return _.G.apply(this,arguments)||this};
_.b(xy,_.G);xy.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"}}}};
xy.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");_.PK(this.hostElement).querySelectorAll(".secondary-thumbnail").forEach(function(a){a.onShow()});
_.PK(this.hostElement).querySelector("#main-thumbnail").onShow()};
xy.prototype.onButtonTap_=function(a){this.ytUnlimitedFamilyInterstitialBehavior.maybeCloseDialogOnFooterButtonTap(a)};
xy.prototype.computeMainThumbnailWidth_=function(a){return a&&a.length!==0?72:96};
_.L([_.Q(_.u4.YtRendererstamperBehavior),_.p("design:type",Object)],xy.prototype,"ytRendererstamperBehavior",void 0);_.L([_.Q(_.k.YtRendererBehavior),_.p("design:type",Object)],xy.prototype,"ytRendererBehavior",void 0);_.L([_.Q(rFZ.YtUnlimitedFamilyInterstitialBehavior),_.p("design:type",Object)],xy.prototype,"ytUnlimitedFamilyInterstitialBehavior",void 0);_.L([_.x(),_.p("design:type",Object)],xy.prototype,"data",void 0);
_.L([_.x({computed:"computeMainThumbnailWidth_(data.secondaryThumbnails)"}),_.p("design:type",Number)],xy.prototype,"mainThumbnailWidth_",void 0);_.L([_.x({value:function(){return this.onButtonTap_.bind(this)}}),
_.p("design:type",Function)],xy.prototype,"boundButtonTap_",void 0);_.L([_.dz({is:"yt-unlimited-family-profile-interstitial-renderer",disableElementRegistration:!0})],xy);
_.D(xy,"yt-unlimited-family-profile-interstitial-renderer",function(){if(NmZ===void 0){var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-unlimited-family-profile-interstitial-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.ypc.yt_unlimited_family_profile_interstitial_renderer.yt.unlimited.family.profile.interstitial.renderer.css.js--\x3e<div class="content-container style-scope yt-unlimited-family-profile-interstitial-renderer"><div class="left-side style-scope yt-unlimited-family-profile-interstitial-renderer"><h2 class="style-scope yt-unlimited-family-profile-interstitial-renderer">[[getSimpleString(data.additionalInfoHeader)]]</h2><yt-formatted-string class="additional-info style-scope yt-unlimited-family-profile-interstitial-renderer" text="[[data.additionalInfo]]"></yt-formatted-string></div><div class="right-side style-scope yt-unlimited-family-profile-interstitial-renderer"><yt-img-shadow id="main-thumbnail" thumbnail="[[data.mainThumbnail]]" width="[[mainThumbnailWidth_]]" class="style-scope yt-unlimited-family-profile-interstitial-renderer"></yt-img-shadow><div class="secondary-thumbnails style-scope yt-unlimited-family-profile-interstitial-renderer"><template is="dom-repeat" items="[[data.secondaryThumbnails]]" class="style-scope yt-unlimited-family-profile-interstitial-renderer"><yt-img-shadow class="secondary-thumbnail style-scope yt-unlimited-family-profile-interstitial-renderer" thumbnail="[[item]]" width="36"></yt-img-shadow></template></div><span class="member-info style-scope yt-unlimited-family-profile-interstitial-renderer">[[getSimpleString(data.memberInfo)]]</span><span class="member-title style-scope yt-unlimited-family-profile-interstitial-renderer">[[getSimpleString(data.memberTitle)]]</span><div id="manage-button" class="style-scope yt-unlimited-family-profile-interstitial-renderer"></div></div></div><div class="buttons style-scope yt-unlimited-family-profile-interstitial-renderer"><div id="dismiss-button" class="style-scope yt-unlimited-family-profile-interstitial-renderer"></div><div id="action-button" class="style-scope yt-unlimited-family-profile-interstitial-renderer"></div></div>');a.content.insertBefore(_.w().content.cloneNode(!0),
a.content.firstChild);var z=a.content,I=z.insertBefore;CDE===void 0&&(CDE=document.createElement("template"));var J=CDE;I.call(z,J.content.cloneNode(!0),a.content.firstChild);NmZ=a}a=NmZ;return a},{mode:2});var twi;var uAZ;var vo=function(){var a=_.G.apply(this,arguments)||this;a.sliderAriaValueText_=null;a.selectedIndex_=0;a.messages={PAUSE_SLIDER:_.AR("PAUSE_SLIDER",void 0,"Pause Duration")};return a};
_.b(vo,_.G);_.Z=vo.prototype;_.Z.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_]]"}}}}}};
_.Z.onPopupOpened_=function(a){a.detail==this&&_.K("enable_premium_voluntary_pause")&&(_.ZF(this.hostElement,"yt-close-popup-action",["yt-confirm-dialog-renderer"]),this.handleOnOpenCommands_())};
_.Z.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.Z.setDialogData=function(a){this.data=a;this.resetSlider_()};
_.Z.dataChanged_=function(){this.data&&this.resetSlider_()};
_.Z.onSubmitTap_=function(){if(this.data.confirmCommand){var a=this.data.confirmCommand;_.H(a,_.H_I)&&_.N$(this.hostElement,[a,{resume_time_ms:parseInt(this.selectedData_.resumeTimeMs,10)}])}};
_.Z.onExitButtonTap_=function(){_.ZF(this.hostElement,"yt-close-popup-action",["yt-unplugged-pause-membership-dialog-renderer"])};
_.Z.closePopupHandler_=function(a,z){(z&&z.canceled===!0||z.canceled===!1&&z.confirmed===!1)&&this.handleOnDismissCommands_()};
_.Z.onSliderChange_=function(){this.selectedIndex_=_.PK(this.hostElement).querySelector("#id-pause-slider").immediateValue;this.updateUiState_()};
_.Z.updateUiState_=function(){this.data&&(this.selectedData_=this.data.endOptions[this.selectedIndex_],this.setSliderAriaValueText_())};
_.Z.setSliderAriaValueText_=function(){this.selectedData_&&(this.sliderAriaValueText_=this.selectedData_.accessibilityData.label)};
_.Z.resetSlider_=function(){if(this.data){var a=this.data.defaultEndOptionIndex||0,z=_.PK(this.hostElement).querySelector("#id-pause-slider");if(z.immediateValue<a)for(;z.immediateValue!=a;)z.increment();else if(a<z.immediateValue)for(;z.immediateValue!=a;)z.decrement();this.selectedIndex_=a;this.selectIndexMax_=this.data.endOptions.length-1;this.updateUiState_()}};
_.Z.handleOnOpenCommands_=function(){this.data&&this.data.onOpenCommands&&this.data.onOpenCommands&&_.tR(this.hostElement,this.data.onOpenCommands,this.hostElement)};
_.Z.handleOnDismissCommands_=function(){this.data&&this.data.onDismissCommands&&this.data.onDismissCommands&&_.tR(this.hostElement,this.data.onDismissCommands,this.hostElement)};
_.Z.onYtServiceRequestSent=function(){this.loading=!0};
_.Z.onYtServiceRequestCompleted=function(){this.hostElement.parentElement.close&&this.hostElement.parentElement.close();this.loading=!1};
vo.prototype.onYtServiceRequestCompleted=vo.prototype.onYtServiceRequestCompleted;vo.prototype.onYtServiceRequestSent=vo.prototype.onYtServiceRequestSent;vo.prototype.closePopupHandler_=vo.prototype.closePopupHandler_;vo.prototype.dataChanged_=vo.prototype.dataChanged_;vo.prototype.onPopupOpened_=vo.prototype.onPopupOpened_;_.L([_.Q(_.k.YtRendererBehavior),_.p("design:type",Object)],vo.prototype,"ytRendererBehavior",void 0);
_.L([_.Q(_.u4.YtRendererstamperBehavior),_.p("design:type",Object)],vo.prototype,"ytRendererstamperBehavior",void 0);_.L([_.x(),_.p("design:type",Object)],vo.prototype,"data",void 0);_.L([_.x({reflectToAttribute:!0,value:!1}),_.p("design:type",Boolean)],vo.prototype,"loading",void 0);_.L([_.x(),_.p("design:type",Number)],vo.prototype,"selectIndexMax_",void 0);_.L([_.x(),_.p("design:type",Object)],vo.prototype,"selectedData_",void 0);
_.L([_.x(),_.p("design:type",Object)],vo.prototype,"sliderAriaValueText_",void 0);_.L([_.x({value:function(){return this.onSubmitTap_.bind(this)}}),
_.p("design:type",Function)],vo.prototype,"onButtonTap_",void 0);_.L([_.x({value:function(){return this.onExitButtonTap_.bind(this)}}),
_.p("design:type",Function)],vo.prototype,"onSecondaryTap_",void 0);_.L([_.x(),_.p("design:type",Object)],vo.prototype,"messages",void 0);_.L([_.gz("yt-popup-opened"),_.p("design:type",Function),_.p("design:paramtypes",[CustomEvent,Object]),_.p("design:returntype")],vo.prototype,"onPopupOpened_",null);_.L([_.O8("data"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],vo.prototype,"dataChanged_",null);
_.L([_.gz("yt-popup-closed"),_.p("design:type",Function),_.p("design:paramtypes",[CustomEvent,Object]),_.p("design:returntype")],vo.prototype,"closePopupHandler_",null);_.L([_.gz("yt-service-request-sent"),_.p("design:type",Function),_.p("design:paramtypes",[CustomEvent,_.lJ]),_.p("design:returntype")],vo.prototype,"onYtServiceRequestSent",null);
_.L([_.gz("yt-service-request-completed"),_.p("design:type",Function),_.p("design:paramtypes",[CustomEvent,_.Yq]),_.p("design:returntype")],vo.prototype,"onYtServiceRequestCompleted",null);_.L([_.dz({is:"yt-unplugged-pause-membership-dialog-renderer",disableElementRegistration:!0})],vo);
_.D(vo,"yt-unplugged-pause-membership-dialog-renderer",function(){if(uAZ===void 0){var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-unplugged-pause-membership-dialog-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.ypc.yt_unplugged_pause_membership_dialog_renderer.yt.unplugged.pause.membership.dialog.renderer.css.js--\x3e<tp-yt-paper-spinner-lite active="[[loading]]" class="style-scope yt-unplugged-pause-membership-dialog-renderer"></tp-yt-paper-spinner-lite><div class="dialog-title style-scope yt-unplugged-pause-membership-dialog-renderer" 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>');a.content.insertBefore(_.w().content.cloneNode(!0),
a.content.firstChild);var z=a.content,I=z.insertBefore;twi===void 0&&(twi=document.createElement("template"));var J=twi;I.call(z,J.content.cloneNode(!0),a.content.firstChild);uAZ=a}a=uAZ;return a},{mode:2});var EC0;var BmV;var Gi=function(){return _.G.apply(this,arguments)||this};
_.b(Gi,_.G);Gi.prototype.configureRendererStamper=function(){return{"data.vcBalance":{id:"vc-balance",mapping:_.XT("vcBalanceRenderer")}}};
_.L([_.Q(_.k.YtRendererBehavior),_.p("design:type",Object)],Gi.prototype,"ytRendererBehavior",void 0);_.L([_.Q(_.u4.YtRendererstamperBehavior),_.p("design:type",Object)],Gi.prototype,"ytRendererstamperBehavior",void 0);_.L([_.x(),_.p("design:type",Object)],Gi.prototype,"data",void 0);_.L([_.dz({is:"yt-vc-offer-layout-header-renderer",disableElementRegistration:!0})],Gi);
_.D(Gi,"yt-vc-offer-layout-header-renderer",function(){if(BmV===void 0){var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-vc-offer-layout-header-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.ypc.yt_vc_offer_layout_header_renderer.yt.vc.offer.layout.header.renderer.css.js--\x3e<div id="vc-balance" class="style-scope yt-vc-offer-layout-header-renderer"></div>\n<yt-formatted-string id="description" text="[[data.description]]" class="style-scope yt-vc-offer-layout-header-renderer">\n</yt-formatted-string>\n');a.content.insertBefore(_.w().content.cloneNode(!0),
a.content.firstChild);var z=a.content,I=z.insertBefore;EC0===void 0&&(EC0=document.createElement("template"));var J=EC0;I.call(z,J.content.cloneNode(!0),a.content.firstChild);BmV=a}a=BmV;return a},{mode:2});var gCe;var Oy4;var fQM;var AF4;var $y=function(){return _.G.apply(this,arguments)||this};
_.b($y,_.G);$y.prototype.configureRendererStamper=function(){return{"data.vcIcon":{id:"vc-icon",mapping:{themedImageRenderer:{component:"yt-themed-image-renderer"}}}}};
_.eH.Object.defineProperties($y.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)}}});
_.L([_.Q(_.k.YtRendererBehavior),_.p("design:type",Object)],$y.prototype,"ytRendererBehavior",void 0);_.L([_.Q(_.u4.YtRendererstamperBehavior),_.p("design:type",Object)],$y.prototype,"ytRendererstamperBehavior",void 0);_.L([_.Q(_.p6v.YtTappableItemBehavior),_.p("design:type",Object)],$y.prototype,"ytTappableItemBehavior",void 0);_.L([_.x(),_.p("design:type",Object)],$y.prototype,"data",void 0);
_.L([_.x({reflectToAttribute:!0}),_.S("data.accessibilityText"),_.p("design:type",String),_.p("design:paramtypes",[])],$y.prototype,"ariaLabel",null);_.L([_.x({reflectToAttribute:!0}),_.S("data.style"),_.p("design:type",String),_.p("design:paramtypes",[])],$y.prototype,"vcOfferStyle",null);_.L([_.S("data.style","data.titleText"),_.p("design:type",Boolean),_.p("design:paramtypes",[])],$y.prototype,"showTitleText",null);_.L([_.dz({is:"yt-vc-offer-renderer",disableElementRegistration:!0})],$y);
_.D($y,"yt-vc-offer-renderer",function(){if(AF4===void 0){var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-vc-offer-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.ypc.yt_vc_offer_renderer.yt.vc.offer.renderer.css.js--\x3e<yt-formatted-string id="title-text" hidden="[[!showTitleText]]" text="[[data.titleText]]" class="style-scope yt-vc-offer-renderer">\n</yt-formatted-string>\n<div id="standard-offer-container" class="style-scope yt-vc-offer-renderer">\n  <div id="standard-offer-content" class="style-scope yt-vc-offer-renderer">\n    <yt-formatted-string id="offer-info" text="[[data.offerInfo]]" class="style-scope yt-vc-offer-renderer">\n    </yt-formatted-string>\n    <yt-formatted-string id="description-text" hidden="[[!data.descriptionText]]" text="[[data.descriptionText]]" class="style-scope yt-vc-offer-renderer">\n    </yt-formatted-string>\n    <div id="vc-icon" class="style-scope yt-vc-offer-renderer"></div>\n    <yt-formatted-string id="price" text="[[data.price]]" class="style-scope yt-vc-offer-renderer">\n    </yt-formatted-string>\n  </div>\n</div>\n');
a.content.insertBefore(_.w().content.cloneNode(!0),a.content.firstChild);var z=a.content,I=z.insertBefore;fQM===void 0&&(fQM=document.createElement("template"));var J=fQM;I.call(z,J.content.cloneNode(!0),a.content.firstChild);AF4=a}a=AF4;return a},{mode:2});var X_=function(){return _.G.apply(this,arguments)||this};
_.b(X_,_.G);X_.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}}}}}};
_.L([_.Q(_.k.YtRendererBehavior),_.p("design:type",Object)],X_.prototype,"ytRendererBehavior",void 0);_.L([_.Q(_.u4.YtRendererstamperBehavior),_.p("design:type",Object)],X_.prototype,"ytRendererstamperBehavior",void 0);_.L([_.x(),_.p("design:type",Object)],X_.prototype,"data",void 0);_.L([_.dz({is:"yt-vc-offer-layout-renderer",disableElementRegistration:!0})],X_);
_.D(X_,"yt-vc-offer-layout-renderer",function(){if(Oy4===void 0){var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-vc-offer-layout-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.ypc.yt_vc_offer_layout_renderer.yt.vc.offer.layout.renderer.css.js--\x3e<div id="vc-offer-layout-container" class="style-scope yt-vc-offer-layout-renderer">\n  <div id="header" class="style-scope yt-vc-offer-layout-renderer"></div>\n  <div id="offers-container" class="style-scope yt-vc-offer-layout-renderer">\n    <div id="offers" class="style-scope yt-vc-offer-layout-renderer"></div>\n  </div>\n</div>\n');a.content.insertBefore(_.w().content.cloneNode(!0),
a.content.firstChild);var z=a.content,I=z.insertBefore;gCe===void 0&&(gCe=document.createElement("template"));var J=gCe;I.call(z,J.content.cloneNode(!0),a.content.firstChild);Oy4=a}a=Oy4;return a},{mode:2});var seE;var nCG;var Kxf;var FxE;var Ti=function(){return _.G.apply(this,arguments)||this};
_.b(Ti,_.G);Ti.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}}}}}};
_.L([_.Q(_.k.YtRendererBehavior),_.p("design:type",Object)],Ti.prototype,"ytRendererBehavior",void 0);_.L([_.Q(_.u4.YtRendererstamperBehavior),_.p("design:type",Object)],Ti.prototype,"ytRendererstamperBehavior",void 0);_.L([_.x(),_.p("design:type",Object)],Ti.prototype,"data",void 0);_.L([_.dz({is:"yt-ypc-offers-modal-top-bar-renderer",disableElementRegistration:!0})],Ti);
_.D(Ti,"yt-ypc-offers-modal-top-bar-renderer",function(){if(FxE===void 0){var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-ypc-offers-modal-top-bar-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.ypc.yt_ypc_offers_modal_top_bar_renderer.yt.ypc.offers.modal.top.bar.renderer.css.js--\x3e<div id="dismiss" class="style-scope yt-ypc-offers-modal-top-bar-renderer"></div>\n<yt-formatted-string id="title" text="[[data.title]]" class="style-scope yt-ypc-offers-modal-top-bar-renderer"></yt-formatted-string>\n<div id="help-link" class="style-scope yt-ypc-offers-modal-top-bar-renderer"></div>\n');a.content.insertBefore(_.w().content.cloneNode(!0),
a.content.firstChild);var z=a.content,I=z.insertBefore;Kxf===void 0&&(Kxf=document.createElement("template"));var J=Kxf;I.call(z,J.content.cloneNode(!0),a.content.firstChild);FxE=a}a=FxE;return a},{mode:2});var d5=function(){return _.G.apply(this,arguments)||this};
_.b(d5,_.G);d5.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"}}}}};
d5.prototype.ready=function(){this.hostElement.setAttribute("dialog","")};
d5.prototype.attached=function(){this.scrollable.dialogElement=this.hostElement.parentNode;var a=this.scrollable;a.attached&&typeof a.attached==="function"&&a.attached()};
_.L([_.Q(_.k.YtRendererBehavior),_.p("design:type",Object)],d5.prototype,"ytRendererBehavior",void 0);_.L([_.Q(_.u4.YtRendererstamperBehavior),_.p("design:type",Object)],d5.prototype,"ytRendererstamperBehavior",void 0);_.L([_.A3("#scrollable"),_.p("design:type",Object)],d5.prototype,"scrollable",void 0);_.L([_.x(),_.p("design:type",Object)],d5.prototype,"data",void 0);_.L([_.dz({is:"yt-ypc-offers-modal-renderer",disableElementRegistration:!0})],d5);
_.D(d5,"yt-ypc-offers-modal-renderer",function(){if(nCG===void 0){var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-ypc-offers-modal-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.ypc.yt_ypc_offers_modal_renderer.yt.ypc.offers.modal.renderer.css.js--\x3e<tp-yt-paper-dialog-scrollable id="scrollable" class="style-scope yt-ypc-offers-modal-renderer">\n  <div id="top-bar" class="style-scope yt-ypc-offers-modal-renderer"></div>\n  <div id="content" class="style-scope yt-ypc-offers-modal-renderer"></div>\n</tp-yt-paper-dialog-scrollable>\n');
a.content.insertBefore(_.w().content.cloneNode(!0),a.content.firstChild);var z=a.content,I=z.insertBefore;seE===void 0&&(seE=document.createElement("template"));var J=seE;I.call(z,J.content.cloneNode(!0),a.content.firstChild);nCG=a}a=nCG;return a},{mode:2});var Hyf;var by4;var Wo=function(){return _.G.apply(this,arguments)||this};
_.b(Wo,_.G);_.Z=Wo.prototype;_.Z.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}}}}}};
_.Z.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");_.PK(this.hostElement).querySelector("#scrollable").dialogElement=this.hostElement.parentNode};
_.Z.onYtServiceRequestCompleted_=function(){this.set("showSpinner",!1);_.ZF(this.hostElement,"yt-close-popup-action",["yt-ypc-upgrade-dialog-renderer"])};
_.Z.onYtPopupOpened_=function(a,z){(z==null?void 0:z.is)==="yt-ypc-upgrade-dialog-renderer"&&this.data.onOpenCommands&&_.tR(this.hostElement,this.data.onOpenCommands,this.hostElement)};
_.Z.onYtPopupClosed_=function(a,z){this.continueButtonTapped||z&&(z.canceled===!0||z.canceled===!1&&z.confirmed===!1)&&this.data.onDismissCommands&&_.tR(this.hostElement,this.data.onDismissCommands,this.hostElement)};
_.Z.onYtServiceRequestError_=function(a){this.set("showSpinner",!1);_.cn(this.hostElement,a.detail.error.message)};
_.Z.onContinueTapped_=function(){this.set("continueButtonTapped",!0);_.K("enable_ypc_spinners")?_.ZF(this.hostElement,"yt-close-popup-action",["yt-ypc-upgrade-dialog-renderer"]):this.set("showSpinner",!0)};
Wo.prototype.onYtServiceRequestError_=Wo.prototype.onYtServiceRequestError_;Wo.prototype.onYtPopupClosed_=Wo.prototype.onYtPopupClosed_;Wo.prototype.onYtPopupOpened_=Wo.prototype.onYtPopupOpened_;Wo.prototype.onYtServiceRequestCompleted_=Wo.prototype.onYtServiceRequestCompleted_;_.L([_.Q(_.k.YtRendererBehavior),_.p("design:type",Object)],Wo.prototype,"ytRendererBehavior",void 0);_.L([_.Q(_.u4.YtRendererstamperBehavior),_.p("design:type",Object)],Wo.prototype,"ytRendererstamperBehavior",void 0);
_.L([_.x(),_.p("design:type",Object)],Wo.prototype,"data",void 0);_.L([_.x({value:!1}),_.p("design:type",Boolean)],Wo.prototype,"showSpinner",void 0);_.L([_.x({value:!1}),_.p("design:type",Boolean)],Wo.prototype,"continueButtonTapped",void 0);_.L([_.x({value:function(){return this.onContinueTapped_.bind(this)}}),
_.p("design:type",Function)],Wo.prototype,"bindOnContinueTapped_",void 0);_.L([_.gz("yt-service-request-completed"),_.p("design:type",Function),_.p("design:paramtypes",[CustomEvent]),_.p("design:returntype")],Wo.prototype,"onYtServiceRequestCompleted_",null);_.L([_.gz("yt-popup-opened"),_.p("design:type",Function),_.p("design:paramtypes",[CustomEvent,Object]),_.p("design:returntype")],Wo.prototype,"onYtPopupOpened_",null);
_.L([_.gz("yt-popup-closed"),_.p("design:type",Function),_.p("design:paramtypes",[CustomEvent,Object]),_.p("design:returntype")],Wo.prototype,"onYtPopupClosed_",null);_.L([_.gz("yt-service-request-error"),_.p("design:type",Function),_.p("design:paramtypes",[CustomEvent]),_.p("design:returntype")],Wo.prototype,"onYtServiceRequestError_",null);_.L([_.dz({is:"yt-ypc-upgrade-dialog-renderer",disableElementRegistration:!0})],Wo);
_.D(Wo,"yt-ypc-upgrade-dialog-renderer",function(){if(by4===void 0){var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-ypc-upgrade-dialog-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.ypc.yt_ypc_upgrade_dialog_renderer.yt.ypc.upgrade.dialog.renderer.css.js--\x3e<tp-yt-paper-dialog-scrollable id="scrollable" class="style-scope yt-ypc-upgrade-dialog-renderer">\n  <div id="content" class="style-scope yt-ypc-upgrade-dialog-renderer">\n    <div id="header" class="style-scope yt-ypc-upgrade-dialog-renderer">\n      <div id="title" class="style-scope yt-ypc-upgrade-dialog-renderer">\n        <yt-formatted-string id="dialog-title" text="[[data.header.dialogTitle]]" class="style-scope yt-ypc-upgrade-dialog-renderer"></yt-formatted-string>\n        <yt-formatted-string id="offer-title" text="[[data.header.offerDisplayTitle]]" class="style-scope yt-ypc-upgrade-dialog-renderer"></yt-formatted-string>\n      </div>\n      <yt-formatted-string id="access-message" text="[[data.header.accessMessage]]" class="style-scope yt-ypc-upgrade-dialog-renderer"></yt-formatted-string>\n    </div>\n\n    <div id="billing-details-container" class="style-scope yt-ypc-upgrade-dialog-renderer">\n      <template is="dom-repeat" items="[[data.billingDetails]]" class="style-scope yt-ypc-upgrade-dialog-renderer">\n        <div class="billing-item style-scope yt-ypc-upgrade-dialog-renderer">\n          <div class="item-header style-scope yt-ypc-upgrade-dialog-renderer">\n            <yt-formatted-string text="[[item.title]]" class="style-scope yt-ypc-upgrade-dialog-renderer"></yt-formatted-string>\n            <yt-formatted-string text="[[item.subtitle]]" class="style-scope yt-ypc-upgrade-dialog-renderer"></yt-formatted-string>\n          </div>\n          <yt-formatted-string class="item-description style-scope yt-ypc-upgrade-dialog-renderer" text="[[item.description]]"></yt-formatted-string>\n        </div>\n      </template>\n    </div>\n    <template is="dom-if" if="[[data.legalText]]" class="style-scope yt-ypc-upgrade-dialog-renderer">\n      <div id="legal-text" class="style-scope yt-ypc-upgrade-dialog-renderer">\n        <yt-formatted-string text="[[data.legalText]]" class="style-scope yt-ypc-upgrade-dialog-renderer"></yt-formatted-string>\n      </div>\n    </template>\n  </div>\n</tp-yt-paper-dialog-scrollable>\n<div id="footer" class="style-scope yt-ypc-upgrade-dialog-renderer">\n  <div id="continue-button" class="style-scope yt-ypc-upgrade-dialog-renderer"></div>\n  <div id="cancel-button" class="style-scope yt-ypc-upgrade-dialog-renderer"></div>\n</div>\n<div id="spinner-overlay" hidden$="[[!showSpinner]]" class="style-scope yt-ypc-upgrade-dialog-renderer">\n    <tp-yt-paper-spinner-lite id="spinner" active="" class="style-scope yt-ypc-upgrade-dialog-renderer"></tp-yt-paper-spinner-lite>\n</div>\n');
a.content.insertBefore(_.w().content.cloneNode(!0),a.content.firstChild);var z=a.content,I=z.insertBefore;Hyf===void 0&&(Hyf=document.createElement("template"));var J=Hyf;I.call(z,J.content.cloneNode(!0),a.content.firstChild);by4=a}a=by4;return a},{mode:2});var hfZ;var Vwi;var oV=function(){return _.G.apply(this,arguments)||this};
_.b(oV,_.G);oV.prototype.configureRendererStamper=function(){return{"data.dismissButton":{id:"dismiss-button",mapping:{buttonRenderer:"yt-button-renderer"}},"data.confirmButton":{id:"accept-button",mapping:{buttonRenderer:"yt-button-renderer"}}}};
oV.prototype.computeHasButtons_=function(a){return!(!a.dismissButton&&!a.confirmButton)};
oV.prototype.computeStyle_=function(a){return a||"BUBBLE_HINT_STYLE_UNKNOWN"};
_.L([_.Q(_.k.YtRendererBehavior),_.p("design:type",Object)],oV.prototype,"ytRendererBehavior",void 0);_.L([_.Q(_.iO.YtEventForwardingBehavior),_.p("design:type",Object)],oV.prototype,"ytEventForwardingBehavior",void 0);_.L([_.Q(_.u4.YtRendererstamperBehavior),_.p("design:type",Object)],oV.prototype,"ytRendererstamperBehavior",void 0);_.L([_.x(),_.p("design:type",Object)],oV.prototype,"data",void 0);_.L([_.x({reflectToAttribute:!0}),_.p("design:type",Object)],oV.prototype,"positionType",void 0);
_.L([_.x({value:!1,reflectToAttribute:!0,computed:"computeHasButtons_(data)"}),_.p("design:type",Boolean)],oV.prototype,"hasButtons_",void 0);_.L([_.x({computed:"computeStyle_(data.style)",reflectToAttribute:!0}),_.p("design:type",Boolean)],oV.prototype,"style_",void 0);_.L([_.dz({is:"yt-bubble-hint-renderer",disableElementRegistration:!0})],oV);
_.D(oV,"yt-bubble-hint-renderer",function(){if(Vwi===void 0){var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-bubble-hint-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.yt_bubble_hint_renderer.yt.bubble.hint.renderer.css.js--\x3e<div id="content" class="style-scope yt-bubble-hint-renderer">\n  <div id="text" hidden$="[[!data.text]]" class="style-scope yt-bubble-hint-renderer">\n    <yt-formatted-string text="[[data.text]]" class="style-scope yt-bubble-hint-renderer"></yt-formatted-string>\n  </div>\n  <div id="details-text" hidden$="[[!data.detailsText]]" class="style-scope yt-bubble-hint-renderer">\n    <yt-formatted-string text="[[data.detailsText]]" class="style-scope yt-bubble-hint-renderer"></yt-formatted-string>\n  </div>\n</div>\n<div class="buttons style-scope yt-bubble-hint-renderer" hidden="[[!hasButtons_]]">\n  <div id="dismiss-button" hidden$="[[!data.dismissButton]]" class="style-scope yt-bubble-hint-renderer"></div>\n  <div id="accept-button" hidden$="[[!data.confirmButton]]" class="style-scope yt-bubble-hint-renderer"></div>\n</div>\n');a.content.insertBefore(_.w().content.cloneNode(!0),
a.content.firstChild);var z=a.content,I=z.insertBefore;hfZ===void 0&&(hfZ=document.createElement("template"));var J=hfZ;I.call(z,J.content.cloneNode(!0),a.content.firstChild);Vwi=a}a=Vwi;return a},{mode:2});var Qe0;var Sv4;var Ui=function(){var a=_.aA.apply(this,arguments)||this;a.actionMap={"yt-hide-user-checkbox-update":"handleCheckBoxUpdateAction_"};return a};
_.b(Ui,_.aA);_.Z=Ui.prototype;_.Z.configureRendererStamper=function(){return{"data.checkbox":{id:"checkbox-container",mapping:{booleanFormFieldV2Renderer:{component:"yt-boolean-form-field-v2-renderer",noInjection:!0}}}}};
_.Z.attached=function(){var a=this;this.hasAttribute("dialog")||this.setAttribute("dialog","true");this.$.scroller.dialogElement=this.parentNode;window.requestAnimationFrame(function(){a.$.thumbnail.onShow();a.$["header-image"].onShow()})};
_.Z.handleCheckBoxUpdateAction_=function(a){this.canShowCheckboxEnabledConfirmButton=a};
_.Z.computeUseOverlayForSpinner_=function(a,z){return!!a&&z};
_.Z.computeShowSpinner_=function(a,z){return a||!!z};
_.Z.fireOnCloseActions_=function(){var a,z=_.C(((a=this.data)==null?void 0:a.onClosedActions)||[]);for(a=z.next();!a.done;a=z.next())this.ytRendererBehavior.resolveCommand(a.value)};
_.Z.fireOnOpenCommands_=function(a){var z,I=(z=this.data)==null?void 0:z.onOpenCommands;if(I)for(a.stopImmediatePropagation(),a=_.C(I),z=a.next();!z.done;z=a.next())this.ytRendererBehavior.resolveCommand(z.value)};
_.Z.fireOnDismissCommands_=function(a){var z,I=(z=this.data)==null?void 0:z.onDismissCommands;if(I)for(a.stopImmediatePropagation(),a=_.C(I),z=a.next();!z.done;z=a.next())this.ytRendererBehavior.resolveCommand(z.value)};
_.Z.openPopupHandler_=function(a){a.detail==this&&this.fireOnOpenCommands_(a)};
_.Z.closePopupHandler_=function(a,z){_.Ct(this,"yt-confirm-dialog-close-action",[z]);this.fireOnCloseActions_();(z&&z.canceled===!0||z&&z.canceled===!1&&z.confirmed===!1)&&this.fireOnDismissCommands_(a)};
_.Z.onHeaderImageChanged_=function(){var a;((a=this.data)==null?0:a.headerImage)?this.setAttribute("dialog-with-header-image",""):this.removeAttribute("dialog-with-header-image")};
_.Z.computeHasHeaderImageWidth_=function(a){return a!=void 0};
_.Z.computeHasLoadingMessage=function(a){return!!a};
_.Z.onHeaderImageWidthChanged_=function(){var a,z=(a=this.data)==null?void 0:a.headerImageWidth;if(z){if(a=1.25*z*2+z,this.$.main.style.width=a+"px",z=this.$.scroller.firstElementChild)z.style.minWidth=a+"px"}else this.$.main.style.width="100%"};
_.Z.onThumbnailChanged_=function(){var a;((a=this.data)==null?0:a.thumbnail)?(this.setAttribute("dialog-with-thumbnail",""),this.$.scroller.scrollTarget.style.maxHeight="139px",this.$.thumbnail.onShow()):(this.removeAttribute("dialog-with-thumbnail"),this.$.scroller.scrollTarget.style.maxHeight="none")};
_.Z.onYtNavigate_=function(a){a=_.Yh(a);a instanceof Node&&_.ZL(this.$["confirm-button"]).contains(a)&&this.parentElement&&this.parentElement.close&&this.parentElement.close()};
_.Z.computePrimaryIsCancel_=function(a){return a};
_.Z.computeIsCancelButtonHidden_=function(a){return a.skipCancelButton||!a.cancelButton};
_.Z.computeIsCheckboxHidden_=function(a){return!a.checkbox};
_.Z.onThumbnailLoaded_=function(){this.parentElement&&this.parentElement.fit&&this.parentElement.fit()};
_.Z.onYtServiceRequestSent_=function(){this.isActionInProgress_=!0};
_.Z.onYtServiceRequestCompleted_=function(){var a;((a=this.data)==null?0:a.showLoadingSpinnerOnAction)&&this.parentElement&&this.parentElement.close&&this.parentElement.opened&&this.parentElement.close();this.isActionInProgress_=!1};
_.eH.Object.defineProperties(Ui,{template:{configurable:!0,enumerable:!0,get:function(){if(Sv4===void 0){var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-confirm-dialog-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.yt_confirm_dialog_renderer.yt.confirm.dialog.renderer.css.js--\x3e<div id="spinner" hidden="[[!showSpinner_]]" class="style-scope yt-confirm-dialog-renderer">\n  <tp-yt-paper-spinner active="[[showSpinner_]]" class="style-scope yt-confirm-dialog-renderer"></tp-yt-paper-spinner>\n  <div id="loading-message" class="body-text style-scope yt-confirm-dialog-renderer" hidden="[[!data.loadingMessage]]">\n    <yt-formatted-string text="[[data.loadingMessage]]" class="style-scope yt-confirm-dialog-renderer"></yt-formatted-string>\n  </div>\n</div>\n<yt-img-shadow id="thumbnail" hidden="[[!data.thumbnail]]" notify-on-loaded="" thumbnail="[[data.thumbnail]]" width="256" class="style-scope yt-confirm-dialog-renderer">\n</yt-img-shadow>\n<div id="main" hidden="[[data.showLoadingSpinner]]" class="style-scope yt-confirm-dialog-renderer">\n  <yt-img-shadow id="header-image" hidden="[[!data.headerImage]]" notify-on-loaded="" thumbnail="[[data.headerImage]]" width="[[data.headerImageWidth]]" class="style-scope yt-confirm-dialog-renderer">\n  </yt-img-shadow>\n  <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');
a.content.insertBefore(_.w().content.cloneNode(!0),a.content.firstChild);var z=a.content,I=z.insertBefore;Qe0===void 0&&(Qe0=document.createElement("template"));var J=Qe0;I.call(z,J.content.cloneNode(!0),a.content.firstChild);Sv4=a}a=Sv4;return a}}});
Ui.prototype.onYtServiceRequestCompleted_=Ui.prototype.onYtServiceRequestCompleted_;Ui.prototype.onYtServiceRequestSent_=Ui.prototype.onYtServiceRequestSent_;Ui.prototype.onThumbnailLoaded_=Ui.prototype.onThumbnailLoaded_;Ui.prototype.onYtNavigate_=Ui.prototype.onYtNavigate_;Ui.prototype.onThumbnailChanged_=Ui.prototype.onThumbnailChanged_;Ui.prototype.onHeaderImageWidthChanged_=Ui.prototype.onHeaderImageWidthChanged_;Ui.prototype.onHeaderImageChanged_=Ui.prototype.onHeaderImageChanged_;
Ui.prototype.closePopupHandler_=Ui.prototype.closePopupHandler_;Ui.prototype.openPopupHandler_=Ui.prototype.openPopupHandler_;_.L([_.Q(_.Hc.YtActionHandlerBehavior),_.p("design:type",Object)],Ui.prototype,"ytActionHandlerBehavior",void 0);_.L([_.Q(_.u4.YtRendererstamperBehavior),_.p("design:type",Object)],Ui.prototype,"ytRendererstamperBehavior",void 0);_.L([_.Q(_.k.YtRendererBehavior),_.p("design:type",Object)],Ui.prototype,"ytRendererBehavior",void 0);
_.L([_.Q(_.iO.YtEventForwardingBehavior),_.p("design:type",Object)],Ui.prototype,"ytEventForwardingBehavior",void 0);_.L([_.x(),_.p("design:type",Object)],Ui.prototype,"data",void 0);_.L([_.x({computed:"computePrimaryIsCancel_(data.primaryIsCancel)",reflectToAttribute:!0,readOnly:!0}),_.p("design:type",Boolean)],Ui.prototype,"primaryIsCancel",void 0);_.L([_.x({computed:"computeIsCancelButtonHidden_(data)",readOnly:!0}),_.p("design:type",Boolean)],Ui.prototype,"isCancelButtonHidden",void 0);
_.L([_.x({computed:"computeIsCheckboxHidden_(data)",readOnly:!0}),_.p("design:type",Boolean)],Ui.prototype,"isCheckboxHidden",void 0);_.L([_.x({value:!1,reflectToAttribute:!0}),_.p("design:type",Boolean)],Ui.prototype,"canShowCheckboxEnabledConfirmButton",void 0);_.L([_.x({value:!1,computed:"computeUseOverlayForSpinner_(data.showLoadingSpinnerOnAction, isActionInProgress_)",reflectToAttribute:!0}),_.p("design:type",Boolean)],Ui.prototype,"useOverlayForSpinner_",void 0);
_.L([_.x({value:!1,computed:"computeShowSpinner_(useOverlayForSpinner_, data.showLoadingSpinner)"}),_.p("design:type",Boolean)],Ui.prototype,"showSpinner_",void 0);_.L([_.x({value:!1}),_.p("design:type",Boolean)],Ui.prototype,"isActionInProgress_",void 0);_.L([_.x({value:!1,reflectToAttribute:!0,computed:"computeHasHeaderImageWidth_(data.headerImageWidth)"}),_.p("design:type",Boolean)],Ui.prototype,"hasHeaderImageWidth_",void 0);
_.L([_.x({value:!1,reflectToAttribute:!0,computed:"computeHasLoadingMessage(data.loadingMessage)"}),_.p("design:type",Boolean)],Ui.prototype,"hasLoadingMessage",void 0);_.L([_.gz("yt-popup-opened"),_.p("design:type",Function),_.p("design:paramtypes",[CustomEvent,Object]),_.p("design:returntype")],Ui.prototype,"openPopupHandler_",null);_.L([_.gz("yt-popup-closed"),_.p("design:type",Function),_.p("design:paramtypes",[CustomEvent,Object]),_.p("design:returntype")],Ui.prototype,"closePopupHandler_",null);
_.L([_.O8("data.headerImage"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],Ui.prototype,"onHeaderImageChanged_",null);_.L([_.O8("data.headerImageWidth"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],Ui.prototype,"onHeaderImageWidthChanged_",null);_.L([_.O8("data.thumbnail"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],Ui.prototype,"onThumbnailChanged_",null);
_.L([_.gz("yt-navigate"),_.p("design:type",Function),_.p("design:paramtypes",[CustomEvent]),_.p("design:returntype")],Ui.prototype,"onYtNavigate_",null);_.L([_.gz("yt-img-shadow-loaded"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],Ui.prototype,"onThumbnailLoaded_",null);_.L([_.gz("yt-service-request-sent"),_.p("design:type",Function),_.p("design:paramtypes",[CustomEvent,_.lJ]),_.p("design:returntype")],Ui.prototype,"onYtServiceRequestSent_",null);
_.L([_.gz("yt-service-request-completed"),_.p("design:type",Function),_.p("design:paramtypes",[CustomEvent,_.Yq]),_.p("design:returntype")],Ui.prototype,"onYtServiceRequestCompleted_",null);_.L([_.dz({is:"yt-confirm-dialog-renderer",noInjection:!0})],Ui);var iy0;var xGV;var Dr=function(){return _.G.apply(this,arguments)||this};
_.b(Dr,_.G);Dr.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");_.PK(this.hostElement).querySelector("#scroller").dialogElement=this.hostElement.parentNode};
Dr.prototype.computeConfirmButton_=function(a){var z={text:a.confirmLabel,size:"SIZE_DEFAULT",style:"STYLE_BLUE_TEXT"};a.confirmNavigationEndpoint?z.navigationEndpoint=a.confirmNavigationEndpoint:a.confirmServiceEndpoint&&(z.serviceEndpoint=a.confirmServiceEndpoint);return z};
Dr.prototype.computeShowTitle_=function(a){return!(a==null||!a.title)};
_.L([_.Q(_.k.YtRendererBehavior),_.p("design:type",Object)],Dr.prototype,"ytRendererBehavior",void 0);_.L([_.x(),_.p("design:type",Object)],Dr.prototype,"data",void 0);_.L([_.x({computed:"computeShowTitle_(data)"}),_.p("design:type",Boolean)],Dr.prototype,"showTitle",void 0);_.L([_.dz({is:"yt-fancy-dismissible-dialog-renderer",disableElementRegistration:!0})],Dr);
_.D(Dr,"yt-fancy-dismissible-dialog-renderer",function(){if(xGV===void 0){var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-fancy-dismissible-dialog-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.yt_fancy_dismissible_dialog_renderer.yt.fancy.dismissible.dialog.renderer.css.js--\x3e<h2 hidden="[[!showTitle]]" id="title" class="style-scope yt-fancy-dismissible-dialog-renderer">[[getSimpleString(data.title)]]</h2>\n<tp-yt-paper-dialog-scrollable id="scroller" class="style-scope yt-fancy-dismissible-dialog-renderer">\n  <yt-formatted-string id="message" split-lines="" text="[[data.dialogMessage]]" class="style-scope yt-fancy-dismissible-dialog-renderer">\n  </yt-formatted-string>\n</tp-yt-paper-dialog-scrollable>\n<div class="buttons style-scope yt-fancy-dismissible-dialog-renderer">\n  <yt-button-renderer id="confirm-button" data="[[computeConfirmButton_(data)]]" dialog-confirm="" class="style-scope yt-fancy-dismissible-dialog-renderer">\n  </yt-button-renderer>\n</div>\n');a.content.insertBefore(_.w().content.cloneNode(!0),
a.content.firstChild);var z=a.content,I=z.insertBefore;iy0===void 0&&(iy0=document.createElement("template"));var J=iy0;I.call(z,J.content.cloneNode(!0),a.content.firstChild);xGV=a}a=xGV;return a});var vCz;var G_E;var RV=function(){var a=_.G.apply(this,arguments)||this;a.spinnerActive=!1;return a};
_.b(RV,_.G);RV.prototype.created=function(){dh4(2201)};
RV.prototype.onIronOverlayOpened=function(){this.spinnerActive=!0};
RV.prototype.onIronOverlayClosed=function(){this.spinnerActive=!1};
RV.prototype.onIronOverlayClosed=RV.prototype.onIronOverlayClosed;RV.prototype.onIronOverlayOpened=RV.prototype.onIronOverlayOpened;_.L([_.Q(_.k.YtRendererBehavior),_.p("design:type",Object)],RV.prototype,"ytRendererBehavior",void 0);_.L([_.Q(_.Mb),_.p("design:type",Object)],RV.prototype,"tpYtIronOverlayBehavior",void 0);_.L([_.x(),_.p("design:type",Object)],RV.prototype,"data",void 0);_.L([_.x(),_.p("design:type",Object)],RV.prototype,"spinnerActive",void 0);
_.L([_.gz("iron-overlay-opened"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],RV.prototype,"onIronOverlayOpened",null);_.L([_.gz("iron-overlay-closed"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],RV.prototype,"onIronOverlayClosed",null);_.L([_.dz({is:"yt-loading-renderer",disableElementRegistration:!0})],RV);
_.D(RV,"yt-loading-renderer",function(){if(G_E===void 0){var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-loading-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.yt_loading_renderer.yt.loading.renderer.css.js--\x3e<tp-yt-paper-spinner id="spinner" active="[[spinnerActive]]" alt="[[data.accessibility.accessibility_data.label]]" class="style-scope yt-loading-renderer">\n</tp-yt-paper-spinner>\n');a.content.insertBefore(_.w().content.cloneNode(!0),
a.content.firstChild);var z=a.content,I=z.insertBefore;vCz===void 0&&(vCz=document.createElement("template"));var J=vCz;I.call(z,J.content.cloneNode(!0),a.content.firstChild);G_E=a}a=G_E;return a},{mode:2});var $GE;var X10;var Ls=function(){var a=_.G.apply(this,arguments)||this;a.closeOnDismissButton_=new Set(["UPSELL_DIALOG_DISMISS_STRATEGY_UNKNOWN","UPSELL_DIALOG_DISMISS_STRATEGY_ONLY_DISMISS_BUTTON_TAP"]);a.closeOnAcceptButton_=new Set(["UPSELL_DIALOG_DISMISS_STRATEGY_UNKNOWN","UPSELL_DIALOG_DISMISS_STRATEGY_ONLY_ACTION_BUTTON_TAP"]);a.defaultDismissStrategy_="UPSELL_DIALOG_DISMISS_STRATEGY_UNKNOWN";a.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return a};
_.b(Ls,_.G);_.Z=Ls.prototype;_.Z.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:"yt-button-renderer"}},"data.dismissButton":{id:"dismiss-button",mapping:{buttonRenderer:"yt-button-renderer"}}}};
_.Z.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");this.isDarkTheme=!!document.documentElement.hasAttribute("dark")};
_.Z.onDarkModeToggledAction=function(a){this.isDarkTheme=a};
_.Z.dataChanged_=function(){this.data&&(this.hostElement.hidden=!this.data.isVisible,this.data.isVisible||this.ytRendererBehavior.impressionLog())};
_.Z.openPopupHandler_=function(a){a.detail===this.hostElement&&this.hostElement.hidden&&_.ZF(this.hostElement,"yt-close-popup-action",["yt-upsell-dialog-renderer"])};
_.Z.onDismissButtonTap_=function(){var a;this.closeOnDismissButton_.has(((a=this.data)==null?void 0:a.dismissStrategy)||this.defaultDismissStrategy_)&&(this.set("data.isVisible",!1),_.ZF(this.hostElement,"yt-close-popup-action",["yt-upsell-dialog-renderer"]))};
_.Z.onAcceptButtonTap_=function(){var a;this.closeOnAcceptButton_.has(((a=this.data)==null?void 0:a.dismissStrategy)||this.defaultDismissStrategy_)&&(this.set("data.isVisible",!1),_.ZF(this.hostElement,"yt-close-popup-action",["yt-upsell-dialog-renderer"]))};
_.Z.computeHasHeader_=function(a){return!!a.headerBackgroundImage};
_.Z.computeLayoutStyle_=function(a){return a};
_.Z.computePopupSize_=function(a){return a};
_.Z.computeIconType_=function(a){return a.dialogIcon&&a.dialogIcon.iconType?a.dialogIcon.iconType==="YOUTUBE_LOGO"?"yt-logos-ext:yt-logo-updated":a.dialogIcon.iconType==="YOUTUBE_PREMIUM_LOGO"?"yt-logos-ext:yt-logo-red-updated":a.dialogIcon.iconType:""};
_.Z.computeIsLogo_=function(a){return!!a.dialogIcon&&!!a.dialogIcon.iconType&&(a.dialogIcon.iconType==="YOUTUBE_LOGO"||a.dialogIcon.iconType==="YOUTUBE_PREMIUM_LOGO"||a.dialogIcon.iconType==="YOUTUBE_MUSIC_LOGO_SHORT")};
_.Z.computeHasCustomLogo=function(a){return!(a==null||!a.headerForegroundImage)};
_.Z.computeCustomLogo=function(a,z){if(a!=null&&a.headerForegroundImage)return a.headerForegroundImageDark?z?a.headerForegroundImageDark:a.headerForegroundImage:a.headerForegroundImage};
_.Z.computeHeaderBackgroundImage=function(a,z){if(a!=null&&a.headerBackgroundImage)return z&&(a==null?0:a.headerBackgroundImageDark)?a.headerBackgroundImageDark:a.headerBackgroundImage};
_.Z.shouldShowIconContainer=function(a,z){return a&&!z};
_.Z.shouldShowNonYouTubeIcon=function(a,z){return!a&&!z};
_.Z.getLogoImageId=function(a){var z,I,J;return(a=(z=this.computeCustomLogo(a,this.isDarkTheme))==null?void 0:(I=z.thumbnails)==null?void 0:(J=I[0])==null?void 0:J.height)&&a%31===0?"custom-logo-with-padding":"custom-logo"};
Ls.prototype.openPopupHandler_=Ls.prototype.openPopupHandler_;Ls.prototype.dataChanged_=Ls.prototype.dataChanged_;_.L([_.Q(_.u4.YtRendererstamperBehavior),_.p("design:type",Object)],Ls.prototype,"ytRendererstamperBehavior",void 0);_.L([_.Q(_.k.YtRendererBehavior),_.p("design:type",Object)],Ls.prototype,"ytRendererBehavior",void 0);_.L([_.x(),_.p("design:type",Boolean)],Ls.prototype,"isDarkTheme",void 0);
_.L([_.x({computed:"computeCustomLogo(data, isDarkTheme)"}),_.p("design:type",Object)],Ls.prototype,"customLogo",void 0);_.L([_.x({computed:"computeHeaderBackgroundImage(data, isDarkTheme)"}),_.p("design:type",Object)],Ls.prototype,"headerBackgroundImage",void 0);_.L([_.x(),_.p("design:type",Object)],Ls.prototype,"data",void 0);_.L([_.x({computed:"computeHasHeader_(data)"}),_.p("design:type",Boolean)],Ls.prototype,"hasHeader",void 0);
_.L([_.x({computed:"computeLayoutStyle_(data.layout)",reflectToAttribute:!0}),_.p("design:type",Object)],Ls.prototype,"layoutStyle",void 0);_.L([_.x({computed:"computePopupSize_(data.popupSize)",reflectToAttribute:!0}),_.p("design:type",Object)],Ls.prototype,"popupSize",void 0);_.L([_.x({computed:"computeIsLogo_(data)",reflectToAttribute:!0}),_.p("design:type",Boolean)],Ls.prototype,"hasLogo",void 0);
_.L([_.x({computed:"computeHasCustomLogo(data)",reflectToAttribute:!0}),_.p("design:type",Boolean)],Ls.prototype,"hasCustomLogo",void 0);_.L([_.O8("data"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],Ls.prototype,"dataChanged_",null);_.L([_.gz("yt-popup-opened"),_.p("design:type",Function),_.p("design:paramtypes",[CustomEvent]),_.p("design:returntype")],Ls.prototype,"openPopupHandler_",null);
_.L([_.dz({is:"yt-upsell-dialog-renderer",disableElementRegistration:!0})],Ls);
_.D(Ls,"yt-upsell-dialog-renderer",function(){if(X10===void 0){var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-upsell-dialog-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.yt_upsell_dialog_renderer.yt.upsell.dialog.renderer.css.js--\x3e<yt-img-shadow id="header-image" hidden="[[!hasHeader]]" object-fit="COVER" thumbnail="[[headerBackgroundImage]]" class="style-scope yt-upsell-dialog-renderer">\n</yt-img-shadow>\n<div id="dialog" class="style-scope yt-upsell-dialog-renderer">\n  <div id="icon-container" hidden="[[!shouldShowIconContainer(hasLogo, hasCustomLogo)]]" class="style-scope yt-upsell-dialog-renderer"></div>\n  <yt-icon id="logo-icon" hidden="[[!data.dialogIcon]]" icon="[[computeIconType_(data)]]" target-container="icon-container" class="style-scope yt-upsell-dialog-renderer">\n  </yt-icon>\n  <template is="dom-if" if="[[shouldShowNonYouTubeIcon(hasLogo, hasCustomLogo)]]" class="style-scope yt-upsell-dialog-renderer">\n    <yt-icon id="icon" hidden="[[!data.dialogIcon]]" icon="[[computeIconType_(data)]]" class="style-scope yt-upsell-dialog-renderer">\n    </yt-icon>\n  </template>\n  <yt-img-shadow hidden="[[!hasCustomLogo]]" id$="[[getLogoImageId(data)]]" object-fit="CONTAIN" thumbnail="[[customLogo]]" class="style-scope yt-upsell-dialog-renderer">\n  </yt-img-shadow>\n  <div id="content" class="style-scope yt-upsell-dialog-renderer">\n    <yt-formatted-string id="upsell-dialog-title" role="heading" split-lines="" text="[[data.dialogMessageTitle]]" class="style-scope yt-upsell-dialog-renderer">\n    </yt-formatted-string>\n    <yt-formatted-string id="upsell-dialog-text" split-lines="" text="[[data.dialogMessageText]]" class="style-scope yt-upsell-dialog-renderer">\n    </yt-formatted-string>\n  </div>\n  <div id="button-container" class="style-scope yt-upsell-dialog-renderer">\n    <div id="dismiss-button" on-click="onDismissButtonTap_" class="style-scope yt-upsell-dialog-renderer"></div>\n    <div id="action-button" on-click="onAcceptButtonTap_" class="style-scope yt-upsell-dialog-renderer"></div>\n  </div>\n</div>\n');a.content.insertBefore(_.w().content.cloneNode(!0),
a.content.firstChild);var z=a.content,I=z.insertBefore;$GE===void 0&&($GE=document.createElement("template"));var J=$GE;I.call(z,J.content.cloneNode(!0),a.content.firstChild);X10=a}a=X10;return a},{mode:2});var TmE=_.ec(function(a){return _.B("div",{class:"mini-app-game-info-dialog-view-model-wiz__game-info-dialog-header"},_.B(_.g,{cond:a.title,then:function(z){return _.B("h2",{class:"mini-app-game-info-dialog-view-model-wiz__header-title"},z)}}))},"gh"),dGZ=_.ec(function(a){return _.B("div",{class:"mini-app-game-info-dialog-view-model-wiz__game-info-dialog-footer"},_.B(_.V0,{data:a.closeButton},{buttonViewModel:function(z){return _.B("div",null,_.B(_.At,{data:z.data}))}}))},"hh"),WxM=_.ec(function(a){var z=
a.data;
return _.B(_.eJ,null,_.B("div",{class:"mini-app-game-info-dialog-view-model-wiz__primary-game-info-details"},_.B("div",{class:"mini-app-game-info-dialog-view-model-wiz__game-image-wrapper"},_.B(_.g,{cond:function(){return!!z().image&&!!z().title},
then:function(){return _.B(_.qp,{data:function(){return z().image},
alt:"",contentMode:"CONTENT_MODE_SCALE_ASPECT_FILL"})}})),_.B("div",{class:"mini-app-game-info-dialog-view-model-wiz__primary-game-info"},_.B(_.g,{cond:function(){return z().title},
then:function(I){return _.B("h3",{class:"mini-app-game-info-dialog-view-model-wiz__title"},I)}}),_.B(_.g,{cond:function(){return z().primaryGenre},
then:function(I){return _.B("span",{class:"mini-app-game-info-dialog-view-model-wiz__genre"},I)}}))),_.B(_.g,{cond:function(){var I=z().description;
return I&&I.length<=150},
then:function(){return _.B("div",{class:"mini-app-game-info-dialog-view-model-wiz__game-description-wrapper"},_.B("span",{class:"mini-app-game-info-dialog-view-model-wiz__game-description"},function(){return z().description}))}}))},"ih"),oCZ=_.ec(function(a){a=a.infoRows;
var z=_.ab().resolve(_.cQ),I=_.K("enable_displaying_ppn");return _.B("div",{class:"mini-app-game-info-dialog-view-model-wiz__game-info-rows-wrapper"},_.B(_.se,{each:a},function(J){return _.B("div",{class:"mini-app-game-info-dialog-view-model-wiz__game-info-row"},_.B(_.g,{cond:function(){return J.label},
then:function(r){return _.B("span",{class:"mini-app-game-info-dialog-view-model-wiz__info-label"},r)}}),_.B(_.g,{cond:function(){return J.attributedLabel},
then:function(r){return _.B("span",{class:"mini-app-game-info-dialog-view-model-wiz__info-label"},_.B(_.xs,{text:r,noPreWrap:!0}))}}),_.B(_.g,{cond:function(){return J.value},
then:function(r){return _.B("span",{class:"mini-app-game-info-dialog-view-model-wiz__info-value"},r)}}),_.B(_.g,{cond:function(){return J.attributedValue},
then:function(r){return _.B("span",{class:"mini-app-game-info-dialog-view-model-wiz__info-value"},_.B(_.xs,{text:r,noPreWrap:!0}))}}))}),_.B(_.g,{cond:function(){return I&&z.clientData.has("post_play_nonce")},
then:function(){return _.B("div",{class:"mini-app-game-info-dialog-view-model-wiz__game-info-row"},_.B("span",{class:"mini-app-game-info-dialog-view-model-wiz__info-label"},"Post Play Nonce"),_.B("span",{class:"mini-app-game-info-dialog-view-model-wiz__info-value"},z.getData("post_play_nonce")))}}))},"jh"),UGZ=_.ec(function(a){var z=a.data;
return _.B("yt-mini-app-game-info-dialog-view-model",{class:"mini-app-game-info-dialog-view-model-wiz"},_.B(TmE,{title:function(){return z().dialogTitle}}),_.B(WxM,{data:z}),_.B(_.g,{cond:function(){return z().infoRow},
then:function(I){return _.B(oCZ,{infoRows:I})}}),_.B(dGZ,{closeButton:function(){return z().closeButton}}))},"kh");
UGZ.idomCompat=!0;_.Jf(UGZ,"yt-mini-app-game-info-dialog-view-model",{props:{data:_.zl}});_.Jf(_.ec(function(a){var z=a.data;return _.B("yt-gulp-triggering-dialog-view-model",{class:"ytGulpTriggeringDialogViewModelHost"},_.B(_.qp,{data:function(){return z().headerImage},
alt:"",className:"ytGulpTriggeringDialogViewModelHostImage"}),_.B("div",{class:"ytGulpTriggeringDialogViewModelHostDialog"},_.B("div",{class:"ytGulpTriggeringDialogViewModelHostIconDiv"},_.B(_.g,{cond:function(){var I=z().ytLogo;return I?I.iconType:null},
then:function(I){return _.B(_.nS,{icon:I,className:"ytGulpTriggeringDialogViewModelHostIcon"})}})),_.B("div",{class:"ytGulpTriggeringDialogViewModelHostContent"},_.B("p",{class:"ytGulpTriggeringDialogViewModelHostTitle"},_.B(_.xs,{text:function(){return z().title}})),_.B("p",{class:"ytGulpTriggeringDialogViewModelHostParagraph"},_.B(_.xs,{text:function(){return z().body}})),_.B("p",{class:"ytGulpTriggeringDialogViewModelHostLastParagraph"},_.B(_.xs,{text:function(){return z().verifyStateText}}))),
_.B("div",{class:"ytGulpTriggeringDialogViewModelHostButtonRow"},_.B("div",null,_.B(_.V0,{data:function(){return z().dismissButton}},{buttonViewModel:_.At})),_.B("div",null,_.B(_.V0,{data:function(){return z().linkParentButton}},{buttonViewModel:_.At})))))},"lh"),"yt-gulp-triggering-dialog-view-model",{props:{data:_.zl}});var DGz=_.ec(function(a){var z=a.data;a=_.Yi(function(){return z().agreements},[]);
return _.B("installment-agreements-view-model",{class:_.B8("ytInstallmentAgreementsViewModelHost")},_.B(_.se,{each:a},function(I){return _.B("div",{class:"ytInstallmentAgreementsViewModelAgreementRow"},_.B("div",{class:"ytInstallmentAgreementsViewModelAgreementLabel"},_.B(_.xs,{text:I.label})),_.B("div",{class:"ytInstallmentAgreementsViewModelAgreementButton"},_.B(_.V0,{data:function(){return I.openButton}},{buttonViewModel:_.At})))}))},"mh");
DGz.idomCompat=!0;var RfZ=_.ec(function(a){return _.B("collaborative-playlist-invite-message-view-model",{class:"ytCollaborativePlaylistInviteMessageViewModelHost"},_.B("div",{class:"ytCollaborativePlaylistInviteMessageViewModelInviteMessageWrapper"},_.B(_.xs,{text:function(){return a.data().inviteMessage}})),_.B("div",{class:"ytCollaborativePlaylistInviteMessageViewModelAccountSectionHeaderText"},_.B(_.xs,{text:function(){return a.data().attributedAccountSectionHeaderText}})),_.B("div",{class:"ytCollaborativePlaylistInviteMessageViewModelAccountWrapper"},
_.B(_.V0,{data:function(){return a.data().accountAvatar}},{avatarViewModel:_.ok}),_.B("div",{class:"ytCollaborativePlaylistInviteMessageViewModelAccountText"},_.B(_.xs,{text:function(){return a.data().accountName}}),_.B("div",{class:"ytCollaborativePlaylistInviteMessageViewModelHandle"},_.B(_.xs,{text:function(){return a.data().handle}}))),_.B(_.V0,{data:function(){return a.data().trailingButton}},{buttonViewModel:_.At})),_.B("div",{class:"ytCollaborativePlaylistInviteMessageViewModelTermsOfService"},
_.B(_.xs,{text:function(){return a.data().termsOfService}})))},"nh");var Lx0=_.ec(function(a){var z=_.C(_.Af(function(){var y,e;return((y=a.data().createPlaylistDialogFormSchema)==null?0:(e=y.initialValues)==null?0:e.title)?a.data().createPlaylistDialogFormSchema.initialValues.title:""})),I=z.next().value,J=z.next().value;
z=_.C(_.Af(function(){a.data();return!1}));
var r=z.next().value,P=z.next().value;z=_.C(_.Af(function(){a.data();return!1}));
var N=z.next().value,u=z.next().value;z=_.C(_.Af(function(){var y,e;return(y=a.data().createPlaylistDialogFormSchema)==null?void 0:(e=y.initialValues)==null?void 0:e.visibility}));
var E=z.next().value,O=z.next().value;z=_.C(_.Af(function(){a.data();return!1}));
var f=z.next().value,A=z.next().value;z=_.C(_.Af(function(){var y,e;return(y=a.data().createPlaylistDialogFormSchema)==null?void 0:(e=y.initialValues)==null?void 0:e.isCollaborative}));
var n=z.next().value,F=z.next().value,h=_.Mm("div");_.h2(function(){var y=h.value.querySelector("textarea");y&&(y.value=I())},"OCauEe");
_.QO(function(){var y;_.ke0((y=a.data().createPlaylistDialogFormSchema)==null?void 0:y.id,{onSubmit:function(){var e=I();var Bp=E(),Em=n(),nG=a.data();e={commandExecutorCommand:{commands:[{createPlaylistServiceEndpoint:{title:e,privacyStatus:Bp,videoIds:nG.videoIds,sourcePlaylistId:nG.sourcePlaylistId,params:Em?nG.createPlaylistParamsCollaborationEnabled:nG.createPlaylistParamsCollaborationDisabled}},{dismissDialogEndpoint:{}}]}};_.ab().resolve(_.j6).resolveCommand(e)},
isValid:function(){return r()&&!N()&&!f()}})});
var v=function(y){if(y!==void 0&&(J(y),!r()&&y.length>0&&P(!0),r())){var e=Loz(a.data());if(e){var Bp=e.minLength;e=e.maxLength;Bp&&y.length<Bp?u(!0):e&&y.length>e?u(!0):u(!1)}}},d=function(){var y=!(!n()||E()!=="PRIVATE");
A(y)},W=function(y){y!==void 0&&(O(y),d())},l=function(){if(f())return pl0(a.data())},q=function(){F(!n());
d()},m=function(){return{validate:function(y){if(r()){var e=Loz(a.data());
if(e){var Bp=e.minLength;e=e.translations;if(Bp&&y.length<Bp)return e==null?void 0:e.minLengthErrorMessage}}}}},M=function(){var y=Loz(a.data()),e=y==null?void 0:y.maxLength,Bp;
y=y==null?void 0:(Bp=y.translations)==null?void 0:Bp.maxLengthErrorMessage;if(e&&y)return{maxChars:e,errorMessage:y}};
return _.B("yt-create-playlist-dialog-form-view-model",{class:"ytCreatePlaylistDialogFormViewModelHost"},_.B("div",{class:"ytCreatePlaylistDialogFormViewModelTitleField",el:h},_.B(_.V0,{data:function(){return a.data().playlistTitle}},{textFormFieldViewModel:function(y){return _.B(_.SwM,{data:y.data,
text:I,onInput:v,validation:m,characterLimit:M})},
textFieldViewModel:function(y){return _.B(_.QO0,{data:y.data,text:I,onInput:v,validation:m,characterLimit:M})}})),_.B("div",{class:"ytCreatePlaylistDialogFormViewModelVisibilityField"},_.B(_.V0,{data:function(){return a.data().playlistVisibility}},{dropdownViewModel:function(y){return _.B(_.DmZ,{data:y.data,
onSelected:W,error:l})}})),_.B(_.g,{cond:function(){return!!a.data().playlistCollaborate},
then:function(){return _.B("div",null,_.B(_.V0,{data:function(){return a.data().playlistCollaborate}},{switchListItemViewModel:function(y){return _.B(_.l2i,{data:y.data,
onTap:q})}}))}}))},"oh");var lQM=_.ec(function(a){var z=a.data;return _.B("upsell-offer-table-cell-content-view-model",null,_.B("div",{class:"ytUpsellOfferTableCellContentViewModelHost"},_.B(_.Fw,null,_.B(_.n3,{when:function(){return z().iconType}},function(){return _.B("div",{class:"ytUpsellOfferTableCellContentViewModelUpsellOfferTableCellIcon"},_.B(_.nS,{icon:function(){return z().iconType.toString()}}))}),_.B(_.n3,{when:function(){return z().title}},function(){return _.B(_.xs,{className:"ytUpsellOfferTableCellContentViewModelUpsellOfferTableCellTitle",
text:function(){return z().title}})}),_.B(_.n3,{when:function(){return z().subtitle}},function(){return _.B(_.xs,{className:"ytUpsellOfferTableCellContentViewModelUpsellOfferTableCellSubtitle",
text:function(){return z().subtitle}})}),_.B(_.n3,{when:function(){return z().infoText}},function(){return _.B(_.xs,{className:"ytUpsellOfferTableCellContentViewModelUpsellOfferTableCellInfoText",
text:function(){return z().infoText}})}),_.B(_.n3,{when:function(){return z().featureDescription}},function(){return _.B(_.xs,{className:"ytUpsellOfferTableCellContentViewModelUpsellOfferTableCellFeatureDescription",
text:function(){return z().featureDescription}})}),_.B(_.n3,{when:function(){return z().note}},function(){return _.B(_.xs,{className:"ytUpsellOfferTableCellContentViewModelUpsellOfferTableCellNote",
text:function(){return z().note}})}))))},"ph");
lQM.idomCompat=!0;var p10=_.ec(function(a){var z=a.data;return _.B("upsell-offer-table-cell-view-model",null,_.B("div",{class:_.B8("ytUpsellOfferTableCellViewModelCellWrapper",function(){return z().isFirstColumn?"ytUpsellOfferTableCellViewModelCellWrapperHeaderCell":"ytUpsellOfferTableCellViewModelCellWrapperContentCell"})},_.B(_.V0,{data:function(){return z().contents}},{upsellOfferTableCellContentViewModel:lQM})))},"qh");
p10.idomCompat=!0;var w1z=_.ec(function(a){var z=a.data;var I=a.upsellTableIsFirstRow;var J=function(){return(I==null?0:I())?"ytUpsellOfferTableRowViewModelUpsellOfferTableFirstRowCell":"ytUpsellOfferTableRowViewModelUpsellOfferTableRowHeaderCell"},r=function(){return(I==null?0:I())?"ytUpsellOfferTableRowViewModelUpsellOfferTableFirstRowCell":"ytUpsellOfferTableRowViewModelUpsellOfferTableRowContentCell"};
return _.B("ytm-upsell-offer-table-row-view-model",null,_.B("div",{class:"ytUpsellOfferTableRowViewModelHost"},_.B(_.V0,{data:function(){return z().rowHeaderCell}},{upsellOfferTableCellViewModel:function(P){return _.B("div",{class:J},_.B(p10,{data:P.data}))}}),_.B(_.V0,{data:function(){return z().contentCells}},{upsellOfferTableCellViewModel:function(P){return _.B("div",{class:r},_.B(p10,{data:P.data}))}})))},"rh");
w1z.idomCompat=!0;var mG4=_.ec(function(a){var z=a.data;return _.B("ytm-upsell-offer-table-view-model",null,_.B("div",{class:"ytUpsellOfferTableViewModelHost"},_.B("div",{class:"ytUpsellOfferTableViewModelUpsellOfferTableRows"},_.B(_.V0,{data:function(){return z().rows}},{upsellOfferTableRowViewModel:function(I,J){return _.B(w1z,{data:I.data,
upsellTableIsFirstRow:function(){return J()===0}})}}))))},"sh");
mG4.idomCompat=!0;var yF4=_.ec(function(a){var z=_.Yi(a.noPadding,!1),I=function(){var P,N;return(N=(P=a.data().logo.accessibilityData)==null?void 0:P.label)!=null?N:""},J=function(){return a.data().offerTable},r={};
return _.B("upsell-view-model",{class:_.B8("ytUpsellViewModelHost",(r.ytUpsellViewModelHostNoPadding=function(){return z()},r.ytUpsellViewModelHostWide=function(){return J()!==void 0},r))},_.B("div",{class:"ytUpsellViewModelHostUpsellLogo"},_.B(_.g,{cond:function(){return _.y0(a.data().logo)},
then:function(P){return _.B(_.qp,{data:P,contentMode:"CONTENT_MODE_SCALE_ASPECT_FIT",alt:I})}})),_.B("div",{class:"ytUpsellViewModelHostUpsellTitle"},_.B(_.xs,{text:function(){return a.data().title}})),_.B("div",{class:"ytUpsellViewModelHostUpsellSubtitleSection"},_.B(_.se,{each:function(){var P;
return(P=a.data().subtitles)!=null?P:[]},
keyBy:"INDEX"},function(P){var N={};return _.B("div",{class:_.B8("ytUpsellViewModelHostUpsellSubtitleSectionSubtitle",(N.ytUpsellViewModelHostUpsellSubtitleSectionSubtitleSecondary=function(){return J()!==void 0},N))},_.B(_.xs,{text:P}))})),_.B("div",{class:"ytUpsellViewModelHostUpsellBenefitInfoSection"},_.B(_.se,{each:function(){var P;
return(P=a.data().benefitInfos)!=null?P:[]},
keyBy:"INDEX"},function(P){return _.B(_.g,{cond:function(){return P().info},
then:function(N){return _.B("div",{class:"ytUpsellViewModelHostUpsellBenefitInfoSectionBenefitInfo"},_.B(_.nS,{icon:"CHECK_CIRCLE_FILLED",className:"ytUpsellViewModelHostUpsellBenefitInfoSectionIcon"}),_.B(_.xs,{text:N}))}})})),_.B(_.g,{cond:function(){return J()!==void 0},
then:function(){return _.B("div",{class:"ytUpsellViewModelHostUpsellOfferTableSection"},_.B(mG4,{data:J}))}}),_.B("div",{class:"ytUpsellViewModelHostUpsellLegalInfoSection"},_.B(_.se,{each:function(){var P;
return(P=a.data().legalInfos)!=null?P:[]},
keyBy:"INDEX"},function(P){var N={};return _.B("div",{class:_.B8("ytUpsellViewModelHostUpsellLegalInfoSectionLegalInfo",(N.ytUpsellViewModelHostUpsellLegalInfoSectionLegalInfoSmaller=function(){return J()!==void 0},N))},_.B(_.xs,{text:P}))})))},"th");var k_e=_.ec(function(a){var z=a.data;a={};a=(a.ytMiniAppScoreChallengeViewModelScoreRadial=!0,a.ytMiniAppScoreChallengeViewModelDarkScoreRadial=wli(),a);return _.B("yt-mini-app-score-challenge-view-model",{class:"ytMiniAppScoreChallengeViewModelHost"},_.B("div",{class:"ytMiniAppScoreChallengeViewModelTitle"},function(){return z().title}),_.B("div",{class:"ytMiniAppScoreChallengeViewModelSubtitle"},function(){return z().subtitle}),_.B("div",{class:_.$c(a)},_.B("div",{class:"ytMiniAppScoreChallengeViewModelScore"},
function(){return z().score})),_.B("div",{class:"ytMiniAppScoreChallengeViewModelPrompt"},function(){return z().prompt}))},"uh");var MwM=function(){this.store=_.M3();this.formId=""};
MwM.prototype.onInit=function(a){a.formId&&(this.formId=a.formId,this.store.dispatch(_.rg({type:"SET_CURRENT_FORM_ID",payload:{formId:this.formId}})))};var cF4=_.ec(function(a){function z(u){if(u&&(u=_.H(u,_.iq)))return Object.assign({},u,{isSelected:P()})}
var I=_.C(_.Af(function(){var u,E;return(E=(u=_.H(a.data().option,_.iq))==null?void 0:u.isSelected)!=null?E:!1})),J=I.next().value,r=I.next().value,P=J;
_.QO(function(){var u;_.ke0((u=a.data().formSchema)==null?void 0:u.id,{onSubmit:function(){var E=_.ab().resolve(_.j6),O=!!a.data().selectedCommand,f=!!a.data().unselectedCommand;if(P()){if(O)var A=a.data().selectedCommand}else f&&(A=a.data().unselectedCommand);A=_.o0(A);z(a.data().option)&&!A?(E="",!O&&f?E="selected ":O&&!f&&(E="unselected "),O=new _.Fn("No "+E+"command found for SelectionListItemFormViewModel"),_.Gx(O)):A&&E.resolveCommand(A)},
isValid:function(){return!0}})});
var N=function(){r(!P())};
_.V3(function(){var u,E,O=(u=a.data())==null?void 0:(E=u.formSchema)==null?void 0:E.id;O&&_.SDd()().delete(O)});
return _.B("yt-selection-list-item-form-view-model",{class:"ytSelectionListItemFormViewModelHost"},_.B("div",{class:"ytSelectionListItemFormViewModelParagraph"},_.B(_.xs,{text:function(){return a.data().paragraph}})),_.B(_.g,{cond:function(){return z(a.data().option)},
then:function(u){return _.B(_.LF,{data:u,isCompact:!0,hideSelectionTextChevron:!0,onTap:N,disableHorizontalPadding:!0})}}))},"vh");var YvZ=_.ec(function(a){var z=a.data;var I=a.disablePadding;var J=a.className;var r=_.Mm("yt-dialog-header-view-model"),P=function(){var u=z().imageBanner;a:switch(z().assetContainerPaddingStyle){case "DIALOG_HEADER_ASSET_PADDING_STYLE_INSET":var E="CONTENT_PREVIEW_IMAGE_STYLE_CUSTOM_ASPECT_RATIO";break a;default:E="CONTENT_PREVIEW_IMAGE_STYLE_DEFAULT"}return{themedImage:u,style:E,layoutMode:"CONTENT_PREVIEW_IMAGE_LAYOUT_MODE_FULL_WIDTH"}},N=function(){return z().assetContainerPaddingStyle!=="DIALOG_HEADER_ASSET_PADDING_STYLE_INSET"};
_.QO(function(){var u=function(){_.ZF(r.value,"yt-refit-popups-action")},E;
(E=r.value)==null||E.addEventListener("image-loaded",u);_.V3(function(){var O;(O=r.value)==null||O.removeEventListener("image-loaded",u)})});
a={};return _.B("yt-dialog-header-view-model",{el:r,class:_.B8(J,(a.ytDialogHeaderViewModelHost=!0,a.ytDialogHeaderViewModelHostDisablePadding=I,a))},_.B(_.g,{cond:function(){return z().imageBanner},
then:function(){var u={};return _.B("div",{class:_.B8(J,(u.ytDialogHeaderViewModelBanner=!0,u.ytDialogHeaderViewModelBannerFullBleed=N,u)),style:_.sW({"max-height":function(){return z().assetContainerMaxHeight!==void 0?z().assetContainerMaxHeight+"px":void 0}})},_.B(_.t0,{data:P,
className:"ytDialogHeaderViewModelBannerImage",notifyOnLoaded:!0}))}}),_.B(_.g,{cond:function(){return z().headerBlock},
then:function(){return _.B("div",{class:"ytDialogHeaderViewModelHeaderBlock"},_.B(_.V0,{data:function(){return z().headerBlock}},{contentPreviewImageViewModel:function(u){return _.B(_.t0,{data:u.data,
notifyOnLoaded:!0})}}))}}),_.B(_.g,{cond:function(){return z().customBanner},
then:function(u){return _.B("div",{class:"ytDialogHeaderViewModelCustomAssetContainer"},_.B(_.V0,{data:u},{avatarStackViewModel:_.DU}))}}),_.B(_.g,{cond:function(){return z().headline},
then:function(u){return _.B("h2",null,_.B(_.xs,{text:u,className:"ytDialogHeaderViewModelText"}))}}))},"wh");
YvZ.idomCompat=!0;var qvZ=_.ec(function(a){var z=_.hum(function(){return a.data().formId}),I=z.submitForm,J=z.isValid;
return _.B("yt-form-panel-footer-view-model",{class:"ytFormPanelFooterViewModelHost"},_.B(_.V0,{data:function(){return a.data().panelFooter}},{panelFooterViewModel:function(r){return _.B(_.ry,{data:r.data,
disablePadding:!0,disablePrimaryButton:function(){return!J()},
onClickPrimaryButton:function(){I()}})}}))},"xh");var efe=_.ec(function(a){var z=function(){var I,J;return(J=(I=_.H(a.data().rendererContext,_.Vw))==null?void 0:I.label)!=null?J:""};
return _.B("yt-dialog-image-content-view-model",{class:_.B8("ytDialogImageContentViewModelHost",a.className)},_.B(_.g,{cond:function(){return _.y0(a.data().image)},
then:function(I){var J={};return _.B("div",{style:_.sW((J.width=(0,_.oP)(function(){var r;return(r=a.data().imageMaxWidth)!=null?r:""}),J)),
class:"ytDialogImageContentViewModelImage"},_.B(_.qp,{data:I,alt:z,contentMode:"CONTENT_MODE_SCALE_ASPECT_FIT"}))}}),_.B(_.xs,{text:function(){return a.data().description},
className:"ytDialogImageContentViewModelDescription"}))},"yh");var z4G=_.ec(function(a){var z=_.q3(a,{headerPosition:0,buttonLayout:0,buttonStyle:0,contentAlignment:0,maxHeight:0,isFullscreen:!1,isHeaderWizDefined:!1,isFooterWizDefined:!1}),I=z.elRefCallback;a=z.iconWiz;var J=z.assetWiz,r=z.assetType,P=z.titleWiz,N=z.leadingActionHeaderWiz,u=z.trailingActionHeaderWiz,E=z.headerPosition,O=z.contentWiz,f=z.buttonLayout,A=z.buttonStyle,n=z.primaryButtonWiz,F=z.secondaryButtonWiz,h=z.contentAlignment,v=z.isFullscreen,d=z.width,W=z.maxHeight,l=z.isHeaderWizDefined,
q=z.headerWiz,m=z.isFooterWizDefined,M=z.footerWiz;z=_.Mm("dialog-layout",function(oE){I==null||I(oE)});
var y=J?function(){return J({className:"yt-spec-dialog-layout__dialog-layout-asset-item"})}:void 0,e=n?function(){var oE={};
return n({buttonOverrides:function(){return{style:(A==null?void 0:A())===1?"call-to-action":"mono",type:"filled",state:"active",size:"M"}},
className:_.B8((oE["yt-spec-dialog-layout__dialog-layout-button"]=!0,oE["yt-spec-dialog-layout__dialog-layout-button--dialog-buttons-inline-stretched"]=function(){return(f==null?void 0:f())===0||(f==null?void 0:f())===2},oE))})}:void 0,Bp=F?function(){var oE={};
return F({buttonOverrides:{style:"mono",type:"outline",state:"active",size:"M"},className:_.B8((oE["yt-spec-dialog-layout__dialog-layout-button"]=!0,oE["yt-spec-dialog-layout__dialog-layout-button--dialog-buttons-inline-stretched"]=function(){return(f==null?void 0:f())===0||(f==null?void 0:f())===2},oE))})}:void 0,Em=function(){return(!!P||!!N||!!u)&&E()===0},nG={},bG={},Hp={},LG={};
return _.B("dialog-layout",{el:z,class:_.B8((nG["yt-spec-dialog-layout"]=!0,nG["yt-spec-dialog-layout--dialog-layout-fullscreen"]=v,nG["yt-spec-dialog-layout--dialog-layout-responsive"]=function(){return!v()},nG["yt-spec-dialog-layout--dialog-layout-extended-max-height"]=function(){return W()===1},nG["yt-spec-dialog-layout--dialog-layout-asset-inset"]=function(){return(r==null?void 0:r())===1},nG)),
style:function(){return(d==null?void 0:d())!==void 0?"width: "+d+"px;":""}},a?_.B("div",{class:_.B8((bG["yt-spec-dialog-layout__dialog-layout-icon"]=!0,bG["yt-spec-dialog-layout__dialog-layout-icon--dialog-layout-icon-above-media"]=function(){return!!J&&E()===1},bG["yt-spec-dialog-layout__dialog-layout-icon--dialog-layout-icon-center-align"]=function(){return h()===1},bG))},_.B(a,null)):null,_.B(_.g,{cond:l,
then:function(){return q?_.B("div",{class:"yt-spec-dialog-layout__dialog-header-container"},_.B(q,null)):null},
else:function(){return _.B(_.eJ,null,_.B(_.g,{cond:Em,then:function(){return _.B(aMf,{contentAlignment:h,LeadingActionHeader:N,TrailingActionHeader:u,Title:P,isAboveAsset:!!y})}}),y?_.B("div",{class:"yt-spec-dialog-layout__dialog-layout-asset"},_.B(y,null)):null)}}),_.B("div",{class:_.B8((Hp["yt-spec-dialog-layout__dialog-layout-container"]=!0,Hp["yt-spec-dialog-layout--dialog-layout-center-align"]=function(){return(h==null?void 0:h())===1},Hp["yt-spec-dialog-layout__dialog-layout-container--dialog-layout-container-top-padding"]=
function(){return!P&&!q||!!y&&(E==null?void 0:E())===0},Hp))},_.B(_.g,{cond:function(){return P&&!q&&(E==null?void 0:E())===1},
then:function(){return _.B(aMf,{contentAlignment:h,LeadingActionHeader:N,TrailingActionHeader:u,Title:P,isAboveAsset:!1})}}),O?_.B("div",{class:"yt-spec-dialog-layout__dialog-layout-content"},_.B("div",{class:"yt-spec-dialog-layout__dialog-layout-content-inner"},_.B(O,null))):null,_.B(_.g,{cond:m,
then:function(){return M?_.B("div",{class:"yt-spec-dialog-layout__dialog-layout-footer-container"},_.B(M,null)):null}}),e||Bp?_.B(jS4,{footerClasses:_.B8((LG["yt-spec-dialog-layout__dialog-layout-footer-container"]=!0,LG["yt-spec-dialog-layout__dialog-layout-footer"]=!0,LG["yt-spec-dialog-layout--dialog-buttons-stacked"]=function(){return(f==null?void 0:f())===2},LG["yt-spec-dialog-layout__dialog-layout-footer--dialog-buttons-inline-end"]=function(){return(f==null?void 0:f())===1},LG)),
PrimaryButton:e,SecondaryButton:Bp}):null))},"zh"),aMf=_.ec(function(a){var z=_.q3(a,{isAboveAsset:!1,
enableLeadingActionHeader:!0}),I=z.contentAlignment,J=z.LeadingActionHeader;a=z.Title;var r=z.TrailingActionHeader,P=z.isAboveAsset,N=z.enableLeadingActionHeader;z={};return _.B("div",{class:_.B8((z["yt-spec-dialog-layout__dialog-header-container"]=!0,z["yt-spec-dialog-layout__dialog-header"]=!0,z["yt-spec-dialog-layout__dialog-header--dialog-header-above-asset"]=P,z["yt-spec-dialog-layout--dialog-layout-center-align"]=function(){return(I==null?void 0:I())===1&&N()},z))},_.B(_.g,{cond:function(){return N()},
then:function(){return J?_.B("div",{class:"yt-spec-dialog-layout__dialog-leading-action-header"},_.B(J,null)):null}}),a?_.B("h2",{class:"yt-spec-dialog-layout__dialog-layout-title"},_.B(a,null)):null,r?_.B("div",null,_.B(r,null)):null)},"Ah"),jS4=_.ec(function(a){var z=a.footerClasses;
var I=a.PrimaryButton;a=a.SecondaryButton;return _.B("div",{class:z},a?_.B(a,null):null,I?_.B(I,null):null)},"Bh");var IMZ=_.ec(function(a){var z=a.data;return _.B("ytfz-fanzone-scheduled-info-view-model",{class:"ytfzFanzoneScheduledInfoViewModelHost"},_.B("div",{class:"ytfzFanzoneScheduledInfoViewModelAvatar"},_.B(_.V0,{data:function(){return z().avatar}},{avatarViewModel:_.ok})),_.B("h2",{class:"ytfzFanzoneScheduledInfoViewModelTitle"},_.B(_.xs,{text:function(){return z().title}})),_.B(_.xs,{text:function(){return z().description},
className:"ytfzFanzoneScheduledInfoViewModelDescription"}))},"Ch");var JOG=_.ec(function(a){var z=a.data;return _.B("yt-access-confirmation-view-model",{class:"ytAccessConfirmationViewModelHost"},_.B("div",{class:"ytAccessConfirmationViewModelContent"},_.B(_.V0,{data:function(){var I;return(I=z().avatar)!=null?I:z().dualAvatar}},{dualAvatarViewModel:function(I){return _.B(_.ibI,{data:I.data,
className:"ytAccessConfirmationViewModelAvatar"})},
decoratedAvatarViewModel:function(I){return _.B(_.Uj,{data:I.data,className:"ytAccessConfirmationViewModelAvatar"})}}),_.B("h2",{class:"ytAccessConfirmationViewModelTitle"},_.B(_.xs,{text:function(){return z().title}})),_.B(_.xs,{text:function(){return z().subtitle},
className:"ytAccessConfirmationViewModelSubtitle"})))},"Dh");var rOM=_.ec(function(a){var z=a.data;var I=void 0;a=_.C(_.Af(function(){var O;return((O=_.H(z().content,_.mef))==null?void 0:O.defaultSelectedKey)||""}));
var J=a.next().value,r=a.next().value,P,N=function(){r("");var O;(O=I)!=null&&O.store.dispatch(_.rg({type:"RESET_COMMAND_MAP"}))};
_.QO(function(){I=new MwM;window.addEventListener("yt-popup-closed",N)});
_.h2(function(){if(I&&P!==z().formId&&(I.onInit(z()),(P=z().formId)&&J())){var O=I,f={key:J()};f.command&&O.store.dispatch(L30(P,f.command))}},"k6b6Qe");
_.V3(function(){window.removeEventListener("yt-popup-closed",N)});
var u=function(O,f,A){f.key&&A&&f.key!==J()&&(r(f.key),I&&f.command&&I.store.dispatch(L30(A,f.command)))},E=function(){if(_.H(z().content,_.mef))return!(J==null?0:J())};
return _.B("yt-dialog-view-model",{class:_.B8("ytDialogViewModelHost","ytDialogViewModelResetSpacing"),dialog:!0},_.B(z4G,{headerWiz:function(){return _.B("span",{skip:!0},_.B(_.V0,{data:function(){return z().header}},{dialogHeaderViewModel:function(O){return _.B(YvZ,{data:O.data,
disablePadding:!0})}}))},
isHeaderWizDefined:function(){return!!z().header},
contentWiz:function(){return _.B("span",{skip:!0},_.B(_.V0,{data:function(){return z().customContent?z().customContent:z().content}},{basicContentViewModel:_.x0Z,
createPlaylistDialogFormViewModel:Lx0,collaborativePlaylistInviteMessageViewModel:RfZ,miniAppScoreChallengeViewModel:k_e,radioButtonGroupViewModel:function(O){var f=O.data;return _.B(_.W_Z,{data:f,selectedKey:J,onSelected:u,groupName:function(){return f().formId}})},
selectionListItemFormViewModel:cF4,upsellViewModel:function(O){return _.B(yF4,{data:O.data,noPadding:!0})},
fanzoneScheduledInfoViewModel:IMZ,installmentAgreementsViewModel:DGz,accessConfirmationViewModel:JOG,listViewModel:function(O){return _.B(_.Y2X,{data:O.data,disableHorizontalPadding:!0})},
dialogImageContentViewModel:efe}))},
footerWiz:function(){return _.B("span",{skip:!0},_.B(_.V0,{data:function(){return z().footer}},{panelFooterViewModel:function(O){return _.B(_.ry,{data:O.data,
disablePadding:!0,disablePrimaryButton:E})},
formPanelFooterViewModel:qvZ,formFooterViewModel:function(O){return _.B(_.F_f,{data:O.data,disablePadding:!0})}}))},
isFooterWizDefined:function(){return!!z().footer}}))},"Eh");
rOM.idomCompat=!0;_.Jf(rOM,"yt-dialog-view-model",{props:{data:_.zl},unsafeExternallySettableAttributes:new Set(["tabindex","style"])});var PWE=_.ec(function(a){var z=a.data;a={};return _.B("yt-panel-header-view-model",{class:_.B8("yt-panel-header-view-model-wiz",(a["yt-panel-header-view-model-wiz--hide-divider"]=function(){return!!z().shouldHideDivider},a["yt-panel-header-view-model-wiz--compact"]=function(){return!!z().subtitle},a))},_.B("div",{class:"yt-panel-header-view-model-wiz__title-wrapper"},_.B(_.g,{cond:function(){return z().title},
then:function(I){return _.B(_.xs,{text:I,className:"yt-panel-header-view-model-wiz__title"})}}),_.B(_.g,{cond:function(){return z().subtitle},
then:function(I){return _.B(_.xs,{text:I,className:"yt-panel-header-view-model-wiz__subtitle"})}})),_.B("div",{class:"yt-panel-header-view-model-wiz__trailing-buttons"},_.B(_.V0,{data:function(){return z().trailingButtons}},{buttonViewModel:function(I){return _.B(_.At,{data:I.data,
className:"yt-panel-header-view-model-wiz__button"})}})))},"Fh");
PWE.idomCompat=!0;var Zqz=_.ec(function(a){var z=_.g4(function(P){var N;if((N=a.skipContentClick)==null?0:N.call(a))return!1;a.onContentWrapperClick(P);return!0}),I,J,r;
return _.B("div",{class:_.B8("yt-spec-bottom-sheet-layout","yt-spec-bottom-sheet-layout__bottom-sheet-renderer-container","yt-spec-bottom-sheet-layout--modern"),style:function(){return a.isAnimating()?"transform: translateY("+a.currentY()+"px);transition: 0.2s":""}},(I=a.header)==null?void 0:I.call(a),_.B("div",{id:a.contentWrapperId,
class:"yt-spec-bottom-sheet-layout__bottom-sheet-layout-content-wrapper",style:_.sW({"max-height":(0,_.oP)(a.maxHeightForContentWrapper)}),"on:scroll":Mgi(a.onScroll),"on:touchmove":Mgi(function(P){return void P.stopPropagation()})},_.B("div",{el:{onRender:a.contentWrapperEl},
class:"yt-spec-bottom-sheet-layout__bottom-sheet-content","on:click":z},(J=a.body)==null?void 0:J.call(a))),(r=a.footer)==null?void 0:r.call(a))},"Gh");
Zqz.idomCompat={callbacks:{onScroll:!0,contentWrapperEl:!0,onContentWrapperClick:!0}};var CWe=_.ec(function(a){var z=_.Yi(a.leadingLabel),I=_.Yi(a.trailingLabel),J=_.Yi(a.footerButtonType),r=function(){return z()||I()||a.hasPrimaryButton()||a.hasSecondaryButton()},P={},N=_.B8("yt-spec-bottom-sheet-layout__primary-button",(P["yt-spec-bottom-sheet-layout__primary-button--default"]=function(){return J()===0&&a.hasPrimaryButton()},P["yt-spec-bottom-sheet-layout__primary-button--trailing-pair"]=function(){return J()===1&&a.hasPrimaryButton()},P["yt-spec-bottom-sheet-layout__primary-button--split-pair"]=
function(){return J()===2&&a.hasPrimaryButton()},P["yt-spec-bottom-sheet-layout__primary-button--primary-split-pair"]=function(){return J()===3&&a.hasPrimaryButton()},P));
P={};var u=_.B8("yt-spec-bottom-sheet-layout__secondary-button",(P["yt-spec-bottom-sheet-layout__secondary-button--secondary-button-trailing-pair"]=function(){return J()===1&&a.hasSecondaryButton()},P["yt-spec-bottom-sheet-layout__secondary-button--secondary-button-split-pair"]=function(){return J()===2&&a.hasSecondaryButton()},P["yt-spec-bottom-sheet-layout__secondary-button--secondary-button-primary-split-pair"]=function(){return J()===3&&a.hasPrimaryButton()},P));
return _.B(_.g,{cond:a.hasFooterOverride,then:function(){var E;return _.B(_.eJ,null,(E=a.footerOverride)==null?void 0:E.call(a))},
else:function(){return _.B(_.g,{cond:r,then:function(){return _.B("div",{class:"yt-spec-bottom-sheet-layout__bottom-sheet-layout-footer-wrapper"},_.B(_.g,{cond:function(){return z()||I()},
then:function(){var E={};return _.B("div",{class:_.B8("yt-spec-bottom-sheet-layout__footer-label-wrapper",(E["yt-spec-bottom-sheet-layout__footer-label-wrapper--without-buttons"]=function(){return!a.hasPrimaryButton()},E))},_.B(_.g,{cond:z,
then:function(){return _.B("div",{class:"yt-spec-bottom-sheet-layout__leading-label"},z)}}),_.B(_.g,{cond:I,
then:function(){return _.B("div",{class:"yt-spec-bottom-sheet-layout__trailing-label"},I)}}))}}),_.B(_.g,{cond:function(){return a.hasPrimaryButton()||a.hasSecondaryButton()},
then:function(){var E={};return _.B("div",{class:_.B8("yt-spec-bottom-sheet-layout__footer-button-wrapper",(E["yt-spec-bottom-sheet-layout__footer-button-wrapper--landscape-button-wrapper"]=_.m4e,E))},_.B(_.g,{cond:function(){return a.hasSecondaryButton()&&J()!==0},
then:function(){var O;return _.B("div",{class:u},(O=a.secondaryButton)==null?void 0:O.call(a))}}),_.B(_.g,{cond:a.hasPrimaryButton,
then:function(){var O;return _.B("div",{class:N},(O=a.primaryButton)==null?void 0:O.call(a))}}))}}))}})}})},"Hh");
CWe.idomCompat={callbacks:{primaryButton:!0,secondaryButton:!0,footerOverride:!0}};var NAZ=_.ec(function(a){var z=_.Yi(a.title),I=_.Yi(a.subtitle);return _.B("div",{class:"yt-spec-bottom-sheet-layout__bottom-sheet-layout-header-wrapper",id:a.headerId,"on:touchstart":_.g4(function(J){var r;(r=a.touchstart)==null||r.call(a,J);return!1}),
"on:touchmove":_.g4(function(J){var r;(r=a.touchmove)==null||r.call(a,J);return!1}),
"on:touchend":_.g4(function(J){var r;(r=a.touchend)==null||r.call(a,J);return!1})},_.B("div",{class:"yt-spec-bottom-sheet-layout__bottom-sheet-drag-line"}),_.B(_.g,{cond:a.hasHeaderOverride,
then:function(){var J;return _.B(_.eJ,null,(J=a.headerOverride)==null?void 0:J.call(a))},
else:function(){var J={};return _.B("div",{class:_.B8((J["yt-spec-bottom-sheet-layout__bottom-sheet-layout-header"]=!0,J["yt-spec-bottom-sheet-layout__bottom-sheet-layout-header--with-title"]=z,J))},_.B("div",{class:"yt-spec-bottom-sheet-layout__bottom-sheet-layout-header-title-wrapper"},_.B(_.g,{cond:z,then:function(){return _.B(_.eJ,null,_.B("h2",{class:"yt-spec-bottom-sheet-layout__bottom-sheet-layout-title"},z),_.B(_.g,{cond:I,then:function(){return _.B("h3",{class:"yt-spec-bottom-sheet-layout__bottom-sheet-layout-subtitle"},
I)}}))}})),_.B(_.g,{cond:function(){return z()&&a.hasActionHeader()},
then:function(){var r;return _.B("div",{class:"yt-spec-bottom-sheet-layout__bottom-sheet-layout-action-header"},(r=a.actionHeader)==null?void 0:r.call(a))}}))}}))},"Ih");
NAZ.idomCompat={callbacks:{touchstart:!0,touchmove:!0,touchend:!0,actionHeader:!0,headerOverride:!0}};_.ec(function(a){function z(y){if(!W&&typeof MutationObserver!=="undefined"){var e={childList:!0};"MutationObserver"in window&&(W=new MutationObserver(I.bind(void 0,y)),W.observe(y,e))}}
function I(y){typeof W!=="undefined"&&(l["content-wrapper"]===void 0&&(l["content-wrapper"]=y.children[0].clientHeight),F(l["content-wrapper"]),n()>h()||v(n()))}
function J(){A(window.innerHeight);n()>h()||v(n());q.isFullScreen[0]()&&n()>h()?m().dispatch("Snap To Full Screen",{maxHeight:d()}):m().dispatch("Snap To Neutral Position",{maxHeight:h()})}
function r(y){document.body.style.overscrollBehavior="none";y.preventDefault();m().dispatch("Touch Start",{event:y})}
function P(y){y.preventDefault();m().dispatch("Touch Move",{event:y,contentScrollable:n()>h(),fullContentWrapperHeight:d(),contentWrapperHeight:h(),contentHeightMap:l,contentWrapperId:"content-wrapper",header:YgV(a),footer:YgV(a)})}
function N(){document.body.style.overscrollBehavior="";q.isFullScreen[0]()?q.currentY[0]()>=60?m().dispatch("Snap To Neutral Position",{maxHeight:h()}):m().dispatch("Snap To Full Screen",{maxHeight:d()}):q.currentY[0]()>=60?u():q.currentY[0]()<=-60&&n()>h()?m().dispatch("Snap To Full Screen",{maxHeight:d()}):m().dispatch("Snap To Neutral Position",{maxHeight:h()})}
function u(){m().dispatch("Close Sheet",{clientHeight:f(),maxHeight:0});setTimeout(function(){cj0()},250)}
var E=_.C(_.CW(window.innerHeight,void 0,"NWeFS")),O=E.next().value;E=E.next().value;var f=O,A=E;E=_.C(_.CW(0,void 0,"oxfm4"));O=E.next().value;E=E.next().value;var n=O,F=E;E=_.C(_.Af(function(){var y=YgV(a);return.6*f()-mpV(y)-yjV(y)}));
O=E.next().value;E=E.next().value;var h=O,v=E,d=function(){var y=YgV(a);return f()-mpV(y)-yjV(y)-24-24},W=null,l={},q={initialY:_.CW(0,void 0,"cYBE5c"),
currentY:_.CW(0,void 0,"RndqHc"),isAnimating:_.CW(!1,void 0,"vO9DVd"),isFullScreen:_.CW(!1,void 0,"UOfBcf"),maxHeightForContentWrapper:_.Af(h)},m=function(){var y=null;return function(){if(!y){var e={initialY:q.initialY[0](),currentY:q.currentY[0](),isAnimating:q.isAnimating[0](),isFullScreen:q.isFullScreen[0](),maxHeightForContentWrapper:q.maxHeightForContentWrapper[0]()};y=kQG(e)}return y}}();
_.QO(function(){window.addEventListener("resize",J);m().subscribe(function(y){q.initialY[1](y.initialY);q.currentY[1](y.currentY);q.isAnimating[1](y.isAnimating);q.isFullScreen[1](y.isFullScreen);q.maxHeightForContentWrapper[1](y.maxHeightForContentWrapper)})});
_.V3(function(){window.removeEventListener("resize",J);W&&(W.disconnect(),W=null)});
var M=_.B8({"bottom-sheet-content-without-icon":function(){var y;return!((y=a.shouldShowIcons)==null?0:y.call(a))}});
return _.B("bottom-sheet-layout",null,_.B(Zqz,{contentWrapperId:"content-wrapper",isAnimating:function(){return q.isAnimating[0]()},
currentY:function(){return q.currentY[0]()},
maxHeightForContentWrapper:function(){return q.maxHeightForContentWrapper[0]()},
shouldShowIcons:a.shouldShowIcons,skipContentClick:a.skipContentClick,onScroll:function(){var y=document.getElementById("header-wrapper"),e=document.getElementById("content-wrapper");if(y&&e){var Bp={};Bp=(Bp["yt-spec-bottom-sheet-layout__bottom-sheet-layout-header-wrapper"]=!0,Bp["yt-spec-bottom-sheet-layout__bottom-sheet-layout-header-wrapper--bottom-border"]=!0,Bp);y.className=e.scrollTop>1?_.$c(Bp):"yt-spec-bottom-sheet-layout__bottom-sheet-layout-header-wrapper"}},
onContentWrapperClick:cj0,contentWrapperEl:function(y){z(y);requestAnimationFrame(function(){I(y)})},
header:function(){return _.B(NAZ,{touchstart:r,touchmove:P,touchend:N,title:a.headerTitle,subtitle:a.headerSubtitle,headerId:"header-wrapper",headerOverride:a.headerFn,hasHeaderOverride:a.hasHeaderFn,actionHeader:a.headerActionHeader,hasActionHeader:a.hasHeaderActionHeader})},
footer:function(){return _.B(CWe,{footerButtonType:a.footerButtonType,leadingLabel:a.footerLeadingLabel,trailingLabel:a.footerTrailingLabel,primaryButton:a.footerPrimaryButton,hasPrimaryButton:a.hasFooterPrimaryButton,secondaryButton:a.footerSecondaryButton,hasSecondaryButton:a.hasFooterSecondaryButton,footerOverride:a.footerFn,hasFooterOverride:a.hasFooterFn})},
body:function(){return _.B(_.g,{cond:a.hasContentFn,then:function(){var y;return _.B("div",{class:M},(y=a.contentFn)==null?void 0:y.call(a))}})}}))},"Jh").idomCompat={callbacks:{headerActionHeader:!0,
headerFn:!0,contentFn:!0,footerFn:!0,footerPrimaryButton:!0,footerSecondaryButton:!0}};var tAZ=_.ec(function(a){var z=_.ab().resolve(_.T4);return _.B("yt-contextual-sheet-layout",{class:"yt-contextual-sheet-layout-wiz","on:click":_.g4(function(){return void z.closeSheet()})},_.B(_.g,{cond:function(){return!!a.header},
then:function(){return _.B("div",{class:"yt-contextual-sheet-layout-wiz__header-container"},a.header())}}),_.B(_.g,{cond:function(){return!!a.content},
then:function(){return _.B("div",{class:"yt-contextual-sheet-layout-wiz__content-container"},a.content())}}),_.B(_.g,{cond:function(){return!!a.footer},
then:function(){return _.B("div",{class:"yt-contextual-sheet-layout-wiz__footer-container"},a.footer())}}))},"Kh");
tAZ.idomCompat={callbacks:{header:!0,content:!0,footer:!0}};var uiV=_.ec(function(a){a=a.data;var z=_.Mm("yt-sheet-view-model",function(J){if(_.K("web_focus_first_element_sheet")||!_.K("sheet_focus_first_killswitch"))return J.addEventListener("focus",function(){yRE(J)}),function(){J.removeEventListener("focus",function(){yRE(J)})}}),I={};
return _.B("yt-sheet-view-model",{"on:mousedown":_.g4(function(J){_.K("sheet_focus_first_killswitch")||J.currentTarget!==J.target&&J.preventDefault()}),
"on:focus":_.g4(function(){_.K("sheet_focus_first_killswitch")||yRE(z.value)}),
class:_.B8("yt-sheet-view-model-wiz",(I["yt-sheet-view-model-wiz--contextual"]=!0,I["yt-sheet-view-model-wiz--disable-backdrop-filter"]=_.K("web_disable_backdrop_filter"),I)),el:z,tabindex:-1},_.B(_.g,{cond:a,then:function(J){return _.B(tAZ,{header:function(){return _.B(_.V0,{data:function(){return J().header}},{panelHeaderViewModel:PWE})},
content:function(){return _.B(_.V0,{data:function(){return J().content}},{listViewModel:function(r){return _.B(_.Y2X,{data:r.data,
isCompact:!0,inPopup:!0})},
upsellViewModel:yF4,miniAppScoreChallengeViewModel:k_e})},
footer:function(){return _.B(_.V0,{data:function(){return J().footer}},{panelFooterViewModel:_.ry})}})}}))},"Lh");
uiV.idomCompat=!0;_.Jf(uiV,"yt-sheet-view-model",{props:{data:_.zl}});var BAf=_.ec(function(a){var z=function(){var I;return(I=a.data().enableDebuggingFeatures)!=null?I:!1};
return _.B("yt-stories-sticker-layer-view-model",{class:"ytStoriesStickerLayerViewModelHost"},_.B(_.se,{each:function(){var I;return(I=a.data().stickers)!=null?I:[]}},function(I){return _.B(EDV,{data:function(){return I},
debugMode:z})}))},"Mh"),EDV=_.ec(function(a){var z=_.q3(a,{debugMode:!1}).debugMode,I=_.Yi(function(){var E;
return(E=a.data().region)==null?void 0:E.w},0),J=_.Yi(function(){var E;
return(E=a.data().region)==null?void 0:E.h},0),r=_.Yi(function(){var E;
return(E=a.data().region)==null?void 0:E.x},0),P=_.Yi(function(){var E;
return(E=a.data().region)==null?void 0:E.y},0),N=_.g4(function(){var E=a.data().onTap;
E&&_.lN(E)}),u={};
return _.B("div",{class:_.B8("ytStoriesStickerLayerViewModelSticker",(u.ytStoriesStickerLayerViewModelDebugMode=z,u)),style:_.sW({width:function(){return 100*I()+"%"},
height:function(){return 100*J()+"%"},
left:function(){return 100*r()+"%"},
top:function(){return 100*P()+"%"},
"flex-direction":function(){return qgG(a.data().flexDirection)},
"justify-content":function(){return eLM(a.data().justifyContent)},
"align-items":function(){return atZ(a.data().alignItems)}}),
"on:click":N},_.B(_.V0,{data:function(){return a.data().button||a.data().toggleButton}},{buttonViewModel:function(E){return _.B(_.At,{data:E.data,
className:"ytStoriesStickerLayerViewModelButton"})},
toggleButtonViewModel:function(E){return _.B(_.Wc,{data:E.data,className:"ytStoriesStickerLayerViewModelButton"})}}))},"Nh");var Oq0=_.ec(function(a){var z=function(){return a.data()},I={},J=_.Yi(function(){return z().backgroundColor},0),r=_.Yi(function(){return z().actionButtons},[]),P=_.Yi(function(){return z().stickerLayer},{}),N=function(){var E,O;
return{animationRef:I,animationConfig:{autoplay:!1,loop:!1,path:(O=(E=z().foregroundAnimation)==null?void 0:E.url)!=null?O:"",name:"stories_item_foreground_animation"},listeners:{complete:function(){a.navigateToNextItemOnLottieComplete()}}}},u=function(){var E,O,f,A,n,F,h,v;
return{animationConfig:{autoplay:(F=(E=z().backgroundAnimation)==null?void 0:(O=E.settings)==null?void 0:O.autoplay)!=null?F:!1,loop:(h=(f=z().backgroundAnimation)==null?void 0:(A=f.settings)==null?void 0:A.loop)!=null?h:!1,path:(v=(n=z().backgroundAnimation)==null?void 0:n.url)!=null?v:"",name:"stories_item_background_animation"}}};
_.h2(function(){if(a.isVisible()){var E;(E=I.lottieEl)==null||E.play();a.animationRef()&&(a.animationRef().lottieEl=I.lottieEl)}else{var O;(O=I.lottieEl)==null||O.stop()}},"Cbnkwd");
return _.B("yt-stories-item-view-model",{class:"ytStoriesItemViewModelHost",style:_.sW({"background-color":function(){return _.RX(J())+";"}})},_.B("div",{class:"ytStoriesItemViewModelAssetContent"},_.B(_.g,{cond:function(){return!!z().backgroundAnimation},
then:function(){return _.B(_.b4,{data:u,animationName:function(){return u().animationConfig.name},
className:"ytStoriesItemViewModelLottieAnimation"})}}),_.B(_.g,{cond:function(){return!!z().backgroundImage},
then:function(){return _.B(_.qp,{data:function(){return z().backgroundImage},
className:"ytStoriesItemViewModelImage",alt:"background image"})}}),_.B(_.g,{cond:function(){return!!z().foregroundAnimation},
then:function(){return _.B(_.b4,{data:N,animationName:function(){return N().animationConfig.name},
className:"ytStoriesItemViewModelLottieAnimation"})}}),_.B(_.g,{cond:function(){return!!z().foregroundImage},
then:function(){return _.B(_.qp,{data:function(){return z().foregroundImage},
className:"ytStoriesItemViewModelImage",alt:"foreground image"})}}),_.B("div",{class:"ytStoriesItemViewModelTopShadow"}),_.B(_.V0,{data:function(){return P()}},{storiesStickerLayerViewModel:BAf})),_.B("div",{class:"ytStoriesItemViewModelBottomShadow",
style:_.sW({"background-color":function(){return _.RX(J())}})},_.B("div",{class:"ytStoriesItemViewModelActionButtonWrapper"},_.B(_.se,{each:r},function(E){return _.B(gD0,{data:function(){return E},
pauseAutoNavigation:a.pauseAutoNavigation})}))))},"Oh"),fME={style:"overlay",
type:"outline"},gD0=_.ec(function(a){var z={};return _.B("div",{class:_.B8("ytStoriesItemViewModelActionButton",(z.ytStoriesItemViewModelStretchedActionButton=function(){return a.data().size==="STORIES_BUTTON_SIZE_STRETCH"},z)),
"on:click":_.g4(a.pauseAutoNavigation)},_.B(_.V0,{data:function(){return a.data().button}},{buttonViewModel:function(I){return _.B(_.At,{data:I.data,
buttonOverrides:fME})}}))},"Ph");_.Jf(_.ec(function(a){var z=function(){var Em;return(Em=a.data().startIndex)!=null?Em:0},I=_.C(_.Af(z)),J=I.next().value,r=I.next().value;
I=_.C(_.CW(!1,void 0,"O8yPf"));var P=I.next().value,N=I.next().value,u=function(){var Em;return(Em=a.data().storyItems)!=null?Em:[]},E={},O=_.Mm("yt-stories-viewer-view-model"),f=function(){return a.data().dismissButton},A=function(){var Em;
return _.o0((Em=_.H(f(),_.yw))==null?void 0:Em.onTap)},n=_.Mm("div"),F,h,v=!1,d=function(){var Em;
(Em=F)==null||Em.cancel();F=W(J()).animate([{width:"0%"},{width:"100%"}],{duration:9E3,easing:"linear"});F.onfinish=function(){W(J()).style.width="100%";var nG=_.H(u()[J()],P4i),bG,Hp;nG!=null&&nG.foregroundAnimation&&((nG==null?0:(bG=nG.foregroundAnimation)==null?0:bG.url)||(nG==null?0:(Hp=nG.foregroundAnimation)==null?0:Hp.payload))||(J()!==u().length-1?(r(J()+1),d()):A()&&_.DA(A()))}},W=function(Em){return n.value.children[Em].children[0]},l=function(){for(var Em=0;Em<J();Em++)W(Em).style.width=
"100%"};
I=_.g4(function(){v||(P()?N(!1):(J()===u().length-1&&A()&&_.DA(A()),W(J()).style.width="100%",J()!==u().length-1&&(r(J()+1),d())))});
var q=_.g4(function(){v||(P()?N(!1):(W(J()).style.width="0%",J()!==0?r(J()-1):r(J()),d()))}),m=function(){N(!0)},M=function(){W(J()).style.width="100%";
J()!==u().length-1?(r(J()+1),d()):A()&&_.DA(A())},y=_.g4(function(){v=!1;
h=setTimeout(function(){N(!0);v=!0},300)}),e=_.g4(function(){clearTimeout(h);
v&&P()&&N(!1)});
_.h2(function(){if(P()){var Em;(Em=F)==null||Em.pause();var nG;(nG=E.lottieEl)==null||nG.pause()}else{var bG;(bG=F)==null||bG.play();var Hp;(Hp=E.lottieEl)==null||Hp.play()}},"vweLEf");
_.h2(function(){l();J()===z()&&d()},"o4ZHje");
var Bp=function(Em){Em.target===O.value&&(Em=A())&&_.DA(Em)};
_.QO(function(){l();d();window.addEventListener("yt-popup-closed",Bp)});
_.V3(function(){clearTimeout(h);window.removeEventListener("yt-popup-closed",Bp)});
return _.B("yt-stories-viewer-view-model",{el:O,class:_.B8("ytStoriesViewerViewModelHost","ytStoriesViewerViewModelResetSpacing"),dialog:!0},_.B("div",{class:"ytStoriesViewerViewModelNavigationContainer"},_.B("div",{class:"ytStoriesViewerViewModelPreviousNavigation","on:click":q,"on:mousedown":y,"on:mouseup":e,"on:mouseleave":e}),_.B("div",{class:"ytStoriesViewerViewModelNextNavigation","on:click":I,"on:mousedown":y,"on:mouseup":e,"on:mouseleave":e})),_.B("div",{class:"ytStoriesViewerViewModelStoryItemsContainer"},
_.B(_.V0,{data:u},{storiesItemViewModel:function(Em,nG){var bG=Em.data;return _.B(_.g,{cond:function(){return Math.abs(nG()-J())<=1},
then:function(){var Hp={};return _.B("div",{class:_.B8("ytStoriesViewerViewModelStoryItem",(Hp.ytStoriesViewerViewModelActiveStoryItem=function(){return nG()===J()},Hp))},_.B(Oq0,{data:bG,
pauseAutoNavigation:m,navigateToNextItemOnLottieComplete:M,isVisible:function(){return nG()===J()},
animationRef:E}))}})}})),_.B("div",{class:"ytStoriesViewerViewModelProgressBarsContainer",
el:n},_.B(_.se,{each:u},function(){return _.B("div",{class:"ytStoriesViewerViewModelProgressBar"},_.B("div",{class:"ytStoriesViewerViewModelProgress"}))})),_.B("div",{class:"ytStoriesViewerViewModelActionButtonsContainer"},_.B(_.V0,{data:f},{buttonViewModel:_.At})))},"Qh"),"yt-stories-viewer-view-model",{props:{data:_.zl}});_.Jf(_.ec(function(a){var z=a.data;var I=_.Mm("yt-gen-ai-feedback-form-view-model"),J=[];return _.B("yt-gen-ai-feedback-form-view-model",{el:I,class:"ytGenAiFeedbackFormViewModelHost"},_.B(_.xs,{text:function(){return z().title},
className:"ytGenAiFeedbackFormViewModelTitle"}),_.B("div",{class:"ytGenAiFeedbackFormViewModelChipsContainer"},_.B(_.V0,{data:function(){return z().feedbackChips}},{toggleButtonViewModel:function(r){var P=r.data;
return _.B(_.Wc,{data:P,className:"ytGenAiFeedbackFormViewModelFeedbackChip",onToggle:function(N){var u=P();u=_.H(u,_.My);u=_.H(u==null?void 0:u.defaultButtonViewModel,_.yw).trackingParams;N?J.push(u):(N=J.indexOf(u),N>-1&&J.splice(N,1))}})}})),_.B(_.xs,{text:function(){return z().disclaimer},
className:"ytGenAiFeedbackFormViewModelDisclaimer"}),_.B("div",{class:"ytGenAiFeedbackFormViewModelBottomButtonsContainer"},_.B(_.V0,{data:function(){return z().submitButton}},{buttonViewModel:function(r){return _.B(_.At,{data:r.data,
className:"ytGenAiFeedbackFormViewModelSubmitButton",onClick:function(){j50(I.value,J,z().uniqueId)}})}}),_.B(_.V0,{data:function(){return z().moreFeedbackButton}},{buttonViewModel:function(r){return _.B(_.At,{data:r.data,
className:"ytGenAiFeedbackFormViewModelMoreFeedbackButton"})}})))},"Rh"),"yt-gen-ai-feedback-form-view-model",{props:{data:_.zl},
unsafeExternallySettableAttributes:new Set(["tabindex"])});var l6=function(){return _.G.apply(this,arguments)||this};
_.b(l6,_.G);l6.prototype.created=function(){dh4(2200);this.ytPopupContainerBehavior.initPopupContainerBehavior(QkY);var a=_.ab().resolve(_.ZZE);a&&(a.container=this.ytPopupContainerBehavior);if(a=_.ab().resolve(_.T4))a.container=this.ytPopupContainerBehavior;if(a=_.ab().resolve(_.dP)){var z=this.ytPopupContainerBehavior;a.containerWasInjected?_.Xd(Error("ej")):a.container=z}};
l6.prototype.ensurePopupBelowPlayer=function(a,z){var I=_.ab().resolve(_.eL(_.aK));if(!I||!I.isOnWatch()||!_.zI())return!1;I=I.getCurrentPage().getPlayerContainer().getBoundingClientRect().bottom;_.bk().height>I+this.getPopupHeight(a,z)?(a.style.top="auto",a.style.bottom="0px"):(a.style.top=I+"px",a.style.bottom="auto");return!0};
l6.prototype.getPopupHeight=function(a,z){z&&(a.cachedPopupHeight=0);if(!a.cachedPopupHeight){z=0;var I=a.clientHeight,J=window.getComputedStyle(a);z+=parseInt(J.marginTop,10);z+=parseInt(J.marginBottom,10);a.cachedPopupHeight=I+z}return a.cachedPopupHeight};
l6.prototype.getElement=function(a){return document.createElement(a)};
_.L([_.Q(ICM.YtPopupContainerBehavior),_.p("design:type",Object)],l6.prototype,"ytPopupContainerBehavior",void 0);_.L([_.Q(_.Ms.YtComponentBehavior),_.p("design:type",Object)],l6.prototype,"ytComponentBehavior",void 0);_.L([_.U({disableElementRegistration:!0,is:"ytd-popup-container"})],l6);
_.D(l6,"ytd-popup-container",function(){if(kUe!==void 0)return kUe;var a=document.createElement("template");_.V(a,"\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-popup-container--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e");a.content.insertBefore(_.w().content.cloneNode(!0),a.content.firstChild);return kUe=a},{mode:1});var AOi;var sSG={};sSG.YtLogYpcFlowCommandsBehavior=[_.Hc.YtActionHandlerBehavior,{created:function(){this.logFlowCommandsMap_={"yt-log-ypc-flow-start-command":"handleLogYpcFlowStart_","yt-log-ypc-flow-dismiss-command":"handleLogYpcFlowDismiss_"}},
attached:function(){this.registerActionMap(this.logFlowCommandsMap_)},
detached:function(){this.unregisterActionMap(this.logFlowCommandsMap_)},
handleLogYpcFlowStart_:function(a){_.H(a,hRV)&&(a=_.H(a,hRV))&&(a.serializedTransactionFlowLoggingParams?_.GD3(a.serializedTransactionFlowLoggingParams):a.serializedYpcCancelFlowLoggingParams?(a=a.serializedYpcCancelFlowLoggingParams)&&_.Yn("ypcCancelFlowStarted","serializedYpcCancelFlowLoggingParams",a):a.serializedYpcResumeFlowLoggingParams?(a=a.serializedYpcResumeFlowLoggingParams)&&_.Yn("ypcResumeFlowStarted","serializedYpcResumeFlowLoggingParams",a):a.serializedYpcPauseFlowLoggingParams?(a=a.serializedYpcPauseFlowLoggingParams)&&
_.Yn("ypcPauseFlowStarted","serializedYpcPauseFlowLoggingParams",a):a.serializedYpcRefundFlowLoggingParams?(a=a.serializedYpcRefundFlowLoggingParams)&&ARi("YPC_EVENT_TYPE_START",a):a.serializedYpcDeactivateFlowLoggingParams?(a=a.serializedYpcDeactivateFlowLoggingParams)&&_.Yn("ypcDeactivateFlowStarted","serializedYpcDeactivateFlowLoggingParams",a):a.serializedYpcCancelFlowGoToPaymentProcessorLoggingParams&&(a=a.serializedYpcCancelFlowGoToPaymentProcessorLoggingParams)&&_.Yn("ypcCancelFlowGoToPaymentProcessor",
"serializedYpcCancelFlowGoToPaymentProcessorLoggingParams",a))},
handleLogYpcFlowDismiss_:function(a){_.H(a,b_Z)&&(a=_.H(a,b_Z),a.serializedTransactionFlowLoggingParams?_.$n3(a.serializedTransactionFlowLoggingParams):a.serializedYpcCancelFlowLoggingParams?(a=a.serializedYpcCancelFlowLoggingParams)&&_.Yn("ypcCancelFlowCancelled","serializedYpcCancelFlowLoggingParams",a):a.serializedYpcResumeFlowLoggingParams?(a=a.serializedYpcResumeFlowLoggingParams)&&_.Yn("ypcResumeFlowCancelled","serializedYpcResumeFlowLoggingParams",a):a.serializedYpcPauseFlowLoggingParams?(a=
a.serializedYpcPauseFlowLoggingParams)&&_.Yn("ypcPauseFlowCancelled","serializedYpcPauseFlowLoggingParams",a):a.serializedYpcRefundFlowLoggingParams&&(a=a.serializedYpcRefundFlowLoggingParams)&&ARi("YPC_EVENT_TYPE_CANCEL",a))}}];var nDV={};nDV.YtCancelRecurrenceBehavior=[_.Ms.YtComponentBehavior,_.Uzw,{attached:function(){var a=this;sde(this,function(z,I){return a.ypcCancelRecurrenceHandler(z,I)})},
ypcCancelRecurrenceHandler:function(a,z){var I=this;if(!z||!z.ypcCancelRecurrenceEndpoint)return!1;if(!z.ypcCancelRecurrenceEndpoint.params)return _.oL(Error("zl")),!0;_.lm(this.hostElement);var J=_.w4.instance,r=_.ab().resolve(_.eL(_.Tr));J&&_.mf(J,z)?_.y7(J,z).then(function(P){I.ypcCancelRecurrenceSuccess_(a,z,{data:P})},function(P){I.ypcCancelRecurrenceFailure_(a,z,P)}).thenCatch(function(){_.oL(Error("Al"))}):r?r.requestDataForServiceEndpoint(z).then(function(P){I.ypcCancelRecurrenceSuccess_(a,
z,P)},function(P){I.ypcCancelRecurrenceFailure_(a,z,P)}).thenCatch(function(){_.oL(Error("Al"))}):_.oL(Error("Bl"));
return!0},
ypcCancelRecurrenceSuccess_:function(a,z,I){_.pc(this.hostElement);I.data||(I={data:I});I.data&&I.data.actions&&_.tR(this.hostElement,I.data.actions,this.hostElement);I.data.messageRenderer?nA0(z.ypcCancelRecurrenceEndpoint.serializedYpcCancelFlowLoggingParams):(z=z.ypcCancelRecurrenceEndpoint.serializedYpcCancelFlowLoggingParams)&&_.Yn("ypcCancelFlowSucceeded","serializedYpcCancelFlowLoggingParams",z);_.PA(a,"yt-service-request-completed",I)},
ypcCancelRecurrenceFailure_:function(a,z,I){_.pc(this.hostElement);nA0(z.ypcCancelRecurrenceEndpoint.serializedYpcCancelFlowLoggingParams);_.PA(a,"yt-service-request-error",{error:I,params:[a,z]})}}];var Kpe=function(a,z){_.aE.call(this,z)};
_.b(Kpe,js4);var FpM={};FpM.YtCompleteTransactionBehavior=[_.Ms.YtComponentBehavior,_.Uzw,{attached:function(){var a=this;sde(this,function(z,I){return a.ypcCompleteTransactionHandler(z,I)})},
completeTransaction:function(a,z){var I=this;z={payments_payload:window.btoa(z.integratorData),buybucket_params:a.data.buybucketParams,offer_params:a.data.offerParams};var J=_.ab().resolve(_.Tr),r=a.data.completeTransactionEndpoint,P=this.get("ypcCompleteTransactionEndpoint.actions",r);P&&_.tR(this.hostElement,P,this.hostElement);return(P=_.w4.instance)&&_.mf(P,r)?_.y7(P,r,z).then(function(N){return!N||(N==null?0:N.error)?(N=I.get("data.serializedTransactionFlowLoggingParams",a),_.xN(new n9("TRANSACTION_ERROR_TYPE_YPC_COMPLETE_TRANSACTION_RPC_FAILURE",
N))):{data:N}}).then(function(N){return I.handleCompleteTransactionSuccess_(N,a)},function(){return I.handleCompleteTransactionFailure_(a)}):J.requestDataForServiceEndpoint(r,z).then(function(N){return I.handleCompleteTransactionSuccess_(N,a)},function(){return I.handleCompleteTransactionFailure_(a)})},
handleCompleteTransactionSuccess_:function(a,z){a.data||(a={data:a});if(a.data.messageRenderer)return _.xN(new Kpe(a.data.messageRenderer));if(a.data.trackingParams){var I=_.TX(),J=_.XZ();I&&J&&_.Lt(I,J,_.VX(a.data.trackingParams))}z=this.get("data.serializedTransactionFlowLoggingParams",z);s_Z(z);return _.uI(a)},
handleCompleteTransactionFailure_:function(a){a=this.get("data.serializedTransactionFlowLoggingParams",a);_.kh("TRANSACTION_ERROR_TYPE_YPC_COMPLETE_TRANSACTION_RPC_FAILURE",a);return _.xN(new n9("TRANSACTION_ERROR_TYPE_YPC_COMPLETE_TRANSACTION_RPC_FAILURE",a))},
ypcCompleteTransactionHandler:function(a,z){var I=this;if(!z.ypcCompleteTransactionEndpoint)return!1;if(!z.ypcCompleteTransactionEndpoint.transactionParams)return _.oL(Error("Cl")),!0;z.ypcCompleteTransactionEndpoint&&z.ypcCompleteTransactionEndpoint.gtmData&&_.Ww(z.ypcCompleteTransactionEndpoint.gtmData);var J=_.ab().resolve(_.eL(_.Tr));if(J){_.lm(this.hostElement);var r=_.w4.instance;r&&_.mf(r,z)?_.y7(r,z).then(function(P){return!P||(P==null?0:P.error)?(P=I.get("ypcCompleteTransactionEndpoint.serializedTransactionFlowLoggingParams",
z),_.xN(new n9("TRANSACTION_ERROR_TYPE_YPC_COMPLETE_TRANSACTION_RPC_FAILURE",P))):{data:P}}).then(function(P){_.PA(a,"yt-service-request-completed");
I.ypcCompleteTransactionSuccess_(z,P)},function(){return I.ypcCompleteTransactionFailure_(z)}):J.requestDataForServiceEndpoint(z).then(function(P){_.PA(a,"yt-service-request-completed");
I.ypcCompleteTransactionSuccess_(z,P)},function(){return I.ypcCompleteTransactionFailure_(z)})}return!0},
ypcCompleteTransactionSuccess_:function(a,z){_.pc(this.hostElement);z.data||(z={data:z});_.ZF(this.hostElement,"yt-close-popup-action",["yt-loading-renderer"]);z.data.messageRenderer||z.data.ypcResponseCode==="YPC_RESPONSE_CODE_ERROR"?this.ypcCompleteTransactionFailure_(a):(_.Ww('{"event": "purchase", "eventParams" : {"purchaseStatus": "success"}}'),this.logTransactionEvent_("transactionFlowSucceeded",a));z.data.actions&&(a=TzE(z.data.actions),z=d3V(z.data.actions),a.length&&_.N$(this.hostElement,
a),z.length&&_.tR(this.hostElement,z,this.hostElement))},
ypcCompleteTransactionFailure_:function(a){_.pc(this.hostElement);_.ZF(this.hostElement,"yt-close-popup-action",["yt-loading-renderer"]);this.logTransactionEvent_("transactionFlowFailed",a,"TRANSACTION_ERROR_TYPE_YPC_COMPLETE_TRANSACTION_RPC_FAILURE")},
logTransactionEvent_:function(a,z,I){if(z=this.get("ypcCompleteTransactionEndpoint.serializedTransactionFlowLoggingParams",z))z={serializedTransactionFlowLoggingParams:z},I&&(z.errorType=I),_.x0(a,z),_.va()}}];var HqM={};HqM.YtEndpointHandlerWithYpcBehavior=[_.Uzw,_.Hc.YtActionHandlerBehavior,[{openWalletDialog:function(a,z,I,J,r,P,N){var u=this,E=_.kq();z=z.replace(/-/g,"+").replace(/_/g,"/");var O=_.Kt().get("hl");_.lr7(_.ji(_.M1),z,E.resolve,r,function(f){P&&P();E.reject(f)},O,function(f){return u.onServerBackendAnalyticEvent_(a,I,f)},this.onDialogClose_.bind(this),J,N);
return E.promise},
openFixFlowDialog:function(a,z,I,J){a=a.replace(/-/g,"+").replace(/_/g,"/");_.ji(_.M1).openFixFlowDialog(a,z,I,J)},
onDialogClose_:function(){_.ZF(this,"yt-wallet-dialog-closed")},
onServerBackendAnalyticEvent_:function(a,z,I){_.PA(a,"yt-commerce-action-init-done");z&&_.N$(this.hostElement,[z,{backend_analytics:I}])}}],
_.K_.YtOpenPopupBehavior,[{listeners:{"yt-service-request-completed":"onUpdateFopServiceRequestCompleted_"},onUpdateFopServiceRequestCompleted_:function(a,z){a=this.get("data.nativeFlowEndpoint",z);z=this.get("data.fallbackEndpoint",z);a?_.N$(this.hostElement,[a]):z&&_.PA(this.hostElement,"yt-navigate",{endpoint:z})}}],
nDV.YtCancelRecurrenceBehavior,FpM.YtCompleteTransactionBehavior,{listeners:{"yt-service-request-sent":"onServiceRequestSent_","yt-service-request-completed":"onGetCartServiceRequestCompleted_","yt-service-request-error":"onServiceRequestError_"},created:function(){this.buyFlowActionMap_={};this.ypcRegisterActionMapJobId_=0},
attached:function(){var a=this;sde(this,function(z,I,J){return a.handleYPCEndpoint(z,I,J)});
this.ypcRegisterActionMapJobId_=_.b9(_.GW,function(){a.registerActionMap(a.buyFlowActionMap_)})},
detached:function(){var a=this;_.GW.cancelJob(this.ypcRegisterActionMapJobId_);_.b9(_.GW,function(){a.unregisterActionMap(a.buyFlowActionMap_)})},
handleYPCEndpoint:function(a,z,I){var J=z.ypcGetCartEndpoint;if(J){_.$A("commerce_transaction");var r=J.gtmId;r&&_.dr(r);(J=J.gtmData)&&_.Ww(J)}return this.get("ypcGetCartEndpoint.prefetchConfig.ypcGetCartPrefetchResponseDataConfig.encryptedPurchaseParams",z)!=null?(this.handleYPCGetCartEndpointWithPrefetch_(a,z),!0):this.get("ypcFixInstrumentEndpoint.encryptedFixInstrumentParameters",z)!=null?(this.handleYPCFixInstrumentEndpoint_(a,z),!0):z.ypcPauseSubscriptionCommand?(tkE(this.hostElement,a,z,I),
!0):z.ypcResumeSubscriptionCommand?(B4f(this.hostElement,a,z),!0):z.getPaymentInstrumentsParamsCommand?(ZSY(this.hostElement,a,z),!0):z.ypcHandleTransactionEndpoint?(rf0(this.hostElement,a,z,I),!0):!1},
handleYPCGetCartEndpointWithPrefetch_:function(a,z){var I=this;_.Xz("ttcr",void 0,"commerce_transaction");z=z.ypcGetCartEndpoint;var J=z.prefetchConfig.ypcGetCartPrefetchResponseDataConfig,r=J.encryptedPurchaseParams,P=J.serializedTransactionFlowLoggingParams,N=J.serializedPaymentsClientParams,u=this.createGetCartResponseFromParams_(J,z.offerParams,P);this.changeButtonState(a,!0);_.QD(this.openWalletDialog(a,r,J.ypcLogWalletAnalyticDataEndpoint,P,function(){I.changeButtonState(a,!1)},function(){I.changeButtonState(a,
!1)},N).then(function(E){return I.handleBuyFlowCompleteCallback_(a,u,E)},function(){return I.handleOnLoadError(u)}).then(function(E){return void I.handlePostPurchaseSuccess_(a,u,E)},function(E){return void I.handlePostPurchaseError_(E)}),function(){I.changeButtonState(a,!1);
a instanceof Element&&_.PA(a,"yt-commerce-action-done")})},
createGetCartResponseFromParams_:function(a,z,I){var J=a.completeTransactionEndpoint,r=a.handleTransactionEndpoint;z={data:{offerParams:window.btoa(z),serializedTransactionFlowLoggingParams:I}};r?z.data.handleTransactionEndpoint=r:z.data.completeTransactionEndpoint=J;a.onCartDismissCommand&&(z.data.onCartDismissCommand=a.onCartDismissCommand);return z},
onGetCartServiceRequestCompleted_:function(a,z){var I=this,J=a.target;if(z&&z.data&&z.data.messageRenderer)_.pc(this.hostElement),this.handleMessageRenderer_(z.data.messageRenderer),this.changeButtonState(J,!1);else{var r=this.get("data.encryptedPurchaseParams",z),P=this.get("data.upgradeDialogRenderer.ypcUpgradeDialogRenderer",z),N=this.get("data.ypcLogWalletAnalyticDataEndpoint",z),u=this.get("data.serializedPaymentsClientParams",z),E=this.getLoggingParams_(z);if(E||r||P)a.stopPropagation(),_.Xz("ttcr",
void 0,"commerce_transaction"),r||_.pc(this.hostElement),this.changeButtonState(J,!1),P?_.ZF(this.hostElement,"yt-open-popup-action",[{openPopupAction:{popupType:_.Xw("openPopupConfig").popupTypeMap.ypcUpgradeDialogRenderer,popup:{ypcUpgradeDialogRenderer:P}}},this]):r&&(this.changeButtonState(J,!0),a=null,a=this.openWalletDialog(J,r,N,E,function(){_.pc(I.hostElement);I.changeButtonState(J,!1)},function(){_.pc(I.hostElement);
I.changeButtonState(J,!1)},u),_.QD(a.then(function(O){return I.handleBuyFlowCompleteCallback_(J,z,O)},function(){return I.handleOnLoadError(z)}).then(function(O){return I.handlePostPurchaseSuccess_(J,z,O)},function(O){return I.handlePostPurchaseError_(O)}),function(){I.changeButtonState(J,!1);
_.PA(J,"yt-commerce-action-done")}))}},
onServiceRequestSent_:function(a,z){z&&z.endpoint&&z.endpoint.ypcGetCartEndpoint&&!z.endpoint.ypcGetCartEndpoint.prefetchConfig&&(this.get("commandLifeCycleConfig.onStartCommand",z.endpoint.ypcGetCartEndpoint)&&_.tR(this.hostElement,[this.get("commandLifeCycleConfig.onStartCommand",z.endpoint.ypcGetCartEndpoint)],a.target),_.lm(this.hostElement),this.changeButtonState(a.target,!0))},
onServiceRequestError_:function(a,z){if(z&&z.params&&z.params.length){z=_.C(z.params);for(var I=z.next();!I.done;I=z.next())if((I=I.value)&&I.ypcGetCartEndpoint){this.get("commandLifeCycleConfig.onFailureCommand",I.ypcGetCartEndpoint)&&_.tR(this.hostElement,[this.get("commandLifeCycleConfig.onFailureCommand",I.ypcGetCartEndpoint)],a.target);_.pc(this.hostElement);this.changeButtonState(a.target,!1);break}}},
handleBuyFlowCompleteCallback_:function(a,z,I){var J=I.integratorData;return J==null||J===""||I.error!=null?(J=this.getLoggingParams_(z),String(I.error)==="-1"?(z.data.onCartDismissCommand&&_.tR(this.hostElement,[z.data.onCartDismissCommand],a),_.xN(new n9("TRANSACTION_ERROR_TYPE_YPC_BUYFLOW_COMPLETE_FAILURE",J,!0))):_.xN(new n9("TRANSACTION_ERROR_TYPE_YPC_BUYFLOW_COMPLETE_FAILURE",J))):z.data.handleTransactionEndpoint?PJi(this.hostElement,z.data.handleTransactionEndpoint,{payments_payload:J,funds_guarantee_callback_client_data:I.integratorClientCallbackData}):
this.completeTransaction(z,I)},
handlePostPurchaseSuccess_:function(a,z,I){z=I.data;var J=!1,r,P;if(z&&((r=z.command)==null?0:(P=r.commandExecutorCommand)==null?0:P.commands)){var N,u;r=(N=z.command)==null?void 0:(u=N.commandExecutorCommand)==null?void 0:u.commands;for(N=0;N<r.length;N++)if(_.H(r[N],_.KJw)){J=!0;break}}J||(z&&z.gtmDatas&&z.gtmDatas.length?_.Ww(z.gtmDatas[0]):_.Ww('{"event": "purchase", "eventParams" : {"purchaseStatus": "success"}}'));I.data&&I.data.actions&&(z=TzE(I.data.actions),I=d3V(I.data.actions),z.length&&
_.N$(this.hostElement,z),I.length&&_.tR(this.hostElement,I,a))},
handlePostPurchaseError_:function(a){a&&a.payload&&a.payload.isUserDismiss||_.Gx(Error("El"))},
handleOnLoadError:function(a){a=this.getLoggingParams_(a);return _.xN(new n9("TRANSACTION_ERROR_TYPE_LOAD_FAILURE",a))},
getLoggingParams_:function(a){return this.get("data.serializedTransactionFlowLoggingParams",a)},
handleMessageRenderer_:function(a){var z=_.v3(a,"renderer"),I=_.Xw("openPopupConfig");z==="confirmDialogRenderer"&&I&&_.ZF(this.hostElement,"yt-open-popup-action",[{openPopupAction:{popupType:I.popupTypeMap[z],popup:a}},this])},
handleYPCFixInstrumentEndpoint_:function(a,z){var I=this,J=z.ypcFixInstrumentEndpoint;z=J.encryptedFixInstrumentParameters;this.logFixFopEvent_(J,"FIX_FOP_EVENT_TYPE_START");this.changeButtonState(a,!0);this.openFixFlowDialog(z,function(r,P){I.onFixFlowCompleteCallback_(J,r,P)},function(){return I.changeButtonState(a,!1)},function(){I.changeButtonState(a,!1);
I.logFixFopEvent_(J,"FIX_FOP_EVENT_TYPE_FAILURE","FIX_FOP_ERROR_TYPE_LOAD_FAILURE")})},
onFixFlowCompleteCallback_:function(a,z,I){var J=_.DH("payments.business.integration.scenario.FixInstrument");if(z==J.IntegratorCallbackType.ON_COMPLETE){z="FIX_FOP_EVENT_TYPE_CANCEL";var r=null;I.error!=null?I.error!=J.OnCompleteCallbackError.USER_CANCELLED&&(_.tR(this.hostElement,[a.errorAction],this.hostElement),z="FIX_FOP_EVENT_TYPE_FAILURE",r="FIX_FOP_ERROR_TYPE_UNSPECIFIED"):(_.tR(this.hostElement,[a.successAction],this.hostElement),z="FIX_FOP_EVENT_TYPE_SUCCESS");_.tR(this.hostElement,[a.onFinishAction],
this.hostElement);this.logFixFopEvent_(a,z,r)}},
logFixFopEvent_:function(a,z,I){(a=a.serializedFixFopLoggingParams)?(z={eventType:z,serializedFixFopLoggingParams:a},I!=null&&(z.errorType=I),_.x0("fixFopFlow",z),_.va()):_.Gx(Error("Fl"))},
changeButtonState:function(a,z){_.K("enable_ypc_spinners")&&a&&(a.is==="yt-button-renderer"||a.is==="ytd-button-renderer")&&(a.disabled=z)}}];var bqf=function(a){this.JSC$32193_clientRoot=a;this.feedbackCollectorActionMap={"yt-help-dialog-requested":OSG,"yt-feedback-dialog-requested":gq4,"yt-signal-action-help":ft4,"yt-signal-action-send-feedback":Afz,"yt-send-feedback-action":nqi,"yt-user-feedback-endpoint":Kfi};_.m_(_.w2.getInstance(),this.feedbackCollectorActionMap,this.JSC$32193_clientRoot)},h4V;var VAz=function(a){this.JSC$32198_clientRoot=a;this.downloadManagerActionMap={"yt-signal-action-delete-all-downloads-prompt":FfZ.bind(null,this.JSC$32198_clientRoot),"yt-signal-action-delete-all-downloads":bSz,"yt-signal-action-delete-download":hhY,"yt-signal-action-delete-playlist-download":Q5E,"yt-signal-action-install-pwa":$KZ,"yt-signal-action-refresh-downloads":vqZ,"yt-offline-video-endpoint":T4Z,"yt-offline-playlist-endpoint":Wfz,"yt-update-local-app-setting-command":UK0,"yt-offline-orchestration-action-command":Rhi,
"yt-signal-action-undo-delete-download":iSe,"yt-local-watch-history-command":p8G};_.m_(_.w2.getInstance(),this.downloadManagerActionMap,this.JSC$32198_clientRoot);_.Gr.instance=new _.Gr},QS0;var ps=function(){var a=_.G.apply(this,arguments)||this;a.actionMap={"yt-get-mdx-status":"handleGetMdxStatus_","yt-add-to-remote-queue-action":"handleAddToQueueAction_","yt-clear-remote-queue-action":"handleClearQueueAction_","yt-insert-in-remote-queue-action":"handleInsertInQueueAction_","yt-remove-from-remote-queue-action":"handleRemoveFromQueueAction_"};a.remoteApi_=null;return a};
_.b(ps,_.G);_.Z=ps.prototype;
_.Z.ready=function(){_.K("polymer_enable_mdx")&&(S3E({device:"Desktop",app:"youtube-desktop",appId:this.appId,loadCastApiSetupScript:_.K("mdx_load_cast_api_bootstrap_script"),enableDialLoungeToken:_.K("enable_dial_short_lived_lounge_token"),enableCastLoungeToken:_.K("enable_cast_short_lived_lounge_token")}),_.ZR("yt-remote-connection-change",this.handleConnectionChange_,this),_.ZR("yt-remote-receiver-availability-change",this.handleReceiverAvailabilityChange_,this),(this.remoteApi_=TPf())&&this.remoteApi_.subscribe("remoteQueueChange",
this.handleRemoteQueueChange_,this))};
_.Z.handleGetMdxStatus_=function(){return{connected:this.mdxConnected,receiverAvailable:this.receiverAvailable,receiverName:this.receiverName}};
_.Z.handleConnectionChange_=function(a){(this.mdxConnected=a)?(a=vaZ(),!a&&niZ()&&KZG()&&(a={key:"cast-selector-receiver",name:KZG()}),a=a.name):a=null;this.receiverName=a;_.Y8(this.remoteApi_);(this.remoteApi_=TPf())&&this.remoteApi_.subscribe("remoteQueueChange",this.handleRemoteQueueChange_,this)};
_.Z.handleReceiverAvailabilityChange_=function(){var a=xUV();niZ()&&_.nN("yt-remote-cast-available")&&a.push({key:"cast-selector-receiver",name:"Cast..."});this.receiverAvailable=a.length>0};
_.Z.handleRemoteQueueChange_=function(){var a=this.currentVideoId_,z=this.currentListId_,I=VN(this.remoteApi_);this.currentVideoId_=I.videoId;this.currentListId_=I.listId;this.currentVideoId_&&_.ZF(this.hostElement,"yt-sync-with-remote-video",[this.currentVideoId_,_.K("polymer_enable_mdx_queue")?this.currentListId_:null,a,z])};
_.Z.handleAddToQueueAction_=function(a){a=_.H(a,Z_Z);this.remoteApi_&&(a.videoId?this.remoteApi_.addVideo(a.videoId):a.playlistId&&this.remoteApi_.addPlaylist(a.playlistId))};
_.Z.handleClearQueueAction_=function(){this.remoteApi_&&this.remoteApi_.clearPlaylist()};
_.Z.handleInsertInQueueAction_=function(a){a=_.H(a,C4G);this.remoteApi_&&a.videoId&&this.remoteApi_.JSC$19661_insertVideo(a.videoId)};
_.Z.handleRemoveFromQueueAction_=function(a){a=_.H(a,N7z);this.remoteApi_&&a.videoId&&this.remoteApi_.JSC$19661_removeVideo(a.videoId)};
_.L([_.Q(_.Hc.YtActionHandlerBehavior),_.p("design:type",Object)],ps.prototype,"ytActionHandlerBehavior",void 0);_.L([_.x(),_.p("design:type",Object)],ps.prototype,"appId",void 0);_.L([_.x(),_.p("design:type",Boolean)],ps.prototype,"mdxConnected",void 0);_.L([_.x(),_.p("design:type",Boolean)],ps.prototype,"receiverAvailable",void 0);_.L([_.x(),_.p("design:type",Object)],ps.prototype,"receiverName",void 0);_.L([_.x(),_.p("design:type",Object)],ps.prototype,"currentVideoId_",void 0);
_.L([_.x(),_.p("design:type",Object)],ps.prototype,"currentListId_",void 0);_.L([_.dz({is:"yt-mdx-manager",disableElementRegistration:!0})],ps);_.D(ps,"yt-mdx-manager",void 0,{mode:2});var SVE;var iqZ;var w5=function(){var a=_.G.apply(this,arguments)||this;a.APP_IDS={ytr:3,ytm:5};a.JSC$20884_timeoutId_=0;a.actionMap={"yt-open-create-family-dialog":"open"};return a};
_.b(w5,_.G);_.Z=w5.prototype;_.Z.created=function(){dh4(2200)};
_.Z.detached=function(){this.observer_&&this.observer_.disconnect()};
_.Z.open=function(a,z){var I=this,J=a.serializedYpcFamilyCreateLoggingParams;this.JSC$20884_timeoutId_=setTimeout(this.abort_.bind(this,a.postFlowErrorEndpoint,J),3E4);z&&(this.onReadyCallback_=z);var r=_.PK(this.hostElement).querySelector("#unicorn-iframe");J&&J&&fF0("ypcFamilyCreateFlowStarted",J);_.OeO("family_creation",function(){var P=_.DH("gapi.family_creation.render");_.DH("gapi.config.update")("iframes/family_creation/url",I.getFamilyCreationUrlWithUnicornParams_());var N=3;a.appId&&a.appId in
I.APP_IDS&&(N=I.APP_IDS[a.appId]);N={authUser:_.Xw("SESSION_INDEX")||0,clientId:N,darkmode:document.documentElement.hasAttribute("dark")?1:0,hl:_.Xw("HL"),initialflow:[4,5,6,7],m:I.isMobile?1:0,onFlowComplete:I.onUnicornFlowComplete_.bind(I,a.postFlowSuccessEndpoint,J),onError:I.onUnicornFlowError_.bind(I,a.postFlowErrorEndpoint,J),onReady:I.onUnicornFlowReady_.bind(I,a.referencePcidParams)};P(r,N)})};
_.Z.close=function(){_.PK(this.hostElement).querySelector("#dialog").close();this.observer_&&this.observer_.disconnect()};
_.Z.onUnicornFlowComplete_=function(a,z){this.close();z&&z&&fF0("ypcFamilyCreateFlowSucceeded",z);_.PA(this.hostElement,"yt-navigate",{endpoint:a})};
_.Z.onUnicornFlowError_=function(a,z){this.close();z&&fF0("ypcFamilyCreateFlowCancelled",z);_.PA(this.hostElement,"yt-navigate",{endpoint:a})};
_.Z.onUnicornFlowReady_=function(a){var z=this;this.clearTimeout_();if(this.onReadyCallback_)this.onReadyCallback_();a&&_.DH("gapi.family_creation.setConfig")(0,a);this.observer_=new MutationObserver(function(){_.PK(z.hostElement).querySelector("#dialog").fit()});
this.observer_.observe(_.PK(this.hostElement).querySelector("#unicorn-iframe").querySelector("iframe"),{atttributes:!0,attributeFilter:["style"]});_.PK(this.hostElement).querySelector("#dialog").open()};
_.Z.getFamilyCreationUrlWithUnicornParams_=function(){return _.Xw("YTR_FAMILY_CREATION_URL")};
_.Z.getCurrentUrl_=function(){return document.location.href};
_.Z.abort_=function(a,z){this.clearTimeout_();this.onUnicornFlowError_(a,z)};
_.Z.clearTimeout_=function(){clearTimeout(this.JSC$20884_timeoutId_)};
_.L([_.Q(_.Hc.YtActionHandlerBehavior),_.p("design:type",Object)],w5.prototype,"ytActionHandlerBehavior",void 0);_.L([_.x({reflectToAttribute:!0}),_.p("design:type",Boolean)],w5.prototype,"isMobile",void 0);_.L([_.x(),_.p("design:type",Object)],w5.prototype,"onReadyCallback_",void 0);_.L([_.x(),_.p("design:type",Object)],w5.prototype,"observer_",void 0);_.L([_.dz({is:"yt-create-family-dialog",disableElementRegistration:!0})],w5);
_.D(w5,"yt-create-family-dialog",function(){if(iqZ===void 0){var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-create-family-dialog--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.ypc.yt_create_family_dialog.yt.create.family.dialog.css.js--\x3e<tp-yt-paper-dialog id="dialog" with-backdrop="" class="style-scope yt-create-family-dialog">\n  <div id="unicorn-iframe" class="style-scope yt-create-family-dialog"></div>\n</tp-yt-paper-dialog>\n');
a.content.insertBefore(_.w().content.cloneNode(!0),a.content.firstChild);var z=a.content,I=z.insertBefore;SVE===void 0&&(SVE=document.createElement("template"));var J=SVE;I.call(z,J.content.cloneNode(!0),a.content.firstChild);iqZ=a}a=iqZ;return a},{mode:2});var xzE;var vDE;var mE=function(){var a=_.G.apply(this,arguments)||this;a.STEP=1;a.BLOCK_ON=80;a.MIN_PROGESS=0;a.MAX_PROGESS=100;return a};
_.b(mE,_.G);_.Z=mE.prototype;_.Z.created=function(){this.boundNextProgress_=this.nextProgress_.bind(this)};
_.Z.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));_.ab().addProvider({provide:tnE,useValue:this})};
_.Z.start=function(){this.progress=this.MIN_PROGESS;this.hostElement.hidden=!1;window.requestAnimationFrame(this.boundNextProgress_)};
_.Z.finish=function(){var a=this;this.progress=this.MAX_PROGESS;w8Z(function(){a.progress==a.MAX_PROGESS&&(a.hostElement.hidden=!0)})};
_.Z.nextProgress_=function(){this.progress>=this.BLOCK_ON||(this.progress+=this.STEP,window.requestAnimationFrame(this.boundNextProgress_))};
_.eH.Object.defineProperties(mE.prototype,{progress:{configurable:!0,enumerable:!0,set:function(a){this.progress_=a;var z="scaleX("+a/this.MAX_PROGESS+")",I=_.PK(this.hostElement).querySelector("#progress").style;I.transform=z;I.webkitTransform=z;this.hostElement.setAttribute("aria-valuenow",String(a))},
get:function(){return this.progress_}}});
_.L([_.Q(_.Ms.YtComponentBehavior),_.p("design:type",Object)],mE.prototype,"ytComponentBehavior",void 0);_.L([_.dz({is:"yt-page-navigation-progress",disableElementRegistration:!0})],mE);
_.D(mE,"yt-page-navigation-progress",function(){if(vDE===void 0){var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-page-navigation-progress--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.yt_page_navigation_progress.yt.page.navigation.progress.css.js--\x3e<div id="progress" class="style-scope yt-page-navigation-progress"></div>\n');a.content.insertBefore(_.w().content.cloneNode(!0),
a.content.firstChild);var z=a.content,I=z.insertBefore;xzE===void 0&&(xzE=document.createElement("template"));var J=xzE;I.call(z,J.content.cloneNode(!0),a.content.firstChild);vDE=a}a=vDE;return a},{mode:2});var GFZ={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"},$zZ={"font-size":"12px","font-style":"italic"},X2E={padding:"8px 0","font-size":"14px","font-weight":"bold",color:"#f00"};_.Mki=function(){return _.t(function(a){_.nu(a)})};var TAE=_.ec(function(a){var z=function(){return a.data().subtext},I={};
return _.B("snackbar-view-model",{class:_.B8("snackbarViewModelHost",a.className)},_.B("div",{class:_.B8("snackbarViewModelEngagementBarWrapper",a.className)},_.B(_.g,{cond:function(){return a.data().image},
then:function(J){return _.B(_.qp,{data:J,alt:"",targetHeight:48,targetWidth:86,preserveHeight:!0,preserveWidth:!0,className:"snackbarViewModelImageContainer"})}}),_.B(_.g,{cond:function(){return a.data().imageContent},
then:function(){return _.B("div",{class:"snackbarViewModelAvatarContainer"},_.B(_.V0,{data:function(){return a.data().imageContent}},{decoratedAvatarViewModel:_.Uj}))}}),_.B("div",{class:"snackbarViewModelTitleSubtextWrapper"},_.B("div",{class:_.B8((I.snackbarViewModelTitle=!0,I.snackbarViewModelTitleWithSubtext=z,I))},_.B(_.xs,{text:function(){return a.data().text}})),_.B(_.g,{cond:z,
then:function(){return _.B("div",{class:"snackbarViewModelSubtext"},_.B(_.xs,{text:function(){return z()}}))}})),_.B(_.g,{cond:function(){return a.data().buttons},
then:function(){return _.B("div",{class:"snackbarViewModelButtonClassWrapper"},_.B(_.V0,{data:function(){return a.data().buttons}},{buttonViewModel:function(J){return _.B(_.At,{data:J.data,
buttonOverrides:function(){return{style:"mono-inverse"}},
target:a.target})}}))}})))},"Sh");_.Jf(_.ec(function(){function a(l,q,m){h(l);d(m);n("in");f(!0);z(l,q);N=setTimeout(function(){I()},q)}
function z(l,q){var m,M=(m=l.text)==null?void 0:m.content;l=_.Wn(l.rendererContext);M&&(q={label:M,command:l,durationMs:q},_.ab().resolve(_.xn).enqueue(q))}
function I(l){n("out");l&&clearTimeout(N)}
function J(){I(!0)}
function r(l){if(l){var q=l.snackbarViewModel,m=l.durationMs,M=l.target;m||(m=3E3);q&&(l=_.ab().resolve(_.eL(_.hs)))&&l.enqueue({isOpened:O,open:function(){a(q,m,M)},
close:I},0)}}
var P=_.ca("snackbar-container"),N=void 0,u=_.C(_.CW(!1,void 0,"jJ4tBf")),E=u.next().value;u=u.next().value;var O=E,f=u;E=_.C(_.CW("out",void 0,"M6Rbpb"));var A=E.next().value,n=E.next().value;E=_.C(_.CW(void 0,void 0,"aFswib"));var F=E.next().value,h=E.next().value;E=_.C(_.CW(void 0,void 0,"mlWWhb"));var v=E.next().value,d=E.next().value,W=_.g4(function(){if(A()==="out"){f(!1);h(void 0);d(void 0);var l=_.ab().resolve(_.eL(_.hs));l&&k0V(l,0)}});
_.QO(function(){var l=_.ab().resolve(_.eL(_.XpM));l&&(l.showSnackbarFn=r,l.closeSnackbarFn=J)});
return _.B("snackbar-container",{class:"ytSnackbarContainerHost",el:P},_.B(_.g,{cond:function(){return O()&&!!F()},
then:function(){var l={};return _.B("div",{class:_.B8("ytSnackbarContainerSnackbarContainer",(l.ytSnackbarContainerMobile=!1,l.ytSnackbarContainerPivotBar=function(){var q;return!((q=_.ab().resolve(_.eL(_.T$Y)))==null||!q())},l.ytSnackbarContainerOpened=function(){return O()&&A()==="in"},l.ytSnackbarContainerClosed=function(){return O()&&A()==="out"},l)),
"on:animationend":W},_.B(TAE,{data:function(){return F()},
target:function(){return v()}}))}}))},"Th"),"snackbar-container");_.Jf(_.UBJ,"yt-tooltip");_.Jf(_.ec(function(){var a=_.o5(_.E5M);return _.B("yt-ephemeral-actions",{class:"ytEphemeralActionsHost","aria-live":"polite","aria-atomic":"true"},function(){var z;return(z=a())==null?void 0:z.announcement})},"Uh"),"yt-ephemeral-actions");var BiE=new Map;var cGi=function(a,z){var I=this;this.handleError=a;this.logEventInternal=z;this.hasUnloaded=!1;self.document===void 0||self.addEventListener("beforeunload",function(){I.hasUnloaded=!0});
this.shouldLogTransactionEndedThisSession=Math.random()<=.2};
cGi.prototype.logError=function(a){this.handleError(a)};
cGi.prototype.logEvent=function(a,z){switch(a){case "IDB_DATA_CORRUPTED":_.K("idb_data_corrupted_killswitch")||this.logEventInternal("idbDataCorrupted",z);break;case "IDB_UNEXPECTEDLY_CLOSED":this.logEventInternal("idbUnexpectedlyClosed",z);break;case "IS_SUPPORTED_COMPLETED":_.K("idb_is_supported_completed_killswitch")||this.logEventInternal("idbIsSupportedCompleted",z);break;case "QUOTA_EXCEEDED":dze(this,z);break;case "TRANSACTION_ENDED":this.shouldLogTransactionEndedThisSession&&Math.random()<=
.1&&this.logEventInternal("idbTransactionEnded",z);break;case "TRANSACTION_UNEXPECTEDLY_ABORTED":a=Object.assign({},z,{hasWindowUnloaded:this.hasUnloaded}),this.logEventInternal("idbTransactionAborted",a)}};
var dze=function(a,z){_.$n.getInstance().estimate().then(function(I){I=Object.assign({},z,{isSw:self.document===void 0,isIframe:self!==self.top,deviceStorageUsageMbytes:OUM(I==null?void 0:I.usage),deviceStorageQuotaMbytes:OUM(I==null?void 0:I.quota)});a.logEventInternal("idbQuotaExceeded",I)})};var Wp0=_.ec(function(a){var z=_.Mm("yt-draggable"),I=a.onDrag,J=a.onDragStart,r=a.onDragEnd,P=_.q3(a,{allowClicks:!1,dragThreshold:5}),N=P.dragThreshold,u=P.allowClicks;a=P.children;P=P.className;var E=void 0,O=void 0,f=new _.GB(0,0),A=!1;_.QO(function(){E=new _.U5(z.value);O=new _.zX(F);n(E,O);if(u()){_.CPO(E,N());var v;(v=z.value)==null||v.addEventListener("click",h,{capture:!0})}_.V3(function(){var d;(d=E)==null||d.dispose();if(u()){var W;(W=z.value)==null||W.removeEventListener("click",h,{capture:!0})}})});
var n=function(v,d){_.Sg(v,"earlycancel",function(){u()&&(A=!1)});
_.Sg(v,"start",function(W){J==null||J(W);W.defaultPrevented||u()&&(A=!0)});
_.Sg(v,"beforedrag",function(W){E&&O&&(W.preventDefault(),f=new _.GB(W.clientX-E.startX,W.clientY-E.startY),O.start())});
_.Sg(v,"end",function(){d.stop();r==null||r();f=new _.GB(0,0)})},F=function(){f&&I(f)},h=function(v){A&&(A=!1,v.stopPropagation(),v.preventDefault())};
return _.B("yt-draggable",{el:z,class:_.B8("ytDraggableComponentHost",P)},a)},"Vh");var oDY=_.ec(function(a){var z=_.C(_.CW(0,void 0,"CvAwBd")),I=z.next().value,J=z.next().value;z=function(r){var P={},N={};return _.B(Wp0,{className:_.B8("ytdMiniplayerComponentResizer",(P.ytdMiniplayerComponentResizerDisabled=function(){return r===a.horizontalAlignment()||r===a.verticalAlignment()},P.ytdMiniplayerComponentResizerNorth=r==="north",P.ytdMiniplayerComponentResizerEast=r==="east",P.ytdMiniplayerComponentResizerSouth=r==="south",P.ytdMiniplayerComponentResizerWest=r==="west",P)),
onDragStart:function(){J(a.currentMiniplayerSize());if(a.onResizeStart)a.onResizeStart()},
onDrag:function(u){r!=="north"&&r!=="west"||u.scale(-1);var E;u=(E=r==="north"||r==="south")?u.y:u.x;var O=a.currentAspectRatio();E&&O>=1?u*=O:!E&&O<1&&(u/=O);E=u;a.onResize(I()+E)}},_.B("div",{class:_.B8("ytdMiniplayerComponentResizerCorner",(N.ytdMiniplayerComponentResizerNorthCorner=r==="north",N.ytdMiniplayerComponentResizerEastCorner=r==="east",N.ytdMiniplayerComponentResizerSouthCorner=r==="south",N.ytdMiniplayerComponentResizerWestCorner=r==="west",N))}))};
return _.B("div",{class:"ytdMiniplayerComponentResizers"},z("north"),z("east"),z("south"),z("west"))},"Wh");var Uz0=16/9;_.Jf(_.ec(function(){var a=_.Mm("ytd-miniplayer"),z=_.C(_.CW(new _.fB(NaN,NaN),void 0,"GNXZTe")),I=z.next().value,J=z.next().value;z=_.C(_.CW(!1,void 0,"XqI9xc"));var r=z.next().value,P=z.next().value;z=_.C(_.CW(!1,void 0,"k3iLGe"));var N=z.next().value,u=z.next().value;z=_.C(_.CW(!1,void 0,"ApjQ9b"));var E=z.next().value,O=z.next().value;z=_.C(_.CW(!1,void 0,"PzlhGe"));var f=z.next().value,A=z.next().value;z=_.C(_.CW(!1,void 0,"pm6fl"));var n=z.next().value,F=z.next().value;z=_.C(_.CW(!1,void 0,
"xQrL1e"));var h=z.next().value,v=z.next().value;z=_.C(_.CW(Uz0,void 0,"NcrWZb"));var d=z.next().value,W=z.next().value,l=_.C(_.CW(!1,void 0,"e5rxBc"));z=l.next().value;var q=l.next().value;l=_.C(_.CW(!1,void 0,"uZtCde"));var m=l.next().value,M=l.next().value;l=_.C(_.CW(void 0,void 0,"wKFvEe"));var y=l.next().value,e=l.next().value;l=_.C(_.CW(_.Xw("HTML_DIR")==="rtl"?"west":"east",void 0,"FF7oMe"));var Bp=l.next().value,Em=l.next().value;l=_.C(_.CW("south",void 0,"QXcssb"));var nG=l.next().value,
bG=l.next().value;l=_.C(_.CW(400,void 0,"Fr8gSb"));var Hp=l.next().value,LG=l.next().value,oE=_.ab().resolve(_.UJ).miniplayerPropSignalMap[0],Pe=oE.data,TJ=oE.externalPlaylistData;l=oE.toastData;var Be=oE.playabilityStatus,eM=oE.isReadyToResume,Ao=oE.isDisabled,gf=oE.watchWhile,GJ=oE.playerVe,Sf=oE.expandVe,ce=oE.closeVe,r$=oE.readyToResumeVe,aw=oE.readyToResumeCloseVe,Kl=oE.repositionVe,EG=oE.resizeVe;oE=_.C(_.Af(eM));var F1=oE.next().value,jf=oE.next().value,zj=!1,aZ=!1,Cl;_.QO(function(){J(_.bk());
a.value.addEventListener("animationend",function(Ll){Ll.target===a.value&&(F(!1),v(!1))});
FYZ(a.value)});
_.k0("yt-window-resized",function(Ll){Ll&&J(Ll)});
var kG=function(){Cl&&W(Cl.getVideoAspectRatio())},sG=function(){if(Cl){var Ll=Cl.getPlayerState()===1;
F1()&&Ll&&jf(!1)}},SI=function(){var Ll=Sf();
if(Ll){var dE=_.TX(3);dE&&_.ys(dE,Ll)}},iw=function(){var Ll=ce(),dE=aw();
Ll&&_.ys(_.TX(3),Ll);eM()&&dE&&_.ys(_.TX(3),dE)};
_.k0("yt-activate-miniplayer",function(Ll){var dE;return _.t(function(wE){if(wE.nextAddress==1)return r()?wE.return():wE.yield((dE=_.ab().resolve(_.UJ).getPlayerElement())==null?void 0:dE.getPlayerPromise(),2);Cl=wE.yieldResult;if(!Cl)return wE.return();!m()&&_.K("kevlar_watch_while_v2")&&(bG(Ll&&!_.K("kevlar_watch_while_bottom_align")?"north":"south"),Em(_.Xw("HTML_DIR")==="rtl"?"west":"east"));var NL=Cl;NL.addEventListener("onVideoDataChange",kG);NL.addEventListener("onStateChange",sG);NL.addEventListener("onExpandMiniplayer",
SI);NL.addEventListener("onCloseMiniplayer",iw);W(Cl.getVideoAspectRatio());P(!0);KY0()||F(!0);_.nu(wE)})});
_.k0("yt-deactivate-miniplayer",function(Ll){return _.t(function(dE){if(!r())return dE.return();P(!1);jf(!1);v(Ll);A(!1);u(!1);if(Cl){var wE=Cl;wE.removeEventListener("onVideoDataChange",kG);wE.removeEventListener("onStateChange",sG);wE.removeEventListener("onExpandMiniplayer",SI);wE.removeEventListener("onCloseMiniplayer",iw)}KY0()||F(!0);_.nu(dE)})});
var H4=function(){return!(gf()&&_.K("kevlar_watch_while_modern"))},ty=function(){var Ll;
return!((Ll=TJ())==null||!Ll.contents)},fZ=function(){var Ll=Hp();
var dE=I();dE=Math.min(Math.min(dE.width,dE.height)-32,720);var wE=d(),NL=H4(),SL=ty()&&N(),ed=Math.min(Ll,dE);Ll=new _.fB(192,NL?116:192);wE=new _.fB(SL?Uz0:wE,1);ed=new _.fB(ed,NL?ed-76:ed);ed=wE.aspectRatio()>ed.aspectRatio()?ed.width/wE.width:ed.height/wE.height;wE=wE.scale(ed);Ll.width<=wE.width&&Ll.height<=wE.height||(Ll=wE.aspectRatio()<=Ll.aspectRatio()?Ll.width/wE.width:Ll.height/wE.height,wE.scale(Ll),wE.width=Math.min(wE.width,dE),wE.height=Math.min(wE.height,dE));return new _.fB(wE.width,
_.TO(192,wE.height+Vrz(NL,SL),720))},ST=function(){var Ll=fZ(),dE=H4(),wE=ty()&&N();
return new _.fB(Ll.width,Ll.height-Vrz(dE,wE))},K6=function(){var Ll=function(dE){dE.target===a.value&&f()&&(A(!1),a.value.removeEventListener("transitionend",Ll))};
KY0()||(a.value.addEventListener("transitionend",Ll),A(!0));u(!N())};
_.h2(function(){var Ll=GJ(),dE=_.TX(3),wE=_.XZ(3);if(dE&&wE&&Ll){_.Lt(dE,wE,Ll);wE=Kl();var NL=EG(),SL=Sf(),ed=ce(),HL=aw();SL&&ed&&HL&&(_.lI(dE,Ll,[SL,ed,HL]),_.we(dE,[SL,ed]));wE&&NL&&_.lI(dE,Ll,[wE,NL])}},"Snz6Ld");
_.h2(function(){var Ll=r$();if(Ll){var dE=_.TX(0),wE=_.XZ(0);dE&&wE&&(_.Lt(dE,wE,Ll),_.we(dE,[Ll]))}},"X1FpHd");
oE={};return _.B("ytd-miniplayer",{el:a,class:_.B8("ytdMiniplayerComponentHost",(oE.ytdMiniplayerComponentVisible=function(){return r()||n()},oE.ytdMiniplayerComponentAnimatingSnap=E,oE.ytdMiniplayerComponentAnimatingPlaylistExpand=f,oE.ytdMiniplayerComponentAnimatingFade=n,oE),function(){if(n()){var Ll=nG();
var dE=r(),wE=h();Ll=dE?Ll==="south"?"ytdMiniplayerComponentAnimatingFadeInSouth":"ytdMiniplayerComponentAnimatingFadeInNorth":wE?Ll==="south"?"ytdMiniplayerComponentAnimatingFadeOutNorth":"ytdMiniplayerComponentAnimatingFadeOutSouth":Ll==="south"?"ytdMiniplayerComponentAnimatingFadeOutSouth":"ytdMiniplayerComponentAnimatingFadeOutNorth"}else Ll="";return Ll}),
style:_.sW({top:function(){return nG()==="north"?"16px":""},
right:function(){return Bp()==="east"?"16px":""},
bottom:function(){return nG()==="south"?"16px":""},
left:function(){return Bp()==="west"?"16px":""},
width:function(){return fZ().width+"px"},
height:function(){return fZ().height+"px"},
transform:function(){var Ll=y();return Ll?"translate("+Ll.x+"px, "+Ll.y+"px)":""}})},_.B("div",{class:"ytdMiniplayerComponentContent"},_.B(Wp0,{allowClicks:!0,
className:"ytdMiniplayerComponentDraggable",onDragStart:function(Ll){var dE=hpz(Bp(),nG(),I(),fZ(),y()),wE=ST();Math.abs(Ll.clientY-(dE.y+wE.height))>15?(q(!0),Ll=_.TX(3),dE=Kl(),zj||(zj=!0,Ll&&dE&&_.we(Ll,[dE])),Ll&&dE&&_.ys(Ll,dE)):Ll.preventDefault()},
onDrag:function(Ll){e(Ll)},
onDragEnd:function(){var Ll=HUe(hpz(Bp(),nG(),I(),fZ(),y()),I(),fZ()),dE=bUf(Bp(),nG(),I(),fZ()),wE=bUf(Ll.horizontalAlignment,Ll.verticalAlignment,I(),fZ());wE=new _.GB(wE.x-dE.x,wE.y-dE.y);var NL;dE=dE.y+(((NL=y())==null?void 0:NL.y)||0)+fZ().height/2;var SL=function(){Bp()===Ll.horizontalAlignment&&nG()===Ll.verticalAlignment||M(!0);Em(Ll.horizontalAlignment);bG(Ll.verticalAlignment);e(void 0)},ed=function(HL){HL.target===a.value&&E()&&(O(!1),SL(),a.value.removeEventListener("transitionend",ed))};
q(!1);nG()==="south"&&dE>I().height?(SL(),_.ab().resolve(_.UJ).close()):(a.value.addEventListener("transitionend",ed),O(!0),e(wE))}},_.B(_.g,{cond:r,
then:function(){return _.B(_.wPE,{isDisabled:Ao,playabilityStatus:Be,size:ST})}}),_.B(_.g,{cond:H4,
then:function(){return _.B(_.lIY,{isReadyToResume:F1,data:Pe,expanded:N,onExpandClick:K6,playlistData:TJ})}}),_.B(_.g,{cond:z,
then:function(){return _.B("div",{class:"ytdMiniplayerComponentDraggableDragCover"})}})),_.B(_.g,{cond:function(){return ty()&&N()||f()},
then:function(){return _.B(_.pfw,{className:"ytdMiniplayerComponentPlaylistPanel",data:TJ,hideHeaderText:!0,withinMiniplayer:!0})}}),_.B("div",{class:"ytdMiniplayerComponentToast"},_.B(_.mRE,{toastData:l}))),_.B(oDY,{onResize:function(Ll){LG(_.TO(192,Ll,720))},
onResizeStart:function(){var Ll=_.TX(3),dE=EG();aZ||(aZ=!0,Ll&&dE&&_.we(Ll,[dE]));Ll&&dE&&_.ys(Ll,dE)},
currentAspectRatio:d,currentMiniplayerSize:Hp,horizontalAlignment:Bp,verticalAlignment:nG}))},"Xh"),"ytd-miniplayer",{});var yW=function(){var a=_.G.apply(this,arguments)||this;a.tabGesturesIsActive=!1;a.deprecateFullerscreenUi=_.K("web_watch_fullerscreen_deprecation_ui");a.hasDelegation=!1;a.darkerDarkTheme=_.K("web_darker_dark_theme");a.isFrostedGlassInitialized=!1;a.frostedGlassExp=_.K("web_frosted_glass");a.mastheadHiddenFocusWithinKillswitch=_.K("web_masthead_hidden_focus_within_killswitch");a.clientOnlyWizTooltipsEnabled=_.K("enable_client_only_wiz_tooltips")&&HTMLElement.prototype.hasOwnProperty("popover");a.scrollAtTop=
!0;a.guideScrollTop=0;a.isTheaterModeSession=_.TZ("START_IN_THEATER_MODE");a.iMaxTheaterMode=_.K("web_watch_imax_theater_mode");a.isFullWindowSession=_.TZ("START_IN_FULL_WINDOW_MODE");a.hasCreateFamilyDialog=!1;a.mastheadHeight=56;a.networkStatusManager=new _.wo;a.actionMap={"yt-command-executor-command":"handleCommandWithCommandHandler","yt-dark-mode-toggled-action":"onDarkModeToggledAction","yt-edu-dismiss-action":"handleEduDismissAction","yt-edu-impression-action":"handleEduImpressionAction","yt-navigate-action":"onYtNavigateAction",
"yt-navigate-home-action":"onYtNavigateHomeAction","yt-player-fullscreen":"onPlayerFullscreen","yt-register-create-family-dialog":"onYtRegisterCreateFamilyDialog","yt-select-country-command":"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"};a.dynamicActionMap={"yt-run-attestation-command":function(z){var I=_.xNl.instance,J=_.H(z,_.nBw);return J?_.K("use_rta_manager_for_async")&&
dri()?hkZ(I,J,z.clickTrackingParams):bcz(I,J,z.clickTrackingParams):_.xN(Error("mi"))}};
a.isFrostedGlassDisabled=!1;a.isChannelOrPlaylistPage=!1;return a};
_.b(yW,_.G);_.Z=yW.prototype;_.Z.created=function(){var a=_.ab();_.K("kevlar_clear_duplicate_pref_cookie")&&_.b9(_.GW,function(){var z=_.f1.get("PREF");z&&!/f\d=/.test(z)&&(z=_.rM("kevlar_duplicate_pref_cookie_domain_override"),document.cookie=z?"PREF=null;domain="+z+";expires=Thu, 01 Jan 1970 00:00:01 GMT":"PREF=null;domain=.www.youtube.com;expires=Thu, 01 Jan 1970 00:00:01 GMT")});
_.K("gzip_gel_with_worker")&&_.x33();_.K("jspb_serialize_with_worker")&&Pd4();_.K("web_worker_availability_check")&&gcZ();_.K("nwl_init_killswitch")||J$f().then(function(){_.GW.addLowPriorityJob(QQe)});
this.pageManagerAttachedPromise=_.kq();this.ytdAppBehavior.loadDepsPromise=_.VD([this.ytdAppBehavior.loadDepsPromise,this.pageManagerAttachedPromise.promise]);this.scrollThrottle=new _.kc(this.onThrottledScroll,200,this);_.K("external_fullscreen")&&(this.fullscreen=!1);this.boundOnTouchStart=this.onTouchStart.bind(this);YcE();eOE=!!_.DH("ytappsettings.initialized");iC=_.DH("ytappsettings.previousValue");XJe=_.DH("ytappsettings.previousSnapshotTime");eOE||(eOE=!0,TFE());$30();XKZ();_.$S("DEFERRED_DETACH",
_.K("kevlar_tuner_should_defer_detach"));_.$S("REUSE_COMPONENTS",!0);_.$S("STAMPER_STABLE_LIST",!0);_.$S("SCHEDULED_LAZY_LIST",!0);_.$S("openPopupConfig",Vn0);_.$S("useClickHandler",!0);_.K("kevlar_shell_cleanup")&&_.GW.addLowPriorityJob(LKf.bind(this,_.IE.caches));_.TZ("IS_SHELL_LOAD")&&_.Gb({shellStartupDurationMs:Math.round((0,_.jp)()-_.Qs())});eh0(this.networkStatusManager);_.K("kevlar_is_hiring")&&(console.log("%cYouTube.com is hiring!",mKi(GFZ)),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!",
mKi($zZ)),console.log("%cVisit http://go/join-youtube-web to apply today.",mKi(X2E)));_.de0(a.resolve(_.SO),1E3)};
_.Z.ready=function(){this.guide.addEventListener("transitionend",this.processDrawerIronSelect.bind(this));this.guideInnerContent.addEventListener("scroll",this.ytRendererBehavior.markDirty.bind(this));var a=f1z();a&&!_.K("external_fullscreen_killswitch")&&document.addEventListener(a,this.setFullscreen.bind(this));(a=window.matchMedia("(prefers-color-scheme: dark)"))&&a.addEventListener&&a.addEventListener("change",this.onDeviceThemeChanged.bind(this));this.onDeviceThemeChanged()};
_.Z.attached=function(){var a=this;_.yT().processSignal("ci");_.K("kevlar_passive_event_listeners")?this.hostElement.addEventListener("touchstart",this.boundOnTouchStart,_.$Nx?{passive:!0}:void 0):this.hostElement.addEventListener("touchstart",this.boundOnTouchStart);_.ug(_.dJM(),"SUCCESS");this.updateIconSet();_.I_(this.guideInnerContent,!1);_.Gc().initVisibilityObserver();this.guideService.guideElement=this.guide;var z=document.createElement("ytd-miniplayer"),I=_.PK(this.hostElement).querySelector("#content");
_.PK(this.hostElement).insertBefore(z,I);_.yT().processSignal("ma");_.ab().resolve(_.UJ).init(z);_.TZ("IS_SHELL_LOAD")&&(I=document.createElement("ytd-network-status-banner"),_.PK(this.hostElement).insertBefore(I,z));_.K("kevlar_right_click_on_lockups")&&_.y_._onCaptureClick&&document.addEventListener("contextmenu",_.y_._onCaptureClick.bind(_.y_),!0);var J=function(){var r=_.C_("yt-page-navigation-progress");_.PK(a.hostElement).appendChild(r)};
setTimeout(function(){_.yT().parkOrScheduleJob(J,0,"eocs",16)},0);
_.K("service_worker_push_enabled")&&_.b9(_.GW,Ot0);_.m_(_.w2.getInstance(),this.dynamicActionMap,this.hostElement);_.PA(this.hostElement,"ytd-app-attached");_.yT().processSignal("aa");$Zi(this.hostElement);_.qe("gapi.load",_.OeO);this.networkStatusManager.listen("publicytnetworkstatus-online",this.onlineHandler.bind(this));this.networkStatusManager.listen("publicytnetworkstatus-offline",this.offlineHandler.bind(this));this.networkStatusManager.isNetworkAvailable()||this.offlineHandler();_.b9(_.GW,
function(){var r=document.createElement("ytd-video-preview");_.PK(_.PK(a.hostElement).querySelector("#video-preview")).appendChild(r)});
this.updateIsInlinePreviewDisabled();this.scheduleFrostedGlassInitialization();_.b9(_.GW,function(){cfZ();a.registerWithViewTransitionManager()});
if(_.vh()&&this.isAppDarkTheme()!==_.ik())this.onDarkModeToggledAction();else z=_.xh()==="USER_INTERFACE_THEME_DARK",this.isAppDarkTheme()!==z&&(_.K("enable_dark_theme_only_on_shorts")?_.wY(_.K("enable_dark_theme_only_on_shorts_control")?window.location.href:_.ms(window.location.href,{theme:"dark"})):_.Xd(new _.Fn("Theme was not applied",this.getThemeSettingsToLog()))),this.standalone||(xnV=new iOE(this.hostElement)),QS0=new VAz(this.hostElement),h4V=new bqf(this.hostElement),MnM=new kD0(this.hostElement)};
_.Z.getThemeSettingsToLog=function(){var a=_.xh()==="USER_INTERFACE_THEME_DARK";a=_.vh()?_.ik()?"os-dark":"os-light":a?"dark":"light";return{appTheme:this.isAppDarkTheme()?"dark":"light",prefsTheme:a,cookiesEnabled:_.sz()}};
_.Z.detached=function(){_.JR(this.guideInnerContent);_.GW.cancelJob(VQ);VQ=0;_.GW.cancelJob(SD);SD=0;_.lAG(GXf);GXf.length=0;iL0=_.u3G=null;_.Gc().dispose();_.K("kevlar_passive_event_listeners")&&this.hostElement.removeEventListener("touchstart",this.boundOnTouchStart);_.y4(_.w2.getInstance(),xnV.playlistHandlerActionMap,xnV.JSC$31893_clientRoot);_.y4(_.w2.getInstance(),QS0.downloadManagerActionMap,QS0.JSC$32198_clientRoot);_.y4(_.w2.getInstance(),h4V.feedbackCollectorActionMap,h4V.JSC$32193_clientRoot);
for(var a=_.C(MnM.eventListeners),z=a.next();!z.done;z=a.next()){var I=_.C(z.value);z=I.next().value;I=I.next().value;I=_.C(I);for(var J=I.next();!J.done;J=I.next()){var r=_.C(J.value);J=r.next().value;r=r.next().value;z.removeEventListener(J,r)}}_.y4(_.w2.getInstance(),MnM.autonavPauseActionMap,MnM.JSC$19842_clientRoot)};
_.Z.updateIsInlinePreviewDisabled=function(){this.isInlinePreviewDisabled=_.Kt().getFlag(186)};
_.Z.computeIsInlinePreviewEnabled=function(a,z,I){return!I&&_.G9G({miniplayerIsActive:a,miniplayerPlaybackState:z})};
_.Z.dispatchFrostedGlassMode=function(){this.ytdReduxBehavior.dispatch(_.rg({type:"SET_FROSTED_GLASS_MODE",payload:!_.K("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"}))};
_.Z.computeIsFrostedGlassDisabled=function(a,z,I,J){return a||z||I||J&&_.K("web_frosted_glass_disable_watch")};
_.Z.isWatchPageChanged=function(){this.getCurrentPageScrollableElementType()&&(_.K("web_watch_update_scroll_killswitch")||this.updateScrollAndMasthead(!(!this.isWatchPage||!this.fullscreen),!(!this.isMiniAppPage||!this.fullscreen),!(!this.isShortsPage||!this.fullscreen),this.isWatchPage&&this.isTheaterMode()))};
_.Z.computeIsHomePage=function(a,z){if(!a||z==null||!z.endpoint)return!1;var I;return((I=_.H(z.endpoint,_.KH))==null?void 0:I.browseId)==="FEwhat_to_watch"};
_.Z.updateIsChannelOrPlaylistPage=function(){if(_.K("web_frosted_glass")){var a,z,I=(z=(a=_.ab().resolve(_.eL(_.aK)))==null?void 0:a.getCurrentPage())==null?void 0:z.pageSubtype;this.isChannelOrPlaylistPage=I?["channel","channels","playlist"].includes(I):!1}};
_.Z.scheduleFrostedGlassInitialization=function(){var a=this;_.K("web_frosted_glass")&&_.yT().parkOrScheduleJob(function(){a.isFrostedGlassInitialized=!0},0,_.q7(["eocs",
"cr"]),300)};
_.Z.isInlinePreviewEnabledChanged=function(){this.ytdReduxBehavior.dispatch(_.O0o(this.isInlinePreviewEnabled));this.ytdReduxBehavior.dispatch(_.rg({type:"SET_SHARED_INLINE_PREVIEW_ENABLED",payload:this.isInlinePreviewEnabled}));this.ytdReduxBehavior.dispatch(_.rg({type:"SET_SHARED_ANIMATED_THUMBNAIL_ENABLED",payload:!this.isInlinePreviewDisabled}))};
_.Z.onlineHandler=function(){this.ytdReduxBehavior.store.dispatch(pqZ(!0))};
_.Z.onYtSignalActionRequestPersistentStorage=function(){if(!_.K("request_persistent_storage_killswitch")){var a=_.ab().resolve(_.HZM);a.cachedPersistStatePromise||(a.cachedPersistStatePromise=JIY())}};
_.Z.handleYtChannelCreationFormEndpoints=function(a){a&&this.ytComponentBehavior.resolveCommand(a)};
_.Z.handleShowEngagementPanelEndpoint=function(a){a&&this.ytComponentBehavior.resolveCommand(a)};
_.Z.offlineHandler=function(){this.ytdReduxBehavior.store.dispatch(pqZ(!1))};
_.Z.initIconDefs=function(a,z){var I=document.createElement("iron-iconset-svg");I.name=a;a=document.createElementNS("http://www.w3.org/2000/svg","svg");I.appendChild(a);a.appendChild(z);document.body.appendChild(I);return I};
_.Z.onWindowResized=function(){_.ZF(this.hostElement,"yt-close-popup-action",["yt-tooltip-renderer"]);var a=_.QMI.getInstance();a.documentWidth_=document.body.clientWidth;YN4(a)};
_.Z.onWindowScrolled=function(){var a=_.ab().resolve(_.aK).getCurrentPage();if(a!=null&&a.getScrollTop){var z=this.ytdReduxBehavior,I=z.dispatch;a=a.getScrollTop()<=0;I.call(z,_.rg({type:"SET_SCROLL_AT_TOP",payload:a}))}};
_.Z.guideIsVisibleButNotPersistentSelectorChanged=function(){var a=_.ab().resolve(_.aK).getCurrentPage();this.getCurrentPageScrollableElementType()==="HTML"&&this.guideIsVisibleButNotPersistent?(document.body.style.overflowY="scroll",this.guideScrollTop=a.getScrollTop(),document.body.classList.add("lock-scrollbar"),document.body.style.top="-"+this.guideScrollTop+"px"):document.body.classList.contains("lock-scrollbar")&&(document.body.style.overflowY="",document.body.style.top="",document.body.classList.remove("lock-scrollbar"),
a.setScrollTop(this.guideScrollTop));_.Ct(this.hostElement,"yt-rich-grid-layout-refreshed")};
_.Z.getCurrentPageScrollableElementType=function(){var a=_.ab().resolve(_.aK).getCurrentPage();if(a&&a.getPageScrollingElement())return a.getPageScrollingElement().nodeName};
_.Z.observeGuideVisibility=function(){var a=_.QMI.getInstance(),z=this.miniGuideVisible;a.guidePersistentAndVisible_=this.guidePersistentAndVisible;a.miniGuideVisible_=z;YN4(a)};
_.Z.handleEduDismissAction=function(a){a&&a.eduDismissAction&&(_.ZF(this.hostElement,"yt-close-popup-action",["yt-bubble-hint-renderer"]),_.FcJ.getInstance(),_.Pw.set(a.eduDismissAction.key+"-dismissed",!0))};
_.Z.handleEduImpressionAction=function(a){if(a&&a.eduImpressionAction){var z=_.FcJ.getInstance();a=a.eduImpressionAction.key;z.JSC$12914_eduDisplayedThisLoad_[_.Kc1[a].setKey||a]=!0;_.Pw.set(a+"-impression",parseInt(_.Pw.get(a+"-impression")||0,10)+1)}};
_.Z.onYtSignalActionConfirmMentionsEdu=function(){_.ZF(this.hostElement,"yt-close-popup-action",["yt-bubble-hint-renderer"]);_.Ns.getInstance();_.CN.set("edu-dismissed",!0)};
_.Z.onYtSignalActionRecordMentionsEduImpression=function(){_.Ns.getInstance();var a=_.CN.set,z=parseInt(_.CN.get("edu-impressions"),10);a.call(_.CN,"edu-impressions",(isFinite(z)?z:0)+1)};
_.Z.onYtPageManagerAttached=function(a){var z;((z=_.Yh(a))==null?void 0:z.id)==="page-manager"&&this.pageManagerAttachedPromise.resolve()};
_.Z.onInvokeInstrumentManagerAction=function(a,z){ncV(z,a)};
_.Z.updateIconSet=function(){var a=this.hostElement.querySelector("#masthead");if(a){var z=_.ZL(a),I=z.querySelector("g#yt-logo-updated");I&&(a=document.createElementNS("http://www.w3.org/2000/svg","defs"),a.appendChild(I.cloneNode(!0)),(z=z.querySelector("g#yt-logo-red-updated"))&&a.appendChild(z.cloneNode(!0)),this.initIconDefs("yt-logos-ext",a))}};
_.Z.updateMastheadData=function(){var a=this,z,I,J,r,P;return _.t(function(N){if(N.nextAddress==1){z=a.data;I=a.hostElement.querySelector("#masthead");if(!I)return N.return();_.Yv(a,function(){I.data=a.topbarData});
if(!a.get("response.topbar",z)||a.get("response.topbar.responseContext.maxAgeSeconds",z)===0)return N.jumpTo(0);if(J=_.ab().resolve(_.Zp))return N.yield(J(),6);r=_.ab().resolve(_.AM);return N.yield(r.put("service:topbar:fallback",new _.s3({innertubeResponse:a.get("response.topbar",z)})),0)}return(P=N.yieldResult)?N.yield(P.put("service:topbar:fallback",new _.s3({innertubeResponse:a.get("response.topbar",z)})),0):N.jumpTo(0)})};
_.Z.computeTopbarData=function(a){if(!a)return null;var z;return this.isShortsPage&&this.topbarData&&!_.H((z=a.response)==null?void 0:z.topbar,kcM)?this.topbarData:a.response&&"topbar"in a.response?_.H(a.response.topbar,kcM)||null:null};
_.Z.onSetTheaterModeEnabled=function(a,z){this.isTheaterModeSession=z.enabled;this.setTheaterModeStyles(z.enabled)};
_.Z.setTheaterModeStyles=function(){this.setMastheadTheme();this.iMaxTheaterMode&&this.updateScrollAndMasthead(!(!this.isWatchPage||!this.fullscreen),!(!this.isMiniAppPage||!this.fullscreen),!(!this.isShortsPage||!this.fullscreen),this.isWatchPage&&this.isTheaterMode())};
_.Z.onDarkModeToggledAction=function(){var a=_.ul(window.location.href);if(!_.HdG(a)){(a=!!_.wq(window.location.href).themeRefresh)&&_.Xd(new _.Fn("themeRefresh param is in url.",this.getThemeSettingsToLog()));if(!a){TFE();a={themeRefresh:1};var z=_.ab().resolve(_.aK);if(z.isOnWatch()){var I,J;z=((I=z.getPlayerFromWatch())==null?void 0:(J=I.getPlayer())==null?void 0:J.getCurrentTime())||0;z>=1&&(a.time_continue=Math.floor(z))}_.sz()||_.xh()!=="USER_INTERFACE_THEME_DARK"||(a.theme="dark");_.wY(_.ms(window.location.href,
a))}_.K("web_appshell_refresh_trigger")&&_.IE.caches&&this.refreshAppShellResponse();I=_.pL(window.location.href);_.F3(_.ab().resolve(_.Hs),_.a_(I,"theme"))}};
_.Z.onYtSignalActionToggleRestrictedModeOnAction=function(){this.setRestrictedMode(!0)};
_.Z.onYtSignalActionToggleRestrictedModeOffAction=function(){this.setRestrictedMode(!1)};
_.Z.onPlayerFullscreen=function(a){_.jE();this.playerFullscreen=a};
_.Z.setRestrictedMode=function(a){var z=_.Kt();_.Fz(0,58,a);z.save();_.ab().resolve(_.vw).reload()};
_.Z.onPageChanged=function(a){a.detail.newPageType==="ytd-watch-flexy"||a.detail.newPageType==="ytd-watch-fixie"||a.detail.newPageType==="ytd-watch-grid"?this.ytdReduxBehavior.dispatch(_.xK("WEB_PAGE_TYPE_WATCH")):a.detail.newPageType==="ytd-shorts"?this.ytdReduxBehavior.dispatch(_.xK("WEB_PAGE_TYPE_SHORTS")):a.detail.newPageType==="ytd-browse"&&a.detail.newPageSubtype==="mini_app"?this.ytdReduxBehavior.dispatch(_.xK("WEB_PAGE_TYPE_MINI_APP")):_.K("web_frosted_glass")&&a.detail.newPageType==="ytd-browse"?
this.ytdReduxBehavior.dispatch(_.xK("WEB_PAGE_TYPE_BROWSE")):this.ytdReduxBehavior.dispatch(_.xK("WEB_PAGE_TYPE_UNKNOWN"));a.detail.oldPageType&&this.setMastheadTheme();this.isFullWindowSession&&this.setFullscreen();this.updateIsInlinePreviewDisabled()};
_.Z.onPageDataUpdated=function(){this.updateIsChannelOrPlaylistPage()};
_.Z.onGuideToggleTap=function(){_.PA(this.hostElement,"yt-guide-toggle")};
_.Z.onGuideToggleHover=function(){_.PA(this.hostElement,"yt-guide-hover")};
_.Z.isTheaterMode=function(){return this.isWatchPage&&this.isTheaterModeSession};
_.Z.isAppDarkTheme=function(){return document.documentElement.hasAttribute("dark")};
_.Z.setMastheadTheme=function(){var a=_.ZL(this.hostElement).querySelector("#masthead");a&&(a.dark=a.isDarkThemeForced||this.isTheaterMode()||this.isAppDarkTheme(),a.isDarkThemeForced=!1)};
_.Z.onRequestPanelModeChange=function(a,z){this.hideHeaderShadow=z.mode!=="seamed"};
_.Z.onGuideOpenButtonHover=function(){this.renderGuide=!0};
_.Z.onDrawerIronSelect=function(a){_.Yh(a).id==="guide"&&this.processDrawerIronSelect()};
_.Z.processDrawerIronSelect=function(){this.ytRendererBehavior.markDirty();var a="closed";this.guide.opened&&(this.renderGuide=!0,this.guide.persistent||(a="opened"));_.PA(this.hostElement,"yt-autonav-pause-guide-"+a)};
_.Z.onAddElementToApp=function(a){_.PK(this.hostElement).appendChild(a.detail)};
_.Z.onThrottledScroll=function(){var a=_.ab().resolve(_.aK).getCurrentPage();a&&(this.scrollAtTop=a.getScrollTop()<=0);this.mastheadHidden=this.canHideMasthead()};
_.Z.canHideMasthead=function(){return this.scrollAtTop&&!!this.fullscreen};
_.Z.setFullscreen=function(){if(_.K("external_fullscreen")||!this.isWatchPage){var a=_.K("kevlar_fullerscreen_root_only_killswitch")?!!_.jE():!!_.jE()&&_.jE()===document.documentElement;a=(this.isWatchPage||_.K("web_fullscreen_shorts")&&this.isShortsPage||this.isMiniAppPage)&&(a||this.isFullWindowSession);this.fullscreen!==a&&((this.fullscreen=a)&&_.Ct(this.hostElement,"yt-close-all-popups-action"),this.isShortsPage&&(_.qo().dispatch(_.r0G(this.fullscreen)),this.setFullscreenLoggingForShorts(this.fullscreen)),
this.updateScrollAndMasthead(this.isWatchPage&&this.fullscreen,this.isMiniAppPage&&this.fullscreen,this.isShortsPage&&this.fullscreen,this.isWatchPage&&this.isTheaterMode()),_.ZF(this.hostElement,"yt-fullscreen-change-action",[this.fullscreen]))}};
_.Z.setFullscreenLoggingForShorts=function(a){var z,I,J;return _.t(function(r){if(r.nextAddress==1)return r.yield((z=_.zI())==null?void 0:z.getPlayerPromise(),2);I=r.yieldResult;(J=I)==null||J.setAppFullscreen(a);_.nu(r)})};
_.Z.updateMastheadCssHeight=function(){var a=this.mastheadHeight;this.fullscreen&&(a=0);_.uK(this.hostElement,{"--ytd-masthead-height":a+"px","--ytd-masthead-height-absolute":this.mastheadHeight+"px"})};
_.Z.updateNetworkStatusBannerDisplayStatus=function(){var a="unset";this.fullscreen&&(a="none");_.uK(this.hostElement,{"--ytd-network-status-banner-display":a})};
_.Z.updateNetworkStatusBannerCssHeight=function(){var a="unset";this.fullscreen&&(a="0px");_.uK(this.hostElement,{"--ytd-network-status-banner-max-height":a})};
_.Z.updateScrollAndMasthead=function(a,z,I,J){this.iMaxTheaterMode||(J=!1);var r=_.ab().resolve(_.aK).getCurrentPage();a||z||J?(document.body.classList.add("no-scroll"),r.pageScrollElement=this.hostElement,this.scrolling=!0,this.hostElement.addEventListener("scroll",_.BK(this,this.onScroll)),r.setScrollTop(0),_.uK(this.hostElement,{"--ytd-app-fullerscreen-scrollbar-width":_.M7()+"px"})):I?_.PA(this.hostElement,"yt-guide-close"):(this.isShortsPage&&_.PA(this.hostElement,"yt-guide-show"),document.body.classList.remove("no-scroll"),
r.pageScrollElement=null,this.scrolling=!1,this.hostElement.removeEventListener("scroll",_.BK(this,this.onScroll)));this.mastheadHidden=a||z||I;this.updateMastheadCssHeight();_.K("network_status_banner_display_none")?this.updateNetworkStatusBannerDisplayStatus():this.updateNetworkStatusBannerCssHeight()};
_.Z.onScroll=function(){this.ytRendererBehavior.markDirty();this.scrollThrottle.fire()};
_.Z.onYtNavigateAction=function(a){a=this.get("navigateAction.endpoint",a);_.PA(this.hostElement,"yt-navigate",{endpoint:a})};
_.Z.onYtRegisterCreateFamilyDialog=function(){if(!this.hasCreateFamilyDialog){var a=document.createElement("yt-create-family-dialog");_.PK(this.hostElement).appendChild(a);this.hasCreateFamilyDialog=!0}};
_.Z.onSetPushNotificationsEnabledCommand=function(a){var z=this,I=_.H(a,yKZ);I&&typeof I.enabled==="boolean"&&(Notification.permission!=="granted"?tE0().then(function(){Notification.permission==="granted"?(MlM(!I.enabled).then(qXz),I.successAction&&_.N$(z.hostElement,[I.successAction])):I.failureAction&&_.N$(z.hostElement,[I.failureAction])}):(MlM(!I.enabled).then(qXz),I.successAction&&_.N$(this.hostElement,[I.successAction])))};
_.Z.onYtSignalActionEnableChromeNotifications=function(){uz0(!0)};
_.Z.onOpenHotkeyDialog=function(){this.topbarData.hotkeyDialog&&this.ytOpenPopupBehavior.openPopup({openPopupAction:{popupType:"DIALOG",popup:{hotkeyDialogRenderer:_.H(this.topbarData.hotkeyDialog,Y4Z)}}})};
_.Z.onYtSignalActionShowKeyboardShortcutDialog=function(){_.ZF(this.hostElement,"yt-close-popup-action",["ytd-multi-page-menu-renderer"]);this.onOpenHotkeyDialog()};
_.Z.onYtEndpointChangeHandler=function(a,z){var I=_.ji(_.xo);I.pendingPrefetchJob_&&(z=!(!z||z.autonav!="1"),I.pendingPrefetchJob_.resolve(a&&_.EaG(a)?_.BPd(a,z):""),I.pendingPrefetchJob_=null);_.ZF(this.hostElement,"yt-pause-active-page-context");_.ZF(this.hostElement,"ytd-log-youthere-nav");_.ZF(this.hostElement,"yt-prepare-page-dispose")};
_.Z.handleCommandWithCommandHandler=function(a,z){_.Og.instance.resolveCommand(a,{form:{element:z}})};
_.Z.onYtTimedCommand=function(a){var z=this;a=_.H(a,dsV);var I=a.command;I&&_.hE(_.GW,function(){var J=_.H(I,_.LSj);J?(_.Og.instance.resolveCommand(I),z.maybeLogGetAnswerRequestTick(J)):_.tR(z.hostElement,[I],z.hostElement)},a.timeoutMs||0)};
_.Z.maybeLogGetAnswerRequestTick=function(a){a&&a.isFirstRequest&&(_.$A("search_overview_answer"),_.Xz("so_rq",void 0,"search_overview_answer"))};
_.Z.onYtSignalActionSkipNavigation=function(){var a=_.ab().resolve(_.aK).getCurrentPage();_.MV(a)};
_.Z.onYtSignalActionCopyDebugData=function(){S_4()};
_.Z.handleEntityUpdateCommand=function(a){_.sr(_.H(a,_.Ukf).entityBatchUpdate,this.ytdReduxBehavior.store)};
_.Z.logFlowLoggingEventCommand=function(a){if(a=_.H(a,_.IC0))if(a.eventType==="FLOW_LOGGING_EVENT_CLASSIFICATION_START_EVENT"){var z=a.flowEventNamespace,I=a.flowEventType,J=a.flowType;J&&z&&I&&_.rMi(_.Bh(z,I,a.flowEventMetadata),J)}else{z=_.fH();I=a.flowEventNamespace;J=a.flowEventType;var r=a.flowType;r&&I&&J&&_.OM(z,_.Bh(I,J,a.flowEventMetadata),r,a.flowNonce)}};
_.Z.onGuideTouchStart=function(){this.guideScrolledByTouch=!0};
_.Z.onGuideTouchEnd=function(){this.guideScrolledByTouch=!1};
_.Z.onTouchStart=function(){var a=_.$o();_.TX()&&_.pS(a.JSC$13141_screenManager,{visualElement:a.ve})};
_.Z.handleSelectLanguageCommand=function(a){if(a=_.H(a,pwZ).hl){var z=_.Kt();z.set("hl",a);z.save();_.ab().resolve(_.vw).reload()}};
_.Z.handleConfirmDialogEndpoint=function(a){(a=this.ytOpenPopupBehavior.getNavigationEndpointPopupAction(a))&&this.ytOpenPopupBehavior.openPopup(a)};
_.Z.handleOpenPopupNavigationEndpoints=function(a,z){_.K("web_button_rework")&&(a=this.ytOpenPopupBehavior.getNavigationEndpointPopupAction(a))&&this.ytOpenPopupBehavior.openPopup(a,z)};
_.Z.handleSaveCommandToSessionStorage=function(a){if(a=_.H(a,_.VNe)){var z=a.key;z&&a.command&&window.sessionStorage.setItem(z,JSON.stringify(a.command))}};
_.Z.refreshAppShellResponse=function(){navigator.serviceWorker&&navigator.serviceWorker.ready.then(function(a){a&&a.active&&a.active.postMessage({type:"refresh_shell"})}).catch(function(a){a.name!=="SecurityError"&&_.Gx(a)})};
_.Z.onDeviceThemeChanged=function(){var a=_.ik();_.Fz(_.Kt(),185,a);_.Kt().save()};
_.Z.handleYtRegisterPromoCommand=function(a){if(_.H(a,ms4)){var z=_.ab().resolve(_.aK).getCurrentPage()||this.hostElement;JrG().registerPromoCommand(_.H(a,ms4),z)}};
_.Z.onYtNavigateHomeAction=function(){if(!_.K("kevlar_miniplayer_navigate_home_from_app_killswitch")){var a,z,I,J,r=(J=(a=this.topbarData)==null?void 0:(z=a.logo)==null?void 0:(I=z.topbarLogoRenderer)==null?void 0:I.endpoint)!=null?J:_.VT;this.ytComponentBehavior.resolveCommand(r)}};
_.Z.onYtLocationCollectionCommand=function(a){kdf(_.H(a,rtf))};
_.Z.onYtGetLocationCommand=function(a){oi0(_.H(a,JtV),this)};
_.Z.updateRenderGuideFromBinding=function(a){this.renderGuide=a.detail.value};
_.Z.updateGuidePersistentAndVisibleFromBinding=function(a){this.guidePersistentAndVisible=a.detail.value};
_.Z.updateMiniGuideVisibleFromBinding=function(a){this.miniGuideVisible=a.detail.value};
_.Z.onThemeSelected=function(a,z){var I=_.Kt(),J=a||z?a:_.ik(),r=(J&&this.getCurrentTheme()!=="USER_INTERFACE_THEME_DARK"||!J&&this.getCurrentTheme()!=="USER_INTERFACE_THEME_LIGHT")&&!_.HdG(_.ul(window.location.href));_.Fz(0,165,a);_.Fz(0,174,z);I.save();r&&_.ZF(this.hostElement,"yt-dark-mode-toggled-action",[J]);_.ZF(this.hostElement,"yt-close-popup-action",["ytd-multi-page-menu-renderer"])};
_.Z.getCurrentTheme=function(){return _.vh()?this.isAppDarkTheme()?"USER_INTERFACE_THEME_DARK":"USER_INTERFACE_THEME_LIGHT":_.xh()};
_.Z.handleSignalActionToggleDarkThemeOn=function(){this.onThemeSelected(!0,!1)};
_.Z.handleSignalActionToggleDarkThemeOff=function(){this.onThemeSelected(!1,!0)};
_.Z.handleSignalActionToggleDarkThemeDevice=function(){this.onThemeSelected(!1,!1)};
_.Z.handleShowConsentPrimitive=function(a){var z=this,I,J;return _.t(function(r){if(r.nextAddress==1){try{I=(J=_.zI())==null?void 0:J.getPlayerPromise()}catch(P){}return r.yield(Eci(a,I),2)}_.ZF(z.hostElement,"yt-close-popup-action",["ytd-multi-page-menu-renderer"]);_.nu(r)})};
_.Z.handleSelectActiveIdentityEndpointInternal=function(a){_.lk();a=_.H(a,_.IOO);if(a!=null&&a.supportedTokens){a=_.C(a.supportedTokens);for(var z=a.next();!z.done;z=a.next())z=z.value,z.accountSigninToken&&_.wY(z.accountSigninToken.signinUrl,void 0,void 0,window.top)}};
_.Z.handleUpdatePermissionRoleCommand=function(a){if(a=_.H(a,_.rVO)){var z;this.hasDelegation=!((z=_.H(a.renderer,_.JVO))==null||!z.status)}};
_.Z.registerWithViewTransitionManager=function(){var a=_.ab().resolve(_.eL(_.bH));if(a){var z,I=(z=this.guide)==null?void 0:z.querySelector("#scrim"),J;z=(J=this.guide)==null?void 0:J.querySelector("#contentContainer");I&&z&&a.isAnyTransitionEnabled&&(J={},a.viewTransitionCoordinator.registerElement(I,(J.slide="app-drawer-scrim-page-transition",J["lockup-to-watch"]="app-drawer-scrim-page-transition",J["learning-journey"]="app-drawer-scrim-page-transition",J)),I={},a.viewTransitionCoordinator.registerElement(z,
(I.slide="app-drawer-container-page-transition",I["lockup-to-watch"]="app-drawer-container-page-transition",I["learning-journey"]="app-drawer-container-page-transition",I)))}};
_.eH.Object.defineProperties(yW.prototype,{csiServiceName:{configurable:!0,enumerable:!0,get:function(){return"youtube"}},
applyFrostedGlassToChipBar:{configurable:!0,enumerable:!0,get:function(){return _.K("web_frosted_glass")&&this.isHomePage&&this.chipBarIsSticky}}});
_.eH.Object.defineProperties(yW,{template:{configurable:!0,enumerable:!0,get:function(){if(AOi===void 0){var a=document.createElement("template");_.V(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-app--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-guide-manager id="guide-service" disabled="[[standalone]]" guide-persistent-and-visible="[[guidePersistentAndVisible]]" mini-guide-visible="[[miniGuideVisible]]" render-guide="[[renderGuide]]" on-guide-persistent-and-visible-changed="updateGuidePersistentAndVisibleFromBinding" on-mini-guide-visible-changed="updateMiniGuideVisibleFromBinding" on-render-guide-changed="updateRenderGuideFromBinding" class="style-scope ytd-app">\n</yt-guide-manager>\n<yt-mdx-manager class="style-scope ytd-app"></yt-mdx-manager>\n<yt-playlist-manager class="style-scope ytd-app"></yt-playlist-manager>\n<yt-hotkey-manager class="style-scope ytd-app"></yt-hotkey-manager>\n<div id="content" class="style-scope ytd-app">\n  <div id="frosted-glass" class$="[[frostedGlassMode]] style-scope ytd-app"></div>\n  <div id="masthead-container" class="style-scope ytd-app">\n    <slot name="masthead" class="style-scope ytd-app"></slot>\n  </div>\n  <tp-yt-app-drawer id="guide" align="start" role="navigation" class="style-scope ytd-app">\n    <div id="guide-wrapper" class="style-scope ytd-app">\n      <div id="guide-spacer" class="style-scope ytd-app"></div>\n      <div id="guide-content" class="style-scope ytd-app">\n        <div id="header" hidden="[[guidePersistentAndVisible]]" class="style-scope ytd-app">\n          \n          <yt-icon-button id="guide-button" aria-label$="[[menuStrings.GUIDE_ALT_LABEL]]" pressed="true" toggleable="true" on-mouseenter="onGuideToggleHover" on-tap="onGuideToggleTap" class="style-scope ytd-app">\n            <yt-icon id="guide-icon" icon="yt-icons:menu" class="style-scope ytd-app"></yt-icon>\n          </yt-icon-button>\n          <ytd-topbar-logo-renderer country-code="[[topbarData.countryCode]]" data="[[topbarData.logo.topbarLogoRenderer]]" disable-upgrade$="[[guideIsVisibleButNotPersistent]]" class="style-scope ytd-app">\n          </ytd-topbar-logo-renderer>\n        </div>\n        <div id="guide-inner-content" on-touchstart="onGuideTouchStart" on-touchend="onGuideTouchEnd" class="style-scope ytd-app">\n          <template is="dom-if" if="[[renderGuide]]" class="style-scope ytd-app">\n            <ytd-guide-renderer id="guide-renderer" class="style-scope ytd-app">\n              <slot name="guide-links-primary" slot="guide-links-primary" class="style-scope ytd-app"></slot>\n              <slot name="guide-links-secondary" slot="guide-links-secondary" class="style-scope ytd-app"></slot>\n              <slot name="vat-notice" slot="vat-notice" class="style-scope ytd-app"></slot>\n              <slot name="copyright" slot="copyright" class="style-scope ytd-app"></slot>\n            </ytd-guide-renderer>\n          </template>\n        </div>\n      </div>\n    </div>\n  </tp-yt-app-drawer>\n  <ytd-mini-guide-renderer disable-upgrade$="[[!miniGuideVisible]]" hidden="[[!miniGuideVisible]]" visible="[[miniGuideVisible]]" class="style-scope ytd-app">\n  </ytd-mini-guide-renderer>\n  <ytd-page-manager id="page-manager" class="style-scope ytd-app"></ytd-page-manager>\n</div>\n<ytd-permission-role-bottom-bar-renderer class="style-scope ytd-app"></ytd-permission-role-bottom-bar-renderer>\n<ytd-popup-container class="style-scope ytd-app"></ytd-popup-container>\n<ytd-third-party-manager class="style-scope ytd-app"></ytd-third-party-manager>\n<snackbar-container class="style-scope ytd-app"></snackbar-container>\n<div id="video-preview" class="style-scope ytd-app"></div>\n<yt-ephemeral-actions class="style-scope ytd-app"></yt-ephemeral-actions>\n<template is="dom-if" if="[[clientOnlyWizTooltipsEnabled]]" class="style-scope ytd-app">\n  <yt-tooltip class="style-scope ytd-app"></yt-tooltip>\n</template>\n');
a.content.insertBefore(_.w().content.cloneNode(!0),a.content.firstChild);AOi=a}a=AOi;return a}}});
yW.prototype.onOpenHotkeyDialog=yW.prototype.onOpenHotkeyDialog;yW.prototype.setFullscreen=yW.prototype.setFullscreen;yW.prototype.onAddElementToApp=yW.prototype.onAddElementToApp;yW.prototype.onDrawerIronSelect=yW.prototype.onDrawerIronSelect;yW.prototype.onGuideOpenButtonHover=yW.prototype.onGuideOpenButtonHover;yW.prototype.onRequestPanelModeChange=yW.prototype.onRequestPanelModeChange;yW.prototype.onPageDataUpdated=yW.prototype.onPageDataUpdated;yW.prototype.onPageChanged=yW.prototype.onPageChanged;
yW.prototype.onSetTheaterModeEnabled=yW.prototype.onSetTheaterModeEnabled;yW.prototype.updateMastheadData=yW.prototype.updateMastheadData;yW.prototype.onYtPageManagerAttached=yW.prototype.onYtPageManagerAttached;yW.prototype.observeGuideVisibility=yW.prototype.observeGuideVisibility;yW.prototype.guideIsVisibleButNotPersistentSelectorChanged=yW.prototype.guideIsVisibleButNotPersistentSelectorChanged;yW.prototype.isInlinePreviewEnabledChanged=yW.prototype.isInlinePreviewEnabledChanged;
yW.prototype.isWatchPageChanged=yW.prototype.isWatchPageChanged;yW.prototype.dispatchFrostedGlassMode=yW.prototype.dispatchFrostedGlassMode;_.L([_.Q(_.pV),_.p("design:type",Object)],yW.prototype,"ytdReduxBehavior",void 0);_.L([_.Q(_.iO.YtEventForwardingBehavior),_.p("design:type",Object)],yW.prototype,"ytEventForwardingBehavior",void 0);_.L([_.Q(_.K_.YtOpenPopupBehavior),_.p("design:type",Object)],yW.prototype,"ytOpenPopupBehavior",void 0);
_.L([_.Q(_.Hc.YtActionHandlerBehavior),_.p("design:type",Object)],yW.prototype,"ytActionHandlerBehavior",void 0);_.L([_.Q({_noAccessors:!0,actionRouterIsRoot:!1,created:function(){this.actionRouter_=_.w2.getInstance();this.actionRouterNode=this.actionRouterIsRoot?document.body:this;this.onYtActionBoundListener_=this.onYtAction_.bind(this);this.actionRouterListenersRegistered_=!1;_.K("action_router_attached_only_killswitch")&&this.registerActionRouterEventListeners_()},
attached:function(){this.registerActionRouterEventListeners_()},
detached:function(){this.unregisterActionRouterEventListeners_()},
registerActionRouterEventListeners_:function(){if(!this.actionRouterListenersRegistered_){this.actionRouterListenersRegistered_=!0;var a;((a=this.actionRouterNode.hostElement)!=null?a:this.actionRouterNode).addEventListener("yt-action",this.onYtActionBoundListener_)}},
unregisterActionRouterEventListeners_:function(){this.actionRouterListenersRegistered_=!1;var a;((a=this.actionRouterNode.hostElement)!=null?a:this.actionRouterNode).removeEventListener("yt-action",this.onYtActionBoundListener_)},
onYtAction_:function(a){this.actionRouter_.handleAction(a.detail)}}),
_.p("design:type",Object)],yW.prototype,"ytActionRouterBehavior",void 0);_.L([_.Q(uD0.YtdAppBehavior),_.p("design:type",Object)],yW.prototype,"ytdAppBehavior",void 0);_.L([_.Q(_.FW.YtEndpointBehavior),_.p("design:type",Object)],yW.prototype,"ytEndpointBehavior",void 0);_.L([_.Q(HqM.YtEndpointHandlerWithYpcBehavior),_.p("design:type",Object)],yW.prototype,"ytEndpointHandlerWithYpcBehavior",void 0);
_.L([_.Q(sSG.YtLogYpcFlowCommandsBehavior),_.p("design:type",Object)],yW.prototype,"ytLogYpcFlowCommandsBehavior",void 0);_.L([_.Q(_.k.YtRendererBehavior),_.p("design:type",Object)],yW.prototype,"ytRendererBehavior",void 0);_.L([_.Q(_.Ms.YtComponentBehavior),_.p("design:type",Object)],yW.prototype,"ytComponentBehavior",void 0);_.L([_.x({selector:_.A2E}),_.p("design:type",Object)],yW.prototype,"tabGesturesIsActive",void 0);_.L([_.x(),_.p("design:type",Boolean)],yW.prototype,"renderGuide",void 0);
_.L([_.x({reflectToAttribute:!0}),_.p("design:type",Boolean)],yW.prototype,"guidePersistentAndVisible",void 0);_.L([_.x({selector:_.fTZ}),_.p("design:type",Boolean)],yW.prototype,"guideIsVisibleButNotPersistent",void 0);_.L([_.x({value:!1,reflectToAttribute:!0}),_.p("design:type",Boolean)],yW.prototype,"standalone",void 0);_.L([_.x({reflectToAttribute:!0}),_.p("design:type",Boolean)],yW.prototype,"miniGuideVisible",void 0);
_.L([_.x({selector:_.wSM}),_.p("design:type",Number)],yW.prototype,"miniplayerPlaybackState",void 0);_.L([_.x({selector:_.Tg,reflectToAttribute:!0}),_.p("design:type",Boolean)],yW.prototype,"miniplayerIsActive",void 0);_.L([_.x({computed:"computeIsInlinePreviewEnabled(miniplayerIsActive, miniplayerPlaybackState, isInlinePreviewDisabled)"}),_.p("design:type",Boolean)],yW.prototype,"isInlinePreviewEnabled",void 0);_.L([_.x(),_.p("design:type",Boolean)],yW.prototype,"isInlinePreviewDisabled",void 0);
_.L([_.x({reflectToAttribute:!0,value:function(){return _.TZ("START_IN_FULL_WINDOW_MODE")}}),
_.p("design:type",Boolean)],yW.prototype,"mastheadHidden",void 0);_.L([_.x({reflectToAttribute:!0}),_.p("design:type",Boolean)],yW.prototype,"playerFullscreen",void 0);_.L([_.x({reflectToAttribute:!0}),_.p("design:type",Object)],yW.prototype,"deprecateFullerscreenUi",void 0);_.L([_.x({reflectToAttribute:!0}),_.p("design:type",Boolean)],yW.prototype,"fullscreen",void 0);_.L([_.x({value:!1,reflectToAttribute:!0}),_.p("design:type",Boolean)],yW.prototype,"hideHeaderShadow",void 0);
_.L([_.x({value:{GUIDE_ALT_LABEL:_.AR("GUIDE_ALT_LABEL",void 0,"Guide")}}),_.p("design:type",Object)],yW.prototype,"menuStrings",void 0);_.L([_.x({computed:"computeTopbarData(data)"}),_.p("design:type",Object)],yW.prototype,"topbarData",void 0);_.L([_.x({selector:_.R33}),_.p("design:type",Boolean)],yW.prototype,"isWatchPage",void 0);_.L([_.x({selector:_.LhG,reflectToAttribute:!0}),_.p("design:type",Boolean)],yW.prototype,"isShortsPage",void 0);_.L([_.x({selector:function(a){return _.dg(a)==="WEB_PAGE_TYPE_MINI_APP"}}),
_.p("design:type",Boolean)],yW.prototype,"isMiniAppPage",void 0);_.L([_.x({selector:function(a){return _.dg(a)==="WEB_PAGE_TYPE_BROWSE"}}),
_.p("design:type",Boolean)],yW.prototype,"isBrowsePage",void 0);_.L([_.x({reflectToAttribute:!0}),_.p("design:type",Boolean)],yW.prototype,"scrolling",void 0);_.L([_.x({reflectToAttribute:!0}),_.p("design:type",Object)],yW.prototype,"hasDelegation",void 0);_.L([_.x({reflectToAttribute:!0,value:!1}),_.p("design:type",Boolean)],yW.prototype,"guideScrolledByTouch",void 0);_.L([_.x({reflectToAttribute:!0}),_.p("design:type",Object)],yW.prototype,"darkerDarkTheme",void 0);
_.L([_.x(),_.p("design:type",Object)],yW.prototype,"isFrostedGlassInitialized",void 0);_.L([_.x({reflectToAttribute:!0}),_.p("design:type",Object)],yW.prototype,"frostedGlassExp",void 0);_.L([_.x({selector:function(a){return a.ui.chipBarIsSticky}}),
_.p("design:type",Boolean)],yW.prototype,"chipBarIsSticky",void 0);_.L([_.x({computed:"computeIsHomePage(isBrowsePage, data)"}),_.p("design:type",Boolean)],yW.prototype,"isHomePage",void 0);_.L([_.x({reflectToAttribute:!0}),_.p("design:type",Object)],yW.prototype,"mastheadHiddenFocusWithinKillswitch",void 0);_.L([_.x(),_.p("design:type",Object)],yW.prototype,"clientOnlyWizTooltipsEnabled",void 0);_.L([_.gy("guide"),_.p("design:type",Object)],yW.prototype,"guide",void 0);
_.L([_.gy("guide-service"),_.p("design:type",qjM)],yW.prototype,"guideService",void 0);_.L([_.gy("guide-inner-content"),_.p("design:type",HTMLDivElement)],yW.prototype,"guideInnerContent",void 0);_.L([_.x({selector:_.m_1}),_.p("design:type",String)],yW.prototype,"frostedGlassMode",void 0);
_.L([_.O8("isFrostedGlassDisabled","isFrostedGlassInitialized","applyFrostedGlassToChipBar"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],yW.prototype,"dispatchFrostedGlassMode",null);_.L([_.x({computed:"computeIsFrostedGlassDisabled(isShortsPage, isMiniAppPage, isChannelOrPlaylistPage, isWatchPage)"}),_.p("design:type",Object)],yW.prototype,"isFrostedGlassDisabled",void 0);
_.L([_.O8("isWatchPage"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],yW.prototype,"isWatchPageChanged",null);_.L([_.S("isHomePage","chipBarIsSticky"),_.p("design:type",Boolean),_.p("design:paramtypes",[])],yW.prototype,"applyFrostedGlassToChipBar",null);_.L([_.x(),_.p("design:type",Object)],yW.prototype,"isChannelOrPlaylistPage",void 0);
_.L([_.Fe("isInlinePreviewEnabled"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],yW.prototype,"isInlinePreviewEnabledChanged",null);_.L([_.O8("guideIsVisibleButNotPersistent"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],yW.prototype,"guideIsVisibleButNotPersistentSelectorChanged",null);
_.L([_.O8("guidePersistentAndVisible","miniGuideVisible"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],yW.prototype,"observeGuideVisibility",null);_.L([_.gz("attached"),_.p("design:type",Function),_.p("design:paramtypes",[Event]),_.p("design:returntype")],yW.prototype,"onYtPageManagerAttached",null);_.L([_.O8("data"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype",Promise)],yW.prototype,"updateMastheadData",null);
_.L([_.gz("yt-set-theater-mode-enabled"),_.p("design:type",Function),_.p("design:paramtypes",[CustomEvent,Object]),_.p("design:returntype")],yW.prototype,"onSetTheaterModeEnabled",null);_.L([_.gz("yt-page-type-changed"),_.p("design:type",Function),_.p("design:paramtypes",[CustomEvent]),_.p("design:returntype")],yW.prototype,"onPageChanged",null);_.L([_.gz("yt-page-data-updated"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],yW.prototype,"onPageDataUpdated",null);
_.L([_.gz("yt-request-panel-mode-change"),_.p("design:type",Function),_.p("design:paramtypes",[Event,Object]),_.p("design:returntype")],yW.prototype,"onRequestPanelModeChange",null);_.L([_.gz("yt-guide-hover"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],yW.prototype,"onGuideOpenButtonHover",null);_.L([_.gz("app-drawer-transitioned"),_.p("design:type",Function),_.p("design:paramtypes",[Event]),_.p("design:returntype")],yW.prototype,"onDrawerIronSelect",null);
_.L([_.gz("yt-add-element-to-app"),_.p("design:type",Function),_.p("design:paramtypes",[CustomEvent]),_.p("design:returntype")],yW.prototype,"onAddElementToApp",null);_.L([_.gz("yt-set-fullerscreen-styles"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],yW.prototype,"setFullscreen",null);_.L([_.gz("yt-open-hotkey-dialog"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],yW.prototype,"onOpenHotkeyDialog",null);
_.L([_.U({is:"ytd-app"})],yW);_.yT().processSignal("eor");
_.xl();
}catch(e){_._DumpException(e)}
}).call(this,this.default_kevlar_base);
// Google Inc.
